re PR lto/41669 (Infinite recursion trying to build gcc)
[gcc.git] / gcc / ChangeLog
1 2009-10-15 Richard Guenther <rguenther@suse.de>
2
3 PR lto/41669
4 * gimple.c (gimple_get_alias_set): Avoid recursing on
5 invalid type topology.
6
7 2009-10-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
8
9 * config/spu/spu.c (get_branch_target): Use extract_asm_operands.
10
11 2009-10-15 Richard Guenther <rguenther@suse.de>
12
13 * tree.c (free_lang_data_in_decl): Free DECL_FCONTEXT.
14
15 2009-10-15 Jakub Jelinek <jakub@redhat.com>
16
17 * config/rs6000/option-defaults.h (OPTION_DEFAULT_SPECS): Don't
18 add --with-tune{,-32,-64} configured default for -mtune if explicit
19 -mcpu is used.
20
21 2009-10-14 DJ Delorie <dj@redhat.com>
22
23 * config/h8300/h8300.c (F): New.
24 (Fpa): New.
25 (h8300_emit_stack_adjustment): Call them.
26 (push): Likewise.
27 (h8300_push_pop): Likewise.
28 (h8300_expand_prologue): Likewise.
29 * config/h8300/h8300.h (DWARF2_DEBUGGING_INFO): Define.
30 (MUST_USE_SJLJ_EXCEPTIONS): Define.
31 (INCOMING_RETURN_ADDR_RTX): Define.
32 (INCOMING_FRAME_SP_OFFSET): Define.
33 (DWARF_CIE_DATA_ALIGNMENT): Define.
34
35 2009-10-14 Jakub Jelinek <jakub@redhat.com>
36
37 * stor-layout.c (place_field): Don't emit -Wpadded warnings for
38 fields in builtin structs.
39 (finalize_record_size): Likewise.
40
41 2009-10-14 Richard Guenther <rguenther@suse.de>
42
43 * gimple.c (gtc_ob): New global.
44 (struct type_pair_d): Replace pointers with type UIDs.
45 (type_pair_hash): Adjust.
46 (type_pair_eq): Likewise.
47 (lookup_type_pair): Likewise. Allocate from an obstack.
48 (gimple_force_type_merge): Adjust.
49 (gimple_types_compatible_p): Likewise.
50 (free_gimple_type_tables): Free the obstack.
51
52 2009-10-14 Jakub Jelinek <jakub@redhat.com>
53
54 * tree-parloops.c (separate_decls_in_region_debug_bind): Drop debug
55 stmts setting DEBUG_EXPR_DECLs.
56
57 * cfgexpand.c (expand_debug_expr): Ignore zero-length bitfields.
58 Don't crash if mode1 is VOIDmode.
59
60 2009-09-26 Vladimir Makarov <vmakarov@redhat.com>
61
62 * params.def (PARAM_IRA_LOOP_RESERVED_REGS): New.
63 * params.h (IRA_LOOP_RESERVED_REGS): New
64 * tree-pass.h (pass_subregs_of_mode_init,
65 pass_subregs_of_mode_finish): Remove.
66 * passes.c (pass_subregs_of_mode_init,
67 pass_subregs_of_mode_finish): Remove.
68 (pass_reginfo_init): Move before loop optimizations.
69 * config/i386/i386.h (STACK_REG_COVER_CLASS): Define.
70 * common.opt (fira-loop-pressure): New.
71 * toplev.h (flag_ira_loop_pressure): New.
72 * rtl.h (init_subregs_of_mode, finish_subregs_of_mode): New
73 externals.
74 * reginfo.c (init_subregs_of_mode, finish_subregs_of_mode):
75 Make external and void type functions.
76 (gate_subregs_of_mode_init, pass_subregs_of_mode_init,
77 pass_subregs_of_mode_finish): Remove.
78 * ira-costs.c (init_costs): Call init_subregs_of_mode.
79 * regmove.c: Include ira.h.
80 (regmove_optimize): Call ira_set_pseudo_classes after IRA based
81 register pressure calculation in loops.
82 * loop-invariant.c: Include REGS_H and ira.h.
83 (struct loop_data): New members max_reg_pressure, regs_ref, and
84 regs_live.
85 (struct invariant): New member orig_regno.
86 (curr_loop): New variable.
87 (find_exits): Initialize regs_ref and regs_live.
88 (create_new_invariant): Initialize orig_regno.
89 (get_cover_class_and_nregs): New.
90 (get_inv_cost): Make aregs_needed an array. Use regs_needed as an
91 array. Add code for flag_ira_loop_pressure.
92 (gain_for_invariant): Make new_regs an array. Add code for
93 flag_ira_loop_pressure.
94 (best_gain_for_invariant): Ditto.
95 (set_move_mark): New parameter gain. Use it for debugging output.
96 (find_invariants_to_move): Make regs_needed and new_regs an array.
97 Add code for flag_ira_loop_pressure.
98 (move_invariant_reg): Set up orig_regno.
99 (move_invariants): Set up reg classes for pseudos for
100 flag_ira_loop_pressure.
101 (free_loop_data): Clear regs_ref and regs_live.
102 (curr_regs_live, curr_reg_pressure, regs_set, n_regs_set,
103 get_regno_cover_class, change_pressure, mark_regno_live,
104 mark_regno_death, mark_reg_store, mark_reg_clobber,
105 mark_reg_death, mark_ref_regs, calculate_loop_reg_pressure): New.
106 (move_loop_invariants): Calculate pressure. Initialize curr_loop.
107 * ira.c (ira): Call ira_set_pseudo_classes after IRA based
108 register pressure calculation in loops if new regs were added.
109 Call finish_subregs_of_mode.
110 * opts.c (decode_options): Set up flag_ira_loop_pressure.
111 * Makefile.in (loop-invariant.o): Add ira.h.
112 (regmove.o): Ditto.
113 * doc/invoke.texi (-fira-loop-pressure, ira-loop-reserved-regs):
114 Describe.
115 * doc/tm.texi (STACK_REG_COVER_CLASS): Describe.
116
117 2009-10-14 Richard Guenther <rguenther@suse.de>
118
119 * lto-symtab.c (lto_symtab_compatible): Fold in ...
120 (lto_symtab_merge): ... here. Rewrite both to take the
121 prevailing and a to-be-merged entry and to queue diagnostics
122 properly.
123 (lto_symtab_resolve_replaceable_p): New predicate for
124 symbol resolution.
125 (lto_symtab_resolve_can_prevail_p): Likewise.
126 (lto_symtab_resolve_symbols): Rewrite. Fold in code that
127 handles merging commons by choosing the largest decl. Fold
128 in code that gives ODR errors.
129 (lto_symtab_merge_decls_2): Simplify a lot. Emit queued
130 diagnostics here.
131 (lto_symtab_merge_decls_1): Re-structure. Deal with the
132 case of no prevailing decl here. Diagnose mismatches
133 in object types here. Drop all but the prevailing decls.
134 (lto_symtab_prevailing_decl): Return the single prevailing decl.
135 * lto-streamer-in.c (lto_input_tree_ref): Deal with
136 VIEW_CONVERT_EXPRs in decl slots. Unshare the tree in this case.
137
138 2009-10-14 Richard Guenther <rguenther@suse.de>
139
140 PR lto/41521
141 * lto-streamer-in.c (input_bb): Replace debug stmts with
142 nops instead of dropping them.
143
144 2009-10-14 Nick Clifton <nickc@redhat.com>
145
146 * gcc/doc/extended.texi: Replace the dash character with
147 @minus{} in situations where it is being used as a minus
148 symbol.
149 * gcc/doc/tm.texi: Likewise.
150 * gcc/doc/md.texi: Likewise.
151
152 2009-10-14 Jakub Jelinek <jakub@redhat.com>
153
154 PR preprocessor/41543
155 * input.h (BUILTINS_LOCATION): Change to 1 from 2.
156 Assert BUILTINS_LOCATION < RESERVED_LOCATION_COUNT.
157 * tree.c: Include intl.h.
158 (expand_location): Handle BUILTINS_LOCATION.
159 * Makefile.in (tree.o): Depend on intl.h.
160
161 PR debug/41695
162 * dwarf2out.c (dwarf2out_var_location): Always clear
163 last_postcall_label when changing last_label.
164
165 2009-10-14 Pascal Obry <obry@adacore.com>
166
167 * gcc.c (DEFAULT_SWITCH_CURTAILS_COMPILATION): Add -E.
168 (process_command): Handle -E as done with -c and -S. Do not add
169 the target executable suffix to the output file when -E is used.
170 (main): Adjust error message accordingly.
171
172 2009-10-14 Alexandre Oliva <aoliva@redhat.com>
173
174 PR debug/41343
175 PR debug/41447
176 PR debug/41264
177 PR debug/41338
178 * tree.c (tree_node_structure_for_code): DEBUG_EXPR_DECL uses
179 decl with rtl.
180 (tree_code_size): Likewise.
181
182 2009-10-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
183
184 * builtins.c (fold_builtin_1): Support complex "arc" functions.
185 * real.h (HAVE_mpc_arc): Define.
186
187 2009-10-14 Kaz Kojima <kkojima@gcc.gnu.org>
188
189 * config/sh/sh.c (TARGET_BUILTIN_DECL): Define.
190 (struct builtin_description): Add fndecl field.
191 (bdesc): Remove const qualifier. Update initializer.
192 (sh_media_init_builtins): Remove const qualifier for d. Record
193 the result of add_builtin_function to the fndecl field.
194 (sh_builtin_decl): New.
195 (sh_media_builtin_decl): New.
196
197 2009-10-14 Hans-Peter Nilsson <hp@axis.com>
198
199 PR target/38948
200 * config/cris/cris.h (SECONDARY_RELOAD_CLASS): Handle reload
201 requests between special registers.
202
203 2009-10-13 Eric Botcazou <ebotcazou@adacore.com>
204
205 * dwarf2out.c (mem_loc_descriptor): Accept UNGT as well.
206
207 2009-10-13 Richard Henderson <rth@redhat.com>
208
209 PR tree-optimization/41377
210 * tree-eh.c (unsplit_eh): Propagate degenerate PHIs.
211 (cleanup_empty_eh_merge_phis): New change_region parameter;
212 pass it on to redirect_eh_edge_1. Update callers.
213 (cleanup_empty_eh_unsplit): Don't require an existing EH label
214 at the destination block.
215
216 2009-10-13 Basile Starynkevitch <basile@starynkevitch.net>
217
218 * passes.c (register_pass): Replaced gcc_unreachable by
219 fatal_error on failure. Mentions plugins in comments & messages.
220
221 2009-10-13 Jakub Jelinek <jakub@redhat.com>
222
223 PR target/41693
224 * rtl.h (DEBUG_EXPR_TREE_DECL): Define.
225 * sched-vis.c (print_value): Use it.
226 * cselib.c (cselib_hash_rtx): Likewise.
227 * print-rtl.c (print_rtx): Likewise.
228 * cfgexpand.c (expand_debug_rtx): Likewise.
229 * var-tracking.c (vt_expand_loc_callback): Likewise.
230
231 2009-10-13 Richard Guenther <rguenther@suse.de>
232
233 PR lto/41565
234 * opts.c (handle_option): Split out code to handle setting
235 the options flag var ...
236 (set_option): ... here.
237 * opts.h (set_option): Declare.
238 * lto-opts.c (register_user_option_p): Include -fexceptions
239 and all position independent code variants.
240 (handle_common_option): Remove.
241 (lto_reissue_options): Use set_option.
242
243 2009-10-13 Martin Jambor <mjambor@suse.cz>
244
245 PR tree-optimization/41661
246 * ipa-prop.c (compute_complex_pass_through): Allow only operations
247 that are tcc_comparisons or do not change the type in any
248 un-usleless way.
249 * ipa-cp.c (ipcp_lattice_from_jfunc): Request boolean type when
250 folding tcc_comparison operations.
251
252 2009-10-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
253
254 * config/s390/s390.c (s390_encode_section_info): Handle BLKmode
255 properly.
256
257 2009-10-12 Alexandre Oliva <aoliva@redhat.com>
258
259 PR debug/41343
260 PR debug/41447
261 PR debug/41264
262 PR debug/41338
263 * tree.def (DEBUG_EXPR_DECL): New.
264 * rtl.def (DEBUG_EXPR): New.
265 * gengtype.c (adjust_field_rtx_def): Handle it.
266 * tree-ssa.c (propagate_var_def_into_debug_stmts): Rename to...
267 (insert_debug_temp_for_var_def): ... this. Drop support for
268 moving. Take iterator for def stmt; insert debug stmt before it.
269 Scan early for use count and kind in debug stmts.
270 (propagate_defs_into_debug_stmts): Rename to...
271 (insert_debug_temps_for_defs): ... this. Likewise.
272 * tree.h (DEBUG_TEMP_UID): New.
273 * tree.c (next_debug_decl_uid): New.
274 (make_node_stat): Count debug decls separately.
275 (copy_node_stat): Likewise.
276 * cfgexpand.c (expand_debug_expr): Handle DEBUG_EXPR_DECL.
277 * var-tracking.c (dv_is_decl_p): Recognize it.
278 (VALUE_RECURSED_INTO): Apply to DEBUG_EXPRs too.
279 (track_expr_p): Track expanded DEBUG_EXPR_DECLs.
280 (vt_expand_loc_callback): Expand DEBUG_EXPRs.
281 (emit_note_insn_var_location): Don't emit notes for DEBUG_EXPR_DECLs.
282 * cselib.c (rtx_equal_for_cselib_p): Handle DEBUG_EXPR.
283 (cselib_hash_rtx): Likewise.
284 (cselib_expand_value_rtx_1): Use callback for DEBUG_EXPR.
285 * tree-ssa-operands.c (get_expr_operands): Skip DEBUG_EXPR_DECLs in
286 debug bind stmts.
287 * emit-rtl.c (verify_rtx_sharing): Handle DEBUG_EXPR and VALUE.
288 (copy_rtx_if_shared_1, reset_used_flags, set_used_flags): Likewise.
289 * rtl.c (copy_rtx): Likewise.
290 (rtx_equal_p_cb, rtx_equal_p): Handle DEBUG_EXPR.
291 * print-rtl.c (print_rtx): Likewise.
292 * sched-vis.c (print_value): Likewise.
293 (print_insn): Handle DEBUG_EXPR_DECL.
294 * tree-dump.c (dequeue_and_dump): Likewise.
295 * tree-pretty-print.c (dump_decl_name, dump_generic_node): Likewise.
296 * gimple-iterator (gsi_replace): Check for same lhs.
297 (gsi_remove): Insert debug temps.
298 * tree-ssa-loop-im.c (rewrite_reciprocal): Replace with same lhs.
299 (move_computations_stmt): Drop explicit propagation into debug stmts.
300 (rewrite_bittest): Likewise. Use gsi_remove for propagation.
301 * tree-ssa-reassoc.c (rewrite_expr_tree, linearize_expr): Likewise.
302 * tree-ssa-sink.c (statement_sink_location): Likewise.
303 * tree-ssa-forwprop (forward_propagate_addr_expr): Likewise.
304 * tree-ssanames.c (release_ssa_name): Adjust for rename.
305 * tree-flow.h: Likewise.
306 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Don't mark
307 debug temps without values.
308 (eliminate_unnecessary_stmts): Don't discard just-inserted
309 debug stmts.
310
311 2009-10-12 Hans-Peter Nilsson <hp@axis.com>
312
313 PR target/26515
314 * config/cris/cris.md (andu): Check that operand 1 is one of the
315 general registers. Fix typo in head comment.
316
317 2009-10-12 Stefan Dösinger <stefan@codeweavers.com>
318
319 * config/i386/i386.md (vswapmov): New.
320 * config/i386/i386.c (ix86_handle_fndecl_attribute): New.
321 (ix86_function_ms_hook_prologue): New.
322 (ix86_expand_prologue): Handle ms_hook_prologue attribute.
323 * configure.ac: Test for swap suffix support in as.
324 * configure: Rebuild.
325
326 2009-10-12 Jakub Jelinek <jakub@redhat.com>
327
328 PR target/41680
329 * config/i386/i386.md (split after *testqi_ext_3_rex64): Only narrow
330 paradoxical subregs to prevent partial register stalls if the inner
331 mode is integer mode.
332
333 2009-10-12 Uros Bizjak <ubizjak@gmail.com>
334
335 * config/i386/i386.md (*setcc_<mode>_2): Remove insn pattern.
336
337 2009-10-12 Dodji Seketeli <dodji@redhat.com>
338
339 PR c++/41570
340 * gcc/dwarf2out.c (template_parameter_pack_die,
341 gen_formal_parameter_pack_die): Use add_name_and_src_coords_attributes.
342
343 2009-10-12 Alexandre Oliva <aoliva@redhat.com>
344
345 PR debug/41616
346 * tree-into-ssa.c (insert_phi_nodes_for): Build debug bind stmts
347 on updates too.
348 (maybe_register_def): Likewise. Take stmt iterator.
349 (rewrite_update_stmt): Take stmt iterator and pass it on.
350 (rewrite_update_enter_block): Pass stmt iterator.
351
352 2009-10-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
353
354 * config/spu/spu.c (TARGET_BUILTIN_DECL): Define.
355 (spu_builtin_decl): New function.
356
357 2009-10-12 Uros Bizjak <ubizjak@gmail.com>
358
359 * config/i386/i386.md (SWIM): New mode iterator.
360 (mov<mode>cc): Macroize expander from mov{qi,hi,si,di}cc patterns
361 using SWIM mode iterator.
362 (x86_mov<mode>cc_0_m1): Macroize insn from x86_mov{si,di}cc_0_m1
363 patterns using SWI48 mode iterator.
364 (*x86_mov<mode>cc_0_m1_se): Macroize insn from
365 *x86_mov{si,di}cc_0_m1_se patterns using SWI48 mode iterator.
366 (*x86_mov<mode>cc_0_m1_neg): New insn pattern.
367 (*mov<mode>cc_noc): Macroize insn from *mov{hi,si,di}cc_noc
368 patterns using SWI248 mode iterator.
369 * config/i386/i386.c (ix86_expand_int_movcc): Update the call to
370 gen_x86_movdicc_0_m1_rex64 for renamed function
371
372 2009-10-11 Jose Ruiz <ruiz@adacore.com>
373 Eric Botcazou <ebotcazou@adacore.com>
374
375 PR target/33743
376 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Define.
377 * config/sparc/sol2-unwind.h: New file.
378
379 2009-10-11 Olivier Hainque <hainque@adacore.com>
380 Eric Botcazou <ebotcazou@adacore.com>
381
382 PR target/33743
383 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Define.
384 * config/i386/sol2-unwind.h: New file.
385
386 2009-10-11 H.J. Lu <hongjiu.lu@intel.com>
387
388 PR target/41665
389 * config/i386/i386.md (addsi_1_zext): Get the proper second
390 operand for lea.
391
392 2009-10-11 Richard Sandiford <rdsandiford@googlemail.com>
393
394 * simplify-rtx.c (simplify_replace_rtx): Use rtx_equal_p for
395 all OLD_RTXes, not just REGs. Use copy_rtx to create the
396 replacement value.
397
398 2009-10-11 Richard Guenther <rguenther@suse.de>
399
400 * gimple.c (iterative_hash_type_name): Do not handle special
401 anonymous names.
402
403 2009-10-11 Uros Bizjak <ubizjak@gmail.com>
404
405 * config/i386/i386.md (*setcc_di_1): New insn_and_split pattern.
406 (*setcc_si_1_and): Ditto.
407 (*setcc_si_1_movzbl): Ditto.
408 (*setcc_<mode>_2): Ditto.
409 (*setcc_qi): Rename from *setcc_1.
410 (*setcc_qi_slp): Rename from *setcc_2.
411
412 (*zero_extendqihi2_movzbw_and splitter): Use ix86_expand_clear.
413 (*zero_extendqisi2_movzbw_and splitter): Ditto.
414
415 * config/i386/i386.c (ix86_expand_clear): Remove reload_completed from
416 "if" condition, there is already assert with reload_completed present.
417
418 2009-10-11 Gerald Pfeifer <gerald@pfeifer.com>
419
420 * plugin.c (try_init_one_plugin): Improve constness of variable err.
421
422 2009-10-10 Gerald Pfeifer <gerald@pfeifer.com>
423
424 * doc/install.texi (Final install): Refer to
425 http://gcc.gnu.org/bugs/ for bug reporting.
426
427 2009-10-10 Peter Bergner <bergner@vnet.ibm.com>
428
429 * configure.ac: Add test for dci instruction.
430 * configure: Regenerate.
431 * config.in: Likewise.
432 * config.gcc: Handle --with-cpu=476 and --with-cpu=476fp.
433 * doc/invoke.texi: Add cpu_type 476 and 476fp.
434 (-mmulhw): Add 476 to description.
435 (-mdlmzb): Likewise.
436 * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=476.
437 * config/rs6000/rs6000.c (processor_costs): Add ppc476_cost.
438 (processor_target_table): Add 476 and 476fp entries.
439 (rs6000_override_options): Use ppc476_cost for PROCESSOR_PPC476.
440 (rs6000_issue_rate): Add CPU_PPC476.
441 * config/rs6000/rs6000.h (ASM_CPU_476_SPEC): Define.
442 (ASM_CPU_SPEC): Pass %(asm_cpu_476) for -mcpu=476 and -mcpu=476fp.
443 (processor_type): Add PROCESSOR_PPC476.
444 (EXTRA_SPECS): Add asm_cpu_476 string.
445 * config/rs6000/rs6000.md: (define_attr "type"): Add isel attribute.
446 (define_attr "cpu"): Add ppc476.
447 Include 476.md.
448 Update comments for 476.
449 (isel_signed, isel_unsigned): Change to use "isel" type attribute.
450 * config/rs6000/vxworks.h (CPP_SPEC): Handle 464 and 476.
451 Update copyright year.
452 * config/rs6000/476.md: New file.
453 * config/rs6000/40x.md: Add description for "isel" attribute.
454 Update copyright year.
455 * config/rs6000/440.md: Likewise.
456 * config/rs6000/603.md: Likewise.
457 * config/rs6000/6xx.md: Likewise.
458 * config/rs6000/7450.md: Likewise.
459 * config/rs6000/7xx.md: Likewise.
460 * config/rs6000/8540.md: Likewise.
461 * config/rs6000/cell.md: Likewise.
462 * config/rs6000/e300c2c3.md: Likewise.
463 * config/rs6000/e500mc.md: Likewise.
464 * config/rs6000/mpc.md: Likewise.
465 * config/rs6000/power4.md: Likewise.
466 * config/rs6000/power5.md: Likewise.
467 * config/rs6000/power6.md: Likewise.
468 * config/rs6000/power7.md: Likewise.
469 * config/rs6000/rios1.md: Likewise.
470 * config/rs6000/rios2.md: Likewise.
471 * config/rs6000/rs64.md: Likewise.
472
473 2009-10-10 Richard Guenther <rguenther@suse.de>
474
475 PR tree-optimization/41654
476 * tree-ssa-ifcombine.c (ifcombine_ifandif): Properly canonicalize
477 a cond expr before calling gimple_cond_set_condition_from_tree.
478 (ifcombine_iforif): Likewise.
479
480 2009-10-09 Ian Lance Taylor <iant@google.com>
481
482 * configure.ac: Use AC_SEARCH_LIBS to find dlopen.
483 * configure: Rebuild.
484
485 2009-10-09 Neil Vachharajani <nvachhar@google.com>
486
487 * doc/cpp.texi (Other Directives): Do not list #ident and #sccs as
488 deprecated.
489
490 2009-10-09 Richard Guenther <rguenther@suse.de>
491
492 PR lto/41638
493 * target-def.h (TARGET_BUILTIN_DECL): Define.
494 (TARGET_INITIALIZER): Add TARGET_BUILTIN_DECL.
495 * target.h (struct gcc_target): Add builtin_decl target hook.
496 * doc/tm.texi (TARGET_BUILTIN_DECL): Document.
497 * lto-streamer-in.c (lto_get_builtin_tree): Fix handling of
498 target builtins.
499 * lto-streamer-out.c (lto_output_tree_pointers): Use sorry,
500 not gcc_unreachable.
501 (lto_output_builtin_tree): Sorry if the target does not support
502 streaming target builtins.
503 * config/rs6000/rs6000.c (TARGET_BUILTIN_DECL): Define.
504 (rs6000_builtin_decl): New function.
505 * config/i386/i386.c (TARGET_BUILTIN_DECL): Define.
506 (ix86_builtin_decl): New function.
507
508 2009-10-09 Jakub Jelinek <jakub@redhat.com>
509
510 PR preprocessor/41445
511 * c-ppoutput.c (do_line_change): New function.
512 (cb_line_change): Use it.
513 (scan_translation_unit): Call do_line_change if
514 avoid_paste or PREV_WHITE and token location is on a different line
515 than print.src_line.
516
517 PR debug/40521
518 * dwarf2out.c (dwarf2out_init): Test whether
519 HAVE_GAS_CFI_SECTIONS_DIRECTIVE is non-zero instead of checking
520 it is defined.
521
522 PR rtl-optimization/41646
523 * calls.c (expand_call): For BLKmode types returned in registers
524 avoid likely spilled hard regs in copy_blkmode_from_reg generated
525 insns.
526
527 2009-10-09 Richard Guenther <rguenther@suse.de>
528
529 PR tree-optimization/41634
530 * tree-ssa-dom.c (remove_local_expressions_from_table): Assert
531 we remove the correct elements.
532 (optimize_stmt): Make sure to update stmt operands before
533 optimizing redundancies.
534
535 2009-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
536
537 * config/s390/s390.md ("prefetch"): Remove stcmh for prefetching.
538
539 2009-10-09 Richard Guenther <rguenther@suse.de>
540
541 PR driver/41637
542 * lto-wrapper.c (ltrans_output_file, flto_out, args_name): New
543 globals.
544 (lto_wrapper_exit): New function.
545 (fatal): Use it.
546 (fatal_perror): Likewise.
547 (fork_execute): Use global args_name, do not free it.
548 (run_gcc): Use global ltrans_output_file, flto_out, do not free them.
549 * lto-streamer.h: Remove duplicate prototypes.
550
551 2009-10-09 Richard Guenther <rguenther@suse.de>
552
553 * cgraph.c (cgraph_create_edge): Check for NULL call_stmt
554 before calling stmt_can_throw_external.
555
556 2009-10-09 Eric Botcazou <ebotcazou@adacore.com>
557
558 PR tree-optimization/40071
559 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Build a ref-all
560 pointer if the original data reference doesn't conflict with the
561 created vector data reference. Fix long line.
562
563 2009-10-09 Uros Bizjak <ubizjak@gmail.com>
564
565 * config/i386/i386.md (any_div): New code iterator.
566 (u): Handle div and udiv.
567 (sgnprefix): Ditto.
568 (<u>divqi3): Macroize insn from {,u}divqi3 using any_div
569 code iterator.
570 (lfloor<MODEF:mode><SWI48:mode>2): Macroize insn from
571 lfloor<mode>{si,di}2 patterns using SWI48 mode iterator.
572 (lceil<MODEF:mode><SWI48:mode>2): Macroize insn from
573 lceil<mode>{si,di}2 patterns using SWI48 mode iterator.
574
575 2009-10-08 Joseph Myers <joseph@codesourcery.com>
576
577 * gcc.c (main): Remove trailing "." from diagnostics.
578
579 2009-10-08 Cary Coutant <ccoutant@google.com>
580
581 Add support for debugging with ICF (Identical Code Folding).
582 * calls.c (debug.h): New #include.
583 (emit_call_1): Call virtual_call_token debug hook.
584 * common.opt (-fenable-icf-debug): New option.
585 * dwarf2out.c (dwarf2_debug_hooks): Add entries for new hooks (two
586 locations in the source).
587 (poc_label_num): New variable.
588 (dcall_entry, vcall_entry): New typedefs.
589 (dcall_table, vcall_table): New variables.
590 (struct vcall_insn): New type.
591 (vcall_insn_table): New variable.
592 (DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION): New macros.
593 (size_of_dcall_table): New function.
594 (output_dcall_table): New function.
595 (size_of_vcall_table): New function.
596 (output_vcall_table): New function.
597 (dwarf2out_direct_call): New function.
598 (vcall_insn_table_hash): New function.
599 (vcall_insn_table_eq): New function.
600 (dwarf2out_virtual_call_token): New function.
601 (dwarf2out_virtual_call): New function.
602 (dwarf2out_init): Allocate new tables and sections.
603 (prune_unused_types): Mark DIEs referenced from direct call table.
604 (dwarf2out_finish): Output direct and virtual call tables.
605 * final.c (final_scan_insn): Call direct_call and virtual_call
606 debug hooks.
607 * debug.h (struct gcc_debug_hooks): Add direct_call,
608 virtual_call_token, virtual_call hooks.
609 (debug_nothing_uid): New function.
610 * debug.c (do_nothing_debug_hooks): Add dummy entries for new hooks.
611 (debug_nothing_uid): New function.
612 * dbxout.c (dbx_debug_hooks): Add dummy entries for new hooks.
613 (xcoff_debug_hooks): Likewise.
614 * sdbout.c (sdb_debug_hooks): Likewise.
615 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
616 * doc/invoke.texi (-fenable-icf-debug): New option.
617
618 2009-10-08 Alexandre Oliva <aoliva@redhat.com>
619
620 PR debug/41353
621 * regmove.c (regmove_backward_pass): Replace src with dst in the
622 debug insn, and check for dst before rather than after.
623
624 2009-10-08 Janis Johnson <janis187@us.ibm.com>
625
626 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Remove.
627 (TARGET_DELEGITIMIZE_ADDRESS): Likewise.
628
629 2009-10-08 Jan Hubicka <jh@suse.cz>
630
631 PR middle-end/41626
632 * cgraphbuild.c (record_reference): When parameter DATA is NULL,
633 do not mark cgraph nodes as needed.
634 (record_references_in_initializer): Add new only_vars parameter.
635 * cgraph.h (record_references_in_initializer): New parameter.
636 * varasm.c (assemble_variable): Update call.
637 * varpool.c (varpool_analyze_pending_decls): Always look for
638 referenced vars.
639
640 2009-10-08 Anatoly Sokolov <aesok@post.ru>
641
642 * config/avr/avr.c (last_insn_address) Remove variable.
643 (expand_prologue): Don't initialise last_insn_address variable.
644 (final_prescan_insn): Don't output insn size.
645 * config/avr/avr.opt (msize): Remove switch.
646 * doc/invoke.texi (AVR Options): Remove documentation of -msize
647 switch.
648
649 2009-10-08 Adam Nemet <anemet@caviumnetworks.com>
650
651 * combine.c (label_tick_ebb_start): Fix comment.
652 (combine_instructions): Set label_tick and label_tick_ebb_start before
653 calling setup_incoming_promotions. Start them from 1. Increment
654 label_tick instead of deriving it from the BB index. Rather than
655 comparing ticks use the block from the previous iteration to decide
656 whether to start a new EBB. Remove empty lines before function.
657
658 2009-10-08 Michael Matz <matz@suse.de>
659
660 PR middle-end/41573
661 * builtins.c (fold_builtin_isascii): Use fold_build2.
662 (fold_builtin_isdigit): Ditto.
663 * except.c (duplicate_eh_regions_1): Tolerate NULL labels.
664 * tree-cfg.c (struct rus_data, remove_useless_stmts_warn_notreached,
665 remove_useless_stmts_cond, remove_useless_stmts_tf,
666 remove_useless_stmts_tc, remove_useless_stmts_bind,
667 remove_useless_stmts_goto, remove_useless_stmts_label,
668 remove_useless_stmts_1, remove_useless_stmts,
669 pass_remove_useless_stmts): Remove.
670 * tree-pass.h (pass_remove_useless_stmts): Don't declare.
671 * passes.c (init_optimization_passes): Don't add
672 pass_remove_useless_stmts.
673 * tree-eh.c (lower_eh_constructs_2): Handle empty cleanups.
674 * tree.c (free_lang_data_in_decl): Don't clear DECL_INITIAL of
675 static constants.
676 * lto-symtab.c (lto_symtab_register_decl): Accepts DECL_INITIAL
677 for static constants.
678 * lto-streamer-out.c (output_gimple_stmt): Handle GIMPLE_NOP.
679 * lto-streamer-in.c (input_gimple_stmt): Handle GIMPLE_NOP.
680
681 2009-10-08 Richard Guenther <rguenther@suse.de>
682
683 * gimple.c (free_gimple_type_tables): New function.
684 * gimple.h (free_gimple_type_tables): Declare.
685
686 2009-10-07 Mark Heffernan <meheff@google.com>
687
688 * ipa-prop.c (ipa_print_node_params) Only print
689 names of named arguments.
690
691 2009-10-08 Rafael Avila de Espindola <espindola@google.com>
692
693 * gcc.c (LINK_COMMAND_SPEC): Pass libc with -pass-through if it is
694 being statically linked.
695
696 2009-10-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
697
698 * collect2.c (add_lto_object): Only define if OBJECT_FORMAT_NONE.
699
700 2009-10-08 Jan Hubicka <jh@suse.cz>
701
702 PR bootstrap/41620
703 * ipa.c (cgraph_externally_visible_p,
704 function_and_variable_visibility,
705 whole_program_function_and_variable_visibility): Skip non-finalized
706 nodes.
707
708 2009-10-08 Nick Clifton <nickc@redhat.com>
709
710 * config/mn10300/mn10300.h (CONSTANT_ADDRESS_P): Do not allow
711 CONST_DOUBLEs.
712
713 2009-10-08 Andreas Tobler <a.tobler@schweiz.org>
714
715 PR bootstrap/37739
716 * config.host: Use config/x-cflags-O1 for powerpc FreeBSD.
717
718 2009-10-07 Joseph Myers <joseph@codesourcery.com>
719
720 PR c/41182
721 * c-common.c (c_fully_fold_internal): Strip nops from the result
722 of recursive calls to c_fully_fold_internal.
723 (c_wrap_maybe_const): New.
724 (c_save_expr): Use c_wrap_maybe_const.
725 * c-common.h (c_wrap_maybe_const): Declare.
726 * c-typeck.c (build_conditional_expr, c_finish_stmt_expr,
727 build_binary_op): Use c_wrap_maybe_const.
728
729 2009-10-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
730
731 * real.c: Fix comment to reflect actual exponent size.
732
733 2009-10-08 Ben Elliston <bje@au.ibm.com>
734
735 * config/rs6000/a2.md: Add FSF comment header.
736
737 2009-10-07 Uros Bizjak <ubizjak@gmail.com>
738
739 * config/i386/i386.md (any_extend): New code iterator.
740 (u, s): New code attributes.
741 (sgnprefix): Ditto.
742 (DWIH): Rewrite as code iterator for SI and DI modes.
743 (DWI): Rewrite as mode attribute.
744 (dwi): New mode attribute.
745 (di): Depend on SI mode and DI mode.
746 (doubleint_general_operand): Remove mode attribute.
747
748 (*lea_1): Macroize insn from *lea_1_rex64 and *lea_1 patterns using
749 DWIH mode iterator.
750
751 (*add<mode>3_doubleword): Use DWIH as the base mode iterator.
752 (*sub<mode>3_doubleword): Ditto.
753
754 (mul<mode>3): Macroize expander from mul{hi,si,di}3 patterns
755 using SWIM248 mode iterator.
756 (*mul<mode>3_1): Macroize insn from mul{si,di}3_1 patterns
757 using SWI48 mode iterator.
758 (<u>mul<mode><dwi>3): Macroize expander from {,u}mul{sidi,diti}3
759 patterns using DWIH mode iterator and any_extend code iterator.
760 (<u>mulqihi3): Macroize expander from {,u}mulqihi3 patterns
761 using any_extend code iterator.
762 (*<u>mul<mode><dwi>3_1): Macroize insn from {,u}mul{sidi,diti}3_1
763 patterns using DWIH mode iterator and any_extend code iterator.
764 (*<u>mulqihi3_1): Macroize insn from {,u}mulqihi3_1 patterns
765 using any_extend code iterator.
766 (<s>mul<mode>3_highpart): Macroize expander from
767 {s,u}mul{si,di}3_highpart patterns using DWIH mode iterator
768 and any_extend code iterator.
769 (*<s>muldi3_highpart_1): Macroize insn from
770 *{s,u}muldi3_highpart_rex64 patterns using any_extend code iterator.
771 (*<s>mulsi3_highpart_1): Macroize insn from *{s,u}mulsi3_highpart_1
772 patterns using any_extend code iterator.
773 (*<s>mulsi3_highpart_zext): Macroize insn from
774 *{s,u}mulsi3_highpart_zext patterns using any_extend code iterator.
775
776 2009-10-07 Jakub Jelinek <jakub@redhat.com>
777
778 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Don't add
779 DW_AT_const_value if VAR_DIE already has DW_AT_abstract_origin
780 refering to a DIE with DW_AT_const_value.
781
782 2009-10-07 Vladimir Makarov <vmakarov@redhat.com>
783
784 PR middle-end/22072
785 * ira-lives.c (check_and_make_def_conflict): Process all operands.
786
787 2009-10-06 Jan Hubicka <jh@suse.cz>
788
789 * cgraph.c (cgraph_node_can_be_local): Handle externally visible nodes
790 correctly.
791
792 2009-10-06 Uros Bizjak <ubizjak@gmail.com>
793
794 * config/i386/i386.md (*lea_1_rex64, *lea_1, *lea_1_zext,
795 *lea_2_rex64): Move before *add<mode>_1 pattern.
796
797 2009-10-07 Jan Hubicka <jh@suse.cz>
798
799 * collect2.c (main): Add -fno-whole-program.
800 * gcc.c (set_collect_gcc_options): Do not remove whole program here.
801
802 2009-10-07 Jan Hubicka <jh@suse.cz>
803
804 * lto-symtab.c (lto_cgraph_replace_node): Assert that inline clones
805 has no address taken.
806 * cgraph.c (cgraph_mark_needed_node): Assert that inline clones are
807 never needed.
808 (cgraph_clone_node): Clear externally_visible flag for clones.
809 * cgraph.h (cgraph_only_called_directly_p,
810 cgraph_can_remove_if_no_direct_calls_p): New predicates.
811 * tree-pass.h (pass_ipa_whole_program_visibility): Declare.
812 * ipa-cp.c (ipcp_cloning_candidate_p): Use new predicate.
813 (ipcp_initialize_node_lattices, ipcp_estimate_growth,
814 ipcp_insert_stage): Likwise.
815 * cgraphunit.c (cgraph_decide_is_function_needed): Do not compute
816 externally_visible flag.
817 (verify_cgraph_node): Verify that inline clones look right.
818 (process_function_and_variable_attributes): Do not set
819 externally_visible flags.
820 (ipa_passes): Avoid executing small_ipa_passes at LTO stage; they've
821 been already run.
822 * lto-cgraph.c (lto_output_node): Assert that inline clones are not
823 boundaries.
824 * ipa-inline.c (cgraph_clone_inlined_nodes): Use new predicates;
825 clear externally_visible when turning into inline clones
826 (cgraph_mark_inline_edge): Use new predicates.
827 (cgraph_estimate_growth): Likewise.
828 (cgraph_decide_inlining): Likewise.
829 * ipa.c (cgraph_postorder): Likewise.
830 (cgraph_remove_unreachable_nodes): Likewise; sanity check
831 that inline clones are not needed.
832 (cgraph_externally_visible_p): New predicate.
833 (function_and_variable_visibility): Add whole_program parameter;
834 always set externally_visible flag; handle COMDAT function
835 privatization.
836 (local_function_and_variable_visibility): New function.
837 (gate_whole_program_function_and_variable_visibility): New function.
838 (whole_program_function_and_variable_visibility): New function.
839 (pass_ipa_whole_program_visibility): New function.
840 * passes.c (init_optimization_passes): Add whole program visibility
841 pass.
842 (do_per_function_toporder, function_called_by_processed_nodes_p): Do
843 not care about needed/reachable flags.
844 * varpool.c: Include flags.h
845 (decide_is_variable_needed): When doing LTO assume whole-program mode.
846 (varpool_finalize_decl): When we are in LTO read-back, all variables
847 are analyzed.
848 (varpool_analyze_pending_decls): Skip analyzis of analyzed vars.
849
850 2009-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
851
852 * config/s390/tpf.h (TARGET_DEFAULT): Remove MASK_HARD_FLOAT and
853 add MASK_HARD_DFP.
854
855 2009-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
856
857 * config.gcc: Don't include the makefile fragments intended for
858 libgcc.
859 * config/s390/fixdfdi.h: File removed.
860 * config/s390/libgcc-glibc.ver: File removed.
861 * config/s390/s390.h: Remove the fixdfdi.h hack.
862 * config/s390/t-crtstuff: File moved to libgcc dir.
863 * config/s390/t-linux: Likewise.
864 * config/s390/t-tpf: libgcc specific parts removed.
865 * config/s390/t-linux64: Likewise.
866
867 2009-10-06 Jerry Quinn <jlquinn@optonline.net>
868
869 * Makefile.in (lto-wrapper): Use COMPILER and ALL_COMPILERFLAGS.
870 (lto-compress.o): Likewise.
871
872 2009-10-07 Danny Smith <dannysmith@users.sourceforge.net>
873
874 PR target/41512
875 * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't propagate
876 dllexport to class members here.
877 (i386_pe_determine_dllimport_p): Only check static class data for
878 definition.
879 (i386_pe_encode_section_info): Don't recheck DECL_DLLIMPORT_P.
880 * config/i386/winnt-cxx.c (i386_pe_type_dllimport_p): Only check
881 functions for vague linkage.
882 (i386_pe_type_dllexport_p): Fix formatting.
883 (maybe_add_dllexport) New function.
884 (i386_pe_adjust_class_at_definition): Use it to propagate dllexport
885 to class members.
886
887 2009-10-07 Ben Elliston <bje@au.ibm.com>
888
889 * config/rs6000/a2.md: Remove duplicated lines.
890
891 2009-10-07 Ben Elliston <bje@au.ibm.com>
892
893 * config.gcc (powerpc*-*-*): Handle a2.
894 * config/rs6000/rs6000.md (cpu): Add ppca2. Include "a2.md".
895 * config/rs6000/a2.md: New file.
896 * config/rs6000/rs6000.opt (mno-update): New.
897 (mupdate): Return to using a mask, not a var.
898 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for a2.
899 (enum processor_type): Add PROCESSOR_PPCA2.
900 * config/rs6000/rs6000.c (ppca2_cost): New costs.
901 (rs6000_override_options): Add "a2" to processor_target_table.
902 Update rs6000_always_hint logic. Correctly set rs6000_cost for a2.
903 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=a2.
904
905 2009-10-06 Uros Bizjak <ubizjak@gmail.com>
906
907 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
908 Use explicit gen_truncxfsf2 and gen_truncxfdf2 references to avoid
909 reference to nonexistent gen_truncxfxf2 function.
910
911 2009-10-06 Uros Bizjak <ubizjak@gmail.com>
912
913 * config/i386/i386.md (SWI48, SDWIM, DWI): New mode iterators.
914 (DWIH, g, di, doubleint_general_operand): New mode attributes.
915 (general_operand): Handle TI mode.
916 (add<mode>3): Macroize expander from add{qi,hi,si,di,ti}3 patterns
917 using SDWIM mode iterator.
918 (*add<mode>3_doubleword): New insn_and_split pattern. Macroize
919 pattern from *add{di,ti}3_1 patterns and corresponding splitters
920 using DWI mode iterator.
921 (add<mode>3_carry): Macroize insn from add{qi,hi,si,di}3_carry
922 patterns using SWI mode iterator.
923 (*add<mode>3_cc): Macroize insn from add{si,di}3_cc patterns
924 using SWI48 mode iterator.
925 (*add<mode>_1): Ditto from add{si,di}_1 patterns.
926 (*add<mode>_2): Ditto from add{si,di}_2 patterns.
927 (*add<mode>_3): Ditto from add{si,di}_3 patterns.
928 (*add<mode>_5): Ditto from add{si,di}_5 patterns.
929 (sub<mode>3): Macroize expander from sub{qi,hi,si,di,ti}3 patterns
930 using SDWIM mode iterator.
931 (*sub<mode>3_doubleword): New insn_and_split pattern. Macroize
932 pattern from *sub{di,ti}3_1 patterns and corresponding splitters
933 using DWI mode iterator.
934 (sub<mode>3_carry): Macroize insn from sub{qi,hi,si,di}3_carry
935 patterns using SWI mode iterator.
936 (*sub<mode>_1): Ditto from from sub{qi,hi,si,di}_1 patterns.
937 (*sub<mode>_2): Ditto from sub{qi,hi,si,di}_2 patterns.
938 (*sub<mode>_3): Ditto from sub{qi,hi,si,di}_3 patterns.
939 (<plusminus_insn>xf3): Macroize expander from addxf3 and subxf3
940 patterns using plusminus code iterator.
941 (<plusminus_insn><mode>3): Macroize expander from add<mode>3 and
942 sub<mode>3 patterns using plusminus code iterator.
943 * config/i386/i386.c (override_options): Update the call to
944 gen_subdi_carry_rex64 for renamed function.
945 (ix86_expand_int_addcc): Update calls to gen_subdi3_carry_rex64
946 and gen_adddi3_carry_rex64 for renamed functions. Use indirect
947 calls to instruction expanders.
948
949 2009-10-06 Martin Jambor <mjambor@suse.cz>
950
951 PR bootstrap/41395
952 * opts.c (decode_options): Run IPA-SRA at -O2.
953
954 2009-10-06 Richard Guenther <rguenther@suse.de>
955
956 * lto-symtab.c (lto_symtab_entry_hash): Hash strings, not pointers.
957
958 2009-10-06 Tobias Burnus <burnus@net-b.de>
959
960 PR lto/41591
961 * doc/invoke.texi (-flto,-fwhole-program): Make clear that the
962 -flto and -fwhole-program flags can be combined.
963
964 2009-10-06 Ryan Mansfield <rmansfield@qnx.com>
965
966 PR driver/41217
967 * gcc.c (process_command): Check that -o argument was specified.
968
969 2009-10-06 Jerry Quinn <jlquinn@optonline.net>
970
971 * gimple.c (gimple_type_hash): Use CONST_CAST_TREE to fix compilation.
972
973 2009-10-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
974
975 * c.opt (Wjump-misses-init): Fix typo to enable for ObjC.
976 * doc/invoke.texi (Warning Options): Annotate allowed languages
977 for -Wunsuffixed-float-constants.
978
979 2009-10-05 Jakub Jelinek <jakub@redhat.com>
980
981 * dwarf2out.c (modified_type_die): Don't add DW_AT_name to
982 DW_TAG_{const,volatile}_type if its DW_AT_type already has the
983 same name and isn't the main variant.
984
985 PR debug/41558
986 * dwarf2out.c (loc_by_reference): Removed.
987 (dw_loc_list_1): New function.
988 (dw_loc_list): Remove toplev argument, add want_address argument.
989 Don't look at decl_by_reference_p at all. Use dw_loc_list_1.
990 (loc_list_from_tree) <case VAR_DECL>: Pass want_address rather than
991 want_address == 2 to dw_loc_list. For successful dw_loc_list
992 set have_address to 1 only if want_address is not 0.
993
994 2009-10-05 Richard Sandiford <rdsandiford@googlemail.com>
995
996 * config/mips/mips-protos.h (mips_trampoline_code_size): Declare.
997 * config/mips/mips.h (TRAMPOLINE_SIZE): Redefine as the size of
998 a code block followed by two pointers.
999 (TRAMPOLINE_ALIGNMENT): Define to 64 for 32-bit targets too.
1000 * config/mips/mips.c (MIPS_LOAD_PTR): New macro.
1001 (MIPS_MOVE): Likewise.
1002 (MIPS_LUI): Likewise.
1003 (MIPS_JR): Likewise.
1004 (MIPS_BAL): Likewise.
1005 (MIPS_NOP): Likewise.
1006 (mips_asm_trampoline_template): Delete.
1007 (mips_trampoline_code_size): New function.
1008 (mips_trampoline_init): Add shorter sequences for all cases
1009 except Pmode == DImoe && !TARGET_USE_PIC_FN_ADDR_REG.
1010 Calculate the opcodes directly, rather than copying from a template.
1011 Only flush the code part of the trampoline.
1012 (TARGET_ASM_TRAMPOLINE_TEMPLATE): Delete.
1013
1014 2009-10-05 Richard Sandiford <rdsandiford@googlemail.com>
1015
1016 * config/mips/mips.h (DWARF_FRAME_RETURN_COLUMN): Replace
1017 GP_REG_FIRST + 31 with RETURN_ADDR_REGNUM.
1018 (INCOMING_RETURN_ADDR_RTX): Likewise.
1019 (FUNCTION_PROFILER): Likewise. Replace GP_REG_FIRST + 1
1020 with AT_REGNUM.
1021 * config/mips/sdemtk.h (FUNCTION_PROFILER): Replace GP_REG_FIRST + 31
1022 with RETURN_ADDR_REGNUM.
1023 (MIPS_SAVE_REG_FOR_PROFILING_P): Likewise.
1024 * config/mips/mips.c (mips16_build_call_stub): Replace
1025 GP_REG_FIRST + 31 with RETURN_ADDR_REGNUM, GP_REG_FIRST + 1
1026 with AT_REGNUM and 31 with RETURN_ADDR_REGNUM.
1027 (mips_print_operand_punctuation): Likewise.
1028 (mips_frame_set): Likewise.
1029 (mips16e_output_save_restore): Likewise.
1030 (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
1031 (mips_save_reg_p): Likewise.
1032 (mips_return_addr): Likewise.
1033 (mips_set_return_address): Likewise.
1034 (mips_direct_save_slot_move_p): Likewise.
1035 (mips_output_function_prologue): Likewise.
1036 (mips_restore_reg): Likewise.
1037 (mips_expand_epilogue): Likewise.
1038 (mips_epilogue_uses): Likewise.
1039 * config/mips/mips.md (RETURN_ADD_REGNUM): Define.
1040 (*mov<mode>_ra): Use it instead of a hard-coded 31.
1041 (clear_hazard_<mode>): Likewise.
1042 (call_internal): Likewise.
1043 (call_internal_direct): Likewise.
1044 (call_direct_split): Likewise.
1045 (call_value_internal): Likewise.
1046 (call_value_split): Likewise.
1047 (call_value_internal_direct): Likewise.
1048 (call_value_direct_split): Likewise.
1049 (call_value_multiple_internal): Likewise.
1050 (call_value_multiple_split): Likewise.
1051
1052 2009-10-05 Eric Botcazou <ebotcazou@adacore.com>
1053 Jakub Jelinek <jakub@redhat.com>
1054
1055 PR rtl-optimization/41511
1056 * combine.c (record_value_for_reg): Pass explicit values as argument
1057 to get_last_value_validate.
1058 (get_last_value_validate): Document INSN parameter.
1059 For non-readonly MEMs, assume they might have been modified if INSN
1060 was in another basic block.
1061 (get_last_value): Minor reformatting.
1062
1063 2009-10-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
1064
1065 PR tree-opt/40992
1066 * final.c (asm_str_count): Split out from asm_insn_count.
1067 * rtl.h (asm_str_count): New prototype.
1068 * tree-inline (estimate_num_insns) <case GIMPLE_ASM>: Call
1069 asm_str_count.
1070
1071 2009-10-05 Sriraman Tallam <tmsriram@google.com>
1072
1073 * doc/plugins.texi: Change plugin_pass to register_pass_info.
1074
1075 2009-10-05 Basile Starynkevitch <basile@starynkevitch.net>
1076 Rafael Espindola <espindola@google.com>
1077
1078 * gengtype.c (write_types): Moved call to write_func_for_structure
1079 into seperate loops.
1080
1081 2009-10-05 Richard Guenther <rguenther@suse.de>
1082
1083 PR lto/41281
1084 * lto-cgraph.c (output_cgraph): Output toplevel asms.
1085 (input_cgraph_1): Input toplevel asms.
1086
1087 2009-10-05 Richard Guenther <rguenther@suse.de>
1088
1089 PR lto/40902
1090 * lto-symtab.c (lto_compatible_attributes_p): Remove.
1091 (external_aggregate_decl_p): Likewise.
1092 (lto_symtab_compatible): Re-structure. Remove dead code.
1093 For variables ignore toplevel qualifiers when comparing types.
1094 Issue warnings, not errors for mismatched user-alignment.
1095
1096 2009-10-05 Richard Guenther <rguenther@suse.de>
1097
1098 PR lto/41552
1099 PR lto/41487
1100 * lto-symtab.c (struct lto_symtab_base_def): Remove.
1101 (struct lto_symtab_identifier_def): Likewise.
1102 (struct lto_symtab_decl_def): Likewise.
1103 (struct lto_symtab_entry_def): New.
1104 (lto_symtab_identifier_t): Rename to ...
1105 (lto_symtab_entry_t): ... this.
1106 (lto_symtab_decls): Remove.
1107 (lto_symtab_base_hash): Rename to ...
1108 (lto_symtab_entry_hash): ... this.
1109 (lto_symtab_base_eq): Rename to ...
1110 (lto_symtab_entry_eq): ... this.
1111 (lto_symtab_base_marked_p): Rename to ...
1112 (lto_symtab_entry_marked_p): ... this.
1113 (lto_symtab_identifier_marked_p): Remove.
1114 (lto_symtab_decl_marked_p): Likewise.
1115 (lto_symtab_maybe_init_hash_tables): Rename to ...
1116 (lto_symtab_maybe_init_hash_table): ... this.
1117 (lto_symtab_set_resolution_and_file_data): Remove.
1118 (lto_symtab_register_decl): New function.
1119 (lto_symtab_get_identifier): Remove.
1120 (lto_symtab_get): New function.
1121 (lto_symtab_get_resolution): Adjust.
1122 (lto_symtab_get_identifier_decl): Remove.
1123 (lto_symtab_set_identifier_decl): Likewise.
1124 (lto_symtab_merge_decl): Rename to ...
1125 (lto_symtab_merge): ... this. Rewrite.
1126 (lto_symtab_merge_var): Remove.
1127 (lto_symtab_merge_fn): Likewise.
1128 (lto_symtab_prevailing_decl): Adjust.
1129 (lto_cgraph_replace_node): New function.
1130 (lto_symtab_merge_decls_2): Likewise.
1131 (lto_symtab_merge_decls_1): Likewise.
1132 (lto_symtab_fixup_var_decls): Likewise.
1133 (lto_symtab_resolve_symbols): Likewise.
1134 (lto_symtab_merge_decls): Likewise.
1135 (lto_symtab_prevailing_decl): Adjust.
1136 (lto_symtab_get_symtab_def): Remove.
1137 (lto_symtab_get_file_data): Likewise.
1138 (lto_symtab_clear_resolution): Adjust.
1139 (lto_symtab_clear_resolution): Likewise.
1140 * lto-cgraph.c (input_edge): Do not merge cgraph nodes here.
1141 (input_cgraph_1): Likewise.
1142 * lto-streamer-in.c (get_resolution): Do not provide fake
1143 symbol resolutions here.
1144 (deferred_global_decls): Remove.
1145 (lto_register_deferred_decls_in_symtab): Likewise.
1146 (lto_register_var_decl_in_symtab): Change signature, register
1147 variable via lto_symtab_register_decl.
1148 (lto_register_function_decl_in_symtab): Likewise.
1149 (lto_read_tree): Adjust.
1150 * lto-streamer.h (lto_register_deferred_decls_in_symtab): Remove.
1151 (lto_symtab_merge_var): Likewise.
1152 (lto_symtab_merge_fn): Likewise.
1153 (lto_symtab_register_decl): Declare.
1154 (lto_symtab_merge_decls): Likewise.
1155
1156 2009-10-05 Richard Guenther <rguenther@suse.de>
1157
1158 PR tree-optimization/23821
1159 * tree-vrp.c (vrp_finalize): Do not perform copy propagation.
1160 * tree-ssa-dom.c (cprop_operand): Do not propagate copies into
1161 simple IV increments.
1162
1163 2009-10-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1164
1165 * config/arm/arm.c (arm_override_options): Really initialize
1166 flag_dwarf2_cfi_asm to 0.
1167
1168 2009-10-05 Doug Kwan <dougkwan@google.com>
1169
1170 PR rtl-optimization/41574
1171 * combine.c (distribute_and_simplify_rtx): Quit if RTX mode is
1172 floating point and we are not doing unsafe math optimizations.
1173
1174 2009-10-03 Simon Baldwin <simonb@google.com>
1175 Cary Coutant <ccoutant@google.com>
1176 Rafael Espindola <espindola@google.com>
1177 Richard Guenther <rguenther@suse.de>
1178 Jan Hubicka <jh@suse.cz>
1179 Doug Kwan <dougkwan@google.com>
1180 H.J. Lu <hongjiu.lu@intel.com>
1181 Bill Maddox <maddox@google.com>
1182 Ryan Mansfield <rmansfield@qnx.com>
1183 Diego Novillo <dnovillo@google.com>
1184 Ollie Wild <aaw@google.com>
1185 Kenneth Zadeck <zadeck@naturalbridge.com>
1186
1187 * lto-cgraph.c: New file.
1188 * lto-compress.c: New file.
1189 * lto-compress.h: New file.
1190 * lto-opts.c: New file.
1191 * lto-section-in.c: New file.
1192 * lto-section-out.c: New file.
1193 * lto-streamer-in.c: New file.
1194 * lto-streamer-out.c: New file.
1195 * lto-streamer.c: New file.
1196 * lto-streamer.h: New file.
1197 * lto-symtab.c: New file.
1198 * lto-wpa-fixup.c: New file.
1199 * lto-wrapper.c: New file.
1200
1201 2009-10-03 Simon Baldwin <baldwin@google.com>
1202 Ben Elliston <bje@au.ibm.com>
1203 Rafael Espindola <espindola@google.com>
1204 Nathan Froyd <froydnj@codesourcery.com>
1205 Jan Hubicka <jh@suse.cz>
1206 Doug Kwan <dougkwan@google.com>
1207 Diego Novillo <dnovillo@google.com>
1208 Kenneth Zadeck <zadeck@naturalbridge.com>
1209
1210 * Makefile.in (enable_lto): New.
1211 (site.exp): If @enable_lto@ is set to 'yes' define ENABLE_LTO.
1212 (LINKER_PLUGIN_API_H): Define.
1213 (LTO_SYMTAB_H): Define.
1214 (LTO_STREAMER_H): Define.
1215 (TREE_VECTORIZER_H): Define.
1216 (INCLUDES): Add LIBELFINC.
1217 (OBJS-common): Add lto-cgraph.o, lto-streamer-in.o,
1218 lto-streamer-out.o, lto-section-in.o, lto-section-out.o, lto-symtab.o,
1219 lto-opts.o, lto-streamer.o, lto-wpa-fixup.o, lto-compress.o.
1220 (MOSTLYCLEANFILES): Add lto-wrapper$(exeext)
1221 (native): Add lto-wrapper$(exeext)
1222 (lto-compress.o, lto-cgraph.o, lto-streamer-in.o,
1223 lto-streamer-out.o, lto-section-in.o, lto-section-out.o,
1224 lto-symtab.o, lto-opts.o, lto-streamer.o, lto-wpa-fixup.o): New rules.
1225 (gimple.o): Add dependency on LTO_HEADER_H and LTO_SECTION_OUT_H.
1226 (varasm.o): Add dependency on tree-iterator.h.
1227 (cgraph.o): Add dependency on cif-code.def.
1228 (ipa-reference.o): Add dependency on LTO_STREAMER_H.
1229 (ipa-pure-const.o): Likewise.
1230 (GTFILES): Add lto-symtab.c.
1231 (install-lto-wrapper): New.
1232 * configure.ac: If 'lto' is in enable_languages, define ENABLE_LTO
1233 and enable_lto. If LIBELFLIBS is set, define HAVE_libelf.
1234 * config.in: Regenerate.
1235
1236 2009-10-03 Rafael Espindola <espindola@google.com>
1237 Diego Novillo <dnovillo@google.com>
1238
1239 * cgraphunit.c (ipa_passes): Prevent lto1 from calling
1240 ipa_write_summaries.
1241 Call execute_ipa_summary_passes for all_regular_ipa_passes and
1242 all_lto_gen_passes.
1243 (cgraph_optimize): Make extern.
1244
1245 2009-10-03 Nathan Froyd <froydnj@codesourcery.com>
1246 Kenneth Zadeck <zadeck@naturalbridge.com>
1247
1248 * toplev.c (in_lto_p): Declare.
1249 * collect2.c (scan_prog_file): Read all the output when reading
1250 information for LTO.
1251 (enum lto_mode_d): Declare.
1252
1253 2009-10-03 Richard Guenther <rguenther@suse.de>
1254 Diego Novillo <dnovillo@google.com>
1255
1256 * gimple.c: Include target.h and alias.h.
1257 (gimple_types): Declare.
1258 (type_hash_cache): Declare.
1259 (gimple_alloc_stat): Make extern.
1260 (gimple_build_eh_must_not_throw): Call
1261 gimple_eh_must_not_throw_set_fndecl.
1262 (struct type_pair_d): Declare.
1263 (type_pair_t): Declare.
1264 (type_pair_hash): New.
1265 (type_pair_eq): New.
1266 (lookup_type_pair): New.
1267 (gimple_force_type_merge): New.
1268 (compare_type_names_p): New.
1269 (compare_field_offset): New.
1270 (gimple_types_compatible_p): New.
1271 (struct sccs): Declare.
1272 (next_dfs_num): Declare.
1273 (iterative_hash_gimple_type): New.
1274 (visit): New.
1275 (iterative_hash_type_name): New.
1276 (iterative_hash_gimple_type): New.
1277 (gimple_type_hash): New.
1278 (gimple_type_eq): New.
1279 (gimple_register_type): New.
1280 (print_gimple_types_stats): New.
1281 (gimple_signed_or_unsigned_type): New.
1282 (gimple_unsigned_type): New.
1283 (gimple_signed_type): New.
1284 (gimple_get_alias_set): New.
1285 (gimple_decl_printable_name): Do not use DMGL_TYPES.
1286 * gimple.h (gimple_alloc, gimple_alloc_stat): Declare.
1287 (gimple_force_type_merge): Declare.
1288 (gimple_types_compatible_p): Declare.
1289 (gimple_register_type): Declare.
1290 (print_gimple_types_stats): Declare.
1291 (gimple_unsigned_type): Declare.
1292 (gimple_signed_type): Declare.
1293 (gimple_get_alias_set): Declare.
1294 (gimple_eh_must_not_throw_set_fndecl): New.
1295
1296 2009-10-03 Jan Hubicka <jh@suse.cz>
1297 Kenneth Zadeck <zadeck@naturalbridge.com>
1298
1299 * ipa-pure-const.c: Include lto-streamer.h.
1300 (register_hooks): Factor out of ...
1301 (generate_summary): ... here.
1302 (pure_const_write_summary): New.
1303 (pure_const_read_summary): New.
1304 (pass_ipa_pure_const): Add pure_const_write_summary and
1305 pure_const_read_summary.
1306 * ipa-reference.c: Include lto-streamer.h.
1307 (add_new_function): New.
1308 (remove_node_data): New.
1309 (duplicate_node_data): New.
1310 (ipa_init): Guard against multiple calls.
1311 Move hook setup from analyze_function.
1312 (write_node_summary_p): New.
1313 (ipa_reference_write_summary): New.
1314 (ipa_reference_read_summary): New.
1315 (pass_ipa_reference): Add ipa_reference_write_summary and
1316 ipa_reference_read_summary.
1317 * cgraph.h (cgraph_local_info): Add field lto_file_data.
1318 (struct cgraph_edge): Add fields lto_stmt_uid and
1319 call_stmt_cannot_inline_p.
1320 (cgraph_optimize): Declare.
1321 (cgraph_decide_is_function_needed): Declare.
1322 (reset_inline_failed): Declare.
1323 (enum LTO_cgraph_tags): Declare.
1324 (LTO_cgraph_tag_names): Declare.
1325 (LCC_NOT_FOUND): Define.
1326
1327 2009-10-03 Doug Kwan <dougkwan@google.com>
1328 Rafael Espindola <espindola@google.com>
1329 Jan Hubicka <jh@suse.cz>
1330 Diego Novillo <dnovillo@google.com>
1331 Kenneth Zadeck <zadeck@naturalbridge.com>
1332
1333 * passes.c (all_regular_ipa_passes): New.
1334 (all_ipa_passes): Rename to all_small_ipa_passes.
1335 (init_optimization_passes): Init all_regular_ipa_passes.
1336 * tree-pass.h (all_regular_ipa_passes): New.
1337 (all_ipa_passes): Rename to all_small_ipa_passes.
1338 * passes.c (all_lto_gen_passes): New.
1339 (init_optimization_passes): Initialize all_lto_gen_passes.
1340 (execute_ipa_summary_passes): Make non-static.
1341 (ipa_write_summaries_1): New.
1342 (ipa_write_summaries_2): New.
1343 (ipa_write_summaries): New.
1344 (ipa_write_summaries_of_cgraph_node_set): New.
1345 (ipa_read_summaries_1): New.
1346 (ipa_read_summaries): New.
1347 (execute_ipa_pass_list): Call cgraph_process_new_functions.
1348 (execute_regular_ipa_pass_list): Remove.
1349 (init_optimization_passes): Schedule
1350 pass_rebuild_cgraph_edges and pass_early_inline outside
1351 of pass_all_early_optimizations. Document reason.
1352 (pass_ipa_lto_gimple_out, pass_ipa_lto_wpa_fixup,
1353 pass_ipa_lto_finish_out): New pass.
1354 (pass_ipa_summary_passes): Start and stop timers if the pass has them.
1355 (execute_all_ipa_transforms): New.
1356 (execute_one_pass): Don't call execute_one_ipa_transform_pass.
1357 (dump_properties, debug_properties): New.
1358 * tree-optimize.c (gate_all_early_local_passes): Return
1359 false if we are in lto1.
1360 (tree_rest_of_compilation): Call execute_all_ipa_transforms.
1361 * tree-pass.h (execute_all_ipa_transforms): Declare.
1362 (pass_ipa_function_and_variable_visibility): Declare.
1363 (pass_ipa_early_inline): Declare.
1364 (pass_ipa_lto_gimple_out): Declare.
1365 (pass_ipa_lto_wpa_fixup): Declare.
1366 (pass_ipa_lto_finish_out): Declare.
1367 (all_small_ipa_passes, all_regular_ipa_passes,
1368 all_lto_gen_passes): Declare.
1369 (execute_ipa_summary_passes): Declare.
1370 (execute_all_ipa_transforms): Declare.
1371 (ipa_write_summaries): Declare
1372 (ipa_write_summaries_of_cgraph_node_set): Declare.
1373 (ipa_read_summaries): Declare.
1374
1375 2009-10-03 Doug Kwan <dougkwan@google.com>
1376 Ollie Wild <aaw@google.com>
1377
1378 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do nothing in WPA.
1379
1380 * collect2.c (LTO_MODE_NONE, LTO_MODE_LTO, LTO_MODE_WPA): New enums.
1381 (lto_mode): New variable.
1382 (maybe_run_lto_and_relink): Handle the -fwpa option.
1383 (main): Handle the -fwpa option.
1384 (maybe_unlink_list): New function.
1385 * gcc.c (link_lto_options): Replace -flto with -fwpa.
1386 * common.opt (flto): New flag.
1387 * toplev.c (flag_generate_lto): Declare.
1388
1389 2009-10-03 Simon Baldwin <simonb@google.com>
1390
1391 * common.opt (flto-compression-level): New flag.
1392
1393 * opts.c: Include lto-opts.h.
1394 (handle_option): Call lto_register_user_option for each
1395 valid option handled.
1396 (decode_options): Clear registered options before the options
1397 handling loop.
1398
1399 2009-10-03 Cary Coutant <ccoutant@google.com>
1400
1401 * collect2.c (is_elf): New function.
1402 (scan_prog_file): Require LTO object to be in ELF format.
1403
1404 2009-10-03 Rafael Espindola <espindola@google.com>
1405
1406 * gcc.c (LINK_COMMAND_SPEC): Use the -pass-through option to pass
1407 libgcc to the linker.
1408
1409 * ipa-cp.c (cgraph_gate_cp): Return false if LTRANS is running.
1410
1411 * collect2.c (maybe_run_lto_and_relink): Execute lto-wrapper.
1412 (collect_execute): Add flags argument. Pass flags to pex_run. Update
1413 all callers.
1414 * collect2.h (collect_execute): Add flags argument.
1415 * tlink.c (tlink_execute): Update call to collect_execute.
1416 * gcc.c (main): Set the COLLECT_LTO_WRAPPER environment variable.
1417 (use_linker_plugin): New.
1418 (use_linker_plugin_spec_function): New.
1419 (LINK_COMMAND_SPEC): Pass plugin options to the linker.
1420 (linker_plugin_file_spec): New.
1421 (lto_wrapper_spec): New.
1422 (lto_gcc_spec): New.
1423 (static_specs): Add linker_plugin_file, lto_wrapper and lto_gcc.
1424 (static_spec_functions): Add use-linker-plugin.
1425 (process_command): Handle -use-linker-plugin.
1426 (main): Use lto_wrapper_spec instead of lto_wrapper. Set
1427 linker_plugin_file_spec and lto_gcc_spec.
1428 (use_linker_plugin_spec_function): New.
1429
1430 2009-10-03 Richard Guenther <rguenther@suse.de>
1431
1432 PR lto/41547
1433 PR lto/41548
1434 * tree.h (is_lang_specific): Include LANG_TYPE.
1435 * tree.c (find_decls_types_r): Manually add interesting parts
1436 of TYPE_FIELDS. Walk BINFO_VIRTUALS. Do not walk TYPE_METHODS.
1437
1438 * gimple.c (type_pair_hash): Make symmetric.
1439 (type_pair_eq): Likewise.
1440 (lookup_type_pair): Increase initial hashtable size.
1441 (gimple_force_type_merge): Rely on type-pair symmetry.
1442 (visit): Remove excessive checking code.
1443 (iterative_hash_type_name): Do not hash TYPE_NAME of anonymous unions.
1444 (gimple_register_type): Remove getenv calls, shrink initial
1445 hashtable size.
1446
1447 PR middle-end/41502
1448 * cgraphunit.c (ipa_passes): Do not remove bodies of extern
1449 inline functions if not generating lto output.
1450
1451 PR lto/41379
1452 * toplev.c (finalize): In WPA mode remove the asm file.
1453
1454 2009-10-03 Doug Kwan <dougkwan@google.com>
1455
1456 * ipa-inline.c (cgraph_mark_inline): Check
1457 edge->call_stmt_cannot_inline_p instead of calling
1458 gimple_call_cannot_inline_p.
1459 (cgraph_decide_inlining): Do nothing in WPA and LTRANS.
1460 (cgraph_gate_ipa_early_inlining): Return false if in_lto_p is set.
1461 (inline_generate_summary): Do nothing in LTRANS.
1462 * cgraph.c (initialize_inline_failed): Make sure e->call_stmt
1463 exists before calling gimple_call_cannot_inline_p.
1464 (cgraph_create_edge): Set edge->call_stmt_cannot_inline_p.
1465 (cgraph_clone_edge): Add argument STMT_UID. Modify all callers.
1466 Update new_edge->lto_stmt_uid.
1467 * cgraphbuild.c (reset_inline_failed): New.
1468
1469 * common.opt (fwpa): New flag.
1470 (fltrans): New option.
1471 * gcc.c (gcc_lto_option_t): New type.
1472 (current_lto_option): New variable.
1473 (lto_single_spec_function): Remove and is replaced by ..
1474 (lto_option_spec_function): New function.
1475 (LINK_COMMAND_SPEC): Use link_lto_option spec instead of just
1476 passing the -flto flag.
1477 (cc1_options): Separate non-LTO related parts into ..
1478 (cc1_non_lto_options): Non-LTO related options shared by all FEs.
1479 (lto1_options): New spec for lto FE.
1480 (link_lto_options): New spec for handling LTO flags in linker.
1481 (invoke_lto_single): Re-format to fit in 80 column. Replace
1482 lto-single with lto-option.
1483 (static_specs): Add cc1_non_lto_options, lto1_options and
1484 link_lto_options.
1485 (static_spec_function): Replace lto-single with lto-option.
1486 (process_command): Handle -flto, -fwpa and -fltran by setting
1487 current_lto_option and not passing it to subprocess unconditionally.
1488
1489 2009-10-03 Bill Maddox <maddox@google.com>
1490
1491 Add `gcc' driver support for link-time code generation (LTO).
1492
1493 * collect2.c (enum pass): Add new literal PASS_LTOINFO.
1494 (lto_flag, lto_objects, lto_o_file): New variables.
1495 (struct lto_object, struct lto_object_list): New structures.
1496 (collect_exit, handler): Remove LTO temporary output file on exit.
1497 (add_lto_object): New function.
1498 (maybe_run_lto_and_relink): New function. Perform link time code
1499 generation and relinking for object files containing LTO information.
1500 (main): Invoke maybe_run_lto_and_relink().
1501 (dump_argv): New function. For debugging, currently disabled.
1502 (scan_prog_file): Add LTO information pass.
1503 * gcc.c (LINK_COMMAND_SPEC): Pass `-flto' switch to linker, i.e.,
1504 collect2.
1505 * toplev.c (compile_file): Emit assembler directive to create
1506 the `gnu_lto_v1' marker symbol when compiling with `-flto'.
1507
1508 2009-10-03 Diego Novillo <dnovillo@google.com>
1509
1510 * c.opt: Add LTO to warn_abi and warn_psabi.
1511
1512 * tree.c (fld_worklist_push): Rename from PUSH. Convert to static
1513 inline function. Ignore language-specific nodes. Update all users.
1514 (find_decls_types_r): Do not traverse the subtrees of
1515 language-specific nodes. Do not traverse DECL_INITIAL for TYPE_DECLs.
1516 * tree.h (is_lang_specific): New.
1517 * langhooks.h (struct lang_hooks_for_decls): Remove
1518 may_need_assembler_name_p. Update all users.
1519
1520 * c-common.c (set_builtin_user_assembler_name): Move ...
1521 * builtins.c (set_builtin_user_assembler_name): ... here.
1522 (is_builtin_name): Add comment
1523 (is_builtin_fn): New.
1524 * except.c (output_ttype): Only call
1525 lookup_type_for_runtime if TYPE is not a runtime type.
1526
1527 * passes.c (register_pass): Call position_pass on
1528 all_small_ipa_passes, all_regular_ipa_passes and all_lto_gen_passes.
1529 * timevar.def (TV_IPA_LTO_GIMPLE_IO): Define.
1530 (TV_IPA_LTO_DECL_IO): Define.
1531 (TV_IPA_LTO_CGRAPH_IO): Define.
1532 (TV_LTO): Define.
1533 (TV_WHOPR_WPA): Define.
1534 (TV_WHOPR_WPA_IO): Define.
1535 (TV_WHOPR_LTRANS): Define.
1536 (TV_WHOPR_WPA_FIXUP): Define.
1537 (TV_WHOPR_WPA_LTRANS_EXEC): Define.
1538 * tree-cfg.c (tree_node_can_be_shared): Make extern.
1539 * tree-flow.h (tree_node_can_be_shared): Declare.
1540 * tree-inline.c (tree_can_inline_p): Check that E has a
1541 statement associated with it.
1542 * tree.c (free_lang_data_in_binf): Factor out of ...
1543 (free_lang_data_in_type): ... here.
1544 Call RECORD_OR_UNION_TYPE_P.
1545 (need_assembler_name_p): Ignore DECL if it does not have TREE_PUBLIC
1546 set. Call lang_hooks.decls.may_need_assembler_name_p if set.
1547 (free_lang_data_in_decl): Do not clear DECL_CONTEXT for CONST_DECLs.
1548 (free_lang_data): Set debug_info_level to DINFO_LEVEL_NONE. Set
1549 write_symbols to NO_DEBUG. Set debug_hooks to do_nothing_debug_hooks.
1550 (gate_free_lang_data): Return true if flag_generate_lto is set.
1551 (walk_tree_1): Call RECORD_OR_UNION_TYPE_P.
1552 * c-common.h (set_builtin_user_assembler_name): Move ...
1553 * tree.h (set_builtin_user_assembler_name): ... here.
1554
1555 * common.opt (flto-report): New flag.
1556 * opts.c (complain_wrong_lang): Do not complain if running lto1.
1557 * collect2.c (scan_prog_file): Send the error output of
1558 'nm' to HOST_BIT_BUCKET.
1559
1560 2009-10-03 Ollie Wild <aaw@google.com>
1561
1562 * langhooks-def.h (lhd_begin_section): New function declaration.
1563 (lhd_write_section): New function declaration.
1564 (lhd_end_section): New function declaration.
1565 (LANG_HOOKS_BEGIN_SECTION): New macro.
1566 (LANG_HOOKS_WRITE_SECTION_DATA): New macro.
1567 (LANG_HOOKS_END_SECTION): New macro.
1568 (LANG_HOOKS_LTO): New macro.
1569 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_LTO.
1570 * langhooks.c (output.h): Add include.
1571 (saved_section): New static variable.
1572 (lhd_begin_section): New function.
1573 (lhd_write_section_data): New function.
1574 (lhd_end_section): New function.
1575 * langhooks.h (struct lang_hooks_for_lto): New structure.
1576 (struct lang_hooks): Add member lto.
1577 * Makefile.in (langhooks.o): Add dependency on output.h.
1578
1579 * c-opts.c (c_common_post_options): Handle -flto and -fwhopr.
1580
1581 2009-10-03 Richard Guenther <rguenther@suse.de>
1582
1583 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
1584 Handle LTO.
1585
1586 2009-10-03 Simon Baldwin <simonb@google.com>
1587 Richard Guenther <rguenther@suse.de>
1588 Janis Johnson <janis187@us.ibm.com>
1589 Doug Kwan <dougkwan@google.com>
1590 Diego Novillo <dnovillo@google.com>
1591 Ramana Radhakrishnan <ramana.r@gmail.com>
1592 Ollie Wild <aaw@google.com>
1593
1594 * doc/install.texi: Add documentation for libelf and --enable-lto.
1595 * doc/invoke.texi: Document -fwpa, -flto, -fwhopr, -fltrans,
1596 -flto-report, -flto-compression-level and -use-linker-plugin.
1597 * doc/sourcebuild.texi: Document use of zlib. Document lto-plugin.
1598 Add section for LTO Testing.
1599
1600 2009-10-02 Cary Coutant <ccoutant@google.com>
1601
1602 Add support for comdat type sections for DWARF v4.
1603 Merge from dwarf4 branch.
1604
1605 * dwarf2out.c (DWARF_TYPE_SIGNATURE_SIZE): New constant.
1606 (dw_die_ref): Define vector type.
1607 (enum dw_val_class): Add dw_val_class_data8.
1608 (struct dw_val_struct): Add v.val_data8.
1609 (comdat_type_node_ref): New type.
1610 (struct die_struct): Move die_symbol into a union; add new field
1611 die_type_node. Change all uses.
1612 (comdat_type_node): New type.
1613 (skeleton_chain_node): New type.
1614 (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): New constant.
1615 (comdat_type_list): New variable.
1616 (dwarf_tag_name): Add DW_TAG_type_unit.
1617 (dwarf_attr_name): Add DW_AT_signature.
1618 (add_AT_data8): New function.
1619 (replace_child): New function.
1620 (move_all_children): New function.
1621 (print_signature): New function.
1622 (print_die): Print signature information; add dw_val_class_data8.
1623 (attr_checksum): Support dw_val_class_data8.
1624 (CHECKSUM_STRING): Redefine for DWARF-4 to include trailing NULL byte.
1625 (CHECKSUM_SLEB128, CHECKSUM_ULEB128): New macros.
1626 (checksum_sleb128, checksum_uleb128): New functions.
1627 (checksum_die_context): New function.
1628 (loc_checksum_ordered): New function.
1629 (attr_checksum_ordered): New function.
1630 (struct checksum_attributes): New structure.
1631 (collect_checksum_attributes): New function.
1632 (die_checksum_ordered): New function.
1633 (generate_type_signature): New function.
1634 (same_dw_val_p): Add dw_val_class_data8.
1635 (is_symbol_die): Use new is_declaration_die function.
1636 (is_declaration_die): New function.
1637 (should_move_die_to_comdat): New function.
1638 (clone_die): New function.
1639 (clone_tree): New function.
1640 (clone_as_declaration): New function.
1641 (copy_declaration_context): New function.
1642 (generate_skeleton_ancestor_tree): New function.
1643 (generate_skeleton_bottom_up): New function.
1644 (generate_skeleton): New function.
1645 (remove_child_or_replace_with_skeleton): New function.
1646 (break_out_comdat_types): New function.
1647 (struct decl_table_entry): New type.
1648 (htab_decl_hash): New function.
1649 (htab_decl_eq): New function.
1650 (htab_decl_del): New function.
1651 (copy_ancestor_tree): New function.
1652 (copy_decls_walk): New function.
1653 (copy_decls_for_unworthy_types): New function.
1654 (build_abbrev_table): Don't assert on missing die_symbol when doing
1655 comdat type sections.
1656 (size_of_die): Use DW_FORM_sig8 for external references. Add
1657 dw_val_class_data8.
1658 (unmark_dies): Don't assert for unmarked dies when doing comdat
1659 type sections.
1660 (value_format): Support DW_FORM_sig8 and dw_val_class_data8.
1661 (output_signature): New function.
1662 (output_die): Likewise.
1663 (output_compilation_unit_header): Mark output as DWARF version 3
1664 even if generating DWARF 4.
1665 (output_comdat_type_unit): New function.
1666 (output_line_info): Mark output as DWARF version 3 even if generating
1667 DWARF 4.
1668 (dwarf2out_start_source_file): Don't do eliminate_dwarf2_dups with
1669 DWARF-4.
1670 (dwarf2out_end_source_file): Likewise.
1671 (prune_unused_types_walk_attribs): Don't follow references into
1672 comdat type sections.
1673 (prune_unused_types_mark): When generating type units, do not mark
1674 children of non-defining declarations of types; do mark children of
1675 type entries.
1676 (prune_unused_types): Process comdat type sections.
1677 (htab_ct_hash): New function.
1678 (htab_ct_eq): New function.
1679 (dwarf2out_finish): Move types to comdat sections when using DWARF-4.
1680 Add a pointer to the line table from type unit entries so
1681 DW_AT_decl_file has meaning.
1682 * varasm.c (default_elf_asm_named_section): Use identifier name as
1683 comdat key instead of lang hook.
1684
1685 2009-10-02 Neil Vachharajani <nvachhar@google.com>
1686
1687 * gcov-io.c (gcov_open): Open files read-only when MODE < 0.
1688
1689 2009-10-02 Uros Bizjak <ubizjak@gmail.com>
1690
1691 * config/i386/i386.md (SWIM248): New mode iterator.
1692 (divmod<mode>4) Macroize expander from divmoddi4, divmodsi4 and
1693 divmodhi4 patterns using SWIM248 macro.
1694 (*divmod<mode>4): Macroize insn_and_split pattern from
1695 *divmoddi4_cltd_rex64, *divmodsi4_cltd and divmodhi4 insn patterns
1696 and their corresponding splitters usign SWIM248 macro. Split SImode
1697 insn to generate cltd and DImode insn to generate cqto instead of
1698 move+shift when optimizing for size or TARGET_USE_CLTD is in effect.
1699 (*divmoddi4_nocltd_rex64, *divmodsi4_nocltd): Remove insn patterns.
1700 (*divmod<mode>4_noext): Macroize insn from *divmoddi_noext_rex64 and
1701 *divmodsi_noext patterns using SWIM248 macro.
1702 (udivmod<mode>4): Macroize expander from udivmoddi4, udivmodsi4 and
1703 udivmodhi4 patterns using SWIM248 macro.
1704 (*udivmod<mode>4): Macroize insn_and_split pattern from
1705 *udivmoddi4, udivmodsi4 and udivmodhi4 patterns and their
1706 corresponding splitters using SWIM248 macro.
1707 (*udivmod<mode>4_noext): Macroize insn from *udivmoddi4_noext,
1708 *udivmodsi4_noext and *udivmodhi_noext patterns using SWIM248 macro.
1709
1710 2009-10-02 Eric Botcazou <ebotcazou@adacore.com>
1711
1712 * stor-layout.c (layout_type) <ARRAY_TYPE>: Make sure that an array
1713 of zero-sized element is zero-sized regardless of its extent.
1714
1715 2009-10-02 Jakub Jelinek <jakub@redhat.com>
1716
1717 PR debug/40521
1718 * configure.ac (HAVE_GAS_CFI_SECTIONS_DIRECTIVE): New test.
1719 * configure: Regenerated.
1720 * config.in: Regenerated.
1721 * dwarf2out.c (dwarf2out_do_cfi_asm): Return false if
1722 !HAVE_GAS_CFI_SECTIONS_DIRECTIVE and not emitting .eh_frame.
1723 (dwarf2out_init): If HAVE_GAS_CFI_SECTIONS_DIRECTIVE and
1724 not emitting .eh_frame, emit .cfi_sections .debug_frame
1725 directive.
1726
1727 PR debug/41404
1728 PR debug/41353
1729 * cfgexpand.c (expand_debug_expr) <case STRING_CST>: Don't create
1730 CONST_STRING if STRING_CST contains embedded '\0's or doesn't end
1731 with '\0'.
1732 (expand_debug_expr) <case VAR_DECL>: For TREE_STATIC !DECL_EXTERNAL
1733 vars use DECL_RTL with resetting it back to NULL afterwards.
1734 * dwarf2out.c (same_dw_val_p): For dw_val_class_addr compare with
1735 rtx_equal_p instead of asserting it is a SYMBOL_REF.
1736 (value_format): For dw_val_class_addr only use DW_FORM_addr if
1737 the attribute type allows it, otherwise use DW_FORM_dataN.
1738 (mem_loc_descriptor): Handle CONST_STRING.
1739 (add_const_value_attribute): Handle CONST_STRING using add_AT_addr.
1740 Handle MEM with CONST_STRING address using add_AT_string.
1741 (rtl_for_decl_init): Return MEM with CONST_STRING address instead of
1742 CONST_STRING for const arrays initialized with a string literal.
1743 (resolve_one_addr, resolve_addr_in_expr, resolve_addr): New functions.
1744 (dwarf2out_finish): Call resolve_addr.
1745
1746 2009-10-02 Andreas Schwab <schwab@linux-m68k.org>
1747 Maxim Kuvyrkov <maxim@codesourcery.com>
1748
1749 * config/m68k/lb1sf68.asm (PICCALL): Use variable sized branch.
1750
1751 2009-10-02 Nick Clifton <nickc@redhat.com>
1752
1753 * config/mn10300/mn10300.h (USER_LABEL_PREFIX): Define.
1754 (ASM_OUTPUT_LABELREF): Use asm_fprintf and %U.
1755
1756 2009-10-01 Jan Hubicka <jh@suse.cz>
1757
1758 * cgraph.c (cgraph_clone_node): Add redirect_callers parameter.
1759 (cgraph_create_virtual_clone): Just pass redirect_callers
1760 around.
1761 * cgraph.h (cgraph_clone_node): Update prototype.
1762 * ipa-pure-const.c (self_recursive_p): New function.
1763 (propagate): Use it.
1764 * ipa-inline.c (cgraph_clone_inlined_nodes,
1765 cgraph_decide_recursive_inlining): Update.
1766
1767 2009-10-01 David Daney <ddaney@caviumnetworks.com>
1768
1769 * gcc/config/mips/mips.c (mips_process_sync_loop) Emit syncw
1770 instructions for TARGET_OCTEON.
1771
1772 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1773
1774 * config/arm/arm.c (arm_override_options): Turn off
1775 flag_dwarf2_cfi_asm for AAPCS variants.
1776
1777 2009-10-01 Martin Jambor <mjambor@suse.cz>
1778
1779 PR middle-end/12392
1780 * tree-sra.c (convert_callers): Do not call
1781 compute_inline_parameters on one caller more than once.
1782
1783 2009-10-01 Nick Clifton <nickc@redhat.com>
1784
1785 * config/vax/netbsd-elf.h (NETBSD_CC1_AND_CC1PLUS_SPEC): Define as
1786 an empty string if not already defined.
1787
1788 2009-10-01 Martin Jambor <mjambor@suse.cz>
1789
1790 PR bootstrap/41395
1791 * tree-sra.c (is_va_list_type): New function.
1792 (find_var_candidates): Call is_va_list_type.
1793 (find_param_candidates): Check that the type or the type pointed
1794 to are not va_list types.
1795
1796 2009-10-01 Martin Jambor <mjambor@suse.cz>
1797
1798 PR c++/41503
1799 * cp/pt.c (function_parameter_expanded_from_pack_p): Return false if
1800 DECL_ARTIFICIAL (param_decl) is true.
1801
1802 2009-09-30 Gabriel Dos Reis <gdr@cs.tamu.edu>
1803
1804 * tree.h (tree_decl_common::lang_flag_8): New.
1805 * c-common.c (c_common_reswords): Include "constexpr" as C++0x
1806 keyword.
1807 * c-common.h (RID_CONSTEXPR): New.
1808
1809 2009-09-30 Uros Bizjak <ubizjak@gmail.com>
1810
1811 * config/alpha/alpha.c (alpha_gimplify_va_arg_1):
1812 Use ref-all pointers.
1813 (alpha_gimplify_va_arg): Ditto.
1814
1815 2009-09-30 Jakub Jelinek <jakub@redhat.com>
1816
1817 PR target/41279
1818 * cfgloopanal.c (num_loop_insns): Don't increment ninsns for each bb
1819 before insn counting loop now that BB_END (bb) is counted. Ensure
1820 the return value isn't zero.
1821
1822 2009-09-30 Nick Clifton <nickc@redhat.com>
1823
1824 * config.gcc (sh-symbianelf): Replace definition of extra_objs
1825 with separate definitions of c_target_objs and cxx_target_objs.
1826 * config/sh/t-sh: Add rules to build symbian-cxx.o, symbian-c.o
1827 and symbian-base.o.
1828 * config/sh/sh.c (TARGET_CXX_INPUT_EXPORT_CLASS): Use
1829 sh_symbian_import_export_class.
1830 * config/sh/sh-protos.h: Fix names of exported symbian functions.
1831 * config/sh/symbian.c: Delete, moving code into...
1832 * config/sh/symbian-base.c: ... here
1833 * config/sh/symbian-c.c: ... and here
1834 * config/sh/symbian-cxx.c: ... and here.
1835
1836 2009-09-30 Uros Bizjak <ubizjak@gmail.com>
1837
1838 PR target/22093
1839 * config/alpha/alpha.md (unaligned_storehi_be): Force operand
1840 of plus RTX into register.
1841
1842 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1843
1844 * doc/install.texi: Linguistic and markup fixes.
1845 (Configuration) <--disable-cpp>: Remove description.
1846 <--enable-maintainer-mode>: Autotools files are affected, too.
1847 <--with-sysroot>: Improve description.
1848 (Building): Bump required GNU make version.
1849
1850 2009-09-29 Harsha Jagasia <harsha.jagasia@amd.com>
1851
1852 * config.gcc (i[34567]86-*-*): Include fma4intrin.h.
1853 (x86_64-*-*): Ditto.
1854
1855 * config/i386/fma4intrin.h: New file, provide common x86 compiler
1856 intrinisics for FMA4.
1857 * config/i386/cpuid.h (bit_FMA4): Define FMA4 bit.
1858 * config/i386/x86intrin.h: Fix typo to SSE4A instead of SSE4a.
1859 Add FMA4 check and fma4intrin.h.
1860 * config/i386/i386-c.c(ix86_target_macros_internal): Check
1861 ISA_FLAG for FMA4.
1862 * config/i386/i386.h(TARGET_FMA4): New macro for FMA4.
1863 * config/i386/i386.md (UNSPEC_FMA4_INTRINSIC): Add new UNSPEC
1864 constant for FMA4 support.
1865 (UNSPEC_FMA4_FMADDSUB): Ditto.
1866 (UNSPEC_FMA4_FMSUBADD): Ditto.
1867 * config/i386/i386.opt (-mfma4): New switch for FMA4 support.
1868 * config/i386/i386-protos.h (ix86_fma4_valid_op_p): Add declaration.
1869 (ix86_expand_fma4_multiple_memory): Ditto.
1870 * config/i386/i386.c (OPTION_MASK_ISA_FMA4_SET): New.
1871 (OPTION_MASK_ISA_FMA4_UNSET): New.
1872 (OPTION_MASK_ISA_SSE4A_UNSET): Change definition to depend on FMA4.
1873 (OPTION_MASK_ISA_AVX_UNSET): Change definition to depend on FMA4.
1874 (ix86_handle_option): Handle -mfma4.
1875 (isa_opts): Handle -mfma4.
1876 (enum pta_flags): Add PTA_FMA4.
1877 (override_options): Add FMA4 support.
1878 (IX86_BUILTIN_VFMADDSS): New for FMA4 intrinsic.
1879 (IX86_BUILTIN_VFMADDSD): Ditto.
1880 (IX86_BUILTIN_VFMADDPS): Ditto.
1881 (IX86_BUILTIN_VFMADDPD): Ditto.
1882 (IX86_BUILTIN_VFMSUBSS): Ditto.
1883 (IX86_BUILTIN_VFMSUBSD): Ditto.
1884 (IX86_BUILTIN_VFMSUBPS): Ditto.
1885 (IX86_BUILTIN_VFMSUBPD): Ditto.
1886 (IX86_BUILTIN_VFMADDSUBPS): Ditto.
1887 (IX86_BUILTIN_VFMADDSUBPD): Ditto.
1888 (IX86_BUILTIN_VFMSUBADDPS): Ditto.
1889 (IX86_BUILTIN_VFMSUBADDPD): Ditto.
1890 (IX86_BUILTIN_VFNMADDSS): Ditto.
1891 (IX86_BUILTIN_VFNMADDSD): Ditto.
1892 (IX86_BUILTIN_VFNMADDPS): Ditto.
1893 (IX86_BUILTIN_VFNMADDPD): Ditto.
1894 (IX86_BUILTIN_VFNMSUBSS): Ditto.
1895 (IX86_BUILTIN_VFNMSUBSD): Ditto.
1896 (IX86_BUILTIN_VFNMSUBPS): Ditto.
1897 (IX86_BUILTIN_VFNMSUBPD): Ditto.
1898 (IX86_BUILTIN_VFMADDPS256): Ditto.
1899 (IX86_BUILTIN_VFMADDPD256): Ditto.
1900 (IX86_BUILTIN_VFMSUBPS256): Ditto.
1901 (IX86_BUILTIN_VFMSUBPD256): Ditto.
1902 (IX86_BUILTIN_VFMADDSUBPS256): Ditto.
1903 (IX86_BUILTIN_VFMADDSUBPD256): Ditto.
1904 (IX86_BUILTIN_VFMSUBADDPS256): Ditto.
1905 (IX86_BUILTIN_VFMSUBADDPD256): Ditto.
1906 (IX86_BUILTIN_VFNMADDPS256): Ditto.
1907 (IX86_BUILTIN_VFNMADDPD256): Ditto.
1908 (IX86_BUILTIN_VFNMSUBPS256): Ditto.
1909 (IX86_BUILTIN_VFNMSUBPD256): Ditto.
1910 (enum multi_arg_type): New enum for describing the various FMA4
1911 intrinsic argument types.
1912 (bdesc_multi_arg): New table for FMA4 intrinsics.
1913 (ix86_init_mmx_sse_builtins): Add FMA4 intrinsic support.
1914 (ix86_expand_multi_arg_builtin): New function for creating FMA4
1915 intrinsics.
1916 (ix86_expand_builtin): Add FMA4 intrinsic support.
1917 (ix86_fma4_valid_op_p): New function to validate FMA4 3 and 4
1918 operand instructions.
1919 (ix86_expand_fma4_multiple_memory): New function to split the
1920 second memory reference from FMA4 instructions.
1921 * config/i386/sse.md (ssemodesuffixf4): New mode attribute for FMA4.
1922 (ssemodesuffixf2s): Ditto.
1923 (fma4_fmadd<mode>4): Add FMA4 floating point multiply/add
1924 instructions.
1925 (fma4_fmsub<mode>4): Ditto.
1926 (fma4_fnmadd<mode>4): Ditto.
1927 (fma4_fnmsub<mode>4): Ditto.
1928 (fma4_vmfmadd<mode>4): Ditto.
1929 (fma4_vmfmsub<mode>4): Ditto.
1930 (fma4_vmfnmadd<mode>4): Ditto.
1931 (fma4_vmfnmsub<mode>4): Ditto.
1932 (fma4_fmadd<mode>4256): Ditto.
1933 (fma4_fmsub<mode>4256): Ditto.
1934 (fma4_fnmadd<mode>4256): Ditto.
1935 (fma4_fnmsub<mode>4256): Ditto.
1936 (fma4_fmaddsubv8sf4): Ditto.
1937 (fma4_fmaddsubv4sf4): Ditto.
1938 (fma4_fmaddsubv4df4): Ditto.
1939 (fma4_fmaddsubv2df4): Ditto.
1940 (fma4_fmsubaddv8sf4): Ditto.
1941 (fma4_fmsubaddv4sf4): Ditto.
1942 (fma4_fmsubaddv4df4): Ditto.
1943 (fma4_fmsubaddv2df4): Ditto.
1944 (fma4i_fmadd<mode>4): Add FMA4 floating point multiply/add
1945 instructions for intrinsics.
1946 (fma4i_fmsub<mode>4): Ditto.
1947 (fma4i_fnmadd<mode>4): Ditto.
1948 (fma4i_fnmsub<mode>4): Ditto.
1949 (fma4i_vmfmadd<mode>4): Ditto.
1950 (fma4i_vmfmsub<mode>4): Ditto.
1951 (fma4i_vmfnmadd<mode>4): Ditto.
1952 (fma4i_vmfnmsub<mode>4): Ditto.
1953 (fma4i_fmadd<mode>4256): Ditto.
1954 (fma4i_fmsub<mode>4256): Ditto.
1955 (fma4i_fnmadd<mode>4256): Ditto.
1956 (fma4i_fnmsub<mode>4256): Ditto.
1957 (fma4i_fmaddsubv8sf4): Ditto.
1958 (fma4i_fmaddsubv4sf4): Ditto.
1959 (fma4i_fmaddsubv4df4): Ditto.
1960 (fma4i_fmaddsubv2df4): Ditto.
1961 (fma4i_fmsubaddv8sf4): Ditto.
1962 (fma4i_fmsubaddv4sf4): Ditto.
1963 (fma4i_fmsubaddv4df4): Ditto.
1964 (fma4i_fmsubaddv2df4): Ditto.
1965
1966 * doc/invoke.texi (-mfma4): Add documentation.
1967 * doc/extend.texi (x86 intrinsics): Add FMA4 intrinsics.
1968
1969 2009-09-29 Richard Henderson <rth@redhat.com>
1970
1971 * tree-eh.c (unsplit_eh): Do not unsplit if there's already
1972 an edge to the new destination block.
1973
1974 2009-09-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1975
1976 PR target/41393
1977 * pa.c (hppa_profile_hook): Use
1978 make_reg_eh_region_note_nothrow_nononlocal to add REG_EH_REGION note.
1979
1980 2009-09-29 Steve Ellcey <sje@cup.hp.com>
1981 Alexander Monakov <amonakov@ispras.ru>
1982
1983 PR target/41365
1984 * config/ia64/predicates.md (not_postinc_destination_operand): New.
1985 (not_postinc_memory_operand): New.
1986 (not_postinc_move_operand): New.
1987 * config/ia64/ia64.md (*cmovdi_internal): Disallow autoincrement.
1988 (*cmovsi_internal): Ditto.
1989
1990 2009-09-29 Pat Haugen <pthaugen@us.ibm.com>
1991
1992 * config/rs6000/rs6000.c (rs6000_issue_rate): Don't artificially
1993 restrict issue_rate in first pass when scheduling for register
1994 pressure.
1995
1996 2009-09-29 Basile Starynkevitch <basile@starynkevitch.net>
1997 Rafael Avila de Espindola <espindola@google.com>
1998
1999 * gengtype.c (plugin_output): New.
2000 (get_output_file_with_visibility): Return plugin_output for plugins.
2001 (main): Parse and use the -P option.
2002 * gty.texi: Update the command line format.
2003
2004 2009-09-29 Jakub Jelinek <jakub@redhat.com>
2005
2006 PR debug/41438
2007 * dwarf2out.c (const_ok_for_output_1, const_ok_for_output): New
2008 functions.
2009 (mem_loc_descriptor, loc_descriptor, add_const_value_attribute): Bail
2010 out if !const_ok_for_output.
2011
2012 PR debug/41474
2013 * dwarf2out.c (mem_loc_descriptor) <case CONCAT, case CONCATN,
2014 case VAR_LOCATION>: Remove gcc_unreachable ().
2015
2016 2009-09-29 Harsha Jagasia <harsha.jagasia@amd.com>
2017
2018 * config.gcc (i[34567]86-*-*): Remove mmintrin-common.h.
2019 (x86_64-*-*): Ditto.
2020 * config/i386/smmintrin.h: Move instructions in mmintrin-common.h
2021 back to smmintrin.h.
2022 * config/i386/cpuid.h: (bit_SSE5): Remove SSE5 bit.
2023 * config/i386/x86intrin.h: Remove SSE5.
2024 * config/i386/mmintrin-common.h: Delete file.
2025 * doc/extend.texi (x86 intrinsics): Remove SSE5 flags and builtins.
2026
2027 2009-09-29 Richard Guenther <rguenther@suse.de>
2028
2029 * alias.c (ao_ref_from_mem): Properly deal with off decl accesses
2030 resulting from stack temporaries on STRICT_ALIGNMENT targets.
2031
2032 2009-09-29 Nick Clifton <nickc@redhat.com>
2033
2034 * function.c (current_function_name): If there is no current
2035 function just return "<none>".
2036
2037 2009-09-28 Sriraman Tallam <tmsriram@google.com>
2038
2039 * tree-pass.h (register_pass_info): New structure.
2040 (pass_positioning_ops): Move enum from gcc-plugin.h.
2041 (register_pass): New function.
2042 * gcc-plugin.h (plugin_pass): Delete structure.
2043 (pass_positioning_ops): Delete enum.
2044 * plugin.c (regsiter_pass): Delete function.
2045 (position_pass): Delete function.
2046 (added_pass_nodes): Delete variable.
2047 (prev_added_pass_nodes): Delete variable.
2048 (pass_list_node): Delete structure.
2049 * passes.c (make_pass_instance): New function.
2050 (next_pass_1): Change to call make_pass_instance.
2051 (pass_list_node): Move structure from gcc-plugin.h.
2052 (added_pass_nodes): Move variable from plugin.c.
2053 (prev_added_pass_nodes): Move variable from plugin.c.
2054 (position_pass): New function.
2055 (register_pass): New function.
2056
2057 2009-09-28 Easwaran Raman <eraman@google.com>
2058
2059 * ifcvt.c (noce_try_abs): Recognize pattern and call
2060 expand_one_cmpl_abs_nojump.
2061 * optabs.c (expand_one_cmpl_abs_nojump): New function.
2062 * optabs.h (expand_one_cmpl_abs_nojump): Declare.
2063
2064 2009-09-28 Ian Lance Taylor <iant@google.com>
2065
2066 PR middle-end/40500
2067 * c-opts.c (c_common_handle_option): Don't set
2068 warn_jump_misses_init for -Wall.
2069 * doc/invoke.texi (Warning Options): Update documentation.
2070
2071 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2072
2073 * Makefile.in ($(out_object_file)): Depend on
2074 gt-$(basename $(notdir $(out_file))).h.
2075
2076 2009-09-28 Richard Henderson <rth@redhat.com>
2077
2078 * except.h (struct eh_region_d): Add use_cxa_end_cleanup.
2079 * except.c (gen_eh_region): Set it.
2080 (duplicate_eh_regions_1): Copy it.
2081 * tree-eh.c (lower_resx): Use it to determine which function
2082 to call to resume.
2083
2084 * langhooks.h (struct lang_hooks): Add eh_use_cxa_end_cleanup.
2085 * langhooks-def.h (LANG_HOOKS_EH_USE_CXA_END_CLEANUP): New.
2086 * builtins.def (BUILT_IN_CXA_END_CLEANUP): New.
2087 * tree.c (build_common_builtin_nodes): Remove parameter. Build
2088 BUILT_IN_CXA_END_CLEANUP if necessary.
2089
2090 * c-common.c (c_define_builtins): Update call to
2091 build_common_builtin_nodes.
2092
2093 2009-09-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
2094
2095 * spu.c (get_branch_target): Return NULL for ASM_OPERANDS patterns.
2096
2097 2009-09-28 Michael Matz <matz@suse.de>
2098
2099 * builtins.c (interclass_mathfn_icode): New helper.
2100 (expand_builtin_interclass_mathfn): Use it here, and split folding
2101 into ...
2102 (fold_builtin_interclass_mathfn): ... this new folder.
2103 (build_call_nofold_loc): New static helper.
2104 (build_call_nofold): New wrapper macro for above.
2105 (expand_builtin_int_roundingfn): Use it instead of build_call_expr.
2106 (expand_builtin_pow): Ditto.
2107 (expand_builtin_memset_args): Ditto.
2108 (expand_builtin_printf): Ditto.
2109 (expand_builtin_fprintf): Ditto.
2110 (expand_builtin_sprintf): Ditto.
2111 (expand_builtin_memory_chk): Ditto.
2112 (expand_builtin_mempcpy_args): Ditto and don't call folders.
2113 (expand_builtin_stpcpy): Ditto.
2114 (expand_builtin_strcmp): Ditto.
2115 (expand_builtin_strncmp): Ditto.
2116 (expand_builtin_strcpy): Remove FNDECL and MODE arguments.
2117 (expand_builtin_strcpy_args): Don't call folders.
2118 (expand_builtin_memcmp): Ditto.
2119 (expand_builtin_strncpy): Ditto, and use target.
2120 (expand_builtin_memcpy): Ditto.
2121 (expand_builtin_strstr, expand_builtin_strchr, expand_builtin_strrchr,
2122 expand_builtin_strpbrk, expand_builtin_memmove,
2123 expand_builtin_memmove_args, expand_builtin_bcopy,
2124 expand_builtin_memchr, expand_builtin_strcat, expand_builtin_strncat,
2125 expand_builtin_strspn, expand_builtin_strcspn,
2126 expand_builtin_fputs): Remove these.
2127 (expand_builtin): Don't call the above, change calls to other
2128 expanders that changed prototype.
2129 (fold_builtin_stpcpy): New folder split out from expand_builtin_stpcpy.
2130 (fold_builtin_1 <ISFINITE, ISINF, ISNORMAL>): Call
2131 fold_builtin_interclass_mathfn.
2132 (fold_builtin_2 <STPCPY>): Call fold_builtin_stpcpy.
2133 (fold_builtin_strcat): Add folding split from expand_builtin_strcat.
2134
2135 * fold-const.c (fold_binary_loc <NE_EXPR>): Add !exp != 0 -> !exp.
2136 * passes.c (init_optimization_passes): Move pass_fold_builtins
2137 after last phiopt pass.
2138 * tree-inline.c (fold_marked_statements): When folding builtins
2139 iterate over all instruction potentially generated.
2140 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Declare
2141 earlier.
2142 (fold_gimple_call): Use it to always fold calls (into potentially
2143 multiple instructions).
2144 * tree-ssa-dom.c (optimize_stmt): Resolve __builtin_constant_p
2145 calls into zero at this time.
2146 * tree-ssa-propagate.c (substitute_and_fold): Ignore multiple
2147 statements generated by builtin folding.
2148
2149 2009-09-28 Nick Clifton <nickc@redhat.com>
2150
2151 * config/m32r/m32r.c (m32r_is_insn): Return false for debugging insns.
2152
2153 2009-09-28 Duncan Sands <baldrick@free.fr>
2154
2155 * gcc-plugin.h (PLUGIN_REGISTER_GGC_CACHES): New event.
2156 * plugin.c (plugin_event_name): Add PLUGIN_REGISTER_GGC_CACHES.
2157 (register_callback): Dispatch it.
2158 (invoke_plugin_callbacks): Incorporate in sanity check.
2159 * ggc.h (ggc_register_cache_tab): Add declaration.
2160 * ggc-common.c (ggc_register_root_tab): Simplify.
2161 (const_ggc_cache_tab_t): New typedef.
2162 (extra_cache_vec): New vector of dynamically added cache tables.
2163 (ggc_register_cache_tab): New function.
2164 (ggc_scan_cache_tab): New function.
2165 (ggc_mark_roots): Simplify dynamic roots. Handle dynamic caches.
2166 * doc/plugins.texi: Document PLUGIN_REGISTER_GGC_CACHES.
2167
2168 2009-09-27 Richard Henderson <rth@redhat.com>
2169
2170 * tree-ssa-ccp.c (optimize_stack_restore): Relax the conditions under
2171 which we remove __builtin_stack_restore.
2172
2173 2009-09-27 Bernd Schmidt <bernd.schmidt@analog.com>
2174
2175 * loop-iv.c (iv_analyze_op): Use function_invariant_p, not CONSTANT_P,
2176 to test for GRD_INVARIANT.
2177 (simple_rhs_p): Anything that's function_invariant_p is fine.
2178
2179 2009-09-27 Rafael Avila de Espindola <espindola@google.com>
2180
2181 * gengtype.c (main): Use plunge_files instead of plugin_output.
2182
2183 2009-09-27 Basile Starynkevitch <basile@starynkevitch.net>
2184 Rafael Avila de Espindola <espindola@google.com>
2185
2186 * gengtype.c (write_root, write_roots): Add a emit_pch argument.
2187 Don't print pch related info if it is false.
2188 (main): Don't print pch info in plugin mode.
2189
2190 2009-09-27 Eric Botcazou <ebotcazou@adacore.com>
2191
2192 * dwarf2out.c (enum dw_val_class): Replace dw_val_class_long_long
2193 with dw_val_class_const_double.
2194 (struct dw_val_struct): Replace val_long_long with val_double and
2195 adjust for above change.
2196 (output_loc_operands): Likewise.
2197 (add_AT_long_long): Rename into...
2198 (add_AT_double): ...this.
2199 (print_die): Replace dw_val_class_long_long with
2200 dw_val_class_const_double and adjust.
2201 (attr_checksum): Likewise.
2202 (same_dw_val_p): Likewise.
2203 (size_of_die): Likewise.
2204 (value_format): Likewise.
2205 (output_die): Likewise.
2206 (loc_descriptor) <CONST_DOUBLE>: Likewise.
2207 (add_const_value_attribute) <CONST_DOUBLE>: Call add_AT_double
2208 instead of add_AT_long_long.
2209 (add_bound_info) <INTEGER_CST>: Generate the bound as an unsigned
2210 value with the precision of its type.
2211
2212 2009-09-27 Andreas Schwab <schwab@linux-m68k.org>
2213
2214 PR c/41476
2215 * c-typeck.c (build_conditional_expr): Use the readonly and
2216 volatile flags of the operand types, not of the operands itself.
2217
2218 2009-09-27 Peter O'Gorman <pogma@thewrittenword.com>
2219
2220 * collect2.c (main): Look for -brtl before adding libraries.
2221
2222 2009-09-27 Jonathan Gray <jsg@openbsd.org>
2223
2224 * config.gcc: Update OpenBSD targets.
2225 * config/openbsd-stdint.h: New file.
2226 * config/openbsd-libpthread.h: New file.
2227 * config/openbsd.h: Update and break out LIB_SPEC definition.
2228 * config/alpha/openbsd.h: Overhaul to reflect ELF migration.
2229 * config/i386/openbsdelf.h: Correct types.
2230 * config/m68k/openbsd.h: Likewise.
2231 * config/mips/openbsd.h: Likewise.
2232 * config/vax/openbsd.h: Likewise.
2233
2234 2009-09-27 Eric Botcazou <ebotcazou@adacore.com>
2235
2236 * fold-const.c (maybe_lvalue_p): Return false for M(IN|AX)_EXPR.
2237 (extract_muldiv_1) <MINUS_EXPR>: Swap operands if necessary.
2238 * stor-layout.c (layout_type) <ARRAY_TYPE>: Do not take the maximum
2239 of the length and zero.
2240
2241 2009-09-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2242
2243 * Makefile.in (TOPLEV_H): Use $(INPUT_H) not input.h.
2244 (FLAGS_H): Add options.h $(REAL_H).
2245 (SEL_SCHED_IR_H): Add $(BITMAP_H) vecprim.h $(CFGLOOP_H).
2246 (TREE_VECTORIZER_H): New.
2247 (EBITMAP_H): Renamed from EBIMAP_H.
2248 (c-decl.o, c-objc-common.o, c-pretty-print.o, attribs.o, c-omp.o)
2249 (gtype-desc.o, ggc-common.o, ggc-page.o, ggc-zone.o, langhooks.o)
2250 (tree.o, tree-ssa-structalias.o, tree-ssa-ter.o, tree-ssanames.o)
2251 (tree-phinodes.o, tree-ssa-loop.o, tree-ssa-math-opts.o)
2252 (gimple-low.o, omp-low.o, sese.o, graphite-blocking.o)
2253 (graphite-clast-to-gimple.o, graphite-dependences.o)
2254 (graphite-interchange.o, graphite-poly.o, graphite-scop-detection.o)
2255 (graphite-sese-to-poly.o, tree-vect-loop.o, tree-vect-loop-manip.o)
2256 (tree-vect-patterns.o, tree-vect-slp.o, tree-vect-stmts.o)
2257 (tree-vect-data-refs.o, tree-vectorizer.o, gimple.o, tree-mudflap.o)
2258 (targhooks.o, stmt.o, emit-rtl.o, ipa.o, matrix-reorg.o, ipa-inline.o)
2259 (gcse.o, tree-ssa-ccp.o, df-byte-scan.o, vec.o, caller-save.o)
2260 (ira-build.o, ira-costs.o, ira-color.o, ira-emit.o, ira.o)
2261 (haifa-sched.o, sched-rgn.o, sel-sched.o, sel-sched-dump.o)
2262 (sel-sched-ir.o, final.o, $(out_object_file)): Dependencies
2263 updated and fixed as per above changes and per
2264 check_makefile_deps.sh output.
2265
2266 PR bootstrap/40928
2267 * configure.ac: Use $LIBS for '-ldl', not $LDFLAGS.
2268 * configure: Regenerate.
2269
2270 2009-09-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2271
2272 * doc/install.texi: Update minimum MPC version to 0.7.
2273
2274 2009-09-26 Gerald Pfeifer <gerald@pfeifer.com>
2275
2276 * doc/install.texi (Binaries): Remove reference to the binary
2277 distribution CD-ROM from the FSF.
2278
2279 2009-09-26 Michael Matz <matz@suse.de>
2280
2281 PR lto/40758
2282 PR middle-end/41470
2283 * tree-ssa-coalesce.c (coalesce_ssa_name): Add only SSA names
2284 that are mentioned in the body.
2285
2286 2009-09-26 Michael Matz <matz@suse.de>
2287
2288 PR tree-optimization/41454
2289 * tree-ssa-dom (stmts_to_rescan): Remove variable.
2290 (tree_ssa_dominator_optimize): Don't allocate and free it.
2291 (dom_opt_leave_block): Don't iterate over it.
2292 (eliminate_redundant_computations): Don't return a value.
2293 (cprop_operand, cprop_into_stmt): Ditto.
2294 (optimize_stmt): Don't defer updating stmts.
2295
2296 2009-09-25 Dodji Seketeli <dodji@redhat.com>
2297
2298 * dwarf2out.c (dwarf_tag_name, gen_generic_params_dies,
2299 generic_parameter_die, template_parameter_pack_die,
2300 gen_formal_parameter_die, gen_subprogram_die): Adjust after
2301 renaming DW_TAG_formal_parameter_pack and
2302 DW_TAG_template_parameter_pack into DW_TAG_GNU_formal_parameter_pack
2303 and DW_TAG_GNU_template_parameter_pack.
2304
2305 2009-09-25 Anatoly Sokolov <aesok@post.ru>
2306
2307 * config/v850/v850.h (FUNCTION_VALUE): Remove.
2308 * config/v850/v850.c (v850_function_value): New function.
2309 (TARGET_FUNCTION_VALUE): Define.
2310
2311 2009-09-25 Jakub Jelinek <jakub@redhat.com>
2312
2313 * tree-vect-stmts.c (vectorizable_call): Call
2314 mark_symbols_for_renaming after vect_finish_stmt_generation.
2315
2316 * dwarf2out.c (tls_mem_loc_descriptor): Pass 1 instead of 2
2317 to loc_descriptor_from_tree.
2318 (add_location_or_const_value_attribute): Pass 0 instead of 2
2319 for decl_by_reference_p decls.
2320
2321 2009-09-25 Richard Guenther <rguenther@suse.de>
2322
2323 PR middle-end/41463
2324 * tree-dfa.c (get_ref_base_and_extent): Fix issue with trailing
2325 arrays again.
2326
2327 2009-09-25 Ben Elliston <bje@au.ibm.com>
2328
2329 * doc/invoke.texi (RS/6000 and PowerPC Options): Add missing comma
2330 after `power7'.
2331
2332 2009-09-25 Alan Modra <amodra@bigpond.net.au>
2333
2334 * config/rs6000/rs6000.md (load_toc_v4_PIC_3c): Correct POWER
2335 form of instruction.
2336
2337 2009-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2338
2339 PR middle-end/41435
2340 * fold-const.c (const_binop): Handle complex int division.
2341 * tree-complex.c (expand_complex_div_straight,
2342 expand_complex_div_wide): Update comments.
2343
2344 2009-09-24 DJ Delorie <dj@redhat.com>
2345
2346 PR target/41456
2347 * config/m32c/m32c.h (REG_CLASS_CONTENTS): Add R13.
2348 (reg_class): Likewise.
2349 (REG_CLASS_NAMES): Likewise.
2350 * config/m32c/m32c.c (m32c_reg_class_from_constraint): Likewise.
2351 (m32c_override_options): Disable -fivopts for M32C.
2352
2353 2009-09-24 Michael Meissner <meissner@linux.vnet.ibm.com>
2354
2355 * config/rs6000/predicates.md (indexed_or_indirect_operand):
2356 Delete VSX load/store with update support.
2357 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Ditto.
2358 * config/rs6000/vsx.md (vsx_mov<mode>): Ditto.
2359 (vsx_movti): Ditto.
2360 (VSX_U): Delete.
2361 (VSbit): Ditto.
2362 (VStype_load_update): Ditto.
2363 (VStype_store_update): Ditto.
2364 (vsx_load<VSX_U:mode>_update_<P:mptrsize>): Ditto.
2365 (vsx_store<VSX_U:mode>_update_<P:mptrsize>): Ditto.
2366
2367 * config/rs6000/rs6000.h (enum rs6000_builtins): Delete VSX
2368 load/store with update builtins.
2369
2370 2009-09-24 Kai Tietz <kai.tietz@onevision.com>
2371
2372 * libgcc2.c (L_trampoline): Prototype for getpagesize
2373 and mprotect in WINNT case.
2374
2375 2009-09-24 Anatoly Sokolov <aesok@post.ru>
2376
2377 * config/rs6000/rs6000.h (FUNCTION_VALUE): Remove macro.
2378 * config/rs6000/rs6000-protos.h (rs6000_function_value): Remove.
2379 * config/rs6000/rs6000.c (rs6000_function_value): Make static, add
2380 'outgoing' argument.
2381 (TARGET_FUNCTION_VALUE): Define.
2382
2383 2009-09-24 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
2384
2385 * config/darwin.h (DWARF2_DEBUGGING_INFO): Define as 1.
2386
2387 2009-09-24 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
2388
2389 PR bootstrap/41405
2390 * common.opt: Initialize dwarf_strict to -1.
2391 * toplev.c (process_options): Catch unset dwarf_strict
2392 and set to 0 for all targets not overriding.
2393 * config/darwin.c (darwin_override_options): Catch unset
2394 dwarf_strict and override to 1.
2395
2396 2009-09-24 Jeff Law <law@redhat.com>
2397
2398 * tree-into-ssa.c (rewrite_into_ssa): Free interesting_blocks.
2399
2400 2009-09-24 Richard Guenther <rguenther@suse.de>
2401
2402 PR tree-optimization/36143
2403 PR tree-optimization/38747
2404 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Only
2405 create VIEW_CONVERT_EXPRs for TBAA compatible accesses.
2406
2407 2009-09-24 Jakub Jelinek <jakub@redhat.com>
2408
2409 PR bootstrap/41457
2410 * dwarf2out.c (add_const_value_attribute): For HIGH and CONST_FIXED,
2411 return false instead of gcc_unreachable (). For CONST return the
2412 value returned by recursive call instead of always returning true.
2413 (tree_add_const_value_attribute): Return the value returned by
2414 add_const_value_attribute instead of always returning true if rtl
2415 is non-NULL.
2416
2417 2009-09-23 Justin Seyster <jrseys@gmail.com>
2418
2419 * Makefile.in (PLUGIN_HEADERS): Include real.h.
2420
2421 2009-09-24 Jakub Jelinek <jakub@redhat.com>
2422
2423 * cgraphunit.c (cgraph_lower_function): Revert last change.
2424 * targhooks.c (default_static_chain): Use !DECL_STATIC_CHAIN
2425 instead of DECL_NO_STATIC_CHAIN.
2426 * tree-cfg.c (verify_gimple_call): Likewise.
2427 * tree-nested.c (get_chain_decl, get_chain_field,
2428 convert_tramp_reference_op, convert_gimple_call): Likewise.
2429 (convert_all_function_calls): Likewise. Always set or clear
2430 DECL_STATIC_CHAIN initially, for !n->outer clear it.
2431 (lower_nested_functions): Remove DECL_NO_STATIC_CHAIN checking code.
2432 * c-parser.c (c_parser_declaration_or_fndef): Set DECL_STATIC_CHAIN
2433 if nested.
2434 * print-tree.c (print_node): Handle DECL_STATIC_CHAIN instead of
2435 DECL_NO_STATIC_CHAIN.
2436 * config/i386/i386.c (ix86_static_chain): Use !DECL_STATIC_CHAIN
2437 instead of DECL_NO_STATIC_CHAIN.
2438 (ix86_function_regparm, find_drap_reg): Likewise. Don't test
2439 decl_function_context.
2440 * varasm.c (initializer_constant_valid_p): Likewise.
2441 * tree.h (DECL_NO_STATIC_CHAIN): Renamed to ...
2442 (DECL_STATIC_CHAIN): ... this.
2443 * config/moxie/moxie.c (moxie_static_chain): Use !DECL_STATIC_CHAIN
2444 instead of DECL_NO_STATIC_CHAIN.
2445
2446 2009-09-23 Basile Starynkevitch <basile@starynkevitch.net>
2447 Rafael Avila de Espindola <espindola@google.com>
2448
2449 * gengtype.c (nb_plugin_files): Make it unsigned to match
2450 num_gt_files. Adjust other variables to avoid warnings.
2451 (main): Allocate an all zero lang_bitmap before each plugin file name
2452 to match regular file names.
2453
2454 2009-09-23 Richard Henderson <rth@redhat.com>
2455
2456 * doc/tm.texi (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
2457 (TARGET_STATIC_CHAIN): Mention that this hook must be used for
2458 static chain passed in memory.
2459 * system.h (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Poison.
2460 * targhooks.c (default_static_chain): Don't handle STATIC_CHAIN,
2461 STATIC_CHAIN_INCOMING. Issue a sorry if there's no
2462 STATIC_CHAIN_REGNUM defined.
2463
2464 * config/picochip/picochip-protos.h: s/class/klass/.
2465 * config/picochip/picochip.c (TARGET_STATIC_CHAIN): New.
2466 (picochip_static_chain): New.
2467 * config/picochip/picochip.h (STATIC_CHAIN): Remove.
2468 (STATIC_CHAIN_INCOMING): Remove.
2469
2470 * config/xtensa/xtensa.c (TARGET_STATIC_CHAIN): New.
2471 (xtensa_static_chain): New.
2472 * config/xtensa/xtensa.h (STATIC_CHAIN): Remove.
2473 (STATIC_CHAIN_INCOMING): Remove.
2474
2475 2009-09-23 Anatoly Sokolov <aesok@post.ru>
2476
2477 * config/pa/pa.h (FUNCTION_VALUE): Remove macro.
2478 * config/pa/pa-protos.h (function_value): Remove.
2479 * config/pa/pa.c (pa_function_value): Rename from function_value.
2480 Make static, add 'outgoing' argument.
2481 (TARGET_FUNCTION_VALUE): Define.
2482
2483 2009-09-23 Anatoly Sokolov <aesok@post.ru>
2484
2485 * config/avr/avr.c (avr_regs_to_save): Use current_function_is_leaf
2486 instead of cfun->machine->is_leaf.
2487 * config/avr/avr.h (machine_function): Remove is_leaf field.
2488
2489 2009-09-23 Jakub Jelinek <jakub@redhat.com>
2490
2491 PR debug/41439
2492 * dwarf2out.c (address_of_int_loc_descriptor): Don't emit
2493 DW_OP_piece after DW_OP_stack_value, adjust size calculations
2494 for it, when DW_OP_stack_value and DW_OP_implicit_value has
2495 the same size, prefer DW_OP_stack_value.
2496 (loc_descriptor, loc_list_for_address_of_addr_expr_of_indirect_ref,
2497 loc_list_from_tree): Don't emit DW_OP_piece after DW_OP_stack_value.
2498
2499 2009-09-23 Alexandre Oliva <aoliva@redhat.com>
2500
2501 PR debug/41353
2502 * var-tracking.c (add_with_sets): Sort MO_VAL_LOC last among uses.
2503
2504 2009-09-23 Alexandre Oliva <aoliva@redhat.com>
2505
2506 PR debug/41248
2507 * cfgexpand.c (convert_debug_memory_address): New.
2508 (expand_debug_expr): Convert base address and offset to the same
2509 mode. Use it to convert addresses to other modes. Accept
2510 ptr_mode addresses.
2511
2512 2009-09-23 Richard Guenther <rguenther@suse.de>
2513
2514 * alias.c (ao_ref_from_mem): Correct for negative MEM_OFFSET
2515 produced for bigendian targets with promoted subregs.
2516
2517 2009-09-23 Richard Guenther <rguenther@suse.de>
2518
2519 * value-prof.c (gimple_ic): Purge old EH edges only after building
2520 the new ones.
2521
2522 2009-09-23 Nick Clifton <nickc@redhat.com>
2523
2524 * config/arc/arc.c (arc_trampoline_init): Fix typo.
2525
2526 2009-09-23 Jakub Jelinek <jakub@redhat.com>
2527
2528 PR bootstrap/41405
2529 * doc/invoke.texi: Document -gstrict-dwarf and -gno-strict-dwarf.
2530
2531 PR bootstrap/41436
2532 * cgraphunit.c (cgraph_lower_function): Set DECL_NO_STATIC_CHAIN
2533 on non-nested functions.
2534
2535 2009-09-23 Jakub Jelinek <jakub@redhat.com>
2536 Jan Hubicka <jh@suse.cz>
2537
2538 * dwarf2out.c (loc_list_plus_const): Only define if
2539 DWARF2_DEBUGGING_INFO.
2540 (address_of_int_loc_descriptor): Likewise.
2541
2542 PR debug/41411
2543 * dwarf2out.c (mem_loc_descriptor): Handle HIGH.
2544
2545 2009-09-23 Uros Bizjak <ubizjak@gmail.com>
2546
2547 PR c/39779
2548 * c-typeck.c (build_binary_op) <short_shift>: Check that integer
2549 constant is more than zero.
2550
2551 2009-09-23 Alan Modra <amodra@bigpond.net.au>
2552
2553 PR target/40473
2554 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
2555 call final to emit non-scheduled prologue, instead insert at entry.
2556
2557 2009-09-22 Loren J. Rittle <ljrittle@acm.org>
2558 Joseph S. Myers <joseph@codesourcery.com>
2559
2560 * doc/install.texi (*-*-freebsd*): Add proper format codes.
2561
2562 2009-09-22 Basile Starynkevitch <basile@starynkevitch.net>
2563 Rafael Avila de Espindola <espindola@google.com>
2564
2565 * gengtype.c (is_file_equal): New function.
2566 (close_output_files): Use is_file_equal. Free of->buf.
2567
2568 2009-09-22 Basile Starynkevitch <basile@starynkevitch.net>
2569 Rafael Avila de Espindola <espindola@google.com>
2570
2571 * gengtype.c (write_types, write_local): Add the output_header
2572 argument. Update all callers.
2573
2574 2009-09-22 Dodji Seketeli <dodji@redhat.com>
2575
2576 * dwarf2out.c (template_parameter_pack_die,
2577 gen_formal_parameter_pack_die ): New functions.
2578 (make_ith_pack_parameter_name): Remove this function.
2579 (dwarf_tag_name): Support printing DW_TAG_template_parameter_pack and
2580 DW_TAG_formal_parameter_pack.
2581 (gen_generic_params_dies): Represent each template parameter pack
2582 by a DW_TAG_template_parameter_pack DIE. Argument pack elements are
2583 represented by usual DW_TAG_template_*_parameter DIEs that are
2584 children of the DW_TAG_template_parameter_pack element DIE.
2585 (generic_parameter_die): This doesn't deal with parameter pack
2586 names anymore. Don't generate DW_AT_name for some DIEs, e.g. children
2587 of parameter pack DIEs.
2588 (gen_formal_parameter_die): Add a flag to not emit DW_AT_name
2589 in certain cases, e.g. for pack elements.
2590 (gen_formal_types_die, gen_decl_die): Adjust usage of
2591 gen_formal_parameter_die.
2592 (gen_subprogram_die): Represent each function parameter pack by a
2593 DW_TAG_formal_parameter_pack DIE. Arguments of of the pack are
2594 represented by usual DW_TAG_formal_parameter DIEs that are children
2595 of the DW_TAG_formal_parameter_pack DIE. Remove references to
2596 ____builtin_va_alist decls as no part of the compiler uses those
2597 anymore.
2598 * langhooks.h (struct lang_hooks_for_decls): Add
2599 function_parm_expanded_from_pack_p, get_generic_function_decl
2600 and function_parameter_pack_p hooks. Fix comment for
2601 get_innermost_generic_parms hook.
2602 * langhooks-def.h (LANG_HOOKS_FUNCTION_PARAMETER_PACK_P,
2603 LANG_HOOKS_FUNCTION_PARM_EXPANDED_FROM_PACK_P ): Declare new hook
2604 macros and use them to initialize lang_hook.
2605
2606 2009-09-22 Richard Henderson <rth@redhat.com>
2607
2608 * system.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE): Poison.
2609 (TRAMPOLINE_ADJUST_ADDRESS): Poison.
2610 * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): Don't conditionalize
2611 on TRAMPOLINE_TEMPLATE.
2612 (TARGET_TRAMPOLINE_ADJUST_ADDRESS): Don't conditionalize on
2613 TRAMPOLINE_ADJUST_ADDRESS.
2614 * targhooks.c (default_asm_trampoline_template): Remove.
2615 (default_trampoline_adjust_address): Remove.
2616 (default_trampoline_init): Don't handle INITIALIZE_TRAMPOLINE.
2617 * targhooks.h: Update decls.
2618
2619 2009-09-22 Dave Korn <dave.korn.cygwin@gmail.com>
2620
2621 * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Enable.
2622 * config/i386/cygwin.h (LIBGCJ_SONAME): Define.
2623 * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
2624
2625 2009-09-22 Alexandre Oliva <aoliva@redhat.com>
2626
2627 PR debug/41295
2628 * reload1.c (reload): Reset debug insns with pseudos without
2629 equivalences.
2630
2631 2009-09-22 Janis Johnson <janis187@us.ibm.com>
2632
2633 * config/i386/i386.c (ix86_scalar_mode_supported_p): Don't return
2634 unconditional true for decimal float modes.
2635 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Ditto.
2636 * config/s390/s390.c (s390_scalar_mode_supported_p): Ditto.
2637
2638 2009-09-22 Loren J. Rittle <ljrittle@acm.org>
2639
2640 * unwind-dw2-fde-glibc.c: Define and use USE_PT_GNU_EH_FRAME.
2641 Enable a new case for __FreeBSD__ >= 7.
2642 * crtstuff.c: Define USE_PT_GNU_EH_FRAME for __FreeBSD__ >= 7.
2643 * config/t-freebsd: Define LIB2ADDEH and LIB2ADDEHDEP.
2644 * config/freebsd-spec.h: Conditionally define LINK_EH_SPEC
2645 and USE_LD_AS_NEEDED.
2646
2647 * doc/install.texi (*-*-freebsd*): Update target information.
2648
2649 2009-09-22 Richard Guenther <rguenther@suse.de>
2650
2651 PR middle-end/41395
2652 * tree-dfa.c (get_ref_base_and_extent): Handle trailing
2653 arrays really properly.
2654
2655 2009-09-22 Richard Henderson <rth@redhat.com>
2656
2657 PR target/41246
2658 * target.h (struct gcc_target): Add asm_out.trampoline_template,
2659 calls.static_chain, calls.trampoline_init,
2660 calls.trampoline_adjust_address.
2661 * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
2662 (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New.
2663 (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
2664 * builtins.c (expand_builtin_setjmp_receiver): Use
2665 targetm.calls.static_chain; only clobber registers.
2666 (expand_builtin_init_trampoline): Use targetm.calls.trampoline_init;
2667 set up memory attributes properly for the trampoline block.
2668 (expand_builtin_adjust_trampoline): Use
2669 targetm.calls.trampoline_adjust_address.
2670 * calls.c (prepare_call_address): Add fndecl argument. Use
2671 targetm.calls.static_chain.
2672 * df-scan.c (df_need_static_chain_reg): Remove.
2673 (df_get_entry_block_def_set): Use targetm.calls.static_chain;
2674 consolodate static chain handling.
2675 * doc/tm.texi: Document new hooks.
2676 * emit-rtl.c (static_chain_rtx, static_chain_incoming_rtx): Remove.
2677 (init_emit_regs): Don't initialize them.
2678 * expr.h (prepare_call_address): Update decl.
2679 * final.c (profile_function): Use targetm.calls.static_chain.
2680 * function.c (expand_function_start): Likewise.
2681 * rtl.h (static_chain_rtx, static_chain_incoming_rtx): Remove.
2682 * stmt.c (expand_nl_goto_receiver): Use targetm.calls.static_chain;
2683 only clobber registers.
2684 * targhooks.c (default_static_chain): New.
2685 (default_asm_trampoline_template, default_trampoline_init): New.
2686 (default_trampoline_adjust_address): New.
2687 * targhooks.h: Declare them.
2688 * varasm.c (assemble_trampoline_template): Use
2689 targetm.asm_out.trampoline_template. Make the memory block const
2690 and set its size.
2691
2692 * config/alpha/alpha.c (alpha_trampoline_init): Rename from
2693 alpha_initialize_trampoline. Make static. Merge VMS parameter
2694 differences into the TARGET_ABI_OPEN_VMS code block.
2695 (TARGET_TRAMPOLINE_INIT): New.
2696 * config/alpha/alpha.h (TRAMPOLINE_TEMPLATE): Remove.
2697 (TRAMPOLINE_SECTION, INITIALIZE_TRAMPOLINE): Remove.
2698 * config/alpha/vms.h (TRAMPOLINE_SIZE, TRAMPOLINE_ALIGNMENT): Remove.
2699 (INITIALIZE_TRAMPOLINE): Remove.
2700
2701 * config/arc/arc.h (TRAMPOLINE_ALIGNMENT): New.
2702 (TRAMPOLINE_TEMPLATE): Merge with ...
2703 (INITIALIZE_TRAMPOLINE): ... this and move ...
2704 * config/arc/arc.c (arc_trampoline_init): ... here.
2705 (TARGET_TRAMPOLINE_INIT): New.
2706
2707 * config/arm/arm.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
2708 (TARGET_TRAMPOLINE_INIT, TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
2709 (arm_asm_trampoline_template): New.
2710 (arm_trampoline_init, arm_trampoline_adjust_address): New.
2711 * config/arm/arm.h (TRAMPOLINE_TEMPLATE, ARM_TRAMPOLINE_TEMPLATE,
2712 THUMB2_TRAMPOLINE_TEMPLATE, THUMB1_TRAMPOLINE_TEMPLATE): Move all
2713 code to arm_asm_trampoline_template.
2714 (TRAMPOLINE_ADJUST_ADDRESS): Move code to
2715 arm_trampoline_adjust_address.
2716 (INITIALIZE_TRAMPOLINE): Move code to arm_trampoline_init;
2717 adjust for target hook parameters.
2718
2719 * config/avr/avr.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE):
2720 Remove.
2721
2722 * config/bfin/bfin-protos.h (initialize_trampoline): Remove.
2723 * config/bfin/bfin.c (bfin_asm_trampoline_template): New.
2724 (bfin_trampoline_init): Rename from initialize_trampoline;
2725 make static; update for target hook parameters.
2726 (TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New.
2727 * config/bfin/bfin.h (TRAMPOLINE_TEMPLATE): Move code to
2728 bfin_asm_trampoline_template.
2729 (INITIALIZE_TRAMPOLINE): Remove.
2730
2731 * config/cris/cris.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
2732 TARGET_TRAMPOLINE_INIT, cris_asm_trampoline_template,
2733 cris_trampoline_init): New.
2734 * config/cris/cris.h (TRAMPOLINE_TEMPLATE): Move code to
2735 cris_asm_trampoline_template.
2736 (INITIALIZE_TRAMPOLINE): Move code to cris_trampoline_init;
2737 adjust for target hook parameters.
2738
2739 * config/crx/crx.h (INITIALIZE_TRAMPOLINE): Remove.
2740
2741 * config/fr30/fr30.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
2742 TARGET_TRAMPOLINE_INIT, fr30_asm_trampoline_template,
2743 fr30_trampoline_init): New.
2744 * config/fr30/fr30.h (TRAMPOLINE_TEMPLATE): Move code to
2745 fr30_asm_trampoline_template.
2746 (INITIALIZE_TRAMPOLINE): Move code to fr30_trampoline_init;
2747 adjust for target hook parameters.
2748
2749 * config/frv/frv.c (TARGET_TRAMPOLINE_INIT): New.
2750 (frv_trampoline_init): Rename from frv_initialize_trampoline;
2751 make static, adjust arguments for TARGET_TRAMPOLINE_INIT hook.
2752 * config/frv/frv.h (INITIALIZE_TRAMPOLINE): Remove.
2753 * config/frv/frv-protos.h (frv_initialize_trampoline): Remove.
2754
2755 * config/h8300/h8300.c (h8300_trampoline_init): New.
2756 (TARGET_TRAMPOLINE_INIT): New.
2757 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Move code
2758 to h8300_trampoline_init and adjust for hook parameters.
2759
2760 * config/ia64/ia64-protos.h (ia64_initialize_trampoline): Remove.
2761 * config/ia64/ia64.c (TARGET_TRAMPOLINE_INIT): New.
2762 (ia64_trampoline_init): Rename from ia64_initialize_trampoline;
2763 make static; adjust for hook parameters.
2764 * config/ia64/ia64.h (INITIALIZE_TRAMPOLINE): Remove.
2765
2766 * config/iq2000/iq2000.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
2767 (TARGET_TRAMPOLINE_INIT): New.
2768 (iq2000_asm_trampoline_template, iq2000_trampoline_init): New.
2769 * config/iq2000/iq2000.h (TRAMPOLINE_TEMPLATE): Move code to
2770 iq2000_asm_trampoline_template.
2771 (INITIALIZE_TRAMPOLINE): Move code to iq2000_trampoline_init.
2772 (TRAMPOLINE_CODE_SIZE): New.
2773 (TRAMPOLINE_SIZE): Use it.
2774 (TRAMPOLINE_ALIGNMENT): Follow Pmode.
2775
2776 * config/m32c/m32c-protos.h (m32c_initialize_trampoline): Remove.
2777 * config/m32c/m32c.c (TARGET_TRAMPOLINE_INIT): New.
2778 (m32c_trampoline_init): Rename from m32c_initialize_trampoline;
2779 adjust for hook parameters.
2780 * config/m32c/m32c.h (INITIALIZE_TRAMPOLINE): Remove.
2781
2782 * config/m32r/m32r.c (TARGET_TRAMPOLINE_INIT): New.
2783 (m32r_trampoline_init): New.
2784 * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Move code to
2785 m32r_trampoline_init.
2786
2787 * config/m68hc11/m68hc11.c (TARGET_TRAMPOLINE_INIT): New.
2788 (m68hc11_trampoline_init): Rename from m68hc11_initialize_trampoline;
2789 make static; update for hook parameters.
2790 * config/m68hc11/m68hc11-protos.h: Update.
2791 * config/m68hc11/m68hc11.h (INITIALIZE_TRAMPOLINE): Remove.
2792
2793 * config/mcore/mcore.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
2794 (TARGET_TRAMPOLINE_INIT): New.
2795 (mcore_function_value): Fix typo.
2796 (mcore_asm_trampoline_template, mcore_trampoline_init): New.
2797 * config/mcore/mcore.h (TRAMPOLINE_TEMPLATE): Move code
2798 to mcore_asm_trampoline_template.
2799 (INITIALIZE_TRAMPOLINE): Move code to mcore_trampoline_init.
2800
2801 * config/mep/mep.h (INITIALIZE_TRAMPOLINE): Remove.
2802 * config/mep/mep.c (TARGET_TRAMPOLINE_INIT): New.
2803 (mep_trampoline_init): Rename from mep_init_trampoline; make static;
2804 update for hook parameters.
2805 * config/mep/mep-protos.h (mep_init_trampoline): Remove.
2806
2807 * config/mips/mips.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
2808 mips_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
2809 mips_trampoline_init): New.
2810 * config/mips/mips.h (TRAMPOLINE_TEMPLATE): Move code to
2811 mips_asm_trampoline_template.
2812 (INITIALIZE_TRAMPOLINE): Move code to mips_trampoline_init;
2813 update for hook parameters.
2814
2815 * gcc/config/mmix/mmix.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
2816 (TARGET_TRAMPOLINE_INIT): New.
2817 (mmix_trampoline_size): Remove.
2818 (mmix_asm_trampoline_template): Rename from mmix_trampoline_template;
2819 make static. Remove out-of-date tetra vs octa comment.
2820 (mmix_trampoline_init): Rename from mmix_initialize_trampoline;
2821 make static; update for hook parameters.
2822 * config/mmix/mmix.h (TRAMPOLINE_TEMPLATE): Remove.
2823 (INITIALIZE_TRAMPOLINE): Remove.
2824 (TRAMPOLINE_SIZE): Use a constant instead of mmix_trampoline_size.
2825 (TRAMPOLINE_ALIGNMENT): New.
2826 * gcc/config/mmix/mmix-protos.h: Update.
2827
2828 * config/mn10300/mn10300.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
2829 mn10300_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
2830 mn10300_trampoline_init): New.
2831 * config/mn10300/mn10300.h (TRAMPOLINE_TEMPLATE): Move code to
2832 mn10300_asm_trampoline_template.
2833 (INITIALIZE_TRAMPOLINE): Move code to mn10300_trampoline_init.
2834
2835 * config/moxie/moxie.c (moxie_static_chain,
2836 moxie_asm_trampoline_template, moxie_trampoline_init,
2837 TARGET_STATIC_CHAIN, TARGET_ASM_TRAMPOLINE_TEMPLATE,
2838 TARGET_TRAMPOLINE_INIT): New.
2839 * config/moxie/moxie.h (INITIALIZE_TRAMPOLINE): Move code to
2840 moxie_trampoline_init.
2841 (TRAMPOLINE_TEMPLATE): Move code to moxie_asm_trampoline_template.
2842 (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
2843
2844 * gcc/config/pa/pa.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
2845 pa_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
2846 pa_trampoline_init, TARGET_TRAMPOLINE_ADJUST_ADDRESS,
2847 pa_trampoline_adjust_address): New.
2848 * config/pa/pa.h (TRAMPOLINE_TEMPLATE): Move code to
2849 pa_asm_trampoline_template.
2850 (TRAMPOLINE_ALIGNMENT): New.
2851 (TRAMPOLINE_CODE_SIZE): Move to pa.c.
2852 (INITIALIZE_TRAMPOLINE): Move code to pa_trampoline_init;
2853 adjust for hook parameters.
2854 (TRAMPOLINE_ADJUST_ADDRESS): Move code to pa_trampoline_adjust_address.
2855
2856 * config/pdp11/pdp11.c (pdp11_trampoline_init): New.
2857 (TARGET_TRAMPOLINE_INIT): New.
2858 * config/pdp11/pdp11.h (TRAMPOLINE_TEMPLATE): Remove.
2859 (INITIALIZE_TRAMPOLINE): Move code to pdp11_trampoline_init.
2860
2861 * config/picochip/picochip.h (INITIALIZE_TRAMPOLINE): Remove.
2862
2863 * config/rs6000/rs6000-protos.h (rs6000_initialize_trampoline): Remove.
2864 * config/rs6000/rs6000.c (TARGET_TRAMPOLINE_INIT): New.
2865 (rs6000_trampoline_init): Rename from rs6000_initialize_trampoline;
2866 make static; adjust parameters for the hook.
2867 * config/rs6000/rs6000.h (INITIALIZE_TRAMPOLINE): Remove.
2868
2869 * config/s390/s390.c (s390_asm_trampoline_template): Rename from
2870 s390_trampoline_template; make static.
2871 (s390_trampoline_init): Rename from s390_initialize_trampoline;
2872 make static; adjust for target hook.
2873 (TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New.
2874 * config/s390/s390-protos.h: Remove trampoline decls.
2875 * config/s390/s390.h (INITIALIZE_TRAMPOLINE): Remove.
2876 (TRAMPOLINE_TEMPLATE): Remove.
2877 (TRAMPOLINE_ALIGNMENT): New.
2878
2879 * config/score/score-protos.h (score_initialize_trampoline): Remove.
2880 * config/score/score.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
2881 (TARGET_TRAMPOLINE_INIT): New.
2882 (score_asm_trampoline_template): New.
2883 (score_trampoline_init): Rename from score_initialize_trampoline;
2884 make static; adjust for hook parameters.
2885 * config/score/score.h (TRAMPOLINE_TEMPLATE): Move code to
2886 score[37]_asm_trampoline_template.
2887 (INITIALIZE_TRAMPOLINE): Remove.
2888 * config/score/score3.c (score3_asm_trampoline_template): New.
2889 (score3_trampoline_init): Rename from score3_initialize_trampoline;
2890 adjust for target hook.
2891 * config/score/score7.c (score7_asm_trampoline_template): New.
2892 (score7_trampoline_init): Rename from score7_initialize_trampoline;
2893 adjust for target hook.
2894 * config/score/score3.h, config/score/score7.h: Update.
2895
2896 * config/sh/sh-protos.h (sh_initialize_trampoline): Remove.
2897 * config/sh/sh.c (TARGET_TRAMPOLINE_INIT): New.
2898 (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
2899 (sh_trampoline_init): Rename from sh_initialize_trampoline;
2900 make static; adjust for target hook parameters.
2901 (sh_trampoline_adjust_address): New.
2902 * config/sh/sh.h (INITIALIZE_TRAMPOLINE): New.
2903 (TRAMPOLINE_ADJUST_ADDRESS): Move code to sh_trampoline_adjust_address.
2904
2905 * config/sparc/sparc.c (TARGET_TRAMPOLINE_INIT): New.
2906 (sparc32_initialize_trampoline): Rename from
2907 sparc_initialize_trampoline; make static; replace tramp parameter
2908 with m_tramp and update memory accesses.
2909 (sparc64_initialize_trampoline): Similarly.
2910 (sparc_trampoline_init): New.
2911 * config/sparc/sparc-protos.h: Remove trampoline decls.
2912 * config/sparc/sparc.h (INITIALIZE_TRAMPOLINE): Remove.
2913 * config/sparc/sparc.md (nonlocal_goto): Don't use static_chain_rtx.
2914
2915 * config/spu/spu.c (TARGET_TRAMPOLINE_INIT): New.
2916 (array_to_constant): Make ARR parameter const.
2917 (spu_trampoline_init): Rename from spu_initialize_trampoline;
2918 make static; update for hook parameters.
2919 * config/spu/spu-protos.h: Update decls.
2920 * config/spu/spu.h (INITIALIZE_TRAMPOLINE): Remove.
2921
2922 * config/stormy16/stormy16.c (xstormy16_trampoline_init): Rename
2923 from xstormy16_initialize_trampoline; make static; update for
2924 hook parameters.
2925 (TARGET_TRAMPOLINE_INIT): New.
2926 * config/stormy16/stormy16.h (INITIALIZE_TRAMPOLINE): Remove.
2927
2928 * config/v850/v850.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
2929 (TARGET_TRAMPOLINE_INIT): New.
2930 (v850_can_eliminate): Make static.
2931 (v850_asm_trampoline_template, v850_trampoline_init): New.
2932 * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Move code to
2933 v850_asm_trampoline_template.
2934 (INITIALIZE_TRAMPOLINE): Move code to v850_trampoline_init
2935 and adjust for target hook parameters.
2936
2937 * config/vax/vax.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
2938 (TARGET_TRAMPOLINE_INIT): New.
2939 (vax_asm_trampoline_template, vax_trampoline_init): New.
2940 * config/vax/vax.h (TRAMPOLINE_TEMPLATE): Move code to
2941 vax_asm_trampoline_template.
2942 (INITIALIZE_TRAMPOLINE): Move code to vax_trampoline_init.
2943
2944 * config/xtensa/xtensa.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
2945 (TARGET_TRAMPOLINE_INIT): New.
2946 (xtensa_asm_trampoline_template): Rename from
2947 xtensa_trampoline_template; make static.
2948 (xtensa_trampoline_init): Rename from xtensa_initialize_trampoline;
2949 make static; update for hook parameters.
2950 * config/xtensa/xtensa-protos.h: Remove trampoline decls.
2951 * config/xtensa/xtensa.h (TRAMPOLINE_TEMPLATE): Remove.
2952 (INITIALIZE_TRAMPOLINE): Remove.
2953
2954 * config/i386/i386.c (ix86_function_regparm): Do not issue an
2955 error for nested functions with regparm=3.
2956 (ix86_compute_frame_layout): Adjust frame pointer offset for
2957 ix86_static_chain_on_stack.
2958 (ix86_expand_prologue): Handle ix86_static_chain_on_stack.
2959 (ix86_emit_restore_reg_using_pop): Increment ix86_cfa_state->offset,
2960 don't reset to UNITS_PER_WORD.
2961 (ix86_emit_leave): Adjust ix86_cfa_state.
2962 (ix86_expand_epilogue): Handle ix86_static_chain_on_stack.
2963 (ix86_static_chain): New.
2964 (ix86_trampoline_init): Rename from x86_initialize_trampoline;
2965 make static; update for target hook parameters; use ix86_static_chain.
2966 (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New.
2967 * config/i386/i386.h (STATIC_CHAIN_REGNUM): Remove.
2968 (INITIALIZE_TRAMPOLINE): Remove.
2969 (TRAMPOLINE_SIZE): Use 24 for 64-bit.
2970 (struct machine_function): Use BOOL_BITFIELD; rearrange bitfields
2971 to the end. Add static_chain_on_stack.
2972 (ix86_static_chain_on_stack): New.
2973
2974 * config/m68k/m68k.c (TARGET_TRAMPOLINE_INIT): New.
2975 (m68k_output_mi_thunk): Don't use static_chain_rtx.
2976 (m68k_trampoline_init): New.
2977 * config/m68k/m68k.h (INITIALIZE_TRAMPOLINE): Move code to
2978 m68k_trampoline_init and adjust for hook parameters.
2979 * config/m68k/netbsd-elf.h (TRAMPOLINE_TEMPLATE): Remove.
2980 (TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE): Remove.
2981
2982 2009-09-22 Jakub Jelinek <jakub@redhat.com>
2983
2984 * config/rs6000/rs6000.c (bdesc_2arg): Fix CODE_FOR_vector_gt* codes
2985 for __builtin_altivec_vcmpgt{sb,uh,sh,uw}.
2986
2987 * reload1.c (reload): Call wrap_constant when substituting
2988 reg for equiv inside of DEBUG_INSNs.
2989
2990 PR bootstrap/41405
2991 * dwarf2out.c (base_type_die, record_type_tag, gen_subprogram_die,
2992 add_call_src_coords_attributes, add_high_low_attributes,
2993 gen_compile_unit_die, gen_type_die_with_usage force_decl_die,
2994 gen_decl_die, dwarf2out_imported_module_or_decl_1, dwarf2out_finish,
2995 dwarf2out_imported_module_or_decl): Avoid using DWARF3 additions
2996 when -gdwarf-2 -gstrict-dwarf.
2997 (loc_list_from_tree): Likewise. Avoid using DWARF4 additions when
2998 -gdwarf-[23] -gstrict-dwarf.
2999 (address_of_int_loc_descriptor, loc_descriptor,
3000 loc_list_for_address_of_addr_expr_of_indirect_ref): Avoid using
3001 DWARF4 additions when -gdwarf-[23] -gstrict-dwarf.
3002 * common.opt (gno-strict-dwarf, gstrict-dwarf): New options.
3003
3004 2009-09-22 Richard Guenther <rguenther@suse.de>
3005
3006 PR tree-optimization/41428
3007 * tree-ssa-ccp.c (ccp_fold_stmt): New function.
3008 (ccp_finalize): Pass it to substitute_and_fold.
3009
3010 2009-09-22 Richard Guenther <rguenther@suse.de>
3011
3012 * tree-ssa-propagate.h (ssa_prop_fold_stmt_fn): Declare.
3013 (substitute_and_fold): Adjust prototype.
3014 * tree-vrp.c (vrp_evaluate_conditional): Make static.
3015 (simplify_stmt_using_ranges): Likewise.
3016 (fold_predicate_in): Move here from tree-ssa-propagate.c.
3017 (vrp_fold_stmt): New function.
3018 (vrp_finalize): Pass it to substitute_and_fold.
3019 * tree-flow.h (vrp_evaluate_conditional): Remove.
3020 (simplify_stmt_using_ranges): Likewise.
3021 * tree-ssa-ccp.c (ccp_finalize): Adjust call to substitute_and_fold.
3022 * tree-ssa-copy.c (fini_copy_prop): Likewise.
3023 * tree-ssa-propagate.c (struct prop_stats_d): Rename num_pred_folded
3024 member.
3025 (fold_predicate_in): Move to tree-vrp.c.
3026 (substitute_and_fold): Use the callback instead of calling into
3027 tree-vrp.c functions directly.
3028
3029 2009-09-22 Jakub Jelinek <jakub@redhat.com>
3030
3031 * dwarf2out.c (address_of_int_loc_descriptor): Avoid signed/unsigned
3032 comparison warning on rs6000.
3033
3034 PR middle-end/41429
3035 * tree-cfg.c (remove_useless_stmts_tc): Call gsi_next (gsi) even for
3036 GIMPLE_EH_MUST_NOT_THROW cleanup.
3037 (verify_types_in_gimple_stmt): Handle GIMPLE_EH_MUST_NOT_THROW.
3038
3039 2009-09-22 Jack Howarth <howarth@bromo.med.uc.edu>
3040
3041 PR middle-end/41260
3042 * gcc/config.gcc: Use darwin9.h and darwin10.h on darwin10 and later.
3043 * gcc/config/darwin10.h: Add file to pass -no_compact_unwind on
3044 LIB_SPEC for darwin10 and later since it always uses the unwinder in
3045 libSystem which is derived from the gcc 4.2.1 unwinder.
3046
3047 2009-09-22 Dave Korn <dave.korn.cygwin@gmail.com>
3048
3049 PR middle-end/41357
3050 * varasm.c (default_encode_section_info): Copy TLS model into
3051 sym_ref flags regardless of backend support for TLS, for all
3052 model types except TLS_MODEL_EMULATED.
3053
3054 2009-09-22 Dave Korn <dave.korn.cygwin@gmail.com>
3055
3056 PR bootstrap/41404
3057 * dwarf2out.c (mem_loc_descriptor): Punt on CONST_STRING until
3058 we can handle it correctly.
3059
3060 2009-09-21 Gerald Pfeifer <gerald@pfeifer.com>
3061
3062 * doc/install.texi (os2): Remove section.
3063
3064 2009-09-21 Gerald Pfeifer <gerald@pfeifer.com>
3065
3066 * doc/standards.texi (Objective-C): Adjust two URLs.
3067
3068 2009-09-21 Giuseppe Scrivano <gscrivano@gnu.org>
3069
3070 * tree-tailcall.c (process_assignment): Don't check if a
3071 multiplication or an addition are already present.
3072 (find_tail_calls): Combine multiple additions and multiplications.
3073 (adjust_accumulator_values): Emit accumulators.
3074
3075 2009-09-21 Kai Tietz <kai.tietz@onevision.com>
3076
3077 * config/i386/i386.c (ix86_expand_epilogue): Adjust offset for
3078 xmm register restore.
3079
3080 2009-09-21 Jan Hubicka <jh@suse.cz>
3081
3082 * dwarf2out.c (decl_loc_table_eq): Allow decl_loc_table to be NULL.
3083 (dwarf2out_abstract_function): NULLify decl_loc_table at begginig and
3084 restore at the end.
3085
3086 2009-09-21 Eric Botcazou <ebotcazou@adacore.com>
3087
3088 * stor-layout.c (layout_type): Remove obsolete code.
3089
3090 2009-09-20 H.J. Lu <hongjiu.lu@intel.com>
3091
3092 PR middle-end/41395
3093 * opts.c (decode_options): Don't turn on flag_ipa_sra for opt2.
3094
3095 2009-09-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3096
3097 PR middle-end/30789
3098 * builtins.c (do_mpc_arg2): Accept DO_NONFINITE parameter.
3099 (do_mpc_ckconv): Accept FORCE_CONVERT parameter.
3100 (fold_builtin_2, do_mpc_arg1): Update accordingly.
3101 * fold-const.c (const_binop): Likewise.
3102 * real.h (do_mpc_arg2): Update prototype.
3103
3104 2009-09-20 Jan Hubicka <jh@suse.cz>
3105
3106 * dwarf2out.c (add_const_value_attribute): Return true if successful.
3107 (add_location_or_const_value_attribute): Rewrite using
3108 loc_list_from_tree.
3109 (tree_add_const_value_attribute): Return true if successful.
3110 (tree_add_const_value_attribute_for_decl): Likewise.
3111
3112 * dwarf2out.c (address_of_int_loc_descriptor): Break out from ...
3113 (loc_descriptor): ... here;
3114 (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
3115 (cst_pool_loc_descr): Break out from ...; do not reffer constant
3116 pool items that was not marked for output.
3117 (loc_list_from_tree): ... here; handle special cases of ADDR_EXPR;
3118 (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
3119 (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
3120 handle ALIGN_INDIRECT_REF, MISALIGNED_INDIRECT_REF, REALPART_EXPR,
3121 IMAGPART_EXPR; handle address of INTEGER_CST; improve handling of
3122 CONSTRUCTOR; handle REAL_CST, STRING_CST, COMPLEX_CST; use
3123 DW_OP_stack_value to get address of items that are not available
3124 as addresses.
3125 (dw_loc_list): Handle single element lists correctly.
3126
3127 2009-09-20 Kai Tietz <kai.tietz@onevision.com>
3128 Pascal Obry <obry@adacore.com>
3129
3130 * unwind-dw2-fde.c (classify_object_over_fdes):
3131 Cast the constant 1 to _Unwind_Ptr.
3132 (add_fdes): Likewise.
3133 (linear_search_fdes): Likewise.
3134
3135 2009-09-20 Eric Botcazou <ebotcazou@adacore.com>
3136
3137 * stor-layout.c (set_sizetype): Avoid useless type copy.
3138
3139 2009-09-20 Richard Sandiford <rdsandiford@googlemail.com>
3140
3141 * configure.ac (gcc_cv_ld_mips_personality_relaxation): New
3142 feature check.
3143 (HAVE_LD_PERSONALITY_RELAXATION): New macro definition.
3144 * configure, config.in: Regenerate.
3145 * dwarf2asm.c (eh_data_format_name): Handle DW_EH_PE_indirect |
3146 DW_EH_PE_absptr.
3147 * config/mips/mips.h (TARGET_WRITABLE_EH_FRAME): New macro.
3148 (ASM_PREFERRED_EH_DATA_FORMAT): Define. Use MIPS_EH_INDIRECT
3149 for global data if the output could be used in a shared library.
3150 * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
3151 to 0 if TARGET_WRITABLE_EH_FRAME.
3152
3153 2009-09-20 Paolo Bonzini <bonzini@gnu.org>
3154
3155 PR rtl-optimization/39886
3156 * combine.c (update_cfg_for_uncondjump): Set EDGE_FALLTHRU
3157 just when insn is equal to BB_END (bb).
3158
3159 2009-09-19 Adam Nemet <anemet@caviumnetworks.com>
3160
3161 * config/mips/mips.opt (mrelax-pic-calls): New option.
3162 * config/mips/mips.c (mips_strip_unspec_address): Move it up in
3163 the file.
3164 (mips_unspec_call): Change "unspec_call" expander into this.
3165 (mips_strip_unspec_call): New function.
3166 (mips_got_load): Call mips_unspec_call instead of
3167 gen_unspec_call<mode>.
3168 (mips16_build_call_stub): Fix comment for fp_code. Adjust call to
3169 MIPS_CALL.
3170 (mips_cfg_in_reorg): New function.
3171 (mips16_lay_out_constants): Use it to decide whether to call
3172 CFG-aware insn splitting.
3173 (r10k_insert_cache_barriers): Move CFG set-up code from here to
3174 mips_reorg. Move DF set-up code from here ...
3175 (mips_df_reorg): ... to here. Call r10k_insert_cache_barriers
3176 from here.
3177 (mips_reorg): Call mips_df_reorg instead of
3178 r10k_insert_cache_barriers. Move CFG set-up code here from
3179 r10k_insert_cache_barriers.
3180 (mips_call_expr_from_insn): New function.
3181 (mips_pic_call_symbol_from_set): Likewise.
3182 (mips_find_pic_call_symbol): Likewise.
3183 (mips_annotate_pic_call_expr): Likewise.
3184 (mips_get_pic_call_symbol): Likewise.
3185 (mips_annotate_pic_calls): Likewise.
3186 (mips_override_options): Disable -mrelax-pic-calls unless PIC
3187 calls are used.
3188 (mips_set_mips16_mode): Disable -mrelax-pic-calls for MIPS16.
3189 * config/mips/mips-protos.h (mips_get_pic_call_symbol): Declare it.
3190 * config/mips/mips.h (MIPS_CALL): Use it to print the .reloc
3191 directive.
3192 * config/mips/mips.md (UNSPEC_CALL_ATTR): New unspec.
3193 (unspec_call<mode>): Remove it.
3194 (sibcall_internal, sibcall_value_internal,
3195 sibcall_value_multiple_internal, call_internal, call_split,
3196 call_value_internal, call_value_split,
3197 call_value_multiple_internal, call_value_multiple_split): Pass
3198 SIZE_OPNO to MIPS_CALL.
3199 (call_internal_direct, call_direct_split,
3200 call_value_internal_direct, call_value_direct_split): Pass -1 as
3201 SIZE_OPNO to MIPS_CALL.
3202 * configure.ac <mips*-*-*>: Add test for .reloc R_MIPS_JALR.
3203 * configure: Regenerate.
3204 * doc/invoke.texi (Option Summary): Add -mrelax-pic-calls
3205 and -mno-relax-pic-calls.
3206 (MIPS Options): Document -mrelax-pic-calls and -mno-relax-pic-calls.
3207
3208 2009-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3209
3210 PR bootstrap/35619
3211 * Makefile.in (stmp-fixinc): Ensure `include-fixed' is created
3212 in the directory this rule is called from, rather than the
3213 toplevel 'gcc' directory, to fix in-tree build.
3214
3215 2009-09-19 Chris Demetriou <cgd@google.com>
3216
3217 PR preprocessor/28435:
3218 * c-opts.c (c_common_handle_option): For -MD and -MMD, indicate
3219 to cpplib that the preprocessor output is needed.
3220
3221 2009-09-19 Jakub Jelinek <jakub@redhat.com>
3222
3223 * config/rs6000/rs6000.md (*save_gpregs_<mode>, *save_fpregs_<mode>,
3224 *restore_gpregs_<mode>, *return_and_restore_gpregs_<mode>,
3225 *return_and_restore_fpregs_<mode>,
3226 *return_and_restore_fpregs_aix_<mode>): Remove 'z' operand modifier.
3227
3228 PR bootstrap/41397
3229 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Recurse
3230 instead of assuming it has always a REG inside of it.
3231
3232 2009-09-18 Gerald Pfeifer <gerald@pfeifer.com>
3233
3234 * config/freebsd.h: Update comment on types.
3235 (WINT_TYPE): Define.
3236
3237 2009-09-18 Jason Merrill <jason@redhat.com>
3238
3239 * c.opt: Add -fno-deduce-init-list.
3240
3241 2009-09-18 Neil Vachharajani <nvachhar@google.com>
3242
3243 * value-prof.c (interesting_stringop_to_profile_p): Added output
3244 argument to indicate which parameter is the size parameter.
3245 * value-prof.c (gimple_stringop_fixed_value): Use
3246 INTERESTING_STRINGOP_TO_PROFILE_P to find size argument.
3247 * value-prof.c (gimple_stringops_transform): Update call sites to
3248 INTERESTING_STRINGOP_TO_PROFILE_P to reflect parameter change.
3249
3250 2009-09-18 Uros Bizjak <ubizjak@gmail.com>
3251
3252 PR target/38288
3253 From David Binderman <dcb314@hotmail.com>:
3254 * gcc/config/i386/i386.c (ix86_function_regparm): Remove useless
3255 local variable f. Remove stale comments.
3256 (ix86_compute_frame_layout): Remove useless local variable total_size.
3257 Remove #if 0'd code.
3258 (legitimate_address_p): Remove useless local variables
3259 reason_rtx and reason.
3260 (ix86_split_copysign_const): Remove useless local variable op1.
3261 (scale_counter): Remove useless local variable piece_size_mask.
3262
3263 2009-09-18 Jakub Jelinek <jakub@redhat.com>
3264
3265 * stmt.c (expand_asm_operands): Set REG_ATTRS on the temporary from
3266 output decl.
3267
3268 2009-09-17 Michael Haubenwallner <michael.haubenwallner@salomon.at>
3269
3270 PR target/40913
3271 * config/pa/t-hpux-shlib: Set soname in libgcc_s.sl.
3272
3273 2009-09-17 Jakub Jelinek <jakub@redhat.com>
3274
3275 * c-decl.c (finish_struct): Adjust DECL_SOURCE_LOCATION of
3276 TYPE_STUB_DECL.
3277
3278 2009-09-17 Alexandre Oliva <aoliva@redhat.com>
3279
3280 * dwarf2out.c (loc_descriptor): Emit DW_OP_stack_value and
3281 DW_OP_implicit_value even without dwarf_version 4.
3282
3283 2009-09-17 Jan Hubicka <jh@suse.cz>
3284
3285 * dwarf2out.c: Include tree-pass.h and gimple.h.
3286 (loc_list_plus_const): New function.
3287 (loc_descriptor_from_tree_1): Rename to ...
3288 (loc_descriptor_from_tree): ... remove original.
3289 (loc_list_from_tree): New function.
3290 (add_AT_location_description): Accept location list.
3291 (tls_mem_loc_descriptor): Update call of loc_descriptor_from_tree.
3292 (concatn_mem_loc_descriptor): Remove.
3293 (mem_loc_descriptor): Handle CONCAT/CONCATN and VAR_LOCATION by
3294 returning NULL.
3295 (secname_for_decl): Move up.
3296 (hidden_reference_p): New function; break out from ...
3297 (loc_by_refernece): ... here; move up.
3298 (dw_loc_list): New function.
3299 (single_element_loc_list): New function.
3300 (single_element_loc_list_p): New function.
3301 (add_loc_descr_to_each): New function.
3302 (add_loc_list): New function.
3303 (loc_descr_from_tree): Make wraper of loc_list_from_tree.
3304 (loc_list_from_tree): Reroganized from loc_descr_from_tree;
3305 add diagnostics why expansion failed.
3306 (add_location_or_const_value_attribute): Support location lists.
3307 (add_bound_info): Likewise.
3308 (descr_info_loc): Update call of loc_descriptor_from_tree.
3309 (gen_variable_die): Work on location lists.
3310 * final.c (pass_final): Add dump file.
3311 * Makefile.in (dwarf2out.o): Add new dependencies.
3312
3313 2009-09-17 Janis Johnson <janis187@us.ibm.com>
3314
3315 PR c/41049
3316 * real.c decimal_from_integer, decimal_integer_string): New.
3317 (real_from_integer): Use them as special case for decimal float.
3318 * config/dfp-bit.c (_si_to_sd, _usi_to_sd): Use default rounding.
3319 (_di_to_sd, _di_to_dd, _di_to_td, _udi_to_sd, _udi_to_dd, _udi_to_td):
3320 Do not append zero after the decimal point in string to convert.
3321
3322 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
3323
3324 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only
3325 for ARRAY_REFs. Use array_ref_{low,up}_bound to determine bounds.
3326
3327 2009-09-17 Martin Jambor <mjambor@suse.cz>
3328
3329 * common.opt (fipa-sra): New switch.
3330 * opts.c (decode_options): Turn flag_ipa_sra on for opt2.
3331 * timevar.def (TV_IPA_SRA): New timevar.
3332 * params.def (ipa-sra-ptr-growth-factor): New parameter.
3333 * doc/invoke.texi: Document -fipa-sra and ipa-sra-ptr-growth-factor.
3334 * tree-sra.c: Include cgraph.c.
3335 (enum sra_mode): Added SRA_MODE_EARLY_IPA.
3336 (struct access): Added fields stmt, grp_maybe_modified, grp_scalar_ptr
3337 and grp_not_necessarilly_dereferenced.
3338 (func_param_count): New variable.
3339 (encountered_apply_args): New variable.
3340 (bb_dereferences): New variable.
3341 (final_bbs): New variable.
3342 (no_accesses_representant): New variable.
3343 (no_accesses_p): New function.
3344 (dump_access): Dump the new fields.
3345 (sra_initialize): Set encountered_apply_args to false.
3346 (get_ssa_base_param): New function.
3347 (mark_parm_dereference): New function.
3348 (create_access): Caring for INIDRECT_REFs and different handling of
3349 varialble length accesses in early IPA SRA. Store the stmt - a new
3350 parameter - to the new access.
3351 (build_access_from_expr_1): New parameter stmt, passed to
3352 create_access. Handle INDIRECT_REFs.
3353 (build_access_from_expr): Pass the current statement to
3354 build_access_from_expr_1.
3355 (disqualify_ops_if_throwing_stmt): Trigger only in intraprocedural
3356 passes.
3357 (build_accesses_from_assign): Pass the current statement to
3358 build_access_from_expr_1. Do not create assign links in IPA-SRA.
3359 (scan_function): Call handle_ssa_defs on phi nodes. Set bits in
3360 final_bbs when necessary. Check for calls to __builtin_apply_args.
3361 Fixup EH info if anythng was changed.
3362 (is_unused_scalar_param): New function.
3363 (ptr_parm_has_direct_uses): New function.
3364 (find_param_candidates): New function.
3365 (mark_maybe_modified): New function.
3366 (analyze_modified_params): New function.
3367 (propagate_dereference_distances): New function.
3368 (dump_dereferences_table): New function.
3369 (analyze_caller_dereference_legality): New function.
3370 (unmodified_by_ref_scalar_representative): New function.
3371 (splice_param_accesses): New function.
3372 (decide_one_param_reduction): New function.
3373 (enum ipa_splicing_result): New type.
3374 (splice_all_param_accesses): New function.
3375 (get_param_index): New function.
3376 (turn_representatives_into_adjustments): New function.
3377 (analyze_all_param_acesses): New function.
3378 (get_replaced_param_substitute): New function.
3379 (get_adjustment_for_base): New function.
3380 (replace_removed_params_ssa_names): New function.
3381 (sra_ipa_reset_debug_stmts): New function.
3382 (sra_ipa_modify_expr): New function.
3383 (sra_ipa_modify_assign): New function.
3384 (convert_callers): New function.
3385 (modify_function): New function.
3386 (ipa_sra_preliminary_function_checks): New function.
3387 (ipa_early_sra): New function.
3388 (ipa_early_sra_gate): New function.
3389 (pass_early_ipa_sra): New variable.
3390 * Makefile.in (tree-sra.o): Add cgraph.h to dependencies.
3391
3392 2009-09-17 Michael Matz <matz@suse.de>
3393
3394 PR middle-end/41347
3395 * tree.c (build_type_attribute_qual_variant): Export.
3396 * tree.h (build_type_attribute_qual_variant): Declare.
3397 * tree-inline.c (remap_type_1): Use it to build variants with
3398 the original qualifiers and attributes.
3399
3400 2009-09-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3401
3402 * cfglayout.c (fixup_reorder_chain): Accept conditional jumps
3403 without a fallthrough edge.
3404
3405 2009-09-16 DJ Delorie <dj@redhat.com>
3406
3407 * config/m32c/m32c.c (m32c_emit_epilogue): Check for R8C or M16C
3408 chip and ignore the "fast_interrupt" attribute if so.
3409
3410 2009-09-16 Richard Henderson <rth@redhat.com>
3411
3412 PR middle-end/41360
3413 * cfgbuild.c (find_bb_boundaries): Really re-instate 2009-09-02
3414 barrier fix.
3415
3416 2009-09-16 Richard Henderson <rth@redhat.com>
3417
3418 PR target/41246
3419 * tree-cfg.c (verify_gimple_call): Validate that gimple_call_chain
3420 is set only if DECL_NO_STATIC_CHAIN is unset.
3421 * tree-nested.c (iter_nestinfo_start, iter_nestinfo_next): New.
3422 (FOR_EACH_NEST_INFO): New.
3423 (walk_all_functions): Use it.
3424 (finalize_nesting_tree): Likewise.
3425 (unnest_nesting_tree): Likewise.
3426 (free_nesting_tree): Use iter_nestinfo_start, iter_nestinfo_next.
3427 (get_chain_decl, get_chain_field): Reset DECL_NO_STATIC_CHAIN.
3428 (convert_gimple_call): Early out if gimple_call_chain already set.
3429 (convert_all_function_calls): Iterate until no new functions
3430 require a static chain.
3431 (finalize_nesting_tree_1): Assert DECL_NO_STATIC_CHAIN is unset
3432 when building a trampoline. Use dump_function_to_file instead
3433 of dump_function.
3434 (lower_nested_functions): Open dump_file. Validate that decls
3435 that have DECL_NO_STATIC_CHAIN from the front end don't have that
3436 bit reset by this pass.
3437
3438 2009-09-16 Michael Matz <matz@suse.de>
3439
3440 PR fortran/41212
3441 * tree.h (struct tree_decl_common): Add decl_restricted_flag,
3442 shorten decl_common_unused.
3443 (DECL_RESTRICTED_P): New accessor.
3444 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Use it
3445 to disambiguate marked decls and restrict pointers.
3446
3447 2009-09-16 Richard Henderson <rth@redhat.com>
3448
3449 PR middle-end/41360
3450 * cfgbuild.c (find_bb_boundaries): Re-instate 2009-09-02 barrier fix.
3451
3452 2009-09-16 Jakub Jelinek <jakub@redhat.com>
3453
3454 * integrate.c (set_block_abstract_flags): Call
3455 set_decl_abstract_flags also on BLOCK_NONLOCALIZED_VARs.
3456
3457 2009-09-16 Richard Guenther <rguenther@suse.de>
3458
3459 PR middle-end/34011
3460 * tree-flow-inline.h (may_be_aliased): Compute readonly variables
3461 as non-aliased.
3462
3463 2009-09-16 DJ Delorie <dj@redhat.com>
3464 Kaz Kojima <kkojima@gcc.gnu.org>
3465
3466 * config/sh/sh.c (output_stack_adjust): Add new argument frame_p.
3467 (sh_expand_prologue): Update calls to output_stack_adjust.
3468 (sh_expand_epilogue): Likewise.
3469
3470 2009-09-15 Adam Nemet <anemet@caviumnetworks.com>
3471
3472 PR bootstrap/41349
3473 * reorg.c (redundant_insn): Don't count notes or DEBUG_INSNs when
3474 trying to limit the extent of searches in the insn stream.
3475
3476 2009-09-15 Nathan Froyd <froydnj@codesourcery.com>
3477 Jakub Jelinek <jakub@redhat.com>
3478
3479 PR target/41175
3480 PR target/40677
3481 * config/rs6000/rs6000.c (no_global_regs_above): Fix precedence
3482 problem.
3483 (SAVRES_NOINLINE_GPRS_SAVES_LR, SAVRES_NOINLINE_FPRS_SAVES_LR,
3484 SAVRES_NOINLINE_FPRS_DOESNT_RESTORE_LR): New strategy bits.
3485 (rs6000_savres_strategy): Always save FP registers inline if the
3486 target doesn't support hardware double-precision. Set the above
3487 bits in return value when needed.
3488 (rs6000_savres_routine_sym): Fix computation for cache selector.
3489 Mark the generated symbol as a function. Rename exitp argument to
3490 lr. Move code for determining the name of the symbol...
3491 (rs6000_savres_routine_name): ...here. New function. Add cases for
3492 getting the names right on AIX and 64-bit Linux.
3493 (savres_routine_name): New variable.
3494 (rs6000_make_savres_rtx): Rename exitp argument to lr. Don't assert
3495 lr isn't set when savep. Use r12 resp. r1 instead of r11 depending
3496 on what the target routine uses as a base register. If savep && lr
3497 describe saving of r0 into memory slot.
3498 (rs6000_emit_prologue): Correct use of call_used_regs. Fix out of
3499 line calls for AIX ABI.
3500 (rs6000_output_function_prologue): Use rs6000_savres_routine_name to
3501 determine FP save/restore functions.
3502 (rs6000_emit_stack_reset): Handle savres if sp_offset != 0 and
3503 frame_reg_rtx != sp_reg_rtx. Use gen_add3_insn instead of
3504 gen_addsi3.
3505 (rs6000_emit_epilogue): Adjust computation of restore_lr.
3506 Duplicate restoration of LR and execute the appropriate one
3507 depending on whether GPRs are being restored inline. Set r11 from
3508 offsetted frame_reg_rtx instead of sp_reg_rtx; if frame_reg_rtx is
3509 r11, adjust sp_offset. Use gen_add3_insn instead of gen_addsi3.
3510 Fix out of line calls for AIX ABI.
3511 * config/rs6000/rs6000.md (*return_and_restore_fpregs_aix_<mode>):
3512 New insn.
3513 * config/rs6000/spe.md (*save_gpregs_spe): Use explicit match for
3514 register 11.
3515 (*restore_gpregs_spe): Likewise.
3516 (*return_and_restore_gpregs_spe): Likewise.
3517 * config/rs6000/linux64.h (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX):
3518 Define to empty string unconditionally.
3519 * config/rs6000/sysv4.h (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX):
3520 Define to empty string unconditionally.
3521 (GP_SAVE_INLINE, FP_SAVE_INLINE): Handle TARGET_64BIT the same as
3522 !TARGET_64BIT.
3523
3524 2009-09-15 Jan Hubicka <jh@suse.cz>
3525
3526 * doc/invoke.texi (inline-insns-auto): Drop from 60 to 50.
3527 * params.def (inline-insns-auto): Likewise.
3528
3529 2009-09-15 Martin Jambor <mjambor@suse.cz>
3530
3531 * ipa-inline.c (estimate_function_body_sizes): Dump info about
3532 individual statements only at TDF_DETAILS dump level. Format
3533 source for 80 characters per line.
3534
3535 2009-09-15 Christian Bruel <christian.bruel@st.com>
3536
3537 * regrename.c (do_replace): Update REG_DEAD notes.
3538
3539 2009-09-15 Revital Eres <eres@il.ibm.com>
3540
3541 * doc/tm.texi (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Document.
3542 * targhooks.c (default_builtin_support_vector_misalignment):
3543 New builtin function.
3544 * targhooks.h (default_builtin_support_vector_misalignment):
3545 Declare.
3546 * target.h (builtin_support_vector_misalignment):
3547 New field in struct gcc_target.
3548 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Call
3549 new builtin function.
3550 * target-def.h (TARGET_SUPPORT_VECTOR_MISALIGNMENT):
3551 Define.
3552 * config/rs6000/rs6000.c
3553 (rs6000_builtin_support_vector_misalignment): New function.
3554 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Define.
3555
3556 2009-09-15 Jie Zhang <jie.zhang@analog.com>
3557
3558 * config/bfin/bfin.c (length_for_loop): Use NONDEBUG_INSN_P
3559 instead of INSN_P.
3560 (bfin_optimize_loop): Likewise.
3561 (bfin_gen_bundles): Likewise.
3562 (workaround_speculation): Likewise.
3563 (find_load): Return NULL_RTX for debug_insn.
3564
3565 2009-09-15 Uros Bizjak <ubizjak@gmail.com>
3566
3567 * config/alpha/alpha.md (smaxsf3): Disable for IEEE mode.
3568 (sminsf3): Ditto.
3569
3570 2009-09-14 DJ Delorie <dj@redhat.com>
3571
3572 * config/mep/mep.h (JUMP_TABLES_IN_TEXT_SECTION): Define.
3573 * config/mep/mep.c (mep_emit_cbranch): Don't use BEQZ/BNEI in
3574 VLIW mode.
3575
3576 2009-09-14 Richard Henderson <rth@redhat.com>
3577 Jakub Jelinek <jakub@redhat.com>
3578
3579 * builtins.c (expand_builtin_synchronize): Use gimple_build_asm_vec.
3580 * cfgbuild.c (make_edges): Handle asm goto.
3581 * cfglayout.c (fixup_reorder_chain): Likewise.
3582 * cfgrtl.c (patch_jump_insn): Likewise.
3583 * gimple-pretty-print.c (dump_gimple_asm): Likewise.
3584 * gimple.c (gimple_build_asm_1): Add and use nlabels parameter.
3585 (gimple_build_asm_vec): Add and use labels parameter.
3586 (gimple_build_asm): Remove.
3587 (walk_gimple_asm): Walk labels too.
3588 * gimple.def (GIMPLE_ASM): Update docs.
3589 * gimple.h: Update decls.
3590 (struct gimple_statement_asm): Change nc to use unsigned char;
3591 add nl member.
3592 (gimple_asm_nlabels): New.
3593 (gimple_asm_label_op, gimple_asm_set_label_op): New.
3594 * gimplify.c (gimplify_asm_expr): Copy labels from ASM_EXPR
3595 into gimple_build_asm_vec.
3596 * jump.c (mark_jump_label_asm): New.
3597 (mark_jump_label): Use it.
3598 (redirect_jump_1): Handle asm goto.
3599 (invert_jump_1): Soft fail if X is null.
3600 * recog.c (extract_asm_operands): New.
3601 (asm_noperands): Use it; handle asm labels.
3602 (decode_asm_operands): Use extract_asm_operands.
3603 (asm_operand_ok): Properly handle empty string.
3604 * reg-stack.c (get_asm_operands_in_out): Rename from
3605 get_asm_operand_n_inputs; use extract_asm_operands; return both
3606 inputs and outputs by reference; update all callers.
3607 * rtl.def (ASM_OPERANDS): Add label vector as operand 6.
3608 * rtl.h (ASM_OPERANDS_LABEL_VEC): New.
3609 (ASM_OPERANDS_LABEL_LENGTH, ASM_OPERANDS_LABEL): New.
3610 (ASM_OPERANDS_SOURCE_LOCATION): Renumber.
3611 (extract_asm_operands): Declare.
3612 * stmt.c (expand_asm_operands): Add and use labels parameter.
3613 (check_unique_operand_names): Likewise.
3614 (resolve_asm_operand_names, resolve_operand_name_1): Likewise.
3615 (expand_asm_stmt): Handle asm labels.
3616 * tree-cfg.c (make_gimple_asm_edges): New.
3617 (make_edges): Use it.
3618 (cleanup_dead_labels): Handle asm labels.
3619 (is_ctrl_altering_stmt): Likewise.
3620 (gimple_redirect_edge_and_branch): Likewise.
3621 * tree.def (ASM_EXPR): Add 5th operand.
3622 * tree.h (ASM_LABELS): New.
3623 (resolve_asm_operand_names): Update decl.
3624
3625 * c-parser.c (c_parser_asm_statement): Parse asm goto.
3626 (c_parser_asm_goto_operands): New.
3627 * c-tree.h (build_asm_expr): Update decl.
3628 * c-typeck.c (build_asm_expr): Add and use labels parameter.
3629 * doc/extend.texi: Document asm goto.
3630
3631 2009-09-14 Richard Henderson <rth@redhat.com>
3632
3633 * except.h: Update declarations.
3634 (struct pointer_map_t): Forward declare.
3635 (ERT_UNKNOWN, ERT_THROW, ERT_CATCH): Remove.
3636 (struct eh_landing_pad_d, eh_landing_pad): New.
3637 (struct eh_catch_d, eh_catch): New.
3638 (struct eh_region_d): Remove next_region_sharing_label, aka,
3639 label, tree_label, landing_pad, post_landing_pad, resume,
3640 may_contain_throw. Rename region_number to index. Remove
3641 u.eh_catch, u.eh_throw. Rename u.eh_try.eh_catch to first_catch.
3642 Add u.must_not_throw, landing_pads, exc_ptr_reg, filter_reg.
3643 (VEC(eh_landing_pad,gc)): New.
3644 (struct eh_status): Remove last_region_number. Add lp_array,
3645 throw_stmt_table, ttype_data, ehspec_data.
3646 (ehr_next, FOR_ALL_EH_REGION_AT): New.
3647 (FOR_ALL_EH_REGION_FN, FOR_ALL_EH_REGION): New.
3648 * except.c (lang_protect_cleanup_actions): Return tree.
3649 (struct ehl_map_entry): Remove.
3650 (init_eh_for_function): Push zero entries for region and lp_array.
3651 (gen_eh_region): Add to region_array immediately.
3652 (gen_eh_region_catch): Operate on eh_catch objects.
3653 (gen_eh_landing_pad): New.
3654 (get_eh_region_may_contain_throw, get_eh_region_tree_label): Remove.
3655 (get_eh_region_no_tree_label, set_eh_region_tree_label): Remove.
3656 (get_eh_region_from_number, get_eh_region_from_number_fn): New.
3657 (get_eh_landing_pad_from_number_fn): New.
3658 (get_eh_landing_pad_from_number): New.
3659 (get_eh_region_from_lp_number_fn): New.
3660 (get_eh_region_from_lp_number): New.
3661 (expand_resx_stmt, note_eh_region_may_contain_throw): Remove.
3662 (get_exception_pointer, get_exception_filter): Remove.
3663 (collect_eh_region_array, can_be_reached_by_runtime): Remove.
3664 (current_function_has_exception_handlers): Simplify.
3665 (bring_to_root, eh_region_replaceable_by_p): Remove.
3666 (replace_region, hash_type_list, hash_eh_region): Remove.
3667 (eh_regions_equal_p, merge_peers, remove_unreachable_regions): Remove.
3668 (label_to_region_map, num_eh_regions): Remove.
3669 (get_next_region_sharing_label, must_not_throw_labels): Remove.
3670 (find_exception_handler_labels): Remove.
3671 (duplicate_eh_regions_0, find_prev_try): Remove.
3672 (struct duplicate_eh_regions_data): New.
3673 (duplicate_eh_regions_1): Rewrite.
3674 (duplicate_eh_regions): Return a pointer map instead of an
3675 integer offset.
3676 (copy_eh_region_1, copy_eh_region, push_reachable_handler): Remove.
3677 (redirect_eh_edge_to_label): Remove.
3678 (eh_region_outermost): Rewrite using eh_region pointers
3679 instead of integers.
3680 (add_ttypes_entry): Update for ttype_data move to eh_status.
3681 (add_ehspec_entry): Rewrite with VEC instead of varray.
3682 (assign_filter_values): Likewise. Export.
3683 (build_post_landing_pads, connect_post_landing_pads): Remove.
3684 (dw2_build_landing_pads): Rewrite to use lp_array.
3685 (struct sjlj_lp_info, sjlj_find_directly_reachable_regions): Remove.
3686 (sjlj_assign_call_site_values): Rewrite to use lp_array.
3687 (sjlj_emit_dispatch_table, sjlj_build_landing_pads): Likewise.
3688 (sjlj_mark_call_sites): Update for landing pad numbers.
3689 (finish_eh_generation): Rewrite.
3690 (gate_handle_eh): Do nothing for no eh tree.
3691 (pass_rtl_eh): Move up near finish_eh_generation.
3692 (remove_eh_landing_pad): New.
3693 (remove_eh_handler): Export.
3694 (remove_eh_region, remove_eh_handler_and_replace): Remove.
3695 (for_each_eh_label): Rewrite to use lp_array.
3696 (make_reg_eh_region_note): New.
3697 (make_reg_eh_region_note_nothrow_nononlocal): New.
3698 (insn_could_throw_p): New.
3699 (copy_reg_eh_region_note_forward): New.
3700 (copy_reg_eh_region_note_backward): New.
3701 (check_handled, add_reachable_handler): Remove.
3702 (reachable_next_level, foreach_reachable_handler): Remove.
3703 (arh_to_landing_pad, arh_to_label, reachable_handlers): Remove.
3704 (get_eh_region_and_lp_from_rtx): New.
3705 (get_eh_region_from_rtx): New.
3706 (can_throw_internal_1, can_throw_external_1): Remove.
3707 (can_throw_internal): Use get_eh_region_from_rtx.
3708 (can_throw_external): Use get_eh_region_and_lp_from_rtx.
3709 (insn_nothrow_p, can_nonlocal_goto): New.
3710 (expand_builtin_eh_common, expand_builtin_eh_pointer): New.
3711 (expand_builtin_eh_filter, expand_builtin_eh_copy_values): New.
3712 (add_action_record): Use VEC not varray.
3713 (collect_one_action_chain): Update for eh_region changes.
3714 (convert_to_eh_region_ranges): Make static. Use VEC not varray.
3715 Use get_eh_region_and_lp_from_rtx.
3716 (gate_convert_to_eh_region_ranges): New.
3717 (pass_convert_to_eh_region_ranges): Use it.
3718 (push_uleb128, push_sleb128): Use VEC not varray.
3719 (output_one_function_exception_table): Likewise.
3720 (dump_eh_tree): Update for eh_region changes.
3721 (verify_eh_tree): Likewise.
3722 (verify_eh_region, default_init_unwind_resume_libfunc): Remove.
3723 * tree-eh.c: Include target.h.
3724 (add_stmt_to_eh_lp_fn): Rename from add_stmt_to_eh_region_fn.
3725 Don't disallow GIMPLE_RESX; adjust argument check.
3726 (add_stmt_to_eh_lp): Rename from add_stmt_to_eh_region.
3727 (record_stmt_eh_region): Update for landing pad numbers;
3728 generate a landing pad if necessary.
3729 (remove_stmt_from_eh_lp): Rename from remove_stmt_from_eh_region.
3730 (remove_stmt_from_eh_lp_fn): Similarly.
3731 (lookup_stmt_eh_lp_fn): Rename from lookup_stmt_eh_region_fn.
3732 Update for lp numbers; don't special case missing throw_stmt_table.
3733 (lookup_expr_eh_lp): Similarly.
3734 (lookup_stmt_eh_lp): Rename from lookup_stmt_eh_region.
3735 (eh_seq, eh_region_may_contain_throw): New.
3736 (struct leh_state): Add ehp_region.
3737 (struct leh_tf_state): Remove eh_label.
3738 (emit_post_landing_pad): New.
3739 (emit_resx, emit_eh_dispatch): New.
3740 (note_eh_region_may_contain_throw): New.
3741 (frob_into_branch_around): Take eh_region not eh label;
3742 emit eh code into eh_seq.
3743 (honor_protect_cleanup_actions): Early exit for no actions. Don't
3744 handle EXC_PTR_EXPR, FILTER_EXPR. Use gimple_build_eh_must_not_throw,
3745 lower_eh_must_not_throw. Emit code to eh_seq.
3746 (lower_try_finally_nofallthru): Emit eh code to eh_seq.
3747 (lower_try_finally_onedest): Likewise.
3748 (lower_try_finally_copy): Likewise.
3749 (lower_try_finally_switch): Likewise.
3750 (lower_try_finally): Initialize ehp_region.
3751 (lower_catch): Update for eh_catch objects.
3752 (lower_eh_filter): Don't handle must_not_throw.
3753 (lower_eh_must_not_throw): New.
3754 (lower_cleanup): Don't set eh_label.
3755 (lower_eh_constructs_2): Resolve eh builtins.
3756 Handle GIMPLE_EH_MUST_NOT_THROW.
3757 (lower_eh_constructs): Initialize eh_region_may_contain_throw.
3758 Add eh_seq to the end of the function body.
3759 (make_eh_dispatch_edges): New.
3760 (make_eh_edge): Remove.
3761 (make_eh_edges): Simplify for landing pads.
3762 (redirect_eh_edge_1): New.
3763 (redirect_eh_edge): Use it.
3764 (redirect_eh_dispatch_edge): New.
3765 (stmt_could_throw_p): Use a switch. Allow RESX.
3766 (stmt_can_throw_external): Use lookup_stmt_eh_lp.
3767 (stmt_can_throw_internal): Likewise.
3768 (maybe_clean_eh_stmt_fn, maybe_clean_eh_stmt): New.
3769 (maybe_clean_or_replace_eh_stmt): Update for landing pads.
3770 (maybe_duplicate_eh_stmt_fn, maybe_duplicate_eh_stmt): New.
3771 (gate_refactor_eh): New.
3772 (pass_refactor_eh): Use it.
3773 (lower_resx, execute_lower_resx, pass_lower_resx): New.
3774 (lower_eh_dispatch, execute_lower_eh_dispatch): New.
3775 (gate_lower_ehcontrol, pass_lower_eh_dispatch): New.
3776 (remove_unreachable_handlers): Rename from
3777 tree_remove_unreachable_handlers; rewrite for landing pads;
3778 call remove_eh_handler directly.
3779 (remove_unreachable_handlers_no_lp): New.
3780 (unsplit_eh, unsplit_all_eh): New.
3781 (tree_empty_eh_handler_p, all_phis_safe_to_merge): Remove.
3782 (cleanup_empty_eh_merge_phis, cleanup_empty_eh_move_lp): New.
3783 (cleanup_empty_eh_unsplit): New.
3784 (cleanup_empty_eh): Rewrite.
3785 (cleanup_all_empty_eh): New.
3786 (execute_cleanup_eh): Rename from cleanup_eh. Remove unreachable
3787 handlers first. Use unsplit_all_eh, cleanup_all_empty_eh.
3788 (gate_cleanup_eh): New.
3789 (pass_cleanup_eh): Use it.
3790 (verify_eh_edges): Move later in file. Expect one EH edge.
3791 (verify_eh_dispatch_edge): New.
3792
3793 * Makefile.in (FUNCTION_H): Use vecprim.h, not varray.h.
3794 (gtype-desc.o): Add TARGET_H.
3795 (tree.o): Use EXCEPT_H, not except.h.
3796 (cfgbuild.o): Add EXPR_H.
3797 (GTFILES): Add vecprim.h.
3798 * builtins.c (expand_builtin): Handle BUILT_IN_EH_POINTER,
3799 BUILT_IN_EH_FILTER, BUILT_IN_EH_COPY_VALUES.
3800 * builtins.def (BUILT_IN_UNWIND_RESUME, BUILT_IN_EH_POINTER,
3801 BUILT_IN_EH_FILTER, BUILT_IN_EH_COPY_VALUES): New.
3802 * calls.c (emit_call_1): Use make_reg_eh_region_note.
3803 * cfgbuild.c (control_flow_insn_p): Use can_nonlocal_goto; tidy
3804 calls to can_throw_internal.
3805 (rtl_make_eh_edge): Use get_eh_landing_pad_from_rtx.
3806 (make_edges): Don't handle RESX; use can_nonlocal_goto.
3807 * cfgexpand.c (expand_gimple_stmt_1): Don't handle RESX.
3808 (expand_gimple_stmt): Use make_reg_eh_region_note.
3809 (expand_debug_expr): Don't handle EXC_PTR_EXPR and FILTER_EXPR.
3810 (gimple_expand_cfg): Don't call convert_from_eh_region_ranges,
3811 or find_exception_handler_labels.
3812 * cfgrtl.c (rtl_verify_flow_info_1): Don't handle RESX. Assert
3813 there is exacly one EH edge. Use can_nonlocal_goto and
3814 can_throw_internal.
3815 * cgraphunit.c (update_call_expr): Use maybe_clean_eh_stmt_fn.
3816 (cgraph_materialize_all_clones): Use maybe_clean_or_replace_eh_stmt.
3817 * combine.c (can_combine_p, try_combine): Use insn_nothrow_p.
3818 * cse.c (count_reg_usage, insn_live_p): Use insn_could_throw_p.
3819 * dce.c (deletable_insn_p_1): Don't test may_trap_p.
3820 (deletable_insn_p): Use insn_nothrow_p; reorder nonjump insn test.
3821 * dse.c (scan_insn): Use insn_could_throw_p.
3822 * emit-rtl.c (try_split): Use copy_reg_eh_region_note_backward.
3823 * expr.c (expand_expr_real): Use make_reg_eh_region_note.
3824 (expand_expr_real_1): Don't handle RESX, EXC_PTR, or FILTER_EXPR.
3825 * fold-const.c (tree_expr_nonnegative_warnv_p): Don't handle
3826 EXC_PTR_EXPR or FILTER_EXPR.
3827 (tree_expr_nonzero_warnv_p): Likewise.
3828 * function.h: Include vecprim.h, not varray.h
3829 (struct rtl_eh): Remove filter, exc_ptr, built_landing_pad members;
3830 move ttype_data and ehspec_data members to struct eh_status; change
3831 action_record_data member to a VEC.
3832 * gcse.c (hash_scan_set): Use can_throw_internal.
3833 * gengtype.c (open_base_files): Add target.h to gtype-desc.c.
3834 * gimple-iterator.c (gsi_replace): Use maybe_clean_or_replace_eh_stmt.
3835 * gimple-low.c (lower_stmt): Handle GIMPLE_EH_MUST_NOT_THROW.
3836 (block_may_fallthru): Don't handle RESX_EXPR.
3837 * gimple-pretty-print.c (dump_gimple_label): Dump EH_LANDING_PAD_NR.
3838 (dump_gimple_eh_must_not_throw, dump_gimple_eh_dispatch): New.
3839 (dump_gimple_stmt): Dump landing pad information with TDF_EH;
3840 handle GIMPLE_EH_MUST_NOT_THROW, GIMPLE_EH_DISPATCH.
3841 * gimple.c (gss_for_code): Handle GIMPLE_EH_MUST_NOT_THROW,
3842 GIMPLE_EH_DISPATCH, GIMPLE_RESX.
3843 (gimple_size): Likewise.
3844 (gimple_build_eh_dispatch, gimple_build_eh_must_not_throw): New.
3845 (gimple_build_resx): Use gimple_build_with_ops.
3846 (DEFTREECODE): Don't handle EXC_PTR_EXPR, FILTER_EXPR.
3847 (is_gimple_val): Likewise.
3848 (is_gimple_stmt): Remove RESX_EXPR.
3849 * gimple.def (GIMPLE_EH_MUST_NOT_THROW, GIMPLE_EH_DISPATCH): New.
3850 (GIMPLE_RESX): Reorder with other EH constructs.
3851 * gimple.h (struct gimple_statement_eh_mnt): New.
3852 (struct gimple_statement_eh_ctrl): Rename from gimple_statement_resx.
3853 (gimple_eh_filter_must_not_throw): Remove.
3854 (gimple_eh_filter_set_must_not_throw): Remove.
3855 (gimple_eh_must_not_throw_fndecl): New.
3856 (gimple_eh_dispatch_region, gimple_eh_dispatch_set_region): New.
3857 (is_gimple_resx): New.
3858 * gimplify.c (gimplify_expr): Don't handle EXC_PTR_EXPR, RESX_EXPR.
3859 Don't copy EH_FILTER_MUST_NOT_THROW.
3860 * gsstruct.def (GSS_EH_MNT, GSS_EHCONTROL): New.
3861 * ipa-inline.c (estimate_function_body_sizes): Don't try to
3862 handle must_not_throw_labels specially.
3863 * ipa-pure-const.c (check_call): Update debug statement for LP.
3864 * ipa-type-escape.c (check_operand): Don't handle EXC_PTR or FILTER.
3865 * ipa-utils.c (get_base_var): Likewise.
3866 * libfunc.h (LTI_unwind_resume, unwind_resume_libfunc): Remove.
3867 * lower-subreg.c (move_eh_region_note): Remove.
3868 (resolve_simple_move): Use copy_reg_eh_region_note_forward.
3869 * omp-low.c (new_omp_context): Update for eh_lp_nr.
3870 (create_task_copyfn): Likewise.
3871 (maybe_catch_exception): Use gimple_build_eh_filter.
3872 * optabs.c (emit_libcall_block): Update test for no-nonlocal-goto
3873 REG_EH_REGION. Use make_reg_eh_region_note_nothrow_nononlocal.
3874 * passes.c (init_optimization_passes): Add pass_lower_eh_dispatch
3875 and pass_lower_resx.
3876 * print-tree.c (print_node): Dump EH_LANDING_PAD_NR.
3877 * recog.c (peephole2_optimize): Use copy_reg_eh_region_note_backward,
3878 can_throw_internal, can_nonlocal_goto.
3879 * reload1.c (fixup_eh_region_note): Use insn_could_throw_p,
3880 copy_reg_eh_region_note_forward.
3881 (emit_input_reload_insns): Use copy_reg_eh_region_note_forward.
3882 (emit_output_reload_insns): Likewise.
3883 (copy_eh_notes): Remove.
3884 * rtl.def (RESX): Remove.
3885 * rtl.h: Update declarations.
3886 * sese.c (graphite_copy_stmts_from_block): Use maybe_duplicate_eh_stmt.
3887 * tree-cfg.c (make_edges): Handle GIMPLE_EH_DISPATCH.
3888 (update_eh_label): Remove.
3889 (cleanup_dead_labels_eh): New.
3890 (cleanup_deal_labels): Use it instead of update_eh_label.
3891 (gimple_merge_blocks): Update landing pad data structure when
3892 removing a landing pad label.
3893 (remove_useless_stmts_tc): Remove gimple_eh_filter_must_not_throw
3894 test; handle GIMPLE_EH_MUST_NOT_THROW.
3895 (is_ctrl_altering_stmt): Handle GIMPLE_EH_DISPATCH.
3896 (verify_gimple_assign_single): Don't handle EXC_PTR or FILTER_EXPR.
3897 (verify_types_in_gimple_stmt): Handle GIMPLE_EH_DISPATCH.
3898 (verify_stmt): Likewise. Verify landing pads.
3899 (gimple_redirect_edge_and_branch): Handle GIMPLE_EH_DISPATCH.
3900 (gimple_duplicate_bb): Use maybe_duplicate_eh_stmt.
3901 (struct move_stmt_d): Add eh_map.
3902 (move_stmt_eh_region_nr, move_stmt_eh_region_tree_nr): New.
3903 (move_stmt_r): Remap eh region numbers in builtin calls,
3904 resx and eh_dispatch.
3905 (move_block_to_fn): Remove eh_offset parameter. Use
3906 maybe_duplicate_eh_stmt_fn.
3907 (find_outermost_region_in_block): Operate on eh_region pointers
3908 instead of region numbers.
3909 (move_sese_region_to_fn): Expect eh_map instead of eh_offset from
3910 duplicate_eh_regions.
3911 * tree-cfgcleanup.c (tree_forwarder_block_p): Move entry block edge
3912 test earlier. Disallow EH landing pads.
3913 * tree-cfa.c (create_tree_common_ann): Don't set ann->rn.
3914 * tree-flow.h: Update declarations.
3915 (struct tree_ann_common_d): Replace rn with lp_nr.
3916 * tree-inline.c (copy_tree_body_r): Don't handle RESX_EXPR.
3917 (remap_eh_region_nr, remap_eh_region_tree_nr): New.
3918 (remap_gimple_stmt): Remap eh region numbers in builtin calls,
3919 resx and eh_dispatch.
3920 (copy_bb): Use maybe_duplicate_eh_stmt_fn.
3921 (copy_edges_for_bb): Use make_eh_dispatch_edges.
3922 (copy_cfg_body): Expect eh_map instead of eh_region_offset
3923 from duplicate_eh_regions.
3924 (estimate_num_insns): Don't handle EXC_PTR_EXPR or FILTER_EXPR;
3925 update RESX; handle EH_DISPATCH.
3926 (expand_call_inline): Set eh_lp_nr, not eh_region.
3927 (maybe_inline_call_in_expr): Likewise.
3928 * tree-inline.h (struct copy_body_data): Replace eh_region with
3929 eh_lp_nr, eh_region_offset with eh_map.
3930 * tree-optimize.c (execute_fixup_cfg): Use maybe_clean_eh_stmt.
3931 * tree-pass.h (pass_lower_eh_dispatch, pass_lower_resx): New.
3932 * tree-pretty-print.c (dump_generic_node): Don't handle
3933 EXC_PTR_EXPR, FILTER_EXPR, RESX_EXPR.
3934 * tree-sra.c (scan_function): Use maybe_clean_eh_stmt.
3935 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Don't handle
3936 EXC_PTR_EXPR, FILTER_EXPR.
3937 * tree-ssa-operands.c (get_expr_operands): Likewise.
3938 * tree-ssa-propagate.c (valid_gimple_rhs_p): Likewise.
3939 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
3940 (ao_ref_init_from_vn_reference): Likewise.
3941 * tree-ssa-sink.c (statement_sink_location): Likewise.
3942 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
3943 (mark_virtual_phi_result_for_renaming): Export. Tidy.
3944 * tree-ssa-pre.c (get_or_alloc_expr_for): Don't handle
3945 EXC_PTR_EXPR, FILTER_EXPR.
3946 (is_exception_related): Remove.
3947 (compute_avail): Don't call it.
3948 * tree-ssa-structalias.c: Remove VEC definitions for int and unsigned.
3949 * tree.c (find_decls_types_in_eh_region): Update for eh_region changes.
3950 (find_decls_types_in_node): Use FOR_ALL_EH_REGION_FN.
3951 (build_common_builtin_nodes): Add enable_cxa_end_cleanup parameter.
3952 Build EH builtins.
3953 (build_resx): Remove.
3954 * tree.def (EXC_PTR_EXPR, FILTER_EXPR, RESX_EXPR): Remove.
3955 * tree.h: Update declarations.
3956 (EH_FILTER_MUST_NOT_THROW): Remove.
3957 (struct tree_label_decl): Add eh_landing_pad_nr.
3958 (EH_LANDING_PAD_NR): New.
3959 * value-prof.c (gimple_ic): Tidy variable names. Update for
3960 landing pad numbers.
3961 (gimple_stringop_fixed_value): Tidy variable names. Assert
3962 that neither call stmt can throw.
3963 * vecprim.h (uchar): New.
3964 (VEC(uchar,heap), VEC(uchar,gc)): New.
3965
3966 * c-common.c (c_define_builtins): Update call to
3967 build_common_builtin_nodes.
3968 * c-parser.c (c_parse_file): Don't call
3969 default_init_unwind_resume_libfunc.
3970
3971 2009-09-14 Richard Sandiford <rdsandiford@googlemail.com>
3972
3973 * config/mips/mips-protos.h (mips_cfun_has_cprestore_slot_p): Declare.
3974 (mips_cprestore_address_p): Likewise.
3975 (mips_save_gp_to_cprestore_slot): Likewise.
3976 (mips_restore_gp): Rename to...
3977 (mips_restore_gp_from_cprestore_slot): ...this.
3978 (mips_must_initialize_gp_p): Declare.
3979 (mips_emit_save_slot_move): Likewise.
3980 (mips_output_load_label): Return nothing.
3981 (mips_eh_uses): Declare.
3982 * config/mips/mips.h (TARGET_SPLIT_CALLS): Require epilogue_completed.
3983 (TARGET_CPRESTORE_DIRECTIVE): New macro.
3984 (TARGET_ABSOLUTE_JUMPS): Likewise.
3985 (EH_USES): Likewise.
3986 (FIRST_PSEUDO_REGISTER): Update comment.
3987 (MIPS_ABSOLUTE_JUMP): New macro, extracted from...
3988 (MIPS_CALL): ...here.
3989 (REGISTER_NAMES): Add $cprestore.
3990 * config/mips/mips.c (machine_function): Remove has_gp_insn_p.
3991 Add load_label_length, has_inflexible_gp_insn_p,
3992 has_flexible_gp_insn_p, must_initialize_gp_p and
3993 must_restore_gp_when_clobbered_p.
3994 (mips_expand_call): Don't generate split instructions here.
3995 (mips_split_call): Update the call to mips_restore_gp after
3996 the above name change.
3997 (mips16_cfun_returns_in_fpr_p): Move earlier in file.
3998 (mips_find_gp_ref): New function.
3999 (mips_insn_has_inflexible_gp_ref_p): Likewise.
4000 (mips_cfun_has_inflexible_gp_ref_p): Likewise.
4001 (mips_insn_has_flexible_gp_ref_p): Likewise.
4002 (mips_cfun_has_flexible_gp_ref_p): Likewise.
4003 (mips_function_has_gp_insn): Delete.
4004 (mips_global_pointer): Drop the df_regs_ever_live_p check.
4005 Use the new functions above. Only return INVALID_REGNUM
4006 for TARGET_ABSOLUTE_JUMPS.
4007 (mips_must_initialize_gp_p): New function.
4008 (mips_get_cprestore_base_and_offset): New function, extracted from...
4009 (mips_cprestore_slot): ...here. Take a bool parameter.
4010 (mips_cfun_has_cprestore_slot_p): New function.
4011 (mips_cprestore_address_p): Likewise.
4012 (mips_save_gp_to_cprestore_slot): Likewise.
4013 (mips_restore_gp): Rename to...
4014 (mips_restore_gp_from_cprestore_slot): ...this. Assert
4015 epilogue_completed. Update the call to mips_cprestore_slot.
4016 Test cfun->machine->must_restore_gp_when_clobbered_p.
4017 (mips_direct_save_slot_move_p): New function.
4018 (mips_emit_save_slot_move): Likewise.
4019 (mips_output_cplocal): Test mips_must_initialize_gp_p () instead
4020 of cfun->machine->global_pointer.
4021 (mips_output_function_prologue): Check mips_must_initialize_gp_p ().
4022 (mips_save_reg): Use mips_emit_save_slot_move.
4023 (mips_expand_prologue): Set must_initialize_gp_p.
4024 Use mips_cfun_has_cprestore_slot_p. Use gen_potential_cprestore
4025 for all cprestore saves. Emit a use_cprestore instruction after
4026 setting up the cprestore slot.
4027 (mips_restore_reg): Use mips_emit_save_slot_move.
4028 (mips_process_load_label): New function.
4029 (mips_load_label_length): Likewise.
4030 (mips_output_load_label): Don't return asm: output it here instead.
4031 Use mips_process_load_label.
4032 (mips_adjust_insn_length): Adjust the length of branch instructions
4033 that have length MAX_PIC_BRANCH_LENGTH.
4034 (mips_output_conditional_branch): Update the call to
4035 mips_output_load_label. Assume the branch target is OPERANDS[0]
4036 rather than OPERANDS[1]. Use MIPS_ABSOLUTE_JUMP for absolute jumps.
4037 (mips_output_order_conditional_branch): Swap the meaning of
4038 OPERANDS[0] and OPERANDS[1].
4039 (mips_variable_issue): Don't count ghost instructions.
4040 (mips_expand_ghost_gp_insns): New function.
4041 (mips_reorg): Rerun mips_reorg_process_insns if it returns true.
4042 (mips_output_mi_thunk): Set must_initialize_gp_p.
4043 (mips_eh_uses): New function.
4044 * config/mips/predicates.md (cprestore_save_slot_operand)
4045 (cprestore_load_slot_operand): New predicates.
4046 * config/mips/mips.md (UNSPEC_POTENTIAL_CPRESTORE): New unspec.
4047 (UNSPEC_MOVE_GP): Likewise.
4048 (UNSPEC_CPRESTORE, UNSPEC_RESTORE_GP, UNSPEC_EH_RETURN)
4049 (UNSPEC_CONSTTABLE_INT, UNSPEC_CONSTTABLE_FLOAT): Bump to make room.
4050 (CPRESTORE_SLOT_REGNUM): New register.
4051 (MAX_PIC_BRANCH_LENGTH): New constant.
4052 (jal_macro): Use MIPS_ABSOLUTE_JUMPS.
4053 (length): Use MAX_PIC_BRANCH_LENGTH as a placeholder for PIC long
4054 branches. Fix commentary.
4055 (loadgp_newabi_<mode>): Change from unspec_volatile to unspec.
4056 Only split if mips_must_initialize_gp_p; expand to nothing otherwise.
4057 Change type to "ghost".
4058 (loadgp_absolute_<mode>): Likewise.
4059 (loadgp_rtp_<mode>): Likewise.
4060 (copygp_mips16): Likewise.
4061 (loadgp_blockage): Remove redundant mode attribute.
4062 (potential_cprestore): New instruction.
4063 (cprestore): Turn into an unspec set.
4064 (use_cprestore): New instruction.
4065 (*branch_fp): Swap operands 0 and 1. Remove redundant mode attribute.
4066 (*branch_fp_inverted): Likewise.
4067 (*branch_order<mode>): Likewise.
4068 (*branch_order<mode>_inverted): Likewise.
4069 (*branch_equality<mode>): Likewise.
4070 (*branch_equality<mode>_inverted): Likewise.
4071 (*branch_bit<bbv><mode>): Likewise.
4072 (*branch_bit<bbv><mode>_inverted): Likewise.
4073 (*branch_equality<mode>_mips16): Remove redundant mode.
4074 (jump): Turn into a define_expand.
4075 (*jump_absolute): New instruction.
4076 (*jump_pic): Likewise.
4077 (*jump_mips16): Rename previously-unnamed pattern. Remove
4078 redundant mode attribute.
4079 (restore_gp): Split on epilogue_completed rather than
4080 reload_completed. Change type to "ghost".
4081 (move_gp<mode>): New instruction.
4082 * config/mips/mips-dsp.md (mips_bposge): Swap operands 0 and 1.
4083 Remove redundant mode attribute.
4084 * config/mips/mips-ps-3d.md (bc1any4t): Likewise.
4085 (bc1any4f, bc1any2t, bc1any2f): Likewise.
4086 (*branch_upper_lower, *branch_upper_lower_inverted): Likewise.
4087
4088 2009-09-14 Michael Meissner <meissner@linux.vnet.ibm.com>
4089
4090 PR target/41210
4091 * config/rs6000/rs6000.c (rs6000_function_value): V2DF and V2DI
4092 are returned in the same register (vs34 or v2) that Altivec vector
4093 types are returned in.
4094 (rs6000_libcall_value): Ditto.
4095
4096 PR target/41331
4097 * config/rs6000/rs6000.c (rs6000_emit_move): Use gen_add3_insn
4098 instead of explicit addsi3/adddi3 calls.
4099 (rs6000_split_multireg_move): Ditto.
4100 (rs6000_emit_allocate_stack): Ditto.
4101 (rs6000_emit_prologue): Ditto.
4102 (rs6000_output_mi_thunk): Ditto.
4103
4104 * config/rs6000/rs6000.md (bswapdi*): Don't assume the pointer
4105 size is 64 bits if we can use 64-bit registers.
4106
4107 2009-09-14 Bernd Schmidt <bernd.schmidt@analog.com>
4108
4109 * config/bfin/bfin.c (bfin_longcall_p): Don't use short calls for weak
4110 symbols.
4111
4112 From Jie Zhang <jie.zhang@analog.com>:
4113 * config/bfin/bfin.c (bfin_expand_prologue): Ask do_link to
4114 save FP and RETS with saveall attribute.
4115 (bfin_expand_epilogue): Ask do_unlink to restore FP and RETS
4116 with saveall attribute.
4117
4118 * config/bfin/bfin.c (bfin_expand_builtin,
4119 case BFIN_BUILTIN_MULT_1X32X32): Force constants to registers for the
4120 operands.
4121
4122 From Jie Zhang <jie.zhang@analog.com>:
4123 * config/bfin/bfin.c (bfin_expand_builtin): Initialize icodes
4124 before use in two places.
4125 * config/bfin/bfin.md (AREG): Define mode iterator.
4126 (reload_in, reload_out): Use mode iterator AREG.
4127
4128 2009-09-14 Richard Guenther <rguenther@suse.de>
4129
4130 PR middle-end/41350
4131 * dwarf2out.c (dwarf2out_begin_prologue): Adjust non-CFI asm
4132 EH personality path.
4133
4134 2009-09-13 Richard Guenther <rguenther@suse.de>
4135 Rafael Avila de Espindola <espindola@google.com>
4136
4137 * langhooks-def.h (LANG_HOOKS_EH_RUNTIME_TYPE): Define.
4138 (LANG_HOOKS_EH_PERSONALITY): Likewise.
4139 (LANG_HOOKS_INITIALIZER): Adjust.
4140 (lhd_pass_through_t): Declare.
4141 * langhooks.h (struct lang_hooks): Add eh_runtime_type and
4142 eh_personality.
4143 * langhooks.c (lhd_pass_through_t): New function.
4144 * dwarf2out.c (output_call_frame_info, dwarf2out_do_cfi_startproc,
4145 dwarf2out_begin_prologue): Use personality from current_function_decl.
4146 * expr.h (get_personality_function): Declare.
4147 * expr.c (get_personality_function): New function.
4148 (build_personality_function): Likewise.
4149 * libfuncs.h (libfunc_index): Remove LTI_eh_personality.
4150 (eh_personality_libfunc): Remove.
4151 * optabs.c (build_libfunc_function): New function split out from ...
4152 (init_one_libfunc): ... here.
4153 * tree.h (DECL_FUNCTION_PERSONALITY): New.
4154 (tree_function_decl): Add personality.
4155 (lhd_gcc_personality): Declare.
4156 (build_personality_function): Likewise.
4157 * tree.c (gcc_eh_personality_decl): New.
4158 (lhd_gcc_personality): New function.
4159 * except.h (lang_eh_runtime_type): Remove.
4160 (enum eh_personality_kind): New.
4161 (build_personality_function): Declare.
4162 (function_needs_eh_personality): Declare.
4163 * except.c (lang_eh_runtime_type): Remove.
4164 (function_needs_eh_personality): New function.
4165 (add_type_for_runtime): Call lang_hooks.type_for_runtime instead.
4166 (sjlj_emit_function_enter, output_function_exception_table):
4167 Use personality from current_function_decl.
4168 * tree-eh.c (lower_eh_constructs): Set DECL_FUNCTION_PERSONALITY.
4169 * tree-inline.c (tree_can_inline_p): Do not inline across different
4170 EH personalities.
4171 (expand_call_inline): Likewise. Adjust the callers EH personality.
4172 (tree_function_versioning): Copy DECL_FUNCTION_PERSONALITY.
4173 * cgraph.c (cgraph_add_new_function): Set DECL_FUNCTION_PERSONALITY.
4174 * Makefile.in (cgraph.o): Add $(EXCEPT_H) dependency.
4175 (c-parser.o): Likewise
4176 * c-tree.h (c_eh_initialized_p): Remove.
4177 (c_maybe_initialize_eh): Likewise.
4178 * c-decl.c (finish_decl): Don't call c_maybe_initialize_eh.
4179 (finish_decl): Don't call c_maybe_initialize_eh.
4180 (c_eh_initialized_p): Remove.
4181 (c_maybe_initialize_eh): Likewise.
4182 * c-parser.c (c_parser_omp_construct): Likewise.
4183 (c_parse_file): Initialize exception handling.
4184
4185 2009-09-13 Kai Tietz <kai.tietz@onevision.com>
4186
4187 * config.gcc (tm_file): Remove i386/biarch32.h
4188 for i?86-w64-mingw* case.
4189 (i?86-*-mingw* andx86_64-*-mingw*): Add multilib
4190 support.
4191 * config.host: Set for x64 mingw the option
4192 use_long_long_for_widest_fast_int to yes.
4193
4194 2009-09-13 Eric Botcazou <ebotcazou@adacore.com>
4195
4196 * tree.h (DECL_IGNORED_P): Document further effect for FUNCTION_DECL.
4197 * dbxout.c (dbxout_function_end): Do not test DECL_IGNORED_P.
4198 (dbxout_begin_function): Likewise.
4199 * final.c (dwarf2_debug_info_emitted_p): New predicate.
4200 (final_start_function): Do not emit debug info if DECL_IGNORED_P is
4201 set on the function.
4202 (final_end_function): Likewise.
4203 (final_scan_insn): Likewise.
4204 (rest_of_handle_final): Likewise.
4205 * varasm.c (assemble_start_function): Likewise.
4206 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
4207
4208 2009-09-12 Jason Merrill <jason@redhat.com>
4209
4210 * dbgcnt.c (dbg_cnt_process_single_pair): constify.
4211 * opts.c (common_handle_option): constify.
4212
4213 2009-09-12 Gerald Pfeifer <gerald@pfeifer.com>
4214
4215 * doc/install.texi (avr): Remove obsolete reference site.
4216
4217 2009-09-12 Gerald Pfeifer <gerald@pfeifer.com>
4218
4219 * doc/install.texi (Binaries): Adjust AIX link.
4220
4221 2009-09-12 Akim Demaille <demaille@gostai.com>
4222
4223 * doc/invoke.texi (-fstrict-aliasing): Correct two examples.
4224 Use an imperative sentence.
4225
4226 2009-09-11 Richard Henderson <rth@redhat.com>
4227
4228 * gsstruct.def (DEFGSSTRUCT): Remove printable-name argument; add
4229 structure-name and has-tree-operands arguments; update all entries.
4230 * gimple.def (DEFGSCODE): Replace 3rd argument with GSS_symbol;
4231 update all entries.
4232 * gimple.c (gimple_ops_offset_): Use HAS_TREE_OP argument.
4233 (gsstruct_code_size): New.
4234 (gss_for_code_): New.
4235 (gss_for_code): Remove.
4236 (gimple_size): Rewrite using gsstruct_code_size.
4237 (gimple_statement_structure): Move to gimple.h.
4238 * gimple.h (gimple_ops_offset_, gss_for_code_): Declare.
4239 (gss_for_code, gimple_statement_structure): New.
4240 (gimple_ops): Use new arrays; tidy.
4241
4242 2009-09-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4243
4244 * config/pa/predicates.md (symbolic_operand): Require a CONST symbolic
4245 operand to be a PLUS expression.
4246 * config/pa/pa.c (pa_secondary_reload): Likewise.
4247
4248 2009-09-11 Jakub Jelinek <jakub@redhat.com>
4249
4250 * combine.c (propagate_for_debug_subst): Call wrap_constant on top.
4251
4252 * print-rtl.c (print_rtx): Use JUMP_LABEL (in_rtx) instead of
4253 XEXP (in_rtx, 8).
4254
4255 2009-09-11 Bernd Schmidt <bernd.schmidt@analog.com>
4256
4257 From Jie Zhang <jie.zhang@analog.com>:
4258 * doc/extend.texi (node Function Attributes): Document l2
4259 function attribute.
4260 (node Blackfin Variable Attributes): Document l2 variable attributes.
4261
4262 2009-09-11 Loren J. Rittle <ljrittle@acm.org>
4263
4264 * config.gcc (*-*-freebsd*): Enable default_use_cxa_atexit
4265 to match the system compiler's configuration at inflection point.
4266 Add comment to remark a remaining difference with system compiler.
4267
4268 * configure.ac (*-*-freebsd*): Enable check for __stack_chk_fail.
4269 * configure: Regenerate.
4270
4271 2009-09-11 Bernd Schmidt <bernd.schmidt@analog.com>
4272
4273 From Jie Zhang <jie.zhang@analog.com>:
4274 * config/bfin/bfin.c (bfin_expand_call): Handle L2 functions.
4275 (bfin_handle_l2_attribute): New.
4276 (bfin_attribute_table): Add l2 attribute.
4277
4278 2009-09-11 Michael Matz <matz@suse.de>
4279
4280 PR middle-end/41275
4281 * tree-inline.c (remap_decls): Don't put DECL_EXTERNAL decls
4282 on the local_decls list.
4283
4284 2009-09-11 Alexandre Oliva <aoliva@redhat.com>
4285
4286 PR debug/41276
4287 PR debug/41307
4288 * cselib.c (cselib_expand_value_rtx_cb): Document callback
4289 interface.
4290 (cselib_expand_value_rtx_1): Use callback for SUBREGs. Adjust
4291 for VALUEs, to implement the documented interface.
4292 * var-tracking.c (vt_expand_loc_callback): Handle SUBREGs.
4293 Adjust for VALUEs and anything else, to implement the
4294 documented interface.
4295
4296 2009-09-10 Nathan Froyd <froydnj@codesourcery.com>
4297
4298 * config/rs6000/rs6000.h (DATA_ALIGNMENT): Check that we are dealing
4299 with actual SPE/paired vector modes before using 64-bit alignment.
4300 Check that TYPE is a REAL_TYPE for TARGET_E500_DOUBLE.
4301
4302 2009-09-10 DJ Delorie <dj@redhat.com>
4303
4304 * config/mep/mep.md (eh_epilogue): Defer until after epilogue is
4305 emitted.
4306
4307 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): New.
4308 * config/mep/mep.c (mep_legitimate_constant_p): New.
4309 * config/mep/mep-protos.h: Prototype it.
4310
4311 2009-09-10 Richard Henderson <rth@redhat.com>
4312
4313 * print-rtl.c (print_rtx): Fix JUMP_LABEL index.
4314
4315 2009-09-10 Jason Merrill <jason@redhat.com>
4316
4317 * tree.c (chain_index): New fn.
4318 * tree.h: Declare it.
4319
4320 2009-09-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4321
4322 * config/sol2-c.c (cmn_err_length_specs): Initialize
4323 scalar_identity_flag.
4324
4325 2009-09-10 Richard Henderson <rth@redhat.com>
4326
4327 * tree.h (struct tree_decl_common): Move align member earlier;
4328 move label_decl_uid member ...
4329 (struct tree_label_decl): ... here.
4330 (LABEL_DECL_UID): Update to match.
4331
4332 * tree-cfg.c (dump_function_to_file): Dump eh tree with TDF_EH,
4333 not TDF_DETAILS.
4334
4335 * tree-cfg.c (gimple_redirect_edge_and_branch): Do
4336 gimple_try_redirect_by_replacing_jump test after no-op and EH tests.
4337
4338 * tree-cfg.c (split_edge_bb_loc): Don't disallow placement at
4339 dest_prev if the edge is complex.
4340
4341 * tree-cfg.c (is_ctrl_stmt): Use a switch.
4342
4343 * tree-cfg.c (gimple_can_merge_blocks_p): Move label and
4344 loop latch tests earlier.
4345
4346 * gimple-iterator.c (gimple_find_edge_insert_loc): Insert
4347 before GIMPLE_RETURN, not after its predecessor; insert
4348 before GIMPLE_RESX.
4349
4350 * gimple-iterator.c (gimple_find_edge_insert_loc): Use
4351 gimple_seq_empty_p to test for no PHI nodes.
4352 * tree-cfg.c (split_critical_edges): Likewise.
4353
4354 * c-common.h (c_dialect_cxx, c_dialect_objc): Boolify.
4355
4356 2009-09-10 Hariharan Sandanagobalane <hariharan@picochip.com>
4357
4358 * final.c (shorten_branches) : Ignore DEBUG_INSN_P instructions
4359 introduced by the VTA branch merge.
4360
4361 2009-09-10 Uros Bizjak <ubizjak@gmail.com>
4362
4363 * ira-conflicts.c: Use fputs or putc instead of fprintf
4364 where appropriate.
4365 * cfg.c: Ditto.
4366 * toplev.c: Ditto.
4367 * tree-switch-conversion.c: Ditto.
4368
4369 2009-09-10 Hariharan Sandanagobalane <hariharan@picochip.com>
4370
4371 * config/picochip/picochip.c : Ignore DEBUG_INSN_P instructions
4372 introduced by the VTA branch merge.
4373
4374 2009-09-10 Uros Bizjak <ubizjak@gmail.com>
4375
4376 Revert:
4377 2009-09-09 Uros Bizjak <ubizjak@gmail.com>
4378
4379 PR rtl-optimization/39779
4380 * expr.c (convert_modes): Return when mode == oldmode after
4381 CONST_INTs are processed.
4382
4383 2009-09-10 Nick Clifton <nickc@redhat.com>
4384
4385 * config/mep/mep.c (mep_encode_section_info): Copy weakness
4386 attribute and referring decl when creating renamed symbol.
4387
4388 2009-09-10 Richard Guenther <rguenther@suse.de>
4389
4390 PR middle-end/41257
4391 * cgraphunit.c (cgraph_emit_thunks): Emit thunks only for
4392 reachable nodes.
4393 (cgraph_finalize_compilation_unit): Compute reachability
4394 before emitting thunks. Properly process aliases before
4395 possibly removing unreachable nodes.
4396
4397 2009-09-10 Richard Guenther <rguenther@suse.de>
4398
4399 PR middle-end/41254
4400 * tree.c (struct free_lang_data_d): Add worklist member.
4401 (find_decls_types_r): Push onto the worklist instead of recursing.
4402 Handle TREE_BINFOs properly.
4403 (find_decls_types): New function wrapped around find_decls_types_r
4404 to process the worklist.
4405 (find_decls_types_in_eh_region): Use it.
4406 (find_decls_types_in_node): Likewise.
4407 (find_decls_types_in_var): Likewise.
4408 (free_lang_data_in_cgraph): Likewise. Free the worklist.
4409 * tree.h (RECORD_OR_UNION_TYPE_P): New.
4410 (AGGREGATE_TYPE_P): Adjust.
4411
4412 2009-09-09 Jason Merrill <jason@redhat.com>
4413
4414 * configure.ac: Check glibc version even if we have an in-tree
4415 assembler.
4416
4417 2009-09-09 Anthony Green <green@moxielogic.com>
4418
4419 * config/moxie/moxie.md (*movsi, *movhi, *movqi): Use xor to load
4420 the constant 0 when appropriate.
4421 * config/moxie/constraints.md: Add constraint O.
4422
4423 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Adjust
4424 to pass up to 6 32-bit argument values in registers.
4425 (moxie_function_arg): Ditto.
4426 (moxie_arg_partial_bytes): Ditto.
4427 * config/moxie/moxie.h (FUNCTION_ARG_ADVANCE): Ditto.
4428 (REG_PARM_STACK_SPACE): Ditto.
4429 (FUNCTION_ARG_REGNO_P): Ditto.
4430
4431 * config/moxie/moxie.c (moxie_expand_prologue): Use dec
4432 instruction to allocate stack space.
4433
4434 2009-09-09 Segher Boessenkool <segher@kernel.crashing.org>
4435
4436 * config/rs6000/rs6000.md (bswapdi2_64bit): Fix
4437 unnecessarily stringent constraints. Fix address
4438 calculation in the splitters.
4439
4440 2009-09-09 Uros Bizjak <ubizjak@gmail.com>
4441
4442 PR rtl-optimization/39779
4443 * expr.c (convert_modes): Return when mode == oldmode after
4444 CONST_INTs are processed.
4445
4446 2009-09-09 Kai Tietz <kai.tietz@onevision.com>
4447
4448 PR/41315
4449 * config/i386.c (ix86_can_use_return_insn_p): Check for padding0, too.
4450 (ix86_expand_prologue): Take frame.padding0 into logic of
4451 to_allocate checks.
4452 (ix86_expand_epilogue): Likewise.
4453
4454 2009-09-09 Jakub Jelinek <jakub@redhat.com>
4455
4456 * config/t-slibgcc-elf-ver (SHLIB_MAKE_SOLINK, SHLIB_INSTALL_SOLINK):
4457 New variables.
4458 (SHLIB_LINK, SHLIB_INSTALL): Use them.
4459 * config/t-slibgcc-libgcc: New file.
4460 * config.gcc (powerpc*-*-linux*, powerpc*-*-gnu*): Use it.
4461
4462 2009-09-09 Martin Jambor <mjambor@suse.cz>
4463
4464 PR tree-optimization/41089
4465 * tree-sra.c (find_var_candidates): Do not consider va_lists in
4466 early SRA.
4467
4468 2009-09-09 Richard Henderson <rth@redhat.com>
4469
4470 * gimple.h (CASE_GIMPLE_OMP): New.
4471 (is_gimple_omp): Use it.
4472 * tree-cfg.c (is_ctrl_altering_stmt): Likewise.
4473 (verify_gimple_debug): Likewise.
4474
4475 2009-09-09 Richard Guenther <rguenther@suse.de>
4476
4477 PR tree-optimization/41101
4478 * tree-ssa-pre.c (maximal_set): Remove.
4479 (compute_antic_aux): Treat the maximal set as implicitly all ones.
4480 Defer all blocks we didn't visit at least one successor.
4481 (add_to_exp_gen): Do not add to the maximal set.
4482 (make_values_for_phi): Likewise.
4483 (compute_avail): Likewise.
4484 (init_pre): Do not allocate the maximal set.
4485 (execute_pre): Do not dump it.
4486
4487 2009-09-09 Martin Jambor <mjambor@suse.cz>
4488
4489 * tree-cfg.c (verify_gimple_phi): Check that gimple_phi_result is
4490 an SSA_NAME rather than a is_gimple_variable.
4491
4492 2009-09-09 Richard Guenther <rguenther@suse.de>
4493
4494 PR middle-end/41317
4495 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Remove
4496 code dealing with plain pointer bases.
4497 (maybe_fold_offset_to_reference): Likewise.
4498 (maybe_fold_stmt_addition): Adjust.
4499
4500 2009-09-09 Richard Guenther <rguenther@suse.de>
4501
4502 * tree.c (free_lang_data_in_type): Do not free the type variant
4503 chains.
4504 (free_lang_data): Merge char_type_node with its properly signed
4505 variant.
4506 (pass_ipa_free): Collect after freeing language specific data.
4507
4508 2009-09-09 Michael Matz <matz@suse.de>
4509
4510 PR middle-end/41268
4511 * cfgexpand.c (expand_gimple_stmt_1): Use an int for storing
4512 SUBREG_PROMOTED_UNSIGNED_P, instead of a bool.
4513 * rtl.h (struct rtx, SUBREG_PROMOTED_UNSIGNED_P): Update comments
4514 to reflect reality.
4515
4516 2009-09-08 DJ Delorie <dj@redhat.com>
4517
4518 * config/mep/mep.c (conversions[]): Add "ml" pattern.
4519
4520 2009-09-04 Jason Merrill <jason@redhat.com>
4521
4522 * tree.c (tree_find_value): Remove.
4523 * tree.h: Remove prototype.
4524 * varasm.c (assemble_external): Use value_member instead.
4525
4526 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
4527
4528 * toplev.c (process_options): Choose default debugging type when
4529 gtoggle enables debug info and type is unset.
4530
4531 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
4532
4533 PR debug/41276
4534 PR debug/41307
4535 * cselib.c (cselib_expand_value_rtx_1): Don't return copy of
4536 invalid subreg.
4537
4538 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
4539
4540 * configure: Rebuilt with modified libtool.m4.
4541
4542 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
4543
4544 PR debug/41229
4545 PR debug/41291
4546 PR debug/41300
4547 * tree-ssa.c (execute_update_addresses_taken): Update debug insns.
4548
4549 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
4550
4551 * tree-ssa-loop-ivopts.c (get_phi_with_result): Remove.
4552 (remove_statement): Likewise.
4553 (rewrite_use_nonlinear_expr): Adjust.
4554 (remove_unused_ivs): Collect SSA NAMEs to remove and call...
4555 * tree-ssa.c (release_defs_bitset): ... this. New.
4556 * tree-flow.h (release_defs_bitset): Declare.
4557
4558 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
4559
4560 PR debug/41232
4561 * tree-ssa-phiopt.c (minmax_replacement): Skip debug stmts
4562 in the middle block.
4563
4564 2009-09-08 Kai Tietz <kai.tietz@onevision.com>
4565
4566 * tree-ssa-reassoc.c (find_operand_rank): Cast pointer
4567 via intptr_t to long type.
4568 (insert_operand_rank): Cast long type via intptr_t to
4569 pointer type.
4570 * genattrtab.c (RTL_HASH): Use intptr_t to cast from
4571 pointer to scalar.
4572 * c-pretty-print.c (pp_c_tree_decl_identifier): Cast
4573 from pointer to unsigned via uintptr_t.
4574
4575 * configure.ac (GCC_STDINT_TYPES): Initialize intptr_t,
4576 uintptr_t, HAVE_INTTYPES_H, HAVE_STDINT_H, HAVE_UINTPTR_T,
4577 and HAVE_INTPTR_T.
4578 * configure: Regenerated.
4579 * config.in: Regenerated
4580 * system.h (stdint.h): Add include.
4581 (inttypes.h): Likewise.
4582 * Makefile.in (aclocal): Add config/stdint.m4.
4583 * aclocal.m4: Regenerated.
4584
4585 2009-09-08 Bernd Schmidt <bernd.schmidt@analog.com>
4586
4587 * config/bfin/bfin.c (np_check_regno, np_after_branch): New static
4588 variables.
4589 (note_np_check_stores): New function.
4590 (harmless_null_pointer_p): New function.
4591 (trapping_loads_p): New args NP_REG and AFTER_NP_BRANCH. Callers
4592 changed. Take into account whether we're in the shadow of a condjump
4593 that tested NP_REG for NULL.
4594 Lose all code that tested for SEQUENCEs.
4595 (workaround_speculation): Avoid inserting NOPs for loads that are
4596 either always executed or a NULL pointer.
4597
4598 2009-09-08 Jan Hubicka <jh@suse.cz>
4599
4600 * doc/invoke.texi (early-inlining-insns): Reduce from 12 to 8.
4601 * params.def (early-inlining-insns): Likewise.
4602
4603 2009-09-08 Jakub Jelinek <jakub@redhat.com>
4604
4605 PR rtl-optimization/41239
4606 * sched-int.h (struct deps): Add last_function_call_may_noreturn field.
4607 * sched-rgn.c (deps_join): Join also last_function_call_may_noreturn
4608 lists.
4609 * sched-deps.c (sched_analyze_insn): Prevent moving trapping insns
4610 across calls, as the calls might not always return normally.
4611 (call_may_noreturn_p): New function.
4612 (deps_analyze_insn): Update last_function_call_may_noreturn list.
4613 (init_deps): Initialize it.
4614 (remove_from_deps): Also remove calls from
4615 last_function_call_may_noreturn list.
4616
4617 2009-09-07 Richard Henderson <rth@redhat.com>
4618
4619 * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't assume there are
4620 more VR->OPERANDS than LHS operands. Free LHS before returning.
4621
4622 2009-09-07 Bernd Schmidt <bernd.schmidt@analog.com>
4623
4624 * config/bfin/bfin.md (UNSPEC_VOLATILE_STALL): New constant.
4625 (attr "addrtype"): New member "spreg".
4626 Use it if mem_spfp_address_operand is true for the address.
4627 (attr "type"): New entry "stall".
4628 (cpu_unit "load"): New.
4629 (insn_reservations "load32", "loadp", "loadi"): Add reservation of
4630 "load".
4631 (insn_reservation "loadsp"): New.
4632 (insn_reservation "load_stall1"): New.
4633 (insn_reservation "load_stall3"): New.
4634 (stall): New insn.
4635 * config/bfin/predicates.md (const1_operand, const3_operand): New.
4636 (mem_p_address_operand): Exclude stack and frame pointer based
4637 addresses.
4638 (mem_spfp_address_operand): New; match them here.
4639 * config/bfin/bfin.c (add_sched_insns_for_speculation): New function.
4640 (bfin_reorg): Call it if scheduling insns.
4641 (bfin_gen_bundles): Remove dummy insns created by
4642 add_sched_insns_for_speculation.
4643
4644 From Jie Zhang <jie.zhang@analog.com>:
4645 * config/bfin/bfin-protos.h (enum bfin_cpu_type, bfin_cpu_type,
4646 bfin_si_revision, bfin_workarounds): Move these ...
4647 * config/bfin/bfin.h: ... here.
4648
4649 From Mike Frysinger <michael.frysinger@analog.com>
4650 * config/bfin/bfin-protos.h (bfin_cpu_type): Add BFIN_CPU_BF542M,
4651 BFIN_CPU_BF544M, BFIN_CPU_BF547M, BFIN_CPU_BF548M, and BFIN_CPU_BF549M.
4652 * config/bfin/bfin.c (bfin_cpus[]): Add 0.3 for bf542m, bf544m,
4653 bf547m, bf548m, and bf549m.
4654 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define __ADSPBF542M__
4655 for BFIN_CPU_BF542M, __ADSPBF544M__ for BFIN_CPU_BF544M,
4656 __ADSPBF547M__ for BFIN_CPU_BF547M, __ADSPBF548M__ for
4657 BFIN_CPU_BF548M, and __ADSPBF549M__ for BFIN_CPU_BF549M.
4658 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
4659 bf542m-none, bf544m-none, bf547m-none, bf548m-none, and bf549m-none.
4660 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
4661 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
4662 * doc/invoke.texi (Blackfin Options): Document that -mcpu now accepts
4663 bf542m, bf544m, bf547m, bf548m, and bf549m.
4664
4665 From Jie Zhang <jie.zhang@analog.com>:
4666 * config/bfin/predicates.md (p_register_operand): New predicate.
4667 (dp_register_operand): New predicate.
4668 * config/bfin/bfin-protos.h (WA_05000074): Define.
4669 (ENABLE_WA_05000074): Define.
4670 * config/bfin/bfin.c (bfin_cpus[]): Add WA_05000074 for all cpus.
4671 (bfin_gen_bundles): Put dsp32shiftimm instruction in slot[0].
4672 * config/bfin/bfin.md (define_attr type): Add dsp32shiftimm.
4673 (define_attr addrtype): Allow load/store register to be P register.
4674 (define_attr storereg): New.
4675 (define_cpu_unit anomaly_05000074): New.
4676 (define_insn_reservation dsp32shiftimm): New.
4677 (define_insn_reservation dsp32shiftimm_anomaly_05000074): New.
4678 (define_insn_reservation loadp): Cannot use slot2.
4679 (define_insn_reservation loadsp): Cannot use slot2.
4680 (define_insn_reservation storep): Cannot use slot2. Does not
4681 apply when working around 05000074.
4682 (define_insn_reservation storep_anomaly_05000074): New.
4683 (define_insn_reservation storei): Does not apply when working
4684 around 05000074.
4685 (define_insn_reservation storei_anomaly_05000074): New.
4686 (define_attr length): Add dsp32shiftimm case.
4687 (define_insn movsi_insn32, movsi_insv, ashlsi3_insn, ashrsi3,
4688 ror_one, rol_one, lshrsi3, lshrpdi3, ashrpdi3, movhiv2hi_low,
4689 movhiv2hi_high, composev2hi, packv2hi, movv2hi_hi,
4690 ssashiftv2hi3, ssashifthi3, ssashiftsi3, lshiftv2hi3, lshifthi3):
4691 Set type as dsp32shiftimm for dsp32shiftimm alternatives.
4692
4693 2009-09-07 Martin Jambor <mjambor@suse.cz>
4694
4695 PR middle-end/41282
4696 * tree-sra.c (create_artificial_child_access): Return NULL if
4697 build_ref_for_offset fails.
4698 (propagate_subacesses_accross_link): Allow build_ref_for_offset
4699 and create_artificial_child_access to fail.
4700
4701 2009-09-06 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
4702
4703 PR c++/41214
4704 * unwind-dw2.c (uw_init_context_1): Mark noinline.
4705 * config/ia64/unwind-ia64.c (uw_init_context_1): Likewise.
4706 * config/xtensa/unwind-dw2-xtensa.c (uw_init_context_1): Likewise.
4707
4708 2009-09-07 Bernd Schmidt <bernd.schmidt@analog.com>
4709
4710 * config/bfin/bfin.c (bfin_optimize_loop): When creating a new basic
4711 block, ensure it has an exit edge. Emit a barrier after a jump.
4712
4713 2009-09-07 Nick Clifton <nickc@redhat.com>
4714
4715 * gcc.c (this_is_linker_script): New variable. Like
4716 this_is_library_file but for the %T constructor.
4717 (end_going_arg): If this_is_linker_script is set then locate the
4718 script and insert a --script switch before it
4719 (do_spec_2): Initialise this_is_linker_script.
4720 (do_spec_1): Likewise. Handle %T construct.
4721 (eval_spec_function): Preserve this_is_linker_script.
4722 * doc/invoke.texi: Document %T construct in spec files.
4723 * config/m32c/m32c.h (LIB_SPEC): Use it.
4724
4725 2009-09-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4726
4727 * rtl.h (PREFETCH_SCHEDULE_BARRIER_P): New macro.
4728 * sched-deps.c (sched_analyze_2): Make prefetches a hard barrier
4729 when volatile flag is set.
4730 * doc/rtl.texi (PREFETCH_SCHEDULE_BARRIER_P): Add documentation pieces.
4731
4732 2009-09-06 Eric Botcazou <ebotcazou@adacore.com>
4733
4734 PR bootstrap/41241
4735 * combine-stack-adj.c (try_apply_stack_adjustment): Handle stores.
4736 (combine_stack_adjustments_for_block): Allow insns between stack
4737 adjustments and stores with corresponding pre-(dec|inc)rement or
4738 pre-modify operation.
4739
4740 2009-09-06 Jakub Jelinek <jakub@redhat.com>
4741
4742 PR bootstrap/41241
4743 * combine-stack-adj.c (struct csa_memlist): Rename to...
4744 (struct csa_reflist): ... this. Rename mem field to ref.
4745 (free_csa_memlist): Rename to...
4746 (free_csa_reflist): ... this.
4747 (record_one_stack_memref): Rename to...
4748 (record_one_stack_ref): ... this. Handle also REG_P.
4749 (try_apply_stack_adjustment): Handle also REG_P.
4750 (struct record_stack_memrefs_data): Rename to...
4751 (struct record_stack_refs_data): ... this. Rename memlist field to
4752 reflist.
4753 (record_stack_memrefs): Rename to...
4754 (record_stack_refs): ... this. For DEBUG_INSNs keep traversing
4755 subexpressions instead of failing when a MEM contains SP references.
4756 For SP itself in DEBUG_INSNs queue it also onto reflist chain.
4757 (combine_stack_adjustments_for_block): Adjust for mem to ref renaming.
4758
4759 2009-09-06 Richard Guenther <rguenther@suse.de>
4760
4761 PR middle-end/41144
4762 * tree.c (build_array_type): Do not record types marked
4763 with structural equality in the canonical type hashtable.
4764
4765 2009-09-06 Richard Guenther <rguenther@suse.de>
4766
4767 PR middle-end/41261
4768 * tree-ssa-alias.c (refs_may_alias_p_1): Bail out for function decls.
4769
4770 2009-09-05 Richard Guenther <rguenther@suse.de>
4771
4772 PR middle-end/41181
4773 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Use the correct type.
4774
4775 2009-09-05 Richard Guenther <rguenther@suse.de>
4776
4777 PR debug/41273
4778 * tree-ssa-operands.c (get_tmr_operands): Pass through opf_no_vops.
4779
4780 2009-09-05 Richard Guenther <rguenther@suse.de>
4781
4782 PR middle-end/41271
4783 * tree-ssa.c (useless_type_conversion_p): Drop qualifiers
4784 before comparing function argument types.
4785
4786 2009-09-05 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4787
4788 PR target/41024
4789 * config/i386/mingw-w64.h (ASM_SPEC): Pass -v instead of -V to
4790 the assembler.
4791
4792 2009-09-04 Uros Bizjak <ubizjak@gmail.com>
4793
4794 Revert:
4795 2009-08-18 Uros Bizjak <ubizjak@gmail.com>
4796
4797 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn
4798 locators before emit_insn is called.
4799
4800 2009-09-04 Vladimir Makarov <vmakarov@redhat.com>
4801
4802 PR bootstrap/41241
4803 * ira.c (update_equiv_reg): Revert my previous patch for the PR.
4804 * reginfo.c (resize_reg_info): Call allocate_reg_info if necessary.
4805 (reginfo_init): Don't call allocate_reg_info.
4806
4807 2009-09-04 Uros Bizjak <ubizjak@gmail.com>
4808
4809 PR target/41262
4810 * config/alpha/alpha.c (alpha_does_function_need_gp): Use
4811 NONDEBUG_INSN_P instead of INSN_P.
4812
4813 2009-09-04 Alexandre Oliva <aoliva@redhat.com>
4814
4815 PR debug/41225
4816 * tree-vect-stmts.c (vect_stmt_relevant_p): Skip debug uses.
4817
4818 2009-09-04 Alexandre Oliva <aoliva@redhat.com>
4819
4820 PR target/41252
4821 * config/arm/vfp.md (*cmpdf_split_vfp): Fix src mode in the second
4822 pattern of the split.
4823
4824 2009-09-04 Alexandre Oliva <aoliva@redhat.com>
4825
4826 * toplev.c (process_options): Move setter of flag_var_tracking
4827 before other tests that depend on it. Move down setter of
4828 flag_rename_registers. Don't enable var-tracking-assignments
4829 by default if selective scheduling is enabled. Warn if both
4830 are enabled.
4831
4832 2009-09-04 Alexandre Oliva <aoliva@redhat.com>
4833
4834 * var-tracking.c (dv_is_decl_p): Adjust NULL behavior to match
4835 comment. Use switch statement to catch overlaps between rtx
4836 and tree codes. Accept FUNCTION_DECLs in addition to those in...
4837 (IS_DECL_CODE): ... here. Remove.
4838 (check_value_is_not_decl): Remove.
4839 (dv_from_decl, dv_from_value): Check after conversion.
4840
4841 2009-09-04 Richard Guenther <rguenther@suse.de>
4842
4843 PR middle-end/41257
4844 * (cgraph_finalize_compilation_unit): Move finalizing aliases
4845 after emitting tunks. Move emitting thunks and ctors from ...
4846 (cgraph_optimize): ... here. Remove redundant
4847 cgraph_analyze_functions.
4848 * varasm.c (find_decl_and_mark_needed): Remove no longer
4849 necessary check.
4850 (finish_aliases_1): Adjust check for thunk aliases.
4851
4852 2009-09-04 Daniel Gutson <dgutson@codesourcery.com>
4853
4854 * config/arm/arm.md (ctzsi2): Added braces
4855 to avoid warning that broke booststrap.
4856
4857 2009-09-04 Martin Jambor <mjambor@suse.cz>
4858
4859 PR tree-optimization/41112
4860 * tree-sra.c (build_ref_for_offset_1): Signal that we cannot
4861 handle variable-bounded arrays.
4862 (expr_with_var_bounded_array_refs_p): New function.
4863 (analyze_access_subtree): Call expr_with_var_bounded_array_refs_p.
4864
4865 2009-09-04 Wolfgang Gellerich <gellerich@de.ibm.com>
4866
4867 * config/s390/2097.md: Removed two incorrect bypasses.
4868 (z10_fsimpdf): Fixed latency.
4869 (z10_fhex): New insn_reservation.
4870 (z10_floaddf): Fixed latency.
4871 (z10_floadsf): Fixed latency.
4872 (z10_ftrunctf): Fixed latency.
4873 (z10_ftruncdf): Fixed latency.
4874 * config/s390/s390.c (z10_cost): Fixed values.
4875 (s390_adjust_priority): Added z10 path.
4876 * config/s390/s390.md (type): Added fhex.
4877 (*mov<mode>_64dfp): Updated type attribute.
4878 (*mov<mode>_64): Updated type attribute.
4879 (*mov<mode>_31): Updated type attribute.
4880 (*mov<mode>"): Likewise.
4881 * config/s390/2084.md (x_fsimpdf): Updated condition.
4882
4883 2009-09-04 Andreas Krebbel <krebbel1@de.ibm.com>
4884
4885 * config/s390/s390.md ("*fmadd<mode>", "*fmsub<mode>"): Enable mem
4886 RTXs in the predicate for operand 1.
4887
4888 2009-09-03 Daniel Gutson <dgutson@codesourcery.com>
4889
4890 * config/arm/arm.md (UNSPEC_RBIT): New constant.
4891 (rbitsi2): New insn.
4892 (ctzsi2): New expand.
4893 * config/arm/arm.h (CTZ_DEFINED_VALUE_AT_ZERO): New macro.
4894
4895 2009-09-03 Martin Jambor <mjambor@suse.cz>
4896
4897 * tree-sra.c (duplicate_expr_for_different_base): Removed.
4898 (create_artificial_child_access): Use build_ref_for_offset instead
4899 of duplicate_expr_for_different_base.
4900 (propagate_subacesses_accross_link): Likewise.
4901
4902 2009-09-03 Richard Sandiford <rdsandiford@googlemail.com>
4903
4904 * config/mips/mips.c (USEFUL_INSN_P): Use NONDEBUG_INSN_P instead
4905 of INSN_P.
4906 (mips16e_collect_argument_saves): Skip debug instructions.
4907 (mips_74k_agen_init): Use CALL_P || JUMP_P instead of !NONJUMP_INSN_P.
4908 (mips16_lay_out_constants): Use USEFUL_INSN_P instead of INSN_P.
4909 (r10k_insert_cache_barriers): Likewise.
4910 (mips_reorg_process_insns): Likewise.
4911
4912 2009-09-03 Vladimir Makarov <vmakarov@redhat.com>
4913
4914 PR bootstrap/41241
4915 * ira.c (update_equiv_reg): Remove check on class likely spill.
4916
4917 2009-09-03 Jakub Jelinek <jakub@redhat.com>
4918
4919 PR debug/41236
4920 * dwarf2out.c (loc_descriptor): Don't use SUBREG_REG macro on
4921 SIGN_EXTEND or ZERO_EXTEND. Don't assume there is a REG inside of
4922 it or SUBREG.
4923
4924 PR debug/41238
4925 * function.c (assign_parm_find_stack_rtl): Don't set mem attributes on
4926 the stack slot if it is passed by invisible reference.
4927 * var-tracking.c (vt_add_function_parameters): Handle arguments passed
4928 by invisible reference.
4929
4930 2009-09-03 Bernd Schmidt <bernd.schmidt@analog.com>
4931
4932 * config/bfin/linux.h (TARGET_SUPPORTS_SYNC_CALLS): Define to 1.
4933 * config/bfin/uclinux.h (TARGET_SUPPORTS_SYNC_CALLS): Define to 1.
4934 * config/bfin/bfin.h (TARGET_SUPPORTS_SYNC_CALLS): Provide default of
4935 0.
4936 * config/bfin/sync.md: New file.
4937 * config/bfin/bfin.md: Include it.
4938 (UNSPEC_ATOMIC): New.
4939 (UNSPEC_ONES): Provide a unique number.
4940
4941 From Jie Zhang <jie.zhang@analog.com>:
4942 * config/bfin/bfin.c (ret_regs): New.
4943 (must_save_fp_p): Don't return true because of frame_pointer_needed.
4944 (must_save_rets_p): New.
4945 (n_regs_saved_by_prologue): Use must_save_rets_p instead of
4946 current_function_is_leaf.
4947 (do_link): Likewise.
4948 (do_unlink): Likewise.
4949 (expand_interrupt_handler_prologue): Use ret_regs array.
4950 (expand_interrupt_handler_epilogue): Use ret_regs array and
4951 pass return register to gen_return_internal.
4952 (bfin_expand_epilogue): Pass return register to
4953 gen_return_internal.
4954 (bfin_expand_call): Explicitly clobber RETS.
4955 * config/bfin/bfin.h (FUNCTION_RETURN_REGISTERS): Define.
4956 * config/bfin/bfin.md (call_symbol_fdpic, call_value_symbol_fdpic,
4957 call_insn_fdpic, call_value_insn_fdpic, call_symbol,
4958 call_value_symbol, call_insn, call_value_insn): Explicitly clobber
4959 RETS.
4960 (return_internal): Take a reg rtx rather than the register number.
4961
4962 2009-09-03 H.J. Lu <hongjiu.lu@intel.com>
4963
4964 * tree-parloops.c (parallelize_loops): Cast to HOST_WIDE_INT
4965 when comparing against estimated_loop_iterations_int return.
4966
4967 2009-09-03 Richard Guenther <rguenther@suse.de>
4968
4969 * dwarf2out.c (dwarf2out_do_cfi_asm): Remove check of
4970 eh_personality_libfunc.
4971
4972 2009-09-03 Razya Ladelsky <razya@il.ibm.com>
4973
4974 * tree-parloops.c (separate_decls_in_region): Add space.
4975
4976 2009-09-03 Razya Ladelsky <razya@il.ibm.com>
4977
4978 * tree-parloops.c (separate_decls_in_region): Change the condition
4979 checking if there are reductions in the loop.
4980
4981 2009-09-03 Razya Ladelsky <razya@il.ibm.com>
4982
4983 PR tree-optimization/38275
4984 * tree-parloops.c (parallelize_loops): Replace profitability condition
4985 for expected number of iterations.
4986
4987 2009-09-03 Alexandre Oliva <aoliva@redhat.com>
4988
4989 * doc/invoke.texi (BUILD_CONFIG): Document --with-build-config.
4990 (bootstrap-debug): Explain conditions in which it becomes default.
4991 (bootstrap-debug-big): Rather than duplicate bootstrap-debug,
4992 make it add to it.
4993
4994 2009-09-03 Namhyung Kim <namhyung@gmail.com>
4995
4996 * doc/invoke.texi (Optimize Options): Move
4997 -finline-small-functions to the -O2 list.
4998
4999 2009-09-03 Alexandre Oliva <aoliva@redhat.com>
5000
5001 * toplev.c (process_options): Enable var-tracking-assignments
5002 by default if var-tracking is enabled.
5003
5004 2009-09-02 David Daney <ddaney@caviumnetworks.com>
5005
5006 * cfgbuild.c (find_bb_boundaries): Split blocks containing a
5007 barrier.
5008 * emit-rtl.c (prev_nonnote_insn_bb): New function.
5009 * rtl.h (prev_nonnote_insn_bb): Declare it.
5010
5011 2009-09-03 Diego Novillo <dnovillo@google.com>
5012
5013 * cgraph.c (cgraph_node_for_decl): New.
5014 * cgraph.h (cgraph_node_for_decl): Declare.
5015 * tree.c (host_integerp): Return 0 if T is NULL.
5016
5017 2009-09-03 Diego Novillo <dnovillo@google.com>
5018
5019 * tree.h (struct alias_pair): Move from varasm.c.
5020 (alias_pairs): Likewise.
5021 (TYPE_MAXVAL): Define.
5022 (TYPE_MINVAL): Define.
5023 (iterative_hash_host_wide_int): Declare.
5024 (remove_unreachable_alias_pairs): Declare.
5025 * tree-pass.h (pass_ipa_free_lang_data): Declare.
5026 * diagnostic.c (default_diagnostic_starter): Make extern.
5027 (default_diagnostic_finalizer): Make extern.
5028 * diagnostic.h (default_diagnostic_starter): Declare.
5029 (default_diagnostic_finalizer): Declare.
5030 (default_tree_printer): Declare.
5031 * toplev.c (default_tree_printer): Make extern.
5032
5033 2009-09-03 Richard Guenther <rguenther@suse.de>
5034 Diego Novillo <dnovillo@google.com>
5035
5036 * cgraph.c (cgraph_add_new_function): Remove gimplification.
5037 * cgraphunit.c (cgraph_expand_function): Do not emit
5038 associated thunks from here.
5039 (cgraph_emit_thunks): New.
5040 (cgraph_optimize): Call it.
5041 Return if any IPA pass finds an error.
5042 * varasm.c (finish_aliases_1): Ignore errorneous aliases used
5043 by thunks.
5044
5045 2009-09-03 Simon Baldwin <simonb@google.com>
5046 Rafael Espindola <espindola@google.com>
5047 Richard Guenther <rguenther@suse.de>
5048 Doug Kwan <dougkwan@google.com>
5049 Diego Novillo <dnovillo@google.com>
5050
5051 * tree.c: Include tree-pass.h, langhooks-def.h,
5052 diagnostic.h, cgraph.h, timevar.h, except.h and debug.h.
5053 (free_lang_data_in_type): New.
5054 (need_assembler_name_p): New.
5055 (free_lang_data_in_block): New.
5056 (free_lang_data_in_decl): New.
5057 (struct free_lang_data_d): New.
5058 (add_tree_to_fld_list): New.
5059 (find_decls_types_r): New.
5060 (get_eh_types_for_runtime): New.
5061 (find_decls_types_in_eh_region): New.
5062 (find_decls_types_in_node): New.
5063 (find_decls_types_in_var): New.
5064 (free_lang_data_in_cgraph): New.
5065 (free_lang_data): New.
5066 (gate_free_lang_data): New.
5067 (pass_ipa_free_lang_data): New.
5068
5069 2009-09-03 Diego Novillo <dnovillo@google.com>
5070
5071 * timevar.def (TV_IPA_FREE_LANG_DATA): Define.
5072 * langhooks.h (struct lang_hooks): Add field free_lang_data.
5073 (lang_hooks): Remove const qualifier.
5074 * ipa.c (cgraph_remove_unreachable_nodes): Call
5075 remove_unreachable_alias_pairs.
5076 * except.c (add_type_for_runtime): Check if TYPE has
5077 already been converted.
5078 (lookup_type_for_runtime): Likewise.
5079 (check_handled): Handle converted types.
5080 * varasm.c (remove_unreachable_alias_pairs): New.
5081 * gimple.c: Include demangle.h.
5082 (gimple_decl_printable_name): New.
5083 (gimple_fold_obj_type_ref): New.
5084 * gimple.h (gimple_decl_printable_name): Declare.
5085 (gimple_fold_obj_type_ref): Declare.
5086 * passes.c (init_optimization_passes): Add pass
5087 pass_ipa_free_lang_data.
5088 * langhooks-def.h (LANG_HOOKS_FREE_LANG_DATA): Define.
5089 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_FREE_LANG_DATA.
5090
5091 2009-09-03 Diego Novillo <dnovillo@google.com>
5092
5093 * c-lang.c (lang_hooks): Remove const qualifier.
5094
5095 2009-09-02 Loren James Rittle <ljrittle@acm.org>
5096
5097 * doc/install.texi (*-*-freebsd*): Update target information.
5098
5099 2009-09-02 Anatoly Sokolov <aesok@post.ru>
5100
5101 * hard-reg-set.h (call_fixed_regs): Remove.
5102 * reginfo.c (call_fixed_regs): Remove.
5103 (init_reg_sets_1): Remove initialization of call_fixed_regs.
5104 (globalize_reg): Don't use call_fixed_regs.
5105 * caller-save.c (init_caller_save): Use call_fixed_reg_set instead of
5106 call_fixed_regs.
5107
5108 2009-09-01 Michael Matz <matz@suse.de>
5109
5110 * expr.h (emit_storent_insn, expand_expr_real_1,
5111 expand_expr_real_2): Declare.
5112 * expr.c (emit_storent_insn, expand_expr_real_1,
5113 expand_expr_real_2): Export.
5114 (store_expr): Setting and evaluating dont_return_target is useless.
5115 (expand_expr_real_1, <case GOTO_EXPR, RETURN_EXPR, SWITCH_EXPR,
5116 LABEL_EXPR and ASM_EXPR>): Move to gcc_unreachable.
5117 * except.c (expand_resx_expr): Rename to ...
5118 (expand_resx_stmt): ... this. Rewrite to take gimple statement.
5119 * except.h (expand_resx_stmt): Declare.
5120 * stmt.c: Add include gimple.h
5121 (expand_asm_expr): Rename to ...
5122 (expand_asm_stmt): ... this. Rewrite to take gimple statement.
5123 (expand_case): Rewrite to take gimple statement.
5124 * tree.h (expand_asm_stmt): Declare.
5125 (expand_case): Change prototype.
5126 * Makefile.in (stmt.o): Depend on gimple.h.
5127 * builtins.c (expand_builtin_synchronize): Build gimple asm
5128 statement, not an ASM_EXPR.
5129 * cfgexpand.c (gimple_cond_pred_to_tree, set_expr_location_r,
5130 gimple_to_tree, release_stmt_tree): Remove.
5131 (expand_gimple_cond): Don't call gimple_cond_pred_to_tree or
5132 ggc_free, but hold comparison code and operands separately.
5133 Call jumpif_1 and jumpifnot_1 instead of jumpif and jumpifnot.
5134 (expand_call_stmt, expand_gimple_stmt_1,
5135 expand_gimple_stmt): New helpers.
5136 (expand_gimple_tailcall): Don't call gimple_to_tree, expand_expr_stmt,
5137 release_stmt_tree. Call expand_gimple_stmt instead.
5138 (expand_gimple_basic_block): Ditto.
5139
5140 * calls.c (emit_call_1): Don't look at EH regions here, make
5141 fntree parameter useless.
5142 (expand_call): New local rettype for TREE_TYPE(exp), use it
5143 throughout. Remove local p, use addr instead.
5144 Don't look at EH regions here.
5145
5146 2009-09-02 Vladimir Makarov <vmakarov@redhat.com>
5147
5148 * doc/invoke.texi (-fsched-pressure): Document it.
5149 (-fsched-reg-pressure-heuristic): Remove it.
5150
5151 * reload.c (ira.h): Include.
5152 (find_reloads): Add choosing reload on number of small spilled
5153 classes.
5154
5155 * haifa-sched.c (ira.h): Include.
5156 (sched_pressure_p, sched_regno_cover_class, curr_reg_pressure,
5157 saved_reg_pressure, curr_reg_live, saved_reg_live,
5158 region_ref_regs): New variables.
5159 (sched_init_region_reg_pressure_info, mark_regno_birth_or_death,
5160 initiate_reg_pressure_info, setup_ref_regs,
5161 initiate_bb_reg_pressure_info, save_reg_pressure,
5162 restore_reg_pressure, dying_use_p, print_curr_reg_pressure): New
5163 functions.
5164 (setup_insn_reg_pressure_info): New function.
5165 (rank_for_schedule): Add pressure checking and insn issue time.
5166 Remove comparison of insn reg weights.
5167 (ready_sort): Set insn reg pressure info.
5168 (update_register_pressure, setup_insn_max_reg_pressure,
5169 update_reg_and_insn_max_reg_pressure,
5170 sched_setup_bb_reg_pressure_info): New functions.
5171 (schedule_insn): Add code for printing and updating reg pressure info.
5172 (find_set_reg_weight, find_insn_reg_weight): Remove.
5173 (ok_for_early_queue_removal): Do nothing if pressure_only_p.
5174 (debug_ready_list): Print reg pressure info.
5175 (schedule_block): Ditto. Check insn issue time.
5176 (sched_init): Set up sched_pressure_p. Allocate and set up some
5177 reg pressure related info.
5178 (sched_finish): Free some reg pressure related info.
5179 (fix_tick_ready): Make insn always ready if pressure_p.
5180 (init_h_i_d): Don't call find_insn_reg_weight.
5181 (haifa_finish_h_i_d): Free insn reg pressure info.
5182
5183 * ira-int.h (ira_hard_regno_cover_class, ira_reg_class_nregs,
5184 ira_memory_move_cost, ira_class_hard_regs,
5185 ira_class_hard_regs_num, ira_no_alloc_regs,
5186 ira_available_class_regs, ira_reg_class_cover_size,
5187 ira_reg_class_cover, ira_class_translate): Move to ira.h.
5188
5189 * ira-lives.c (single_reg_class): Check mode to find how many
5190 registers are necessary for operand.
5191 (ira_implicitly_set_insn_hard_regs): New.
5192
5193 * common.opt (fsched-pressure): New options.
5194 (fsched-reg-pressure-heuristic): Remove.
5195
5196 * ira.c (setup_eliminable_regset): Rename to
5197 ira_setup_eliminable_regset. Make it external.
5198 (expand_reg_info): Pass cover class to setup_reg_classes.
5199 (ira): Call resize_reg_info instead of allocate_reg_info.
5200
5201 * sched-deps.c: Include ira.h.
5202 (implicit_reg_pending_clobbers, implicit_reg_pending_uses): New.
5203 (create_insn_reg_use, create_insn_reg_set, setup_insn_reg_uses,
5204 reg_pressure_info, insn_use_p, mark_insn_pseudo_birth,
5205 mark_insn_hard_regno_birth, mark_insn_reg_birth,
5206 mark_pseudo_death, mark_hard_regno_death, mark_reg_death,
5207 mark_insn_reg_store, mark_insn_reg_clobber,
5208 setup_insn_reg_pressure_info): New.
5209 (sched_analyze_1): Update implicit_reg_pending_uses.
5210 (sched_analyze_insn): Find implicit sets, uses, clobbers of regs.
5211 Use them to create dependencies. Set insn reg uses and pressure
5212 info. Process reg_pending_uses in one place.
5213 (free_deps): Free implicit sets.
5214 (remove_from_deps): Remove implicit sets if necessary. Check
5215 implicit sets when clearing reg_last_in_use.
5216 (init_deps_global): Clear implicit_reg_pending_clobbers and
5217 implicit_reg_pending_uses.
5218
5219 * ira.h (ira_hard_regno_cover_class, ira_reg_class_nregs,
5220 ira_memory_move_cost, ira_class_hard_regs,
5221 ira_class_hard_regs_num, ira_no_alloc_regs,
5222 ira_available_class_regs, ira_reg_class_cover_size,
5223 ira_reg_class_cover, ira_class_translate): Move from ira-int.h.
5224 (ira_setup_eliminable_regset, ira_set_pseudo_classes,
5225 ira_implicitly_set_insn_hard_regs): New prototypes.
5226
5227 * ira-costs.c (pseudo_classes_defined_p, allocno_p,
5228 cost_elements_num): New variables.
5229 (allocno_costs, total_costs): Rename to costs and
5230 total_allocno_costs.
5231 (COSTS_OF_ALLOCNO): Rename to COSTS.
5232 (allocno_pref): Rename to pref.
5233 (allocno_pref_buffer): Rename to pref_buffer.
5234 (common_classes): Rename to regno_cover_class.
5235 (COST_INDEX): New.
5236 (record_reg_classes): Set allocno attributes only if allocno_p.
5237 (record_address_regs): Ditto. Use COST_INDEX instead of ALLOCNO_NUM.
5238 (scan_one_insn): Use COST_INDEX and COSTS instead of ALLOCNO_NUM
5239 and COSTS_OF_ALLOCNO.
5240 (print_costs): Rename to print_allocno_costs.
5241 (print_pseudo_costs): New.
5242 (process_bb_node_for_costs): Split into 2 functions with new
5243 function process_bb_for_costs. Pass BB to process_bb_for_costs.
5244 (find_allocno_class_costs): Rename to find_costs_and_classes. Add
5245 new parameter dump_file. Use cost_elements_num instead of
5246 ira_allocnos_num. Make one iteration if preferred classes were
5247 already calculated for scheduler. Make 2 versions of code
5248 depending on allocno_p.
5249 (setup_allocno_cover_class_and_costs): Check allocno_p. Use
5250 regno_cover_class and COSTS instead of common_classes and
5251 COSTS_OF_ALLOCNO.
5252 (init_costs, finish_costs): New.
5253 (ira_costs): Set up allocno_p and cost_elements_num. Call
5254 init_costs and finish_costs.
5255 (ira_set_pseudo_classes): New.
5256
5257 * rtl.h (allocate_reg_info): Remove.
5258 (resize_reg_info): Change return type.
5259 (reg_cover_class): New.
5260 (setup_reg_classes): Add new parameter.
5261
5262 * sched-int.h (struct deps_reg): New member implicit_sets.
5263 (sched_pressure_p, sched_regno_cover_class): New external definitions.
5264 (INCREASE_BITS): New macro.
5265 (struct reg_pressure_data, struct reg_use_data): New.
5266 (struct _haifa_insn_data): Remove reg_weight. Add members
5267 reg_pressure, reg_use_list, reg_set_list, and
5268 reg_pressure_excess_cost_change.
5269 (struct deps): New member implicit_sets.
5270 (pressure_p): New variable.
5271 (COVER_CLASS_BITS, INCREASE_BITS): New macros.
5272 (struct reg_pressure_data, struct reg_use_data): New.
5273 (INSN_REG_WEIGHT): Remove.
5274 (INSN_REG_PRESSURE, INSN_MAX_REG_PRESSURE, INSN_REG_USE_LIST,
5275 INSN_REG_SET_LIST, INSN_REG_PRESSURE_EXCESS_COST_CHANGE): New macros.
5276 (sched_init_region_reg_pressure_info,
5277 sched_setup_bb_reg_pressure_info): New prototypes.
5278
5279 * reginfo.c (struct reg_pref): New member coverclass.
5280 (reg_cover_class): New function.
5281 (reginfo_init, pass_reginfo_init): Move after free_reg_info.
5282 (reg_info_size): New variable.
5283 (allocate_reg_info): Make static. Setup reg_info_size.
5284 (resize_reg_info): Use reg_info_size. Return flag of resizing.
5285 (setup_reg_classes): Add a new parameter. Setup cover class too.
5286
5287 * Makefile.in (reload.o, haifa-sched.o, sched-deps.o): Add ira.h to
5288 the dependencies.
5289
5290 * sched-rgn.c (deps_join): Set up implicit_sets.
5291 (schedule_region): Set up region and basic blocks pressure
5292 relative info.
5293
5294 * passes.c (init_optimization_passes): Move
5295 pass_subregs_of_mode_init before pass_sched.
5296
5297 2009-09-02 Martin Jambor <mjambor@suse.cz>
5298
5299 * tree-sra.c (struct access): New field grp_hint.
5300 (dump_access): Dump grp_hint.
5301 (sort_and_splice_var_accesses): Set grp_hint if a group is read
5302 multiple times.
5303 (analyze_access_subtree): Only scalarize accesses with grp_hint set or
5304 those which have been specifically read and somehow written to.
5305 (propagate_subacesses_accross_link): Set grp_hint of right child and
5306 also possibly of the left child.
5307
5308 2009-09-02 Jakub Jelinek <jakub@redhat.com>
5309
5310 * tree-object-size.c (addr_object_size): Always use object_size_type
5311 0 or 2 when determining the pointer pointed object size.
5312
5313 2009-09-02 Richard Guenther <rguenther@suse.de>
5314
5315 Revert
5316 2009-08-31 Richard Guenther <rguenther@suse.de>
5317
5318 * builtins.c (fold_builtin_memory_op): Use the alias oracle
5319 to query if the memory regions for memmove overlap.
5320 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Relax the
5321 asserts on pointers, instead deal with odd trees.
5322 (ptr_derefs_may_alias_p): Likewise.
5323 (refs_may_alias_p_1): Constructor bases also never alias.
5324
5325 2009-08-01 Christian Bruel <christian.bruel@st.com>
5326
5327 Revert:
5328 2009-07-31 Christian Bruel <christian.bruel@st.com>
5329 * gcc/config.gcc (sh*-*-elf): test with_libgloss.
5330
5331 2009-09-01 Alexandre Oliva <aoliva@redhat.com>
5332
5333 * doc/invoke.texi (-fvar-tracking-assignments): New.
5334 (-fvar-tracking-assignments-toggle): New.
5335 (-fdump-final-insns=file): Mark filename as optional.
5336 (--param min-nondebug-insn-uid): New.
5337 (-gdwarf-@{version}): Mention version 4.
5338 * opts.c (common_handle_option): Accept it.
5339 * tree-vrp.c (find_assert_locations_1): Skip debug stmts.
5340 * regrename.c (regrename_optimize): Drop last. Don't count debug
5341 insns as uses. Don't reject change because of debug insn.
5342 (do_replace): Reject DEBUG_INSN as chain starter. Take base_regno
5343 from the chain starter, and check for inexact matches in DEBUG_INSNS.
5344 (scan_rtx_reg): Accept inexact matches in DEBUG_INSNs.
5345 (build_def_use): Simplify and fix the marking of DEBUG_INSNs.
5346 * sched-ebb.c (schedule_ebbs): Skip boundary debug insns.
5347 * fwprop.c (forward_propagate_and_simplify): ...into debug insns.
5348 * doc/gimple.texi (is_gimple_debug): New.
5349 (gimple_debug_bind_p): New.
5350 (is_gimple_call, gimple_assign_cast_p): End sentence with period.
5351 * doc/install.texi (bootstrap-debug): More details.
5352 (bootstrap-debug-big, bootstrap-debug-lean): Document.
5353 (bootstrap-debug-lib): More details.
5354 (bootstrap-debug-ckovw): Update.
5355 (bootstrap-time): New.
5356 * tree-into-ssa.c (mark_def_sites): Skip debug stmts.
5357 (insert_phi_nodes_for): Insert debug stmts.
5358 (rewrite_stmt): Take iterator. Insert debug stmts.
5359 (rewrite_enter_block): Adjust.
5360 (maybe_replace_use_in_debug_stmt): New.
5361 (rewrite_update_stmt): Use it.
5362 (mark_use_interesting): Return early for debug stmts.
5363 * tree-ssa-loop-im.c (rewrite_bittest): Propagate DEFs into debug
5364 stmts before replacing stmt.
5365 (move_computations_stmt): Likewise.
5366 * ira-conflicts.c (add_copies): Skip debug insns.
5367 * regstat.c (regstat_init_n_sets_and_refs): Discount debug insns.
5368 (regstat_bb_compute_ri): Skip debug insns.
5369 * tree-ssa-threadupdate.c (redirection_block_p): Skip debug stmts.
5370 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt,
5371 check_loop_closed_ssa_stmt): Skip debug stmts.
5372 * tree-tailcall.c (find_tail_calls): Likewise.
5373 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
5374 * tree.h (MAY_HAVE_DEBUG_STMTS): New.
5375 (build_var_debug_value_stat): Declare.
5376 (build_var_debug_value): Define.
5377 (target_for_debug_bind): Declare.
5378 * reload.c (find_equiv_reg): Skip debug insns.
5379 * rtlanal.c (reg_used_between_p): Skip debug insns.
5380 (side_effects_p): Likewise.
5381 (canonicalize_condition): Likewise.
5382 * ddg.c (create_ddg_dep_from_intra_loop_link): Check that non-debug
5383 insns never depend on debug insns.
5384 (create_ddg_dep_no_link): Likewise.
5385 (add_cross_iteration_register_deps): Use ANTI_DEP for debug insns.
5386 Don't add inter-loop dependencies for debug insns.
5387 (build_intra_loop_deps): Likewise.
5388 (create_ddg): Count debug insns.
5389 * ddg.h (struct ddg::num_debug): New.
5390 (num_backargs): Pair up with previous int field.
5391 * diagnostic.c (diagnostic_report_diagnostic): Skip notes on
5392 -fcompare-debug-second.
5393 * final.c (get_attr_length_1): Skip debug insns.
5394 (rest_of_clean-state): Don't dump CFA_RESTORE_STATE.
5395 * gcc.c (invoke_as): Call compare-debug-dump-opt.
5396 (driver_self_specs): Map -fdump-final-insns to
5397 -fdump-final-insns=..
5398 (get_local_tick): New.
5399 (compare_debug_dump_opt_spec_function): Test for . argument and
5400 compute output name. Compute temp output spec without flag name.
5401 Compute -frandom-seed.
5402 (OPT): Undef after use.
5403 * cfgloopanal.c (num_loop_insns): Skip debug insns.
5404 (average_num_loop_insns): Likewise.
5405 * params.h (MIN_NONDEBUG_INSN_UID): New.
5406 * gimple.def (GIMPLE_DEBUG): New.
5407 * ipa-reference.c (scan_stmt_for_static_refs): Skip debug stmts.
5408 * auto-inc-dec.c (merge_in_block): Skip debug insns.
5409 (merge_in_block): Fix whitespace.
5410 * toplev.c (flag_var_tracking): Update comment.
5411 (flag_var_tracking_assignments): New.
5412 (flag_var_tracking_assignments_toggle): New.
5413 (process_options): Don't open final insns dump file if we're not
5414 going to write to it. Compute defaults for var_tracking.
5415 * df-scan.c (df_insn_rescan_debug_internal): New.
5416 (df_uses_record): Handle debug insns.
5417 * haifa-sched.c (ready): Initialize n_debug.
5418 (contributes_to_priority): Skip debug insns.
5419 (dep_list_size): New.
5420 (priority): Use it.
5421 (rank_for_schedule): Likewise. Schedule debug insns as soon as
5422 they're ready. Disregard previous debug insns to make decisions.
5423 (queue_insn): Never queue debug insns.
5424 (ready_add, ready_remove_first, ready_remove): Count debug insns.
5425 (schedule_insn): Don't reject debug insns because of issue rate.
5426 (get_ebb_head_tail, no_real_insns_p): Skip boundary debug insns.
5427 (queue_to_ready): Skip and discount debug insns.
5428 (choose_ready): Let debug insns through.
5429 (schedule_block): Check boundary debug insns. Discount debug
5430 insns, schedule them early. Adjust whitespace.
5431 (set_priorities): Check for boundary debug insns.
5432 (add_jump_dependencies): Use dep_list_size.
5433 (prev_non_location_insn): New.
5434 (check_cfg): Use it.
5435 * tree-ssa-loop-ivopts.c (find-interesting_users): Skip debug
5436 stmts.
5437 (remove_unused_ivs): Reset debug stmts.
5438 * modulo-sched.c (const_iteration_count): Skip debug insns.
5439 (res_MII): Discount debug insns.
5440 (loop_single_full_bb_p): Skip debug insns.
5441 (sms_schedule): Likewise.
5442 (sms_schedule_by_order): Likewise.
5443 (ps_has_conflicts): Likewise.
5444 * caller-save.c (refmarker_fn): New.
5445 (save_call_clobbered_regs): Replace regs with saved mem in
5446 debug insns.
5447 (mark_referenced_regs): Take pointer, mark and arg. Adjust.
5448 Call refmarker_fn mark for hardregnos.
5449 (mark_reg_as_referenced): New.
5450 (replace_reg_with_saved_mem): New.
5451 * ipa-pure-const.c (check_stmt): Skip debug stmts.
5452 * cse.c (cse_insn): Canonicalize debug insns. Skip them when
5453 searching back.
5454 (cse_extended_basic_block): Skip debug insns.
5455 (count_reg_usage): Likewise.
5456 (is_dead_reg): New, split out of...
5457 (set_live_p): ... here.
5458 (insn_live_p): Use it for debug insns.
5459 * tree-stdarg.c (check_all_va_list_escapes): Skip debug stmts.
5460 (execute_optimize_stdarg): Likewise.
5461 * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
5462 * tree-ssa-propagate.c (substitute_and_fold): Don't regard
5463 changes in debug stmts as changes.
5464 * sel-sched.c (moving_insn_creates_bookkeeping_block_p): New.
5465 (moveup_expr): Don't move across debug insns. Don't move
5466 debug insn if it would create a bookkeeping block.
5467 (moveup_expr_cached): Don't use cache for debug insns that
5468 are heads of blocks.
5469 (compute_av_set_inside_bb): Skip debug insns.
5470 (sel_rank_for_schedule): Schedule debug insns first. Remove
5471 dead code.
5472 (block_valid_for_bookkeeping_p); Support lax searches.
5473 (create_block_for_bookkeeping): Adjust block numbers when
5474 encountering debug-only blocks.
5475 (find_place_for_bookkeeping): Deal with debug-only blocks.
5476 (generate_bookkeeping_insn): Accept no place to insert.
5477 (remove_temp_moveop_nops): New argument full_tidying.
5478 (prepare_place_to_insert): Deal with debug insns.
5479 (advance_state_on_fence): Debug insns don't start cycles.
5480 (update_boundaries): Take fence as argument. Deal with
5481 debug insns.
5482 (schedule_expr_on_boundary): No full_tidying on debug insns.
5483 (fill_insns): Deal with debug insns.
5484 (track_scheduled_insns_and_blocks): Don't count debug insns.
5485 (need_nop_to_preserve_insn_bb): New, split out of...
5486 (remove_insn_from_stream): ... this.
5487 (fur_orig_expr_not_found): Skip debug insns.
5488 * rtl.def (VALUE): Move up.
5489 (DEBUG_INSN): New.
5490 * tree-ssa-sink.c (all_immediate_uses_same_place): Skip debug stmts.
5491 (nearest_common_dominator_of_uses): Take debug_stmts argument.
5492 Set it if debug stmts are found.
5493 (statement_sink_location): Skip debug stmts. Propagate
5494 moving defs into debug stmts.
5495 * ifcvt.c (first_active_insn): Skip debug insns.
5496 (last_active_insns): Likewise.
5497 (cond_exec_process_insns): Likewise.
5498 (noce_process_if_block): Likewise.
5499 (check_cond_move_block): Likewise.
5500 (cond_move_convert_if_block): Likewise.
5501 (block_jumps_and_fallthru_p): Likewise.
5502 (dead_or_predicable): Likewise.
5503 * dwarf2out.c (debug_str_hash_forced): New.
5504 (find_AT_string): Add comment.
5505 (gen_label_for_indirect_string): New.
5506 (get_debug_string_label): New.
5507 (AT_string_form): Use it.
5508 (mem_loc_descriptor): Handle non-TLS symbols. Handle MINUS , DIV,
5509 MOD, AND, IOR, XOR, NOT, ABS, NEG, and CONST_STRING. Accept but
5510 discard COMPARE, IF_THEN_ELSE, ROTATE, ROTATERT, TRUNCATE and
5511 several operations that cannot be represented with DWARF opcodes.
5512 (loc_descriptor): Ignore SIGN_EXTEND and ZERO_EXTEND. Require
5513 dwarf_version 4 for DW_OP_implicit_value and DW_OP_stack_value.
5514 (dwarf2out_var_location): Take during-call mark into account.
5515 (output_indirect_string): Update comment. Output if there are
5516 label and references.
5517 (prune_indirect_string): New.
5518 (prune_unused_types): Call it if debug_str_hash_forced.
5519 More in dwarf2out.c, from Jakub Jelinek <jakub@redhat.com>:
5520 (dw_long_long_const): Remove.
5521 (struct dw_val_struct): Change val_long_long type to rtx.
5522 (print_die, attr_checksum, same_dw_val_p, loc_descriptor): Adjust for
5523 val_long_long change to CONST_DOUBLE rtx from a long hi/lo pair.
5524 (output_die): Likewise. Use HOST_BITS_PER_WIDE_INT size of each
5525 component instead of HOST_BITS_PER_LONG.
5526 (output_loc_operands): Likewise. For const8* assert
5527 HOST_BITS_PER_WIDE_INT rather than HOST_BITS_PER_LONG is >= 64.
5528 (output_loc_operands_raw): For const8* assert HOST_BITS_PER_WIDE_INT
5529 rather than HOST_BITS_PER_LONG is >= 64.
5530 (add_AT_long_long): Remove val_hi and val_lo arguments, add
5531 val_const_double.
5532 (size_of_die): Use HOST_BITS_PER_WIDE_INT size multiplier instead of
5533 HOST_BITS_PER_LONG for dw_val_class_long_long.
5534 (add_const_value_attribute): Adjust add_AT_long_long caller. Don't
5535 handle TLS SYMBOL_REFs. If CONST wraps a constant, tail recurse.
5536 (dwarf_stack_op_name): Handle DW_OP_implicit_value and
5537 DW_OP_stack_value.
5538 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
5539 Handle DW_OP_implicit_value.
5540 (extract_int): Move prototype earlier.
5541 (mem_loc_descriptor): For SUBREG punt if inner
5542 mode size is wider than DWARF2_ADDR_SIZE. Handle SIGN_EXTEND
5543 and ZERO_EXTEND by DW_OP_shl and DW_OP_shr{a,}. Handle
5544 EQ, NE, GT, GE, LT, LE, GTU, GEU, LTU, LEU, SMIN, SMAX, UMIN,
5545 UMAX, SIGN_EXTRACT, ZERO_EXTRACT.
5546 (loc_descriptor): Compare mode size with DWARF2_ADDR_SIZE
5547 instead of Pmode size.
5548 (loc_descriptor): Add MODE argument. Handle CONST_INT, CONST_DOUBLE,
5549 CONST_VECTOR, CONST, LABEL_REF and SYMBOL_REF if mode != VOIDmode,
5550 attempt to handle other expressions. Don't handle TLS SYMBOL_REFs.
5551 (concat_loc_descriptor, concatn_loc_descriptor,
5552 loc_descriptor_from_tree_1): Adjust loc_descriptor callers.
5553 (add_location_or_const_value_attribute): Likewise. For single
5554 location loc_lists attempt to use add_const_value_attribute
5555 for constant decls. Add DW_AT_const_value even if
5556 NOTE_VAR_LOCATION is VAR_LOCATION with CONSTANT_P or CONST_STRING
5557 in its expression.
5558 * cfgbuild.c (inside_basic_block_p): Handle debug insns.
5559 (control_flow_insn_p): Likewise.
5560 * tree-parloops.c (eliminate_local_variables_stmt): Handle debug stmt.
5561 (separate_decls_in_region_debug_bind): New.
5562 (separate_decls_in_region): Process debug bind stmts afterwards.
5563 * recog.c (verify_changes): Handle debug insns.
5564 (extract_insn): Likewise.
5565 (peephole2_optimize): Skip debug insns.
5566 * dse.c (scan_insn): Skip debug insns.
5567 * sel-sched-ir.c (return_nop_to_pool): Take full_tidying argument.
5568 Pass it on.
5569 (setup_id_for_insn): Handle debug insns.
5570 (maybe_tidy_empty_bb): Adjust whitespace.
5571 (tidy_control_flow): Skip debug insns.
5572 (sel_remove_insn): Adjust for debug insns.
5573 (sel_estimate_number_of_insns): Skip debug insns.
5574 (create_insn_rtx_from_pattern): Handle debug insns.
5575 (create_copy_of_insn_rtx): Likewise.
5576 * sel-sched-.h (sel_bb_end): Declare.
5577 (sel_bb_empty_or_nop_p): New.
5578 (get_all_loop_exits): Use it.
5579 (_eligible_successor_edge_p): Likewise.
5580 (return_nop_to_pool): Adjust.
5581 * tree-eh.c (tre_empty_eh_handler_p): Skip debug stmts.
5582 * ira-lives.c (process_bb_node_lives): Skip debug insns.
5583 * gimple-pretty-print.c (dump_gimple_debug): New.
5584 (dump_gimple_stmt): Use it.
5585 (dump_bb_header): Skip gimple debug stmts.
5586 * regmove.c (optimize_reg_copy_1): Discount debug insns.
5587 (fixup_match_2): Likewise.
5588 (regmove_backward_pass): Likewise. Simplify combined
5589 replacement. Handle debug insns.
5590 * function.c (instantiate_virtual_regs): Handle debug insns.
5591 * function.h (struct emit_status): Add x_cur_debug_insn_uid.
5592 * print-rtl.h: Include cselib.h.
5593 (print_rtx): Print VALUEs. Split out and recurse for VAR_LOCATIONs.
5594 * df.h (df_inns_rescan_debug_internal): Declare.
5595 * gcse.c (alloc_hash_table): Estimate n_insns.
5596 (cprop_insn): Don't regard debug insns as changes.
5597 (bypass_conditional_jumps): Skip debug insns.
5598 (one_pre_gcse_pass): Adjust.
5599 (one_code_hoisting_pass): Likewise.
5600 (compute_ld_motion_mems): Skip debug insns.
5601 (one_cprop_pass): Adjust.
5602 * tree-if-conv.c (tree_if_convert_stmt): Reset debug stmts.
5603 (if_convertible_stmt_p): Handle debug stmts.
5604 * init-regs.c (initialize_uninitialized_regs): Skip debug insns.
5605 * tree-vect-loop.c (vect_is_simple_reduction): Skip debug stmts.
5606 * ira-build.c (create_bb_allocnos): Skip debug insns.
5607 * tree-flow-inline.h (has_zero_uses): Discount debug stmts.
5608 (has_single_use): Likewise.
5609 (single_imm_use): Likewise.
5610 (num_imm_uses): Likewise.
5611 * tree-ssa-phiopt.c (empty_block_p): Skip debug stmts.
5612 * tree-ssa-coalesce.c (build_ssa_conflict_graph): Skip debug stmts.
5613 (create_outofssa_var_map): Likewise.
5614 * lower-subreg.c (adjust_decomposed_uses): New.
5615 (resolve_debug): New.
5616 (decompose_multiword_subregs): Use it.
5617 * tree-dfa.c (find_referenced_vars): Skip debug stmts.
5618 * emit-rtl.c: Include params.h.
5619 (cur_debug_insn_uid): Define.
5620 (set_new_first_and_last_insn): Set cur_debug_insn_uid too.
5621 (copy_rtx_if_shared_1): Handle debug insns.
5622 (reset_used_flags): Likewise.
5623 (set_used_flags): LIkewise.
5624 (get_max_insn_count): New.
5625 (next_nondebug_insn): New.
5626 (prev_nondebug_insn): New.
5627 (make_debug_insn_raw): New.
5628 (emit_insn_before_noloc): Handle debug insns.
5629 (emit_jump_insn_before_noloc): Likewise.
5630 (emit_call_insn_before_noloc): Likewise.
5631 (emit_debug_insn_before_noloc): New.
5632 (emit_insn_after_noloc): Handle debug insns.
5633 (emit_jump_insn_after_noloc): Likewise.
5634 (emit_call_insn_after_noloc): Likewise.
5635 (emit_debug_insn_after_noloc): Likewise.
5636 (emit_insn_after): Take loc from earlier non-debug insn.
5637 (emit_jump_insn_after): Likewise.
5638 (emit_call_insn_after): Likewise.
5639 (emit_debug_insn_after_setloc): New.
5640 (emit_debug_insn_after): New.
5641 (emit_insn_before): Take loc from later non-debug insn.
5642 (emit_jump_insn_before): Likewise.
5643 (emit_call_insn_before): Likewise.
5644 (emit_debug_insn_before_setloc): New.
5645 (emit_debug_insn_before): New.
5646 (emit_insn): Handle debug insns.
5647 (emit_debug_insn): New.
5648 (emit_jump_insn): Handle debug insns.
5649 (emit_call_insn): Likewise.
5650 (emit): Likewise.
5651 (init_emit): Take min-nondebug-insn-uid into account.
5652 Initialize cur_debug_insn_uid.
5653 (emit_copy_of_insn_after): Handle debug insns.
5654 * cfgexpand.c (gimple_assign_rhs_to_tree): Do not overwrite
5655 location of single rhs in place.
5656 (maybe_dump_rtl_for_gimple_stmt): Dump lineno.
5657 (floor_sdiv_adjust): New.
5658 (cell_sdiv_adjust): New.
5659 (cell_udiv_adjust): New.
5660 (round_sdiv_adjust): New.
5661 (round_udiv_adjust): New.
5662 (wrap_constant): Moved from cselib.
5663 (unwrap_constant): New.
5664 (expand_debug_expr): New.
5665 (expand_debug_locations): New.
5666 (expand_gimple_basic_block): Drop hiding redeclaration. Expand
5667 debug bind stmts.
5668 (gimple_expand_cfg): Expand debug locations.
5669 * cselib.c: Include tree-pass.h.
5670 (struct expand_value_data): New.
5671 (cselib_record_sets_hook): New.
5672 (PRESERVED_VALUE_P, LONG_TERM_PRESERVED_VALUE_P): New.
5673 (cselib_clear_table): Move, and implemnet in terms of...
5674 (cselib_reset_table_with_next_value): ... this.
5675 (cselib_get_next_unknown_value): New.
5676 (discard_useless_locs): Don't discard preserved values.
5677 (cselib_preserve_value): New.
5678 (cselib_preserved_value_p): New.
5679 (cselib_preserve_definitely): New.
5680 (cselib_clear_preserve): New.
5681 (cselib_preserve_only_values): New.
5682 (new_cselib_val): Take rtx argument. Dump it in details.
5683 (cselib_lookup_mem): Adjust.
5684 (expand_loc): Take regs_active in struct. Adjust. Silence
5685 dumps unless details are requested.
5686 (cselib_expand_value_rtx_cb): New.
5687 (cselib_expand_value_rtx): Rename and reimplment in terms of...
5688 (cselib_expand_value_rtx_1): ... this. Adjust. Silence dumps
5689 without details. Copy more subregs. Try to resolve values
5690 using a callback. Wrap constants.
5691 (cselib_subst_to_values): Adjust.
5692 (cselib_log_lookup): New.
5693 (cselib_lookup): Call it.
5694 (cselib_invalidate_regno): Don't count preserved values as useless.
5695 (cselib_invalidate_mem): Likewise.
5696 (cselib_record_set): Likewise.
5697 (struct set): Renamed to cselib_set, moved to cselib.h.
5698 (cselib_record_sets): Adjust. Call hook.
5699 (cselib_process_insn): Reset table when it would be cleared.
5700 (dump_cselib_val): New.
5701 (dump_cselib_table): New.
5702 * tree-cfgcleanup.c (tree_forwarded_block_p): Skip debug stmts.
5703 (remove_forwarder_block): Support moving debug stmts.
5704 * cselib.h (cselib_record_sets_hook): Declare.
5705 (cselib_expand_callback): New type.
5706 (cselib_expand_value_rtx_cb): Declare.
5707 (cselib_reset_table_with_next_value): Declare.
5708 (cselib_get_next_unknown_value): Declare.
5709 (cselib_preserve_value): Declare.
5710 (cselib_preserved_value_p): Declare.
5711 (cselib_preserve_only_values): Declare.
5712 (dump_cselib_table): Declare.
5713 * cfgcleanup.c (flow_find_cross_jump): Skip debug insns.
5714 (try_crossjump_to_edge): Likewise.
5715 (delete_unreachable_blocks): Remove dominant GIMPLE blocks after
5716 dominated blocks when debug stmts are present.
5717 * simplify-rtx.c (delegitimize_mem_from_attrs): New.
5718 * tree-ssa-live.c (remove_unused_locals): Skip debug stmts.
5719 (set_var_live_on_entry): Likewise.
5720 * loop-invariant.c (find_invariants_bb): Skip debug insns.
5721 * cfglayout.c (curr_location, last_location): Make static.
5722 (set_curr_insn_source_location): Don't avoid bouncing.
5723 (get_curr_insn_source_location): New.
5724 (get_curr_insn_block): New.
5725 (duplicate_insn_chain): Handle debug insns.
5726 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Propagate
5727 into debug stmts.
5728 * common.opt (fcompare-debug): Move to sort order.
5729 (fdump-unnumbered-links): Likewise.
5730 (fvar-tracking-assignments): New.
5731 (fvar-tracking-assignments-toggle): New.
5732 * tree-ssa-dce.c (mark_stmt_necessary): Don't mark blocks
5733 because of debug stmts.
5734 (mark_stmt_if_obviously_necessary): Mark debug stmts.
5735 (eliminate_unnecessary_stmts): Walk dominated blocks before
5736 dominators.
5737 * tree-ssa-ter.c (find_replaceable_in_bb): Skip debug stmts.
5738 * ira.c (memref_used_between_p): Skip debug insns.
5739 (update_equiv_regs): Likewise.
5740 * sched-deps.c (sd_lists_size): Accept empty list.
5741 (sd_init_insn): Mark debug insns.
5742 (sd_finish_insn): Unmark them.
5743 (sd_add_dep): Reject non-debug deps on debug insns.
5744 (fixup_sched_groups): Give debug insns group treatment.
5745 Skip debug insns.
5746 (sched_analyze_reg): Don't mark debug insns for sched before call.
5747 (sched_analyze_2): Handle debug insns.
5748 (sched_analyze_insn): Compute next non-debug insn. Handle debug
5749 insns.
5750 (deps_analyze_insn): Handle debug insns.
5751 (deps_start_bb): Skip debug insns.
5752 (init_deps): Initialize last_debug_insn.
5753 * tree-ssa.c (target_for_debug_bind): New.
5754 (find_released_ssa_name): New.
5755 (propagate_var_def_into_debug_stmts): New.
5756 (propagate_defs_into_debug_stmts): New.
5757 (verify_ssa): Skip debug bind stmts without values.
5758 (warn_uninialized_vars): Skip debug stmts.
5759 * target-def.h (TARGET_DELEGITIMIZE_ADDRESS): Set default.
5760 * rtl.c (rtx_equal_p_cb): Handle VALUEs.
5761 (rtx_equal_p): Likewise.
5762 * ira-costs.c (scan_one_insn): Skip debug insns.
5763 (process_bb_node_for_hard_reg_moves): Likewise.
5764 * rtl.h (DEBUG_INSN_P): New.
5765 (NONDEBUG_INSN_P): New.
5766 (MAY_HAVE_DEBUG_INSNS): New.
5767 (INSN_P): Accept debug insns.
5768 (RTX_FRAME_RELATED_P): Likewise.
5769 (INSN_DELETED_P): Likewise
5770 (PAT_VAR_LOCATION_DECL): New.
5771 (PAT_VAR_LOCATION_LOC): New.
5772 (PAT_VAR_OCATION_STATUS): New.
5773 (NOTE_VAR_LOCATION_DECL): Reimplement.
5774 (NOTE_VAR_LOCATION_LOC): Likewise.
5775 (NOTE_VAR_LOCATION_STATUS): Likewise.
5776 (INSN_VAR_LOCATION): New.
5777 (INSN_VAR_LOCATION_DECL): New.
5778 (INSN_VAR_LOCATION_LOC): New.
5779 (INSN_VAR_LOCATION_STATUS): New.
5780 (gen_rtx_UNKNOWN_VAR_LOC): New.
5781 (VAR_LOC_UNKNOWN_P): New.
5782 (NOTE_DURING_CALL_P): New.
5783 (SCHED_GROUP_P): Accept debug insns.
5784 (emit_debug_insn_before): Declare.
5785 (emit_debug_insn_before_noloc): Declare.
5786 (emit_debug_insn_beore_setloc): Declare.
5787 (emit_debug_insn_after): Declare.
5788 (emit_debug_insn_after_noloc): Declare.
5789 (emit_debug_insn_after_setloc): Declare.
5790 (emit_debug_insn): Declare.
5791 (make_debug_insn_raw): Declare.
5792 (prev_nondebug_insn): Declare.
5793 (next_nondebug_insn): Declare.
5794 (delegitimize_mem_from_attrs): Declare.
5795 (get_max_insn_count): Declare.
5796 (wrap_constant): Declare.
5797 (unwrap_constant): Declare.
5798 (get_curr_insn_source_location): Declare.
5799 (get_curr_insn_block): Declare.
5800 * tree-inline.c (insert_debug_decl_map): New.
5801 (processing_debug_stmt): New.
5802 (remap_decl): Don't create new mappings in debug stmts.
5803 (remap_gimple_op_r): Don't add references in debug stmts.
5804 (copy_tree_body_r): Likewise.
5805 (remap_gimple_stmt): Handle debug bind stmts.
5806 (copy_bb): Skip debug stmts.
5807 (copy_edges_for_bb): Likewise.
5808 (copy_debug_stmt): New.
5809 (copy_debug_stmts): New.
5810 (copy_body): Copy debug stmts at the end.
5811 (insert_init_debug_bind): New.
5812 (insert_init_stmt): Take id. Skip and emit debug stmts.
5813 (setup_one_parameter): Remap variable earlier, register debug mapping.
5814 (estimate_num_insns): Skip debug stmts.
5815 (expand_call_inline): Preserve debug_map.
5816 (optimize_inline_calls): Check for no debug_stmts left-overs.
5817 (unsave_expr_now): Preserve debug_map.
5818 (copy_gimple_seq_and_replace_locals): Likewise.
5819 (tree_function_versioning): Check for no debug_stmts left-overs.
5820 Init and destroy debug_map as needed. Split edges unconditionally.
5821 (build_duplicate_type): Init and destroy debug_map as needed.
5822 * tree-inline.h: Include gimple.h instead of pointer-set.h.
5823 (struct copy_body_data): Add debug_stmts and debug_map.
5824 * sched-int.h (struct ready_list): Add n_debug.
5825 (struct deps): Add last_debug_insn.
5826 (DEBUG_INSN_SCHED_P): New.
5827 (BOUNDARY_DEBUG_INSN_P): New.
5828 (SCHEDULE_DEBUG_INSN_P): New.
5829 (sd_iterator_cond): Accept empty list.
5830 * combine.c (create_log_links): Skip debug insns.
5831 (combine_instructions): Likewise.
5832 (cleanup_auto_inc_dec): New. From Jakub Jelinek: Make sure the
5833 return value is always unshared.
5834 (struct rtx_subst_pair): New.
5835 (auto_adjust_pair): New.
5836 (propagate_for_debug_subst): New.
5837 (propagate_for_debug): New.
5838 (try_combine): Skip debug insns. Propagate removed defs into
5839 debug insns.
5840 (next_nonnote_nondebug_insn): New.
5841 (distribute_notes): Use it. Skip debug insns.
5842 (distribute_links): Skip debug insns.
5843 * tree-outof-ssa.c (set_location_for_edge): Likewise.
5844 * resource.c (mark_target_live_regs): Likewise.
5845 * var-tracking.c: Include cselib.h and target.h.
5846 (enum micro_operation_type): Add MO_VAL_USE, MO_VAL_LOC, and
5847 MO_VAL_SET.
5848 (micro_operation_type_name): New.
5849 (enum emit_note_where): Add EMIT_NOTE_AFTER_CALL_INSN.
5850 (struct micro_operation_def): Update comments.
5851 (decl_or_value): New type. Use instead of decls.
5852 (struct emit_note_data_def): Add vars.
5853 (struct attrs_def): Use decl_or_value.
5854 (struct variable_tracking_info_def): Add permp, flooded.
5855 (struct location_chain_def): Update comment.
5856 (struct variable_part_def): Use decl_or_value.
5857 (struct variable_def): Make var_part a variable length array.
5858 (valvar_pool): New.
5859 (scratch_regs): New.
5860 (cselib_hook_called): New.
5861 (dv_is_decl_p): New.
5862 (dv_is_value_p): New.
5863 (dv_as_decl): New.
5864 (dv_as_value): New.
5865 (dv_as_opaque): New.
5866 (dv_onepart_p): New.
5867 (dv_pool): New.
5868 (IS_DECL_CODE): New.
5869 (check_value_is_not_decl): New.
5870 (dv_from_decl): New.
5871 (dv_from_value): New.
5872 (dv_htab_hash): New.
5873 (variable_htab_hash): Use it.
5874 (variable_htab_eq): Support values.
5875 (variable_htab_free): Free from the right pool.
5876 (attrs_list_member, attrs_list_insert): Use decl_or_value.
5877 (attrs_list_union): Adjust.
5878 (attrs_list_mpdv_union): New.
5879 (tie_break_pointers): New.
5880 (canon_value_cmp): New.
5881 (unshare_variable): Return possibly-modified slot.
5882 (vars_copy_1): Adjust.
5883 (var_reg_decl_set): Adjust. Split out of...
5884 (var_reg_set): ... this.
5885 (get_init_value): Adjust.
5886 (var_reg_delete_and_set): Adjust.
5887 (var_reg_delete): Adjust.
5888 (var_regno_delete): Adjust.
5889 (var_mem_decl_set): Split out of...
5890 (var_mem_set): ... this.
5891 (var_mem_delete_and_set): Adjust.
5892 (var_mem_delete): Adjust.
5893 (val_store): New.
5894 (val_reset): New.
5895 (val_resolve): New.
5896 (variable_union): Adjust. Speed up merge of 1-part vars.
5897 (variable_canonicalize): Use unshared slot.
5898 (VALUED_RECURSED_INTO): New.
5899 (find_loc_in_1pdv): New.
5900 (struct dfset_merge): New.
5901 (insert_into_intersection): New.
5902 (intersect_loc_chains): New.
5903 (loc_cmp): New.
5904 (canonicalize_loc_order_check): New.
5905 (canonicalize_values_mark): New.
5906 (canonicalize_values_star): New.
5907 (variable_merge_over_cur): New.
5908 (variable_merge_over_src): New.
5909 (dataflow_set_merge): New.
5910 (dataflow_set_equiv_regs): New.
5911 (remove_duplicate_values): New.
5912 (struct dfset_post_merge): New.
5913 (variable_post_merge_new_vals): New.
5914 (variable_post_merge_perm_vals): New.
5915 (dataflow_post_merge_adjust): New.
5916 (find_mem_expr_in_1pdv): New.
5917 (dataflow_set_preserve_mem_locs): New.
5918 (dataflow_set_remove_mem_locs): New.
5919 (dataflow_set_clear_at_call): New.
5920 (onepart_variable_different_p): New.
5921 (variable_different_p): Use it.
5922 (dataflow_set_different_1): Adjust. Make detailed dump more verbose.
5923 (track_expr_p): Add need_rtl parameter. Don't generate rtl
5924 if not needed.
5925 (track_loc_p): Pass it true.
5926 (struct count_use_info): New.
5927 (find_use_val): New.
5928 (replace_expr_with_values): New.
5929 (log_op_type): New.
5930 (use_type): New, partially split out of...
5931 (count_uses): ... this. Count new micro-ops.
5932 (count_uses_1): Adjust.
5933 (count_stores): Adjust.
5934 (count_with_sets): New.
5935 (VAL_NEEDS_RESOLUTION): New.
5936 (VAL_HOLDS_TRACK_EXPR): New.
5937 (VAL_EXPR_IS_COPIED): New.
5938 (VAL_EXPR_IS_CLOBBERED): New.
5939 (add_uses): Adjust. Generate new micro-ops.
5940 (add_uses_1): Adjust.
5941 (add_stores): Generate new micro-ops.
5942 (add_with_sets): New.
5943 (find_src_status): Adjust.
5944 (find_src_set_src): Adjust.
5945 (compute_bb_dataflow): Use dataflow_set_clear_at_call.
5946 Handle new micro-ops. Canonicalize value equivalances.
5947 (vt_find_locations): Compute total size of hash tables for
5948 dumping. Perform merge for var-tracking-assignments. Don't
5949 disregard single-block loops.
5950 (dump_attrs_list): Handle decl_or_value.
5951 (dump_variable): Take variable. Deal with decl_or_value.
5952 (dump_variable_slot): New.
5953 (dump_vars): Use it.
5954 (dump_dataflow_sets): Adjust.
5955 (set_slot_part): New, extended to support one-part variables
5956 after splitting out of...
5957 (set_variable_part): ... this.
5958 (clobber_slot_part): New, split out of...
5959 (clobber_variable_part): ... this.
5960 (delete_slot_part): New, split out of...
5961 (delete_variable_part): .... this.
5962 (check_wrap_constant): New.
5963 (vt_expand_loc_callback): New.
5964 (vt_expand_loc): New.
5965 (emit_note_insn_var_location): Adjust. Handle values. Handle
5966 EMIT_NOTE_AFTER_CALL_INSN.
5967 (emit_notes_for_differences_1): Adjust. Handle values.
5968 (emit_notes_for_differences_2): Likewise.
5969 (emit_notes_for_differences): Adjust.
5970 (emit_notes_in_bb): Take pointer to set. Emit AFTER_CALL_INSN notes.
5971 Adjust. Handle new micro-ops.
5972 (vt_add_function_parameters): Adjust. Create and bind values.
5973 (vt_initialize): Adjust. Initialize scratch_regs and
5974 valvar_pool, flooded and perm.. Initialize and use cselib. Log
5975 operations. Move some code to count_with_sets and add_with_sets.
5976 (delete_debug_insns): New.
5977 (vt_debug_insns_local): New.
5978 (vt_finalize): Release permp, valvar_pool, scratch_regs. Finish
5979 cselib.
5980 (var_tracking_main): If var-tracking-assignments is enabled
5981 but var-tracking isn't, delete debug insns and leave. Likewise
5982 if we exceed limits or fail the stack adjustments tests, and
5983 after all var-tracking processing.
5984 More in var-tracking, from Jakub Jelinek <jakub@redhat.com>:
5985 (dataflow_set): Add traversed_vars.
5986 (value_chain, const_value_chain): New typedefs.
5987 (value_chain_pool, value_chains): New variables.
5988 (value_chain_htab_hash, value_chain_htab_eq, add_value_chain,
5989 add_value_chains, add_cselib_value_chains, remove_value_chain,
5990 remove_value_chains, remove_cselib_value_chains): New functions.
5991 (shared_hash_find_slot_unshare_1, shared_hash_find_slot_1,
5992 shared_hash_find_slot_noinsert_1, shared_hash_find_1): New
5993 static inlines.
5994 (shared_hash_find_slot_unshare, shared_hash_find_slot,
5995 shared_hash_find_slot_noinsert, shared_hash_find): Update.
5996 (dst_can_be_shared): New variable.
5997 (unshare_variable): Unshare set->vars if shared, use shared_hash_*.
5998 Clear dst_can_be_shared. If set->traversed_vars is non-NULL and
5999 different from set->vars, look up slot again instead of using the
6000 passed in slot.
6001 (dataflow_set_init): Initialize traversed_vars.
6002 (variable_union): Use shared_hash_*. Use initially NO_INSERT
6003 lookup if set->vars is shared. Don't keep slot cleared before
6004 calling unshare_variable. Unshare set->vars if needed. Adjust
6005 unshare_variable callers. Clear dst_can_be_shared if needed.
6006 Even ->refcount == 1 vars must be unshared if set->vars is shared
6007 and var needs to be modified.
6008 (dataflow_set_union): Set traversed_vars during canonicalization.
6009 (VALUE_CHANGED, DECL_CHANGED): Define.
6010 (set_dv_changed, dv_changed_p): New static inlines.
6011 (track_expr_p): Clear DECL_CHANGED.
6012 (dump_dataflow_sets): Set it.
6013 (variable_was_changed): Call set_dv_changed.
6014 (emit_note_insn_var_location): Likewise.
6015 (changed_variables_stack): New variable.
6016 (check_changed_vars_1, check_changed_vars_2): New functions.
6017 (emit_notes_for_changes): Do nothing if changed_variables is
6018 empty. Traverse changed_variables with check_changed_vars_1,
6019 call check_changed_vars_2 on each changed_variables_stack entry.
6020 (emit_notes_in_bb): Add SET argument. Just clear it at the
6021 beginning, use it instead of local &set, don't destroy it at the end.
6022 (vt_emit_notes): Call dataflow_set_clear early on all
6023 VTI(bb)->out sets, never use them, instead use emit_notes_in_bb
6024 computed set, dataflow_set_clear also VTI(bb)->in when we are
6025 done with the basic block. Initialize changed_variables_stack,
6026 free it afterwards. If ENABLE_CHECKING verify that after noting
6027 differences to an empty set value_chains hash table is empty.
6028 (vt_initialize): Initialize value_chains and value_chain_pool.
6029 (vt_finalize): Delete value_chains htab, free value_chain_pool.
6030 (variable_tracking_main): Call dump_dataflow_sets before calling
6031 vt_emit_notes, not after it.
6032 * tree-flow.h (propagate_defs_into_debug_stmts): Declare.
6033 (propagate_var_def_into_debug_stmts): Declare.
6034 * df-problems.c (df_lr_bb_local_compute): Skip debug insns.
6035 (df_set_note): Reject debug insns.
6036 (df_whole_mw_reg_dead_p): Take added_notes_p argument. Don't
6037 add notes to debug insns.
6038 (df_note_bb_compute): Adjust. Likewise.
6039 (df_simulate_uses): Skip debug insns.
6040 (df_simulate_initialize_backwards): Likewise.
6041 * reg-stack.c (subst_stack_regs_in_debug_insn): New.
6042 (subst_stack_regs_pat): Reject debug insns.
6043 (convert_regs_1): Handle debug insns.
6044 * Makefile.in (TREE_INLINE_H): Take pointer-set.h from GIMPLE_H.
6045 (print-rtl.o): Depend on cselib.h.
6046 (cselib.o): Depend on TREE_PASS_H.
6047 (var-tracking.o): Depend on cselib.h and TARGET_H.
6048 * sched-rgn.c (rgn_estimate_number_of_insns): Discount debug insns.
6049 (init_ready_list): Skip boundary debug insns.
6050 (add_branch_dependences): Skip debug insns.
6051 (free_block_dependencies): Check for blocks with only debug insns.
6052 (compute_priorities): Likewise.
6053 * gimple.c (gss_for_code): Handle GIMPLE_DEBUG.
6054 (gimple_build_with_ops_stat): Take subcode as unsigned. Adjust
6055 all callers.
6056 (gimple_build_debug_bind_stat): New.
6057 (empty_body_p): Skip debug stmts.
6058 (gimple_has_side_effects): Likewise.
6059 (gimple_rhs_has_side_effects): Likewise.
6060 * gimple.h (enum gimple_debug_subcode, GIMPLE_DEBUG_BIND): New.
6061 (gimple_build_debug_bind_stat): Declare.
6062 (gimple_build_debug_bind): Define.
6063 (is_gimple_debug): New.
6064 (gimple_debug_bind_p): New.
6065 (gimple_debug_bind_get_var): New.
6066 (gimple_debug_bind_get_value): New.
6067 (gimple_debug_bind_get_value_ptr): New.
6068 (gimple_debug_bind_set_var): New.
6069 (gimple_debug_bind_set_value): New.
6070 (GIMPLE_DEBUG_BIND_NOVALUE): New internal temporary macro.
6071 (gimple_debug_bind_reset_value): New.
6072 (gimple_debug_bind_has_value_p): New.
6073 (gsi_next_nondebug): New.
6074 (gsi_prev_nondebug): New.
6075 (gsi_start_nondebug_bb): New.
6076 (gsi_last_nondebug_bb): New.
6077 * sched-vis.c (print_pattern): Handle VAR_LOCATION.
6078 (print_insn): Handle DEBUG_INSN.
6079 * tree-cfg.c (remove_bb): Walk stmts backwards. Let loc
6080 of first insn prevail.
6081 (first_stmt): Skip debug stmts.
6082 (first_non_label_stmt): Likewise.
6083 (last_stmt): Likewise.
6084 (has_zero_uses_1): New.
6085 (single_imm_use_1): New.
6086 (verify_gimple_debug): New.
6087 (verify_types_in_gimple_stmt): Handle debug stmts.
6088 (verify_stmt): Likewise.
6089 (debug_loop_num): Skip debug stmts.
6090 (remove_edge_and_dominated_blocks): Remove dominators last.
6091 * tree-ssa-reasssoc.c (rewrite_expr_tree): Propagate into debug stmts.
6092 (linearize_expr): Likewise.
6093 * config/i386/i386.c (ix86_delegitimize_address): Call
6094 default implementation.
6095 * config/ia64/ia64.c (ia64_safe_itanium_class): Handle debug insns.
6096 (group_barrier_needed): Skip debug insns.
6097 (emit_insn_group_barriers): Likewise.
6098 (emit_all_insn_group_barriers): Likewise.
6099 (ia64_variable_issue): Handle debug insns.
6100 (ia64_dfa_new_cycle): Likewise.
6101 (final_emit_insn_group_barriers): Skip debug insns.
6102 (ia64_dwarf2out_def_steady_cfa): Take frame argument. Don't
6103 def cfa without frame.
6104 (process_set): Likewise.
6105 (process_for_unwind_directive): Pass frame on.
6106 * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
6107 (rs6000_delegitimize_address): New.
6108 (rs6000_debug_adjust_cost): Handle debug insns.
6109 (is_microcoded_insn): Likewise.
6110 (is_cracked_insn): Likewise.
6111 (is_nonpipeline_insn): Likewise.
6112 (insn_must_be_first_in_group): Likewise.
6113 (insn_must_be_last_in_group): Likewise.
6114 (force_new_group): Likewise.
6115 * cfgrtl.c (rtl_split_block): Emit INSN_DELETED note if block
6116 contains only debug insns.
6117 (rtl_merge_blocks): Skip debug insns.
6118 (purge_dead_edges): Likewise.
6119 (rtl_block_ends_with_call_p): Skip debug insns.
6120 * dce.c (deletable_insn_p): Handle VAR_LOCATION.
6121 (mark_reg_dependencies): Skip debug insns.
6122 * params.def (PARAM_MIN_NONDEBUG_INSN_UID): New.
6123 * tree-ssanames.c (release_ssa_name): Propagate def into debug stmts.
6124 * tree-ssa-threadedge.c
6125 (record_temporary_equivalences_from_stmts): Skip debug stmts.
6126 * regcprop.c (replace_oldest_value_addr): Skip debug insns.
6127 (replace_oldest_value_mem): Use ALL_REGS for debug insns.
6128 (copyprop_hardreg_forward_1): Handle debug insns.
6129 * reload1.c (reload): Skip debug insns. Replace unassigned
6130 pseudos in debug insns with their equivalences.
6131 (eliminate_regs_in_insn): Skip debug insns.
6132 (emit_input_reload_insns): Skip debug insns at first, adjust
6133 them later.
6134 * tree-ssa-operands.c (add_virtual_operand): Reject debug stmts.
6135 (get_indirect_ref_operands): Pass opf_no_vops on.
6136 (get_expr_operands): Likewise. Skip debug stmts.
6137 (parse_ssa_operands): Scan debug insns with opf_no_vops.
6138
6139 2009-09-01 Richard Henderson <rth@redhat.com>
6140
6141 * tree-ssa-ccp.c (ccp_initialize): Make sure to simulate
6142 stmt_ends_pp_p statements at least once.
6143 * tree-vrp.c (vrp_initialize): Likewise.
6144 (vrp_visit_stmt): Be prepared for non-interesting stmts.
6145
6146 2009-09-01 Dodji Seketeli <dodji@redhat.com>
6147
6148 PR bootstrap/41205
6149 Fix AIX bootstrap after PR debug/30161
6150 * dwarf2out.c (make_ith_pack_parameter_name): Don't used strnlen
6151 that is a GNU extension.
6152 (tmpl_value_parm_die_table): Move the definition of this global
6153 outside #ifdef DWARF2_DEBUGGING_INFO region.
6154
6155 2009-09-01 Richard Guenther <rguenther@suse.de>
6156
6157 * tree.c (tree_expr_size): New function.
6158 * tree.h (tree_expr_size): Declare.
6159 * rtlanal.c (rtx_addr_can_trap_p_1): Adjust comment.
6160 * builtins.c (fold_builtin_memory_op): Use tree_expr_size.
6161 * langhooks.c (lhd_expr_size): Remove.
6162 * langhooks.h (struct lang_hooks): Remove expr_size.
6163 * explow.c (expr_size): Use tree_expr_size.
6164 (int_expr_size): Likewise.
6165 * langhooks-def.h (lhd_expr_size): Remove.
6166 (LANG_HOOKS_EXPR_SIZE): Likewise.
6167 (LANG_HOOKS_INITIALIZER): Adjust.
6168
6169 2009-09-01 Richard Guenther <rguenther@suse.de>
6170
6171 * tree-flow.h (mark_addressable): Move declaration ...
6172 * tree.h (mark_addressable): ... here.
6173 * stmt.c (expand_asm_operands): Use mark_addressable, not
6174 lang_hooks.mark_addressable.
6175 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Remove
6176 LANG_HOOKS_MARK_ADDRESSABLE.
6177 * langhooks.h (struct lang_hooks): Remove mark_addressable langhook.
6178 * c-objc-common.h (LANG_HOOKS_MARK_ADDRESSABLE): Remove.
6179
6180 2009-08-31 Chris Demetriou <cgd@google.com>
6181
6182 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Never
6183 vectorize if not TARGET_SSE2.
6184
6185 2009-08-31 DJ Delorie <dj@redhat.com>
6186
6187 * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Exclude coprocessor
6188 registers if no coprocessor is enabled.
6189
6190 2009-08-31 Dodji Seketeli <dodji@redhat.com>
6191
6192 PR debug/30161
6193 * cgraph.h (cgraph_get_node): Declare ...
6194 * cgraph.c (cgraph_get_node): ... new function.
6195 * dwarf2out.c (gen_generic_params_dies,
6196 generic_parameter_die, tree_add_const_value_attribute_for_decl,
6197 make_ith_pack_parameter_name,
6198 append_entry_to_tmpl_value_parm_die_table,
6199 gen_remaining_tmpl_value_param_die_attribute): New functions.
6200 (gen_subprogram_die): Generate debug info for template parameters
6201 if debug info level is higher than DINFO_LEVEL_TERSE.
6202 Use tree_add_const_value_attribute_for_decl instead of
6203 tree_add_const_value_attribute.
6204 (gen_const_die): Use tree_add_const_value_attribute_for_decl
6205 instead of tree_add_const_value_attribute.
6206 (gen_struct_or_union_type_die): Generate debug
6207 info for template parameters if debug info level is higher than
6208 DINFO_LEVEL_TERSE.
6209 (tree_add_const_value_attribute): Handle integral and pointer
6210 constants. Update comment.
6211 (dwarf_tag_name): Support DW_TAG_GNU_template_template_param.
6212 (dwarf_attr_name): Support DW_AT_GNU_template_name.
6213 (reference_to_unused): Fix thinko. Remove redundant predicates from
6214 tests.
6215 (tree_add_const_value_attribute): Make this work for constant
6216 expressions only.
6217 tree_add_const_value_attribute_for_decl is to be used for variable
6218 DECLs now.
6219 (add_location_or_const_value_attribute): Use
6220 tree_add_const_value_attribute_for_decl now.
6221 (dwarf2out_finish): Emit the DW_AT_const_value attribute of
6222 DW_TAG_template_value_param DIEs after function DIEs have been
6223 emitted.
6224 * langhooks.h (lang_hooks_for_types): Add
6225 get_argument_pack_elems.
6226 (lang_hooks_for_decls): Add generic_generic_parameter_decl_p.
6227 (lang_hooks): Added get_innermost_generic_parms,
6228 get_innermost_generic_args.
6229 * langhooks-def.h (LANG_HOOKS_GET_INNERMOST_GENERIC_PARMS,
6230 LANG_HOOKS_GET_INNERMOST_GENERIC_ARGS,
6231 LANG_HOOKS_GET_ARGUMENT_PACK_ELEMS,
6232 LANG_HOOKS_GENERIC_GENERIC_PARAMETER_DECL_P): New language hooks.
6233
6234 2009-08-31 DJ Delorie <dj@redhat.com>
6235
6236 * config/mep/mep.c (machine_function): Add frame_locked flag. Set
6237 it once we start generating the prologue or epilogue.
6238 (mep_call_saves_register): If the frame is locked, re-use
6239 cached values.
6240 (mep_assign_save_slots): New, broken out from mep_expand_prologue.
6241 (mep_expand_prologue): Call it.
6242 (mep_expand_epilogue): Likewise.
6243 (mep_start_function): Use the same logic as mep_expand_prologue.
6244 (mep_pass_by_reference): Make logic more readable.
6245 (mep_return_in_memory): Zero-sized objects are passed in memory.
6246 (mep_reorg_noframe): Make sure we have accurate REG_DEAD notes.
6247
6248 2009-08-31 Richard Guenther <rguenther@suse.de>
6249
6250 * builtins.c (fold_builtin_memory_op): Use the alias oracle
6251 to query if the memory regions for memmove overlap.
6252 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Relax the
6253 asserts on pointers, instead deal with odd trees.
6254 (ptr_derefs_may_alias_p): Likewise.
6255 (refs_may_alias_p_1): Constructor bases also never alias.
6256
6257 2009-08-31 Gerald Pfeifer <gerald@pfeifer.com>
6258
6259 * doc/install.texi (Final install): Adjust reference on where to
6260 order printed manuals.
6261
6262 2009-08-30 Olivier Hainque <hainque@adacore.com>
6263
6264 * dwarf2out.c (switch_to_frame_table_section): Move
6265 definition prior to first use.
6266
6267 2009-08-30 Richard Guenther <rguenther@suse.de>
6268
6269 PR tree-optimization/41186
6270 * tree-ssa-alias.c (ptr_deref_may_alias_ref_p): Remove.
6271 (ao_ref_init_from_ptr_and_size): New function.
6272 (ref_maybe_used_by_call_p_1): Be more precise tracking
6273 used ranges for builtin functions.
6274 (ref_maybe_used_by_call_p): Adjust.
6275 (call_may_clobber_ref_p_1): Be more precise tracking clobbered
6276 ranges for builtin functions.
6277 * tree-ssa-alias.h (ao_ref_init_from_ptr_and_size): Declare.
6278
6279 2009-08-30 Alan Modra <amodra@bigpond.net.au>
6280
6281 PR target/41081
6282 * fwprop.c (get_reg_use_in): Delete.
6283 (free_load_extend): New function.
6284 (forward_propagate_subreg): Use it.
6285
6286 2009-08-29 Kaz Kojima <kkojima@gcc.gnu.org>
6287
6288 * config.gcc (sh*-*-elf): Add superh stuff only for sh*-superh-elf.
6289
6290 2009-08-29 Kai Tietz<kai.tietz@onevision.com>
6291
6292 PR/41184
6293 * config/i386.c (ix86_expand_epilogue): Correct stack adjustment for
6294 padding.
6295
6296 2009-08-29 Douglas B Rupp <rupp@gnat.com>
6297
6298 * crtstuff.c (__do_global_dtors_aux): Use atexit if no
6299 fini or fini_array section.
6300
6301 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
6302
6303 * graphite-dependences.c (graphite_legal_transform_bb): Call
6304 pbb_remove_duplicate_pdrs.
6305 * graphite-poly.c (can_collapse_pdr): Removed.
6306 (pdr_find_duplicate): Removed.
6307 (can_collapse_pdrs): New.
6308 (pbb_remove_duplicate_pdrs): New.
6309 (new_poly_dr): Do not look for duplicates.
6310 * graphite-poly.h (struct poly_bb): New field pdr_duplicates_removed.
6311 (PBB_PDR_DUPLICATES_REMOVED): New.
6312 (pbb_remove_duplicate_pdrs): Declared.
6313
6314 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
6315
6316 * graphite-interchange.c (pbb_interchange_profitable_p): Adjust
6317 the strides by multiplying by PDR_NB_REFS.
6318 * graphite-poly.c (can_collapse_pdr): New.
6319 (pdr_find_duplicate): New.
6320 (new_poly_dr): Call pdr_find_duplicate. Collapse duplicate PDRs.
6321 Initialize PDR_NB_REFS.
6322 * graphite-poly.h (struct poly_dr): Add field nb_refs.
6323 (PDR_NB_REFS): New.
6324 (new_poly_dr): Number of subscripts is a graphite_dim_t.
6325
6326 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
6327
6328 PR middle-end/40965
6329 * graphite-poly.c (apply_poly_transforms): Remove legality test before
6330 any transform.
6331
6332 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
6333
6334 * graphite-dependences.c (pddr_original_scattering): Return NULL
6335 for read-read dependence relations.
6336 * graphite-poly.h (enum poly_dr_type): Fix comment.
6337 (pdr_read_p): New.
6338 (pdr_write_p): New.
6339 (pdr_may_write_p): New.
6340
6341 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
6342
6343 * graphite-poly.h (enum POLY_DR_TYPE): Renamed poly_dr_type.
6344 (struct poly_dr): Same.
6345 (new_poly_dr): Same.
6346 * graphite-poly.c (new_poly_dr): Same.
6347 * graphite-dependences.c (dot_deps): Disable call to system.
6348
6349 2009-08-28 Cary Coutant <ccoutant@google.com>
6350
6351 PR debug/41063
6352 * dwarf2out.c (gen_type_die_with_usage): Use proper context for
6353 struct/union/enum types local to a function.
6354
6355 2009-08-28 Konrad Trifunovic <konrad.trifunovic@gmail.com>
6356 Sebastian Pop <sebastian.pop@amd.com>
6357
6358 * graphite-blocking.c (pbb_strip_mine_loop_depth): Renamed
6359 pbb_strip_mine_time_depth. Changed the implementation so that
6360 transformation is expressed as a transformation on
6361 time (scatttering) dimensions. Also, ensures that the 2d+1
6362 scheduling format is preserved.
6363 (pbb_strip_mine_profitable_p): Profitability is based on the
6364 iteration number of a given time (scattering) dimension,
6365 and not on a original loop depth dimension.
6366 (pbb_strip_mine): Call pbb_number_of_iterations_at_time.
6367 (pbb_do_strip_mine): Call psct_dynamic_dim.
6368 * graphite-poly.c (pbb_number_of_iterations_at_time): New.
6369 * graphite-poly.h (pbb_number_of_iterations_at_time): Declared.
6370 (pbb_nb_dynamic_scattering_transform): New.
6371 (psct_dynamic_dim): New.
6372
6373 2009-08-28 Konrad Trifunovic <konrad.trifunovic@gmail.com>
6374
6375 * graphite-ppl.c (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
6376 * graphite-ppl.h (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
6377 * graphite-poly.c (pbb_number_of_iterations): Rename ppl_max_for_le.
6378 * graphite-interchange.c (build_linearized_memory_access): Same.
6379 (memory_stride_in_loop): Same.
6380
6381 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
6382
6383 * graphite-dependences.c (pddr_original_scattering): New.
6384 (graphite_legal_transform_dr): Call pddr_original_scattering.
6385 (dot_deps_1): New.
6386 (dot_deps): New.
6387 * graphite-dependences.h (dot_deps): Declared.
6388 * graphite-poly.c (new_poly_dr): Initialize PDR_ID.
6389 (print_pdr): Print PDR_ID.
6390 * graphite-poly.h (struct poly_dr): Add field id.
6391 (PDR_ID): New.
6392 (pbb_index): New.
6393 * graphite-scop-detection.c (dot_all_scops_1): Cleanup comment.
6394
6395 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
6396
6397 * graphite-dependences.c (graphite_carried_dependence_level_k): Do
6398 not delete the original dependence relation.
6399
6400 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
6401
6402 * graphite-dependences.c (new_poly_dr_pair): Renamed new_poly_ddr.
6403 (eq_poly_dr_pair_p): Renamed eq_poly_ddr_p.
6404 (hash_poly_dr_pair_p): Renamed hash_poly_ddr_p.
6405 (free_poly_ddr): New.
6406 (pddr_is_empty): New.
6407 (dependence_polyhedron_1): Now returns a poly_ddr_p.
6408 (dependence_polyhedron): Same. Remove useless gcc_assert.
6409 Remove fprintfs.
6410 (graphite_legal_transform_dr): Call pddr_is_empty and free_poly_ddr.
6411 (graphite_carried_dependence_level_k): Call pddr_is_empty.
6412 * graphite-dependences.h (enum poly_dependence_kind): New.
6413 (poly_dr_pair): Renamed poly_ddr. Added a field kind.
6414 (PDRP_SOURCE): Renamed PDDR_SOURCE.
6415 (PDRP_SINK): Renamed PDDR_SINK.
6416 (PDRP_DDP): Renamed PDDR_DDP.
6417 (PDDR_KIND): New.
6418 (free_poly_ddr): Declared.
6419 * graphite-poly.c (new_scop): Use the new hash function names.
6420 * graphite-poly.h (struct scop): Renamed field original_pdr_pairs
6421 into original_pddrs.
6422 (SCOP_ORIGINAL_PDR_PAIRS): Renamed SCOP_ORIGINAL_PDDRS.
6423
6424 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
6425
6426 * cfgloopmanip.c (create_empty_loop_on_edge): Generate upper
6427 bounds with LT_EXPR to make niter analysis more precise on code
6428 generated by Graphite.
6429
6430 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
6431
6432 * graphite-dependences.c (graphite_legal_transform_dr): Fix formatting.
6433 (graphite_legal_transform_bb): Same.
6434 (poly_drs_may_alias_p): Same.
6435
6436 2009-08-28 Richard Guenther <rguenther@suse.de>
6437
6438 * tree.def: Remove note about obsolete TYPE_NONCOPIED_PARTS.
6439
6440 2009-08-28 Jan Beulich <jbeulich@novell.com>
6441
6442 * config/i386/netware.c: Include langhooks.h.
6443 (i386_nlm_encode_section_info): Simplify.
6444 (netware_override_options): Delete.
6445 * config/i386/netware.h (netware_override_options): Delete
6446 declaration.
6447 (OVERRIDE_OPTIONS): Delete definition.
6448 (SUBTARGET_OVERRIDE_OPTIONS): Define.
6449 (ASM_COMMENT_START): Define.
6450 * config/i386/nwld.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Define.
6451
6452 2009-08-28 Jan Beulich <jbeulich@novell.com>
6453
6454 * configure.ac: For in-tree ld, do a plain version check to
6455 determine whether comdat groups are supported.
6456 * configure: Regenerate.
6457
6458 2009-08-28 Olivier Hainque <hainque@adacore.com>
6459
6460 * collect2.c (DO_COLLECT_EXPORT_LIST): New internal macro,
6461 always defined. Reflect definition or absence of such for
6462 COLLECT_EXPORT_LIST. Readability helper.
6463 (scanfilter): New enum, to help control what symbols
6464 are to be considered or ignored by scan_prog_file.
6465 (enum pass): Rename as "scanpass", moved together with scanfilter
6466 prior to scan_prog_file's prototype.
6467 (scan_prog_file): Accept and honor scanpass and scanfilter arguments.
6468 Group prototype with the scanpass/scanfilter definitions, factorize
6469 head comments for the several implementations at the prototype.
6470 (main): Reorganize the first pass link control to let AIX
6471 drag only the needed frame tables in executables. Prevent
6472 frame tables collection during the scan aimed at static ctors.
6473 Pre-link and scan for frame tables later to compensate.
6474 * doc/tm.texi (ASM_OUTPUT_DWARF_TABLE_REF): New macro.
6475 A C statement to issue assembly directives that create a reference
6476 to the given DWARF table identifier label from the current function
6477 section.
6478 * dwarf2out.c (switch_to_eh_frame_section): Add a BACK argument
6479 to differentiate first time section entry. Only emit a .data
6480 tables start identifier label the first time around.
6481 (switch_to_frame_table_section): New function. Helper for
6482 output_call_frame_info to switch possibly BACK into the eh_frame
6483 or the debug_frame section depending on FOR_EH.
6484 (output_call_frame_info): Use helper to first enter the proper
6485 frame section.
6486 (output_fde): Use ASM_OUTPUT_DWARF_TABLE_REF when defined to
6487 emit a link to the frame table start label from each function
6488 section.
6489 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_table_ref):
6490 New function. Implementation of ASM_OUTPUT_DWARF_TABLE_REF.
6491 * config/rs6000/rs6000-protos.h: Declare it.
6492 * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Define.
6493
6494 2009-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
6495
6496 * config/sh/sh.c (split_branches): Check the result of
6497 next_active_insn.
6498
6499 2009-08-27 Steve Ellcey <sje@cup.hp.com>
6500
6501 * config/ia64/hpux.h (LIB_SPEC): Add -lrt for when
6502 using -pthread -fopenmp
6503
6504 2009-08-27 Gerald Pfeifer <gerald@pfeifer.com>
6505
6506 * doc/service.texi (service directory): Update URL.
6507
6508 2009-08-27 Uros Bizjak <ubizjak@gmail.com>
6509
6510 PR rtl-optimization/40861
6511 * simplify-rtx.c (simplify_subreg): Do not call simplify_gen_subreg to
6512 extract word from a multi-word subreg for negative byte positions.
6513
6514 2009-08-27 Tristan Gingold <gingold@adacore.com>
6515 Douglas B Rupp <rupp@gnat.com>
6516
6517 * config/ia64/ia64.c (ia64_attribute_table): Add "common_object" entry.
6518 (SECTION_VMS_OVERLAY): Define.
6519 (ia64_vms_common_object_attribute): Added. Handle the "common_object"
6520 attribute.
6521 (ia64_vms_elf_asm_named_section): Added. Generate .section pseudo-op
6522 for common_object.
6523 (ia64_vms_output_aligned_decl_common): Added. Generate pseudo-op for
6524 common_object declarations.
6525 (ia64_section_type_flags): Set section flag for common_object.
6526 * config/ia64/ia64-protos.h
6527 (ia64_vms_output_aligned_decl_common): Declare.
6528 (ia64_vms_elf_asm_named_section): Declare.
6529
6530 2009-08-27 Michael Matz <matz@suse.de>
6531
6532 * expr.c (expand_expr_real_2): New function taking exploded
6533 unary or binary expression, split out from ...
6534 (expand_expr_real_1): ... here. Move over all unary/binary
6535 switch parts to above function, in particular these codes:
6536 PAREN_EXPR, NOP_EXPR, CONVERT_EXPR, POINTER_PLUS_EXPR, PLUS_EXPR,
6537 MINUS_EXPR, MULT_EXPR, TRUNC_DIV_EXPR, FLOOR_DIV_EXPR, CEIL_DIV_EXPR,
6538 ROUND_DIV_EXPR, EXACT_DIV_EXPR, RDIV_EXPR, TRUNC_MOD_EXPR,
6539 FLOOR_MOD_EXPR, CEIL_MOD_EXPR, ROUND_MOD_EXPR, FIXED_CONVERT_EXPR,
6540 FIX_TRUNC_EXPR, FLOAT_EXPR, NEGATE_EXPR, ABS_EXPR, MAX_EXPR, MIN_EXPR,
6541 BIT_NOT_EXPR, TRUTH_AND_EXPR, BIT_AND_EXPR, TRUTH_OR_EXPR,
6542 BIT_IOR_EXPR, TRUTH_XOR_EXPR, BIT_XOR_EXPR, LROTATE_EXPR, RROTATE_EXPR,
6543 LSHIFT_EXPR, RSHIFT_EXPR, LT_EXPR, LE_EXPR, GT_EXPR, GE_EXPR, EQ_EXPR,
6544 NE_EXPR, UNORDERED_EXPR, ORDERED_EXPR, UNLT_EXPR, UNLE_EXPR, UNGT_EXPR,
6545 UNGE_EXPR, UNEQ_EXPR, LTGT_EXPR, TRUTH_NOT_EXPR, COMPLEX_EXPR,
6546 WIDEN_SUM_EXPR, REDUC_MAX_EXPR, REDUC_MIN_EXPR, REDUC_PLUS_EXPR,
6547 VEC_EXTRACT_EVEN_EXPR, VEC_EXTRACT_ODD_EXPR, VEC_INTERLEAVE_HIGH_EXPR,
6548 VEC_INTERLEAVE_LOW_EXPR, VEC_LSHIFT_EXPR, VEC_RSHIFT_EXPR,
6549 VEC_UNPACK_HI_EXPR, VEC_UNPACK_LO_EXPR, VEC_UNPACK_FLOAT_HI_EXPR,
6550 VEC_UNPACK_FLOAT_LO_EXPR, VEC_WIDEN_MULT_HI_EXPR,
6551 VEC_WIDEN_MULT_LO_EXPR, VEC_PACK_TRUNC_EXPR, VEC_PACK_SAT_EXPR,
6552 VEC_PACK_FIX_TRUNC_EXPR.
6553 (<case PAREN_EXPR>): Call set_mem_attributes() with type, not the
6554 full expression.
6555
6556 2009-08-27 Richard Guenther <rguenther@suse.de>
6557
6558 * gengtype.c (main): Handle uint64_t.
6559 * ipa-utils.c (get_base_var): Indent properly.
6560 * tree-ssa-live.c (debug_scope_block): New function.
6561 * tree-flow.h (debug_scope_block): Declare.
6562 * tree-ssa-copy.c (replace_exp_1): Add vertical space.
6563 * basic-block.h (enum profile_status): Rename to
6564 enum profile_status_d.
6565 (x_profile_status): Adjust type.
6566
6567 2009-08-27 Dodji Seketeli <dodji@redhat.com>
6568
6569 PR debug/41170
6570 * dwarf2out.c (get_context_die): Declare this static function.
6571 (gen_type_die_with_usage): Make sure a DIE is a generated for
6572 the context of a typedef.
6573
6574 2009-08-26 Anatoly Sokolov <aesok@post.ru>
6575
6576 * doc/invoke.texi (AVR Options): Remove documentation of -minit-stack
6577 switch.
6578
6579 2009-08-26 Richard Sandiford <rdsandiford@googlemail.com>
6580
6581 * config/mips/mips-protos.h (mips_output_sync): Declare.
6582 (mips_sync_loop_insns): Likewise.
6583 (mips_output_sync_loop): Replace first two parameters with an rtx.
6584 * config/mips/mips.c (mips_multi_member): New structure.
6585 (mips_multi_members): New variable.
6586 (mips_multi_start): New function.
6587 (mips_multi_add): Likewise.
6588 (mips_multi_add_insn): Likewise.
6589 (mips_multi_add_label): Likewise.
6590 (mips_multi_last_index): Likewise.
6591 (mips_multi_copy_insn): Likewise.
6592 (mips_multi_set_operand): Likewise.
6593 (mips_multi_write): Likewise.
6594 (mips_print_operand_punctuation): Remove '%|' and '%-'.
6595 (mips_init_print_operand_punct): Update accordingly.
6596 (mips_start_ll_sc_sync_block): New function.
6597 (mips_end_ll_sc_sync_block): Likewise.
6598 (mips_output_sync): Likewise.
6599 (mips_sync_insn1_template): Likewise.
6600 (mips_sync_insn2_template): Likewise.
6601 (mips_get_sync_operand): Likewise.
6602 (mips_process_sync_loop): Likewise.
6603 (mips_output_sync_loop): Use mips_process_sync_loop.
6604 (mips_sync_loop_insns): New function.
6605 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Delete.
6606 (MIPS_COMPARE_AND_SWAP_12): Likewise.
6607 (MIPS_COMPARE_AND_SWAP_12_ZERO_OP): Likewise.
6608 (MIPS_COMPARE_AND_SWAP_12_NONZERO_OP): Likewise.
6609 (MIPS_SYNC_OP, MIPS_SYNC_OP_12): Likewise.
6610 (MIPS_SYNC_OP_12_AND, MIPS_SYNC_OP_12_XOR): Likewise.
6611 (MIPS_SYNC_OLD_OP_12): Likewise.
6612 (MIPS_SYNC_OLD_OP_12_AND, MIPS_SYNC_OLD_OP_12_XOR): Likewise.
6613 (MIPS_SYNC_NEW_OP_12): Likewise.
6614 (MIPS_SYNC_NEW_OP_12_AND, MIPS_SYNC_NEW_OP_12_XOR): Likewise.
6615 (MIPS_SYNC_OLD_OP, MIPS_SYNC_NEW_OP): Likewise.
6616 (MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND, MIPS_SYNC_NEW_NAND): Likewise.
6617 (MIPS_SYNC_EXCHANGE, MIPS_SYNC_EXCHANGE_12): Likewise.
6618 (MIPS_SYNC_EXCHANGE_12_ZERO_OP): Likewise.
6619 (MIPS_SYNC_EXCHANGE_12_NONZER_OP): Likewise.
6620 * config/mips/mips.md (sync_mem): New attribute.
6621 (sync_oldval, sync_newval, sync_inclusive_mask): Likewise.
6622 (sync_exclusive_mask, sync_required_oldval): Likewise.
6623 (sync_insn1_op2, sync_insn1, sync_insn2): Likewise.
6624 (sync_release_barrier): Likewise.
6625 (length): Handle sync loops.
6626 (sync): Use mips_output_sync.
6627 * config/mips/sync.md (*memory_barrier): Use mips_output_sync.
6628 (sync_compare_and_swap<mode>): Set the new sync_* attributes
6629 and use mips_output_sync_loop.
6630 (compare_and_swap_12, sync_add<mode>, sync_<optab>_12): Likewise.
6631 (sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12): Likewise.
6632 (sync_old_nand_12, sync_new_nand_12, sync_sub<mode>): Likewise.
6633 (sync_old_add<mode>, sync_old_sub<mode>): Likewise.
6634 (sync_new_add<mode>, sync_new_sub<mode>): Likewise.
6635 (sync_<optab><mode>, sync_old_<optab><mode>): Likewise.
6636 (sync_new_<optab><mode>, sync_nand<mode>): Likewise.
6637 (sync_old_nand<mode>, sync_new_nand<mode>): Likewise.
6638 (sync_lock_test_and_set<mode>, test_and_set_12): Likewise.
6639
6640 2009-08-26 Richard Guenther <rguenther@suse.de>
6641
6642 PR middle-end/41163
6643 * gimplify.c (gimplify_addr_expr): Canonicalize ADDR_EXPRs if
6644 the types to not match.
6645 * tree-cfg.c (verify_gimple_assign_single): Adjust ADDR_EXPR
6646 verification.
6647 * tree-ssa.c (useless_type_conversion_p): Conversions to
6648 pointers to unprototyped functions are useless.
6649
6650 2009-08-26 Richard Guenther <rguenther@suse.de>
6651
6652 * tree-ssa-structalias.c (create_variable_info_for): Remove strange
6653 whole-program condition, prepare to be called for non-globals.
6654 (intra_create_variable_infos): For restrict qualified DECL_BY_REFERENCE
6655 params build a representative with known type and track its fields.
6656
6657 2009-08-26 Uros Bizjak <ubizjak@gmail.com>
6658
6659 * config/alpha/sync.md: Update comment about unpredictable LL/SC lock
6660 clearing by a taken branch.
6661 (sync_<fetchop_name><mode>): Split when epilogue_completed is set,
6662 effectively after bbro pass.
6663 (sync_nand<mode>): Ditto.
6664 (sync_old_<fetchop_name><mode>): Ditto.
6665 (sync_old_nand<mode>): Ditto.
6666 (sync_new_<fetchop_name><mode>): Dito.
6667 (sync_new_nand<mode>): Ditto.
6668 (sync_compare_and_swap<mode>_1): Ditto.
6669 (*sync_compare_and_swap<mode>): Ditto.
6670 (sync_lock_test_and_set<mode>_1): Ditto.
6671 ("sync_lock_test_and_set<mode>): Ditto.
6672
6673 2009-08-25 Douglas B Rupp <rupp@gnat.com>
6674
6675 * hwint.h (HOST_LONG_FORMAT): New macro
6676 * bitmap.c, c-decl.c, mips-tfile.c, print-rtl.c, print-tree.c:
6677 Use HOST_PTR_PRINTF.
6678 * system.h (HOST_PTR_PRINTF): Resurrect old macro
6679 * doc/hostconfig.texi (HOST_LONG_FORMAT): Document.
6680 (HOST_PTR_PRINTF): Document.
6681
6682 2009-08-25 Jan Hubicka <jh@suse.cz>
6683
6684 * config/i386/bmmintrin.h: Replace by #error.
6685
6686 Revert:
6687 Michael Meissner <michael.meissner@amd.com>
6688 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
6689 Tony Linthicum <tony.linthicum@amd.com>
6690
6691 * config/i386/i386.h (TARGET_SSE5): New macro for SSE5.
6692 (TARGET_ROUND): New macro for the round/ptest instructions which
6693 are shared between SSE4.1 and SSE5.
6694 (OPTION_MASK_ISA_ROUND): Ditto.
6695 (OPTION_ISA_ROUND): Ditto.
6696 (TARGET_FUSED_MADD): New macro for -mfused-madd swtich.
6697 (TARGET_CPU_CPP_BUILTINS): Add SSE5 support.
6698
6699 * config/i386/i386.opt (-msse5): New switch for SSE5 support.
6700 (-mfused-madd): New switch to give users control over whether the
6701 compiler optimizes to use the multiply/add SSE5 instructions.
6702
6703 * config/i386/i386.c (enum pta_flags): Add PTA_SSE5.
6704 (ix86_handle_option): Turn off 3dnow if -msse5.
6705 (override_options): Add SSE5 support.
6706 (print_operand): %Y prints comparison codes for SSE5 com/pcom
6707 instructions.
6708 (ix86_expand_sse_movcc): Add SSE5 support.
6709 (ix86_expand_sse5_unpack): New function to use pperm to unpack a
6710 vector type to the next largest size.
6711 (ix86_expand_sse5_pack): New function to use pperm to pack a
6712 vector type to the next smallest size.
6713 (IX86_BUILTIN_FMADDSS): New for SSE5 intrinsic.
6714 (IX86_BUILTIN_FMADDSD): Ditto.
6715 (IX86_BUILTIN_FMADDPS): Ditto.
6716 (IX86_BUILTIN_FMADDPD): Ditto.
6717 (IX86_BUILTIN_FMSUBSS): Ditto.
6718 (IX86_BUILTIN_FMSUBSD): Ditto.
6719 (IX86_BUILTIN_FMSUBPS): Ditto.
6720 (IX86_BUILTIN_FMSUBPD): Ditto.
6721 (IX86_BUILTIN_FNMADDSS): Ditto.
6722 (IX86_BUILTIN_FNMADDSD): Ditto.
6723 (IX86_BUILTIN_FNMADDPS): Ditto.
6724 (IX86_BUILTIN_FNMADDPD): Ditto.
6725 (IX86_BUILTIN_FNMSUBSS): Ditto.
6726 (IX86_BUILTIN_FNMSUBSD): Ditto.
6727 (IX86_BUILTIN_FNMSUBPS): Ditto.
6728 (IX86_BUILTIN_FNMSUBPD): Ditto.
6729 (IX86_BUILTIN_PCMOV_V2DI): Ditto.
6730 (IX86_BUILTIN_PCMOV_V4SI): Ditto.
6731 (IX86_BUILTIN_PCMOV_V8HI): Ditto.
6732 (IX86_BUILTIN_PCMOV_V16QI): Ditto.
6733 (IX86_BUILTIN_PCMOV_V4SF): Ditto.
6734 (IX86_BUILTIN_PCMOV_V2DF): Ditto.
6735 (IX86_BUILTIN_PPERM): Ditto.
6736 (IX86_BUILTIN_PERMPS): Ditto.
6737 (IX86_BUILTIN_PERMPD): Ditto.
6738 (IX86_BUILTIN_PMACSSWW): Ditto.
6739 (IX86_BUILTIN_PMACSWW): Ditto.
6740 (IX86_BUILTIN_PMACSSWD): Ditto.
6741 (IX86_BUILTIN_PMACSWD): Ditto.
6742 (IX86_BUILTIN_PMACSSDD): Ditto.
6743 (IX86_BUILTIN_PMACSDD): Ditto.
6744 (IX86_BUILTIN_PMACSSDQL): Ditto.
6745 (IX86_BUILTIN_PMACSSDQH): Ditto.
6746 (IX86_BUILTIN_PMACSDQL): Ditto.
6747 (IX86_BUILTIN_PMACSDQH): Ditto.
6748 (IX86_BUILTIN_PMADCSSWD): Ditto.
6749 (IX86_BUILTIN_PMADCSWD): Ditto.
6750 (IX86_BUILTIN_PHADDBW): Ditto.
6751 (IX86_BUILTIN_PHADDBD): Ditto.
6752 (IX86_BUILTIN_PHADDBQ): Ditto.
6753 (IX86_BUILTIN_PHADDWD): Ditto.
6754 (IX86_BUILTIN_PHADDWQ): Ditto.
6755 (IX86_BUILTIN_PHADDDQ): Ditto.
6756 (IX86_BUILTIN_PHADDUBW): Ditto.
6757 (IX86_BUILTIN_PHADDUBD): Ditto.
6758 (IX86_BUILTIN_PHADDUBQ): Ditto.
6759 (IX86_BUILTIN_PHADDUWD): Ditto.
6760 (IX86_BUILTIN_PHADDUWQ): Ditto.
6761 (IX86_BUILTIN_PHADDUDQ): Ditto.
6762 (IX86_BUILTIN_PHSUBBW): Ditto.
6763 (IX86_BUILTIN_PHSUBWD): Ditto.
6764 (IX86_BUILTIN_PHSUBDQ): Ditto.
6765 (IX86_BUILTIN_PROTB): Ditto.
6766 (IX86_BUILTIN_PROTW): Ditto.
6767 (IX86_BUILTIN_PROTD): Ditto.
6768 (IX86_BUILTIN_PROTQ): Ditto.
6769 (IX86_BUILTIN_PROTB_IMM): Ditto.
6770 (IX86_BUILTIN_PROTW_IMM): Ditto.
6771 (IX86_BUILTIN_PROTD_IMM): Ditto.
6772 (IX86_BUILTIN_PROTQ_IMM): Ditto.
6773 (IX86_BUILTIN_PSHLB): Ditto.
6774 (IX86_BUILTIN_PSHLW): Ditto.
6775 (IX86_BUILTIN_PSHLD): Ditto.
6776 (IX86_BUILTIN_PSHLQ): Ditto.
6777 (IX86_BUILTIN_PSHAB): Ditto.
6778 (IX86_BUILTIN_PSHAW): Ditto.
6779 (IX86_BUILTIN_PSHAD): Ditto.
6780 (IX86_BUILTIN_PSHAQ): Ditto.
6781 (IX86_BUILTIN_FRCZSS): Ditto.
6782 (IX86_BUILTIN_FRCZSD): Ditto.
6783 (IX86_BUILTIN_FRCZPS): Ditto.
6784 (IX86_BUILTIN_FRCZPD): Ditto.
6785 (IX86_BUILTIN_CVTPH2PS): Ditto.
6786 (IX86_BUILTIN_CVTPS2PH): Ditto.
6787 (IX86_BUILTIN_COMEQSS): Ditto.
6788 (IX86_BUILTIN_COMNESS): Ditto.
6789 (IX86_BUILTIN_COMLTSS): Ditto.
6790 (IX86_BUILTIN_COMLESS): Ditto.
6791 (IX86_BUILTIN_COMGTSS): Ditto.
6792 (IX86_BUILTIN_COMGESS): Ditto.
6793 (IX86_BUILTIN_COMUEQSS): Ditto.
6794 (IX86_BUILTIN_COMUNESS): Ditto.
6795 (IX86_BUILTIN_COMULTSS): Ditto.
6796 (IX86_BUILTIN_COMULESS): Ditto.
6797 (IX86_BUILTIN_COMUGTSS): Ditto.
6798 (IX86_BUILTIN_COMUGESS): Ditto.
6799 (IX86_BUILTIN_COMORDSS): Ditto.
6800 (IX86_BUILTIN_COMUNORDSS): Ditto.
6801 (IX86_BUILTIN_COMFALSESS): Ditto.
6802 (IX86_BUILTIN_COMTRUESS): Ditto.
6803 (IX86_BUILTIN_COMEQSD): Ditto.
6804 (IX86_BUILTIN_COMNESD): Ditto.
6805 (IX86_BUILTIN_COMLTSD): Ditto.
6806 (IX86_BUILTIN_COMLESD): Ditto.
6807 (IX86_BUILTIN_COMGTSD): Ditto.
6808 (IX86_BUILTIN_COMGESD): Ditto.
6809 (IX86_BUILTIN_COMUEQSD): Ditto.
6810 (IX86_BUILTIN_COMUNESD): Ditto.
6811 (IX86_BUILTIN_COMULTSD): Ditto.
6812 (IX86_BUILTIN_COMULESD): Ditto.
6813 (IX86_BUILTIN_COMUGTSD): Ditto.
6814 (IX86_BUILTIN_COMUGESD): Ditto.
6815 (IX86_BUILTIN_COMORDSD): Ditto.
6816 (IX86_BUILTIN_COMUNORDSD): Ditto.
6817 (IX86_BUILTIN_COMFALSESD): Ditto.
6818 (IX86_BUILTIN_COMTRUESD): Ditto.
6819 (IX86_BUILTIN_COMEQPS): Ditto.
6820 (IX86_BUILTIN_COMNEPS): Ditto.
6821 (IX86_BUILTIN_COMLTPS): Ditto.
6822 (IX86_BUILTIN_COMLEPS): Ditto.
6823 (IX86_BUILTIN_COMGTPS): Ditto.
6824 (IX86_BUILTIN_COMGEPS): Ditto.
6825 (IX86_BUILTIN_COMUEQPS): Ditto.
6826 (IX86_BUILTIN_COMUNEPS): Ditto.
6827 (IX86_BUILTIN_COMULTPS): Ditto.
6828 (IX86_BUILTIN_COMULEPS): Ditto.
6829 (IX86_BUILTIN_COMUGTPS): Ditto.
6830 (IX86_BUILTIN_COMUGEPS): Ditto.
6831 (IX86_BUILTIN_COMORDPS): Ditto.
6832 (IX86_BUILTIN_COMUNORDPS): Ditto.
6833 (IX86_BUILTIN_COMFALSEPS): Ditto.
6834 (IX86_BUILTIN_COMTRUEPS): Ditto.
6835 (IX86_BUILTIN_COMEQPD): Ditto.
6836 (IX86_BUILTIN_COMNEPD): Ditto.
6837 (IX86_BUILTIN_COMLTPD): Ditto.
6838 (IX86_BUILTIN_COMLEPD): Ditto.
6839 (IX86_BUILTIN_COMGTPD): Ditto.
6840 (IX86_BUILTIN_COMGEPD): Ditto.
6841 (IX86_BUILTIN_COMUEQPD): Ditto.
6842 (IX86_BUILTIN_COMUNEPD): Ditto.
6843 (IX86_BUILTIN_COMULTPD): Ditto.
6844 (IX86_BUILTIN_COMULEPD): Ditto.
6845 (IX86_BUILTIN_COMUGTPD): Ditto.
6846 (IX86_BUILTIN_COMUGEPD): Ditto.
6847 (IX86_BUILTIN_COMORDPD): Ditto.
6848 (IX86_BUILTIN_COMUNORDPD): Ditto.
6849 (IX86_BUILTIN_COMFALSEPD): Ditto.
6850 (IX86_BUILTIN_COMTRUEPD): Ditto.
6851 (IX86_BUILTIN_PCOMEQUB): Ditto.
6852 (IX86_BUILTIN_PCOMNEUB): Ditto.
6853 (IX86_BUILTIN_PCOMLTUB): Ditto.
6854 (IX86_BUILTIN_PCOMLEUB): Ditto.
6855 (IX86_BUILTIN_PCOMGTUB): Ditto.
6856 (IX86_BUILTIN_PCOMGEUB): Ditto.
6857 (IX86_BUILTIN_PCOMFALSEUB): Ditto.
6858 (IX86_BUILTIN_PCOMTRUEUB): Ditto.
6859 (IX86_BUILTIN_PCOMEQUW): Ditto.
6860 (IX86_BUILTIN_PCOMNEUW): Ditto.
6861 (IX86_BUILTIN_PCOMLTUW): Ditto.
6862 (IX86_BUILTIN_PCOMLEUW): Ditto.
6863 (IX86_BUILTIN_PCOMGTUW): Ditto.
6864 (IX86_BUILTIN_PCOMGEUW): Ditto.
6865 (IX86_BUILTIN_PCOMFALSEUW): Ditto.
6866 (IX86_BUILTIN_PCOMTRUEUW): Ditto.
6867 (IX86_BUILTIN_PCOMEQUD): Ditto.
6868 (IX86_BUILTIN_PCOMNEUD): Ditto.
6869 (IX86_BUILTIN_PCOMLTUD): Ditto.
6870 (IX86_BUILTIN_PCOMLEUD): Ditto.
6871 (IX86_BUILTIN_PCOMGTUD): Ditto.
6872 (IX86_BUILTIN_PCOMGEUD): Ditto.
6873 (IX86_BUILTIN_PCOMFALSEUD): Ditto.
6874 (IX86_BUILTIN_PCOMTRUEUD): Ditto.
6875 (IX86_BUILTIN_PCOMEQUQ): Ditto.
6876 (IX86_BUILTIN_PCOMNEUQ): Ditto.
6877 (IX86_BUILTIN_PCOMLTUQ): Ditto.
6878 (IX86_BUILTIN_PCOMLEUQ): Ditto.
6879 (IX86_BUILTIN_PCOMGTUQ): Ditto.
6880 (IX86_BUILTIN_PCOMGEUQ): Ditto.
6881 (IX86_BUILTIN_PCOMFALSEUQ): Ditto.
6882 (IX86_BUILTIN_PCOMTRUEUQ): Ditto.
6883 (IX86_BUILTIN_PCOMEQB): Ditto.
6884 (IX86_BUILTIN_PCOMNEB): Ditto.
6885 (IX86_BUILTIN_PCOMLTB): Ditto.
6886 (IX86_BUILTIN_PCOMLEB): Ditto.
6887 (IX86_BUILTIN_PCOMGTB): Ditto.
6888 (IX86_BUILTIN_PCOMGEB): Ditto.
6889 (IX86_BUILTIN_PCOMFALSEB): Ditto.
6890 (IX86_BUILTIN_PCOMTRUEB): Ditto.
6891 (IX86_BUILTIN_PCOMEQW): Ditto.
6892 (IX86_BUILTIN_PCOMNEW): Ditto.
6893 (IX86_BUILTIN_PCOMLTW): Ditto.
6894 (IX86_BUILTIN_PCOMLEW): Ditto.
6895 (IX86_BUILTIN_PCOMGTW): Ditto.
6896 (IX86_BUILTIN_PCOMGEW): Ditto.
6897 (IX86_BUILTIN_PCOMFALSEW): Ditto.
6898 (IX86_BUILTIN_PCOMTRUEW): Ditto.
6899 (IX86_BUILTIN_PCOMEQD): Ditto.
6900 (IX86_BUILTIN_PCOMNED): Ditto.
6901 (IX86_BUILTIN_PCOMLTD): Ditto.
6902 (IX86_BUILTIN_PCOMLED): Ditto.
6903 (IX86_BUILTIN_PCOMGTD): Ditto.
6904 (IX86_BUILTIN_PCOMGED): Ditto.
6905 (IX86_BUILTIN_PCOMFALSED): Ditto.
6906 (IX86_BUILTIN_PCOMTRUED): Ditto.
6907 (IX86_BUILTIN_PCOMEQQ): Ditto.
6908 (IX86_BUILTIN_PCOMNEQ): Ditto.
6909 (IX86_BUILTIN_PCOMLTQ): Ditto.
6910 (IX86_BUILTIN_PCOMLEQ): Ditto.
6911 (IX86_BUILTIN_PCOMGTQ): Ditto.
6912 (IX86_BUILTIN_PCOMGEQ): Ditto.
6913 (IX86_BUILTIN_PCOMFALSEQ): Ditto.
6914 (IX86_BUILTIN_PCOMTRUEQ): Ditto.
6915 (enum multi_arg_type): New enum for describing the various SSE5
6916 intrinsic argument types.
6917 (bdesc_multi_arg): New table for SSE5 intrinsics.
6918 (ix86_init_mmx_sse_builtins): Add SSE5 intrinsic support.
6919 (ix86_expand_multi_arg_builtin): New function for creating SSE5
6920 intrinsics.
6921 (ix86_expand_builtin): Add SSE5 intrinsic support.
6922 (ix86_sse5_valid_op_p): New function to validate SSE5 3 and 4
6923 operand instructions.
6924 (ix86_expand_sse5_multiple_memory): New function to split the
6925 second memory reference from SSE5 instructions.
6926 (type_has_variadic_args_p): Delete in favor of stdarg_p.
6927 (ix86_return_pops_args): Use stdarg_p to determine if the function
6928 has variable arguments.
6929 (ix86_setup_incoming_varargs): Ditto.
6930 (x86_this_parameter): Ditto.
6931
6932 * config/i386/i386-protos.h (ix86_expand_sse5_unpack): Add
6933 declaration.
6934 (ix86_expand_sse5_pack): Ditto.
6935 (ix86_sse5_valid_op_p): Ditto.
6936 (ix86_expand_sse5_multiple_memory): Ditto.
6937
6938 * config/i386/i386.md (UNSPEC_SSE5_INTRINSIC): Add new UNSPEC
6939 constant for SSE5 support.
6940 (UNSPEC_SSE5_UNSIGNED_CMP): Ditto.
6941 (UNSPEC_SSE5_TRUEFALSE): Ditto.
6942 (UNSPEC_SSE5_PERMUTE): Ditto.
6943 (UNSPEC_SSE5_ASHIFT): Ditto.
6944 (UNSPEC_SSE5_LSHIFT): Ditto.
6945 (UNSPEC_FRCZ): Ditto.
6946 (UNSPEC_CVTPH2PS): Ditto.
6947 (UNSPEC_CVTPS2PH): Ditto.
6948 (PCOM_FALSE): Add new constant for true/false SSE5 comparisons.
6949 (PCOM_TRUE): Ditto.
6950 (COM_FALSE_S): Ditto.
6951 (COM_FALSE_P): Ditto.
6952 (COM_TRUE_S): Ditto.
6953 (COM_TRUE_P): Ditto.
6954 (type attribute): Add ssemuladd, sseiadd1, ssecvt1, sse4arg types.
6955 (unit attribute): Add support for ssemuladd, ssecvt1, sseiadd1 sse4arg
6956 types.
6957 (memory attribute): Ditto.
6958 (sse4_1_round<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
6959 Use SSE4_1_ROUND_* constants instead of hard coded numbers.
6960 (rint<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
6961 (floor<mode>2): Ditto.
6962 (ceil<mode>2): Ditto.
6963 (btrunc<mode>2): Ditto.
6964 (nearbyintdf2): Ditto.
6965 (nearbyintsf2): Ditto.
6966 (sse_setccsf): Disable if SSE5.
6967 (sse_setccdf): Ditto.
6968 (sse5_setcc<mode>): New support for SSE5 conditional move.
6969 (sse5_pcmov_<mode>): Ditto.
6970
6971 * config/i386/sse.md (SSEMODE1248): New mode iterator for SSE5.
6972 (SSEMODEF4): Ditto.
6973 (SSEMODEF2P): Ditto.
6974 (ssemodesuffixf4): New mode attribute for SSE5.
6975 (ssemodesuffixf2s): Ditto.
6976 (ssemodesuffixf2c): Ditto.
6977 (sserotatemax): Ditto.
6978 (ssescalarmode): Ditto.
6979 (sse_maskcmpv4sf3): Disable if SSE5.
6980 (sse_maskcmpv2df3): Ditto.
6981 (sse_vmmaskcmpv4sf3): Ditto.
6982 (sse5_fmadd<mode>4): Add SSE5 floating point multiply/add instructions.
6983 (sse5_vmfmadd<mode>4): Ditto.
6984 (sse5_fmsub<mode>4): Ditto.
6985 (sse5_vmfmsub<mode>4): Ditto.
6986 (sse5_fnmadd<mode>4): Ditto.
6987 (sse5_vmfnmadd<mode>4): Ditto.
6988 (sse5_fnmsub<mode>4): Ditto.
6989 (sse5_vmfnmsub<mode>4): Ditto.
6990 (sse5i_fmadd<mode>4): Ditto.
6991 (sse5i_fmsub<mode>4): Ditto.
6992 (sse5i_fnmadd<mode>4): Ditto.
6993 (sse5i_fnmsub<mode>4): Ditto.
6994 (sse5i_vmfmadd<mode>4): Ditto.
6995 (sse5i_vmfmsub<mode>4): Ditto.
6996 (sse5i_vmfnmadd<mode>4): Ditto.
6997 (sse5i_vmfnmsub<mode>4): Ditto.
6998 (mulv16qi3): Add SSE5 support.
6999 (mulv4si3): Ditto.
7000 (sse5_mulv4si3): New insn for 32-bit multiply support on SSE5.
7001 (sse2_mulv4si3): Disable if SSE5.
7002 (sse4_1_roundpd): Use TARGET_ROUND instead of TARGET_SSE4_1.
7003 (sse4_1_roundps): Ditto.
7004 (sse4_1_roundsd): Ditto.
7005 (sse4_1_roundss): Ditto.
7006 (sse_maskcmpv4sf3): Disable if SSE5 so the SSE5 instruction will
7007 be generated.
7008 (sse_maskcmpsf3): Ditto.
7009 (sse_vmmaskcmpv4sf3): Ditto.
7010 (sse2_maskcmpv2df3): Ditto.
7011 (sse2_maskcmpdf3): Ditto.
7012 (sse2_vmmaskcmpv2df3): Ditto.
7013 (sse2_eq<mode>3): Ditto.
7014 (sse2_gt<mode>3): Ditto.
7015 (sse5_pcmov_<mode>): Add SSE5 support.
7016 (vec_unpacku_hi_v16qi): Ditto.
7017 (vec_unpacks_hi_v16qi): Ditto.
7018 (vec_unpacku_lo_v16qi): Ditto.
7019 (vec_unpacks_lo_v16qi): Ditto.
7020 (vec_unpacku_hi_v8hi): Ditto.
7021 (vec_unpacks_hi_v8hi): Ditto.
7022 (vec_unpacku_lo_v8hi): Ditto.
7023 (vec_unpacks_lo_v8hi): Ditto.
7024 (vec_unpacku_hi_v4si): Ditto.
7025 (vec_unpacks_hi_v4si): Ditto.
7026 (vec_unpacku_lo_v4si): Ditto.
7027 (vec_unpacks_lo_v4si): Ditto.
7028 (sse5_pmacsww): New SSE5 intrinsic insn.
7029 (sse5_pmacssww): Ditto.
7030 (sse5_pmacsdd): Ditto.
7031 (sse5_pmacssdd): Ditto.
7032 (sse5_pmacssdql): Ditto.
7033 (sse5_pmacssdqh): Ditto.
7034 (sse5_pmacsdqh): Ditto.
7035 (sse5_pmacsswd): Ditto.
7036 (sse5_pmacswd): Ditto.
7037 (sse5_pmadcsswd): Ditto.
7038 (sse5_pmadcswd): Ditto.
7039 (sse5_pcmov_<move>): Conditional move support on SSE5.
7040 (sse5_phaddbw): New SSE5 intrinsic insn.
7041 (sse5_phaddbd): Ditto.
7042 (sse5_phaddbq): Ditto.
7043 (sse5_phaddwd): Ditto.
7044 (sse5_phaddwq): Ditto.
7045 (sse5_phadddq): Ditto.
7046 (sse5_phaddubw): Ditto.
7047 (sse5_phaddubd): Ditto.
7048 (sse5_phaddubq): Ditto.
7049 (sse5_phadduwd): Ditto.
7050 (sse5_phadduwq): Ditto.
7051 (sse5_phaddudq): Ditto.
7052 (sse5_phsubbw): Ditto.
7053 (sse5_phsubwd): Ditto.
7054 (sse5_phsubdq): Ditto.
7055 (sse5_pperm): Ditto.
7056 (sse5_pperm_sign_v16qi_v8hi): New insns for pack/unpack with SSE5.
7057 (sse5_pperm_zero_v16qi_v8hi): Ditto.
7058 (sse5_pperm_sign_v8hi_v4si): Ditto.
7059 (sse5_pperm_zero_v8hi_v4si): Ditto.
7060 (sse5_pperm_sign_v4si_v2di): Ditto.
7061 (sse5_pperm_sign_v4si_v2di): Ditto.
7062 (sse5_pperm_pack_v2di_v4si): Ditto.
7063 (sse5_pperm_pack_v4si_v8hi): Ditto.
7064 (sse5_pperm_pack_v8hi_v16qi): Ditto.
7065 (sse5_perm<mode>): New SSE5 intrinsic insn.
7066 (rotl<mode>3): Ditto.
7067 (sse5_rotl<mode>3): Ditto.
7068 (sse5_ashl<mode>3): Ditto.
7069 (sse5_lshl<mode>3): Ditto.
7070 (sse5_frcz<mode>2): Ditto.
7071 (sse5s_frcz<mode>2): Ditto.
7072 (sse5_cvtph2ps): Ditto.
7073 (sse5_cvtps2ph): Ditto.
7074 (sse5_vmmaskcmp<mode>3): Ditto.
7075 (sse5_com_tf<mode>3): Ditto.
7076 (sse5_maskcmp<mode>3): Ditto.
7077 (sse5_maskcmp_uns<mode>3): Ditto.
7078 (sse5_maskcmp_uns2<mode>3): Ditto.
7079 (sse5_pcom_tf<mode>3): Ditto.
7080
7081 * config/i386/predicates.md (sse5_comparison_float_operator):
7082 New predicate to match the comparison operators supported by
7083 the SSE5 com instruction.
7084 (ix86_comparison_int_operator): New predicate to match just the
7085 signed int comparisons.
7086 (ix86_comparison_uns_operator): New predicate to match just the
7087 unsigned int comparisons.
7088
7089 * doc/invoke.texi (-msse5): Add documentation.
7090 (-mfused-madd): Ditto.
7091
7092 * doc/extend.texi (x86 intrinsics): Document new SSE5 intrinsics.
7093
7094 * config.gcc (i[34567]86-*-*): Include bmmintrin.h and
7095 mmintrin-common.h.
7096 (x86_64-*-*): Ditto.
7097
7098 * config/i386/cpuid.h (bit_SSE5): Define SSE5 bit.
7099
7100 * config/i386/bmmintrin.h: New file, provide common x86 compiler
7101 intrinisics for SSE5.
7102
7103 * config/i386/smmintrin.h: Move instructions shared with SSE5 to
7104 mmintrin-common.h.
7105
7106 * config/i386/mmintrin-common.h: New file, to contain common
7107 instructions between SSE4.1 and SSE5.
7108
7109 * config/i386/netware.c (gen_stdcall_or_fastcall_decoration): Use
7110 FOREACH_FUNCTION_ARGS to iterate over the argument list.
7111 (gen_regparm_prefix): Ditto.
7112
7113 * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix): Use
7114 FOREACH_FUNCTION_ARGS to iterate over the argument list. Use
7115 prototype_p to determine if a function is prototyped.
7116
7117 2009-08-25 Ville Voutilainen <ville.voutilainen@gmail.com>
7118
7119 * c-common.c (c_common_reswords) add the alignof keyword,
7120 with same RID as __alignof and __alignof__
7121
7122 2009-08-25 Anatoly Sokolov <aesok@post.ru>
7123
7124 * hooks.h (hook_bool_const_int_const_int_true): Declare.
7125 * hooks.c (hook_bool_const_int_const_int_true): New function.
7126 * target.h (struct gcc_target): Add can_eliminate field.
7127 * target-def.h (TARGET_CAN_ELIMINATE): Define.
7128 (TARGET_INITIALIZER): Use TARGET_CAN_ELIMINATE.
7129 * ira.c (setup_eliminable_regset): Use can_eliminate target hook.
7130 * reload1.c (update_eliminables, init_elim_table): (Ditto.).
7131 (elim_table): Revise comment.
7132 * system.h (CAN_ELIMINATE): Poison.
7133 * defaults.h (CAN_ELIMINATE): Remove.
7134 * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
7135
7136 * config/alpha/vms.h (CAN_ELIMINATE): Remove macro.
7137 * config/alpha/alpha.c (TARGET_CAN_ELIMINATE) [TARGET_ABI_OPEN_VMS]:
7138 Define macro.
7139 (alpha_vms_can_eliminate): Declare as static, change return type to
7140 bool.
7141 * config/alpha/alpha-protos.h (alpha_vms_can_eliminate): Remove.
7142
7143 * config/arm/arm.h (CAN_ELIMINATE): Remove macro.
7144 * config/arm/arm.c (TARGET_CAN_ELIMINATE): Define macro.
7145 (arm_can_eliminate): New function.
7146
7147 * config/avr/avr.h (CAN_ELIMINATE): Remove macro.
7148 * config/avr/avr.c (TARGET_CAN_ELIMINATE): Define macro.
7149 (avr_can_eliminate): Declare as static.
7150 * config/avr/avr-protos.h (avr_can_eliminate): Remove.
7151
7152 * config/bfin/bfin.h (CAN_ELIMINATE): Remove macro.
7153 * config/bfin/bfin.c (TARGET_CAN_ELIMINATE): Define macro.
7154 (bfin_can_eliminate): New function.
7155
7156 * config/crx/crx.h (CAN_ELIMINATE): Remove macro.
7157 * config/crx/crx.c (TARGET_CAN_ELIMINATE): Define macro.
7158 (crx_can_eliminate): New function.
7159
7160 * config/fr30/fr30.h (CAN_ELIMINATE): Remove macro.
7161 * config/fr30/fr30.c (TARGET_CAN_ELIMINATE): Define macro.
7162 (fr30_can_eliminate): New function.
7163
7164 * config/frv/frv.h (CAN_ELIMINATE): Remove macro.
7165 * config/frv/frv.c (TARGET_CAN_ELIMINATE): Define macro.
7166 (frv_can_eliminate): New function.
7167
7168 * config/h8300/h8300.h (CAN_ELIMINATE): Remove macro.
7169 * config/h8300/h8300.c (TARGET_CAN_ELIMINATE): Define macro.
7170 (h8300_can_eliminate): New function.
7171
7172 * config/i386/i386.h (CAN_ELIMINATE): Remove macro.
7173 * config/i386/i386.c (TARGET_CAN_ELIMINATE): Define macro.
7174 (i386_can_eliminate): Declare as static, change return type to bool.
7175 * config/i386/i386-protos.h (i386_can_eliminate): Remove.
7176
7177 * config/ia64/ia64.h (CAN_ELIMINATE): Remove macro.
7178 * config/ia64/ia64.c (TARGET_CAN_ELIMINATE): Define macro.
7179 (ia64_can_eliminate): New function.
7180
7181 * config/iq2000/iq2000.h (CAN_ELIMINATE): Remove macro.
7182 * config/iq2000/iq2000.c (TARGET_CAN_ELIMINATE): Define macro.
7183 (iq2000_can_eliminate): New function.
7184
7185 * config/m32r/m32r.h (CAN_ELIMINATE): Remove macro.
7186 * config/m32r/m32r.c (TARGET_CAN_ELIMINATE): Define macro.
7187 (m32r_can_eliminate): New function.
7188
7189 * config/m68hc11/m68hc11.h (CAN_ELIMINATE): Remove macro.
7190 * config/m68hc11/m68hc11.c (TARGET_CAN_ELIMINATE): Define macro.
7191 (m68hc11_can_eliminate): New function.
7192
7193 * config/m68k/m68k.h (CAN_ELIMINATE): Remove macro.
7194 * config/m68k/m68k.c (TARGET_CAN_ELIMINATE): Define macro.
7195 (m68k_can_eliminate): New function.
7196
7197 * config/mep/mep.h (CAN_ELIMINATE): Remove macro.
7198 * config/mep/mep.c (TARGET_CAN_ELIMINATE): Define macro.
7199 (mep_can_eliminate): New function.
7200
7201 * config/mips/mips.h (CAN_ELIMINATE): Remove macro.
7202 * config/mips/mips.c (TARGET_CAN_ELIMINATE): Define macro.
7203 (mips_can_eliminate): New function.
7204
7205 * config/rs6000/rs6000.h (CAN_ELIMINATE): Remove macro.
7206 * config/rs6000/rs6000.c (TARGET_CAN_ELIMINATE): Define macro.
7207 (rs6000_can_eliminate): New function.
7208
7209 * config/s390/s390.h (CAN_ELIMINATE): Remove macro.
7210 * config/s390/s390.c (TARGET_CAN_ELIMINATE): Define macro.
7211 (s390_can_eliminate): Declare as static.
7212 * config/s390/s390-protos.h (sparc_can_eliminate): Remove.
7213
7214 * config/score/score.h (CAN_ELIMINATE): Remove macro.
7215 * config/score/score.c (TARGET_CAN_ELIMINATE): Define macro.
7216 (score_can_eliminate): New function.
7217
7218 * config/sparc/sparc.h (CAN_ELIMINATE): Remove macro.
7219 * config/sparc/sparc.c (TARGET_CAN_ELIMINATE): Define macro.
7220 (sparc_can_eliminate): Declare as static.
7221 * config/sparc/sparc-protos.h (sparc_can_eliminate): Remove.
7222
7223 * config/stormy16/stormy16.h (CAN_ELIMINATE): Remove macro.
7224 * config/stormy16/stormy16.c (TARGET_CAN_ELIMINATE): Define macro.
7225 (xstormy16_can_eliminate): New function.
7226
7227 * config/v850/v850.h (CAN_ELIMINATE): Remove macro.
7228 * config/v850/v850.c (TARGET_CAN_ELIMINATE): Define macro.
7229 (v850_can_eliminate): New function.
7230
7231 2009-08-25 Uros Bizjak <ubizjak@gmail.com>
7232
7233 * config/alpha/alpha.md (*cmpdf_ieee_ext[123]): Remove.
7234 (*cmpdf_internal): Enable for all ALPHA_FPTM levels.
7235 (*movdfcc_ext[1234]): Disable for IEEE mode.
7236
7237 2009-08-25 Eric Botcazou <ebotcazou@adacore.com>
7238
7239 * gimplify.c (prepare_gimple_addressable): New static function.
7240 (gimplify_modify_expr_to_memcpy): Invoke it on the RHS before marking
7241 it addressable.
7242 (gimplify_addr_expr): Invoke it similarly on the operand instead of
7243 manually fiddling with it.
7244
7245 2009-08-25 Michael Matz <matz@suse.de>
7246
7247 * expr.h (jumpifnot_1, jumpif_1, do_jump_1): Declare.
7248 * dojump.c (do_jump_by_parts_greater): Take two operands instead of
7249 full expression.
7250 (do_jump_by_parts_equality, do_compare_and_jump): Ditto.
7251 (jumpifnot_1, jumpif_1): New wrappers for do_jump_1.
7252 (do_jump): Split out code for simple binary comparisons into ...
7253 (do_jump_1): ... this, taking the individual operands and code.
7254 Change callers to helper function above accordingly.
7255 * expr.c (expand_expr_real_1): Use jumpifnot_1 for simple binary
7256 comparisons.
7257
7258 2009-08-25 Michael Matz <matz@suse.de>
7259
7260 * expr.h (struct separate_ops, sepops): New type for passing
7261 around an exploded simple expression.
7262 * optabs.c (expand_widen_pattern_expr, expand_vec_shift_expr):
7263 Use this structure instead of expression tree.
7264 (get_vcond_icode, expand_vec_cond_expr_p): Don't take whole
7265 expression, only its type.
7266 (expand_vec_cond_expr): Take type and individual operands instead
7267 of full expression.
7268 * optabs.h (expand_widen_pattern_expr, expand_vec_cond_expr,
7269 expand_vec_shift_expr): Change prototype accordingly.
7270 * tree-vect-stmts.c (vectorizable_condition): Change call of
7271 expand_vec_cond_expr_p to pass only type.
7272 * expr.c (do_store_flags): Change prototype and implementation
7273 to take an exploded expression.
7274 (expand_expr_real_1): New local ops initialized with details
7275 of the full expression. Use it instead of full
7276 expression in calls to do_store_flags, expand_vec_cond_expr,
7277 expand_widen_pattern_expr and expand_vec_shift_expr.
7278
7279 2009-08-25 Michael Matz <matz@suse.de>
7280
7281 * expr.c (expand_expr_real_1): New local treeop0, treeop1,
7282 treeop2 initialized with first three operands of the full expression.
7283 Substitute all TREE_OPERAND (exp, [012]) calls with them.
7284
7285 2009-08-25 Kai Tietz <kai.tietz@onevision.com>
7286
7287 * gcc/gthr-win32.h (__UNUSED_PARAM): Define, if not already present.
7288 (__gthread_objc_condition_allocate): Mark arguments as unused.
7289 (__gthread_objc_condition_deallocate): Likewise.
7290 (__gthread_objc_condition_wait): Likewise.
7291 (__gthread_objc_condition_broadcast): Likewise.
7292 (__gthread_objc_condition_signal): Likewise.
7293 (__gthread_objc_thread_detach): Cast via INT_PTR to pointer.
7294 (__gthread_objc_thread_id): Likewise.
7295
7296 2009-08-25 Janus Weil <janus@gcc.gnu.org>
7297
7298 PR middle-end/41149
7299 * tree-pretty-print.c (print_call_name): Print the correct call name
7300 for procedure pointer components.
7301
7302 2009-08-24 Steve Ellcey <sje@cup.hp.com>
7303
7304 * config/ia64/ia64.c (ia64_promote_function_mode): Call
7305 default_promote_function_mode when not VMS.
7306
7307 2009-08-24 Olivier Hainque <hainque@adacore.com>
7308
7309 * convert.c (convert_to_integer): Don't assume an input pointer is
7310 POINTER_SIZE wide. Fetch from the type instead.
7311
7312 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7313
7314 * configure.ac (AC_PREREQ): Bump to 2.64.
7315
7316 2009-08-24 Rafael Avila de Espindola <espindola@google.com>
7317
7318 * gcc.c (standard_exec_prefix_1,standard_exec_prefix_2): Remove.
7319 (process_command): Don't search standard_exec_prefix_1 and
7320 standard_exec_prefix_2.
7321
7322 2009-08-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7323
7324 * config/arm/arm.c (output_return_instruction): Handle for
7325 unified syntax.
7326
7327 2009-08-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7328
7329 * config/arm/arm.c (arm_select_cc_mode): Handle subreg.
7330
7331 2009-08-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7332
7333 * config/arm/vfp.md (*arm_movdi_vfp): Mark as predicable.
7334 (*arm_movdf_vfp): Likewise.
7335
7336 2009-08-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7337
7338 * config/arm/neon.md (vashl<mode>3): Rename from ashl<mode>3.
7339 (vashr<mode>3): Rename from ashr<mode>3.
7340 (vlshr<mode>3): Rename from lshr<mode>3.
7341
7342 2009-08-24 Kai Tietz <kai.tietz@onevision.com>
7343
7344 PR/40786
7345 * c-format.c (format_wanted_type): Add new member scalar_identity_flag.
7346 (check_format_info_main): Use scalar_identify_flag.
7347 (check_format_types): Check for scalar size identity if
7348 scalar_identify_flag is set.
7349 (printf_length_specs): Extend by new field.
7350 (asm_fprintf_length_specs): Likewise.
7351 (gcc_diag_length_specs): Likewise.
7352 (scanf_length_specs): Likewise.
7353 (strfmon_length_specs): Likewise.
7354 (gcc_gfc_length_specs): Likewise.
7355 * config/i386/msformat-c.c (ms_printf_length_specs): Likewise.
7356 (ms_printf_flag_specs): Likewise.
7357 * c-format.h (format_length_info): Add new member scalar_identity_flag.
7358
7359 2009-08-23 Uros Bizjak <ubizjak@gmail.com>
7360
7361 PR target/40718
7362 * config/i386/i386.c (*call_pop_1): Disable for sibling calls.
7363 (*call_value_pop_1): Ditto.
7364 (*sibcall_pop_1): New insn pattern.
7365 (*sibcall_value_pop_1): Ditto.
7366
7367 2009-08-23 Alan Modra <amodra@bigpond.net.au>
7368
7369 PR target/41081
7370 * config/rs6000/rs6000.md (rotlsi3_64, ashlsi3_64, lshrsi3_64,
7371 ashrsi3_64): New.
7372
7373 2009-08-23 Alan Modra <amodra@bigpond.net.au>
7374
7375 PR target/41081
7376 * fwprop.c (try_fwprop_subst): Allow multiple sets.
7377 (get_reg_use_in): New function.
7378 (forward_propagate_subreg): Propagate through subreg of zero_extend
7379 or sign_extend.
7380
7381 2009-08-22 Kaz Kojima <kkojima@gcc.gnu.org>
7382
7383 * config/sh/t-sh (TARGET_LIBGCC2_CFLAGS): Define.
7384 * config/sh/t-netbsd (TARGET_LIBGCC2_CFLAGS): Add -mieee.
7385
7386 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7387
7388 * configure.ac: Remove --with-datarootdir, --with-docdir,
7389 --with-htmldir switches. No need to call AC_SUBST for
7390 datarootdir, docdir, htmldir any more.
7391 * configure: Regenerate.
7392 * doc/install.texi (Configuration): Document --datarootdir,
7393 --docdir, --htmldir, --pdfdir; update documentation for
7394 --infodir, --mandir.
7395 (Prerequisites): Bump Autoconf version to 2.64, Automake to 1.11,
7396 M4 to 1.4.6.
7397
7398 * aclocal.m4: Regenerate.
7399 * config.in: Regenerate.
7400 * configure: Regenerate.
7401
7402 2009-08-21 Douglas B Rupp <rupp@gnat.com>
7403 Olivier Hainque <hainque@adacore.com>
7404
7405 * config/ia64/ia64.c: Include libfuncs.h.
7406 (TARGET_PROMOTE_FUNCITON_MODE): Define target macro.
7407 (ia64_expand_call): Use reg 25 on VMS.
7408 (ia64_initialize_trampoline): Fix for VMS ABI.
7409 (ia64_function_arg_offset): Always returns 0 when TARGET_ABI_OPEN_VMS.
7410 (ia64_function_arg): Initialize reg 25 on VMS.
7411 Fix OpenVMS ABI issues for varargs.
7412 For OpenVMS, emit the Argument Information register set in the
7413 incoming/sibcall case as well.
7414 (ia64_arg_type): New function.
7415 (ia64_function_arg_advance): Keep track of cum->words.
7416 Fix OpenVMS ABI issues for varargs.
7417 (ia64_function_value): On VMS, promote mode of non-aggregate types.
7418 (ia64_override_options): Set flag_no_common on VMS.
7419 (ia64_init_builtins): Disable FWRITE builtin.
7420 (ia64_asm_output_external): Call DO_CRTL_NAMES.
7421 (ia64_vms_init_libfuncs): Add decc$ routines.
7422 (ia64_vms_valid_pointer_mode): New function.
7423 (ia64_struct_value_rtx): Allways NULL_RTX on VMS.
7424 (ia64_promote_function_mode): New function
7425 * config/ia64/ia64.h (TARGET_ABI_OPEN_VMS): Define as 0 for default.
7426 (LONG_DOUBLE_TYPE_SIZE): Force to 64 on VMS.
7427 (LIBCGC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
7428 (INIT_CUMULATIVE_ARGS): Add atypes for VMS.
7429 (INIT_CUMULATIVE_INCOMING_ARGS): Likewise.
7430 (ASM_OUTPUT_DEF): Use ISDIGIT instead of isdigit.
7431 Suppress trailing '#' if VALUE is numeric.
7432 * config/ia64/vms.h (PROMOTE_FUNCTION_MODE): Remove, code moved to
7433 ia64_promote_function_mode.
7434 (TARGET_VALID_POINTER_MODE): Define.
7435
7436 2009-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
7437
7438 PR target/40671
7439 * config/rs6000/rs6000.c (rs6000_override_options): Use
7440 TARGET_64BIT instead of TARGET_POWERPC64 to set the size of pointers.
7441
7442 PR target/41145
7443 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Fix
7444 reporting of vector + decimal/boolean/complex error.
7445
7446 2009-08-21 Jakub Jelinek <jakub@redhat.com>
7447
7448 * config/rs6000/rs6000.c (rs6000_init_builtins): Fix type of
7449 __vector double TYPE_DECL.
7450
7451 2009-08-21 Richard Earnshaw <rearnsha@arm.com>
7452
7453 * arm.h (MACHMODE): New define. Include insn-modes.h if available.
7454 (CUMULATIVE_ARGS): Use MACHMODE for declaration of aapcs_vfp_mode.
7455 * arm.c (aapcs_vfp_is_call_or_return_candidate): Change base_mode
7456 to pointer to enum machine_mode. Update all callers as needed.
7457
7458 2009-08-21 Uros Bizjak <ubizjak@gmail.com>
7459
7460 * config/alpha/alpha.md (exception_receiver): Emit alternative
7461 GP load sequence if flag_reorder_blocks_and_partition is set.
7462 (*exception_receiver_2): Also enable when
7463 flag_reorder_blocks_and_partition is set.
7464
7465 2009-08-20 Matt Rice <ratmice@gmail.com>
7466 Diego Novillo <dnovillo@google.com>
7467
7468 * Makefile.in (PLUGIN_HEADERS): Include incpath.h and
7469 tree-ssa-sccvn.h.
7470
7471 2009-08-20 Richard Guenther <rguenther@suse.de>
7472
7473 * c-objc-common.h (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Do not define.
7474 * c-tree.h (c_dup_lang_specific_decl): Remove.
7475 (struct lang_decl, struct lang_type): Move definitions ...
7476 * c-lang.h: ... here. New file.
7477 * c-decl.c: Include c-lang.h.
7478 (c_dup_lang_specific_decl): Remove.
7479 * c-typeck.c: Include c-lang.h.
7480 * Makefile.in (c-decl.o): Add c-lang.h dependency.
7481 (c-typeck.o): Likewise.
7482 * c-config-lang.in (gtfiles): Add c-lang.h.
7483 * gengtype.c (get_output_file_with_visibility): Handle c-lang.h
7484 like c-tree.h.
7485
7486 2009-08-20 Uros Bizjak <ubizjak@gmail.com>
7487
7488 * config/alpha/alpha.c (alpha_end_function): Do not clear
7489 crtl->emit structure and free insn locators if cfun->is_thunk is true,
7490 this is now handled in generic code.
7491
7492 2009-08-20 Andreas Krebbel <krebbel1@de.ibm.com>
7493
7494 * config/s390/s390.c (Z10_PREDICT_DISTANCE): New macro.
7495 (s390_z10_fix_long_loop_prediction): New function.
7496 (s390_z10_optimize_cmp): INSN walk moved to callee - s390_reorg.
7497 (s390_reorg): Walk over the INSNs and invoke
7498 s390_z10_fix_long_loop_prediction and s390_z10_optimize_cmp.
7499
7500 2009-08-20 Andreas Krebbel <krebbel1@de.ibm.com>
7501
7502 * config/s390/s390.md ("*brx_stage1_<GPR:mode>", "*brxg_64bit",
7503 "*brx_64bit", "*brx_31bit"): New patterns.
7504 * config/s390/s390.c ('E'): New output modifier.
7505
7506 2009-08-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7507 Richard Earnshaw <richard.earnshaw@arm.com>
7508
7509 * config/arm/arm.c (arm_emit_movpair): Handle CONST_INT.
7510 * config/arm/arm.md (*arm_movtas_ze): New pattern for movt.
7511
7512 2009-08-19 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7513
7514 * pa.md (reload_inhi, reload_outhi, reload_inqi, reload_outqi): New
7515 patterns.
7516 * pa.c (emit_move_sequence): Check if address of operand1 is valid
7517 for mode mode of operand0 when doing secondary reload for SAR.
7518
7519 2009-08-19 Jakub Jelinek <jakub@redhat.com>
7520
7521 PR middle-end/41123
7522 * expr.c (expand_expr_real_1) <normal_inner_ref>: Handle all kinds
7523 of CONCAT, not just bitpos 0 bitsize size of the whole CONCAT.
7524
7525 2009-08-19 Jason Merrill <jason@redhat.com>
7526
7527 * doc/invoke.texi (C++ Dialect Options): Note change of minimum
7528 supported template depth in C++0x.
7529
7530 2009-08-19 Jakub Jelinek <jakub@redhat.com>
7531
7532 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Don't call
7533 free_after_compilation.
7534 * config/score/score7.c (score7_output_mi_thunk): Likewise.
7535 * config/score/score3.c (score3_output_mi_thunk): Likewise.
7536 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
7537 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
7538 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
7539 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
7540 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
7541
7542 2009-08-19 Ian Lance Taylor <iant@google.com>
7543
7544 * doc/md.texi (Insn Canonicalizations): Correct canonicalization
7545 of (plus (mult (neg B) C) A).
7546
7547 2009-08-18 Michael Matz <matz@suse.de>
7548
7549 * omp-low.c (optimize_omp_library_calls): Use types_compatible_p
7550 instead of comparing TYPE_MAIN_VARIANT for equality.
7551 * tree-vect-patterns.c (vect_recog_dot_prod_pattern,
7552 vect_recog_widen_mult_pattern, vect_recog_widen_sum_pattern): Ditto.
7553 * tree-vect-loop.c (vect_is_simple_reduction): Ditto.
7554 * gimplify.c (goa_lhs_expr_p): Ditto and use
7555 STRIP_USELESS_TYPE_CONVERSION.
7556
7557 2009-08-18 Michael Matz <matz@suse.de>
7558
7559 * tree-ssa-structalias.c (create_variable_info_for): Also mark
7560 first field in a struct.
7561 (intra_create_variable_infos): Don't deal with flag_argument_noalias.
7562
7563 2009-08-18 Uros Bizjak <ubizjak@gmail.com>
7564
7565 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn
7566 locators before emit_insn is called. Remove assert that
7567 cfun->is_thunk.
7568 (alpha_end_function): Clear crtl->emit structure and free insn
7569 locators if cfun->is_thunk is true.
7570
7571 2009-08-18 Jason Merrill <jason@redhat.com>
7572
7573 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
7574 type if available.
7575 * configure.ac: Test for it.
7576 * configure, config.in: Regenerate.
7577 * doc/install.texi: Document --enable-gnu-unique-object.
7578
7579 2009-08-18 Richard Guenther <rguenther@suse.de>
7580
7581 PR middle-end/41094
7582 * builtins.c (fold_builtin_pow): Fold pow(pow(x,y),z) to
7583 pow(x,y*z) only if x is nonnegative.
7584
7585 2009-08-18 Jakub Jelinek <jakub@redhat.com>
7586
7587 * bb-reorder.c (fix_up_fall_thru_edges): Only call invert_jump
7588 on jumps.
7589
7590 PR target/40971
7591 * config/rs6000/rs6000.c (rs6000_legitimize_address): For
7592 [DT][FDI]mode ensure the offset isn't 4/8/12 bytes below 0x8000.
7593
7594 2009-08-17 DJ Delorie <dj@redhat.com>
7595
7596 * config/m32c/m32c.md (UNS_FSETB, UNS_FREIT): New.
7597 * config/m32c/prologue.md (epilogue_freit): New.
7598 (fset_b): New.
7599 * config/m32c/m32c.c (m32c_function_needs_enter): Add prototype.
7600 (bank_switch_p): Likewise.
7601 (fast_interrupt_p): Likewise.
7602 (interrupt_p): Likewise.
7603 (m32c_conditional_register_usage): Round memregs size up.
7604 (need_to_save): We only need to save $a0 when we use ENTER.
7605 (interrupt_p): Check for fast_interrupt too.
7606 (bank_switch_p): New.
7607 (fast_interrupt_p): New.
7608 (m32c_attribute_table): Add bank_switch and fast_interrupt.
7609 (m32c_emit_prolog): Support bank switching and fast interrupts.
7610 * doc/extend.texi (Function Attributes): Add bank_switch and
7611 fast_interrupt.
7612
7613 2009-08-17 Douglas B Rupp <rupp@gnat.com>
7614
7615 * config/alpha/alpha.c (vms_valid_pointer_mode): New function.
7616 * config/alpha/vms.h (TARGET_VALID_POINTER_MODE): Define.
7617
7618 2009-08-16 Douglas B Rupp <rupp@gnat.com>
7619
7620 * doc/invoke.texi (Target options): Add new option list for IA-64/VMS.
7621 (menu): Add IA-64/VMS Options.
7622 (IA-64/VMS Options): Likewise.
7623
7624 2009-08-16 Richard Sandiford <rdsandiford@googlemail.com>
7625
7626 PR target/38599
7627 * config/mips/mips.md (*lwxs): Use :P for pointer values.
7628
7629 2009-08-16 Richard Sandiford <rdsandiford@googlemail.com>
7630
7631 * config/mips/mips-protos.h (mips_push_asm_switch): New function.
7632 (mips_pop_asm_switch): Likewise.
7633 * config/mips/mips.c (set_noreorder, set_nomacro, set_noat): Replace
7634 with...
7635 (mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
7636 (mips_push_asm_switch_1, mips_pop_asm_switch_1): New functions.
7637 (mips_push_asm_switch, mips_pop_asm_switch): Likewise.
7638 (mips_print_operand_punctuation): Use them. Check mips_noreorder
7639 instead of set_noreorder.
7640 (mips_output_function_prologue): Use the new functions.
7641 (mips_output_function_epilogue): Likewise.
7642 (mips_need_noat_wrapper_p): New function, split out from...
7643 (mips_final_prescan_insn, mips_final_postscan_insn): ...here.
7644 Use mips_push_asm_switch and mips_pop_asm_switch.
7645 * config/mips/mips.h (FUNCTION_PROFILER): Use mips_push_asm_switch
7646 and mips_pop_asm_switch.
7647 (ASM_OUTPUT_REG_POP): Likewise.
7648 (DBR_OUTPUT_SEQEND): Remove boilerplate comment.
7649 Use mips_pop_asm_switch.
7650 (mips_asm_switch): New structure.
7651 (set_noreorder, set_nomacro): Replace with...
7652 (mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
7653 * config/mips/mips.md (fix_truncdfsi2_macro): Use mips_nomacro
7654 instead of set_nomacro.
7655 (fix_truncsfsi2_macro): Likewise.
7656 (cprestore): Likewise.
7657 (hazard): Use mips_noreorder instead of set_noreorder.
7658 * config/mips/sdemtk.h (FUNCTION_PROFILER): As for mips.h.
7659
7660 2009-08-16 Uros Bizjak <ubizjak@gmail.com>
7661
7662 * config/alpha/alpha.c (alpha_end_function): Handle NULL_RTX returned
7663 from prev_active_insn.
7664
7665 2009-08-16 Anatoly Sokolov <aesok@post.ru>
7666
7667 * config/avr/avr.h (AVR_HAVE_8BIT_SP): New macros.
7668 * config/avr/avr.c (avr_override_options): Initialize
7669 avr_current_arch variable.
7670 (avr_cpu_cpp_builtins): Define __AVR_HAVE_8BIT_SP__ or
7671 __AVR_HAVE_16BIT_SP__ according to the device type.
7672 (expand_prologue, output_movhi): Use AVR_HAVE_8BIT_SP instead of
7673 TARGET_TINY_STACK.
7674 (expand_epilogue): Use correct QI mode frame pointer for tiny stack.
7675 Use AVR_HAVE_8BIT_SP instead of TARGET_TINY_STACK.
7676
7677 2009-08-16 Dodji Seketeli <dodji@redhat.com>
7678
7679 PR debug/37801
7680 * gcc/dwarf2out.c (gen_inlined_subroutine_die): Concentrate on
7681 generating inlined subroutine die only. We shouldn't be
7682 called for anything else.
7683 (gen_block_die): Don't generate inline subroutine debug info for
7684 abstract blocks.
7685
7686 2009-08-15 Sebastian Pop <sebastian.pop@amd.com>
7687
7688 * graphite-poly.c (print_pbb): Print PBB index.
7689
7690 2009-08-15 Sebastian Pop <sebastian.pop@amd.com>
7691
7692 PR middle-end/40981
7693 * graphite-interchange.c (ppl_max_for_le): Moved...
7694 * graphite-poly.c (pbb_number_of_iterations): Call ppl_max_for_le.
7695 * graphite-ppl.c (ppl_max_for_le): ... here. Correct the use of
7696 ppl_Pointset_Powerset_C_Polyhedron_maximize.
7697 * graphite-ppl.h (ppl_max_for_le): Declared.
7698
7699 2009-08-14 Olatunji Ruwase <tjruwase@google.com>
7700
7701 * doc/extend.texi (Symbol-Renaming Pragmas): redefine_extname is
7702 supported on all platforms.
7703 * target.h (struct gcc_target): Remove handle_pragma_redefine_extname.
7704 * c-cppbuiltin.c: Remove use of targetm.handle_pragma_redefine_extname.
7705 * c-pragma.c: Likewise.
7706 * target-def.h (TARGET_INITIALIZER): Remove
7707 TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
7708 * config/sol2.h: Remove use of TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
7709
7710 2009-08-14 Douglas B Rupp <rupp@gnat.com>
7711
7712 * config/ia64/fde-vms.c: New file.
7713 * config/ia64/fde-glibc.c (_Unwind_FindTableEntry): Add dummy arg.
7714 * config/ia64/unwind-ia64.c (UNW_ accessors): Move to unwind-ia64.h
7715 (MD_UNW_COMPATIBLE_PERSONALITY_P): Provide default.
7716 (uw_frame_state_for): Only register a personality routine if it is
7717 known to be compatible with our expectations.
7718 (_Unwind_FindEnclosingFunction, uw_frame_state_for):
7719 Declare unw_table_entry stack variable and
7720 mod all calls to _Unwind_FindTableEntry to add arg.
7721 * config/ia64/unwind-ia64.h (UNW_ accessors): Move here.
7722 (_Unwind_FindTableEntry): Add arg to prototype.
7723
7724 2009-08-14 Eric Botcazou <ebotcazou@adacore.com>
7725
7726 * config/ia64/unwind-ia64.c (struct _Unwind_Context): Add new
7727 field 'signal_pfs_loc'.
7728 (uw_frame_state_for): Remove duplicate code dealing with leaf
7729 procedures without unwind info.
7730 If in the frame after unwinding through a signal handler, restore
7731 the AR.PFS register instead of the CFM if AR.PFS has not been saved.
7732 * config/ia64/linux-unwind.h (ia64_fallback_frame_state): Do not set
7733 'pfs_loc' to the AR.PFS location in the signal context; instead
7734 set 'signal_pfs_loc'.
7735 Manually generate the unwind info for the AR.PFS register.
7736 (ABI_MARKER_OLD_LINUX_SIGTRAMP, ABI_MARKER_OLD_LINUX_INTERRUPT,
7737 ABI_MARKER_LINUX_SIGTRAMP, ABI_MARKER_LINUX_INTERRUPT): Define.
7738 (ia64_handle_unwabi): Test 'fs->unwabi' against them.
7739 Do not set 'pfs_loc' to the AR.PFS location in the signal context;
7740 instead set 'signal_pfs_loc'.
7741 Remove code preventing the AR.PFS register from being restored
7742 from the signal context.
7743
7744 2009-08-14 Douglas B Rupp <rupp@gnat.com>
7745 Tristan Gingold <gingold@adacore.com>
7746
7747 * config.gcc (ia64-hp-*vms*): Insert ia64/t-ia64 in tmake_file.
7748 * config/ia64/t-vms: New file.
7749 * config/ia64/vms64.h: New file.
7750 * config/ia64/vms.h: New file.
7751 * config/ia64/vms-crtinit.asm: New file.
7752 * config/ia64/vms_symvec_libgcc_s.opt: New file.
7753 * config/ia64/vms-unwind.h: New file.
7754
7755 2009-08-14 Uros Bizjak <ubizjak@gmail.com>
7756
7757 * config/alpha/alpha.c (alpha_emit_conditional_move): Handle
7758 TFmode compares.
7759
7760 2009-08-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7761
7762 PR middle-end/30789
7763 * builtins.c (do_mpc_arg2): Make extern, define for any MPC version.
7764 Move declaration...
7765 * real.h (do_mpc_arg2): ... here.
7766 * fold-const.c (const_binop): Use MPC for complex MULT_EXPR
7767 and RDIV_EXPR.
7768
7769 2009-08-14 Rafael Avila de Espindola <espindola@google.com>
7770
7771 * final.c (add_debug_prefix_map): Don't use GC memory for
7772 old_prefix and new_prefix.
7773
7774 2009-08-14 Richard Guenther <rguenther@suse.de>
7775
7776 * ipa-prop.c (compute_complex_pass_through): If we cannot
7777 compute a non-varying offset for IPA_JF_ANCESTOR punt.
7778
7779 2009-08-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7780
7781 * c-lex.c (c_lex_with_flags): Increase size of local variable
7782 to avoid memory clobber.
7783
7784 2009-08-14 Paolo Bonzini <bonzini@gnu.org>
7785
7786 PR target/40934
7787 * config/i386/i386.c (ix86_fp_comparison_strategy):
7788 Only enable/disable sahf at function granularity.
7789
7790 2009-08-14 Hans-Peter Nilsson <hp@axis.com>
7791
7792 PR rtl-optimization/41064
7793 * reload1.c (reload_as_needed): Don't call extract_insn
7794 for known invalid replacements after calling
7795 validate_replace_rtx_group and verify_changes.
7796
7797 2009-08-14 Uros Bizjak <ubizjak@gmail.com>
7798
7799 PR target/41019
7800 * config/i386/sse.md (SSEMODE124C8): New mode iterator.
7801 (vcond<SSEMODEF2P:mode>): Assert that operation is supported by
7802 ix86_expand_fp_vcond.
7803 (vcond<SSEMODE124C8:mode>): Use SSEMODE124C8 instead of SSEMODE124.
7804 Assert that operation is supported by ix86_expand_int_vcond.
7805 (vcondu<SSEMODE124C8:mode>): Ditto.
7806
7807 2009-08-13 DJ Delorie <dj@redhat.com>
7808
7809 * config/i386/djgpp-stdint.h: New.
7810 * config.gcc (djgpp): Use it.
7811
7812 2009-08-13 Kaz Kojima <kkojima@gcc.gnu.org>
7813
7814 * config/sh/sh.c (sh_override_options): When flag_exceptions or
7815 flag_unwind_tables is on, turn flag_reorder_blocks_and_partition off.
7816
7817 2009-08-13 Ghassan Shobaki <ghassan.shobaki@amd.com>
7818
7819 * tree-ssa-loop-prefetch.c
7820 (prune_ref_by_group_reuse): Enhance probabilistic analysis
7821 for long-stride pruning.
7822 (compute_miss_rate): New function to compute the probability
7823 that two memory references access different cache lines.
7824
7825 2009-08-13 Dave Korn <dave.korn.cygwin@gmail.com>
7826
7827 * gcc/config/i386/cygwin.h (LINK_SPEC): Add --enable-auto-image-base.
7828
7829 2009-08-13 Richard Guenther <rguenther@suse.de>
7830
7831 PR middle-end/41047
7832 * tree-ssa-ccp.c (ccp_fold): When folding pointer additions
7833 use the constant pointer type.
7834 * gimplify.c (canonicalize_addr_expr): Canonicalize independent
7835 of CV qualifiers on the target pointer type.
7836 * tree-ssa.c (useless_type_conversion_p): Move incomplete pointer
7837 conversion check before restrict check.
7838
7839 2009-08-12 Kaz Kojima <kkojima@gcc.gnu.org>
7840
7841 PR target/41029
7842 * config/sh/sh.md (reload_outdf__RnFRm+4): Fix thinko.
7843
7844 2009-08-12 Kaz Kojima <kkojima@gcc.gnu.org>
7845
7846 * config/sh/sh.c (sh_promote_function_mode): Add ATTRIBUTE_UNUSED.
7847
7848 2009-08-12 Richard Guenther <rguenther@suse.de>
7849
7850 PR tree-optimization/41011
7851 * ipa-cp.c (ipcp_lattice_from_jfunc): Deal with failing fold
7852 and reference constructing.
7853
7854 2009-08-12 Xinliang David Li <davidxl@google.com>
7855
7856 PR tree-optimization/41012
7857 * tree-flow.h : New external interface.
7858 * gimple-low.c (check_call_arg): Change to public function.
7859 Remove argument mismatch check in lowering.
7860 * tree-inline.h (tree_can_inline_p): Interface change.
7861 * tree-inline.c (tree_can_inline_p): Fold argument mismatch check
7862 into this function.
7863 * ipa-inline.c (cgraph_decide_inlining_of_small_functions):
7864 Call change to tree_can_inline_p function.
7865 (cgraph_decide_inlining_incrementally): Ditto.
7866
7867 2009-08-12 Richard Sandiford <rdsandiford@googlemail.com>
7868
7869 PR tree-optimization/41031
7870 * tree-outof-ssa.c (insert_value_copy_on_edge): Use promote_decl_mode
7871 on the partition variable rather than promote_mode on the source
7872 type. Assert that the partition variable's type has the same
7873 mode as the source value's.
7874
7875 2009-08-12 Paolo Bonzini <bonzini@gnu.org>
7876
7877 * doc/tm.texi (TARGET_PROMOTE_FUNCTION_MODE): Add documentation
7878 for for_return == 2.
7879 * function.c (assign_parm_setup_reg): Use for_return == 2, improve
7880 comments.
7881 * calls.c (expand_call): Fix typo.
7882 * explow.c (promote_decl_mode): Use for_return == 2 for RESULT_DECL
7883 and PARM_DECL.
7884 * stmt.c (expand_value_return): Use promote_function_mode to copy out
7885 of pseudo.
7886 * targhooks.c (default_promote_function_mode): Handle for_return == 2.
7887 * config/cris/cris.c (cris_promote_function_mode): Likewise.
7888 * config/mmix/mmix.c (mmix_promote_function_mode): Likewise.
7889 * config/pa/pa.c (pa_promote_function_mode): Likewise.
7890
7891 2009-08-12 Andrew Haley <aph@redhat.com>
7892
7893 * config/arm/arm.c (arm_init_libfuncs): Add __sync_synchronize.
7894
7895 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
7896
7897 PR bootstrap/40103
7898 * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
7899
7900 2009-08-12 Richard Guenther <rguenther@suse.de>
7901
7902 * alias.c (get_alias_set): Honor TYPE_STRUCTURAL_EQUALITY_P.
7903 * gimplify.c (gimplify_modify_expr): Do not use
7904 lang_hooks.types_compatible_p.
7905 * tree-ssa.c (useless_type_conversion_p): For aggregates
7906 just return false if the canonical types differ.
7907
7908 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
7909
7910 PR middle-end/40980
7911 * sese.c (convert_for_phi_arg): New.
7912 (add_guard_exit_phis): Use convert_for_phi_arg.
7913
7914 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
7915
7916 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Dont add
7917 unknown subscript upper bounds.
7918
7919 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
7920 Pranav Garg <pranav.garg2107@gmail.com>
7921
7922 * graphite-interchange.c (gather_access_strides): Removed.
7923 (ppl_max_for_le): New.
7924 (build_linearized_memory_access): New.
7925 (memory_stride_in_loop): New.
7926 (pbb_interchange_profitable_p): Reimplemented.
7927 * graphite-ppl.h (ppl_new_id_map): New.
7928 (ppl_interchange): New.
7929
7930 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
7931
7932 * graphite-interchange.c (compute_subscript): Removed.
7933 (compute_array_size_cstr): Removed.
7934 (compute_array_size_poly): Removed.
7935 (compute_array_size): Removed.
7936 (gather_access_strides_poly): Removed.
7937 (gather_access_strides): Empty.
7938
7939 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
7940
7941 * graphite-dependences.c (dependence_polyhedron_1): Replace
7942 pdr_nb_subscripts with PDR_NB_SUBSCRIPTS.
7943 (graphite_legal_transform_dr): Same.
7944 (graphite_carried_dependence_level_k): Same.
7945 * graphite-poly.c (new_poly_dr): Add a parameter nb_subscripts.
7946 Initialize PDR_NB_SUBSCRIPTS.
7947 (print_pdr_access_layout): Replace pdr_nb_subscripts with
7948 PDR_NB_SUBSCRIPTS.
7949 * graphite-poly.h (struct poly_dr): Add nb_subscripts field.
7950 (PDR_NB_SUBSCRIPTS): New.
7951 (pdr_nb_subscripts): Removed.
7952 (pdr_dim): Simplified.
7953 * graphite-sese-to-poly.c (build_poly_dr): Replace pdr_nb_subscripts
7954 with PDR_NB_SUBSCRIPTS.
7955
7956 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
7957
7958 * graphite-interchange.c (compute_array_size): Remove use of
7959 PDR_DATA_CONTAINER.
7960 * graphite-poly.c (new_poly_dr): Remove argument data_container.
7961 Do not initialize PDR_DATA_CONTAINER.
7962 (print_pdr): Do not print PDR_DATA_CONTAINER.
7963 * graphite-poly.h (struct poly_dr): Remove data_container field.
7964 (PDR_DATA_CONTAINER): Removed.
7965 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Remove use of
7966 PDR_DATA_CONTAINER.
7967 (build_poly_dr): Same.
7968
7969 2009-08-12 Konrad Trifunovic <konrad.trifunovic@gmail.com>
7970 Sebastian Pop <sebastian.pop@amd.com>
7971
7972 * graphite-dependences.c (graphite_legal_transform_dr): Work on a
7973 copy of the dependence polyhedron. Free the temporary objects.
7974 (graphite_carried_dependence_level_k): Free unused objects before
7975 returning.
7976
7977 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
7978
7979 * graphite-blocking.c (scop_do_strip_mine): Call store_scattering.
7980 Early return without analyzing the data dependences if no
7981 transform has been done. Call restore_scattering if the transform
7982 is not legal.
7983 (graphite-interchange.c): Same.
7984 * graphite-poly.c (print_scattering_function): Test for
7985 PBB_TRANSFORMED.
7986 (graphite_read_transforms): Initialize PBB_TRANSFORMED.
7987 (apply_poly_transforms): Do not gcc_assert that
7988 the transform is legal.
7989 (new_poly_bb): Initialize PBB_TRANSFORMED, PBB_SAVED and PBB_ORIGINAL.
7990 Do not initialize PBB_NB_SCATTERING_TRANSFORM, PBB_NB_LOCAL_VARIABLES,
7991 PBB_TRANSFORMED_SCATTERING, and PBB_ORIGINAL_SCATTERING.
7992 (free_poly_dr): Free PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL.
7993 * graphite-poly.h (struct poly_scattering): New.
7994 (struct poly_bb): Add original, transformed, and saved fields.
7995 Remove transformed_scattering, original_scattering,
7996 nb_local_variables and nb_scattering_transform fields.
7997 (PBB_ORIGINAL, PBB_TRANSFORMED, PBB_SAVED): New.
7998 (poly_scattering_new): New.
7999 (poly_scattering_free): New.
8000 (poly_scattering_copy): New.
8001 (store_scattering_pbb): New.
8002 (store_scattering): New.
8003 (restore_scattering_pbb): New.
8004 (restore_scattering): New.
8005 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
8006 Initialize PBB_TRANSFORMED and PBB_ORIGINAL.
8007
8008 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
8009
8010 * graphite-poly.c (print_pbb): Add parentheses in the pretty print.
8011 (print_scop): Same.
8012
8013 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
8014
8015 * Makefile.in (graphite.o): Depends on PREDICT_H.
8016 * graphite.c: Include predict.h.
8017 (graphite_finalize): Call tree_estimate_probability.
8018 * predict.c (predict_loops): Do not call scev_initialize and
8019 scev_finalize.
8020 (tree_estimate_probability_bb): New.
8021 (tree_estimate_probability): Do not initialize loops: move that
8022 code to the driver. Call tree_estimate_probability_bb.
8023 (tree_estimate_probability_driver): New.
8024 (pass_profile): Use tree_estimate_probability_driver.
8025 * predict.h (tree_estimate_probability): Declared.
8026
8027 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
8028
8029 * graphite-clast-to-gimple.c (gloog): Add time to TV_GRAPHITE_CODE_GEN.
8030 * graphite-dependences.c (graphite_legal_transform): Add time to
8031 TV_GRAPHITE_DATA_DEPS.
8032 (dependency_between_pbbs_p): Same.
8033 * timevar.def (TV_GRAPHITE_DATA_DEPS, TV_GRAPHITE_CODE_GEN): New.
8034
8035 2009-08-12 Andrey Belevantsev <abel@ispras.ru>
8036
8037 PR rtl-optimization/41033
8038 * alias.c (nonoverlapping_component_refs_p): Punt when strict
8039 aliasing is disabled.
8040
8041 2009-08-11 Adam Nemet <anemet@caviumnetworks.com>
8042
8043 * config/mips/predicates.md (qi_mask_operand, hi_mask_operand,
8044 si_mask_operand, and_load_operand, low_bitmask_operand,
8045 and_reg_operand, and_operand): New predicates.
8046 * config/mips/constraints.md (Yb, Yh, Yw, Yz): New constraints.
8047 * config/mips/mips.c (and_operands_ok): New function.
8048 * config/mips/mips-protos.h (and_operands_ok): Declare it.
8049 * config/mips/mips.md (move_type): Add ext_ins and logical.
8050 (type): Handle them.
8051 (and<mode>3): Use and_reg_operand as the second operand's predicate.
8052 (*and<mode>3): Add alternatives for lbu, lhu, lwu, <d>ext and
8053 shift_shift. Remove commutative constraint modifier.
8054 (*and<mode>3_mips16): Add alternatives for lbu, lhu, lwu and
8055 shift_shift.
8056 (*clear_upper32_dext): Remove define_insn_and_split.
8057 (*clear_upper32): Turn this define_insn_and_split ...
8058 (splitter for ANDing register with 0xffff_ffff): .. into this.
8059
8060 2009-08-11 Adam Nemet <anemet@caviumnetworks.com>
8061
8062 * combine.c (try_widen_shift_mode): Factor out code to check if an
8063 integer constant is a low-order bitmask from here ...
8064 * rtlanal.c (low_bitmask_len): ... to here.
8065 * rtl.h (low_bitmask_len): Declare.
8066
8067 2009-08-11 Uros Bizjak <ubizjak@gmail.com>
8068
8069 PR target/8603
8070 * config/alpha/alpha.md (addsi3): Remove expander.
8071 (addsi3): Rename from *addsi3_internal insn pattern.
8072 (subsi3): Remove expander.
8073 (subsi3): Rename from *subsi3_internal insn pattern.
8074
8075 2009-08-11 Douglas B Rupp <rupp@gnat.com>
8076
8077 * config/alpha/alpha.c (alpha_init_builtins): Nullify FWRITE and
8078 FWRITE_UNLOCKED.
8079
8080 2009-08-11 Vasiliy Fofanov <fofanov@adacore.com>
8081 Eric Botcazou <botcazou@adacore.com>
8082 Douglas B Rupp <rupp@gnat.com>
8083
8084 * config/alpha/alpha.c (alpha_return_in_memory): On VMS, ensure
8085 that records that fit in 64 bits are returned by immediate value,
8086 as required by OpenVMS Calling Standard.
8087 (function_value): Adjust for above modification.
8088 (alpha_va_start) <TARGET_ABI_OPEN_VMS>: Use
8089 virtual_incoming_args_rtx as base object, not next_arg.
8090 * config/alpha/vms.h: (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
8091
8092 2009-08-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8093
8094 * reload.c (find_reloads_subreg_address): Check the original
8095 req_equiv_mem address to detect the case where an address is
8096 not valid in the outer mode.
8097
8098 2009-08-11 Richard Guenther <rguenther@suse.de>
8099
8100 PR bootstrap/40788
8101 * builtins.c (gimplify_va_arg_expr): Do not call SET_EXPR_LOCATION.
8102
8103 2009-08-10 Douglas B Rupp <rupp@gnat.com>
8104
8105 * config/alpha/vms.h (OPTIMIZATION_OPTIONS): Remove
8106 (OVERRIDE_OPTIONS): Incorporate removed OPTIMIZATION_OPTIONS.
8107
8108 2009-08-10 Olivier Hainque <hainqueu@adacore.com>
8109 Douglas B Rupp <rupp@gnat.com>
8110
8111 * config/alpha/alpha.c (alpha_sa_size): Force procedure type to
8112 PT_STACK when frame_pointer_needed on OpenVMS.
8113 (alpha_pv_save_size, alpha_using_fp): Remove.
8114 (alpha_vms_can_eliminate): New function. Support for CAN_ELIMINATE
8115 with proper processing for PT_NULL.
8116 (alpha_vms_initial_elimination_offset): New function. Support for
8117 INITIAL_ELIMINATION_OFFSET with proper processing for PT_NULL.
8118 (alpha_sa_size): Force procedure type to PT_STACK when
8119 frame_pointer_needed on OpenVMS.
8120 * config/alpha/alpha-protos.h (alpha_pv_save_size): Remove prototype.
8121 (alpha_using_fp): Likewise.
8122 (alpha_vms_can_eliminate): Add prototype.
8123 (alpha_vms_initial_elimination_offset): Likewise.
8124 * config/alpha/vms.h (CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET):
8125 Call alpha_vms_can_eliminate and alpha_vms_initial_elimination_offset.
8126
8127 2009-08-10 Eric Botcazou <botcazou@adacore.com>
8128 Douglas B Rupp <rupp@gnat.com>
8129
8130 * config/alpha/alpha.c (common_object_handler): New function.
8131 (vms_attribute_table): Declare a single attribute "common_object".
8132 (vms_output_aligned_decl_common): New global function.
8133 (SECTION_VMS_OVERLAY): Delete.
8134 (SECTION_VMS_GLOBAL): Likewise.
8135 (SECTION_VMS_INITIALIZE): Likewise.
8136 (vms_asm_named_section): Remove support for above flags.
8137 (vms_section_type_flags): Delete.
8138 (TARGET_SECTION_TYPE_FLAGS): Likewise.
8139 * config/alpha/alpha-protos.h (vms_output_aligned_decl_common): New.
8140 * config/alpha/vms.h (ASM_OUTPUT_ALIGNED_COMMON): Delete.
8141 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New macro.
8142
8143 2009-08-10 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
8144
8145 PR target/41015
8146 * longlong.h [__sh__] (udiv_qrnnd): Add T register to clobber list.
8147 (sub_ddmmss): Likewise.
8148
8149 2009-08-10 Andreas Tobler <a.tobler@schweiz.org>
8150
8151 PR bootstrap/41018
8152 * config/rs6000/freebsd.h: Define SVR4_ASM_SPEC. Adjust copyright
8153 year.
8154
8155 2009-08-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8156
8157 PR target/37053
8158 * reload1.c (reload_as_needed): Use cancel_changes to completely
8159 undo a failed replacement attempt.
8160
8161 2009-08-10 Richard Guenther <rguenther@suse.de>
8162
8163 PR middle-end/41006
8164 * tree-ssa.c (useless_type_conversion_p_1): Fold into ...
8165 (useless_type_conversion_p): ... here. Require pointer targets
8166 to be compatible.
8167
8168 2009-08-10 Dodji Seketeli <dodji@redhat.com>
8169
8170 PR c++/40866
8171 * tree-inline.c (copy_statement_list): The resulting copy shouldn't
8172 loose the original type of the statement list.
8173
8174 2009-08-09 Douglas B Rupp <rupp@gnat.com>
8175
8176 * config/alpha/alpha.c: Include libfuncs.h
8177 (avms_asm_output_extern): New function.
8178 (alpha_init_libfuncs): Init some decc libfuncs.
8179 * config/alpha/alpha-protos.h (avms_asm_output_external): Declare.
8180 * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Define.
8181 (DO_CRTL_NAMES): Define.
8182 (LIB_SPEC): Remove.
8183 * config/alpha/vms64.h: (POINTERS_EXTEND_UNSIGNED): Remove undef.
8184 (LONG_TYPE_SIZE): Define.
8185 (TARGET_OS_CPP_BUILTINS): Define with __LONG_POINTERS=1
8186 (SUBTARGET_SWITCHES): Define malloc64 switch.
8187 (TARGET_DEFAULT): Default MASK_MALLOC64 set.
8188 (MASK_RETURN_ADDR): Define.
8189 doc/invoke.texi (mmalloc64): Document switch.
8190
8191 2009-08-09 Olivier Hainque <hainque@adacore.com>
8192 Douglas B Rupp <rupp@gnat.com>
8193
8194 * config/alpha/alpha.c (struct machine_function): New flag for VMS,
8195 uses_condition_handler.
8196 (alpha_expand_builtin_establish_vms_condition_handler): New expander.
8197 (alpha_expand_builtin_revert_vms_condition_handler): New expander.
8198 (enum alpha_builtin): New ALPHA_BUILTIN_REVERT_VMS_CONDITION_HANDLER
8199 and ALPHA_BUILTIN_ESTABLISH_VMS_CONDITION_HANDLER values.
8200 (code_for_builtin): New insn codes for the new alpha_builtins.
8201 (alpha_init_builtins): Register the new functions as BUILT_IN_MD.
8202 (alpha_sa_size): Account for uses_condition_handler.
8203 (alpha_expand_prologue): Likewise.
8204 (alpha_start_function): Likewise.
8205 (alpha_expand_epilogue): Likewise.
8206 * config/alpha/alpha-protos.h: Prototype the new alpha.c builtin
8207 establish/revert expanders.
8208 * config/alpha/alpha.h (DWARF_FRAME_REGNUM): Define.
8209 * config/alpha/alpha.md (builtin_establish_vms_condition_handler):
8210 New expander, resorting to the alpha.c associated function.
8211 (builtin_revert_vms_condition_handler): Likewise.
8212 * config/alpha/vms-gcc_shell_handler.c: New file. Implements
8213 __gcc_shell_handler, the static VMS condition handler used as
8214 an indirection wrapper to the current dynamically established
8215 handler.
8216 * config/alpha/vms-unwind.h: Complete rewrite.
8217 * config/alpha/t-vms (LIB2FUNCS_EXTRA): Add vms-gcc_shell_handler.c
8218 * config/alpha/vms.h (MD_UNWIND_SUPPORT):
8219
8220 2009-08-09 Eric Botcazou <botcazou@adacore.com>
8221 Douglas B Rupp <rupp@gnat.com>
8222
8223 * config/alpha/alpha.c (alpha_links): Add 'target' field.
8224 (alpha_need_linkage): Handle aliases. Return function symbol.
8225 (alpha_use_linkage): Rename 'linkage' argument to 'func'.
8226 Use ultimate alias target for the linkage name.
8227 * config/alpha/alpha.md (movmemdi): Use the symbol returned
8228 by alpha_need_linkage for the function symbol.
8229 (setmemdi): Likewise.
8230
8231 2009-08-09 Douglas B Rupp <rupp@gnat.com>
8232
8233 * config/alpha/alpha.c (TARGET_ASM_UNALIGNED_*_OP): Define if on VMS.
8234 * config/alpha/vms.h (OBJECT_FORMAT_ELF): Define.
8235 (ASM_WEAKEN_LABEL): Define.
8236 (CRT_CALL_STATIC_FUNCTION): Define.
8237 (STARTFILE_SPEC): Add crtbegin.o crtbeginS.o.
8238 (ENDFILE_SPEC): Define.
8239 (INIT_SECTION_ASM_OP): Define.
8240 * config/alpha/vms-dwarf2eh.asm (__EH_FRAME_BEGIN__): Remove.
8241 * config/alpha/t-vms (EXTRA_PARTS): Add crtbegin.o crtbeginS.o
8242 crtend.o crtendS.o.
8243 (MULTILIB_OSDIRNAMES): Define.
8244 (shlib_version): Define.
8245 (SHLIB_EXT): Define.
8246 (SHLIB_OBJS): Define.
8247 (SHLIB_NAME): Define.
8248 (SHLIB_MULTILIB): Define.
8249 (SHLIB_INSTALL): Define.
8250 (SHLIB_SYMVEC): Define.
8251 (SHLIB_SYMVECX2): Define.
8252 (SHLIB_LINK): Define.
8253
8254 2009-08-09 Douglas B Rupp <rupp@gnat.com>
8255
8256 * config/alpha/alpha.c (alpha_initialize_trampoline):
8257 Initialize VMS trampoline IAW ABI for bounded procedure calls.
8258 (alpha_start_function): Emit transfer address on nested functions
8259 for VMS trampoline call.
8260 * config/alpha/t-vms (LIB2FUNCS_EXTRA): Remove vms_tramp.asm
8261 since no longer used.
8262 * config/alpha/vms-tramp.asm: Remove.
8263 * config/alpha/vms.h (TRAMPOLINE_TEMPLATE): Leave undefined
8264 since now only data initialized at runtime.
8265
8266 2009-08-09 Douglas B Rupp <rupp@gnat.com>
8267
8268 * config/alpha/vms.h (HANDLE_SYSV_PRAGMA): Define.
8269 (LINK_GCC_C_SEQUENCE_SPEC): Define.
8270 (MD_EXEC_PREFIX): Remove, no longer used.
8271 (MD_STARTFILE_PREFIX): Likewise.
8272 (INCLUDE_DEFAULTS): Likewise.
8273 * config/alpha/t-vms:
8274 (vms-dwarf2.o, vms-dwarf2eh.o): Use GCC_FOR_TARGET to compile.
8275
8276 2009-08-09 Richard Guenther <rguenther@suse.de>
8277
8278 PR tree-optimization/41016
8279 * tree-ssa-ifcombine.c (get_name_for_bit_test): Fix tuplification bug.
8280 (operand_precision): Remove.
8281 (integral_operand_p): Likewise.
8282 (recognize_single_bit_test): Adjust.
8283
8284 2009-08-09 Richard Sandiford <rdsandiford@googlemail.com>
8285
8286 * c-common.c (c_fully_fold_internal): Issue a warning if a binary
8287 operation overflows. Likewise non-cast unary arithmetic.
8288 If one arm of a conditional expression is always taken,
8289 inhibit evaluation warnings for the other arm. Likewise inhibit
8290 evaluation warnings for the second && or || operand if the first
8291 operand is enough to determine the result.
8292 * c-typeck.c (build_conditional_expr): Apply the same inhibition
8293 rules here.
8294 (build_binary_op): Prevent duplicate evaluation warnings.
8295
8296 2009-08-09 Richard Sandiford <rdsandiford@googlemail.com>
8297
8298 * tree-out-of-ssa.c (insert_value_copy_on_edge): If the source
8299 and destination have different modes, Use promote_mode to
8300 determine the signedness of the conversion. Assert that the
8301 promoted source mode matches the destination mode. Don't pass
8302 the destination and destination mode to expand_expr if the source
8303 mode is different. Simplify conversion logic.
8304
8305 2009-08-09 Ira Rosen <irar@il.ibm.com>
8306
8307 PR tree-optimization/41008
8308 * tree-vect-loop.c (vect_is_simple_reduction): Get operands
8309 from condition only in case it's a comparison. Adjust checks.
8310
8311 2009-08-09 Bernd Schmidt <bernd.schmidt@analog.com>
8312
8313 * tree-dfa.c (renumber_gimple_stmt_uids_in_blocks): New function.
8314 * tree-flow.h (renumber_gimple_stmt_uids_in_blocks): Declare it.
8315 * tree-ssa-loop-ivopts.c (comp_cost): Make COST an integer.
8316 (enum iv_position): Add IP_AFTER_USE and IP_BEFORE_USE.
8317 (dump_cand): Handle them.
8318 (struct iv_cand): New members COST_STEP and AINC_USE.
8319 (stmt_after_increment): Likewise.
8320 (stmt_after_inc_pos): Renamed from stmt_after_ip_original_pos. All
8321 callers changed. Use gimple_uid comparison instead of scanning.
8322 (add_candidate_1): When looking for identical candidates, take
8323 AINC_USE into account. Set it for new candidates.
8324 (force_expr_to_var_cost): Cast target_spill_cost to int.
8325 (get_address_cost): New arguments STMT_AFTER_INC and MAY_AUTOINC.
8326 All callers changed. Check for availability of autoinc addressing
8327 modes, both in general for a given mode, and in the specific use case.
8328 (get_computation_cost_at): New argument CAN_AUTOINC. All callers
8329 changed.
8330 (get_computation_cost): Likewise.
8331 (autoinc_possible_for_pair, set_autoinc_for_original_candidates,
8332 add_autoinc_candidates): New static functions.
8333 (add_candidate): Call add_autoinc_candidates for candidates based on
8334 a USE_ADDRESS use.
8335 (find_iv_candidates): Call set_autoinc_for_original_candidates.
8336 (determine_use_iv_cost_address): If we have an autoinc candidate at
8337 the matching use, verify autoinc is possible and subtract the cost
8338 of the candidate's step from the cost.
8339 (determine_iv_cost): Record the cost of the increment in the COST_STEP
8340 member of the candidate.
8341 (tree_ssa_iv_optimize_loop): Swap the calls to determine_iv_costs and
8342 determine_use_iv_costs. Call renumber_gimple_stmt_uids_in_blocks.
8343
8344 2009-08-09 Douglas B Rupp <rupp@gnat.com>
8345
8346 * config.build (ia64-hp-*vms*): New target.
8347 (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
8348 with ia64-hp-*vms*.
8349 * config.gcc (ia64-hp-*vms*): New target.
8350 (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
8351 with ia64-hp-*vms*.
8352 * config.host (ia64-hp-*vms*): New target.
8353 (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
8354 with ia64-hp-*vms*.
8355
8356 2009-08-08 Richard Guenther <rguenther@suse.de>
8357
8358 PR tree-optimization/40991
8359 * tree-ssa-pre.c (eliminate): Delay purging EH edges.
8360
8361 2009-08-08 Richard Sandiford <rdsandiford@googlemail.com>
8362
8363 * combine.c (gen_lowpart_or_truncate): Exclude CONST_INTs from
8364 mode check. Do truncations in an integer mode.
8365 (force_to_mode): Handle subregs for all mode types. Only do
8366 arithmetic simplifications on integer modes.
8367
8368 2009-08-07 Richard Guenther <rguenther@suse.de>
8369
8370 PR tree-optimization/40999
8371 * tree-ssa-ccp.c (get_symbol_constant_value): Handle CONST_DECLs.
8372 (maybe_fold_reference): Lookup constant initializers.
8373 (fold_gimple_assign): Likewise.
8374
8375 2009-08-07 Richard Guenther <rguenther@suse.de>
8376
8377 * tree-ssa.c (useless_type_conversion_p_1): Only for types
8378 that require structural equality defer to the langhook.
8379
8380 2009-08-07 Martin Jambor <mjambor@suse.cz>
8381
8382 * ipa-prop.h (enum jump_func_type): New value IPA_JF_ANCESTOR, changed
8383 comments.
8384 (struct ipa_pass_through_data): New type.
8385 (struct ipa_ancestor_jf_data): New type.
8386 (union jump_func_value): Removed field formal_id, added fields
8387 pass_through and ancestor.
8388 (struct ipa_param_call_note): Changed type of formal_id to int from
8389 unsigned.
8390 * ipa-prop.c (ipa_print_node_jump_functions): Print pass through with
8391 operations jump functions and ancestor jump functions.
8392 (compute_complex_pass_through): New function.
8393 (compute_scalar_jump_functions): Call compute_complex_pass_through,
8394 reflect changes in the jump function strucutre.
8395 (update_jump_functions_after_inlining): Ignore complex pass-through
8396 and ancestor jump functions.
8397 * ipa-cp.c (ipcp_lattice_from_jfunc): Added support for ancestor and
8398 polynomial pass-through with operation jump functions.
8399
8400 2009-08-07 Jakub Jelinek <jakub@redhat.com>
8401
8402 * dwarf2out.c (output_fde): When doing hot/cold partitioning, use
8403 fde->dw_fde_begin as begin label instead of hot/cold label.
8404 Use LLSDAC label instead of LLSDA for second section lsda.
8405 (dwarf2out_do_cfi_startproc): Add SECOND argument. Use LLSDAC
8406 label instead of LLSDA if it is true.
8407 (dwarf2out_begin_prologue, dwarf2out_switch_text_section): Adjust
8408 callers.
8409 * except.c (add_call_site, dw2_size_of_call_site_table): Add
8410 SECTION argument. Use it as index into crtl->eh.call_site_record
8411 array.
8412 (dw2_output_call_site_table): Likewise. Add CS_FORMAT argument,
8413 use it to determine how to print table entries instead of using
8414 #ifdef HAVE_AS_LEB128. For SECTION > 0 use hot resp. cold
8415 label instead of normal begin label as base.
8416 (sjlj_assign_call_site_values): Adjust add_call_site caller.
8417 (convert_to_eh_region_ranges): When doing hot/cold partitioning,
8418 ensure no EH range spans between sections and that landing pads
8419 are always in the corresponding section.
8420 (sjlj_size_of_call_site_table, sjlj_output_call_site_table): Adjust
8421 for crtl->eh.call_site_record being an array rather than scalar.
8422 (output_one_function_exception_table): New function, copied
8423 from output_function_exception_table. Adjust
8424 dw2_size_of_call_site_table, dw2_output_call_site_table
8425 callers. For SECOND section use *C suffixed labels.
8426 (output_function_exception_table): Call
8427 output_one_function_exception_table and, when doing hot/cold
8428 partitioning, also another time for the second section.
8429 * opts.c: Include except.h.
8430 (decode_options): Allow -freorder-blocks-and-partition with
8431 exceptions, unless SJLJ or TARGET_UNWIND_INFO.
8432 * Makefile.in (opts.o): Depend on $(EXCEPT_H).
8433 * function.h (struct rtl_eh): Change call_site_record from
8434 scalar into array of 2 elements.
8435
8436 2009-08-07 Martin Jambor <mjambor@suse.cz>
8437
8438 * ipa-prop.c (count_formal_params_1): New function.
8439 (ipa_get_vector_of_formal_parms): New function.
8440 (get_vector_of_formal_parm_types): New function.
8441 (ipa_modify_formal_parameters): New function.
8442 (ipa_modify_call_arguments): New function.
8443 (index_in_adjustments_multiple_times_p): New function.
8444 (ipa_combine_adjustments): New function.
8445 (ipa_dump_param_adjustments): New function.
8446 * ipa-prop.h (struct ipa_parm_adjustment): New type.
8447 (ipa_get_vector_of_formal_parms): Declare.
8448 (ipa_modify_formal_parameters): Declare.
8449 (ipa_modify_call_arguments): Declare.
8450 (ipa_combine_adjustments): Declare.
8451 (ipa_dump_param_adjustments): Declare.
8452 (build_ref_for_offset): Declare.
8453 * Makefile.in (tree-sra.o): Add ipa-prop.h to dependencies.
8454 * tree-sra.c: Include ipa-prop.c.
8455 (build_ref_for_offset): Make public.
8456
8457 2009-08-06 Neil Vachharajani <nvachhar@gmail.com>
8458
8459 * value-prof.c (init_pid_map): Replace xmalloc with XCNEWVEC.
8460
8461 2009-08-06 Thomas Schwinge <tschwinge@gnu.org>
8462
8463 * gcc/doc/extend.texi (__builtin_extract_return_address)
8464 (__builtin_frob_return_address): Document.
8465
8466 2009-08-06 Paul Brook <paul@codesourcery.com>
8467
8468 * config/arm/lib1funcs.asm (ARM_DIV_BODY): Add Thumb-2 implementation.
8469 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Only use Thumb-1
8470 implementation on ARMv6-M.
8471
8472 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
8473
8474 * doc/extend.texi (pcs): Document new attribute for ARM.
8475
8476 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
8477
8478 * arm.c (pcs_attribute_args): Comment out unsupported attribute
8479 variants.
8480
8481 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
8482
8483 * arm.c (arm_handle_pcs_attribute): Pass the entire name object to
8484 warning ().
8485
8486 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
8487
8488 * arm.c (arm_handle_pcs_attribute): Use %qE in warning.
8489
8490 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
8491
8492 Merge ARM/hard_vfp_branch to trunk.
8493
8494 2009-08-04 Richard Earnshaw <rearnsha@arm.com>
8495
8496 * arm.c (libcall_eq): New function.
8497 (libcall_hash): New function.
8498 (add_libcall): New function.
8499 (arm_libcall_uses_aapcs_base): New function.
8500 (arm_libcall_value): Use arm_libcall_uses_aapcs_base to check for
8501 libcalls using the base PCS.
8502 (arm_init_cumulative_args): Likewise.
8503
8504 2009-07-20 Joseph Myers <joseph@codesourcery.com>
8505
8506 * config/arm/arm.c (arm_libcall_value, arm_init_cumulative_args):
8507 Use base ABI for conversion libfuncs between HFmode and SFmode.
8508
8509 2009-05-12 Joseph Myers <joseph@codesourcery.com>
8510
8511 * config/arm/arm.c (aapcs_vfp_sub_candidate): Use V2SImode and
8512 V4SImode as representatives of all 64-bit and 128-bit vector
8513 types. Allow vector types without vector modes.
8514 (aapcs_vfp_is_call_or_return_candidate): Handle vector types
8515 without vector modes like BLKmode.
8516 (aapcs_vfp_allocate): Handle TImode for non-TARGET_NEON like
8517 BLKmode. Avoid unsupported vector modes or TImode moves for
8518 non-TARGET_NEON.
8519 (aapcs_vfp_allocate_return_reg): Likewise.
8520 (arm_vector_mode_supported_p): Only support V2SImode, V4HImode and
8521 V8QImode if TARGET_NEON || TARGET_IWMMXT.
8522
8523 2009-05-12 Joseph Myers <joseph@codesourcery.com>
8524
8525 * config/arm/arm.c (arm_handle_pcs_attribute): New.
8526 (arm_get_pcs_model): Pass attribute arguments to
8527 arm_pcs_from_attribute.
8528 (arm_init_cumulative_args): Use base AAPCS for conversions from
8529 floating-point types to DImode.
8530 (arm_attribute_table): Add pcs attribute.
8531 (arm_handle_pcs_attribute): New.
8532 * config/arm/bpabi.h (DECLARE_LIBRARY_RENAMES): When renaming
8533 conversions from floating-point types to DImode, also declare them
8534 to use base AAPCS and declare functions they call to use base
8535 AAPCS and their RTABI names.
8536
8537 2009-05-12 Joseph Myers <joseph@codesourcery.com>
8538
8539 * doc/invoke.texi (-mfloat-abi=@var{name}): Remove statement about
8540 -mfloat-abi=hard not being supported for VFP.
8541
8542 2009-05-11 Kazu Hirata <kazu@codesourcery.com>
8543
8544 * config/sparc/sparc.c (sparc_emit_float_lib_cmp): Pass a libcall
8545 SYMBOL_REF to hard_libcall_value.
8546
8547 2009-03-05 Joseph Myers <joseph@codesourcery.com>
8548 Richard Earnshaw <rearnsha@arm.com>
8549
8550 * config/arm/arm.c (aapcs_layout_arg): Once a co-processor argument
8551 has been put on the stack, all remaining co-processory arguments for
8552 that co-processor also go on the stack.
8553
8554 2009-03-05 Joseph Myers <joseph@codesourcery.com>
8555
8556 * config/arm/arm.c (arm_return_in_memory): Handle returning
8557 vectors of suitable size in registers also for AAPCS case.
8558
8559 2009-01-13 Richard Earnshaw <rearnsha@arm.com>
8560
8561 * doc/tm.texi (TARGET_LIBCALL_VALUE): Add missing end statement.
8562
8563 2008-12-09 Richard Earnshaw <rearnsha@arm.com>
8564
8565 ARM Hard-VFP calling convention
8566 * target-def.h (TARGET_LIBCALL_VALUE): New hook.
8567 * target.h (gcc_target): Add libcall_value to table of call hooks.
8568 * targhooks.h (default_libcall_value): Default implementation.
8569 * targhooks.c (default_libcall_value): Likewise.
8570 * doc/tm.texi (TARGET_LIBCALL_VALUE): Document it.
8571 * optabs.c (expand_unop): Use it.
8572 * expr.h (hard_libcall_value): Pass the function RTX through.
8573 * calls.c (emit_library_call_value_1): Update call to
8574 hard_libcall_value.
8575 * explow.c (hard_libcall_value): Use new target hook.
8576 * testsuite/lib/target-supports.exp
8577 (check_effective_target_arm_hard_vfp_ok): New hook.
8578 (check_effective_target_arm_neon_ok): Improve test for neon
8579 availability.
8580 * testsuite/gcc.target/arm/eabi1.c: Only run test in base variant.
8581 * config/arm/arm.c: Include cgraph.h
8582 (TARGET_FUNCTION_VALUE): Override default hook.
8583 (arm_pcs_default): New variable.
8584 (arm_override_options): Don't fault hard calling convention with VFP.
8585 Add support for AAPCS variants.
8586 (arm_function_value): Make static. Handle AAPCS variants.
8587 (arm_libcall_value): New function.
8588 (arm_apply_result_size): Handle VFP registers in results.
8589 (arm_return_in_memory): Rework all AAPCS variants; handle hard-vfp
8590 conventions.
8591 (pcs_attribute_args): New variable.
8592 (arm_pcs_from_attribute): New function.
8593 (arm_get_pcs_model): New function.
8594 (aapcs_vfp_cum_init): New function.
8595 (aapcs_vfp_sub_candidate): New function.
8596 (aapcs_vfp_is_return_candidate): New function.
8597 (aapcs_vfp_is_call_candidate): New function.
8598 (aapcs_vfp_allocate): New function.
8599 (aapcs_vfp_allocate_return_reg): New function.
8600 (aapcs_vfp_advance): New function.
8601 (aapcs_cp_arg_layout): New variable.
8602 (aapcs_select_call_coproc): New function.
8603 (aapcs_select_return_coproc): New function.
8604 (aapcs_allocate_return_reg): New function.
8605 (aapcs_libcall_value): New function.
8606 (aapcs_layout_arg): New function.
8607 (arm_init_cumulative_args): Initialize AAPCS args data.
8608 (arm_function_arg): Handle AAPCS variants using new interface.
8609 (arm_arg_parital_bytes): Likewise.
8610 (arm_function_arg_advance): New function.
8611 (arm_function_ok_for_sibcall): Ensure that sibling calls agree on
8612 calling conventions.
8613 (arm_setup_incoming_varargs): Handle new AAPCS args data.
8614 * arm.h (NUM_VFP_ARG_REGS): Define.
8615 (LIBCALL_VALUE): Update.
8616 (FUNCTION_VALUE): Delete.
8617 (FUNCTION_VALUE_REGNO_P): Add VFP regs.
8618 (arm_pcs): New enum.
8619 (CUMULATIVE_ARGS): New data to support AAPCS argument marshalling.
8620 (FUNCTION_ARG_ADVANCE): Call arm_function_arg_advance.
8621 (FUNCTION_ARG_REGNO_P): Add VFP regs.
8622 * arm-protos.h (arm_function_arg_advance): Add.
8623 (aapcs_libcall_value): Add.
8624 (arm_function_value): Delete.
8625
8626 2009-08-06 Uros Bizjak <ubizjak@gmail.com>
8627 H.J. Lu <hongjiu.lu@intel.com>
8628
8629 PR target/40957
8630 * config/i386/i386.c (standard_sse_mode_p): Remove.
8631 (standard_sse_constant_p): Return 2 for integer mode
8632 vector_all_ones_operand when SSE2 is enabled.
8633 (standard_sse_constant_opcode)<case 2>: Always return [v]pcmpeqd.
8634 (ix86_expand_vector_move): Do not check for negative values from
8635 standard_sse_constant_p.
8636
8637 2009-08-06 Richard Guenther <rguenther@suse.de>
8638
8639 * tree-ssa.c (useless_type_conversion_p_1): Make function and
8640 array type comparisons frontend independent.
8641 * Makefile.in (tree-ssa.o): Add $(TARGET_H) dependency.
8642 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Always fill
8643 out array reference lower bound and element size operands.
8644 (ao_ref_init_from_vn_reference): Properly compute the offset
8645 for ARRAY_RANGE_REF.
8646 (vn_reference_fold_indirect): Fill out array reference lower
8647 bound and element size operands.
8648 * tree-ssa-pre.c (phi_translate_1): Fail if we have to translate
8649 a non gimple valued reference operand which can happen for
8650 array reference lower bound or element size.
8651 (create_component_ref_by_pieces_1): Properly generate the
8652 element size operand for array references.
8653
8654 2009-08-06 Richard Guenther <rguenther@suse.de>
8655
8656 PR tree-optimization/40964
8657 * tree.c (iterative_hash_host_wide_int): Export.
8658 * tree.h (iterative_hash_host_wide_int): Declare.
8659 * tree-ssa-structalias.c (heapvar_map): New struct.
8660 (heapvar_map_eq): New function.
8661 (heapvar_map_hash): Likewise.
8662 (heapvar_lookup): Adjust.
8663 (heapvar_insert): Likewise.
8664 (make_constraint_from_heapvar): Allow multiple heap variables
8665 per decl at different offsets.
8666 (init_alias_heapvars): Adjust.
8667
8668 2009-08-04 David Daney <ddaney@caviumnetworks.com>
8669
8670 * config/mips/mips.h (TARGET_SYNC_AFTER_SC): New macro.
8671 * mips_output_sync_loop (mips_output_sync_loop): Only emit
8672 trailing sync if TARGET_SYNC_AFTER_SC.
8673
8674 2009-08-05 David Daney <ddaney@caviumnetworks.com>
8675
8676 * gcc/config/mips/sync.md (sync_compare_and_swap<mode>,
8677 compare_and_swap_12, sync_add<mode>, sync_<optab>_12,
8678 sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12,
8679 sync_old_nand_12, sync_new_nand_12, sync_sub<mode>,
8680 sync_old_add<mode>, sync_old_sub<mode>, sync_new_add<mode>,
8681 sync_new_sub<mode>, sync_<optab><mode>, sync_old_<optab><mode>,
8682 sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
8683 sync_new_nand<mode>, sync_lock_test_and_set<mode>,
8684 test_and_set_12): Rewrite calls to mips_output_sync_loop.
8685 * gcc/config/mips/mips-protos.h (mips_output_sync_loop): Make
8686 the prototype declaration match the definition.
8687 * gcc/config/mips/mips.c (mips_output_sync_loop): Emit sync
8688 instructions explicitly. Add barrier_before and operands
8689 parameters.
8690 * gcc/config/mips/mips.h (MIPS_COMPARE_AND_SWAP,
8691 MIPS_COMPARE_AND_SWAP_12, MIPS_SYNC_OP, MIPS_SYNC_OP_12,
8692 MIPS_SYNC_OLD_OP_12, MIPS_SYNC_NEW_OP_12, MIPS_SYNC_OLD_OP,
8693 MIPS_SYNC_NEW_OP, MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND,
8694 MIPS_SYNC_NEW_NAND, MIPS_SYNC_EXCHANGE,
8695 MIPS_SYNC_EXCHANGE_12): Remove sync instructions.
8696
8697 2009-08-05 Andrew Pinski <pinskia@gmail.com>
8698
8699 * tree-ssa-alias.c: Fix intervals to use [) syntax.
8700
8701 2009-08-05 Uros Bizjak <ubizjak@gmail.com>
8702 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
8703
8704 PR target/40906
8705 * config/i386/i386.c (ix86_split_long_move): Fix push of multi-part
8706 source operand.
8707
8708 2009-08-05 Jakub Jelinek <jakub@redhat.com>
8709
8710 PR rtl-optimization/40924
8711 * dse.c (canon_address): Before calling cselib_expand_value_rtx
8712 make sure canon_rtx (mem_address) isn't simpler than
8713 canon_rtx (expanded_mem_address).
8714
8715 2009-08-05 Li Feng <nemokingdom@gmail.com>
8716
8717 * graphite-sese-to-poly.c (build_pbb_drs): Remove build alias set
8718 for each poly_bb_p.
8719 (build_scop_drs): Build alias set for each SCoP.
8720
8721 2009-08-04 Sandra Loosemore <sandra@codesourcery.com>
8722
8723 * doc/invoke.texi (MIPS Options): Document new 1004K -march options.
8724 * config/mips/mips.c (mips_cpu_info_table): Add 1004K cores.
8725 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Add pattern for 1004K.
8726 (MIPS_ARCH_FLOAT_SPEC): Likewise.
8727 (BASE_DRIVER_SELF_SPECS): Likewise.
8728
8729 2009-08-04 Andrew Pinski <pinskia@gmail.com>
8730
8731 * tree-ssa-alias.c: Fix some comment typos.
8732
8733 2009-08-04 Kaz Kojima <kkojima@gcc.gnu.org>
8734
8735 * config/sh/linux-atomic.asm (ATOMIC_BOOL_COMPARE_AND_SWAP,
8736 ATOMIC_OP_AND_FETCH, ATOMIC_COMBOP_AND_FETCH): Define.
8737
8738 2009-08-03 Janis Johnson <janis187@us.ibm.com>
8739
8740 PR c/39902
8741 * simplify-rtx.c (simplify_binary_operation_1): Disable
8742 simplifications for decimal float operations.
8743
8744 2009-08-03 Jakub Jelinek <jakub@redhat.com>
8745
8746 PR middle-end/40943
8747 * tree-ssa.c (warn_uninitialized_var): Even on LHS warn for
8748 operand of INDIRECT_REF.
8749
8750 2009-08-03 Uros Bizjak <ubizjak@gmail.com>
8751
8752 * config/alpha/alpha.c (alpha_legitimate_constant_p): Reject CONST
8753 constants referencing TLS symbols.
8754
8755 2009-08-03 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
8756
8757 * config/sh/linux-atomic.asm (ATOMIC_COMPARE_AND_SWAP): Rename
8758 __sync_compare_and_swap_* to __sync_val_compare_and_swap_*.
8759
8760 2009-08-03 Richard Guenther <rguenther@suse.de>
8761
8762 * tree.c (make_vector_type): Build a main variant first,
8763 get the canonical one and then build the variant.
8764 * tree-ssa.c (useless_type_conversion_p_1): Handle
8765 fixed-point types.
8766 (useless_type_conversion_p): Conversions to pointers to
8767 incomplete record types are useless.
8768
8769 2009-08-03 Richard Guenther <rguenther@suse.de>
8770
8771 * tree-cfg.c (pass_warn_unused_result): Mark name that no dump
8772 file will be created.
8773 * omp-low.c (pass_diagnose_omp_blocks): Likewise.
8774 * toplev.c (compile_file): Adjust comment.
8775
8776 2009-08-03 Kaz Kojima <kkojima@gcc.gnu.org>
8777
8778 * config/sh/sh-protos.h (sh_promote_function_mode): Remove.
8779 * config/sh/sh.c (sh_promote_function_mode): Wrap long lines.
8780 (TARGET_PROMOTE_FUNCTION_MODE): Define.
8781 (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
8782 (sh_promote_function_mode): Fix typo.
8783
8784 2009-08-03 Andreas Krebbel <krebbel1@de.ibm.com>
8785
8786 * explow.c (promote_mode): Mark TYPE and PUNSIGNEDP as possibly unused.
8787
8788 2009-08-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8789
8790 * pa.c (pa_promote_function_mode): Remove ATTRIBUTE_UNUSED from
8791 declaration arguments.
8792
8793 2009-08-02 Uros Bizjak <ubizjak@gmail.com>
8794
8795 * config/i386/i386.c (ix86_expand_fp_compare): Use const0_rtx instead
8796 of GEN_INT (0x00) and const1_rtx instead of GEN_INT (0x01).
8797 (ix86_split_ashl): Ditto.
8798 (ix86_expand_vector_init_one_nonzero): Ditto.
8799 (ix86_expand_vector_set): Ditto.
8800 (ix86_expand_reduc_v4sf): Ditto.
8801
8802 2009-08-02 Paolo Bonzini <bonzini@gnu.org>
8803
8804 * explow.c (promote_function_mode): Remove assert.
8805 * config/sh/sh.c (sh_promote_function_mode): Declare.
8806
8807 2009-08-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8808
8809 * config/pa/pa.c (pa_promote_function_mode): Declare.
8810 Change to static. Fix promote_mode call.
8811
8812 * gthr-dce.h (CONST_CAST2): Define if not defined.
8813 (__gthread_setspecific): Use CONST_CAST2 to fix warning.
8814
8815 * config.gcc (hppa[12]*-*-hpux10*): Add stdint support.
8816
8817 2009-08-01 Paolo Bonzini <bonzini@gnu.org>
8818
8819 * expr.c (store_constructor): Use promote_decl_mode. Remove
8820 now write-only variable unsignedp.
8821 (expand_expr_real_1): Use promote_decl_mode.
8822 * expr.h (promote_function_mode, promote_decl_mode): New.
8823 (promote_mode): Remove last argument.
8824 * function.c (assign_temp): Drop last argument of promote_mode.
8825 (assign_parm_find_data_types): Use promote_function_mode.
8826 (assign_parm_setup_reg): Likewise.
8827 (expand_function_end): Use promote_function_mode.
8828 * calls.c (initialize_argument_information): Use promote_function_mode.
8829 (precompute_arguments): Use promote_mode instead of checking if
8830 only PROMOTE_FUNCTION_MODE is defined.
8831 (expand_call): When making sibcall decisions, use promote_function_mode.
8832 Below, remove an if for targetm.calls.promote_function_return and
8833 and use promote_function_mode.
8834 (emit_library_call_value_1): Use promote_function_mode, fix bug
8835 where promote_mode was passed FOR_CALL == 0 for a return value in an
8836 assertion.
8837 * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
8838 * explow.c (promote_function_mode, promote_decl_mode): New.
8839 (promote_mode): Keep only the FOR_CALL == 0 case.
8840 * combine.c (setup_incoming_promotion): Remove test of
8841 promote_function_args. Use promote_function_mode.
8842 * stmt.c (expand_value_return): Use promote_decl_mode.
8843 (expand_decl): Use promote_decl_mode.
8844
8845 * expr.c (store_constructor): Use promote_decl_mode. Remove
8846 now write-only variable unsignedp.
8847 (expand_expr_real_1): Use promote_decl_mode.
8848 * expr.h (promote_function_mode, promote_decl_mode): New.
8849 (promote_mode): Remove last argument.
8850 * function.c (assign_temp): Drop last argument of promote_mode.
8851 (assign_parm_find_data_types): Use promote_function_mode.
8852 (assign_parm_setup_reg): Likewise.
8853 (expand_function_end): Use promote_function_mode.
8854 * calls.c (initialize_argument_information): Use promote_function_mode.
8855 (precompute_arguments): Use promote_mode instead of checking if
8856 only PROMOTE_FUNCTION_MODE is defined.
8857 (expand_call): When making sibcall decisions, use promote_function_mode.
8858 Below, remove an if for targetm.calls.promote_function_return and
8859 and use promote_function_mode.
8860 (emit_library_call_value_1): Use promote_function_mode, fix bug
8861 where promote_mode was passed FOR_CALL == 0 for a return value in an
8862 assertion.
8863 * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
8864 * explow.c (promote_function_mode, promote_decl_mode): New.
8865 (promote_mode): Keep only the FOR_CALL == 0 case.
8866 * combine.c (setup_incoming_promotion): Remove test of
8867 promote_function_args. Use promote_function_mode.
8868 * stmt.c (expand_value_return): Use promote_decl_mode.
8869 (expand_decl): Use promote_decl_mode.
8870
8871 * explow.c (promote_function_mode): Just call the target hook.
8872 * targhooks.c (default_promote_function_mode,
8873 default_promote_function_mode_always_promote): New.
8874 * targhooks.h (default_promote_function_mode,
8875 default_promote_function_mode_always_promote): Declare.
8876 * target.h (promote_function_args, promote_function_return): Remove.
8877 (promote_function_mode): New.
8878 * target-def.h (TARGET_PROMOTE_FUNCTION_ARGS,
8879 TARGET_PROMOTE_FUNCTION_RETURN): Remove.
8880 (TARGET_PROMOTE_FUNCTION_MODE): New.
8881 (TARGET_CALLS): Adjust.
8882 * system.h (TARGET_PROMOTE_FUNCTION_ARGS,
8883 TARGET_PROMOTE_FUNCTION_RETURN, PROMOTE_FUNCTION_MODE): Poison.
8884
8885 * config/s390/s390.h (PROMOTE_FUNCTION_MODE): Move...
8886 * config/s390/s390.c (s390_promote_function_mode): ... here,
8887 with pointer handling.
8888 (TARGET_PROMOTE_FUNCTION_MODE): Define.
8889 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
8890
8891 * config/sparc/sparc.h (PROMOTE_FUNCTION_MODE): Move...
8892 * config/sparc/sparc.c (sparc_promote_function_mode): ... here,
8893 with pointer handling.
8894 (TARGET_PROMOTE_FUNCTION_MODE): Define.
8895 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
8896
8897 * config/sh/sh-protos.h (sh_promote_function_mode): New.
8898 * config/sh/sh.c (sh_promote_function_mode): New.
8899 (TARGET_PROMOTE_FUNCTION_MODE): Define.
8900 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
8901
8902 * config/cris/cris.h (PROMOTE_FUNCTION_MODE): Move...
8903 * config/cris/cris.c (cris_promote_function_mode): ... here.
8904 (TARGET_PROMOTE_FUNCTION_MODE): Define.
8905 (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
8906
8907 * config/mmix/mmix.h (PROMOTE_FUNCTION_MODE): Move...
8908 * config/mmix/mmix.c (mmix_promote_function_mode): ... here.
8909 (TARGET_PROMOTE_FUNCTION_MODE): Define.
8910 (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
8911
8912 * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Move...
8913 * config/arm/arm.c (arm_promote_function_mode): ... here, without
8914 complex type handling.
8915 (TARGET_PROMOTE_FUNCTION_MODE): Define.
8916 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
8917
8918 * config/pa/pa.c (pa_promote_function_mode): New.
8919 (TARGET_PROMOTE_FUNCTION_MODE): Define.
8920 (TARGET_PROMOTE_FUNCTION_RETURN): Remove.
8921
8922 * config/alpha/alpha.c (TARGET_PROMOTE_FUNCTION_ARGS,
8923 TARGET_PROMOTE_FUNCTION_RETURN): Remove.
8924 (TARGET_PROMOTE_FUNCTION_MODE): Define equivalently.
8925 * config/xtensa/xtensa.c: Likewise.
8926 * config/stormy16/stormy16.c: Likewise.
8927 * config/iq2000/iq2000.c: Likewise.
8928 * config/rs6000/rs6000.c: Likewise.
8929 * config/picochip/picochip.c: Likewise.
8930 * config/arc/arc.c: Likewise.
8931 * config/mcore/mcore.c: Likewise.
8932 * config/score/score.c: Likewise.
8933 * config/mips/mips.c: Likewise.
8934 * config/bfin/bfin.c: Likewise.
8935 * config/ia64/ia64.c: Likewise (disabled though).
8936
8937 * config/frv/frv.h: Remove pointless remark.
8938
8939 * doc/tm.texi (PROMOTE_FUNCTION_MODE,
8940 TARGET_PROMOTE_FUNCTION_ARGS,
8941 TARGET_PROMOTE_FUNCTION_RETURN): Consolidate into...
8942 (TARGET_PROMOTE_FUNCTION_MODE): ... this.
8943
8944 2009-08-01 Sebastian Pop <sebastian.pop@amd.com>
8945
8946 * doc/invoke.texi (-fgraphite-force-parallel): Renamed
8947 -floop-parallelize-all.
8948 * toplev.c (process_options): Rename flag_graphite_force_parallel to
8949 flag_loop_parallelize_all.
8950 * tree-ssa-loop.c (gate_graphite_transforms): Same.
8951 * graphite.c (graphite_transform_loops): Same.
8952 * common.opt: Same.
8953 * graphite-poly.c (apply_poly_transforms): Same.
8954
8955 2009-07-31 Richard Earnshaw <rearnsha@arm.com>
8956
8957 PR tree-optimization/40914
8958 * ipa-prop.c (ipa_get_ptr_load_param): New argument use_delta,
8959 if set, then check the delta field of the PMF record.
8960 (ipa_get_stmt_member_ptr_load_param): Propagate new param use_delta.
8961 (ipa_analyze_call_uses): Handle machines where the vbit for a PMF
8962 call is stored in the delta.
8963
8964 2009-07-31 Adam Nemet <anemet@caviumnetworks.com>
8965
8966 * config/mips/mips.md (*clear_upper32_dext): New pattern.
8967
8968 2009-07-31 Uros Bizjak <ubizjak@gmail.com>
8969
8970 * config/i386/bsd.h (ASM_BYTE): New define.
8971 * config/i386/darwin.h (ASM_BYTE): Rename from ASM_BYTE_OP.
8972 * config/i386/att.h (ASM_BYTE): New define. Use ASM_BYTE instead of
8973 .byte. Use fputs or putc instead of fprintf where appropriate.
8974 * config/i386/i386-interix.h: Use ASM_BYTE instead of .byte. Use
8975 fputs or putc instead of fprintf where appropriate.
8976 * config/i386/i386elf.h: Ditto.
8977 * config/i386/sysv4.h: Ditto.
8978
8979 * config/i386/i386.c (TARGET_ASM_BYTE_OP): New define.
8980 * config/i386/i386.md (x86_sahf_1): Use ASM_BYTE instead of .byte.
8981 (*tls_global_dynamic_64): Ditto.
8982
8983 2009-07-31 Christian Bruel <christian.bruel@st.com>
8984
8985 * gcc/config.gcc (sh*-*-elf): test with_libgloss.
8986
8987 2009-07-31 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8988
8989 * config/arm/arm.c (arm_arm_address_cost): Fix typo.
8990 Remove dead code for MINUS.
8991
8992 2009-07-31 Anthony Green <green@moxielogic.com>
8993
8994 * config/moxie/moxie.c (moxie_expand_prologue): Use $r5 instead of
8995 $r12 in prologue.
8996 (moxie_expand_epilogue): Ditto for epilogue.
8997 (moxie_setup_incoming_varargs): ABI change. Use 5 registers for
8998 incoming arguments.
8999 (moxie_function_arg): Ditto.
9000 (moxie_pass_by_reference): Ditto.
9001 (moxie_arg_partial_bytes): Ditto.
9002 * config/moxie/moxie.h (CALL_USED_REGISTERS): Ditto.
9003 (FUNCTION_ARG_ADVANCE) Ditto.
9004 (REG_PARM_STACK_SPACE) Ditto.
9005 (FUNCTION_ARG_REGNO_P) Dito.
9006
9007 * config.gcc: Add moxie linux config support.
9008 * gcc/config/moxie/uclinux.h: New file.
9009
9010 2009-07-31 DJ Delorie <dj@redhat.com>
9011
9012 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
9013 (UNSPECV_SP_SWITCH_E): New.
9014 (sp_switch_1): Change to an unspec.
9015 (sp_switch_2): Change to an unspec. Don't use post-inc when we
9016 replace $r15.
9017 * config/sh/sh.c (sh_expand_prologue): Use the constant pool to
9018 reference the new stack's address
9019
9020 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
9021
9022 * Makefile.in (OBJS-common): Added dependence on graphite-blocking.o,
9023 graphite-clast-to-gimple.o, graphite-dependences.o,
9024 graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
9025 graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o.
9026 (graphite-blocking.o,
9027 graphite-clast-to-gimple.o, graphite-dependences.o,
9028 graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
9029 graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o): New.
9030 * cfgloop.c (alloc_loop): Set loop->can_be_parallel to false.
9031 * cfgloop.h (struct loop): Add can_be_parallel field.
9032 * common.opt (fgraphite-identity): Moved up.
9033 (fgraphite-force-parallel): New flag.
9034 * graphite.c: Rewrite.
9035 * graphite.h: Rewrite.
9036 * passes.c (init_optimization_passes): Schedule a pass of DCE and LIM
9037 after Graphite.
9038 * toplev.c (graphite_out_file): New file descriptor.
9039 (graphite_in_file): New.
9040 (process_options): flag_graphite_force_parallel cannot be used without
9041 Graphite.
9042 * tree-ssa-loop.c: Include toplev.h.
9043 (gate_graphite_transforms): Enable flag_graphite for
9044 flag_graphite_force_parallel.
9045
9046 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
9047
9048 * ChangeLog.graphite: New.
9049 * graphite-blocking.c: New.
9050 * graphite-clast-to-gimple.c: New.
9051 * graphite-clast-to-gimple.h: New.
9052 * graphite-dependences.c: New.
9053 * graphite-dependences.h: New.
9054 * graphite-interchange.c: New.
9055 * graphite-poly.c: New.
9056 * graphite-poly.h: New.
9057 * graphite-ppl.c: New.
9058 * graphite-ppl.h: New.
9059 * graphite-scop-detection.c: New.
9060 * graphite-scop-detection.h: New.
9061 * graphite-sese-to-poly.c: New.
9062 * graphite-sese-to-poly.h: New.
9063 * sese.c: New.
9064 * sese.h: New.
9065
9066 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
9067
9068 * tree-chrec.c (evolution_function_right_is_integer_cst): New.
9069 * tree-chrec.h (evolution_function_right_is_integer_cst): Declared.
9070
9071 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
9072
9073 * tree-chrec.c (operator_is_linear): Handle BIT_NOT_EXPR.
9074 (scev_is_linear_expression): Return false if the evolution is not
9075 affine multivariate.
9076
9077 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
9078
9079 * tree-data-ref.c (graphite_find_data_references_in_stmt): New.
9080 * tree-data-ref.h (graphite_find_data_references_in_stmt): Declared.
9081
9082 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
9083
9084 * tree-data-ref.c (debug_data_references): New.
9085 (debug_data_reference): New.
9086 * tree-data-ref.h (debug_data_references): Declared.
9087 (debug_data_reference): Declared.
9088
9089 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
9090
9091 * tree-data-ref.c (stmt_simple_memref_p: Removed.
9092 * tree-data-ref.h (scop_p): Removed.
9093 (struct data_reference): Remove field scop.
9094 (DR_SCOP): Removed.
9095 (stmt_simple_memref_p): Removed.
9096
9097 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
9098
9099 * cfgloop.h (create_empty_loop_on_edge): Pass an extra argument.
9100 * cfgloopmanip.c (create_empty_loop_on_edge): Leave the loop_latch
9101 basic block empty.
9102
9103 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
9104
9105 * doc/invoke.texi (-fgraphite-force-parallel): Documented.
9106
9107 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
9108
9109 * doc/invoke.texi (-fgraphite-identity): Documented.
9110
9111 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
9112
9113 * tree-scalar-evolution.c: Fix comment.
9114 (instantiate_scev_1): Return unknow from scev instantiation if the
9115 result is not above instantiate_below.
9116
9117 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
9118
9119 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop): Not
9120 static anymore. Instantiate the symbols that may have been introduced
9121 by chrec_apply.
9122 * tree-scalar-evolution.h (compute_overall_effect_of_inner_loop):
9123 Declared.
9124
9125 2009-07-30 DJ Delorie <dj@redhat.com>
9126
9127 * config/mep/mep.c (mep_asm_init_sections): Add section flags and
9128 .vliw directive to VLIW sections.
9129
9130 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9131
9132 * Makefile.in (AUTOCONF, ACLOCAL, ACLOCAL_AMFLAGS, aclocal_deps):
9133 New variables.
9134 ($(srcdir)/configure, $(srcdir)/aclocal.m4): New rules.
9135 (AUTOHEADER): New variable.
9136 ($(srcdir)/cstamp-h.in): Use it.
9137
9138 2009-07-30 Michael Meissner <meissner@linux.vnet.ibm.com>
9139 Pat Haugen <pthaugen@us.ibm.com>
9140 Revital Eres <ERES@il.ibm.com>
9141
9142 * config/rs6000/vector.md (VEC_F): Add VSX support.
9143 (VEC_A): Ditto.
9144 (VEC_N): Ditto.
9145 (mov<mode>): Ditto.
9146 (vector_load_<mode>): Ditto.
9147 (vector_store_<mode>): Ditto.
9148 (vector GPR move split): Ditto.
9149 (vec_reload_and_plus_<mptrsize>): Ditto.
9150 (vec_reload_and_reg_<mptrsize>): Ditto.
9151 (add<mode>3): Ditto.
9152 (sub<mode>3): Ditto.
9153 (mul<mode>3): Ditto.
9154 (neg<mode>2): Ditto.
9155 (abs<mode>2): Ditto.
9156 (smin<mode>3): Ditto.
9157 (smax<mode>3): Ditto.
9158 (vector_eq<mode>): Ditto.
9159 (vector_gt<mode>): Ditto.
9160 (vector_ge<mode>): Ditto.
9161 (vector_gtu<mode>): Ditto.
9162 (vector_select_<mode>_uns): Ditto.
9163 (vector_eq_<mode>_p): Ditto.
9164 (vector_gt_<mode>_p): Ditto.
9165 (vector_ge_<mode>_p): Ditto.
9166 (vector_gtu_<mode>_p): Ditto.
9167 (cr6_test_for_zero): Ditto.
9168 (cr6_test_for_zero_reverse): Ditto.
9169 (cr6_test_for_lt): Ditto.
9170 (cr6_test_for_lt_reverse): Ditto.
9171 (xor<mode>3): Ditto.
9172 (ior<mode>3): Ditto.
9173 (and<mode>3): Ditto.
9174 (one_cmpl<mode>2): Ditto.
9175 (nor<mode>2): Ditto.
9176 (andc<mode>2): Ditto.
9177 (float<VEC_int<mode>2): Ditto.
9178 (unsigned_float<VEC_int><mode>2): Ditto.
9179 (fix_trunc<mode><VEC_int>2): Ditto.
9180 (fixuns_trunc<mode><VEC_int>2): Ditto.
9181 (vec_init<mode>):
9182 (vec_set<mode>): Ditto.
9183 (vec_extract<mode>): Ditto.
9184 (vec_interleave_highv4sf): Ditto.
9185 (vec_interleave_lowv4sf): Ditto.
9186 (vec_realign_load_<mode>): Ditto.
9187 (vec_shl_<mode>): Ditto.
9188 (vec_shr_<mode>): Ditto.
9189 (div<mode>3): New patterns for VSX.
9190 (vec_interleave_highv2df): Ditto.
9191 (vec_interleave_lowv2df): Ditto.
9192 (vec_pack_trunc_v2df): Ditto.
9193 (vec_pack_sfix_trunc_v2df): Ditto.
9194 (vec_pack_ufix_trunc_v2df): Ditto.
9195 (vec_unpacks_hi_v4sf): Ditto.
9196 (vec_unpacks_lo_v4sf): Ditto.
9197 (vec_unpacks_float_hi_v4si): Ditto.
9198 (vec_unpacks_float_lo_v4si): Ditto.
9199 (vec_unpacku_float_hi_v4si): Ditto.
9200 (vec_unpacku_float_lo_v4si): Ditto.
9201 (movmisalign<mode>): Ditto.
9202 (vector_ceil<mode>2): New patterns for vectorizing math library.
9203 (vector_floor<mode>2): Ditto.
9204 (vector_btrunc<mode>2): Ditto.
9205 (vector_copysign<mode>3): Ditto.
9206
9207 * config/rs6000/predicates.md (easy_vector_constant_msb): New
9208 predicate for setting the high bit in each word, used for copysign.
9209
9210 * config/rs6000/ppc-asm.h (f19): Whitespace.
9211 (f32-f63): Define if VSX.
9212 (v0-v31): Define if Altivec.
9213 (vs0-vs63): Define if VSX.
9214
9215 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power7.md and vsx.md.
9216
9217 * config/rs6000/power7.md: New file, provide tuning parameters for
9218 -mcpu=power7.
9219
9220 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): Add VSX support.
9221 (rs6000_cpu_cpp_builtins): Ditto.
9222 (altivec_overloaded_builtins): Ditto.
9223 (altivec_resolve_overloaded_builtin): Ditto.
9224
9225 * config/rs6000/rs6000.opt (-mno-vectorize-builtins): Add new
9226 debug switch to disable vectorizing simple math builtin
9227 functions.
9228
9229 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
9230 Vectorize simple math builtin functions.
9231 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
9232 hook to vectorize math builtins.
9233 (rs6000_override_options): Enable -mvsx on -mcpu=power7.
9234 (rs6000_builtin_conversion): Add VSX/power7 support.
9235 (rs6000_builtin_vec_perm): Ditto.
9236 (vsplits_constant): Add support for loading up a vector constant
9237 with just the high bit set in each part.
9238 (rs6000_expand_vector_init): Add VSX/power7 support.
9239 (rs6000_expand_vector_set): Ditto.
9240 (rs6000_expand_vector_extract): Ditto.
9241 (rs6000_emit_move): Ditto.
9242 (bdesc_3arg): Ditto.
9243 (bdesc_2arg): Ditto.
9244 (bdesc_1arg): Ditto.
9245 (rs6000_expand_ternop_builtin): Ditto.
9246 (altivec_expand_builtin): Ditto.
9247 (rs6000_expand_unop_builtin): Ditto.
9248 (rs6000_init_builtins): Ditto.
9249 (altivec_init_builtins): Ditto.
9250 (builtin_function_type): Ditto.
9251 (rs6000_common_init_builtins): Ditto.
9252 (rs6000_handle_altivec_attribute); Ditto.
9253 (rs6000_mangle_type): Ditto.
9254 (rs6000_vector_mode_supported_p): Ditto.
9255 (rs6000_mode_dependent_address): Altivec addresses with AND -16
9256 are mode dependent.
9257
9258 * config/rs6000/vsx.md: New file for VSX support.
9259
9260 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): New macro for
9261 identifing values with just the most significant bit set.
9262 (enum rs6000_builtins): Add builtins for VSX. Add simple math
9263 vectorized builtins.
9264
9265 * config/rs6000/altivec.md (UNSPEC_VRFIP): Delete.
9266 (UNSPEC_VRFIM): Delete.
9267 (splitter for loading up vector with most significant bit): New
9268 splitter for vectorizing copysign.
9269 (altivec_vrfiz): Rename from altivec_fturncv4sf2. Add support for
9270 vectorizing simple math functions.
9271 (altivec_vrfip): Add support for vectorizing simple math functions.
9272 (altivec_vrfim): Ditto.
9273 (altivec_copysign_v4sf3): New insn for Altivec copysign support.
9274
9275 * config/rs6000/rs6000.md (UNSPEC_BPERM): New constant.
9276 (power7.md, vsx.md): Include for power7 support.
9277 (copysigndf3): Use VSX instructions if -mvsx.
9278 (negdf2_fpr): Ditto.
9279 (absdf2_fpr): Ditto.
9280 (nabsdf2_fpr): Ditto.
9281 (adddf3_fpr): Ditto.
9282 (subdf3_fpr): Ditto.
9283 (muldf3_fpr): Ditto.
9284 (divdf3_fpr): Ditto.
9285 (fix_truncdfdi2_fpr): Ditto.
9286 (cmpdf_internal1): Ditto.
9287 (fred, fred_fpr): Convert into expander/insn to add VSX support.
9288 (btruncdf2, btruncdf2_fpr): Ditto.
9289 (ceildf2, ceildf2_fpr): Ditto.
9290 (floordf2, floordf2_fpr): Ditto.
9291 (floatdidf2, floatdidf2_fpr): Ditto.
9292 (fmadddf4_fpr): Name insn. Use VSX instructions if -mvsx.
9293 (fmsubdf4_fpr): Ditto.
9294 (fnmadddf4_fpr_1): Ditto.
9295 (fnmadddf4_fpr_2): Ditto.
9296 (fnmsubdf4_fpr_1): Ditto.
9297 (fnmsubdf4_fpr_2): Ditto.
9298 (fixuns_truncdfdi2): Add expander for VSX support.
9299 (fix_truncdfdi2): Ditto.
9300 (fix_truncdfsi2): Ditto.
9301 (ftruncdf2): Ditto.
9302 (btruncsf2): Whitespace.
9303 (movdf_hardfloat32): Add support for VSX registers.
9304 (movdf_softfloat32): Ditto.
9305 (movdf_hardfloat64): Ditto.
9306 (movdf_hardfloat64_mfpgpr): Ditto.
9307 (movdf_softfloat64): Ditto.
9308 (movti splitters): Add check for vector registers supporting
9309 TImode in the future.
9310 (bpermd): Add power7 bpermd instruction.
9311
9312 * config/rs6000/altivec.h (vec_div): Define if VSX.
9313 (vec_mul): Ditto.
9314 (vec_msub): Ditto.
9315 (vec_nmadd): Ditto.
9316 (vec_nearbyint): Ditto.
9317 (vec_rint): Ditto.
9318 (vec_sqrt): Ditto.
9319 (all predicates): Use the generic builtin function, and not the V4SF
9320 specific function so that the predicates will work with VSX's V2DF.
9321 (vec_all_*): Ditto.
9322 (vec_any_*): Ditto.
9323
9324 * doc/extend.texi (PowerPC Altivec/VSX Built-in Functions):
9325 Document new VSX functions and types.
9326
9327 * doc/invoke.texi (PowerPc options): Document -mpopcntd, -mvsx
9328 switches.
9329
9330 * doc/md.texi (PowerPC constraints): Document "wd", "wf", "ws",
9331 "wa", and "j" constraints. Modify "v" to talk about Altivec
9332 instead of just vector.
9333
9334 2009-07-30 Andrew MacLeod <amacleod@redhat.com>
9335
9336 PR debug/26475
9337 * tree-into-ssa.c (insert_phi_nodes_for, rewrite_add_phi_arguments): Set
9338 location for phi arguments.
9339 (rewrite_update_phi_arguments): Find locations for reaching defs.
9340 * tree-ssa-threadupdate.c (create_edge_and_update_destination_phis):
9341 Add location to add_phi_arg calls.
9342 * tree-loop-districbution.c (update_phis_for_loop_copy): Add locations.
9343 * tree-ssa-loop-manip.c (create_iv, add_exit_phis_edge,
9344 split_loop_exit_edge, tree_transform_and_unroll_loop): Add locations.
9345 * tree-tailcall.c (add_successor_phi_arg, eliminate_tail_call,
9346 create_tailcall_accumulator, tree_optimize_tail_calls_1): Add locations.
9347 * tree.h (struct phi_arg_d): Add location_t to PHI arguments.
9348 * tree-phinodes.c (make_phi_node): Initialize location.
9349 (resize_phi_node): Initialize location to UNKNOWN_LOCATION.
9350 (add_phi_arg): Add location parameter.
9351 (remove_phi_arg_num): Move location when moving phi argument.
9352 * omp-low.c (expand_parallel_call, expand_omp_for_static_chunk): Set
9353 location.
9354 * tree-vect-loop-manip.c (slpeel_update_phis_for_duplicate_loop,
9355 slpeel_update_phi_nodes_for_guard1,
9356 slpeel_update_phi_nodes_for_guard2,
9357 slpeel_tree_duplicate_loop_to_edge_cfg, set_prologue_iterations,
9358 vect_loop_versioning): Set locations.
9359 * tree-parloops.c (create_phi_for_local_result,
9360 transform_to_exit_first_loop, create_parallel_loop): Add locations.
9361 * gimple-pretty-print.c (dump_gimple_phi): Dump lineno's if present.
9362 * tree-vect-loop.c (get_initial_def_for_induction,
9363 vect_create_epilog_for_reduction, vect_finalize_reduction): Add
9364 locations.
9365 * tree-flow-inline.h (gimple_phi_arg_location): New. Return locus.
9366 (gimple_phi_arg_location_from_edge): New. Return locus from an edge.
9367 (gimple_phi_arg_set_location): New. Set locus.
9368 (gimple_phi_arg_has_location): New. Check for locus.
9369 (redirect_edge_var_map_location): New. Return locus from var_map.
9370 * tree-vect-data-refs.c (vect_setup_realignment): Set location.
9371 * tree-ssa-phiopt.c (conditional_replacement): Set locus when
9372 combining PHI arguments.
9373 (cond_store_replacement): Set location.
9374 * cfgexpand.c (gimple_assign_rhs_to_tree): Transfer locus if possible.
9375 * grpahite.c (add_loop_exit_phis, add_guard_exit_phis,
9376 scop_add_exit_phis_edge): Add locations.
9377 * tree-cfgcleanup.c (remove_forwarder_block,
9378 remove_forwarder_block_with_phi): Add locations.
9379 * tree-ssa-pre.c (insert_into_preds_of_block): Add locations.
9380 * tree-predcom.c (initialize_root_vars, initialize_root_vars_lm): Add
9381 locations.
9382 * tree-ssa-dce.c (forward_edge_to_pdom): Add locations.
9383 * tree-ssa.c (redirect_edge_var_map_add, ssa_redirect_edge,
9384 flush_pending_stmts): Add source location.
9385 * lambda-code.c (perfect_nestify): Maintain location stack with argument
9386 stack to preserve locations.
9387 * tree-vect-stmts.c (vectorizable_load): Add location.
9388 * tree-inline.c (copy_phis_for_bb): Copy locus.
9389 (setup_one_parameter): Add call locus to inlined parameter stmts.
9390 (initialize_inlined_parameters): Pass in call location as parameter
9391 assignment locus.
9392 (tree_function_versioning): Pass location to setup_one_parameter.
9393 * tree-ssa-phiprop.c (phiprop_insert_phi): Set locations.
9394 * tree-outof-ssa.c (struct _elim_graph): Add source_location vecs for
9395 copy and edge lists.
9396 (insert_partition_copy_on_edge, insert_value_copy_on_edge,
9397 insert_rtx_to_part_on_edge, insert_part_to_rtx_on_edge): Provide a
9398 locus parameter and override the stmt default if provided.
9399 (new_elim_graph, clear_elim_graph, delete_elim_graph,
9400 elim_graph_add_edge, elim_graph_remove_succ_edge,
9401 FOR_EACH_ELIM_GRAPH_SUCC, FOR_EACH_ELIM_GRAPH_PRED, eliminate_build,
9402 elim_forward, elim_unvisited_predecessor, elim_backward, elim_create,
9403 eliminate_phi): Add locus info in elimination graph for each edge and
9404 value copy.
9405 (insert_backedge_copies): Copy locus if present.
9406 * tree-flow.h (struct _edge_var_map): Add locus field.
9407 * tree-switch_conversions.c (fix_phi_nodes): Add locations.
9408 * tree-cfg.c (reinstall_phi_args, gimple_make_forwarder_block,
9409 add_phi_args_after_copy_edge, gimple_lv_adjust_loop_header_phi): Add
9410 locations.
9411 * ipa-struct-reorg.c (make_edge_and_fix_phis_of_dest): Add locations.
9412
9413 2009-07-30 Martin Jambor <mjambor@suse.cz>
9414
9415 PR tree-optimization/40570
9416 * ipa-inline.c (cgraph_decide_inlining): Watch out for dead single
9417 use inlining loops.
9418
9419 2009-07-30 Razya Ladelsky <razya@il.ibm.com>
9420
9421 * ssa-loop-manip.c: Include langhooks.h.
9422 (rewrite_phi_with_iv): New.
9423 (rewrite_all_phi_nodes_with_iv): New.
9424 (canonicalize_loop_ivs): Move here from tree-parloops.c.
9425 Remove reduction_list argument. Use rewrite_all_phi_nodes_with_iv.
9426 * tree-parloops.c (loop_parallel_p): Move out all conditions
9427 except dependency check.
9428 (canonicalize_loop_ivs): Move to tree-ssa-loop-manip.c.
9429 (gen_parallel_loop): Call canonicalize_loop_ivs without
9430 reduction_list argument.
9431 (build_new_reduction): New.
9432 (gather_scalar_reductions): New.
9433 (try_get_loop_niter): New.
9434 (try_create_reduction_list): New.
9435 (parallleize_loops): Change the parallel conditions check.
9436 * tree-flow.h (canonicalize_loop_ivs): Remove one argument.
9437 * Makefile.in (tree-ssa-loop-manip.o): Add langhooks.h dependency.
9438
9439 2009-07-30 Dave Korn <dave.korn.cygwin@gmail.com>
9440
9441 * opt-functions.awk (opt_args): Allow argument to be enclosed in
9442 curly braces.
9443 * doc/options.texi (Option properties): Mention new quoting syntax.
9444
9445 2009-07-29 Douglas B Rupp <rupp@gnat.com>
9446
9447 * config/alpha/alpha.c (alpha_start_function):
9448 Handle VMS_DEBUG_MAIN_POINTER
9449 * config/alpha/vms.h (VMS_DEBUG_MAIN_POINTER): Define new macro.
9450 * doc/invoke.texi: Document -mdebug-main switch.
9451
9452 2009-07-29 Richard Henderson <rth@redhat.com>
9453
9454 * cgraph.c (cgraph_set_call_stmt_including_clones): Tidy.
9455 (cgraph_create_edge_including_clones): Likewise.
9456 * tree-inline.c (copy_bb): Operate on the correct edges
9457 when updating the callgraph.
9458
9459 2009-07-29 Douglas B Rupp <rupp@gnat.com>
9460
9461 * config/alpha/vms-cc.c: Deleted.
9462 * config/alpha/vms-ld.c: Deleted.
9463 * config/alpha/t-vms64: Moved to config/vms
9464 * config/alpha/vms-crt0-64.c: Moved to config/vms
9465 * config/alpha/vms-crt0.c: Moved to config/vms
9466 * config/alpha/vms-psxcrt0-64.c: Moved to config/vms
9467 * config/alpha/vms-psxcrt0.c: Moved to config/vms
9468 * config/alpha/xm-vms.h: Moved to config/vms
9469 * config/alpha/x-vms: Moved to config/vms
9470 * config/alpha/t-vms (vcrt0.o, pcrt0.o): Move rules to new file
9471 config/vms/t-vms.
9472 * config/vms/t-vms: Moved here from config/alpha. Alpha specific
9473 parts removed. (STMP_FIXPROTO, STMP_FIXINC, LIMITS_H_TEST): Set.
9474 (version): Set.
9475 * config/vms/t-vms64: Moved here from config/alpha
9476 * config/vms/vms-crt0-64.c: Moved here from config/alpha.
9477 (argc,argv,envp): Enforce 32bit malloc'ing.
9478 * config/vms/vms-psxcrt0-64.c: Likewise.
9479 * config/vms/vms-crt0.c: Moved here from config/alpha.
9480 * config/vms/vms-psxcrt0.c: Likewise.
9481 * config/vms/vms-crtl-64.h: New file.
9482 * config/vms/vms-crtl.h: New file.
9483 * config/vms/vms.opt: New file.
9484 * config/vms/xm-vms64.h: New file.
9485 * config/vms/xm-vms.h: Moved here from config/alpha.
9486 (STANARD_EXEC_PREFIX, STANDARD_STARTFILE_PREFIX, STANDARD_INCLUDE_DIR):
9487 Set.
9488 * config/vms/x-vms: Moved here from config/alpha.
9489 (version, VMS_EXTRA_PARTS): Moved to t-vms.
9490 (vms-ld.o, vms-cc.o): Removed.
9491 (LN, LN_S, USE_COLLECT2, POD2MAN): Set.
9492
9493 2009-07-29 Douglas B Rupp <rupp@gnat.com>
9494
9495 * dwarf2out.c (add_name_and_src_coords_attributes): Push on the
9496 correct stack (obvious VMS fix).
9497
9498 2009-07-29 Douglas B Rupp <rupp@gnat.com>
9499
9500 * dwarf2out.c (output_file_names): Output VMS style file name, size,
9501 date, version info if VMS_DEBUGGING_INFO defined.
9502 * vmsdgbout.c (vms_file_stats_name): New functon. VMS style file name,
9503 size, date calculating code moved here.
9504
9505 2009-07-29 Paul Brook <paul@codesourcery.com>
9506
9507 * config/arm/lib1funcs.asm (clear_cache): Use ARM_FUNC_START and
9508 do_push/do_pop.
9509
9510 2009-07-29 Uros Bizjak <ubizjak@gmail.com>
9511
9512 PR target/40577
9513 * config/alpha/alpha.c (alpha_expand_unaligned_store): Convert src
9514 to DImode when generating insq_le insn.
9515
9516 2009-07-28 Douglas B Rupp <rupp@gnat.com>
9517
9518 * dwarf2out.c (DWARF2_INDIRECT_STRING_SUPPORT_MISSING_ON_TARGET):
9519 New macro set for VMS_DEBUGGGING_INFO.
9520 (AT_string_form): Use it.
9521
9522 2009-07-28 DJ Delorie <dj@redhat.com>
9523
9524 * config/mep/mep.c (vtext_section): New.
9525 (vftext_section): New.
9526 (ftext_section): New.
9527 (mep_select_section): Add support for functions.
9528 (mep_unique_section): Likewise.
9529 (mep_asm_init_sections): Likewise.
9530 (mep_encode_section_info): Remove it from here.
9531
9532 * config/mep/mep.h (USE_SELECT_SECTION_FOR_FUNCTIONS): Define.
9533
9534 2009-07-28 Paolo Bonzini <bonzinI@gnu.org>
9535
9536 * tree.h (TREE_DEPRECATED): Document it is used for types too.
9537 (TYPE_VECTOR_OPAQUE): Use default_def_flag
9538
9539 2009-07-28 Douglas B Rupp <rupp@gnat.com>
9540
9541 * dwarf2out.c (output_file_names): Test new macro
9542 DWARF2_DIR_SHOULD_END_WITH_SEPARATOR.
9543 (add_comp_dir_attribute): Likewise.
9544
9545 2009-07-28 Kai Tietz <kai.tietz@onevision.com>
9546
9547 * config/i386/mingw-w64.h (LINK_SPEC): Add
9548 separating space between commands.
9549
9550 2009-07-28 Jan Hubicka <jh@suse.cz>
9551
9552 PR tree-optimization/40759
9553 * tree-ssa-dce.c (mark_virtual_phi_result_for_renaming): Mark all uses
9554 for renaming.
9555
9556 2009-07-27 DJ Delorie <dj@redhat.com>
9557
9558 * config/mep/mep.c (mep_expand_builtin_saveregs): Make sure 64-bit
9559 types are dword-aligned.
9560 (mep_expand_va_start): Likewise.
9561
9562 2009-07-27 Olivier Hainque <hainque@adacore.com>
9563 Douglas B Rupp <rupp@gnat.com>
9564
9565 * convert.c (convert_to_pointer): Don't assume the target
9566 pointer type is POINTER_SIZE long. Fetch its precision instead.
9567
9568 2009-07-27 Douglas B Rupp <rupp@gnat.com>
9569
9570 * system.h (fopen): Undefine if macro.
9571
9572 2009-07-27 Jakub Jelinek <jakub@redhat.com>
9573
9574 * dwarf2out.c (output_cfi_p): Removed.
9575 (output_cfis): New function.
9576 (output_fde): New function, split from output_call_frame_info.
9577 (output_call_frame_info): Use it.
9578 (dwarf2out_switch_text_section): Use output_cfis.
9579
9580 2009-07-24 Kai Tietz <kai.tietz@onevision.com>
9581
9582 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Error build when
9583 TARGET_BI_ARCH is specified without enabling SJLJ.
9584 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Define MD_UNWIND_SUPPORT,
9585 if TARGET_64BIT and TARGET_BI_ARCH aren't defined.
9586
9587 2009-07-26 Mikael Pettersson <mikpe@it.uu.se>
9588
9589 * arm.md (negdi2): Use DImode if forcing a value into a register.
9590
9591 2009-07-26 Ira Rosen <irar@il.ibm.com>
9592
9593 PR tree-optimization/40801
9594 * tree-vect-stmts.c (vectorizable_call): Get previous copy
9595 of vector operand from the previous copy of vector statement.
9596 Pass the correct definition type value to
9597 vect_get_vec_def_for_stmt_copy().
9598
9599 2009-07-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9600
9601 * collect2.c (scan_libraries): Use CONST_CAST2 to perform char ** to
9602 const char ** conversion.
9603
9604 2009-07-25 David Daney <ddaney@caviumnetworks.com>
9605
9606 * system.h (gcc_assert): Invoke __builtin_unreachable() instead of
9607 fancy_abort() if !ENABLE_ASSERT_CHECKING.
9608 (gcc_unreachable): Invoke __builtin_unreachable() if
9609 !ENABLE_ASSERT_CHECKING.
9610
9611 2009-07-25 David Daney <ddaney@caviumnetworks.com>
9612
9613 PR rtl-optimization/40445
9614 * emit-rtl.c (next_nonnote_insn_bb): New function.
9615 * rtl.h (next_nonnote_insn_bb): Declare new function.
9616 * cfgcleanup.c (try_optimize_cfg): Don't remove an empty block
9617 with no successors that is the successor of the ENTRY_BLOCK.
9618 Continue from the top after removing an empty fallthrough block.
9619 * cfgrtl.c (get_last_bb_insn): Call next_nonnote_insn_bb instead
9620 of next_nonnote_insn.
9621
9622 2009-07-25 David Daney <ddaney@caviumnetworks.com>
9623
9624 * cfgcleanup.c (old_insns_match_p): Handle the case of empty blocks.
9625
9626 2009-07-25 Martin Jambor <mjambor@suse.cz>
9627
9628 * c-common.c (c_common_attribute_table): New element for noclone.
9629 (handle_noclone_attribute): New function. Forward-declare.
9630 * tree-inline.c (tree_versionable_function_p): Check for noclone
9631 attribute.
9632 * doc/extend.texi (Labels as Values): Document need for noclone.
9633 (Function Attributes): Document noclone attribute.
9634
9635 2009-07-25 Jakub Jelinek <jakub@redhat.com>
9636
9637 PR rtl-optimization/34999
9638 * dwarf2out.c (struct dw_fde_struct): Add dw_fde_switch_cfi
9639 and dw_fde_switched_cold_to_hot fields.
9640 (output_cfi_p): New function.
9641 (output_call_frame_info): If fde->dw_fde_switched_sections,
9642 output 2 FDEs instead of one with corrupted header.
9643 (dwarf2out_do_cfi_startproc): New function.
9644 (dwarf2out_begin_prologue): Use it. Initialize fde->dw_fde_switch_cfi
9645 and fde->dw_fde_switched_cold_to_hot.
9646 (dwarf2out_switch_text_section): Compute
9647 fde->dw_fde_switched_cold_to_hot. Switch to new text section here.
9648 If dwarf2out_do_cfi_asm, emit .cfi_endproc before it and call
9649 dwarf2out_do_cfi_startproc plus emit again currently active CFI insns.
9650 Otherwise, compute fde->dw_fde_switch_cfi.
9651
9652 2009-07-24 Cary Coutant <ccoutant@google.com>
9653
9654 * tree-cfg.c (assign_discriminator): Add explicit parentheses.
9655
9656 2009-07-24 Cary Coutant <ccoutant@google.com>
9657
9658 * cfghooks.c (split_block): Copy discriminator to new block.
9659 * tree-cfg.c (assign_discriminator): Check location of last
9660 instruction in block as well as first.
9661
9662 2009-07-24 Uros Bizjak <ubizjak@gmail.com>
9663
9664 * config/i386/linux.c: Use fputs or putc instead of fprintf
9665 where appropriate.
9666 * config/i386/gas.h: Ditto.
9667 * config/i386/x86-64.h: Ditto.
9668 * config/i386/att.h: Ditto.
9669
9670 2009-07-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9671
9672 * expmed.c (emit_store_flag): Use a recursive call to optimize the
9673 xor case.
9674
9675 2009-07-24 Martin Jambor <mjambor@suse.cz>
9676
9677 * ipa-prop.h (struct ipa_node_params): New flag node_enqued.
9678 (ipa_push_func_to_list_1): Declare.
9679 (ipa_push_func_to_list): New function.
9680
9681 * ipa-prop.c (ipa_push_func_to_list_1): New function.
9682 (ipa_init_func_list): Call ipa_push_func_to_list_1.
9683 (ipa_push_func_to_list): Removed.
9684 (ipa_pop_func_from_list): Clear node_enqueued flag.
9685
9686 2009-07-24 Andreas Krebbel <krebbel1@de.ibm.com>
9687
9688 * config/s390/s390.c (override_options): Default
9689 max-unrolled-insns to 100 for z10 tuning.
9690
9691 2009-07-24 Tobias Grosser <grosser@fim.uni-passau.de>
9692
9693 * Makefile.in (TREE_DATA_REF_H, tree-vrp.o, tree-cfg.o, tree-if-conv.o
9694 tree-ssa-loop.o, tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o,
9695 tree-ssa-loop-prefetch.o, tree-predcom.o, tree-affine.o,
9696 tree-scalar-evolution.o, tree-data-ref.o, tree-vect-loop.o,
9697 tree-vect-data-refs.o, tree-loop-linear.o, tree-loop-distribution.o
9698 tree-parloops.o, tree-pretty-printer.o, fold-const.o, tree-ssa-dce.o,
9699 lambda-code.o, params.o): Cleanup use of SCEV_H and TREE_DATA_REF_H.
9700
9701 2009-07-24 Kai Tietz <kai.tietz@onevision.com>
9702
9703 * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR): Remove and
9704 use default set in mingw32.h header.
9705 * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Use for 32-bit and
9706 64-bit /mingw/include path.
9707 (STANDARD_STARTFILE_PREFIX_1): Use for 32-bit and 64-bit /mingw/lib
9708 path.
9709
9710 2009-07-23 Neil Vachharajani <nvachhar@google.com>
9711
9712 PR rtl-optimization/40209
9713 * loop-iv.c (iv_analysis_loop_init): Call df_note_add_problem.
9714
9715 2009-07-23 Uros Bizjak <ubizjak@gmail.com>
9716
9717 * config/i386/i386.c: Use ASM_LONG instead of .long. Concatenate
9718 ASM_LONG, LPREFIX, MCOUNT_NAME and PROFILE_COUNT_REGISTER strings
9719 with the rest of string where appropriate. Use fputs or putc
9720 instead of fprintf where appropriate.
9721
9722 2009-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
9723 Pat Haugen <pthaugen@us.ibm.com>
9724 Revital Eres <ERES@il.ibm.com>
9725
9726 * config/rs6000/vector.md: New file. Move most of the vector
9727 expander support here from altivec.md to allow for the VSX vector
9728 unit in the future. Add support for secondary_reload patterns.
9729 Rewrite the patterns for vector comparison, and vector comparison
9730 predicate instructions so that the RTL expresses the desired
9731 behavior, instead of using unspec.
9732
9733 * config/rs6000/constraints.md ("f" constraint): Use
9734 rs6000_constraints to hold the precalculated register class.
9735 ("d" constraint): Ditto.
9736 ("wd" constraint): New constraint for VSX.
9737 ("wf" constraint): Ditto.
9738 ("ws" constraint): Ditto.
9739 ("wa" constraint): Ditto.
9740 ("wZ" constraint): Ditto.
9741 ("j" constraint): Ditto.
9742
9743 * config/rs6000/predicates.md (vsx_register_operand): New
9744 predicate for VSX.
9745 (vfloat_operand): New predicate for vector.md.
9746 (vint_operand): Ditto.
9747 (vlogical_operand): Ditto.
9748 (easy_fp_constant): If VSX, 0.0 is an easy constant.
9749 (easy_vector_constant): Add VSX support.
9750 (altivec_indexed_or_indirect_operand): New predicate for
9751 recognizing Altivec style memory references with AND -16.
9752
9753 * config/rs6000/rs6000.c (rs6000_vector_reload): New static global
9754 for vector secondary reload support.
9755 (rs6000_vector_reg_class): Delete, replacing it with
9756 rs6000_constraints.
9757 (rs6000_vsx_reg_class): Ditto.
9758 (rs6000_constraints): New array to hold the register classes of
9759 each of the register constraints that can vary at runtime.
9760 (builtin_mode_to_type): New static array for builtin function type
9761 creation.
9762 (builtin_hash_table): New static hash table for builtin function
9763 type creation.
9764 (TARGET_SECONDARY_RELOAD): Define target hook.
9765 (TARGET_IRA_COVER_CLASSES): Ditto.
9766 (rs6000_hard_regno_nregs_internal): If -mvsx, floating point
9767 registers are 128 bits if VSX memory reference instructions are used.
9768 (rs6000_hard_regno_mode_ok): For VSX, only check if the VSX memory
9769 unit is being used.
9770 (rs6000_debug_vector_unit): Move into rs6000_debug_reg_global.
9771 (rs6000_debug_reg_global): Move -mdebug=reg statements here.
9772 Print several of the scheduling related parameters.
9773 (rs6000_init_hard_regno_mode_ok): Switch to putting constraints in
9774 rs6000_constraints instead of rs6000_vector_reg_class. Move
9775 -mdebug=reg code to rs6000_debug_reg_global. Add support for
9776 -mvsx-align-128 debug switch. Drop testing float_p if VSX or
9777 Altivec. Add VSX support. Setup for secondary reload support on
9778 Altivec/VSX registers.
9779 (rs6000_override_options): Make power7 set the scheduling groups
9780 like the power5. Add support for new debug switches to override
9781 the scheduling defaults. Temporarily disable -mcpu=power7 from
9782 setting -mvsx. Add support for debug switches -malways-hint,
9783 -msched-groups, and -malign-branch-targets.
9784 (rs6000_buitlin_conversion): Add support for returning unsigned
9785 vector conversion functions to fix regressions due to stricter
9786 type checking.
9787 (rs6000_builtin_mul_widen_even): Ditto.
9788 (rs6000_builtin_mul_widen_odd): Ditto.
9789 (rs6000_builtin_vec_perm): Ditto.
9790 (rs6000_vec_const_move): On VSX, use xxlxor to clear register.
9791 (rs6000_expand_vector_init): Initial VSX support for using xxlxor
9792 to zero a register.
9793 (rs6000_emit_move): Fixup invalid const symbol_ref+reg that is
9794 generated upstream.
9795 (bdesc_3arg): Add builtins for unsigned types. Add builtins for
9796 VSX types for bit operations. Changes to accomidate vector.md.
9797 (bdesc_2arg): Ditto.
9798 (bdesc_1arg): Ditto.
9799 (struct builtin_description_predicates): Rewrite predicate
9800 handling so that RTL describes the operation, instead of passing
9801 the instruction to be used as a string argument.
9802 (bdesc_altivec_preds): Ditto.
9803 (altivec_expand_predicate_builtin): Ditto.
9804 (altivec_expand_builtin): Ditto.
9805 (rs6000_expand_ternop_builtin): Use a switch instead of an if
9806 statement for vsldoi support.
9807 (altivec_expand_ld_builtin): Change to use new names from vector.md.
9808 (altivec_expand_st_builtin): Ditto.
9809 (paired_expand_builtin): Whitespace changes.
9810 (rs6000_init_builtins): Add V2DF/V2DI types. Initialize the
9811 builtin_mode_to_type table for secondary reload. Call
9812 builtin_function_type to build random builtin functions.
9813 (altivec_init_builtins): Change to use builtin_function_type to
9814 create builtin function types dynamically as we need them.
9815 (builtin_hash_function): New support for hashing the tree types
9816 for builtin function as we need it, rather than trying to build
9817 all of the trees that we need. Add initial preliminary VSX support.
9818 (builtin_function_type): Ditto.
9819 (builtin_function_eq): Ditto.
9820 (builtin_hash_struct): Ditto.
9821 (rs6000_init_builtins): Ditto.
9822 (rs6000_common_init_builtins): Ditto.
9823 (altivec_init_builtins): Ditto.
9824 (rs6000_common_init_builtins): Ditto.
9825 (enum reload_reg_type): New enum for simplifing reg classes.
9826 (rs6000_reload_register_type): Simplify register classes into GPR,
9827 Vector, and other registers. Altivec and VSX addresses in reload.
9828 (rs6000_secondary_reload_inner): Ditto.
9829 (rs6000_ira_cover_classes): New target hook, that returns the
9830 appropriate cover classes, based on -mvsx being used or not.
9831 (rs6000_secondary_reload_class): Add VSX support.
9832 (get_vec_cmp_insn): Delete, rewrite vector conditionals.
9833 (get_vsel_insn): Ditto.
9834 (rs6000_emit_vector_compare): Rewrite vector conditional support
9835 so that where we can, we use RTL operators, instead of blindly use
9836 UNSPEC.
9837 (rs6000_emit_vector_select): Ditto.
9838 (rs6000_emit_vector_cond_expr): Ditto.
9839 (rs6000_emit_minmax): Directly generate min/max under altivec, vsx.
9840 (create_TOC_reference): Add -mdebug=addr support.
9841 (emit_frame_save): VSX loads/stores need register indexed addressing.
9842
9843 * config/rs6000/rs6000.md: Include vector.md.
9844
9845 * config/rs6000/t-rs6000 (MD_INCLUDES): Add vector.md.
9846
9847 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
9848 support for V2DI, V2DF in logical, permute, select operations.
9849
9850 * config/rs6000/rs6000.opt (-mvsx-scalar-double): Add new debug
9851 switch for vsx/power7.
9852 (-mvsx-scalar-memory): Ditto.
9853 (-mvsx-align-128): Ditto.
9854 (-mallow-movmisalign): Ditto.
9855 (-mallow-df-permute): Ditto.
9856 (-msched-groups): Ditto.
9857 (-malways-hint): Ditto.
9858 (-malign-branch-targets): Ditto.
9859
9860 * config/rs6000/rs6000.h (IRA_COVER_CLASSES): Delete, use target
9861 hook instead.
9862 (IRA_COVER_CLASSES_PRE_VSX): Cover classes if not -mvsx.
9863 (IRA_COVER_CLASSES_VSX): Cover classes if -mvsx.
9864 (rs6000_vector_reg_class): Delete.
9865 (rs6000_vsx_reg_class): Ditto.
9866 (enum rs6000_reg_class_enum): New enum for the constraints that
9867 vary based on target switches.
9868 (rs6000_constraints): New array to hold the register class for all
9869 of the register constraints that vary based on the switches used.
9870 (ALTIVEC_BUILTIN_*_UNS): Add unsigned builtin functions.
9871 (enum rs6000_builtins): Add unsigned varients for the builtin
9872 declarations returned by target hooks for expanding multiplies,
9873 select, and permute operations. Add VSX builtins.
9874 (enum rs6000_builtin_type_index): Add entries for VSX.
9875 (V2DI_type_node): Ditto.
9876 (V2DF_type_node): Ditto.
9877 (unsigned_V2DI_type_node): Ditto.
9878 (bool_long_type_node): Ditto.
9879 (intDI_type_internal_node): Ditto.
9880 (uintDI_type_internal_node): Ditto.
9881 (double_type_internal_node): Ditto.
9882
9883 * config/rs6000/altivec.md (whole file): Move all expanders to
9884 vector.md from altivec.md. Rename insn matching functions to be
9885 altivec_foo.
9886 (UNSPEC_VCMP*): Delete, rewrite vector comparisons.
9887 (altivec_vcmp*): Ditto.
9888 (UNSPEC_VPERM_UNS): New, add for unsigned types using vperm.
9889 (VM): New iterator for moves that includes the VSX types.
9890 (altivec_vperm_<mode>): Add VSX types. Add unsigned types.
9891 (altivec_vperm_<mode>_uns): New, for unsigned types.
9892 (altivec_vsel_*): Rewrite vector comparisons and predicate builtins.
9893 (altivec_eq<mode>): Ditto.
9894 (altivec_gt<mode>): Ditto.
9895 (altivec_gtu<mode>): Ditto.
9896 (altivec_eqv4sf): Ditto.
9897 (altivec_gev4sf): Ditto.
9898 (altivec_gtv4sf): Ditto.
9899 (altivec_vcmpbfp_p): Ditto.
9900
9901 2009-07-23 Richard Earnshaw <rearnsha@arm.com>
9902
9903 * arm.md (split for ior/xor with shift and zero-extend): Cast op3 to
9904 unsigned HWI.
9905
9906 2009-07-23 Uros Bizjak <ubizjak@gmail.com>
9907
9908 PR target/40832
9909 * config/i386/i386.c (output_387_ffreep): Rewrite to use
9910 ASM_SHORT instead of .word.
9911 * config/i386/i386.md (*tls_global_dynamic_64): Use ASM_SHORT
9912 instead of .word in asm template.
9913
9914 2009-07-22 Vladimir Makarov <vmakarov@redhat.com>
9915
9916 PR target/37488
9917 * ira-lives.c (bb_has_abnormal_call_pred): New function.
9918 (process_bb_node_lives): Use it.
9919
9920 * ira.c (setup_cover_and_important_classes): Don't setup
9921 ira_important_class_nums. Add cover classes to the end of
9922 important classes.
9923 (cover_class_order, comp_reg_classes_func, reorder_important_classes):
9924 New.
9925 (find_reg_class_closure): Use reorder_important_classes.
9926
9927 * config/i386/i386.h (IRA_COVER_CLASSES): Remove.
9928
9929 * config/i386/i386.c (i386_ira_cover_classes): New function.
9930 (TARGET_IRA_COVER_CLASSES): Redefine.
9931
9932 * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Add a comment about
9933 importance of order of cover classes in the array.
9934
9935 2009-07-22 Diego Novillo <dnovillo@google.com>
9936
9937 * tree-pass.h (TDF_EH): Define.
9938 * gimple-pretty-print.c (dump_gimple_stmt): If FLAGS
9939 contains TDF_EH, print the EH region number holding GS.
9940 * tree-dump.c (dump_options): Add "eh".
9941 * doc/invoke.texi: Document it.
9942
9943 2009-07-22 Doug Kwan <dougkwan@google.com>
9944
9945 * config/arm/arm.md (subdi3) Copy non-reg values to DImode registers.
9946
9947 2009-07-22 Michael Matz <matz@suse.de>
9948
9949 PR tree-optimization/35229
9950 PR tree-optimization/39300
9951
9952 * tree-ssa-pre.c (includes): Include tree-scalar-evolution.h.
9953 (inhibit_phi_insertion): New function.
9954 (insert_into_preds_of_block): Call it for REFERENCEs.
9955 (init_pre): Initialize and finalize scalar evolutions.
9956 * Makefile.in (tree-ssa-pre.o): Depend on tree-scalar-evolution.h .
9957
9958 2009-07-22 Uros Bizjak <ubizjak@gmail.com>
9959
9960 * config/i386/predicates.md (zero_extended_scalar_load_operand):
9961 Use CONST_VECTOR_NUNITS to determine number of elements.
9962
9963 2009-07-22 Andreas Krebbel <krebbel1@de.ibm.com>
9964
9965 * config/s390/constraints.md (ZQ, ZR, ZS, ZT): New constraints.
9966 (U, W): Constraints are now deprecated and will be removed if we
9967 run out of letters.
9968 * config/s390/s390.md (U, W): Replaced with ZQZR, ZSZT throughout
9969 the file.
9970 ("prefetch"): Add the stcmh instruction for prefetching.
9971 * config/s390/s390.c (s390_symref_operand_p): Function moved. No
9972 changes.
9973 (s390_short_displacement): Return always true if compiling for
9974 machines not providing the long displacement facility.
9975 (s390_mem_constraint): Support the new constraint letter Z.
9976 (s390_check_qrst_address): New function.
9977
9978 2009-07-21 DJ Delorie <dj@redhat.com>
9979
9980 * config/mep/mep.c (mep_legitimize_arg): Leave control registers
9981 alone too.
9982
9983 2009-07-21 Jason Merrill <jason@redhat.com>
9984
9985 * c-common.c (max_tinst_depth): Increase default to 1024.
9986
9987 2009-07-21 Uros Bizjak <ubizjak@gmail.com>
9988
9989 * config/i386/sse.md (vec_unpacku_float_hi_v4si): New expander.
9990 (vec_unpacku_float_lo_v4si): Ditto.
9991
9992 2009-07-21 Uros Bizjak <ubizjak@gmail.com>
9993
9994 PR target/40811
9995 * config/i386/sse.md (sse2_cvtudq2ps): New expander.
9996 (enum ix86_builtins): Add IX86_BUILTIN_CVTUDQ2PS.
9997 (builtin_description): Add __builtin_ia32_cvtudq2ps.
9998 (ix86_vectorize_builtin_conversion): Handle IX86_BUILTIN_CVTUDQ2PS.
9999
10000 2009-07-21 Jakub Jelinek <jakub@redhat.com>
10001
10002 PR tree-optimization/40813
10003 * tree-inline.c (copy_bb): Regimplify RHS after last stmt, not before
10004 it.
10005
10006 2009-07-21 Kaz Kojima <kkojima@gcc.gnu.org>
10007
10008 * config/sh/sh.c (sh_gimplify_va_arg_expr): Wrap the result
10009 with a NOP_EXPR if needed.
10010
10011 2009-07-21 Paul Brook <paul@codesourcery.com>
10012
10013 * tree-vectorizer.c (increase_alignment): Handle nested arrays.
10014 Terminate debug dump with newline.
10015
10016 2009-07-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10017
10018 * pa.c (compute_zdepwi_operands): Limit deposit length to 32 - lsb.
10019 Cast "1" to unsigned HOST_WIDE_INT.
10020 (compute_zdepdi_operands): Limit maximum length to 64 bits. Limit
10021 deposit length to the maximum length - lsb. Extend length if
10022 HOST_BITS_PER_WIDE_INT is 32.
10023
10024 2009-07-20 Olatunji Ruwase <tjruwase@google.com>
10025
10026 * cgraph.h (constant_pool_htab): New function.
10027 (constant_descriptor_tree): Move from varasm.c.
10028 * varasm.c (constant_pool_htab): New function.
10029 (constant_descriptor_tree): Move to cgraph.h.
10030
10031 2009-07-20 Olatunji Ruwase <tjruwase@google.com>
10032
10033 * toplev.c: Invoke FINISH_UNIT callbacks before call to finalize().
10034
10035 2009-07-20 Shujing Zhao <pearly.zhao@oracle.com>
10036
10037 * Makefile.in (TREE_INLINE_H, tree-inline.o, cgraph.o): Remove
10038 $(VARRAY_H).
10039
10040 2009-07-20 Xinliang David Li <davidxl@google.com>
10041
10042 * dbgcnt.c (dbg_cnt_set_limit_by_name): Add length check.
10043
10044 2009-07-20 Adam Nemet <anemet@caviumnetworks.com>
10045
10046 * config/mips/mips.md (move_type): Add arith.
10047 (type): Handle arith.
10048 (zero_extendsidi2): Rename this into ...
10049 (*zero_extendsidi2): ... this. Don't match if ISA_HAS_EXT_INS.
10050 (zero_extendsidi2): New expander.
10051 (*zero_extendsidi2_dext): New pattern.
10052
10053 2009-07-20 Nick Clifton <nickc@redhat.com>
10054
10055 * config.gcc (mips64-*-*): Add definition of tm_defines in order
10056 to set MIPS_ABI_DEFAULT.
10057 * config/mips/vr.h (MIPS_ABI_DEFAULT): Remove definition.
10058
10059 2009-07-20 Jakub Jelinek <jakub@redhat.com>
10060
10061 * tree-object-size.c (addr_object_size): Handle unions with
10062 array in it as last field of structs in __bos (, 1) as __bos (, 0).
10063
10064 PR tree-optimization/40792
10065 * tree.c (build_function_type_skip_args): Remove bogus assert.
10066
10067 2009-07-20 Jan Hubicka <jh@suse.cz>
10068 Martin Jambor <mjambor@suse.cz>
10069
10070 * cgraph.h (combined_args_to_skip): New field.
10071 * cgraph.c (cgraph_create_virtual_clone): Properly handle
10072 combined_args_to_skip and args_to_skip.
10073 * tree-inline.c (update_clone_info): New function.
10074 (tree_function_versioning): Call update_clone_info.
10075 * cgraphunit.c: (cgraph_materialize_clone): Dump materialized
10076 functions.
10077 (cgraph_materialize_all_clones): More extensive dumping, working
10078 with combined_args_to_skip rather than args_to_skip.
10079
10080 2009-07-20 Ira Rosen <irar@il.ibm.com>
10081
10082 * tree-vectorizer.h (vectorizable_condition): Add parameters.
10083 * tree-vect-loop.c (vect_is_simple_reduction): Support COND_EXPR.
10084 (get_initial_def_for_reduction): Likewise.
10085 (vectorizable_reduction): Skip the check of first operand in case
10086 of COND_EXPR. Add check that it is outer loop vectorization if
10087 nested cycle was detected. Call vectorizable_condition() for
10088 COND_EXPR. If reduction epilogue cannot be created do not fail for
10089 nested cycles (if it is not double reduction). Assert that there
10090 is only one type in the loop in case of COND_EXPR. Call
10091 vectorizable_condition() to vectorize COND_EXPR.
10092 * tree-vect-stmts.c (vectorizable_condition): Update comment.
10093 Add parameters. Allow nested cycles if called from
10094 vectorizable_reduction(). Use reduction vector variable if provided.
10095 (vect_analyze_stmt): Call vectorizable_reduction() before
10096 vectorizable_condition().
10097 (vect_transform_stmt): Update call to vectorizable_condition().
10098
10099 2009-07-20 Christian Bruel <christian.bruel@st.com>
10100
10101 * config/sh/sh.opt (-mfmovd): Resurrect and document.
10102 * doc/invoke.texi (-mfmovd): Likewise.
10103 * config/sh/sh.h (TARGET_FMOVD, MASK_FMOVD): Remove default setting.
10104
10105 2009-07-20 Jan Hubicka <jh@suse.cz>
10106
10107 * tree-ssa-dce.c (remove_dead_phis): Only look for abnormal PHIs
10108 when handling SSA name.
10109
10110 2009-07-19 Jan Hubicka <jh@suse.cz>
10111
10112 PR tree-optimization/40676
10113 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do renaming on all
10114 virtual PHIs in empty BBs.
10115
10116 2009-07-18 Adam Nemet <anemet@caviumnetworks.com>
10117
10118 * combine.c (make_compound_operation) <SUBREG>: If force_to_mode
10119 re-expanded the compound use gen_lowpart instead to convert to the
10120 desired mode.
10121
10122 2009-07-18 Adam Nemet <anemet@caviumnetworks.com>
10123
10124 * combine.c (try_widen_shift_mode): Add COUNT, OUTER_CODE and
10125 OUTER_CONST arguments.
10126 <LSHIFTRT>: Use them to allow widening if the bits shifted in from
10127 the new wider mode will be masked off.
10128 (simplify_shift_const_1): Adjust calls to try_widen_shift_mode.
10129
10130 2009-07-18 Adam Nemet <anemet@caviumnetworks.com>
10131
10132 * combine.c (try_widen_shift_mode) <LSHIFTRT>: Allow widening if the
10133 high-order bits are zero.
10134
10135 2009-07-18 Adam Nemet <anemet@caviumnetworks.com>
10136
10137 * combine.c (simplify_shift_const_1): Split code to determine
10138 shift_mode into ...
10139 (try_widen_shift_mode): ... here. Allow widening for ASHIFTRT if the
10140 new bits shifted in are identical to the old sign bit.
10141
10142 2009-07-18 Richard Guenther <rguenther@suse.de>
10143
10144 PR c/40787
10145 * gimplify.c (gimplify_call_expr): Reject code using results from
10146 functions returning void.
10147
10148 2009-07-18 Richard Sandiford <r.sandiford@uk.ibm.com>
10149
10150 * doc/md.texi: Document the new PowerPC "es" constraint.
10151 Document that "m" can include automodified addresses on this target,
10152 and explain how %U must be used. Extend the "Q" and "Z" documentation
10153 to suggest "es" as well as "m".
10154 * config/rs6000/constraints.md (es): New memory constraint.
10155 (Q, Z): Update strings to match new documentation.
10156
10157 2009-07-18 Richard Sandiford <r.sandiford@uk.ibm.com>
10158
10159 * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Allow any
10160 offset from virtual_stack_vars_rtx and arg_pointer_rtx.
10161 * config/rs6000/predicates.md (volatile_mem_operand): Use
10162 offsettable_nonstrict_memref_p.
10163 * config/rs6000/rs6000.md (*floatsidf2_internal): Remove split check.
10164 (*floatunssidf2_internal): Likewise.
10165 (*fix_truncdfsi2_internal): Likewise.
10166 (*fix_trunctfsi2_internal): Likewise.
10167
10168 2009-07-17 Anatoly Sokolov <aesok@post.ru>
10169
10170 * config/avr/avr-devices.c (avr_mcu_t): Add atmega8u2, atmega16u2 and
10171 atmega32u2 devices.
10172 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
10173
10174 2009-07-17 Richard Guenther <rguenther@suse.de>
10175
10176 PR c/40401
10177 * tree-pass.h (pass_diagnose_omp_blocks): Declare.
10178 (pass_warn_unused_result): Likewise.
10179 (TODO_set_props): Remove.
10180 * omp-low.c (diagnose_omp_structured_block_errors): Change to
10181 run as a pass.
10182 (pass_diagnose_omp_blocks): Define.
10183 * c-decl.c (pop_file_scope): Do not finalize the CU here.
10184 (c_gimple_diagnostics_recursively): Remove.
10185 (finish_function): Do not call it.
10186 (c_write_global_declarations): Continue after errors.
10187 Finalize the CU here.
10188 * c-gimplify.c (c_genericize): Do not gimplify here.
10189 * c-common.c (c_warn_unused_result): Move ...
10190 * tree-cfg.c (do_warn_unused_result): ... here.
10191 (run_warn_unused_result): New function.
10192 (gate_warn_unused_result): New function.
10193 (pass_warn_unused_result): New pass.
10194 * c-common.h (c_warn_unused_result): Remove.
10195 * flags.h (flag_warn_unused_result): Declare.
10196 * c-opts.c (c_common_init_options): Enable flag_warn_unused_result.
10197 * opts.c (flag_warn_unused_result): Initialize to false.
10198 * toplev.c (compile_file): Add comment.
10199 * omp-low.c (create_omp_child_function): Do not register
10200 the function with the frontend.
10201 (diagnose_omp_structured_block_errors): Prepare to be
10202 called as optimization pass.
10203 (gate_diagnose_omp_blocks): New function.
10204 (pass_diagnose_omp_blocks): New pass.
10205 * cgraph.h (cgraph_optimize): Remove.
10206 (cgraph_analyze_function): Likewise.
10207 * cgraph.c (cgraph_add_new_function): Gimplify C++ thunks.
10208 * cgraphunit.c (cgraph_lower_function): Lower nested functions
10209 before their parents here.
10210 (cgraph_finalize_function): Not here.
10211 (cgraph_analyze_function): Gimplify functions here.
10212 (cgraph_finalize_compilation_unit): Continue after errors.
10213 Optimize the callgraph from here.
10214 (cgraph_optimize): Make static.
10215 * langhooks.c (write_global_declarations): Finalize the CU.
10216 * gimplify.c (gimplify_asm_expr): Do not emit ASMs with errors.
10217 (gimplify_function_tree): Assert we gimplify only once.
10218 Set PROP_gimple_any property.
10219 * tree-nested.c (gimplify_all_functions): New function.
10220 (lower_nested_functions): Gimplify all nested functions.
10221 * gimple.h (diagnose_omp_structured_block_errors): Remove.
10222 * passes.c (init_optimization_passes): Add pass_warn_unused_result
10223 and pass_diagnose_omp_blocks after gimplification. Do not
10224 set TODO_set_props on all_lowering_passes.
10225 (execute_one_pass): Do not handle TODO_set_props.
10226 * Makefile.in (cgraphunit.o): Add $(TREE_DUMP_H) dependency.
10227 (gimplify.o): Add tree-pass.h dependency.
10228 * tree-inline.c (copy_statement_list): Properly copy STATEMENT_LIST.
10229 (copy_tree_body_r): Properly handle TARGET_EXPR like SAVE_EXPR.
10230 (unsave_r): Likewise.
10231 * c-omp.c (c_finish_omp_atomic): Set DECL_CONTEXT on the
10232 temporary variable.
10233
10234 2009-07-17 Sandra Loosemore <sandra@codesourcery.com>
10235
10236 * doc/service.texi (Service): Restore previously removed link,
10237 which isn't broken after all.
10238
10239 2009-07-17 Richard Guenther <rguenther@suse.de>
10240
10241 PR tree-optimization/40321
10242 * tree-ssa-pre.c (add_to_exp_gen): Also add names defined by
10243 PHI nodes to the maximal set.
10244 (make_values_for_phi): Add PHI arguments to the maximal set.
10245 (execute_pre): Dump PHI_GEN and the maximal set.
10246
10247 2009-07-17 Jakub Jelinek <jakub@redhat.com>
10248
10249 PR c++/40780
10250 * gimplify.c (gimplify_conversion): Don't change non-conversions into
10251 VIEW_CONVERT_EXPR.
10252
10253 2009-07-16 Sandra Loosemore <sandra@codesourcery.com>
10254
10255 * doc/extend.texi (Nested Functions): Replace broken link with
10256 textual reference.
10257 * doc/service.texi (Service): Remove broken link.
10258
10259 2009-07-16 H.J. Lu <hongjiu.lu@intel.com>
10260
10261 PR bootstrap/40781
10262 * builtins.c (expand_builtin_memcmp): Use loc instead of
10263 EXPR_LOCATION (exp).
10264 (expand_builtin_strncmp): Likewise.
10265
10266 2009-07-17 Aldy Hernandez <aldyh@redhat.com>
10267 Manuel López-Ibáñez <manu@gcc.gnu.org>
10268
10269 PR 40435
10270 * tree-complex.c, tree-loop-distribution.c, tree.c, tree.h,
10271 builtins.c, fold-const.c, omp-low.c, cgraphunit.c, tree-ssa-ccp.c,
10272 tree-ssa-dom.c, gimple-low.c, expr.c, tree-ssa-ifcombine.c,
10273 c-decl.c, stor-layout.c, tree-if-conv.c, c-typeck.c, gimplify.c,
10274 calls.c, tree-sra.c, tree-mudflap.c, tree-ssa-copy.c,
10275 tree-ssa-forwprop.c, c-convert.c, c-omp.c, varasm.c,
10276 tree-inline.c, c-common.c, c-common.h, gimple.c,
10277 tree-switch-conversion.c, gimple.h, tree-cfg.c, c-parser.c,
10278 convert.c: Add location argument to fold_{unary,binary,ternary},
10279 fold_build[123], build_call_expr, build_size_arg,
10280 build_fold_addr_expr, build_call_array, non_lvalue, size_diffop,
10281 fold_build1_initializer, fold_build2_initializer,
10282 fold_build3_initializer, fold_build_call_array,
10283 fold_build_call_array_initializer, fold_single_bit_test,
10284 omit_one_operand, omit_two_operands, invert_truthvalue,
10285 fold_truth_not_expr, build_fold_indirect_ref, fold_indirect_ref,
10286 combine_comparisons, fold_builtin_*, fold_call_expr,
10287 build_range_check, maybe_fold_offset_to_address, round_up,
10288 round_down.
10289
10290 2009-07-16 Jason Merrill <jason@redhat.com>
10291
10292 PR libstdc++/37907
10293 * c-common.c (c_common_reswords): Add __is_standard_layout
10294 and __is_trivial.
10295 * c-common.h (enum rid): Add RID_IS_STD_LAYOUT and RID_IS_TRIVIAL.
10296 * doc/implement-cxx.texi: New.
10297 * doc/gcc.texi: Include it.
10298
10299 2009-07-16 DJ Delorie <dj@redhat.com>
10300
10301 * config/m32c/m32c.c (m32c_compare_redundant): Avoid removing
10302 compares that may be indirectly affected by previous instructions.
10303
10304 2009-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10305
10306 * builtins.c (do_mpc_arg2): New.
10307 (fold_builtin_2): Fold builtin cpow.
10308 * real.h (HAVE_mpc_pow): New.
10309
10310 2009-07-16 Bingfeng Mei <bmei@broadcom.com>
10311
10312 * modulo-sched.c (sms_schedule): stage_count <= 1 as correct
10313 comparison to skip unprofitable schedule
10314
10315 2009-07-16 Simon Baldwin <simonb@google.com>
10316
10317 * gcc.c (option_map): New flag -no-canonical-prefixes.
10318 * (display_help): Print help text for new flag.
10319 * (process_command): Move options translation and language specifics
10320 and handle new flag early. Use it to set a function pointer to a
10321 prefix builder. Replace make_relative_prefix calls with calls to
10322 the function pointed to. Ignore new flag in regular options handling.
10323 * doc/invoke.texi (Overall Options): Documented -no-canonical-prefixes.
10324
10325 2009-07-15 DJ Delorie <dj@redhat.com>
10326
10327 * config/mep/mep.md (sibcall_internal): Change register to avoid
10328 argument registers.
10329 (sibcall_value_internal): Likewise.
10330
10331 2009-07-15 Eric Botcazou <ebotcazou@adacore.com>
10332
10333 PR rtl-optimization/40710
10334 * resource.c (mark_target_live_regs): Reset DF problem to LR.
10335
10336 2009-07-15 Adam Nemet <anemet@caviumnetworks.com>
10337
10338 * config/mips/mips.md (*extenddi_truncate<mode>,
10339 *extendsi_truncate<mode>): Change type attribute to move_type
10340 with shift_shift. Split out code handling exts from here ...
10341 (*extend<GPR:mode>_truncate<SHORT:mode>_exts): ... to this new
10342 pattern.
10343 (*extendhi_truncateqi): Change type attribute to move_type with
10344 shift_shift. Split out code handling exts from here ...
10345 (*extendhi_truncateqi_exts): ... to this new pattern.
10346
10347 2009-07-15 Uros Bizjak <ubizjak@gmail.com>
10348
10349 * config/i386/sse.md (copysign<mode>3): Use "and-not" SSE instruction
10350 instead of "and" with inverted sign bit mask value. Use
10351 "nonimmediate_operand" for operand 1 and operand 2 predicate.
10352 Allocate registers only for operand 4 and operand 5.
10353
10354 2009-07-15 Jakub Jelinek <jakub@redhat.com>
10355
10356 PR middle-end/40747
10357 * fold-const.c (fold_cond_expr_with_comparison): When folding
10358 < and <= to MIN, make sure the MIN uses the same type as the
10359 comparison's operands.
10360
10361 2009-07-15 Richard Earnshaw <rearnsha@arm.com>
10362
10363 * arm.md (ior_xor): New code iterator.
10364 (split for ior/xor with shift and zero-extend): New split pattern.
10365 * arm/predicates.md (subreg_lowpart_operator): New special predicate.
10366
10367 2009-07-15 Richard Guenther <rguenther@suse.de>
10368
10369 * tree-ssa-structalias.c (make_constraint_from_heapvar): Initialize
10370 offset member.
10371
10372 2009-07-15 Richard Guenther <rguenther@suse.de>
10373
10374 PR middle-end/40753
10375 * alias.c (ao_ref_from_mem): Reject FUNCTION_DECL and LABEL_DECL bases.
10376
10377 2009-07-15 Maxim Kuvyrkov <maxim@codesourcery.com>
10378
10379 * config/m68k/linux-unwind.h (m68k_fallback_frame_state): Update to
10380 handle 2.6.30 kernel.
10381
10382 2009-07-15 DJ Delorie <dj@redhat.com>
10383
10384 * config/mep/mep.md (sibcall_internal): Change register to allow
10385 for 24-bit addresses.
10386 (sibcall_value_internal): Likewise.
10387
10388 2009-07-14 Ghassan Shobaki <ghassan.shobaki@amd.com>
10389
10390 * doc/invoke.texi: Added descriptions of the scheduling heuristics
10391 that are enabled/disabled by the flags introduced by a previous patch.
10392
10393 2009-07-14 DJ Delorie <dj@redhat.com>
10394
10395 * config/mep/mep.md (sibcall_internal): Include non-toggling
10396 non-jmp case.
10397 (sibcall_value_internal): Likewise.
10398
10399 2009-07-14 Taras Glek <tglek@mozilla.com>
10400 Rafael Espindola <espindola@google.com>
10401
10402 * doc/sourcebuild.texi: Document install-plugin target.
10403 * configure.ac: Added install-plugin target to language makefiles.
10404 * configure: Regenerate.
10405 * Makefile.in: (install-plugin): Install more headers,
10406 depend on lang.install-plugin.
10407
10408 2009-07-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
10409
10410 * tree-vrp.c (vrp_evaluate_conditional): Mark strings for
10411 translation.
10412
10413 2009-07-14 DJ Delorie <dj@redhat.com>
10414
10415 * config/mep/mep.c (mep_vliw_jmp_match): New function.
10416 * config/mep/mep-protos.h (mep_vliw_jmp_match): Prototype it.
10417 * config/mep/mep.md (sibcall_internal): Change test from
10418 mep_vliw_mode_match to mep_vliw_jmp_match.
10419 (sibcall_value_internal): Likewise.
10420
10421 2009-07-14 Uros Bizjak <ubizjak@gmail.com>
10422
10423 * config/i386/sse.md (copysign<mode>3): New expander.
10424 * config/i386/i386-protos.h (ix86_build_signbit_mask): New prototype.
10425 * config/i386/i386.c (ix86_build_signbit_mask): Make public.
10426 Use ix86_build_const_vector.
10427 (enum ix86_builtins): Add IX86_BUILTIN_CPYSGNPS and
10428 IX86_BUILTIN_CPYSGNPD.
10429 (builtin_description): Add __builtin_ia32_copysignps and
10430 __builtin_ia32_copysignpd.
10431 (ix86_builtin_vectorized_function): Handle BUILT_IN_COPYSIGN
10432 and BUILT_IN_COPYSIGNF.
10433
10434 2009-07-13 Jason Merrill <jason@redhat.com>
10435
10436 * builtins.c (can_trust_pointer_alignment): New fn.
10437 (get_pointer_alignment): Factor it out from here.
10438 * tree.h: Declare it.
10439
10440 2009-07-14 David Edelsohn <edelsohn@gnu.org>
10441
10442 * config/rs6000/predicates.md (offsettable_mem_operand): Test
10443 RTX_AUTOINC class.
10444
10445 2009-07-14 Dodji Seketeli <dodji@redhat.com>
10446
10447 PR debug/40705
10448 PR c++/403057
10449 * dwarf2.out.c (gen_type_die_with_usage): Added comment.
10450
10451 2009-07-14 Richard Guenther <rguenther@suse.de>
10452 Andrey Belevantsev <abel@ispras.ru>
10453
10454 PR middle-end/40745
10455 * cfgexpand.c (partition_stack_vars): Do not bother to update
10456 alias information when not optimizing.
10457
10458 2009-07-14 Richard Guenther <rguenther@suse.de>
10459 Andrey Belevantsev <abel@ispras.ru>
10460
10461 * tree-ssa-alias.h (refs_may_alias_p_1): Declare.
10462 (pt_solution_set): Likewise.
10463 * tree-ssa-alias.c (refs_may_alias_p_1): Export.
10464 * tree-ssa-structalias.c (pt_solution_set): New function.
10465 * final.c (rest_of_clean_state): Free SSA data structures.
10466 * print-rtl.c (print_decl_name): Remove.
10467 (print_mem_expr): Implement in terms of print_generic_expr.
10468 * alias.c (ao_ref_from_mem): New function.
10469 (rtx_refs_may_alias_p): Likewise.
10470 (true_dependence): Query alias-export info.
10471 (canon_true_dependence): Likewise.
10472 (write_dependence_p): Likewise.
10473 * tree-dfa.c (get_ref_base_and_extent): For void types leave
10474 size unknown.
10475 * emit-rtl.c (component_ref_for_mem_expr): Remove.
10476 (mem_expr_equal_p): Use operand_equal_p.
10477 (set_mem_attributes_minus_bitpos): Do not use
10478 component_ref_for_mem_expr.
10479 * cfgexpand.c (add_partitioned_vars_to_ptset): New function.
10480 (update_alias_info_with_stack_vars): Likewise.
10481 (partition_stack_vars): Call update_alias_info_with_stack_vars.
10482 * tree-ssa.c (delete_tree_ssa): Do not release SSA names
10483 explicitly nor clear stmt operands.
10484 Free the decl-to-pointer map.
10485 * tree-optimize.c (execute_free_datastructures): Do not free
10486 SSA data structures here.
10487 * tree-flow.h (struct gimple_df): Add decls_to_pointers member.
10488 * Makefile.in (emit-rtl.o): Add pointer-set.h dependency.
10489 (alias.o): Add tree-ssa-alias.h, pointer-set.h and $(TREE_FLOW_H)
10490 dependencies.
10491 (print-rtl.o): Add $(DIAGNOSTIC_H) dependency.
10492
10493 2009-07-13 DJ Delorie <dj@redhat.com>
10494
10495 * config/mep/mep.h (CC1_SPEC): Tweak parameters to trigger
10496 unrolling at the right iteration count.
10497
10498 * config/mep/mep.c (mep_expand_prologue): Fix frame pointer
10499 calculations.
10500
10501 2009-07-13 Ghassan Shobaki <ghassan.shobaki@amd.com>
10502
10503 * haifa-sched.c (rank_for_schedule): Introduced flags to
10504 enable/disable individual scheduling heuristics.
10505 * common.opt: Introduced flags to enable/disable individual
10506 heuristics in the scheduler.
10507 * doc/invoke.texi: Introduced flags to enable/disable individual
10508 heuristics in the scheduler.
10509
10510 2009-07-13 Kai Tietz <kai.tietz@onevision.com>
10511
10512 * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Remove file
10513 config/i386/mingw-tls.c.
10514 * config/i386/mingw-tls.c: Removed.
10515
10516 2009-07-13 Ira Rosen <irar@il.ibm.com>
10517
10518 * tree-vect-loop.c (get_initial_def_for_reduction): Ensure that the
10519 checks access only relevant statements.
10520 (vectorizable_reduction): Likewise.
10521
10522 2009-07-12 Kai Tietz <kai.tietz@onevision.com>
10523
10524 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Define _X86_
10525 just for 32-bit case.
10526
10527 2009-07-12 Jan Hubicka <jh@suse.cz>
10528
10529 PR tree-optimization/40585
10530 * except.c (expand_resx_expr): When there already is resume
10531 instruction, produce linked list.
10532 (build_post_landing_pads): Assert that resume is empty.
10533 (connect_post_landing_pads): Handle resume lists.
10534 (dump_eh_tree): Dump resume list.
10535
10536 2009-07-12 Ira Rosen <irar@il.ibm.com>
10537
10538 * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
10539 with additional argument.
10540 * tree-vectorizer.h (enum vect_def_type): Add
10541 vect_double_reduction_def.
10542 (vect_is_simple_reduction): Add argument.
10543 * tree-vect-loop.c (vect_determine_vectorization_factor): Fix
10544 indentation.
10545 (vect_analyze_scalar_cycles_1): Detect double reduction. Call
10546 vect_is_simple_reduction with additional argument.
10547 (vect_analyze_loop_operations): Handle exit phi nodes in case of
10548 double reduction.
10549 (reduction_code_for_scalar_code): Handle additional codes by
10550 returning ERROR_MARK for them. Fix comment and indentation.
10551 (vect_is_simple_reduction): Fix comment, add argument to specify
10552 double reduction. Detect double reduction.
10553 (get_initial_def_for_induction): Fix indentation.
10554 (get_initial_def_for_reduction): Fix comment and indentation.
10555 Handle double reduction. Create initial definitions that do not
10556 require adjustment if ADJUSTMENT_DEF is NULL. Handle additional cases.
10557 (vect_create_epilog_for_reduction): Fix comment, add argument to
10558 handle double reduction. Use PLUS_EXPR in case of MINUS_EXPR in
10559 epilogue result extraction. Create double reduction phi node and
10560 replace relevant uses.
10561 (vectorizable_reduction): Call vect_is_simple_reduction with
10562 additional argument. Fix indentation. Update epilogue code treatment
10563 according to the changes in reduction_code_for_scalar_code. Check
10564 for double reduction. Call vect_create_epilog_for_reduction with
10565 additional argument.
10566 * tree-vect-stmts.c (process_use): Handle double reduction, update
10567 documentation.
10568 (vect_mark_stmts_to_be_vectorized): Handle double reduction.
10569 (vect_get_vec_def_for_operand): Likewise.
10570
10571 2009-07-12 Danny Smith <dansmister@gmail.com>
10572
10573 * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't
10574 dllexport if !TREE_PUBLIC.
10575 (i386_pe_maybe_record_exported_symbol): Assert TREE_PUBLIC.
10576
10577 2009-07-11 Anatoly Sokolov <aesok@post.ru>
10578
10579 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Redefine.
10580 (avr_extra_arch_macro) Remove declatation.
10581 * config/avr/avr.c (avr_cpu_cpp_builtins): New function.
10582 (avr_extra_arch_macro) Declare as static.
10583 * config/avr/avr-protos.h (avr_cpu_cpp_builtins): Dclare.
10584
10585 2009-07-11 Jan Hubicka <jh@suse.cz>
10586
10587 PR middle-end/48388
10588 * except.c (can_be_reached_by_runtime): Test for NULL aka bitmap.
10589
10590 2009-07-11 Jakub Jelinek <jakub@redhat.com>
10591
10592 PR debug/40713
10593 * dwarf2out.c (dw_fde_struct): Add in_std_section and
10594 cold_in_std_section bits.
10595 (dwarf2out_begin_prologue): Initialize them.
10596 (dwarf2out_finish): Don't emit FDE range into .debug_ranges
10597 if already covered by text_section or cold_text_section range.
10598
10599 PR rtl-optimization/40667
10600 * defaults.h (MINIMUM_ALIGNMENT): Define if not defined.
10601 * doc/tm.texi (MINIMUM_ALIGNMENT): Document it.
10602 * config/i386/i386.h (MINIMUM_ALIGNMENT): Define.
10603 * config/i386/i386.c (ix86_minimum_alignment): New function.
10604 * config/i386/i386-protos.h (ix86_minimum_alignment): New prototype.
10605 * cfgexpand.c (expand_one_var): Use MINIMIM_ALIGNMENT.
10606 * emit-rtl.c (gen_reg_rtx): Likewise.
10607 * function.c (assign_parms): Likewise. If nominal_type needs
10608 bigger alignment than FUNCTION_ARG_BOUNDARY, use its alignment
10609 rather than passed_type's alignment.
10610
10611 PR target/40668
10612 * function.c (assign_parm_setup_stack): Adjust
10613 MEM_OFFSET (data->stack_parm) if promoted_mode is different
10614 from nominal_mode on big endian.
10615
10616 2009-07-11 Paolo Bonzini <bonzini@gnu.org>
10617
10618 * expmed.c (emit_store_flag_1): Fix choice of zero vs. sign extension.
10619
10620 2009-07-10 DJ Delorie <dj@redhat.com>
10621
10622 * config/mep/mep.c (mep_can_inline_p): Correct logic, and simplify.
10623
10624 2009-07-10 Mark Mitchell <mark@codesourcery.com>
10625
10626 * config/arm/thumb2.md (thumb2_cbz): Correct computation of length
10627 attribute.
10628 (thumb2_cbnz): Likewise.
10629
10630 2009-07-10 David Daney <ddaney@caviumnetworks.com>
10631
10632 PR target/39079
10633 * config.gcc (supported_defaults): Add synci.
10634 (with_synci): Add validation.
10635 (all_defaults): Add synci.
10636 * config/mips/mips.md (clear_cache): Use TARGET_SYNCI instead of
10637 ISA_HAS_SYNCI.
10638 (synci): Same.
10639 * config/mips/mips.opt (msynci): New option.
10640 * config/mips/mips.c (mips_override_options): Warn on use of
10641 -msynci for targets that do now support it.
10642 * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
10643 msynci.
10644 * gcc/doc/invoke.texi (-msynci): Document the new option.
10645 * doc/install.texi (--with-synci): Document the new option.
10646
10647 2009-07-10 Richard Guenther <rguenther@suse.de>
10648
10649 PR tree-optimization/40496
10650 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Create
10651 the PHI result with a compatible type.
10652
10653 2009-07-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
10654
10655 PR 25509
10656 PR 40614
10657 * c.opt (Wunused-result): New.
10658 * doc/invoke.texi: Document it.
10659 * c-common.c (c_warn_unused_result): Use it.
10660
10661 2009-07-09 DJ Delorie <dj@redhat.com>
10662
10663 * targhooks.c (default_target_can_inline_p): Rename from
10664 default_target_option_can_inline_p.
10665 * targhooks.h (default_target_can_inline_p): Likewise.
10666 * target-def.h (TARGET_CAN_INLINE_P): Rename from
10667 TARGET_OPTION_CAN_INLINE_P.
10668 * config/i386/i386.c (TARGET_CAN_INLINE_P): Likewise.
10669 * config/mep/mep.c (TARGET_CAN_INLINE_P): Likewise.
10670 (mep_target_can_inline_p): Rename from
10671 mep_target_option_can_inline_p.
10672
10673 PR target/40626
10674 * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Add coprocessor
10675 registers used to pass vectors.
10676
10677 * config/mep/mep.c (mep_option_can_inline_p): Remove error call.
10678
10679 2009-07-09 Tom Tromey <tromey@redhat.com>
10680
10681 * unwind-dw2-fde-darwin.c: Include dwarf2.h.
10682 * config/mmix/mmix.c: Include dwarf2.h.
10683 * config/rs6000/darwin-fallback.c: Include dwarf2.h.
10684 * config/xtensa/unwind-dw2-xtensa.c: Include dwarf2.h.
10685 * config/sh/sh.c: Include dwarf2.h.
10686 * config/i386/i386.c: Include dwarf2.h.
10687 * Makefile.in (DWARF2_H): Remove 'elf'.
10688 * except.c: Include dwarf2.h.
10689 * unwind-dw2.c: Include dwarf2.h.
10690 * dwarf2out.c: Include dwarf2.h.
10691 * unwind-dw2-fde-glibc.c: Include dwarf2.h.
10692 * unwind-dw2-fde.c: Include dwarf2.h.
10693 * dwarf2asm.c: Include dwarf2.h.
10694
10695 2009-07-09 Maxim Kuvyrkov <maxim@codesourcery.com>
10696
10697 * haifa-sched.c (insn_finishes_cycle_p): New static function.
10698 (max_issue): Use it.
10699 * sched-int.h (struct sched_info: insn_finishes_block_p): New
10700 scheduler hook.
10701 * sched-rgn.c (rgn_insn_finishes_block_p): Implement it.
10702 (region_sched_info): Update.
10703 * sched-ebb.c (ebb_sched_info): Update.
10704 * modulo-sched.c (sms_sched_info): Update.
10705 * sel-sched-ir.c (sched_sel_haifa_sched_info): Update.
10706
10707 2009-07-09 Maxim Kuvyrkov <maxim@codesourcery.com>
10708
10709 * varasm.c (build_constant_desc): Don't share RTL in pool entries.
10710
10711 2009-07-09 Basile Starynkevitch <basile@starynkevitch.net>
10712
10713 * plugin.c (try_init_one_plugin): passes RTLD_GLOBAL to dlopen.
10714
10715 2009-07-09 Jakub Jelinek <jakub@redhat.com>
10716
10717 PR middle-end/40692
10718 * fold-const.c (fold_cond_expr_with_comparison): Don't replace
10719 arg1 with arg01 if arg1 is already INTEGER_CST.
10720
10721 2009-07-08 Adam Nemet <anemet@caviumnetworks.com>
10722
10723 * simplify-rtx.c (simplify_binary_operation_1) <AND>:
10724 Transform (and (truncate)) into (truncate (and)).
10725
10726 2009-07-08 Adam Nemet <anemet@caviumnetworks.com>
10727
10728 * combine.c (make_extraction): Check TRULY_NOOP_TRUNCATION before
10729 creating LHS paradoxical subregs. Fix surrounding returns to
10730 use NULL_RTX rather than 0.
10731
10732 2009-07-08 DJ Delorie <dj@redhat.com>
10733
10734 * config/mep/mep.c: (mep_option_can_inline_p): New.
10735 (TARGET_OPTION_CAN_INLINE_P): Define.
10736
10737 2009-07-08 Mark Wielaard <mjw@redhat.com>
10738
10739 PR debug/40659
10740 * dwarf2out.c (add_data_member_location_attribute): When we have
10741 only a constant offset don't emit a new location description using
10742 DW_OP_plus_uconst, but just add the constant with add_AT_int, when
10743 dwarf_version > 2.
10744
10745 2009-07-08 Richard Henderson <rth@redhat.com>
10746
10747 PR target/38900
10748 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move to i386.c.
10749 (enum reg_class): Add CLOBBERED_REGS.
10750 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Likewise.
10751 * config/i386/i386.c (ix86_conditional_register_usage): Moved
10752 from CONDITIONAL_REGISTER_USAGE; build CLOBBERED_REGS for 64-bit.
10753 (ix86_function_ok_for_sibcall): Tidy. Disallow MS->SYSV sibcalls.
10754 (ix86_expand_call): Use sibcall_insn_operand when needed. Don't
10755 force 64-bit sibcalls into R11.
10756 * config/i386/constraints.md (U): New constraint.
10757 * config/i386/i386.md (sibcall_1, sibcall_value_1): Use it.
10758 (sibcall_1_rex64, sibcall_value_1_rex64): Likewise.
10759 (sibcall_1_rex64_v, sibcall_value_1_rex64_v): Remove.
10760
10761 2009-07-08 Shujing Zhao <pearly.zhao@oracle.com>
10762
10763 * basic-block.h (dump_regset, debug_regset): Remove duplicate
10764 prototypes.
10765 * c-objc-common.h (c_initialize_diagnostics): Ditto.
10766 * ebitmap.h (dump_ebitmap): Ditto.
10767 * optabs.h (optab_libfunc): Ditto.
10768 * tree.h (tree_expr_nonzero_warnv_p): Ditto.
10769 * tree-flow.h (vect_can_force_dr_alignment_p,
10770 get_vectype_for_scalar_type): Ditto.
10771 (vectorize_loops): Move prototype to ...
10772 * tree-vectorizer.h: ... here. Also, adjust comment.
10773 (vect_set_verbosity_level): Remove duplicate prototype.
10774 * tree-ssa-loop.c: Include tree-vectorizer.h.
10775 * Makefile.in (tree-ssa-loop.o): Depend on tree-vectorizer.h.
10776
10777 2009-07-08 Nick Clifton <nickc@redhat.com>
10778
10779 * config/i386/unix.h (ASM_COMMENT_START): Add a space after the
10780 forward slash.
10781
10782 2009-07-08 DJ Delorie <dj@redhat.com>
10783
10784 * config/mep/mep-ivc2.cpu (cpmovtocsar0_C3, cpmovtocsar1_C3,
10785 cpmovtocc_C3, cpmovtocsar0_P0S_P1, cpmovtocsar1_P0S_P1,
10786 cpmovtocc_P0S_P1): Mark volatile. Note which registers are
10787 written to.
10788 * config/mep/intrinsics.md: Regenerated.
10789 * config/mep/mep.c (mep_interrupt_saved_reg): Save IVC2 control
10790 registers when asm() or calls are detected.
10791
10792 2009-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
10793
10794 PR c++/31246
10795 * gimplify.c (gimplify_expr): Propagate no_warning flag when
10796 gimplifying.
10797 * gimple (gimple_build_call_from_tree): Likewise.
10798 * tree-cfg.c (remove_useless_stmts_warn_notreached): Check
10799 no_warning flag before warning.
10800
10801 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
10802
10803 * tree.c (set_expr_locus): Remove.
10804 * tree.h (EXPR_LOCUS,SET_EXPR_LOCUS,set_expr_locus): Remove.
10805 * c-typeck.c (c_finish_stmt_expr): Replace EXPR_LOCUS by
10806 EXPR_LOCATION.
10807 * gimplify.c (internal_get_tmp_var): Likewise.
10808 (gimplify_call_expr): Likewise.
10809 (gimplify_one_sizepos): Likewise.
10810
10811 2009-07-07 Eric Botcazou <ebotcazou@adacore.com>
10812
10813 PR debug/40666
10814 * dbxout.c (dbxout_symbol) <PARM_DECL>: Deal with parameters pointing
10815 to variables for debugging purposes.
10816
10817 2009-06-23 Mark Loeser <mark@halcy0n.com>
10818
10819 PR build/40010
10820 * Makefile.in (gcc.pod): Depend on gcc-vers.texi.
10821
10822 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
10823
10824 * pretty-print.c (pp_base_format): Remove %J.
10825 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
10826 gcc_cxxdiag_char_table): Likewise.
10827 (init_dynamic_diag_info): Likewise.
10828
10829 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
10830
10831 * pretty-print.c (pp_base_format): Remove %H.
10832 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
10833 gcc_cxxdiag_char_table): Likewise.
10834 (init_dynamic_diag_info): Likewise.
10835 * config/mep/mep.c (mep_select_section): Likewise.
10836
10837 2009-07-07 Duncan Sands <baldrick@free.fr>
10838
10839 * final.c (pass_clean_state): Give the pass a name.
10840 * passes.c (pass_rest_of_compilation): Likewise.
10841 * tree-optimize.c (pass_all_optimizations): Likewise.
10842
10843 2009-07-07 H.J. Lu <hongjiu.lu@intel.com>
10844
10845 * config/ia64/ia64.c (ia64_handle_model_attribute): Remove
10846 an extra 'decl' for error_at.
10847
10848 2009-07-07 Jakub Jelinek <jakub@redhat.com>
10849
10850 PR middle-end/40669
10851 * tree-tailcall.c (adjust_return_value_with_ops,
10852 create_tailcall_accumulator): Set DECL_GIMPLE_REG_P on the temporary
10853 if it has complex or vector type.
10854
10855 2009-07-07 Olivier Hainque <hainque@adacore.com>
10856
10857 * config/alpha/t-osf4 (SHLIB_LINK): Do not hide the dummy weak
10858 pthread symbols.
10859
10860 2009-07-07 Basile Starynkevitch <basile@starynkevitch.net>
10861
10862 * Makefile.in: added more lists of includes to PLUGIN_HEADERS.
10863
10864 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
10865
10866 * cgraphunit.c: Replace %J by an explicit location. Update all calls.
10867 * c-decl.c: Likewise.
10868 * function.c: Likewise.
10869 * varasm.c: Likewise.
10870 * tree-ssa.c: Likewise.
10871 * c-common.c: Likewise.
10872 * tree-cfg.c: Likewise.
10873 * config/spu/spu.c: Likewise.
10874 * config/ia64/ia64.c: Likewise.
10875 * config/v850/v850.c: Likewise.
10876
10877 2009-07-06 DJ Delorie <dj@redhat.com>
10878
10879 * config/mep/mep-core.cpu (fsft, ssarb): Mark as VOLATILE.
10880 * config/mep/mep-ivc2.cpu (many): Add VOLATILE to more insns that make
10881 unspecified accesses to control registers.
10882 * config/mep/intrinsics.md: Regenerate.
10883 * config/mep/intrinsics.h: Regenerate.
10884 * config/mep/mep-intrin.h: Regenerate.
10885
10886 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
10887
10888 * c-lex.c: Replace %H by an explicit location. Update all calls.
10889 * c-common.c: Likewise.
10890 * c-decl.c: Likewise.
10891 * c-typeck.c: Likewise.
10892 * fold-const.c: Likewise.
10893 * gimplify.c: Likewise.
10894 * stmt.c: Likewise.
10895 * tree-cfg.c: Likewise.
10896 * tree-ssa-loop-niter.c: Likewise.
10897 * tree-vrp.c: Likewise.
10898 * value-prof.c: Likewise.
10899
10900 2009-07-06 Diego Novillo <dnovillo@google.com>
10901
10902 * tree-dfa.c (dump_variable): Write DECL_INITIAL for VAR
10903 if it has one. Handle cases where VAR does not have an
10904 annotation or cfun is NULL.
10905
10906 2009-07-06 Diego Novillo <dnovillo@google.com>
10907
10908 * tree.c: Include debug.h.
10909 (initialize_tree_contains_struct): New.
10910 (init_ttree): Call it.
10911 (tree_node_structure_for_code): Factor out of ...
10912 (tree_node_structure): ... here.
10913 * treestruct.def (TS_PHI_NODE): Remove.
10914 (TS_GIMPLE_STATEMENT): Remove.
10915
10916 2009-07-06 Diego Novillo <dnovillo@google.com>
10917
10918 * tree-pretty-print.c (dump_generic_node): Protect against NULL op0.
10919 (debug_tree_chain): Handle cycles.
10920
10921 2009-07-06 Nick Clifton <nickc@redhat.com>
10922 DJ Delorie <dj@redhat.com>
10923
10924 * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
10925 __FMOVD_ENABLED__ is defined.
10926 * config/sh/sh.h
10927 (TARGET_FMOVD): Provide a default definition.
10928 (MASK_FMOVD): Likewise.
10929 (TARGET_CPU_CPP_BUILTINS): Define
10930 __FMOVD_ENABLED__ if TARGET_FMOVD is true.
10931 * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
10932 two fmov instructions depending upon whether TARGET_FMOVD is enabled.
10933 (split for DF load from memory into register): Also handle
10934 MEMs which consist of REG+DISP addressing.
10935 (split for DF store from register to memory): Likewise.
10936 (movsf_ie): Always use single fp_mode.
10937 * config/sh/sh.c (sh_override_options): Do not automatically
10938 enable TARGET_MOVD for the SH2A when supporting doubles - leave
10939 that to the -mfmovd command line switch.
10940 (broken_move): Do not restrict fldi test to only the SH4 and SH4A.
10941 (fldi_ok): Always allow.
10942 * config/sh/sh.opt (mfmovd): Remove this switch.
10943 * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
10944
10945 2009-07-06 J"orn Rennecke <joern.rennecke@arc.com>
10946 Kaz Kojima <kkojima@gcc.gnu.org>
10947
10948 PR rtl-optimization/30807
10949 * postreload.c (reload_combine): For every new use of REG_SUM,
10950 record the use of BASE.
10951
10952 2009-07-06 Jan Hubicka <jh@suse.cz>
10953
10954 * params.def: Revert my accidental commit at 2009-06-30.
10955
10956 2009-07-04 Ian Lance Taylor <iant@google.com>
10957
10958 PR target/40636
10959 * config/i386/msformat-c.c (mingw_format_attributes): Declare as
10960 EXPORTED_CONST.
10961 (mingw_format_attribute_overrides): Likewise.
10962
10963 2009-07-04 Jakub Jelinek <jakub@redhat.com>
10964
10965 PR debug/40596
10966 * dwarf2out.c (based_loc_descr): For crtl->stack_realign_tried
10967 don't check cfa.reg. Instead of cfa.indirect use
10968 fde && fde->drap_reg != INVALID_REGNUM test.
10969
10970 2009-07-04 Eric Botcazou <ebotcazou@adacore.com>
10971
10972 * postreload.c (reload_combine): Replace CONST_REG with INDEX_REG.
10973
10974 2009-07-03 Vladimir Makarov <vmakarov@redhat.com>
10975
10976 PR target/40587
10977 * ira.c (build_insn_chain): Use DF_LR_OUT instead of df_get_live_out.
10978
10979 2009-07-03 Richard Guenther <rguenther@suse.de>
10980
10981 PR tree-optimization/40640
10982 * tree-switch-conversion.c (build_arrays): Perform arithmetic
10983 in original type.
10984
10985 2009-07-03 Jan Hubicka <jh@suse.cz>
10986
10987 * ipa-inline.c (cgraph_decide_inlining_incrementally): When optimizing
10988 for size, reduce amount of inlining.
10989
10990 2009-07-03 Richard Guenther <rguenther@suse.de>
10991
10992 PR middle-end/34163
10993 * tree-chrec.c (chrec_convert_1): Fold (T2)(t +- x) to (T2)t +- (T2)x
10994 if t +- x is known to not overflow and the conversion widens the
10995 operation.
10996 * Makefile.in (tree-chrec.o): Add $(FLAGS_H) dependency.
10997
10998 2009-07-03 Jan Hubicka <jh@suse.cz>
10999
11000 * ipa-pure-const.c (analyze): Update loop optimizer init.
11001 * tree-ssa-loop-iv-canon.c (empty_loop_p, remove_empty_loop,
11002 try_remove_empty_loop, remove_empty_loops): Remove.
11003 * tree-ssa-loop.c (tree_ssa_empty_loop, pass_empty_loop): Remove.
11004 * tree-ssa-dce.c (find_obviously_necessary_stmts): Use finiteness info
11005 to mark regular loops as neccesary.
11006 (degenerate_phi_p): New function.
11007 (propagate_necessity, remove_dead_phis): Use it.
11008 (forward_edge_to_pdom): Likewise.
11009 (eliminate_unnecessary_stmts): Take care to remove uses of results of
11010 virtual PHI nodes that became unreachable.
11011 (perform_tree_ssa_dce): Initialize/deinitialize loop optimizer.
11012 * tree-flow.h (remove_empty_loops): Remove.
11013 * passes.c (init_optimization_passes): Remove.
11014
11015 2009-07-03 Uros Bizjak <ubizjak@gmail.com>
11016
11017 * config/i386/i386.md (fix_trunc<mode>_fisttp_i387_1): Use
11018 can_create_pseudo_p.
11019 (*fix_trunc<mode>_i387_1): Ditto.
11020 (*floathi<mode>2_1): Ditto.
11021 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): Ditto.
11022 (*fistdi2_1): Ditto.
11023 (*fist<mode>2_1): Ditto.
11024 (frndintxf2_floor): Ditto.
11025 (*fist<mode>2_floor_1): Ditto.
11026 (frndintxf2_ceil): Ditto.
11027 (*fist<mode>2_ceil_1): Ditto.
11028 (frndintxf2_trunc): Ditto.
11029 (frndintxf2_mask_pm): Ditto.
11030 (fxam<mode>2_i387_with_temp): Ditto.
11031 * config/i386/sse.md (mulv16qi3): Ditto.
11032 (*sse2_mulv4si3): Ditto.
11033 (mulv2di3): Ditto.
11034 (sse4_2_pcmpestr): Ditto.
11035 (sse4_2_pcmpistr): Ditto.
11036
11037 2009-07-03 Jan Hubicka <jh@suse.cz>
11038
11039 * tree-ssa-dce.c (bb_contains_live_stmts): New bitmap.
11040 (mark_stmt_necessary): Set it.
11041 (mark_operand_necessary): Set it.
11042 (mark_control_dependent_edges_necessary): Set it.
11043 (mark_virtual_phi_result_for_renaming): New function.
11044 (get_live_post_dom): New function.
11045 (forward_edge_to_pdom): New function.
11046 (remove_dead_stmt): Fix handling of control dependences.
11047 (tree_dce_init): Init new bitmap.
11048 (tree_dce_done): Free it.
11049
11050 2009-07-02 Richard Guenther <rguenther@suse.de>
11051
11052 PR bootstrap/40617
11053 * tree-ssa-structalias.c (new_var_info): Initialize
11054 is_restrict_var.
11055
11056 2009-07-02 Jan Hubicka <jh@suse.cz>
11057
11058 * ipa-pure-const.c (check_op): Use PTA info to see if indirect_ref is
11059 local.
11060
11061 2009-07-02 Paolo Bonzini <bonzini@gnu.org>
11062
11063 * expmed.c (emit_cstore, emit_store_flag_1): Accept target_mode
11064 instead of recomputing it. Adjust calls.
11065 (emit_store_flag): Adjust recursive calls.
11066
11067 2009-07-02 Richard Guenther <rguenther@suse.de>
11068
11069 * tree-ssa-live.c (remove_unused_locals): Do not remove
11070 heap variables.
11071 * tree-ssa-structalias.c (handle_lhs_call): Delay setting
11072 of DECL_EXTERNAL for HEAP variables.
11073 (compute_points_to_sets): Set DECL_EXTERNAL for escaped
11074 HEAP variables. Do not adjust RESTRICT vars.
11075 (find_what_var_points_to): Nobody cares if something
11076 points to READONLY.
11077
11078 2009-07-02 Ben Elliston <bje@au.ibm.com>
11079
11080 * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Move
11081 pc_low and pc_high declarations to the top of the function.
11082
11083 2009-07-01 DJ Delorie <dj@redhat.com>
11084
11085 * config/mep/mep.c (mep_handle_option): Leave IVC2 control
11086 registers as fixed.
11087 (mep_interrupt_saved_reg): Save appropriate IVC2 control registers.
11088 * config/mep/mep-ivc2.cpu: Add VOLATILE to insns that make
11089 unspecified accesses to control registers.
11090 * config/mep/intrinsics.md: Regenerate.
11091 * config/mep/intrinsics.h: Regenerate.
11092 * config/mep/mep-intrin.h: Regenerate.
11093
11094 2009-07-01 Anthony Green <green@moxielogic.com>
11095
11096 * config/moxie/moxie.c (moxie_expand_prologue): Use dec
11097 instruction when possible.
11098 (moxie_expand_prologue): Ditto. Also, save an instruction and
11099 some complexity by popping off of $r12 instead of $sp.
11100 * config/moxie/moxie.md (movsi_pop): Don't assume $sp. Take two
11101 operands.
11102
11103 2009-07-01 Richard Henderson <rth@redhat.com>
11104
11105 PR bootstrap/40347
11106 * function.c (reposition_prologue_and_epilogue_notes): If epilogue
11107 contained no insns, reposition note before last insn.
11108
11109 2009-07-01 Richard Henderson <rth@redhat.com>
11110
11111 PR debug/40431
11112 * dwarf2out.c (def_cfa_1): Revert 2009-06-11 change for
11113 DW_CFA_def_cfa_offset and DW_CFA_def_cfa.
11114
11115 2009-07-01 Michael Meissner <meissner@linux.vnet.ibm.com>
11116
11117 PR bootstrap/40558
11118 * config/rs6000/rs6000.c (print_operand): Undo change that breaks
11119 darwin9 for printing reg addresses with %y.
11120
11121 2009-07-01 Adam Nemet <anemet@caviumnetworks.com>
11122
11123 * combine.c (force_to_mode): Handle TRUNCATE. Factor out
11124 truncation from operands in binary operations.
11125
11126 2009-07-01 Adam Nemet <anemet@caviumnetworks.com>
11127
11128 Revert:
11129 2009-01-11 Adam Nemet <anemet@caviumnetworks.com>
11130 * expmed.c (store_bit_field_1): Properly truncate the paradoxical
11131 subreg of op0 to the original op0.
11132
11133 * expmed.c (store_bit_field_1): Use a temporary as the destination
11134 instead of a paradoxical subreg when we need to truncate the result.
11135
11136 2009-07-01 DJ Delorie <dj@redhat.com>
11137
11138 * config/mep/mep-ivc2.cpu (cmov, cmovc, cmovh): Add intrinsic
11139 names to VLIW variants.
11140 (ivc2rm, ivc2crn): Make data type consistent with non-VLIW variants.
11141 * config/mep/intrinsics.md: Regenerate.
11142 * config/mep/intrinsics.h: Regenerate.
11143 * config/mep/mep-intrin.h: Regenerate.
11144
11145 2009-07-01 Jakub Jelinek <jakub@redhat.com>
11146
11147 PR debug/40462
11148 * jump.c (returnjump_p): Revert last patch.
11149 * dwarf2out.c (dwarf2out_begin_epilogue): Handle SEQUENCEs.
11150
11151 2009-07-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11152
11153 PR target/40575
11154 * pa.md (casesi32p): Use jump table label to determine the offset
11155 of the jump table.
11156 (casesi64p): Likewise.
11157
11158 * pa.c (forward_branch_p): Return bool type. Use instruction
11159 addresses when available. Assert that INSN has a jump label.
11160 (pa_adjust_insn_length): Don't call forward_branch_p if INSN doesn't
11161 have a jump label.
11162
11163 2009-07-01 Richard Guenther <rguenther@suse.de>
11164
11165 PR tree-optimization/19831
11166 * tree-ssa-dce.c (propagate_necessity): Calls to functions
11167 that only act as barriers do not make any previous stores necessary.
11168 * tree-ssa-structalias.c (handle_lhs_call): Delay making
11169 HEAP variables global, do not add a constraint from nonlocal.
11170 (find_func_aliases): Handle escapes through return statements.
11171 (compute_points_to_sets): Make escaped HEAP variables global.
11172
11173 2009-07-01 Paolo Bonzini <bonzini@gnu.org>
11174
11175 PR bootstrap/40597
11176 * expmed.c (emit_store_flag): Perform a conversion if necessary,
11177 after reducing a DImode cstore to SImode.
11178
11179 2009-07-01 Paolo Bonzini <bonzini@gnu.org>
11180
11181 * expr.c (expand_expr_real_1): Reinstate fallthrough to
11182 TRUTH_ANDIF_EXPR if do_store_flag returns NULL.
11183
11184 2009-07-01 Maciej W. Rozycki <macro@linux-mips.org>
11185
11186 * config/vax/vax.h (TARGET_BSD_DIVMOD): New macro. Set to 1.
11187 * config/vax/linux.h (TARGET_BSD_DIVMOD): New macro. Redefine the
11188 to 0.
11189 * config/vax/vax.c (vax_init_libfuncs): Only redefine udiv_optab
11190 and umod_optab if TARGET_BSD_DIVMOD.
11191 * config/vax/lib1funcs.asm: New file.
11192 * config/vax/t-linux: New file.
11193 * config.gcc (vax-*-linux*): Set tmake_file to vax/t-linux.
11194
11195 2009-06-30 Jakub Jelinek <jakub@redhat.com>
11196
11197 PR c++/40566
11198 * convert.c (convert_to_integer) <case COND_EXPR>: Don't convert
11199 to type arguments that have void type.
11200
11201 PR debug/40573
11202 * dwarf2out.c (gen_formal_parameter_die): Call
11203 equate_decl_number_to_die if node is different from origin.
11204
11205 2009-06-30 Anthony Green <green@moxielogic.com>
11206
11207 Clean up moxie port for --enable-build-with-cxx.
11208 * config/moxie/moxie.c (moxie_function_value): First two
11209 parameters are const_tree, not tree.
11210 * config/moxie/moxie.h (enum reg_class): Rename CC_REG to CC_REGS.
11211 (REG_CLASS_NAMES): Ditto.
11212 (REGNO_REG_CLASS): Ditto.
11213 * config/moxie/moxie-protos.h (moxie_override_options): Declare.
11214 (moxie_function_value): Fix constyness of arguments.
11215
11216 2009-06-30 Eric Botcazou <ebotcazou@adacore.com>
11217
11218 * cgraphunit.c (cgraph_finalize_compilation_unit): Call
11219 finalize_size_functions before further processing.
11220 * stor-layout.c: Include cgraph.h, tree-inline.h and tree-dump.h.
11221 (variable_size): Call self_referential_size on size expressions
11222 that contain a PLACEHOLDER_EXPR.
11223 (size_functions): New static variable.
11224 (copy_self_referential_tree_r): New static function.
11225 (self_referential_size): Likewise.
11226 (finalize_size_functions): New global function.
11227 * tree.c: Include tree-inline.h.
11228 (push_without_duplicates): New static function.
11229 (find_placeholder_in_expr): New global function.
11230 (substitute_in_expr) <tcc_declaration>: Return the replacement object
11231 on equality.
11232 <tcc_expression>: Likewise.
11233 <tcc_vl_exp>: If the replacement object is a constant, try to inline
11234 the call in the expression.
11235 * tree.h (finalize_size_functions): Declare.
11236 (find_placeholder_in_expr): Likewise.
11237 (FIND_PLACEHOLDER_IN_EXPR): New macro.
11238 (substitute_placeholder_in_expr): Update comment.
11239 * tree-inline.c (remap_decl): Do not unshare trees if do_not_unshare
11240 is true.
11241 (copy_tree_body_r): Likewise.
11242 (copy_tree_body): New static function.
11243 (maybe_inline_call_in_expr): New global function.
11244 * tree-inline.h (struct copy_body_data): Add do_not_unshare field.
11245 (maybe_inline_call_in_expr): Declare.
11246 * Makefile.in (tree.o): Depend on TREE_INLINE_H.
11247 (stor-layout.o): Depend on CGRAPH_H, TREE_INLINE_H, TREE_DUMP_H and
11248 GIMPLE_H.
11249
11250 2009-06-30 Richard Guenther <rguenther@suse.de>
11251
11252 * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Always
11253 continue walking.
11254 (propagate_necessity): Do not mark reaching defs of stores
11255 as necessary.
11256
11257 2009-06-30 Jan Hubicka <jh@suse.cz>
11258
11259 * cfgloopanal.c (check_irred): Move into ...
11260 (mark_irreducible_loops): ... here; return true if ireducible
11261 loops was found.
11262 * ipa-pure-const.c: Include cfgloop.h and tree-scalar-evolution.h
11263 (analyze_function): Try to prove loop finiteness.
11264 * cfgloop.h (mark_irreducible_loops): Update prototype.
11265 * Makefile.in (ipa-pure-const.o): Add dependency on SCEV and CFGLOOP.
11266
11267 2009-06-30 Basile Starynkevitch <basile@starynkevitch.net>
11268
11269 * Makefile.in (PLUGIN_HEADERS): added ggc, tree-dump, pretty-print.
11270
11271 2009-06-30 Ira Rosen <irar@il.ibm.com>
11272
11273 PR tree-optimization/40542
11274 * tree-vect-stmts.c (vect_analyze_stmt): Don't vectorize volatile
11275 types.
11276
11277 2009-06-30 Martin Jambor <mjambor@suse.cz>
11278
11279 PR tree-optimization/40582
11280 * tree-sra.c (build_ref_for_offset_1): Use types_compatible_p rather
11281 than useless_type_conversion_p.
11282 (generate_subtree_copies): Increment sra_stats.subtree_copies at a
11283 proper place.
11284
11285 2009-06-30 Martin Jambor <mjambor@suse.cz>
11286
11287 PR middle-end/40554
11288 * tree-sra.c (sra_modify_expr): Add access->offset to start_offset.
11289
11290 2009-06-30 Richard Guenther <rguenther@suse.de>
11291
11292 * tree-ssa-alias.c (walk_aliased_vdefs_1): Change interface to
11293 use ao_ref references.
11294 (walk_aliased_vdefs): Likewise.
11295 * tree-ssa-alias.h (walk_aliased_vdefs): Adjust prototype.
11296 * tree-ssa-dce.c (struct ref_data): Remove.
11297 (mark_aliased_reaching_defs_necessary_1): Use the ao_ref argument.
11298 (mark_aliased_reaching_defs_necessary): Adjust.
11299 (mark_all_reaching_defs_necessary_1): Likewise.
11300
11301 2009-06-30 Paolo Bonzini <bonzini@gnu.org>
11302
11303 PR boostrap/40597
11304 * expmed.c (emit_cstore): New name of emit_store_flag_1.
11305 (emit_store_flag_1): Extract from emit_store_flag, adjust
11306 calls to (what now is) emit_cstore.
11307 (emit_store_flag): Call emit_store_flag_1 and also use it
11308 for what used to be recursive calls.
11309
11310 2009-06-30 Wei Guozhi <carrot@google.com>
11311
11312 PR/40416
11313 * tree-ssa-sink.c (statement_sink_location): Stop sinking expression
11314 if the target bb post dominates from bb.
11315 * config/i386/i386.c (memory_address_length): Check existence of base
11316 register before using it.
11317
11318 2009-06-30 Nick Clifton <nickc@redhat.com>
11319 DJ Delorie <dj@redhat.com>
11320
11321 * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
11322 __FMOVD_ENABLED__ is defined.
11323 * config/sh/sh.h
11324 (TARGET_FMOVD): Provide a default definition.
11325 (MASK_FMOVD): Likewise.
11326 (TARGET_CPU_CPP_BUILTINS): Define
11327 __FMOVD_ENABLED__ if TARGET_FMOVD is true.
11328 * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
11329 two fmov instructions depending upon whether TARGET_FMOVD is
11330 enabled.
11331 (split for DF load from memory into register): Also handle
11332 MEMs which consist of REG+DISP addressing.
11333 (split for DF store from register to memory): Likewise.
11334 * config/sh/sh.opt (mfmovd): Remove this switch.
11335 * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
11336 * config/sh/sh.c (sh_override_options): Do not automatically
11337 enable TARGET_MOVD for the SH2A when supporting doubles - leave
11338 that to the -mfmovd command line switch.
11339
11340 * config/sh/sh.c (broken_move): Do not restrict fldi test to only
11341 the SH4 and SH4A.
11342 (fldi_ok): Always allow.
11343 * config/sh/sh.md (movsf_ie): Always use single fp_mode.
11344
11345 2009-06-29 DJ Delorie <dj@redhat.com>
11346
11347 * doc/install.texi (mep-x-elf): Correct chip's full name.
11348
11349 2009-06-29 H.J. Lu <hongjiu.lu@intel.com>
11350
11351 * doc/extend.texi: Fix typo.
11352
11353 2009-06-29 Tom Tromey <tromey@redhat.com>
11354
11355 * dwarf2.h: Remove.
11356 * Makefile.in (DWARF2_H): New variable.
11357 (except.o): Use it.
11358 (dwarf2out.o): Likewise.
11359 (dwarf2asm.o): Likewise.
11360 * config/i386/t-i386: Use DWARF2_H.
11361 * except.c: Include elf/dwarf2.h.
11362 * unwind-dw2.c: Include elf/dwarf2.h.
11363 * dwarf2out.c: Include elf/dwarf2.h.
11364 (dw_loc_descr_struct) <dw_loc_opc>: Now a bitfield.
11365 <dtprel>: New field.
11366 (dwarf_stack_op_name): Don't handle INTERNAL_DW_OP_tls_addr.
11367 (size_of_loc_descr): Likewise.
11368 (output_loc_operands_raw): Likewise.
11369 (output_loc_operands): Handle new dtprel field.
11370 (loc_checksum): Update.
11371 (loc_descriptor_from_tree_1) <VAR_DDECL>: Set dtprel field.
11372 * unwind-dw2-fde-glibc.c: Include elf/dwarf2.h.
11373 * unwind-dw2-fde.c: Include elf/dwarf2.h.
11374 * dwarf2asm.c: Include elf/dwarf2.h.
11375 * unwind-dw2-fde-darwin.c: Include elf/dwarf2.h.
11376 * config/mmix/mmix.c: Include elf/dwarf2.h.
11377 * config/rs6000/darwin-fallback.c: Include elf/dwarf2.h.
11378 * config/xtensa/unwind-dw2-xtensa.c: Include elf/dwarf2.h.
11379 * config/sh/sh.c: Include elf/dwarf2.h.
11380 * config/i386/i386.c: Include elf/dwarf2.h.
11381
11382 2009-06-29 DJ Delorie <dj@redhat.com>
11383
11384 * config/mep/mep.h (CPP_SPEC): Remove __cop macro.
11385
11386 * doc/extend.texi: Add MeP attributes and pragmas.
11387 * doc/invoke.text: Add MeP Options.
11388 * doc/contrib.texi: Add MeP contribution.
11389 * doc/md.texi: Add MeP constraints.
11390 * doc/install.texi: Add MeP target.
11391
11392 2009-06-30 Anatoly Sokolov <aesok@post.ru>
11393
11394 * target.h (struct gcc_target): Add frame_pointer_required field.
11395 * target-def.h (TARGET_FRAME_POINTER_REQUIRED): New.
11396 (TARGET_INITIALIZER): Use TARGET_FRAME_POINTER_REQUIRED.
11397 * ira.c (setup_eliminable_regset): Use frame_pointer_required target
11398 hook.
11399 * reload1.c (update_eliminables): (Ditto.).
11400 * gcc/system.h (FRAME_POINTER_REQUIRED): Poison.
11401 * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
11402 (INITIAL_FRAME_POINTER_OFFSET): (Ditto.).
11403
11404 * config/arc/arc.h (FRAME_POINTER_REQUIRED): Remove macro.
11405
11406 * config/arm/arm.h (FRAME_POINTER_REQUIRED): Remove macro.
11407 * config/arm/arm.c (TARGET_FRAME_POINTER_REQUIRED): Define.
11408 (arm_frame_pointer_required): New function.
11409
11410 * config/avr/avr.h (FRAME_POINTER_REQUIRED): Remove macro.
11411 * config/avr/avr.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
11412 (avr_frame_pointer_required_p): Declare as static.
11413 * config/avr/avr-protos.h (avr_frame_pointer_required_p): Remove.
11414
11415 * config/bfin/bfin.h (FRAME_POINTER_REQUIRED): Remove macro.
11416 * config/bfin/bfin.c (TARGET_FRAME_POINTER_REQUIRED): Define.
11417 (bfin_frame_pointer_required): Make as static, change return type
11418 to bool.
11419 * config/bfin/bfin-protos.h (bfin_frame_pointer_required): Remove.
11420
11421 * config/cris/cris.h (FRAME_POINTER_REQUIRED): Remove macro.
11422 * config/cris/cris.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
11423 (cris_frame_pointer_required): New function.
11424
11425 * config/crx/crx.h (FRAME_POINTER_REQUIRED): Remove macro.
11426
11427 * config/fr30/fr30.h (FRAME_POINTER_REQUIRED): Remove macro.
11428 * config/fr30/fr30.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
11429 (fr30_frame_pointer_required): New function.
11430
11431 * config/frv/frv.h (FRAME_POINTER_REQUIRED): Remove macro.
11432 * config/frv/frv.c (TARGET_FRAME_POINTER_REQUIRED): Define.
11433 (frv_frame_pointer_required): Make as static, change return type
11434 to bool.
11435 * config/bfin/bfin-protos.h (frv_frame_pointer_required): Remove.
11436
11437 * config/i386/i386.h (FRAME_POINTER_REQUIRED): Remove macro.
11438 * config/i386/i386.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
11439 (ix86_frame_pointer_required): Make as static, change return type to
11440 bool.
11441 * config/i386/i386-protos.h (ix86_frame_pointer_required): Remove.
11442
11443 * config/m32c/m32c.h (FRAME_POINTER_REQUIRED): Remove macro.
11444 * config/m32c/m32c.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
11445
11446 * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Remove macro.
11447
11448 * config/mcore/mcore.h (CAN_ELIMINATE): Remove macro.
11449
11450 * config/mep/mep.h (FRAME_POINTER_REQUIRED): Remove macro.
11451
11452 * config/mips/mips.h (FRAME_POINTER_REQUIRED): Remove macro.
11453 * config/mips/mips.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
11454 (mips_frame_pointer_required): Make as static.
11455 * config/mips/mips-protos.h (mips_frame_pointer_required): Remove.
11456
11457 * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Remove macro.
11458 * config/mmix/mmix.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
11459 (mmix_frame_pointer_required): Mew function.
11460
11461 * config/moxie/moxie.h (FRAME_POINTER_REQUIRED): Remove macro.
11462 * config/moxie/moxie.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
11463
11464 * config/pa/pa.h (FRAME_POINTER_REQUIRED): Remove macro.
11465
11466 * config/score/score.h (FRAME_POINTER_REQUIRED): Remove macro.
11467
11468 * config/sh/sh.h (CAN_ELIMINATE): Remove macro.
11469
11470 * config/sparc/sparc.h (FRAME_POINTER_REQUIRED): Remove macro.
11471 (CAN_ELIMINATE): Redefine.
11472 * config/sparc/sparc.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
11473 (sparc_frame_pointer_required): New function.
11474 (sparc_can_eliminate): New function.
11475 * config/sparc/sparc-protos.h (sparc_can_eliminate): Declare.
11476
11477 * config/vax/vax.h (FRAME_POINTER_REQUIRED): Remove macro.
11478 * config/vax/vax.c (TARGET_FRAME_POINTER_REQUIRED): Define.
11479
11480 * config/xtensa/xtensa.h (FRAME_POINTER_REQUIRED): Remove macro.
11481 * config/xtensa/xtensa.c (TARGET_FRAME_POINTER_REQUIRED): Define.
11482 (xtensa_frame_pointer_required): Make as static, change return type
11483 to bool.
11484 * config/xtensa/xtensa-protos.h (xtensa_frame_pointer_required):
11485 Remove.
11486
11487 2009-06-29 Olatunji Ruwase <tjruwase@google.com>
11488
11489 * doc/plugins.texi: Document PLUGIN_START_UNIT.
11490 * toplev.c (compile_file): Call PLUGIN_START_UNIT.
11491 * gcc-plugin.h (PLUGIN_START_UNIT): Added new event.
11492 * plugin.c (plugin_event_name): Added PLUGIN_START_UNIT.
11493 (register_callback): Handle PLUGIN_START_UNIT.
11494 (invoke_plugin_callbacks): Handle PLUGIN_START_UNIT.
11495
11496 2009-06-29 Eric Botcazou <ebotcazou@adacore.com>
11497
11498 * tree.c (process_call_operands): Propagate TREE_READONLY from the
11499 operands.
11500 (PROCESS_ARG): Do not clear TREE_READONLY if CONSTANT_CLASS_P.
11501 (build3_stat): Propagate TREE_READONLY for COND_EXPR.
11502
11503 2009-06-29 Daniel Jacobowitz <dan@codesourcery.com>
11504
11505 * config/arm/arm.h (REGISTER_MOVE_COST): Increase VFP register
11506 move cost.
11507
11508 2009-06-29 Uros Bizjak <ubizjak@gmail.com>
11509
11510 * doc/extend.texi (Additional Floating Types): __float128 is also
11511 supported on i386 targets.
11512
11513 2009-06-29 Richard Guenther <rguenther@suse.de>
11514
11515 PR middle-end/14187
11516 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
11517 flag.
11518 (pt_solutions_same_restrict_base): Declare.
11519 * tree-ssa-structalias.c (struct variable_info): Add is_restrict_var
11520 flag.
11521 (new_var_info): Initialize is_global_var properly for SSA_NAMEs.
11522 (make_constraint_from, make_copy_constraint): Move earlier.
11523 (make_constraint_from_heapvar): New function.
11524 (make_constraint_from_restrict): Likewise.
11525 (handle_lhs_call): Use it.
11526 (find_func_aliases): Use it to track conversions to restrict
11527 qualified pointers.
11528 (struct fieldoff): Add only_restrict_pointers flag.
11529 (push_fields_onto_fieldstack): Initialize it.
11530 (create_variable_info_for): Track global restrict qualified pointers.
11531 (intra_create_variable_infos): Use make_constraint_from_heapvar.
11532 Track restrict qualified pointer arguments.
11533 (set_uids_in_ptset): Use varinfo is_global_var flag.
11534 (find_what_var_points_to): Set the vars_contains_restrict flag.
11535 Always create the points-to solution for sets including restrict tags.
11536 (pt_solutions_same_restrict_base): New function.
11537 * tree-ssa-alias.c (ptr_derefs_may_alias_p): For two restrict
11538 qualified pointers use pt_solutions_same_restrict_base as
11539 additional source for disambiguation.
11540
11541 2009-06-29 Richard Guenther <rguenther@suse.de>
11542
11543 PR middle-end/38212
11544 * alias.c (find_base_decl): Remove.
11545 (get_deref_alias_set_1): Remove restrict handling.
11546 * c-common.c (c_apply_type_quals_to_decl): Do not set
11547 DECL_POINTER_ALIAS_SET.
11548 * gimplify.c (find_single_pointer_decl_1): Remove.
11549 (find_single_pointer_decl): Likewise.
11550 (internal_get_tmp_var): Remove restrict handling.
11551 (gimple_regimplify_operands): Likewise.
11552 * omp-low.c (expand_omp_atomic_pipeline): Do not set
11553 DECL_POINTER_ALIAS_SET. Use ref-all pointers.
11554 * print-tree.c (print_node): Do not print DECL_POINTER_ALIAS_SET.
11555 * tree.c (restrict_base_for_decl): Remove.
11556 (init_ttree): Do not allocate it.
11557 (make_node_stat): Do not set DECL_POINTER_ALIAS_SET. Set
11558 LABEL_DECL_UID for label decls.
11559 (copy_node_stat): Do not copy restrict information.
11560 (decl_restrict_base_lookup): Remove.
11561 (decl_restrict_base_insert): Likewise.
11562 (print_restrict_base_statistics): Likewise.
11563 (dump_tree_statistics): Do not call print_restrict_base_statistics.
11564 * tree.h (DECL_POINTER_ALIAS_SET): Remove.
11565 (DECL_POINTER_ALIAS_SET_KNOWN_P): Likewise.
11566 (struct tree_decl_common): Rename pointer_alias_set to label_decl_uid.
11567 (LABEL_DECL_UID): Adjust.
11568 (DECL_BASED_ON_RESTRICT_P): Remove.
11569 (DECL_GET_RESTRICT_BASE): Likewise.
11570 (SET_DECL_RESTRICT_BASE): Likewise.
11571 (struct tree_decl_with_vis): Remove based_on_restrict_p flag.
11572
11573 * config/i386/i386.c (ix86_gimplify_va_arg): Use ref-all pointers
11574 instead of DECL_POINTER_ALIAS_SET.
11575 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
11576 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
11577 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
11578
11579 2009-06-29 Richard Guenther <rguenther@suse.de>
11580
11581 PR tree-optimization/40579
11582 * tree-vrp.c (vrp_evaluate_conditional): Bail out early if
11583 the IL to simplify has constants that overflowed.
11584
11585 2009-06-28 Uros Bizjak <ubizjak@gmail.com>
11586
11587 PR tree-optimization/40550
11588 * tree-vect-generic.c (expand_vector_operations_1): Compute in
11589 vector_compute_type only when the size of vector_compute_type is
11590 less than the size of type.
11591
11592 2009-06-28 Eric Botcazou <ebotcazou@adacore.com>
11593
11594 * fold-const.c (contains_label_1): Fix comments.
11595 (contains_label_p): Do not walk trees multiple time.
11596
11597 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
11598
11599 * config/i386/i386.h (enum ix86_fpcmp_strategy): New.
11600 * config/i386/i386.md (cbranchxf4, cstorexf4, cbranch<MODEF>4,
11601 cstore<MODEF>4, mov<X87MODEF>cc): Change predicate to
11602 ix86_fp_comparison_operator.
11603 (*fp_jcc_1_mixed, *fp_jcc_1_sse, *fp_jcc_1_387, *fp_jcc_2_mixed,
11604 *fp_jcc_2_sse, *fp_jcc_2_387): Delete
11605 (*fp_jcc_3_387, *fp_jcc_4_387, *fp_jcc_5_387, *fp_jcc_6_387,
11606 *fp_jcc_7_387, *fp_jcc_8<MODEF>_387): Eliminate call to
11607 !ix86_use_fcomi_compare, change ix86_fp_jump_nontrivial_p call
11608 to !TARGET_CMOVE, change predicate to ix86_fp_comparison_operator.
11609 (related splits): Change predicate to ix86_fp_comparison_operator.
11610 * config/i386/predicates.md: Use ix86_trivial_fp_comparison_operator
11611 instead of ix86_fp_comparison_codes.
11612 (ix86_trivial_fp_comparison_operator,
11613 ix86_fp_comparison_operator): New.
11614 * config/i386/i386-protos.h (ix86_fp_comparison_strategy): New.
11615 (ix86_expand_compare): Eliminate last two parameters.
11616 (ix86_fp_jump_nontrivial_p): Kill.
11617 * config/i386/i386.c (put_condition_code): Eliminate call to
11618 ix86_fp_comparison_codes and subsequent assertion.
11619 (ix86_fp_comparison_codes): Eliminate.
11620 (ix86_fp_swap_condition): New.
11621 (ix86_fp_comparison_arithmetics_cost, ix86_fp_comparison_fcomi_cost,
11622 ix86_fp_comparison_sahf_cost, ix86_use_fcomi_compare): Consolidate
11623 into ix86_fp_comparison_cost and ix86_fp_comparison_strategy.
11624 (ix86_prepare_fp_compare_args): Use ix86_fp_comparison_strategy
11625 and ix86_fp_swap_condition.
11626 (ix86_expand_fp_compare): Eliminate code for second jump/bypass jump.
11627 Use ix86_fp_comparison_strategy.
11628 (ix86_expand_compare): Likewise. Eliminate last two arguments.
11629 (ix86_fp_jump_nontrivial_p): Eliminate.
11630 (ix86_expand_branch): Treat SFmode/DFmode/XFmode as simple. Adjust
11631 call to ix86_expand_compare.
11632 (ix86_split_fp_branch, ix86_expand_setcc,
11633 ix86_expand_carry_flag_compare, ix86_expand_int_movcc,
11634 ix86_expand_fp_movcc): Eliminate code for second jump/bypass jump.
11635
11636 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
11637
11638 * config/arm/arm.c (arm_final_prescan_ins): Eliminate code
11639 related to jump_clobbers.
11640 * config/arm/arm.md (conds): Remove jump_clob case.
11641 (addsi3_cbranch, addsi3_cbranch_scratch, subsi3_cbranch, two
11642 splits): Change comparison_operator to arm_comparison_operator.
11643 (*arm_buneq, *arm_bltgt, *arm_buneq_reversed, *arm_bltgt_reversed):
11644 Eliminate.
11645
11646 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
11647
11648 * dojump.c (do_compare_rtx_and_jump): Try swapping the
11649 condition for floating point modes.
11650 * expmed.c (emit_store_flag_1): Move here a bigger part
11651 of emit_store_flag.
11652 (emit_store_flag): Try swapping the condition for floating point
11653 modes.
11654 * optabs.c (emit_cmp_and_jump_insns): Cope with constant op0 better.
11655
11656 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
11657
11658 * expr.c (expand_expr_real_1): Just use do_store_flag.
11659 (do_store_flag): Drop support for TRUTH_NOT_EXPR. Use
11660 emit_store_flag_force.
11661 * expmed.c (emit_store_flag_force): Copy here trick
11662 previously in expand_expr_real_1. Try reversing the comparison.
11663 (emit_store_flag_1): Work if target is NULL.
11664 (emit_store_flag): Work if target is NULL, using the result mode
11665 from the comparison. Use split_comparison, restructure final part
11666 to simplify conditionals.
11667
11668 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
11669
11670 * builtins.c (expand_errno_check): Use do_compare_rtx_and_jump.
11671 * dojump.c (do_jump): Change handling of floating-point
11672 ops to use just do_compare_and_jump.
11673 (split_comparison): New.
11674 (do_compare_rtx_and_jump): Add here logic coming previously
11675 in do_jump, using split_comparison.
11676
11677 2009-06-27 H.J. Lu <hongjiu.lu@intel.com>
11678
11679 PR target/40489
11680 * config/ia64/ia64.c (ia64_reorg): Check NULL insn.
11681
11682 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
11683
11684 * tree-ssa-alias.c: Fix unintentional commit.
11685
11686 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
11687
11688 * passes.c (execute_one_pass): Fix unintentional commit.
11689
11690 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
11691
11692 * df-problems.c (df_set_seen, df_unset_seen): Delete.
11693 (df_rd_local_compute, df_md_local_compute): Inline them.
11694
11695 (df_md_scratch): New.
11696 (df_md_alloc, df_md_free): Allocate/free it.
11697 (df_md_local_compute): Only include live registers in init.
11698 (df_md_transfer_function): Prune the in-set computed by
11699 the confluence function, and the gen-set too.
11700
11701 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
11702
11703 PR rtl-optimization/26854
11704 * timevar.def: Remove TV_DF_RU, add TV_DF_MD.
11705 * df-problems.c (df_rd_add_problem): Fix comment.
11706 (df_md_set_bb_info, df_md_free_bb_info, df_md_alloc,
11707 df_md_simulate_artificial_defs_at_top,
11708 df_md_simulate_one_insn, df_md_bb_local_compute_process_def,
11709 df_md_bb_local_compute, df_md_local_compute, df_md_reset,
11710 df_md_transfer_function, df_md_init, df_md_confluence_0,
11711 df_md_confluence_n, df_md_free, df_md_top_dump, df_md_bottom_dump,
11712 problem_MD, df_md_add_problem): New.
11713 * df.h (DF_MD, DF_MD_BB_INFO, struct df_md_bb_info, df_md,
11714 df_md_get_bb_info): New.
11715 (DF_LAST_PROBLEM_PLUS1): Adjust.
11716
11717 * Makefile.in (fwprop.o): Include domwalk.h.
11718 * fwprop.c: Include domwalk.h.
11719 (reg_defs, reg_defs_stack): New.
11720 (bitmap_only_bit_between): Remove.
11721 (process_defs): New.
11722 (process_uses): Use reg_defs and local_md instead of
11723 bitmap_only_bit_between and local_rd.
11724 (single_def_use_enter_block): New, from build_single_def_use_links.
11725 (single_def_use_leave_block): New.
11726 (build_single_def_use_links): Remove code moved to
11727 single_def_use_enter_block, invoke domwalk.
11728 (use_killed_between): Adjust comment.
11729
11730 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
11731
11732 * bitmap.h (bitmap_ior_and_into): New.
11733 * bitmap.c (bitmap_ior_and_into): New.
11734
11735 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
11736
11737 * domwalk.h (struct dom_walk_data): Remove all callbacks except
11738 before_dom_children_before_stmts and after_dom_children_after_stmts.
11739 Rename the two remaining callbacks to just before_dom_children and
11740 after_dom_children. Remove other GIMPLE statement walking bits.
11741 * domwalk.c (walk_dominator_tree): Remove now unsupported features.
11742 * graphite.c: Do not include domwalk.h.
11743 * tree-into-ssa.c (interesting_blocks): New global.
11744 (struct mark_def_sites_global_data): Remove it and names_to_rename.
11745 (mark_def_sites, rewrite_stmt, rewrite_add_phi_arguments,
11746 rewrite_update_stmt, rewrite_update_phi_arguments): Simplify
11747 now that they're not domwalk callbacks.
11748 (rewrite_initialize_block): Rename to...
11749 (rewrite_enter_block): ... this, place after called functions. Test
11750 interesting_blocks, call rewrite_stmt and rewrite_add_phi_arguments.
11751 (rewrite_finalize_block): Rename to...
11752 (rewrite_leave_block): ... this, place after called functions.
11753 (rewrite_update_init_block): Rename to...
11754 (rewrite_update_enter_block): ... this, place after called functions.
11755 Test interesting_blocks, call rewrite_update_stmt and
11756 rewrite_update_phi_arguments.
11757 (rewrite_update_fini_block): Rename to...
11758 (rewrite_leave_block): ... this, place after called functions.
11759 (rewrite_blocks): Remove last argument, simplify initialization of
11760 walk_data.
11761 (mark_def_sites_initialize_block): Rename to...
11762 (mark_def_sites_block): ... this, call mark_def_sites.
11763 (mark_def_sites_blocks): Remove argument, simplify initialization of
11764 walk_data.
11765 (rewrite_into_ssa): Adjust for interesting_blocks_being a global.
11766 (update_ssa): Likewise.
11767 * tree-ssa-dom.c (optimize_stmt): Simplify now that it's not a domwalk
11768 callback.
11769 (tree_ssa_dominator_optimize): Simplify initialization of walk_data.
11770 (dom_opt_initialize_block): Rename to...
11771 (dom_opt_enter_block): ... this, place after called functions. Walk
11772 statements here, inline propagate_to_outgoing_edges.
11773 (dom_opt_finalize_block): Rename to...
11774 (dom_opt_leave_block): ... this, place after called functions.
11775 * tree-ssa-dse.c (dse_optimize_stmt): Simplify now that it's not a
11776 domwalk callback.
11777 (dse_enter_block, dse_record_phi): New.
11778 (dse_record_phis): Delete.
11779 (dse_finalize_block): Rename to...
11780 (dse_leave_block): ... this.
11781 (tree_ssa_dse): Simplify initialization of walk_data.
11782 * tree-ssa-loop-im.c (determine_invariantness, move_computations):
11783 Adjust initialization of walk_data.
11784 * tree-ssa-loop-unswitch.c: Do not include domwalk.h.
11785 * tree-ssa-loop-phiopt.c (get_non_trapping):
11786 Adjust initialization of walk_data.
11787 * tree-ssa-loop-threadedge.c: Do not include domwalk.h.
11788 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Simplify now that
11789 it's not a domwalk callback.
11790 (uncprop_initialize_block): Rename to...
11791 (dse_enter_block): ... this, call uncprop_into_successor_phis.
11792 (dse_finalize_block): Rename to...
11793 (dse_leave_block): ... this.
11794 (tree_ssa_uncprop): Simplify initialization of walk_data.
11795 * Makefile.in: Adjust dependencies.
11796
11797 2009-06-27 Richard Earnshaw <rearnsha@arm.com>
11798
11799 * arm.md (casesi): Fix test for Thumb1.
11800 (thumb1_casesi_internal_pic): Likewise.
11801 (thumb1_casesi_dispatch): Likewise.
11802
11803 2009-06-26 Daniel Gutson <dgutson@codesourcery.com>
11804
11805 * config/arm/arm-cores.def: Added core cortex-m0.
11806 * config/arm/arm-tune.md: Regenerated.
11807 * doc/invoke.texi: Added entry for cpu ARM Cortex-M0.
11808
11809 2009-06-26 DJ Delorie <dj@redhat.com>
11810
11811 * config/mep/mep.opt (mfar): Remove -mfar as it doesn't do anything.
11812
11813 * config/mep/mep.c (mep_bundle_insns): Account for the fact that
11814 the scheduler doesn't tag jump insns.
11815
11816 2009-06-26 H.J. Lu <hongjiu.lu@intel.com>
11817
11818 * c-decl.c (merge_decls): Re-indent.
11819
11820 2009-06-26 Janis Johnson <janis187@us.ibm.com>
11821
11822 PR c/39902
11823 * tree.c (real_zerop, real_onep, real_twop, real_minus_onep):
11824 Special-case decimal float constants.
11825
11826 2009-06-26 Richard Henderson <rth@redhat.com>
11827
11828 * function.h (struct function): Add cannot_be_copied_reason,
11829 and cannot_be_copied_set.
11830 * tree-inline.c (has_label_address_in_static_1): Rename from
11831 inline_forbidden_p_2; don't set inline_forbidden_reason here.
11832 (cannot_copy_type_1): Rename from inline_forbidden_p_op; likewise
11833 don't set inline_forbidden_reason.
11834 (copy_forbidden): New function, split out of inline_forbidden_p.
11835 (inline_forbidden_p_stmt): Don't check for nonlocal labels here.
11836 (inline_forbidden_p): Use copy_forbidden.
11837 (tree_versionable_function_p): Likewise.
11838 (inlinable_function_p): Merge into tree_inlinable_function_p.
11839 (tree_function_versioning): Remap cfun->nonlocal_goto_save_area.
11840 * ipa-cp.c (ipcp_versionable_function_p): New function.
11841 (ipcp_cloning_candidate_p): Use it.
11842 (ipcp_node_modifiable_p): Likewise.
11843
11844 2009-06-26 Olatunji Ruwase <tjruwase@google.com>
11845
11846 * builtins.c (expand_builtin_alloca): Handle builtin alloca
11847 that is marked not to be inlined. Remove flag_mudflap use.
11848 * tree-mudflap.c: Rename mf_xform_derefs to mf_xfrom_statements.
11849 (mf_xform_statements): Mark builtin alloca calls as un-inlineable.
11850
11851 2009-06-26 Steve Ellcey <sje@cup.hp.com>
11852
11853 PR bootstrap/40338
11854 * config/pa/t-pa-hpux10 (TARGET_LIBGCC2_CFLAGS): Add -frandom-seed.
11855 * config/pa/t-pa-hpux11 (TARGET_LIBGCC2_CFLAGS): Ditto.
11856
11857 2009-06-26 Kai Tietz <kai.tietz@onevision.com>
11858
11859 * config/i386/mingw-tls.c (__mingwthr_key_dtor): Remove for none
11860 shared libgcc.
11861 (__mingwthr_remove_key_dtor): Likewise.
11862
11863 2009-06-26 Richard Guenther <rguenther@suse.de>
11864
11865 * tree-ssa-structalias.c (do_ds_constraint): Simplify escape handling.
11866
11867 2009-06-26 Steven Bosscher <steven@gcc.gnu.org>
11868
11869 PR middle-end/40525
11870 * ifcvt.c (dead_or_predicable): If predicating MERGE_BB fails,
11871 try the non-cond_exec path also.
11872
11873 2009-06-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11874
11875 PR target/40468
11876 * pa.c (branch_to_delay_slot_p, branch_needs_nop_p): New functions.
11877 (output_cbranch): Use new functions.
11878 (output_lbranch, output_bb, output_bvb, output_dbra, output_movb):
11879 Likewise.
11880
11881 2009-06-25 Michael Meissner <meissner@linux.vnet.ibm.com>
11882 Pat Haugen <pthaugen@us.ibm.com>
11883 Revital Eres <ERES@il.ibm.com>
11884
11885 * config/rs6000/rs6000.c (print_operand): Correct lossage message
11886 for %c error. Add %x support to print VSX registers as a unified
11887 register set, instead of separate float and altivec registers.
11888 Switch to use VECTOR_MEM_ALTIVEC_P instead of TARGET_ALTIVEC for
11889 %y case, and add support for VSX pre-modify addresses.
11890 (output_toc): Add assert for CONST containing an integer constant
11891 in the PLUS case.
11892 (rs6000_adjust_cost): Add POWER7 support.
11893 (insn_must_be_first_in_group): Ditto.
11894 (insn_must_be_last_in_group): Ditto.
11895 (rs6000_emit_popcount): Ditto.
11896 (rs6000_vector_mode_supported_p): Ditto.
11897
11898 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_class):
11899 Change some of the functions called by macros to being called
11900 through a pointer, so debug functions can be inserted if
11901 -mdebug=addr or -mdebug=cost.
11902 (rs6000_preferred_reload_class_ptr): Ditto.
11903 (rs6000_secondary_reload_class_ptr): Ditto.
11904 (rs6000_secondary_memory_needed_ptr): Ditto.
11905 (rs6000_cannot_change_mode_class_ptr): Ditto.
11906 (rs6000_secondary_reload_inner): Ditto.
11907 (rs6000_legitimize_reload_address): Ditto.
11908 (rs6000_legitimize_reload_address_ptr): Ditto.
11909 (rs6000_mode_dependent_address): Ditto.
11910 (rs6000_mode_dependent_address_ptr): Ditto.
11911
11912 * config/rs6000/rs6000.c (reg_offset_addressing_ok_p): New
11913 function to return true if the mode allows reg + integer
11914 addresses.
11915 (virtual_stack_registers_memory_p): New function to return true if
11916 the address refers to a virtual stack register.
11917 (rs6000_legitimate_offset_address_p): Move code to say whether a
11918 mode supports reg+int addressing to reg_offset_addressing_ok_p and
11919 call it.
11920 (rs6000_legitimate_address_p): Add checks for modes that only can
11921 do reg+reg addressing. Start adding VSX support.
11922 (rs6000_legitimize_reload_address): Ditto.
11923 (rs6000_legitimize_address): Ditto.
11924 (rs6000_debug_legitimate_address_p): New debug functions for
11925 -mdebug=addr and -mdebug=cost.
11926 (rs6000_debug_rtx_costs): Ditto.
11927 (rs6000_debug_address_costs): Ditto.
11928 (rs6000_debug_adjust_cost): Ditto.
11929 (rs6000_debug_legitimize_address): Ditto.
11930 (rs6000_legitimize_reload_address_ptr): Point to call normal
11931 function or debug function. Make functions called via pointer
11932 static.
11933 (rs6000_mode_dependent_address_ptr): Ditto.
11934 (rs6000_secondary_reload_class_ptr): Ditto.
11935 (rs6000_hard_regno_mode_ok): Add preliminary VSX support.
11936 (rs6000_emit_move): Add -mdebug=addr support. Change an abort
11937 into a friendlier error.
11938 (rs6000_init_builtins): Add initial VSX support.
11939 (rs6000_adjust_cost): Fix some spacing issues.
11940
11941 * config/rs6000/rs6000.h (enum reg_class): Add VSX_REGS.
11942 (REG_CLASS_NAMES): Ditto.
11943 (REG_CLASS_CONTENTS): Ditto.
11944 (PREFERRED_RELOAD_CLASS): Move from a macro to calling through a
11945 pointer, to add -mdebug=addr support.
11946 (CANNOT_CHANGE_MODE_CLASS): Ditto.
11947 (SECONDARY_RELOAD_CLASS): Call through a pointer to add
11948 -mdebug=addr support.
11949 (LEGITIMIZE_RELOAD_ADDRESS): Ditto.
11950 (GO_IF_MODE_DEPENDENT_ADDRESS): Ditto.
11951 (enum rs6000_builtins): Add RS6000_BUILTIN_BSWAP_HI.
11952
11953 * config/rs6000/rs6000.md (bswaphi*): Add support for swapping
11954 16-bit values.
11955 (bswapsi*): Set attribute types for load/store. Add combiner
11956 patterns to eliminate zero extend on 64-bit.
11957 (bswapdi*): Add support for swapping 64-bit values. Use ldbrx and
11958 stdbrx if the hardware supports those instructions.
11959
11960 2009-06-25 Ian Lance Taylor <iant@google.com>
11961
11962 * doc/invoke.texi (Option Summary): Mention -static-libstdc++.
11963 (Link Options): Document -static-libstdc++.
11964
11965 2009-06-25 Andrew Pinski <andrew_pinski@playstation.sony.com>
11966
11967 PR target/38731
11968 * config/rs6000/rs6000.c (LOCAL_ALIGNMENT): Redefine to just use
11969 DATA_ALIGNMENT instead.
11970
11971 2009-06-25 Richard Guenther <rguenther@suse.de>
11972
11973 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Disambiguate
11974 indirect references against the callused/escaped solutions.
11975 (call_may_clobber_ref_p_1): Likewise.
11976
11977 2009-06-25 Martin Jambor <mjambor@suse.cz>
11978
11979 PR tree-optimization/40493
11980 * tree-sra.c (sra_modify_expr): Correct BIT_FIELD_REF argument numbers.
11981 (enum unscalarized_data_handling): New type.
11982 (handle_unscalarized_data_in_subtree): Return what has been done.
11983 (load_assign_lhs_subreplacements): Handle left flushes differently.
11984 (sra_modify_assign): Use unscalarized_data_handling, simplified
11985 condition determining whether to remove the statement.
11986
11987 2009-06-25 Basile Starynkevitch <basile@starynkevitch.net>
11988
11989 * doc/plugins.texi (Building GCC plugins): Correct typo in Makefile
11990 excerpt - @ should be doubled for texinfo.
11991
11992 2009-06-24 Ian Lance Taylor <iant@google.com>
11993
11994 * config/arc/arc.c: Include "df.h".
11995 (arc_attribute_table): Make static. Move higher in file.
11996 (arc_address_cost): Call SMALL_INT on INTVAL, not rtx.
11997 (output_shift): Initialize n later to avoid warning.
11998 * config/arm/arm.c (arm_attribute_table): Make static. Move
11999 higher in file.
12000 * config/avr/avr.c (avr_attribute_table): Make static. Move
12001 higher in file.
12002 (reg_class_tab): Change array type from int to enum reg_class.
12003 (avr_jump_mode): Change GET_MODE to GET_CODE when checking for
12004 LABEL_REF.
12005 (out_tsthi, ashlhi3_out): Don't use AS2 with "or" or "and".
12006 (lshrhi3_out): Likewise.
12007 (class_likely_spilled_p): Change return type to bool.
12008 (avr_rtx_costs): Use local code variable with enum type.
12009 * config/avr/avr.md (movmemhi): Use add_reg_note.
12010 (andhi3, andsi3): Don't use AS2 with "and".
12011 (iorhi3, iorsi3): Don't use AS2 with "or".
12012 * config/avr/avr-protos.h (class_likely_spilled_p): Update declaration.
12013 * config/crx/crx.c: Include "df.h".
12014 (crx_attribute_table): Make static.
12015 * config/m32r/m32r.c: Include "df.h".
12016 (m32r_attribute_table): Make static. Move higher in file.
12017 (pop): Use add_reg_note.
12018 (block_move_call): Change 0 to LCT_NORMAL in function call.
12019 * config/m32r/m32r.md (movsi_insn): Remove unused local value.
12020 * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Likewise.
12021 * config/m32r/m32r-protos.h (m32r_compute_function_type): Always
12022 declare, not just when TREE_CODE is defined.
12023 * config/m68hc11/m68hc11.c: Include "expr.h".
12024 (m68hc11_attribute_table): Make static. Move higher in file.
12025 (m68hc11_small_indexed_indirect_p): Change 0 to VOIDmode in
12026 function call.
12027 (m68hc11_register_indirect_p): Likewise.
12028 (m68hc11_function_arg_padding): Change return type to enum
12029 direction.
12030 (emit_move_after_reload): Use add_reg_note.
12031 (m68hc11_emit_logical): Change code parameter to enum rtx_code.
12032 (m68hc11_split_logical): Likewise.
12033 (m68hc11_rtx_costs): Add local code_and outer_code variables with
12034 enum type.
12035 * config/m68hc11/predicates.md (reg_or_some_mem_operand): Change 0
12036 to VOIDmode in function call.
12037 * config/m68hc11/m68hc11-protos.h: Don't check TREE_CODE to see if
12038 tree is defined.
12039 (m68hc11_split_logical): Update declaration.
12040 (m68hc11_function_arg_padding): Update declaration.
12041 * config/mcore/mcore.c (regno_reg_class): Change form array of int
12042 to array of enum reg_class.
12043 (mcore_attribute_table): Make static. Move higher in file.
12044 (mcore_rtx_costs): Add cast to enum type.
12045 * config/mcore/mcore.h (regno_reg_class): Update declaration.
12046 (GO_IF_LEGITIMATE_INDEX): Add cast to avoid warning.
12047 * config/sh/sh.c (sh_attribute_table): Make static. Move higher
12048 in file.
12049 * config/sh/predicates.md (trapping_target_operand): Rename and to
12050 and_expr.
12051 * config/sparc/sparc.c (sparc_attribute_table): Make static. Move
12052 higher in file.
12053 * config/spu/spu.c (spu_attribute_table): Make static. Move
12054 higher in file.
12055 * config/v850/v850.c (v850_attribute_table): Make static. Move
12056 higher in file.
12057 (v850_rtx_costs): Use local code with enum type.
12058 (expand_epilogue): Add cast.
12059 * config/v850/v850-c.c (ghs_pragma_section): Initialize repeat.
12060
12061 2009-06-23 Takashi YOSHII <yoshii.takashi@renesas.com>
12062
12063 PR target/40515
12064 * doc/invoke.texi (SH Options): Document -m2a, -m2a-single,
12065 -m2a-single-only and -m2a-nofpu.
12066 * config/sh/sh.opt: Document m2a generates FPU code.
12067
12068 2009-06-24 Anatoly Sokolov <aesok@post.ru>
12069
12070 * defaults.h (CAN_ELIMINATE): Provide default.
12071 * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
12072 * config/alpha/alpha.h (CAN_ELIMINATE): Delete.
12073 * config/m32c/m32c.h (CAN_ELIMINATE): Delete.
12074 * config/spu/spu.h (CAN_ELIMINATE): Delete.
12075 * config/xtensa/xtensa.h (CAN_ELIMINATE): Delete.
12076 * config/moxie/moxie.h (CAN_ELIMINATE): Delete.
12077 * config/cris/cris.h (CAN_ELIMINATE): Delete.
12078 * config/mn10300/mn10300.h (CAN_ELIMINATE): Delete.
12079 * config/pa/pa64-linux.h (CAN_ELIMINATE): Delete.
12080 * config/mmix/mmix.h (CAN_ELIMINATE): Delete.
12081
12082 2009-06-24 DJ Delorie <dj@redhat.com>
12083
12084 * mep-ext-cop.cpu: Fix copyright notice.
12085 * mep-default: Fix copyright notice.
12086 * mep-core: Fix copyright notice.
12087 * mep: Fix copyright notice.
12088 * mep-ivc2: Fix copyright notice.
12089 * mep-c5: Fix copyright notice.
12090
12091 2009-06-24 Denis Chertykov <chertykov@gmail.com>
12092
12093 * doc/contrib.texi (Contributors):
12094
12095 2009-06-24 Andreas Krebbel <krebbel1@de.ibm.com>
12096
12097 PR middle-end/40501
12098 * tree-ssa-math-opts.c (execute_optimize_bswap): Convert the bswap
12099 src and dst operands if necessary.
12100
12101 2009-06-23 DJ Delorie <dj@redhat.com>
12102
12103 Add MeP port.
12104 * config.gcc: Add mep support.
12105 * recog.c: Resurrect validate_replace_rtx_subexp().
12106 * recog.h: Likewise.
12107 * config/mep/: Add new port:
12108 * config/mep/constraints.md: New file.
12109 * config/mep/default.h: New file.
12110 * config/mep/intrinsics.h: New file.
12111 * config/mep/intrinsics.md: New file.
12112 * config/mep/ivc2-template.h: New file.
12113 * config/mep/mep-c5.cpu: New file.
12114 * config/mep/mep-core.cpu: New file.
12115 * config/mep/mep-default.cpu: New file.
12116 * config/mep/mep-ext-cop.cpu: New file.
12117 * config/mep/mep-intrin.h: New file.
12118 * config/mep/mep-ivc2.cpu: New file.
12119 * config/mep/mep-lib1.asm: New file.
12120 * config/mep/mep-lib2.c: New file.
12121 * config/mep/mep-pragma.c: New file.
12122 * config/mep/mep-protos.h: New file.
12123 * config/mep/mep-tramp.c: New file.
12124 * config/mep/mep.c: New file.
12125 * config/mep/mep.cpu: New file.
12126 * config/mep/mep.h: New file.
12127 * config/mep/mep.md: New file.
12128 * config/mep/mep.opt: New file.
12129 * config/mep/predicates.md: New file.
12130 * config/mep/t-mep: New file.
12131
12132 2009-06-23 Ian Lance Taylor <iant@google.com>
12133
12134 * configure.ac: Invoke AC_PROG_CXX. Separate C specific warnings
12135 from loose_warn into c_loose_warn and from strict_warn into
12136 c_strict_warn. Set and substitute warn_cxxflags. Check for
12137 --enable-build-with-cxx. Set and substitute
12138 ENABLE_BUILD_WITH_CXX. Set and substitute HOST_LIBS.
12139 * Makefile.in (CXXFLAGS): New variable.
12140 (C_LOOSE_WARN, C_STRICT_WARN): New variables.
12141 (GCC_WARN_CFLAGS): Add $(C_LOOSE_WARN). Add $(C_STRICT_WARN) if
12142 the default is the same as $(STRICT_WARN).
12143 (GCC_WARN_CXXFLAGS, WARN_CXXFLAGS): New variables.
12144 (CXX): New variable.
12145 (COMPILER): New value if ENABLE_BUILD_WITH_CXX.
12146 (COMPILER_FLAGS, LINKER, LINKER_FLAGS): Likewise.
12147 (ALL_COMPILERFLAGS, ALL_LINKERFLAGS): Likewise.
12148 (HOST_LIBS): New variable.
12149 (GCC_CFLAGS): Add $(C_LOOSE_WARN).
12150 (ALL_CXXFLAGS): New variable.
12151 (LIBS, BACKENDLIBS): Add $(HOST_LIBS).
12152 * doc/install.texi (Configuration): Document
12153 --enable-build-with-cxx, --with-stage1-ldflags,
12154 --with-stage1-libs, --with-boot-ldflags, --with-boot-libs.
12155 * configure: Rebuild.
12156
12157 2009-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12158
12159 * config/arm/arm.c (arm_override_options): Fix braces and formatting
12160 from previous commit.
12161
12162 2009-06-23 Ian Lance Taylor <iant@google.com>
12163
12164 * Makefile.in ($(out_object_file)): Depend upon $(DF_H).
12165
12166 2009-06-23 Ian Lance Taylor <iant@google.com>
12167
12168 * reload.c (alternative_allows_const_pool_ref): Mark mem parameter
12169 with ATTRIBUTE_UNUSED.
12170
12171 2009-06-23 Michael Meissner <meissner@linux.vnet.ibm.com>
12172 Pat Haugen <pthaugen@us.ibm.com>
12173 Revital Eres <eres@il.ibm.com>
12174
12175 * config.in (HAVE_AS_POPCNTD): Add default definition.
12176 (HAVE_AS_LWSYNC): Ditto.
12177
12178 * configure.ac (gcc_cv_as_powerpc_mfpgpr): Provide real binutils
12179 release number.
12180 (gcc_cv_as_powerpc_cmpb): Ditto.
12181 (gcc_cv_as_powerpc_dfp): Ditto.
12182 (gcc_cv_as_powerpc_vsx): Ditto.
12183 (gcc_cv_as_powerpc_popcntd): Add feature test for assembler
12184 supporting the popcntd/lwsync instructions.
12185 (gcc_cv_as_powerpc_lwsync): Ditto.
12186 * configure: Regenerate.
12187
12188 * config/rs6000/aix53.h (ASM_CPU_SPEC): Add support for
12189 -mcpu=native and -mcpu=power7.
12190 * config/rs6000/aix61.h (ASM_CPU_SPEC): Ditto.
12191
12192 * config/rs6000/linux64.opt (-mprofile-kernel): Move switch to be
12193 a variable instead of a mask to reduce the number of mask bits.
12194 * config/rs6000/sysv4.opt (-mbit-align): Ditto.
12195 (-mbit-word): Ditto.
12196 (-mregnames): Ditto.
12197 * config/rs6000/rs6000.opt (-mupdate): Ditto.
12198 (-mfused-madd): Ditto.
12199
12200 * config/rs6000/rs6000.opt (-mpopcntd): New switch for non-VSX ISA
12201 2.06 instructions.
12202 (-mvsx): New switch for VSX instructions.
12203 (-misel): Move from a variable to a mask to allow it to be set by
12204 -mcpu=.
12205
12206 * config/rs6000/rs6000-protos.h (rs6000_hard_regno_nregs): Change
12207 function declaration to an array declaration.
12208 (rs6000_hard_regno_nregs): New external array declaration.
12209
12210 * config/rs6000/t-rs6000 (MD_INCLUDES): Define, add all of the .md
12211 files included by rs6000.md.
12212
12213 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
12214 SET_PROFILE_KERNEL macro to reset the -mprofile-kernel switch.
12215
12216 * config/rs6000/rs6000.c (rs6000_isel): Delete, -misel moved to be
12217 a target mask.
12218 (rs6000_debug_reg): New -mdebug= variables.
12219 (rs6000_debug_addr): Ditto.
12220 (rs6000_debug_cost): Ditto.
12221 (rs6000_pmode): New variable to hold Pmode.
12222 (rs6000_pointer_size): New variable to hold POINTER_SIZE.
12223 (rs6000_class_max_nregs): New array to hold CLASS_MAX_NREGS
12224 calculated at compiler start.
12225 (rs6000_hard_regno_nregs): Change function to an array which holds
12226 HARD_REGNO_NREGS calculated at compiler start.
12227 (rs6000_explicit_options): Delete isel field.
12228 (rs6000_vector_unit): New array to hold which vector unit
12229 supports arithmetic options for a given type.
12230 (rs6000_vector_mem): New array to hold which vector unit supports
12231 memory reference operations for a given type.
12232 (rs6000_vector_align): New array to given the alignment of each
12233 vector type.
12234 (power7_cost): New basic costs for power7.
12235 (SET_PROFILE_KERNEL): New macro for resetting -mprofile-kernel.
12236 (rs6000_hard_regno_nregs_internal): New function, moved from
12237 HARD_REGNO_NREGS, to calculate the number of registers each hard
12238 register takes for each type.
12239 (rs6000_debug_reg_print): New function for -mdebug=reg support.
12240 (rs6000_debug_vector_unit): New array, map rs6000_vector to string.
12241 (+rs6000_init_hard_regno_mode_ok): New function, move calculation
12242 of HARD_REGNO_NREGS, CLASS_MAX_NREGS, REGNO_REG_CLASS, and vector
12243 unit information here so it is calculated once at compiler startup
12244 time.
12245 (rs6000_override_options): Make -misel a target mask. Add more
12246 power7 target masks. Setup Pmode and POINTER_SIZE. Add initial
12247 VSX support. Add support for -mdebug=reg, -mdebug=addr, and
12248 -mdebug=cost.
12249 (POWERPC_MASKS): Add MASK_POPCNTD, MASK_VSX, and MASK_ISEL.
12250 (rs6000_handle_option): Move -misel from variable to target mask.
12251 (rs6000_builtin_mask_for_load): Add VSX support.
12252 (rs6000_conditional_register_usage): Ditto.
12253 (USE_ALTIVEC_FOR_ARG_P): Ditto.
12254 (function_arg_boundary): Ditto.
12255 (rs6000_expand_builtin): Ditto.
12256 (def_builtin): Make abort message a little friendlier.
12257 (rs6000_emit_int_cmove): Add support for 64-bit isel.
12258
12259 * config/rs6000/rs6000.h (ASM_CPU_POWER7_SPEC): Depend on the
12260 assembler support the popcntd instruction instead of a vsx
12261 instruction to enable power7 support.
12262 (ASM_CPU_SPEC): Add support for -mcpu=native and -mcpu=power7.
12263 (EXTRA_SPECS): Add ASM_CPU_NATIVE_SPEC to allow passing the right
12264 option to the assembler if -mcpu=native.
12265 (ASM_CPU_NATIVE_SPEC): Ditto.
12266 (TARGET_POPCNTD): If assembler doesn't support popcntd, turn off
12267 ISA 2.06 features.
12268 (TARGET_LWSYNC_INSTRUCTION): Define whether it is safe to issue
12269 the lwsync instruction.
12270 (enum processor_type): Add PROCESSOR_POWER7.
12271 (rs6000_debug_reg): New -mdebug= options.
12272 (rs6000_debug_addr): Ditto.
12273 (rs6000_debug_cost): Ditto.
12274 (rs6000_isel): Delete.
12275 (enum rs6000_vector): New enum to say what vector unit we have.
12276 (VECTOR_UNIT_*): New macros to say which vector unit has
12277 arithmetic operations for a given type.
12278 (VECTOR_MEM_*): New macros to say which vector unit has memory
12279 operations for a given type.
12280 (TARGET_LDBRX): Whether the machine supports the ldbrx
12281 instruction.
12282 (TARGET_ISEL): Delete, -misel moved to be a mask.
12283 (TARGET_ISEL64): New macro for 64-bit isel support.
12284 (UNITS_PER_VSX_WORD): New macro.
12285 (POINTER_SIZE): Move to be an external variable, rather than
12286 calculating whether we are generating 32 ot 64-bit code.
12287 (Pmode): Ditto.
12288 (STACK_BOUNDARY): Add VSX support.
12289 (LOCAL_ALIGNMENT): Ditto.
12290 (SLOW_UNALIGNED_ACCESS): Ditto.
12291 (VSX_REGNO_P): New macro for VSX support.
12292 (VFLOAT_REGNO_P): Ditto.
12293 (VINT_REGNO_P): Ditto.
12294 (VLOGICAL_REGNO_P): Ditto.
12295 (VSX_VECTOR_MODE): Ditto.
12296 (VSX_SCALAR_MODE): Ditto.
12297 (VSX_MODE): Ditto.
12298 (VSX_MOVE_MODE): Ditto.
12299 (VSX_REG_CLASS_P): Ditto.
12300 (HARD_REGNO_NREGS): Instead of calling a function, use an array
12301 lookup.
12302 (UNITS_PER_SIMD_WORD): Add VSX support.
12303 (MODES_TIEABLE_P): Ditto.
12304 (STARTING_FRAME_OFFSET): Ditto.
12305 (STACK_DYNAMIC_OFFSET): Ditto.
12306 (EPILOGUE_USES): Ditto.
12307 (REGNO_REG_CLASS): Move to array lookup.
12308 (CLASS_MAX_NREGS): Ditto.
12309 (rs6000_vector_reg_class): Add declaration.
12310 (ADDITIONAL_REGISTER_NAMES): Add VSX names for the registers that
12311 overlap with the floating point and Altivec registers.
12312
12313 * config/rs6000/e500.h (CHECK_E500_OPTIONS): Disallow -mvsx.
12314
12315 * config/rs6000/driver-rs6000.c (asm_names): New static array to
12316 give the appropriate asm switches if -mcpu=native.
12317 (host_detect_local_cpu): Add support for "asm".
12318 (host_detect_local_cpu): Follow GNU code guidelines for name.
12319
12320 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Move
12321 -mbit-word to a variable instead of being a target mask.
12322
12323 * config/rs6000/sync.md (lwsync): If the assembler supports it,
12324 emit the lwsync instruction instead of emitting the instruction as
12325 an integer constant.
12326
12327 * config/rs6000/spe.md (spe_fixuns_truncdfsi2): Rename from
12328 fixuns_trundfsi2, move expander into rs6000.md.
12329
12330 * config/rs6000/rs6000.md (cpu): Add power7.
12331 (sel, *ptrsize): New mode attributes for 32/64-bit isel.
12332 (logical predicate patterns): Change the single instruction
12333 primitives that set CR0 to be fast_compare instead of compare.
12334 (norsi*): Ditto.
12335 (popcntwsi2): Add support for ISA 2.06 popcount instructions.
12336 (popcntddi2): Ditto.
12337 (popcount<mode>): Ditto.
12338 (floating multiply/add insns): Name the floating point
12339 multiply/add insns.
12340 (isel_signed_<mode>): Add support for -misel on 64-bit systems.
12341 (isel_unsigned_<mode>): Ditto.
12342 (fixuns_trundfsi2): Move expander here from spe.md.
12343 (smindi3): Define if we have -misel on 64-bit systems.
12344 (smaxdi3): Ditto.
12345 (umindi3): Ditto.
12346 (umaxdi3): Ditto.
12347
12348 2009-06-23 Anatoly Sokolov <aesok@post.ru>
12349
12350 * config.gcc (avr-*-rtems*, avr-*-*): Set extra_gcc_objs and
12351 extra_objs.
12352 * config/avr/avr.c (avr_current_device): New variable.
12353 (avr_arch_types, avr_mcu_types): Move to avr-deveces.c.
12354 (avr_arch, mcu_type_s): Move to avr.h.
12355 * config/avr/avr.h (base_arch_s). Add reserved2, arch_name and
12356 default_data_section_start fields.
12357 (avr_arch): Moved from avr.c.
12358 (mcu_type_s): Moved from avr.c. Add short_sp, data_section_start and
12359 library_name fields.
12360 (avr_current_device, avr_mcu_types, avr_arch_types,
12361 avr_device_to_arch, avr_device_to_data_start,
12362 avr_device_to_startfiles, avr_device_to_devicelib): Declare.
12363 (EXTRA_SPEC_FUNCTIONS): Define.
12364 (LINK_SPEC): Remove device name to '-m ...' and '-Tdata ...' linker
12365 options mapping. Use device_to_arch and device_to_data_start insted.
12366 (STARTFILE_SPEC): Use device_to_startfile instead of crt_binutils.
12367 (CRT_BINUTILS_SPECS, EXTRA_SPECS): Remove.
12368 * config/avr/t-avr (driver-avr.o, avr-devices.o): New rules.
12369 * config/avr/driver-avr.c: New file.
12370 * config/avr/avr-devices.c: New file.
12371
12372 2009-06-23 Jakub Jelinek <jakub@redhat.com>
12373
12374 * var-tracking.c (unshare_variable): Force initialized to
12375 be VAR_INIT_STATUS_INITIALIZED unless flag_var_tracking_uninit.
12376 (set_variable_part): Likewise.
12377 (struct variable_union_info): Remove pos_src field.
12378 (vui_vec, vui_allocated): New variables.
12379 (variable_union): Pass VAR_INIT_STATUS_UNKNOWN to unshare_variable
12380 unconditionally. Avoid XCVECNEW/free for every sorting, for dst_l
12381 == 1 use a simpler sorting algorithm. Compute pos field right
12382 away, don't fill in pos_src. For dst_l == 2 avoid qsort.
12383 Avoid quadratic comparison if !flag_var_tracking_uninit.
12384 (variable_canonicalize): Pass VAR_INIT_STATUS_UNKNOWN to
12385 unshare_variable unconditionally.
12386 (dataflow_set_different_2): Removed.
12387 (dataflow_set_different): Don't traverse second hash table.
12388 (compute_bb_dataflow): Pass VAR_INIT_STATUS_UNINITIALIZED
12389 unconditionally to var_reg_set or var_mem_set.
12390 (emit_notes_in_bb): Likewise.
12391 (delete_variable_part): Pass VAR_INIT_STATUS_UNKNOWN to
12392 unshare_variable.
12393 (emit_note_insn_var_location): Don't set initialized to
12394 VAR_INIT_STATUS_INITIALIZED early.
12395 (vt_finalize): Free vui_vec if needed, clear vui_vec and
12396 vui_allocated.
12397 * rtl.c (rtx_equal_p): Don't implement on top of rtx_equal_p_cb.
12398
12399 * tree-object-size.c (addr_object_size): Instead of checking
12400 for non-NULL TREE_CHAIN of the FIELD_DECL check that there
12401 are no FIELD_DECLs following it.
12402
12403 2009-06-23 Andreas Krebbel <krebbel1@de.ibm.com>
12404
12405 * tree-ssa-math-opts.c (find_bswap): Increase the search depth in
12406 order to match bswaps with signed source operands.
12407
12408 2009-06-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12409
12410 * sdbout.c (sdbout_one_type): Fix braces in switch.
12411
12412 2009-06-23 Richard Guenther <rguenther@suse.de>
12413
12414 * tree-ssa-structalias.c (struct variable_info): Add is_global_var
12415 member.
12416 (var_anything, anything_tree, var_nothing, nothing_tree, var_readonly,
12417 readonly_tree, var_escaped, escaped_tree, var_nonlocal, nonlocal_tree,
12418 var_callused, callused_tree, var_storedanything, storedanything_tree,
12419 var_integer, integer_tree): Remove global variables.
12420 (new_var_info): Do not pass new id, append the new var to the
12421 global variable vector.
12422 (do_ds_constraint): Use is_global_var member of the variable-info.
12423 (new_scalar_tmp_constraint_exp): Adjust.
12424 (create_function_info_for): Likewise.
12425 (create_variable_info_for): Likewise.
12426 (find_what_var_points_to): Remove dead code.
12427 (init_base_vars): Simplify.
12428 (compute_points_to_sets): Adjust.
12429
12430 2009-06-22 Adam Nemet <anemet@caviumnetworks.com>
12431
12432 * combine.c (try_combine): Dump information about the insns we're
12433 combining.
12434
12435 2009-06-22 Adam Nemet <anemet@caviumnetworks.com>
12436
12437 * combine.c (combine_simplify_rtx): Remove TRULY_NOOP_TRUNCATION
12438 check when calling force_to_mode on TRUNCATE's operand.
12439
12440 2009-06-22 Ian Lance Taylor <iant@google.com>
12441
12442 * config/rs6000/rs6000.opt: Move msched-epilog before msched-prolog.
12443
12444 2009-06-22 Steven Bosscher <steven@gcc.gnu.org>
12445
12446 * config/arm/arm.md (prologue_use): Set length of fake insn to 0.
12447
12448 2009-06-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12449
12450 * doc/invoke.texi (Link Options): -nodefaultlibs and -nostdlib
12451 override library linkage flags such as -static-libgcc or
12452 -shared-libgcc.
12453
12454 2009-06-22 Maxim Kuvyrkov <maxim@codesourcery.com>
12455
12456 * config/m68k/m68k-devices.def: Add line for MCF5221x.
12457
12458 2009-06-22 Ian Lance Taylor <iant@google.com>
12459
12460 * config/linux.opt: Put mglibc ahead of muclibc.
12461
12462 * c-decl.c (diagnose_mismatched_decls): Add -Wc++-compat warning
12463 for duplicate decls.
12464
12465 2009-06-22 Matthias Klose <doko@ubuntu.com>
12466
12467 * Makefile.in (install-plugin): Remove extra `/' after $(DESTDIR).
12468
12469 2009-06-22 Steven Bosscher <steven@gcc.gnu.org>
12470
12471 PR objc/28050
12472 * c-parser.c (c_parser_objc_message_args): Return error_mark_node
12473 instead of NULL if a parser error occurs.
12474
12475 2009-06-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12476
12477 * dwarf2out.c (dwarf2_debug_hooks): Initialize
12478 non-DWARF2_DEBUGGING_INFO version.
12479
12480 2009-06-22 Kai Tietz <kai.tietz@onevision.com>
12481
12482 * config.gcc (i[34567]86-*-mingw*, x86_64-*-mingw*): Add
12483 i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
12484
12485 * config/i386/mingw32.h (LIBGCC2_HAS_TF_MODE): Define.
12486 (LIBGCC2_TF_CEXT): Define.
12487 (TF_SIZE): Define.
12488
12489 2009-06-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12490
12491 PR target/40463
12492 * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Fix definition.
12493
12494 2009-06-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12495
12496 * config/arm/arm.c (arm_override_options): Disable
12497 -mcaller-super-interworking and -mcallee-super-interworking.
12498 * doc/invoke.texi (ARM Options): Document this.
12499
12500 2009-06-22 Nathan Sidwell <nathan@codesourcery.com>
12501
12502 * config/arm/arm.c (arm_print_operand): Deal with HIGH.
12503 * config/arm/constraints.md (j): New constraint for movw operands.
12504 (N): Remove thumb2 meaning.
12505 * config/arm/arm.md (*arm_movw): Delete.
12506 (*arm_movsi_insn): Use j constraint for movw instead of N constraint.
12507 * config/arm/vfp.md (*arm_movsi_vfp, *thumb2_movsi_vfp): Likewise.
12508 * config/arm/thumb2.md (*thumb2_movsi_insn): Likewise.
12509
12510 2009-06-22 Martin Jambor <mjambor@suse.cz>
12511
12512 PR tree-optimization/40492
12513 * tree-sra.c (sra_modify_assign): Pass zero offsets to
12514 build_ref_for_offset.
12515
12516 2009-06-22 Shujing Zhao <pearly.zhao@oracle.com>
12517
12518 * alias.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P, CALL_P, NOTE_P and
12519 JUMP_TABLE_DATA_P predicates where applicable.
12520 * auto-inc-dec.c: Ditto.
12521 * builtins.c: Ditto.
12522 * caller-save.c: Ditto.
12523 * calls.c: Ditto.
12524 * cfgcleanup.c: Ditto.
12525 * cfglayout.c: Ditto.
12526 * cfgrtl.c: Ditto.
12527 * combine.c: Ditto.
12528 * combine-stack-adj.c: Ditto.
12529 * cse.c: Ditto.
12530 * cselib.c: Ditto.
12531 * dbxout.c: Ditto.
12532 * df-scan.c: Ditto.
12533 * dse.c: Ditto.
12534 * dwarf2asm.c: Ditto.
12535 * dwarf2out.c: Ditto.
12536 * emit-rtl.c: Ditto.
12537 * except.c: Ditto.
12538 * explow.c: Ditto.
12539 * expmed.c: Ditto.
12540 * expr.c: Ditto.
12541 * final.c: Ditto.
12542 * function.c: Ditto.
12543 * fwprop.c: Ditto.
12544 * gcse.c: Ditto.
12545 * genpreds.c: Ditto.
12546 * genrecog.c: Ditto.
12547 * ifcvt.c: Ditto.
12548 * ira-costs.c: Ditto.
12549 * ira-lives.c: Ditto.
12550 * jump.c: Ditto.
12551 * loop-iv.c: Ditto.
12552 * lower-subreg.c: Ditto.
12553 * modulo-sched.c: Ditto.
12554 * optabs.c: Ditto.
12555 * postreload.c: Ditto.
12556 * print-rtl.c: Ditto.
12557 * recog.c: Ditto.
12558 * reginfo.c: Ditto.
12559 * regmove.c: Ditto.
12560 * reload1.c: Ditto.
12561 * reload.c: Ditto.
12562 * reorg.c: Ditto.
12563 * rtlanal.c: Ditto.
12564 * rtl.c: Ditto.
12565 * sched-vis.c: Ditto.
12566 * sdbout.c: Ditto.
12567 * sel-sched-ir.c: Ditto.
12568 * simplify-rtx.c: Ditto.
12569 * targhooks.c: Ditto.
12570 * var-tracking.c: Ditto.
12571 * vmsdbgout.c: Ditto.
12572
12573 2009-06-22 Matthias Klose <doko@ubuntu.com>
12574
12575 * Makefile.in (install-plugin): Always use DESTDIR.
12576
12577 2009-06-22 Olivier Hainque <hainque@adacore.com>
12578
12579 * config/pa/pa.c (output_call): Don't optimize post call jumps
12580 into return address adjustments if the call may throw.
12581
12582 2009-06-21 Richard Earnshaw <rearnsha@arm.com>
12583
12584 * arm.c (thumb1_output_casesi): New function.
12585 * arm.h (CASE_VECTOR_PC_RELATIVE): Thumb-1 code is also relative if
12586 optimizing for size or PIC.
12587 (CASE_VECTOR_SHORTEN_MODE): Handle thumb-1.
12588 * arm.md (UNSPEC_THUMB1_CASESI): New constant.
12589 (casesi): Handle Thumb-1 when optimizing for size or PIC.
12590 (thumb1_casesi_internal_pic): New expand rule.
12591 (thumb1_casesi_dispatch): New pattern.
12592 * aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use shortened vectors for
12593 thumb-1 mode.
12594 * coff.h (JUMP_TABLES_IN_TEXT_SECTION): Thumb-1 jump tables are now
12595 in the text seciton when PIC or optimizing for size.
12596 * elf.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
12597 * lib1funcs.asm ([__ARM_EABI__]): Add an attribute describing stack
12598 preservation properties of code.
12599 (__gnu_thumb1_case_sqi, __gnu_thumb1_case_uqi): New functions.
12600 (__gnu_thumb1_case_shi, __gnu_thumb1_case_uhi): New functions.
12601 (__gnu_thumb1_case_si): New function.
12602 * t-arm (LIB1ASMSRC): Define here.
12603 (LIB1ASMFUNCS): Add some common functions.
12604 * t-arm-elf (LIB1ASMSRC): Delete.
12605 (LIB1ASMFUNCS): Append to existing set.
12606 * t-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
12607 * t-strongarm-elf (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
12608 * t-symbian (LIB1ASMFUNCS): Likewise.
12609 * t-vxworks (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
12610 * t-wince-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
12611
12612 2009-06-21 Richard Guenther <rguenther@suse.de>
12613
12614 PR tree-optimization/38729
12615 * tree-ssa-loop-niter.c (find_loop_niter_by_eval): Restrict
12616 to loops with a single exit if -fno-expensive-optimizations.
12617
12618 2009-06-21 Jakub Jelinek <jakub@redhat.com>
12619
12620 * var-tracking.c (struct shared_hash_def, shared_hash): New types.
12621 (dataflow_set): Change vars type from htab_t to shared_hash.
12622 (shared_hash_pool, empty_shared_hash): New variables.
12623 (vars_clear): Removed.
12624 (shared_hash_shared, shared_hash_htab, shared_hash_copy,
12625 shared_hash_find_slot_unshare, shared_hash_find_slot,
12626 shared_hash_find_slot_noinsert, shared_hash_find): New
12627 static inlines.
12628 (shared_hash_unshare, shared_hash_destroy): New functions.
12629 (unshare_variable): Unshare set->vars if shared, use
12630 shared_hash_htab.
12631 (vars_copy): Use htab_traverse_noresize instead of htab_traverse.
12632 (get_init_value, find_src_set_src, dump_dataflow_set,
12633 clobber_variable_part, emit_notes_for_differences): Use
12634 shared_hash_htab.
12635 (dataflow_set_init): Remove second argument, set vars to
12636 empty_shared_hash instead of creating a new htab.
12637 (dataflow_set_clear): Call shared_hash_destroy and set vars
12638 to empty_shared_hash instead of calling vars_clear.
12639 (dataflow_set_copy): Don't call vars_copy, instead just share
12640 the src htab with dst.
12641 (variable_union): Use shared_hash_*, use initially NO_INSERT
12642 lookup if set->vars is shared. Don't keep slot cleared before
12643 calling unshare_variable. Unshare set->vars if needed.
12644 Even ->refcount == 1 vars must be unshared if set->vars is shared
12645 and var needs to be modified.
12646 (variable_canonicalize): New function.
12647 (dataflow_set_union): If dst->vars is empty, just share src->vars
12648 with dst->vars and traverse with variable_canonicalize to canonicalize
12649 and unshare what is needed.
12650 (dataflow_set_different): If old_set and new_set use the same shared
12651 htab, they aren't different. If number of htab elements is different,
12652 htabs are different. Use shared_hash_*.
12653 (dataflow_set_destroy): Call shared_hash_destroy instead of
12654 htab_delete.
12655 (compute_bb_dataflow, emit_notes_in_bb, vt_emit_notes): Don't pass
12656 second argument to dataflow_set_init.
12657 (vt_initialize): Likewise. Initialize shared_hash_pool and
12658 empty_shared_hash, move bb in/out initialization afterwards.
12659 Use variable_htab_free instead of NULL as changed_variables del hook.
12660 (variable_was_changed): Change type of second argument to pointer to
12661 dataflow_set. When inserting var into changed_variables, bump
12662 refcount. Unshare set->vars if set is shared htab and slot needs to
12663 be cleared.
12664 (set_variable_part): Use shared_hash_*, use initially NO_INSERT
12665 lookup if set->vars is shared. Unshare set->vars if needed.
12666 Even ->refcount == 1 vars must be unshared if set->vars is shared
12667 and var needs to be modified. Adjust variable_was_changed caller.
12668 (delete_variable_part): Use shared_hash_*. Even ->refcount == 1
12669 vars must be unshared if set->vars is shared and var needs to be
12670 modified. Adjust variable_was_changed caller.
12671 (emit_note_insn_var_location): Don't pool_free var.
12672 (emit_notes_for_differences_1): Initialize empty_var->refcount to 0
12673 instead of 1.
12674 (vt_finalize): Call htab_delete on empty_shared_hash->htab and
12675 free_alloc_pool on shared_hash_pool.
12676
12677 2009-06-20 Anthony Green <green@moxielogic.com>
12678
12679 * config/moxie/sfp-machine.h (__gcc_CMPtype, CMPtype): Define.
12680 * config/moxie/moxie.h (LOAD_EXTEND_OP): Define.
12681
12682 2009-06-20 Richard Guenther <rguenther@suse.de>
12683
12684 * tree-ssa-structalias.c (find_func_aliases): For memset use
12685 a constraint from NULL if we memset to zero.
12686 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Add builtins
12687 we explicitly handle that do not read from memory.
12688 (call_may_clobber_ref_p_1): Properly handle builtins that may
12689 set errno.
12690
12691 2009-06-20 Richard Guenther <rguenther@suse.de>
12692
12693 PR tree-optimization/40495
12694 * tree-ssa-structalias.c (get_constraint_exp_for_temp): Remove.
12695 (new_scalar_tmp_constraint_exp): New function.
12696 (process_constraint): Do not create temporary decls.
12697 (process_all_all_constraints): Likewise.
12698 (handle_const_call): Likewise.
12699 (create_function_info_for): Do not set decl.
12700
12701 2009-06-19 Ian Lance Taylor <iant@google.com>
12702
12703 * config/rs6000/rs6000.c (rs6000_explicit_options): Make static.
12704 (rs6000_attribute_table): Make static; move before use.
12705
12706 2009-06-19 Eric Botcazou <ebotcazou@adacore.com>
12707
12708 * tree.c (substitute_in_expr) <COMPONENT_REF>: Tweak and reformat.
12709 <tcc_vl_exp>: Call process_call_operands on the new CALL_EXPR.
12710 Propagate the TREE_READONLY flag without overwriting it.
12711 (substitute_placeholder_in_expr) <tcc_vl_exp>: Likewise.
12712 Propagate the TREE_READONLY flag onto the result.
12713 (process_call_operands): Move around. Use correct constant value.
12714
12715 2009-06-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12716
12717 PR target/40482
12718 * config/arm/arm.c (thumb_shiftable_const): Truncate val to 32 bits.
12719 * config/arm/arm.md: Likewise.
12720
12721 2009-06-19 Ian Lance Taylor <iant@google.com>
12722
12723 * tree-cfg.c (gimple_redirect_edge_and_branch): Change ERROR_MARK
12724 to GIMPLE_ERROR_MARK.
12725
12726 * c-typeck.c (build_conditional_expr): Add op1_original_type and
12727 op2_original_type parameters. Warn about using different enum types.
12728 * c-parser.c (c_parser_conditional_expression): Pass original
12729 types to build_conditional_expr.
12730 * c-tree.h (build_conditional_expr): Update declaration.
12731
12732 2009-06-19 Ian Lance Taylor <iant@google.com>
12733
12734 * config/i386/i386.c (ix86_function_specific_save): Test that
12735 fields match values, rather than testing the values are in a
12736 certain range.
12737
12738 2009-06-19 Richard Guenther <rguenther@suse.de>
12739
12740 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
12741 ADDR_EXPR pointers.
12742 (ptr_derefs_may_alias_p): Likewise.
12743 (ptr_deref_may_alias_ref_p_1): New function.
12744 (ptr_deref_may_alias_ref_p): Likewise.
12745 (ref_maybe_used_by_call_p_1): Handle builtins that are not
12746 covered by looking at the ESCAPED solution.
12747 (call_may_clobber_ref_p_1): Likewise.
12748 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
12749 Handle NULL_TREE offset. Do not produce redundant constraints.
12750 (process_all_all_constraints): New helper function.
12751 (do_structure_copy): Use it.
12752 (handle_lhs_call): Likewise.
12753 (find_func_aliases): Handle some builtins with pointer arguments
12754 and/or return values explicitly.
12755
12756 2009-06-19 Ian Lance Taylor <iant@google.com>
12757
12758 * varasm.c (const_rtx_hash_1): Remove const qualifier from shift.
12759
12760 2009-06-19 Ian Lance Taylor <iant@google.com>
12761
12762 * rtl.h (SUBREG_PROMOTED_UNSIGNED_P): Add cast to int.
12763
12764 2009-06-19 Ian Lance Taylor <iant@google.com>
12765
12766 * ggc-page.c (ggc_pch_write_object): Initialize emptyBytes.
12767 * sdbout.c (sdb_debug_hooks): Initialize non-SDB_DEBUGGING_INFO
12768 version.
12769
12770 * c-decl.c (finish_decl): If -Wc++-compat, warn about
12771 uninitialized const.
12772
12773 2009-06-19 Ian Lance Taylor <iant@google.com>
12774
12775 * dse.c (struct store_info): Rename bitmap field to bmap. Change
12776 all uses.
12777
12778 * c-decl.c (in_struct, struct_types): Remove.
12779 (struct c_binding): Add in_struct field.
12780 (c_binding_ptr): Define type, along with VEC.
12781 (struct c_struct_parse_info): Define.
12782 (struct_parse_info): New static variable.
12783 (bind): Initialize in_struct field.
12784 (start_struct): Remove enclosing_in_struct and
12785 enclosing_struct_types parameters. Add
12786 enclosing_struct_parse_info parameter. Change all callers. Set
12787 struct_parse_info rather than in_struct and struct_types.
12788 (grokfield): If -Wc++-compat and there is a symbol binding for the
12789 field name, set the in_struct flag and push it on the
12790 struct_parse_info->fields vector.
12791 (warn_cxx_compat_finish_struct): New static function.
12792 (finish_struct): Remove enclosing_in_struct and
12793 enclosing_struct_types parameters. Add
12794 enclosing_struct_parse_info parameter. Change all callers. Don't
12795 set C_TYPE_DEFINED_IN_STRUCT here. Call
12796 warn_cxx_compat_finish_struct. Free struct_parse_info and set to
12797 parameter. Only push on struct_types if warn_cxx_compat.
12798 (finish_enum): Only push on struct_types if warn_cxx_compat.
12799 (declspecs_add_type): Add loc parameter. Change all callers.
12800 Change all error calls to error_at. Pass loc, not input_location,
12801 to pedwarn calls. Warn if -Wc++-compat and a typedef name is
12802 defined in a struct. If -Wc++-compat and parsing a struct, record
12803 that a typedef name was used.
12804 * c-parser.c (c_parser_declspecs): Get location to pass to
12805 declspecs_add_type.
12806 (c_parser_struct_or_union_specifier): Update calls to start_struct
12807 and finish_struct.
12808 * c-tree.h (struct c_struct_parse_info): Declare.
12809 (finish_struct, start_struct): Update declarations.
12810 (declspecs_add_type): Update declaration.
12811
12812 2009-06-19 Ian Lance Taylor <iant@google.com>
12813
12814 * c-decl.c (grokdeclarator): If -Wc++-compat, warn about a global
12815 variable with an anonymous type.
12816
12817 2009-06-19 Uros Bizjak <ubizjak@gmail.com>
12818
12819 * see.c: Remove for real.
12820
12821 2009-06-19 Uros Bizjak <ubizjak@gmail.com>
12822
12823 * optabs.h (enum optab_index): Add new OTI_significand.
12824 (significand_optab): Define corresponding macro.
12825 * optabs.c (init_optabs): Initialize significand_optab.
12826 * genopinit.c (optabs): Implement significand_optab using
12827 significand?f2 patterns.
12828 * builtins.c (expand_builtin_mathfn): Handle
12829 BUILT_IN_SIGNIFICAND{,F,L}.
12830 (expand_builtin): Expand BUILT_IN_SIGNIFICAND{,F,L} using
12831 expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
12832
12833 * config/i386/i386.md (significandxf2, significand<mode>2): New
12834 expanders to implement significandf, significand and significandl
12835 built-ins as inline x87 intrinsics.
12836
12837 2009-06-18 Anatoly Sokolov <aesok@post.ru>
12838
12839 * config/avr/avr.c (avr_override_options): Remove setting value of
12840 PARAM_INLINE_CALL_COST.
12841
12842 2009-06-18 Richard Henderson <rth@redhat.com>
12843
12844 PR 40488
12845 * tree-pass.h (TDF_ASMNAME): New.
12846 * tree-dump.c (dump_options): Add asmname.
12847 * doc/invoke.texi: Document it.
12848
12849 * tree-pretty-print.c (maybe_dump_asm_name): Merge into...
12850 (dump_decl_name): ...here.
12851 (dump_function_name): New flags arg; mind TDF_ASMNAME.
12852 (dump_generic_node): Update dump_function_name calls.
12853 (print_call_name): New flags arg; update all dump calls.
12854 * diagnostic.h (print_call_name): Update.
12855 * gimple-pretty-print.c (dump_gimple_call): Update.
12856
12857 2009-06-18 H.J. Lu <hongjiu.lu@intel.com>
12858
12859 PR target/40470
12860 * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Add SSE_FIRST_REG.
12861
12862 2009-06-18 Diego Novillo <dnovillo@google.com>
12863
12864 * doc/plugins.texi: Document plugin_is_GPL_compatible.
12865 * plugin.c (str_license): Declare.
12866 (try_init_one_plugin): Assert that the symbol
12867 'plugin_is_GPL_compatible' exists.
12868
12869 2009-06-18 Sergei Dyshel <sergeid@il.ibm.com>
12870
12871 * see.c: Remove.
12872 * Makefile.in (OBJS-common): Remove see.o.
12873 (see.o): Remove.
12874 * common.opt (fsee): Mark as preserved for backward compatibility.
12875 * opts.c (common_handle_option): Add OPT_fsee to the backward
12876 compatibility section.
12877 * passes.c (init_optimization_passes, pass_see): Remove pass.
12878 * timevar.def (TV_SEE): Remove.
12879 * tree-pass.h (pass_see): Remove declaration.
12880 * doc/invoke.texi (-fsee): Remove documentation.
12881
12882 2009-06-18 Martin Jambor <mjambor@suse.cz>
12883
12884 * tree-sra.c: Include statistics.h
12885 (sra_stats): New variable.
12886 (sra_initialize): Clear sra_stats.
12887 (create_access_replacement): Increment sra_stats.replacements.
12888 (get_access_replacement): Do not return twice.
12889 (analyze_all_variable_accesses): Increment statistics counter by the
12890 number of scalarized aggregates.
12891 (generate_subtree_copies): Increment sra_stats.subtree_copies.
12892 (sra_modify_expr): Increment sra_stats.exprs.
12893 (load_assign_lhs_subreplacements): Increment sra_stats.subreplacements.
12894 (sra_modify_assign): Increment sra_stats.exprs,
12895 sra_stats.separate_lhs_rhs_handling and sra_stats.deleted.
12896 (perform_intra_sra): Update statistics counters.
12897 * Makefile.in (tree-sra.o): Add statistics.h to dependencies.
12898
12899 2009-06-18 Sandra Loosemore <sandra@codesourcery.com>
12900
12901 * config/arm/arm.c (TARGET_SCALAR_MODE_SUPPORTED_P): Redefine.
12902 (arm_scalar_mode_supported_p): New function.
12903
12904 2009-06-18 Paul Brook <paul@codesourcery.com>
12905 Sandra Loosemore <sandra@codesourcery.com>
12906
12907 * config/arm/sfp-machine.h (_FP_NANFRAC_H, _FP_NANSIGN_H): Define.
12908 (__extendhfsf2, __truncsfhf2): Define.
12909 * config/arm/fp16.c: New file.
12910 * config/arm/t-bpabi (LIB2FUNCS_STATIC_EXTRA): Add fp16.c.
12911 * config/arm/t-symbian (LIB2FUNCS_STATIC_EXTRA): Add fp16.c.
12912
12913 2009-06-18 Sandra Loosemore <sandra@codesourcery.com>
12914
12915 * doc/extend.texi (Half-Precision): New section.
12916 * doc/invoke.texi (Option Summary): List -mfp16-format.
12917 (ARM Options): List neon-fp16 as -mfpu value. Document -mfp16-format.
12918 * config/arm/arm.opt (mfp16-format=): New.
12919 * config/arm/arm.c: Include intl.h.
12920 (TARGET_INVALID_PARAMETER_TYPE): Redefine.
12921 (TARGET_INVALID_RETURN_TYPE): Redefine.
12922 (TARGET_PROMOTED_TYPE): Redefine.
12923 (TARGET_CONVERT_TO_TYPE): Redefine.
12924 (arm_fp16_format): Define.
12925 (all_fpus): Add entry for neon-fp16.
12926 (fp_model_for_fpu): Likewise.
12927 (struct fp16_format): Declare.
12928 (all_fp16_formats): Define.
12929 (arm_init_libfuncs): Add entries for HFmode conversions and arithmetic
12930 functions.
12931 (arm_override_options): Set arm_fp16_format. Call sorry for fp16
12932 and no ldrh.
12933 (arm_legitimate_index_p): Treat HFmode like HImode.
12934 (thumb1_legitimate_address_p): Make it recognize HFmode constants.
12935 (coproc_secondary_reload_class): Special-case HFmode.
12936 (arm_print_operand): Add 'z' specifier for vld1.16/vst1.16.
12937 (arm_hard_regno_mode_ok): Allow HFmode values in VFP registers.
12938 (arm_init_fp16_builtins): New.
12939 (arm_init_builtins): Call it.
12940 (arm_invalid_parameter_type): New.
12941 (arm_invalid_return_type): New.
12942 (arm_promoted_type): New.
12943 (arm_convert_to_type).
12944 (arm_file_start): Deal with neon-fp16 as fpu_name. Emit tag for fp16
12945 format.
12946 (arm_emit_fp16_const): New function.
12947 (arm_mangle_type): Mangle __fp16 as "Dh".
12948 * config/arm/arm.h (TARGET_VFPD32): Make it know about
12949 FPUTYPE_NEON_FP16.
12950 (TARGET_NEON_FP16): New.
12951 (TARGET_NEON): Make it know about FPUTYPE_NEON_FP16.
12952 (enum fputype): Add FPUTYPE_NEON_FP16.
12953 (enum arm_fp16_format_type): Declare.
12954 (arm_fp16_format): Declare.
12955 (LARGEST_EXPONENT_IS_NORMAL): Define.
12956 * config/arm/arm-protos.h (arm_emit_fp16_const): Declare.
12957 * config/arm/arm-modes.def (HFmode): Define.
12958 * config/arm/vfp.md: (*movhf_vfp): New.
12959 (extendhfsf2): New.
12960 (truncsfhf2): New.
12961 * config/arm/arm.md: (fpu): Add neon_fp16.
12962 (floatsihf2, floatdihf2): New.
12963 (fix_trunchfsi2, fix_trunchfdi2): New.
12964 (truncdfhf2): New.
12965 (extendhfdf2): New.
12966 (movhf): New.
12967 (*arm32_movhf): New.
12968 (*thumb1_movhf): New.
12969 (consttable_2): Add check for HFmode constants.
12970 (consttable_4): Handle HFmode constants.
12971
12972 2009-06-18 Uros Bizjak <ubizjak@gmail.com>
12973
12974 * convert.c (convert_to_integer): Convert (int)logb() into ilogb().
12975
12976 2009-06-17 Olivier Hainque <hainque@adacore.com>
12977
12978 * collect2.c (main): Use CONST_CAST2 to perform char ** to
12979 const char ** conversion in AIX specific section.
12980
12981 2009-06-17 H.J. Lu <hongjiu.lu@intel.com>
12982
12983 * config/i386/i386.c (ix86_special_builtin_type): Remove
12984 UINT64_FTYPE_PINT. Add UINT64_FTYPE_PUNSIGNED.
12985 (bdesc_special_args): Updated.
12986 (ix86_init_mmx_sse_builtins): Likewise.
12987 (ix86_expand_special_args_builtin): Likewise.
12988
12989 2009-06-17 Richard Henderson <rth@redhat.com>
12990
12991 * tree-pretty-print.c (maybe_dump_asm_name): New.
12992 (dump_decl_name): Use it.
12993 (PRINT_FUNCTION_NAME): Merge into...
12994 (dump_function_name): ... here. Use maybe_dump_asm_name.
12995
12996 2009-06-17 Cary Coutant <ccoutant@google.com>
12997
12998 * dbxout.c (dbxout_source_line): Add is_stmt parameter.
12999 Change caller.
13000 * debug.c (struct gcc_debug_hooks): Change placeholder for
13001 source_line hook.
13002 (debug_nothing_int_charstar_int): Replaced by...
13003 (debug_nothing_int_charstar_int_bool): ...this.
13004 * debug.h (struct gcc_debug_hooks): Add is_stmt parameter to
13005 source_line prototype.
13006 (debug_nothing_int_charstar_int): Replaced by...
13007 (debug_nothing_int_charstar_int_bool): ...this.
13008 * defaults.h (SUPPORTS_DISCRIMINATOR): New constant.
13009 * dwarf2out.c (dwarf2out_source_line): Add is_stmt parameter.
13010 Output is_stmt operand when necessary.
13011 * final.c (final_scan_insn): Pass is_stmt to source_line debug hook.
13012 (notice_source_line): Add is_stmt parameter.
13013 * sdbout.c (sdbout_source_line): Add is_stmt parameter.
13014 * vmsdbgout.c (vmsdbgout_source_line): Add is_stmt parameter.
13015 Change callers.
13016 * xcoffout.c (xcoffout_source_line): Add is_stmt parameter.
13017 * xcoffout.h (xcoffout_source_line): Add is_stmt parameter.
13018
13019 2009-06-17 Ian Lance Taylor <iant@google.com>
13020
13021 * expr.c (struct move_by_pieces_d): Rename from move_by_pieces.
13022 Change all uses.
13023 (struct store_by_pieces_d): Rename from store_by_pieces. Change
13024 call uses.
13025
13026 2009-06-17 Adam Nemet <anemet@caviumnetworks.com>
13027
13028 * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS,
13029 STRIP_USELESS_TYPE_CONVERSION): Use tree_strip_nop_conversions,
13030 tree_strip_sign_nop_conversions and
13031 tree_ssa_strip_useless_type_conversions rather than stripping
13032 the operations here.
13033 (tree_strip_nop_conversions, tree_strip_sign_nop_conversions):
13034 Declare them.
13035 * gimple.h (tree_ssa_strip_useless_type_conversions): Declare it.
13036 * tree-ssa.c (tree_ssa_strip_useless_type_conversions): New function.
13037 * tree.c (tree_nop_conversion, tree_sign_nop_conversion,
13038 tree_strip_nop_conversions, tree_strip_sign_nop_conversions): New
13039 functions.
13040
13041 2009-06-17 Michael Eager <eager@eagercon.com>
13042
13043 * config/rs6000/constraints.md (register_constraint "d"): New.
13044 * config/rs6000/dfp.md (movsd_store, extendsddd2, extendsdtd2,
13045 truncddsd2, *negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
13046 *movdd_hardfloat32, *movdd_hardfloat64_mfpgpr, *movdd_hardfloat64,
13047 *negtd2_fp, *abstd2_fpr, *nabstd2_fpr, *movtd_internal, extendddtd2,
13048 trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
13049 divtd3, *cmpdd_internal1, *cmptd_internal1, floatditd2, ftruncdd2,
13050 fixdddi2, ftrunctd2, fixtddi2): replace 'f' constraint with 'd'
13051 * config/rs6000/ppu_intrinsics.h (__mffs, __mtfsf, __mtfsfi, __fabs,
13052 __fnabs, __fmadd, __fmsub, __fnmadd, __fnmsub, __fsel, __frsqrte,
13053 __fsqrt, __fmul, __fmuls, __frsp, __fcfid, __fctid, __fctidz, __fctiw,
13054 __fctiwz): Same.
13055 * config/rs6000/rs6000.md (*extendsfdf2_fpr, *truncdfsf2_fpr,
13056 *fseldfsf4, *negdf2_fpr, *absdf2_fpr, *nabsdf2_fpr, *adddf3_fpr,
13057 *subdf3_fpr, *muldf3_fpr, *divdf3_fpr, recipdf3, fred, sqrtdf2,
13058 *fseldfdf4, *fselsfdf4, *floatsidf2_internal, *floatunssidf2_internal,
13059 *fix_truncdfsi2_internal, fix_truncdfsi2_internal_gfxopt,
13060 fix_truncdfsi2_mfpgpr, fctiwz, btruncdf2, ceildf2, floordf2, rounddf2,
13061 stfiwx, floatdidf2, fix_truncdfdi2, floatdisf2_internal1,
13062 *movdf_hardfloat32, *movdf_hardfloat64_mfpgpr, *movdf_hardfloat64,
13063 *movtf_internal, *extenddftf2_internal, trunctfdf2_internal1,
13064 trunctfdf2_internal2, trunctfsf2_fprs, fix_trunc_helper,
13065 *fix_trunctfsi2_internal, negtf2_internal, *movdi_internal32,
13066 *movdi_mfpgpr, *movdi_internal64, *movdf_update1, *movdf_update2,
13067 *cmpdf_internal1, *cmptf_internal1, *cmptf_internal2): Same.
13068 * doc/md.texi: Describe PowerPC 'd' constraint, update 'f' constraint.
13069
13070 2009-06-16 Ian Lance Taylor <iant@google.com>
13071
13072 * profile.c (total_num_never_executed): Don't define.
13073 (compute_branch_probabilities): Don't count or print
13074 num_never_executed.
13075 (init_branch_prob): Don't set total_num_never_executed.
13076 (end_branch_prob): Don't print total_num_never_executed.
13077
13078 2009-06-17 David Daney <ddaney@caviumnetworks.com>
13079
13080 * jump.c (cleanup_barriers): Handle case of no insns before a barrier.
13081
13082 2009-06-17 David Edelsohn <edelsohn@gnu.org>
13083
13084 * config/rs6000/dfp.md (nabsdd2_fpr): Correct mode.
13085 (nabstd2_fpr): Same.
13086
13087 2009-06-17 Steve Ellcey <sje@cup.hp.com>
13088
13089 * expr.c (expand_assignment): Change complex type check.
13090
13091 2009-06-17 Basile Starynkevitch <basile@starynkevitch.net>
13092
13093 * doc/plugins.texi (Building GCC plugins): Added new section.
13094
13095 2009-06-17 Ian Lance Taylor <iant@google.com>
13096
13097 * c-pch.c (get_ident): Don't set size of templ array.
13098 (pch_init): Don't set size of partial_pch array.
13099
13100 * c-typeck.c (digest_init): If -Wc++-compat, warn about using a
13101 string constant to intialize an array whose size is the length of
13102 the string.
13103
13104 2009-06-17 Richard Guenther <rguenther@suse.de>
13105
13106 PR tree-optimization/40389
13107 * tree-ssa-structalias.c (handle_rhs_call): Restrict NRV case
13108 to addressable types.
13109 * gimple.c (walk_stmt_load_store_addr_ops): Likewise.
13110
13111 2009-06-17 Richard Guenther <rguenther@suse.de>
13112
13113 PR middle-end/40460
13114 * tree-chrec.h (build_polynomial_chrec): If we cannot determine
13115 if there is no evolution of left in the loop bail out.
13116 * tree-chrec.c (chrec_fold_multiply_poly_poly): CSE one
13117 chrec_fold_multiply.
13118
13119 2009-06-16 J"orn Rennecke <joern.rennecke@arc.com>
13120 Janis Johnson <janis187@us.ibm.com>
13121
13122 PR target/39254
13123 * config/rs6000/rs6000.c (rs6000_emit_move): Don't emit a USE
13124 for the symbol ref of a constant that is the source of a move
13125 - nor for any other not-obvious-label-ref constants.
13126
13127 2009-06-16 Olatunji Ruwase <tjruwase@google.com>
13128
13129 * plugin.c (position_pass): Skip newly inserted pass during list
13130 traversal to avoid repeated insertion.
13131
13132 2009-06-16 Ian Lance Taylor <iant@google.com>
13133
13134 * vec.h (VEC_stack_alloc): Define different version if
13135 GATHER_STATISTICS is defined, to accept and ignore MEM_STAT.
13136 (DEF_VEC_ALLOC_FUNC_P_STACK): Remove MEM_STAT_DECL.
13137 (DEF_VEC_ALLOC_FUNC_O_STACK): Likewise.
13138 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
13139
13140 2009-06-16 H.J. Lu <hongjiu.lu@intel.com>
13141
13142 * config.gcc (extra_headers): Add ia32intrin.h for x86.
13143
13144 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_BSRSI,
13145 IX86_BUILTIN_BSRDI. IX86_BUILTIN_RDPMC, IX86_BUILTIN_RDTSC.
13146 IX86_BUILTIN_RDTSCP. IX86_BUILTIN_ROLQI, IX86_BUILTIN_ROLHI,
13147 IX86_BUILTIN_RORQI and IX86_BUILTIN_RORHI.
13148 (ix86_special_builtin_type): Add UINT64_FTYPE_VOID,
13149 UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
13150 INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
13151 (bdesc_special_args): Add __builtin_ia32_rdtsc and
13152 __builtin_ia32_rdtscp.
13153 (bdesc_args): Add __builtin_ia32_bsrsi, __builtin_ia32_bsrdi,
13154 __builtin_ia32_rolqi, __builtin_ia32_rolhi, __builtin_ia32_rorqi
13155 and __builtin_ia32_rorhi.
13156 (ix86_init_mmx_sse_builtins): Handle UINT64_FTYPE_VOID,
13157 UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
13158 INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
13159 (ix86_expand_args_builtin): Likewise.
13160 (ix86_expand_special_args_builtin): Likewise.
13161
13162 * config/i386/i386.md (UNSPECV_RDTSCP): New.
13163 (UNSPECV_RDTSC): Likewise.
13164 (UNSPECV_RDPMC): Likewise.
13165 (*bsr): Renamed to ...
13166 (bsr): This
13167 (*bsr_rex64): Renamed to ...
13168 (bsr_rex64): This.
13169 (rdpmc): New.
13170 (*rdpmc): Likewise.
13171 (*rdpmc_rex64): Likewise.
13172 (rdtsc): Likewise.
13173 (*rdtsc): Likewise.
13174 (*rdtsc_rex64): Likewise.
13175 (rdtscp): Likewise.
13176 (*rdtscp): Likewise.
13177 (*rdtscp_rex64): Likewise.
13178
13179 * config/i386/ia32intrin.h: New.
13180
13181 * config/i386/x86intrin.h: Include <ia32intrin.h>.
13182
13183 2009-06-16 Ian Lance Taylor <iant@google.com>
13184
13185 * ira-build.c (copy_info_to_removed_store_destinations):
13186 Initialize parent_a.
13187
13188 2009-06-16 Ian Lance Taylor <iant@google.com>
13189
13190 * c-decl.c (grokdeclarator): Change size_varies to bool.
13191
13192 2009-06-16 Ian Lance Taylor <iant@google.com>
13193
13194 * sel-sched.c: Make forward declarations of move_op_hooks and
13195 fur_hooks explicitly extern.
13196
13197 2009-06-16 Ian Lance Taylor <iant@google.com>
13198
13199 * df-problems.c (df_byte_lr_alloc): Don't set problem_data to itself.
13200 * vec.c (vec_gc_o_reserve_1): Don't set alloc to itself.
13201
13202 2009-06-16 Ian Lance Taylor <iant@google.com>
13203
13204 * resource.c (mark_referenced_resources): Change
13205 include_delayed_effects parameter to bool. Change all callers.
13206 (mark_end_of_function_resources): Likewise.
13207 * reorg.c (insn_references_resource_p): Likewise.
13208 (insn_sets_resource_p): Likewise.
13209 * resource.h (mark_referenced_resources): Update declaration.
13210 (mark_end_of_function_resources): Update declaration.
13211
13212 2009-06-16 David Edelsohn <edelsohn@gnu.org>
13213
13214 * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove -lstdc++.
13215
13216 2009-06-16 David Edelsohn <edelsohn@gnu.org>
13217
13218 * doc/install.texi (*-*-aix): Update explanation of XLC bootstrap.
13219 GCC can bootstrap on AIX with GNU Binutils 2.20.
13220
13221 2009-06-16 Ian Lance Taylor <iant@google.com>
13222
13223 * Makefile.in (tree-vect-stmts.o): Depend upon $(TOPLEV_H).
13224
13225 2009-06-16 Ian Lance Taylor <iant@google.com>
13226
13227 * toplev.h (floor_log2): If GCC_VERSION >= 3004, declare as static
13228 inline, not extern inline.
13229 (exact_log2): Likewise.
13230 * toplev.c (floor_log2): Only define if GCC_VERSION < 3004. Don't
13231 test CLZ_HWI.
13232 (exact_log2): Likewise, but don't test CTZ_HWI.
13233
13234 2009-06-16 Ian Lance Taylor <iant@google.com>
13235
13236 * bitmap.c (bitmap_clear): Don't declare as inline.
13237 * gimple.c (gimplify_assign): Likewise.
13238 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
13239 * haifa-sched.c (insn_cost): Don't declare with HAIFA_INLINE.
13240 (sched_scan_info): Remove duplicate definition.
13241
13242 2009-06-16 Ian Lance Taylor <iant@google.com>
13243
13244 * c-common.c (skip_evaluation): Don't define.
13245 (c_inhibit_evaluation_warnings): Define global variable.
13246 (overflow_warning): Check c_inhibit_evaluation_warnings rather
13247 than skip_evaluation.
13248 (convert_and_check, warn_for_div_by_zero): Likewise.
13249 * c-common.h (skip_evaluation): Don't declare.
13250 (c_inhibit_evaluation_warnings): Declare.
13251 * c-parser.c (c_parser_typeof_specifier): Set
13252 c_inhibit_evaluation_warnings rather than skip_evaluation.
13253 (c_parser_conditional_expression): Likewise.
13254 (c_parser_binary_expression): Likewise.
13255 (c_parser_sizeof_expression): Likewise.
13256 (c_parser_alignof_expression): Likewise.
13257 * c-typeck.c (build_indirect_ref): Check
13258 c_inhibit_evaluation_warnings rather than skip_evaluation.
13259 (build_conditional_expr, build_binary_op): Likewise.
13260
13261 2009-06-16 Richard Guenther <rguenther@suse.de>
13262
13263 * tree-ssa-alias.c (is_escape_site): Remove.
13264 * tree-ssa-alias.h (enum escape_type): Remove.
13265 (is_escape_site): Likewise.
13266 * tree-ssa-structalias.c (find_func_aliases): Handle escapes
13267 via casts and asms without deferring to is_escape_site.
13268
13269 2009-06-16 Jakub Jelinek <jakub@redhat.com>
13270
13271 PR middle-end/40446
13272 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: Don't
13273 use gen_lowpart if op0 has complex mode.
13274
13275 2009-06-16 Richard Guenther <rguenther@suse.de>
13276
13277 * tree-ssa-structalias.c (do_ds_constraint): Stores in global
13278 variables add them to ESCAPED.
13279 (find_func_aliases): Do not make all indirectly stored values escaped.
13280
13281 2009-06-16 Rafael Avila de Espindola <espindola@google.com>
13282
13283 * config/i386/winnt.c (i386_pe_encode_section_info): Update call to
13284 make_decl_one_only.
13285
13286 2009-06-16 Martin Jambor <mjambor@suse.cz>
13287
13288 PR tree-optimization/40432
13289 * tree-sra.c (sra_modify_assign): When creating VIEW_CONVERT_EXPR,
13290 check whether we need to force gimple register operand.
13291
13292 2009-06-16 Martin Jambor <mjambor@suse.cz>
13293
13294 PR tree-optimization/40413
13295 * tree-sra.c (load_assign_lhs_subreplacements): Pass offset to
13296 build_ref_for_offset.
13297 (propagate_subacesses_accross_link): Fix a typo in a comment.
13298
13299 2009-06-16 Ira Rosen <irar@il.ibm.com>
13300
13301 * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
13302 with additional parameter.
13303 * tree-vectorizer.h (enum vect_def_type): Add new value
13304 vect_nested_cycle.
13305 (enum vect_relevant): Add comments.
13306 (vect_is_simple_reduction): Add new argument.
13307 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Add comments.
13308 Detect nested cycles.
13309 (vect_is_simple_reduction): Update documentation, add an argument to
13310 distinguish inner-loop reduction from nested cycle, detect nested
13311 cycles, fix printings and indentation, don't swap operands in case
13312 of nested cycle.
13313 (get_initial_def_for_reduction): Handle subtraction.
13314 (vect_create_epilog_for_reduction): Add new argument to specify
13315 reduction variable.
13316 (vect_finalize_reduction): Handle subtraction, fix comments.
13317 (vectorizable_reduction): Handle nested cycles. In case of nested
13318 cycle keep track of the reduction variable position. Call
13319 vect_is_simple_reduction with additional parameter. Use original
13320 statement code in reduction epilogue for nested cycle. Call
13321 vect_create_epilog_for_reduction with additional parameter.
13322 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Assert
13323 inner-loop vectorization.
13324 (vect_recog_widen_sum_pattern): Likewise.
13325 * tree-vect-stmts.c (process_use): Distinguish between nested cycles
13326 and reductions.
13327 (vect_mark_stmts_to_be_vectorized): Likewise.
13328 (vect_get_vec_def_for_operand): Handle nested cycles.
13329
13330 2009-06-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13331
13332 * doc/invoke.texi (Debugging Options): Fix option index entries
13333 for -fdump-statistics, -frandom-seed add entries for
13334 -fdump-tree-original, -fdump-tree-optimized, -frandom-seed.
13335 (FRV Options): Fix entries for -mTLS, -mtls.
13336 (HPPA Options): Fix entries for -mgnu-ld, -mhp-ld.
13337 (i386 and x86-64 Options): Fix entry for -mno-red-zone.
13338 (M68hc1x Options): Fix @itemx for -mnominmax.
13339 (MCore Options): Fix entry for -mno-lsim.
13340 (MMIX Options): Fix entry for -mabi=mmixware.
13341 (PDP-11 Options): Fix entry for -mbcopy-builtin.
13342
13343 2009-06-16 Basile Starynkevitch <basile@starynkevitch.net>
13344
13345 * doc/plugins.texi (Interacting with the GCC Garbage Collector):
13346 Mention the plugin mode of gengtype.
13347 * doc/gty.texi (Source Files Containing Type Information): Likewise.
13348 * gengtype.c: Updated copyright.
13349 (plugin_files, nb_plugin_files) Added new static variables.
13350 (measure_input_list) Care about plugin_files.
13351 (write_rtx_next): Added early return in plugin mode.
13352 (create_file): Updated copyright year in generated file. Added
13353 asserts.
13354 (oprintf): Added early return if NULL outf.
13355 (get_output_file_with_visibility): Care of plugin_files.
13356 (get_output_file_name): May return null.
13357 (write_local): Added early return.
13358 (put_mangled_filename): Ditto.
13359 (finish_root_table): Added check for base_files.
13360 (write_roots): Care about null when plugins.
13361 (main): Added plugin mode.
13362
13363 2009-06-15 Ian Lance Taylor <iant@google.com>
13364
13365 * df-problems.c (df_simulate_one_insn_forwards): Fix braces in switch.
13366 * gcov.c (read_count_file): Add braces around variables declared
13367 before label.
13368
13369 * c.opt (Wjump-misses-init): New warning.
13370 * c-opts.c (c_common_handle_option): Set warn_jump_misses_init for
13371 -Wall and -Wc++-compat if not already set.
13372 (c_common_post_options): Clear warn_jump_misses_init if it was not
13373 set.
13374 * c-decl.c (struct c_binding): Change type field to a union with
13375 new label field. Make it the first field in the struct. Update
13376 references to type to use u.type instead.
13377 (struct c_spot_bindings): Define.
13378 (struct c_goto_bindings): Define.
13379 (c_goto_bindings_p): Define, along with VECs.
13380 (struct c_label_vars): Define.
13381 (struct c_scope): Add has_label_bindings field.
13382 (bind_label, set_spot_bindings): New static functions.
13383 (decl_jump_unsafe, update_spot_bindings): New static functions.
13384 (update_label_decls): New static function.
13385 (pop_scope): Call update_label_decls. Don't call c_end_vm_scope.
13386 Update binding u.label field to shadowed field.
13387 (c_binding_start_stmt_expr): New function.
13388 (c_binding_end_stmt_expr): New function.
13389 (pushdecl): Don't call c_begin_vm_scope.
13390 (make_label): Add defining and p_label_vars parameters. Change
13391 all callers.
13392 (lookup_label): Correct test for whether a label has not yet been
13393 defined. Call bind_label rather than bind.
13394 (warn_about_goto): New static function.
13395 (lookup_label_for_goto): New function.
13396 (declare_label): Call bind_label rather than bind.
13397 (check_earlier_gotos): New static function.
13398 (define_label): Don't give errors about jumping into statement
13399 expressions or scopes of variably modified types. Call
13400 set_spot_bindings and check_earlier_gotos. Call bind_label
13401 instead of bind. Don't set label_context_stack_se or
13402 label_context_stack_vm.
13403 (c_get_switch_bindings): New function.
13404 (c_release_switch_bindings): New function.
13405 (c_check_switch_jump_warnings): New function.
13406 (start_function): Don't set label_context_stack_se or
13407 label_context_stack_vm.
13408 (finish_function): Likewise.
13409 * c-typeck.c (label_context_stack_se): Don't define.
13410 (label_context_stack_vm): Don't define.
13411 (c_finish_goto_label): Call lookup_label_for_goto rather than
13412 lookup_label. Don't give errors about jumping into a statement
13413 expression or the scope of a variably modified type. Don't set
13414 label_context_stack_se or label_context_stack_vm.
13415 (struct c_switch): Remove blocked_stmt_expr and blocked_vm
13416 fields. Add bindings field.
13417 (c_start_case): Don't set deleted fields. Set bindings field.
13418 (do_case): Rework order of tests. Don't check blocked_stmt_expr
13419 or blocked_vm. Call c_check_switch_jump_warnings.
13420 (c_finish_case): Don't test blocked_stmt_expr field. Call
13421 c_release_switch_bindings.
13422 (c_begin_stmt_expr): Don't increment blocked_stmt_expr in
13423 c_switch_stack. Don't walk label_context_stack_se labels. Don't
13424 set label_context_stack_se. Call c_bindings_start_stmt_expr.
13425 (c_finish_stmt_expr): Don't decrement blocked_stmt_expr in
13426 c_switch_stack. Don't walk label_context_stack_se labels. Don't
13427 set label_context_stack_se. Call c_bindings_end_stmt_expr.
13428 (c_begin_vm_scope, c_end_vm_scope): Don't define.
13429 * c-tree.h (C_DECL_UNJUMPABLE_STMT_EXPR): Don't define.
13430 (C_DECL_UNDEFINABLE_STMT_EXPR): Don't define.
13431 (C_DECL_UNJUMPABLE_VM): Don't define.
13432 (C_DECL_UNDEFINABLE_VM): Don't define.
13433 (struct c_label_list): Don't define.
13434 (struct c_label_context_se): Don't define.
13435 (struct c_label_context_vm): Don't define.
13436 (struct c_spot_bindings): Declare.
13437 (c_bindings_start_stmt_expr): Declare.
13438 (c_bindings_end_stmt_expr): Declare.
13439 (lookup_label_for_goto): Declare.
13440 (c_get_switch_bindings, c_release_switch_bindings): Declare.
13441 (c_check_switch_jump_warnings): Declare.
13442 (label_context_stack_se, label_context_stack_vm): Don't declare.
13443 (c_finish_goto_label): Update declaration.
13444 (c_begin_vm_scope, c_end_vm_scope): Don't declare.
13445 * doc/invoke.texi (Option Summary): Mention -Wjump-misses-init.
13446 (Warning Options): Document -Wjump-misses-init.
13447
13448 2009-06-15 Jakub Jelinek <jakub@redhat.com>
13449
13450 * tree-object-size.c (addr_object_size): Fix a pasto in the last
13451 change.
13452
13453 2009-06-15 Rafael Avila de Espindola <espindola@google.com>
13454
13455 * cgraph.c (cgraph_make_node_local): Use DECL_COMDAT_GROUP.
13456
13457 2009-06-15 Aldy Hernandez <aldyh@redhat.com>
13458
13459 * except.c (init_eh): Use BUILTINS_LOCATION when calling build_decl.
13460
13461 2009-06-15 Aldy Hernandez <aldyh@redhat.com>
13462
13463 * tree-eh.c (lower_try_finally_switch): Initialize tf_loc.
13464
13465 2009-06-15 Rafael Avila de Espindola <espindola@google.com>
13466
13467 * cgraphunit.c (cgraph_function_versioning,save_inline_function_body):
13468 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
13469 * cgraph.c (cgraph_create_virtual_clone): Use DECL_COMDAT_GROUP.
13470 * config/i386/i386.c (ix86_file_end): Compute DECL_COMDAT_GROUP.
13471 * dwarf2asm.c (dw2_force_const_mem): Update call to
13472 make_decl_one_only.
13473 * langhooks-def.h (lhd_comdat_group, LANG_HOOKS_COMDAT_GROUP): Remove.
13474 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_COMDAT_GROUP.
13475 * langhooks.c (lhd_comdat_group): Remove.
13476 * langhooks.h (lang_hooks_for_decls): Remove comdat_group.
13477 * tree.h (DECL_COMDAT_GROUP): New.
13478 (DECL_ONE_ONLY): Use DECL_COMDAT_GROUP.
13479 (tree_decl_with_vis): Add comdat_group. Remove one_only.
13480 (make_decl_one_only): Change signature.
13481 * varasm.c (get_emutls_init_templ_addr, emutls_decl): Update call to
13482 make_decl_one_only.
13483 (make_decl_one_only): Change signature.
13484 (default_elf_asm_named_section): Use DECL_COMDAT_GROUP.
13485
13486 2009-06-15 Richard Guenther <rguenther@suse.de>
13487
13488 PR middle-end/40439
13489 * tree.c (widest_int_cst_value): Fix bootstrap on 32bit HWI hosts.
13490
13491 2009-06-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13492
13493 * tree-ssa-math-opts.c: Remove extra divide.
13494
13495 2009-06-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13496
13497 * config/s390/s390.md ("bswap<mode>2"): Only available on z900.
13498
13499 2009-06-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13500
13501 * passes.c: Add bswap pass.
13502 * tree-pass.h: Add pass_optimize_bswap declaration.
13503 * tree-ssa-math-opts.c: Include diagnostics.h for print_gimple_stmt.
13504 Include rtl.h, expr.h and optabs.h for optab_handler check.
13505 (struct symbolic_number, pass_optimize_bswap): New definition.
13506 (do_shift_rotate, verify_symbolic_number_p): New functions.
13507 (find_bswap_1, find_bswap, execute_optimize_bswap): New functions.
13508 (gate_optimize_bswap): New function.
13509 * tree.c (widest_int_cst_value): New function.
13510 * tree.h (widest_int_cst_value): Prototype added.
13511
13512 2009-06-14 Steven Bosscher <steven@gcc.gnu.org>
13513
13514 * cfgcleanup.c (old_insns_match_p): Remove code to substitute
13515 REG_EQUAL/REG_EQUIV notes.
13516
13517 2009-06-14 Richard Guenther <rguenther@suse.de>
13518
13519 PR middle-end/40389
13520 * gimple.c (walk_stmt_load_store_addr_ops): The LHS of a call
13521 has its address taken if NRV was applied and it is addressable.
13522 * tree-ssa-structalias.c (get_constraint_for_address_of): New
13523 function split out from ...
13524 (get_constraint_for_1): ... here.
13525 (handle_rhs_call): Use it to mark the return slot escaped if
13526 it is addressable and NRV was applied.
13527
13528 2009-06-13 Aldy Hernandez <aldyh@redhat.com>
13529
13530 * config/rs6000/rs6000-protos.h (altivec_resolve_overloaded_builtin):
13531 Change first argument type to location_t.
13532 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Same.
13533 Do not set input_location.
13534 Use loc instead of input_location throughout.
13535
13536 2009-06-13 Richard Guenther <rguenther@suse.de>
13537
13538 PR tree-optimization/40421
13539 * tree-predcom.c (should_unroll_loop_p): Remove.
13540 (tree_predictive_commoning_loop): Use can_unroll_loop_p.
13541
13542 2009-06-13 Michael Meissner <meissner@linux.vnet.ibm.com>
13543
13544 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
13545 Add location argument.
13546
13547 2009-06-13 Aldy Hernandez <aldyh@redhat.com>
13548
13549 * config/alpha/alpha.c (alpha_build_builtin_va_list): Pass location to
13550 build_decl.
13551 * config/s390/s390.c (s390_build_builtin_va_list): Same.
13552 (s390_gimplify_va_arg): Pass location to create_artificial_label.
13553 * config/spu/spu-protos.h: Add location to
13554 spu_resolve_overloaded_builtin.
13555 * config/spu/spu.c (spu_build_builtin_va_list): Pass location to
13556 spu_build_builtin_va_list.
13557 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Add location
13558 argument. Pass location to build_function_call_vec.
13559 * config/sh/sh.c (sh_build_builtin_va_list): Pass location to
13560 build_decl.
13561 (emit_fpu_switch): Same.
13562 (sh_gimplify_va_arg_expr): Pass location to create_artificial_label.
13563 * config/xtensa/xtensa.c (xtensa_build_builtin_va_list): Pass location
13564 to build_decl and create_artificial_label.
13565 (xtensa_gimplify_va_arg_expr): Same.
13566 * config/stormy16/stormy16.c (xstormy16_build_builtin_va_list): Same.
13567 (xstormy16_gimplify_va_arg_expr): Same.
13568 * config/iq2000/iq2000.c (iq2000_expand_prologue): Same.
13569 * config/arm/arm.c (arm_build_builtin_va_list): Same.
13570 * config/mips/mips.c (mips_build_builtin_va_list): Same.
13571 (mips16_build_function_stub): Same.
13572 (mips16_build_call_stub): Same.
13573
13574 2009-06-13 Richard Earnshaw <rearnsha@arm.com>
13575
13576 PR target/40327
13577 * arm/constraints.md (Pa, Pb): New constraints.
13578 * arm/arm.md (thumb1_addsi3): Support more complex additions. Add a
13579 split pattern to deal with them.
13580
13581 2009-06-13 Joerg Sonnenberger <joerg@britannica.bec.de>
13582
13583 * doc/invoke.texi: Add missing option -Wp,OPTION in list,
13584 fix index entry for -Xpreprocessor.
13585
13586 2009-06-12 Aldy Hernandez <aldyh@redhat.com>
13587
13588 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
13589 Add location argument to build_decl call.
13590 * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Same.
13591 (rs6000_init_builtins): Same.
13592 (spe_init_builtins): Same.
13593 (rs6000_gimplify_va_arg): Add location argument to
13594 create_artificial_label call.
13595
13596 2009-06-12 Steven Bosscher <steven@gcc.gnu.org>
13597
13598 * timevar.def (TV_COMBINE_STACK_ADJUST): New timevar.
13599 * combine-stack-adj.c (pass_stack_adjustments): Use it.
13600 * Makefile.in: Fix GGC dependency for gcse.o.
13601
13602 2009-06-12 Aldy Hernandez <aldyh@redhat.com>
13603
13604 * tree-pretty-print.c (dump_generic_node): Dump column numbers.
13605 * gimple-pretty-print.c (dump_gimple_stmt): Same.
13606 * gimplify.c (gimplify_modify_expr): Set location for GIMPLE_ASSIGNs
13607 created.
13608 * c-parser.c (c_parser_binary_expression): Use current column while
13609 building binary operations.
13610 * common.opt (fshow-column): Enable by default.
13611 * tree-vrp.c (check_array_ref): Use warning_at.
13612 (check_array_bounds): Use location from call back if expr has no
13613 location.
13614 * tree.h: Add location argument to maybe_fold_*.
13615 * tree-ssa-ccp.c (ccp_fold): Pass location to maybe_fold_*.
13616 (maybe_fold_offset_to_array_ref): Add location argument and use it.
13617 (maybe_fold_offset_to_component_ref): Same.
13618 (maybe_fold_offset_to_reference): Same.
13619 (maybe_fold_offset_to_address): Same.
13620 (maybe_fold_stmt_indirect): Same.
13621 (maybe_fold_stmt_addition): Same.
13622 (fold_stmt_r): Pass location to maybe_fold_*.
13623 (fold_gimple_assign): Same.
13624 * c-tree.h: Add location argument to finish_decl,
13625 default_function_array_conversion, store_init_value.
13626 * c-decl.c (define_label): Use error_at.
13627 (c_make_fname_decl): Pass location to finish_decl.
13628 (finish_decl): New location argument.
13629 (build_compound_literal): Pass location to store_init_value.
13630 (grokdeclarator): Pass location to finish_decl.
13631 (grokfield): Same.
13632 * c-typeck.c (array_to_pointer_conversion): New location argument.
13633 (function_to_pointer_conversion): Same.
13634 (default_function_array_conversion): Same.
13635 (parser_build_unary_op): Pass location to overflow_warning.
13636 (parser_build_binary_op): Same. Use warning_at.
13637 (build_unary_op): Pass location to array_to_pointer_conversion.
13638 (build_c_cast): Pass location to digest_init.
13639 (build_modify_expr): New location argument.
13640 (convert_for_assignment): Same.
13641 (store_init_value): Same.
13642 (digest_init): Same.
13643 (output_init_element): Pass location to digest_init and
13644 array_to_pointer_conversion.
13645 (c_finish_return): Pass location to convert_for_assignment.
13646 * gimplify.c (gimplify_conversion): Pass location to
13647 maybe_fold_offset_to_address.
13648 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Pass location
13649 to maybe_fold_stmt_addition.
13650 * c-omp.c (c_finish_omp_atomic): Pass new location to
13651 build_modify_expr.
13652 (c_finish_omp_for): Same.
13653 * c-common.c (overflow_warning): New argument.
13654 * c-common.h: New argument to build_modify_expr, overflow_warning.
13655 * c-parser.c (c_parser_declaration_or_fndef): Pass location to
13656 finish_decl.
13657 (c_parser_initializer): Pass location to
13658 default_function_array_conversion.
13659 (c_parser_initelt): Same.
13660 (c_parser_initval): Same.
13661 (c_parser_asm_operands): Same.
13662 (c_parser_expr_no_commas): Same. Pass location to build_modify_expr.
13663 (c_parser_conditional_expression): Same.
13664 (c_parser_binary_expression): Add location info to stack. Use it.
13665 (c_parser_unary_expression): Pass location to
13666 default_function_array_conversion, parser_build_unary_op,
13667 build_indirect_ref, c_parser_postfix_expression_after_primary.
13668 (c_parser_postfix_expression_after_primary): New location argument.
13669 Use it.
13670 (c_parser_expression_conv): Pass location to
13671 default_function_array_conversion.
13672 (c_parser_expr_list): Same.
13673 (c_parser_omp_atomic): Same.
13674 (c_parser_omp_for_loop): Same.
13675 * c-tree.h: (struct c_declarator): Add comment to id_loc.
13676 (build_array_declarator): New argument.
13677 * c-decl.c (build_array_declarator): Add location argument.
13678 (grokdeclarator): Set id_loc for cdk_array.
13679 * c-parser.c (c_parser_direct_declarator_inner): Pass location to
13680 build_array_declarator.
13681 * tree.c (build_omp_clause): Add location argument.
13682 * tree.h (OMP_CLAUSE_HAS_LOCATION): New macro.
13683 (OMP_CLAUSE_LOCATION): New macro.
13684 (struct tree_omp_clause): Add location field.
13685 (build_omp_clause): Add argument.
13686 * testsuite/gcc.dg/gomp/for-1.c: Fix column.
13687 * cp/pt.c (tsubst_omp_for_iterator): Pass location to
13688 build_omp_clause.
13689 * cp/parser.c (cp_parser_omp_var_list_no_open): Same.
13690 (cp_parser_omp_clause_collapse): Same.
13691 (cp_parser_omp_clause_default): Same.
13692 (cp_parser_omp_clause_if): Same.
13693 (cp_parser_omp_clause_nowait): Same.
13694 (cp_parser_omp_clause_num_threads): Same.
13695 (cp_parser_omp_clause_ordered): Same.
13696 (cp_parser_omp_clause_schedule): Same.
13697 (cp_parser_omp_clause_untied): Same.
13698 (cp_parser_omp_for_loop): Same.
13699 (cp_parser_omp_parallel): Pass location to c_split_parallel_clauses.
13700 * c-tree.h (c_start_case): Add location argument.
13701 (c_process_expr_stmt): Same.
13702 (c_finish_goto_*): Same.
13703 * tree-parloops.c (initialize_reductions): Pass location to
13704 build_omp_clause.
13705 (create_parallel_loop): Same.
13706 * fortran/trans-openmp.c (gfc_trans_omp_variable_list): Same.
13707 (gfc_trans_omp_reduction_list): Same.
13708 (gfc_trans_omp_clauses): Same.
13709 (gfc_trans_omp_do): Same.
13710 * c-typeck.c (c_finish_goto_label): Same.
13711 (c_finish_goto_ptr): New location argument.
13712 (c_start_case): Same.
13713 (emit_side_effect_warnings): Same.
13714 (c_process_expr_stmt): Same.
13715 (c_finish_stmt_expr): Same.
13716 (c_finish_omp_clauses): Use error_at instead of error.
13717 * gimplify.c (gimplify_adjust_omp_clauses_1): Pass location to
13718 build_omp_clause.
13719 * c-omp.c (c_split_parallel_clauses): New location argument.
13720 * tree-nested.c (convert_nonlocal_reference_stmt): Pass location
13721 to build_omp_clause.
13722 (convert_local_reference_stmt): Same.
13723 (convert_gimple_call): Same.
13724 * c-common.h (c_split_parallel_clauses): New argument.
13725 * c-parser.c (c_parser_statement_after_labels): Pass location to
13726 c_finish_goto_label.
13727 (c_parser_switch_statement): Pass location to c_start_case.
13728 (c_parser_for_statement): Pass location to c_finish_expr_stmt,
13729 and c_process_expr_stmt.
13730 (c_parser_omp_variable_list): Add location argument.
13731 (c_parser_omp_clause_collapse): Pass location to build_omp_clause.
13732 (c_parser_omp_clause_default): Same.
13733 (c_parser_omp_clause_if): Same.
13734 (c_parser_omp_clause_num_threads): Same.
13735 (-c_parser_omp_clause_ordered): Same.
13736 (c_parser_omp_clause_reduction): Pass location to
13737 c_parser_omp_variable_list.
13738 (c_parser_omp_clause_schedule): Pass location to build_omp_clause.
13739 (c_parser_omp_clause_untied): Same.
13740 (c_parser_omp_for_loop): Pass location to c_process_expr_stmt.
13741 (c_parser_omp_parallel): Pass location to c_split_parallel_clauses.
13742
13743 * c-tree.h (check_for_loop_decls, undeclared_variable,
13744 build_component_ref, build_array_ref, build_external_ref,
13745 c_expr_sizeof_expr, c_expr_sizeof_type, parser_build_unary_op,
13746 build_conditional_expr, build_compound_expr, c_cast_expr,
13747 build_c_cast, build_asm_expr, c_end_compound_stmt, c_finish_stmt_expr,
13748 c_finish_return, c_finish_omp_parallel, c_finish_omp_task): New
13749 argument.
13750 * c-semantics.c (build_stmt): Same.
13751 (build_case_label): Same.
13752 * c-decl.c (c_finish_incomplete_decl): Pass location on down.
13753 (undeclared_variable): New argument.
13754 (make_label): Same.
13755 (lookup_label): Pass location on down.
13756 (define_label): Same.
13757 (finish_decl): Same.
13758 (build_compound_literal): Same.
13759 (finish_struct): Same.
13760 (finish_function): Do not set location here.
13761 (check_for_loop_decls): New argument.
13762 * tree.c (save_expr): Set location.
13763 (build_empty_stmt): New argument.
13764 * tree.h (build_empty_stmt): New argument to build_empty_stmt.
13765 (CAN_HAVE_LOCATION_P): Make sure we have a non empty node.
13766 * builtins.c (gimplify_va_arg_expr): Use locations.
13767 (expand_builtin_sync_operation): Same.
13768 * c-typeck.c (build_component_ref): New argument.
13769 (build_array_ref): Same.
13770 (build_external_ref): Same.
13771 (c_expr_sizeof_expr): Same.
13772 (c_expr_sizeof_type): Same.
13773 (parser_build_unary_op): Same.
13774 (build_conditional_expr): Same.
13775 (build_compound_expr): Pass location on down.
13776 (build_compound_expr): New argument.
13777 (build_c_cast): Same.
13778 (c_cast_expr): Same.
13779 (build_asm_expr): Same.
13780 (c_finish_return): Same.
13781 (c_process_expr_stmt): Pass location on down.
13782 (c_finish_stmt_expr): New argument.
13783 (push_clenaup): Same.
13784 (c_finish_omp_parallel): Same.
13785 (c_finish_omp_task): Same.
13786 * gimplify.c (gimplify_call_expr): Pass location on down.
13787 * c-omp.c (c_finish_omp_master): New argument.
13788 (c_finish_omp_critical): Same.
13789 (c_finish_omp_ordered): Same.
13790 (c_finish_omp_barrier): Same.
13791 (-c_finish_omp_taskwait): Same.
13792 (c_finish_omp_atomic): Same.
13793 (c_finish_omp_flush): Same.
13794 * tree-inline.c (copy_tree_body_r): Pass location on down.
13795 (inline_forbidden_p): Remove use of input_location.
13796 * c-gimplify.c (c_build_bind_expr): New argument.
13797 * c-common.c (c_common_truthvalue_conversion): Pass location on down.
13798 (c_sizeof_or_alignof_type): New argument.
13799 (c_alignof_expr): Same.
13800 (build_va_arg): Same.
13801 (c_add_case_label): Same.
13802 * c-common.h (c_sizeof_or_alignof_type, c_alignof_expr,
13803 c_sizeof, c_alignof, build_va_arg, build_stmt, build_case_label,
13804 c_build_bind_expr, objc_build_selector_expr, objc_build_throw_stmt,
13805 c_finish_omp_master, c_finish_omp_critical, c_finish_omp_ordered,
13806 c_finish_omp_barrier, c_finish_omp_atomic, c_finish_omp_flush,
13807 c_finish_omp_taskwait, c_finish_omp_for, c_split_parallel_clauses):
13808 New argument.
13809 * stub-objc.c (objc_build_selector_expr): Same.
13810 (objc_build_throw_stmt): Same.
13811 * c-parser.c (c_parser_declaration_or_fndef): Pass location on down.
13812 (c_parser_initelt): Same.
13813 (c_parser_compound_statement): Same.
13814 (c_parser_compound_statement_nostart): Same.
13815 (c_parser_label): Same.
13816 (c_parser_statement_after_labels): Same.
13817 (c_parser_if_body): Same.
13818 (c_parser_else_body): Same.
13819 (c_parser_if_statement): Same.
13820 (c_parser_switch_statement): Same.
13821 (c_parser_while_statement): Same.
13822 (c_parser_do_statement): Same.
13823 (c_parser_for_statement): Same.
13824 (c_parser_asm_statement): Same.
13825 (c_parser_conditional_expression): Same.
13826 (c_parser_binary_expression): Same.
13827 (c_parser_cast_expression): Same.
13828 (c_parser_unary_expression): Same.
13829 (c_parser_sizeof_expression): Same.
13830 (c_parser_alignof_expression): Same.
13831 (c_parser_postfix_expression): Same.
13832 (c_parser_expression): Same.
13833 (c_parser_objc_receiver): Same.
13834 (c_parser_omp_variable_list): Same.
13835 (c_parser_omp_structured_block): Same.
13836 (c_parser_omp_atomic): New argument.
13837 (c_parser_omp_barrier): Same.
13838 (c_parser_omp_critical): Same.
13839 (c_parser_omp_flush): Pass location on down.
13840 (c_parser_omp_for_loop): New argument.
13841 (c_parser_omp_for): Same.
13842 (c_parser_omp_master): Same.
13843 (c_parser_omp_ordered): Same.
13844 (c_parser_omp_sections_scope): Same.
13845 (c_parser_omp_sections): Same.
13846 (c_parser_omp_parallel): Same.
13847 (c_parser_omp_single): Same.
13848 (c_parser_omp_task): Same.
13849 (c_parser_omp_taskwait): Pass location on down.
13850 (c_parser_omp_construct): Same.
13851 (c_parser_omp_threadprivate): Same.
13852 * dwarf2asm.c, targhooks.c, optabs.c, tree.c, tree.h, target.h,
13853 builtins.c, omp-low.c, cgraphunit.c, tree-call-cdce.c,
13854 tree-ssa-alias.c, gimple-low.c, c-tree.h, expr.c, tree-parloops.c,
13855 c-decl.c, tree-eh.c, langhooks.c, function.c, stor-layout.c,
13856 c-typeck.c, gimplify.c, c-pragma.c, expmed.c, except.c, coverage.c,
13857 emit-rtl.c, cfgexpand.c, tree-mudflap.c, varasm.c, tree-nested.c,
13858 rtl.h, tree-inline.c, tree-profile.c, c-common.c, c-common.h,
13859 tree-switch-conversion.c, tree-cfg.c, ipa-struct-reorg.c, c-parser.c,
13860 config/i386/i386.c, stmt.c:
13861 Add location argument to the following function definitions and/or
13862 function calls: build_decl, objcp_start_struct, objcp_finish_struct,
13863 start_struct, finish_struct, PUSH_FIELD, create_artificial_label,
13864 cp_make_fname_decl, pushtag, implicitly_declare, c_make_fname_decl,
13865 build_compound_literal, parser_xref_tag, resolve_overloaded_builtin,
13866 do_case, c_finish_bc_stmt, build_compound_literal,
13867 build_function_call.
13868 * c-decl.c (build_compound_literal): Add location argument.
13869 Make all diagnostic calls use location.
13870 (start_struct): Same.
13871 (finish_struct): Same.
13872 (start_enum): Same.
13873 (build_enumerator): Same.
13874 (start_function): Same.
13875 (grokdeclarator): Make all diagnostic calls use location.
13876 (store_parm_decls_oldstyle): Same.
13877 * c-typeck.c (build_function_call): Add location argument.
13878 Make all diagnostic calls use location.
13879 (do_case): Same.
13880 (c_finish_bc_stmt): Same.
13881 * tree-nested.c (get_trampoline_type): Add argument.
13882 Pass location to build_decl.
13883 (lookup_tramp_for_decl): Pass location to get_trampoline_type.
13884 * rtl.h (RTL_LOCATION): New.
13885 * c-common.c (c_add_case_label): Add location argument.
13886 Make all diagnostic calls use location.
13887 * c-common.h: Add location argument to make_fname_decl, do_case,
13888 c_add_case_label, build_function_call, resolve_overloaded_builtin.
13889 * c-parser.c (c_parser_enum_specifier): Rename ident_loc to enum_loc.
13890 Set it appropriately for every case. Pass enum_loc to start_enum
13891 call. Pass value_loc first to build_enumerator. Pass enum_loc to
13892 parser_xref_tag.
13893 (c_parser_struct_or_union_specifier): Save location. Use it for
13894 start_struct, finish_struct, and parser_xref_tag.
13895
13896 2009-06-12 Ian Lance Taylor <iant@google.com>
13897
13898 * fold-const.c (fold_unary): Rename local variable and to and_expr.
13899
13900 * c-opts.c (c_common_handle_option): For -Wc++-compat set
13901 cpp_opts->warn_cxx_operator_names.
13902
13903 2009-06-12 Andrew Pinski <andrew_pinski@playstation.sony.com>
13904
13905 PR tree-opt/38865
13906 * tree-ssa-sccvn.c (visit_reference_op_load): If vn_reference_lookup
13907 is returns NULL and OP is a VCE, look through the VCE.
13908
13909 2009-06-12 Ian Lance Taylor <iant@google.com>
13910
13911 PR bootstrap/40430
13912 * collect2.c (main): Use CONST_CAST2 in code inside #if
13913 LINK_ELIMINATE_DUPLICATE_LDIRECTORIES.
13914
13915 2009-06-12 Joey Ye <joey.ye@intel.com>
13916
13917 PR middle-end/39146
13918 * cfgexpand.c (get_decl_align_unit): Update
13919 max_used_stack_slot_alignment with align instead of
13920 stack_alignment_needed.
13921
13922 * function.c (assign_stack_local_1): Update
13923 max_used_stack_slot_alignment with alignment_in_bits instead
13924 of stack_alignment_needed.
13925 (locate_and_pad_parm): Don't update max_used_stack_slot_alignment
13926 here.
13927
13928 2009-06-12 Jakub Jelinek <jakub@redhat.com>
13929
13930 * dwarf2out.c (last_var_location_insn): New variable.
13931 (dwarf2out_end_epilogue): Clear last_var_location_insn.
13932 (dwarf2out_var_location): Don't record anything after last real
13933 insn. Only change labels if there were any real instructions
13934 in between last note and this one, or if changed sections.
13935
13936 2009-06-11 Richard Henderson <rth@redhat.com>
13937
13938 * alpha.c (alpha_expand_prologue): Add a REF_CFA_REGISTER
13939 note when storing the frame pointer in a register.
13940 (FRP): Don't redefine to nothing for epilogue.
13941 (alpha_expand_epilogue): Mark register and sp restores.
13942 (unicosmk_gen_dsib): Don't mark weird frame pointer adjust.
13943
13944 * config/alpha/alpha.c (alpha_emit_setcc): Fix test for
13945 when gen_lowpart is needed.
13946
13947 2009-06-11 Richard Henderson <rth@redhat.com>
13948
13949 * dwarf2out.c (def_cfa_1): Likewise for DW_CFA_cfa_offset.
13950
13951 * dwarf2out.c (need_data_align_sf_opcode): New.
13952 (div_data_align): Move earlier.
13953 (def_cfa_1, reg_save): Use it.
13954
13955 2009-06-11 H.J. Lu <hongjiu.lu@intel.com>
13956
13957 * config/i386/i386.c (OPTION_MASK_ISA_CRC32_SET): New.
13958 (OPTION_MASK_ISA_CRC32_UNSET): Likewise.
13959 (ix86_handle_option): Handle OPT_mcrc32.
13960 (ix86_target_string): Add -mcrc32.
13961 (bdesc_args): Enable crc32 builtins with OPTION_MASK_ISA_CRC32.
13962
13963 * config/i386/i386.h (TARGET_CRC32): New.
13964
13965 * config/i386/i386.md (sse4_2_crc32<mode>): Also check TARGET_CRC32.
13966 (sse4_2_crc32di): Likewise.
13967
13968 * config/i386/i386.opt (mcrc32): New.
13969
13970 * doc/invoke.texi: Document -mcrc32.
13971
13972 2009-06-11 Richard Henderson <rth@redhat.com>
13973
13974 * common.opt (gdwarf-): Accept a version number.
13975 * doc/invoke.texi (gdwarf-): Update docs.
13976 * opth-gen.awk: Special case -gdwarf+ to OPT_gdwarfplus.
13977 * opts.c (common_handle_option) [OPT_gdwarf_]: Verify dwarf
13978 version level, and record it.
13979
13980 * dwarf2.h (DW_CIE_VERSION): Remove.
13981 * dwarf2out.c (DWARF_VERSION): Remove.
13982 (add_fde_cfi): Skip DW_CFA_set_loc addition for dwarf3.
13983 (output_call_frame_info): Use CIE version 3 for dwarf3,
13984 or if the return register column is out of range for version 1.
13985 (dwarf_stack_op_name): Add all dwarf3 values.
13986 (DEBUG_PUBTYPES_SECTION): New.
13987 (size_of_die) [dw_val_class_die_ref]: Handle DW_FORM_ref_addr
13988 encoding change for dwarf3.
13989 (output_die) [dw_val_class_die_ref]: Likewise.
13990 (output_compilation_unit_header): Emit correct version for dwarf3.
13991 (output_line_info): Likewise.
13992 (output_pubnames): Update for DWARF_VERSION removal.
13993 (output_aranges): Likewise.
13994 (gen_subprogram_die): Emit DW_OP_call_frame_cfa if emitting dwarf3.
13995 (dwarf2out_init): Don't ifdef DEBUG_PUBTYPES_SECTION.
13996 (dwarf2out_finish): Likewise.
13997
13998 2009-06-11 David Daney <ddaney@caviumnetworks.com>
13999
14000 * system.h (gcc_assert, gcc_unreachable): Revert accidental commit
14001 in r148403.
14002
14003 2009-06-11 David Daney <ddaney@caviumnetworks.com>
14004
14005 PR c/39252
14006 * doc/extend.texi ( __builtin_unreachable): Document new builtin.
14007 * builtins.c (expand_builtin_unreachable): New function.
14008 (expand_builtin): Handle BUILT_IN_UNREACHABLE case.
14009 * builtins.def (BUILT_IN_UNREACHABLE): Add new builtin.
14010 * cfgcleanup.c (try_optimize_cfg): Delete empty blocks with no
14011 successors.
14012 * cfgrtl.c (rtl_verify_flow_info): Handle empty blocks when
14013 searching for missing barriers.
14014
14015 2009-06-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
14016
14017 * config/darwin.h (LINK_COMMAND_SPEC): Adjust spec to link libcov
14018 when -fprofile-generate* was passed.
14019 * config/darwin9.h (LINK_COMMAND_SPEC): Likewise.
14020
14021 2009-06-11 Anthony Green <green@moxielogic.com>
14022
14023 * config/moxie/moxie.md: Define length attribute for all instructions.
14024 (rCC): Define.
14025 (*b<cond:code>): Support limited branch ranges for new PC-relative
14026 branch instructions.
14027 * config/moxie/moxie.h (HAS_LONG_UNCOND_BRANCH): Define.
14028
14029 2009-06-11 Jakub Jelinek <jakub@redhat.com>
14030
14031 * config/i386/i386.c (min_insn_size): Use get_attr_length
14032 for normal insns other than TYPE_MULTI, TYPE_OTHER and TYPE_FCMP.
14033 For __asm return 0.
14034
14035 * config/i386/i386.c (ix86_pad_returns): Use emit_jump_insn_before
14036 instead of emit_insn_before.
14037
14038 2009-06-10 Ian Lance Taylor <iant@google.com>
14039
14040 PR bootstrap/40408
14041 * graphite.c (add_conditions_to_domain): Change SWITCH_EXPR to
14042 GIMPLE_SWITCH.
14043
14044 2009-06-10 Revital Eres <eres@il.ibm.com>
14045
14046 * passes.c (init_optimization_passes): Reschedule
14047 predictive-commoning pass before complete unroll pass.
14048
14049 2009-06-10 Martin Jambor <mjambor@suse.cz>
14050
14051 * cgraph.c (cgraph_node_can_be_local_p): New function.
14052 (cgraph_make_node_local): New function.
14053 * cgraph.h (cgraph_node_can_be_local_p): Declare.
14054 (cgraph_make_node_local): Declare.
14055
14056 2009-06-10 Nathan Froyd <froydnj@codesourcery.com>
14057
14058 * tree.h (tree_base): Add packed_flag and user_align fields.
14059 Decrease size of spare field.
14060 (TYPE_USER_ALIGN): Use user_align from tree_base.
14061 (DECL_USER_ALIGN): Likewise.
14062 (TYPE_PACKED): Use packed_flag from tree_base.
14063 (DECL_PACKED): Likewise.
14064 (tree_type): Delete packed_flag and user_align fields. Widen
14065 precision field. Widen mode field and shuffle fields to align
14066 mode on an 8-bit boundary.
14067 (tree_decl_common): Delete decl_flag_1 and user_align fields.
14068 Renumber decl_flag_* fields. Fix comments. Widen
14069 decl_common_unused field.
14070 (DECL_HAS_VALUE_EXPR_P): Adjust for renumbering of decl_flag_* fields.
14071 (DECL_EXTERNAL): Likewise.
14072 (DECL_BIT_FIELD): Likewise.
14073 (DECL_NONADDRESSABLE_P): Likewise.
14074 (TYPE_DECL_SUPRESS_DEBUG): Likewise.
14075 * config/arm/arm-modes.def (XImode): Make it an INT_MODE.
14076
14077 2009-06-10 Ian Lance Taylor <iant@google.com>
14078
14079 * vec.h (DEF_VEC_ALLOC_I): Use DEF_VEC_NONALLOC_FUNCS_I.
14080 (DEF_VEC_ALLOC_P): Use DEF_VEC_NONALLOC_FUNCS_P.
14081 (DEF_VEC_ALLOC_O): Use DEF_VEC_NONALLOC_FUNCS_O.
14082 (DEF_VEC_ALLOC_FUNC_P): Only define VEC_OP (T,A,alloc).
14083 (DEF_VEC_NONALLOC_FUNCS_P): New macro, broken out of old
14084 DEF_VEC_ALLOC_FUNC_P.
14085 (DEF_VEC_ALLOC_FUNC_O): Only define VEC_OP (T,A,alloc).
14086 (DEF_VEC_NONALLOC_FUNCS_O): New macro, broken out of old
14087 DEF_VEC_ALLOC_FUNC_O.
14088 (DEF_VEC_ALLOC_FUNC_I): Only define VEC_OP (T,A,alloc).
14089 (DEF_VEC_NONALLOC_FUNCS_I): New macro, broken out of old
14090 DEF_VEC_ALLOC_FUNC_I.
14091 (vec_stack_p_reserve, vec_stack_p_reserve_exact): Declare.
14092 (vec_stack_p_reserve_exact_1): Declare.
14093 (vec_stack_o_reserve, vec_stack_o_reserve_exact): Declare.
14094 (vec_stack_free): Declare.
14095 (VEC_stack_alloc): Define.
14096 (DEF_VEC_ALLOC_P_STACK, DEF_VEC_ALLOC_FUNC_P_STACK): Define.
14097 (DEF_VEC_ALLOC_O_STACK, DEF_VEC_ALLOC_FUNC_O_STACK): Define.
14098 (DEF_VEC_ALLOC_I_STACK, DEF_VEC_ALLOC_FUNC_I_STACK): Define.
14099 * vec.c (void_p): New type. Call DEF_VEC_P and DEF_VEC_ALLOC_P
14100 for void_p.
14101 (stack_vecs): New static variable.
14102 (vec_stack_p_reserve_exact_1): New function.
14103 (vec_stack_o_reserve_1): New static function.
14104 (vec_stack_p_reserve, vec_stack_p_reserve_exact): New functions.
14105 (vec_stack_o_reserve, vec_stack_o_reserve_exact): New functions.
14106 (vec_stack_free): New function.
14107 * df-scan.c (df_ref): Use DEF_VEC_P and DEF_VEC_ALLOC_P_STACK.
14108 (VEC_df_ref_stack_alloc): Define.
14109 (df_mw_hardreg_ptr): New type. Use DEF_VEC_P and
14110 DEF_VEC_ALLOC_P_STACK.
14111 (VEC_df_mw_hardreg_ptr_stack_alloc): Define.
14112 (struct df_collection_rec): Change _vec fields to VEC. Remove
14113 _use fields.
14114 (df_free_collection_rec): Adjust for new fields.
14115 (df_insn_rescan): Use new df_collection_rec fields.
14116 (df_notes_rescan, df_canonize_collection_rec): Likewise.
14117 (df_ref_create_structure, df_ref_record): Likewise.
14118 (df_get_conditional_uses, df_get_call_refs): Likewise.
14119 (df_insn_refs_collect, df_bb_refs_collect): Likewise.
14120 (df_bb_refs_record, df_record_entry_block_defs): Likewise.
14121 (df_record_exit_block_uses, df_bb_verify): Likewise.
14122 (df_swap_refs): Change ref_vec parameter to VEC. Change all callers.
14123 (df_sort_and_compress_refs): Change ref_vec parameter to VEC.
14124 Remove count parameter. Change return type to void. Change all
14125 callers.
14126 (df_sort_and_compress_mws): Change mw_vec parameter to VEC.
14127 Remove count parameter. Change return type to void. Change all
14128 callers.
14129 (df_install_refs): Change old_vec parameter to VEC. Remove count
14130 parameter. Change all callers.
14131 (df_install_mws): Change old_vec parameter to VEC. Remove count
14132 parameter. Change all callers.
14133 (df_refs_verify): Change new_rec parameter to VEC. Change call
14134 callers.
14135 (df_mws_verify): Likewise.
14136
14137 2009-06-10 Alexandre Oliva <aoliva@redhat.com>
14138
14139 * gcc.c (compare_files): Cast munmap argumento to caddr_t.
14140
14141 2009-06-10 H.J. Lu <hongjiu.lu@intel.com>
14142
14143 * doc/extend.texi: Add description for __builtin_ia32_crc32di.
14144
14145 2009-06-10 Anthony Green <green@moxielogic.com>
14146
14147 * config/moxie/crti.asm: New file.
14148 * config/moxie/crtn.asm: New file.
14149 * config/moxie/moxie.c: New file.
14150 * config/moxie/moxie.h: New file.
14151 * config/moxie/sfp-machine.h: New file.
14152 * config/moxie/moxie-protos.h: New file.
14153 * config/moxie/t-moxie: Created.
14154 * config/moxie/t-moxie-softfp: Created.
14155 * config/moxie/moxie.md: Created.
14156 * config/moxie/constraints.md: Created.
14157 * config.gcc: Add moxie support.
14158 * doc/md.texi (Machine Constraints): Add moxie constraints.
14159 * doc/contrib.texi (Contributors): Mention moxie port.
14160 * doc/install.texi (Specific): Mention the moxie port.
14161
14162 2009-06-09 Ian Lance Taylor <iant@google.com>
14163
14164 * system.h (HAVE_DESIGNATED_INITIALIZERS): Don't define if
14165 compiling with C++.
14166 * optabs.c (optab_table): Only use designated initializers if
14167 HAVE_DESIGNATED_INITIALIZERS is defined.
14168 (convert_optab_table): Likewise.
14169 (init_optabs): Always call init_insn_codes if
14170 HAVE_DESIGNATED_INITIALIZERS is not defined.
14171
14172 2009-06-09 Ian Lance Taylor <iant@google.com>
14173
14174 * targhooks.c (default_builtin_vectorized_function): Change fn
14175 parameter to unsigned int.
14176 (default_builtin_vectorized_conversion): Change code parameter to
14177 unsigned int.
14178 (default_builtin_reciprocal): Change fn parameter to unsigned int.
14179 * targhooks.h: Update declarations.
14180 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Change code
14181 parameter to unsigned int.
14182
14183 * c-typeck.c (comptypes_check_enum_int): New static function.
14184 (comptypes_internal): Add enum_and_int_p parameter. Change all
14185 callers.
14186 (comp_target_types): Add location parameter. Change all callers.
14187 (tagged_types_tu_compatible_p): Add enum_and_int_p parameter.
14188 Change all callers.
14189 (function_types_compatible_p, type_lists_compatible_p): Likewise.
14190 (build_conditional_expr): Add colon_loc parameter. Change all
14191 callers.
14192 (convert_for_assignment): Add location parameter. Change all callers.
14193 * c-parser.c (c_parser_conditional_expression): Pass location of
14194 colon to build_conditional_expr.
14195 * c-tree.h (build_conditional_expr): Update declaration.
14196
14197 2009-06-09 Sebastian Pop <sebastian.pop@amd.com>
14198
14199 * graphite.c: Revert previous patch.
14200
14201 2009-06-09 Sebastian Pop <sebastian.pop@amd.com>
14202
14203 PR bootstrap/40103
14204 * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
14205
14206 2009-06-09 Ghassan Shobaki <ghassan.shobaki@amd.com>
14207
14208 * tree-ssa-loop-prefetch.c
14209 (loop_prefetch_arrays): Fixed a portability problem in printf format
14210 string.
14211
14212 2009-06-09 Martin Jambor <mjambor@suse.cz>
14213
14214 PR tree-optimization/40351
14215 * tree-sra.c (propagate_subacesses_accross_link): Check that a
14216 refrence to a potential artifical subaccess can be constructed.
14217
14218 2009-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
14219
14220 * config/sh/sh-protos.h (sh_optimization_options): Declare.
14221 (sh_override_options): Likewise.
14222 * config/sh/sh.c: Include params.h.
14223 (sh_optimization_options): New.
14224 (sh_override_options): Likewise.
14225 * config/sh/sh.c (OPTIMIZATION_OPTIONS): Use sh_optimization_options.
14226 (OVERRIDE_OPTIONS): Use sh_override_options.
14227
14228 2009-06-08 Jakub Jelinek <jakub@redhat.com>
14229
14230 * dwarf2out.c (emit_cfa_remember): New variable.
14231 (add_fde_cfi): If emit_cfa_remember, recurse to add
14232 DW_CFA_remember_state first.
14233 (dwarf2out_begin_epilogue): Don't add_fde_cfi DW_CFA_remember_state,
14234 instead just set emit_cfa_remember.
14235
14236 2009-06-08 Jan Hubicka <jh@suse.cz>
14237
14238 PR debug/40126
14239 * dwarf2out.c (dwarf2out_abstract_function): Free decl_loc_table.
14240
14241 2009-06-08 Jan Hubicka <jh@suse.cz>
14242
14243 PR middle-end/39834
14244 * cgraphunit.c (save_inline_function_body): Do not copy transform
14245 hooks for saved inline bodies.
14246 * ipa-passes.c (do_per_function): Do not add the hoks multiple times
14247 for given function.
14248
14249 2009-06-08 Adam Nemet <anemet@caviumnetworks.com>
14250
14251 * jump.c (returnjump_p): Handle delayed branches. Add missing
14252 function comment.
14253
14254 2009-06-08 Jan Hubicka <jh@suse.cz>
14255
14256 PR middle-end/40102
14257 * cgraph.c (cgraph_create_edge_including_clones): Also asume that the
14258 original node might've been modified.
14259 * tree-inline.c (copy_bb): Do not assume that all clones are the same.
14260
14261 2009-06-08 Jakub Jelinek <jakub@redhat.com>
14262
14263 * tree-object-size.c (addr_object_size): Add OSI argument.
14264 Handle also INDIRECT_REF with SSA_NAME inside of it as base address.
14265 (compute_builtin_object_size, expr_object_size): Adjust callers.
14266 (plus_stmt_object_size): Call addr_object_size instead of
14267 compute_builtin_object_size.
14268
14269 2009-06-08 Ghassan Shobaki <ghassan.shobaki@amd.com>
14270 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
14271
14272 * tree-ssa-loop-prefetch.c
14273 (gather_memory_references): Introduced a counter for the number of
14274 memory references.
14275 (anything_to_prefetch_p): Introduced a counter for the number of
14276 prefetches.
14277 (is_loop_prefetching_profitable): New function with a cost model
14278 for prefetching.
14279 (loop_prefetch_arrays): Use the new cost model to determine if
14280 prefetching is profitable.
14281 * params.def (MIN_INSN_TO_PREFETCH_RATIO,
14282 PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
14283 * params.h (MIN_INSN_TO_PREFETCH_RATIO,
14284 PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
14285 * doc/invoke.texi (MIN_INSN_TO_PREFETCT_RATIO,
14286 PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
14287
14288 2009-06-08 Michael Matz <matz@suse.de>
14289
14290 PR debug/40012
14291 * cfgexpand.c (set_rtl): Store place also in DECL_RTL, if all
14292 partitions use the same.
14293 (expand_one_var): Deal with DECL_RTL sometimes begin set also
14294 for basevars of SSA_NAMEs.
14295 (expand_used_vars): Reset TREE_USED for basevars of SSA_NAMEs,
14296 to not expand them twice.
14297 (gimple_expand_cfg): Clear DECL_RTL for those decls that have
14298 multiple places.
14299
14300 2009-06-08 Alexandre Oliva <aoliva@redhat.com>
14301
14302 * common.opt (fcompare-debug=, fcompare-debug-second): New.
14303 (fdump-final-insns=, gtoggle): New.
14304 * doc/invoke.texi: Document them.
14305 * final.c (rest_of_clean_state): Dump final insn stream.
14306 * gcc.c (invoke_as): Hook in -fcompare-debug.
14307 (static_spec_functions): Add compare-debug-dump-opt,
14308 compare-debug-self-opt and compare-debug-auxbase-opt.
14309 (compare_debug, compare_debug_second, compare_debug_opt): New.
14310 (switches_debug_check, n_switches_debug_check): New.
14311 (debug_auxbase_opt, debug_check_temp_file): New.
14312 (process_command): Handle -fno-compare-debug, -fcompare-debug and
14313 -fcompare-debug=*.
14314 (do_self_spec): Handle arguments after switches.
14315 (do_spec_1): Add .gk extension to temp file basenames for compare.
14316 (check_live_switch): Take SWITCH_IGNORE into account, and earlier.
14317 (cc1_options): Use it instead of normal auxbase computation for
14318 the second compare-debug compilation.
14319 (compare_files): New.
14320 (main): Set up and implement compare debug mode.
14321 (compare_debug_dump_opt_spec_function): New.
14322 (compare_debug_self_opt_spec_function): New.
14323 (compare_debug_auxbase_opt_spec_function): New.
14324 * toplev.c (process_options): Handle flag_gtoggle,
14325 flag_dump_final_insns.
14326 * coverage.c (coverage_begin_output): Don't overwrite .gcno file
14327 during -fcompare-debug-second compilation.
14328
14329 2009-06-07 Ian Lance Taylor <iant@google.com>
14330
14331 * dwarf2.h (enum dwarf_location_atom): Add INTERNAL_DW_OP_tls_addr.
14332 * dwarf2out.c (INTERNAL_DW_OP_tls_addr): Don't #define.
14333
14334 * c-common.c (c_do_switch_warnings): Don't exit early for -Wswitch
14335 with no default node. Change warning with %H to warning_at.
14336 Don't clear warn_switch around case checking.
14337 * doc/invoke.texi (Warning Options): Clarify distinction between
14338 -Wswitch and -Wswitch-enum.
14339
14340 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14341
14342 * tree-pass.h (TODO_update_ssa_any): Document internal use only.
14343
14344 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14345
14346 * gbl-ctors.h: Add header guard.
14347
14348 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14349
14350 * tree-flow.h (make_value_handle, set_value_handle, sort_vuses,
14351 sort_vuses_heap, vn_lookup_or_add, vn_lookup_or_add_with_stmt,
14352 vn_lookup_or_add_with_vuses, vn_add, vn_add_with_vuses,
14353 vn_lookup_with_stmt, vn_lookup, vn_lookup_with_vuses): Remove
14354 prototypes for removed functions.
14355 (expressions_equal_p): Move to ...
14356 * tree-ssa-sccvn.h: ... here and ...
14357 * matrix-reorg.c: ... adjust includes.
14358
14359 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14360
14361 * ipa-struct-reorg.c (do_reorg_1): Fix whitespace in dump output.
14362
14363 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14364
14365 * c-decl.c (finish_decl): Use bool for variable was_incomplete.
14366 (finish_function): Remove erroneous whitespace.
14367
14368 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14369
14370 * tree-cfg.c (gimple_merge_blocks): Commentary typo fix.
14371 (verify_stmts): Print statement who's gimple_bb is set to a wrong BB
14372
14373 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14374
14375 * errors.c (internal_error): Commentary typo fix.
14376 * gimple-iterator.c (gsi_insert_seq_on_edge): Ditto.
14377 * tree-ssa-pre.c: Ditto.
14378
14379 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14380
14381 * basic-block.h (ENTRY_BLOCK, EXIT_BLOCK): Document that neither of
14382 them is supposed to hold actual statements.
14383
14384 2009-06-06 Ian Lance Taylor <iant@google.com>
14385
14386 * doc/extend.texi (Attribute Syntax): Document that C++ labels on
14387 empty statements can now have attributes.
14388
14389 2009-06-05 Shujing Zhao <pearly.zhao@oracle.com>
14390
14391 * config/mips/mips.c: Use REG_P and CONST_INT_P where applicable.
14392 * config/mips/mips.md: Ditto.
14393
14394 2009-06-05 Nathan Froyd <froydnj@codesourcery.com>
14395
14396 * config/rs6000/eabi.asm (__eabi_convert): Don't define if
14397 _RELOCATABLE.
14398 (__eabi_uconvert): Likewise.
14399
14400 2009-06-05 Nathan Froyd <froydnj@codesourcery.com>
14401
14402 * config/rs6000/ppc-asm.h: Protect auto-host.h inclusion and
14403 CFI_* definitions with IN_GCC.
14404
14405 2009-06-05 David Edelsohn <edelsohn@gnu.org>
14406
14407 * xcoffout.h (xcoffout_source_line): Update prototype.
14408
14409 2009-06-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14410
14411 * builtins.c (do_mpc_ckconv, do_mpc_arg1): Use
14412 mpc_realref/mpc_imagref instead of MPC_RE/MPC_IM.
14413
14414 2009-06-05 Jakub Jelinek <jakub@redhat.com>
14415
14416 PR middle-end/40340
14417 * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
14418 inlined_function_outer_scope_p blocks for artificial inlines
14419 even at -g0/-g1.
14420 * tree.c (tree_nonartificial_location): Rewrite using
14421 block_nonartificial_location.
14422
14423 2009-06-05 Revital Eres <eres@il.ibm.com>
14424 Leehod Baruch <leehod@il.ibm.com>
14425
14426 * expr.c (expand_assignment): Expand MISALIGNED_INDIRECT_REF.
14427 (expand_expr_real_1): Remove comment.
14428 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
14429 Vectorize misaligned access when the target supports it.
14430 (vect_supportable_dr_alignment): Check for unaligned access support.
14431 * tree-vect-stmts.c (vectorizable_store): Generate misaligned store
14432 and remove asset.
14433
14434 2009-06-05 Julian Brown <julian@codesourcery.com>
14435
14436 * config/arm/ieee754-df.S (cmpdf2): Avoid writing below SP.
14437 * config/arm/ieee754-sf.S (cmpsf2): Likewise.
14438
14439 2009-06-05 Richard Guenther <rguenther@suse.de>
14440
14441 PR bootstrap/40350
14442 * dwarf2out.c (dwarf2out_begin_function): Mark discriminator
14443 as possibly unused.
14444
14445 2009-06-05 Jakub Jelinek <jakub@redhat.com>
14446
14447 * config/s390/s390.c (global_not_special_regno_p): New static inline.
14448 (save_gprs): Don't tell unwinder when a global register is saved.
14449 (s390_emit_epilogue): Emit needed epilogue unwind info.
14450
14451 2009-06-05 Alexandre Oliva <aoliva@redhat.com>
14452
14453 * dwarf2out.c (deferred_asm_name): New.
14454 (add_name_and_src_coords_attributes): Defer creation of
14455 DW_AT_MIPS_linkage_name attribute if DECL_ASSEMBLER_NAME was not
14456 computed yet.
14457 (move_linkage_attr): New.
14458 (dwarf2out_finish): Revisit deferrals and emit attributes at the
14459 right place.
14460
14461 2009-06-05 Alexandre Oliva <aoliva@redhat.com>
14462
14463 * tree-nested.c (finalize_nesting_tree_1): Declare the
14464 frame_decl in the binding tree.
14465
14466 2009-06-04 Cary Coutant <ccoutant@google.com>
14467
14468 * basic-block.h (struct basic_block_def): Add discriminator field.
14469 * dbxout.c (dbxout_source_line): Add new parameter. Change all
14470 callers.
14471 * debug.c (do_nothing_debug_hooks): Add additional entry.
14472 (debug_nothing_int_charstar_int): New function.
14473 * debug.h (struct gcc_debug_hooks): Add parameter to source_line hook.
14474 (debug_nothing_int_charstar_int): New declaration.
14475 * dwarf2out.c (dwarf2out_source_line): Add new parameter. Write
14476 discriminator value in .loc directive.
14477 * final.c (last_discriminator): New variable.
14478 (discriminator): New variable.
14479 (final_start_function): Initialize above variables, pass current
14480 discriminator to debug hook.
14481 (notice_source_line): Check for discriminator change.
14482 * gimple-pretty-print.c (dump_bb_header): Print discriminator value.
14483 * sdbout.c (sdbout_source_line): New parameter.
14484 * tree-cfg.c (struct locus_discrim_map): New structure type.
14485 (discriminator_per_locus): New hash table.
14486 (build_gimple_cfg): Allocate and free discriminator hash table.
14487 (make_edges): Call assign_discriminator.
14488 (locus_map_hash): New function.
14489 (locus_map_eq): New function.
14490 (next_discriminator_for_locus): New function.
14491 (same_line_p): New function.
14492 (assign_discriminator): New function.
14493 (make_cond_expr_edges): Call assign_discriminator.
14494 (make_gimple_switch_edges): Likewise.
14495 (first_non_label_stmt): New function.
14496 * vmsdbgout.c (vmsdbgout_source_line): Add new parameter. Change
14497 all callers.
14498 * xcoffout.c (xcoffout_source_line): Add new parameter.
14499
14500 * configure.ac (gcc_cv_as_discriminator): New configury check for
14501 gas support for discriminator.
14502 * configure: Regenerate.
14503 * config.in: Regenerate.
14504
14505 2009-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14506
14507 * config/arm/arm.c (thumb2_legitimate_index_p): Initialize
14508 val after checking for integers.
14509
14510 2009-06-04 Uros Bizjak <ubizjak@gmail.com>
14511
14512 * config/i386/i386.h (X86_64_MS_REGPARM_MAX): Rename from
14513 X64_REGPARM_MAX.
14514 (REGPARM_MAX): Use X86_64_MS_REGPARM_MAX.
14515 (X86_64_MS_SSE_REGPARM_MAX): Rename from X64_SSE_REGPARM_MAX.
14516 (SSE_REGPARM_MAX): Use X86_64_MS_SSE_REGPARM_MAX.
14517 * config/i386/i386.c: Use X86_64_MS_REGPARM_MAX instead of
14518 X64_REGPARM_MAX. Use X86_64_MS_SSE_REGPARM_MAX instead of
14519 X64_SSE_REGPARM_MAX.
14520 * config/i386/i386.md: Use X86_64_MS_SSE_REGPARM_MAX instead of
14521 X64_SSE_REGPARM_MAX.
14522
14523 2009-06-04 Alexandre Oliva <aoliva@redhat.com>
14524
14525 * gcc.c (report_times_to_file): New.
14526 (execute): Implement it.
14527 (process_command): Support -time=.
14528 * doc/invoke.texi: Document it.
14529
14530 2009-06-04 Alexandre Oliva <aoliva@redhat.com>
14531
14532 * tree-ssa-live.c (remove_unused_scope_block_p): Keep variables
14533 that have value exprs.
14534
14535 2009-06-04 Alexandre Oliva <aoliva@redhat.com>
14536
14537 * dwarf2asm.c (dw2_force_const_mem): Defer creation of
14538 declarations for constants until...
14539 (dw2_output_indirect_constant_1): ... this point.
14540
14541 2009-06-04 Richard Earnshaw <rearnsha@arm.com>
14542
14543 PR target/10242
14544 * arm.md (arm_addsi3): Don't try to split an add with an
14545 eliminable register until after reload has completed.
14546
14547 2009-06-03 Ian Lance Taylor <iant@google.com>
14548
14549 * dummy-checksum.c (executable_checksum): Use EXPORTED_CONST.
14550 * genattrtab.c (write_length_unit_log): Likewise.
14551 * genchecksum.c (dosum): Likewise.
14552 * gengtype.c (write_rtx_next): Likewise.
14553 (finish_root_table, write_roots): Likewise.
14554 * gimple.c (gimple_ops_offset_): Likewise.
14555 * tree-nomudflap.c (gt_ggc_r_gt_tree_mudflap_h): Likewise.
14556 * config/arc/arc.c (arc_attribute_table): Likewise.
14557 * config/arm/arm.c (arm_attribute_table): Likewise.
14558 * config/avr/avr.c (avr_attribute_table): Likewise.
14559 * config/crx/crx.c (crx_attribute_table): Likewise.
14560 * config/m32r/m32r.c (m32r_attribute_table): Likewise.
14561 * config/m68hc11/m68hc11.c (m68hc11_attribute_table): Likewise.
14562 * config/mcore/mcore.c (mcore_attribute_table): Likewise.
14563 * config/rs6000/rs6000.c (rs6000_attribute_table): Likewise.
14564 * config/sh/sh.c (sh_attribute_table): Likewise.
14565 * config/sparc/sparc.c (sparc_attribute_table): Likewise.
14566 * config/spu/spu.c (spu_attribute_table): Likewise.
14567 * config/v850/v850.c (v850_attribute_table): Likewise.
14568
14569 * config/alpha/alpha.c (vms_attribute_table): Make static.
14570 * config/bfin/bfin.c (bfin_attribute_table): Likewise.
14571 * config/h8300/h8300.c (h8300_attribute_table): Likewise.
14572 * config/mips/mips.c (mips_attribute_table): Likewise.
14573
14574 * Makefile.in (dummy-checksum.o): Depend upon $(CONFIG_H) and
14575 $(SYSTEM_H).
14576 (cc1-checksum.o): Likewise.
14577
14578 2009-06-03 Steve Ellcey <sje@cup.hp.com>
14579
14580 * config/ia64/vect.md (*movv2sf_internal): Handle big endian case.
14581
14582 2009-06-03 Jakub Jelinek <jakub@redhat.com>
14583
14584 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Return generated
14585 insn if it is changing sp. Use gen_add3_insn instead of
14586 conditionally gen_addsi3 and gen_adddi3.
14587 (offset_below_red_zone_p): New static inline function.
14588 (rs6000_emit_epilogue): Emit needed epilogue unwind info.
14589 Use gen_add3_insn instead of conditionally gen_addsi3 and gen_adddi3.
14590 * config/rs6000/ppc-asm.h: Include auto-host.h.
14591 (CFI_STARTPROC, CFI_ENDPROC, CFI_DEF_CFA_REGISTER, CFI_OFFSET,
14592 CFI_RESTORE): Define.
14593 * config/rs6000/crtresxgpr.asm: Add unwind info.
14594 * config/rs6000/crtresxfpr.asm: Likewise.
14595 * config/rs6000/crtresgpr.asm: Likewise.
14596 * config/rs6000/crtresfpr.asm: Likewise.
14597 * config/rs6000/crtsavgpr.asm: Likewise.
14598 * config/rs6000/crtsavfpr.asm: Likewise.
14599
14600 * dwarf2out.c (output_cfi_directive): Pass 1 instead of 0 to second
14601 argument of DWARF2_FRAME_REG_OUT macros.
14602
14603 2009-06-03 Julian Brown <julian@codesourcery.com>
14604
14605 * config/arm/arm.c (arm_hard_regno_mode_ok): Permit values of four
14606 words or less (including TImode) in core registers.
14607
14608 2009-06-03 Richard Guenther <rguenther@suse.de>
14609
14610 PR middle-end/40328
14611 * fold-const.c (fold_convert): Fold the build COMPLEX_EXPR.
14612
14613 2009-06-03 Andrey Belevantsev <abel@ispras.ru>
14614
14615 * statistics.c (statistics_counter_event): Do not record event
14616 in pass dump if its number == -1.
14617 (curr_statistics_hash): Add assert that we never get passes
14618 with static number == -1.
14619
14620 2009-06-03 Richard Guenther <rguenther@suse.de>
14621 Andrey Belevantsev <abel@ispras.ru>
14622
14623 * cfgexpand.c (discover_nonconstant_array_refs_r): Make only
14624 non-BLKmode arrays addressable.
14625
14626 2009-06-03 Maxim Kuvyrkov <maxim@codesourcery.com>
14627
14628 * config/m68k/linux.h (HAVE_GAS_BALIGN_AND_P2ALIGN): Move to ...
14629 * config/m68k/m68k.h: ... here.
14630
14631 2009-06-03 Martin Jambor <mjambor@suse.cz>
14632
14633 PR tree-optimization/40323
14634 * ipa-prop.c (get_ssa_def_if_simple_copy): Break if not single
14635 assignment.
14636
14637 2009-06-03 Richard Guenther <rguenther@suse.de>
14638
14639 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
14640 consistently.
14641
14642 2009-06-03 Shujing Zhao <pearly.zhao@oracle.com>
14643
14644 * config/sh/predicates.md: Use REG_P, MEM_P, CONST_INT_P, LABEL_P,
14645 JUMP_P, CALL_P, NONJUMP_INSN_P, NOTE_P, BARRIER_P and
14646 JUMP_TABLE_DATA_P where applicable.
14647 * config/sh/sh.c: Ditto.
14648 * config/sh/sh.h: Ditto.
14649 * config/sh/sh.md: Ditto.
14650 * config/sh/symbian.c: Ditto.
14651
14652 2009-06-03 Uros Bizjak <ubizjak@gmail.com>
14653
14654 * config/i386/driver-i386.c (describe_cache): Optimize
14655 concatenation of strings. Use snprintf instead of sprintf.
14656 (host_detect_local_cpu): Ditto. Ignore -march and -mtune for native
14657 target when not compiling with GCC.
14658
14659 2009-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
14660
14661 * config/sh/sh.c: Revert last change.
14662 (sh_expand_epilogue): Emit a blockage insn before the frame
14663 pointer adjustment unconditionally.
14664
14665 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
14666
14667 * config/pa/pa-hpux.h (LINK_SPEC): Remove "%<fwhole-program".
14668 * config/pa/pa-hpux10.h (LINK_SPEC): Likewise.
14669 * config/pa/pa-hpux11.h (LINK_SPEC): Likewise.
14670 * gcc.c (set_collect_gcc_options): Don't add -fwhole-program
14671 to COLLECT_GCC_OPTIONS.
14672
14673 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
14674
14675 * collect2.c (target_system_root): New variable.
14676 (main): Handle --sysroot=.
14677 (ignore_library): Strip the sysroot from the library path.
14678
14679 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
14680
14681 * Makefile.in (COLLECT2_OBJS): Add collect2-aix.o.
14682 (collect2.o): Depend on collect2-aix.h.
14683 (collect2-aix.o): New rule.
14684 * collect2-aix.h: New file.
14685 * collect2-aix.c: Likewise.
14686 * collect2.c: Include collect2-aix.h. Don't undefine
14687 OBJECT_FORMAT_COFF if CROSS_AIX_SUPPORT is defined.
14688 Guard native includes with #ifndef CROSS_DIRECTORY_STRUCTURE.
14689 Use TARGET_AIX_VERSION instead of _AIX51.
14690 * config/rs6000/aix43.h (TARGET_AIX_VERSION): Define.
14691 * config/rs6000/aix51.h (TARGET_AIX_VERSION): Likewise.
14692 * config/rs6000/aix52.h (TARGET_AIX_VERSION): Likewise.
14693 * config/rs6000/aix53.h (TARGET_AIX_VERSION): Likewise.
14694 * config/rs6000/aix61.h (TARGET_AIX_VERSION): Likewise.
14695
14696 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
14697
14698 * collect2.c (ignore_library): Avoid premature post-increment
14699 and null deference.
14700
14701 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
14702
14703 * Makefile.in (libgcc.mvars): Add TARGET_SYSTEM_ROOT.
14704 * config/rs6000/aix.h (LINK_SYSCALLS_SPEC): Add %R to the
14705 !CROSS_DIRECTORY_STRUCTURE alternative and use it for
14706 CROSS_DIRECTORY_STRUCTURE too.
14707 (LINK_LIBG_SPEC): Likewise.
14708 (LIB_SPEC): Add %R to sysroot paths.
14709 * config/rs6000/aix43.h (CPP_SPEC): Add %R to sysroot paths.
14710 (CPLUSPLUS_CPP_SPEC, LIB_SPEC): Likewise.
14711 * config/rs6000/aix51.h: As for aix43.h.
14712 * config/rs6000/aix52.h: Likewise.
14713 * config/rs6000/aix53.h: Likewise.
14714 * config/rs6000/aix61.h: Likewise.
14715 * config/rs6000/t-aix52 (SHLIB_LINK): Add $(TARGET_SYSTEM_ROOT)
14716 to the beginning of sysroot paths.
14717
14718 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
14719
14720 * print_rtl (print_rtx): Don't print modes in EXPR_LISTs and
14721 INSN_LISTs that are out of the REG_NOTE range.
14722
14723 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
14724
14725 * loop-unroll.c (struct iv_to_split): Add pointer to next.
14726 (struct var_to_expand): Likewise.
14727 (struct opt_info): Add head and tail for linked lists of the above.
14728 (analyze_insn_to_expand_var): Initialize next.
14729 (analyze_iv_to_split_insn): Likewise.
14730 (analyze_insns_in_loop): Create linked lists.
14731 (allocate_basic_variable): Simplify for use without hash table.
14732 (insert_var_expansion_initialization): Likewise, make it type-safer.
14733 (combine_var_copies_in_loop_exit): Likewise.
14734 (apply_opt_in_copies): Walk lists rather than hash tables.
14735 (release_var_copies): Simplified and inlined by hand into...
14736 (free_opt_info): ... this function.
14737
14738 2009-06-02 Richard Guenther <rguenther@suse.de>
14739
14740 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
14741 for field decls.
14742
14743 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
14744
14745 * cfgexpand.c (gimple_expand_cfg): Discard the source location
14746 only for builtins that are not overridden.
14747
14748 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
14749
14750 * gengtype.c (adjust_field_rtx_def): Add NOTE_INSN_DELETED_LABEL's
14751 label string.
14752
14753 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
14754
14755 * df-core.c (df_ref_debug): Honor -fdump-noaddr.
14756
14757 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
14758
14759 * combine.c (move_deaths): Compare LUIDs within the same BB only.
14760
14761 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
14762
14763 * common.opt (fdump-unnumbered-links): New.
14764 * doc/invoke.texi (-fdump-unnumbered-links): Document it.
14765 * print-rtl.c (flag_dump_unnumbered_links): New.
14766 (print_rtx): Test it.
14767
14768 2009-06-02 Richard Earnshaw <rearnsha@arm.com>
14769
14770 * arm.c (arm_get_frame_offsets): Prefer using r3 for padding a
14771 push/pop multiple to 8-byte alignment.
14772
14773 2009-06-01 Jakub Jelinek <jakub@redhat.com>
14774
14775 * config/i386/i386.c (queued_cfa_restores): New static variable.
14776 (ix86_add_cfa_restore_note, ix86_add_queued_cfa_restore_notes): New
14777 functions.
14778 (pro_epilogue_adjust_stack): Call ix86_add_queued_cfa_restore_notes.
14779 (ix86_emit_restore_reg_using_pop): Add RED_OFFSET argument.
14780 Set RTX_FRAME_RELATED_P immediately after adding a REG_CFA_* note.
14781 Call ix86_add_cfa_restore_note instead of adding REG_CFA_OFFSET
14782 note unconditionally.
14783 (ix86_emit_restore_regs_using_mov): Likewise.
14784 (ix86_emit_restore_sse_regs_using_mov): Likewise.
14785 (ix86_emit_restore_regs_using_pop): Add RED_OFFSET argument, pass
14786 it through to ix86_emit_restore_reg_using_pop.
14787 (ix86_emit_leave): Add RED_OFFSET argument. Call
14788 ix86_add_queued_cfa_restore_notes. Call ix86_add_cfa_restore_note
14789 instead of adding REG_CFA_OFFSET note unconditionally.
14790 (ix86_expand_epilogue): Compute RED_OFFSET, pass it down to
14791 the above functions. Call ix86_add_queued_cfa_restore_notes when
14792 needed.
14793
14794 * dwarf2out.c (dwarf2out_cfi_label): Add FORCE argument, if true,
14795 force output of the label even for dwarf2out_do_cfi_asm.
14796 (add_fde_cfi): If -g2 and above and cfi might change CFA,
14797 force creation of CFI label and chain DW_CFA_set_loc jumping to it
14798 for convert_cfa_to_fb_loc_list. Adjust other dwarf2out_cfi_label
14799 caller.
14800 (dwarf2out_stack_adjust, dwarf2out_frame_debug,
14801 dwarf2out_begin_epilogue, dwarf2out_frame_debug_restore_state): Adjust
14802 dwarf2out_cfi_label callers.
14803 * tree.h (dwarf2out_cfi_label): Adjust prototype.
14804 * config/arm/arm.c (thumb_pushpop, thumb1_output_function_prologue):
14805 Adjust dwarf2out_cfi_label callers.
14806 * config/vax/vax.c (vax_output_function_prologue): Likewise.
14807
14808 * config/i386/i386.h (struct machine_cfa_state,
14809 struct machine_function): Guard with ifndef USED_FOR_TARGET
14810 instead of not IN_LIBGCC2 and not in IN_TARGET_LIBS.
14811
14812 PR other/40024
14813 * emutls.c (__emutls_get_address): Change arr->size to mean number
14814 of allocated arr->data entries instead of # of slots + 1.
14815
14816 PR middle-end/40316
14817 * recog.c (peep2_reinit_state): New function.
14818 (peephole2_init_state): Use it at the end of a basic block and also
14819 when seeing a RTX_FRAME_RELATED_P insn.
14820
14821 2009-06-01 Steve Ellcey <sje@cup.hp.com>
14822
14823 * ia64.md (floatdirf2, fix_truncrfdi, floatunsdirf,
14824 fixuns_truncrfdi2): New.
14825 (fix_truncxfdi2_alts, fixuns_truncxfdi2_alts,
14826 *nmaddsf4_alts, *nmadddf4_alts, *nmadddf4_truncsf_alts,
14827 *mulxf3_alts, *mulxf3_truncsf_alts, *mulxf3_truncdf_alts,
14828 *maddxf4_alts, *maddxf4_alts_truncsf, *maddxf4_alts_truncdf,
14829 *nmaddxf4_alts, *nmaddxf4_truncsf_alts, *nmaddxf4_truncdf_alts,
14830 *recip_approx): Remove.
14831 (divsi3 modsi3, udivsi3, umodsi3, divsi3_internal, divdi3,
14832 moddi3, udivdi3, umoddi3, divdi3_internal_lat, divdi3_internal_thr,
14833 divsf3, sqrtsf2, divdf3, sqrtdf2, divxf3, sqrtxf2): Modify and
14834 move to div.md.
14835 * div.md (fix_truncrfdi2_alts, fixuns_truncrfdi2_alt,
14836 setf_exp_rf): New.
14837
14838 2009-06-01 Ian Lance Taylor <iant@google.com>
14839
14840 * attribs.c (register_attribute): Use CONST_CAST.
14841 * collect2.c (main): Use CONST_CAST2.
14842 (scan_prog_file): Likewise.
14843 * gcc.c (process_command, main): Likewise.
14844 * toplev.c (toplev_main): Likewise.
14845
14846 * c-typeck.c (handle_warn_cast_qual): New static function,
14847 partially broken out of build_c_cast.
14848 (build_c_cast): Call handle_warn_cast_qual.
14849 * doc/invoke.texi (Warning Options): Document new effect of
14850 -Wcast-qual.
14851
14852 2009-06-01 Aldy Hernandez <aldyh@redhat.com>
14853
14854 * diagnostic.c (diagnostic_build_prefix): Always print columns.
14855 (diagnostic_report_current_module): Print columns.
14856 * common.opt (flag_show_column): Enable by default.
14857
14858 2009-06-01 Luis Machado <luisgpm@br.ibm.com>
14859
14860 * alias.c (find_base_term): Check for NULL term before returning.
14861
14862 2009-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
14863
14864 Revert due to PR40320:
14865 2009-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
14866 * calls.c (emit_library_call_value_1): Don't force_operand for move
14867 and push insns.
14868
14869 2009-06-01 Olivier Hainque <hainque@adacore.com>
14870 Eric Botcazou <ebotcazou@adacore.com>
14871
14872 * tree.h (CONSTRUCTOR_BITFIELD_P): True if NODE, a FIELD_DECL, is
14873 to be processed as a bitfield for constructor output purposes.
14874 * output.h (initializer_constant_valid_for_bitfield_p): Declare
14875 new function.
14876 * varasm.c (oc_local_state): New type, output_constructor
14877 local state to support communication with helpers.
14878 (oc_outer_state): New type, output_constructor outer state of
14879 relevance in recursive calls.
14880 (output_constructor_array_range): New output_constructor helper,
14881 extracted code for an array range element.
14882 (output_constructor_regular_field): New output_constructor helper,
14883 extracted code for an element that is not a bitfield.
14884 (output_constructor_bitfield): New output_constructor helper,
14885 extracted code for a bitfield element. Accept an OUTER state
14886 argument for recursive processing. Recurse on record or array
14887 CONSTRUCTOR values, possibly past noop conversions.
14888 (initializer_constant_valid_for_bitfield_p): New predicate. Whether
14889 VALUE is a valid constant-valued expression for use in a static
14890 bit-field initializer.
14891 (output_constructor): Rework to use helpers. Accept and honor an
14892 OUTER state argument for recursive calls. Return total size. Be
14893 prepared for nested constructors initializing bitfields.
14894 (output_constant): Feed OUTER in calls to output_constructor.
14895
14896 2009-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
14897
14898 * calls.c (emit_library_call_value_1): Don't force_operand for move
14899 and push insns.
14900
14901 2009-06-01 Nick Clifton <nickc@redhat.com>
14902
14903 * doc/invoke.texi (IA-64 Options): Fix typo.
14904
14905 2009-06-01 Ira Rosen <irar@il.ibm.com>
14906
14907 PR tree-optimization/39129
14908 * tree-vect-loop-manip.c (conservative_cost_threshold): Change the
14909 printed message.
14910 (vect_do_peeling_for_loop_bound): Use
14911 LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
14912 LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
14913 (vect_loop_versioning): Likewise.
14914 (vect_create_cond_for_alias_checks): Fix indentation.
14915 * tree-vectorizer.h (struct _loop_vec_info): Fix indentation of the
14916 macros.
14917 (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT): Define.
14918 (LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Likewise.
14919 * tree-vect-loop.c (vect_analyze_loop_form): Change "too many BBs" to
14920 "control flow in loop".
14921 (vect_estimate_min_profitable_iters): Use
14922 LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
14923 LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
14924 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
14925 (vect_create_data_ref_ptr): Don't mention array dimension in printing.
14926 * tree-vect-stmts.c (vectorizable_store): Replace the check that the
14927 statement belongs to a group of strided accesses with the exact code
14928 check.
14929 (vectorizable_load): Likewise.
14930 * tree-vect-slp.c (vect_analyze_slp_instance): Spell out "basic block".
14931 (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
14932
14933 2009-06-01 Gerald Pfeifer <gerald@pfeifer.com>
14934
14935 * config/freebsd-stdint.h: New file.
14936 * config.gcc (*-*-freebsd): Set use_gcc_stdint=wrap.
14937 Add freebsd-stdint.h to tm_file.
14938
14939 2009-06-01 Richard Earnshaw <rearnsha@arm.com>
14940
14941 * arm/thumb2.md (thumb2_zero_extendhidi2): New insn and split.
14942 (thumb2_extendhidi2): Likewise.
14943
14944 2009-05-31 Ian Lance Taylor <iant@google.com>
14945
14946 * regstat.c (regstat_n_sets_and_refs): Remove duplicate definition.
14947
14948 2009-05-31 Ian Lance Taylor <iant@google.com>
14949
14950 * Makefile.in (except.o): Depend upon gt-except.h, not gt-$(EXCEPT_H).
14951 (ipa-cp.o): Depend upon $(FIBHEAP_H) and $(PARAMS_H).
14952 (ipa-reference.o): Depend upon gt-ipa-reference.h.
14953
14954 2009-05-31 Jason Merrill <jason@redhat.com>
14955
14956 * tree-pretty-print.c (print_call_name): Take the callee, not the
14957 call itself. Make non-static. Use dump_function_name for functions.
14958 (dump_generic_node): Adjust.
14959 * diagnostic.h: Declare print_call_name.
14960 * gimple-pretty-print.c (dump_gimple_call): Use it.
14961
14962 2009-05-31 Kaz Kojima <kkojima@gcc.gnu.org>
14963
14964 * config/sh/sh.md (ashldi3_std): New define_expand.
14965 (ashldi3): Use it.
14966
14967 2009-05-31 Kaz Kojima <kkojima@gcc.gnu.org>
14968
14969 PR target/40313
14970 * config/sh/sh.c: Include debug.h.
14971 (sh_expand_epilogue): Emit a blockage insn before the frame
14972 pointer adjustment also when dwarf2out_do_frame returns true.
14973
14974 2009-05-31 Richard Earnshaw <rearnsha@arm.com>
14975
14976 * arm/thumb2.md (thumb2_extendsidi2): Add a split sub-pattern.
14977 (thumb2_extendqidi2): New pattern.
14978
14979 2009-05-31 Ira Rosen <irar@il.ibm.com>
14980
14981 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
14982 mark phis for renaming.
14983 * tree-vectorizer.c (vect_memsyms_to_rename): Remove.
14984 (vectorize_loops): Don't allocate and free vect_memsyms_to_rename.
14985 Call mark_sym_for_renaming.
14986 * tree-vectorizer.h (vect_memsyms_to_rename): Remove.
14987 * tree-vect-loop.c (vect_transform_loop): Remove
14988 vect_memsyms_to_rename initialization and a call to
14989 mark_set_for_renaming.
14990
14991 2009-05-31 Jakub Jelinek <jakub@redhat.com>
14992
14993 PR middle-end/40304
14994 * config/i386/i386.c (pro_epilogue_adjust_stack): Mark insns
14995 frame related even if !set_cfa && style < 0.
14996
14997 2009-05-30 Kai Tietz <kai.tietz@onevision.com>
14998
14999 * config/i386/mingw-tls.c: New file.
15000 * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Add mingw-tls.c file.
15001 * gthr-win32.h (MINGW32_SUPPORTS_MT_EH): Define it for targets
15002 defining _WIN32 but not __CYGWIN__.
15003
15004 2009-05-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15005
15006 * configure.ac: Add MPC support.
15007
15008 * config.in, configure: Regenerate.
15009
15010 2009-05-29 Richard Henderson <rth@redhat.com>
15011
15012 * cfgcleanup.c (try_crossjump_to_edge): Only skip past
15013 NOTE_INSN_BASIC_BLOCK.
15014 * cfglayout.c (duplicate_insn_chain): Copy epilogue insn marks.
15015 Duplicate NOTE_INSN_EPILOGUE_BEG notes.
15016 * cfgrtl.c (can_delete_note_p): Allow NOTE_INSN_EPILOGUE_BEG
15017 to be deleted.
15018 * dwarf2out.c (struct cfa_loc): Change indirect field to bitfield,
15019 add in_use field.
15020 (add_cfi): Disable check redefining cfa away from drap.
15021 (lookup_cfa_1): Add remember argument; handle remember/restore.
15022 (lookup_cfa): Pass remember argument.
15023 (cfa_remember): New.
15024 (compute_barrier_args_size_1): Remove sibcall check.
15025 (dwarf2out_frame_debug_def_cfa): New.
15026 (dwarf2out_frame_debug_adjust_cfa): New.
15027 (dwarf2out_frame_debug_cfa_offset): New.
15028 (dwarf2out_frame_debug_cfa_register): New.
15029 (dwarf2out_frame_debug_cfa_restore): New.
15030 (dwarf2out_frame_debug): Handle REG_CFA_* notes.
15031 (dwarf2out_begin_epilogue): New.
15032 (dwarf2out_frame_debug_restore_state): New.
15033 (dw_cfi_oprnd1_desc): Handle DW_CFA_remember_state,
15034 DW_CFA_restore_state.
15035 (output_cfi_directive): Likewise.
15036 (convert_cfa_to_fb_loc_list): Likewise.
15037 (dw_cfi_oprnd1_desc): Handle DW_CFA_restore.
15038 * dwarf2out.h: Update.
15039 * emit-rtl.c (try_split): Don't split RTX_FRAME_RELATED_P.
15040 (copy_insn_1): Early out for null.
15041 * final.c (final_scan_insn): Call dwarf2out_begin_epilogue
15042 and dwarf2out_frame_debug_restore_state.
15043 * function.c (prologue, epilogue, sibcall_epilogue): Remove.
15044 (prologue_insn_hash, epilogue_insn_hash): New.
15045 (free_after_compilation): Adjust freeing accordingly.
15046 (record_insns): Create hash table if needed; push insns into
15047 hash instead of array.
15048 (maybe_copy_epilogue_insn): New.
15049 (contains): Search hash table instead of array.
15050 (sibcall_epilogue_contains): Remove.
15051 (thread_prologue_and_epilogue_insns): Split eh_return insns
15052 and mark them as epilogues.
15053 (reposition_prologue_and_epilogue_notes): Rewrite epilogue
15054 scanning in terms of basic blocks.
15055 * insn-notes.def (CFA_RESTORE_STATE): New.
15056 * jump.c (returnjump_p_1): Accept EH_RETURN.
15057 (eh_returnjump_p_1, eh_returnjump_p): New.
15058 * reg-notes.def (CFA_DEF_CFA, CFA_ADJUST_CFA, CFA_OFFSET,
15059 CFA_REGISTER, CFA_RESTORE): New.
15060 * rtl.def (EH_RETURN): New.
15061 * rtl.h (eh_returnjump_p, maybe_copy_epilogue_insn): Declare.
15062
15063 * config/bfin/bfin.md (UNSPEC_VOLATILE_EH_RETURN): Remove.
15064 (eh_return_internal): Use eh_return rtx; split w/ epilogue.
15065
15066 * config/i386/i386.c (gen_push): Update cfa state.
15067 (pro_epilogue_adjust_stack): Add set_cfa argument. When true,
15068 add a CFA_ADJUST_CFA note.
15069 (ix86_dwarf_handle_frame_unspec): Remove.
15070 (ix86_expand_prologue): Update cfa state.
15071 (ix86_emit_restore_reg_using_pop): New.
15072 (ix86_emit_restore_regs_using_pop): New.
15073 (ix86_emit_leave): New.
15074 (ix86_emit_restore_regs_using_mov): Add CFA_RESTORE notes.
15075 (ix86_expand_epilogue): Add notes for unwinding the epilogue.
15076 * config/i386/i386.h (struct machine_cfa_state): New.
15077 (ix86_cfa_state): New.
15078 * config/i386/i386.md (UNSPEC_EH_RETURN): Remove.
15079 (eh_return_internal): Merge from eh_return_<mode>,
15080 use eh_return rtx, split w/ epilogue.
15081
15082 2009-05-29 Ian Lance Taylor <iant@google.com>
15083
15084 * builtins.c (validate_gimple_arglist): Don't use va_arg with
15085 enum type.
15086 * calls.c (emit_library_call_value_1): Likewise.
15087
15088 * c-typeck.c (c_build_va_arg): New function.
15089 * c-tree.h (c_build_va_arg): Declare.
15090 * c-parser.c (c_parser_postfix_expression): Call c_build_va_arg
15091 instead of build_va_arg.
15092
15093 2009-05-29 Eric Botcazou <ebotcazou@adacore.com>
15094
15095 * tree-ssa-loop-ivopts.c (strip_offset_1) <MULT_EXPR>: New case.
15096 (force_expr_to_var_cost) <NEGATE_EXPR>: Likewise.
15097 (ptr_difference_cost): Use affine combinations to compute it.
15098 (difference_cost): Likewise.
15099 (get_computation_cost_at): Compute more accurate cost for addresses
15100 if the ratio is a multiplier allowed in addresses.
15101 For non-addresses, consider that an additional offset or symbol is
15102 added only once.
15103
15104 2009-05-29 Jakub Jelinek <jakub@redhat.com>
15105
15106 * config/i386/i386.c (ix86_decompose_address): Avoid useless
15107 0 displacement. Add 0 displacement if base is %[er]bp or %r13.
15108
15109 * config/i386/i386.md (prefix_data16, prefix_rep): Set to 0 for
15110 TYPE_SSE{MULADD,4ARG,IADD1,CVT1} by default.
15111 (prefix_rex): For UNIT_MMX don't imply the prefix by default
15112 if MODE_DI.
15113 (prefix_extra): Default to 2 for TYPE_SSE{MULADD,4ARG} and
15114 to 1 for TYPE_SSE{IADD1,CVT1}.
15115 (prefix_vex_imm8): Removed.
15116 (length_vex): Only pass 1 as second argument to
15117 ix86_attr_length_vex_default if prefix_extra is 0.
15118 (modrm): For TYPE_INCDEC only set to 0 if not TARGET_64BIT.
15119 (length): For prefix vex computation use length_immediate
15120 attribute instead of prefix_vex_imm8.
15121 (cmpqi_ext_3_insn, cmpqi_ext_3_insn_rex64,
15122 addqi_ext_1, addqi_ext_1_rex64, *testqi_ext_0, andqi_ext_0,
15123 *andqi_ext_0_cc, *iorqi_ext_0, *xorqi_ext_0, *xorqi_cc_ext_1,
15124 *xorqi_cc_ext_1_rex64): Override modrm attribute to 1.
15125 (extendsidi2_rex64, extendhidi2, extendqidi2, extendhisi2,
15126 *extendhisi2_zext, extendqihi2, extendqisi2, *extendqisi2_zext): Emit
15127 a space in between the operands.
15128 (*anddi_1_rex64, *andsi_1): Likewise. Override prefix_rex to 1
15129 if one operand is 0xff and the other one si, di, bp or sp.
15130 (*andhi_1): Override prefix_rex to 1 if one operand is 0xff and the
15131 other one si, di, bp or sp.
15132 (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Add mode attribute.
15133 (*ffssi_1, *ffsdi_1, ctzsi2, ctzdi2): Add
15134 type and mode attributes.
15135 (*bsr, *bsr_rex64, *bsrhi): Add type attribute.
15136 (*cmpfp_i_mixed, *cmpfp_iu_mixed): For TYPE_SSECOMI, clear
15137 prefix_rep attribute and set prefix_data16 attribute iff MODE_DF.
15138 (*cmpfp_i_sse, *cmpfp_iu_sse): Clear prefix_rep attribute and set
15139 prefix_data16 attribute iff MODE_DF.
15140 (*movsi_1): For TYPE_SSEMOV MODE_SI set prefix_data16 attribute.
15141 (fix_trunc<mode>di_sse): Set prefix_rex attribute.
15142 (*adddi_4_rex64, *addsi_4): Use const128_operand instead of
15143 constm128_operand in length_immediate computation.
15144 (*addhi_4): Likewise. Fix mode attribute to MODE_HI.
15145 (anddi_1_rex64): Use movzbl/movzwl instead of movzbq/movzwq.
15146 (*avx_ashlti3, sse2_ashlti3, *avx_lshrti3, sse2_lshrti3): Set
15147 length_immediate attribute to 1.
15148 (x86_fnstsw_1, x86_fnstcw_1, x86_fldcw_1): Fix length attribute.
15149 (*movdi_1_rex64): Override prefix_rex or prefix_data16 attributes
15150 for certain alternatives.
15151 (*movdf_nointeger, *movdf_integer_rex64, *movdf_integer): Override
15152 prefix_data16 attribute if MODE_V1DF.
15153 (*avx_setcc<mode>, *sse_setcc<mode>, *sse5_setcc<mode>): Set
15154 length_immediate to 1.
15155 (set_got_rex64, set_rip_rex64): Remove length attribute, set
15156 length_address to 4, set mode attribute to MODE_DI.
15157 (set_got_offset_rex64): Likewise. Set length_immediate to 0.
15158 (fxam<mode>2_i387): Set length attribute to 4.
15159 (*prefetch_sse, *prefetch_sse_rex, *prefetch_3dnow,
15160 *prefetch_3dnow_rex): Override length_address attribute.
15161 (sse4_2_crc32<mode>): Override prefix_data16 and prefix_rex
15162 attributes.
15163 * config/i386/predicates.md (ext_QIreg_nomode_operand): New predicate.
15164 (constm128_operand): Removed.
15165 * config/i386/i386.c (memory_address_length): For
15166 disp && !index && !base in 64-bit mode account for SIB byte if
15167 print_operand_address can't optimize disp32 into disp32(%rip)
15168 and UNSPEC doesn't imply (%rip) addressing. Add 1 to length
15169 for fs: or gs: segment.
15170 (ix86_attr_length_immediate_default): When checking if shortform
15171 is possible, truncate immediate to the length of the non-shortened
15172 immediate.
15173 (ix86_attr_length_address_default): Ignore MEM_P operands
15174 with X constraint.
15175 (ix86_attr_length_vex_default): Only check for DImode on
15176 GENERAL_REG_P operands.
15177 * config/i386/sse.md (<sse>_comi, <sse>_ucomi): Clear
15178 prefix_rep attribute, set prefix_data16 attribute iff MODE_DF.
15179 (sse_cvttps2pi): Clear prefix_rep attribute.
15180 (sse2_cvttps2dq, *sse2_cvtpd2dq, sse2_cvtps2pd): Clear prefix_data16
15181 attribute.
15182 (*sse2_cvttpd2dq): Don't clear prefix_rep attribute.
15183 (*avx_ashr<mode>3, ashr<mode>3, *avx_lshr<mode>3, lshr<mode>3,
15184 *avx_ashl<mode>3, ashl<mode>3): Set length_immediate attribute to 1
15185 iff operand 2 is const_int_operand.
15186 (*vec_dupv4si, avx_shufpd256_1, *avx_shufpd_<mode>,
15187 sse2_shufpd_<mode>): Set length_immediate attribute to 1.
15188 (sse2_pshufd_1): Likewise. Set prefix attribute to maybe_vex
15189 instead of vex.
15190 (sse2_pshuflw_1, sse2_pshufhw_1): Set length_immediate to 1 and clear
15191 prefix_data16.
15192 (sse2_unpckhpd, sse2_unpcklpd, sse2_storehpd, *vec_concatv2df): Set
15193 prefix_data16 attribute for movlpd and movhpd instructions.
15194 (sse2_loadhpd, sse2_loadlpd, sse2_movsd): Likewise. Override
15195 length_immediate for shufpd instruction.
15196 (sse2_movntsi, sse3_lddqu): Clear prefix_data16 attribute.
15197 (avx_cmpp<avxmodesuffixf2c><mode>3,
15198 avx_cmps<ssemodesuffixf2c><mode>3, *avx_maskcmp<mode>3,
15199 <sse>_maskcmp<mode>3, <sse>_vmmaskcmp<mode>3,
15200 avx_shufps256_1, *avx_shufps_<mode>, sse_shufps_<mode>,
15201 *vec_dupv4sf_avx, *vec_dupv4sf): Set length_immediate attribute to 1.
15202 (*avx_cvtsi2ssq, *avx_cvtsi2sdq): Set length_vex attribute to 4.
15203 (sse_cvtsi2ssq, sse2_cvtsi2sdq): Set prefix_rex attribute to 1.
15204 (sse2_cvtpi2pd, sse_loadlps, sse2_storelpd): Override
15205 prefix_data16 attribute for the first alternative to 1.
15206 (*avx_loadlps): Override length_immediate for the first alternative.
15207 (*vec_concatv2sf_avx): Override length_immediate and prefix_extra
15208 attributes for second alternative.
15209 (*vec_concatv2sf_sse4_1): Override length_immediate and
15210 prefix_data16 attributes for second alternative.
15211 (*vec_setv4sf_avx, *avx_insertps, vec_extract_lo_<mode>,
15212 vec_extract_hi_<mode>, vec_extract_lo_v16hi,
15213 vec_extract_hi_v16hi, vec_extract_lo_v32qi,
15214 vec_extract_hi_v32qi): Set prefix_extra and length_immediate to 1.
15215 (*vec_setv4sf_sse4_1, sse4_1_insertps, *sse4_1_extractps): Set
15216 prefix_data16 and length_immediate to 1.
15217 (*avx_mulv2siv2di3, *avx_mulv4si3, sse4_2_gtv2di3): Set prefix_extra
15218 to 1.
15219 (*avx_<code><mode>3, *avx_eq<mode>3, *avx_gt<mode>3): Set
15220 prefix_extra attribute for variants that don't have 0f prefix alone.
15221 (*avx_pinsr<ssevecsize>): Likewise. Set length_immediate to 1.
15222 (*sse4_1_pinsrb, *sse2_pinsrw, *sse4_1_pinsrd, *sse4_1_pextrb,
15223 *sse4_1_pextrb_memory, *sse2_pextrw, *sse4_1_pextrw_memory,
15224 *sse4_1_pextrd): Set length_immediate to 1.
15225 (*sse4_1_pinsrd): Likewise. Set prefix_extra to 1.
15226 (*sse4_1_pinsrq, *sse4_1_pextrq): Set prefix_rex and length_immediate
15227 to 1.
15228 (*vec_extractv2di_1_rex64_avx, *vec_extractv2di_1_rex64,
15229 *vec_extractv2di_1_avx, *vec_extractv2di_1_sse2): Override
15230 length_immediate to 1 for second alternative.
15231 (*vec_concatv2si_avx, *vec_concatv2di_rex64_avx): Override
15232 prefix_extra and length_immediate attributes for the first
15233 alternative.
15234 (vec_concatv2si_sse4_1): Override length_immediate to 1 for the
15235 first alternative.
15236 (*vec_concatv2di_rex64_sse4_1): Likewise. Override prefix_rex
15237 to 1 for the first and third alternative.
15238 (*vec_concatv2di_rex64_sse): Override prefix_rex to 1 for the second
15239 alternative.
15240 (*sse2_maskmovdqu, *sse2_maskmovdqu_rex64): Override length_vex
15241 attribute.
15242 (*sse_sfence, sse2_mfence, sse2_lfence): Override length_address
15243 attribute to 0.
15244 (*avx_phaddwv8hi3, *avx_phadddv4si3, *avx_phaddswv8hi3,
15245 *avx_phsubwv8hi3, *avx_phsubdv4si3, *avx_phsubswv8hi,
15246 *avx_pmaddubsw128, *avx_pmulhrswv8hi3, *avx_pshufbv16qi3,
15247 *avx_psign<mode>3): Set prefix_extra attribute to 1.
15248 (ssse3_phaddwv4hi3, ssse3_phadddv2si3, ssse3_phaddswv4hi3,
15249 ssse3_phsubwv4hi3, ssse3_phsubdv2si3, ssse3_phsubswv4hi3,
15250 ssse3_pmaddubsw, *ssse3_pmulhrswv4hi, ssse3_pshufbv8qi3,
15251 ssse3_psign<mode>3): Override prefix_rex attribute.
15252 (*avx_palignrti): Override prefix_extra and length_immediate to 1.
15253 (ssse3_palignrti): Override length_immediate to 1.
15254 (ssse3_palignrdi): Override length_immediate to 1, override
15255 prefix_rex attribute.
15256 (abs<mode>2): Override prefix_rep to 0, override prefix_rex attribute.
15257 (sse4a_extrqi): Override length_immediate to 2.
15258 (sse4a_insertqi): Likewise. Override prefix_data16 to 0.
15259 (sse4a_insertq): Override prefix_data16 to 0.
15260 (avx_blendp<avxmodesuffixf2c><avxmodesuffix>,
15261 avx_blendvp<avxmodesuffixf2c><avxmodesuffix>,
15262 avx_dpp<avxmodesuffixf2c><avxmodesuffix>, *avx_mpsadbw,
15263 *avx_pblendvb, *avx_pblendw, avx_roundp<avxmodesuffixf2c>256,
15264 avx_rounds<avxmodesuffixf2c>256): Override prefix_extra
15265 and length_immediate to 1.
15266 (sse4_1_blendp<ssemodesuffixf2c>, sse4_1_dpp<ssemodesuffixf2c>,
15267 sse4_2_pcmpestr, sse4_2_pcmpestri, sse4_2_pcmpestrm,
15268 sse4_2_pcmpestr_cconly, sse4_2_pcmpistr, sse4_2_pcmpistri,
15269 sse4_2_pcmpistrm, sse4_2_pcmpistr_cconly): Override prefix_data16
15270 and length_immediate to 1.
15271 (sse4_1_blendvp<ssemodesuffixf2c>): Override prefix_data16 to 1.
15272 (sse4_1_mpsadbw, sse4_1_pblendw): Override length_immediate to 1.
15273 (*avx_packusdw, avx_vtestp<avxmodesuffixf2c><avxmodesuffix>,
15274 avx_ptest256): Override prefix_extra to 1.
15275 (sse4_1_roundp<ssemodesuffixf2c>, sse4_1_rounds<ssemodesuffixf2c>):
15276 Override prefix_data16 and length_immediate to 1.
15277 (sse5_pperm_zero_v16qi_v8hi, sse5_pperm_sign_v16qi_v8hi,
15278 sse5_pperm_zero_v8hi_v4si, sse5_pperm_sign_v8hi_v4si,
15279 sse5_pperm_zero_v4si_v2di, sse5_pperm_sign_v4si_v2di,
15280 sse5_vrotl<mode>3, sse5_ashl<mode>3, sse5_lshl<mode>3): Override
15281 prefix_data16 to 0 and prefix_extra to 2.
15282 (sse5_rotl<mode>3, sse5_rotr<mode>3): Override length_immediate to 1.
15283 (sse5_frcz<mode>2, sse5_vmfrcz<mode>2): Don't override prefix_extra
15284 attribute.
15285 (*sse5_vmmaskcmp<mode>3, sse5_com_tf<mode>3,
15286 sse5_maskcmp<mode>3, sse5_maskcmp<mode>3, sse5_maskcmp_uns<mode>3):
15287 Override prefix_data16 and prefix_rep to 0, length_immediate to 1
15288 and prefix_extra to 2.
15289 (sse5_maskcmp_uns2<mode>3, sse5_pcom_tf<mode>3): Override
15290 prefix_data16 to 0, length_immediate to 1 and prefix_extra to 2.
15291 (*avx_aesenc, *avx_aesenclast, *avx_aesdec, *avx_aesdeclast,
15292 avx_vpermilvar<mode>3,
15293 avx_vbroadcasts<avxmodesuffixf2c><avxmodesuffix>,
15294 avx_vbroadcastss256, avx_vbroadcastf128_p<avxmodesuffixf2c>256,
15295 avx_maskloadp<avxmodesuffixf2c><avxmodesuffix>,
15296 avx_maskstorep<avxmodesuffixf2c><avxmodesuffix>):
15297 Override prefix_extra to 1.
15298 (aeskeygenassist, pclmulqdq): Override length_immediate to 1.
15299 (*vpclmulqdq, avx_vpermil<mode>, avx_vperm2f128<mode>3,
15300 vec_set_lo_<mode>, vec_set_hi_<mode>, vec_set_lo_v16hi,
15301 vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Override
15302 prefix_extra and length_immediate to 1.
15303 (*avx_vzeroall, avx_vzeroupper, avx_vzeroupper_rex64): Override
15304 modrm to 0.
15305 (*vec_concat<mode>_avx): Override prefix_extra and length_immediate
15306 to 1 for the first alternative.
15307 * config/i386/mmx.md (*mov<mode>_internal_rex64): Override
15308 prefix_rep, prefix_data16 and/or prefix_rex attributes in certain
15309 cases.
15310 (*mov<mode>_internal_avx, *movv2sf_internal_rex64,
15311 *movv2sf_internal_avx, *movv2sf_internal): Override
15312 prefix_rep attribute for certain alternatives.
15313 (*mov<mode>_internal): Override prefix_rep or prefix_data16
15314 attributes for certain alternatives.
15315 (*movv2sf_internal_rex64_avx): Override prefix_rep and length_vex
15316 attributes for certain alternatives.
15317 (*mmx_addv2sf3, *mmx_subv2sf3, *mmx_mulv2sf3,
15318 *mmx_<code>v2sf3_finite, *mmx_<code>v2sf3, mmx_rcpv2sf2,
15319 mmx_rcpit1v2sf3, mmx_rcpit2v2sf3, mmx_rsqrtv2sf2, mmx_rsqit1v2sf3,
15320 mmx_haddv2sf3, mmx_hsubv2sf3, mmx_addsubv2sf3,
15321 *mmx_eqv2sf3, mmx_gtv2sf3, mmx_gev2sf3, mmx_pf2id, mmx_pf2iw,
15322 mmx_pi2fw, mmx_floatv2si2, mmx_pswapdv2sf2, *mmx_pmulhrwv4hi3,
15323 mmx_pswapdv2si2): Set prefix_extra attribute to 1.
15324 (mmx_ashr<mode>3, mmx_lshr<mode>3, mmx_ashl<mode>3): Set
15325 length_immediate to 1 if operand 2 is const_int_operand.
15326 (*mmx_pinsrw, mmx_pextrw, mmx_pshufw_1, *vec_dupv4hi,
15327 *vec_extractv2si_1): Set length_immediate attribute to 1.
15328 (*mmx_uavgv8qi3): Override prefix_extra attribute to 1 if
15329 using old 3DNOW insn rather than SSE/3DNOW_A.
15330 (mmx_emms, mmx_femms): Clear modrm attribute.
15331
15332 2009-05-29 Martin Jambor <mjambor@suse.cz>
15333
15334 * tree-sra.c: New implementation of SRA.
15335
15336 * params.def (PARAM_SRA_MAX_STRUCTURE_SIZE): Removed.
15337 (PARAM_SRA_MAX_STRUCTURE_COUNT): Removed.
15338 (PARAM_SRA_FIELD_STRUCTURE_RATIO): Removed.
15339 * params.h (SRA_MAX_STRUCTURE_SIZE): Removed.
15340 (SRA_MAX_STRUCTURE_COUNT): Removed.
15341 (SRA_FIELD_STRUCTURE_RATIO): Removed.
15342 * doc/invoke.texi (sra-max-structure-size): Removed.
15343 (sra-field-structure-ratio): Removed.
15344
15345 2009-05-29 Jakub Jelinek <jakub@redhat.com>
15346
15347 PR middle-end/40291
15348 * builtins.c (expand_builtin_memcmp): Convert len to sizetype
15349 before expansion.
15350
15351 2009-05-29 Andrey Belevantsev <abel@ispras.ru>
15352
15353 PR rtl-optimization/40101
15354 * sel-sched-ir.c (get_seqno_by_preds): Allow returning negative
15355 seqno. Adjust comment.
15356 * sel-sched.c (find_seqno_for_bookkeeping): Assert that when
15357 inserting bookkeeping before a jump, the jump is not scheduled.
15358 When no positive seqno found, provide a value. Add comment.
15359
15360 2009-05-29 Richard Guenther <rguenther@suse.de>
15361
15362 * tree-ssa-alias.c (nonaliasing_component_refs_p): Remove
15363 short-cutting on the first component.
15364
15365 2009-05-29 Jakub Jelinek <jakub@redhat.com>
15366
15367 PR middle-end/39958
15368 * omp-low.c (scan_omp_1_op): Call remap_type on TREE_TYPE
15369 for trees other than decls/types.
15370
15371 2009-05-29 Richard Guenther <rguenther@suse.de>
15372
15373 * tree-ssa-operands.c (get_expr_operands): Do not handle
15374 INDIRECT_REFs in the handled-component case. Remove
15375 unused get_ref_base_and_extent case.
15376 * tree-dfa.c (get_ref_base_and_extent): Avoid calling
15377 tree_low_cst and host_integerp where possible.
15378 * tree-ssa-structalias.c (equiv_class_label_eq): Check hash
15379 codes for equivalence.
15380 * dce.c (find_call_stack_args): Avoid redundant bitmap queries.
15381
15382 2009-05-29 David Billinghurst <billingd@gcc.gnu.org>
15383
15384 * config.gcc: Add i386/t-fprules-softfp and soft-fp/t-softfp
15385 to tmake_file for i[34567]86-*-cygwin*.
15386
15387 2009-05-29 Jakub Jelinek <jakub@redhat.com>
15388
15389 PR target/40017
15390 * config/rs6000/rs6000-c.c (_Bool_keyword): New variable.
15391 (altivec_categorize_keyword, init_vector_keywords,
15392 rs6000_cpu_cpp_builtins): Define _Bool as conditional macro
15393 similar to bool.
15394
15395 2009-05-29 Kai Tietz <kai.tietz@onevision.com>
15396
15397 * tree.c (handle_dll_attribute): Check if node is
15398 of kind FUNCTION_DECL for DECL_DECLARED_INLINE_P check.
15399
15400 2009-05-29 Richard Earnshaw <rearnsha@arm.com>
15401
15402 * config/arm/thumb2.md (thumb2_zero_extendsidi2): Add a split
15403 component.
15404 (thumb2_zero_extendqidi2): Likewise.
15405
15406 2009-05-28 Kaz Kojima <kkojima@gcc.gnu.org>
15407
15408 * config/sh/sh.c (sh_expand_t_scc): Use gen_xorsi3_movrt
15409 instead of gen_movrt.
15410 * config/sh/sh.md (movrt): Remove.
15411
15412 2009-05-28 Steve Ellcey <sje@cup.hp.com>
15413
15414 * doc/invoke.texi (IA-64 Options):
15415 Add -msdata, -mfused-madd, -mno-inline-float-divide,
15416 -mno-inline-int-divide, -mno-inline-sqrt, -msched-spec-ldc,
15417 -msched-spec-control-ldc, -msched-prefer-non-data-spec-insns,
15418 -msched-prefer-non-control-spec-insns,
15419 -msched-stop-bits-after-every-cycle,
15420 -msched-count-spec-in-critical-path,
15421 -msel-sched-dont-check-control-spec, -msched-fp-mem-deps-zero-cost
15422 -msched-max-memory-insns-hard-limit, -msched-max-memory-insns.
15423 Remove -mt, -pthread, -msched-ldc, -mno-sched-control-ldc,
15424 and -msched-spec-verbose.
15425
15426 2009-05-28 Joseph Myers <joseph@codesourcery.com>
15427
15428 * config/arm/lib1funcs.asm (__clear_cache): Define if L_clear_cache.
15429 * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Define to give an
15430 error if used.
15431 * config/arm/t-linux-eabi (LIB1ASMFUNCS): Add _clear_cache.
15432
15433 2009-05-28 Richard Guenther <rguenther@suse.de>
15434
15435 * tree-ssa-alias.c (ao_ref_init): New function.
15436 (ao_ref_base): Likewise.
15437 (ao_ref_base_alias_set): Likewise.
15438 (ao_ref_alias_set): Likewise.
15439 (refs_may_alias_p_1): Change signature.
15440 (refs_may_alias_p): Adjust.
15441 (refs_anti_dependent_p): Likewise.
15442 (refs_output_dependent_p): Likewise.
15443 (call_may_clobber_ref_p_1): Change signature.
15444 (call_may_clobber_ref_p): Adjust.
15445 (stmt_may_clobber_ref_p_1): New function split out from ...
15446 (stmt_may_clobber_ref_p): ... here.
15447 (maybe_skip_until): Adjust signature.
15448 (get_continuation_for_phi): Likewise.
15449 (walk_non_aliased_vuses): Likewise.
15450 * tree-ssa-alias.h (struct ao_ref_s): New structure type.
15451 (ao_ref_init): Declare.
15452 (ao_ref_base): Likewise.
15453 (ao_ref_alias_set): Likewise.
15454 (stmt_may_clobber_ref_p_1): Likewise.
15455 (walk_non_aliased_vuses): Adjust.
15456 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): New function.
15457 (get_ref_from_reference_ops): remove.
15458 (vn_reference_lookup_2): Adjust signature.
15459 (vn_reference_lookup_3): Do not re-build trees. Handle unions.
15460 (vn_reference_lookup_pieces): Adjust signature, do not re-build trees.
15461 (vn_reference_lookup): Adjust.
15462 (vn_reference_insert): Likewise.
15463 (vn_reference_insert_pieces): Adjust signature.
15464 (visit_reference_op_call): Adjust.
15465 * tree-ssa-pre.c (get_expr_type): Simplify.
15466 (phi_translate_1): Adjust.
15467 (compute_avail): Likewise.
15468 (translate_vuse_through_block): Do not re-build trees.
15469 (value_dies_in_block_x): Likewise.
15470 * tree-ssa-sccvn.h (struct vn_reference_s): Add type and alias-set
15471 fields.
15472 (vn_reference_lookup_pieces): Adjust declaration.
15473 (vn_reference_insert_pieces): Likewise.
15474
15475 2009-05-28 Benjamin Kosnik <bkoz@redhat.com>
15476
15477 * tree-ssa-copy.c (replace_exp_1): Move op for warning-free use
15478 with checking disabled.
15479
15480 2009-05-28 Dave Korn <dave.korn.cygwin@gmail.com>
15481
15482 PR target/37216
15483
15484 * configure.ac (HAVE_GAS_ALIGNED_COMM): Add autoconf test and
15485 macro definition for support of three-operand format aligned
15486 .comm directive in assembler on cygwin/pe/mingw target OS.
15487 * configure: Regenerate.
15488 * config.h: Regenerate.
15489
15490 * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Use
15491 aligned form of .comm directive if -mpe-aligned-commons is in effect.
15492 * config/i386/cygming.opt (-mpe-aligned-commons): Add new option.
15493
15494 * doc/invoke.texi (-mpe-aligned-commons): Document new target option.
15495 * doc/tm.texi (ASM_OUTPUT_COMMON): Document zero size commons.
15496
15497 2009-05-28 Ira Rosen <irar@il.ibm.com>
15498
15499 PR tree-optimization/40254
15500 * tree-data-ref.c (dr_analyze_innermost): Take POFFSET into account
15501 in analysis of basic blocks.
15502
15503 2009-05-28 Adam Nemet <anemet@caviumnetworks.com>
15504
15505 PR middle-end/33699
15506 * target.h (struct gcc_target): Fix indentation. Add const_anchor.
15507 * target-def.h (TARGET_CONST_ANCHOR): New macro.
15508 (TARGET_INITIALIZER): Use it.
15509 * cse.c (CHEAPER): Move it up to the other macros.
15510 (insert): Rename this ...
15511 (insert_with_costs): ... to this. Add cost parameters. Update
15512 function comment.
15513 (insert): New function. Call insert_with_costs.
15514 (compute_const_anchors, insert_const_anchor, insert_const_anchors,
15515 find_reg_offset_for_const, try_const_anchors): New functions.
15516 (cse_insn): Call try_const_anchors. Adjust cost of src_related
15517 when using a const-anchor. Call insert_const_anchors.
15518 * config/mips/mips.c (mips_set_mips16_mode): Set targetm.const_anchor.
15519 * doc/tm.texi (Misc): Document TARGET_CONST_ANCHOR.
15520
15521 2009-05-28 Alexandre Oliva <aoliva@redhat.com>
15522
15523 * tree-inline.c (remap_decls): Enable nonlocalized variables
15524 when not optimizing.
15525
15526 2009-05-28 Alexandre Oliva <aoliva@redhat.com>
15527
15528 * tree-ssa-live.c (remove_unused_locals): Skip when not optimizing.
15529 Simplify other tests involving optimize.
15530
15531 2009-05-27 Tom Tromey <tromey@redhat.com>
15532
15533 * unwind-dw2.c (_Unwind_DebugHook): New function.
15534 (uw_install_context): Call _Unwind_DebugHook.
15535
15536 2009-05-27 Tom Tromey <tromey@redhat.com>
15537
15538 * system.h (CONST_CAST2): Use C++ const_cast when compiled as C++
15539
15540 2009-05-27 Ian Lance Taylor <iant@google.com>
15541
15542 * Makefile.in (LINKER, LINKER_FLAGS): Define.
15543 (LINKER_FOR_BUILD, BUILD_LINKERFLAGS): Define.
15544 (ALL_LINKERFLAGS): Define.
15545 (xgcc$(exeext)): Change $(COMPILER) to $(LINKER).
15546 (cpp$(exeext), cc1-dummy$(exeext), cc1$(exeext)): Likewise.
15547 (collect2$(exeext), mips-tfile, mips-tdump): Likewise.
15548 (gcov$(exeext), gcov-dump$(exeext)): Likewise.
15549 (build/gen%$(build_exeext)): Change $(COMPILER_FOR_BUILD) to
15550 $(LINKER_FOR_BUILD).
15551 (build/gcov-iov$(build_exeext)): Likewise.
15552
15553 2009-05-27 Julian Brown <julian@codesourcery.com>
15554
15555 * gcse.c (target.h): Include.
15556 (can_assign_to_reg_without_clobbers_p): Check that the target allows
15557 copy of argument to a pseudo register.
15558
15559 2009-05-27 Diego Novillo <dnovillo@google.com>
15560
15561 * tree-ssa-live.c (dump_scope_block): Document arguments.
15562 (dump_scope_blocks): Document.
15563 (debug_scope_blocks): New.
15564 * tree-flow.h (debug_scope_blocks): Declare.
15565
15566 2009-05-21 Denis Chertykov <denisc@overta.ru>
15567
15568 * doc/contrib.texi (Contributors): Add myself to the list.
15569
15570 2009-05-27 Olivier Hainque <hainque@adacore.com>
15571
15572 * expr.c (target_align): New function. Alignment the TARGET of an
15573 assignment may be assume to have.
15574 (highest_pow2_factor_for_target): Use it instead of relying on
15575 immediate tree attributes of TARGET, not necessarily honored when
15576 intermediate bitfields are involved.
15577
15578 2009-05-27 H.J. Lu <hongjiu.lu@intel.com>
15579
15580 PR target/40266
15581 * config/i386/driver-i386.c (host_detect_local_cpu): Support
15582 AVX, SSE4, AES, PCLMUL and POPCNT.
15583
15584 2009-05-27 Diego Novillo <dnovillo@google.com>
15585
15586 * tree-pretty-print.c (dump_location): New.
15587 (dump_generic_node): Call it.
15588 Factor code to handle BLOCK nodes ...
15589 (dump_block_node): ... here.
15590
15591 2009-05-27 Rafael Avila de Espindola <espindola@google.com>
15592
15593 * Makefile.in (GCC_PLUGIN_H): New. Replace all uses of gcc-plugin.h
15594 with it.
15595 * doc/plugins.texi: Document that gcc-plugin.h must be the first to be
15596 included.
15597 * gcc-plugin.h: Include config.h and system.h.
15598 (IN_GCC): Define if not defined.
15599
15600 2009-05-27 Hans-Peter Nilsson <hp@axis.com>
15601
15602 PR middle-end/40249
15603 * Makefile.in (CRTSTUFF_CFLAGS): Replace -fno-inline-functions
15604 with -fno-inline.
15605
15606 2009-05-27 Shujing Zhao <pearly.zhao@oracle.com>
15607
15608 * config/m32r/m32r.c: Use REG_P, MEM_P and CONST_INT_P where
15609 applicable.
15610 * config/m32r/m32r.h: Ditto.
15611 * config/m32r/m32r.md: Ditto.
15612 * config/m32r/predicates.md: Ditto.
15613
15614 2009-05-27 Alexandre Oliva <aoliva@redhat.com>
15615
15616 * cgraph.c (dump_cgraph_node): Honor -fdump-noaddr.
15617
15618 2009-05-26 Basile Starynkevitch <basile@starynkevitch.net>
15619
15620 * doc/plugins.texi
15621 (Loading plugins): typo.
15622 (Plugin callbacks): Documented PLUGIN_INFO, PLUGIN_GGC_START,
15623 PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
15624 (Interacting with the GCC Garbage Collector): Added new section.
15625 (Giving information about a plugin): Added new section for
15626 PLUGIN_INFO.
15627 * ggc.h (ggc_register_root_tab): Added declaration.
15628 * gcc-plugin.h (PLUGIN_GGC_START, PLUGIN_GGC_MARKING)
15629 (PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS): Added new events.
15630 (register_callback): Improved comment in declaration.
15631 * ggc-common.c (const_ggc_root_tab_t) Added new typedef for vectors.
15632 (extra_root_vec) Added static variable for dynamic roots registration.
15633 (ggc_register_root_tab) Added new routine.
15634 (ggc_mark_roots) Added iteration inside extra_root_vec, and invoke
15635 PLUGIN_GGC_MARKING event.
15636 * ggc-zone.c: Include plugin.h.
15637 (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
15638 * ggc-page.c: Include plugin.h.
15639 (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
15640 * plugin.c (plugin_event_name): added names of PLUGIN_GGC_START,
15641 PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS
15642 (register_callback): check lack of callbacks for
15643 pseudo-events. Added handling of PLUGIN_REGISTER_GGC_ROOTS,
15644 PLUGIN_GGC_START, PLUGIN_GGC_MARKING, PLUGIN_GGC_END.
15645 (invoke_plugin_callbacks): Handle PLUGIN_GGC_START,
15646 PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
15647 * Makefile.in (ggc-common.o, ggc-zone.o, ggc-page.o): Added
15648 dependency on plugin.h.
15649 (plugin.o): Added dependency on ggc.h...
15650
15651 2009-05-26 Richard Guenther <rguenther@suse.de>
15652
15653 PR middle-end/40248
15654 Revert
15655 * expr.c (expand_expr_real_1): Avoid calling do_store_flag
15656 with mismatched comparison modes.
15657
15658 * expr.c (expand_expr_real_1): Expand the operand of a
15659 VIEW_CONVERT_EXPR in its natural mode.
15660
15661 2009-05-26 Ian Lance Taylor <iant@google.com>
15662
15663 * Makefile.in (COMPILER, COMPILER_FLAGS): Define.
15664 (COMPILER_FOR_BUILD, BUILD_COMPILERFLAGS): Define.
15665 (ALL_COMPILERFLAGS): Define.
15666 (.c.o, xgcc$(exeext), cpp$(exeext)): Use $(COMPILER).
15667 (cc1-dummy$(exeext), cc1$(exeext)): Likewise.
15668 (collect2$(exeext), collect2.o): Likewise.
15669 (c-opts.o, c-cppbuiltin.o, c-pch.o, gcc.o, gccspec.o): Likewise.
15670 (gcc-options.o, version.o, prefix.o, toplev.o): Likewise.
15671 ($(out_object_file), mips-tfile, mips-tdump): Likewise.
15672 (libbackend.o, intl.o, cppdefault.o): Likewise.
15673 (gcov$(exeext), gcov-dump$(exeext)): Likewise.
15674 (build/%.o): Use $(COMPILER_FOR_BUILD).
15675 (build/gen%$(build_exeext)): Likewise.
15676 (build/gcov-iov$(build_exeext)): LIkewise.
15677 * config/t-darwin (darwin.o): Use $(COMPILER).
15678 (darwin-c.o, darwin-f.o, darwin-driver.o): Likewise.
15679 * config/t-sol2 (sol2-c.o): Likewise.
15680 (sol2.o): Likewise.
15681 * config/t-vxworks (vxworks.o): Likewise.
15682 * config/x-darwin (host-darwin.o): Likewise.
15683 * config/x-hpux (host-hpux.o): Likewise.
15684 * config/x-linux (host-linux.o): Likewise.
15685 * config/x-solaris (host-solaris.o): Likewise.
15686 * config/alpha/x-alpha (driver-alpha.o): Likewise.
15687 * config/arm/t-arm (arm-c.o): Likewise.
15688 * config/arm/t-pe (pe.o): Likewise.
15689 * config/arm/t-wince-pe (pe.o): Likewise.
15690 * config/i386/t-cygming (winnt.o): Likewise.
15691 (winnt-cxx.o, winnt-stubs.o, msformat-c.o): Likewise.
15692 * config/i386/t-cygwin (cygwin1.o): Likewise.
15693 (cygwin2.o): Likewise.
15694 * config/i386/t-i386 (i386-c.o): Likewise.
15695 * config/i386/t-interix (winnt.o): Likewise.
15696 * config/i386/t-netware (netware.o): Likewise.
15697 * config/i386/t-nwld (nwld.o): Likewise.
15698 * config/i386/x-darwin (host-i386-darwin.o): Likewise.
15699 * config/i386/x-i386 (driver-i386.o): Likewise.
15700 * config/i386/x-cygwin (host-cygwin.o): Likewise.
15701 * config/i386/x-mingw32 (host-mingw32.o): Likewise.
15702 * config/ia64/t-ia64 (ia64-c.o): Likewise.
15703 * config/m32c/t-m32c (m32c-pragma.o): Likewise.
15704 * config/mips/x-native (driver-native.o): Likewise.
15705 * config/rs6000/t-rs6000 (rs6000-c.o): Likewise.
15706 * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
15707 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
15708 * config/rs6000/x-rs6000 (driver-rs6000.o): Likewise.
15709 * config/score/t-score-elf (score7.o): Likewise.
15710 (score3.o): Likewise.
15711 * config/sh/t-sh (sh-c.o): Likewise.
15712 * config/sh/t-symbian (sh-c.o): Likewise.
15713 (symbian.o): Likewise.
15714 * config/spu/t-spu-elf (spu-c.o): Likewise.
15715 * config/v850/t-v850 (v850-c.o): Likewise.
15716 * config/v850/t-v850e (v850-c.o): Likewise.
15717
15718 2009-05-26 Richard Guenther <rguenther@suse.de>
15719
15720 PR tree-optimization/40122
15721 * tree-ssa-ccp.c (ccp_fold): Fold vector CONSTRUCTORs to
15722 VECTOR_CSTs if possible.
15723 (fold_gimple_assign): Likewise.
15724
15725 2009-05-26 Richard Guenther <rguenther@suse.de>
15726
15727 PR middle-end/40252
15728 * fold-const.c (fold_binary): Use the correct types for building
15729 rotates.
15730
15731 2009-05-26 Richard Guenther <rguenther@suse.de>
15732
15733 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove
15734 redundant calls to merge_alias_info.
15735 (bump_vector_ptr): Likewise.
15736 * tree-ssa-copy.c (merge_alias_info): Remove.
15737 (replace_exp_1): Remove call to merge_alias_info.
15738 (propagate_tree_value): Likewise.
15739 (fini_copy_prop): Propagate points-to info.
15740 * tree-flow.h (merge_alias_info): Remove.
15741
15742 2009-05-07 Hariharan Sandanagobalane <hariharan@picochip.com>
15743
15744 * config/picochip/picochip.C (PARAM_INLINE_CALL_COST): Remove.
15745
15746 2009-05-25 Jan Hubicka <jh@suse.cz>
15747
15748 * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
15749 * cgraph.h (struct inline_summary): New filed self_wize,
15750 size_inlining_benefit, self_time and time_inlining_benefit.
15751 (struct cgraph_global_info): Replace insns by time ans size fields.
15752 * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
15753 (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
15754 (ipcp_update_callgraph): Do not touch function bodies.
15755 * ipa-inline.c: Include except.h
15756 (MAX_TIME): New constant.
15757 (overall_insns): Remove.
15758 (leaf_node_p): New.
15759 (overall_size, max_benefit): New static variables.
15760 (cgraph_estimate_time_after_inlining): New function.
15761 (cgraph_estimate_size_after_inlining): Rewrite using benefits.
15762 (cgraph_clone_inlined_nodes): Update size.
15763 (cgraph_mark_inline_edge): Update size.
15764 (cgraph_estimate_growth): Use size info.
15765 (cgraph_check_inline_limits): Check size.
15766 (cgraph_default_inline_p): Likewise.
15767 (cgraph_edge_badness): Compute badness based on benefit and size cost.
15768 (cgraph_decide_recursive_inlining): Check size.
15769 (cgraph_decide_inlining_of_small_function): Update size; dump sizes
15770 and times.
15771 (cgraph_decide_inlining): Likewise.
15772 (cgraph_decide_inlining_incrementally): Likewise; honor
15773 PARAM_EARLY_INLINING_INSNS.
15774 (likely_eliminated_by_inlining_p): New predicate.
15775 (estimate_function_body_sizes): New function.
15776 (compute_inline_parameters): Use it.
15777 * except.c (must_not_throw_labels): New function.
15778 * except.h (must_not_throw_labels): Declare.
15779 * tree-inline.c (init_inline_once): Kill inlining_weigths
15780 * tree-ssa-structalias.c: Avoid uninitialized warning.
15781 * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
15782 (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
15783 (PARAM_INLINE_CALL_COST): Remove.
15784 (PARAM_EARLY_INLINING_INSNS): New.
15785
15786 2009-05-25 Richard Guenther <rguenther@suse.de>
15787
15788 PR tree-optimization/36327
15789 * tree-ssa-alias.c (walk_non_aliased_vuses): Add second walker
15790 callback for reference translation or lookup at the point of may-defs.
15791 * tree-ssa-alias.h (walk_non_aliased_vuses): Adjust prototype.
15792 * tree-ssa-sccvn.c (get_ref_from_reference_ops): Bail out
15793 for union COMPONENT_REFs.
15794 (vn_reference_lookup_3): New callback. Lookup from memset
15795 and CONSTRUCTOR assignment, translate through struct copies.
15796 (vn_reference_lookup_pieces): Make sure to not free the
15797 passed operands array. Adjust walk_non_aliased_vuses call.
15798 (vn_reference_lookup): Adjust walk_non_aliased_vuses call,
15799 make sure we do not leak memory.
15800
15801 2009-05-25 Richard Guenther <rguenther@suse.de>
15802
15803 * tree-ssa-alias.h (dump_points_to_solution): Declare.
15804 * tree-inline.c (expand_call_inline): Reset the escaped and
15805 callused solutions.
15806 * tree-ssa-structalias.c (pass_build_ealias): New.
15807 * tree-pass.h (pass_build_ealias): Declare.
15808 * passes.c (init_optimization_passes): Add PTA during
15809 early optimizations.
15810 * tree-ssa-alias.c (dump_alias_info): Dump the ESCAPED
15811 and CALLUSED solutions.
15812 (dump_points_to_solution): New function, split out from ...
15813 (dump_points_to_info_for): ... here.
15814 * tree-parloops.c (parallelize_loops): Reset the escaped and
15815 callused solutions.
15816
15817 2009-05-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
15818
15819 PR bootstrap/40027
15820 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Only define if missing.
15821 * config/i386/sol2.h [!TARGET_GNU_LD] (USE_HIDDEN_LINKONCE): Define.
15822
15823 2009-05-25 Ira Rosen <irar@il.ibm.com>
15824
15825 PR tree-optimization/40238
15826 * tree-vect-stmts.c (vect_init_vector): Insert initialization
15827 statements after basic block's labels.
15828 * tree-vect-slp.c (vect_slp_transform_bb): Call destroy_bb_vec_info()
15829 to free the allocated memory.
15830
15831 2009-05-24 Kaz Kojima <kkojima@gcc.gnu.org>
15832
15833 * gcc/config/sh/sh.c (sh_set_return_address): Mark store of
15834 return address with a USE.
15835
15836 2009-05-24 Richard Guenther <rguenther@suse.de>
15837
15838 PR middle-end/40233
15839 * tree.c (make_vector_type): Build the TYPE_DEBUG_REPRESENTATION_TYPEs
15840 array type from the main variant of the inner type.
15841
15842 2009-05-24 Jan-Benedict Glaw <jbglaw@lug-owl.de>
15843
15844 * config/vax/vax-protos.h (legitimate_constant_address_p): Change
15845 definition to bool (from int) to un-break build.
15846 (legitimate_constant_p, vax_mode_dependent_address_p): Likewise.
15847
15848 2009-05-24 Paolo Bonzini <bonzini@gnu.org>
15849
15850 * tree-ssa-operands.h (push_stmt_changes, pop_stmt_changes,
15851 discard_stmt_changes): Delete.
15852 * tree-ssa-operands.c (scb_stack): Delete.
15853 (init_ssa_operands): Do not initialize it.
15854 (fini_ssa_operands): Do not free it.
15855 (push_stmt_changes, pop_stmt_changes, discard_stmt_changes): Delete.
15856
15857 * tree-cfg.c (replace_uses_by): Replace pop_stmt_changes with
15858 update_stmt, remove the others. Fix comments.
15859 * tree-dfa.c (optimize_stack_restore): Likewise.
15860 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Likewise.
15861 * tree-ssa-loop-ivopts.c (rewrite_use): Likewise.
15862 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
15863 * tree-ssa-ccp.c (optimize_stack_restore, execute_fold_all_builtins):
15864 Likewise.
15865 * tree-ssa-propagate.c (substitute_and_fold): Likewise.
15866 * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
15867 (dom_opt_finalize_block): Likewise, adjusting access to
15868 stmts_to_rescan.
15869 (optimize_stmt): Likewise, adjusting access to stmts_to_rescan.
15870 (stmts_to_rescan): Change item type to gimple.
15871 (tree_ssa_dominator_optimize): Change type of stmts_to_rescan.
15872
15873 2009-05-24 Ira Rosen <irar@il.ibm.com>
15874
15875 * doc/passes.texi (Tree-SSA passes): Document SLP pass.
15876 * tree-pass.h (pass_slp_vectorize): New pass.
15877 * params.h (SLP_MAX_INSNS_IN_BB): Define.
15878 * timevar.def (TV_TREE_SLP_VECTORIZATION): Define.
15879 * tree-vectorizer.c (timevar.h): Include.
15880 (user_vect_verbosity_level): Declare.
15881 (vect_location): Fix comment.
15882 (vect_set_verbosity_level): Update user_vect_verbosity_level
15883 instead of vect_verbosity_level.
15884 (vect_set_dump_settings): Add an argument. Ignore user defined
15885 verbosity if dump flags require higher level of verbosity. Print to
15886 stderr only for loop vectorization.
15887 (vectorize_loops): Update call to vect_set_dump_settings.
15888 (execute_vect_slp): New function.
15889 (gate_vect_slp): Likewise.
15890 (struct gimple_opt_pass pass_slp_vectorize): New.
15891 * tree-vectorizer.h (struct _bb_vec_info): Define along macros to
15892 access its members.
15893 (vec_info_for_bb): New function.
15894 (struct _stmt_vec_info): Add bb_vinfo and a macro for its access.
15895 (VECTORIZATION_ENABLED): New macro.
15896 (SLP_ENABLED, SLP_DISABLED): Likewise.
15897 (vect_is_simple_use): Add bb_vec_info argument.
15898 (new_stmt_vec_info, vect_analyze_data_ref_dependences,
15899 vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
15900 vect_analyze_data_ref_accesses, vect_analyze_data_refs,
15901 vect_schedule_slp, vect_analyze_slp): Likewise.
15902 (vect_analyze_stmt): Add slp_tree argument.
15903 (find_bb_location): Declare.
15904 (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
15905 * tree-vect-loop.c (new_loop_vec_info): Adjust function calls.
15906 (vect_analyze_loop_operations, vect_analyze_loop,
15907 get_initial_def_for_induction, vect_create_epilog_for_reduction,
15908 vect_finalize_reduction, vectorizable_reduction,
15909 vectorizable_live_operation, vect_transform_loop): Likewise.
15910 * tree-data-ref.c (dr_analyze_innermost): Update comment,
15911 skip evolution analysis if analyzing a basic block.
15912 (dr_analyze_indices): Likewise.
15913 (initialize_data_dependence_relation): Skip the test whether the
15914 object is invariant for basic blocks.
15915 (compute_all_dependences): Skip dependence analysis for data
15916 references in basic blocks.
15917 (find_data_references_in_stmt): Don't fail in case of invariant
15918 access in basic block.
15919 (find_data_references_in_bb): New function.
15920 (find_data_references_in_loop): Move code to
15921 find_data_references_in_bb and add a call to it.
15922 (compute_data_dependences_for_bb): New function.
15923 * tree-data-ref.h (compute_data_dependences_for_bb): Declare.
15924 * tree-vect-data-refs.c (vect_check_interleaving): Adjust to the case
15925 that STEP is 0.
15926 (vect_analyze_data_ref_dependence): Check for interleaving in case of
15927 unknown dependence in basic block and fail in case of dependence in
15928 basic block.
15929 (vect_analyze_data_ref_dependences): Add bb_vinfo argument, get data
15930 dependence instances from either loop or basic block vectorization
15931 info.
15932 (vect_compute_data_ref_alignment): Check if it is loop vectorization
15933 before calling nested_in_vect_loop_p.
15934 (vect_compute_data_refs_alignment): Add bb_vinfo argument, get data
15935 dependence instances from either loop or basic block vectorization
15936 info.
15937 (vect_verify_datarefs_alignment): Likewise.
15938 (vect_enhance_data_refs_alignment): Adjust function calls.
15939 (vect_analyze_data_refs_alignment): Likewise.
15940 (vect_analyze_group_access): Fix printing. Skip different checks if
15941 DR_STEP is 0. Keep strided stores either in loop or basic block
15942 vectorization data structure. Fix indentation.
15943 (vect_analyze_data_ref_access): Fix comments, allow zero step in
15944 basic blocks.
15945 (vect_analyze_data_ref_accesses): Add bb_vinfo argument, get data
15946 dependence instances from either loop or basic block vectorization
15947 info.
15948 (vect_analyze_data_refs): Update comment. Call
15949 compute_data_dependences_for_bb to analyze basic blocks.
15950 (vect_create_addr_base_for_vector_ref): Check for outer loop only in
15951 case of loop vectorization. In case of basic block vectorization use
15952 data-ref itself as a base.
15953 (vect_create_data_ref_ptr): In case of basic block vectorization:
15954 don't advance the pointer, add new statements before the current
15955 statement. Adjust function calls.
15956 (vect_supportable_dr_alignment): Support only aligned accesses in
15957 basic block vectorization.
15958 * common.opt (ftree-slp-vectorize): New flag.
15959 * tree-vect-patterns.c (widened_name_p): Adjust function calls.
15960 (vect_pattern_recog_1): Likewise.
15961 * tree-vect-stmts.c (process_use): Likewise.
15962 (vect_init_vector): Add new statements in the beginning of the basic
15963 block in case of basic block SLP.
15964 (vect_get_vec_def_for_operand): Adjust function calls.
15965 (vect_finish_stmt_generation): Likewise.
15966 (vectorizable_call): Add assert that it is loop vectorization, adjust
15967 function calls.
15968 (vectorizable_conversion, vectorizable_assignment): Likewise.
15969 (vectorizable_operation): In case of basic block SLP, take
15970 vectorization factor from statement's type and skip the relevance
15971 check. Adjust function calls.
15972 (vectorizable_type_demotion): Add assert that it is loop
15973 vectorization, adjust function calls.
15974 (vectorizable_type_promotion): Likewise.
15975 (vectorizable_store): Check for outer loop only in case of loop
15976 vectorization. Adjust function calls. For basic blocks, skip the
15977 relevance check and don't advance pointers.
15978 (vectorizable_load): Likewise.
15979 (vectorizable_condition): Add assert that it is loop vectorization,
15980 adjust function calls.
15981 (vect_analyze_stmt): Add argument. In case of basic block SLP, check
15982 that it is not reduction, get vector type, call only supported
15983 functions, skip loop specific parts.
15984 (vect_transform_stmt): Check for outer loop only in case of loop
15985 vectorization.
15986 (new_stmt_vec_info): Add new argument and initialize bb_vinfo.
15987 (vect_is_simple_use): Fix comment, add new argument, fix conditions
15988 for external definition.
15989 * passes.c (pass_slp_vectorize): New pass.
15990 * tree-vect-slp.c (find_bb_location): New function.
15991 (vect_get_and_check_slp_defs): Add argument, adjust function calls,
15992 check for patterns only in loops.
15993 (vect_build_slp_tree): Add argument, adjust function calls, fail in
15994 case of multiple types in basic block SLP.
15995 (vect_mark_slp_stmts_relevant): New function.
15996 (vect_supported_load_permutation_p): Fix comment.
15997 (vect_analyze_slp_instance): Add argument. In case of basic block
15998 SLP, take vectorization factor from statement's type, check that
15999 unrolling factor is 1. Adjust function call. Save SLP instance in
16000 either loop or basic block vectorization structure. Return FALSE,
16001 if SLP failed.
16002 (vect_analyze_slp): Add argument. Get strided stores groups from
16003 either loop or basic block vectorization structure. Return FALSE
16004 if basic block SLP failed.
16005 (new_bb_vec_info): New function.
16006 (destroy_bb_vec_info, vect_slp_analyze_node_operations,
16007 vect_slp_analyze_operations, vect_slp_analyze_bb): Likewise.
16008 (vect_schedule_slp): Add argument. Get SLP instances from either
16009 loop or basic block vectorization structure. Set vectorization factor
16010 to be 1 for basic block SLP.
16011 (vect_slp_transform_bb): New function.
16012 * params.def (PARAM_SLP_MAX_INSNS_IN_BB): Define.
16013
16014 2009-05-23 Mark Mitchell <mark@codesourcery.com>
16015
16016 * final.c (shorten_branches): Do not align labels for jump tables.
16017 (final_scan_insn): Use JUMP_TABLE_DATA_P.
16018
16019 2009-05-23 Eric Botcazou <ebotcazou@adacore.com>
16020
16021 * doc/passes.texi: Standardize spelling of RTL, Tree and Tree SSA.
16022 Remove outdated reference to flow.c and fix nits.
16023 * doc/gccint.texi: Tweak RTL description.
16024 * doc/rtl.texi: Likewise.
16025
16026 2009-05-23 Denis Chertykov <chertykov@gmail.com>
16027
16028 * config/avr/avr.c: Change my email address.
16029 * config/avr/avr.h: Likewise.
16030 * config/avr/avr.md: Likewise.
16031 * config/avr/avr-protos.h: Likewise.
16032 * config/avr/libgcc.S: Likewise.
16033
16034 2009-05-22 Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
16035
16036 * config/spu/spu-protos.h (aligned_mem_p, spu_valid_mov): Remove.
16037 (spu_split_load, spu_split_store): Change return type to int.
16038 (spu_split_convert): Declare.
16039 * config/spu/predicates.md (spu_mem_operand): Remove.
16040 (spu_mov_operand): Update.
16041 (spu_dest_operand, shiftrt_operator, extend_operator): Define.
16042 * config/spu/spu.c (regno_aligned_for_load): Remove.
16043 (reg_aligned_for_addr, spu_expand_load): Define.
16044 (spu_expand_extv): Reimplement and handle MEM.
16045 (spu_expand_insv): Handle MEM.
16046 (spu_sched_reorder): Handle insn's with length 0.
16047 (spu_legitimate_address_p): Reimplement.
16048 (store_with_one_insn_p): Return TRUE for any mode with size
16049 larger than 16 bytes.
16050 (address_needs_split): Define.
16051 (spu_expand_mov): Call spu_split_load and spu_split_store for MEM
16052 operands.
16053 (spu_convert_move): Define.
16054 (spu_split_load): Use spu_expand_load and change all MEM's to TImode.
16055 (spu_split_store): Change all MEM's to TImode.
16056 (spu_init_expanders): Preallocate registers that correspond to
16057 LAST_VIRTUAL_REG+1 and LAST_VIRTUAL_REG+2 and set them with
16058 mark_reg_pointer.
16059 (spu_split_convert): Define.
16060 * config/spu/spu.md (QHSI, QHSDI): New mode iterators.
16061 (_move<mode>, _movdi, _movti): Update predicate and condition.
16062 (load, store): Change to define_split.
16063 (extendqiti2, extendhiti2, extendsiti2, extendditi2): Simplify to
16064 extend<mode>ti2.
16065 (zero_extendqiti2, zero_extendhiti2, <v>lshr<mode>3_imm): Define.
16066 (lshr<mode>3, lshr<mode>3_imm, lshr<mode>3_re): Simplify to one
16067 define_insn_and_split of lshr<mode>3.
16068 (shrqbybi_<mode>, shrqby_<mode>): Simplify to define_expand.
16069 (<v>ashr<mode>3_imm): Define.
16070 (extv, extzv, insv): Allow MEM operands.
16071 (trunc_shr_ti<mode>, trunc_shr_tidi, shl_ext_<mode>ti,
16072 shl_ext_diti, sext_trunc_lshr_tiqisi, zext_trunc_lshr_tiqisi,
16073 sext_trunc_lshr_tihisi, zext_trunc_lshr_tihisi): Define for combine.
16074 (_spu_convert2): Change to define_insn_and_split and remove the
16075 corresponding define_peephole2.
16076 (stack_protect_set, stack_protect_test, stack_protect_test_si):
16077 Change predicates to memory_operand.
16078
16079 2009-05-22 Mark Mitchell <mark@codesourcery.com>
16080
16081 * config/arm/thumb2.md: Add 16-bit multiply instructions.
16082
16083 2009-05-21 Michael Meissner <meissner@linux.vnet.ibm.com>
16084
16085 PR tree-optimization/40219
16086 * tree.c (iterative_hash_expr): Make sure the builtin function is
16087 a normal builtin function and not a front end or back end builtin
16088 before indexing into the built_in_decls array.
16089
16090 2009-05-22 Richard Guenther <rguenther@suse.de>
16091
16092 PR middle-end/38964
16093 * alias.c (write_dependence_p): Do not use TBAA for answering
16094 anti-dependence or output-dependence.
16095 * tree-ssa-structalias.c (set_uids_in_ptset): Remove TBAA pruning code.
16096 (emit_pointer_definition): Remove.
16097 (emit_alias_warning): Likewise.
16098 (find_what_var_points_to): Remove TBAA pruning code.
16099 (find_what_p_points_to): Likewise. Do not warn about strict-aliasing
16100 violations.
16101 (compute_points_to_sets): Remove code computing the set of
16102 dereferenced pointers.
16103 * tree-data-ref.c (dr_may_alias_p): Properly use the split
16104 oracle for querying anti and output dependencies.
16105 * tree-ssa-alias.c (refs_may_alias_p_1): Add argument specifying
16106 if TBAA may be applied.
16107 (refs_anti_dependent_p): New function.
16108 (refs_output_dependent_p): Likewise.
16109 * tree-ssa-alias.h (refs_anti_dependent_p): Declare.
16110 (refs_output_dependent_p): Likewise.
16111 * doc/tree-ssa.texi (Memory model): New section.
16112 * doc/c-tree.texi (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
16113 * doc/gimple.texi (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
16114 * cfgexpand.c (expand_gimple_basic_block): Do not handle
16115 GIMPLE_CHANGE_DYNAMIC_TYPE or CHANGE_DYNAMIC_TYPE_EXPR.
16116 * expr.c (expand_expr_real_1): Likewise.
16117 * gimple-low.c (lower_stmt): Likewise.
16118 * gimple-pretty-print.c (dump_gimple_stmt): Likewise.
16119 (dump_gimple_cdt): Remove.
16120 * gimple.c (gss_for_code): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
16121 (gimple_size): Likewise.
16122 (walk_gimple_op): Likewise.
16123 (is_gimple_stmt): Likewise.
16124 (walk_stmt_load_store_addr_ops): Likewise.
16125 (gimple_build_cdt): Remove.
16126 * gimple.def (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
16127 * gimple.h (gimple_cdt_new_type): Remove.
16128 (gimple_cdt_new_type_ptr): Likewise.
16129 (gimple_cdt_set_new_type): Likewise.
16130 (gimple_cdt_location): Likewise.
16131 (gimple_cdt_location_ptr): Likewise.
16132 (gimple_cdt_set_location): Likewise.
16133 * gimplify.c (gimplify_expr): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
16134 * tree-cfg.c (remove_useless_stmts_1): Do not handle
16135 GIMPLE_CHANGE_DYNAMIC_TYPE.
16136 (verify_types_in_gimple_stmt): Likewise.
16137 * tree-inline.c (estimate_num_insns): Likewise.
16138 (expand_call_inline): Do not copy DECL_NO_TBAA_P.
16139 (copy_decl_to_var): Likewise.
16140 (copy_result_decl_to_var): Likewise.
16141 * tree-pretty-print.c (dump_generic_node): Do not handle
16142 CHANGE_DYNAMIC_TYPE_EXPR.
16143 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
16144 * tree-ssa-operands.c (get_expr_operands): Likewise.
16145 * tree-ssa-structalias.c (struct variable_info): Remove
16146 no_tbaa_pruning member.
16147 (new_var_info): Do not set it based on DECL_NO_TBAA_P.
16148 (unify_nodes): Do not copy it.
16149 (find_func_aliases): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
16150 (dump_solution_for_var): Do not dump no_tbaa_pruning state.
16151 (set_uids_in_ptset): Do not check it.
16152 (find_what_var_points_to): Likewise.
16153 (compute_tbaa_pruning): Remove.
16154 (compute_points_to_sets): Do not call it.
16155 * tree.c (walk_tree_1): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
16156 * tree.def (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
16157 * tree.h (CHANGE_DYNAMIC_TYPE_NEW_TYPE): Remove.
16158 (CHANGE_DYNAMIC_TYPE_LOCATION): Likewise.
16159 (DECL_NO_TBAA_P): Likewise.
16160 (struct tree_decl_common): Move no_tbaa_flag to unused flags section.
16161 * omp-low.c (copy_var_decl): Do not copy DECL_NO_TBAA_P.
16162 (expand_omp_atomic_pipeline): Do not set it.
16163 * print-tree.c (print_node): Do not dump it.
16164 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
16165 redundant check.
16166
16167 2009-05-22 Vladimir Makarov <vmakarov@redhat.com>
16168
16169 PR target/39856
16170 * reg-stack.c (subst_stack_regs_pat): Remove gcc_assert for note
16171 for clobber.
16172
16173 2009-05-22 Mark Mitchell <mark@codesourcery.com>
16174
16175 * tree.c (handle_dll_attribute): Mark dllexport'd inlines as
16176 non-external.
16177
16178 2009-05-22 Ben Elliston <bje@au.ibm.com>
16179
16180 * Makefile.in (bversion.h, s-bversion): New targets.
16181 (TOPLEV_H): Add bversion.h.
16182 * toplev.h: Include "bversion.h".
16183 (ATTRIBUTE_GCC_DIAG): When building with checking disabled, use
16184 the __format__ attribute only if compiling with the same version
16185 of GCC as the sources (the "build version").
16186
16187 2009-05-22 Ben Elliston <bje@au.ibm.com>
16188
16189 * c-format.c (handle_format_attribute): Fix comment typo.
16190
16191 2009-05-21 Steve Ellcey <sje@cup.hp.com>
16192
16193 PR target/37846
16194 * config/ia64/ia64.opt (mfused-madd): New.
16195 * config/ia64/ia64.h (TARGET_DEFAULT): Set MASK_FUSED_MADD.
16196 * config/ia64/hpux.h (TARGET_DEFAULT): Ditto.
16197 * config/ia64/ia64.md (maddsf4, msubsf4, nmaddsf4,
16198 madddf4, madddf4_trunc, msubdf4, msubdf4_trunc, nmadddf4,
16199 nmadddf4_truncsf, maddxf4, maddxf4_truncsf, maddxf4_truncdf,
16200 msubxf4, msubxf4_truncsf msubxf4_truncdf, nmaddxf4,
16201 nmaddxf4_truncsf, nmaddxf4_truncdf): Check TARGET_FUSED_MADD.
16202 * config/ia64/vect.md (addv2sf3, subv2sf3): Force fpma/fpms
16203 instruction if !TARGET_FUSED_MADD.
16204 (fpma, fpms): Remove colon from name.
16205
16206 2009-05-22 Richard Guenther <rguenther@suse.de>
16207
16208 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record
16209 TMR_ORIGINAL. Always either record TMR_SYMBOL or TMR_BASE.
16210 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
16211 TARGET_MEM_REF.
16212 (create_expression_by_pieces): Only convert if necessary.
16213 * gimplify.c (gimplify_expr): Handle TARGET_MEM_REF.
16214 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle INTEGER_CST.
16215
16216 2009-05-21 Adam Nemet <anemet@caviumnetworks.com>
16217
16218 * config/mips/mips.md (*extzv_trunc<mode>_exts): Turn into a
16219 regular pattern from a template and rename it ...
16220 (*extzv_truncsi_exts): ... to this.
16221
16222 2009-05-21 Richard Guenther <rguenther@suse.de>
16223
16224 * cgraph.h (struct cgraph_node): Remove inline_decl member.
16225 * ipa-inline.c (cgraph_mark_inline_edge): Do not check it.
16226 (cgraph_default_inline_p): Likewise.
16227 (cgraph_decide_inlining_incrementally): Likewise.
16228
16229 2009-05-21 H.J. Lu <hongjiu.lu@intel.com>
16230 Uros Bizjak <ubizjak@gmail.com>
16231
16232 * config/i386/cpuid.h (bit_MOVBE): New.
16233
16234 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
16235
16236 * config/i386/i386.c (OPTION_MASK_ISA_MOVBE_SET): New.
16237 (OPTION_MASK_ISA_MOVBE_UNSET): Likewise.
16238 (ix86_handle_option): Handle OPT_mmovbe.
16239 (ix86_target_string): Add -mmovbe.
16240 (pta_flags): Add PTA_MOVBE.
16241 (processor_alias_table): Add PTA_MOVBE to "atom".
16242 (override_options): Handle PTA_MOVBE.
16243
16244 * config/i386/i386.h (TARGET_MOVBE): New.
16245
16246 * config/i386/i386.md (bswapsi2): Check TARGET_MOVBE.
16247 (*bswapsi_movbe): New.
16248 (*bswapdi_movbe): Likewise.
16249 (bswapdi2): Renamed to ...
16250 (*bswapdi_1): This.
16251 (bswapdi2): New expander.
16252
16253 * config/i386/i386.opt (mmovbe): New.
16254
16255 * doc/invoke.texi: Document -mmovbe.
16256
16257 2009-05-21 Taras Glek <tglek@mozilla.com>
16258
16259 * plugin.c (try_init_one_plugin): Updated to new plugin_init API.
16260 * gcc-plugin.h (plugin_init): Updated signature.
16261 * gcc-plugin.h (plugin_name_args): Moved to this header.
16262 * doc/plugins.texi (plugin_init): Updated documention to reflect
16263 API change.
16264 * doc/plugins.texi (plugin_name_args): Added to documention.
16265
16266 2009-05-21 Mark Mitchell <mark@codesourcery.com>
16267
16268 * config/arm/neon.md (*mul<mode>3add<mode>_neon): New pattern.
16269 (*mul<mode>3neg<mode>add<mode>_neon): Likewise.
16270
16271 2009-05-21 Shujing Zhao <pearly.zhao@oracle.com>
16272
16273 * config/i386/i386.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P and
16274 JUMP_TABLE_DATA_P predicates where applicable.
16275 * config/i386/predicates.md: Ditto.
16276 * config/i386/sse.md: Ditto.
16277
16278 2009-05-21 Jakub Jelinek <jakub@redhat.com>
16279
16280 * config/i386/i386.md (adddi_4_rex64, addsi_4, addhi_4): For
16281 operand2 -128 override length_immediate attribute to 1.
16282 * config/i386/predicates.md (constm128_operand): New predicate.
16283
16284 * config/i386/i386.c (memory_address_length): Handle %r12
16285 the same as %rsp and %r13 the same as %rbp. For %rsp and %rbp
16286 also check REGNO.
16287 (ix86_attr_length_address_default): For MODE_SI lea in 64-bit
16288 mode look through optional ZERO_EXTEND and SUBREG.
16289 * config/i386/i386.md (R12_REG): New define_constant.
16290 (prefix_data16): For sse unit set also for MODE_TI insns.
16291 (prefix_rex): For -m32 always return 0. For TYPE_IMOVX
16292 insns set if operand 1 is ext_QIreg_operand.
16293 (modrm): For TYPE_IMOV clear only if not MODE_DI. For
16294 TYPE_{ALU{,1},ICMP,TEST} insn clear if there is non-shortened
16295 immediate.
16296 (*movdi_extzv_1, zero_extendhidi2, zero_extendqidi2): Change
16297 mode from MODE_DI to MODE_SI.
16298 (movdi_1_rex64): Override modrm and length_immediate attributes
16299 only for movabs (TYPE_IMOV, alternative 2).
16300 (zero_extendsidi2_rex64): Clear prefix_0f attribute if TYPE_IMOVX.
16301 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
16302 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
16303 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
16304 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Set
16305 prefix_rex attribute if DImode.
16306 (*adddi_1_rex64, *adddi_2_rex64, *adddi_3_rex64, *adddi_5_rex64,
16307 *addsi_1, *addsi_1_zext, *addsi_2, *addsi_2_zext, *addsi_3,
16308 *addsi_3_zext, *addsi_5, *addhi_1_lea, *addhi_1, *addhi_2, *addhi_3,
16309 *addhi_5, *addqi_1_lea, *addqi_1): Override length_immediate
16310 attribute to 1 if TYPE_ALU and operand 2 is const128_operand.
16311 (pro_epilogue_adjust_stack_1, pro_epilogue_adjust_stack_rex64):
16312 Likewise. For TYPE_IMOV clear length_immediate attribute.
16313 (*ashldi3_1_rex64, *ashldi3_cmp_rex64, *ashldi3_cconly_rex64,
16314 *ashlsi3_1, *ashlsi3_1_zext, *ashlsi3_cmp, **ashlsi3_cconly,
16315 *ashlsi3_cmp_zext, *ashlhi3_1_lea, *ashlhi3_1, *ashlhi3_cmp,
16316 *ashlhi3_cconly, *ashlqi3_1_lea, *ashlqi3_1, *ashlqi3_cmp,
16317 *ashlqi3_cconly): Override length_immediate attribute to 0 if TYPE_ALU
16318 or one operand TYPE_ISHIFT.
16319 (*ashrdi3_1_one_bit_rex64, *ashrdi3_one_bit_cmp_rex64,
16320 *ashrdi3_one_bit_cconly_rex64, *ashrsi3_1_one_bit,
16321 *ashrsi3_1_one_bit_zext, *ashrsi3_one_bit_cmp,
16322 *ashrsi3_one_bit_cconly, *ashrsi3_one_bit_cmp_zext,
16323 *ashrhi3_1_one_bit, *ashrhi3_one_bit_cmp, *ashrhi3_one_bit_cconly,
16324 *ashrqi3_1_one_bit, *ashrqi3_1_one_bit_slp, *ashrqi3_one_bit_cmp,
16325 *ashrqi3_one_bit_cconly, *lshrdi3_1_one_bit_rex64,
16326 *lshrdi3_cmp_one_bit_rex64, *lshrdi3_cconly_one_bit_rex64,
16327 *lshrsi3_1_one_bit, *lshrsi3_1_one_bit_zext, *lshrsi3_one_bit_cmp,
16328 *lshrsi3_one_bit_cconly, *lshrsi3_cmp_one_bit_zext,
16329 *lshrhi3_1_one_bit, *lshrhi3_one_bit_cmp, *lshrhi3_one_bit_cconly,
16330 *lshrqi3_1_one_bit, *lshrqi3_1_one_bit_slp, *lshrqi2_one_bit_cmp,
16331 *lshrqi2_one_bit_cconly, *rotlsi3_1_one_bit_rex64, *rotlsi3_1_one_bit,
16332 *rotlsi3_1_one_bit_zext, *rotlhi3_1_one_bit, *rotlqi3_1_one_bit_slp,
16333 *rotlqi3_1_one_bit, *rotrdi3_1_one_bit_rex64, *rotrsi3_1_one_bit,
16334 *rotrsi3_1_one_bit_zext, *rotrhi3_one_bit, *rotrqi3_1_one_bit,
16335 *rotrqi3_1_one_bit_slp): Override length_immediate attribute to 0,
16336 set mode attribute, don't override length attribute.
16337 (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Set prefix_0f attribute
16338 to 1.
16339 (return_internal_long): Set length attribute to 2 instead of 1.
16340 (*strmovqi_rex_1, *strsetqi_rex_1, *rep_stosqi_rex64,
16341 *cmpstrnqi_nz_rex_1, *cmpstrnqi_rex_1, *strlenqi_rex_1): Clear
16342 prefix_rex attribute.
16343 * config/i386/predicates.md (ext_QIreg_operand, const128_operand):
16344 New predicates.
16345 (memory_displacement_only_operand): Always return 0 for TARGET_64BIT.
16346
16347 2009-05-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16348
16349 * config/arm/thumb2.md (orsi_notsi_si): Fix typo in pattern.
16350
16351 2009-05-20 Ian Lance Taylor <iant@google.com>
16352
16353 * tree.c (build_tree_list_vec_stat): New function.
16354 (ctor_to_vec): New function.
16355 (build_nt_call_vec): New function.
16356 (build_call_array): Change args to be a const pointer.
16357 (build_call_vec): New function.
16358 * tree.h (build_nt_call_vec): Declare.
16359 (build_tree_list_vec_stat): Declare.
16360 (build_tree_list_vec): Define.
16361 (build_call_array): Update declaration.
16362 (build_call_vec): Declare.
16363 (ctor_to_vec): Declare.
16364 * c-common.c (tree_vector_cache): New static variable.
16365 (make_tree_vector): New function.
16366 (release_tree_vector): New function.
16367 (make_tree_vector_single): New function.
16368 (make_tree_vector_copy): New function.
16369 * c-common.h (tree_vector_cache, make_tree_vector): Declare.
16370 (make_tree_vector_single, make_tree_vector_copy): Declare.
16371 * c-parser.c (cached_expr_list_1, cached_expr_list_2): Remove.
16372 (c_parser_expr_list): Don't manage cache here, instead call
16373 make_tree_vector.
16374 (c_parser_release_expr_list): Remove static function.
16375 (c_parser_vec_to_tree_list): Remove static function.
16376 (c_parser_attributes): Call build_tree_list_vec instead of
16377 c_parser_vec_to_tree_list. Call release_tree_vector instead of
16378 c_parser_release_expr_list.
16379 (c_parser_postfix_expression_after_primary): Likewise.
16380 (c_parser_objc_keywordexpr): Likewise.
16381
16382 2009-05-20 Sandra Loosemore <sandra@codesourcery.com>
16383
16384 * doc/tm.texi (Misc): Document TARGET_INVALID_PARAMETER_TYPE,
16385 TARGET_INVALID_RETURN_TYPE, TARGET_PROMOTED_TYPE, and
16386 TARGET_CONVERT_TO_TYPE.
16387 * hooks.c (hook_tree_const_tree_null): Define.
16388 * hooks.h (hook_tree_const_tree_null): Declare.
16389 * target.h (struct gcc_target): Add invalid_parameter_type,
16390 invalid_return_type, promoted_type, and convert_to_type fields.
16391 * target-def.h: (TARGET_INVALID_PARAMETER_TYPE): Define.
16392 (TARGET_INVALID_RETURN_TYPE): Define.
16393 (TARGET_PROMOTED_TYPE): Define.
16394 (TARGET_CONVERT_TO_TYPE): Define.
16395 (TARGET_INITIALIZER): Update for new fields.
16396 * c-decl.c (grokdeclarator): Check targetm.invalid_return_type.
16397 (grokparms): Check targetm.invalid_parameter_type.
16398 * c-typeck.c (default_conversion): Check targetm.promoted_type.
16399 * c-convert.c (convert): Check targetm.convert_to_type.
16400
16401 2009-05-20 Adam Nemet <anemet@caviumnetworks.com>
16402
16403 * config/mips/mips.md (*extenddi_truncate<mode>,
16404 *extendsi_truncate<mode>): Emit exts if supported. Add attribute
16405 defintions.
16406 (*extendhi_truncateqi): New define_insn_and_sptit.
16407
16408 2009-05-20 Jakub Jelinek <jakub@redhat.com>
16409
16410 PR middle-end/40204
16411 * fold-const.c (fold_binary) <case BIT_AND_EXPR>: Avoid infinite
16412 recursion if build_int_cst_type returns the same INTEGER_CST as arg1.
16413
16414 2009-05-20 Eric Botcazou <ebotcazou@adacore.com>
16415
16416 * fold-const.c (build_fold_addr_expr_with_type): Take the address of
16417 the operand of VIEW_CONVERT_EXPR.
16418
16419 2009-05-20 H.J. Lu <hongjiu.lu@intel.com>
16420
16421 * config/i386/driver-i386.c (host_detect_local_cpu): Check
16422 extended family and model for Intel processors. Support Intel Atom.
16423
16424 2009-05-20 Olivier Hainque <hainque@adacore.com>
16425
16426 * gstab.h (stab_code_type): Define, to be used instead of the
16427 __stab_debug_code enum, made anonymous. Add 2009 to the copyright
16428 notice.
16429 * dbxout.c (STAB_CODE_TYPE): Remove #define and replace use
16430 occurrences by stab_code_type.
16431 * mips-tfile.c (STAB_CODE_TYPE): Remove #define, unused.
16432
16433 2009-05-20 Martin Jambor <mjambor@suse.cz>
16434
16435 * tree-flow.h (insert_edge_copies_seq): Undeclare.
16436 (sra_insert_before): Likewise.
16437 (sra_insert_after): Likewise.
16438 (sra_init_cache): Likewise.
16439 (sra_type_can_be_decomposed_p): Likewise.
16440 * tree-mudflap.c (insert_edge_copies_seq): Copied here from tree-sra.c
16441 * tree-sra.c (sra_type_can_be_decomposed_p): Made static.
16442 (sra_insert_before): Likewise.
16443 (sra_insert_after): Likewise.
16444 (sra_init_cache): Likewise.
16445 (insert_edge_copies_seq): Made static and moved upwards.
16446
16447 * tree-complex.c (extract_component): Added VIEW_CONVERT_EXPR switch
16448 case.
16449
16450 * tree-flow-inline.h (contains_view_convert_expr_p): New function.
16451
16452 * ipa-prop.c (get_ssa_def_if_simple_copy): New function.
16453 (determine_cst_member_ptr): Call get_ssa_def_if_simple_copy to skip
16454 simple copies.
16455
16456 2009-05-20 Richard Guenther <rguenther@suse.de>
16457
16458 * expr.c (expand_expr_real_1): Avoid calling do_store_flag
16459 with mismatched comparison modes.
16460
16461 2009-05-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16462
16463 * config/arm/arm.md (*arm_iorsi3): Refactored for only ARM.
16464 (peephole ior (reg, int) -> mov, ior): Refactored for only ARM.
16465 * config/arm/thumb2.md (*thumb_andsi_not_shiftsi_si): Allow bic
16466 with shifts for Thumb2.
16467 (orsi_notsi): New for orn.
16468 (*thumb_orsi_notshiftsi_si): Allow orn with shifts.
16469 (*thumb2_iorsi3): Rewrite support for iorsi for Thumb2.
16470 * config/arm/arm.c (const_ok_for_op): Split case for IOR for Thumb2.
16471 (arm_gen_constant): Set can_invert for IOR and Thumb2, Add comments.
16472 Don't invert remainder for IOR.
16473
16474 2009-05-19 Zdenek Dvorak <ook@ucw.cz>
16475
16476 PR tree-optimization/40087
16477 * tree-ssa-loop-niter.c (number_of_iterations_ne_max,
16478 number_of_iterations_ne): Rename never_infinite argument.
16479 (number_of_iterations_lt_to_ne, number_of_iterations_lt,
16480 number_of_iterations_le): Handle pointer-type ivs when
16481 exit_must_be_taken is false.
16482 (number_of_iterations_cond): Do not always assume that
16483 exit_must_be_taken if the control variable is a pointer.
16484
16485 2009-05-19 Andrew Pinski <andrew_pinski@playstation.sony.com>
16486
16487 * c-typeck.c (build_binary_op): Allow % on integal vectors.
16488 * doc/extend.texi (Vector Extension): Document that % is allowed too.
16489
16490 2009-05-19 H.J. Lu <hongjiu.lu@intel.com>
16491
16492 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Check
16493 ASM_OUTPUT_MAX_SKIP_PAD instead of ASM_OUTPUT_MAX_SKIP_ALIGN.
16494
16495 2009-05-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
16496
16497 PR c/40172
16498 * c.opt (Wlogical-op): Disabled by default.
16499 * c-opt (c_common_post_options): Do not enable Wlogical-op with
16500 Wextra.
16501 * doc/invoke.texi (Wlogical-op): Likewise.
16502
16503 2009-05-19 Eric Botcazou <ebotcazou@adacore.com>
16504
16505 * tree-scalar-evolution.c (follow_ssa_edge_expr) <NOP_EXPR>: Turn
16506 into CASE_CONVERT.
16507 <PLUS_EXPR>: Strip useless type conversions instead of type nops.
16508 Propagate the type of the first operand.
16509 <ASSERT_EXPR>: Simplify.
16510 (follow_ssa_edge_in_rhs): Use gimple_expr_type to get the type.
16511 Rewrite using the RHS code as discriminant.
16512 <NOP_EXPR>: Turn into CASE_CONVERT.
16513 <PLUS_EXPR>: Propagate the type of the first operand.
16514
16515 2009-05-19 Steve Ellcey <sje@cup.hp.com>
16516
16517 * config/ia64/ia64-protos.h (ia64_dconst_0_5): New.
16518 (ia64_dconst_0_375): New.
16519 * config/ia64/ia64.c (ia64_override_options): Remove
16520 -minline-sqrt-min-latency warning.
16521 (ia64_dconst_0_5_rtx, ia64_dconst_0_5): New.
16522 (ia64_dconst_0_375_rtx, ia64_dconst_0_375): New
16523 * config/ia64/ia64.md (*sqrt_approx): Remove.
16524 (sqrtsf2): Remove #if 0.
16525 (sqrtsf2_internal_thr): Rewrite and move to div.md.
16526 (sqrtdf): Remove assert.
16527 (sqrtdf2_internal_thr): Rewrite and move to div.md.
16528 (sqrtxf2): Remove #if 0.
16529 (sqrtxf2_internal_thr): Rewrite and move to div.md.
16530 * div.md (sqrt_approx_rf): New.
16531 (sqrtsf2_internal_thr): New implementation.
16532 (sqrtsf2_internal_lat): New.
16533 (sqrtdf2_internal_thr: New implementation.
16534 (sqrtxf2_internal): New implementation.
16535
16536 2009-05-19 Francois-Xavier Coudert <fxcoudert@gmail.com>
16537 Hans-Peter Nilsson <hp@axis.com>
16538
16539 * defaults.h (UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE)
16540 (WCHAR_TYPE, MODIFIED_WCHAR_TYPE, PTRDIFF_TYPE, WINT_TYPE)
16541 (INTMAX_TYPE, UINTMAX_TYPE, SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE)
16542 (INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE)
16543 (UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE)
16544 (INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE)
16545 (UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE)
16546 (INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE)
16547 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE)
16548 (SIZE_TYPE, PID_TYPE, CHAR16_TYPE, CHAR32_TYPE): Move defaults here...
16549 * c-common.c: ...from here.
16550
16551 2009-05-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
16552
16553 * c-common.c (warn_logical_operator): Remove unnecessary conditionals.
16554
16555 2009-05-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16556
16557 * builtins.c (do_mpc_arg1): Separate MPFR/MPC C rounding types.
16558
16559 2009-05-19 Ben Elliston <bje@au.ibm.com>
16560
16561 * unwind-dw2-fde.c (fde_unencoded_compare): Replace type punning
16562 assignments with memcpy calls.
16563 (add_fdes): Likewise.
16564 (binary_search_unencoded_fdes): Likewise.
16565 (linear_search_fdes): Eliminate type puns.
16566
16567 2009-05-19 Richard Guenther <rguenther@suse.de>
16568
16569 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do
16570 not falsely claim to have propagated into all uses.
16571
16572 2009-05-19 Ben Elliston <bje@au.ibm.com>
16573
16574 * doc/invoke.texi (C Dialect Options): Update OpenMP specification
16575 version to v3.0.
16576
16577 2009-05-18 Kaz Kojima <kkojima@gcc.gnu.org>
16578
16579 * config/sh/sh-protos.h (sh_legitimate_address_p): Remove.
16580 * config/sh/sh.c (sh_legitimate_address_p): Make static.
16581 (TARGET_LEGITIMATE_ADDRESS_P): New.
16582 * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16583 * config/sh/sh.md: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
16584
16585 2009-05-18 Dodji Seketeli <dodji@redhat.com>
16586
16587 PR debug/40109
16588 * dwarf2out.c (gen_type_die_with_usage): Generate the DIE as a
16589 child of the containing namespace's DIE.
16590
16591 2009-05-18 Adam Nemet <anemet@caviumnetworks.com>
16592
16593 * config/mips/mips.md (*zero_extend<GPR:mode>_trunc<SHORT:mode>,
16594 *zero_extendhi_truncqi): Move after the zero_extend patterns.
16595 (*extenddi_truncate<mode>, *extendsi_truncate<mode>): Move after the
16596 extend patterns.
16597
16598 2009-05-18 H.J. Lu <hongjiu.lu@intel.com>
16599
16600 PR target/39942
16601 * config/i386/i386.c (ix86_avoid_jump_misspredicts): Replace
16602 gen_align with gen_pad.
16603 (ix86_reorg): Check ASM_OUTPUT_MAX_SKIP_PAD instead of
16604 #ifdef ASM_OUTPUT_MAX_SKIP_ALIGN.
16605
16606 * config/i386/i386.h (ASM_OUTPUT_MAX_SKIP_PAD): New.
16607 * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_PAD): Likewise.
16608
16609 * config/i386/i386.md (align): Renamed to ...
16610 (pad): This. Replace ASM_OUTPUT_MAX_SKIP_ALIGN with
16611 ASM_OUTPUT_MAX_SKIP_PAD.
16612
16613 2009-05-18 Andreas Schwab <schwab@linux-m68k.org>
16614
16615 * config.gcc: Fix variable syntax.
16616
16617 PR target/39531
16618 * config/m68k/m68k.c (output_andsi3): Mask off sign bit copies
16619 before calling exact_log2.
16620 (output_iorsi3): Likewise.
16621 (output_xorsi3): Likewise.
16622
16623 2009-05-18 Kaz Kojima <kkojima@gcc.gnu.org>
16624
16625 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register
16626 for the none zero constant operand except for EQ and NE
16627 comprisons even when the first operand is R0.
16628
16629 2009-05-18 Andreas Krebbel <krebbel1@de.ibm.com>
16630
16631 * config/s390/2064.md: Remove trailing whitespaces.
16632 * config/s390/2084.md: Likewise.
16633 * config/s390/constraints.md: Likewise.
16634 * config/s390/fixdfdi.h: Likewise.
16635 * config/s390/libgcc-glibc.ver: Likewise.
16636 * config/s390/s390-modes.def: Likewise.
16637 * config/s390/s390-protos.h: Likewise.
16638 * config/s390/s390.c: Likewise.
16639 * config/s390/s390.h: Likewise.
16640 * config/s390/s390.md: Likewise.
16641 * config/s390/tpf-unwind.h: Likewise.
16642
16643 2009-05-18 Maxim Kuvyrkov <maxim@codesourcery.com>
16644
16645 * config/m68k/m68k.c (m68k_legitimize_address): Fix typo in signature.
16646
16647 2009-05-18 Maxim Kuvyrkov <maxim@codesourcery.com>
16648
16649 M68K TLS support.
16650 * configure.ac (m68k-*-*): Check if binutils support TLS.
16651 * configure: Regenerate.
16652 * config/m68k/predicates.md (symbolic_operand): Extend comment.
16653 * config/m68k/constraints.md (Cu): New constraint.
16654 * config/m68k/m68k.md (UNSPEC_GOTOFF): Remove.
16655 (UNSPEC_RELOC16, UNSPEC_RELOC32): New constants.
16656 (movsi): Handle TLS symbols.
16657 (addsi3_5200): Handle XTLS symbols, indent.
16658 * config/m68k/m68k-protos.h (m68k_legitimize_tls_address): Declare.
16659 (m68k_tls_reference_p): Declare.
16660 (m68k_legitimize_address): Declare.
16661 (m68k_unwrap_symbol): Declare.
16662 * config/m68k/m68k.opt (mxtls): New option.
16663 * config/m68k/m68k.c (ggc.h): Include.
16664 (m68k_output_dwarf_dtprel): Implement hook.
16665 (TARGET_HAVE_TLS, TARGET_ASM_OUTPUT_DWARF_DTPREL): Define.
16666 (m68k_expand_prologue): Load GOT pointer when function needs it.
16667 (m68k_illegitimate_symbolic_constant_p): Handle TLS symbols.
16668 (m68k_legitimate_constant_address_p): Same.
16669 (m68k_decompose_address): Handle TLS references.
16670 (m68k_get_gp): New static function.
16671 (enum m68k_reloc): New contants.
16672 (TLS_RELOC_P): New macro.
16673 (m68k_wrap_symbol): New static function.
16674 (m68k_unwrap_symbol): New function.
16675 (m68k_final_prescan_insn_1): New static function.
16676 (m68k_final_prescan_insn): New function.
16677 (m68k_move_to_reg, m68k_wrap_symbol_into_got_ref): New static
16678 functions.
16679 (legitimize_pic_address): Handle TLS references..
16680 (m68k_tls_get_addr, m68k_get_tls_get_addr)
16681 (m68k_libcall_value_in_a0_p)
16682 (m68k_call_tls_get_addr, m68k_read_tp, m68k_get_m68k_read_tp)
16683 (m68k_call_m68k_read_tp): Helper variables and functions for ...
16684 (m68k_legitimize_tls_address): Handle TLS references.
16685 (m68k_tls_symbol_p, m68k_tls_reference_p_1, m68k_tls_reference_p):
16686 New functions.
16687 (m68k_legitimize_address): Handle TLS symbols.
16688 (m68k_get_reloc_decoration): New static function.
16689 (m68k_output_addr_const_extra): Handle UNSPEC_RELOC16 and
16690 UNSPEC_RELOC32.
16691 (m68k_output_dwarf_dtprel): Implement hook.
16692 (print_operand_address): Handle UNSPEC_RELOC16 adn UNSPEC_RELOC32.
16693 (m68k_libcall_value): Return result in A0 instead of D0 when asked by
16694 m68k_call_* routines.
16695 (sched_attr_op_type): Handle TLS symbols.
16696 (gt-m68k.h): Include.
16697 * config/m68k/m68k.h (FINAL_PRESCAN_INSN): Define.
16698 (LEGITIMATE_PIC_OPERAND_P): Support TLS.
16699
16700 2009-05-18 Martin Jambor <mjambor@suse.cz>
16701
16702 * ipa-prop.c (ipa_check_stmt_modifications): Removed.
16703 (visit_store_addr_for_mod_analysis): New function.
16704 (ipa_detect_param_modifications): Use walk_stmt_load_store_addr_ops.
16705 (determine_cst_member_ptr): Use gimple_assign_single_p.
16706 (ipa_get_stmt_member_ptr_load_param): Use gimple_assign_single_p.
16707 (ipa_analyze_call_uses): Use !gimple_assign_rhs2 rather than number of
16708 operands. Don't check number of operands of a NOP_EXPR.
16709
16710 2009-05-18 Eric Fisher <joefoxreal@gmail.com>
16711
16712 * doc/tree-ssa.texi (SSA Operands): Fix a mistake.
16713
16714 2009-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
16715
16716 PR c/40172
16717 * c-common.c (warn_logical_operator): Don't warn if one of
16718 expression isn't always true or false.
16719
16720 2009-05-17 Kai Tietz <kai.tietz@onevision.com>
16721
16722 * config/i386/biarch32.h: New file.
16723 * config.gcc: Add for target i386-w64-* the biarch32.h to tm_file.
16724
16725 2009-05-17 Adam Nemet <anemet@caviumnetworks.com>
16726
16727 * config/mips/mips.md (*zero_extend<mode>_trunchi,
16728 *zero_extend<mode>_truncqi): Merge these into ...
16729 (*zero_extend<GPR:mode>_trunc<SHORT:mode>): ... this new pattern.
16730 Name the pattern following this as *zero_extendhi_truncqi.
16731
16732 2009-05-16 Brad Lucier <lucier@math.purdue.edu>
16733
16734 PR middle-end/39301
16735 * hwint.h: Add macro HOST_WIDEST_INT_PRINT.
16736 * bitmap.c (bitmap_descriptor): Make fields HOST_WIDEST_INT.
16737 (output_info): Make field HOST_WIDEST_INT.
16738 (print_statistics): Use HOST_WIDEST_INT_PRINT.
16739 (dump_bitmat_statistics): Same.
16740
16741 2009-05-16 Francois-Xavier Coudert <fxcoudert@gmail.com>
16742
16743 * config.gcc (use_gcc_stdint): Set to wrap.
16744 * config/darwin.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
16745 INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
16746 UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
16747 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
16748 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
16749 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
16750 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
16751 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
16752
16753 2009-05-16 Joseph Myers <joseph@codesourcery.com>
16754
16755 * config.gcc (mips*-*-*): Support arch_32, arch_64, tune_32 and
16756 tune_64.
16757 * config/mips/mips.h (MIPS_ABI_DEFAULT, MULTILIB_ABI_DEFAULT):
16758 Move definitions earlier.
16759 (OPT_ARCH64, OPT_ARCH32): Define.
16760 (OPTION_DEFAULT_SPECS): Add entries for arch_32, arch_64, tune_32
16761 and tune_64.
16762
16763 2009-05-16 Richard Earnshaw <rearnsha@arm.com>
16764
16765 PR target/40153
16766 * arm.md (cstoresi_nltu_thumb1): Use a neg of ltu as the pattern name
16767 implies.
16768
16769 2009-05-16 Richard Earnshaw <rearnsha@arm.com>
16770
16771 * arm.md (movdi2): Copy non-reg values to DImode registers.
16772
16773 2009-05-16 Jakub Jelinek <jakub@redhat.com>
16774
16775 PR target/39942
16776 * final.c (label_to_max_skip): New function.
16777 (label_to_alignment): Only use LABEL_TO_ALIGNMENT if
16778 CODE_LABEL_NUMBER <= max_labelno.
16779 * output.h (label_to_max_skip): New prototype.
16780 * config/i386/i386.c (ix86_avoid_jump_misspredicts): Renamed to...
16781 (ix86_avoid_jump_mispredicts): ... this. Don't define if
16782 ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined. Update comment.
16783 Handle CODE_LABELs with >= 16 byte alignment or with
16784 max_skip == (1 << align) - 1.
16785 (ix86_reorg): Don't call ix86_avoid_jump_mispredicts if
16786 ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined.
16787
16788 PR target/39942
16789 * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Don't emit second
16790 .p2align 3 if MAX_SKIP is smaller than 7.
16791 * config/i386/linux.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
16792
16793 2009-05-15 Ian Lance Taylor <iant@google.com>
16794
16795 * alias.c (struct alias_set_entry_d): Rename from struct
16796 alias_set_entry. Change all uses.
16797 * except.c (struct call_site_record_d): Rename from struct
16798 call_site_record. Change all uses.
16799 * except.h (struct eh_region_d): Rename from struct eh_region.
16800 Change all uses.
16801 * gcse.c (struct hash_table_d): Rename from struct hash_table.
16802 Change all uses.
16803 * graphite.c (struct ivtype_map_elt_d): Rename fromstruct
16804 ivtype_map_elt. Change all uses.
16805 (struct rename_map_elt_d): Rename fromstruct rename_map_elt.
16806 Change all uses.
16807 (struct ifsese_d): Rename fromstruct ifsese. Change all uses.
16808 * graphite.h (struct name_tree_d): Rename from struct name_tree.
16809 Change all uses.
16810 (struct sese_d): Rename from struct sese. Change all uses.
16811 * omega.h (struct eqn_d): Rename from struct eqn. Change all uses.
16812 (struct omega_pb_d): Rename from struct omega_pb. Change all uses.
16813 * optabs.h (struct optab_d): Rename from struct optab. Change all
16814 uses.
16815 (struct convert_optab_d): Rename from struct convert_optab.
16816 Change all uses.
16817 * tree-pass.h (struct ipa_opt_pass_d): Rename fromstruct
16818 ipa_opt_pass. Change all uses.
16819 * tree-predcom.c (struct dref_d): Rename from struct dref. Change
16820 all uses.
16821
16822 * c-decl.c (pushtag): If -Wc++-compat, warn if the tag is already
16823 defined as a typedef.
16824 (grokdeclarator): If -Wc++-compat, warn if a typedef is already
16825 defined as a tag.
16826
16827 2009-05-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
16828
16829 PR 16302
16830 * fold-const.c (make_range,build_range_check,merge_ranges): Move
16831 declaration to...
16832 (merge_ranges): Returns bool.
16833 * tree.h (make_range): .. to here.
16834 (build_range_check): Likewise.
16835 (merge_ranges): Likewise. Renamed from merge_ranges.
16836 * c-typeck.c (parser_build_binary_op): Update calls to
16837 warn_logical_operator.
16838 * c-common.c (warn_logical_operator): Add new warning.
16839 * c-common.h (warn_logical_operator): Update declaration.
16840
16841 2009-05-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
16842
16843 * ira-conflicts.c (add_insn_allocno_copies): Fix wrong conditional.
16844
16845 2009-05-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16846
16847 * doc/install.texi: Document MPC requirements, flags etc.
16848
16849 * builtins.c (do_mpc_arg1, fold_builtin_ccos): New.
16850 (fold_builtin_cexp): Ensure we get a complex REAL_TYPE.
16851 Evaluate constant arguments.
16852 (fold_builtin_carg): Ensure we get a complex REAL_TYPE.
16853 (fold_builtin_1): Likewise, also evaluate constant arguments.
16854 Remove superfluous break.
16855 (do_mpc_ckconv): New.
16856 * real.h: Include mpc.h.
16857 * toplev.c (print_version): Output MPC version info if available.
16858
16859 2009-05-15 Sandra Loosemore <sandra@codesourcery.com>
16860
16861 * fold-const.c (fold_convert_const_real_from_real): Check for overflow.
16862
16863 2009-05-15 H.J. Lu <hongjiu.lu@intel.com>
16864
16865 * config/i386/i386.c (ix86_reorg): Call optimize_function_for_speed_p
16866 only once.
16867
16868 2009-05-15 Jan Hubicka <jh@suse.cz>
16869
16870 * doc/invoke.texi (max-early-inliner-iterations): New flag.
16871 * ipa-inline.c (enum inlining_mode): New INLINE_SIZE_NORECURSIVE.
16872 (try_inline): Fix return value.
16873 (cgraph_decide_inlining_incrementally): Honor new value.
16874 (cgraph_early_inlining): Handle indirect inlining.
16875 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): New.
16876
16877 2009-05-15 Jan Hubicka <jh@suse.cz>
16878
16879 * cgraph.h (struct cgraph_node): Add finalized_by_frotnend flag.
16880 * cgraphunit.c (cgraph_finalize_function): Set it.
16881 (cgraph_expand_function): Use it.
16882
16883 2009-05-15 Sandra Loosemore <sandra@codesourcery.com>
16884
16885 * real.c (encode_ieee_half): Define.
16886 (decode_ieee_half): Define.
16887 (ieee_half_format): Define.
16888 (arm_half_format): Define.
16889 * real.h (ieee_half_format): Declare.
16890 (arm_half_format): Declare.
16891
16892 2009-05-15 Sandra Loosemore <sandra@codesourcery.com>
16893
16894 * optabs.c (prepare_float_lib_cmp): Test that the comparison,
16895 swapped, and reversed optabs exist before trying to use them.
16896
16897 2009-05-15 Paul Brook <paul@codesourcery.com>
16898 Sandra Loosemore <sandra@codesourcery.com>
16899
16900 * config/arm/arm.c (neon_vector_mem_operand): Handle element/structure
16901 loads. Allow PRE_DEC.
16902 (output_move_neon): Handle PRE_DEC.
16903 (arm_print_operand): Add 'A' for neon structure loads.
16904 * config/arm/arm-protos.h (neon_vector_mem_operand): Update prototype.
16905 * config/arm/neon.md (neon_mov): Update comment.
16906 * config/arm/constraints.md (Un, Us): Update neon_vector_mem_operand
16907 calls.
16908 (Um): New constraint.
16909
16910 2009-05-15 Jan Hubicka <jh@suse.cz>
16911
16912 Revert the following patch until testsuite fallout is fixed:
16913 * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
16914 * cgraph.h (struct inline_summary): New filed self_wize,
16915 size_inlining_benefit, self_time and time_inlining_benefit.
16916 (struct cgraph_global_info): Replace insns by time ans size fields.
16917 * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
16918 (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
16919 (ipcp_update_callgraph): Do not touch function bodies.
16920 * ipa-inline.c: Include except.h
16921 (MAX_TIME): New constant.
16922 (overall_insns): Remove
16923 (overall_size, max_benefit): New static variables.
16924 (cgraph_estimate_time_after_inlining): New function.
16925 (cgraph_estimate_size_after_inlining): Rewrite using benefits.
16926 (cgraph_clone_inlined_nodes): Update size.
16927 (cgraph_mark_inline_edge): Update size.
16928 (cgraph_estimate_growth): Use size info.
16929 (cgraph_check_inline_limits): Check size.
16930 (cgraph_default_inline_p): Likewise.
16931 (cgraph_edge_badness): Compute badness based on benefit and size cost.
16932 (cgraph_decide_recursive_inlining): Check size.
16933 (cgraph_decide_inlining_of_small_function): Update size; dump sizes
16934 and times.
16935 (cgraph_decide_inlining): Likewise.
16936 (cgraph_decide_inlining_incrementally): Likewise; honor
16937 PARAM_EARLY_INLINING_INSNS.
16938 (likely_eliminated_by_inlining_p): New predicate.
16939 (estimate_function_body_sizes): New function.
16940 (compute_inline_parameters): Use it.
16941 * except.c (must_not_throw_labels): New function.
16942 * except.h (must_not_throw_labels): Declare.
16943 * tree-inline.c (init_inline_once): Kill inlining_weigths
16944 * tree-ssa-structalias.c: Avoid uninitialized warning.
16945 * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
16946 (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
16947 (PARAM_INLINE_CALL_COST): Remove.
16948 (PARAM_EARLY_INLINING_INSNS): New.
16949
16950 2009-05-15 Richard Guenther <rguenther@suse.de>
16951
16952 * tree-ssa-pre.c (eliminate): Use TODO_update_ssa_only_virtuals,
16953 not TODO_update_ssa.
16954
16955 2009-05-15 Richard Guenther <rguenther@suse.de>
16956
16957 PR tree-optimization/39999
16958 * gimple.h (gimple_expr_type): Use the expression type looking
16959 through useless conversions.
16960 * tree-ssa-sccvn.c (vn_nary_op_lookup_stmt): Use gimple_expr_type.
16961 (vn_nary_op_insert_stmt): Likewise.
16962 (simplify_binary_expression): Likewise.
16963
16964 2009-05-15 Richard Guenther <rguenther@suse.de>
16965
16966 * common.opt (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
16967 New options, enabled by default.
16968 * doc/invoke.texi (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
16969 Document.
16970 * tree-ssa-forwprop.c (gate_forwprop): Use flag_tree_forwprop.
16971 * tree-ssa-phiprop.c (gate_phiprop): Use flag_tree_phiprop.
16972 * tree-ssa-structalias.c (gate_tree_pta): New function.
16973 (pass_build_alias): Use it.
16974
16975 2009-05-15 Joseph Myers <joseph@codesourcery.com>
16976
16977 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
16978 recurse on an invariant address if a conversion from a pointer
16979 type to a wider integer type is involved.
16980
16981 2009-05-15 Jan Hubicka <jh@suse.cz>
16982
16983 * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
16984 * cgraph.h (struct inline_summary): New filed self_wize,
16985 size_inlining_benefit, self_time and time_inlining_benefit.
16986 (struct cgraph_global_info): Replace insns by time ans size fields.
16987 * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
16988 (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
16989 (ipcp_update_callgraph): Do not touch function bodies.
16990 * ipa-inline.c: Include except.h
16991 (MAX_TIME): New constant.
16992 (overall_insns): Remove
16993 (overall_size, max_benefit): New static variables.
16994 (cgraph_estimate_time_after_inlining): New function.
16995 (cgraph_estimate_size_after_inlining): Rewrite using benefits.
16996 (cgraph_clone_inlined_nodes): Update size.
16997 (cgraph_mark_inline_edge): Update size.
16998 (cgraph_estimate_growth): Use size info.
16999 (cgraph_check_inline_limits): Check size.
17000 (cgraph_default_inline_p): Likewise.
17001 (cgraph_edge_badness): Compute badness based on benefit and size cost.
17002 (cgraph_decide_recursive_inlining): Check size.
17003 (cgraph_decide_inlining_of_small_function): Update size; dump sizes
17004 and times.
17005 (cgraph_decide_inlining): Likewise.
17006 (cgraph_decide_inlining_incrementally): Likewise; honor
17007 PARAM_EARLY_INLINING_INSNS.
17008 (likely_eliminated_by_inlining_p): New predicate.
17009 (estimate_function_body_sizes): New function.
17010 (compute_inline_parameters): Use it.
17011 * except.c (must_not_throw_labels): New function.
17012 * except.h (must_not_throw_labels): Declare.
17013 * tree-inline.c (init_inline_once): Kill inlining_weigths
17014 * tree-ssa-structalias.c: Avoid uninitialized warning.
17015 * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
17016 (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
17017 (PARAM_INLINE_CALL_COST): Remove.
17018 (PARAM_EARLY_INLINING_INSNS): New.
17019 doc/invoke.texi (max-inline-insns-auto, early-inlining-insns): Update.
17020 (inline-call-cost): Remove.
17021 (early-inlining-insns): New.
17022
17023 2009-05-15 Eric Botcazou <ebotcazou@adacore.com>
17024
17025 * dbxout.c (dbxout_range_type): Add LOW and HIGH parameters. Use them
17026 for bounds.
17027 (print_int_cst_bounds_in_octal_p): Likewise.
17028 (dbxout_type): Adjust calls to above functions. Be prepared to deal
17029 with subtypes.
17030 * dwarf2out.c (base_type_die): Likewise.
17031 (is_subrange_type): Delete.
17032 (subrange_type_die): Add LOW and HIGH parameters. Use them for bounds.
17033 (modified_type_die): Call subrange_type_for_debug_p on subtypes.
17034 * fold-const.c (fold_truth_not_expr) <CONVERT_EXPR>: Do not strip it
17035 if the destination type is boolean.
17036 (build_range_check): Do not special-case subtypes.
17037 (fold_sign_changed_comparison): Likewise.
17038 (fold_unary): Likewise.
17039 * langhooks-def.h (LANG_HOOKS_GET_SUBRANGE_BOUNDS): Define.
17040 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_GET_SUBRANGE_BOUNDS.
17041 * langhooks.h (lang_hooks_for_types): Add get_subrange_bounds.
17042 * tree.c (subrange_type_for_debug_p): New predicate based on the
17043 former is_subrange_type.
17044 * tree.h (subrange_type_for_debug_p): Declare.
17045 * tree-chrec.c (avoid_arithmetics_in_type_p): Delete.
17046 (convert_affine_scev): Remove call to above function.
17047 (chrec_convert_aggressive): Likewise.
17048 * tree-ssa.c (useless_type_conversion_p_1): Do not specifically return
17049 false for conversions involving subtypes.
17050 * tree-vrp.c (vrp_val_max): Do not special-case subtypes.
17051 (vrp_val_min): Likewise.
17052 (needs_overflow_infinity): Likewise.
17053 (extract_range_from_unary_expr): Likewise.
17054
17055 2009-05-15 Paolo Bonzini <bonzini@gnu.org>
17056
17057 * config/frv/frv.h: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
17058 * config/frv/frv.c: Likewise.
17059 * config/s390/s390.c: Likewise.
17060 * config/sparc/sparc.h: Likewise.
17061 * config/i386/i386.h: Likewise.
17062 * config/i386/i386.c: Likewise.
17063 * config/crx/crx.c: Likewise.
17064 * config/m68hc11/m68hc11.h: Likewise.
17065 * config/iq2000/iq2000.c: Likewise.
17066 * config/mn10300/mn10300.h: Likewise.
17067 * config/mn10300/mn10300.c: Likewise.
17068 * config/m68k/m68k.c: Likewise.
17069 * config/rs6000/rs6000.c: Likewise.
17070 * config/rs6000/xcoff.h: Likewise.
17071 * config/rs6000/linux64.h: Likewise.
17072 * config/rs6000/sysv4.h: Likewise.
17073 * config/score/score3.c: Likewise.
17074 * config/score/score7.c: Likewise.
17075 * config/score/score.c: Likewise.
17076 * config/arm/arm.md: Likewise.
17077 * config/mips/mips.c: Likewise.
17078 * config/mips/mips.md: Likewise.
17079 * config/bfin/bfin.h: Likewise.
17080 * config/pa/pa.c: Likewise.
17081 * config/pa/constraints.md: Likewise.
17082
17083 * config/pdp11/pdp11-protos.h (legitimate_address_p): Delete.
17084 * config/pdp11/pdp11.c (legitimate_address_p): Delete.
17085 * config/pdp11/pdp11.h: Use memory_address_p instead.
17086
17087 2009-05-14 Ian Lance Taylor <iant@google.com>
17088
17089 * passes.c (finish_optimization_passes): Change i to int.
17090 * plugin.c (plugins_active_p): Change event to int.
17091 (dump_active_plugins): Likewise.
17092 * reginfo.c (invalid_mode_change_p): Change to to unsigned int.
17093 Add cast.
17094 * tree.c (tree_range_check_failed): Change c to unsigned int.
17095 (omp_clause_range_check_failed): Likewise.
17096 (build_common_builtin_nodes): Change mode to int. Add cast.
17097 * config/ia64/ia64.c (is_emitted): Change r to unsigned int.
17098 (ia64_hard_regno_rename_ok, ia64_eh_uses): Likewise.
17099
17100 * c-typeck.c (build_unary_op): If -Wc++-compat, warn about using
17101 ++ or -- with a variable of enum type.
17102
17103 2009-05-14 Steven Bosscher <steven@gcc.gnu.org>
17104
17105 PR driver/40144
17106 * opts.c (common_handle_option): Add OPT_fcse_skip_blocks as a no-op.
17107
17108 2009-05-14 Steven Bosscher <steven@gcc.gnu.org>
17109
17110 * store-motion.c: Do not include params.h
17111 * Makefile.in: Fix dependencies for various files.
17112
17113 2009-05-14 Steven Bosscher <steven@gcc.gnu.org>
17114
17115 * auto-inc-dec.c: Fix pass description, remove apparent
17116 accidental duplication.
17117
17118 2009-05-14 H.J. Lu <hongjiu.lu@intel.com>
17119
17120 PR middle-end/40147
17121 * ipa-utils.h (memory_identifier_string): Moved to ...
17122 * tree.h (memory_identifier_string): Here. Add GTY(()).
17123
17124 2009-05-14 Paolo Bonzini <bonzini@gnu.org>
17125
17126 * doc/tm.texi (TARGET_LEGITIMATE_ADDRESS_P): Refer mainly to this
17127 in the former documentation of...
17128 (GO_IF_LEGITIMATE_ADDRESS): ... this.
17129 * ira-conflicts.c (get_dup_num): Use address_operand.
17130 * targhooks.c (default_legitimate_address_p): New.
17131 * targhooks.h (default_legitimate_address_p): New.
17132 * reload.c (strict_memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]:
17133 Call hook.
17134 * recog.c (memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]: Call hook.
17135 * target.h (struct target): Add legitimate_address_p.
17136 * target-def.h (TARGET_LEGITIMATE_ADDRESS_P): New.
17137 (TARGET_INITIALIZER): Include it.
17138
17139 * config/alpha/alpha.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17140 * config/alpha/alpha-protos.h (alpha_legitimate_address_p): Remove.
17141 * config/alpha/alpha.c (alpha_legitimate_address_p): Make static.
17142 (TARGET_LEGITIMATE_ADDRESS_P): New.
17143
17144 * config/frv/frv.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17145 (REG_OK_STRICT_P): Delete.
17146 * config/frv/frv-protos.h (frv_legitimate_address_p): Rename to...
17147 (frv_legitimate_address_p_1): ... this.
17148 * config/frv/frv.c (frv_legitimate_address_p): Forward to...
17149 (frv_legitimate_address_p_1): ... the renamed old
17150 frv_legitimate_address_p.
17151 * config/frv/predicates.md: Adjust calls to frv_legitimate_address_p.
17152 (TARGET_LEGITIMATE_ADDRESS_P): New.
17153
17154 * config/s390/s390.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17155 * config/s390/s390-protos.h (legitimate_address_p): Remove.
17156 * config/s390/s390.c (legitimate_address_p): Rename to...
17157 (s390_legitimate_address_p): ... this, make static.
17158 (legitimize_address): Adjust call.
17159 (TARGET_LEGITIMATE_ADDRESS_P): New.
17160 * config/s390/constraints.md ("e"): Call strict_memory_address_p.
17161
17162 * config/m32c/m32c.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17163 * config/m32c/m32c-protos.h (m32c_legitimate_address_p): Remove.
17164 * config/m32c/m32c.c (m32c_legitimate_address_p): Make static.
17165 (TARGET_LEGITIMATE_ADDRESS_P): New.
17166
17167 * config/spu/spu.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17168 * config/spu/spu-protos.h (spu_legitimate_address): Remove.
17169 * config/spu/spu.c (spu_legitimate_address): Rename to...
17170 (spu_legitimate_address_p): ... this, make static.
17171 (TARGET_LEGITIMATE_ADDRESS_P): New.
17172
17173 * config/sparc/sparc.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17174 * config/sparc/sparc-protos.h (legitimate_address_p): Remove.
17175 * config/sparc/sparc.c (legitimate_address_p): Rename to...
17176 (sparc_legitimate_address_p): ... this, make static and return bool.
17177 (legitimize_address): Adjust call.
17178 (TARGET_LEGITIMATE_ADDRESS_P): New.
17179
17180 * config/i386/i386.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17181 * config/i386/i386-protos.h (legitimate_address_p): Remove.
17182 * config/i386/i386.c (legitimate_address_p): Rename to...
17183 (ix86_legitimate_address_p): ... this, make static.
17184 (constant_address_p): Move after it, adjust call.
17185 (TARGET_LEGITIMATE_ADDRESS_P): New.
17186
17187 * config/avr/avr.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17188 * config/avr/avr-protos.h (legitimate_address_p): Remove.
17189 * config/avr/avr.c (legitimate_address_p): Rename to...
17190 (avr_legitimate_address_p): ... this, make static.
17191 (legitimize_address): Adjust call.
17192 (TARGET_LEGITIMATE_ADDRESS_P): New.
17193
17194 * config/crx/crx.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17195 * config/crx/crx-protos.h (crx_legitimate_address_p): Remove.
17196 * config/crx/crx.c (crx_legitimate_address_p): Make static.
17197 (TARGET_LEGITIMATE_ADDRESS_P): New.
17198
17199 * config/xtensa/xtensa.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17200 * config/xtensa/xtensa-protos.h (xtensa_legitimate_address_p): Remove.
17201 * config/xtensa/xtensa.c (xtensa_legitimate_address_p): Make static.
17202 (TARGET_LEGITIMATE_ADDRESS_P): New.
17203
17204 * config/stormy16/stormy16.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17205 * config/stormy16/stormy16-protos.h (xstormy16_legitimate_address_p):
17206 Remove.
17207 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
17208 Make static.
17209 (TARGET_LEGITIMATE_ADDRESS_P): New.
17210
17211 * config/m68hc11/m68hc11.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17212 * config/m68hc11/m68hc11-protos.h (m68hc11_go_if_legitimate_address):
17213 Remove.
17214 * config/m68hc11/m68hc11.c (m68hc11_go_if_legitimate_address):
17215 Rename to...
17216 (m68hc11_legitimate_address_p): ... this, make static.
17217 (go_if_legitimate_address_internal): Rename to...
17218 (m68hc11_legitimate_address_p_1): ... this.
17219 (legitimize_address): Adjust call.
17220 (TARGET_LEGITIMATE_ADDRESS_P): New.
17221
17222 * config/iq2000/iq2000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17223 * config/iq2000/iq2000-protos.h (iq2000_legitimate_address_p): Remove.
17224 * config/iq2000/iq2000.c (iq2000_legitimate_address_p): Make static.
17225 (TARGET_LEGITIMATE_ADDRESS_P): New.
17226
17227 * config/mn10300/mn10300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17228 * config/mn10300/mn10300-protos.h (legitimate_address_p): Remove.
17229 * config/mn10300/mn10300.c (legitimate_address_p): Rename to...
17230 (mn10300_legitimate_address_p): ... this, make static.
17231 (TARGET_LEGITIMATE_ADDRESS_P): New.
17232
17233 * config/m68k/m68k.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17234 * config/m68k/m68k-protos.h (m68k_legitimate_address_p): Remove.
17235 * config/m68k/m68k.c (m68k_legitimate_address_p): Make static.
17236 (TARGET_LEGITIMATE_ADDRESS_P): New.
17237
17238 * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17239 (REG_OK_STRICT_FLAG, REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Delete.
17240 (INT_REG_OK_FOR_BASE_P, INT_REG_OK_FOR_INDEX_P): Move above.
17241 * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17242 * config/rs6000/rs6000-protos.h (rs6000_legitimate_address): Remove.
17243 * config/rs6000/rs6000.c (rs6000_legitimate_address): Rename to...
17244 (rs6000_legitimate_address_p): ... this, make static.
17245 (TARGET_LEGITIMATE_ADDRESS_P): New.
17246 (REG_MODE_OK_FOR_BASE_P): Delete.
17247 (rs6000_legitimize_reload_address): Use INT_REG_OK_FOR_BASE_P.
17248
17249 * config/picochip/picochip.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17250 * config/picochip/picochip-protos.h (picochip_legitimate_address_p):
17251 Delete.
17252 * config/picochip/picochip.c (picochip_legitimate_address_p): Make
17253 static, adjust types.
17254 (TARGET_LEGITIMATE_ADDRESS_P): New.
17255
17256 * config/score/score.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17257 * config/score/score.c (score_address_p): Rename to...
17258 (score_legitimate_address_p): ... this.
17259 (TARGET_LEGITIMATE_ADDRESS_P): New.
17260 * config/score/score3.c (score3_address_p): Rename to...
17261 (score3_legitimate_address_p): ... this.
17262 * config/score/score7.c (score7_address_p): Rename to...
17263 (score7_legitimate_address_p): ... this.
17264
17265 * config/arm/arm.h (ARM_GO_IF_LEGITIMATE_ADDRESS,
17266 THUMB2_GO_IF_LEGITIMATE_ADDRESS, THUMB1_GO_IF_LEGITIMATE_ADDRESS,
17267 GO_IF_LEGITIMATE_ADDRESS): Delete.
17268 * config/arm/arm-protos.h (thumb1_legitimate_address_p,
17269 thumb2_legitimate_address_p): Delete.
17270 (arm_legitimate_address_p): Rename to...
17271 (arm_legitimate_address_outer_p): ... this.
17272 * config/arm/constraints.md ("Uq"): Adjust call.
17273 * config/arm/predicates.md (arm_extendqisi_mem_op): Likewise.
17274 * config/arm/arm.c (arm_legitimate_address_p): New, rename old one
17275 to...
17276 (arm_legitimate_address_outer_p): ... this.
17277 (thumb1_legitimate_address_p, thumb2_legitimate_address_p): Make
17278 static.
17279 (TARGET_LEGITIMATE_ADDRESS_P): New.
17280
17281 * config/mips/mips.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17282 * config/mips/mips-protos.h (mips_legitimate_address_p): Remove.
17283 * config/mips/mips.c (mips_legitimate_address_p): ... Make static.
17284 (TARGET_LEGITIMATE_ADDRESS_P): New.
17285
17286 * config/vax/vax.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17287 * config/vax/vax-protos.h (legitimate_address_p): Remove.
17288 * config/vax/vax.c (legitimate_address_p): Rename to...
17289 (vax_legitimate_address_p): ... this, make static.
17290 (TARGET_LEGITIMATE_ADDRESS_P): New.
17291
17292 * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17293 * config/h8300/h8300-protos.h (h8300_legitimate_address_p): Remove.
17294 * config/h8300/h8300.c (h8300_legitimate_address_p): ... Make static.
17295 (TARGET_LEGITIMATE_ADDRESS_P): New.
17296
17297 * config/mmix/mmix.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17298 * config/mmix/mmix-protos.h (mmix_legitimize_address): Remove.
17299 * config/mmix/mmix.c (mmix_legitimate_address): Rename to...
17300 (mmix_legitimate_address_p): ... this, make static.
17301 (TARGET_LEGITIMATE_ADDRESS_P): New.
17302
17303 * config/bfin/bfin.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17304 * config/bfin/bfin-protos.h (bfin_legitimate_address_p): Remove.
17305 * config/bfin/bfin.c (bfin_legitimate_address_p): ... Make static.
17306 (TARGET_LEGITIMATE_ADDRESS_P): New.
17307
17308 2009-05-14 Paolo Bonzini <bonzini@gnu.org>
17309
17310 * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Remove handling
17311 of MODE_COMPLEX_INT.
17312
17313 2009-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
17314
17315 * config/alpha/alpha.c (alpha_initialize_trampoline): Change 0 to
17316 LCT_NORMAL in function call.
17317 * mips-tdump.c (print_file_desc): Add cast to enum type.
17318 * mips-tfile.c (add_ext_symbol): Add casts to enum types.
17319 (mark_stabs): Add casts to enum types.
17320 (parse_stabs_common): Add casts to enum types.
17321
17322 2009-05-13 Adam Nemet <anemet@caviumnetworks.com>
17323
17324 * config/mips/mips.c (mips_print_operand) <REG, MEM, default>:
17325 Check for invalid values of LETTER.
17326
17327 2009-05-13 Taras Glek <tglek@mozilla.com>
17328
17329 * attribs.c (register_attribute): moved out attribute registration
17330 into register_attribute.
17331 * doc/plugins.texi: Documented register_attribute and
17332 PLUGIN_ATTRIBUTES.
17333 * gcc-plugin.h: Added forward decl for register_attribute.
17334 * gcc-plugin.h (plugins_event): Added PLUGIN_ATTRIBUTES.
17335 * plugin.c (register_callback, invoke_plugin_callbacks): Added
17336 PLUGIN_ATTRIBUTES boilerplate.
17337
17338 2009-05-14 Dave Korn <dave.korn.cygwin@gmail.com>
17339
17340 * config/i386/msformat-c.c (ms_printf_length_specs): Use enumeration
17341 values even in sentinel and empty entries.
17342 (ms_printf_flag_specs): Likewise.
17343 (ms_scanf_flag_specs): Likewise.
17344 (ms_strftime_flag_specs): Likewise.
17345 (ms_print_char_table): Likewise.
17346 (ms_scan_char_table): Likewise.
17347 (ms_time_char_table): Likewise.
17348
17349 2009-05-13 Doug Kwan <dougkwan@google.com>
17350
17351 * tree-ssa-sccvn.c (compare_ops): Stabilize qsort.
17352
17353 2009-05-13 Adam Nemet <anemet@caviumnetworks.com>
17354
17355 * config/mips/mips.md (store): Add attributes for QI and HI.
17356 Update comment.
17357 (truncdisi2, truncdihi2, truncdiqi2): Merge these into ...
17358 (truncdi<mode>2): ... this new pattern.
17359
17360 2009-05-13 Brad Hards <bradh@kde.org>
17361
17362 * Makefile.in (TEXI_GCCINT_FILES): Add plugins.texi.
17363
17364 2009-05-14 Jakub Jelinek <jakub@redhat.com>
17365 Ben Elliston <bje@au.ibm.com>
17366
17367 PR middle-end/40035
17368 * dse.c (check_mem_read_rtx): Guard against width == -1.
17369
17370 2009-05-13 Michael Matz <matz@suse.de>
17371
17372 PR middle-end/39976
17373 * tree-outof-ssa.c (maybe_renumber_stmts_bb): New function.
17374 (trivially_conflicts_p): New function.
17375 (insert_backedge_copies): Use it.
17376
17377 2009-05-13 Janis Johnson <janis187@us.ibm.com>
17378
17379 * c-pragma.c (enum pragma_switch_t): Prefix constants with PRAGMA_.
17380 (handle_stdc_pragma): Use new enum constant names.
17381 (handle_pragma_float_const_decimal64): Ditto.
17382
17383 2009-05-13 Ian Lance Taylor <iant@google.com>
17384
17385 * Makefile.in (build/gencheck.o): Depend upon all-tree.def, not
17386 tree.def.
17387
17388 2009-05-13 Nathan Sidwell <nathan@codesourcery.com>
17389
17390 * config/m68k/t-uclinux (M68K_MLIB_CPU): Check for FL_UCLINUX.
17391 * config/m68k/m68k-devices.def: Add FL_UCLINUX to 68020 and 54455
17392 multilibs.
17393 * config/m68k/m68k.h (FL_UCLINUX): Define.
17394
17395 2009-05-13 Jan Hubicka <jh@suse.cz>
17396
17397 * options.c (gfc_post_options): -fwhole-program imply -fwhole-file.
17398
17399 2009-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
17400
17401 * config/sh/sh.h (OVERRIDE_OPTIONS): Clear flag_schedule_insns
17402 unless -fschedule-insns is specified.
17403
17404 2009-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
17405
17406 PR target/39561
17407 * config/sh/sh.h (OPTIMIZATION_OPTIONS): Don't set
17408 TARGET_EXPAND_CBRANCHDI4.
17409 * config/sh/sh.md (cbranchdi4): Don't check TARGET_EXPAND_CBRANCHDI4.
17410 * config/sh/sh.opt (mexpand-cbranchdi): Remove.
17411 (cmpeqdi): Fix comment.
17412
17413 2009-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
17414
17415 * config/sh/sh-protos.h (sh_legitimate_index_p): Declare.
17416 (sh_legitimate_address_p): Likewise.
17417 * config/sh/sh.c (sh_legitimate_index_p): New.
17418 (sh_legitimate_address_p): Likewise.
17419 * config/sh/sh.h (REG_OK_FOR_BASE_P): Add STRICT parameter.
17420 (REG_OK_FOR_INDEX_P, SUBREG_OK_FOR_INDEX_P): Likewise.
17421 (MODE_DISP_OK_4, MODE_DISP_OK_8): Remove.
17422 (MAYBE_BASE_REGISTER_RTX_P): New macro.
17423 (MAYBE_INDEX_REGISTER_RTX_P): Likewise.
17424 (BASE_REGISTER_RTX_P): Use MAYBE_BASE_REGISTER_RTX_P.
17425 (INDEX_REGISTER_RTX_P): Use MAYBE_INDEX_REGISTER_RTX_P.
17426 (GO_IF_LEGITIMATE_INDEX): Use sh_legitimate_index_p.
17427 (GO_IF_LEGITIMATE_ADDRESS): Use sh_legitimate_address_p.
17428
17429 2009-05-12 Jan Hubicka <jh@suse.cz>
17430
17431 * tree-inline.c (estimate_operator_cost): Add operands;
17432 when division happens by constant, it is cheap.
17433 (estimate_num_insns): Loads and stores are not having cost of 0;
17434 EH magic stuff is cheap; when computing runtime cost of switch,
17435 use log2 base of amount of its cases; builtin_expect has cost of 0;
17436 compute cost for moving return value of call.
17437 (init_inline_once): Initialize time_based flags.
17438 * tree-inline.h (eni_weights_d): Add time_based flag.
17439
17440 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
17441
17442 * df-core.c: Update head documentation.
17443
17444 2009-05-12 Michael Meissner <meissner@linux.vnet.ibm.com>
17445
17446 PR bootstrap/40118
17447 * rs6000.c (rs6000_generate_compare): Use op1b instead of
17448 shadowing exisiting variable op1.
17449
17450 2009-05-12 Uros Bizjak <ubizjak@gmail.com>
17451
17452 PR target/37179
17453 * config/i386/driver-i386.c (processor_signatures): New enum.
17454 (SIG_GEODE): Move from vendor_signatures to processor_signatures.
17455 (host_detect_local_cpu): For SIG_AMD vendor, check for SIG_GEODE
17456 processor signature to detect geode processor.
17457
17458 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
17459
17460 Revert:
17461
17462 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
17463
17464 * optabs.c (prepare_cmp_insn): Temporarily disable test that
17465 causes spurious differences between trunk and cond-optab branch.
17466
17467 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
17468
17469 * dojump.c (compare_from_rtx): Delete.
17470 * expmed.c (emit_store_flag): Only try cstore_optab. Canonicalize
17471 any MODE_CC mode to the cstorecc4 pattern. Use prepare_operand, fail
17472 if the comparison does not satisfy the predicate; test predicates for
17473 operands 2 and 3 of a cstore pattern. Don't try cstore optab
17474 further if one existing pattern fails.
17475 * expr.h (compare_from_rtx): Delete.
17476 (prepare_operand): Declare it.
17477 * optabs.c: Change "lib call" to "libcall" throughout.
17478 (bcc_gen_fctn, setcc_gen_code, trap_rtx,
17479 HAVE_conditional_trap, emit_cmp_insn): Delete.
17480 (can_compare_p): Delete cmp_optab case.
17481 (prepare_float_lib_cmp): Return an rtx and a machine mode.
17482 Accept other parameters by value.
17483 (prepare_operand): Make non-static.
17484 (prepare_cmp_insn): Return an rtx and a machine mode. Accept
17485 other parameters by value. Try to widen operands here based on
17486 an optab_methods argument and looking at cbranch_optab.
17487 (emit_cmp_and_jump_insn_1): Accept test and mode, remove widening
17488 loop. Use cbranch_optab directly.
17489 (emit_cmp_and_jump_insns): Fix comment. Adjust call to
17490 prepare_cmp_insn and emit_cmp_and_jump_insn_1, remove obsolete
17491 assertion.
17492 (emit_conditional_move, emit_conditional_add): Inline what's needed
17493 of compare_from_rtx, using new prepare_cmp_insn for the rest.
17494 (init_optabs): Init cmp_optab with UNKNOWN, cbranch_optab
17495 with COMPARE. Move cmov_optab and cstore_optab above
17496 with cbranch_optab, move cmp_optab down with ucmp_optab,
17497 remove tst_otpab. Do not initialize trap_rtx.
17498 (gen_cond_trap): Do it here. Use ctrap_optab. Test predicate
17499 for trap code. Do not check HAVE_conditional_trap. Use
17500 prepare_cmp_insn. Accept no predicate for operand 3.
17501 * optabs.h (OTI_cmp): Mark as used only for libcalls.
17502 (OTI_ctrap, ctrap_optab): New.
17503 (tst_optab): Delete.
17504 (bcc_gen_fctn, setcc_gen_code, emit_cmp_insn): Delete.
17505 * ifcvt.c (find_if_header): Replace HAVE_conditional_trap
17506 with lookup of ctrap_optab.
17507 * genopinit.c (cmp_optab, tst_optab, bcc_gen_fctn, setcc_gen_code):
17508 Delete.
17509 (ctrap_optab): New.
17510
17511 * combine.c (combine_simplify_rtx, simplify_set): Do not
17512 special case comparing against zero for cc0 machines.
17513 * simplify-rtx.c (simplify_binary_operation_1): Never remove
17514 COMPARE on cc0 machines.
17515 (simplify_relational_operation): Return a new expression when
17516 a COMPARE could be removed.
17517 * final.c (final_scan_insn): Compare cc_status values
17518 against LHS of a (compare FOO (const_int 0)) cc0 source.
17519 Also check if cc_status.value is the full compare.
17520
17521 * doc/md.texi (bCC, sCC, tstMM, cmpMM): Delete.
17522 (cstoreMM4): Document.
17523 (conditional_trap): Document ctrapMM4 instead.
17524 (sync_compare_and_swapMM): Refer to cbranchcc4.
17525 (Dependent Patterns): Eliminate obsolete information referring to
17526 the old jump optimization phase.
17527 (Canonicalization): Include cbranchcc4 case, omit canonicalization
17528 of compares with 0 on cc0 machines.
17529 (Jump Patterns): Refer to MODE_CC jump patterns preferably,
17530 avoiding references to cc0. Remove text about storing operands
17531 in cmpMM.
17532 * doc/tm.texi (Condition Codes): Include blurb on different
17533 condition code representations, separate into subsections for
17534 CC0, MODE_CC and conditional execution.
17535
17536 * config/alpha/alpha-protos.h (alpha_emit_conditional_branch,
17537 alpha_emit_setcc): Accept operands and a machine mode.
17538 * config/alpha/alpha.c (alpha_emit_conditional_branch):
17539 Get code/op0/op1 from operands, use machine mode argument
17540 instead of alpha_compare.fp_p. Emit the branch here.
17541 (alpha_emit_setcc): Likewise, and return boolean.
17542 (alpha_emit_conditional_move): Likewise. Assert that
17543 cmp_op_mode == cmp_mode, and simplify accordingly.
17544 * config/alpha/alpha.h (struct alpha_compare, alpha_compare): Delete.
17545 * config/alpha/alpha.md (cmpdf, cmptf, cmpdi, bCC, sCC): Delete.
17546 (cbranchdf4, cbranchtf4, cbranchdi4, cstoredf4, cstoretf4,cstoredi4):
17547 Delete.
17548 (stack probe test): Use cbranchdi4.
17549 * config/alpha/predicates.md (alpha_cbranch_operator): New.
17550
17551 * config/arc/arc.c (gen_compare_reg): Do not emit cmp.
17552 * config/arc/arc.h (movsicc, movsfcc): Use it.
17553 (movdicc, *movdicc_insn, movdfcc, *movdfcc_insn): Remove.
17554 (cbranchsi4, cstoresi4): New.
17555 (cmpsi, bCC and sCC expanders): Remove.
17556
17557 * config/arm/arm.c (arm_compare_op0, arm_compare_op1): Delete.
17558 * config/arm/arm.h (arm_compare_op0, arm_compare_op1): Delete.
17559 * config/arm/predicates.md (arm_comparison_operator): Only include
17560 floating-point operators if there is a hardware floating-point unit.
17561 * config/arm/arm.md (cbranchsi4, cstoresi4): Enable for TARGET_32BIT,
17562 deferring to cbranch_cc and cstore_cc respectively.
17563 (cbranchsf4, cbranchdf4, cbranchdi4, cstoresf4, cstoredf4, cstoredi4,
17564 cbranch_cc, cstore_cc): New.
17565 (movsicc, movsfcc, movdfcc): Do not use arm_compare_op0 and
17566 arm_compare_op1.
17567 (bCC, sCC, cmpsi, cmpsf, cmpdf, cmpdi): Delete.
17568
17569 * config/avr/avr-protos.h (out_tstsi, out_tsthi): Adjust prototype.
17570 * config/avr/avr.c (out_tstsi, out_tsthi): Get the tested operand
17571 as an argument.
17572 (adjust_insn_length): Adjust calls.
17573 (avr_reorg): Handle (compare (foo) (const_int 0)).
17574 * config/avr/avr.md (tstqi, tsthi, tstsi): Remove.
17575 (*negated_tstqi, *negated_tsthi, *negated_tstsi): Unmacroize.
17576 (*reversed_tsthi, *reversed_tstsi): Add a scratch for simplicity.
17577 (cmpqi, cmphi, cmpsi): Prepend asterisk, fuse tst[qhs]i here.
17578 (bCC): Remove.
17579 (cbranchqi4, cbranchhi4, cbranchsi4): New.
17580 (tst -> sbrc/sbrs peephole2, cpse peephole): Wrap RHS with COMPARE.
17581
17582 * config/bfin/bfin.md (cmpbi, cmpsi, bCC, sCC): Delete.
17583 (cbranchsi4, cstorebi4, cstoresi4): New.
17584 (movbisi): This insn is duplicate, split it to zero_extend.
17585 * config/bfin/bfin.c (bfin_compare_op0, bfin_compare_op1): Delete
17586 (bfin_gen_compare): Do not use them. Emit VOIDmode SET, not BImode.
17587 (bfin_optimize_loop): Use cbranch expander.
17588 * config/bfin/bfin.h (bfin_compare_op0, bfin_compare_op1): Delete.
17589 * config/bfin/predicates.md (bfin_cbranch_operator): Rename to...
17590 (bfin_bimode_comparison_operator): ... this.
17591 (bfin_direct_comparison_operator): New.
17592
17593 * config/cris/cris.c (cris_normal_notice_update_cc): Look
17594 inside (compare FOO (const_int 0)).
17595 (cris_rtx_costs): Handle ZERO_EXTRACT.
17596 * config/cris/cris.md (tstdi, tst<mode>, cmpdi): Delete.
17597 (*tstdi_non_v32): Fold in *cmpdi_non_v32.
17598 (*tstdi_v32): Delete.
17599 (*cmpdi_non_v32): Add M alternative for operand 1.
17600 (cmpsi, cmp<mode>): Make private.
17601 (*tstsi, *tst<mode>_cmp, *tst<mode>_non_cmp, *btst): Wrap LHS
17602 with COMPARE.
17603 (cbranch<mode>4, cbranchdi4, cstore<mode>4): New.
17604
17605 * config/crx/crx.md (cstore<mode>4, cbranchcc4): New.
17606 (cmp<mode>, bCOND_internal, b<code>, s<code>): Delete.
17607 (cbranch<mode>4, sCOND_internal): Use ordered_comparison_operator.
17608 (cc_reg_operand): New.
17609 (any_cond): Delete.
17610 * config/crx/crx.c (crx_compare_op0, crx_compare_op1,
17611 crx_expand_compare, crx_expand_branch, crx_expand_scond): Delete.
17612 * config/crx/crx.h (crx_compare_op0, crx_compare_op1): Delete.
17613 * config/crx/crx-protos.h (crx_expand_compare, crx_expand_branch,
17614 crx_expand_scond): Delete.
17615
17616 * config/fr30/fr30.md (cmp<mode>, bCC): Delete.
17617 (cbranchsi4): New.
17618 * config/fr30/fr30.c (fr30_compare_op0, fr30_compare_op1): Delete
17619 * config/fr30/fr30.h (fr30_compare_op0, fr30_compare_op1): Delete.
17620
17621 * config/frv/frv.md (cbranchsi4, cbranchsf4, cbranchdf4,
17622 cstoresi4, cstoresf4, cstoredf4): New.
17623 (cmpdi, cmpsi, cmpsf, cmpdf, bCC, sCC): Remove.
17624 * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
17625 Receive the entire operands array.
17626 * config/frv/frv.h (frv_compare_op0, frv_compare_op1): Delete.
17627 * config/frv/frv.c (frv_compare_op0, frv_compare_op1): Delete.
17628 * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
17629 Get test/op0/op1 from the operands array.
17630 (frv_emit_cond_move): Get test/op0/op1 from the test_rtx.
17631
17632 * config/h8300/h8300-protos.h (h8300_expand_branch): Accept operands.
17633 (h8300_expand_store): New.
17634 * config/h8300/h8300.c (h8300_rtx_costs): Handle (compare FOO
17635 (const_int 0)).
17636 (h8300_expand_branch): Emit compare here. Adjust for new arguments.
17637 (h8300_expand_store): New.
17638 * config/h8300/h8300.md (btst combine patterns): Wrap with COMPARE
17639 or do not try to produce (set (cc0) REG).
17640 (peepholes): Wrap arguments with COMPARE. Add a peephole to
17641 change a compare into a move to a scratch register. Disable some
17642 peepholes when comparing with zero.
17643 (tstsi, tsthi, tstsi, cmpqi): Make private.
17644 (cmphi): Delete.
17645 (bCC, sCC): Delete.
17646 (cbranchqi4, cbranchhi4, cbranchsi4, cstoreqi4, cstorehi4,
17647 cstoresi4): New.
17648
17649 * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_int_addcc,
17650 ix86_expand_fp_movcc): Set ix86_compare_op0 and ix86_compare_op1.
17651 (ix86_emit_i387_log1p): Use gen_cbranchxf4.
17652 (ix86_emit_i387_log1p): Use cbranchxf2.
17653 (ix86_expand_setcc): Return void.
17654 * config/i386/i386-protos.h (ix86_expand_setcc): Return void.
17655 * config/i386/i386.md (cmpti, cmpdi, cmpsi, cmphi, cmpqi, cmpxf,
17656 cmp<MODEF>, cmpcc): Remove.
17657 (cbranchti4, cbranchdi4, cbranchsi4, cbranchhi4, cbranchqi4,
17658 cbranchxf4, cbranch<MODEF>4, cbranchcc4, cstoredi4, cstoresi4,
17659 cstorehi4, cstoreqi4, cstorexf4, cstore<MODEF>4, cstorecc): New.
17660 (sCC and bCC expanders): Remove.
17661 (stack_protect_test): Use cbranchcc4.
17662
17663 * config/ia64/ia64-protos.h (ia64_compare_op0, ia64_compare_op1):
17664 Delete.
17665 (ia64_expand_compare): Accept three rtx by reference and return void.
17666 * config/ia64/ia64.c (ia64_compare_op0, ia64_compare_op1): Delete.
17667 (ia64_expand_compare): Replace op0/op1 with *op0/*op1. Get code
17668 from *expr. Update *expr with the BImode comparison to do.
17669 * config/ia64/ia64.md (cmpbi, cmpsi, cmpdi, cmpsf, cmpdf, cmpxf,
17670 cmptf, bCC, sCC, conditional_trap): Delete.
17671 (cbranchbi4, cbranchsi4, cbranchdi4, cbranchsf4, cbranchdf4,
17672 cbranchxf4, cbranchtf4, cstorebi4, cstoresi4, cstoredi4, cstoresf4,
17673 cstoredf4, cstorexf4, cstoretf4, ctrapbi4, ctrapsi4, ctrapdi4,
17674 ctrapsf4, ctrapdf4, ctrapxf4, ctraptf4): New.
17675 * config/ia64/predicates.md (ia64_cbranch_operator): New.
17676
17677 * config/iq2000/iq2000-protos.h (gen_conditional_branch): Change
17678 type of last argument.
17679 * config/iq2000/iq2000.c (branch_cmp, branch_type): Remove.
17680 (gen_conditional_branch): Get code/cmp0/cmp1 from operands,
17681 use machine mode argument instead of branch_type. Remove dead
17682 code for floating-point comparisons.
17683 * config/iq2000/iq2000.h (branch_cmp, branch_type): Remove.
17684 * config/iq2000/iq2000.md (cmpsi, cmpdi, cmpsf, cmpdf, tstsi, bCC):
17685 Remove.
17686 (cbranchsi4, cstoresi4): New.
17687 * config/iq2000/predicates.md (reg_or_const_operand): New.
17688
17689 * config/m32c/m32c.md (cbranch splitter): Use match_op_dup.
17690 * config/m32c/m32c.md (any_cond, gl_cond): Delete.
17691 (b<code>_op): Rewrite to...
17692 (bcc_op): ... this, using match_operator.
17693 (s<code>_op): Rewrite to...
17694 (scc_op): ... this, using match_operator.
17695 (s<code>_24_op): Rewrite to...
17696 (scc_op_24): ... this, using match_operator.
17697 (s<code>_<mode>): Rewrite to...
17698 (cstore<mode>4): ... this, using match_operator.
17699 (s<code>_<mode>_24): Rewrite to...
17700 (cstore<mode>4_24): ... this, using match_operator.
17701 * config/m32c/m32c-protos.h (m32c_cmp_flg_0, m32c_pend_compare,
17702 m32c_unpend_compare, m32c_expand_scc): Delete.
17703 * config/m32c/m32c.c (compare_op0, compare_op1, m32c_cmp_flg_0,
17704 m32c_pend_compare, m32c_unpend_compare, m32c_expand_scc): Delete.
17705 (m32c_expand_movcc): Change NE to EQ if necessary.
17706 (m32c_init_libfuncs): Modify cstore optab instead of setcc_gen_code.
17707
17708 * config/m32r/m32r-protos.h (gen_cond_store): New.
17709 * config/m32r/m32r.c (m32r_compare_op0, m32r_compare_op1): Delete.
17710 (gen_cond_store): New, from sCC patterns.
17711 (m32r_expand_block_move): Use cbranchsi4.
17712 * config/m32r/m32r.h (m32r_compare_op0, m32r_compare_op1): Delete.
17713 * config/m32r/m32r.md (cmpsi, bCC, sCC): Delete.
17714 (cbranchsi4, cstoresi4): New.
17715
17716 * config/m68hc11/m68hc11.c (m68hc11_compare_op0, m68hc11_compare_op1):
17717 Delete.
17718 (m68hc11_rtx_costs_1, m68hc11_rtx_costs): Handle ZERO_EXTRACT.
17719 (m68hc11_notice_update_cc): Look into a compare with 0.
17720 * config/m68hc11/m68hc11.h (m68hc11_compare_op0, m68hc11_compare_op1):
17721 Delete.
17722 * config/m68hc11/m68hc11.md (tstsi, tsthi, tstqi, cmpsi,
17723 cmphi, cmpqi, bCC): Delete.
17724 (cbranchsi4, cbranchhi4, cbranchqi4): New.
17725 (tstqi_1, tstqi_z_used, tstqi_1, bitcmpqi, bitcmpqi_z_used,
17726 bitcmpqi_12, bitcmphi, various splits and peephole2s): Wrap cc0<-reg
17727 sets with COMPARE.
17728
17729 * config/m68k/predicates.md (m68k_cstore_comparison_operator,
17730 const0_operand, const1_operand, m68k_subword_comparison_operand): New.
17731 * config/m68k/constraints.md (H): New.
17732 * config/m68k/m68k.md (tstdi): Remove define_expand, use name for
17733 the define_insn below.
17734 (tstsi, tsthi, tst<FP:mode>, cmphi, cmpqi, cmp<FP:mode>): Delete.
17735 (*tstsi_internal_68020_cf, *tstsi_internal, *tsthi_internal,
17736 *tstqi_internal, tst<mode>_6881, tst<mode>_cf, many unnamed
17737 patterns): Wrap RHS with COMPARE.
17738 (tst<FP>_68881, tst<FP>_cf): Use const0_operand.
17739 (*cmpdi_internal): Name this pattern.
17740 (cmpdi): Change to define_insn.
17741 (cbranchdi4, cstoredi4, cbranchsi4, cstoresi4, cbranchhi4, cstorehi4,
17742 cbranchqi4, cstoreqi4, cbranch<FP:mode>4, cstore<FP:mode>4): New.
17743 (scc0_di, scc0_di_5200, scc_di): Use the ordered_comparison_operator
17744 predicate.
17745 (seq, sne, sgt, sgtu, slt, sltu, sge, sgeu, sle, sleu, sordered,
17746 sunordered, suneq, sunge, sungt, sunle, sunlt, sltgt): Delete
17747 (conditional_trap): Change to...
17748 (ctrapdi4, ctrapsi4, ctraphi4, ctrapqi4): ... these.
17749 (*conditional_trap): Use the ordered_comparison_operator and
17750 const1_operand predicates.
17751 * config/m68k/m68k.c (m68k_last_compare_had_fp_operands): Delete.
17752 (m68k_expand_prologue): Use ctrapsi4 instead of cmpsi+conditional_trap.
17753 (m68k_rtx_costs): Look for ZERO_EXTRACT in a COMPARE.
17754 * config/m68k/m68k.h (m68k_last_compare_had_fp_operands): Delete.
17755
17756 * config/mcore/mcore-protos.h (arch_compare_op0, arch_compare_op1,
17757 mcore_modify_comparison, mcore_gen_compare_reg): Remove.
17758 (mcore_gen_compare): New.
17759 * config/mcore/mcore.c (arch_compare_op0, arch_compare_op1): Delete.
17760 (mcore_modify_comparison, mcore_gen_compare_reg): Fold into...
17761 (mcore_gen_compare): ... this.
17762 * config/mcore/mcore.md (cmpsi, bCC, sCC): Remove.
17763 (cbranchsi4, cstoresi4): New, using mcore_gen_compare.
17764 (stack probe pattern): Use cbranchsi4.
17765
17766 * config/mips/predicates.md (mips_cstore_operator): New.
17767 * config/mips/mips-ps-3d.md (movv2sfcc): Do not use cmp_operands.
17768 * config/mips/mips.md (any_cond): Delete.
17769 (conditional_trap): Rename to ctrap<GPR:mode>4. Adjust predicates,
17770 always succeed.
17771 (fixuns_truncdfsi2, fixuns_truncdfdi2, fixuns_truncsfsi2,
17772 fixuns_truncsfdi2): Use cbranch patterns.
17773 (cmp<GPR:mode>, cmp<SCALARF:mode>): Delete.
17774 (b<code>): Change to cbranch<GPR:mode>4 and cbranch<SCALARF:mode>4.
17775 Adjust call to mips_expand_conditional_branch.
17776 (seq, sne, slt<u>, sle<u>, sgt<u>, sge<u>): Change to
17777 cstore<GPR:mode>4.
17778 * config/mips/mips-protos.h (mips_expand_conditional_branch,
17779 mips_expand_scc, mips_expand_conditional_trap): Adjust prototypes.
17780 * config/mips/mips.c (cmp_operands): Delete.
17781 (mips_emit_compare): Get comparison operands from *op0/*op1.
17782 (mips_expand_scc): Get code/op0/op1/target from operands. Assert
17783 that it succeeds. Use op0/op1 instead of cmp_operands.
17784 (mips_expand_conditional_branch, mips_expand_conditional_move,
17785 mips_expand_conditional_trap): Likewise.
17786 (mips_block_move_loop): Use cbranch patterns.
17787 * config/mips/mips.h (cmp_operands): Delete.
17788
17789 * config/mmix/mmix.c (mmix_valid_comparison): Delete.
17790 (mmix_gen_compare_reg): Just return a register in the right CC mode.
17791 * config/mmix/mmix.h (mmix_compare_op0, mmix_compare_op1): New.
17792 * config/mmix/mmix.md (cmpdi, cmpdf): Remove.
17793 (*cmpcc_folded): Rename to...
17794 (*cmpdi_folded): this.
17795 (*cmpcc): Rename to...
17796 (*cmps): ... this.
17797 (movdfcc, movdicc): Adjust for new semantics of mmix_gen_compare_reg.
17798 (bCC): Remove.
17799 (cbranchdi4): New.
17800 (cbranchdf4): New. Handle invalid comparisons here.
17801 * config/mmix/predicates.md (float_comparison_operator): New.
17802
17803 * config/mn10300/mn10300.c (mn10300_rtx_costs): Consider 0 and
17804 zero_extract to be cheap in (compare (zero_extract) (const_int 0).
17805 * config/mn10300/mn10300.md (tst): Delete.
17806 (*tst_extqisi_am33, *tst_extqisi, *tst_exthisi_am33, *tst_exthisi):
17807 Name these patterns and wrap RHS in a compare.
17808 (*cmpsi): Make this pattern private. Include tst.
17809 (*cmpsf): Make this pattern private.
17810 (and and zero_extract cc0 set): Wrap RHS in a COMPARE.
17811 (compare with zero peepholes): Likewise.
17812 (bCC): Remove.
17813 (cbranchsi4, cbranchsf4): New.
17814 (casesi): Use cbranchsi4.
17815
17816 * config/pa/pa.c (hppa_compare_op0, hppa_compare_op1,
17817 hppa_branch_type): Delete.
17818 (return_addr_rtx): Use cbranchsi4.
17819 (emit_bcond_fp): Accept all operands. Replace CODE with NE.
17820 Emit CCFPmode comparison here.
17821 (gen_cmp_fp): Delete, now part of emit_bcond_fp.
17822 * config/pa/pa.h (enum cmp_type, hppa_compare_op0, hppa_compare_op1,
17823 hppa_branch_type): Delete.
17824 * config/pa/pa.md (cmpdi, cmpsi, cmpsf, cmpdf, sCC, bCC): Delete.
17825 (movsicc, movdicc): Remove references to hppa_compare_op0,
17826 hppa_compare_op1 and compare_from_rtx.
17827 (cbranchdi4, cbranchsi4, cbranchsf4, cbranchdf4, cstoresi4): New.
17828 (casesi): Use cbranchsi4.
17829
17830 * config/pdp11/pdp11-protos.h (output_jump): Change prototype.
17831 * config/pdp11/pdp11.c (output_jump): Embed opcodes here.
17832 * config/pdp11/pdp11.md (register_or_const0_operand): New.
17833 (cmpdf, cmphi, cmpqi): Make private. Add tst alternatives.
17834 (cmpsi, tstsi, tstdf, tsthi, tstqi): Delete.
17835 (bCC): Delete.
17836 (cbranchdf4, cbranchhi4, cbranchqi4): New.
17837 (*branch, *branch_inverted): New.
17838
17839 * config/picochip/picochip.md (cbranchhi4): Use
17840 ordered_comparison_operator.
17841 (cmphi, bCC): Remove.
17842
17843 * config/rs6000/predicates.md (rs6000_cbranch_operator): New.
17844 (trap_comparison_operator): Delete.
17845 * config/rs6000/rs6000-protos.h (rs6000_emit_sCOND,
17846 rs6000_emit_cbranch): Accept mode and operands.
17847 * config/rs6000/rs6000.c (rs6000_compare_op0, rs6000_compare_op1,
17848 rs6000_compare_fp_p): Delete.
17849 (rs6000_generate_compare): Accept mode and comparison. Extract code
17850 and op0/op1 from there. Replace references to rs6000_compare_op0
17851 and rs6000_compare_op1.
17852 (rs6000_emit_sCOND): Adjust call to rs6000_generate_compare and
17853 extract result from passed operands.
17854 (rs6000_emit_cbranch): Adjust call to rs6000_generate_compare and
17855 extract loc from passed operands.
17856 (rs6000_emit_cmove): Likewise.
17857 * config/rs6000/rs6000.h (rs6000_compare_op0, rs6000_compare_op1,
17858 rs6000_compare_fp_p): Delete.
17859 * config/rs6000/rs6000.md (cmp<GPR>, cmp<FP>, bCC, sCC): Delete.
17860 (cbranch<GPR>4, cbranch<FP>4): New.
17861 (cstore<mode>4): New. Consolidate here all choices about when to use
17862 portable or specialized sCC sequences.
17863 (stack_protect_test): Use cbranchsi4.
17864 (conditional_trap): Replace with ctrap<GPR>4.
17865 (conditional trap insn): Replace trap_comparison_operator with
17866 ordered_comparison_operator.
17867
17868 * config/s390/s390.c (s390_compare_op0, s390_compare_op1): Delete.
17869 (s390_emit_prologue): Use ctrap.
17870 * config/s390/s390.h (s390_compare_op0, s390_compare_op1): Delete.
17871 * config/s390/predicates.md (s390_eqne_operator, s390_scond_operator):
17872 New predicates replacing...
17873 * config/s390/s390.md (COMPARE, SCOND): ... these iterators.
17874 (cmp<GPR>, cmp<FP>, cmpcc): Delete.
17875 (trunc patterns): Use emit_cmp_and_jump_insns instead of cmp/branch.
17876 (add<mode>cc): Do not use s390_compare_op0/op1.
17877 (s<code>): Change to...
17878 (cstore<mode>4): ... this. Do not use s390_compare_op0/op1.
17879 (seq): Change to...
17880 (cstorecc4): ... this. Handle EQ or NE equally.
17881 (*sne): Un-privatize for use in cstorecc4.
17882 (b<code>): Change to...
17883 (cbranch<GPR>4, cbranch<FP>4, cbranchcc4): ... these.
17884 (conditional_trap): Replace with...
17885 (ctrap<GPR>4, ctrap<FP>4): ... these.
17886 (stack_protect): Use cbranchcc4.
17887
17888 * config/score/score-conv.h (cmp_op0, cmp_op1): Delete.
17889 * config/score/score-protos.h (score_gen_cmp): Delete.
17890 * config/score/score.c (cmp_op0, cmp_op1, score_gen_cmp): Delete.
17891 (score_block_move-loop): Use cbranchsi4.
17892 * config/score/score.md (cbranchsi4): New.
17893 (cmpsi, bCC): Delete.
17894 * config/score/score3.c (cmp_op0, cmp_op1, score3_gen_cmp): Delete.
17895 (score3_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
17896 * config/score/score7.c (cmp_op0, cmp_op1, score7_gen_cmp): Delete.
17897 (score7_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
17898 * config/score/score3.h (score3_gen_cmp): Delete.
17899 * config/score/score7.h (score7_gen_cmp): Delete.
17900
17901 * config/sh/sh-protos.h (prepare_scc_operands): Rename to...
17902 (sh_emit_scc_to_t): ... this. Return void.
17903 (from_compare): Rename to...
17904 (sh_emit_compare_and_branch): ... this.
17905 (sh_emit_compare_and_set): New.
17906 (sh_expand_t_scc): Accept operands.
17907 * config/sh/predicates.md (sh_float_comparison_operator): New.
17908 * config/sh/sh.c (sh_compare_op0, sh_compare_op1): Delete.
17909 (prepare_scc_operands): Rename to...
17910 (sh_emit_scc_to_t): ... this. Return void. Get op0/op1 from
17911 arguments.
17912 (sh_emit_cheap_store_flag): New.
17913 (sh_emit_set_t_insn): New.
17914 (from_compare): Rename to...
17915 (sh_emit_compare_and_branch): ... this. Accept mode. Rewrite
17916 handling of TARGET_SH2E floating point to avoid recursive call.
17917 Generate branch here.
17918 (sh_emit_compare_and_set): New.
17919 (sh_expand_t_scc): Get op0/op1 from arguments.
17920 (sh_emit_cheap_store_flag): New.
17921 * config/sh/sh.md (cbranchdi4, cbranchsi4): Include -mno-cbranchdi
17922 cases.
17923 (cbranchdi4_i): Use an "I08" constraint instead of an "i" constraint.
17924 (cmpsi, cmpdi, cmpsf, cmpdf): Delete.
17925 (movsicc, movdicc): Do nothing when it recreated operands from
17926 sh_compare_*. Use sh_emit_cheap_store_flag. Adjust call to
17927 prepare_scc_operands (now sh_emit_scc_to_t).
17928 (udivdi3): Use cstoresi4.
17929 (beq_media, bne_media, bge_media, bgtu_media, bgeu_media, beq,
17930 bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu, bunordered): Delete.
17931 (cbranchint4_media, cbranchfp4_media): New.
17932 (casesi): Use cbranchdi4.
17933 (seq, slt, sle, sgt, sge, sgtu, sltu, sgeu, sne, sleu, sunordered):
17934 Delete.
17935 (cstore4_media, cstoresi4, cstoredi4, cstoresf4, cstoredf4): New.
17936 (movnegt): Remove second operand.
17937 (cbranchsf4, cbranchdf4): New.
17938 (stack_protect): Use cbranchdi4/cbranchsi4.
17939
17940 * config/sparc/sparc.c (sparc_compare_op0, sparc_compare_op1): Delete.
17941 (gen_compare_reg): Accept comparison, extract part of it to...
17942 (gen_compare_reg_1): ... this.
17943 (gen_compare_operator): Delete.
17944 (gen_v9_scc): Accept separate destination, comparison code and arms.
17945 Do not use sparc_compare_op0/sparc_compare_op1.
17946 (emit_scc_insn, emit_conditional_branch_insn): New.
17947 (emit_v9_brxx): Make static. Remove useless assertion.
17948 (sparc_emit_float_lib_cmp): Return RTL instead of calling
17949 emit_cmp_insn.
17950 (sparc_expand_compare_and_swap_12): Use gen_compare_reg_1+cbranchcc4.
17951 * config/sparc/sparc-protos.h (gen_compare_reg,
17952 sparc_emit_float_lib_cmp): Adjust prototype.
17953 (emit_scc_insn, emit_conditional_branch_insn): New.
17954 (gen_v9_scc, emit_v9_brxx_insn, gen_compare_operator): Delete.
17955 * config/sparc/sparc.h (sparc_compare_op0, sparc_compare_op1): Delete.
17956 * config/sparc/sparc.md (P, I, F, V32, V32I, V64, V64I): Move all
17957 iterators to the top.
17958 (cmpsi, cmpdi, cmpsf, cmpdf, cmptf, seqsi_special_extend,
17959 snesi_special_extend, sCC, bCC, seqdi_special_trunc,
17960 snedi_special_trunc): Delete.
17961 (seqdi_special, snedi_special): Use expansion of seqdi_special_trunc
17962 and snedi_special_trunc.
17963 (cstoresi4, cstoredi4, cstore<F:mode>4, cbranchcc4, cbranchsi4,
17964 cbranchdi4, cbranch<F:mode>4): New.
17965 (mov<I:mode>cc, mov<F:mode>cc): Handle sparc_emit_float_lib_cmp
17966 here. Use gen_compare_reg instead of gen_compare_operator.
17967 (conditional_trap): Replace with...
17968 (ctrapsi4, ctrapdi4): ... this.
17969 (stack_protect_test): Use cbranchcc4.
17970
17971 * config/spu/spu-protos.h (spu_emit_branch_or_set): Change second
17972 argument to rtx.
17973 * config/spu/spu.c (spu_compare_op0, spu_compare_op1): Remove.
17974 (spu_emit_branch_or_set): Get code/op0/op1 from second argument.
17975 Change spu_compare_op0/op1 to op0/op1 throughout. Get target
17976 from operands[0] or operands[3] depending on is_set.
17977 * config/spu/spu.h (spu_compare_op0, spu_compare_op1): Remove.
17978 * config/spu/spu.md (cmp<mode:VQHSI>, cmp<mode:DTI>, cmp<mode:VSF>,
17979 cmpdf, bCC), sCC: Remove.
17980 (cbranch<mode:VQHSI>4, cbranch<mode:DTI>, cbranch<mode:VSF>4,
17981 cbranchdf4, cstore<mode:VQHSI>4, cstore<mode:DTI>, cstore<mode:VSF>4,
17982 cstoredf4): New.
17983 (mov<mode>cc): Accept ordered_comparison_operator, adjust call to
17984 spu_emit_branch_or_set.
17985
17986 * config/stormy16/stormy16-protos.h (xstormy16_emit_cbranch):
17987 Add two arguments.
17988 * config/stormy16/stormy16.h (xstormy16_compare_op0,
17989 xstormy16_compare_op1): Delete.
17990 * config/stormy16/stormy16.c (xstormy16_compare_op0,
17991 xstormy16_compare_op1): Delete.
17992 (xstormy16_emit_cbranch): Get op0/op1 from the new arguments.
17993 Adjust calls.
17994 * config/stormy16/stormy16.md (cbranchsi4, cbranchhi4): New.
17995 (cmphi, cmpsi, bCC): Remove.
17996
17997 * config/v850/v850.md (tstsi, cmpsi): Fold into...
17998 (*cmpsi): ... this one.
17999 (cbranchsi4, cstoresi4): New.
18000 (bCC expanders): Delete.
18001 (sCC insns): Fold into...
18002 (*setcc): ... this one.
18003 (casesi): Do not use gen_cmpsi and gen_bgtu.
18004 (various splits): Wrap "naked" RHS of a cc0 set with COMPARE.
18005 (movsicc): Simplify.
18006 * config/v850/v850.c (v850_rtx_costs): Handle ZERO_EXTRACT in COMPARE.
18007
18008 * config/vax/vax-protos.h (cond_name): New.
18009 (vax_output_conditional_branch): Remove.
18010 * config/vax/vax.c (cond_name): New.
18011 (vax_output_conditional_branch): Remove.
18012 * config/vax/vax.h (PRINT_OPERAND): Dispatch %c to cond_name.
18013 * config/vax/vax.md (tst<VAXint>, tst<VAXfp>): Remove.
18014 (cmp<VAXint>, cmp<VAXfp>): Privatize. Add constraints for tst.
18015 (bit<VAXint>): Wrap source with (compare).
18016 (b<code> and following unnamed pattern): Rename to *branch and
18017 *branch_reversed. Change macroization to match_operator.
18018 (cbranch<VAXint>4, cbranch<VAXfp>4): New.
18019
18020 * config/xtensa/predicates.md (xtensa_cstoresi_operator): New.
18021 * config/xtensa/xtensa-protos.h (xtensa_expand_conditional_branch):
18022 Change last argument to machine_mode.
18023 (xtensa_expand_scc): Add machine_mode argument.
18024 * config/xtensa/xtensa.c (branch_cmp, branch_type): Remove.
18025 (gen_conditional_move, xtensa_expand_conditional_branch,
18026 xtensa_expand_scc, xtensa_expand_conditional_move): Use mode
18027 instead of branch_type, fetch cmp0/cmp1/test_code from operands[].
18028 Adjust operand numbers.
18029 * config/xtensa/xtensa.h (enum cmp_type, branch_cmp, branch_type):
18030 Delete.
18031 * config/xtensa/xtensa.md (any_cond, any_scc): Delete.
18032 (cmpsi, cmpsf, b<code>, s<code>): Delete.
18033 (cbranchsi4, cbranchsf4, cstoresi4, cstoresf4): New.
18034
18035 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
18036
18037 * optabs.c (prepare_cmp_insn): Temporarily disable test that
18038 causes spurious differences between trunk and cond-optab branch.
18039
18040 2009-05-12 Alexandre Oliva <aoliva@redhat.com>
18041
18042 PR target/37137
18043 * doc/install.texi (STAGE1_TFLAGS, BUILD_CONFIG): Document.
18044
18045 2009-05-12 Alexandre Oliva <aoliva@redhat.com>
18046
18047 * tree.c (iterative_hash_pointer): Delete.
18048 (iterative_hash_expr): Short-circuit handling of NULL pointer.
18049 Hash UIDs and versions of SSA names. Don't special-case built-in
18050 function declarations.
18051
18052 2009-05-11 Ian Lance Taylor <iant@google.com>
18053
18054 PR bootstrap/40103
18055 * graphite.c: Force -Wc++-compat to only be a warning before
18056 #including "cloog/cloog.h".
18057
18058 2009-05-11 Martin Jambor <mjambor@suse.cz>
18059
18060 * ipa-cp.c (ipcp_cloning_candidate_p): Add missing return false.
18061
18062 2009-05-11 Jan Hubicka <jh@suse.cz>
18063
18064 * tree-ssa-loop-ivcanon.c: Include target.h
18065 (struct loop_size): new structure.
18066 (constant_after_peeling): New predicate.
18067 (tree_estimate_loop_size): New function.
18068 (estimated_unrolled_size): Rewrite for new estimates.
18069 (try_unroll_loop_completely): Use new estimates.
18070 * Makefile.in (tree-ssa-loop-ivcanon.o): Add dependenc on target.h
18071
18072 2009-05-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
18073
18074 * config/spu/spu-c.c (spu_categorize_keyword): Update for recent
18075 libcpp interface change.
18076 (spu_macro_to_expand): Likewise.
18077
18078 2009-05-11 Paolo Bonzini <bonzini@gnu.org>
18079
18080 PR tree-optimization/40026
18081 * gimplify.c (gimplify_init_constructor): Change initial conditional
18082 to assertion. Rewrite TREE_OPERAND (*expr_p, 1) after
18083 optimize_compound_literals_in_ctor.
18084
18085 2009-05-11 Nathan Sidwell <nathan@codesourcery.com>
18086
18087 * config/m68k/m68k-devices.def (52274, 52277, 5301x, 5225x, 51xx):
18088 New devices.
18089 * doc/invoke.texi (M680x0 Options): Document new coldfire cpus.
18090
18091 2009-05-11 H.J. Lu <hongjiu.lu@intel.com>
18092
18093 * tree-vect-data-refs.c (vect_analyze_group_access): Use
18094 HOST_WIDE_INT for gap.
18095
18096 2009-05-11 Ira Rosen <irar@il.ibm.com>
18097
18098 PR tree-optimization/40074
18099 * tree-vect-data-refs.c (vect_analyze_group_access): Take gaps into
18100 account in group size and step comparison.
18101
18102 2009-05-11 Richard Guenther <rguenther@suse.de>
18103
18104 * passes.c (init_optimization_passes): Strip now incorrect comment.
18105 (execute_function_todo): Do not set PROP_alias.
18106 * tree-pass.h (PROP_alias): Remove.
18107 * tree-ssa-structalias.c (pass_build_alias): Do not provide PROP_alias.
18108 * tree-if-conv.c (pass_if_conversion): Do not require PROP_alias.
18109 * tree-nrv.c (pass_return_slot): Likewise.
18110 * tree-object-size.c (pass_object_sizes): Likewise.
18111 * tree-ssa-dom.c (pass_dominator): Likewise.
18112 (pass_phi_only_cprop): Likewise.
18113 * tree-ssa-dse.c (pass_dse): Likewise.
18114 * tree-ssa-phiopt.c (pass_phiopt): Likewise.
18115 (pass_cselim): Likewise.
18116 * tree-ssa-pre.c (pass_pre): Likewise.
18117 (pass_fre): Likewise.
18118 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
18119 * tree-ssa-sink.c (pass_sink_code): Likewise.
18120 * tree-stdarg.c (pass_stdarg): Likewise.
18121 * tree-tailcall.c (pass_tail_calls): Likewise.
18122 * tree-vrp.c (pass_vrp): Likewise.
18123
18124 2009-05-10 Ian Lance Taylor <iant@google.com>
18125
18126 * basic-block.h (enum profile_status): Break out of struct
18127 control_flow_graph.
18128 * cgraph.h (struct inline_summary): Break out of struct
18129 cgraph_local_info.
18130 * cgraphunit.c (enum cgraph_order_sort_kind): New enum, broken out
18131 of struct cgraph_order_sort.
18132 * combine.c (enum undo_kind): New enum, broken out of struct undo.
18133 * cse.c (struct branch_path): Break out of struct
18134 cse_basic_block_data.
18135 * except.h (enum eh_region_type): Break out of struct eh_region.
18136 * gcc.c (enum add_del): Break out of struct modify_target.
18137 * genrecog.c (enum decision_type): Break out of struct decision_test.
18138 * ggc-page.c (struct ggc_pch_ondisk): Break out of struct
18139 ggc_pch_data.
18140 * matrix-reorg.c (struct free_info): Break out of struct matrix_info.
18141 * regmove.c (enum match_use): New enum, broken out of struct match.
18142 * sched-int.h (enum post_call_group): New enum, broken out of
18143 struct deps.
18144 (struct deps_reg): Break out of struct deps.
18145 * target.h (struct asm_int_op): Break out of struct gcc_target.
18146 * tree-eh.c (struct goto_queue_node): Break out of struct
18147 leh_tf_state.
18148 * tree-inline.h (enum copy_body_cge_which): Break out of
18149 copy_body_data.
18150 * tree-pass.h (enum opt_pass_type): Break out of struct opt_pass.
18151
18152 * c-decl.c (in_struct, struct_types): New static variables.
18153 (pushtag): Add loc parameter. Change all callers.
18154 (lookup_tag): Add ploc parameter. Change all callers.
18155 (check_compound_literal_type): New function.
18156 (parser_xref_tag): Add loc parameter. Change all callers. If
18157 -Wc++-compat, warn about struct/union/enum types defined within a
18158 struct or union.
18159 (start_struct): Add enclosing_in_struct, enclosing_struct_types,
18160 and loc parameters. Change all callers. Change error calls to
18161 error_at, using loc. For a redefinition, if the location of the
18162 original definition is known, report it. Set in_struct and
18163 struct_types. If -Wc++-compat warn if in sizeof, typeof, or alignof.
18164 (finish_struct): Add new parameters enclosing_in_struct and
18165 enclosing_struct_types. Change all callers. Set
18166 C_TYPE_DEFINED_IN_STRUCT for all struct/union/enum types defined
18167 in the struct. If in a struct, add this struct to struct_types.
18168 (start_enum): Add loc parameter. Change all callers. Use
18169 error_at for errors, using loc. For a redefinition, if the
18170 location of the original definition is known, report it. If in a
18171 struct, add this enum type to struct_types. If -Wc++-compat warn
18172 if in sizeof, typeof, or alignof.
18173 * c-parser.c (disable_extension_diagnostics): Disable -Wc++-compat.
18174 (enable_extension_diagnostics): Reenable -Wc++-compat if appropriate.
18175 (c_parser_enum_specifier): Get enum location for start_enum.
18176 (c_parser_struct_or_union_specifier): Get struct location for
18177 start_struct. Save in_struct and struct_types status between
18178 start_struct and finish_struct.
18179 (c_parser_cast_expression): Get location of cast.
18180 (c_parser_alignof_expression): Get location of type.
18181 (c_parser_postfix_expression): Likewise.
18182 (c_parser_postfix_expression_after_paren_type): Add type_loc
18183 parameter. Change all callers. Call check_compound_literal_type.
18184 Use type_loc for error about variable size type.
18185 * c-typeck.c (build_external_ref): If -Wc++-compat, warn about a use
18186 of an enum constant from an enum type defined in a struct or union.
18187 (c_cast_expr): Add loc parameter. Change all callers. If
18188 -Wc++-compat, warn about defining a type in a cast.
18189 * c-tree.h (C_TYPE_DEFINED_IN_STRUCT): Define.
18190 (start_enum, start_struct, finish_struct): Update declarations.
18191 (parser_xref_tag, c_cast_expr): Update declarations.
18192 (check_compound_literal_type): Declare.
18193
18194 2009-05-11 Ben Elliston <bje@au.ibm.com>
18195
18196 * config/rs6000/rs6000-c.c (altivec_categorize_keyword): Update
18197 for recent libcpp interface change.
18198 (rs6000_macro_to_expand): Likewise.
18199
18200 2009-05-10 Michael Matz <matz@suse.de>
18201
18202 PR target/40031
18203 * config/arm/arm.c (require_pic_register): Emit on entry edge,
18204 not at entry of function.
18205
18206 2009-05-10 Richard Guenther <rguenther@suse.de>
18207
18208 PR tree-optimization/40081
18209 Revert
18210 * tree-sra.c (instantiate_element): Instantiate scalar replacements
18211 using the main variant of the element type. Do not fiddle with
18212 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
18213
18214 * tree-sra.c (sra_type_can_be_decomposed_p): Do not decompose
18215 structs with volatile fields.
18216
18217 2009-05-10 Jan Hubicka <jh@suse.cz>
18218
18219 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Declare.
18220 (estimate_move_cost): Assert that it does not get called for
18221 VOID_TYPE_P.
18222 (estimate_num_insns): Skip VOID types in argument handling.
18223 (optimize_inline_calls): Delete unreachable blocks and verify that
18224 callgraph is valid.
18225
18226 2009-05-10 Jan Hubicka <jh@suse.cz>
18227
18228 * cgraphbuild.c (record_reference): Use cgraph_mark_address_taken_node.
18229 * cgraph.c (cgraph_mark_address_taken_node): New function.
18230 (dump_cgraph_node): Dump new flag.
18231 * cgraph.h (struct cgraph_node): Add address_taken.
18232 (cgraph_mark_address_taken_node): New function.
18233 * ipa.c (cgraph_postorder): Prioritize functions with address taken
18234 since new direct calls can be born.
18235
18236 2009-05-10 Joseph Myers <joseph@codesourcery.com>
18237
18238 * c-lex.c (c_lex_with_flags): Expect cpp_hashnode in
18239 tok->val.node.node.
18240
18241 2009-05-10 Jan Hubicka <jh@suse.cz>
18242
18243 PR middle-end/40084
18244 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Take old_call
18245 argument; rewrite.
18246 (cgraph_update_edges_for_call_stmt): Take old_decl argument.
18247 * cgraph.h (cgraph_update_edges_for_call_stmt): Update prototype.
18248 * tree-inline.c (copy_bb): Set frequency correctly.
18249 (fold_marked_statements): Update call to
18250 cgraph_update_edges_for_call_stmt.
18251
18252 2009-05-10 Joseph Myers <joseph@codesourcery.com>
18253
18254 * config/arc/arc.c (arc_handle_interrupt_attribute): Use %qE for
18255 identifiers in diagnostics.
18256 * config/arm/arm.c (arm_handle_fndecl_attribute,
18257 arm_handle_isr_attribute): Likewise.
18258 * config/avr/avr.c (avr_handle_progmem_attribute,
18259 avr_handle_fndecl_attribute, avr_handle_fntype_attribute): Likewise.
18260 * config/bfin/bfin.c (handle_int_attribute,
18261 bfin_handle_longcall_attribute, bfin_handle_l1_text_attribute,
18262 bfin_handle_l1_data_attribute, bfin_handle_longcall_attribute,
18263 bfin_handle_l1_text_attribute, bfin_handle_l1_data_attribute):
18264 Likewise.
18265 * config/darwin.c (darwin_handle_kext_attribute,
18266 darwin_handle_weak_import_attribute): Likewise.
18267 * config/h8300/h8300.c (h8300_handle_fndecl_attribute,
18268 h8300_handle_eightbit_data_attribute,
18269 h8300_handle_tiny_data_attribute): Likewise.
18270 * config/i386/i386.c (ix86_handle_cconv_attribute,
18271 ix86_handle_abi_attribute, ix86_handle_struct_attribute): Likewise.
18272 * config/i386/winnt.c (ix86_handle_shared_attribute,
18273 ix86_handle_selectany_attribute): Likewise.
18274 * config/ia64/ia64.c (ia64_handle_model_attribute): Likewise.
18275 * config/m32c/m32c.c (function_vector_handler): Likewise.
18276 * config/m68hc11/m68hc11.c (m68hc11_handle_page0_attribute,
18277 m68hc11_handle_fntype_attribute): Likewise.
18278 * config/m68k/m68k.c (m68k_handle_fndecl_attribute): Likewise.
18279 * config/mcore/mcore.c (mcore_handle_naked_attribute): Likewise.
18280 * config/mips/mips.c (mips_insert_attributes,
18281 mips_merge_decl_attributes, mips_expand_builtin): Likewise.
18282 * config/rs6000/rs6000.c (rs6000_handle_longcall_attribute,
18283 rs6000_handle_struct_attribute): Likewise.
18284 * config/sh/sh.c (sh_insert_attributes,
18285 sh_handle_resbank_handler_attribute,
18286 sh_handle_interrupt_handler_attribute,
18287 sh2a_handle_function_vector_handler_attribute,
18288 sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
18289 Likewise.
18290 * config/sh/symbian.c (sh_symbian_mark_dllimport): Likewise.
18291 * config/spu/spu.c (spu_handle_fndecl_attribute,
18292 spu_handle_vector_attribute): Likewise.
18293 * config/stormy16/stormy16.c
18294 (xstormy16_handle_interrupt_attribute): Likewise.
18295 * config/v850/v850-c.c (ghs_pragma_section): Likewise.
18296 * config/v850/v850.c (v850_handle_interrupt_attribute): Likewise.
18297
18298 2009-05-10 Joseph Myers <joseph@codesourcery.com>
18299
18300 * pretty-print.h (struct pretty_print_info): Add translate_identifiers.
18301 (pp_translate_identifiers): New.
18302 (pp_identifier): Only conditionally translate identifier to locale
18303 character set.
18304 * pretty-print.c (pp_construct): Set pp_translate_identifiers.
18305 (pp_base_tree_identifier): Only conditionally translate identifier
18306 to locale character set.
18307 * c-pretty-print.c (M_): Define.
18308 (pp_c_type_specifier, pp_c_primary_expression): Mark English
18309 fragments for conditional translation with M_.
18310 * tree-pretty-print.c (maybe_init_pretty_print): Disable
18311 identifier translation.
18312
18313 2009-05-10 Richard Guenther <rguenther@suse.de>
18314
18315 PR tree-optimization/40081
18316 * tree-sra.c (instantiate_element): Instantiate scalar replacements
18317 using the main variant of the element type. Do not fiddle with
18318 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
18319
18320 2009-05-09 Jan Hubicka <jh@suse.cz>
18321
18322 PR middle-end/40080
18323 * cgraphunit.c (cgraph_materialize_all_clones): Do not redirect
18324 indirect calls; verify cgraph afterwards.
18325
18326 2009-05-09 Jan Hubicka <jh@suse.cz>
18327
18328 PR bootstrap/40082
18329 * ipa.c (update_inlined_to_pointer): New function.
18330 (cgraph_remove_unreachable_nodes): Use it.
18331
18332 2009-05-09 Jan Hubicka <jh@suse.cz>
18333
18334 * tree-eh.c (struct leh_state): Remove prev_try.
18335 (lower_try_finally, lower_catch, lower_eh_filter, lower_cleanup): Do
18336 not track prev_try.
18337 * except.c (gen_eh_region_cleanup, duplicate_eh_regions,
18338 copy_eh_region_1, copy_eh_region, redirect_eh_edge_to_label,
18339 remove_eh_handler_and_replace, foreach_reachable_handler,
18340 verify_eh_region, verify_eh_tree): Remove tracking of prev_try pointer.
18341 * except.h (struct eh_region): Remove eh_region_u_cleanup.
18342 (gen_eh_region_cleanup): Update prototype.
18343
18344 2009-05-09 Jan Hubicka <jh@suse.cz>
18345
18346 PR middle-end/40043
18347 * except.c (copy_eh_region): Always set prev_try.
18348 (redirect_eh_edge_to_label): Find outer try.
18349 (foreach_reachable_handler): When looking for prev try
18350 handle case where previous try is not going to be taken.
18351
18352 2009-05-07 Michael Meissner <meissner@linux.vnet.ibm.com>
18353
18354 PR tree-optimization/40049
18355 * tree-vect-stmts.c (vectorizable_operation): If the machine has
18356 only vector/vector shifts, convert the type of the constant to the
18357 appropriate type to avoid building incorrect trees, which
18358 eventually have problems with garbage collection.
18359
18360 2009-05-08 Joseph Myers <joseph@codesourcery.com>
18361
18362 * fold-const.c (fold_binary): Do not fold multiplication by 1 or
18363 -1 for complex floating-point types if honoring signed zeros.
18364
18365 2009-05-08 Jan Hubicka <jh@suse.cz>
18366
18367 * cgraphbuild.c (compute_call_stmt_bb_frequency): Accept function
18368 argument; handle correctly when profile is absent.
18369 (build_cgraph_edges): Update.
18370 (rebuild_cgraph_edges): Update.
18371 * cgraph.c: Do not include varray.h.
18372 (cgraph_set_call_stmt_including_clones): New function.
18373 (cgraph_create_edge_including_clones): Likewise
18374 (cgraph_update_edges_for_call_stmt_node): New static cfunction.
18375 (cgraph_update_edges_for_call_stmt): Handle clones.
18376 (cgraph_remove_node): Handle clone tree.
18377 (cgraph_remove_node_and_inline_clones): New function.
18378 (dump_cgraph_node): Dump clone tree.
18379 (cgraph_clone_node): Handle clone tree.
18380 (clone_function_name): Bring here from tree-inline.c.
18381 (cgraph_create_virtual_clone): New function.
18382 * cgraph.h (ipa_replace_map): Move here from ipa.h.
18383 (cgraph_clone_info): New function.
18384 (strut cgraph_node): Add clone_info and new clone tree pointers.
18385 (cgraph_remove_node_and_inline_clones,
18386 cgraph_set_call_stmt_including_clones,
18387 cgraph_create_edge_including_clones,
18388 cgraph_create_virtual_clone): Declare.
18389 (cgraph_function_versioning): Use VEC argument.
18390 (compute_call_stmt_bb_frequency): Update prototype.
18391 (cgraph_materialize_all_clones): New function.
18392 * ipa-cp.c (ipcp_update_cloned_node): Remove.
18393 (ipcp_create_replace_map): Update to VECtors.
18394 (ipcp_update_callgraph): Use virtual clones.
18395 (ipcp_update_bb_counts, ipcp_update_edges_counts): Remove.
18396 (ipcp_update_profiling): Do not update local profiling.
18397 (ipcp_insert_stage): Use VECtors and virtual clones.
18398 * cgraphunit.c (verify_cgraph_node): Verify clone tree.
18399 (clone_of_p): New function.
18400 (cgraph_preserve_function_body_p): Use clone tree.
18401 (cgraph_optimize): Materialize clones.
18402 (cgraph_function_versioning): Update for VECtors.
18403 (save_inline_function_body): Use clone tree.
18404 (cgraph_materialize_clone): New function.
18405 (cgraph_materialize_all_clones): Likewise.
18406 * ipa-inline.c (cgraph_default_inline_p): Use analyzed flags.
18407 * ipa.c: Include gimple.h.
18408 (cgraph_remove_unreachable_nodes): Use clone tree.
18409 * ipa-prop.c (ipa_note_param_call): Update call to
18410 compute_call_stmt_bb_frequencycall.
18411 * ipa-prop.h (ipa_replace_map): Move to cgraph.h.
18412 * tree-inline.c: Do not include varray.h or gt-tree-inline.h.
18413 (copy_bb): Handle updating of clone tree; add new edge when new call
18414 appears.
18415 (expand_call_inline): Be strict about every call having edge.
18416 (clone_fn_id_num, clone_function_name): Move to cgraph.c.
18417 (delete_unreachable_blocks_update_callgraph): New function.
18418 (tree_function_versioning): Use VECtors; always remove unreachable
18419 blocks and fold conditionals.
18420 * tree-inline.h: Do not include varray.h.
18421 (tree_function_versioning): Remove.
18422 * Makefile.in (GTFILES): Remove tree-inline.c
18423 * passes.c (do_per_function): Do only functions having body.
18424 * ipa-struct-reorg.c (do_reorg_1, collect_data_accesses): Handle clone
18425 tree.
18426
18427 2009-05-08 H.J. Lu <hongjiu.lu@intel.com>
18428 Andrew Morrow <acm@google.com>
18429
18430 PR c/36892
18431 * c-common.c (c_common_attribute_table): Permit deprecated
18432 attribute to take an optional argument.
18433 (handle_deprecated_attribute): If the optional argument to
18434 __attribute__((deprecated)) is not a string ignore the attribute
18435 and emit a warning.
18436
18437 * c-decl.c (grokdeclarator): Updated warn_deprecated_use call.
18438 * c-typeck.c (build_component_ref): Likewise.
18439 (build_external_ref): Likewise.
18440
18441 * toplev.c (warn_deprecated_use): Add an attribute argument.
18442 Emit the message associated with __attribute__((deprecated)).
18443
18444 * toplev.h (warn_deprecated_use): Updated.
18445
18446 * doc/extend.texi: Document new optional parameter to
18447 __attribute__((deprecated))
18448
18449 2009-05-08 Michael Eager <eager@eagercon.com>
18450
18451 * config/rs6000/rs6000.md (*movdf_softfloat32): replace
18452 !TARGET_DOUBLE_FLOAT with TARGET_SINGLE_FLOAT.
18453
18454 2009-05-08 Richard Guenther <rguenther@suse.de>
18455
18456 PR tree-optimization/40062
18457 * tree-scalar-evolution.c (follow_ssa_edge_in_condition_phi):
18458 Avoid exponential behavior.
18459
18460 2009-05-08 Paolo Bonzini <bonzini@gnu.org>
18461
18462 PR rtl-optimization/33928
18463 PR 26854
18464 * fwprop.c (use_def_ref, get_def_for_use, bitmap_only_bit_bitween,
18465 process_uses, build_single_def_use_links): New.
18466 (update_df): Update use_def_ref.
18467 (forward_propagate_into): Use get_def_for_use instead of use-def
18468 chains.
18469 (fwprop_init): Call build_single_def_use_links and let it initialize
18470 dataflow.
18471 (fwprop_done): Free use_def_ref.
18472 (fwprop_addr): Eliminate duplicate call to df_set_flags.
18473 * df-problems.c (df_rd_simulate_artificial_defs_at_top,
18474 df_rd_simulate_one_insn): New.
18475 (df_rd_bb_local_compute_process_def): Update head comment.
18476 (df_chain_create_bb): Use the new RD simulation functions.
18477 * df.h (df_rd_simulate_artificial_defs_at_top,
18478 df_rd_simulate_one_insn): New.
18479 * opts.c (decode_options): Enable fwprop at -O1.
18480 * doc/invoke.texi (-fforward-propagate): Document this.
18481
18482 2009-05-08 Joseph Myers <joseph@codesourcery.com>
18483
18484 PR c/24581
18485 * c-typeck.c (build_binary_op): Handle arithmetic between one real
18486 and one complex operand specially.
18487 * tree-complex.c (some_nonzerop): Do not identify a real value as
18488 zero if flag_signed_zeros.
18489
18490 2009-05-08 Paolo Bonzini <bonzini@gnu.org>
18491
18492 PR rtl-optimization/33928
18493 * loop-invariant.c (record_use): Fix && vs. || mishap.
18494
18495 2009-05-08 Paolo Bonzini <bonzini@gnu.org>
18496
18497 PR rtl-optimization/33928
18498 * loop-invariant.c (struct use): Add addr_use_p.
18499 (struct def): Add n_addr_uses.
18500 (struct invariant): Add cheap_address.
18501 (create_new_invariant): Set cheap_address.
18502 (record_use): Accept df_ref. Set addr_use_p and update n_addr_uses.
18503 (record_uses): Pass df_ref to record_use.
18504 (get_inv_cost): Do not add inv->cost to comp_cost for cheap addresses
18505 used only as such.
18506
18507 2009-05-08 Kaz Kojima <kkojima@gcc.gnu.org>
18508
18509 * config/sh/sh.c: Do not include c-pragma.h.
18510
18511 2009-05-07 Andrew Pinski <andrew_pinski@playstation.sony.com>
18512
18513 * config/spu/spu.c: Remove include of c-common.h.
18514
18515 2009-05-07 Janis Johnson <janis187@us.ibm.com>
18516
18517 PR c/39037
18518 * c-common.h (mark_valid_location_for_stdc_pragma,
18519 valid_location_for_stdc_pragma_p, set_float_const_decimal64,
18520 clear_float_const_decimal64, float_const_decimal64_p): New.
18521 * c.opt (Wunsuffixed-float-constants): New.
18522 * c-lex.c (interpret_float): Use pragma FLOAT_CONST_DECIMAL64 for
18523 unsuffixed float constant, handle new warning.
18524 * c-cppbuiltin.c (c_cpp_builtins): Use cast for double constants.
18525 * c-decl.c (c_scope): New flag float_const_decimal64.
18526 (set_float_const_decimal64, clear_float_const_decimal64,
18527 float_const_decimal64_p): New.
18528 (push_scope): Set new flag.
18529 * c-parser.c (c_parser_translation_unit): Mark when it's valid
18530 to use STDC pragmas.
18531 (c_parser_external_declaration): Ditto.
18532 (c_parser_compound_statement_nostart): Ditto.
18533 * c-pragma.c (valid_location_for_stdc_pragma,
18534 mark_valid_location_for_stdc_pragma,
18535 valid_location_for_stdc_pragma_p, handle_stdc_pragma,
18536 handle_pragma_float_const_decimal64): New.
18537 (init_pragma): Register new pragma FLOAT_CONST_DECIMAL64.
18538 * cp/semantics.c (valid_location_for_stdc_pragma_p,
18539 set_float_const_decimal64, clear_float_const_decimal64,
18540 float_const_decimal64_p): New dummy functions.
18541 * doc/extend.texi (Decimal Float): Remove statement that the
18542 pragma, and suffix for double constants, are not supported.
18543 * doc/invoke.texi (Warning Options): List new option.
18544 (-Wunsuffixed-float-constants): New.
18545
18546 2009-05-08 Steven Bosscher <steven@gcc.gnu.org>
18547
18548 * config/i386/i386.c: Do not include c-common.h.
18549
18550 2009-05-07 Mark Heffernan <meheff@google.com>
18551
18552 * doc/invoke.texi (Debugging Options): Document change of debugging
18553 dump location.
18554 * opts.c (decode_options): Make dump_base_name relative to
18555 aux_base_name directory.
18556
18557 2009-05-07 Hariharan Sandanagobalane <hariharan@picochip.com>
18558
18559 * config/picochip/picochip.h (NO_DOLLAR_IN_LABEL): Added.
18560 * config/picochip/libgccExtras/divmod15.asm : Removed redefiniton.
18561
18562 2009-05-07 Rafael Avila de Espindola <espindola@google.com>
18563
18564 * Makefile.in (install-plugin): Simplify a bit.
18565
18566 2009-05-07 Paolo Bonzini <bonzini@gnu.org>
18567
18568 * Makefile.in (OBJS-common): Add regcprop.o.
18569 (regcprop.o): New.
18570 * timevar.def (TV_CPROP_REGISTERS): New.
18571 * regrename.c (regrename_optimize): Return 0.
18572 (rest_of_handle_regrename): Delete.
18573 (pass_rename_registers): Point to regrename_optimize.
18574 (struct value_data_entry, struct value_data,
18575 kill_value_one_regno, kill_value_regno, kill_value,
18576 set_value_regno, init_value_data, kill_clobbered_value,
18577 kill_set_value, kill_autoinc_value, copy_value,
18578 mode_change_ok, maybe_mode_change, find_oldest_value_reg,
18579 replace_oldest_value_reg, replace_oldest_value_addr,
18580 replace_oldest_value_mem, copyprop_hardreg_forward_1,
18581 debug_value_data, validate_value_data): Move...
18582 * regcprop.c: ... here.
18583 (rest_of_handle_cprop): Delete.
18584 (pass_cprop_hardreg): Point to copyprop_hardreg_forward.
18585
18586 2009-05-07 Jakub Jelinek <jakub@redhat.com>
18587
18588 PR middle-end/40057
18589 * dojump.c (prefer_and_bit_test): Use immed_double_const instead of
18590 GEN_INT for 1 << bitnum.
18591 (do_jump) <case BIT_AND_EXPR>: Use build_int_cst_wide_type instead of
18592 build_int_cst_type.
18593
18594 2009-05-07 Uros Bizjak <ubizjak@gmail.com>
18595
18596 * doc/md.texi (Standard Pattern Names For Generation) [sync_nand]:
18597 Remove wrong description of "nand" operation.
18598
18599 2009-05-06 Richard Guenther <rguenther@suse.de>
18600 Adam Nemet <anemet@caviumnetworks.com>
18601
18602 * gimple.def (GIMPLE_ASSIGN): Fix incorrect information in the
18603 comment. Add that if LHS is not a gimple register, then RHS1 has
18604 to be a single object (GIMPLE_SINGLE_RHS).
18605
18606 2009-05-06 Adam Nemet <anemet@caviumnetworks.com>
18607
18608 * expr.c (get_def_for_expr): Move it up in the file.
18609 (store_field): When expanding a bit-field store, look at the
18610 defining gimple stmt for the masking conversion.
18611
18612 2009-05-06 Janis Johnson <janis187@us.ibm.com>
18613
18614 PR middle-end/39986
18615 * dfp.c (encode_decimal32, decode_decimal32, encode_decimal64,
18616 decode_decimal64, encode_decimal128, decode_decimal128): Avoid
18617 32-bit memcpy into long.
18618
18619 2009-05-06 Jakub Jelinek <jakub@redhat.com>
18620
18621 * dwarf2out.c (new_reg_loc_descr): Don't ever create DW_OP_regX.
18622 (one_reg_loc_descriptor): Create DW_OP_regX here instead of calling
18623 new_reg_loc_descr.
18624 (loc_by_reference): If loc is DW_OP_regX, change it into DW_OP_bregX 0
18625 instead of appending DW_OP_deref*.
18626
18627 2009-05-06 Michael Matz <matz@suse.de>
18628
18629 PR middle-end/40021
18630 * cfgexpand.c (maybe_cleanup_end_of_block): New static function.
18631 (expand_gimple_cond): Use it to cleanup CFG and superfluous jumps.
18632
18633 2009-05-06 Rafael Avila de Espindola <espindola@google.com>
18634
18635 * Makefile.in (install-plugin): Fix srcdir handling.
18636
18637 2009-05-06 Andrey Belevantsev <abel@ispras.ru>
18638
18639 * tree-ssa.c (execute_update_address_taken): Handle TARGET_MEM_REF
18640 when processing for not_regs_needed bitmap.
18641 * gimple.c (walk_stmt_load_store_addr_ops): When visiting address,
18642 handle TARGET_MEM_REF in lhs. Check TMR_BASE for NULL while
18643 handling it for rhs.
18644
18645 2009-05-06 H.J. Lu <hongjiu.lu@intel.com>
18646
18647 * config/i386/i386.md (unnamed inc/dec peephole): Use
18648 optimize_insn_for_size_p instead of optimize_size.
18649 * config/i386/predicates.md (incdec_operand): Likewise.
18650 (aligned_operand): Likewise.
18651 * config/i386/sse.md (divv8sf3): Likewise.
18652 (sqrtv8sf2): Likewise.
18653
18654 2009-05-06 H.J. Lu <hongjiu.lu@intel.com>
18655
18656 * config/i386/i386.c (ix86_build_signbit_mask): Make it static.
18657
18658 * config/i386/i386-protos.h (ix86_build_signbit_mask): Removed.
18659
18660 2009-05-06 H.J. Lu <hongjiu.lu@intel.com>
18661
18662 * config/i386/i386.md (*avx_<code><mode>3_finite): Replace
18663 ssemodesuffixf2c with avxmodesuffixf2c.
18664
18665 2009-05-06 Joseph Myers <joseph@codesourcery.com>
18666
18667 PR c/40032
18668 * c-decl.c (grokdeclarator): Handle incomplete type of unnamed field.
18669
18670 2009-05-05 Jakub Jelinek <jakub@redhat.com>
18671
18672 * tree.h: Remove DECL_BY_REFERENCE from private_flag comment.
18673 (struct tree_base): Adjust spacing for 8 bit boundaries.
18674 (struct tree_decl_common): Add decl_by_reference_flag bit.
18675 (DECL_BY_REFERENCE): Adjust.
18676 * print-tree.c (print_node): For VAR_DECL, PARM_DECL or RESULT_DECL,
18677 print DECL_BY_REFERENCE bit.
18678 * dbxout.c (DECL_ACCESSIBILITY_CHAR): Revert last change.
18679 * dwarf2out.c (loc_by_reference, gen_decl_die): Check
18680 DECL_BY_REFERENCE for all VAR_DECLs, not just non-static ones.
18681 (gen_variable_die): Likewise. Check TREE_PRIVATE/TREE_PROTECTED
18682 unconditionally.
18683
18684 PR middle-end/39666
18685 * gimplify.c (gimplify_switch_expr): If case labels cover the whole
18686 range of the type, but default label is missing, add it with one
18687 of the existing labels instead of adding a new label for it.
18688
18689 2009-05-05 Joseph Myers <joseph@codesourcery.com>
18690
18691 * dwarf.h: Remove.
18692
18693 2009-05-05 Rafael Avila de Espindola <espindola@google.com>
18694
18695 * Makefile.in (enable_plugin, plugin_includedir): New.
18696 (install): Depend on install-plugin.
18697 (PLUGIN_HEADERS): New.
18698 (install-plugin): New.
18699 * config.gcc: Add vxworks-dummy.h to tm_file for x86 and x86-64.
18700
18701 2009-05-05 Richard Guenther <rguenther@suse.de>
18702
18703 PR tree-optimization/40022
18704 * tree-ssa-phiprop.c (struct phiprop_d): Exchange vop_stmt for
18705 the only vuse.
18706 (phivn_valid_p): Fix tuplification error, simplify.
18707 (phiprop_insert_phi): Add dumps.
18708 (propagate_with_phi): Simplify.
18709
18710 2009-05-05 Richard Guenther <rguenther@suse.de>
18711
18712 PR middle-end/40023
18713 * builtins.c (gimplify_va_arg_expr): Properly build the address.
18714
18715 2009-05-05 Shujing Zhao <pearly.zhao@oracle.com>
18716
18717 * tree.h (strip_float_extensions): Remove duplicate declaration.
18718 (build_low_bits_mask, debug_fold_checksum, expand_function_end,
18719 expand_function_start, stack_protect_prologue, stack_protect_epilogue,
18720 block_ultimate_origin): Rearrange the declarations line to match the
18721 comment that indicates the .c file which the functions are defined.
18722 (dwarf2out_*, set_decl_rtl): Add comment.
18723 (get_base_address): Adjust comment.
18724 (change_decl_assembler_name, maybe_fold_*, build_addr): Rearrange the
18725 declarations line and add comment.
18726 (is_builtin_name): Add blank after function name, for clarity.
18727
18728 2009-05-04 Joseph Myers <joseph@codesourcery.com>
18729
18730 * attribs.c (decl_attributes): Use %qE for identifiers in
18731 diagnostics.
18732 * cgraphunit.c (verify_cgraph_node): Translate function names to
18733 locale character set in diagnostics.
18734 * coverage.c (get_coverage_counts): Use %qE for identifiers in
18735 diagnostics.
18736 * doc/invoke.texi (-finstrument-functions-exclude-function-list):
18737 Document that functions are named in UTF-8.
18738 * expr.c (expand_expr_real_1): Translate function names to locale
18739 character set in diagnostics.
18740 * gimplify.c (omp_notice_variable, omp_is_private,
18741 gimplify_scan_omp_clauses): Use %qE for identifiers in
18742 diagnostics.
18743 * langhooks.c (lhd_print_error_function): Translate function names
18744 to locale character set.
18745 * langhooks.h (decl_printable_name): Document that return value is
18746 in internal character set.
18747 * stmt.c: Include pretty-print.h
18748 (tree_conflicts_with_clobbers_p): Use %qE for identifiers in
18749 diagnostics.
18750 (resolve_operand_name_1): Translate named operand name to locale
18751 character set.
18752 * stor-layout.c (finalize_record_size): Use %qE for identifiers in
18753 diagnostics.
18754 * toplev.c (announce_function): Translate function names to locale
18755 character set.
18756 (warn_deprecated_use): Use %qE for identifiers in diagnostics.
18757 (default_tree_printer): Use pp_identifier or translate identifiers
18758 to locale character set. Mark "<anonymous>" for translation.
18759 * tree-mudflap.c (mx_register_decls, mudflap_finish_file): Use %qE
18760 for identifiers in diagnostics.
18761 * tree.c (handle_dll_attribute): Use %qE for identifiers in
18762 diagnostics.
18763 * varasm.c (output_constructor): Use %qE for identifiers in
18764 diagnostics.
18765
18766 2009-05-04 Rafael Avila de Espindola <espindola@google.com>
18767
18768 * configure.ac: use ` ` instead of $()
18769 * configure: Regenerate.
18770
18771 2009-05-05 Ben Elliston <bje@au.ibm.com>
18772
18773 * config/pa/linux-atomic.c: Eliminate conditional include of
18774 errno.h on non-LP64 systems to simplify build requirements.
18775
18776 2009-05-04 Joseph Myers <joseph@codesourcery.com>
18777
18778 * c-common.c (handle_mode_attribute): Use %qE for identifiers in
18779 diagnostics.
18780 * c-decl.c (check_bitfield_type_and_width): Make orig_name a tree
18781 and pass value to identifier_to_locale.
18782 (warn_variable_length_array): Make name a tree.
18783 (grokdeclarator): Separate diagnostic texts for named and unnamed
18784 declarators. Use %qE for named declarators.
18785 * c-parser.c (c_lex_one_token): Use %qE for identifiers in
18786 diagnostics.
18787 * c-pragma.c (pop_alignment, handle_pragma_pack): Use %qE for
18788 identifiers in diagnostics.
18789 * c-typeck.c (push_member_name, start_init): Pass identifiers to
18790 identifier_to_locale. Mark "anonymous" strings for translation.
18791
18792 2009-05-04 Michael Eager <eager@eagercon.com>
18793
18794 * config/rs6000/rs6000.c (rs6000_legitimate_address): Allow
18795 address for DImode/DFmode only if double-precision FP regs.
18796
18797 2009-05-04 Michael Eager <eager@eagercon.com>
18798
18799 * config/rs6000/rs6000.c (rs6000_libcall_value): Add
18800 TARGET_SINGLE_FLOAT check.
18801
18802 2009-05-04 Michael Eager <eager@eagercon.com>
18803
18804 * config/rs6000/xilinx.h: Add CPP_SPEC for -mxilinx-fpu options.
18805
18806 2009-05-04 Michael Eager <eager@eagercon.com>
18807
18808 * gcc/config.gcc: (powerpc-xilinx-eabi*): Add tm t-xilinx
18809 * config/rs6000/t-xilinx: New
18810
18811 2009-05-04 Paolo Bonzini <bonzini@gnu.org>
18812
18813 * doc/tm.texi (LEGITIMIZE_ADDRESS): Revise documentation.
18814 * gcc/defaults.h (LEGITIMIZE_ADDRESS): Delete.
18815 * gcc/explow.c (memory_address): Use target hook.
18816 * gcc/targhooks.c (default_legitimize_address): New.
18817 * gcc/targhooks.h (default_legitimize_address): New.
18818 * gcc/target.h (legitimize_address): New.
18819 * gcc/target-def.h (TARGET_LEGITIMIZE_ADDRESS): New.
18820 (TARGET_INITIALIZER): Include it.
18821 * gcc/system.h (LEGITIMIZE_ADDRESS): Poison.
18822
18823 * config/bfin/bfin-protos.h (legitimize_address): Remove.
18824 * config/bfin/bfin.c (legitimize_address): Remove.
18825 * config/bfin/bfin.h (LEGITIMIZE_ADDRESS): Remove.
18826 * config/m68hc11/m68hc11-protos.h (m68hc11_legitimize_address):
18827 Remove.
18828 * config/m68hc11/m68hc11.c (m68hc11_legitimize_address): Remove.
18829 * config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Remove.
18830
18831 * gcc/config/arm/arm.h (LEGITIMIZE_ADDRESS, ARM_LEGITIMIZE_ADDRESS,
18832 THUMB_LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS): Delete.
18833 * gcc/config/s390/s390.h (LEGITIMIZE_ADDRESS): Delete.
18834 * gcc/config/m32c/m32c.h (LEGITIMIZE_ADDRESS): Delete.
18835 * gcc/config/sparc/sparc.h (LEGITIMIZE_ADDRESS): Delete.
18836 * gcc/config/m32r/m32r.h (LEGITIMIZE_ADDRESS): Delete.
18837 * gcc/config/i386/i386.h (LEGITIMIZE_ADDRESS): Delete.
18838 * gcc/config/sh/sh.h (LEGITIMIZE_ADDRESS): Delete.
18839 * gcc/config/avr/avr.h (LEGITIMIZE_ADDRESS): Delete.
18840 * gcc/config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Delete.
18841 * gcc/config/iq2000/iq2000.h (LEGITIMIZE_ADDRESS): Delete.
18842 * gcc/config/mn10300/mn10300.h (LEGITIMIZE_ADDRESS): Delete.
18843 * gcc/config/m68k/m68k.h (LEGITIMIZE_ADDRESS): Delete.
18844 * gcc/config/score/score.h (LEGITIMIZE_ADDRESS): Delete.
18845 * gcc/config/pa/pa.h (LEGITIMIZE_ADDRESS): Delete.
18846 * gcc/config/mips/mips.h (LEGITIMIZE_ADDRESS): Delete.
18847 * gcc/config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Delete.
18848 * gcc/config/frv/frv.h (LEGITIMIZE_ADDRESS): Delete.
18849 * gcc/config/spu/spu.h (LEGITIMIZE_ADDRESS): Delete.
18850 * gcc/config/xtensa/xtensa.h (LEGITIMIZE_ADDRESS): Delete.
18851 * gcc/config/cris/cris.h (LEGITIMIZE_ADDRESS): Delete.
18852 * gcc/config/rs6000/rs6000.h (LEGITIMIZE_ADDRESS): Delete.
18853 * gcc/config/picochip/picochip.h (LEGITIMIZE_ADDRESS): Delete.
18854
18855 * gcc/config/s390/s390-protos.h (legitimize_address): Delete.
18856 * gcc/config/m32c/m32c-protos.h (m32c_legitimize_address): Delete.
18857 * gcc/config/sparc/sparc-protos.h (legitimize_address): Delete.
18858 * gcc/config/i386/i386-protos.h (legitimize_address): Delete.
18859 * gcc/config/avr/avr-protos.h (legitimize_address): Delete.
18860 * gcc/config/mn10300/mn10300-protos.h (legitimize_address): Delete.
18861 * gcc/config/score/score-protos.h (score_legitimize_address): Delete.
18862 * gcc/config/arm/arm-protos.h (arm_legitimize_address,
18863 (thumb_legitimize_address): Delete.
18864 * gcc/config/pa/pa-protos.h (hppa_legitimize_address): Delete.
18865 * gcc/config/mips/mips-protos.h (mips_legitimize_address): Delete.
18866 * gcc/config/alpha/alpha-protos.h (alpha_legitimize_address): Delete.
18867 * gcc/config/frv/frv-protos.h (frv_legitimize_address): Delete.
18868 * gcc/config/spu/spu-protos.h (spu_legitimize_address): Delete.
18869 * gcc/config/xtensa/xtensa-protos.h (xtensa_legitimize_address):
18870 Delete.
18871 * gcc/config/rs6000/rs6000-protos.h (rs6000_legitimize_address):
18872 Delete.
18873
18874 * config/arm/arm.c (arm_legitimize_address): Maybe call Thumb version.
18875 * config/m32c/m32c.c (m32c_legitimize_address): Standardize.
18876 * config/m32r/m32r.c (m32r_legitimize_address): New.
18877 * config/m68k/m68k.c (m68k_legitimize_address): New.
18878 * config/score/score.c (score_legitimize_address): Standardize.
18879 * config/score/score3.c (score3_legitimize_address): Standardize.
18880 * config/score/score3.h (score3_legitimize_address): Adjust.
18881 * config/score/score7.c (score7_legitimize_address): Standardize.
18882 * config/score/score7.h (score7_legitimize_address): Adjust.
18883 * config/sh/sh.c (sh_legitimize_address): New.
18884 * config/iq2000/iq2000.c (iq2000_legitimize_address): New.
18885
18886 * gcc/config/s390/s390.c (legitimize_address): Rename to...
18887 (s390_legitimize_address): ... this.
18888 * gcc/config/sparc/sparc.c (legitimize_address): Rename to...
18889 (sparc_legitimize_address): ... this.
18890 * gcc/config/i386/i386.c (legitimize_address): Rename to...
18891 (ix86_legitimize_address): ... this.
18892 * gcc/config/avr/avr.c (legitimize_address): Rename to...
18893 (avr_legitimize_address): ... this.
18894 * gcc/config/mn10300/mn10300.c (legitimize_address): Rename to...
18895 (mn10300_legitimize_address): ... this.
18896 * config/alpha/alpha.c (alpha_legitimize_address): Wrap...
18897 (alpha_legitimize_address_1): ... the old alpha_legitimize_address.
18898 (alpha_expand_mov): Adjust call.
18899
18900 * config/frv/frv.c (frv_legitimize_address): Return x on failure.
18901 * config/spu/spu.c (spu_legitimize_address): Likewise.
18902 * config/xtensa/xtensa.c (xtensa_legitimize_address): Likewise.
18903 * config/rs6000/rs6000.c (rs6000_legitimize_address): Likewise.
18904
18905 2009-05-04 Joseph Myers <joseph@codesourcery.com>
18906
18907 * intl.c (locale_encoding, locale_utf8): New.
18908 (gcc_init_libintl): Initialize locale_encoding and locale_utf8.
18909 * intl.h (locale_encoding, locale_utf8): Declare.
18910 * pretty-print.c: Include ggc.h. Include iconv.h if HAVE_ICONV.
18911 (pp_base_tree_identifier, decode_utf8_char, identifier_to_locale):
18912 New.
18913 * pretty-print.h (pp_identifier): Call identifier_to_locale on ID
18914 argument.
18915 (pp_tree_identifier): Define to call pp_base_tree_identifier.
18916 (pp_base_tree_identifier): Declare as function.
18917 (identifier_to_locale): Declare.
18918 * Makefile.in (pretty-print.o): Update dependencies.
18919 * varasm.c (finish_aliases_1): Use %qE for identifiers in diagnostics.
18920
18921 2009-05-04 Richard Guenther <rguenther@suse.de>
18922
18923 PR middle-end/40015
18924 * builtins.c (fold_builtin_memory_op): Do not decay to element
18925 type if the size matches the whole array.
18926
18927 2009-05-04 Kazu Hirata <kazu@codesourcery.com>
18928
18929 * expmed.c (synth_mult): When trying out a shift, pass the result
18930 of a signed shift.
18931
18932 2009-05-04 Kazu Hirata <kazu@codesourcery.com>
18933
18934 * expmed.c (shiftsub_cost): Rename to shiftsub0_cost.
18935 (shiftsub1_cost): New.
18936 (init_expmed): Compute shiftsub1_cost.
18937 (synth_mult): Optimize multiplications by constants of the form
18938 -(2^^m-1) for some constant positive integer m.
18939
18940 2009-05-03 Richard Guenther <rguenther@suse.de>
18941
18942 PR c/39983
18943 * c-typeck.c (array_to_pointer_conversion): Do not built
18944 ADDR_EXPRs of arrays of pointer-to-element type.
18945 * c-gimplify.c (c_gimplify_expr): Revert change fixing
18946 up wrong ADDR_EXPRs after-the-fact.
18947 * c-common.c (strict_aliasing_warning): Strip pointer
18948 conversions for obtaining the original type.
18949 * builtins.c (fold_builtin_memset): Handle array types.
18950 (fold_builtin_memory_op): Handle folded POINTER_PLUS_EXPRs
18951 and array types
18952
18953 2009-05-03 Richard Guenther <rguenther@suse.de>
18954
18955 PR middle-end/23329
18956 * tree-ssa.c (useless_type_conversion_p_1): Use get_deref_alias_set.
18957 Do not lose casts from array types with unknown extent to array
18958 types with known extent.
18959 * tree-ssa-copy.c (may_propagate_copy): Remove hack checking for
18960 alias set compatibility.
18961
18962 2009-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
18963
18964 * flags.h (extra_warnings): Delete.
18965 * toplev.c (process_options): Handle Wuninitialized here.
18966 * opts.c (extra_warnings): Delete.
18967 (set_Wextra): Delete.
18968 (common_handle_option): -Wextra can be handled automatically.
18969 * c-opts.c (c_common_handle_option): Delete obsolete code.
18970 (c_common_post_options): Simplify comment.
18971 * common.opt (W): Add Var.
18972 (Wextra): Add Var.
18973 (Wuninitialized): Initialize to -1.
18974
18975 2009-05-03 Adam Nemet <anemet@caviumnetworks.com>
18976 Richard Guenther <rguenther@suse.de>
18977
18978 * expr.c (get_def_for_expr): New function.
18979 (expand_expr_real_1) <PLUS_EXPR, MINUS_EXPR>: Adjust to work with
18980 SSA rather than trees.
18981 <MULT_EXPR>: Likewise. Use subexp0 and subexp1 instead of
18982 TREE_OPERAND (exp, 0) and TREE_OPERAND (exp, 1).
18983
18984 2009-05-03 Joseph Myers <joseph@codesourcery.com>
18985
18986 * c-common.c (reswords): Add _Imaginary.
18987 * c-common.c (enum rid): Add RID_IMAGINARY.
18988
18989 2009-05-03 Paolo Bonzini <bonzini@gnu.org>
18990
18991 * tree.h (TYPE_VECTOR_OPAQUE): Fix documentation.
18992 Patch by Richard Guenther.
18993
18994 2009-05-03 Anatoly Sokolov <aesok@post.ru>
18995
18996 * defaults.h (FRAME_POINTER_REQUIRED): Provide default.
18997 * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
18998 * config/alpha/alpha.h (FRAME_POINTER_REQUIRED): Delete.
18999 * config/s390/s390.h (FRAME_POINTER_REQUIRED): Delete.
19000 * config/spu/spu.h (FRAME_POINTER_REQUIRED): Delete.
19001 * config/sh/sh.h (FRAME_POINTER_REQUIRED): Delete.
19002 * config/pdp11/pdp11.h (FRAME_POINTER_REQUIRED): Delete.
19003 * config/stormy16/stormy16.h (FRAME_POINTER_REQUIRED): Delete.
19004 * config/m68hc11/m68hc11.h (FRAME_POINTER_REQUIRED): Delete.
19005 * config/iq2000/iq2000.h (FRAME_POINTER_REQUIRED): Delete.
19006 * config/mn10300/mn10300.h (FRAME_POINTER_REQUIRED): Delete.
19007 * config/ia64/ia64.h (FRAME_POINTER_REQUIRED): Delete.
19008 * config/m68k/m68k.h (FRAME_POINTER_REQUIRED): Delete.
19009 * config/rs6000/rs6000.h (FRAME_POINTER_REQUIRED): Delete.
19010 * config/picochip/picochip.h (FRAME_POINTER_REQUIRED): Delete.
19011 * config/mcore/mcore.h (FRAME_POINTER_REQUIRED): Delete.
19012 * config/h8300/h8300.h (FRAME_POINTER_REQUIRED): Delete.
19013 * config/v850/v850.h (FRAME_POINTER_REQUIRED): Delete.
19014
19015 2009-05-02 Richard Guenther <rguenther@suse.de>
19016
19017 PR tree-optimization/39940
19018 * tree-ssa-pre.c (eliminate): Make sure we may propagate before
19019 doing so.
19020
19021 2009-05-02 Richard Guenther <rguenther@suse.de>
19022
19023 PR middle-end/40001
19024 * tree-ssa.c (execute_update_addresses_taken): Properly check
19025 if we can mark a variable DECL_GIMPLE_REG_P.
19026 * gimple.c (is_gimple_reg): Re-order check for DECL_GIMPLE_REG_P
19027 back to the end of the function.
19028 (is_gimple_reg_type): Remove complex type special casing.
19029 * gimplify.c (gimplify_bind_expr): Do not set DECL_GIMPLE_REG_P
19030 if not optimizing.
19031
19032 2009-05-02 Ben Elliston <bje@au.ibm.com>
19033
19034 * doc/collect2.texi (Collect2): Document search path behaviour
19035 when configured with --with-ld.
19036
19037 2009-05-02 Jan Hubicka <jh@suse.cz>
19038
19039 * tree-ssa-coalesce.c (coalesce_cost): Do not take ciritical
19040 parameter; update callers.
19041 (coalesce_cost_edge): EH edges are costier because they needs
19042 splitting even if not critical and even more costier when there are
19043 multiple EH predecestors.
19044
19045 2009-05-02 Jan Hubicka <jh@suse.cz>
19046
19047 * except.c (remove_eh_handler_and_replace): Handle updating after
19048 removing TRY blocks.
19049
19050 2009-05-02 Eric Botcazou <ebotcazou@adacore.com>
19051
19052 * store-motion.c (compute_store_table): Add ENABLE_CHECKING guard.
19053
19054 2009-05-02 Steven Bosscher <steven@gcc.gnu.org>
19055
19056 * varasm.c: Do not include c-pragma.h.
19057 * attribs.c: Do not incude c-common.h.
19058
19059 2009-05-01 Michael Matz <matz@suse.de>
19060
19061 * calls.c (initialize_argument_information): Handle SSA names like
19062 decls with a non MEM_P DECL_RTL.
19063
19064 2009-05-01 Steven Bosscher <steven@gcc.gnu.org>
19065
19066 * ipa-reference.c: Do not include c-common.h, include splay-tree.h.
19067 * ipa-utils.c: Likewise.
19068 * ipa-type-escape.c: Likewise.
19069 * cgraphunit.c Do not include c-common.h.
19070 * ipa-pure-const.c: Likewise.
19071 * tree-if-conv.c: Likewise.
19072 * matrix-reorg.c: Do not include c-common.h and c-tree.h.
19073 * ipa-struct-reorg.c: Likewise.
19074 * tree-nomudflap.c: Likewise.
19075 * tree-ssa-structalias.c: Likewise.
19076
19077 2009-05-01 Steven Bosscher <steven@gcc.gnu.org>
19078
19079 * store-motion.c: Many cleanups to make this pass a first-class
19080 citizen instead of an appendix to gcse load motion. Add TODO list
19081 to make this pass faster/cleaner/better.
19082
19083 (struct ls_expr): Post gcse.c-split cleanups.
19084 Rename to st_expr. Rename "loads" field to "antic_stores". Rename
19085 "stores" field to "avail_stores".
19086 (pre_ldst_mems): Rename to store_motion_mems.
19087 (pre_ldst_table): Rename to store_motion_mems_table.
19088 (pre_ldst_expr_hash): Rename to pre_st_expr_hash, update users.
19089 (pre_ldst_expr_eq): Rename to pre_st_expr_eq, update users.
19090 (ldst_entry): Rename to st_expr_entry, update users.
19091 (free_ldst_entry): Rename to free_st_expr_entry, update users.
19092 (free_ldst_mems): Rename to free_store_motion_mems, update users.
19093 (enumerate_ldsts): Rename to enumerate_store_motion_mems,
19094 update caller.
19095 (first_ls_expr): Rename to first_st_expr, update users.
19096 (next_ls_expr): Rename to next_st_expr, update users.
19097 (print_ldst_list): Rename to print_store_motion_mems. Print names of
19098 fields properly for store motion instead of names inherited from load
19099 motion in gcse.c.
19100 (ANTIC_STORE_LIST, AVAIL_STORE_LIST): Remove.
19101 (LAST_AVAIL_CHECK_FAILURE): Explain what this is. Undefine when we
19102 are done with it.
19103
19104 (ae_kill): Rename to st_kill, update users.
19105 (ae_gen): Rename to st_avloc, update users.
19106 (transp): Rename to st_transp, update users.
19107 (pre_insert_map): Rename to st_insert_map, update users.
19108 (pre_delete_map): Rename to st_delete_map, update users.
19109 (insert_store, build_store_vectors, free_store_memory,
19110 one_store_motion_pass): Update for abovementioned changes.
19111
19112 (gcse_subst_count, gcse_create_count): Remove.
19113 (one_store_motion_pass): New statistics counters "n_stores_deleted"
19114 and "n_stores_created", local variables.
19115
19116 (extract_mentioned_regs, extract_mentioned_regs_1): Rewrite to
19117 use for_each_rtx.
19118
19119 (regvec, compute_store_table_current_insn): Remove.
19120 (reg_set_info, reg_clear_last_set): Remove.
19121 (compute_store_table): Use DF caches instead of local dataflow
19122 solvers.
19123
19124 2009-05-01 Joseph Myers <joseph@codesourcery.com>
19125
19126 * c-objc-common.c (c_tree_printer): Print identifiers with
19127 pp_identifier, not pp_string. Mark "({anonymous})" for
19128 translation.
19129 * c-pretty-print.c (pp_c_ws_string): New.
19130 (pp_c_cv_qualifier, pp_c_type_specifier,
19131 pp_c_specifier_qualifier_list, pp_c_parameter_type_list,
19132 pp_c_storage_class_specifier, pp_c_function_specifier,
19133 pp_c_attributes, pp_c_bool_constant, pp_c_constant,
19134 pp_c_primary_expression, pp_c_postfix_expression,
19135 pp_c_unary_expression, pp_c_shift_expression,
19136 pp_c_relational_expression, pp_c_equality_expression,
19137 pp_c_logical_and_expression, pp_c_logical_or_expression): Mostly
19138 use pp_string and pp_c_ws_string in place of pp_identifier and
19139 pp_c_identifier for non-identifiers. Mark English strings for
19140 translation.
19141 * c-pretty-print.h (pp_c_ws_string): Declare.
19142
19143 2009-04-30 Paul Pluzhnikov <ppluzhnikov@google.com>
19144 Roland McGrath <roland@redhat.com>
19145
19146 * configure.ac (HAVE_LD_BUILDID): New check for ld --build-id support.
19147 (ENABLE_LD_BUILDID): New configuration option.
19148 * gcc.c [HAVE_LD_BUILDID and ENABLE_LD_BUILDID]
19149 (LINK_BUILDID_SPEC): New macro.
19150 (init_spec): If defined, prepend it between LINK_EH_SPEC and
19151 link_spec.
19152 * doc/install.texi: Document --enable-linker-build-id option.
19153 * configure: Rebuild.
19154 * config.in: Rebuild.
19155
19156 2009-04-30 Adam Nemet <anemet@caviumnetworks.com>
19157
19158 * config/mips/mips.h (FRAME_GROWS_DOWNWARD,
19159 MIPS_GP_SAVE_AREA_SIZE): Define new macros.
19160 (STARTING_FRAME_OFFSET): Return 0 if FRAME_GROWS_DOWNWARD. Use
19161 MIPS_GP_SAVE_AREA_SIZE.
19162 * config/mips/mips.c (struct mips_frame_info): Update comment
19163 before arg_pointer_offset and hard_frame_pointer_offset.
19164 (mips_compute_frame_info): Update diagram before function: to
19165 correctly use stack_pointer_rtx for fp_sp_offset and gp_sp_offset, to
19166 indicate the position of frame_pointer_rtx with -fstack-protector and
19167 to show args_size. Don't allocate cprestore area for leaf functions
19168 if FRAME_GROWS_DOWNWARD. Use MIPS_GP_SAVE_AREA_SIZE to set
19169 cprestore_size.
19170 (mips_initial_elimination_offset): Update for FRAME_GROWS_DOWNWARD.
19171
19172 2009-04-30 Michael Matz <matz@suse.de>
19173
19174 PR tree-optimization/39955
19175 * config/rs6000/rs6000.c (rs6000_check_sdmode): Also check SSA_NAMEs.
19176
19177 2009-04-30 Dave Korn <dave.korn.cygwin@gmail.com>
19178
19179 * ira.c (setup_cover_and_important_classes): Use safe macro
19180 REG_CLASS_FOR_CONSTRAINT instead of calling regclass_for_constraint
19181 directly.
19182 * genpreds.c (write_tm_preds_h): Output suitable definition of
19183 REG_CLASS_FOR_CONSTRAINT.
19184
19185 2009-04-30 Rafael Avila de Espindola <espindola@google.com>
19186
19187 * alloc-pool.c (alloc_pool_descriptor): Use an insert_opion value
19188 instead of an int.
19189 * bitmap.c (bitmap_descriptor): Likewise.
19190 * ggc-common.c (loc_descriptor): Likewise.
19191 * varray.c (varray_descriptor): Likewise.
19192 * vec.c (vec_descriptor): Likewise.
19193
19194 2009-04-30 Eric Botcazou <ebotcazou@adacore.com>
19195
19196 * Makefile.in (dce.o): Add $(EXCEPT_H).
19197 * dce.c: Include except.h and delete redundant vector definitions.
19198 (deletable_insn_p): Return false for non-call insns that can throw
19199 if DF is running.
19200
19201 2009-04-30 Steven Bosscher <steven@gcc.gnu.org>
19202
19203 * gcse.c (ae_gen): Remove.
19204 (can_assign_to_reg_p): Rename to can_assign_to_reg_without_clobbers_p
19205 and make non-static function to make it available in store-motion.c.
19206 Update call sites with search-and-replace.
19207 (enumerate_ldsts, reg_set_info, reg_clear_last_set, store_ops_ok,
19208 extract_mentioned_regs, extract_mentioned_regs_helper,
19209 find_moveable_store, compute_store_table, load_kills_store, find_loads,
19210 store_killed_in_insn, store_killed_after, store_killed_before,
19211 build_store_vectors, insert_insn_start_basic_block, insert-store,
19212 remove_reachable_equiv_notes, replace_store_insn, delete_store,
19213 free_store_memory, one_store_motion_pass, gate_rtl_store_motion,
19214 execute_rtl_store_motion, pass_rtl_store_motion): Move to...
19215 * store-motion.c: ...new file. Also copy data structures from gcse.c
19216 and clean up to remove parts not used by store motion.
19217 * rtl.h (can_assign_to_reg_without_clobbers_p): Add prototype.
19218 * Makefile.in (store-motion.o): New rule. Add to OBJS-common.
19219
19220 2009-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19221
19222 PR target/38571
19223 * config/arm/arm.h (FUNCTION_BOUNDARY): Set to 16 for thumb
19224 when optimizing for size.
19225
19226 2009-04-30 Hans-Peter Nilsson <hp@axis.com>
19227
19228 * gcse.c (gcse_constant_p): Fix typo in last change.
19229
19230 2009-04-30 Rafael Avila de Espindola <espindola@google.com>
19231
19232 * plugin.c: Include plugin-version.h only if ENABLE_PLUGIN is defined.
19233
19234 2009-04-30 Andreas Krebbel <krebbel1@de.ibm.com>
19235
19236 * gcse.c (gcse_constant_p): Make sure the constant is sharable.
19237
19238 2009-04-29 James E. Wilson <wilson@codesourcery.com>
19239
19240 * config/mips/mips.c (mips_add_offset): Use gen_int_mode for
19241 CONST_HIGH_PART result.
19242
19243 2009-04-29 Anatoly Sokolov <aesok@post.ru>
19244
19245 * config/avr/avr.c (initial_elimination_offset): Rename to
19246 avr_initial_elimination_offset.
19247 (frame_pointer_required_p): Rename to avr_frame_pointer_required_p,
19248 change return type to bool.
19249 (avr_can_eliminate): New function.
19250 * config/avr/avr.h (CAN_ELIMINATE): Use avr_can_eliminate.
19251 (FRAME_POINTER_REQUIRED): Use avr_frame_pointer_required_p.
19252 (INITIAL_ELIMINATION_OFFSET): Use avr_initial_elimination_offset.
19253 * config/avr/avr-protos.h (initial_elimination_offset): Rename to
19254 avr_initial_elimination_offset.
19255 (frame_pointer_required_p): Rename to avr_frame_pointer_required_p.
19256 (avr_initial_elimination_offset): Define.
19257
19258 2009-04-29 Eric Botcazou <ebotcazou@adacore.com>
19259 Steven Bosscher <steven@gcc.gnu.org>
19260
19261 PR rtl-optimization/39938
19262 * Makefile.in (cfgrtl.o): Add $(INSN_ATTR_H).
19263 * cfgrtl.c: Include insn-attr.h.
19264 (rest_of_pass_free_cfg): New function.
19265 (pass_free_cfg): Use rest_of_pass_free_cfg as execute function.
19266 * resource.c (init_resource_info): Remove call to df_analyze.
19267
19268 2009-04-29 Richard Guenther <rguenther@suse.de>
19269
19270 PR target/39943
19271 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Only
19272 allow conversion to signed integers.
19273
19274 2009-04-29 Richard Guenther <rguenther@suse.de>
19275
19276 * tree-cfg.c (verify_gimple_assign_binary): Allow vector
19277 shifts of floating point vectors if the shift amount is
19278 a constant multiple of the element size.
19279
19280 2009-04-29 Andreas Krebbel <krebbel1@de.ibm.com>
19281 Michael Matz <matz@suse.de>
19282
19283 PR middle-end/39927
19284 PR bootstrap/39929
19285 * tree-outof-ssa.c (emit_partition_copy): New function.
19286 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
19287 insert_part_to_rtx_on_edge): Perform the partition base var
19288 copy using emit_partition_copy.
19289 (insert_value_copy_on_edge): Convert constants to the right mode.
19290 (insert_rtx_to_part_on_edge): Add UNSIGNEDSRCP parameter.
19291 (elim_create): Pass the sign of the src to insert_rtx_to_part_on_edge.
19292
19293 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
19294
19295 * config/bfin/bfin.c (bfin_optimize_loop): If we need a scratch reg,
19296 scan backwards to try to find a constant to initialize it.
19297
19298 * config/bfin/bfin.c (bfin_optimize_loop): When looking for the last
19299 insn before the loop_end instruction, don't look past labels.
19300
19301 2009-04-29 Richard Guenther <rguenther@suse.de>
19302
19303 PR middle-end/39937
19304 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do not
19305 loose type conversions.
19306 (forward_propagate_addr_expr): Fix tuplification bug. Remove
19307 stmts only if there are no uses of its definition.
19308
19309 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
19310
19311 * config/bfin/bfin.h (splitting_loops): Declare.
19312 * config/bfin/bfin-protos.h (WA_05000257, WA_05000283, WA_05000315):
19313 Reorder bit definitions to be ascending.
19314 (WA_LOAD_LCREGS, ENABLE_WA_LOAD_LCREGS): New macros.
19315 * config/bfin/bfin.c (splitting_loops): New variable.
19316 (bfin_cpus): Add WA_LOAD_LCREGS as needed.
19317 (struct loop_info): Remove members INIT and LOOP_INIT.
19318 (bfin_optimize_loop): Don't set them. Reorder the code that generates
19319 the LSETUP sequence. Allow LC to be loaded from any register, but
19320 also add a case to push/pop a PREG scratch if ENABLE_WA_LOAD_LCREGS.
19321 (bfin_reorg_loops): When done, split all BB_ENDs with splitting_loops
19322 set to 1.
19323 * config/bfin/bfin.md (loop_end splitter): Use splitting_loops instead
19324 of reload_completed.
19325
19326 From Jie Zhang:
19327 * config/bfin/bfin.md (movsi_insn): Refine constraints.
19328
19329 2009-04-29 Rafael Avila de Espindola <espindola@google.com>
19330
19331 * Makefile.in (PLUGIN_VERSION_H): New.
19332 (OBJS-common): Remove plugin-version.o.
19333 (plugin.o): Depend on (PLUGIN_VERSION_H).
19334 (plugin-version.o): Remove.
19335 * configure: Regenerate
19336 * configure.ac: Create plugin-version.h.
19337 * gcc-plugin.h (plugin_gcc_version): Remove.
19338 (plugin_default_version_check): Change signature.
19339 * plugin-version.c: Remove.
19340 * plugin.c: Include plugin-version.h.
19341 (str_plugin_gcc_version_name): Remove.
19342 (try_init_one_plugin): Pass gcc version to plugin_init.
19343 (plugin_default_version_check): Both gcc and plugin versions are now
19344 arguments.
19345
19346 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
19347
19348 * config/bfin/bfin.c (bfin_optimize_loop): Unify handling of
19349 problematic last insns. Test for TYPE_CALL rather than CALL_P.
19350 Remove special case testing for last insn of inner loops. Don't fail
19351 if the loop ends with a jump, emit an extra nop instead.
19352
19353 * config/bfin/bfin.c (bfin_register_move_cost): Test for subsets of
19354 DREGS rather than comparing directly. Remove code that tries to
19355 account for latencies.
19356
19357 2009-04-29 Richard Guenther <rguenther@suse.de>
19358
19359 PR tree-optimization/39941
19360 * tree-ssa-pre.c (eliminate): Schedule update-ssa after
19361 eliminating an indirect call.
19362
19363 2009-04-29 Richard Guenther <rguenther@suse.de>
19364
19365 * tree-cfg.c (verify_types_in_gimple_reference): Add require_lvalue
19366 parameter. Allow invariants as base if !require_lvalue.
19367 (verify_gimple_assign_single): Adjust.
19368
19369 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
19370
19371 * config/bfin/bfin.md (sp_or_sm, spm_string, spm_name): New macro.
19372 (ss<spm_name>hi3, ss<spm_name>hi3_parts, ss<spm_name>hi3_low_parts,
19373 ss<spm_name_hi3_high_parts): New patterns, replacing ssaddhi3,
19374 ssubhi3, ssaddhi3_parts and sssubhi3_parts.
19375 (flag_mulhi3_parts): Produce a HImode output rather than trying to set
19376 a VEC_SELECT.
19377 * config/bfin/bfin.c (bfin_expand_builtin,
19378 case BFIN_BUILTIN_CPLX_SQU): Adjust accordingly.
19379
19380 2009-04-28 Richard Guenther <rguenther@suse.de>
19381
19382 * tree-vect-loop.c (get_initial_def_for_induction): Use
19383 correct types for pointer increment.
19384
19385 2009-04-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19386
19387 * toplev.c (print_version): Update GMP version string calculation.
19388
19389 2009-04-28 Eric Botcazou <ebotcazou@adacore.com>
19390
19391 PR rtl-optimization/39938
19392 * resource.c (init_resource_info): Add call to df_analyze.
19393
19394 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
19395
19396 * config/alpha/alpha.md (usegp): Cast the result of
19397 alpha_find_lo_sum_using_gp to enum attr_usegp.
19398 * config/alpha/alpha.c (override_options): Remove end-of-structure
19399 marker element from cpu_table. Use array size of cpu_table to handle
19400 -mcpu and -mtune options.
19401 (tls_symbolic_operand_type): Change 0 to TLS_MODEL_NONE.
19402
19403 2009-04-28 Joseph Myers <joseph@codesourcery.com>
19404
19405 * config.gcc (powerpc*-*-* | rs6000-*-*): Add
19406 rs6000/option-defaults.h to tm_file. Support cpu_32, cpu_64,
19407 tune_32 and tune_64.
19408 * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
19409 support on PowerPC.
19410 * config/rs6000/rs6000.h (OPTION_DEFAULT_SPECS): Move to ...
19411 * config/rs6000/option-defaults.h: ... here. New file.
19412 (OPT_64, OPT_32): Define.
19413 (MASK_64BIT): Define to 0 if not already defined.
19414 (OPT_ARCH64, OPT_ARCH32): Define.
19415 (OPTION_DEFAULT_SPECS): Add entries for cpu_32, cpu_64, tune_32
19416 and tune_64.
19417
19418 2009-04-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19419
19420 * config/arm/arm.c (arm_override_options): Emit error on using
19421 fpa with AAPCS.
19422
19423 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
19424
19425 PR rtl-optimization/39914
19426 * ira-conflicts.c (ira_build_conflicts): Prohibit call used
19427 registers for allocnos created from user-defined variables only
19428 when not optimizing.
19429
19430 2009-04-28 Richard Guenther <rguenther@suse.de>
19431
19432 PR middle-end/39937
19433 * fold-const.c (fold_binary): Use distribute_real_division only
19434 on float types.
19435
19436 2009-04-28 Steve Ellcey <sje@cup.hp.com>
19437
19438 * config.gcc (hppa*64*-*-hpux11*): Set use_gcc_stdint and
19439 add hpux-stdint.h to tm_file.
19440 (hppa[12]*-*-hpux11*): Ditto.
19441 (ia64*-*-hpux*): Ditto.
19442 * config/hpux-stdint.h: New.
19443 * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Set
19444 __STDC_EXT__ for all compiles.
19445 * config/pa/pa-hpux.h: Ditto.
19446 * config/pa/pa-hpux10.h: Ditto.
19447 * config/pa/pa-hpux11.h: Ditto.
19448
19449 2009-04-28 Catherine Moore <clm@codesourcery.com>
19450
19451 * debug.h (set_name): Add comment.
19452
19453 2009-04-28 Andrew Pinski <pinskia@gmail.com>
19454
19455 PR target/39929
19456 * config/darwin.c (machopic_gen_offset): Check
19457 currently_expanding_to_rtl if current_ir_type returns IR_GIMPLE.
19458 * config/arm/arm.c (require_pic_register): Likewise.
19459
19460 2009-04-28 Paolo Bonzini <bonzini@gnu.org>
19461
19462 * config/m32c/m32c.c (TARGET_PROMOTE_FUNCTION_RETURN,
19463 m32c_promote_function_return, TARGET_PROMOTE_PROTOTYPES,
19464 m32c_promote_prototypes): Delete.
19465
19466 2009-04-28 Michael Matz <matz@suse.de>
19467
19468 PR middle-end/39922
19469 * tree-outof-ssa.c (insert_value_copy_on_edge): Don't convert
19470 constants.
19471
19472 2009-04-28 Richard Guenther <rguenther@suse.de>
19473
19474 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Fix type error.
19475
19476 2009-04-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19477
19478 * config/arm/arm-cores.def: Add support for arm1156t2f-s.
19479 * doc/invoke.texi (ARM Options): Document support for arm1156t2f-s.
19480 * config/arm/arm-tune.md: Regenerate.
19481
19482 2009-04-28 Alexander Monakov <amonakov@ispras.ru>
19483
19484 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not attempt to delete a
19485 block if there are complex incoming edges.
19486 (sel_merge_blocks): Remove useless assert.
19487 (sel_redirect_edge_and_branch): Check that edge was redirected.
19488 * sel-sched-ir.h (_eligible_successor_edge_p): Remove assert.
19489 (sel_find_rgns): Delete declaration.
19490 * sel-sched.c (purge_empty_blocks): Attempt to remove first block of
19491 the region when it is not a preheader.
19492
19493 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
19494
19495 PR c/39323
19496 * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Sync with elfos.h
19497
19498 2009-04-28 Richard Guenther <rguenther@suse.de>
19499
19500 * tree.h (SSA_NAME_VALUE): Remove.
19501 (struct tree_ssa_name): Remove value_handle member.
19502 * tree-vrp.c (execute_vrp): Initialize/free the value-handle
19503 array for jump threading.
19504 * tree-ssa-propagate.c (ssa_prop_init): Do not initialize
19505 SSA_NAME_VALUEs.
19506 * print-tree.c (print_node): Do not dump SSA_NAME_VALUEs.
19507 * tree-flow.h (threadedge_initialize_values): Declare.
19508 (threadedge_finalize_values): Likewise.
19509 * tree-ssa-threadedge.c (ssa_name_values): New global variable.
19510 (SSA_NAME_VALUE): Define.
19511 (threadedge_initialize_values): New function.
19512 (threadedge_finalize_values): Likewise.
19513 * tree-ssa-dom.c (ssa_name_values): New global variable.
19514 (SSA_NAME_VALUE): Define.
19515 (tree_ssa_dominator_optimize): Initialize/free the value-handle array.
19516
19517 2009-04-28 Ira Rosen <irar@il.ibm.com>
19518
19519 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
19520 Use REPORT_VECTORIZED_LOCATIONS instead
19521 REPORT_VECTORIZED_LOOPS.
19522 * tree-vectorizer.c (vect_verbosity_level): Make static.
19523 (vect_loop_location): Rename to vect_location.
19524 (vect_set_verbosity_level): Update comment.
19525 (vect_set_dump_settings): Use REPORT_VECTORIZED_LOCATIONS
19526 and vect_location.
19527 (vectorize_loops): Fix comment. Use REPORT_VECTORIZED_LOCATIONS
19528 and vect_location. Use REPORT_UNVECTORIZED_LOCATIONS
19529 instead REPORT_UNVECTORIZED_LOOPS.
19530 * tree-vectorizer.h (enum vect_def_type): Rename vect_invariant_def
19531 and vect_loop_def to vect_external_def and vect_internal_def.
19532 (enum verbosity_levels): Rename REPORT_VECTORIZED_LOOPS
19533 and REPORT_UNVECTORIZED_LOOPS to REPORT_VECTORIZED_LOCATIONS and
19534 REPORT_UNVECTORIZED_LOCATIONS.
19535 (enum vect_relevant): Update comment. Rename vect_unused_in_loop
19536 and vect_used_in_loop and to vect_unused_in_scope and
19537 vect_used_in_scope.
19538 (STMT_VINFO_RELEVANT_P): Use vect_unused_in_scope.
19539 (vect_verbosity_level): Remove declaration.
19540 (vect_analyze_operations): Likewise.
19541 (vect_analyze_stmt): Declare.
19542 * tree-vect-loop.c (vect_determine_vectorization_factor): Use
19543 REPORT_UNVECTORIZED_LOCATIONS.
19544 (vect_get_loop_niters): Fix indentation.
19545 (vect_analyze_loop_form): Use REPORT_UNVECTORIZED_LOCATIONS.
19546 (vect_analyze_loop_operations): New function.
19547 (vect_analyze_loop): Call vect_analyze_loop_operations instead of
19548 vect_analyze_operations.
19549 (vect_is_simple_reduction): Use new names.
19550 (vectorizable_live_operation, vect_transform_loop): Likewise.
19551 * tree-vect-data-refs.c (vect_check_interleaving): Add a return value
19552 to specify whether the data references can be a part of interleaving
19553 chain.
19554 (vect_analyze_data_ref_dependence): Use new names.
19555 (vect_analyze_data_refs_alignment, vect_analyze_data_refs): Likewise.
19556 (vect_create_addr_base_for_vector_ref): Remove redundant code.
19557 * tree-vect-patterns.c (widened_name_p): Use new names.
19558 (vect_recog_dot_prod_pattern): Likewise.
19559 * tree-vect-stmts.c (vect_stmt_relevant_p): Use new names.
19560 (process_use, vect_mark_stmts_to_be_vectorized,
19561 vect_model_simple_cost, vect_model_store_cost,
19562 vect_get_vec_def_for_operand, vect_get_vec_def_for_stmt_copy,
19563 vectorizable_call, vectorizable_conversion, vectorizable_assignment,
19564 vectorizable_operation, vectorizable_type_demotion,
19565 vectorizable_type_promotion, vectorizable_store, vectorizable_load,
19566 vectorizable_condition): Likewise.
19567 (vect_analyze_operations): Split into vect_analyze_loop_operations
19568 and ...
19569 (vect_analyze_stmt): ... new function.
19570 (new_stmt_vec_info): Use new names.
19571 (vect_is_simple_use): Use new names and fix comment.
19572 * tree-vect-slp.c (vect_get_and_check_slp_defs): Use new names.
19573 (vect_build_slp_tree, vect_analyze_slp, vect_schedule_slp): Likewise.
19574
19575 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
19576
19577 PR target/39911
19578 * config/i386/i386.c (print_operand) ['Z']: Handle floating point
19579 and integer modes for x87 operands. Do not ICE for unsupported size,
19580 generate error instead. Generate error for unsupported operand types.
19581 ['z']: Do not handle HImode memory operands specially. Warning
19582 for floating-point operands. Fallthru to 'Z' for unsupported operand
19583 types. Do not ICE for unsupported size, generate error instead.
19584 (output_387_binary_op): Use %Z to output operands.
19585 (output_fp_compare): Ditto.
19586 (output_387_reg_move): Ditto.
19587
19588 2009-04-28 Ben Elliston <bje@au.ibm.com>
19589
19590 PR c++/35652
19591 Revert:
19592
19593 2009-03-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
19594
19595 * builtins.c (c_strlen): Do not warn here.
19596 * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
19597 * c-common.c (pointer_int_sum): Take an explicit location.
19598 Warn about offsets out of bounds.
19599 * c-common.h (pointer_int_sum): Adjust declaration.
19600
19601 2009-04-27 Ian Lance Taylor <iant@google.com>
19602
19603 * collect2.c (is_ctor_dtor): Change type of ret field in struct
19604 names to symkind.
19605 * dce.c (run_fast_df_dce): Change type of old_flags to int.
19606 * df-core.c (df_set_flags): Change return type to int. Change
19607 type of old_flags to int.
19608 (df_clear_flags): Likewise.
19609 * df-scan.c (df_def_record_1): Change 0 to VOIDmode.
19610 (df_get_conditional_uses): Likewise.
19611 * df.h (df_set_flags, df_clear_flags): Update declarations.
19612 * dwarf2out.c (struct indirect_string_node): Change type of form
19613 field to enum dwarf_form.
19614 (AT_string_form): Change return type to enum dwarf_form.
19615 * fixed-value.c (fixed_compare): Add cast to enum type.
19616 * fwprop.c (update_df): Change 0 to VOIDmode.
19617 * gensupport.c: Change 0 to UNKNOWN.
19618 * gimple.h (gimple_cond_code): Add cast to enum type.
19619 * haifa-sched.c (reemit_notes): Add cast to enum type.
19620 * hooks.c (hook_int_void_no_regs): Remove function.
19621 * hooks.h (hook_int_void_no_regs): Remove declaration.
19622 * optabs.c (expand_widen_pattern_expr): Change 0 to VOIDmode.
19623 * predict.c (combine_predictions_for_insn): Add casts to enum type.
19624 * real.c (real_arithmetic): Add cast to enum type.
19625 (real_compare): Likewise.
19626 * target.h (struct gcc_target): Change return type of
19627 branch_target_register_class to enum reg_class.
19628 * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Define as
19629 default_branch_target_register_class.
19630 * targhooks.c (default_branch_target_register_class): New function.
19631 * targhooks.h (default_branch_target_register_class): Declare.
19632 * tree-data-ref.c (print_direction_vector): Add cast to enum type.
19633 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Remove
19634 cast to int.
19635 * tree-vect-loop.c (vect_create_epilog_for_reduction): Change 0 to
19636 ERROR_MARK.
19637 * tree-vect-slp.c (vect_build_slp_tree): Change 0 to
19638 vect_uninitialized_def. Change 0 to ERROR_MARK.
19639 * tree-vect-stmts.c (supportable_widening_operation): Don't
19640 initialize icode1 and icode2.
19641 * tree-vectorizer.h (enum vect_def_type): Add vect_uninitialized_def.
19642 * config/sol2-c.c (cmn_err_length_specs): Change 0 to FMT_LEN_none
19643 and to STD_C89.
19644 (cmn_err_flag_specs): Change 0 to STD_C89.
19645 (cmn_err_char_table): Likewise.
19646 * config/arm/arm.c (get_arm_condition_code): Change type of code
19647 to enum arm_cond_code.
19648 (IWMMXT_BUILTIN): Change 0 to UNKNOWN.
19649 (IWMMXT_BUILTIN2): Likewise.
19650 (neon_builtin_type_bits): Don't define typedef.
19651 (neon_builtin_datum): Change type of bits field to int.
19652 (arm_expand_neon_args): Add cast to enum type.
19653 * config/ia64/ia64.c (tls_symbolic_operand_type): Change 0 to
19654 TLS_MODEL_NONE.
19655 * config/i386/i386.c (bdesc_multi_arg): Change 0 to UNKNOWN. Add
19656 casts to enum type.
19657 * config/mips/mips.c (LOONGSON_BUILTIN_ALIAS): Change 0 to
19658 MIPS_FP_COND_f.
19659 * config/mips/mips.md (jal_macro): Return enum constant.
19660 (single_insn): Likewise.
19661 * config/rs6000/rs6000.c (bdesc_altivec_preds): Change 0 to
19662 CODE_FOR_nothing.
19663 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
19664 casts to enum type.
19665 * config/s390/s390.c (s390_tune_flags): Change type to int.
19666 (s390_arch_flags): Likewise.
19667 (s390_handle_arch_option): Change flags field of struct pta to int.
19668 * config/s390/s390.h (s390_tune_flags): Update declaration.
19669 (s390_arch_flags): Likewise.
19670 * config/sh/sh.c (prepare_move_operands): Compare
19671 tls_symbolic_operand result with enum constant.
19672 (sh_reorg): Change PUT_MODE to PUT_REG_NOTE_KIND.
19673 (sh_expand_prologue): Add cast to enum type.
19674 (sh_expand_epilogue): Likewise.
19675 (tls_symbolic_operand): Change return type to enum tls_model.
19676 (fpscr_set_from_mem): Add cast to enum type.
19677 (legitimize_pic_address): Compare tls_symbolic_operand result with
19678 enum constant.
19679 (sh_target_reg_class): Change return type to enum reg_class.
19680 * config/sh/sh.h (OVERRIDE_OPTIONS): Change CPU_xxx to
19681 PROCESSOR_xxx.
19682 * config/sh/sh-protos.h (tls_symbolic_operand): Update declaration.
19683 * config/sparc/sparc.c (sparc_override_options): Add cast to enum type.
19684 * config/sparc/sparc.md (empty_delay_slot): Return enum constant.
19685 (pic, calls_alloca, calls_eh_return, leaf_function): Likewise.
19686 (delayed_branch, tls_call_delay): Likewise.
19687 (eligible_for_sibcall_delay): Likewise.
19688 (eligible_for_return_delay): Likewise.
19689 * config/spu/spu.c (expand_builtin_args): Add cast to enum type.
19690 (spu_expand_builtin_1): Likewise.
19691
19692 * c-typeck.c (convert_for_assignment): Issue -Wc++-compat warnings
19693 for all types of conversions.
19694 (output_init_element): Issue -Wc++-compat warning if needed when
19695 initializing a bitfield with enum type.
19696 * c-parser.c (c_parser_expression): Set original_type to
19697 original_type of right hand operand of comma operator.
19698
19699 2009-04-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19700
19701 * doc/c-tree.texi (Types, Functions, Expression trees): Fix
19702 grammar nits.
19703 * doc/cfg.texi (Maintaining the CFG, Liveness information): Likewise.
19704 * doc/cpp.texi (Standard Predefined Macros)
19705 (Implementation-defined behavior): Likewise.
19706 * doc/extend.texi (Function Attributes, Type Attributes): Likewise.
19707 * doc/gimple.texi (GIMPLE Exception Handling)
19708 (@code{GIMPLE_ASSIGN}): Likewise.
19709 * doc/install.texi (Prerequisites, Configuration, Specific): Likewise.
19710 * doc/invoke.texi (Warning Options, Optimize Options)
19711 (AVR Options, Darwin Options): Likewise.
19712 (Optimize Options): Reformulate -fwhole-program description.
19713 * doc/loop.texi (Lambda): Likewise.
19714 * doc/md.texi (Output Template, Define Constraints)
19715 (Standard Names, Insn Splitting): Likewise.
19716 * doc/options.texi (Option properties): Likewise.
19717 * doc/passes.texi (Tree-SSA passes): Likewise.
19718 * doc/rtl.texi (Side Effects, Assembler, Insns): Likewise.
19719 * doc/tm.texi (Register Classes, Old Constraints, Scalar Return)
19720 (File Names and DBX): Likewise.
19721 * doc/trouble.texi (Incompatibilities): Likewise.
19722
19723 2009-04-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
19724
19725 * spu.c (spu_machine_dependent_reorg): Make sure branch label on hint
19726 instruction is correct.
19727
19728 2009-04-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
19729
19730 Allow non-constant arguments to conversion intrinsics.
19731 * spu-protos.h (exp2_immediate_p, spu_gen_exp2): Declare.
19732 * predicates.md (spu_inv_exp2_operand, spu_exp2_operand): New.
19733 * spu.c (print_operand): Handle 'v' and 'w'.
19734 (exp2_immediate_p, spu_gen_exp2): Define.
19735 * spu-builtins.def (spu_convts, spu_convtu, spu_convtf_0,
19736 spu_convtf_1): Update parameter descriptions.
19737 * spu-builtins.md (spu_csflt, spu_cuflt, spu_cflts, spu_cfltu): Update.
19738 * constraints.md ('v', 'w'): New.
19739 * spu.md (UNSPEC_CSFLT, UNSPEC_CFLTS, UNSPEC_CUFLT, UNSPEC_CFLTU):
19740 Remove.
19741 (i2f, I2F): New define_mode_attr.
19742 (floatsisf2, floatv4siv4sf2, fix_truncsfsi2, fix_truncv4sfv4si2,
19743 floatunssisf2, floatunsv4siv4sf2, fixuns_truncsfsi2,
19744 fixuns_truncv4sfv4si2): Update to use mode attribute.
19745 (float<mode><i2f>2_mul, float<mode><i2f>2_div,
19746 fix_trunc<mode><f2i>2_mul, floatuns<mode><i2f>2_mul,
19747 floatuns<mode><i2f>2_div, fixuns_trunc<mode><f2i>2_mul): New
19748 patterns for combine.
19749
19750 2009-04-27 Steven Bosscher <steven@gcc.gnu.org>
19751
19752 * dbgcnt.def (cprop1, cprop2, gcse, jump_bypass): Remove
19753 (cprop, hoist, pre, store_motion): New debug counters.
19754 * tree-pass.h (pass_tracer): Move to list of gimple passes, it
19755 is not an RTL pass anymore.
19756 (pass_profiling): Remove extern decl for pass removed in 2005.
19757 (pass_gcse, pass_jump_bypass): Remove.
19758 * final.c (rest_of_clean_state): Set flag_rerun_cse_after_global_opts
19759 to 0 for clean state.
19760 * toplev.h (flag_rerun_cse_after_global_opts): Add extern declaration.
19761 * cse.c (gate_handle_cse_after_global_opts,
19762 rest_of_handle_cse_after_global_opts): New functions.
19763 (pass_cse_after_global_opts): New pass, does local CSE.
19764 * timevar.def (TV_GCSE, TV_CPROP1, TV_CPROP2, TV_BYPASS): Remove.
19765 (TV_CPROP): New timevar.
19766 * gcse.c (flag_rerun_cse_after_global_opts): New global variable.
19767 (run_jump_opt_after_gcse, max_gcse_regno): Remove global vars.
19768 (gcse_main, recompute_all_luids): Remove.
19769 (compute_hash_table_work): Call max_reg_num instead of reading
19770 max_gcse_regno.
19771 (cprop_jump): Don't set run_jump_opt_after_gcse.
19772 (constprop_register): Always allow to alter jumps.
19773 (cprop_insn): Likewise.
19774 (do_local_cprop): Likewise.
19775 (local_cprop_pass): Likewise. Return non-zero if something changed.
19776 (cprop): Remove function, fold interesting bits into one_cprop_pass.
19777 (find_implicit_sets): Add note about missed optimization opportunity.
19778 (one_cprop_pass): Rewrite to be "the" CPROP pass, called from the
19779 pass_rtl_cprop execute function.
19780 Don't bother tracking the pass number, each pass gets its own dumpfile
19781 now anyway.
19782 Always allow to alter jumpsand bypass jumps.
19783 (bypass_block): Don't ignore regno >= max_gcse_regno, find_bypass_set
19784 will just find no suitable set.
19785 (pre_edge_insert): Fix dumping, this function is for PRE only.
19786 (one_pre_gcse_pass): Rewrite to be "the" PRE pass, called from the
19787 pass_rtl_pre execute function.
19788 (hoist_code): Return non-zero if something changed. Keep track of
19789 substitutions and insertions for statistics gathering similar to PRE.
19790 (one_code_hoisting_pass): Rewrite to be "the" code hoisting pass,
19791 called from the pass_rtl_hoist execute function. Show pass statistics.
19792 (compute_store_table): Use max_reg_num directly instead of using the
19793 formerly global max_gcse_regno.
19794 (build_store_vectors): Likewise.
19795 (replace_store_insn): Fix dumping.
19796 (store_motion): Rename to ...
19797 (one_store_motion_pass): ... this. Rewrite to be "the" STORE_MOTION
19798 pass, called from the pass_rtl_store_motion execute function. Keep
19799 track of substitutions and insertions for statistics gathering similar
19800 to PRE.
19801 (bypass_jumps): Remove, fold interesting bits into ...
19802 (one_cprop_pass): ... this. Rewrite to be "the" CPROP pass, called
19803 from the pass_rtl_cprop execute function.
19804 (gate_handle_jump_bypass, rest_of_handle_jump_bypass,
19805 pass_jump_bypass): Remove.
19806 (gate_handle_gcse, rest_of_handle_gcse): Remove.
19807 (gate_rtl_cprop, execute_rtl_cprop, pass_rtl_cprop): New.
19808 (gate_rtl_pre, execute_rtl_pre, pass_rtl_pre): New.
19809 (gate_rtl_hoist, execute_rtl_hoist, pass_rtl_hoist): New.
19810 (gate_rtl_store_motion, execute_rtl_store_motion,
19811 pass_rtl_store_motion): New.
19812 * common.opt: Remove flag_cse_skip_blocks, adjust documentation to
19813 make it clear that -fcse-skip-blocks is a no-op for backward compat.
19814 * passes.c (init_optimization_passes): Remove pass_gcse and
19815 pass_jump_bypass. Schedule cprop, pre, hoist, cprop, store_motion,
19816 and cse_after_global_opts in place of pass_gcse. Schedule cprop
19817 instead of pass_jump_bypass.
19818
19819 2009-04-27 Richard Guenther <rguenther@suse.de>
19820
19821 PR middle-end/39928
19822 * gimplify.c (gimplify_expr): If we are required to create
19823 a temporary make sure it ends up as register.
19824
19825 2009-04-27 H.J. Lu <hongjiu.lu@intel.com>
19826
19827 PR target/39903
19828 * config/i386/i386.c (construct_container): Don't call
19829 gen_reg_or_parallel with BLKmode on X86_64_SSE_CLASS,
19830 X86_64_SSESF_CLASS and X86_64_SSEDF_CLASS.
19831
19832 2009-04-27 Michael Matz <matz@suse.de>
19833
19834 * ssaexpand.h (struct ssaexpand): Member 'values' is a bitmap.
19835 (get_gimple_for_ssa_name): Adjust, lookup using SSA_NAME_DEF_STMT.
19836 * tree-ssa-live.h: (find_replaceable_exprs): Return a bitmap.
19837 (dump_replaceable_exprs): Take a bitmap.
19838 * cfgexpand.c (gimple_cond_pred_to_tree): Handle bitmap instead of
19839 array.
19840 (expand_gimple_basic_block): Likewise.
19841 * tree-ssa-ter.c (struct temp_expr_table_d): Make
19842 replaceable_expressions member a bitmap.
19843 (free_temp_expr_table): Pass back and deal with bitmap, not gimple*.
19844 (mark_replaceable): Likewise.
19845 (find_replaceable_in_bb, dump_replaceable_exprs): Likewise.
19846 * tree-outof-ssa.c (remove_ssa_form): 'values' is a bitmap.
19847
19848 2009-04-27 Richard Guenther <rguenther@suse.de>
19849
19850 * tree-cfg.c (remove_useless_stmts): Verify stmts afterwards.
19851 (verify_stmts): Dispatch to gimple/type verification code.
19852 * tree-inline.c (remap_gimple_op_r): Work around C++ FE
19853 issue with call argument types.
19854
19855 2009-04-27 Michael Matz <matz@suse.de>
19856
19857 * tree-into-ssa.c (regs_to_rename, mem_syms_to_rename): Remove.
19858 (init_update_ssa, delete_update_ssa, update_ssa): Remove references
19859 to above.
19860
19861 2009-04-27 Richard Sandiford <rdsandiford@googlemail.com>
19862 Eric Botcazou <ebotcazou@adacore.com>
19863
19864 * resource.c (find_basic_block): Use BLOCK_FOR_INSN to look up
19865 a label's basic block.
19866 (mark_target_live_regs): Tidy and rework obsolete comments.
19867 Change back DF problem to LIVE. If a label starts a basic block,
19868 assume that all registers that used to be live then still are.
19869 (init_resource_info): If a label starts a basic block, set its
19870 BLOCK_FOR_INSN accordingly.
19871 (fini_resource_info): Undo the setting of BLOCK_FOR_INSN.
19872
19873 2009-04-27 Richard Guenther <rguenther@suse.de>
19874
19875 * tree-flow-inline.h (function_ann): Remove.
19876 (get_function_ann): Likewise.
19877 * tree-dfa.c (create_function_ann): Remove.
19878 * tree-flow.h (struct static_var_ann_d): Remove.
19879 (struct function_ann_d): Likewise.
19880 (union tree_ann_d): Remove fdecl member.
19881 (function_ann_t): Remove.
19882 (function_ann, get_function_ann, create_function_ann): Remove
19883 declarations.
19884
19885 2009-04-27 Uros Bizjak <ubizjak@gmail.com>
19886
19887 * config/alpha/alpha.c (code_for_builtin): Declare as enum insn_code.
19888
19889 2009-04-27 Jan Hubicka <jh@suse.cz>
19890
19891 * ipa-pure-const.c (struct funct_state_d): New fields
19892 state_previously_known, looping_previously_known; remove
19893 state_set_in_source.
19894 (analyze_function): Use new fields.
19895 (propagate): Avoid assumption that state_set_in_source imply
19896 nonlooping.
19897
19898 * tree-ssa-loop-niter.c (finite_loop_p): New function.
19899 * tree-ssa-loop-ivcanon.c (empty_loop_p): Use it.
19900 * cfgloop.h (finite_loop_p): Declare.
19901
19902 2009-04-26 Michael Matz <matz@suse.de>
19903
19904 * tree-flow.h (tree_ann_common_d): Remove aux and value_handle members.
19905
19906 2009-04-26 Michael Matz <matz@suse.de>
19907
19908 * tree-pass.h (pass_del_ssa, pass_mark_used_blocks,
19909 pass_free_cfg_annotations, pass_free_datastructures): Remove decls.
19910 * gimple-low.c (mark_blocks_with_used_vars, mark_used_blocks,
19911 pass_mark_used_blocks): Remove.
19912 * tree-optimize.c (pass_free_datastructures,
19913 execute_free_cfg_annotations, pass_free_cfg_annotations): Remove.
19914 * passes.c (init_optimization_passes): Don't call
19915 pass_mark_used_blocks, remove dead code.
19916
19917 2009-04-26 H.J. Lu <hongjiu.lu@intel.com>
19918
19919 * tree-outof-ssa.c (rewrite_trees): Add ATTRIBUTE_UNUSED.
19920 * tree-ssa-live.h (register_ssa_partition): Likewise.
19921
19922 2009-04-26 Michael Matz <matz@suse.de>
19923
19924 Expand from SSA.
19925 * builtins.c (fold_builtin_next_arg): Handle SSA names.
19926 * tree-ssa-copyrename.c (rename_ssa_copies): Use ssa_name() directly.
19927 * tree-ssa-coalesce.c (create_outofssa_var_map): Mark only useful
19928 SSA names.
19929 (compare_pairs): Swap cost comparison.
19930 (coalesce_ssa_name): Don't use change_partition_var.
19931 * tree-nrv.c (struct nrv_data): Add modified member.
19932 (finalize_nrv_r): Set it.
19933 (tree_nrv): Use it to update statements.
19934 (pass_nrv): Require PROP_ssa.
19935 * tree-mudflap.c (mf_decl_cache_locals,
19936 mf_build_check_statement_for): Use make_rename_temp.
19937 (pass_mudflap_2): Require PROP_ssa, run ssa update at finish.
19938 * alias.c (find_base_decl): Handle SSA names.
19939 * emit-rtl (set_reg_attrs_for_parm): Make non-static.
19940 (component_ref_for_mem_expr): Don't leak SSA names into RTL.
19941 * rtl.h (set_reg_attrs_for_parm): Declare.
19942 * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Rename
19943 to "optimized", remove unused locals at finish.
19944 (execute_free_datastructures): Make global, call
19945 delete_tree_cfg_annotations.
19946 (execute_free_cfg_annotations): Don't call
19947 delete_tree_cfg_annotations.
19948
19949 * ssaexpand.h: New file.
19950 * expr.c (toplevel): Include ssaexpand.h.
19951 (expand_assignment): Handle SSA names the same as register variables.
19952 (expand_expr_real_1): Expand SSA names.
19953 * cfgexpand.c (toplevel): Include ssaexpand.h.
19954 (SA): New global variable.
19955 (gimple_cond_pred_to_tree): Fold TERed comparisons into predicates.
19956 (SSAVAR): New macro.
19957 (set_rtl): New helper function.
19958 (add_stack_var): Deal with SSA names, use set_rtl.
19959 (expand_one_stack_var_at): Likewise.
19960 (expand_one_stack_var): Deal with SSA names.
19961 (stack_var_size_cmp): Use code (SSA_NAME / DECL) as tie breaker
19962 before unique numbers.
19963 (expand_stack_vars): Use set_rtl.
19964 (expand_one_var): Accept SSA names, add asserts for them, feed them
19965 to above subroutines.
19966 (expand_used_vars): Expand all partitions (without default defs),
19967 then only the local decls (ignoring those expanded already).
19968 (expand_gimple_cond): Remove edges when jumpif() expands an
19969 unconditional jump.
19970 (expand_gimple_basic_block): Don't clear EDGE_EXECUTABLE here,
19971 or remove abnormal edges. Ignore insns setting the LHS of a TERed
19972 SSA name.
19973 (gimple_expand_cfg): Call into rewrite_out_of_ssa, initialize
19974 members of SA; deal with PARM_DECL partitions here; expand
19975 all PHI nodes, free tree datastructures and SA. Commit instructions
19976 on edges, clear EDGE_EXECUTABLE and remove abnormal edges here.
19977 (pass_expand): Require and destroy PROP_ssa, verify SSA form, flow
19978 info and statements at start, collect garbage at finish.
19979 * tree-ssa-live.h (struct _var_map): Remove partition_to_var member.
19980 (VAR_ANN_PARTITION) Remove.
19981 (change_partition_var): Don't declare.
19982 (partition_to_var): Always return SSA names.
19983 (var_to_partition): Only accept SSA names.
19984 (register_ssa_partition): Only check argument.
19985 * tree-ssa-live.c (init_var_map): Don't allocate partition_to_var
19986 member.
19987 (delete_var_map): Don't free it.
19988 (var_union): Only accept SSA names, simplify.
19989 (partition_view_init): Mark only useful SSA names as used.
19990 (partition_view_fini): Only deal with SSA names.
19991 (change_partition_var): Remove.
19992 (dump_var_map): Use ssa_name instead of partition_to_var member.
19993 * tree-ssa.c (delete_tree_ssa): Don't remove PHI nodes on RTL
19994 basic blocks.
19995 * tree-outof-ssa.c (toplevel): Include ssaexpand.h and expr.h.
19996 (struct _elim_graph): New member const_dests; nodes member vector of
19997 ints.
19998 (set_location_for_edge): New static helper.
19999 (create_temp): Remove.
20000 (insert_partition_copy_on_edge, insert_part_to_rtx_on_edge,
20001 insert_value_copy_on_edge, insert_rtx_to_part_on_edge): New functions.
20002 (new_elim_graph): Allocate const_dests member.
20003 (clean_elim_graph): Truncate const_dests member.
20004 (delete_elim_graph): Free const_dests member.
20005 (elim_graph_size): Adapt to new type of nodes member.
20006 (elim_graph_add_node): Likewise.
20007 (eliminate_name): Likewise.
20008 (eliminate_build): Don't take basic block argument, deal only with
20009 partition numbers, not variables.
20010 (get_temp_reg): New static helper.
20011 (elim_create): Use it, deal with RTL temporaries instead of trees.
20012 (eliminate_phi): Adjust all calls to new signature.
20013 (assign_vars, replace_use_variable, replace_def_variable): Remove.
20014 (rewrite_trees): Only do checking.
20015 (edge_leader, stmt_list, leader_has_match, leader_match): Remove.
20016 (same_stmt_list_p, identical_copies_p, identical_stmt_lists_p,
20017 init_analyze_edges_for_bb, fini_analyze_edges_for_bb,
20018 contains_tree_r, MAX_STMTS_IN_LATCH,
20019 process_single_block_loop_latch, analyze_edges_for_bb,
20020 perform_edge_inserts): Remove.
20021 (expand_phi_nodes): New global function.
20022 (remove_ssa_form): Take ssaexpand parameter. Don't call removed
20023 functions, initialize new parameter, remember partitions having a
20024 default def.
20025 (finish_out_of_ssa): New global function.
20026 (rewrite_out_of_ssa): Make global. Adjust call to remove_ssa_form,
20027 don't reset in_ssa_p here, don't disable TER when mudflap.
20028 (pass_del_ssa): Remove.
20029 * tree-flow.h (struct var_ann_d): Remove out_of_ssa_tag and
20030 partition members.
20031 (execute_free_datastructures): Declare.
20032 * Makefile.in (SSAEXPAND_H): New variable.
20033 (tree-outof-ssa.o, expr.o, cfgexpand.o): Depend on SSAEXPAND_H.
20034 * basic-block.h (commit_one_edge_insertion): Declare.
20035 * passes.c (init_optimization_passes): Move pass_nrv and
20036 pass_mudflap2 before pass_cleanup_cfg_post_optimizing, remove
20037 pass_del_ssa, pass_free_datastructures, pass_free_cfg_annotations.
20038 * cfgrtl.c (commit_one_edge_insertion): Make global, don't declare.
20039 (redirect_branch_edge): Deal with super block when expanding, split
20040 out jump patching itself into ...
20041 (patch_jump_insn): ... here, new static helper.
20042
20043 2009-04-26 Michael Matz <matz@suse.de>
20044
20045 * tree-ssa-copyrename.c (rename_ssa_copies): Don't iterate
20046 beyond num_ssa_names.
20047 * tree-ssa-ter.c (free_temp_expr_table): Likewise.
20048 * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
20049
20050 2009-04-26 Jakub Jelinek <jakub@redhat.com>
20051
20052 PR inline-asm/39543
20053 * fwprop.c (forward_propagate_asm): New function.
20054 (forward_propagate_and_simplify): Propagate also into __asm, if it
20055 doesn't increase the number of referenced registers.
20056
20057 PR c/39889
20058 * stmt.c (warn_if_unused_value): Look through NON_LVALUE_EXPR.
20059
20060 2009-04-26 Jakub Jelinek <jakub@redhat.com>
20061
20062 * tree-nested.c (get_nonlocal_vla_type): If not optimizing, call
20063 note_nonlocal_vla_type for nonlocal VLAs.
20064 (note_nonlocal_vla_type, note_nonlocal_block_vlas,
20065 contains_remapped_vars, remap_vla_decls): New functions.
20066 (convert_nonlocal_reference_stmt): If not optimizing, call
20067 note_nonlocal_block_vlas on GIMPLE_BIND block vars.
20068 (nesting_copy_decl): Return {VAR,PARM,RESULT}_DECL unmodified
20069 if it wasn't found in var_map.
20070 (finalize_nesting_tree_1): Call remap_vla_decls. If outermost
20071 GIMPLE_BIND doesn't have gimple_bind_block, chain debug_var_chain
20072 to BLOCK_VARS (DECL_INITIAL (root->context)) instead of calling
20073 declare_vars.
20074 * gimplify.c (nonlocal_vlas): New variable.
20075 (gimplify_var_or_parm_decl): Add debug VAR_DECLs for non-local
20076 referenced VLAs.
20077 (gimplify_body): Create and destroy nonlocal_vlas.
20078
20079 * dwarf2out.c (loc_descr_plus_const): New function.
20080 (build_cfa_aligned_loc, tls_mem_loc_descriptor,
20081 mem_loc_descriptor, loc_descriptor_from_tree_1,
20082 descr_info_loc, gen_variable_die): Use it.
20083
20084 * tree.h (DECL_BY_REFERENCE): Note that it is also valid for
20085 !TREE_STATIC VAR_DECLs.
20086 * dwarf2out.c (loc_by_reference, gen_decl_die): Handle
20087 DECL_BY_REFERENCE on !TREE_STATIC VAR_DECLs.
20088 (gen_variable_die): Likewise. Don't look at TREE_PRIVATE if
20089 DECL_BY_REFERENCE is valid.
20090 * dbxout.c (DECL_ACCESSIBILITY_CHAR): Don't look at TREE_PRIVATE
20091 for PARM_DECLs, RESULT_DECLs or !TREE_STATIC VAR_DECLs.
20092 * tree-nested.c (get_nonlocal_debug_decl, get_local_debug_decl):
20093 Copy DECL_BY_REFERENCE.
20094 (struct nesting_copy_body_data): New type.
20095 (nesting_copy_decl): New function.
20096 (finalize_nesting_tree_1): Remap types of debug_var_chain variables,
20097 if they have variable length.
20098
20099 2009-04-26 Michael Matz <matz@suse.de>
20100
20101 * tree-sra.c (sra_build_assignment): Don't use into_ssa mode,
20102 mark new temporaries for renaming.
20103
20104 2009-04-26 Joseph Myers <joseph@codesourcery.com>
20105
20106 PR c/39581
20107 * c-decl.c (global_bindings_p): Return negative value.
20108 (c_variable_size): New. Based on variable_size from
20109 stor-layout.c.
20110 (grokdeclarator): Call c_variable_size not variable_size.
20111
20112 2009-04-26 Uros Bizjak <ubizjak@gmail.com>
20113
20114 * config/i386/i386.c (print_operand) ['z']: Fix typo.
20115
20116 2009-04-26 Kai Tietz <kai.tietz@onevision.com>
20117
20118 * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR):
20119 Redefine it to just use mingw/include.
20120 (ASM_SPEC): Rules for -m32 and -m64.
20121 (LINK_SPEC): Use Likewise.
20122 (SPEC_32): New define.
20123 (SPEC_64): Likewise.
20124 (SUB_LINK_SPEC): Likewise.
20125 (MULTILIB_DEFAULTS): New define.
20126 * config/i386/t-mingw-w64 (MULTILIB_OPTIONS):
20127 Add multilib options.
20128 (MULTILIB_DIRNAMES): Likewise.
20129 (MULTILIB_OSDIRNAMES): Likewise.
20130 (LIBGCC): Likewise.
20131 (INSTALL_LIBGCC): Likewise.
20132
20133 2009-04-26 Joseph Myers <joseph@codesourcery.com>
20134
20135 PR c/39556
20136 * c-tree.h (enum c_inline_static_type): New.
20137 (record_inline_static): Declare.
20138 * c-decl.c (struct c_inline_static, c_inline_statics,
20139 record_inline_static, check_inline_statics): New.
20140 (pop_file_scope): Call check_inline_statics.
20141 (start_decl): Call record_inline_static instead of pedwarning
20142 directly for static in inline function.
20143 * c-typeck.c (build_external_ref): Call record_inline_static
20144 instead of pedwarning directly for static referenced in inline
20145 function.
20146
20147 2009-04-26 Steven Bosscher <steven@gcc.gnu.org>
20148
20149 * df-scan.c (df_insn_rescan): Salvage insn's LUID if the insn is
20150 not new but only being rescanned.
20151 * gcse.c (uid_cuid, max_uid, INSN_CUID, max_cuid, struct reg_set,
20152 reg_set_table, REG_SET_TABLE_SLOP, reg_set_in_block,
20153 alloc_reg_set_mem, free_reg_set_mem, record_one_set,
20154 record_set_info, compute_set, grealloc): Remove.
20155 (recompute_all_luids): New function.
20156 (gcse_main): Don't compute sets, and don't do related memory
20157 allocations/free-ing. If something changed before the end of the
20158 pass, update LUIDs using recompute_all_luids.
20159 (alloc_gcse_mem): Don't compute LUIDs. Don't allocate reg_set memory.
20160 (free_gcse_mem): Don't free it either.
20161 (oprs_unchanged_p, load_killed_in_block, record_last_reg_set_info):
20162 Use the df insn LUIDs.
20163 (load_killed_in_block): Likewise.
20164 (compute_hash_table_work): Don't compute reg_set_in_block.
20165 (compute_transp): Use DF_REG_DEF_CHAINs.
20166 (local_cprop_pass): Don't use compute_sets and related functions.
20167 (one_cprop_pass, pre_gcse, one_pre_gcse_pass, one_code_hoisting_pass):
20168 Use get_max_uid() instead of max_cuid.
20169 (insert_insn_end_basic_block, pre_insert_copy_insn,
20170 update_ld_motion_stores): Don't try to
20171 keep reg_set tables up to date.
20172 (pre_insert_copies): Use df insn LUIDs.
20173 (sbitmap pre_redundant_insns): Replace with uses of INSN_DELETED_P.
20174 (reg_set_info): Don't use extra bitmap argument.
20175 (compute_store_table): Don't compute reg_set_in_block. Use DF scan
20176 information to compute regs_set_in_block.
20177 (free_store_memory, store_motion): Don't nullify reg_set_in_block.
20178 (bypass_jumps): Don't use compute_sets and friends.
20179
20180 2009-04-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20181
20182 PR testsuite/39710
20183 * opts.c (undocumented_msg): Do not leave blank even with
20184 ENABLE_CHECKING.
20185
20186 2009-04-25 Joseph Myers <joseph@codesourcery.com>
20187
20188 * c-decl.c (build_enumerator): Allow values folding to integer
20189 constants but not integer constant expressions with a pedwarn if
20190 pedantic.
20191
20192 2009-04-25 Joseph Myers <joseph@codesourcery.com>
20193
20194 PR c/39582
20195 * c-typeck.c (c_expr_sizeof_type): Create a C_MAYBE_CONST_EXPR
20196 with non-null C_MAYBE_CONST_EXPR_PRE if size of a variable-length
20197 type is an integer constant.
20198
20199 2009-04-25 Uros Bizjak <ubizjak@gmail.com>
20200
20201 PR target/39897
20202 * config/i386/i386.c (print_operand) ['z']: Revert handling of
20203 HImode operands.
20204
20205 2009-04-25 Joseph Myers <joseph@codesourcery.com>
20206
20207 PR c/39564
20208 * c-decl.c (grokdeclarator): Diagnose declarations of functions
20209 with variably modified return type and no storage class
20210 specifiers, except for the case of nested functions. Distinguish
20211 extern declarations of functions with variably modified return
20212 types from those of objects with variably modified types.
20213
20214 2009-04-25 Jan Hubicka <jh@suse.cz>
20215
20216 * tree.c (list_equal_p): New function.
20217 * tree.h (list_equal_p): Declare.
20218 * coretypes.h (edge_def, edge, const_edge, basic_block_def
20219 basic_block_def, basic_block, const_basic_block): New.
20220 * tree-eh.c (make_eh_edge): EH edges are not abnormal.
20221 (redirect_eh_edge): New function.
20222 (make_eh_edge_update_phi): EH edges are not abnormal.
20223 * except.c: Include tree-flow.h.
20224 (list_match): New function.
20225 (eh_region_replaceable_by_p): New function.
20226 (replace_region): New function.
20227 (hash_type_list): New function.
20228 (hash_eh_region): New function.
20229 (eh_regions_equal_p): New function.
20230 (merge_peers): New function.
20231 (remove_unreachable_regions): Verify EH tree when checking;
20232 merge peers.
20233 (copy_eh_region_1): New function.
20234 (copy_eh_region): New function.
20235 (push_reachable_handler): New function.
20236 (build_post_landing_pads, dw2_build_landing_pads): Be ready for
20237 regions without label but with live RESX.
20238 * except.h (redirect_eh_edge_to_label): New.
20239 * tree-flow.h (redirect_eh_edge): New.
20240 * coretypes.h (edge_def, edge, const_edge, basic_block_def
20241 basic_block_def, basic_block, const_basic_block): Remove.
20242 * Makefile.in (except.o): Add dependency on tree-flow.h
20243 * tree-cfg.c (gimple_redirect_edge_and_branch): Handle EH edges.
20244 * basic-block.h (edge, const_edge, basic_block, const_basic_block):
20245 Remove.
20246
20247 2009-04-25 Eric Botcazou <ebotcazou@adacore.com>
20248
20249 PR bootstrap/39645
20250 * config/sparc/sparc.c (sparc_gimplify_va_arg): Set TREE_ADDRESSABLE
20251 on the destination of memcpy.
20252
20253 2009-04-25 Paolo Bonzini <bonzini@gnu.org>
20254
20255 * doc/tm.texi (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
20256 REGNO_MODE_OK_FOR_REG_BASE_P, REGNO_MODE_CODE_OK_FOR_BASE_P,
20257 REGNO_OK_FOR_INDEX_P): Mention strict/nonstrict difference.
20258
20259 2009-04-25 Jan Hubicka <jh@suse.cz>
20260
20261 * tree-eh.c (tree_remove_unreachable_handlers): Handle shared labels.
20262 (tree_empty_eh_handler_p): Allow non-EH predecestors; allow region
20263 to be reached by different label than left.
20264 (update_eh_edges): Update comment; remove edge_to_remove if possible
20265 and return true if suceeded.
20266 (cleanup_empty_eh): Accept sharing map; handle shared regions.
20267 (cleanup_eh): Compute sharing map.
20268 * except.c (remove_eh_handler_and_replace): Add argument if we should
20269 update regions.
20270 (remove_unreachable_regions): Update for label sharing.
20271 (label_to_region_map): Likewise.
20272 (get_next_region_sharing_label): New function.
20273 (remove_eh_handler_and_replace): Add update_catch_try parameter; update
20274 prev_try pointers.
20275 (remove_eh_handler): Update.
20276 (remove_eh_region_and_replace_by_outer_of): New function.
20277 * except.h (struct eh_region): Add next_region_sharing_label.
20278 (remove_eh_region_and_replace_by_outer_of,
20279 get_next_region_sharing_label): Declare.
20280 * tree-cfgcleanup.c (tree_forwarder_block_p): Simplify.
20281
20282 2009-04-25 Jan Hubicka <jh@suse.cz>
20283
20284 * tree-cfg.c (split_critical_edges): Split also edges where we can't
20285 insert code even if they are not critical.
20286
20287 2009-04-25 Jan Hubicka <jh@suse.cz>
20288
20289 * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
20290 (gimple_can_remove_branch_p): EH edges won't remove branch by
20291 redirection.
20292 * tree-inline.c (update_ssa_across_abnormal_edges): Do handle
20293 updating of non-abnormal EH edges.
20294 * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
20295 (gimple_can_remove_branch_p): EH edges are unremovable by redirection.
20296 (split_critical_edges): Split also edges where emitting code on them
20297 will lead to splitting later.
20298
20299 2009-04-25 Uros Bizjak <ubizjak@gmail.com>
20300 H.J. Lu <hongjiu.lu@intel.com>
20301
20302 PR target/39590
20303 * configure.ac (HAVE_AS_IX86_FILDQ): On x86 targets check whether
20304 the configured assembler supports fildq and fistpq mnemonics.
20305 (HAVE_AS_IX86_FILDS): Rename from HAVE_GAS_FILDS_FISTS.
20306 * configure: Regenerated.
20307 * config.in: Ditto.
20308
20309 * config/i386/i386.c (print_operand): Handle 'Z'.
20310 ['z']: Remove handling of special fild/fist suffixes.
20311 (output_fix_trunc): Use '%Z' to output suffix of fist{,p,tp} insn.
20312 * config/i386/i386.md (*floathi<mode>2_i387): Use '%Z' to output
20313 suffix of fild insn.
20314 (*floatsi<mode>2_vector_mixed): Ditto.
20315 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Ditto.
20316 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Ditto.
20317 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
20318 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387): Ditto.
20319 * config/i386/gas.h (GAS_MNEMONICS): Remove.
20320
20321 2009-04-25 Ben Elliston <bje@au.ibm.com>
20322
20323 * genrecog.c (validate_pattern): Do not warn for VOIDmode CALLs as
20324 the source of a set operation.
20325
20326 2009-04-25 Anatoly Sokolov <aesok@post.ru>
20327
20328 * target.h (struct gcc_target): Add case_values_threshold field.
20329 * target-def.h (TARGET_CASE_VALUES_THRESHOLD): New.
20330 (TARGET_INITIALIZER): Use TARGET_CASE_VALUES_THRESHOLD.
20331 * targhooks.c (default_case_values_threshold): New function.
20332 * targhooks.h (default_case_values_threshold): Declare function.
20333 * stmt.c (expand_case): Use case_values_threshold target hook.
20334 * expr.h (case_values_threshold): Remove declartation.
20335 * expr.c (case_values_threshold): Remove function.
20336 * doc/tm.texi (CASE_VALUES_THRESHOLD): Revise documentation.
20337
20338 * config/avr/avr.h (CASE_VALUES_THRESHOLD): Remove macro.
20339 * config/avr/avr.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
20340 (avr_case_values_threshold): Declare as static.
20341 * config/avr/avr-protos.h (avr_case_values_threshold): Remove.
20342
20343 * config/avr/mn10300.h (CASE_VALUES_THRESHOLD): Remove macro.
20344 * config/avr/mn10300.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
20345 (mn10300_case_values_threshold): New function.
20346
20347 2009-04-24 H.J. Lu <hongjiu.lu@intel.com>
20348
20349 * ira.c (setup_cover_and_important_classes): Add enum cast.
20350
20351 2009-04-24 Vladimir Makarov <vmakarov@redhat.com>
20352
20353 * genpreds.c (write_enum_constraint_num): Output definition of
20354 CONSTRAINT_NUM_DEFINED_P macro.
20355 * ira.c (setup_cover_and_important_classes): Use
20356 CONSTRAINT_NUM_DEFINED_P instead of CONSTRAINT__LIMIT in #ifdef.
20357
20358 2009-04-24 DJ Delorie <dj@redhat.com>
20359
20360 * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Test
20361 __SH2A_SINGLE_ONLY__ also.
20362
20363 2009-04-24 Steve Ellcey <sje@cup.hp.com>
20364
20365 * config/ia64/ia64.md (movfs_internal): Allow flt constants.
20366 (movdf_internal): Ditto.
20367 * config/ia64/ia64.c (ia64_legitimate_constant_p): Allow
20368 SFmode and DFmode constants.
20369 (ia64_print_operand): Add 'G' format for printing
20370 floating point constants.
20371
20372 2009-04-24 Richard Guenther <rguenther@suse.de>
20373
20374 * tree-vrp.c (extract_range_from_binary_expr): Handle overflow
20375 from unsigned additions.
20376
20377 2009-04-24 Joseph Myers <joseph@codesourcery.com>
20378
20379 * c-typeck.c (set_init_index): Allow array designators that are
20380 not integer constant expressions with a pedwarn if pedantic.
20381
20382 2009-04-24 Bernd Schmidt <bernd.schmidt@analog.com>
20383
20384 * simplify-rtx.c (simplify_binary_operation_1, case AND): Result is
20385 zero if no overlap in nonzero bits between the operands.
20386
20387 2009-04-24 Ian Lance Taylor <iant@google.com>
20388
20389 * combine.c (record_value_for_reg): Change 0 to VOIDmode, twice.
20390 (record_dead_and_set_regs): Likewise.
20391 * df.h (struct df_mw_hardreg): Change flags field to int.
20392 (struct df_base_ref): Likewise.
20393 (struct df): Change changeable_flags field to int.
20394 * df-scan.c (df_defs_record): Change clobber_flags to int.
20395 * dwarf2.h (enum dwarf_tag): Make lo_user and hi_user values enum
20396 constants rather than #define macros.
20397 (enum dwarf_attribute, enum dwarf_location_atom): Likewise.
20398 (enum dwarf_type, enum dwarf_endianity_encoding): Likewise.
20399 (enum dwarf_calling_convention): Likewise.
20400 (enum dwarf_line_number_x_ops): Likewise.
20401 (enum dwarf_call_frame_info): Likewise.
20402 (enum dwarf_source_language): Likewise.
20403 * dwarf2out.c (int_loc_descriptor): Add cast to enum type.
20404 (add_calling_convention_attribute): Likewise.
20405 * fold-const.c (fold_undefer_overflow_warnings): Add cast to enum type.
20406 (combine_comparisons): Change compcode to int. Add cast to enum type.
20407 * genrecog.c (maybe_both_true_2): Change c to int.
20408 (write_switch): Likewise. Add cast to enum type.
20409 * gimplify.c (gimplify_omp_for): Handle return values from
20410 gimplify_expr using MIN rather than bitwise or.
20411 (gimplify_expr): Add cast to enum type.
20412 * ipa-prop.c (update_jump_functions_after_inlining): Change
20413 IPA_BOTTOM to IPA_JF_UNKNOWN.
20414 * ira.c (setup_class_subset_and_memory_move_costs): Change mode to int.
20415 Add casts to enum type.
20416 (setup_cover_and_important_classes): Change cl to int. Add casts
20417 to enum type.
20418 (setup_class_translate): Change cl and mode to int.
20419 (ira_init_once): Change mode to int.
20420 (free_register_move_costs): Likewise.
20421 (setup_prohibited_mode_move_regs): Add casts to enum type.
20422 * langhooks.c (add_builtin_function_common): Rework assertion that
20423 value fits bitfield.
20424 * mcf.c (add_fixup_edge): Change type parameter to edge_type.
20425 * omega.c (omega_do_elimination): Avoid math on enum types.
20426 * optabs.c (expand_vec_shift_expr): Remove casts to int.
20427 * opts.c (set_debug_level): Change 2 to enum constant. Use new
20428 int local to handle integral_argment value.
20429 * regmove.c (try_auto_increment): Change PUT_MODE to
20430 PUT_REG_NOTE_KIND.
20431 * reload.c (push_secondary_reload): Add casts to enum type.
20432 (secondary_reload_class, find_valid_class): Likewise.
20433 * reload1.c (emit_input_reload_insns): Likewise.
20434 * rtl.h (NOTE_VAR_LOCATION_STATUS): Likewise.
20435 * sel-sched.c (init_hard_regs_data): Change cur_mode to int.
20436 * sel-sched-ir.c (hash_with_unspec_callback): Change 0 to enum
20437 constant.
20438 * tree.c (build_common_builtin_nodes): Add casts to enum type.
20439 * tree-complex.c (complex_lattice_t): Typedef to int rather than
20440 enum type.
20441 (expand_complex_libcall): Add casts to enum type.
20442 * tree-into-ssa.c (get_ssa_name_ann): Change 0 to enum constant.
20443 * tree-vect-loop.c (vect_model_reduction_cost): Compare reduc_code
20444 with ERROR_MARK, not NUM_TREE_CODES.
20445 (vect_create_epilog_for_reduction): Likewise.
20446 (vectorizable_reduction): Don't initialize epiloc_reduc_code.
20447 When not using it, set it to ERROR_MARK rather than NUM_TREE_CODES.
20448 * tree-vect-patterns.c (vect_pattern_recog_1): Change vec_mode to
20449 enum machine_mode.
20450 * tree-vect-stmts.c (new_stmt_vec_info): Change 0 to
20451 vect_unused_in_loop. Change 0 to loop_vect.
20452 * tree-vectorizer.c (vect_set_verbosity_level): Add casts to enum type.
20453 * var-tracking.c (get_init_value): Change return type to enum
20454 var_init_status.
20455 * vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
20456 * config/arm/arm.c (fp_model_for_fpu): Change to array to enum
20457 arm_fp_model.
20458 (arm_override_options): Add casts to enum type.
20459 (arm_emit_tls_decoration): Likewise.
20460 * config/i386/i386.c (ix86_function_specific_restore): Add casts
20461 to enum type.
20462 * config/i386/i386-c.c (ix86_pragma_target_parse): Likewise.
20463 * config/ia64/ia64.c (ia64_expand_compare): Change magic to int.
20464 * config/rs6000/rs6000.c (rs6000_override_options): Add casts to
20465 enum type.
20466 * config/s390/s390.c (code_for_builtin_64): Change to array of
20467 enum insn_code.
20468 (code_for_builtin_31): Likewise.
20469 (s390_expand_builtin): Change code_for_builtin to enum insn_code
20470 const *.
20471 * config/sparc/sparc.c (sparc_override_options): Change value
20472 field in struct code_model to enum cmodel. In initializer change
20473 0 to NULL and add cast to enum type.
20474
20475 * c-typeck.c (build_modify_expr): Add lhs_origtype parameter.
20476 Change all callers. Issue a -Wc++-compat warning using
20477 lhs_origtype if necessary.
20478 (convert_for_assignment): Issue -Wc++-compat warnings about
20479 invalid conversions to enum type on assignment.
20480 * c-common.h (build_modify_expr): Update declaration.
20481
20482 2009-04-24 Nick Clifton <nickc@redhat.com>
20483
20484 * config/iq2000/iq2000.c (function_arg): Handle TImode values.
20485 (function_arg_advance): Likewise.
20486 * config/iq2000/iq2000.md (movsi_internal2): Fix the length of the
20487 5th alternative.
20488
20489 2009-04-24 Andreas Krebbel <krebbel1@de.ibm.com>
20490
20491 * config/s390/constraints.md ('I', 'J'): Fix condition.
20492
20493 2009-04-24 Diego Novillo <dnovillo@google.com>
20494
20495 * gengtype-parse.c (parse_error): Add newline after message.
20496
20497 2009-04-24 H.J. Lu <hongjiu.lu@intel.com>
20498
20499 * config/i386/sse.md (avxmodesuffixs): Removed.
20500 (*avx_pinsr<avxmodesuffixs>): Renamed to ...
20501 (*avx_pinsr<ssevecsize>): This.
20502
20503 2009-04-24 Bernd Schmidt <bernd.schmidt@analog.com>
20504
20505 * loop-iv.c (replace_single_def_regs): Look for REG_EQUAL notes;
20506 follow chains of regs with a single definition, and allow expressions
20507 that are function_invariant_p.
20508 (simple_rhs_p): Allow expressions that are function_invariant_p.
20509
20510 2009-04-24 Paolo Bonzini <bonzini@gnu.org>
20511
20512 PR middle-end/39867
20513 * fold-const.c (fold_cond_expr_with_comparison): When folding
20514 > and >= to MAX, make sure the MAX uses the same type as the
20515 comparison's operands.
20516
20517 2009-04-24 Nick Clifton <nickc@redhat.com>
20518
20519 * config/frv/frv.c (frv_frame_access): Do not use reg+reg
20520 addressing for DImode accesses.
20521 (frv_print_operand_address): Handle PLUS case.
20522 * config/frv/frv.h (FIXED_REGISTERS): Mark link register as fixed.
20523
20524 2009-04-24 Jakub Jelinek <jakub@redhat.com>
20525
20526 PR rtl-optimization/39794
20527 * alias.c (canon_true_dependence): Add x_addr argument.
20528 * rtl.h (canon_true_dependence): Adjust prototype.
20529 * cse.c (check_dependence): Adjust canon_true_dependence callers.
20530 * cselib.c (cselib_invalidate_mem): Likewise.
20531 * gcse.c (compute_transp): Likewise.
20532 * dse.c (scan_reads_nospill): Likewise.
20533 (record_store, check_mem_read_rtx): Likewise. For non-const-or-frame
20534 addresses pass base->val_rtx as mem_addr, for const-or-frame addresses
20535 canon_base_addr of the group, plus optional offset.
20536 (struct group_info): Rename canon_base_mem to
20537 canon_base_addr.
20538 (get_group_info): Set canon_base_addr to canon_rtx of base, not
20539 canon_rtx of base_mem.
20540
20541 2009-04-23 Paolo Bonzini <bonzini@gnu.org>
20542
20543 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
20544 Use memory_address_p instead of GO_IF_LEGITIMATE_ADDRESS.
20545
20546 2009-04-23 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20547
20548 * config/spu/spu-builtins.h: Delete file.
20549
20550 * config/spu/spu.h (enum spu_builtin_type): Move here from
20551 spu-builtins.h.
20552 (struct spu_builtin_description): Likewise. Add GTY marker.
20553 Do not use enum spu_function_code or enum insn_code.
20554 (spu_builtins): Add extern declaration.
20555
20556 * config/spu/spu.c: Do not include "spu-builtins.h".
20557 (enum spu_function_code, enum spu_builtin_type_index,
20558 V16QI_type_node, V8HI_type_node, V4SI_type_node, V2DI_type_node,
20559 V4SF_type_node, V2DF_type_node, unsigned_V16QI_type_node,
20560 unsigned_V8HI_type_node, unsigned_V4SI_type_node,
20561 unsigned_V2DI_type_node): Move here from spu-builtins.h.
20562 (spu_builtin_types): Make static. Add GTY marker.
20563 (spu_builtins): Add extern declaration with GTY marker.
20564 Include "gt-spu.h".
20565
20566 * config/spu/spu-c.c: Do not include "spu-builtins.h".
20567 (spu_resolve_overloaded_builtin): Do not use spu_function_code.
20568 Check programmatically whether all parameters are scalar.
20569
20570 * config/spu/t-spu-elf (spu.o, spu-c.o): Update dependencies.
20571
20572 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
20573
20574 * gimplify.c (gimplify_modify_expr_rhs) <VAR_DECL>: Do not do a direct
20575 assignment from the constructor either if the target is volatile.
20576
20577 2009-04-23 Daniel Jacobowitz <dan@codesourcery.com>
20578
20579 * config/arm/arm.md (insv): Do not share operands[0].
20580
20581 2009-04-23 Nathan Sidwell <nathan@codesourcery.com>
20582
20583 * config/vxlib-tls.c (active_tls_threads): Delete.
20584 (delete_hook_installed): New.
20585 (tls_delete_hook): Don't delete the delete hook.
20586 (tls_destructor): Delete it here.
20587 (__gthread_set_specific): Adjust installing the delete hook.
20588 (tls_delete_hook): Use __gthread_enter_tsd_dtor_context and
20589 __gthread_leave_tsd_dtor_context.
20590
20591 2009-04-23 Rafael Avila de Espindola <espindola@google.com>
20592
20593 * c-format.c (gcc_tdiag_char_table): Add support for %E.
20594
20595 2009-04-23 Uros Bizjak <ubizjak@gmail.com>
20596
20597 * config/alpha/alpha.c (alpha_legitimize_reload_address): Add cast to
20598 enum type.
20599 (alpha_rtx_costs): Ditto.
20600 (emit_unlikely_jump): Use add_reg_note.
20601 (emit_frame_store_1): Ditto.
20602 (alpha_expand_prologue): Ditto.
20603 (alpha_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
20604 * config/alpha/alpha.c (Unicos/Mk address splitter): Use add_reg_note.
20605
20606 2009-04-23 Nick Clifton <nickc@redhat.com>
20607
20608 * config/v850/v850.md (epilogue): Remove suppressed code.
20609 (return): Rename to return_simple and remove test of frame size.
20610 * config/v850/v850.c (expand_epilogue): Rename call to gen_return
20611 to gen_return_simple.
20612
20613 2009-04-22 Jing Yu <jingyu@google.com>
20614
20615 PR testsuite/39781
20616 * config/arm/arm.h: Define HANDLE_PRAGMA_PACK_PUSH_POP.
20617
20618 2009-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
20619
20620 PR C/31499
20621 * c-typeck.c (process_init_element): Treat VECTOR_TYPE like ARRAY_TYPE
20622 and RECORD_TYPE/UNION_TYPE. When outputing the actual element and the
20623 value is a VECTOR_CST, the element type is the element type of the
20624 vector.
20625
20626 2009-04-22 DJ Delorie <dj@redhat.com>
20627
20628 * config/m32c/m32c.h: Update GTY annotations to new syntax.
20629
20630 2009-04-22 Jakub Jelinek <jakub@redhat.com>
20631
20632 * alias.c (find_base_term): Move around LO_SUM case, so that
20633 CONST falls through into PLUS/MINUS handling.
20634
20635 PR c/39855
20636 * fold-const.c (fold_binary) <case LSHIFT_EXPR>: When optimizing
20637 into 0, use omit_one_operand.
20638
20639 2009-04-23 Ben Elliston <bje@au.ibm.com>
20640
20641 * config/rs6000/linux-unwind.h (get_regs): Remove type
20642 puns. Change the type of `pc' to an array of unsigned ints and
20643 update all users. Constify frame24.
20644
20645 2009-04-22 DJ Delorie <dj@redhat.com>
20646
20647 * config/m32c/m32c.c (m32c_special_page_vector_p): Move
20648 declarations before code.
20649 (current_function_special_page_vector): Likewise.
20650 (m32c_expand_insv): Silence a warning.
20651
20652 2009-04-21 Taras Glek <tglek@mozilla.com>
20653
20654 * alias.c: Update GTY annotations to new syntax.
20655 * basic-block.h: Likewise.
20656 * bitmap.h: Likewise.
20657 * c-common.h: Likewise.
20658 * c-decl.c: Likewise.
20659 * c-parser.c: Likewise.
20660 * c-pragma.c: Likewise.
20661 * c-tree.h: Likewise.
20662 * cfgloop.h: Likewise.
20663 * cgraph.h: Likewise.
20664 * config/alpha/alpha.c: Likewise.
20665 * config/arm/arm.h: Likewise.
20666 * config/avr/avr.h: Likewise.
20667 * config/bfin/bfin.c: Likewise.
20668 * config/cris/cris.c: Likewise.
20669 * config/darwin.c: Likewise.
20670 * config/frv/frv.c: Likewise.
20671 * config/i386/i386.c: Likewise.
20672 * config/i386/i386.h: Likewise.
20673 * config/i386/winnt.c: Likewise.
20674 * config/ia64/ia64.h: Likewise.
20675 * config/iq2000/iq2000.c: Likewise.
20676 * config/mips/mips.c: Likewise.
20677 * config/mmix/mmix.h: Likewise.
20678 * config/pa/pa.c: Likewise.
20679 * config/pa/pa.h: Likewise.
20680 * config/rs6000/rs6000.c: Likewise.
20681 * config/s390/s390.c: Likewise.
20682 * config/sparc/sparc.c: Likewise.
20683 * config/xtensa/xtensa.c: Likewise.
20684 * cselib.h: Likewise.
20685 * dbxout.c: Likewise.
20686 * dwarf2out.c: Likewise.
20687 * except.c: Likewise.
20688 * except.h: Likewise.
20689 * fixed-value.h: Likewise.
20690 * function.c: Likewise.
20691 * function.h: Likewise.
20692 * gimple.h: Likewise.
20693 * integrate.c: Likewise.
20694 * optabs.c: Likewise.
20695 * output.h: Likewise.
20696 * real.h: Likewise.
20697 * rtl.h: Likewise.
20698 * stringpool.c: Likewise.
20699 * tree-data-ref.c: Likewise.
20700 * tree-flow.h: Likewise.
20701 * tree-scalar-evolution.c: Likewise.
20702 * tree-ssa-address.c: Likewise.
20703 * tree-ssa-alias.h: Likewise.
20704 * tree-ssa-operands.h: Likewise.
20705 * tree.c: Likewise.
20706 * tree.h: Likewise.
20707 * varasm.c: Likewise.
20708 * varray.h: Likewise.
20709 * vec.h: Likewise.
20710 * coretypes.h: Do not define GTY macro if it is already defined.
20711 * doc/gty.texi: Update GTY documentation to new syntax.
20712 * gengtype-lex.l: Enforce attribute-like syntax for GTY
20713 annotations on structs.
20714 * gengtype-parse.c: Likewise.
20715
20716 2009-04-22 Mark Heffernan <meheff@google.com>
20717
20718 * gcc.c (LINK_COMMAND_SPEC): Link with gcov with -fprofile-generate=.
20719
20720 2009-04-22 Kazu Hirata <kazu@codesourcery.com>
20721
20722 * config/arm/arm.c (arm_rtx_costs_1): Use power_of_two_operand
20723 where appropriate.
20724
20725 2009-04-22 Kazu Hirata <kazu@codesourcery.com>
20726
20727 * config/arm/arm.c (arm_size_rtx_costs): Treat a PLUS with a shift
20728 the same as a PLUS without a shift. Increase the cost of a
20729 CONST_INT in MULT.
20730
20731 2009-04-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
20732
20733 * Makefile.in: Update dependencies.
20734 * errors.c (warning): Remove unused parameter 'opt'. Returns 'void'.
20735 * errors.h: Remove bogus comment about compatibility.
20736 (warning): Update declaration.
20737 * genautomata.c: Update all calls to warning.
20738 * gimple.c: Do not include errors.h. Include toplev.h.
20739 * tree-ssa-structalias.c: Do not include errors.h.
20740 * omega.c: Likewise.
20741 * tree-ssa-reassoc.c: Likewise.
20742 * config/spu/spu-c.c: Likewise.
20743 * config/spu/t-spu-elf: Update dependencies.
20744
20745 2009-04-22 Richard Guenther <rguenther@suse.de>
20746
20747 PR tree-optimization/39824
20748 * tree-ssa-ccp.c (fold_const_aggregate_ref): For INDIRECT_REFs
20749 make sure the types are compatible.
20750
20751 2009-04-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
20752
20753 PR c++/14875
20754 * c-common.c (c_parse_error): Take a token_flags parameter.
20755 Use token_type for the token type instead.
20756 Pass token_flags to cpp_type2name.
20757 * c-common.h (c_parse_error): Update declaration.
20758 * c-parser.c (c_parser_error): Pass 0 as token flags.
20759
20760 2009-04-22 Andrey Belevantsev <abel@ispras.ru>
20761
20762 PR rtl-optimization/39580
20763 * sel-sched-ir.c (insert_in_history_vect): Remove incorrect gcc_assert.
20764
20765 2009-04-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20766
20767 * function.c (expand_function_end): Do not emit a jump to the "naked"
20768 return label for fall-through returns.
20769 * except.c (sjlj_emit_function_exit): Always place the call to the
20770 unregister function at the location installed by expand_function_end.
20771
20772 2009-04-22 Richard Guenther <rguenther@suse.de>
20773
20774 PR tree-optimization/39845
20775 * tree-switch-conversion.c (build_arrays): Add new referenced vars.
20776 (gen_inbound_check): Likewise.
20777
20778 2009-04-22 Nathan Sidwell <nathan@codesourcery.com>
20779
20780 * gthr-vxworks.h (struct __gthread_once_t): Add alignment and
20781 padding for PPC.
20782 (__GTHREAD_ONCE_INIT): Adjust ppc initializer.
20783 * config/vxlib.c (__gthread_once): Add race guard for PPC.
20784
20785 2009-04-22 Paolo Bonzini <bonzini@gnu.org>
20786
20787 * config/sh/sh.c (shift_insns_rtx, shiftcosts, gen_shifty_op,
20788 sh_dynamicalize_shift_p, shl_and_scr_length): Truncate
20789 shift counts to avoid out-of-bounds array accesses.
20790
20791 2009-04-22 Paolo Bonzini <bonzini@gnu.org>
20792
20793 * config/sparc/sparc.h (POINTER_SIZE): Fix comment.
20794 (Pmode): Move above.
20795
20796 2009-04-22 Uros Bizjak <ubizjak@gmail.com>
20797
20798 * config/alpha/alpha.c: Use REG_P, MEM_P, CONST_INT_P, JUMP_P,
20799 NONJUMP_INSN_P, CALL_P, LABEL_P and NOTE_P predicates instead of
20800 GET_CODE macro. Use IN_RANGE macro where appropriate.
20801 * config/alpha/alpha.h: Ditto.
20802 * config/alpha/alpha.md: Ditto.
20803 * config/alpha/constraints.md: Ditto.
20804 * config/alpha/predicates.md: Ditto.
20805
20806 2009-04-22 Paolo Bonzini <bonzini@gnu.org>
20807
20808 * defaults.h (GO_IF_MODE_DEPENDENT_ADDRESS): Provide empty default.
20809 * config/frv/frv.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20810 * config/s390/s390.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20811 * config/m32c/m32c.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20812 * config/spu/spu.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20813 * config/i386/i386.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20814 * config/sh/sh.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20815 * config/pdp11/pdp11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20816 * config/avr/avr.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20817 * config/crx/crx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20818 * config/fr30/fr30.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20819 * config/m68hc11/m68hc11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20820 * config/cris/cris.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20821 * config/iq2000/iq2000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20822 * config/mn10300/mn10300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20823 * config/ia64/ia64.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20824 * config/m68k/m68k.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20825 * config/picochip/picochip.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20826 * config/arc/arc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20827 * config/mcore/mcore.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20828 * config/score/score.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20829 * config/arm/arm.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20830 * config/pa/pa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20831 * config/mips/mips.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20832 * config/v850/v850.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20833 * config/mmix/mmix.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20834 * config/bfin/bfin.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20835
20836 2009-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
20837
20838 * cfghooks.c (tidy_fallthru_edges): Remove find_basic_blocks
20839 references from comments.
20840 * cfgbuild.c: (count_basic_blocks): Delete.
20841 (find_basic_blocks_1): Delete.
20842 (find_basic_blocks): Delete.
20843 * except.c (finish_eh_generation): Make static. Move comment from
20844 except.h here. Remove find_basic_blocks references from comments.
20845 * except.h (finish_eh_generation): Delete.
20846 * basic-block.h (find_basic_blocks): Delete.
20847 * config/sh/sh.c (sh_output_mi_thunk): Delete a "#if 0" block.
20848
20849 2009-04-22 Dave Korn <dave.korn.cygwin@gmail.com>
20850
20851 * sdbout.c (sdbout_symbol): Pass VOIDmode to eliminate_regs.
20852 (sdbout_parms): Likewise.
20853
20854 2009-04-21 Kaz Kojima <kkojima@gcc.gnu.org>
20855
20856 * config/sh/sh.c (prepare_cbranch_operands): Use
20857 LAST_AND_UNUSED_RTX_CODE instead of CODE_FOR_nothing.
20858 (expand_cbranchdi4): Likewise.
20859 (from_compare): Add cast to enum type.
20860 (expand_cbranchsi4): Use add_reg_note.
20861 (output_stack_adjust, push, pop, sh_expand_prologue): Likewise.
20862 (sh_insn_length_adjustment): Use sh_cpu_attr instead of sh_cpu.
20863 (sh_initialize_trampoline): Change 0 to LCT_NORMAL in function call.
20864 (sh_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
20865 * config/sh/sh.md (cbranchsi4): Use LAST_AND_UNUSED_RTX_CODE
20866 instead of CODE_FOR_nothing.
20867 (cbranchdi4): Likewise. Fix the order of arguments for
20868 gen_rtx_fmt_ee.
20869 (push_fpscr): Use add_reg_note.
20870 (pop_fpscr, movdf_i4+1, reload_outdf__RnFRm+3, reload_outdf__RnFRm+4,
20871 reload_outdf__RnFRm+5, fpu_switch+1, fpu_switch+2): Likewise.
20872
20873 2009-04-21 Joseph Myers <joseph@codesourcery.com>
20874
20875 * ABOUT-GCC-NLS, ChangeLog, ChangeLog-1997, ChangeLog-1998,
20876 ChangeLog-1999, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
20877 ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
20878 ChangeLog-2007, ChangeLog-2008, ChangeLog.dataflow, ChangeLog.lib,
20879 ChangeLog.ptr, ChangeLog.tree-ssa, ChangeLog.tuples, FSFChangeLog,
20880 FSFChangeLog.10, FSFChangeLog.11, LANGUAGES, ONEWS, acinclude.m4,
20881 config/alpha/gnu.h, config/alpha/libgcc-alpha-ldbl.ver,
20882 config/alpha/t-osf4, config/alpha/t-vms, config/alpha/va_list.h,
20883 config/alpha/x-vms, config/arc/t-arc,
20884 config/arm/README-interworking, config/arm/arm-c.c,
20885 config/arm/gentune.sh, config/arm/libgcc-bpabi.ver,
20886 config/arm/t-arm, config/arm/t-arm-elf, config/arm/t-arm-softfp,
20887 config/arm/t-bpabi, config/arm/t-linux, config/arm/t-linux-eabi,
20888 config/arm/t-netbsd, config/arm/t-pe, config/arm/t-strongarm-elf,
20889 config/arm/t-symbian, config/arm/t-vxworks, config/arm/t-wince-pe,
20890 config/avr/t-avr, config/bfin/elf.h, config/bfin/libgcc-bfin.ver,
20891 config/bfin/linux.h, config/bfin/t-bfin, config/bfin/t-bfin-elf,
20892 config/bfin/t-bfin-linux, config/bfin/t-bfin-uclinux,
20893 config/bfin/uclinux.h, config/cris/mulsi3.asm, config/cris/t-cris,
20894 config/cris/t-elfmulti, config/crx/t-crx,
20895 config/darwin-ppc-ldouble-patch.def, config/darwin-sections.def,
20896 config/divmod.c, config/fr30/t-fr30, config/frv/libgcc-frv.ver,
20897 config/frv/t-frv, config/frv/t-linux, config/h8300/genmova.sh,
20898 config/h8300/t-h8300, config/i386/athlon.md,
20899 config/i386/darwin-libgcc.10.4.ver,
20900 config/i386/darwin-libgcc.10.5.ver, config/i386/libgcc-glibc.ver,
20901 config/i386/mach.h, config/i386/netbsd.h, config/i386/t-crtpc,
20902 config/i386/t-cygming, config/i386/t-cygwin, config/i386/t-i386,
20903 config/i386/t-linux64, config/i386/t-nwld,
20904 config/i386/t-rtems-i386, config/i386/t-sol2-10,
20905 config/i386/x-mingw32, config/ia64/div.md, config/ia64/elf.h,
20906 config/ia64/ia64.opt, config/ia64/libgcc-glibc.ver,
20907 config/ia64/libgcc-ia64.ver, config/ia64/linux.h,
20908 config/ia64/sysv4.h, config/ia64/t-hpux, config/ia64/t-ia64,
20909 config/iq2000/abi, config/iq2000/lib2extra-funcs.c,
20910 config/iq2000/t-iq2000, config/libgcc-glibc.ver,
20911 config/m32r/libgcc-glibc.ver, config/m32r/t-linux,
20912 config/m32r/t-m32r, config/m68hc11/t-m68hc11,
20913 config/m68k/t-floatlib, config/m68k/t-linux, config/m68k/t-mlibs,
20914 config/m68k/t-uclinux, config/mcore/t-mcore,
20915 config/mcore/t-mcore-pe, config/mips/20kc.md, config/mips/4130.md,
20916 config/mips/5400.md, config/mips/5500.md, config/mips/crti.asm,
20917 config/mips/crtn.asm, config/mips/irix-crti.asm,
20918 config/mips/irix-crtn.asm, config/mips/libgcc-mips16.ver,
20919 config/mips/mips-dsp.md, config/mips/mips-dspr2.md,
20920 config/mips/mips-fixed.md, config/mips/sb1.md,
20921 config/mips/sr71k.md, config/mips/t-elf, config/mips/t-gofast,
20922 config/mips/t-iris6, config/mips/t-isa3264,
20923 config/mips/t-libgcc-mips16, config/mips/t-linux64,
20924 config/mips/t-mips, config/mips/t-r3900, config/mips/t-rtems,
20925 config/mips/t-sb1, config/mips/t-sde, config/mips/t-sdemtk,
20926 config/mips/t-slibgcc-irix, config/mips/t-sr71k, config/mips/t-st,
20927 config/mips/t-vr, config/mips/t-vxworks, config/mmix/t-mmix,
20928 config/mn10300/t-linux, config/mn10300/t-mn10300,
20929 config/pa/pa32-regs.h, config/pa/t-hpux-shlib, config/pa/t-linux,
20930 config/pa/t-linux64, config/pa/t-pa64, config/pdp11/t-pdp11,
20931 config/picochip/libgccExtras/clzsi2.asm,
20932 config/picochip/t-picochip, config/rs6000/darwin-ldouble-format,
20933 config/rs6000/darwin-libgcc.10.4.ver,
20934 config/rs6000/darwin-libgcc.10.5.ver,
20935 config/rs6000/libgcc-ppc-glibc.ver, config/rs6000/ppc-asm.h,
20936 config/rs6000/t-aix43, config/rs6000/t-aix52,
20937 config/rs6000/t-darwin, config/rs6000/t-fprules,
20938 config/rs6000/t-fprules-fpbit, config/rs6000/t-linux64,
20939 config/rs6000/t-lynx, config/rs6000/t-netbsd,
20940 config/rs6000/t-ppccomm, config/rs6000/t-ppcendian,
20941 config/rs6000/t-ppcgas, config/rs6000/t-rs6000,
20942 config/rs6000/t-rtems, config/rs6000/t-spe,
20943 config/rs6000/t-vxworks, config/s390/libgcc-glibc.ver,
20944 config/score/t-score-elf, config/sh/divcost-analysis,
20945 config/sh/libgcc-glibc.ver, config/sh/t-netbsd, config/sh/t-sh,
20946 config/sh/t-sh64, config/sh/t-superh, config/sh/t-symbian,
20947 config/sparc/libgcc-sparc-glibc.ver, config/sparc/sol2-bi.h,
20948 config/sparc/sol2-gas.h, config/sparc/sol2-gld-bi.h,
20949 config/sparc/t-elf, config/sparc/t-linux64, config/sparc/t-sol2,
20950 config/stormy16/stormy-abi, config/stormy16/t-stormy16,
20951 config/t-darwin, config/t-libunwind, config/t-libunwind-elf,
20952 config/t-linux, config/t-lynx, config/t-slibgcc-elf-ver,
20953 config/t-slibgcc-sld, config/t-sol2, config/t-vxworks,
20954 config/udivmod.c, config/udivmodsi4.c, config/v850/t-v850,
20955 config/v850/t-v850e, config/xtensa/t-xtensa, diagnostic.def,
20956 gdbinit.in, glimits.h, gstab.h, gsyms.h, java/ChangeLog,
20957 java/ChangeLog.ptr, java/ChangeLog.tree-ssa, libgcc-std.ver,
20958 limitx.h, version.c, xcoff.h: Add copyright and license notices.
20959 * config/h8300/genmova.sh: Include copyright and license notices
20960 in generated output.
20961 * config/h8300/mova.md: Regenerate.
20962 * doc/install.texi2html: Include word "Copyright" in copyright
20963 notice and use name "Free Software Foundation, Inc.".
20964 * ChangeLog, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
20965 ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
20966 ChangeLog-2007, ChangeLog-2008: Correct dates.
20967
20968 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
20969
20970 * c-common.c (c_common_truthvalue_conversion): Use LOCATION to build
20971 NE_EXPR operations as well.
20972 * c-parser.c (c_parser_condition): Do not set location information on
20973 the condition.
20974 (c_parser_conditional_expression): Likewise.
20975 (c_parser_binary_expression): Set location information on operators.
20976 * c-typeck.c (build_unary_op) <TRUTH_NOT_EXPR>: Reset the location if
20977 TRUTH_NOT_EXPR has been folded.
20978 * fold-const.c (fold_truth_not_expr): Copy location information from
20979 the incoming expression to the outgoing one.
20980 * gimplify.c (shortcut_cond_r): Add locus parameter. Pass it to
20981 recursive calls on the LHS of the operator but pass that of the
20982 operator to recursive calls on the RHS of the operator. Set it
20983 on the COND_EXPR.
20984 (shortcut_cond_expr): Set the locus of the operator on the second
20985 COND_EXPR and that of the expression on the first in degenerate cases.
20986 Pass the locus of the expression to calls to shortcut_cond_r.
20987 Set the locus of the 'then' block on the associated jump, if any.
20988 (gimplify_boolean_expr): Add locus parameter. Set it on the COND_EXPR.
20989 (gimplify_expr) <TRUTH_ANDIF_EXPR>: Pass the locus of the outer
20990 expression to call to gimplify_boolean_expr.
20991
20992 2009-04-21 Kai Tietz <kai.tietz@onevision.com>
20993
20994 * config.gcc: Add additional configuration for
20995 i686-w64-mingw* and x86_64-w64-mingw* triplet.
20996 * config/i386/mingw-w64.h: New mingw-w64 specific header.
20997 (CPP_SPEC): Redefine for allowing -municode option.
20998 (STARTFILE_SPEC): Likewise.
20999 * config/i386/t-mingw-w64: New.
21000 * config/i386/mingw-w64.opt: New.
21001 (municode): Add new target option.
21002 * doc/invoke.texi (municode): Add documentation for new option.
21003
21004 2009-04-21 Ian Lance Taylor <iant@google.com>
21005
21006 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
21007 Correct test for number of arguments.
21008 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
21009
21010 2009-04-21 Andreas Schwab <schwab@linux-m68k.org>
21011
21012 * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Use enum for second
21013 argument of emit_library_call.
21014
21015 2009-04-21 Richard Guenther <rguenther@suse.de>
21016
21017 PR middle-end/39829
21018 * gimple.c (walk_stmt_load_store_addr_ops): Catch addresses
21019 inside VIEW_CONVERT_EXPRs.
21020
21021 2009-04-21 Martin Jambor <mjambor@suse.cz>
21022
21023 * tree-switch-conversion.c (build_constructors): Split a long line.
21024 (constructor_contains_same_values_p): New function.
21025 (build_one_array): Create assigns of constants if possible, do not
21026 call mark_sym_for_renaming, call update_stmt.
21027 (build_arrays): Call make_ssa_name (create_tmp_var ()) instead of
21028 make_rename_temp. Do not call mark_symbols_for_renaming, call
21029 update_stmt.
21030 (gen_def_assigns): Do not call mark_symbols_for_renaming or
21031 find_new_referenced_vars, call update_stmt.
21032 (gen_inbound_check): Use create_tmp_var and create ssa names manually
21033 instead of calling make_rename_temp. Do not call
21034 find_new_referenced_vars or mark_symbols_for_renaming, call
21035 update_stmt.
21036
21037 2009-04-21 Richard Guenther <rguenther@suse.de>
21038
21039 PR tree-optimization/39827
21040 * tree-ssa-phiprop.c (propagate_with_phi): Check SSA_NAME is in range.
21041 (tree_ssa_phiprop): Pass the correct array size.
21042
21043 2009-04-21 Uros Bizjak <ubizjak@gmail.com>
21044
21045 * config/alpha/alpha.md (tune): Add cast to enum attr_tune.
21046
21047 2009-04-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
21048
21049 PR 16202
21050 * c-typeck.c (lvalue_p): Move declaration ...
21051 * c-common.h (lvalue_p): ... to here.
21052 * c-common.c (candidate_equal_p): New.
21053 (add_tlist): Use it.
21054 (merge_tlist): Use it.
21055 (warn_for_collisions_1): Likewise.
21056 (warning_candidate_p): Accept more candidates.
21057 (verify_tree): A warning candidate can be an expression. Use
21058 candidate_equal_p.
21059
21060 2009-04-21 Ben Elliston <bje@au.ibm.com>
21061
21062 PR target/5267
21063 * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
21064 for -mcall-eabi, -mcall-aixdesc, -mcall-freebsd and -mcall-openbsd
21065 options. Remove -mcall-solaris documentation.
21066
21067 2009-04-21 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
21068
21069 PR c++/13358
21070 * doc/invoke.texi (-Wlong-long): Update description.
21071 * c-lex (interpret_integer): Only warn if there was no previous
21072 overflow and -Wlong-long is enabled.
21073 * c-decl.c (declspecs_add_type): Drop redundant flags.
21074 * c.opt (Wlong-long): Init to -1.
21075 * c-opts.c (sanitize_cpp_opts): Synchronize cpp's warn_long_long
21076 and front-end warn_long_long. Wlong-long only depends on other
21077 flags if it is uninitialized.
21078 * c-parser.c (disable_extension_diagnostics): warn_long_long is
21079 the same for CPP and FE.
21080 (restore_extension_diagnostics): Likewise.
21081
21082 2009-04-20 Ian Lance Taylor <iant@google.com>
21083
21084 Fix enum conversions which are invalid in C++:
21085 * auto-inc-dec.c (attempt_change): Change 0 to SET in function call.
21086 * calls.c (store_one_arg): Change 0 to EXPAND_NORMAL in function call.
21087 * cse.c (hash_rtx_cb): Change 0 to VOIDmode in function call.
21088 * dbgcnt.c (dbg_cnt_set_limit_by_name): Add cast to enum type.
21089 * dbxout.c (dbxout_symbol): Change 0 to VOIDmode in function call.
21090 (dbxout_parms): Likewise.
21091 * df-core.c (df_set_flags): Change changeable_flags parameter to int.
21092 (df_clear_flags): Likewise.
21093 * df-problems.c (df_rd_bb_local_compute_process_def): Change
21094 top_flag parameter to int.
21095 (df_chain_create_bb_process_use): Likewise.
21096 (df_chain_add_problem): Change chain_flags parameter to unsigned int.
21097 Remove cast.
21098 * df-scan.c (df_ref_create): Change ref_flags parameter to int.
21099 (df_ref_create_structure, df_def_record_1): Likewise.
21100 (df_defs_record, df_uses_record, df_get_call_refs): Likewise.
21101 (df_notes_rescan): Change 0 to VOIDmode in function call.
21102 (df_get_call_refs, df_insn_refs_collect): Likewise.
21103 (df_bb_regs_collect): Likewise.
21104 (df_entry_block_defs_collect): Likewise.
21105 (df_exit_block_uses_collect): Likewise.
21106 * df.h: Update declarations.
21107 * double-int.c (double_int_divmod): Add cast to enum type.
21108 * dse.c (replace_inc_dec): Reverse parameters to gen_int_mode.
21109 * dwarf2out.c (new_reg_loc_descr): Add casts to enum type.
21110 (based_loc_descr): Likewise.
21111 (loc_descriptor_from_tree_1): Change first_op and second_op to
21112 enum dwarf_location_atom. Add cast to enum type.
21113 * expmed.c (init_expmed): Change 0 to SET in function call.
21114 * expr.c (init_expr_target): Change 0 to VOIDmode in function call.
21115 (expand_expr_real_1): Change 0 to EXPAND_NORMAL in function call.
21116 (do_store_flag): Likewise.
21117 * fixed-value.h (struct fixed_value): Change mode to enum
21118 machine_mode.
21119 * function.c (assign_parms): Change 0 to VOIDmode in function call.
21120 * genautomata.c (insert_automaton_decl): Change 1 to INSERT in
21121 function call.
21122 (insert_insn_decl, insert_decl, insert_state): Likewise.
21123 (automata_list_finish): Likewise.
21124 * genrecog.c (process_define_predicate): Add cast to enum type.
21125 * gensupport.c (init_predicate_table): Add cast to enum type.
21126 * gimple.c (gimple_build_return): Change 0 to ERROR_MARK in
21127 function call.
21128 (gimple_build_call_1, gimple_build_label): Likewise.
21129 (gimple_build_goto, gimple_build_asm_1): Likewise.
21130 (gimple_build_switch_1, gimple_build_cdt): Likewise.
21131 * gimple.h (GIMPLE_CHECK): Change 0 to ERROR_MARK in function call.
21132 (enum fallback): Rename from enum fallback_t.
21133 (fallback_t): Typedef as int.
21134 * gimple-low.c (lower_builtin_setjmp): Change TSI_SAME_STMT to
21135 GSI_SAME_STMT in function call.
21136 * ira.c (setup_class_subset_and_memory_move_costs): Add casts to
21137 enum type.
21138 (setup_reg_class_relations): Likewise.
21139 (setup_reg_class_nregs): Change cl to int. Add casts to enum type.
21140 (setup_prohibited_class_mode_regs): Add cast to enum type.
21141 (setup_prohibited_mode_move_regs): Likewise.
21142 * ira-costs.c (record_reg_classes): Change rclass to enum reg_class.
21143 (record_address_regs): Change i to enum reg_class.
21144 * lists.c (alloc_EXPR_LIST): Add cast to enum type.
21145 * machmode.h (GET_MODE_CLASS): Cast value to enum mode_class.
21146 (GET_MODE_WIDER_MODE): Cast value to enum machine_mode.
21147 (GET_MODE_2XWIDER_MODE): Likewise.
21148 (GET_CLASS_NARROWEST_MODE): Likewise.
21149 * omp-low.c (expand_omp_for): Add cast to enum type.
21150 * optabs.c (debug_optab_libfuncs): Add casts to enum type.
21151 * opts.c (enable_warning_as_error): Change kind to diagostic_t.
21152 * postreload.c (reload_cse_simplify_operands): Change rclass local
21153 to enum reg_class.
21154 * predict.c (combine_predictions_for_insn): Change best_predictor
21155 and predictor to enum br_predictor.
21156 (combine_predictions_for_bb): Likewise.
21157 (build_predict_expr): Change assignment to PREDICT_EXPR_OUTCOME to
21158 use SET_PREDICT_EXPR_OUTCOME.
21159 * real.c (real_arithmetic): Change icode to code in function call.
21160 * reginfo.c (init_move_cost): Add casts to enum type.
21161 (init_reg_sets_1, init_fake_stack_mems): Likewise.
21162 * regmove.c (regclass_compatible_p): Change class0 and class1 to
21163 enum reg_class.
21164 * reload.c (find_valid_class): Add casts to enum type.
21165 (push_reload): Change 0 to NO_REGS in function call.
21166 (find_reloads): Change this_alternative to array of enum
21167 reg_class. Remove some now-unnecessary casts.
21168 (make_memloc): Change 0 to VOIDmode in function call.
21169 * reload1.c (reload): Change 0 to VOIDmode in function call.
21170 (eliminate_regs_1, elimination_effects): Likewise.
21171 (eliminate_regs_in_insn): Likewise.
21172 (emit_input_reload_insns): Add cast to enum type.
21173 (delete_output_reload): Change 0 to VOIDmode in function call.
21174 * reorg.c (insn_sets_resource_p): Convert include_delayed_effects
21175 to enum type in function call.
21176 * tree.h (PREDICT_EXPR_OUTCOME): Add cast to enum type.
21177 (SET_PREDICT_EXPR_OUTCOME): Define.
21178 * tree-dump.c (get_dump_file_info): Change phase parameter to int.
21179 (get_dump_file_name, dump_begin, dump_enabled_p): Likewise.
21180 (dump_initialized_p, dump_flag_name, dump_end): Likewise.
21181 (dump_function): Likewise.
21182 * tree-dump.h: Update declarations.
21183 * tree-pass.h: Update declarations.
21184 * varasm.c (assemble_integer): Change mclass to enum mode_class.
21185 * config/arm/arm.c (thumb_legitimize_reload_address): Add cast to
21186 enum type.
21187 (arm_rtx_costs_1): Correct parenthesization.
21188 (arm_rtx_costs): Add casts to enum type.
21189 (adjacent_mem_locations): Reverse arguments to const_ok_for_op.
21190 (vfp_emit_fstmd): Use add_rg_note.
21191 (emit_multi_reg_push, emit_sfm): Likewise.
21192 (thumb_set_frame_pointer): Likewise.
21193 (arm_expand_prologue): Likewise.
21194 (arm_regno_class): Change return type to enum reg_class.
21195 (thumb1_expand_prologue): Use add_reg_note.
21196 * config/arm/arm-protos.h (arm_regno_class): Update declaration.
21197 * config/arm/arm.h (INITIALIZE_TRAMPOLINE): Change 0 to LCT_NORMAL
21198 in function call.
21199 * config/arm/gentune.sh: Add cast to enum type.
21200 * config/arm/arm-tune.md: Rebuild.
21201 * config/i386/i386.c (ix86_expand_prologue): Use add_reg_note.
21202 (ix86_split_fp_branch, predict_jump): Likewise.
21203 (ix86_expand_multi_arg_builtin): Change sub_code from enum
21204 insn_code to enum rtx_code.
21205 (ix86_builtin_vectorized_function): Add cast to enum type.
21206 * config/i386/i386.md (truncdfsf2): Change slot to enum
21207 ix86_stack_slot.
21208 (truncxf<mode>2, isinf<mode>2): Likewise.
21209 * config/i386/i386-c.c (ix86_pragma_target_parse): Add cast to
21210 enum type.
21211 * config/ia64/ia64.c (ia64_split_tmode_move): Use add_reg_note.
21212 (spill_restore_mem, do_spill, ia64_expand_prologue): Likewise.
21213 (insert_bundle_state): Change 1 to INSERT in function call.
21214 (ia64_add_bundle_selector_before): Likewise.
21215 * config/ia64/ia64.md (cpu attr): Add cast to enum type.
21216 (save_stack_nonlocal): Change 0 to LCT_NORMAL in function call.
21217 (restore_stack_nonlocal): Likewise.
21218 * config/mips/mips.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL in
21219 function call.
21220 * config/mips/mips.c (mips_binary_cost): Change 0 to SET in
21221 function call.
21222 (mips_rtx_costs): Likewise.
21223 (mips_override_options): Add casts to enum type.
21224 * config/mips/sdemtk.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL
21225 in function call.
21226 * config/pa/pa.c (legitimize_pic_address): Use add_reg_note.
21227 (store_reg, set_reg_plus_d): Likewise.
21228 (hppa_expand_prologue, hppa_profile_hook): Likewise.
21229 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
21230 cast to enum type.
21231 (altivec_expand_vec_set_builtin): Change 0 to EXPAND_NORMAL in
21232 function call.
21233 (emit_unlikely_jump): Use add_reg_note.
21234 (rs6000_emit_allocate_stack): Likewise.
21235 (rs6000_frame_related, rs6000_emit_prologue): Likewise.
21236 (output_toc): Change 1 to INSERT in function call.
21237 (output_profile_hook): Change 0 to LCT_NORMAL in function call.
21238 (rs6000_initialize_trampoline): Likewise.
21239 (rs6000_init_dwarf_reg_sizes_extra): Change 0 to EXPAND_NORMAL in
21240 function call.
21241 * config/s390/s390.c (s390_rtx_costs): Add cast to enum type.
21242 (s390_expand_movmem): Change 0 to OPTAB_DIRECT in function call.
21243 (s390_expand_setmem, s390_expand_cmpmem): Likewise.
21244 (save_gprs): Use add_reg_note.
21245 (s390_emit_prologue): Likewise.
21246 (s390_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
21247 * config/sparc/sparc.c (sparc_expand_prologue): Use add_reg_note.
21248 (sparc_fold_builtin): Add cast to enum type.
21249 * config/spu/spu.c (spu_emit_branch_or_set): Change ior_code to
21250 enum insn_code.
21251 (spu_expand_prologue): Use add_reg_note.
21252 (expand_builtin_args): Change 0 to EXPAND_NORMAL in function call.
21253
21254 2009-04-20 Ian Lance Taylor <iant@google.com>
21255
21256 * c-parser.c (c_parser_attributes): Change VEC back to tree list.
21257 (c_parser_postfix_expression_after_primary): Get VEC for list of
21258 arguments. Get original types of arguments. Call
21259 build_function_call_vec.
21260 (cached_expr_list_1, cached_expr_list_2): New static variables.
21261 (c_parser_expr_list): Change return type to VEC *. Add
21262 p_orig_types parameter. Change all callers.
21263 (c_parser_release_expr): New static function.
21264 (c_parser_vec_to_tree_list): New static function.
21265 * c-typeck.c (build_function_call): Rewrite to build a VEC and
21266 call build_function_call_vec.
21267 (build_function_call_vec): New function, based on old
21268 build_function_call.
21269 (convert_arguments): Remove nargs and argarray parameters. Change
21270 values to a VEC. Add origtypes parameter.
21271 (build_modify_expr): Add rhs_origtype parameter. Change all callers.
21272 (convert_for_assignment): Add origtype parameter. Change all
21273 callers. If warn_cxx_compat, check for conversion to an enum
21274 type when calling a function.
21275 (store_init_value): Add origtype parameter. Change all callers.
21276 (digest_init): Likewise.
21277 (struct init_node): Add origtype field.
21278 (add_pending_init): Add origtype parameter. Change all callers.
21279 (output_init_element): Likewise.
21280 (output_pending_init_elements): Pass origtype from init_node to
21281 output_init_element.
21282 (process_init_element): Pass origtype from c_expr to
21283 output_init_element.
21284 (c_finish_return): Add origtype parameter. Change all callers.
21285 * c-common.c (sync_resolve_size): Change params to VEC *. Change
21286 caller.
21287 (sync_resolve_params): Likewise.
21288 (sync_resolve_return): Change params to first_param. Change caller.
21289 (resolve_overloaded_builtins): Change params to VEC *. Change
21290 callers. Save first parameter around call to build_function_call_vec.
21291 * c-decl.c (finish_decl): Add origtype parameter. Change all
21292 callers. Call build_function_call_vec rather than
21293 build_function_call for cleanup.
21294 * c-tree.h: Update declarations.
21295 * c-common.h: Update declarations.
21296 * stub-objc.c (objc_rewrite_function_call): Change parameter from
21297 params to first_param.
21298 * target.h (struct gcc_target): Change resolve_overloaded_builtin
21299 params parameter from tree to void *.
21300 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
21301 Change arglist parameter to have type void *, and to be a pointer
21302 to a VEC.
21303 * config/rs6000/rs6000-protos.h
21304 (altivec_resolve_overloaded_builtin): Update declaration.
21305 * config/spu/spu-c.c (spu_resolved_overloaded_builtin): Change
21306 fnargs parameter to have type void *, and to be a pointer to a
21307 VEC. Call build_function_call_vec instead of
21308 build_function_call.
21309 * config/spu/spu-protos.h (spu_expand_builtin): Update declaration.
21310
21311 2009-04-20 Joey Ye <joey.ye@intel.com>
21312 Xuepeng Guo <xuepeng.guo@intel.com>
21313 H.J. Lu <hongjiu.lu@intel.com>
21314
21315 * config/i386/atom.md: Add bypasses with ix86_dep_by_shift_count.
21316
21317 * config/i386/i386.c (LEA_SEARCH_THRESHOLD): New macro.
21318 (IX86_LEA_PRIORITY): Likewise.
21319 (distance_non_agu_define): New function.
21320 (distance_agu_use): Likewise.
21321 (ix86_lea_for_add_ok): Likewise.
21322 (ix86_dep_by_shift_count): Likewise.
21323
21324 * config/i386/i386.md: Call ix86_lea_for_add_ok to decide we
21325 should split for LEA.
21326
21327 * config/i386/i386-protos.h (ix86_lea_for_add_ok): Declare new
21328 function.
21329 (ix86_dep_by_shift_count): Likewise.
21330
21331 2009-04-20 Richard Guenther <rguenther@suse.de>
21332
21333 * expr.c (handled_component_p): Move ...
21334 * tree.h (handled_component_p): ... here.
21335 * tree.def: Re-order BIT_FIELD_REF, COMPONENT_REF,
21336 ARRAY_REF, ARRAY_RANGE_REF, VIEW_CONVERT_EXPR, IMAGPART_EXPR
21337 and REALPART_EXPR to be in one group.
21338
21339 2009-04-20 Richard Guenther <rguenther@suse.de>
21340
21341 * basic-block.h (get_all_dominated_blocks): Declare.
21342 * dominance.c (get_all_dominated_blocks): New function.
21343 * tree-cfg.c (get_all_dominated_blocks): Remove.
21344 (remove_edge_and_dominated_blocks): Adjust.
21345 * tree-ssa-phiprop.c (tree_ssa_phiprop_1): Fold in ...
21346 (tree_ssa_phiprop): ... here. Use get_all_dominated_blocks
21347 instead of recursing.
21348
21349 2009-04-20 Doug Kwan <dougkwan@google.com>
21350
21351 * cgraph.h (cgraph_node_ptr): New type for vector functions.
21352 (struct cgraph_node_set_def): New type.
21353 (cgraph_node_set) New type. Also declare vector functions.
21354 (struct cgraph_node_set_element_def): New type.
21355 (cgraph_node_set_element): Ditto.
21356 (cgraph_node_set_iterator): New iterator type.
21357 (cgraph_node_set_new, cgraph_node_set_find, cgraph_node_set_add,
21358 cgraph_node_set_remove, dump_cgraph_node_set,
21359 debug_cgraph_node_set): New prototypes.
21360 (csi_end_p, csi_next, csi_node, csi_start, cgraph_node_in_set_p,
21361 cgraph_node_set_size): New inlines.
21362 * tree-pass.h (struct cgraph_node_set_def): New decl to avoid
21363 including cgraph.h.
21364 (struct ipa_opt_pass): Add struct cgraph_node_set_def
21365 argument to function 'write_summary'.
21366 * ipa.c: Include ggc.h.
21367 (hash_cgraph_node_set_element,
21368 eq_cgraph_node_set_element, cgraph_node_set_new,
21369 cgraph_node_set_add, cgraph_node_set_remove,
21370 cgraph_node_set_find, dump_cgraph_node_set,
21371 debug_cgraph_node_set): New functions.
21372 * Makefile.in (ipa.o): Add dependency on GGC_H.
21373
21374 2009-04-20 Ira Rosen <irar@il.ibm.com>
21375
21376 PR tree-optimization/39675
21377 * tree-vect-loop.c (vect_transform_loop): Remove currently redundant
21378 check of the return code of vect_schedule_slp. Check that
21379 stmt_vec_info still exists for the statement, before checking its
21380 vectorization type.
21381
21382 2009-04-20 Michael Matz <matz@suse.de>
21383
21384 * Makefile.in (generated_files): Take out $(simple_generated_c).
21385
21386 2009-04-19 Dave Korn <dave.korn.cygwin@gmail.com>
21387
21388 * config/i386/cygwin-stdint.h (INTPTR_TYPE): Remove "long".
21389 (UINTPTR_TYPE): Likewise.
21390
21391 2009-04-19 Joseph Myers <joseph@codesourcery.com>
21392
21393 PR c/37481
21394 * c-typeck.c (digest_init): Check for initializing an array with a
21395 string literal.
21396
21397 2009-04-19 Joseph Myers <joseph@codesourcery.com>
21398
21399 PR c/19771
21400 * c-semantics.c (pop_stmt_list): Propagate
21401 STATEMENT_LIST_HAS_LABEL to parent statement list.
21402
21403 2009-04-19 Adam Nemet <anemet@caviumnetworks.com>
21404
21405 * config/mips/mips.h (mips_tune_attr): New macro.
21406 * config/mips/mips.md (cpu): Use it.
21407
21408 2009-04-19 Joseph Myers <joseph@codesourcery.com>
21409
21410 PR c/38243
21411 * c-decl.c (shadow_tag_warned): Diagnose use of restrict when
21412 declaring a tag.
21413
21414 2009-04-19 Diego Novillo <dnovillo@google.com>
21415
21416 * toplev.c (compile_file): Move call to coverage_finish ...
21417 * cgraphunit.c (ipa_passes): ... here.
21418 Call cgraph_process_new_functions.
21419 * ipa-utils.c (get_base_var): Handle CONSTRUCTOR.
21420 * Makefile.in (cgraphunit.o): Add dependency on COVERAGE_H.
21421
21422 2009-04-19 Jan Hubicka <jh@suse.cz>
21423
21424 * cgraph.c (cgraph_create_edge, cgraph_set_call_stmt): Set proper
21425 cfun.
21426 (dump_cgraph_node): Dump can throw external flag.
21427 * ipa-pure-const.c (propagate): Fix propagation of nothrow flags.
21428
21429 2009-04-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
21430
21431 PR c/32061
21432 PR c++/36954
21433 * doc/invoke.texi: Add -Wlogical-op to -Wextra.
21434 * common.opt (Wlogical-op): Move from here...
21435 * c.opt (Wlogical-op): ... to here.
21436 * c-typeck.c (parser_build_binary_op): Update call to
21437 warn_logical_operator.
21438 * c-opts.c (c_common_post_options): Enable warn_logical_op with
21439 extra_warnings.
21440 * c-common.c (warn_logical_op): Update.
21441 * c-common.h (warn_logical_op): Update declaration.
21442
21443 2009-04-19 Eric Botcazou <ebotcazou@adacore.com>
21444
21445 * tree.c (protected_set_expr_location): Fix formatting.
21446
21447 2009-04-18 Joseph Myers <joseph@codesourcery.com>
21448
21449 PR c/27676
21450 * c-typeck.c (readonly_warning): new.
21451 (build_unary_op, build_modify_expr): Use readonly_warning for
21452 storing into something readonly but not const-qualified.
21453
21454 2009-04-18 Joseph Myers <joseph@codesourcery.com>
21455
21456 PR c/22367
21457 * c-typeck.c (build_unary_op): Check for taking address of
21458 expression of type void.
21459
21460 2009-04-18 Joseph Myers <joseph@codesourcery.com>
21461
21462 PR c/35210
21463 * c-typeck.c (build_function_call): Check for calling a function
21464 with qualified void return types. Call require_complete_type when
21465 generating a trap.
21466
21467 2009-04-18 Jan Hubicka <jh@suse.cz>
21468
21469 * cgraph.c (cgraph_make_edge, dump_cgraph_node, cgraph_set_call_stmt):
21470 Set nothrow flag.
21471 * cgraph.h (struct function): Reduce loop_nest to 30 bits; add
21472 can_throw_external flag.
21473 * ipa-reference.c (ipa_utils_reduced_inorder): Update call.
21474 * ipa-pure-const.c (ignore_edge): New function.
21475 (propagate): Compute order for NOTHROW computation; set NOTHROWs
21476 only over can_throw_external edges.
21477 (local_pure_const): Add nothrow flag.
21478 * ipa-utils.c (searchc): Add ignore_edge callback.
21479 (ipa_utils_reduced_inorder): Add ignore_edge callback.
21480 * ipa-utils.h (ipa_utils_reduced_inorder): Update prototype.
21481 (set_nothrow_function_flags): Update cgraph.
21482 * tree-cfg.c (verify_stmt): Relax nothrow checking when in IPA mode.
21483
21484 2009-04-18 Richard Guenther <rguenther@suse.de>
21485
21486 PR middle-end/39804
21487 * tree-ssa-ccp.c (fold_stmt_1): New function factored from ...
21488 (fold_stmt): ... this and ...
21489 (fold_stmt_inplace): ... this.
21490 (fold_stmt_1): Fold references in calls and asms.
21491 * tree-cfg.c (remove_useless_stmts_cond): Use fold_stmt.
21492
21493 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
21494
21495 * tree-vrp.c (ssa_name_nonzero_p): Remove.
21496 * tree.h: Remove the prototype for ssa_name_nonzero_p.
21497
21498 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
21499
21500 * tree.c (function_args_count): Remove.
21501 * tree.h: Remove the prototype for function_args_count.
21502
21503 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
21504
21505 * tree-iterator.c (expr_only): Remove.
21506 * tree.h: Remove the prototype for expr_only.
21507
21508 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
21509
21510 * reginfo.c (cannot_change_mode_set_regs): Remove.
21511 * rtl.h: Remove the prototype for cannot_change_mode_set_regs.
21512
21513 2009-04-08 Anatoly Sokolov <aesok@post.ru>
21514
21515 * config/avr/avr.md (*rotlsi3_8, *rotlsi3_16, *rotlsi3_24 ): Check
21516 whether operands 0 and 1 overlaps.
21517
21518 2009-04-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
21519
21520 PR middle-end/36902
21521 * tree-vrp.c (check_array_ref): Pass a location_t instead of a
21522 pointer. Use warning_at instead of warning.
21523 (search_for_addr_array): Likewise.
21524 (check_array_bounds): Likewise.
21525 (check_all_array_refs): Check that the incoming edge is not in the
21526 list of edges to be removed.
21527 (check_all_array_refs): Avoid the temporal pointer.
21528 (vrp_visit_cond_stmt): Fix typo.
21529 (simplify_switch_using_ranges): Handle the case where the switch
21530 index is an integer constant.
21531
21532 2009-04-18 Adam Nemet <anemet@caviumnetworks.com>
21533
21534 * config/mips/mips.c (mips_final_postscan_insn): Make it static.
21535
21536 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
21537
21538 * doc/extend.texi, doc/invoke.texi: Fix typos.
21539
21540 2009-04-17 Cary Coutant <ccoutant@google.com>
21541
21542 * tree-flow-inline.h (get_lineno): Fix inverted test.
21543
21544 2009-04-17 Diego Novillo <dnovillo@google.com>
21545
21546 * tree-ssa-pre.c (create_expression_by_pieces): Remove
21547 assertion for AVAIL_OUT.
21548
21549 2009-04-17 Mike Frysinger <vapier@gentoo.org>
21550
21551 PR target/38627
21552 * config/sh/lib1funcs.asm [__ELF__ && __linux__]: Add .note.GNU-stack.
21553 * config/sh/linux-atomic.asm: Likewise.
21554
21555 2009-04-17 Diego Novillo <dnovillo@google.com>
21556
21557 * except.c (debug_eh_tree): New.
21558 (struct eh_region, struct eh_status): Move ...
21559 * except.h: ... here.
21560 (add_type_for_runtime): Declare extern.
21561 (lookup_type_for_runtime): Likewise.
21562 (debug_eh_tree): Declare.
21563 * Makefile.in (GTFILES): List except.h before except.c
21564
21565 2009-04-17 Diego Novillo <dnovillo@google.com>
21566
21567 * omp-low.c (create_omp_child_function): Set DECL_CONTEXT for DECL.
21568 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
21569 * tree-dfa.c (find_referenced_vars_in): Factor out of ...
21570 (find_vars_r): ... here.
21571 * tree-flow.h (find_referenced_vars_in): Declare.
21572 * tree-ssa-pre.c (create_expression_by_pieces): Assert
21573 that AVAIL_OUT exists for BLOCK.
21574 * Makefile.in (CGRAPH_H): Add dependency on cif-code.def
21575 (tree-loop-distribution.o): Fix dependency on TREE_VECTORIZER_H.
21576 (tree-parloops.o): Likewise.
21577
21578 2009-04-17 Simon Baldwin <simonb@google.com>
21579
21580 * toplev.c (default_tree_printer): Add handling for %E format.
21581
21582 2009-04-17 Diego Novillo <dnovillo@google.com>
21583
21584 * tree-pretty-print.c (dump_generic_node): Add break after
21585 TREE_BINFO handler. Handle COMPLEX_TYPE, REAL_TYPE and
21586 FIXED_POINT_TYPE. Handle NULL TREE_TYPEs. Handle METHOD_TYPE and
21587 FUNCTION_TYPE together. Call print_struct_decl when printing
21588 structures and TDF_SLIM is not given.
21589 (print_struct_decl): Fix logic for detecting recursion.
21590
21591 2009-04-17 Rafael Avila de Espindola <espindola@google.com>
21592
21593 PR 31567
21594 * gcc.c (create_at_file): New.
21595 (compile_input_file_p): New.
21596 (do_spec_1): Use @args files for %i. Use create_at_file for %o.
21597 * main.c (main): Update call to toplev_main.
21598 * toplev.c (toplev_main): Change signature. Call expandargv.
21599 * toplev.h (toplev_main): Change signature.
21600
21601 2009-04-17 Eric Botcazou <ebotcazou@adacore.com>
21602
21603 * dwarf2out.c (field_byte_offset): Use the type size as the field size
21604 if the latter is not constant.
21605
21606 2009-04-17 David Edelsohn <edelsohn@gnu.org>
21607
21608 * dbxout.c (xcoff_debug_hooks): Add set_name_debug_nothing.
21609
21610 2009-04-17 Eric Botcazou <ebotcazou@adacore.com>
21611
21612 * dbxout.c (dbxout_block): Reinstate test on TREE_USED.
21613 * tree-ssa-live.c (remove_unused_scope_block_p): Update TREE_USED bit.
21614
21615 2009-04-17 Richard Guenther <rguenther@suse.de>
21616
21617 * tree-ssa-structalias.c (get_constraint_for_component_ref):
21618 Handle component references view-converting an invariant address.
21619
21620 2009-04-17 Adam Nemet <anemet@caviumnetworks.com>
21621
21622 * doc/tm.texi (TARGET_DEFAULT_TARGET_FLAGS,
21623 TARGET_MIN_ANCHOR_OFFSET, TARGET_MAX_ANCHOR_OFFSET,
21624 TARGET_HAVE_SRODATA_SECTION, TARGET_HAVE_TLS,
21625 TARGET_UNWIND_TABLES_DEFAULT, TARGET_TERMINATE_DW2_EH_FRAME_INFO):
21626 Use @deftypevr rather than @deftypevar.
21627
21628 2009-04-17 Richard Guenther <rguenther@suse.de>
21629
21630 * tree-ssa-forwprop.c (get_prop_dest_stmt): Clean up tuplification.
21631 (get_prop_source_stmt): Likewise.
21632 (can_propagate_from): Likewise.
21633
21634 2009-04-17 Andrew Stubbs <ams@codesourcery.com>
21635
21636 * configure.ac: Add new AC_SUBST for TM_ENDIAN_CONFIG,
21637 TM_MULTILIB_CONFIG and TM_MULTILIB_EXCEPTIONS_CONFIG.
21638 (--with-multilib-list): Add default value.
21639 * configure: Regenerate.
21640 * Makefile.in (TM_ENDIAN_CONFIG): Define.
21641 (TM_MULTILIB_CONFIG, TM_MULTILIB_EXCEPTIONS_CONFIG): Define.
21642 * config.gcc (sh-*-*): Switch to using TM_ENDIAN_CONFIG,
21643 TM_MULTILIB_CONFIG, and TM_MULTILIB_EXCEPTIONS_CONFIG.
21644 Don't add default cpu to multilib list unnecessarily, but do enable
21645 the relevant compiler option..
21646 Add support for --with-multilib-list=<blank> and
21647 --with-multilib-list=!<somelib> to supress unwanted multilibs.
21648 * config/sh/t-sh (DEFAULT_ENDIAN, OTHER_ENDIAN): New variables.
21649 (MULTILIB_ENDIAN, MULTILIB_CPUS): Delete variables.
21650 (MULTILIB_OPTIONS): Redefine using OTHER_ENDIAN and
21651 TM_MULTILIB_CONFIG.
21652 (MULTILIB_EXCEPTIONS): Add TM_MULTILIB_EXCEPTIONS_CONFIG.
21653 (MULTILIB_OSDIRNAMES): New variable.
21654 * config/sh/t-1e: Delete file.
21655 * config/sh/t-mlib-sh1: Delete file.
21656 * config/sh/t-mlib-sh2: Delete file.
21657 * config/sh/t-mlib-sh2a: Delete file.
21658 * config/sh/t-mlib-sh2a-nofpu: Delete file.
21659 * config/sh/t-mlib-sh2a-single: Delete file.
21660 * config/sh/t-mlib-sh2a-single-only: Delete file.
21661 * config/sh/t-mlib-sh2e: Delete file.
21662 * config/sh/t-mlib-sh3e: Delete file.
21663 * config/sh/t-mlib-sh4: Delete file.
21664 * config/sh/t-mlib-sh4-nofpu: Delete file.
21665 * config/sh/t-mlib-sh4-single: Delete file.
21666 * config/sh/t-mlib-sh4-single-only: Delete file.
21667 * config/sh/t-mlib-sh4a: Delete file.
21668 * config/sh/t-mlib-sh4a-nofpu: Delete file.
21669 * config/sh/t-mlib-sh4a-single: Delete file.
21670 * config/sh/t-mlib-sh4a-single-only: Delete file.
21671 * config/sh/t-mlib-sh4al: Delete file.
21672 * config/sh/t-mlib-sh5-32media: Delete file.
21673 * config/sh/t-mlib-sh5-32media-nofpu: Delete file.
21674 * config/sh/t-mlib-sh5-64media: Delete file.
21675 * config/sh/t-mlib-sh5-64media-nofpu: Delete file.
21676 * config/sh/t-mlib-sh5-compact: Delete file.
21677 * config/sh/t-mlib-sh5-compact-nofpu: Delete file.
21678 * config/sh/t-linux: Don't override MULTILIB_EXCEPTIONS.
21679 * doc/install.texi (Options specification): Add
21680 --with-multilib-list and --with-endian.
21681
21682 2009-04-17 Rafael Avila de Espindola <espindola@google.com>
21683
21684 * Makefile.in (REVISION_s): Always include quotes. Change ifdef to use
21685 REVISION_c.
21686 (OBJS-common): Add plugin-version.o.
21687 (plugin-version.o): New.
21688 * gcc-plugin.h (plugin_gcc_version): New.
21689 (plugin_default_version_check): New.
21690 (plugin_init_func, plugin_init): Add version argument.
21691 * plugin-version.c: New.
21692 * plugin.c (str_plugin_gcc_version_name): New.
21693 (try_init_one_plugin): Read plugin_gcc_version from the plugin and
21694 pass it to the init function.
21695 (plugin_default_version_check): New.
21696
21697 2009-04-17 Richard Guenther <rguenther@suse.de>
21698
21699 * tree-ssa-alias.c (refs_may_alias_p_1): Do not use TBAA
21700 for decl-vs-decl disambiguation.
21701
21702 2009-04-17 Andreas Krebbel <krebbel1@de.ibm.com>
21703
21704 * config/s390/s390.h (s390_tune_attr): New macro definition.
21705 * config/s390/s390.md (cpu attribute): Map to s390_tune_attr.
21706
21707 2009-04-17 Richard Guenther <rguenther@suse.de>
21708
21709 * tree-ssa-ccp.c (struct fold_stmt_r_data): Remove.
21710 (fold_stmt_r): Likewise.
21711 (maybe_fold_reference): New function.
21712 (fold_gimple_assign): Handle cases fold_stmt_r did.
21713 (fold_stmt): Do not use fold_stmt_r.
21714 (fold_stmt_inplace): Likewise.
21715
21716 2009-04-17 Richard Guenther <rguenther@suse.de>
21717
21718 * tree-ssa-dom.c (gimple_assign_unary_useless_conversion_p): Remove.
21719 (record_equivalences_from_stmt): Remove useless checks and
21720 simplifications.
21721 * tree-ssa-pre.c (eliminate): Avoid converting a constant if
21722 the type is already suitable.
21723
21724 2009-04-17 Paolo Bonzini <bonzini@gnu.org>
21725
21726 * config/sh/sh.h (FUNCTION_VALUE): Fix call to sh_promote_prototypes.
21727
21728 2009-04-17 Uros Bizjak <ubizjak@gmail.com>
21729
21730 * config/arm/sfp-machine.h (__gcc_CMPtype): New typedef.
21731 (CMPtype): Define as __gcc_CMPtype.
21732
21733 2009-04-17 Aurelien Jarno <aurelien@aurel32.net>
21734
21735 * config.gcc: Add soft-fp/t-softfp and i386/t-linux to tmake_file
21736 for i[34567]86-*-kfreebsd*-gnu*, x86_64-*-kfreebsd*-gnu*.
21737
21738 2009-04-17 Richard Guenther <rguenther@suse.de>
21739
21740 PR tree-optimization/39746
21741 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Remove
21742 special-casing for builtins and static variable use/def.
21743 (call_may_clobber_ref_p_1): Likewise.
21744
21745 2009-04-16 Ian Lance Taylor <iant@google.com>
21746
21747 * df.h: Include "timevar.h".
21748 (struct df_problem): Change tv_id field to timevar_id_t.
21749 * tree-pass.h: Include "timevar.h".
21750 (struct opt_pass): Change tv_id field to timevar_id_t.
21751 * timevar.h (timevar_id_t): Define TV_NONE.
21752 * passes.c (execute_one_ipa_transform_pass): Check for tv_id !=
21753 TV_NONE rather than tv_id != 0.
21754 (execute_one_pass): Likewise.
21755 * Makefile.in (DF_H): Add $(TIMEVAR_H).
21756 (TREE_PASS_H): Define. Change all instances of tree-pass.h in
21757 dependencies to $(TREE_PASS_H).
21758 * bt-load.c (pass_branch_target_load_optimize1): Set tv_id field
21759 to TV_NONE.
21760 (pass_branch_target_load_optimize2): Likewise.
21761 * cfglayout.c (pass_into_cfg_layout_mode): Likewise.
21762 (pass_outof_cfg_layout_mode): Likewise.
21763 * cgraphbuild.c (pass_remove_cgraph_callee_edges): Likewise.
21764 (pass_rebuild_cgraph_edges): Likewise.
21765 (pass_remove_cgraph_callee_edges): Likewise.
21766 * df-core.c (pass_df_initialize_opt): Likewise.
21767 (pass_df_initialize_no_opt): Likewise.
21768 (pass_df_finish): Likewise.
21769 * emit-rtl.c (pass_unshare_all_rtl): Likewise.
21770 * except.c (pass_set_nothrow_function_flags): Likewise.
21771 (pass_convert_to_eh_region_ranges): Likewise.
21772 * final.c (pass_compute_alignments): Likewise.
21773 * function.c (pass_instantiate_virtual_regs): Likewise.
21774 (pass_init_function): Likewise.
21775 (pass_leaf_regs): Likewise.
21776 (pass_match_asm_constraints): Likewise.
21777 * gimple-low.c (pass_lower_cf): Likewise.
21778 (pass_mark_used_blocks): Likewise.
21779 * init-regs.c (pass_initialize_regs): Likewise.
21780 * integrate.c (pass_initial_value_sets): Likewise.
21781 * ira.c (pass_ira): Likewise.
21782 * jump.c (pass_cleanup_barriers): Likewise.
21783 * omp-low.c (pass_expand_omp): Likewise.
21784 (pass_lower_omp): Likewise.
21785 * matrix-reorg.c (pass_ipa_matrix_reorg): Likewise.
21786 * recog.c (pass_split_all_insns): Likewise.
21787 (pass_split_after_reload): Likewise.
21788 (pass_split_before_regstack): Likewise.
21789 (pass_split_before_sched2): Likewise.
21790 (pass_split_for_shorten_branches): Likewise.
21791 * reginfo.c (pass_reginfo_init): Likewise.
21792 (pass_subregs_of_mode_init): Likewise.
21793 (pass_subregs_of_mode_finish): Likewise.
21794 * passes.c (pass_postreload): Likewise.
21795 * stack-ptr-mod.c (pass_stack_ptr_mod): Likewise.
21796 * tree-cfg.c (pass_remove_useless_stmts): Likewise.
21797 (pass_warn_function_return): Likewise.
21798 (pass_warn_function_noreturn): Likewise.
21799 * tree-complex.c (pass_lower_complex): Likewise.
21800 (pass_lower_complex_O0): Likewise.
21801 * tree-if-conv.c (pass_if_conversion): Likewise.
21802 * tree-into-ssa.c (pass_build_ssa): Likewise.
21803 * tree-mudflap.c (pass_mudflap_1): Likewise.
21804 (pass_mudflap_2): Likewise.
21805 * tree-nomudflap.c (pass_mudflap_1): Likewise.
21806 (pass_mudflap_2): Likewise.
21807 * tree-nrv.c (pass_return_slot): Likewise.
21808 * tree-object-size.c (pass_object_sizes): Likewise.
21809 * tree-optimize.c (pass_all_optimizations): Likewise.
21810 (pass_early_local_passes): Likewise.
21811 (pass_all_early_optimizations): Likewise.
21812 (pass_cleanup_cfg): Likewise.
21813 (pass_cleanup_cfg_post_optimizing): Likewise.
21814 (pass_free_datastructures): Likewise.
21815 (pass_free_cfg_annotations): Likewise.
21816 (pass_fixup_cfg): Likewise.
21817 (pass_init_datastructures): Likewise.
21818 * tree-ssa.c (pass_early_warn_uninitialized): Likewise.
21819 (pass_late_warn_uninitialized): Likewise.
21820 (pass_update_address_taken): Likewise.
21821 * tree-ssa-ccp.c (pass_fold_builtins): Likewise.
21822 * tree-ssa-math-opts.c (pass_cse_reciprocals): Likewise.
21823 (pass_cse_sincos): Likewise.
21824 (pass_convert_to_rsqrt): Likewise.
21825 * tree-ssa-structalias.c (pass_build_alias): Likewise.
21826 * tree-stdarg.c (pass_stdarg): Likewise.
21827 * tree-tailcall.c (pass_tail_recursion): Likewise.
21828 (pass_tail_calls): Likewise.
21829 * tree-vect-generic.c (pass_lower_vector): Likewise.
21830 (pass_lower_vector_ssa): Likewise.
21831 * tree-vectorizer.c (pass_ipa_increase_alignment): Likewise.
21832
21833 2009-04-16 Joseph Myers <joseph@codesourcery.com>
21834
21835 * config/mips/mips.c (mips_rtx_cost_data): Use SOFT_FP_COSTS in
21836 XLR entry.
21837 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC):
21838 Handle -march=xlr.
21839 * config/mips/xlr.md (ir_xlr_alu): Also accept insn types move,
21840 logical and signext.
21841
21842 2009-04-16 Kaz Kojima <kkojima@gcc.gnu.org>
21843
21844 PR target/39767
21845 * config/sh/predicates.md (arith_operand): Check if the operand
21846 of TRUNCATE is a REG.
21847
21848 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
21849
21850 * cfgrtl.c (delete_insn_chain_and_edges): Remove.
21851 * rtl.h: Remove the prototype for delete_insn_chain_and_edges.
21852
21853 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
21854
21855 * tree-iterator.c (tsi_split_statement_list_after,
21856 tsi_split_statement_list_before): Remove.
21857 * tree-iterator.h: Remove the prototypes for
21858 tsi_split_statement_list_after and tsi_split_statement_list_before.
21859
21860 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
21861
21862 * tree-ssa-propagate.c (stmt_makes_single_load): Remove.
21863 * tree-ssa-propagate.h: Remove the prototype for
21864 stmt_makes_single_load.
21865
21866 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
21867
21868 * emit-rtl.c (set_mem_attrs_from_reg): Remove.
21869 * rtl.h: Remove the prototype for set_mem_attrs_from_reg.
21870
21871 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
21872
21873 * tree-iterator.c (EXPR_LAST_BODY): Remove.
21874
21875 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
21876
21877 * except.c (eh_region_outer_p): Remove.
21878 * except.h: Remove the prototype for eh_region_outer_p.
21879
21880 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
21881
21882 * function.c (current_function_assembler_name): Remove.
21883 * function.h: Remove the prototype for
21884 current_function_assembler_name.
21885
21886 2009-04-16 Ian Lance Taylor <iant@google.com>
21887
21888 * rtlanal.c (alloc_reg_note): New function, broken out of add_reg_note.
21889 (add_reg_note): Call alloc_reg_note.
21890 * rtl.h (alloc_reg_note): Declare.
21891 * combine.c (try_combine): Use alloc_reg_note.
21892 (recog_for_combine, move_deaths): Likewise.
21893 (distribute_notes): Use alloc_reg_note and add_reg_note.
21894 * haifa-sched.c (sched_create_recovery_edges): Use add_reg_note.
21895 * combine-stack-adj.c (adjust_frame_related_expr): Likewise.
21896 * reload1.c (eliminate_regs_1): Use alloc_reg_note.
21897
21898 2009-04-16 Vladimir Makarov <vmakarov@redhat.com>
21899
21900 PR rtl-optimization/39762
21901 * ira-int.h (ira_register_move_cost, ira_may_move_in_cost,
21902 ira_may_move_out_cost): Add comments about way of their usage.
21903 (ira_get_register_move_cost, ira_get_may_move_cost): New functions.
21904
21905 * ira-conflicts.c (process_regs_for_copy): Use function
21906 ira_get_register_move_cost instead of global
21907 ira_register_move_cost.
21908
21909 * ira-color.c (update_copy_costs, calculate_allocno_spill_cost,
21910 color_pass, move_spill_restore, update_curr_costs): Ditto.
21911
21912 * ira-lives.c (process_single_reg_class_operands): Ditto.
21913
21914 * ira-emit.c (emit_move_list): Ditto.
21915
21916 * ira-costs.c (copy_cost): Don't call ira_init_register_move_cost.
21917 (record_reg_classes): Ditto. Use functions
21918 ira_get_register_move_cost and ira_get_may_move_cost instead of
21919 global vars ira_register_move_cost, ira_may_move_out_cost and
21920 ira_may_move_in_cost.
21921 (record_address_regs): Don't call ira_init_register_move_cost.
21922 Use function ira_get_may_move_cost instead of global
21923 ira_may_move_in_cost.
21924 (process_bb_node_for_hard_reg_moves): Use function
21925 ira_get_register_move_cost instead of global ira_register_move_cost.
21926 (ira_costs): Don't call ira_init_register_move_cost.
21927
21928 2009-04-16 Richard Guenther <rguenther@suse.de>
21929
21930 * tree-cfg.c (verify_gimple_assign_binary):
21931 Allow POINTER_PLUS_EXPR-like PLUS_EXPR for vectors.
21932 * ipa-struct-reorg.c (gen_size): Fold the built expressions.
21933 (create_general_new_stmt): Note that this function is broken.
21934
21935 2009-04-16 Rafael Avila de Espindola <espindola@google.com>
21936
21937 * common.opt (fhelp): Add Var(help_flag).
21938 * gcc-plugin.h (plugin_info): Add help.
21939 * plugin.c (plugin_name_args): Add help.
21940 (register_plugin_info): Set plugin->help.
21941 (print_help_one_plugin): New.
21942 (print_plugins_help): New.
21943 * plugin.h (print_plugins_help): New.
21944 * toplev.c (toplev_main): Call print_plugins_help if needed.
21945
21946 2009-04-16 Richard Guenther <rguenther@suse.de>
21947
21948 * gimple.c (gimple_copy): Do not clear addresses_taken bitmap.
21949 (gimple_ior_addresses_taken_1): New function.
21950 (gimple_ior_addresses_taken): Likewise.
21951 * gimple.h (struct gimple_statement_with_ops_base): Remove
21952 addresses_taken member.
21953 (gimple_ior_addresses_taken): Declare.
21954 (gimple_addresses_taken, gimple_addresses_taken_ptr,
21955 gimple_set_addresses_taken): Remove.
21956 * ipa-reference.c (mark_address): New function.
21957 (scan_stmt_for_static_refs): Use it for marking addresses taken.
21958 * tree-ssa-operands.c (add_to_addressable_set): Rename to ...
21959 (mark_address_taken): ... this. Just set TREE_ADDRESSABLE.
21960 (gimple_add_to_addresses_taken): Remove.
21961 (get_tmr_operands): Call mark_address_taken.
21962 (get_asm_expr_operands): Likewise.
21963 (get_expr_operands): Likewise.
21964 (build_ssa_operands): Do not clear the addresses_taken bitmap.
21965 (free_stmt_operands): Do not free it.
21966 * tree-ssa.c (delete_tree_ssa): Likewise.
21967 (execute_update_addresses_taken): Use gimple_ior_addresses_taken.
21968
21969 2009-04-16 Richard Guenther <rguenther@suse.de>
21970
21971 * gimple.h (walk_stmt_load_store_addr_ops): Declare.
21972 (walk_stmt_load_store_ops): Likewise.
21973 * gimple.c (get_base_loadstore): New function.
21974 (walk_stmt_load_store_addr_ops): Likewise.
21975 (walk_stmt_load_store_ops): Likewise.
21976 * ipa-pure-const.c (check_op): Simplify.
21977 (check_load, check_store): New functions.
21978 (check_stmt): Use walk_stmt_load_store_ops.
21979 * ipa-reference.c (mark_load): Adjust signature.
21980 (mark_store): Likewise.
21981 (scan_stmt_for_static_refs): Use walk_stmt_load_store_addr_ops.
21982
21983 2009-04-16 Rafael Avila de Espindola <espindola@google.com>
21984
21985 * gcc-plugin.h (plugin_event): Add PLUGIN_INFO.
21986 (plugin_info): New.
21987 * opts.c (common_handle_option): Don't call print_version.
21988 * plugin.c (plugin_name_args): Add version.
21989 (register_plugin_info): New.
21990 (register_callback): Handle PLUGIN_INFO.
21991 (try_init_one_plugin): New.
21992 (init_one_plugin): Use try_init_one_plugin. Only free plugin_name_args
21993 if failed to init.
21994 (finalize_one_plugin): New.
21995 (finalize_plugins): New.
21996 (print_one_plugin): New.
21997 (print_plugins_versions): New.
21998 * plugin.h (print_plugins_versions): New.
21999 (finalize_plugins): New.
22000 * toplev.c (compile_file): Don't call initialize_plugins.
22001 (print_version): Call print_plugins_versions.
22002 (toplev_main): Call initialize_plugins. Print version if needed.
22003 Call finalize_plugins.
22004
22005 2009-04-16 Rafael Avila de Espindola <espindola@google.com>
22006
22007 * common.opt (fversion): New.
22008 * gcc.c (print_version): New.
22009 (process_command): Don't print the version. Just set print_version.
22010 (main): Print version. Call subprocesses if print_version and
22011 verbose_flag are set.
22012 * opts.c (common_handle_option): Handle OPT_fversion.
22013
22014 2009-04-16 Richard Guenther <rguenther@suse.de>
22015 Ira Rosen <irar@il.ibm.com>
22016
22017 PR tree-optimization/39698
22018 * tree-vect-loop.c (get_initial_def_for_reduction): Use the
22019 type of the reduction variable. Only generate the def if
22020 it is needed.
22021
22022 * omp-low.c (expand_omp_for_generic): When converting to a pointer
22023 make sure to first convert to an integer of the same precision.
22024 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Retain
22025 the type of the evolution correctly in computing the new
22026 induction variable base.
22027
22028 2009-04-16 Richard Guenther <rguenther@suse.de>
22029
22030 PR middle-end/39625
22031 * tree-cfg.c (make_blocks): Split statements with to-be
22032 abnormal SSA names on the lhs.
22033
22034 2009-04-16 Paolo Bonzini <bonzini@gnu.org>
22035
22036 * c-common.c (vector_targets_convertible_p, vector_types_convertible_p):
22037 Use TYPE_VECTOR_OPAQUE instead of targetm.vector_opaque_p.
22038 * c-typeck.c (really_start_incremental_init): Likewise.
22039 * target-def.h (TARGET_VECTOR_OPAQUE_P): Remove.
22040 (TARGET_INITIALIZER): Remove it.
22041 * target.h (struct target): Remove vector_opaque_p.
22042 * tree.c (build_opaque_vector_type): New.
22043 * tree.h (TYPE_VECTOR_OPAQUE): New.
22044 (build_opaque_vector_type): Declare.
22045 * doc/tm.texi (TARGET_VECTOR_OPAQUE_P): Remove.
22046 * config/rs6000/rs6000.c (build_opaque_vector_type,
22047 rs6000_is_vector_type, TARGET_VECTOR_OPAQUE_P): Remove.
22048 (rs6000_init_builtins): Use build_opaque_vector_type for
22049 opaque_V4SI_type_node.
22050
22051 2009-04-15 Catherine Moore <clm@codesourcery.com>
22052
22053 * debug.h (set_name): Declare.
22054 * dwarf2out.c (dwarf2out_set_name): Declare.
22055 (dwarf2_debug_hooks): Add set_name.
22056 (find_AT_string): New.
22057 (add_AT_string): Call find_AT_string.
22058 (dwarf2out_set_name): New.
22059 * cp/decl.c (grokdeclarator): Call set_name.
22060 * vmsdbgout.c (vmsdbg_debug_hooks): Add set_name_debug_nothing.
22061 * debug.c (do_nothing_debug_hooks): Likewise.
22062 * dbxout.c (dbx_debug_hooks): Likewise.
22063 * sdbout.c (sdb_debug_hooks): Likewise.
22064
22065 2009-04-15 Michael Eager <eager@eagercon.com>
22066
22067 * config/rs6000/rs6000.c (rs6000_function_value): Set function return
22068 reg for single-precision FPU.
22069 * config/rs6000/rs6000.md (movsi_internal1): Only for
22070 !TARGET_SINGLE_FPU.
22071 (movsi_internal1_single): New. Add pattern to move SI values to/from
22072 single-precision FP regs.
22073
22074 2009-04-15 Richard Guenther <rguenther@suse.de>
22075
22076 * omp-low.c (lower_rec_input_clauses): Build correct address
22077 expressions.
22078 (expand_omp_for_generic): Fix multiplication type.
22079 * tree-loop-distribution.c (build_size_arg): Build a size_t argument.
22080 (generate_memset_zero): Fix types.
22081 * tree-profile.c (prepare_instrumented_value): Correctly
22082 widen a pointer.
22083
22084 2009-04-15 Ian Lance Taylor <iant@google.com>
22085
22086 * c.opt (Wenum-compare): Enable for C and Objc. Initialize to -1.
22087 * c-opts.c (c_common_handle_option): For C, set warn_enum_compare
22088 for -Wall and for -Wc++-compat.
22089 (c_common_post_options): For C++, set warn_enum_compare if not
22090 already set.
22091 * c-tree.h (struct c_expr): Add field original_type.
22092 (build_external_ref): Update declaration.
22093 * c-parser.c (c_parser_braced_init): Set original_type.
22094 (c_parser_initelt): Likewise.
22095 (c_parser_expr_no_commas): Likewise.
22096 (c_parser_conditional_expression): Likewise.
22097 (c_parser_cast_expression): Likewise.
22098 (c_parser_unary_expression): Likewise. Pull setting of
22099 original_code to top of function.
22100 (c_parser_sizeof_expression): Set original_type.
22101 (c_parser_alignof_expression): Likewise.
22102 (c_parser_postfix_expression): Likewise. Pull setting of
22103 original_code to top of function.
22104 (c_parser_postfix_expression_after_paren_type): Set original_type.
22105 (c_parser_postfix_expression_after_primary): Likewise.
22106 (c_parser_expression): Likewise.
22107 * c-typeck.c (build_external_ref): Add type parameter. Change all
22108 callers.
22109 (c_expr_sizeof_expr): Set original_type field.
22110 (parser_build_unary_op): Likewise.
22111 (parser_build_binary_op): Likewise. Optionally warn about
22112 comparisons of enums of different types.
22113 (digest_init): Set original_type field.
22114 (really_start_incremental_init): Likewise.
22115 (push_init_level, pop_init_level): Likewise.
22116 * doc/invoke.texi (Warning Options): -Wenum-compare now
22117 supported in C.
22118
22119 2009-04-15 Richard Guenther <rguenther@suse.de>
22120
22121 * tree-ssa-pre.c (eliminate): When replacing a PHI node carry
22122 out a necessary conversion.
22123 * tree-ssa-sccvn.c (run_scc_vn): Also assign value-ids to
22124 names we didn't value number.
22125 * tree-mudflap.c (mf_build_check_statement_for): Use correct types.
22126
22127 2009-04-15 Richard Guenther <rguenther@suse.de>
22128
22129 PR tree-optimization/39764
22130 * tree-ssa-ccp.c (get_value): Canonicalize value with
22131 canonicalize_float_value.
22132
22133 2009-04-15 Jan Hubicka <jh@suse.cz>
22134
22135 * builtins.def (va_start, va_end, va_copy): Fix my previous commit.
22136 Wrong version of patch.
22137
22138 2009-04-15 Jan Hubicka <jh@suse.cz>
22139
22140 * builtins.def (va_start, va_end, va_copy): Mark nothrow.
22141
22142 2009-04-15 Nathan Sidwell <nathan@codesourcery.com>
22143
22144 * config/rs6000/rs6000.c (rs6000_init_builtins): Set TYPE_NAME of
22145 our distinct integral and vector types.
22146
22147 2009-04-15 Rafael Avila de Espindola <espindola@google.com>
22148
22149 * class.c (build_vtbl_ref_1): Remove call to assemble_external.
22150 * init.c (build_vtbl_address): Remove call to assemble_external.
22151
22152 2009-04-14 Daniel Jacobowitz <dan@codesourcery.com>
22153
22154 * config/rs6000/rs6000.c (rs6000_dwarf_register_span): Fix debug
22155 output for other floating point modes.
22156
22157 2009-04-14 Diego Novillo <dnovillo@google.com>
22158
22159 * diagnostic.c (diagnostic_report_diagnostic): Do not
22160 warn about loaded plugins for DK_ERROR and DK_WARNING.
22161 * c-decl.c (declspecs_add_type): Move call to
22162 invoke_plugin_callbacks ...
22163 * c-parser.c (c_parser_declspecs): ... here.
22164 * plugin.c (dump_active_plugins): Tidy output.
22165
22166 2009-04-14 Diego Novillo <dnovillo@google.com>
22167 Le-Chun Wu <lcwu@google.com>
22168
22169 * configure.ac: Add --enable-plugin support.
22170 Define ENABLE_PLUGIN and PLUGINLIBS when specified.
22171 * Makefile.in (PLUGIN_H): Define.
22172 Export ENABLE_PLUGIN and GMPINC to site.exp.
22173 Add PLUGINLIBS to link command.
22174 Add/modify dependencies for plugin.o and files including plugin.h.
22175 (plugin.o): New.
22176 * config.in: Regenerate.
22177
22178 * opts.c (common_handle_option): Handle OPT_fplugin_ and
22179 OPT_fplugin_arg_.
22180
22181 2009-04-14 Le-Chun Wu <lcwu@google.com>
22182
22183 * tree-pass.h (register_one_dump_file): Add a prototype for
22184 register_one_dump_file.
22185 * toplev.c (compile_file): Call initialize_plugins.
22186 (do_compile): Call invoke_plugin_callbacks.
22187 (toplev_main): Call invoke_plugin_callbacks.
22188 * common.opt: Add -fplugin= and -fplugin-arg-.
22189 * gcc-plugin.h: New public header file for plugins to include.
22190 * plugin.c: New source file.
22191 * plugin.h: New internal header file.
22192 * passes.c (register_one_dump_file): Make it external.
22193
22194 * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks.
22195
22196 2009-04-14 Diego Novillo <dnovillo@google.com>
22197
22198 * doc/plugins.texi: New.
22199 * doc/gccint.texi: Add reference to Plugins chapter.
22200 * doc/invoke.texi: Document -fplugin and -fplugin-arg
22201 * diagnostic.c (diagnostic_report_diagnostic): Warn about
22202 loaded plugins, if any.
22203 * timevar.def (TV_PLUGIN_INIT): Define.
22204 (TV_PLUGIN_RUN): Define.
22205 * plugin.c: Include timevar.h
22206 (plugins_active_p): New.
22207 (dump_active_plugins): New.
22208 (debug_active_plugins): New.
22209
22210 2009-04-14 Joseph Myers <joseph@codesourcery.com>
22211
22212 * config/sol2.h (LINK_ARCH32_SPEC_BASE): Use %R with absolute
22213 library paths.
22214 * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Likewise.
22215
22216 2009-04-14 Kazu Hirata <kazu@codesourcery.com>
22217
22218 * config/arm/arm.c (arm_rtx_costs_1): Treat a minus with a shift
22219 the same as a minus without a shift.
22220
22221 2009-04-14 Nick Clifton <nickc@redhat.com>
22222
22223 * config/stormy16/stormy16.md (ineqbranch_1): Do not assume that
22224 comparisons with small integers will always produce a short
22225 branch.
22226
22227 2009-04-14 Rafael Avila de Espindola <espindola@google.com>
22228
22229 Merge:
22230 2008-12-19 Diego Novillo <dnovillo@google.com>
22231
22232 * cgraph.c (dump_cgraph_node): Show memory address of NODE.
22233
22234 2009-04-14 Richard Guenther <rguenther@suse.de>
22235
22236 * tree-cfg.c (verify_gimple_assign_unary): Adjust vector code
22237 verification.
22238 (verify_gimple_assign_binary): Likewise. Handle shifts and
22239 rotates correctly.
22240 (verify_gimple_phi): Print the mismatched argument position.
22241 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
22242 Fix types.
22243 (vect_update_init_of_dr): Likewise.
22244 * matrix-reorg.c (transform_access_sites): Do what the
22245 comment suggests.
22246 * omp-low.c (expand_omp_atomic_pipeline): Use the correct types.
22247
22248 2009-04-13 Michael Eager <eager@eagercon.com>
22249
22250 * config/rs6000/rs6000-c.c: generate defines if rs6000_xilinx_fpu:
22251 _XFPU, _XFPU_SP_LITE, _XFPU_SP_FULL, _XFPU_DP_LITE, _XFPU_DP_FULL
22252 * config/rs6000/xilinx.h: New. Spec for powerpc-xilinx-eabi
22253 * config.gcc (powerpc-xilinx-eabi): add xilinx.h to tm_file,
22254 remove duplicate config
22255
22256 2009-04-13 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
22257
22258 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Dump
22259 file_name:line_number type locator of the call site.
22260
22261 2009-04-13 Vladimir Makarov <vmakarov@redhat.com>
22262
22263 * genautomata.c: Put blank after comma.
22264 (automaton_decls): New.
22265 (struct unit_usage): Add comments to member next.
22266 (store_alt_unit_usage): Keep the list ordered.
22267 (unit_present_on_list_p, equal_alternatives_p): New.
22268 (check_regexp_units_distribution): Check units distribution
22269 correctness correctly.
22270 (main): Don't write automata if error is found. Return correct
22271 exit code.
22272
22273 * config/m68k/cf.md (cfv4_ds): Remove.
22274 (cfv4_pOEP1, cfv4_sOEP1, cfv4_pOEP2,cfv4_sOEP2, cfv4_pOEP3,
22275 cfv4_sOEP3): Assign to cfv4_oep instead of cfv4_ds.
22276
22277 * config/rs6000/power4.md (lsuq_power4, iq_power4, fpq_power4,
22278 power4-load-ext, power4-store, power4-store-update,
22279 power4-fpstore, power4-fpstore-update, power4-two, power4-three,
22280 power4-insert, power4-compare, power4-lmul-cmp, power4-imul-cmp,
22281 power4-lmul, , power4-imul, power4-imul3, power4-sdiv,
22282 power4-sqrt, power4-isync): Modify reservation to make correct
22283 unit distribution to automata.
22284
22285 * config/rs6000/power5.md (iq_power5, fpq_power5, power5-store,
22286 power5-store-update, power5-two, power5-three, power5-lmul,
22287 power5-imul, power5-imul3, power5-sdiv, power5-sqrt): Ditto.
22288
22289 2009-04-13 Adam Nemet <anemet@caviumnetworks.com>
22290
22291 * except.c (pass_set_nothrow_function_flags): Set name and add
22292 TODO_dump_func.
22293 (set_nothrow_function_flags): Mention in the dump file when
22294 changing a function to nothrow.
22295
22296 2009-04-13 Ozkan Sezer <sezeroz@gmail.com>
22297
22298 PR/39066
22299 * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Use __SIZE_TYPE__
22300 instead of unsigned long.
22301
22302 2009-04-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22303
22304 * config/arm/arm.c (return_used_this_function): Remove.
22305 (arm_output_function_prologue): Remove use of
22306 return_used_this_function.
22307 (output_return_instruction): Replace use of
22308 return_used_this_function
22309 by cfun->machine->return_used_this_function.
22310 (arm_output_epilogue): Likewise.
22311 (arm_output_function_epilogue): Likewise.
22312 (thumb_unexpanded_epilogue): Likewise.
22313 * config/arm/arm.h (struct machine_function):
22314 New member return_used_this_function.
22315
22316 2009-04-12 Mark Mitchell <mark@codesourcery.com>
22317
22318 * doc/install.texi: Correct description of default directory for
22319 --with-gxx-include-dir.
22320
22321 2009-04-12 Eric Botcazou <ebotcazou@adacore.com>
22322
22323 * fold-const.c (build_range_check): Properly deal with enumeral and
22324 boolean base types.
22325
22326 2009-04-12 Steven Bosscher <steven@gcc.gnu.org>
22327
22328 * doc/invoke.texi (max_gcse_passes): Remove documentation.
22329 * params.def (PARAM_MAX_GCSE_PASSES): Remove.
22330 * params.h (MAX_GCSE_PASSES): Remove.
22331 * gcse.c (gcse_main): Run CPROP1, PRE or HOIST, and CPROP2
22332 in sequence. Remove ability to run multiple passes.
22333 (bypass_jumps): Report run as third CPROP pass.
22334
22335 2009-04-12 Adam Nemet <anemet@caviumnetworks.com>
22336
22337 PR middle-end/39651
22338 * except.c (can_throw_external): Look at each insn in a SEQUENCE
22339 when deciding whether the whole SEQUENCE can throw.
22340
22341 2009-04-12 Uros Bizjak <ubizjak@gmail.com>
22342
22343 PR target/39740
22344 * config/alpha/predicates.md (local_symbolic_operand): Return 1 for
22345 offseted label references.
22346
22347 2009-04-11 Jan Hubicka <jh@suse.cz>
22348
22349 * tree-ssa-pre.c (eliminate): Fix call of update_stmt.
22350
22351 2009-04-11 Richard Guenther <rguenther@suse.de>
22352
22353 PR middle-end/39732
22354 * tree-inline.c (declare_return_variable): Mark DECL_BY_REFERENCE
22355 return variables as TREE_ADDRESSABLE.
22356
22357 2009-04-11 Richard Guenther <rguenther@suse.de>
22358
22359 PR tree-optimization/39713
22360 * tree-ssa-sccvn.c (vn_get_expr_for): Make sure built
22361 reference trees have SSA_NAME operands.
22362
22363 2009-04-11 Richard Guenther <rguenther@suse.de>
22364
22365 PR c/39712
22366 * c-gimplify.c (c_gimplify_expr): Adjust check for mismatched
22367 address expressions.
22368
22369 2009-04-11 Dave Korn <dave.korn.cygwin@gmail.com>
22370
22371 * config/i386/cygwin-stdint.h (INT_LEAST32_TYPE): Update to
22372 match changes in Cygwin 1.7
22373 (UINT_LEAST32_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE,
22374 UINT_FAST16_TYPE, UINT_FAST32_TYPE): Likewise.
22375
22376 2009-04-10 Paolo Bonzini <bonzini@gnu.org>
22377
22378 PR tree-optimization/39701
22379 * doc/invoke.texi (Optimization Options): Document change in
22380 meaning and initialization of -fdelete-null-pointer-checks.
22381
22382 2009-04-10 H.J. Lu <hongjiu.lu@intel.com>
22383
22384 PR middle-end/39701
22385 * common.opt (-fdelete-null-pointer-checks): Initialize to 1.
22386
22387 * opts.c (decode_options): Don't set flag_delete_null_pointer_checks
22388 here.
22389
22390 * doc/invoke.texi: Update -fdelete-null-pointer-checks.
22391
22392 2009-04-10 Chao-ying Fu <fu@mips.com>
22393
22394 * doc/tm.texi (Instruction Output): Document
22395 TARGET_ASM_FINAL_POSTSCAN_INSN.
22396 * target.h (final_postscan_insn): New field in asm_out.
22397 * target-def.h (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
22398 (TARGET_ASM_OUT): Add TARGET_ASM_FINAL_POSTSCAN_INSN.
22399 * final.c (final_scan_insn): Call
22400 targetm.asm_out.final_postscan_insn after outputting
22401 an asm macro and a normal instruction.
22402
22403 * config/mips/mips.h (FINAL_PRESCAN_INSN): New define.
22404 * config/mips/mips-protos.h (mips_final_prescan_insn): Declare.
22405 * config/mips/mips.c (mips_at_reg_p): New for_each_rtx callback.
22406 (mips_final_prescan_insn, mips_final_postscan_insn): New functions.
22407 (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
22408
22409 2009-04-10 Paolo Bonzini <bonzini@gnu.org>
22410
22411 PR middle-end/39701
22412 * fold-const.c (tree_single_nonzero_warnv_p): Pass non-static
22413 variables as non-NULL even with -fdelete-null-pointer-checks.
22414
22415 2009-04-10 H.J. Lu <hongjiu.lu@intel.com>
22416
22417 * config/rs6000/darwin-vecsave.asm: Remove extra "*/".
22418
22419 2009-04-09 H.J. Lu <hongjiu.lu@intel.com>
22420
22421 PR target/39678
22422 * config/i386/i386.c (classify_argument): Handle SCmode with
22423 (bit_offset % 64) != 0.
22424
22425 2009-04-09 Sandra Loosemore <sandra@codesourcery.com>
22426
22427 * doc/invoke.texi (Optimize Options): Add cross-reference to
22428 -Q --help=optimizers examples.
22429
22430 2009-04-10 Ben Elliston <bje@au.ibm.com>
22431
22432 PR target/36800
22433 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Do not set
22434 regalign for the reg == fpr and TDmode case.
22435
22436 2009-04-09 David Ayers <ayers@fsfe.org>
22437
22438 PR objc/29200
22439 * objc/objc-act.c (warn_with_method): Remove helper function.
22440 (check_duplicates): Call warning and inform directly.
22441 (really_start_method): Likewise.
22442
22443 2009-04-09 Paolo Bonzini <bonzini@gnu.org>
22444
22445 * expmed.c (expand_divmod): Always use a comparison for a division
22446 by a large unsigned integer.
22447
22448 * fold-const.c (tree_single_nonzero_warnv_p): Always treat decls
22449 for things others than variables or functions as nonzero.
22450
22451 2009-04-09 Nick Clifton <nickc@redhat.com>
22452
22453 * unwind-compat.c: Change copyright header to refer to version
22454 3 of the GNU General Public License with version 3.1 of the
22455 GCC Runtime Library Exception and to point readers at the
22456 COPYING3 and COPYING3.RUNTIME files and the FSF's license web page.
22457 * config/alpha/crtfastmath.c: Likewise.
22458 * config/alpha/linux-unwind.h: Likewise.
22459 * config/alpha/qrnnd.asm: Likewise.
22460 * config/alpha/vms-crt0-64.c: Likewise.
22461 * config/alpha/vms-crt0.c: Likewise.
22462 * config/alpha/vms-dwarf2.asm: Likewise.
22463 * config/alpha/vms-dwarf2eh.asm: Likewise.
22464 * config/alpha/vms-psxcrt0-64.c: Likewise.
22465 * config/alpha/vms-psxcrt0.c: Likewise.
22466 * config/alpha/vms_tramp.asm: Likewise.
22467 * config/arc/initfini.c: Likewise.
22468 * config/arc/lib1funcs.asm: Likewise.
22469 * config/arm/bpabi-v6m.S: Likewise.
22470 * config/arm/bpabi.S: Likewise.
22471 * config/arm/bpabi.c: Likewise.
22472 * config/arm/crti.asm: Likewise.
22473 * config/arm/crtn.asm: Likewise.
22474 * config/arm/ieee754-df.S: Likewise.
22475 * config/arm/ieee754-sf.S: Likewise.
22476 * config/arm/lib1funcs.asm: Likewise.
22477 * config/arm/libunwind.S: Likewise.
22478 * config/arm/linux-atomic.c: Likewise.
22479 * config/arm/mmintrin.h: Likewise.
22480 * config/arm/pr-support.c: Likewise.
22481 * config/arm/unaligned-funcs.c: Likewise.
22482 * config/arm/unwind-arm.c: Likewise.
22483 * config/arm/unwind-arm.h: Likewise.
22484 * config/avr/libgcc.S: Likewise.
22485 * config/bfin/crti.s: Likewise.
22486 * config/bfin/crtlibid.s: Likewise.
22487 * config/bfin/crtn.s: Likewise.
22488 * config/bfin/lib1funcs.asm: Likewise.
22489 * config/bfin/linux-unwind.h: Likewise.
22490 * config/cris/arit.c: Likewise.
22491 * config/cris/cris_abi_symbol.c: Likewise.
22492 * config/darwin-64.c: Likewise.
22493 * config/darwin-crt2.c: Likewise.
22494 * config/darwin-crt3.c: Likewise.
22495 * config/darwin.h: Likewise.
22496 * config/dbxelf.h: Likewise.
22497 * config/dfp-bit.c: Likewise.
22498 * config/dfp-bit.h: Likewise.
22499 * config/elfos.h: Likewise.
22500 * config/fixed-bit.c: Likewise.
22501 * config/fixed-bit.h: Likewise.
22502 * config/fp-bit.c: Likewise.
22503 * config/fp-bit.h: Likewise.
22504 * config/fr30/crti.asm: Likewise.
22505 * config/fr30/crtn.asm: Likewise.
22506 * config/fr30/lib1funcs.asm: Likewise.
22507 * config/freebsd-spec.h: Likewise.
22508 * config/frv/cmovd.c: Likewise.
22509 * config/frv/cmovh.c: Likewise.
22510 * config/frv/cmovw.c: Likewise.
22511 * config/frv/frvbegin.c: Likewise.
22512 * config/frv/frvend.c: Likewise.
22513 * config/frv/lib1funcs.asm: Likewise.
22514 * config/glibc-stdint.h: Likewise.
22515 * config/h8300/clzhi2.c: Likewise.
22516 * config/h8300/crti.asm: Likewise.
22517 * config/h8300/crtn.asm: Likewise.
22518 * config/h8300/ctzhi2.c: Likewise.
22519 * config/h8300/fixunssfsi.c: Likewise.
22520 * config/h8300/lib1funcs.asm: Likewise.
22521 * config/h8300/parityhi2.c: Likewise.
22522 * config/h8300/popcounthi2.c: Likewise.
22523 * config/i386/ammintrin.h: Likewise.
22524 * config/i386/att.h: Likewise.
22525 * config/i386/avxintrin.h: Likewise.
22526 * config/i386/biarch64.h: Likewise.
22527 * config/i386/bmmintrin.h: Likewise.
22528 * config/i386/cpuid.h: Likewise.
22529 * config/i386/cross-stdarg.h: Likewise.
22530 * config/i386/crtfastmath.c: Likewise.
22531 * config/i386/crtprec.c: Likewise.
22532 * config/i386/cygming-crtbegin.c: Likewise.
22533 * config/i386/cygming-crtend.c: Likewise.
22534 * config/i386/cygwin.asm: Likewise.
22535 * config/i386/emmintrin.h: Likewise.
22536 * config/i386/gmm_malloc.h: Likewise.
22537 * config/i386/gthr-win32.c: Likewise.
22538 * config/i386/i386.h: Likewise.
22539 * config/i386/immintrin.h: Likewise.
22540 * config/i386/linux-unwind.h: Likewise.
22541 * config/i386/linux64.h: Likewise.
22542 * config/i386/mm3dnow.h: Likewise.
22543 * config/i386/mmintrin-common.h: Likewise.
22544 * config/i386/mmintrin.h: Likewise.
22545 * config/i386/nmmintrin.h: Likewise.
22546 * config/i386/pmm_malloc.h: Likewise.
22547 * config/i386/pmmintrin.h: Likewise.
22548 * config/i386/smmintrin.h: Likewise.
22549 * config/i386/sol2-c1.asm: Likewise.
22550 * config/i386/sol2-ci.asm: Likewise.
22551 * config/i386/sol2-cn.asm: Likewise.
22552 * config/i386/sol2-gc1.asm: Likewise.
22553 * config/i386/tmmintrin.h: Likewise.
22554 * config/i386/unix.h: Likewise.
22555 * config/i386/w32-unwind.h: Likewise.
22556 * config/i386/wmmintrin.h: Likewise.
22557 * config/i386/x86-64.h: Likewise.
22558 * config/i386/x86intrin.h: Likewise.
22559 * config/i386/xmmintrin.h: Likewise.
22560 * config/ia64/crtbegin.asm: Likewise.
22561 * config/ia64/crtend.asm: Likewise.
22562 * config/ia64/crtfastmath.c: Likewise.
22563 * config/ia64/crti.asm: Likewise.
22564 * config/ia64/crtn.asm: Likewise.
22565 * config/ia64/fde-glibc.c: Likewise.
22566 * config/ia64/lib1funcs.asm: Likewise.
22567 * config/ia64/linux-unwind.h: Likewise.
22568 * config/ia64/quadlib.c: Likewise.
22569 * config/ia64/unwind-ia64.c: Likewise.
22570 * config/linux.h: Likewise.
22571 * config/m32c/m32c-lib1.S: Likewise.
22572 * config/m32c/m32c-lib2-trapv.c: Likewise.
22573 * config/m32c/m32c-lib2.c: Likewise.
22574 * config/m32r/initfini.c: Likewise.
22575 * config/m68hc11/larith.asm: Likewise.
22576 * config/m68hc11/m68hc11-crt0.S: Likewise.
22577 * config/m68k/cf.md: Likewise.
22578 * config/m68k/crti.s: Likewise.
22579 * config/m68k/crtn.s: Likewise.
22580 * config/m68k/lb1sf68.asm: Likewise.
22581 * config/m68k/linux-unwind.h: Likewise.
22582 * config/mcore/crti.asm: Likewise.
22583 * config/mcore/crtn.asm: Likewise.
22584 * config/mcore/lib1.asm: Likewise.
22585 * config/mips/linux-unwind.h: Likewise.
22586 * config/mips/loongson.h: Likewise.
22587 * config/mips/mips16.S: Likewise.
22588 * config/mmix/crti.asm: Likewise.
22589 * config/mmix/crtn.asm: Likewise.
22590 * config/pa/fptr.c: Likewise.
22591 * config/pa/hpux-unwind.h: Likewise.
22592 * config/pa/lib2funcs.asm: Likewise.
22593 * config/pa/linux-atomic.c: Likewise.
22594 * config/pa/linux-unwind.h: Likewise.
22595 * config/pa/milli64.S: Likewise.
22596 * config/pa/quadlib.c: Likewise.
22597 * config/pa/stublib.c: Likewise.
22598 * config/picochip/libgccExtras/adddi3.asm: Likewise.
22599 * config/picochip/libgccExtras/ashlsi3.asm: Likewise.
22600 * config/picochip/libgccExtras/ashlsi3.c: Likewise.
22601 * config/picochip/libgccExtras/ashrsi3.asm: Likewise.
22602 * config/picochip/libgccExtras/ashrsi3.c: Likewise.
22603 * config/picochip/libgccExtras/cmpsi2.asm: Likewise.
22604 * config/picochip/libgccExtras/divmod15.asm: Likewise.
22605 * config/picochip/libgccExtras/divmodhi4.asm: Likewise.
22606 * config/picochip/libgccExtras/divmodsi4.asm: Likewise.
22607 * config/picochip/libgccExtras/longjmp.asm: Likewise.
22608 * config/picochip/libgccExtras/lshrsi3.asm: Likewise.
22609 * config/picochip/libgccExtras/lshrsi3.c: Likewise.
22610 * config/picochip/libgccExtras/parityhi2.asm: Likewise.
22611 * config/picochip/libgccExtras/popcounthi2.asm: Likewise.
22612 * config/picochip/libgccExtras/setjmp.asm: Likewise.
22613 * config/picochip/libgccExtras/subdi3.asm: Likewise.
22614 * config/picochip/libgccExtras/ucmpsi2.asm: Likewise.
22615 * config/picochip/libgccExtras/udivmodhi4.asm: Likewise.
22616 * config/picochip/libgccExtras/udivmodsi4.asm: Likewise.
22617 * config/rs6000/750cl.h: Likewise.
22618 * config/rs6000/altivec.h: Likewise.
22619 * config/rs6000/biarch64.h: Likewise.
22620 * config/rs6000/crtresfpr.asm: Likewise.
22621 * config/rs6000/crtresgpr.asm: Likewise.
22622 * config/rs6000/crtresxfpr.asm: Likewise.
22623 * config/rs6000/crtresxgpr.asm: Likewise.
22624 * config/rs6000/crtsavfpr.asm: Likewise.
22625 * config/rs6000/crtsavgpr.asm: Likewise.
22626 * config/rs6000/darwin-asm.h: Likewise.
22627 * config/rs6000/darwin-fallback.c: Likewise.
22628 * config/rs6000/darwin-fpsave.asm: Likewise.
22629 * config/rs6000/darwin-ldouble.c: Likewise.
22630 * config/rs6000/darwin-tramp.asm: Likewise.
22631 * config/rs6000/darwin-unwind.h: Likewise.
22632 * config/rs6000/darwin-vecsave.asm: Likewise.
22633 * config/rs6000/darwin-world.asm: Likewise.
22634 * config/rs6000/e500crtres32gpr.asm: Likewise.
22635 * config/rs6000/e500crtres64gpr.asm: Likewise.
22636 * config/rs6000/e500crtres64gprctr.asm: Likewise.
22637 * config/rs6000/e500crtrest32gpr.asm: Likewise.
22638 * config/rs6000/e500crtrest64gpr.asm: Likewise.
22639 * config/rs6000/e500crtresx32gpr.asm: Likewise.
22640 * config/rs6000/e500crtresx64gpr.asm: Likewise.
22641 * config/rs6000/e500crtsav32gpr.asm: Likewise.
22642 * config/rs6000/e500crtsav64gpr.asm: Likewise.
22643 * config/rs6000/e500crtsav64gprctr.asm: Likewise.
22644 * config/rs6000/e500crtsavg32gpr.asm: Likewise.
22645 * config/rs6000/e500crtsavg64gpr.asm: Likewise.
22646 * config/rs6000/e500crtsavg64gprctr.asm: Likewise.
22647 * config/rs6000/eabi-ci.asm: Likewise.
22648 * config/rs6000/eabi-cn.asm: Likewise.
22649 * config/rs6000/eabi.asm: Likewise.
22650 * config/rs6000/linux-unwind.h: Likewise.
22651 * config/rs6000/linux64.h: Likewise.
22652 * config/rs6000/paired.h: Likewise.
22653 * config/rs6000/paired.md: Likewise.
22654 * config/rs6000/ppc64-fp.c: Likewise.
22655 * config/rs6000/ppu_intrinsics.h: Likewise.
22656 * config/rs6000/rs6000.h: Likewise.
22657 * config/rs6000/si2vmx.h: Likewise.
22658 * config/rs6000/sol-ci.asm: Likewise.
22659 * config/rs6000/sol-cn.asm: Likewise.
22660 * config/rs6000/spe.h: Likewise.
22661 * config/rs6000/spu2vmx.h: Likewise.
22662 * config/rs6000/sysv4.h: Likewise.
22663 * config/rs6000/tramp.asm: Likewise.
22664 * config/rs6000/vec_types.h: Likewise.
22665 * config/s390/linux-unwind.h: Likewise.
22666 * config/s390/tpf-unwind.h: Likewise.
22667 * config/score/crti.asm: Likewise.
22668 * config/score/crtn.asm: Likewise.
22669 * config/sh/crt1.asm: Likewise.
22670 * config/sh/crti.asm: Likewise.
22671 * config/sh/crtn.asm: Likewise.
22672 * config/sh/divtab-sh4-300.c: Likewise.
22673 * config/sh/divtab-sh4.c: Likewise.
22674 * config/sh/divtab.c: Likewise.
22675 * config/sh/lib1funcs-4-300.asm: Likewise.
22676 * config/sh/lib1funcs-Os-4-200.asm: Likewise.
22677 * config/sh/lib1funcs.asm: Likewise.
22678 * config/sh/lib1funcs.h: Likewise.
22679 * config/sh/linux-atomic.asm: Likewise.
22680 * config/sh/linux-unwind.h: Likewise.
22681 * config/sh/shmedia.h: Likewise.
22682 * config/sh/sshmedia.h: Likewise.
22683 * config/sh/ushmedia.h: Likewise.
22684 * config/sparc/crtfastmath.c: Likewise.
22685 * config/sparc/linux-unwind.h: Likewise.
22686 * config/sparc/sol2-c1.asm: Likewise.
22687 * config/sparc/sol2-ci.asm: Likewise.
22688 * config/sparc/sol2-cn.asm: Likewise.
22689 * config/spu/divmodti4.c: Likewise.
22690 * config/spu/divv2df3.c: Likewise.
22691 * config/spu/float_disf.c: Likewise.
22692 * config/spu/float_unsdidf.c: Likewise.
22693 * config/spu/float_unsdisf.c: Likewise.
22694 * config/spu/float_unssidf.c: Likewise.
22695 * config/spu/mfc_multi_tag_release.c: Likewise.
22696 * config/spu/mfc_multi_tag_reserve.c: Likewise.
22697 * config/spu/mfc_tag_release.c: Likewise.
22698 * config/spu/mfc_tag_reserve.c: Likewise.
22699 * config/spu/mfc_tag_table.c: Likewise.
22700 * config/spu/multi3.c: Likewise.
22701 * config/spu/spu_internals.h: Likewise.
22702 * config/spu/spu_intrinsics.h: Likewise.
22703 * config/spu/spu_mfcio.h: Likewise.
22704 * config/spu/vec_types.h: Likewise.
22705 * config/spu/vmx2spu.h: Likewise.
22706 * config/stormy16/stormy16-lib2.c: Likewise.
22707 * config/svr4.h: Likewise.
22708 * config/sync.c: Likewise.
22709 * config/v850/lib1funcs.asm: Likewise.
22710 * config/vxlib-tls.c: Likewise.
22711 * config/vxlib.c: Likewise.
22712 * config/vxworks-dummy.h: Likewise.
22713 * config/xtensa/crti.asm: Likewise.
22714 * config/xtensa/crtn.asm: Likewise.
22715 * config/xtensa/ieee754-df.S: Likewise.
22716 * config/xtensa/ieee754-sf.S: Likewise.
22717 * config/xtensa/lib1funcs.asm: Likewise.
22718 * config/xtensa/lib2funcs.S: Likewise.
22719 * config/xtensa/linux-unwind.h: Likewise.
22720 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
22721 * config/xtensa/unwind-dw2-xtensa.h: Likewise.
22722 * coretypes.h: Likewise.
22723 * crtstuff.c: Likewise.
22724 * defaults.h: Likewise.
22725 * dwarf2.h: Likewise.
22726 * emutls.c: Likewise.
22727 * gbl-ctors.h: Likewise.
22728 * gcov-io.h: Likewise.
22729 * ginclude/float.h: Likewise.
22730 * ginclude/iso646.h: Likewise.
22731 * ginclude/stdarg.h: Likewise.
22732 * ginclude/stdbool.h: Likewise.
22733 * ginclude/stddef.h: Likewise.
22734 * ginclude/stdfix.h: Likewise.
22735 * ginclude/stdint-gcc.h: Likewise.
22736 * ginclude/tgmath.h: Likewise.
22737 * gthr-aix.h: Likewise.
22738 * gthr-dce.h: Likewise.
22739 * gthr-gnat.c: Likewise.
22740 * gthr-gnat.h: Likewise.
22741 * gthr-lynx.h: Likewise.
22742 * gthr-mipssde.h: Likewise.
22743 * gthr-nks.h: Likewise.
22744 * gthr-posix.c: Likewise.
22745 * gthr-posix.h: Likewise.
22746 * gthr-posix95.h: Likewise.
22747 * gthr-rtems.h: Likewise.
22748 * gthr-single.h: Likewise.
22749 * gthr-solaris.h: Likewise.
22750 * gthr-tpf.h: Likewise.
22751 * gthr-vxworks.h: Likewise.
22752 * gthr-win32.h: Likewise.
22753 * gthr.h: Likewise.
22754 * libgcc2.c: Likewise.
22755 * libgcc2.h: Likewise.
22756 * libgcov.c: Likewise.
22757 * tsystem.h: Likewise.
22758 * typeclass.h: Likewise.
22759 * unwind-c.c: Likewise.
22760 * unwind-compat.h: Likewise.
22761 * unwind-dw2-fde-compat.c: Likewise.
22762 * unwind-dw2-fde-darwin.c: Likewise.
22763 * unwind-dw2-fde-glibc.c: Likewise.
22764 * unwind-dw2-fde.c: Likewise.
22765 * unwind-dw2-fde.h: Likewise.
22766 * unwind-dw2.c: Likewise.
22767 * unwind-dw2.h: Likewise.
22768 * unwind-generic.h: Likewise.
22769 * unwind-pe.h: Likewise.
22770 * unwind-sjlj.c: Likewise.
22771 * unwind.inc: Likewise.
22772 * config/arm/neon-gen.ml: Change generated copyright header to
22773 refer to version 3 of the GNU General Public License with
22774 version 3.1 of the GCC Runtime Library Exception and to point
22775 readers at the COPYING3 and COPYING3.RUNTIME files and the
22776 FSF's license web page.
22777 * config/arm/arm_neon.h: Regenerate.
22778
22779 2009-04-09 Jakub Jelinek <jakub@redhat.com>
22780
22781 * config/cris/cris.md: Change copyright header to refer to version
22782 3 of the GNU General Public License.
22783 * doc/install.texi2html: Change copyright header to refer to version
22784 3 of the GNU General Public License and to point readers at the
22785 COPYING3 file and the FSF's license web page.
22786 * config/vax/linux.h: Likewise.
22787
22788 2009-04-09 Paolo Bonzini <bonzini@gnu.org>
22789
22790 * config/i386/i386.md (cmpcc): New.
22791 * config/i386/sync.md (sync_compare_and_swap*): Set FLAGS_REG.
22792 (sync_compare_and_swap_cc*): Delete.
22793
22794 * config/s390/s390.c (s390_compare_emitted): Remove.
22795 (s390_emit_compare): Handle MODE_CC s390_compare_op0 like
22796 s390_compare_emitted used to be handled. Assert that modes match.
22797 (s390_emit_compare_and_swap): Use s390_emit_compare, do not
22798 refer to sync_compare_and_swap_ccsi.
22799 * config/s390/s390.h (s390_compare_emitted): Remove.
22800 * config/s390/s390.md (seq): Look for MODE_CC s390_compare_op0
22801 instead of s390_compare_emitted.
22802 (stack_protect_test, sync_compare_and_swap_cc): Set s390_compare_op0
22803 instead of s390_compare_emitted.
22804 * config/s390/s390.md (cmpcc): New.
22805 (sync_compare_and_swapqi, sync_compare_and_swaphi): Clobber
22806 CC_REGNUM, do not pretend it's set.
22807 (sync_compare_and_swap_cc*): Delete.
22808 * config/s390/predicates.md (cc_reg_operand): New.
22809
22810 * expr.c (sync_compare_and_swap_cc): Delete.
22811 * optabs.h (sync_compare_and_swap_cc): Delete.
22812 * optabs.c (prepare_cmp_insn): Ignore which specific CCmode
22813 is being used with can_compare_p.
22814 (emit_cmp_and_jump_insn_1): Likewise when looking in the optab.
22815 (find_cc_set): New.
22816 (expand_bool_compare_and_swap): Do not use sync_compare_and_swap_cc,
22817 look for a MODE_CC set instead. Use emit_store_flag.
22818 (expand_compare_and_swap_loop): Likewise, with some additional
22819 complication to avoid a force_reg when useless. Use
22820 emit_cmp_and_jump_insns.
22821 * genopinit.c (optabs): Delete sync_compare_and_swap_cc.
22822 * doc/md.texi (sync_compare_and_swap_cc): Merge with
22823 sync_compare_and_swap documentation.
22824
22825 2009-04-09 Jan Hubicka <jh@suse.cz>
22826
22827 * except.c (find_prev_try): Break out from ....
22828 (duplicate_eh_regions): ... here; properly update prev_try pointers
22829 when duplication part of tree.
22830 (dump_eh_tree): Improve dumping.
22831 (verify_eh_region): New.
22832 (verify_eh_tree): Use it.
22833
22834 2009-04-06 Richard Guenther <rguenther@suse.de>
22835
22836 * c-gimplify.c (c_gimplify_expr): Fix the invalid GENERIC
22837 &ARRAY addresses by adjusting their types and prepending
22838 a conversion.
22839 * tree-cfg.c (verify_gimple_assign_single): Verify that
22840 addresses are correct.
22841
22842 2009-04-09 Richard Guenther <rguenther@suse.de>
22843
22844 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Move non-constant
22845 indices into an array reference if possible.
22846 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
22847 Fold POINTER_PLUS_EXPR statements with invariant address.
22848
22849 2009-04-09 Alan Modra <amodra@bigpond.net.au>
22850
22851 PR target/39634
22852 * config.gcc (powerpc64-*-linux*): Always build biarch.
22853
22854 2009-04-09 Joseph Myers <joseph@codesourcery.com>
22855
22856 PR c/39613
22857 * c-typeck.c (do_case): If case label is not an INTEGER_CST, fold
22858 it and pedwarn if this results in an INTEGER_CST.
22859
22860 2009-04-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22861
22862 * doc/install.texi: Update minimum GMP version. Remove obsolete
22863 text in MPFR section.
22864
22865 2009-04-08 Jakub Jelinek <jakub@redhat.com>
22866
22867 * dwarf2out.c (class_scope_p): New static inline.
22868 (class_or_namespace_scope_p): Use it.
22869 (gen_variable_die): Use DW_TAG_member tag for static data member
22870 declarations instead of DW_TAG_variable.
22871
22872 PR middle-end/39573
22873 * omp-low.c (expand_omp_taskreg): Finalize taskreg static local_decls
22874 variables.
22875
22876 2009-04-08 Richard Guenther <rguenther@suse.de>
22877
22878 * tree-ssa-sccvn.c (valueize_refs): Do not continue to
22879 valueize random data.
22880
22881 2009-04-08 David Edelsohn <edelsohn@gnu.org>
22882
22883 * config.gcc (aix tm_file): Add aix-stdint.h.
22884 (aix tm clause use_gcc_stdint): Set to wrap.
22885 * config/rs6000/aix-stdint.h: New file.
22886
22887 2009-04-08 Richard Guenther <rguenther@suse.de>
22888
22889 PR middle-end/36291
22890 * tree-dfa.c (add_referenced_var): Do not recurse into
22891 global initializers.
22892 * tree-ssa-ccp.c (get_symbol_constant_value): Add newly
22893 exposed variables.
22894 (fold_const_aggregate_ref): Likewise.
22895
22896 2009-04-08 Paolo Bonzini <bonzini@gnu.org>
22897
22898 * recog.c (ordered_comparison_operator): New.
22899 * gensupport.c (std_preds): Add it.
22900 * doc/md.texi (Machine-Independent Predicates): Document it.
22901
22902 2009-04-08 Jan Hubicka <jh@suse.cz>
22903
22904 * tree-eh.c (cleanup_eh): When not optimizing, do not try EH merging.
22905 * function.h (rtl_eh): Remove exception_handler_label_map.
22906 * except.c (ehl_hash, ehl_eq, add_ehl_entry,
22907 remove_exception_handler_label, for_each_eh_label_1): Remove.
22908 (rtl_remove_unreachable_regions): Remove.
22909 (convert_from_eh_region_ranges): Do not remove unreachable regions.
22910 (find_exception_handler_labels): Don't build the hashtable.
22911 (maybe_remove_eh_handler): Remove.
22912 (for_each_eh_label): Rewrite to walk the tree.
22913 (rest_of_handle_eh): Do not cleanup cfg prior EH construction.
22914 * except.h (maybe_remove_eh_handler): Remove.
22915 * passes.c (init_optimization_passes): Schedule second EH cleanup
22916 before out-of-ssa.
22917 * cfgrtl.c (rtl_delete_block, rtl_merge_blocks,
22918 cfg_layout_merge_blocks): Do not call maybe_remove_eh_handler.
22919
22920 2009-04-08 Paolo Bonzini <bonzini@gnu.org>
22921
22922 * genoutput.c (validate_optab_operands): New.
22923 (gen_insn, gen_expand): Call it.
22924
22925 * genflags.c (gen_insn): Detect misused iterators.
22926 (main): Pass line_no to gen_insn, exit with status 1 on error.
22927
22928 * genextract.c (line_no): Make global.
22929 (VEC_safe_set_locstr): Change assertion to error message.
22930 (main): Exit with status 1 on error.
22931
22932 2009-04-08 Joseph Myers <joseph@codesourcery.com>
22933
22934 PR c/39614
22935 PR c/39673
22936 * c-common.h (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
22937 C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
22938 EXPR_INT_CONST_OPERANDS): Remove duplicate definitions.
22939 * c-convert.c (convert): Do not call fold on results of conversion
22940 functions when the result is a C_MAYBE_CONST_EXPR.
22941 * c-parser.c (c_parser_postfix_expression): Do not fold condition
22942 of __builtin_choose_expr.
22943 * c-typeck.c (remove_c_maybe_const_expr): New.
22944 (build_unary_op, build_conditional_expr, build_compound_expr,
22945 build_binary_op, c_objc_common_truthvalue_conversion): Call
22946 remove_c_maybe_const_expr on any input C_MAYBE_CONST_EXPR with
22947 integer operands.
22948
22949 2009-04-08 Bingfeng Mei <bmei@broadcom.com>
22950
22951 * fold-const.c (const_binop): Combine two VECTOR_CST under operation
22952 CODE to produce a new one. Add a prototype to use fold_convert_const
22953
22954 2009-04-08 Danny Smith <dannysmith@users.sourceforge.net>
22955
22956 PR bootstrap/39660
22957 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): Don't
22958 mix declarations and code.
22959
22960 2009-04-08 Ben Elliston <bje@au.ibm.com>
22961
22962 * gcc.c: Replace `CC' with `GCC' throughout.
22963
22964 2009-04-07 H.J. Lu <hongjiu.lu@intel.com>
22965
22966 * doc/invoke.texi: Document Atom support.
22967
22968 2009-04-07 Jason Merrill <jason@redhat.com>
22969
22970 PR c++/25185
22971 * c-common.h, c-common.c: Add flag_pretty_templates.
22972 * c-opts.c (c_common_handle_option): Set it.
22973 * c.opt: Add -fno-pretty-templates.
22974 * doc/invoke.texi (C++ Dialect Options): Likewise.
22975
22976 2009-04-07 Uros Bizjak <ubizjak@gmail.com>
22977
22978 * config/ia64/ia64.c (ia64_builtins): Add IA64_BUILTIN_HUGE_VALQ.
22979 (ia64_init_builtins): Handle IA64_BUILTIN_HUGE_VALQ.
22980 (ia64_expand_builtin): Likewise.
22981
22982 2009-04-07 Martin Jambor <mjambor@suse.cz>
22983
22984 * tree-ssa-alias.c (refs_may_alias_p_1): Check for
22985 is_gimple_min_invariant rather than CONSTANT_CLASS_P so that invariant
22986 ADDR_EXPRS are include too.
22987
22988 2009-04-07 Richard Guenther <rguenther@suse.de>
22989
22990 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Non-aliased
22991 decls are only used if passes as parameters or if they are
22992 local statics and the call is not to a builtin.
22993 (call_may_clobber_ref_p_1): Likewise.
22994
22995 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
22996
22997 * expr.c (do_store_flag): Remove last argument. Simplify code
22998 to avoid duplication of tests already done by can_compare_p.
22999 (expand_expr_real_1): Adjust caller.
23000
23001 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
23002
23003 * optabs.c (can_compare_p): Test the predicate of a
23004 cbranch and cstore pattern.
23005
23006 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
23007
23008 * expr.c (convert_move): Use emit_store_flag instead of
23009 "emulating" it.
23010
23011 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
23012
23013 * config/i386/i386.c (ix86_compare_emitted): Remove.
23014 (ix86_expand_compare, ix86_expand_branch): Handle MODE_CC
23015 ix86_compare_op0 like ix86_compare_emitted used to be handled.
23016 * config/i386/i386.h (ix86_compare_emitted): Remove.
23017 * config/i386/i386.md (stack_protect_test): Set ix86_compare_op0
23018 instead of ix86_compare_emitted.
23019 * config/i386/sync.md (sync_compare_and_swap_cc): Likewise.
23020
23021 2009-04-07 Andrew Stubbs <ams@codesourcery.com>
23022
23023 * config.gcc (sh-*-*): Add sysroot-suffix.h to tm_file.
23024 Add t-sysroot-suffix to tmake_file.
23025 * config/print-sysroot-suffix.sh: New file.
23026 * config/t-sysroot-suffix: New file.
23027
23028 2009-04-07 Ben Elliston <bje@au.ibm.com>
23029
23030 * libgcc2.c (INFINITY): Use __builtin_huge_val, not __builtin_inf,
23031 as the latter produces a warning when the target does not support
23032 infinity.
23033
23034 2009-04-07 Ben Elliston <bje@au.ibm.com>
23035
23036 * dfp.c: Replace type punning assignments with memcpy throughout.
23037 * Makefile.in (dfp.o-warn): Remove.
23038
23039 2009-04-07 Alan Modra <amodra@bigpond.net.au>
23040
23041 PR target/39634
23042 * config.gcc: Merge powerpc-*-linux* and powerpc64-*-linux*.
23043 Include soft-fp/t-softfp after rs6000/t-linux64.
23044
23045 2009-04-06 Eric Botcazou <ebotcazou@adacore.com>
23046
23047 * stor-layout.c (set_sizetype): Use the full precision of their
23048 machine mode for bitsize types.
23049
23050 2009-04-06 H.J. Lu <hongjiu.lu@intel.com>
23051
23052 * config/i386/i386.md: Revert 2 accidental checkins.
23053
23054 2009-04-06 Joey Ye <joey.ye@intel.com>
23055 Xuepeng Guo <xuepeng.guo@intel.com>
23056 H.J. Lu <hongjiu.lu@intel.com>
23057
23058 Atom pipeline model, tuning and insn selection.
23059 * config.gcc (atom): Add atom config options and target.
23060
23061 * config/i386/atom.md: New.
23062
23063 * config/i386/i386.c (atom_cost): New cost.
23064 (m_ATOM): New macro flag.
23065 (initial_ix86_tune_features): Set m_ATOM.
23066 (x86_accumulate_outgoing_args): Likewise.
23067 (x86_arch_always_fancy_math_387): Likewise.
23068 (processor_target): Add Atom cost.
23069 (cpu_names): Add Atom cpu name.
23070 (override_options): Set Atom ISA.
23071 (ix86_issue_rate): New case PROCESSOR_ATOM.
23072 (ix86_adjust_cost): Likewise.
23073
23074 * config/i386/i386.h (TARGET_ATOM): New target macro.
23075 (ix86_tune_indices): Add X86_TUNE_OPT_AGU.
23076 (TARGET_OPT_AGU): New target option.
23077 (target_cpu_default): Add TARGET_CPU_DEFAULT_atom.
23078 (processor_type): Add PROCESSOR_ATOM.
23079
23080 * config/i386/i386.md (cpu): Add new value "atom".
23081 (use_carry, movu): New attr.
23082 (atom.md): Include atom.md.
23083 (adddi3_carry_rex64): Set attr "use_carry".
23084 (addqi3_carry): Likewise.
23085 (addhi3_carry): Likewise.
23086 (addsi3_carry): Likewise.
23087 (*addsi3_carry_zext): Likewise.
23088 (subdi3_carry_rex64): Likewise.
23089 (subqi3_carry): Likewise.
23090 (subhi3_carry): Likewise.
23091 (subsi3_carry): Likewise.
23092 (x86_movdicc_0_m1_rex64): Likewise.
23093 (*x86_movdicc_0_m1_se): Likewise.
23094 (x86_movsicc_0_m1): Likewise.
23095 (*x86_movsicc_0_m1_se): Likewise.
23096 (*adddi_1_rex64): Emit add insn as much as possible.
23097 (*addsi_1): Likewise.
23098 (return_internal): Set atom_unit.
23099 (return_internal_long): Likewise.
23100 (return_pop_internal): Likewise.
23101 (*rcpsf2_sse): Set atom_sse_attr attr.
23102 (*qrt<mode>2_sse): Likewise.
23103 (*prefetch_sse): Likewise.
23104
23105 * config/i386/i386-c.c (ix86_target_macros_internal): New case
23106 PROCESSOR_ATOM.
23107 (ix86_target_macros_internal): Likewise.
23108
23109 * config/i386/sse.md (cpu): Set attr "atom_sse_attr".
23110 (*prefetch_sse_rex): Likewise.
23111 (sse_rcpv4sf2): Likewise.
23112 (sse_vmrcpv4sf2): Likewise.
23113 (sse_sqrtv4sf2): Likewise.
23114 (<sse>_vmsqrt<mode>2): Likewise.
23115 (sse_ldmxcsr): Likewise.
23116 (sse_stmxcsr): Likewise.
23117 (*sse_sfence): Likewise.
23118 (sse2_clflush): Likewise.
23119 (*sse2_mfence): Likewise.
23120 (*sse2_lfence): Likewise.
23121 (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Set attr "movu".
23122 (<sse>_movup<ssemodesuffixf2c>): Likewise.
23123 (avx_movdqu<avxmodesuffix>): Likewise.
23124 (avx_lddqu<avxmodesuffix>): Likewise.
23125 (sse2_movntv2di): Change attr "type" to "ssemov".
23126 (sse2_movntsi): Likewise.
23127 (rsqrtv8sf2): Change attr "type" to "sseadd".
23128 (sse3_addsubv2df3): Set attr "atom_unit".
23129 (sse3_h<plusminus_insn>v4sf3): Likewise.
23130 (*sse2_pmaddwd): Likewise.
23131 (*vec_extractv2di_1_rex64): Likewise.
23132 (*vec_extractv2di_1_avx): Likewise.
23133 (sse2_psadbw): Likewise.
23134 (ssse3_phaddwv8hi3): Likewise.
23135 (ssse3_phaddwv4hi3): Likewise.
23136 (ssse3_phadddv4si3): Likewise.
23137 (ssse3_phadddv2si3): Likewise.
23138 (ssse3_phaddswv8hi3): Likewise.
23139 (ssse3_phaddswv4hi3): Likewise.
23140 (ssse3_phsubwv8hi3): Likewise.
23141 (ssse3_phsubwv4hi3): Likewise.
23142 (ssse3_phsubdv4si3): Likewise.
23143 (ssse3_phsubdv2si3): Likewise.
23144 (ssse3_phsubswv8hi3): Likewise.
23145 (ssse3_phsubswv4hi3): Likewise.
23146 (ssse3_pmaddubsw128): Likewise.
23147 (sse3_pmaddubsw: Likewise.
23148 (ssse3_palignrti): Likewise.
23149 (ssse3_palignrdi): Likewise.
23150
23151 2009-04-06 Gerald Pfeifer <gerald@pfeifer.com>
23152
23153 * doc/install.texi (Specific): Fix two cross-references to MinGW.
23154
23155 2009-04-06 Richard Guenther <rguenther@suse.de>
23156
23157 PR tree-optimization/28868
23158 * tree-ssa-pre.c (inserted_phi_names): New bitmap to keep track
23159 of which PHI results we inserted.
23160 (insert_into_preds_of_block): Record inserted PHIs.
23161 (eliminate): Eliminate redundant PHI nodes.
23162 (init_pre): Init inserted_phi_names.
23163
23164 2009-04-06 Richard Guenther <rguenther@suse.de>
23165
23166 PR tree-optimization/39643
23167 * tree-ssa-ccp.c (ccp_fold): Fold REALPART_EXPRs and
23168 IMAGPART_EXPRs of complex constants.
23169 (execute_fold_all_builtins): If we folded a call queue
23170 TODO_update_address_taken.
23171
23172 2009-04-06 Jan Hubicka <jh@suse.cz>
23173
23174 PR middle-end/39659
23175 * except.c (remove_unreachable_regions): Propagate may_contain_throw
23176 flag.
23177
23178 2009-04-06 Andrew Stubbs <ams@codesourcery.com>
23179
23180 * config/sh/lib1funcs.asm (ic_invalidate): Move ICBI out of the
23181 delay slot.
23182 (ic_invalidate_array): Likewise.
23183
23184 2009-04-06 Hariharan Sandanagobalane <hariharan@picochip.com>
23185
23186 * calls.c (emit_library_call_value_1): Fix a problem with parameter
23187 alignment for library calls.
23188
23189 2009-04-06 Danny Smith <dannysmith@users.sourceforge.net>
23190
23191 * config.gcc (mingw32 tm_file): Add mingw-stdint.h.
23192 (mingw32 tm clause use_gcc_stdint): Set to wrap.
23193 * config/i386/mingw-stdint.h: New file.
23194
23195 2009-04-05 Richard Guenther <rguenther@suse.de>
23196
23197 PR tree-optimization/39648
23198 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Work around
23199 our &A vs. &A[0] IL deficiencies.
23200
23201 2009-04-04 Jan Hubicka <jh@suse.cz>
23202
23203 * except.c (sjlj_find_directly_reachable_regions): Be ready for
23204 removed toplevel regions.
23205 (sjlj_mark_call_sites): Likewise.
23206
23207 2009-04-04 Dave Korn <dave.korn.cygwin@gmail.com>
23208
23209 * config.gcc (cygwin tm_file): Add cygwin-stdint.h.
23210 (cygwin tm clause use_gcc_stdint): Set to wrap.
23211 * config/i386/cygwin-stdint.h: New file.
23212
23213 2009-04-04 Richard Guenther <rguenther@suse.de>
23214
23215 * Makefile.in (tree-ssa-copy.o): Add $(CFGLOOP_H) dependency.
23216 * tree-ssa-copy.c (init_copy_prop): Do not propagate through
23217 single-argument PHIs if we are in loop-closed SSA form.
23218 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Pass extra guards
23219 for the pre-condition.
23220 (slpeel_tree_peel_loop_to_edge): Likewise.
23221 (vect_build_loop_niters): Take an optional sequence to append stmts.
23222 (vect_generate_tmps_on_preheader): Likewise.
23223 (vect_do_peeling_for_loop_bound): Take extra guards for the
23224 pre-condition.
23225 (vect_do_peeling_for_alignment): Adjust. Unconditionally apply
23226 the cost model check.
23227 (vect_loop_versioning): Take stmt and stmt list to put pre-condition
23228 guards if we are going to peel. Do not apply versioning in that case.
23229 * tree-vectorizer.h (vect_loop_versioning): Adjust declaration.
23230 (vect_do_peeling_for_loop_bound): Likewise.
23231 * tree-vect-loop.c (vect_transform_loop): If we are peeling for
23232 loop bound only record extra pre-conditions, do not apply loop
23233 versioning.
23234
23235 2009-04-04 Richard Guenther <rguenther@suse.de>
23236
23237 * tree-ssa-operands.c (pop_stmt_changes): Remove automatic
23238 renaming code.
23239
23240 2009-04-04 Jan Hubicka <jh@suse.cz>
23241
23242 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
23243 last_basic_block for size of bb->index indexed array.
23244 * bt-load.c (compute_defs_uses_and_gen, compute_kill,
23245 compute_out, link_btr_uses, build_btr_def_use_webs,
23246 build_btr_def_use_webs, migrate_btr_defs): Likewise.
23247
23248 2009-04-04 Jan Hubicka <jh@suse.cz>
23249
23250 * except.c (remove_eh_handler_and_replace): Break out from ...
23251 (remove_eh_handler): ... here.
23252 (bring_to_root): New function.
23253 (remove_unreachable_regions): Collect MUST_NOT_THROW, unify runtime
23254 handled ones, bring others to root of tree.
23255
23256 2009-04-04 Jan Hubicka <jh@suse.cz>
23257
23258 * tree-eh.c (tree_empty_eh_handler_p): Pattern match more curefully.
23259 (all_phis_safe_to_merge): New function.
23260 (update_info): New structure.
23261 (make_eh_edge_and_update_phi, update_eh_edges): New functions.
23262 (cleanup_empty_eh): Update SSA if possible.
23263
23264 2009-04-04 Richard Guenther <rguenther@suse.de>
23265
23266 * tree-ssa.c (verify_ssa): With -O0 we do not need VOPs.
23267 * tree-ssa-operands.c (append_vdef): Do not append VOPs at -O0.
23268 (append_vuse): Likewise.
23269
23270 2009-04-04 Jakub Jelinek <jakub@redhat.com>
23271
23272 * unwind-dw2.h (_Unwind_FrameState): Add REG_UNDEFINED enum value.
23273 * unwind-dw2.c (execute_cfa_program): Set how to REG_UNDEFINED
23274 instead of REG_UNSAVED for DW_CFA_undefined.
23275 (uw_update_context_1): Handle REG_UNDEFINED the same as REG_UNSAVED.
23276 (uw_update_context): If RA column is REG_UNDEFINED, mark it as
23277 outermost frame.
23278
23279 2009-04-04 Richard Earnshaw <rearnsha@arm.com>
23280
23281 PR target/39501
23282 * arm.md (movsfcc): Disable if not TARGET_HARD_FLOAT.
23283
23284 2009-04-04 Richard Guenther <rguenther@suse.de>
23285
23286 PR tree-optimization/8781
23287 PR tree-optimization/37892
23288 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Declare.
23289 * tree-ssa-sccvn.c (vn_reference_fold_indirect): New function.
23290 (valueize_refs): Call it for *& valueizations.
23291 (shared_reference_ops_from_ref): Rename to ...
23292 (valueize_shared_reference_ops_from_ref): ... this and valueize.
23293 (shared_reference_ops_from_call): Rename to ...
23294 (valueize_shared_reference_ops_from_call): ... this and valueize.
23295 (vn_reference_lookup): Update.
23296 (visit_reference_op_call): Likewise.
23297 * tree-ssa-pre.c (phi_translate_1): Fold *&.
23298 (eliminate): Value-replace the call address in call statements.
23299
23300 2009-04-04 Richard Guenther <rguenther@suse.de>
23301
23302 PR tree-optimization/39636
23303 * tree-ssa-forwprop.c
23304 (forward_propagate_addr_into_variable_array_index): Check for
23305 GIMPLE_ASSIGN before accessing the rhs code.
23306
23307 2009-04-03 Jason Merrill <jason@redhat.com>
23308
23309 * stor-layout.c (set_sizetype): Set TYPE_CANONICAL.
23310
23311 2009-04-03 Steve Ellcey <sje@cup.hp.com>
23312
23313 * config/ia64/ia64.md (extendsfdf2, extendsfxf2, extenddfxf2,
23314 truncdfsf2, truncxfsf2, truncxfdf2, floatdixf2, fix_truncsfdi2,
23315 fix_truncdfdi2, fix_truncxfdi2, fix_truncxfdi2_alts, floatunsdisf2,
23316 floatunsdidf2, floatunsdixf2, fixuns_truncsfdi2, fixuns_truncdfdi2,
23317 fixuns_truncxfdi2, fixuns_truncxfdi2_alts, divsi3_internal,
23318 smuldi3_highpart, umuldi3_highpart, ctzdi2, *getf_exp_xf,
23319 divdi3_internal_lat, divdi3_internal_thr, mulditi3, *mulditi3_internal,
23320 umulditi3, *umulditi3_internal, addsf3, mulsf3, abssf2, negsf2,
23321 *nabssf2, sminsf3, smaxsf3, *maddsf4, *msubsf4, *nmulsf3, *nmaddsf4,
23322 *nmaddsf4_alts, divsf3, *sqrt_approx, sqrtsf2, sqrtsf2_internal_thr,
23323 adddf3, *adddf3_trunc, muldf3, *muldf3_trunc, absdf2, negdf2, *nabsdf2,
23324 smindf3, smaxdf3, *madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc,
23325 *nmuldf3, *nmuldf3_trunc, *nmadddf4, *nmadddf4_alts, *nmadddf4_truncsf,
23326 *nmadddf4_truncsf_alts, divdf3, sqrtdf2, sqrtdf2_internal_thr, divxf3,
23327 sqrtxf2, sqrtxf2_internal_thr, *recip_approx):
23328 Use fr_reg_or_fp01_operand instead of fr_register_operand
23329
23330 * config/ia64/div.md (extend<mode>rf2, truncrf<mode>2,
23331 recip_approx_rf, divsf3_internal_thr, divsf3_internal_lat,
23332 divdf3_internal_thr, divdf3_internal_lat divxf3_internal): Ditto.
23333
23334 2009-04-03 Vladimir Makarov <vmakarov@redhat.com>
23335
23336 PR rtl-optimization/39607
23337 PR rtl-optimization/39631
23338
23339 Revert:
23340
23341 2009-03-30 Vladimir Makarov <vmakarov@redhat.com>
23342 * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
23343 instead of DF_LR_OUT.
23344 * ira-lives.c (process_bb_node_lives): Ditto.
23345 * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
23346 instead of DF_LR_{OUT,IN}.
23347 * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
23348 * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
23349
23350 2009-04-03 Steven Bosscher <steven@gcc.gnu.org>
23351
23352 * omp-low.c (pass_expand_omp): Don't claim to provide PROP_gimple_lomp.
23353 (execute_lower_omp): Always run but take the short way out if -fopenmp
23354 is not given.
23355 (gate_lower_omp): Remove, forcing the pass manager to always run the
23356 pass and always set PROP_gimple_lomp.
23357 (pass_lower_omp): Remove gate function.
23358 * matrix-reorg.c (pass_ipa_matrix_reorg): Don't claim to provide
23359 PROP_trees. Instead, require it.
23360 * ipa-cp.c (pass_ipa_cp): Likewise.
23361 * ipa-inline.c (pass_early_inline): Don't claim to provide PROP_cfg.
23362 (pass_ipa_early_inline, pass_inline_parameters, pass_ipa_inline): Idem.
23363 * tree-profile.c (pass_tree_profile): Don't claim to provide PROP_cfg
23364 and PROP_gimple_leh.
23365
23366 2009-04-03 Richard Guenther <rguenther@suse.de>
23367
23368 PR middle-end/13146
23369 PR tree-optimization/23940
23370 PR tree-optimization/33237
23371 PR middle-end/33974
23372 PR middle-end/34093
23373 PR tree-optimization/36201
23374 PR tree-optimization/36230
23375 PR tree-optimization/38049
23376 PR tree-optimization/38207
23377 PR tree-optimization/38230
23378 PR tree-optimization/38301
23379 PR tree-optimization/38585
23380 PR middle-end/38895
23381 PR tree-optimization/38985
23382 PR tree-optimization/39299
23383 * tree-ssa-structalias.h: Remove.
23384 * tree-ssa-operands.h (NULL_USE_OPERAND_P): Make of type use_operand_p.
23385 (NULL_DEF_OPERAND_P): Make of type def_operand_p.
23386 (struct vuse_element_d): Remove.
23387 (struct vuse_vec_d): Likewise.
23388 (VUSE_VECT_NUM_ELEM, VUSE_VECT_ELEMENT_NC, VUSE_ELEMENT_PTR_NC,
23389 VUSE_ELEMENT_VAR_NC, VUSE_VECT_ELEMENT, VUSE_ELEMENT_PTR,
23390 SET_VUSE_VECT_ELEMENT, SET_VUSE_ELEMENT_VAR, SET_VUSE_ELEMENT_PTR,
23391 VUSE_ELEMENT_VAR): Likewise.
23392 (struct voptype_d): Likewise.
23393 (NUM_VOP_FREE_BUCKETS): Likewise.
23394 (struct ssa_operands): Remove vop_free_buckets and mpt_table fields.
23395 (struct stmt_operands_d): Remove.
23396 (VUSE_OP_PTR, VUSE_OP, SET_VUSE_OP, VUSE_NUM, VUSE_VECT,
23397 VDEF_RESULT_PTR, VDEF_RESULT, VDEF_OP_PTR, VDEF_OP, SET_VDEF_OP,
23398 VDEF_NUM, VDEF_VECT): Likewise.
23399 (copy_virtual_operands): Remove.
23400 (operand_build_cmp): Likewise.
23401 (create_ssa_artificial_load_stmt): Likewise.
23402 (enum ssa_op_iter_type): Remove ssa_op_iter_vdef.
23403 (struct ssa_operand_iterator_d): Remove vuses, vdefs, mayusesm
23404 vuse_index and mayuse_index members. Pack and move done and iter_type
23405 members to the front.
23406 (SSA_OP_VMAYUSE): Remove.
23407 (SSA_OP_VIRTUAL_USES): Adjust.
23408 (FOR_EACH_SSA_VDEF_OPERAND): Remove.
23409 (unlink_stmt_vdef): Declare.
23410 (add_to_addressable_set): Remove.
23411 * tree-vrp.c (stmt_interesting_for_vrp): Adjust.
23412 (vrp_visit_stmt): Likewise.
23413 * doc/tree-ssa.texi (Alias analysis): Update.
23414 * doc/invoke.texi (max-aliased-vops): Remove docs.
23415 (avg-aliased-vops): Likewise.
23416 * tree-into-ssa.c (syms_to_rename): Remove.
23417 (need_to_update_vops_p): Likewise.
23418 (need_to_initialize_update_ssa_p): Rename to ...
23419 (update_ssa_initialized_fn): ... this. Track function we are
23420 initialized for.
23421 (symbol_marked_for_renaming): Simplify.
23422 (add_new_name_mapping): Do not set need_to_update_vops_p.
23423 (dump_currdefs): Use SYMS_TO_RENAME.
23424 (rewrite_update_stmt): Always walk all uses/defs.
23425 (dump_update_ssa): Adjust.
23426 (init_update_ssa): Take function argument. Track what we are
23427 initialized for.
23428 (delete_update_ssa): Reset SYMS_TO_RENAME and update_ssa_initialized_fn.
23429 (create_new_def_for): Initialize for cfun, assert we are initialized
23430 for cfun.
23431 (mark_sym_for_renaming): Simplify.
23432 (mark_set_for_renaming): Do not initialize update-ssa.
23433 (need_ssa_update_p): Simplify. Take function argument.
23434 (name_mappings_registered_p): Assert we ask for the correct function.
23435 (name_registered_for_update_p): Likewise.
23436 (ssa_names_to_replace): Likewise.
23437 (release_ssa_name_after_update_ssa): Likewise.
23438 (update_ssa): Likewise. Use SYMS_TO_RENAME.
23439 (dump_decl_set): Do not print a newline.
23440 (debug_decl_set): Do it here.
23441 (dump_update_ssa): And here.
23442 * tree-ssa-loop-im.c (move_computations): Adjust.
23443 (movement_possibility): Likewise.
23444 (determine_max_movement): Likewise.
23445 (gather_mem_refs_stmt): Likewise.
23446 * tree-dump.c (dequeue_and_dump): Do not handle SYMBOL_MEMORY_TAG
23447 or NAME_MEMORY_TAG.
23448 * tree-complex.c (update_all_vops): Remove.
23449 (expand_complex_move): Adjust.
23450 * tree-ssa-loop-niter.c (chain_of_csts_start): Use NULL_TREE.
23451 Simplify test for memory referencing statement. Exclude
23452 non-invariant ADDR_EXPRs.
23453 * tree-pretty-print.c (dump_generic_node): Do not handle memory tags.
23454 * tree-loop-distribution.c (generate_memset_zero): Adjust.
23455 (rdg_flag_uses): Likewise.
23456 * tree-tailcall.c (suitable_for_tail_opt_p): Remove memory-tag
23457 related code.
23458 (tree_optimize_tail_calls_1): Also split the
23459 edge from the entry block if we have degenerate PHI nodes in
23460 the first basic block.
23461 * tree.c (init_ttree): Remove memory-tag related code.
23462 (tree_code_size): Likewise.
23463 (tree_node_structure): Likewise.
23464 (build7_stat): Re-write to be build6_stat.
23465 * tree.h (MTAG_P, TREE_MEMORY_TAG_CHECK, TMR_TAG): Remove.
23466 (SSA_VAR_P): Adjust.
23467 (struct tree_memory_tag): Remove.
23468 (struct tree_memory_partition_tag): Likewise.
23469 (union tree_node): Adjust.
23470 (build7): Re-write to be build6.
23471 * tree-pass.h (pass_reset_cc_flags): Remove.
23472 (TODO_update_address_taken): New flag.
23473 (pass_simple_dse): Remove.
23474 * ipa-cp.c (ipcp_update_callgraph): Update SSA form.
23475 * params.h (MAX_ALIASED_VOPS): Remove.
23476 (AVG_ALIASED_VOPS): Likewise.
23477 * omp-low.c (expand_omp_taskreg): Update SSA form.
23478 * tree-ssa-dse.c (dse_optimize_stmt): Properly query if the rhs
23479 aliases the lhs in a copy stmt.
23480 * tree-ssa-dse.c (struct address_walk_data): Remove.
23481 (memory_ssa_name_same): Likewise.
23482 (memory_address_same): Likewise.
23483 (get_kill_of_stmt_lhs): Likewise.
23484 (dse_possible_dead_store_p): Simplify, use the oracle. Handle
23485 unused stores. Look through PHI nodes into post-dominated regions.
23486 (dse_optimize_stmt): Simplify. Properly remove stores.
23487 (tree_ssa_dse): Compute dominators.
23488 (execute_simple_dse): Remove.
23489 (pass_simple_dse): Likewise.
23490 * ipa-reference.c (scan_stmt_for_static_refs): Open-code
23491 gimple_loaded_syms and gimple_stored_syms computation.
23492 * toplev.c (dump_memory_report): Dump alias and pta stats.
23493 * tree-ssa-sccvn.c (vn_reference_compute_hash): Simplify.
23494 (vn_reference_eq): Likewise.
23495 (vuses_to_vec, copy_vuses_from_stmt, vdefs_to_vec,
23496 copy_vdefs_from_stmt, shared_lookup_vops, shared_vuses_from_stmt,
23497 valueize_vuses): Remove.
23498 (get_def_ref_stmt_vuses): Simplify. Rename to ...
23499 (get_def_ref_stmt_vuse): ... this.
23500 (vn_reference_lookup_2): New function.
23501 (vn_reference_lookup_pieces): Use walk_non_aliased_vuses for
23502 walking equivalent vuses. Simplify.
23503 (vn_reference_lookup): Likewise.
23504 (vn_reference_insert): Likewise.
23505 (vn_reference_insert_pieces): Likewise.
23506 (visit_reference_op_call): Simplify.
23507 (visit_reference_op_load): Likewise.
23508 (visit_reference_op_store): Likewise.
23509 (init_scc_vn): Remove shared_lookup_vuses initialization.
23510 (free_scc_vn): Remove shared_lookup_vuses freeing.
23511 (sort_vuses, sort_vuses_heap): Remove.
23512 (get_ref_from_reference_ops): Export.
23513 * tree-ssa-sccvn.h (struct vn_reference_s): Replace vuses
23514 vector with single vuse pointer.
23515 (vn_reference_lookup_pieces, vn_reference_lookup,
23516 vn_reference_insert, vn_reference_insert_pieces): Adjust prototypes.
23517 (shared_vuses_from_stmt): Remove.
23518 (get_ref_from_reference_ops): Declare.
23519 * tree-ssa-loop-manip.c (slpeel_can_duplicate_loop_p): Adjust.
23520 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
23521 memory-tag related code.
23522 * tree-ssa-ccp.c (get_symbol_constant_value): Remove memory-tag code.
23523 (likely_value): Add comment, skip static-chain of call statements.
23524 (surely_varying_stmt_p): Adjust.
23525 (gimplify_and_update_call_from_tree): Likewise.
23526 (execute_fold_all_builtins): Do not rebuild alias info.
23527 (gimplify_and_update_call_from_tree): Properly update VOPs.
23528 * tree-ssa-loop-ivopts.c (get_ref_tag): Remove.
23529 (copy_ref_info): Remove memory-tag related code.
23530 * tree-call-cdce.c (tree_call_cdce): Rename the VOP.
23531 * ipa-pure-const.c (check_decl): Remove memory-tag related code.
23532 (check_stmt): Open-code gimple_loaded_syms and gimple_stored_syms
23533 computation.
23534 * tree-ssa-dom.c (gimple_p): Remove typedef.
23535 (eliminate_redundant_computations): Adjust.
23536 (record_equivalences_from_stmt): Likewise.
23537 (avail_expr_hash): Likewise.
23538 (avail_expr_eq): Likewise.
23539 * tree-ssa-propagate.c (update_call_from_tree): Properly update VOPs.
23540 (stmt_makes_single_load): Likewise.
23541 (stmt_makes_single_store): Likewise.
23542 * tree-ssa-alias.c: Rewrite completely.
23543 (debug_memory_partitions, dump_mem_ref_stats, debug_mem_ref_stats,
23544 debug_mem_sym_stats, dump_mem_sym_stats_for_var,
23545 debug_all_mem_sym_stats, debug_mp_info, update_mem_sym_stats_from_stmt,
23546 delete_mem_ref_stats, create_tag_raw, dump_points_to_info,
23547 dump_may_aliases_for, debug_may_aliases_for, new_type_alias):
23548 Remove public functions.
23549 (pass_reset_cc_flags): Remove.
23550 (pass_build_alias): Move ...
23551 * tree-ssa-structalias.c (pass_build_alias): ... here.
23552 * tree-ssa-alias.c (may_be_aliased): Move ...
23553 * tree-flow-inline.h (may_be_aliased): ... here.
23554 tree-ssa-alias.c (struct count_ptr_d, count_ptr_derefs,
23555 count_uses_and_derefs): Move ...
23556 * gimple.c: ... here.
23557 * gimple.h (count_uses_and_derefs): Declare.
23558 * tree-ssa-alias.c (dump_alias_stats, ptr_deref_may_alias_global_p,
23559 ptr_deref_may_alias_decl_p, ptr_derefs_may_alias_p,
23560 same_type_for_tbaa, nonaliasing_component_refs_p, decl_refs_may_alias_p,
23561 indirect_ref_may_alias_decl_p, indirect_refs_may_alias_p,
23562 ref_maybe_used_by_call_p, ref_maybe_used_by_stmt_p,
23563 call_may_clobber_ref_p, stmt_may_clobber_ref_p, maybe_skip_until,
23564 get_continuation_for_phi, walk_non_aliased_vuses, walk_aliased_vdefs):
23565 New functions.
23566 * tree-dfa.c (refs_may_alias_p): Move ...
23567 * tree-ssa-alias.c (refs_may_alias_p): ... here. Extend.
23568 * tree-ssa-alias.h: New file.
23569 * tree-ssa-sink.c (is_hidden_global_store): Adjust.
23570 (statement_sink_location): Likewise.
23571 * opts.c (decode_options): Do not adjust max-aliased-vops or
23572 avg-aliased-vops values.
23573 * timevar.def (TV_TREE_MAY_ALIAS): Remove.
23574 (TV_CALL_CLOBBER): Likewise.
23575 (TV_FLOW_SENSITIVE): Likewise.
23576 (TV_FLOW_INSENSITIVE): Likewise.
23577 (TV_MEMORY_PARTITIONING): Likewise.
23578 (TV_ALIAS_STMT_WALK): New timevar.
23579 * tree-ssa-loop-ivcanon.c (empty_loop_p): Adjust.
23580 * tree-ssa-address.c (create_mem_ref_raw): Use build6.
23581 (get_address_description): Remove memory-tag related code.
23582 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Adjust.
23583 * treestruct.def (TS_MEMORY_TAG, TS_MEMORY_PARTITION_TAG): Remove.
23584 * tree-eh.c (cleanup_empty_eh): Do not leave stale SSA_NAMEs
23585 and immediate uses in statements. Document.
23586 * gimple-pretty-print.c (dump_gimple_mem_ops): Adjust.
23587 (dump_symbols): Remove.
23588 (dump_gimple_mem_ops): Do not dump loaded or stored syms.
23589 * alias.c (get_deref_alias_set): New function split out from ...
23590 (get_alias_set): ... here.
23591 * alias.h (get_deref_alias_set): Declare.
23592 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove unused
23593 type parameter. Remove restrict pointer handling. Create a
23594 ref-all pointer in case type-based alias sets do not conflict.
23595 (vect_analyze_data_refs): Remove SMT related code.
23596 * tree-vect-stmts.c (vectorizable_store): Re-instantiate TBAA assert.
23597 (vectorizable_load): Likewise.
23598 * tree-data-ref.h (struct dr_alias): Remove symbol_tag field.
23599 (DR_SYMBOL_TAG, DR_VOPS): Remove.
23600 * tree-data-ref.c (dr_may_alias_p): Use the alias-oracle.
23601 Ignore vops and SMTs.
23602 (dr_analyze_alias): Likewise..
23603 (free_data_ref): Likewise.
23604 (create_data_ref): Likewise.
23605 (analyze_all_data_dependences): Likewise.
23606 (get_references_in_stmt): Adjust.
23607 * tree-flow-inline.h (gimple_aliases_computed_p,
23608 gimple_addressable_vars, gimple_call_clobbered_vars,
23609 gimple_call_used_vars, gimple_global_var, may_aliases, memory_partition,
23610 factoring_name_p, mark_call_clobbered, clear_call_clobbered,
23611 compare_ssa_operands_equal, symbol_mem_tag, set_symbol_mem_tag,
23612 gimple_mem_ref_stats): Remove.
23613 (gimple_vop): New function.
23614 (op_iter_next_use): Remove vuses and mayuses cases.
23615 (op_iter_next_def): Remove vdefs case.
23616 (op_iter_next_tree): Remove vuses, mayuses and vdefs cases.
23617 (clear_and_done_ssa_iter): Do not set removed fields.
23618 (op_iter_init): Likewise. Skip vuse and/or vdef if requested.
23619 Assert we are not iterating over vuses or vdefs if not also
23620 iterating over uses or defs.
23621 (op_iter_init_use): Likewise.
23622 (op_iter_init_def): Likewise.
23623 (op_iter_next_vdef): Remove.
23624 (op_iter_next_mustdef): Likewise.
23625 (op_iter_init_vdef): Likewise.
23626 (compare_ssa_operands_equal): Likewise.
23627 (link_use_stmts_after): Handle vuse operand.
23628 (is_call_used): Use is_call_clobbered.
23629 (is_call_clobbered): Global variables are always call clobbered,
23630 query the call-clobbers bitmap.
23631 (mark_call_clobbered): Ignore global variables.
23632 (clear_call_clobbered): Likewise.
23633 * tree-ssa-coalesce.c (create_outofssa_var_map): Adjust
23634 virtual operands sanity check.
23635 * tree.def (NAME_MEMORY_TAG, SYMBOL_MEMORY_TAG, MEMORY_PARTITION_TAG):
23636 Remove.
23637 (TARGET_MEM_REF): Remove TMR_TAG operand.
23638 * tree-dfa.c (add_referenced_var): Initialize call-clobber state.
23639 Remove call-clobber related code.
23640 (remove_referenced_var): Likewise. Do not clear mpt or symbol_mem_tag.
23641 (dump_variable): Do not dump SMTs, memory stats, may-aliases or
23642 partitions or escape reason.
23643 (get_single_def_stmt, get_single_def_stmt_from_phi,
23644 get_single_def_stmt_with_phi): Remove.
23645 (dump_referenced_vars): Tidy.
23646 (get_ref_base_and_extent): Allow bare decls.
23647 (collect_dfa_stats): Adjust.
23648 * graphite.c (rename_variables_in_stmt): Adjust.
23649 (graphite_copy_stmts_from_block): Likewise.
23650 (translate_clast): Likewise.
23651 * tree-ssa-pre.c (struct bb_bitmap_sets): Add expr_dies bitmap.
23652 (EXPR_DIES): New.
23653 (translate_vuse_through_block): Use the oracle.
23654 (phi_translate_1): Adjust.
23655 (value_dies_in_block_x): Use the oracle. Cache the outcome
23656 in EXPR_DIES.
23657 (valid_in_sets): Check if the VUSE for
23658 a REFERENCE is available.
23659 (eliminate): Do not remove stmts during elimination,
23660 instead queue and remove them afterwards.
23661 (do_pre): Do not rebuild alias info.
23662 (pass_pre): Run TODO_rebuild_alias before PRE.
23663 * tree-ssa-live.c (remove_unused_locals): Remove memory-tag code.
23664 * tree-sra.c (sra_walk_function): Use gimple_references_memory_p.
23665 (mark_all_v_defs_stmt): Remove.
23666 (mark_all_v_defs_seq): Adjust.
23667 (sra_replace): Likewise.
23668 (scalarize_use): Likewise.
23669 (scalarize_copy): Likewise.
23670 (scalarize_init): Likewise.
23671 (scalarize_ldst): Likewise.
23672 (todoflags): Remove.
23673 (tree_sra): Do not rebuild alias info.
23674 (tree_sra_early): Adjust.
23675 (pass_sra): Run TODO_update_address_taken before SRA.
23676 * tree-predcom.c (set_alias_info): Remove.
23677 (prepare_initializers_chain): Do not call it.
23678 (mark_virtual_ops_for_renaming): Adjust.
23679 (mark_virtual_ops_for_renaming_list): Remove.
23680 (initialize_root_vars): Adjust.
23681 (initialize_root_vars_lm): Likewise.
23682 (prepare_initializers_chain): Likewise.
23683 * tree-ssa-copy.c (may_propagate_copy): Remove memory-tag related code.
23684 (may_propagate_copy_into_stmt): Likewise.
23685 (merge_alias_info): Do nothing for now.
23686 (propagate_tree_value_into_stmt): Adjust.
23687 (stmt_may_generate_copy): Likewise.
23688 * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr): Do
23689 not mark symbols for renaming.
23690 (forward_propagate_addr_expr): Match up push/pop_stmt_changes
23691 with the same statement, make sure to update the new pointed-to one.
23692 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not copy
23693 call statements, do not mark symbols for renaming.
23694 (mark_operand_necessary): Dump something.
23695 (ref_may_be_aliased): New function.
23696 (mark_aliased_reaching_defs_necessary_1): New helper function.
23697 (mark_aliased_reaching_defs_necessary): Likewise.
23698 (mark_all_reaching_defs_necessary_1): Likewise.
23699 (mark_all_reaching_defs_necessary): Likewise.
23700 (propagate_necessity): Do not process virtual PHIs. For
23701 non-aliased loads mark all reaching definitions as necessary.
23702 For aliased loads and stores mark the immediate dominating
23703 aliased clobbers as necessary.
23704 (visited): New global static.
23705 (perform_tree_ssa_dce): Free visited bitmap after propagating
23706 necessity.
23707 (remove_dead_phis): Perform simple dead virtual PHI removal.
23708 (remove_dead_stmt): Properly unlink virtual operands when
23709 removing stores.
23710 (eliminate_unnecessary_stmts): Schedule PHI removal after
23711 stmt removal.
23712 * tree-ssa-ter.c (is_replaceable_p): Adjust.
23713 (process_replaceable): Likewise.
23714 (find_replaceable_in_bb): Likewise.
23715 * tree-ssa.c (verify_ssa_name): Verify all VOPs are
23716 based on the single gimple vop.
23717 (verify_flow_insensitive_alias_info): Remove.
23718 (verify_flow_sensitive_alias_info): Likewise.
23719 (verify_call_clobbering): Likewise.
23720 (verify_memory_partitions): Likewise.
23721 (verify_alias_info): Likewise.
23722 (verify_ssa): Adjust..
23723 (execute_update_addresses_taken): Export. Update SSA
23724 manually. Optimize only when optimizing. Use a local bitmap.
23725 (pass_update_address_taken): Remove TODO_update_ssa, add
23726 TODO_dump_func.
23727 (pass_update_address_taken): Just use TODO_update_address_taken.
23728 (init_tree_ssa): Do not initialize addressable_vars.
23729 (verify_ssa): Verify new VUSE / VDEF properties.
23730 Verify that all stmts definitions have the stmt as SSA_NAME_DEF_STMT.
23731 Do not call verify_alias_info.
23732 (delete_tree_ssa): Clear the VUSE, VDEF operands.
23733 Do not free the loaded and stored syms bitmaps. Reset the escaped
23734 and callused solutions. Do not free addressable_vars.
23735 Remove memory-tag related code.
23736 (warn_uninitialized_var): Aliases are always available.
23737 * tree-ssa-loop-prefetch.c (gather_memory_references): Adjust.
23738 * lambda-code.c (can_put_in_inner_loop): Adjust.
23739 (can_put_after_inner_loop): Likewise.
23740 (perfect_nestify): Likewise.
23741 * tree-vect-stmts.c (vect_stmt_relevant_p): Adjust.
23742 (vect_gen_widened_results_half): Remove CALL_EXPR handling.
23743 (vectorizable_conversion): Do not mark symbols for renaming.
23744 * tree-inline.c (remap_gimple_stmt): Clear VUSE/VDEF.
23745 (expand_call_inline): Unlink the calls virtual operands before
23746 replacing it.
23747 (tree_function_versioning): Do not call update_ssa if we are not
23748 updating clones. Simplify.
23749 * tree-ssa-phiprop.c (phivn_valid_p): Adjust.
23750 (propagate_with_phi): Likewise..
23751 * tree-outof-ssa.c (create_temp): Remove memory tag and call
23752 clobber code. Assert we are not aliased or global.
23753 * tree-flow.h: Include tree-ssa-alias.h
23754 (enum escape_type): Remove.
23755 (struct mem_sym_stats_d): Likewise.
23756 (struct mem_ref_stats_d): Likewise.
23757 (struct gimple_df): Add vop member. Remove global_var,
23758 call_clobbered_vars, call_used_vars, addressable_vars,
23759 aliases_compted_p and mem_ref_stats members. Add syms_to_rename,
23760 escaped and callused members.
23761 (struct ptr_info_def): Remove all members, add points-to solution
23762 member pt.
23763 (struct var_ann_d): Remove in_vuse_list, in_vdef_list,
23764 call_clobbered, escape_mask, mpt and symbol_mem_tag members.
23765 * Makefile.in (TREE_FLOW_H): Add tree-ssa-alias.h.
23766 (tree-ssa-structalias.o): Remove tree-ssa-structalias.h.
23767 (tree-ssa-alias.o): Likewise.
23768 (toplev.o): Add tree-ssa-alias.h
23769 (GTFILES): Remove tree-ssa-structalias.h, add tree-ssa-alias.h.
23770 * gimple.c (gimple_set_bb): Fix off-by-one error.
23771 (is_gimple_reg): Do not handle memory tags.
23772 (gimple_copy): Also copy virtual operands.
23773 Delay updating the statement. Do not reset loaded and stored syms.
23774 (gimple_set_stored_syms): Remove.
23775 (gimple_set_loaded_syms): Likewise.
23776 (gimple_call_copy_skip_args): Copy the virtual operands
23777 and mark the new statement modified.
23778 * tree-ssa-structalias.c (may_alias_p): Remove.
23779 (set_uids_in_ptset): Take the alias set to prune with as
23780 parameter. Fold in the alias test of may_alias_p.
23781 (compute_points_to_sets): Compute whether a ptr is dereferenced
23782 in a local sbitmap.
23783 (process_constraint): Deal with &ANYTHING on the lhs, reject all
23784 other ADDRESSOF constraints on the lhs.
23785 (get_constraint_for_component_ref): Assert that we don't get
23786 ADDRESSOF constraints from the base of the reference.
23787 Properly generate UNKNOWN_OFFSET for DEREF if needed.
23788 (struct variable_info): Remove collapsed_to member.
23789 (get_varinfo_fc): Remove.
23790 (new_var_info): Do not set collapsed_to.
23791 (dump_constraint): Do not follow cycles.
23792 (dump_constraint_graph): Likewise.
23793 (build_pred_graph): Likewise.
23794 (build_succ_graph): Likewise.
23795 (rewrite_constraints): Likewise.
23796 (do_simple_structure_copy): Remove.
23797 (do_rhs_deref_structure_copy): Remove.
23798 (do_lhs_deref_structure_copy): Remove.
23799 (collapse_rest_of_var): Remove.
23800 (do_structure_copy): Re-implement.
23801 (pta_stats): New global variable.
23802 (dump_pta_stats): New function.
23803 (struct constraint_expr): Make offset signed.
23804 (UNKNOWN_OFFSET): Define special value.
23805 (dump_constraint): Dump UNKNOWN_OFFSET as UNKNOWN.
23806 (solution_set_expand): New helper function split out from ...
23807 (do_sd_constraint): ... here.
23808 (solution_set_add): Handle UNKNOWN_OFFSET. Handle negative offsets.
23809 (do_ds_constraint): Likewise.
23810 (do_sd_constraint): Likewise. Do not special-case ESCAPED = *ESCAPED
23811 and CALLUSED = *CALLUSED.
23812 (set_union_with_increment): Make inc argument signed.
23813 (type_safe): Remove.
23814 (get_constraint_for_ptr_offset): Handle unknown and negative
23815 constant offsets.
23816 (first_vi_for_offset): Handle offsets before start. Bail
23817 out early for offsets beyond the variable extent.
23818 (first_or_preceding_vi_for_offset): New function.
23819 (init_base_vars): Add ESCAPED = ESCAPED + UNKNOWN_OFFSET constraint.
23820 Together with ESCAPED = *ESCAPED this properly computes reachability.
23821 (find_what_var_points_to): New function.
23822 (find_what_p_points_to): Implement in terms of find_what_var_points_to.
23823 (pt_solution_reset, pt_solution_empty_p, pt_solution_includes_global,
23824 pt_solution_includes_1, pt_solution_includes, pt_solutions_intersect_1,
23825 pt_solutions_intersect): New functions.
23826 (compute_call_used_vars): Remove.
23827 (compute_may_aliases): New main entry into PTA computation.
23828 * gimple.h (gimple_p): New typedef.
23829 (struct gimple_statement_base): Remove references_memory_p.
23830 (struct gimple_statement_with_memory_ops_base): Remove
23831 vdef_ops, vuse_ops, stores and loads members. Add vdef and vuse
23832 members.
23833 (gimple_vuse_ops, gimple_set_vuse_ops, gimple_vdef_ops,
23834 gimple_set_vdef_ops, gimple_loaded_syms, gimple_stored_syms,
23835 gimple_set_references_memory): Remove.
23836 (gimple_vuse_op, gimple_vdef_op, gimple_vuse, gimple_vdef,
23837 gimple_vuse_ptr, gimple_vdef_ptri, gimple_set_vuse, gimple_set_vdef):
23838 New functions.
23839 * tree-cfg.c (move_block_to_fn): Fix off-by-one error.
23840 (verify_expr): Allow RESULT_DECL.
23841 (gimple_duplicate_bb): Do not copy virtual operands.
23842 (gimple_duplicate_sese_region): Adjust.
23843 (gimple_duplicate_sese_tail): Likewise.
23844 (mark_virtual_ops_in_region): Remove.
23845 (move_sese_region_to_fn): Do not call it.
23846 * passes.c (init_optimization_passes): Remove pass_reset_cc_flags
23847 and pass_simple_dse.
23848 (execute_function_todo): Handle TODO_update_address_taken,
23849 call execute_update_addresses_taken for TODO_rebuild_alias.
23850 (execute_todo): Adjust.
23851 (execute_one_pass): Init dump files early.
23852 * ipa-struct-reorg.c (finalize_var_creation): Do not mark vars
23853 call-clobbered.
23854 (create_general_new_stmt): Clear vops.
23855 * tree-ssa-reassoc.c (get_rank): Adjust.
23856 * tree-vect-slp.c (vect_create_mask_and_perm): Do not mark
23857 symbols for renaming.
23858 * params.def (PARAM_MAX_ALIASED_VOPS): Remove.
23859 (PARAM_AVG_ALIASED_VOPS): Likewise.
23860 * tree-ssanames.c (init_ssanames): Allocate SYMS_TO_RENAME.
23861 (duplicate_ssa_name_ptr_info): No need to copy the shared bitmaps.
23862 * tree-ssa-operands.c: Simplify for new virtual operand representation.
23863 (operand_build_cmp, copy_virtual_operands,
23864 create_ssa_artificial_load_stmt, add_to_addressable_set,
23865 gimple_add_to_addresses_taken): Remove public functions.
23866 (unlink_stmt_vdef): New function.
23867
23868 2009-04-03 Alan Modra <amodra@bigpond.net.au>
23869
23870 * config.gcc (powerpc-*-linux*): Merge variants.
23871
23872 2009-04-02 Chao-ying Fu <fu@mips.com>
23873 James Grosbach <james.grosbach@microchip.com>
23874
23875 * config/mips/mips.c (mips_frame_info): Add acc_mask, num_acc,
23876 num_cop0_regs, acc_save_offset, cop0_save_offset, acc_sp_offset,
23877 cop0_sp_offset.
23878 (machine_function): Add interrupt_handler_p, use_shadow_register_set_p,
23879 keep_interrupts_masked_p, use_debug_exception_return_p.
23880 (mips_attribute_table): Add interrupt, use_shadow_register_set,
23881 keep_interrupts_masked, use_debug_exception_return.
23882 (mips_interrupt_type_p, mips_use_shadow_register_set_p,
23883 mips_keep_interrupts_masked_p, mips_use_debug_exception_return_p):
23884 New functions.
23885 (mips_function_ok_for_sibcall): Return false for interrupt handlers.
23886 (mips_print_operand): Process COP0 registers to print $0 .. $31
23887 correctly for GAS to process.
23888 (mips_interrupt_extra_call_saved_reg_p): New function.
23889 (mips_cfun_call_saved_reg_p): For interrupt handlers, we need to check
23890 extra registers.
23891 (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
23892 (mips_compute_frame_info): Add supports for interrupt context that
23893 includes doubleword accumulators and COP0 registers.
23894 (mips_for_each_saved_acc): New function.
23895 (mips_for_each_saved_gpr_and_fpr): Change the function name from
23896 mips_for_each_saved_reg.
23897 (mips_save_reg): Save accumulators.
23898 (mips_kernel_reg_p): A new for_each_rtx callback.
23899 (mips_expand_prologue): Support interrupt handlers.
23900 (mips_restore_reg): Restore accumulators.
23901 (mips_expand_epilogue): Support interrupt handlers.
23902 (mips_can_use_return_insn): Return false for interrupt handlers.
23903 (mips_epilogue_uses): New function.
23904 * config/mips/mips.md (UNSPEC_ERET, UNSPEC_DERET, UNSPEC_DI,
23905 UNSPEC_EHB, UNSPEC_RDPGPR, UNSPEC_COP0): New UNSPEC.
23906 (mips_eret, mips_deret, mips_di, mips_ehb, mips_rdpgpr,
23907 cop0_move): New instructions.
23908 * config/mips/mips-protos.h (mips_epilogue_uses): Declare.
23909 * config/mips/mips.h (K0_REG_NUM, K1_REG_NUM, KERNEL_REG_P): New
23910 defines.
23911 (COP0_STATUS_REG_NUM, COP0_CAUSE_REG_NUM, COP0_EPC_REG_NUM):
23912 New defines.
23913 (CAUSE_IPL, SR_IPL, SR_EXL, SR_IE): New defines.
23914 (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): For
23915 interrupt handlers, we use K0 as the temporary register.
23916 (EPILOGUE_USES): Change to a function call.
23917 * config/mips/sde.h (MIPS_EPILOGUE_TEMP_REGNUM): For interrupt
23918 handlers, we use K0 as the temporary register.
23919
23920 * doc/extend.texi (Function Attributes): Document interrupt,
23921 use_shadow_register_set, keep_interrupts_masked,
23922 use_debug_exception_return for MIPS attributes.
23923
23924 2009-04-03 Alan Modra <amodra@bigpond.net.au>
23925
23926 * config.gcc (powerpc64-*-gnu*): Add rs6000/default64.h to tm_file.
23927 Remove a number of t-files from tmake_file.
23928 * config/rs6000/sysv4.opt (mprototype): Name variable target_prototype.
23929 * config/rs6000/sysv4.h (TARGET_PROTOTYPE): Define.
23930 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
23931 target_prototype, not TARGET_PROTOTYPE.
23932 (LINK_OS_GNU_SPEC): Define.
23933 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Delete tramp.S
23934 and darwin-ldoubdle.c.
23935
23936 2009-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
23937
23938 PR driver/39293
23939 * gcc.c (save_temps_flag): Add support for -save-temps=obj.
23940 (cpp_options): Ditto.
23941 (default_compilers): Ditto.
23942 (display_help): Ditto.
23943 (process_command): Ditto.
23944 (do_spec_1): Ditto.
23945 (set_input): Use lbasename instead of duplicate code.
23946 (save_temps_prefix): New static for -save-temps=obj.
23947 (save_temps_length): Ditto.
23948
23949 * doc/invoke.texi (-save-temps=obj): Document new variant to
23950 -save-temps switch.
23951
23952 2009-04-02 Jeff Law <law@redhat.com>
23953
23954 * reload1.c (fixup_eh_region_notes): Remove write-only "trap_count"
23955 variable.
23956
23957 2009-04-02 H.J. Lu <hongjiu.lu@intel.com>
23958
23959 * configure.ac: Support -Bstatic/-Bdynamic for linker version > 2.
23960 * configure: Regenerated.
23961
23962 2009-04-02 Rafael Avila de Espindola <espindola@google.com>
23963
23964 * c-decl.c (merge_decls): Make sure newdecl and olddecl don't
23965 share the argument list.
23966
23967 2009-04-02 Rafael Avila de Espindola <espindola@google.com>
23968
23969 Merge
23970
23971 2009-02-12 Diego Novillo <dnovillo@google.com>
23972
23973 * varpool.c (debug_varpool): New.
23974 * cgraph.h (debug_varpool): Declare.
23975
23976 2009-04-02 Jan Hubicka <jh@suse.cz>
23977
23978 * passes.c (init_optimization_passes): Remove two copies of ehcleanup
23979 pass.
23980
23981 2009-04-02 H.J. Lu <hongjiu.lu@intel.com>
23982
23983 * config/i386/i386.c (ix86_abi): Move initialization to ...
23984 (override_options): Here.
23985
23986 2009-04-02 Christian Bruel <christian.bruel@st.com>
23987
23988 * config/sh/sh.c (sh_dwarf_register_span): New function.
23989 (TARGET_DWARF_REGISTER_SPAN): Define.
23990 * config/sh/sh-protos.h (sh_dwarf_register_span): Declare.
23991
23992 2009-04-02 Ira Rosen <irar@il.ibm.com>
23993
23994 PR tree-optimization/39595
23995 * tree-vect-slp.c (vect_build_slp_tree): Check that the size of
23996 interleaved loads group is not greater than the SLP group size.
23997
23998 2009-04-02 Rafael Avila de Espindola <espindola@google.com>
23999
24000 * builtins.c (is_builtin_name): New.
24001 (called_as_built_in): Use is_builtin_name.
24002 * tree.h (is_builtin_name): New.
24003 * varasm.c (incorporeal_function_p): Use is_builtin_name
24004
24005 2009-04-02 Andrew Stubbs <ams@codesourcery.com>
24006
24007 * config/sh/linux-unwind.h: Disable when inhibit_libc is defined.
24008
24009 2009-04-02 Dodji Seketeli <dodji@redhat.com>
24010
24011 PR c++/26693
24012 * c-decl.c (clone_underlying_type): Move this ...
24013 * c-common.c (set_underlying_type): ... here.
24014 Also, make sure the function properly sets TYPE_STUB_DECL() on
24015 the newly created typedef variant type.
24016 * c-common.h (is_typedef_decl, set_underlying_type): Declare ...
24017 * c-common.c (is_typedef_decl, set_underlying_type): ... new entry
24018 points.
24019
24020 2009-04-02 Richard Guenther <rguenther@suse.de>
24021
24022 PR tree-optimization/37221
24023 * tree-flow.h (degenerate_phi_result): Declare.
24024 * tree-ssa-dom.c (degenerate_phi_result): Export.
24025 * tree-scalar-evolution.c (analyze_initial_condition): If
24026 the initial condition is defined by a degenerate PHI node
24027 use the degenerate value.
24028
24029 2009-04-01 Eric Botcazou <ebotcazou@adacore.com>
24030
24031 PR rtl-optimization/39588
24032 * combine.c (merge_outer_ops): Do not set the constant when this
24033 is not necessary.
24034 (simplify_shift_const_1): Do not modify it either in this case.
24035
24036 2009-04-01 Steven Bosscher <steven@gcc.gnu.org>
24037
24038 * config/ia64/ia64.c (ia64_handle_option): Inform user that Itanium1
24039 tuning is deprecated if -mtune value is set to an Itanium1 variant.
24040
24041 2009-04-01 Janis Johnson <janis187@us.ibm.com>
24042
24043 PR c/29027
24044 * c-lex.c (interpret_float): Default (no suffix) is double.
24045
24046 2009-04-1 Xinliang David Li <davidxl@google.com>
24047
24048 * config/i386/i386.c (legitimate_constant_p): Recognize
24049 all one vector constant.
24050
24051 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
24052
24053 * config/vax/vax.c: Add #includes to silence warnings.
24054 Change #include order to silence two warnings.
24055
24056 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
24057
24058 * config/vax/linux.h (TARGET_DEFAULT): Add the MASK_QMATH flag bit.
24059 (ASM_SPEC): Pass -k to the assembler for PIC code.
24060
24061 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
24062
24063 * config.gcc: Add vax-*-linux* to the switch.
24064 * config/vax/linux.h: New file. (TARGET_VERSION,
24065 TARGET_OS_CPP_BUILTINS, TARGET_DEFAULT, CPP_SPEC, LINK_SPEC): Define.
24066
24067 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
24068
24069 * config/vax/vax.c (vax_output_int_move, adjacent_operands_p):
24070 Use predicate macros instead of GET_CODE() == foo.
24071 * config/vax/vax.md (movsi_2, movstrictqi, and<mode>3, ashrsi3,
24072 ashlsi3, rotrsi3, <unnamed>): Likewise.
24073
24074 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
24075
24076 * config/vax/builtins.md (jbbssiqi, jbbssihi, jbbssisi, jbbcciqi,
24077 jbbccihi, jbbccisi): Remova trailing whitespace.
24078 * config/vax/constraints.md: Likewise.
24079 * config/vax/elf.h: (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
24080 * config/vax/openbsd1.h (OBSD_OLD_GAS): Likewise.
24081 * config/vax/predicates.md: Likewise.
24082 * config/vax/vax.c (print_operand_address, vax_output_int_move,
24083 vax_expand_addsub_di_operands, adjacent_operands_p): Likewise.
24084 * config/vax/vax.h: Likewise.
24085 * config/vax/vax.md (nonlocal_goto): Likewise.
24086
24087 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
24088
24089 * config/vax/vax.c (vax_float_literal, vax_output_int_move)
24090 (indirectable_address_p, adjacent_operands_p): Add spaces around
24091 braces.
24092 * config/vax/vax-protos.h (adjacent_operands_p): Likewise.
24093
24094 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
24095
24096 * config/vax/vax.c (legitimate_constant_address_p,
24097 legitimate_constant_p, indirectable_address_p, nonindexed_address_p,
24098 index_term_p, reg_plus_index_p, legitimate_address_p,
24099 vax_mode_dependent_address_p): Update comments to match functions
24100 modified by the recent int->bool conversion.
24101
24102 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
24103
24104 * config/vax/builtins.md: Update copyright message.
24105 * config/vax/constraints.md: Likewise.
24106 * config/vax/netbsd-elf.h: Likewise.
24107 * config/vax/predicates.md: Likewise.
24108 * config/vax/vax-protos.h: Likewise.
24109 * config/vax/vax.c: Likewise.
24110 * config/vax/vax.h: Likewise.
24111 * config/vax/vax.md: Likewise.
24112 * config/vax/vax.opt: Likewise.
24113
24114 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
24115
24116 * config/vax/builtins.md (ffssi2, ffssi2_internal,
24117 sync_lock_test_and_set<mode>, sync_lock_release<mode>): Fix indention.
24118 * config/vax/constraints.md (B, R): Likewise.
24119 * config/vax/predicates.md (external_memory_operand,
24120 nonimmediate_addsub_di_operand): Likewise.
24121 * config/vax/vax.c (vax_output_int_add): Likewise.
24122 * config/vax/vax.md (movsi, movsi_2, mov<mode>, call_value,
24123 untyped_call): Likewise.
24124
24125 2009-04-01 Matt Thomas <matt@3am-software.com>
24126
24127 * config/vax/predicates.md: New file.
24128 (symbolic_operand, local_symbolic_operand, external_symbolic_operand,
24129 external_const_operand, nonsymbolic_operand, external_memory_operand,
24130 indirect_memory_operand, indexed_memory_operand,
24131 illegal_blk_memory_operand, illegal_addsub_di_memory_operand,
24132 nonimmediate_addsub_di_operand, general_addsub_di_operand): New
24133 predicate.
24134 * config/vax/constraints.md: New file.
24135 (Z0, U06, U08, U16, CN6, S08, S16, I, J, K, L, M, N, O, G, Q, B, R, T):
24136 New constraint.
24137 * config/vax/builtins.md: New file.
24138 (ffssi2, ffssi2_internal, sync_lock_test_and_set<mode>, jbbssiqi,
24139 jbbssihi, jbbssisi, sync_lock_release<mode>, jbbcciqi, jbbccihi,
24140 jbbccisi): Define.
24141 * config/vax/vax.opt (mqmath): Add option.
24142 * config/vax/vax.md (isfx): Extend with DI.
24143 (VAXintQH, VAXintQHSD): Define.
24144 (tst<mode>, cmp<mode>, *bit<mode>, movmemhi1, truncsiqi2, truncsihi2,
24145 mulsidi3, add<mode>3, sub<mode>, mul<mode>3, div<mode>3, and<mode>,
24146 and<mode>_const_int, ior<mode>3, xor<mode>3, neg<mode>2,
24147 one_cmpl<mode>2, ashlsi3, lshrsi3, rotlsi3): Update constraints.
24148 (movdi): Update constraints and use vax_output_int_move().
24149 (movsi, movsi_2, pushlclsymreg, pushextsymreg, movlclsymreg,
24150 movextsymreg, adddi3, adcdi3, subdi3, sbcdi3, pushextsym, movextsym,
24151 pushlclsym, movlclsym, movaddr<mode>, pushaddr<mode>,
24152 nonlocal_goto): New.
24153 (mov<mode>): Extend accepted operand types.
24154 (subdi3_old): Rename from subdi3, change update constraints and use
24155 a new implementation.
24156 * config/vax/vax.h (PCC_BITFIELD_TYPE_MATTERS): Add space.
24157 (FRAME_POINTER_CFA_OFFSET, IRA_COVER_CLASSES, CLASS_MAX_NREGS,
24158 MOVE_RATIO, CLEAR_RATIO): Define.
24159 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P,
24160 CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
24161 (PRINT_OPERAND): Redefine using a function instead of inlined code.
24162 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
24163 (split_quadword_operands): Make static and really allow variable
24164 splitting.
24165 (print_operand_address): Update for PIC generation.
24166 (print_operand, vax_builtin_setjmp_frame_value, vax_output_int_subtract,
24167 indexable_address_p, fixup_mathdi_operand,
24168 vax_expand_addsub_di_operands, adjacent_operands_p): New.
24169 (vax_float_literal, legitimate_constant_p,
24170 indirectable_constant_address_p, index_term_p,
24171 reg_plus_index_p): Return bool instead of int.
24172 (vax_rtx_costs): Fix cost for CONST_INT, indent and use HOST_WIDE_INT
24173 where needed.
24174 (vax_output_int_move, vax_output_int_add): Extend to allow PIC
24175 generation.
24176 (vax_output_conditional_branch): Indent.
24177 (legitimate_constant_address_p, indirectable_constant_address_p,
24178 indirectable_address_p, nonindexed_address_p, legitimate_address_p,
24179 vax_mode_dependent_address_p): Return bool instead of int, update for
24180 PIC generation.
24181 * config/vax/vax-protos.h (legitimate_constant_address_p,
24182 legitimate_constant_p, legitimate_address_p,
24183 vax_mode_dependent_address_p): Change declaration to bool.
24184 (legitimate_pic_operand_p, adjacent_operands_p, print_operand,
24185 vax_expand_addsub_di_operands, vax_output_int_subtract,
24186 vax_output_movmemsi): Declare.
24187 (split_quadword_operands, vax_float_literal): Delete declaration.
24188 * config/vax/netbsd-elf.h (CC1_SPEC, CC1PLUS_SPEC) Define.
24189 * config/vax/elf.h (NO_EXTERNAL_INDIRECT_ADDRESS,
24190 VAX_CC1_AND_CC1PLUS_SPEC, ASM_PREFERRED_EH_DATA_FORMAT,
24191 ASM_OUTPUT_DWARF_PCREL): Define.
24192 (ASM_SPEC): Change definition to allow PIC generation.
24193
24194 2009-04-01 Steve Ellcey <sje@cup.hp.com>
24195
24196 * doc/sourcebuild.texi: Update front-end requirements.
24197
24198 2009-04-01 Jakub Jelinek <jakub@redhat.com>
24199
24200 PR target/39226
24201 * config/rs6000/rs6000.md (andsi3_internal5_nomc,
24202 anddi3_internal2_nomc, anddi3_internal3_nomc): Removed.
24203 (booldi3_internal3): Use boolean_or_operator instead of
24204 boolean_operator.
24205
24206 2009-04-01 Joseph Myers <joseph@codesourcery.com>
24207
24208 PR c/39605
24209 * c-decl.c (grokdeclarator): Pedwarn for file-scope array
24210 declarator whose size is not an integer constant expression but
24211 folds to an integer constant, then treat it as a constant
24212 subsequently.
24213
24214 2009-04-01 Richard Guenther <rguenther@suse.de>
24215
24216 * fold-const.c (fold_plusminus_mult_expr): Do not fold
24217 i * 4 + 2 to (i * 2 + 1) * 2.
24218
24219 2009-04-01 Jakub Jelinek <jakub@redhat.com>
24220
24221 PR c/37772
24222 * c-parser.c (c_parser_asm_statement): Skip until close paren and
24223 return if c_parser_asm_string_literal returned NULL.
24224
24225 2009-04-01 Nick Clifton <nickc@redhat.com>
24226
24227 * config/m32c/m32c.h (LIBGCC2_UNITS_PER_WORD): Define if not
24228 already defined.
24229 * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Add m32c-lib2-trapv.c.
24230 * config/m32c/m32c-lib2.c: Remove unused typedefs. Rename the
24231 other typedefs to avoid conflicts with libgcc2.c. Define labels
24232 to gain 16-bit bit-manipulation functions from libgcc2.c and then
24233 include it.
24234 * config/m32c/m32c-lib2-trapv.c: New file. Define labels
24235 to gain 16-bit trapping arithmetic functions from libgcc2.c and
24236 then include it.
24237
24238 2009-04-01 Rafael Avila de Espindola <espindola@google.com>
24239
24240 * varasm.c (default_function_rodata_section): Declare DOT as
24241 const char*.
24242
24243 2009-04-01 Kai Tietz <kai.tietz@onevision.com>
24244 Andrey Galkin <agalkin@hypercom.com>
24245
24246 PR/39492
24247 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
24248 Make object_name unique for each process.
24249
24250 2009-04-01 Jakub Jelinek <jakub@redhat.com>
24251
24252 PR other/39591
24253 * omp-low.c (remove_exit_barrier): Don't optimize if there are any
24254 addressable variables in the parallel that could go out of scope while
24255 running queued tasks.
24256
24257 2009-04-01 Anatoly Sokolov <aesok@post.ru>
24258
24259 * config/avr/avr.h (avr_case_values_threshold): Remove declaration.
24260 (CASE_VALUES_THRESHOLD): Redefine.
24261 * config/avr/avr.c (avr_override_options): Remove initialization of
24262 avr_case_values_threshold variable.
24263 (avr_case_values_threshold): Remove variable. Add new function.
24264 * config/avr/avr-protos.h (avr_case_values_threshold): Declare.
24265 * config/avr/avr.opt (mno-tablejump): Remove option.
24266 * doc/invoke.texi (AVR Options): Remove -mno-tablejump.
24267
24268 2009-04-01 DJ Delorie <dj@redhat.com>
24269
24270 * varasm.c (default_function_rodata_section): Don't assume
24271 anything about where the first '.' in the section name is.
24272
24273 2009-04-01 Alan Modra <amodra@bigpond.net.au>
24274
24275 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete redundant
24276 rs6000_emit_stack_tie.
24277
24278 2009-03-31 Ian Lance Taylor <iant@google.com>
24279
24280 * tree-eh.c (tree_remove_unreachable_handlers): Compare
24281 gimple_code with GIMPLE_RESX, not RESX.
24282
24283 2009-03-31 Joseph Myers <joseph@codesourcery.com>
24284
24285 * c-common.c (c_get_ident): New.
24286 (c_common_nodes_and_builtins): Call it for type names that may be NULL.
24287
24288 2009-04-01 Ben Elliston <bje@au.ibm.com>
24289
24290 * config/rs6000/sysv4.opt (msdata): Improve option description.
24291
24292 2009-03-31 Steve Ellcey <sje@cup.hp.com>
24293
24294 * config/ia64/ia64.md (divsf3_internal_lat): Remove.
24295 (divdf3_internal_lat): Remove.
24296 (divxf3_internal_lat): Remove.
24297 (divxf3_internal_thr): Remove.
24298 (divxf): Use divxf3_internal.
24299 * config/ia64/div.md (divsf3_internal_lat): New.
24300 (divdf3_internal_lat): New.
24301 (divxf3_internal): New.
24302
24303 2009-03-31 Joseph Myers <joseph@codesourcery.com>
24304
24305 PR c/448
24306 * Makefile.in (USE_GCC_STDINT): Define.
24307 (stmp-int-hdrs): Install stdint.h if applicable.
24308 * c-common.c (CHAR16_TYPE): Define in terms of UINT_LEAST16_TYPE
24309 if known.
24310 (CHAR32_TYPE): Define in terms of UINT_LEAST32_TYPE if known.
24311 (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE,
24312 UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
24313 INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
24314 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
24315 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
24316 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
24317 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
24318 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
24319 (c_common_nodes_and_builtins): Initialize
24320 underlying_wchar_type_node. Do not initialize
24321 signed_wchar_type_node or unsigned_wchar_type_node. Initialize
24322 nodes for new types.
24323 (c_stddef_cpp_builtins): Define macros for new types.
24324 * c-common.h (CTI_SIGNED_WCHAR_TYPE, CTI_UNSIGNED_WCHAR_TYPE):
24325 Remove.
24326 (CTI_UNDERLYING_WCHAR_TYPE, CTI_SIG_ATOMIC_TYPE, CTI_INT8_TYPE,
24327 CTI_INT16_TYPE, CTI_INT32_TYPE, CTI_INT64_TYPE, CTI_UINT8_TYPE,
24328 CTI_UINT16_TYPE, CTI_UINT32_TYPE, CTI_UINT64_TYPE,
24329 CTI_INT_LEAST8_TYPE, CTI_INT_LEAST16_TYPE, CTI_INT_LEAST32_TYPE,
24330 CTI_INT_LEAST64_TYPE, CTI_UINT_LEAST8_TYPE, CTI_UINT_LEAST16_TYPE,
24331 CTI_UINT_LEAST32_TYPE, CTI_UINT_LEAST64_TYPE, CTI_INT_FAST8_TYPE,
24332 CTI_INT_FAST16_TYPE, CTI_INT_FAST32_TYPE, CTI_INT_FAST64_TYPE,
24333 CTI_UINT_FAST8_TYPE, CTI_UINT_FAST16_TYPE, CTI_UINT_FAST32_TYPE,
24334 CTI_UINT_FAST64_TYPE, CTI_INTPTR_TYPE, CTI_UINTPTR_TYPE): Define.
24335 (signed_wchar_type_node, unsigned_wchar_type_node): Remove.
24336 (underlying_wchar_type_node, sig_atomic_type_node, int8_type_node,
24337 int16_type_node, int32_type_node, int64_type_node,
24338 uint8_type_node, uint16_type_node, c_uint32_type_node,
24339 c_uint64_type_node, int_least8_type_node, int_least16_type_node,
24340 int_least32_type_node, int_least64_type_node,
24341 uint_least8_type_node, uint_least16_type_node,
24342 uint_least32_type_node, uint_least64_type_node,
24343 int_fast8_type_node, int_fast16_type_node, int_fast32_type_node,
24344 int_fast64_type_node, uint_fast8_type_node, uint_fast16_type_node,
24345 uint_fast32_type_node, uint_fast64_type_node, intptr_type_node,
24346 uintptr_type_node): Define.
24347 * c-cppbuiltin.c (builtin_define_constants,
24348 builtin_define_type_minmax): New.
24349 (builtin_define_stdint_macros): Define more macros.
24350 (c_cpp_builtins): Define more limit macros.
24351 (type_suffix): New.
24352 (builtin_define_type_max): Define in terms of
24353 builtin_define_type_minmax. Remove is_long parameter. All
24354 callers changed.
24355 * config.gcc (use_gcc_stdint): Define.
24356 (tm_file): Add glibc-stdint.h for targets using glibc or uClibc.
24357 Add newlib-stdint.h for generic targets.
24358 * config/glibc-stdint.h, config/newlib-stdint.h,
24359 ginclude/stdint-gcc.h, ginclude/stdint-wrap.h: New.
24360 * config/m32c/m32c.h (UINTPTR_TYPE): Define.
24361 * config/score/score.h (UINTPTR_TYPE): Define.
24362 * config/sol2.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
24363 INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
24364 UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
24365 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
24366 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
24367 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
24368 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
24369 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
24370 * config/spu/spu.h (STDINT_LONG32): Define.
24371 * configure.ac (use_gcc_stdint): Substitute.
24372 * configure: Regenerate.
24373 * doc/cpp.texi (__SIG_ATOMIC_TYPE__, __INT8_TYPE__,
24374 __INT16_TYPE__, __INT32_TYPE__, __INT64_TYPE__, __UINT8_TYPE__,
24375 __UINT16_TYPE__, __UINT32_TYPE__, __UINT64_TYPE__,
24376 __INT_LEAST8_TYPE__, __INT_LEAST16_TYPE__, __INT_LEAST32_TYPE__,
24377 __INT_LEAST64_TYPE__, __UINT_LEAST8_TYPE__, __UINT_LEAST16_TYPE__,
24378 __UINT_LEAST32_TYPE_, __UINT_LEAST64_TYPE__, __INT_FAST8_TYPE__,
24379 __INT_FAST16_TYPE__, __INT_FAST32_TYPE__, __INT_FAST64_TYPE__,
24380 __UINT_FAST8_TYPE__, __UINT_FAST16_TYPE__, __UINT_FAST32_TYPE__,
24381 __UINT_FAST64_TYPE__, __INTPTR_TYPE__, __UINTPTR_TYPE__,
24382 __WINT_MAX__, __SIZE_MAX__, __PTRDIFF_MAX__, __UINTMAX_MAX__,
24383 __SIG_ATOMIC_MAX__, __INT8_MAX__, __INT16_MAX__, __INT32_MAX__,
24384 __INT64_MAX__, __UINT8_MAX__, __UINT16_MAX__, __UINT32_MAX__,
24385 __UINT64_MAX__, __INT_LEAST8_MAX__, __INT_LEAST16_MAX__,
24386 __INT_LEAST32_MAX__, __INT_LEAST64_MAX__, __UINT_LEAST8_MAX__,
24387 __UINT_LEAST16_MAX__, __UINT_LEAST32_MAX__, __UINT_LEAST64_MAX__,
24388 __INT_FAST8_MAX__, __INT_FAST16_MAX__, __INT_FAST32_MAX__,
24389 __INT_FAST64_MAX__, __UINT_FAST8_MAX__, __UINT_FAST16_MAX__,
24390 __UINT_FAST32_MAX__, __UINT_FAST64_MAX__, __INTPTR_MAX__,
24391 __UINTPTR_MAX__, __WCHAR_MIN__, __WINT_MIN__, __SIG_ATOMIC_MIN__,
24392 __INT8_C, __INT16_C, __INT32_C, __INT64_C, __UINT8_C, __UINT16_C,
24393 __UINT32_C, __UINT64_C, __INTMAX_C, __UINTMAX_C): Document.
24394 * doc/tm.texi (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE,
24395 INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
24396 INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
24397 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
24398 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
24399 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
24400 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
24401 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Document.
24402
24403 2009-03-31 Bernd Schmidt <bernd.schmidt@analog.com>
24404
24405 * loop-iv.c (suitable_set_for_replacement): Renamed from
24406 simplify_using_assignment; changed to return bool and to accept new
24407 args DEST and SRC. Return true iff we find a source/destination pair
24408 that can be used to make a replacement, and fill SRC and DEST if so.
24409 Remove arg ALTERED. Don't deal with altered regs here. All callers
24410 changed.
24411 (simplify_using_initial_values): Deal with altered regs here and track
24412 more precisely the effect they have on the validity of our expression.
24413
24414 * loop-iv.c (simplify_using_condition): A condition of the form
24415 (EQ REG CONST) can be used to simply make a substitution.
24416 (simplify_using_initial_values): Keep track of conditions we have seen
24417 and keep using them to simplify new expressions, while applying the
24418 same substitutions to them as to the expression.
24419
24420 * simplify-rtx.c (simplify_relational_operation_1): Simplify
24421 (LTU (PLUS a C) C) or (LTU (PLUS a C) a) to (GEU a -C); likewise with
24422 GEU/LTU reversed.
24423
24424 * loop-iv.c (determine_max_iter): New arg OLD_NITER. All callers
24425 changed. Use this when trying to improve the upper bound.
24426 Generate the comparison by using simplify_gen_relational.
24427
24428 * loop-iv.c (simple_rhs_p): Allow more kinds of expressions.
24429
24430 * loop-iv.c (replace_single_def_regs, replace_in_expr): New static
24431 functions.
24432 (simplify_using_assignment, simplify_using_initial_values): Call
24433 replace_in_expr to make replacements. Call replace_single_def_regs
24434 once on the initial version of the expression.
24435
24436 2009-03-31 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24437
24438 PR target/27237
24439 * doc/invoke.texi (ARM Options): Update documentation for -mthumb.
24440
24441 2009-03-31 Richard Guenther <rguenther@suse.de>
24442
24443 PR middle-end/31029
24444 * fold-const.c (fold_binary): Fold X +- Y CMP X to Y CMP 0 for
24445 equality comparisons. Fold C - X CMP X if C % 2 == 1.
24446
24447 2009-03-31 Richard Guenther <rguenther@suse.de>
24448
24449 * tree.h (div_if_zero_remainder): Declare.
24450 * fold-const.c (div_if_zero_remainder): Export.
24451 * tree-ssa-forwprop.c
24452 (forward_propagate_addr_into_variable_array_index): Handle
24453 constant array index addition outside of the variable index.
24454
24455 2009-03-31 Joseph Myers <joseph@codesourcery.com>
24456
24457 PR target/39592
24458 * config/i386/i386.md (*floatunssi<mode>2_1, two unnamed
24459 define_splits, floatunssi<mode>2): Require x87 conversions from
24460 DImode to be permitted.
24461
24462 2009-03-31 Joseph Myers <joseph@codesourcery.com>
24463
24464 PR preprocessor/15638
24465 * c-common.c (c_cpp_error): Handle CPP_DL_FATAL.
24466
24467 2009-03-31 Richard Guenther <rguenther@suse.de>
24468
24469 PR middle-end/23401
24470 PR middle-end/27810
24471 * tree.h (DECL_GIMPLE_FORMAL_TEMP_P): Remove.
24472 (struct tree_decl_with_vis): Remove gimple_formal_temp member.
24473 * tree-eh.c (lower_eh_constructs_2): Move LHS assignment to
24474 a separate statement.
24475 * gimplify.c (pop_gimplify_context): Remove formal temp handling.
24476 (lookup_tmp_var): Likewise.
24477 (is_gimple_formal_tmp_or_call_rhs): Remove.
24478 (is_gimple_reg_or_call_rhs): Rename to ...
24479 (is_gimple_reg_rhs_or_call): ... this.
24480 (is_gimple_mem_or_call_rhs): Rename to ...
24481 (is_gimple_mem_rhs_or_call): ... this.
24482 (internal_get_tmp_var): Use is_gimple_reg_rhs_or_call. Set
24483 DECL_GIMPLE_REG_P only if is_formal is true.
24484 (gimplify_compound_lval): Use is_gimple_reg. Remove workaround
24485 for non-proper post-modify expression gimplification.
24486 (gimplify_self_mod_expr): For post-modify expressions gimplify
24487 the lvalue to a minimal lvalue.
24488 (rhs_predicate_for): Remove formal temp case.
24489 (gimplify_modify_expr_rhs): Likewise.
24490 (gimplify_addr_expr): Use is_gimple_reg.
24491 (gimplify_expr): Remove formal temp cases.
24492 (gimple_regimplify_operands): Likewise.
24493 * tree-ssa-pre.c (get_or_alloc_expr_for): Treat EXC_PTR_EXPR
24494 and FILTER_EXPR like constants.
24495 * gimple.c (walk_gimple_op): Fix val_only initialization, use
24496 is_gimple_reg.
24497 (is_gimple_formal_tmp_rhs): Remove.
24498 (is_gimple_reg_rhs): Remove special casing.
24499 (is_gimple_mem_rhs): Fix.
24500 (is_gimple_reg): Move DECL_GIMPLE_REG_P handling earlier.
24501 (is_gimple_formal_tmp_var): Remove.
24502 (is_gimple_formal_tmp_reg): Likewise.
24503 (is_gimple_min_lval): Allow invariant component ref parts.
24504 * gimple.h (is_gimple_formal_tmp_rhs, is_gimple_formal_tmp_var,
24505 is_gimple_formal_tmp_reg): Remove declarations.
24506 * tree-cfg.c (verify_expr): Verify that variables with address
24507 taken do not have DECL_GIMPLE_REG_P set.
24508 * tree-mudflap.c (mf_build_check_statement_for): Use
24509 force_gimple_operand instead of gimplify_expr.
24510
24511 2009-03-31 Ayal Zaks <zaks@il.ibm.com>
24512
24513 * modulo-sched.c (sms_schedule_by_order): Pass the actual
24514 schedulable rows to compute_split_row.
24515
24516 2009-03-31 Ben Elliston <bje@au.ibm.com>
24517
24518 PR target/31635
24519 * config/rs6000/rs6000.c (rs6000_handle_option): Handle
24520 OPT_mvrsave.
24521
24522 2009-03-31 Alan Modra <amodra@bigpond.net.au>
24523
24524 * doc/invoke.texi (RS/6000 and PowerPC Options):Document mtls-markers.
24525 * configure.ac (HAVE_AS_TLS_MARKERS): New gas feature check.
24526 * configure: Regenerate.
24527 * config.in: Regenerate.
24528 * config/rs6000/rs6000.opt (mtls-markers): Add.
24529 * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Define.
24530 * config/rs6000/rs6000.md (tls_gd_aix, tls_gd_sysv): Add splitter.
24531 (tls_ld_aix, tls_ld_sysv): Likewise.
24532 (tls_gd, tls_gd_call_aix, tls_gd_call_sysv): New insns.
24533 (tls_ld, tls_ld_call_aix, tls_ld_call_sysv): Likewise.
24534
24535 2009-03-31 Alan Modra <amodra@bigpond.net.au>
24536
24537 * config/spu/spu.c (spu_expand_prologue): Delete redundant code.
24538
24539 2009-03-30 Jan Hubicka <jh@suse.cz>
24540
24541 * tree-eh.c (make_eh_edges): Set probability 100% to first edge
24542 out of RESX.
24543 (tree_remove_unreachable_handlers): Cleanup EH predecestor
24544 detection and label handling.
24545
24546 2009-03-30 Vladimir Makarov <vmakarov@redhat.com>
24547
24548 * ira-int.h (ira_allocno): Rename left_conflicts_num to
24549 left_conflicts_size.
24550 (ALLOCNO_LEFT_CONFLICTS_NUM): Rename to
24551 ALLOCNO_LEFT_CONFLICTS_SIZE.
24552
24553 * ira-color.c (allocno_spill_priority, push_allocno_to_stack,
24554 remove_allocno_from_bucket_and_push,
24555 allocno_spill_priority_compare, push_allocnos_to_stack,
24556 setup_allocno_available_regs_num): Use ALLOCNO_LEFT_CONFLICTS_SIZE
24557 instead of ALLOCNO_LEFT_CONFLICTS_NUM.
24558 (setup_allocno_left_conflicts_num): Ditto. Rename to
24559 setup_allocno_left_conflicts_size.
24560 (put_allocno_into_bucket): Use ALLOCNO_LEFT_CONFLICTS_SIZE
24561 instead of ALLOCNO_LEFT_CONFLICTS_NUM and
24562 setup_allocno_left_conflicts_size instead of
24563 setup_allocno_left_conflicts_num.
24564
24565 * ira-build.c (ira_create_allocno): Use
24566 ALLOCNO_LEFT_CONFLICTS_SIZE instead of
24567 ALLOCNO_LEFT_CONFLICTS_NUM.
24568
24569 2009-03-30 Vladimir Makarov <vmakarov@redhat.com>
24570
24571 * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
24572 instead of DF_LR_OUT.
24573
24574 * ira-lives.c (process_bb_node_lives): Ditto.
24575
24576 * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
24577 instead of DF_LR_{OUT,IN}.
24578
24579 * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
24580
24581 * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
24582
24583 2009-03-30 Jan Hubicka <jh@suse.cz>
24584
24585 * except.c (label_to_region_map): Fix thinko.
24586
24587 2009-03-30 Steve Ellcey <sje@cup.hp.com>
24588
24589 PR middle-end/38237
24590 * tree.h (tree_find_value): New declaration.
24591 * tree.c (tree_find_value): New function.
24592 * varasm.c (assemble_external): Avoid duplicate entries on lists.
24593
24594 2009-03-30 Jakub Jelinek <jakub@redhat.com>
24595
24596 PR debug/39563
24597 * c-decl.c (struct c_binding): Add locus field.
24598 (bind): Add locus argument, set locus field from it.
24599 (pop_scope): For b->nested VAR_DECL or FUNCTION_DECL,
24600 add a DECL_EXTERNAL copy of b->decl to current BLOCK_VARS.
24601 (push_file_scope, pushtag, pushdecl, pushdecl_top_level,
24602 implicitly_declare, undeclared_variable, lookup_label,
24603 declare_label, c_make_fname_decl, c_builtin_function,
24604 c_builtin_function_ext_scope, store_parm_decls_newstyle): Adjust
24605 bind callers.
24606
24607 2009-03-30 H.J. Lu <hongjiu.lu@intel.com>
24608
24609 PR target/38781
24610 * config/i386/i386.c (classify_argument): Check total size of
24611 structure.
24612
24613 2009-03-30 Martin Jambor <mjambor@suse.cz>
24614
24615 * ipa-prop.h (jump_func_type): Rename IPA_UNKNOWN, IPA_CONST,
24616 IPA_CONST_MEMBER_PTR, and IPA_PASS_THROUGH to IPA_JF_UNKNOWN,
24617 IPA_JF_CONST, IPA_JF_CONST_MEMBER_PTR, and IPA_JF_PASS_THROUGH
24618 respectively.
24619
24620 * tree-dfa.c (get_ref_base_and_extent): Return -1 maxsize if
24621 seen_variable_array_ref while also traversing a union.
24622
24623 * tree-inline.c (optimize_inline_calls): Do not call
24624 cgraph_node_remove_callees.
24625 * cgraphbuild.c (remove_cgraph_callee_edges): New function.
24626 (pass_remove_cgraph_callee_edges): New variable.
24627 * passes.c (init_optimization_passes): Add
24628 pass_remove_cgraph_callee_edges after early inlining and before all
24629 late intraprocedural passes.
24630
24631 * omp-low.c (expand_omp_taskreg): Always set current_function_decl.
24632
24633 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
24634
24635 * config/sparc/sparc.md (*nand<V64mode>_vis, *nand<V32mode>_vis):
24636 Fix typos in names.
24637
24638 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
24639
24640 * combine.c (simplify_comparison): Use have_insn_for.
24641 * dojump.c (do_jump): Likewise.
24642
24643 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
24644
24645 * config/sparc/sparc.c (sparc_compare_emitted): Remove.
24646 (gen_compare_reg, emit_v9_brxx_insn): Handle MODE_CC
24647 sparc_compare_op0 like sparc_compare_emitted used to be handled.
24648 (sparc_expand_compare_and_swap_12): Set sparc_compare_op0
24649 instead of sparc_compare_emitted.
24650 * config/sparc/sparc.h (sparc_compare_emitted): Remove.
24651 * config/sparc/sparc.md (stack_protect_test): Set sparc_compare_op0
24652 instead of sparc_compare_emitted.
24653
24654 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
24655
24656 * bb-reorder.c (partition_hot_cold_basic_blocks): Do not
24657 enter/exit cfglayout mode.
24658 (pass_partition_block): Require it.
24659 * combine.c (find_single_use, reg_dead_at_p): Use CFG.
24660 (combine_instructions): Track basic blocks instead of labels.
24661 (update_cfg_for_uncondjump): New.
24662 (try_combine): Use it. Update jumps after rescanning.
24663 (pass_combine): Require PROP_cfglayout.
24664 * passes.c (pass_outof_cfg_layout_mode): Move after regmove.
24665
24666 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
24667
24668 * cfglayout.c (pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode):
24669 Provide/destroy PROP_cfglayout respectively.
24670 * gcse.c (pass_jump_bypass, pass_gcse): Require it.
24671 * tree-pass.h (PROP_cfglayout): New.
24672
24673 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
24674
24675 * fold-const.c (const_binop, fold_convert_const_real_from_fixed,
24676 fold_convert_const_fixed_from_fixed,
24677 fold_convert_const_fixed_from_int,
24678 fold_convert_const_fixed_from_real, fold_negate_const): Do not
24679 set TREE_CONSTANT_OVERFLOW.
24680 * tree.def: Remove mention of TREE_CONSTANT_OVERFLOW.
24681 * tree.h (TREE_CONSTANT_OVERFLOW): Delete.
24682
24683 2009-03-30 Ira Rosen <irar@il.ibm.com>
24684
24685 * tree-vect-loop-manip.c: New file.
24686 * tree-vectorizer.c: Update documentation and included files.
24687 (vect_loop_location): Make extern.
24688 (rename_use_op): Move to tree-vect-loop-manip.c
24689 (rename_variables_in_bb, rename_variables_in_loop,
24690 slpeel_update_phis_for_duplicate_loop,
24691 slpeel_update_phi_nodes_for_guard1,
24692 slpeel_update_phi_nodes_for_guard2, slpeel_make_loop_iterate_ntimes,
24693 slpeel_tree_duplicate_loop_to_edge_cfg, slpeel_add_loop_guard,
24694 slpeel_can_duplicate_loop_p, slpeel_verify_cfg_after_peeling,
24695 set_prologue_iterations, slpeel_tree_peel_loop_to_edge,
24696 find_loop_location): Likewise.
24697 (new_stmt_vec_info): Move to tree-vect-stmts.c.
24698 (init_stmt_vec_info_vec, free_stmt_vec_info_vec, free_stmt_vec_info,
24699 get_vectype_for_scalar_type, vect_is_simple_use,
24700 supportable_widening_operation, supportable_narrowing_operation):
24701 Likewise.
24702 (bb_in_loop_p): Move to tree-vect-loop.c.
24703 (new_loop_vec_info, destroy_loop_vec_info,
24704 reduction_code_for_scalar_code, report_vect_op,
24705 vect_is_simple_reduction, vect_is_simple_iv_evolution): Likewise.
24706 (vect_can_force_dr_alignment_p): Move to tree-vect-data-refs.c.
24707 (vect_supportable_dr_alignment): Likewise.
24708 * tree-vectorizer.h (tree-data-ref.h): Include.
24709 (vect_loop_location): Declare.
24710 Reorganize function declarations according to the new file structure.
24711 * tree-vect-loop.c: New file.
24712 * tree-vect-analyze.c: Remove. Move functions to tree-vect-data-refs.c,
24713 tree-vect-stmts.c, tree-vect-slp.c, tree-vect-loop.c.
24714 * tree-vect-data-refs.c: New file.
24715 * tree-vect-patterns.c (timevar.h): Don't include.
24716 * tree-vect-stmts.c: New file.
24717 * tree-vect-transform.c: Remove. Move functions to tree-vect-stmts.c,
24718 tree-vect-slp.c, tree-vect-loop.c.
24719 * Makefile.in (OBJS-common): Remove tree-vect-analyze.o and
24720 tree-vect-transform.o. Add tree-vect-data-refs.o, tree-vect-stmts.o,
24721 tree-vect-loop.o, tree-vect-loop-manip.o, tree-vect-slp.o.
24722 (tree-vect-analyze.o): Remove.
24723 (tree-vect-transform.o): Likewise.
24724 (tree-vect-data-refs.o): Add rule.
24725 (tree-vect-stmts.o, tree-vect-loop.o, tree-vect-loop-manip.o,
24726 tree-vect-slp.o): Likewise.
24727 (tree-vect-patterns.o): Remove redundant dependencies.
24728 (tree-vectorizer.o): Likewise.
24729 * tree-vect-slp.c: New file.
24730
24731 2009-03-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24732
24733 * optc-gen.awk: Warn if an option flag has multiple different
24734 help strings.
24735
24736 2009-03-30 Sebastian Pop <sebastian.pop@amd.com>
24737
24738 * doc/invoke.texi (-floop-interchange, -floop-strip-mine,
24739 -floop-block): Document dependences on PPL, CLooG and Graphite.
24740
24741 2009-03-30 Joseph Myers <joseph@codesourcery.com>
24742
24743 PR rtl-optimization/323
24744 * c-common.c (c_fully_fold, convert_and_check,
24745 c_common_truthvalue_conversion): Handle EXCESS_PRECISION_EXPR.
24746 (c_fully_fold_internal): Disallow EXCESS_PRECISION_EXPR.
24747 * c-common.def (EXCESS_PRECISION_EXPR): New.
24748 * c-cppbuiltin.c (builtin_define_float_constants): Define
24749 constants with enough digits for long double.
24750 * c-lex.c (interpret_float): Interpret constant with excess
24751 precision where appropriate.
24752 * c-opts.c (c_common_post_options): Set
24753 flag_excess_precision_cmdline. Give an error for
24754 -fexcess-precision=standard for C++ for processors where the
24755 option is significant.
24756 * c-parser.c (c_parser_conditional_expression): Handle excess
24757 precision in condition.
24758 * c-typeck.c (convert_arguments): Handle arguments with excess
24759 precision.
24760 (build_unary_op): Move excess precision outside operation.
24761 (build_conditional_expr): Likewise.
24762 (build_compound_expr): Likewise.
24763 (build_c_cast): Do cast on operand of EXCESS_PRECISION_EXPR.
24764 (build_modify_expr): Handle excess precision in RHS.
24765 (convert_for_assignment): Handle excess precision in converted
24766 value.
24767 (digest_init, output_init_element, process_init_element): Handle
24768 excess precision in initializer.
24769 (c_finish_return): Handle excess precision in return value.
24770 (build_binary_op): Handle excess precision in operands and add
24771 excess precision as needed for operation.
24772 * common.opt (-fexcess-precision=): New option.
24773 * config/i386/i386.h (X87_ENABLE_ARITH, X87_ENABLE_FLOAT): New.
24774 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
24775 For standard excess precision, output explicit conversion to and
24776 truncation from XFmode.
24777 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1,
24778 *float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp,
24779 *float<SSEMODEI24:mode><X87MODEF:mode>2_i387, two unnamed
24780 define_splits, floatdi<X87MODEF:mode>2_i387_with_xmm, two unnamed
24781 define_splits, *floatunssi<mode>2_1, two unnamed define_splits,
24782 floatunssi<mode>2, add<mode>3, sub<mode>3, mul<mode>3, divdf3,
24783 divsf3, *fop_<mode>_comm_i387, *fop_<mode>_1_i387,
24784 *fop_<MODEF:mode>_2_i387, *fop_<MODEF:mode>_3_i387,
24785 *fop_df_4_i387, *fop_df_5_i387, *fop_df_6_i387, two unnamed
24786 define_splits, sqrt<mode>2): Disable where appropriate for
24787 standard excess precision.
24788 * convert.c (convert_to_real): Do not shorten arithmetic to type
24789 for which excess precision would be used.
24790 * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Define.
24791 * doc/invoke.texi (-fexcess-precision=): Document option.
24792 (-mfpmath=): Correct index entry.
24793 * flags.h (enum excess_precision, flag_excess_precision_cmdline,
24794 flag_excess_precision): New.
24795 * langhooks.c (lhd_post_options): Set
24796 flag_excess_precision_cmdline.
24797 * opts.c (common_handle_option): Handle -fexcess-precision=.
24798 * toplev.c (flag_excess_precision_cmdline, flag_excess_precision,
24799 init_excess_precision): New.
24800 (lang_dependent_init_target): Call init_excess_precision.
24801 * tree.c (excess_precision_type): New.
24802 * tree.h (excess_precision_type): Declare.
24803
24804 2009-03-30 Joseph Myers <joseph@codesourcery.com>
24805
24806 PR c/35235
24807 * c-typeck.c (build_component_ref): Do not copy qualifiers from
24808 non-lvalue to component.
24809
24810 2009-03-29 Joseph Myers <joseph@codesourcery.com>
24811
24812 PR preprocessor/34695
24813 * Makefile.in (c-opts.o): Depend on c-tree.h.
24814 * c-common.c: Move down include of diagnostic.h.
24815 (done_lexing, c_cpp_error): New.
24816 * c-common.h (done_lexing): Declare.
24817 * c-decl.c (c_write_global_declarations): Don't check cpp_errors
24818 (parse_in).
24819 * c-opts.c: Include c-tree.h.
24820 (c_common_init_options): Set preprocessor error callback.
24821 (c_common_handle_option): Do not set preprocessor
24822 inhibit_warnings, warnings_are_errors, warn_system_headers,
24823 pedantic_errors or inhibit_warnings flags.
24824 (c_common_post_options): Do not check cpp_errors (parse_in).
24825 (c_common_finish): Do not output dependencies if there were
24826 errors. Do not check return value of cpp_finish.
24827 * c-ppoutput.c (pp_file_change): Set input_location.
24828 * c-tree.h (c_cpp_error): Declare.
24829 * diagnostic.c (diagnostic_set_info_translated): Also initialize
24830 override_column.
24831 (diagnostic_build_prefix): Check override_column.
24832 * diagnostic.h (diagnostic_info): Add override_column field.
24833 (diagnostic_override_column): Define.
24834
24835 2009-03-28 Paolo Bonzini <bonzini@gnu.org>
24836
24837 * c-common.c (c_expand_expr, c_staticp): Remove.
24838 * c-common.def (COMPOUND_LITERAL_EXPR): Delete.
24839 * c-common.h (emit_local_var, c_staticp, COMPOUND_LITERAL_EXPR_DECL,
24840 COMPOUND_LITERAL_EXPR_DECL_EXPR): Remove.
24841 * c-gimplify.c (gimplify_compound_literal_expr,
24842 optimize_compound_literals_in_ctor): Remove.
24843 (c_gimplify_expr): Remove COMPOUND_LITERAL_EXPR handling.
24844 * c-objc-common.h (LANG_HOOKS_STATICP): Remove.
24845 * c-semantics.c (emit_local_var): Remove.
24846
24847 * langhooks-def.h (lhd_expand_expr): Remove.
24848 * langhooks.c (lhd_expand_expr): Remove.
24849 * langhooks.h (LANG_HOOKS_DEF): Remove LANG_HOOKS_EXPAND_EXPR.
24850
24851 * expr.c (expand_expr_real_1): Move COMPOUND_LITERAL_EXPR
24852 handling from c-semantics.c; don't call into langhook.
24853 (expand_expr_addr_expr_1): Check that we don't get non-GENERIC trees.
24854 * gimplify.c (gimplify_compound_literal_expr,
24855 optimize_compound_literals_in_ctor): Move from c-gimplify.c.
24856 (gimplify_init_constructor): Call optimize_compound_literals_in_ctor.
24857 (gimplify_modify_expr_rhs, gimplify_expr): Handle COMPOUND_LITERAL_EXPR
24858 as was done in c-gimplify.c.
24859 * tree.c (staticp): Move COMPOUND_LITERAL_EXPR handling from c_staticp.
24860 * tree.h (COMPOUND_LITERAL_EXPR_DECL, COMPOUND_LITERAL_EXPR_DECL_EXPR):
24861 Move from c-common.h.
24862 * tree.def (COMPOUND_LITERAL_EXPR): Move from c-common.def.
24863
24864 * tree.c (staticp): Do not call langhook.
24865 * langhooks.c (lhd_staticp): Delete.
24866 * langhooks-def.h (lhd_staticp): Delete prototype.
24867 (LANG_HOOKS_STATICP): Delete.
24868 (LANG_HOOKS_INITIALIZER): Delete LANG_HOOKS_STATICP.
24869
24870 * doc/c-tree.texi (Expression nodes): Refer to DECL_EXPRs
24871 instead of DECL_STMTs.
24872
24873 2009-03-29 Joseph Myers <joseph@codesourcery.com>
24874
24875 PR c/456
24876 PR c/5675
24877 PR c/19976
24878 PR c/29116
24879 PR c/31871
24880 PR c/35198
24881 * builtins.c (fold_builtin_sincos): Build COMPOUND_EXPR in
24882 void_type_node.
24883 (fold_call_expr): Return a NOP_EXPR from folding rather than the
24884 contained expression.
24885 * c-common.c (c_fully_fold, c_fully_fold_internal, c_save_expr): New.
24886 (c_common_truthvalue_conversion): Use c_save_expr. Do not fold
24887 conditional expressions for C.
24888 (decl_constant_value_for_optimization): Move from
24889 decl_constant_value_for_broken_optimization in c-typeck.c. Check
24890 whether optimizing and that the expression is a VAR_DECL not of
24891 array type instead of doing such checks in the caller. Do not
24892 check pedantic. Call gcc_unreachable for C++.
24893 * c-common.def (C_MAYBE_CONST_EXPR): New.
24894 * c-common.h (c_fully_fold, c_save_expr,
24895 decl_constant_value_for_optimization): New prototypes.
24896 (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
24897 C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
24898 EXPR_INT_CONST_OPERANDS): Define.
24899 * c-convert.c (convert): Strip nops from expression.
24900 * c-decl.c (groktypename): Take extra parameters expr and
24901 expr_const_operands. Update call to grokdeclarator.
24902 (start_decl): Update call to grokdeclarator. Add statement for
24903 expressions used in type of decl.
24904 (grokparm): Update call to grokdeclarator.
24905 (push_parm_decl): Update call to grokdeclarator.
24906 (build_compound_literal): Add parameter non_const and build a
24907 C_MAYBE_COSNT_EXPR if applicable.
24908 (grokdeclarator): Take extra parameters expr and
24909 expr_const_operands. Track expressions used in declaration
24910 specifiers and declarators. Fold array sizes and track whether
24911 they are constant expressions and whether they are integer
24912 constant expressions.
24913 (parser_xref_tag): Set expr and expr_const_operands fields in
24914 return value.
24915 (grokfield): Update call to grokdeclarator.
24916 (start_function): Update call to grokdeclarator.
24917 (build_null_declspecs): Set expr and expr_const_operands fields in
24918 return value.
24919 (declspecs_add_type): Handle expressions in typeof specifiers.
24920 * c-parser.c (c_parser_declspecs): Set expr and
24921 expr_const_operands fields for declaration specifiers.
24922 (c_parser_enum_specifier): Likewise.
24923 (c_parser_struct_or_union_specifier): Likewise.
24924 (c_parser_typeof_specifier): Likewise. Update call to
24925 groktypename. Fold expression as needed. Return expressions with
24926 type instead of adding statements.
24927 (c_parser_attributes): Update calls to c_parser_expr_list.
24928 (c_parser_statement_after_labels): Fold expression before passing
24929 to objc_build_throw_stmt.
24930 (c_parser_condition): Fold expression.
24931 (c_parser_asm_operands): Fold expression.
24932 (c_parser_conditional_expression): Use c_save_expr. Update call
24933 to build_conditional_expr.
24934 (c_parser_alignof_expression): Update call to groktypename.
24935 (c_parser_postfix_expression): Preserve C_MAYBE_CONST_EXPR as
24936 original_code. Fold expression argument of va_arg. Create
24937 C_MAYBE_CONST_EXPR to preserve side effects of expressions in type
24938 argument to va_arg. Update calls to groktypename. Fold array
24939 index for offsetof. Verify that first argument to
24940 __builtin_choose_expr has integer type.
24941 (c_parser_postfix_expression_after_paren_type): Update calls to
24942 groktypename and build_compound_literal. Handle expressions with
24943 side effects in type name.
24944 (c_parser_postfix_expression_after_primary): Update call to
24945 c_parser_expr_list. Set original_code for calls to
24946 __builtin_constant_p.
24947 (c_parser_expr_list): Take extra parameter fold_p. Fold
24948 expressions if requested.
24949 (c_parser_objc_type_name): Update call to groktypename.
24950 (c_parser_objc_synchronized_statement): Fold expression.
24951 (c_parser_objc_receiver): Fold expression.
24952 (c_parser_objc_keywordexpr): Update call to c_parser_expr_list.
24953 (c_parser_omp_clause_num_threads, c_parser_omp_clause_schedule,
24954 c_parser_omp_atomic, c_parser_omp_for_loop): Fold expressions.
24955 * c-tree.h (CONSTRUCTOR_NON_CONST): Define.
24956 (struct c_typespec): Add elements expr and expr_const_operands.
24957 (struct c_declspecs): Add elements expr and expr_const_operands.
24958 (groktypename, build_conditional_expr, build_compound_literal):
24959 Update prototypes.
24960 (in_late_binary_op): Declare.
24961 * c-typeck.c (note_integer_operands): New function.
24962 (in_late_binary_op): New variable.
24963 (decl_constant_value_for_broken_optimization): Move to c-common.c
24964 and rename to decl_constant_value_for_optimization.
24965 (default_function_array_conversion): Do not strip nops.
24966 (default_conversion): Do not call
24967 decl_constant_value_for_broken_optimization.
24968 (build_array_ref): Do not fold result.
24969 (c_expr_sizeof_expr): Fold operand. Use C_MAYBE_CONST_EXPR for
24970 result when operand is a VLA.
24971 (c_expr_sizeof_type): Update call to groktypename. Handle
24972 expressions included in type name. Use C_MAYBE_CONST_EXPR for
24973 result when operand names a VLA type.
24974 (build_function_call): Update call to build_compound_literal.
24975 Only fold result for calls to __builtin_* functions. Strip
24976 NOP_EXPR from INTEGER_CST returned from such functions. Fold
24977 the function designator.
24978 (convert_arguments): Fold arguments. Update call to
24979 convert_for_assignment.
24980 (build_unary_op): Handle increment and decrement of
24981 C_MAYBE_CONST_EXPR. Move lvalue checks for increment and
24982 decrement earlier. Fold operand of increment and decrement.
24983 Handle address of C_MAYBE_CONST_EXPR. Only fold expression being
24984 built for integer operand. Wrap returns that are INTEGER_CSTs
24985 without being integer constant expressions or that have integer
24986 constant operands without being INTEGER_CSTs.
24987 (lvalue_p): Handle C_MAYBE_CONST_EXPR.
24988 (build_conditional_expr): Add operand ifexp_bcp. Track whether
24989 result is an integer constant expression or can be used in
24990 unevaluated parts of one and avoid folding and wrap as
24991 appropriate. Fold operands before possibly doing -Wsign-compare
24992 warnings.
24993 (build_compound_expr): Wrap result for C99 if operands can be used
24994 in integer constant expressions.
24995 (build_c_cast): Update call to digest_init. Do not ignore
24996 overflow from casting floating-point constants to integers. Wrap
24997 results that could be confused with integer constant expressions,
24998 null pointer constants or floating-point constants.
24999 (c_cast_expr): Update call to groktypename. Handle expressions
25000 included in type name.
25001 (build_modify_expr): Handle modifying a C_MAYBE_CONST_EXPR. Fold
25002 lhs inside possible SAVE_EXPR. Fold RHS before assignment.
25003 Update calls to convert_for_assignment.
25004 (convert_for_assignment): Take new parameter
25005 null_pointer_constant. Do not strip nops or call
25006 decl_constant_value_for_broken_optimization. Set
25007 in_late_binary_op for conversions to boolean.
25008 (store_init_value): Update call to digest_init.
25009 (digest_init): Take new parameter null_pointer_constant. Do not
25010 call decl_constant_value_for_broken_optimization. pedwarn for
25011 initializers not constant expressions. Update calls to
25012 convert_for_assignment.
25013 (constructor_nonconst): New.
25014 (struct constructor_stack): Add nonconst element.
25015 (really_start_incremental_init, push_init_level, pop_init_level):
25016 Handle constructor_nonconst and nonconst element.
25017 (set_init_index): Call constant_expression_warning for array
25018 designators.
25019 (output_init_element): Fold value. Set constructor_nonconst as
25020 applicable. pedwarn for initializers not constant expressions.
25021 Update call to digest_init. Call constant_expression_warning
25022 where constant initializers are required.
25023 (process_init_element): Use c_save_expr.
25024 (c_finish_goto_ptr): Fold expression.
25025 (c_finish_return): Fold return value. Update call to
25026 convert_for_assignment.
25027 (c_start_case): Fold switch expression.
25028 (c_process_expr_stmt): Fold expression.
25029 (c_finish_stmt_expr): Create C_MAYBE_CONST_EXPR as needed to
25030 ensure statement expression is not evaluated in constant expression.
25031 (build_binary_op): Track whether results are integer constant
25032 expressions or may occur in such, disable folding and wrap results
25033 as applicable. Fold operands for -Wsign-compare warnings unless
25034 in_late_binary_op.
25035 (c_objc_common_truthvalue_conversion): Handle results folded to
25036 integer constants that are not integer constant expressions.
25037 * doc/extend.texi: Document when typeof operands are evaluated,
25038 that condition of __builtin_choose_expr is an integer constant
25039 expression, and more about use of __builtin_constant_p in
25040 initializers.
25041
25042 2009-03-29 Richard Guenther <rguenther@suse.de>
25043
25044 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
25045 propagate addresses of array references.
25046
25047 2009-03-29 Steven Bosscher <steven@gcc.gnu.org>
25048
25049 * regmove.c (perhaps_ends_bb_p): Remove.
25050 (optimize_reg_copy_1): Don't call perhaps_ends_bb_p. Get basic block
25051 from INSN and check that the main loop stays within that basic block.
25052 (optimize_reg_copy_1, optimize_reg_copy_3, fixup_match_2): Likewise.
25053 (regmove_forward_pass): Split out from regmove_optimize. Use
25054 FOR_EACH_BB and FOR_BB_INSNS instead of traversing the insns stream.
25055 (regmove_backward_pass): Split out from regmove_optimize. Use
25056 FOR_EACH_BB_REVERSE and FOR_BB_INSNS_REVERS_SAFE.
25057 (regmove_optimize): Simplify.
25058
25059 2009-03-29 H.J. Lu <hongjiu.lu@intel.com>
25060
25061 PR target/39545
25062 * config/i386/i386.c (classify_argument): Ignore flexible array
25063 member in struct and warn ABI change.
25064
25065 2009-03-29 H.J. Lu <hongjiu.lu@intel.com>
25066
25067 * config/i386/i386-protos.h (ix86_agi_dependent): New.
25068
25069 * config/i386/i386.c (ix86_agi_dependent): Rewrite.
25070 (ix86_adjust_cost): Updated.
25071
25072 2009-03-29 Jan Hubicka <jh@suse.cz>
25073
25074 PR middle-end/28850
25075 * tree-pass.h (pass_cleanup_eh): New function.
25076 (remove_unreachable_regions): Break code handling RTL
25077 to rtl_remove_unreachable_regions; remove ERT_MUST_NOT_THROW
25078 that can not be reached by runtime.
25079 (can_be_reached_by_runtime): New function.
25080 (label_to_region_map): New function.
25081 (num_eh_regions): New function.
25082 (rtl_remove_unreachable_regions): New function.
25083 (convert_from_eh_region_ranges): Call rtl_remove_unreachable_regions.
25084 (remove_eh_region): New function.
25085 * except.h: Include sbitmap and vecprim.
25086 (remove_eh_region, remove_unreachable_regions, label_to_region_map,
25087 num_eh_regions): Declare.
25088 * passes.c (init_optimization_passes): Schedule cleanup_eh.
25089 * Makefile.in (EXCEPT_H): New; replace all uses of except.h by it.
25090 * tree-eh.c (tree_remove_unreachable_handlers): New function.
25091 (tree_empty_eh_handler_p): New function.
25092 (cleanup_empty_eh): New function.
25093 (cleanup_eh): New function.
25094 (pass_cleanup_eh): New function.
25095
25096 2009-03-29 Jan Hubicka <jh@suse.cz>
25097
25098 * except.c (verify_eh_tree): Fix handling of fun!=cfun; be ready
25099 for removed regions.
25100
25101 2009-03-29 Jan Hubicka <jh@suse.cz>
25102
25103 * except.c (dump_eh_tree): Dump all datastructures.
25104
25105 2009-03-29 Jan Hubicka <jh@suse.cz>
25106
25107 * except.c (duplicate_eh_regions_0): Handle AKA bitmap.
25108 (duplicate_eh_regions_1): Likewise.
25109 (duplicate_eh_regions): Likewise; cleanup code gorwing the region
25110 vector; call EH verification.
25111 (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
25112 Be ready for region being removed.
25113
25114 2009-03-29 Jan Hubicka <jh@suse.cz>
25115
25116 * bitmap.c (bitmap_last_set_bit): New function.
25117 * bitmap.h (bitmap_last_set_bit): Declare.
25118
25119 2009-03-29 David Ayers <ayers@fsfe.org>
25120
25121 PR objc/27377
25122 * c-typeck.c (build_conditional_expr): Emit ObjC warnings
25123 by calling objc_compare_types and surpress warnings about
25124 incompatible C pointers that are compatible ObjC pointers.
25125
25126 2009-03-29 Adam Nemet <anemet@caviumnetworks.com>
25127
25128 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Don't
25129 call initialize_inline_failed.
25130 (initialize_inline_failed): Move it from here ...
25131 * cgraph.c (initialize_inline_failed): ... to here.
25132 (cgraph_create_edge): Call initialize_inline_failed rather than
25133 setting inline_failed directly.
25134
25135 2009-03-29 Ben Elliston <bje@au.ibm.com>
25136
25137 PR target/32542
25138 * sysv4.opt (msdata): Improve comment.
25139 * linux64.h (ASM_SPEC32): Do not pass -memb when -msdata is given.
25140 * sysv4.h (SVR4_ASM_SPEC): Likewise.
25141
25142 2009-03-29 Ben Elliston <bje@au.ibm.com>
25143
25144 PR target/30451
25145 * config/rs6000/rs6000.md (*movti_ppc64): Correct the order of
25146 load and store attributes.
25147
25148 2009-03-29 Ben Elliston <bje@au.ibm.com>
25149
25150 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_HUGE_VALQ.
25151 (ix86_init_builtins): Add built-in function __builtin_huge_valq.
25152 (ix86_expand_builtin): Handle IX86_BUILTIN_HUGE_VALQ.
25153 * doc/extend.texi (X86 Built-in Functions): Add index entries for
25154 __builtin_infq and __builtin_huge_valq.
25155
25156 2009-03-28 Anatoly Sokolov <aesok@post.ru>
25157
25158 * config/avr/avr.c (avr_mcu_t): Add atmega8c1, atmega16c1 and
25159 atmega8m1 devices.
25160 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
25161 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.)
25162
25163 2009-03-28 Xinliang David Li <davidxl@google.com>
25164
25165 * tree-ssa-ccp.c (ccp_finalize): Add dbg_count support.
25166 (do_dbg_cnt): New function.
25167
25168 2009-03-28 Jan Hubicka <jh@suse.cz>
25169
25170 Merge from pretty-ipa:
25171
25172 2009-03-27 Jan Hubicka <jh@suse.cz>
25173
25174 * cgraph.c (dump_cgraph_node): Add replace output flag by process.
25175 * tree-pass.h (function_called_by_processed_nodes_p): Declare.
25176 * passes.c (function_called_by_processed_nodes_p): New.
25177 * ipa-pure-const.c (check_call): Fix handling of operands.
25178 (analyze_function): Dump debug output for skipped bodies.
25179 (local_pure_const): Use function_called_by_processed_nodes_p.
25180 * dwarf2out.c (reference_to_unused): Use output.
25181 * passes.c (do_per_function_toporder): Likewise.
25182
25183 2008-11-12 Jan Hubicka <jh@suse.cz>
25184
25185 * tree-pass.h (pass_fixup_cfg, pass_local_pure_const): Declare.
25186 * ipa-pure-const.c (funct_state_d): Add can throw field; make
25187 state_set_in_source enum
25188 (check_decl): Ignore memory tags; do not set fake looping flags;
25189 dump diagnostics.
25190 (check_operand, check_tree, check_rhs_var, check_lhs_var,
25191 get_asm_expr_operands, scan_function_op, scan_function_stmt): Remove.
25192 (check_call, analyze_function): Rewrite.
25193 (check_stmt): New.
25194 (add_new_function): Update call of analyze_function.
25195 (generate_summary): Add call of analyze_function.
25196 (propagate): Propagate can_throw; handle state_set_in_source correctly.
25197 (local_pure_const): New function.
25198 (pass_local_pure_const): New pass.
25199 * ipa-inline.c (inline_transform): Set after_inlining.
25200 * tree-eh.c (stmt_can_throw_external): New.
25201 * tree-optimize.c (execute_fixup_cfg): Do not set after_inlining;
25202 work with aliasing built.
25203 * tree-flow.h (stmt_can_throw_external): New.
25204 * passes.c (init_optimization_passes): Schedule fixup_cfg pass early;
25205 and local pure/const pass in early and late optimization queue.
25206
25207 2009-03-28 Martin Jambor <mjambor@suse.cz>
25208
25209 * fold-const.c (get_pointer_modulus_and_residue): New parameter
25210 allow_func_align.
25211 (fold_binary): Allow function decl aligment consideration is the
25212 second argument is integer constant one.
25213 * tree-ssa-forwprop.c (simplify_bitwise_and): New function.
25214 (tree_ssa_forward_propagate_single_use_vars): Handle assing statements
25215 with BIT_AND_EXPR on the RHS by calling simplify_bitwise_and.
25216
25217 2009-03-28 Jan Hubicka <jh@suse.cz>
25218
25219 * dwarf2out.c (dwarf2out_begin_prologue): Use crtl->nothrow
25220 * tree-eh.c (stmt_could_throw_p): Remove check for WEAK decls.
25221 * function.h (rtl_data): Add nothrow flag.
25222 * except.c (set_nothrow_function_flags): Use crtl->nothrow;
25223 set DECL_NOTHROW for AVAILABLE functions.
25224
25225 2009-03-28 Jakub Jelinek <jakub@redhat.com>
25226
25227 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If macro
25228 following vector keyword has expansion starting with pixel or bool
25229 keyword, expand vector to __vector and pixel or bool to __pixel or
25230 __bool.
25231
25232 PR c++/39554
25233 * opts.c (warning_disallowed_functions, warn_disallowed_functions,
25234 warn_if_disallowed_function_p): Removed.
25235 (common_handle_option): Don't handle OPT_Wdisallowed_function_list_.
25236 * c-parser.c (c_parser_postfix_expression_after_primary): Don't call
25237 warning_if_disallowed_function_p.
25238 * flags.h (warn_if_disallowed_function_p,
25239 warn_disallowed_functions): Removed.
25240 * common.opt (Wdisallowed-function-list=): Removed.
25241 * doc/invoke.texi (-Wdisallowed-function-list=): Removed.
25242
25243 2009-03-28 Richard Guenther <rguenther@suse.de>
25244
25245 PR tree-optimization/38723
25246 * tree-ssa-pre.c (compute_avail): Add all default definitions to
25247 the entry block.
25248
25249 2009-03-28 Jan Hubicka <jh@suse.cz>
25250
25251 * tree-ssa-structalias.c (ipa_pta_execute): Fix bogus node->analyzed
25252 test introduced by my previous patch.
25253
25254 2009-03-28 Richard Guenther <rguenther@suse.de>
25255
25256 * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not leave
25257 the PHIs value undefined.
25258
25259 2009-03-28 Jan Hubicka <jh@suse.cz>
25260
25261 * tree-pass.h (pass_fixup_cfg): New pass.
25262 * ipa-inline.c (inline_transform): Set
25263 always_inline_functions_inlined/after_inlining.
25264 * tree-optimize.c (execute_fixup_cfg): Do not set them here.
25265 (pass_fixup_cfg): New pass.
25266 * passes.c (init_optimization_passes): Add fixup_cfg.
25267
25268 2009-03-28 Richard Guenther <rguenther@suse.de>
25269
25270 PR tree-optimization/38458
25271 * tree-ssa-copy.c (copy_prop_visit_phi_node): For the first
25272 argument use the arguments copy-of value.
25273
25274 2009-03-28 Richard Guenther <rguenther@suse.de>
25275
25276 PR tree-optimization/38180
25277 * tree-ssa-ccp.c (get_default_value): Simplify.
25278 (likely_value): Likewise.
25279 (surely_varying_stmt_p): Properly handle VOP case.
25280 (ccp_initialize): Likewise.
25281 (ccp_fold): Handle propagating through *&.
25282 (fold_const_aggregate_ref): Also handle decls.
25283
25284 2009-03-28 Jan Hubicka <jh@suse.cz>
25285
25286 * cgraph.c (dump_cgraph_node): Add replace output flag by process.
25287 * cgraph.h (cgraph_node): Likewise.
25288 * cgraphunit.c (cgraph_process_new_functions): Set process flag.
25289 (cgraph_reset_node): Use process flag.
25290 (cgraph_mark_functions_to_output): Likewise.
25291 (cgraph_expand_function): Likewise.
25292 (cgraph_expand_all_functions): Likewise.
25293 (cgraph_output_in_order): Likewise.
25294 * dwarf2out.c (reference_to_unused): Likewise.
25295 * passes.c do_per_function_toporder): Likewise.
25296
25297 2009-03-28 Jan Hubicka <jh@suse.cz>
25298
25299 Bring from lto-branch:
25300
25301 2008-09-03 Doug Kwan <dougkwan@google.com>
25302
25303 * cgraphbuild.c (initialize_inline_failed): Use cgraph_inline_failed_t
25304 enums instead of reason strings.
25305 * cgraph.c (cgraph_create_edge): Same.
25306 (cgraph_inline_failed_string): New function.
25307 * cgraph.h (cgraph_inline_failed_t): New enum type.
25308 (cgraph_inline_failed_string): New prototype.
25309 (struct cgraph_edge): Change type of INLINED_FAILED from constant
25310 char pointer to cgraph_inline_failed_t.
25311 (cgraph_inline_p): Adjust prototype to use cgraph_inline_failed_t.
25312 (cgraph_default_inline_p): Ditto.
25313 * cgraphunit.c (cgraph_inline_p): Change type of parameter REASON
25314 to cgraph_inline_failed_t pointer.
25315 * cif-code.def: New file.
25316 * ipa-inline.c (cgraph_mark_inline_edge): Use an enum instead of a
25317 reason string.
25318 (cgraph_check_inline_limits): Change type of REASON to pointer to
25319 cgraph_inline_failed_t. Replace reason strings with enums.
25320 (cgraph_default_inline_p): Ditto.
25321 (cgraph_recursive_inlining_p): Ditto.
25322 (update_caller_keys): Change type of FAILED_REASON to
25323 cgraph_inline_failed_t.
25324 (cgraph_set_inline_failed): Change type of REASON to pointer to
25325 cgraph_inline_failed_t. Call cgraph_inline_failed_string to
25326 convert enums to strings for text output.
25327 (cgraph_decide_inlining_of_small_function): Change FAILED_REASON
25328 to be of type cgraph_inline_failed_t. Replace reason strings with
25329 enums. Call cgraph_inline_failed_string to covert enums
25330 to strings for text output.
25331 (cgraph_decide_inlining): Replace reason strings with enums.
25332 (cgraph_decide_inlining_incrementally): Change type of FAILED_REASON
25333 to cgraph_inline_failed_t type. Call cgraph_inline_failed_string
25334 for text output.
25335 * tree-inline.c (expand_call_inline): Change type of REASON
25336 to cgraph_inline_failed_t. Replace reason strings with enums.
25337 Call cgraph_inline_failed_string for text output.
25338 * Makefile.in (CGRAPH_H): Add cif-code.def to dependencies.
25339 (cgraph.o): Ditto.
25340
25341 2009-03-28 Jan Hubicka <jh@suse.cz>
25342
25343 * cgraph.c (cgraph_node, cgraph_remove_node, dump_cgraph_node,
25344 cgraph_clone_node): Remove master clone handling.
25345 (cgraph_is_master_clone, cgraph_master_clone): Remove.
25346 * cgraph.h (master_clone): Remove.
25347 (cgraph_is_master_clone, cgraph_master_clone): Remove.
25348 * ipa-type-escape.c (type_escape_execute): Remove use of master clone.
25349 (tree-ssa-structalias.c (ipa_pta_execute): Likewise.
25350
25351 2009-03-28 Jan Hubicka <jh@suse.cz>
25352
25353 * cgraph.c (cgraph_function_body_availability): Functions declared
25354 inline are always safe to assume that it is not going to be replaced.
25355
25356 2009-03-28 Richard Guenther <rguenther@suse.de>
25357
25358 PR tree-optimization/38513
25359 * tree-ssa-pre.c (eliminate): Remove redundant stores.
25360 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
25361 EXC_PTR_EXPR and FILTER_EXPR.
25362 (get_ref_from_reference_ops): Likewise.
25363
25364 2009-03-28 Richard Guenther <rguenther@suse.de>
25365
25366 PR tree-optimization/38968
25367 * tree-vect-analyze.c (vect_compute_data_ref_alignment):
25368 Use FLOOR_MOD_EXPR to compute misalignment.
25369
25370 2009-03-28 Richard Guenther <rguenther@suse.de>
25371
25372 PR tree-optimization/37795
25373 * tree.h (combine_comparisons): Declare.
25374 * fold-const.c (combine_comparisons): Export.
25375 * tree-ssa-ifcombine.c (ifcombine_ifandif): Optimize two successive
25376 comparisons.
25377 (ifcombine_iforif): Use combine_comparisons.
25378
25379 2009-03-28 Jan Hubicka <jh@suse.cz>
25380
25381 * tree-eh.c (inlinable_call_p): New function.
25382 (make_eh_edges): Use it.
25383 (verify_eh_edges): Use it.
25384 (stmt_can_throw_external, stmt_can_throw_internal): Use it.
25385 * except.c (reachable_next_level): Add inlinable_function argument
25386 (sjlj_find_directly_reachable_regions): Update.
25387 (add_reachable_handler): Do not set saw_any_handlers.
25388 (reachable_next_level): Handle MUST_NOT_THROW more curefully.
25389 (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
25390 Add new inlinable call parameter.
25391 (can_throw_internal, can_throw_external): Update.
25392 * except.h (can_throw_internal_1, can_throw_external_1,
25393 foreach_reachable_handler): Update declaration.
25394
25395 2009-03-28 Joseph Myers <joseph@codesourcery.com>
25396
25397 * config/arm/t-arm-coff, config/h8300/coff.h,
25398 config/i386/i386-aout.h, config/i386/i386-coff.h,
25399 config/libgloss.h, config/m68k/coff.h, config/m68k/m68k-aout.h,
25400 config/pdp11/2bsd.h, config/rs6000/aix41.h,
25401 config/rs6000/aix41.opt, config/rs6000/t-newas, config/sh/coff.h,
25402 fix-header.c, fixproto, gen-protos.c, protoize.c, scan-decls.c,
25403 scan-types.sh, scan.c, scan.h, sort-protos, sys-protos.h,
25404 sys-types.h: Remove.
25405 * Makefile.in: Remove protoize and fixproto support and references
25406 in comments.
25407 (SYSCALLS.c.X-warn, TARGET_GETGROUPS_T, STMP_FIXPROTO,
25408 PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, FIXPROTO_DEFINES):
25409 Remove.
25410 (ALL_HOST_OBJS): Remove $(PROTO_OBJS).
25411 (MOSTLYCLEANFILES): Remove protoize$(exeext) and
25412 unprotoize$(exeext).
25413 (rest.encap): Don't depend on $(STMP_FIXPROTO)
25414 (.PHONY): Don't depend on proto.
25415 (libgcc-support): Don't depend on $(STMP_FIXPROTO).
25416 (proto, PROTO_OBJS, protoize$(exeext), unprotoize$(exeext),
25417 protoize.o, unprotoize.o, SYSCALLS.c.X, test-protoize-simple,
25418 deduced.h, GEN_PROTOS_OBJS, build/gen-protos$(build_exeext),
25419 build/gen-protos.o, build/scan.o, xsys-protos.h,
25420 build/fix-header$(build_exeext), build/fix-header.o,
25421 build/scan-decls.o, fixhdr.ready, stmp-fixproto,
25422 stmp-install-fixproto): Remove.
25423 (mostlyclean): Don't remove xsys-protos.hT, SYSCALLS.c.X,
25424 SYSCALLS.c or fixproto files.
25425 (install-common): Don't install protoize.
25426 (install-headers-tar, install-headers-cpio, install-headers-cp):
25427 Don't depend on $(STMP_FIXPROTO).
25428 (install-mkheaders): Don't depend on $(STMP_FIXPROTO). Don't
25429 install fixproto files or write out fixproto settings.
25430 (uninstall): Don't uninstall protoize.
25431 * config.gcc (use_fixproto): Remove.
25432 (arm-*-coff*, armel-*-coff*, h8300-*-*, i[34567]86-*-aout*,
25433 i[34567]86-*-coff*, m68k-*-aout*, m68k-*-coff*, pdp11-*-bsd,
25434 rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*, sh-*-*): Remove.
25435 * config/m32r/t-linux (STMP_FIXPROTO): Remove.
25436 * config/m68k/m68k.c: Remove M68K_TARGET_COFF-conditional code.
25437 * config/mips/t-iris (FIXPROTO_DEFINES): Remove.
25438 * config/pa/t-pa-hpux (FIXPROTO_DEFINES): Remove.
25439 * config/pdp11/pdp11.c: Remove TWO_BSD-conditional code.
25440 * config/t-svr4 (FIXPROTO_DEFINES): Remove.
25441 * config/t-vxworks (STMP_FIXPROTO): Remove.
25442 * configure.ac (AC_TYPE_GETGROUPS, TARGET_GETGROUPS_T,
25443 STMP_FIXPROTO): Remove.
25444 * config.in, configure: Regenerate.
25445 * crtstuff.c (gid_t, uid_t): Don't undefine.
25446 * doc/install.texi: Change m68k-coff to m68k-elf in example.
25447 (arm-*-coff, arm-*-aout: Remove target entries.
25448 (*-ibm-aix*): Mention removal of support for AIX 4.2 and older.
25449 Remove mention of AIX 4.1.
25450 (m68k-*-*): Remove mention of m68k-*-aout and m68k-*-coff*.
25451 * doc/invoke.texi (Running Protoize): Remove.
25452 * doc/trouble.texi (Actual Bugs): Remove mention of fixproto.
25453 (Protoize Caveats): Remove.
25454 * tsystem.h: Update comments on headers assumed to exist.
25455
25456 2009-03-27 Vladimir Makarov <vmakarov@redhat.com>
25457
25458 * genautomata.c: Add a new year to the copyright. Add a new
25459 reference.
25460 (struct insn_reserv_decl): Add comments for member bypass_list.
25461 (find_bypass): Remove.
25462 (insert_bypass): New.
25463 (process_decls): Use insert_bypass.
25464 (output_internal_insn_latency_func): Output all bypasses with the
25465 same input insn in one switch case.
25466
25467 * rtl.def (define_bypass): Describe bypass choice.
25468 * doc/md.texi (define_bypass): Ditto.
25469
25470 2009-03-27 Richard Guenther <rguenther@suse.de>
25471
25472 * gimplify.c (mark_addressable): Export.
25473 * tree-flow.h (mark_addressable): Declare.
25474 * tree-ssa-loop-manip.c (create_iv): Mark the base addressable.
25475 * tree-ssa.c (verify_phi_args): Verify that address taken
25476 variables have TREE_ADDRESSABLE set.
25477
25478 2009-03-27 Richard Guenther <rguenther@suse.de>
25479
25480 * fold-const.c (build_fold_addr_expr_with_type_1): Rename back to ...
25481 (build_fold_addr_expr_with_type): ... this. Remove in_fold handling.
25482 Do not mark decls TREE_ADDRESSABLE.
25483 (build_fold_addr_expr): Adjust.
25484 (fold_addr_expr): Remove.
25485 (fold_unary): Use build_fold_addr_expr.
25486 (fold_comparison): Likewise.
25487 (split_address_to_core_and_offset): Likewise.
25488 * coverage.c (tree_coverage_counter_addr): Mark the array decl
25489 TREE_ADDRESSABLE.
25490 * gimplify.c (mark_addressable): Do not exclude RESULT_DECLs.
25491 (gimplify_modify_expr_to_memcpy): Mark source and destination
25492 addressable.
25493 * omp-low.c (create_omp_child_function): Mark the object decl
25494 TREE_ADDRESSABLE.
25495 (lower_rec_input_clauses): Mark the var we take the address of
25496 TREE_ADDRESSABLE.
25497 (lower_omp_taskreg): Mark the sender decl TREE_ADDRESSABLE.
25498
25499 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
25500
25501 PR middle-end/39315
25502 * cfgexpand.c (expand_one_stack_var_at): Change alignment
25503 limit to MAX_SUPPORTED_STACK_ALIGNMENT.
25504
25505 2009-03-27 Richard Guenther <rguenther@suse.de>
25506
25507 PR tree-optimization/39120
25508 * tree-ssa-structalias.c (handle_rhs_call): Fill out return
25509 constraints.
25510 (handle_lhs_call): Process return constraints. Add escape
25511 constraints if necessary.
25512 (handle_const_call): Fill out return constraints. Make nested
25513 case more precise. Avoid consttmp if possible.
25514 (handle_pure_call): Fill out return constraints. Avoid
25515 callused if possible.
25516 (find_func_aliases): Simplify call handling.
25517
25518 2009-03-27 Richard Guenther <rguenther@suse.de>
25519
25520 PR tree-optimization/39120
25521 * tree-ssa-structalias.c (do_sd_constraint): Do not use CALLUSED
25522 as a representative.
25523 (solve_graph): Do propagate CALLUSED.
25524 (handle_pure_call): Use a scalar constraint from CALLUSED for
25525 the return value.
25526 (find_what_p_points_to): CALLUSED shall not appear in poins-to
25527 solutions.
25528
25529 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
25530
25531 PR c/39323
25532 * c-common.c (handle_aligned_attribute): Properly check alignment
25533 overflow. Use (1U << i) instead of (1 << i).
25534
25535 * emit-rtl.c (get_mem_align_offset): Use "unsigned int" for align.
25536
25537 * expr.h (get_mem_align_offset): Updated.
25538
25539 * tree.h (tree_decl_common): Change align to "unsigned int" and
25540 move it before pointer_alias_set.
25541
25542 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
25543 Jakub Jelinek <jakub@redhat.com>
25544
25545 PR target/38034
25546 * config/ia64/sync.md (cmpxchg_rel_<mode>): Replace input
25547 gr_register_operand with gr_reg_or_0_operand.
25548 (cmpxchg_rel_di): Likewise.
25549 (sync_lock_test_and_set<mode>): Likewise.
25550
25551 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
25552
25553 * jump.c (rtx_renumbered_equal_p): Use subreg_get_info.
25554 (true_regnum): Likewise.
25555
25556 * rtlanal.c (subreg_info): Moved to ...
25557 * rtl.h (subreg_info): Here. New.
25558 (subreg_get_info): New.
25559
25560 * rtlanal.c (subreg_get_info): Make it extern.
25561
25562 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
25563
25564 PR target/39472
25565 * config/i386/i386.c (ix86_abi): New.
25566 (override_options): Handle -mabi=.
25567 (ix86_function_arg_regno_p): Replace DEFAULT_ABI with ix86_abi.
25568 (ix86_call_abi_override): Likewise.
25569 (init_cumulative_args): Likewise.
25570 (function_arg_advance): Likewise.
25571 (function_arg_64): Likewise.
25572 (function_arg): Likewise.
25573 (ix86_pass_by_reference): Likewise.
25574 (ix86_function_value_regno_p): Likewise.
25575 (ix86_build_builtin_va_list_abi): Likewise.
25576 (setup_incoming_varargs_64): Likewise.
25577 (is_va_list_char_pointer): Likewise.
25578 (ix86_init_machine_status): Likewise.
25579 (ix86_reg_parm_stack_space): Use enum calling_abi on call_abi.
25580 (ix86_function_type_abi): Return enum calling_abi. Rewrite
25581 for 64bit. Replace DEFAULT_ABI with ix86_abi.
25582 (ix86_function_abi): Make it static and return enum calling_abi.
25583 (ix86_cfun_abi): Return enum calling_abi. Replace DEFAULT_ABI
25584 with ix86_abi.
25585 (ix86_fn_abi_va_list): Updated.
25586
25587 * config/i386/i386.h (ix86_abi): New.
25588 (STACK_BOUNDARY): Replace DEFAULT_ABI with ix86_abi.
25589 (CONDITIONAL_REGISTER_USAGE): Likewise.
25590 (CUMULATIVE_ARGS): Change call_abi type to enum calling_abi.
25591 (machine_function): Likewise.
25592
25593 * config/i386/i386.md (untyped_call): Replace DEFAULT_ABI
25594 with ix86_abi.
25595 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Likewise.
25596 (STACK_BOUNDARY): Likewise.
25597 * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Likewise.
25598
25599 * config/i386/i386.opt (mabi=): New.
25600
25601 * config/i386/i386-protos.h (ix86_cfun_abi): Changed to
25602 return enum calling_abi.
25603 (ix86_function_type_abi): Likewise.
25604 (ix86_function_abi): Removed.
25605
25606 * doc/invoke.texi: Document -mabi= option for x86.
25607
25608 2009-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
25609
25610 * builtins.c (real_dconstp): Delete.
25611 (fold_builtin_logarithm): Remove inaccurate log(e) special case.
25612
25613 2009-03-27 Dodji Seketeli <dodji@redhat.com>
25614 Jakub Jelinek <jakub@redhat.com>
25615
25616 PR debug/37959
25617 * dwarf2out.c (dwarf_attr_name): Handle DW_AT_explicit attribute.
25618 (gen_subprogram_die): When a function is explicit, generate the
25619 DW_AT_explicit attribute.
25620 * langhooks.h (struct lang_hooks_for_decls): Add
25621 function_decl_explicit_p langhook.
25622 * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Define.
25623 (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P.
25624
25625 2009-03-27 Jakub Jelinek <jakub@redhat.com>
25626
25627 * builtins.c (fold_builtin_memory_op): Optimize memmove
25628 into memcpy if we can prove source and destination don't overlap.
25629
25630 * tree-inline.c: Include gt-tree-inline.h.
25631 (clone_fn_id_num): New variable.
25632 (clone_function_name): New function.
25633 (tree_function_versioning): Use it.
25634 * Makefile.in (GTFILES): Add tree-inline.c.
25635
25636 2009-03-27 Mark Mitchell <mark@codesourcery.com>
25637
25638 * BASE-VER: Change to 4.5.0.
25639
25640 2009-03-27 Xinliang David Li <davidxl@google.com>
25641
25642 PR tree-optimization/39557
25643 * tree-ssa.c (warn_uninitialized_vars): free postdom info.
25644
25645 2009-03-27 Xinliang David Li <davidxl@google.com>
25646
25647 PR tree-optimization/39548
25648 * tree-ssa-copy.c (copy_prop_visit_phi_node): Add copy
25649 candidate check.
25650
25651 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
25652
25653 * c-common.c (pointer_int_sum): Use %wd on return from
25654 tree_low_cst.
25655
25656 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
25657
25658 * c-common.c (pointer_int_sum): Use HOST_WIDE_INT_PRINT_DEC
25659 on return from tree_low_cst.
25660
25661 2009-03-27 Andrew Pinski <andrew_pinski@playstation.sony.com>
25662
25663 PR c++/36799
25664 * ginclude/stdarg.h (va_copy): Define also for
25665 __GXX_EXPERIMENTAL_CXX0X__.
25666
25667 2009-03-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
25668
25669 PR c++/35652
25670 * builtins.h (c_strlen): Do not warn here.
25671 * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
25672 * c-common.c (pointer_int_sum): Take an explicit location.
25673 Warn about offsets out of bounds.
25674 * c-common.h (pointer_int_sum): Adjust declaration.
25675
25676 2009-03-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25677
25678 * doc/invoke.texi (i386 and x86-64 Windows Options): Fix texinfo
25679 markup glitch.
25680
25681 2009-03-26 Jakub Jelinek <jakub@redhat.com>
25682
25683 PR c++/39554
25684 * opts.c (warn_if_disallowed_function_p): Don't assume
25685 get_callee_fndecl must return non-NULL.
25686
25687 2009-03-26 Vladimir Makarov <vmakarov@redhat.com>
25688
25689 PR rtl-optimization/39522
25690 * reload1.c (reload_as_needed): Invalidate reg_last_reload_reg too
25691 when reg_reloaded_valid is set.
25692
25693 2009-03-26 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
25694
25695 * config/spu/divv2df3.c: New file.
25696 * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add it.
25697 (DPBIT_FUNCS): Filter out _div_df.
25698
25699 2009-03-26 Bernd Schmidt <bernd.schmidt@analog.com>
25700
25701 * config/bfin/bfin.c (bfin_optimize_loop): If the LSETUP goes before
25702 a jump insn, count that jump in the distance to the loop start.
25703
25704 2009-03-25 Kaz Kojima <kkojima@gcc.gnu.org>
25705
25706 PR target/39523
25707 * config/sh/sh.c (calc_live_regs): Fix condition for global
25708 registers except PIC_OFFSET_TABLE_REGNUM.
25709
25710 2009-03-25 Kai Tietz <kai.tietz@onevision.com>
25711
25712 PR/39518
25713 * doc/invoke.texi (-mconsole): New.
25714 (-mcygwin): New.
25715 (-mno-cygwin): New.
25716 (-mdll): New.
25717 (-mnop-fun-dllimport): New.
25718 (-mthread): New.
25719 (-mwin32): New.
25720 (-mwindows): New.
25721 (sub section "i386 and x86-64 Windows Options"): New.
25722
25723 2009-03-25 Ralf Corsépius <ralf.corsepius@rtems.org>
25724
25725 * config/arm/rtems-elf.h: Remove LINK_GCC_C_SEQUENCE_SPEC.
25726 * config/rs6000/t-rtems: Remove MULTILIB_EXTRA_OPTS.
25727
25728 2009-03-25 Richard Guenther <rguenther@suse.de>
25729
25730 PR middle-end/39497
25731 * Makefile.in (dfp.o-warn): Use -fno-strict-aliasing instead
25732 of -Wno-error.
25733
25734 2009-03-25 Andrey Belevantsev <abel@ispras.ru>
25735
25736 * config/ia64/ia64.c (ia64_set_sched_flags): Zero spec_info->mask when
25737 neither of haifa/selective schedulers are working.
25738
25739 2009-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25740
25741 * doc/invoke.texi (Debugging Options): Fix description of
25742 -fno-merge-debug-strings.
25743
25744 2009-03-24 Hans-Peter Nilsson <hp@axis.com>
25745
25746 * config/cris/libgcc.ver: New version-script.
25747 * config/cris/t-linux (SHLIB_MAPFILES): Use it.
25748
25749 * configure.ac <GAS features, nop mnemonic>: Add pattern
25750 crisv32-*-* for "nop".
25751 <GAS features, Thread-local storage>: Add item for CRIS and CRIS v32.
25752 * configure: Regenerate.
25753
25754 2009-03-24 Ira Rosen <irar@il.ibm.com>
25755
25756 PR tree-optimization/39529
25757 * tree-vect-transform.c (vect_create_data_ref_ptr): Call
25758 mark_sym_for_renaming for the tag copied to the new vector
25759 pointer.
25760
25761 2009-03-24 Arthur Loiret <aloiret@debian.org>
25762
25763 * config.host (alpha*-*-linux*): Use driver-alpha.o and alpha/x-alpha.
25764 * config/alpha/linux.h (host_detect_local_cpu): Declare, add to
25765 EXTRA_SPEC_FUNCTIONS.
25766 (MCPU_MTUNE_NATIVE_SPECS, DRIVER_SELF_SPECS): New macros.
25767 * config/alpha/driver-alpha.c, config/alpha/x-alpha: New.
25768 * doc/invoke.texi (DEC Alpha Options): Document 'native' value for
25769 -march and -mtune options.
25770
25771 2009-03-24 Ralf Corsépius <ralf.corsepius@rtems.org>
25772
25773 * config/m68k/t-rtems: Add m5329 multilib.
25774
25775 2009-03-24 Dodji Seketeli <dodji@redhat.com>
25776 Jakub Jelinek <jakub@redhat.com>
25777
25778 PR debug/39524
25779 * dwarf2out.c (gen_variable_die): Avoid adding duplicate declaration
25780 nodes.
25781
25782 2009-03-23 Jakub Jelinek <jakub@redhat.com>
25783
25784 PR c/39495
25785 * c-parser.c (c_parser_omp_for_loop): Call c_parser_binary_expression
25786 instead of c_parser_expression_conv, if original_code isn't one of the
25787 4 allowed comparison codes, fail.
25788
25789 2009-03-23 Richard Guenther <rguenther@suse.de>
25790
25791 * cgraph.h (struct cgraph_node): Reorder fields for 64-bit hosts.
25792 * tree.h (struct tree_type): Likewise.
25793 * reload.h (struct insn_chain): Likewise.
25794 * dwarf2out.c (struct dw_loc_descr_struct): Likewise.
25795 * function.h (struct function): Likewise.
25796 * tree-ssa-structalias.c (struct equiv_class_label): Likewise.
25797
25798 2009-03-23 Jakub Jelinek <jakub@redhat.com>
25799
25800 PR tree-optimization/39516
25801 * lambda-code.c (perfect_nestify): Fix type of the uboundvar variable.
25802
25803 2009-03-23 Bingfeng Mei <bmei@broadcom.com>
25804
25805 * config.gcc (need_64bit_hwint): Make clear that need_64bit_hwint
25806 should be set true if BITS_PER_WORD of target is bigger than 32
25807
25808 2009-03-22 Hans-Peter Nilsson <hp@axis.com>
25809
25810 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC):
25811 Translate -B-options to -rpath-link. Correct existing
25812 rpath-link and conditionalize on !nostdlib.
25813
25814 2009-03-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25815
25816 * doc/extend.texi (Function Attributes, Variable Attributes):
25817 Fix typos.
25818 * doc/invoke.texi (Debugging Options, Optimize Options)
25819 (i386 and x86-64 Options, MCore Options): Likewise.
25820
25821 2009-03-20 Jakub Jelinek <jakub@redhat.com>
25822
25823 PR debug/37890
25824 * dwarf2out.c (gen_namespace_die): Add context_die argument and use
25825 it for block local namespace aliases.
25826 (gen_decl_die): Pass context_die to gen_namespace_die.
25827
25828 2009-03-19 Jakub Jelinek <jakub@redhat.com>
25829
25830 PR c/39495
25831 * c-omp.c (c_finish_omp_for): Allow NE_EXPR with TREE_TYPE (decl)'s
25832 minimum or maximum value.
25833
25834 2009-03-19 Alexandre Oliva <aoliva@redhat.com>
25835
25836 * reginfo.c (globalize_reg): Recompute derived reg sets.
25837
25838 2009-03-19 Ozkan Sezer <sezeroz@gmail.com>
25839
25840 PR target/39063
25841 * libgcc2.c (mprotect): Do not use signed arguments for
25842 VirtualProtect, use DWORD arguments. Also fix the 'may
25843 be used uninitialized' warning for the np variable.
25844
25845 2009-03-19 Jakub Jelinek <jakub@redhat.com>
25846
25847 PR target/39496
25848 * config/i386/i386.c (ix86_function_regparm): Don't optimize local
25849 functions using regparm calling conventions when not optimizing.
25850 (ix86_function_sseregparm): Similarly for sseregparm calling
25851 conventions.
25852
25853 2009-03-19 Li Feng <nemokingdom@gmail.com>
25854
25855 PR middle-end/39500
25856 * tree-data-ref.c (analyze_subscript_affine_affine): There is no
25857 dependence if the first conflict is after niter iterations.
25858
25859 2009-03-19 Hans-Peter Nilsson <hp@axis.com>
25860
25861 PR middle-end/38609
25862 * config/cris/cris.h (FRAME_POINTER_REQUIRED): Force for all
25863 functions with dynamic stack-pointer adjustments.
25864
25865 2009-03-19 Ben Elliston <bje@au.ibm.com>
25866
25867 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix -msdata-data
25868 option; change to -msdata=data.
25869
25870 2009-03-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25871
25872 * c.opt: Unify help texts for -Wdeprecated, -Wsystem-headers,
25873 and -fopenmp.
25874
25875 2009-03-18 Eric Botcazou <ebotcazou@adacore.com>
25876
25877 PR target/35180
25878 * config/sparc/sparc.md (do_builtin_setjmp_setup): Prettify asm output.
25879
25880 2009-03-18 Sandra Loosemore <sandra@codesourcery.com>
25881
25882 * doc/invoke.texi (Code Gen Options): Expand discussion of
25883 -fno-common.
25884
25885 2009-03-18 Jakub Jelinek <jakub@redhat.com>
25886
25887 * dse.c (struct group_info): Reorder fields for 64-bit hosts.
25888 * matrix-reorg.c (struct matrix_info): Likewise.
25889 * tree-ssa-loop-ivopts.c (struct ivopts_data): Likewise.
25890 * rtl.h (struct mem_attrs): Likewise.
25891 * df.h (struct df): Likewise.
25892 * tree-data-ref.h (struct data_dependence_relation): Likewise.
25893 * ira-int.h (struct ira_allocno): Likewise.
25894 * df-scan.c (struct df_collection_rec): Likewise.
25895 * ira.c (struct equivalence): Likewise.
25896 * function.c (struct temp_slot): Likewise.
25897 * cfgloop.h (struct loop): Likewise.
25898
25899 PR debug/39485
25900 * function.c (use_register_for_decl): When not optimizing, disregard
25901 register keyword for variables with types containing methods.
25902
25903 2009-03-18 Sebastian Pop <sebastian.pop@amd.com>
25904
25905 PR middle-end/39447
25906 * graphite.c (exclude_component_ref): Renamed contains_component_ref_p.
25907 (is_simple_operand): Call contains_component_ref_p before calling data
25908 reference analysis that would fail on COMPONENT_REFs.
25909
25910 * tree-vrp.c (search_for_addr_array): Fix formatting.
25911
25912 2009-03-18 Richard Guenther <rguenther@suse.de>
25913
25914 * tree-vect-transform.c (vect_loop_versioning): Fold the
25915 generated comparisons.
25916 * tree-vectorizer.c (set_prologue_iterations): Likewise.
25917 (slpeel_tree_peel_loop_to_edge): Likewise.
25918
25919 2009-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25920
25921 PR middle-end/37805
25922 * opts.c (print_specific_help): In addition to `undocumented',
25923 accept `separate' and `joined' flags if passed alone. Describe
25924 output by the first matched one of those.
25925 (common_handle_option): Skip over empty strings.
25926 * gcc.c (display_help): Fix help string for `--help='.
25927 * doc/invoke.texi (Option Summary, Overall Options): With
25928 `--help=', classes and qualifiers can both be repeated, but
25929 only the latter can be negated. One should not pass only
25930 negated qualifiers. Fix markup and examples.
25931
25932 Revert
25933 2008-10-14 Jakub Jelinek <jakub@redhat.com>
25934 PR middle-end/37805
25935 * opts.c (common_handle_option): Don't ICE on -fhelp=joined
25936 and -fhelp=separate.
25937
25938 2009-03-17 Jing Yu <jingyu@google.com>
25939
25940 PR middle-end/39378
25941 * function.h (struct rtl_data): Move is_thunk from here...
25942 (struct function): ...to here.
25943 * cp/method.c (use_thunk): Change is_thunk from crtl to cfun.
25944 * varasm.c (assemble_start_function): Change is_thunk from crtl to
25945 cfun.
25946 * config/alpha/alpha.c (alpha_sa_mask): Change is_thunk from crtl to
25947 cfun.
25948 (alpha_does_function_need_gp, alpha_start_function): Likewise.
25949 (alpha_output_function_end_prologue): Likewise.
25950 (alpha_end_function, alpha_output_mi_thunk_osf): Likewise.
25951 * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likewise.
25952 (rs6000_output_function_epilogue): Likewise.
25953 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Likewise.
25954
25955 2009-03-17 Uros Bizjak <ubizjak@gmail.com>
25956
25957 PR target/39482
25958 * config/i386/i386.md (*truncdfsf_mixed): Avoid combining registers
25959 from different units in a single alternative.
25960 (*truncdfsf_i387): Ditto.
25961 (*truncxfsf2_mixed): Ditto.
25962 (*truncxfdf2_mixed): Ditto.
25963
25964 2009-03-17 Jakub Jelinek <jakub@redhat.com>
25965
25966 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Allow
25967 non-NAMESPACE_DECL IMPORTED_DECL_ASSOCIATED_DECL.
25968
25969 PR debug/39474
25970 * tree-ssa-live.c (remove_unused_locals): Don't remove local
25971 unused non-artificial variables when not optimizing.
25972
25973 PR debug/39471
25974 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Emit
25975 DW_TAG_imported_module even if decl is IMPORTED_DECL with
25976 NAMESPACE_DECL in its DECL_INITIAL.
25977
25978 PR middle-end/39443
25979 * optabs.c (set_user_assembler_libfunc): New function.
25980 * expr.h (set_user_assembler_libfunc): New prototype.
25981 * c-common.c: Include libfuncs.h.
25982 (set_builtin_user_assembler_name): Call set_user_assembler_libfunc
25983 for memcmp, memset, memcpy, memmove and abort.
25984 * Makefile.in (c-common.o): Depend on libfuncs.h.
25985
25986 PR debug/39412
25987 * dwarf2out.c (gen_inlined_enumeration_type_die,
25988 gen_inlined_structure_type_die, gen_inlined_union_type_die,
25989 gen_tagged_type_instantiation_die): Removed.
25990 (gen_decl_die): For TYPE_DECL_IS_STUB with non-NULL decl_origin
25991 do nothing.
25992
25993 2009-03-17 Janis Johnson <janis187@us.ibm.com>
25994
25995 PR testsuite/38526
25996 * Makefile.in (site.exp): Rename TEST_GCC_EXEC_PREFIX and comment
25997 its use.
25998 (check-%): Don't set GCC_EXEC_PREFIX when invoking runtest.
25999 (check-parallel-%): Ditto.
26000 (check-consistency): Ditto.
26001
26002 2009-03-17 Kai Tietz <kai.tietz@onevision.com>
26003
26004 * ipa-struct-reorg.c (create_general_new_stmt): Initialize
26005 local variable rhs by NULL_TREE.
26006
26007 2009-03-17 H.J. Lu <hongjiu.lu@intel.com>
26008
26009 PR target/39477
26010 * doc/extend.texi: Correct register behavior for regparm on Intel 386.
26011
26012 2009-03-17 H.J. Lu <hongjiu.lu@intel.com>
26013
26014 PR target/39476
26015 * config/i386/i386.c (ix86_function_regparm): Rewrite for 64bit.
26016
26017 2009-03-17 H.J. Lu <hongjiu.lu@intel.com>
26018
26019 PR target/39473
26020 * config/i386/i386.c (ix86_expand_call): Check extra clobbers
26021 for ms->sysv ABI calls only in 64bit mode.
26022
26023 * config/i386/i386.md (untyped_call): Support 32bit.
26024
26025 2009-03-16 H.J. Lu <hongjiu.lu@intel.com>
26026
26027 * doc/extend.texi: Replace x86_65 with x86_64.
26028
26029 2009-03-16 Jakub Jelinek <jakub@redhat.com>
26030
26031 PR tree-optimization/39455
26032 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Fix types
26033 mismatches for POINTER_TYPE_P (type).
26034 (number_of_iterations_le): Likewise.
26035
26036 2009-03-16 Hariharan Sandanagobalane <hariharan@picochip.com>
26037
26038 * config/picochip/picochip.c: Removed profiling support.
26039 * config/picochip/picochip.md: Removed profiling instruction.
26040 * config/picochip/picochip.h: Removed profiling builtin.
26041
26042 2009-03-16 Joseph Myers <joseph@codesourcery.com>
26043
26044 * doc/install.texi (--with-host-libstdcxx): Document.
26045
26046 2009-03-14 Anatoly Sokolov <aesok@post.ru>
26047
26048 PR target/34299
26049 * config/avr/avr.c (avr_handle_fndecl_attribute): Move code for
26050 generate a warning if the function name does not begin with
26051 "__vector" and the function has either the 'signal' or 'interrupt'
26052 attribute, from here to ...
26053 (avr_declare_function_name): ...here. New function.
26054 * config/avr/avr.h (ASM_DECLARE_FUNCTION_NAME): Redefine.
26055 * config/avr/avr-protos.h (avr_declare_function_name): Declare.
26056
26057 2009-03-14 Jakub Jelinek <jakub@redhat.com>
26058
26059 PR bootstrap/39454
26060 * cse.c (fold_rtx): Don't modify original const_arg1 when
26061 canonicalizing SHIFT_COUNT_TRUNCATED shift count, do it on a
26062 separate variable instead.
26063 * rtlanal.c (nonzero_bits1) <case ASHIFTRT>: Don't assume anything
26064 from out of range shift counts.
26065 (num_sign_bit_copies1) <case ASHIFTRT, case ASHIFT>: Similarly.
26066
26067 2009-03-13 Catherine Moore <clm@codesourcery.com>
26068
26069 * config/i386/x-mingw32 (host-mingw32.o): Replace
26070 diagnostic.h with $(DIAGNOSTIC_H).
26071
26072 2009-03-12 Jakub Jelinek <jakub@redhat.com>
26073
26074 PR target/39431
26075 * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): New
26076 predicate.
26077 * config/i386/sync.md (sync_compare_and_swap<mode>,
26078 sync_compare_and_swap_cc<mode>): For DImode with -m32 -fpic check
26079 if operands[1] is cmpxchg8b_pic_memory_operand, if not force address
26080 into a register.
26081 (sync_double_compare_and_swapdi_pic,
26082 sync_double_compare_and_swap_ccdi_pic): Require operand 1 to be
26083 cmpxchg8b_pic_memory_operand instead of just memory_operand.
26084
26085 2009-03-12 H.J. Lu <hongjiu.lu@intel.com>
26086
26087 PR target/39445
26088 * config/i386/i386.c (ix86_expand_push): Don't set memory alignment.
26089
26090 2009-03-12 H.J. Lu <hongjiu.lu@intel.com>
26091
26092 PR target/39327
26093 * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
26094 (avx_addsubv4df3): Likewise.
26095 (*avx_addsubv4sf3): Likewise.
26096 (sse3_addsubv4sf3): Likewise.
26097
26098 2009-03-12 H.J. Lu <hongjiu.lu@intel.com>
26099
26100 PR target/38824
26101 * config/i386/i386.md: Compare REGNO on the new peephole2 patterns.
26102
26103 2009-03-12 Vladimir Makarov <vmakarov@redhat.com>
26104
26105 PR debug/39432
26106 * ira-int.h (struct allocno): Fix comment for calls_crossed_num.
26107 * ira-conflicts.c (ira_build_conflicts): Prohibit call used
26108 registers for allocnos created from user-defined variables.
26109
26110 2009-03-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26111
26112 PR target/39181
26113 * config/spu/spu.c (spu_expand_mov): Handle invalid subregs
26114 of non-integer mode as well.
26115
26116 2009-03-11 Adam Nemet <anemet@caviumnetworks.com>
26117
26118 * gimplify.c (gimplify_call_expr): Don't set CALL_CANNOT_INLINE_P
26119 for functions for which the parameter types are unknown.
26120
26121 2009-03-11 Jakub Jelinek <jakub@redhat.com>
26122
26123 PR target/39137
26124 * cfgexpand.c (get_decl_align_unit): Use LOCAL_DECL_ALIGNMENT macro.
26125 * defaults.h (LOCAL_DECL_ALIGNMENT): Define if not yet defined.
26126 * config/i386/i386.h (LOCAL_DECL_ALIGNMENT): Define.
26127 * config/i386/i386.c (ix86_local_alignment): For
26128 -m32 -mpreferred-stack-boundary=2 use 32-bit alignment for
26129 long long variables on the stack to avoid dynamic realignment.
26130 Allow the first argument to be a decl rather than type.
26131 * doc/tm.texi (LOCAL_DECL_ALIGNMENT): Document.
26132
26133 2009-03-11 Nick Clifton <nickc@redhat.com>
26134
26135 PR target/5362
26136 * config/mcore/mcore.opt: Remove deprecated m4align and m8align
26137 options.
26138 Add description to mno-lsim option.
26139 * config/mcore/mcore.h: Remove comment about deprecated m4align
26140 option.
26141 (TARGET_DEFAULT): Remove deprecated MASK_M8ALIGN.
26142 * doc/invoke.texi: Add description of mno-lsim and
26143 mstack-increment options.
26144
26145 * config/fr30/fr30.opt: Document the -mno-lsim option.
26146 * doc/invoke.texi: Add descriptions of the FR30's -msmall-model
26147 and -mno-lsim options.
26148
26149 2009-03-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26150
26151 * fold-const.c (fold_comparison): Only call fold_inf_compare
26152 if the mode supports infinities.
26153
26154 2009-03-11 Jason Merrill <jason@redhat.com>
26155
26156 PR debug/39086
26157 * tree-nrv.c (tree_nrv): Don't do this optimization if the front
26158 end already did. Notice GIMPLE_CALL modifications of the result.
26159 Don't copy debug information from an ignored decl or a decl from
26160 another function.
26161
26162 2009-03-10 Richard Guenther <rguenther@suse.de>
26163 Nathan Froyd <froydnj@codesourcery.com>
26164
26165 PR middle-end/37850
26166 * libgcc2.c (__mulMODE3): Use explicit assignments to form the result.
26167 (__divMODE3): Likewise.
26168
26169 2009-03-09 Jakub Jelinek <jakub@redhat.com>
26170
26171 PR tree-optimization/39394
26172 * gimplify.c (gimplify_type_sizes): Gimplify DECL_SIZE and
26173 DECL_SIZE_UNIT of variable length FIELD_DECLs.
26174
26175 2009-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26176
26177 * recog.c (verfiy_changes): Disallow renaming of hard regs in
26178 inline asms for register asm ("") declarations.
26179
26180 2009-03-09 Eric Botcazou <ebotcazou@adacore.com>
26181
26182 * fold-const.c (fold_unary): Fix comment.
26183
26184 2009-03-07 Jan Hubicka <jh@suse.cz>
26185
26186 PR target/39361
26187 * tree-inline.c (setup_one_parameter): Do replacement of const
26188 argument by constant in SSA form.
26189
26190 2009-03-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26191
26192 PR middle-end/38028
26193 * function.c (assign_parm_setup_stack): Use STACK_SLOT_ALIGNMENT to
26194 determine alignment passed to assign_stack_local.
26195 (assign_parms_unsplit_complex): Likewise.
26196 * except.c (sjlj_build_landing_pads): Likewise.
26197
26198 2009-03-06 Jakub Jelinek <jakub@redhat.com>
26199
26200 PR middle-end/39360
26201 * tree-flow.h (add_referenced_var): Return bool instead of void.
26202 * tree-dfa.c (add_referenced_var): Return result of
26203 referenced_var_check_and_insert call.
26204 * tree-inline.c (expand_call_inline): Call add_referenced_var instead
26205 of referenced_var_check_and_insert.
26206
26207 PR debug/39372
26208 * dwarf2out.c (add_abstract_origin_attribute): Return origin_die.
26209 (gen_variable_die): Emit DW_AT_location on abstract static variable's
26210 DIE, don't emit it if abstract origin already has it.
26211 * tree-cfg.c (remove_useless_stmts_bind): GIMPLE_BINDs with any
26212 BLOCK_NONLOCALIZED_VARS in its gimple_bind_block aren't useless.
26213
26214 2009-03-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
26215
26216 * genpreds.c (needs_variable): Fix parentheses at variable name
26217 detection.
26218 (write_tm_constrs_h): Indent generated code.
26219
26220 2009-03-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26221
26222 * doc/extend.texi (Function Attributes): Add documentation
26223 for isr attributes.
26224
26225 2009-03-06 Jakub Jelinek <jakub@redhat.com>
26226
26227 PR debug/39387
26228 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): For IMPORTED_DECL
26229 take locus from its DECL_SOURCE_LOCATION instead of input_location.
26230
26231 2009-03-05 Bernd Schmidt <bernd.schmidt@analog.com>
26232
26233 * config/bfin/bfin.c (bfin_discover_loop): When retrying fails, mark
26234 the loop as bad.
26235
26236 2009-03-05 Jakub Jelinek <jakub@redhat.com>
26237
26238 PR debug/39379
26239 * tree-cfg.c (remove_useless_stmts_bind): Don't remove GIMPLE_BINDs
26240 with blocks containing IMPORTED_DECLs in BLOCK_VARS.
26241
26242 2009-03-05 Uros Bizjak <ubizjak@gmail.com>
26243
26244 * config/i386/i386.md (R8_REG, R9_REG): New constants.
26245 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Use named
26246 constants instead of magic numbers.
26247 (HARD_REGNO_CALLER_SAVE_MODE): Ditto.
26248 (QI_REG_P): Ditto.
26249 * config/i386/i386.c (x86_64_int_parameter_registers): Ditto.
26250 (x86_64_ms_abi_int_parameter_registers): Ditto.
26251 (x86_64_int_return_registers): Ditto.
26252 (ix86_maybe_switch_abi): Ditto.
26253 (ix86_expand_call): Ditto for clobbered_registers array.
26254 (ix86_hard_regno_mode_ok): Ditto.
26255 (x86_extended_QIreg_mentioned_p): Ditto.
26256
26257 2009-03-05 J"orn Rennecke <joern.rennecke@arc.com>
26258
26259 PR tree-optimization/39349
26260 * cse.c (cse_insn): Fix loop to stop at VOIDmode.
26261
26262 * combine.c (gen_lowpart_for_combine): Use omode when generating
26263 clobber.
26264
26265 2009-03-04 J"orn Rennecke <joern.rennecke@arc.com>
26266
26267 PR rtl-optimization/39235
26268 * loop-iv.c (get_simple_loop_desc): Use XCNEW.
26269
26270 2009-03-04 Zdenek Dvorak <ook@ucw.cz>
26271
26272 * graphite.c (nb_reductions_in_loop): Update simple_iv arguments.
26273
26274 2009-03-04 Richard Guenther <rguenther@suse.de>
26275
26276 PR tree-optimization/39362
26277 * tree-ssa-sccvn.c (visit_use): Stores and copies from SSA_NAMEs
26278 that occur in abnormal PHIs should be varying.
26279
26280 2009-03-04 Zdenek Dvorak <ook@ucw.cz>
26281
26282 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop):
26283 Extend comments.
26284 (simple_iv): Take loop as an argument instead of statement.
26285 * tree-scalar-evolution.h (simple_iv): Declaration changed.
26286 * tree-ssa-loop-niter.c (number_of_iterations_exit): Update calls
26287 to simple_iv.
26288 * tree-ssa-loop-ivopts.c (determine_biv_step, find_givs_in_stmt_scev):
26289 Ditto.
26290 * tree-parloops.c (loop_parallel_p, canonicalize_loop_ivs): Ditto.
26291 * matrix-reorg.c (analyze_transpose): Ditto.
26292 * tree-data-ref.c (dr_analyze_innermost): Ditto.
26293 * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
26294 * tree-predcom.c (ref_at_iteration): Ditto.
26295 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Ditto.
26296
26297 2009-03-04 Richard Guenther <rguenther@suse.de>
26298
26299 PR tree-optimization/39358
26300 * tree-ssa-structalias.c (do_sd_constraint): Fix check for
26301 escaped_id and callused_id.
26302 (solve_graph): Likewise.
26303
26304 2009-03-04 Richard Guenther <rguenther@suse.de>
26305
26306 PR tree-optimization/39339
26307 * tree-sra.c (try_instantiate_multiple_fields): Make it
26308 no longer ICE on the above.
26309
26310 2009-03-03 Joseph Myers <joseph@codesourcery.com>
26311
26312 * emit-rtl.c (adjust_address_1): Reduce offset to a signed value
26313 that fits within Pmode.
26314
26315 2009-03-03 Steve Ellcey <sje@cup.hp.com>
26316
26317 PR middle-end/10109
26318 * tm.texi (LIBCALL_VALUE): Update description.
26319
26320 2009-03-03 Steve Ellcey <sje@cup.hp.com>
26321
26322 PR middle-end/34443
26323 * doc/extend.texi (section): Update description.
26324
26325 2009-03-03 H.J. Lu <hongjiu.lu@intel.com>
26326
26327 PR middle-end/39345
26328 * tree-inline.c (remapped_type): New.
26329 (can_be_nonlocal): Call remapped_type instead of remap_type.
26330
26331 2009-03-03 Jakub Jelinek <jakub@redhat.com>
26332
26333 PR fortran/39354
26334 * gimplify.c (goa_stabilize_expr): Handle tcc_comparison,
26335 TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR.
26336
26337 2009-03-03 Richard Guenther <rguenther@suse.de>
26338
26339 PR middle-end/39272
26340 * tree.c (tree_nonartificial_location): New function.
26341 * tree.h (tree_nonartificial_location): Declare.
26342 * builtins.c (expand_builtin_memory_chk): Provide location
26343 of the call location for artificial function pieces.
26344 (maybe_emit_chk_warning): Likewise.
26345 (maybe_emit_sprintf_chk_warning): Likewise.
26346 (maybe_emit_free_warning): Likewise.
26347 * expr.c (expand_expr_real_1): Likewise.
26348
26349 2009-03-03 Jakub Jelinek <jakub@redhat.com>
26350
26351 PR tree-optimization/39343
26352 * tree-ssa-ccp.c (maybe_fold_offset_to_address): Don't check if
26353 COMPONENT_REF t has ARRAY_TYPE.
26354
26355 2009-03-02 Sebastian Pop <sebastian.pop@amd.com>
26356
26357 PR middle-end/39335
26358 * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
26359 when the type precision of the induction variable should be
26360 larger than the type precision of nit.
26361 (gen_parallel_loop): Update use of canonicalize_loop_ivs.
26362 * graphite.c (graphite_loop_normal_form): Same.
26363 * tree-flow.h (canonicalize_loop_ivs): Update declaration.
26364
26365 2009-03-02 Uros Bizjak <ubizjak@gmail.com>
26366
26367 * config/i386/i386.md (ST?_REG, MM?_REG): New constants.
26368 (*call_1_rex64_ms_sysv): Use named constants instead of magic
26369 numbers to describe clobbered registers.
26370 (*call_value_0_rex64_ms_sysv): Ditto.
26371 * config/i386/mmx.md (mmx_emms): Ditto.
26372 (mmx_femms): Ditto.
26373
26374 2009-03-02 Richard Sandiford <rdsandiford@googlemail.com>
26375
26376 * config/mips/mips.c (mips_mdebug_abi_name): Fix the handling
26377 of ABI_64.
26378
26379 2009-03-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26380
26381 * config/spu/spu.c (TARGET_SECTION_TYPE_FLAGS): Define.
26382 (spu_section_type_flags): New function.
26383
26384 2009-03-02 Uros Bizjak <ubizjak@gmail.com>
26385
26386 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not copy
26387 reg_class_contents of FLOAT_REGS into a temporary.
26388
26389 2009-03-02 Richard Guenther <rguenther@suse.de>
26390 Ira Rosen <irar@il.ibm.com>
26391
26392 PR tree-optimization/39318
26393 * tree-vect-transform.c (vectorizable_call): Transfer the EH region
26394 information to the vectorized statement.
26395
26396 2009-03-01 Uros Bizjak <ubizjak@gmail.com>
26397
26398 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not shadow "i"
26399 variable. Use defined names instead of magic constants for REX SSE
26400 registers.
26401
26402 2009-03-01 Richard Guenther <rguenther@suse.de>
26403
26404 PR tree-optimization/39331
26405 * omp-low.c (lower_send_shared_vars): Do not receive new
26406 values for the reference of DECL_BY_REFERENCE parms or results.
26407
26408 2009-03-01 Jan Hubicka <jh@suse.cz>
26409
26410 PR debug/39267
26411 * tree.h (BLOCK_NONLOCALIZED_VARS, BLOCK_NUM_NONLOCALIZED_VARS,
26412 BLOCK_NONLOCALIZED_VAR): New macros.
26413 (tree_block): Add nonlocalized_vars.
26414 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die,
26415 gen_decl_die): Add origin argument. Allow generation of die with
26416 origin at hand only.
26417 (gen_member_die, gen_type_die_with_usage, force_decl_die,
26418 declare_in_namespace, gen_namescpace_die, dwarf2out_decl): Update use
26419 of gen_*.
26420 (gen_block_die): Fix checking for unused blocks.
26421 (process_scope_var): Break out from .... ; work with origins only.
26422 (decls_for_scope) ... here; process nonlocalized list.
26423 (dwarf2out_ignore_block): Look for nonlocalized vars.
26424 * tree-ssa-live.c (remove_unused_scope_block_p): Look for nonlocalized
26425 vars.
26426 (dump_scope_block): Dump them.
26427 * tree-inline.c (remap_decls): Handle nonlocalized vars.
26428 (remap_block): Likewise.
26429 (can_be_nonlocal): New predicate.
26430 (copy_bind_expr, copy_gimple_bind): Update use of remap_block.
26431
26432 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26433
26434 * configure: Regenerate.
26435
26436 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26437
26438 * optc-gen.awk: No need to duplicate option flags twice.
26439 Reuse help texts for duplicate options which do not have any.
26440
26441 * gcc.c (display_help): Document --version.
26442
26443 * gcc.c (main): If print_help_list and verbose_flag, ensure
26444 driver output comes before subprocess output.
26445
26446 * optc-gen.awk: Assign all remaining fields to help string,
26447 space-separated, for multi-line help in *.opt.
26448
26449 * doc/invoke.texi (Warning Options): -Wsync-nand is C/C++ only.
26450 -Wno-pedantic-ms-format is for MinGW targets only.
26451
26452 * doc/options.texi (Option file format): Fix bad indentation,
26453 restoring dropped sentence.
26454
26455 2009-02-28 Jan Hubicka <jh@suse.cz>
26456
26457 * tree-inline.c (tree_function_versioning): Output debug info.
26458
26459 2009-02-28 Jan Hubicka <jh@suse.cz>
26460
26461 PR debug/39267
26462 * tree-inline.c (setup_one_parameter): Do not copy propagate
26463 arguments when not optimizing.
26464
26465 2009-02-28 H.J. Lu <hongjiu.lu@intel.com>
26466
26467 PR target/39327
26468 * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
26469 (avx_addsubv4df3): Likewise.
26470 (*avx_addsubv4sf3): Likewise.
26471 (sse3_addsubv4sf3): Likewise.
26472 (*avx_addsubv2df3): Likewise.
26473 (sse3_addsubv2df3): Likewise.
26474 (avx_unpckhps256): Correct item selectors.
26475 (avx_unpcklps256): Likewise.
26476 (avx_unpckhpd256): Likewise.
26477 (avx_unpcklpd256): Likewise.
26478
26479 2009-02-28 Jan Hubicka <jh@suse.cz>
26480
26481 * tree-inline.c (expand_call_inline): Avoid duplicate declarations of
26482 static vars.
26483 (copy_arguments_for_versioning): If var is declared don't declare it.
26484 (tree_function_versioning): First setup substitutions and then copy
26485 args.
26486
26487 2009-02-27 Jan Hubicka <jh@suse.cz>
26488
26489 PR debug/39267
26490 * cgraph.h (varpool_output_debug_info): Remove.
26491 * cgraphunit.c (varpool_output_debug_info): Remove.
26492 * dwarf2out.c (deferred_locations_struct): New struct
26493 (deferred_locations): New type.
26494 (deferred_locations_list): New static var.
26495 (deffer_location): New function.
26496 (gen_variable_die): Use it.
26497 (decls_for_scope): Output info on local static vars.
26498 (dwarf2out_finish): Process deferred locations.
26499 * varpool.c (varpool_output_debug_info): Remove.
26500
26501 2009-02-27 Jan Hubicka <jh@suse.cz>
26502
26503 PR debug/39267
26504 * tree.h (TREE_PROTECTED): Fix comment.
26505 (BLOCK_HANDLER_BLOCK): Remove.
26506 (struct tree_block): Remove handler_block add body_block.
26507 (inlined_function_outer_scope_p): New.
26508 (is_body_block): Remove.
26509 * dbxout.c (dbxout_block): Remove BLOCK_HANDLER_BLOCK.
26510 * dwarf2out.c (is_inlined_entry_point): Remove.
26511 (add_high_low_attributes): Use inlined_function_outer_scope_p.
26512 (gen_block_die): Use is_inlined_entry_point check. Remove body block
26513 code.
26514 * langhooks.h (struct lang_hooks): Remove no_bodu_blocks.
26515 * gimplify.c (gimplify_expr): Gimplify body blocks.
26516 * tree-ssa-live.c (remove_unused_scope_block_p): Allow removing wrapper
26517 block with multiple subblocks.
26518 (dump_scope_block): Prettier output; dump more flags and info.
26519 (dump_scope_blocks): New.
26520 (remove_unused_locals): Use dump_scope_blocks.
26521 * tree-flow.h (dump_scope_blocks): Declare.
26522 * tree-cfg.c (execute_build_cfg): Dump scope blocks.
26523 * stmt.c (is_body_block): Remove.
26524 * tree-inline.c (remap_block): Copy BODY_BLOCK info.
26525 * langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): Remove.
26526
26527 2009-02-27 Sebastian Pop <sebastian.pop@amd.com>
26528
26529 PR middle-end/39308
26530 * graphite.c (graphite_loop_normal_form): Do not call
26531 number_of_iterations_exit from a gcc_assert.
26532
26533 2009-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26534
26535 * config/s390/s390.c (s390_swap_cmp): Look for conditional
26536 jumps if COND is NULL.
26537 (find_cond_jump): New function.
26538 (s390_z10_optimize_cmp): Handling for reg-reg compares added.
26539 * config/s390/s390.md: Remove z10_cobra attribute value.
26540
26541 2009-02-26 Uros Bizjak <ubizjak@gmail.com>
26542
26543 * config/alpha/alpha.h (alpha_expand_mov): Return false if
26544 force_const_mem returns NULL_RTX.
26545
26546 2009-02-26 Jan Hubicka <jh@suse.cz>
26547
26548 PR debug/39267
26549 * cgraph.h (varpool_output_debug_info): Remove.
26550 * cgraphunit.c (varpool_output_debug_info): Remove.
26551 * dwarf2out.c (deferred_locations_struct): New struct
26552 (deferred_locations): New type.
26553 (deferred_locations_list): New static var.
26554 (deffer_location): New function.
26555 (gen_variable_die): Use it.
26556 (decls_for_scope): Output info on local static vars.
26557 (dwarf2out_finish): Process deferred locations.
26558 * varpool.c (varpool_output_debug_info): Remove.
26559
26560 2009-02-25 H.J. Lu <hongjiu.lu@intel.com>
26561
26562 PR rtl-optimization/39241
26563 * jump.c (rtx_renumbered_equal_p): Remove 2 superfluous calls
26564 to subreg_offset_representable_p.
26565
26566 2009-02-25 Paolo Bonzini <bonzini@gnu.org>
26567
26568 * regmove.c (regmove_optimize): Conform to struct rtl_opt_pass
26569 execute function prototype. Get f and nregs from max_reg_num
26570 and get_insns. Remove the first backward pass as it's dead,
26571 guard the forward pass by flag_expensive_optimizations.
26572 (rest_of_handle_regmove): Delete.
26573 (pass_regmove): Replace it with regmove_optimize.
26574
26575 2009-02-25 Martin Jambor <mjambor@suse.cz>
26576
26577 PR tree-optimization/39259
26578 * tree-inline.c (initialize_cfun): Remove asserts for calls_setjmp and
26579 calls_alloca function flags.
26580 (copy_bb): Set calls_setjmp and alls_alloca function flags if such
26581 calls are detected.
26582
26583 2009-02-25 Paolo Bonzini <bonzini@gnu.org>
26584
26585 * regmove.c (discover_flags_reg, flags_set_1, mark_flags_life_zones,
26586 flags_set_1_rtx, flags_set_1_set): Delete.
26587 (regmove_optimize): Do not call mark_flags_life_zones.
26588
26589 2009-02-24 Julian Brown <julian@codesourcery.com>
26590
26591 PR target/35965
26592 * config/arm/arm.c (require_pic_register): Only set
26593 cfun->machine->pic_reg once per function.
26594
26595 2009-02-24 Sandra Loosemore <sandra@codesourcery.com>
26596
26597 * doc/invoke.texi (Link Options): Document an easier way to pass
26598 options that take arguments to the GNU linker using -Xlinker and -Wl.
26599
26600 2009-02-24 Steve Ellcey <sje@cup.hp.com>
26601
26602 PR target/33785
26603 * doc/tm.texi (TARGET_C99_FUNCTIONS): Fix description.
26604
26605 2009-02-24 Richard Guenther <rguenther@suse.de>
26606
26607 PR debug/39285
26608 * dwarf2out.c (gen_enumeration_type_die): Handle CONST_DECLs.
26609
26610 2009-02-24 Richard Guenther <rguenther@suse.de>
26611 Zdenek Dvorak <ook@ucw.cz>
26612
26613 PR tree-optimization/39233
26614 * tree-ssa-loop-ivopts.c (add_candidate_1): Do not except pointers
26615 from converting them to a generic type.
26616
26617 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
26618
26619 PR tree-optimization/39260
26620 * graphite.c (harmful_stmt_in_bb): Stop a SCoP when the basic block
26621 contains a condition with a real type.
26622 (build_scop_conditions_1): Conditions are always last_stmt of a bb.
26623
26624 2009-02-23 Jason Merrill <jason@redhat.com>
26625
26626 PR c++/38880
26627 * varasm.c (initializer_constant_valid_p) [PLUS_EXPR]: Check
26628 narrowing_initializer_constant_valid_p.
26629 (narrowing_initializer_constant_valid_p): Don't return
26630 null_pointer_node for adding a pointer to itself.
26631
26632 2009-02-23 Jan Hubicka <jh@suse.cz>
26633
26634 PR c/12245
26635 * ggc.h (htab_create_ggc): Use ggc_free to free hashtable when
26636 resizing.
26637
26638 2009-02-23 Jan Hubicka <jh@suse.cz>
26639
26640 PR tree-optimization/37709
26641 * tree.c (block_ultimate_origin): Move here from dwarf2out.
26642 * tree.h (block_ultimate_origin): Declare.
26643 * dwarf2out.c (block_ultimate_origin): Move to tree.c
26644 * tree-ssa-live.c (remove_unused_scope_block_p):
26645 Eliminate blocks containig no instructions nor live variables nor
26646 nested blocks.
26647 (dump_scope_block): New function.
26648 (remove_unused_locals): Enable removal of dead blocks by default;
26649 enable dumping at TDF_DETAILS.
26650
26651 2009-02-21 H.J. Lu <hongjiu.lu@intel.com>
26652
26653 * config/i386/i386.c (classify_argument): Don't allow COImode
26654 and OImode.
26655 (function_arg_advance_32): Don't allow OImode.
26656 (function_arg_32): Likewise.
26657 (function_value_32): Likewise.
26658 (return_in_memory_32): Likewise.
26659 (function_arg_64): Remove OImode comment.
26660
26661 2009-02-21 H.J. Lu <hongjiu.lu@intel.com>
26662
26663 PR target/39261
26664 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
26665 ix86_expand_vector_set for V4DImode in 64bit mode only.
26666 (ix86_expand_vector_init_one_var): Likewise.
26667
26668 2009-02-21 Sebastian Pop <sebastian.pop@amd.com>
26669
26670 * graphite.c (graphite_trans_loop_block): Adjust tile size to 51.
26671
26672 2009-02-21 Richard Sandiford <rdsandiford@googlemail.com>
26673
26674 PR bootstrap/39257
26675 * loop-iv.c: Revert last change.
26676 * emit-rtl.c: Likewise.
26677
26678 2009-02-21 H.J. Lu <hongjiu.lu@intel.com>
26679
26680 PR target/39256
26681 * config/i386/i386.c (type_natural_mode): Remove an extra
26682 space in the warning message.
26683 (function_value_32): Handle 32-byte vector modes.
26684 (return_in_memory_32): Likewise.
26685
26686 2009-02-21 Richard Sandiford <rdsandiford@googlemail.com>
26687
26688 * loop-iv.c (truncate_value): New function.
26689 (iv_subreg, get_iv_value, iv_number_of_iterations): Use it instead
26690 of lowpart_subreg.
26691 (lowpart_subreg): Move to...
26692 * emit-rtl.c: ...here.
26693
26694 2009-02-21 Danny Smith <dannysmith@users.sourceforge.net>
26695
26696 * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Revert
26697 accidental and undocumented change at revision 140860.
26698
26699 2009-02-21 Joseph Myers <joseph@codesourcery.com>
26700
26701 * config/arm/arm.c (arm_gimplify_va_arg_expr): Update prototype to
26702 take gimple_seq * arguments.
26703 (arm_mangle_type): Use CONST_CAST_TREE on type argument passed to
26704 types_compatible_p langhook.
26705
26706 2009-02-20 Mark Mitchell <mark@codesourcery.com>
26707 Joseph Myers <joseph@codesourcery.com>
26708
26709 * config/arm/arm.c (arm_builtin_va_list): New function.
26710 (arm_expand_builtin_va_start): Likewise.
26711 (arm_gimplify_va_arg_expr): Likewise.
26712 (TARGET_BUILD_BUILTIN_VA_LIST): Define.
26713 (TARGET_BUILD_BUILTIN_VA_START): Likewise.
26714 (TARGET_BUILD_BUILTIN_VA_ARG_EXPR): Likewise.
26715 (va_list_type): New variable.
26716 (arm_mangle_type): Mangle va_list_type appropriately.
26717
26718 2009-02-20 Jakub Jelinek <jakub@redhat.com>
26719
26720 PR middle-end/39157
26721 * Makefile.in (loop-invariant.o): Depend on $(PARAMS_H).
26722 * params.h (LOOP_INVARIANT_MAX_BBS_IN_LOOP): Define.
26723 * params.def (loop-invariant-max-bbs-in-loop): New parameter.
26724 * opts.c (decode_options): Set loop-invariant-max-bbs-in-loop
26725 parameter to 1000 for -O1 by default.
26726 * doc/invoke.texi (loop-invariant-max-bbs-in-loop): Document new
26727 parameter.
26728 * loop-invariant.c: Include params.h.
26729 (move_loop_invariants): Don't call move_single_loop_invariants on
26730 very large loops.
26731
26732 2009-02-20 Jaka Mocnik <jaka@xlab.si>
26733
26734 * calls.c (emit_library_call_value_1): Use slot_offset instead of
26735 offset when calculating bounds for indexing stack_usage_map. Fixes
26736 a buffer overflow with certain target setups.
26737
26738 2009-02-20 Jakub Jelinek <jakub@redhat.com>
26739
26740 PR target/39240
26741 * calls.c (expand_call): Clear try_tail_call if caller and callee
26742 disagree in promotion of function return value.
26743
26744 2009-02-19 Jakub Jelinek <jakub@redhat.com>
26745
26746 PR target/39175
26747 * c-common.c (c_determine_visibility): If visibility changed and
26748 DECL_RTL has been already set, call make_decl_rtl to update symbol
26749 flags.
26750
26751 2009-02-19 H.J. Lu <hongjiu.lu@intel.com>
26752
26753 PR c++/39188
26754 * varasm.c (assemble_variable): Don't check DECL_NAME when
26755 globalizing a variable.
26756
26757 2009-02-19 Joseph Myers <joseph@codesourcery.com>
26758
26759 PR c/38483
26760 * builtins.c (gimplify_va_arg_expr): Evaluate the va_list
26761 expression before any __builtin_trap call.
26762 * c-typeck.c (build_function_call): Convert and check function
26763 arguments before generating a call to a trap. Evaluate the
26764 function arguments before the trap.
26765
26766 2009-02-19 Uros Bizjak <ubizjak@gmail.com>
26767
26768 PR target/39228
26769 * config/i386/i386.md (isinfxf2): Split from isinf<mode>2.
26770 (UNSPEC_FXAM_MEM): New unspec.
26771 (fxam<mode>2_i387_with_temp): New insn and split pattern.
26772 (isinf<mode>2): Use MODEF mode iterator. Force operand[1] through
26773 memory using fxam<mode>2_i387_with_temp to remove excess precision.
26774
26775 2009-02-19 Richard Guenther <rguenther@suse.de>
26776
26777 PR tree-optimization/39207
26778 PR tree-optimization/39074
26779 * tree-ssa-structalias.c (storedanything_id, var_storedanything,
26780 storedanything_tree): New.
26781 (do_ds_constraint): Simplify ANYTHING shortcutting. Update
26782 the STOREDANYTHING solution if the lhs solution contains ANYTHING.
26783 (build_succ_graph): Add edges from STOREDANYTHING to all
26784 non-direct nodes.
26785 (init_base_vars): Initialize STOREDANYTHING.
26786 (compute_points_to_sets): Free substitution info after
26787 building the succ graph.
26788 (ipa_pta_execute): Likewise.
26789
26790 * tree-ssa-structalias.c (struct variable_info): Add may_have_pointers
26791 field.
26792 (do_ds_constraint): Do not add to special var or non-pointer
26793 field solutions.
26794 (type_could_have_pointers): Split out from ...
26795 (could_have_pointers): ... here. For arrays use the element type.
26796 (create_variable_info_for): Initialize may_have_pointers.
26797 (new_var_info): Likewise.
26798 (handle_lhs_call): Make the HEAP variable unknown-sized.
26799 (intra_create_variable_infos): Use a type with pointers for
26800 PARM_NOALIAS, make it unknown-sized.
26801
26802 2009-02-18 H.J. Lu <hongjiu.lu@intel.com>
26803
26804 PR target/39224
26805 * config/i386/i386.c (ix86_return_in_memory): Properly check ABI.
26806
26807 2009-02-18 Jason Merrill <jason@redhat.com>
26808
26809 PR target/39179
26810 * tree-ssa-ccp.c (get_symbol_constant_value): Don't assume zero
26811 value if DECL_EXTERNAL.
26812 * tree-sra.c (sra_walk_gimple_assign): Likewise.
26813 * target.h (gcc_target::binds_local_p): Clarify "module".
26814 * tree.h (TREE_PUBLIC): Clarify "module".
26815
26816 2009-02-17 Xuepeng Guo <xuepeng.guo@intel.com>
26817
26818 PR target/38891
26819 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move the hunk of
26820 initialization for MS_ABI prior to the hunk of !TARGET_MMX.
26821
26822 2009-02-17 H.J. Lu <hongjiu.lu@intel.com>
26823
26824 PR target/39082
26825 * c.opt (Wabi): Support C and ObjC.
26826 (Wpsabi): New.
26827
26828 * c-opts.c (c_common_handle_option): Handle OPT_Wabi.
26829
26830 * config/i386/i386.c (classify_argument): Warn once about the ABI
26831 change when passing union with long double.
26832
26833 * doc/invoke.texi: Update -Wabi for warning psABI changes.
26834
26835 2009-02-18 Joseph Myers <joseph@codesourcery.com>
26836
26837 PR c/35447
26838 * c-parser.c (c_parser_compound_statement): Always enter and leave
26839 a scope.
26840
26841 2009-02-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
26842
26843 PR target/34587
26844 * config/darwin.h (SUPPORTS_INIT_PRIORITY): Define.
26845
26846 2009-02-18 Jakub Jelinek <jakub@redhat.com>
26847
26848 PR tree-optimization/36922
26849 * tree-data-ref.c (initialize_matrix_A): Handle BIT_NOT_EXPR.
26850 * tree-scalar-evolution.c (interpret_rhs_expr, instantiate_scev_1):
26851 Likewise.
26852
26853 2009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
26854
26855 * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
26856 to 0 for EABI64.
26857
26858 2009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
26859
26860 * config/mips/mips.md (type): Reclassify lui_movf as "unknown".
26861
26862 2009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
26863
26864 * config/mips/mips.c (mips_gimplify_va_arg_expr): Fix invalid
26865 tree sharing.
26866
26867 2009-02-17 Ruan Beihong <ruanbeihong@gmail.com>
26868 Richard Sandiford <rdsandiford@googlemail.com>
26869
26870 * config/mips/mips.c (CODE_FOR_loongson_biadd): Delete.
26871 * config/mips/loongson.md (reduc_uplus_<mode>): Rename to...
26872 (loongson_biadd): ...this.
26873
26874 2009-02-17 Richard Guenther <rguenther@suse.de>
26875
26876 PR tree-optimization/39202
26877 * tree-ssa-structalias.c (do_structure_copy): Before collapsing
26878 a var make sure to follow existing collapses.
26879
26880 2009-02-17 Richard Guenther <rguenther@suse.de>
26881
26882 PR middle-end/39214
26883 * langhooks.c (lhd_print_error_function): Check for NULL block.
26884
26885 2009-02-17 Richard Guenther <rguenther@suse.de>
26886
26887 PR tree-optimization/39204
26888 * tree-ssa-pre.c (phi_translate_1): Lookup the value-number
26889 of the PHI arg.
26890
26891 2009-02-17 Uros Bizjak <ubizjak@gmail.com>
26892
26893 * config/soft-fp/double.h: Update from glibc CVS.
26894
26895 2009-02-17 Richard Guenther <rguenther@suse.de>
26896
26897 PR tree-optimization/39207
26898 * tree-ssa-structalias.c (find_what_p_points_to): Do not emit
26899 strict-aliasing warnings for pointers pointing to NULL.
26900
26901 2009-02-16 Joseph Myers <joseph@codesourcery.com>
26902
26903 PR c/35446
26904 * c-parser.c (c_parser_braced_init): Call pop_init_level when
26905 skipping until next close brace.
26906
26907 2009-02-16 H.J. Lu <hongjiu.lu@intel.com>
26908
26909 PR target/37049
26910 * config/i386/i386.c (ix86_expand_push): Set memory alignment
26911 to function argument boundary.
26912
26913 2009-02-16 Hariharan Sandanagobalane <hariharan@picochip.com>
26914
26915 * config/picochip/picochip.md (lea_add): Allow any nonimmediate
26916 in the lea_add. Reload eventually constraints it properly.
26917 * config/picochip/constraints.md: Remove the target constraint
26918 "b", since it is not needed anymore.
26919
26920 2009-02-16 Jakub Jelinek <jakub@redhat.com>
26921
26922 * gthr-dce.h: Uglify function parameter and local variable names.
26923 * gthr-gnat.h: Likewise.
26924 * gthr-mipssde.h: Likewise.
26925 * gthr-nks.h: Likewise.
26926 * gthr-posix95.h: Likewise.
26927 * gthr-posix.h: Likewise.
26928 * gthr-rtems.h: Likewise.
26929 * gthr-single.h: Likewise.
26930 * gthr-solaris.h: Likewise.
26931 * gthr-tpf.h: Likewise.
26932 * gthr-vxworks.h: Likewise.
26933 * gthr-win32.h: Likewise.
26934
26935 2009-02-15 H.J. Lu <hongjiu.lu@intel.com>
26936
26937 PR target/39196
26938 * config/i386/i386.md: Restrict the new peephole2 to move
26939 between MMX/SSE registers.
26940
26941 2009-02-15 Richard Guenther <rguenther@suse.de>
26942
26943 Revert
26944 2009-02-13 Richard Guenther <rguenther@suse.de>
26945
26946 * configure.ac: Enable LFS.
26947 * configure: Re-generate.
26948 * config.in: Likewise.
26949
26950 2009-02-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26951
26952 * config/spu/spu_internals.h (spu_sr, spu_sra, spu_srqw,
26953 spu_srqwbyte, spu_srqwbytebc): Define.
26954 * config/spu/spu-builtins.def (spu_sr, spu_sra, spu_srqw,
26955 spu_srqwbyte, spu_srqwbytebc): New overloaded builtins.
26956 * config/spu/spu.md ("shrqbybi_<mode>", "shrqbi_<mode>",
26957 "shrqby_<mode>"): New insn-and-split patterns.
26958 * config/spu/spu.c (expand_builtin_args): Determine and return
26959 number of operands using spu_builtin_description data.
26960 (spu_expand_builtin_1): Use it.
26961
26962 2009-02-13 Steve Ellcey <sje@cup.hp.com>
26963
26964 PR target/38056
26965 * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Check
26966 TARGET_CONST_GP.
26967
26968 2009-02-13 H.J. Lu <hongjiu.lu@intel.com>
26969
26970 PR target/39149
26971 * config/i386/i386.c (override_options): Correct warning
26972 messages for -malign-loops, -malign-jumps and -malign-functions.
26973
26974 2009-02-13 H.J. Lu <hongjiu.lu@intel.com>
26975
26976 PR target/39152
26977 * config/i386/i386.md: Restrict the new peephole2 to move
26978 between the general purpose registers.
26979
26980 2009-02-13 H.J. Lu <hongjiu.lu@intel.com>
26981
26982 PR target/39162
26983 * config/i386/i386.c (type_natural_mode): Add a new argument.
26984 Return the original mode and warn ABI change if vector size is 32byte.
26985 (function_arg_advance): Updated.
26986 (function_arg): Likewise.
26987 (ix86_function_value): Likewise.
26988 (ix86_return_in_memory): Likewise.
26989 (ix86_sol10_return_in_memory): Likewise.
26990 (ix86_gimplify_va_arg): Likewise.
26991 (function_arg_32): Don't warn ABX ABI change here.
26992 (function_arg_64): Likewise.
26993
26994 2009-02-13 Bernd Schmidt <bernd.schmidt@analog.com>
26995
26996 * loop-iv.c (implies_p): In the final case, test that operands 0
26997 of the two comparisons match.
26998
26999 * config/bfin/bfin.c (find_prev_insn_start): New function.
27000 (bfin_optimize_loop): Use it in some cases instead of PREV_INSN.
27001 (find_next_insn_start): Move.
27002
27003 2009-02-13 Richard Guenther <rguenther@suse.de>
27004
27005 * configure.ac: Enable LFS.
27006 * configure: Re-generate.
27007 * config.in: Likewise.
27008
27009 2009-02-13 Joseph Myers <joseph@codesourcery.com>
27010
27011 PR c/35444
27012 * c-parser.c (c_parser_parms_list_declarator): Discard pending
27013 sizes on syntax error after some arguments have been parsed.
27014
27015 2009-02-12 Jakub Jelinek <jakub@redhat.com>
27016
27017 * doc/invoke.texi (-fira): Remove.
27018
27019 2009-02-12 H.J. Lu <hongjiu.lu@intel.com>
27020
27021 * caller-save.c: Replace regclass.c with reginfo.c in comments.
27022 * recog.c: Likewise.
27023 * rtl.h: Likewise.
27024
27025 2009-02-12 Uros Bizjak <ubizjak@gmail.com>
27026
27027 * longlong.h (sub_ddmmss): New for ia64. Ported from GMP 4.2.
27028 (umul_ppmm): Likewise.
27029 (count_leading_zeros): Likewise.
27030 (count_trailing_zeros): Likewise.
27031 (UMUL_TIME): Likewise.
27032
27033 2009-02-12 H.J. Lu <hongjiu.lu@intel.com>
27034
27035 * config.gcc (ia64*-*-linux*): Add ia64/t-fprules-softfp and
27036 soft-fp/t-softfp to tmake_file.
27037
27038 * config/ia64/ia64.c (ia64_soft_fp_init_libfuncs): New.
27039 (ia64_expand_compare): Use HPUX library for TFmode only for HPUX.
27040 (ia64_builtins) [IA64_BUILTIN_COPYSIGNQ, IA64_BUILTIN_FABSQ,
27041 IA64_BUILTIN_INFQ]: New.
27042 (ia64_init_builtins): Initialize __builtin_infq,
27043 __builtin_fabsq and __builtin_copysignq if not HPUX.
27044 (ia64_expand_builtin): Handle IA64_BUILTIN_COPYSIGNQ,
27045 IA64_BUILTIN_FABSQ and IA64_BUILTIN_INFQ.
27046
27047 * config/ia64/lib1funcs.asm (__divtf3): Define only if
27048 SHARED is defined.
27049 (__fixtfti): Likewise.
27050 (__fixunstfti): Likewise.
27051 (__floattitf): Likewise.
27052
27053 * config/ia64/libgcc-glibc.ver: New.
27054 * config/ia64/t-fprules-softfp: Likewise.
27055 * config/ia64/sfp-machine.h: Likewise.
27056
27057 * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): New.
27058 (LIBGCC2_TF_CEXT): Likewise.
27059 (TF_SIZE): Likewise.
27060 (TARGET_INIT_LIBFUNCS): Likewise.
27061
27062 * config/ia64/t-glibc (SHLINB_MAPFILES):
27063 Add $(srcdir)/config/ia64/libgcc-glibc.ver.
27064
27065 2009-02-12 H.J. Lu <hongjiu.lu@intel.com>
27066
27067 * config/i386/i386.c (construct_container): Rewrite processing
27068 BLKmode with X86_64_SSE_CLASS.
27069
27070 2009-02-12 Paolo Bonzini <bonzini@gnu.org>
27071
27072 PR target/39152
27073 * config/i386/i386.md: Replace simplify_replace_rtx with
27074 replace_rtx in the new peephole2.
27075
27076 2009-02-12 Nathan Sidwell <nathan@codesourcery.com>
27077
27078 * doc/invoke.texi (Optimize Options): Stop claiming inlining and
27079 loop unrolling do not happen at -O2.
27080
27081 2009-02-12 Michael Matz <matz@suse.de>
27082
27083 * gcc.c (ASM_DEBUG_SPEC): Check for -g0.
27084
27085 2009-02-12 Jakub Jelinek <jakub@redhat.com>
27086
27087 * dwarf2out.c (dwarf2out_finish): Force output of comp_unit_die
27088 for -g3.
27089
27090 2009-02-12 Ben Elliston <bje@au.ibm.com>
27091
27092 * config/rs6000/rs6000.md (allocate_stack): Use _stack form of
27093 patterns when updating the back chain. Missed in the 2009-02-10
27094 change.
27095
27096 2009-02-11 Janis Johnson <janis187@us.ibm.com>
27097
27098 * doc/extend.texi (Decimal Floating Types): Update identifier of
27099 draft TR and list of missing support.
27100
27101 2009-02-11 Jakub Jelinek <jakub@redhat.com>
27102
27103 PR middle-end/39154
27104 * gimplify.c (omp_notice_variable): If adding GOVD_SEEN
27105 bit to variable length decl's flags, add it also to its
27106 pointer replacement variable.
27107
27108 2009-02-11 Uros Bizjak <ubizjak@gmail.com>
27109 Jakub Jelinek <jakub@redhat.com>
27110
27111 PR target/39118
27112 * config/i386/i386.md (UNSPEC_MEMORY_BLOCKAGE): New constant.
27113 (memory_blockage): New expander.
27114 (*memory_blockage): New insn pattern.
27115 * config/i386/i386.c (ix86_expand_prologue): Use memory_blockage
27116 instead of general blockage at the end of function prologue when
27117 frame pointer is used to access red zone area. Do not emit blockage
27118 when profiling, it is emitted in generic code.
27119 (ix86_expand_epilogue): Emit memory_blockage at the beginning of
27120 function epilogue when frame pointer is used to access red zone area.
27121
27122 2009-02-11 Paolo Bonzini <bonzini@gnu.org>
27123
27124 PR target/38824
27125 * config/i386/i386.md: Add two new peephole2 to avoid mov followed
27126 by arithmetic with memory operands.
27127 * config/i386/predicates.md (commutative_operator): New.
27128
27129 2009-02-10 Janis Johnson <janis187@us.ibm.com>
27130
27131 * doc/extend.texi (Fixed-Point Types): Break long paragraphs into
27132 bulleted lists.
27133
27134 2009-02-10 Eric Botcazou <ebotcazou@adacore.com>
27135
27136 * alias.h (record_alias_subset): Declare.
27137 * alias.c (record_alias_subset): Make global.
27138
27139 2009-02-10 Nick Clifton <nickc@redhat.com>
27140
27141 * tree-parloops.c: Change license to GPLv3.
27142 * ipa-struct-reorg.c: Change license to GPLv3.
27143 * ipa-struct-reorg.h: Change license to GPLv3.
27144
27145 2009-02-10 Steve Ellcey <sje@cup.hp.com>
27146
27147 PR c/39084
27148 * c-decl.c (start_struct): Return NULL on error.
27149
27150 2009-02-10 Jakub Jelinek <jakub@redhat.com>
27151
27152 PR middle-end/39124
27153 * cfgloopmanip.c (remove_path): Call remove_bbs after
27154 cancel_loop_tree, not before it.
27155
27156 PR target/39139
27157 * function.h (struct function): Add has_local_explicit_reg_vars bit.
27158 * gimplify.c (gimplify_bind_expr): Set it if local DECL_HARD_REGISTER
27159 VAR_DECLs were seen.
27160 * tree-ssa-live.c (remove_unused_locals): Recompute
27161 cfun->has_local_explicit_reg_vars.
27162 * tree-ssa-sink.c (statement_sink_location): Don't sink BLKmode
27163 copies or clearings if cfun->has_local_explicit_reg_vars.
27164
27165 2009-02-10 Uros Bizjak <ubizjak@gmail.com>
27166
27167 PR target/39118
27168 * config/i386/i386.c (expand_prologue): Emit blockage at the end
27169 of function prologue when frame pointer is used to access
27170 red zone area.
27171
27172 2009-02-10 Richard Guenther <rguenther@suse.de>
27173
27174 PR middle-end/39127
27175 * gimplify.c (gimple_regimplify_operands): Always look if
27176 we need to create a temporary.
27177
27178 2009-02-10 Richard Guenther <rguenther@suse.de>
27179
27180 PR tree-optimization/39132
27181 * tree-loop-distribution.c (todo): New global var.
27182 (generate_memset_zero): Trigger TODO_rebuild_alias.
27183 (tree_loop_distribution): Return todo.
27184
27185 2009-02-10 H.J. Lu <hongjiu.lu@intel.com>
27186
27187 PR target/39119
27188 * config/i386/i386.c (x86_64_reg_class): Remove X86_64_AVX_CLASS.
27189 (x86_64_reg_class_name): Removed.
27190 (classify_argument): Return 0 if bytes > 32. Return 0 if the
27191 first one isn't X86_64_SSE_CLASS or any other ones aren't
27192 X86_64_SSEUP_CLASS when size > 16bytes. Don't turn
27193 X86_64_SSEUP_CLASS into X86_64_SSE_CLASS if the preceded one
27194 is X86_64_SSEUP_CLASS. Set AVX modes to 1 X86_64_SSE_CLASS
27195 and 3 X86_64_SSEUP_CLASS.
27196 (construct_container): Remove X86_64_AVX_CLASS. Handle 4
27197 registers with 1 X86_64_SSE_CLASS and 3 X86_64_SSEUP_CLASS.
27198
27199 2009-02-10 Ben Elliston <bje@au.ibm.com>
27200
27201 * config/rs6000/rs6000.md (allocate_stack): Always use an update
27202 form instruction to update the stack back chain word, even if the
27203 user has disabled the generation of update instructions.
27204 (movdi_<mode>_update_stack): New.
27205 (movsi_update_stack): Likewise.
27206 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Likewise,
27207 always use an update form instruction to update the stack back
27208 chain word.
27209
27210 2009-02-09 Sebastian Pop <sebastian.pop@amd.com>
27211
27212 PR middle-end/38953
27213 * graphite.c (if_region_set_false_region): After moving a region in
27214 the false branch of a condition, remove the empty dummy basic block.
27215 (gloog): Remove wrong fix for PR38953.
27216
27217 2009-02-09 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27218
27219 * config/spu/spu.c (array_to_constant): Fix (latent) wrong-code
27220 generation due to implicit sign extension.
27221
27222 2009-02-09 Eric Botcazou <ebotcazou@adacore.com>
27223
27224 PR middle-end/38981
27225 * tree-ssa-coalesce.c (add_coalesce): Cap the costs of coalesce pairs
27226 at MUST_COALESCE_COST-1 instead of MUST_COALESCE_COST.
27227
27228 2009-02-09 Richard Guenther <rguenther@suse.de>
27229
27230 PR middle-end/35202
27231 * convert.c (convert_to_real): Disable (float)fn((double)x)
27232 to fnf(x) conversion if errno differences may occur and
27233 -fmath-errno is set.
27234
27235 2009-02-07 Anatoly Sokolov <aesok@post.ru>
27236
27237 * config/avr/avr.c (avr_mcu_t): Add ata6289 device.
27238 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
27239 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
27240
27241 2009-02-06 Joseph Myers <joseph@codesourcery.com>
27242
27243 PR c/35434
27244 * c-common.c (handle_alias_attribute): Disallow attribute for
27245 anything not a FUNCTION_DECL or VAR_DECL.
27246
27247 2009-02-06 Janis Johnson <janis187@us.ibm.com>
27248
27249 PR c/39035
27250 * real.c (do_compare): Special-case compare of zero against
27251 decimal float value.
27252
27253 2009-02-06 Joseph Myers <joseph@codesourcery.com>
27254
27255 PR c/36432
27256 * c-decl.c (grokdeclarator): Don't treat [] declarators in fields
27257 as indicating flexible array members unless the field itself is
27258 being declarared as the incomplete array.
27259
27260 2009-02-06 Jan Hubicka <jh@suse.cz>
27261
27262 PR tree-optimization/38844
27263 * ipa-inline.c (try_inline): Stop inlining recursion when edge
27264 is already inlined.
27265
27266 2009-02-06 Richard Guenther <rguenther@suse.de>
27267
27268 PR middle-end/38977
27269 * tree-cfg.c (need_fake_edge_p): Force a fake edge for
27270 fork because we may expand it as __gcov_fork.
27271
27272 2009-02-06 Nick Clifton <nickc@redhat.com>
27273
27274 * config/m32c/m32c.h (PCC_BITFIELD_TYPE_MATTERS): Define to zero.
27275
27276 2009-02-06 Paolo Bonzini <bonzini@gnu.org>
27277
27278 PR tree-optimization/35659
27279 * tree-ssa-sccvn.c (vn_constant_eq, vn_reference_eq, vn_nary_op_eq
27280 vn_phi_eq): Shortcut if hashcode does not match.
27281 (vn_reference_op_compute_hash): Do not call iterative_hash_expr for
27282 NULL operands.
27283 * tree-ssa-pre.c (pre_expr_hash): Look at hashcode if available,
27284 and avoid iterative_hash_expr.
27285 (FOR_EACH_VALUE_ID_IN_SET): New.
27286 (value_id_compare): Remove.
27287 (sorted_array_from_bitmap_set): Use FOR_EACH_VALUE_ID_IN_SET to
27288 sort expressions by value id.
27289
27290 2009-02-05 Kaz Kojima <kkojima@gcc.gnu.org>
27291
27292 PR target/38991
27293 * config/sh/predicates.md (general_movsrc_operand): Don't check
27294 the subreg of system registers here.
27295
27296 2009-02-05 Jakub Jelinek <jakub@redhat.com>
27297
27298 PR c++/39106
27299 * cgraphunit.c (cgraph_function_versioning): Clear also DECL_VIRTUAL_P
27300 on the copied decl.
27301
27302 2009-02-05 Paolo Bonzini <bonzini@gnu.org>
27303
27304 PR rtl-optimization/39110
27305 * rtlanal.c (rtx_addr_can_trap_p_1): Shortcut unaligned
27306 addresses, not aligned ones.
27307
27308 2009-02-05 Daniel Berlin <dberlin@dberlin.org>
27309 Richard Guenther <rguenther@suse.de>
27310
27311 PR tree-optimization/39100
27312 * tree-ssa-structalias.c (do_ds_constraint): Actually do what the
27313 comment says and add edges.
27314
27315 2009-02-05 Joseph Myers <joseph@codesourcery.com>
27316
27317 PR c/35435
27318 * c-common.c (handle_tls_model_attribute): Ignore attribute for
27319 non-VAR_DECLs without checking DECL_THREAD_LOCAL_P.
27320
27321 2009-02-04 Tobias Grosser <grosser@fim.uni-passau.de>
27322
27323 * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use,
27324 sese_build_livein_liveouts_bb, sese_build_livein_liveouts,
27325 register_bb_in_sese, new_sese, free_sese): Moved.
27326 (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains,
27327 outermost_loop_in_scop, build_scop_iteration_domain,
27328 expand_scalar_variables_ssa_name, get_vdef_before_scop,
27329 limit_scops): Use bb_in_sese_p instead of bb_in_scop_p.
27330 Use loop_in_sese_p instead of loop_in_scop_p.
27331 (new_graphite_bb, gloog): Do not initialize SCOP_BBS_B.
27332 (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP and SCOP_BBS_B.
27333 (scopdet_basic_block_info): Fix bug in scop detection.
27334 (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
27335 eq_loop_to_cloog_loop): Remove.
27336 (nb_loops_around_loop_in_scop, nb_loop
27337 ref_nb_loops): Moved here...
27338 * graphite.h (ref_nb_loops): ... from here.
27339 (struct scop): Remove bbs_b bitmap and loop2cloog_loop.
27340 (loop_domain_dim, loop_iteration_vector_dim): Remove.
27341 (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed.
27342
27343 2009-02-04 Paolo Bonzini <bonzini@gnu.org>
27344 Hans-Peter Nilsson <hp@axis.com>
27345
27346 PR rtl-optimization/37889
27347 * rtlanal.c (rtx_addr_can_trap_p_1): Add offset and size arguments.
27348 Move offset handling from PLUS to before the switch. Use new
27349 arguments when considering SYMBOL_REFs too.
27350 (rtx_addr_can_trap_p): Pass dummy offset and size.
27351 (enum may_trap_p_flags): Remove.
27352 (may_trap_p_1): Pass size from MEM_SIZE.
27353
27354 PR rtl-optimization/38921
27355 * loop-invariant.c (find_invariant_insn): Use may_trap_or_fault_p.
27356 * rtl.h (may_trap_after_code_motion_p): Delete prototype.
27357 * rtlanal.c (may_trap_after_code_motion_p): Delete.
27358 (may_trap_p, may_trap_or_fault_p): Pass 0/1 as flags.
27359
27360 2009-02-04 H.J. Lu <hongjiu.lu@intel.com>
27361
27362 AVX Programming Reference (January, 2009)
27363 * config/i386/sse.md (*vpclmulqdq): New.
27364
27365 2009-02-04 Jakub Jelinek <jakub@redhat.com>
27366
27367 PR tree-optimization/38977
27368 PR gcov-profile/38292
27369 * calls.c (special_function_p): Disregard __builtin_ prefix.
27370
27371 2009-02-04 Hariharan Sandanagobalane <hariharan@picochip.com>
27372
27373 * config/picochip/picochip.c (GO_IF_LEGITIMATE_ADDRESS): Disallow
27374 non-indexable addresses even before reload.
27375
27376 2009-02-03 Joseph Myers <joseph@codesourcery.com>
27377
27378 PR c/29129
27379 * c-decl.c (grokdeclarator): Mark [*] arrays in field declarators
27380 as having variable size. Do not give an error for unnamed
27381 parameters with [*] declarators. Give a warning for type names
27382 with [*] declarators and mark them as variable size.
27383 * c-parser.c (c_parser_sizeof_expression): Do not give an error
27384 for sizeof applied to [*] type names.
27385
27386 2009-02-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
27387
27388 PR C++/36607
27389 * convert.c (convert_to_integer): Treat OFFSET_TYPE like INTEGER_TYPE.
27390
27391 2009-02-03 Jakub Jelinek <jakub@redhat.com>
27392
27393 * gcc.c (process_command): Update copyright notice dates.
27394 * gcov.c (print_version): Likewise.
27395 * gcov-dump.c (print_version): Likewise.
27396 * mips-tfile.c (main): Likewise.
27397 * mips-tdump.c (main): Likewise.
27398
27399 2009-02-03 Joseph Myers <joseph@codesourcery.com>
27400
27401 PR c/35433
27402 * c-typeck.c (composite_type): Set TYPE_SIZE and TYPE_SIZE_UNIT
27403 for composite type involving a zero-length array type.
27404
27405 2009-02-03 Jakub Jelinek <jakub@redhat.com>
27406
27407 PR target/35318
27408 * function.c (match_asm_constraints_1): Skip over
27409 initial optional % in the constraint.
27410
27411 PR inline-asm/39059
27412 * c-parser.c (c_parser_postfix_expression): If fixed point is not
27413 supported, don't accept FIXED_CSTs.
27414 * c-decl.c (finish_declspecs): Error if fixed point is not supported
27415 and _Sat is used without _Fract/_Accum. Set specs->type to
27416 integer_type_node for cts_fract/cts_accum if fixed point is not
27417 supported.
27418
27419 2009-02-02 Catherine Moore <clm@codesourcery.com>
27420
27421 * sde.h (SUBTARGET_ARM_SPEC): Don't assemble -fpic code as -mabicalls.
27422
27423 2009-02-02 Richard Sandiford <rdsandiford@googlemail.com>
27424
27425 * config/mips/mips.h (FILE_HAS_64BIT_SYMBOLS): New macro.
27426 (ABI_HAS_64BIT_SYMBOLS): Use it.
27427 (DWARF2_ADDR_SIZE): Use it instead of ABI_HAS_64BIT_SYMBOLS.
27428
27429 2009-02-02 Paul Brook <paul@codesourcery.com>
27430
27431 * config/arm/arm.md (arm_addsi3): Add r/r/k alternative.
27432
27433 2009-02-02 Jakub Jelinek <jakub@redhat.com>
27434
27435 PR inline-asm/39058
27436 * recog.h (asm_operand_ok): Add constraints argument.
27437 * recog.c (asm_operand_ok): Likewise. If it is set, for digits
27438 recurse on matching constraint.
27439 (check_asm_operands): Pass constraints as 3rd argument to
27440 asm_operand_ok. Don't look up matching constraint here.
27441 * stmt.c (expand_asm_operands): Pass NULL as 3rd argument
27442 to asm_operand_ok.
27443
27444 2009-02-02 Ben Elliston <bje@au.ibm.com>
27445
27446 * doc/tm.texi (Storage Layout): Fix TARGET_ALIGN_ANON_BITFIELD and
27447 TARGET_NARROW_VOLATILE_BITFIELD macro names.
27448
27449 2009-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
27450
27451 * doc/install.texi (hppa*-hp-hpux*): Update binutils and linker
27452 information. Remove some obsolete information. Reorganize.
27453
27454 * config/pa/fptr.c: Revert license to GPL 2.
27455 * config/pa/milli64.S: Likewise.
27456
27457 2009-01-31 Dave Korn <dave.korn.cygwin@gmail.com>
27458
27459 PR target/38904
27460 * mkmap-flat.awk (END): Use pe_dll command-line arg to pass
27461 LIBRARY name in, instead of hard-coding it.
27462 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add an
27463 extra target make frag to tmake_files according to EH model.
27464 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
27465 * config/i386/t-dw2-eh, config/i386/t-sjlj-eh: Add new target
27466 frags that define makefile variable EH_MODEL appropriately.
27467 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Add comment.
27468 * config/i386/cygwin.h (LIBGCC_EH_EXTN): Define to nothing or
27469 to "-sjlj" according to type of EH configured.
27470 (LIBGCC_SONAME): Concatenate it to shared library base name.
27471 * config/i386/mingw32.h (LIBGCC_EH_EXTN): Define to "_dw2" or
27472 to "_sjlj" according to type of EH configured.
27473 (LIBGCC_SONAME): Concatenate it to shared library base name.
27474 * config/i386/t-cygming (SHLIB_SONAME): Use EH_MODEL.
27475 (SHLIB_LINK): Add missing semicolon to if-else construct.
27476 (SHLIB_MKMAP_OPTS): Pass library name to mkmap-flat.awk as
27477 string value of "pe_dll" command-line option.
27478 * config/i386/t-cygwin (SHLIB_EH_EXTENSION): New helper.
27479 (SHLIB_SONAME): Use it when overriding t-cygming default.
27480 (SHLIB_IMPLIB): Override t-cygming default.
27481 (SHLIB_MKMAP_OPTS): Pass library name to mkmap-flat.awk as
27482 string value of "pe_dll" command-line option.
27483
27484 2009-01-31 Dave Korn <dave.korn.cygwin@gmail.com>
27485
27486 PR target/38952
27487 * config/i386/i386.c (ix86_builtin_setjmp_frame_value): New.
27488 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Override default to point at it.
27489
27490 2009-01-31 Richard Guenther <rguenther@suse.de>
27491
27492 PR tree-optimization/38937
27493 * tree-ssa-structalias.c (do_sd_constraint): Do not shortcut
27494 computing the transitive closure.
27495
27496 2009-01-30 Richard Guenther <rguenther@suse.de>
27497
27498 PR tree-optimization/39041
27499 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
27500 Propagate variable indices only if the types match for this stmt.
27501
27502 2009-01-30 Jakub Jelinek <jakub@redhat.com>
27503
27504 PR target/39013
27505 * c-decl.c (pop_scope): Set DECL_EXTERNAL for functions declared
27506 inline but never defined.
27507
27508 2009-01-30 Wolfgang Gellerich <gellerich@de.ibm.com>
27509
27510 * config/s390/s390.md (*insv<mode>_reg_extimm): Removed.
27511 (*insv_h_di_reg_extimm): New insn.
27512 (*insv_l<mode>_reg_extimm): New insn.
27513
27514 2009-01-30 Hariharan Sandanagobalane <hariharan@picochip.com>
27515
27516 * config/picochip/picochip.c (flag_conserve_stack): set
27517 PARAM_LARGE_STACK_FRAME and PARAM_STACK_FRAME_GROWTH to zero under
27518 fconserve-stack. Reduce call-overhead used by inliner.
27519
27520 2009-01-30 Hariharan Sandanagobalane <hariharan@picochip.com>
27521
27522 PR/38157
27523 * common.opt (flag_conserve_stack): Initialised to zero.
27524
27525 2009-01-30 Kai Tietz <kai.tietz@onevision.com>
27526
27527 PR/39002
27528 * config/i386/i386.c (ix86_can_use_return_insn_p): Check for nsseregs.
27529 (ix86_expand_epilogue): Take nsseregs in account to use proper restore
27530 method.
27531
27532 2009-01-29 H.J. Lu <hongjiu.lu@intel.com>
27533
27534 * ira-color.c (allocno_reload_assign): Update comments.
27535 * regmove.c (regmove_optimize): Likewise.
27536
27537 * ra.h: Removed.
27538
27539 2009-01-29 Robert Millan <rmh@aybabtu.com>
27540
27541 * config.gcc: Recognize GNU/kOpenSolaris (*-*-kopensolaris*-gnu).
27542 * config/i386/kopensolaris-gnu.h: New file. Undefine
27543 `MD_UNWIND_SUPPORT'.
27544 * config/kopensolaris-gnu.h: New file (based on kfreebsd-gnu.h).
27545
27546 2009-01-29 Kazu Hirata <kazu@codesourcery.com>
27547
27548 PR tree-optimization/39007
27549 * tree-loop-distribution.c (generate_builtin): Use
27550 recompute_dominator to compute the immediate dominator of the
27551 basic block just after the loop.
27552
27553 2009-01-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
27554
27555 * config/i386/sol2-10.h [!HAVE_AS_IX86_DIFF_SECT_DELTA]
27556 (ASM_OUTPUT_DWARF_PCREL): Define.
27557
27558 2009-01-29 Vladimir Makarov <vmakarov@redhat.com>
27559
27560 * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Modify description.
27561 * doc/passes.texi: Remove entries about regclass, local-alloc, and
27562 global. Modify entries about regmove and IRA.
27563
27564 * ra-conflict.c: Remove the file.
27565
27566 * reload.c (push_reload, find_dummy_reload): Remove flag_ira.
27567
27568 * tree-pass.h (pass_local_alloc, pass_global_alloc): Remove.
27569 (pass_regclass_init): Rename to pass_reginfo_init.
27570
27571 * cfgloopanal.c (estimate_reg_pressure_cost): Remove flag_ira.
27572
27573 * toplev.h (flag_ira): Remove.
27574
27575 * caller-save.c (setup_save_areas): Remove flag_ira.
27576
27577 * ira-color.c (ira_reuse_stack_slot, ira_mark_new_stack_slot): Ditto.
27578
27579 * global.c: Remove the file.
27580
27581 * opts.c (decode_options): Remove flag_ira.
27582
27583 * hard-reg-set.h (losing_caller_save_reg_set): Remove.
27584
27585 * regmove.c: Modify file description.
27586 (find_use_as_address, try_auto_increment): Define them only if
27587 AUTO_INC_DEC is defined.
27588 (replacement_quality, replace_in_call_usage, fixup_match_1,
27589 stable_and_no_regs_but_for_p): Remove.
27590 (reg_set_in_bb): Make it static.
27591 (regmove_optimize): Remove flag_ira and code which worked for
27592 !flag_ira.
27593
27594 * local-alloc.c: Remove the file.
27595
27596 * common.opt (fira): Remove.
27597
27598 * ira.c: Include except.h.
27599 (eliminable_regset): Move from global.c.
27600 (mark_elimination): Ditto. Remove flag_ira.
27601 (reg_renumber, struct equivalence, reg_equiv, equiv_mem,
27602 equiv_mem_modified, validate_equiv_mem_from_store,
27603 validate_equiv_mem, equiv_init_varies_p, equiv_init_movable_p,
27604 contains_replace_regs, memref_referenced_p, memref_used_between_p,
27605 no_equiv, recorded_label_ref): Move from local-alloc.c.
27606 (update_equiv_regs): Ditto. Make it static.
27607 (print_insn_chain, print_insn_chains): Move it from global.c.
27608 (pseudo_for_reload_consideration_p): Ditto. Remove flag_ira.
27609 (build_insn_chain): Ditto. Make it static.
27610 (ra_init_live_subregs): Move from ra-conflict.c. Make it static.
27611 Rename to init_live_subregs.
27612 (gate_ira): Remove flag_ira.
27613
27614 * regclass.c: Rename reginfo.c. Change file description.
27615 (FORBIDDEN_INC_DEC_CLASSES): Remove.
27616 (reg_class_superclasses, forbidden_inc_dec_class, in_inc_dec): Remove.
27617 (init_reg_sets_1): Remove code for evaluation of
27618 reg_class_superclasses and losing_caller_save_reg_set.
27619 (init_regs): Remove init_reg_autoinc.
27620 (struct costs, costs, init_cost, ok_for_index_p_nonstrict,
27621 ok_for_base_p_nonstrict): Remove.
27622 (regclass_init): Rename to reginfo_init. Don't initialize init_cost.
27623 (pass_regclass_init): Rename to pass_reginfo_init. Modify
27624 corresponding entries.
27625 (dump_regclass, record_operand_costs, scan_one_insn,
27626 init_reg_autoinc, regclass, record_reg_classes, copy_cost,
27627 record_address_regs, auto_inc_dec_reg_p): Remove.
27628 (gt-regclass.h): Rename to gt-reginfo.h.
27629
27630 * rtl.h (dump_global_regs, retry_global_alloc,
27631 build_insn_chain, dump_local_alloc, update_equiv_regs): Remove.
27632
27633 * Makefile.in (RA_H): Remove.
27634 (OBJS-common): Remove global.o, local-alloc.o, and ra-conflict.o.
27635 Rename regclass.o to reginfo.o.
27636 (regclass.o): Rename to reginfo.o. Rename gt-regclass.h to
27637 gt-reginfo.h.
27638 (global.o, local-alloc.o, ra-conflict.o): Remove entries.
27639 (GTFILES): Rename regclass.c to reginfo.c.
27640
27641 * passes.c (init_optimization_passes): Remove pass_local_alloc and
27642 pass_global_alloc. Rename pass_regclass_init to pass_reginfo_init.
27643
27644 * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
27645 count_spilled_pseudo, find_reg, alter_reg, delete_output_reload):
27646 Remove flag_ira.
27647 (finish_spills): Ditto. Remove code for !flag_ira.
27648
27649 2009-01-29 Kenneth Zadeck <zadeck@naturalbridge.com>
27650
27651 PR middle-end/35854
27652 * doc/invoke.texi (rtl debug options): Complete rewrite.
27653 * auto-inc-dec.c (pass_inc_dec): Rename pass from "auto-inc-dec"
27654 to auto_inc_dec".
27655 * mode-switching.c (pass_mode_switching): Rename pass from
27656 "mode-sw" to "mode_sw".
27657 * except.c (pass_convert_to_eh_ranges): Rename pass from
27658 "eh-ranges" to "eh_ranges".
27659 * lower-subreg.c (pass_lower_subreg): Renamed pass from "subreg"
27660 to "subreg1".
27661
27662
27663 2009-01-29 Andrey Belevantsev <abel@ispras.ru>
27664 Alexander Monakov <amonakov@ispras.ru>
27665
27666 PR middle-end/38857
27667 * sel-sched.c (count_occurrences_1): Check that *cur_rtx is a hard
27668 register.
27669 (move_exprs_to_boundary): Change return type and pass through
27670 should_move from move_op. Relax assert. Update usage ...
27671 (schedule_expr_on_boundary): ... here. Use should_move instead of
27672 cant_move.
27673 (move_op_orig_expr_found): Indicate that insn was disconnected from
27674 stream.
27675 (code_motion_process_successors): Do not call after_merge_succs
27676 callback if original expression was not found when traversing any of
27677 the branches.
27678 (code_motion_path_driver): Change return type. Update prototype.
27679 (move_op): Update comment. Add a new parameter (should_move). Update
27680 prototype. Set *should_move based on indication provided by
27681 move_op_orig_expr_found.
27682
27683 2009-01-28 Pat Haugen <pthaugen@us.ibm.com>
27684
27685 * doc/invoke.texi (avoid-indexed-addresses): Document new option.
27686 * config/rs6000/rs6000-protos.h (avoiding_indexed_address_p): Declare.
27687 * config/rs6000/rs6000.opt (avoid-indexed-addresses): New option.
27688 * config/rs6000/rs6000.c (rs6000_override_options): Default
27689 avoid-indexed-addresses on for Power6, off for everything else.
27690 (avoiding_indexed_address_p): New function.
27691 (rs6000_legitimize_address): Use it.
27692 (rs6000_legitimate_address): Likewise.
27693 * config/rs6000/rs6000.md (movXX_updateX): Likewise
27694
27695 2009-01-28 Kazu Hirata <kazu@codesourcery.com>
27696
27697 PR tree-optimization/38997
27698 * tree-loop-distribution.c (generate_memset_zero): Use
27699 POINTER_PLUS_EXPR for a pointer addition.
27700
27701 2009-01-28 Andreas Krebbel <krebbel1@de.ibm.com>
27702
27703 * config/s390/s390.md (bswap<mode>2): New pattern added.
27704
27705 2009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
27706
27707 * config/s390/s390.md (*tls_load_31): Added type attribute.
27708
27709 2009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
27710
27711 * config/s390/s390.md: Fix a few comments.
27712
27713 2009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
27714
27715 * config/s390/s390.md (*tmsi_reg): Fixed z10prop attribute.
27716 (*tm<mode>_full): Fixed z10prop attribute.
27717 (*tst<mode>_extimm): Fixed z10prop attribute.
27718 (*tst<mode>_cconly_extimm): Fixed z10prop attribute.
27719 (*tstqiCCT_cconly): Fixed z10prop attribute.
27720 (*cmpsi_ccu_zerohi_rlsi): Fixed z10prop attribute.
27721 (*movsi_larl): Fixed z10prop attribute.
27722 (*movsi_zarch): Fixed z10prop attribute.
27723 (*movsi_eas): Fixed z10prop attribute.
27724 (*movhi): Fixed z10prop attribute.
27725 (*movqi): Fixed z10prop attribute.
27726 (*movstrictqi): Fixed z10prop attribute.
27727 (*mov<mode>): Fixed z10prop attribute.
27728 (*movcc): Fixed z10prop attribute.
27729 (*sethighpartdi_64): Fixed z10prop attribute.
27730 (*zero_extendhi<mode>2_z10): Fixed z10prop attribute.
27731 (*negdi2_sign_cc): Fixed z10prop attribute.
27732 (*negdi2_sign): Fixed z10prop attribute.
27733 (*absdi2_sign_cc): Fixed z10prop attribute.
27734 (*absdi2_sign): Fixed z10prop attribute.
27735 (*negabsdi2_sign_cc): Fixed z10prop attribute.
27736 (*negabsdi2_sign): Fixed z10prop attribute.
27737 (*cmp_and_trap_signed_int<mode>): Fixed z10prop attribute.
27738 (*cmp_and_trap_unsigned_int<mode>): Fixed z10prop attribute.
27739 (doloop_si64): Fixed z10prop attribute.
27740 (doloop_si31): Fixed z10prop attribute.
27741 (doloop_long): Fixed z10prop attribute.
27742 (indirect_jump): Fixed z10prop attribute.
27743 (nop): Fixed z10prop attribute.
27744 (main_base_64): Fixed z10prop attribute.
27745 (reload_base_64): Fixed z10prop attribute.
27746
27747 2009-01-28 Jakub Jelinek <jakub@redhat.com>
27748
27749 PR rtl-optimization/38740
27750 * reorg.c (gate_handle_delay_slots): Avoid dbr scheduling
27751 if !optimize.
27752 * config/mips/mips.c (mips_reorg): Likewise.
27753
27754 2009-01-28 Richard Guenther <rguenther@suse.de>
27755
27756 PR tree-optimization/38926
27757 * tree-ssa-pre.c (add_to_value): Assert we add only expressions
27758 with the correct value id to a value.
27759 (do_regular_insertion): Use the value number of edoubleprime
27760 for the value number of the expr.
27761
27762 Revert
27763 2008-08-21 Richard Guenther <rguenther@suse.de>
27764
27765 * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
27766 a PHI ask VN if it is already available.
27767 * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
27768 * tree-ssa-sccvn.c (vn_phi_lookup): Export.
27769
27770 2009-01-28 Jakub Jelinek <jakub@redhat.com>
27771
27772 PR middle-end/38934
27773 * tree-vrp.c (extract_range_from_assert): For LE_EXPR and LT_EXPR
27774 set to varying whenever max has TREE_OVERFLOW set, similarly
27775 for GE_EXPR and GT_EXPR and TREE_OVERFLOW min.
27776
27777 2009-01-28 Richard Guenther <rguenther@suse.de>
27778
27779 PR middle-end/38908
27780 * tree-ssa.c (warn_uninitialized_var): Do not warn for seemingly
27781 uninitialized aggregate uses in call arguments.
27782
27783 2009-01-28 Paolo Bonzini <bonzini@gnu.org>
27784
27785 PR tree-optimization/38984
27786 * tree-ssa-structalias.c (get_constraints_for_1): Do not use
27787 the nothing_id variable if -fno-delete-null-pointer-checks.
27788
27789 2009-01-28 Uros Bizjak <ubizjak@gmail.com>
27790
27791 PR target/38988
27792 * config/i386/i386.md (set_rip_rex64): Wrap operand 1 in label_ref.
27793 (set_got_offset_rex64): Ditto.
27794
27795 2009-01-27 H.J. Lu <hongjiu.lu@intel.com>
27796
27797 PR target/38941
27798 * doc/extend.texi: Improve local variable with asm reg.
27799
27800 2009-01-27 Adam Nemet <anemet@caviumnetworks.com>
27801
27802 * c.opt (Wpacked-bitfield-compat): Change init value to -1.
27803 * c-opts.c (c_common_post_options): If -W*packed-bitfield-compat
27804 was not supplied then set warn_packed_bitfield_compat to the
27805 default value of 1.
27806 * stor-layout.c (place_field): Check warn_packed_bitfield_compat
27807 against 1.
27808
27809 2009-01-27 Richard Guenther <rguenther@suse.de>
27810
27811 PR tree-optimization/38503
27812 * cfgexpand.c (expand_gimple_basic_block): Ignore
27813 GIMPLE_CHANGE_DYNAMIC_TYPE during expansion.
27814 * tree-ssa-structalias.c (set_uids_in_ptset): Do not prune
27815 variables that cannot have TBAA applied.
27816 (compute_points_to_sets): Do not remove GIMPLE_CHANGE_DYNAMIC_TYPE
27817 statements.
27818
27819 2009-01-27 Uros Bizjak <ubizjak@gmail.com>
27820
27821 PR middle-end/38969
27822 * calls.c (initialize_argument_information): Do not wrap complex
27823 arguments in SAVE_EXPR.
27824
27825 2009-01-26 Andreas Tobler <a.tobler@schweiz.org>
27826
27827 * config/t-vxworks (LIBGCC2_INCLUDES): Fix typo.
27828 (INSTALL_LIBGCC): Revert typo commit.
27829
27830 2009-01-26 Richard Guenther <rguenther@suse.de>
27831
27832 PR tree-optimization/38745
27833 * tree-ssa-alias.c (update_alias_info_1): Exclude RESULT_DECL
27834 from special handling.
27835
27836 2009-01-26 Richard Guenther <rguenther@suse.de>
27837
27838 PR tree-optimization/38745
27839 * tree-ssa.c (execute_update_addresses_taken): Do not include
27840 variables that cannot possibly be a register in not_reg_needs.
27841 Do not clear TREE_ADDRESSABLE on vars that may not become
27842 registers.
27843 * tree-ssa.c (update_alias_info_1): Include those in the set
27844 of addressable vars.
27845
27846 2009-01-26 Richard Guenther <rguenther@suse.de>
27847
27848 PR middle-end/38851
27849 * Makefile.in (tree-ssa-dse.o): Add langhooks.h.
27850 * tree-ssa-dse.c: Include langhooks.h
27851 (execute_simple_dse): Remove stores with zero size.
27852
27853 2009-01-24 Jakub Jelinek <jakub@redhat.com>
27854
27855 PR c/38957
27856 * c-typeck.c (c_finish_return): Handle POINTER_PLUS_EXPR the same way
27857 as PLUS_EXPR.
27858
27859 2009-01-24 Julian Brown <julian@codesourcery.com>
27860
27861 * config/arm/t-linux-eabi (LIB2FUNCS_STATIC_EXTRA): Add
27862 config/arm/linux-atomic.c.
27863 * config/arm/linux-atomic.c: New.
27864
27865 2009-01-24 Eric Botcazou <ebotcazou@adacore.com>
27866
27867 * config/sparc/linux.h (DBX_REGISTER_NUMBER): Delete.
27868 * config/sparc/linux64.h (DBX_REGISTER_NUMBER): Likewise.
27869 * config/sparc/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
27870
27871 2009-01-24 H.J. Lu <hongjiu.lu@intel.com>
27872
27873 PR c/38938
27874 * c-opts.c (c_common_handle_option): Update warn_pointer_sign
27875 properly.
27876
27877 2009-01-24 Sebastian Pop <sebastian.pop@amd.com>
27878
27879 PR tree-optimization/38953
27880 * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa.
27881 (scop_adjust_phis_for_liveouts): Initialize false_i to zero.
27882 (gloog): Split the exit of the scop when the scop exit is a loop exit.
27883 (graphite_transform_loops): Only call cleanup_tree_cfg if gloog
27884 changed the CFG.
27885
27886 2009-01-24 Paul Brook <paul@codesourcery.com>
27887
27888 * config/arm/neon.md (neon_type): Move to arm.md.
27889 (neon_mov<VSTRUCT>): Add neon_type attribute.
27890 * config/arm/arm.md (neon_type): Move to here.
27891 (conds): Add "unconditioal" and use as default for NEON insns.
27892
27893 2009-01-24 Ben Elliston <bje@au.ibm.com>
27894
27895 * bitmap.h (BITMAP_FREE): Eliminate `implicit conversion from
27896 void *' warning from -Wc++-compat.
27897 * Makefile.in (dominance.o-warn): Remove.
27898
27899 2009-01-23 Paolo Bonzini <bonzini@gnu.org>
27900
27901 PR tree-optimization/38932
27902 * fold-const.c (fold_unary_ignore_overflow): New.
27903 * tree.h (fold_unary_ignore_overflow): Declare.
27904 * tree-ssa-ccp.c (ccp_fold): Use fold_unary_ignore_overflow.
27905 * tree-ssa-sccvn.c (visit_reference_op_load,
27906 simplify_unary_expression): Likewise.
27907
27908 2009-01-22 Adam Nemet <anemet@caviumnetworks.com>
27909
27910 * c-decl.c (finish_struct): Move code to set DECL_PACKED after
27911 DECL_BIT_FIELD is alreay known. Also inherit packed for bitfields
27912 regardless of their type.
27913 * c-common.c (handle_packed_attribute): Don't ignore packed on
27914 bitfields.
27915 * c.opt (Wpacked-bitfield-compat): New warning option.
27916 * stor-layout.c (place_field): Warn if offset of a field changed.
27917 * doc/extend.texi (packed): Mention the ABI change.
27918 * doc/invoke.texi (-Wpacked-bitfield-compat): Document.
27919 (Warning Options): Add it to the list.
27920
27921 2009-01-22 H.J. Lu <hongjiu.lu@intel.com>
27922
27923 * c-opts.c (c_common_post_options): Fix a typo in comments.
27924
27925 2009-01-22 Steve Ellcey <sje@cup.hp.com>
27926
27927 PR middle-end/38615
27928 * gimplify.c (gimplify_init_constructor): Fix promotion of const
27929 variables to static.
27930 * doc/invoke.texi (-fmerge-all-constants): Update description.
27931
27932 2009-01-22 Uros Bizjak <ubizjak@gmail.com>
27933
27934 PR target/38931
27935 * config/i386/i386.md (*movsi_1): Use type "mmx" for alternative 2.
27936 (*movdi_1_rex64): Use type "mmx" for alternative 5.
27937
27938 2009-01-22 Richard Earnshaw <rearnsha@arm.com>
27939
27940 * arm.h (DATA_ALIGNMENT): Align structures, unions and arrays to
27941 a word boundary.
27942 (LOCAL_ALIGNMENT): Similarly.
27943
27944 2009-01-22 Mark Shinwell <shinwell@codesourcery.com>
27945 Joseph Myers <joseph@codesourcery.com>
27946
27947 * config/arm/arm.c (all_architectures): Add iWMMXt2 entry.
27948 * config/arm/arm-cores.def: New ARM_CORE entry for iWMMXt2.
27949 * config/arm/arm-tune.md: Regenerate.
27950 * doc/invoke.texi (ARM Options): Document -mcpu=iwmmxt2 and
27951 -march=iwmmxt2.
27952
27953 2009-01-22 Mark Shinwell <shinwell@codesourcery.com>
27954
27955 * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Bump EABI
27956 version number to five.
27957
27958 2009-01-22 Dodji Seketeli <dodji@redhat.com>
27959
27960 PR c++/38930
27961 * c-decl.c (clone_underlying_type): Revert PR c++/26693 changes.
27962 * c-common.c (set_underlying_type): Likewise.
27963 (is_typedef_decl ): Likewise
27964 * tree.h: Likewise
27965 (set_underlying_type): Likewise.
27966 (is_typedef_type): Likewise.
27967
27968 2009-01-21 Vladimir Makarov <vmakarov@redhat.com>
27969
27970 PR middle-end/38587
27971 * ira-color.c (coalesce_spill_slots): Don't coalesce allocnos
27972 crossing setjmps.
27973
27974 2009-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
27975
27976 PR bootstrap/37660
27977 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): New helper macro.
27978 (LIBGCC_SPEC): Don't define.
27979 (REAL_LIBGCC_SPEC): Define instead, using SHARED_LIBGCC_SPEC.
27980
27981 2009-01-21 Uros Bizjak <ubizjak@gmail.com>
27982
27983 PR rtl-optimization/38879
27984 * alias.c (base_alias_check): Unaligned access via AND address can
27985 alias all surrounding object types except those with sizes equal
27986 or wider than the size of unaligned access.
27987
27988 2009-01-21 Dodji Seketeli <dodji@redhat.com>
27989
27990 PR c++/26693
27991 * c-decl.c (clone_underlying_type): Move this ...
27992 * c-common.c (set_underlying_type): ... here.
27993 Also, make sure the function properly sets TYPE_STUB_DECL() on
27994 the newly created typedef variant type.
27995 (is_typedef_decl ): New entry point.
27996 * tree.h: Added a new member member_types_needing_access_check to
27997 struct tree_decl_non_common.
27998 (set_underlying_type): New entry point.
27999 (is_typedef_type): Likewise.
28000
28001 2009-01-21 Bingfeng Mei <bmei@broadcom.com>
28002
28003 * alias.c (walk_mems_1, walk_mems_2, insn_alias_sets_conflict_p):
28004 Check whether two instructions have memory references that
28005 belong to conflicting alias sets. walk_mems_1 and walk_mems_2
28006 are helper functions for traversing.
28007 * alias.h (insn_alias_sets_confilict_p): New prototypes.
28008 * ddg.c (add_inter_loop_mem_dep): Call insn_alias_sets_conflict_p
28009 not to draw dependency edge for instructions with non-conflicting
28010 alias sets.
28011
28012 2009-01-20 Joseph Myers <joseph@codesourcery.com>
28013
28014 PR other/38758
28015 * longlong.h: Update copyright years. Use soft-fp license notice.
28016 Sync __clz_tab declaration with glibc.
28017
28018 2009-01-20 Steve Ellcey <sje@cup.hp.com>
28019
28020 PR target/30687
28021 * doc/extend.texi (syscall_linkage): New.
28022 (version_id): Modify.
28023
28024 2009-01-20 Andrew Pinski <andrew_pinski@playstation.sony.com>
28025 Richard Guenther <rguenther@suse.de>
28026
28027 PR tree-optimization/38747
28028 PR tree-optimization/38748
28029 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Disable the VCE
28030 conversion if the base address is an indirect reference and the
28031 aliasing sets could cause issues.
28032
28033 2009-01-20 Sebastian Pop <sebastian.pop@amd.com>
28034
28035 * common.opt (fgraphite, fgraphite-identity): Add comment for
28036 explaining why these options are not documented.
28037
28038 2009-01-20 Sebastian Pop <sebastian.pop@amd.com>
28039
28040 * graphite.c (stmt_simple_for_scop_p): Also handle cases when
28041 gimple_call_lhs is NULL.
28042
28043 2009-01-20 Paolo Bonzini <bonzini@gnu.org>
28044
28045 PR target/38868
28046 * emit-rtl.c (adjust_address_1): Make sure memref is never
28047 overwritten.
28048
28049 2009-01-20 Ben Elliston <bje@au.ibm.com>
28050
28051 * libgcov.c (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
28052 const qualifier from arg parameter. Remove unnecessary cast to char *.
28053 * gcov-io.h (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
28054 const qualifier from arg 2.
28055
28056 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
28057
28058 * config/darwin.h: Add static-libgfortran to LINK_SPEC.
28059
28060 2009-01-19 Vladimir Makarov <vmakarov@redhat.com>
28061
28062 PR c/38869
28063 * rtl.h (reinit_regs): New prototype.
28064 * regclass.c: Include ira.h.
28065 (reinit_regs): New.
28066 * Makefile.in (regclass.o): Add ira.h.
28067 * config/i386/i386.c (ix86_maybe_switch_abi): Use reinit_regs.
28068
28069 2009-01-18 H.J. Lu <hongjiu.lu@intel.com>
28070
28071 PR target/38736
28072 * c-common.c (handle_aligned_attribute): Use
28073 ATTRIBUTE_ALIGNED_VALUE instead of BIGGEST_ALIGNMENT for
28074 default alignment value.
28075
28076 * c-cppbuiltin.c (c_cpp_builtins): Define __BIGGEST_ALIGNMENT__.
28077
28078 * defaults.h (ATTRIBUTE_ALIGNED_VALUE): New.
28079 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Likewise.
28080
28081 * doc/extend.texi: Update __attribute__ ((aligned)). Document
28082 __BIGGEST_ALIGNMENT__.
28083
28084 * doc/tm.texi: Document ATTRIBUTE_ALIGNED_VALUE.
28085
28086 2009-01-18 Richard Guenther <rguenther@suse.de>
28087
28088 PR tree-optimization/38819
28089 * tree-flow.h (operation_could_trap_helper_p): Declare.
28090 * tree-eh.c (operation_could_trap_helper_p): Export.
28091 * tree-ssa-sccvn.h (vn_nary_may_trap): Declare.
28092 * tree-ssa-sccvn.c (vn_nary_may_trap): New function.
28093 * tree-ssa-pre.c (insert_into_preds_of_block): Check if we
28094 are about to insert a possibly trapping instruction and fail
28095 in this case.
28096
28097 2009-01-18 Andreas Schwab <schwab@suse.de>
28098
28099 * doc/install.texi (Configuration): Remove obsolete paragraph
28100 about use of --with-gnu-ld with --with-gnu-as.
28101
28102 2009-01-18 Kazu Hirata <kazu@codesourcery.com>
28103
28104 * doc/extend.texi, doc/gimple.texi, doc/invoke.texi,
28105 doc/md.texi, doc/sourcebuild.texi, doc/tm.texi: Fix typos.
28106 Follow spelling conventions.
28107
28108 2009-01-18 Ben Elliston <bje@au.ibm.com>
28109
28110 * bitmap.c (bitmap_obstack_alloc_stat): Adjust cast to eliminate
28111 C++ warning about implicit conversion from void * to struct
28112 bitmap_head_def *.
28113 (bitmap_obstack_free): Likewise for bitmap_element *.
28114 * Makefile.in (bitmap.o-warn): Remove.
28115
28116 2009-01-17 Dave Korn <dave.korn.cygwin@gmail.com>
28117
28118 * Makefile.in (BACKENDLIBS): Reorder to match dependencies.
28119
28120 2009-01-17 Sebastian Pop <sebastian.pop@amd.com>
28121 Tobias Grosser <tobi.grosser@amd.com>
28122
28123 * graphite.c (graphite_trans_scop_block): Do not block single
28124 nested loops.
28125
28126 2009-01-16 Alexandre Oliva <aoliva@redhat.com>
28127
28128 * ebitmap.h (ebitmap_iter_init): Initialize all fields.
28129 * ipa-struct-reorg.c (gen_struct_type): Replace known-true
28130 test with assertion.
28131
28132 2009-01-16 Richard Guenther <rguenther@suse.de>
28133
28134 PR tree-optimization/38835
28135 PR middle-end/36227
28136 * fold-const.c (fold_binary): Remove PTR + INT -> (INT)(PTR p+ INT)
28137 and INT + PTR -> (INT)(PTR p+ INT) folding.
28138 * tree-ssa-address.c (create_mem_ref): Properly use POINTER_PLUS_EXPR.
28139
28140 2009-01-16 Adam Nemet <anemet@caviumnetworks.com>
28141
28142 PR target/38554
28143 * expmed.c (expand_shift): With SHIFT_COUNT_TRUNCATED, don't lift
28144 the subreg from a lowpart subreg if it is also casting the value.
28145
28146 2009-01-16 Sebastian Pop <sebastian.pop@amd.com>
28147 Tobias Grosser <tobi.grosser@amd.com>
28148
28149 * graphite.c (compare_prefix_loops): New.
28150 (build_scop_canonical_schedules): Rewritten.
28151 (graphite_transform_loops): Move build_scop_canonical_schedules
28152 after build_scop_iteration_domain.
28153
28154 2009-01-16 Sebastian Pop <sebastian.pop@amd.com>
28155 Tobias Grosser <tobi.grosser@amd.com>
28156
28157 * graphite.c (add_conditions_to_domain): Add the loops to
28158 the dimension of the iteration domain. Do copy the domain
28159 only when it exists.
28160 (build_scop_conditions_1): Do not call add_conditions_to_domain.
28161 (add_conditions_to_constraints): New.
28162 (can_generate_code_stmt, can_generate_code): Removed.
28163 (gloog): Do not call can_generate_code.
28164 (graphite_transform_loops): Call add_conditions_to_constraints
28165 after building the iteration domain.
28166
28167 2009-01-16 Jakub Jelinek <jakub@redhat.com>
28168
28169 PR tree-optimization/38789
28170 * tree-ssa-threadedge.c
28171 (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
28172 __builtin_constant_p.
28173
28174 2009-01-16 Kenneth Zadeck <zadeck@naturalbridge.com>
28175
28176 * dce.c (delete_unmarked_insns): Reversed the order that insns are
28177 examined before deleting them.
28178
28179 2009-01-16 Richard Earnshaw <rearnsha@arm.com>
28180
28181 * function.c (aggregate_value_p): Correctly extract the function
28182 type from CALL_EXPR_FN lookup.
28183
28184 2009-01-16 Hariharan Sandanagobalane <hariharan@picochip.com>
28185
28186 * config/picochip/picochip.c (picochip_override_options): Revert
28187 CFI asm flag disable commited previously.
28188
28189 2009-01-15 Sebastian Pop <sebastian.pop@amd.com>
28190 Tobias Grosser <tobi.grosser@amd.com>
28191 Jan Sjodin <jan.sjodin@amd.com>
28192
28193 * graphite.c (scan_tree_for_params): On substractions negate
28194 all the coefficients of the term.
28195 (clast_to_gcc_expression_red): New. Handle reduction expressions
28196 of more than two operands.
28197 (clast_to_gcc_expression): Call clast_to_gcc_expression_red.
28198 (get_vdef_before_scop): Handle also the case of default definitions.
28199
28200 2009-01-15 Richard Sandiford <rdsandiford@googlemail.com>
28201
28202 * caller-save.c (add_used_regs_1, add_used_regs): New functions.
28203 (insert_one_insn): Use them instead of REG_DEAD and REG_INC notes.
28204 Also use them when walking CALL_INSN_FUNCTION_USAGE.
28205
28206 2009-01-15 H.J. Lu <hongjiu.lu@intel.com>
28207 Joey Ye <joey.ye@intel.com>
28208
28209 PR middle-end/37843
28210 * cfgexpand.c (expand_stack_alignment): Don't update stack
28211 boundary nor check incoming stack boundary here.
28212 (gimple_expand_cfg): Update stack boundary and check incoming
28213 stack boundary here.
28214
28215 2009-01-15 Kenneth Zadeck <zadeck@naturalbridge.com>
28216
28217 * dce.c (find_call_stack_args, delete_unmarked_insns): Fixed comments.
28218
28219 2009-01-14 Jakub Jelinek <jakub@redhat.com>
28220
28221 PR rtl-optimization/38245
28222 * calls.c (expand_call): Add stack arguments to
28223 CALL_INSN_FUNCTION_USAGE even for pure calls (when
28224 ACCUMULATE_OUTGOING_ARGS) and even for args partially passed
28225 in regs and partially in memory or BLKmode arguments.
28226 (emit_library_call_value_1): Add stack arguments to
28227 CALL_INSN_FUNCTION_USAGE even for pure calls (when
28228 ACCUMULATE_OUTGOING_ARGS).
28229 * dce.c: Include tm_p.h.
28230 (find_call_stack_args): New function.
28231 (deletable_insn_p): Call it for CALL_P insns. Add ARG_STORES
28232 argument.
28233 (mark_insn): Call find_call_stack_args for CALL_Ps.
28234 (prescan_insns_for_dce): Walk insns backwards in bb rather than
28235 forwards. Allocate and free arg_stores bitmap if needed, pass it
28236 down to deletable_insn_p, don't mark stores set in arg_stores
28237 bitmap, clear the bitmap at the beginning of each bb.
28238 * Makefile.in (dce.o): Depend on $(TM_P_H).
28239
28240 2009-01-14 Michael Meissner <gnu@the-meissners.org>
28241
28242 PR target/22599
28243 * config/i386/i386.c (print_operand): Add tests for 'D', 'C', 'F', 'f'
28244 to make sure the insn is a conditional test (bug 22599). Reformat a
28245 few long lines.
28246
28247 2009-01-14 Sebastian Pop <sebastian.pop@amd.com>
28248
28249 PR middle-end/38431
28250 * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New.
28251 (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi.
28252 (gloog): Do not call cleanup_tree_cfg.
28253 (graphite_transform_loops): Call cleanup_tree_cfg after all
28254 scops have been code generated.
28255
28256 2009-01-14 Basile Starynkevitch <basile@starynkevitch.net>
28257 * doc/gty.texi (Invoking the garbage collector): Added new node
28258 and section documenting ggc_collect.
28259
28260 2009-01-14 Richard Guenther <rguenther@suse.de>
28261
28262 PR tree-optimization/38826
28263 PR middle-end/38477
28264 * tree-ssa-structalias.c (emit_alias_warning): Emit the pointer
28265 initialization notes only if we actually emitted a warning.
28266 (intra_create_variable_infos): Add constraints for a result decl
28267 that is passed by hidden reference.
28268 (build_pred_graph): Mark all related variables non-direct on
28269 address-taking.
28270
28271 2009-01-14 Nick Clifton <nickc@redhat.com>
28272
28273 * ira-conflicts.c: Include addresses.h for the definition of
28274 base_reg_class.
28275 (ira_build_conflicts): Use base_reg_class instead of BASE_REG_CLASS.
28276 * Makefile.in: Add a dependency of ira-conflicts.o on addresses.h.
28277
28278 2009-01-13 Vladimir Makarov <vmakarov@redhat.com>
28279
28280 PR target/38811
28281 * Makefile.in (ira-lives.o): Add except.h.
28282
28283 * ira-lives.c: Include except.h.
28284 (process_bb_node_lives): Process can_throw_internal.
28285
28286 2009-01-13 Jakub Jelinek <jakub@redhat.com>
28287
28288 PR rtl-optimization/38774
28289 * combine.c (simplify_set): When undoing cc_use change, don't do
28290 PUT_CODE on the newly created comparison, but instead put back the
28291 old comparison.
28292
28293 2009-01-13 Joseph Myers <joseph@codesourcery.com>
28294
28295 * doc/invoke.texi (ARM Options): Update lists of -mcpu and -march
28296 values. Remove duplicate arm8 entry.
28297
28298 2009-01-13 Sebastian Pop <sebastian.pop@amd.com>
28299
28300 PR tree-optimization/38786
28301 * graphite.c (expand_scalar_variables_ssa_name): New, outlined from
28302 the SSA_NAME case of expand_scalar_variables_expr.
28303 Set the type of an expression to the type of its assign statement.
28304 (expand_scalar_variables_expr): Also gather the scalar computation
28305 used to index the memory access. Do not pass loop_p.
28306 Fix comment. Stop recursion on tcc_constant or tcc_declaration.
28307 (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr
28308 the gimple_stmt_iterator where it inserts new code.
28309 Do not pass loop_p.
28310 (copy_bb_and_scalar_dependences): Do not pass loop_p.
28311 (translate_clast): Update call to copy_bb_and_scalar_dependences.
28312
28313 2009-01-13 Sebastian Pop <sebastian.pop@amd.com>
28314
28315 * graphite.h (debug_value): Removed.
28316 * graphite.c (debug_value): Removed.
28317
28318 2009-01-13 Richard Earnshaw <rearnsha@arm.com>
28319
28320 * config/arm/arm.c (output_move_double): Don't synthesize thumb-2
28321 ldrd/strd with two 32-bit instructions.
28322
28323 2009-01-13 Richard Earnshaw <rearnsha@arm.com>
28324
28325 * config/arm/arm.c (struct processors): Pass for speed down into
28326 cost helper functions.
28327 (const_ok_for_op): Handle COMPARE and inequality nodes.
28328 (arm_rtx_costs_1): Rewrite.
28329 (arm_size_rtx_costs): Update prototype.
28330 (arm_rtx_costs): Pass speed down to helper functions.
28331 (arm_slowmul_rtx_costs): Rework cost calculations.
28332 (arm_fastmul_rtx_costs, arm_xscale_rtx_costs): Likewise.
28333 (arm_9e_rtx_costs): Likewise.
28334
28335 2009-01-13 Uros Bizjak <ubizjak@gmail.com>
28336
28337 * config/alpha/alpha.c (alpha_legitimate_address_p): Explicit
28338 relocations of local symbols wider than UNITS_PER_WORD are not valid.
28339 (alpha_legitimize_address): Do not split local symbols wider than
28340 UNITS_PER_WORD into HIGH/LO_SUM parts.
28341
28342 2009-01-13 Danny Smith <dannysmith@users.sourceforge.net>
28343
28344 PR bootstrap/38580
28345 * gcc.c (process_command): Replace call to execvp with calls
28346 to pex_one and exit.
28347
28348 2009-01-03 Anatoly Sokolov <aesok@post.ru>
28349
28350 PR target/29141
28351 * config/avr/t-avr (LIB1ASMFUNCS): Add _tablejump_elpm.
28352 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Add
28353 variant for devices with 3-byte PC.
28354 (__tablejump_elpm__): New.
28355
28356 2009-01-12 Jakub Jelinek <jakub@redhat.com>
28357
28358 PR c/32041
28359 * c-parser.c (c_parser_postfix_expression): Allow `->' in
28360 offsetof member-designator, handle it as `[0].'.
28361
28362 2009-01-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
28363
28364 * pa.c (pa_asm_output_mi_thunk): Use pc-relative branch to thunk
28365 function when not using named sections on targets with named sections
28366 if branch distance is less than 262132.
28367
28368 2009-01-12 Richard Earnshaw <rearnsha@arm.com>
28369
28370 * combine.c (combine_instructions): Recompute
28371 optimize_this_for_speed_p for each BB in the main combine loop.
28372
28373 2009-01-12 Tomas Bily <tbily@suse.cz>
28374
28375 PR middlend/38385
28376 * tree-loop-distribution.c (prop_phis): New function.
28377 (generate_builtin): Call prop_phis.
28378
28379 2009-01-12 Jakub Jelinek <jakub@redhat.com>
28380
28381 PR tree-optimization/38807
28382 * tree-ssa-reassoc.c (remove_visited_stmt_chain): Don't look at
28383 gimple_visited_p unless stmt is GIMPLE_ASSIGN.
28384
28385 2009-01-11 Adam Nemet <anemet@caviumnetworks.com>
28386
28387 * expmed.c (store_bit_field_1): Properly truncate the paradoxical
28388 subreg of op0 to the original op0.
28389
28390 2009-01-11 Laurent GUERBY <laurent@guerby.net>
28391
28392 * doc/sourcebuild.texi (Source Tree): Move up intl and fixinc.
28393
28394 2009-01-11 Markus Schoepflin <markus.schoepflin@comsoft.de>
28395
28396 PR debug/7055
28397 * mips-tfile.c (parse_def): Fix parsing of def strings
28398 starting with digits.
28399
28400 2009-01-10 Jakub Jelinek <jakub@redhat.com>
28401
28402 PR target/38695
28403 * config/arm/arm.c (arm_is_long_call_p): Don't call
28404 arm_function_in_section_p if decl isn't a FUNCTION_DECL.
28405
28406 2009-01-09 Steven Bosscher <steven@gcc.gnu.org>
28407
28408 * regrename.c (regrename_optimize): Fix dumping.
28409 (find_oldest_value_reg): Preserve REG_POINTER.
28410 (copy_hardreg_forward_1): Likewise.
28411
28412 2009-01-09 Diego Novillo <dnovillo@google.com>
28413
28414 * gimple.h (struct gimple_statement_base) <uid>: Document
28415 the restrictions on its use.
28416 (gimple_uid): Tidy.
28417 (gimple_set_uid): Tidy.
28418
28419 2009-01-09 Jakub Jelinek <jakub@redhat.com>
28420
28421 * config/i386/i386.c (ix86_expand_movmem, ix86_expand_setmem): Add
28422 zero guard even if align_bytes != 0 and count is smaller than
28423 size_needed.
28424
28425 2009-01-09 Vladimir Makarov <vmakarov@redhat.com>
28426
28427 PR rtl-optimization/38495
28428 * ira-emit.c (print_move_list, ira_debug_move_list): New functions.
28429 (add_range_and_copies_from_move_list): Print all added ranges.
28430 Add ranges to memory optimized destination.
28431
28432 2009-01-09 Jakub Jelinek <jakub@redhat.com>
28433
28434 PR target/38686
28435 PR target/38708
28436 * config/i386/i386.c (override_options): Reject
28437 -mstringop-strategy=rep_8byte with -m32.
28438 (ix86_expand_movmem): For size_needed == 1 set epilogue_size_needed
28439 to 1. Do count comparison against epilogue_size_needed at compile
28440 time even when count_exp was constant forced into register. For
28441 size_needed don't jump to epilogue, instead just avoid aligning
28442 and invoke the body algorithm. If need_zero_guard, add zero guard
28443 even if count is non-zero, but smaller than size_needed + number of
28444 bytes that could be stored for alignment.
28445 (ix86_expand_setmem): For size_needed == 1 set epilogue_size_needed
28446 to 1. If need_zero_guard, add zero guard even if count is non-zero,
28447 but smaller than size_needed + number of bytes that could be stored
28448 for alignment. Compare size_needed with epilogue_size_needed instead
28449 of desired_align - align, don't adjust size_needed, pass
28450 epilogue_size_needed to the epilogue expanders.
28451
28452 PR c/35742
28453 * c-pretty-print.c (pp_c_expression): Handle GOTO_EXPR like BIND_EXPR.
28454
28455 2009-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
28456
28457 * pa.c (last_address): Change to unsigned.
28458 (update_total_code_bytes): Change argument to unsigned. Don't
28459 check if insn addresses are set.
28460 (pa_output_function_epilogue): Set last_address to UINT_MAX if insn
28461 addresses are not set.
28462 (pa_asm_output_mi_thunk): Handle wrap when updating last_address.
28463
28464 2009-01-09 Nick Clifton <nickc@redhat.com>
28465
28466 * config/sh/symbian.c: Replace uses of DECL_INLINE with
28467 DECL_DECLARED_INLINE_P.
28468
28469 2009-01-09 Jakub Jelinek <jakub@redhat.com>
28470
28471 PR middle-end/38347
28472 * dojump.c (do_jump_by_parts_zero_rtx): Use mode instead of
28473 GET_MODE (op0) in operand_subword_force calls.
28474
28475 PR middle-end/38771
28476 * fold-const.c (fold_unary): For COMPOUND_EXPR and COND_EXPR,
28477 fold_convert arg0 operands to TREE_TYPE (op0) first.
28478
28479 2009-01-08 Vladimir Makarov <vmakarov@redhat.com>
28480
28481 * params.def (ira-max-conflict-table-size): Decrease default value
28482 to 1000.
28483
28484 2009-01-08 Jakub Jelinek <jakub@redhat.com>
28485
28486 PR tree-optimization/37031
28487 * lambda-code.c (lambda_collect_parameters): Call pointer_set_destroy
28488 on parameter_set.
28489 (build_access_matrix): Reserve correct size for AM_MATRIX vector,
28490 allocate it using gc instead of heap, use VEC_quick_push instead of
28491 VEC_safe_push.
28492 * graphite.c (build_access_matrix): Allocate AM_MATRIX vector using gc
28493 instead of heap, use VEC_quick_push instead of VEC_safe_push.
28494 * tree-data-ref.h (struct access_matrix): Change matrix to gc
28495 allocated vector from heap allocated.
28496 * lambda.h: Add DEF_VEC_ALLOC_P for gc allocated lambda_vector.
28497 * tree-loop-linear.c (linear_transform_loops): Allocate nest
28498 vector only after perfect_loop_nest_depth call.
28499
28500 2009-01-08 Sebastian Pop <sebastian.pop@amd.com>
28501 Jan Sjodin <jan.sjodin@amd.com>
28502
28503 PR tree-optimization/38559
28504 * graphite.c (debug_value, copy_constraint,
28505 swap_constraint_variables, scale_constraint_variable, ): New.
28506 (get_lower_bound, get_upper_bound): Removed.
28507 (graphite_trans_bb_strip_mine): Clean up this code that works
28508 only for constant number of iterations. Fully copy upper and
28509 lower bound constraints, not only the constant part of them.
28510 * graphite.h (debug_value): Declared.
28511
28512 2009-01-08 Ira Rosen <irar@il.ibm.com>
28513
28514 PR tree-optimization/37194
28515 * tree-vect-transform.c (vect_estimate_min_profitable_iters):
28516 Don't add the cost of cost model guard in prologue to scalar
28517 outside cost in case of known number of iterations.
28518
28519 2009-01-07 Nathan Froyd <froydnj@codesourcery.com>
28520 Alan Modra <amodra@bigpond.net.au>
28521
28522 * config/rs6000/rs6000.c (rs6000_legitimize_address): Check for
28523 non-word-aligned REG+CONST addressing.
28524
28525 2009-01-07 Uros Bizjak <ubizjak@gmail.com>
28526
28527 PR target/38706
28528 * config/alpha/alpha.c (alpha_end_function): For TARGET_ABI_OSF, call
28529 free_after_compilation when outputting a thunk.
28530 (alpha_output_mi_thunk_osf): Assert that we are processing a thunk.
28531 Do not call free_after_compilation here.
28532
28533 2009-01-07 Uros Bizjak <ubizjak@gmail.com>
28534
28535 * config/i386/i386.c (ix86_target_string): Use ARRAY_SIZE.
28536 (ix86_valid_target_attribute_inner_p): Ditto.
28537
28538 2009-01-07 Jan Sjodin <jan.sjodin@amd.com>
28539
28540 PR tree-optimization/38492
28541 PR tree-optimization/38498
28542 * tree-check.c (operator_is_linear, scev_is_linear_expression): New.
28543 * tree-chrec.h (scev_is_linear_expression): Declared.
28544 * graphite.c (graphite_cannot_represent_loop_niter): New.
28545 (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter.
28546 (graphite_loop_normal_form): Use gcc_assert.
28547 (scan_tree_for_params): Use CASE_CONVERT.
28548 (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New.
28549 (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes.
28550 Use gcc_assert. Discard scops that contain unhandled cases.
28551 (build_scop_conditions): Return a boolean status for unhandled cases.
28552 (strip_mine_profitable_p): Print the loop number, not its depth.
28553 (is_interchange_valid): Pass the depth of the loop nest, don't
28554 recompute it wrongly.
28555 (graphite_trans_bb_block): Same.
28556 (graphite_trans_bb_block): Print tentative of loop blocking.
28557 (graphite_trans_scop_block): Do not print that the loop has been
28558 blocked.
28559 (graphite_transform_loops): Do not handle scops that contain condition
28560 scalar phi nodes.
28561
28562 2009-01-07 H.J. Lu <hongjiu.lu@intel.com>
28563
28564 AVX Programming Reference (December, 2008)
28565 * config/i386/avxintrin.h (_mm256_stream_si256): New.
28566 (_mm256_stream_pd): Likewise.
28567 (_mm256_stream_ps): Likewise.
28568
28569 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVNTDQ256,
28570 IX86_BUILTIN_MOVNTPD256 and IX86_BUILTIN_MOVNTPS256.
28571 (ix86_special_builtin_type): Add VOID_FTYPE_PV4DI_V4DI.
28572 (bdesc_special_args): Add __builtin_ia32_movntdq256,
28573 __builtin_ia32_movntpd256 and __builtin_ia32_movntps256.
28574 (ix86_init_mmx_sse_builtins): Handle VOID_FTYPE_PV4DI_V4DI.
28575 (ix86_expand_special_args_builtin): Likewise.
28576
28577 * config/i386/sse.md (AVXMODEDI): New.
28578 (avx_movnt<mode>): Likewise.
28579 (avx_movnt<mode>): Likewise.
28580 (<sse>_movnt<mode>): Remove AVX support.
28581 (sse2_movntv2di): Likewise.
28582
28583 2009-01-07 Richard Guenther <rguenther@suse.de>
28584
28585 PR middle-end/38751
28586 * fold-const.c (extract_muldiv): Remove obsolete comment.
28587 (fold_plusminus_mult_expr): Undo MINUS_EXPR
28588 to PLUS_EXPR canonicalization for the canonicalization.
28589
28590 2009-01-07 Gerald Pfeifer <gerald@pfeifer.com>
28591
28592 * doc/install.texi (alpha*-dec-osf*): Remove note on 32-bit
28593 hosted cross-compilers generating less efficient code.
28594
28595 2009-01-06 Richard Sandiford <rdsandiford@googlemail.com>
28596
28597 * function.h (rtl_data): Add a dbr_scheduled_p field.
28598 * reorg.c (dbr_schedule): Set it.
28599 (gate_handle_delay_slots): Check it.
28600 * config/mips/mips.c (mips_base_delayed_branch): Delete.
28601 (mips_reorg): Check flag_delayed_branch instead of
28602 mips_base_delayed_branch.
28603 (mips_override_options): Don't set mips_base_delayed_branch
28604 or flag_delayed_branch.
28605
28606 2009-01-06 Richard Sandiford <rdsandiford@googlemail.com>
28607
28608 PR rtl-optimization/38426.
28609 * ira.c (ira): Set current_function_is_leaf earlier.
28610
28611 2009-01-06 Jakub Jelinek <jakub@redhat.com>
28612
28613 PR rtl-optimization/38722
28614 * combine.c (try_combine): Don't modify PATTERN (i3) and notes
28615 too early, only set a flag and modify after last possible
28616 undo_all point.
28617
28618 2009-01-06 Janis Johnson <janis187@us.ibm.com>
28619
28620 PR c/34252
28621 * ginclude/float.h: Rename DECnn_DEN to DECnn_SUBNORMAL_MIN.
28622 * real.c (decimal_single_format): Correct values of emin and emax.
28623 (decimal_double_format): Ditto.
28624 (decimal_quad_format): Ditto.
28625 * c-cppbuiltin.c (builtin_define_decimal_float_constants): Adjust
28626 computation of DECnn_MIN and DECnn_MAX for corrected values of
28627 emin and emax. Define __DECnn_SUBNORMAL_MIN__ instead of
28628 __DECnn_MIN__, and adjust its computation for the corrected value
28629 of emin.
28630
28631 2009-01-06 Jan Hubicka <jh@suse.cz>
28632
28633 PR target/38744
28634 * config/i386/i386.c (ix86_expand_call): Use ARRAY_SIZE.
28635
28636 2009-01-06 Gerald Pfeifer <gerald@pfeifer.com>
28637
28638 * doc/contrib.texi (Contributors): Slightly adjust the end note.
28639 Add Robert Clark to the list of testers.
28640
28641 2009-01-06 Jan Hubicka <jh@suse.cz>
28642 Kai Tietz <kai.tietz@onevision.com>
28643
28644 * config/i386/i386.md (*msabi_syvabi): Add SSE regs clobbers.
28645 * config/i386/i386.c (ix86_expand_call): Add clobbers.
28646
28647 2009-01-06 Jan Hubicka <jh@suse.cz>
28648 Kai Tietz <kai.tietz@onevision.com>
28649
28650 * config/i386/i386.h (CONDITIONAL_CALL_USAGE): SSE regs are not used
28651 for w64 ABI.
28652 * config/i386/i386.c (struct ix86_frame): Add padding0 and nsseregs.
28653 (ix86_nsaved_regs): Count only general purpose regs.
28654 (ix86_nsaved_sseregs): New.
28655 (ix86_compute_frame_layout): Update nsseregs; set preferred alignment
28656 to 16 for w64; compute padding and size of sse reg save area.
28657 (ix86_emit_save_regs, ix86_emit_save_regs_using_mov): Save only
28658 general purpose regs.
28659 (ix86_emit_save_sse_regs_using_mov): New.
28660 (ix86_expand_prologue): Save SSE regs if needed.
28661 (ix86_emit_restore_regs_using_mov): Use only general purpose regs.
28662 (ix86_emit_restore_sse_regs_using_mov): New.
28663 (ix86_expand_epilogue): Save SSE regs if needed.
28664
28665 2009-01-06 Jan Hubicka <jh@suse.cz>
28666 Kai Tietz <kai.tietz@onevision.com>
28667
28668 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Enable for MSABI
28669 * config/i386/i386.c (init_cumulative_args): Disallow calls of MSABI
28670 functions when accumulate outgoing args is off.
28671
28672 2009-01-06 H.J. Lu <hongjiu.lu@intel.com>
28673
28674 PR bootstrap/38742
28675 * ira-color.c (ira_reuse_stack_slot): Check ENABLE_IRA_CHECKING
28676 before using pseudos_have_intersected_live_ranges_p.
28677
28678 * ira-int.h (ira_assert): Always define.
28679
28680 2009-01-06 H.J. Lu <hongjiu.lu@intel.com>
28681
28682 AVX Programming Reference (December, 2008)
28683 * config/i386/avxintrin.h (_mm_permute2_pd): Removed.
28684 (_mm256_permute2_pd): Likewise.
28685 (_mm_permute2_ps): Likewise.
28686 (_mm256_permute2_ps): Likewise.
28687 * config/i386/i386.md (UNSPEC_VPERMIL2): Likewise.
28688 * config/i386/sse.md (avx_vpermil2<mode>3): Likewise.
28689
28690 * config/i386/i386.c (ix86_builtins): Remove
28691 IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
28692 IX86_BUILTIN_VPERMIL2PD256 and IX86_BUILTIN_VPERMIL2PS256.
28693 (ix86_builtin_type): Remove V8SF_FTYPE_V8SF_V8SF_V8SI_INT,
28694 V4DF_FTYPE_V4DF_V4DF_V4DI_INT, V4SF_FTYPE_V4SF_V4SF_V4SI_INT
28695 and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
28696 (bdesc_args): Remove __builtin_ia32_vpermil2pd,
28697 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256 and
28698 __builtin_ia32_vpermil2ps256.
28699 (ix86_init_mmx_sse_builtins): Updated.
28700 (ix86_expand_args_builtin): Likewise.
28701
28702 2009-01-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
28703
28704 * pa.c (output_call): Relocate non-jump insns in the delay slot of
28705 long absolute calls when generating PA 2.0 code.
28706
28707 2009-01-05 Vladimir Makarov <vmakarov@redhat.com>
28708
28709 PR rtl-optimization/38583
28710 * params.h (IRA_MAX_CONFLICT_TABLE_SIZE): New macro.
28711
28712 * params.def (ira-max-conflict-table-size): New.
28713
28714 * doc/invoke.texi (ira-max-conflict-table-size): Decribe.
28715
28716 * ira.h (ira_conflicts_p): New external definition.
28717
28718 * ira-conflicts.c (build_conflict_bit_table): Do not build too big
28719 table. Report this. Return result of building.
28720 (ira_build_conflicts): Use ira_conflicts_p. Check result of
28721 building conflict table.
28722
28723 * ira-color.c (fast_allocation): Use num instead of ira_allocnos_num.
28724 (ira_color): Use ira_conflicts_p.
28725
28726 * global.c: Include ira.h.
28727 (pseudo_for_reload_consideration_p, build_insn_chain): Use
28728 ira_conflicts_p.
28729
28730 * Makefile.in (global.o): Add ira.h.
28731
28732 * ira-build.c (mark_all_loops_for_removal,
28733 propagate_some_info_from_allocno): New.
28734 (remove_unnecessary_allocnos): Call
28735 propagate_some_info_from_allocno.
28736 (remove_low_level_allocnos): New.
28737 (remove_unnecessary_regions): Add parameter. Call
28738 mark_all_loops_for_removal and remove_low_level_allocnos. Pass
28739 parameter to remove_unnecessary_regions.
28740 (ira_build): Remove all regions but root if the conflict table was
28741 not built. Update conflict hard regs for allocnos crossing calls.
28742
28743 * ira.c (ira_conflicts_p): New global.
28744 (ira): Define and use ira_conflicts_p.
28745
28746 * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
28747 count_spilled_pseudo, find_reg, alter_reg, finish_spills,
28748 emit_input_reload_insns, delete_output_reload): Use ira_conflicts_p.
28749
28750 2009-01-06 Ben Elliston <bje@au.ibm.com>
28751
28752 * gengtype-lex.l (YY_NO_INPUT): Define.
28753
28754 2009-01-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
28755
28756 PR c/34911
28757 * c-common.c (handle_vector_size_attribute): Also reject
28758 BOOLEAN_TYPE types.
28759
28760 2009-01-05 Sebastian Pop <sebastian.pop@amd.com>
28761
28762 PR tree-optimization/38492
28763 * graphite.c (rename_map_elt, debug_rename_elt,
28764 debug_rename_map_1, debug_rename_map, new_rename_map_elt,
28765 rename_map_elt_info, eq_rename_map_elts,
28766 get_new_name_from_old_name, bb_in_sese_p): Moved around.
28767 (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use.
28768 (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb.
28769 (sese_build_livein_liveouts): New.
28770 (new_sese, free_sese): New.
28771 (new_scop): Call new_sese.
28772 (free_scop): Call free_sese.
28773 (rename_variables_from_edge, rename_phis_end_scop): Removed.
28774 (register_old_new_names): Renamed register_old_and_new_names.
28775 (register_scop_liveout_renames, add_loop_exit_phis,
28776 insert_loop_close_phis, struct igp,
28777 default_liveout_before_guard, add_guard_exit_phis,
28778 insert_guard_phis, copy_renames): New.
28779 (translate_clast): Call insert_loop_close_phis and insert_guard_phis.
28780 (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge.
28781 (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts.
28782 (scop_adjust_phis_for_liveouts): New.
28783 (gloog): Call scop_adjust_phis_for_liveouts.
28784
28785 * graphite.h (struct sese): Documented. Added fields liveout,
28786 num_ver and livein.
28787 (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New.
28788 (new_sese, free_sese, sese_build_livein_liveouts): Declared.
28789 (struct scop): Added field liveout_renames.
28790 (SCOP_LIVEOUT_RENAMES): New.
28791
28792 2009-01-05 Harsha Jagasia <harsha.jagasia@amd.com>
28793
28794 PR tree-optimization/38510
28795 * graphite.c (recompute_all_dominators): Call mark_irreducible_loops.
28796 (translate_clast): Call recompute_all_dominators before
28797 graphite_verify.
28798 (gloog): Call recompute_all_dominators before graphite_verify.
28799
28800 2009-01-05 Harsha Jagasia <harsha.jagasia@amd.com>
28801 Jan Sjodin <jan.sjodin@amd.com>
28802
28803 PR tree-optimization/38500
28804 * graphite.c (create_sese_edges): Call fix_loop_structure after
28805 splitting blocks.
28806
28807 2009-01-05 Joel Sherrill <joel.sherrill@oarcorp.com>
28808
28809 * config.gcc: Add m32r*-*-rtems*.
28810 * config/m32r/rtems.h: New file.
28811
28812 2009-01-05 Ben Elliston <bje@au.ibm.com>
28813
28814 * Makefile.in (.po.gmo): Use mkinstalldirs, not test -d || mkdir.
28815 (.po.pox): Likewise.
28816 (po/gcc.pot): Likewise.
28817
28818 2009-01-04 David S. Miller <davem@davemloft.net>
28819
28820 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED_RTX): Delete.
28821 (STARTING_FRAME_OFFSET): Always set to zero.
28822
28823 2009-01-04 Richard Sandiford <rdsandiford@googlemail.com>
28824
28825 * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Add commentary.
28826 * tree-cfg.c (verify_gimple_assign_binary): Allow shifts of
28827 fixed-point types, and vectors of the same.
28828
28829 2009-01-04 Richard Sandiford <rdsandiford@googlemail.com>
28830
28831 * config/mips/sync.md (*mb_barrier): Rename to...
28832 (*memory_barrier): ...this.
28833
28834 2009-01-04 Jonathan Wakely <jwakely.gcc@gmail.com>
28835
28836 * doc/extend.texi (Function Attributes): Move @cindex after @item
28837 for 'artificial' and 'flatten'. Fix grammar for 'externally_visible'
28838 and put in alphabetical order. Fix 'target' name and put in order.
28839 * doc/invoke.texi (-Wstrict-null-sentinel, -fipa-matrix-reorg): Fix
28840 typos.
28841
28842 2009-01-04 Uros Bizjak <ubizjak@gmail.com>
28843
28844 * config/s390/s390.md (UNSPEC_MB): Rename from UNSPECV_MB.
28845 (memory_barrier): Expand as unspec instead of unspec_volatile.
28846 Remove mem:BLK from insn operands. Use Pmode scratch register.
28847 (*memory_barrier): Define as unspec instead of unspec_volatile.
28848 Use (match_dup 0) as input operand.
28849
28850 * config/sparc/sparc.md (UNSPEC_MEMBAR): Rename from UNSPECV_MEMBAR.
28851 * config/sparc/sync.md (memory_barrier): Expand as unspec instead of
28852 unspec_volatile. Remove mem:BLK from insn operands. Use Pmode
28853 scratch register. Remove operand 1.
28854 (*stbar): Define as unspec instead of unspec_volatile.
28855 Use (match_dup 0) as input operand, remove (const_int 8).
28856 (*membar): Define as unspec instead of unspec_volatile.
28857 Use (match_dup 0) as input operand, remove input operand 2.
28858
28859 * config/xtensa/xtensa.md (UNSPEC_MEMW): Rename from UNSPECV_MEMW.
28860 (memory_barrier): Expand as unspec instead of unspec_volatile.
28861 Remove mem:BLK from insn operands. Use Pmode scratch register.
28862 (*memory_barrier): Define as unspec instead of unspec_volatile.
28863 Use (match_dup 0) as input operand.
28864
28865 * config/ia64/sync.md (memory_barrier): Redefine as expander pattern.
28866 Remove mem:BLK from insn operands. Use Pmode scratch register.
28867 Set volatile flag on operand 0.
28868 (*memory_barrier): New insn pattern.
28869
28870 * config/rs6000/sync.md (memory_barrier): Remove mem:BLK from
28871 insn operands.
28872 (*memory_barrier): Use (match_dup 0) as input operand.
28873
28874 * config/mips/sync.md (memory_barrier): Redefine as expander pattern.
28875 Remove mem:BLK from insn operands. Use Pmode scratch register.
28876 Set volatile flag on operand 0.
28877 (*mb_internal): New insn pattern.
28878
28879 * config/alpha/sync.md (*memory_barrier): Rename from *mb_internal.
28880
28881 2009-01-04 Steven Bosscher <steven@gcc.gnu.org>
28882
28883 PR middle-end/38586
28884 * function.c (struct temp_slot): Move to the section of the file
28885 that deals with temp slots. Remove field 'address'.
28886 (temp_slot_address_table): New hash table of address -> temp slot.
28887 (struct temp_slot_address_entry): New struct, items for the table.
28888 (temp_slot_address_compute_hash, temp_slot_address_hash,
28889 temp_slot_address_eq, insert_temp_slot_address): Support functions
28890 for the new table.
28891 (find_temp_slot_from_address): Rewrite to use the new hash table.
28892 (remove_unused_temp_slot_addresses): Remove addresses of temp
28893 slots that have been made available.
28894 (remove_unused_temp_slot_addresses_1): Call-back for htab_traverse,
28895 worker function for remove_unused_temp_slot_addresses.
28896 (assign_stack_temp_for_type): Don't clear the temp slot address list.
28897 Add the temp slot address to the address -> temp slot map.
28898 (update_temp_slot_address): Update via insert_temp_slot_address.
28899 (free_temp_slots): Call remove_unused_temp_slot_addresses.
28900 (pop_temp_slots): Likewise.
28901 (init_temp_slots): Allocate the address -> temp slot map, or empty
28902 the map if it is already allocated.
28903 (prepare_function_start): Initialize temp slot processing.
28904
28905 2009-01-04 Steven Bosscher <steven@gcc.gnu.org>
28906
28907 PR middle-end/38584
28908 * cfgexpand.c (estimate_stack_frame_size): Simplify the estimate:
28909 Calculate the size of all stack vars assuming no packing of stack
28910 vars will happen, replacing a quadratic algorithm with a linear one.
28911
28912 2009-01-03 Jakub Jelinek <jakub@redhat.com>
28913
28914 PR target/38707
28915 * expmed.c (store_bit_field_1): Don't modify op0 if movstrict insn
28916 can't be used.
28917
28918 2009-01-03 Diego Novillo <dnovillo@google.com>
28919
28920 * doc/contrib.texi: Update contributions.
28921
28922 2009-01-03 Jakub Jelinek <jakub@redhat.com>
28923
28924 PR c++/38705
28925 * builtins.c (fold_builtin_memory_op): Give up if either operand
28926 is volatile. Set srctype or desttype to non-qualified version
28927 of the other type.
28928
28929 PR c/38700
28930 * builtins.c (fold_builtin_expect): Only check DECL_WEAK for VAR_DECLs
28931 and FUNCTION_DECLs.
28932
28933 2009-01-02 Kenneth Zadeck <zadeck@naturalbridge.com>
28934
28935 PR rtl-optimization/35805
28936 * df-problems.c (df_lr_finalize): Add recursive call to resolve lr
28937 problem if fast dce is able to remove any instructions.
28938 * dce.c (dce_process_block): Fix dump message.
28939
28940 2009-01-02 Mark Mitchell <mark@codesourcery.com>
28941
28942 PR 33649
28943 * tree-ssa-pre.c (compute_antic): Correct loop bounds.
28944
28945 2009-01-02 Jakub Jelinek <jakub@redhat.com>
28946
28947 PR middle-end/38690
28948 * tree-flow.h (op_code_prio, op_prio): New prototypes.
28949 * tree-pretty-print.c (op_code_prio): New function.
28950 (op_prio): No longer static. Use op_code_prio.
28951 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs):
28952 Use op_prio and op_code_prio to determine if () should be
28953 printed around operand(s) or not.
28954
28955 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
28956 dump_gimple_call, dump_gimple_switch, dump_gimple_cond,
28957 dump_gimple_label, dump_gimple_try, dump_symbols, dump_gimple_phi,
28958 dump_gimple_mem_ops, dump_bb_header, dump_bb_end, pp_cfg_jump): Use
28959 pp_character instead of pp_string for single letter printing.
28960
28961 2009-01-02 Richard Sandiford <rdsandiford@googlemail.com>
28962
28963 * doc/extend.texi: Fix '#pragma GCC option' typo.
28964
28965 2009-01-02 Richard Guenther <rguenther@suse.de>
28966
28967 * doc/install.texi (--enable-checking): Mention different
28968 default for stage1.
28969 (--enable-stage1-checking): Document.
28970
28971 2009-01-01 Andrew Pinski <pinskia@gmail.com>
28972
28973 PR middle-end/30142
28974 * tree-cfg.c (verify_expr): Add INDIRECT_REF case. Change MODIFY_EXPR
28975 case to be an error.
28976
28977 2009-01-02 Ben Elliston <bje@au.ibm.com>
28978
28979 * config/fp-bit.h (pack_d): Constify argument.
28980 * config/fp-bit.c (makenan): Constify return type. Remove casts.
28981 (isnan): Constify argument.
28982 (isinf): Likewise.
28983 (iszero): Likewise.
28984 (pack_d): Likewise.
28985 (_fpadd_parts): Constify return type.
28986 (_fpmul_parts): Likewise.
28987 (_fpdiv_parts): Likewise.
28988
28989 2009-01-01 Jakub Jelinek <jakub@redhat.com>
28990
28991 PR c/36489
28992 * c-typeck.c (add_pending_init): Add IMPLICIT argument. Only
28993 warn about overwriting initializer with side-effects or
28994 -Woverride-init if !IMPLICIT.
28995 (output_init_element): Likewise. Pass IMPLICIT down to
28996 add_pending_init.
28997 (process_init_element): Add IMPLICIT argument. Pass it down
28998 to output_init_element.
28999 (push_init_element, pop_init_level, set_designator): Adjust
29000 process_init_element callers.
29001 (set_nonincremental_init, set_nonincremental_init_from_string):
29002 Adjust add_pending_init callers.
29003 (output_pending_init_elements): Adjust output_init_element callers.
29004 * c-tree.h (process_init_element): Adjust prototype.
29005 * c-parser.c (c_parser_initelt, c_parser_initval): Adjust
29006 process_init_element callers.
29007
29008 \f
29009 Copyright (C) 2009 Free Software Foundation, Inc.
29010
29011 Copying and distribution of this file, with or without modification,
29012 are permitted in any medium without royalty provided the copyright
29013 notice and this notice are preserved.