lto-streamer-in.c (input_gimple_stmt): Fixup FIELD_DECL operands in COMPONENT_REFs.
[gcc.git] / gcc / ChangeLog
1 2009-10-17 Richard Guenther <rguenther@suse.de>
2
3 * lto-streamer-in.c (input_gimple_stmt): Fixup FIELD_DECL
4 operands in COMPONENT_REFs.
5
6 2009-10-17 Anatoly Sokolov <aesok@post.ru>
7
8 * targhooks.c (default_libcall_value): Don't use LIBCALL_VALUE macro
9 if not defined. Change type of second argument to const_rtx.
10 (default_function_value): Call gcc_unreachable if FUNCTION_VALUE
11 macro not defined.
12 * targhooks.h (default_libcall_value): Update prototype.
13 * target.h (struct gcc_target): Change type of second argument of
14 libcall_value to const_rtx.
15 * config/arm/arm.c (arm_libcall_value): Change type of second argument
16 to const_rtx.
17 (arm_libcall_uses_aapcs_base): Change type of argument to const_rtx.
18 * doc/tm.texi (TARGET_LIBCALL_VALUE): Revise documentation.
19
20 2009-10-17 Jakub Jelinek <jakub@redhat.com>
21
22 PR debug/40521
23 * debug.h (struct gcc_debug_hooks): Add assembly_start hook.
24 * cgraphunit.c (cgraph_optimize): Call it.
25 * dwarf2out.c (dwarf2out_init): Move .cfi_sections printing into...
26 (dwarf2out_assembly_start): ... here. New hook.
27 (dwarf2out_debug_hooks): Add dwarf2out_assembly_start.
28 * debug.c (do_nothing_debug_hooks): Do nothing for assembly_start
29 hook.
30 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
31 * sdbout.c (sdb_debug_hooks): Likewise.
32 * vmsdbgout.c (vmsdbg_debug_hooks): Add vmsdbgout_assembly_start.
33 (vmsdbgout_assembly_start): New hook.
34
35 2009-10-17 Alexandre Oliva <aoliva@redhat.com>
36
37 * rtl.h (RTL_LOCATION): Fix typo.
38
39 2009-10-17 Alexandre Oliva <aoliva@redhat.com>
40
41 * print-rtl.c (print_rtx): Print locators in asm_operands
42 and asm_input.
43
44 2009-10-17 Alexandre Oliva <aoliva@redhat.com>
45
46 PR debug/41535
47 * sched-deps.c (depl_on_debug_p): New.
48 (attach_dep_link): Reject debug deps before nondebug deps.
49 (add_to_deps_list): Insert debug deps after nondebug deps.
50 (sd_lists_empty_p): Stop at first nonempty list. Disregard debug
51 deps.
52 (sd_add_dep): Do not reject debug deps.
53 (add_insn_mem_dependence): Don't count debug deps.
54 (remove_from_deps): Likewise.
55 (sched_analyze_2): Set up mem deps on debug insns.
56 (sched_analyze_insn): Record reg uses for deps on debug insns.
57 * haifa-sched.c (schedule_insn): Reset deferred debug insn. Don't
58 try_ready nondebug insn after debug insn.
59 * ddg.c (create_ddg_dep_from_intra_loop_link,
60 create_ddg_dep_no_link): Don't reject debug deps.
61
62 2009-10-16 Richard Guenther <rguenther@suse.de>
63
64 * lto-symtab.c (merge_incomplete_and_complete_type): Remove.
65 (maybe_merge_incomplete_and_complete_type): Likewise.
66 (lto_symtab_merge): Do not call them. Do not warn for
67 complete vs. incomplete compatible types.
68 (lto_symtab_merge_decls_2): Simplify.
69 * gimple.c (gimple_force_type_merge): Remove.
70 (gimple_types_compatible_p): Make it static.
71 * gimple.h (gimple_force_type_merge): Remove.
72 (gimple_types_compatible_p): Likewise.
73
74 2009-10-16 Jakub Jelinek <jakub@redhat.com>
75
76 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Cast
77 DWARF2_ADDR_SIZE to int to avoid signed vs. unsigned warnings.
78
79 2009-10-16 Richard Guenther <rguenther@suse.de>
80
81 PR tree-optimization/41728
82 * tree-ssa-dom.c (optimize_stmt): Mark the stmt modified
83 if fold_stmt did anything.
84
85 2009-10-16 Richard Guenther <rguenther@suse.de>
86
87 PR lto/41715
88 * lto-streamer-in.c (lto_input_tree_ref): Revert last change.
89 (maybe_fixup_handled_component): New function.
90 (input_gimple_stmt): Fixup mismatched decl replacements.
91
92 2009-10-16 Richard Guenther <rguenther@suse.de>
93
94 PR lto/41713
95 * lto-streamer-out.c (lto_output_tree_ref): Handle DEBUG_EXPR_DECL
96 the same as VAR_DECL.
97
98 2009-10-16 Richard Guenther <rguenther@suse.de>
99
100 * gimple.c (iterative_hash_gimple_type): For integer types
101 also hash their minimum and maximum values and the string flag.
102 For array types hash their domain and the string flag.
103
104 2009-10-16 Richard Guenther <rguenther@suse.de>
105
106 * gimple.c (gimple_types_compatible_p): Restrict completing
107 types to record or unions. Simplify completion.
108 Do not merge records or unions with different
109 TYPE_STRUCTURAL_EQUALITY_P tag.
110 (iterative_hash_gimple_type): Restrict non-recursing into
111 pointer targets for records and unions.
112
113 2009-10-15 Jakub Jelinek <jakub@redhat.com>
114
115 PR debug/41717
116 * cfgexpand.c (expand_debug_expr): Handle CONJ_EXPR.
117 * dwarf2out.c (mem_loc_descriptor): Don't handle
118 POST_INT/POST_DEC/POST_MODIFY like SUBREG. For SUBREG
119 punt if it is not lowpart subreg or if inner mode isn't
120 MODE_INT.
121
122 2009-10-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
123
124 * config/s390/s390.c (s390_z10_optimize_cmp): Skip notes when
125 investigating previous or next insns.
126
127 2009-10-16 Eric Botcazou <ebotcazou@adacore.com>
128
129 * tree-sra.c (build_ref_for_offset_1): Update comment.
130
131 2009-10-16 Wolfgang Gellerich <gellerich@de.ibm.com>
132
133 * config/s390/s390.md (atype): Added missing values.
134
135 2009-10-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
136
137 PR target/41702
138 * pa.md (casesi): Use sign extended index in call to
139 gen_casesi64p.
140 (casesi64p): Update pattern to reflect above.
141
142 2009-10-15 Steve Ellcey <sje@cup.hp.com>
143
144 PR rtl-optimization/41697
145 * sel-sched-ir.h (_eligible_successor_edge_p): Check successor count.
146
147 2009-10-15 Michael Meissner <meissner@linux.vnet.ibm.com>
148
149 PR target/23983
150 * config/rs6000/predicates.md: Update copyright year.
151 * config/rs6000/altivec.md: Ditto.
152
153 * config/rs6000/t-rs6000 (TM_H): Add rs6000-builtin.def.
154 (MD_INCLUDES): Add a2.md.
155
156 * config/rs6000/rs6000.c (rs6000_builtin_decls): Change
157 RS6000_BUILTIN_COUNT to MAX_RS6000_BUILTINS.
158 (builtin_classify): New static vector to classify various builtins
159 to get the tree attributes correct.
160 (def_builtin): Set the attributes of builtins based on what the
161 builtin does (i.e. memory operation, floating point, saturation
162 need special attributes, others are pure functions).
163
164 * config/rs6000/rs6000.h (enum rs6000_btc): New enum to classify
165 the builtins.
166 (enum rs6000_builtins): Include rs6000-builtin.def to define the
167 builtins. Change the end marker to MAX_RS6000_BUILTINS from
168 RS6000_BUILTIN_COUNT.
169 (rs6000_builtin_decls): Change RS6000_BUILTIN_COUNT to
170 MAX_RS6000_BUILTINS.
171
172 * config/rs6000/rs6000-builtin.def: New file that combines the
173 builtin enumeration name and attributes.
174
175 2009-10-15 H.J. Lu <hongjiu.lu@intel.com>
176
177 * config/i386/linux.h (ASM_SPEC): Add --32.
178
179 2009-10-15 Jakub Jelinek <jakub@redhat.com>
180
181 * dwarf2out.c (dwarf_tag_name): Handle DW_TAG_rvalue_reference_type
182 and DW_TAG_template_alias.
183 (dwarf_attr_name): Handle DW_AT_main_subprogram,
184 DW_AT_data_bit_offset, DW_AT_const_expr, DW_AT_enum_class,
185 DW_AT_linkage_name, DW_AT_GNU_guarded_by, DW_AT_GNU_pt_guarded_by,
186 DW_AT_GNU_guarded, DW_AT_GNU_pt_guarded, DW_AT_GNU_locks_excluded,
187 DW_AT_GNU_exclusive_locks_required, DW_AT_GNU_shared_locks_required
188 and DW_AT_GNU_odr_signature.
189 (dwarf_form_name): Handle DW_FORM_sec_offset, DW_FORM_exprloc,
190 DW_FORM_flag_present and DW_FORM_ref_sig8.
191 (output_signature): Only print name on the first byte.
192 (output_die): Likewise for dw_val_class_data8.
193
194 2009-10-15 Alexander Monakov <amonakov@ispras.ru>
195
196 * doc/invoke.texi: Clarify that most optimizations are not enabled
197 without -O.
198
199 2009-10-15 Richard Guenther <rguenther@suse.de>
200
201 PR lto/41668
202 * gimple.c (compare_type_names_p): Handle anonymous names
203 differently based on new mode argument.
204 (gimple_types_compatible_p): For structs also compare the tags.
205 (iterative_hash_type_name): Rename to ...
206 (iterative_hash_name): ... this. Hash all names.
207 (iterative_hash_gimple_type): Fix hashing the struct tag of
208 pointer targets. Hash field decl names.
209
210 2009-10-15 Richard Guenther <rguenther@suse.de>
211
212 PR lto/41669
213 * gimple.c (gimple_get_alias_set): Avoid recursing on
214 invalid type topology.
215
216 2009-10-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
217
218 * config/spu/spu.c (get_branch_target): Use extract_asm_operands.
219
220 2009-10-15 Richard Guenther <rguenther@suse.de>
221
222 * tree.c (free_lang_data_in_decl): Free DECL_FCONTEXT.
223
224 2009-10-15 Jakub Jelinek <jakub@redhat.com>
225
226 * config/rs6000/option-defaults.h (OPTION_DEFAULT_SPECS): Don't
227 add --with-tune{,-32,-64} configured default for -mtune if explicit
228 -mcpu is used.
229
230 2009-10-14 Daniel Gutson <dgutson@codesourcery.com>
231
232 * config/arm/neon.md (neon_vshll_n<mode>): Checking Bounds
233 fixed.
234
235 2009-10-14 DJ Delorie <dj@redhat.com>
236
237 * config/h8300/h8300.c (F): New.
238 (Fpa): New.
239 (h8300_emit_stack_adjustment): Call them.
240 (push): Likewise.
241 (h8300_push_pop): Likewise.
242 (h8300_expand_prologue): Likewise.
243 * config/h8300/h8300.h (DWARF2_DEBUGGING_INFO): Define.
244 (MUST_USE_SJLJ_EXCEPTIONS): Define.
245 (INCOMING_RETURN_ADDR_RTX): Define.
246 (INCOMING_FRAME_SP_OFFSET): Define.
247 (DWARF_CIE_DATA_ALIGNMENT): Define.
248
249 2009-10-14 Jakub Jelinek <jakub@redhat.com>
250
251 * stor-layout.c (place_field): Don't emit -Wpadded warnings for
252 fields in builtin structs.
253 (finalize_record_size): Likewise.
254
255 2009-10-14 Richard Guenther <rguenther@suse.de>
256
257 * gimple.c (gtc_ob): New global.
258 (struct type_pair_d): Replace pointers with type UIDs.
259 (type_pair_hash): Adjust.
260 (type_pair_eq): Likewise.
261 (lookup_type_pair): Likewise. Allocate from an obstack.
262 (gimple_force_type_merge): Adjust.
263 (gimple_types_compatible_p): Likewise.
264 (free_gimple_type_tables): Free the obstack.
265
266 2009-10-14 Jakub Jelinek <jakub@redhat.com>
267
268 * tree-parloops.c (separate_decls_in_region_debug_bind): Drop debug
269 stmts setting DEBUG_EXPR_DECLs.
270
271 * cfgexpand.c (expand_debug_expr): Ignore zero-length bitfields.
272 Don't crash if mode1 is VOIDmode.
273
274 2009-09-26 Vladimir Makarov <vmakarov@redhat.com>
275
276 * params.def (PARAM_IRA_LOOP_RESERVED_REGS): New.
277 * params.h (IRA_LOOP_RESERVED_REGS): New
278 * tree-pass.h (pass_subregs_of_mode_init,
279 pass_subregs_of_mode_finish): Remove.
280 * passes.c (pass_subregs_of_mode_init,
281 pass_subregs_of_mode_finish): Remove.
282 (pass_reginfo_init): Move before loop optimizations.
283 * config/i386/i386.h (STACK_REG_COVER_CLASS): Define.
284 * common.opt (fira-loop-pressure): New.
285 * toplev.h (flag_ira_loop_pressure): New.
286 * rtl.h (init_subregs_of_mode, finish_subregs_of_mode): New
287 externals.
288 * reginfo.c (init_subregs_of_mode, finish_subregs_of_mode):
289 Make external and void type functions.
290 (gate_subregs_of_mode_init, pass_subregs_of_mode_init,
291 pass_subregs_of_mode_finish): Remove.
292 * ira-costs.c (init_costs): Call init_subregs_of_mode.
293 * regmove.c: Include ira.h.
294 (regmove_optimize): Call ira_set_pseudo_classes after IRA based
295 register pressure calculation in loops.
296 * loop-invariant.c: Include REGS_H and ira.h.
297 (struct loop_data): New members max_reg_pressure, regs_ref, and
298 regs_live.
299 (struct invariant): New member orig_regno.
300 (curr_loop): New variable.
301 (find_exits): Initialize regs_ref and regs_live.
302 (create_new_invariant): Initialize orig_regno.
303 (get_cover_class_and_nregs): New.
304 (get_inv_cost): Make aregs_needed an array. Use regs_needed as an
305 array. Add code for flag_ira_loop_pressure.
306 (gain_for_invariant): Make new_regs an array. Add code for
307 flag_ira_loop_pressure.
308 (best_gain_for_invariant): Ditto.
309 (set_move_mark): New parameter gain. Use it for debugging output.
310 (find_invariants_to_move): Make regs_needed and new_regs an array.
311 Add code for flag_ira_loop_pressure.
312 (move_invariant_reg): Set up orig_regno.
313 (move_invariants): Set up reg classes for pseudos for
314 flag_ira_loop_pressure.
315 (free_loop_data): Clear regs_ref and regs_live.
316 (curr_regs_live, curr_reg_pressure, regs_set, n_regs_set,
317 get_regno_cover_class, change_pressure, mark_regno_live,
318 mark_regno_death, mark_reg_store, mark_reg_clobber,
319 mark_reg_death, mark_ref_regs, calculate_loop_reg_pressure): New.
320 (move_loop_invariants): Calculate pressure. Initialize curr_loop.
321 * ira.c (ira): Call ira_set_pseudo_classes after IRA based
322 register pressure calculation in loops if new regs were added.
323 Call finish_subregs_of_mode.
324 * opts.c (decode_options): Set up flag_ira_loop_pressure.
325 * Makefile.in (loop-invariant.o): Add ira.h.
326 (regmove.o): Ditto.
327 * doc/invoke.texi (-fira-loop-pressure, ira-loop-reserved-regs):
328 Describe.
329 * doc/tm.texi (STACK_REG_COVER_CLASS): Describe.
330
331 2009-10-14 Richard Guenther <rguenther@suse.de>
332
333 * lto-symtab.c (lto_symtab_compatible): Fold in ...
334 (lto_symtab_merge): ... here. Rewrite both to take the
335 prevailing and a to-be-merged entry and to queue diagnostics
336 properly.
337 (lto_symtab_resolve_replaceable_p): New predicate for
338 symbol resolution.
339 (lto_symtab_resolve_can_prevail_p): Likewise.
340 (lto_symtab_resolve_symbols): Rewrite. Fold in code that
341 handles merging commons by choosing the largest decl. Fold
342 in code that gives ODR errors.
343 (lto_symtab_merge_decls_2): Simplify a lot. Emit queued
344 diagnostics here.
345 (lto_symtab_merge_decls_1): Re-structure. Deal with the
346 case of no prevailing decl here. Diagnose mismatches
347 in object types here. Drop all but the prevailing decls.
348 (lto_symtab_prevailing_decl): Return the single prevailing decl.
349 * lto-streamer-in.c (lto_input_tree_ref): Deal with
350 VIEW_CONVERT_EXPRs in decl slots. Unshare the tree in this case.
351
352 2009-10-14 Richard Guenther <rguenther@suse.de>
353
354 PR lto/41521
355 * lto-streamer-in.c (input_bb): Replace debug stmts with
356 nops instead of dropping them.
357
358 2009-10-14 Nick Clifton <nickc@redhat.com>
359
360 * gcc/doc/extended.texi: Replace the dash character with
361 @minus{} in situations where it is being used as a minus
362 symbol.
363 * gcc/doc/tm.texi: Likewise.
364 * gcc/doc/md.texi: Likewise.
365
366 2009-10-14 Jakub Jelinek <jakub@redhat.com>
367
368 PR preprocessor/41543
369 * input.h (BUILTINS_LOCATION): Change to 1 from 2.
370 Assert BUILTINS_LOCATION < RESERVED_LOCATION_COUNT.
371 * tree.c: Include intl.h.
372 (expand_location): Handle BUILTINS_LOCATION.
373 * Makefile.in (tree.o): Depend on intl.h.
374
375 PR debug/41695
376 * dwarf2out.c (dwarf2out_var_location): Always clear
377 last_postcall_label when changing last_label.
378
379 2009-10-14 Pascal Obry <obry@adacore.com>
380
381 * gcc.c (DEFAULT_SWITCH_CURTAILS_COMPILATION): Add -E.
382 (process_command): Handle -E as done with -c and -S. Do not add
383 the target executable suffix to the output file when -E is used.
384 (main): Adjust error message accordingly.
385
386 2009-10-14 Alexandre Oliva <aoliva@redhat.com>
387
388 PR debug/41343
389 PR debug/41447
390 PR debug/41264
391 PR debug/41338
392 * tree.c (tree_node_structure_for_code): DEBUG_EXPR_DECL uses
393 decl with rtl.
394 (tree_code_size): Likewise.
395
396 2009-10-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
397
398 * builtins.c (fold_builtin_1): Support complex "arc" functions.
399 * real.h (HAVE_mpc_arc): Define.
400
401 2009-10-14 Kaz Kojima <kkojima@gcc.gnu.org>
402
403 * config/sh/sh.c (TARGET_BUILTIN_DECL): Define.
404 (struct builtin_description): Add fndecl field.
405 (bdesc): Remove const qualifier. Update initializer.
406 (sh_media_init_builtins): Remove const qualifier for d. Record
407 the result of add_builtin_function to the fndecl field.
408 (sh_builtin_decl): New.
409 (sh_media_builtin_decl): New.
410
411 2009-10-14 Hans-Peter Nilsson <hp@axis.com>
412
413 PR target/38948
414 * config/cris/cris.h (SECONDARY_RELOAD_CLASS): Handle reload
415 requests between special registers.
416
417 2009-10-13 Eric Botcazou <ebotcazou@adacore.com>
418
419 * dwarf2out.c (mem_loc_descriptor): Accept UNGT as well.
420
421 2009-10-13 Richard Henderson <rth@redhat.com>
422
423 PR tree-optimization/41377
424 * tree-eh.c (unsplit_eh): Propagate degenerate PHIs.
425 (cleanup_empty_eh_merge_phis): New change_region parameter;
426 pass it on to redirect_eh_edge_1. Update callers.
427 (cleanup_empty_eh_unsplit): Don't require an existing EH label
428 at the destination block.
429
430 2009-10-13 Basile Starynkevitch <basile@starynkevitch.net>
431
432 * passes.c (register_pass): Replaced gcc_unreachable by
433 fatal_error on failure. Mentions plugins in comments & messages.
434
435 2009-10-13 Jakub Jelinek <jakub@redhat.com>
436
437 PR target/41693
438 * rtl.h (DEBUG_EXPR_TREE_DECL): Define.
439 * sched-vis.c (print_value): Use it.
440 * cselib.c (cselib_hash_rtx): Likewise.
441 * print-rtl.c (print_rtx): Likewise.
442 * cfgexpand.c (expand_debug_rtx): Likewise.
443 * var-tracking.c (vt_expand_loc_callback): Likewise.
444
445 2009-10-13 Richard Guenther <rguenther@suse.de>
446
447 PR lto/41565
448 * opts.c (handle_option): Split out code to handle setting
449 the options flag var ...
450 (set_option): ... here.
451 * opts.h (set_option): Declare.
452 * lto-opts.c (register_user_option_p): Include -fexceptions
453 and all position independent code variants.
454 (handle_common_option): Remove.
455 (lto_reissue_options): Use set_option.
456
457 2009-10-13 Martin Jambor <mjambor@suse.cz>
458
459 PR tree-optimization/41661
460 * ipa-prop.c (compute_complex_pass_through): Allow only operations
461 that are tcc_comparisons or do not change the type in any
462 un-usleless way.
463 * ipa-cp.c (ipcp_lattice_from_jfunc): Request boolean type when
464 folding tcc_comparison operations.
465
466 2009-10-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
467
468 * config/s390/s390.c (s390_encode_section_info): Handle BLKmode
469 properly.
470
471 2009-10-12 Alexandre Oliva <aoliva@redhat.com>
472
473 PR debug/41343
474 PR debug/41447
475 PR debug/41264
476 PR debug/41338
477 * tree.def (DEBUG_EXPR_DECL): New.
478 * rtl.def (DEBUG_EXPR): New.
479 * gengtype.c (adjust_field_rtx_def): Handle it.
480 * tree-ssa.c (propagate_var_def_into_debug_stmts): Rename to...
481 (insert_debug_temp_for_var_def): ... this. Drop support for
482 moving. Take iterator for def stmt; insert debug stmt before it.
483 Scan early for use count and kind in debug stmts.
484 (propagate_defs_into_debug_stmts): Rename to...
485 (insert_debug_temps_for_defs): ... this. Likewise.
486 * tree.h (DEBUG_TEMP_UID): New.
487 * tree.c (next_debug_decl_uid): New.
488 (make_node_stat): Count debug decls separately.
489 (copy_node_stat): Likewise.
490 * cfgexpand.c (expand_debug_expr): Handle DEBUG_EXPR_DECL.
491 * var-tracking.c (dv_is_decl_p): Recognize it.
492 (VALUE_RECURSED_INTO): Apply to DEBUG_EXPRs too.
493 (track_expr_p): Track expanded DEBUG_EXPR_DECLs.
494 (vt_expand_loc_callback): Expand DEBUG_EXPRs.
495 (emit_note_insn_var_location): Don't emit notes for DEBUG_EXPR_DECLs.
496 * cselib.c (rtx_equal_for_cselib_p): Handle DEBUG_EXPR.
497 (cselib_hash_rtx): Likewise.
498 (cselib_expand_value_rtx_1): Use callback for DEBUG_EXPR.
499 * tree-ssa-operands.c (get_expr_operands): Skip DEBUG_EXPR_DECLs in
500 debug bind stmts.
501 * emit-rtl.c (verify_rtx_sharing): Handle DEBUG_EXPR and VALUE.
502 (copy_rtx_if_shared_1, reset_used_flags, set_used_flags): Likewise.
503 * rtl.c (copy_rtx): Likewise.
504 (rtx_equal_p_cb, rtx_equal_p): Handle DEBUG_EXPR.
505 * print-rtl.c (print_rtx): Likewise.
506 * sched-vis.c (print_value): Likewise.
507 (print_insn): Handle DEBUG_EXPR_DECL.
508 * tree-dump.c (dequeue_and_dump): Likewise.
509 * tree-pretty-print.c (dump_decl_name, dump_generic_node): Likewise.
510 * gimple-iterator (gsi_replace): Check for same lhs.
511 (gsi_remove): Insert debug temps.
512 * tree-ssa-loop-im.c (rewrite_reciprocal): Replace with same lhs.
513 (move_computations_stmt): Drop explicit propagation into debug stmts.
514 (rewrite_bittest): Likewise. Use gsi_remove for propagation.
515 * tree-ssa-reassoc.c (rewrite_expr_tree, linearize_expr): Likewise.
516 * tree-ssa-sink.c (statement_sink_location): Likewise.
517 * tree-ssa-forwprop (forward_propagate_addr_expr): Likewise.
518 * tree-ssanames.c (release_ssa_name): Adjust for rename.
519 * tree-flow.h: Likewise.
520 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Don't mark
521 debug temps without values.
522 (eliminate_unnecessary_stmts): Don't discard just-inserted
523 debug stmts.
524
525 2009-10-12 Hans-Peter Nilsson <hp@axis.com>
526
527 PR target/26515
528 * config/cris/cris.md (andu): Check that operand 1 is one of the
529 general registers. Fix typo in head comment.
530
531 2009-10-12 Stefan Dösinger <stefan@codeweavers.com>
532
533 * config/i386/i386.md (vswapmov): New.
534 * config/i386/i386.c (ix86_handle_fndecl_attribute): New.
535 (ix86_function_ms_hook_prologue): New.
536 (ix86_expand_prologue): Handle ms_hook_prologue attribute.
537 * configure.ac: Test for swap suffix support in as.
538 * configure: Rebuild.
539
540 2009-10-12 Jakub Jelinek <jakub@redhat.com>
541
542 PR target/41680
543 * config/i386/i386.md (split after *testqi_ext_3_rex64): Only narrow
544 paradoxical subregs to prevent partial register stalls if the inner
545 mode is integer mode.
546
547 2009-10-12 Uros Bizjak <ubizjak@gmail.com>
548
549 * config/i386/i386.md (*setcc_<mode>_2): Remove insn pattern.
550
551 2009-10-12 Dodji Seketeli <dodji@redhat.com>
552
553 PR c++/41570
554 * gcc/dwarf2out.c (template_parameter_pack_die,
555 gen_formal_parameter_pack_die): Use add_name_and_src_coords_attributes.
556
557 2009-10-12 Alexandre Oliva <aoliva@redhat.com>
558
559 PR debug/41616
560 * tree-into-ssa.c (insert_phi_nodes_for): Build debug bind stmts
561 on updates too.
562 (maybe_register_def): Likewise. Take stmt iterator.
563 (rewrite_update_stmt): Take stmt iterator and pass it on.
564 (rewrite_update_enter_block): Pass stmt iterator.
565
566 2009-10-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
567
568 * config/spu/spu.c (TARGET_BUILTIN_DECL): Define.
569 (spu_builtin_decl): New function.
570
571 2009-10-12 Uros Bizjak <ubizjak@gmail.com>
572
573 * config/i386/i386.md (SWIM): New mode iterator.
574 (mov<mode>cc): Macroize expander from mov{qi,hi,si,di}cc patterns
575 using SWIM mode iterator.
576 (x86_mov<mode>cc_0_m1): Macroize insn from x86_mov{si,di}cc_0_m1
577 patterns using SWI48 mode iterator.
578 (*x86_mov<mode>cc_0_m1_se): Macroize insn from
579 *x86_mov{si,di}cc_0_m1_se patterns using SWI48 mode iterator.
580 (*x86_mov<mode>cc_0_m1_neg): New insn pattern.
581 (*mov<mode>cc_noc): Macroize insn from *mov{hi,si,di}cc_noc
582 patterns using SWI248 mode iterator.
583 * config/i386/i386.c (ix86_expand_int_movcc): Update the call to
584 gen_x86_movdicc_0_m1_rex64 for renamed function
585
586 2009-10-11 Jose Ruiz <ruiz@adacore.com>
587 Eric Botcazou <ebotcazou@adacore.com>
588
589 PR target/33743
590 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Define.
591 * config/sparc/sol2-unwind.h: New file.
592
593 2009-10-11 Olivier Hainque <hainque@adacore.com>
594 Eric Botcazou <ebotcazou@adacore.com>
595
596 PR target/33743
597 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Define.
598 * config/i386/sol2-unwind.h: New file.
599
600 2009-10-11 H.J. Lu <hongjiu.lu@intel.com>
601
602 PR target/41665
603 * config/i386/i386.md (addsi_1_zext): Get the proper second
604 operand for lea.
605
606 2009-10-11 Richard Sandiford <rdsandiford@googlemail.com>
607
608 * simplify-rtx.c (simplify_replace_rtx): Use rtx_equal_p for
609 all OLD_RTXes, not just REGs. Use copy_rtx to create the
610 replacement value.
611
612 2009-10-11 Richard Guenther <rguenther@suse.de>
613
614 * gimple.c (iterative_hash_type_name): Do not handle special
615 anonymous names.
616
617 2009-10-11 Uros Bizjak <ubizjak@gmail.com>
618
619 * config/i386/i386.md (*setcc_di_1): New insn_and_split pattern.
620 (*setcc_si_1_and): Ditto.
621 (*setcc_si_1_movzbl): Ditto.
622 (*setcc_<mode>_2): Ditto.
623 (*setcc_qi): Rename from *setcc_1.
624 (*setcc_qi_slp): Rename from *setcc_2.
625
626 (*zero_extendqihi2_movzbw_and splitter): Use ix86_expand_clear.
627 (*zero_extendqisi2_movzbw_and splitter): Ditto.
628
629 * config/i386/i386.c (ix86_expand_clear): Remove reload_completed from
630 "if" condition, there is already assert with reload_completed present.
631
632 2009-10-11 Gerald Pfeifer <gerald@pfeifer.com>
633
634 * plugin.c (try_init_one_plugin): Improve constness of variable err.
635
636 2009-10-10 Gerald Pfeifer <gerald@pfeifer.com>
637
638 * doc/install.texi (Final install): Refer to
639 http://gcc.gnu.org/bugs/ for bug reporting.
640
641 2009-10-10 Peter Bergner <bergner@vnet.ibm.com>
642
643 * configure.ac: Add test for dci instruction.
644 * configure: Regenerate.
645 * config.in: Likewise.
646 * config.gcc: Handle --with-cpu=476 and --with-cpu=476fp.
647 * doc/invoke.texi: Add cpu_type 476 and 476fp.
648 (-mmulhw): Add 476 to description.
649 (-mdlmzb): Likewise.
650 * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=476.
651 * config/rs6000/rs6000.c (processor_costs): Add ppc476_cost.
652 (processor_target_table): Add 476 and 476fp entries.
653 (rs6000_override_options): Use ppc476_cost for PROCESSOR_PPC476.
654 (rs6000_issue_rate): Add CPU_PPC476.
655 * config/rs6000/rs6000.h (ASM_CPU_476_SPEC): Define.
656 (ASM_CPU_SPEC): Pass %(asm_cpu_476) for -mcpu=476 and -mcpu=476fp.
657 (processor_type): Add PROCESSOR_PPC476.
658 (EXTRA_SPECS): Add asm_cpu_476 string.
659 * config/rs6000/rs6000.md: (define_attr "type"): Add isel attribute.
660 (define_attr "cpu"): Add ppc476.
661 Include 476.md.
662 Update comments for 476.
663 (isel_signed, isel_unsigned): Change to use "isel" type attribute.
664 * config/rs6000/vxworks.h (CPP_SPEC): Handle 464 and 476.
665 Update copyright year.
666 * config/rs6000/476.md: New file.
667 * config/rs6000/40x.md: Add description for "isel" attribute.
668 Update copyright year.
669 * config/rs6000/440.md: Likewise.
670 * config/rs6000/603.md: Likewise.
671 * config/rs6000/6xx.md: Likewise.
672 * config/rs6000/7450.md: Likewise.
673 * config/rs6000/7xx.md: Likewise.
674 * config/rs6000/8540.md: Likewise.
675 * config/rs6000/cell.md: Likewise.
676 * config/rs6000/e300c2c3.md: Likewise.
677 * config/rs6000/e500mc.md: Likewise.
678 * config/rs6000/mpc.md: Likewise.
679 * config/rs6000/power4.md: Likewise.
680 * config/rs6000/power5.md: Likewise.
681 * config/rs6000/power6.md: Likewise.
682 * config/rs6000/power7.md: Likewise.
683 * config/rs6000/rios1.md: Likewise.
684 * config/rs6000/rios2.md: Likewise.
685 * config/rs6000/rs64.md: Likewise.
686
687 2009-10-10 Richard Guenther <rguenther@suse.de>
688
689 PR tree-optimization/41654
690 * tree-ssa-ifcombine.c (ifcombine_ifandif): Properly canonicalize
691 a cond expr before calling gimple_cond_set_condition_from_tree.
692 (ifcombine_iforif): Likewise.
693
694 2009-10-09 Ian Lance Taylor <iant@google.com>
695
696 * configure.ac: Use AC_SEARCH_LIBS to find dlopen.
697 * configure: Rebuild.
698
699 2009-10-09 Neil Vachharajani <nvachhar@google.com>
700
701 * doc/cpp.texi (Other Directives): Do not list #ident and #sccs as
702 deprecated.
703
704 2009-10-09 Richard Guenther <rguenther@suse.de>
705
706 PR lto/41638
707 * target-def.h (TARGET_BUILTIN_DECL): Define.
708 (TARGET_INITIALIZER): Add TARGET_BUILTIN_DECL.
709 * target.h (struct gcc_target): Add builtin_decl target hook.
710 * doc/tm.texi (TARGET_BUILTIN_DECL): Document.
711 * lto-streamer-in.c (lto_get_builtin_tree): Fix handling of
712 target builtins.
713 * lto-streamer-out.c (lto_output_tree_pointers): Use sorry,
714 not gcc_unreachable.
715 (lto_output_builtin_tree): Sorry if the target does not support
716 streaming target builtins.
717 * config/rs6000/rs6000.c (TARGET_BUILTIN_DECL): Define.
718 (rs6000_builtin_decl): New function.
719 * config/i386/i386.c (TARGET_BUILTIN_DECL): Define.
720 (ix86_builtin_decl): New function.
721
722 2009-10-09 Jakub Jelinek <jakub@redhat.com>
723
724 PR preprocessor/41445
725 * c-ppoutput.c (do_line_change): New function.
726 (cb_line_change): Use it.
727 (scan_translation_unit): Call do_line_change if
728 avoid_paste or PREV_WHITE and token location is on a different line
729 than print.src_line.
730
731 PR debug/40521
732 * dwarf2out.c (dwarf2out_init): Test whether
733 HAVE_GAS_CFI_SECTIONS_DIRECTIVE is non-zero instead of checking
734 it is defined.
735
736 PR rtl-optimization/41646
737 * calls.c (expand_call): For BLKmode types returned in registers
738 avoid likely spilled hard regs in copy_blkmode_from_reg generated
739 insns.
740
741 2009-10-09 Richard Guenther <rguenther@suse.de>
742
743 PR tree-optimization/41634
744 * tree-ssa-dom.c (remove_local_expressions_from_table): Assert
745 we remove the correct elements.
746 (optimize_stmt): Make sure to update stmt operands before
747 optimizing redundancies.
748
749 2009-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
750
751 * config/s390/s390.md ("prefetch"): Remove stcmh for prefetching.
752
753 2009-10-09 Richard Guenther <rguenther@suse.de>
754
755 PR driver/41637
756 * lto-wrapper.c (ltrans_output_file, flto_out, args_name): New
757 globals.
758 (lto_wrapper_exit): New function.
759 (fatal): Use it.
760 (fatal_perror): Likewise.
761 (fork_execute): Use global args_name, do not free it.
762 (run_gcc): Use global ltrans_output_file, flto_out, do not free them.
763 * lto-streamer.h: Remove duplicate prototypes.
764
765 2009-10-09 Richard Guenther <rguenther@suse.de>
766
767 * cgraph.c (cgraph_create_edge): Check for NULL call_stmt
768 before calling stmt_can_throw_external.
769
770 2009-10-09 Eric Botcazou <ebotcazou@adacore.com>
771
772 PR tree-optimization/40071
773 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Build a ref-all
774 pointer if the original data reference doesn't conflict with the
775 created vector data reference. Fix long line.
776
777 2009-10-09 Uros Bizjak <ubizjak@gmail.com>
778
779 * config/i386/i386.md (any_div): New code iterator.
780 (u): Handle div and udiv.
781 (sgnprefix): Ditto.
782 (<u>divqi3): Macroize insn from {,u}divqi3 using any_div
783 code iterator.
784 (lfloor<MODEF:mode><SWI48:mode>2): Macroize insn from
785 lfloor<mode>{si,di}2 patterns using SWI48 mode iterator.
786 (lceil<MODEF:mode><SWI48:mode>2): Macroize insn from
787 lceil<mode>{si,di}2 patterns using SWI48 mode iterator.
788
789 2009-10-08 Joseph Myers <joseph@codesourcery.com>
790
791 * gcc.c (main): Remove trailing "." from diagnostics.
792
793 2009-10-08 Cary Coutant <ccoutant@google.com>
794
795 Add support for debugging with ICF (Identical Code Folding).
796 * calls.c (debug.h): New #include.
797 (emit_call_1): Call virtual_call_token debug hook.
798 * common.opt (-fenable-icf-debug): New option.
799 * dwarf2out.c (dwarf2_debug_hooks): Add entries for new hooks (two
800 locations in the source).
801 (poc_label_num): New variable.
802 (dcall_entry, vcall_entry): New typedefs.
803 (dcall_table, vcall_table): New variables.
804 (struct vcall_insn): New type.
805 (vcall_insn_table): New variable.
806 (DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION): New macros.
807 (size_of_dcall_table): New function.
808 (output_dcall_table): New function.
809 (size_of_vcall_table): New function.
810 (output_vcall_table): New function.
811 (dwarf2out_direct_call): New function.
812 (vcall_insn_table_hash): New function.
813 (vcall_insn_table_eq): New function.
814 (dwarf2out_virtual_call_token): New function.
815 (dwarf2out_virtual_call): New function.
816 (dwarf2out_init): Allocate new tables and sections.
817 (prune_unused_types): Mark DIEs referenced from direct call table.
818 (dwarf2out_finish): Output direct and virtual call tables.
819 * final.c (final_scan_insn): Call direct_call and virtual_call
820 debug hooks.
821 * debug.h (struct gcc_debug_hooks): Add direct_call,
822 virtual_call_token, virtual_call hooks.
823 (debug_nothing_uid): New function.
824 * debug.c (do_nothing_debug_hooks): Add dummy entries for new hooks.
825 (debug_nothing_uid): New function.
826 * dbxout.c (dbx_debug_hooks): Add dummy entries for new hooks.
827 (xcoff_debug_hooks): Likewise.
828 * sdbout.c (sdb_debug_hooks): Likewise.
829 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
830 * doc/invoke.texi (-fenable-icf-debug): New option.
831
832 2009-10-08 Alexandre Oliva <aoliva@redhat.com>
833
834 PR debug/41353
835 * regmove.c (regmove_backward_pass): Replace src with dst in the
836 debug insn, and check for dst before rather than after.
837
838 2009-10-08 Janis Johnson <janis187@us.ibm.com>
839
840 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Remove.
841 (TARGET_DELEGITIMIZE_ADDRESS): Likewise.
842
843 2009-10-08 Jan Hubicka <jh@suse.cz>
844
845 PR middle-end/41626
846 * cgraphbuild.c (record_reference): When parameter DATA is NULL,
847 do not mark cgraph nodes as needed.
848 (record_references_in_initializer): Add new only_vars parameter.
849 * cgraph.h (record_references_in_initializer): New parameter.
850 * varasm.c (assemble_variable): Update call.
851 * varpool.c (varpool_analyze_pending_decls): Always look for
852 referenced vars.
853
854 2009-10-08 Anatoly Sokolov <aesok@post.ru>
855
856 * config/avr/avr.c (last_insn_address) Remove variable.
857 (expand_prologue): Don't initialise last_insn_address variable.
858 (final_prescan_insn): Don't output insn size.
859 * config/avr/avr.opt (msize): Remove switch.
860 * doc/invoke.texi (AVR Options): Remove documentation of -msize
861 switch.
862
863 2009-10-08 Adam Nemet <anemet@caviumnetworks.com>
864
865 * combine.c (label_tick_ebb_start): Fix comment.
866 (combine_instructions): Set label_tick and label_tick_ebb_start before
867 calling setup_incoming_promotions. Start them from 1. Increment
868 label_tick instead of deriving it from the BB index. Rather than
869 comparing ticks use the block from the previous iteration to decide
870 whether to start a new EBB. Remove empty lines before function.
871
872 2009-10-08 Michael Matz <matz@suse.de>
873
874 PR middle-end/41573
875 * builtins.c (fold_builtin_isascii): Use fold_build2.
876 (fold_builtin_isdigit): Ditto.
877 * except.c (duplicate_eh_regions_1): Tolerate NULL labels.
878 * tree-cfg.c (struct rus_data, remove_useless_stmts_warn_notreached,
879 remove_useless_stmts_cond, remove_useless_stmts_tf,
880 remove_useless_stmts_tc, remove_useless_stmts_bind,
881 remove_useless_stmts_goto, remove_useless_stmts_label,
882 remove_useless_stmts_1, remove_useless_stmts,
883 pass_remove_useless_stmts): Remove.
884 * tree-pass.h (pass_remove_useless_stmts): Don't declare.
885 * passes.c (init_optimization_passes): Don't add
886 pass_remove_useless_stmts.
887 * tree-eh.c (lower_eh_constructs_2): Handle empty cleanups.
888 * tree.c (free_lang_data_in_decl): Don't clear DECL_INITIAL of
889 static constants.
890 * lto-symtab.c (lto_symtab_register_decl): Accepts DECL_INITIAL
891 for static constants.
892 * lto-streamer-out.c (output_gimple_stmt): Handle GIMPLE_NOP.
893 * lto-streamer-in.c (input_gimple_stmt): Handle GIMPLE_NOP.
894
895 2009-10-08 Richard Guenther <rguenther@suse.de>
896
897 * gimple.c (free_gimple_type_tables): New function.
898 * gimple.h (free_gimple_type_tables): Declare.
899
900 2009-10-07 Mark Heffernan <meheff@google.com>
901
902 * ipa-prop.c (ipa_print_node_params) Only print
903 names of named arguments.
904
905 2009-10-08 Rafael Avila de Espindola <espindola@google.com>
906
907 * gcc.c (LINK_COMMAND_SPEC): Pass libc with -pass-through if it is
908 being statically linked.
909
910 2009-10-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
911
912 * collect2.c (add_lto_object): Only define if OBJECT_FORMAT_NONE.
913
914 2009-10-08 Jan Hubicka <jh@suse.cz>
915
916 PR bootstrap/41620
917 * ipa.c (cgraph_externally_visible_p,
918 function_and_variable_visibility,
919 whole_program_function_and_variable_visibility): Skip non-finalized
920 nodes.
921
922 2009-10-08 Nick Clifton <nickc@redhat.com>
923
924 * config/mn10300/mn10300.h (CONSTANT_ADDRESS_P): Do not allow
925 CONST_DOUBLEs.
926
927 2009-10-08 Andreas Tobler <a.tobler@schweiz.org>
928
929 PR bootstrap/37739
930 * config.host: Use config/x-cflags-O1 for powerpc FreeBSD.
931
932 2009-10-07 Joseph Myers <joseph@codesourcery.com>
933
934 PR c/41182
935 * c-common.c (c_fully_fold_internal): Strip nops from the result
936 of recursive calls to c_fully_fold_internal.
937 (c_wrap_maybe_const): New.
938 (c_save_expr): Use c_wrap_maybe_const.
939 * c-common.h (c_wrap_maybe_const): Declare.
940 * c-typeck.c (build_conditional_expr, c_finish_stmt_expr,
941 build_binary_op): Use c_wrap_maybe_const.
942
943 2009-10-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
944
945 * real.c: Fix comment to reflect actual exponent size.
946
947 2009-10-08 Ben Elliston <bje@au.ibm.com>
948
949 * config/rs6000/a2.md: Add FSF comment header.
950
951 2009-10-07 Uros Bizjak <ubizjak@gmail.com>
952
953 * config/i386/i386.md (any_extend): New code iterator.
954 (u, s): New code attributes.
955 (sgnprefix): Ditto.
956 (DWIH): Rewrite as code iterator for SI and DI modes.
957 (DWI): Rewrite as mode attribute.
958 (dwi): New mode attribute.
959 (di): Depend on SI mode and DI mode.
960 (doubleint_general_operand): Remove mode attribute.
961
962 (*lea_1): Macroize insn from *lea_1_rex64 and *lea_1 patterns using
963 DWIH mode iterator.
964
965 (*add<mode>3_doubleword): Use DWIH as the base mode iterator.
966 (*sub<mode>3_doubleword): Ditto.
967
968 (mul<mode>3): Macroize expander from mul{hi,si,di}3 patterns
969 using SWIM248 mode iterator.
970 (*mul<mode>3_1): Macroize insn from mul{si,di}3_1 patterns
971 using SWI48 mode iterator.
972 (<u>mul<mode><dwi>3): Macroize expander from {,u}mul{sidi,diti}3
973 patterns using DWIH mode iterator and any_extend code iterator.
974 (<u>mulqihi3): Macroize expander from {,u}mulqihi3 patterns
975 using any_extend code iterator.
976 (*<u>mul<mode><dwi>3_1): Macroize insn from {,u}mul{sidi,diti}3_1
977 patterns using DWIH mode iterator and any_extend code iterator.
978 (*<u>mulqihi3_1): Macroize insn from {,u}mulqihi3_1 patterns
979 using any_extend code iterator.
980 (<s>mul<mode>3_highpart): Macroize expander from
981 {s,u}mul{si,di}3_highpart patterns using DWIH mode iterator
982 and any_extend code iterator.
983 (*<s>muldi3_highpart_1): Macroize insn from
984 *{s,u}muldi3_highpart_rex64 patterns using any_extend code iterator.
985 (*<s>mulsi3_highpart_1): Macroize insn from *{s,u}mulsi3_highpart_1
986 patterns using any_extend code iterator.
987 (*<s>mulsi3_highpart_zext): Macroize insn from
988 *{s,u}mulsi3_highpart_zext patterns using any_extend code iterator.
989
990 2009-10-07 Jakub Jelinek <jakub@redhat.com>
991
992 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Don't add
993 DW_AT_const_value if VAR_DIE already has DW_AT_abstract_origin
994 refering to a DIE with DW_AT_const_value.
995
996 2009-10-07 Vladimir Makarov <vmakarov@redhat.com>
997
998 PR middle-end/22072
999 * ira-lives.c (check_and_make_def_conflict): Process all operands.
1000
1001 2009-10-06 Jan Hubicka <jh@suse.cz>
1002
1003 * cgraph.c (cgraph_node_can_be_local): Handle externally visible nodes
1004 correctly.
1005
1006 2009-10-06 Uros Bizjak <ubizjak@gmail.com>
1007
1008 * config/i386/i386.md (*lea_1_rex64, *lea_1, *lea_1_zext,
1009 *lea_2_rex64): Move before *add<mode>_1 pattern.
1010
1011 2009-10-07 Jan Hubicka <jh@suse.cz>
1012
1013 * collect2.c (main): Add -fno-whole-program.
1014 * gcc.c (set_collect_gcc_options): Do not remove whole program here.
1015
1016 2009-10-07 Jan Hubicka <jh@suse.cz>
1017
1018 * lto-symtab.c (lto_cgraph_replace_node): Assert that inline clones
1019 has no address taken.
1020 * cgraph.c (cgraph_mark_needed_node): Assert that inline clones are
1021 never needed.
1022 (cgraph_clone_node): Clear externally_visible flag for clones.
1023 * cgraph.h (cgraph_only_called_directly_p,
1024 cgraph_can_remove_if_no_direct_calls_p): New predicates.
1025 * tree-pass.h (pass_ipa_whole_program_visibility): Declare.
1026 * ipa-cp.c (ipcp_cloning_candidate_p): Use new predicate.
1027 (ipcp_initialize_node_lattices, ipcp_estimate_growth,
1028 ipcp_insert_stage): Likwise.
1029 * cgraphunit.c (cgraph_decide_is_function_needed): Do not compute
1030 externally_visible flag.
1031 (verify_cgraph_node): Verify that inline clones look right.
1032 (process_function_and_variable_attributes): Do not set
1033 externally_visible flags.
1034 (ipa_passes): Avoid executing small_ipa_passes at LTO stage; they've
1035 been already run.
1036 * lto-cgraph.c (lto_output_node): Assert that inline clones are not
1037 boundaries.
1038 * ipa-inline.c (cgraph_clone_inlined_nodes): Use new predicates;
1039 clear externally_visible when turning into inline clones
1040 (cgraph_mark_inline_edge): Use new predicates.
1041 (cgraph_estimate_growth): Likewise.
1042 (cgraph_decide_inlining): Likewise.
1043 * ipa.c (cgraph_postorder): Likewise.
1044 (cgraph_remove_unreachable_nodes): Likewise; sanity check
1045 that inline clones are not needed.
1046 (cgraph_externally_visible_p): New predicate.
1047 (function_and_variable_visibility): Add whole_program parameter;
1048 always set externally_visible flag; handle COMDAT function
1049 privatization.
1050 (local_function_and_variable_visibility): New function.
1051 (gate_whole_program_function_and_variable_visibility): New function.
1052 (whole_program_function_and_variable_visibility): New function.
1053 (pass_ipa_whole_program_visibility): New function.
1054 * passes.c (init_optimization_passes): Add whole program visibility
1055 pass.
1056 (do_per_function_toporder, function_called_by_processed_nodes_p): Do
1057 not care about needed/reachable flags.
1058 * varpool.c: Include flags.h
1059 (decide_is_variable_needed): When doing LTO assume whole-program mode.
1060 (varpool_finalize_decl): When we are in LTO read-back, all variables
1061 are analyzed.
1062 (varpool_analyze_pending_decls): Skip analyzis of analyzed vars.
1063
1064 2009-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1065
1066 * config/s390/tpf.h (TARGET_DEFAULT): Remove MASK_HARD_FLOAT and
1067 add MASK_HARD_DFP.
1068
1069 2009-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1070
1071 * config.gcc: Don't include the makefile fragments intended for
1072 libgcc.
1073 * config/s390/fixdfdi.h: File removed.
1074 * config/s390/libgcc-glibc.ver: File removed.
1075 * config/s390/s390.h: Remove the fixdfdi.h hack.
1076 * config/s390/t-crtstuff: File moved to libgcc dir.
1077 * config/s390/t-linux: Likewise.
1078 * config/s390/t-tpf: libgcc specific parts removed.
1079 * config/s390/t-linux64: Likewise.
1080
1081 2009-10-06 Jerry Quinn <jlquinn@optonline.net>
1082
1083 * Makefile.in (lto-wrapper): Use COMPILER and ALL_COMPILERFLAGS.
1084 (lto-compress.o): Likewise.
1085
1086 2009-10-07 Danny Smith <dannysmith@users.sourceforge.net>
1087
1088 PR target/41512
1089 * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't propagate
1090 dllexport to class members here.
1091 (i386_pe_determine_dllimport_p): Only check static class data for
1092 definition.
1093 (i386_pe_encode_section_info): Don't recheck DECL_DLLIMPORT_P.
1094 * config/i386/winnt-cxx.c (i386_pe_type_dllimport_p): Only check
1095 functions for vague linkage.
1096 (i386_pe_type_dllexport_p): Fix formatting.
1097 (maybe_add_dllexport) New function.
1098 (i386_pe_adjust_class_at_definition): Use it to propagate dllexport
1099 to class members.
1100
1101 2009-10-07 Ben Elliston <bje@au.ibm.com>
1102
1103 * config/rs6000/a2.md: Remove duplicated lines.
1104
1105 2009-10-07 Ben Elliston <bje@au.ibm.com>
1106
1107 * config.gcc (powerpc*-*-*): Handle a2.
1108 * config/rs6000/rs6000.md (cpu): Add ppca2. Include "a2.md".
1109 * config/rs6000/a2.md: New file.
1110 * config/rs6000/rs6000.opt (mno-update): New.
1111 (mupdate): Return to using a mask, not a var.
1112 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for a2.
1113 (enum processor_type): Add PROCESSOR_PPCA2.
1114 * config/rs6000/rs6000.c (ppca2_cost): New costs.
1115 (rs6000_override_options): Add "a2" to processor_target_table.
1116 Update rs6000_always_hint logic. Correctly set rs6000_cost for a2.
1117 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=a2.
1118
1119 2009-10-06 Uros Bizjak <ubizjak@gmail.com>
1120
1121 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
1122 Use explicit gen_truncxfsf2 and gen_truncxfdf2 references to avoid
1123 reference to nonexistent gen_truncxfxf2 function.
1124
1125 2009-10-06 Uros Bizjak <ubizjak@gmail.com>
1126
1127 * config/i386/i386.md (SWI48, SDWIM, DWI): New mode iterators.
1128 (DWIH, g, di, doubleint_general_operand): New mode attributes.
1129 (general_operand): Handle TI mode.
1130 (add<mode>3): Macroize expander from add{qi,hi,si,di,ti}3 patterns
1131 using SDWIM mode iterator.
1132 (*add<mode>3_doubleword): New insn_and_split pattern. Macroize
1133 pattern from *add{di,ti}3_1 patterns and corresponding splitters
1134 using DWI mode iterator.
1135 (add<mode>3_carry): Macroize insn from add{qi,hi,si,di}3_carry
1136 patterns using SWI mode iterator.
1137 (*add<mode>3_cc): Macroize insn from add{si,di}3_cc patterns
1138 using SWI48 mode iterator.
1139 (*add<mode>_1): Ditto from add{si,di}_1 patterns.
1140 (*add<mode>_2): Ditto from add{si,di}_2 patterns.
1141 (*add<mode>_3): Ditto from add{si,di}_3 patterns.
1142 (*add<mode>_5): Ditto from add{si,di}_5 patterns.
1143 (sub<mode>3): Macroize expander from sub{qi,hi,si,di,ti}3 patterns
1144 using SDWIM mode iterator.
1145 (*sub<mode>3_doubleword): New insn_and_split pattern. Macroize
1146 pattern from *sub{di,ti}3_1 patterns and corresponding splitters
1147 using DWI mode iterator.
1148 (sub<mode>3_carry): Macroize insn from sub{qi,hi,si,di}3_carry
1149 patterns using SWI mode iterator.
1150 (*sub<mode>_1): Ditto from from sub{qi,hi,si,di}_1 patterns.
1151 (*sub<mode>_2): Ditto from sub{qi,hi,si,di}_2 patterns.
1152 (*sub<mode>_3): Ditto from sub{qi,hi,si,di}_3 patterns.
1153 (<plusminus_insn>xf3): Macroize expander from addxf3 and subxf3
1154 patterns using plusminus code iterator.
1155 (<plusminus_insn><mode>3): Macroize expander from add<mode>3 and
1156 sub<mode>3 patterns using plusminus code iterator.
1157 * config/i386/i386.c (override_options): Update the call to
1158 gen_subdi_carry_rex64 for renamed function.
1159 (ix86_expand_int_addcc): Update calls to gen_subdi3_carry_rex64
1160 and gen_adddi3_carry_rex64 for renamed functions. Use indirect
1161 calls to instruction expanders.
1162
1163 2009-10-06 Martin Jambor <mjambor@suse.cz>
1164
1165 PR bootstrap/41395
1166 * opts.c (decode_options): Run IPA-SRA at -O2.
1167
1168 2009-10-06 Richard Guenther <rguenther@suse.de>
1169
1170 * lto-symtab.c (lto_symtab_entry_hash): Hash strings, not pointers.
1171
1172 2009-10-06 Tobias Burnus <burnus@net-b.de>
1173
1174 PR lto/41591
1175 * doc/invoke.texi (-flto,-fwhole-program): Make clear that the
1176 -flto and -fwhole-program flags can be combined.
1177
1178 2009-10-06 Ryan Mansfield <rmansfield@qnx.com>
1179
1180 PR driver/41217
1181 * gcc.c (process_command): Check that -o argument was specified.
1182
1183 2009-10-06 Jerry Quinn <jlquinn@optonline.net>
1184
1185 * gimple.c (gimple_type_hash): Use CONST_CAST_TREE to fix compilation.
1186
1187 2009-10-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1188
1189 * c.opt (Wjump-misses-init): Fix typo to enable for ObjC.
1190 * doc/invoke.texi (Warning Options): Annotate allowed languages
1191 for -Wunsuffixed-float-constants.
1192
1193 2009-10-05 Jakub Jelinek <jakub@redhat.com>
1194
1195 * dwarf2out.c (modified_type_die): Don't add DW_AT_name to
1196 DW_TAG_{const,volatile}_type if its DW_AT_type already has the
1197 same name and isn't the main variant.
1198
1199 PR debug/41558
1200 * dwarf2out.c (loc_by_reference): Removed.
1201 (dw_loc_list_1): New function.
1202 (dw_loc_list): Remove toplev argument, add want_address argument.
1203 Don't look at decl_by_reference_p at all. Use dw_loc_list_1.
1204 (loc_list_from_tree) <case VAR_DECL>: Pass want_address rather than
1205 want_address == 2 to dw_loc_list. For successful dw_loc_list
1206 set have_address to 1 only if want_address is not 0.
1207
1208 2009-10-05 Richard Sandiford <rdsandiford@googlemail.com>
1209
1210 * config/mips/mips-protos.h (mips_trampoline_code_size): Declare.
1211 * config/mips/mips.h (TRAMPOLINE_SIZE): Redefine as the size of
1212 a code block followed by two pointers.
1213 (TRAMPOLINE_ALIGNMENT): Define to 64 for 32-bit targets too.
1214 * config/mips/mips.c (MIPS_LOAD_PTR): New macro.
1215 (MIPS_MOVE): Likewise.
1216 (MIPS_LUI): Likewise.
1217 (MIPS_JR): Likewise.
1218 (MIPS_BAL): Likewise.
1219 (MIPS_NOP): Likewise.
1220 (mips_asm_trampoline_template): Delete.
1221 (mips_trampoline_code_size): New function.
1222 (mips_trampoline_init): Add shorter sequences for all cases
1223 except Pmode == DImoe && !TARGET_USE_PIC_FN_ADDR_REG.
1224 Calculate the opcodes directly, rather than copying from a template.
1225 Only flush the code part of the trampoline.
1226 (TARGET_ASM_TRAMPOLINE_TEMPLATE): Delete.
1227
1228 2009-10-05 Richard Sandiford <rdsandiford@googlemail.com>
1229
1230 * config/mips/mips.h (DWARF_FRAME_RETURN_COLUMN): Replace
1231 GP_REG_FIRST + 31 with RETURN_ADDR_REGNUM.
1232 (INCOMING_RETURN_ADDR_RTX): Likewise.
1233 (FUNCTION_PROFILER): Likewise. Replace GP_REG_FIRST + 1
1234 with AT_REGNUM.
1235 * config/mips/sdemtk.h (FUNCTION_PROFILER): Replace GP_REG_FIRST + 31
1236 with RETURN_ADDR_REGNUM.
1237 (MIPS_SAVE_REG_FOR_PROFILING_P): Likewise.
1238 * config/mips/mips.c (mips16_build_call_stub): Replace
1239 GP_REG_FIRST + 31 with RETURN_ADDR_REGNUM, GP_REG_FIRST + 1
1240 with AT_REGNUM and 31 with RETURN_ADDR_REGNUM.
1241 (mips_print_operand_punctuation): Likewise.
1242 (mips_frame_set): Likewise.
1243 (mips16e_output_save_restore): Likewise.
1244 (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
1245 (mips_save_reg_p): Likewise.
1246 (mips_return_addr): Likewise.
1247 (mips_set_return_address): Likewise.
1248 (mips_direct_save_slot_move_p): Likewise.
1249 (mips_output_function_prologue): Likewise.
1250 (mips_restore_reg): Likewise.
1251 (mips_expand_epilogue): Likewise.
1252 (mips_epilogue_uses): Likewise.
1253 * config/mips/mips.md (RETURN_ADD_REGNUM): Define.
1254 (*mov<mode>_ra): Use it instead of a hard-coded 31.
1255 (clear_hazard_<mode>): Likewise.
1256 (call_internal): Likewise.
1257 (call_internal_direct): Likewise.
1258 (call_direct_split): Likewise.
1259 (call_value_internal): Likewise.
1260 (call_value_split): Likewise.
1261 (call_value_internal_direct): Likewise.
1262 (call_value_direct_split): Likewise.
1263 (call_value_multiple_internal): Likewise.
1264 (call_value_multiple_split): Likewise.
1265
1266 2009-10-05 Eric Botcazou <ebotcazou@adacore.com>
1267 Jakub Jelinek <jakub@redhat.com>
1268
1269 PR rtl-optimization/41511
1270 * combine.c (record_value_for_reg): Pass explicit values as argument
1271 to get_last_value_validate.
1272 (get_last_value_validate): Document INSN parameter.
1273 For non-readonly MEMs, assume they might have been modified if INSN
1274 was in another basic block.
1275 (get_last_value): Minor reformatting.
1276
1277 2009-10-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
1278
1279 PR tree-opt/40992
1280 * final.c (asm_str_count): Split out from asm_insn_count.
1281 * rtl.h (asm_str_count): New prototype.
1282 * tree-inline (estimate_num_insns) <case GIMPLE_ASM>: Call
1283 asm_str_count.
1284
1285 2009-10-05 Sriraman Tallam <tmsriram@google.com>
1286
1287 * doc/plugins.texi: Change plugin_pass to register_pass_info.
1288
1289 2009-10-05 Basile Starynkevitch <basile@starynkevitch.net>
1290 Rafael Espindola <espindola@google.com>
1291
1292 * gengtype.c (write_types): Moved call to write_func_for_structure
1293 into seperate loops.
1294
1295 2009-10-05 Richard Guenther <rguenther@suse.de>
1296
1297 PR lto/41281
1298 * lto-cgraph.c (output_cgraph): Output toplevel asms.
1299 (input_cgraph_1): Input toplevel asms.
1300
1301 2009-10-05 Richard Guenther <rguenther@suse.de>
1302
1303 PR lto/40902
1304 * lto-symtab.c (lto_compatible_attributes_p): Remove.
1305 (external_aggregate_decl_p): Likewise.
1306 (lto_symtab_compatible): Re-structure. Remove dead code.
1307 For variables ignore toplevel qualifiers when comparing types.
1308 Issue warnings, not errors for mismatched user-alignment.
1309
1310 2009-10-05 Richard Guenther <rguenther@suse.de>
1311
1312 PR lto/41552
1313 PR lto/41487
1314 * lto-symtab.c (struct lto_symtab_base_def): Remove.
1315 (struct lto_symtab_identifier_def): Likewise.
1316 (struct lto_symtab_decl_def): Likewise.
1317 (struct lto_symtab_entry_def): New.
1318 (lto_symtab_identifier_t): Rename to ...
1319 (lto_symtab_entry_t): ... this.
1320 (lto_symtab_decls): Remove.
1321 (lto_symtab_base_hash): Rename to ...
1322 (lto_symtab_entry_hash): ... this.
1323 (lto_symtab_base_eq): Rename to ...
1324 (lto_symtab_entry_eq): ... this.
1325 (lto_symtab_base_marked_p): Rename to ...
1326 (lto_symtab_entry_marked_p): ... this.
1327 (lto_symtab_identifier_marked_p): Remove.
1328 (lto_symtab_decl_marked_p): Likewise.
1329 (lto_symtab_maybe_init_hash_tables): Rename to ...
1330 (lto_symtab_maybe_init_hash_table): ... this.
1331 (lto_symtab_set_resolution_and_file_data): Remove.
1332 (lto_symtab_register_decl): New function.
1333 (lto_symtab_get_identifier): Remove.
1334 (lto_symtab_get): New function.
1335 (lto_symtab_get_resolution): Adjust.
1336 (lto_symtab_get_identifier_decl): Remove.
1337 (lto_symtab_set_identifier_decl): Likewise.
1338 (lto_symtab_merge_decl): Rename to ...
1339 (lto_symtab_merge): ... this. Rewrite.
1340 (lto_symtab_merge_var): Remove.
1341 (lto_symtab_merge_fn): Likewise.
1342 (lto_symtab_prevailing_decl): Adjust.
1343 (lto_cgraph_replace_node): New function.
1344 (lto_symtab_merge_decls_2): Likewise.
1345 (lto_symtab_merge_decls_1): Likewise.
1346 (lto_symtab_fixup_var_decls): Likewise.
1347 (lto_symtab_resolve_symbols): Likewise.
1348 (lto_symtab_merge_decls): Likewise.
1349 (lto_symtab_prevailing_decl): Adjust.
1350 (lto_symtab_get_symtab_def): Remove.
1351 (lto_symtab_get_file_data): Likewise.
1352 (lto_symtab_clear_resolution): Adjust.
1353 (lto_symtab_clear_resolution): Likewise.
1354 * lto-cgraph.c (input_edge): Do not merge cgraph nodes here.
1355 (input_cgraph_1): Likewise.
1356 * lto-streamer-in.c (get_resolution): Do not provide fake
1357 symbol resolutions here.
1358 (deferred_global_decls): Remove.
1359 (lto_register_deferred_decls_in_symtab): Likewise.
1360 (lto_register_var_decl_in_symtab): Change signature, register
1361 variable via lto_symtab_register_decl.
1362 (lto_register_function_decl_in_symtab): Likewise.
1363 (lto_read_tree): Adjust.
1364 * lto-streamer.h (lto_register_deferred_decls_in_symtab): Remove.
1365 (lto_symtab_merge_var): Likewise.
1366 (lto_symtab_merge_fn): Likewise.
1367 (lto_symtab_register_decl): Declare.
1368 (lto_symtab_merge_decls): Likewise.
1369
1370 2009-10-05 Richard Guenther <rguenther@suse.de>
1371
1372 PR tree-optimization/23821
1373 * tree-vrp.c (vrp_finalize): Do not perform copy propagation.
1374 * tree-ssa-dom.c (cprop_operand): Do not propagate copies into
1375 simple IV increments.
1376
1377 2009-10-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1378
1379 * config/arm/arm.c (arm_override_options): Really initialize
1380 flag_dwarf2_cfi_asm to 0.
1381
1382 2009-10-05 Doug Kwan <dougkwan@google.com>
1383
1384 PR rtl-optimization/41574
1385 * combine.c (distribute_and_simplify_rtx): Quit if RTX mode is
1386 floating point and we are not doing unsafe math optimizations.
1387
1388 2009-10-03 Simon Baldwin <simonb@google.com>
1389 Cary Coutant <ccoutant@google.com>
1390 Rafael Espindola <espindola@google.com>
1391 Richard Guenther <rguenther@suse.de>
1392 Jan Hubicka <jh@suse.cz>
1393 Doug Kwan <dougkwan@google.com>
1394 H.J. Lu <hongjiu.lu@intel.com>
1395 Bill Maddox <maddox@google.com>
1396 Ryan Mansfield <rmansfield@qnx.com>
1397 Diego Novillo <dnovillo@google.com>
1398 Ollie Wild <aaw@google.com>
1399 Kenneth Zadeck <zadeck@naturalbridge.com>
1400
1401 * lto-cgraph.c: New file.
1402 * lto-compress.c: New file.
1403 * lto-compress.h: New file.
1404 * lto-opts.c: New file.
1405 * lto-section-in.c: New file.
1406 * lto-section-out.c: New file.
1407 * lto-streamer-in.c: New file.
1408 * lto-streamer-out.c: New file.
1409 * lto-streamer.c: New file.
1410 * lto-streamer.h: New file.
1411 * lto-symtab.c: New file.
1412 * lto-wpa-fixup.c: New file.
1413 * lto-wrapper.c: New file.
1414
1415 2009-10-03 Simon Baldwin <baldwin@google.com>
1416 Ben Elliston <bje@au.ibm.com>
1417 Rafael Espindola <espindola@google.com>
1418 Nathan Froyd <froydnj@codesourcery.com>
1419 Jan Hubicka <jh@suse.cz>
1420 Doug Kwan <dougkwan@google.com>
1421 Diego Novillo <dnovillo@google.com>
1422 Kenneth Zadeck <zadeck@naturalbridge.com>
1423
1424 * Makefile.in (enable_lto): New.
1425 (site.exp): If @enable_lto@ is set to 'yes' define ENABLE_LTO.
1426 (LINKER_PLUGIN_API_H): Define.
1427 (LTO_SYMTAB_H): Define.
1428 (LTO_STREAMER_H): Define.
1429 (TREE_VECTORIZER_H): Define.
1430 (INCLUDES): Add LIBELFINC.
1431 (OBJS-common): Add lto-cgraph.o, lto-streamer-in.o,
1432 lto-streamer-out.o, lto-section-in.o, lto-section-out.o, lto-symtab.o,
1433 lto-opts.o, lto-streamer.o, lto-wpa-fixup.o, lto-compress.o.
1434 (MOSTLYCLEANFILES): Add lto-wrapper$(exeext)
1435 (native): Add lto-wrapper$(exeext)
1436 (lto-compress.o, lto-cgraph.o, lto-streamer-in.o,
1437 lto-streamer-out.o, lto-section-in.o, lto-section-out.o,
1438 lto-symtab.o, lto-opts.o, lto-streamer.o, lto-wpa-fixup.o): New rules.
1439 (gimple.o): Add dependency on LTO_HEADER_H and LTO_SECTION_OUT_H.
1440 (varasm.o): Add dependency on tree-iterator.h.
1441 (cgraph.o): Add dependency on cif-code.def.
1442 (ipa-reference.o): Add dependency on LTO_STREAMER_H.
1443 (ipa-pure-const.o): Likewise.
1444 (GTFILES): Add lto-symtab.c.
1445 (install-lto-wrapper): New.
1446 * configure.ac: If 'lto' is in enable_languages, define ENABLE_LTO
1447 and enable_lto. If LIBELFLIBS is set, define HAVE_libelf.
1448 * config.in: Regenerate.
1449
1450 2009-10-03 Rafael Espindola <espindola@google.com>
1451 Diego Novillo <dnovillo@google.com>
1452
1453 * cgraphunit.c (ipa_passes): Prevent lto1 from calling
1454 ipa_write_summaries.
1455 Call execute_ipa_summary_passes for all_regular_ipa_passes and
1456 all_lto_gen_passes.
1457 (cgraph_optimize): Make extern.
1458
1459 2009-10-03 Nathan Froyd <froydnj@codesourcery.com>
1460 Kenneth Zadeck <zadeck@naturalbridge.com>
1461
1462 * toplev.c (in_lto_p): Declare.
1463 * collect2.c (scan_prog_file): Read all the output when reading
1464 information for LTO.
1465 (enum lto_mode_d): Declare.
1466
1467 2009-10-03 Richard Guenther <rguenther@suse.de>
1468 Diego Novillo <dnovillo@google.com>
1469
1470 * gimple.c: Include target.h and alias.h.
1471 (gimple_types): Declare.
1472 (type_hash_cache): Declare.
1473 (gimple_alloc_stat): Make extern.
1474 (gimple_build_eh_must_not_throw): Call
1475 gimple_eh_must_not_throw_set_fndecl.
1476 (struct type_pair_d): Declare.
1477 (type_pair_t): Declare.
1478 (type_pair_hash): New.
1479 (type_pair_eq): New.
1480 (lookup_type_pair): New.
1481 (gimple_force_type_merge): New.
1482 (compare_type_names_p): New.
1483 (compare_field_offset): New.
1484 (gimple_types_compatible_p): New.
1485 (struct sccs): Declare.
1486 (next_dfs_num): Declare.
1487 (iterative_hash_gimple_type): New.
1488 (visit): New.
1489 (iterative_hash_type_name): New.
1490 (iterative_hash_gimple_type): New.
1491 (gimple_type_hash): New.
1492 (gimple_type_eq): New.
1493 (gimple_register_type): New.
1494 (print_gimple_types_stats): New.
1495 (gimple_signed_or_unsigned_type): New.
1496 (gimple_unsigned_type): New.
1497 (gimple_signed_type): New.
1498 (gimple_get_alias_set): New.
1499 (gimple_decl_printable_name): Do not use DMGL_TYPES.
1500 * gimple.h (gimple_alloc, gimple_alloc_stat): Declare.
1501 (gimple_force_type_merge): Declare.
1502 (gimple_types_compatible_p): Declare.
1503 (gimple_register_type): Declare.
1504 (print_gimple_types_stats): Declare.
1505 (gimple_unsigned_type): Declare.
1506 (gimple_signed_type): Declare.
1507 (gimple_get_alias_set): Declare.
1508 (gimple_eh_must_not_throw_set_fndecl): New.
1509
1510 2009-10-03 Jan Hubicka <jh@suse.cz>
1511 Kenneth Zadeck <zadeck@naturalbridge.com>
1512
1513 * ipa-pure-const.c: Include lto-streamer.h.
1514 (register_hooks): Factor out of ...
1515 (generate_summary): ... here.
1516 (pure_const_write_summary): New.
1517 (pure_const_read_summary): New.
1518 (pass_ipa_pure_const): Add pure_const_write_summary and
1519 pure_const_read_summary.
1520 * ipa-reference.c: Include lto-streamer.h.
1521 (add_new_function): New.
1522 (remove_node_data): New.
1523 (duplicate_node_data): New.
1524 (ipa_init): Guard against multiple calls.
1525 Move hook setup from analyze_function.
1526 (write_node_summary_p): New.
1527 (ipa_reference_write_summary): New.
1528 (ipa_reference_read_summary): New.
1529 (pass_ipa_reference): Add ipa_reference_write_summary and
1530 ipa_reference_read_summary.
1531 * cgraph.h (cgraph_local_info): Add field lto_file_data.
1532 (struct cgraph_edge): Add fields lto_stmt_uid and
1533 call_stmt_cannot_inline_p.
1534 (cgraph_optimize): Declare.
1535 (cgraph_decide_is_function_needed): Declare.
1536 (reset_inline_failed): Declare.
1537 (enum LTO_cgraph_tags): Declare.
1538 (LTO_cgraph_tag_names): Declare.
1539 (LCC_NOT_FOUND): Define.
1540
1541 2009-10-03 Doug Kwan <dougkwan@google.com>
1542 Rafael Espindola <espindola@google.com>
1543 Jan Hubicka <jh@suse.cz>
1544 Diego Novillo <dnovillo@google.com>
1545 Kenneth Zadeck <zadeck@naturalbridge.com>
1546
1547 * passes.c (all_regular_ipa_passes): New.
1548 (all_ipa_passes): Rename to all_small_ipa_passes.
1549 (init_optimization_passes): Init all_regular_ipa_passes.
1550 * tree-pass.h (all_regular_ipa_passes): New.
1551 (all_ipa_passes): Rename to all_small_ipa_passes.
1552 * passes.c (all_lto_gen_passes): New.
1553 (init_optimization_passes): Initialize all_lto_gen_passes.
1554 (execute_ipa_summary_passes): Make non-static.
1555 (ipa_write_summaries_1): New.
1556 (ipa_write_summaries_2): New.
1557 (ipa_write_summaries): New.
1558 (ipa_write_summaries_of_cgraph_node_set): New.
1559 (ipa_read_summaries_1): New.
1560 (ipa_read_summaries): New.
1561 (execute_ipa_pass_list): Call cgraph_process_new_functions.
1562 (execute_regular_ipa_pass_list): Remove.
1563 (init_optimization_passes): Schedule
1564 pass_rebuild_cgraph_edges and pass_early_inline outside
1565 of pass_all_early_optimizations. Document reason.
1566 (pass_ipa_lto_gimple_out, pass_ipa_lto_wpa_fixup,
1567 pass_ipa_lto_finish_out): New pass.
1568 (pass_ipa_summary_passes): Start and stop timers if the pass has them.
1569 (execute_all_ipa_transforms): New.
1570 (execute_one_pass): Don't call execute_one_ipa_transform_pass.
1571 (dump_properties, debug_properties): New.
1572 * tree-optimize.c (gate_all_early_local_passes): Return
1573 false if we are in lto1.
1574 (tree_rest_of_compilation): Call execute_all_ipa_transforms.
1575 * tree-pass.h (execute_all_ipa_transforms): Declare.
1576 (pass_ipa_function_and_variable_visibility): Declare.
1577 (pass_ipa_early_inline): Declare.
1578 (pass_ipa_lto_gimple_out): Declare.
1579 (pass_ipa_lto_wpa_fixup): Declare.
1580 (pass_ipa_lto_finish_out): Declare.
1581 (all_small_ipa_passes, all_regular_ipa_passes,
1582 all_lto_gen_passes): Declare.
1583 (execute_ipa_summary_passes): Declare.
1584 (execute_all_ipa_transforms): Declare.
1585 (ipa_write_summaries): Declare
1586 (ipa_write_summaries_of_cgraph_node_set): Declare.
1587 (ipa_read_summaries): Declare.
1588
1589 2009-10-03 Doug Kwan <dougkwan@google.com>
1590 Ollie Wild <aaw@google.com>
1591
1592 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do nothing in WPA.
1593
1594 * collect2.c (LTO_MODE_NONE, LTO_MODE_LTO, LTO_MODE_WPA): New enums.
1595 (lto_mode): New variable.
1596 (maybe_run_lto_and_relink): Handle the -fwpa option.
1597 (main): Handle the -fwpa option.
1598 (maybe_unlink_list): New function.
1599 * gcc.c (link_lto_options): Replace -flto with -fwpa.
1600 * common.opt (flto): New flag.
1601 * toplev.c (flag_generate_lto): Declare.
1602
1603 2009-10-03 Simon Baldwin <simonb@google.com>
1604
1605 * common.opt (flto-compression-level): New flag.
1606
1607 * opts.c: Include lto-opts.h.
1608 (handle_option): Call lto_register_user_option for each
1609 valid option handled.
1610 (decode_options): Clear registered options before the options
1611 handling loop.
1612
1613 2009-10-03 Cary Coutant <ccoutant@google.com>
1614
1615 * collect2.c (is_elf): New function.
1616 (scan_prog_file): Require LTO object to be in ELF format.
1617
1618 2009-10-03 Rafael Espindola <espindola@google.com>
1619
1620 * gcc.c (LINK_COMMAND_SPEC): Use the -pass-through option to pass
1621 libgcc to the linker.
1622
1623 * ipa-cp.c (cgraph_gate_cp): Return false if LTRANS is running.
1624
1625 * collect2.c (maybe_run_lto_and_relink): Execute lto-wrapper.
1626 (collect_execute): Add flags argument. Pass flags to pex_run. Update
1627 all callers.
1628 * collect2.h (collect_execute): Add flags argument.
1629 * tlink.c (tlink_execute): Update call to collect_execute.
1630 * gcc.c (main): Set the COLLECT_LTO_WRAPPER environment variable.
1631 (use_linker_plugin): New.
1632 (use_linker_plugin_spec_function): New.
1633 (LINK_COMMAND_SPEC): Pass plugin options to the linker.
1634 (linker_plugin_file_spec): New.
1635 (lto_wrapper_spec): New.
1636 (lto_gcc_spec): New.
1637 (static_specs): Add linker_plugin_file, lto_wrapper and lto_gcc.
1638 (static_spec_functions): Add use-linker-plugin.
1639 (process_command): Handle -use-linker-plugin.
1640 (main): Use lto_wrapper_spec instead of lto_wrapper. Set
1641 linker_plugin_file_spec and lto_gcc_spec.
1642 (use_linker_plugin_spec_function): New.
1643
1644 2009-10-03 Richard Guenther <rguenther@suse.de>
1645
1646 PR lto/41547
1647 PR lto/41548
1648 * tree.h (is_lang_specific): Include LANG_TYPE.
1649 * tree.c (find_decls_types_r): Manually add interesting parts
1650 of TYPE_FIELDS. Walk BINFO_VIRTUALS. Do not walk TYPE_METHODS.
1651
1652 * gimple.c (type_pair_hash): Make symmetric.
1653 (type_pair_eq): Likewise.
1654 (lookup_type_pair): Increase initial hashtable size.
1655 (gimple_force_type_merge): Rely on type-pair symmetry.
1656 (visit): Remove excessive checking code.
1657 (iterative_hash_type_name): Do not hash TYPE_NAME of anonymous unions.
1658 (gimple_register_type): Remove getenv calls, shrink initial
1659 hashtable size.
1660
1661 PR middle-end/41502
1662 * cgraphunit.c (ipa_passes): Do not remove bodies of extern
1663 inline functions if not generating lto output.
1664
1665 PR lto/41379
1666 * toplev.c (finalize): In WPA mode remove the asm file.
1667
1668 2009-10-03 Doug Kwan <dougkwan@google.com>
1669
1670 * ipa-inline.c (cgraph_mark_inline): Check
1671 edge->call_stmt_cannot_inline_p instead of calling
1672 gimple_call_cannot_inline_p.
1673 (cgraph_decide_inlining): Do nothing in WPA and LTRANS.
1674 (cgraph_gate_ipa_early_inlining): Return false if in_lto_p is set.
1675 (inline_generate_summary): Do nothing in LTRANS.
1676 * cgraph.c (initialize_inline_failed): Make sure e->call_stmt
1677 exists before calling gimple_call_cannot_inline_p.
1678 (cgraph_create_edge): Set edge->call_stmt_cannot_inline_p.
1679 (cgraph_clone_edge): Add argument STMT_UID. Modify all callers.
1680 Update new_edge->lto_stmt_uid.
1681 * cgraphbuild.c (reset_inline_failed): New.
1682
1683 * common.opt (fwpa): New flag.
1684 (fltrans): New option.
1685 * gcc.c (gcc_lto_option_t): New type.
1686 (current_lto_option): New variable.
1687 (lto_single_spec_function): Remove and is replaced by ..
1688 (lto_option_spec_function): New function.
1689 (LINK_COMMAND_SPEC): Use link_lto_option spec instead of just
1690 passing the -flto flag.
1691 (cc1_options): Separate non-LTO related parts into ..
1692 (cc1_non_lto_options): Non-LTO related options shared by all FEs.
1693 (lto1_options): New spec for lto FE.
1694 (link_lto_options): New spec for handling LTO flags in linker.
1695 (invoke_lto_single): Re-format to fit in 80 column. Replace
1696 lto-single with lto-option.
1697 (static_specs): Add cc1_non_lto_options, lto1_options and
1698 link_lto_options.
1699 (static_spec_function): Replace lto-single with lto-option.
1700 (process_command): Handle -flto, -fwpa and -fltran by setting
1701 current_lto_option and not passing it to subprocess unconditionally.
1702
1703 2009-10-03 Bill Maddox <maddox@google.com>
1704
1705 Add `gcc' driver support for link-time code generation (LTO).
1706
1707 * collect2.c (enum pass): Add new literal PASS_LTOINFO.
1708 (lto_flag, lto_objects, lto_o_file): New variables.
1709 (struct lto_object, struct lto_object_list): New structures.
1710 (collect_exit, handler): Remove LTO temporary output file on exit.
1711 (add_lto_object): New function.
1712 (maybe_run_lto_and_relink): New function. Perform link time code
1713 generation and relinking for object files containing LTO information.
1714 (main): Invoke maybe_run_lto_and_relink().
1715 (dump_argv): New function. For debugging, currently disabled.
1716 (scan_prog_file): Add LTO information pass.
1717 * gcc.c (LINK_COMMAND_SPEC): Pass `-flto' switch to linker, i.e.,
1718 collect2.
1719 * toplev.c (compile_file): Emit assembler directive to create
1720 the `gnu_lto_v1' marker symbol when compiling with `-flto'.
1721
1722 2009-10-03 Diego Novillo <dnovillo@google.com>
1723
1724 * c.opt: Add LTO to warn_abi and warn_psabi.
1725
1726 * tree.c (fld_worklist_push): Rename from PUSH. Convert to static
1727 inline function. Ignore language-specific nodes. Update all users.
1728 (find_decls_types_r): Do not traverse the subtrees of
1729 language-specific nodes. Do not traverse DECL_INITIAL for TYPE_DECLs.
1730 * tree.h (is_lang_specific): New.
1731 * langhooks.h (struct lang_hooks_for_decls): Remove
1732 may_need_assembler_name_p. Update all users.
1733
1734 * c-common.c (set_builtin_user_assembler_name): Move ...
1735 * builtins.c (set_builtin_user_assembler_name): ... here.
1736 (is_builtin_name): Add comment
1737 (is_builtin_fn): New.
1738 * except.c (output_ttype): Only call
1739 lookup_type_for_runtime if TYPE is not a runtime type.
1740
1741 * passes.c (register_pass): Call position_pass on
1742 all_small_ipa_passes, all_regular_ipa_passes and all_lto_gen_passes.
1743 * timevar.def (TV_IPA_LTO_GIMPLE_IO): Define.
1744 (TV_IPA_LTO_DECL_IO): Define.
1745 (TV_IPA_LTO_CGRAPH_IO): Define.
1746 (TV_LTO): Define.
1747 (TV_WHOPR_WPA): Define.
1748 (TV_WHOPR_WPA_IO): Define.
1749 (TV_WHOPR_LTRANS): Define.
1750 (TV_WHOPR_WPA_FIXUP): Define.
1751 (TV_WHOPR_WPA_LTRANS_EXEC): Define.
1752 * tree-cfg.c (tree_node_can_be_shared): Make extern.
1753 * tree-flow.h (tree_node_can_be_shared): Declare.
1754 * tree-inline.c (tree_can_inline_p): Check that E has a
1755 statement associated with it.
1756 * tree.c (free_lang_data_in_binf): Factor out of ...
1757 (free_lang_data_in_type): ... here.
1758 Call RECORD_OR_UNION_TYPE_P.
1759 (need_assembler_name_p): Ignore DECL if it does not have TREE_PUBLIC
1760 set. Call lang_hooks.decls.may_need_assembler_name_p if set.
1761 (free_lang_data_in_decl): Do not clear DECL_CONTEXT for CONST_DECLs.
1762 (free_lang_data): Set debug_info_level to DINFO_LEVEL_NONE. Set
1763 write_symbols to NO_DEBUG. Set debug_hooks to do_nothing_debug_hooks.
1764 (gate_free_lang_data): Return true if flag_generate_lto is set.
1765 (walk_tree_1): Call RECORD_OR_UNION_TYPE_P.
1766 * c-common.h (set_builtin_user_assembler_name): Move ...
1767 * tree.h (set_builtin_user_assembler_name): ... here.
1768
1769 * common.opt (flto-report): New flag.
1770 * opts.c (complain_wrong_lang): Do not complain if running lto1.
1771 * collect2.c (scan_prog_file): Send the error output of
1772 'nm' to HOST_BIT_BUCKET.
1773
1774 2009-10-03 Ollie Wild <aaw@google.com>
1775
1776 * langhooks-def.h (lhd_begin_section): New function declaration.
1777 (lhd_write_section): New function declaration.
1778 (lhd_end_section): New function declaration.
1779 (LANG_HOOKS_BEGIN_SECTION): New macro.
1780 (LANG_HOOKS_WRITE_SECTION_DATA): New macro.
1781 (LANG_HOOKS_END_SECTION): New macro.
1782 (LANG_HOOKS_LTO): New macro.
1783 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_LTO.
1784 * langhooks.c (output.h): Add include.
1785 (saved_section): New static variable.
1786 (lhd_begin_section): New function.
1787 (lhd_write_section_data): New function.
1788 (lhd_end_section): New function.
1789 * langhooks.h (struct lang_hooks_for_lto): New structure.
1790 (struct lang_hooks): Add member lto.
1791 * Makefile.in (langhooks.o): Add dependency on output.h.
1792
1793 * c-opts.c (c_common_post_options): Handle -flto and -fwhopr.
1794
1795 2009-10-03 Richard Guenther <rguenther@suse.de>
1796
1797 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
1798 Handle LTO.
1799
1800 2009-10-03 Simon Baldwin <simonb@google.com>
1801 Richard Guenther <rguenther@suse.de>
1802 Janis Johnson <janis187@us.ibm.com>
1803 Doug Kwan <dougkwan@google.com>
1804 Diego Novillo <dnovillo@google.com>
1805 Ramana Radhakrishnan <ramana.r@gmail.com>
1806 Ollie Wild <aaw@google.com>
1807
1808 * doc/install.texi: Add documentation for libelf and --enable-lto.
1809 * doc/invoke.texi: Document -fwpa, -flto, -fwhopr, -fltrans,
1810 -flto-report, -flto-compression-level and -use-linker-plugin.
1811 * doc/sourcebuild.texi: Document use of zlib. Document lto-plugin.
1812 Add section for LTO Testing.
1813
1814 2009-10-02 Cary Coutant <ccoutant@google.com>
1815
1816 Add support for comdat type sections for DWARF v4.
1817 Merge from dwarf4 branch.
1818
1819 * dwarf2out.c (DWARF_TYPE_SIGNATURE_SIZE): New constant.
1820 (dw_die_ref): Define vector type.
1821 (enum dw_val_class): Add dw_val_class_data8.
1822 (struct dw_val_struct): Add v.val_data8.
1823 (comdat_type_node_ref): New type.
1824 (struct die_struct): Move die_symbol into a union; add new field
1825 die_type_node. Change all uses.
1826 (comdat_type_node): New type.
1827 (skeleton_chain_node): New type.
1828 (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): New constant.
1829 (comdat_type_list): New variable.
1830 (dwarf_tag_name): Add DW_TAG_type_unit.
1831 (dwarf_attr_name): Add DW_AT_signature.
1832 (add_AT_data8): New function.
1833 (replace_child): New function.
1834 (move_all_children): New function.
1835 (print_signature): New function.
1836 (print_die): Print signature information; add dw_val_class_data8.
1837 (attr_checksum): Support dw_val_class_data8.
1838 (CHECKSUM_STRING): Redefine for DWARF-4 to include trailing NULL byte.
1839 (CHECKSUM_SLEB128, CHECKSUM_ULEB128): New macros.
1840 (checksum_sleb128, checksum_uleb128): New functions.
1841 (checksum_die_context): New function.
1842 (loc_checksum_ordered): New function.
1843 (attr_checksum_ordered): New function.
1844 (struct checksum_attributes): New structure.
1845 (collect_checksum_attributes): New function.
1846 (die_checksum_ordered): New function.
1847 (generate_type_signature): New function.
1848 (same_dw_val_p): Add dw_val_class_data8.
1849 (is_symbol_die): Use new is_declaration_die function.
1850 (is_declaration_die): New function.
1851 (should_move_die_to_comdat): New function.
1852 (clone_die): New function.
1853 (clone_tree): New function.
1854 (clone_as_declaration): New function.
1855 (copy_declaration_context): New function.
1856 (generate_skeleton_ancestor_tree): New function.
1857 (generate_skeleton_bottom_up): New function.
1858 (generate_skeleton): New function.
1859 (remove_child_or_replace_with_skeleton): New function.
1860 (break_out_comdat_types): New function.
1861 (struct decl_table_entry): New type.
1862 (htab_decl_hash): New function.
1863 (htab_decl_eq): New function.
1864 (htab_decl_del): New function.
1865 (copy_ancestor_tree): New function.
1866 (copy_decls_walk): New function.
1867 (copy_decls_for_unworthy_types): New function.
1868 (build_abbrev_table): Don't assert on missing die_symbol when doing
1869 comdat type sections.
1870 (size_of_die): Use DW_FORM_sig8 for external references. Add
1871 dw_val_class_data8.
1872 (unmark_dies): Don't assert for unmarked dies when doing comdat
1873 type sections.
1874 (value_format): Support DW_FORM_sig8 and dw_val_class_data8.
1875 (output_signature): New function.
1876 (output_die): Likewise.
1877 (output_compilation_unit_header): Mark output as DWARF version 3
1878 even if generating DWARF 4.
1879 (output_comdat_type_unit): New function.
1880 (output_line_info): Mark output as DWARF version 3 even if generating
1881 DWARF 4.
1882 (dwarf2out_start_source_file): Don't do eliminate_dwarf2_dups with
1883 DWARF-4.
1884 (dwarf2out_end_source_file): Likewise.
1885 (prune_unused_types_walk_attribs): Don't follow references into
1886 comdat type sections.
1887 (prune_unused_types_mark): When generating type units, do not mark
1888 children of non-defining declarations of types; do mark children of
1889 type entries.
1890 (prune_unused_types): Process comdat type sections.
1891 (htab_ct_hash): New function.
1892 (htab_ct_eq): New function.
1893 (dwarf2out_finish): Move types to comdat sections when using DWARF-4.
1894 Add a pointer to the line table from type unit entries so
1895 DW_AT_decl_file has meaning.
1896 * varasm.c (default_elf_asm_named_section): Use identifier name as
1897 comdat key instead of lang hook.
1898
1899 2009-10-02 Neil Vachharajani <nvachhar@google.com>
1900
1901 * gcov-io.c (gcov_open): Open files read-only when MODE < 0.
1902
1903 2009-10-02 Uros Bizjak <ubizjak@gmail.com>
1904
1905 * config/i386/i386.md (SWIM248): New mode iterator.
1906 (divmod<mode>4) Macroize expander from divmoddi4, divmodsi4 and
1907 divmodhi4 patterns using SWIM248 macro.
1908 (*divmod<mode>4): Macroize insn_and_split pattern from
1909 *divmoddi4_cltd_rex64, *divmodsi4_cltd and divmodhi4 insn patterns
1910 and their corresponding splitters usign SWIM248 macro. Split SImode
1911 insn to generate cltd and DImode insn to generate cqto instead of
1912 move+shift when optimizing for size or TARGET_USE_CLTD is in effect.
1913 (*divmoddi4_nocltd_rex64, *divmodsi4_nocltd): Remove insn patterns.
1914 (*divmod<mode>4_noext): Macroize insn from *divmoddi_noext_rex64 and
1915 *divmodsi_noext patterns using SWIM248 macro.
1916 (udivmod<mode>4): Macroize expander from udivmoddi4, udivmodsi4 and
1917 udivmodhi4 patterns using SWIM248 macro.
1918 (*udivmod<mode>4): Macroize insn_and_split pattern from
1919 *udivmoddi4, udivmodsi4 and udivmodhi4 patterns and their
1920 corresponding splitters using SWIM248 macro.
1921 (*udivmod<mode>4_noext): Macroize insn from *udivmoddi4_noext,
1922 *udivmodsi4_noext and *udivmodhi_noext patterns using SWIM248 macro.
1923
1924 2009-10-02 Eric Botcazou <ebotcazou@adacore.com>
1925
1926 * stor-layout.c (layout_type) <ARRAY_TYPE>: Make sure that an array
1927 of zero-sized element is zero-sized regardless of its extent.
1928
1929 2009-10-02 Jakub Jelinek <jakub@redhat.com>
1930
1931 PR debug/40521
1932 * configure.ac (HAVE_GAS_CFI_SECTIONS_DIRECTIVE): New test.
1933 * configure: Regenerated.
1934 * config.in: Regenerated.
1935 * dwarf2out.c (dwarf2out_do_cfi_asm): Return false if
1936 !HAVE_GAS_CFI_SECTIONS_DIRECTIVE and not emitting .eh_frame.
1937 (dwarf2out_init): If HAVE_GAS_CFI_SECTIONS_DIRECTIVE and
1938 not emitting .eh_frame, emit .cfi_sections .debug_frame
1939 directive.
1940
1941 PR debug/41404
1942 PR debug/41353
1943 * cfgexpand.c (expand_debug_expr) <case STRING_CST>: Don't create
1944 CONST_STRING if STRING_CST contains embedded '\0's or doesn't end
1945 with '\0'.
1946 (expand_debug_expr) <case VAR_DECL>: For TREE_STATIC !DECL_EXTERNAL
1947 vars use DECL_RTL with resetting it back to NULL afterwards.
1948 * dwarf2out.c (same_dw_val_p): For dw_val_class_addr compare with
1949 rtx_equal_p instead of asserting it is a SYMBOL_REF.
1950 (value_format): For dw_val_class_addr only use DW_FORM_addr if
1951 the attribute type allows it, otherwise use DW_FORM_dataN.
1952 (mem_loc_descriptor): Handle CONST_STRING.
1953 (add_const_value_attribute): Handle CONST_STRING using add_AT_addr.
1954 Handle MEM with CONST_STRING address using add_AT_string.
1955 (rtl_for_decl_init): Return MEM with CONST_STRING address instead of
1956 CONST_STRING for const arrays initialized with a string literal.
1957 (resolve_one_addr, resolve_addr_in_expr, resolve_addr): New functions.
1958 (dwarf2out_finish): Call resolve_addr.
1959
1960 2009-10-02 Andreas Schwab <schwab@linux-m68k.org>
1961 Maxim Kuvyrkov <maxim@codesourcery.com>
1962
1963 * config/m68k/lb1sf68.asm (PICCALL): Use variable sized branch.
1964
1965 2009-10-02 Nick Clifton <nickc@redhat.com>
1966
1967 * config/mn10300/mn10300.h (USER_LABEL_PREFIX): Define.
1968 (ASM_OUTPUT_LABELREF): Use asm_fprintf and %U.
1969
1970 2009-10-01 Jan Hubicka <jh@suse.cz>
1971
1972 * cgraph.c (cgraph_clone_node): Add redirect_callers parameter.
1973 (cgraph_create_virtual_clone): Just pass redirect_callers
1974 around.
1975 * cgraph.h (cgraph_clone_node): Update prototype.
1976 * ipa-pure-const.c (self_recursive_p): New function.
1977 (propagate): Use it.
1978 * ipa-inline.c (cgraph_clone_inlined_nodes,
1979 cgraph_decide_recursive_inlining): Update.
1980
1981 2009-10-01 David Daney <ddaney@caviumnetworks.com>
1982
1983 * gcc/config/mips/mips.c (mips_process_sync_loop) Emit syncw
1984 instructions for TARGET_OCTEON.
1985
1986 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1987
1988 * config/arm/arm.c (arm_override_options): Turn off
1989 flag_dwarf2_cfi_asm for AAPCS variants.
1990
1991 2009-10-01 Martin Jambor <mjambor@suse.cz>
1992
1993 PR middle-end/12392
1994 * tree-sra.c (convert_callers): Do not call
1995 compute_inline_parameters on one caller more than once.
1996
1997 2009-10-01 Nick Clifton <nickc@redhat.com>
1998
1999 * config/vax/netbsd-elf.h (NETBSD_CC1_AND_CC1PLUS_SPEC): Define as
2000 an empty string if not already defined.
2001
2002 2009-10-01 Martin Jambor <mjambor@suse.cz>
2003
2004 PR bootstrap/41395
2005 * tree-sra.c (is_va_list_type): New function.
2006 (find_var_candidates): Call is_va_list_type.
2007 (find_param_candidates): Check that the type or the type pointed
2008 to are not va_list types.
2009
2010 2009-10-01 Martin Jambor <mjambor@suse.cz>
2011
2012 PR c++/41503
2013 * cp/pt.c (function_parameter_expanded_from_pack_p): Return false if
2014 DECL_ARTIFICIAL (param_decl) is true.
2015
2016 2009-09-30 Gabriel Dos Reis <gdr@cs.tamu.edu>
2017
2018 * tree.h (tree_decl_common::lang_flag_8): New.
2019 * c-common.c (c_common_reswords): Include "constexpr" as C++0x
2020 keyword.
2021 * c-common.h (RID_CONSTEXPR): New.
2022
2023 2009-09-30 Uros Bizjak <ubizjak@gmail.com>
2024
2025 * config/alpha/alpha.c (alpha_gimplify_va_arg_1):
2026 Use ref-all pointers.
2027 (alpha_gimplify_va_arg): Ditto.
2028
2029 2009-09-30 Jakub Jelinek <jakub@redhat.com>
2030
2031 PR target/41279
2032 * cfgloopanal.c (num_loop_insns): Don't increment ninsns for each bb
2033 before insn counting loop now that BB_END (bb) is counted. Ensure
2034 the return value isn't zero.
2035
2036 2009-09-30 Nick Clifton <nickc@redhat.com>
2037
2038 * config.gcc (sh-symbianelf): Replace definition of extra_objs
2039 with separate definitions of c_target_objs and cxx_target_objs.
2040 * config/sh/t-sh: Add rules to build symbian-cxx.o, symbian-c.o
2041 and symbian-base.o.
2042 * config/sh/sh.c (TARGET_CXX_INPUT_EXPORT_CLASS): Use
2043 sh_symbian_import_export_class.
2044 * config/sh/sh-protos.h: Fix names of exported symbian functions.
2045 * config/sh/symbian.c: Delete, moving code into...
2046 * config/sh/symbian-base.c: ... here
2047 * config/sh/symbian-c.c: ... and here
2048 * config/sh/symbian-cxx.c: ... and here.
2049
2050 2009-09-30 Uros Bizjak <ubizjak@gmail.com>
2051
2052 PR target/22093
2053 * config/alpha/alpha.md (unaligned_storehi_be): Force operand
2054 of plus RTX into register.
2055
2056 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2057
2058 * doc/install.texi: Linguistic and markup fixes.
2059 (Configuration) <--disable-cpp>: Remove description.
2060 <--enable-maintainer-mode>: Autotools files are affected, too.
2061 <--with-sysroot>: Improve description.
2062 (Building): Bump required GNU make version.
2063
2064 2009-09-29 Harsha Jagasia <harsha.jagasia@amd.com>
2065
2066 * config.gcc (i[34567]86-*-*): Include fma4intrin.h.
2067 (x86_64-*-*): Ditto.
2068
2069 * config/i386/fma4intrin.h: New file, provide common x86 compiler
2070 intrinisics for FMA4.
2071 * config/i386/cpuid.h (bit_FMA4): Define FMA4 bit.
2072 * config/i386/x86intrin.h: Fix typo to SSE4A instead of SSE4a.
2073 Add FMA4 check and fma4intrin.h.
2074 * config/i386/i386-c.c(ix86_target_macros_internal): Check
2075 ISA_FLAG for FMA4.
2076 * config/i386/i386.h(TARGET_FMA4): New macro for FMA4.
2077 * config/i386/i386.md (UNSPEC_FMA4_INTRINSIC): Add new UNSPEC
2078 constant for FMA4 support.
2079 (UNSPEC_FMA4_FMADDSUB): Ditto.
2080 (UNSPEC_FMA4_FMSUBADD): Ditto.
2081 * config/i386/i386.opt (-mfma4): New switch for FMA4 support.
2082 * config/i386/i386-protos.h (ix86_fma4_valid_op_p): Add declaration.
2083 (ix86_expand_fma4_multiple_memory): Ditto.
2084 * config/i386/i386.c (OPTION_MASK_ISA_FMA4_SET): New.
2085 (OPTION_MASK_ISA_FMA4_UNSET): New.
2086 (OPTION_MASK_ISA_SSE4A_UNSET): Change definition to depend on FMA4.
2087 (OPTION_MASK_ISA_AVX_UNSET): Change definition to depend on FMA4.
2088 (ix86_handle_option): Handle -mfma4.
2089 (isa_opts): Handle -mfma4.
2090 (enum pta_flags): Add PTA_FMA4.
2091 (override_options): Add FMA4 support.
2092 (IX86_BUILTIN_VFMADDSS): New for FMA4 intrinsic.
2093 (IX86_BUILTIN_VFMADDSD): Ditto.
2094 (IX86_BUILTIN_VFMADDPS): Ditto.
2095 (IX86_BUILTIN_VFMADDPD): Ditto.
2096 (IX86_BUILTIN_VFMSUBSS): Ditto.
2097 (IX86_BUILTIN_VFMSUBSD): Ditto.
2098 (IX86_BUILTIN_VFMSUBPS): Ditto.
2099 (IX86_BUILTIN_VFMSUBPD): Ditto.
2100 (IX86_BUILTIN_VFMADDSUBPS): Ditto.
2101 (IX86_BUILTIN_VFMADDSUBPD): Ditto.
2102 (IX86_BUILTIN_VFMSUBADDPS): Ditto.
2103 (IX86_BUILTIN_VFMSUBADDPD): Ditto.
2104 (IX86_BUILTIN_VFNMADDSS): Ditto.
2105 (IX86_BUILTIN_VFNMADDSD): Ditto.
2106 (IX86_BUILTIN_VFNMADDPS): Ditto.
2107 (IX86_BUILTIN_VFNMADDPD): Ditto.
2108 (IX86_BUILTIN_VFNMSUBSS): Ditto.
2109 (IX86_BUILTIN_VFNMSUBSD): Ditto.
2110 (IX86_BUILTIN_VFNMSUBPS): Ditto.
2111 (IX86_BUILTIN_VFNMSUBPD): Ditto.
2112 (IX86_BUILTIN_VFMADDPS256): Ditto.
2113 (IX86_BUILTIN_VFMADDPD256): Ditto.
2114 (IX86_BUILTIN_VFMSUBPS256): Ditto.
2115 (IX86_BUILTIN_VFMSUBPD256): Ditto.
2116 (IX86_BUILTIN_VFMADDSUBPS256): Ditto.
2117 (IX86_BUILTIN_VFMADDSUBPD256): Ditto.
2118 (IX86_BUILTIN_VFMSUBADDPS256): Ditto.
2119 (IX86_BUILTIN_VFMSUBADDPD256): Ditto.
2120 (IX86_BUILTIN_VFNMADDPS256): Ditto.
2121 (IX86_BUILTIN_VFNMADDPD256): Ditto.
2122 (IX86_BUILTIN_VFNMSUBPS256): Ditto.
2123 (IX86_BUILTIN_VFNMSUBPD256): Ditto.
2124 (enum multi_arg_type): New enum for describing the various FMA4
2125 intrinsic argument types.
2126 (bdesc_multi_arg): New table for FMA4 intrinsics.
2127 (ix86_init_mmx_sse_builtins): Add FMA4 intrinsic support.
2128 (ix86_expand_multi_arg_builtin): New function for creating FMA4
2129 intrinsics.
2130 (ix86_expand_builtin): Add FMA4 intrinsic support.
2131 (ix86_fma4_valid_op_p): New function to validate FMA4 3 and 4
2132 operand instructions.
2133 (ix86_expand_fma4_multiple_memory): New function to split the
2134 second memory reference from FMA4 instructions.
2135 * config/i386/sse.md (ssemodesuffixf4): New mode attribute for FMA4.
2136 (ssemodesuffixf2s): Ditto.
2137 (fma4_fmadd<mode>4): Add FMA4 floating point multiply/add
2138 instructions.
2139 (fma4_fmsub<mode>4): Ditto.
2140 (fma4_fnmadd<mode>4): Ditto.
2141 (fma4_fnmsub<mode>4): Ditto.
2142 (fma4_vmfmadd<mode>4): Ditto.
2143 (fma4_vmfmsub<mode>4): Ditto.
2144 (fma4_vmfnmadd<mode>4): Ditto.
2145 (fma4_vmfnmsub<mode>4): Ditto.
2146 (fma4_fmadd<mode>4256): Ditto.
2147 (fma4_fmsub<mode>4256): Ditto.
2148 (fma4_fnmadd<mode>4256): Ditto.
2149 (fma4_fnmsub<mode>4256): Ditto.
2150 (fma4_fmaddsubv8sf4): Ditto.
2151 (fma4_fmaddsubv4sf4): Ditto.
2152 (fma4_fmaddsubv4df4): Ditto.
2153 (fma4_fmaddsubv2df4): Ditto.
2154 (fma4_fmsubaddv8sf4): Ditto.
2155 (fma4_fmsubaddv4sf4): Ditto.
2156 (fma4_fmsubaddv4df4): Ditto.
2157 (fma4_fmsubaddv2df4): Ditto.
2158 (fma4i_fmadd<mode>4): Add FMA4 floating point multiply/add
2159 instructions for intrinsics.
2160 (fma4i_fmsub<mode>4): Ditto.
2161 (fma4i_fnmadd<mode>4): Ditto.
2162 (fma4i_fnmsub<mode>4): Ditto.
2163 (fma4i_vmfmadd<mode>4): Ditto.
2164 (fma4i_vmfmsub<mode>4): Ditto.
2165 (fma4i_vmfnmadd<mode>4): Ditto.
2166 (fma4i_vmfnmsub<mode>4): Ditto.
2167 (fma4i_fmadd<mode>4256): Ditto.
2168 (fma4i_fmsub<mode>4256): Ditto.
2169 (fma4i_fnmadd<mode>4256): Ditto.
2170 (fma4i_fnmsub<mode>4256): Ditto.
2171 (fma4i_fmaddsubv8sf4): Ditto.
2172 (fma4i_fmaddsubv4sf4): Ditto.
2173 (fma4i_fmaddsubv4df4): Ditto.
2174 (fma4i_fmaddsubv2df4): Ditto.
2175 (fma4i_fmsubaddv8sf4): Ditto.
2176 (fma4i_fmsubaddv4sf4): Ditto.
2177 (fma4i_fmsubaddv4df4): Ditto.
2178 (fma4i_fmsubaddv2df4): Ditto.
2179
2180 * doc/invoke.texi (-mfma4): Add documentation.
2181 * doc/extend.texi (x86 intrinsics): Add FMA4 intrinsics.
2182
2183 2009-09-29 Richard Henderson <rth@redhat.com>
2184
2185 * tree-eh.c (unsplit_eh): Do not unsplit if there's already
2186 an edge to the new destination block.
2187
2188 2009-09-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2189
2190 PR target/41393
2191 * pa.c (hppa_profile_hook): Use
2192 make_reg_eh_region_note_nothrow_nononlocal to add REG_EH_REGION note.
2193
2194 2009-09-29 Steve Ellcey <sje@cup.hp.com>
2195 Alexander Monakov <amonakov@ispras.ru>
2196
2197 PR target/41365
2198 * config/ia64/predicates.md (not_postinc_destination_operand): New.
2199 (not_postinc_memory_operand): New.
2200 (not_postinc_move_operand): New.
2201 * config/ia64/ia64.md (*cmovdi_internal): Disallow autoincrement.
2202 (*cmovsi_internal): Ditto.
2203
2204 2009-09-29 Pat Haugen <pthaugen@us.ibm.com>
2205
2206 * config/rs6000/rs6000.c (rs6000_issue_rate): Don't artificially
2207 restrict issue_rate in first pass when scheduling for register
2208 pressure.
2209
2210 2009-09-29 Basile Starynkevitch <basile@starynkevitch.net>
2211 Rafael Avila de Espindola <espindola@google.com>
2212
2213 * gengtype.c (plugin_output): New.
2214 (get_output_file_with_visibility): Return plugin_output for plugins.
2215 (main): Parse and use the -P option.
2216 * gty.texi: Update the command line format.
2217
2218 2009-09-29 Jakub Jelinek <jakub@redhat.com>
2219
2220 PR debug/41438
2221 * dwarf2out.c (const_ok_for_output_1, const_ok_for_output): New
2222 functions.
2223 (mem_loc_descriptor, loc_descriptor, add_const_value_attribute): Bail
2224 out if !const_ok_for_output.
2225
2226 PR debug/41474
2227 * dwarf2out.c (mem_loc_descriptor) <case CONCAT, case CONCATN,
2228 case VAR_LOCATION>: Remove gcc_unreachable ().
2229
2230 2009-09-29 Harsha Jagasia <harsha.jagasia@amd.com>
2231
2232 * config.gcc (i[34567]86-*-*): Remove mmintrin-common.h.
2233 (x86_64-*-*): Ditto.
2234 * config/i386/smmintrin.h: Move instructions in mmintrin-common.h
2235 back to smmintrin.h.
2236 * config/i386/cpuid.h: (bit_SSE5): Remove SSE5 bit.
2237 * config/i386/x86intrin.h: Remove SSE5.
2238 * config/i386/mmintrin-common.h: Delete file.
2239 * doc/extend.texi (x86 intrinsics): Remove SSE5 flags and builtins.
2240
2241 2009-09-29 Richard Guenther <rguenther@suse.de>
2242
2243 * alias.c (ao_ref_from_mem): Properly deal with off decl accesses
2244 resulting from stack temporaries on STRICT_ALIGNMENT targets.
2245
2246 2009-09-29 Nick Clifton <nickc@redhat.com>
2247
2248 * function.c (current_function_name): If there is no current
2249 function just return "<none>".
2250
2251 2009-09-28 Sriraman Tallam <tmsriram@google.com>
2252
2253 * tree-pass.h (register_pass_info): New structure.
2254 (pass_positioning_ops): Move enum from gcc-plugin.h.
2255 (register_pass): New function.
2256 * gcc-plugin.h (plugin_pass): Delete structure.
2257 (pass_positioning_ops): Delete enum.
2258 * plugin.c (regsiter_pass): Delete function.
2259 (position_pass): Delete function.
2260 (added_pass_nodes): Delete variable.
2261 (prev_added_pass_nodes): Delete variable.
2262 (pass_list_node): Delete structure.
2263 * passes.c (make_pass_instance): New function.
2264 (next_pass_1): Change to call make_pass_instance.
2265 (pass_list_node): Move structure from gcc-plugin.h.
2266 (added_pass_nodes): Move variable from plugin.c.
2267 (prev_added_pass_nodes): Move variable from plugin.c.
2268 (position_pass): New function.
2269 (register_pass): New function.
2270
2271 2009-09-28 Easwaran Raman <eraman@google.com>
2272
2273 * ifcvt.c (noce_try_abs): Recognize pattern and call
2274 expand_one_cmpl_abs_nojump.
2275 * optabs.c (expand_one_cmpl_abs_nojump): New function.
2276 * optabs.h (expand_one_cmpl_abs_nojump): Declare.
2277
2278 2009-09-28 Ian Lance Taylor <iant@google.com>
2279
2280 PR middle-end/40500
2281 * c-opts.c (c_common_handle_option): Don't set
2282 warn_jump_misses_init for -Wall.
2283 * doc/invoke.texi (Warning Options): Update documentation.
2284
2285 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2286
2287 * Makefile.in ($(out_object_file)): Depend on
2288 gt-$(basename $(notdir $(out_file))).h.
2289
2290 2009-09-28 Richard Henderson <rth@redhat.com>
2291
2292 * except.h (struct eh_region_d): Add use_cxa_end_cleanup.
2293 * except.c (gen_eh_region): Set it.
2294 (duplicate_eh_regions_1): Copy it.
2295 * tree-eh.c (lower_resx): Use it to determine which function
2296 to call to resume.
2297
2298 * langhooks.h (struct lang_hooks): Add eh_use_cxa_end_cleanup.
2299 * langhooks-def.h (LANG_HOOKS_EH_USE_CXA_END_CLEANUP): New.
2300 * builtins.def (BUILT_IN_CXA_END_CLEANUP): New.
2301 * tree.c (build_common_builtin_nodes): Remove parameter. Build
2302 BUILT_IN_CXA_END_CLEANUP if necessary.
2303
2304 * c-common.c (c_define_builtins): Update call to
2305 build_common_builtin_nodes.
2306
2307 2009-09-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
2308
2309 * spu.c (get_branch_target): Return NULL for ASM_OPERANDS patterns.
2310
2311 2009-09-28 Michael Matz <matz@suse.de>
2312
2313 * builtins.c (interclass_mathfn_icode): New helper.
2314 (expand_builtin_interclass_mathfn): Use it here, and split folding
2315 into ...
2316 (fold_builtin_interclass_mathfn): ... this new folder.
2317 (build_call_nofold_loc): New static helper.
2318 (build_call_nofold): New wrapper macro for above.
2319 (expand_builtin_int_roundingfn): Use it instead of build_call_expr.
2320 (expand_builtin_pow): Ditto.
2321 (expand_builtin_memset_args): Ditto.
2322 (expand_builtin_printf): Ditto.
2323 (expand_builtin_fprintf): Ditto.
2324 (expand_builtin_sprintf): Ditto.
2325 (expand_builtin_memory_chk): Ditto.
2326 (expand_builtin_mempcpy_args): Ditto and don't call folders.
2327 (expand_builtin_stpcpy): Ditto.
2328 (expand_builtin_strcmp): Ditto.
2329 (expand_builtin_strncmp): Ditto.
2330 (expand_builtin_strcpy): Remove FNDECL and MODE arguments.
2331 (expand_builtin_strcpy_args): Don't call folders.
2332 (expand_builtin_memcmp): Ditto.
2333 (expand_builtin_strncpy): Ditto, and use target.
2334 (expand_builtin_memcpy): Ditto.
2335 (expand_builtin_strstr, expand_builtin_strchr, expand_builtin_strrchr,
2336 expand_builtin_strpbrk, expand_builtin_memmove,
2337 expand_builtin_memmove_args, expand_builtin_bcopy,
2338 expand_builtin_memchr, expand_builtin_strcat, expand_builtin_strncat,
2339 expand_builtin_strspn, expand_builtin_strcspn,
2340 expand_builtin_fputs): Remove these.
2341 (expand_builtin): Don't call the above, change calls to other
2342 expanders that changed prototype.
2343 (fold_builtin_stpcpy): New folder split out from expand_builtin_stpcpy.
2344 (fold_builtin_1 <ISFINITE, ISINF, ISNORMAL>): Call
2345 fold_builtin_interclass_mathfn.
2346 (fold_builtin_2 <STPCPY>): Call fold_builtin_stpcpy.
2347 (fold_builtin_strcat): Add folding split from expand_builtin_strcat.
2348
2349 * fold-const.c (fold_binary_loc <NE_EXPR>): Add !exp != 0 -> !exp.
2350 * passes.c (init_optimization_passes): Move pass_fold_builtins
2351 after last phiopt pass.
2352 * tree-inline.c (fold_marked_statements): When folding builtins
2353 iterate over all instruction potentially generated.
2354 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Declare
2355 earlier.
2356 (fold_gimple_call): Use it to always fold calls (into potentially
2357 multiple instructions).
2358 * tree-ssa-dom.c (optimize_stmt): Resolve __builtin_constant_p
2359 calls into zero at this time.
2360 * tree-ssa-propagate.c (substitute_and_fold): Ignore multiple
2361 statements generated by builtin folding.
2362
2363 2009-09-28 Nick Clifton <nickc@redhat.com>
2364
2365 * config/m32r/m32r.c (m32r_is_insn): Return false for debugging insns.
2366
2367 2009-09-28 Duncan Sands <baldrick@free.fr>
2368
2369 * gcc-plugin.h (PLUGIN_REGISTER_GGC_CACHES): New event.
2370 * plugin.c (plugin_event_name): Add PLUGIN_REGISTER_GGC_CACHES.
2371 (register_callback): Dispatch it.
2372 (invoke_plugin_callbacks): Incorporate in sanity check.
2373 * ggc.h (ggc_register_cache_tab): Add declaration.
2374 * ggc-common.c (ggc_register_root_tab): Simplify.
2375 (const_ggc_cache_tab_t): New typedef.
2376 (extra_cache_vec): New vector of dynamically added cache tables.
2377 (ggc_register_cache_tab): New function.
2378 (ggc_scan_cache_tab): New function.
2379 (ggc_mark_roots): Simplify dynamic roots. Handle dynamic caches.
2380 * doc/plugins.texi: Document PLUGIN_REGISTER_GGC_CACHES.
2381
2382 2009-09-27 Richard Henderson <rth@redhat.com>
2383
2384 * tree-ssa-ccp.c (optimize_stack_restore): Relax the conditions under
2385 which we remove __builtin_stack_restore.
2386
2387 2009-09-27 Bernd Schmidt <bernd.schmidt@analog.com>
2388
2389 * loop-iv.c (iv_analyze_op): Use function_invariant_p, not CONSTANT_P,
2390 to test for GRD_INVARIANT.
2391 (simple_rhs_p): Anything that's function_invariant_p is fine.
2392
2393 2009-09-27 Rafael Avila de Espindola <espindola@google.com>
2394
2395 * gengtype.c (main): Use plunge_files instead of plugin_output.
2396
2397 2009-09-27 Basile Starynkevitch <basile@starynkevitch.net>
2398 Rafael Avila de Espindola <espindola@google.com>
2399
2400 * gengtype.c (write_root, write_roots): Add a emit_pch argument.
2401 Don't print pch related info if it is false.
2402 (main): Don't print pch info in plugin mode.
2403
2404 2009-09-27 Eric Botcazou <ebotcazou@adacore.com>
2405
2406 * dwarf2out.c (enum dw_val_class): Replace dw_val_class_long_long
2407 with dw_val_class_const_double.
2408 (struct dw_val_struct): Replace val_long_long with val_double and
2409 adjust for above change.
2410 (output_loc_operands): Likewise.
2411 (add_AT_long_long): Rename into...
2412 (add_AT_double): ...this.
2413 (print_die): Replace dw_val_class_long_long with
2414 dw_val_class_const_double and adjust.
2415 (attr_checksum): Likewise.
2416 (same_dw_val_p): Likewise.
2417 (size_of_die): Likewise.
2418 (value_format): Likewise.
2419 (output_die): Likewise.
2420 (loc_descriptor) <CONST_DOUBLE>: Likewise.
2421 (add_const_value_attribute) <CONST_DOUBLE>: Call add_AT_double
2422 instead of add_AT_long_long.
2423 (add_bound_info) <INTEGER_CST>: Generate the bound as an unsigned
2424 value with the precision of its type.
2425
2426 2009-09-27 Andreas Schwab <schwab@linux-m68k.org>
2427
2428 PR c/41476
2429 * c-typeck.c (build_conditional_expr): Use the readonly and
2430 volatile flags of the operand types, not of the operands itself.
2431
2432 2009-09-27 Peter O'Gorman <pogma@thewrittenword.com>
2433
2434 * collect2.c (main): Look for -brtl before adding libraries.
2435
2436 2009-09-27 Jonathan Gray <jsg@openbsd.org>
2437
2438 * config.gcc: Update OpenBSD targets.
2439 * config/openbsd-stdint.h: New file.
2440 * config/openbsd-libpthread.h: New file.
2441 * config/openbsd.h: Update and break out LIB_SPEC definition.
2442 * config/alpha/openbsd.h: Overhaul to reflect ELF migration.
2443 * config/i386/openbsdelf.h: Correct types.
2444 * config/m68k/openbsd.h: Likewise.
2445 * config/mips/openbsd.h: Likewise.
2446 * config/vax/openbsd.h: Likewise.
2447
2448 2009-09-27 Eric Botcazou <ebotcazou@adacore.com>
2449
2450 * fold-const.c (maybe_lvalue_p): Return false for M(IN|AX)_EXPR.
2451 (extract_muldiv_1) <MINUS_EXPR>: Swap operands if necessary.
2452 * stor-layout.c (layout_type) <ARRAY_TYPE>: Do not take the maximum
2453 of the length and zero.
2454
2455 2009-09-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2456
2457 * Makefile.in (TOPLEV_H): Use $(INPUT_H) not input.h.
2458 (FLAGS_H): Add options.h $(REAL_H).
2459 (SEL_SCHED_IR_H): Add $(BITMAP_H) vecprim.h $(CFGLOOP_H).
2460 (TREE_VECTORIZER_H): New.
2461 (EBITMAP_H): Renamed from EBIMAP_H.
2462 (c-decl.o, c-objc-common.o, c-pretty-print.o, attribs.o, c-omp.o)
2463 (gtype-desc.o, ggc-common.o, ggc-page.o, ggc-zone.o, langhooks.o)
2464 (tree.o, tree-ssa-structalias.o, tree-ssa-ter.o, tree-ssanames.o)
2465 (tree-phinodes.o, tree-ssa-loop.o, tree-ssa-math-opts.o)
2466 (gimple-low.o, omp-low.o, sese.o, graphite-blocking.o)
2467 (graphite-clast-to-gimple.o, graphite-dependences.o)
2468 (graphite-interchange.o, graphite-poly.o, graphite-scop-detection.o)
2469 (graphite-sese-to-poly.o, tree-vect-loop.o, tree-vect-loop-manip.o)
2470 (tree-vect-patterns.o, tree-vect-slp.o, tree-vect-stmts.o)
2471 (tree-vect-data-refs.o, tree-vectorizer.o, gimple.o, tree-mudflap.o)
2472 (targhooks.o, stmt.o, emit-rtl.o, ipa.o, matrix-reorg.o, ipa-inline.o)
2473 (gcse.o, tree-ssa-ccp.o, df-byte-scan.o, vec.o, caller-save.o)
2474 (ira-build.o, ira-costs.o, ira-color.o, ira-emit.o, ira.o)
2475 (haifa-sched.o, sched-rgn.o, sel-sched.o, sel-sched-dump.o)
2476 (sel-sched-ir.o, final.o, $(out_object_file)): Dependencies
2477 updated and fixed as per above changes and per
2478 check_makefile_deps.sh output.
2479
2480 PR bootstrap/40928
2481 * configure.ac: Use $LIBS for '-ldl', not $LDFLAGS.
2482 * configure: Regenerate.
2483
2484 2009-09-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2485
2486 * doc/install.texi: Update minimum MPC version to 0.7.
2487
2488 2009-09-26 Gerald Pfeifer <gerald@pfeifer.com>
2489
2490 * doc/install.texi (Binaries): Remove reference to the binary
2491 distribution CD-ROM from the FSF.
2492
2493 2009-09-26 Michael Matz <matz@suse.de>
2494
2495 PR lto/40758
2496 PR middle-end/41470
2497 * tree-ssa-coalesce.c (coalesce_ssa_name): Add only SSA names
2498 that are mentioned in the body.
2499
2500 2009-09-26 Michael Matz <matz@suse.de>
2501
2502 PR tree-optimization/41454
2503 * tree-ssa-dom (stmts_to_rescan): Remove variable.
2504 (tree_ssa_dominator_optimize): Don't allocate and free it.
2505 (dom_opt_leave_block): Don't iterate over it.
2506 (eliminate_redundant_computations): Don't return a value.
2507 (cprop_operand, cprop_into_stmt): Ditto.
2508 (optimize_stmt): Don't defer updating stmts.
2509
2510 2009-09-25 Dodji Seketeli <dodji@redhat.com>
2511
2512 * dwarf2out.c (dwarf_tag_name, gen_generic_params_dies,
2513 generic_parameter_die, template_parameter_pack_die,
2514 gen_formal_parameter_die, gen_subprogram_die): Adjust after
2515 renaming DW_TAG_formal_parameter_pack and
2516 DW_TAG_template_parameter_pack into DW_TAG_GNU_formal_parameter_pack
2517 and DW_TAG_GNU_template_parameter_pack.
2518
2519 2009-09-25 Anatoly Sokolov <aesok@post.ru>
2520
2521 * config/v850/v850.h (FUNCTION_VALUE): Remove.
2522 * config/v850/v850.c (v850_function_value): New function.
2523 (TARGET_FUNCTION_VALUE): Define.
2524
2525 2009-09-25 Jakub Jelinek <jakub@redhat.com>
2526
2527 * tree-vect-stmts.c (vectorizable_call): Call
2528 mark_symbols_for_renaming after vect_finish_stmt_generation.
2529
2530 * dwarf2out.c (tls_mem_loc_descriptor): Pass 1 instead of 2
2531 to loc_descriptor_from_tree.
2532 (add_location_or_const_value_attribute): Pass 0 instead of 2
2533 for decl_by_reference_p decls.
2534
2535 2009-09-25 Richard Guenther <rguenther@suse.de>
2536
2537 PR middle-end/41463
2538 * tree-dfa.c (get_ref_base_and_extent): Fix issue with trailing
2539 arrays again.
2540
2541 2009-09-25 Ben Elliston <bje@au.ibm.com>
2542
2543 * doc/invoke.texi (RS/6000 and PowerPC Options): Add missing comma
2544 after `power7'.
2545
2546 2009-09-25 Alan Modra <amodra@bigpond.net.au>
2547
2548 * config/rs6000/rs6000.md (load_toc_v4_PIC_3c): Correct POWER
2549 form of instruction.
2550
2551 2009-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2552
2553 PR middle-end/41435
2554 * fold-const.c (const_binop): Handle complex int division.
2555 * tree-complex.c (expand_complex_div_straight,
2556 expand_complex_div_wide): Update comments.
2557
2558 2009-09-24 DJ Delorie <dj@redhat.com>
2559
2560 PR target/41456
2561 * config/m32c/m32c.h (REG_CLASS_CONTENTS): Add R13.
2562 (reg_class): Likewise.
2563 (REG_CLASS_NAMES): Likewise.
2564 * config/m32c/m32c.c (m32c_reg_class_from_constraint): Likewise.
2565 (m32c_override_options): Disable -fivopts for M32C.
2566
2567 2009-09-24 Michael Meissner <meissner@linux.vnet.ibm.com>
2568
2569 * config/rs6000/predicates.md (indexed_or_indirect_operand):
2570 Delete VSX load/store with update support.
2571 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Ditto.
2572 * config/rs6000/vsx.md (vsx_mov<mode>): Ditto.
2573 (vsx_movti): Ditto.
2574 (VSX_U): Delete.
2575 (VSbit): Ditto.
2576 (VStype_load_update): Ditto.
2577 (VStype_store_update): Ditto.
2578 (vsx_load<VSX_U:mode>_update_<P:mptrsize>): Ditto.
2579 (vsx_store<VSX_U:mode>_update_<P:mptrsize>): Ditto.
2580
2581 * config/rs6000/rs6000.h (enum rs6000_builtins): Delete VSX
2582 load/store with update builtins.
2583
2584 2009-09-24 Kai Tietz <kai.tietz@onevision.com>
2585
2586 * libgcc2.c (L_trampoline): Prototype for getpagesize
2587 and mprotect in WINNT case.
2588
2589 2009-09-24 Anatoly Sokolov <aesok@post.ru>
2590
2591 * config/rs6000/rs6000.h (FUNCTION_VALUE): Remove macro.
2592 * config/rs6000/rs6000-protos.h (rs6000_function_value): Remove.
2593 * config/rs6000/rs6000.c (rs6000_function_value): Make static, add
2594 'outgoing' argument.
2595 (TARGET_FUNCTION_VALUE): Define.
2596
2597 2009-09-24 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
2598
2599 * config/darwin.h (DWARF2_DEBUGGING_INFO): Define as 1.
2600
2601 2009-09-24 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
2602
2603 PR bootstrap/41405
2604 * common.opt: Initialize dwarf_strict to -1.
2605 * toplev.c (process_options): Catch unset dwarf_strict
2606 and set to 0 for all targets not overriding.
2607 * config/darwin.c (darwin_override_options): Catch unset
2608 dwarf_strict and override to 1.
2609
2610 2009-09-24 Jeff Law <law@redhat.com>
2611
2612 * tree-into-ssa.c (rewrite_into_ssa): Free interesting_blocks.
2613
2614 2009-09-24 Richard Guenther <rguenther@suse.de>
2615
2616 PR tree-optimization/36143
2617 PR tree-optimization/38747
2618 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Only
2619 create VIEW_CONVERT_EXPRs for TBAA compatible accesses.
2620
2621 2009-09-24 Jakub Jelinek <jakub@redhat.com>
2622
2623 PR bootstrap/41457
2624 * dwarf2out.c (add_const_value_attribute): For HIGH and CONST_FIXED,
2625 return false instead of gcc_unreachable (). For CONST return the
2626 value returned by recursive call instead of always returning true.
2627 (tree_add_const_value_attribute): Return the value returned by
2628 add_const_value_attribute instead of always returning true if rtl
2629 is non-NULL.
2630
2631 2009-09-23 Justin Seyster <jrseys@gmail.com>
2632
2633 * Makefile.in (PLUGIN_HEADERS): Include real.h.
2634
2635 2009-09-24 Jakub Jelinek <jakub@redhat.com>
2636
2637 * cgraphunit.c (cgraph_lower_function): Revert last change.
2638 * targhooks.c (default_static_chain): Use !DECL_STATIC_CHAIN
2639 instead of DECL_NO_STATIC_CHAIN.
2640 * tree-cfg.c (verify_gimple_call): Likewise.
2641 * tree-nested.c (get_chain_decl, get_chain_field,
2642 convert_tramp_reference_op, convert_gimple_call): Likewise.
2643 (convert_all_function_calls): Likewise. Always set or clear
2644 DECL_STATIC_CHAIN initially, for !n->outer clear it.
2645 (lower_nested_functions): Remove DECL_NO_STATIC_CHAIN checking code.
2646 * c-parser.c (c_parser_declaration_or_fndef): Set DECL_STATIC_CHAIN
2647 if nested.
2648 * print-tree.c (print_node): Handle DECL_STATIC_CHAIN instead of
2649 DECL_NO_STATIC_CHAIN.
2650 * config/i386/i386.c (ix86_static_chain): Use !DECL_STATIC_CHAIN
2651 instead of DECL_NO_STATIC_CHAIN.
2652 (ix86_function_regparm, find_drap_reg): Likewise. Don't test
2653 decl_function_context.
2654 * varasm.c (initializer_constant_valid_p): Likewise.
2655 * tree.h (DECL_NO_STATIC_CHAIN): Renamed to ...
2656 (DECL_STATIC_CHAIN): ... this.
2657 * config/moxie/moxie.c (moxie_static_chain): Use !DECL_STATIC_CHAIN
2658 instead of DECL_NO_STATIC_CHAIN.
2659
2660 2009-09-23 Basile Starynkevitch <basile@starynkevitch.net>
2661 Rafael Avila de Espindola <espindola@google.com>
2662
2663 * gengtype.c (nb_plugin_files): Make it unsigned to match
2664 num_gt_files. Adjust other variables to avoid warnings.
2665 (main): Allocate an all zero lang_bitmap before each plugin file name
2666 to match regular file names.
2667
2668 2009-09-23 Richard Henderson <rth@redhat.com>
2669
2670 * doc/tm.texi (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
2671 (TARGET_STATIC_CHAIN): Mention that this hook must be used for
2672 static chain passed in memory.
2673 * system.h (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Poison.
2674 * targhooks.c (default_static_chain): Don't handle STATIC_CHAIN,
2675 STATIC_CHAIN_INCOMING. Issue a sorry if there's no
2676 STATIC_CHAIN_REGNUM defined.
2677
2678 * config/picochip/picochip-protos.h: s/class/klass/.
2679 * config/picochip/picochip.c (TARGET_STATIC_CHAIN): New.
2680 (picochip_static_chain): New.
2681 * config/picochip/picochip.h (STATIC_CHAIN): Remove.
2682 (STATIC_CHAIN_INCOMING): Remove.
2683
2684 * config/xtensa/xtensa.c (TARGET_STATIC_CHAIN): New.
2685 (xtensa_static_chain): New.
2686 * config/xtensa/xtensa.h (STATIC_CHAIN): Remove.
2687 (STATIC_CHAIN_INCOMING): Remove.
2688
2689 2009-09-23 Anatoly Sokolov <aesok@post.ru>
2690
2691 * config/pa/pa.h (FUNCTION_VALUE): Remove macro.
2692 * config/pa/pa-protos.h (function_value): Remove.
2693 * config/pa/pa.c (pa_function_value): Rename from function_value.
2694 Make static, add 'outgoing' argument.
2695 (TARGET_FUNCTION_VALUE): Define.
2696
2697 2009-09-23 Anatoly Sokolov <aesok@post.ru>
2698
2699 * config/avr/avr.c (avr_regs_to_save): Use current_function_is_leaf
2700 instead of cfun->machine->is_leaf.
2701 * config/avr/avr.h (machine_function): Remove is_leaf field.
2702
2703 2009-09-23 Jakub Jelinek <jakub@redhat.com>
2704
2705 PR debug/41439
2706 * dwarf2out.c (address_of_int_loc_descriptor): Don't emit
2707 DW_OP_piece after DW_OP_stack_value, adjust size calculations
2708 for it, when DW_OP_stack_value and DW_OP_implicit_value has
2709 the same size, prefer DW_OP_stack_value.
2710 (loc_descriptor, loc_list_for_address_of_addr_expr_of_indirect_ref,
2711 loc_list_from_tree): Don't emit DW_OP_piece after DW_OP_stack_value.
2712
2713 2009-09-23 Alexandre Oliva <aoliva@redhat.com>
2714
2715 PR debug/41353
2716 * var-tracking.c (add_with_sets): Sort MO_VAL_LOC last among uses.
2717
2718 2009-09-23 Alexandre Oliva <aoliva@redhat.com>
2719
2720 PR debug/41248
2721 * cfgexpand.c (convert_debug_memory_address): New.
2722 (expand_debug_expr): Convert base address and offset to the same
2723 mode. Use it to convert addresses to other modes. Accept
2724 ptr_mode addresses.
2725
2726 2009-09-23 Richard Guenther <rguenther@suse.de>
2727
2728 * alias.c (ao_ref_from_mem): Correct for negative MEM_OFFSET
2729 produced for bigendian targets with promoted subregs.
2730
2731 2009-09-23 Richard Guenther <rguenther@suse.de>
2732
2733 * value-prof.c (gimple_ic): Purge old EH edges only after building
2734 the new ones.
2735
2736 2009-09-23 Nick Clifton <nickc@redhat.com>
2737
2738 * config/arc/arc.c (arc_trampoline_init): Fix typo.
2739
2740 2009-09-23 Jakub Jelinek <jakub@redhat.com>
2741
2742 PR bootstrap/41405
2743 * doc/invoke.texi: Document -gstrict-dwarf and -gno-strict-dwarf.
2744
2745 PR bootstrap/41436
2746 * cgraphunit.c (cgraph_lower_function): Set DECL_NO_STATIC_CHAIN
2747 on non-nested functions.
2748
2749 2009-09-23 Jakub Jelinek <jakub@redhat.com>
2750 Jan Hubicka <jh@suse.cz>
2751
2752 * dwarf2out.c (loc_list_plus_const): Only define if
2753 DWARF2_DEBUGGING_INFO.
2754 (address_of_int_loc_descriptor): Likewise.
2755
2756 PR debug/41411
2757 * dwarf2out.c (mem_loc_descriptor): Handle HIGH.
2758
2759 2009-09-23 Uros Bizjak <ubizjak@gmail.com>
2760
2761 PR c/39779
2762 * c-typeck.c (build_binary_op) <short_shift>: Check that integer
2763 constant is more than zero.
2764
2765 2009-09-23 Alan Modra <amodra@bigpond.net.au>
2766
2767 PR target/40473
2768 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
2769 call final to emit non-scheduled prologue, instead insert at entry.
2770
2771 2009-09-22 Loren J. Rittle <ljrittle@acm.org>
2772 Joseph S. Myers <joseph@codesourcery.com>
2773
2774 * doc/install.texi (*-*-freebsd*): Add proper format codes.
2775
2776 2009-09-22 Basile Starynkevitch <basile@starynkevitch.net>
2777 Rafael Avila de Espindola <espindola@google.com>
2778
2779 * gengtype.c (is_file_equal): New function.
2780 (close_output_files): Use is_file_equal. Free of->buf.
2781
2782 2009-09-22 Basile Starynkevitch <basile@starynkevitch.net>
2783 Rafael Avila de Espindola <espindola@google.com>
2784
2785 * gengtype.c (write_types, write_local): Add the output_header
2786 argument. Update all callers.
2787
2788 2009-09-22 Dodji Seketeli <dodji@redhat.com>
2789
2790 * dwarf2out.c (template_parameter_pack_die,
2791 gen_formal_parameter_pack_die ): New functions.
2792 (make_ith_pack_parameter_name): Remove this function.
2793 (dwarf_tag_name): Support printing DW_TAG_template_parameter_pack and
2794 DW_TAG_formal_parameter_pack.
2795 (gen_generic_params_dies): Represent each template parameter pack
2796 by a DW_TAG_template_parameter_pack DIE. Argument pack elements are
2797 represented by usual DW_TAG_template_*_parameter DIEs that are
2798 children of the DW_TAG_template_parameter_pack element DIE.
2799 (generic_parameter_die): This doesn't deal with parameter pack
2800 names anymore. Don't generate DW_AT_name for some DIEs, e.g. children
2801 of parameter pack DIEs.
2802 (gen_formal_parameter_die): Add a flag to not emit DW_AT_name
2803 in certain cases, e.g. for pack elements.
2804 (gen_formal_types_die, gen_decl_die): Adjust usage of
2805 gen_formal_parameter_die.
2806 (gen_subprogram_die): Represent each function parameter pack by a
2807 DW_TAG_formal_parameter_pack DIE. Arguments of of the pack are
2808 represented by usual DW_TAG_formal_parameter DIEs that are children
2809 of the DW_TAG_formal_parameter_pack DIE. Remove references to
2810 ____builtin_va_alist decls as no part of the compiler uses those
2811 anymore.
2812 * langhooks.h (struct lang_hooks_for_decls): Add
2813 function_parm_expanded_from_pack_p, get_generic_function_decl
2814 and function_parameter_pack_p hooks. Fix comment for
2815 get_innermost_generic_parms hook.
2816 * langhooks-def.h (LANG_HOOKS_FUNCTION_PARAMETER_PACK_P,
2817 LANG_HOOKS_FUNCTION_PARM_EXPANDED_FROM_PACK_P ): Declare new hook
2818 macros and use them to initialize lang_hook.
2819
2820 2009-09-22 Richard Henderson <rth@redhat.com>
2821
2822 * system.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE): Poison.
2823 (TRAMPOLINE_ADJUST_ADDRESS): Poison.
2824 * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): Don't conditionalize
2825 on TRAMPOLINE_TEMPLATE.
2826 (TARGET_TRAMPOLINE_ADJUST_ADDRESS): Don't conditionalize on
2827 TRAMPOLINE_ADJUST_ADDRESS.
2828 * targhooks.c (default_asm_trampoline_template): Remove.
2829 (default_trampoline_adjust_address): Remove.
2830 (default_trampoline_init): Don't handle INITIALIZE_TRAMPOLINE.
2831 * targhooks.h: Update decls.
2832
2833 2009-09-22 Dave Korn <dave.korn.cygwin@gmail.com>
2834
2835 * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Enable.
2836 * config/i386/cygwin.h (LIBGCJ_SONAME): Define.
2837 * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
2838
2839 2009-09-22 Alexandre Oliva <aoliva@redhat.com>
2840
2841 PR debug/41295
2842 * reload1.c (reload): Reset debug insns with pseudos without
2843 equivalences.
2844
2845 2009-09-22 Janis Johnson <janis187@us.ibm.com>
2846
2847 * config/i386/i386.c (ix86_scalar_mode_supported_p): Don't return
2848 unconditional true for decimal float modes.
2849 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Ditto.
2850 * config/s390/s390.c (s390_scalar_mode_supported_p): Ditto.
2851
2852 2009-09-22 Loren J. Rittle <ljrittle@acm.org>
2853
2854 * unwind-dw2-fde-glibc.c: Define and use USE_PT_GNU_EH_FRAME.
2855 Enable a new case for __FreeBSD__ >= 7.
2856 * crtstuff.c: Define USE_PT_GNU_EH_FRAME for __FreeBSD__ >= 7.
2857 * config/t-freebsd: Define LIB2ADDEH and LIB2ADDEHDEP.
2858 * config/freebsd-spec.h: Conditionally define LINK_EH_SPEC
2859 and USE_LD_AS_NEEDED.
2860
2861 * doc/install.texi (*-*-freebsd*): Update target information.
2862
2863 2009-09-22 Richard Guenther <rguenther@suse.de>
2864
2865 PR middle-end/41395
2866 * tree-dfa.c (get_ref_base_and_extent): Handle trailing
2867 arrays really properly.
2868
2869 2009-09-22 Richard Henderson <rth@redhat.com>
2870
2871 PR target/41246
2872 * target.h (struct gcc_target): Add asm_out.trampoline_template,
2873 calls.static_chain, calls.trampoline_init,
2874 calls.trampoline_adjust_address.
2875 * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
2876 (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New.
2877 (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
2878 * builtins.c (expand_builtin_setjmp_receiver): Use
2879 targetm.calls.static_chain; only clobber registers.
2880 (expand_builtin_init_trampoline): Use targetm.calls.trampoline_init;
2881 set up memory attributes properly for the trampoline block.
2882 (expand_builtin_adjust_trampoline): Use
2883 targetm.calls.trampoline_adjust_address.
2884 * calls.c (prepare_call_address): Add fndecl argument. Use
2885 targetm.calls.static_chain.
2886 * df-scan.c (df_need_static_chain_reg): Remove.
2887 (df_get_entry_block_def_set): Use targetm.calls.static_chain;
2888 consolodate static chain handling.
2889 * doc/tm.texi: Document new hooks.
2890 * emit-rtl.c (static_chain_rtx, static_chain_incoming_rtx): Remove.
2891 (init_emit_regs): Don't initialize them.
2892 * expr.h (prepare_call_address): Update decl.
2893 * final.c (profile_function): Use targetm.calls.static_chain.
2894 * function.c (expand_function_start): Likewise.
2895 * rtl.h (static_chain_rtx, static_chain_incoming_rtx): Remove.
2896 * stmt.c (expand_nl_goto_receiver): Use targetm.calls.static_chain;
2897 only clobber registers.
2898 * targhooks.c (default_static_chain): New.
2899 (default_asm_trampoline_template, default_trampoline_init): New.
2900 (default_trampoline_adjust_address): New.
2901 * targhooks.h: Declare them.
2902 * varasm.c (assemble_trampoline_template): Use
2903 targetm.asm_out.trampoline_template. Make the memory block const
2904 and set its size.
2905
2906 * config/alpha/alpha.c (alpha_trampoline_init): Rename from
2907 alpha_initialize_trampoline. Make static. Merge VMS parameter
2908 differences into the TARGET_ABI_OPEN_VMS code block.
2909 (TARGET_TRAMPOLINE_INIT): New.
2910 * config/alpha/alpha.h (TRAMPOLINE_TEMPLATE): Remove.
2911 (TRAMPOLINE_SECTION, INITIALIZE_TRAMPOLINE): Remove.
2912 * config/alpha/vms.h (TRAMPOLINE_SIZE, TRAMPOLINE_ALIGNMENT): Remove.
2913 (INITIALIZE_TRAMPOLINE): Remove.
2914
2915 * config/arc/arc.h (TRAMPOLINE_ALIGNMENT): New.
2916 (TRAMPOLINE_TEMPLATE): Merge with ...
2917 (INITIALIZE_TRAMPOLINE): ... this and move ...
2918 * config/arc/arc.c (arc_trampoline_init): ... here.
2919 (TARGET_TRAMPOLINE_INIT): New.
2920
2921 * config/arm/arm.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
2922 (TARGET_TRAMPOLINE_INIT, TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
2923 (arm_asm_trampoline_template): New.
2924 (arm_trampoline_init, arm_trampoline_adjust_address): New.
2925 * config/arm/arm.h (TRAMPOLINE_TEMPLATE, ARM_TRAMPOLINE_TEMPLATE,
2926 THUMB2_TRAMPOLINE_TEMPLATE, THUMB1_TRAMPOLINE_TEMPLATE): Move all
2927 code to arm_asm_trampoline_template.
2928 (TRAMPOLINE_ADJUST_ADDRESS): Move code to
2929 arm_trampoline_adjust_address.
2930 (INITIALIZE_TRAMPOLINE): Move code to arm_trampoline_init;
2931 adjust for target hook parameters.
2932
2933 * config/avr/avr.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE):
2934 Remove.
2935
2936 * config/bfin/bfin-protos.h (initialize_trampoline): Remove.
2937 * config/bfin/bfin.c (bfin_asm_trampoline_template): New.
2938 (bfin_trampoline_init): Rename from initialize_trampoline;
2939 make static; update for target hook parameters.
2940 (TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New.
2941 * config/bfin/bfin.h (TRAMPOLINE_TEMPLATE): Move code to
2942 bfin_asm_trampoline_template.
2943 (INITIALIZE_TRAMPOLINE): Remove.
2944
2945 * config/cris/cris.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
2946 TARGET_TRAMPOLINE_INIT, cris_asm_trampoline_template,
2947 cris_trampoline_init): New.
2948 * config/cris/cris.h (TRAMPOLINE_TEMPLATE): Move code to
2949 cris_asm_trampoline_template.
2950 (INITIALIZE_TRAMPOLINE): Move code to cris_trampoline_init;
2951 adjust for target hook parameters.
2952
2953 * config/crx/crx.h (INITIALIZE_TRAMPOLINE): Remove.
2954
2955 * config/fr30/fr30.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
2956 TARGET_TRAMPOLINE_INIT, fr30_asm_trampoline_template,
2957 fr30_trampoline_init): New.
2958 * config/fr30/fr30.h (TRAMPOLINE_TEMPLATE): Move code to
2959 fr30_asm_trampoline_template.
2960 (INITIALIZE_TRAMPOLINE): Move code to fr30_trampoline_init;
2961 adjust for target hook parameters.
2962
2963 * config/frv/frv.c (TARGET_TRAMPOLINE_INIT): New.
2964 (frv_trampoline_init): Rename from frv_initialize_trampoline;
2965 make static, adjust arguments for TARGET_TRAMPOLINE_INIT hook.
2966 * config/frv/frv.h (INITIALIZE_TRAMPOLINE): Remove.
2967 * config/frv/frv-protos.h (frv_initialize_trampoline): Remove.
2968
2969 * config/h8300/h8300.c (h8300_trampoline_init): New.
2970 (TARGET_TRAMPOLINE_INIT): New.
2971 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Move code
2972 to h8300_trampoline_init and adjust for hook parameters.
2973
2974 * config/ia64/ia64-protos.h (ia64_initialize_trampoline): Remove.
2975 * config/ia64/ia64.c (TARGET_TRAMPOLINE_INIT): New.
2976 (ia64_trampoline_init): Rename from ia64_initialize_trampoline;
2977 make static; adjust for hook parameters.
2978 * config/ia64/ia64.h (INITIALIZE_TRAMPOLINE): Remove.
2979
2980 * config/iq2000/iq2000.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
2981 (TARGET_TRAMPOLINE_INIT): New.
2982 (iq2000_asm_trampoline_template, iq2000_trampoline_init): New.
2983 * config/iq2000/iq2000.h (TRAMPOLINE_TEMPLATE): Move code to
2984 iq2000_asm_trampoline_template.
2985 (INITIALIZE_TRAMPOLINE): Move code to iq2000_trampoline_init.
2986 (TRAMPOLINE_CODE_SIZE): New.
2987 (TRAMPOLINE_SIZE): Use it.
2988 (TRAMPOLINE_ALIGNMENT): Follow Pmode.
2989
2990 * config/m32c/m32c-protos.h (m32c_initialize_trampoline): Remove.
2991 * config/m32c/m32c.c (TARGET_TRAMPOLINE_INIT): New.
2992 (m32c_trampoline_init): Rename from m32c_initialize_trampoline;
2993 adjust for hook parameters.
2994 * config/m32c/m32c.h (INITIALIZE_TRAMPOLINE): Remove.
2995
2996 * config/m32r/m32r.c (TARGET_TRAMPOLINE_INIT): New.
2997 (m32r_trampoline_init): New.
2998 * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Move code to
2999 m32r_trampoline_init.
3000
3001 * config/m68hc11/m68hc11.c (TARGET_TRAMPOLINE_INIT): New.
3002 (m68hc11_trampoline_init): Rename from m68hc11_initialize_trampoline;
3003 make static; update for hook parameters.
3004 * config/m68hc11/m68hc11-protos.h: Update.
3005 * config/m68hc11/m68hc11.h (INITIALIZE_TRAMPOLINE): Remove.
3006
3007 * config/mcore/mcore.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
3008 (TARGET_TRAMPOLINE_INIT): New.
3009 (mcore_function_value): Fix typo.
3010 (mcore_asm_trampoline_template, mcore_trampoline_init): New.
3011 * config/mcore/mcore.h (TRAMPOLINE_TEMPLATE): Move code
3012 to mcore_asm_trampoline_template.
3013 (INITIALIZE_TRAMPOLINE): Move code to mcore_trampoline_init.
3014
3015 * config/mep/mep.h (INITIALIZE_TRAMPOLINE): Remove.
3016 * config/mep/mep.c (TARGET_TRAMPOLINE_INIT): New.
3017 (mep_trampoline_init): Rename from mep_init_trampoline; make static;
3018 update for hook parameters.
3019 * config/mep/mep-protos.h (mep_init_trampoline): Remove.
3020
3021 * config/mips/mips.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
3022 mips_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
3023 mips_trampoline_init): New.
3024 * config/mips/mips.h (TRAMPOLINE_TEMPLATE): Move code to
3025 mips_asm_trampoline_template.
3026 (INITIALIZE_TRAMPOLINE): Move code to mips_trampoline_init;
3027 update for hook parameters.
3028
3029 * gcc/config/mmix/mmix.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
3030 (TARGET_TRAMPOLINE_INIT): New.
3031 (mmix_trampoline_size): Remove.
3032 (mmix_asm_trampoline_template): Rename from mmix_trampoline_template;
3033 make static. Remove out-of-date tetra vs octa comment.
3034 (mmix_trampoline_init): Rename from mmix_initialize_trampoline;
3035 make static; update for hook parameters.
3036 * config/mmix/mmix.h (TRAMPOLINE_TEMPLATE): Remove.
3037 (INITIALIZE_TRAMPOLINE): Remove.
3038 (TRAMPOLINE_SIZE): Use a constant instead of mmix_trampoline_size.
3039 (TRAMPOLINE_ALIGNMENT): New.
3040 * gcc/config/mmix/mmix-protos.h: Update.
3041
3042 * config/mn10300/mn10300.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
3043 mn10300_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
3044 mn10300_trampoline_init): New.
3045 * config/mn10300/mn10300.h (TRAMPOLINE_TEMPLATE): Move code to
3046 mn10300_asm_trampoline_template.
3047 (INITIALIZE_TRAMPOLINE): Move code to mn10300_trampoline_init.
3048
3049 * config/moxie/moxie.c (moxie_static_chain,
3050 moxie_asm_trampoline_template, moxie_trampoline_init,
3051 TARGET_STATIC_CHAIN, TARGET_ASM_TRAMPOLINE_TEMPLATE,
3052 TARGET_TRAMPOLINE_INIT): New.
3053 * config/moxie/moxie.h (INITIALIZE_TRAMPOLINE): Move code to
3054 moxie_trampoline_init.
3055 (TRAMPOLINE_TEMPLATE): Move code to moxie_asm_trampoline_template.
3056 (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
3057
3058 * gcc/config/pa/pa.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
3059 pa_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
3060 pa_trampoline_init, TARGET_TRAMPOLINE_ADJUST_ADDRESS,
3061 pa_trampoline_adjust_address): New.
3062 * config/pa/pa.h (TRAMPOLINE_TEMPLATE): Move code to
3063 pa_asm_trampoline_template.
3064 (TRAMPOLINE_ALIGNMENT): New.
3065 (TRAMPOLINE_CODE_SIZE): Move to pa.c.
3066 (INITIALIZE_TRAMPOLINE): Move code to pa_trampoline_init;
3067 adjust for hook parameters.
3068 (TRAMPOLINE_ADJUST_ADDRESS): Move code to pa_trampoline_adjust_address.
3069
3070 * config/pdp11/pdp11.c (pdp11_trampoline_init): New.
3071 (TARGET_TRAMPOLINE_INIT): New.
3072 * config/pdp11/pdp11.h (TRAMPOLINE_TEMPLATE): Remove.
3073 (INITIALIZE_TRAMPOLINE): Move code to pdp11_trampoline_init.
3074
3075 * config/picochip/picochip.h (INITIALIZE_TRAMPOLINE): Remove.
3076
3077 * config/rs6000/rs6000-protos.h (rs6000_initialize_trampoline): Remove.
3078 * config/rs6000/rs6000.c (TARGET_TRAMPOLINE_INIT): New.
3079 (rs6000_trampoline_init): Rename from rs6000_initialize_trampoline;
3080 make static; adjust parameters for the hook.
3081 * config/rs6000/rs6000.h (INITIALIZE_TRAMPOLINE): Remove.
3082
3083 * config/s390/s390.c (s390_asm_trampoline_template): Rename from
3084 s390_trampoline_template; make static.
3085 (s390_trampoline_init): Rename from s390_initialize_trampoline;
3086 make static; adjust for target hook.
3087 (TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New.
3088 * config/s390/s390-protos.h: Remove trampoline decls.
3089 * config/s390/s390.h (INITIALIZE_TRAMPOLINE): Remove.
3090 (TRAMPOLINE_TEMPLATE): Remove.
3091 (TRAMPOLINE_ALIGNMENT): New.
3092
3093 * config/score/score-protos.h (score_initialize_trampoline): Remove.
3094 * config/score/score.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
3095 (TARGET_TRAMPOLINE_INIT): New.
3096 (score_asm_trampoline_template): New.
3097 (score_trampoline_init): Rename from score_initialize_trampoline;
3098 make static; adjust for hook parameters.
3099 * config/score/score.h (TRAMPOLINE_TEMPLATE): Move code to
3100 score[37]_asm_trampoline_template.
3101 (INITIALIZE_TRAMPOLINE): Remove.
3102 * config/score/score3.c (score3_asm_trampoline_template): New.
3103 (score3_trampoline_init): Rename from score3_initialize_trampoline;
3104 adjust for target hook.
3105 * config/score/score7.c (score7_asm_trampoline_template): New.
3106 (score7_trampoline_init): Rename from score7_initialize_trampoline;
3107 adjust for target hook.
3108 * config/score/score3.h, config/score/score7.h: Update.
3109
3110 * config/sh/sh-protos.h (sh_initialize_trampoline): Remove.
3111 * config/sh/sh.c (TARGET_TRAMPOLINE_INIT): New.
3112 (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
3113 (sh_trampoline_init): Rename from sh_initialize_trampoline;
3114 make static; adjust for target hook parameters.
3115 (sh_trampoline_adjust_address): New.
3116 * config/sh/sh.h (INITIALIZE_TRAMPOLINE): New.
3117 (TRAMPOLINE_ADJUST_ADDRESS): Move code to sh_trampoline_adjust_address.
3118
3119 * config/sparc/sparc.c (TARGET_TRAMPOLINE_INIT): New.
3120 (sparc32_initialize_trampoline): Rename from
3121 sparc_initialize_trampoline; make static; replace tramp parameter
3122 with m_tramp and update memory accesses.
3123 (sparc64_initialize_trampoline): Similarly.
3124 (sparc_trampoline_init): New.
3125 * config/sparc/sparc-protos.h: Remove trampoline decls.
3126 * config/sparc/sparc.h (INITIALIZE_TRAMPOLINE): Remove.
3127 * config/sparc/sparc.md (nonlocal_goto): Don't use static_chain_rtx.
3128
3129 * config/spu/spu.c (TARGET_TRAMPOLINE_INIT): New.
3130 (array_to_constant): Make ARR parameter const.
3131 (spu_trampoline_init): Rename from spu_initialize_trampoline;
3132 make static; update for hook parameters.
3133 * config/spu/spu-protos.h: Update decls.
3134 * config/spu/spu.h (INITIALIZE_TRAMPOLINE): Remove.
3135
3136 * config/stormy16/stormy16.c (xstormy16_trampoline_init): Rename
3137 from xstormy16_initialize_trampoline; make static; update for
3138 hook parameters.
3139 (TARGET_TRAMPOLINE_INIT): New.
3140 * config/stormy16/stormy16.h (INITIALIZE_TRAMPOLINE): Remove.
3141
3142 * config/v850/v850.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
3143 (TARGET_TRAMPOLINE_INIT): New.
3144 (v850_can_eliminate): Make static.
3145 (v850_asm_trampoline_template, v850_trampoline_init): New.
3146 * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Move code to
3147 v850_asm_trampoline_template.
3148 (INITIALIZE_TRAMPOLINE): Move code to v850_trampoline_init
3149 and adjust for target hook parameters.
3150
3151 * config/vax/vax.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
3152 (TARGET_TRAMPOLINE_INIT): New.
3153 (vax_asm_trampoline_template, vax_trampoline_init): New.
3154 * config/vax/vax.h (TRAMPOLINE_TEMPLATE): Move code to
3155 vax_asm_trampoline_template.
3156 (INITIALIZE_TRAMPOLINE): Move code to vax_trampoline_init.
3157
3158 * config/xtensa/xtensa.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
3159 (TARGET_TRAMPOLINE_INIT): New.
3160 (xtensa_asm_trampoline_template): Rename from
3161 xtensa_trampoline_template; make static.
3162 (xtensa_trampoline_init): Rename from xtensa_initialize_trampoline;
3163 make static; update for hook parameters.
3164 * config/xtensa/xtensa-protos.h: Remove trampoline decls.
3165 * config/xtensa/xtensa.h (TRAMPOLINE_TEMPLATE): Remove.
3166 (INITIALIZE_TRAMPOLINE): Remove.
3167
3168 * config/i386/i386.c (ix86_function_regparm): Do not issue an
3169 error for nested functions with regparm=3.
3170 (ix86_compute_frame_layout): Adjust frame pointer offset for
3171 ix86_static_chain_on_stack.
3172 (ix86_expand_prologue): Handle ix86_static_chain_on_stack.
3173 (ix86_emit_restore_reg_using_pop): Increment ix86_cfa_state->offset,
3174 don't reset to UNITS_PER_WORD.
3175 (ix86_emit_leave): Adjust ix86_cfa_state.
3176 (ix86_expand_epilogue): Handle ix86_static_chain_on_stack.
3177 (ix86_static_chain): New.
3178 (ix86_trampoline_init): Rename from x86_initialize_trampoline;
3179 make static; update for target hook parameters; use ix86_static_chain.
3180 (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New.
3181 * config/i386/i386.h (STATIC_CHAIN_REGNUM): Remove.
3182 (INITIALIZE_TRAMPOLINE): Remove.
3183 (TRAMPOLINE_SIZE): Use 24 for 64-bit.
3184 (struct machine_function): Use BOOL_BITFIELD; rearrange bitfields
3185 to the end. Add static_chain_on_stack.
3186 (ix86_static_chain_on_stack): New.
3187
3188 * config/m68k/m68k.c (TARGET_TRAMPOLINE_INIT): New.
3189 (m68k_output_mi_thunk): Don't use static_chain_rtx.
3190 (m68k_trampoline_init): New.
3191 * config/m68k/m68k.h (INITIALIZE_TRAMPOLINE): Move code to
3192 m68k_trampoline_init and adjust for hook parameters.
3193 * config/m68k/netbsd-elf.h (TRAMPOLINE_TEMPLATE): Remove.
3194 (TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE): Remove.
3195
3196 2009-09-22 Jakub Jelinek <jakub@redhat.com>
3197
3198 * config/rs6000/rs6000.c (bdesc_2arg): Fix CODE_FOR_vector_gt* codes
3199 for __builtin_altivec_vcmpgt{sb,uh,sh,uw}.
3200
3201 * reload1.c (reload): Call wrap_constant when substituting
3202 reg for equiv inside of DEBUG_INSNs.
3203
3204 PR bootstrap/41405
3205 * dwarf2out.c (base_type_die, record_type_tag, gen_subprogram_die,
3206 add_call_src_coords_attributes, add_high_low_attributes,
3207 gen_compile_unit_die, gen_type_die_with_usage force_decl_die,
3208 gen_decl_die, dwarf2out_imported_module_or_decl_1, dwarf2out_finish,
3209 dwarf2out_imported_module_or_decl): Avoid using DWARF3 additions
3210 when -gdwarf-2 -gstrict-dwarf.
3211 (loc_list_from_tree): Likewise. Avoid using DWARF4 additions when
3212 -gdwarf-[23] -gstrict-dwarf.
3213 (address_of_int_loc_descriptor, loc_descriptor,
3214 loc_list_for_address_of_addr_expr_of_indirect_ref): Avoid using
3215 DWARF4 additions when -gdwarf-[23] -gstrict-dwarf.
3216 * common.opt (gno-strict-dwarf, gstrict-dwarf): New options.
3217
3218 2009-09-22 Richard Guenther <rguenther@suse.de>
3219
3220 PR tree-optimization/41428
3221 * tree-ssa-ccp.c (ccp_fold_stmt): New function.
3222 (ccp_finalize): Pass it to substitute_and_fold.
3223
3224 2009-09-22 Richard Guenther <rguenther@suse.de>
3225
3226 * tree-ssa-propagate.h (ssa_prop_fold_stmt_fn): Declare.
3227 (substitute_and_fold): Adjust prototype.
3228 * tree-vrp.c (vrp_evaluate_conditional): Make static.
3229 (simplify_stmt_using_ranges): Likewise.
3230 (fold_predicate_in): Move here from tree-ssa-propagate.c.
3231 (vrp_fold_stmt): New function.
3232 (vrp_finalize): Pass it to substitute_and_fold.
3233 * tree-flow.h (vrp_evaluate_conditional): Remove.
3234 (simplify_stmt_using_ranges): Likewise.
3235 * tree-ssa-ccp.c (ccp_finalize): Adjust call to substitute_and_fold.
3236 * tree-ssa-copy.c (fini_copy_prop): Likewise.
3237 * tree-ssa-propagate.c (struct prop_stats_d): Rename num_pred_folded
3238 member.
3239 (fold_predicate_in): Move to tree-vrp.c.
3240 (substitute_and_fold): Use the callback instead of calling into
3241 tree-vrp.c functions directly.
3242
3243 2009-09-22 Jakub Jelinek <jakub@redhat.com>
3244
3245 * dwarf2out.c (address_of_int_loc_descriptor): Avoid signed/unsigned
3246 comparison warning on rs6000.
3247
3248 PR middle-end/41429
3249 * tree-cfg.c (remove_useless_stmts_tc): Call gsi_next (gsi) even for
3250 GIMPLE_EH_MUST_NOT_THROW cleanup.
3251 (verify_types_in_gimple_stmt): Handle GIMPLE_EH_MUST_NOT_THROW.
3252
3253 2009-09-22 Jack Howarth <howarth@bromo.med.uc.edu>
3254
3255 PR middle-end/41260
3256 * gcc/config.gcc: Use darwin9.h and darwin10.h on darwin10 and later.
3257 * gcc/config/darwin10.h: Add file to pass -no_compact_unwind on
3258 LIB_SPEC for darwin10 and later since it always uses the unwinder in
3259 libSystem which is derived from the gcc 4.2.1 unwinder.
3260
3261 2009-09-22 Dave Korn <dave.korn.cygwin@gmail.com>
3262
3263 PR middle-end/41357
3264 * varasm.c (default_encode_section_info): Copy TLS model into
3265 sym_ref flags regardless of backend support for TLS, for all
3266 model types except TLS_MODEL_EMULATED.
3267
3268 2009-09-22 Dave Korn <dave.korn.cygwin@gmail.com>
3269
3270 PR bootstrap/41404
3271 * dwarf2out.c (mem_loc_descriptor): Punt on CONST_STRING until
3272 we can handle it correctly.
3273
3274 2009-09-21 Gerald Pfeifer <gerald@pfeifer.com>
3275
3276 * doc/install.texi (os2): Remove section.
3277
3278 2009-09-21 Gerald Pfeifer <gerald@pfeifer.com>
3279
3280 * doc/standards.texi (Objective-C): Adjust two URLs.
3281
3282 2009-09-21 Giuseppe Scrivano <gscrivano@gnu.org>
3283
3284 * tree-tailcall.c (process_assignment): Don't check if a
3285 multiplication or an addition are already present.
3286 (find_tail_calls): Combine multiple additions and multiplications.
3287 (adjust_accumulator_values): Emit accumulators.
3288
3289 2009-09-21 Kai Tietz <kai.tietz@onevision.com>
3290
3291 * config/i386/i386.c (ix86_expand_epilogue): Adjust offset for
3292 xmm register restore.
3293
3294 2009-09-21 Jan Hubicka <jh@suse.cz>
3295
3296 * dwarf2out.c (decl_loc_table_eq): Allow decl_loc_table to be NULL.
3297 (dwarf2out_abstract_function): NULLify decl_loc_table at begginig and
3298 restore at the end.
3299
3300 2009-09-21 Eric Botcazou <ebotcazou@adacore.com>
3301
3302 * stor-layout.c (layout_type): Remove obsolete code.
3303
3304 2009-09-20 H.J. Lu <hongjiu.lu@intel.com>
3305
3306 PR middle-end/41395
3307 * opts.c (decode_options): Don't turn on flag_ipa_sra for opt2.
3308
3309 2009-09-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3310
3311 PR middle-end/30789
3312 * builtins.c (do_mpc_arg2): Accept DO_NONFINITE parameter.
3313 (do_mpc_ckconv): Accept FORCE_CONVERT parameter.
3314 (fold_builtin_2, do_mpc_arg1): Update accordingly.
3315 * fold-const.c (const_binop): Likewise.
3316 * real.h (do_mpc_arg2): Update prototype.
3317
3318 2009-09-20 Jan Hubicka <jh@suse.cz>
3319
3320 * dwarf2out.c (add_const_value_attribute): Return true if successful.
3321 (add_location_or_const_value_attribute): Rewrite using
3322 loc_list_from_tree.
3323 (tree_add_const_value_attribute): Return true if successful.
3324 (tree_add_const_value_attribute_for_decl): Likewise.
3325
3326 * dwarf2out.c (address_of_int_loc_descriptor): Break out from ...
3327 (loc_descriptor): ... here;
3328 (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
3329 (cst_pool_loc_descr): Break out from ...; do not reffer constant
3330 pool items that was not marked for output.
3331 (loc_list_from_tree): ... here; handle special cases of ADDR_EXPR;
3332 (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
3333 (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
3334 handle ALIGN_INDIRECT_REF, MISALIGNED_INDIRECT_REF, REALPART_EXPR,
3335 IMAGPART_EXPR; handle address of INTEGER_CST; improve handling of
3336 CONSTRUCTOR; handle REAL_CST, STRING_CST, COMPLEX_CST; use
3337 DW_OP_stack_value to get address of items that are not available
3338 as addresses.
3339 (dw_loc_list): Handle single element lists correctly.
3340
3341 2009-09-20 Kai Tietz <kai.tietz@onevision.com>
3342 Pascal Obry <obry@adacore.com>
3343
3344 * unwind-dw2-fde.c (classify_object_over_fdes):
3345 Cast the constant 1 to _Unwind_Ptr.
3346 (add_fdes): Likewise.
3347 (linear_search_fdes): Likewise.
3348
3349 2009-09-20 Eric Botcazou <ebotcazou@adacore.com>
3350
3351 * stor-layout.c (set_sizetype): Avoid useless type copy.
3352
3353 2009-09-20 Richard Sandiford <rdsandiford@googlemail.com>
3354
3355 * configure.ac (gcc_cv_ld_mips_personality_relaxation): New
3356 feature check.
3357 (HAVE_LD_PERSONALITY_RELAXATION): New macro definition.
3358 * configure, config.in: Regenerate.
3359 * dwarf2asm.c (eh_data_format_name): Handle DW_EH_PE_indirect |
3360 DW_EH_PE_absptr.
3361 * config/mips/mips.h (TARGET_WRITABLE_EH_FRAME): New macro.
3362 (ASM_PREFERRED_EH_DATA_FORMAT): Define. Use MIPS_EH_INDIRECT
3363 for global data if the output could be used in a shared library.
3364 * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
3365 to 0 if TARGET_WRITABLE_EH_FRAME.
3366
3367 2009-09-20 Paolo Bonzini <bonzini@gnu.org>
3368
3369 PR rtl-optimization/39886
3370 * combine.c (update_cfg_for_uncondjump): Set EDGE_FALLTHRU
3371 just when insn is equal to BB_END (bb).
3372
3373 2009-09-19 Adam Nemet <anemet@caviumnetworks.com>
3374
3375 * config/mips/mips.opt (mrelax-pic-calls): New option.
3376 * config/mips/mips.c (mips_strip_unspec_address): Move it up in
3377 the file.
3378 (mips_unspec_call): Change "unspec_call" expander into this.
3379 (mips_strip_unspec_call): New function.
3380 (mips_got_load): Call mips_unspec_call instead of
3381 gen_unspec_call<mode>.
3382 (mips16_build_call_stub): Fix comment for fp_code. Adjust call to
3383 MIPS_CALL.
3384 (mips_cfg_in_reorg): New function.
3385 (mips16_lay_out_constants): Use it to decide whether to call
3386 CFG-aware insn splitting.
3387 (r10k_insert_cache_barriers): Move CFG set-up code from here to
3388 mips_reorg. Move DF set-up code from here ...
3389 (mips_df_reorg): ... to here. Call r10k_insert_cache_barriers
3390 from here.
3391 (mips_reorg): Call mips_df_reorg instead of
3392 r10k_insert_cache_barriers. Move CFG set-up code here from
3393 r10k_insert_cache_barriers.
3394 (mips_call_expr_from_insn): New function.
3395 (mips_pic_call_symbol_from_set): Likewise.
3396 (mips_find_pic_call_symbol): Likewise.
3397 (mips_annotate_pic_call_expr): Likewise.
3398 (mips_get_pic_call_symbol): Likewise.
3399 (mips_annotate_pic_calls): Likewise.
3400 (mips_override_options): Disable -mrelax-pic-calls unless PIC
3401 calls are used.
3402 (mips_set_mips16_mode): Disable -mrelax-pic-calls for MIPS16.
3403 * config/mips/mips-protos.h (mips_get_pic_call_symbol): Declare it.
3404 * config/mips/mips.h (MIPS_CALL): Use it to print the .reloc
3405 directive.
3406 * config/mips/mips.md (UNSPEC_CALL_ATTR): New unspec.
3407 (unspec_call<mode>): Remove it.
3408 (sibcall_internal, sibcall_value_internal,
3409 sibcall_value_multiple_internal, call_internal, call_split,
3410 call_value_internal, call_value_split,
3411 call_value_multiple_internal, call_value_multiple_split): Pass
3412 SIZE_OPNO to MIPS_CALL.
3413 (call_internal_direct, call_direct_split,
3414 call_value_internal_direct, call_value_direct_split): Pass -1 as
3415 SIZE_OPNO to MIPS_CALL.
3416 * configure.ac <mips*-*-*>: Add test for .reloc R_MIPS_JALR.
3417 * configure: Regenerate.
3418 * doc/invoke.texi (Option Summary): Add -mrelax-pic-calls
3419 and -mno-relax-pic-calls.
3420 (MIPS Options): Document -mrelax-pic-calls and -mno-relax-pic-calls.
3421
3422 2009-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3423
3424 PR bootstrap/35619
3425 * Makefile.in (stmp-fixinc): Ensure `include-fixed' is created
3426 in the directory this rule is called from, rather than the
3427 toplevel 'gcc' directory, to fix in-tree build.
3428
3429 2009-09-19 Chris Demetriou <cgd@google.com>
3430
3431 PR preprocessor/28435:
3432 * c-opts.c (c_common_handle_option): For -MD and -MMD, indicate
3433 to cpplib that the preprocessor output is needed.
3434
3435 2009-09-19 Jakub Jelinek <jakub@redhat.com>
3436
3437 * config/rs6000/rs6000.md (*save_gpregs_<mode>, *save_fpregs_<mode>,
3438 *restore_gpregs_<mode>, *return_and_restore_gpregs_<mode>,
3439 *return_and_restore_fpregs_<mode>,
3440 *return_and_restore_fpregs_aix_<mode>): Remove 'z' operand modifier.
3441
3442 PR bootstrap/41397
3443 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Recurse
3444 instead of assuming it has always a REG inside of it.
3445
3446 2009-09-18 Gerald Pfeifer <gerald@pfeifer.com>
3447
3448 * config/freebsd.h: Update comment on types.
3449 (WINT_TYPE): Define.
3450
3451 2009-09-18 Jason Merrill <jason@redhat.com>
3452
3453 * c.opt: Add -fno-deduce-init-list.
3454
3455 2009-09-18 Neil Vachharajani <nvachhar@google.com>
3456
3457 * value-prof.c (interesting_stringop_to_profile_p): Added output
3458 argument to indicate which parameter is the size parameter.
3459 * value-prof.c (gimple_stringop_fixed_value): Use
3460 INTERESTING_STRINGOP_TO_PROFILE_P to find size argument.
3461 * value-prof.c (gimple_stringops_transform): Update call sites to
3462 INTERESTING_STRINGOP_TO_PROFILE_P to reflect parameter change.
3463
3464 2009-09-18 Uros Bizjak <ubizjak@gmail.com>
3465
3466 PR target/38288
3467 From David Binderman <dcb314@hotmail.com>:
3468 * gcc/config/i386/i386.c (ix86_function_regparm): Remove useless
3469 local variable f. Remove stale comments.
3470 (ix86_compute_frame_layout): Remove useless local variable total_size.
3471 Remove #if 0'd code.
3472 (legitimate_address_p): Remove useless local variables
3473 reason_rtx and reason.
3474 (ix86_split_copysign_const): Remove useless local variable op1.
3475 (scale_counter): Remove useless local variable piece_size_mask.
3476
3477 2009-09-18 Jakub Jelinek <jakub@redhat.com>
3478
3479 * stmt.c (expand_asm_operands): Set REG_ATTRS on the temporary from
3480 output decl.
3481
3482 2009-09-17 Michael Haubenwallner <michael.haubenwallner@salomon.at>
3483
3484 PR target/40913
3485 * config/pa/t-hpux-shlib: Set soname in libgcc_s.sl.
3486
3487 2009-09-17 Jakub Jelinek <jakub@redhat.com>
3488
3489 * c-decl.c (finish_struct): Adjust DECL_SOURCE_LOCATION of
3490 TYPE_STUB_DECL.
3491
3492 2009-09-17 Alexandre Oliva <aoliva@redhat.com>
3493
3494 * dwarf2out.c (loc_descriptor): Emit DW_OP_stack_value and
3495 DW_OP_implicit_value even without dwarf_version 4.
3496
3497 2009-09-17 Jan Hubicka <jh@suse.cz>
3498
3499 * dwarf2out.c: Include tree-pass.h and gimple.h.
3500 (loc_list_plus_const): New function.
3501 (loc_descriptor_from_tree_1): Rename to ...
3502 (loc_descriptor_from_tree): ... remove original.
3503 (loc_list_from_tree): New function.
3504 (add_AT_location_description): Accept location list.
3505 (tls_mem_loc_descriptor): Update call of loc_descriptor_from_tree.
3506 (concatn_mem_loc_descriptor): Remove.
3507 (mem_loc_descriptor): Handle CONCAT/CONCATN and VAR_LOCATION by
3508 returning NULL.
3509 (secname_for_decl): Move up.
3510 (hidden_reference_p): New function; break out from ...
3511 (loc_by_refernece): ... here; move up.
3512 (dw_loc_list): New function.
3513 (single_element_loc_list): New function.
3514 (single_element_loc_list_p): New function.
3515 (add_loc_descr_to_each): New function.
3516 (add_loc_list): New function.
3517 (loc_descr_from_tree): Make wraper of loc_list_from_tree.
3518 (loc_list_from_tree): Reroganized from loc_descr_from_tree;
3519 add diagnostics why expansion failed.
3520 (add_location_or_const_value_attribute): Support location lists.
3521 (add_bound_info): Likewise.
3522 (descr_info_loc): Update call of loc_descriptor_from_tree.
3523 (gen_variable_die): Work on location lists.
3524 * final.c (pass_final): Add dump file.
3525 * Makefile.in (dwarf2out.o): Add new dependencies.
3526
3527 2009-09-17 Janis Johnson <janis187@us.ibm.com>
3528
3529 PR c/41049
3530 * real.c decimal_from_integer, decimal_integer_string): New.
3531 (real_from_integer): Use them as special case for decimal float.
3532 * config/dfp-bit.c (_si_to_sd, _usi_to_sd): Use default rounding.
3533 (_di_to_sd, _di_to_dd, _di_to_td, _udi_to_sd, _udi_to_dd, _udi_to_td):
3534 Do not append zero after the decimal point in string to convert.
3535
3536 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
3537
3538 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only
3539 for ARRAY_REFs. Use array_ref_{low,up}_bound to determine bounds.
3540
3541 2009-09-17 Martin Jambor <mjambor@suse.cz>
3542
3543 * common.opt (fipa-sra): New switch.
3544 * opts.c (decode_options): Turn flag_ipa_sra on for opt2.
3545 * timevar.def (TV_IPA_SRA): New timevar.
3546 * params.def (ipa-sra-ptr-growth-factor): New parameter.
3547 * doc/invoke.texi: Document -fipa-sra and ipa-sra-ptr-growth-factor.
3548 * tree-sra.c: Include cgraph.c.
3549 (enum sra_mode): Added SRA_MODE_EARLY_IPA.
3550 (struct access): Added fields stmt, grp_maybe_modified, grp_scalar_ptr
3551 and grp_not_necessarilly_dereferenced.
3552 (func_param_count): New variable.
3553 (encountered_apply_args): New variable.
3554 (bb_dereferences): New variable.
3555 (final_bbs): New variable.
3556 (no_accesses_representant): New variable.
3557 (no_accesses_p): New function.
3558 (dump_access): Dump the new fields.
3559 (sra_initialize): Set encountered_apply_args to false.
3560 (get_ssa_base_param): New function.
3561 (mark_parm_dereference): New function.
3562 (create_access): Caring for INIDRECT_REFs and different handling of
3563 varialble length accesses in early IPA SRA. Store the stmt - a new
3564 parameter - to the new access.
3565 (build_access_from_expr_1): New parameter stmt, passed to
3566 create_access. Handle INDIRECT_REFs.
3567 (build_access_from_expr): Pass the current statement to
3568 build_access_from_expr_1.
3569 (disqualify_ops_if_throwing_stmt): Trigger only in intraprocedural
3570 passes.
3571 (build_accesses_from_assign): Pass the current statement to
3572 build_access_from_expr_1. Do not create assign links in IPA-SRA.
3573 (scan_function): Call handle_ssa_defs on phi nodes. Set bits in
3574 final_bbs when necessary. Check for calls to __builtin_apply_args.
3575 Fixup EH info if anythng was changed.
3576 (is_unused_scalar_param): New function.
3577 (ptr_parm_has_direct_uses): New function.
3578 (find_param_candidates): New function.
3579 (mark_maybe_modified): New function.
3580 (analyze_modified_params): New function.
3581 (propagate_dereference_distances): New function.
3582 (dump_dereferences_table): New function.
3583 (analyze_caller_dereference_legality): New function.
3584 (unmodified_by_ref_scalar_representative): New function.
3585 (splice_param_accesses): New function.
3586 (decide_one_param_reduction): New function.
3587 (enum ipa_splicing_result): New type.
3588 (splice_all_param_accesses): New function.
3589 (get_param_index): New function.
3590 (turn_representatives_into_adjustments): New function.
3591 (analyze_all_param_acesses): New function.
3592 (get_replaced_param_substitute): New function.
3593 (get_adjustment_for_base): New function.
3594 (replace_removed_params_ssa_names): New function.
3595 (sra_ipa_reset_debug_stmts): New function.
3596 (sra_ipa_modify_expr): New function.
3597 (sra_ipa_modify_assign): New function.
3598 (convert_callers): New function.
3599 (modify_function): New function.
3600 (ipa_sra_preliminary_function_checks): New function.
3601 (ipa_early_sra): New function.
3602 (ipa_early_sra_gate): New function.
3603 (pass_early_ipa_sra): New variable.
3604 * Makefile.in (tree-sra.o): Add cgraph.h to dependencies.
3605
3606 2009-09-17 Michael Matz <matz@suse.de>
3607
3608 PR middle-end/41347
3609 * tree.c (build_type_attribute_qual_variant): Export.
3610 * tree.h (build_type_attribute_qual_variant): Declare.
3611 * tree-inline.c (remap_type_1): Use it to build variants with
3612 the original qualifiers and attributes.
3613
3614 2009-09-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3615
3616 * cfglayout.c (fixup_reorder_chain): Accept conditional jumps
3617 without a fallthrough edge.
3618
3619 2009-09-16 DJ Delorie <dj@redhat.com>
3620
3621 * config/m32c/m32c.c (m32c_emit_epilogue): Check for R8C or M16C
3622 chip and ignore the "fast_interrupt" attribute if so.
3623
3624 2009-09-16 Richard Henderson <rth@redhat.com>
3625
3626 PR middle-end/41360
3627 * cfgbuild.c (find_bb_boundaries): Really re-instate 2009-09-02
3628 barrier fix.
3629
3630 2009-09-16 Richard Henderson <rth@redhat.com>
3631
3632 PR target/41246
3633 * tree-cfg.c (verify_gimple_call): Validate that gimple_call_chain
3634 is set only if DECL_NO_STATIC_CHAIN is unset.
3635 * tree-nested.c (iter_nestinfo_start, iter_nestinfo_next): New.
3636 (FOR_EACH_NEST_INFO): New.
3637 (walk_all_functions): Use it.
3638 (finalize_nesting_tree): Likewise.
3639 (unnest_nesting_tree): Likewise.
3640 (free_nesting_tree): Use iter_nestinfo_start, iter_nestinfo_next.
3641 (get_chain_decl, get_chain_field): Reset DECL_NO_STATIC_CHAIN.
3642 (convert_gimple_call): Early out if gimple_call_chain already set.
3643 (convert_all_function_calls): Iterate until no new functions
3644 require a static chain.
3645 (finalize_nesting_tree_1): Assert DECL_NO_STATIC_CHAIN is unset
3646 when building a trampoline. Use dump_function_to_file instead
3647 of dump_function.
3648 (lower_nested_functions): Open dump_file. Validate that decls
3649 that have DECL_NO_STATIC_CHAIN from the front end don't have that
3650 bit reset by this pass.
3651
3652 2009-09-16 Michael Matz <matz@suse.de>
3653
3654 PR fortran/41212
3655 * tree.h (struct tree_decl_common): Add decl_restricted_flag,
3656 shorten decl_common_unused.
3657 (DECL_RESTRICTED_P): New accessor.
3658 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Use it
3659 to disambiguate marked decls and restrict pointers.
3660
3661 2009-09-16 Richard Henderson <rth@redhat.com>
3662
3663 PR middle-end/41360
3664 * cfgbuild.c (find_bb_boundaries): Re-instate 2009-09-02 barrier fix.
3665
3666 2009-09-16 Jakub Jelinek <jakub@redhat.com>
3667
3668 * integrate.c (set_block_abstract_flags): Call
3669 set_decl_abstract_flags also on BLOCK_NONLOCALIZED_VARs.
3670
3671 2009-09-16 Richard Guenther <rguenther@suse.de>
3672
3673 PR middle-end/34011
3674 * tree-flow-inline.h (may_be_aliased): Compute readonly variables
3675 as non-aliased.
3676
3677 2009-09-16 DJ Delorie <dj@redhat.com>
3678 Kaz Kojima <kkojima@gcc.gnu.org>
3679
3680 * config/sh/sh.c (output_stack_adjust): Add new argument frame_p.
3681 (sh_expand_prologue): Update calls to output_stack_adjust.
3682 (sh_expand_epilogue): Likewise.
3683
3684 2009-09-15 Adam Nemet <anemet@caviumnetworks.com>
3685
3686 PR bootstrap/41349
3687 * reorg.c (redundant_insn): Don't count notes or DEBUG_INSNs when
3688 trying to limit the extent of searches in the insn stream.
3689
3690 2009-09-15 Nathan Froyd <froydnj@codesourcery.com>
3691 Jakub Jelinek <jakub@redhat.com>
3692
3693 PR target/41175
3694 PR target/40677
3695 * config/rs6000/rs6000.c (no_global_regs_above): Fix precedence
3696 problem.
3697 (SAVRES_NOINLINE_GPRS_SAVES_LR, SAVRES_NOINLINE_FPRS_SAVES_LR,
3698 SAVRES_NOINLINE_FPRS_DOESNT_RESTORE_LR): New strategy bits.
3699 (rs6000_savres_strategy): Always save FP registers inline if the
3700 target doesn't support hardware double-precision. Set the above
3701 bits in return value when needed.
3702 (rs6000_savres_routine_sym): Fix computation for cache selector.
3703 Mark the generated symbol as a function. Rename exitp argument to
3704 lr. Move code for determining the name of the symbol...
3705 (rs6000_savres_routine_name): ...here. New function. Add cases for
3706 getting the names right on AIX and 64-bit Linux.
3707 (savres_routine_name): New variable.
3708 (rs6000_make_savres_rtx): Rename exitp argument to lr. Don't assert
3709 lr isn't set when savep. Use r12 resp. r1 instead of r11 depending
3710 on what the target routine uses as a base register. If savep && lr
3711 describe saving of r0 into memory slot.
3712 (rs6000_emit_prologue): Correct use of call_used_regs. Fix out of
3713 line calls for AIX ABI.
3714 (rs6000_output_function_prologue): Use rs6000_savres_routine_name to
3715 determine FP save/restore functions.
3716 (rs6000_emit_stack_reset): Handle savres if sp_offset != 0 and
3717 frame_reg_rtx != sp_reg_rtx. Use gen_add3_insn instead of
3718 gen_addsi3.
3719 (rs6000_emit_epilogue): Adjust computation of restore_lr.
3720 Duplicate restoration of LR and execute the appropriate one
3721 depending on whether GPRs are being restored inline. Set r11 from
3722 offsetted frame_reg_rtx instead of sp_reg_rtx; if frame_reg_rtx is
3723 r11, adjust sp_offset. Use gen_add3_insn instead of gen_addsi3.
3724 Fix out of line calls for AIX ABI.
3725 * config/rs6000/rs6000.md (*return_and_restore_fpregs_aix_<mode>):
3726 New insn.
3727 * config/rs6000/spe.md (*save_gpregs_spe): Use explicit match for
3728 register 11.
3729 (*restore_gpregs_spe): Likewise.
3730 (*return_and_restore_gpregs_spe): Likewise.
3731 * config/rs6000/linux64.h (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX):
3732 Define to empty string unconditionally.
3733 * config/rs6000/sysv4.h (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX):
3734 Define to empty string unconditionally.
3735 (GP_SAVE_INLINE, FP_SAVE_INLINE): Handle TARGET_64BIT the same as
3736 !TARGET_64BIT.
3737
3738 2009-09-15 Jan Hubicka <jh@suse.cz>
3739
3740 * doc/invoke.texi (inline-insns-auto): Drop from 60 to 50.
3741 * params.def (inline-insns-auto): Likewise.
3742
3743 2009-09-15 Martin Jambor <mjambor@suse.cz>
3744
3745 * ipa-inline.c (estimate_function_body_sizes): Dump info about
3746 individual statements only at TDF_DETAILS dump level. Format
3747 source for 80 characters per line.
3748
3749 2009-09-15 Christian Bruel <christian.bruel@st.com>
3750
3751 * regrename.c (do_replace): Update REG_DEAD notes.
3752
3753 2009-09-15 Revital Eres <eres@il.ibm.com>
3754
3755 * doc/tm.texi (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Document.
3756 * targhooks.c (default_builtin_support_vector_misalignment):
3757 New builtin function.
3758 * targhooks.h (default_builtin_support_vector_misalignment):
3759 Declare.
3760 * target.h (builtin_support_vector_misalignment):
3761 New field in struct gcc_target.
3762 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Call
3763 new builtin function.
3764 * target-def.h (TARGET_SUPPORT_VECTOR_MISALIGNMENT):
3765 Define.
3766 * config/rs6000/rs6000.c
3767 (rs6000_builtin_support_vector_misalignment): New function.
3768 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Define.
3769
3770 2009-09-15 Jie Zhang <jie.zhang@analog.com>
3771
3772 * config/bfin/bfin.c (length_for_loop): Use NONDEBUG_INSN_P
3773 instead of INSN_P.
3774 (bfin_optimize_loop): Likewise.
3775 (bfin_gen_bundles): Likewise.
3776 (workaround_speculation): Likewise.
3777 (find_load): Return NULL_RTX for debug_insn.
3778
3779 2009-09-15 Uros Bizjak <ubizjak@gmail.com>
3780
3781 * config/alpha/alpha.md (smaxsf3): Disable for IEEE mode.
3782 (sminsf3): Ditto.
3783
3784 2009-09-14 DJ Delorie <dj@redhat.com>
3785
3786 * config/mep/mep.h (JUMP_TABLES_IN_TEXT_SECTION): Define.
3787 * config/mep/mep.c (mep_emit_cbranch): Don't use BEQZ/BNEI in
3788 VLIW mode.
3789
3790 2009-09-14 Richard Henderson <rth@redhat.com>
3791 Jakub Jelinek <jakub@redhat.com>
3792
3793 * builtins.c (expand_builtin_synchronize): Use gimple_build_asm_vec.
3794 * cfgbuild.c (make_edges): Handle asm goto.
3795 * cfglayout.c (fixup_reorder_chain): Likewise.
3796 * cfgrtl.c (patch_jump_insn): Likewise.
3797 * gimple-pretty-print.c (dump_gimple_asm): Likewise.
3798 * gimple.c (gimple_build_asm_1): Add and use nlabels parameter.
3799 (gimple_build_asm_vec): Add and use labels parameter.
3800 (gimple_build_asm): Remove.
3801 (walk_gimple_asm): Walk labels too.
3802 * gimple.def (GIMPLE_ASM): Update docs.
3803 * gimple.h: Update decls.
3804 (struct gimple_statement_asm): Change nc to use unsigned char;
3805 add nl member.
3806 (gimple_asm_nlabels): New.
3807 (gimple_asm_label_op, gimple_asm_set_label_op): New.
3808 * gimplify.c (gimplify_asm_expr): Copy labels from ASM_EXPR
3809 into gimple_build_asm_vec.
3810 * jump.c (mark_jump_label_asm): New.
3811 (mark_jump_label): Use it.
3812 (redirect_jump_1): Handle asm goto.
3813 (invert_jump_1): Soft fail if X is null.
3814 * recog.c (extract_asm_operands): New.
3815 (asm_noperands): Use it; handle asm labels.
3816 (decode_asm_operands): Use extract_asm_operands.
3817 (asm_operand_ok): Properly handle empty string.
3818 * reg-stack.c (get_asm_operands_in_out): Rename from
3819 get_asm_operand_n_inputs; use extract_asm_operands; return both
3820 inputs and outputs by reference; update all callers.
3821 * rtl.def (ASM_OPERANDS): Add label vector as operand 6.
3822 * rtl.h (ASM_OPERANDS_LABEL_VEC): New.
3823 (ASM_OPERANDS_LABEL_LENGTH, ASM_OPERANDS_LABEL): New.
3824 (ASM_OPERANDS_SOURCE_LOCATION): Renumber.
3825 (extract_asm_operands): Declare.
3826 * stmt.c (expand_asm_operands): Add and use labels parameter.
3827 (check_unique_operand_names): Likewise.
3828 (resolve_asm_operand_names, resolve_operand_name_1): Likewise.
3829 (expand_asm_stmt): Handle asm labels.
3830 * tree-cfg.c (make_gimple_asm_edges): New.
3831 (make_edges): Use it.
3832 (cleanup_dead_labels): Handle asm labels.
3833 (is_ctrl_altering_stmt): Likewise.
3834 (gimple_redirect_edge_and_branch): Likewise.
3835 * tree.def (ASM_EXPR): Add 5th operand.
3836 * tree.h (ASM_LABELS): New.
3837 (resolve_asm_operand_names): Update decl.
3838
3839 * c-parser.c (c_parser_asm_statement): Parse asm goto.
3840 (c_parser_asm_goto_operands): New.
3841 * c-tree.h (build_asm_expr): Update decl.
3842 * c-typeck.c (build_asm_expr): Add and use labels parameter.
3843 * doc/extend.texi: Document asm goto.
3844
3845 2009-09-14 Richard Henderson <rth@redhat.com>
3846
3847 * except.h: Update declarations.
3848 (struct pointer_map_t): Forward declare.
3849 (ERT_UNKNOWN, ERT_THROW, ERT_CATCH): Remove.
3850 (struct eh_landing_pad_d, eh_landing_pad): New.
3851 (struct eh_catch_d, eh_catch): New.
3852 (struct eh_region_d): Remove next_region_sharing_label, aka,
3853 label, tree_label, landing_pad, post_landing_pad, resume,
3854 may_contain_throw. Rename region_number to index. Remove
3855 u.eh_catch, u.eh_throw. Rename u.eh_try.eh_catch to first_catch.
3856 Add u.must_not_throw, landing_pads, exc_ptr_reg, filter_reg.
3857 (VEC(eh_landing_pad,gc)): New.
3858 (struct eh_status): Remove last_region_number. Add lp_array,
3859 throw_stmt_table, ttype_data, ehspec_data.
3860 (ehr_next, FOR_ALL_EH_REGION_AT): New.
3861 (FOR_ALL_EH_REGION_FN, FOR_ALL_EH_REGION): New.
3862 * except.c (lang_protect_cleanup_actions): Return tree.
3863 (struct ehl_map_entry): Remove.
3864 (init_eh_for_function): Push zero entries for region and lp_array.
3865 (gen_eh_region): Add to region_array immediately.
3866 (gen_eh_region_catch): Operate on eh_catch objects.
3867 (gen_eh_landing_pad): New.
3868 (get_eh_region_may_contain_throw, get_eh_region_tree_label): Remove.
3869 (get_eh_region_no_tree_label, set_eh_region_tree_label): Remove.
3870 (get_eh_region_from_number, get_eh_region_from_number_fn): New.
3871 (get_eh_landing_pad_from_number_fn): New.
3872 (get_eh_landing_pad_from_number): New.
3873 (get_eh_region_from_lp_number_fn): New.
3874 (get_eh_region_from_lp_number): New.
3875 (expand_resx_stmt, note_eh_region_may_contain_throw): Remove.
3876 (get_exception_pointer, get_exception_filter): Remove.
3877 (collect_eh_region_array, can_be_reached_by_runtime): Remove.
3878 (current_function_has_exception_handlers): Simplify.
3879 (bring_to_root, eh_region_replaceable_by_p): Remove.
3880 (replace_region, hash_type_list, hash_eh_region): Remove.
3881 (eh_regions_equal_p, merge_peers, remove_unreachable_regions): Remove.
3882 (label_to_region_map, num_eh_regions): Remove.
3883 (get_next_region_sharing_label, must_not_throw_labels): Remove.
3884 (find_exception_handler_labels): Remove.
3885 (duplicate_eh_regions_0, find_prev_try): Remove.
3886 (struct duplicate_eh_regions_data): New.
3887 (duplicate_eh_regions_1): Rewrite.
3888 (duplicate_eh_regions): Return a pointer map instead of an
3889 integer offset.
3890 (copy_eh_region_1, copy_eh_region, push_reachable_handler): Remove.
3891 (redirect_eh_edge_to_label): Remove.
3892 (eh_region_outermost): Rewrite using eh_region pointers
3893 instead of integers.
3894 (add_ttypes_entry): Update for ttype_data move to eh_status.
3895 (add_ehspec_entry): Rewrite with VEC instead of varray.
3896 (assign_filter_values): Likewise. Export.
3897 (build_post_landing_pads, connect_post_landing_pads): Remove.
3898 (dw2_build_landing_pads): Rewrite to use lp_array.
3899 (struct sjlj_lp_info, sjlj_find_directly_reachable_regions): Remove.
3900 (sjlj_assign_call_site_values): Rewrite to use lp_array.
3901 (sjlj_emit_dispatch_table, sjlj_build_landing_pads): Likewise.
3902 (sjlj_mark_call_sites): Update for landing pad numbers.
3903 (finish_eh_generation): Rewrite.
3904 (gate_handle_eh): Do nothing for no eh tree.
3905 (pass_rtl_eh): Move up near finish_eh_generation.
3906 (remove_eh_landing_pad): New.
3907 (remove_eh_handler): Export.
3908 (remove_eh_region, remove_eh_handler_and_replace): Remove.
3909 (for_each_eh_label): Rewrite to use lp_array.
3910 (make_reg_eh_region_note): New.
3911 (make_reg_eh_region_note_nothrow_nononlocal): New.
3912 (insn_could_throw_p): New.
3913 (copy_reg_eh_region_note_forward): New.
3914 (copy_reg_eh_region_note_backward): New.
3915 (check_handled, add_reachable_handler): Remove.
3916 (reachable_next_level, foreach_reachable_handler): Remove.
3917 (arh_to_landing_pad, arh_to_label, reachable_handlers): Remove.
3918 (get_eh_region_and_lp_from_rtx): New.
3919 (get_eh_region_from_rtx): New.
3920 (can_throw_internal_1, can_throw_external_1): Remove.
3921 (can_throw_internal): Use get_eh_region_from_rtx.
3922 (can_throw_external): Use get_eh_region_and_lp_from_rtx.
3923 (insn_nothrow_p, can_nonlocal_goto): New.
3924 (expand_builtin_eh_common, expand_builtin_eh_pointer): New.
3925 (expand_builtin_eh_filter, expand_builtin_eh_copy_values): New.
3926 (add_action_record): Use VEC not varray.
3927 (collect_one_action_chain): Update for eh_region changes.
3928 (convert_to_eh_region_ranges): Make static. Use VEC not varray.
3929 Use get_eh_region_and_lp_from_rtx.
3930 (gate_convert_to_eh_region_ranges): New.
3931 (pass_convert_to_eh_region_ranges): Use it.
3932 (push_uleb128, push_sleb128): Use VEC not varray.
3933 (output_one_function_exception_table): Likewise.
3934 (dump_eh_tree): Update for eh_region changes.
3935 (verify_eh_tree): Likewise.
3936 (verify_eh_region, default_init_unwind_resume_libfunc): Remove.
3937 * tree-eh.c: Include target.h.
3938 (add_stmt_to_eh_lp_fn): Rename from add_stmt_to_eh_region_fn.
3939 Don't disallow GIMPLE_RESX; adjust argument check.
3940 (add_stmt_to_eh_lp): Rename from add_stmt_to_eh_region.
3941 (record_stmt_eh_region): Update for landing pad numbers;
3942 generate a landing pad if necessary.
3943 (remove_stmt_from_eh_lp): Rename from remove_stmt_from_eh_region.
3944 (remove_stmt_from_eh_lp_fn): Similarly.
3945 (lookup_stmt_eh_lp_fn): Rename from lookup_stmt_eh_region_fn.
3946 Update for lp numbers; don't special case missing throw_stmt_table.
3947 (lookup_expr_eh_lp): Similarly.
3948 (lookup_stmt_eh_lp): Rename from lookup_stmt_eh_region.
3949 (eh_seq, eh_region_may_contain_throw): New.
3950 (struct leh_state): Add ehp_region.
3951 (struct leh_tf_state): Remove eh_label.
3952 (emit_post_landing_pad): New.
3953 (emit_resx, emit_eh_dispatch): New.
3954 (note_eh_region_may_contain_throw): New.
3955 (frob_into_branch_around): Take eh_region not eh label;
3956 emit eh code into eh_seq.
3957 (honor_protect_cleanup_actions): Early exit for no actions. Don't
3958 handle EXC_PTR_EXPR, FILTER_EXPR. Use gimple_build_eh_must_not_throw,
3959 lower_eh_must_not_throw. Emit code to eh_seq.
3960 (lower_try_finally_nofallthru): Emit eh code to eh_seq.
3961 (lower_try_finally_onedest): Likewise.
3962 (lower_try_finally_copy): Likewise.
3963 (lower_try_finally_switch): Likewise.
3964 (lower_try_finally): Initialize ehp_region.
3965 (lower_catch): Update for eh_catch objects.
3966 (lower_eh_filter): Don't handle must_not_throw.
3967 (lower_eh_must_not_throw): New.
3968 (lower_cleanup): Don't set eh_label.
3969 (lower_eh_constructs_2): Resolve eh builtins.
3970 Handle GIMPLE_EH_MUST_NOT_THROW.
3971 (lower_eh_constructs): Initialize eh_region_may_contain_throw.
3972 Add eh_seq to the end of the function body.
3973 (make_eh_dispatch_edges): New.
3974 (make_eh_edge): Remove.
3975 (make_eh_edges): Simplify for landing pads.
3976 (redirect_eh_edge_1): New.
3977 (redirect_eh_edge): Use it.
3978 (redirect_eh_dispatch_edge): New.
3979 (stmt_could_throw_p): Use a switch. Allow RESX.
3980 (stmt_can_throw_external): Use lookup_stmt_eh_lp.
3981 (stmt_can_throw_internal): Likewise.
3982 (maybe_clean_eh_stmt_fn, maybe_clean_eh_stmt): New.
3983 (maybe_clean_or_replace_eh_stmt): Update for landing pads.
3984 (maybe_duplicate_eh_stmt_fn, maybe_duplicate_eh_stmt): New.
3985 (gate_refactor_eh): New.
3986 (pass_refactor_eh): Use it.
3987 (lower_resx, execute_lower_resx, pass_lower_resx): New.
3988 (lower_eh_dispatch, execute_lower_eh_dispatch): New.
3989 (gate_lower_ehcontrol, pass_lower_eh_dispatch): New.
3990 (remove_unreachable_handlers): Rename from
3991 tree_remove_unreachable_handlers; rewrite for landing pads;
3992 call remove_eh_handler directly.
3993 (remove_unreachable_handlers_no_lp): New.
3994 (unsplit_eh, unsplit_all_eh): New.
3995 (tree_empty_eh_handler_p, all_phis_safe_to_merge): Remove.
3996 (cleanup_empty_eh_merge_phis, cleanup_empty_eh_move_lp): New.
3997 (cleanup_empty_eh_unsplit): New.
3998 (cleanup_empty_eh): Rewrite.
3999 (cleanup_all_empty_eh): New.
4000 (execute_cleanup_eh): Rename from cleanup_eh. Remove unreachable
4001 handlers first. Use unsplit_all_eh, cleanup_all_empty_eh.
4002 (gate_cleanup_eh): New.
4003 (pass_cleanup_eh): Use it.
4004 (verify_eh_edges): Move later in file. Expect one EH edge.
4005 (verify_eh_dispatch_edge): New.
4006
4007 * Makefile.in (FUNCTION_H): Use vecprim.h, not varray.h.
4008 (gtype-desc.o): Add TARGET_H.
4009 (tree.o): Use EXCEPT_H, not except.h.
4010 (cfgbuild.o): Add EXPR_H.
4011 (GTFILES): Add vecprim.h.
4012 * builtins.c (expand_builtin): Handle BUILT_IN_EH_POINTER,
4013 BUILT_IN_EH_FILTER, BUILT_IN_EH_COPY_VALUES.
4014 * builtins.def (BUILT_IN_UNWIND_RESUME, BUILT_IN_EH_POINTER,
4015 BUILT_IN_EH_FILTER, BUILT_IN_EH_COPY_VALUES): New.
4016 * calls.c (emit_call_1): Use make_reg_eh_region_note.
4017 * cfgbuild.c (control_flow_insn_p): Use can_nonlocal_goto; tidy
4018 calls to can_throw_internal.
4019 (rtl_make_eh_edge): Use get_eh_landing_pad_from_rtx.
4020 (make_edges): Don't handle RESX; use can_nonlocal_goto.
4021 * cfgexpand.c (expand_gimple_stmt_1): Don't handle RESX.
4022 (expand_gimple_stmt): Use make_reg_eh_region_note.
4023 (expand_debug_expr): Don't handle EXC_PTR_EXPR and FILTER_EXPR.
4024 (gimple_expand_cfg): Don't call convert_from_eh_region_ranges,
4025 or find_exception_handler_labels.
4026 * cfgrtl.c (rtl_verify_flow_info_1): Don't handle RESX. Assert
4027 there is exacly one EH edge. Use can_nonlocal_goto and
4028 can_throw_internal.
4029 * cgraphunit.c (update_call_expr): Use maybe_clean_eh_stmt_fn.
4030 (cgraph_materialize_all_clones): Use maybe_clean_or_replace_eh_stmt.
4031 * combine.c (can_combine_p, try_combine): Use insn_nothrow_p.
4032 * cse.c (count_reg_usage, insn_live_p): Use insn_could_throw_p.
4033 * dce.c (deletable_insn_p_1): Don't test may_trap_p.
4034 (deletable_insn_p): Use insn_nothrow_p; reorder nonjump insn test.
4035 * dse.c (scan_insn): Use insn_could_throw_p.
4036 * emit-rtl.c (try_split): Use copy_reg_eh_region_note_backward.
4037 * expr.c (expand_expr_real): Use make_reg_eh_region_note.
4038 (expand_expr_real_1): Don't handle RESX, EXC_PTR, or FILTER_EXPR.
4039 * fold-const.c (tree_expr_nonnegative_warnv_p): Don't handle
4040 EXC_PTR_EXPR or FILTER_EXPR.
4041 (tree_expr_nonzero_warnv_p): Likewise.
4042 * function.h: Include vecprim.h, not varray.h
4043 (struct rtl_eh): Remove filter, exc_ptr, built_landing_pad members;
4044 move ttype_data and ehspec_data members to struct eh_status; change
4045 action_record_data member to a VEC.
4046 * gcse.c (hash_scan_set): Use can_throw_internal.
4047 * gengtype.c (open_base_files): Add target.h to gtype-desc.c.
4048 * gimple-iterator.c (gsi_replace): Use maybe_clean_or_replace_eh_stmt.
4049 * gimple-low.c (lower_stmt): Handle GIMPLE_EH_MUST_NOT_THROW.
4050 (block_may_fallthru): Don't handle RESX_EXPR.
4051 * gimple-pretty-print.c (dump_gimple_label): Dump EH_LANDING_PAD_NR.
4052 (dump_gimple_eh_must_not_throw, dump_gimple_eh_dispatch): New.
4053 (dump_gimple_stmt): Dump landing pad information with TDF_EH;
4054 handle GIMPLE_EH_MUST_NOT_THROW, GIMPLE_EH_DISPATCH.
4055 * gimple.c (gss_for_code): Handle GIMPLE_EH_MUST_NOT_THROW,
4056 GIMPLE_EH_DISPATCH, GIMPLE_RESX.
4057 (gimple_size): Likewise.
4058 (gimple_build_eh_dispatch, gimple_build_eh_must_not_throw): New.
4059 (gimple_build_resx): Use gimple_build_with_ops.
4060 (DEFTREECODE): Don't handle EXC_PTR_EXPR, FILTER_EXPR.
4061 (is_gimple_val): Likewise.
4062 (is_gimple_stmt): Remove RESX_EXPR.
4063 * gimple.def (GIMPLE_EH_MUST_NOT_THROW, GIMPLE_EH_DISPATCH): New.
4064 (GIMPLE_RESX): Reorder with other EH constructs.
4065 * gimple.h (struct gimple_statement_eh_mnt): New.
4066 (struct gimple_statement_eh_ctrl): Rename from gimple_statement_resx.
4067 (gimple_eh_filter_must_not_throw): Remove.
4068 (gimple_eh_filter_set_must_not_throw): Remove.
4069 (gimple_eh_must_not_throw_fndecl): New.
4070 (gimple_eh_dispatch_region, gimple_eh_dispatch_set_region): New.
4071 (is_gimple_resx): New.
4072 * gimplify.c (gimplify_expr): Don't handle EXC_PTR_EXPR, RESX_EXPR.
4073 Don't copy EH_FILTER_MUST_NOT_THROW.
4074 * gsstruct.def (GSS_EH_MNT, GSS_EHCONTROL): New.
4075 * ipa-inline.c (estimate_function_body_sizes): Don't try to
4076 handle must_not_throw_labels specially.
4077 * ipa-pure-const.c (check_call): Update debug statement for LP.
4078 * ipa-type-escape.c (check_operand): Don't handle EXC_PTR or FILTER.
4079 * ipa-utils.c (get_base_var): Likewise.
4080 * libfunc.h (LTI_unwind_resume, unwind_resume_libfunc): Remove.
4081 * lower-subreg.c (move_eh_region_note): Remove.
4082 (resolve_simple_move): Use copy_reg_eh_region_note_forward.
4083 * omp-low.c (new_omp_context): Update for eh_lp_nr.
4084 (create_task_copyfn): Likewise.
4085 (maybe_catch_exception): Use gimple_build_eh_filter.
4086 * optabs.c (emit_libcall_block): Update test for no-nonlocal-goto
4087 REG_EH_REGION. Use make_reg_eh_region_note_nothrow_nononlocal.
4088 * passes.c (init_optimization_passes): Add pass_lower_eh_dispatch
4089 and pass_lower_resx.
4090 * print-tree.c (print_node): Dump EH_LANDING_PAD_NR.
4091 * recog.c (peephole2_optimize): Use copy_reg_eh_region_note_backward,
4092 can_throw_internal, can_nonlocal_goto.
4093 * reload1.c (fixup_eh_region_note): Use insn_could_throw_p,
4094 copy_reg_eh_region_note_forward.
4095 (emit_input_reload_insns): Use copy_reg_eh_region_note_forward.
4096 (emit_output_reload_insns): Likewise.
4097 (copy_eh_notes): Remove.
4098 * rtl.def (RESX): Remove.
4099 * rtl.h: Update declarations.
4100 * sese.c (graphite_copy_stmts_from_block): Use maybe_duplicate_eh_stmt.
4101 * tree-cfg.c (make_edges): Handle GIMPLE_EH_DISPATCH.
4102 (update_eh_label): Remove.
4103 (cleanup_dead_labels_eh): New.
4104 (cleanup_deal_labels): Use it instead of update_eh_label.
4105 (gimple_merge_blocks): Update landing pad data structure when
4106 removing a landing pad label.
4107 (remove_useless_stmts_tc): Remove gimple_eh_filter_must_not_throw
4108 test; handle GIMPLE_EH_MUST_NOT_THROW.
4109 (is_ctrl_altering_stmt): Handle GIMPLE_EH_DISPATCH.
4110 (verify_gimple_assign_single): Don't handle EXC_PTR or FILTER_EXPR.
4111 (verify_types_in_gimple_stmt): Handle GIMPLE_EH_DISPATCH.
4112 (verify_stmt): Likewise. Verify landing pads.
4113 (gimple_redirect_edge_and_branch): Handle GIMPLE_EH_DISPATCH.
4114 (gimple_duplicate_bb): Use maybe_duplicate_eh_stmt.
4115 (struct move_stmt_d): Add eh_map.
4116 (move_stmt_eh_region_nr, move_stmt_eh_region_tree_nr): New.
4117 (move_stmt_r): Remap eh region numbers in builtin calls,
4118 resx and eh_dispatch.
4119 (move_block_to_fn): Remove eh_offset parameter. Use
4120 maybe_duplicate_eh_stmt_fn.
4121 (find_outermost_region_in_block): Operate on eh_region pointers
4122 instead of region numbers.
4123 (move_sese_region_to_fn): Expect eh_map instead of eh_offset from
4124 duplicate_eh_regions.
4125 * tree-cfgcleanup.c (tree_forwarder_block_p): Move entry block edge
4126 test earlier. Disallow EH landing pads.
4127 * tree-cfa.c (create_tree_common_ann): Don't set ann->rn.
4128 * tree-flow.h: Update declarations.
4129 (struct tree_ann_common_d): Replace rn with lp_nr.
4130 * tree-inline.c (copy_tree_body_r): Don't handle RESX_EXPR.
4131 (remap_eh_region_nr, remap_eh_region_tree_nr): New.
4132 (remap_gimple_stmt): Remap eh region numbers in builtin calls,
4133 resx and eh_dispatch.
4134 (copy_bb): Use maybe_duplicate_eh_stmt_fn.
4135 (copy_edges_for_bb): Use make_eh_dispatch_edges.
4136 (copy_cfg_body): Expect eh_map instead of eh_region_offset
4137 from duplicate_eh_regions.
4138 (estimate_num_insns): Don't handle EXC_PTR_EXPR or FILTER_EXPR;
4139 update RESX; handle EH_DISPATCH.
4140 (expand_call_inline): Set eh_lp_nr, not eh_region.
4141 (maybe_inline_call_in_expr): Likewise.
4142 * tree-inline.h (struct copy_body_data): Replace eh_region with
4143 eh_lp_nr, eh_region_offset with eh_map.
4144 * tree-optimize.c (execute_fixup_cfg): Use maybe_clean_eh_stmt.
4145 * tree-pass.h (pass_lower_eh_dispatch, pass_lower_resx): New.
4146 * tree-pretty-print.c (dump_generic_node): Don't handle
4147 EXC_PTR_EXPR, FILTER_EXPR, RESX_EXPR.
4148 * tree-sra.c (scan_function): Use maybe_clean_eh_stmt.
4149 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Don't handle
4150 EXC_PTR_EXPR, FILTER_EXPR.
4151 * tree-ssa-operands.c (get_expr_operands): Likewise.
4152 * tree-ssa-propagate.c (valid_gimple_rhs_p): Likewise.
4153 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
4154 (ao_ref_init_from_vn_reference): Likewise.
4155 * tree-ssa-sink.c (statement_sink_location): Likewise.
4156 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
4157 (mark_virtual_phi_result_for_renaming): Export. Tidy.
4158 * tree-ssa-pre.c (get_or_alloc_expr_for): Don't handle
4159 EXC_PTR_EXPR, FILTER_EXPR.
4160 (is_exception_related): Remove.
4161 (compute_avail): Don't call it.
4162 * tree-ssa-structalias.c: Remove VEC definitions for int and unsigned.
4163 * tree.c (find_decls_types_in_eh_region): Update for eh_region changes.
4164 (find_decls_types_in_node): Use FOR_ALL_EH_REGION_FN.
4165 (build_common_builtin_nodes): Add enable_cxa_end_cleanup parameter.
4166 Build EH builtins.
4167 (build_resx): Remove.
4168 * tree.def (EXC_PTR_EXPR, FILTER_EXPR, RESX_EXPR): Remove.
4169 * tree.h: Update declarations.
4170 (EH_FILTER_MUST_NOT_THROW): Remove.
4171 (struct tree_label_decl): Add eh_landing_pad_nr.
4172 (EH_LANDING_PAD_NR): New.
4173 * value-prof.c (gimple_ic): Tidy variable names. Update for
4174 landing pad numbers.
4175 (gimple_stringop_fixed_value): Tidy variable names. Assert
4176 that neither call stmt can throw.
4177 * vecprim.h (uchar): New.
4178 (VEC(uchar,heap), VEC(uchar,gc)): New.
4179
4180 * c-common.c (c_define_builtins): Update call to
4181 build_common_builtin_nodes.
4182 * c-parser.c (c_parse_file): Don't call
4183 default_init_unwind_resume_libfunc.
4184
4185 2009-09-14 Richard Sandiford <rdsandiford@googlemail.com>
4186
4187 * config/mips/mips-protos.h (mips_cfun_has_cprestore_slot_p): Declare.
4188 (mips_cprestore_address_p): Likewise.
4189 (mips_save_gp_to_cprestore_slot): Likewise.
4190 (mips_restore_gp): Rename to...
4191 (mips_restore_gp_from_cprestore_slot): ...this.
4192 (mips_must_initialize_gp_p): Declare.
4193 (mips_emit_save_slot_move): Likewise.
4194 (mips_output_load_label): Return nothing.
4195 (mips_eh_uses): Declare.
4196 * config/mips/mips.h (TARGET_SPLIT_CALLS): Require epilogue_completed.
4197 (TARGET_CPRESTORE_DIRECTIVE): New macro.
4198 (TARGET_ABSOLUTE_JUMPS): Likewise.
4199 (EH_USES): Likewise.
4200 (FIRST_PSEUDO_REGISTER): Update comment.
4201 (MIPS_ABSOLUTE_JUMP): New macro, extracted from...
4202 (MIPS_CALL): ...here.
4203 (REGISTER_NAMES): Add $cprestore.
4204 * config/mips/mips.c (machine_function): Remove has_gp_insn_p.
4205 Add load_label_length, has_inflexible_gp_insn_p,
4206 has_flexible_gp_insn_p, must_initialize_gp_p and
4207 must_restore_gp_when_clobbered_p.
4208 (mips_expand_call): Don't generate split instructions here.
4209 (mips_split_call): Update the call to mips_restore_gp after
4210 the above name change.
4211 (mips16_cfun_returns_in_fpr_p): Move earlier in file.
4212 (mips_find_gp_ref): New function.
4213 (mips_insn_has_inflexible_gp_ref_p): Likewise.
4214 (mips_cfun_has_inflexible_gp_ref_p): Likewise.
4215 (mips_insn_has_flexible_gp_ref_p): Likewise.
4216 (mips_cfun_has_flexible_gp_ref_p): Likewise.
4217 (mips_function_has_gp_insn): Delete.
4218 (mips_global_pointer): Drop the df_regs_ever_live_p check.
4219 Use the new functions above. Only return INVALID_REGNUM
4220 for TARGET_ABSOLUTE_JUMPS.
4221 (mips_must_initialize_gp_p): New function.
4222 (mips_get_cprestore_base_and_offset): New function, extracted from...
4223 (mips_cprestore_slot): ...here. Take a bool parameter.
4224 (mips_cfun_has_cprestore_slot_p): New function.
4225 (mips_cprestore_address_p): Likewise.
4226 (mips_save_gp_to_cprestore_slot): Likewise.
4227 (mips_restore_gp): Rename to...
4228 (mips_restore_gp_from_cprestore_slot): ...this. Assert
4229 epilogue_completed. Update the call to mips_cprestore_slot.
4230 Test cfun->machine->must_restore_gp_when_clobbered_p.
4231 (mips_direct_save_slot_move_p): New function.
4232 (mips_emit_save_slot_move): Likewise.
4233 (mips_output_cplocal): Test mips_must_initialize_gp_p () instead
4234 of cfun->machine->global_pointer.
4235 (mips_output_function_prologue): Check mips_must_initialize_gp_p ().
4236 (mips_save_reg): Use mips_emit_save_slot_move.
4237 (mips_expand_prologue): Set must_initialize_gp_p.
4238 Use mips_cfun_has_cprestore_slot_p. Use gen_potential_cprestore
4239 for all cprestore saves. Emit a use_cprestore instruction after
4240 setting up the cprestore slot.
4241 (mips_restore_reg): Use mips_emit_save_slot_move.
4242 (mips_process_load_label): New function.
4243 (mips_load_label_length): Likewise.
4244 (mips_output_load_label): Don't return asm: output it here instead.
4245 Use mips_process_load_label.
4246 (mips_adjust_insn_length): Adjust the length of branch instructions
4247 that have length MAX_PIC_BRANCH_LENGTH.
4248 (mips_output_conditional_branch): Update the call to
4249 mips_output_load_label. Assume the branch target is OPERANDS[0]
4250 rather than OPERANDS[1]. Use MIPS_ABSOLUTE_JUMP for absolute jumps.
4251 (mips_output_order_conditional_branch): Swap the meaning of
4252 OPERANDS[0] and OPERANDS[1].
4253 (mips_variable_issue): Don't count ghost instructions.
4254 (mips_expand_ghost_gp_insns): New function.
4255 (mips_reorg): Rerun mips_reorg_process_insns if it returns true.
4256 (mips_output_mi_thunk): Set must_initialize_gp_p.
4257 (mips_eh_uses): New function.
4258 * config/mips/predicates.md (cprestore_save_slot_operand)
4259 (cprestore_load_slot_operand): New predicates.
4260 * config/mips/mips.md (UNSPEC_POTENTIAL_CPRESTORE): New unspec.
4261 (UNSPEC_MOVE_GP): Likewise.
4262 (UNSPEC_CPRESTORE, UNSPEC_RESTORE_GP, UNSPEC_EH_RETURN)
4263 (UNSPEC_CONSTTABLE_INT, UNSPEC_CONSTTABLE_FLOAT): Bump to make room.
4264 (CPRESTORE_SLOT_REGNUM): New register.
4265 (MAX_PIC_BRANCH_LENGTH): New constant.
4266 (jal_macro): Use MIPS_ABSOLUTE_JUMPS.
4267 (length): Use MAX_PIC_BRANCH_LENGTH as a placeholder for PIC long
4268 branches. Fix commentary.
4269 (loadgp_newabi_<mode>): Change from unspec_volatile to unspec.
4270 Only split if mips_must_initialize_gp_p; expand to nothing otherwise.
4271 Change type to "ghost".
4272 (loadgp_absolute_<mode>): Likewise.
4273 (loadgp_rtp_<mode>): Likewise.
4274 (copygp_mips16): Likewise.
4275 (loadgp_blockage): Remove redundant mode attribute.
4276 (potential_cprestore): New instruction.
4277 (cprestore): Turn into an unspec set.
4278 (use_cprestore): New instruction.
4279 (*branch_fp): Swap operands 0 and 1. Remove redundant mode attribute.
4280 (*branch_fp_inverted): Likewise.
4281 (*branch_order<mode>): Likewise.
4282 (*branch_order<mode>_inverted): Likewise.
4283 (*branch_equality<mode>): Likewise.
4284 (*branch_equality<mode>_inverted): Likewise.
4285 (*branch_bit<bbv><mode>): Likewise.
4286 (*branch_bit<bbv><mode>_inverted): Likewise.
4287 (*branch_equality<mode>_mips16): Remove redundant mode.
4288 (jump): Turn into a define_expand.
4289 (*jump_absolute): New instruction.
4290 (*jump_pic): Likewise.
4291 (*jump_mips16): Rename previously-unnamed pattern. Remove
4292 redundant mode attribute.
4293 (restore_gp): Split on epilogue_completed rather than
4294 reload_completed. Change type to "ghost".
4295 (move_gp<mode>): New instruction.
4296 * config/mips/mips-dsp.md (mips_bposge): Swap operands 0 and 1.
4297 Remove redundant mode attribute.
4298 * config/mips/mips-ps-3d.md (bc1any4t): Likewise.
4299 (bc1any4f, bc1any2t, bc1any2f): Likewise.
4300 (*branch_upper_lower, *branch_upper_lower_inverted): Likewise.
4301
4302 2009-09-14 Michael Meissner <meissner@linux.vnet.ibm.com>
4303
4304 PR target/41210
4305 * config/rs6000/rs6000.c (rs6000_function_value): V2DF and V2DI
4306 are returned in the same register (vs34 or v2) that Altivec vector
4307 types are returned in.
4308 (rs6000_libcall_value): Ditto.
4309
4310 PR target/41331
4311 * config/rs6000/rs6000.c (rs6000_emit_move): Use gen_add3_insn
4312 instead of explicit addsi3/adddi3 calls.
4313 (rs6000_split_multireg_move): Ditto.
4314 (rs6000_emit_allocate_stack): Ditto.
4315 (rs6000_emit_prologue): Ditto.
4316 (rs6000_output_mi_thunk): Ditto.
4317
4318 * config/rs6000/rs6000.md (bswapdi*): Don't assume the pointer
4319 size is 64 bits if we can use 64-bit registers.
4320
4321 2009-09-14 Bernd Schmidt <bernd.schmidt@analog.com>
4322
4323 * config/bfin/bfin.c (bfin_longcall_p): Don't use short calls for weak
4324 symbols.
4325
4326 From Jie Zhang <jie.zhang@analog.com>:
4327 * config/bfin/bfin.c (bfin_expand_prologue): Ask do_link to
4328 save FP and RETS with saveall attribute.
4329 (bfin_expand_epilogue): Ask do_unlink to restore FP and RETS
4330 with saveall attribute.
4331
4332 * config/bfin/bfin.c (bfin_expand_builtin,
4333 case BFIN_BUILTIN_MULT_1X32X32): Force constants to registers for the
4334 operands.
4335
4336 From Jie Zhang <jie.zhang@analog.com>:
4337 * config/bfin/bfin.c (bfin_expand_builtin): Initialize icodes
4338 before use in two places.
4339 * config/bfin/bfin.md (AREG): Define mode iterator.
4340 (reload_in, reload_out): Use mode iterator AREG.
4341
4342 2009-09-14 Richard Guenther <rguenther@suse.de>
4343
4344 PR middle-end/41350
4345 * dwarf2out.c (dwarf2out_begin_prologue): Adjust non-CFI asm
4346 EH personality path.
4347
4348 2009-09-13 Richard Guenther <rguenther@suse.de>
4349 Rafael Avila de Espindola <espindola@google.com>
4350
4351 * langhooks-def.h (LANG_HOOKS_EH_RUNTIME_TYPE): Define.
4352 (LANG_HOOKS_EH_PERSONALITY): Likewise.
4353 (LANG_HOOKS_INITIALIZER): Adjust.
4354 (lhd_pass_through_t): Declare.
4355 * langhooks.h (struct lang_hooks): Add eh_runtime_type and
4356 eh_personality.
4357 * langhooks.c (lhd_pass_through_t): New function.
4358 * dwarf2out.c (output_call_frame_info, dwarf2out_do_cfi_startproc,
4359 dwarf2out_begin_prologue): Use personality from current_function_decl.
4360 * expr.h (get_personality_function): Declare.
4361 * expr.c (get_personality_function): New function.
4362 (build_personality_function): Likewise.
4363 * libfuncs.h (libfunc_index): Remove LTI_eh_personality.
4364 (eh_personality_libfunc): Remove.
4365 * optabs.c (build_libfunc_function): New function split out from ...
4366 (init_one_libfunc): ... here.
4367 * tree.h (DECL_FUNCTION_PERSONALITY): New.
4368 (tree_function_decl): Add personality.
4369 (lhd_gcc_personality): Declare.
4370 (build_personality_function): Likewise.
4371 * tree.c (gcc_eh_personality_decl): New.
4372 (lhd_gcc_personality): New function.
4373 * except.h (lang_eh_runtime_type): Remove.
4374 (enum eh_personality_kind): New.
4375 (build_personality_function): Declare.
4376 (function_needs_eh_personality): Declare.
4377 * except.c (lang_eh_runtime_type): Remove.
4378 (function_needs_eh_personality): New function.
4379 (add_type_for_runtime): Call lang_hooks.type_for_runtime instead.
4380 (sjlj_emit_function_enter, output_function_exception_table):
4381 Use personality from current_function_decl.
4382 * tree-eh.c (lower_eh_constructs): Set DECL_FUNCTION_PERSONALITY.
4383 * tree-inline.c (tree_can_inline_p): Do not inline across different
4384 EH personalities.
4385 (expand_call_inline): Likewise. Adjust the callers EH personality.
4386 (tree_function_versioning): Copy DECL_FUNCTION_PERSONALITY.
4387 * cgraph.c (cgraph_add_new_function): Set DECL_FUNCTION_PERSONALITY.
4388 * Makefile.in (cgraph.o): Add $(EXCEPT_H) dependency.
4389 (c-parser.o): Likewise
4390 * c-tree.h (c_eh_initialized_p): Remove.
4391 (c_maybe_initialize_eh): Likewise.
4392 * c-decl.c (finish_decl): Don't call c_maybe_initialize_eh.
4393 (finish_decl): Don't call c_maybe_initialize_eh.
4394 (c_eh_initialized_p): Remove.
4395 (c_maybe_initialize_eh): Likewise.
4396 * c-parser.c (c_parser_omp_construct): Likewise.
4397 (c_parse_file): Initialize exception handling.
4398
4399 2009-09-13 Kai Tietz <kai.tietz@onevision.com>
4400
4401 * config.gcc (tm_file): Remove i386/biarch32.h
4402 for i?86-w64-mingw* case.
4403 (i?86-*-mingw* andx86_64-*-mingw*): Add multilib
4404 support.
4405 * config.host: Set for x64 mingw the option
4406 use_long_long_for_widest_fast_int to yes.
4407
4408 2009-09-13 Eric Botcazou <ebotcazou@adacore.com>
4409
4410 * tree.h (DECL_IGNORED_P): Document further effect for FUNCTION_DECL.
4411 * dbxout.c (dbxout_function_end): Do not test DECL_IGNORED_P.
4412 (dbxout_begin_function): Likewise.
4413 * final.c (dwarf2_debug_info_emitted_p): New predicate.
4414 (final_start_function): Do not emit debug info if DECL_IGNORED_P is
4415 set on the function.
4416 (final_end_function): Likewise.
4417 (final_scan_insn): Likewise.
4418 (rest_of_handle_final): Likewise.
4419 * varasm.c (assemble_start_function): Likewise.
4420 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
4421
4422 2009-09-12 Jason Merrill <jason@redhat.com>
4423
4424 * dbgcnt.c (dbg_cnt_process_single_pair): constify.
4425 * opts.c (common_handle_option): constify.
4426
4427 2009-09-12 Gerald Pfeifer <gerald@pfeifer.com>
4428
4429 * doc/install.texi (avr): Remove obsolete reference site.
4430
4431 2009-09-12 Gerald Pfeifer <gerald@pfeifer.com>
4432
4433 * doc/install.texi (Binaries): Adjust AIX link.
4434
4435 2009-09-12 Akim Demaille <demaille@gostai.com>
4436
4437 * doc/invoke.texi (-fstrict-aliasing): Correct two examples.
4438 Use an imperative sentence.
4439
4440 2009-09-11 Richard Henderson <rth@redhat.com>
4441
4442 * gsstruct.def (DEFGSSTRUCT): Remove printable-name argument; add
4443 structure-name and has-tree-operands arguments; update all entries.
4444 * gimple.def (DEFGSCODE): Replace 3rd argument with GSS_symbol;
4445 update all entries.
4446 * gimple.c (gimple_ops_offset_): Use HAS_TREE_OP argument.
4447 (gsstruct_code_size): New.
4448 (gss_for_code_): New.
4449 (gss_for_code): Remove.
4450 (gimple_size): Rewrite using gsstruct_code_size.
4451 (gimple_statement_structure): Move to gimple.h.
4452 * gimple.h (gimple_ops_offset_, gss_for_code_): Declare.
4453 (gss_for_code, gimple_statement_structure): New.
4454 (gimple_ops): Use new arrays; tidy.
4455
4456 2009-09-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4457
4458 * config/pa/predicates.md (symbolic_operand): Require a CONST symbolic
4459 operand to be a PLUS expression.
4460 * config/pa/pa.c (pa_secondary_reload): Likewise.
4461
4462 2009-09-11 Jakub Jelinek <jakub@redhat.com>
4463
4464 * combine.c (propagate_for_debug_subst): Call wrap_constant on top.
4465
4466 * print-rtl.c (print_rtx): Use JUMP_LABEL (in_rtx) instead of
4467 XEXP (in_rtx, 8).
4468
4469 2009-09-11 Bernd Schmidt <bernd.schmidt@analog.com>
4470
4471 From Jie Zhang <jie.zhang@analog.com>:
4472 * doc/extend.texi (node Function Attributes): Document l2
4473 function attribute.
4474 (node Blackfin Variable Attributes): Document l2 variable attributes.
4475
4476 2009-09-11 Loren J. Rittle <ljrittle@acm.org>
4477
4478 * config.gcc (*-*-freebsd*): Enable default_use_cxa_atexit
4479 to match the system compiler's configuration at inflection point.
4480 Add comment to remark a remaining difference with system compiler.
4481
4482 * configure.ac (*-*-freebsd*): Enable check for __stack_chk_fail.
4483 * configure: Regenerate.
4484
4485 2009-09-11 Bernd Schmidt <bernd.schmidt@analog.com>
4486
4487 From Jie Zhang <jie.zhang@analog.com>:
4488 * config/bfin/bfin.c (bfin_expand_call): Handle L2 functions.
4489 (bfin_handle_l2_attribute): New.
4490 (bfin_attribute_table): Add l2 attribute.
4491
4492 2009-09-11 Michael Matz <matz@suse.de>
4493
4494 PR middle-end/41275
4495 * tree-inline.c (remap_decls): Don't put DECL_EXTERNAL decls
4496 on the local_decls list.
4497
4498 2009-09-11 Alexandre Oliva <aoliva@redhat.com>
4499
4500 PR debug/41276
4501 PR debug/41307
4502 * cselib.c (cselib_expand_value_rtx_cb): Document callback
4503 interface.
4504 (cselib_expand_value_rtx_1): Use callback for SUBREGs. Adjust
4505 for VALUEs, to implement the documented interface.
4506 * var-tracking.c (vt_expand_loc_callback): Handle SUBREGs.
4507 Adjust for VALUEs and anything else, to implement the
4508 documented interface.
4509
4510 2009-09-10 Nathan Froyd <froydnj@codesourcery.com>
4511
4512 * config/rs6000/rs6000.h (DATA_ALIGNMENT): Check that we are dealing
4513 with actual SPE/paired vector modes before using 64-bit alignment.
4514 Check that TYPE is a REAL_TYPE for TARGET_E500_DOUBLE.
4515
4516 2009-09-10 DJ Delorie <dj@redhat.com>
4517
4518 * config/mep/mep.md (eh_epilogue): Defer until after epilogue is
4519 emitted.
4520
4521 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): New.
4522 * config/mep/mep.c (mep_legitimate_constant_p): New.
4523 * config/mep/mep-protos.h: Prototype it.
4524
4525 2009-09-10 Richard Henderson <rth@redhat.com>
4526
4527 * print-rtl.c (print_rtx): Fix JUMP_LABEL index.
4528
4529 2009-09-10 Jason Merrill <jason@redhat.com>
4530
4531 * tree.c (chain_index): New fn.
4532 * tree.h: Declare it.
4533
4534 2009-09-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4535
4536 * config/sol2-c.c (cmn_err_length_specs): Initialize
4537 scalar_identity_flag.
4538
4539 2009-09-10 Richard Henderson <rth@redhat.com>
4540
4541 * tree.h (struct tree_decl_common): Move align member earlier;
4542 move label_decl_uid member ...
4543 (struct tree_label_decl): ... here.
4544 (LABEL_DECL_UID): Update to match.
4545
4546 * tree-cfg.c (dump_function_to_file): Dump eh tree with TDF_EH,
4547 not TDF_DETAILS.
4548
4549 * tree-cfg.c (gimple_redirect_edge_and_branch): Do
4550 gimple_try_redirect_by_replacing_jump test after no-op and EH tests.
4551
4552 * tree-cfg.c (split_edge_bb_loc): Don't disallow placement at
4553 dest_prev if the edge is complex.
4554
4555 * tree-cfg.c (is_ctrl_stmt): Use a switch.
4556
4557 * tree-cfg.c (gimple_can_merge_blocks_p): Move label and
4558 loop latch tests earlier.
4559
4560 * gimple-iterator.c (gimple_find_edge_insert_loc): Insert
4561 before GIMPLE_RETURN, not after its predecessor; insert
4562 before GIMPLE_RESX.
4563
4564 * gimple-iterator.c (gimple_find_edge_insert_loc): Use
4565 gimple_seq_empty_p to test for no PHI nodes.
4566 * tree-cfg.c (split_critical_edges): Likewise.
4567
4568 * c-common.h (c_dialect_cxx, c_dialect_objc): Boolify.
4569
4570 2009-09-10 Hariharan Sandanagobalane <hariharan@picochip.com>
4571
4572 * final.c (shorten_branches) : Ignore DEBUG_INSN_P instructions
4573 introduced by the VTA branch merge.
4574
4575 2009-09-10 Uros Bizjak <ubizjak@gmail.com>
4576
4577 * ira-conflicts.c: Use fputs or putc instead of fprintf
4578 where appropriate.
4579 * cfg.c: Ditto.
4580 * toplev.c: Ditto.
4581 * tree-switch-conversion.c: Ditto.
4582
4583 2009-09-10 Hariharan Sandanagobalane <hariharan@picochip.com>
4584
4585 * config/picochip/picochip.c : Ignore DEBUG_INSN_P instructions
4586 introduced by the VTA branch merge.
4587
4588 2009-09-10 Uros Bizjak <ubizjak@gmail.com>
4589
4590 Revert:
4591 2009-09-09 Uros Bizjak <ubizjak@gmail.com>
4592
4593 PR rtl-optimization/39779
4594 * expr.c (convert_modes): Return when mode == oldmode after
4595 CONST_INTs are processed.
4596
4597 2009-09-10 Nick Clifton <nickc@redhat.com>
4598
4599 * config/mep/mep.c (mep_encode_section_info): Copy weakness
4600 attribute and referring decl when creating renamed symbol.
4601
4602 2009-09-10 Richard Guenther <rguenther@suse.de>
4603
4604 PR middle-end/41257
4605 * cgraphunit.c (cgraph_emit_thunks): Emit thunks only for
4606 reachable nodes.
4607 (cgraph_finalize_compilation_unit): Compute reachability
4608 before emitting thunks. Properly process aliases before
4609 possibly removing unreachable nodes.
4610
4611 2009-09-10 Richard Guenther <rguenther@suse.de>
4612
4613 PR middle-end/41254
4614 * tree.c (struct free_lang_data_d): Add worklist member.
4615 (find_decls_types_r): Push onto the worklist instead of recursing.
4616 Handle TREE_BINFOs properly.
4617 (find_decls_types): New function wrapped around find_decls_types_r
4618 to process the worklist.
4619 (find_decls_types_in_eh_region): Use it.
4620 (find_decls_types_in_node): Likewise.
4621 (find_decls_types_in_var): Likewise.
4622 (free_lang_data_in_cgraph): Likewise. Free the worklist.
4623 * tree.h (RECORD_OR_UNION_TYPE_P): New.
4624 (AGGREGATE_TYPE_P): Adjust.
4625
4626 2009-09-09 Jason Merrill <jason@redhat.com>
4627
4628 * configure.ac: Check glibc version even if we have an in-tree
4629 assembler.
4630
4631 2009-09-09 Anthony Green <green@moxielogic.com>
4632
4633 * config/moxie/moxie.md (*movsi, *movhi, *movqi): Use xor to load
4634 the constant 0 when appropriate.
4635 * config/moxie/constraints.md: Add constraint O.
4636
4637 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Adjust
4638 to pass up to 6 32-bit argument values in registers.
4639 (moxie_function_arg): Ditto.
4640 (moxie_arg_partial_bytes): Ditto.
4641 * config/moxie/moxie.h (FUNCTION_ARG_ADVANCE): Ditto.
4642 (REG_PARM_STACK_SPACE): Ditto.
4643 (FUNCTION_ARG_REGNO_P): Ditto.
4644
4645 * config/moxie/moxie.c (moxie_expand_prologue): Use dec
4646 instruction to allocate stack space.
4647
4648 2009-09-09 Segher Boessenkool <segher@kernel.crashing.org>
4649
4650 * config/rs6000/rs6000.md (bswapdi2_64bit): Fix
4651 unnecessarily stringent constraints. Fix address
4652 calculation in the splitters.
4653
4654 2009-09-09 Uros Bizjak <ubizjak@gmail.com>
4655
4656 PR rtl-optimization/39779
4657 * expr.c (convert_modes): Return when mode == oldmode after
4658 CONST_INTs are processed.
4659
4660 2009-09-09 Kai Tietz <kai.tietz@onevision.com>
4661
4662 PR/41315
4663 * config/i386.c (ix86_can_use_return_insn_p): Check for padding0, too.
4664 (ix86_expand_prologue): Take frame.padding0 into logic of
4665 to_allocate checks.
4666 (ix86_expand_epilogue): Likewise.
4667
4668 2009-09-09 Jakub Jelinek <jakub@redhat.com>
4669
4670 * config/t-slibgcc-elf-ver (SHLIB_MAKE_SOLINK, SHLIB_INSTALL_SOLINK):
4671 New variables.
4672 (SHLIB_LINK, SHLIB_INSTALL): Use them.
4673 * config/t-slibgcc-libgcc: New file.
4674 * config.gcc (powerpc*-*-linux*, powerpc*-*-gnu*): Use it.
4675
4676 2009-09-09 Martin Jambor <mjambor@suse.cz>
4677
4678 PR tree-optimization/41089
4679 * tree-sra.c (find_var_candidates): Do not consider va_lists in
4680 early SRA.
4681
4682 2009-09-09 Richard Henderson <rth@redhat.com>
4683
4684 * gimple.h (CASE_GIMPLE_OMP): New.
4685 (is_gimple_omp): Use it.
4686 * tree-cfg.c (is_ctrl_altering_stmt): Likewise.
4687 (verify_gimple_debug): Likewise.
4688
4689 2009-09-09 Richard Guenther <rguenther@suse.de>
4690
4691 PR tree-optimization/41101
4692 * tree-ssa-pre.c (maximal_set): Remove.
4693 (compute_antic_aux): Treat the maximal set as implicitly all ones.
4694 Defer all blocks we didn't visit at least one successor.
4695 (add_to_exp_gen): Do not add to the maximal set.
4696 (make_values_for_phi): Likewise.
4697 (compute_avail): Likewise.
4698 (init_pre): Do not allocate the maximal set.
4699 (execute_pre): Do not dump it.
4700
4701 2009-09-09 Martin Jambor <mjambor@suse.cz>
4702
4703 * tree-cfg.c (verify_gimple_phi): Check that gimple_phi_result is
4704 an SSA_NAME rather than a is_gimple_variable.
4705
4706 2009-09-09 Richard Guenther <rguenther@suse.de>
4707
4708 PR middle-end/41317
4709 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Remove
4710 code dealing with plain pointer bases.
4711 (maybe_fold_offset_to_reference): Likewise.
4712 (maybe_fold_stmt_addition): Adjust.
4713
4714 2009-09-09 Richard Guenther <rguenther@suse.de>
4715
4716 * tree.c (free_lang_data_in_type): Do not free the type variant
4717 chains.
4718 (free_lang_data): Merge char_type_node with its properly signed
4719 variant.
4720 (pass_ipa_free): Collect after freeing language specific data.
4721
4722 2009-09-09 Michael Matz <matz@suse.de>
4723
4724 PR middle-end/41268
4725 * cfgexpand.c (expand_gimple_stmt_1): Use an int for storing
4726 SUBREG_PROMOTED_UNSIGNED_P, instead of a bool.
4727 * rtl.h (struct rtx, SUBREG_PROMOTED_UNSIGNED_P): Update comments
4728 to reflect reality.
4729
4730 2009-09-08 DJ Delorie <dj@redhat.com>
4731
4732 * config/mep/mep.c (conversions[]): Add "ml" pattern.
4733
4734 2009-09-04 Jason Merrill <jason@redhat.com>
4735
4736 * tree.c (tree_find_value): Remove.
4737 * tree.h: Remove prototype.
4738 * varasm.c (assemble_external): Use value_member instead.
4739
4740 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
4741
4742 * toplev.c (process_options): Choose default debugging type when
4743 gtoggle enables debug info and type is unset.
4744
4745 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
4746
4747 PR debug/41276
4748 PR debug/41307
4749 * cselib.c (cselib_expand_value_rtx_1): Don't return copy of
4750 invalid subreg.
4751
4752 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
4753
4754 * configure: Rebuilt with modified libtool.m4.
4755
4756 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
4757
4758 PR debug/41229
4759 PR debug/41291
4760 PR debug/41300
4761 * tree-ssa.c (execute_update_addresses_taken): Update debug insns.
4762
4763 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
4764
4765 * tree-ssa-loop-ivopts.c (get_phi_with_result): Remove.
4766 (remove_statement): Likewise.
4767 (rewrite_use_nonlinear_expr): Adjust.
4768 (remove_unused_ivs): Collect SSA NAMEs to remove and call...
4769 * tree-ssa.c (release_defs_bitset): ... this. New.
4770 * tree-flow.h (release_defs_bitset): Declare.
4771
4772 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
4773
4774 PR debug/41232
4775 * tree-ssa-phiopt.c (minmax_replacement): Skip debug stmts
4776 in the middle block.
4777
4778 2009-09-08 Kai Tietz <kai.tietz@onevision.com>
4779
4780 * tree-ssa-reassoc.c (find_operand_rank): Cast pointer
4781 via intptr_t to long type.
4782 (insert_operand_rank): Cast long type via intptr_t to
4783 pointer type.
4784 * genattrtab.c (RTL_HASH): Use intptr_t to cast from
4785 pointer to scalar.
4786 * c-pretty-print.c (pp_c_tree_decl_identifier): Cast
4787 from pointer to unsigned via uintptr_t.
4788
4789 * configure.ac (GCC_STDINT_TYPES): Initialize intptr_t,
4790 uintptr_t, HAVE_INTTYPES_H, HAVE_STDINT_H, HAVE_UINTPTR_T,
4791 and HAVE_INTPTR_T.
4792 * configure: Regenerated.
4793 * config.in: Regenerated
4794 * system.h (stdint.h): Add include.
4795 (inttypes.h): Likewise.
4796 * Makefile.in (aclocal): Add config/stdint.m4.
4797 * aclocal.m4: Regenerated.
4798
4799 2009-09-08 Bernd Schmidt <bernd.schmidt@analog.com>
4800
4801 * config/bfin/bfin.c (np_check_regno, np_after_branch): New static
4802 variables.
4803 (note_np_check_stores): New function.
4804 (harmless_null_pointer_p): New function.
4805 (trapping_loads_p): New args NP_REG and AFTER_NP_BRANCH. Callers
4806 changed. Take into account whether we're in the shadow of a condjump
4807 that tested NP_REG for NULL.
4808 Lose all code that tested for SEQUENCEs.
4809 (workaround_speculation): Avoid inserting NOPs for loads that are
4810 either always executed or a NULL pointer.
4811
4812 2009-09-08 Jan Hubicka <jh@suse.cz>
4813
4814 * doc/invoke.texi (early-inlining-insns): Reduce from 12 to 8.
4815 * params.def (early-inlining-insns): Likewise.
4816
4817 2009-09-08 Jakub Jelinek <jakub@redhat.com>
4818
4819 PR rtl-optimization/41239
4820 * sched-int.h (struct deps): Add last_function_call_may_noreturn field.
4821 * sched-rgn.c (deps_join): Join also last_function_call_may_noreturn
4822 lists.
4823 * sched-deps.c (sched_analyze_insn): Prevent moving trapping insns
4824 across calls, as the calls might not always return normally.
4825 (call_may_noreturn_p): New function.
4826 (deps_analyze_insn): Update last_function_call_may_noreturn list.
4827 (init_deps): Initialize it.
4828 (remove_from_deps): Also remove calls from
4829 last_function_call_may_noreturn list.
4830
4831 2009-09-07 Richard Henderson <rth@redhat.com>
4832
4833 * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't assume there are
4834 more VR->OPERANDS than LHS operands. Free LHS before returning.
4835
4836 2009-09-07 Bernd Schmidt <bernd.schmidt@analog.com>
4837
4838 * config/bfin/bfin.md (UNSPEC_VOLATILE_STALL): New constant.
4839 (attr "addrtype"): New member "spreg".
4840 Use it if mem_spfp_address_operand is true for the address.
4841 (attr "type"): New entry "stall".
4842 (cpu_unit "load"): New.
4843 (insn_reservations "load32", "loadp", "loadi"): Add reservation of
4844 "load".
4845 (insn_reservation "loadsp"): New.
4846 (insn_reservation "load_stall1"): New.
4847 (insn_reservation "load_stall3"): New.
4848 (stall): New insn.
4849 * config/bfin/predicates.md (const1_operand, const3_operand): New.
4850 (mem_p_address_operand): Exclude stack and frame pointer based
4851 addresses.
4852 (mem_spfp_address_operand): New; match them here.
4853 * config/bfin/bfin.c (add_sched_insns_for_speculation): New function.
4854 (bfin_reorg): Call it if scheduling insns.
4855 (bfin_gen_bundles): Remove dummy insns created by
4856 add_sched_insns_for_speculation.
4857
4858 From Jie Zhang <jie.zhang@analog.com>:
4859 * config/bfin/bfin-protos.h (enum bfin_cpu_type, bfin_cpu_type,
4860 bfin_si_revision, bfin_workarounds): Move these ...
4861 * config/bfin/bfin.h: ... here.
4862
4863 From Mike Frysinger <michael.frysinger@analog.com>
4864 * config/bfin/bfin-protos.h (bfin_cpu_type): Add BFIN_CPU_BF542M,
4865 BFIN_CPU_BF544M, BFIN_CPU_BF547M, BFIN_CPU_BF548M, and BFIN_CPU_BF549M.
4866 * config/bfin/bfin.c (bfin_cpus[]): Add 0.3 for bf542m, bf544m,
4867 bf547m, bf548m, and bf549m.
4868 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define __ADSPBF542M__
4869 for BFIN_CPU_BF542M, __ADSPBF544M__ for BFIN_CPU_BF544M,
4870 __ADSPBF547M__ for BFIN_CPU_BF547M, __ADSPBF548M__ for
4871 BFIN_CPU_BF548M, and __ADSPBF549M__ for BFIN_CPU_BF549M.
4872 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
4873 bf542m-none, bf544m-none, bf547m-none, bf548m-none, and bf549m-none.
4874 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
4875 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
4876 * doc/invoke.texi (Blackfin Options): Document that -mcpu now accepts
4877 bf542m, bf544m, bf547m, bf548m, and bf549m.
4878
4879 From Jie Zhang <jie.zhang@analog.com>:
4880 * config/bfin/predicates.md (p_register_operand): New predicate.
4881 (dp_register_operand): New predicate.
4882 * config/bfin/bfin-protos.h (WA_05000074): Define.
4883 (ENABLE_WA_05000074): Define.
4884 * config/bfin/bfin.c (bfin_cpus[]): Add WA_05000074 for all cpus.
4885 (bfin_gen_bundles): Put dsp32shiftimm instruction in slot[0].
4886 * config/bfin/bfin.md (define_attr type): Add dsp32shiftimm.
4887 (define_attr addrtype): Allow load/store register to be P register.
4888 (define_attr storereg): New.
4889 (define_cpu_unit anomaly_05000074): New.
4890 (define_insn_reservation dsp32shiftimm): New.
4891 (define_insn_reservation dsp32shiftimm_anomaly_05000074): New.
4892 (define_insn_reservation loadp): Cannot use slot2.
4893 (define_insn_reservation loadsp): Cannot use slot2.
4894 (define_insn_reservation storep): Cannot use slot2. Does not
4895 apply when working around 05000074.
4896 (define_insn_reservation storep_anomaly_05000074): New.
4897 (define_insn_reservation storei): Does not apply when working
4898 around 05000074.
4899 (define_insn_reservation storei_anomaly_05000074): New.
4900 (define_attr length): Add dsp32shiftimm case.
4901 (define_insn movsi_insn32, movsi_insv, ashlsi3_insn, ashrsi3,
4902 ror_one, rol_one, lshrsi3, lshrpdi3, ashrpdi3, movhiv2hi_low,
4903 movhiv2hi_high, composev2hi, packv2hi, movv2hi_hi,
4904 ssashiftv2hi3, ssashifthi3, ssashiftsi3, lshiftv2hi3, lshifthi3):
4905 Set type as dsp32shiftimm for dsp32shiftimm alternatives.
4906
4907 2009-09-07 Martin Jambor <mjambor@suse.cz>
4908
4909 PR middle-end/41282
4910 * tree-sra.c (create_artificial_child_access): Return NULL if
4911 build_ref_for_offset fails.
4912 (propagate_subacesses_accross_link): Allow build_ref_for_offset
4913 and create_artificial_child_access to fail.
4914
4915 2009-09-06 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
4916
4917 PR c++/41214
4918 * unwind-dw2.c (uw_init_context_1): Mark noinline.
4919 * config/ia64/unwind-ia64.c (uw_init_context_1): Likewise.
4920 * config/xtensa/unwind-dw2-xtensa.c (uw_init_context_1): Likewise.
4921
4922 2009-09-07 Bernd Schmidt <bernd.schmidt@analog.com>
4923
4924 * config/bfin/bfin.c (bfin_optimize_loop): When creating a new basic
4925 block, ensure it has an exit edge. Emit a barrier after a jump.
4926
4927 2009-09-07 Nick Clifton <nickc@redhat.com>
4928
4929 * gcc.c (this_is_linker_script): New variable. Like
4930 this_is_library_file but for the %T constructor.
4931 (end_going_arg): If this_is_linker_script is set then locate the
4932 script and insert a --script switch before it
4933 (do_spec_2): Initialise this_is_linker_script.
4934 (do_spec_1): Likewise. Handle %T construct.
4935 (eval_spec_function): Preserve this_is_linker_script.
4936 * doc/invoke.texi: Document %T construct in spec files.
4937 * config/m32c/m32c.h (LIB_SPEC): Use it.
4938
4939 2009-09-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4940
4941 * rtl.h (PREFETCH_SCHEDULE_BARRIER_P): New macro.
4942 * sched-deps.c (sched_analyze_2): Make prefetches a hard barrier
4943 when volatile flag is set.
4944 * doc/rtl.texi (PREFETCH_SCHEDULE_BARRIER_P): Add documentation pieces.
4945
4946 2009-09-06 Eric Botcazou <ebotcazou@adacore.com>
4947
4948 PR bootstrap/41241
4949 * combine-stack-adj.c (try_apply_stack_adjustment): Handle stores.
4950 (combine_stack_adjustments_for_block): Allow insns between stack
4951 adjustments and stores with corresponding pre-(dec|inc)rement or
4952 pre-modify operation.
4953
4954 2009-09-06 Jakub Jelinek <jakub@redhat.com>
4955
4956 PR bootstrap/41241
4957 * combine-stack-adj.c (struct csa_memlist): Rename to...
4958 (struct csa_reflist): ... this. Rename mem field to ref.
4959 (free_csa_memlist): Rename to...
4960 (free_csa_reflist): ... this.
4961 (record_one_stack_memref): Rename to...
4962 (record_one_stack_ref): ... this. Handle also REG_P.
4963 (try_apply_stack_adjustment): Handle also REG_P.
4964 (struct record_stack_memrefs_data): Rename to...
4965 (struct record_stack_refs_data): ... this. Rename memlist field to
4966 reflist.
4967 (record_stack_memrefs): Rename to...
4968 (record_stack_refs): ... this. For DEBUG_INSNs keep traversing
4969 subexpressions instead of failing when a MEM contains SP references.
4970 For SP itself in DEBUG_INSNs queue it also onto reflist chain.
4971 (combine_stack_adjustments_for_block): Adjust for mem to ref renaming.
4972
4973 2009-09-06 Richard Guenther <rguenther@suse.de>
4974
4975 PR middle-end/41144
4976 * tree.c (build_array_type): Do not record types marked
4977 with structural equality in the canonical type hashtable.
4978
4979 2009-09-06 Richard Guenther <rguenther@suse.de>
4980
4981 PR middle-end/41261
4982 * tree-ssa-alias.c (refs_may_alias_p_1): Bail out for function decls.
4983
4984 2009-09-05 Richard Guenther <rguenther@suse.de>
4985
4986 PR middle-end/41181
4987 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Use the correct type.
4988
4989 2009-09-05 Richard Guenther <rguenther@suse.de>
4990
4991 PR debug/41273
4992 * tree-ssa-operands.c (get_tmr_operands): Pass through opf_no_vops.
4993
4994 2009-09-05 Richard Guenther <rguenther@suse.de>
4995
4996 PR middle-end/41271
4997 * tree-ssa.c (useless_type_conversion_p): Drop qualifiers
4998 before comparing function argument types.
4999
5000 2009-09-05 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
5001
5002 PR target/41024
5003 * config/i386/mingw-w64.h (ASM_SPEC): Pass -v instead of -V to
5004 the assembler.
5005
5006 2009-09-04 Uros Bizjak <ubizjak@gmail.com>
5007
5008 Revert:
5009 2009-08-18 Uros Bizjak <ubizjak@gmail.com>
5010
5011 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn
5012 locators before emit_insn is called.
5013
5014 2009-09-04 Vladimir Makarov <vmakarov@redhat.com>
5015
5016 PR bootstrap/41241
5017 * ira.c (update_equiv_reg): Revert my previous patch for the PR.
5018 * reginfo.c (resize_reg_info): Call allocate_reg_info if necessary.
5019 (reginfo_init): Don't call allocate_reg_info.
5020
5021 2009-09-04 Uros Bizjak <ubizjak@gmail.com>
5022
5023 PR target/41262
5024 * config/alpha/alpha.c (alpha_does_function_need_gp): Use
5025 NONDEBUG_INSN_P instead of INSN_P.
5026
5027 2009-09-04 Alexandre Oliva <aoliva@redhat.com>
5028
5029 PR debug/41225
5030 * tree-vect-stmts.c (vect_stmt_relevant_p): Skip debug uses.
5031
5032 2009-09-04 Alexandre Oliva <aoliva@redhat.com>
5033
5034 PR target/41252
5035 * config/arm/vfp.md (*cmpdf_split_vfp): Fix src mode in the second
5036 pattern of the split.
5037
5038 2009-09-04 Alexandre Oliva <aoliva@redhat.com>
5039
5040 * toplev.c (process_options): Move setter of flag_var_tracking
5041 before other tests that depend on it. Move down setter of
5042 flag_rename_registers. Don't enable var-tracking-assignments
5043 by default if selective scheduling is enabled. Warn if both
5044 are enabled.
5045
5046 2009-09-04 Alexandre Oliva <aoliva@redhat.com>
5047
5048 * var-tracking.c (dv_is_decl_p): Adjust NULL behavior to match
5049 comment. Use switch statement to catch overlaps between rtx
5050 and tree codes. Accept FUNCTION_DECLs in addition to those in...
5051 (IS_DECL_CODE): ... here. Remove.
5052 (check_value_is_not_decl): Remove.
5053 (dv_from_decl, dv_from_value): Check after conversion.
5054
5055 2009-09-04 Richard Guenther <rguenther@suse.de>
5056
5057 PR middle-end/41257
5058 * (cgraph_finalize_compilation_unit): Move finalizing aliases
5059 after emitting tunks. Move emitting thunks and ctors from ...
5060 (cgraph_optimize): ... here. Remove redundant
5061 cgraph_analyze_functions.
5062 * varasm.c (find_decl_and_mark_needed): Remove no longer
5063 necessary check.
5064 (finish_aliases_1): Adjust check for thunk aliases.
5065
5066 2009-09-04 Daniel Gutson <dgutson@codesourcery.com>
5067
5068 * config/arm/arm.md (ctzsi2): Added braces
5069 to avoid warning that broke booststrap.
5070
5071 2009-09-04 Martin Jambor <mjambor@suse.cz>
5072
5073 PR tree-optimization/41112
5074 * tree-sra.c (build_ref_for_offset_1): Signal that we cannot
5075 handle variable-bounded arrays.
5076 (expr_with_var_bounded_array_refs_p): New function.
5077 (analyze_access_subtree): Call expr_with_var_bounded_array_refs_p.
5078
5079 2009-09-04 Wolfgang Gellerich <gellerich@de.ibm.com>
5080
5081 * config/s390/2097.md: Removed two incorrect bypasses.
5082 (z10_fsimpdf): Fixed latency.
5083 (z10_fhex): New insn_reservation.
5084 (z10_floaddf): Fixed latency.
5085 (z10_floadsf): Fixed latency.
5086 (z10_ftrunctf): Fixed latency.
5087 (z10_ftruncdf): Fixed latency.
5088 * config/s390/s390.c (z10_cost): Fixed values.
5089 (s390_adjust_priority): Added z10 path.
5090 * config/s390/s390.md (type): Added fhex.
5091 (*mov<mode>_64dfp): Updated type attribute.
5092 (*mov<mode>_64): Updated type attribute.
5093 (*mov<mode>_31): Updated type attribute.
5094 (*mov<mode>"): Likewise.
5095 * config/s390/2084.md (x_fsimpdf): Updated condition.
5096
5097 2009-09-04 Andreas Krebbel <krebbel1@de.ibm.com>
5098
5099 * config/s390/s390.md ("*fmadd<mode>", "*fmsub<mode>"): Enable mem
5100 RTXs in the predicate for operand 1.
5101
5102 2009-09-03 Daniel Gutson <dgutson@codesourcery.com>
5103
5104 * config/arm/arm.md (UNSPEC_RBIT): New constant.
5105 (rbitsi2): New insn.
5106 (ctzsi2): New expand.
5107 * config/arm/arm.h (CTZ_DEFINED_VALUE_AT_ZERO): New macro.
5108
5109 2009-09-03 Martin Jambor <mjambor@suse.cz>
5110
5111 * tree-sra.c (duplicate_expr_for_different_base): Removed.
5112 (create_artificial_child_access): Use build_ref_for_offset instead
5113 of duplicate_expr_for_different_base.
5114 (propagate_subacesses_accross_link): Likewise.
5115
5116 2009-09-03 Richard Sandiford <rdsandiford@googlemail.com>
5117
5118 * config/mips/mips.c (USEFUL_INSN_P): Use NONDEBUG_INSN_P instead
5119 of INSN_P.
5120 (mips16e_collect_argument_saves): Skip debug instructions.
5121 (mips_74k_agen_init): Use CALL_P || JUMP_P instead of !NONJUMP_INSN_P.
5122 (mips16_lay_out_constants): Use USEFUL_INSN_P instead of INSN_P.
5123 (r10k_insert_cache_barriers): Likewise.
5124 (mips_reorg_process_insns): Likewise.
5125
5126 2009-09-03 Vladimir Makarov <vmakarov@redhat.com>
5127
5128 PR bootstrap/41241
5129 * ira.c (update_equiv_reg): Remove check on class likely spill.
5130
5131 2009-09-03 Jakub Jelinek <jakub@redhat.com>
5132
5133 PR debug/41236
5134 * dwarf2out.c (loc_descriptor): Don't use SUBREG_REG macro on
5135 SIGN_EXTEND or ZERO_EXTEND. Don't assume there is a REG inside of
5136 it or SUBREG.
5137
5138 PR debug/41238
5139 * function.c (assign_parm_find_stack_rtl): Don't set mem attributes on
5140 the stack slot if it is passed by invisible reference.
5141 * var-tracking.c (vt_add_function_parameters): Handle arguments passed
5142 by invisible reference.
5143
5144 2009-09-03 Bernd Schmidt <bernd.schmidt@analog.com>
5145
5146 * config/bfin/linux.h (TARGET_SUPPORTS_SYNC_CALLS): Define to 1.
5147 * config/bfin/uclinux.h (TARGET_SUPPORTS_SYNC_CALLS): Define to 1.
5148 * config/bfin/bfin.h (TARGET_SUPPORTS_SYNC_CALLS): Provide default of
5149 0.
5150 * config/bfin/sync.md: New file.
5151 * config/bfin/bfin.md: Include it.
5152 (UNSPEC_ATOMIC): New.
5153 (UNSPEC_ONES): Provide a unique number.
5154
5155 From Jie Zhang <jie.zhang@analog.com>:
5156 * config/bfin/bfin.c (ret_regs): New.
5157 (must_save_fp_p): Don't return true because of frame_pointer_needed.
5158 (must_save_rets_p): New.
5159 (n_regs_saved_by_prologue): Use must_save_rets_p instead of
5160 current_function_is_leaf.
5161 (do_link): Likewise.
5162 (do_unlink): Likewise.
5163 (expand_interrupt_handler_prologue): Use ret_regs array.
5164 (expand_interrupt_handler_epilogue): Use ret_regs array and
5165 pass return register to gen_return_internal.
5166 (bfin_expand_epilogue): Pass return register to
5167 gen_return_internal.
5168 (bfin_expand_call): Explicitly clobber RETS.
5169 * config/bfin/bfin.h (FUNCTION_RETURN_REGISTERS): Define.
5170 * config/bfin/bfin.md (call_symbol_fdpic, call_value_symbol_fdpic,
5171 call_insn_fdpic, call_value_insn_fdpic, call_symbol,
5172 call_value_symbol, call_insn, call_value_insn): Explicitly clobber
5173 RETS.
5174 (return_internal): Take a reg rtx rather than the register number.
5175
5176 2009-09-03 H.J. Lu <hongjiu.lu@intel.com>
5177
5178 * tree-parloops.c (parallelize_loops): Cast to HOST_WIDE_INT
5179 when comparing against estimated_loop_iterations_int return.
5180
5181 2009-09-03 Richard Guenther <rguenther@suse.de>
5182
5183 * dwarf2out.c (dwarf2out_do_cfi_asm): Remove check of
5184 eh_personality_libfunc.
5185
5186 2009-09-03 Razya Ladelsky <razya@il.ibm.com>
5187
5188 * tree-parloops.c (separate_decls_in_region): Add space.
5189
5190 2009-09-03 Razya Ladelsky <razya@il.ibm.com>
5191
5192 * tree-parloops.c (separate_decls_in_region): Change the condition
5193 checking if there are reductions in the loop.
5194
5195 2009-09-03 Razya Ladelsky <razya@il.ibm.com>
5196
5197 PR tree-optimization/38275
5198 * tree-parloops.c (parallelize_loops): Replace profitability condition
5199 for expected number of iterations.
5200
5201 2009-09-03 Alexandre Oliva <aoliva@redhat.com>
5202
5203 * doc/invoke.texi (BUILD_CONFIG): Document --with-build-config.
5204 (bootstrap-debug): Explain conditions in which it becomes default.
5205 (bootstrap-debug-big): Rather than duplicate bootstrap-debug,
5206 make it add to it.
5207
5208 2009-09-03 Namhyung Kim <namhyung@gmail.com>
5209
5210 * doc/invoke.texi (Optimize Options): Move
5211 -finline-small-functions to the -O2 list.
5212
5213 2009-09-03 Alexandre Oliva <aoliva@redhat.com>
5214
5215 * toplev.c (process_options): Enable var-tracking-assignments
5216 by default if var-tracking is enabled.
5217
5218 2009-09-02 David Daney <ddaney@caviumnetworks.com>
5219
5220 * cfgbuild.c (find_bb_boundaries): Split blocks containing a
5221 barrier.
5222 * emit-rtl.c (prev_nonnote_insn_bb): New function.
5223 * rtl.h (prev_nonnote_insn_bb): Declare it.
5224
5225 2009-09-03 Diego Novillo <dnovillo@google.com>
5226
5227 * cgraph.c (cgraph_node_for_decl): New.
5228 * cgraph.h (cgraph_node_for_decl): Declare.
5229 * tree.c (host_integerp): Return 0 if T is NULL.
5230
5231 2009-09-03 Diego Novillo <dnovillo@google.com>
5232
5233 * tree.h (struct alias_pair): Move from varasm.c.
5234 (alias_pairs): Likewise.
5235 (TYPE_MAXVAL): Define.
5236 (TYPE_MINVAL): Define.
5237 (iterative_hash_host_wide_int): Declare.
5238 (remove_unreachable_alias_pairs): Declare.
5239 * tree-pass.h (pass_ipa_free_lang_data): Declare.
5240 * diagnostic.c (default_diagnostic_starter): Make extern.
5241 (default_diagnostic_finalizer): Make extern.
5242 * diagnostic.h (default_diagnostic_starter): Declare.
5243 (default_diagnostic_finalizer): Declare.
5244 (default_tree_printer): Declare.
5245 * toplev.c (default_tree_printer): Make extern.
5246
5247 2009-09-03 Richard Guenther <rguenther@suse.de>
5248 Diego Novillo <dnovillo@google.com>
5249
5250 * cgraph.c (cgraph_add_new_function): Remove gimplification.
5251 * cgraphunit.c (cgraph_expand_function): Do not emit
5252 associated thunks from here.
5253 (cgraph_emit_thunks): New.
5254 (cgraph_optimize): Call it.
5255 Return if any IPA pass finds an error.
5256 * varasm.c (finish_aliases_1): Ignore errorneous aliases used
5257 by thunks.
5258
5259 2009-09-03 Simon Baldwin <simonb@google.com>
5260 Rafael Espindola <espindola@google.com>
5261 Richard Guenther <rguenther@suse.de>
5262 Doug Kwan <dougkwan@google.com>
5263 Diego Novillo <dnovillo@google.com>
5264
5265 * tree.c: Include tree-pass.h, langhooks-def.h,
5266 diagnostic.h, cgraph.h, timevar.h, except.h and debug.h.
5267 (free_lang_data_in_type): New.
5268 (need_assembler_name_p): New.
5269 (free_lang_data_in_block): New.
5270 (free_lang_data_in_decl): New.
5271 (struct free_lang_data_d): New.
5272 (add_tree_to_fld_list): New.
5273 (find_decls_types_r): New.
5274 (get_eh_types_for_runtime): New.
5275 (find_decls_types_in_eh_region): New.
5276 (find_decls_types_in_node): New.
5277 (find_decls_types_in_var): New.
5278 (free_lang_data_in_cgraph): New.
5279 (free_lang_data): New.
5280 (gate_free_lang_data): New.
5281 (pass_ipa_free_lang_data): New.
5282
5283 2009-09-03 Diego Novillo <dnovillo@google.com>
5284
5285 * timevar.def (TV_IPA_FREE_LANG_DATA): Define.
5286 * langhooks.h (struct lang_hooks): Add field free_lang_data.
5287 (lang_hooks): Remove const qualifier.
5288 * ipa.c (cgraph_remove_unreachable_nodes): Call
5289 remove_unreachable_alias_pairs.
5290 * except.c (add_type_for_runtime): Check if TYPE has
5291 already been converted.
5292 (lookup_type_for_runtime): Likewise.
5293 (check_handled): Handle converted types.
5294 * varasm.c (remove_unreachable_alias_pairs): New.
5295 * gimple.c: Include demangle.h.
5296 (gimple_decl_printable_name): New.
5297 (gimple_fold_obj_type_ref): New.
5298 * gimple.h (gimple_decl_printable_name): Declare.
5299 (gimple_fold_obj_type_ref): Declare.
5300 * passes.c (init_optimization_passes): Add pass
5301 pass_ipa_free_lang_data.
5302 * langhooks-def.h (LANG_HOOKS_FREE_LANG_DATA): Define.
5303 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_FREE_LANG_DATA.
5304
5305 2009-09-03 Diego Novillo <dnovillo@google.com>
5306
5307 * c-lang.c (lang_hooks): Remove const qualifier.
5308
5309 2009-09-02 Loren James Rittle <ljrittle@acm.org>
5310
5311 * doc/install.texi (*-*-freebsd*): Update target information.
5312
5313 2009-09-02 Anatoly Sokolov <aesok@post.ru>
5314
5315 * hard-reg-set.h (call_fixed_regs): Remove.
5316 * reginfo.c (call_fixed_regs): Remove.
5317 (init_reg_sets_1): Remove initialization of call_fixed_regs.
5318 (globalize_reg): Don't use call_fixed_regs.
5319 * caller-save.c (init_caller_save): Use call_fixed_reg_set instead of
5320 call_fixed_regs.
5321
5322 2009-09-01 Michael Matz <matz@suse.de>
5323
5324 * expr.h (emit_storent_insn, expand_expr_real_1,
5325 expand_expr_real_2): Declare.
5326 * expr.c (emit_storent_insn, expand_expr_real_1,
5327 expand_expr_real_2): Export.
5328 (store_expr): Setting and evaluating dont_return_target is useless.
5329 (expand_expr_real_1, <case GOTO_EXPR, RETURN_EXPR, SWITCH_EXPR,
5330 LABEL_EXPR and ASM_EXPR>): Move to gcc_unreachable.
5331 * except.c (expand_resx_expr): Rename to ...
5332 (expand_resx_stmt): ... this. Rewrite to take gimple statement.
5333 * except.h (expand_resx_stmt): Declare.
5334 * stmt.c: Add include gimple.h
5335 (expand_asm_expr): Rename to ...
5336 (expand_asm_stmt): ... this. Rewrite to take gimple statement.
5337 (expand_case): Rewrite to take gimple statement.
5338 * tree.h (expand_asm_stmt): Declare.
5339 (expand_case): Change prototype.
5340 * Makefile.in (stmt.o): Depend on gimple.h.
5341 * builtins.c (expand_builtin_synchronize): Build gimple asm
5342 statement, not an ASM_EXPR.
5343 * cfgexpand.c (gimple_cond_pred_to_tree, set_expr_location_r,
5344 gimple_to_tree, release_stmt_tree): Remove.
5345 (expand_gimple_cond): Don't call gimple_cond_pred_to_tree or
5346 ggc_free, but hold comparison code and operands separately.
5347 Call jumpif_1 and jumpifnot_1 instead of jumpif and jumpifnot.
5348 (expand_call_stmt, expand_gimple_stmt_1,
5349 expand_gimple_stmt): New helpers.
5350 (expand_gimple_tailcall): Don't call gimple_to_tree, expand_expr_stmt,
5351 release_stmt_tree. Call expand_gimple_stmt instead.
5352 (expand_gimple_basic_block): Ditto.
5353
5354 * calls.c (emit_call_1): Don't look at EH regions here, make
5355 fntree parameter useless.
5356 (expand_call): New local rettype for TREE_TYPE(exp), use it
5357 throughout. Remove local p, use addr instead.
5358 Don't look at EH regions here.
5359
5360 2009-09-02 Vladimir Makarov <vmakarov@redhat.com>
5361
5362 * doc/invoke.texi (-fsched-pressure): Document it.
5363 (-fsched-reg-pressure-heuristic): Remove it.
5364
5365 * reload.c (ira.h): Include.
5366 (find_reloads): Add choosing reload on number of small spilled
5367 classes.
5368
5369 * haifa-sched.c (ira.h): Include.
5370 (sched_pressure_p, sched_regno_cover_class, curr_reg_pressure,
5371 saved_reg_pressure, curr_reg_live, saved_reg_live,
5372 region_ref_regs): New variables.
5373 (sched_init_region_reg_pressure_info, mark_regno_birth_or_death,
5374 initiate_reg_pressure_info, setup_ref_regs,
5375 initiate_bb_reg_pressure_info, save_reg_pressure,
5376 restore_reg_pressure, dying_use_p, print_curr_reg_pressure): New
5377 functions.
5378 (setup_insn_reg_pressure_info): New function.
5379 (rank_for_schedule): Add pressure checking and insn issue time.
5380 Remove comparison of insn reg weights.
5381 (ready_sort): Set insn reg pressure info.
5382 (update_register_pressure, setup_insn_max_reg_pressure,
5383 update_reg_and_insn_max_reg_pressure,
5384 sched_setup_bb_reg_pressure_info): New functions.
5385 (schedule_insn): Add code for printing and updating reg pressure info.
5386 (find_set_reg_weight, find_insn_reg_weight): Remove.
5387 (ok_for_early_queue_removal): Do nothing if pressure_only_p.
5388 (debug_ready_list): Print reg pressure info.
5389 (schedule_block): Ditto. Check insn issue time.
5390 (sched_init): Set up sched_pressure_p. Allocate and set up some
5391 reg pressure related info.
5392 (sched_finish): Free some reg pressure related info.
5393 (fix_tick_ready): Make insn always ready if pressure_p.
5394 (init_h_i_d): Don't call find_insn_reg_weight.
5395 (haifa_finish_h_i_d): Free insn reg pressure info.
5396
5397 * ira-int.h (ira_hard_regno_cover_class, ira_reg_class_nregs,
5398 ira_memory_move_cost, ira_class_hard_regs,
5399 ira_class_hard_regs_num, ira_no_alloc_regs,
5400 ira_available_class_regs, ira_reg_class_cover_size,
5401 ira_reg_class_cover, ira_class_translate): Move to ira.h.
5402
5403 * ira-lives.c (single_reg_class): Check mode to find how many
5404 registers are necessary for operand.
5405 (ira_implicitly_set_insn_hard_regs): New.
5406
5407 * common.opt (fsched-pressure): New options.
5408 (fsched-reg-pressure-heuristic): Remove.
5409
5410 * ira.c (setup_eliminable_regset): Rename to
5411 ira_setup_eliminable_regset. Make it external.
5412 (expand_reg_info): Pass cover class to setup_reg_classes.
5413 (ira): Call resize_reg_info instead of allocate_reg_info.
5414
5415 * sched-deps.c: Include ira.h.
5416 (implicit_reg_pending_clobbers, implicit_reg_pending_uses): New.
5417 (create_insn_reg_use, create_insn_reg_set, setup_insn_reg_uses,
5418 reg_pressure_info, insn_use_p, mark_insn_pseudo_birth,
5419 mark_insn_hard_regno_birth, mark_insn_reg_birth,
5420 mark_pseudo_death, mark_hard_regno_death, mark_reg_death,
5421 mark_insn_reg_store, mark_insn_reg_clobber,
5422 setup_insn_reg_pressure_info): New.
5423 (sched_analyze_1): Update implicit_reg_pending_uses.
5424 (sched_analyze_insn): Find implicit sets, uses, clobbers of regs.
5425 Use them to create dependencies. Set insn reg uses and pressure
5426 info. Process reg_pending_uses in one place.
5427 (free_deps): Free implicit sets.
5428 (remove_from_deps): Remove implicit sets if necessary. Check
5429 implicit sets when clearing reg_last_in_use.
5430 (init_deps_global): Clear implicit_reg_pending_clobbers and
5431 implicit_reg_pending_uses.
5432
5433 * ira.h (ira_hard_regno_cover_class, ira_reg_class_nregs,
5434 ira_memory_move_cost, ira_class_hard_regs,
5435 ira_class_hard_regs_num, ira_no_alloc_regs,
5436 ira_available_class_regs, ira_reg_class_cover_size,
5437 ira_reg_class_cover, ira_class_translate): Move from ira-int.h.
5438 (ira_setup_eliminable_regset, ira_set_pseudo_classes,
5439 ira_implicitly_set_insn_hard_regs): New prototypes.
5440
5441 * ira-costs.c (pseudo_classes_defined_p, allocno_p,
5442 cost_elements_num): New variables.
5443 (allocno_costs, total_costs): Rename to costs and
5444 total_allocno_costs.
5445 (COSTS_OF_ALLOCNO): Rename to COSTS.
5446 (allocno_pref): Rename to pref.
5447 (allocno_pref_buffer): Rename to pref_buffer.
5448 (common_classes): Rename to regno_cover_class.
5449 (COST_INDEX): New.
5450 (record_reg_classes): Set allocno attributes only if allocno_p.
5451 (record_address_regs): Ditto. Use COST_INDEX instead of ALLOCNO_NUM.
5452 (scan_one_insn): Use COST_INDEX and COSTS instead of ALLOCNO_NUM
5453 and COSTS_OF_ALLOCNO.
5454 (print_costs): Rename to print_allocno_costs.
5455 (print_pseudo_costs): New.
5456 (process_bb_node_for_costs): Split into 2 functions with new
5457 function process_bb_for_costs. Pass BB to process_bb_for_costs.
5458 (find_allocno_class_costs): Rename to find_costs_and_classes. Add
5459 new parameter dump_file. Use cost_elements_num instead of
5460 ira_allocnos_num. Make one iteration if preferred classes were
5461 already calculated for scheduler. Make 2 versions of code
5462 depending on allocno_p.
5463 (setup_allocno_cover_class_and_costs): Check allocno_p. Use
5464 regno_cover_class and COSTS instead of common_classes and
5465 COSTS_OF_ALLOCNO.
5466 (init_costs, finish_costs): New.
5467 (ira_costs): Set up allocno_p and cost_elements_num. Call
5468 init_costs and finish_costs.
5469 (ira_set_pseudo_classes): New.
5470
5471 * rtl.h (allocate_reg_info): Remove.
5472 (resize_reg_info): Change return type.
5473 (reg_cover_class): New.
5474 (setup_reg_classes): Add new parameter.
5475
5476 * sched-int.h (struct deps_reg): New member implicit_sets.
5477 (sched_pressure_p, sched_regno_cover_class): New external definitions.
5478 (INCREASE_BITS): New macro.
5479 (struct reg_pressure_data, struct reg_use_data): New.
5480 (struct _haifa_insn_data): Remove reg_weight. Add members
5481 reg_pressure, reg_use_list, reg_set_list, and
5482 reg_pressure_excess_cost_change.
5483 (struct deps): New member implicit_sets.
5484 (pressure_p): New variable.
5485 (COVER_CLASS_BITS, INCREASE_BITS): New macros.
5486 (struct reg_pressure_data, struct reg_use_data): New.
5487 (INSN_REG_WEIGHT): Remove.
5488 (INSN_REG_PRESSURE, INSN_MAX_REG_PRESSURE, INSN_REG_USE_LIST,
5489 INSN_REG_SET_LIST, INSN_REG_PRESSURE_EXCESS_COST_CHANGE): New macros.
5490 (sched_init_region_reg_pressure_info,
5491 sched_setup_bb_reg_pressure_info): New prototypes.
5492
5493 * reginfo.c (struct reg_pref): New member coverclass.
5494 (reg_cover_class): New function.
5495 (reginfo_init, pass_reginfo_init): Move after free_reg_info.
5496 (reg_info_size): New variable.
5497 (allocate_reg_info): Make static. Setup reg_info_size.
5498 (resize_reg_info): Use reg_info_size. Return flag of resizing.
5499 (setup_reg_classes): Add a new parameter. Setup cover class too.
5500
5501 * Makefile.in (reload.o, haifa-sched.o, sched-deps.o): Add ira.h to
5502 the dependencies.
5503
5504 * sched-rgn.c (deps_join): Set up implicit_sets.
5505 (schedule_region): Set up region and basic blocks pressure
5506 relative info.
5507
5508 * passes.c (init_optimization_passes): Move
5509 pass_subregs_of_mode_init before pass_sched.
5510
5511 2009-09-02 Martin Jambor <mjambor@suse.cz>
5512
5513 * tree-sra.c (struct access): New field grp_hint.
5514 (dump_access): Dump grp_hint.
5515 (sort_and_splice_var_accesses): Set grp_hint if a group is read
5516 multiple times.
5517 (analyze_access_subtree): Only scalarize accesses with grp_hint set or
5518 those which have been specifically read and somehow written to.
5519 (propagate_subacesses_accross_link): Set grp_hint of right child and
5520 also possibly of the left child.
5521
5522 2009-09-02 Jakub Jelinek <jakub@redhat.com>
5523
5524 * tree-object-size.c (addr_object_size): Always use object_size_type
5525 0 or 2 when determining the pointer pointed object size.
5526
5527 2009-09-02 Richard Guenther <rguenther@suse.de>
5528
5529 Revert
5530 2009-08-31 Richard Guenther <rguenther@suse.de>
5531
5532 * builtins.c (fold_builtin_memory_op): Use the alias oracle
5533 to query if the memory regions for memmove overlap.
5534 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Relax the
5535 asserts on pointers, instead deal with odd trees.
5536 (ptr_derefs_may_alias_p): Likewise.
5537 (refs_may_alias_p_1): Constructor bases also never alias.
5538
5539 2009-08-01 Christian Bruel <christian.bruel@st.com>
5540
5541 Revert:
5542 2009-07-31 Christian Bruel <christian.bruel@st.com>
5543 * gcc/config.gcc (sh*-*-elf): test with_libgloss.
5544
5545 2009-09-01 Alexandre Oliva <aoliva@redhat.com>
5546
5547 * doc/invoke.texi (-fvar-tracking-assignments): New.
5548 (-fvar-tracking-assignments-toggle): New.
5549 (-fdump-final-insns=file): Mark filename as optional.
5550 (--param min-nondebug-insn-uid): New.
5551 (-gdwarf-@{version}): Mention version 4.
5552 * opts.c (common_handle_option): Accept it.
5553 * tree-vrp.c (find_assert_locations_1): Skip debug stmts.
5554 * regrename.c (regrename_optimize): Drop last. Don't count debug
5555 insns as uses. Don't reject change because of debug insn.
5556 (do_replace): Reject DEBUG_INSN as chain starter. Take base_regno
5557 from the chain starter, and check for inexact matches in DEBUG_INSNS.
5558 (scan_rtx_reg): Accept inexact matches in DEBUG_INSNs.
5559 (build_def_use): Simplify and fix the marking of DEBUG_INSNs.
5560 * sched-ebb.c (schedule_ebbs): Skip boundary debug insns.
5561 * fwprop.c (forward_propagate_and_simplify): ...into debug insns.
5562 * doc/gimple.texi (is_gimple_debug): New.
5563 (gimple_debug_bind_p): New.
5564 (is_gimple_call, gimple_assign_cast_p): End sentence with period.
5565 * doc/install.texi (bootstrap-debug): More details.
5566 (bootstrap-debug-big, bootstrap-debug-lean): Document.
5567 (bootstrap-debug-lib): More details.
5568 (bootstrap-debug-ckovw): Update.
5569 (bootstrap-time): New.
5570 * tree-into-ssa.c (mark_def_sites): Skip debug stmts.
5571 (insert_phi_nodes_for): Insert debug stmts.
5572 (rewrite_stmt): Take iterator. Insert debug stmts.
5573 (rewrite_enter_block): Adjust.
5574 (maybe_replace_use_in_debug_stmt): New.
5575 (rewrite_update_stmt): Use it.
5576 (mark_use_interesting): Return early for debug stmts.
5577 * tree-ssa-loop-im.c (rewrite_bittest): Propagate DEFs into debug
5578 stmts before replacing stmt.
5579 (move_computations_stmt): Likewise.
5580 * ira-conflicts.c (add_copies): Skip debug insns.
5581 * regstat.c (regstat_init_n_sets_and_refs): Discount debug insns.
5582 (regstat_bb_compute_ri): Skip debug insns.
5583 * tree-ssa-threadupdate.c (redirection_block_p): Skip debug stmts.
5584 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt,
5585 check_loop_closed_ssa_stmt): Skip debug stmts.
5586 * tree-tailcall.c (find_tail_calls): Likewise.
5587 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
5588 * tree.h (MAY_HAVE_DEBUG_STMTS): New.
5589 (build_var_debug_value_stat): Declare.
5590 (build_var_debug_value): Define.
5591 (target_for_debug_bind): Declare.
5592 * reload.c (find_equiv_reg): Skip debug insns.
5593 * rtlanal.c (reg_used_between_p): Skip debug insns.
5594 (side_effects_p): Likewise.
5595 (canonicalize_condition): Likewise.
5596 * ddg.c (create_ddg_dep_from_intra_loop_link): Check that non-debug
5597 insns never depend on debug insns.
5598 (create_ddg_dep_no_link): Likewise.
5599 (add_cross_iteration_register_deps): Use ANTI_DEP for debug insns.
5600 Don't add inter-loop dependencies for debug insns.
5601 (build_intra_loop_deps): Likewise.
5602 (create_ddg): Count debug insns.
5603 * ddg.h (struct ddg::num_debug): New.
5604 (num_backargs): Pair up with previous int field.
5605 * diagnostic.c (diagnostic_report_diagnostic): Skip notes on
5606 -fcompare-debug-second.
5607 * final.c (get_attr_length_1): Skip debug insns.
5608 (rest_of_clean-state): Don't dump CFA_RESTORE_STATE.
5609 * gcc.c (invoke_as): Call compare-debug-dump-opt.
5610 (driver_self_specs): Map -fdump-final-insns to
5611 -fdump-final-insns=..
5612 (get_local_tick): New.
5613 (compare_debug_dump_opt_spec_function): Test for . argument and
5614 compute output name. Compute temp output spec without flag name.
5615 Compute -frandom-seed.
5616 (OPT): Undef after use.
5617 * cfgloopanal.c (num_loop_insns): Skip debug insns.
5618 (average_num_loop_insns): Likewise.
5619 * params.h (MIN_NONDEBUG_INSN_UID): New.
5620 * gimple.def (GIMPLE_DEBUG): New.
5621 * ipa-reference.c (scan_stmt_for_static_refs): Skip debug stmts.
5622 * auto-inc-dec.c (merge_in_block): Skip debug insns.
5623 (merge_in_block): Fix whitespace.
5624 * toplev.c (flag_var_tracking): Update comment.
5625 (flag_var_tracking_assignments): New.
5626 (flag_var_tracking_assignments_toggle): New.
5627 (process_options): Don't open final insns dump file if we're not
5628 going to write to it. Compute defaults for var_tracking.
5629 * df-scan.c (df_insn_rescan_debug_internal): New.
5630 (df_uses_record): Handle debug insns.
5631 * haifa-sched.c (ready): Initialize n_debug.
5632 (contributes_to_priority): Skip debug insns.
5633 (dep_list_size): New.
5634 (priority): Use it.
5635 (rank_for_schedule): Likewise. Schedule debug insns as soon as
5636 they're ready. Disregard previous debug insns to make decisions.
5637 (queue_insn): Never queue debug insns.
5638 (ready_add, ready_remove_first, ready_remove): Count debug insns.
5639 (schedule_insn): Don't reject debug insns because of issue rate.
5640 (get_ebb_head_tail, no_real_insns_p): Skip boundary debug insns.
5641 (queue_to_ready): Skip and discount debug insns.
5642 (choose_ready): Let debug insns through.
5643 (schedule_block): Check boundary debug insns. Discount debug
5644 insns, schedule them early. Adjust whitespace.
5645 (set_priorities): Check for boundary debug insns.
5646 (add_jump_dependencies): Use dep_list_size.
5647 (prev_non_location_insn): New.
5648 (check_cfg): Use it.
5649 * tree-ssa-loop-ivopts.c (find-interesting_users): Skip debug
5650 stmts.
5651 (remove_unused_ivs): Reset debug stmts.
5652 * modulo-sched.c (const_iteration_count): Skip debug insns.
5653 (res_MII): Discount debug insns.
5654 (loop_single_full_bb_p): Skip debug insns.
5655 (sms_schedule): Likewise.
5656 (sms_schedule_by_order): Likewise.
5657 (ps_has_conflicts): Likewise.
5658 * caller-save.c (refmarker_fn): New.
5659 (save_call_clobbered_regs): Replace regs with saved mem in
5660 debug insns.
5661 (mark_referenced_regs): Take pointer, mark and arg. Adjust.
5662 Call refmarker_fn mark for hardregnos.
5663 (mark_reg_as_referenced): New.
5664 (replace_reg_with_saved_mem): New.
5665 * ipa-pure-const.c (check_stmt): Skip debug stmts.
5666 * cse.c (cse_insn): Canonicalize debug insns. Skip them when
5667 searching back.
5668 (cse_extended_basic_block): Skip debug insns.
5669 (count_reg_usage): Likewise.
5670 (is_dead_reg): New, split out of...
5671 (set_live_p): ... here.
5672 (insn_live_p): Use it for debug insns.
5673 * tree-stdarg.c (check_all_va_list_escapes): Skip debug stmts.
5674 (execute_optimize_stdarg): Likewise.
5675 * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
5676 * tree-ssa-propagate.c (substitute_and_fold): Don't regard
5677 changes in debug stmts as changes.
5678 * sel-sched.c (moving_insn_creates_bookkeeping_block_p): New.
5679 (moveup_expr): Don't move across debug insns. Don't move
5680 debug insn if it would create a bookkeeping block.
5681 (moveup_expr_cached): Don't use cache for debug insns that
5682 are heads of blocks.
5683 (compute_av_set_inside_bb): Skip debug insns.
5684 (sel_rank_for_schedule): Schedule debug insns first. Remove
5685 dead code.
5686 (block_valid_for_bookkeeping_p); Support lax searches.
5687 (create_block_for_bookkeeping): Adjust block numbers when
5688 encountering debug-only blocks.
5689 (find_place_for_bookkeeping): Deal with debug-only blocks.
5690 (generate_bookkeeping_insn): Accept no place to insert.
5691 (remove_temp_moveop_nops): New argument full_tidying.
5692 (prepare_place_to_insert): Deal with debug insns.
5693 (advance_state_on_fence): Debug insns don't start cycles.
5694 (update_boundaries): Take fence as argument. Deal with
5695 debug insns.
5696 (schedule_expr_on_boundary): No full_tidying on debug insns.
5697 (fill_insns): Deal with debug insns.
5698 (track_scheduled_insns_and_blocks): Don't count debug insns.
5699 (need_nop_to_preserve_insn_bb): New, split out of...
5700 (remove_insn_from_stream): ... this.
5701 (fur_orig_expr_not_found): Skip debug insns.
5702 * rtl.def (VALUE): Move up.
5703 (DEBUG_INSN): New.
5704 * tree-ssa-sink.c (all_immediate_uses_same_place): Skip debug stmts.
5705 (nearest_common_dominator_of_uses): Take debug_stmts argument.
5706 Set it if debug stmts are found.
5707 (statement_sink_location): Skip debug stmts. Propagate
5708 moving defs into debug stmts.
5709 * ifcvt.c (first_active_insn): Skip debug insns.
5710 (last_active_insns): Likewise.
5711 (cond_exec_process_insns): Likewise.
5712 (noce_process_if_block): Likewise.
5713 (check_cond_move_block): Likewise.
5714 (cond_move_convert_if_block): Likewise.
5715 (block_jumps_and_fallthru_p): Likewise.
5716 (dead_or_predicable): Likewise.
5717 * dwarf2out.c (debug_str_hash_forced): New.
5718 (find_AT_string): Add comment.
5719 (gen_label_for_indirect_string): New.
5720 (get_debug_string_label): New.
5721 (AT_string_form): Use it.
5722 (mem_loc_descriptor): Handle non-TLS symbols. Handle MINUS , DIV,
5723 MOD, AND, IOR, XOR, NOT, ABS, NEG, and CONST_STRING. Accept but
5724 discard COMPARE, IF_THEN_ELSE, ROTATE, ROTATERT, TRUNCATE and
5725 several operations that cannot be represented with DWARF opcodes.
5726 (loc_descriptor): Ignore SIGN_EXTEND and ZERO_EXTEND. Require
5727 dwarf_version 4 for DW_OP_implicit_value and DW_OP_stack_value.
5728 (dwarf2out_var_location): Take during-call mark into account.
5729 (output_indirect_string): Update comment. Output if there are
5730 label and references.
5731 (prune_indirect_string): New.
5732 (prune_unused_types): Call it if debug_str_hash_forced.
5733 More in dwarf2out.c, from Jakub Jelinek <jakub@redhat.com>:
5734 (dw_long_long_const): Remove.
5735 (struct dw_val_struct): Change val_long_long type to rtx.
5736 (print_die, attr_checksum, same_dw_val_p, loc_descriptor): Adjust for
5737 val_long_long change to CONST_DOUBLE rtx from a long hi/lo pair.
5738 (output_die): Likewise. Use HOST_BITS_PER_WIDE_INT size of each
5739 component instead of HOST_BITS_PER_LONG.
5740 (output_loc_operands): Likewise. For const8* assert
5741 HOST_BITS_PER_WIDE_INT rather than HOST_BITS_PER_LONG is >= 64.
5742 (output_loc_operands_raw): For const8* assert HOST_BITS_PER_WIDE_INT
5743 rather than HOST_BITS_PER_LONG is >= 64.
5744 (add_AT_long_long): Remove val_hi and val_lo arguments, add
5745 val_const_double.
5746 (size_of_die): Use HOST_BITS_PER_WIDE_INT size multiplier instead of
5747 HOST_BITS_PER_LONG for dw_val_class_long_long.
5748 (add_const_value_attribute): Adjust add_AT_long_long caller. Don't
5749 handle TLS SYMBOL_REFs. If CONST wraps a constant, tail recurse.
5750 (dwarf_stack_op_name): Handle DW_OP_implicit_value and
5751 DW_OP_stack_value.
5752 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
5753 Handle DW_OP_implicit_value.
5754 (extract_int): Move prototype earlier.
5755 (mem_loc_descriptor): For SUBREG punt if inner
5756 mode size is wider than DWARF2_ADDR_SIZE. Handle SIGN_EXTEND
5757 and ZERO_EXTEND by DW_OP_shl and DW_OP_shr{a,}. Handle
5758 EQ, NE, GT, GE, LT, LE, GTU, GEU, LTU, LEU, SMIN, SMAX, UMIN,
5759 UMAX, SIGN_EXTRACT, ZERO_EXTRACT.
5760 (loc_descriptor): Compare mode size with DWARF2_ADDR_SIZE
5761 instead of Pmode size.
5762 (loc_descriptor): Add MODE argument. Handle CONST_INT, CONST_DOUBLE,
5763 CONST_VECTOR, CONST, LABEL_REF and SYMBOL_REF if mode != VOIDmode,
5764 attempt to handle other expressions. Don't handle TLS SYMBOL_REFs.
5765 (concat_loc_descriptor, concatn_loc_descriptor,
5766 loc_descriptor_from_tree_1): Adjust loc_descriptor callers.
5767 (add_location_or_const_value_attribute): Likewise. For single
5768 location loc_lists attempt to use add_const_value_attribute
5769 for constant decls. Add DW_AT_const_value even if
5770 NOTE_VAR_LOCATION is VAR_LOCATION with CONSTANT_P or CONST_STRING
5771 in its expression.
5772 * cfgbuild.c (inside_basic_block_p): Handle debug insns.
5773 (control_flow_insn_p): Likewise.
5774 * tree-parloops.c (eliminate_local_variables_stmt): Handle debug stmt.
5775 (separate_decls_in_region_debug_bind): New.
5776 (separate_decls_in_region): Process debug bind stmts afterwards.
5777 * recog.c (verify_changes): Handle debug insns.
5778 (extract_insn): Likewise.
5779 (peephole2_optimize): Skip debug insns.
5780 * dse.c (scan_insn): Skip debug insns.
5781 * sel-sched-ir.c (return_nop_to_pool): Take full_tidying argument.
5782 Pass it on.
5783 (setup_id_for_insn): Handle debug insns.
5784 (maybe_tidy_empty_bb): Adjust whitespace.
5785 (tidy_control_flow): Skip debug insns.
5786 (sel_remove_insn): Adjust for debug insns.
5787 (sel_estimate_number_of_insns): Skip debug insns.
5788 (create_insn_rtx_from_pattern): Handle debug insns.
5789 (create_copy_of_insn_rtx): Likewise.
5790 * sel-sched-.h (sel_bb_end): Declare.
5791 (sel_bb_empty_or_nop_p): New.
5792 (get_all_loop_exits): Use it.
5793 (_eligible_successor_edge_p): Likewise.
5794 (return_nop_to_pool): Adjust.
5795 * tree-eh.c (tre_empty_eh_handler_p): Skip debug stmts.
5796 * ira-lives.c (process_bb_node_lives): Skip debug insns.
5797 * gimple-pretty-print.c (dump_gimple_debug): New.
5798 (dump_gimple_stmt): Use it.
5799 (dump_bb_header): Skip gimple debug stmts.
5800 * regmove.c (optimize_reg_copy_1): Discount debug insns.
5801 (fixup_match_2): Likewise.
5802 (regmove_backward_pass): Likewise. Simplify combined
5803 replacement. Handle debug insns.
5804 * function.c (instantiate_virtual_regs): Handle debug insns.
5805 * function.h (struct emit_status): Add x_cur_debug_insn_uid.
5806 * print-rtl.h: Include cselib.h.
5807 (print_rtx): Print VALUEs. Split out and recurse for VAR_LOCATIONs.
5808 * df.h (df_inns_rescan_debug_internal): Declare.
5809 * gcse.c (alloc_hash_table): Estimate n_insns.
5810 (cprop_insn): Don't regard debug insns as changes.
5811 (bypass_conditional_jumps): Skip debug insns.
5812 (one_pre_gcse_pass): Adjust.
5813 (one_code_hoisting_pass): Likewise.
5814 (compute_ld_motion_mems): Skip debug insns.
5815 (one_cprop_pass): Adjust.
5816 * tree-if-conv.c (tree_if_convert_stmt): Reset debug stmts.
5817 (if_convertible_stmt_p): Handle debug stmts.
5818 * init-regs.c (initialize_uninitialized_regs): Skip debug insns.
5819 * tree-vect-loop.c (vect_is_simple_reduction): Skip debug stmts.
5820 * ira-build.c (create_bb_allocnos): Skip debug insns.
5821 * tree-flow-inline.h (has_zero_uses): Discount debug stmts.
5822 (has_single_use): Likewise.
5823 (single_imm_use): Likewise.
5824 (num_imm_uses): Likewise.
5825 * tree-ssa-phiopt.c (empty_block_p): Skip debug stmts.
5826 * tree-ssa-coalesce.c (build_ssa_conflict_graph): Skip debug stmts.
5827 (create_outofssa_var_map): Likewise.
5828 * lower-subreg.c (adjust_decomposed_uses): New.
5829 (resolve_debug): New.
5830 (decompose_multiword_subregs): Use it.
5831 * tree-dfa.c (find_referenced_vars): Skip debug stmts.
5832 * emit-rtl.c: Include params.h.
5833 (cur_debug_insn_uid): Define.
5834 (set_new_first_and_last_insn): Set cur_debug_insn_uid too.
5835 (copy_rtx_if_shared_1): Handle debug insns.
5836 (reset_used_flags): Likewise.
5837 (set_used_flags): LIkewise.
5838 (get_max_insn_count): New.
5839 (next_nondebug_insn): New.
5840 (prev_nondebug_insn): New.
5841 (make_debug_insn_raw): New.
5842 (emit_insn_before_noloc): Handle debug insns.
5843 (emit_jump_insn_before_noloc): Likewise.
5844 (emit_call_insn_before_noloc): Likewise.
5845 (emit_debug_insn_before_noloc): New.
5846 (emit_insn_after_noloc): Handle debug insns.
5847 (emit_jump_insn_after_noloc): Likewise.
5848 (emit_call_insn_after_noloc): Likewise.
5849 (emit_debug_insn_after_noloc): Likewise.
5850 (emit_insn_after): Take loc from earlier non-debug insn.
5851 (emit_jump_insn_after): Likewise.
5852 (emit_call_insn_after): Likewise.
5853 (emit_debug_insn_after_setloc): New.
5854 (emit_debug_insn_after): New.
5855 (emit_insn_before): Take loc from later non-debug insn.
5856 (emit_jump_insn_before): Likewise.
5857 (emit_call_insn_before): Likewise.
5858 (emit_debug_insn_before_setloc): New.
5859 (emit_debug_insn_before): New.
5860 (emit_insn): Handle debug insns.
5861 (emit_debug_insn): New.
5862 (emit_jump_insn): Handle debug insns.
5863 (emit_call_insn): Likewise.
5864 (emit): Likewise.
5865 (init_emit): Take min-nondebug-insn-uid into account.
5866 Initialize cur_debug_insn_uid.
5867 (emit_copy_of_insn_after): Handle debug insns.
5868 * cfgexpand.c (gimple_assign_rhs_to_tree): Do not overwrite
5869 location of single rhs in place.
5870 (maybe_dump_rtl_for_gimple_stmt): Dump lineno.
5871 (floor_sdiv_adjust): New.
5872 (cell_sdiv_adjust): New.
5873 (cell_udiv_adjust): New.
5874 (round_sdiv_adjust): New.
5875 (round_udiv_adjust): New.
5876 (wrap_constant): Moved from cselib.
5877 (unwrap_constant): New.
5878 (expand_debug_expr): New.
5879 (expand_debug_locations): New.
5880 (expand_gimple_basic_block): Drop hiding redeclaration. Expand
5881 debug bind stmts.
5882 (gimple_expand_cfg): Expand debug locations.
5883 * cselib.c: Include tree-pass.h.
5884 (struct expand_value_data): New.
5885 (cselib_record_sets_hook): New.
5886 (PRESERVED_VALUE_P, LONG_TERM_PRESERVED_VALUE_P): New.
5887 (cselib_clear_table): Move, and implemnet in terms of...
5888 (cselib_reset_table_with_next_value): ... this.
5889 (cselib_get_next_unknown_value): New.
5890 (discard_useless_locs): Don't discard preserved values.
5891 (cselib_preserve_value): New.
5892 (cselib_preserved_value_p): New.
5893 (cselib_preserve_definitely): New.
5894 (cselib_clear_preserve): New.
5895 (cselib_preserve_only_values): New.
5896 (new_cselib_val): Take rtx argument. Dump it in details.
5897 (cselib_lookup_mem): Adjust.
5898 (expand_loc): Take regs_active in struct. Adjust. Silence
5899 dumps unless details are requested.
5900 (cselib_expand_value_rtx_cb): New.
5901 (cselib_expand_value_rtx): Rename and reimplment in terms of...
5902 (cselib_expand_value_rtx_1): ... this. Adjust. Silence dumps
5903 without details. Copy more subregs. Try to resolve values
5904 using a callback. Wrap constants.
5905 (cselib_subst_to_values): Adjust.
5906 (cselib_log_lookup): New.
5907 (cselib_lookup): Call it.
5908 (cselib_invalidate_regno): Don't count preserved values as useless.
5909 (cselib_invalidate_mem): Likewise.
5910 (cselib_record_set): Likewise.
5911 (struct set): Renamed to cselib_set, moved to cselib.h.
5912 (cselib_record_sets): Adjust. Call hook.
5913 (cselib_process_insn): Reset table when it would be cleared.
5914 (dump_cselib_val): New.
5915 (dump_cselib_table): New.
5916 * tree-cfgcleanup.c (tree_forwarded_block_p): Skip debug stmts.
5917 (remove_forwarder_block): Support moving debug stmts.
5918 * cselib.h (cselib_record_sets_hook): Declare.
5919 (cselib_expand_callback): New type.
5920 (cselib_expand_value_rtx_cb): Declare.
5921 (cselib_reset_table_with_next_value): Declare.
5922 (cselib_get_next_unknown_value): Declare.
5923 (cselib_preserve_value): Declare.
5924 (cselib_preserved_value_p): Declare.
5925 (cselib_preserve_only_values): Declare.
5926 (dump_cselib_table): Declare.
5927 * cfgcleanup.c (flow_find_cross_jump): Skip debug insns.
5928 (try_crossjump_to_edge): Likewise.
5929 (delete_unreachable_blocks): Remove dominant GIMPLE blocks after
5930 dominated blocks when debug stmts are present.
5931 * simplify-rtx.c (delegitimize_mem_from_attrs): New.
5932 * tree-ssa-live.c (remove_unused_locals): Skip debug stmts.
5933 (set_var_live_on_entry): Likewise.
5934 * loop-invariant.c (find_invariants_bb): Skip debug insns.
5935 * cfglayout.c (curr_location, last_location): Make static.
5936 (set_curr_insn_source_location): Don't avoid bouncing.
5937 (get_curr_insn_source_location): New.
5938 (get_curr_insn_block): New.
5939 (duplicate_insn_chain): Handle debug insns.
5940 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Propagate
5941 into debug stmts.
5942 * common.opt (fcompare-debug): Move to sort order.
5943 (fdump-unnumbered-links): Likewise.
5944 (fvar-tracking-assignments): New.
5945 (fvar-tracking-assignments-toggle): New.
5946 * tree-ssa-dce.c (mark_stmt_necessary): Don't mark blocks
5947 because of debug stmts.
5948 (mark_stmt_if_obviously_necessary): Mark debug stmts.
5949 (eliminate_unnecessary_stmts): Walk dominated blocks before
5950 dominators.
5951 * tree-ssa-ter.c (find_replaceable_in_bb): Skip debug stmts.
5952 * ira.c (memref_used_between_p): Skip debug insns.
5953 (update_equiv_regs): Likewise.
5954 * sched-deps.c (sd_lists_size): Accept empty list.
5955 (sd_init_insn): Mark debug insns.
5956 (sd_finish_insn): Unmark them.
5957 (sd_add_dep): Reject non-debug deps on debug insns.
5958 (fixup_sched_groups): Give debug insns group treatment.
5959 Skip debug insns.
5960 (sched_analyze_reg): Don't mark debug insns for sched before call.
5961 (sched_analyze_2): Handle debug insns.
5962 (sched_analyze_insn): Compute next non-debug insn. Handle debug
5963 insns.
5964 (deps_analyze_insn): Handle debug insns.
5965 (deps_start_bb): Skip debug insns.
5966 (init_deps): Initialize last_debug_insn.
5967 * tree-ssa.c (target_for_debug_bind): New.
5968 (find_released_ssa_name): New.
5969 (propagate_var_def_into_debug_stmts): New.
5970 (propagate_defs_into_debug_stmts): New.
5971 (verify_ssa): Skip debug bind stmts without values.
5972 (warn_uninialized_vars): Skip debug stmts.
5973 * target-def.h (TARGET_DELEGITIMIZE_ADDRESS): Set default.
5974 * rtl.c (rtx_equal_p_cb): Handle VALUEs.
5975 (rtx_equal_p): Likewise.
5976 * ira-costs.c (scan_one_insn): Skip debug insns.
5977 (process_bb_node_for_hard_reg_moves): Likewise.
5978 * rtl.h (DEBUG_INSN_P): New.
5979 (NONDEBUG_INSN_P): New.
5980 (MAY_HAVE_DEBUG_INSNS): New.
5981 (INSN_P): Accept debug insns.
5982 (RTX_FRAME_RELATED_P): Likewise.
5983 (INSN_DELETED_P): Likewise
5984 (PAT_VAR_LOCATION_DECL): New.
5985 (PAT_VAR_LOCATION_LOC): New.
5986 (PAT_VAR_OCATION_STATUS): New.
5987 (NOTE_VAR_LOCATION_DECL): Reimplement.
5988 (NOTE_VAR_LOCATION_LOC): Likewise.
5989 (NOTE_VAR_LOCATION_STATUS): Likewise.
5990 (INSN_VAR_LOCATION): New.
5991 (INSN_VAR_LOCATION_DECL): New.
5992 (INSN_VAR_LOCATION_LOC): New.
5993 (INSN_VAR_LOCATION_STATUS): New.
5994 (gen_rtx_UNKNOWN_VAR_LOC): New.
5995 (VAR_LOC_UNKNOWN_P): New.
5996 (NOTE_DURING_CALL_P): New.
5997 (SCHED_GROUP_P): Accept debug insns.
5998 (emit_debug_insn_before): Declare.
5999 (emit_debug_insn_before_noloc): Declare.
6000 (emit_debug_insn_beore_setloc): Declare.
6001 (emit_debug_insn_after): Declare.
6002 (emit_debug_insn_after_noloc): Declare.
6003 (emit_debug_insn_after_setloc): Declare.
6004 (emit_debug_insn): Declare.
6005 (make_debug_insn_raw): Declare.
6006 (prev_nondebug_insn): Declare.
6007 (next_nondebug_insn): Declare.
6008 (delegitimize_mem_from_attrs): Declare.
6009 (get_max_insn_count): Declare.
6010 (wrap_constant): Declare.
6011 (unwrap_constant): Declare.
6012 (get_curr_insn_source_location): Declare.
6013 (get_curr_insn_block): Declare.
6014 * tree-inline.c (insert_debug_decl_map): New.
6015 (processing_debug_stmt): New.
6016 (remap_decl): Don't create new mappings in debug stmts.
6017 (remap_gimple_op_r): Don't add references in debug stmts.
6018 (copy_tree_body_r): Likewise.
6019 (remap_gimple_stmt): Handle debug bind stmts.
6020 (copy_bb): Skip debug stmts.
6021 (copy_edges_for_bb): Likewise.
6022 (copy_debug_stmt): New.
6023 (copy_debug_stmts): New.
6024 (copy_body): Copy debug stmts at the end.
6025 (insert_init_debug_bind): New.
6026 (insert_init_stmt): Take id. Skip and emit debug stmts.
6027 (setup_one_parameter): Remap variable earlier, register debug mapping.
6028 (estimate_num_insns): Skip debug stmts.
6029 (expand_call_inline): Preserve debug_map.
6030 (optimize_inline_calls): Check for no debug_stmts left-overs.
6031 (unsave_expr_now): Preserve debug_map.
6032 (copy_gimple_seq_and_replace_locals): Likewise.
6033 (tree_function_versioning): Check for no debug_stmts left-overs.
6034 Init and destroy debug_map as needed. Split edges unconditionally.
6035 (build_duplicate_type): Init and destroy debug_map as needed.
6036 * tree-inline.h: Include gimple.h instead of pointer-set.h.
6037 (struct copy_body_data): Add debug_stmts and debug_map.
6038 * sched-int.h (struct ready_list): Add n_debug.
6039 (struct deps): Add last_debug_insn.
6040 (DEBUG_INSN_SCHED_P): New.
6041 (BOUNDARY_DEBUG_INSN_P): New.
6042 (SCHEDULE_DEBUG_INSN_P): New.
6043 (sd_iterator_cond): Accept empty list.
6044 * combine.c (create_log_links): Skip debug insns.
6045 (combine_instructions): Likewise.
6046 (cleanup_auto_inc_dec): New. From Jakub Jelinek: Make sure the
6047 return value is always unshared.
6048 (struct rtx_subst_pair): New.
6049 (auto_adjust_pair): New.
6050 (propagate_for_debug_subst): New.
6051 (propagate_for_debug): New.
6052 (try_combine): Skip debug insns. Propagate removed defs into
6053 debug insns.
6054 (next_nonnote_nondebug_insn): New.
6055 (distribute_notes): Use it. Skip debug insns.
6056 (distribute_links): Skip debug insns.
6057 * tree-outof-ssa.c (set_location_for_edge): Likewise.
6058 * resource.c (mark_target_live_regs): Likewise.
6059 * var-tracking.c: Include cselib.h and target.h.
6060 (enum micro_operation_type): Add MO_VAL_USE, MO_VAL_LOC, and
6061 MO_VAL_SET.
6062 (micro_operation_type_name): New.
6063 (enum emit_note_where): Add EMIT_NOTE_AFTER_CALL_INSN.
6064 (struct micro_operation_def): Update comments.
6065 (decl_or_value): New type. Use instead of decls.
6066 (struct emit_note_data_def): Add vars.
6067 (struct attrs_def): Use decl_or_value.
6068 (struct variable_tracking_info_def): Add permp, flooded.
6069 (struct location_chain_def): Update comment.
6070 (struct variable_part_def): Use decl_or_value.
6071 (struct variable_def): Make var_part a variable length array.
6072 (valvar_pool): New.
6073 (scratch_regs): New.
6074 (cselib_hook_called): New.
6075 (dv_is_decl_p): New.
6076 (dv_is_value_p): New.
6077 (dv_as_decl): New.
6078 (dv_as_value): New.
6079 (dv_as_opaque): New.
6080 (dv_onepart_p): New.
6081 (dv_pool): New.
6082 (IS_DECL_CODE): New.
6083 (check_value_is_not_decl): New.
6084 (dv_from_decl): New.
6085 (dv_from_value): New.
6086 (dv_htab_hash): New.
6087 (variable_htab_hash): Use it.
6088 (variable_htab_eq): Support values.
6089 (variable_htab_free): Free from the right pool.
6090 (attrs_list_member, attrs_list_insert): Use decl_or_value.
6091 (attrs_list_union): Adjust.
6092 (attrs_list_mpdv_union): New.
6093 (tie_break_pointers): New.
6094 (canon_value_cmp): New.
6095 (unshare_variable): Return possibly-modified slot.
6096 (vars_copy_1): Adjust.
6097 (var_reg_decl_set): Adjust. Split out of...
6098 (var_reg_set): ... this.
6099 (get_init_value): Adjust.
6100 (var_reg_delete_and_set): Adjust.
6101 (var_reg_delete): Adjust.
6102 (var_regno_delete): Adjust.
6103 (var_mem_decl_set): Split out of...
6104 (var_mem_set): ... this.
6105 (var_mem_delete_and_set): Adjust.
6106 (var_mem_delete): Adjust.
6107 (val_store): New.
6108 (val_reset): New.
6109 (val_resolve): New.
6110 (variable_union): Adjust. Speed up merge of 1-part vars.
6111 (variable_canonicalize): Use unshared slot.
6112 (VALUED_RECURSED_INTO): New.
6113 (find_loc_in_1pdv): New.
6114 (struct dfset_merge): New.
6115 (insert_into_intersection): New.
6116 (intersect_loc_chains): New.
6117 (loc_cmp): New.
6118 (canonicalize_loc_order_check): New.
6119 (canonicalize_values_mark): New.
6120 (canonicalize_values_star): New.
6121 (variable_merge_over_cur): New.
6122 (variable_merge_over_src): New.
6123 (dataflow_set_merge): New.
6124 (dataflow_set_equiv_regs): New.
6125 (remove_duplicate_values): New.
6126 (struct dfset_post_merge): New.
6127 (variable_post_merge_new_vals): New.
6128 (variable_post_merge_perm_vals): New.
6129 (dataflow_post_merge_adjust): New.
6130 (find_mem_expr_in_1pdv): New.
6131 (dataflow_set_preserve_mem_locs): New.
6132 (dataflow_set_remove_mem_locs): New.
6133 (dataflow_set_clear_at_call): New.
6134 (onepart_variable_different_p): New.
6135 (variable_different_p): Use it.
6136 (dataflow_set_different_1): Adjust. Make detailed dump more verbose.
6137 (track_expr_p): Add need_rtl parameter. Don't generate rtl
6138 if not needed.
6139 (track_loc_p): Pass it true.
6140 (struct count_use_info): New.
6141 (find_use_val): New.
6142 (replace_expr_with_values): New.
6143 (log_op_type): New.
6144 (use_type): New, partially split out of...
6145 (count_uses): ... this. Count new micro-ops.
6146 (count_uses_1): Adjust.
6147 (count_stores): Adjust.
6148 (count_with_sets): New.
6149 (VAL_NEEDS_RESOLUTION): New.
6150 (VAL_HOLDS_TRACK_EXPR): New.
6151 (VAL_EXPR_IS_COPIED): New.
6152 (VAL_EXPR_IS_CLOBBERED): New.
6153 (add_uses): Adjust. Generate new micro-ops.
6154 (add_uses_1): Adjust.
6155 (add_stores): Generate new micro-ops.
6156 (add_with_sets): New.
6157 (find_src_status): Adjust.
6158 (find_src_set_src): Adjust.
6159 (compute_bb_dataflow): Use dataflow_set_clear_at_call.
6160 Handle new micro-ops. Canonicalize value equivalances.
6161 (vt_find_locations): Compute total size of hash tables for
6162 dumping. Perform merge for var-tracking-assignments. Don't
6163 disregard single-block loops.
6164 (dump_attrs_list): Handle decl_or_value.
6165 (dump_variable): Take variable. Deal with decl_or_value.
6166 (dump_variable_slot): New.
6167 (dump_vars): Use it.
6168 (dump_dataflow_sets): Adjust.
6169 (set_slot_part): New, extended to support one-part variables
6170 after splitting out of...
6171 (set_variable_part): ... this.
6172 (clobber_slot_part): New, split out of...
6173 (clobber_variable_part): ... this.
6174 (delete_slot_part): New, split out of...
6175 (delete_variable_part): .... this.
6176 (check_wrap_constant): New.
6177 (vt_expand_loc_callback): New.
6178 (vt_expand_loc): New.
6179 (emit_note_insn_var_location): Adjust. Handle values. Handle
6180 EMIT_NOTE_AFTER_CALL_INSN.
6181 (emit_notes_for_differences_1): Adjust. Handle values.
6182 (emit_notes_for_differences_2): Likewise.
6183 (emit_notes_for_differences): Adjust.
6184 (emit_notes_in_bb): Take pointer to set. Emit AFTER_CALL_INSN notes.
6185 Adjust. Handle new micro-ops.
6186 (vt_add_function_parameters): Adjust. Create and bind values.
6187 (vt_initialize): Adjust. Initialize scratch_regs and
6188 valvar_pool, flooded and perm.. Initialize and use cselib. Log
6189 operations. Move some code to count_with_sets and add_with_sets.
6190 (delete_debug_insns): New.
6191 (vt_debug_insns_local): New.
6192 (vt_finalize): Release permp, valvar_pool, scratch_regs. Finish
6193 cselib.
6194 (var_tracking_main): If var-tracking-assignments is enabled
6195 but var-tracking isn't, delete debug insns and leave. Likewise
6196 if we exceed limits or fail the stack adjustments tests, and
6197 after all var-tracking processing.
6198 More in var-tracking, from Jakub Jelinek <jakub@redhat.com>:
6199 (dataflow_set): Add traversed_vars.
6200 (value_chain, const_value_chain): New typedefs.
6201 (value_chain_pool, value_chains): New variables.
6202 (value_chain_htab_hash, value_chain_htab_eq, add_value_chain,
6203 add_value_chains, add_cselib_value_chains, remove_value_chain,
6204 remove_value_chains, remove_cselib_value_chains): New functions.
6205 (shared_hash_find_slot_unshare_1, shared_hash_find_slot_1,
6206 shared_hash_find_slot_noinsert_1, shared_hash_find_1): New
6207 static inlines.
6208 (shared_hash_find_slot_unshare, shared_hash_find_slot,
6209 shared_hash_find_slot_noinsert, shared_hash_find): Update.
6210 (dst_can_be_shared): New variable.
6211 (unshare_variable): Unshare set->vars if shared, use shared_hash_*.
6212 Clear dst_can_be_shared. If set->traversed_vars is non-NULL and
6213 different from set->vars, look up slot again instead of using the
6214 passed in slot.
6215 (dataflow_set_init): Initialize traversed_vars.
6216 (variable_union): Use shared_hash_*. Use initially NO_INSERT
6217 lookup if set->vars is shared. Don't keep slot cleared before
6218 calling unshare_variable. Unshare set->vars if needed. Adjust
6219 unshare_variable callers. Clear dst_can_be_shared if needed.
6220 Even ->refcount == 1 vars must be unshared if set->vars is shared
6221 and var needs to be modified.
6222 (dataflow_set_union): Set traversed_vars during canonicalization.
6223 (VALUE_CHANGED, DECL_CHANGED): Define.
6224 (set_dv_changed, dv_changed_p): New static inlines.
6225 (track_expr_p): Clear DECL_CHANGED.
6226 (dump_dataflow_sets): Set it.
6227 (variable_was_changed): Call set_dv_changed.
6228 (emit_note_insn_var_location): Likewise.
6229 (changed_variables_stack): New variable.
6230 (check_changed_vars_1, check_changed_vars_2): New functions.
6231 (emit_notes_for_changes): Do nothing if changed_variables is
6232 empty. Traverse changed_variables with check_changed_vars_1,
6233 call check_changed_vars_2 on each changed_variables_stack entry.
6234 (emit_notes_in_bb): Add SET argument. Just clear it at the
6235 beginning, use it instead of local &set, don't destroy it at the end.
6236 (vt_emit_notes): Call dataflow_set_clear early on all
6237 VTI(bb)->out sets, never use them, instead use emit_notes_in_bb
6238 computed set, dataflow_set_clear also VTI(bb)->in when we are
6239 done with the basic block. Initialize changed_variables_stack,
6240 free it afterwards. If ENABLE_CHECKING verify that after noting
6241 differences to an empty set value_chains hash table is empty.
6242 (vt_initialize): Initialize value_chains and value_chain_pool.
6243 (vt_finalize): Delete value_chains htab, free value_chain_pool.
6244 (variable_tracking_main): Call dump_dataflow_sets before calling
6245 vt_emit_notes, not after it.
6246 * tree-flow.h (propagate_defs_into_debug_stmts): Declare.
6247 (propagate_var_def_into_debug_stmts): Declare.
6248 * df-problems.c (df_lr_bb_local_compute): Skip debug insns.
6249 (df_set_note): Reject debug insns.
6250 (df_whole_mw_reg_dead_p): Take added_notes_p argument. Don't
6251 add notes to debug insns.
6252 (df_note_bb_compute): Adjust. Likewise.
6253 (df_simulate_uses): Skip debug insns.
6254 (df_simulate_initialize_backwards): Likewise.
6255 * reg-stack.c (subst_stack_regs_in_debug_insn): New.
6256 (subst_stack_regs_pat): Reject debug insns.
6257 (convert_regs_1): Handle debug insns.
6258 * Makefile.in (TREE_INLINE_H): Take pointer-set.h from GIMPLE_H.
6259 (print-rtl.o): Depend on cselib.h.
6260 (cselib.o): Depend on TREE_PASS_H.
6261 (var-tracking.o): Depend on cselib.h and TARGET_H.
6262 * sched-rgn.c (rgn_estimate_number_of_insns): Discount debug insns.
6263 (init_ready_list): Skip boundary debug insns.
6264 (add_branch_dependences): Skip debug insns.
6265 (free_block_dependencies): Check for blocks with only debug insns.
6266 (compute_priorities): Likewise.
6267 * gimple.c (gss_for_code): Handle GIMPLE_DEBUG.
6268 (gimple_build_with_ops_stat): Take subcode as unsigned. Adjust
6269 all callers.
6270 (gimple_build_debug_bind_stat): New.
6271 (empty_body_p): Skip debug stmts.
6272 (gimple_has_side_effects): Likewise.
6273 (gimple_rhs_has_side_effects): Likewise.
6274 * gimple.h (enum gimple_debug_subcode, GIMPLE_DEBUG_BIND): New.
6275 (gimple_build_debug_bind_stat): Declare.
6276 (gimple_build_debug_bind): Define.
6277 (is_gimple_debug): New.
6278 (gimple_debug_bind_p): New.
6279 (gimple_debug_bind_get_var): New.
6280 (gimple_debug_bind_get_value): New.
6281 (gimple_debug_bind_get_value_ptr): New.
6282 (gimple_debug_bind_set_var): New.
6283 (gimple_debug_bind_set_value): New.
6284 (GIMPLE_DEBUG_BIND_NOVALUE): New internal temporary macro.
6285 (gimple_debug_bind_reset_value): New.
6286 (gimple_debug_bind_has_value_p): New.
6287 (gsi_next_nondebug): New.
6288 (gsi_prev_nondebug): New.
6289 (gsi_start_nondebug_bb): New.
6290 (gsi_last_nondebug_bb): New.
6291 * sched-vis.c (print_pattern): Handle VAR_LOCATION.
6292 (print_insn): Handle DEBUG_INSN.
6293 * tree-cfg.c (remove_bb): Walk stmts backwards. Let loc
6294 of first insn prevail.
6295 (first_stmt): Skip debug stmts.
6296 (first_non_label_stmt): Likewise.
6297 (last_stmt): Likewise.
6298 (has_zero_uses_1): New.
6299 (single_imm_use_1): New.
6300 (verify_gimple_debug): New.
6301 (verify_types_in_gimple_stmt): Handle debug stmts.
6302 (verify_stmt): Likewise.
6303 (debug_loop_num): Skip debug stmts.
6304 (remove_edge_and_dominated_blocks): Remove dominators last.
6305 * tree-ssa-reasssoc.c (rewrite_expr_tree): Propagate into debug stmts.
6306 (linearize_expr): Likewise.
6307 * config/i386/i386.c (ix86_delegitimize_address): Call
6308 default implementation.
6309 * config/ia64/ia64.c (ia64_safe_itanium_class): Handle debug insns.
6310 (group_barrier_needed): Skip debug insns.
6311 (emit_insn_group_barriers): Likewise.
6312 (emit_all_insn_group_barriers): Likewise.
6313 (ia64_variable_issue): Handle debug insns.
6314 (ia64_dfa_new_cycle): Likewise.
6315 (final_emit_insn_group_barriers): Skip debug insns.
6316 (ia64_dwarf2out_def_steady_cfa): Take frame argument. Don't
6317 def cfa without frame.
6318 (process_set): Likewise.
6319 (process_for_unwind_directive): Pass frame on.
6320 * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
6321 (rs6000_delegitimize_address): New.
6322 (rs6000_debug_adjust_cost): Handle debug insns.
6323 (is_microcoded_insn): Likewise.
6324 (is_cracked_insn): Likewise.
6325 (is_nonpipeline_insn): Likewise.
6326 (insn_must_be_first_in_group): Likewise.
6327 (insn_must_be_last_in_group): Likewise.
6328 (force_new_group): Likewise.
6329 * cfgrtl.c (rtl_split_block): Emit INSN_DELETED note if block
6330 contains only debug insns.
6331 (rtl_merge_blocks): Skip debug insns.
6332 (purge_dead_edges): Likewise.
6333 (rtl_block_ends_with_call_p): Skip debug insns.
6334 * dce.c (deletable_insn_p): Handle VAR_LOCATION.
6335 (mark_reg_dependencies): Skip debug insns.
6336 * params.def (PARAM_MIN_NONDEBUG_INSN_UID): New.
6337 * tree-ssanames.c (release_ssa_name): Propagate def into debug stmts.
6338 * tree-ssa-threadedge.c
6339 (record_temporary_equivalences_from_stmts): Skip debug stmts.
6340 * regcprop.c (replace_oldest_value_addr): Skip debug insns.
6341 (replace_oldest_value_mem): Use ALL_REGS for debug insns.
6342 (copyprop_hardreg_forward_1): Handle debug insns.
6343 * reload1.c (reload): Skip debug insns. Replace unassigned
6344 pseudos in debug insns with their equivalences.
6345 (eliminate_regs_in_insn): Skip debug insns.
6346 (emit_input_reload_insns): Skip debug insns at first, adjust
6347 them later.
6348 * tree-ssa-operands.c (add_virtual_operand): Reject debug stmts.
6349 (get_indirect_ref_operands): Pass opf_no_vops on.
6350 (get_expr_operands): Likewise. Skip debug stmts.
6351 (parse_ssa_operands): Scan debug insns with opf_no_vops.
6352
6353 2009-09-01 Richard Henderson <rth@redhat.com>
6354
6355 * tree-ssa-ccp.c (ccp_initialize): Make sure to simulate
6356 stmt_ends_pp_p statements at least once.
6357 * tree-vrp.c (vrp_initialize): Likewise.
6358 (vrp_visit_stmt): Be prepared for non-interesting stmts.
6359
6360 2009-09-01 Dodji Seketeli <dodji@redhat.com>
6361
6362 PR bootstrap/41205
6363 Fix AIX bootstrap after PR debug/30161
6364 * dwarf2out.c (make_ith_pack_parameter_name): Don't used strnlen
6365 that is a GNU extension.
6366 (tmpl_value_parm_die_table): Move the definition of this global
6367 outside #ifdef DWARF2_DEBUGGING_INFO region.
6368
6369 2009-09-01 Richard Guenther <rguenther@suse.de>
6370
6371 * tree.c (tree_expr_size): New function.
6372 * tree.h (tree_expr_size): Declare.
6373 * rtlanal.c (rtx_addr_can_trap_p_1): Adjust comment.
6374 * builtins.c (fold_builtin_memory_op): Use tree_expr_size.
6375 * langhooks.c (lhd_expr_size): Remove.
6376 * langhooks.h (struct lang_hooks): Remove expr_size.
6377 * explow.c (expr_size): Use tree_expr_size.
6378 (int_expr_size): Likewise.
6379 * langhooks-def.h (lhd_expr_size): Remove.
6380 (LANG_HOOKS_EXPR_SIZE): Likewise.
6381 (LANG_HOOKS_INITIALIZER): Adjust.
6382
6383 2009-09-01 Richard Guenther <rguenther@suse.de>
6384
6385 * tree-flow.h (mark_addressable): Move declaration ...
6386 * tree.h (mark_addressable): ... here.
6387 * stmt.c (expand_asm_operands): Use mark_addressable, not
6388 lang_hooks.mark_addressable.
6389 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Remove
6390 LANG_HOOKS_MARK_ADDRESSABLE.
6391 * langhooks.h (struct lang_hooks): Remove mark_addressable langhook.
6392 * c-objc-common.h (LANG_HOOKS_MARK_ADDRESSABLE): Remove.
6393
6394 2009-08-31 Chris Demetriou <cgd@google.com>
6395
6396 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Never
6397 vectorize if not TARGET_SSE2.
6398
6399 2009-08-31 DJ Delorie <dj@redhat.com>
6400
6401 * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Exclude coprocessor
6402 registers if no coprocessor is enabled.
6403
6404 2009-08-31 Dodji Seketeli <dodji@redhat.com>
6405
6406 PR debug/30161
6407 * cgraph.h (cgraph_get_node): Declare ...
6408 * cgraph.c (cgraph_get_node): ... new function.
6409 * dwarf2out.c (gen_generic_params_dies,
6410 generic_parameter_die, tree_add_const_value_attribute_for_decl,
6411 make_ith_pack_parameter_name,
6412 append_entry_to_tmpl_value_parm_die_table,
6413 gen_remaining_tmpl_value_param_die_attribute): New functions.
6414 (gen_subprogram_die): Generate debug info for template parameters
6415 if debug info level is higher than DINFO_LEVEL_TERSE.
6416 Use tree_add_const_value_attribute_for_decl instead of
6417 tree_add_const_value_attribute.
6418 (gen_const_die): Use tree_add_const_value_attribute_for_decl
6419 instead of tree_add_const_value_attribute.
6420 (gen_struct_or_union_type_die): Generate debug
6421 info for template parameters if debug info level is higher than
6422 DINFO_LEVEL_TERSE.
6423 (tree_add_const_value_attribute): Handle integral and pointer
6424 constants. Update comment.
6425 (dwarf_tag_name): Support DW_TAG_GNU_template_template_param.
6426 (dwarf_attr_name): Support DW_AT_GNU_template_name.
6427 (reference_to_unused): Fix thinko. Remove redundant predicates from
6428 tests.
6429 (tree_add_const_value_attribute): Make this work for constant
6430 expressions only.
6431 tree_add_const_value_attribute_for_decl is to be used for variable
6432 DECLs now.
6433 (add_location_or_const_value_attribute): Use
6434 tree_add_const_value_attribute_for_decl now.
6435 (dwarf2out_finish): Emit the DW_AT_const_value attribute of
6436 DW_TAG_template_value_param DIEs after function DIEs have been
6437 emitted.
6438 * langhooks.h (lang_hooks_for_types): Add
6439 get_argument_pack_elems.
6440 (lang_hooks_for_decls): Add generic_generic_parameter_decl_p.
6441 (lang_hooks): Added get_innermost_generic_parms,
6442 get_innermost_generic_args.
6443 * langhooks-def.h (LANG_HOOKS_GET_INNERMOST_GENERIC_PARMS,
6444 LANG_HOOKS_GET_INNERMOST_GENERIC_ARGS,
6445 LANG_HOOKS_GET_ARGUMENT_PACK_ELEMS,
6446 LANG_HOOKS_GENERIC_GENERIC_PARAMETER_DECL_P): New language hooks.
6447
6448 2009-08-31 DJ Delorie <dj@redhat.com>
6449
6450 * config/mep/mep.c (machine_function): Add frame_locked flag. Set
6451 it once we start generating the prologue or epilogue.
6452 (mep_call_saves_register): If the frame is locked, re-use
6453 cached values.
6454 (mep_assign_save_slots): New, broken out from mep_expand_prologue.
6455 (mep_expand_prologue): Call it.
6456 (mep_expand_epilogue): Likewise.
6457 (mep_start_function): Use the same logic as mep_expand_prologue.
6458 (mep_pass_by_reference): Make logic more readable.
6459 (mep_return_in_memory): Zero-sized objects are passed in memory.
6460 (mep_reorg_noframe): Make sure we have accurate REG_DEAD notes.
6461
6462 2009-08-31 Richard Guenther <rguenther@suse.de>
6463
6464 * builtins.c (fold_builtin_memory_op): Use the alias oracle
6465 to query if the memory regions for memmove overlap.
6466 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Relax the
6467 asserts on pointers, instead deal with odd trees.
6468 (ptr_derefs_may_alias_p): Likewise.
6469 (refs_may_alias_p_1): Constructor bases also never alias.
6470
6471 2009-08-31 Gerald Pfeifer <gerald@pfeifer.com>
6472
6473 * doc/install.texi (Final install): Adjust reference on where to
6474 order printed manuals.
6475
6476 2009-08-30 Olivier Hainque <hainque@adacore.com>
6477
6478 * dwarf2out.c (switch_to_frame_table_section): Move
6479 definition prior to first use.
6480
6481 2009-08-30 Richard Guenther <rguenther@suse.de>
6482
6483 PR tree-optimization/41186
6484 * tree-ssa-alias.c (ptr_deref_may_alias_ref_p): Remove.
6485 (ao_ref_init_from_ptr_and_size): New function.
6486 (ref_maybe_used_by_call_p_1): Be more precise tracking
6487 used ranges for builtin functions.
6488 (ref_maybe_used_by_call_p): Adjust.
6489 (call_may_clobber_ref_p_1): Be more precise tracking clobbered
6490 ranges for builtin functions.
6491 * tree-ssa-alias.h (ao_ref_init_from_ptr_and_size): Declare.
6492
6493 2009-08-30 Alan Modra <amodra@bigpond.net.au>
6494
6495 PR target/41081
6496 * fwprop.c (get_reg_use_in): Delete.
6497 (free_load_extend): New function.
6498 (forward_propagate_subreg): Use it.
6499
6500 2009-08-29 Kaz Kojima <kkojima@gcc.gnu.org>
6501
6502 * config.gcc (sh*-*-elf): Add superh stuff only for sh*-superh-elf.
6503
6504 2009-08-29 Kai Tietz<kai.tietz@onevision.com>
6505
6506 PR/41184
6507 * config/i386.c (ix86_expand_epilogue): Correct stack adjustment for
6508 padding.
6509
6510 2009-08-29 Douglas B Rupp <rupp@gnat.com>
6511
6512 * crtstuff.c (__do_global_dtors_aux): Use atexit if no
6513 fini or fini_array section.
6514
6515 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
6516
6517 * graphite-dependences.c (graphite_legal_transform_bb): Call
6518 pbb_remove_duplicate_pdrs.
6519 * graphite-poly.c (can_collapse_pdr): Removed.
6520 (pdr_find_duplicate): Removed.
6521 (can_collapse_pdrs): New.
6522 (pbb_remove_duplicate_pdrs): New.
6523 (new_poly_dr): Do not look for duplicates.
6524 * graphite-poly.h (struct poly_bb): New field pdr_duplicates_removed.
6525 (PBB_PDR_DUPLICATES_REMOVED): New.
6526 (pbb_remove_duplicate_pdrs): Declared.
6527
6528 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
6529
6530 * graphite-interchange.c (pbb_interchange_profitable_p): Adjust
6531 the strides by multiplying by PDR_NB_REFS.
6532 * graphite-poly.c (can_collapse_pdr): New.
6533 (pdr_find_duplicate): New.
6534 (new_poly_dr): Call pdr_find_duplicate. Collapse duplicate PDRs.
6535 Initialize PDR_NB_REFS.
6536 * graphite-poly.h (struct poly_dr): Add field nb_refs.
6537 (PDR_NB_REFS): New.
6538 (new_poly_dr): Number of subscripts is a graphite_dim_t.
6539
6540 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
6541
6542 PR middle-end/40965
6543 * graphite-poly.c (apply_poly_transforms): Remove legality test before
6544 any transform.
6545
6546 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
6547
6548 * graphite-dependences.c (pddr_original_scattering): Return NULL
6549 for read-read dependence relations.
6550 * graphite-poly.h (enum poly_dr_type): Fix comment.
6551 (pdr_read_p): New.
6552 (pdr_write_p): New.
6553 (pdr_may_write_p): New.
6554
6555 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
6556
6557 * graphite-poly.h (enum POLY_DR_TYPE): Renamed poly_dr_type.
6558 (struct poly_dr): Same.
6559 (new_poly_dr): Same.
6560 * graphite-poly.c (new_poly_dr): Same.
6561 * graphite-dependences.c (dot_deps): Disable call to system.
6562
6563 2009-08-28 Cary Coutant <ccoutant@google.com>
6564
6565 PR debug/41063
6566 * dwarf2out.c (gen_type_die_with_usage): Use proper context for
6567 struct/union/enum types local to a function.
6568
6569 2009-08-28 Konrad Trifunovic <konrad.trifunovic@gmail.com>
6570 Sebastian Pop <sebastian.pop@amd.com>
6571
6572 * graphite-blocking.c (pbb_strip_mine_loop_depth): Renamed
6573 pbb_strip_mine_time_depth. Changed the implementation so that
6574 transformation is expressed as a transformation on
6575 time (scatttering) dimensions. Also, ensures that the 2d+1
6576 scheduling format is preserved.
6577 (pbb_strip_mine_profitable_p): Profitability is based on the
6578 iteration number of a given time (scattering) dimension,
6579 and not on a original loop depth dimension.
6580 (pbb_strip_mine): Call pbb_number_of_iterations_at_time.
6581 (pbb_do_strip_mine): Call psct_dynamic_dim.
6582 * graphite-poly.c (pbb_number_of_iterations_at_time): New.
6583 * graphite-poly.h (pbb_number_of_iterations_at_time): Declared.
6584 (pbb_nb_dynamic_scattering_transform): New.
6585 (psct_dynamic_dim): New.
6586
6587 2009-08-28 Konrad Trifunovic <konrad.trifunovic@gmail.com>
6588
6589 * graphite-ppl.c (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
6590 * graphite-ppl.h (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
6591 * graphite-poly.c (pbb_number_of_iterations): Rename ppl_max_for_le.
6592 * graphite-interchange.c (build_linearized_memory_access): Same.
6593 (memory_stride_in_loop): Same.
6594
6595 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
6596
6597 * graphite-dependences.c (pddr_original_scattering): New.
6598 (graphite_legal_transform_dr): Call pddr_original_scattering.
6599 (dot_deps_1): New.
6600 (dot_deps): New.
6601 * graphite-dependences.h (dot_deps): Declared.
6602 * graphite-poly.c (new_poly_dr): Initialize PDR_ID.
6603 (print_pdr): Print PDR_ID.
6604 * graphite-poly.h (struct poly_dr): Add field id.
6605 (PDR_ID): New.
6606 (pbb_index): New.
6607 * graphite-scop-detection.c (dot_all_scops_1): Cleanup comment.
6608
6609 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
6610
6611 * graphite-dependences.c (graphite_carried_dependence_level_k): Do
6612 not delete the original dependence relation.
6613
6614 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
6615
6616 * graphite-dependences.c (new_poly_dr_pair): Renamed new_poly_ddr.
6617 (eq_poly_dr_pair_p): Renamed eq_poly_ddr_p.
6618 (hash_poly_dr_pair_p): Renamed hash_poly_ddr_p.
6619 (free_poly_ddr): New.
6620 (pddr_is_empty): New.
6621 (dependence_polyhedron_1): Now returns a poly_ddr_p.
6622 (dependence_polyhedron): Same. Remove useless gcc_assert.
6623 Remove fprintfs.
6624 (graphite_legal_transform_dr): Call pddr_is_empty and free_poly_ddr.
6625 (graphite_carried_dependence_level_k): Call pddr_is_empty.
6626 * graphite-dependences.h (enum poly_dependence_kind): New.
6627 (poly_dr_pair): Renamed poly_ddr. Added a field kind.
6628 (PDRP_SOURCE): Renamed PDDR_SOURCE.
6629 (PDRP_SINK): Renamed PDDR_SINK.
6630 (PDRP_DDP): Renamed PDDR_DDP.
6631 (PDDR_KIND): New.
6632 (free_poly_ddr): Declared.
6633 * graphite-poly.c (new_scop): Use the new hash function names.
6634 * graphite-poly.h (struct scop): Renamed field original_pdr_pairs
6635 into original_pddrs.
6636 (SCOP_ORIGINAL_PDR_PAIRS): Renamed SCOP_ORIGINAL_PDDRS.
6637
6638 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
6639
6640 * cfgloopmanip.c (create_empty_loop_on_edge): Generate upper
6641 bounds with LT_EXPR to make niter analysis more precise on code
6642 generated by Graphite.
6643
6644 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
6645
6646 * graphite-dependences.c (graphite_legal_transform_dr): Fix formatting.
6647 (graphite_legal_transform_bb): Same.
6648 (poly_drs_may_alias_p): Same.
6649
6650 2009-08-28 Richard Guenther <rguenther@suse.de>
6651
6652 * tree.def: Remove note about obsolete TYPE_NONCOPIED_PARTS.
6653
6654 2009-08-28 Jan Beulich <jbeulich@novell.com>
6655
6656 * config/i386/netware.c: Include langhooks.h.
6657 (i386_nlm_encode_section_info): Simplify.
6658 (netware_override_options): Delete.
6659 * config/i386/netware.h (netware_override_options): Delete
6660 declaration.
6661 (OVERRIDE_OPTIONS): Delete definition.
6662 (SUBTARGET_OVERRIDE_OPTIONS): Define.
6663 (ASM_COMMENT_START): Define.
6664 * config/i386/nwld.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Define.
6665
6666 2009-08-28 Jan Beulich <jbeulich@novell.com>
6667
6668 * configure.ac: For in-tree ld, do a plain version check to
6669 determine whether comdat groups are supported.
6670 * configure: Regenerate.
6671
6672 2009-08-28 Olivier Hainque <hainque@adacore.com>
6673
6674 * collect2.c (DO_COLLECT_EXPORT_LIST): New internal macro,
6675 always defined. Reflect definition or absence of such for
6676 COLLECT_EXPORT_LIST. Readability helper.
6677 (scanfilter): New enum, to help control what symbols
6678 are to be considered or ignored by scan_prog_file.
6679 (enum pass): Rename as "scanpass", moved together with scanfilter
6680 prior to scan_prog_file's prototype.
6681 (scan_prog_file): Accept and honor scanpass and scanfilter arguments.
6682 Group prototype with the scanpass/scanfilter definitions, factorize
6683 head comments for the several implementations at the prototype.
6684 (main): Reorganize the first pass link control to let AIX
6685 drag only the needed frame tables in executables. Prevent
6686 frame tables collection during the scan aimed at static ctors.
6687 Pre-link and scan for frame tables later to compensate.
6688 * doc/tm.texi (ASM_OUTPUT_DWARF_TABLE_REF): New macro.
6689 A C statement to issue assembly directives that create a reference
6690 to the given DWARF table identifier label from the current function
6691 section.
6692 * dwarf2out.c (switch_to_eh_frame_section): Add a BACK argument
6693 to differentiate first time section entry. Only emit a .data
6694 tables start identifier label the first time around.
6695 (switch_to_frame_table_section): New function. Helper for
6696 output_call_frame_info to switch possibly BACK into the eh_frame
6697 or the debug_frame section depending on FOR_EH.
6698 (output_call_frame_info): Use helper to first enter the proper
6699 frame section.
6700 (output_fde): Use ASM_OUTPUT_DWARF_TABLE_REF when defined to
6701 emit a link to the frame table start label from each function
6702 section.
6703 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_table_ref):
6704 New function. Implementation of ASM_OUTPUT_DWARF_TABLE_REF.
6705 * config/rs6000/rs6000-protos.h: Declare it.
6706 * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Define.
6707
6708 2009-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
6709
6710 * config/sh/sh.c (split_branches): Check the result of
6711 next_active_insn.
6712
6713 2009-08-27 Steve Ellcey <sje@cup.hp.com>
6714
6715 * config/ia64/hpux.h (LIB_SPEC): Add -lrt for when
6716 using -pthread -fopenmp
6717
6718 2009-08-27 Gerald Pfeifer <gerald@pfeifer.com>
6719
6720 * doc/service.texi (service directory): Update URL.
6721
6722 2009-08-27 Uros Bizjak <ubizjak@gmail.com>
6723
6724 PR rtl-optimization/40861
6725 * simplify-rtx.c (simplify_subreg): Do not call simplify_gen_subreg to
6726 extract word from a multi-word subreg for negative byte positions.
6727
6728 2009-08-27 Tristan Gingold <gingold@adacore.com>
6729 Douglas B Rupp <rupp@gnat.com>
6730
6731 * config/ia64/ia64.c (ia64_attribute_table): Add "common_object" entry.
6732 (SECTION_VMS_OVERLAY): Define.
6733 (ia64_vms_common_object_attribute): Added. Handle the "common_object"
6734 attribute.
6735 (ia64_vms_elf_asm_named_section): Added. Generate .section pseudo-op
6736 for common_object.
6737 (ia64_vms_output_aligned_decl_common): Added. Generate pseudo-op for
6738 common_object declarations.
6739 (ia64_section_type_flags): Set section flag for common_object.
6740 * config/ia64/ia64-protos.h
6741 (ia64_vms_output_aligned_decl_common): Declare.
6742 (ia64_vms_elf_asm_named_section): Declare.
6743
6744 2009-08-27 Michael Matz <matz@suse.de>
6745
6746 * expr.c (expand_expr_real_2): New function taking exploded
6747 unary or binary expression, split out from ...
6748 (expand_expr_real_1): ... here. Move over all unary/binary
6749 switch parts to above function, in particular these codes:
6750 PAREN_EXPR, NOP_EXPR, CONVERT_EXPR, POINTER_PLUS_EXPR, PLUS_EXPR,
6751 MINUS_EXPR, MULT_EXPR, TRUNC_DIV_EXPR, FLOOR_DIV_EXPR, CEIL_DIV_EXPR,
6752 ROUND_DIV_EXPR, EXACT_DIV_EXPR, RDIV_EXPR, TRUNC_MOD_EXPR,
6753 FLOOR_MOD_EXPR, CEIL_MOD_EXPR, ROUND_MOD_EXPR, FIXED_CONVERT_EXPR,
6754 FIX_TRUNC_EXPR, FLOAT_EXPR, NEGATE_EXPR, ABS_EXPR, MAX_EXPR, MIN_EXPR,
6755 BIT_NOT_EXPR, TRUTH_AND_EXPR, BIT_AND_EXPR, TRUTH_OR_EXPR,
6756 BIT_IOR_EXPR, TRUTH_XOR_EXPR, BIT_XOR_EXPR, LROTATE_EXPR, RROTATE_EXPR,
6757 LSHIFT_EXPR, RSHIFT_EXPR, LT_EXPR, LE_EXPR, GT_EXPR, GE_EXPR, EQ_EXPR,
6758 NE_EXPR, UNORDERED_EXPR, ORDERED_EXPR, UNLT_EXPR, UNLE_EXPR, UNGT_EXPR,
6759 UNGE_EXPR, UNEQ_EXPR, LTGT_EXPR, TRUTH_NOT_EXPR, COMPLEX_EXPR,
6760 WIDEN_SUM_EXPR, REDUC_MAX_EXPR, REDUC_MIN_EXPR, REDUC_PLUS_EXPR,
6761 VEC_EXTRACT_EVEN_EXPR, VEC_EXTRACT_ODD_EXPR, VEC_INTERLEAVE_HIGH_EXPR,
6762 VEC_INTERLEAVE_LOW_EXPR, VEC_LSHIFT_EXPR, VEC_RSHIFT_EXPR,
6763 VEC_UNPACK_HI_EXPR, VEC_UNPACK_LO_EXPR, VEC_UNPACK_FLOAT_HI_EXPR,
6764 VEC_UNPACK_FLOAT_LO_EXPR, VEC_WIDEN_MULT_HI_EXPR,
6765 VEC_WIDEN_MULT_LO_EXPR, VEC_PACK_TRUNC_EXPR, VEC_PACK_SAT_EXPR,
6766 VEC_PACK_FIX_TRUNC_EXPR.
6767 (<case PAREN_EXPR>): Call set_mem_attributes() with type, not the
6768 full expression.
6769
6770 2009-08-27 Richard Guenther <rguenther@suse.de>
6771
6772 * gengtype.c (main): Handle uint64_t.
6773 * ipa-utils.c (get_base_var): Indent properly.
6774 * tree-ssa-live.c (debug_scope_block): New function.
6775 * tree-flow.h (debug_scope_block): Declare.
6776 * tree-ssa-copy.c (replace_exp_1): Add vertical space.
6777 * basic-block.h (enum profile_status): Rename to
6778 enum profile_status_d.
6779 (x_profile_status): Adjust type.
6780
6781 2009-08-27 Dodji Seketeli <dodji@redhat.com>
6782
6783 PR debug/41170
6784 * dwarf2out.c (get_context_die): Declare this static function.
6785 (gen_type_die_with_usage): Make sure a DIE is a generated for
6786 the context of a typedef.
6787
6788 2009-08-26 Anatoly Sokolov <aesok@post.ru>
6789
6790 * doc/invoke.texi (AVR Options): Remove documentation of -minit-stack
6791 switch.
6792
6793 2009-08-26 Richard Sandiford <rdsandiford@googlemail.com>
6794
6795 * config/mips/mips-protos.h (mips_output_sync): Declare.
6796 (mips_sync_loop_insns): Likewise.
6797 (mips_output_sync_loop): Replace first two parameters with an rtx.
6798 * config/mips/mips.c (mips_multi_member): New structure.
6799 (mips_multi_members): New variable.
6800 (mips_multi_start): New function.
6801 (mips_multi_add): Likewise.
6802 (mips_multi_add_insn): Likewise.
6803 (mips_multi_add_label): Likewise.
6804 (mips_multi_last_index): Likewise.
6805 (mips_multi_copy_insn): Likewise.
6806 (mips_multi_set_operand): Likewise.
6807 (mips_multi_write): Likewise.
6808 (mips_print_operand_punctuation): Remove '%|' and '%-'.
6809 (mips_init_print_operand_punct): Update accordingly.
6810 (mips_start_ll_sc_sync_block): New function.
6811 (mips_end_ll_sc_sync_block): Likewise.
6812 (mips_output_sync): Likewise.
6813 (mips_sync_insn1_template): Likewise.
6814 (mips_sync_insn2_template): Likewise.
6815 (mips_get_sync_operand): Likewise.
6816 (mips_process_sync_loop): Likewise.
6817 (mips_output_sync_loop): Use mips_process_sync_loop.
6818 (mips_sync_loop_insns): New function.
6819 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Delete.
6820 (MIPS_COMPARE_AND_SWAP_12): Likewise.
6821 (MIPS_COMPARE_AND_SWAP_12_ZERO_OP): Likewise.
6822 (MIPS_COMPARE_AND_SWAP_12_NONZERO_OP): Likewise.
6823 (MIPS_SYNC_OP, MIPS_SYNC_OP_12): Likewise.
6824 (MIPS_SYNC_OP_12_AND, MIPS_SYNC_OP_12_XOR): Likewise.
6825 (MIPS_SYNC_OLD_OP_12): Likewise.
6826 (MIPS_SYNC_OLD_OP_12_AND, MIPS_SYNC_OLD_OP_12_XOR): Likewise.
6827 (MIPS_SYNC_NEW_OP_12): Likewise.
6828 (MIPS_SYNC_NEW_OP_12_AND, MIPS_SYNC_NEW_OP_12_XOR): Likewise.
6829 (MIPS_SYNC_OLD_OP, MIPS_SYNC_NEW_OP): Likewise.
6830 (MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND, MIPS_SYNC_NEW_NAND): Likewise.
6831 (MIPS_SYNC_EXCHANGE, MIPS_SYNC_EXCHANGE_12): Likewise.
6832 (MIPS_SYNC_EXCHANGE_12_ZERO_OP): Likewise.
6833 (MIPS_SYNC_EXCHANGE_12_NONZER_OP): Likewise.
6834 * config/mips/mips.md (sync_mem): New attribute.
6835 (sync_oldval, sync_newval, sync_inclusive_mask): Likewise.
6836 (sync_exclusive_mask, sync_required_oldval): Likewise.
6837 (sync_insn1_op2, sync_insn1, sync_insn2): Likewise.
6838 (sync_release_barrier): Likewise.
6839 (length): Handle sync loops.
6840 (sync): Use mips_output_sync.
6841 * config/mips/sync.md (*memory_barrier): Use mips_output_sync.
6842 (sync_compare_and_swap<mode>): Set the new sync_* attributes
6843 and use mips_output_sync_loop.
6844 (compare_and_swap_12, sync_add<mode>, sync_<optab>_12): Likewise.
6845 (sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12): Likewise.
6846 (sync_old_nand_12, sync_new_nand_12, sync_sub<mode>): Likewise.
6847 (sync_old_add<mode>, sync_old_sub<mode>): Likewise.
6848 (sync_new_add<mode>, sync_new_sub<mode>): Likewise.
6849 (sync_<optab><mode>, sync_old_<optab><mode>): Likewise.
6850 (sync_new_<optab><mode>, sync_nand<mode>): Likewise.
6851 (sync_old_nand<mode>, sync_new_nand<mode>): Likewise.
6852 (sync_lock_test_and_set<mode>, test_and_set_12): Likewise.
6853
6854 2009-08-26 Richard Guenther <rguenther@suse.de>
6855
6856 PR middle-end/41163
6857 * gimplify.c (gimplify_addr_expr): Canonicalize ADDR_EXPRs if
6858 the types to not match.
6859 * tree-cfg.c (verify_gimple_assign_single): Adjust ADDR_EXPR
6860 verification.
6861 * tree-ssa.c (useless_type_conversion_p): Conversions to
6862 pointers to unprototyped functions are useless.
6863
6864 2009-08-26 Richard Guenther <rguenther@suse.de>
6865
6866 * tree-ssa-structalias.c (create_variable_info_for): Remove strange
6867 whole-program condition, prepare to be called for non-globals.
6868 (intra_create_variable_infos): For restrict qualified DECL_BY_REFERENCE
6869 params build a representative with known type and track its fields.
6870
6871 2009-08-26 Uros Bizjak <ubizjak@gmail.com>
6872
6873 * config/alpha/sync.md: Update comment about unpredictable LL/SC lock
6874 clearing by a taken branch.
6875 (sync_<fetchop_name><mode>): Split when epilogue_completed is set,
6876 effectively after bbro pass.
6877 (sync_nand<mode>): Ditto.
6878 (sync_old_<fetchop_name><mode>): Ditto.
6879 (sync_old_nand<mode>): Ditto.
6880 (sync_new_<fetchop_name><mode>): Dito.
6881 (sync_new_nand<mode>): Ditto.
6882 (sync_compare_and_swap<mode>_1): Ditto.
6883 (*sync_compare_and_swap<mode>): Ditto.
6884 (sync_lock_test_and_set<mode>_1): Ditto.
6885 ("sync_lock_test_and_set<mode>): Ditto.
6886
6887 2009-08-25 Douglas B Rupp <rupp@gnat.com>
6888
6889 * hwint.h (HOST_LONG_FORMAT): New macro
6890 * bitmap.c, c-decl.c, mips-tfile.c, print-rtl.c, print-tree.c:
6891 Use HOST_PTR_PRINTF.
6892 * system.h (HOST_PTR_PRINTF): Resurrect old macro
6893 * doc/hostconfig.texi (HOST_LONG_FORMAT): Document.
6894 (HOST_PTR_PRINTF): Document.
6895
6896 2009-08-25 Jan Hubicka <jh@suse.cz>
6897
6898 * config/i386/bmmintrin.h: Replace by #error.
6899
6900 Revert:
6901 Michael Meissner <michael.meissner@amd.com>
6902 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
6903 Tony Linthicum <tony.linthicum@amd.com>
6904
6905 * config/i386/i386.h (TARGET_SSE5): New macro for SSE5.
6906 (TARGET_ROUND): New macro for the round/ptest instructions which
6907 are shared between SSE4.1 and SSE5.
6908 (OPTION_MASK_ISA_ROUND): Ditto.
6909 (OPTION_ISA_ROUND): Ditto.
6910 (TARGET_FUSED_MADD): New macro for -mfused-madd swtich.
6911 (TARGET_CPU_CPP_BUILTINS): Add SSE5 support.
6912
6913 * config/i386/i386.opt (-msse5): New switch for SSE5 support.
6914 (-mfused-madd): New switch to give users control over whether the
6915 compiler optimizes to use the multiply/add SSE5 instructions.
6916
6917 * config/i386/i386.c (enum pta_flags): Add PTA_SSE5.
6918 (ix86_handle_option): Turn off 3dnow if -msse5.
6919 (override_options): Add SSE5 support.
6920 (print_operand): %Y prints comparison codes for SSE5 com/pcom
6921 instructions.
6922 (ix86_expand_sse_movcc): Add SSE5 support.
6923 (ix86_expand_sse5_unpack): New function to use pperm to unpack a
6924 vector type to the next largest size.
6925 (ix86_expand_sse5_pack): New function to use pperm to pack a
6926 vector type to the next smallest size.
6927 (IX86_BUILTIN_FMADDSS): New for SSE5 intrinsic.
6928 (IX86_BUILTIN_FMADDSD): Ditto.
6929 (IX86_BUILTIN_FMADDPS): Ditto.
6930 (IX86_BUILTIN_FMADDPD): Ditto.
6931 (IX86_BUILTIN_FMSUBSS): Ditto.
6932 (IX86_BUILTIN_FMSUBSD): Ditto.
6933 (IX86_BUILTIN_FMSUBPS): Ditto.
6934 (IX86_BUILTIN_FMSUBPD): Ditto.
6935 (IX86_BUILTIN_FNMADDSS): Ditto.
6936 (IX86_BUILTIN_FNMADDSD): Ditto.
6937 (IX86_BUILTIN_FNMADDPS): Ditto.
6938 (IX86_BUILTIN_FNMADDPD): Ditto.
6939 (IX86_BUILTIN_FNMSUBSS): Ditto.
6940 (IX86_BUILTIN_FNMSUBSD): Ditto.
6941 (IX86_BUILTIN_FNMSUBPS): Ditto.
6942 (IX86_BUILTIN_FNMSUBPD): Ditto.
6943 (IX86_BUILTIN_PCMOV_V2DI): Ditto.
6944 (IX86_BUILTIN_PCMOV_V4SI): Ditto.
6945 (IX86_BUILTIN_PCMOV_V8HI): Ditto.
6946 (IX86_BUILTIN_PCMOV_V16QI): Ditto.
6947 (IX86_BUILTIN_PCMOV_V4SF): Ditto.
6948 (IX86_BUILTIN_PCMOV_V2DF): Ditto.
6949 (IX86_BUILTIN_PPERM): Ditto.
6950 (IX86_BUILTIN_PERMPS): Ditto.
6951 (IX86_BUILTIN_PERMPD): Ditto.
6952 (IX86_BUILTIN_PMACSSWW): Ditto.
6953 (IX86_BUILTIN_PMACSWW): Ditto.
6954 (IX86_BUILTIN_PMACSSWD): Ditto.
6955 (IX86_BUILTIN_PMACSWD): Ditto.
6956 (IX86_BUILTIN_PMACSSDD): Ditto.
6957 (IX86_BUILTIN_PMACSDD): Ditto.
6958 (IX86_BUILTIN_PMACSSDQL): Ditto.
6959 (IX86_BUILTIN_PMACSSDQH): Ditto.
6960 (IX86_BUILTIN_PMACSDQL): Ditto.
6961 (IX86_BUILTIN_PMACSDQH): Ditto.
6962 (IX86_BUILTIN_PMADCSSWD): Ditto.
6963 (IX86_BUILTIN_PMADCSWD): Ditto.
6964 (IX86_BUILTIN_PHADDBW): Ditto.
6965 (IX86_BUILTIN_PHADDBD): Ditto.
6966 (IX86_BUILTIN_PHADDBQ): Ditto.
6967 (IX86_BUILTIN_PHADDWD): Ditto.
6968 (IX86_BUILTIN_PHADDWQ): Ditto.
6969 (IX86_BUILTIN_PHADDDQ): Ditto.
6970 (IX86_BUILTIN_PHADDUBW): Ditto.
6971 (IX86_BUILTIN_PHADDUBD): Ditto.
6972 (IX86_BUILTIN_PHADDUBQ): Ditto.
6973 (IX86_BUILTIN_PHADDUWD): Ditto.
6974 (IX86_BUILTIN_PHADDUWQ): Ditto.
6975 (IX86_BUILTIN_PHADDUDQ): Ditto.
6976 (IX86_BUILTIN_PHSUBBW): Ditto.
6977 (IX86_BUILTIN_PHSUBWD): Ditto.
6978 (IX86_BUILTIN_PHSUBDQ): Ditto.
6979 (IX86_BUILTIN_PROTB): Ditto.
6980 (IX86_BUILTIN_PROTW): Ditto.
6981 (IX86_BUILTIN_PROTD): Ditto.
6982 (IX86_BUILTIN_PROTQ): Ditto.
6983 (IX86_BUILTIN_PROTB_IMM): Ditto.
6984 (IX86_BUILTIN_PROTW_IMM): Ditto.
6985 (IX86_BUILTIN_PROTD_IMM): Ditto.
6986 (IX86_BUILTIN_PROTQ_IMM): Ditto.
6987 (IX86_BUILTIN_PSHLB): Ditto.
6988 (IX86_BUILTIN_PSHLW): Ditto.
6989 (IX86_BUILTIN_PSHLD): Ditto.
6990 (IX86_BUILTIN_PSHLQ): Ditto.
6991 (IX86_BUILTIN_PSHAB): Ditto.
6992 (IX86_BUILTIN_PSHAW): Ditto.
6993 (IX86_BUILTIN_PSHAD): Ditto.
6994 (IX86_BUILTIN_PSHAQ): Ditto.
6995 (IX86_BUILTIN_FRCZSS): Ditto.
6996 (IX86_BUILTIN_FRCZSD): Ditto.
6997 (IX86_BUILTIN_FRCZPS): Ditto.
6998 (IX86_BUILTIN_FRCZPD): Ditto.
6999 (IX86_BUILTIN_CVTPH2PS): Ditto.
7000 (IX86_BUILTIN_CVTPS2PH): Ditto.
7001 (IX86_BUILTIN_COMEQSS): Ditto.
7002 (IX86_BUILTIN_COMNESS): Ditto.
7003 (IX86_BUILTIN_COMLTSS): Ditto.
7004 (IX86_BUILTIN_COMLESS): Ditto.
7005 (IX86_BUILTIN_COMGTSS): Ditto.
7006 (IX86_BUILTIN_COMGESS): Ditto.
7007 (IX86_BUILTIN_COMUEQSS): Ditto.
7008 (IX86_BUILTIN_COMUNESS): Ditto.
7009 (IX86_BUILTIN_COMULTSS): Ditto.
7010 (IX86_BUILTIN_COMULESS): Ditto.
7011 (IX86_BUILTIN_COMUGTSS): Ditto.
7012 (IX86_BUILTIN_COMUGESS): Ditto.
7013 (IX86_BUILTIN_COMORDSS): Ditto.
7014 (IX86_BUILTIN_COMUNORDSS): Ditto.
7015 (IX86_BUILTIN_COMFALSESS): Ditto.
7016 (IX86_BUILTIN_COMTRUESS): Ditto.
7017 (IX86_BUILTIN_COMEQSD): Ditto.
7018 (IX86_BUILTIN_COMNESD): Ditto.
7019 (IX86_BUILTIN_COMLTSD): Ditto.
7020 (IX86_BUILTIN_COMLESD): Ditto.
7021 (IX86_BUILTIN_COMGTSD): Ditto.
7022 (IX86_BUILTIN_COMGESD): Ditto.
7023 (IX86_BUILTIN_COMUEQSD): Ditto.
7024 (IX86_BUILTIN_COMUNESD): Ditto.
7025 (IX86_BUILTIN_COMULTSD): Ditto.
7026 (IX86_BUILTIN_COMULESD): Ditto.
7027 (IX86_BUILTIN_COMUGTSD): Ditto.
7028 (IX86_BUILTIN_COMUGESD): Ditto.
7029 (IX86_BUILTIN_COMORDSD): Ditto.
7030 (IX86_BUILTIN_COMUNORDSD): Ditto.
7031 (IX86_BUILTIN_COMFALSESD): Ditto.
7032 (IX86_BUILTIN_COMTRUESD): Ditto.
7033 (IX86_BUILTIN_COMEQPS): Ditto.
7034 (IX86_BUILTIN_COMNEPS): Ditto.
7035 (IX86_BUILTIN_COMLTPS): Ditto.
7036 (IX86_BUILTIN_COMLEPS): Ditto.
7037 (IX86_BUILTIN_COMGTPS): Ditto.
7038 (IX86_BUILTIN_COMGEPS): Ditto.
7039 (IX86_BUILTIN_COMUEQPS): Ditto.
7040 (IX86_BUILTIN_COMUNEPS): Ditto.
7041 (IX86_BUILTIN_COMULTPS): Ditto.
7042 (IX86_BUILTIN_COMULEPS): Ditto.
7043 (IX86_BUILTIN_COMUGTPS): Ditto.
7044 (IX86_BUILTIN_COMUGEPS): Ditto.
7045 (IX86_BUILTIN_COMORDPS): Ditto.
7046 (IX86_BUILTIN_COMUNORDPS): Ditto.
7047 (IX86_BUILTIN_COMFALSEPS): Ditto.
7048 (IX86_BUILTIN_COMTRUEPS): Ditto.
7049 (IX86_BUILTIN_COMEQPD): Ditto.
7050 (IX86_BUILTIN_COMNEPD): Ditto.
7051 (IX86_BUILTIN_COMLTPD): Ditto.
7052 (IX86_BUILTIN_COMLEPD): Ditto.
7053 (IX86_BUILTIN_COMGTPD): Ditto.
7054 (IX86_BUILTIN_COMGEPD): Ditto.
7055 (IX86_BUILTIN_COMUEQPD): Ditto.
7056 (IX86_BUILTIN_COMUNEPD): Ditto.
7057 (IX86_BUILTIN_COMULTPD): Ditto.
7058 (IX86_BUILTIN_COMULEPD): Ditto.
7059 (IX86_BUILTIN_COMUGTPD): Ditto.
7060 (IX86_BUILTIN_COMUGEPD): Ditto.
7061 (IX86_BUILTIN_COMORDPD): Ditto.
7062 (IX86_BUILTIN_COMUNORDPD): Ditto.
7063 (IX86_BUILTIN_COMFALSEPD): Ditto.
7064 (IX86_BUILTIN_COMTRUEPD): Ditto.
7065 (IX86_BUILTIN_PCOMEQUB): Ditto.
7066 (IX86_BUILTIN_PCOMNEUB): Ditto.
7067 (IX86_BUILTIN_PCOMLTUB): Ditto.
7068 (IX86_BUILTIN_PCOMLEUB): Ditto.
7069 (IX86_BUILTIN_PCOMGTUB): Ditto.
7070 (IX86_BUILTIN_PCOMGEUB): Ditto.
7071 (IX86_BUILTIN_PCOMFALSEUB): Ditto.
7072 (IX86_BUILTIN_PCOMTRUEUB): Ditto.
7073 (IX86_BUILTIN_PCOMEQUW): Ditto.
7074 (IX86_BUILTIN_PCOMNEUW): Ditto.
7075 (IX86_BUILTIN_PCOMLTUW): Ditto.
7076 (IX86_BUILTIN_PCOMLEUW): Ditto.
7077 (IX86_BUILTIN_PCOMGTUW): Ditto.
7078 (IX86_BUILTIN_PCOMGEUW): Ditto.
7079 (IX86_BUILTIN_PCOMFALSEUW): Ditto.
7080 (IX86_BUILTIN_PCOMTRUEUW): Ditto.
7081 (IX86_BUILTIN_PCOMEQUD): Ditto.
7082 (IX86_BUILTIN_PCOMNEUD): Ditto.
7083 (IX86_BUILTIN_PCOMLTUD): Ditto.
7084 (IX86_BUILTIN_PCOMLEUD): Ditto.
7085 (IX86_BUILTIN_PCOMGTUD): Ditto.
7086 (IX86_BUILTIN_PCOMGEUD): Ditto.
7087 (IX86_BUILTIN_PCOMFALSEUD): Ditto.
7088 (IX86_BUILTIN_PCOMTRUEUD): Ditto.
7089 (IX86_BUILTIN_PCOMEQUQ): Ditto.
7090 (IX86_BUILTIN_PCOMNEUQ): Ditto.
7091 (IX86_BUILTIN_PCOMLTUQ): Ditto.
7092 (IX86_BUILTIN_PCOMLEUQ): Ditto.
7093 (IX86_BUILTIN_PCOMGTUQ): Ditto.
7094 (IX86_BUILTIN_PCOMGEUQ): Ditto.
7095 (IX86_BUILTIN_PCOMFALSEUQ): Ditto.
7096 (IX86_BUILTIN_PCOMTRUEUQ): Ditto.
7097 (IX86_BUILTIN_PCOMEQB): Ditto.
7098 (IX86_BUILTIN_PCOMNEB): Ditto.
7099 (IX86_BUILTIN_PCOMLTB): Ditto.
7100 (IX86_BUILTIN_PCOMLEB): Ditto.
7101 (IX86_BUILTIN_PCOMGTB): Ditto.
7102 (IX86_BUILTIN_PCOMGEB): Ditto.
7103 (IX86_BUILTIN_PCOMFALSEB): Ditto.
7104 (IX86_BUILTIN_PCOMTRUEB): Ditto.
7105 (IX86_BUILTIN_PCOMEQW): Ditto.
7106 (IX86_BUILTIN_PCOMNEW): Ditto.
7107 (IX86_BUILTIN_PCOMLTW): Ditto.
7108 (IX86_BUILTIN_PCOMLEW): Ditto.
7109 (IX86_BUILTIN_PCOMGTW): Ditto.
7110 (IX86_BUILTIN_PCOMGEW): Ditto.
7111 (IX86_BUILTIN_PCOMFALSEW): Ditto.
7112 (IX86_BUILTIN_PCOMTRUEW): Ditto.
7113 (IX86_BUILTIN_PCOMEQD): Ditto.
7114 (IX86_BUILTIN_PCOMNED): Ditto.
7115 (IX86_BUILTIN_PCOMLTD): Ditto.
7116 (IX86_BUILTIN_PCOMLED): Ditto.
7117 (IX86_BUILTIN_PCOMGTD): Ditto.
7118 (IX86_BUILTIN_PCOMGED): Ditto.
7119 (IX86_BUILTIN_PCOMFALSED): Ditto.
7120 (IX86_BUILTIN_PCOMTRUED): Ditto.
7121 (IX86_BUILTIN_PCOMEQQ): Ditto.
7122 (IX86_BUILTIN_PCOMNEQ): Ditto.
7123 (IX86_BUILTIN_PCOMLTQ): Ditto.
7124 (IX86_BUILTIN_PCOMLEQ): Ditto.
7125 (IX86_BUILTIN_PCOMGTQ): Ditto.
7126 (IX86_BUILTIN_PCOMGEQ): Ditto.
7127 (IX86_BUILTIN_PCOMFALSEQ): Ditto.
7128 (IX86_BUILTIN_PCOMTRUEQ): Ditto.
7129 (enum multi_arg_type): New enum for describing the various SSE5
7130 intrinsic argument types.
7131 (bdesc_multi_arg): New table for SSE5 intrinsics.
7132 (ix86_init_mmx_sse_builtins): Add SSE5 intrinsic support.
7133 (ix86_expand_multi_arg_builtin): New function for creating SSE5
7134 intrinsics.
7135 (ix86_expand_builtin): Add SSE5 intrinsic support.
7136 (ix86_sse5_valid_op_p): New function to validate SSE5 3 and 4
7137 operand instructions.
7138 (ix86_expand_sse5_multiple_memory): New function to split the
7139 second memory reference from SSE5 instructions.
7140 (type_has_variadic_args_p): Delete in favor of stdarg_p.
7141 (ix86_return_pops_args): Use stdarg_p to determine if the function
7142 has variable arguments.
7143 (ix86_setup_incoming_varargs): Ditto.
7144 (x86_this_parameter): Ditto.
7145
7146 * config/i386/i386-protos.h (ix86_expand_sse5_unpack): Add
7147 declaration.
7148 (ix86_expand_sse5_pack): Ditto.
7149 (ix86_sse5_valid_op_p): Ditto.
7150 (ix86_expand_sse5_multiple_memory): Ditto.
7151
7152 * config/i386/i386.md (UNSPEC_SSE5_INTRINSIC): Add new UNSPEC
7153 constant for SSE5 support.
7154 (UNSPEC_SSE5_UNSIGNED_CMP): Ditto.
7155 (UNSPEC_SSE5_TRUEFALSE): Ditto.
7156 (UNSPEC_SSE5_PERMUTE): Ditto.
7157 (UNSPEC_SSE5_ASHIFT): Ditto.
7158 (UNSPEC_SSE5_LSHIFT): Ditto.
7159 (UNSPEC_FRCZ): Ditto.
7160 (UNSPEC_CVTPH2PS): Ditto.
7161 (UNSPEC_CVTPS2PH): Ditto.
7162 (PCOM_FALSE): Add new constant for true/false SSE5 comparisons.
7163 (PCOM_TRUE): Ditto.
7164 (COM_FALSE_S): Ditto.
7165 (COM_FALSE_P): Ditto.
7166 (COM_TRUE_S): Ditto.
7167 (COM_TRUE_P): Ditto.
7168 (type attribute): Add ssemuladd, sseiadd1, ssecvt1, sse4arg types.
7169 (unit attribute): Add support for ssemuladd, ssecvt1, sseiadd1 sse4arg
7170 types.
7171 (memory attribute): Ditto.
7172 (sse4_1_round<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
7173 Use SSE4_1_ROUND_* constants instead of hard coded numbers.
7174 (rint<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
7175 (floor<mode>2): Ditto.
7176 (ceil<mode>2): Ditto.
7177 (btrunc<mode>2): Ditto.
7178 (nearbyintdf2): Ditto.
7179 (nearbyintsf2): Ditto.
7180 (sse_setccsf): Disable if SSE5.
7181 (sse_setccdf): Ditto.
7182 (sse5_setcc<mode>): New support for SSE5 conditional move.
7183 (sse5_pcmov_<mode>): Ditto.
7184
7185 * config/i386/sse.md (SSEMODE1248): New mode iterator for SSE5.
7186 (SSEMODEF4): Ditto.
7187 (SSEMODEF2P): Ditto.
7188 (ssemodesuffixf4): New mode attribute for SSE5.
7189 (ssemodesuffixf2s): Ditto.
7190 (ssemodesuffixf2c): Ditto.
7191 (sserotatemax): Ditto.
7192 (ssescalarmode): Ditto.
7193 (sse_maskcmpv4sf3): Disable if SSE5.
7194 (sse_maskcmpv2df3): Ditto.
7195 (sse_vmmaskcmpv4sf3): Ditto.
7196 (sse5_fmadd<mode>4): Add SSE5 floating point multiply/add instructions.
7197 (sse5_vmfmadd<mode>4): Ditto.
7198 (sse5_fmsub<mode>4): Ditto.
7199 (sse5_vmfmsub<mode>4): Ditto.
7200 (sse5_fnmadd<mode>4): Ditto.
7201 (sse5_vmfnmadd<mode>4): Ditto.
7202 (sse5_fnmsub<mode>4): Ditto.
7203 (sse5_vmfnmsub<mode>4): Ditto.
7204 (sse5i_fmadd<mode>4): Ditto.
7205 (sse5i_fmsub<mode>4): Ditto.
7206 (sse5i_fnmadd<mode>4): Ditto.
7207 (sse5i_fnmsub<mode>4): Ditto.
7208 (sse5i_vmfmadd<mode>4): Ditto.
7209 (sse5i_vmfmsub<mode>4): Ditto.
7210 (sse5i_vmfnmadd<mode>4): Ditto.
7211 (sse5i_vmfnmsub<mode>4): Ditto.
7212 (mulv16qi3): Add SSE5 support.
7213 (mulv4si3): Ditto.
7214 (sse5_mulv4si3): New insn for 32-bit multiply support on SSE5.
7215 (sse2_mulv4si3): Disable if SSE5.
7216 (sse4_1_roundpd): Use TARGET_ROUND instead of TARGET_SSE4_1.
7217 (sse4_1_roundps): Ditto.
7218 (sse4_1_roundsd): Ditto.
7219 (sse4_1_roundss): Ditto.
7220 (sse_maskcmpv4sf3): Disable if SSE5 so the SSE5 instruction will
7221 be generated.
7222 (sse_maskcmpsf3): Ditto.
7223 (sse_vmmaskcmpv4sf3): Ditto.
7224 (sse2_maskcmpv2df3): Ditto.
7225 (sse2_maskcmpdf3): Ditto.
7226 (sse2_vmmaskcmpv2df3): Ditto.
7227 (sse2_eq<mode>3): Ditto.
7228 (sse2_gt<mode>3): Ditto.
7229 (sse5_pcmov_<mode>): Add SSE5 support.
7230 (vec_unpacku_hi_v16qi): Ditto.
7231 (vec_unpacks_hi_v16qi): Ditto.
7232 (vec_unpacku_lo_v16qi): Ditto.
7233 (vec_unpacks_lo_v16qi): Ditto.
7234 (vec_unpacku_hi_v8hi): Ditto.
7235 (vec_unpacks_hi_v8hi): Ditto.
7236 (vec_unpacku_lo_v8hi): Ditto.
7237 (vec_unpacks_lo_v8hi): Ditto.
7238 (vec_unpacku_hi_v4si): Ditto.
7239 (vec_unpacks_hi_v4si): Ditto.
7240 (vec_unpacku_lo_v4si): Ditto.
7241 (vec_unpacks_lo_v4si): Ditto.
7242 (sse5_pmacsww): New SSE5 intrinsic insn.
7243 (sse5_pmacssww): Ditto.
7244 (sse5_pmacsdd): Ditto.
7245 (sse5_pmacssdd): Ditto.
7246 (sse5_pmacssdql): Ditto.
7247 (sse5_pmacssdqh): Ditto.
7248 (sse5_pmacsdqh): Ditto.
7249 (sse5_pmacsswd): Ditto.
7250 (sse5_pmacswd): Ditto.
7251 (sse5_pmadcsswd): Ditto.
7252 (sse5_pmadcswd): Ditto.
7253 (sse5_pcmov_<move>): Conditional move support on SSE5.
7254 (sse5_phaddbw): New SSE5 intrinsic insn.
7255 (sse5_phaddbd): Ditto.
7256 (sse5_phaddbq): Ditto.
7257 (sse5_phaddwd): Ditto.
7258 (sse5_phaddwq): Ditto.
7259 (sse5_phadddq): Ditto.
7260 (sse5_phaddubw): Ditto.
7261 (sse5_phaddubd): Ditto.
7262 (sse5_phaddubq): Ditto.
7263 (sse5_phadduwd): Ditto.
7264 (sse5_phadduwq): Ditto.
7265 (sse5_phaddudq): Ditto.
7266 (sse5_phsubbw): Ditto.
7267 (sse5_phsubwd): Ditto.
7268 (sse5_phsubdq): Ditto.
7269 (sse5_pperm): Ditto.
7270 (sse5_pperm_sign_v16qi_v8hi): New insns for pack/unpack with SSE5.
7271 (sse5_pperm_zero_v16qi_v8hi): Ditto.
7272 (sse5_pperm_sign_v8hi_v4si): Ditto.
7273 (sse5_pperm_zero_v8hi_v4si): Ditto.
7274 (sse5_pperm_sign_v4si_v2di): Ditto.
7275 (sse5_pperm_sign_v4si_v2di): Ditto.
7276 (sse5_pperm_pack_v2di_v4si): Ditto.
7277 (sse5_pperm_pack_v4si_v8hi): Ditto.
7278 (sse5_pperm_pack_v8hi_v16qi): Ditto.
7279 (sse5_perm<mode>): New SSE5 intrinsic insn.
7280 (rotl<mode>3): Ditto.
7281 (sse5_rotl<mode>3): Ditto.
7282 (sse5_ashl<mode>3): Ditto.
7283 (sse5_lshl<mode>3): Ditto.
7284 (sse5_frcz<mode>2): Ditto.
7285 (sse5s_frcz<mode>2): Ditto.
7286 (sse5_cvtph2ps): Ditto.
7287 (sse5_cvtps2ph): Ditto.
7288 (sse5_vmmaskcmp<mode>3): Ditto.
7289 (sse5_com_tf<mode>3): Ditto.
7290 (sse5_maskcmp<mode>3): Ditto.
7291 (sse5_maskcmp_uns<mode>3): Ditto.
7292 (sse5_maskcmp_uns2<mode>3): Ditto.
7293 (sse5_pcom_tf<mode>3): Ditto.
7294
7295 * config/i386/predicates.md (sse5_comparison_float_operator):
7296 New predicate to match the comparison operators supported by
7297 the SSE5 com instruction.
7298 (ix86_comparison_int_operator): New predicate to match just the
7299 signed int comparisons.
7300 (ix86_comparison_uns_operator): New predicate to match just the
7301 unsigned int comparisons.
7302
7303 * doc/invoke.texi (-msse5): Add documentation.
7304 (-mfused-madd): Ditto.
7305
7306 * doc/extend.texi (x86 intrinsics): Document new SSE5 intrinsics.
7307
7308 * config.gcc (i[34567]86-*-*): Include bmmintrin.h and
7309 mmintrin-common.h.
7310 (x86_64-*-*): Ditto.
7311
7312 * config/i386/cpuid.h (bit_SSE5): Define SSE5 bit.
7313
7314 * config/i386/bmmintrin.h: New file, provide common x86 compiler
7315 intrinisics for SSE5.
7316
7317 * config/i386/smmintrin.h: Move instructions shared with SSE5 to
7318 mmintrin-common.h.
7319
7320 * config/i386/mmintrin-common.h: New file, to contain common
7321 instructions between SSE4.1 and SSE5.
7322
7323 * config/i386/netware.c (gen_stdcall_or_fastcall_decoration): Use
7324 FOREACH_FUNCTION_ARGS to iterate over the argument list.
7325 (gen_regparm_prefix): Ditto.
7326
7327 * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix): Use
7328 FOREACH_FUNCTION_ARGS to iterate over the argument list. Use
7329 prototype_p to determine if a function is prototyped.
7330
7331 2009-08-25 Ville Voutilainen <ville.voutilainen@gmail.com>
7332
7333 * c-common.c (c_common_reswords) add the alignof keyword,
7334 with same RID as __alignof and __alignof__
7335
7336 2009-08-25 Anatoly Sokolov <aesok@post.ru>
7337
7338 * hooks.h (hook_bool_const_int_const_int_true): Declare.
7339 * hooks.c (hook_bool_const_int_const_int_true): New function.
7340 * target.h (struct gcc_target): Add can_eliminate field.
7341 * target-def.h (TARGET_CAN_ELIMINATE): Define.
7342 (TARGET_INITIALIZER): Use TARGET_CAN_ELIMINATE.
7343 * ira.c (setup_eliminable_regset): Use can_eliminate target hook.
7344 * reload1.c (update_eliminables, init_elim_table): (Ditto.).
7345 (elim_table): Revise comment.
7346 * system.h (CAN_ELIMINATE): Poison.
7347 * defaults.h (CAN_ELIMINATE): Remove.
7348 * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
7349
7350 * config/alpha/vms.h (CAN_ELIMINATE): Remove macro.
7351 * config/alpha/alpha.c (TARGET_CAN_ELIMINATE) [TARGET_ABI_OPEN_VMS]:
7352 Define macro.
7353 (alpha_vms_can_eliminate): Declare as static, change return type to
7354 bool.
7355 * config/alpha/alpha-protos.h (alpha_vms_can_eliminate): Remove.
7356
7357 * config/arm/arm.h (CAN_ELIMINATE): Remove macro.
7358 * config/arm/arm.c (TARGET_CAN_ELIMINATE): Define macro.
7359 (arm_can_eliminate): New function.
7360
7361 * config/avr/avr.h (CAN_ELIMINATE): Remove macro.
7362 * config/avr/avr.c (TARGET_CAN_ELIMINATE): Define macro.
7363 (avr_can_eliminate): Declare as static.
7364 * config/avr/avr-protos.h (avr_can_eliminate): Remove.
7365
7366 * config/bfin/bfin.h (CAN_ELIMINATE): Remove macro.
7367 * config/bfin/bfin.c (TARGET_CAN_ELIMINATE): Define macro.
7368 (bfin_can_eliminate): New function.
7369
7370 * config/crx/crx.h (CAN_ELIMINATE): Remove macro.
7371 * config/crx/crx.c (TARGET_CAN_ELIMINATE): Define macro.
7372 (crx_can_eliminate): New function.
7373
7374 * config/fr30/fr30.h (CAN_ELIMINATE): Remove macro.
7375 * config/fr30/fr30.c (TARGET_CAN_ELIMINATE): Define macro.
7376 (fr30_can_eliminate): New function.
7377
7378 * config/frv/frv.h (CAN_ELIMINATE): Remove macro.
7379 * config/frv/frv.c (TARGET_CAN_ELIMINATE): Define macro.
7380 (frv_can_eliminate): New function.
7381
7382 * config/h8300/h8300.h (CAN_ELIMINATE): Remove macro.
7383 * config/h8300/h8300.c (TARGET_CAN_ELIMINATE): Define macro.
7384 (h8300_can_eliminate): New function.
7385
7386 * config/i386/i386.h (CAN_ELIMINATE): Remove macro.
7387 * config/i386/i386.c (TARGET_CAN_ELIMINATE): Define macro.
7388 (i386_can_eliminate): Declare as static, change return type to bool.
7389 * config/i386/i386-protos.h (i386_can_eliminate): Remove.
7390
7391 * config/ia64/ia64.h (CAN_ELIMINATE): Remove macro.
7392 * config/ia64/ia64.c (TARGET_CAN_ELIMINATE): Define macro.
7393 (ia64_can_eliminate): New function.
7394
7395 * config/iq2000/iq2000.h (CAN_ELIMINATE): Remove macro.
7396 * config/iq2000/iq2000.c (TARGET_CAN_ELIMINATE): Define macro.
7397 (iq2000_can_eliminate): New function.
7398
7399 * config/m32r/m32r.h (CAN_ELIMINATE): Remove macro.
7400 * config/m32r/m32r.c (TARGET_CAN_ELIMINATE): Define macro.
7401 (m32r_can_eliminate): New function.
7402
7403 * config/m68hc11/m68hc11.h (CAN_ELIMINATE): Remove macro.
7404 * config/m68hc11/m68hc11.c (TARGET_CAN_ELIMINATE): Define macro.
7405 (m68hc11_can_eliminate): New function.
7406
7407 * config/m68k/m68k.h (CAN_ELIMINATE): Remove macro.
7408 * config/m68k/m68k.c (TARGET_CAN_ELIMINATE): Define macro.
7409 (m68k_can_eliminate): New function.
7410
7411 * config/mep/mep.h (CAN_ELIMINATE): Remove macro.
7412 * config/mep/mep.c (TARGET_CAN_ELIMINATE): Define macro.
7413 (mep_can_eliminate): New function.
7414
7415 * config/mips/mips.h (CAN_ELIMINATE): Remove macro.
7416 * config/mips/mips.c (TARGET_CAN_ELIMINATE): Define macro.
7417 (mips_can_eliminate): New function.
7418
7419 * config/rs6000/rs6000.h (CAN_ELIMINATE): Remove macro.
7420 * config/rs6000/rs6000.c (TARGET_CAN_ELIMINATE): Define macro.
7421 (rs6000_can_eliminate): New function.
7422
7423 * config/s390/s390.h (CAN_ELIMINATE): Remove macro.
7424 * config/s390/s390.c (TARGET_CAN_ELIMINATE): Define macro.
7425 (s390_can_eliminate): Declare as static.
7426 * config/s390/s390-protos.h (sparc_can_eliminate): Remove.
7427
7428 * config/score/score.h (CAN_ELIMINATE): Remove macro.
7429 * config/score/score.c (TARGET_CAN_ELIMINATE): Define macro.
7430 (score_can_eliminate): New function.
7431
7432 * config/sparc/sparc.h (CAN_ELIMINATE): Remove macro.
7433 * config/sparc/sparc.c (TARGET_CAN_ELIMINATE): Define macro.
7434 (sparc_can_eliminate): Declare as static.
7435 * config/sparc/sparc-protos.h (sparc_can_eliminate): Remove.
7436
7437 * config/stormy16/stormy16.h (CAN_ELIMINATE): Remove macro.
7438 * config/stormy16/stormy16.c (TARGET_CAN_ELIMINATE): Define macro.
7439 (xstormy16_can_eliminate): New function.
7440
7441 * config/v850/v850.h (CAN_ELIMINATE): Remove macro.
7442 * config/v850/v850.c (TARGET_CAN_ELIMINATE): Define macro.
7443 (v850_can_eliminate): New function.
7444
7445 2009-08-25 Uros Bizjak <ubizjak@gmail.com>
7446
7447 * config/alpha/alpha.md (*cmpdf_ieee_ext[123]): Remove.
7448 (*cmpdf_internal): Enable for all ALPHA_FPTM levels.
7449 (*movdfcc_ext[1234]): Disable for IEEE mode.
7450
7451 2009-08-25 Eric Botcazou <ebotcazou@adacore.com>
7452
7453 * gimplify.c (prepare_gimple_addressable): New static function.
7454 (gimplify_modify_expr_to_memcpy): Invoke it on the RHS before marking
7455 it addressable.
7456 (gimplify_addr_expr): Invoke it similarly on the operand instead of
7457 manually fiddling with it.
7458
7459 2009-08-25 Michael Matz <matz@suse.de>
7460
7461 * expr.h (jumpifnot_1, jumpif_1, do_jump_1): Declare.
7462 * dojump.c (do_jump_by_parts_greater): Take two operands instead of
7463 full expression.
7464 (do_jump_by_parts_equality, do_compare_and_jump): Ditto.
7465 (jumpifnot_1, jumpif_1): New wrappers for do_jump_1.
7466 (do_jump): Split out code for simple binary comparisons into ...
7467 (do_jump_1): ... this, taking the individual operands and code.
7468 Change callers to helper function above accordingly.
7469 * expr.c (expand_expr_real_1): Use jumpifnot_1 for simple binary
7470 comparisons.
7471
7472 2009-08-25 Michael Matz <matz@suse.de>
7473
7474 * expr.h (struct separate_ops, sepops): New type for passing
7475 around an exploded simple expression.
7476 * optabs.c (expand_widen_pattern_expr, expand_vec_shift_expr):
7477 Use this structure instead of expression tree.
7478 (get_vcond_icode, expand_vec_cond_expr_p): Don't take whole
7479 expression, only its type.
7480 (expand_vec_cond_expr): Take type and individual operands instead
7481 of full expression.
7482 * optabs.h (expand_widen_pattern_expr, expand_vec_cond_expr,
7483 expand_vec_shift_expr): Change prototype accordingly.
7484 * tree-vect-stmts.c (vectorizable_condition): Change call of
7485 expand_vec_cond_expr_p to pass only type.
7486 * expr.c (do_store_flags): Change prototype and implementation
7487 to take an exploded expression.
7488 (expand_expr_real_1): New local ops initialized with details
7489 of the full expression. Use it instead of full
7490 expression in calls to do_store_flags, expand_vec_cond_expr,
7491 expand_widen_pattern_expr and expand_vec_shift_expr.
7492
7493 2009-08-25 Michael Matz <matz@suse.de>
7494
7495 * expr.c (expand_expr_real_1): New local treeop0, treeop1,
7496 treeop2 initialized with first three operands of the full expression.
7497 Substitute all TREE_OPERAND (exp, [012]) calls with them.
7498
7499 2009-08-25 Kai Tietz <kai.tietz@onevision.com>
7500
7501 * gcc/gthr-win32.h (__UNUSED_PARAM): Define, if not already present.
7502 (__gthread_objc_condition_allocate): Mark arguments as unused.
7503 (__gthread_objc_condition_deallocate): Likewise.
7504 (__gthread_objc_condition_wait): Likewise.
7505 (__gthread_objc_condition_broadcast): Likewise.
7506 (__gthread_objc_condition_signal): Likewise.
7507 (__gthread_objc_thread_detach): Cast via INT_PTR to pointer.
7508 (__gthread_objc_thread_id): Likewise.
7509
7510 2009-08-25 Janus Weil <janus@gcc.gnu.org>
7511
7512 PR middle-end/41149
7513 * tree-pretty-print.c (print_call_name): Print the correct call name
7514 for procedure pointer components.
7515
7516 2009-08-24 Steve Ellcey <sje@cup.hp.com>
7517
7518 * config/ia64/ia64.c (ia64_promote_function_mode): Call
7519 default_promote_function_mode when not VMS.
7520
7521 2009-08-24 Olivier Hainque <hainque@adacore.com>
7522
7523 * convert.c (convert_to_integer): Don't assume an input pointer is
7524 POINTER_SIZE wide. Fetch from the type instead.
7525
7526 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7527
7528 * configure.ac (AC_PREREQ): Bump to 2.64.
7529
7530 2009-08-24 Rafael Avila de Espindola <espindola@google.com>
7531
7532 * gcc.c (standard_exec_prefix_1,standard_exec_prefix_2): Remove.
7533 (process_command): Don't search standard_exec_prefix_1 and
7534 standard_exec_prefix_2.
7535
7536 2009-08-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7537
7538 * config/arm/arm.c (output_return_instruction): Handle for
7539 unified syntax.
7540
7541 2009-08-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7542
7543 * config/arm/arm.c (arm_select_cc_mode): Handle subreg.
7544
7545 2009-08-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7546
7547 * config/arm/vfp.md (*arm_movdi_vfp): Mark as predicable.
7548 (*arm_movdf_vfp): Likewise.
7549
7550 2009-08-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7551
7552 * config/arm/neon.md (vashl<mode>3): Rename from ashl<mode>3.
7553 (vashr<mode>3): Rename from ashr<mode>3.
7554 (vlshr<mode>3): Rename from lshr<mode>3.
7555
7556 2009-08-24 Kai Tietz <kai.tietz@onevision.com>
7557
7558 PR/40786
7559 * c-format.c (format_wanted_type): Add new member scalar_identity_flag.
7560 (check_format_info_main): Use scalar_identify_flag.
7561 (check_format_types): Check for scalar size identity if
7562 scalar_identify_flag is set.
7563 (printf_length_specs): Extend by new field.
7564 (asm_fprintf_length_specs): Likewise.
7565 (gcc_diag_length_specs): Likewise.
7566 (scanf_length_specs): Likewise.
7567 (strfmon_length_specs): Likewise.
7568 (gcc_gfc_length_specs): Likewise.
7569 * config/i386/msformat-c.c (ms_printf_length_specs): Likewise.
7570 (ms_printf_flag_specs): Likewise.
7571 * c-format.h (format_length_info): Add new member scalar_identity_flag.
7572
7573 2009-08-23 Uros Bizjak <ubizjak@gmail.com>
7574
7575 PR target/40718
7576 * config/i386/i386.c (*call_pop_1): Disable for sibling calls.
7577 (*call_value_pop_1): Ditto.
7578 (*sibcall_pop_1): New insn pattern.
7579 (*sibcall_value_pop_1): Ditto.
7580
7581 2009-08-23 Alan Modra <amodra@bigpond.net.au>
7582
7583 PR target/41081
7584 * config/rs6000/rs6000.md (rotlsi3_64, ashlsi3_64, lshrsi3_64,
7585 ashrsi3_64): New.
7586
7587 2009-08-23 Alan Modra <amodra@bigpond.net.au>
7588
7589 PR target/41081
7590 * fwprop.c (try_fwprop_subst): Allow multiple sets.
7591 (get_reg_use_in): New function.
7592 (forward_propagate_subreg): Propagate through subreg of zero_extend
7593 or sign_extend.
7594
7595 2009-08-22 Kaz Kojima <kkojima@gcc.gnu.org>
7596
7597 * config/sh/t-sh (TARGET_LIBGCC2_CFLAGS): Define.
7598 * config/sh/t-netbsd (TARGET_LIBGCC2_CFLAGS): Add -mieee.
7599
7600 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7601
7602 * configure.ac: Remove --with-datarootdir, --with-docdir,
7603 --with-htmldir switches. No need to call AC_SUBST for
7604 datarootdir, docdir, htmldir any more.
7605 * configure: Regenerate.
7606 * doc/install.texi (Configuration): Document --datarootdir,
7607 --docdir, --htmldir, --pdfdir; update documentation for
7608 --infodir, --mandir.
7609 (Prerequisites): Bump Autoconf version to 2.64, Automake to 1.11,
7610 M4 to 1.4.6.
7611
7612 * aclocal.m4: Regenerate.
7613 * config.in: Regenerate.
7614 * configure: Regenerate.
7615
7616 2009-08-21 Douglas B Rupp <rupp@gnat.com>
7617 Olivier Hainque <hainque@adacore.com>
7618
7619 * config/ia64/ia64.c: Include libfuncs.h.
7620 (TARGET_PROMOTE_FUNCITON_MODE): Define target macro.
7621 (ia64_expand_call): Use reg 25 on VMS.
7622 (ia64_initialize_trampoline): Fix for VMS ABI.
7623 (ia64_function_arg_offset): Always returns 0 when TARGET_ABI_OPEN_VMS.
7624 (ia64_function_arg): Initialize reg 25 on VMS.
7625 Fix OpenVMS ABI issues for varargs.
7626 For OpenVMS, emit the Argument Information register set in the
7627 incoming/sibcall case as well.
7628 (ia64_arg_type): New function.
7629 (ia64_function_arg_advance): Keep track of cum->words.
7630 Fix OpenVMS ABI issues for varargs.
7631 (ia64_function_value): On VMS, promote mode of non-aggregate types.
7632 (ia64_override_options): Set flag_no_common on VMS.
7633 (ia64_init_builtins): Disable FWRITE builtin.
7634 (ia64_asm_output_external): Call DO_CRTL_NAMES.
7635 (ia64_vms_init_libfuncs): Add decc$ routines.
7636 (ia64_vms_valid_pointer_mode): New function.
7637 (ia64_struct_value_rtx): Allways NULL_RTX on VMS.
7638 (ia64_promote_function_mode): New function
7639 * config/ia64/ia64.h (TARGET_ABI_OPEN_VMS): Define as 0 for default.
7640 (LONG_DOUBLE_TYPE_SIZE): Force to 64 on VMS.
7641 (LIBCGC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
7642 (INIT_CUMULATIVE_ARGS): Add atypes for VMS.
7643 (INIT_CUMULATIVE_INCOMING_ARGS): Likewise.
7644 (ASM_OUTPUT_DEF): Use ISDIGIT instead of isdigit.
7645 Suppress trailing '#' if VALUE is numeric.
7646 * config/ia64/vms.h (PROMOTE_FUNCTION_MODE): Remove, code moved to
7647 ia64_promote_function_mode.
7648 (TARGET_VALID_POINTER_MODE): Define.
7649
7650 2009-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
7651
7652 PR target/40671
7653 * config/rs6000/rs6000.c (rs6000_override_options): Use
7654 TARGET_64BIT instead of TARGET_POWERPC64 to set the size of pointers.
7655
7656 PR target/41145
7657 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Fix
7658 reporting of vector + decimal/boolean/complex error.
7659
7660 2009-08-21 Jakub Jelinek <jakub@redhat.com>
7661
7662 * config/rs6000/rs6000.c (rs6000_init_builtins): Fix type of
7663 __vector double TYPE_DECL.
7664
7665 2009-08-21 Richard Earnshaw <rearnsha@arm.com>
7666
7667 * arm.h (MACHMODE): New define. Include insn-modes.h if available.
7668 (CUMULATIVE_ARGS): Use MACHMODE for declaration of aapcs_vfp_mode.
7669 * arm.c (aapcs_vfp_is_call_or_return_candidate): Change base_mode
7670 to pointer to enum machine_mode. Update all callers as needed.
7671
7672 2009-08-21 Uros Bizjak <ubizjak@gmail.com>
7673
7674 * config/alpha/alpha.md (exception_receiver): Emit alternative
7675 GP load sequence if flag_reorder_blocks_and_partition is set.
7676 (*exception_receiver_2): Also enable when
7677 flag_reorder_blocks_and_partition is set.
7678
7679 2009-08-20 Matt Rice <ratmice@gmail.com>
7680 Diego Novillo <dnovillo@google.com>
7681
7682 * Makefile.in (PLUGIN_HEADERS): Include incpath.h and
7683 tree-ssa-sccvn.h.
7684
7685 2009-08-20 Richard Guenther <rguenther@suse.de>
7686
7687 * c-objc-common.h (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Do not define.
7688 * c-tree.h (c_dup_lang_specific_decl): Remove.
7689 (struct lang_decl, struct lang_type): Move definitions ...
7690 * c-lang.h: ... here. New file.
7691 * c-decl.c: Include c-lang.h.
7692 (c_dup_lang_specific_decl): Remove.
7693 * c-typeck.c: Include c-lang.h.
7694 * Makefile.in (c-decl.o): Add c-lang.h dependency.
7695 (c-typeck.o): Likewise.
7696 * c-config-lang.in (gtfiles): Add c-lang.h.
7697 * gengtype.c (get_output_file_with_visibility): Handle c-lang.h
7698 like c-tree.h.
7699
7700 2009-08-20 Uros Bizjak <ubizjak@gmail.com>
7701
7702 * config/alpha/alpha.c (alpha_end_function): Do not clear
7703 crtl->emit structure and free insn locators if cfun->is_thunk is true,
7704 this is now handled in generic code.
7705
7706 2009-08-20 Andreas Krebbel <krebbel1@de.ibm.com>
7707
7708 * config/s390/s390.c (Z10_PREDICT_DISTANCE): New macro.
7709 (s390_z10_fix_long_loop_prediction): New function.
7710 (s390_z10_optimize_cmp): INSN walk moved to callee - s390_reorg.
7711 (s390_reorg): Walk over the INSNs and invoke
7712 s390_z10_fix_long_loop_prediction and s390_z10_optimize_cmp.
7713
7714 2009-08-20 Andreas Krebbel <krebbel1@de.ibm.com>
7715
7716 * config/s390/s390.md ("*brx_stage1_<GPR:mode>", "*brxg_64bit",
7717 "*brx_64bit", "*brx_31bit"): New patterns.
7718 * config/s390/s390.c ('E'): New output modifier.
7719
7720 2009-08-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7721 Richard Earnshaw <richard.earnshaw@arm.com>
7722
7723 * config/arm/arm.c (arm_emit_movpair): Handle CONST_INT.
7724 * config/arm/arm.md (*arm_movtas_ze): New pattern for movt.
7725
7726 2009-08-19 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7727
7728 * pa.md (reload_inhi, reload_outhi, reload_inqi, reload_outqi): New
7729 patterns.
7730 * pa.c (emit_move_sequence): Check if address of operand1 is valid
7731 for mode mode of operand0 when doing secondary reload for SAR.
7732
7733 2009-08-19 Jakub Jelinek <jakub@redhat.com>
7734
7735 PR middle-end/41123
7736 * expr.c (expand_expr_real_1) <normal_inner_ref>: Handle all kinds
7737 of CONCAT, not just bitpos 0 bitsize size of the whole CONCAT.
7738
7739 2009-08-19 Jason Merrill <jason@redhat.com>
7740
7741 * doc/invoke.texi (C++ Dialect Options): Note change of minimum
7742 supported template depth in C++0x.
7743
7744 2009-08-19 Jakub Jelinek <jakub@redhat.com>
7745
7746 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Don't call
7747 free_after_compilation.
7748 * config/score/score7.c (score7_output_mi_thunk): Likewise.
7749 * config/score/score3.c (score3_output_mi_thunk): Likewise.
7750 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
7751 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
7752 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
7753 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
7754 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
7755
7756 2009-08-19 Ian Lance Taylor <iant@google.com>
7757
7758 * doc/md.texi (Insn Canonicalizations): Correct canonicalization
7759 of (plus (mult (neg B) C) A).
7760
7761 2009-08-18 Michael Matz <matz@suse.de>
7762
7763 * omp-low.c (optimize_omp_library_calls): Use types_compatible_p
7764 instead of comparing TYPE_MAIN_VARIANT for equality.
7765 * tree-vect-patterns.c (vect_recog_dot_prod_pattern,
7766 vect_recog_widen_mult_pattern, vect_recog_widen_sum_pattern): Ditto.
7767 * tree-vect-loop.c (vect_is_simple_reduction): Ditto.
7768 * gimplify.c (goa_lhs_expr_p): Ditto and use
7769 STRIP_USELESS_TYPE_CONVERSION.
7770
7771 2009-08-18 Michael Matz <matz@suse.de>
7772
7773 * tree-ssa-structalias.c (create_variable_info_for): Also mark
7774 first field in a struct.
7775 (intra_create_variable_infos): Don't deal with flag_argument_noalias.
7776
7777 2009-08-18 Uros Bizjak <ubizjak@gmail.com>
7778
7779 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn
7780 locators before emit_insn is called. Remove assert that
7781 cfun->is_thunk.
7782 (alpha_end_function): Clear crtl->emit structure and free insn
7783 locators if cfun->is_thunk is true.
7784
7785 2009-08-18 Jason Merrill <jason@redhat.com>
7786
7787 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
7788 type if available.
7789 * configure.ac: Test for it.
7790 * configure, config.in: Regenerate.
7791 * doc/install.texi: Document --enable-gnu-unique-object.
7792
7793 2009-08-18 Richard Guenther <rguenther@suse.de>
7794
7795 PR middle-end/41094
7796 * builtins.c (fold_builtin_pow): Fold pow(pow(x,y),z) to
7797 pow(x,y*z) only if x is nonnegative.
7798
7799 2009-08-18 Jakub Jelinek <jakub@redhat.com>
7800
7801 * bb-reorder.c (fix_up_fall_thru_edges): Only call invert_jump
7802 on jumps.
7803
7804 PR target/40971
7805 * config/rs6000/rs6000.c (rs6000_legitimize_address): For
7806 [DT][FDI]mode ensure the offset isn't 4/8/12 bytes below 0x8000.
7807
7808 2009-08-17 DJ Delorie <dj@redhat.com>
7809
7810 * config/m32c/m32c.md (UNS_FSETB, UNS_FREIT): New.
7811 * config/m32c/prologue.md (epilogue_freit): New.
7812 (fset_b): New.
7813 * config/m32c/m32c.c (m32c_function_needs_enter): Add prototype.
7814 (bank_switch_p): Likewise.
7815 (fast_interrupt_p): Likewise.
7816 (interrupt_p): Likewise.
7817 (m32c_conditional_register_usage): Round memregs size up.
7818 (need_to_save): We only need to save $a0 when we use ENTER.
7819 (interrupt_p): Check for fast_interrupt too.
7820 (bank_switch_p): New.
7821 (fast_interrupt_p): New.
7822 (m32c_attribute_table): Add bank_switch and fast_interrupt.
7823 (m32c_emit_prolog): Support bank switching and fast interrupts.
7824 * doc/extend.texi (Function Attributes): Add bank_switch and
7825 fast_interrupt.
7826
7827 2009-08-17 Douglas B Rupp <rupp@gnat.com>
7828
7829 * config/alpha/alpha.c (vms_valid_pointer_mode): New function.
7830 * config/alpha/vms.h (TARGET_VALID_POINTER_MODE): Define.
7831
7832 2009-08-16 Douglas B Rupp <rupp@gnat.com>
7833
7834 * doc/invoke.texi (Target options): Add new option list for IA-64/VMS.
7835 (menu): Add IA-64/VMS Options.
7836 (IA-64/VMS Options): Likewise.
7837
7838 2009-08-16 Richard Sandiford <rdsandiford@googlemail.com>
7839
7840 PR target/38599
7841 * config/mips/mips.md (*lwxs): Use :P for pointer values.
7842
7843 2009-08-16 Richard Sandiford <rdsandiford@googlemail.com>
7844
7845 * config/mips/mips-protos.h (mips_push_asm_switch): New function.
7846 (mips_pop_asm_switch): Likewise.
7847 * config/mips/mips.c (set_noreorder, set_nomacro, set_noat): Replace
7848 with...
7849 (mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
7850 (mips_push_asm_switch_1, mips_pop_asm_switch_1): New functions.
7851 (mips_push_asm_switch, mips_pop_asm_switch): Likewise.
7852 (mips_print_operand_punctuation): Use them. Check mips_noreorder
7853 instead of set_noreorder.
7854 (mips_output_function_prologue): Use the new functions.
7855 (mips_output_function_epilogue): Likewise.
7856 (mips_need_noat_wrapper_p): New function, split out from...
7857 (mips_final_prescan_insn, mips_final_postscan_insn): ...here.
7858 Use mips_push_asm_switch and mips_pop_asm_switch.
7859 * config/mips/mips.h (FUNCTION_PROFILER): Use mips_push_asm_switch
7860 and mips_pop_asm_switch.
7861 (ASM_OUTPUT_REG_POP): Likewise.
7862 (DBR_OUTPUT_SEQEND): Remove boilerplate comment.
7863 Use mips_pop_asm_switch.
7864 (mips_asm_switch): New structure.
7865 (set_noreorder, set_nomacro): Replace with...
7866 (mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
7867 * config/mips/mips.md (fix_truncdfsi2_macro): Use mips_nomacro
7868 instead of set_nomacro.
7869 (fix_truncsfsi2_macro): Likewise.
7870 (cprestore): Likewise.
7871 (hazard): Use mips_noreorder instead of set_noreorder.
7872 * config/mips/sdemtk.h (FUNCTION_PROFILER): As for mips.h.
7873
7874 2009-08-16 Uros Bizjak <ubizjak@gmail.com>
7875
7876 * config/alpha/alpha.c (alpha_end_function): Handle NULL_RTX returned
7877 from prev_active_insn.
7878
7879 2009-08-16 Anatoly Sokolov <aesok@post.ru>
7880
7881 * config/avr/avr.h (AVR_HAVE_8BIT_SP): New macros.
7882 * config/avr/avr.c (avr_override_options): Initialize
7883 avr_current_arch variable.
7884 (avr_cpu_cpp_builtins): Define __AVR_HAVE_8BIT_SP__ or
7885 __AVR_HAVE_16BIT_SP__ according to the device type.
7886 (expand_prologue, output_movhi): Use AVR_HAVE_8BIT_SP instead of
7887 TARGET_TINY_STACK.
7888 (expand_epilogue): Use correct QI mode frame pointer for tiny stack.
7889 Use AVR_HAVE_8BIT_SP instead of TARGET_TINY_STACK.
7890
7891 2009-08-16 Dodji Seketeli <dodji@redhat.com>
7892
7893 PR debug/37801
7894 * gcc/dwarf2out.c (gen_inlined_subroutine_die): Concentrate on
7895 generating inlined subroutine die only. We shouldn't be
7896 called for anything else.
7897 (gen_block_die): Don't generate inline subroutine debug info for
7898 abstract blocks.
7899
7900 2009-08-15 Sebastian Pop <sebastian.pop@amd.com>
7901
7902 * graphite-poly.c (print_pbb): Print PBB index.
7903
7904 2009-08-15 Sebastian Pop <sebastian.pop@amd.com>
7905
7906 PR middle-end/40981
7907 * graphite-interchange.c (ppl_max_for_le): Moved...
7908 * graphite-poly.c (pbb_number_of_iterations): Call ppl_max_for_le.
7909 * graphite-ppl.c (ppl_max_for_le): ... here. Correct the use of
7910 ppl_Pointset_Powerset_C_Polyhedron_maximize.
7911 * graphite-ppl.h (ppl_max_for_le): Declared.
7912
7913 2009-08-14 Olatunji Ruwase <tjruwase@google.com>
7914
7915 * doc/extend.texi (Symbol-Renaming Pragmas): redefine_extname is
7916 supported on all platforms.
7917 * target.h (struct gcc_target): Remove handle_pragma_redefine_extname.
7918 * c-cppbuiltin.c: Remove use of targetm.handle_pragma_redefine_extname.
7919 * c-pragma.c: Likewise.
7920 * target-def.h (TARGET_INITIALIZER): Remove
7921 TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
7922 * config/sol2.h: Remove use of TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
7923
7924 2009-08-14 Douglas B Rupp <rupp@gnat.com>
7925
7926 * config/ia64/fde-vms.c: New file.
7927 * config/ia64/fde-glibc.c (_Unwind_FindTableEntry): Add dummy arg.
7928 * config/ia64/unwind-ia64.c (UNW_ accessors): Move to unwind-ia64.h
7929 (MD_UNW_COMPATIBLE_PERSONALITY_P): Provide default.
7930 (uw_frame_state_for): Only register a personality routine if it is
7931 known to be compatible with our expectations.
7932 (_Unwind_FindEnclosingFunction, uw_frame_state_for):
7933 Declare unw_table_entry stack variable and
7934 mod all calls to _Unwind_FindTableEntry to add arg.
7935 * config/ia64/unwind-ia64.h (UNW_ accessors): Move here.
7936 (_Unwind_FindTableEntry): Add arg to prototype.
7937
7938 2009-08-14 Eric Botcazou <ebotcazou@adacore.com>
7939
7940 * config/ia64/unwind-ia64.c (struct _Unwind_Context): Add new
7941 field 'signal_pfs_loc'.
7942 (uw_frame_state_for): Remove duplicate code dealing with leaf
7943 procedures without unwind info.
7944 If in the frame after unwinding through a signal handler, restore
7945 the AR.PFS register instead of the CFM if AR.PFS has not been saved.
7946 * config/ia64/linux-unwind.h (ia64_fallback_frame_state): Do not set
7947 'pfs_loc' to the AR.PFS location in the signal context; instead
7948 set 'signal_pfs_loc'.
7949 Manually generate the unwind info for the AR.PFS register.
7950 (ABI_MARKER_OLD_LINUX_SIGTRAMP, ABI_MARKER_OLD_LINUX_INTERRUPT,
7951 ABI_MARKER_LINUX_SIGTRAMP, ABI_MARKER_LINUX_INTERRUPT): Define.
7952 (ia64_handle_unwabi): Test 'fs->unwabi' against them.
7953 Do not set 'pfs_loc' to the AR.PFS location in the signal context;
7954 instead set 'signal_pfs_loc'.
7955 Remove code preventing the AR.PFS register from being restored
7956 from the signal context.
7957
7958 2009-08-14 Douglas B Rupp <rupp@gnat.com>
7959 Tristan Gingold <gingold@adacore.com>
7960
7961 * config.gcc (ia64-hp-*vms*): Insert ia64/t-ia64 in tmake_file.
7962 * config/ia64/t-vms: New file.
7963 * config/ia64/vms64.h: New file.
7964 * config/ia64/vms.h: New file.
7965 * config/ia64/vms-crtinit.asm: New file.
7966 * config/ia64/vms_symvec_libgcc_s.opt: New file.
7967 * config/ia64/vms-unwind.h: New file.
7968
7969 2009-08-14 Uros Bizjak <ubizjak@gmail.com>
7970
7971 * config/alpha/alpha.c (alpha_emit_conditional_move): Handle
7972 TFmode compares.
7973
7974 2009-08-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7975
7976 PR middle-end/30789
7977 * builtins.c (do_mpc_arg2): Make extern, define for any MPC version.
7978 Move declaration...
7979 * real.h (do_mpc_arg2): ... here.
7980 * fold-const.c (const_binop): Use MPC for complex MULT_EXPR
7981 and RDIV_EXPR.
7982
7983 2009-08-14 Rafael Avila de Espindola <espindola@google.com>
7984
7985 * final.c (add_debug_prefix_map): Don't use GC memory for
7986 old_prefix and new_prefix.
7987
7988 2009-08-14 Richard Guenther <rguenther@suse.de>
7989
7990 * ipa-prop.c (compute_complex_pass_through): If we cannot
7991 compute a non-varying offset for IPA_JF_ANCESTOR punt.
7992
7993 2009-08-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7994
7995 * c-lex.c (c_lex_with_flags): Increase size of local variable
7996 to avoid memory clobber.
7997
7998 2009-08-14 Paolo Bonzini <bonzini@gnu.org>
7999
8000 PR target/40934
8001 * config/i386/i386.c (ix86_fp_comparison_strategy):
8002 Only enable/disable sahf at function granularity.
8003
8004 2009-08-14 Hans-Peter Nilsson <hp@axis.com>
8005
8006 PR rtl-optimization/41064
8007 * reload1.c (reload_as_needed): Don't call extract_insn
8008 for known invalid replacements after calling
8009 validate_replace_rtx_group and verify_changes.
8010
8011 2009-08-14 Uros Bizjak <ubizjak@gmail.com>
8012
8013 PR target/41019
8014 * config/i386/sse.md (SSEMODE124C8): New mode iterator.
8015 (vcond<SSEMODEF2P:mode>): Assert that operation is supported by
8016 ix86_expand_fp_vcond.
8017 (vcond<SSEMODE124C8:mode>): Use SSEMODE124C8 instead of SSEMODE124.
8018 Assert that operation is supported by ix86_expand_int_vcond.
8019 (vcondu<SSEMODE124C8:mode>): Ditto.
8020
8021 2009-08-13 DJ Delorie <dj@redhat.com>
8022
8023 * config/i386/djgpp-stdint.h: New.
8024 * config.gcc (djgpp): Use it.
8025
8026 2009-08-13 Kaz Kojima <kkojima@gcc.gnu.org>
8027
8028 * config/sh/sh.c (sh_override_options): When flag_exceptions or
8029 flag_unwind_tables is on, turn flag_reorder_blocks_and_partition off.
8030
8031 2009-08-13 Ghassan Shobaki <ghassan.shobaki@amd.com>
8032
8033 * tree-ssa-loop-prefetch.c
8034 (prune_ref_by_group_reuse): Enhance probabilistic analysis
8035 for long-stride pruning.
8036 (compute_miss_rate): New function to compute the probability
8037 that two memory references access different cache lines.
8038
8039 2009-08-13 Dave Korn <dave.korn.cygwin@gmail.com>
8040
8041 * gcc/config/i386/cygwin.h (LINK_SPEC): Add --enable-auto-image-base.
8042
8043 2009-08-13 Richard Guenther <rguenther@suse.de>
8044
8045 PR middle-end/41047
8046 * tree-ssa-ccp.c (ccp_fold): When folding pointer additions
8047 use the constant pointer type.
8048 * gimplify.c (canonicalize_addr_expr): Canonicalize independent
8049 of CV qualifiers on the target pointer type.
8050 * tree-ssa.c (useless_type_conversion_p): Move incomplete pointer
8051 conversion check before restrict check.
8052
8053 2009-08-12 Kaz Kojima <kkojima@gcc.gnu.org>
8054
8055 PR target/41029
8056 * config/sh/sh.md (reload_outdf__RnFRm+4): Fix thinko.
8057
8058 2009-08-12 Kaz Kojima <kkojima@gcc.gnu.org>
8059
8060 * config/sh/sh.c (sh_promote_function_mode): Add ATTRIBUTE_UNUSED.
8061
8062 2009-08-12 Richard Guenther <rguenther@suse.de>
8063
8064 PR tree-optimization/41011
8065 * ipa-cp.c (ipcp_lattice_from_jfunc): Deal with failing fold
8066 and reference constructing.
8067
8068 2009-08-12 Xinliang David Li <davidxl@google.com>
8069
8070 PR tree-optimization/41012
8071 * tree-flow.h : New external interface.
8072 * gimple-low.c (check_call_arg): Change to public function.
8073 Remove argument mismatch check in lowering.
8074 * tree-inline.h (tree_can_inline_p): Interface change.
8075 * tree-inline.c (tree_can_inline_p): Fold argument mismatch check
8076 into this function.
8077 * ipa-inline.c (cgraph_decide_inlining_of_small_functions):
8078 Call change to tree_can_inline_p function.
8079 (cgraph_decide_inlining_incrementally): Ditto.
8080
8081 2009-08-12 Richard Sandiford <rdsandiford@googlemail.com>
8082
8083 PR tree-optimization/41031
8084 * tree-outof-ssa.c (insert_value_copy_on_edge): Use promote_decl_mode
8085 on the partition variable rather than promote_mode on the source
8086 type. Assert that the partition variable's type has the same
8087 mode as the source value's.
8088
8089 2009-08-12 Paolo Bonzini <bonzini@gnu.org>
8090
8091 * doc/tm.texi (TARGET_PROMOTE_FUNCTION_MODE): Add documentation
8092 for for_return == 2.
8093 * function.c (assign_parm_setup_reg): Use for_return == 2, improve
8094 comments.
8095 * calls.c (expand_call): Fix typo.
8096 * explow.c (promote_decl_mode): Use for_return == 2 for RESULT_DECL
8097 and PARM_DECL.
8098 * stmt.c (expand_value_return): Use promote_function_mode to copy out
8099 of pseudo.
8100 * targhooks.c (default_promote_function_mode): Handle for_return == 2.
8101 * config/cris/cris.c (cris_promote_function_mode): Likewise.
8102 * config/mmix/mmix.c (mmix_promote_function_mode): Likewise.
8103 * config/pa/pa.c (pa_promote_function_mode): Likewise.
8104
8105 2009-08-12 Andrew Haley <aph@redhat.com>
8106
8107 * config/arm/arm.c (arm_init_libfuncs): Add __sync_synchronize.
8108
8109 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
8110
8111 PR bootstrap/40103
8112 * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
8113
8114 2009-08-12 Richard Guenther <rguenther@suse.de>
8115
8116 * alias.c (get_alias_set): Honor TYPE_STRUCTURAL_EQUALITY_P.
8117 * gimplify.c (gimplify_modify_expr): Do not use
8118 lang_hooks.types_compatible_p.
8119 * tree-ssa.c (useless_type_conversion_p): For aggregates
8120 just return false if the canonical types differ.
8121
8122 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
8123
8124 PR middle-end/40980
8125 * sese.c (convert_for_phi_arg): New.
8126 (add_guard_exit_phis): Use convert_for_phi_arg.
8127
8128 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
8129
8130 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Dont add
8131 unknown subscript upper bounds.
8132
8133 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
8134 Pranav Garg <pranav.garg2107@gmail.com>
8135
8136 * graphite-interchange.c (gather_access_strides): Removed.
8137 (ppl_max_for_le): New.
8138 (build_linearized_memory_access): New.
8139 (memory_stride_in_loop): New.
8140 (pbb_interchange_profitable_p): Reimplemented.
8141 * graphite-ppl.h (ppl_new_id_map): New.
8142 (ppl_interchange): New.
8143
8144 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
8145
8146 * graphite-interchange.c (compute_subscript): Removed.
8147 (compute_array_size_cstr): Removed.
8148 (compute_array_size_poly): Removed.
8149 (compute_array_size): Removed.
8150 (gather_access_strides_poly): Removed.
8151 (gather_access_strides): Empty.
8152
8153 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
8154
8155 * graphite-dependences.c (dependence_polyhedron_1): Replace
8156 pdr_nb_subscripts with PDR_NB_SUBSCRIPTS.
8157 (graphite_legal_transform_dr): Same.
8158 (graphite_carried_dependence_level_k): Same.
8159 * graphite-poly.c (new_poly_dr): Add a parameter nb_subscripts.
8160 Initialize PDR_NB_SUBSCRIPTS.
8161 (print_pdr_access_layout): Replace pdr_nb_subscripts with
8162 PDR_NB_SUBSCRIPTS.
8163 * graphite-poly.h (struct poly_dr): Add nb_subscripts field.
8164 (PDR_NB_SUBSCRIPTS): New.
8165 (pdr_nb_subscripts): Removed.
8166 (pdr_dim): Simplified.
8167 * graphite-sese-to-poly.c (build_poly_dr): Replace pdr_nb_subscripts
8168 with PDR_NB_SUBSCRIPTS.
8169
8170 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
8171
8172 * graphite-interchange.c (compute_array_size): Remove use of
8173 PDR_DATA_CONTAINER.
8174 * graphite-poly.c (new_poly_dr): Remove argument data_container.
8175 Do not initialize PDR_DATA_CONTAINER.
8176 (print_pdr): Do not print PDR_DATA_CONTAINER.
8177 * graphite-poly.h (struct poly_dr): Remove data_container field.
8178 (PDR_DATA_CONTAINER): Removed.
8179 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Remove use of
8180 PDR_DATA_CONTAINER.
8181 (build_poly_dr): Same.
8182
8183 2009-08-12 Konrad Trifunovic <konrad.trifunovic@gmail.com>
8184 Sebastian Pop <sebastian.pop@amd.com>
8185
8186 * graphite-dependences.c (graphite_legal_transform_dr): Work on a
8187 copy of the dependence polyhedron. Free the temporary objects.
8188 (graphite_carried_dependence_level_k): Free unused objects before
8189 returning.
8190
8191 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
8192
8193 * graphite-blocking.c (scop_do_strip_mine): Call store_scattering.
8194 Early return without analyzing the data dependences if no
8195 transform has been done. Call restore_scattering if the transform
8196 is not legal.
8197 (graphite-interchange.c): Same.
8198 * graphite-poly.c (print_scattering_function): Test for
8199 PBB_TRANSFORMED.
8200 (graphite_read_transforms): Initialize PBB_TRANSFORMED.
8201 (apply_poly_transforms): Do not gcc_assert that
8202 the transform is legal.
8203 (new_poly_bb): Initialize PBB_TRANSFORMED, PBB_SAVED and PBB_ORIGINAL.
8204 Do not initialize PBB_NB_SCATTERING_TRANSFORM, PBB_NB_LOCAL_VARIABLES,
8205 PBB_TRANSFORMED_SCATTERING, and PBB_ORIGINAL_SCATTERING.
8206 (free_poly_dr): Free PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL.
8207 * graphite-poly.h (struct poly_scattering): New.
8208 (struct poly_bb): Add original, transformed, and saved fields.
8209 Remove transformed_scattering, original_scattering,
8210 nb_local_variables and nb_scattering_transform fields.
8211 (PBB_ORIGINAL, PBB_TRANSFORMED, PBB_SAVED): New.
8212 (poly_scattering_new): New.
8213 (poly_scattering_free): New.
8214 (poly_scattering_copy): New.
8215 (store_scattering_pbb): New.
8216 (store_scattering): New.
8217 (restore_scattering_pbb): New.
8218 (restore_scattering): New.
8219 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
8220 Initialize PBB_TRANSFORMED and PBB_ORIGINAL.
8221
8222 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
8223
8224 * graphite-poly.c (print_pbb): Add parentheses in the pretty print.
8225 (print_scop): Same.
8226
8227 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
8228
8229 * Makefile.in (graphite.o): Depends on PREDICT_H.
8230 * graphite.c: Include predict.h.
8231 (graphite_finalize): Call tree_estimate_probability.
8232 * predict.c (predict_loops): Do not call scev_initialize and
8233 scev_finalize.
8234 (tree_estimate_probability_bb): New.
8235 (tree_estimate_probability): Do not initialize loops: move that
8236 code to the driver. Call tree_estimate_probability_bb.
8237 (tree_estimate_probability_driver): New.
8238 (pass_profile): Use tree_estimate_probability_driver.
8239 * predict.h (tree_estimate_probability): Declared.
8240
8241 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
8242
8243 * graphite-clast-to-gimple.c (gloog): Add time to TV_GRAPHITE_CODE_GEN.
8244 * graphite-dependences.c (graphite_legal_transform): Add time to
8245 TV_GRAPHITE_DATA_DEPS.
8246 (dependency_between_pbbs_p): Same.
8247 * timevar.def (TV_GRAPHITE_DATA_DEPS, TV_GRAPHITE_CODE_GEN): New.
8248
8249 2009-08-12 Andrey Belevantsev <abel@ispras.ru>
8250
8251 PR rtl-optimization/41033
8252 * alias.c (nonoverlapping_component_refs_p): Punt when strict
8253 aliasing is disabled.
8254
8255 2009-08-11 Adam Nemet <anemet@caviumnetworks.com>
8256
8257 * config/mips/predicates.md (qi_mask_operand, hi_mask_operand,
8258 si_mask_operand, and_load_operand, low_bitmask_operand,
8259 and_reg_operand, and_operand): New predicates.
8260 * config/mips/constraints.md (Yb, Yh, Yw, Yz): New constraints.
8261 * config/mips/mips.c (and_operands_ok): New function.
8262 * config/mips/mips-protos.h (and_operands_ok): Declare it.
8263 * config/mips/mips.md (move_type): Add ext_ins and logical.
8264 (type): Handle them.
8265 (and<mode>3): Use and_reg_operand as the second operand's predicate.
8266 (*and<mode>3): Add alternatives for lbu, lhu, lwu, <d>ext and
8267 shift_shift. Remove commutative constraint modifier.
8268 (*and<mode>3_mips16): Add alternatives for lbu, lhu, lwu and
8269 shift_shift.
8270 (*clear_upper32_dext): Remove define_insn_and_split.
8271 (*clear_upper32): Turn this define_insn_and_split ...
8272 (splitter for ANDing register with 0xffff_ffff): .. into this.
8273
8274 2009-08-11 Adam Nemet <anemet@caviumnetworks.com>
8275
8276 * combine.c (try_widen_shift_mode): Factor out code to check if an
8277 integer constant is a low-order bitmask from here ...
8278 * rtlanal.c (low_bitmask_len): ... to here.
8279 * rtl.h (low_bitmask_len): Declare.
8280
8281 2009-08-11 Uros Bizjak <ubizjak@gmail.com>
8282
8283 PR target/8603
8284 * config/alpha/alpha.md (addsi3): Remove expander.
8285 (addsi3): Rename from *addsi3_internal insn pattern.
8286 (subsi3): Remove expander.
8287 (subsi3): Rename from *subsi3_internal insn pattern.
8288
8289 2009-08-11 Douglas B Rupp <rupp@gnat.com>
8290
8291 * config/alpha/alpha.c (alpha_init_builtins): Nullify FWRITE and
8292 FWRITE_UNLOCKED.
8293
8294 2009-08-11 Vasiliy Fofanov <fofanov@adacore.com>
8295 Eric Botcazou <botcazou@adacore.com>
8296 Douglas B Rupp <rupp@gnat.com>
8297
8298 * config/alpha/alpha.c (alpha_return_in_memory): On VMS, ensure
8299 that records that fit in 64 bits are returned by immediate value,
8300 as required by OpenVMS Calling Standard.
8301 (function_value): Adjust for above modification.
8302 (alpha_va_start) <TARGET_ABI_OPEN_VMS>: Use
8303 virtual_incoming_args_rtx as base object, not next_arg.
8304 * config/alpha/vms.h: (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
8305
8306 2009-08-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8307
8308 * reload.c (find_reloads_subreg_address): Check the original
8309 req_equiv_mem address to detect the case where an address is
8310 not valid in the outer mode.
8311
8312 2009-08-11 Richard Guenther <rguenther@suse.de>
8313
8314 PR bootstrap/40788
8315 * builtins.c (gimplify_va_arg_expr): Do not call SET_EXPR_LOCATION.
8316
8317 2009-08-10 Douglas B Rupp <rupp@gnat.com>
8318
8319 * config/alpha/vms.h (OPTIMIZATION_OPTIONS): Remove
8320 (OVERRIDE_OPTIONS): Incorporate removed OPTIMIZATION_OPTIONS.
8321
8322 2009-08-10 Olivier Hainque <hainqueu@adacore.com>
8323 Douglas B Rupp <rupp@gnat.com>
8324
8325 * config/alpha/alpha.c (alpha_sa_size): Force procedure type to
8326 PT_STACK when frame_pointer_needed on OpenVMS.
8327 (alpha_pv_save_size, alpha_using_fp): Remove.
8328 (alpha_vms_can_eliminate): New function. Support for CAN_ELIMINATE
8329 with proper processing for PT_NULL.
8330 (alpha_vms_initial_elimination_offset): New function. Support for
8331 INITIAL_ELIMINATION_OFFSET with proper processing for PT_NULL.
8332 (alpha_sa_size): Force procedure type to PT_STACK when
8333 frame_pointer_needed on OpenVMS.
8334 * config/alpha/alpha-protos.h (alpha_pv_save_size): Remove prototype.
8335 (alpha_using_fp): Likewise.
8336 (alpha_vms_can_eliminate): Add prototype.
8337 (alpha_vms_initial_elimination_offset): Likewise.
8338 * config/alpha/vms.h (CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET):
8339 Call alpha_vms_can_eliminate and alpha_vms_initial_elimination_offset.
8340
8341 2009-08-10 Eric Botcazou <botcazou@adacore.com>
8342 Douglas B Rupp <rupp@gnat.com>
8343
8344 * config/alpha/alpha.c (common_object_handler): New function.
8345 (vms_attribute_table): Declare a single attribute "common_object".
8346 (vms_output_aligned_decl_common): New global function.
8347 (SECTION_VMS_OVERLAY): Delete.
8348 (SECTION_VMS_GLOBAL): Likewise.
8349 (SECTION_VMS_INITIALIZE): Likewise.
8350 (vms_asm_named_section): Remove support for above flags.
8351 (vms_section_type_flags): Delete.
8352 (TARGET_SECTION_TYPE_FLAGS): Likewise.
8353 * config/alpha/alpha-protos.h (vms_output_aligned_decl_common): New.
8354 * config/alpha/vms.h (ASM_OUTPUT_ALIGNED_COMMON): Delete.
8355 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New macro.
8356
8357 2009-08-10 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
8358
8359 PR target/41015
8360 * longlong.h [__sh__] (udiv_qrnnd): Add T register to clobber list.
8361 (sub_ddmmss): Likewise.
8362
8363 2009-08-10 Andreas Tobler <a.tobler@schweiz.org>
8364
8365 PR bootstrap/41018
8366 * config/rs6000/freebsd.h: Define SVR4_ASM_SPEC. Adjust copyright
8367 year.
8368
8369 2009-08-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8370
8371 PR target/37053
8372 * reload1.c (reload_as_needed): Use cancel_changes to completely
8373 undo a failed replacement attempt.
8374
8375 2009-08-10 Richard Guenther <rguenther@suse.de>
8376
8377 PR middle-end/41006
8378 * tree-ssa.c (useless_type_conversion_p_1): Fold into ...
8379 (useless_type_conversion_p): ... here. Require pointer targets
8380 to be compatible.
8381
8382 2009-08-10 Dodji Seketeli <dodji@redhat.com>
8383
8384 PR c++/40866
8385 * tree-inline.c (copy_statement_list): The resulting copy shouldn't
8386 loose the original type of the statement list.
8387
8388 2009-08-09 Douglas B Rupp <rupp@gnat.com>
8389
8390 * config/alpha/alpha.c: Include libfuncs.h
8391 (avms_asm_output_extern): New function.
8392 (alpha_init_libfuncs): Init some decc libfuncs.
8393 * config/alpha/alpha-protos.h (avms_asm_output_external): Declare.
8394 * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Define.
8395 (DO_CRTL_NAMES): Define.
8396 (LIB_SPEC): Remove.
8397 * config/alpha/vms64.h: (POINTERS_EXTEND_UNSIGNED): Remove undef.
8398 (LONG_TYPE_SIZE): Define.
8399 (TARGET_OS_CPP_BUILTINS): Define with __LONG_POINTERS=1
8400 (SUBTARGET_SWITCHES): Define malloc64 switch.
8401 (TARGET_DEFAULT): Default MASK_MALLOC64 set.
8402 (MASK_RETURN_ADDR): Define.
8403 doc/invoke.texi (mmalloc64): Document switch.
8404
8405 2009-08-09 Olivier Hainque <hainque@adacore.com>
8406 Douglas B Rupp <rupp@gnat.com>
8407
8408 * config/alpha/alpha.c (struct machine_function): New flag for VMS,
8409 uses_condition_handler.
8410 (alpha_expand_builtin_establish_vms_condition_handler): New expander.
8411 (alpha_expand_builtin_revert_vms_condition_handler): New expander.
8412 (enum alpha_builtin): New ALPHA_BUILTIN_REVERT_VMS_CONDITION_HANDLER
8413 and ALPHA_BUILTIN_ESTABLISH_VMS_CONDITION_HANDLER values.
8414 (code_for_builtin): New insn codes for the new alpha_builtins.
8415 (alpha_init_builtins): Register the new functions as BUILT_IN_MD.
8416 (alpha_sa_size): Account for uses_condition_handler.
8417 (alpha_expand_prologue): Likewise.
8418 (alpha_start_function): Likewise.
8419 (alpha_expand_epilogue): Likewise.
8420 * config/alpha/alpha-protos.h: Prototype the new alpha.c builtin
8421 establish/revert expanders.
8422 * config/alpha/alpha.h (DWARF_FRAME_REGNUM): Define.
8423 * config/alpha/alpha.md (builtin_establish_vms_condition_handler):
8424 New expander, resorting to the alpha.c associated function.
8425 (builtin_revert_vms_condition_handler): Likewise.
8426 * config/alpha/vms-gcc_shell_handler.c: New file. Implements
8427 __gcc_shell_handler, the static VMS condition handler used as
8428 an indirection wrapper to the current dynamically established
8429 handler.
8430 * config/alpha/vms-unwind.h: Complete rewrite.
8431 * config/alpha/t-vms (LIB2FUNCS_EXTRA): Add vms-gcc_shell_handler.c
8432 * config/alpha/vms.h (MD_UNWIND_SUPPORT):
8433
8434 2009-08-09 Eric Botcazou <botcazou@adacore.com>
8435 Douglas B Rupp <rupp@gnat.com>
8436
8437 * config/alpha/alpha.c (alpha_links): Add 'target' field.
8438 (alpha_need_linkage): Handle aliases. Return function symbol.
8439 (alpha_use_linkage): Rename 'linkage' argument to 'func'.
8440 Use ultimate alias target for the linkage name.
8441 * config/alpha/alpha.md (movmemdi): Use the symbol returned
8442 by alpha_need_linkage for the function symbol.
8443 (setmemdi): Likewise.
8444
8445 2009-08-09 Douglas B Rupp <rupp@gnat.com>
8446
8447 * config/alpha/alpha.c (TARGET_ASM_UNALIGNED_*_OP): Define if on VMS.
8448 * config/alpha/vms.h (OBJECT_FORMAT_ELF): Define.
8449 (ASM_WEAKEN_LABEL): Define.
8450 (CRT_CALL_STATIC_FUNCTION): Define.
8451 (STARTFILE_SPEC): Add crtbegin.o crtbeginS.o.
8452 (ENDFILE_SPEC): Define.
8453 (INIT_SECTION_ASM_OP): Define.
8454 * config/alpha/vms-dwarf2eh.asm (__EH_FRAME_BEGIN__): Remove.
8455 * config/alpha/t-vms (EXTRA_PARTS): Add crtbegin.o crtbeginS.o
8456 crtend.o crtendS.o.
8457 (MULTILIB_OSDIRNAMES): Define.
8458 (shlib_version): Define.
8459 (SHLIB_EXT): Define.
8460 (SHLIB_OBJS): Define.
8461 (SHLIB_NAME): Define.
8462 (SHLIB_MULTILIB): Define.
8463 (SHLIB_INSTALL): Define.
8464 (SHLIB_SYMVEC): Define.
8465 (SHLIB_SYMVECX2): Define.
8466 (SHLIB_LINK): Define.
8467
8468 2009-08-09 Douglas B Rupp <rupp@gnat.com>
8469
8470 * config/alpha/alpha.c (alpha_initialize_trampoline):
8471 Initialize VMS trampoline IAW ABI for bounded procedure calls.
8472 (alpha_start_function): Emit transfer address on nested functions
8473 for VMS trampoline call.
8474 * config/alpha/t-vms (LIB2FUNCS_EXTRA): Remove vms_tramp.asm
8475 since no longer used.
8476 * config/alpha/vms-tramp.asm: Remove.
8477 * config/alpha/vms.h (TRAMPOLINE_TEMPLATE): Leave undefined
8478 since now only data initialized at runtime.
8479
8480 2009-08-09 Douglas B Rupp <rupp@gnat.com>
8481
8482 * config/alpha/vms.h (HANDLE_SYSV_PRAGMA): Define.
8483 (LINK_GCC_C_SEQUENCE_SPEC): Define.
8484 (MD_EXEC_PREFIX): Remove, no longer used.
8485 (MD_STARTFILE_PREFIX): Likewise.
8486 (INCLUDE_DEFAULTS): Likewise.
8487 * config/alpha/t-vms:
8488 (vms-dwarf2.o, vms-dwarf2eh.o): Use GCC_FOR_TARGET to compile.
8489
8490 2009-08-09 Richard Guenther <rguenther@suse.de>
8491
8492 PR tree-optimization/41016
8493 * tree-ssa-ifcombine.c (get_name_for_bit_test): Fix tuplification bug.
8494 (operand_precision): Remove.
8495 (integral_operand_p): Likewise.
8496 (recognize_single_bit_test): Adjust.
8497
8498 2009-08-09 Richard Sandiford <rdsandiford@googlemail.com>
8499
8500 * c-common.c (c_fully_fold_internal): Issue a warning if a binary
8501 operation overflows. Likewise non-cast unary arithmetic.
8502 If one arm of a conditional expression is always taken,
8503 inhibit evaluation warnings for the other arm. Likewise inhibit
8504 evaluation warnings for the second && or || operand if the first
8505 operand is enough to determine the result.
8506 * c-typeck.c (build_conditional_expr): Apply the same inhibition
8507 rules here.
8508 (build_binary_op): Prevent duplicate evaluation warnings.
8509
8510 2009-08-09 Richard Sandiford <rdsandiford@googlemail.com>
8511
8512 * tree-out-of-ssa.c (insert_value_copy_on_edge): If the source
8513 and destination have different modes, Use promote_mode to
8514 determine the signedness of the conversion. Assert that the
8515 promoted source mode matches the destination mode. Don't pass
8516 the destination and destination mode to expand_expr if the source
8517 mode is different. Simplify conversion logic.
8518
8519 2009-08-09 Ira Rosen <irar@il.ibm.com>
8520
8521 PR tree-optimization/41008
8522 * tree-vect-loop.c (vect_is_simple_reduction): Get operands
8523 from condition only in case it's a comparison. Adjust checks.
8524
8525 2009-08-09 Bernd Schmidt <bernd.schmidt@analog.com>
8526
8527 * tree-dfa.c (renumber_gimple_stmt_uids_in_blocks): New function.
8528 * tree-flow.h (renumber_gimple_stmt_uids_in_blocks): Declare it.
8529 * tree-ssa-loop-ivopts.c (comp_cost): Make COST an integer.
8530 (enum iv_position): Add IP_AFTER_USE and IP_BEFORE_USE.
8531 (dump_cand): Handle them.
8532 (struct iv_cand): New members COST_STEP and AINC_USE.
8533 (stmt_after_increment): Likewise.
8534 (stmt_after_inc_pos): Renamed from stmt_after_ip_original_pos. All
8535 callers changed. Use gimple_uid comparison instead of scanning.
8536 (add_candidate_1): When looking for identical candidates, take
8537 AINC_USE into account. Set it for new candidates.
8538 (force_expr_to_var_cost): Cast target_spill_cost to int.
8539 (get_address_cost): New arguments STMT_AFTER_INC and MAY_AUTOINC.
8540 All callers changed. Check for availability of autoinc addressing
8541 modes, both in general for a given mode, and in the specific use case.
8542 (get_computation_cost_at): New argument CAN_AUTOINC. All callers
8543 changed.
8544 (get_computation_cost): Likewise.
8545 (autoinc_possible_for_pair, set_autoinc_for_original_candidates,
8546 add_autoinc_candidates): New static functions.
8547 (add_candidate): Call add_autoinc_candidates for candidates based on
8548 a USE_ADDRESS use.
8549 (find_iv_candidates): Call set_autoinc_for_original_candidates.
8550 (determine_use_iv_cost_address): If we have an autoinc candidate at
8551 the matching use, verify autoinc is possible and subtract the cost
8552 of the candidate's step from the cost.
8553 (determine_iv_cost): Record the cost of the increment in the COST_STEP
8554 member of the candidate.
8555 (tree_ssa_iv_optimize_loop): Swap the calls to determine_iv_costs and
8556 determine_use_iv_costs. Call renumber_gimple_stmt_uids_in_blocks.
8557
8558 2009-08-09 Douglas B Rupp <rupp@gnat.com>
8559
8560 * config.build (ia64-hp-*vms*): New target.
8561 (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
8562 with ia64-hp-*vms*.
8563 * config.gcc (ia64-hp-*vms*): New target.
8564 (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
8565 with ia64-hp-*vms*.
8566 * config.host (ia64-hp-*vms*): New target.
8567 (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
8568 with ia64-hp-*vms*.
8569
8570 2009-08-08 Richard Guenther <rguenther@suse.de>
8571
8572 PR tree-optimization/40991
8573 * tree-ssa-pre.c (eliminate): Delay purging EH edges.
8574
8575 2009-08-08 Richard Sandiford <rdsandiford@googlemail.com>
8576
8577 * combine.c (gen_lowpart_or_truncate): Exclude CONST_INTs from
8578 mode check. Do truncations in an integer mode.
8579 (force_to_mode): Handle subregs for all mode types. Only do
8580 arithmetic simplifications on integer modes.
8581
8582 2009-08-07 Richard Guenther <rguenther@suse.de>
8583
8584 PR tree-optimization/40999
8585 * tree-ssa-ccp.c (get_symbol_constant_value): Handle CONST_DECLs.
8586 (maybe_fold_reference): Lookup constant initializers.
8587 (fold_gimple_assign): Likewise.
8588
8589 2009-08-07 Richard Guenther <rguenther@suse.de>
8590
8591 * tree-ssa.c (useless_type_conversion_p_1): Only for types
8592 that require structural equality defer to the langhook.
8593
8594 2009-08-07 Martin Jambor <mjambor@suse.cz>
8595
8596 * ipa-prop.h (enum jump_func_type): New value IPA_JF_ANCESTOR, changed
8597 comments.
8598 (struct ipa_pass_through_data): New type.
8599 (struct ipa_ancestor_jf_data): New type.
8600 (union jump_func_value): Removed field formal_id, added fields
8601 pass_through and ancestor.
8602 (struct ipa_param_call_note): Changed type of formal_id to int from
8603 unsigned.
8604 * ipa-prop.c (ipa_print_node_jump_functions): Print pass through with
8605 operations jump functions and ancestor jump functions.
8606 (compute_complex_pass_through): New function.
8607 (compute_scalar_jump_functions): Call compute_complex_pass_through,
8608 reflect changes in the jump function strucutre.
8609 (update_jump_functions_after_inlining): Ignore complex pass-through
8610 and ancestor jump functions.
8611 * ipa-cp.c (ipcp_lattice_from_jfunc): Added support for ancestor and
8612 polynomial pass-through with operation jump functions.
8613
8614 2009-08-07 Jakub Jelinek <jakub@redhat.com>
8615
8616 * dwarf2out.c (output_fde): When doing hot/cold partitioning, use
8617 fde->dw_fde_begin as begin label instead of hot/cold label.
8618 Use LLSDAC label instead of LLSDA for second section lsda.
8619 (dwarf2out_do_cfi_startproc): Add SECOND argument. Use LLSDAC
8620 label instead of LLSDA if it is true.
8621 (dwarf2out_begin_prologue, dwarf2out_switch_text_section): Adjust
8622 callers.
8623 * except.c (add_call_site, dw2_size_of_call_site_table): Add
8624 SECTION argument. Use it as index into crtl->eh.call_site_record
8625 array.
8626 (dw2_output_call_site_table): Likewise. Add CS_FORMAT argument,
8627 use it to determine how to print table entries instead of using
8628 #ifdef HAVE_AS_LEB128. For SECTION > 0 use hot resp. cold
8629 label instead of normal begin label as base.
8630 (sjlj_assign_call_site_values): Adjust add_call_site caller.
8631 (convert_to_eh_region_ranges): When doing hot/cold partitioning,
8632 ensure no EH range spans between sections and that landing pads
8633 are always in the corresponding section.
8634 (sjlj_size_of_call_site_table, sjlj_output_call_site_table): Adjust
8635 for crtl->eh.call_site_record being an array rather than scalar.
8636 (output_one_function_exception_table): New function, copied
8637 from output_function_exception_table. Adjust
8638 dw2_size_of_call_site_table, dw2_output_call_site_table
8639 callers. For SECOND section use *C suffixed labels.
8640 (output_function_exception_table): Call
8641 output_one_function_exception_table and, when doing hot/cold
8642 partitioning, also another time for the second section.
8643 * opts.c: Include except.h.
8644 (decode_options): Allow -freorder-blocks-and-partition with
8645 exceptions, unless SJLJ or TARGET_UNWIND_INFO.
8646 * Makefile.in (opts.o): Depend on $(EXCEPT_H).
8647 * function.h (struct rtl_eh): Change call_site_record from
8648 scalar into array of 2 elements.
8649
8650 2009-08-07 Martin Jambor <mjambor@suse.cz>
8651
8652 * ipa-prop.c (count_formal_params_1): New function.
8653 (ipa_get_vector_of_formal_parms): New function.
8654 (get_vector_of_formal_parm_types): New function.
8655 (ipa_modify_formal_parameters): New function.
8656 (ipa_modify_call_arguments): New function.
8657 (index_in_adjustments_multiple_times_p): New function.
8658 (ipa_combine_adjustments): New function.
8659 (ipa_dump_param_adjustments): New function.
8660 * ipa-prop.h (struct ipa_parm_adjustment): New type.
8661 (ipa_get_vector_of_formal_parms): Declare.
8662 (ipa_modify_formal_parameters): Declare.
8663 (ipa_modify_call_arguments): Declare.
8664 (ipa_combine_adjustments): Declare.
8665 (ipa_dump_param_adjustments): Declare.
8666 (build_ref_for_offset): Declare.
8667 * Makefile.in (tree-sra.o): Add ipa-prop.h to dependencies.
8668 * tree-sra.c: Include ipa-prop.c.
8669 (build_ref_for_offset): Make public.
8670
8671 2009-08-06 Neil Vachharajani <nvachhar@gmail.com>
8672
8673 * value-prof.c (init_pid_map): Replace xmalloc with XCNEWVEC.
8674
8675 2009-08-06 Thomas Schwinge <tschwinge@gnu.org>
8676
8677 * gcc/doc/extend.texi (__builtin_extract_return_address)
8678 (__builtin_frob_return_address): Document.
8679
8680 2009-08-06 Paul Brook <paul@codesourcery.com>
8681
8682 * config/arm/lib1funcs.asm (ARM_DIV_BODY): Add Thumb-2 implementation.
8683 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Only use Thumb-1
8684 implementation on ARMv6-M.
8685
8686 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
8687
8688 * doc/extend.texi (pcs): Document new attribute for ARM.
8689
8690 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
8691
8692 * arm.c (pcs_attribute_args): Comment out unsupported attribute
8693 variants.
8694
8695 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
8696
8697 * arm.c (arm_handle_pcs_attribute): Pass the entire name object to
8698 warning ().
8699
8700 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
8701
8702 * arm.c (arm_handle_pcs_attribute): Use %qE in warning.
8703
8704 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
8705
8706 Merge ARM/hard_vfp_branch to trunk.
8707
8708 2009-08-04 Richard Earnshaw <rearnsha@arm.com>
8709
8710 * arm.c (libcall_eq): New function.
8711 (libcall_hash): New function.
8712 (add_libcall): New function.
8713 (arm_libcall_uses_aapcs_base): New function.
8714 (arm_libcall_value): Use arm_libcall_uses_aapcs_base to check for
8715 libcalls using the base PCS.
8716 (arm_init_cumulative_args): Likewise.
8717
8718 2009-07-20 Joseph Myers <joseph@codesourcery.com>
8719
8720 * config/arm/arm.c (arm_libcall_value, arm_init_cumulative_args):
8721 Use base ABI for conversion libfuncs between HFmode and SFmode.
8722
8723 2009-05-12 Joseph Myers <joseph@codesourcery.com>
8724
8725 * config/arm/arm.c (aapcs_vfp_sub_candidate): Use V2SImode and
8726 V4SImode as representatives of all 64-bit and 128-bit vector
8727 types. Allow vector types without vector modes.
8728 (aapcs_vfp_is_call_or_return_candidate): Handle vector types
8729 without vector modes like BLKmode.
8730 (aapcs_vfp_allocate): Handle TImode for non-TARGET_NEON like
8731 BLKmode. Avoid unsupported vector modes or TImode moves for
8732 non-TARGET_NEON.
8733 (aapcs_vfp_allocate_return_reg): Likewise.
8734 (arm_vector_mode_supported_p): Only support V2SImode, V4HImode and
8735 V8QImode if TARGET_NEON || TARGET_IWMMXT.
8736
8737 2009-05-12 Joseph Myers <joseph@codesourcery.com>
8738
8739 * config/arm/arm.c (arm_handle_pcs_attribute): New.
8740 (arm_get_pcs_model): Pass attribute arguments to
8741 arm_pcs_from_attribute.
8742 (arm_init_cumulative_args): Use base AAPCS for conversions from
8743 floating-point types to DImode.
8744 (arm_attribute_table): Add pcs attribute.
8745 (arm_handle_pcs_attribute): New.
8746 * config/arm/bpabi.h (DECLARE_LIBRARY_RENAMES): When renaming
8747 conversions from floating-point types to DImode, also declare them
8748 to use base AAPCS and declare functions they call to use base
8749 AAPCS and their RTABI names.
8750
8751 2009-05-12 Joseph Myers <joseph@codesourcery.com>
8752
8753 * doc/invoke.texi (-mfloat-abi=@var{name}): Remove statement about
8754 -mfloat-abi=hard not being supported for VFP.
8755
8756 2009-05-11 Kazu Hirata <kazu@codesourcery.com>
8757
8758 * config/sparc/sparc.c (sparc_emit_float_lib_cmp): Pass a libcall
8759 SYMBOL_REF to hard_libcall_value.
8760
8761 2009-03-05 Joseph Myers <joseph@codesourcery.com>
8762 Richard Earnshaw <rearnsha@arm.com>
8763
8764 * config/arm/arm.c (aapcs_layout_arg): Once a co-processor argument
8765 has been put on the stack, all remaining co-processory arguments for
8766 that co-processor also go on the stack.
8767
8768 2009-03-05 Joseph Myers <joseph@codesourcery.com>
8769
8770 * config/arm/arm.c (arm_return_in_memory): Handle returning
8771 vectors of suitable size in registers also for AAPCS case.
8772
8773 2009-01-13 Richard Earnshaw <rearnsha@arm.com>
8774
8775 * doc/tm.texi (TARGET_LIBCALL_VALUE): Add missing end statement.
8776
8777 2008-12-09 Richard Earnshaw <rearnsha@arm.com>
8778
8779 ARM Hard-VFP calling convention
8780 * target-def.h (TARGET_LIBCALL_VALUE): New hook.
8781 * target.h (gcc_target): Add libcall_value to table of call hooks.
8782 * targhooks.h (default_libcall_value): Default implementation.
8783 * targhooks.c (default_libcall_value): Likewise.
8784 * doc/tm.texi (TARGET_LIBCALL_VALUE): Document it.
8785 * optabs.c (expand_unop): Use it.
8786 * expr.h (hard_libcall_value): Pass the function RTX through.
8787 * calls.c (emit_library_call_value_1): Update call to
8788 hard_libcall_value.
8789 * explow.c (hard_libcall_value): Use new target hook.
8790 * testsuite/lib/target-supports.exp
8791 (check_effective_target_arm_hard_vfp_ok): New hook.
8792 (check_effective_target_arm_neon_ok): Improve test for neon
8793 availability.
8794 * testsuite/gcc.target/arm/eabi1.c: Only run test in base variant.
8795 * config/arm/arm.c: Include cgraph.h
8796 (TARGET_FUNCTION_VALUE): Override default hook.
8797 (arm_pcs_default): New variable.
8798 (arm_override_options): Don't fault hard calling convention with VFP.
8799 Add support for AAPCS variants.
8800 (arm_function_value): Make static. Handle AAPCS variants.
8801 (arm_libcall_value): New function.
8802 (arm_apply_result_size): Handle VFP registers in results.
8803 (arm_return_in_memory): Rework all AAPCS variants; handle hard-vfp
8804 conventions.
8805 (pcs_attribute_args): New variable.
8806 (arm_pcs_from_attribute): New function.
8807 (arm_get_pcs_model): New function.
8808 (aapcs_vfp_cum_init): New function.
8809 (aapcs_vfp_sub_candidate): New function.
8810 (aapcs_vfp_is_return_candidate): New function.
8811 (aapcs_vfp_is_call_candidate): New function.
8812 (aapcs_vfp_allocate): New function.
8813 (aapcs_vfp_allocate_return_reg): New function.
8814 (aapcs_vfp_advance): New function.
8815 (aapcs_cp_arg_layout): New variable.
8816 (aapcs_select_call_coproc): New function.
8817 (aapcs_select_return_coproc): New function.
8818 (aapcs_allocate_return_reg): New function.
8819 (aapcs_libcall_value): New function.
8820 (aapcs_layout_arg): New function.
8821 (arm_init_cumulative_args): Initialize AAPCS args data.
8822 (arm_function_arg): Handle AAPCS variants using new interface.
8823 (arm_arg_parital_bytes): Likewise.
8824 (arm_function_arg_advance): New function.
8825 (arm_function_ok_for_sibcall): Ensure that sibling calls agree on
8826 calling conventions.
8827 (arm_setup_incoming_varargs): Handle new AAPCS args data.
8828 * arm.h (NUM_VFP_ARG_REGS): Define.
8829 (LIBCALL_VALUE): Update.
8830 (FUNCTION_VALUE): Delete.
8831 (FUNCTION_VALUE_REGNO_P): Add VFP regs.
8832 (arm_pcs): New enum.
8833 (CUMULATIVE_ARGS): New data to support AAPCS argument marshalling.
8834 (FUNCTION_ARG_ADVANCE): Call arm_function_arg_advance.
8835 (FUNCTION_ARG_REGNO_P): Add VFP regs.
8836 * arm-protos.h (arm_function_arg_advance): Add.
8837 (aapcs_libcall_value): Add.
8838 (arm_function_value): Delete.
8839
8840 2009-08-06 Uros Bizjak <ubizjak@gmail.com>
8841 H.J. Lu <hongjiu.lu@intel.com>
8842
8843 PR target/40957
8844 * config/i386/i386.c (standard_sse_mode_p): Remove.
8845 (standard_sse_constant_p): Return 2 for integer mode
8846 vector_all_ones_operand when SSE2 is enabled.
8847 (standard_sse_constant_opcode)<case 2>: Always return [v]pcmpeqd.
8848 (ix86_expand_vector_move): Do not check for negative values from
8849 standard_sse_constant_p.
8850
8851 2009-08-06 Richard Guenther <rguenther@suse.de>
8852
8853 * tree-ssa.c (useless_type_conversion_p_1): Make function and
8854 array type comparisons frontend independent.
8855 * Makefile.in (tree-ssa.o): Add $(TARGET_H) dependency.
8856 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Always fill
8857 out array reference lower bound and element size operands.
8858 (ao_ref_init_from_vn_reference): Properly compute the offset
8859 for ARRAY_RANGE_REF.
8860 (vn_reference_fold_indirect): Fill out array reference lower
8861 bound and element size operands.
8862 * tree-ssa-pre.c (phi_translate_1): Fail if we have to translate
8863 a non gimple valued reference operand which can happen for
8864 array reference lower bound or element size.
8865 (create_component_ref_by_pieces_1): Properly generate the
8866 element size operand for array references.
8867
8868 2009-08-06 Richard Guenther <rguenther@suse.de>
8869
8870 PR tree-optimization/40964
8871 * tree.c (iterative_hash_host_wide_int): Export.
8872 * tree.h (iterative_hash_host_wide_int): Declare.
8873 * tree-ssa-structalias.c (heapvar_map): New struct.
8874 (heapvar_map_eq): New function.
8875 (heapvar_map_hash): Likewise.
8876 (heapvar_lookup): Adjust.
8877 (heapvar_insert): Likewise.
8878 (make_constraint_from_heapvar): Allow multiple heap variables
8879 per decl at different offsets.
8880 (init_alias_heapvars): Adjust.
8881
8882 2009-08-04 David Daney <ddaney@caviumnetworks.com>
8883
8884 * config/mips/mips.h (TARGET_SYNC_AFTER_SC): New macro.
8885 * mips_output_sync_loop (mips_output_sync_loop): Only emit
8886 trailing sync if TARGET_SYNC_AFTER_SC.
8887
8888 2009-08-05 David Daney <ddaney@caviumnetworks.com>
8889
8890 * gcc/config/mips/sync.md (sync_compare_and_swap<mode>,
8891 compare_and_swap_12, sync_add<mode>, sync_<optab>_12,
8892 sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12,
8893 sync_old_nand_12, sync_new_nand_12, sync_sub<mode>,
8894 sync_old_add<mode>, sync_old_sub<mode>, sync_new_add<mode>,
8895 sync_new_sub<mode>, sync_<optab><mode>, sync_old_<optab><mode>,
8896 sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
8897 sync_new_nand<mode>, sync_lock_test_and_set<mode>,
8898 test_and_set_12): Rewrite calls to mips_output_sync_loop.
8899 * gcc/config/mips/mips-protos.h (mips_output_sync_loop): Make
8900 the prototype declaration match the definition.
8901 * gcc/config/mips/mips.c (mips_output_sync_loop): Emit sync
8902 instructions explicitly. Add barrier_before and operands
8903 parameters.
8904 * gcc/config/mips/mips.h (MIPS_COMPARE_AND_SWAP,
8905 MIPS_COMPARE_AND_SWAP_12, MIPS_SYNC_OP, MIPS_SYNC_OP_12,
8906 MIPS_SYNC_OLD_OP_12, MIPS_SYNC_NEW_OP_12, MIPS_SYNC_OLD_OP,
8907 MIPS_SYNC_NEW_OP, MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND,
8908 MIPS_SYNC_NEW_NAND, MIPS_SYNC_EXCHANGE,
8909 MIPS_SYNC_EXCHANGE_12): Remove sync instructions.
8910
8911 2009-08-05 Andrew Pinski <pinskia@gmail.com>
8912
8913 * tree-ssa-alias.c: Fix intervals to use [) syntax.
8914
8915 2009-08-05 Uros Bizjak <ubizjak@gmail.com>
8916 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
8917
8918 PR target/40906
8919 * config/i386/i386.c (ix86_split_long_move): Fix push of multi-part
8920 source operand.
8921
8922 2009-08-05 Jakub Jelinek <jakub@redhat.com>
8923
8924 PR rtl-optimization/40924
8925 * dse.c (canon_address): Before calling cselib_expand_value_rtx
8926 make sure canon_rtx (mem_address) isn't simpler than
8927 canon_rtx (expanded_mem_address).
8928
8929 2009-08-05 Li Feng <nemokingdom@gmail.com>
8930
8931 * graphite-sese-to-poly.c (build_pbb_drs): Remove build alias set
8932 for each poly_bb_p.
8933 (build_scop_drs): Build alias set for each SCoP.
8934
8935 2009-08-04 Sandra Loosemore <sandra@codesourcery.com>
8936
8937 * doc/invoke.texi (MIPS Options): Document new 1004K -march options.
8938 * config/mips/mips.c (mips_cpu_info_table): Add 1004K cores.
8939 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Add pattern for 1004K.
8940 (MIPS_ARCH_FLOAT_SPEC): Likewise.
8941 (BASE_DRIVER_SELF_SPECS): Likewise.
8942
8943 2009-08-04 Andrew Pinski <pinskia@gmail.com>
8944
8945 * tree-ssa-alias.c: Fix some comment typos.
8946
8947 2009-08-04 Kaz Kojima <kkojima@gcc.gnu.org>
8948
8949 * config/sh/linux-atomic.asm (ATOMIC_BOOL_COMPARE_AND_SWAP,
8950 ATOMIC_OP_AND_FETCH, ATOMIC_COMBOP_AND_FETCH): Define.
8951
8952 2009-08-03 Janis Johnson <janis187@us.ibm.com>
8953
8954 PR c/39902
8955 * simplify-rtx.c (simplify_binary_operation_1): Disable
8956 simplifications for decimal float operations.
8957
8958 2009-08-03 Jakub Jelinek <jakub@redhat.com>
8959
8960 PR middle-end/40943
8961 * tree-ssa.c (warn_uninitialized_var): Even on LHS warn for
8962 operand of INDIRECT_REF.
8963
8964 2009-08-03 Uros Bizjak <ubizjak@gmail.com>
8965
8966 * config/alpha/alpha.c (alpha_legitimate_constant_p): Reject CONST
8967 constants referencing TLS symbols.
8968
8969 2009-08-03 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
8970
8971 * config/sh/linux-atomic.asm (ATOMIC_COMPARE_AND_SWAP): Rename
8972 __sync_compare_and_swap_* to __sync_val_compare_and_swap_*.
8973
8974 2009-08-03 Richard Guenther <rguenther@suse.de>
8975
8976 * tree.c (make_vector_type): Build a main variant first,
8977 get the canonical one and then build the variant.
8978 * tree-ssa.c (useless_type_conversion_p_1): Handle
8979 fixed-point types.
8980 (useless_type_conversion_p): Conversions to pointers to
8981 incomplete record types are useless.
8982
8983 2009-08-03 Richard Guenther <rguenther@suse.de>
8984
8985 * tree-cfg.c (pass_warn_unused_result): Mark name that no dump
8986 file will be created.
8987 * omp-low.c (pass_diagnose_omp_blocks): Likewise.
8988 * toplev.c (compile_file): Adjust comment.
8989
8990 2009-08-03 Kaz Kojima <kkojima@gcc.gnu.org>
8991
8992 * config/sh/sh-protos.h (sh_promote_function_mode): Remove.
8993 * config/sh/sh.c (sh_promote_function_mode): Wrap long lines.
8994 (TARGET_PROMOTE_FUNCTION_MODE): Define.
8995 (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
8996 (sh_promote_function_mode): Fix typo.
8997
8998 2009-08-03 Andreas Krebbel <krebbel1@de.ibm.com>
8999
9000 * explow.c (promote_mode): Mark TYPE and PUNSIGNEDP as possibly unused.
9001
9002 2009-08-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9003
9004 * pa.c (pa_promote_function_mode): Remove ATTRIBUTE_UNUSED from
9005 declaration arguments.
9006
9007 2009-08-02 Uros Bizjak <ubizjak@gmail.com>
9008
9009 * config/i386/i386.c (ix86_expand_fp_compare): Use const0_rtx instead
9010 of GEN_INT (0x00) and const1_rtx instead of GEN_INT (0x01).
9011 (ix86_split_ashl): Ditto.
9012 (ix86_expand_vector_init_one_nonzero): Ditto.
9013 (ix86_expand_vector_set): Ditto.
9014 (ix86_expand_reduc_v4sf): Ditto.
9015
9016 2009-08-02 Paolo Bonzini <bonzini@gnu.org>
9017
9018 * explow.c (promote_function_mode): Remove assert.
9019 * config/sh/sh.c (sh_promote_function_mode): Declare.
9020
9021 2009-08-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9022
9023 * config/pa/pa.c (pa_promote_function_mode): Declare.
9024 Change to static. Fix promote_mode call.
9025
9026 * gthr-dce.h (CONST_CAST2): Define if not defined.
9027 (__gthread_setspecific): Use CONST_CAST2 to fix warning.
9028
9029 * config.gcc (hppa[12]*-*-hpux10*): Add stdint support.
9030
9031 2009-08-01 Paolo Bonzini <bonzini@gnu.org>
9032
9033 * expr.c (store_constructor): Use promote_decl_mode. Remove
9034 now write-only variable unsignedp.
9035 (expand_expr_real_1): Use promote_decl_mode.
9036 * expr.h (promote_function_mode, promote_decl_mode): New.
9037 (promote_mode): Remove last argument.
9038 * function.c (assign_temp): Drop last argument of promote_mode.
9039 (assign_parm_find_data_types): Use promote_function_mode.
9040 (assign_parm_setup_reg): Likewise.
9041 (expand_function_end): Use promote_function_mode.
9042 * calls.c (initialize_argument_information): Use promote_function_mode.
9043 (precompute_arguments): Use promote_mode instead of checking if
9044 only PROMOTE_FUNCTION_MODE is defined.
9045 (expand_call): When making sibcall decisions, use promote_function_mode.
9046 Below, remove an if for targetm.calls.promote_function_return and
9047 and use promote_function_mode.
9048 (emit_library_call_value_1): Use promote_function_mode, fix bug
9049 where promote_mode was passed FOR_CALL == 0 for a return value in an
9050 assertion.
9051 * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
9052 * explow.c (promote_function_mode, promote_decl_mode): New.
9053 (promote_mode): Keep only the FOR_CALL == 0 case.
9054 * combine.c (setup_incoming_promotion): Remove test of
9055 promote_function_args. Use promote_function_mode.
9056 * stmt.c (expand_value_return): Use promote_decl_mode.
9057 (expand_decl): Use promote_decl_mode.
9058
9059 * expr.c (store_constructor): Use promote_decl_mode. Remove
9060 now write-only variable unsignedp.
9061 (expand_expr_real_1): Use promote_decl_mode.
9062 * expr.h (promote_function_mode, promote_decl_mode): New.
9063 (promote_mode): Remove last argument.
9064 * function.c (assign_temp): Drop last argument of promote_mode.
9065 (assign_parm_find_data_types): Use promote_function_mode.
9066 (assign_parm_setup_reg): Likewise.
9067 (expand_function_end): Use promote_function_mode.
9068 * calls.c (initialize_argument_information): Use promote_function_mode.
9069 (precompute_arguments): Use promote_mode instead of checking if
9070 only PROMOTE_FUNCTION_MODE is defined.
9071 (expand_call): When making sibcall decisions, use promote_function_mode.
9072 Below, remove an if for targetm.calls.promote_function_return and
9073 and use promote_function_mode.
9074 (emit_library_call_value_1): Use promote_function_mode, fix bug
9075 where promote_mode was passed FOR_CALL == 0 for a return value in an
9076 assertion.
9077 * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
9078 * explow.c (promote_function_mode, promote_decl_mode): New.
9079 (promote_mode): Keep only the FOR_CALL == 0 case.
9080 * combine.c (setup_incoming_promotion): Remove test of
9081 promote_function_args. Use promote_function_mode.
9082 * stmt.c (expand_value_return): Use promote_decl_mode.
9083 (expand_decl): Use promote_decl_mode.
9084
9085 * explow.c (promote_function_mode): Just call the target hook.
9086 * targhooks.c (default_promote_function_mode,
9087 default_promote_function_mode_always_promote): New.
9088 * targhooks.h (default_promote_function_mode,
9089 default_promote_function_mode_always_promote): Declare.
9090 * target.h (promote_function_args, promote_function_return): Remove.
9091 (promote_function_mode): New.
9092 * target-def.h (TARGET_PROMOTE_FUNCTION_ARGS,
9093 TARGET_PROMOTE_FUNCTION_RETURN): Remove.
9094 (TARGET_PROMOTE_FUNCTION_MODE): New.
9095 (TARGET_CALLS): Adjust.
9096 * system.h (TARGET_PROMOTE_FUNCTION_ARGS,
9097 TARGET_PROMOTE_FUNCTION_RETURN, PROMOTE_FUNCTION_MODE): Poison.
9098
9099 * config/s390/s390.h (PROMOTE_FUNCTION_MODE): Move...
9100 * config/s390/s390.c (s390_promote_function_mode): ... here,
9101 with pointer handling.
9102 (TARGET_PROMOTE_FUNCTION_MODE): Define.
9103 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
9104
9105 * config/sparc/sparc.h (PROMOTE_FUNCTION_MODE): Move...
9106 * config/sparc/sparc.c (sparc_promote_function_mode): ... here,
9107 with pointer handling.
9108 (TARGET_PROMOTE_FUNCTION_MODE): Define.
9109 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
9110
9111 * config/sh/sh-protos.h (sh_promote_function_mode): New.
9112 * config/sh/sh.c (sh_promote_function_mode): New.
9113 (TARGET_PROMOTE_FUNCTION_MODE): Define.
9114 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
9115
9116 * config/cris/cris.h (PROMOTE_FUNCTION_MODE): Move...
9117 * config/cris/cris.c (cris_promote_function_mode): ... here.
9118 (TARGET_PROMOTE_FUNCTION_MODE): Define.
9119 (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
9120
9121 * config/mmix/mmix.h (PROMOTE_FUNCTION_MODE): Move...
9122 * config/mmix/mmix.c (mmix_promote_function_mode): ... here.
9123 (TARGET_PROMOTE_FUNCTION_MODE): Define.
9124 (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
9125
9126 * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Move...
9127 * config/arm/arm.c (arm_promote_function_mode): ... here, without
9128 complex type handling.
9129 (TARGET_PROMOTE_FUNCTION_MODE): Define.
9130 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
9131
9132 * config/pa/pa.c (pa_promote_function_mode): New.
9133 (TARGET_PROMOTE_FUNCTION_MODE): Define.
9134 (TARGET_PROMOTE_FUNCTION_RETURN): Remove.
9135
9136 * config/alpha/alpha.c (TARGET_PROMOTE_FUNCTION_ARGS,
9137 TARGET_PROMOTE_FUNCTION_RETURN): Remove.
9138 (TARGET_PROMOTE_FUNCTION_MODE): Define equivalently.
9139 * config/xtensa/xtensa.c: Likewise.
9140 * config/stormy16/stormy16.c: Likewise.
9141 * config/iq2000/iq2000.c: Likewise.
9142 * config/rs6000/rs6000.c: Likewise.
9143 * config/picochip/picochip.c: Likewise.
9144 * config/arc/arc.c: Likewise.
9145 * config/mcore/mcore.c: Likewise.
9146 * config/score/score.c: Likewise.
9147 * config/mips/mips.c: Likewise.
9148 * config/bfin/bfin.c: Likewise.
9149 * config/ia64/ia64.c: Likewise (disabled though).
9150
9151 * config/frv/frv.h: Remove pointless remark.
9152
9153 * doc/tm.texi (PROMOTE_FUNCTION_MODE,
9154 TARGET_PROMOTE_FUNCTION_ARGS,
9155 TARGET_PROMOTE_FUNCTION_RETURN): Consolidate into...
9156 (TARGET_PROMOTE_FUNCTION_MODE): ... this.
9157
9158 2009-08-01 Sebastian Pop <sebastian.pop@amd.com>
9159
9160 * doc/invoke.texi (-fgraphite-force-parallel): Renamed
9161 -floop-parallelize-all.
9162 * toplev.c (process_options): Rename flag_graphite_force_parallel to
9163 flag_loop_parallelize_all.
9164 * tree-ssa-loop.c (gate_graphite_transforms): Same.
9165 * graphite.c (graphite_transform_loops): Same.
9166 * common.opt: Same.
9167 * graphite-poly.c (apply_poly_transforms): Same.
9168
9169 2009-07-31 Richard Earnshaw <rearnsha@arm.com>
9170
9171 PR tree-optimization/40914
9172 * ipa-prop.c (ipa_get_ptr_load_param): New argument use_delta,
9173 if set, then check the delta field of the PMF record.
9174 (ipa_get_stmt_member_ptr_load_param): Propagate new param use_delta.
9175 (ipa_analyze_call_uses): Handle machines where the vbit for a PMF
9176 call is stored in the delta.
9177
9178 2009-07-31 Adam Nemet <anemet@caviumnetworks.com>
9179
9180 * config/mips/mips.md (*clear_upper32_dext): New pattern.
9181
9182 2009-07-31 Uros Bizjak <ubizjak@gmail.com>
9183
9184 * config/i386/bsd.h (ASM_BYTE): New define.
9185 * config/i386/darwin.h (ASM_BYTE): Rename from ASM_BYTE_OP.
9186 * config/i386/att.h (ASM_BYTE): New define. Use ASM_BYTE instead of
9187 .byte. Use fputs or putc instead of fprintf where appropriate.
9188 * config/i386/i386-interix.h: Use ASM_BYTE instead of .byte. Use
9189 fputs or putc instead of fprintf where appropriate.
9190 * config/i386/i386elf.h: Ditto.
9191 * config/i386/sysv4.h: Ditto.
9192
9193 * config/i386/i386.c (TARGET_ASM_BYTE_OP): New define.
9194 * config/i386/i386.md (x86_sahf_1): Use ASM_BYTE instead of .byte.
9195 (*tls_global_dynamic_64): Ditto.
9196
9197 2009-07-31 Christian Bruel <christian.bruel@st.com>
9198
9199 * gcc/config.gcc (sh*-*-elf): test with_libgloss.
9200
9201 2009-07-31 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9202
9203 * config/arm/arm.c (arm_arm_address_cost): Fix typo.
9204 Remove dead code for MINUS.
9205
9206 2009-07-31 Anthony Green <green@moxielogic.com>
9207
9208 * config/moxie/moxie.c (moxie_expand_prologue): Use $r5 instead of
9209 $r12 in prologue.
9210 (moxie_expand_epilogue): Ditto for epilogue.
9211 (moxie_setup_incoming_varargs): ABI change. Use 5 registers for
9212 incoming arguments.
9213 (moxie_function_arg): Ditto.
9214 (moxie_pass_by_reference): Ditto.
9215 (moxie_arg_partial_bytes): Ditto.
9216 * config/moxie/moxie.h (CALL_USED_REGISTERS): Ditto.
9217 (FUNCTION_ARG_ADVANCE) Ditto.
9218 (REG_PARM_STACK_SPACE) Ditto.
9219 (FUNCTION_ARG_REGNO_P) Dito.
9220
9221 * config.gcc: Add moxie linux config support.
9222 * gcc/config/moxie/uclinux.h: New file.
9223
9224 2009-07-31 DJ Delorie <dj@redhat.com>
9225
9226 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
9227 (UNSPECV_SP_SWITCH_E): New.
9228 (sp_switch_1): Change to an unspec.
9229 (sp_switch_2): Change to an unspec. Don't use post-inc when we
9230 replace $r15.
9231 * config/sh/sh.c (sh_expand_prologue): Use the constant pool to
9232 reference the new stack's address
9233
9234 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
9235
9236 * Makefile.in (OBJS-common): Added dependence on graphite-blocking.o,
9237 graphite-clast-to-gimple.o, graphite-dependences.o,
9238 graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
9239 graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o.
9240 (graphite-blocking.o,
9241 graphite-clast-to-gimple.o, graphite-dependences.o,
9242 graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
9243 graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o): New.
9244 * cfgloop.c (alloc_loop): Set loop->can_be_parallel to false.
9245 * cfgloop.h (struct loop): Add can_be_parallel field.
9246 * common.opt (fgraphite-identity): Moved up.
9247 (fgraphite-force-parallel): New flag.
9248 * graphite.c: Rewrite.
9249 * graphite.h: Rewrite.
9250 * passes.c (init_optimization_passes): Schedule a pass of DCE and LIM
9251 after Graphite.
9252 * toplev.c (graphite_out_file): New file descriptor.
9253 (graphite_in_file): New.
9254 (process_options): flag_graphite_force_parallel cannot be used without
9255 Graphite.
9256 * tree-ssa-loop.c: Include toplev.h.
9257 (gate_graphite_transforms): Enable flag_graphite for
9258 flag_graphite_force_parallel.
9259
9260 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
9261
9262 * ChangeLog.graphite: New.
9263 * graphite-blocking.c: New.
9264 * graphite-clast-to-gimple.c: New.
9265 * graphite-clast-to-gimple.h: New.
9266 * graphite-dependences.c: New.
9267 * graphite-dependences.h: New.
9268 * graphite-interchange.c: New.
9269 * graphite-poly.c: New.
9270 * graphite-poly.h: New.
9271 * graphite-ppl.c: New.
9272 * graphite-ppl.h: New.
9273 * graphite-scop-detection.c: New.
9274 * graphite-scop-detection.h: New.
9275 * graphite-sese-to-poly.c: New.
9276 * graphite-sese-to-poly.h: New.
9277 * sese.c: New.
9278 * sese.h: New.
9279
9280 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
9281
9282 * tree-chrec.c (evolution_function_right_is_integer_cst): New.
9283 * tree-chrec.h (evolution_function_right_is_integer_cst): Declared.
9284
9285 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
9286
9287 * tree-chrec.c (operator_is_linear): Handle BIT_NOT_EXPR.
9288 (scev_is_linear_expression): Return false if the evolution is not
9289 affine multivariate.
9290
9291 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
9292
9293 * tree-data-ref.c (graphite_find_data_references_in_stmt): New.
9294 * tree-data-ref.h (graphite_find_data_references_in_stmt): Declared.
9295
9296 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
9297
9298 * tree-data-ref.c (debug_data_references): New.
9299 (debug_data_reference): New.
9300 * tree-data-ref.h (debug_data_references): Declared.
9301 (debug_data_reference): Declared.
9302
9303 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
9304
9305 * tree-data-ref.c (stmt_simple_memref_p: Removed.
9306 * tree-data-ref.h (scop_p): Removed.
9307 (struct data_reference): Remove field scop.
9308 (DR_SCOP): Removed.
9309 (stmt_simple_memref_p): Removed.
9310
9311 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
9312
9313 * cfgloop.h (create_empty_loop_on_edge): Pass an extra argument.
9314 * cfgloopmanip.c (create_empty_loop_on_edge): Leave the loop_latch
9315 basic block empty.
9316
9317 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
9318
9319 * doc/invoke.texi (-fgraphite-force-parallel): Documented.
9320
9321 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
9322
9323 * doc/invoke.texi (-fgraphite-identity): Documented.
9324
9325 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
9326
9327 * tree-scalar-evolution.c: Fix comment.
9328 (instantiate_scev_1): Return unknow from scev instantiation if the
9329 result is not above instantiate_below.
9330
9331 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
9332
9333 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop): Not
9334 static anymore. Instantiate the symbols that may have been introduced
9335 by chrec_apply.
9336 * tree-scalar-evolution.h (compute_overall_effect_of_inner_loop):
9337 Declared.
9338
9339 2009-07-30 DJ Delorie <dj@redhat.com>
9340
9341 * config/mep/mep.c (mep_asm_init_sections): Add section flags and
9342 .vliw directive to VLIW sections.
9343
9344 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9345
9346 * Makefile.in (AUTOCONF, ACLOCAL, ACLOCAL_AMFLAGS, aclocal_deps):
9347 New variables.
9348 ($(srcdir)/configure, $(srcdir)/aclocal.m4): New rules.
9349 (AUTOHEADER): New variable.
9350 ($(srcdir)/cstamp-h.in): Use it.
9351
9352 2009-07-30 Michael Meissner <meissner@linux.vnet.ibm.com>
9353 Pat Haugen <pthaugen@us.ibm.com>
9354 Revital Eres <ERES@il.ibm.com>
9355
9356 * config/rs6000/vector.md (VEC_F): Add VSX support.
9357 (VEC_A): Ditto.
9358 (VEC_N): Ditto.
9359 (mov<mode>): Ditto.
9360 (vector_load_<mode>): Ditto.
9361 (vector_store_<mode>): Ditto.
9362 (vector GPR move split): Ditto.
9363 (vec_reload_and_plus_<mptrsize>): Ditto.
9364 (vec_reload_and_reg_<mptrsize>): Ditto.
9365 (add<mode>3): Ditto.
9366 (sub<mode>3): Ditto.
9367 (mul<mode>3): Ditto.
9368 (neg<mode>2): Ditto.
9369 (abs<mode>2): Ditto.
9370 (smin<mode>3): Ditto.
9371 (smax<mode>3): Ditto.
9372 (vector_eq<mode>): Ditto.
9373 (vector_gt<mode>): Ditto.
9374 (vector_ge<mode>): Ditto.
9375 (vector_gtu<mode>): Ditto.
9376 (vector_select_<mode>_uns): Ditto.
9377 (vector_eq_<mode>_p): Ditto.
9378 (vector_gt_<mode>_p): Ditto.
9379 (vector_ge_<mode>_p): Ditto.
9380 (vector_gtu_<mode>_p): Ditto.
9381 (cr6_test_for_zero): Ditto.
9382 (cr6_test_for_zero_reverse): Ditto.
9383 (cr6_test_for_lt): Ditto.
9384 (cr6_test_for_lt_reverse): Ditto.
9385 (xor<mode>3): Ditto.
9386 (ior<mode>3): Ditto.
9387 (and<mode>3): Ditto.
9388 (one_cmpl<mode>2): Ditto.
9389 (nor<mode>2): Ditto.
9390 (andc<mode>2): Ditto.
9391 (float<VEC_int<mode>2): Ditto.
9392 (unsigned_float<VEC_int><mode>2): Ditto.
9393 (fix_trunc<mode><VEC_int>2): Ditto.
9394 (fixuns_trunc<mode><VEC_int>2): Ditto.
9395 (vec_init<mode>):
9396 (vec_set<mode>): Ditto.
9397 (vec_extract<mode>): Ditto.
9398 (vec_interleave_highv4sf): Ditto.
9399 (vec_interleave_lowv4sf): Ditto.
9400 (vec_realign_load_<mode>): Ditto.
9401 (vec_shl_<mode>): Ditto.
9402 (vec_shr_<mode>): Ditto.
9403 (div<mode>3): New patterns for VSX.
9404 (vec_interleave_highv2df): Ditto.
9405 (vec_interleave_lowv2df): Ditto.
9406 (vec_pack_trunc_v2df): Ditto.
9407 (vec_pack_sfix_trunc_v2df): Ditto.
9408 (vec_pack_ufix_trunc_v2df): Ditto.
9409 (vec_unpacks_hi_v4sf): Ditto.
9410 (vec_unpacks_lo_v4sf): Ditto.
9411 (vec_unpacks_float_hi_v4si): Ditto.
9412 (vec_unpacks_float_lo_v4si): Ditto.
9413 (vec_unpacku_float_hi_v4si): Ditto.
9414 (vec_unpacku_float_lo_v4si): Ditto.
9415 (movmisalign<mode>): Ditto.
9416 (vector_ceil<mode>2): New patterns for vectorizing math library.
9417 (vector_floor<mode>2): Ditto.
9418 (vector_btrunc<mode>2): Ditto.
9419 (vector_copysign<mode>3): Ditto.
9420
9421 * config/rs6000/predicates.md (easy_vector_constant_msb): New
9422 predicate for setting the high bit in each word, used for copysign.
9423
9424 * config/rs6000/ppc-asm.h (f19): Whitespace.
9425 (f32-f63): Define if VSX.
9426 (v0-v31): Define if Altivec.
9427 (vs0-vs63): Define if VSX.
9428
9429 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power7.md and vsx.md.
9430
9431 * config/rs6000/power7.md: New file, provide tuning parameters for
9432 -mcpu=power7.
9433
9434 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): Add VSX support.
9435 (rs6000_cpu_cpp_builtins): Ditto.
9436 (altivec_overloaded_builtins): Ditto.
9437 (altivec_resolve_overloaded_builtin): Ditto.
9438
9439 * config/rs6000/rs6000.opt (-mno-vectorize-builtins): Add new
9440 debug switch to disable vectorizing simple math builtin
9441 functions.
9442
9443 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
9444 Vectorize simple math builtin functions.
9445 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
9446 hook to vectorize math builtins.
9447 (rs6000_override_options): Enable -mvsx on -mcpu=power7.
9448 (rs6000_builtin_conversion): Add VSX/power7 support.
9449 (rs6000_builtin_vec_perm): Ditto.
9450 (vsplits_constant): Add support for loading up a vector constant
9451 with just the high bit set in each part.
9452 (rs6000_expand_vector_init): Add VSX/power7 support.
9453 (rs6000_expand_vector_set): Ditto.
9454 (rs6000_expand_vector_extract): Ditto.
9455 (rs6000_emit_move): Ditto.
9456 (bdesc_3arg): Ditto.
9457 (bdesc_2arg): Ditto.
9458 (bdesc_1arg): Ditto.
9459 (rs6000_expand_ternop_builtin): Ditto.
9460 (altivec_expand_builtin): Ditto.
9461 (rs6000_expand_unop_builtin): Ditto.
9462 (rs6000_init_builtins): Ditto.
9463 (altivec_init_builtins): Ditto.
9464 (builtin_function_type): Ditto.
9465 (rs6000_common_init_builtins): Ditto.
9466 (rs6000_handle_altivec_attribute); Ditto.
9467 (rs6000_mangle_type): Ditto.
9468 (rs6000_vector_mode_supported_p): Ditto.
9469 (rs6000_mode_dependent_address): Altivec addresses with AND -16
9470 are mode dependent.
9471
9472 * config/rs6000/vsx.md: New file for VSX support.
9473
9474 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): New macro for
9475 identifing values with just the most significant bit set.
9476 (enum rs6000_builtins): Add builtins for VSX. Add simple math
9477 vectorized builtins.
9478
9479 * config/rs6000/altivec.md (UNSPEC_VRFIP): Delete.
9480 (UNSPEC_VRFIM): Delete.
9481 (splitter for loading up vector with most significant bit): New
9482 splitter for vectorizing copysign.
9483 (altivec_vrfiz): Rename from altivec_fturncv4sf2. Add support for
9484 vectorizing simple math functions.
9485 (altivec_vrfip): Add support for vectorizing simple math functions.
9486 (altivec_vrfim): Ditto.
9487 (altivec_copysign_v4sf3): New insn for Altivec copysign support.
9488
9489 * config/rs6000/rs6000.md (UNSPEC_BPERM): New constant.
9490 (power7.md, vsx.md): Include for power7 support.
9491 (copysigndf3): Use VSX instructions if -mvsx.
9492 (negdf2_fpr): Ditto.
9493 (absdf2_fpr): Ditto.
9494 (nabsdf2_fpr): Ditto.
9495 (adddf3_fpr): Ditto.
9496 (subdf3_fpr): Ditto.
9497 (muldf3_fpr): Ditto.
9498 (divdf3_fpr): Ditto.
9499 (fix_truncdfdi2_fpr): Ditto.
9500 (cmpdf_internal1): Ditto.
9501 (fred, fred_fpr): Convert into expander/insn to add VSX support.
9502 (btruncdf2, btruncdf2_fpr): Ditto.
9503 (ceildf2, ceildf2_fpr): Ditto.
9504 (floordf2, floordf2_fpr): Ditto.
9505 (floatdidf2, floatdidf2_fpr): Ditto.
9506 (fmadddf4_fpr): Name insn. Use VSX instructions if -mvsx.
9507 (fmsubdf4_fpr): Ditto.
9508 (fnmadddf4_fpr_1): Ditto.
9509 (fnmadddf4_fpr_2): Ditto.
9510 (fnmsubdf4_fpr_1): Ditto.
9511 (fnmsubdf4_fpr_2): Ditto.
9512 (fixuns_truncdfdi2): Add expander for VSX support.
9513 (fix_truncdfdi2): Ditto.
9514 (fix_truncdfsi2): Ditto.
9515 (ftruncdf2): Ditto.
9516 (btruncsf2): Whitespace.
9517 (movdf_hardfloat32): Add support for VSX registers.
9518 (movdf_softfloat32): Ditto.
9519 (movdf_hardfloat64): Ditto.
9520 (movdf_hardfloat64_mfpgpr): Ditto.
9521 (movdf_softfloat64): Ditto.
9522 (movti splitters): Add check for vector registers supporting
9523 TImode in the future.
9524 (bpermd): Add power7 bpermd instruction.
9525
9526 * config/rs6000/altivec.h (vec_div): Define if VSX.
9527 (vec_mul): Ditto.
9528 (vec_msub): Ditto.
9529 (vec_nmadd): Ditto.
9530 (vec_nearbyint): Ditto.
9531 (vec_rint): Ditto.
9532 (vec_sqrt): Ditto.
9533 (all predicates): Use the generic builtin function, and not the V4SF
9534 specific function so that the predicates will work with VSX's V2DF.
9535 (vec_all_*): Ditto.
9536 (vec_any_*): Ditto.
9537
9538 * doc/extend.texi (PowerPC Altivec/VSX Built-in Functions):
9539 Document new VSX functions and types.
9540
9541 * doc/invoke.texi (PowerPc options): Document -mpopcntd, -mvsx
9542 switches.
9543
9544 * doc/md.texi (PowerPC constraints): Document "wd", "wf", "ws",
9545 "wa", and "j" constraints. Modify "v" to talk about Altivec
9546 instead of just vector.
9547
9548 2009-07-30 Andrew MacLeod <amacleod@redhat.com>
9549
9550 PR debug/26475
9551 * tree-into-ssa.c (insert_phi_nodes_for, rewrite_add_phi_arguments): Set
9552 location for phi arguments.
9553 (rewrite_update_phi_arguments): Find locations for reaching defs.
9554 * tree-ssa-threadupdate.c (create_edge_and_update_destination_phis):
9555 Add location to add_phi_arg calls.
9556 * tree-loop-districbution.c (update_phis_for_loop_copy): Add locations.
9557 * tree-ssa-loop-manip.c (create_iv, add_exit_phis_edge,
9558 split_loop_exit_edge, tree_transform_and_unroll_loop): Add locations.
9559 * tree-tailcall.c (add_successor_phi_arg, eliminate_tail_call,
9560 create_tailcall_accumulator, tree_optimize_tail_calls_1): Add locations.
9561 * tree.h (struct phi_arg_d): Add location_t to PHI arguments.
9562 * tree-phinodes.c (make_phi_node): Initialize location.
9563 (resize_phi_node): Initialize location to UNKNOWN_LOCATION.
9564 (add_phi_arg): Add location parameter.
9565 (remove_phi_arg_num): Move location when moving phi argument.
9566 * omp-low.c (expand_parallel_call, expand_omp_for_static_chunk): Set
9567 location.
9568 * tree-vect-loop-manip.c (slpeel_update_phis_for_duplicate_loop,
9569 slpeel_update_phi_nodes_for_guard1,
9570 slpeel_update_phi_nodes_for_guard2,
9571 slpeel_tree_duplicate_loop_to_edge_cfg, set_prologue_iterations,
9572 vect_loop_versioning): Set locations.
9573 * tree-parloops.c (create_phi_for_local_result,
9574 transform_to_exit_first_loop, create_parallel_loop): Add locations.
9575 * gimple-pretty-print.c (dump_gimple_phi): Dump lineno's if present.
9576 * tree-vect-loop.c (get_initial_def_for_induction,
9577 vect_create_epilog_for_reduction, vect_finalize_reduction): Add
9578 locations.
9579 * tree-flow-inline.h (gimple_phi_arg_location): New. Return locus.
9580 (gimple_phi_arg_location_from_edge): New. Return locus from an edge.
9581 (gimple_phi_arg_set_location): New. Set locus.
9582 (gimple_phi_arg_has_location): New. Check for locus.
9583 (redirect_edge_var_map_location): New. Return locus from var_map.
9584 * tree-vect-data-refs.c (vect_setup_realignment): Set location.
9585 * tree-ssa-phiopt.c (conditional_replacement): Set locus when
9586 combining PHI arguments.
9587 (cond_store_replacement): Set location.
9588 * cfgexpand.c (gimple_assign_rhs_to_tree): Transfer locus if possible.
9589 * grpahite.c (add_loop_exit_phis, add_guard_exit_phis,
9590 scop_add_exit_phis_edge): Add locations.
9591 * tree-cfgcleanup.c (remove_forwarder_block,
9592 remove_forwarder_block_with_phi): Add locations.
9593 * tree-ssa-pre.c (insert_into_preds_of_block): Add locations.
9594 * tree-predcom.c (initialize_root_vars, initialize_root_vars_lm): Add
9595 locations.
9596 * tree-ssa-dce.c (forward_edge_to_pdom): Add locations.
9597 * tree-ssa.c (redirect_edge_var_map_add, ssa_redirect_edge,
9598 flush_pending_stmts): Add source location.
9599 * lambda-code.c (perfect_nestify): Maintain location stack with argument
9600 stack to preserve locations.
9601 * tree-vect-stmts.c (vectorizable_load): Add location.
9602 * tree-inline.c (copy_phis_for_bb): Copy locus.
9603 (setup_one_parameter): Add call locus to inlined parameter stmts.
9604 (initialize_inlined_parameters): Pass in call location as parameter
9605 assignment locus.
9606 (tree_function_versioning): Pass location to setup_one_parameter.
9607 * tree-ssa-phiprop.c (phiprop_insert_phi): Set locations.
9608 * tree-outof-ssa.c (struct _elim_graph): Add source_location vecs for
9609 copy and edge lists.
9610 (insert_partition_copy_on_edge, insert_value_copy_on_edge,
9611 insert_rtx_to_part_on_edge, insert_part_to_rtx_on_edge): Provide a
9612 locus parameter and override the stmt default if provided.
9613 (new_elim_graph, clear_elim_graph, delete_elim_graph,
9614 elim_graph_add_edge, elim_graph_remove_succ_edge,
9615 FOR_EACH_ELIM_GRAPH_SUCC, FOR_EACH_ELIM_GRAPH_PRED, eliminate_build,
9616 elim_forward, elim_unvisited_predecessor, elim_backward, elim_create,
9617 eliminate_phi): Add locus info in elimination graph for each edge and
9618 value copy.
9619 (insert_backedge_copies): Copy locus if present.
9620 * tree-flow.h (struct _edge_var_map): Add locus field.
9621 * tree-switch_conversions.c (fix_phi_nodes): Add locations.
9622 * tree-cfg.c (reinstall_phi_args, gimple_make_forwarder_block,
9623 add_phi_args_after_copy_edge, gimple_lv_adjust_loop_header_phi): Add
9624 locations.
9625 * ipa-struct-reorg.c (make_edge_and_fix_phis_of_dest): Add locations.
9626
9627 2009-07-30 Martin Jambor <mjambor@suse.cz>
9628
9629 PR tree-optimization/40570
9630 * ipa-inline.c (cgraph_decide_inlining): Watch out for dead single
9631 use inlining loops.
9632
9633 2009-07-30 Razya Ladelsky <razya@il.ibm.com>
9634
9635 * ssa-loop-manip.c: Include langhooks.h.
9636 (rewrite_phi_with_iv): New.
9637 (rewrite_all_phi_nodes_with_iv): New.
9638 (canonicalize_loop_ivs): Move here from tree-parloops.c.
9639 Remove reduction_list argument. Use rewrite_all_phi_nodes_with_iv.
9640 * tree-parloops.c (loop_parallel_p): Move out all conditions
9641 except dependency check.
9642 (canonicalize_loop_ivs): Move to tree-ssa-loop-manip.c.
9643 (gen_parallel_loop): Call canonicalize_loop_ivs without
9644 reduction_list argument.
9645 (build_new_reduction): New.
9646 (gather_scalar_reductions): New.
9647 (try_get_loop_niter): New.
9648 (try_create_reduction_list): New.
9649 (parallleize_loops): Change the parallel conditions check.
9650 * tree-flow.h (canonicalize_loop_ivs): Remove one argument.
9651 * Makefile.in (tree-ssa-loop-manip.o): Add langhooks.h dependency.
9652
9653 2009-07-30 Dave Korn <dave.korn.cygwin@gmail.com>
9654
9655 * opt-functions.awk (opt_args): Allow argument to be enclosed in
9656 curly braces.
9657 * doc/options.texi (Option properties): Mention new quoting syntax.
9658
9659 2009-07-29 Douglas B Rupp <rupp@gnat.com>
9660
9661 * config/alpha/alpha.c (alpha_start_function):
9662 Handle VMS_DEBUG_MAIN_POINTER
9663 * config/alpha/vms.h (VMS_DEBUG_MAIN_POINTER): Define new macro.
9664 * doc/invoke.texi: Document -mdebug-main switch.
9665
9666 2009-07-29 Richard Henderson <rth@redhat.com>
9667
9668 * cgraph.c (cgraph_set_call_stmt_including_clones): Tidy.
9669 (cgraph_create_edge_including_clones): Likewise.
9670 * tree-inline.c (copy_bb): Operate on the correct edges
9671 when updating the callgraph.
9672
9673 2009-07-29 Douglas B Rupp <rupp@gnat.com>
9674
9675 * config/alpha/vms-cc.c: Deleted.
9676 * config/alpha/vms-ld.c: Deleted.
9677 * config/alpha/t-vms64: Moved to config/vms
9678 * config/alpha/vms-crt0-64.c: Moved to config/vms
9679 * config/alpha/vms-crt0.c: Moved to config/vms
9680 * config/alpha/vms-psxcrt0-64.c: Moved to config/vms
9681 * config/alpha/vms-psxcrt0.c: Moved to config/vms
9682 * config/alpha/xm-vms.h: Moved to config/vms
9683 * config/alpha/x-vms: Moved to config/vms
9684 * config/alpha/t-vms (vcrt0.o, pcrt0.o): Move rules to new file
9685 config/vms/t-vms.
9686 * config/vms/t-vms: Moved here from config/alpha. Alpha specific
9687 parts removed. (STMP_FIXPROTO, STMP_FIXINC, LIMITS_H_TEST): Set.
9688 (version): Set.
9689 * config/vms/t-vms64: Moved here from config/alpha
9690 * config/vms/vms-crt0-64.c: Moved here from config/alpha.
9691 (argc,argv,envp): Enforce 32bit malloc'ing.
9692 * config/vms/vms-psxcrt0-64.c: Likewise.
9693 * config/vms/vms-crt0.c: Moved here from config/alpha.
9694 * config/vms/vms-psxcrt0.c: Likewise.
9695 * config/vms/vms-crtl-64.h: New file.
9696 * config/vms/vms-crtl.h: New file.
9697 * config/vms/vms.opt: New file.
9698 * config/vms/xm-vms64.h: New file.
9699 * config/vms/xm-vms.h: Moved here from config/alpha.
9700 (STANARD_EXEC_PREFIX, STANDARD_STARTFILE_PREFIX, STANDARD_INCLUDE_DIR):
9701 Set.
9702 * config/vms/x-vms: Moved here from config/alpha.
9703 (version, VMS_EXTRA_PARTS): Moved to t-vms.
9704 (vms-ld.o, vms-cc.o): Removed.
9705 (LN, LN_S, USE_COLLECT2, POD2MAN): Set.
9706
9707 2009-07-29 Douglas B Rupp <rupp@gnat.com>
9708
9709 * dwarf2out.c (add_name_and_src_coords_attributes): Push on the
9710 correct stack (obvious VMS fix).
9711
9712 2009-07-29 Douglas B Rupp <rupp@gnat.com>
9713
9714 * dwarf2out.c (output_file_names): Output VMS style file name, size,
9715 date, version info if VMS_DEBUGGING_INFO defined.
9716 * vmsdgbout.c (vms_file_stats_name): New functon. VMS style file name,
9717 size, date calculating code moved here.
9718
9719 2009-07-29 Paul Brook <paul@codesourcery.com>
9720
9721 * config/arm/lib1funcs.asm (clear_cache): Use ARM_FUNC_START and
9722 do_push/do_pop.
9723
9724 2009-07-29 Uros Bizjak <ubizjak@gmail.com>
9725
9726 PR target/40577
9727 * config/alpha/alpha.c (alpha_expand_unaligned_store): Convert src
9728 to DImode when generating insq_le insn.
9729
9730 2009-07-28 Douglas B Rupp <rupp@gnat.com>
9731
9732 * dwarf2out.c (DWARF2_INDIRECT_STRING_SUPPORT_MISSING_ON_TARGET):
9733 New macro set for VMS_DEBUGGGING_INFO.
9734 (AT_string_form): Use it.
9735
9736 2009-07-28 DJ Delorie <dj@redhat.com>
9737
9738 * config/mep/mep.c (vtext_section): New.
9739 (vftext_section): New.
9740 (ftext_section): New.
9741 (mep_select_section): Add support for functions.
9742 (mep_unique_section): Likewise.
9743 (mep_asm_init_sections): Likewise.
9744 (mep_encode_section_info): Remove it from here.
9745
9746 * config/mep/mep.h (USE_SELECT_SECTION_FOR_FUNCTIONS): Define.
9747
9748 2009-07-28 Paolo Bonzini <bonzinI@gnu.org>
9749
9750 * tree.h (TREE_DEPRECATED): Document it is used for types too.
9751 (TYPE_VECTOR_OPAQUE): Use default_def_flag
9752
9753 2009-07-28 Douglas B Rupp <rupp@gnat.com>
9754
9755 * dwarf2out.c (output_file_names): Test new macro
9756 DWARF2_DIR_SHOULD_END_WITH_SEPARATOR.
9757 (add_comp_dir_attribute): Likewise.
9758
9759 2009-07-28 Kai Tietz <kai.tietz@onevision.com>
9760
9761 * config/i386/mingw-w64.h (LINK_SPEC): Add
9762 separating space between commands.
9763
9764 2009-07-28 Jan Hubicka <jh@suse.cz>
9765
9766 PR tree-optimization/40759
9767 * tree-ssa-dce.c (mark_virtual_phi_result_for_renaming): Mark all uses
9768 for renaming.
9769
9770 2009-07-27 DJ Delorie <dj@redhat.com>
9771
9772 * config/mep/mep.c (mep_expand_builtin_saveregs): Make sure 64-bit
9773 types are dword-aligned.
9774 (mep_expand_va_start): Likewise.
9775
9776 2009-07-27 Olivier Hainque <hainque@adacore.com>
9777 Douglas B Rupp <rupp@gnat.com>
9778
9779 * convert.c (convert_to_pointer): Don't assume the target
9780 pointer type is POINTER_SIZE long. Fetch its precision instead.
9781
9782 2009-07-27 Douglas B Rupp <rupp@gnat.com>
9783
9784 * system.h (fopen): Undefine if macro.
9785
9786 2009-07-27 Jakub Jelinek <jakub@redhat.com>
9787
9788 * dwarf2out.c (output_cfi_p): Removed.
9789 (output_cfis): New function.
9790 (output_fde): New function, split from output_call_frame_info.
9791 (output_call_frame_info): Use it.
9792 (dwarf2out_switch_text_section): Use output_cfis.
9793
9794 2009-07-24 Kai Tietz <kai.tietz@onevision.com>
9795
9796 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Error build when
9797 TARGET_BI_ARCH is specified without enabling SJLJ.
9798 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Define MD_UNWIND_SUPPORT,
9799 if TARGET_64BIT and TARGET_BI_ARCH aren't defined.
9800
9801 2009-07-26 Mikael Pettersson <mikpe@it.uu.se>
9802
9803 * arm.md (negdi2): Use DImode if forcing a value into a register.
9804
9805 2009-07-26 Ira Rosen <irar@il.ibm.com>
9806
9807 PR tree-optimization/40801
9808 * tree-vect-stmts.c (vectorizable_call): Get previous copy
9809 of vector operand from the previous copy of vector statement.
9810 Pass the correct definition type value to
9811 vect_get_vec_def_for_stmt_copy().
9812
9813 2009-07-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9814
9815 * collect2.c (scan_libraries): Use CONST_CAST2 to perform char ** to
9816 const char ** conversion.
9817
9818 2009-07-25 David Daney <ddaney@caviumnetworks.com>
9819
9820 * system.h (gcc_assert): Invoke __builtin_unreachable() instead of
9821 fancy_abort() if !ENABLE_ASSERT_CHECKING.
9822 (gcc_unreachable): Invoke __builtin_unreachable() if
9823 !ENABLE_ASSERT_CHECKING.
9824
9825 2009-07-25 David Daney <ddaney@caviumnetworks.com>
9826
9827 PR rtl-optimization/40445
9828 * emit-rtl.c (next_nonnote_insn_bb): New function.
9829 * rtl.h (next_nonnote_insn_bb): Declare new function.
9830 * cfgcleanup.c (try_optimize_cfg): Don't remove an empty block
9831 with no successors that is the successor of the ENTRY_BLOCK.
9832 Continue from the top after removing an empty fallthrough block.
9833 * cfgrtl.c (get_last_bb_insn): Call next_nonnote_insn_bb instead
9834 of next_nonnote_insn.
9835
9836 2009-07-25 David Daney <ddaney@caviumnetworks.com>
9837
9838 * cfgcleanup.c (old_insns_match_p): Handle the case of empty blocks.
9839
9840 2009-07-25 Martin Jambor <mjambor@suse.cz>
9841
9842 * c-common.c (c_common_attribute_table): New element for noclone.
9843 (handle_noclone_attribute): New function. Forward-declare.
9844 * tree-inline.c (tree_versionable_function_p): Check for noclone
9845 attribute.
9846 * doc/extend.texi (Labels as Values): Document need for noclone.
9847 (Function Attributes): Document noclone attribute.
9848
9849 2009-07-25 Jakub Jelinek <jakub@redhat.com>
9850
9851 PR rtl-optimization/34999
9852 * dwarf2out.c (struct dw_fde_struct): Add dw_fde_switch_cfi
9853 and dw_fde_switched_cold_to_hot fields.
9854 (output_cfi_p): New function.
9855 (output_call_frame_info): If fde->dw_fde_switched_sections,
9856 output 2 FDEs instead of one with corrupted header.
9857 (dwarf2out_do_cfi_startproc): New function.
9858 (dwarf2out_begin_prologue): Use it. Initialize fde->dw_fde_switch_cfi
9859 and fde->dw_fde_switched_cold_to_hot.
9860 (dwarf2out_switch_text_section): Compute
9861 fde->dw_fde_switched_cold_to_hot. Switch to new text section here.
9862 If dwarf2out_do_cfi_asm, emit .cfi_endproc before it and call
9863 dwarf2out_do_cfi_startproc plus emit again currently active CFI insns.
9864 Otherwise, compute fde->dw_fde_switch_cfi.
9865
9866 2009-07-24 Cary Coutant <ccoutant@google.com>
9867
9868 * tree-cfg.c (assign_discriminator): Add explicit parentheses.
9869
9870 2009-07-24 Cary Coutant <ccoutant@google.com>
9871
9872 * cfghooks.c (split_block): Copy discriminator to new block.
9873 * tree-cfg.c (assign_discriminator): Check location of last
9874 instruction in block as well as first.
9875
9876 2009-07-24 Uros Bizjak <ubizjak@gmail.com>
9877
9878 * config/i386/linux.c: Use fputs or putc instead of fprintf
9879 where appropriate.
9880 * config/i386/gas.h: Ditto.
9881 * config/i386/x86-64.h: Ditto.
9882 * config/i386/att.h: Ditto.
9883
9884 2009-07-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9885
9886 * expmed.c (emit_store_flag): Use a recursive call to optimize the
9887 xor case.
9888
9889 2009-07-24 Martin Jambor <mjambor@suse.cz>
9890
9891 * ipa-prop.h (struct ipa_node_params): New flag node_enqued.
9892 (ipa_push_func_to_list_1): Declare.
9893 (ipa_push_func_to_list): New function.
9894
9895 * ipa-prop.c (ipa_push_func_to_list_1): New function.
9896 (ipa_init_func_list): Call ipa_push_func_to_list_1.
9897 (ipa_push_func_to_list): Removed.
9898 (ipa_pop_func_from_list): Clear node_enqueued flag.
9899
9900 2009-07-24 Andreas Krebbel <krebbel1@de.ibm.com>
9901
9902 * config/s390/s390.c (override_options): Default
9903 max-unrolled-insns to 100 for z10 tuning.
9904
9905 2009-07-24 Tobias Grosser <grosser@fim.uni-passau.de>
9906
9907 * Makefile.in (TREE_DATA_REF_H, tree-vrp.o, tree-cfg.o, tree-if-conv.o
9908 tree-ssa-loop.o, tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o,
9909 tree-ssa-loop-prefetch.o, tree-predcom.o, tree-affine.o,
9910 tree-scalar-evolution.o, tree-data-ref.o, tree-vect-loop.o,
9911 tree-vect-data-refs.o, tree-loop-linear.o, tree-loop-distribution.o
9912 tree-parloops.o, tree-pretty-printer.o, fold-const.o, tree-ssa-dce.o,
9913 lambda-code.o, params.o): Cleanup use of SCEV_H and TREE_DATA_REF_H.
9914
9915 2009-07-24 Kai Tietz <kai.tietz@onevision.com>
9916
9917 * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR): Remove and
9918 use default set in mingw32.h header.
9919 * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Use for 32-bit and
9920 64-bit /mingw/include path.
9921 (STANDARD_STARTFILE_PREFIX_1): Use for 32-bit and 64-bit /mingw/lib
9922 path.
9923
9924 2009-07-23 Neil Vachharajani <nvachhar@google.com>
9925
9926 PR rtl-optimization/40209
9927 * loop-iv.c (iv_analysis_loop_init): Call df_note_add_problem.
9928
9929 2009-07-23 Uros Bizjak <ubizjak@gmail.com>
9930
9931 * config/i386/i386.c: Use ASM_LONG instead of .long. Concatenate
9932 ASM_LONG, LPREFIX, MCOUNT_NAME and PROFILE_COUNT_REGISTER strings
9933 with the rest of string where appropriate. Use fputs or putc
9934 instead of fprintf where appropriate.
9935
9936 2009-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
9937 Pat Haugen <pthaugen@us.ibm.com>
9938 Revital Eres <ERES@il.ibm.com>
9939
9940 * config/rs6000/vector.md: New file. Move most of the vector
9941 expander support here from altivec.md to allow for the VSX vector
9942 unit in the future. Add support for secondary_reload patterns.
9943 Rewrite the patterns for vector comparison, and vector comparison
9944 predicate instructions so that the RTL expresses the desired
9945 behavior, instead of using unspec.
9946
9947 * config/rs6000/constraints.md ("f" constraint): Use
9948 rs6000_constraints to hold the precalculated register class.
9949 ("d" constraint): Ditto.
9950 ("wd" constraint): New constraint for VSX.
9951 ("wf" constraint): Ditto.
9952 ("ws" constraint): Ditto.
9953 ("wa" constraint): Ditto.
9954 ("wZ" constraint): Ditto.
9955 ("j" constraint): Ditto.
9956
9957 * config/rs6000/predicates.md (vsx_register_operand): New
9958 predicate for VSX.
9959 (vfloat_operand): New predicate for vector.md.
9960 (vint_operand): Ditto.
9961 (vlogical_operand): Ditto.
9962 (easy_fp_constant): If VSX, 0.0 is an easy constant.
9963 (easy_vector_constant): Add VSX support.
9964 (altivec_indexed_or_indirect_operand): New predicate for
9965 recognizing Altivec style memory references with AND -16.
9966
9967 * config/rs6000/rs6000.c (rs6000_vector_reload): New static global
9968 for vector secondary reload support.
9969 (rs6000_vector_reg_class): Delete, replacing it with
9970 rs6000_constraints.
9971 (rs6000_vsx_reg_class): Ditto.
9972 (rs6000_constraints): New array to hold the register classes of
9973 each of the register constraints that can vary at runtime.
9974 (builtin_mode_to_type): New static array for builtin function type
9975 creation.
9976 (builtin_hash_table): New static hash table for builtin function
9977 type creation.
9978 (TARGET_SECONDARY_RELOAD): Define target hook.
9979 (TARGET_IRA_COVER_CLASSES): Ditto.
9980 (rs6000_hard_regno_nregs_internal): If -mvsx, floating point
9981 registers are 128 bits if VSX memory reference instructions are used.
9982 (rs6000_hard_regno_mode_ok): For VSX, only check if the VSX memory
9983 unit is being used.
9984 (rs6000_debug_vector_unit): Move into rs6000_debug_reg_global.
9985 (rs6000_debug_reg_global): Move -mdebug=reg statements here.
9986 Print several of the scheduling related parameters.
9987 (rs6000_init_hard_regno_mode_ok): Switch to putting constraints in
9988 rs6000_constraints instead of rs6000_vector_reg_class. Move
9989 -mdebug=reg code to rs6000_debug_reg_global. Add support for
9990 -mvsx-align-128 debug switch. Drop testing float_p if VSX or
9991 Altivec. Add VSX support. Setup for secondary reload support on
9992 Altivec/VSX registers.
9993 (rs6000_override_options): Make power7 set the scheduling groups
9994 like the power5. Add support for new debug switches to override
9995 the scheduling defaults. Temporarily disable -mcpu=power7 from
9996 setting -mvsx. Add support for debug switches -malways-hint,
9997 -msched-groups, and -malign-branch-targets.
9998 (rs6000_buitlin_conversion): Add support for returning unsigned
9999 vector conversion functions to fix regressions due to stricter
10000 type checking.
10001 (rs6000_builtin_mul_widen_even): Ditto.
10002 (rs6000_builtin_mul_widen_odd): Ditto.
10003 (rs6000_builtin_vec_perm): Ditto.
10004 (rs6000_vec_const_move): On VSX, use xxlxor to clear register.
10005 (rs6000_expand_vector_init): Initial VSX support for using xxlxor
10006 to zero a register.
10007 (rs6000_emit_move): Fixup invalid const symbol_ref+reg that is
10008 generated upstream.
10009 (bdesc_3arg): Add builtins for unsigned types. Add builtins for
10010 VSX types for bit operations. Changes to accomidate vector.md.
10011 (bdesc_2arg): Ditto.
10012 (bdesc_1arg): Ditto.
10013 (struct builtin_description_predicates): Rewrite predicate
10014 handling so that RTL describes the operation, instead of passing
10015 the instruction to be used as a string argument.
10016 (bdesc_altivec_preds): Ditto.
10017 (altivec_expand_predicate_builtin): Ditto.
10018 (altivec_expand_builtin): Ditto.
10019 (rs6000_expand_ternop_builtin): Use a switch instead of an if
10020 statement for vsldoi support.
10021 (altivec_expand_ld_builtin): Change to use new names from vector.md.
10022 (altivec_expand_st_builtin): Ditto.
10023 (paired_expand_builtin): Whitespace changes.
10024 (rs6000_init_builtins): Add V2DF/V2DI types. Initialize the
10025 builtin_mode_to_type table for secondary reload. Call
10026 builtin_function_type to build random builtin functions.
10027 (altivec_init_builtins): Change to use builtin_function_type to
10028 create builtin function types dynamically as we need them.
10029 (builtin_hash_function): New support for hashing the tree types
10030 for builtin function as we need it, rather than trying to build
10031 all of the trees that we need. Add initial preliminary VSX support.
10032 (builtin_function_type): Ditto.
10033 (builtin_function_eq): Ditto.
10034 (builtin_hash_struct): Ditto.
10035 (rs6000_init_builtins): Ditto.
10036 (rs6000_common_init_builtins): Ditto.
10037 (altivec_init_builtins): Ditto.
10038 (rs6000_common_init_builtins): Ditto.
10039 (enum reload_reg_type): New enum for simplifing reg classes.
10040 (rs6000_reload_register_type): Simplify register classes into GPR,
10041 Vector, and other registers. Altivec and VSX addresses in reload.
10042 (rs6000_secondary_reload_inner): Ditto.
10043 (rs6000_ira_cover_classes): New target hook, that returns the
10044 appropriate cover classes, based on -mvsx being used or not.
10045 (rs6000_secondary_reload_class): Add VSX support.
10046 (get_vec_cmp_insn): Delete, rewrite vector conditionals.
10047 (get_vsel_insn): Ditto.
10048 (rs6000_emit_vector_compare): Rewrite vector conditional support
10049 so that where we can, we use RTL operators, instead of blindly use
10050 UNSPEC.
10051 (rs6000_emit_vector_select): Ditto.
10052 (rs6000_emit_vector_cond_expr): Ditto.
10053 (rs6000_emit_minmax): Directly generate min/max under altivec, vsx.
10054 (create_TOC_reference): Add -mdebug=addr support.
10055 (emit_frame_save): VSX loads/stores need register indexed addressing.
10056
10057 * config/rs6000/rs6000.md: Include vector.md.
10058
10059 * config/rs6000/t-rs6000 (MD_INCLUDES): Add vector.md.
10060
10061 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
10062 support for V2DI, V2DF in logical, permute, select operations.
10063
10064 * config/rs6000/rs6000.opt (-mvsx-scalar-double): Add new debug
10065 switch for vsx/power7.
10066 (-mvsx-scalar-memory): Ditto.
10067 (-mvsx-align-128): Ditto.
10068 (-mallow-movmisalign): Ditto.
10069 (-mallow-df-permute): Ditto.
10070 (-msched-groups): Ditto.
10071 (-malways-hint): Ditto.
10072 (-malign-branch-targets): Ditto.
10073
10074 * config/rs6000/rs6000.h (IRA_COVER_CLASSES): Delete, use target
10075 hook instead.
10076 (IRA_COVER_CLASSES_PRE_VSX): Cover classes if not -mvsx.
10077 (IRA_COVER_CLASSES_VSX): Cover classes if -mvsx.
10078 (rs6000_vector_reg_class): Delete.
10079 (rs6000_vsx_reg_class): Ditto.
10080 (enum rs6000_reg_class_enum): New enum for the constraints that
10081 vary based on target switches.
10082 (rs6000_constraints): New array to hold the register class for all
10083 of the register constraints that vary based on the switches used.
10084 (ALTIVEC_BUILTIN_*_UNS): Add unsigned builtin functions.
10085 (enum rs6000_builtins): Add unsigned varients for the builtin
10086 declarations returned by target hooks for expanding multiplies,
10087 select, and permute operations. Add VSX builtins.
10088 (enum rs6000_builtin_type_index): Add entries for VSX.
10089 (V2DI_type_node): Ditto.
10090 (V2DF_type_node): Ditto.
10091 (unsigned_V2DI_type_node): Ditto.
10092 (bool_long_type_node): Ditto.
10093 (intDI_type_internal_node): Ditto.
10094 (uintDI_type_internal_node): Ditto.
10095 (double_type_internal_node): Ditto.
10096
10097 * config/rs6000/altivec.md (whole file): Move all expanders to
10098 vector.md from altivec.md. Rename insn matching functions to be
10099 altivec_foo.
10100 (UNSPEC_VCMP*): Delete, rewrite vector comparisons.
10101 (altivec_vcmp*): Ditto.
10102 (UNSPEC_VPERM_UNS): New, add for unsigned types using vperm.
10103 (VM): New iterator for moves that includes the VSX types.
10104 (altivec_vperm_<mode>): Add VSX types. Add unsigned types.
10105 (altivec_vperm_<mode>_uns): New, for unsigned types.
10106 (altivec_vsel_*): Rewrite vector comparisons and predicate builtins.
10107 (altivec_eq<mode>): Ditto.
10108 (altivec_gt<mode>): Ditto.
10109 (altivec_gtu<mode>): Ditto.
10110 (altivec_eqv4sf): Ditto.
10111 (altivec_gev4sf): Ditto.
10112 (altivec_gtv4sf): Ditto.
10113 (altivec_vcmpbfp_p): Ditto.
10114
10115 2009-07-23 Richard Earnshaw <rearnsha@arm.com>
10116
10117 * arm.md (split for ior/xor with shift and zero-extend): Cast op3 to
10118 unsigned HWI.
10119
10120 2009-07-23 Uros Bizjak <ubizjak@gmail.com>
10121
10122 PR target/40832
10123 * config/i386/i386.c (output_387_ffreep): Rewrite to use
10124 ASM_SHORT instead of .word.
10125 * config/i386/i386.md (*tls_global_dynamic_64): Use ASM_SHORT
10126 instead of .word in asm template.
10127
10128 2009-07-22 Vladimir Makarov <vmakarov@redhat.com>
10129
10130 PR target/37488
10131 * ira-lives.c (bb_has_abnormal_call_pred): New function.
10132 (process_bb_node_lives): Use it.
10133
10134 * ira.c (setup_cover_and_important_classes): Don't setup
10135 ira_important_class_nums. Add cover classes to the end of
10136 important classes.
10137 (cover_class_order, comp_reg_classes_func, reorder_important_classes):
10138 New.
10139 (find_reg_class_closure): Use reorder_important_classes.
10140
10141 * config/i386/i386.h (IRA_COVER_CLASSES): Remove.
10142
10143 * config/i386/i386.c (i386_ira_cover_classes): New function.
10144 (TARGET_IRA_COVER_CLASSES): Redefine.
10145
10146 * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Add a comment about
10147 importance of order of cover classes in the array.
10148
10149 2009-07-22 Diego Novillo <dnovillo@google.com>
10150
10151 * tree-pass.h (TDF_EH): Define.
10152 * gimple-pretty-print.c (dump_gimple_stmt): If FLAGS
10153 contains TDF_EH, print the EH region number holding GS.
10154 * tree-dump.c (dump_options): Add "eh".
10155 * doc/invoke.texi: Document it.
10156
10157 2009-07-22 Doug Kwan <dougkwan@google.com>
10158
10159 * config/arm/arm.md (subdi3) Copy non-reg values to DImode registers.
10160
10161 2009-07-22 Michael Matz <matz@suse.de>
10162
10163 PR tree-optimization/35229
10164 PR tree-optimization/39300
10165
10166 * tree-ssa-pre.c (includes): Include tree-scalar-evolution.h.
10167 (inhibit_phi_insertion): New function.
10168 (insert_into_preds_of_block): Call it for REFERENCEs.
10169 (init_pre): Initialize and finalize scalar evolutions.
10170 * Makefile.in (tree-ssa-pre.o): Depend on tree-scalar-evolution.h .
10171
10172 2009-07-22 Uros Bizjak <ubizjak@gmail.com>
10173
10174 * config/i386/predicates.md (zero_extended_scalar_load_operand):
10175 Use CONST_VECTOR_NUNITS to determine number of elements.
10176
10177 2009-07-22 Andreas Krebbel <krebbel1@de.ibm.com>
10178
10179 * config/s390/constraints.md (ZQ, ZR, ZS, ZT): New constraints.
10180 (U, W): Constraints are now deprecated and will be removed if we
10181 run out of letters.
10182 * config/s390/s390.md (U, W): Replaced with ZQZR, ZSZT throughout
10183 the file.
10184 ("prefetch"): Add the stcmh instruction for prefetching.
10185 * config/s390/s390.c (s390_symref_operand_p): Function moved. No
10186 changes.
10187 (s390_short_displacement): Return always true if compiling for
10188 machines not providing the long displacement facility.
10189 (s390_mem_constraint): Support the new constraint letter Z.
10190 (s390_check_qrst_address): New function.
10191
10192 2009-07-21 DJ Delorie <dj@redhat.com>
10193
10194 * config/mep/mep.c (mep_legitimize_arg): Leave control registers
10195 alone too.
10196
10197 2009-07-21 Jason Merrill <jason@redhat.com>
10198
10199 * c-common.c (max_tinst_depth): Increase default to 1024.
10200
10201 2009-07-21 Uros Bizjak <ubizjak@gmail.com>
10202
10203 * config/i386/sse.md (vec_unpacku_float_hi_v4si): New expander.
10204 (vec_unpacku_float_lo_v4si): Ditto.
10205
10206 2009-07-21 Uros Bizjak <ubizjak@gmail.com>
10207
10208 PR target/40811
10209 * config/i386/sse.md (sse2_cvtudq2ps): New expander.
10210 (enum ix86_builtins): Add IX86_BUILTIN_CVTUDQ2PS.
10211 (builtin_description): Add __builtin_ia32_cvtudq2ps.
10212 (ix86_vectorize_builtin_conversion): Handle IX86_BUILTIN_CVTUDQ2PS.
10213
10214 2009-07-21 Jakub Jelinek <jakub@redhat.com>
10215
10216 PR tree-optimization/40813
10217 * tree-inline.c (copy_bb): Regimplify RHS after last stmt, not before
10218 it.
10219
10220 2009-07-21 Kaz Kojima <kkojima@gcc.gnu.org>
10221
10222 * config/sh/sh.c (sh_gimplify_va_arg_expr): Wrap the result
10223 with a NOP_EXPR if needed.
10224
10225 2009-07-21 Paul Brook <paul@codesourcery.com>
10226
10227 * tree-vectorizer.c (increase_alignment): Handle nested arrays.
10228 Terminate debug dump with newline.
10229
10230 2009-07-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10231
10232 * pa.c (compute_zdepwi_operands): Limit deposit length to 32 - lsb.
10233 Cast "1" to unsigned HOST_WIDE_INT.
10234 (compute_zdepdi_operands): Limit maximum length to 64 bits. Limit
10235 deposit length to the maximum length - lsb. Extend length if
10236 HOST_BITS_PER_WIDE_INT is 32.
10237
10238 2009-07-20 Olatunji Ruwase <tjruwase@google.com>
10239
10240 * cgraph.h (constant_pool_htab): New function.
10241 (constant_descriptor_tree): Move from varasm.c.
10242 * varasm.c (constant_pool_htab): New function.
10243 (constant_descriptor_tree): Move to cgraph.h.
10244
10245 2009-07-20 Olatunji Ruwase <tjruwase@google.com>
10246
10247 * toplev.c: Invoke FINISH_UNIT callbacks before call to finalize().
10248
10249 2009-07-20 Shujing Zhao <pearly.zhao@oracle.com>
10250
10251 * Makefile.in (TREE_INLINE_H, tree-inline.o, cgraph.o): Remove
10252 $(VARRAY_H).
10253
10254 2009-07-20 Xinliang David Li <davidxl@google.com>
10255
10256 * dbgcnt.c (dbg_cnt_set_limit_by_name): Add length check.
10257
10258 2009-07-20 Adam Nemet <anemet@caviumnetworks.com>
10259
10260 * config/mips/mips.md (move_type): Add arith.
10261 (type): Handle arith.
10262 (zero_extendsidi2): Rename this into ...
10263 (*zero_extendsidi2): ... this. Don't match if ISA_HAS_EXT_INS.
10264 (zero_extendsidi2): New expander.
10265 (*zero_extendsidi2_dext): New pattern.
10266
10267 2009-07-20 Nick Clifton <nickc@redhat.com>
10268
10269 * config.gcc (mips64-*-*): Add definition of tm_defines in order
10270 to set MIPS_ABI_DEFAULT.
10271 * config/mips/vr.h (MIPS_ABI_DEFAULT): Remove definition.
10272
10273 2009-07-20 Jakub Jelinek <jakub@redhat.com>
10274
10275 * tree-object-size.c (addr_object_size): Handle unions with
10276 array in it as last field of structs in __bos (, 1) as __bos (, 0).
10277
10278 PR tree-optimization/40792
10279 * tree.c (build_function_type_skip_args): Remove bogus assert.
10280
10281 2009-07-20 Jan Hubicka <jh@suse.cz>
10282 Martin Jambor <mjambor@suse.cz>
10283
10284 * cgraph.h (combined_args_to_skip): New field.
10285 * cgraph.c (cgraph_create_virtual_clone): Properly handle
10286 combined_args_to_skip and args_to_skip.
10287 * tree-inline.c (update_clone_info): New function.
10288 (tree_function_versioning): Call update_clone_info.
10289 * cgraphunit.c: (cgraph_materialize_clone): Dump materialized
10290 functions.
10291 (cgraph_materialize_all_clones): More extensive dumping, working
10292 with combined_args_to_skip rather than args_to_skip.
10293
10294 2009-07-20 Ira Rosen <irar@il.ibm.com>
10295
10296 * tree-vectorizer.h (vectorizable_condition): Add parameters.
10297 * tree-vect-loop.c (vect_is_simple_reduction): Support COND_EXPR.
10298 (get_initial_def_for_reduction): Likewise.
10299 (vectorizable_reduction): Skip the check of first operand in case
10300 of COND_EXPR. Add check that it is outer loop vectorization if
10301 nested cycle was detected. Call vectorizable_condition() for
10302 COND_EXPR. If reduction epilogue cannot be created do not fail for
10303 nested cycles (if it is not double reduction). Assert that there
10304 is only one type in the loop in case of COND_EXPR. Call
10305 vectorizable_condition() to vectorize COND_EXPR.
10306 * tree-vect-stmts.c (vectorizable_condition): Update comment.
10307 Add parameters. Allow nested cycles if called from
10308 vectorizable_reduction(). Use reduction vector variable if provided.
10309 (vect_analyze_stmt): Call vectorizable_reduction() before
10310 vectorizable_condition().
10311 (vect_transform_stmt): Update call to vectorizable_condition().
10312
10313 2009-07-20 Christian Bruel <christian.bruel@st.com>
10314
10315 * config/sh/sh.opt (-mfmovd): Resurrect and document.
10316 * doc/invoke.texi (-mfmovd): Likewise.
10317 * config/sh/sh.h (TARGET_FMOVD, MASK_FMOVD): Remove default setting.
10318
10319 2009-07-20 Jan Hubicka <jh@suse.cz>
10320
10321 * tree-ssa-dce.c (remove_dead_phis): Only look for abnormal PHIs
10322 when handling SSA name.
10323
10324 2009-07-19 Jan Hubicka <jh@suse.cz>
10325
10326 PR tree-optimization/40676
10327 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do renaming on all
10328 virtual PHIs in empty BBs.
10329
10330 2009-07-18 Adam Nemet <anemet@caviumnetworks.com>
10331
10332 * combine.c (make_compound_operation) <SUBREG>: If force_to_mode
10333 re-expanded the compound use gen_lowpart instead to convert to the
10334 desired mode.
10335
10336 2009-07-18 Adam Nemet <anemet@caviumnetworks.com>
10337
10338 * combine.c (try_widen_shift_mode): Add COUNT, OUTER_CODE and
10339 OUTER_CONST arguments.
10340 <LSHIFTRT>: Use them to allow widening if the bits shifted in from
10341 the new wider mode will be masked off.
10342 (simplify_shift_const_1): Adjust calls to try_widen_shift_mode.
10343
10344 2009-07-18 Adam Nemet <anemet@caviumnetworks.com>
10345
10346 * combine.c (try_widen_shift_mode) <LSHIFTRT>: Allow widening if the
10347 high-order bits are zero.
10348
10349 2009-07-18 Adam Nemet <anemet@caviumnetworks.com>
10350
10351 * combine.c (simplify_shift_const_1): Split code to determine
10352 shift_mode into ...
10353 (try_widen_shift_mode): ... here. Allow widening for ASHIFTRT if the
10354 new bits shifted in are identical to the old sign bit.
10355
10356 2009-07-18 Richard Guenther <rguenther@suse.de>
10357
10358 PR c/40787
10359 * gimplify.c (gimplify_call_expr): Reject code using results from
10360 functions returning void.
10361
10362 2009-07-18 Richard Sandiford <r.sandiford@uk.ibm.com>
10363
10364 * doc/md.texi: Document the new PowerPC "es" constraint.
10365 Document that "m" can include automodified addresses on this target,
10366 and explain how %U must be used. Extend the "Q" and "Z" documentation
10367 to suggest "es" as well as "m".
10368 * config/rs6000/constraints.md (es): New memory constraint.
10369 (Q, Z): Update strings to match new documentation.
10370
10371 2009-07-18 Richard Sandiford <r.sandiford@uk.ibm.com>
10372
10373 * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Allow any
10374 offset from virtual_stack_vars_rtx and arg_pointer_rtx.
10375 * config/rs6000/predicates.md (volatile_mem_operand): Use
10376 offsettable_nonstrict_memref_p.
10377 * config/rs6000/rs6000.md (*floatsidf2_internal): Remove split check.
10378 (*floatunssidf2_internal): Likewise.
10379 (*fix_truncdfsi2_internal): Likewise.
10380 (*fix_trunctfsi2_internal): Likewise.
10381
10382 2009-07-17 Anatoly Sokolov <aesok@post.ru>
10383
10384 * config/avr/avr-devices.c (avr_mcu_t): Add atmega8u2, atmega16u2 and
10385 atmega32u2 devices.
10386 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
10387
10388 2009-07-17 Richard Guenther <rguenther@suse.de>
10389
10390 PR c/40401
10391 * tree-pass.h (pass_diagnose_omp_blocks): Declare.
10392 (pass_warn_unused_result): Likewise.
10393 (TODO_set_props): Remove.
10394 * omp-low.c (diagnose_omp_structured_block_errors): Change to
10395 run as a pass.
10396 (pass_diagnose_omp_blocks): Define.
10397 * c-decl.c (pop_file_scope): Do not finalize the CU here.
10398 (c_gimple_diagnostics_recursively): Remove.
10399 (finish_function): Do not call it.
10400 (c_write_global_declarations): Continue after errors.
10401 Finalize the CU here.
10402 * c-gimplify.c (c_genericize): Do not gimplify here.
10403 * c-common.c (c_warn_unused_result): Move ...
10404 * tree-cfg.c (do_warn_unused_result): ... here.
10405 (run_warn_unused_result): New function.
10406 (gate_warn_unused_result): New function.
10407 (pass_warn_unused_result): New pass.
10408 * c-common.h (c_warn_unused_result): Remove.
10409 * flags.h (flag_warn_unused_result): Declare.
10410 * c-opts.c (c_common_init_options): Enable flag_warn_unused_result.
10411 * opts.c (flag_warn_unused_result): Initialize to false.
10412 * toplev.c (compile_file): Add comment.
10413 * omp-low.c (create_omp_child_function): Do not register
10414 the function with the frontend.
10415 (diagnose_omp_structured_block_errors): Prepare to be
10416 called as optimization pass.
10417 (gate_diagnose_omp_blocks): New function.
10418 (pass_diagnose_omp_blocks): New pass.
10419 * cgraph.h (cgraph_optimize): Remove.
10420 (cgraph_analyze_function): Likewise.
10421 * cgraph.c (cgraph_add_new_function): Gimplify C++ thunks.
10422 * cgraphunit.c (cgraph_lower_function): Lower nested functions
10423 before their parents here.
10424 (cgraph_finalize_function): Not here.
10425 (cgraph_analyze_function): Gimplify functions here.
10426 (cgraph_finalize_compilation_unit): Continue after errors.
10427 Optimize the callgraph from here.
10428 (cgraph_optimize): Make static.
10429 * langhooks.c (write_global_declarations): Finalize the CU.
10430 * gimplify.c (gimplify_asm_expr): Do not emit ASMs with errors.
10431 (gimplify_function_tree): Assert we gimplify only once.
10432 Set PROP_gimple_any property.
10433 * tree-nested.c (gimplify_all_functions): New function.
10434 (lower_nested_functions): Gimplify all nested functions.
10435 * gimple.h (diagnose_omp_structured_block_errors): Remove.
10436 * passes.c (init_optimization_passes): Add pass_warn_unused_result
10437 and pass_diagnose_omp_blocks after gimplification. Do not
10438 set TODO_set_props on all_lowering_passes.
10439 (execute_one_pass): Do not handle TODO_set_props.
10440 * Makefile.in (cgraphunit.o): Add $(TREE_DUMP_H) dependency.
10441 (gimplify.o): Add tree-pass.h dependency.
10442 * tree-inline.c (copy_statement_list): Properly copy STATEMENT_LIST.
10443 (copy_tree_body_r): Properly handle TARGET_EXPR like SAVE_EXPR.
10444 (unsave_r): Likewise.
10445 * c-omp.c (c_finish_omp_atomic): Set DECL_CONTEXT on the
10446 temporary variable.
10447
10448 2009-07-17 Sandra Loosemore <sandra@codesourcery.com>
10449
10450 * doc/service.texi (Service): Restore previously removed link,
10451 which isn't broken after all.
10452
10453 2009-07-17 Richard Guenther <rguenther@suse.de>
10454
10455 PR tree-optimization/40321
10456 * tree-ssa-pre.c (add_to_exp_gen): Also add names defined by
10457 PHI nodes to the maximal set.
10458 (make_values_for_phi): Add PHI arguments to the maximal set.
10459 (execute_pre): Dump PHI_GEN and the maximal set.
10460
10461 2009-07-17 Jakub Jelinek <jakub@redhat.com>
10462
10463 PR c++/40780
10464 * gimplify.c (gimplify_conversion): Don't change non-conversions into
10465 VIEW_CONVERT_EXPR.
10466
10467 2009-07-16 Sandra Loosemore <sandra@codesourcery.com>
10468
10469 * doc/extend.texi (Nested Functions): Replace broken link with
10470 textual reference.
10471 * doc/service.texi (Service): Remove broken link.
10472
10473 2009-07-16 H.J. Lu <hongjiu.lu@intel.com>
10474
10475 PR bootstrap/40781
10476 * builtins.c (expand_builtin_memcmp): Use loc instead of
10477 EXPR_LOCATION (exp).
10478 (expand_builtin_strncmp): Likewise.
10479
10480 2009-07-17 Aldy Hernandez <aldyh@redhat.com>
10481 Manuel López-Ibáñez <manu@gcc.gnu.org>
10482
10483 PR 40435
10484 * tree-complex.c, tree-loop-distribution.c, tree.c, tree.h,
10485 builtins.c, fold-const.c, omp-low.c, cgraphunit.c, tree-ssa-ccp.c,
10486 tree-ssa-dom.c, gimple-low.c, expr.c, tree-ssa-ifcombine.c,
10487 c-decl.c, stor-layout.c, tree-if-conv.c, c-typeck.c, gimplify.c,
10488 calls.c, tree-sra.c, tree-mudflap.c, tree-ssa-copy.c,
10489 tree-ssa-forwprop.c, c-convert.c, c-omp.c, varasm.c,
10490 tree-inline.c, c-common.c, c-common.h, gimple.c,
10491 tree-switch-conversion.c, gimple.h, tree-cfg.c, c-parser.c,
10492 convert.c: Add location argument to fold_{unary,binary,ternary},
10493 fold_build[123], build_call_expr, build_size_arg,
10494 build_fold_addr_expr, build_call_array, non_lvalue, size_diffop,
10495 fold_build1_initializer, fold_build2_initializer,
10496 fold_build3_initializer, fold_build_call_array,
10497 fold_build_call_array_initializer, fold_single_bit_test,
10498 omit_one_operand, omit_two_operands, invert_truthvalue,
10499 fold_truth_not_expr, build_fold_indirect_ref, fold_indirect_ref,
10500 combine_comparisons, fold_builtin_*, fold_call_expr,
10501 build_range_check, maybe_fold_offset_to_address, round_up,
10502 round_down.
10503
10504 2009-07-16 Jason Merrill <jason@redhat.com>
10505
10506 PR libstdc++/37907
10507 * c-common.c (c_common_reswords): Add __is_standard_layout
10508 and __is_trivial.
10509 * c-common.h (enum rid): Add RID_IS_STD_LAYOUT and RID_IS_TRIVIAL.
10510 * doc/implement-cxx.texi: New.
10511 * doc/gcc.texi: Include it.
10512
10513 2009-07-16 DJ Delorie <dj@redhat.com>
10514
10515 * config/m32c/m32c.c (m32c_compare_redundant): Avoid removing
10516 compares that may be indirectly affected by previous instructions.
10517
10518 2009-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10519
10520 * builtins.c (do_mpc_arg2): New.
10521 (fold_builtin_2): Fold builtin cpow.
10522 * real.h (HAVE_mpc_pow): New.
10523
10524 2009-07-16 Bingfeng Mei <bmei@broadcom.com>
10525
10526 * modulo-sched.c (sms_schedule): stage_count <= 1 as correct
10527 comparison to skip unprofitable schedule
10528
10529 2009-07-16 Simon Baldwin <simonb@google.com>
10530
10531 * gcc.c (option_map): New flag -no-canonical-prefixes.
10532 * (display_help): Print help text for new flag.
10533 * (process_command): Move options translation and language specifics
10534 and handle new flag early. Use it to set a function pointer to a
10535 prefix builder. Replace make_relative_prefix calls with calls to
10536 the function pointed to. Ignore new flag in regular options handling.
10537 * doc/invoke.texi (Overall Options): Documented -no-canonical-prefixes.
10538
10539 2009-07-15 DJ Delorie <dj@redhat.com>
10540
10541 * config/mep/mep.md (sibcall_internal): Change register to avoid
10542 argument registers.
10543 (sibcall_value_internal): Likewise.
10544
10545 2009-07-15 Eric Botcazou <ebotcazou@adacore.com>
10546
10547 PR rtl-optimization/40710
10548 * resource.c (mark_target_live_regs): Reset DF problem to LR.
10549
10550 2009-07-15 Adam Nemet <anemet@caviumnetworks.com>
10551
10552 * config/mips/mips.md (*extenddi_truncate<mode>,
10553 *extendsi_truncate<mode>): Change type attribute to move_type
10554 with shift_shift. Split out code handling exts from here ...
10555 (*extend<GPR:mode>_truncate<SHORT:mode>_exts): ... to this new
10556 pattern.
10557 (*extendhi_truncateqi): Change type attribute to move_type with
10558 shift_shift. Split out code handling exts from here ...
10559 (*extendhi_truncateqi_exts): ... to this new pattern.
10560
10561 2009-07-15 Uros Bizjak <ubizjak@gmail.com>
10562
10563 * config/i386/sse.md (copysign<mode>3): Use "and-not" SSE instruction
10564 instead of "and" with inverted sign bit mask value. Use
10565 "nonimmediate_operand" for operand 1 and operand 2 predicate.
10566 Allocate registers only for operand 4 and operand 5.
10567
10568 2009-07-15 Jakub Jelinek <jakub@redhat.com>
10569
10570 PR middle-end/40747
10571 * fold-const.c (fold_cond_expr_with_comparison): When folding
10572 < and <= to MIN, make sure the MIN uses the same type as the
10573 comparison's operands.
10574
10575 2009-07-15 Richard Earnshaw <rearnsha@arm.com>
10576
10577 * arm.md (ior_xor): New code iterator.
10578 (split for ior/xor with shift and zero-extend): New split pattern.
10579 * arm/predicates.md (subreg_lowpart_operator): New special predicate.
10580
10581 2009-07-15 Richard Guenther <rguenther@suse.de>
10582
10583 * tree-ssa-structalias.c (make_constraint_from_heapvar): Initialize
10584 offset member.
10585
10586 2009-07-15 Richard Guenther <rguenther@suse.de>
10587
10588 PR middle-end/40753
10589 * alias.c (ao_ref_from_mem): Reject FUNCTION_DECL and LABEL_DECL bases.
10590
10591 2009-07-15 Maxim Kuvyrkov <maxim@codesourcery.com>
10592
10593 * config/m68k/linux-unwind.h (m68k_fallback_frame_state): Update to
10594 handle 2.6.30 kernel.
10595
10596 2009-07-15 DJ Delorie <dj@redhat.com>
10597
10598 * config/mep/mep.md (sibcall_internal): Change register to allow
10599 for 24-bit addresses.
10600 (sibcall_value_internal): Likewise.
10601
10602 2009-07-14 Ghassan Shobaki <ghassan.shobaki@amd.com>
10603
10604 * doc/invoke.texi: Added descriptions of the scheduling heuristics
10605 that are enabled/disabled by the flags introduced by a previous patch.
10606
10607 2009-07-14 DJ Delorie <dj@redhat.com>
10608
10609 * config/mep/mep.md (sibcall_internal): Include non-toggling
10610 non-jmp case.
10611 (sibcall_value_internal): Likewise.
10612
10613 2009-07-14 Taras Glek <tglek@mozilla.com>
10614 Rafael Espindola <espindola@google.com>
10615
10616 * doc/sourcebuild.texi: Document install-plugin target.
10617 * configure.ac: Added install-plugin target to language makefiles.
10618 * configure: Regenerate.
10619 * Makefile.in: (install-plugin): Install more headers,
10620 depend on lang.install-plugin.
10621
10622 2009-07-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
10623
10624 * tree-vrp.c (vrp_evaluate_conditional): Mark strings for
10625 translation.
10626
10627 2009-07-14 DJ Delorie <dj@redhat.com>
10628
10629 * config/mep/mep.c (mep_vliw_jmp_match): New function.
10630 * config/mep/mep-protos.h (mep_vliw_jmp_match): Prototype it.
10631 * config/mep/mep.md (sibcall_internal): Change test from
10632 mep_vliw_mode_match to mep_vliw_jmp_match.
10633 (sibcall_value_internal): Likewise.
10634
10635 2009-07-14 Uros Bizjak <ubizjak@gmail.com>
10636
10637 * config/i386/sse.md (copysign<mode>3): New expander.
10638 * config/i386/i386-protos.h (ix86_build_signbit_mask): New prototype.
10639 * config/i386/i386.c (ix86_build_signbit_mask): Make public.
10640 Use ix86_build_const_vector.
10641 (enum ix86_builtins): Add IX86_BUILTIN_CPYSGNPS and
10642 IX86_BUILTIN_CPYSGNPD.
10643 (builtin_description): Add __builtin_ia32_copysignps and
10644 __builtin_ia32_copysignpd.
10645 (ix86_builtin_vectorized_function): Handle BUILT_IN_COPYSIGN
10646 and BUILT_IN_COPYSIGNF.
10647
10648 2009-07-13 Jason Merrill <jason@redhat.com>
10649
10650 * builtins.c (can_trust_pointer_alignment): New fn.
10651 (get_pointer_alignment): Factor it out from here.
10652 * tree.h: Declare it.
10653
10654 2009-07-14 David Edelsohn <edelsohn@gnu.org>
10655
10656 * config/rs6000/predicates.md (offsettable_mem_operand): Test
10657 RTX_AUTOINC class.
10658
10659 2009-07-14 Dodji Seketeli <dodji@redhat.com>
10660
10661 PR debug/40705
10662 PR c++/403057
10663 * dwarf2.out.c (gen_type_die_with_usage): Added comment.
10664
10665 2009-07-14 Richard Guenther <rguenther@suse.de>
10666 Andrey Belevantsev <abel@ispras.ru>
10667
10668 PR middle-end/40745
10669 * cfgexpand.c (partition_stack_vars): Do not bother to update
10670 alias information when not optimizing.
10671
10672 2009-07-14 Richard Guenther <rguenther@suse.de>
10673 Andrey Belevantsev <abel@ispras.ru>
10674
10675 * tree-ssa-alias.h (refs_may_alias_p_1): Declare.
10676 (pt_solution_set): Likewise.
10677 * tree-ssa-alias.c (refs_may_alias_p_1): Export.
10678 * tree-ssa-structalias.c (pt_solution_set): New function.
10679 * final.c (rest_of_clean_state): Free SSA data structures.
10680 * print-rtl.c (print_decl_name): Remove.
10681 (print_mem_expr): Implement in terms of print_generic_expr.
10682 * alias.c (ao_ref_from_mem): New function.
10683 (rtx_refs_may_alias_p): Likewise.
10684 (true_dependence): Query alias-export info.
10685 (canon_true_dependence): Likewise.
10686 (write_dependence_p): Likewise.
10687 * tree-dfa.c (get_ref_base_and_extent): For void types leave
10688 size unknown.
10689 * emit-rtl.c (component_ref_for_mem_expr): Remove.
10690 (mem_expr_equal_p): Use operand_equal_p.
10691 (set_mem_attributes_minus_bitpos): Do not use
10692 component_ref_for_mem_expr.
10693 * cfgexpand.c (add_partitioned_vars_to_ptset): New function.
10694 (update_alias_info_with_stack_vars): Likewise.
10695 (partition_stack_vars): Call update_alias_info_with_stack_vars.
10696 * tree-ssa.c (delete_tree_ssa): Do not release SSA names
10697 explicitly nor clear stmt operands.
10698 Free the decl-to-pointer map.
10699 * tree-optimize.c (execute_free_datastructures): Do not free
10700 SSA data structures here.
10701 * tree-flow.h (struct gimple_df): Add decls_to_pointers member.
10702 * Makefile.in (emit-rtl.o): Add pointer-set.h dependency.
10703 (alias.o): Add tree-ssa-alias.h, pointer-set.h and $(TREE_FLOW_H)
10704 dependencies.
10705 (print-rtl.o): Add $(DIAGNOSTIC_H) dependency.
10706
10707 2009-07-13 DJ Delorie <dj@redhat.com>
10708
10709 * config/mep/mep.h (CC1_SPEC): Tweak parameters to trigger
10710 unrolling at the right iteration count.
10711
10712 * config/mep/mep.c (mep_expand_prologue): Fix frame pointer
10713 calculations.
10714
10715 2009-07-13 Ghassan Shobaki <ghassan.shobaki@amd.com>
10716
10717 * haifa-sched.c (rank_for_schedule): Introduced flags to
10718 enable/disable individual scheduling heuristics.
10719 * common.opt: Introduced flags to enable/disable individual
10720 heuristics in the scheduler.
10721 * doc/invoke.texi: Introduced flags to enable/disable individual
10722 heuristics in the scheduler.
10723
10724 2009-07-13 Kai Tietz <kai.tietz@onevision.com>
10725
10726 * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Remove file
10727 config/i386/mingw-tls.c.
10728 * config/i386/mingw-tls.c: Removed.
10729
10730 2009-07-13 Ira Rosen <irar@il.ibm.com>
10731
10732 * tree-vect-loop.c (get_initial_def_for_reduction): Ensure that the
10733 checks access only relevant statements.
10734 (vectorizable_reduction): Likewise.
10735
10736 2009-07-12 Kai Tietz <kai.tietz@onevision.com>
10737
10738 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Define _X86_
10739 just for 32-bit case.
10740
10741 2009-07-12 Jan Hubicka <jh@suse.cz>
10742
10743 PR tree-optimization/40585
10744 * except.c (expand_resx_expr): When there already is resume
10745 instruction, produce linked list.
10746 (build_post_landing_pads): Assert that resume is empty.
10747 (connect_post_landing_pads): Handle resume lists.
10748 (dump_eh_tree): Dump resume list.
10749
10750 2009-07-12 Ira Rosen <irar@il.ibm.com>
10751
10752 * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
10753 with additional argument.
10754 * tree-vectorizer.h (enum vect_def_type): Add
10755 vect_double_reduction_def.
10756 (vect_is_simple_reduction): Add argument.
10757 * tree-vect-loop.c (vect_determine_vectorization_factor): Fix
10758 indentation.
10759 (vect_analyze_scalar_cycles_1): Detect double reduction. Call
10760 vect_is_simple_reduction with additional argument.
10761 (vect_analyze_loop_operations): Handle exit phi nodes in case of
10762 double reduction.
10763 (reduction_code_for_scalar_code): Handle additional codes by
10764 returning ERROR_MARK for them. Fix comment and indentation.
10765 (vect_is_simple_reduction): Fix comment, add argument to specify
10766 double reduction. Detect double reduction.
10767 (get_initial_def_for_induction): Fix indentation.
10768 (get_initial_def_for_reduction): Fix comment and indentation.
10769 Handle double reduction. Create initial definitions that do not
10770 require adjustment if ADJUSTMENT_DEF is NULL. Handle additional cases.
10771 (vect_create_epilog_for_reduction): Fix comment, add argument to
10772 handle double reduction. Use PLUS_EXPR in case of MINUS_EXPR in
10773 epilogue result extraction. Create double reduction phi node and
10774 replace relevant uses.
10775 (vectorizable_reduction): Call vect_is_simple_reduction with
10776 additional argument. Fix indentation. Update epilogue code treatment
10777 according to the changes in reduction_code_for_scalar_code. Check
10778 for double reduction. Call vect_create_epilog_for_reduction with
10779 additional argument.
10780 * tree-vect-stmts.c (process_use): Handle double reduction, update
10781 documentation.
10782 (vect_mark_stmts_to_be_vectorized): Handle double reduction.
10783 (vect_get_vec_def_for_operand): Likewise.
10784
10785 2009-07-12 Danny Smith <dansmister@gmail.com>
10786
10787 * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't
10788 dllexport if !TREE_PUBLIC.
10789 (i386_pe_maybe_record_exported_symbol): Assert TREE_PUBLIC.
10790
10791 2009-07-11 Anatoly Sokolov <aesok@post.ru>
10792
10793 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Redefine.
10794 (avr_extra_arch_macro) Remove declatation.
10795 * config/avr/avr.c (avr_cpu_cpp_builtins): New function.
10796 (avr_extra_arch_macro) Declare as static.
10797 * config/avr/avr-protos.h (avr_cpu_cpp_builtins): Dclare.
10798
10799 2009-07-11 Jan Hubicka <jh@suse.cz>
10800
10801 PR middle-end/48388
10802 * except.c (can_be_reached_by_runtime): Test for NULL aka bitmap.
10803
10804 2009-07-11 Jakub Jelinek <jakub@redhat.com>
10805
10806 PR debug/40713
10807 * dwarf2out.c (dw_fde_struct): Add in_std_section and
10808 cold_in_std_section bits.
10809 (dwarf2out_begin_prologue): Initialize them.
10810 (dwarf2out_finish): Don't emit FDE range into .debug_ranges
10811 if already covered by text_section or cold_text_section range.
10812
10813 PR rtl-optimization/40667
10814 * defaults.h (MINIMUM_ALIGNMENT): Define if not defined.
10815 * doc/tm.texi (MINIMUM_ALIGNMENT): Document it.
10816 * config/i386/i386.h (MINIMUM_ALIGNMENT): Define.
10817 * config/i386/i386.c (ix86_minimum_alignment): New function.
10818 * config/i386/i386-protos.h (ix86_minimum_alignment): New prototype.
10819 * cfgexpand.c (expand_one_var): Use MINIMIM_ALIGNMENT.
10820 * emit-rtl.c (gen_reg_rtx): Likewise.
10821 * function.c (assign_parms): Likewise. If nominal_type needs
10822 bigger alignment than FUNCTION_ARG_BOUNDARY, use its alignment
10823 rather than passed_type's alignment.
10824
10825 PR target/40668
10826 * function.c (assign_parm_setup_stack): Adjust
10827 MEM_OFFSET (data->stack_parm) if promoted_mode is different
10828 from nominal_mode on big endian.
10829
10830 2009-07-11 Paolo Bonzini <bonzini@gnu.org>
10831
10832 * expmed.c (emit_store_flag_1): Fix choice of zero vs. sign extension.
10833
10834 2009-07-10 DJ Delorie <dj@redhat.com>
10835
10836 * config/mep/mep.c (mep_can_inline_p): Correct logic, and simplify.
10837
10838 2009-07-10 Mark Mitchell <mark@codesourcery.com>
10839
10840 * config/arm/thumb2.md (thumb2_cbz): Correct computation of length
10841 attribute.
10842 (thumb2_cbnz): Likewise.
10843
10844 2009-07-10 David Daney <ddaney@caviumnetworks.com>
10845
10846 PR target/39079
10847 * config.gcc (supported_defaults): Add synci.
10848 (with_synci): Add validation.
10849 (all_defaults): Add synci.
10850 * config/mips/mips.md (clear_cache): Use TARGET_SYNCI instead of
10851 ISA_HAS_SYNCI.
10852 (synci): Same.
10853 * config/mips/mips.opt (msynci): New option.
10854 * config/mips/mips.c (mips_override_options): Warn on use of
10855 -msynci for targets that do now support it.
10856 * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
10857 msynci.
10858 * gcc/doc/invoke.texi (-msynci): Document the new option.
10859 * doc/install.texi (--with-synci): Document the new option.
10860
10861 2009-07-10 Richard Guenther <rguenther@suse.de>
10862
10863 PR tree-optimization/40496
10864 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Create
10865 the PHI result with a compatible type.
10866
10867 2009-07-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
10868
10869 PR 25509
10870 PR 40614
10871 * c.opt (Wunused-result): New.
10872 * doc/invoke.texi: Document it.
10873 * c-common.c (c_warn_unused_result): Use it.
10874
10875 2009-07-09 DJ Delorie <dj@redhat.com>
10876
10877 * targhooks.c (default_target_can_inline_p): Rename from
10878 default_target_option_can_inline_p.
10879 * targhooks.h (default_target_can_inline_p): Likewise.
10880 * target-def.h (TARGET_CAN_INLINE_P): Rename from
10881 TARGET_OPTION_CAN_INLINE_P.
10882 * config/i386/i386.c (TARGET_CAN_INLINE_P): Likewise.
10883 * config/mep/mep.c (TARGET_CAN_INLINE_P): Likewise.
10884 (mep_target_can_inline_p): Rename from
10885 mep_target_option_can_inline_p.
10886
10887 PR target/40626
10888 * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Add coprocessor
10889 registers used to pass vectors.
10890
10891 * config/mep/mep.c (mep_option_can_inline_p): Remove error call.
10892
10893 2009-07-09 Tom Tromey <tromey@redhat.com>
10894
10895 * unwind-dw2-fde-darwin.c: Include dwarf2.h.
10896 * config/mmix/mmix.c: Include dwarf2.h.
10897 * config/rs6000/darwin-fallback.c: Include dwarf2.h.
10898 * config/xtensa/unwind-dw2-xtensa.c: Include dwarf2.h.
10899 * config/sh/sh.c: Include dwarf2.h.
10900 * config/i386/i386.c: Include dwarf2.h.
10901 * Makefile.in (DWARF2_H): Remove 'elf'.
10902 * except.c: Include dwarf2.h.
10903 * unwind-dw2.c: Include dwarf2.h.
10904 * dwarf2out.c: Include dwarf2.h.
10905 * unwind-dw2-fde-glibc.c: Include dwarf2.h.
10906 * unwind-dw2-fde.c: Include dwarf2.h.
10907 * dwarf2asm.c: Include dwarf2.h.
10908
10909 2009-07-09 Maxim Kuvyrkov <maxim@codesourcery.com>
10910
10911 * haifa-sched.c (insn_finishes_cycle_p): New static function.
10912 (max_issue): Use it.
10913 * sched-int.h (struct sched_info: insn_finishes_block_p): New
10914 scheduler hook.
10915 * sched-rgn.c (rgn_insn_finishes_block_p): Implement it.
10916 (region_sched_info): Update.
10917 * sched-ebb.c (ebb_sched_info): Update.
10918 * modulo-sched.c (sms_sched_info): Update.
10919 * sel-sched-ir.c (sched_sel_haifa_sched_info): Update.
10920
10921 2009-07-09 Maxim Kuvyrkov <maxim@codesourcery.com>
10922
10923 * varasm.c (build_constant_desc): Don't share RTL in pool entries.
10924
10925 2009-07-09 Basile Starynkevitch <basile@starynkevitch.net>
10926
10927 * plugin.c (try_init_one_plugin): passes RTLD_GLOBAL to dlopen.
10928
10929 2009-07-09 Jakub Jelinek <jakub@redhat.com>
10930
10931 PR middle-end/40692
10932 * fold-const.c (fold_cond_expr_with_comparison): Don't replace
10933 arg1 with arg01 if arg1 is already INTEGER_CST.
10934
10935 2009-07-08 Adam Nemet <anemet@caviumnetworks.com>
10936
10937 * simplify-rtx.c (simplify_binary_operation_1) <AND>:
10938 Transform (and (truncate)) into (truncate (and)).
10939
10940 2009-07-08 Adam Nemet <anemet@caviumnetworks.com>
10941
10942 * combine.c (make_extraction): Check TRULY_NOOP_TRUNCATION before
10943 creating LHS paradoxical subregs. Fix surrounding returns to
10944 use NULL_RTX rather than 0.
10945
10946 2009-07-08 DJ Delorie <dj@redhat.com>
10947
10948 * config/mep/mep.c: (mep_option_can_inline_p): New.
10949 (TARGET_OPTION_CAN_INLINE_P): Define.
10950
10951 2009-07-08 Mark Wielaard <mjw@redhat.com>
10952
10953 PR debug/40659
10954 * dwarf2out.c (add_data_member_location_attribute): When we have
10955 only a constant offset don't emit a new location description using
10956 DW_OP_plus_uconst, but just add the constant with add_AT_int, when
10957 dwarf_version > 2.
10958
10959 2009-07-08 Richard Henderson <rth@redhat.com>
10960
10961 PR target/38900
10962 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move to i386.c.
10963 (enum reg_class): Add CLOBBERED_REGS.
10964 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Likewise.
10965 * config/i386/i386.c (ix86_conditional_register_usage): Moved
10966 from CONDITIONAL_REGISTER_USAGE; build CLOBBERED_REGS for 64-bit.
10967 (ix86_function_ok_for_sibcall): Tidy. Disallow MS->SYSV sibcalls.
10968 (ix86_expand_call): Use sibcall_insn_operand when needed. Don't
10969 force 64-bit sibcalls into R11.
10970 * config/i386/constraints.md (U): New constraint.
10971 * config/i386/i386.md (sibcall_1, sibcall_value_1): Use it.
10972 (sibcall_1_rex64, sibcall_value_1_rex64): Likewise.
10973 (sibcall_1_rex64_v, sibcall_value_1_rex64_v): Remove.
10974
10975 2009-07-08 Shujing Zhao <pearly.zhao@oracle.com>
10976
10977 * basic-block.h (dump_regset, debug_regset): Remove duplicate
10978 prototypes.
10979 * c-objc-common.h (c_initialize_diagnostics): Ditto.
10980 * ebitmap.h (dump_ebitmap): Ditto.
10981 * optabs.h (optab_libfunc): Ditto.
10982 * tree.h (tree_expr_nonzero_warnv_p): Ditto.
10983 * tree-flow.h (vect_can_force_dr_alignment_p,
10984 get_vectype_for_scalar_type): Ditto.
10985 (vectorize_loops): Move prototype to ...
10986 * tree-vectorizer.h: ... here. Also, adjust comment.
10987 (vect_set_verbosity_level): Remove duplicate prototype.
10988 * tree-ssa-loop.c: Include tree-vectorizer.h.
10989 * Makefile.in (tree-ssa-loop.o): Depend on tree-vectorizer.h.
10990
10991 2009-07-08 Nick Clifton <nickc@redhat.com>
10992
10993 * config/i386/unix.h (ASM_COMMENT_START): Add a space after the
10994 forward slash.
10995
10996 2009-07-08 DJ Delorie <dj@redhat.com>
10997
10998 * config/mep/mep-ivc2.cpu (cpmovtocsar0_C3, cpmovtocsar1_C3,
10999 cpmovtocc_C3, cpmovtocsar0_P0S_P1, cpmovtocsar1_P0S_P1,
11000 cpmovtocc_P0S_P1): Mark volatile. Note which registers are
11001 written to.
11002 * config/mep/intrinsics.md: Regenerated.
11003 * config/mep/mep.c (mep_interrupt_saved_reg): Save IVC2 control
11004 registers when asm() or calls are detected.
11005
11006 2009-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
11007
11008 PR c++/31246
11009 * gimplify.c (gimplify_expr): Propagate no_warning flag when
11010 gimplifying.
11011 * gimple (gimple_build_call_from_tree): Likewise.
11012 * tree-cfg.c (remove_useless_stmts_warn_notreached): Check
11013 no_warning flag before warning.
11014
11015 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
11016
11017 * tree.c (set_expr_locus): Remove.
11018 * tree.h (EXPR_LOCUS,SET_EXPR_LOCUS,set_expr_locus): Remove.
11019 * c-typeck.c (c_finish_stmt_expr): Replace EXPR_LOCUS by
11020 EXPR_LOCATION.
11021 * gimplify.c (internal_get_tmp_var): Likewise.
11022 (gimplify_call_expr): Likewise.
11023 (gimplify_one_sizepos): Likewise.
11024
11025 2009-07-07 Eric Botcazou <ebotcazou@adacore.com>
11026
11027 PR debug/40666
11028 * dbxout.c (dbxout_symbol) <PARM_DECL>: Deal with parameters pointing
11029 to variables for debugging purposes.
11030
11031 2009-06-23 Mark Loeser <mark@halcy0n.com>
11032
11033 PR build/40010
11034 * Makefile.in (gcc.pod): Depend on gcc-vers.texi.
11035
11036 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
11037
11038 * pretty-print.c (pp_base_format): Remove %J.
11039 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
11040 gcc_cxxdiag_char_table): Likewise.
11041 (init_dynamic_diag_info): Likewise.
11042
11043 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
11044
11045 * pretty-print.c (pp_base_format): Remove %H.
11046 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
11047 gcc_cxxdiag_char_table): Likewise.
11048 (init_dynamic_diag_info): Likewise.
11049 * config/mep/mep.c (mep_select_section): Likewise.
11050
11051 2009-07-07 Duncan Sands <baldrick@free.fr>
11052
11053 * final.c (pass_clean_state): Give the pass a name.
11054 * passes.c (pass_rest_of_compilation): Likewise.
11055 * tree-optimize.c (pass_all_optimizations): Likewise.
11056
11057 2009-07-07 H.J. Lu <hongjiu.lu@intel.com>
11058
11059 * config/ia64/ia64.c (ia64_handle_model_attribute): Remove
11060 an extra 'decl' for error_at.
11061
11062 2009-07-07 Jakub Jelinek <jakub@redhat.com>
11063
11064 PR middle-end/40669
11065 * tree-tailcall.c (adjust_return_value_with_ops,
11066 create_tailcall_accumulator): Set DECL_GIMPLE_REG_P on the temporary
11067 if it has complex or vector type.
11068
11069 2009-07-07 Olivier Hainque <hainque@adacore.com>
11070
11071 * config/alpha/t-osf4 (SHLIB_LINK): Do not hide the dummy weak
11072 pthread symbols.
11073
11074 2009-07-07 Basile Starynkevitch <basile@starynkevitch.net>
11075
11076 * Makefile.in: added more lists of includes to PLUGIN_HEADERS.
11077
11078 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
11079
11080 * cgraphunit.c: Replace %J by an explicit location. Update all calls.
11081 * c-decl.c: Likewise.
11082 * function.c: Likewise.
11083 * varasm.c: Likewise.
11084 * tree-ssa.c: Likewise.
11085 * c-common.c: Likewise.
11086 * tree-cfg.c: Likewise.
11087 * config/spu/spu.c: Likewise.
11088 * config/ia64/ia64.c: Likewise.
11089 * config/v850/v850.c: Likewise.
11090
11091 2009-07-06 DJ Delorie <dj@redhat.com>
11092
11093 * config/mep/mep-core.cpu (fsft, ssarb): Mark as VOLATILE.
11094 * config/mep/mep-ivc2.cpu (many): Add VOLATILE to more insns that make
11095 unspecified accesses to control registers.
11096 * config/mep/intrinsics.md: Regenerate.
11097 * config/mep/intrinsics.h: Regenerate.
11098 * config/mep/mep-intrin.h: Regenerate.
11099
11100 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
11101
11102 * c-lex.c: Replace %H by an explicit location. Update all calls.
11103 * c-common.c: Likewise.
11104 * c-decl.c: Likewise.
11105 * c-typeck.c: Likewise.
11106 * fold-const.c: Likewise.
11107 * gimplify.c: Likewise.
11108 * stmt.c: Likewise.
11109 * tree-cfg.c: Likewise.
11110 * tree-ssa-loop-niter.c: Likewise.
11111 * tree-vrp.c: Likewise.
11112 * value-prof.c: Likewise.
11113
11114 2009-07-06 Diego Novillo <dnovillo@google.com>
11115
11116 * tree-dfa.c (dump_variable): Write DECL_INITIAL for VAR
11117 if it has one. Handle cases where VAR does not have an
11118 annotation or cfun is NULL.
11119
11120 2009-07-06 Diego Novillo <dnovillo@google.com>
11121
11122 * tree.c: Include debug.h.
11123 (initialize_tree_contains_struct): New.
11124 (init_ttree): Call it.
11125 (tree_node_structure_for_code): Factor out of ...
11126 (tree_node_structure): ... here.
11127 * treestruct.def (TS_PHI_NODE): Remove.
11128 (TS_GIMPLE_STATEMENT): Remove.
11129
11130 2009-07-06 Diego Novillo <dnovillo@google.com>
11131
11132 * tree-pretty-print.c (dump_generic_node): Protect against NULL op0.
11133 (debug_tree_chain): Handle cycles.
11134
11135 2009-07-06 Nick Clifton <nickc@redhat.com>
11136 DJ Delorie <dj@redhat.com>
11137
11138 * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
11139 __FMOVD_ENABLED__ is defined.
11140 * config/sh/sh.h
11141 (TARGET_FMOVD): Provide a default definition.
11142 (MASK_FMOVD): Likewise.
11143 (TARGET_CPU_CPP_BUILTINS): Define
11144 __FMOVD_ENABLED__ if TARGET_FMOVD is true.
11145 * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
11146 two fmov instructions depending upon whether TARGET_FMOVD is enabled.
11147 (split for DF load from memory into register): Also handle
11148 MEMs which consist of REG+DISP addressing.
11149 (split for DF store from register to memory): Likewise.
11150 (movsf_ie): Always use single fp_mode.
11151 * config/sh/sh.c (sh_override_options): Do not automatically
11152 enable TARGET_MOVD for the SH2A when supporting doubles - leave
11153 that to the -mfmovd command line switch.
11154 (broken_move): Do not restrict fldi test to only the SH4 and SH4A.
11155 (fldi_ok): Always allow.
11156 * config/sh/sh.opt (mfmovd): Remove this switch.
11157 * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
11158
11159 2009-07-06 J"orn Rennecke <joern.rennecke@arc.com>
11160 Kaz Kojima <kkojima@gcc.gnu.org>
11161
11162 PR rtl-optimization/30807
11163 * postreload.c (reload_combine): For every new use of REG_SUM,
11164 record the use of BASE.
11165
11166 2009-07-06 Jan Hubicka <jh@suse.cz>
11167
11168 * params.def: Revert my accidental commit at 2009-06-30.
11169
11170 2009-07-04 Ian Lance Taylor <iant@google.com>
11171
11172 PR target/40636
11173 * config/i386/msformat-c.c (mingw_format_attributes): Declare as
11174 EXPORTED_CONST.
11175 (mingw_format_attribute_overrides): Likewise.
11176
11177 2009-07-04 Jakub Jelinek <jakub@redhat.com>
11178
11179 PR debug/40596
11180 * dwarf2out.c (based_loc_descr): For crtl->stack_realign_tried
11181 don't check cfa.reg. Instead of cfa.indirect use
11182 fde && fde->drap_reg != INVALID_REGNUM test.
11183
11184 2009-07-04 Eric Botcazou <ebotcazou@adacore.com>
11185
11186 * postreload.c (reload_combine): Replace CONST_REG with INDEX_REG.
11187
11188 2009-07-03 Vladimir Makarov <vmakarov@redhat.com>
11189
11190 PR target/40587
11191 * ira.c (build_insn_chain): Use DF_LR_OUT instead of df_get_live_out.
11192
11193 2009-07-03 Richard Guenther <rguenther@suse.de>
11194
11195 PR tree-optimization/40640
11196 * tree-switch-conversion.c (build_arrays): Perform arithmetic
11197 in original type.
11198
11199 2009-07-03 Jan Hubicka <jh@suse.cz>
11200
11201 * ipa-inline.c (cgraph_decide_inlining_incrementally): When optimizing
11202 for size, reduce amount of inlining.
11203
11204 2009-07-03 Richard Guenther <rguenther@suse.de>
11205
11206 PR middle-end/34163
11207 * tree-chrec.c (chrec_convert_1): Fold (T2)(t +- x) to (T2)t +- (T2)x
11208 if t +- x is known to not overflow and the conversion widens the
11209 operation.
11210 * Makefile.in (tree-chrec.o): Add $(FLAGS_H) dependency.
11211
11212 2009-07-03 Jan Hubicka <jh@suse.cz>
11213
11214 * ipa-pure-const.c (analyze): Update loop optimizer init.
11215 * tree-ssa-loop-iv-canon.c (empty_loop_p, remove_empty_loop,
11216 try_remove_empty_loop, remove_empty_loops): Remove.
11217 * tree-ssa-loop.c (tree_ssa_empty_loop, pass_empty_loop): Remove.
11218 * tree-ssa-dce.c (find_obviously_necessary_stmts): Use finiteness info
11219 to mark regular loops as neccesary.
11220 (degenerate_phi_p): New function.
11221 (propagate_necessity, remove_dead_phis): Use it.
11222 (forward_edge_to_pdom): Likewise.
11223 (eliminate_unnecessary_stmts): Take care to remove uses of results of
11224 virtual PHI nodes that became unreachable.
11225 (perform_tree_ssa_dce): Initialize/deinitialize loop optimizer.
11226 * tree-flow.h (remove_empty_loops): Remove.
11227 * passes.c (init_optimization_passes): Remove.
11228
11229 2009-07-03 Uros Bizjak <ubizjak@gmail.com>
11230
11231 * config/i386/i386.md (fix_trunc<mode>_fisttp_i387_1): Use
11232 can_create_pseudo_p.
11233 (*fix_trunc<mode>_i387_1): Ditto.
11234 (*floathi<mode>2_1): Ditto.
11235 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): Ditto.
11236 (*fistdi2_1): Ditto.
11237 (*fist<mode>2_1): Ditto.
11238 (frndintxf2_floor): Ditto.
11239 (*fist<mode>2_floor_1): Ditto.
11240 (frndintxf2_ceil): Ditto.
11241 (*fist<mode>2_ceil_1): Ditto.
11242 (frndintxf2_trunc): Ditto.
11243 (frndintxf2_mask_pm): Ditto.
11244 (fxam<mode>2_i387_with_temp): Ditto.
11245 * config/i386/sse.md (mulv16qi3): Ditto.
11246 (*sse2_mulv4si3): Ditto.
11247 (mulv2di3): Ditto.
11248 (sse4_2_pcmpestr): Ditto.
11249 (sse4_2_pcmpistr): Ditto.
11250
11251 2009-07-03 Jan Hubicka <jh@suse.cz>
11252
11253 * tree-ssa-dce.c (bb_contains_live_stmts): New bitmap.
11254 (mark_stmt_necessary): Set it.
11255 (mark_operand_necessary): Set it.
11256 (mark_control_dependent_edges_necessary): Set it.
11257 (mark_virtual_phi_result_for_renaming): New function.
11258 (get_live_post_dom): New function.
11259 (forward_edge_to_pdom): New function.
11260 (remove_dead_stmt): Fix handling of control dependences.
11261 (tree_dce_init): Init new bitmap.
11262 (tree_dce_done): Free it.
11263
11264 2009-07-02 Richard Guenther <rguenther@suse.de>
11265
11266 PR bootstrap/40617
11267 * tree-ssa-structalias.c (new_var_info): Initialize
11268 is_restrict_var.
11269
11270 2009-07-02 Jan Hubicka <jh@suse.cz>
11271
11272 * ipa-pure-const.c (check_op): Use PTA info to see if indirect_ref is
11273 local.
11274
11275 2009-07-02 Paolo Bonzini <bonzini@gnu.org>
11276
11277 * expmed.c (emit_cstore, emit_store_flag_1): Accept target_mode
11278 instead of recomputing it. Adjust calls.
11279 (emit_store_flag): Adjust recursive calls.
11280
11281 2009-07-02 Richard Guenther <rguenther@suse.de>
11282
11283 * tree-ssa-live.c (remove_unused_locals): Do not remove
11284 heap variables.
11285 * tree-ssa-structalias.c (handle_lhs_call): Delay setting
11286 of DECL_EXTERNAL for HEAP variables.
11287 (compute_points_to_sets): Set DECL_EXTERNAL for escaped
11288 HEAP variables. Do not adjust RESTRICT vars.
11289 (find_what_var_points_to): Nobody cares if something
11290 points to READONLY.
11291
11292 2009-07-02 Ben Elliston <bje@au.ibm.com>
11293
11294 * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Move
11295 pc_low and pc_high declarations to the top of the function.
11296
11297 2009-07-01 DJ Delorie <dj@redhat.com>
11298
11299 * config/mep/mep.c (mep_handle_option): Leave IVC2 control
11300 registers as fixed.
11301 (mep_interrupt_saved_reg): Save appropriate IVC2 control registers.
11302 * config/mep/mep-ivc2.cpu: Add VOLATILE to insns that make
11303 unspecified accesses to control registers.
11304 * config/mep/intrinsics.md: Regenerate.
11305 * config/mep/intrinsics.h: Regenerate.
11306 * config/mep/mep-intrin.h: Regenerate.
11307
11308 2009-07-01 Anthony Green <green@moxielogic.com>
11309
11310 * config/moxie/moxie.c (moxie_expand_prologue): Use dec
11311 instruction when possible.
11312 (moxie_expand_prologue): Ditto. Also, save an instruction and
11313 some complexity by popping off of $r12 instead of $sp.
11314 * config/moxie/moxie.md (movsi_pop): Don't assume $sp. Take two
11315 operands.
11316
11317 2009-07-01 Richard Henderson <rth@redhat.com>
11318
11319 PR bootstrap/40347
11320 * function.c (reposition_prologue_and_epilogue_notes): If epilogue
11321 contained no insns, reposition note before last insn.
11322
11323 2009-07-01 Richard Henderson <rth@redhat.com>
11324
11325 PR debug/40431
11326 * dwarf2out.c (def_cfa_1): Revert 2009-06-11 change for
11327 DW_CFA_def_cfa_offset and DW_CFA_def_cfa.
11328
11329 2009-07-01 Michael Meissner <meissner@linux.vnet.ibm.com>
11330
11331 PR bootstrap/40558
11332 * config/rs6000/rs6000.c (print_operand): Undo change that breaks
11333 darwin9 for printing reg addresses with %y.
11334
11335 2009-07-01 Adam Nemet <anemet@caviumnetworks.com>
11336
11337 * combine.c (force_to_mode): Handle TRUNCATE. Factor out
11338 truncation from operands in binary operations.
11339
11340 2009-07-01 Adam Nemet <anemet@caviumnetworks.com>
11341
11342 Revert:
11343 2009-01-11 Adam Nemet <anemet@caviumnetworks.com>
11344 * expmed.c (store_bit_field_1): Properly truncate the paradoxical
11345 subreg of op0 to the original op0.
11346
11347 * expmed.c (store_bit_field_1): Use a temporary as the destination
11348 instead of a paradoxical subreg when we need to truncate the result.
11349
11350 2009-07-01 DJ Delorie <dj@redhat.com>
11351
11352 * config/mep/mep-ivc2.cpu (cmov, cmovc, cmovh): Add intrinsic
11353 names to VLIW variants.
11354 (ivc2rm, ivc2crn): Make data type consistent with non-VLIW variants.
11355 * config/mep/intrinsics.md: Regenerate.
11356 * config/mep/intrinsics.h: Regenerate.
11357 * config/mep/mep-intrin.h: Regenerate.
11358
11359 2009-07-01 Jakub Jelinek <jakub@redhat.com>
11360
11361 PR debug/40462
11362 * jump.c (returnjump_p): Revert last patch.
11363 * dwarf2out.c (dwarf2out_begin_epilogue): Handle SEQUENCEs.
11364
11365 2009-07-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11366
11367 PR target/40575
11368 * pa.md (casesi32p): Use jump table label to determine the offset
11369 of the jump table.
11370 (casesi64p): Likewise.
11371
11372 * pa.c (forward_branch_p): Return bool type. Use instruction
11373 addresses when available. Assert that INSN has a jump label.
11374 (pa_adjust_insn_length): Don't call forward_branch_p if INSN doesn't
11375 have a jump label.
11376
11377 2009-07-01 Richard Guenther <rguenther@suse.de>
11378
11379 PR tree-optimization/19831
11380 * tree-ssa-dce.c (propagate_necessity): Calls to functions
11381 that only act as barriers do not make any previous stores necessary.
11382 * tree-ssa-structalias.c (handle_lhs_call): Delay making
11383 HEAP variables global, do not add a constraint from nonlocal.
11384 (find_func_aliases): Handle escapes through return statements.
11385 (compute_points_to_sets): Make escaped HEAP variables global.
11386
11387 2009-07-01 Paolo Bonzini <bonzini@gnu.org>
11388
11389 PR bootstrap/40597
11390 * expmed.c (emit_store_flag): Perform a conversion if necessary,
11391 after reducing a DImode cstore to SImode.
11392
11393 2009-07-01 Paolo Bonzini <bonzini@gnu.org>
11394
11395 * expr.c (expand_expr_real_1): Reinstate fallthrough to
11396 TRUTH_ANDIF_EXPR if do_store_flag returns NULL.
11397
11398 2009-07-01 Maciej W. Rozycki <macro@linux-mips.org>
11399
11400 * config/vax/vax.h (TARGET_BSD_DIVMOD): New macro. Set to 1.
11401 * config/vax/linux.h (TARGET_BSD_DIVMOD): New macro. Redefine the
11402 to 0.
11403 * config/vax/vax.c (vax_init_libfuncs): Only redefine udiv_optab
11404 and umod_optab if TARGET_BSD_DIVMOD.
11405 * config/vax/lib1funcs.asm: New file.
11406 * config/vax/t-linux: New file.
11407 * config.gcc (vax-*-linux*): Set tmake_file to vax/t-linux.
11408
11409 2009-06-30 Jakub Jelinek <jakub@redhat.com>
11410
11411 PR c++/40566
11412 * convert.c (convert_to_integer) <case COND_EXPR>: Don't convert
11413 to type arguments that have void type.
11414
11415 PR debug/40573
11416 * dwarf2out.c (gen_formal_parameter_die): Call
11417 equate_decl_number_to_die if node is different from origin.
11418
11419 2009-06-30 Anthony Green <green@moxielogic.com>
11420
11421 Clean up moxie port for --enable-build-with-cxx.
11422 * config/moxie/moxie.c (moxie_function_value): First two
11423 parameters are const_tree, not tree.
11424 * config/moxie/moxie.h (enum reg_class): Rename CC_REG to CC_REGS.
11425 (REG_CLASS_NAMES): Ditto.
11426 (REGNO_REG_CLASS): Ditto.
11427 * config/moxie/moxie-protos.h (moxie_override_options): Declare.
11428 (moxie_function_value): Fix constyness of arguments.
11429
11430 2009-06-30 Eric Botcazou <ebotcazou@adacore.com>
11431
11432 * cgraphunit.c (cgraph_finalize_compilation_unit): Call
11433 finalize_size_functions before further processing.
11434 * stor-layout.c: Include cgraph.h, tree-inline.h and tree-dump.h.
11435 (variable_size): Call self_referential_size on size expressions
11436 that contain a PLACEHOLDER_EXPR.
11437 (size_functions): New static variable.
11438 (copy_self_referential_tree_r): New static function.
11439 (self_referential_size): Likewise.
11440 (finalize_size_functions): New global function.
11441 * tree.c: Include tree-inline.h.
11442 (push_without_duplicates): New static function.
11443 (find_placeholder_in_expr): New global function.
11444 (substitute_in_expr) <tcc_declaration>: Return the replacement object
11445 on equality.
11446 <tcc_expression>: Likewise.
11447 <tcc_vl_exp>: If the replacement object is a constant, try to inline
11448 the call in the expression.
11449 * tree.h (finalize_size_functions): Declare.
11450 (find_placeholder_in_expr): Likewise.
11451 (FIND_PLACEHOLDER_IN_EXPR): New macro.
11452 (substitute_placeholder_in_expr): Update comment.
11453 * tree-inline.c (remap_decl): Do not unshare trees if do_not_unshare
11454 is true.
11455 (copy_tree_body_r): Likewise.
11456 (copy_tree_body): New static function.
11457 (maybe_inline_call_in_expr): New global function.
11458 * tree-inline.h (struct copy_body_data): Add do_not_unshare field.
11459 (maybe_inline_call_in_expr): Declare.
11460 * Makefile.in (tree.o): Depend on TREE_INLINE_H.
11461 (stor-layout.o): Depend on CGRAPH_H, TREE_INLINE_H, TREE_DUMP_H and
11462 GIMPLE_H.
11463
11464 2009-06-30 Richard Guenther <rguenther@suse.de>
11465
11466 * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Always
11467 continue walking.
11468 (propagate_necessity): Do not mark reaching defs of stores
11469 as necessary.
11470
11471 2009-06-30 Jan Hubicka <jh@suse.cz>
11472
11473 * cfgloopanal.c (check_irred): Move into ...
11474 (mark_irreducible_loops): ... here; return true if ireducible
11475 loops was found.
11476 * ipa-pure-const.c: Include cfgloop.h and tree-scalar-evolution.h
11477 (analyze_function): Try to prove loop finiteness.
11478 * cfgloop.h (mark_irreducible_loops): Update prototype.
11479 * Makefile.in (ipa-pure-const.o): Add dependency on SCEV and CFGLOOP.
11480
11481 2009-06-30 Basile Starynkevitch <basile@starynkevitch.net>
11482
11483 * Makefile.in (PLUGIN_HEADERS): added ggc, tree-dump, pretty-print.
11484
11485 2009-06-30 Ira Rosen <irar@il.ibm.com>
11486
11487 PR tree-optimization/40542
11488 * tree-vect-stmts.c (vect_analyze_stmt): Don't vectorize volatile
11489 types.
11490
11491 2009-06-30 Martin Jambor <mjambor@suse.cz>
11492
11493 PR tree-optimization/40582
11494 * tree-sra.c (build_ref_for_offset_1): Use types_compatible_p rather
11495 than useless_type_conversion_p.
11496 (generate_subtree_copies): Increment sra_stats.subtree_copies at a
11497 proper place.
11498
11499 2009-06-30 Martin Jambor <mjambor@suse.cz>
11500
11501 PR middle-end/40554
11502 * tree-sra.c (sra_modify_expr): Add access->offset to start_offset.
11503
11504 2009-06-30 Richard Guenther <rguenther@suse.de>
11505
11506 * tree-ssa-alias.c (walk_aliased_vdefs_1): Change interface to
11507 use ao_ref references.
11508 (walk_aliased_vdefs): Likewise.
11509 * tree-ssa-alias.h (walk_aliased_vdefs): Adjust prototype.
11510 * tree-ssa-dce.c (struct ref_data): Remove.
11511 (mark_aliased_reaching_defs_necessary_1): Use the ao_ref argument.
11512 (mark_aliased_reaching_defs_necessary): Adjust.
11513 (mark_all_reaching_defs_necessary_1): Likewise.
11514
11515 2009-06-30 Paolo Bonzini <bonzini@gnu.org>
11516
11517 PR boostrap/40597
11518 * expmed.c (emit_cstore): New name of emit_store_flag_1.
11519 (emit_store_flag_1): Extract from emit_store_flag, adjust
11520 calls to (what now is) emit_cstore.
11521 (emit_store_flag): Call emit_store_flag_1 and also use it
11522 for what used to be recursive calls.
11523
11524 2009-06-30 Wei Guozhi <carrot@google.com>
11525
11526 PR/40416
11527 * tree-ssa-sink.c (statement_sink_location): Stop sinking expression
11528 if the target bb post dominates from bb.
11529 * config/i386/i386.c (memory_address_length): Check existence of base
11530 register before using it.
11531
11532 2009-06-30 Nick Clifton <nickc@redhat.com>
11533 DJ Delorie <dj@redhat.com>
11534
11535 * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
11536 __FMOVD_ENABLED__ is defined.
11537 * config/sh/sh.h
11538 (TARGET_FMOVD): Provide a default definition.
11539 (MASK_FMOVD): Likewise.
11540 (TARGET_CPU_CPP_BUILTINS): Define
11541 __FMOVD_ENABLED__ if TARGET_FMOVD is true.
11542 * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
11543 two fmov instructions depending upon whether TARGET_FMOVD is
11544 enabled.
11545 (split for DF load from memory into register): Also handle
11546 MEMs which consist of REG+DISP addressing.
11547 (split for DF store from register to memory): Likewise.
11548 * config/sh/sh.opt (mfmovd): Remove this switch.
11549 * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
11550 * config/sh/sh.c (sh_override_options): Do not automatically
11551 enable TARGET_MOVD for the SH2A when supporting doubles - leave
11552 that to the -mfmovd command line switch.
11553
11554 * config/sh/sh.c (broken_move): Do not restrict fldi test to only
11555 the SH4 and SH4A.
11556 (fldi_ok): Always allow.
11557 * config/sh/sh.md (movsf_ie): Always use single fp_mode.
11558
11559 2009-06-29 DJ Delorie <dj@redhat.com>
11560
11561 * doc/install.texi (mep-x-elf): Correct chip's full name.
11562
11563 2009-06-29 H.J. Lu <hongjiu.lu@intel.com>
11564
11565 * doc/extend.texi: Fix typo.
11566
11567 2009-06-29 Tom Tromey <tromey@redhat.com>
11568
11569 * dwarf2.h: Remove.
11570 * Makefile.in (DWARF2_H): New variable.
11571 (except.o): Use it.
11572 (dwarf2out.o): Likewise.
11573 (dwarf2asm.o): Likewise.
11574 * config/i386/t-i386: Use DWARF2_H.
11575 * except.c: Include elf/dwarf2.h.
11576 * unwind-dw2.c: Include elf/dwarf2.h.
11577 * dwarf2out.c: Include elf/dwarf2.h.
11578 (dw_loc_descr_struct) <dw_loc_opc>: Now a bitfield.
11579 <dtprel>: New field.
11580 (dwarf_stack_op_name): Don't handle INTERNAL_DW_OP_tls_addr.
11581 (size_of_loc_descr): Likewise.
11582 (output_loc_operands_raw): Likewise.
11583 (output_loc_operands): Handle new dtprel field.
11584 (loc_checksum): Update.
11585 (loc_descriptor_from_tree_1) <VAR_DDECL>: Set dtprel field.
11586 * unwind-dw2-fde-glibc.c: Include elf/dwarf2.h.
11587 * unwind-dw2-fde.c: Include elf/dwarf2.h.
11588 * dwarf2asm.c: Include elf/dwarf2.h.
11589 * unwind-dw2-fde-darwin.c: Include elf/dwarf2.h.
11590 * config/mmix/mmix.c: Include elf/dwarf2.h.
11591 * config/rs6000/darwin-fallback.c: Include elf/dwarf2.h.
11592 * config/xtensa/unwind-dw2-xtensa.c: Include elf/dwarf2.h.
11593 * config/sh/sh.c: Include elf/dwarf2.h.
11594 * config/i386/i386.c: Include elf/dwarf2.h.
11595
11596 2009-06-29 DJ Delorie <dj@redhat.com>
11597
11598 * config/mep/mep.h (CPP_SPEC): Remove __cop macro.
11599
11600 * doc/extend.texi: Add MeP attributes and pragmas.
11601 * doc/invoke.text: Add MeP Options.
11602 * doc/contrib.texi: Add MeP contribution.
11603 * doc/md.texi: Add MeP constraints.
11604 * doc/install.texi: Add MeP target.
11605
11606 2009-06-30 Anatoly Sokolov <aesok@post.ru>
11607
11608 * target.h (struct gcc_target): Add frame_pointer_required field.
11609 * target-def.h (TARGET_FRAME_POINTER_REQUIRED): New.
11610 (TARGET_INITIALIZER): Use TARGET_FRAME_POINTER_REQUIRED.
11611 * ira.c (setup_eliminable_regset): Use frame_pointer_required target
11612 hook.
11613 * reload1.c (update_eliminables): (Ditto.).
11614 * gcc/system.h (FRAME_POINTER_REQUIRED): Poison.
11615 * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
11616 (INITIAL_FRAME_POINTER_OFFSET): (Ditto.).
11617
11618 * config/arc/arc.h (FRAME_POINTER_REQUIRED): Remove macro.
11619
11620 * config/arm/arm.h (FRAME_POINTER_REQUIRED): Remove macro.
11621 * config/arm/arm.c (TARGET_FRAME_POINTER_REQUIRED): Define.
11622 (arm_frame_pointer_required): New function.
11623
11624 * config/avr/avr.h (FRAME_POINTER_REQUIRED): Remove macro.
11625 * config/avr/avr.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
11626 (avr_frame_pointer_required_p): Declare as static.
11627 * config/avr/avr-protos.h (avr_frame_pointer_required_p): Remove.
11628
11629 * config/bfin/bfin.h (FRAME_POINTER_REQUIRED): Remove macro.
11630 * config/bfin/bfin.c (TARGET_FRAME_POINTER_REQUIRED): Define.
11631 (bfin_frame_pointer_required): Make as static, change return type
11632 to bool.
11633 * config/bfin/bfin-protos.h (bfin_frame_pointer_required): Remove.
11634
11635 * config/cris/cris.h (FRAME_POINTER_REQUIRED): Remove macro.
11636 * config/cris/cris.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
11637 (cris_frame_pointer_required): New function.
11638
11639 * config/crx/crx.h (FRAME_POINTER_REQUIRED): Remove macro.
11640
11641 * config/fr30/fr30.h (FRAME_POINTER_REQUIRED): Remove macro.
11642 * config/fr30/fr30.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
11643 (fr30_frame_pointer_required): New function.
11644
11645 * config/frv/frv.h (FRAME_POINTER_REQUIRED): Remove macro.
11646 * config/frv/frv.c (TARGET_FRAME_POINTER_REQUIRED): Define.
11647 (frv_frame_pointer_required): Make as static, change return type
11648 to bool.
11649 * config/bfin/bfin-protos.h (frv_frame_pointer_required): Remove.
11650
11651 * config/i386/i386.h (FRAME_POINTER_REQUIRED): Remove macro.
11652 * config/i386/i386.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
11653 (ix86_frame_pointer_required): Make as static, change return type to
11654 bool.
11655 * config/i386/i386-protos.h (ix86_frame_pointer_required): Remove.
11656
11657 * config/m32c/m32c.h (FRAME_POINTER_REQUIRED): Remove macro.
11658 * config/m32c/m32c.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
11659
11660 * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Remove macro.
11661
11662 * config/mcore/mcore.h (CAN_ELIMINATE): Remove macro.
11663
11664 * config/mep/mep.h (FRAME_POINTER_REQUIRED): Remove macro.
11665
11666 * config/mips/mips.h (FRAME_POINTER_REQUIRED): Remove macro.
11667 * config/mips/mips.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
11668 (mips_frame_pointer_required): Make as static.
11669 * config/mips/mips-protos.h (mips_frame_pointer_required): Remove.
11670
11671 * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Remove macro.
11672 * config/mmix/mmix.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
11673 (mmix_frame_pointer_required): Mew function.
11674
11675 * config/moxie/moxie.h (FRAME_POINTER_REQUIRED): Remove macro.
11676 * config/moxie/moxie.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
11677
11678 * config/pa/pa.h (FRAME_POINTER_REQUIRED): Remove macro.
11679
11680 * config/score/score.h (FRAME_POINTER_REQUIRED): Remove macro.
11681
11682 * config/sh/sh.h (CAN_ELIMINATE): Remove macro.
11683
11684 * config/sparc/sparc.h (FRAME_POINTER_REQUIRED): Remove macro.
11685 (CAN_ELIMINATE): Redefine.
11686 * config/sparc/sparc.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
11687 (sparc_frame_pointer_required): New function.
11688 (sparc_can_eliminate): New function.
11689 * config/sparc/sparc-protos.h (sparc_can_eliminate): Declare.
11690
11691 * config/vax/vax.h (FRAME_POINTER_REQUIRED): Remove macro.
11692 * config/vax/vax.c (TARGET_FRAME_POINTER_REQUIRED): Define.
11693
11694 * config/xtensa/xtensa.h (FRAME_POINTER_REQUIRED): Remove macro.
11695 * config/xtensa/xtensa.c (TARGET_FRAME_POINTER_REQUIRED): Define.
11696 (xtensa_frame_pointer_required): Make as static, change return type
11697 to bool.
11698 * config/xtensa/xtensa-protos.h (xtensa_frame_pointer_required):
11699 Remove.
11700
11701 2009-06-29 Olatunji Ruwase <tjruwase@google.com>
11702
11703 * doc/plugins.texi: Document PLUGIN_START_UNIT.
11704 * toplev.c (compile_file): Call PLUGIN_START_UNIT.
11705 * gcc-plugin.h (PLUGIN_START_UNIT): Added new event.
11706 * plugin.c (plugin_event_name): Added PLUGIN_START_UNIT.
11707 (register_callback): Handle PLUGIN_START_UNIT.
11708 (invoke_plugin_callbacks): Handle PLUGIN_START_UNIT.
11709
11710 2009-06-29 Eric Botcazou <ebotcazou@adacore.com>
11711
11712 * tree.c (process_call_operands): Propagate TREE_READONLY from the
11713 operands.
11714 (PROCESS_ARG): Do not clear TREE_READONLY if CONSTANT_CLASS_P.
11715 (build3_stat): Propagate TREE_READONLY for COND_EXPR.
11716
11717 2009-06-29 Daniel Jacobowitz <dan@codesourcery.com>
11718
11719 * config/arm/arm.h (REGISTER_MOVE_COST): Increase VFP register
11720 move cost.
11721
11722 2009-06-29 Uros Bizjak <ubizjak@gmail.com>
11723
11724 * doc/extend.texi (Additional Floating Types): __float128 is also
11725 supported on i386 targets.
11726
11727 2009-06-29 Richard Guenther <rguenther@suse.de>
11728
11729 PR middle-end/14187
11730 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
11731 flag.
11732 (pt_solutions_same_restrict_base): Declare.
11733 * tree-ssa-structalias.c (struct variable_info): Add is_restrict_var
11734 flag.
11735 (new_var_info): Initialize is_global_var properly for SSA_NAMEs.
11736 (make_constraint_from, make_copy_constraint): Move earlier.
11737 (make_constraint_from_heapvar): New function.
11738 (make_constraint_from_restrict): Likewise.
11739 (handle_lhs_call): Use it.
11740 (find_func_aliases): Use it to track conversions to restrict
11741 qualified pointers.
11742 (struct fieldoff): Add only_restrict_pointers flag.
11743 (push_fields_onto_fieldstack): Initialize it.
11744 (create_variable_info_for): Track global restrict qualified pointers.
11745 (intra_create_variable_infos): Use make_constraint_from_heapvar.
11746 Track restrict qualified pointer arguments.
11747 (set_uids_in_ptset): Use varinfo is_global_var flag.
11748 (find_what_var_points_to): Set the vars_contains_restrict flag.
11749 Always create the points-to solution for sets including restrict tags.
11750 (pt_solutions_same_restrict_base): New function.
11751 * tree-ssa-alias.c (ptr_derefs_may_alias_p): For two restrict
11752 qualified pointers use pt_solutions_same_restrict_base as
11753 additional source for disambiguation.
11754
11755 2009-06-29 Richard Guenther <rguenther@suse.de>
11756
11757 PR middle-end/38212
11758 * alias.c (find_base_decl): Remove.
11759 (get_deref_alias_set_1): Remove restrict handling.
11760 * c-common.c (c_apply_type_quals_to_decl): Do not set
11761 DECL_POINTER_ALIAS_SET.
11762 * gimplify.c (find_single_pointer_decl_1): Remove.
11763 (find_single_pointer_decl): Likewise.
11764 (internal_get_tmp_var): Remove restrict handling.
11765 (gimple_regimplify_operands): Likewise.
11766 * omp-low.c (expand_omp_atomic_pipeline): Do not set
11767 DECL_POINTER_ALIAS_SET. Use ref-all pointers.
11768 * print-tree.c (print_node): Do not print DECL_POINTER_ALIAS_SET.
11769 * tree.c (restrict_base_for_decl): Remove.
11770 (init_ttree): Do not allocate it.
11771 (make_node_stat): Do not set DECL_POINTER_ALIAS_SET. Set
11772 LABEL_DECL_UID for label decls.
11773 (copy_node_stat): Do not copy restrict information.
11774 (decl_restrict_base_lookup): Remove.
11775 (decl_restrict_base_insert): Likewise.
11776 (print_restrict_base_statistics): Likewise.
11777 (dump_tree_statistics): Do not call print_restrict_base_statistics.
11778 * tree.h (DECL_POINTER_ALIAS_SET): Remove.
11779 (DECL_POINTER_ALIAS_SET_KNOWN_P): Likewise.
11780 (struct tree_decl_common): Rename pointer_alias_set to label_decl_uid.
11781 (LABEL_DECL_UID): Adjust.
11782 (DECL_BASED_ON_RESTRICT_P): Remove.
11783 (DECL_GET_RESTRICT_BASE): Likewise.
11784 (SET_DECL_RESTRICT_BASE): Likewise.
11785 (struct tree_decl_with_vis): Remove based_on_restrict_p flag.
11786
11787 * config/i386/i386.c (ix86_gimplify_va_arg): Use ref-all pointers
11788 instead of DECL_POINTER_ALIAS_SET.
11789 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
11790 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
11791 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
11792
11793 2009-06-29 Richard Guenther <rguenther@suse.de>
11794
11795 PR tree-optimization/40579
11796 * tree-vrp.c (vrp_evaluate_conditional): Bail out early if
11797 the IL to simplify has constants that overflowed.
11798
11799 2009-06-28 Uros Bizjak <ubizjak@gmail.com>
11800
11801 PR tree-optimization/40550
11802 * tree-vect-generic.c (expand_vector_operations_1): Compute in
11803 vector_compute_type only when the size of vector_compute_type is
11804 less than the size of type.
11805
11806 2009-06-28 Eric Botcazou <ebotcazou@adacore.com>
11807
11808 * fold-const.c (contains_label_1): Fix comments.
11809 (contains_label_p): Do not walk trees multiple time.
11810
11811 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
11812
11813 * config/i386/i386.h (enum ix86_fpcmp_strategy): New.
11814 * config/i386/i386.md (cbranchxf4, cstorexf4, cbranch<MODEF>4,
11815 cstore<MODEF>4, mov<X87MODEF>cc): Change predicate to
11816 ix86_fp_comparison_operator.
11817 (*fp_jcc_1_mixed, *fp_jcc_1_sse, *fp_jcc_1_387, *fp_jcc_2_mixed,
11818 *fp_jcc_2_sse, *fp_jcc_2_387): Delete
11819 (*fp_jcc_3_387, *fp_jcc_4_387, *fp_jcc_5_387, *fp_jcc_6_387,
11820 *fp_jcc_7_387, *fp_jcc_8<MODEF>_387): Eliminate call to
11821 !ix86_use_fcomi_compare, change ix86_fp_jump_nontrivial_p call
11822 to !TARGET_CMOVE, change predicate to ix86_fp_comparison_operator.
11823 (related splits): Change predicate to ix86_fp_comparison_operator.
11824 * config/i386/predicates.md: Use ix86_trivial_fp_comparison_operator
11825 instead of ix86_fp_comparison_codes.
11826 (ix86_trivial_fp_comparison_operator,
11827 ix86_fp_comparison_operator): New.
11828 * config/i386/i386-protos.h (ix86_fp_comparison_strategy): New.
11829 (ix86_expand_compare): Eliminate last two parameters.
11830 (ix86_fp_jump_nontrivial_p): Kill.
11831 * config/i386/i386.c (put_condition_code): Eliminate call to
11832 ix86_fp_comparison_codes and subsequent assertion.
11833 (ix86_fp_comparison_codes): Eliminate.
11834 (ix86_fp_swap_condition): New.
11835 (ix86_fp_comparison_arithmetics_cost, ix86_fp_comparison_fcomi_cost,
11836 ix86_fp_comparison_sahf_cost, ix86_use_fcomi_compare): Consolidate
11837 into ix86_fp_comparison_cost and ix86_fp_comparison_strategy.
11838 (ix86_prepare_fp_compare_args): Use ix86_fp_comparison_strategy
11839 and ix86_fp_swap_condition.
11840 (ix86_expand_fp_compare): Eliminate code for second jump/bypass jump.
11841 Use ix86_fp_comparison_strategy.
11842 (ix86_expand_compare): Likewise. Eliminate last two arguments.
11843 (ix86_fp_jump_nontrivial_p): Eliminate.
11844 (ix86_expand_branch): Treat SFmode/DFmode/XFmode as simple. Adjust
11845 call to ix86_expand_compare.
11846 (ix86_split_fp_branch, ix86_expand_setcc,
11847 ix86_expand_carry_flag_compare, ix86_expand_int_movcc,
11848 ix86_expand_fp_movcc): Eliminate code for second jump/bypass jump.
11849
11850 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
11851
11852 * config/arm/arm.c (arm_final_prescan_ins): Eliminate code
11853 related to jump_clobbers.
11854 * config/arm/arm.md (conds): Remove jump_clob case.
11855 (addsi3_cbranch, addsi3_cbranch_scratch, subsi3_cbranch, two
11856 splits): Change comparison_operator to arm_comparison_operator.
11857 (*arm_buneq, *arm_bltgt, *arm_buneq_reversed, *arm_bltgt_reversed):
11858 Eliminate.
11859
11860 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
11861
11862 * dojump.c (do_compare_rtx_and_jump): Try swapping the
11863 condition for floating point modes.
11864 * expmed.c (emit_store_flag_1): Move here a bigger part
11865 of emit_store_flag.
11866 (emit_store_flag): Try swapping the condition for floating point
11867 modes.
11868 * optabs.c (emit_cmp_and_jump_insns): Cope with constant op0 better.
11869
11870 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
11871
11872 * expr.c (expand_expr_real_1): Just use do_store_flag.
11873 (do_store_flag): Drop support for TRUTH_NOT_EXPR. Use
11874 emit_store_flag_force.
11875 * expmed.c (emit_store_flag_force): Copy here trick
11876 previously in expand_expr_real_1. Try reversing the comparison.
11877 (emit_store_flag_1): Work if target is NULL.
11878 (emit_store_flag): Work if target is NULL, using the result mode
11879 from the comparison. Use split_comparison, restructure final part
11880 to simplify conditionals.
11881
11882 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
11883
11884 * builtins.c (expand_errno_check): Use do_compare_rtx_and_jump.
11885 * dojump.c (do_jump): Change handling of floating-point
11886 ops to use just do_compare_and_jump.
11887 (split_comparison): New.
11888 (do_compare_rtx_and_jump): Add here logic coming previously
11889 in do_jump, using split_comparison.
11890
11891 2009-06-27 H.J. Lu <hongjiu.lu@intel.com>
11892
11893 PR target/40489
11894 * config/ia64/ia64.c (ia64_reorg): Check NULL insn.
11895
11896 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
11897
11898 * tree-ssa-alias.c: Fix unintentional commit.
11899
11900 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
11901
11902 * passes.c (execute_one_pass): Fix unintentional commit.
11903
11904 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
11905
11906 * df-problems.c (df_set_seen, df_unset_seen): Delete.
11907 (df_rd_local_compute, df_md_local_compute): Inline them.
11908
11909 (df_md_scratch): New.
11910 (df_md_alloc, df_md_free): Allocate/free it.
11911 (df_md_local_compute): Only include live registers in init.
11912 (df_md_transfer_function): Prune the in-set computed by
11913 the confluence function, and the gen-set too.
11914
11915 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
11916
11917 PR rtl-optimization/26854
11918 * timevar.def: Remove TV_DF_RU, add TV_DF_MD.
11919 * df-problems.c (df_rd_add_problem): Fix comment.
11920 (df_md_set_bb_info, df_md_free_bb_info, df_md_alloc,
11921 df_md_simulate_artificial_defs_at_top,
11922 df_md_simulate_one_insn, df_md_bb_local_compute_process_def,
11923 df_md_bb_local_compute, df_md_local_compute, df_md_reset,
11924 df_md_transfer_function, df_md_init, df_md_confluence_0,
11925 df_md_confluence_n, df_md_free, df_md_top_dump, df_md_bottom_dump,
11926 problem_MD, df_md_add_problem): New.
11927 * df.h (DF_MD, DF_MD_BB_INFO, struct df_md_bb_info, df_md,
11928 df_md_get_bb_info): New.
11929 (DF_LAST_PROBLEM_PLUS1): Adjust.
11930
11931 * Makefile.in (fwprop.o): Include domwalk.h.
11932 * fwprop.c: Include domwalk.h.
11933 (reg_defs, reg_defs_stack): New.
11934 (bitmap_only_bit_between): Remove.
11935 (process_defs): New.
11936 (process_uses): Use reg_defs and local_md instead of
11937 bitmap_only_bit_between and local_rd.
11938 (single_def_use_enter_block): New, from build_single_def_use_links.
11939 (single_def_use_leave_block): New.
11940 (build_single_def_use_links): Remove code moved to
11941 single_def_use_enter_block, invoke domwalk.
11942 (use_killed_between): Adjust comment.
11943
11944 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
11945
11946 * bitmap.h (bitmap_ior_and_into): New.
11947 * bitmap.c (bitmap_ior_and_into): New.
11948
11949 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
11950
11951 * domwalk.h (struct dom_walk_data): Remove all callbacks except
11952 before_dom_children_before_stmts and after_dom_children_after_stmts.
11953 Rename the two remaining callbacks to just before_dom_children and
11954 after_dom_children. Remove other GIMPLE statement walking bits.
11955 * domwalk.c (walk_dominator_tree): Remove now unsupported features.
11956 * graphite.c: Do not include domwalk.h.
11957 * tree-into-ssa.c (interesting_blocks): New global.
11958 (struct mark_def_sites_global_data): Remove it and names_to_rename.
11959 (mark_def_sites, rewrite_stmt, rewrite_add_phi_arguments,
11960 rewrite_update_stmt, rewrite_update_phi_arguments): Simplify
11961 now that they're not domwalk callbacks.
11962 (rewrite_initialize_block): Rename to...
11963 (rewrite_enter_block): ... this, place after called functions. Test
11964 interesting_blocks, call rewrite_stmt and rewrite_add_phi_arguments.
11965 (rewrite_finalize_block): Rename to...
11966 (rewrite_leave_block): ... this, place after called functions.
11967 (rewrite_update_init_block): Rename to...
11968 (rewrite_update_enter_block): ... this, place after called functions.
11969 Test interesting_blocks, call rewrite_update_stmt and
11970 rewrite_update_phi_arguments.
11971 (rewrite_update_fini_block): Rename to...
11972 (rewrite_leave_block): ... this, place after called functions.
11973 (rewrite_blocks): Remove last argument, simplify initialization of
11974 walk_data.
11975 (mark_def_sites_initialize_block): Rename to...
11976 (mark_def_sites_block): ... this, call mark_def_sites.
11977 (mark_def_sites_blocks): Remove argument, simplify initialization of
11978 walk_data.
11979 (rewrite_into_ssa): Adjust for interesting_blocks_being a global.
11980 (update_ssa): Likewise.
11981 * tree-ssa-dom.c (optimize_stmt): Simplify now that it's not a domwalk
11982 callback.
11983 (tree_ssa_dominator_optimize): Simplify initialization of walk_data.
11984 (dom_opt_initialize_block): Rename to...
11985 (dom_opt_enter_block): ... this, place after called functions. Walk
11986 statements here, inline propagate_to_outgoing_edges.
11987 (dom_opt_finalize_block): Rename to...
11988 (dom_opt_leave_block): ... this, place after called functions.
11989 * tree-ssa-dse.c (dse_optimize_stmt): Simplify now that it's not a
11990 domwalk callback.
11991 (dse_enter_block, dse_record_phi): New.
11992 (dse_record_phis): Delete.
11993 (dse_finalize_block): Rename to...
11994 (dse_leave_block): ... this.
11995 (tree_ssa_dse): Simplify initialization of walk_data.
11996 * tree-ssa-loop-im.c (determine_invariantness, move_computations):
11997 Adjust initialization of walk_data.
11998 * tree-ssa-loop-unswitch.c: Do not include domwalk.h.
11999 * tree-ssa-loop-phiopt.c (get_non_trapping):
12000 Adjust initialization of walk_data.
12001 * tree-ssa-loop-threadedge.c: Do not include domwalk.h.
12002 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Simplify now that
12003 it's not a domwalk callback.
12004 (uncprop_initialize_block): Rename to...
12005 (dse_enter_block): ... this, call uncprop_into_successor_phis.
12006 (dse_finalize_block): Rename to...
12007 (dse_leave_block): ... this.
12008 (tree_ssa_uncprop): Simplify initialization of walk_data.
12009 * Makefile.in: Adjust dependencies.
12010
12011 2009-06-27 Richard Earnshaw <rearnsha@arm.com>
12012
12013 * arm.md (casesi): Fix test for Thumb1.
12014 (thumb1_casesi_internal_pic): Likewise.
12015 (thumb1_casesi_dispatch): Likewise.
12016
12017 2009-06-26 Daniel Gutson <dgutson@codesourcery.com>
12018
12019 * config/arm/arm-cores.def: Added core cortex-m0.
12020 * config/arm/arm-tune.md: Regenerated.
12021 * doc/invoke.texi: Added entry for cpu ARM Cortex-M0.
12022
12023 2009-06-26 DJ Delorie <dj@redhat.com>
12024
12025 * config/mep/mep.opt (mfar): Remove -mfar as it doesn't do anything.
12026
12027 * config/mep/mep.c (mep_bundle_insns): Account for the fact that
12028 the scheduler doesn't tag jump insns.
12029
12030 2009-06-26 H.J. Lu <hongjiu.lu@intel.com>
12031
12032 * c-decl.c (merge_decls): Re-indent.
12033
12034 2009-06-26 Janis Johnson <janis187@us.ibm.com>
12035
12036 PR c/39902
12037 * tree.c (real_zerop, real_onep, real_twop, real_minus_onep):
12038 Special-case decimal float constants.
12039
12040 2009-06-26 Richard Henderson <rth@redhat.com>
12041
12042 * function.h (struct function): Add cannot_be_copied_reason,
12043 and cannot_be_copied_set.
12044 * tree-inline.c (has_label_address_in_static_1): Rename from
12045 inline_forbidden_p_2; don't set inline_forbidden_reason here.
12046 (cannot_copy_type_1): Rename from inline_forbidden_p_op; likewise
12047 don't set inline_forbidden_reason.
12048 (copy_forbidden): New function, split out of inline_forbidden_p.
12049 (inline_forbidden_p_stmt): Don't check for nonlocal labels here.
12050 (inline_forbidden_p): Use copy_forbidden.
12051 (tree_versionable_function_p): Likewise.
12052 (inlinable_function_p): Merge into tree_inlinable_function_p.
12053 (tree_function_versioning): Remap cfun->nonlocal_goto_save_area.
12054 * ipa-cp.c (ipcp_versionable_function_p): New function.
12055 (ipcp_cloning_candidate_p): Use it.
12056 (ipcp_node_modifiable_p): Likewise.
12057
12058 2009-06-26 Olatunji Ruwase <tjruwase@google.com>
12059
12060 * builtins.c (expand_builtin_alloca): Handle builtin alloca
12061 that is marked not to be inlined. Remove flag_mudflap use.
12062 * tree-mudflap.c: Rename mf_xform_derefs to mf_xfrom_statements.
12063 (mf_xform_statements): Mark builtin alloca calls as un-inlineable.
12064
12065 2009-06-26 Steve Ellcey <sje@cup.hp.com>
12066
12067 PR bootstrap/40338
12068 * config/pa/t-pa-hpux10 (TARGET_LIBGCC2_CFLAGS): Add -frandom-seed.
12069 * config/pa/t-pa-hpux11 (TARGET_LIBGCC2_CFLAGS): Ditto.
12070
12071 2009-06-26 Kai Tietz <kai.tietz@onevision.com>
12072
12073 * config/i386/mingw-tls.c (__mingwthr_key_dtor): Remove for none
12074 shared libgcc.
12075 (__mingwthr_remove_key_dtor): Likewise.
12076
12077 2009-06-26 Richard Guenther <rguenther@suse.de>
12078
12079 * tree-ssa-structalias.c (do_ds_constraint): Simplify escape handling.
12080
12081 2009-06-26 Steven Bosscher <steven@gcc.gnu.org>
12082
12083 PR middle-end/40525
12084 * ifcvt.c (dead_or_predicable): If predicating MERGE_BB fails,
12085 try the non-cond_exec path also.
12086
12087 2009-06-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12088
12089 PR target/40468
12090 * pa.c (branch_to_delay_slot_p, branch_needs_nop_p): New functions.
12091 (output_cbranch): Use new functions.
12092 (output_lbranch, output_bb, output_bvb, output_dbra, output_movb):
12093 Likewise.
12094
12095 2009-06-25 Michael Meissner <meissner@linux.vnet.ibm.com>
12096 Pat Haugen <pthaugen@us.ibm.com>
12097 Revital Eres <ERES@il.ibm.com>
12098
12099 * config/rs6000/rs6000.c (print_operand): Correct lossage message
12100 for %c error. Add %x support to print VSX registers as a unified
12101 register set, instead of separate float and altivec registers.
12102 Switch to use VECTOR_MEM_ALTIVEC_P instead of TARGET_ALTIVEC for
12103 %y case, and add support for VSX pre-modify addresses.
12104 (output_toc): Add assert for CONST containing an integer constant
12105 in the PLUS case.
12106 (rs6000_adjust_cost): Add POWER7 support.
12107 (insn_must_be_first_in_group): Ditto.
12108 (insn_must_be_last_in_group): Ditto.
12109 (rs6000_emit_popcount): Ditto.
12110 (rs6000_vector_mode_supported_p): Ditto.
12111
12112 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_class):
12113 Change some of the functions called by macros to being called
12114 through a pointer, so debug functions can be inserted if
12115 -mdebug=addr or -mdebug=cost.
12116 (rs6000_preferred_reload_class_ptr): Ditto.
12117 (rs6000_secondary_reload_class_ptr): Ditto.
12118 (rs6000_secondary_memory_needed_ptr): Ditto.
12119 (rs6000_cannot_change_mode_class_ptr): Ditto.
12120 (rs6000_secondary_reload_inner): Ditto.
12121 (rs6000_legitimize_reload_address): Ditto.
12122 (rs6000_legitimize_reload_address_ptr): Ditto.
12123 (rs6000_mode_dependent_address): Ditto.
12124 (rs6000_mode_dependent_address_ptr): Ditto.
12125
12126 * config/rs6000/rs6000.c (reg_offset_addressing_ok_p): New
12127 function to return true if the mode allows reg + integer
12128 addresses.
12129 (virtual_stack_registers_memory_p): New function to return true if
12130 the address refers to a virtual stack register.
12131 (rs6000_legitimate_offset_address_p): Move code to say whether a
12132 mode supports reg+int addressing to reg_offset_addressing_ok_p and
12133 call it.
12134 (rs6000_legitimate_address_p): Add checks for modes that only can
12135 do reg+reg addressing. Start adding VSX support.
12136 (rs6000_legitimize_reload_address): Ditto.
12137 (rs6000_legitimize_address): Ditto.
12138 (rs6000_debug_legitimate_address_p): New debug functions for
12139 -mdebug=addr and -mdebug=cost.
12140 (rs6000_debug_rtx_costs): Ditto.
12141 (rs6000_debug_address_costs): Ditto.
12142 (rs6000_debug_adjust_cost): Ditto.
12143 (rs6000_debug_legitimize_address): Ditto.
12144 (rs6000_legitimize_reload_address_ptr): Point to call normal
12145 function or debug function. Make functions called via pointer
12146 static.
12147 (rs6000_mode_dependent_address_ptr): Ditto.
12148 (rs6000_secondary_reload_class_ptr): Ditto.
12149 (rs6000_hard_regno_mode_ok): Add preliminary VSX support.
12150 (rs6000_emit_move): Add -mdebug=addr support. Change an abort
12151 into a friendlier error.
12152 (rs6000_init_builtins): Add initial VSX support.
12153 (rs6000_adjust_cost): Fix some spacing issues.
12154
12155 * config/rs6000/rs6000.h (enum reg_class): Add VSX_REGS.
12156 (REG_CLASS_NAMES): Ditto.
12157 (REG_CLASS_CONTENTS): Ditto.
12158 (PREFERRED_RELOAD_CLASS): Move from a macro to calling through a
12159 pointer, to add -mdebug=addr support.
12160 (CANNOT_CHANGE_MODE_CLASS): Ditto.
12161 (SECONDARY_RELOAD_CLASS): Call through a pointer to add
12162 -mdebug=addr support.
12163 (LEGITIMIZE_RELOAD_ADDRESS): Ditto.
12164 (GO_IF_MODE_DEPENDENT_ADDRESS): Ditto.
12165 (enum rs6000_builtins): Add RS6000_BUILTIN_BSWAP_HI.
12166
12167 * config/rs6000/rs6000.md (bswaphi*): Add support for swapping
12168 16-bit values.
12169 (bswapsi*): Set attribute types for load/store. Add combiner
12170 patterns to eliminate zero extend on 64-bit.
12171 (bswapdi*): Add support for swapping 64-bit values. Use ldbrx and
12172 stdbrx if the hardware supports those instructions.
12173
12174 2009-06-25 Ian Lance Taylor <iant@google.com>
12175
12176 * doc/invoke.texi (Option Summary): Mention -static-libstdc++.
12177 (Link Options): Document -static-libstdc++.
12178
12179 2009-06-25 Andrew Pinski <andrew_pinski@playstation.sony.com>
12180
12181 PR target/38731
12182 * config/rs6000/rs6000.c (LOCAL_ALIGNMENT): Redefine to just use
12183 DATA_ALIGNMENT instead.
12184
12185 2009-06-25 Richard Guenther <rguenther@suse.de>
12186
12187 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Disambiguate
12188 indirect references against the callused/escaped solutions.
12189 (call_may_clobber_ref_p_1): Likewise.
12190
12191 2009-06-25 Martin Jambor <mjambor@suse.cz>
12192
12193 PR tree-optimization/40493
12194 * tree-sra.c (sra_modify_expr): Correct BIT_FIELD_REF argument numbers.
12195 (enum unscalarized_data_handling): New type.
12196 (handle_unscalarized_data_in_subtree): Return what has been done.
12197 (load_assign_lhs_subreplacements): Handle left flushes differently.
12198 (sra_modify_assign): Use unscalarized_data_handling, simplified
12199 condition determining whether to remove the statement.
12200
12201 2009-06-25 Basile Starynkevitch <basile@starynkevitch.net>
12202
12203 * doc/plugins.texi (Building GCC plugins): Correct typo in Makefile
12204 excerpt - @ should be doubled for texinfo.
12205
12206 2009-06-24 Ian Lance Taylor <iant@google.com>
12207
12208 * config/arc/arc.c: Include "df.h".
12209 (arc_attribute_table): Make static. Move higher in file.
12210 (arc_address_cost): Call SMALL_INT on INTVAL, not rtx.
12211 (output_shift): Initialize n later to avoid warning.
12212 * config/arm/arm.c (arm_attribute_table): Make static. Move
12213 higher in file.
12214 * config/avr/avr.c (avr_attribute_table): Make static. Move
12215 higher in file.
12216 (reg_class_tab): Change array type from int to enum reg_class.
12217 (avr_jump_mode): Change GET_MODE to GET_CODE when checking for
12218 LABEL_REF.
12219 (out_tsthi, ashlhi3_out): Don't use AS2 with "or" or "and".
12220 (lshrhi3_out): Likewise.
12221 (class_likely_spilled_p): Change return type to bool.
12222 (avr_rtx_costs): Use local code variable with enum type.
12223 * config/avr/avr.md (movmemhi): Use add_reg_note.
12224 (andhi3, andsi3): Don't use AS2 with "and".
12225 (iorhi3, iorsi3): Don't use AS2 with "or".
12226 * config/avr/avr-protos.h (class_likely_spilled_p): Update declaration.
12227 * config/crx/crx.c: Include "df.h".
12228 (crx_attribute_table): Make static.
12229 * config/m32r/m32r.c: Include "df.h".
12230 (m32r_attribute_table): Make static. Move higher in file.
12231 (pop): Use add_reg_note.
12232 (block_move_call): Change 0 to LCT_NORMAL in function call.
12233 * config/m32r/m32r.md (movsi_insn): Remove unused local value.
12234 * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Likewise.
12235 * config/m32r/m32r-protos.h (m32r_compute_function_type): Always
12236 declare, not just when TREE_CODE is defined.
12237 * config/m68hc11/m68hc11.c: Include "expr.h".
12238 (m68hc11_attribute_table): Make static. Move higher in file.
12239 (m68hc11_small_indexed_indirect_p): Change 0 to VOIDmode in
12240 function call.
12241 (m68hc11_register_indirect_p): Likewise.
12242 (m68hc11_function_arg_padding): Change return type to enum
12243 direction.
12244 (emit_move_after_reload): Use add_reg_note.
12245 (m68hc11_emit_logical): Change code parameter to enum rtx_code.
12246 (m68hc11_split_logical): Likewise.
12247 (m68hc11_rtx_costs): Add local code_and outer_code variables with
12248 enum type.
12249 * config/m68hc11/predicates.md (reg_or_some_mem_operand): Change 0
12250 to VOIDmode in function call.
12251 * config/m68hc11/m68hc11-protos.h: Don't check TREE_CODE to see if
12252 tree is defined.
12253 (m68hc11_split_logical): Update declaration.
12254 (m68hc11_function_arg_padding): Update declaration.
12255 * config/mcore/mcore.c (regno_reg_class): Change form array of int
12256 to array of enum reg_class.
12257 (mcore_attribute_table): Make static. Move higher in file.
12258 (mcore_rtx_costs): Add cast to enum type.
12259 * config/mcore/mcore.h (regno_reg_class): Update declaration.
12260 (GO_IF_LEGITIMATE_INDEX): Add cast to avoid warning.
12261 * config/sh/sh.c (sh_attribute_table): Make static. Move higher
12262 in file.
12263 * config/sh/predicates.md (trapping_target_operand): Rename and to
12264 and_expr.
12265 * config/sparc/sparc.c (sparc_attribute_table): Make static. Move
12266 higher in file.
12267 * config/spu/spu.c (spu_attribute_table): Make static. Move
12268 higher in file.
12269 * config/v850/v850.c (v850_attribute_table): Make static. Move
12270 higher in file.
12271 (v850_rtx_costs): Use local code with enum type.
12272 (expand_epilogue): Add cast.
12273 * config/v850/v850-c.c (ghs_pragma_section): Initialize repeat.
12274
12275 2009-06-23 Takashi YOSHII <yoshii.takashi@renesas.com>
12276
12277 PR target/40515
12278 * doc/invoke.texi (SH Options): Document -m2a, -m2a-single,
12279 -m2a-single-only and -m2a-nofpu.
12280 * config/sh/sh.opt: Document m2a generates FPU code.
12281
12282 2009-06-24 Anatoly Sokolov <aesok@post.ru>
12283
12284 * defaults.h (CAN_ELIMINATE): Provide default.
12285 * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
12286 * config/alpha/alpha.h (CAN_ELIMINATE): Delete.
12287 * config/m32c/m32c.h (CAN_ELIMINATE): Delete.
12288 * config/spu/spu.h (CAN_ELIMINATE): Delete.
12289 * config/xtensa/xtensa.h (CAN_ELIMINATE): Delete.
12290 * config/moxie/moxie.h (CAN_ELIMINATE): Delete.
12291 * config/cris/cris.h (CAN_ELIMINATE): Delete.
12292 * config/mn10300/mn10300.h (CAN_ELIMINATE): Delete.
12293 * config/pa/pa64-linux.h (CAN_ELIMINATE): Delete.
12294 * config/mmix/mmix.h (CAN_ELIMINATE): Delete.
12295
12296 2009-06-24 DJ Delorie <dj@redhat.com>
12297
12298 * mep-ext-cop.cpu: Fix copyright notice.
12299 * mep-default: Fix copyright notice.
12300 * mep-core: Fix copyright notice.
12301 * mep: Fix copyright notice.
12302 * mep-ivc2: Fix copyright notice.
12303 * mep-c5: Fix copyright notice.
12304
12305 2009-06-24 Denis Chertykov <chertykov@gmail.com>
12306
12307 * doc/contrib.texi (Contributors):
12308
12309 2009-06-24 Andreas Krebbel <krebbel1@de.ibm.com>
12310
12311 PR middle-end/40501
12312 * tree-ssa-math-opts.c (execute_optimize_bswap): Convert the bswap
12313 src and dst operands if necessary.
12314
12315 2009-06-23 DJ Delorie <dj@redhat.com>
12316
12317 Add MeP port.
12318 * config.gcc: Add mep support.
12319 * recog.c: Resurrect validate_replace_rtx_subexp().
12320 * recog.h: Likewise.
12321 * config/mep/: Add new port:
12322 * config/mep/constraints.md: New file.
12323 * config/mep/default.h: New file.
12324 * config/mep/intrinsics.h: New file.
12325 * config/mep/intrinsics.md: New file.
12326 * config/mep/ivc2-template.h: New file.
12327 * config/mep/mep-c5.cpu: New file.
12328 * config/mep/mep-core.cpu: New file.
12329 * config/mep/mep-default.cpu: New file.
12330 * config/mep/mep-ext-cop.cpu: New file.
12331 * config/mep/mep-intrin.h: New file.
12332 * config/mep/mep-ivc2.cpu: New file.
12333 * config/mep/mep-lib1.asm: New file.
12334 * config/mep/mep-lib2.c: New file.
12335 * config/mep/mep-pragma.c: New file.
12336 * config/mep/mep-protos.h: New file.
12337 * config/mep/mep-tramp.c: New file.
12338 * config/mep/mep.c: New file.
12339 * config/mep/mep.cpu: New file.
12340 * config/mep/mep.h: New file.
12341 * config/mep/mep.md: New file.
12342 * config/mep/mep.opt: New file.
12343 * config/mep/predicates.md: New file.
12344 * config/mep/t-mep: New file.
12345
12346 2009-06-23 Ian Lance Taylor <iant@google.com>
12347
12348 * configure.ac: Invoke AC_PROG_CXX. Separate C specific warnings
12349 from loose_warn into c_loose_warn and from strict_warn into
12350 c_strict_warn. Set and substitute warn_cxxflags. Check for
12351 --enable-build-with-cxx. Set and substitute
12352 ENABLE_BUILD_WITH_CXX. Set and substitute HOST_LIBS.
12353 * Makefile.in (CXXFLAGS): New variable.
12354 (C_LOOSE_WARN, C_STRICT_WARN): New variables.
12355 (GCC_WARN_CFLAGS): Add $(C_LOOSE_WARN). Add $(C_STRICT_WARN) if
12356 the default is the same as $(STRICT_WARN).
12357 (GCC_WARN_CXXFLAGS, WARN_CXXFLAGS): New variables.
12358 (CXX): New variable.
12359 (COMPILER): New value if ENABLE_BUILD_WITH_CXX.
12360 (COMPILER_FLAGS, LINKER, LINKER_FLAGS): Likewise.
12361 (ALL_COMPILERFLAGS, ALL_LINKERFLAGS): Likewise.
12362 (HOST_LIBS): New variable.
12363 (GCC_CFLAGS): Add $(C_LOOSE_WARN).
12364 (ALL_CXXFLAGS): New variable.
12365 (LIBS, BACKENDLIBS): Add $(HOST_LIBS).
12366 * doc/install.texi (Configuration): Document
12367 --enable-build-with-cxx, --with-stage1-ldflags,
12368 --with-stage1-libs, --with-boot-ldflags, --with-boot-libs.
12369 * configure: Rebuild.
12370
12371 2009-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12372
12373 * config/arm/arm.c (arm_override_options): Fix braces and formatting
12374 from previous commit.
12375
12376 2009-06-23 Ian Lance Taylor <iant@google.com>
12377
12378 * Makefile.in ($(out_object_file)): Depend upon $(DF_H).
12379
12380 2009-06-23 Ian Lance Taylor <iant@google.com>
12381
12382 * reload.c (alternative_allows_const_pool_ref): Mark mem parameter
12383 with ATTRIBUTE_UNUSED.
12384
12385 2009-06-23 Michael Meissner <meissner@linux.vnet.ibm.com>
12386 Pat Haugen <pthaugen@us.ibm.com>
12387 Revital Eres <eres@il.ibm.com>
12388
12389 * config.in (HAVE_AS_POPCNTD): Add default definition.
12390 (HAVE_AS_LWSYNC): Ditto.
12391
12392 * configure.ac (gcc_cv_as_powerpc_mfpgpr): Provide real binutils
12393 release number.
12394 (gcc_cv_as_powerpc_cmpb): Ditto.
12395 (gcc_cv_as_powerpc_dfp): Ditto.
12396 (gcc_cv_as_powerpc_vsx): Ditto.
12397 (gcc_cv_as_powerpc_popcntd): Add feature test for assembler
12398 supporting the popcntd/lwsync instructions.
12399 (gcc_cv_as_powerpc_lwsync): Ditto.
12400 * configure: Regenerate.
12401
12402 * config/rs6000/aix53.h (ASM_CPU_SPEC): Add support for
12403 -mcpu=native and -mcpu=power7.
12404 * config/rs6000/aix61.h (ASM_CPU_SPEC): Ditto.
12405
12406 * config/rs6000/linux64.opt (-mprofile-kernel): Move switch to be
12407 a variable instead of a mask to reduce the number of mask bits.
12408 * config/rs6000/sysv4.opt (-mbit-align): Ditto.
12409 (-mbit-word): Ditto.
12410 (-mregnames): Ditto.
12411 * config/rs6000/rs6000.opt (-mupdate): Ditto.
12412 (-mfused-madd): Ditto.
12413
12414 * config/rs6000/rs6000.opt (-mpopcntd): New switch for non-VSX ISA
12415 2.06 instructions.
12416 (-mvsx): New switch for VSX instructions.
12417 (-misel): Move from a variable to a mask to allow it to be set by
12418 -mcpu=.
12419
12420 * config/rs6000/rs6000-protos.h (rs6000_hard_regno_nregs): Change
12421 function declaration to an array declaration.
12422 (rs6000_hard_regno_nregs): New external array declaration.
12423
12424 * config/rs6000/t-rs6000 (MD_INCLUDES): Define, add all of the .md
12425 files included by rs6000.md.
12426
12427 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
12428 SET_PROFILE_KERNEL macro to reset the -mprofile-kernel switch.
12429
12430 * config/rs6000/rs6000.c (rs6000_isel): Delete, -misel moved to be
12431 a target mask.
12432 (rs6000_debug_reg): New -mdebug= variables.
12433 (rs6000_debug_addr): Ditto.
12434 (rs6000_debug_cost): Ditto.
12435 (rs6000_pmode): New variable to hold Pmode.
12436 (rs6000_pointer_size): New variable to hold POINTER_SIZE.
12437 (rs6000_class_max_nregs): New array to hold CLASS_MAX_NREGS
12438 calculated at compiler start.
12439 (rs6000_hard_regno_nregs): Change function to an array which holds
12440 HARD_REGNO_NREGS calculated at compiler start.
12441 (rs6000_explicit_options): Delete isel field.
12442 (rs6000_vector_unit): New array to hold which vector unit
12443 supports arithmetic options for a given type.
12444 (rs6000_vector_mem): New array to hold which vector unit supports
12445 memory reference operations for a given type.
12446 (rs6000_vector_align): New array to given the alignment of each
12447 vector type.
12448 (power7_cost): New basic costs for power7.
12449 (SET_PROFILE_KERNEL): New macro for resetting -mprofile-kernel.
12450 (rs6000_hard_regno_nregs_internal): New function, moved from
12451 HARD_REGNO_NREGS, to calculate the number of registers each hard
12452 register takes for each type.
12453 (rs6000_debug_reg_print): New function for -mdebug=reg support.
12454 (rs6000_debug_vector_unit): New array, map rs6000_vector to string.
12455 (+rs6000_init_hard_regno_mode_ok): New function, move calculation
12456 of HARD_REGNO_NREGS, CLASS_MAX_NREGS, REGNO_REG_CLASS, and vector
12457 unit information here so it is calculated once at compiler startup
12458 time.
12459 (rs6000_override_options): Make -misel a target mask. Add more
12460 power7 target masks. Setup Pmode and POINTER_SIZE. Add initial
12461 VSX support. Add support for -mdebug=reg, -mdebug=addr, and
12462 -mdebug=cost.
12463 (POWERPC_MASKS): Add MASK_POPCNTD, MASK_VSX, and MASK_ISEL.
12464 (rs6000_handle_option): Move -misel from variable to target mask.
12465 (rs6000_builtin_mask_for_load): Add VSX support.
12466 (rs6000_conditional_register_usage): Ditto.
12467 (USE_ALTIVEC_FOR_ARG_P): Ditto.
12468 (function_arg_boundary): Ditto.
12469 (rs6000_expand_builtin): Ditto.
12470 (def_builtin): Make abort message a little friendlier.
12471 (rs6000_emit_int_cmove): Add support for 64-bit isel.
12472
12473 * config/rs6000/rs6000.h (ASM_CPU_POWER7_SPEC): Depend on the
12474 assembler support the popcntd instruction instead of a vsx
12475 instruction to enable power7 support.
12476 (ASM_CPU_SPEC): Add support for -mcpu=native and -mcpu=power7.
12477 (EXTRA_SPECS): Add ASM_CPU_NATIVE_SPEC to allow passing the right
12478 option to the assembler if -mcpu=native.
12479 (ASM_CPU_NATIVE_SPEC): Ditto.
12480 (TARGET_POPCNTD): If assembler doesn't support popcntd, turn off
12481 ISA 2.06 features.
12482 (TARGET_LWSYNC_INSTRUCTION): Define whether it is safe to issue
12483 the lwsync instruction.
12484 (enum processor_type): Add PROCESSOR_POWER7.
12485 (rs6000_debug_reg): New -mdebug= options.
12486 (rs6000_debug_addr): Ditto.
12487 (rs6000_debug_cost): Ditto.
12488 (rs6000_isel): Delete.
12489 (enum rs6000_vector): New enum to say what vector unit we have.
12490 (VECTOR_UNIT_*): New macros to say which vector unit has
12491 arithmetic operations for a given type.
12492 (VECTOR_MEM_*): New macros to say which vector unit has memory
12493 operations for a given type.
12494 (TARGET_LDBRX): Whether the machine supports the ldbrx
12495 instruction.
12496 (TARGET_ISEL): Delete, -misel moved to be a mask.
12497 (TARGET_ISEL64): New macro for 64-bit isel support.
12498 (UNITS_PER_VSX_WORD): New macro.
12499 (POINTER_SIZE): Move to be an external variable, rather than
12500 calculating whether we are generating 32 ot 64-bit code.
12501 (Pmode): Ditto.
12502 (STACK_BOUNDARY): Add VSX support.
12503 (LOCAL_ALIGNMENT): Ditto.
12504 (SLOW_UNALIGNED_ACCESS): Ditto.
12505 (VSX_REGNO_P): New macro for VSX support.
12506 (VFLOAT_REGNO_P): Ditto.
12507 (VINT_REGNO_P): Ditto.
12508 (VLOGICAL_REGNO_P): Ditto.
12509 (VSX_VECTOR_MODE): Ditto.
12510 (VSX_SCALAR_MODE): Ditto.
12511 (VSX_MODE): Ditto.
12512 (VSX_MOVE_MODE): Ditto.
12513 (VSX_REG_CLASS_P): Ditto.
12514 (HARD_REGNO_NREGS): Instead of calling a function, use an array
12515 lookup.
12516 (UNITS_PER_SIMD_WORD): Add VSX support.
12517 (MODES_TIEABLE_P): Ditto.
12518 (STARTING_FRAME_OFFSET): Ditto.
12519 (STACK_DYNAMIC_OFFSET): Ditto.
12520 (EPILOGUE_USES): Ditto.
12521 (REGNO_REG_CLASS): Move to array lookup.
12522 (CLASS_MAX_NREGS): Ditto.
12523 (rs6000_vector_reg_class): Add declaration.
12524 (ADDITIONAL_REGISTER_NAMES): Add VSX names for the registers that
12525 overlap with the floating point and Altivec registers.
12526
12527 * config/rs6000/e500.h (CHECK_E500_OPTIONS): Disallow -mvsx.
12528
12529 * config/rs6000/driver-rs6000.c (asm_names): New static array to
12530 give the appropriate asm switches if -mcpu=native.
12531 (host_detect_local_cpu): Add support for "asm".
12532 (host_detect_local_cpu): Follow GNU code guidelines for name.
12533
12534 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Move
12535 -mbit-word to a variable instead of being a target mask.
12536
12537 * config/rs6000/sync.md (lwsync): If the assembler supports it,
12538 emit the lwsync instruction instead of emitting the instruction as
12539 an integer constant.
12540
12541 * config/rs6000/spe.md (spe_fixuns_truncdfsi2): Rename from
12542 fixuns_trundfsi2, move expander into rs6000.md.
12543
12544 * config/rs6000/rs6000.md (cpu): Add power7.
12545 (sel, *ptrsize): New mode attributes for 32/64-bit isel.
12546 (logical predicate patterns): Change the single instruction
12547 primitives that set CR0 to be fast_compare instead of compare.
12548 (norsi*): Ditto.
12549 (popcntwsi2): Add support for ISA 2.06 popcount instructions.
12550 (popcntddi2): Ditto.
12551 (popcount<mode>): Ditto.
12552 (floating multiply/add insns): Name the floating point
12553 multiply/add insns.
12554 (isel_signed_<mode>): Add support for -misel on 64-bit systems.
12555 (isel_unsigned_<mode>): Ditto.
12556 (fixuns_trundfsi2): Move expander here from spe.md.
12557 (smindi3): Define if we have -misel on 64-bit systems.
12558 (smaxdi3): Ditto.
12559 (umindi3): Ditto.
12560 (umaxdi3): Ditto.
12561
12562 2009-06-23 Anatoly Sokolov <aesok@post.ru>
12563
12564 * config.gcc (avr-*-rtems*, avr-*-*): Set extra_gcc_objs and
12565 extra_objs.
12566 * config/avr/avr.c (avr_current_device): New variable.
12567 (avr_arch_types, avr_mcu_types): Move to avr-deveces.c.
12568 (avr_arch, mcu_type_s): Move to avr.h.
12569 * config/avr/avr.h (base_arch_s). Add reserved2, arch_name and
12570 default_data_section_start fields.
12571 (avr_arch): Moved from avr.c.
12572 (mcu_type_s): Moved from avr.c. Add short_sp, data_section_start and
12573 library_name fields.
12574 (avr_current_device, avr_mcu_types, avr_arch_types,
12575 avr_device_to_arch, avr_device_to_data_start,
12576 avr_device_to_startfiles, avr_device_to_devicelib): Declare.
12577 (EXTRA_SPEC_FUNCTIONS): Define.
12578 (LINK_SPEC): Remove device name to '-m ...' and '-Tdata ...' linker
12579 options mapping. Use device_to_arch and device_to_data_start insted.
12580 (STARTFILE_SPEC): Use device_to_startfile instead of crt_binutils.
12581 (CRT_BINUTILS_SPECS, EXTRA_SPECS): Remove.
12582 * config/avr/t-avr (driver-avr.o, avr-devices.o): New rules.
12583 * config/avr/driver-avr.c: New file.
12584 * config/avr/avr-devices.c: New file.
12585
12586 2009-06-23 Jakub Jelinek <jakub@redhat.com>
12587
12588 * var-tracking.c (unshare_variable): Force initialized to
12589 be VAR_INIT_STATUS_INITIALIZED unless flag_var_tracking_uninit.
12590 (set_variable_part): Likewise.
12591 (struct variable_union_info): Remove pos_src field.
12592 (vui_vec, vui_allocated): New variables.
12593 (variable_union): Pass VAR_INIT_STATUS_UNKNOWN to unshare_variable
12594 unconditionally. Avoid XCVECNEW/free for every sorting, for dst_l
12595 == 1 use a simpler sorting algorithm. Compute pos field right
12596 away, don't fill in pos_src. For dst_l == 2 avoid qsort.
12597 Avoid quadratic comparison if !flag_var_tracking_uninit.
12598 (variable_canonicalize): Pass VAR_INIT_STATUS_UNKNOWN to
12599 unshare_variable unconditionally.
12600 (dataflow_set_different_2): Removed.
12601 (dataflow_set_different): Don't traverse second hash table.
12602 (compute_bb_dataflow): Pass VAR_INIT_STATUS_UNINITIALIZED
12603 unconditionally to var_reg_set or var_mem_set.
12604 (emit_notes_in_bb): Likewise.
12605 (delete_variable_part): Pass VAR_INIT_STATUS_UNKNOWN to
12606 unshare_variable.
12607 (emit_note_insn_var_location): Don't set initialized to
12608 VAR_INIT_STATUS_INITIALIZED early.
12609 (vt_finalize): Free vui_vec if needed, clear vui_vec and
12610 vui_allocated.
12611 * rtl.c (rtx_equal_p): Don't implement on top of rtx_equal_p_cb.
12612
12613 * tree-object-size.c (addr_object_size): Instead of checking
12614 for non-NULL TREE_CHAIN of the FIELD_DECL check that there
12615 are no FIELD_DECLs following it.
12616
12617 2009-06-23 Andreas Krebbel <krebbel1@de.ibm.com>
12618
12619 * tree-ssa-math-opts.c (find_bswap): Increase the search depth in
12620 order to match bswaps with signed source operands.
12621
12622 2009-06-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12623
12624 * sdbout.c (sdbout_one_type): Fix braces in switch.
12625
12626 2009-06-23 Richard Guenther <rguenther@suse.de>
12627
12628 * tree-ssa-structalias.c (struct variable_info): Add is_global_var
12629 member.
12630 (var_anything, anything_tree, var_nothing, nothing_tree, var_readonly,
12631 readonly_tree, var_escaped, escaped_tree, var_nonlocal, nonlocal_tree,
12632 var_callused, callused_tree, var_storedanything, storedanything_tree,
12633 var_integer, integer_tree): Remove global variables.
12634 (new_var_info): Do not pass new id, append the new var to the
12635 global variable vector.
12636 (do_ds_constraint): Use is_global_var member of the variable-info.
12637 (new_scalar_tmp_constraint_exp): Adjust.
12638 (create_function_info_for): Likewise.
12639 (create_variable_info_for): Likewise.
12640 (find_what_var_points_to): Remove dead code.
12641 (init_base_vars): Simplify.
12642 (compute_points_to_sets): Adjust.
12643
12644 2009-06-22 Adam Nemet <anemet@caviumnetworks.com>
12645
12646 * combine.c (try_combine): Dump information about the insns we're
12647 combining.
12648
12649 2009-06-22 Adam Nemet <anemet@caviumnetworks.com>
12650
12651 * combine.c (combine_simplify_rtx): Remove TRULY_NOOP_TRUNCATION
12652 check when calling force_to_mode on TRUNCATE's operand.
12653
12654 2009-06-22 Ian Lance Taylor <iant@google.com>
12655
12656 * config/rs6000/rs6000.opt: Move msched-epilog before msched-prolog.
12657
12658 2009-06-22 Steven Bosscher <steven@gcc.gnu.org>
12659
12660 * config/arm/arm.md (prologue_use): Set length of fake insn to 0.
12661
12662 2009-06-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12663
12664 * doc/invoke.texi (Link Options): -nodefaultlibs and -nostdlib
12665 override library linkage flags such as -static-libgcc or
12666 -shared-libgcc.
12667
12668 2009-06-22 Maxim Kuvyrkov <maxim@codesourcery.com>
12669
12670 * config/m68k/m68k-devices.def: Add line for MCF5221x.
12671
12672 2009-06-22 Ian Lance Taylor <iant@google.com>
12673
12674 * config/linux.opt: Put mglibc ahead of muclibc.
12675
12676 * c-decl.c (diagnose_mismatched_decls): Add -Wc++-compat warning
12677 for duplicate decls.
12678
12679 2009-06-22 Matthias Klose <doko@ubuntu.com>
12680
12681 * Makefile.in (install-plugin): Remove extra `/' after $(DESTDIR).
12682
12683 2009-06-22 Steven Bosscher <steven@gcc.gnu.org>
12684
12685 PR objc/28050
12686 * c-parser.c (c_parser_objc_message_args): Return error_mark_node
12687 instead of NULL if a parser error occurs.
12688
12689 2009-06-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12690
12691 * dwarf2out.c (dwarf2_debug_hooks): Initialize
12692 non-DWARF2_DEBUGGING_INFO version.
12693
12694 2009-06-22 Kai Tietz <kai.tietz@onevision.com>
12695
12696 * config.gcc (i[34567]86-*-mingw*, x86_64-*-mingw*): Add
12697 i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
12698
12699 * config/i386/mingw32.h (LIBGCC2_HAS_TF_MODE): Define.
12700 (LIBGCC2_TF_CEXT): Define.
12701 (TF_SIZE): Define.
12702
12703 2009-06-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12704
12705 PR target/40463
12706 * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Fix definition.
12707
12708 2009-06-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12709
12710 * config/arm/arm.c (arm_override_options): Disable
12711 -mcaller-super-interworking and -mcallee-super-interworking.
12712 * doc/invoke.texi (ARM Options): Document this.
12713
12714 2009-06-22 Nathan Sidwell <nathan@codesourcery.com>
12715
12716 * config/arm/arm.c (arm_print_operand): Deal with HIGH.
12717 * config/arm/constraints.md (j): New constraint for movw operands.
12718 (N): Remove thumb2 meaning.
12719 * config/arm/arm.md (*arm_movw): Delete.
12720 (*arm_movsi_insn): Use j constraint for movw instead of N constraint.
12721 * config/arm/vfp.md (*arm_movsi_vfp, *thumb2_movsi_vfp): Likewise.
12722 * config/arm/thumb2.md (*thumb2_movsi_insn): Likewise.
12723
12724 2009-06-22 Martin Jambor <mjambor@suse.cz>
12725
12726 PR tree-optimization/40492
12727 * tree-sra.c (sra_modify_assign): Pass zero offsets to
12728 build_ref_for_offset.
12729
12730 2009-06-22 Shujing Zhao <pearly.zhao@oracle.com>
12731
12732 * alias.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P, CALL_P, NOTE_P and
12733 JUMP_TABLE_DATA_P predicates where applicable.
12734 * auto-inc-dec.c: Ditto.
12735 * builtins.c: Ditto.
12736 * caller-save.c: Ditto.
12737 * calls.c: Ditto.
12738 * cfgcleanup.c: Ditto.
12739 * cfglayout.c: Ditto.
12740 * cfgrtl.c: Ditto.
12741 * combine.c: Ditto.
12742 * combine-stack-adj.c: Ditto.
12743 * cse.c: Ditto.
12744 * cselib.c: Ditto.
12745 * dbxout.c: Ditto.
12746 * df-scan.c: Ditto.
12747 * dse.c: Ditto.
12748 * dwarf2asm.c: Ditto.
12749 * dwarf2out.c: Ditto.
12750 * emit-rtl.c: Ditto.
12751 * except.c: Ditto.
12752 * explow.c: Ditto.
12753 * expmed.c: Ditto.
12754 * expr.c: Ditto.
12755 * final.c: Ditto.
12756 * function.c: Ditto.
12757 * fwprop.c: Ditto.
12758 * gcse.c: Ditto.
12759 * genpreds.c: Ditto.
12760 * genrecog.c: Ditto.
12761 * ifcvt.c: Ditto.
12762 * ira-costs.c: Ditto.
12763 * ira-lives.c: Ditto.
12764 * jump.c: Ditto.
12765 * loop-iv.c: Ditto.
12766 * lower-subreg.c: Ditto.
12767 * modulo-sched.c: Ditto.
12768 * optabs.c: Ditto.
12769 * postreload.c: Ditto.
12770 * print-rtl.c: Ditto.
12771 * recog.c: Ditto.
12772 * reginfo.c: Ditto.
12773 * regmove.c: Ditto.
12774 * reload1.c: Ditto.
12775 * reload.c: Ditto.
12776 * reorg.c: Ditto.
12777 * rtlanal.c: Ditto.
12778 * rtl.c: Ditto.
12779 * sched-vis.c: Ditto.
12780 * sdbout.c: Ditto.
12781 * sel-sched-ir.c: Ditto.
12782 * simplify-rtx.c: Ditto.
12783 * targhooks.c: Ditto.
12784 * var-tracking.c: Ditto.
12785 * vmsdbgout.c: Ditto.
12786
12787 2009-06-22 Matthias Klose <doko@ubuntu.com>
12788
12789 * Makefile.in (install-plugin): Always use DESTDIR.
12790
12791 2009-06-22 Olivier Hainque <hainque@adacore.com>
12792
12793 * config/pa/pa.c (output_call): Don't optimize post call jumps
12794 into return address adjustments if the call may throw.
12795
12796 2009-06-21 Richard Earnshaw <rearnsha@arm.com>
12797
12798 * arm.c (thumb1_output_casesi): New function.
12799 * arm.h (CASE_VECTOR_PC_RELATIVE): Thumb-1 code is also relative if
12800 optimizing for size or PIC.
12801 (CASE_VECTOR_SHORTEN_MODE): Handle thumb-1.
12802 * arm.md (UNSPEC_THUMB1_CASESI): New constant.
12803 (casesi): Handle Thumb-1 when optimizing for size or PIC.
12804 (thumb1_casesi_internal_pic): New expand rule.
12805 (thumb1_casesi_dispatch): New pattern.
12806 * aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use shortened vectors for
12807 thumb-1 mode.
12808 * coff.h (JUMP_TABLES_IN_TEXT_SECTION): Thumb-1 jump tables are now
12809 in the text seciton when PIC or optimizing for size.
12810 * elf.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
12811 * lib1funcs.asm ([__ARM_EABI__]): Add an attribute describing stack
12812 preservation properties of code.
12813 (__gnu_thumb1_case_sqi, __gnu_thumb1_case_uqi): New functions.
12814 (__gnu_thumb1_case_shi, __gnu_thumb1_case_uhi): New functions.
12815 (__gnu_thumb1_case_si): New function.
12816 * t-arm (LIB1ASMSRC): Define here.
12817 (LIB1ASMFUNCS): Add some common functions.
12818 * t-arm-elf (LIB1ASMSRC): Delete.
12819 (LIB1ASMFUNCS): Append to existing set.
12820 * t-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
12821 * t-strongarm-elf (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
12822 * t-symbian (LIB1ASMFUNCS): Likewise.
12823 * t-vxworks (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
12824 * t-wince-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
12825
12826 2009-06-21 Richard Guenther <rguenther@suse.de>
12827
12828 PR tree-optimization/38729
12829 * tree-ssa-loop-niter.c (find_loop_niter_by_eval): Restrict
12830 to loops with a single exit if -fno-expensive-optimizations.
12831
12832 2009-06-21 Jakub Jelinek <jakub@redhat.com>
12833
12834 * var-tracking.c (struct shared_hash_def, shared_hash): New types.
12835 (dataflow_set): Change vars type from htab_t to shared_hash.
12836 (shared_hash_pool, empty_shared_hash): New variables.
12837 (vars_clear): Removed.
12838 (shared_hash_shared, shared_hash_htab, shared_hash_copy,
12839 shared_hash_find_slot_unshare, shared_hash_find_slot,
12840 shared_hash_find_slot_noinsert, shared_hash_find): New
12841 static inlines.
12842 (shared_hash_unshare, shared_hash_destroy): New functions.
12843 (unshare_variable): Unshare set->vars if shared, use
12844 shared_hash_htab.
12845 (vars_copy): Use htab_traverse_noresize instead of htab_traverse.
12846 (get_init_value, find_src_set_src, dump_dataflow_set,
12847 clobber_variable_part, emit_notes_for_differences): Use
12848 shared_hash_htab.
12849 (dataflow_set_init): Remove second argument, set vars to
12850 empty_shared_hash instead of creating a new htab.
12851 (dataflow_set_clear): Call shared_hash_destroy and set vars
12852 to empty_shared_hash instead of calling vars_clear.
12853 (dataflow_set_copy): Don't call vars_copy, instead just share
12854 the src htab with dst.
12855 (variable_union): Use shared_hash_*, use initially NO_INSERT
12856 lookup if set->vars is shared. Don't keep slot cleared before
12857 calling unshare_variable. Unshare set->vars if needed.
12858 Even ->refcount == 1 vars must be unshared if set->vars is shared
12859 and var needs to be modified.
12860 (variable_canonicalize): New function.
12861 (dataflow_set_union): If dst->vars is empty, just share src->vars
12862 with dst->vars and traverse with variable_canonicalize to canonicalize
12863 and unshare what is needed.
12864 (dataflow_set_different): If old_set and new_set use the same shared
12865 htab, they aren't different. If number of htab elements is different,
12866 htabs are different. Use shared_hash_*.
12867 (dataflow_set_destroy): Call shared_hash_destroy instead of
12868 htab_delete.
12869 (compute_bb_dataflow, emit_notes_in_bb, vt_emit_notes): Don't pass
12870 second argument to dataflow_set_init.
12871 (vt_initialize): Likewise. Initialize shared_hash_pool and
12872 empty_shared_hash, move bb in/out initialization afterwards.
12873 Use variable_htab_free instead of NULL as changed_variables del hook.
12874 (variable_was_changed): Change type of second argument to pointer to
12875 dataflow_set. When inserting var into changed_variables, bump
12876 refcount. Unshare set->vars if set is shared htab and slot needs to
12877 be cleared.
12878 (set_variable_part): Use shared_hash_*, use initially NO_INSERT
12879 lookup if set->vars is shared. Unshare set->vars if needed.
12880 Even ->refcount == 1 vars must be unshared if set->vars is shared
12881 and var needs to be modified. Adjust variable_was_changed caller.
12882 (delete_variable_part): Use shared_hash_*. Even ->refcount == 1
12883 vars must be unshared if set->vars is shared and var needs to be
12884 modified. Adjust variable_was_changed caller.
12885 (emit_note_insn_var_location): Don't pool_free var.
12886 (emit_notes_for_differences_1): Initialize empty_var->refcount to 0
12887 instead of 1.
12888 (vt_finalize): Call htab_delete on empty_shared_hash->htab and
12889 free_alloc_pool on shared_hash_pool.
12890
12891 2009-06-20 Anthony Green <green@moxielogic.com>
12892
12893 * config/moxie/sfp-machine.h (__gcc_CMPtype, CMPtype): Define.
12894 * config/moxie/moxie.h (LOAD_EXTEND_OP): Define.
12895
12896 2009-06-20 Richard Guenther <rguenther@suse.de>
12897
12898 * tree-ssa-structalias.c (find_func_aliases): For memset use
12899 a constraint from NULL if we memset to zero.
12900 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Add builtins
12901 we explicitly handle that do not read from memory.
12902 (call_may_clobber_ref_p_1): Properly handle builtins that may
12903 set errno.
12904
12905 2009-06-20 Richard Guenther <rguenther@suse.de>
12906
12907 PR tree-optimization/40495
12908 * tree-ssa-structalias.c (get_constraint_exp_for_temp): Remove.
12909 (new_scalar_tmp_constraint_exp): New function.
12910 (process_constraint): Do not create temporary decls.
12911 (process_all_all_constraints): Likewise.
12912 (handle_const_call): Likewise.
12913 (create_function_info_for): Do not set decl.
12914
12915 2009-06-19 Ian Lance Taylor <iant@google.com>
12916
12917 * config/rs6000/rs6000.c (rs6000_explicit_options): Make static.
12918 (rs6000_attribute_table): Make static; move before use.
12919
12920 2009-06-19 Eric Botcazou <ebotcazou@adacore.com>
12921
12922 * tree.c (substitute_in_expr) <COMPONENT_REF>: Tweak and reformat.
12923 <tcc_vl_exp>: Call process_call_operands on the new CALL_EXPR.
12924 Propagate the TREE_READONLY flag without overwriting it.
12925 (substitute_placeholder_in_expr) <tcc_vl_exp>: Likewise.
12926 Propagate the TREE_READONLY flag onto the result.
12927 (process_call_operands): Move around. Use correct constant value.
12928
12929 2009-06-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12930
12931 PR target/40482
12932 * config/arm/arm.c (thumb_shiftable_const): Truncate val to 32 bits.
12933 * config/arm/arm.md: Likewise.
12934
12935 2009-06-19 Ian Lance Taylor <iant@google.com>
12936
12937 * tree-cfg.c (gimple_redirect_edge_and_branch): Change ERROR_MARK
12938 to GIMPLE_ERROR_MARK.
12939
12940 * c-typeck.c (build_conditional_expr): Add op1_original_type and
12941 op2_original_type parameters. Warn about using different enum types.
12942 * c-parser.c (c_parser_conditional_expression): Pass original
12943 types to build_conditional_expr.
12944 * c-tree.h (build_conditional_expr): Update declaration.
12945
12946 2009-06-19 Ian Lance Taylor <iant@google.com>
12947
12948 * config/i386/i386.c (ix86_function_specific_save): Test that
12949 fields match values, rather than testing the values are in a
12950 certain range.
12951
12952 2009-06-19 Richard Guenther <rguenther@suse.de>
12953
12954 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
12955 ADDR_EXPR pointers.
12956 (ptr_derefs_may_alias_p): Likewise.
12957 (ptr_deref_may_alias_ref_p_1): New function.
12958 (ptr_deref_may_alias_ref_p): Likewise.
12959 (ref_maybe_used_by_call_p_1): Handle builtins that are not
12960 covered by looking at the ESCAPED solution.
12961 (call_may_clobber_ref_p_1): Likewise.
12962 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
12963 Handle NULL_TREE offset. Do not produce redundant constraints.
12964 (process_all_all_constraints): New helper function.
12965 (do_structure_copy): Use it.
12966 (handle_lhs_call): Likewise.
12967 (find_func_aliases): Handle some builtins with pointer arguments
12968 and/or return values explicitly.
12969
12970 2009-06-19 Ian Lance Taylor <iant@google.com>
12971
12972 * varasm.c (const_rtx_hash_1): Remove const qualifier from shift.
12973
12974 2009-06-19 Ian Lance Taylor <iant@google.com>
12975
12976 * rtl.h (SUBREG_PROMOTED_UNSIGNED_P): Add cast to int.
12977
12978 2009-06-19 Ian Lance Taylor <iant@google.com>
12979
12980 * ggc-page.c (ggc_pch_write_object): Initialize emptyBytes.
12981 * sdbout.c (sdb_debug_hooks): Initialize non-SDB_DEBUGGING_INFO
12982 version.
12983
12984 * c-decl.c (finish_decl): If -Wc++-compat, warn about
12985 uninitialized const.
12986
12987 2009-06-19 Ian Lance Taylor <iant@google.com>
12988
12989 * dse.c (struct store_info): Rename bitmap field to bmap. Change
12990 all uses.
12991
12992 * c-decl.c (in_struct, struct_types): Remove.
12993 (struct c_binding): Add in_struct field.
12994 (c_binding_ptr): Define type, along with VEC.
12995 (struct c_struct_parse_info): Define.
12996 (struct_parse_info): New static variable.
12997 (bind): Initialize in_struct field.
12998 (start_struct): Remove enclosing_in_struct and
12999 enclosing_struct_types parameters. Add
13000 enclosing_struct_parse_info parameter. Change all callers. Set
13001 struct_parse_info rather than in_struct and struct_types.
13002 (grokfield): If -Wc++-compat and there is a symbol binding for the
13003 field name, set the in_struct flag and push it on the
13004 struct_parse_info->fields vector.
13005 (warn_cxx_compat_finish_struct): New static function.
13006 (finish_struct): Remove enclosing_in_struct and
13007 enclosing_struct_types parameters. Add
13008 enclosing_struct_parse_info parameter. Change all callers. Don't
13009 set C_TYPE_DEFINED_IN_STRUCT here. Call
13010 warn_cxx_compat_finish_struct. Free struct_parse_info and set to
13011 parameter. Only push on struct_types if warn_cxx_compat.
13012 (finish_enum): Only push on struct_types if warn_cxx_compat.
13013 (declspecs_add_type): Add loc parameter. Change all callers.
13014 Change all error calls to error_at. Pass loc, not input_location,
13015 to pedwarn calls. Warn if -Wc++-compat and a typedef name is
13016 defined in a struct. If -Wc++-compat and parsing a struct, record
13017 that a typedef name was used.
13018 * c-parser.c (c_parser_declspecs): Get location to pass to
13019 declspecs_add_type.
13020 (c_parser_struct_or_union_specifier): Update calls to start_struct
13021 and finish_struct.
13022 * c-tree.h (struct c_struct_parse_info): Declare.
13023 (finish_struct, start_struct): Update declarations.
13024 (declspecs_add_type): Update declaration.
13025
13026 2009-06-19 Ian Lance Taylor <iant@google.com>
13027
13028 * c-decl.c (grokdeclarator): If -Wc++-compat, warn about a global
13029 variable with an anonymous type.
13030
13031 2009-06-19 Uros Bizjak <ubizjak@gmail.com>
13032
13033 * see.c: Remove for real.
13034
13035 2009-06-19 Uros Bizjak <ubizjak@gmail.com>
13036
13037 * optabs.h (enum optab_index): Add new OTI_significand.
13038 (significand_optab): Define corresponding macro.
13039 * optabs.c (init_optabs): Initialize significand_optab.
13040 * genopinit.c (optabs): Implement significand_optab using
13041 significand?f2 patterns.
13042 * builtins.c (expand_builtin_mathfn): Handle
13043 BUILT_IN_SIGNIFICAND{,F,L}.
13044 (expand_builtin): Expand BUILT_IN_SIGNIFICAND{,F,L} using
13045 expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
13046
13047 * config/i386/i386.md (significandxf2, significand<mode>2): New
13048 expanders to implement significandf, significand and significandl
13049 built-ins as inline x87 intrinsics.
13050
13051 2009-06-18 Anatoly Sokolov <aesok@post.ru>
13052
13053 * config/avr/avr.c (avr_override_options): Remove setting value of
13054 PARAM_INLINE_CALL_COST.
13055
13056 2009-06-18 Richard Henderson <rth@redhat.com>
13057
13058 PR 40488
13059 * tree-pass.h (TDF_ASMNAME): New.
13060 * tree-dump.c (dump_options): Add asmname.
13061 * doc/invoke.texi: Document it.
13062
13063 * tree-pretty-print.c (maybe_dump_asm_name): Merge into...
13064 (dump_decl_name): ...here.
13065 (dump_function_name): New flags arg; mind TDF_ASMNAME.
13066 (dump_generic_node): Update dump_function_name calls.
13067 (print_call_name): New flags arg; update all dump calls.
13068 * diagnostic.h (print_call_name): Update.
13069 * gimple-pretty-print.c (dump_gimple_call): Update.
13070
13071 2009-06-18 H.J. Lu <hongjiu.lu@intel.com>
13072
13073 PR target/40470
13074 * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Add SSE_FIRST_REG.
13075
13076 2009-06-18 Diego Novillo <dnovillo@google.com>
13077
13078 * doc/plugins.texi: Document plugin_is_GPL_compatible.
13079 * plugin.c (str_license): Declare.
13080 (try_init_one_plugin): Assert that the symbol
13081 'plugin_is_GPL_compatible' exists.
13082
13083 2009-06-18 Sergei Dyshel <sergeid@il.ibm.com>
13084
13085 * see.c: Remove.
13086 * Makefile.in (OBJS-common): Remove see.o.
13087 (see.o): Remove.
13088 * common.opt (fsee): Mark as preserved for backward compatibility.
13089 * opts.c (common_handle_option): Add OPT_fsee to the backward
13090 compatibility section.
13091 * passes.c (init_optimization_passes, pass_see): Remove pass.
13092 * timevar.def (TV_SEE): Remove.
13093 * tree-pass.h (pass_see): Remove declaration.
13094 * doc/invoke.texi (-fsee): Remove documentation.
13095
13096 2009-06-18 Martin Jambor <mjambor@suse.cz>
13097
13098 * tree-sra.c: Include statistics.h
13099 (sra_stats): New variable.
13100 (sra_initialize): Clear sra_stats.
13101 (create_access_replacement): Increment sra_stats.replacements.
13102 (get_access_replacement): Do not return twice.
13103 (analyze_all_variable_accesses): Increment statistics counter by the
13104 number of scalarized aggregates.
13105 (generate_subtree_copies): Increment sra_stats.subtree_copies.
13106 (sra_modify_expr): Increment sra_stats.exprs.
13107 (load_assign_lhs_subreplacements): Increment sra_stats.subreplacements.
13108 (sra_modify_assign): Increment sra_stats.exprs,
13109 sra_stats.separate_lhs_rhs_handling and sra_stats.deleted.
13110 (perform_intra_sra): Update statistics counters.
13111 * Makefile.in (tree-sra.o): Add statistics.h to dependencies.
13112
13113 2009-06-18 Sandra Loosemore <sandra@codesourcery.com>
13114
13115 * config/arm/arm.c (TARGET_SCALAR_MODE_SUPPORTED_P): Redefine.
13116 (arm_scalar_mode_supported_p): New function.
13117
13118 2009-06-18 Paul Brook <paul@codesourcery.com>
13119 Sandra Loosemore <sandra@codesourcery.com>
13120
13121 * config/arm/sfp-machine.h (_FP_NANFRAC_H, _FP_NANSIGN_H): Define.
13122 (__extendhfsf2, __truncsfhf2): Define.
13123 * config/arm/fp16.c: New file.
13124 * config/arm/t-bpabi (LIB2FUNCS_STATIC_EXTRA): Add fp16.c.
13125 * config/arm/t-symbian (LIB2FUNCS_STATIC_EXTRA): Add fp16.c.
13126
13127 2009-06-18 Sandra Loosemore <sandra@codesourcery.com>
13128
13129 * doc/extend.texi (Half-Precision): New section.
13130 * doc/invoke.texi (Option Summary): List -mfp16-format.
13131 (ARM Options): List neon-fp16 as -mfpu value. Document -mfp16-format.
13132 * config/arm/arm.opt (mfp16-format=): New.
13133 * config/arm/arm.c: Include intl.h.
13134 (TARGET_INVALID_PARAMETER_TYPE): Redefine.
13135 (TARGET_INVALID_RETURN_TYPE): Redefine.
13136 (TARGET_PROMOTED_TYPE): Redefine.
13137 (TARGET_CONVERT_TO_TYPE): Redefine.
13138 (arm_fp16_format): Define.
13139 (all_fpus): Add entry for neon-fp16.
13140 (fp_model_for_fpu): Likewise.
13141 (struct fp16_format): Declare.
13142 (all_fp16_formats): Define.
13143 (arm_init_libfuncs): Add entries for HFmode conversions and arithmetic
13144 functions.
13145 (arm_override_options): Set arm_fp16_format. Call sorry for fp16
13146 and no ldrh.
13147 (arm_legitimate_index_p): Treat HFmode like HImode.
13148 (thumb1_legitimate_address_p): Make it recognize HFmode constants.
13149 (coproc_secondary_reload_class): Special-case HFmode.
13150 (arm_print_operand): Add 'z' specifier for vld1.16/vst1.16.
13151 (arm_hard_regno_mode_ok): Allow HFmode values in VFP registers.
13152 (arm_init_fp16_builtins): New.
13153 (arm_init_builtins): Call it.
13154 (arm_invalid_parameter_type): New.
13155 (arm_invalid_return_type): New.
13156 (arm_promoted_type): New.
13157 (arm_convert_to_type).
13158 (arm_file_start): Deal with neon-fp16 as fpu_name. Emit tag for fp16
13159 format.
13160 (arm_emit_fp16_const): New function.
13161 (arm_mangle_type): Mangle __fp16 as "Dh".
13162 * config/arm/arm.h (TARGET_VFPD32): Make it know about
13163 FPUTYPE_NEON_FP16.
13164 (TARGET_NEON_FP16): New.
13165 (TARGET_NEON): Make it know about FPUTYPE_NEON_FP16.
13166 (enum fputype): Add FPUTYPE_NEON_FP16.
13167 (enum arm_fp16_format_type): Declare.
13168 (arm_fp16_format): Declare.
13169 (LARGEST_EXPONENT_IS_NORMAL): Define.
13170 * config/arm/arm-protos.h (arm_emit_fp16_const): Declare.
13171 * config/arm/arm-modes.def (HFmode): Define.
13172 * config/arm/vfp.md: (*movhf_vfp): New.
13173 (extendhfsf2): New.
13174 (truncsfhf2): New.
13175 * config/arm/arm.md: (fpu): Add neon_fp16.
13176 (floatsihf2, floatdihf2): New.
13177 (fix_trunchfsi2, fix_trunchfdi2): New.
13178 (truncdfhf2): New.
13179 (extendhfdf2): New.
13180 (movhf): New.
13181 (*arm32_movhf): New.
13182 (*thumb1_movhf): New.
13183 (consttable_2): Add check for HFmode constants.
13184 (consttable_4): Handle HFmode constants.
13185
13186 2009-06-18 Uros Bizjak <ubizjak@gmail.com>
13187
13188 * convert.c (convert_to_integer): Convert (int)logb() into ilogb().
13189
13190 2009-06-17 Olivier Hainque <hainque@adacore.com>
13191
13192 * collect2.c (main): Use CONST_CAST2 to perform char ** to
13193 const char ** conversion in AIX specific section.
13194
13195 2009-06-17 H.J. Lu <hongjiu.lu@intel.com>
13196
13197 * config/i386/i386.c (ix86_special_builtin_type): Remove
13198 UINT64_FTYPE_PINT. Add UINT64_FTYPE_PUNSIGNED.
13199 (bdesc_special_args): Updated.
13200 (ix86_init_mmx_sse_builtins): Likewise.
13201 (ix86_expand_special_args_builtin): Likewise.
13202
13203 2009-06-17 Richard Henderson <rth@redhat.com>
13204
13205 * tree-pretty-print.c (maybe_dump_asm_name): New.
13206 (dump_decl_name): Use it.
13207 (PRINT_FUNCTION_NAME): Merge into...
13208 (dump_function_name): ... here. Use maybe_dump_asm_name.
13209
13210 2009-06-17 Cary Coutant <ccoutant@google.com>
13211
13212 * dbxout.c (dbxout_source_line): Add is_stmt parameter.
13213 Change caller.
13214 * debug.c (struct gcc_debug_hooks): Change placeholder for
13215 source_line hook.
13216 (debug_nothing_int_charstar_int): Replaced by...
13217 (debug_nothing_int_charstar_int_bool): ...this.
13218 * debug.h (struct gcc_debug_hooks): Add is_stmt parameter to
13219 source_line prototype.
13220 (debug_nothing_int_charstar_int): Replaced by...
13221 (debug_nothing_int_charstar_int_bool): ...this.
13222 * defaults.h (SUPPORTS_DISCRIMINATOR): New constant.
13223 * dwarf2out.c (dwarf2out_source_line): Add is_stmt parameter.
13224 Output is_stmt operand when necessary.
13225 * final.c (final_scan_insn): Pass is_stmt to source_line debug hook.
13226 (notice_source_line): Add is_stmt parameter.
13227 * sdbout.c (sdbout_source_line): Add is_stmt parameter.
13228 * vmsdbgout.c (vmsdbgout_source_line): Add is_stmt parameter.
13229 Change callers.
13230 * xcoffout.c (xcoffout_source_line): Add is_stmt parameter.
13231 * xcoffout.h (xcoffout_source_line): Add is_stmt parameter.
13232
13233 2009-06-17 Ian Lance Taylor <iant@google.com>
13234
13235 * expr.c (struct move_by_pieces_d): Rename from move_by_pieces.
13236 Change all uses.
13237 (struct store_by_pieces_d): Rename from store_by_pieces. Change
13238 call uses.
13239
13240 2009-06-17 Adam Nemet <anemet@caviumnetworks.com>
13241
13242 * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS,
13243 STRIP_USELESS_TYPE_CONVERSION): Use tree_strip_nop_conversions,
13244 tree_strip_sign_nop_conversions and
13245 tree_ssa_strip_useless_type_conversions rather than stripping
13246 the operations here.
13247 (tree_strip_nop_conversions, tree_strip_sign_nop_conversions):
13248 Declare them.
13249 * gimple.h (tree_ssa_strip_useless_type_conversions): Declare it.
13250 * tree-ssa.c (tree_ssa_strip_useless_type_conversions): New function.
13251 * tree.c (tree_nop_conversion, tree_sign_nop_conversion,
13252 tree_strip_nop_conversions, tree_strip_sign_nop_conversions): New
13253 functions.
13254
13255 2009-06-17 Michael Eager <eager@eagercon.com>
13256
13257 * config/rs6000/constraints.md (register_constraint "d"): New.
13258 * config/rs6000/dfp.md (movsd_store, extendsddd2, extendsdtd2,
13259 truncddsd2, *negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
13260 *movdd_hardfloat32, *movdd_hardfloat64_mfpgpr, *movdd_hardfloat64,
13261 *negtd2_fp, *abstd2_fpr, *nabstd2_fpr, *movtd_internal, extendddtd2,
13262 trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
13263 divtd3, *cmpdd_internal1, *cmptd_internal1, floatditd2, ftruncdd2,
13264 fixdddi2, ftrunctd2, fixtddi2): replace 'f' constraint with 'd'
13265 * config/rs6000/ppu_intrinsics.h (__mffs, __mtfsf, __mtfsfi, __fabs,
13266 __fnabs, __fmadd, __fmsub, __fnmadd, __fnmsub, __fsel, __frsqrte,
13267 __fsqrt, __fmul, __fmuls, __frsp, __fcfid, __fctid, __fctidz, __fctiw,
13268 __fctiwz): Same.
13269 * config/rs6000/rs6000.md (*extendsfdf2_fpr, *truncdfsf2_fpr,
13270 *fseldfsf4, *negdf2_fpr, *absdf2_fpr, *nabsdf2_fpr, *adddf3_fpr,
13271 *subdf3_fpr, *muldf3_fpr, *divdf3_fpr, recipdf3, fred, sqrtdf2,
13272 *fseldfdf4, *fselsfdf4, *floatsidf2_internal, *floatunssidf2_internal,
13273 *fix_truncdfsi2_internal, fix_truncdfsi2_internal_gfxopt,
13274 fix_truncdfsi2_mfpgpr, fctiwz, btruncdf2, ceildf2, floordf2, rounddf2,
13275 stfiwx, floatdidf2, fix_truncdfdi2, floatdisf2_internal1,
13276 *movdf_hardfloat32, *movdf_hardfloat64_mfpgpr, *movdf_hardfloat64,
13277 *movtf_internal, *extenddftf2_internal, trunctfdf2_internal1,
13278 trunctfdf2_internal2, trunctfsf2_fprs, fix_trunc_helper,
13279 *fix_trunctfsi2_internal, negtf2_internal, *movdi_internal32,
13280 *movdi_mfpgpr, *movdi_internal64, *movdf_update1, *movdf_update2,
13281 *cmpdf_internal1, *cmptf_internal1, *cmptf_internal2): Same.
13282 * doc/md.texi: Describe PowerPC 'd' constraint, update 'f' constraint.
13283
13284 2009-06-16 Ian Lance Taylor <iant@google.com>
13285
13286 * profile.c (total_num_never_executed): Don't define.
13287 (compute_branch_probabilities): Don't count or print
13288 num_never_executed.
13289 (init_branch_prob): Don't set total_num_never_executed.
13290 (end_branch_prob): Don't print total_num_never_executed.
13291
13292 2009-06-17 David Daney <ddaney@caviumnetworks.com>
13293
13294 * jump.c (cleanup_barriers): Handle case of no insns before a barrier.
13295
13296 2009-06-17 David Edelsohn <edelsohn@gnu.org>
13297
13298 * config/rs6000/dfp.md (nabsdd2_fpr): Correct mode.
13299 (nabstd2_fpr): Same.
13300
13301 2009-06-17 Steve Ellcey <sje@cup.hp.com>
13302
13303 * expr.c (expand_assignment): Change complex type check.
13304
13305 2009-06-17 Basile Starynkevitch <basile@starynkevitch.net>
13306
13307 * doc/plugins.texi (Building GCC plugins): Added new section.
13308
13309 2009-06-17 Ian Lance Taylor <iant@google.com>
13310
13311 * c-pch.c (get_ident): Don't set size of templ array.
13312 (pch_init): Don't set size of partial_pch array.
13313
13314 * c-typeck.c (digest_init): If -Wc++-compat, warn about using a
13315 string constant to intialize an array whose size is the length of
13316 the string.
13317
13318 2009-06-17 Richard Guenther <rguenther@suse.de>
13319
13320 PR tree-optimization/40389
13321 * tree-ssa-structalias.c (handle_rhs_call): Restrict NRV case
13322 to addressable types.
13323 * gimple.c (walk_stmt_load_store_addr_ops): Likewise.
13324
13325 2009-06-17 Richard Guenther <rguenther@suse.de>
13326
13327 PR middle-end/40460
13328 * tree-chrec.h (build_polynomial_chrec): If we cannot determine
13329 if there is no evolution of left in the loop bail out.
13330 * tree-chrec.c (chrec_fold_multiply_poly_poly): CSE one
13331 chrec_fold_multiply.
13332
13333 2009-06-16 J"orn Rennecke <joern.rennecke@arc.com>
13334 Janis Johnson <janis187@us.ibm.com>
13335
13336 PR target/39254
13337 * config/rs6000/rs6000.c (rs6000_emit_move): Don't emit a USE
13338 for the symbol ref of a constant that is the source of a move
13339 - nor for any other not-obvious-label-ref constants.
13340
13341 2009-06-16 Olatunji Ruwase <tjruwase@google.com>
13342
13343 * plugin.c (position_pass): Skip newly inserted pass during list
13344 traversal to avoid repeated insertion.
13345
13346 2009-06-16 Ian Lance Taylor <iant@google.com>
13347
13348 * vec.h (VEC_stack_alloc): Define different version if
13349 GATHER_STATISTICS is defined, to accept and ignore MEM_STAT.
13350 (DEF_VEC_ALLOC_FUNC_P_STACK): Remove MEM_STAT_DECL.
13351 (DEF_VEC_ALLOC_FUNC_O_STACK): Likewise.
13352 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
13353
13354 2009-06-16 H.J. Lu <hongjiu.lu@intel.com>
13355
13356 * config.gcc (extra_headers): Add ia32intrin.h for x86.
13357
13358 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_BSRSI,
13359 IX86_BUILTIN_BSRDI. IX86_BUILTIN_RDPMC, IX86_BUILTIN_RDTSC.
13360 IX86_BUILTIN_RDTSCP. IX86_BUILTIN_ROLQI, IX86_BUILTIN_ROLHI,
13361 IX86_BUILTIN_RORQI and IX86_BUILTIN_RORHI.
13362 (ix86_special_builtin_type): Add UINT64_FTYPE_VOID,
13363 UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
13364 INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
13365 (bdesc_special_args): Add __builtin_ia32_rdtsc and
13366 __builtin_ia32_rdtscp.
13367 (bdesc_args): Add __builtin_ia32_bsrsi, __builtin_ia32_bsrdi,
13368 __builtin_ia32_rolqi, __builtin_ia32_rolhi, __builtin_ia32_rorqi
13369 and __builtin_ia32_rorhi.
13370 (ix86_init_mmx_sse_builtins): Handle UINT64_FTYPE_VOID,
13371 UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
13372 INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
13373 (ix86_expand_args_builtin): Likewise.
13374 (ix86_expand_special_args_builtin): Likewise.
13375
13376 * config/i386/i386.md (UNSPECV_RDTSCP): New.
13377 (UNSPECV_RDTSC): Likewise.
13378 (UNSPECV_RDPMC): Likewise.
13379 (*bsr): Renamed to ...
13380 (bsr): This
13381 (*bsr_rex64): Renamed to ...
13382 (bsr_rex64): This.
13383 (rdpmc): New.
13384 (*rdpmc): Likewise.
13385 (*rdpmc_rex64): Likewise.
13386 (rdtsc): Likewise.
13387 (*rdtsc): Likewise.
13388 (*rdtsc_rex64): Likewise.
13389 (rdtscp): Likewise.
13390 (*rdtscp): Likewise.
13391 (*rdtscp_rex64): Likewise.
13392
13393 * config/i386/ia32intrin.h: New.
13394
13395 * config/i386/x86intrin.h: Include <ia32intrin.h>.
13396
13397 2009-06-16 Ian Lance Taylor <iant@google.com>
13398
13399 * ira-build.c (copy_info_to_removed_store_destinations):
13400 Initialize parent_a.
13401
13402 2009-06-16 Ian Lance Taylor <iant@google.com>
13403
13404 * c-decl.c (grokdeclarator): Change size_varies to bool.
13405
13406 2009-06-16 Ian Lance Taylor <iant@google.com>
13407
13408 * sel-sched.c: Make forward declarations of move_op_hooks and
13409 fur_hooks explicitly extern.
13410
13411 2009-06-16 Ian Lance Taylor <iant@google.com>
13412
13413 * df-problems.c (df_byte_lr_alloc): Don't set problem_data to itself.
13414 * vec.c (vec_gc_o_reserve_1): Don't set alloc to itself.
13415
13416 2009-06-16 Ian Lance Taylor <iant@google.com>
13417
13418 * resource.c (mark_referenced_resources): Change
13419 include_delayed_effects parameter to bool. Change all callers.
13420 (mark_end_of_function_resources): Likewise.
13421 * reorg.c (insn_references_resource_p): Likewise.
13422 (insn_sets_resource_p): Likewise.
13423 * resource.h (mark_referenced_resources): Update declaration.
13424 (mark_end_of_function_resources): Update declaration.
13425
13426 2009-06-16 David Edelsohn <edelsohn@gnu.org>
13427
13428 * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove -lstdc++.
13429
13430 2009-06-16 David Edelsohn <edelsohn@gnu.org>
13431
13432 * doc/install.texi (*-*-aix): Update explanation of XLC bootstrap.
13433 GCC can bootstrap on AIX with GNU Binutils 2.20.
13434
13435 2009-06-16 Ian Lance Taylor <iant@google.com>
13436
13437 * Makefile.in (tree-vect-stmts.o): Depend upon $(TOPLEV_H).
13438
13439 2009-06-16 Ian Lance Taylor <iant@google.com>
13440
13441 * toplev.h (floor_log2): If GCC_VERSION >= 3004, declare as static
13442 inline, not extern inline.
13443 (exact_log2): Likewise.
13444 * toplev.c (floor_log2): Only define if GCC_VERSION < 3004. Don't
13445 test CLZ_HWI.
13446 (exact_log2): Likewise, but don't test CTZ_HWI.
13447
13448 2009-06-16 Ian Lance Taylor <iant@google.com>
13449
13450 * bitmap.c (bitmap_clear): Don't declare as inline.
13451 * gimple.c (gimplify_assign): Likewise.
13452 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
13453 * haifa-sched.c (insn_cost): Don't declare with HAIFA_INLINE.
13454 (sched_scan_info): Remove duplicate definition.
13455
13456 2009-06-16 Ian Lance Taylor <iant@google.com>
13457
13458 * c-common.c (skip_evaluation): Don't define.
13459 (c_inhibit_evaluation_warnings): Define global variable.
13460 (overflow_warning): Check c_inhibit_evaluation_warnings rather
13461 than skip_evaluation.
13462 (convert_and_check, warn_for_div_by_zero): Likewise.
13463 * c-common.h (skip_evaluation): Don't declare.
13464 (c_inhibit_evaluation_warnings): Declare.
13465 * c-parser.c (c_parser_typeof_specifier): Set
13466 c_inhibit_evaluation_warnings rather than skip_evaluation.
13467 (c_parser_conditional_expression): Likewise.
13468 (c_parser_binary_expression): Likewise.
13469 (c_parser_sizeof_expression): Likewise.
13470 (c_parser_alignof_expression): Likewise.
13471 * c-typeck.c (build_indirect_ref): Check
13472 c_inhibit_evaluation_warnings rather than skip_evaluation.
13473 (build_conditional_expr, build_binary_op): Likewise.
13474
13475 2009-06-16 Richard Guenther <rguenther@suse.de>
13476
13477 * tree-ssa-alias.c (is_escape_site): Remove.
13478 * tree-ssa-alias.h (enum escape_type): Remove.
13479 (is_escape_site): Likewise.
13480 * tree-ssa-structalias.c (find_func_aliases): Handle escapes
13481 via casts and asms without deferring to is_escape_site.
13482
13483 2009-06-16 Jakub Jelinek <jakub@redhat.com>
13484
13485 PR middle-end/40446
13486 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: Don't
13487 use gen_lowpart if op0 has complex mode.
13488
13489 2009-06-16 Richard Guenther <rguenther@suse.de>
13490
13491 * tree-ssa-structalias.c (do_ds_constraint): Stores in global
13492 variables add them to ESCAPED.
13493 (find_func_aliases): Do not make all indirectly stored values escaped.
13494
13495 2009-06-16 Rafael Avila de Espindola <espindola@google.com>
13496
13497 * config/i386/winnt.c (i386_pe_encode_section_info): Update call to
13498 make_decl_one_only.
13499
13500 2009-06-16 Martin Jambor <mjambor@suse.cz>
13501
13502 PR tree-optimization/40432
13503 * tree-sra.c (sra_modify_assign): When creating VIEW_CONVERT_EXPR,
13504 check whether we need to force gimple register operand.
13505
13506 2009-06-16 Martin Jambor <mjambor@suse.cz>
13507
13508 PR tree-optimization/40413
13509 * tree-sra.c (load_assign_lhs_subreplacements): Pass offset to
13510 build_ref_for_offset.
13511 (propagate_subacesses_accross_link): Fix a typo in a comment.
13512
13513 2009-06-16 Ira Rosen <irar@il.ibm.com>
13514
13515 * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
13516 with additional parameter.
13517 * tree-vectorizer.h (enum vect_def_type): Add new value
13518 vect_nested_cycle.
13519 (enum vect_relevant): Add comments.
13520 (vect_is_simple_reduction): Add new argument.
13521 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Add comments.
13522 Detect nested cycles.
13523 (vect_is_simple_reduction): Update documentation, add an argument to
13524 distinguish inner-loop reduction from nested cycle, detect nested
13525 cycles, fix printings and indentation, don't swap operands in case
13526 of nested cycle.
13527 (get_initial_def_for_reduction): Handle subtraction.
13528 (vect_create_epilog_for_reduction): Add new argument to specify
13529 reduction variable.
13530 (vect_finalize_reduction): Handle subtraction, fix comments.
13531 (vectorizable_reduction): Handle nested cycles. In case of nested
13532 cycle keep track of the reduction variable position. Call
13533 vect_is_simple_reduction with additional parameter. Use original
13534 statement code in reduction epilogue for nested cycle. Call
13535 vect_create_epilog_for_reduction with additional parameter.
13536 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Assert
13537 inner-loop vectorization.
13538 (vect_recog_widen_sum_pattern): Likewise.
13539 * tree-vect-stmts.c (process_use): Distinguish between nested cycles
13540 and reductions.
13541 (vect_mark_stmts_to_be_vectorized): Likewise.
13542 (vect_get_vec_def_for_operand): Handle nested cycles.
13543
13544 2009-06-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13545
13546 * doc/invoke.texi (Debugging Options): Fix option index entries
13547 for -fdump-statistics, -frandom-seed add entries for
13548 -fdump-tree-original, -fdump-tree-optimized, -frandom-seed.
13549 (FRV Options): Fix entries for -mTLS, -mtls.
13550 (HPPA Options): Fix entries for -mgnu-ld, -mhp-ld.
13551 (i386 and x86-64 Options): Fix entry for -mno-red-zone.
13552 (M68hc1x Options): Fix @itemx for -mnominmax.
13553 (MCore Options): Fix entry for -mno-lsim.
13554 (MMIX Options): Fix entry for -mabi=mmixware.
13555 (PDP-11 Options): Fix entry for -mbcopy-builtin.
13556
13557 2009-06-16 Basile Starynkevitch <basile@starynkevitch.net>
13558
13559 * doc/plugins.texi (Interacting with the GCC Garbage Collector):
13560 Mention the plugin mode of gengtype.
13561 * doc/gty.texi (Source Files Containing Type Information): Likewise.
13562 * gengtype.c: Updated copyright.
13563 (plugin_files, nb_plugin_files) Added new static variables.
13564 (measure_input_list) Care about plugin_files.
13565 (write_rtx_next): Added early return in plugin mode.
13566 (create_file): Updated copyright year in generated file. Added
13567 asserts.
13568 (oprintf): Added early return if NULL outf.
13569 (get_output_file_with_visibility): Care of plugin_files.
13570 (get_output_file_name): May return null.
13571 (write_local): Added early return.
13572 (put_mangled_filename): Ditto.
13573 (finish_root_table): Added check for base_files.
13574 (write_roots): Care about null when plugins.
13575 (main): Added plugin mode.
13576
13577 2009-06-15 Ian Lance Taylor <iant@google.com>
13578
13579 * df-problems.c (df_simulate_one_insn_forwards): Fix braces in switch.
13580 * gcov.c (read_count_file): Add braces around variables declared
13581 before label.
13582
13583 * c.opt (Wjump-misses-init): New warning.
13584 * c-opts.c (c_common_handle_option): Set warn_jump_misses_init for
13585 -Wall and -Wc++-compat if not already set.
13586 (c_common_post_options): Clear warn_jump_misses_init if it was not
13587 set.
13588 * c-decl.c (struct c_binding): Change type field to a union with
13589 new label field. Make it the first field in the struct. Update
13590 references to type to use u.type instead.
13591 (struct c_spot_bindings): Define.
13592 (struct c_goto_bindings): Define.
13593 (c_goto_bindings_p): Define, along with VECs.
13594 (struct c_label_vars): Define.
13595 (struct c_scope): Add has_label_bindings field.
13596 (bind_label, set_spot_bindings): New static functions.
13597 (decl_jump_unsafe, update_spot_bindings): New static functions.
13598 (update_label_decls): New static function.
13599 (pop_scope): Call update_label_decls. Don't call c_end_vm_scope.
13600 Update binding u.label field to shadowed field.
13601 (c_binding_start_stmt_expr): New function.
13602 (c_binding_end_stmt_expr): New function.
13603 (pushdecl): Don't call c_begin_vm_scope.
13604 (make_label): Add defining and p_label_vars parameters. Change
13605 all callers.
13606 (lookup_label): Correct test for whether a label has not yet been
13607 defined. Call bind_label rather than bind.
13608 (warn_about_goto): New static function.
13609 (lookup_label_for_goto): New function.
13610 (declare_label): Call bind_label rather than bind.
13611 (check_earlier_gotos): New static function.
13612 (define_label): Don't give errors about jumping into statement
13613 expressions or scopes of variably modified types. Call
13614 set_spot_bindings and check_earlier_gotos. Call bind_label
13615 instead of bind. Don't set label_context_stack_se or
13616 label_context_stack_vm.
13617 (c_get_switch_bindings): New function.
13618 (c_release_switch_bindings): New function.
13619 (c_check_switch_jump_warnings): New function.
13620 (start_function): Don't set label_context_stack_se or
13621 label_context_stack_vm.
13622 (finish_function): Likewise.
13623 * c-typeck.c (label_context_stack_se): Don't define.
13624 (label_context_stack_vm): Don't define.
13625 (c_finish_goto_label): Call lookup_label_for_goto rather than
13626 lookup_label. Don't give errors about jumping into a statement
13627 expression or the scope of a variably modified type. Don't set
13628 label_context_stack_se or label_context_stack_vm.
13629 (struct c_switch): Remove blocked_stmt_expr and blocked_vm
13630 fields. Add bindings field.
13631 (c_start_case): Don't set deleted fields. Set bindings field.
13632 (do_case): Rework order of tests. Don't check blocked_stmt_expr
13633 or blocked_vm. Call c_check_switch_jump_warnings.
13634 (c_finish_case): Don't test blocked_stmt_expr field. Call
13635 c_release_switch_bindings.
13636 (c_begin_stmt_expr): Don't increment blocked_stmt_expr in
13637 c_switch_stack. Don't walk label_context_stack_se labels. Don't
13638 set label_context_stack_se. Call c_bindings_start_stmt_expr.
13639 (c_finish_stmt_expr): Don't decrement blocked_stmt_expr in
13640 c_switch_stack. Don't walk label_context_stack_se labels. Don't
13641 set label_context_stack_se. Call c_bindings_end_stmt_expr.
13642 (c_begin_vm_scope, c_end_vm_scope): Don't define.
13643 * c-tree.h (C_DECL_UNJUMPABLE_STMT_EXPR): Don't define.
13644 (C_DECL_UNDEFINABLE_STMT_EXPR): Don't define.
13645 (C_DECL_UNJUMPABLE_VM): Don't define.
13646 (C_DECL_UNDEFINABLE_VM): Don't define.
13647 (struct c_label_list): Don't define.
13648 (struct c_label_context_se): Don't define.
13649 (struct c_label_context_vm): Don't define.
13650 (struct c_spot_bindings): Declare.
13651 (c_bindings_start_stmt_expr): Declare.
13652 (c_bindings_end_stmt_expr): Declare.
13653 (lookup_label_for_goto): Declare.
13654 (c_get_switch_bindings, c_release_switch_bindings): Declare.
13655 (c_check_switch_jump_warnings): Declare.
13656 (label_context_stack_se, label_context_stack_vm): Don't declare.
13657 (c_finish_goto_label): Update declaration.
13658 (c_begin_vm_scope, c_end_vm_scope): Don't declare.
13659 * doc/invoke.texi (Option Summary): Mention -Wjump-misses-init.
13660 (Warning Options): Document -Wjump-misses-init.
13661
13662 2009-06-15 Jakub Jelinek <jakub@redhat.com>
13663
13664 * tree-object-size.c (addr_object_size): Fix a pasto in the last
13665 change.
13666
13667 2009-06-15 Rafael Avila de Espindola <espindola@google.com>
13668
13669 * cgraph.c (cgraph_make_node_local): Use DECL_COMDAT_GROUP.
13670
13671 2009-06-15 Aldy Hernandez <aldyh@redhat.com>
13672
13673 * except.c (init_eh): Use BUILTINS_LOCATION when calling build_decl.
13674
13675 2009-06-15 Aldy Hernandez <aldyh@redhat.com>
13676
13677 * tree-eh.c (lower_try_finally_switch): Initialize tf_loc.
13678
13679 2009-06-15 Rafael Avila de Espindola <espindola@google.com>
13680
13681 * cgraphunit.c (cgraph_function_versioning,save_inline_function_body):
13682 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
13683 * cgraph.c (cgraph_create_virtual_clone): Use DECL_COMDAT_GROUP.
13684 * config/i386/i386.c (ix86_file_end): Compute DECL_COMDAT_GROUP.
13685 * dwarf2asm.c (dw2_force_const_mem): Update call to
13686 make_decl_one_only.
13687 * langhooks-def.h (lhd_comdat_group, LANG_HOOKS_COMDAT_GROUP): Remove.
13688 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_COMDAT_GROUP.
13689 * langhooks.c (lhd_comdat_group): Remove.
13690 * langhooks.h (lang_hooks_for_decls): Remove comdat_group.
13691 * tree.h (DECL_COMDAT_GROUP): New.
13692 (DECL_ONE_ONLY): Use DECL_COMDAT_GROUP.
13693 (tree_decl_with_vis): Add comdat_group. Remove one_only.
13694 (make_decl_one_only): Change signature.
13695 * varasm.c (get_emutls_init_templ_addr, emutls_decl): Update call to
13696 make_decl_one_only.
13697 (make_decl_one_only): Change signature.
13698 (default_elf_asm_named_section): Use DECL_COMDAT_GROUP.
13699
13700 2009-06-15 Richard Guenther <rguenther@suse.de>
13701
13702 PR middle-end/40439
13703 * tree.c (widest_int_cst_value): Fix bootstrap on 32bit HWI hosts.
13704
13705 2009-06-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13706
13707 * tree-ssa-math-opts.c: Remove extra divide.
13708
13709 2009-06-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13710
13711 * config/s390/s390.md ("bswap<mode>2"): Only available on z900.
13712
13713 2009-06-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13714
13715 * passes.c: Add bswap pass.
13716 * tree-pass.h: Add pass_optimize_bswap declaration.
13717 * tree-ssa-math-opts.c: Include diagnostics.h for print_gimple_stmt.
13718 Include rtl.h, expr.h and optabs.h for optab_handler check.
13719 (struct symbolic_number, pass_optimize_bswap): New definition.
13720 (do_shift_rotate, verify_symbolic_number_p): New functions.
13721 (find_bswap_1, find_bswap, execute_optimize_bswap): New functions.
13722 (gate_optimize_bswap): New function.
13723 * tree.c (widest_int_cst_value): New function.
13724 * tree.h (widest_int_cst_value): Prototype added.
13725
13726 2009-06-14 Steven Bosscher <steven@gcc.gnu.org>
13727
13728 * cfgcleanup.c (old_insns_match_p): Remove code to substitute
13729 REG_EQUAL/REG_EQUIV notes.
13730
13731 2009-06-14 Richard Guenther <rguenther@suse.de>
13732
13733 PR middle-end/40389
13734 * gimple.c (walk_stmt_load_store_addr_ops): The LHS of a call
13735 has its address taken if NRV was applied and it is addressable.
13736 * tree-ssa-structalias.c (get_constraint_for_address_of): New
13737 function split out from ...
13738 (get_constraint_for_1): ... here.
13739 (handle_rhs_call): Use it to mark the return slot escaped if
13740 it is addressable and NRV was applied.
13741
13742 2009-06-13 Aldy Hernandez <aldyh@redhat.com>
13743
13744 * config/rs6000/rs6000-protos.h (altivec_resolve_overloaded_builtin):
13745 Change first argument type to location_t.
13746 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Same.
13747 Do not set input_location.
13748 Use loc instead of input_location throughout.
13749
13750 2009-06-13 Richard Guenther <rguenther@suse.de>
13751
13752 PR tree-optimization/40421
13753 * tree-predcom.c (should_unroll_loop_p): Remove.
13754 (tree_predictive_commoning_loop): Use can_unroll_loop_p.
13755
13756 2009-06-13 Michael Meissner <meissner@linux.vnet.ibm.com>
13757
13758 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
13759 Add location argument.
13760
13761 2009-06-13 Aldy Hernandez <aldyh@redhat.com>
13762
13763 * config/alpha/alpha.c (alpha_build_builtin_va_list): Pass location to
13764 build_decl.
13765 * config/s390/s390.c (s390_build_builtin_va_list): Same.
13766 (s390_gimplify_va_arg): Pass location to create_artificial_label.
13767 * config/spu/spu-protos.h: Add location to
13768 spu_resolve_overloaded_builtin.
13769 * config/spu/spu.c (spu_build_builtin_va_list): Pass location to
13770 spu_build_builtin_va_list.
13771 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Add location
13772 argument. Pass location to build_function_call_vec.
13773 * config/sh/sh.c (sh_build_builtin_va_list): Pass location to
13774 build_decl.
13775 (emit_fpu_switch): Same.
13776 (sh_gimplify_va_arg_expr): Pass location to create_artificial_label.
13777 * config/xtensa/xtensa.c (xtensa_build_builtin_va_list): Pass location
13778 to build_decl and create_artificial_label.
13779 (xtensa_gimplify_va_arg_expr): Same.
13780 * config/stormy16/stormy16.c (xstormy16_build_builtin_va_list): Same.
13781 (xstormy16_gimplify_va_arg_expr): Same.
13782 * config/iq2000/iq2000.c (iq2000_expand_prologue): Same.
13783 * config/arm/arm.c (arm_build_builtin_va_list): Same.
13784 * config/mips/mips.c (mips_build_builtin_va_list): Same.
13785 (mips16_build_function_stub): Same.
13786 (mips16_build_call_stub): Same.
13787
13788 2009-06-13 Richard Earnshaw <rearnsha@arm.com>
13789
13790 PR target/40327
13791 * arm/constraints.md (Pa, Pb): New constraints.
13792 * arm/arm.md (thumb1_addsi3): Support more complex additions. Add a
13793 split pattern to deal with them.
13794
13795 2009-06-13 Joerg Sonnenberger <joerg@britannica.bec.de>
13796
13797 * doc/invoke.texi: Add missing option -Wp,OPTION in list,
13798 fix index entry for -Xpreprocessor.
13799
13800 2009-06-12 Aldy Hernandez <aldyh@redhat.com>
13801
13802 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
13803 Add location argument to build_decl call.
13804 * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Same.
13805 (rs6000_init_builtins): Same.
13806 (spe_init_builtins): Same.
13807 (rs6000_gimplify_va_arg): Add location argument to
13808 create_artificial_label call.
13809
13810 2009-06-12 Steven Bosscher <steven@gcc.gnu.org>
13811
13812 * timevar.def (TV_COMBINE_STACK_ADJUST): New timevar.
13813 * combine-stack-adj.c (pass_stack_adjustments): Use it.
13814 * Makefile.in: Fix GGC dependency for gcse.o.
13815
13816 2009-06-12 Aldy Hernandez <aldyh@redhat.com>
13817
13818 * tree-pretty-print.c (dump_generic_node): Dump column numbers.
13819 * gimple-pretty-print.c (dump_gimple_stmt): Same.
13820 * gimplify.c (gimplify_modify_expr): Set location for GIMPLE_ASSIGNs
13821 created.
13822 * c-parser.c (c_parser_binary_expression): Use current column while
13823 building binary operations.
13824 * common.opt (fshow-column): Enable by default.
13825 * tree-vrp.c (check_array_ref): Use warning_at.
13826 (check_array_bounds): Use location from call back if expr has no
13827 location.
13828 * tree.h: Add location argument to maybe_fold_*.
13829 * tree-ssa-ccp.c (ccp_fold): Pass location to maybe_fold_*.
13830 (maybe_fold_offset_to_array_ref): Add location argument and use it.
13831 (maybe_fold_offset_to_component_ref): Same.
13832 (maybe_fold_offset_to_reference): Same.
13833 (maybe_fold_offset_to_address): Same.
13834 (maybe_fold_stmt_indirect): Same.
13835 (maybe_fold_stmt_addition): Same.
13836 (fold_stmt_r): Pass location to maybe_fold_*.
13837 (fold_gimple_assign): Same.
13838 * c-tree.h: Add location argument to finish_decl,
13839 default_function_array_conversion, store_init_value.
13840 * c-decl.c (define_label): Use error_at.
13841 (c_make_fname_decl): Pass location to finish_decl.
13842 (finish_decl): New location argument.
13843 (build_compound_literal): Pass location to store_init_value.
13844 (grokdeclarator): Pass location to finish_decl.
13845 (grokfield): Same.
13846 * c-typeck.c (array_to_pointer_conversion): New location argument.
13847 (function_to_pointer_conversion): Same.
13848 (default_function_array_conversion): Same.
13849 (parser_build_unary_op): Pass location to overflow_warning.
13850 (parser_build_binary_op): Same. Use warning_at.
13851 (build_unary_op): Pass location to array_to_pointer_conversion.
13852 (build_c_cast): Pass location to digest_init.
13853 (build_modify_expr): New location argument.
13854 (convert_for_assignment): Same.
13855 (store_init_value): Same.
13856 (digest_init): Same.
13857 (output_init_element): Pass location to digest_init and
13858 array_to_pointer_conversion.
13859 (c_finish_return): Pass location to convert_for_assignment.
13860 * gimplify.c (gimplify_conversion): Pass location to
13861 maybe_fold_offset_to_address.
13862 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Pass location
13863 to maybe_fold_stmt_addition.
13864 * c-omp.c (c_finish_omp_atomic): Pass new location to
13865 build_modify_expr.
13866 (c_finish_omp_for): Same.
13867 * c-common.c (overflow_warning): New argument.
13868 * c-common.h: New argument to build_modify_expr, overflow_warning.
13869 * c-parser.c (c_parser_declaration_or_fndef): Pass location to
13870 finish_decl.
13871 (c_parser_initializer): Pass location to
13872 default_function_array_conversion.
13873 (c_parser_initelt): Same.
13874 (c_parser_initval): Same.
13875 (c_parser_asm_operands): Same.
13876 (c_parser_expr_no_commas): Same. Pass location to build_modify_expr.
13877 (c_parser_conditional_expression): Same.
13878 (c_parser_binary_expression): Add location info to stack. Use it.
13879 (c_parser_unary_expression): Pass location to
13880 default_function_array_conversion, parser_build_unary_op,
13881 build_indirect_ref, c_parser_postfix_expression_after_primary.
13882 (c_parser_postfix_expression_after_primary): New location argument.
13883 Use it.
13884 (c_parser_expression_conv): Pass location to
13885 default_function_array_conversion.
13886 (c_parser_expr_list): Same.
13887 (c_parser_omp_atomic): Same.
13888 (c_parser_omp_for_loop): Same.
13889 * c-tree.h: (struct c_declarator): Add comment to id_loc.
13890 (build_array_declarator): New argument.
13891 * c-decl.c (build_array_declarator): Add location argument.
13892 (grokdeclarator): Set id_loc for cdk_array.
13893 * c-parser.c (c_parser_direct_declarator_inner): Pass location to
13894 build_array_declarator.
13895 * tree.c (build_omp_clause): Add location argument.
13896 * tree.h (OMP_CLAUSE_HAS_LOCATION): New macro.
13897 (OMP_CLAUSE_LOCATION): New macro.
13898 (struct tree_omp_clause): Add location field.
13899 (build_omp_clause): Add argument.
13900 * testsuite/gcc.dg/gomp/for-1.c: Fix column.
13901 * cp/pt.c (tsubst_omp_for_iterator): Pass location to
13902 build_omp_clause.
13903 * cp/parser.c (cp_parser_omp_var_list_no_open): Same.
13904 (cp_parser_omp_clause_collapse): Same.
13905 (cp_parser_omp_clause_default): Same.
13906 (cp_parser_omp_clause_if): Same.
13907 (cp_parser_omp_clause_nowait): Same.
13908 (cp_parser_omp_clause_num_threads): Same.
13909 (cp_parser_omp_clause_ordered): Same.
13910 (cp_parser_omp_clause_schedule): Same.
13911 (cp_parser_omp_clause_untied): Same.
13912 (cp_parser_omp_for_loop): Same.
13913 (cp_parser_omp_parallel): Pass location to c_split_parallel_clauses.
13914 * c-tree.h (c_start_case): Add location argument.
13915 (c_process_expr_stmt): Same.
13916 (c_finish_goto_*): Same.
13917 * tree-parloops.c (initialize_reductions): Pass location to
13918 build_omp_clause.
13919 (create_parallel_loop): Same.
13920 * fortran/trans-openmp.c (gfc_trans_omp_variable_list): Same.
13921 (gfc_trans_omp_reduction_list): Same.
13922 (gfc_trans_omp_clauses): Same.
13923 (gfc_trans_omp_do): Same.
13924 * c-typeck.c (c_finish_goto_label): Same.
13925 (c_finish_goto_ptr): New location argument.
13926 (c_start_case): Same.
13927 (emit_side_effect_warnings): Same.
13928 (c_process_expr_stmt): Same.
13929 (c_finish_stmt_expr): Same.
13930 (c_finish_omp_clauses): Use error_at instead of error.
13931 * gimplify.c (gimplify_adjust_omp_clauses_1): Pass location to
13932 build_omp_clause.
13933 * c-omp.c (c_split_parallel_clauses): New location argument.
13934 * tree-nested.c (convert_nonlocal_reference_stmt): Pass location
13935 to build_omp_clause.
13936 (convert_local_reference_stmt): Same.
13937 (convert_gimple_call): Same.
13938 * c-common.h (c_split_parallel_clauses): New argument.
13939 * c-parser.c (c_parser_statement_after_labels): Pass location to
13940 c_finish_goto_label.
13941 (c_parser_switch_statement): Pass location to c_start_case.
13942 (c_parser_for_statement): Pass location to c_finish_expr_stmt,
13943 and c_process_expr_stmt.
13944 (c_parser_omp_variable_list): Add location argument.
13945 (c_parser_omp_clause_collapse): Pass location to build_omp_clause.
13946 (c_parser_omp_clause_default): Same.
13947 (c_parser_omp_clause_if): Same.
13948 (c_parser_omp_clause_num_threads): Same.
13949 (-c_parser_omp_clause_ordered): Same.
13950 (c_parser_omp_clause_reduction): Pass location to
13951 c_parser_omp_variable_list.
13952 (c_parser_omp_clause_schedule): Pass location to build_omp_clause.
13953 (c_parser_omp_clause_untied): Same.
13954 (c_parser_omp_for_loop): Pass location to c_process_expr_stmt.
13955 (c_parser_omp_parallel): Pass location to c_split_parallel_clauses.
13956
13957 * c-tree.h (check_for_loop_decls, undeclared_variable,
13958 build_component_ref, build_array_ref, build_external_ref,
13959 c_expr_sizeof_expr, c_expr_sizeof_type, parser_build_unary_op,
13960 build_conditional_expr, build_compound_expr, c_cast_expr,
13961 build_c_cast, build_asm_expr, c_end_compound_stmt, c_finish_stmt_expr,
13962 c_finish_return, c_finish_omp_parallel, c_finish_omp_task): New
13963 argument.
13964 * c-semantics.c (build_stmt): Same.
13965 (build_case_label): Same.
13966 * c-decl.c (c_finish_incomplete_decl): Pass location on down.
13967 (undeclared_variable): New argument.
13968 (make_label): Same.
13969 (lookup_label): Pass location on down.
13970 (define_label): Same.
13971 (finish_decl): Same.
13972 (build_compound_literal): Same.
13973 (finish_struct): Same.
13974 (finish_function): Do not set location here.
13975 (check_for_loop_decls): New argument.
13976 * tree.c (save_expr): Set location.
13977 (build_empty_stmt): New argument.
13978 * tree.h (build_empty_stmt): New argument to build_empty_stmt.
13979 (CAN_HAVE_LOCATION_P): Make sure we have a non empty node.
13980 * builtins.c (gimplify_va_arg_expr): Use locations.
13981 (expand_builtin_sync_operation): Same.
13982 * c-typeck.c (build_component_ref): New argument.
13983 (build_array_ref): Same.
13984 (build_external_ref): Same.
13985 (c_expr_sizeof_expr): Same.
13986 (c_expr_sizeof_type): Same.
13987 (parser_build_unary_op): Same.
13988 (build_conditional_expr): Same.
13989 (build_compound_expr): Pass location on down.
13990 (build_compound_expr): New argument.
13991 (build_c_cast): Same.
13992 (c_cast_expr): Same.
13993 (build_asm_expr): Same.
13994 (c_finish_return): Same.
13995 (c_process_expr_stmt): Pass location on down.
13996 (c_finish_stmt_expr): New argument.
13997 (push_clenaup): Same.
13998 (c_finish_omp_parallel): Same.
13999 (c_finish_omp_task): Same.
14000 * gimplify.c (gimplify_call_expr): Pass location on down.
14001 * c-omp.c (c_finish_omp_master): New argument.
14002 (c_finish_omp_critical): Same.
14003 (c_finish_omp_ordered): Same.
14004 (c_finish_omp_barrier): Same.
14005 (-c_finish_omp_taskwait): Same.
14006 (c_finish_omp_atomic): Same.
14007 (c_finish_omp_flush): Same.
14008 * tree-inline.c (copy_tree_body_r): Pass location on down.
14009 (inline_forbidden_p): Remove use of input_location.
14010 * c-gimplify.c (c_build_bind_expr): New argument.
14011 * c-common.c (c_common_truthvalue_conversion): Pass location on down.
14012 (c_sizeof_or_alignof_type): New argument.
14013 (c_alignof_expr): Same.
14014 (build_va_arg): Same.
14015 (c_add_case_label): Same.
14016 * c-common.h (c_sizeof_or_alignof_type, c_alignof_expr,
14017 c_sizeof, c_alignof, build_va_arg, build_stmt, build_case_label,
14018 c_build_bind_expr, objc_build_selector_expr, objc_build_throw_stmt,
14019 c_finish_omp_master, c_finish_omp_critical, c_finish_omp_ordered,
14020 c_finish_omp_barrier, c_finish_omp_atomic, c_finish_omp_flush,
14021 c_finish_omp_taskwait, c_finish_omp_for, c_split_parallel_clauses):
14022 New argument.
14023 * stub-objc.c (objc_build_selector_expr): Same.
14024 (objc_build_throw_stmt): Same.
14025 * c-parser.c (c_parser_declaration_or_fndef): Pass location on down.
14026 (c_parser_initelt): Same.
14027 (c_parser_compound_statement): Same.
14028 (c_parser_compound_statement_nostart): Same.
14029 (c_parser_label): Same.
14030 (c_parser_statement_after_labels): Same.
14031 (c_parser_if_body): Same.
14032 (c_parser_else_body): Same.
14033 (c_parser_if_statement): Same.
14034 (c_parser_switch_statement): Same.
14035 (c_parser_while_statement): Same.
14036 (c_parser_do_statement): Same.
14037 (c_parser_for_statement): Same.
14038 (c_parser_asm_statement): Same.
14039 (c_parser_conditional_expression): Same.
14040 (c_parser_binary_expression): Same.
14041 (c_parser_cast_expression): Same.
14042 (c_parser_unary_expression): Same.
14043 (c_parser_sizeof_expression): Same.
14044 (c_parser_alignof_expression): Same.
14045 (c_parser_postfix_expression): Same.
14046 (c_parser_expression): Same.
14047 (c_parser_objc_receiver): Same.
14048 (c_parser_omp_variable_list): Same.
14049 (c_parser_omp_structured_block): Same.
14050 (c_parser_omp_atomic): New argument.
14051 (c_parser_omp_barrier): Same.
14052 (c_parser_omp_critical): Same.
14053 (c_parser_omp_flush): Pass location on down.
14054 (c_parser_omp_for_loop): New argument.
14055 (c_parser_omp_for): Same.
14056 (c_parser_omp_master): Same.
14057 (c_parser_omp_ordered): Same.
14058 (c_parser_omp_sections_scope): Same.
14059 (c_parser_omp_sections): Same.
14060 (c_parser_omp_parallel): Same.
14061 (c_parser_omp_single): Same.
14062 (c_parser_omp_task): Same.
14063 (c_parser_omp_taskwait): Pass location on down.
14064 (c_parser_omp_construct): Same.
14065 (c_parser_omp_threadprivate): Same.
14066 * dwarf2asm.c, targhooks.c, optabs.c, tree.c, tree.h, target.h,
14067 builtins.c, omp-low.c, cgraphunit.c, tree-call-cdce.c,
14068 tree-ssa-alias.c, gimple-low.c, c-tree.h, expr.c, tree-parloops.c,
14069 c-decl.c, tree-eh.c, langhooks.c, function.c, stor-layout.c,
14070 c-typeck.c, gimplify.c, c-pragma.c, expmed.c, except.c, coverage.c,
14071 emit-rtl.c, cfgexpand.c, tree-mudflap.c, varasm.c, tree-nested.c,
14072 rtl.h, tree-inline.c, tree-profile.c, c-common.c, c-common.h,
14073 tree-switch-conversion.c, tree-cfg.c, ipa-struct-reorg.c, c-parser.c,
14074 config/i386/i386.c, stmt.c:
14075 Add location argument to the following function definitions and/or
14076 function calls: build_decl, objcp_start_struct, objcp_finish_struct,
14077 start_struct, finish_struct, PUSH_FIELD, create_artificial_label,
14078 cp_make_fname_decl, pushtag, implicitly_declare, c_make_fname_decl,
14079 build_compound_literal, parser_xref_tag, resolve_overloaded_builtin,
14080 do_case, c_finish_bc_stmt, build_compound_literal,
14081 build_function_call.
14082 * c-decl.c (build_compound_literal): Add location argument.
14083 Make all diagnostic calls use location.
14084 (start_struct): Same.
14085 (finish_struct): Same.
14086 (start_enum): Same.
14087 (build_enumerator): Same.
14088 (start_function): Same.
14089 (grokdeclarator): Make all diagnostic calls use location.
14090 (store_parm_decls_oldstyle): Same.
14091 * c-typeck.c (build_function_call): Add location argument.
14092 Make all diagnostic calls use location.
14093 (do_case): Same.
14094 (c_finish_bc_stmt): Same.
14095 * tree-nested.c (get_trampoline_type): Add argument.
14096 Pass location to build_decl.
14097 (lookup_tramp_for_decl): Pass location to get_trampoline_type.
14098 * rtl.h (RTL_LOCATION): New.
14099 * c-common.c (c_add_case_label): Add location argument.
14100 Make all diagnostic calls use location.
14101 * c-common.h: Add location argument to make_fname_decl, do_case,
14102 c_add_case_label, build_function_call, resolve_overloaded_builtin.
14103 * c-parser.c (c_parser_enum_specifier): Rename ident_loc to enum_loc.
14104 Set it appropriately for every case. Pass enum_loc to start_enum
14105 call. Pass value_loc first to build_enumerator. Pass enum_loc to
14106 parser_xref_tag.
14107 (c_parser_struct_or_union_specifier): Save location. Use it for
14108 start_struct, finish_struct, and parser_xref_tag.
14109
14110 2009-06-12 Ian Lance Taylor <iant@google.com>
14111
14112 * fold-const.c (fold_unary): Rename local variable and to and_expr.
14113
14114 * c-opts.c (c_common_handle_option): For -Wc++-compat set
14115 cpp_opts->warn_cxx_operator_names.
14116
14117 2009-06-12 Andrew Pinski <andrew_pinski@playstation.sony.com>
14118
14119 PR tree-opt/38865
14120 * tree-ssa-sccvn.c (visit_reference_op_load): If vn_reference_lookup
14121 is returns NULL and OP is a VCE, look through the VCE.
14122
14123 2009-06-12 Ian Lance Taylor <iant@google.com>
14124
14125 PR bootstrap/40430
14126 * collect2.c (main): Use CONST_CAST2 in code inside #if
14127 LINK_ELIMINATE_DUPLICATE_LDIRECTORIES.
14128
14129 2009-06-12 Joey Ye <joey.ye@intel.com>
14130
14131 PR middle-end/39146
14132 * cfgexpand.c (get_decl_align_unit): Update
14133 max_used_stack_slot_alignment with align instead of
14134 stack_alignment_needed.
14135
14136 * function.c (assign_stack_local_1): Update
14137 max_used_stack_slot_alignment with alignment_in_bits instead
14138 of stack_alignment_needed.
14139 (locate_and_pad_parm): Don't update max_used_stack_slot_alignment
14140 here.
14141
14142 2009-06-12 Jakub Jelinek <jakub@redhat.com>
14143
14144 * dwarf2out.c (last_var_location_insn): New variable.
14145 (dwarf2out_end_epilogue): Clear last_var_location_insn.
14146 (dwarf2out_var_location): Don't record anything after last real
14147 insn. Only change labels if there were any real instructions
14148 in between last note and this one, or if changed sections.
14149
14150 2009-06-11 Richard Henderson <rth@redhat.com>
14151
14152 * alpha.c (alpha_expand_prologue): Add a REF_CFA_REGISTER
14153 note when storing the frame pointer in a register.
14154 (FRP): Don't redefine to nothing for epilogue.
14155 (alpha_expand_epilogue): Mark register and sp restores.
14156 (unicosmk_gen_dsib): Don't mark weird frame pointer adjust.
14157
14158 * config/alpha/alpha.c (alpha_emit_setcc): Fix test for
14159 when gen_lowpart is needed.
14160
14161 2009-06-11 Richard Henderson <rth@redhat.com>
14162
14163 * dwarf2out.c (def_cfa_1): Likewise for DW_CFA_cfa_offset.
14164
14165 * dwarf2out.c (need_data_align_sf_opcode): New.
14166 (div_data_align): Move earlier.
14167 (def_cfa_1, reg_save): Use it.
14168
14169 2009-06-11 H.J. Lu <hongjiu.lu@intel.com>
14170
14171 * config/i386/i386.c (OPTION_MASK_ISA_CRC32_SET): New.
14172 (OPTION_MASK_ISA_CRC32_UNSET): Likewise.
14173 (ix86_handle_option): Handle OPT_mcrc32.
14174 (ix86_target_string): Add -mcrc32.
14175 (bdesc_args): Enable crc32 builtins with OPTION_MASK_ISA_CRC32.
14176
14177 * config/i386/i386.h (TARGET_CRC32): New.
14178
14179 * config/i386/i386.md (sse4_2_crc32<mode>): Also check TARGET_CRC32.
14180 (sse4_2_crc32di): Likewise.
14181
14182 * config/i386/i386.opt (mcrc32): New.
14183
14184 * doc/invoke.texi: Document -mcrc32.
14185
14186 2009-06-11 Richard Henderson <rth@redhat.com>
14187
14188 * common.opt (gdwarf-): Accept a version number.
14189 * doc/invoke.texi (gdwarf-): Update docs.
14190 * opth-gen.awk: Special case -gdwarf+ to OPT_gdwarfplus.
14191 * opts.c (common_handle_option) [OPT_gdwarf_]: Verify dwarf
14192 version level, and record it.
14193
14194 * dwarf2.h (DW_CIE_VERSION): Remove.
14195 * dwarf2out.c (DWARF_VERSION): Remove.
14196 (add_fde_cfi): Skip DW_CFA_set_loc addition for dwarf3.
14197 (output_call_frame_info): Use CIE version 3 for dwarf3,
14198 or if the return register column is out of range for version 1.
14199 (dwarf_stack_op_name): Add all dwarf3 values.
14200 (DEBUG_PUBTYPES_SECTION): New.
14201 (size_of_die) [dw_val_class_die_ref]: Handle DW_FORM_ref_addr
14202 encoding change for dwarf3.
14203 (output_die) [dw_val_class_die_ref]: Likewise.
14204 (output_compilation_unit_header): Emit correct version for dwarf3.
14205 (output_line_info): Likewise.
14206 (output_pubnames): Update for DWARF_VERSION removal.
14207 (output_aranges): Likewise.
14208 (gen_subprogram_die): Emit DW_OP_call_frame_cfa if emitting dwarf3.
14209 (dwarf2out_init): Don't ifdef DEBUG_PUBTYPES_SECTION.
14210 (dwarf2out_finish): Likewise.
14211
14212 2009-06-11 David Daney <ddaney@caviumnetworks.com>
14213
14214 * system.h (gcc_assert, gcc_unreachable): Revert accidental commit
14215 in r148403.
14216
14217 2009-06-11 David Daney <ddaney@caviumnetworks.com>
14218
14219 PR c/39252
14220 * doc/extend.texi ( __builtin_unreachable): Document new builtin.
14221 * builtins.c (expand_builtin_unreachable): New function.
14222 (expand_builtin): Handle BUILT_IN_UNREACHABLE case.
14223 * builtins.def (BUILT_IN_UNREACHABLE): Add new builtin.
14224 * cfgcleanup.c (try_optimize_cfg): Delete empty blocks with no
14225 successors.
14226 * cfgrtl.c (rtl_verify_flow_info): Handle empty blocks when
14227 searching for missing barriers.
14228
14229 2009-06-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
14230
14231 * config/darwin.h (LINK_COMMAND_SPEC): Adjust spec to link libcov
14232 when -fprofile-generate* was passed.
14233 * config/darwin9.h (LINK_COMMAND_SPEC): Likewise.
14234
14235 2009-06-11 Anthony Green <green@moxielogic.com>
14236
14237 * config/moxie/moxie.md: Define length attribute for all instructions.
14238 (rCC): Define.
14239 (*b<cond:code>): Support limited branch ranges for new PC-relative
14240 branch instructions.
14241 * config/moxie/moxie.h (HAS_LONG_UNCOND_BRANCH): Define.
14242
14243 2009-06-11 Jakub Jelinek <jakub@redhat.com>
14244
14245 * config/i386/i386.c (min_insn_size): Use get_attr_length
14246 for normal insns other than TYPE_MULTI, TYPE_OTHER and TYPE_FCMP.
14247 For __asm return 0.
14248
14249 * config/i386/i386.c (ix86_pad_returns): Use emit_jump_insn_before
14250 instead of emit_insn_before.
14251
14252 2009-06-10 Ian Lance Taylor <iant@google.com>
14253
14254 PR bootstrap/40408
14255 * graphite.c (add_conditions_to_domain): Change SWITCH_EXPR to
14256 GIMPLE_SWITCH.
14257
14258 2009-06-10 Revital Eres <eres@il.ibm.com>
14259
14260 * passes.c (init_optimization_passes): Reschedule
14261 predictive-commoning pass before complete unroll pass.
14262
14263 2009-06-10 Martin Jambor <mjambor@suse.cz>
14264
14265 * cgraph.c (cgraph_node_can_be_local_p): New function.
14266 (cgraph_make_node_local): New function.
14267 * cgraph.h (cgraph_node_can_be_local_p): Declare.
14268 (cgraph_make_node_local): Declare.
14269
14270 2009-06-10 Nathan Froyd <froydnj@codesourcery.com>
14271
14272 * tree.h (tree_base): Add packed_flag and user_align fields.
14273 Decrease size of spare field.
14274 (TYPE_USER_ALIGN): Use user_align from tree_base.
14275 (DECL_USER_ALIGN): Likewise.
14276 (TYPE_PACKED): Use packed_flag from tree_base.
14277 (DECL_PACKED): Likewise.
14278 (tree_type): Delete packed_flag and user_align fields. Widen
14279 precision field. Widen mode field and shuffle fields to align
14280 mode on an 8-bit boundary.
14281 (tree_decl_common): Delete decl_flag_1 and user_align fields.
14282 Renumber decl_flag_* fields. Fix comments. Widen
14283 decl_common_unused field.
14284 (DECL_HAS_VALUE_EXPR_P): Adjust for renumbering of decl_flag_* fields.
14285 (DECL_EXTERNAL): Likewise.
14286 (DECL_BIT_FIELD): Likewise.
14287 (DECL_NONADDRESSABLE_P): Likewise.
14288 (TYPE_DECL_SUPRESS_DEBUG): Likewise.
14289 * config/arm/arm-modes.def (XImode): Make it an INT_MODE.
14290
14291 2009-06-10 Ian Lance Taylor <iant@google.com>
14292
14293 * vec.h (DEF_VEC_ALLOC_I): Use DEF_VEC_NONALLOC_FUNCS_I.
14294 (DEF_VEC_ALLOC_P): Use DEF_VEC_NONALLOC_FUNCS_P.
14295 (DEF_VEC_ALLOC_O): Use DEF_VEC_NONALLOC_FUNCS_O.
14296 (DEF_VEC_ALLOC_FUNC_P): Only define VEC_OP (T,A,alloc).
14297 (DEF_VEC_NONALLOC_FUNCS_P): New macro, broken out of old
14298 DEF_VEC_ALLOC_FUNC_P.
14299 (DEF_VEC_ALLOC_FUNC_O): Only define VEC_OP (T,A,alloc).
14300 (DEF_VEC_NONALLOC_FUNCS_O): New macro, broken out of old
14301 DEF_VEC_ALLOC_FUNC_O.
14302 (DEF_VEC_ALLOC_FUNC_I): Only define VEC_OP (T,A,alloc).
14303 (DEF_VEC_NONALLOC_FUNCS_I): New macro, broken out of old
14304 DEF_VEC_ALLOC_FUNC_I.
14305 (vec_stack_p_reserve, vec_stack_p_reserve_exact): Declare.
14306 (vec_stack_p_reserve_exact_1): Declare.
14307 (vec_stack_o_reserve, vec_stack_o_reserve_exact): Declare.
14308 (vec_stack_free): Declare.
14309 (VEC_stack_alloc): Define.
14310 (DEF_VEC_ALLOC_P_STACK, DEF_VEC_ALLOC_FUNC_P_STACK): Define.
14311 (DEF_VEC_ALLOC_O_STACK, DEF_VEC_ALLOC_FUNC_O_STACK): Define.
14312 (DEF_VEC_ALLOC_I_STACK, DEF_VEC_ALLOC_FUNC_I_STACK): Define.
14313 * vec.c (void_p): New type. Call DEF_VEC_P and DEF_VEC_ALLOC_P
14314 for void_p.
14315 (stack_vecs): New static variable.
14316 (vec_stack_p_reserve_exact_1): New function.
14317 (vec_stack_o_reserve_1): New static function.
14318 (vec_stack_p_reserve, vec_stack_p_reserve_exact): New functions.
14319 (vec_stack_o_reserve, vec_stack_o_reserve_exact): New functions.
14320 (vec_stack_free): New function.
14321 * df-scan.c (df_ref): Use DEF_VEC_P and DEF_VEC_ALLOC_P_STACK.
14322 (VEC_df_ref_stack_alloc): Define.
14323 (df_mw_hardreg_ptr): New type. Use DEF_VEC_P and
14324 DEF_VEC_ALLOC_P_STACK.
14325 (VEC_df_mw_hardreg_ptr_stack_alloc): Define.
14326 (struct df_collection_rec): Change _vec fields to VEC. Remove
14327 _use fields.
14328 (df_free_collection_rec): Adjust for new fields.
14329 (df_insn_rescan): Use new df_collection_rec fields.
14330 (df_notes_rescan, df_canonize_collection_rec): Likewise.
14331 (df_ref_create_structure, df_ref_record): Likewise.
14332 (df_get_conditional_uses, df_get_call_refs): Likewise.
14333 (df_insn_refs_collect, df_bb_refs_collect): Likewise.
14334 (df_bb_refs_record, df_record_entry_block_defs): Likewise.
14335 (df_record_exit_block_uses, df_bb_verify): Likewise.
14336 (df_swap_refs): Change ref_vec parameter to VEC. Change all callers.
14337 (df_sort_and_compress_refs): Change ref_vec parameter to VEC.
14338 Remove count parameter. Change return type to void. Change all
14339 callers.
14340 (df_sort_and_compress_mws): Change mw_vec parameter to VEC.
14341 Remove count parameter. Change return type to void. Change all
14342 callers.
14343 (df_install_refs): Change old_vec parameter to VEC. Remove count
14344 parameter. Change all callers.
14345 (df_install_mws): Change old_vec parameter to VEC. Remove count
14346 parameter. Change all callers.
14347 (df_refs_verify): Change new_rec parameter to VEC. Change call
14348 callers.
14349 (df_mws_verify): Likewise.
14350
14351 2009-06-10 Alexandre Oliva <aoliva@redhat.com>
14352
14353 * gcc.c (compare_files): Cast munmap argumento to caddr_t.
14354
14355 2009-06-10 H.J. Lu <hongjiu.lu@intel.com>
14356
14357 * doc/extend.texi: Add description for __builtin_ia32_crc32di.
14358
14359 2009-06-10 Anthony Green <green@moxielogic.com>
14360
14361 * config/moxie/crti.asm: New file.
14362 * config/moxie/crtn.asm: New file.
14363 * config/moxie/moxie.c: New file.
14364 * config/moxie/moxie.h: New file.
14365 * config/moxie/sfp-machine.h: New file.
14366 * config/moxie/moxie-protos.h: New file.
14367 * config/moxie/t-moxie: Created.
14368 * config/moxie/t-moxie-softfp: Created.
14369 * config/moxie/moxie.md: Created.
14370 * config/moxie/constraints.md: Created.
14371 * config.gcc: Add moxie support.
14372 * doc/md.texi (Machine Constraints): Add moxie constraints.
14373 * doc/contrib.texi (Contributors): Mention moxie port.
14374 * doc/install.texi (Specific): Mention the moxie port.
14375
14376 2009-06-09 Ian Lance Taylor <iant@google.com>
14377
14378 * system.h (HAVE_DESIGNATED_INITIALIZERS): Don't define if
14379 compiling with C++.
14380 * optabs.c (optab_table): Only use designated initializers if
14381 HAVE_DESIGNATED_INITIALIZERS is defined.
14382 (convert_optab_table): Likewise.
14383 (init_optabs): Always call init_insn_codes if
14384 HAVE_DESIGNATED_INITIALIZERS is not defined.
14385
14386 2009-06-09 Ian Lance Taylor <iant@google.com>
14387
14388 * targhooks.c (default_builtin_vectorized_function): Change fn
14389 parameter to unsigned int.
14390 (default_builtin_vectorized_conversion): Change code parameter to
14391 unsigned int.
14392 (default_builtin_reciprocal): Change fn parameter to unsigned int.
14393 * targhooks.h: Update declarations.
14394 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Change code
14395 parameter to unsigned int.
14396
14397 * c-typeck.c (comptypes_check_enum_int): New static function.
14398 (comptypes_internal): Add enum_and_int_p parameter. Change all
14399 callers.
14400 (comp_target_types): Add location parameter. Change all callers.
14401 (tagged_types_tu_compatible_p): Add enum_and_int_p parameter.
14402 Change all callers.
14403 (function_types_compatible_p, type_lists_compatible_p): Likewise.
14404 (build_conditional_expr): Add colon_loc parameter. Change all
14405 callers.
14406 (convert_for_assignment): Add location parameter. Change all callers.
14407 * c-parser.c (c_parser_conditional_expression): Pass location of
14408 colon to build_conditional_expr.
14409 * c-tree.h (build_conditional_expr): Update declaration.
14410
14411 2009-06-09 Sebastian Pop <sebastian.pop@amd.com>
14412
14413 * graphite.c: Revert previous patch.
14414
14415 2009-06-09 Sebastian Pop <sebastian.pop@amd.com>
14416
14417 PR bootstrap/40103
14418 * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
14419
14420 2009-06-09 Ghassan Shobaki <ghassan.shobaki@amd.com>
14421
14422 * tree-ssa-loop-prefetch.c
14423 (loop_prefetch_arrays): Fixed a portability problem in printf format
14424 string.
14425
14426 2009-06-09 Martin Jambor <mjambor@suse.cz>
14427
14428 PR tree-optimization/40351
14429 * tree-sra.c (propagate_subacesses_accross_link): Check that a
14430 refrence to a potential artifical subaccess can be constructed.
14431
14432 2009-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
14433
14434 * config/sh/sh-protos.h (sh_optimization_options): Declare.
14435 (sh_override_options): Likewise.
14436 * config/sh/sh.c: Include params.h.
14437 (sh_optimization_options): New.
14438 (sh_override_options): Likewise.
14439 * config/sh/sh.c (OPTIMIZATION_OPTIONS): Use sh_optimization_options.
14440 (OVERRIDE_OPTIONS): Use sh_override_options.
14441
14442 2009-06-08 Jakub Jelinek <jakub@redhat.com>
14443
14444 * dwarf2out.c (emit_cfa_remember): New variable.
14445 (add_fde_cfi): If emit_cfa_remember, recurse to add
14446 DW_CFA_remember_state first.
14447 (dwarf2out_begin_epilogue): Don't add_fde_cfi DW_CFA_remember_state,
14448 instead just set emit_cfa_remember.
14449
14450 2009-06-08 Jan Hubicka <jh@suse.cz>
14451
14452 PR debug/40126
14453 * dwarf2out.c (dwarf2out_abstract_function): Free decl_loc_table.
14454
14455 2009-06-08 Jan Hubicka <jh@suse.cz>
14456
14457 PR middle-end/39834
14458 * cgraphunit.c (save_inline_function_body): Do not copy transform
14459 hooks for saved inline bodies.
14460 * ipa-passes.c (do_per_function): Do not add the hoks multiple times
14461 for given function.
14462
14463 2009-06-08 Adam Nemet <anemet@caviumnetworks.com>
14464
14465 * jump.c (returnjump_p): Handle delayed branches. Add missing
14466 function comment.
14467
14468 2009-06-08 Jan Hubicka <jh@suse.cz>
14469
14470 PR middle-end/40102
14471 * cgraph.c (cgraph_create_edge_including_clones): Also asume that the
14472 original node might've been modified.
14473 * tree-inline.c (copy_bb): Do not assume that all clones are the same.
14474
14475 2009-06-08 Jakub Jelinek <jakub@redhat.com>
14476
14477 * tree-object-size.c (addr_object_size): Add OSI argument.
14478 Handle also INDIRECT_REF with SSA_NAME inside of it as base address.
14479 (compute_builtin_object_size, expr_object_size): Adjust callers.
14480 (plus_stmt_object_size): Call addr_object_size instead of
14481 compute_builtin_object_size.
14482
14483 2009-06-08 Ghassan Shobaki <ghassan.shobaki@amd.com>
14484 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
14485
14486 * tree-ssa-loop-prefetch.c
14487 (gather_memory_references): Introduced a counter for the number of
14488 memory references.
14489 (anything_to_prefetch_p): Introduced a counter for the number of
14490 prefetches.
14491 (is_loop_prefetching_profitable): New function with a cost model
14492 for prefetching.
14493 (loop_prefetch_arrays): Use the new cost model to determine if
14494 prefetching is profitable.
14495 * params.def (MIN_INSN_TO_PREFETCH_RATIO,
14496 PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
14497 * params.h (MIN_INSN_TO_PREFETCH_RATIO,
14498 PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
14499 * doc/invoke.texi (MIN_INSN_TO_PREFETCT_RATIO,
14500 PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
14501
14502 2009-06-08 Michael Matz <matz@suse.de>
14503
14504 PR debug/40012
14505 * cfgexpand.c (set_rtl): Store place also in DECL_RTL, if all
14506 partitions use the same.
14507 (expand_one_var): Deal with DECL_RTL sometimes begin set also
14508 for basevars of SSA_NAMEs.
14509 (expand_used_vars): Reset TREE_USED for basevars of SSA_NAMEs,
14510 to not expand them twice.
14511 (gimple_expand_cfg): Clear DECL_RTL for those decls that have
14512 multiple places.
14513
14514 2009-06-08 Alexandre Oliva <aoliva@redhat.com>
14515
14516 * common.opt (fcompare-debug=, fcompare-debug-second): New.
14517 (fdump-final-insns=, gtoggle): New.
14518 * doc/invoke.texi: Document them.
14519 * final.c (rest_of_clean_state): Dump final insn stream.
14520 * gcc.c (invoke_as): Hook in -fcompare-debug.
14521 (static_spec_functions): Add compare-debug-dump-opt,
14522 compare-debug-self-opt and compare-debug-auxbase-opt.
14523 (compare_debug, compare_debug_second, compare_debug_opt): New.
14524 (switches_debug_check, n_switches_debug_check): New.
14525 (debug_auxbase_opt, debug_check_temp_file): New.
14526 (process_command): Handle -fno-compare-debug, -fcompare-debug and
14527 -fcompare-debug=*.
14528 (do_self_spec): Handle arguments after switches.
14529 (do_spec_1): Add .gk extension to temp file basenames for compare.
14530 (check_live_switch): Take SWITCH_IGNORE into account, and earlier.
14531 (cc1_options): Use it instead of normal auxbase computation for
14532 the second compare-debug compilation.
14533 (compare_files): New.
14534 (main): Set up and implement compare debug mode.
14535 (compare_debug_dump_opt_spec_function): New.
14536 (compare_debug_self_opt_spec_function): New.
14537 (compare_debug_auxbase_opt_spec_function): New.
14538 * toplev.c (process_options): Handle flag_gtoggle,
14539 flag_dump_final_insns.
14540 * coverage.c (coverage_begin_output): Don't overwrite .gcno file
14541 during -fcompare-debug-second compilation.
14542
14543 2009-06-07 Ian Lance Taylor <iant@google.com>
14544
14545 * dwarf2.h (enum dwarf_location_atom): Add INTERNAL_DW_OP_tls_addr.
14546 * dwarf2out.c (INTERNAL_DW_OP_tls_addr): Don't #define.
14547
14548 * c-common.c (c_do_switch_warnings): Don't exit early for -Wswitch
14549 with no default node. Change warning with %H to warning_at.
14550 Don't clear warn_switch around case checking.
14551 * doc/invoke.texi (Warning Options): Clarify distinction between
14552 -Wswitch and -Wswitch-enum.
14553
14554 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14555
14556 * tree-pass.h (TODO_update_ssa_any): Document internal use only.
14557
14558 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14559
14560 * gbl-ctors.h: Add header guard.
14561
14562 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14563
14564 * tree-flow.h (make_value_handle, set_value_handle, sort_vuses,
14565 sort_vuses_heap, vn_lookup_or_add, vn_lookup_or_add_with_stmt,
14566 vn_lookup_or_add_with_vuses, vn_add, vn_add_with_vuses,
14567 vn_lookup_with_stmt, vn_lookup, vn_lookup_with_vuses): Remove
14568 prototypes for removed functions.
14569 (expressions_equal_p): Move to ...
14570 * tree-ssa-sccvn.h: ... here and ...
14571 * matrix-reorg.c: ... adjust includes.
14572
14573 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14574
14575 * ipa-struct-reorg.c (do_reorg_1): Fix whitespace in dump output.
14576
14577 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14578
14579 * c-decl.c (finish_decl): Use bool for variable was_incomplete.
14580 (finish_function): Remove erroneous whitespace.
14581
14582 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14583
14584 * tree-cfg.c (gimple_merge_blocks): Commentary typo fix.
14585 (verify_stmts): Print statement who's gimple_bb is set to a wrong BB
14586
14587 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14588
14589 * errors.c (internal_error): Commentary typo fix.
14590 * gimple-iterator.c (gsi_insert_seq_on_edge): Ditto.
14591 * tree-ssa-pre.c: Ditto.
14592
14593 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14594
14595 * basic-block.h (ENTRY_BLOCK, EXIT_BLOCK): Document that neither of
14596 them is supposed to hold actual statements.
14597
14598 2009-06-06 Ian Lance Taylor <iant@google.com>
14599
14600 * doc/extend.texi (Attribute Syntax): Document that C++ labels on
14601 empty statements can now have attributes.
14602
14603 2009-06-05 Shujing Zhao <pearly.zhao@oracle.com>
14604
14605 * config/mips/mips.c: Use REG_P and CONST_INT_P where applicable.
14606 * config/mips/mips.md: Ditto.
14607
14608 2009-06-05 Nathan Froyd <froydnj@codesourcery.com>
14609
14610 * config/rs6000/eabi.asm (__eabi_convert): Don't define if
14611 _RELOCATABLE.
14612 (__eabi_uconvert): Likewise.
14613
14614 2009-06-05 Nathan Froyd <froydnj@codesourcery.com>
14615
14616 * config/rs6000/ppc-asm.h: Protect auto-host.h inclusion and
14617 CFI_* definitions with IN_GCC.
14618
14619 2009-06-05 David Edelsohn <edelsohn@gnu.org>
14620
14621 * xcoffout.h (xcoffout_source_line): Update prototype.
14622
14623 2009-06-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14624
14625 * builtins.c (do_mpc_ckconv, do_mpc_arg1): Use
14626 mpc_realref/mpc_imagref instead of MPC_RE/MPC_IM.
14627
14628 2009-06-05 Jakub Jelinek <jakub@redhat.com>
14629
14630 PR middle-end/40340
14631 * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
14632 inlined_function_outer_scope_p blocks for artificial inlines
14633 even at -g0/-g1.
14634 * tree.c (tree_nonartificial_location): Rewrite using
14635 block_nonartificial_location.
14636
14637 2009-06-05 Revital Eres <eres@il.ibm.com>
14638 Leehod Baruch <leehod@il.ibm.com>
14639
14640 * expr.c (expand_assignment): Expand MISALIGNED_INDIRECT_REF.
14641 (expand_expr_real_1): Remove comment.
14642 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
14643 Vectorize misaligned access when the target supports it.
14644 (vect_supportable_dr_alignment): Check for unaligned access support.
14645 * tree-vect-stmts.c (vectorizable_store): Generate misaligned store
14646 and remove asset.
14647
14648 2009-06-05 Julian Brown <julian@codesourcery.com>
14649
14650 * config/arm/ieee754-df.S (cmpdf2): Avoid writing below SP.
14651 * config/arm/ieee754-sf.S (cmpsf2): Likewise.
14652
14653 2009-06-05 Richard Guenther <rguenther@suse.de>
14654
14655 PR bootstrap/40350
14656 * dwarf2out.c (dwarf2out_begin_function): Mark discriminator
14657 as possibly unused.
14658
14659 2009-06-05 Jakub Jelinek <jakub@redhat.com>
14660
14661 * config/s390/s390.c (global_not_special_regno_p): New static inline.
14662 (save_gprs): Don't tell unwinder when a global register is saved.
14663 (s390_emit_epilogue): Emit needed epilogue unwind info.
14664
14665 2009-06-05 Alexandre Oliva <aoliva@redhat.com>
14666
14667 * dwarf2out.c (deferred_asm_name): New.
14668 (add_name_and_src_coords_attributes): Defer creation of
14669 DW_AT_MIPS_linkage_name attribute if DECL_ASSEMBLER_NAME was not
14670 computed yet.
14671 (move_linkage_attr): New.
14672 (dwarf2out_finish): Revisit deferrals and emit attributes at the
14673 right place.
14674
14675 2009-06-05 Alexandre Oliva <aoliva@redhat.com>
14676
14677 * tree-nested.c (finalize_nesting_tree_1): Declare the
14678 frame_decl in the binding tree.
14679
14680 2009-06-04 Cary Coutant <ccoutant@google.com>
14681
14682 * basic-block.h (struct basic_block_def): Add discriminator field.
14683 * dbxout.c (dbxout_source_line): Add new parameter. Change all
14684 callers.
14685 * debug.c (do_nothing_debug_hooks): Add additional entry.
14686 (debug_nothing_int_charstar_int): New function.
14687 * debug.h (struct gcc_debug_hooks): Add parameter to source_line hook.
14688 (debug_nothing_int_charstar_int): New declaration.
14689 * dwarf2out.c (dwarf2out_source_line): Add new parameter. Write
14690 discriminator value in .loc directive.
14691 * final.c (last_discriminator): New variable.
14692 (discriminator): New variable.
14693 (final_start_function): Initialize above variables, pass current
14694 discriminator to debug hook.
14695 (notice_source_line): Check for discriminator change.
14696 * gimple-pretty-print.c (dump_bb_header): Print discriminator value.
14697 * sdbout.c (sdbout_source_line): New parameter.
14698 * tree-cfg.c (struct locus_discrim_map): New structure type.
14699 (discriminator_per_locus): New hash table.
14700 (build_gimple_cfg): Allocate and free discriminator hash table.
14701 (make_edges): Call assign_discriminator.
14702 (locus_map_hash): New function.
14703 (locus_map_eq): New function.
14704 (next_discriminator_for_locus): New function.
14705 (same_line_p): New function.
14706 (assign_discriminator): New function.
14707 (make_cond_expr_edges): Call assign_discriminator.
14708 (make_gimple_switch_edges): Likewise.
14709 (first_non_label_stmt): New function.
14710 * vmsdbgout.c (vmsdbgout_source_line): Add new parameter. Change
14711 all callers.
14712 * xcoffout.c (xcoffout_source_line): Add new parameter.
14713
14714 * configure.ac (gcc_cv_as_discriminator): New configury check for
14715 gas support for discriminator.
14716 * configure: Regenerate.
14717 * config.in: Regenerate.
14718
14719 2009-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14720
14721 * config/arm/arm.c (thumb2_legitimate_index_p): Initialize
14722 val after checking for integers.
14723
14724 2009-06-04 Uros Bizjak <ubizjak@gmail.com>
14725
14726 * config/i386/i386.h (X86_64_MS_REGPARM_MAX): Rename from
14727 X64_REGPARM_MAX.
14728 (REGPARM_MAX): Use X86_64_MS_REGPARM_MAX.
14729 (X86_64_MS_SSE_REGPARM_MAX): Rename from X64_SSE_REGPARM_MAX.
14730 (SSE_REGPARM_MAX): Use X86_64_MS_SSE_REGPARM_MAX.
14731 * config/i386/i386.c: Use X86_64_MS_REGPARM_MAX instead of
14732 X64_REGPARM_MAX. Use X86_64_MS_SSE_REGPARM_MAX instead of
14733 X64_SSE_REGPARM_MAX.
14734 * config/i386/i386.md: Use X86_64_MS_SSE_REGPARM_MAX instead of
14735 X64_SSE_REGPARM_MAX.
14736
14737 2009-06-04 Alexandre Oliva <aoliva@redhat.com>
14738
14739 * gcc.c (report_times_to_file): New.
14740 (execute): Implement it.
14741 (process_command): Support -time=.
14742 * doc/invoke.texi: Document it.
14743
14744 2009-06-04 Alexandre Oliva <aoliva@redhat.com>
14745
14746 * tree-ssa-live.c (remove_unused_scope_block_p): Keep variables
14747 that have value exprs.
14748
14749 2009-06-04 Alexandre Oliva <aoliva@redhat.com>
14750
14751 * dwarf2asm.c (dw2_force_const_mem): Defer creation of
14752 declarations for constants until...
14753 (dw2_output_indirect_constant_1): ... this point.
14754
14755 2009-06-04 Richard Earnshaw <rearnsha@arm.com>
14756
14757 PR target/10242
14758 * arm.md (arm_addsi3): Don't try to split an add with an
14759 eliminable register until after reload has completed.
14760
14761 2009-06-03 Ian Lance Taylor <iant@google.com>
14762
14763 * dummy-checksum.c (executable_checksum): Use EXPORTED_CONST.
14764 * genattrtab.c (write_length_unit_log): Likewise.
14765 * genchecksum.c (dosum): Likewise.
14766 * gengtype.c (write_rtx_next): Likewise.
14767 (finish_root_table, write_roots): Likewise.
14768 * gimple.c (gimple_ops_offset_): Likewise.
14769 * tree-nomudflap.c (gt_ggc_r_gt_tree_mudflap_h): Likewise.
14770 * config/arc/arc.c (arc_attribute_table): Likewise.
14771 * config/arm/arm.c (arm_attribute_table): Likewise.
14772 * config/avr/avr.c (avr_attribute_table): Likewise.
14773 * config/crx/crx.c (crx_attribute_table): Likewise.
14774 * config/m32r/m32r.c (m32r_attribute_table): Likewise.
14775 * config/m68hc11/m68hc11.c (m68hc11_attribute_table): Likewise.
14776 * config/mcore/mcore.c (mcore_attribute_table): Likewise.
14777 * config/rs6000/rs6000.c (rs6000_attribute_table): Likewise.
14778 * config/sh/sh.c (sh_attribute_table): Likewise.
14779 * config/sparc/sparc.c (sparc_attribute_table): Likewise.
14780 * config/spu/spu.c (spu_attribute_table): Likewise.
14781 * config/v850/v850.c (v850_attribute_table): Likewise.
14782
14783 * config/alpha/alpha.c (vms_attribute_table): Make static.
14784 * config/bfin/bfin.c (bfin_attribute_table): Likewise.
14785 * config/h8300/h8300.c (h8300_attribute_table): Likewise.
14786 * config/mips/mips.c (mips_attribute_table): Likewise.
14787
14788 * Makefile.in (dummy-checksum.o): Depend upon $(CONFIG_H) and
14789 $(SYSTEM_H).
14790 (cc1-checksum.o): Likewise.
14791
14792 2009-06-03 Steve Ellcey <sje@cup.hp.com>
14793
14794 * config/ia64/vect.md (*movv2sf_internal): Handle big endian case.
14795
14796 2009-06-03 Jakub Jelinek <jakub@redhat.com>
14797
14798 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Return generated
14799 insn if it is changing sp. Use gen_add3_insn instead of
14800 conditionally gen_addsi3 and gen_adddi3.
14801 (offset_below_red_zone_p): New static inline function.
14802 (rs6000_emit_epilogue): Emit needed epilogue unwind info.
14803 Use gen_add3_insn instead of conditionally gen_addsi3 and gen_adddi3.
14804 * config/rs6000/ppc-asm.h: Include auto-host.h.
14805 (CFI_STARTPROC, CFI_ENDPROC, CFI_DEF_CFA_REGISTER, CFI_OFFSET,
14806 CFI_RESTORE): Define.
14807 * config/rs6000/crtresxgpr.asm: Add unwind info.
14808 * config/rs6000/crtresxfpr.asm: Likewise.
14809 * config/rs6000/crtresgpr.asm: Likewise.
14810 * config/rs6000/crtresfpr.asm: Likewise.
14811 * config/rs6000/crtsavgpr.asm: Likewise.
14812 * config/rs6000/crtsavfpr.asm: Likewise.
14813
14814 * dwarf2out.c (output_cfi_directive): Pass 1 instead of 0 to second
14815 argument of DWARF2_FRAME_REG_OUT macros.
14816
14817 2009-06-03 Julian Brown <julian@codesourcery.com>
14818
14819 * config/arm/arm.c (arm_hard_regno_mode_ok): Permit values of four
14820 words or less (including TImode) in core registers.
14821
14822 2009-06-03 Richard Guenther <rguenther@suse.de>
14823
14824 PR middle-end/40328
14825 * fold-const.c (fold_convert): Fold the build COMPLEX_EXPR.
14826
14827 2009-06-03 Andrey Belevantsev <abel@ispras.ru>
14828
14829 * statistics.c (statistics_counter_event): Do not record event
14830 in pass dump if its number == -1.
14831 (curr_statistics_hash): Add assert that we never get passes
14832 with static number == -1.
14833
14834 2009-06-03 Richard Guenther <rguenther@suse.de>
14835 Andrey Belevantsev <abel@ispras.ru>
14836
14837 * cfgexpand.c (discover_nonconstant_array_refs_r): Make only
14838 non-BLKmode arrays addressable.
14839
14840 2009-06-03 Maxim Kuvyrkov <maxim@codesourcery.com>
14841
14842 * config/m68k/linux.h (HAVE_GAS_BALIGN_AND_P2ALIGN): Move to ...
14843 * config/m68k/m68k.h: ... here.
14844
14845 2009-06-03 Martin Jambor <mjambor@suse.cz>
14846
14847 PR tree-optimization/40323
14848 * ipa-prop.c (get_ssa_def_if_simple_copy): Break if not single
14849 assignment.
14850
14851 2009-06-03 Richard Guenther <rguenther@suse.de>
14852
14853 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
14854 consistently.
14855
14856 2009-06-03 Shujing Zhao <pearly.zhao@oracle.com>
14857
14858 * config/sh/predicates.md: Use REG_P, MEM_P, CONST_INT_P, LABEL_P,
14859 JUMP_P, CALL_P, NONJUMP_INSN_P, NOTE_P, BARRIER_P and
14860 JUMP_TABLE_DATA_P where applicable.
14861 * config/sh/sh.c: Ditto.
14862 * config/sh/sh.h: Ditto.
14863 * config/sh/sh.md: Ditto.
14864 * config/sh/symbian.c: Ditto.
14865
14866 2009-06-03 Uros Bizjak <ubizjak@gmail.com>
14867
14868 * config/i386/driver-i386.c (describe_cache): Optimize
14869 concatenation of strings. Use snprintf instead of sprintf.
14870 (host_detect_local_cpu): Ditto. Ignore -march and -mtune for native
14871 target when not compiling with GCC.
14872
14873 2009-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
14874
14875 * config/sh/sh.c: Revert last change.
14876 (sh_expand_epilogue): Emit a blockage insn before the frame
14877 pointer adjustment unconditionally.
14878
14879 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
14880
14881 * config/pa/pa-hpux.h (LINK_SPEC): Remove "%<fwhole-program".
14882 * config/pa/pa-hpux10.h (LINK_SPEC): Likewise.
14883 * config/pa/pa-hpux11.h (LINK_SPEC): Likewise.
14884 * gcc.c (set_collect_gcc_options): Don't add -fwhole-program
14885 to COLLECT_GCC_OPTIONS.
14886
14887 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
14888
14889 * collect2.c (target_system_root): New variable.
14890 (main): Handle --sysroot=.
14891 (ignore_library): Strip the sysroot from the library path.
14892
14893 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
14894
14895 * Makefile.in (COLLECT2_OBJS): Add collect2-aix.o.
14896 (collect2.o): Depend on collect2-aix.h.
14897 (collect2-aix.o): New rule.
14898 * collect2-aix.h: New file.
14899 * collect2-aix.c: Likewise.
14900 * collect2.c: Include collect2-aix.h. Don't undefine
14901 OBJECT_FORMAT_COFF if CROSS_AIX_SUPPORT is defined.
14902 Guard native includes with #ifndef CROSS_DIRECTORY_STRUCTURE.
14903 Use TARGET_AIX_VERSION instead of _AIX51.
14904 * config/rs6000/aix43.h (TARGET_AIX_VERSION): Define.
14905 * config/rs6000/aix51.h (TARGET_AIX_VERSION): Likewise.
14906 * config/rs6000/aix52.h (TARGET_AIX_VERSION): Likewise.
14907 * config/rs6000/aix53.h (TARGET_AIX_VERSION): Likewise.
14908 * config/rs6000/aix61.h (TARGET_AIX_VERSION): Likewise.
14909
14910 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
14911
14912 * collect2.c (ignore_library): Avoid premature post-increment
14913 and null deference.
14914
14915 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
14916
14917 * Makefile.in (libgcc.mvars): Add TARGET_SYSTEM_ROOT.
14918 * config/rs6000/aix.h (LINK_SYSCALLS_SPEC): Add %R to the
14919 !CROSS_DIRECTORY_STRUCTURE alternative and use it for
14920 CROSS_DIRECTORY_STRUCTURE too.
14921 (LINK_LIBG_SPEC): Likewise.
14922 (LIB_SPEC): Add %R to sysroot paths.
14923 * config/rs6000/aix43.h (CPP_SPEC): Add %R to sysroot paths.
14924 (CPLUSPLUS_CPP_SPEC, LIB_SPEC): Likewise.
14925 * config/rs6000/aix51.h: As for aix43.h.
14926 * config/rs6000/aix52.h: Likewise.
14927 * config/rs6000/aix53.h: Likewise.
14928 * config/rs6000/aix61.h: Likewise.
14929 * config/rs6000/t-aix52 (SHLIB_LINK): Add $(TARGET_SYSTEM_ROOT)
14930 to the beginning of sysroot paths.
14931
14932 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
14933
14934 * print_rtl (print_rtx): Don't print modes in EXPR_LISTs and
14935 INSN_LISTs that are out of the REG_NOTE range.
14936
14937 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
14938
14939 * loop-unroll.c (struct iv_to_split): Add pointer to next.
14940 (struct var_to_expand): Likewise.
14941 (struct opt_info): Add head and tail for linked lists of the above.
14942 (analyze_insn_to_expand_var): Initialize next.
14943 (analyze_iv_to_split_insn): Likewise.
14944 (analyze_insns_in_loop): Create linked lists.
14945 (allocate_basic_variable): Simplify for use without hash table.
14946 (insert_var_expansion_initialization): Likewise, make it type-safer.
14947 (combine_var_copies_in_loop_exit): Likewise.
14948 (apply_opt_in_copies): Walk lists rather than hash tables.
14949 (release_var_copies): Simplified and inlined by hand into...
14950 (free_opt_info): ... this function.
14951
14952 2009-06-02 Richard Guenther <rguenther@suse.de>
14953
14954 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
14955 for field decls.
14956
14957 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
14958
14959 * cfgexpand.c (gimple_expand_cfg): Discard the source location
14960 only for builtins that are not overridden.
14961
14962 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
14963
14964 * gengtype.c (adjust_field_rtx_def): Add NOTE_INSN_DELETED_LABEL's
14965 label string.
14966
14967 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
14968
14969 * df-core.c (df_ref_debug): Honor -fdump-noaddr.
14970
14971 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
14972
14973 * combine.c (move_deaths): Compare LUIDs within the same BB only.
14974
14975 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
14976
14977 * common.opt (fdump-unnumbered-links): New.
14978 * doc/invoke.texi (-fdump-unnumbered-links): Document it.
14979 * print-rtl.c (flag_dump_unnumbered_links): New.
14980 (print_rtx): Test it.
14981
14982 2009-06-02 Richard Earnshaw <rearnsha@arm.com>
14983
14984 * arm.c (arm_get_frame_offsets): Prefer using r3 for padding a
14985 push/pop multiple to 8-byte alignment.
14986
14987 2009-06-01 Jakub Jelinek <jakub@redhat.com>
14988
14989 * config/i386/i386.c (queued_cfa_restores): New static variable.
14990 (ix86_add_cfa_restore_note, ix86_add_queued_cfa_restore_notes): New
14991 functions.
14992 (pro_epilogue_adjust_stack): Call ix86_add_queued_cfa_restore_notes.
14993 (ix86_emit_restore_reg_using_pop): Add RED_OFFSET argument.
14994 Set RTX_FRAME_RELATED_P immediately after adding a REG_CFA_* note.
14995 Call ix86_add_cfa_restore_note instead of adding REG_CFA_OFFSET
14996 note unconditionally.
14997 (ix86_emit_restore_regs_using_mov): Likewise.
14998 (ix86_emit_restore_sse_regs_using_mov): Likewise.
14999 (ix86_emit_restore_regs_using_pop): Add RED_OFFSET argument, pass
15000 it through to ix86_emit_restore_reg_using_pop.
15001 (ix86_emit_leave): Add RED_OFFSET argument. Call
15002 ix86_add_queued_cfa_restore_notes. Call ix86_add_cfa_restore_note
15003 instead of adding REG_CFA_OFFSET note unconditionally.
15004 (ix86_expand_epilogue): Compute RED_OFFSET, pass it down to
15005 the above functions. Call ix86_add_queued_cfa_restore_notes when
15006 needed.
15007
15008 * dwarf2out.c (dwarf2out_cfi_label): Add FORCE argument, if true,
15009 force output of the label even for dwarf2out_do_cfi_asm.
15010 (add_fde_cfi): If -g2 and above and cfi might change CFA,
15011 force creation of CFI label and chain DW_CFA_set_loc jumping to it
15012 for convert_cfa_to_fb_loc_list. Adjust other dwarf2out_cfi_label
15013 caller.
15014 (dwarf2out_stack_adjust, dwarf2out_frame_debug,
15015 dwarf2out_begin_epilogue, dwarf2out_frame_debug_restore_state): Adjust
15016 dwarf2out_cfi_label callers.
15017 * tree.h (dwarf2out_cfi_label): Adjust prototype.
15018 * config/arm/arm.c (thumb_pushpop, thumb1_output_function_prologue):
15019 Adjust dwarf2out_cfi_label callers.
15020 * config/vax/vax.c (vax_output_function_prologue): Likewise.
15021
15022 * config/i386/i386.h (struct machine_cfa_state,
15023 struct machine_function): Guard with ifndef USED_FOR_TARGET
15024 instead of not IN_LIBGCC2 and not in IN_TARGET_LIBS.
15025
15026 PR other/40024
15027 * emutls.c (__emutls_get_address): Change arr->size to mean number
15028 of allocated arr->data entries instead of # of slots + 1.
15029
15030 PR middle-end/40316
15031 * recog.c (peep2_reinit_state): New function.
15032 (peephole2_init_state): Use it at the end of a basic block and also
15033 when seeing a RTX_FRAME_RELATED_P insn.
15034
15035 2009-06-01 Steve Ellcey <sje@cup.hp.com>
15036
15037 * ia64.md (floatdirf2, fix_truncrfdi, floatunsdirf,
15038 fixuns_truncrfdi2): New.
15039 (fix_truncxfdi2_alts, fixuns_truncxfdi2_alts,
15040 *nmaddsf4_alts, *nmadddf4_alts, *nmadddf4_truncsf_alts,
15041 *mulxf3_alts, *mulxf3_truncsf_alts, *mulxf3_truncdf_alts,
15042 *maddxf4_alts, *maddxf4_alts_truncsf, *maddxf4_alts_truncdf,
15043 *nmaddxf4_alts, *nmaddxf4_truncsf_alts, *nmaddxf4_truncdf_alts,
15044 *recip_approx): Remove.
15045 (divsi3 modsi3, udivsi3, umodsi3, divsi3_internal, divdi3,
15046 moddi3, udivdi3, umoddi3, divdi3_internal_lat, divdi3_internal_thr,
15047 divsf3, sqrtsf2, divdf3, sqrtdf2, divxf3, sqrtxf2): Modify and
15048 move to div.md.
15049 * div.md (fix_truncrfdi2_alts, fixuns_truncrfdi2_alt,
15050 setf_exp_rf): New.
15051
15052 2009-06-01 Ian Lance Taylor <iant@google.com>
15053
15054 * attribs.c (register_attribute): Use CONST_CAST.
15055 * collect2.c (main): Use CONST_CAST2.
15056 (scan_prog_file): Likewise.
15057 * gcc.c (process_command, main): Likewise.
15058 * toplev.c (toplev_main): Likewise.
15059
15060 * c-typeck.c (handle_warn_cast_qual): New static function,
15061 partially broken out of build_c_cast.
15062 (build_c_cast): Call handle_warn_cast_qual.
15063 * doc/invoke.texi (Warning Options): Document new effect of
15064 -Wcast-qual.
15065
15066 2009-06-01 Aldy Hernandez <aldyh@redhat.com>
15067
15068 * diagnostic.c (diagnostic_build_prefix): Always print columns.
15069 (diagnostic_report_current_module): Print columns.
15070 * common.opt (flag_show_column): Enable by default.
15071
15072 2009-06-01 Luis Machado <luisgpm@br.ibm.com>
15073
15074 * alias.c (find_base_term): Check for NULL term before returning.
15075
15076 2009-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
15077
15078 Revert due to PR40320:
15079 2009-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
15080 * calls.c (emit_library_call_value_1): Don't force_operand for move
15081 and push insns.
15082
15083 2009-06-01 Olivier Hainque <hainque@adacore.com>
15084 Eric Botcazou <ebotcazou@adacore.com>
15085
15086 * tree.h (CONSTRUCTOR_BITFIELD_P): True if NODE, a FIELD_DECL, is
15087 to be processed as a bitfield for constructor output purposes.
15088 * output.h (initializer_constant_valid_for_bitfield_p): Declare
15089 new function.
15090 * varasm.c (oc_local_state): New type, output_constructor
15091 local state to support communication with helpers.
15092 (oc_outer_state): New type, output_constructor outer state of
15093 relevance in recursive calls.
15094 (output_constructor_array_range): New output_constructor helper,
15095 extracted code for an array range element.
15096 (output_constructor_regular_field): New output_constructor helper,
15097 extracted code for an element that is not a bitfield.
15098 (output_constructor_bitfield): New output_constructor helper,
15099 extracted code for a bitfield element. Accept an OUTER state
15100 argument for recursive processing. Recurse on record or array
15101 CONSTRUCTOR values, possibly past noop conversions.
15102 (initializer_constant_valid_for_bitfield_p): New predicate. Whether
15103 VALUE is a valid constant-valued expression for use in a static
15104 bit-field initializer.
15105 (output_constructor): Rework to use helpers. Accept and honor an
15106 OUTER state argument for recursive calls. Return total size. Be
15107 prepared for nested constructors initializing bitfields.
15108 (output_constant): Feed OUTER in calls to output_constructor.
15109
15110 2009-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
15111
15112 * calls.c (emit_library_call_value_1): Don't force_operand for move
15113 and push insns.
15114
15115 2009-06-01 Nick Clifton <nickc@redhat.com>
15116
15117 * doc/invoke.texi (IA-64 Options): Fix typo.
15118
15119 2009-06-01 Ira Rosen <irar@il.ibm.com>
15120
15121 PR tree-optimization/39129
15122 * tree-vect-loop-manip.c (conservative_cost_threshold): Change the
15123 printed message.
15124 (vect_do_peeling_for_loop_bound): Use
15125 LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
15126 LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
15127 (vect_loop_versioning): Likewise.
15128 (vect_create_cond_for_alias_checks): Fix indentation.
15129 * tree-vectorizer.h (struct _loop_vec_info): Fix indentation of the
15130 macros.
15131 (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT): Define.
15132 (LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Likewise.
15133 * tree-vect-loop.c (vect_analyze_loop_form): Change "too many BBs" to
15134 "control flow in loop".
15135 (vect_estimate_min_profitable_iters): Use
15136 LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
15137 LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
15138 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
15139 (vect_create_data_ref_ptr): Don't mention array dimension in printing.
15140 * tree-vect-stmts.c (vectorizable_store): Replace the check that the
15141 statement belongs to a group of strided accesses with the exact code
15142 check.
15143 (vectorizable_load): Likewise.
15144 * tree-vect-slp.c (vect_analyze_slp_instance): Spell out "basic block".
15145 (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
15146
15147 2009-06-01 Gerald Pfeifer <gerald@pfeifer.com>
15148
15149 * config/freebsd-stdint.h: New file.
15150 * config.gcc (*-*-freebsd): Set use_gcc_stdint=wrap.
15151 Add freebsd-stdint.h to tm_file.
15152
15153 2009-06-01 Richard Earnshaw <rearnsha@arm.com>
15154
15155 * arm/thumb2.md (thumb2_zero_extendhidi2): New insn and split.
15156 (thumb2_extendhidi2): Likewise.
15157
15158 2009-05-31 Ian Lance Taylor <iant@google.com>
15159
15160 * regstat.c (regstat_n_sets_and_refs): Remove duplicate definition.
15161
15162 2009-05-31 Ian Lance Taylor <iant@google.com>
15163
15164 * Makefile.in (except.o): Depend upon gt-except.h, not gt-$(EXCEPT_H).
15165 (ipa-cp.o): Depend upon $(FIBHEAP_H) and $(PARAMS_H).
15166 (ipa-reference.o): Depend upon gt-ipa-reference.h.
15167
15168 2009-05-31 Jason Merrill <jason@redhat.com>
15169
15170 * tree-pretty-print.c (print_call_name): Take the callee, not the
15171 call itself. Make non-static. Use dump_function_name for functions.
15172 (dump_generic_node): Adjust.
15173 * diagnostic.h: Declare print_call_name.
15174 * gimple-pretty-print.c (dump_gimple_call): Use it.
15175
15176 2009-05-31 Kaz Kojima <kkojima@gcc.gnu.org>
15177
15178 * config/sh/sh.md (ashldi3_std): New define_expand.
15179 (ashldi3): Use it.
15180
15181 2009-05-31 Kaz Kojima <kkojima@gcc.gnu.org>
15182
15183 PR target/40313
15184 * config/sh/sh.c: Include debug.h.
15185 (sh_expand_epilogue): Emit a blockage insn before the frame
15186 pointer adjustment also when dwarf2out_do_frame returns true.
15187
15188 2009-05-31 Richard Earnshaw <rearnsha@arm.com>
15189
15190 * arm/thumb2.md (thumb2_extendsidi2): Add a split sub-pattern.
15191 (thumb2_extendqidi2): New pattern.
15192
15193 2009-05-31 Ira Rosen <irar@il.ibm.com>
15194
15195 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
15196 mark phis for renaming.
15197 * tree-vectorizer.c (vect_memsyms_to_rename): Remove.
15198 (vectorize_loops): Don't allocate and free vect_memsyms_to_rename.
15199 Call mark_sym_for_renaming.
15200 * tree-vectorizer.h (vect_memsyms_to_rename): Remove.
15201 * tree-vect-loop.c (vect_transform_loop): Remove
15202 vect_memsyms_to_rename initialization and a call to
15203 mark_set_for_renaming.
15204
15205 2009-05-31 Jakub Jelinek <jakub@redhat.com>
15206
15207 PR middle-end/40304
15208 * config/i386/i386.c (pro_epilogue_adjust_stack): Mark insns
15209 frame related even if !set_cfa && style < 0.
15210
15211 2009-05-30 Kai Tietz <kai.tietz@onevision.com>
15212
15213 * config/i386/mingw-tls.c: New file.
15214 * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Add mingw-tls.c file.
15215 * gthr-win32.h (MINGW32_SUPPORTS_MT_EH): Define it for targets
15216 defining _WIN32 but not __CYGWIN__.
15217
15218 2009-05-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15219
15220 * configure.ac: Add MPC support.
15221
15222 * config.in, configure: Regenerate.
15223
15224 2009-05-29 Richard Henderson <rth@redhat.com>
15225
15226 * cfgcleanup.c (try_crossjump_to_edge): Only skip past
15227 NOTE_INSN_BASIC_BLOCK.
15228 * cfglayout.c (duplicate_insn_chain): Copy epilogue insn marks.
15229 Duplicate NOTE_INSN_EPILOGUE_BEG notes.
15230 * cfgrtl.c (can_delete_note_p): Allow NOTE_INSN_EPILOGUE_BEG
15231 to be deleted.
15232 * dwarf2out.c (struct cfa_loc): Change indirect field to bitfield,
15233 add in_use field.
15234 (add_cfi): Disable check redefining cfa away from drap.
15235 (lookup_cfa_1): Add remember argument; handle remember/restore.
15236 (lookup_cfa): Pass remember argument.
15237 (cfa_remember): New.
15238 (compute_barrier_args_size_1): Remove sibcall check.
15239 (dwarf2out_frame_debug_def_cfa): New.
15240 (dwarf2out_frame_debug_adjust_cfa): New.
15241 (dwarf2out_frame_debug_cfa_offset): New.
15242 (dwarf2out_frame_debug_cfa_register): New.
15243 (dwarf2out_frame_debug_cfa_restore): New.
15244 (dwarf2out_frame_debug): Handle REG_CFA_* notes.
15245 (dwarf2out_begin_epilogue): New.
15246 (dwarf2out_frame_debug_restore_state): New.
15247 (dw_cfi_oprnd1_desc): Handle DW_CFA_remember_state,
15248 DW_CFA_restore_state.
15249 (output_cfi_directive): Likewise.
15250 (convert_cfa_to_fb_loc_list): Likewise.
15251 (dw_cfi_oprnd1_desc): Handle DW_CFA_restore.
15252 * dwarf2out.h: Update.
15253 * emit-rtl.c (try_split): Don't split RTX_FRAME_RELATED_P.
15254 (copy_insn_1): Early out for null.
15255 * final.c (final_scan_insn): Call dwarf2out_begin_epilogue
15256 and dwarf2out_frame_debug_restore_state.
15257 * function.c (prologue, epilogue, sibcall_epilogue): Remove.
15258 (prologue_insn_hash, epilogue_insn_hash): New.
15259 (free_after_compilation): Adjust freeing accordingly.
15260 (record_insns): Create hash table if needed; push insns into
15261 hash instead of array.
15262 (maybe_copy_epilogue_insn): New.
15263 (contains): Search hash table instead of array.
15264 (sibcall_epilogue_contains): Remove.
15265 (thread_prologue_and_epilogue_insns): Split eh_return insns
15266 and mark them as epilogues.
15267 (reposition_prologue_and_epilogue_notes): Rewrite epilogue
15268 scanning in terms of basic blocks.
15269 * insn-notes.def (CFA_RESTORE_STATE): New.
15270 * jump.c (returnjump_p_1): Accept EH_RETURN.
15271 (eh_returnjump_p_1, eh_returnjump_p): New.
15272 * reg-notes.def (CFA_DEF_CFA, CFA_ADJUST_CFA, CFA_OFFSET,
15273 CFA_REGISTER, CFA_RESTORE): New.
15274 * rtl.def (EH_RETURN): New.
15275 * rtl.h (eh_returnjump_p, maybe_copy_epilogue_insn): Declare.
15276
15277 * config/bfin/bfin.md (UNSPEC_VOLATILE_EH_RETURN): Remove.
15278 (eh_return_internal): Use eh_return rtx; split w/ epilogue.
15279
15280 * config/i386/i386.c (gen_push): Update cfa state.
15281 (pro_epilogue_adjust_stack): Add set_cfa argument. When true,
15282 add a CFA_ADJUST_CFA note.
15283 (ix86_dwarf_handle_frame_unspec): Remove.
15284 (ix86_expand_prologue): Update cfa state.
15285 (ix86_emit_restore_reg_using_pop): New.
15286 (ix86_emit_restore_regs_using_pop): New.
15287 (ix86_emit_leave): New.
15288 (ix86_emit_restore_regs_using_mov): Add CFA_RESTORE notes.
15289 (ix86_expand_epilogue): Add notes for unwinding the epilogue.
15290 * config/i386/i386.h (struct machine_cfa_state): New.
15291 (ix86_cfa_state): New.
15292 * config/i386/i386.md (UNSPEC_EH_RETURN): Remove.
15293 (eh_return_internal): Merge from eh_return_<mode>,
15294 use eh_return rtx, split w/ epilogue.
15295
15296 2009-05-29 Ian Lance Taylor <iant@google.com>
15297
15298 * builtins.c (validate_gimple_arglist): Don't use va_arg with
15299 enum type.
15300 * calls.c (emit_library_call_value_1): Likewise.
15301
15302 * c-typeck.c (c_build_va_arg): New function.
15303 * c-tree.h (c_build_va_arg): Declare.
15304 * c-parser.c (c_parser_postfix_expression): Call c_build_va_arg
15305 instead of build_va_arg.
15306
15307 2009-05-29 Eric Botcazou <ebotcazou@adacore.com>
15308
15309 * tree-ssa-loop-ivopts.c (strip_offset_1) <MULT_EXPR>: New case.
15310 (force_expr_to_var_cost) <NEGATE_EXPR>: Likewise.
15311 (ptr_difference_cost): Use affine combinations to compute it.
15312 (difference_cost): Likewise.
15313 (get_computation_cost_at): Compute more accurate cost for addresses
15314 if the ratio is a multiplier allowed in addresses.
15315 For non-addresses, consider that an additional offset or symbol is
15316 added only once.
15317
15318 2009-05-29 Jakub Jelinek <jakub@redhat.com>
15319
15320 * config/i386/i386.c (ix86_decompose_address): Avoid useless
15321 0 displacement. Add 0 displacement if base is %[er]bp or %r13.
15322
15323 * config/i386/i386.md (prefix_data16, prefix_rep): Set to 0 for
15324 TYPE_SSE{MULADD,4ARG,IADD1,CVT1} by default.
15325 (prefix_rex): For UNIT_MMX don't imply the prefix by default
15326 if MODE_DI.
15327 (prefix_extra): Default to 2 for TYPE_SSE{MULADD,4ARG} and
15328 to 1 for TYPE_SSE{IADD1,CVT1}.
15329 (prefix_vex_imm8): Removed.
15330 (length_vex): Only pass 1 as second argument to
15331 ix86_attr_length_vex_default if prefix_extra is 0.
15332 (modrm): For TYPE_INCDEC only set to 0 if not TARGET_64BIT.
15333 (length): For prefix vex computation use length_immediate
15334 attribute instead of prefix_vex_imm8.
15335 (cmpqi_ext_3_insn, cmpqi_ext_3_insn_rex64,
15336 addqi_ext_1, addqi_ext_1_rex64, *testqi_ext_0, andqi_ext_0,
15337 *andqi_ext_0_cc, *iorqi_ext_0, *xorqi_ext_0, *xorqi_cc_ext_1,
15338 *xorqi_cc_ext_1_rex64): Override modrm attribute to 1.
15339 (extendsidi2_rex64, extendhidi2, extendqidi2, extendhisi2,
15340 *extendhisi2_zext, extendqihi2, extendqisi2, *extendqisi2_zext): Emit
15341 a space in between the operands.
15342 (*anddi_1_rex64, *andsi_1): Likewise. Override prefix_rex to 1
15343 if one operand is 0xff and the other one si, di, bp or sp.
15344 (*andhi_1): Override prefix_rex to 1 if one operand is 0xff and the
15345 other one si, di, bp or sp.
15346 (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Add mode attribute.
15347 (*ffssi_1, *ffsdi_1, ctzsi2, ctzdi2): Add
15348 type and mode attributes.
15349 (*bsr, *bsr_rex64, *bsrhi): Add type attribute.
15350 (*cmpfp_i_mixed, *cmpfp_iu_mixed): For TYPE_SSECOMI, clear
15351 prefix_rep attribute and set prefix_data16 attribute iff MODE_DF.
15352 (*cmpfp_i_sse, *cmpfp_iu_sse): Clear prefix_rep attribute and set
15353 prefix_data16 attribute iff MODE_DF.
15354 (*movsi_1): For TYPE_SSEMOV MODE_SI set prefix_data16 attribute.
15355 (fix_trunc<mode>di_sse): Set prefix_rex attribute.
15356 (*adddi_4_rex64, *addsi_4): Use const128_operand instead of
15357 constm128_operand in length_immediate computation.
15358 (*addhi_4): Likewise. Fix mode attribute to MODE_HI.
15359 (anddi_1_rex64): Use movzbl/movzwl instead of movzbq/movzwq.
15360 (*avx_ashlti3, sse2_ashlti3, *avx_lshrti3, sse2_lshrti3): Set
15361 length_immediate attribute to 1.
15362 (x86_fnstsw_1, x86_fnstcw_1, x86_fldcw_1): Fix length attribute.
15363 (*movdi_1_rex64): Override prefix_rex or prefix_data16 attributes
15364 for certain alternatives.
15365 (*movdf_nointeger, *movdf_integer_rex64, *movdf_integer): Override
15366 prefix_data16 attribute if MODE_V1DF.
15367 (*avx_setcc<mode>, *sse_setcc<mode>, *sse5_setcc<mode>): Set
15368 length_immediate to 1.
15369 (set_got_rex64, set_rip_rex64): Remove length attribute, set
15370 length_address to 4, set mode attribute to MODE_DI.
15371 (set_got_offset_rex64): Likewise. Set length_immediate to 0.
15372 (fxam<mode>2_i387): Set length attribute to 4.
15373 (*prefetch_sse, *prefetch_sse_rex, *prefetch_3dnow,
15374 *prefetch_3dnow_rex): Override length_address attribute.
15375 (sse4_2_crc32<mode>): Override prefix_data16 and prefix_rex
15376 attributes.
15377 * config/i386/predicates.md (ext_QIreg_nomode_operand): New predicate.
15378 (constm128_operand): Removed.
15379 * config/i386/i386.c (memory_address_length): For
15380 disp && !index && !base in 64-bit mode account for SIB byte if
15381 print_operand_address can't optimize disp32 into disp32(%rip)
15382 and UNSPEC doesn't imply (%rip) addressing. Add 1 to length
15383 for fs: or gs: segment.
15384 (ix86_attr_length_immediate_default): When checking if shortform
15385 is possible, truncate immediate to the length of the non-shortened
15386 immediate.
15387 (ix86_attr_length_address_default): Ignore MEM_P operands
15388 with X constraint.
15389 (ix86_attr_length_vex_default): Only check for DImode on
15390 GENERAL_REG_P operands.
15391 * config/i386/sse.md (<sse>_comi, <sse>_ucomi): Clear
15392 prefix_rep attribute, set prefix_data16 attribute iff MODE_DF.
15393 (sse_cvttps2pi): Clear prefix_rep attribute.
15394 (sse2_cvttps2dq, *sse2_cvtpd2dq, sse2_cvtps2pd): Clear prefix_data16
15395 attribute.
15396 (*sse2_cvttpd2dq): Don't clear prefix_rep attribute.
15397 (*avx_ashr<mode>3, ashr<mode>3, *avx_lshr<mode>3, lshr<mode>3,
15398 *avx_ashl<mode>3, ashl<mode>3): Set length_immediate attribute to 1
15399 iff operand 2 is const_int_operand.
15400 (*vec_dupv4si, avx_shufpd256_1, *avx_shufpd_<mode>,
15401 sse2_shufpd_<mode>): Set length_immediate attribute to 1.
15402 (sse2_pshufd_1): Likewise. Set prefix attribute to maybe_vex
15403 instead of vex.
15404 (sse2_pshuflw_1, sse2_pshufhw_1): Set length_immediate to 1 and clear
15405 prefix_data16.
15406 (sse2_unpckhpd, sse2_unpcklpd, sse2_storehpd, *vec_concatv2df): Set
15407 prefix_data16 attribute for movlpd and movhpd instructions.
15408 (sse2_loadhpd, sse2_loadlpd, sse2_movsd): Likewise. Override
15409 length_immediate for shufpd instruction.
15410 (sse2_movntsi, sse3_lddqu): Clear prefix_data16 attribute.
15411 (avx_cmpp<avxmodesuffixf2c><mode>3,
15412 avx_cmps<ssemodesuffixf2c><mode>3, *avx_maskcmp<mode>3,
15413 <sse>_maskcmp<mode>3, <sse>_vmmaskcmp<mode>3,
15414 avx_shufps256_1, *avx_shufps_<mode>, sse_shufps_<mode>,
15415 *vec_dupv4sf_avx, *vec_dupv4sf): Set length_immediate attribute to 1.
15416 (*avx_cvtsi2ssq, *avx_cvtsi2sdq): Set length_vex attribute to 4.
15417 (sse_cvtsi2ssq, sse2_cvtsi2sdq): Set prefix_rex attribute to 1.
15418 (sse2_cvtpi2pd, sse_loadlps, sse2_storelpd): Override
15419 prefix_data16 attribute for the first alternative to 1.
15420 (*avx_loadlps): Override length_immediate for the first alternative.
15421 (*vec_concatv2sf_avx): Override length_immediate and prefix_extra
15422 attributes for second alternative.
15423 (*vec_concatv2sf_sse4_1): Override length_immediate and
15424 prefix_data16 attributes for second alternative.
15425 (*vec_setv4sf_avx, *avx_insertps, vec_extract_lo_<mode>,
15426 vec_extract_hi_<mode>, vec_extract_lo_v16hi,
15427 vec_extract_hi_v16hi, vec_extract_lo_v32qi,
15428 vec_extract_hi_v32qi): Set prefix_extra and length_immediate to 1.
15429 (*vec_setv4sf_sse4_1, sse4_1_insertps, *sse4_1_extractps): Set
15430 prefix_data16 and length_immediate to 1.
15431 (*avx_mulv2siv2di3, *avx_mulv4si3, sse4_2_gtv2di3): Set prefix_extra
15432 to 1.
15433 (*avx_<code><mode>3, *avx_eq<mode>3, *avx_gt<mode>3): Set
15434 prefix_extra attribute for variants that don't have 0f prefix alone.
15435 (*avx_pinsr<ssevecsize>): Likewise. Set length_immediate to 1.
15436 (*sse4_1_pinsrb, *sse2_pinsrw, *sse4_1_pinsrd, *sse4_1_pextrb,
15437 *sse4_1_pextrb_memory, *sse2_pextrw, *sse4_1_pextrw_memory,
15438 *sse4_1_pextrd): Set length_immediate to 1.
15439 (*sse4_1_pinsrd): Likewise. Set prefix_extra to 1.
15440 (*sse4_1_pinsrq, *sse4_1_pextrq): Set prefix_rex and length_immediate
15441 to 1.
15442 (*vec_extractv2di_1_rex64_avx, *vec_extractv2di_1_rex64,
15443 *vec_extractv2di_1_avx, *vec_extractv2di_1_sse2): Override
15444 length_immediate to 1 for second alternative.
15445 (*vec_concatv2si_avx, *vec_concatv2di_rex64_avx): Override
15446 prefix_extra and length_immediate attributes for the first
15447 alternative.
15448 (vec_concatv2si_sse4_1): Override length_immediate to 1 for the
15449 first alternative.
15450 (*vec_concatv2di_rex64_sse4_1): Likewise. Override prefix_rex
15451 to 1 for the first and third alternative.
15452 (*vec_concatv2di_rex64_sse): Override prefix_rex to 1 for the second
15453 alternative.
15454 (*sse2_maskmovdqu, *sse2_maskmovdqu_rex64): Override length_vex
15455 attribute.
15456 (*sse_sfence, sse2_mfence, sse2_lfence): Override length_address
15457 attribute to 0.
15458 (*avx_phaddwv8hi3, *avx_phadddv4si3, *avx_phaddswv8hi3,
15459 *avx_phsubwv8hi3, *avx_phsubdv4si3, *avx_phsubswv8hi,
15460 *avx_pmaddubsw128, *avx_pmulhrswv8hi3, *avx_pshufbv16qi3,
15461 *avx_psign<mode>3): Set prefix_extra attribute to 1.
15462 (ssse3_phaddwv4hi3, ssse3_phadddv2si3, ssse3_phaddswv4hi3,
15463 ssse3_phsubwv4hi3, ssse3_phsubdv2si3, ssse3_phsubswv4hi3,
15464 ssse3_pmaddubsw, *ssse3_pmulhrswv4hi, ssse3_pshufbv8qi3,
15465 ssse3_psign<mode>3): Override prefix_rex attribute.
15466 (*avx_palignrti): Override prefix_extra and length_immediate to 1.
15467 (ssse3_palignrti): Override length_immediate to 1.
15468 (ssse3_palignrdi): Override length_immediate to 1, override
15469 prefix_rex attribute.
15470 (abs<mode>2): Override prefix_rep to 0, override prefix_rex attribute.
15471 (sse4a_extrqi): Override length_immediate to 2.
15472 (sse4a_insertqi): Likewise. Override prefix_data16 to 0.
15473 (sse4a_insertq): Override prefix_data16 to 0.
15474 (avx_blendp<avxmodesuffixf2c><avxmodesuffix>,
15475 avx_blendvp<avxmodesuffixf2c><avxmodesuffix>,
15476 avx_dpp<avxmodesuffixf2c><avxmodesuffix>, *avx_mpsadbw,
15477 *avx_pblendvb, *avx_pblendw, avx_roundp<avxmodesuffixf2c>256,
15478 avx_rounds<avxmodesuffixf2c>256): Override prefix_extra
15479 and length_immediate to 1.
15480 (sse4_1_blendp<ssemodesuffixf2c>, sse4_1_dpp<ssemodesuffixf2c>,
15481 sse4_2_pcmpestr, sse4_2_pcmpestri, sse4_2_pcmpestrm,
15482 sse4_2_pcmpestr_cconly, sse4_2_pcmpistr, sse4_2_pcmpistri,
15483 sse4_2_pcmpistrm, sse4_2_pcmpistr_cconly): Override prefix_data16
15484 and length_immediate to 1.
15485 (sse4_1_blendvp<ssemodesuffixf2c>): Override prefix_data16 to 1.
15486 (sse4_1_mpsadbw, sse4_1_pblendw): Override length_immediate to 1.
15487 (*avx_packusdw, avx_vtestp<avxmodesuffixf2c><avxmodesuffix>,
15488 avx_ptest256): Override prefix_extra to 1.
15489 (sse4_1_roundp<ssemodesuffixf2c>, sse4_1_rounds<ssemodesuffixf2c>):
15490 Override prefix_data16 and length_immediate to 1.
15491 (sse5_pperm_zero_v16qi_v8hi, sse5_pperm_sign_v16qi_v8hi,
15492 sse5_pperm_zero_v8hi_v4si, sse5_pperm_sign_v8hi_v4si,
15493 sse5_pperm_zero_v4si_v2di, sse5_pperm_sign_v4si_v2di,
15494 sse5_vrotl<mode>3, sse5_ashl<mode>3, sse5_lshl<mode>3): Override
15495 prefix_data16 to 0 and prefix_extra to 2.
15496 (sse5_rotl<mode>3, sse5_rotr<mode>3): Override length_immediate to 1.
15497 (sse5_frcz<mode>2, sse5_vmfrcz<mode>2): Don't override prefix_extra
15498 attribute.
15499 (*sse5_vmmaskcmp<mode>3, sse5_com_tf<mode>3,
15500 sse5_maskcmp<mode>3, sse5_maskcmp<mode>3, sse5_maskcmp_uns<mode>3):
15501 Override prefix_data16 and prefix_rep to 0, length_immediate to 1
15502 and prefix_extra to 2.
15503 (sse5_maskcmp_uns2<mode>3, sse5_pcom_tf<mode>3): Override
15504 prefix_data16 to 0, length_immediate to 1 and prefix_extra to 2.
15505 (*avx_aesenc, *avx_aesenclast, *avx_aesdec, *avx_aesdeclast,
15506 avx_vpermilvar<mode>3,
15507 avx_vbroadcasts<avxmodesuffixf2c><avxmodesuffix>,
15508 avx_vbroadcastss256, avx_vbroadcastf128_p<avxmodesuffixf2c>256,
15509 avx_maskloadp<avxmodesuffixf2c><avxmodesuffix>,
15510 avx_maskstorep<avxmodesuffixf2c><avxmodesuffix>):
15511 Override prefix_extra to 1.
15512 (aeskeygenassist, pclmulqdq): Override length_immediate to 1.
15513 (*vpclmulqdq, avx_vpermil<mode>, avx_vperm2f128<mode>3,
15514 vec_set_lo_<mode>, vec_set_hi_<mode>, vec_set_lo_v16hi,
15515 vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Override
15516 prefix_extra and length_immediate to 1.
15517 (*avx_vzeroall, avx_vzeroupper, avx_vzeroupper_rex64): Override
15518 modrm to 0.
15519 (*vec_concat<mode>_avx): Override prefix_extra and length_immediate
15520 to 1 for the first alternative.
15521 * config/i386/mmx.md (*mov<mode>_internal_rex64): Override
15522 prefix_rep, prefix_data16 and/or prefix_rex attributes in certain
15523 cases.
15524 (*mov<mode>_internal_avx, *movv2sf_internal_rex64,
15525 *movv2sf_internal_avx, *movv2sf_internal): Override
15526 prefix_rep attribute for certain alternatives.
15527 (*mov<mode>_internal): Override prefix_rep or prefix_data16
15528 attributes for certain alternatives.
15529 (*movv2sf_internal_rex64_avx): Override prefix_rep and length_vex
15530 attributes for certain alternatives.
15531 (*mmx_addv2sf3, *mmx_subv2sf3, *mmx_mulv2sf3,
15532 *mmx_<code>v2sf3_finite, *mmx_<code>v2sf3, mmx_rcpv2sf2,
15533 mmx_rcpit1v2sf3, mmx_rcpit2v2sf3, mmx_rsqrtv2sf2, mmx_rsqit1v2sf3,
15534 mmx_haddv2sf3, mmx_hsubv2sf3, mmx_addsubv2sf3,
15535 *mmx_eqv2sf3, mmx_gtv2sf3, mmx_gev2sf3, mmx_pf2id, mmx_pf2iw,
15536 mmx_pi2fw, mmx_floatv2si2, mmx_pswapdv2sf2, *mmx_pmulhrwv4hi3,
15537 mmx_pswapdv2si2): Set prefix_extra attribute to 1.
15538 (mmx_ashr<mode>3, mmx_lshr<mode>3, mmx_ashl<mode>3): Set
15539 length_immediate to 1 if operand 2 is const_int_operand.
15540 (*mmx_pinsrw, mmx_pextrw, mmx_pshufw_1, *vec_dupv4hi,
15541 *vec_extractv2si_1): Set length_immediate attribute to 1.
15542 (*mmx_uavgv8qi3): Override prefix_extra attribute to 1 if
15543 using old 3DNOW insn rather than SSE/3DNOW_A.
15544 (mmx_emms, mmx_femms): Clear modrm attribute.
15545
15546 2009-05-29 Martin Jambor <mjambor@suse.cz>
15547
15548 * tree-sra.c: New implementation of SRA.
15549
15550 * params.def (PARAM_SRA_MAX_STRUCTURE_SIZE): Removed.
15551 (PARAM_SRA_MAX_STRUCTURE_COUNT): Removed.
15552 (PARAM_SRA_FIELD_STRUCTURE_RATIO): Removed.
15553 * params.h (SRA_MAX_STRUCTURE_SIZE): Removed.
15554 (SRA_MAX_STRUCTURE_COUNT): Removed.
15555 (SRA_FIELD_STRUCTURE_RATIO): Removed.
15556 * doc/invoke.texi (sra-max-structure-size): Removed.
15557 (sra-field-structure-ratio): Removed.
15558
15559 2009-05-29 Jakub Jelinek <jakub@redhat.com>
15560
15561 PR middle-end/40291
15562 * builtins.c (expand_builtin_memcmp): Convert len to sizetype
15563 before expansion.
15564
15565 2009-05-29 Andrey Belevantsev <abel@ispras.ru>
15566
15567 PR rtl-optimization/40101
15568 * sel-sched-ir.c (get_seqno_by_preds): Allow returning negative
15569 seqno. Adjust comment.
15570 * sel-sched.c (find_seqno_for_bookkeeping): Assert that when
15571 inserting bookkeeping before a jump, the jump is not scheduled.
15572 When no positive seqno found, provide a value. Add comment.
15573
15574 2009-05-29 Richard Guenther <rguenther@suse.de>
15575
15576 * tree-ssa-alias.c (nonaliasing_component_refs_p): Remove
15577 short-cutting on the first component.
15578
15579 2009-05-29 Jakub Jelinek <jakub@redhat.com>
15580
15581 PR middle-end/39958
15582 * omp-low.c (scan_omp_1_op): Call remap_type on TREE_TYPE
15583 for trees other than decls/types.
15584
15585 2009-05-29 Richard Guenther <rguenther@suse.de>
15586
15587 * tree-ssa-operands.c (get_expr_operands): Do not handle
15588 INDIRECT_REFs in the handled-component case. Remove
15589 unused get_ref_base_and_extent case.
15590 * tree-dfa.c (get_ref_base_and_extent): Avoid calling
15591 tree_low_cst and host_integerp where possible.
15592 * tree-ssa-structalias.c (equiv_class_label_eq): Check hash
15593 codes for equivalence.
15594 * dce.c (find_call_stack_args): Avoid redundant bitmap queries.
15595
15596 2009-05-29 David Billinghurst <billingd@gcc.gnu.org>
15597
15598 * config.gcc: Add i386/t-fprules-softfp and soft-fp/t-softfp
15599 to tmake_file for i[34567]86-*-cygwin*.
15600
15601 2009-05-29 Jakub Jelinek <jakub@redhat.com>
15602
15603 PR target/40017
15604 * config/rs6000/rs6000-c.c (_Bool_keyword): New variable.
15605 (altivec_categorize_keyword, init_vector_keywords,
15606 rs6000_cpu_cpp_builtins): Define _Bool as conditional macro
15607 similar to bool.
15608
15609 2009-05-29 Kai Tietz <kai.tietz@onevision.com>
15610
15611 * tree.c (handle_dll_attribute): Check if node is
15612 of kind FUNCTION_DECL for DECL_DECLARED_INLINE_P check.
15613
15614 2009-05-29 Richard Earnshaw <rearnsha@arm.com>
15615
15616 * config/arm/thumb2.md (thumb2_zero_extendsidi2): Add a split
15617 component.
15618 (thumb2_zero_extendqidi2): Likewise.
15619
15620 2009-05-28 Kaz Kojima <kkojima@gcc.gnu.org>
15621
15622 * config/sh/sh.c (sh_expand_t_scc): Use gen_xorsi3_movrt
15623 instead of gen_movrt.
15624 * config/sh/sh.md (movrt): Remove.
15625
15626 2009-05-28 Steve Ellcey <sje@cup.hp.com>
15627
15628 * doc/invoke.texi (IA-64 Options):
15629 Add -msdata, -mfused-madd, -mno-inline-float-divide,
15630 -mno-inline-int-divide, -mno-inline-sqrt, -msched-spec-ldc,
15631 -msched-spec-control-ldc, -msched-prefer-non-data-spec-insns,
15632 -msched-prefer-non-control-spec-insns,
15633 -msched-stop-bits-after-every-cycle,
15634 -msched-count-spec-in-critical-path,
15635 -msel-sched-dont-check-control-spec, -msched-fp-mem-deps-zero-cost
15636 -msched-max-memory-insns-hard-limit, -msched-max-memory-insns.
15637 Remove -mt, -pthread, -msched-ldc, -mno-sched-control-ldc,
15638 and -msched-spec-verbose.
15639
15640 2009-05-28 Joseph Myers <joseph@codesourcery.com>
15641
15642 * config/arm/lib1funcs.asm (__clear_cache): Define if L_clear_cache.
15643 * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Define to give an
15644 error if used.
15645 * config/arm/t-linux-eabi (LIB1ASMFUNCS): Add _clear_cache.
15646
15647 2009-05-28 Richard Guenther <rguenther@suse.de>
15648
15649 * tree-ssa-alias.c (ao_ref_init): New function.
15650 (ao_ref_base): Likewise.
15651 (ao_ref_base_alias_set): Likewise.
15652 (ao_ref_alias_set): Likewise.
15653 (refs_may_alias_p_1): Change signature.
15654 (refs_may_alias_p): Adjust.
15655 (refs_anti_dependent_p): Likewise.
15656 (refs_output_dependent_p): Likewise.
15657 (call_may_clobber_ref_p_1): Change signature.
15658 (call_may_clobber_ref_p): Adjust.
15659 (stmt_may_clobber_ref_p_1): New function split out from ...
15660 (stmt_may_clobber_ref_p): ... here.
15661 (maybe_skip_until): Adjust signature.
15662 (get_continuation_for_phi): Likewise.
15663 (walk_non_aliased_vuses): Likewise.
15664 * tree-ssa-alias.h (struct ao_ref_s): New structure type.
15665 (ao_ref_init): Declare.
15666 (ao_ref_base): Likewise.
15667 (ao_ref_alias_set): Likewise.
15668 (stmt_may_clobber_ref_p_1): Likewise.
15669 (walk_non_aliased_vuses): Adjust.
15670 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): New function.
15671 (get_ref_from_reference_ops): remove.
15672 (vn_reference_lookup_2): Adjust signature.
15673 (vn_reference_lookup_3): Do not re-build trees. Handle unions.
15674 (vn_reference_lookup_pieces): Adjust signature, do not re-build trees.
15675 (vn_reference_lookup): Adjust.
15676 (vn_reference_insert): Likewise.
15677 (vn_reference_insert_pieces): Adjust signature.
15678 (visit_reference_op_call): Adjust.
15679 * tree-ssa-pre.c (get_expr_type): Simplify.
15680 (phi_translate_1): Adjust.
15681 (compute_avail): Likewise.
15682 (translate_vuse_through_block): Do not re-build trees.
15683 (value_dies_in_block_x): Likewise.
15684 * tree-ssa-sccvn.h (struct vn_reference_s): Add type and alias-set
15685 fields.
15686 (vn_reference_lookup_pieces): Adjust declaration.
15687 (vn_reference_insert_pieces): Likewise.
15688
15689 2009-05-28 Benjamin Kosnik <bkoz@redhat.com>
15690
15691 * tree-ssa-copy.c (replace_exp_1): Move op for warning-free use
15692 with checking disabled.
15693
15694 2009-05-28 Dave Korn <dave.korn.cygwin@gmail.com>
15695
15696 PR target/37216
15697
15698 * configure.ac (HAVE_GAS_ALIGNED_COMM): Add autoconf test and
15699 macro definition for support of three-operand format aligned
15700 .comm directive in assembler on cygwin/pe/mingw target OS.
15701 * configure: Regenerate.
15702 * config.h: Regenerate.
15703
15704 * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Use
15705 aligned form of .comm directive if -mpe-aligned-commons is in effect.
15706 * config/i386/cygming.opt (-mpe-aligned-commons): Add new option.
15707
15708 * doc/invoke.texi (-mpe-aligned-commons): Document new target option.
15709 * doc/tm.texi (ASM_OUTPUT_COMMON): Document zero size commons.
15710
15711 2009-05-28 Ira Rosen <irar@il.ibm.com>
15712
15713 PR tree-optimization/40254
15714 * tree-data-ref.c (dr_analyze_innermost): Take POFFSET into account
15715 in analysis of basic blocks.
15716
15717 2009-05-28 Adam Nemet <anemet@caviumnetworks.com>
15718
15719 PR middle-end/33699
15720 * target.h (struct gcc_target): Fix indentation. Add const_anchor.
15721 * target-def.h (TARGET_CONST_ANCHOR): New macro.
15722 (TARGET_INITIALIZER): Use it.
15723 * cse.c (CHEAPER): Move it up to the other macros.
15724 (insert): Rename this ...
15725 (insert_with_costs): ... to this. Add cost parameters. Update
15726 function comment.
15727 (insert): New function. Call insert_with_costs.
15728 (compute_const_anchors, insert_const_anchor, insert_const_anchors,
15729 find_reg_offset_for_const, try_const_anchors): New functions.
15730 (cse_insn): Call try_const_anchors. Adjust cost of src_related
15731 when using a const-anchor. Call insert_const_anchors.
15732 * config/mips/mips.c (mips_set_mips16_mode): Set targetm.const_anchor.
15733 * doc/tm.texi (Misc): Document TARGET_CONST_ANCHOR.
15734
15735 2009-05-28 Alexandre Oliva <aoliva@redhat.com>
15736
15737 * tree-inline.c (remap_decls): Enable nonlocalized variables
15738 when not optimizing.
15739
15740 2009-05-28 Alexandre Oliva <aoliva@redhat.com>
15741
15742 * tree-ssa-live.c (remove_unused_locals): Skip when not optimizing.
15743 Simplify other tests involving optimize.
15744
15745 2009-05-27 Tom Tromey <tromey@redhat.com>
15746
15747 * unwind-dw2.c (_Unwind_DebugHook): New function.
15748 (uw_install_context): Call _Unwind_DebugHook.
15749
15750 2009-05-27 Tom Tromey <tromey@redhat.com>
15751
15752 * system.h (CONST_CAST2): Use C++ const_cast when compiled as C++
15753
15754 2009-05-27 Ian Lance Taylor <iant@google.com>
15755
15756 * Makefile.in (LINKER, LINKER_FLAGS): Define.
15757 (LINKER_FOR_BUILD, BUILD_LINKERFLAGS): Define.
15758 (ALL_LINKERFLAGS): Define.
15759 (xgcc$(exeext)): Change $(COMPILER) to $(LINKER).
15760 (cpp$(exeext), cc1-dummy$(exeext), cc1$(exeext)): Likewise.
15761 (collect2$(exeext), mips-tfile, mips-tdump): Likewise.
15762 (gcov$(exeext), gcov-dump$(exeext)): Likewise.
15763 (build/gen%$(build_exeext)): Change $(COMPILER_FOR_BUILD) to
15764 $(LINKER_FOR_BUILD).
15765 (build/gcov-iov$(build_exeext)): Likewise.
15766
15767 2009-05-27 Julian Brown <julian@codesourcery.com>
15768
15769 * gcse.c (target.h): Include.
15770 (can_assign_to_reg_without_clobbers_p): Check that the target allows
15771 copy of argument to a pseudo register.
15772
15773 2009-05-27 Diego Novillo <dnovillo@google.com>
15774
15775 * tree-ssa-live.c (dump_scope_block): Document arguments.
15776 (dump_scope_blocks): Document.
15777 (debug_scope_blocks): New.
15778 * tree-flow.h (debug_scope_blocks): Declare.
15779
15780 2009-05-21 Denis Chertykov <denisc@overta.ru>
15781
15782 * doc/contrib.texi (Contributors): Add myself to the list.
15783
15784 2009-05-27 Olivier Hainque <hainque@adacore.com>
15785
15786 * expr.c (target_align): New function. Alignment the TARGET of an
15787 assignment may be assume to have.
15788 (highest_pow2_factor_for_target): Use it instead of relying on
15789 immediate tree attributes of TARGET, not necessarily honored when
15790 intermediate bitfields are involved.
15791
15792 2009-05-27 H.J. Lu <hongjiu.lu@intel.com>
15793
15794 PR target/40266
15795 * config/i386/driver-i386.c (host_detect_local_cpu): Support
15796 AVX, SSE4, AES, PCLMUL and POPCNT.
15797
15798 2009-05-27 Diego Novillo <dnovillo@google.com>
15799
15800 * tree-pretty-print.c (dump_location): New.
15801 (dump_generic_node): Call it.
15802 Factor code to handle BLOCK nodes ...
15803 (dump_block_node): ... here.
15804
15805 2009-05-27 Rafael Avila de Espindola <espindola@google.com>
15806
15807 * Makefile.in (GCC_PLUGIN_H): New. Replace all uses of gcc-plugin.h
15808 with it.
15809 * doc/plugins.texi: Document that gcc-plugin.h must be the first to be
15810 included.
15811 * gcc-plugin.h: Include config.h and system.h.
15812 (IN_GCC): Define if not defined.
15813
15814 2009-05-27 Hans-Peter Nilsson <hp@axis.com>
15815
15816 PR middle-end/40249
15817 * Makefile.in (CRTSTUFF_CFLAGS): Replace -fno-inline-functions
15818 with -fno-inline.
15819
15820 2009-05-27 Shujing Zhao <pearly.zhao@oracle.com>
15821
15822 * config/m32r/m32r.c: Use REG_P, MEM_P and CONST_INT_P where
15823 applicable.
15824 * config/m32r/m32r.h: Ditto.
15825 * config/m32r/m32r.md: Ditto.
15826 * config/m32r/predicates.md: Ditto.
15827
15828 2009-05-27 Alexandre Oliva <aoliva@redhat.com>
15829
15830 * cgraph.c (dump_cgraph_node): Honor -fdump-noaddr.
15831
15832 2009-05-26 Basile Starynkevitch <basile@starynkevitch.net>
15833
15834 * doc/plugins.texi
15835 (Loading plugins): typo.
15836 (Plugin callbacks): Documented PLUGIN_INFO, PLUGIN_GGC_START,
15837 PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
15838 (Interacting with the GCC Garbage Collector): Added new section.
15839 (Giving information about a plugin): Added new section for
15840 PLUGIN_INFO.
15841 * ggc.h (ggc_register_root_tab): Added declaration.
15842 * gcc-plugin.h (PLUGIN_GGC_START, PLUGIN_GGC_MARKING)
15843 (PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS): Added new events.
15844 (register_callback): Improved comment in declaration.
15845 * ggc-common.c (const_ggc_root_tab_t) Added new typedef for vectors.
15846 (extra_root_vec) Added static variable for dynamic roots registration.
15847 (ggc_register_root_tab) Added new routine.
15848 (ggc_mark_roots) Added iteration inside extra_root_vec, and invoke
15849 PLUGIN_GGC_MARKING event.
15850 * ggc-zone.c: Include plugin.h.
15851 (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
15852 * ggc-page.c: Include plugin.h.
15853 (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
15854 * plugin.c (plugin_event_name): added names of PLUGIN_GGC_START,
15855 PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS
15856 (register_callback): check lack of callbacks for
15857 pseudo-events. Added handling of PLUGIN_REGISTER_GGC_ROOTS,
15858 PLUGIN_GGC_START, PLUGIN_GGC_MARKING, PLUGIN_GGC_END.
15859 (invoke_plugin_callbacks): Handle PLUGIN_GGC_START,
15860 PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
15861 * Makefile.in (ggc-common.o, ggc-zone.o, ggc-page.o): Added
15862 dependency on plugin.h.
15863 (plugin.o): Added dependency on ggc.h...
15864
15865 2009-05-26 Richard Guenther <rguenther@suse.de>
15866
15867 PR middle-end/40248
15868 Revert
15869 * expr.c (expand_expr_real_1): Avoid calling do_store_flag
15870 with mismatched comparison modes.
15871
15872 * expr.c (expand_expr_real_1): Expand the operand of a
15873 VIEW_CONVERT_EXPR in its natural mode.
15874
15875 2009-05-26 Ian Lance Taylor <iant@google.com>
15876
15877 * Makefile.in (COMPILER, COMPILER_FLAGS): Define.
15878 (COMPILER_FOR_BUILD, BUILD_COMPILERFLAGS): Define.
15879 (ALL_COMPILERFLAGS): Define.
15880 (.c.o, xgcc$(exeext), cpp$(exeext)): Use $(COMPILER).
15881 (cc1-dummy$(exeext), cc1$(exeext)): Likewise.
15882 (collect2$(exeext), collect2.o): Likewise.
15883 (c-opts.o, c-cppbuiltin.o, c-pch.o, gcc.o, gccspec.o): Likewise.
15884 (gcc-options.o, version.o, prefix.o, toplev.o): Likewise.
15885 ($(out_object_file), mips-tfile, mips-tdump): Likewise.
15886 (libbackend.o, intl.o, cppdefault.o): Likewise.
15887 (gcov$(exeext), gcov-dump$(exeext)): Likewise.
15888 (build/%.o): Use $(COMPILER_FOR_BUILD).
15889 (build/gen%$(build_exeext)): Likewise.
15890 (build/gcov-iov$(build_exeext)): LIkewise.
15891 * config/t-darwin (darwin.o): Use $(COMPILER).
15892 (darwin-c.o, darwin-f.o, darwin-driver.o): Likewise.
15893 * config/t-sol2 (sol2-c.o): Likewise.
15894 (sol2.o): Likewise.
15895 * config/t-vxworks (vxworks.o): Likewise.
15896 * config/x-darwin (host-darwin.o): Likewise.
15897 * config/x-hpux (host-hpux.o): Likewise.
15898 * config/x-linux (host-linux.o): Likewise.
15899 * config/x-solaris (host-solaris.o): Likewise.
15900 * config/alpha/x-alpha (driver-alpha.o): Likewise.
15901 * config/arm/t-arm (arm-c.o): Likewise.
15902 * config/arm/t-pe (pe.o): Likewise.
15903 * config/arm/t-wince-pe (pe.o): Likewise.
15904 * config/i386/t-cygming (winnt.o): Likewise.
15905 (winnt-cxx.o, winnt-stubs.o, msformat-c.o): Likewise.
15906 * config/i386/t-cygwin (cygwin1.o): Likewise.
15907 (cygwin2.o): Likewise.
15908 * config/i386/t-i386 (i386-c.o): Likewise.
15909 * config/i386/t-interix (winnt.o): Likewise.
15910 * config/i386/t-netware (netware.o): Likewise.
15911 * config/i386/t-nwld (nwld.o): Likewise.
15912 * config/i386/x-darwin (host-i386-darwin.o): Likewise.
15913 * config/i386/x-i386 (driver-i386.o): Likewise.
15914 * config/i386/x-cygwin (host-cygwin.o): Likewise.
15915 * config/i386/x-mingw32 (host-mingw32.o): Likewise.
15916 * config/ia64/t-ia64 (ia64-c.o): Likewise.
15917 * config/m32c/t-m32c (m32c-pragma.o): Likewise.
15918 * config/mips/x-native (driver-native.o): Likewise.
15919 * config/rs6000/t-rs6000 (rs6000-c.o): Likewise.
15920 * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
15921 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
15922 * config/rs6000/x-rs6000 (driver-rs6000.o): Likewise.
15923 * config/score/t-score-elf (score7.o): Likewise.
15924 (score3.o): Likewise.
15925 * config/sh/t-sh (sh-c.o): Likewise.
15926 * config/sh/t-symbian (sh-c.o): Likewise.
15927 (symbian.o): Likewise.
15928 * config/spu/t-spu-elf (spu-c.o): Likewise.
15929 * config/v850/t-v850 (v850-c.o): Likewise.
15930 * config/v850/t-v850e (v850-c.o): Likewise.
15931
15932 2009-05-26 Richard Guenther <rguenther@suse.de>
15933
15934 PR tree-optimization/40122
15935 * tree-ssa-ccp.c (ccp_fold): Fold vector CONSTRUCTORs to
15936 VECTOR_CSTs if possible.
15937 (fold_gimple_assign): Likewise.
15938
15939 2009-05-26 Richard Guenther <rguenther@suse.de>
15940
15941 PR middle-end/40252
15942 * fold-const.c (fold_binary): Use the correct types for building
15943 rotates.
15944
15945 2009-05-26 Richard Guenther <rguenther@suse.de>
15946
15947 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove
15948 redundant calls to merge_alias_info.
15949 (bump_vector_ptr): Likewise.
15950 * tree-ssa-copy.c (merge_alias_info): Remove.
15951 (replace_exp_1): Remove call to merge_alias_info.
15952 (propagate_tree_value): Likewise.
15953 (fini_copy_prop): Propagate points-to info.
15954 * tree-flow.h (merge_alias_info): Remove.
15955
15956 2009-05-07 Hariharan Sandanagobalane <hariharan@picochip.com>
15957
15958 * config/picochip/picochip.C (PARAM_INLINE_CALL_COST): Remove.
15959
15960 2009-05-25 Jan Hubicka <jh@suse.cz>
15961
15962 * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
15963 * cgraph.h (struct inline_summary): New filed self_wize,
15964 size_inlining_benefit, self_time and time_inlining_benefit.
15965 (struct cgraph_global_info): Replace insns by time ans size fields.
15966 * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
15967 (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
15968 (ipcp_update_callgraph): Do not touch function bodies.
15969 * ipa-inline.c: Include except.h
15970 (MAX_TIME): New constant.
15971 (overall_insns): Remove.
15972 (leaf_node_p): New.
15973 (overall_size, max_benefit): New static variables.
15974 (cgraph_estimate_time_after_inlining): New function.
15975 (cgraph_estimate_size_after_inlining): Rewrite using benefits.
15976 (cgraph_clone_inlined_nodes): Update size.
15977 (cgraph_mark_inline_edge): Update size.
15978 (cgraph_estimate_growth): Use size info.
15979 (cgraph_check_inline_limits): Check size.
15980 (cgraph_default_inline_p): Likewise.
15981 (cgraph_edge_badness): Compute badness based on benefit and size cost.
15982 (cgraph_decide_recursive_inlining): Check size.
15983 (cgraph_decide_inlining_of_small_function): Update size; dump sizes
15984 and times.
15985 (cgraph_decide_inlining): Likewise.
15986 (cgraph_decide_inlining_incrementally): Likewise; honor
15987 PARAM_EARLY_INLINING_INSNS.
15988 (likely_eliminated_by_inlining_p): New predicate.
15989 (estimate_function_body_sizes): New function.
15990 (compute_inline_parameters): Use it.
15991 * except.c (must_not_throw_labels): New function.
15992 * except.h (must_not_throw_labels): Declare.
15993 * tree-inline.c (init_inline_once): Kill inlining_weigths
15994 * tree-ssa-structalias.c: Avoid uninitialized warning.
15995 * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
15996 (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
15997 (PARAM_INLINE_CALL_COST): Remove.
15998 (PARAM_EARLY_INLINING_INSNS): New.
15999
16000 2009-05-25 Richard Guenther <rguenther@suse.de>
16001
16002 PR tree-optimization/36327
16003 * tree-ssa-alias.c (walk_non_aliased_vuses): Add second walker
16004 callback for reference translation or lookup at the point of may-defs.
16005 * tree-ssa-alias.h (walk_non_aliased_vuses): Adjust prototype.
16006 * tree-ssa-sccvn.c (get_ref_from_reference_ops): Bail out
16007 for union COMPONENT_REFs.
16008 (vn_reference_lookup_3): New callback. Lookup from memset
16009 and CONSTRUCTOR assignment, translate through struct copies.
16010 (vn_reference_lookup_pieces): Make sure to not free the
16011 passed operands array. Adjust walk_non_aliased_vuses call.
16012 (vn_reference_lookup): Adjust walk_non_aliased_vuses call,
16013 make sure we do not leak memory.
16014
16015 2009-05-25 Richard Guenther <rguenther@suse.de>
16016
16017 * tree-ssa-alias.h (dump_points_to_solution): Declare.
16018 * tree-inline.c (expand_call_inline): Reset the escaped and
16019 callused solutions.
16020 * tree-ssa-structalias.c (pass_build_ealias): New.
16021 * tree-pass.h (pass_build_ealias): Declare.
16022 * passes.c (init_optimization_passes): Add PTA during
16023 early optimizations.
16024 * tree-ssa-alias.c (dump_alias_info): Dump the ESCAPED
16025 and CALLUSED solutions.
16026 (dump_points_to_solution): New function, split out from ...
16027 (dump_points_to_info_for): ... here.
16028 * tree-parloops.c (parallelize_loops): Reset the escaped and
16029 callused solutions.
16030
16031 2009-05-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
16032
16033 PR bootstrap/40027
16034 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Only define if missing.
16035 * config/i386/sol2.h [!TARGET_GNU_LD] (USE_HIDDEN_LINKONCE): Define.
16036
16037 2009-05-25 Ira Rosen <irar@il.ibm.com>
16038
16039 PR tree-optimization/40238
16040 * tree-vect-stmts.c (vect_init_vector): Insert initialization
16041 statements after basic block's labels.
16042 * tree-vect-slp.c (vect_slp_transform_bb): Call destroy_bb_vec_info()
16043 to free the allocated memory.
16044
16045 2009-05-24 Kaz Kojima <kkojima@gcc.gnu.org>
16046
16047 * gcc/config/sh/sh.c (sh_set_return_address): Mark store of
16048 return address with a USE.
16049
16050 2009-05-24 Richard Guenther <rguenther@suse.de>
16051
16052 PR middle-end/40233
16053 * tree.c (make_vector_type): Build the TYPE_DEBUG_REPRESENTATION_TYPEs
16054 array type from the main variant of the inner type.
16055
16056 2009-05-24 Jan-Benedict Glaw <jbglaw@lug-owl.de>
16057
16058 * config/vax/vax-protos.h (legitimate_constant_address_p): Change
16059 definition to bool (from int) to un-break build.
16060 (legitimate_constant_p, vax_mode_dependent_address_p): Likewise.
16061
16062 2009-05-24 Paolo Bonzini <bonzini@gnu.org>
16063
16064 * tree-ssa-operands.h (push_stmt_changes, pop_stmt_changes,
16065 discard_stmt_changes): Delete.
16066 * tree-ssa-operands.c (scb_stack): Delete.
16067 (init_ssa_operands): Do not initialize it.
16068 (fini_ssa_operands): Do not free it.
16069 (push_stmt_changes, pop_stmt_changes, discard_stmt_changes): Delete.
16070
16071 * tree-cfg.c (replace_uses_by): Replace pop_stmt_changes with
16072 update_stmt, remove the others. Fix comments.
16073 * tree-dfa.c (optimize_stack_restore): Likewise.
16074 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Likewise.
16075 * tree-ssa-loop-ivopts.c (rewrite_use): Likewise.
16076 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
16077 * tree-ssa-ccp.c (optimize_stack_restore, execute_fold_all_builtins):
16078 Likewise.
16079 * tree-ssa-propagate.c (substitute_and_fold): Likewise.
16080 * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
16081 (dom_opt_finalize_block): Likewise, adjusting access to
16082 stmts_to_rescan.
16083 (optimize_stmt): Likewise, adjusting access to stmts_to_rescan.
16084 (stmts_to_rescan): Change item type to gimple.
16085 (tree_ssa_dominator_optimize): Change type of stmts_to_rescan.
16086
16087 2009-05-24 Ira Rosen <irar@il.ibm.com>
16088
16089 * doc/passes.texi (Tree-SSA passes): Document SLP pass.
16090 * tree-pass.h (pass_slp_vectorize): New pass.
16091 * params.h (SLP_MAX_INSNS_IN_BB): Define.
16092 * timevar.def (TV_TREE_SLP_VECTORIZATION): Define.
16093 * tree-vectorizer.c (timevar.h): Include.
16094 (user_vect_verbosity_level): Declare.
16095 (vect_location): Fix comment.
16096 (vect_set_verbosity_level): Update user_vect_verbosity_level
16097 instead of vect_verbosity_level.
16098 (vect_set_dump_settings): Add an argument. Ignore user defined
16099 verbosity if dump flags require higher level of verbosity. Print to
16100 stderr only for loop vectorization.
16101 (vectorize_loops): Update call to vect_set_dump_settings.
16102 (execute_vect_slp): New function.
16103 (gate_vect_slp): Likewise.
16104 (struct gimple_opt_pass pass_slp_vectorize): New.
16105 * tree-vectorizer.h (struct _bb_vec_info): Define along macros to
16106 access its members.
16107 (vec_info_for_bb): New function.
16108 (struct _stmt_vec_info): Add bb_vinfo and a macro for its access.
16109 (VECTORIZATION_ENABLED): New macro.
16110 (SLP_ENABLED, SLP_DISABLED): Likewise.
16111 (vect_is_simple_use): Add bb_vec_info argument.
16112 (new_stmt_vec_info, vect_analyze_data_ref_dependences,
16113 vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
16114 vect_analyze_data_ref_accesses, vect_analyze_data_refs,
16115 vect_schedule_slp, vect_analyze_slp): Likewise.
16116 (vect_analyze_stmt): Add slp_tree argument.
16117 (find_bb_location): Declare.
16118 (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
16119 * tree-vect-loop.c (new_loop_vec_info): Adjust function calls.
16120 (vect_analyze_loop_operations, vect_analyze_loop,
16121 get_initial_def_for_induction, vect_create_epilog_for_reduction,
16122 vect_finalize_reduction, vectorizable_reduction,
16123 vectorizable_live_operation, vect_transform_loop): Likewise.
16124 * tree-data-ref.c (dr_analyze_innermost): Update comment,
16125 skip evolution analysis if analyzing a basic block.
16126 (dr_analyze_indices): Likewise.
16127 (initialize_data_dependence_relation): Skip the test whether the
16128 object is invariant for basic blocks.
16129 (compute_all_dependences): Skip dependence analysis for data
16130 references in basic blocks.
16131 (find_data_references_in_stmt): Don't fail in case of invariant
16132 access in basic block.
16133 (find_data_references_in_bb): New function.
16134 (find_data_references_in_loop): Move code to
16135 find_data_references_in_bb and add a call to it.
16136 (compute_data_dependences_for_bb): New function.
16137 * tree-data-ref.h (compute_data_dependences_for_bb): Declare.
16138 * tree-vect-data-refs.c (vect_check_interleaving): Adjust to the case
16139 that STEP is 0.
16140 (vect_analyze_data_ref_dependence): Check for interleaving in case of
16141 unknown dependence in basic block and fail in case of dependence in
16142 basic block.
16143 (vect_analyze_data_ref_dependences): Add bb_vinfo argument, get data
16144 dependence instances from either loop or basic block vectorization
16145 info.
16146 (vect_compute_data_ref_alignment): Check if it is loop vectorization
16147 before calling nested_in_vect_loop_p.
16148 (vect_compute_data_refs_alignment): Add bb_vinfo argument, get data
16149 dependence instances from either loop or basic block vectorization
16150 info.
16151 (vect_verify_datarefs_alignment): Likewise.
16152 (vect_enhance_data_refs_alignment): Adjust function calls.
16153 (vect_analyze_data_refs_alignment): Likewise.
16154 (vect_analyze_group_access): Fix printing. Skip different checks if
16155 DR_STEP is 0. Keep strided stores either in loop or basic block
16156 vectorization data structure. Fix indentation.
16157 (vect_analyze_data_ref_access): Fix comments, allow zero step in
16158 basic blocks.
16159 (vect_analyze_data_ref_accesses): Add bb_vinfo argument, get data
16160 dependence instances from either loop or basic block vectorization
16161 info.
16162 (vect_analyze_data_refs): Update comment. Call
16163 compute_data_dependences_for_bb to analyze basic blocks.
16164 (vect_create_addr_base_for_vector_ref): Check for outer loop only in
16165 case of loop vectorization. In case of basic block vectorization use
16166 data-ref itself as a base.
16167 (vect_create_data_ref_ptr): In case of basic block vectorization:
16168 don't advance the pointer, add new statements before the current
16169 statement. Adjust function calls.
16170 (vect_supportable_dr_alignment): Support only aligned accesses in
16171 basic block vectorization.
16172 * common.opt (ftree-slp-vectorize): New flag.
16173 * tree-vect-patterns.c (widened_name_p): Adjust function calls.
16174 (vect_pattern_recog_1): Likewise.
16175 * tree-vect-stmts.c (process_use): Likewise.
16176 (vect_init_vector): Add new statements in the beginning of the basic
16177 block in case of basic block SLP.
16178 (vect_get_vec_def_for_operand): Adjust function calls.
16179 (vect_finish_stmt_generation): Likewise.
16180 (vectorizable_call): Add assert that it is loop vectorization, adjust
16181 function calls.
16182 (vectorizable_conversion, vectorizable_assignment): Likewise.
16183 (vectorizable_operation): In case of basic block SLP, take
16184 vectorization factor from statement's type and skip the relevance
16185 check. Adjust function calls.
16186 (vectorizable_type_demotion): Add assert that it is loop
16187 vectorization, adjust function calls.
16188 (vectorizable_type_promotion): Likewise.
16189 (vectorizable_store): Check for outer loop only in case of loop
16190 vectorization. Adjust function calls. For basic blocks, skip the
16191 relevance check and don't advance pointers.
16192 (vectorizable_load): Likewise.
16193 (vectorizable_condition): Add assert that it is loop vectorization,
16194 adjust function calls.
16195 (vect_analyze_stmt): Add argument. In case of basic block SLP, check
16196 that it is not reduction, get vector type, call only supported
16197 functions, skip loop specific parts.
16198 (vect_transform_stmt): Check for outer loop only in case of loop
16199 vectorization.
16200 (new_stmt_vec_info): Add new argument and initialize bb_vinfo.
16201 (vect_is_simple_use): Fix comment, add new argument, fix conditions
16202 for external definition.
16203 * passes.c (pass_slp_vectorize): New pass.
16204 * tree-vect-slp.c (find_bb_location): New function.
16205 (vect_get_and_check_slp_defs): Add argument, adjust function calls,
16206 check for patterns only in loops.
16207 (vect_build_slp_tree): Add argument, adjust function calls, fail in
16208 case of multiple types in basic block SLP.
16209 (vect_mark_slp_stmts_relevant): New function.
16210 (vect_supported_load_permutation_p): Fix comment.
16211 (vect_analyze_slp_instance): Add argument. In case of basic block
16212 SLP, take vectorization factor from statement's type, check that
16213 unrolling factor is 1. Adjust function call. Save SLP instance in
16214 either loop or basic block vectorization structure. Return FALSE,
16215 if SLP failed.
16216 (vect_analyze_slp): Add argument. Get strided stores groups from
16217 either loop or basic block vectorization structure. Return FALSE
16218 if basic block SLP failed.
16219 (new_bb_vec_info): New function.
16220 (destroy_bb_vec_info, vect_slp_analyze_node_operations,
16221 vect_slp_analyze_operations, vect_slp_analyze_bb): Likewise.
16222 (vect_schedule_slp): Add argument. Get SLP instances from either
16223 loop or basic block vectorization structure. Set vectorization factor
16224 to be 1 for basic block SLP.
16225 (vect_slp_transform_bb): New function.
16226 * params.def (PARAM_SLP_MAX_INSNS_IN_BB): Define.
16227
16228 2009-05-23 Mark Mitchell <mark@codesourcery.com>
16229
16230 * final.c (shorten_branches): Do not align labels for jump tables.
16231 (final_scan_insn): Use JUMP_TABLE_DATA_P.
16232
16233 2009-05-23 Eric Botcazou <ebotcazou@adacore.com>
16234
16235 * doc/passes.texi: Standardize spelling of RTL, Tree and Tree SSA.
16236 Remove outdated reference to flow.c and fix nits.
16237 * doc/gccint.texi: Tweak RTL description.
16238 * doc/rtl.texi: Likewise.
16239
16240 2009-05-23 Denis Chertykov <chertykov@gmail.com>
16241
16242 * config/avr/avr.c: Change my email address.
16243 * config/avr/avr.h: Likewise.
16244 * config/avr/avr.md: Likewise.
16245 * config/avr/avr-protos.h: Likewise.
16246 * config/avr/libgcc.S: Likewise.
16247
16248 2009-05-22 Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
16249
16250 * config/spu/spu-protos.h (aligned_mem_p, spu_valid_mov): Remove.
16251 (spu_split_load, spu_split_store): Change return type to int.
16252 (spu_split_convert): Declare.
16253 * config/spu/predicates.md (spu_mem_operand): Remove.
16254 (spu_mov_operand): Update.
16255 (spu_dest_operand, shiftrt_operator, extend_operator): Define.
16256 * config/spu/spu.c (regno_aligned_for_load): Remove.
16257 (reg_aligned_for_addr, spu_expand_load): Define.
16258 (spu_expand_extv): Reimplement and handle MEM.
16259 (spu_expand_insv): Handle MEM.
16260 (spu_sched_reorder): Handle insn's with length 0.
16261 (spu_legitimate_address_p): Reimplement.
16262 (store_with_one_insn_p): Return TRUE for any mode with size
16263 larger than 16 bytes.
16264 (address_needs_split): Define.
16265 (spu_expand_mov): Call spu_split_load and spu_split_store for MEM
16266 operands.
16267 (spu_convert_move): Define.
16268 (spu_split_load): Use spu_expand_load and change all MEM's to TImode.
16269 (spu_split_store): Change all MEM's to TImode.
16270 (spu_init_expanders): Preallocate registers that correspond to
16271 LAST_VIRTUAL_REG+1 and LAST_VIRTUAL_REG+2 and set them with
16272 mark_reg_pointer.
16273 (spu_split_convert): Define.
16274 * config/spu/spu.md (QHSI, QHSDI): New mode iterators.
16275 (_move<mode>, _movdi, _movti): Update predicate and condition.
16276 (load, store): Change to define_split.
16277 (extendqiti2, extendhiti2, extendsiti2, extendditi2): Simplify to
16278 extend<mode>ti2.
16279 (zero_extendqiti2, zero_extendhiti2, <v>lshr<mode>3_imm): Define.
16280 (lshr<mode>3, lshr<mode>3_imm, lshr<mode>3_re): Simplify to one
16281 define_insn_and_split of lshr<mode>3.
16282 (shrqbybi_<mode>, shrqby_<mode>): Simplify to define_expand.
16283 (<v>ashr<mode>3_imm): Define.
16284 (extv, extzv, insv): Allow MEM operands.
16285 (trunc_shr_ti<mode>, trunc_shr_tidi, shl_ext_<mode>ti,
16286 shl_ext_diti, sext_trunc_lshr_tiqisi, zext_trunc_lshr_tiqisi,
16287 sext_trunc_lshr_tihisi, zext_trunc_lshr_tihisi): Define for combine.
16288 (_spu_convert2): Change to define_insn_and_split and remove the
16289 corresponding define_peephole2.
16290 (stack_protect_set, stack_protect_test, stack_protect_test_si):
16291 Change predicates to memory_operand.
16292
16293 2009-05-22 Mark Mitchell <mark@codesourcery.com>
16294
16295 * config/arm/thumb2.md: Add 16-bit multiply instructions.
16296
16297 2009-05-21 Michael Meissner <meissner@linux.vnet.ibm.com>
16298
16299 PR tree-optimization/40219
16300 * tree.c (iterative_hash_expr): Make sure the builtin function is
16301 a normal builtin function and not a front end or back end builtin
16302 before indexing into the built_in_decls array.
16303
16304 2009-05-22 Richard Guenther <rguenther@suse.de>
16305
16306 PR middle-end/38964
16307 * alias.c (write_dependence_p): Do not use TBAA for answering
16308 anti-dependence or output-dependence.
16309 * tree-ssa-structalias.c (set_uids_in_ptset): Remove TBAA pruning code.
16310 (emit_pointer_definition): Remove.
16311 (emit_alias_warning): Likewise.
16312 (find_what_var_points_to): Remove TBAA pruning code.
16313 (find_what_p_points_to): Likewise. Do not warn about strict-aliasing
16314 violations.
16315 (compute_points_to_sets): Remove code computing the set of
16316 dereferenced pointers.
16317 * tree-data-ref.c (dr_may_alias_p): Properly use the split
16318 oracle for querying anti and output dependencies.
16319 * tree-ssa-alias.c (refs_may_alias_p_1): Add argument specifying
16320 if TBAA may be applied.
16321 (refs_anti_dependent_p): New function.
16322 (refs_output_dependent_p): Likewise.
16323 * tree-ssa-alias.h (refs_anti_dependent_p): Declare.
16324 (refs_output_dependent_p): Likewise.
16325 * doc/tree-ssa.texi (Memory model): New section.
16326 * doc/c-tree.texi (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
16327 * doc/gimple.texi (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
16328 * cfgexpand.c (expand_gimple_basic_block): Do not handle
16329 GIMPLE_CHANGE_DYNAMIC_TYPE or CHANGE_DYNAMIC_TYPE_EXPR.
16330 * expr.c (expand_expr_real_1): Likewise.
16331 * gimple-low.c (lower_stmt): Likewise.
16332 * gimple-pretty-print.c (dump_gimple_stmt): Likewise.
16333 (dump_gimple_cdt): Remove.
16334 * gimple.c (gss_for_code): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
16335 (gimple_size): Likewise.
16336 (walk_gimple_op): Likewise.
16337 (is_gimple_stmt): Likewise.
16338 (walk_stmt_load_store_addr_ops): Likewise.
16339 (gimple_build_cdt): Remove.
16340 * gimple.def (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
16341 * gimple.h (gimple_cdt_new_type): Remove.
16342 (gimple_cdt_new_type_ptr): Likewise.
16343 (gimple_cdt_set_new_type): Likewise.
16344 (gimple_cdt_location): Likewise.
16345 (gimple_cdt_location_ptr): Likewise.
16346 (gimple_cdt_set_location): Likewise.
16347 * gimplify.c (gimplify_expr): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
16348 * tree-cfg.c (remove_useless_stmts_1): Do not handle
16349 GIMPLE_CHANGE_DYNAMIC_TYPE.
16350 (verify_types_in_gimple_stmt): Likewise.
16351 * tree-inline.c (estimate_num_insns): Likewise.
16352 (expand_call_inline): Do not copy DECL_NO_TBAA_P.
16353 (copy_decl_to_var): Likewise.
16354 (copy_result_decl_to_var): Likewise.
16355 * tree-pretty-print.c (dump_generic_node): Do not handle
16356 CHANGE_DYNAMIC_TYPE_EXPR.
16357 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
16358 * tree-ssa-operands.c (get_expr_operands): Likewise.
16359 * tree-ssa-structalias.c (struct variable_info): Remove
16360 no_tbaa_pruning member.
16361 (new_var_info): Do not set it based on DECL_NO_TBAA_P.
16362 (unify_nodes): Do not copy it.
16363 (find_func_aliases): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
16364 (dump_solution_for_var): Do not dump no_tbaa_pruning state.
16365 (set_uids_in_ptset): Do not check it.
16366 (find_what_var_points_to): Likewise.
16367 (compute_tbaa_pruning): Remove.
16368 (compute_points_to_sets): Do not call it.
16369 * tree.c (walk_tree_1): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
16370 * tree.def (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
16371 * tree.h (CHANGE_DYNAMIC_TYPE_NEW_TYPE): Remove.
16372 (CHANGE_DYNAMIC_TYPE_LOCATION): Likewise.
16373 (DECL_NO_TBAA_P): Likewise.
16374 (struct tree_decl_common): Move no_tbaa_flag to unused flags section.
16375 * omp-low.c (copy_var_decl): Do not copy DECL_NO_TBAA_P.
16376 (expand_omp_atomic_pipeline): Do not set it.
16377 * print-tree.c (print_node): Do not dump it.
16378 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
16379 redundant check.
16380
16381 2009-05-22 Vladimir Makarov <vmakarov@redhat.com>
16382
16383 PR target/39856
16384 * reg-stack.c (subst_stack_regs_pat): Remove gcc_assert for note
16385 for clobber.
16386
16387 2009-05-22 Mark Mitchell <mark@codesourcery.com>
16388
16389 * tree.c (handle_dll_attribute): Mark dllexport'd inlines as
16390 non-external.
16391
16392 2009-05-22 Ben Elliston <bje@au.ibm.com>
16393
16394 * Makefile.in (bversion.h, s-bversion): New targets.
16395 (TOPLEV_H): Add bversion.h.
16396 * toplev.h: Include "bversion.h".
16397 (ATTRIBUTE_GCC_DIAG): When building with checking disabled, use
16398 the __format__ attribute only if compiling with the same version
16399 of GCC as the sources (the "build version").
16400
16401 2009-05-22 Ben Elliston <bje@au.ibm.com>
16402
16403 * c-format.c (handle_format_attribute): Fix comment typo.
16404
16405 2009-05-21 Steve Ellcey <sje@cup.hp.com>
16406
16407 PR target/37846
16408 * config/ia64/ia64.opt (mfused-madd): New.
16409 * config/ia64/ia64.h (TARGET_DEFAULT): Set MASK_FUSED_MADD.
16410 * config/ia64/hpux.h (TARGET_DEFAULT): Ditto.
16411 * config/ia64/ia64.md (maddsf4, msubsf4, nmaddsf4,
16412 madddf4, madddf4_trunc, msubdf4, msubdf4_trunc, nmadddf4,
16413 nmadddf4_truncsf, maddxf4, maddxf4_truncsf, maddxf4_truncdf,
16414 msubxf4, msubxf4_truncsf msubxf4_truncdf, nmaddxf4,
16415 nmaddxf4_truncsf, nmaddxf4_truncdf): Check TARGET_FUSED_MADD.
16416 * config/ia64/vect.md (addv2sf3, subv2sf3): Force fpma/fpms
16417 instruction if !TARGET_FUSED_MADD.
16418 (fpma, fpms): Remove colon from name.
16419
16420 2009-05-22 Richard Guenther <rguenther@suse.de>
16421
16422 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record
16423 TMR_ORIGINAL. Always either record TMR_SYMBOL or TMR_BASE.
16424 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
16425 TARGET_MEM_REF.
16426 (create_expression_by_pieces): Only convert if necessary.
16427 * gimplify.c (gimplify_expr): Handle TARGET_MEM_REF.
16428 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle INTEGER_CST.
16429
16430 2009-05-21 Adam Nemet <anemet@caviumnetworks.com>
16431
16432 * config/mips/mips.md (*extzv_trunc<mode>_exts): Turn into a
16433 regular pattern from a template and rename it ...
16434 (*extzv_truncsi_exts): ... to this.
16435
16436 2009-05-21 Richard Guenther <rguenther@suse.de>
16437
16438 * cgraph.h (struct cgraph_node): Remove inline_decl member.
16439 * ipa-inline.c (cgraph_mark_inline_edge): Do not check it.
16440 (cgraph_default_inline_p): Likewise.
16441 (cgraph_decide_inlining_incrementally): Likewise.
16442
16443 2009-05-21 H.J. Lu <hongjiu.lu@intel.com>
16444 Uros Bizjak <ubizjak@gmail.com>
16445
16446 * config/i386/cpuid.h (bit_MOVBE): New.
16447
16448 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
16449
16450 * config/i386/i386.c (OPTION_MASK_ISA_MOVBE_SET): New.
16451 (OPTION_MASK_ISA_MOVBE_UNSET): Likewise.
16452 (ix86_handle_option): Handle OPT_mmovbe.
16453 (ix86_target_string): Add -mmovbe.
16454 (pta_flags): Add PTA_MOVBE.
16455 (processor_alias_table): Add PTA_MOVBE to "atom".
16456 (override_options): Handle PTA_MOVBE.
16457
16458 * config/i386/i386.h (TARGET_MOVBE): New.
16459
16460 * config/i386/i386.md (bswapsi2): Check TARGET_MOVBE.
16461 (*bswapsi_movbe): New.
16462 (*bswapdi_movbe): Likewise.
16463 (bswapdi2): Renamed to ...
16464 (*bswapdi_1): This.
16465 (bswapdi2): New expander.
16466
16467 * config/i386/i386.opt (mmovbe): New.
16468
16469 * doc/invoke.texi: Document -mmovbe.
16470
16471 2009-05-21 Taras Glek <tglek@mozilla.com>
16472
16473 * plugin.c (try_init_one_plugin): Updated to new plugin_init API.
16474 * gcc-plugin.h (plugin_init): Updated signature.
16475 * gcc-plugin.h (plugin_name_args): Moved to this header.
16476 * doc/plugins.texi (plugin_init): Updated documention to reflect
16477 API change.
16478 * doc/plugins.texi (plugin_name_args): Added to documention.
16479
16480 2009-05-21 Mark Mitchell <mark@codesourcery.com>
16481
16482 * config/arm/neon.md (*mul<mode>3add<mode>_neon): New pattern.
16483 (*mul<mode>3neg<mode>add<mode>_neon): Likewise.
16484
16485 2009-05-21 Shujing Zhao <pearly.zhao@oracle.com>
16486
16487 * config/i386/i386.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P and
16488 JUMP_TABLE_DATA_P predicates where applicable.
16489 * config/i386/predicates.md: Ditto.
16490 * config/i386/sse.md: Ditto.
16491
16492 2009-05-21 Jakub Jelinek <jakub@redhat.com>
16493
16494 * config/i386/i386.md (adddi_4_rex64, addsi_4, addhi_4): For
16495 operand2 -128 override length_immediate attribute to 1.
16496 * config/i386/predicates.md (constm128_operand): New predicate.
16497
16498 * config/i386/i386.c (memory_address_length): Handle %r12
16499 the same as %rsp and %r13 the same as %rbp. For %rsp and %rbp
16500 also check REGNO.
16501 (ix86_attr_length_address_default): For MODE_SI lea in 64-bit
16502 mode look through optional ZERO_EXTEND and SUBREG.
16503 * config/i386/i386.md (R12_REG): New define_constant.
16504 (prefix_data16): For sse unit set also for MODE_TI insns.
16505 (prefix_rex): For -m32 always return 0. For TYPE_IMOVX
16506 insns set if operand 1 is ext_QIreg_operand.
16507 (modrm): For TYPE_IMOV clear only if not MODE_DI. For
16508 TYPE_{ALU{,1},ICMP,TEST} insn clear if there is non-shortened
16509 immediate.
16510 (*movdi_extzv_1, zero_extendhidi2, zero_extendqidi2): Change
16511 mode from MODE_DI to MODE_SI.
16512 (movdi_1_rex64): Override modrm and length_immediate attributes
16513 only for movabs (TYPE_IMOV, alternative 2).
16514 (zero_extendsidi2_rex64): Clear prefix_0f attribute if TYPE_IMOVX.
16515 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
16516 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
16517 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
16518 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Set
16519 prefix_rex attribute if DImode.
16520 (*adddi_1_rex64, *adddi_2_rex64, *adddi_3_rex64, *adddi_5_rex64,
16521 *addsi_1, *addsi_1_zext, *addsi_2, *addsi_2_zext, *addsi_3,
16522 *addsi_3_zext, *addsi_5, *addhi_1_lea, *addhi_1, *addhi_2, *addhi_3,
16523 *addhi_5, *addqi_1_lea, *addqi_1): Override length_immediate
16524 attribute to 1 if TYPE_ALU and operand 2 is const128_operand.
16525 (pro_epilogue_adjust_stack_1, pro_epilogue_adjust_stack_rex64):
16526 Likewise. For TYPE_IMOV clear length_immediate attribute.
16527 (*ashldi3_1_rex64, *ashldi3_cmp_rex64, *ashldi3_cconly_rex64,
16528 *ashlsi3_1, *ashlsi3_1_zext, *ashlsi3_cmp, **ashlsi3_cconly,
16529 *ashlsi3_cmp_zext, *ashlhi3_1_lea, *ashlhi3_1, *ashlhi3_cmp,
16530 *ashlhi3_cconly, *ashlqi3_1_lea, *ashlqi3_1, *ashlqi3_cmp,
16531 *ashlqi3_cconly): Override length_immediate attribute to 0 if TYPE_ALU
16532 or one operand TYPE_ISHIFT.
16533 (*ashrdi3_1_one_bit_rex64, *ashrdi3_one_bit_cmp_rex64,
16534 *ashrdi3_one_bit_cconly_rex64, *ashrsi3_1_one_bit,
16535 *ashrsi3_1_one_bit_zext, *ashrsi3_one_bit_cmp,
16536 *ashrsi3_one_bit_cconly, *ashrsi3_one_bit_cmp_zext,
16537 *ashrhi3_1_one_bit, *ashrhi3_one_bit_cmp, *ashrhi3_one_bit_cconly,
16538 *ashrqi3_1_one_bit, *ashrqi3_1_one_bit_slp, *ashrqi3_one_bit_cmp,
16539 *ashrqi3_one_bit_cconly, *lshrdi3_1_one_bit_rex64,
16540 *lshrdi3_cmp_one_bit_rex64, *lshrdi3_cconly_one_bit_rex64,
16541 *lshrsi3_1_one_bit, *lshrsi3_1_one_bit_zext, *lshrsi3_one_bit_cmp,
16542 *lshrsi3_one_bit_cconly, *lshrsi3_cmp_one_bit_zext,
16543 *lshrhi3_1_one_bit, *lshrhi3_one_bit_cmp, *lshrhi3_one_bit_cconly,
16544 *lshrqi3_1_one_bit, *lshrqi3_1_one_bit_slp, *lshrqi2_one_bit_cmp,
16545 *lshrqi2_one_bit_cconly, *rotlsi3_1_one_bit_rex64, *rotlsi3_1_one_bit,
16546 *rotlsi3_1_one_bit_zext, *rotlhi3_1_one_bit, *rotlqi3_1_one_bit_slp,
16547 *rotlqi3_1_one_bit, *rotrdi3_1_one_bit_rex64, *rotrsi3_1_one_bit,
16548 *rotrsi3_1_one_bit_zext, *rotrhi3_one_bit, *rotrqi3_1_one_bit,
16549 *rotrqi3_1_one_bit_slp): Override length_immediate attribute to 0,
16550 set mode attribute, don't override length attribute.
16551 (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Set prefix_0f attribute
16552 to 1.
16553 (return_internal_long): Set length attribute to 2 instead of 1.
16554 (*strmovqi_rex_1, *strsetqi_rex_1, *rep_stosqi_rex64,
16555 *cmpstrnqi_nz_rex_1, *cmpstrnqi_rex_1, *strlenqi_rex_1): Clear
16556 prefix_rex attribute.
16557 * config/i386/predicates.md (ext_QIreg_operand, const128_operand):
16558 New predicates.
16559 (memory_displacement_only_operand): Always return 0 for TARGET_64BIT.
16560
16561 2009-05-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16562
16563 * config/arm/thumb2.md (orsi_notsi_si): Fix typo in pattern.
16564
16565 2009-05-20 Ian Lance Taylor <iant@google.com>
16566
16567 * tree.c (build_tree_list_vec_stat): New function.
16568 (ctor_to_vec): New function.
16569 (build_nt_call_vec): New function.
16570 (build_call_array): Change args to be a const pointer.
16571 (build_call_vec): New function.
16572 * tree.h (build_nt_call_vec): Declare.
16573 (build_tree_list_vec_stat): Declare.
16574 (build_tree_list_vec): Define.
16575 (build_call_array): Update declaration.
16576 (build_call_vec): Declare.
16577 (ctor_to_vec): Declare.
16578 * c-common.c (tree_vector_cache): New static variable.
16579 (make_tree_vector): New function.
16580 (release_tree_vector): New function.
16581 (make_tree_vector_single): New function.
16582 (make_tree_vector_copy): New function.
16583 * c-common.h (tree_vector_cache, make_tree_vector): Declare.
16584 (make_tree_vector_single, make_tree_vector_copy): Declare.
16585 * c-parser.c (cached_expr_list_1, cached_expr_list_2): Remove.
16586 (c_parser_expr_list): Don't manage cache here, instead call
16587 make_tree_vector.
16588 (c_parser_release_expr_list): Remove static function.
16589 (c_parser_vec_to_tree_list): Remove static function.
16590 (c_parser_attributes): Call build_tree_list_vec instead of
16591 c_parser_vec_to_tree_list. Call release_tree_vector instead of
16592 c_parser_release_expr_list.
16593 (c_parser_postfix_expression_after_primary): Likewise.
16594 (c_parser_objc_keywordexpr): Likewise.
16595
16596 2009-05-20 Sandra Loosemore <sandra@codesourcery.com>
16597
16598 * doc/tm.texi (Misc): Document TARGET_INVALID_PARAMETER_TYPE,
16599 TARGET_INVALID_RETURN_TYPE, TARGET_PROMOTED_TYPE, and
16600 TARGET_CONVERT_TO_TYPE.
16601 * hooks.c (hook_tree_const_tree_null): Define.
16602 * hooks.h (hook_tree_const_tree_null): Declare.
16603 * target.h (struct gcc_target): Add invalid_parameter_type,
16604 invalid_return_type, promoted_type, and convert_to_type fields.
16605 * target-def.h: (TARGET_INVALID_PARAMETER_TYPE): Define.
16606 (TARGET_INVALID_RETURN_TYPE): Define.
16607 (TARGET_PROMOTED_TYPE): Define.
16608 (TARGET_CONVERT_TO_TYPE): Define.
16609 (TARGET_INITIALIZER): Update for new fields.
16610 * c-decl.c (grokdeclarator): Check targetm.invalid_return_type.
16611 (grokparms): Check targetm.invalid_parameter_type.
16612 * c-typeck.c (default_conversion): Check targetm.promoted_type.
16613 * c-convert.c (convert): Check targetm.convert_to_type.
16614
16615 2009-05-20 Adam Nemet <anemet@caviumnetworks.com>
16616
16617 * config/mips/mips.md (*extenddi_truncate<mode>,
16618 *extendsi_truncate<mode>): Emit exts if supported. Add attribute
16619 defintions.
16620 (*extendhi_truncateqi): New define_insn_and_sptit.
16621
16622 2009-05-20 Jakub Jelinek <jakub@redhat.com>
16623
16624 PR middle-end/40204
16625 * fold-const.c (fold_binary) <case BIT_AND_EXPR>: Avoid infinite
16626 recursion if build_int_cst_type returns the same INTEGER_CST as arg1.
16627
16628 2009-05-20 Eric Botcazou <ebotcazou@adacore.com>
16629
16630 * fold-const.c (build_fold_addr_expr_with_type): Take the address of
16631 the operand of VIEW_CONVERT_EXPR.
16632
16633 2009-05-20 H.J. Lu <hongjiu.lu@intel.com>
16634
16635 * config/i386/driver-i386.c (host_detect_local_cpu): Check
16636 extended family and model for Intel processors. Support Intel Atom.
16637
16638 2009-05-20 Olivier Hainque <hainque@adacore.com>
16639
16640 * gstab.h (stab_code_type): Define, to be used instead of the
16641 __stab_debug_code enum, made anonymous. Add 2009 to the copyright
16642 notice.
16643 * dbxout.c (STAB_CODE_TYPE): Remove #define and replace use
16644 occurrences by stab_code_type.
16645 * mips-tfile.c (STAB_CODE_TYPE): Remove #define, unused.
16646
16647 2009-05-20 Martin Jambor <mjambor@suse.cz>
16648
16649 * tree-flow.h (insert_edge_copies_seq): Undeclare.
16650 (sra_insert_before): Likewise.
16651 (sra_insert_after): Likewise.
16652 (sra_init_cache): Likewise.
16653 (sra_type_can_be_decomposed_p): Likewise.
16654 * tree-mudflap.c (insert_edge_copies_seq): Copied here from tree-sra.c
16655 * tree-sra.c (sra_type_can_be_decomposed_p): Made static.
16656 (sra_insert_before): Likewise.
16657 (sra_insert_after): Likewise.
16658 (sra_init_cache): Likewise.
16659 (insert_edge_copies_seq): Made static and moved upwards.
16660
16661 * tree-complex.c (extract_component): Added VIEW_CONVERT_EXPR switch
16662 case.
16663
16664 * tree-flow-inline.h (contains_view_convert_expr_p): New function.
16665
16666 * ipa-prop.c (get_ssa_def_if_simple_copy): New function.
16667 (determine_cst_member_ptr): Call get_ssa_def_if_simple_copy to skip
16668 simple copies.
16669
16670 2009-05-20 Richard Guenther <rguenther@suse.de>
16671
16672 * expr.c (expand_expr_real_1): Avoid calling do_store_flag
16673 with mismatched comparison modes.
16674
16675 2009-05-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16676
16677 * config/arm/arm.md (*arm_iorsi3): Refactored for only ARM.
16678 (peephole ior (reg, int) -> mov, ior): Refactored for only ARM.
16679 * config/arm/thumb2.md (*thumb_andsi_not_shiftsi_si): Allow bic
16680 with shifts for Thumb2.
16681 (orsi_notsi): New for orn.
16682 (*thumb_orsi_notshiftsi_si): Allow orn with shifts.
16683 (*thumb2_iorsi3): Rewrite support for iorsi for Thumb2.
16684 * config/arm/arm.c (const_ok_for_op): Split case for IOR for Thumb2.
16685 (arm_gen_constant): Set can_invert for IOR and Thumb2, Add comments.
16686 Don't invert remainder for IOR.
16687
16688 2009-05-19 Zdenek Dvorak <ook@ucw.cz>
16689
16690 PR tree-optimization/40087
16691 * tree-ssa-loop-niter.c (number_of_iterations_ne_max,
16692 number_of_iterations_ne): Rename never_infinite argument.
16693 (number_of_iterations_lt_to_ne, number_of_iterations_lt,
16694 number_of_iterations_le): Handle pointer-type ivs when
16695 exit_must_be_taken is false.
16696 (number_of_iterations_cond): Do not always assume that
16697 exit_must_be_taken if the control variable is a pointer.
16698
16699 2009-05-19 Andrew Pinski <andrew_pinski@playstation.sony.com>
16700
16701 * c-typeck.c (build_binary_op): Allow % on integal vectors.
16702 * doc/extend.texi (Vector Extension): Document that % is allowed too.
16703
16704 2009-05-19 H.J. Lu <hongjiu.lu@intel.com>
16705
16706 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Check
16707 ASM_OUTPUT_MAX_SKIP_PAD instead of ASM_OUTPUT_MAX_SKIP_ALIGN.
16708
16709 2009-05-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
16710
16711 PR c/40172
16712 * c.opt (Wlogical-op): Disabled by default.
16713 * c-opt (c_common_post_options): Do not enable Wlogical-op with
16714 Wextra.
16715 * doc/invoke.texi (Wlogical-op): Likewise.
16716
16717 2009-05-19 Eric Botcazou <ebotcazou@adacore.com>
16718
16719 * tree-scalar-evolution.c (follow_ssa_edge_expr) <NOP_EXPR>: Turn
16720 into CASE_CONVERT.
16721 <PLUS_EXPR>: Strip useless type conversions instead of type nops.
16722 Propagate the type of the first operand.
16723 <ASSERT_EXPR>: Simplify.
16724 (follow_ssa_edge_in_rhs): Use gimple_expr_type to get the type.
16725 Rewrite using the RHS code as discriminant.
16726 <NOP_EXPR>: Turn into CASE_CONVERT.
16727 <PLUS_EXPR>: Propagate the type of the first operand.
16728
16729 2009-05-19 Steve Ellcey <sje@cup.hp.com>
16730
16731 * config/ia64/ia64-protos.h (ia64_dconst_0_5): New.
16732 (ia64_dconst_0_375): New.
16733 * config/ia64/ia64.c (ia64_override_options): Remove
16734 -minline-sqrt-min-latency warning.
16735 (ia64_dconst_0_5_rtx, ia64_dconst_0_5): New.
16736 (ia64_dconst_0_375_rtx, ia64_dconst_0_375): New
16737 * config/ia64/ia64.md (*sqrt_approx): Remove.
16738 (sqrtsf2): Remove #if 0.
16739 (sqrtsf2_internal_thr): Rewrite and move to div.md.
16740 (sqrtdf): Remove assert.
16741 (sqrtdf2_internal_thr): Rewrite and move to div.md.
16742 (sqrtxf2): Remove #if 0.
16743 (sqrtxf2_internal_thr): Rewrite and move to div.md.
16744 * div.md (sqrt_approx_rf): New.
16745 (sqrtsf2_internal_thr): New implementation.
16746 (sqrtsf2_internal_lat): New.
16747 (sqrtdf2_internal_thr: New implementation.
16748 (sqrtxf2_internal): New implementation.
16749
16750 2009-05-19 Francois-Xavier Coudert <fxcoudert@gmail.com>
16751 Hans-Peter Nilsson <hp@axis.com>
16752
16753 * defaults.h (UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE)
16754 (WCHAR_TYPE, MODIFIED_WCHAR_TYPE, PTRDIFF_TYPE, WINT_TYPE)
16755 (INTMAX_TYPE, UINTMAX_TYPE, SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE)
16756 (INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE)
16757 (UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE)
16758 (INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE)
16759 (UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE)
16760 (INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE)
16761 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE)
16762 (SIZE_TYPE, PID_TYPE, CHAR16_TYPE, CHAR32_TYPE): Move defaults here...
16763 * c-common.c: ...from here.
16764
16765 2009-05-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
16766
16767 * c-common.c (warn_logical_operator): Remove unnecessary conditionals.
16768
16769 2009-05-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16770
16771 * builtins.c (do_mpc_arg1): Separate MPFR/MPC C rounding types.
16772
16773 2009-05-19 Ben Elliston <bje@au.ibm.com>
16774
16775 * unwind-dw2-fde.c (fde_unencoded_compare): Replace type punning
16776 assignments with memcpy calls.
16777 (add_fdes): Likewise.
16778 (binary_search_unencoded_fdes): Likewise.
16779 (linear_search_fdes): Eliminate type puns.
16780
16781 2009-05-19 Richard Guenther <rguenther@suse.de>
16782
16783 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do
16784 not falsely claim to have propagated into all uses.
16785
16786 2009-05-19 Ben Elliston <bje@au.ibm.com>
16787
16788 * doc/invoke.texi (C Dialect Options): Update OpenMP specification
16789 version to v3.0.
16790
16791 2009-05-18 Kaz Kojima <kkojima@gcc.gnu.org>
16792
16793 * config/sh/sh-protos.h (sh_legitimate_address_p): Remove.
16794 * config/sh/sh.c (sh_legitimate_address_p): Make static.
16795 (TARGET_LEGITIMATE_ADDRESS_P): New.
16796 * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16797 * config/sh/sh.md: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
16798
16799 2009-05-18 Dodji Seketeli <dodji@redhat.com>
16800
16801 PR debug/40109
16802 * dwarf2out.c (gen_type_die_with_usage): Generate the DIE as a
16803 child of the containing namespace's DIE.
16804
16805 2009-05-18 Adam Nemet <anemet@caviumnetworks.com>
16806
16807 * config/mips/mips.md (*zero_extend<GPR:mode>_trunc<SHORT:mode>,
16808 *zero_extendhi_truncqi): Move after the zero_extend patterns.
16809 (*extenddi_truncate<mode>, *extendsi_truncate<mode>): Move after the
16810 extend patterns.
16811
16812 2009-05-18 H.J. Lu <hongjiu.lu@intel.com>
16813
16814 PR target/39942
16815 * config/i386/i386.c (ix86_avoid_jump_misspredicts): Replace
16816 gen_align with gen_pad.
16817 (ix86_reorg): Check ASM_OUTPUT_MAX_SKIP_PAD instead of
16818 #ifdef ASM_OUTPUT_MAX_SKIP_ALIGN.
16819
16820 * config/i386/i386.h (ASM_OUTPUT_MAX_SKIP_PAD): New.
16821 * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_PAD): Likewise.
16822
16823 * config/i386/i386.md (align): Renamed to ...
16824 (pad): This. Replace ASM_OUTPUT_MAX_SKIP_ALIGN with
16825 ASM_OUTPUT_MAX_SKIP_PAD.
16826
16827 2009-05-18 Andreas Schwab <schwab@linux-m68k.org>
16828
16829 * config.gcc: Fix variable syntax.
16830
16831 PR target/39531
16832 * config/m68k/m68k.c (output_andsi3): Mask off sign bit copies
16833 before calling exact_log2.
16834 (output_iorsi3): Likewise.
16835 (output_xorsi3): Likewise.
16836
16837 2009-05-18 Kaz Kojima <kkojima@gcc.gnu.org>
16838
16839 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register
16840 for the none zero constant operand except for EQ and NE
16841 comprisons even when the first operand is R0.
16842
16843 2009-05-18 Andreas Krebbel <krebbel1@de.ibm.com>
16844
16845 * config/s390/2064.md: Remove trailing whitespaces.
16846 * config/s390/2084.md: Likewise.
16847 * config/s390/constraints.md: Likewise.
16848 * config/s390/fixdfdi.h: Likewise.
16849 * config/s390/libgcc-glibc.ver: Likewise.
16850 * config/s390/s390-modes.def: Likewise.
16851 * config/s390/s390-protos.h: Likewise.
16852 * config/s390/s390.c: Likewise.
16853 * config/s390/s390.h: Likewise.
16854 * config/s390/s390.md: Likewise.
16855 * config/s390/tpf-unwind.h: Likewise.
16856
16857 2009-05-18 Maxim Kuvyrkov <maxim@codesourcery.com>
16858
16859 * config/m68k/m68k.c (m68k_legitimize_address): Fix typo in signature.
16860
16861 2009-05-18 Maxim Kuvyrkov <maxim@codesourcery.com>
16862
16863 M68K TLS support.
16864 * configure.ac (m68k-*-*): Check if binutils support TLS.
16865 * configure: Regenerate.
16866 * config/m68k/predicates.md (symbolic_operand): Extend comment.
16867 * config/m68k/constraints.md (Cu): New constraint.
16868 * config/m68k/m68k.md (UNSPEC_GOTOFF): Remove.
16869 (UNSPEC_RELOC16, UNSPEC_RELOC32): New constants.
16870 (movsi): Handle TLS symbols.
16871 (addsi3_5200): Handle XTLS symbols, indent.
16872 * config/m68k/m68k-protos.h (m68k_legitimize_tls_address): Declare.
16873 (m68k_tls_reference_p): Declare.
16874 (m68k_legitimize_address): Declare.
16875 (m68k_unwrap_symbol): Declare.
16876 * config/m68k/m68k.opt (mxtls): New option.
16877 * config/m68k/m68k.c (ggc.h): Include.
16878 (m68k_output_dwarf_dtprel): Implement hook.
16879 (TARGET_HAVE_TLS, TARGET_ASM_OUTPUT_DWARF_DTPREL): Define.
16880 (m68k_expand_prologue): Load GOT pointer when function needs it.
16881 (m68k_illegitimate_symbolic_constant_p): Handle TLS symbols.
16882 (m68k_legitimate_constant_address_p): Same.
16883 (m68k_decompose_address): Handle TLS references.
16884 (m68k_get_gp): New static function.
16885 (enum m68k_reloc): New contants.
16886 (TLS_RELOC_P): New macro.
16887 (m68k_wrap_symbol): New static function.
16888 (m68k_unwrap_symbol): New function.
16889 (m68k_final_prescan_insn_1): New static function.
16890 (m68k_final_prescan_insn): New function.
16891 (m68k_move_to_reg, m68k_wrap_symbol_into_got_ref): New static
16892 functions.
16893 (legitimize_pic_address): Handle TLS references..
16894 (m68k_tls_get_addr, m68k_get_tls_get_addr)
16895 (m68k_libcall_value_in_a0_p)
16896 (m68k_call_tls_get_addr, m68k_read_tp, m68k_get_m68k_read_tp)
16897 (m68k_call_m68k_read_tp): Helper variables and functions for ...
16898 (m68k_legitimize_tls_address): Handle TLS references.
16899 (m68k_tls_symbol_p, m68k_tls_reference_p_1, m68k_tls_reference_p):
16900 New functions.
16901 (m68k_legitimize_address): Handle TLS symbols.
16902 (m68k_get_reloc_decoration): New static function.
16903 (m68k_output_addr_const_extra): Handle UNSPEC_RELOC16 and
16904 UNSPEC_RELOC32.
16905 (m68k_output_dwarf_dtprel): Implement hook.
16906 (print_operand_address): Handle UNSPEC_RELOC16 adn UNSPEC_RELOC32.
16907 (m68k_libcall_value): Return result in A0 instead of D0 when asked by
16908 m68k_call_* routines.
16909 (sched_attr_op_type): Handle TLS symbols.
16910 (gt-m68k.h): Include.
16911 * config/m68k/m68k.h (FINAL_PRESCAN_INSN): Define.
16912 (LEGITIMATE_PIC_OPERAND_P): Support TLS.
16913
16914 2009-05-18 Martin Jambor <mjambor@suse.cz>
16915
16916 * ipa-prop.c (ipa_check_stmt_modifications): Removed.
16917 (visit_store_addr_for_mod_analysis): New function.
16918 (ipa_detect_param_modifications): Use walk_stmt_load_store_addr_ops.
16919 (determine_cst_member_ptr): Use gimple_assign_single_p.
16920 (ipa_get_stmt_member_ptr_load_param): Use gimple_assign_single_p.
16921 (ipa_analyze_call_uses): Use !gimple_assign_rhs2 rather than number of
16922 operands. Don't check number of operands of a NOP_EXPR.
16923
16924 2009-05-18 Eric Fisher <joefoxreal@gmail.com>
16925
16926 * doc/tree-ssa.texi (SSA Operands): Fix a mistake.
16927
16928 2009-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
16929
16930 PR c/40172
16931 * c-common.c (warn_logical_operator): Don't warn if one of
16932 expression isn't always true or false.
16933
16934 2009-05-17 Kai Tietz <kai.tietz@onevision.com>
16935
16936 * config/i386/biarch32.h: New file.
16937 * config.gcc: Add for target i386-w64-* the biarch32.h to tm_file.
16938
16939 2009-05-17 Adam Nemet <anemet@caviumnetworks.com>
16940
16941 * config/mips/mips.md (*zero_extend<mode>_trunchi,
16942 *zero_extend<mode>_truncqi): Merge these into ...
16943 (*zero_extend<GPR:mode>_trunc<SHORT:mode>): ... this new pattern.
16944 Name the pattern following this as *zero_extendhi_truncqi.
16945
16946 2009-05-16 Brad Lucier <lucier@math.purdue.edu>
16947
16948 PR middle-end/39301
16949 * hwint.h: Add macro HOST_WIDEST_INT_PRINT.
16950 * bitmap.c (bitmap_descriptor): Make fields HOST_WIDEST_INT.
16951 (output_info): Make field HOST_WIDEST_INT.
16952 (print_statistics): Use HOST_WIDEST_INT_PRINT.
16953 (dump_bitmat_statistics): Same.
16954
16955 2009-05-16 Francois-Xavier Coudert <fxcoudert@gmail.com>
16956
16957 * config.gcc (use_gcc_stdint): Set to wrap.
16958 * config/darwin.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
16959 INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
16960 UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
16961 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
16962 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
16963 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
16964 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
16965 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
16966
16967 2009-05-16 Joseph Myers <joseph@codesourcery.com>
16968
16969 * config.gcc (mips*-*-*): Support arch_32, arch_64, tune_32 and
16970 tune_64.
16971 * config/mips/mips.h (MIPS_ABI_DEFAULT, MULTILIB_ABI_DEFAULT):
16972 Move definitions earlier.
16973 (OPT_ARCH64, OPT_ARCH32): Define.
16974 (OPTION_DEFAULT_SPECS): Add entries for arch_32, arch_64, tune_32
16975 and tune_64.
16976
16977 2009-05-16 Richard Earnshaw <rearnsha@arm.com>
16978
16979 PR target/40153
16980 * arm.md (cstoresi_nltu_thumb1): Use a neg of ltu as the pattern name
16981 implies.
16982
16983 2009-05-16 Richard Earnshaw <rearnsha@arm.com>
16984
16985 * arm.md (movdi2): Copy non-reg values to DImode registers.
16986
16987 2009-05-16 Jakub Jelinek <jakub@redhat.com>
16988
16989 PR target/39942
16990 * final.c (label_to_max_skip): New function.
16991 (label_to_alignment): Only use LABEL_TO_ALIGNMENT if
16992 CODE_LABEL_NUMBER <= max_labelno.
16993 * output.h (label_to_max_skip): New prototype.
16994 * config/i386/i386.c (ix86_avoid_jump_misspredicts): Renamed to...
16995 (ix86_avoid_jump_mispredicts): ... this. Don't define if
16996 ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined. Update comment.
16997 Handle CODE_LABELs with >= 16 byte alignment or with
16998 max_skip == (1 << align) - 1.
16999 (ix86_reorg): Don't call ix86_avoid_jump_mispredicts if
17000 ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined.
17001
17002 PR target/39942
17003 * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Don't emit second
17004 .p2align 3 if MAX_SKIP is smaller than 7.
17005 * config/i386/linux.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
17006
17007 2009-05-15 Ian Lance Taylor <iant@google.com>
17008
17009 * alias.c (struct alias_set_entry_d): Rename from struct
17010 alias_set_entry. Change all uses.
17011 * except.c (struct call_site_record_d): Rename from struct
17012 call_site_record. Change all uses.
17013 * except.h (struct eh_region_d): Rename from struct eh_region.
17014 Change all uses.
17015 * gcse.c (struct hash_table_d): Rename from struct hash_table.
17016 Change all uses.
17017 * graphite.c (struct ivtype_map_elt_d): Rename fromstruct
17018 ivtype_map_elt. Change all uses.
17019 (struct rename_map_elt_d): Rename fromstruct rename_map_elt.
17020 Change all uses.
17021 (struct ifsese_d): Rename fromstruct ifsese. Change all uses.
17022 * graphite.h (struct name_tree_d): Rename from struct name_tree.
17023 Change all uses.
17024 (struct sese_d): Rename from struct sese. Change all uses.
17025 * omega.h (struct eqn_d): Rename from struct eqn. Change all uses.
17026 (struct omega_pb_d): Rename from struct omega_pb. Change all uses.
17027 * optabs.h (struct optab_d): Rename from struct optab. Change all
17028 uses.
17029 (struct convert_optab_d): Rename from struct convert_optab.
17030 Change all uses.
17031 * tree-pass.h (struct ipa_opt_pass_d): Rename fromstruct
17032 ipa_opt_pass. Change all uses.
17033 * tree-predcom.c (struct dref_d): Rename from struct dref. Change
17034 all uses.
17035
17036 * c-decl.c (pushtag): If -Wc++-compat, warn if the tag is already
17037 defined as a typedef.
17038 (grokdeclarator): If -Wc++-compat, warn if a typedef is already
17039 defined as a tag.
17040
17041 2009-05-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
17042
17043 PR 16302
17044 * fold-const.c (make_range,build_range_check,merge_ranges): Move
17045 declaration to...
17046 (merge_ranges): Returns bool.
17047 * tree.h (make_range): .. to here.
17048 (build_range_check): Likewise.
17049 (merge_ranges): Likewise. Renamed from merge_ranges.
17050 * c-typeck.c (parser_build_binary_op): Update calls to
17051 warn_logical_operator.
17052 * c-common.c (warn_logical_operator): Add new warning.
17053 * c-common.h (warn_logical_operator): Update declaration.
17054
17055 2009-05-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
17056
17057 * ira-conflicts.c (add_insn_allocno_copies): Fix wrong conditional.
17058
17059 2009-05-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17060
17061 * doc/install.texi: Document MPC requirements, flags etc.
17062
17063 * builtins.c (do_mpc_arg1, fold_builtin_ccos): New.
17064 (fold_builtin_cexp): Ensure we get a complex REAL_TYPE.
17065 Evaluate constant arguments.
17066 (fold_builtin_carg): Ensure we get a complex REAL_TYPE.
17067 (fold_builtin_1): Likewise, also evaluate constant arguments.
17068 Remove superfluous break.
17069 (do_mpc_ckconv): New.
17070 * real.h: Include mpc.h.
17071 * toplev.c (print_version): Output MPC version info if available.
17072
17073 2009-05-15 Sandra Loosemore <sandra@codesourcery.com>
17074
17075 * fold-const.c (fold_convert_const_real_from_real): Check for overflow.
17076
17077 2009-05-15 H.J. Lu <hongjiu.lu@intel.com>
17078
17079 * config/i386/i386.c (ix86_reorg): Call optimize_function_for_speed_p
17080 only once.
17081
17082 2009-05-15 Jan Hubicka <jh@suse.cz>
17083
17084 * doc/invoke.texi (max-early-inliner-iterations): New flag.
17085 * ipa-inline.c (enum inlining_mode): New INLINE_SIZE_NORECURSIVE.
17086 (try_inline): Fix return value.
17087 (cgraph_decide_inlining_incrementally): Honor new value.
17088 (cgraph_early_inlining): Handle indirect inlining.
17089 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): New.
17090
17091 2009-05-15 Jan Hubicka <jh@suse.cz>
17092
17093 * cgraph.h (struct cgraph_node): Add finalized_by_frotnend flag.
17094 * cgraphunit.c (cgraph_finalize_function): Set it.
17095 (cgraph_expand_function): Use it.
17096
17097 2009-05-15 Sandra Loosemore <sandra@codesourcery.com>
17098
17099 * real.c (encode_ieee_half): Define.
17100 (decode_ieee_half): Define.
17101 (ieee_half_format): Define.
17102 (arm_half_format): Define.
17103 * real.h (ieee_half_format): Declare.
17104 (arm_half_format): Declare.
17105
17106 2009-05-15 Sandra Loosemore <sandra@codesourcery.com>
17107
17108 * optabs.c (prepare_float_lib_cmp): Test that the comparison,
17109 swapped, and reversed optabs exist before trying to use them.
17110
17111 2009-05-15 Paul Brook <paul@codesourcery.com>
17112 Sandra Loosemore <sandra@codesourcery.com>
17113
17114 * config/arm/arm.c (neon_vector_mem_operand): Handle element/structure
17115 loads. Allow PRE_DEC.
17116 (output_move_neon): Handle PRE_DEC.
17117 (arm_print_operand): Add 'A' for neon structure loads.
17118 * config/arm/arm-protos.h (neon_vector_mem_operand): Update prototype.
17119 * config/arm/neon.md (neon_mov): Update comment.
17120 * config/arm/constraints.md (Un, Us): Update neon_vector_mem_operand
17121 calls.
17122 (Um): New constraint.
17123
17124 2009-05-15 Jan Hubicka <jh@suse.cz>
17125
17126 Revert the following patch until testsuite fallout is fixed:
17127 * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
17128 * cgraph.h (struct inline_summary): New filed self_wize,
17129 size_inlining_benefit, self_time and time_inlining_benefit.
17130 (struct cgraph_global_info): Replace insns by time ans size fields.
17131 * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
17132 (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
17133 (ipcp_update_callgraph): Do not touch function bodies.
17134 * ipa-inline.c: Include except.h
17135 (MAX_TIME): New constant.
17136 (overall_insns): Remove
17137 (overall_size, max_benefit): New static variables.
17138 (cgraph_estimate_time_after_inlining): New function.
17139 (cgraph_estimate_size_after_inlining): Rewrite using benefits.
17140 (cgraph_clone_inlined_nodes): Update size.
17141 (cgraph_mark_inline_edge): Update size.
17142 (cgraph_estimate_growth): Use size info.
17143 (cgraph_check_inline_limits): Check size.
17144 (cgraph_default_inline_p): Likewise.
17145 (cgraph_edge_badness): Compute badness based on benefit and size cost.
17146 (cgraph_decide_recursive_inlining): Check size.
17147 (cgraph_decide_inlining_of_small_function): Update size; dump sizes
17148 and times.
17149 (cgraph_decide_inlining): Likewise.
17150 (cgraph_decide_inlining_incrementally): Likewise; honor
17151 PARAM_EARLY_INLINING_INSNS.
17152 (likely_eliminated_by_inlining_p): New predicate.
17153 (estimate_function_body_sizes): New function.
17154 (compute_inline_parameters): Use it.
17155 * except.c (must_not_throw_labels): New function.
17156 * except.h (must_not_throw_labels): Declare.
17157 * tree-inline.c (init_inline_once): Kill inlining_weigths
17158 * tree-ssa-structalias.c: Avoid uninitialized warning.
17159 * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
17160 (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
17161 (PARAM_INLINE_CALL_COST): Remove.
17162 (PARAM_EARLY_INLINING_INSNS): New.
17163
17164 2009-05-15 Richard Guenther <rguenther@suse.de>
17165
17166 * tree-ssa-pre.c (eliminate): Use TODO_update_ssa_only_virtuals,
17167 not TODO_update_ssa.
17168
17169 2009-05-15 Richard Guenther <rguenther@suse.de>
17170
17171 PR tree-optimization/39999
17172 * gimple.h (gimple_expr_type): Use the expression type looking
17173 through useless conversions.
17174 * tree-ssa-sccvn.c (vn_nary_op_lookup_stmt): Use gimple_expr_type.
17175 (vn_nary_op_insert_stmt): Likewise.
17176 (simplify_binary_expression): Likewise.
17177
17178 2009-05-15 Richard Guenther <rguenther@suse.de>
17179
17180 * common.opt (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
17181 New options, enabled by default.
17182 * doc/invoke.texi (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
17183 Document.
17184 * tree-ssa-forwprop.c (gate_forwprop): Use flag_tree_forwprop.
17185 * tree-ssa-phiprop.c (gate_phiprop): Use flag_tree_phiprop.
17186 * tree-ssa-structalias.c (gate_tree_pta): New function.
17187 (pass_build_alias): Use it.
17188
17189 2009-05-15 Joseph Myers <joseph@codesourcery.com>
17190
17191 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
17192 recurse on an invariant address if a conversion from a pointer
17193 type to a wider integer type is involved.
17194
17195 2009-05-15 Jan Hubicka <jh@suse.cz>
17196
17197 * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
17198 * cgraph.h (struct inline_summary): New filed self_wize,
17199 size_inlining_benefit, self_time and time_inlining_benefit.
17200 (struct cgraph_global_info): Replace insns by time ans size fields.
17201 * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
17202 (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
17203 (ipcp_update_callgraph): Do not touch function bodies.
17204 * ipa-inline.c: Include except.h
17205 (MAX_TIME): New constant.
17206 (overall_insns): Remove
17207 (overall_size, max_benefit): New static variables.
17208 (cgraph_estimate_time_after_inlining): New function.
17209 (cgraph_estimate_size_after_inlining): Rewrite using benefits.
17210 (cgraph_clone_inlined_nodes): Update size.
17211 (cgraph_mark_inline_edge): Update size.
17212 (cgraph_estimate_growth): Use size info.
17213 (cgraph_check_inline_limits): Check size.
17214 (cgraph_default_inline_p): Likewise.
17215 (cgraph_edge_badness): Compute badness based on benefit and size cost.
17216 (cgraph_decide_recursive_inlining): Check size.
17217 (cgraph_decide_inlining_of_small_function): Update size; dump sizes
17218 and times.
17219 (cgraph_decide_inlining): Likewise.
17220 (cgraph_decide_inlining_incrementally): Likewise; honor
17221 PARAM_EARLY_INLINING_INSNS.
17222 (likely_eliminated_by_inlining_p): New predicate.
17223 (estimate_function_body_sizes): New function.
17224 (compute_inline_parameters): Use it.
17225 * except.c (must_not_throw_labels): New function.
17226 * except.h (must_not_throw_labels): Declare.
17227 * tree-inline.c (init_inline_once): Kill inlining_weigths
17228 * tree-ssa-structalias.c: Avoid uninitialized warning.
17229 * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
17230 (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
17231 (PARAM_INLINE_CALL_COST): Remove.
17232 (PARAM_EARLY_INLINING_INSNS): New.
17233 doc/invoke.texi (max-inline-insns-auto, early-inlining-insns): Update.
17234 (inline-call-cost): Remove.
17235 (early-inlining-insns): New.
17236
17237 2009-05-15 Eric Botcazou <ebotcazou@adacore.com>
17238
17239 * dbxout.c (dbxout_range_type): Add LOW and HIGH parameters. Use them
17240 for bounds.
17241 (print_int_cst_bounds_in_octal_p): Likewise.
17242 (dbxout_type): Adjust calls to above functions. Be prepared to deal
17243 with subtypes.
17244 * dwarf2out.c (base_type_die): Likewise.
17245 (is_subrange_type): Delete.
17246 (subrange_type_die): Add LOW and HIGH parameters. Use them for bounds.
17247 (modified_type_die): Call subrange_type_for_debug_p on subtypes.
17248 * fold-const.c (fold_truth_not_expr) <CONVERT_EXPR>: Do not strip it
17249 if the destination type is boolean.
17250 (build_range_check): Do not special-case subtypes.
17251 (fold_sign_changed_comparison): Likewise.
17252 (fold_unary): Likewise.
17253 * langhooks-def.h (LANG_HOOKS_GET_SUBRANGE_BOUNDS): Define.
17254 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_GET_SUBRANGE_BOUNDS.
17255 * langhooks.h (lang_hooks_for_types): Add get_subrange_bounds.
17256 * tree.c (subrange_type_for_debug_p): New predicate based on the
17257 former is_subrange_type.
17258 * tree.h (subrange_type_for_debug_p): Declare.
17259 * tree-chrec.c (avoid_arithmetics_in_type_p): Delete.
17260 (convert_affine_scev): Remove call to above function.
17261 (chrec_convert_aggressive): Likewise.
17262 * tree-ssa.c (useless_type_conversion_p_1): Do not specifically return
17263 false for conversions involving subtypes.
17264 * tree-vrp.c (vrp_val_max): Do not special-case subtypes.
17265 (vrp_val_min): Likewise.
17266 (needs_overflow_infinity): Likewise.
17267 (extract_range_from_unary_expr): Likewise.
17268
17269 2009-05-15 Paolo Bonzini <bonzini@gnu.org>
17270
17271 * config/frv/frv.h: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
17272 * config/frv/frv.c: Likewise.
17273 * config/s390/s390.c: Likewise.
17274 * config/sparc/sparc.h: Likewise.
17275 * config/i386/i386.h: Likewise.
17276 * config/i386/i386.c: Likewise.
17277 * config/crx/crx.c: Likewise.
17278 * config/m68hc11/m68hc11.h: Likewise.
17279 * config/iq2000/iq2000.c: Likewise.
17280 * config/mn10300/mn10300.h: Likewise.
17281 * config/mn10300/mn10300.c: Likewise.
17282 * config/m68k/m68k.c: Likewise.
17283 * config/rs6000/rs6000.c: Likewise.
17284 * config/rs6000/xcoff.h: Likewise.
17285 * config/rs6000/linux64.h: Likewise.
17286 * config/rs6000/sysv4.h: Likewise.
17287 * config/score/score3.c: Likewise.
17288 * config/score/score7.c: Likewise.
17289 * config/score/score.c: Likewise.
17290 * config/arm/arm.md: Likewise.
17291 * config/mips/mips.c: Likewise.
17292 * config/mips/mips.md: Likewise.
17293 * config/bfin/bfin.h: Likewise.
17294 * config/pa/pa.c: Likewise.
17295 * config/pa/constraints.md: Likewise.
17296
17297 * config/pdp11/pdp11-protos.h (legitimate_address_p): Delete.
17298 * config/pdp11/pdp11.c (legitimate_address_p): Delete.
17299 * config/pdp11/pdp11.h: Use memory_address_p instead.
17300
17301 2009-05-14 Ian Lance Taylor <iant@google.com>
17302
17303 * passes.c (finish_optimization_passes): Change i to int.
17304 * plugin.c (plugins_active_p): Change event to int.
17305 (dump_active_plugins): Likewise.
17306 * reginfo.c (invalid_mode_change_p): Change to to unsigned int.
17307 Add cast.
17308 * tree.c (tree_range_check_failed): Change c to unsigned int.
17309 (omp_clause_range_check_failed): Likewise.
17310 (build_common_builtin_nodes): Change mode to int. Add cast.
17311 * config/ia64/ia64.c (is_emitted): Change r to unsigned int.
17312 (ia64_hard_regno_rename_ok, ia64_eh_uses): Likewise.
17313
17314 * c-typeck.c (build_unary_op): If -Wc++-compat, warn about using
17315 ++ or -- with a variable of enum type.
17316
17317 2009-05-14 Steven Bosscher <steven@gcc.gnu.org>
17318
17319 PR driver/40144
17320 * opts.c (common_handle_option): Add OPT_fcse_skip_blocks as a no-op.
17321
17322 2009-05-14 Steven Bosscher <steven@gcc.gnu.org>
17323
17324 * store-motion.c: Do not include params.h
17325 * Makefile.in: Fix dependencies for various files.
17326
17327 2009-05-14 Steven Bosscher <steven@gcc.gnu.org>
17328
17329 * auto-inc-dec.c: Fix pass description, remove apparent
17330 accidental duplication.
17331
17332 2009-05-14 H.J. Lu <hongjiu.lu@intel.com>
17333
17334 PR middle-end/40147
17335 * ipa-utils.h (memory_identifier_string): Moved to ...
17336 * tree.h (memory_identifier_string): Here. Add GTY(()).
17337
17338 2009-05-14 Paolo Bonzini <bonzini@gnu.org>
17339
17340 * doc/tm.texi (TARGET_LEGITIMATE_ADDRESS_P): Refer mainly to this
17341 in the former documentation of...
17342 (GO_IF_LEGITIMATE_ADDRESS): ... this.
17343 * ira-conflicts.c (get_dup_num): Use address_operand.
17344 * targhooks.c (default_legitimate_address_p): New.
17345 * targhooks.h (default_legitimate_address_p): New.
17346 * reload.c (strict_memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]:
17347 Call hook.
17348 * recog.c (memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]: Call hook.
17349 * target.h (struct target): Add legitimate_address_p.
17350 * target-def.h (TARGET_LEGITIMATE_ADDRESS_P): New.
17351 (TARGET_INITIALIZER): Include it.
17352
17353 * config/alpha/alpha.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17354 * config/alpha/alpha-protos.h (alpha_legitimate_address_p): Remove.
17355 * config/alpha/alpha.c (alpha_legitimate_address_p): Make static.
17356 (TARGET_LEGITIMATE_ADDRESS_P): New.
17357
17358 * config/frv/frv.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17359 (REG_OK_STRICT_P): Delete.
17360 * config/frv/frv-protos.h (frv_legitimate_address_p): Rename to...
17361 (frv_legitimate_address_p_1): ... this.
17362 * config/frv/frv.c (frv_legitimate_address_p): Forward to...
17363 (frv_legitimate_address_p_1): ... the renamed old
17364 frv_legitimate_address_p.
17365 * config/frv/predicates.md: Adjust calls to frv_legitimate_address_p.
17366 (TARGET_LEGITIMATE_ADDRESS_P): New.
17367
17368 * config/s390/s390.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17369 * config/s390/s390-protos.h (legitimate_address_p): Remove.
17370 * config/s390/s390.c (legitimate_address_p): Rename to...
17371 (s390_legitimate_address_p): ... this, make static.
17372 (legitimize_address): Adjust call.
17373 (TARGET_LEGITIMATE_ADDRESS_P): New.
17374 * config/s390/constraints.md ("e"): Call strict_memory_address_p.
17375
17376 * config/m32c/m32c.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17377 * config/m32c/m32c-protos.h (m32c_legitimate_address_p): Remove.
17378 * config/m32c/m32c.c (m32c_legitimate_address_p): Make static.
17379 (TARGET_LEGITIMATE_ADDRESS_P): New.
17380
17381 * config/spu/spu.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17382 * config/spu/spu-protos.h (spu_legitimate_address): Remove.
17383 * config/spu/spu.c (spu_legitimate_address): Rename to...
17384 (spu_legitimate_address_p): ... this, make static.
17385 (TARGET_LEGITIMATE_ADDRESS_P): New.
17386
17387 * config/sparc/sparc.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17388 * config/sparc/sparc-protos.h (legitimate_address_p): Remove.
17389 * config/sparc/sparc.c (legitimate_address_p): Rename to...
17390 (sparc_legitimate_address_p): ... this, make static and return bool.
17391 (legitimize_address): Adjust call.
17392 (TARGET_LEGITIMATE_ADDRESS_P): New.
17393
17394 * config/i386/i386.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17395 * config/i386/i386-protos.h (legitimate_address_p): Remove.
17396 * config/i386/i386.c (legitimate_address_p): Rename to...
17397 (ix86_legitimate_address_p): ... this, make static.
17398 (constant_address_p): Move after it, adjust call.
17399 (TARGET_LEGITIMATE_ADDRESS_P): New.
17400
17401 * config/avr/avr.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17402 * config/avr/avr-protos.h (legitimate_address_p): Remove.
17403 * config/avr/avr.c (legitimate_address_p): Rename to...
17404 (avr_legitimate_address_p): ... this, make static.
17405 (legitimize_address): Adjust call.
17406 (TARGET_LEGITIMATE_ADDRESS_P): New.
17407
17408 * config/crx/crx.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17409 * config/crx/crx-protos.h (crx_legitimate_address_p): Remove.
17410 * config/crx/crx.c (crx_legitimate_address_p): Make static.
17411 (TARGET_LEGITIMATE_ADDRESS_P): New.
17412
17413 * config/xtensa/xtensa.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17414 * config/xtensa/xtensa-protos.h (xtensa_legitimate_address_p): Remove.
17415 * config/xtensa/xtensa.c (xtensa_legitimate_address_p): Make static.
17416 (TARGET_LEGITIMATE_ADDRESS_P): New.
17417
17418 * config/stormy16/stormy16.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17419 * config/stormy16/stormy16-protos.h (xstormy16_legitimate_address_p):
17420 Remove.
17421 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
17422 Make static.
17423 (TARGET_LEGITIMATE_ADDRESS_P): New.
17424
17425 * config/m68hc11/m68hc11.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17426 * config/m68hc11/m68hc11-protos.h (m68hc11_go_if_legitimate_address):
17427 Remove.
17428 * config/m68hc11/m68hc11.c (m68hc11_go_if_legitimate_address):
17429 Rename to...
17430 (m68hc11_legitimate_address_p): ... this, make static.
17431 (go_if_legitimate_address_internal): Rename to...
17432 (m68hc11_legitimate_address_p_1): ... this.
17433 (legitimize_address): Adjust call.
17434 (TARGET_LEGITIMATE_ADDRESS_P): New.
17435
17436 * config/iq2000/iq2000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17437 * config/iq2000/iq2000-protos.h (iq2000_legitimate_address_p): Remove.
17438 * config/iq2000/iq2000.c (iq2000_legitimate_address_p): Make static.
17439 (TARGET_LEGITIMATE_ADDRESS_P): New.
17440
17441 * config/mn10300/mn10300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17442 * config/mn10300/mn10300-protos.h (legitimate_address_p): Remove.
17443 * config/mn10300/mn10300.c (legitimate_address_p): Rename to...
17444 (mn10300_legitimate_address_p): ... this, make static.
17445 (TARGET_LEGITIMATE_ADDRESS_P): New.
17446
17447 * config/m68k/m68k.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17448 * config/m68k/m68k-protos.h (m68k_legitimate_address_p): Remove.
17449 * config/m68k/m68k.c (m68k_legitimate_address_p): Make static.
17450 (TARGET_LEGITIMATE_ADDRESS_P): New.
17451
17452 * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17453 (REG_OK_STRICT_FLAG, REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Delete.
17454 (INT_REG_OK_FOR_BASE_P, INT_REG_OK_FOR_INDEX_P): Move above.
17455 * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17456 * config/rs6000/rs6000-protos.h (rs6000_legitimate_address): Remove.
17457 * config/rs6000/rs6000.c (rs6000_legitimate_address): Rename to...
17458 (rs6000_legitimate_address_p): ... this, make static.
17459 (TARGET_LEGITIMATE_ADDRESS_P): New.
17460 (REG_MODE_OK_FOR_BASE_P): Delete.
17461 (rs6000_legitimize_reload_address): Use INT_REG_OK_FOR_BASE_P.
17462
17463 * config/picochip/picochip.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17464 * config/picochip/picochip-protos.h (picochip_legitimate_address_p):
17465 Delete.
17466 * config/picochip/picochip.c (picochip_legitimate_address_p): Make
17467 static, adjust types.
17468 (TARGET_LEGITIMATE_ADDRESS_P): New.
17469
17470 * config/score/score.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17471 * config/score/score.c (score_address_p): Rename to...
17472 (score_legitimate_address_p): ... this.
17473 (TARGET_LEGITIMATE_ADDRESS_P): New.
17474 * config/score/score3.c (score3_address_p): Rename to...
17475 (score3_legitimate_address_p): ... this.
17476 * config/score/score7.c (score7_address_p): Rename to...
17477 (score7_legitimate_address_p): ... this.
17478
17479 * config/arm/arm.h (ARM_GO_IF_LEGITIMATE_ADDRESS,
17480 THUMB2_GO_IF_LEGITIMATE_ADDRESS, THUMB1_GO_IF_LEGITIMATE_ADDRESS,
17481 GO_IF_LEGITIMATE_ADDRESS): Delete.
17482 * config/arm/arm-protos.h (thumb1_legitimate_address_p,
17483 thumb2_legitimate_address_p): Delete.
17484 (arm_legitimate_address_p): Rename to...
17485 (arm_legitimate_address_outer_p): ... this.
17486 * config/arm/constraints.md ("Uq"): Adjust call.
17487 * config/arm/predicates.md (arm_extendqisi_mem_op): Likewise.
17488 * config/arm/arm.c (arm_legitimate_address_p): New, rename old one
17489 to...
17490 (arm_legitimate_address_outer_p): ... this.
17491 (thumb1_legitimate_address_p, thumb2_legitimate_address_p): Make
17492 static.
17493 (TARGET_LEGITIMATE_ADDRESS_P): New.
17494
17495 * config/mips/mips.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17496 * config/mips/mips-protos.h (mips_legitimate_address_p): Remove.
17497 * config/mips/mips.c (mips_legitimate_address_p): ... Make static.
17498 (TARGET_LEGITIMATE_ADDRESS_P): New.
17499
17500 * config/vax/vax.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17501 * config/vax/vax-protos.h (legitimate_address_p): Remove.
17502 * config/vax/vax.c (legitimate_address_p): Rename to...
17503 (vax_legitimate_address_p): ... this, make static.
17504 (TARGET_LEGITIMATE_ADDRESS_P): New.
17505
17506 * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17507 * config/h8300/h8300-protos.h (h8300_legitimate_address_p): Remove.
17508 * config/h8300/h8300.c (h8300_legitimate_address_p): ... Make static.
17509 (TARGET_LEGITIMATE_ADDRESS_P): New.
17510
17511 * config/mmix/mmix.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17512 * config/mmix/mmix-protos.h (mmix_legitimize_address): Remove.
17513 * config/mmix/mmix.c (mmix_legitimate_address): Rename to...
17514 (mmix_legitimate_address_p): ... this, make static.
17515 (TARGET_LEGITIMATE_ADDRESS_P): New.
17516
17517 * config/bfin/bfin.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17518 * config/bfin/bfin-protos.h (bfin_legitimate_address_p): Remove.
17519 * config/bfin/bfin.c (bfin_legitimate_address_p): ... Make static.
17520 (TARGET_LEGITIMATE_ADDRESS_P): New.
17521
17522 2009-05-14 Paolo Bonzini <bonzini@gnu.org>
17523
17524 * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Remove handling
17525 of MODE_COMPLEX_INT.
17526
17527 2009-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
17528
17529 * config/alpha/alpha.c (alpha_initialize_trampoline): Change 0 to
17530 LCT_NORMAL in function call.
17531 * mips-tdump.c (print_file_desc): Add cast to enum type.
17532 * mips-tfile.c (add_ext_symbol): Add casts to enum types.
17533 (mark_stabs): Add casts to enum types.
17534 (parse_stabs_common): Add casts to enum types.
17535
17536 2009-05-13 Adam Nemet <anemet@caviumnetworks.com>
17537
17538 * config/mips/mips.c (mips_print_operand) <REG, MEM, default>:
17539 Check for invalid values of LETTER.
17540
17541 2009-05-13 Taras Glek <tglek@mozilla.com>
17542
17543 * attribs.c (register_attribute): moved out attribute registration
17544 into register_attribute.
17545 * doc/plugins.texi: Documented register_attribute and
17546 PLUGIN_ATTRIBUTES.
17547 * gcc-plugin.h: Added forward decl for register_attribute.
17548 * gcc-plugin.h (plugins_event): Added PLUGIN_ATTRIBUTES.
17549 * plugin.c (register_callback, invoke_plugin_callbacks): Added
17550 PLUGIN_ATTRIBUTES boilerplate.
17551
17552 2009-05-14 Dave Korn <dave.korn.cygwin@gmail.com>
17553
17554 * config/i386/msformat-c.c (ms_printf_length_specs): Use enumeration
17555 values even in sentinel and empty entries.
17556 (ms_printf_flag_specs): Likewise.
17557 (ms_scanf_flag_specs): Likewise.
17558 (ms_strftime_flag_specs): Likewise.
17559 (ms_print_char_table): Likewise.
17560 (ms_scan_char_table): Likewise.
17561 (ms_time_char_table): Likewise.
17562
17563 2009-05-13 Doug Kwan <dougkwan@google.com>
17564
17565 * tree-ssa-sccvn.c (compare_ops): Stabilize qsort.
17566
17567 2009-05-13 Adam Nemet <anemet@caviumnetworks.com>
17568
17569 * config/mips/mips.md (store): Add attributes for QI and HI.
17570 Update comment.
17571 (truncdisi2, truncdihi2, truncdiqi2): Merge these into ...
17572 (truncdi<mode>2): ... this new pattern.
17573
17574 2009-05-13 Brad Hards <bradh@kde.org>
17575
17576 * Makefile.in (TEXI_GCCINT_FILES): Add plugins.texi.
17577
17578 2009-05-14 Jakub Jelinek <jakub@redhat.com>
17579 Ben Elliston <bje@au.ibm.com>
17580
17581 PR middle-end/40035
17582 * dse.c (check_mem_read_rtx): Guard against width == -1.
17583
17584 2009-05-13 Michael Matz <matz@suse.de>
17585
17586 PR middle-end/39976
17587 * tree-outof-ssa.c (maybe_renumber_stmts_bb): New function.
17588 (trivially_conflicts_p): New function.
17589 (insert_backedge_copies): Use it.
17590
17591 2009-05-13 Janis Johnson <janis187@us.ibm.com>
17592
17593 * c-pragma.c (enum pragma_switch_t): Prefix constants with PRAGMA_.
17594 (handle_stdc_pragma): Use new enum constant names.
17595 (handle_pragma_float_const_decimal64): Ditto.
17596
17597 2009-05-13 Ian Lance Taylor <iant@google.com>
17598
17599 * Makefile.in (build/gencheck.o): Depend upon all-tree.def, not
17600 tree.def.
17601
17602 2009-05-13 Nathan Sidwell <nathan@codesourcery.com>
17603
17604 * config/m68k/t-uclinux (M68K_MLIB_CPU): Check for FL_UCLINUX.
17605 * config/m68k/m68k-devices.def: Add FL_UCLINUX to 68020 and 54455
17606 multilibs.
17607 * config/m68k/m68k.h (FL_UCLINUX): Define.
17608
17609 2009-05-13 Jan Hubicka <jh@suse.cz>
17610
17611 * options.c (gfc_post_options): -fwhole-program imply -fwhole-file.
17612
17613 2009-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
17614
17615 * config/sh/sh.h (OVERRIDE_OPTIONS): Clear flag_schedule_insns
17616 unless -fschedule-insns is specified.
17617
17618 2009-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
17619
17620 PR target/39561
17621 * config/sh/sh.h (OPTIMIZATION_OPTIONS): Don't set
17622 TARGET_EXPAND_CBRANCHDI4.
17623 * config/sh/sh.md (cbranchdi4): Don't check TARGET_EXPAND_CBRANCHDI4.
17624 * config/sh/sh.opt (mexpand-cbranchdi): Remove.
17625 (cmpeqdi): Fix comment.
17626
17627 2009-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
17628
17629 * config/sh/sh-protos.h (sh_legitimate_index_p): Declare.
17630 (sh_legitimate_address_p): Likewise.
17631 * config/sh/sh.c (sh_legitimate_index_p): New.
17632 (sh_legitimate_address_p): Likewise.
17633 * config/sh/sh.h (REG_OK_FOR_BASE_P): Add STRICT parameter.
17634 (REG_OK_FOR_INDEX_P, SUBREG_OK_FOR_INDEX_P): Likewise.
17635 (MODE_DISP_OK_4, MODE_DISP_OK_8): Remove.
17636 (MAYBE_BASE_REGISTER_RTX_P): New macro.
17637 (MAYBE_INDEX_REGISTER_RTX_P): Likewise.
17638 (BASE_REGISTER_RTX_P): Use MAYBE_BASE_REGISTER_RTX_P.
17639 (INDEX_REGISTER_RTX_P): Use MAYBE_INDEX_REGISTER_RTX_P.
17640 (GO_IF_LEGITIMATE_INDEX): Use sh_legitimate_index_p.
17641 (GO_IF_LEGITIMATE_ADDRESS): Use sh_legitimate_address_p.
17642
17643 2009-05-12 Jan Hubicka <jh@suse.cz>
17644
17645 * tree-inline.c (estimate_operator_cost): Add operands;
17646 when division happens by constant, it is cheap.
17647 (estimate_num_insns): Loads and stores are not having cost of 0;
17648 EH magic stuff is cheap; when computing runtime cost of switch,
17649 use log2 base of amount of its cases; builtin_expect has cost of 0;
17650 compute cost for moving return value of call.
17651 (init_inline_once): Initialize time_based flags.
17652 * tree-inline.h (eni_weights_d): Add time_based flag.
17653
17654 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
17655
17656 * df-core.c: Update head documentation.
17657
17658 2009-05-12 Michael Meissner <meissner@linux.vnet.ibm.com>
17659
17660 PR bootstrap/40118
17661 * rs6000.c (rs6000_generate_compare): Use op1b instead of
17662 shadowing exisiting variable op1.
17663
17664 2009-05-12 Uros Bizjak <ubizjak@gmail.com>
17665
17666 PR target/37179
17667 * config/i386/driver-i386.c (processor_signatures): New enum.
17668 (SIG_GEODE): Move from vendor_signatures to processor_signatures.
17669 (host_detect_local_cpu): For SIG_AMD vendor, check for SIG_GEODE
17670 processor signature to detect geode processor.
17671
17672 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
17673
17674 Revert:
17675
17676 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
17677
17678 * optabs.c (prepare_cmp_insn): Temporarily disable test that
17679 causes spurious differences between trunk and cond-optab branch.
17680
17681 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
17682
17683 * dojump.c (compare_from_rtx): Delete.
17684 * expmed.c (emit_store_flag): Only try cstore_optab. Canonicalize
17685 any MODE_CC mode to the cstorecc4 pattern. Use prepare_operand, fail
17686 if the comparison does not satisfy the predicate; test predicates for
17687 operands 2 and 3 of a cstore pattern. Don't try cstore optab
17688 further if one existing pattern fails.
17689 * expr.h (compare_from_rtx): Delete.
17690 (prepare_operand): Declare it.
17691 * optabs.c: Change "lib call" to "libcall" throughout.
17692 (bcc_gen_fctn, setcc_gen_code, trap_rtx,
17693 HAVE_conditional_trap, emit_cmp_insn): Delete.
17694 (can_compare_p): Delete cmp_optab case.
17695 (prepare_float_lib_cmp): Return an rtx and a machine mode.
17696 Accept other parameters by value.
17697 (prepare_operand): Make non-static.
17698 (prepare_cmp_insn): Return an rtx and a machine mode. Accept
17699 other parameters by value. Try to widen operands here based on
17700 an optab_methods argument and looking at cbranch_optab.
17701 (emit_cmp_and_jump_insn_1): Accept test and mode, remove widening
17702 loop. Use cbranch_optab directly.
17703 (emit_cmp_and_jump_insns): Fix comment. Adjust call to
17704 prepare_cmp_insn and emit_cmp_and_jump_insn_1, remove obsolete
17705 assertion.
17706 (emit_conditional_move, emit_conditional_add): Inline what's needed
17707 of compare_from_rtx, using new prepare_cmp_insn for the rest.
17708 (init_optabs): Init cmp_optab with UNKNOWN, cbranch_optab
17709 with COMPARE. Move cmov_optab and cstore_optab above
17710 with cbranch_optab, move cmp_optab down with ucmp_optab,
17711 remove tst_otpab. Do not initialize trap_rtx.
17712 (gen_cond_trap): Do it here. Use ctrap_optab. Test predicate
17713 for trap code. Do not check HAVE_conditional_trap. Use
17714 prepare_cmp_insn. Accept no predicate for operand 3.
17715 * optabs.h (OTI_cmp): Mark as used only for libcalls.
17716 (OTI_ctrap, ctrap_optab): New.
17717 (tst_optab): Delete.
17718 (bcc_gen_fctn, setcc_gen_code, emit_cmp_insn): Delete.
17719 * ifcvt.c (find_if_header): Replace HAVE_conditional_trap
17720 with lookup of ctrap_optab.
17721 * genopinit.c (cmp_optab, tst_optab, bcc_gen_fctn, setcc_gen_code):
17722 Delete.
17723 (ctrap_optab): New.
17724
17725 * combine.c (combine_simplify_rtx, simplify_set): Do not
17726 special case comparing against zero for cc0 machines.
17727 * simplify-rtx.c (simplify_binary_operation_1): Never remove
17728 COMPARE on cc0 machines.
17729 (simplify_relational_operation): Return a new expression when
17730 a COMPARE could be removed.
17731 * final.c (final_scan_insn): Compare cc_status values
17732 against LHS of a (compare FOO (const_int 0)) cc0 source.
17733 Also check if cc_status.value is the full compare.
17734
17735 * doc/md.texi (bCC, sCC, tstMM, cmpMM): Delete.
17736 (cstoreMM4): Document.
17737 (conditional_trap): Document ctrapMM4 instead.
17738 (sync_compare_and_swapMM): Refer to cbranchcc4.
17739 (Dependent Patterns): Eliminate obsolete information referring to
17740 the old jump optimization phase.
17741 (Canonicalization): Include cbranchcc4 case, omit canonicalization
17742 of compares with 0 on cc0 machines.
17743 (Jump Patterns): Refer to MODE_CC jump patterns preferably,
17744 avoiding references to cc0. Remove text about storing operands
17745 in cmpMM.
17746 * doc/tm.texi (Condition Codes): Include blurb on different
17747 condition code representations, separate into subsections for
17748 CC0, MODE_CC and conditional execution.
17749
17750 * config/alpha/alpha-protos.h (alpha_emit_conditional_branch,
17751 alpha_emit_setcc): Accept operands and a machine mode.
17752 * config/alpha/alpha.c (alpha_emit_conditional_branch):
17753 Get code/op0/op1 from operands, use machine mode argument
17754 instead of alpha_compare.fp_p. Emit the branch here.
17755 (alpha_emit_setcc): Likewise, and return boolean.
17756 (alpha_emit_conditional_move): Likewise. Assert that
17757 cmp_op_mode == cmp_mode, and simplify accordingly.
17758 * config/alpha/alpha.h (struct alpha_compare, alpha_compare): Delete.
17759 * config/alpha/alpha.md (cmpdf, cmptf, cmpdi, bCC, sCC): Delete.
17760 (cbranchdf4, cbranchtf4, cbranchdi4, cstoredf4, cstoretf4,cstoredi4):
17761 Delete.
17762 (stack probe test): Use cbranchdi4.
17763 * config/alpha/predicates.md (alpha_cbranch_operator): New.
17764
17765 * config/arc/arc.c (gen_compare_reg): Do not emit cmp.
17766 * config/arc/arc.h (movsicc, movsfcc): Use it.
17767 (movdicc, *movdicc_insn, movdfcc, *movdfcc_insn): Remove.
17768 (cbranchsi4, cstoresi4): New.
17769 (cmpsi, bCC and sCC expanders): Remove.
17770
17771 * config/arm/arm.c (arm_compare_op0, arm_compare_op1): Delete.
17772 * config/arm/arm.h (arm_compare_op0, arm_compare_op1): Delete.
17773 * config/arm/predicates.md (arm_comparison_operator): Only include
17774 floating-point operators if there is a hardware floating-point unit.
17775 * config/arm/arm.md (cbranchsi4, cstoresi4): Enable for TARGET_32BIT,
17776 deferring to cbranch_cc and cstore_cc respectively.
17777 (cbranchsf4, cbranchdf4, cbranchdi4, cstoresf4, cstoredf4, cstoredi4,
17778 cbranch_cc, cstore_cc): New.
17779 (movsicc, movsfcc, movdfcc): Do not use arm_compare_op0 and
17780 arm_compare_op1.
17781 (bCC, sCC, cmpsi, cmpsf, cmpdf, cmpdi): Delete.
17782
17783 * config/avr/avr-protos.h (out_tstsi, out_tsthi): Adjust prototype.
17784 * config/avr/avr.c (out_tstsi, out_tsthi): Get the tested operand
17785 as an argument.
17786 (adjust_insn_length): Adjust calls.
17787 (avr_reorg): Handle (compare (foo) (const_int 0)).
17788 * config/avr/avr.md (tstqi, tsthi, tstsi): Remove.
17789 (*negated_tstqi, *negated_tsthi, *negated_tstsi): Unmacroize.
17790 (*reversed_tsthi, *reversed_tstsi): Add a scratch for simplicity.
17791 (cmpqi, cmphi, cmpsi): Prepend asterisk, fuse tst[qhs]i here.
17792 (bCC): Remove.
17793 (cbranchqi4, cbranchhi4, cbranchsi4): New.
17794 (tst -> sbrc/sbrs peephole2, cpse peephole): Wrap RHS with COMPARE.
17795
17796 * config/bfin/bfin.md (cmpbi, cmpsi, bCC, sCC): Delete.
17797 (cbranchsi4, cstorebi4, cstoresi4): New.
17798 (movbisi): This insn is duplicate, split it to zero_extend.
17799 * config/bfin/bfin.c (bfin_compare_op0, bfin_compare_op1): Delete
17800 (bfin_gen_compare): Do not use them. Emit VOIDmode SET, not BImode.
17801 (bfin_optimize_loop): Use cbranch expander.
17802 * config/bfin/bfin.h (bfin_compare_op0, bfin_compare_op1): Delete.
17803 * config/bfin/predicates.md (bfin_cbranch_operator): Rename to...
17804 (bfin_bimode_comparison_operator): ... this.
17805 (bfin_direct_comparison_operator): New.
17806
17807 * config/cris/cris.c (cris_normal_notice_update_cc): Look
17808 inside (compare FOO (const_int 0)).
17809 (cris_rtx_costs): Handle ZERO_EXTRACT.
17810 * config/cris/cris.md (tstdi, tst<mode>, cmpdi): Delete.
17811 (*tstdi_non_v32): Fold in *cmpdi_non_v32.
17812 (*tstdi_v32): Delete.
17813 (*cmpdi_non_v32): Add M alternative for operand 1.
17814 (cmpsi, cmp<mode>): Make private.
17815 (*tstsi, *tst<mode>_cmp, *tst<mode>_non_cmp, *btst): Wrap LHS
17816 with COMPARE.
17817 (cbranch<mode>4, cbranchdi4, cstore<mode>4): New.
17818
17819 * config/crx/crx.md (cstore<mode>4, cbranchcc4): New.
17820 (cmp<mode>, bCOND_internal, b<code>, s<code>): Delete.
17821 (cbranch<mode>4, sCOND_internal): Use ordered_comparison_operator.
17822 (cc_reg_operand): New.
17823 (any_cond): Delete.
17824 * config/crx/crx.c (crx_compare_op0, crx_compare_op1,
17825 crx_expand_compare, crx_expand_branch, crx_expand_scond): Delete.
17826 * config/crx/crx.h (crx_compare_op0, crx_compare_op1): Delete.
17827 * config/crx/crx-protos.h (crx_expand_compare, crx_expand_branch,
17828 crx_expand_scond): Delete.
17829
17830 * config/fr30/fr30.md (cmp<mode>, bCC): Delete.
17831 (cbranchsi4): New.
17832 * config/fr30/fr30.c (fr30_compare_op0, fr30_compare_op1): Delete
17833 * config/fr30/fr30.h (fr30_compare_op0, fr30_compare_op1): Delete.
17834
17835 * config/frv/frv.md (cbranchsi4, cbranchsf4, cbranchdf4,
17836 cstoresi4, cstoresf4, cstoredf4): New.
17837 (cmpdi, cmpsi, cmpsf, cmpdf, bCC, sCC): Remove.
17838 * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
17839 Receive the entire operands array.
17840 * config/frv/frv.h (frv_compare_op0, frv_compare_op1): Delete.
17841 * config/frv/frv.c (frv_compare_op0, frv_compare_op1): Delete.
17842 * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
17843 Get test/op0/op1 from the operands array.
17844 (frv_emit_cond_move): Get test/op0/op1 from the test_rtx.
17845
17846 * config/h8300/h8300-protos.h (h8300_expand_branch): Accept operands.
17847 (h8300_expand_store): New.
17848 * config/h8300/h8300.c (h8300_rtx_costs): Handle (compare FOO
17849 (const_int 0)).
17850 (h8300_expand_branch): Emit compare here. Adjust for new arguments.
17851 (h8300_expand_store): New.
17852 * config/h8300/h8300.md (btst combine patterns): Wrap with COMPARE
17853 or do not try to produce (set (cc0) REG).
17854 (peepholes): Wrap arguments with COMPARE. Add a peephole to
17855 change a compare into a move to a scratch register. Disable some
17856 peepholes when comparing with zero.
17857 (tstsi, tsthi, tstsi, cmpqi): Make private.
17858 (cmphi): Delete.
17859 (bCC, sCC): Delete.
17860 (cbranchqi4, cbranchhi4, cbranchsi4, cstoreqi4, cstorehi4,
17861 cstoresi4): New.
17862
17863 * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_int_addcc,
17864 ix86_expand_fp_movcc): Set ix86_compare_op0 and ix86_compare_op1.
17865 (ix86_emit_i387_log1p): Use gen_cbranchxf4.
17866 (ix86_emit_i387_log1p): Use cbranchxf2.
17867 (ix86_expand_setcc): Return void.
17868 * config/i386/i386-protos.h (ix86_expand_setcc): Return void.
17869 * config/i386/i386.md (cmpti, cmpdi, cmpsi, cmphi, cmpqi, cmpxf,
17870 cmp<MODEF>, cmpcc): Remove.
17871 (cbranchti4, cbranchdi4, cbranchsi4, cbranchhi4, cbranchqi4,
17872 cbranchxf4, cbranch<MODEF>4, cbranchcc4, cstoredi4, cstoresi4,
17873 cstorehi4, cstoreqi4, cstorexf4, cstore<MODEF>4, cstorecc): New.
17874 (sCC and bCC expanders): Remove.
17875 (stack_protect_test): Use cbranchcc4.
17876
17877 * config/ia64/ia64-protos.h (ia64_compare_op0, ia64_compare_op1):
17878 Delete.
17879 (ia64_expand_compare): Accept three rtx by reference and return void.
17880 * config/ia64/ia64.c (ia64_compare_op0, ia64_compare_op1): Delete.
17881 (ia64_expand_compare): Replace op0/op1 with *op0/*op1. Get code
17882 from *expr. Update *expr with the BImode comparison to do.
17883 * config/ia64/ia64.md (cmpbi, cmpsi, cmpdi, cmpsf, cmpdf, cmpxf,
17884 cmptf, bCC, sCC, conditional_trap): Delete.
17885 (cbranchbi4, cbranchsi4, cbranchdi4, cbranchsf4, cbranchdf4,
17886 cbranchxf4, cbranchtf4, cstorebi4, cstoresi4, cstoredi4, cstoresf4,
17887 cstoredf4, cstorexf4, cstoretf4, ctrapbi4, ctrapsi4, ctrapdi4,
17888 ctrapsf4, ctrapdf4, ctrapxf4, ctraptf4): New.
17889 * config/ia64/predicates.md (ia64_cbranch_operator): New.
17890
17891 * config/iq2000/iq2000-protos.h (gen_conditional_branch): Change
17892 type of last argument.
17893 * config/iq2000/iq2000.c (branch_cmp, branch_type): Remove.
17894 (gen_conditional_branch): Get code/cmp0/cmp1 from operands,
17895 use machine mode argument instead of branch_type. Remove dead
17896 code for floating-point comparisons.
17897 * config/iq2000/iq2000.h (branch_cmp, branch_type): Remove.
17898 * config/iq2000/iq2000.md (cmpsi, cmpdi, cmpsf, cmpdf, tstsi, bCC):
17899 Remove.
17900 (cbranchsi4, cstoresi4): New.
17901 * config/iq2000/predicates.md (reg_or_const_operand): New.
17902
17903 * config/m32c/m32c.md (cbranch splitter): Use match_op_dup.
17904 * config/m32c/m32c.md (any_cond, gl_cond): Delete.
17905 (b<code>_op): Rewrite to...
17906 (bcc_op): ... this, using match_operator.
17907 (s<code>_op): Rewrite to...
17908 (scc_op): ... this, using match_operator.
17909 (s<code>_24_op): Rewrite to...
17910 (scc_op_24): ... this, using match_operator.
17911 (s<code>_<mode>): Rewrite to...
17912 (cstore<mode>4): ... this, using match_operator.
17913 (s<code>_<mode>_24): Rewrite to...
17914 (cstore<mode>4_24): ... this, using match_operator.
17915 * config/m32c/m32c-protos.h (m32c_cmp_flg_0, m32c_pend_compare,
17916 m32c_unpend_compare, m32c_expand_scc): Delete.
17917 * config/m32c/m32c.c (compare_op0, compare_op1, m32c_cmp_flg_0,
17918 m32c_pend_compare, m32c_unpend_compare, m32c_expand_scc): Delete.
17919 (m32c_expand_movcc): Change NE to EQ if necessary.
17920 (m32c_init_libfuncs): Modify cstore optab instead of setcc_gen_code.
17921
17922 * config/m32r/m32r-protos.h (gen_cond_store): New.
17923 * config/m32r/m32r.c (m32r_compare_op0, m32r_compare_op1): Delete.
17924 (gen_cond_store): New, from sCC patterns.
17925 (m32r_expand_block_move): Use cbranchsi4.
17926 * config/m32r/m32r.h (m32r_compare_op0, m32r_compare_op1): Delete.
17927 * config/m32r/m32r.md (cmpsi, bCC, sCC): Delete.
17928 (cbranchsi4, cstoresi4): New.
17929
17930 * config/m68hc11/m68hc11.c (m68hc11_compare_op0, m68hc11_compare_op1):
17931 Delete.
17932 (m68hc11_rtx_costs_1, m68hc11_rtx_costs): Handle ZERO_EXTRACT.
17933 (m68hc11_notice_update_cc): Look into a compare with 0.
17934 * config/m68hc11/m68hc11.h (m68hc11_compare_op0, m68hc11_compare_op1):
17935 Delete.
17936 * config/m68hc11/m68hc11.md (tstsi, tsthi, tstqi, cmpsi,
17937 cmphi, cmpqi, bCC): Delete.
17938 (cbranchsi4, cbranchhi4, cbranchqi4): New.
17939 (tstqi_1, tstqi_z_used, tstqi_1, bitcmpqi, bitcmpqi_z_used,
17940 bitcmpqi_12, bitcmphi, various splits and peephole2s): Wrap cc0<-reg
17941 sets with COMPARE.
17942
17943 * config/m68k/predicates.md (m68k_cstore_comparison_operator,
17944 const0_operand, const1_operand, m68k_subword_comparison_operand): New.
17945 * config/m68k/constraints.md (H): New.
17946 * config/m68k/m68k.md (tstdi): Remove define_expand, use name for
17947 the define_insn below.
17948 (tstsi, tsthi, tst<FP:mode>, cmphi, cmpqi, cmp<FP:mode>): Delete.
17949 (*tstsi_internal_68020_cf, *tstsi_internal, *tsthi_internal,
17950 *tstqi_internal, tst<mode>_6881, tst<mode>_cf, many unnamed
17951 patterns): Wrap RHS with COMPARE.
17952 (tst<FP>_68881, tst<FP>_cf): Use const0_operand.
17953 (*cmpdi_internal): Name this pattern.
17954 (cmpdi): Change to define_insn.
17955 (cbranchdi4, cstoredi4, cbranchsi4, cstoresi4, cbranchhi4, cstorehi4,
17956 cbranchqi4, cstoreqi4, cbranch<FP:mode>4, cstore<FP:mode>4): New.
17957 (scc0_di, scc0_di_5200, scc_di): Use the ordered_comparison_operator
17958 predicate.
17959 (seq, sne, sgt, sgtu, slt, sltu, sge, sgeu, sle, sleu, sordered,
17960 sunordered, suneq, sunge, sungt, sunle, sunlt, sltgt): Delete
17961 (conditional_trap): Change to...
17962 (ctrapdi4, ctrapsi4, ctraphi4, ctrapqi4): ... these.
17963 (*conditional_trap): Use the ordered_comparison_operator and
17964 const1_operand predicates.
17965 * config/m68k/m68k.c (m68k_last_compare_had_fp_operands): Delete.
17966 (m68k_expand_prologue): Use ctrapsi4 instead of cmpsi+conditional_trap.
17967 (m68k_rtx_costs): Look for ZERO_EXTRACT in a COMPARE.
17968 * config/m68k/m68k.h (m68k_last_compare_had_fp_operands): Delete.
17969
17970 * config/mcore/mcore-protos.h (arch_compare_op0, arch_compare_op1,
17971 mcore_modify_comparison, mcore_gen_compare_reg): Remove.
17972 (mcore_gen_compare): New.
17973 * config/mcore/mcore.c (arch_compare_op0, arch_compare_op1): Delete.
17974 (mcore_modify_comparison, mcore_gen_compare_reg): Fold into...
17975 (mcore_gen_compare): ... this.
17976 * config/mcore/mcore.md (cmpsi, bCC, sCC): Remove.
17977 (cbranchsi4, cstoresi4): New, using mcore_gen_compare.
17978 (stack probe pattern): Use cbranchsi4.
17979
17980 * config/mips/predicates.md (mips_cstore_operator): New.
17981 * config/mips/mips-ps-3d.md (movv2sfcc): Do not use cmp_operands.
17982 * config/mips/mips.md (any_cond): Delete.
17983 (conditional_trap): Rename to ctrap<GPR:mode>4. Adjust predicates,
17984 always succeed.
17985 (fixuns_truncdfsi2, fixuns_truncdfdi2, fixuns_truncsfsi2,
17986 fixuns_truncsfdi2): Use cbranch patterns.
17987 (cmp<GPR:mode>, cmp<SCALARF:mode>): Delete.
17988 (b<code>): Change to cbranch<GPR:mode>4 and cbranch<SCALARF:mode>4.
17989 Adjust call to mips_expand_conditional_branch.
17990 (seq, sne, slt<u>, sle<u>, sgt<u>, sge<u>): Change to
17991 cstore<GPR:mode>4.
17992 * config/mips/mips-protos.h (mips_expand_conditional_branch,
17993 mips_expand_scc, mips_expand_conditional_trap): Adjust prototypes.
17994 * config/mips/mips.c (cmp_operands): Delete.
17995 (mips_emit_compare): Get comparison operands from *op0/*op1.
17996 (mips_expand_scc): Get code/op0/op1/target from operands. Assert
17997 that it succeeds. Use op0/op1 instead of cmp_operands.
17998 (mips_expand_conditional_branch, mips_expand_conditional_move,
17999 mips_expand_conditional_trap): Likewise.
18000 (mips_block_move_loop): Use cbranch patterns.
18001 * config/mips/mips.h (cmp_operands): Delete.
18002
18003 * config/mmix/mmix.c (mmix_valid_comparison): Delete.
18004 (mmix_gen_compare_reg): Just return a register in the right CC mode.
18005 * config/mmix/mmix.h (mmix_compare_op0, mmix_compare_op1): New.
18006 * config/mmix/mmix.md (cmpdi, cmpdf): Remove.
18007 (*cmpcc_folded): Rename to...
18008 (*cmpdi_folded): this.
18009 (*cmpcc): Rename to...
18010 (*cmps): ... this.
18011 (movdfcc, movdicc): Adjust for new semantics of mmix_gen_compare_reg.
18012 (bCC): Remove.
18013 (cbranchdi4): New.
18014 (cbranchdf4): New. Handle invalid comparisons here.
18015 * config/mmix/predicates.md (float_comparison_operator): New.
18016
18017 * config/mn10300/mn10300.c (mn10300_rtx_costs): Consider 0 and
18018 zero_extract to be cheap in (compare (zero_extract) (const_int 0).
18019 * config/mn10300/mn10300.md (tst): Delete.
18020 (*tst_extqisi_am33, *tst_extqisi, *tst_exthisi_am33, *tst_exthisi):
18021 Name these patterns and wrap RHS in a compare.
18022 (*cmpsi): Make this pattern private. Include tst.
18023 (*cmpsf): Make this pattern private.
18024 (and and zero_extract cc0 set): Wrap RHS in a COMPARE.
18025 (compare with zero peepholes): Likewise.
18026 (bCC): Remove.
18027 (cbranchsi4, cbranchsf4): New.
18028 (casesi): Use cbranchsi4.
18029
18030 * config/pa/pa.c (hppa_compare_op0, hppa_compare_op1,
18031 hppa_branch_type): Delete.
18032 (return_addr_rtx): Use cbranchsi4.
18033 (emit_bcond_fp): Accept all operands. Replace CODE with NE.
18034 Emit CCFPmode comparison here.
18035 (gen_cmp_fp): Delete, now part of emit_bcond_fp.
18036 * config/pa/pa.h (enum cmp_type, hppa_compare_op0, hppa_compare_op1,
18037 hppa_branch_type): Delete.
18038 * config/pa/pa.md (cmpdi, cmpsi, cmpsf, cmpdf, sCC, bCC): Delete.
18039 (movsicc, movdicc): Remove references to hppa_compare_op0,
18040 hppa_compare_op1 and compare_from_rtx.
18041 (cbranchdi4, cbranchsi4, cbranchsf4, cbranchdf4, cstoresi4): New.
18042 (casesi): Use cbranchsi4.
18043
18044 * config/pdp11/pdp11-protos.h (output_jump): Change prototype.
18045 * config/pdp11/pdp11.c (output_jump): Embed opcodes here.
18046 * config/pdp11/pdp11.md (register_or_const0_operand): New.
18047 (cmpdf, cmphi, cmpqi): Make private. Add tst alternatives.
18048 (cmpsi, tstsi, tstdf, tsthi, tstqi): Delete.
18049 (bCC): Delete.
18050 (cbranchdf4, cbranchhi4, cbranchqi4): New.
18051 (*branch, *branch_inverted): New.
18052
18053 * config/picochip/picochip.md (cbranchhi4): Use
18054 ordered_comparison_operator.
18055 (cmphi, bCC): Remove.
18056
18057 * config/rs6000/predicates.md (rs6000_cbranch_operator): New.
18058 (trap_comparison_operator): Delete.
18059 * config/rs6000/rs6000-protos.h (rs6000_emit_sCOND,
18060 rs6000_emit_cbranch): Accept mode and operands.
18061 * config/rs6000/rs6000.c (rs6000_compare_op0, rs6000_compare_op1,
18062 rs6000_compare_fp_p): Delete.
18063 (rs6000_generate_compare): Accept mode and comparison. Extract code
18064 and op0/op1 from there. Replace references to rs6000_compare_op0
18065 and rs6000_compare_op1.
18066 (rs6000_emit_sCOND): Adjust call to rs6000_generate_compare and
18067 extract result from passed operands.
18068 (rs6000_emit_cbranch): Adjust call to rs6000_generate_compare and
18069 extract loc from passed operands.
18070 (rs6000_emit_cmove): Likewise.
18071 * config/rs6000/rs6000.h (rs6000_compare_op0, rs6000_compare_op1,
18072 rs6000_compare_fp_p): Delete.
18073 * config/rs6000/rs6000.md (cmp<GPR>, cmp<FP>, bCC, sCC): Delete.
18074 (cbranch<GPR>4, cbranch<FP>4): New.
18075 (cstore<mode>4): New. Consolidate here all choices about when to use
18076 portable or specialized sCC sequences.
18077 (stack_protect_test): Use cbranchsi4.
18078 (conditional_trap): Replace with ctrap<GPR>4.
18079 (conditional trap insn): Replace trap_comparison_operator with
18080 ordered_comparison_operator.
18081
18082 * config/s390/s390.c (s390_compare_op0, s390_compare_op1): Delete.
18083 (s390_emit_prologue): Use ctrap.
18084 * config/s390/s390.h (s390_compare_op0, s390_compare_op1): Delete.
18085 * config/s390/predicates.md (s390_eqne_operator, s390_scond_operator):
18086 New predicates replacing...
18087 * config/s390/s390.md (COMPARE, SCOND): ... these iterators.
18088 (cmp<GPR>, cmp<FP>, cmpcc): Delete.
18089 (trunc patterns): Use emit_cmp_and_jump_insns instead of cmp/branch.
18090 (add<mode>cc): Do not use s390_compare_op0/op1.
18091 (s<code>): Change to...
18092 (cstore<mode>4): ... this. Do not use s390_compare_op0/op1.
18093 (seq): Change to...
18094 (cstorecc4): ... this. Handle EQ or NE equally.
18095 (*sne): Un-privatize for use in cstorecc4.
18096 (b<code>): Change to...
18097 (cbranch<GPR>4, cbranch<FP>4, cbranchcc4): ... these.
18098 (conditional_trap): Replace with...
18099 (ctrap<GPR>4, ctrap<FP>4): ... these.
18100 (stack_protect): Use cbranchcc4.
18101
18102 * config/score/score-conv.h (cmp_op0, cmp_op1): Delete.
18103 * config/score/score-protos.h (score_gen_cmp): Delete.
18104 * config/score/score.c (cmp_op0, cmp_op1, score_gen_cmp): Delete.
18105 (score_block_move-loop): Use cbranchsi4.
18106 * config/score/score.md (cbranchsi4): New.
18107 (cmpsi, bCC): Delete.
18108 * config/score/score3.c (cmp_op0, cmp_op1, score3_gen_cmp): Delete.
18109 (score3_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
18110 * config/score/score7.c (cmp_op0, cmp_op1, score7_gen_cmp): Delete.
18111 (score7_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
18112 * config/score/score3.h (score3_gen_cmp): Delete.
18113 * config/score/score7.h (score7_gen_cmp): Delete.
18114
18115 * config/sh/sh-protos.h (prepare_scc_operands): Rename to...
18116 (sh_emit_scc_to_t): ... this. Return void.
18117 (from_compare): Rename to...
18118 (sh_emit_compare_and_branch): ... this.
18119 (sh_emit_compare_and_set): New.
18120 (sh_expand_t_scc): Accept operands.
18121 * config/sh/predicates.md (sh_float_comparison_operator): New.
18122 * config/sh/sh.c (sh_compare_op0, sh_compare_op1): Delete.
18123 (prepare_scc_operands): Rename to...
18124 (sh_emit_scc_to_t): ... this. Return void. Get op0/op1 from
18125 arguments.
18126 (sh_emit_cheap_store_flag): New.
18127 (sh_emit_set_t_insn): New.
18128 (from_compare): Rename to...
18129 (sh_emit_compare_and_branch): ... this. Accept mode. Rewrite
18130 handling of TARGET_SH2E floating point to avoid recursive call.
18131 Generate branch here.
18132 (sh_emit_compare_and_set): New.
18133 (sh_expand_t_scc): Get op0/op1 from arguments.
18134 (sh_emit_cheap_store_flag): New.
18135 * config/sh/sh.md (cbranchdi4, cbranchsi4): Include -mno-cbranchdi
18136 cases.
18137 (cbranchdi4_i): Use an "I08" constraint instead of an "i" constraint.
18138 (cmpsi, cmpdi, cmpsf, cmpdf): Delete.
18139 (movsicc, movdicc): Do nothing when it recreated operands from
18140 sh_compare_*. Use sh_emit_cheap_store_flag. Adjust call to
18141 prepare_scc_operands (now sh_emit_scc_to_t).
18142 (udivdi3): Use cstoresi4.
18143 (beq_media, bne_media, bge_media, bgtu_media, bgeu_media, beq,
18144 bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu, bunordered): Delete.
18145 (cbranchint4_media, cbranchfp4_media): New.
18146 (casesi): Use cbranchdi4.
18147 (seq, slt, sle, sgt, sge, sgtu, sltu, sgeu, sne, sleu, sunordered):
18148 Delete.
18149 (cstore4_media, cstoresi4, cstoredi4, cstoresf4, cstoredf4): New.
18150 (movnegt): Remove second operand.
18151 (cbranchsf4, cbranchdf4): New.
18152 (stack_protect): Use cbranchdi4/cbranchsi4.
18153
18154 * config/sparc/sparc.c (sparc_compare_op0, sparc_compare_op1): Delete.
18155 (gen_compare_reg): Accept comparison, extract part of it to...
18156 (gen_compare_reg_1): ... this.
18157 (gen_compare_operator): Delete.
18158 (gen_v9_scc): Accept separate destination, comparison code and arms.
18159 Do not use sparc_compare_op0/sparc_compare_op1.
18160 (emit_scc_insn, emit_conditional_branch_insn): New.
18161 (emit_v9_brxx): Make static. Remove useless assertion.
18162 (sparc_emit_float_lib_cmp): Return RTL instead of calling
18163 emit_cmp_insn.
18164 (sparc_expand_compare_and_swap_12): Use gen_compare_reg_1+cbranchcc4.
18165 * config/sparc/sparc-protos.h (gen_compare_reg,
18166 sparc_emit_float_lib_cmp): Adjust prototype.
18167 (emit_scc_insn, emit_conditional_branch_insn): New.
18168 (gen_v9_scc, emit_v9_brxx_insn, gen_compare_operator): Delete.
18169 * config/sparc/sparc.h (sparc_compare_op0, sparc_compare_op1): Delete.
18170 * config/sparc/sparc.md (P, I, F, V32, V32I, V64, V64I): Move all
18171 iterators to the top.
18172 (cmpsi, cmpdi, cmpsf, cmpdf, cmptf, seqsi_special_extend,
18173 snesi_special_extend, sCC, bCC, seqdi_special_trunc,
18174 snedi_special_trunc): Delete.
18175 (seqdi_special, snedi_special): Use expansion of seqdi_special_trunc
18176 and snedi_special_trunc.
18177 (cstoresi4, cstoredi4, cstore<F:mode>4, cbranchcc4, cbranchsi4,
18178 cbranchdi4, cbranch<F:mode>4): New.
18179 (mov<I:mode>cc, mov<F:mode>cc): Handle sparc_emit_float_lib_cmp
18180 here. Use gen_compare_reg instead of gen_compare_operator.
18181 (conditional_trap): Replace with...
18182 (ctrapsi4, ctrapdi4): ... this.
18183 (stack_protect_test): Use cbranchcc4.
18184
18185 * config/spu/spu-protos.h (spu_emit_branch_or_set): Change second
18186 argument to rtx.
18187 * config/spu/spu.c (spu_compare_op0, spu_compare_op1): Remove.
18188 (spu_emit_branch_or_set): Get code/op0/op1 from second argument.
18189 Change spu_compare_op0/op1 to op0/op1 throughout. Get target
18190 from operands[0] or operands[3] depending on is_set.
18191 * config/spu/spu.h (spu_compare_op0, spu_compare_op1): Remove.
18192 * config/spu/spu.md (cmp<mode:VQHSI>, cmp<mode:DTI>, cmp<mode:VSF>,
18193 cmpdf, bCC), sCC: Remove.
18194 (cbranch<mode:VQHSI>4, cbranch<mode:DTI>, cbranch<mode:VSF>4,
18195 cbranchdf4, cstore<mode:VQHSI>4, cstore<mode:DTI>, cstore<mode:VSF>4,
18196 cstoredf4): New.
18197 (mov<mode>cc): Accept ordered_comparison_operator, adjust call to
18198 spu_emit_branch_or_set.
18199
18200 * config/stormy16/stormy16-protos.h (xstormy16_emit_cbranch):
18201 Add two arguments.
18202 * config/stormy16/stormy16.h (xstormy16_compare_op0,
18203 xstormy16_compare_op1): Delete.
18204 * config/stormy16/stormy16.c (xstormy16_compare_op0,
18205 xstormy16_compare_op1): Delete.
18206 (xstormy16_emit_cbranch): Get op0/op1 from the new arguments.
18207 Adjust calls.
18208 * config/stormy16/stormy16.md (cbranchsi4, cbranchhi4): New.
18209 (cmphi, cmpsi, bCC): Remove.
18210
18211 * config/v850/v850.md (tstsi, cmpsi): Fold into...
18212 (*cmpsi): ... this one.
18213 (cbranchsi4, cstoresi4): New.
18214 (bCC expanders): Delete.
18215 (sCC insns): Fold into...
18216 (*setcc): ... this one.
18217 (casesi): Do not use gen_cmpsi and gen_bgtu.
18218 (various splits): Wrap "naked" RHS of a cc0 set with COMPARE.
18219 (movsicc): Simplify.
18220 * config/v850/v850.c (v850_rtx_costs): Handle ZERO_EXTRACT in COMPARE.
18221
18222 * config/vax/vax-protos.h (cond_name): New.
18223 (vax_output_conditional_branch): Remove.
18224 * config/vax/vax.c (cond_name): New.
18225 (vax_output_conditional_branch): Remove.
18226 * config/vax/vax.h (PRINT_OPERAND): Dispatch %c to cond_name.
18227 * config/vax/vax.md (tst<VAXint>, tst<VAXfp>): Remove.
18228 (cmp<VAXint>, cmp<VAXfp>): Privatize. Add constraints for tst.
18229 (bit<VAXint>): Wrap source with (compare).
18230 (b<code> and following unnamed pattern): Rename to *branch and
18231 *branch_reversed. Change macroization to match_operator.
18232 (cbranch<VAXint>4, cbranch<VAXfp>4): New.
18233
18234 * config/xtensa/predicates.md (xtensa_cstoresi_operator): New.
18235 * config/xtensa/xtensa-protos.h (xtensa_expand_conditional_branch):
18236 Change last argument to machine_mode.
18237 (xtensa_expand_scc): Add machine_mode argument.
18238 * config/xtensa/xtensa.c (branch_cmp, branch_type): Remove.
18239 (gen_conditional_move, xtensa_expand_conditional_branch,
18240 xtensa_expand_scc, xtensa_expand_conditional_move): Use mode
18241 instead of branch_type, fetch cmp0/cmp1/test_code from operands[].
18242 Adjust operand numbers.
18243 * config/xtensa/xtensa.h (enum cmp_type, branch_cmp, branch_type):
18244 Delete.
18245 * config/xtensa/xtensa.md (any_cond, any_scc): Delete.
18246 (cmpsi, cmpsf, b<code>, s<code>): Delete.
18247 (cbranchsi4, cbranchsf4, cstoresi4, cstoresf4): New.
18248
18249 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
18250
18251 * optabs.c (prepare_cmp_insn): Temporarily disable test that
18252 causes spurious differences between trunk and cond-optab branch.
18253
18254 2009-05-12 Alexandre Oliva <aoliva@redhat.com>
18255
18256 PR target/37137
18257 * doc/install.texi (STAGE1_TFLAGS, BUILD_CONFIG): Document.
18258
18259 2009-05-12 Alexandre Oliva <aoliva@redhat.com>
18260
18261 * tree.c (iterative_hash_pointer): Delete.
18262 (iterative_hash_expr): Short-circuit handling of NULL pointer.
18263 Hash UIDs and versions of SSA names. Don't special-case built-in
18264 function declarations.
18265
18266 2009-05-11 Ian Lance Taylor <iant@google.com>
18267
18268 PR bootstrap/40103
18269 * graphite.c: Force -Wc++-compat to only be a warning before
18270 #including "cloog/cloog.h".
18271
18272 2009-05-11 Martin Jambor <mjambor@suse.cz>
18273
18274 * ipa-cp.c (ipcp_cloning_candidate_p): Add missing return false.
18275
18276 2009-05-11 Jan Hubicka <jh@suse.cz>
18277
18278 * tree-ssa-loop-ivcanon.c: Include target.h
18279 (struct loop_size): new structure.
18280 (constant_after_peeling): New predicate.
18281 (tree_estimate_loop_size): New function.
18282 (estimated_unrolled_size): Rewrite for new estimates.
18283 (try_unroll_loop_completely): Use new estimates.
18284 * Makefile.in (tree-ssa-loop-ivcanon.o): Add dependenc on target.h
18285
18286 2009-05-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
18287
18288 * config/spu/spu-c.c (spu_categorize_keyword): Update for recent
18289 libcpp interface change.
18290 (spu_macro_to_expand): Likewise.
18291
18292 2009-05-11 Paolo Bonzini <bonzini@gnu.org>
18293
18294 PR tree-optimization/40026
18295 * gimplify.c (gimplify_init_constructor): Change initial conditional
18296 to assertion. Rewrite TREE_OPERAND (*expr_p, 1) after
18297 optimize_compound_literals_in_ctor.
18298
18299 2009-05-11 Nathan Sidwell <nathan@codesourcery.com>
18300
18301 * config/m68k/m68k-devices.def (52274, 52277, 5301x, 5225x, 51xx):
18302 New devices.
18303 * doc/invoke.texi (M680x0 Options): Document new coldfire cpus.
18304
18305 2009-05-11 H.J. Lu <hongjiu.lu@intel.com>
18306
18307 * tree-vect-data-refs.c (vect_analyze_group_access): Use
18308 HOST_WIDE_INT for gap.
18309
18310 2009-05-11 Ira Rosen <irar@il.ibm.com>
18311
18312 PR tree-optimization/40074
18313 * tree-vect-data-refs.c (vect_analyze_group_access): Take gaps into
18314 account in group size and step comparison.
18315
18316 2009-05-11 Richard Guenther <rguenther@suse.de>
18317
18318 * passes.c (init_optimization_passes): Strip now incorrect comment.
18319 (execute_function_todo): Do not set PROP_alias.
18320 * tree-pass.h (PROP_alias): Remove.
18321 * tree-ssa-structalias.c (pass_build_alias): Do not provide PROP_alias.
18322 * tree-if-conv.c (pass_if_conversion): Do not require PROP_alias.
18323 * tree-nrv.c (pass_return_slot): Likewise.
18324 * tree-object-size.c (pass_object_sizes): Likewise.
18325 * tree-ssa-dom.c (pass_dominator): Likewise.
18326 (pass_phi_only_cprop): Likewise.
18327 * tree-ssa-dse.c (pass_dse): Likewise.
18328 * tree-ssa-phiopt.c (pass_phiopt): Likewise.
18329 (pass_cselim): Likewise.
18330 * tree-ssa-pre.c (pass_pre): Likewise.
18331 (pass_fre): Likewise.
18332 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
18333 * tree-ssa-sink.c (pass_sink_code): Likewise.
18334 * tree-stdarg.c (pass_stdarg): Likewise.
18335 * tree-tailcall.c (pass_tail_calls): Likewise.
18336 * tree-vrp.c (pass_vrp): Likewise.
18337
18338 2009-05-10 Ian Lance Taylor <iant@google.com>
18339
18340 * basic-block.h (enum profile_status): Break out of struct
18341 control_flow_graph.
18342 * cgraph.h (struct inline_summary): Break out of struct
18343 cgraph_local_info.
18344 * cgraphunit.c (enum cgraph_order_sort_kind): New enum, broken out
18345 of struct cgraph_order_sort.
18346 * combine.c (enum undo_kind): New enum, broken out of struct undo.
18347 * cse.c (struct branch_path): Break out of struct
18348 cse_basic_block_data.
18349 * except.h (enum eh_region_type): Break out of struct eh_region.
18350 * gcc.c (enum add_del): Break out of struct modify_target.
18351 * genrecog.c (enum decision_type): Break out of struct decision_test.
18352 * ggc-page.c (struct ggc_pch_ondisk): Break out of struct
18353 ggc_pch_data.
18354 * matrix-reorg.c (struct free_info): Break out of struct matrix_info.
18355 * regmove.c (enum match_use): New enum, broken out of struct match.
18356 * sched-int.h (enum post_call_group): New enum, broken out of
18357 struct deps.
18358 (struct deps_reg): Break out of struct deps.
18359 * target.h (struct asm_int_op): Break out of struct gcc_target.
18360 * tree-eh.c (struct goto_queue_node): Break out of struct
18361 leh_tf_state.
18362 * tree-inline.h (enum copy_body_cge_which): Break out of
18363 copy_body_data.
18364 * tree-pass.h (enum opt_pass_type): Break out of struct opt_pass.
18365
18366 * c-decl.c (in_struct, struct_types): New static variables.
18367 (pushtag): Add loc parameter. Change all callers.
18368 (lookup_tag): Add ploc parameter. Change all callers.
18369 (check_compound_literal_type): New function.
18370 (parser_xref_tag): Add loc parameter. Change all callers. If
18371 -Wc++-compat, warn about struct/union/enum types defined within a
18372 struct or union.
18373 (start_struct): Add enclosing_in_struct, enclosing_struct_types,
18374 and loc parameters. Change all callers. Change error calls to
18375 error_at, using loc. For a redefinition, if the location of the
18376 original definition is known, report it. Set in_struct and
18377 struct_types. If -Wc++-compat warn if in sizeof, typeof, or alignof.
18378 (finish_struct): Add new parameters enclosing_in_struct and
18379 enclosing_struct_types. Change all callers. Set
18380 C_TYPE_DEFINED_IN_STRUCT for all struct/union/enum types defined
18381 in the struct. If in a struct, add this struct to struct_types.
18382 (start_enum): Add loc parameter. Change all callers. Use
18383 error_at for errors, using loc. For a redefinition, if the
18384 location of the original definition is known, report it. If in a
18385 struct, add this enum type to struct_types. If -Wc++-compat warn
18386 if in sizeof, typeof, or alignof.
18387 * c-parser.c (disable_extension_diagnostics): Disable -Wc++-compat.
18388 (enable_extension_diagnostics): Reenable -Wc++-compat if appropriate.
18389 (c_parser_enum_specifier): Get enum location for start_enum.
18390 (c_parser_struct_or_union_specifier): Get struct location for
18391 start_struct. Save in_struct and struct_types status between
18392 start_struct and finish_struct.
18393 (c_parser_cast_expression): Get location of cast.
18394 (c_parser_alignof_expression): Get location of type.
18395 (c_parser_postfix_expression): Likewise.
18396 (c_parser_postfix_expression_after_paren_type): Add type_loc
18397 parameter. Change all callers. Call check_compound_literal_type.
18398 Use type_loc for error about variable size type.
18399 * c-typeck.c (build_external_ref): If -Wc++-compat, warn about a use
18400 of an enum constant from an enum type defined in a struct or union.
18401 (c_cast_expr): Add loc parameter. Change all callers. If
18402 -Wc++-compat, warn about defining a type in a cast.
18403 * c-tree.h (C_TYPE_DEFINED_IN_STRUCT): Define.
18404 (start_enum, start_struct, finish_struct): Update declarations.
18405 (parser_xref_tag, c_cast_expr): Update declarations.
18406 (check_compound_literal_type): Declare.
18407
18408 2009-05-11 Ben Elliston <bje@au.ibm.com>
18409
18410 * config/rs6000/rs6000-c.c (altivec_categorize_keyword): Update
18411 for recent libcpp interface change.
18412 (rs6000_macro_to_expand): Likewise.
18413
18414 2009-05-10 Michael Matz <matz@suse.de>
18415
18416 PR target/40031
18417 * config/arm/arm.c (require_pic_register): Emit on entry edge,
18418 not at entry of function.
18419
18420 2009-05-10 Richard Guenther <rguenther@suse.de>
18421
18422 PR tree-optimization/40081
18423 Revert
18424 * tree-sra.c (instantiate_element): Instantiate scalar replacements
18425 using the main variant of the element type. Do not fiddle with
18426 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
18427
18428 * tree-sra.c (sra_type_can_be_decomposed_p): Do not decompose
18429 structs with volatile fields.
18430
18431 2009-05-10 Jan Hubicka <jh@suse.cz>
18432
18433 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Declare.
18434 (estimate_move_cost): Assert that it does not get called for
18435 VOID_TYPE_P.
18436 (estimate_num_insns): Skip VOID types in argument handling.
18437 (optimize_inline_calls): Delete unreachable blocks and verify that
18438 callgraph is valid.
18439
18440 2009-05-10 Jan Hubicka <jh@suse.cz>
18441
18442 * cgraphbuild.c (record_reference): Use cgraph_mark_address_taken_node.
18443 * cgraph.c (cgraph_mark_address_taken_node): New function.
18444 (dump_cgraph_node): Dump new flag.
18445 * cgraph.h (struct cgraph_node): Add address_taken.
18446 (cgraph_mark_address_taken_node): New function.
18447 * ipa.c (cgraph_postorder): Prioritize functions with address taken
18448 since new direct calls can be born.
18449
18450 2009-05-10 Joseph Myers <joseph@codesourcery.com>
18451
18452 * c-lex.c (c_lex_with_flags): Expect cpp_hashnode in
18453 tok->val.node.node.
18454
18455 2009-05-10 Jan Hubicka <jh@suse.cz>
18456
18457 PR middle-end/40084
18458 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Take old_call
18459 argument; rewrite.
18460 (cgraph_update_edges_for_call_stmt): Take old_decl argument.
18461 * cgraph.h (cgraph_update_edges_for_call_stmt): Update prototype.
18462 * tree-inline.c (copy_bb): Set frequency correctly.
18463 (fold_marked_statements): Update call to
18464 cgraph_update_edges_for_call_stmt.
18465
18466 2009-05-10 Joseph Myers <joseph@codesourcery.com>
18467
18468 * config/arc/arc.c (arc_handle_interrupt_attribute): Use %qE for
18469 identifiers in diagnostics.
18470 * config/arm/arm.c (arm_handle_fndecl_attribute,
18471 arm_handle_isr_attribute): Likewise.
18472 * config/avr/avr.c (avr_handle_progmem_attribute,
18473 avr_handle_fndecl_attribute, avr_handle_fntype_attribute): Likewise.
18474 * config/bfin/bfin.c (handle_int_attribute,
18475 bfin_handle_longcall_attribute, bfin_handle_l1_text_attribute,
18476 bfin_handle_l1_data_attribute, bfin_handle_longcall_attribute,
18477 bfin_handle_l1_text_attribute, bfin_handle_l1_data_attribute):
18478 Likewise.
18479 * config/darwin.c (darwin_handle_kext_attribute,
18480 darwin_handle_weak_import_attribute): Likewise.
18481 * config/h8300/h8300.c (h8300_handle_fndecl_attribute,
18482 h8300_handle_eightbit_data_attribute,
18483 h8300_handle_tiny_data_attribute): Likewise.
18484 * config/i386/i386.c (ix86_handle_cconv_attribute,
18485 ix86_handle_abi_attribute, ix86_handle_struct_attribute): Likewise.
18486 * config/i386/winnt.c (ix86_handle_shared_attribute,
18487 ix86_handle_selectany_attribute): Likewise.
18488 * config/ia64/ia64.c (ia64_handle_model_attribute): Likewise.
18489 * config/m32c/m32c.c (function_vector_handler): Likewise.
18490 * config/m68hc11/m68hc11.c (m68hc11_handle_page0_attribute,
18491 m68hc11_handle_fntype_attribute): Likewise.
18492 * config/m68k/m68k.c (m68k_handle_fndecl_attribute): Likewise.
18493 * config/mcore/mcore.c (mcore_handle_naked_attribute): Likewise.
18494 * config/mips/mips.c (mips_insert_attributes,
18495 mips_merge_decl_attributes, mips_expand_builtin): Likewise.
18496 * config/rs6000/rs6000.c (rs6000_handle_longcall_attribute,
18497 rs6000_handle_struct_attribute): Likewise.
18498 * config/sh/sh.c (sh_insert_attributes,
18499 sh_handle_resbank_handler_attribute,
18500 sh_handle_interrupt_handler_attribute,
18501 sh2a_handle_function_vector_handler_attribute,
18502 sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
18503 Likewise.
18504 * config/sh/symbian.c (sh_symbian_mark_dllimport): Likewise.
18505 * config/spu/spu.c (spu_handle_fndecl_attribute,
18506 spu_handle_vector_attribute): Likewise.
18507 * config/stormy16/stormy16.c
18508 (xstormy16_handle_interrupt_attribute): Likewise.
18509 * config/v850/v850-c.c (ghs_pragma_section): Likewise.
18510 * config/v850/v850.c (v850_handle_interrupt_attribute): Likewise.
18511
18512 2009-05-10 Joseph Myers <joseph@codesourcery.com>
18513
18514 * pretty-print.h (struct pretty_print_info): Add translate_identifiers.
18515 (pp_translate_identifiers): New.
18516 (pp_identifier): Only conditionally translate identifier to locale
18517 character set.
18518 * pretty-print.c (pp_construct): Set pp_translate_identifiers.
18519 (pp_base_tree_identifier): Only conditionally translate identifier
18520 to locale character set.
18521 * c-pretty-print.c (M_): Define.
18522 (pp_c_type_specifier, pp_c_primary_expression): Mark English
18523 fragments for conditional translation with M_.
18524 * tree-pretty-print.c (maybe_init_pretty_print): Disable
18525 identifier translation.
18526
18527 2009-05-10 Richard Guenther <rguenther@suse.de>
18528
18529 PR tree-optimization/40081
18530 * tree-sra.c (instantiate_element): Instantiate scalar replacements
18531 using the main variant of the element type. Do not fiddle with
18532 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
18533
18534 2009-05-09 Jan Hubicka <jh@suse.cz>
18535
18536 PR middle-end/40080
18537 * cgraphunit.c (cgraph_materialize_all_clones): Do not redirect
18538 indirect calls; verify cgraph afterwards.
18539
18540 2009-05-09 Jan Hubicka <jh@suse.cz>
18541
18542 PR bootstrap/40082
18543 * ipa.c (update_inlined_to_pointer): New function.
18544 (cgraph_remove_unreachable_nodes): Use it.
18545
18546 2009-05-09 Jan Hubicka <jh@suse.cz>
18547
18548 * tree-eh.c (struct leh_state): Remove prev_try.
18549 (lower_try_finally, lower_catch, lower_eh_filter, lower_cleanup): Do
18550 not track prev_try.
18551 * except.c (gen_eh_region_cleanup, duplicate_eh_regions,
18552 copy_eh_region_1, copy_eh_region, redirect_eh_edge_to_label,
18553 remove_eh_handler_and_replace, foreach_reachable_handler,
18554 verify_eh_region, verify_eh_tree): Remove tracking of prev_try pointer.
18555 * except.h (struct eh_region): Remove eh_region_u_cleanup.
18556 (gen_eh_region_cleanup): Update prototype.
18557
18558 2009-05-09 Jan Hubicka <jh@suse.cz>
18559
18560 PR middle-end/40043
18561 * except.c (copy_eh_region): Always set prev_try.
18562 (redirect_eh_edge_to_label): Find outer try.
18563 (foreach_reachable_handler): When looking for prev try
18564 handle case where previous try is not going to be taken.
18565
18566 2009-05-07 Michael Meissner <meissner@linux.vnet.ibm.com>
18567
18568 PR tree-optimization/40049
18569 * tree-vect-stmts.c (vectorizable_operation): If the machine has
18570 only vector/vector shifts, convert the type of the constant to the
18571 appropriate type to avoid building incorrect trees, which
18572 eventually have problems with garbage collection.
18573
18574 2009-05-08 Joseph Myers <joseph@codesourcery.com>
18575
18576 * fold-const.c (fold_binary): Do not fold multiplication by 1 or
18577 -1 for complex floating-point types if honoring signed zeros.
18578
18579 2009-05-08 Jan Hubicka <jh@suse.cz>
18580
18581 * cgraphbuild.c (compute_call_stmt_bb_frequency): Accept function
18582 argument; handle correctly when profile is absent.
18583 (build_cgraph_edges): Update.
18584 (rebuild_cgraph_edges): Update.
18585 * cgraph.c: Do not include varray.h.
18586 (cgraph_set_call_stmt_including_clones): New function.
18587 (cgraph_create_edge_including_clones): Likewise
18588 (cgraph_update_edges_for_call_stmt_node): New static cfunction.
18589 (cgraph_update_edges_for_call_stmt): Handle clones.
18590 (cgraph_remove_node): Handle clone tree.
18591 (cgraph_remove_node_and_inline_clones): New function.
18592 (dump_cgraph_node): Dump clone tree.
18593 (cgraph_clone_node): Handle clone tree.
18594 (clone_function_name): Bring here from tree-inline.c.
18595 (cgraph_create_virtual_clone): New function.
18596 * cgraph.h (ipa_replace_map): Move here from ipa.h.
18597 (cgraph_clone_info): New function.
18598 (strut cgraph_node): Add clone_info and new clone tree pointers.
18599 (cgraph_remove_node_and_inline_clones,
18600 cgraph_set_call_stmt_including_clones,
18601 cgraph_create_edge_including_clones,
18602 cgraph_create_virtual_clone): Declare.
18603 (cgraph_function_versioning): Use VEC argument.
18604 (compute_call_stmt_bb_frequency): Update prototype.
18605 (cgraph_materialize_all_clones): New function.
18606 * ipa-cp.c (ipcp_update_cloned_node): Remove.
18607 (ipcp_create_replace_map): Update to VECtors.
18608 (ipcp_update_callgraph): Use virtual clones.
18609 (ipcp_update_bb_counts, ipcp_update_edges_counts): Remove.
18610 (ipcp_update_profiling): Do not update local profiling.
18611 (ipcp_insert_stage): Use VECtors and virtual clones.
18612 * cgraphunit.c (verify_cgraph_node): Verify clone tree.
18613 (clone_of_p): New function.
18614 (cgraph_preserve_function_body_p): Use clone tree.
18615 (cgraph_optimize): Materialize clones.
18616 (cgraph_function_versioning): Update for VECtors.
18617 (save_inline_function_body): Use clone tree.
18618 (cgraph_materialize_clone): New function.
18619 (cgraph_materialize_all_clones): Likewise.
18620 * ipa-inline.c (cgraph_default_inline_p): Use analyzed flags.
18621 * ipa.c: Include gimple.h.
18622 (cgraph_remove_unreachable_nodes): Use clone tree.
18623 * ipa-prop.c (ipa_note_param_call): Update call to
18624 compute_call_stmt_bb_frequencycall.
18625 * ipa-prop.h (ipa_replace_map): Move to cgraph.h.
18626 * tree-inline.c: Do not include varray.h or gt-tree-inline.h.
18627 (copy_bb): Handle updating of clone tree; add new edge when new call
18628 appears.
18629 (expand_call_inline): Be strict about every call having edge.
18630 (clone_fn_id_num, clone_function_name): Move to cgraph.c.
18631 (delete_unreachable_blocks_update_callgraph): New function.
18632 (tree_function_versioning): Use VECtors; always remove unreachable
18633 blocks and fold conditionals.
18634 * tree-inline.h: Do not include varray.h.
18635 (tree_function_versioning): Remove.
18636 * Makefile.in (GTFILES): Remove tree-inline.c
18637 * passes.c (do_per_function): Do only functions having body.
18638 * ipa-struct-reorg.c (do_reorg_1, collect_data_accesses): Handle clone
18639 tree.
18640
18641 2009-05-08 H.J. Lu <hongjiu.lu@intel.com>
18642 Andrew Morrow <acm@google.com>
18643
18644 PR c/36892
18645 * c-common.c (c_common_attribute_table): Permit deprecated
18646 attribute to take an optional argument.
18647 (handle_deprecated_attribute): If the optional argument to
18648 __attribute__((deprecated)) is not a string ignore the attribute
18649 and emit a warning.
18650
18651 * c-decl.c (grokdeclarator): Updated warn_deprecated_use call.
18652 * c-typeck.c (build_component_ref): Likewise.
18653 (build_external_ref): Likewise.
18654
18655 * toplev.c (warn_deprecated_use): Add an attribute argument.
18656 Emit the message associated with __attribute__((deprecated)).
18657
18658 * toplev.h (warn_deprecated_use): Updated.
18659
18660 * doc/extend.texi: Document new optional parameter to
18661 __attribute__((deprecated))
18662
18663 2009-05-08 Michael Eager <eager@eagercon.com>
18664
18665 * config/rs6000/rs6000.md (*movdf_softfloat32): replace
18666 !TARGET_DOUBLE_FLOAT with TARGET_SINGLE_FLOAT.
18667
18668 2009-05-08 Richard Guenther <rguenther@suse.de>
18669
18670 PR tree-optimization/40062
18671 * tree-scalar-evolution.c (follow_ssa_edge_in_condition_phi):
18672 Avoid exponential behavior.
18673
18674 2009-05-08 Paolo Bonzini <bonzini@gnu.org>
18675
18676 PR rtl-optimization/33928
18677 PR 26854
18678 * fwprop.c (use_def_ref, get_def_for_use, bitmap_only_bit_bitween,
18679 process_uses, build_single_def_use_links): New.
18680 (update_df): Update use_def_ref.
18681 (forward_propagate_into): Use get_def_for_use instead of use-def
18682 chains.
18683 (fwprop_init): Call build_single_def_use_links and let it initialize
18684 dataflow.
18685 (fwprop_done): Free use_def_ref.
18686 (fwprop_addr): Eliminate duplicate call to df_set_flags.
18687 * df-problems.c (df_rd_simulate_artificial_defs_at_top,
18688 df_rd_simulate_one_insn): New.
18689 (df_rd_bb_local_compute_process_def): Update head comment.
18690 (df_chain_create_bb): Use the new RD simulation functions.
18691 * df.h (df_rd_simulate_artificial_defs_at_top,
18692 df_rd_simulate_one_insn): New.
18693 * opts.c (decode_options): Enable fwprop at -O1.
18694 * doc/invoke.texi (-fforward-propagate): Document this.
18695
18696 2009-05-08 Joseph Myers <joseph@codesourcery.com>
18697
18698 PR c/24581
18699 * c-typeck.c (build_binary_op): Handle arithmetic between one real
18700 and one complex operand specially.
18701 * tree-complex.c (some_nonzerop): Do not identify a real value as
18702 zero if flag_signed_zeros.
18703
18704 2009-05-08 Paolo Bonzini <bonzini@gnu.org>
18705
18706 PR rtl-optimization/33928
18707 * loop-invariant.c (record_use): Fix && vs. || mishap.
18708
18709 2009-05-08 Paolo Bonzini <bonzini@gnu.org>
18710
18711 PR rtl-optimization/33928
18712 * loop-invariant.c (struct use): Add addr_use_p.
18713 (struct def): Add n_addr_uses.
18714 (struct invariant): Add cheap_address.
18715 (create_new_invariant): Set cheap_address.
18716 (record_use): Accept df_ref. Set addr_use_p and update n_addr_uses.
18717 (record_uses): Pass df_ref to record_use.
18718 (get_inv_cost): Do not add inv->cost to comp_cost for cheap addresses
18719 used only as such.
18720
18721 2009-05-08 Kaz Kojima <kkojima@gcc.gnu.org>
18722
18723 * config/sh/sh.c: Do not include c-pragma.h.
18724
18725 2009-05-07 Andrew Pinski <andrew_pinski@playstation.sony.com>
18726
18727 * config/spu/spu.c: Remove include of c-common.h.
18728
18729 2009-05-07 Janis Johnson <janis187@us.ibm.com>
18730
18731 PR c/39037
18732 * c-common.h (mark_valid_location_for_stdc_pragma,
18733 valid_location_for_stdc_pragma_p, set_float_const_decimal64,
18734 clear_float_const_decimal64, float_const_decimal64_p): New.
18735 * c.opt (Wunsuffixed-float-constants): New.
18736 * c-lex.c (interpret_float): Use pragma FLOAT_CONST_DECIMAL64 for
18737 unsuffixed float constant, handle new warning.
18738 * c-cppbuiltin.c (c_cpp_builtins): Use cast for double constants.
18739 * c-decl.c (c_scope): New flag float_const_decimal64.
18740 (set_float_const_decimal64, clear_float_const_decimal64,
18741 float_const_decimal64_p): New.
18742 (push_scope): Set new flag.
18743 * c-parser.c (c_parser_translation_unit): Mark when it's valid
18744 to use STDC pragmas.
18745 (c_parser_external_declaration): Ditto.
18746 (c_parser_compound_statement_nostart): Ditto.
18747 * c-pragma.c (valid_location_for_stdc_pragma,
18748 mark_valid_location_for_stdc_pragma,
18749 valid_location_for_stdc_pragma_p, handle_stdc_pragma,
18750 handle_pragma_float_const_decimal64): New.
18751 (init_pragma): Register new pragma FLOAT_CONST_DECIMAL64.
18752 * cp/semantics.c (valid_location_for_stdc_pragma_p,
18753 set_float_const_decimal64, clear_float_const_decimal64,
18754 float_const_decimal64_p): New dummy functions.
18755 * doc/extend.texi (Decimal Float): Remove statement that the
18756 pragma, and suffix for double constants, are not supported.
18757 * doc/invoke.texi (Warning Options): List new option.
18758 (-Wunsuffixed-float-constants): New.
18759
18760 2009-05-08 Steven Bosscher <steven@gcc.gnu.org>
18761
18762 * config/i386/i386.c: Do not include c-common.h.
18763
18764 2009-05-07 Mark Heffernan <meheff@google.com>
18765
18766 * doc/invoke.texi (Debugging Options): Document change of debugging
18767 dump location.
18768 * opts.c (decode_options): Make dump_base_name relative to
18769 aux_base_name directory.
18770
18771 2009-05-07 Hariharan Sandanagobalane <hariharan@picochip.com>
18772
18773 * config/picochip/picochip.h (NO_DOLLAR_IN_LABEL): Added.
18774 * config/picochip/libgccExtras/divmod15.asm : Removed redefiniton.
18775
18776 2009-05-07 Rafael Avila de Espindola <espindola@google.com>
18777
18778 * Makefile.in (install-plugin): Simplify a bit.
18779
18780 2009-05-07 Paolo Bonzini <bonzini@gnu.org>
18781
18782 * Makefile.in (OBJS-common): Add regcprop.o.
18783 (regcprop.o): New.
18784 * timevar.def (TV_CPROP_REGISTERS): New.
18785 * regrename.c (regrename_optimize): Return 0.
18786 (rest_of_handle_regrename): Delete.
18787 (pass_rename_registers): Point to regrename_optimize.
18788 (struct value_data_entry, struct value_data,
18789 kill_value_one_regno, kill_value_regno, kill_value,
18790 set_value_regno, init_value_data, kill_clobbered_value,
18791 kill_set_value, kill_autoinc_value, copy_value,
18792 mode_change_ok, maybe_mode_change, find_oldest_value_reg,
18793 replace_oldest_value_reg, replace_oldest_value_addr,
18794 replace_oldest_value_mem, copyprop_hardreg_forward_1,
18795 debug_value_data, validate_value_data): Move...
18796 * regcprop.c: ... here.
18797 (rest_of_handle_cprop): Delete.
18798 (pass_cprop_hardreg): Point to copyprop_hardreg_forward.
18799
18800 2009-05-07 Jakub Jelinek <jakub@redhat.com>
18801
18802 PR middle-end/40057
18803 * dojump.c (prefer_and_bit_test): Use immed_double_const instead of
18804 GEN_INT for 1 << bitnum.
18805 (do_jump) <case BIT_AND_EXPR>: Use build_int_cst_wide_type instead of
18806 build_int_cst_type.
18807
18808 2009-05-07 Uros Bizjak <ubizjak@gmail.com>
18809
18810 * doc/md.texi (Standard Pattern Names For Generation) [sync_nand]:
18811 Remove wrong description of "nand" operation.
18812
18813 2009-05-06 Richard Guenther <rguenther@suse.de>
18814 Adam Nemet <anemet@caviumnetworks.com>
18815
18816 * gimple.def (GIMPLE_ASSIGN): Fix incorrect information in the
18817 comment. Add that if LHS is not a gimple register, then RHS1 has
18818 to be a single object (GIMPLE_SINGLE_RHS).
18819
18820 2009-05-06 Adam Nemet <anemet@caviumnetworks.com>
18821
18822 * expr.c (get_def_for_expr): Move it up in the file.
18823 (store_field): When expanding a bit-field store, look at the
18824 defining gimple stmt for the masking conversion.
18825
18826 2009-05-06 Janis Johnson <janis187@us.ibm.com>
18827
18828 PR middle-end/39986
18829 * dfp.c (encode_decimal32, decode_decimal32, encode_decimal64,
18830 decode_decimal64, encode_decimal128, decode_decimal128): Avoid
18831 32-bit memcpy into long.
18832
18833 2009-05-06 Jakub Jelinek <jakub@redhat.com>
18834
18835 * dwarf2out.c (new_reg_loc_descr): Don't ever create DW_OP_regX.
18836 (one_reg_loc_descriptor): Create DW_OP_regX here instead of calling
18837 new_reg_loc_descr.
18838 (loc_by_reference): If loc is DW_OP_regX, change it into DW_OP_bregX 0
18839 instead of appending DW_OP_deref*.
18840
18841 2009-05-06 Michael Matz <matz@suse.de>
18842
18843 PR middle-end/40021
18844 * cfgexpand.c (maybe_cleanup_end_of_block): New static function.
18845 (expand_gimple_cond): Use it to cleanup CFG and superfluous jumps.
18846
18847 2009-05-06 Rafael Avila de Espindola <espindola@google.com>
18848
18849 * Makefile.in (install-plugin): Fix srcdir handling.
18850
18851 2009-05-06 Andrey Belevantsev <abel@ispras.ru>
18852
18853 * tree-ssa.c (execute_update_address_taken): Handle TARGET_MEM_REF
18854 when processing for not_regs_needed bitmap.
18855 * gimple.c (walk_stmt_load_store_addr_ops): When visiting address,
18856 handle TARGET_MEM_REF in lhs. Check TMR_BASE for NULL while
18857 handling it for rhs.
18858
18859 2009-05-06 H.J. Lu <hongjiu.lu@intel.com>
18860
18861 * config/i386/i386.md (unnamed inc/dec peephole): Use
18862 optimize_insn_for_size_p instead of optimize_size.
18863 * config/i386/predicates.md (incdec_operand): Likewise.
18864 (aligned_operand): Likewise.
18865 * config/i386/sse.md (divv8sf3): Likewise.
18866 (sqrtv8sf2): Likewise.
18867
18868 2009-05-06 H.J. Lu <hongjiu.lu@intel.com>
18869
18870 * config/i386/i386.c (ix86_build_signbit_mask): Make it static.
18871
18872 * config/i386/i386-protos.h (ix86_build_signbit_mask): Removed.
18873
18874 2009-05-06 H.J. Lu <hongjiu.lu@intel.com>
18875
18876 * config/i386/i386.md (*avx_<code><mode>3_finite): Replace
18877 ssemodesuffixf2c with avxmodesuffixf2c.
18878
18879 2009-05-06 Joseph Myers <joseph@codesourcery.com>
18880
18881 PR c/40032
18882 * c-decl.c (grokdeclarator): Handle incomplete type of unnamed field.
18883
18884 2009-05-05 Jakub Jelinek <jakub@redhat.com>
18885
18886 * tree.h: Remove DECL_BY_REFERENCE from private_flag comment.
18887 (struct tree_base): Adjust spacing for 8 bit boundaries.
18888 (struct tree_decl_common): Add decl_by_reference_flag bit.
18889 (DECL_BY_REFERENCE): Adjust.
18890 * print-tree.c (print_node): For VAR_DECL, PARM_DECL or RESULT_DECL,
18891 print DECL_BY_REFERENCE bit.
18892 * dbxout.c (DECL_ACCESSIBILITY_CHAR): Revert last change.
18893 * dwarf2out.c (loc_by_reference, gen_decl_die): Check
18894 DECL_BY_REFERENCE for all VAR_DECLs, not just non-static ones.
18895 (gen_variable_die): Likewise. Check TREE_PRIVATE/TREE_PROTECTED
18896 unconditionally.
18897
18898 PR middle-end/39666
18899 * gimplify.c (gimplify_switch_expr): If case labels cover the whole
18900 range of the type, but default label is missing, add it with one
18901 of the existing labels instead of adding a new label for it.
18902
18903 2009-05-05 Joseph Myers <joseph@codesourcery.com>
18904
18905 * dwarf.h: Remove.
18906
18907 2009-05-05 Rafael Avila de Espindola <espindola@google.com>
18908
18909 * Makefile.in (enable_plugin, plugin_includedir): New.
18910 (install): Depend on install-plugin.
18911 (PLUGIN_HEADERS): New.
18912 (install-plugin): New.
18913 * config.gcc: Add vxworks-dummy.h to tm_file for x86 and x86-64.
18914
18915 2009-05-05 Richard Guenther <rguenther@suse.de>
18916
18917 PR tree-optimization/40022
18918 * tree-ssa-phiprop.c (struct phiprop_d): Exchange vop_stmt for
18919 the only vuse.
18920 (phivn_valid_p): Fix tuplification error, simplify.
18921 (phiprop_insert_phi): Add dumps.
18922 (propagate_with_phi): Simplify.
18923
18924 2009-05-05 Richard Guenther <rguenther@suse.de>
18925
18926 PR middle-end/40023
18927 * builtins.c (gimplify_va_arg_expr): Properly build the address.
18928
18929 2009-05-05 Shujing Zhao <pearly.zhao@oracle.com>
18930
18931 * tree.h (strip_float_extensions): Remove duplicate declaration.
18932 (build_low_bits_mask, debug_fold_checksum, expand_function_end,
18933 expand_function_start, stack_protect_prologue, stack_protect_epilogue,
18934 block_ultimate_origin): Rearrange the declarations line to match the
18935 comment that indicates the .c file which the functions are defined.
18936 (dwarf2out_*, set_decl_rtl): Add comment.
18937 (get_base_address): Adjust comment.
18938 (change_decl_assembler_name, maybe_fold_*, build_addr): Rearrange the
18939 declarations line and add comment.
18940 (is_builtin_name): Add blank after function name, for clarity.
18941
18942 2009-05-04 Joseph Myers <joseph@codesourcery.com>
18943
18944 * attribs.c (decl_attributes): Use %qE for identifiers in
18945 diagnostics.
18946 * cgraphunit.c (verify_cgraph_node): Translate function names to
18947 locale character set in diagnostics.
18948 * coverage.c (get_coverage_counts): Use %qE for identifiers in
18949 diagnostics.
18950 * doc/invoke.texi (-finstrument-functions-exclude-function-list):
18951 Document that functions are named in UTF-8.
18952 * expr.c (expand_expr_real_1): Translate function names to locale
18953 character set in diagnostics.
18954 * gimplify.c (omp_notice_variable, omp_is_private,
18955 gimplify_scan_omp_clauses): Use %qE for identifiers in
18956 diagnostics.
18957 * langhooks.c (lhd_print_error_function): Translate function names
18958 to locale character set.
18959 * langhooks.h (decl_printable_name): Document that return value is
18960 in internal character set.
18961 * stmt.c: Include pretty-print.h
18962 (tree_conflicts_with_clobbers_p): Use %qE for identifiers in
18963 diagnostics.
18964 (resolve_operand_name_1): Translate named operand name to locale
18965 character set.
18966 * stor-layout.c (finalize_record_size): Use %qE for identifiers in
18967 diagnostics.
18968 * toplev.c (announce_function): Translate function names to locale
18969 character set.
18970 (warn_deprecated_use): Use %qE for identifiers in diagnostics.
18971 (default_tree_printer): Use pp_identifier or translate identifiers
18972 to locale character set. Mark "<anonymous>" for translation.
18973 * tree-mudflap.c (mx_register_decls, mudflap_finish_file): Use %qE
18974 for identifiers in diagnostics.
18975 * tree.c (handle_dll_attribute): Use %qE for identifiers in
18976 diagnostics.
18977 * varasm.c (output_constructor): Use %qE for identifiers in
18978 diagnostics.
18979
18980 2009-05-04 Rafael Avila de Espindola <espindola@google.com>
18981
18982 * configure.ac: use ` ` instead of $()
18983 * configure: Regenerate.
18984
18985 2009-05-05 Ben Elliston <bje@au.ibm.com>
18986
18987 * config/pa/linux-atomic.c: Eliminate conditional include of
18988 errno.h on non-LP64 systems to simplify build requirements.
18989
18990 2009-05-04 Joseph Myers <joseph@codesourcery.com>
18991
18992 * c-common.c (handle_mode_attribute): Use %qE for identifiers in
18993 diagnostics.
18994 * c-decl.c (check_bitfield_type_and_width): Make orig_name a tree
18995 and pass value to identifier_to_locale.
18996 (warn_variable_length_array): Make name a tree.
18997 (grokdeclarator): Separate diagnostic texts for named and unnamed
18998 declarators. Use %qE for named declarators.
18999 * c-parser.c (c_lex_one_token): Use %qE for identifiers in
19000 diagnostics.
19001 * c-pragma.c (pop_alignment, handle_pragma_pack): Use %qE for
19002 identifiers in diagnostics.
19003 * c-typeck.c (push_member_name, start_init): Pass identifiers to
19004 identifier_to_locale. Mark "anonymous" strings for translation.
19005
19006 2009-05-04 Michael Eager <eager@eagercon.com>
19007
19008 * config/rs6000/rs6000.c (rs6000_legitimate_address): Allow
19009 address for DImode/DFmode only if double-precision FP regs.
19010
19011 2009-05-04 Michael Eager <eager@eagercon.com>
19012
19013 * config/rs6000/rs6000.c (rs6000_libcall_value): Add
19014 TARGET_SINGLE_FLOAT check.
19015
19016 2009-05-04 Michael Eager <eager@eagercon.com>
19017
19018 * config/rs6000/xilinx.h: Add CPP_SPEC for -mxilinx-fpu options.
19019
19020 2009-05-04 Michael Eager <eager@eagercon.com>
19021
19022 * gcc/config.gcc: (powerpc-xilinx-eabi*): Add tm t-xilinx
19023 * config/rs6000/t-xilinx: New
19024
19025 2009-05-04 Paolo Bonzini <bonzini@gnu.org>
19026
19027 * doc/tm.texi (LEGITIMIZE_ADDRESS): Revise documentation.
19028 * gcc/defaults.h (LEGITIMIZE_ADDRESS): Delete.
19029 * gcc/explow.c (memory_address): Use target hook.
19030 * gcc/targhooks.c (default_legitimize_address): New.
19031 * gcc/targhooks.h (default_legitimize_address): New.
19032 * gcc/target.h (legitimize_address): New.
19033 * gcc/target-def.h (TARGET_LEGITIMIZE_ADDRESS): New.
19034 (TARGET_INITIALIZER): Include it.
19035 * gcc/system.h (LEGITIMIZE_ADDRESS): Poison.
19036
19037 * config/bfin/bfin-protos.h (legitimize_address): Remove.
19038 * config/bfin/bfin.c (legitimize_address): Remove.
19039 * config/bfin/bfin.h (LEGITIMIZE_ADDRESS): Remove.
19040 * config/m68hc11/m68hc11-protos.h (m68hc11_legitimize_address):
19041 Remove.
19042 * config/m68hc11/m68hc11.c (m68hc11_legitimize_address): Remove.
19043 * config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Remove.
19044
19045 * gcc/config/arm/arm.h (LEGITIMIZE_ADDRESS, ARM_LEGITIMIZE_ADDRESS,
19046 THUMB_LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS): Delete.
19047 * gcc/config/s390/s390.h (LEGITIMIZE_ADDRESS): Delete.
19048 * gcc/config/m32c/m32c.h (LEGITIMIZE_ADDRESS): Delete.
19049 * gcc/config/sparc/sparc.h (LEGITIMIZE_ADDRESS): Delete.
19050 * gcc/config/m32r/m32r.h (LEGITIMIZE_ADDRESS): Delete.
19051 * gcc/config/i386/i386.h (LEGITIMIZE_ADDRESS): Delete.
19052 * gcc/config/sh/sh.h (LEGITIMIZE_ADDRESS): Delete.
19053 * gcc/config/avr/avr.h (LEGITIMIZE_ADDRESS): Delete.
19054 * gcc/config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Delete.
19055 * gcc/config/iq2000/iq2000.h (LEGITIMIZE_ADDRESS): Delete.
19056 * gcc/config/mn10300/mn10300.h (LEGITIMIZE_ADDRESS): Delete.
19057 * gcc/config/m68k/m68k.h (LEGITIMIZE_ADDRESS): Delete.
19058 * gcc/config/score/score.h (LEGITIMIZE_ADDRESS): Delete.
19059 * gcc/config/pa/pa.h (LEGITIMIZE_ADDRESS): Delete.
19060 * gcc/config/mips/mips.h (LEGITIMIZE_ADDRESS): Delete.
19061 * gcc/config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Delete.
19062 * gcc/config/frv/frv.h (LEGITIMIZE_ADDRESS): Delete.
19063 * gcc/config/spu/spu.h (LEGITIMIZE_ADDRESS): Delete.
19064 * gcc/config/xtensa/xtensa.h (LEGITIMIZE_ADDRESS): Delete.
19065 * gcc/config/cris/cris.h (LEGITIMIZE_ADDRESS): Delete.
19066 * gcc/config/rs6000/rs6000.h (LEGITIMIZE_ADDRESS): Delete.
19067 * gcc/config/picochip/picochip.h (LEGITIMIZE_ADDRESS): Delete.
19068
19069 * gcc/config/s390/s390-protos.h (legitimize_address): Delete.
19070 * gcc/config/m32c/m32c-protos.h (m32c_legitimize_address): Delete.
19071 * gcc/config/sparc/sparc-protos.h (legitimize_address): Delete.
19072 * gcc/config/i386/i386-protos.h (legitimize_address): Delete.
19073 * gcc/config/avr/avr-protos.h (legitimize_address): Delete.
19074 * gcc/config/mn10300/mn10300-protos.h (legitimize_address): Delete.
19075 * gcc/config/score/score-protos.h (score_legitimize_address): Delete.
19076 * gcc/config/arm/arm-protos.h (arm_legitimize_address,
19077 (thumb_legitimize_address): Delete.
19078 * gcc/config/pa/pa-protos.h (hppa_legitimize_address): Delete.
19079 * gcc/config/mips/mips-protos.h (mips_legitimize_address): Delete.
19080 * gcc/config/alpha/alpha-protos.h (alpha_legitimize_address): Delete.
19081 * gcc/config/frv/frv-protos.h (frv_legitimize_address): Delete.
19082 * gcc/config/spu/spu-protos.h (spu_legitimize_address): Delete.
19083 * gcc/config/xtensa/xtensa-protos.h (xtensa_legitimize_address):
19084 Delete.
19085 * gcc/config/rs6000/rs6000-protos.h (rs6000_legitimize_address):
19086 Delete.
19087
19088 * config/arm/arm.c (arm_legitimize_address): Maybe call Thumb version.
19089 * config/m32c/m32c.c (m32c_legitimize_address): Standardize.
19090 * config/m32r/m32r.c (m32r_legitimize_address): New.
19091 * config/m68k/m68k.c (m68k_legitimize_address): New.
19092 * config/score/score.c (score_legitimize_address): Standardize.
19093 * config/score/score3.c (score3_legitimize_address): Standardize.
19094 * config/score/score3.h (score3_legitimize_address): Adjust.
19095 * config/score/score7.c (score7_legitimize_address): Standardize.
19096 * config/score/score7.h (score7_legitimize_address): Adjust.
19097 * config/sh/sh.c (sh_legitimize_address): New.
19098 * config/iq2000/iq2000.c (iq2000_legitimize_address): New.
19099
19100 * gcc/config/s390/s390.c (legitimize_address): Rename to...
19101 (s390_legitimize_address): ... this.
19102 * gcc/config/sparc/sparc.c (legitimize_address): Rename to...
19103 (sparc_legitimize_address): ... this.
19104 * gcc/config/i386/i386.c (legitimize_address): Rename to...
19105 (ix86_legitimize_address): ... this.
19106 * gcc/config/avr/avr.c (legitimize_address): Rename to...
19107 (avr_legitimize_address): ... this.
19108 * gcc/config/mn10300/mn10300.c (legitimize_address): Rename to...
19109 (mn10300_legitimize_address): ... this.
19110 * config/alpha/alpha.c (alpha_legitimize_address): Wrap...
19111 (alpha_legitimize_address_1): ... the old alpha_legitimize_address.
19112 (alpha_expand_mov): Adjust call.
19113
19114 * config/frv/frv.c (frv_legitimize_address): Return x on failure.
19115 * config/spu/spu.c (spu_legitimize_address): Likewise.
19116 * config/xtensa/xtensa.c (xtensa_legitimize_address): Likewise.
19117 * config/rs6000/rs6000.c (rs6000_legitimize_address): Likewise.
19118
19119 2009-05-04 Joseph Myers <joseph@codesourcery.com>
19120
19121 * intl.c (locale_encoding, locale_utf8): New.
19122 (gcc_init_libintl): Initialize locale_encoding and locale_utf8.
19123 * intl.h (locale_encoding, locale_utf8): Declare.
19124 * pretty-print.c: Include ggc.h. Include iconv.h if HAVE_ICONV.
19125 (pp_base_tree_identifier, decode_utf8_char, identifier_to_locale):
19126 New.
19127 * pretty-print.h (pp_identifier): Call identifier_to_locale on ID
19128 argument.
19129 (pp_tree_identifier): Define to call pp_base_tree_identifier.
19130 (pp_base_tree_identifier): Declare as function.
19131 (identifier_to_locale): Declare.
19132 * Makefile.in (pretty-print.o): Update dependencies.
19133 * varasm.c (finish_aliases_1): Use %qE for identifiers in diagnostics.
19134
19135 2009-05-04 Richard Guenther <rguenther@suse.de>
19136
19137 PR middle-end/40015
19138 * builtins.c (fold_builtin_memory_op): Do not decay to element
19139 type if the size matches the whole array.
19140
19141 2009-05-04 Kazu Hirata <kazu@codesourcery.com>
19142
19143 * expmed.c (synth_mult): When trying out a shift, pass the result
19144 of a signed shift.
19145
19146 2009-05-04 Kazu Hirata <kazu@codesourcery.com>
19147
19148 * expmed.c (shiftsub_cost): Rename to shiftsub0_cost.
19149 (shiftsub1_cost): New.
19150 (init_expmed): Compute shiftsub1_cost.
19151 (synth_mult): Optimize multiplications by constants of the form
19152 -(2^^m-1) for some constant positive integer m.
19153
19154 2009-05-03 Richard Guenther <rguenther@suse.de>
19155
19156 PR c/39983
19157 * c-typeck.c (array_to_pointer_conversion): Do not built
19158 ADDR_EXPRs of arrays of pointer-to-element type.
19159 * c-gimplify.c (c_gimplify_expr): Revert change fixing
19160 up wrong ADDR_EXPRs after-the-fact.
19161 * c-common.c (strict_aliasing_warning): Strip pointer
19162 conversions for obtaining the original type.
19163 * builtins.c (fold_builtin_memset): Handle array types.
19164 (fold_builtin_memory_op): Handle folded POINTER_PLUS_EXPRs
19165 and array types
19166
19167 2009-05-03 Richard Guenther <rguenther@suse.de>
19168
19169 PR middle-end/23329
19170 * tree-ssa.c (useless_type_conversion_p_1): Use get_deref_alias_set.
19171 Do not lose casts from array types with unknown extent to array
19172 types with known extent.
19173 * tree-ssa-copy.c (may_propagate_copy): Remove hack checking for
19174 alias set compatibility.
19175
19176 2009-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
19177
19178 * flags.h (extra_warnings): Delete.
19179 * toplev.c (process_options): Handle Wuninitialized here.
19180 * opts.c (extra_warnings): Delete.
19181 (set_Wextra): Delete.
19182 (common_handle_option): -Wextra can be handled automatically.
19183 * c-opts.c (c_common_handle_option): Delete obsolete code.
19184 (c_common_post_options): Simplify comment.
19185 * common.opt (W): Add Var.
19186 (Wextra): Add Var.
19187 (Wuninitialized): Initialize to -1.
19188
19189 2009-05-03 Adam Nemet <anemet@caviumnetworks.com>
19190 Richard Guenther <rguenther@suse.de>
19191
19192 * expr.c (get_def_for_expr): New function.
19193 (expand_expr_real_1) <PLUS_EXPR, MINUS_EXPR>: Adjust to work with
19194 SSA rather than trees.
19195 <MULT_EXPR>: Likewise. Use subexp0 and subexp1 instead of
19196 TREE_OPERAND (exp, 0) and TREE_OPERAND (exp, 1).
19197
19198 2009-05-03 Joseph Myers <joseph@codesourcery.com>
19199
19200 * c-common.c (reswords): Add _Imaginary.
19201 * c-common.c (enum rid): Add RID_IMAGINARY.
19202
19203 2009-05-03 Paolo Bonzini <bonzini@gnu.org>
19204
19205 * tree.h (TYPE_VECTOR_OPAQUE): Fix documentation.
19206 Patch by Richard Guenther.
19207
19208 2009-05-03 Anatoly Sokolov <aesok@post.ru>
19209
19210 * defaults.h (FRAME_POINTER_REQUIRED): Provide default.
19211 * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
19212 * config/alpha/alpha.h (FRAME_POINTER_REQUIRED): Delete.
19213 * config/s390/s390.h (FRAME_POINTER_REQUIRED): Delete.
19214 * config/spu/spu.h (FRAME_POINTER_REQUIRED): Delete.
19215 * config/sh/sh.h (FRAME_POINTER_REQUIRED): Delete.
19216 * config/pdp11/pdp11.h (FRAME_POINTER_REQUIRED): Delete.
19217 * config/stormy16/stormy16.h (FRAME_POINTER_REQUIRED): Delete.
19218 * config/m68hc11/m68hc11.h (FRAME_POINTER_REQUIRED): Delete.
19219 * config/iq2000/iq2000.h (FRAME_POINTER_REQUIRED): Delete.
19220 * config/mn10300/mn10300.h (FRAME_POINTER_REQUIRED): Delete.
19221 * config/ia64/ia64.h (FRAME_POINTER_REQUIRED): Delete.
19222 * config/m68k/m68k.h (FRAME_POINTER_REQUIRED): Delete.
19223 * config/rs6000/rs6000.h (FRAME_POINTER_REQUIRED): Delete.
19224 * config/picochip/picochip.h (FRAME_POINTER_REQUIRED): Delete.
19225 * config/mcore/mcore.h (FRAME_POINTER_REQUIRED): Delete.
19226 * config/h8300/h8300.h (FRAME_POINTER_REQUIRED): Delete.
19227 * config/v850/v850.h (FRAME_POINTER_REQUIRED): Delete.
19228
19229 2009-05-02 Richard Guenther <rguenther@suse.de>
19230
19231 PR tree-optimization/39940
19232 * tree-ssa-pre.c (eliminate): Make sure we may propagate before
19233 doing so.
19234
19235 2009-05-02 Richard Guenther <rguenther@suse.de>
19236
19237 PR middle-end/40001
19238 * tree-ssa.c (execute_update_addresses_taken): Properly check
19239 if we can mark a variable DECL_GIMPLE_REG_P.
19240 * gimple.c (is_gimple_reg): Re-order check for DECL_GIMPLE_REG_P
19241 back to the end of the function.
19242 (is_gimple_reg_type): Remove complex type special casing.
19243 * gimplify.c (gimplify_bind_expr): Do not set DECL_GIMPLE_REG_P
19244 if not optimizing.
19245
19246 2009-05-02 Ben Elliston <bje@au.ibm.com>
19247
19248 * doc/collect2.texi (Collect2): Document search path behaviour
19249 when configured with --with-ld.
19250
19251 2009-05-02 Jan Hubicka <jh@suse.cz>
19252
19253 * tree-ssa-coalesce.c (coalesce_cost): Do not take ciritical
19254 parameter; update callers.
19255 (coalesce_cost_edge): EH edges are costier because they needs
19256 splitting even if not critical and even more costier when there are
19257 multiple EH predecestors.
19258
19259 2009-05-02 Jan Hubicka <jh@suse.cz>
19260
19261 * except.c (remove_eh_handler_and_replace): Handle updating after
19262 removing TRY blocks.
19263
19264 2009-05-02 Eric Botcazou <ebotcazou@adacore.com>
19265
19266 * store-motion.c (compute_store_table): Add ENABLE_CHECKING guard.
19267
19268 2009-05-02 Steven Bosscher <steven@gcc.gnu.org>
19269
19270 * varasm.c: Do not include c-pragma.h.
19271 * attribs.c: Do not incude c-common.h.
19272
19273 2009-05-01 Michael Matz <matz@suse.de>
19274
19275 * calls.c (initialize_argument_information): Handle SSA names like
19276 decls with a non MEM_P DECL_RTL.
19277
19278 2009-05-01 Steven Bosscher <steven@gcc.gnu.org>
19279
19280 * ipa-reference.c: Do not include c-common.h, include splay-tree.h.
19281 * ipa-utils.c: Likewise.
19282 * ipa-type-escape.c: Likewise.
19283 * cgraphunit.c Do not include c-common.h.
19284 * ipa-pure-const.c: Likewise.
19285 * tree-if-conv.c: Likewise.
19286 * matrix-reorg.c: Do not include c-common.h and c-tree.h.
19287 * ipa-struct-reorg.c: Likewise.
19288 * tree-nomudflap.c: Likewise.
19289 * tree-ssa-structalias.c: Likewise.
19290
19291 2009-05-01 Steven Bosscher <steven@gcc.gnu.org>
19292
19293 * store-motion.c: Many cleanups to make this pass a first-class
19294 citizen instead of an appendix to gcse load motion. Add TODO list
19295 to make this pass faster/cleaner/better.
19296
19297 (struct ls_expr): Post gcse.c-split cleanups.
19298 Rename to st_expr. Rename "loads" field to "antic_stores". Rename
19299 "stores" field to "avail_stores".
19300 (pre_ldst_mems): Rename to store_motion_mems.
19301 (pre_ldst_table): Rename to store_motion_mems_table.
19302 (pre_ldst_expr_hash): Rename to pre_st_expr_hash, update users.
19303 (pre_ldst_expr_eq): Rename to pre_st_expr_eq, update users.
19304 (ldst_entry): Rename to st_expr_entry, update users.
19305 (free_ldst_entry): Rename to free_st_expr_entry, update users.
19306 (free_ldst_mems): Rename to free_store_motion_mems, update users.
19307 (enumerate_ldsts): Rename to enumerate_store_motion_mems,
19308 update caller.
19309 (first_ls_expr): Rename to first_st_expr, update users.
19310 (next_ls_expr): Rename to next_st_expr, update users.
19311 (print_ldst_list): Rename to print_store_motion_mems. Print names of
19312 fields properly for store motion instead of names inherited from load
19313 motion in gcse.c.
19314 (ANTIC_STORE_LIST, AVAIL_STORE_LIST): Remove.
19315 (LAST_AVAIL_CHECK_FAILURE): Explain what this is. Undefine when we
19316 are done with it.
19317
19318 (ae_kill): Rename to st_kill, update users.
19319 (ae_gen): Rename to st_avloc, update users.
19320 (transp): Rename to st_transp, update users.
19321 (pre_insert_map): Rename to st_insert_map, update users.
19322 (pre_delete_map): Rename to st_delete_map, update users.
19323 (insert_store, build_store_vectors, free_store_memory,
19324 one_store_motion_pass): Update for abovementioned changes.
19325
19326 (gcse_subst_count, gcse_create_count): Remove.
19327 (one_store_motion_pass): New statistics counters "n_stores_deleted"
19328 and "n_stores_created", local variables.
19329
19330 (extract_mentioned_regs, extract_mentioned_regs_1): Rewrite to
19331 use for_each_rtx.
19332
19333 (regvec, compute_store_table_current_insn): Remove.
19334 (reg_set_info, reg_clear_last_set): Remove.
19335 (compute_store_table): Use DF caches instead of local dataflow
19336 solvers.
19337
19338 2009-05-01 Joseph Myers <joseph@codesourcery.com>
19339
19340 * c-objc-common.c (c_tree_printer): Print identifiers with
19341 pp_identifier, not pp_string. Mark "({anonymous})" for
19342 translation.
19343 * c-pretty-print.c (pp_c_ws_string): New.
19344 (pp_c_cv_qualifier, pp_c_type_specifier,
19345 pp_c_specifier_qualifier_list, pp_c_parameter_type_list,
19346 pp_c_storage_class_specifier, pp_c_function_specifier,
19347 pp_c_attributes, pp_c_bool_constant, pp_c_constant,
19348 pp_c_primary_expression, pp_c_postfix_expression,
19349 pp_c_unary_expression, pp_c_shift_expression,
19350 pp_c_relational_expression, pp_c_equality_expression,
19351 pp_c_logical_and_expression, pp_c_logical_or_expression): Mostly
19352 use pp_string and pp_c_ws_string in place of pp_identifier and
19353 pp_c_identifier for non-identifiers. Mark English strings for
19354 translation.
19355 * c-pretty-print.h (pp_c_ws_string): Declare.
19356
19357 2009-04-30 Paul Pluzhnikov <ppluzhnikov@google.com>
19358 Roland McGrath <roland@redhat.com>
19359
19360 * configure.ac (HAVE_LD_BUILDID): New check for ld --build-id support.
19361 (ENABLE_LD_BUILDID): New configuration option.
19362 * gcc.c [HAVE_LD_BUILDID and ENABLE_LD_BUILDID]
19363 (LINK_BUILDID_SPEC): New macro.
19364 (init_spec): If defined, prepend it between LINK_EH_SPEC and
19365 link_spec.
19366 * doc/install.texi: Document --enable-linker-build-id option.
19367 * configure: Rebuild.
19368 * config.in: Rebuild.
19369
19370 2009-04-30 Adam Nemet <anemet@caviumnetworks.com>
19371
19372 * config/mips/mips.h (FRAME_GROWS_DOWNWARD,
19373 MIPS_GP_SAVE_AREA_SIZE): Define new macros.
19374 (STARTING_FRAME_OFFSET): Return 0 if FRAME_GROWS_DOWNWARD. Use
19375 MIPS_GP_SAVE_AREA_SIZE.
19376 * config/mips/mips.c (struct mips_frame_info): Update comment
19377 before arg_pointer_offset and hard_frame_pointer_offset.
19378 (mips_compute_frame_info): Update diagram before function: to
19379 correctly use stack_pointer_rtx for fp_sp_offset and gp_sp_offset, to
19380 indicate the position of frame_pointer_rtx with -fstack-protector and
19381 to show args_size. Don't allocate cprestore area for leaf functions
19382 if FRAME_GROWS_DOWNWARD. Use MIPS_GP_SAVE_AREA_SIZE to set
19383 cprestore_size.
19384 (mips_initial_elimination_offset): Update for FRAME_GROWS_DOWNWARD.
19385
19386 2009-04-30 Michael Matz <matz@suse.de>
19387
19388 PR tree-optimization/39955
19389 * config/rs6000/rs6000.c (rs6000_check_sdmode): Also check SSA_NAMEs.
19390
19391 2009-04-30 Dave Korn <dave.korn.cygwin@gmail.com>
19392
19393 * ira.c (setup_cover_and_important_classes): Use safe macro
19394 REG_CLASS_FOR_CONSTRAINT instead of calling regclass_for_constraint
19395 directly.
19396 * genpreds.c (write_tm_preds_h): Output suitable definition of
19397 REG_CLASS_FOR_CONSTRAINT.
19398
19399 2009-04-30 Rafael Avila de Espindola <espindola@google.com>
19400
19401 * alloc-pool.c (alloc_pool_descriptor): Use an insert_opion value
19402 instead of an int.
19403 * bitmap.c (bitmap_descriptor): Likewise.
19404 * ggc-common.c (loc_descriptor): Likewise.
19405 * varray.c (varray_descriptor): Likewise.
19406 * vec.c (vec_descriptor): Likewise.
19407
19408 2009-04-30 Eric Botcazou <ebotcazou@adacore.com>
19409
19410 * Makefile.in (dce.o): Add $(EXCEPT_H).
19411 * dce.c: Include except.h and delete redundant vector definitions.
19412 (deletable_insn_p): Return false for non-call insns that can throw
19413 if DF is running.
19414
19415 2009-04-30 Steven Bosscher <steven@gcc.gnu.org>
19416
19417 * gcse.c (ae_gen): Remove.
19418 (can_assign_to_reg_p): Rename to can_assign_to_reg_without_clobbers_p
19419 and make non-static function to make it available in store-motion.c.
19420 Update call sites with search-and-replace.
19421 (enumerate_ldsts, reg_set_info, reg_clear_last_set, store_ops_ok,
19422 extract_mentioned_regs, extract_mentioned_regs_helper,
19423 find_moveable_store, compute_store_table, load_kills_store, find_loads,
19424 store_killed_in_insn, store_killed_after, store_killed_before,
19425 build_store_vectors, insert_insn_start_basic_block, insert-store,
19426 remove_reachable_equiv_notes, replace_store_insn, delete_store,
19427 free_store_memory, one_store_motion_pass, gate_rtl_store_motion,
19428 execute_rtl_store_motion, pass_rtl_store_motion): Move to...
19429 * store-motion.c: ...new file. Also copy data structures from gcse.c
19430 and clean up to remove parts not used by store motion.
19431 * rtl.h (can_assign_to_reg_without_clobbers_p): Add prototype.
19432 * Makefile.in (store-motion.o): New rule. Add to OBJS-common.
19433
19434 2009-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19435
19436 PR target/38571
19437 * config/arm/arm.h (FUNCTION_BOUNDARY): Set to 16 for thumb
19438 when optimizing for size.
19439
19440 2009-04-30 Hans-Peter Nilsson <hp@axis.com>
19441
19442 * gcse.c (gcse_constant_p): Fix typo in last change.
19443
19444 2009-04-30 Rafael Avila de Espindola <espindola@google.com>
19445
19446 * plugin.c: Include plugin-version.h only if ENABLE_PLUGIN is defined.
19447
19448 2009-04-30 Andreas Krebbel <krebbel1@de.ibm.com>
19449
19450 * gcse.c (gcse_constant_p): Make sure the constant is sharable.
19451
19452 2009-04-29 James E. Wilson <wilson@codesourcery.com>
19453
19454 * config/mips/mips.c (mips_add_offset): Use gen_int_mode for
19455 CONST_HIGH_PART result.
19456
19457 2009-04-29 Anatoly Sokolov <aesok@post.ru>
19458
19459 * config/avr/avr.c (initial_elimination_offset): Rename to
19460 avr_initial_elimination_offset.
19461 (frame_pointer_required_p): Rename to avr_frame_pointer_required_p,
19462 change return type to bool.
19463 (avr_can_eliminate): New function.
19464 * config/avr/avr.h (CAN_ELIMINATE): Use avr_can_eliminate.
19465 (FRAME_POINTER_REQUIRED): Use avr_frame_pointer_required_p.
19466 (INITIAL_ELIMINATION_OFFSET): Use avr_initial_elimination_offset.
19467 * config/avr/avr-protos.h (initial_elimination_offset): Rename to
19468 avr_initial_elimination_offset.
19469 (frame_pointer_required_p): Rename to avr_frame_pointer_required_p.
19470 (avr_initial_elimination_offset): Define.
19471
19472 2009-04-29 Eric Botcazou <ebotcazou@adacore.com>
19473 Steven Bosscher <steven@gcc.gnu.org>
19474
19475 PR rtl-optimization/39938
19476 * Makefile.in (cfgrtl.o): Add $(INSN_ATTR_H).
19477 * cfgrtl.c: Include insn-attr.h.
19478 (rest_of_pass_free_cfg): New function.
19479 (pass_free_cfg): Use rest_of_pass_free_cfg as execute function.
19480 * resource.c (init_resource_info): Remove call to df_analyze.
19481
19482 2009-04-29 Richard Guenther <rguenther@suse.de>
19483
19484 PR target/39943
19485 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Only
19486 allow conversion to signed integers.
19487
19488 2009-04-29 Richard Guenther <rguenther@suse.de>
19489
19490 * tree-cfg.c (verify_gimple_assign_binary): Allow vector
19491 shifts of floating point vectors if the shift amount is
19492 a constant multiple of the element size.
19493
19494 2009-04-29 Andreas Krebbel <krebbel1@de.ibm.com>
19495 Michael Matz <matz@suse.de>
19496
19497 PR middle-end/39927
19498 PR bootstrap/39929
19499 * tree-outof-ssa.c (emit_partition_copy): New function.
19500 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
19501 insert_part_to_rtx_on_edge): Perform the partition base var
19502 copy using emit_partition_copy.
19503 (insert_value_copy_on_edge): Convert constants to the right mode.
19504 (insert_rtx_to_part_on_edge): Add UNSIGNEDSRCP parameter.
19505 (elim_create): Pass the sign of the src to insert_rtx_to_part_on_edge.
19506
19507 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
19508
19509 * config/bfin/bfin.c (bfin_optimize_loop): If we need a scratch reg,
19510 scan backwards to try to find a constant to initialize it.
19511
19512 * config/bfin/bfin.c (bfin_optimize_loop): When looking for the last
19513 insn before the loop_end instruction, don't look past labels.
19514
19515 2009-04-29 Richard Guenther <rguenther@suse.de>
19516
19517 PR middle-end/39937
19518 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do not
19519 loose type conversions.
19520 (forward_propagate_addr_expr): Fix tuplification bug. Remove
19521 stmts only if there are no uses of its definition.
19522
19523 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
19524
19525 * config/bfin/bfin.h (splitting_loops): Declare.
19526 * config/bfin/bfin-protos.h (WA_05000257, WA_05000283, WA_05000315):
19527 Reorder bit definitions to be ascending.
19528 (WA_LOAD_LCREGS, ENABLE_WA_LOAD_LCREGS): New macros.
19529 * config/bfin/bfin.c (splitting_loops): New variable.
19530 (bfin_cpus): Add WA_LOAD_LCREGS as needed.
19531 (struct loop_info): Remove members INIT and LOOP_INIT.
19532 (bfin_optimize_loop): Don't set them. Reorder the code that generates
19533 the LSETUP sequence. Allow LC to be loaded from any register, but
19534 also add a case to push/pop a PREG scratch if ENABLE_WA_LOAD_LCREGS.
19535 (bfin_reorg_loops): When done, split all BB_ENDs with splitting_loops
19536 set to 1.
19537 * config/bfin/bfin.md (loop_end splitter): Use splitting_loops instead
19538 of reload_completed.
19539
19540 From Jie Zhang:
19541 * config/bfin/bfin.md (movsi_insn): Refine constraints.
19542
19543 2009-04-29 Rafael Avila de Espindola <espindola@google.com>
19544
19545 * Makefile.in (PLUGIN_VERSION_H): New.
19546 (OBJS-common): Remove plugin-version.o.
19547 (plugin.o): Depend on (PLUGIN_VERSION_H).
19548 (plugin-version.o): Remove.
19549 * configure: Regenerate
19550 * configure.ac: Create plugin-version.h.
19551 * gcc-plugin.h (plugin_gcc_version): Remove.
19552 (plugin_default_version_check): Change signature.
19553 * plugin-version.c: Remove.
19554 * plugin.c: Include plugin-version.h.
19555 (str_plugin_gcc_version_name): Remove.
19556 (try_init_one_plugin): Pass gcc version to plugin_init.
19557 (plugin_default_version_check): Both gcc and plugin versions are now
19558 arguments.
19559
19560 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
19561
19562 * config/bfin/bfin.c (bfin_optimize_loop): Unify handling of
19563 problematic last insns. Test for TYPE_CALL rather than CALL_P.
19564 Remove special case testing for last insn of inner loops. Don't fail
19565 if the loop ends with a jump, emit an extra nop instead.
19566
19567 * config/bfin/bfin.c (bfin_register_move_cost): Test for subsets of
19568 DREGS rather than comparing directly. Remove code that tries to
19569 account for latencies.
19570
19571 2009-04-29 Richard Guenther <rguenther@suse.de>
19572
19573 PR tree-optimization/39941
19574 * tree-ssa-pre.c (eliminate): Schedule update-ssa after
19575 eliminating an indirect call.
19576
19577 2009-04-29 Richard Guenther <rguenther@suse.de>
19578
19579 * tree-cfg.c (verify_types_in_gimple_reference): Add require_lvalue
19580 parameter. Allow invariants as base if !require_lvalue.
19581 (verify_gimple_assign_single): Adjust.
19582
19583 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
19584
19585 * config/bfin/bfin.md (sp_or_sm, spm_string, spm_name): New macro.
19586 (ss<spm_name>hi3, ss<spm_name>hi3_parts, ss<spm_name>hi3_low_parts,
19587 ss<spm_name_hi3_high_parts): New patterns, replacing ssaddhi3,
19588 ssubhi3, ssaddhi3_parts and sssubhi3_parts.
19589 (flag_mulhi3_parts): Produce a HImode output rather than trying to set
19590 a VEC_SELECT.
19591 * config/bfin/bfin.c (bfin_expand_builtin,
19592 case BFIN_BUILTIN_CPLX_SQU): Adjust accordingly.
19593
19594 2009-04-28 Richard Guenther <rguenther@suse.de>
19595
19596 * tree-vect-loop.c (get_initial_def_for_induction): Use
19597 correct types for pointer increment.
19598
19599 2009-04-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19600
19601 * toplev.c (print_version): Update GMP version string calculation.
19602
19603 2009-04-28 Eric Botcazou <ebotcazou@adacore.com>
19604
19605 PR rtl-optimization/39938
19606 * resource.c (init_resource_info): Add call to df_analyze.
19607
19608 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
19609
19610 * config/alpha/alpha.md (usegp): Cast the result of
19611 alpha_find_lo_sum_using_gp to enum attr_usegp.
19612 * config/alpha/alpha.c (override_options): Remove end-of-structure
19613 marker element from cpu_table. Use array size of cpu_table to handle
19614 -mcpu and -mtune options.
19615 (tls_symbolic_operand_type): Change 0 to TLS_MODEL_NONE.
19616
19617 2009-04-28 Joseph Myers <joseph@codesourcery.com>
19618
19619 * config.gcc (powerpc*-*-* | rs6000-*-*): Add
19620 rs6000/option-defaults.h to tm_file. Support cpu_32, cpu_64,
19621 tune_32 and tune_64.
19622 * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
19623 support on PowerPC.
19624 * config/rs6000/rs6000.h (OPTION_DEFAULT_SPECS): Move to ...
19625 * config/rs6000/option-defaults.h: ... here. New file.
19626 (OPT_64, OPT_32): Define.
19627 (MASK_64BIT): Define to 0 if not already defined.
19628 (OPT_ARCH64, OPT_ARCH32): Define.
19629 (OPTION_DEFAULT_SPECS): Add entries for cpu_32, cpu_64, tune_32
19630 and tune_64.
19631
19632 2009-04-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19633
19634 * config/arm/arm.c (arm_override_options): Emit error on using
19635 fpa with AAPCS.
19636
19637 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
19638
19639 PR rtl-optimization/39914
19640 * ira-conflicts.c (ira_build_conflicts): Prohibit call used
19641 registers for allocnos created from user-defined variables only
19642 when not optimizing.
19643
19644 2009-04-28 Richard Guenther <rguenther@suse.de>
19645
19646 PR middle-end/39937
19647 * fold-const.c (fold_binary): Use distribute_real_division only
19648 on float types.
19649
19650 2009-04-28 Steve Ellcey <sje@cup.hp.com>
19651
19652 * config.gcc (hppa*64*-*-hpux11*): Set use_gcc_stdint and
19653 add hpux-stdint.h to tm_file.
19654 (hppa[12]*-*-hpux11*): Ditto.
19655 (ia64*-*-hpux*): Ditto.
19656 * config/hpux-stdint.h: New.
19657 * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Set
19658 __STDC_EXT__ for all compiles.
19659 * config/pa/pa-hpux.h: Ditto.
19660 * config/pa/pa-hpux10.h: Ditto.
19661 * config/pa/pa-hpux11.h: Ditto.
19662
19663 2009-04-28 Catherine Moore <clm@codesourcery.com>
19664
19665 * debug.h (set_name): Add comment.
19666
19667 2009-04-28 Andrew Pinski <pinskia@gmail.com>
19668
19669 PR target/39929
19670 * config/darwin.c (machopic_gen_offset): Check
19671 currently_expanding_to_rtl if current_ir_type returns IR_GIMPLE.
19672 * config/arm/arm.c (require_pic_register): Likewise.
19673
19674 2009-04-28 Paolo Bonzini <bonzini@gnu.org>
19675
19676 * config/m32c/m32c.c (TARGET_PROMOTE_FUNCTION_RETURN,
19677 m32c_promote_function_return, TARGET_PROMOTE_PROTOTYPES,
19678 m32c_promote_prototypes): Delete.
19679
19680 2009-04-28 Michael Matz <matz@suse.de>
19681
19682 PR middle-end/39922
19683 * tree-outof-ssa.c (insert_value_copy_on_edge): Don't convert
19684 constants.
19685
19686 2009-04-28 Richard Guenther <rguenther@suse.de>
19687
19688 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Fix type error.
19689
19690 2009-04-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19691
19692 * config/arm/arm-cores.def: Add support for arm1156t2f-s.
19693 * doc/invoke.texi (ARM Options): Document support for arm1156t2f-s.
19694 * config/arm/arm-tune.md: Regenerate.
19695
19696 2009-04-28 Alexander Monakov <amonakov@ispras.ru>
19697
19698 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not attempt to delete a
19699 block if there are complex incoming edges.
19700 (sel_merge_blocks): Remove useless assert.
19701 (sel_redirect_edge_and_branch): Check that edge was redirected.
19702 * sel-sched-ir.h (_eligible_successor_edge_p): Remove assert.
19703 (sel_find_rgns): Delete declaration.
19704 * sel-sched.c (purge_empty_blocks): Attempt to remove first block of
19705 the region when it is not a preheader.
19706
19707 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
19708
19709 PR c/39323
19710 * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Sync with elfos.h
19711
19712 2009-04-28 Richard Guenther <rguenther@suse.de>
19713
19714 * tree.h (SSA_NAME_VALUE): Remove.
19715 (struct tree_ssa_name): Remove value_handle member.
19716 * tree-vrp.c (execute_vrp): Initialize/free the value-handle
19717 array for jump threading.
19718 * tree-ssa-propagate.c (ssa_prop_init): Do not initialize
19719 SSA_NAME_VALUEs.
19720 * print-tree.c (print_node): Do not dump SSA_NAME_VALUEs.
19721 * tree-flow.h (threadedge_initialize_values): Declare.
19722 (threadedge_finalize_values): Likewise.
19723 * tree-ssa-threadedge.c (ssa_name_values): New global variable.
19724 (SSA_NAME_VALUE): Define.
19725 (threadedge_initialize_values): New function.
19726 (threadedge_finalize_values): Likewise.
19727 * tree-ssa-dom.c (ssa_name_values): New global variable.
19728 (SSA_NAME_VALUE): Define.
19729 (tree_ssa_dominator_optimize): Initialize/free the value-handle array.
19730
19731 2009-04-28 Ira Rosen <irar@il.ibm.com>
19732
19733 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
19734 Use REPORT_VECTORIZED_LOCATIONS instead
19735 REPORT_VECTORIZED_LOOPS.
19736 * tree-vectorizer.c (vect_verbosity_level): Make static.
19737 (vect_loop_location): Rename to vect_location.
19738 (vect_set_verbosity_level): Update comment.
19739 (vect_set_dump_settings): Use REPORT_VECTORIZED_LOCATIONS
19740 and vect_location.
19741 (vectorize_loops): Fix comment. Use REPORT_VECTORIZED_LOCATIONS
19742 and vect_location. Use REPORT_UNVECTORIZED_LOCATIONS
19743 instead REPORT_UNVECTORIZED_LOOPS.
19744 * tree-vectorizer.h (enum vect_def_type): Rename vect_invariant_def
19745 and vect_loop_def to vect_external_def and vect_internal_def.
19746 (enum verbosity_levels): Rename REPORT_VECTORIZED_LOOPS
19747 and REPORT_UNVECTORIZED_LOOPS to REPORT_VECTORIZED_LOCATIONS and
19748 REPORT_UNVECTORIZED_LOCATIONS.
19749 (enum vect_relevant): Update comment. Rename vect_unused_in_loop
19750 and vect_used_in_loop and to vect_unused_in_scope and
19751 vect_used_in_scope.
19752 (STMT_VINFO_RELEVANT_P): Use vect_unused_in_scope.
19753 (vect_verbosity_level): Remove declaration.
19754 (vect_analyze_operations): Likewise.
19755 (vect_analyze_stmt): Declare.
19756 * tree-vect-loop.c (vect_determine_vectorization_factor): Use
19757 REPORT_UNVECTORIZED_LOCATIONS.
19758 (vect_get_loop_niters): Fix indentation.
19759 (vect_analyze_loop_form): Use REPORT_UNVECTORIZED_LOCATIONS.
19760 (vect_analyze_loop_operations): New function.
19761 (vect_analyze_loop): Call vect_analyze_loop_operations instead of
19762 vect_analyze_operations.
19763 (vect_is_simple_reduction): Use new names.
19764 (vectorizable_live_operation, vect_transform_loop): Likewise.
19765 * tree-vect-data-refs.c (vect_check_interleaving): Add a return value
19766 to specify whether the data references can be a part of interleaving
19767 chain.
19768 (vect_analyze_data_ref_dependence): Use new names.
19769 (vect_analyze_data_refs_alignment, vect_analyze_data_refs): Likewise.
19770 (vect_create_addr_base_for_vector_ref): Remove redundant code.
19771 * tree-vect-patterns.c (widened_name_p): Use new names.
19772 (vect_recog_dot_prod_pattern): Likewise.
19773 * tree-vect-stmts.c (vect_stmt_relevant_p): Use new names.
19774 (process_use, vect_mark_stmts_to_be_vectorized,
19775 vect_model_simple_cost, vect_model_store_cost,
19776 vect_get_vec_def_for_operand, vect_get_vec_def_for_stmt_copy,
19777 vectorizable_call, vectorizable_conversion, vectorizable_assignment,
19778 vectorizable_operation, vectorizable_type_demotion,
19779 vectorizable_type_promotion, vectorizable_store, vectorizable_load,
19780 vectorizable_condition): Likewise.
19781 (vect_analyze_operations): Split into vect_analyze_loop_operations
19782 and ...
19783 (vect_analyze_stmt): ... new function.
19784 (new_stmt_vec_info): Use new names.
19785 (vect_is_simple_use): Use new names and fix comment.
19786 * tree-vect-slp.c (vect_get_and_check_slp_defs): Use new names.
19787 (vect_build_slp_tree, vect_analyze_slp, vect_schedule_slp): Likewise.
19788
19789 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
19790
19791 PR target/39911
19792 * config/i386/i386.c (print_operand) ['Z']: Handle floating point
19793 and integer modes for x87 operands. Do not ICE for unsupported size,
19794 generate error instead. Generate error for unsupported operand types.
19795 ['z']: Do not handle HImode memory operands specially. Warning
19796 for floating-point operands. Fallthru to 'Z' for unsupported operand
19797 types. Do not ICE for unsupported size, generate error instead.
19798 (output_387_binary_op): Use %Z to output operands.
19799 (output_fp_compare): Ditto.
19800 (output_387_reg_move): Ditto.
19801
19802 2009-04-28 Ben Elliston <bje@au.ibm.com>
19803
19804 PR c++/35652
19805 Revert:
19806
19807 2009-03-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
19808
19809 * builtins.c (c_strlen): Do not warn here.
19810 * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
19811 * c-common.c (pointer_int_sum): Take an explicit location.
19812 Warn about offsets out of bounds.
19813 * c-common.h (pointer_int_sum): Adjust declaration.
19814
19815 2009-04-27 Ian Lance Taylor <iant@google.com>
19816
19817 * collect2.c (is_ctor_dtor): Change type of ret field in struct
19818 names to symkind.
19819 * dce.c (run_fast_df_dce): Change type of old_flags to int.
19820 * df-core.c (df_set_flags): Change return type to int. Change
19821 type of old_flags to int.
19822 (df_clear_flags): Likewise.
19823 * df-scan.c (df_def_record_1): Change 0 to VOIDmode.
19824 (df_get_conditional_uses): Likewise.
19825 * df.h (df_set_flags, df_clear_flags): Update declarations.
19826 * dwarf2out.c (struct indirect_string_node): Change type of form
19827 field to enum dwarf_form.
19828 (AT_string_form): Change return type to enum dwarf_form.
19829 * fixed-value.c (fixed_compare): Add cast to enum type.
19830 * fwprop.c (update_df): Change 0 to VOIDmode.
19831 * gensupport.c: Change 0 to UNKNOWN.
19832 * gimple.h (gimple_cond_code): Add cast to enum type.
19833 * haifa-sched.c (reemit_notes): Add cast to enum type.
19834 * hooks.c (hook_int_void_no_regs): Remove function.
19835 * hooks.h (hook_int_void_no_regs): Remove declaration.
19836 * optabs.c (expand_widen_pattern_expr): Change 0 to VOIDmode.
19837 * predict.c (combine_predictions_for_insn): Add casts to enum type.
19838 * real.c (real_arithmetic): Add cast to enum type.
19839 (real_compare): Likewise.
19840 * target.h (struct gcc_target): Change return type of
19841 branch_target_register_class to enum reg_class.
19842 * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Define as
19843 default_branch_target_register_class.
19844 * targhooks.c (default_branch_target_register_class): New function.
19845 * targhooks.h (default_branch_target_register_class): Declare.
19846 * tree-data-ref.c (print_direction_vector): Add cast to enum type.
19847 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Remove
19848 cast to int.
19849 * tree-vect-loop.c (vect_create_epilog_for_reduction): Change 0 to
19850 ERROR_MARK.
19851 * tree-vect-slp.c (vect_build_slp_tree): Change 0 to
19852 vect_uninitialized_def. Change 0 to ERROR_MARK.
19853 * tree-vect-stmts.c (supportable_widening_operation): Don't
19854 initialize icode1 and icode2.
19855 * tree-vectorizer.h (enum vect_def_type): Add vect_uninitialized_def.
19856 * config/sol2-c.c (cmn_err_length_specs): Change 0 to FMT_LEN_none
19857 and to STD_C89.
19858 (cmn_err_flag_specs): Change 0 to STD_C89.
19859 (cmn_err_char_table): Likewise.
19860 * config/arm/arm.c (get_arm_condition_code): Change type of code
19861 to enum arm_cond_code.
19862 (IWMMXT_BUILTIN): Change 0 to UNKNOWN.
19863 (IWMMXT_BUILTIN2): Likewise.
19864 (neon_builtin_type_bits): Don't define typedef.
19865 (neon_builtin_datum): Change type of bits field to int.
19866 (arm_expand_neon_args): Add cast to enum type.
19867 * config/ia64/ia64.c (tls_symbolic_operand_type): Change 0 to
19868 TLS_MODEL_NONE.
19869 * config/i386/i386.c (bdesc_multi_arg): Change 0 to UNKNOWN. Add
19870 casts to enum type.
19871 * config/mips/mips.c (LOONGSON_BUILTIN_ALIAS): Change 0 to
19872 MIPS_FP_COND_f.
19873 * config/mips/mips.md (jal_macro): Return enum constant.
19874 (single_insn): Likewise.
19875 * config/rs6000/rs6000.c (bdesc_altivec_preds): Change 0 to
19876 CODE_FOR_nothing.
19877 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
19878 casts to enum type.
19879 * config/s390/s390.c (s390_tune_flags): Change type to int.
19880 (s390_arch_flags): Likewise.
19881 (s390_handle_arch_option): Change flags field of struct pta to int.
19882 * config/s390/s390.h (s390_tune_flags): Update declaration.
19883 (s390_arch_flags): Likewise.
19884 * config/sh/sh.c (prepare_move_operands): Compare
19885 tls_symbolic_operand result with enum constant.
19886 (sh_reorg): Change PUT_MODE to PUT_REG_NOTE_KIND.
19887 (sh_expand_prologue): Add cast to enum type.
19888 (sh_expand_epilogue): Likewise.
19889 (tls_symbolic_operand): Change return type to enum tls_model.
19890 (fpscr_set_from_mem): Add cast to enum type.
19891 (legitimize_pic_address): Compare tls_symbolic_operand result with
19892 enum constant.
19893 (sh_target_reg_class): Change return type to enum reg_class.
19894 * config/sh/sh.h (OVERRIDE_OPTIONS): Change CPU_xxx to
19895 PROCESSOR_xxx.
19896 * config/sh/sh-protos.h (tls_symbolic_operand): Update declaration.
19897 * config/sparc/sparc.c (sparc_override_options): Add cast to enum type.
19898 * config/sparc/sparc.md (empty_delay_slot): Return enum constant.
19899 (pic, calls_alloca, calls_eh_return, leaf_function): Likewise.
19900 (delayed_branch, tls_call_delay): Likewise.
19901 (eligible_for_sibcall_delay): Likewise.
19902 (eligible_for_return_delay): Likewise.
19903 * config/spu/spu.c (expand_builtin_args): Add cast to enum type.
19904 (spu_expand_builtin_1): Likewise.
19905
19906 * c-typeck.c (convert_for_assignment): Issue -Wc++-compat warnings
19907 for all types of conversions.
19908 (output_init_element): Issue -Wc++-compat warning if needed when
19909 initializing a bitfield with enum type.
19910 * c-parser.c (c_parser_expression): Set original_type to
19911 original_type of right hand operand of comma operator.
19912
19913 2009-04-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19914
19915 * doc/c-tree.texi (Types, Functions, Expression trees): Fix
19916 grammar nits.
19917 * doc/cfg.texi (Maintaining the CFG, Liveness information): Likewise.
19918 * doc/cpp.texi (Standard Predefined Macros)
19919 (Implementation-defined behavior): Likewise.
19920 * doc/extend.texi (Function Attributes, Type Attributes): Likewise.
19921 * doc/gimple.texi (GIMPLE Exception Handling)
19922 (@code{GIMPLE_ASSIGN}): Likewise.
19923 * doc/install.texi (Prerequisites, Configuration, Specific): Likewise.
19924 * doc/invoke.texi (Warning Options, Optimize Options)
19925 (AVR Options, Darwin Options): Likewise.
19926 (Optimize Options): Reformulate -fwhole-program description.
19927 * doc/loop.texi (Lambda): Likewise.
19928 * doc/md.texi (Output Template, Define Constraints)
19929 (Standard Names, Insn Splitting): Likewise.
19930 * doc/options.texi (Option properties): Likewise.
19931 * doc/passes.texi (Tree-SSA passes): Likewise.
19932 * doc/rtl.texi (Side Effects, Assembler, Insns): Likewise.
19933 * doc/tm.texi (Register Classes, Old Constraints, Scalar Return)
19934 (File Names and DBX): Likewise.
19935 * doc/trouble.texi (Incompatibilities): Likewise.
19936
19937 2009-04-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
19938
19939 * spu.c (spu_machine_dependent_reorg): Make sure branch label on hint
19940 instruction is correct.
19941
19942 2009-04-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
19943
19944 Allow non-constant arguments to conversion intrinsics.
19945 * spu-protos.h (exp2_immediate_p, spu_gen_exp2): Declare.
19946 * predicates.md (spu_inv_exp2_operand, spu_exp2_operand): New.
19947 * spu.c (print_operand): Handle 'v' and 'w'.
19948 (exp2_immediate_p, spu_gen_exp2): Define.
19949 * spu-builtins.def (spu_convts, spu_convtu, spu_convtf_0,
19950 spu_convtf_1): Update parameter descriptions.
19951 * spu-builtins.md (spu_csflt, spu_cuflt, spu_cflts, spu_cfltu): Update.
19952 * constraints.md ('v', 'w'): New.
19953 * spu.md (UNSPEC_CSFLT, UNSPEC_CFLTS, UNSPEC_CUFLT, UNSPEC_CFLTU):
19954 Remove.
19955 (i2f, I2F): New define_mode_attr.
19956 (floatsisf2, floatv4siv4sf2, fix_truncsfsi2, fix_truncv4sfv4si2,
19957 floatunssisf2, floatunsv4siv4sf2, fixuns_truncsfsi2,
19958 fixuns_truncv4sfv4si2): Update to use mode attribute.
19959 (float<mode><i2f>2_mul, float<mode><i2f>2_div,
19960 fix_trunc<mode><f2i>2_mul, floatuns<mode><i2f>2_mul,
19961 floatuns<mode><i2f>2_div, fixuns_trunc<mode><f2i>2_mul): New
19962 patterns for combine.
19963
19964 2009-04-27 Steven Bosscher <steven@gcc.gnu.org>
19965
19966 * dbgcnt.def (cprop1, cprop2, gcse, jump_bypass): Remove
19967 (cprop, hoist, pre, store_motion): New debug counters.
19968 * tree-pass.h (pass_tracer): Move to list of gimple passes, it
19969 is not an RTL pass anymore.
19970 (pass_profiling): Remove extern decl for pass removed in 2005.
19971 (pass_gcse, pass_jump_bypass): Remove.
19972 * final.c (rest_of_clean_state): Set flag_rerun_cse_after_global_opts
19973 to 0 for clean state.
19974 * toplev.h (flag_rerun_cse_after_global_opts): Add extern declaration.
19975 * cse.c (gate_handle_cse_after_global_opts,
19976 rest_of_handle_cse_after_global_opts): New functions.
19977 (pass_cse_after_global_opts): New pass, does local CSE.
19978 * timevar.def (TV_GCSE, TV_CPROP1, TV_CPROP2, TV_BYPASS): Remove.
19979 (TV_CPROP): New timevar.
19980 * gcse.c (flag_rerun_cse_after_global_opts): New global variable.
19981 (run_jump_opt_after_gcse, max_gcse_regno): Remove global vars.
19982 (gcse_main, recompute_all_luids): Remove.
19983 (compute_hash_table_work): Call max_reg_num instead of reading
19984 max_gcse_regno.
19985 (cprop_jump): Don't set run_jump_opt_after_gcse.
19986 (constprop_register): Always allow to alter jumps.
19987 (cprop_insn): Likewise.
19988 (do_local_cprop): Likewise.
19989 (local_cprop_pass): Likewise. Return non-zero if something changed.
19990 (cprop): Remove function, fold interesting bits into one_cprop_pass.
19991 (find_implicit_sets): Add note about missed optimization opportunity.
19992 (one_cprop_pass): Rewrite to be "the" CPROP pass, called from the
19993 pass_rtl_cprop execute function.
19994 Don't bother tracking the pass number, each pass gets its own dumpfile
19995 now anyway.
19996 Always allow to alter jumpsand bypass jumps.
19997 (bypass_block): Don't ignore regno >= max_gcse_regno, find_bypass_set
19998 will just find no suitable set.
19999 (pre_edge_insert): Fix dumping, this function is for PRE only.
20000 (one_pre_gcse_pass): Rewrite to be "the" PRE pass, called from the
20001 pass_rtl_pre execute function.
20002 (hoist_code): Return non-zero if something changed. Keep track of
20003 substitutions and insertions for statistics gathering similar to PRE.
20004 (one_code_hoisting_pass): Rewrite to be "the" code hoisting pass,
20005 called from the pass_rtl_hoist execute function. Show pass statistics.
20006 (compute_store_table): Use max_reg_num directly instead of using the
20007 formerly global max_gcse_regno.
20008 (build_store_vectors): Likewise.
20009 (replace_store_insn): Fix dumping.
20010 (store_motion): Rename to ...
20011 (one_store_motion_pass): ... this. Rewrite to be "the" STORE_MOTION
20012 pass, called from the pass_rtl_store_motion execute function. Keep
20013 track of substitutions and insertions for statistics gathering similar
20014 to PRE.
20015 (bypass_jumps): Remove, fold interesting bits into ...
20016 (one_cprop_pass): ... this. Rewrite to be "the" CPROP pass, called
20017 from the pass_rtl_cprop execute function.
20018 (gate_handle_jump_bypass, rest_of_handle_jump_bypass,
20019 pass_jump_bypass): Remove.
20020 (gate_handle_gcse, rest_of_handle_gcse): Remove.
20021 (gate_rtl_cprop, execute_rtl_cprop, pass_rtl_cprop): New.
20022 (gate_rtl_pre, execute_rtl_pre, pass_rtl_pre): New.
20023 (gate_rtl_hoist, execute_rtl_hoist, pass_rtl_hoist): New.
20024 (gate_rtl_store_motion, execute_rtl_store_motion,
20025 pass_rtl_store_motion): New.
20026 * common.opt: Remove flag_cse_skip_blocks, adjust documentation to
20027 make it clear that -fcse-skip-blocks is a no-op for backward compat.
20028 * passes.c (init_optimization_passes): Remove pass_gcse and
20029 pass_jump_bypass. Schedule cprop, pre, hoist, cprop, store_motion,
20030 and cse_after_global_opts in place of pass_gcse. Schedule cprop
20031 instead of pass_jump_bypass.
20032
20033 2009-04-27 Richard Guenther <rguenther@suse.de>
20034
20035 PR middle-end/39928
20036 * gimplify.c (gimplify_expr): If we are required to create
20037 a temporary make sure it ends up as register.
20038
20039 2009-04-27 H.J. Lu <hongjiu.lu@intel.com>
20040
20041 PR target/39903
20042 * config/i386/i386.c (construct_container): Don't call
20043 gen_reg_or_parallel with BLKmode on X86_64_SSE_CLASS,
20044 X86_64_SSESF_CLASS and X86_64_SSEDF_CLASS.
20045
20046 2009-04-27 Michael Matz <matz@suse.de>
20047
20048 * ssaexpand.h (struct ssaexpand): Member 'values' is a bitmap.
20049 (get_gimple_for_ssa_name): Adjust, lookup using SSA_NAME_DEF_STMT.
20050 * tree-ssa-live.h: (find_replaceable_exprs): Return a bitmap.
20051 (dump_replaceable_exprs): Take a bitmap.
20052 * cfgexpand.c (gimple_cond_pred_to_tree): Handle bitmap instead of
20053 array.
20054 (expand_gimple_basic_block): Likewise.
20055 * tree-ssa-ter.c (struct temp_expr_table_d): Make
20056 replaceable_expressions member a bitmap.
20057 (free_temp_expr_table): Pass back and deal with bitmap, not gimple*.
20058 (mark_replaceable): Likewise.
20059 (find_replaceable_in_bb, dump_replaceable_exprs): Likewise.
20060 * tree-outof-ssa.c (remove_ssa_form): 'values' is a bitmap.
20061
20062 2009-04-27 Richard Guenther <rguenther@suse.de>
20063
20064 * tree-cfg.c (remove_useless_stmts): Verify stmts afterwards.
20065 (verify_stmts): Dispatch to gimple/type verification code.
20066 * tree-inline.c (remap_gimple_op_r): Work around C++ FE
20067 issue with call argument types.
20068
20069 2009-04-27 Michael Matz <matz@suse.de>
20070
20071 * tree-into-ssa.c (regs_to_rename, mem_syms_to_rename): Remove.
20072 (init_update_ssa, delete_update_ssa, update_ssa): Remove references
20073 to above.
20074
20075 2009-04-27 Richard Sandiford <rdsandiford@googlemail.com>
20076 Eric Botcazou <ebotcazou@adacore.com>
20077
20078 * resource.c (find_basic_block): Use BLOCK_FOR_INSN to look up
20079 a label's basic block.
20080 (mark_target_live_regs): Tidy and rework obsolete comments.
20081 Change back DF problem to LIVE. If a label starts a basic block,
20082 assume that all registers that used to be live then still are.
20083 (init_resource_info): If a label starts a basic block, set its
20084 BLOCK_FOR_INSN accordingly.
20085 (fini_resource_info): Undo the setting of BLOCK_FOR_INSN.
20086
20087 2009-04-27 Richard Guenther <rguenther@suse.de>
20088
20089 * tree-flow-inline.h (function_ann): Remove.
20090 (get_function_ann): Likewise.
20091 * tree-dfa.c (create_function_ann): Remove.
20092 * tree-flow.h (struct static_var_ann_d): Remove.
20093 (struct function_ann_d): Likewise.
20094 (union tree_ann_d): Remove fdecl member.
20095 (function_ann_t): Remove.
20096 (function_ann, get_function_ann, create_function_ann): Remove
20097 declarations.
20098
20099 2009-04-27 Uros Bizjak <ubizjak@gmail.com>
20100
20101 * config/alpha/alpha.c (code_for_builtin): Declare as enum insn_code.
20102
20103 2009-04-27 Jan Hubicka <jh@suse.cz>
20104
20105 * ipa-pure-const.c (struct funct_state_d): New fields
20106 state_previously_known, looping_previously_known; remove
20107 state_set_in_source.
20108 (analyze_function): Use new fields.
20109 (propagate): Avoid assumption that state_set_in_source imply
20110 nonlooping.
20111
20112 * tree-ssa-loop-niter.c (finite_loop_p): New function.
20113 * tree-ssa-loop-ivcanon.c (empty_loop_p): Use it.
20114 * cfgloop.h (finite_loop_p): Declare.
20115
20116 2009-04-26 Michael Matz <matz@suse.de>
20117
20118 * tree-flow.h (tree_ann_common_d): Remove aux and value_handle members.
20119
20120 2009-04-26 Michael Matz <matz@suse.de>
20121
20122 * tree-pass.h (pass_del_ssa, pass_mark_used_blocks,
20123 pass_free_cfg_annotations, pass_free_datastructures): Remove decls.
20124 * gimple-low.c (mark_blocks_with_used_vars, mark_used_blocks,
20125 pass_mark_used_blocks): Remove.
20126 * tree-optimize.c (pass_free_datastructures,
20127 execute_free_cfg_annotations, pass_free_cfg_annotations): Remove.
20128 * passes.c (init_optimization_passes): Don't call
20129 pass_mark_used_blocks, remove dead code.
20130
20131 2009-04-26 H.J. Lu <hongjiu.lu@intel.com>
20132
20133 * tree-outof-ssa.c (rewrite_trees): Add ATTRIBUTE_UNUSED.
20134 * tree-ssa-live.h (register_ssa_partition): Likewise.
20135
20136 2009-04-26 Michael Matz <matz@suse.de>
20137
20138 Expand from SSA.
20139 * builtins.c (fold_builtin_next_arg): Handle SSA names.
20140 * tree-ssa-copyrename.c (rename_ssa_copies): Use ssa_name() directly.
20141 * tree-ssa-coalesce.c (create_outofssa_var_map): Mark only useful
20142 SSA names.
20143 (compare_pairs): Swap cost comparison.
20144 (coalesce_ssa_name): Don't use change_partition_var.
20145 * tree-nrv.c (struct nrv_data): Add modified member.
20146 (finalize_nrv_r): Set it.
20147 (tree_nrv): Use it to update statements.
20148 (pass_nrv): Require PROP_ssa.
20149 * tree-mudflap.c (mf_decl_cache_locals,
20150 mf_build_check_statement_for): Use make_rename_temp.
20151 (pass_mudflap_2): Require PROP_ssa, run ssa update at finish.
20152 * alias.c (find_base_decl): Handle SSA names.
20153 * emit-rtl (set_reg_attrs_for_parm): Make non-static.
20154 (component_ref_for_mem_expr): Don't leak SSA names into RTL.
20155 * rtl.h (set_reg_attrs_for_parm): Declare.
20156 * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Rename
20157 to "optimized", remove unused locals at finish.
20158 (execute_free_datastructures): Make global, call
20159 delete_tree_cfg_annotations.
20160 (execute_free_cfg_annotations): Don't call
20161 delete_tree_cfg_annotations.
20162
20163 * ssaexpand.h: New file.
20164 * expr.c (toplevel): Include ssaexpand.h.
20165 (expand_assignment): Handle SSA names the same as register variables.
20166 (expand_expr_real_1): Expand SSA names.
20167 * cfgexpand.c (toplevel): Include ssaexpand.h.
20168 (SA): New global variable.
20169 (gimple_cond_pred_to_tree): Fold TERed comparisons into predicates.
20170 (SSAVAR): New macro.
20171 (set_rtl): New helper function.
20172 (add_stack_var): Deal with SSA names, use set_rtl.
20173 (expand_one_stack_var_at): Likewise.
20174 (expand_one_stack_var): Deal with SSA names.
20175 (stack_var_size_cmp): Use code (SSA_NAME / DECL) as tie breaker
20176 before unique numbers.
20177 (expand_stack_vars): Use set_rtl.
20178 (expand_one_var): Accept SSA names, add asserts for them, feed them
20179 to above subroutines.
20180 (expand_used_vars): Expand all partitions (without default defs),
20181 then only the local decls (ignoring those expanded already).
20182 (expand_gimple_cond): Remove edges when jumpif() expands an
20183 unconditional jump.
20184 (expand_gimple_basic_block): Don't clear EDGE_EXECUTABLE here,
20185 or remove abnormal edges. Ignore insns setting the LHS of a TERed
20186 SSA name.
20187 (gimple_expand_cfg): Call into rewrite_out_of_ssa, initialize
20188 members of SA; deal with PARM_DECL partitions here; expand
20189 all PHI nodes, free tree datastructures and SA. Commit instructions
20190 on edges, clear EDGE_EXECUTABLE and remove abnormal edges here.
20191 (pass_expand): Require and destroy PROP_ssa, verify SSA form, flow
20192 info and statements at start, collect garbage at finish.
20193 * tree-ssa-live.h (struct _var_map): Remove partition_to_var member.
20194 (VAR_ANN_PARTITION) Remove.
20195 (change_partition_var): Don't declare.
20196 (partition_to_var): Always return SSA names.
20197 (var_to_partition): Only accept SSA names.
20198 (register_ssa_partition): Only check argument.
20199 * tree-ssa-live.c (init_var_map): Don't allocate partition_to_var
20200 member.
20201 (delete_var_map): Don't free it.
20202 (var_union): Only accept SSA names, simplify.
20203 (partition_view_init): Mark only useful SSA names as used.
20204 (partition_view_fini): Only deal with SSA names.
20205 (change_partition_var): Remove.
20206 (dump_var_map): Use ssa_name instead of partition_to_var member.
20207 * tree-ssa.c (delete_tree_ssa): Don't remove PHI nodes on RTL
20208 basic blocks.
20209 * tree-outof-ssa.c (toplevel): Include ssaexpand.h and expr.h.
20210 (struct _elim_graph): New member const_dests; nodes member vector of
20211 ints.
20212 (set_location_for_edge): New static helper.
20213 (create_temp): Remove.
20214 (insert_partition_copy_on_edge, insert_part_to_rtx_on_edge,
20215 insert_value_copy_on_edge, insert_rtx_to_part_on_edge): New functions.
20216 (new_elim_graph): Allocate const_dests member.
20217 (clean_elim_graph): Truncate const_dests member.
20218 (delete_elim_graph): Free const_dests member.
20219 (elim_graph_size): Adapt to new type of nodes member.
20220 (elim_graph_add_node): Likewise.
20221 (eliminate_name): Likewise.
20222 (eliminate_build): Don't take basic block argument, deal only with
20223 partition numbers, not variables.
20224 (get_temp_reg): New static helper.
20225 (elim_create): Use it, deal with RTL temporaries instead of trees.
20226 (eliminate_phi): Adjust all calls to new signature.
20227 (assign_vars, replace_use_variable, replace_def_variable): Remove.
20228 (rewrite_trees): Only do checking.
20229 (edge_leader, stmt_list, leader_has_match, leader_match): Remove.
20230 (same_stmt_list_p, identical_copies_p, identical_stmt_lists_p,
20231 init_analyze_edges_for_bb, fini_analyze_edges_for_bb,
20232 contains_tree_r, MAX_STMTS_IN_LATCH,
20233 process_single_block_loop_latch, analyze_edges_for_bb,
20234 perform_edge_inserts): Remove.
20235 (expand_phi_nodes): New global function.
20236 (remove_ssa_form): Take ssaexpand parameter. Don't call removed
20237 functions, initialize new parameter, remember partitions having a
20238 default def.
20239 (finish_out_of_ssa): New global function.
20240 (rewrite_out_of_ssa): Make global. Adjust call to remove_ssa_form,
20241 don't reset in_ssa_p here, don't disable TER when mudflap.
20242 (pass_del_ssa): Remove.
20243 * tree-flow.h (struct var_ann_d): Remove out_of_ssa_tag and
20244 partition members.
20245 (execute_free_datastructures): Declare.
20246 * Makefile.in (SSAEXPAND_H): New variable.
20247 (tree-outof-ssa.o, expr.o, cfgexpand.o): Depend on SSAEXPAND_H.
20248 * basic-block.h (commit_one_edge_insertion): Declare.
20249 * passes.c (init_optimization_passes): Move pass_nrv and
20250 pass_mudflap2 before pass_cleanup_cfg_post_optimizing, remove
20251 pass_del_ssa, pass_free_datastructures, pass_free_cfg_annotations.
20252 * cfgrtl.c (commit_one_edge_insertion): Make global, don't declare.
20253 (redirect_branch_edge): Deal with super block when expanding, split
20254 out jump patching itself into ...
20255 (patch_jump_insn): ... here, new static helper.
20256
20257 2009-04-26 Michael Matz <matz@suse.de>
20258
20259 * tree-ssa-copyrename.c (rename_ssa_copies): Don't iterate
20260 beyond num_ssa_names.
20261 * tree-ssa-ter.c (free_temp_expr_table): Likewise.
20262 * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
20263
20264 2009-04-26 Jakub Jelinek <jakub@redhat.com>
20265
20266 PR inline-asm/39543
20267 * fwprop.c (forward_propagate_asm): New function.
20268 (forward_propagate_and_simplify): Propagate also into __asm, if it
20269 doesn't increase the number of referenced registers.
20270
20271 PR c/39889
20272 * stmt.c (warn_if_unused_value): Look through NON_LVALUE_EXPR.
20273
20274 2009-04-26 Jakub Jelinek <jakub@redhat.com>
20275
20276 * tree-nested.c (get_nonlocal_vla_type): If not optimizing, call
20277 note_nonlocal_vla_type for nonlocal VLAs.
20278 (note_nonlocal_vla_type, note_nonlocal_block_vlas,
20279 contains_remapped_vars, remap_vla_decls): New functions.
20280 (convert_nonlocal_reference_stmt): If not optimizing, call
20281 note_nonlocal_block_vlas on GIMPLE_BIND block vars.
20282 (nesting_copy_decl): Return {VAR,PARM,RESULT}_DECL unmodified
20283 if it wasn't found in var_map.
20284 (finalize_nesting_tree_1): Call remap_vla_decls. If outermost
20285 GIMPLE_BIND doesn't have gimple_bind_block, chain debug_var_chain
20286 to BLOCK_VARS (DECL_INITIAL (root->context)) instead of calling
20287 declare_vars.
20288 * gimplify.c (nonlocal_vlas): New variable.
20289 (gimplify_var_or_parm_decl): Add debug VAR_DECLs for non-local
20290 referenced VLAs.
20291 (gimplify_body): Create and destroy nonlocal_vlas.
20292
20293 * dwarf2out.c (loc_descr_plus_const): New function.
20294 (build_cfa_aligned_loc, tls_mem_loc_descriptor,
20295 mem_loc_descriptor, loc_descriptor_from_tree_1,
20296 descr_info_loc, gen_variable_die): Use it.
20297
20298 * tree.h (DECL_BY_REFERENCE): Note that it is also valid for
20299 !TREE_STATIC VAR_DECLs.
20300 * dwarf2out.c (loc_by_reference, gen_decl_die): Handle
20301 DECL_BY_REFERENCE on !TREE_STATIC VAR_DECLs.
20302 (gen_variable_die): Likewise. Don't look at TREE_PRIVATE if
20303 DECL_BY_REFERENCE is valid.
20304 * dbxout.c (DECL_ACCESSIBILITY_CHAR): Don't look at TREE_PRIVATE
20305 for PARM_DECLs, RESULT_DECLs or !TREE_STATIC VAR_DECLs.
20306 * tree-nested.c (get_nonlocal_debug_decl, get_local_debug_decl):
20307 Copy DECL_BY_REFERENCE.
20308 (struct nesting_copy_body_data): New type.
20309 (nesting_copy_decl): New function.
20310 (finalize_nesting_tree_1): Remap types of debug_var_chain variables,
20311 if they have variable length.
20312
20313 2009-04-26 Michael Matz <matz@suse.de>
20314
20315 * tree-sra.c (sra_build_assignment): Don't use into_ssa mode,
20316 mark new temporaries for renaming.
20317
20318 2009-04-26 Joseph Myers <joseph@codesourcery.com>
20319
20320 PR c/39581
20321 * c-decl.c (global_bindings_p): Return negative value.
20322 (c_variable_size): New. Based on variable_size from
20323 stor-layout.c.
20324 (grokdeclarator): Call c_variable_size not variable_size.
20325
20326 2009-04-26 Uros Bizjak <ubizjak@gmail.com>
20327
20328 * config/i386/i386.c (print_operand) ['z']: Fix typo.
20329
20330 2009-04-26 Kai Tietz <kai.tietz@onevision.com>
20331
20332 * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR):
20333 Redefine it to just use mingw/include.
20334 (ASM_SPEC): Rules for -m32 and -m64.
20335 (LINK_SPEC): Use Likewise.
20336 (SPEC_32): New define.
20337 (SPEC_64): Likewise.
20338 (SUB_LINK_SPEC): Likewise.
20339 (MULTILIB_DEFAULTS): New define.
20340 * config/i386/t-mingw-w64 (MULTILIB_OPTIONS):
20341 Add multilib options.
20342 (MULTILIB_DIRNAMES): Likewise.
20343 (MULTILIB_OSDIRNAMES): Likewise.
20344 (LIBGCC): Likewise.
20345 (INSTALL_LIBGCC): Likewise.
20346
20347 2009-04-26 Joseph Myers <joseph@codesourcery.com>
20348
20349 PR c/39556
20350 * c-tree.h (enum c_inline_static_type): New.
20351 (record_inline_static): Declare.
20352 * c-decl.c (struct c_inline_static, c_inline_statics,
20353 record_inline_static, check_inline_statics): New.
20354 (pop_file_scope): Call check_inline_statics.
20355 (start_decl): Call record_inline_static instead of pedwarning
20356 directly for static in inline function.
20357 * c-typeck.c (build_external_ref): Call record_inline_static
20358 instead of pedwarning directly for static referenced in inline
20359 function.
20360
20361 2009-04-26 Steven Bosscher <steven@gcc.gnu.org>
20362
20363 * df-scan.c (df_insn_rescan): Salvage insn's LUID if the insn is
20364 not new but only being rescanned.
20365 * gcse.c (uid_cuid, max_uid, INSN_CUID, max_cuid, struct reg_set,
20366 reg_set_table, REG_SET_TABLE_SLOP, reg_set_in_block,
20367 alloc_reg_set_mem, free_reg_set_mem, record_one_set,
20368 record_set_info, compute_set, grealloc): Remove.
20369 (recompute_all_luids): New function.
20370 (gcse_main): Don't compute sets, and don't do related memory
20371 allocations/free-ing. If something changed before the end of the
20372 pass, update LUIDs using recompute_all_luids.
20373 (alloc_gcse_mem): Don't compute LUIDs. Don't allocate reg_set memory.
20374 (free_gcse_mem): Don't free it either.
20375 (oprs_unchanged_p, load_killed_in_block, record_last_reg_set_info):
20376 Use the df insn LUIDs.
20377 (load_killed_in_block): Likewise.
20378 (compute_hash_table_work): Don't compute reg_set_in_block.
20379 (compute_transp): Use DF_REG_DEF_CHAINs.
20380 (local_cprop_pass): Don't use compute_sets and related functions.
20381 (one_cprop_pass, pre_gcse, one_pre_gcse_pass, one_code_hoisting_pass):
20382 Use get_max_uid() instead of max_cuid.
20383 (insert_insn_end_basic_block, pre_insert_copy_insn,
20384 update_ld_motion_stores): Don't try to
20385 keep reg_set tables up to date.
20386 (pre_insert_copies): Use df insn LUIDs.
20387 (sbitmap pre_redundant_insns): Replace with uses of INSN_DELETED_P.
20388 (reg_set_info): Don't use extra bitmap argument.
20389 (compute_store_table): Don't compute reg_set_in_block. Use DF scan
20390 information to compute regs_set_in_block.
20391 (free_store_memory, store_motion): Don't nullify reg_set_in_block.
20392 (bypass_jumps): Don't use compute_sets and friends.
20393
20394 2009-04-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20395
20396 PR testsuite/39710
20397 * opts.c (undocumented_msg): Do not leave blank even with
20398 ENABLE_CHECKING.
20399
20400 2009-04-25 Joseph Myers <joseph@codesourcery.com>
20401
20402 * c-decl.c (build_enumerator): Allow values folding to integer
20403 constants but not integer constant expressions with a pedwarn if
20404 pedantic.
20405
20406 2009-04-25 Joseph Myers <joseph@codesourcery.com>
20407
20408 PR c/39582
20409 * c-typeck.c (c_expr_sizeof_type): Create a C_MAYBE_CONST_EXPR
20410 with non-null C_MAYBE_CONST_EXPR_PRE if size of a variable-length
20411 type is an integer constant.
20412
20413 2009-04-25 Uros Bizjak <ubizjak@gmail.com>
20414
20415 PR target/39897
20416 * config/i386/i386.c (print_operand) ['z']: Revert handling of
20417 HImode operands.
20418
20419 2009-04-25 Joseph Myers <joseph@codesourcery.com>
20420
20421 PR c/39564
20422 * c-decl.c (grokdeclarator): Diagnose declarations of functions
20423 with variably modified return type and no storage class
20424 specifiers, except for the case of nested functions. Distinguish
20425 extern declarations of functions with variably modified return
20426 types from those of objects with variably modified types.
20427
20428 2009-04-25 Jan Hubicka <jh@suse.cz>
20429
20430 * tree.c (list_equal_p): New function.
20431 * tree.h (list_equal_p): Declare.
20432 * coretypes.h (edge_def, edge, const_edge, basic_block_def
20433 basic_block_def, basic_block, const_basic_block): New.
20434 * tree-eh.c (make_eh_edge): EH edges are not abnormal.
20435 (redirect_eh_edge): New function.
20436 (make_eh_edge_update_phi): EH edges are not abnormal.
20437 * except.c: Include tree-flow.h.
20438 (list_match): New function.
20439 (eh_region_replaceable_by_p): New function.
20440 (replace_region): New function.
20441 (hash_type_list): New function.
20442 (hash_eh_region): New function.
20443 (eh_regions_equal_p): New function.
20444 (merge_peers): New function.
20445 (remove_unreachable_regions): Verify EH tree when checking;
20446 merge peers.
20447 (copy_eh_region_1): New function.
20448 (copy_eh_region): New function.
20449 (push_reachable_handler): New function.
20450 (build_post_landing_pads, dw2_build_landing_pads): Be ready for
20451 regions without label but with live RESX.
20452 * except.h (redirect_eh_edge_to_label): New.
20453 * tree-flow.h (redirect_eh_edge): New.
20454 * coretypes.h (edge_def, edge, const_edge, basic_block_def
20455 basic_block_def, basic_block, const_basic_block): Remove.
20456 * Makefile.in (except.o): Add dependency on tree-flow.h
20457 * tree-cfg.c (gimple_redirect_edge_and_branch): Handle EH edges.
20458 * basic-block.h (edge, const_edge, basic_block, const_basic_block):
20459 Remove.
20460
20461 2009-04-25 Eric Botcazou <ebotcazou@adacore.com>
20462
20463 PR bootstrap/39645
20464 * config/sparc/sparc.c (sparc_gimplify_va_arg): Set TREE_ADDRESSABLE
20465 on the destination of memcpy.
20466
20467 2009-04-25 Paolo Bonzini <bonzini@gnu.org>
20468
20469 * doc/tm.texi (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
20470 REGNO_MODE_OK_FOR_REG_BASE_P, REGNO_MODE_CODE_OK_FOR_BASE_P,
20471 REGNO_OK_FOR_INDEX_P): Mention strict/nonstrict difference.
20472
20473 2009-04-25 Jan Hubicka <jh@suse.cz>
20474
20475 * tree-eh.c (tree_remove_unreachable_handlers): Handle shared labels.
20476 (tree_empty_eh_handler_p): Allow non-EH predecestors; allow region
20477 to be reached by different label than left.
20478 (update_eh_edges): Update comment; remove edge_to_remove if possible
20479 and return true if suceeded.
20480 (cleanup_empty_eh): Accept sharing map; handle shared regions.
20481 (cleanup_eh): Compute sharing map.
20482 * except.c (remove_eh_handler_and_replace): Add argument if we should
20483 update regions.
20484 (remove_unreachable_regions): Update for label sharing.
20485 (label_to_region_map): Likewise.
20486 (get_next_region_sharing_label): New function.
20487 (remove_eh_handler_and_replace): Add update_catch_try parameter; update
20488 prev_try pointers.
20489 (remove_eh_handler): Update.
20490 (remove_eh_region_and_replace_by_outer_of): New function.
20491 * except.h (struct eh_region): Add next_region_sharing_label.
20492 (remove_eh_region_and_replace_by_outer_of,
20493 get_next_region_sharing_label): Declare.
20494 * tree-cfgcleanup.c (tree_forwarder_block_p): Simplify.
20495
20496 2009-04-25 Jan Hubicka <jh@suse.cz>
20497
20498 * tree-cfg.c (split_critical_edges): Split also edges where we can't
20499 insert code even if they are not critical.
20500
20501 2009-04-25 Jan Hubicka <jh@suse.cz>
20502
20503 * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
20504 (gimple_can_remove_branch_p): EH edges won't remove branch by
20505 redirection.
20506 * tree-inline.c (update_ssa_across_abnormal_edges): Do handle
20507 updating of non-abnormal EH edges.
20508 * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
20509 (gimple_can_remove_branch_p): EH edges are unremovable by redirection.
20510 (split_critical_edges): Split also edges where emitting code on them
20511 will lead to splitting later.
20512
20513 2009-04-25 Uros Bizjak <ubizjak@gmail.com>
20514 H.J. Lu <hongjiu.lu@intel.com>
20515
20516 PR target/39590
20517 * configure.ac (HAVE_AS_IX86_FILDQ): On x86 targets check whether
20518 the configured assembler supports fildq and fistpq mnemonics.
20519 (HAVE_AS_IX86_FILDS): Rename from HAVE_GAS_FILDS_FISTS.
20520 * configure: Regenerated.
20521 * config.in: Ditto.
20522
20523 * config/i386/i386.c (print_operand): Handle 'Z'.
20524 ['z']: Remove handling of special fild/fist suffixes.
20525 (output_fix_trunc): Use '%Z' to output suffix of fist{,p,tp} insn.
20526 * config/i386/i386.md (*floathi<mode>2_i387): Use '%Z' to output
20527 suffix of fild insn.
20528 (*floatsi<mode>2_vector_mixed): Ditto.
20529 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Ditto.
20530 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Ditto.
20531 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
20532 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387): Ditto.
20533 * config/i386/gas.h (GAS_MNEMONICS): Remove.
20534
20535 2009-04-25 Ben Elliston <bje@au.ibm.com>
20536
20537 * genrecog.c (validate_pattern): Do not warn for VOIDmode CALLs as
20538 the source of a set operation.
20539
20540 2009-04-25 Anatoly Sokolov <aesok@post.ru>
20541
20542 * target.h (struct gcc_target): Add case_values_threshold field.
20543 * target-def.h (TARGET_CASE_VALUES_THRESHOLD): New.
20544 (TARGET_INITIALIZER): Use TARGET_CASE_VALUES_THRESHOLD.
20545 * targhooks.c (default_case_values_threshold): New function.
20546 * targhooks.h (default_case_values_threshold): Declare function.
20547 * stmt.c (expand_case): Use case_values_threshold target hook.
20548 * expr.h (case_values_threshold): Remove declartation.
20549 * expr.c (case_values_threshold): Remove function.
20550 * doc/tm.texi (CASE_VALUES_THRESHOLD): Revise documentation.
20551
20552 * config/avr/avr.h (CASE_VALUES_THRESHOLD): Remove macro.
20553 * config/avr/avr.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
20554 (avr_case_values_threshold): Declare as static.
20555 * config/avr/avr-protos.h (avr_case_values_threshold): Remove.
20556
20557 * config/avr/mn10300.h (CASE_VALUES_THRESHOLD): Remove macro.
20558 * config/avr/mn10300.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
20559 (mn10300_case_values_threshold): New function.
20560
20561 2009-04-24 H.J. Lu <hongjiu.lu@intel.com>
20562
20563 * ira.c (setup_cover_and_important_classes): Add enum cast.
20564
20565 2009-04-24 Vladimir Makarov <vmakarov@redhat.com>
20566
20567 * genpreds.c (write_enum_constraint_num): Output definition of
20568 CONSTRAINT_NUM_DEFINED_P macro.
20569 * ira.c (setup_cover_and_important_classes): Use
20570 CONSTRAINT_NUM_DEFINED_P instead of CONSTRAINT__LIMIT in #ifdef.
20571
20572 2009-04-24 DJ Delorie <dj@redhat.com>
20573
20574 * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Test
20575 __SH2A_SINGLE_ONLY__ also.
20576
20577 2009-04-24 Steve Ellcey <sje@cup.hp.com>
20578
20579 * config/ia64/ia64.md (movfs_internal): Allow flt constants.
20580 (movdf_internal): Ditto.
20581 * config/ia64/ia64.c (ia64_legitimate_constant_p): Allow
20582 SFmode and DFmode constants.
20583 (ia64_print_operand): Add 'G' format for printing
20584 floating point constants.
20585
20586 2009-04-24 Richard Guenther <rguenther@suse.de>
20587
20588 * tree-vrp.c (extract_range_from_binary_expr): Handle overflow
20589 from unsigned additions.
20590
20591 2009-04-24 Joseph Myers <joseph@codesourcery.com>
20592
20593 * c-typeck.c (set_init_index): Allow array designators that are
20594 not integer constant expressions with a pedwarn if pedantic.
20595
20596 2009-04-24 Bernd Schmidt <bernd.schmidt@analog.com>
20597
20598 * simplify-rtx.c (simplify_binary_operation_1, case AND): Result is
20599 zero if no overlap in nonzero bits between the operands.
20600
20601 2009-04-24 Ian Lance Taylor <iant@google.com>
20602
20603 * combine.c (record_value_for_reg): Change 0 to VOIDmode, twice.
20604 (record_dead_and_set_regs): Likewise.
20605 * df.h (struct df_mw_hardreg): Change flags field to int.
20606 (struct df_base_ref): Likewise.
20607 (struct df): Change changeable_flags field to int.
20608 * df-scan.c (df_defs_record): Change clobber_flags to int.
20609 * dwarf2.h (enum dwarf_tag): Make lo_user and hi_user values enum
20610 constants rather than #define macros.
20611 (enum dwarf_attribute, enum dwarf_location_atom): Likewise.
20612 (enum dwarf_type, enum dwarf_endianity_encoding): Likewise.
20613 (enum dwarf_calling_convention): Likewise.
20614 (enum dwarf_line_number_x_ops): Likewise.
20615 (enum dwarf_call_frame_info): Likewise.
20616 (enum dwarf_source_language): Likewise.
20617 * dwarf2out.c (int_loc_descriptor): Add cast to enum type.
20618 (add_calling_convention_attribute): Likewise.
20619 * fold-const.c (fold_undefer_overflow_warnings): Add cast to enum type.
20620 (combine_comparisons): Change compcode to int. Add cast to enum type.
20621 * genrecog.c (maybe_both_true_2): Change c to int.
20622 (write_switch): Likewise. Add cast to enum type.
20623 * gimplify.c (gimplify_omp_for): Handle return values from
20624 gimplify_expr using MIN rather than bitwise or.
20625 (gimplify_expr): Add cast to enum type.
20626 * ipa-prop.c (update_jump_functions_after_inlining): Change
20627 IPA_BOTTOM to IPA_JF_UNKNOWN.
20628 * ira.c (setup_class_subset_and_memory_move_costs): Change mode to int.
20629 Add casts to enum type.
20630 (setup_cover_and_important_classes): Change cl to int. Add casts
20631 to enum type.
20632 (setup_class_translate): Change cl and mode to int.
20633 (ira_init_once): Change mode to int.
20634 (free_register_move_costs): Likewise.
20635 (setup_prohibited_mode_move_regs): Add casts to enum type.
20636 * langhooks.c (add_builtin_function_common): Rework assertion that
20637 value fits bitfield.
20638 * mcf.c (add_fixup_edge): Change type parameter to edge_type.
20639 * omega.c (omega_do_elimination): Avoid math on enum types.
20640 * optabs.c (expand_vec_shift_expr): Remove casts to int.
20641 * opts.c (set_debug_level): Change 2 to enum constant. Use new
20642 int local to handle integral_argment value.
20643 * regmove.c (try_auto_increment): Change PUT_MODE to
20644 PUT_REG_NOTE_KIND.
20645 * reload.c (push_secondary_reload): Add casts to enum type.
20646 (secondary_reload_class, find_valid_class): Likewise.
20647 * reload1.c (emit_input_reload_insns): Likewise.
20648 * rtl.h (NOTE_VAR_LOCATION_STATUS): Likewise.
20649 * sel-sched.c (init_hard_regs_data): Change cur_mode to int.
20650 * sel-sched-ir.c (hash_with_unspec_callback): Change 0 to enum
20651 constant.
20652 * tree.c (build_common_builtin_nodes): Add casts to enum type.
20653 * tree-complex.c (complex_lattice_t): Typedef to int rather than
20654 enum type.
20655 (expand_complex_libcall): Add casts to enum type.
20656 * tree-into-ssa.c (get_ssa_name_ann): Change 0 to enum constant.
20657 * tree-vect-loop.c (vect_model_reduction_cost): Compare reduc_code
20658 with ERROR_MARK, not NUM_TREE_CODES.
20659 (vect_create_epilog_for_reduction): Likewise.
20660 (vectorizable_reduction): Don't initialize epiloc_reduc_code.
20661 When not using it, set it to ERROR_MARK rather than NUM_TREE_CODES.
20662 * tree-vect-patterns.c (vect_pattern_recog_1): Change vec_mode to
20663 enum machine_mode.
20664 * tree-vect-stmts.c (new_stmt_vec_info): Change 0 to
20665 vect_unused_in_loop. Change 0 to loop_vect.
20666 * tree-vectorizer.c (vect_set_verbosity_level): Add casts to enum type.
20667 * var-tracking.c (get_init_value): Change return type to enum
20668 var_init_status.
20669 * vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
20670 * config/arm/arm.c (fp_model_for_fpu): Change to array to enum
20671 arm_fp_model.
20672 (arm_override_options): Add casts to enum type.
20673 (arm_emit_tls_decoration): Likewise.
20674 * config/i386/i386.c (ix86_function_specific_restore): Add casts
20675 to enum type.
20676 * config/i386/i386-c.c (ix86_pragma_target_parse): Likewise.
20677 * config/ia64/ia64.c (ia64_expand_compare): Change magic to int.
20678 * config/rs6000/rs6000.c (rs6000_override_options): Add casts to
20679 enum type.
20680 * config/s390/s390.c (code_for_builtin_64): Change to array of
20681 enum insn_code.
20682 (code_for_builtin_31): Likewise.
20683 (s390_expand_builtin): Change code_for_builtin to enum insn_code
20684 const *.
20685 * config/sparc/sparc.c (sparc_override_options): Change value
20686 field in struct code_model to enum cmodel. In initializer change
20687 0 to NULL and add cast to enum type.
20688
20689 * c-typeck.c (build_modify_expr): Add lhs_origtype parameter.
20690 Change all callers. Issue a -Wc++-compat warning using
20691 lhs_origtype if necessary.
20692 (convert_for_assignment): Issue -Wc++-compat warnings about
20693 invalid conversions to enum type on assignment.
20694 * c-common.h (build_modify_expr): Update declaration.
20695
20696 2009-04-24 Nick Clifton <nickc@redhat.com>
20697
20698 * config/iq2000/iq2000.c (function_arg): Handle TImode values.
20699 (function_arg_advance): Likewise.
20700 * config/iq2000/iq2000.md (movsi_internal2): Fix the length of the
20701 5th alternative.
20702
20703 2009-04-24 Andreas Krebbel <krebbel1@de.ibm.com>
20704
20705 * config/s390/constraints.md ('I', 'J'): Fix condition.
20706
20707 2009-04-24 Diego Novillo <dnovillo@google.com>
20708
20709 * gengtype-parse.c (parse_error): Add newline after message.
20710
20711 2009-04-24 H.J. Lu <hongjiu.lu@intel.com>
20712
20713 * config/i386/sse.md (avxmodesuffixs): Removed.
20714 (*avx_pinsr<avxmodesuffixs>): Renamed to ...
20715 (*avx_pinsr<ssevecsize>): This.
20716
20717 2009-04-24 Bernd Schmidt <bernd.schmidt@analog.com>
20718
20719 * loop-iv.c (replace_single_def_regs): Look for REG_EQUAL notes;
20720 follow chains of regs with a single definition, and allow expressions
20721 that are function_invariant_p.
20722 (simple_rhs_p): Allow expressions that are function_invariant_p.
20723
20724 2009-04-24 Paolo Bonzini <bonzini@gnu.org>
20725
20726 PR middle-end/39867
20727 * fold-const.c (fold_cond_expr_with_comparison): When folding
20728 > and >= to MAX, make sure the MAX uses the same type as the
20729 comparison's operands.
20730
20731 2009-04-24 Nick Clifton <nickc@redhat.com>
20732
20733 * config/frv/frv.c (frv_frame_access): Do not use reg+reg
20734 addressing for DImode accesses.
20735 (frv_print_operand_address): Handle PLUS case.
20736 * config/frv/frv.h (FIXED_REGISTERS): Mark link register as fixed.
20737
20738 2009-04-24 Jakub Jelinek <jakub@redhat.com>
20739
20740 PR rtl-optimization/39794
20741 * alias.c (canon_true_dependence): Add x_addr argument.
20742 * rtl.h (canon_true_dependence): Adjust prototype.
20743 * cse.c (check_dependence): Adjust canon_true_dependence callers.
20744 * cselib.c (cselib_invalidate_mem): Likewise.
20745 * gcse.c (compute_transp): Likewise.
20746 * dse.c (scan_reads_nospill): Likewise.
20747 (record_store, check_mem_read_rtx): Likewise. For non-const-or-frame
20748 addresses pass base->val_rtx as mem_addr, for const-or-frame addresses
20749 canon_base_addr of the group, plus optional offset.
20750 (struct group_info): Rename canon_base_mem to
20751 canon_base_addr.
20752 (get_group_info): Set canon_base_addr to canon_rtx of base, not
20753 canon_rtx of base_mem.
20754
20755 2009-04-23 Paolo Bonzini <bonzini@gnu.org>
20756
20757 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
20758 Use memory_address_p instead of GO_IF_LEGITIMATE_ADDRESS.
20759
20760 2009-04-23 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20761
20762 * config/spu/spu-builtins.h: Delete file.
20763
20764 * config/spu/spu.h (enum spu_builtin_type): Move here from
20765 spu-builtins.h.
20766 (struct spu_builtin_description): Likewise. Add GTY marker.
20767 Do not use enum spu_function_code or enum insn_code.
20768 (spu_builtins): Add extern declaration.
20769
20770 * config/spu/spu.c: Do not include "spu-builtins.h".
20771 (enum spu_function_code, enum spu_builtin_type_index,
20772 V16QI_type_node, V8HI_type_node, V4SI_type_node, V2DI_type_node,
20773 V4SF_type_node, V2DF_type_node, unsigned_V16QI_type_node,
20774 unsigned_V8HI_type_node, unsigned_V4SI_type_node,
20775 unsigned_V2DI_type_node): Move here from spu-builtins.h.
20776 (spu_builtin_types): Make static. Add GTY marker.
20777 (spu_builtins): Add extern declaration with GTY marker.
20778 Include "gt-spu.h".
20779
20780 * config/spu/spu-c.c: Do not include "spu-builtins.h".
20781 (spu_resolve_overloaded_builtin): Do not use spu_function_code.
20782 Check programmatically whether all parameters are scalar.
20783
20784 * config/spu/t-spu-elf (spu.o, spu-c.o): Update dependencies.
20785
20786 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
20787
20788 * gimplify.c (gimplify_modify_expr_rhs) <VAR_DECL>: Do not do a direct
20789 assignment from the constructor either if the target is volatile.
20790
20791 2009-04-23 Daniel Jacobowitz <dan@codesourcery.com>
20792
20793 * config/arm/arm.md (insv): Do not share operands[0].
20794
20795 2009-04-23 Nathan Sidwell <nathan@codesourcery.com>
20796
20797 * config/vxlib-tls.c (active_tls_threads): Delete.
20798 (delete_hook_installed): New.
20799 (tls_delete_hook): Don't delete the delete hook.
20800 (tls_destructor): Delete it here.
20801 (__gthread_set_specific): Adjust installing the delete hook.
20802 (tls_delete_hook): Use __gthread_enter_tsd_dtor_context and
20803 __gthread_leave_tsd_dtor_context.
20804
20805 2009-04-23 Rafael Avila de Espindola <espindola@google.com>
20806
20807 * c-format.c (gcc_tdiag_char_table): Add support for %E.
20808
20809 2009-04-23 Uros Bizjak <ubizjak@gmail.com>
20810
20811 * config/alpha/alpha.c (alpha_legitimize_reload_address): Add cast to
20812 enum type.
20813 (alpha_rtx_costs): Ditto.
20814 (emit_unlikely_jump): Use add_reg_note.
20815 (emit_frame_store_1): Ditto.
20816 (alpha_expand_prologue): Ditto.
20817 (alpha_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
20818 * config/alpha/alpha.c (Unicos/Mk address splitter): Use add_reg_note.
20819
20820 2009-04-23 Nick Clifton <nickc@redhat.com>
20821
20822 * config/v850/v850.md (epilogue): Remove suppressed code.
20823 (return): Rename to return_simple and remove test of frame size.
20824 * config/v850/v850.c (expand_epilogue): Rename call to gen_return
20825 to gen_return_simple.
20826
20827 2009-04-22 Jing Yu <jingyu@google.com>
20828
20829 PR testsuite/39781
20830 * config/arm/arm.h: Define HANDLE_PRAGMA_PACK_PUSH_POP.
20831
20832 2009-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
20833
20834 PR C/31499
20835 * c-typeck.c (process_init_element): Treat VECTOR_TYPE like ARRAY_TYPE
20836 and RECORD_TYPE/UNION_TYPE. When outputing the actual element and the
20837 value is a VECTOR_CST, the element type is the element type of the
20838 vector.
20839
20840 2009-04-22 DJ Delorie <dj@redhat.com>
20841
20842 * config/m32c/m32c.h: Update GTY annotations to new syntax.
20843
20844 2009-04-22 Jakub Jelinek <jakub@redhat.com>
20845
20846 * alias.c (find_base_term): Move around LO_SUM case, so that
20847 CONST falls through into PLUS/MINUS handling.
20848
20849 PR c/39855
20850 * fold-const.c (fold_binary) <case LSHIFT_EXPR>: When optimizing
20851 into 0, use omit_one_operand.
20852
20853 2009-04-23 Ben Elliston <bje@au.ibm.com>
20854
20855 * config/rs6000/linux-unwind.h (get_regs): Remove type
20856 puns. Change the type of `pc' to an array of unsigned ints and
20857 update all users. Constify frame24.
20858
20859 2009-04-22 DJ Delorie <dj@redhat.com>
20860
20861 * config/m32c/m32c.c (m32c_special_page_vector_p): Move
20862 declarations before code.
20863 (current_function_special_page_vector): Likewise.
20864 (m32c_expand_insv): Silence a warning.
20865
20866 2009-04-21 Taras Glek <tglek@mozilla.com>
20867
20868 * alias.c: Update GTY annotations to new syntax.
20869 * basic-block.h: Likewise.
20870 * bitmap.h: Likewise.
20871 * c-common.h: Likewise.
20872 * c-decl.c: Likewise.
20873 * c-parser.c: Likewise.
20874 * c-pragma.c: Likewise.
20875 * c-tree.h: Likewise.
20876 * cfgloop.h: Likewise.
20877 * cgraph.h: Likewise.
20878 * config/alpha/alpha.c: Likewise.
20879 * config/arm/arm.h: Likewise.
20880 * config/avr/avr.h: Likewise.
20881 * config/bfin/bfin.c: Likewise.
20882 * config/cris/cris.c: Likewise.
20883 * config/darwin.c: Likewise.
20884 * config/frv/frv.c: Likewise.
20885 * config/i386/i386.c: Likewise.
20886 * config/i386/i386.h: Likewise.
20887 * config/i386/winnt.c: Likewise.
20888 * config/ia64/ia64.h: Likewise.
20889 * config/iq2000/iq2000.c: Likewise.
20890 * config/mips/mips.c: Likewise.
20891 * config/mmix/mmix.h: Likewise.
20892 * config/pa/pa.c: Likewise.
20893 * config/pa/pa.h: Likewise.
20894 * config/rs6000/rs6000.c: Likewise.
20895 * config/s390/s390.c: Likewise.
20896 * config/sparc/sparc.c: Likewise.
20897 * config/xtensa/xtensa.c: Likewise.
20898 * cselib.h: Likewise.
20899 * dbxout.c: Likewise.
20900 * dwarf2out.c: Likewise.
20901 * except.c: Likewise.
20902 * except.h: Likewise.
20903 * fixed-value.h: Likewise.
20904 * function.c: Likewise.
20905 * function.h: Likewise.
20906 * gimple.h: Likewise.
20907 * integrate.c: Likewise.
20908 * optabs.c: Likewise.
20909 * output.h: Likewise.
20910 * real.h: Likewise.
20911 * rtl.h: Likewise.
20912 * stringpool.c: Likewise.
20913 * tree-data-ref.c: Likewise.
20914 * tree-flow.h: Likewise.
20915 * tree-scalar-evolution.c: Likewise.
20916 * tree-ssa-address.c: Likewise.
20917 * tree-ssa-alias.h: Likewise.
20918 * tree-ssa-operands.h: Likewise.
20919 * tree.c: Likewise.
20920 * tree.h: Likewise.
20921 * varasm.c: Likewise.
20922 * varray.h: Likewise.
20923 * vec.h: Likewise.
20924 * coretypes.h: Do not define GTY macro if it is already defined.
20925 * doc/gty.texi: Update GTY documentation to new syntax.
20926 * gengtype-lex.l: Enforce attribute-like syntax for GTY
20927 annotations on structs.
20928 * gengtype-parse.c: Likewise.
20929
20930 2009-04-22 Mark Heffernan <meheff@google.com>
20931
20932 * gcc.c (LINK_COMMAND_SPEC): Link with gcov with -fprofile-generate=.
20933
20934 2009-04-22 Kazu Hirata <kazu@codesourcery.com>
20935
20936 * config/arm/arm.c (arm_rtx_costs_1): Use power_of_two_operand
20937 where appropriate.
20938
20939 2009-04-22 Kazu Hirata <kazu@codesourcery.com>
20940
20941 * config/arm/arm.c (arm_size_rtx_costs): Treat a PLUS with a shift
20942 the same as a PLUS without a shift. Increase the cost of a
20943 CONST_INT in MULT.
20944
20945 2009-04-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
20946
20947 * Makefile.in: Update dependencies.
20948 * errors.c (warning): Remove unused parameter 'opt'. Returns 'void'.
20949 * errors.h: Remove bogus comment about compatibility.
20950 (warning): Update declaration.
20951 * genautomata.c: Update all calls to warning.
20952 * gimple.c: Do not include errors.h. Include toplev.h.
20953 * tree-ssa-structalias.c: Do not include errors.h.
20954 * omega.c: Likewise.
20955 * tree-ssa-reassoc.c: Likewise.
20956 * config/spu/spu-c.c: Likewise.
20957 * config/spu/t-spu-elf: Update dependencies.
20958
20959 2009-04-22 Richard Guenther <rguenther@suse.de>
20960
20961 PR tree-optimization/39824
20962 * tree-ssa-ccp.c (fold_const_aggregate_ref): For INDIRECT_REFs
20963 make sure the types are compatible.
20964
20965 2009-04-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
20966
20967 PR c++/14875
20968 * c-common.c (c_parse_error): Take a token_flags parameter.
20969 Use token_type for the token type instead.
20970 Pass token_flags to cpp_type2name.
20971 * c-common.h (c_parse_error): Update declaration.
20972 * c-parser.c (c_parser_error): Pass 0 as token flags.
20973
20974 2009-04-22 Andrey Belevantsev <abel@ispras.ru>
20975
20976 PR rtl-optimization/39580
20977 * sel-sched-ir.c (insert_in_history_vect): Remove incorrect gcc_assert.
20978
20979 2009-04-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20980
20981 * function.c (expand_function_end): Do not emit a jump to the "naked"
20982 return label for fall-through returns.
20983 * except.c (sjlj_emit_function_exit): Always place the call to the
20984 unregister function at the location installed by expand_function_end.
20985
20986 2009-04-22 Richard Guenther <rguenther@suse.de>
20987
20988 PR tree-optimization/39845
20989 * tree-switch-conversion.c (build_arrays): Add new referenced vars.
20990 (gen_inbound_check): Likewise.
20991
20992 2009-04-22 Nathan Sidwell <nathan@codesourcery.com>
20993
20994 * gthr-vxworks.h (struct __gthread_once_t): Add alignment and
20995 padding for PPC.
20996 (__GTHREAD_ONCE_INIT): Adjust ppc initializer.
20997 * config/vxlib.c (__gthread_once): Add race guard for PPC.
20998
20999 2009-04-22 Paolo Bonzini <bonzini@gnu.org>
21000
21001 * config/sh/sh.c (shift_insns_rtx, shiftcosts, gen_shifty_op,
21002 sh_dynamicalize_shift_p, shl_and_scr_length): Truncate
21003 shift counts to avoid out-of-bounds array accesses.
21004
21005 2009-04-22 Paolo Bonzini <bonzini@gnu.org>
21006
21007 * config/sparc/sparc.h (POINTER_SIZE): Fix comment.
21008 (Pmode): Move above.
21009
21010 2009-04-22 Uros Bizjak <ubizjak@gmail.com>
21011
21012 * config/alpha/alpha.c: Use REG_P, MEM_P, CONST_INT_P, JUMP_P,
21013 NONJUMP_INSN_P, CALL_P, LABEL_P and NOTE_P predicates instead of
21014 GET_CODE macro. Use IN_RANGE macro where appropriate.
21015 * config/alpha/alpha.h: Ditto.
21016 * config/alpha/alpha.md: Ditto.
21017 * config/alpha/constraints.md: Ditto.
21018 * config/alpha/predicates.md: Ditto.
21019
21020 2009-04-22 Paolo Bonzini <bonzini@gnu.org>
21021
21022 * defaults.h (GO_IF_MODE_DEPENDENT_ADDRESS): Provide empty default.
21023 * config/frv/frv.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21024 * config/s390/s390.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21025 * config/m32c/m32c.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21026 * config/spu/spu.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21027 * config/i386/i386.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21028 * config/sh/sh.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21029 * config/pdp11/pdp11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21030 * config/avr/avr.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21031 * config/crx/crx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21032 * config/fr30/fr30.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21033 * config/m68hc11/m68hc11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21034 * config/cris/cris.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21035 * config/iq2000/iq2000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21036 * config/mn10300/mn10300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21037 * config/ia64/ia64.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21038 * config/m68k/m68k.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21039 * config/picochip/picochip.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21040 * config/arc/arc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21041 * config/mcore/mcore.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21042 * config/score/score.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21043 * config/arm/arm.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21044 * config/pa/pa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21045 * config/mips/mips.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21046 * config/v850/v850.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21047 * config/mmix/mmix.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21048 * config/bfin/bfin.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21049
21050 2009-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
21051
21052 * cfghooks.c (tidy_fallthru_edges): Remove find_basic_blocks
21053 references from comments.
21054 * cfgbuild.c: (count_basic_blocks): Delete.
21055 (find_basic_blocks_1): Delete.
21056 (find_basic_blocks): Delete.
21057 * except.c (finish_eh_generation): Make static. Move comment from
21058 except.h here. Remove find_basic_blocks references from comments.
21059 * except.h (finish_eh_generation): Delete.
21060 * basic-block.h (find_basic_blocks): Delete.
21061 * config/sh/sh.c (sh_output_mi_thunk): Delete a "#if 0" block.
21062
21063 2009-04-22 Dave Korn <dave.korn.cygwin@gmail.com>
21064
21065 * sdbout.c (sdbout_symbol): Pass VOIDmode to eliminate_regs.
21066 (sdbout_parms): Likewise.
21067
21068 2009-04-21 Kaz Kojima <kkojima@gcc.gnu.org>
21069
21070 * config/sh/sh.c (prepare_cbranch_operands): Use
21071 LAST_AND_UNUSED_RTX_CODE instead of CODE_FOR_nothing.
21072 (expand_cbranchdi4): Likewise.
21073 (from_compare): Add cast to enum type.
21074 (expand_cbranchsi4): Use add_reg_note.
21075 (output_stack_adjust, push, pop, sh_expand_prologue): Likewise.
21076 (sh_insn_length_adjustment): Use sh_cpu_attr instead of sh_cpu.
21077 (sh_initialize_trampoline): Change 0 to LCT_NORMAL in function call.
21078 (sh_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
21079 * config/sh/sh.md (cbranchsi4): Use LAST_AND_UNUSED_RTX_CODE
21080 instead of CODE_FOR_nothing.
21081 (cbranchdi4): Likewise. Fix the order of arguments for
21082 gen_rtx_fmt_ee.
21083 (push_fpscr): Use add_reg_note.
21084 (pop_fpscr, movdf_i4+1, reload_outdf__RnFRm+3, reload_outdf__RnFRm+4,
21085 reload_outdf__RnFRm+5, fpu_switch+1, fpu_switch+2): Likewise.
21086
21087 2009-04-21 Joseph Myers <joseph@codesourcery.com>
21088
21089 * ABOUT-GCC-NLS, ChangeLog, ChangeLog-1997, ChangeLog-1998,
21090 ChangeLog-1999, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
21091 ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
21092 ChangeLog-2007, ChangeLog-2008, ChangeLog.dataflow, ChangeLog.lib,
21093 ChangeLog.ptr, ChangeLog.tree-ssa, ChangeLog.tuples, FSFChangeLog,
21094 FSFChangeLog.10, FSFChangeLog.11, LANGUAGES, ONEWS, acinclude.m4,
21095 config/alpha/gnu.h, config/alpha/libgcc-alpha-ldbl.ver,
21096 config/alpha/t-osf4, config/alpha/t-vms, config/alpha/va_list.h,
21097 config/alpha/x-vms, config/arc/t-arc,
21098 config/arm/README-interworking, config/arm/arm-c.c,
21099 config/arm/gentune.sh, config/arm/libgcc-bpabi.ver,
21100 config/arm/t-arm, config/arm/t-arm-elf, config/arm/t-arm-softfp,
21101 config/arm/t-bpabi, config/arm/t-linux, config/arm/t-linux-eabi,
21102 config/arm/t-netbsd, config/arm/t-pe, config/arm/t-strongarm-elf,
21103 config/arm/t-symbian, config/arm/t-vxworks, config/arm/t-wince-pe,
21104 config/avr/t-avr, config/bfin/elf.h, config/bfin/libgcc-bfin.ver,
21105 config/bfin/linux.h, config/bfin/t-bfin, config/bfin/t-bfin-elf,
21106 config/bfin/t-bfin-linux, config/bfin/t-bfin-uclinux,
21107 config/bfin/uclinux.h, config/cris/mulsi3.asm, config/cris/t-cris,
21108 config/cris/t-elfmulti, config/crx/t-crx,
21109 config/darwin-ppc-ldouble-patch.def, config/darwin-sections.def,
21110 config/divmod.c, config/fr30/t-fr30, config/frv/libgcc-frv.ver,
21111 config/frv/t-frv, config/frv/t-linux, config/h8300/genmova.sh,
21112 config/h8300/t-h8300, config/i386/athlon.md,
21113 config/i386/darwin-libgcc.10.4.ver,
21114 config/i386/darwin-libgcc.10.5.ver, config/i386/libgcc-glibc.ver,
21115 config/i386/mach.h, config/i386/netbsd.h, config/i386/t-crtpc,
21116 config/i386/t-cygming, config/i386/t-cygwin, config/i386/t-i386,
21117 config/i386/t-linux64, config/i386/t-nwld,
21118 config/i386/t-rtems-i386, config/i386/t-sol2-10,
21119 config/i386/x-mingw32, config/ia64/div.md, config/ia64/elf.h,
21120 config/ia64/ia64.opt, config/ia64/libgcc-glibc.ver,
21121 config/ia64/libgcc-ia64.ver, config/ia64/linux.h,
21122 config/ia64/sysv4.h, config/ia64/t-hpux, config/ia64/t-ia64,
21123 config/iq2000/abi, config/iq2000/lib2extra-funcs.c,
21124 config/iq2000/t-iq2000, config/libgcc-glibc.ver,
21125 config/m32r/libgcc-glibc.ver, config/m32r/t-linux,
21126 config/m32r/t-m32r, config/m68hc11/t-m68hc11,
21127 config/m68k/t-floatlib, config/m68k/t-linux, config/m68k/t-mlibs,
21128 config/m68k/t-uclinux, config/mcore/t-mcore,
21129 config/mcore/t-mcore-pe, config/mips/20kc.md, config/mips/4130.md,
21130 config/mips/5400.md, config/mips/5500.md, config/mips/crti.asm,
21131 config/mips/crtn.asm, config/mips/irix-crti.asm,
21132 config/mips/irix-crtn.asm, config/mips/libgcc-mips16.ver,
21133 config/mips/mips-dsp.md, config/mips/mips-dspr2.md,
21134 config/mips/mips-fixed.md, config/mips/sb1.md,
21135 config/mips/sr71k.md, config/mips/t-elf, config/mips/t-gofast,
21136 config/mips/t-iris6, config/mips/t-isa3264,
21137 config/mips/t-libgcc-mips16, config/mips/t-linux64,
21138 config/mips/t-mips, config/mips/t-r3900, config/mips/t-rtems,
21139 config/mips/t-sb1, config/mips/t-sde, config/mips/t-sdemtk,
21140 config/mips/t-slibgcc-irix, config/mips/t-sr71k, config/mips/t-st,
21141 config/mips/t-vr, config/mips/t-vxworks, config/mmix/t-mmix,
21142 config/mn10300/t-linux, config/mn10300/t-mn10300,
21143 config/pa/pa32-regs.h, config/pa/t-hpux-shlib, config/pa/t-linux,
21144 config/pa/t-linux64, config/pa/t-pa64, config/pdp11/t-pdp11,
21145 config/picochip/libgccExtras/clzsi2.asm,
21146 config/picochip/t-picochip, config/rs6000/darwin-ldouble-format,
21147 config/rs6000/darwin-libgcc.10.4.ver,
21148 config/rs6000/darwin-libgcc.10.5.ver,
21149 config/rs6000/libgcc-ppc-glibc.ver, config/rs6000/ppc-asm.h,
21150 config/rs6000/t-aix43, config/rs6000/t-aix52,
21151 config/rs6000/t-darwin, config/rs6000/t-fprules,
21152 config/rs6000/t-fprules-fpbit, config/rs6000/t-linux64,
21153 config/rs6000/t-lynx, config/rs6000/t-netbsd,
21154 config/rs6000/t-ppccomm, config/rs6000/t-ppcendian,
21155 config/rs6000/t-ppcgas, config/rs6000/t-rs6000,
21156 config/rs6000/t-rtems, config/rs6000/t-spe,
21157 config/rs6000/t-vxworks, config/s390/libgcc-glibc.ver,
21158 config/score/t-score-elf, config/sh/divcost-analysis,
21159 config/sh/libgcc-glibc.ver, config/sh/t-netbsd, config/sh/t-sh,
21160 config/sh/t-sh64, config/sh/t-superh, config/sh/t-symbian,
21161 config/sparc/libgcc-sparc-glibc.ver, config/sparc/sol2-bi.h,
21162 config/sparc/sol2-gas.h, config/sparc/sol2-gld-bi.h,
21163 config/sparc/t-elf, config/sparc/t-linux64, config/sparc/t-sol2,
21164 config/stormy16/stormy-abi, config/stormy16/t-stormy16,
21165 config/t-darwin, config/t-libunwind, config/t-libunwind-elf,
21166 config/t-linux, config/t-lynx, config/t-slibgcc-elf-ver,
21167 config/t-slibgcc-sld, config/t-sol2, config/t-vxworks,
21168 config/udivmod.c, config/udivmodsi4.c, config/v850/t-v850,
21169 config/v850/t-v850e, config/xtensa/t-xtensa, diagnostic.def,
21170 gdbinit.in, glimits.h, gstab.h, gsyms.h, java/ChangeLog,
21171 java/ChangeLog.ptr, java/ChangeLog.tree-ssa, libgcc-std.ver,
21172 limitx.h, version.c, xcoff.h: Add copyright and license notices.
21173 * config/h8300/genmova.sh: Include copyright and license notices
21174 in generated output.
21175 * config/h8300/mova.md: Regenerate.
21176 * doc/install.texi2html: Include word "Copyright" in copyright
21177 notice and use name "Free Software Foundation, Inc.".
21178 * ChangeLog, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
21179 ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
21180 ChangeLog-2007, ChangeLog-2008: Correct dates.
21181
21182 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
21183
21184 * c-common.c (c_common_truthvalue_conversion): Use LOCATION to build
21185 NE_EXPR operations as well.
21186 * c-parser.c (c_parser_condition): Do not set location information on
21187 the condition.
21188 (c_parser_conditional_expression): Likewise.
21189 (c_parser_binary_expression): Set location information on operators.
21190 * c-typeck.c (build_unary_op) <TRUTH_NOT_EXPR>: Reset the location if
21191 TRUTH_NOT_EXPR has been folded.
21192 * fold-const.c (fold_truth_not_expr): Copy location information from
21193 the incoming expression to the outgoing one.
21194 * gimplify.c (shortcut_cond_r): Add locus parameter. Pass it to
21195 recursive calls on the LHS of the operator but pass that of the
21196 operator to recursive calls on the RHS of the operator. Set it
21197 on the COND_EXPR.
21198 (shortcut_cond_expr): Set the locus of the operator on the second
21199 COND_EXPR and that of the expression on the first in degenerate cases.
21200 Pass the locus of the expression to calls to shortcut_cond_r.
21201 Set the locus of the 'then' block on the associated jump, if any.
21202 (gimplify_boolean_expr): Add locus parameter. Set it on the COND_EXPR.
21203 (gimplify_expr) <TRUTH_ANDIF_EXPR>: Pass the locus of the outer
21204 expression to call to gimplify_boolean_expr.
21205
21206 2009-04-21 Kai Tietz <kai.tietz@onevision.com>
21207
21208 * config.gcc: Add additional configuration for
21209 i686-w64-mingw* and x86_64-w64-mingw* triplet.
21210 * config/i386/mingw-w64.h: New mingw-w64 specific header.
21211 (CPP_SPEC): Redefine for allowing -municode option.
21212 (STARTFILE_SPEC): Likewise.
21213 * config/i386/t-mingw-w64: New.
21214 * config/i386/mingw-w64.opt: New.
21215 (municode): Add new target option.
21216 * doc/invoke.texi (municode): Add documentation for new option.
21217
21218 2009-04-21 Ian Lance Taylor <iant@google.com>
21219
21220 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
21221 Correct test for number of arguments.
21222 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
21223
21224 2009-04-21 Andreas Schwab <schwab@linux-m68k.org>
21225
21226 * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Use enum for second
21227 argument of emit_library_call.
21228
21229 2009-04-21 Richard Guenther <rguenther@suse.de>
21230
21231 PR middle-end/39829
21232 * gimple.c (walk_stmt_load_store_addr_ops): Catch addresses
21233 inside VIEW_CONVERT_EXPRs.
21234
21235 2009-04-21 Martin Jambor <mjambor@suse.cz>
21236
21237 * tree-switch-conversion.c (build_constructors): Split a long line.
21238 (constructor_contains_same_values_p): New function.
21239 (build_one_array): Create assigns of constants if possible, do not
21240 call mark_sym_for_renaming, call update_stmt.
21241 (build_arrays): Call make_ssa_name (create_tmp_var ()) instead of
21242 make_rename_temp. Do not call mark_symbols_for_renaming, call
21243 update_stmt.
21244 (gen_def_assigns): Do not call mark_symbols_for_renaming or
21245 find_new_referenced_vars, call update_stmt.
21246 (gen_inbound_check): Use create_tmp_var and create ssa names manually
21247 instead of calling make_rename_temp. Do not call
21248 find_new_referenced_vars or mark_symbols_for_renaming, call
21249 update_stmt.
21250
21251 2009-04-21 Richard Guenther <rguenther@suse.de>
21252
21253 PR tree-optimization/39827
21254 * tree-ssa-phiprop.c (propagate_with_phi): Check SSA_NAME is in range.
21255 (tree_ssa_phiprop): Pass the correct array size.
21256
21257 2009-04-21 Uros Bizjak <ubizjak@gmail.com>
21258
21259 * config/alpha/alpha.md (tune): Add cast to enum attr_tune.
21260
21261 2009-04-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
21262
21263 PR 16202
21264 * c-typeck.c (lvalue_p): Move declaration ...
21265 * c-common.h (lvalue_p): ... to here.
21266 * c-common.c (candidate_equal_p): New.
21267 (add_tlist): Use it.
21268 (merge_tlist): Use it.
21269 (warn_for_collisions_1): Likewise.
21270 (warning_candidate_p): Accept more candidates.
21271 (verify_tree): A warning candidate can be an expression. Use
21272 candidate_equal_p.
21273
21274 2009-04-21 Ben Elliston <bje@au.ibm.com>
21275
21276 PR target/5267
21277 * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
21278 for -mcall-eabi, -mcall-aixdesc, -mcall-freebsd and -mcall-openbsd
21279 options. Remove -mcall-solaris documentation.
21280
21281 2009-04-21 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
21282
21283 PR c++/13358
21284 * doc/invoke.texi (-Wlong-long): Update description.
21285 * c-lex (interpret_integer): Only warn if there was no previous
21286 overflow and -Wlong-long is enabled.
21287 * c-decl.c (declspecs_add_type): Drop redundant flags.
21288 * c.opt (Wlong-long): Init to -1.
21289 * c-opts.c (sanitize_cpp_opts): Synchronize cpp's warn_long_long
21290 and front-end warn_long_long. Wlong-long only depends on other
21291 flags if it is uninitialized.
21292 * c-parser.c (disable_extension_diagnostics): warn_long_long is
21293 the same for CPP and FE.
21294 (restore_extension_diagnostics): Likewise.
21295
21296 2009-04-20 Ian Lance Taylor <iant@google.com>
21297
21298 Fix enum conversions which are invalid in C++:
21299 * auto-inc-dec.c (attempt_change): Change 0 to SET in function call.
21300 * calls.c (store_one_arg): Change 0 to EXPAND_NORMAL in function call.
21301 * cse.c (hash_rtx_cb): Change 0 to VOIDmode in function call.
21302 * dbgcnt.c (dbg_cnt_set_limit_by_name): Add cast to enum type.
21303 * dbxout.c (dbxout_symbol): Change 0 to VOIDmode in function call.
21304 (dbxout_parms): Likewise.
21305 * df-core.c (df_set_flags): Change changeable_flags parameter to int.
21306 (df_clear_flags): Likewise.
21307 * df-problems.c (df_rd_bb_local_compute_process_def): Change
21308 top_flag parameter to int.
21309 (df_chain_create_bb_process_use): Likewise.
21310 (df_chain_add_problem): Change chain_flags parameter to unsigned int.
21311 Remove cast.
21312 * df-scan.c (df_ref_create): Change ref_flags parameter to int.
21313 (df_ref_create_structure, df_def_record_1): Likewise.
21314 (df_defs_record, df_uses_record, df_get_call_refs): Likewise.
21315 (df_notes_rescan): Change 0 to VOIDmode in function call.
21316 (df_get_call_refs, df_insn_refs_collect): Likewise.
21317 (df_bb_regs_collect): Likewise.
21318 (df_entry_block_defs_collect): Likewise.
21319 (df_exit_block_uses_collect): Likewise.
21320 * df.h: Update declarations.
21321 * double-int.c (double_int_divmod): Add cast to enum type.
21322 * dse.c (replace_inc_dec): Reverse parameters to gen_int_mode.
21323 * dwarf2out.c (new_reg_loc_descr): Add casts to enum type.
21324 (based_loc_descr): Likewise.
21325 (loc_descriptor_from_tree_1): Change first_op and second_op to
21326 enum dwarf_location_atom. Add cast to enum type.
21327 * expmed.c (init_expmed): Change 0 to SET in function call.
21328 * expr.c (init_expr_target): Change 0 to VOIDmode in function call.
21329 (expand_expr_real_1): Change 0 to EXPAND_NORMAL in function call.
21330 (do_store_flag): Likewise.
21331 * fixed-value.h (struct fixed_value): Change mode to enum
21332 machine_mode.
21333 * function.c (assign_parms): Change 0 to VOIDmode in function call.
21334 * genautomata.c (insert_automaton_decl): Change 1 to INSERT in
21335 function call.
21336 (insert_insn_decl, insert_decl, insert_state): Likewise.
21337 (automata_list_finish): Likewise.
21338 * genrecog.c (process_define_predicate): Add cast to enum type.
21339 * gensupport.c (init_predicate_table): Add cast to enum type.
21340 * gimple.c (gimple_build_return): Change 0 to ERROR_MARK in
21341 function call.
21342 (gimple_build_call_1, gimple_build_label): Likewise.
21343 (gimple_build_goto, gimple_build_asm_1): Likewise.
21344 (gimple_build_switch_1, gimple_build_cdt): Likewise.
21345 * gimple.h (GIMPLE_CHECK): Change 0 to ERROR_MARK in function call.
21346 (enum fallback): Rename from enum fallback_t.
21347 (fallback_t): Typedef as int.
21348 * gimple-low.c (lower_builtin_setjmp): Change TSI_SAME_STMT to
21349 GSI_SAME_STMT in function call.
21350 * ira.c (setup_class_subset_and_memory_move_costs): Add casts to
21351 enum type.
21352 (setup_reg_class_relations): Likewise.
21353 (setup_reg_class_nregs): Change cl to int. Add casts to enum type.
21354 (setup_prohibited_class_mode_regs): Add cast to enum type.
21355 (setup_prohibited_mode_move_regs): Likewise.
21356 * ira-costs.c (record_reg_classes): Change rclass to enum reg_class.
21357 (record_address_regs): Change i to enum reg_class.
21358 * lists.c (alloc_EXPR_LIST): Add cast to enum type.
21359 * machmode.h (GET_MODE_CLASS): Cast value to enum mode_class.
21360 (GET_MODE_WIDER_MODE): Cast value to enum machine_mode.
21361 (GET_MODE_2XWIDER_MODE): Likewise.
21362 (GET_CLASS_NARROWEST_MODE): Likewise.
21363 * omp-low.c (expand_omp_for): Add cast to enum type.
21364 * optabs.c (debug_optab_libfuncs): Add casts to enum type.
21365 * opts.c (enable_warning_as_error): Change kind to diagostic_t.
21366 * postreload.c (reload_cse_simplify_operands): Change rclass local
21367 to enum reg_class.
21368 * predict.c (combine_predictions_for_insn): Change best_predictor
21369 and predictor to enum br_predictor.
21370 (combine_predictions_for_bb): Likewise.
21371 (build_predict_expr): Change assignment to PREDICT_EXPR_OUTCOME to
21372 use SET_PREDICT_EXPR_OUTCOME.
21373 * real.c (real_arithmetic): Change icode to code in function call.
21374 * reginfo.c (init_move_cost): Add casts to enum type.
21375 (init_reg_sets_1, init_fake_stack_mems): Likewise.
21376 * regmove.c (regclass_compatible_p): Change class0 and class1 to
21377 enum reg_class.
21378 * reload.c (find_valid_class): Add casts to enum type.
21379 (push_reload): Change 0 to NO_REGS in function call.
21380 (find_reloads): Change this_alternative to array of enum
21381 reg_class. Remove some now-unnecessary casts.
21382 (make_memloc): Change 0 to VOIDmode in function call.
21383 * reload1.c (reload): Change 0 to VOIDmode in function call.
21384 (eliminate_regs_1, elimination_effects): Likewise.
21385 (eliminate_regs_in_insn): Likewise.
21386 (emit_input_reload_insns): Add cast to enum type.
21387 (delete_output_reload): Change 0 to VOIDmode in function call.
21388 * reorg.c (insn_sets_resource_p): Convert include_delayed_effects
21389 to enum type in function call.
21390 * tree.h (PREDICT_EXPR_OUTCOME): Add cast to enum type.
21391 (SET_PREDICT_EXPR_OUTCOME): Define.
21392 * tree-dump.c (get_dump_file_info): Change phase parameter to int.
21393 (get_dump_file_name, dump_begin, dump_enabled_p): Likewise.
21394 (dump_initialized_p, dump_flag_name, dump_end): Likewise.
21395 (dump_function): Likewise.
21396 * tree-dump.h: Update declarations.
21397 * tree-pass.h: Update declarations.
21398 * varasm.c (assemble_integer): Change mclass to enum mode_class.
21399 * config/arm/arm.c (thumb_legitimize_reload_address): Add cast to
21400 enum type.
21401 (arm_rtx_costs_1): Correct parenthesization.
21402 (arm_rtx_costs): Add casts to enum type.
21403 (adjacent_mem_locations): Reverse arguments to const_ok_for_op.
21404 (vfp_emit_fstmd): Use add_rg_note.
21405 (emit_multi_reg_push, emit_sfm): Likewise.
21406 (thumb_set_frame_pointer): Likewise.
21407 (arm_expand_prologue): Likewise.
21408 (arm_regno_class): Change return type to enum reg_class.
21409 (thumb1_expand_prologue): Use add_reg_note.
21410 * config/arm/arm-protos.h (arm_regno_class): Update declaration.
21411 * config/arm/arm.h (INITIALIZE_TRAMPOLINE): Change 0 to LCT_NORMAL
21412 in function call.
21413 * config/arm/gentune.sh: Add cast to enum type.
21414 * config/arm/arm-tune.md: Rebuild.
21415 * config/i386/i386.c (ix86_expand_prologue): Use add_reg_note.
21416 (ix86_split_fp_branch, predict_jump): Likewise.
21417 (ix86_expand_multi_arg_builtin): Change sub_code from enum
21418 insn_code to enum rtx_code.
21419 (ix86_builtin_vectorized_function): Add cast to enum type.
21420 * config/i386/i386.md (truncdfsf2): Change slot to enum
21421 ix86_stack_slot.
21422 (truncxf<mode>2, isinf<mode>2): Likewise.
21423 * config/i386/i386-c.c (ix86_pragma_target_parse): Add cast to
21424 enum type.
21425 * config/ia64/ia64.c (ia64_split_tmode_move): Use add_reg_note.
21426 (spill_restore_mem, do_spill, ia64_expand_prologue): Likewise.
21427 (insert_bundle_state): Change 1 to INSERT in function call.
21428 (ia64_add_bundle_selector_before): Likewise.
21429 * config/ia64/ia64.md (cpu attr): Add cast to enum type.
21430 (save_stack_nonlocal): Change 0 to LCT_NORMAL in function call.
21431 (restore_stack_nonlocal): Likewise.
21432 * config/mips/mips.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL in
21433 function call.
21434 * config/mips/mips.c (mips_binary_cost): Change 0 to SET in
21435 function call.
21436 (mips_rtx_costs): Likewise.
21437 (mips_override_options): Add casts to enum type.
21438 * config/mips/sdemtk.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL
21439 in function call.
21440 * config/pa/pa.c (legitimize_pic_address): Use add_reg_note.
21441 (store_reg, set_reg_plus_d): Likewise.
21442 (hppa_expand_prologue, hppa_profile_hook): Likewise.
21443 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
21444 cast to enum type.
21445 (altivec_expand_vec_set_builtin): Change 0 to EXPAND_NORMAL in
21446 function call.
21447 (emit_unlikely_jump): Use add_reg_note.
21448 (rs6000_emit_allocate_stack): Likewise.
21449 (rs6000_frame_related, rs6000_emit_prologue): Likewise.
21450 (output_toc): Change 1 to INSERT in function call.
21451 (output_profile_hook): Change 0 to LCT_NORMAL in function call.
21452 (rs6000_initialize_trampoline): Likewise.
21453 (rs6000_init_dwarf_reg_sizes_extra): Change 0 to EXPAND_NORMAL in
21454 function call.
21455 * config/s390/s390.c (s390_rtx_costs): Add cast to enum type.
21456 (s390_expand_movmem): Change 0 to OPTAB_DIRECT in function call.
21457 (s390_expand_setmem, s390_expand_cmpmem): Likewise.
21458 (save_gprs): Use add_reg_note.
21459 (s390_emit_prologue): Likewise.
21460 (s390_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
21461 * config/sparc/sparc.c (sparc_expand_prologue): Use add_reg_note.
21462 (sparc_fold_builtin): Add cast to enum type.
21463 * config/spu/spu.c (spu_emit_branch_or_set): Change ior_code to
21464 enum insn_code.
21465 (spu_expand_prologue): Use add_reg_note.
21466 (expand_builtin_args): Change 0 to EXPAND_NORMAL in function call.
21467
21468 2009-04-20 Ian Lance Taylor <iant@google.com>
21469
21470 * c-parser.c (c_parser_attributes): Change VEC back to tree list.
21471 (c_parser_postfix_expression_after_primary): Get VEC for list of
21472 arguments. Get original types of arguments. Call
21473 build_function_call_vec.
21474 (cached_expr_list_1, cached_expr_list_2): New static variables.
21475 (c_parser_expr_list): Change return type to VEC *. Add
21476 p_orig_types parameter. Change all callers.
21477 (c_parser_release_expr): New static function.
21478 (c_parser_vec_to_tree_list): New static function.
21479 * c-typeck.c (build_function_call): Rewrite to build a VEC and
21480 call build_function_call_vec.
21481 (build_function_call_vec): New function, based on old
21482 build_function_call.
21483 (convert_arguments): Remove nargs and argarray parameters. Change
21484 values to a VEC. Add origtypes parameter.
21485 (build_modify_expr): Add rhs_origtype parameter. Change all callers.
21486 (convert_for_assignment): Add origtype parameter. Change all
21487 callers. If warn_cxx_compat, check for conversion to an enum
21488 type when calling a function.
21489 (store_init_value): Add origtype parameter. Change all callers.
21490 (digest_init): Likewise.
21491 (struct init_node): Add origtype field.
21492 (add_pending_init): Add origtype parameter. Change all callers.
21493 (output_init_element): Likewise.
21494 (output_pending_init_elements): Pass origtype from init_node to
21495 output_init_element.
21496 (process_init_element): Pass origtype from c_expr to
21497 output_init_element.
21498 (c_finish_return): Add origtype parameter. Change all callers.
21499 * c-common.c (sync_resolve_size): Change params to VEC *. Change
21500 caller.
21501 (sync_resolve_params): Likewise.
21502 (sync_resolve_return): Change params to first_param. Change caller.
21503 (resolve_overloaded_builtins): Change params to VEC *. Change
21504 callers. Save first parameter around call to build_function_call_vec.
21505 * c-decl.c (finish_decl): Add origtype parameter. Change all
21506 callers. Call build_function_call_vec rather than
21507 build_function_call for cleanup.
21508 * c-tree.h: Update declarations.
21509 * c-common.h: Update declarations.
21510 * stub-objc.c (objc_rewrite_function_call): Change parameter from
21511 params to first_param.
21512 * target.h (struct gcc_target): Change resolve_overloaded_builtin
21513 params parameter from tree to void *.
21514 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
21515 Change arglist parameter to have type void *, and to be a pointer
21516 to a VEC.
21517 * config/rs6000/rs6000-protos.h
21518 (altivec_resolve_overloaded_builtin): Update declaration.
21519 * config/spu/spu-c.c (spu_resolved_overloaded_builtin): Change
21520 fnargs parameter to have type void *, and to be a pointer to a
21521 VEC. Call build_function_call_vec instead of
21522 build_function_call.
21523 * config/spu/spu-protos.h (spu_expand_builtin): Update declaration.
21524
21525 2009-04-20 Joey Ye <joey.ye@intel.com>
21526 Xuepeng Guo <xuepeng.guo@intel.com>
21527 H.J. Lu <hongjiu.lu@intel.com>
21528
21529 * config/i386/atom.md: Add bypasses with ix86_dep_by_shift_count.
21530
21531 * config/i386/i386.c (LEA_SEARCH_THRESHOLD): New macro.
21532 (IX86_LEA_PRIORITY): Likewise.
21533 (distance_non_agu_define): New function.
21534 (distance_agu_use): Likewise.
21535 (ix86_lea_for_add_ok): Likewise.
21536 (ix86_dep_by_shift_count): Likewise.
21537
21538 * config/i386/i386.md: Call ix86_lea_for_add_ok to decide we
21539 should split for LEA.
21540
21541 * config/i386/i386-protos.h (ix86_lea_for_add_ok): Declare new
21542 function.
21543 (ix86_dep_by_shift_count): Likewise.
21544
21545 2009-04-20 Richard Guenther <rguenther@suse.de>
21546
21547 * expr.c (handled_component_p): Move ...
21548 * tree.h (handled_component_p): ... here.
21549 * tree.def: Re-order BIT_FIELD_REF, COMPONENT_REF,
21550 ARRAY_REF, ARRAY_RANGE_REF, VIEW_CONVERT_EXPR, IMAGPART_EXPR
21551 and REALPART_EXPR to be in one group.
21552
21553 2009-04-20 Richard Guenther <rguenther@suse.de>
21554
21555 * basic-block.h (get_all_dominated_blocks): Declare.
21556 * dominance.c (get_all_dominated_blocks): New function.
21557 * tree-cfg.c (get_all_dominated_blocks): Remove.
21558 (remove_edge_and_dominated_blocks): Adjust.
21559 * tree-ssa-phiprop.c (tree_ssa_phiprop_1): Fold in ...
21560 (tree_ssa_phiprop): ... here. Use get_all_dominated_blocks
21561 instead of recursing.
21562
21563 2009-04-20 Doug Kwan <dougkwan@google.com>
21564
21565 * cgraph.h (cgraph_node_ptr): New type for vector functions.
21566 (struct cgraph_node_set_def): New type.
21567 (cgraph_node_set) New type. Also declare vector functions.
21568 (struct cgraph_node_set_element_def): New type.
21569 (cgraph_node_set_element): Ditto.
21570 (cgraph_node_set_iterator): New iterator type.
21571 (cgraph_node_set_new, cgraph_node_set_find, cgraph_node_set_add,
21572 cgraph_node_set_remove, dump_cgraph_node_set,
21573 debug_cgraph_node_set): New prototypes.
21574 (csi_end_p, csi_next, csi_node, csi_start, cgraph_node_in_set_p,
21575 cgraph_node_set_size): New inlines.
21576 * tree-pass.h (struct cgraph_node_set_def): New decl to avoid
21577 including cgraph.h.
21578 (struct ipa_opt_pass): Add struct cgraph_node_set_def
21579 argument to function 'write_summary'.
21580 * ipa.c: Include ggc.h.
21581 (hash_cgraph_node_set_element,
21582 eq_cgraph_node_set_element, cgraph_node_set_new,
21583 cgraph_node_set_add, cgraph_node_set_remove,
21584 cgraph_node_set_find, dump_cgraph_node_set,
21585 debug_cgraph_node_set): New functions.
21586 * Makefile.in (ipa.o): Add dependency on GGC_H.
21587
21588 2009-04-20 Ira Rosen <irar@il.ibm.com>
21589
21590 PR tree-optimization/39675
21591 * tree-vect-loop.c (vect_transform_loop): Remove currently redundant
21592 check of the return code of vect_schedule_slp. Check that
21593 stmt_vec_info still exists for the statement, before checking its
21594 vectorization type.
21595
21596 2009-04-20 Michael Matz <matz@suse.de>
21597
21598 * Makefile.in (generated_files): Take out $(simple_generated_c).
21599
21600 2009-04-19 Dave Korn <dave.korn.cygwin@gmail.com>
21601
21602 * config/i386/cygwin-stdint.h (INTPTR_TYPE): Remove "long".
21603 (UINTPTR_TYPE): Likewise.
21604
21605 2009-04-19 Joseph Myers <joseph@codesourcery.com>
21606
21607 PR c/37481
21608 * c-typeck.c (digest_init): Check for initializing an array with a
21609 string literal.
21610
21611 2009-04-19 Joseph Myers <joseph@codesourcery.com>
21612
21613 PR c/19771
21614 * c-semantics.c (pop_stmt_list): Propagate
21615 STATEMENT_LIST_HAS_LABEL to parent statement list.
21616
21617 2009-04-19 Adam Nemet <anemet@caviumnetworks.com>
21618
21619 * config/mips/mips.h (mips_tune_attr): New macro.
21620 * config/mips/mips.md (cpu): Use it.
21621
21622 2009-04-19 Joseph Myers <joseph@codesourcery.com>
21623
21624 PR c/38243
21625 * c-decl.c (shadow_tag_warned): Diagnose use of restrict when
21626 declaring a tag.
21627
21628 2009-04-19 Diego Novillo <dnovillo@google.com>
21629
21630 * toplev.c (compile_file): Move call to coverage_finish ...
21631 * cgraphunit.c (ipa_passes): ... here.
21632 Call cgraph_process_new_functions.
21633 * ipa-utils.c (get_base_var): Handle CONSTRUCTOR.
21634 * Makefile.in (cgraphunit.o): Add dependency on COVERAGE_H.
21635
21636 2009-04-19 Jan Hubicka <jh@suse.cz>
21637
21638 * cgraph.c (cgraph_create_edge, cgraph_set_call_stmt): Set proper
21639 cfun.
21640 (dump_cgraph_node): Dump can throw external flag.
21641 * ipa-pure-const.c (propagate): Fix propagation of nothrow flags.
21642
21643 2009-04-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
21644
21645 PR c/32061
21646 PR c++/36954
21647 * doc/invoke.texi: Add -Wlogical-op to -Wextra.
21648 * common.opt (Wlogical-op): Move from here...
21649 * c.opt (Wlogical-op): ... to here.
21650 * c-typeck.c (parser_build_binary_op): Update call to
21651 warn_logical_operator.
21652 * c-opts.c (c_common_post_options): Enable warn_logical_op with
21653 extra_warnings.
21654 * c-common.c (warn_logical_op): Update.
21655 * c-common.h (warn_logical_op): Update declaration.
21656
21657 2009-04-19 Eric Botcazou <ebotcazou@adacore.com>
21658
21659 * tree.c (protected_set_expr_location): Fix formatting.
21660
21661 2009-04-18 Joseph Myers <joseph@codesourcery.com>
21662
21663 PR c/27676
21664 * c-typeck.c (readonly_warning): new.
21665 (build_unary_op, build_modify_expr): Use readonly_warning for
21666 storing into something readonly but not const-qualified.
21667
21668 2009-04-18 Joseph Myers <joseph@codesourcery.com>
21669
21670 PR c/22367
21671 * c-typeck.c (build_unary_op): Check for taking address of
21672 expression of type void.
21673
21674 2009-04-18 Joseph Myers <joseph@codesourcery.com>
21675
21676 PR c/35210
21677 * c-typeck.c (build_function_call): Check for calling a function
21678 with qualified void return types. Call require_complete_type when
21679 generating a trap.
21680
21681 2009-04-18 Jan Hubicka <jh@suse.cz>
21682
21683 * cgraph.c (cgraph_make_edge, dump_cgraph_node, cgraph_set_call_stmt):
21684 Set nothrow flag.
21685 * cgraph.h (struct function): Reduce loop_nest to 30 bits; add
21686 can_throw_external flag.
21687 * ipa-reference.c (ipa_utils_reduced_inorder): Update call.
21688 * ipa-pure-const.c (ignore_edge): New function.
21689 (propagate): Compute order for NOTHROW computation; set NOTHROWs
21690 only over can_throw_external edges.
21691 (local_pure_const): Add nothrow flag.
21692 * ipa-utils.c (searchc): Add ignore_edge callback.
21693 (ipa_utils_reduced_inorder): Add ignore_edge callback.
21694 * ipa-utils.h (ipa_utils_reduced_inorder): Update prototype.
21695 (set_nothrow_function_flags): Update cgraph.
21696 * tree-cfg.c (verify_stmt): Relax nothrow checking when in IPA mode.
21697
21698 2009-04-18 Richard Guenther <rguenther@suse.de>
21699
21700 PR middle-end/39804
21701 * tree-ssa-ccp.c (fold_stmt_1): New function factored from ...
21702 (fold_stmt): ... this and ...
21703 (fold_stmt_inplace): ... this.
21704 (fold_stmt_1): Fold references in calls and asms.
21705 * tree-cfg.c (remove_useless_stmts_cond): Use fold_stmt.
21706
21707 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
21708
21709 * tree-vrp.c (ssa_name_nonzero_p): Remove.
21710 * tree.h: Remove the prototype for ssa_name_nonzero_p.
21711
21712 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
21713
21714 * tree.c (function_args_count): Remove.
21715 * tree.h: Remove the prototype for function_args_count.
21716
21717 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
21718
21719 * tree-iterator.c (expr_only): Remove.
21720 * tree.h: Remove the prototype for expr_only.
21721
21722 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
21723
21724 * reginfo.c (cannot_change_mode_set_regs): Remove.
21725 * rtl.h: Remove the prototype for cannot_change_mode_set_regs.
21726
21727 2009-04-08 Anatoly Sokolov <aesok@post.ru>
21728
21729 * config/avr/avr.md (*rotlsi3_8, *rotlsi3_16, *rotlsi3_24 ): Check
21730 whether operands 0 and 1 overlaps.
21731
21732 2009-04-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
21733
21734 PR middle-end/36902
21735 * tree-vrp.c (check_array_ref): Pass a location_t instead of a
21736 pointer. Use warning_at instead of warning.
21737 (search_for_addr_array): Likewise.
21738 (check_array_bounds): Likewise.
21739 (check_all_array_refs): Check that the incoming edge is not in the
21740 list of edges to be removed.
21741 (check_all_array_refs): Avoid the temporal pointer.
21742 (vrp_visit_cond_stmt): Fix typo.
21743 (simplify_switch_using_ranges): Handle the case where the switch
21744 index is an integer constant.
21745
21746 2009-04-18 Adam Nemet <anemet@caviumnetworks.com>
21747
21748 * config/mips/mips.c (mips_final_postscan_insn): Make it static.
21749
21750 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
21751
21752 * doc/extend.texi, doc/invoke.texi: Fix typos.
21753
21754 2009-04-17 Cary Coutant <ccoutant@google.com>
21755
21756 * tree-flow-inline.h (get_lineno): Fix inverted test.
21757
21758 2009-04-17 Diego Novillo <dnovillo@google.com>
21759
21760 * tree-ssa-pre.c (create_expression_by_pieces): Remove
21761 assertion for AVAIL_OUT.
21762
21763 2009-04-17 Mike Frysinger <vapier@gentoo.org>
21764
21765 PR target/38627
21766 * config/sh/lib1funcs.asm [__ELF__ && __linux__]: Add .note.GNU-stack.
21767 * config/sh/linux-atomic.asm: Likewise.
21768
21769 2009-04-17 Diego Novillo <dnovillo@google.com>
21770
21771 * except.c (debug_eh_tree): New.
21772 (struct eh_region, struct eh_status): Move ...
21773 * except.h: ... here.
21774 (add_type_for_runtime): Declare extern.
21775 (lookup_type_for_runtime): Likewise.
21776 (debug_eh_tree): Declare.
21777 * Makefile.in (GTFILES): List except.h before except.c
21778
21779 2009-04-17 Diego Novillo <dnovillo@google.com>
21780
21781 * omp-low.c (create_omp_child_function): Set DECL_CONTEXT for DECL.
21782 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
21783 * tree-dfa.c (find_referenced_vars_in): Factor out of ...
21784 (find_vars_r): ... here.
21785 * tree-flow.h (find_referenced_vars_in): Declare.
21786 * tree-ssa-pre.c (create_expression_by_pieces): Assert
21787 that AVAIL_OUT exists for BLOCK.
21788 * Makefile.in (CGRAPH_H): Add dependency on cif-code.def
21789 (tree-loop-distribution.o): Fix dependency on TREE_VECTORIZER_H.
21790 (tree-parloops.o): Likewise.
21791
21792 2009-04-17 Simon Baldwin <simonb@google.com>
21793
21794 * toplev.c (default_tree_printer): Add handling for %E format.
21795
21796 2009-04-17 Diego Novillo <dnovillo@google.com>
21797
21798 * tree-pretty-print.c (dump_generic_node): Add break after
21799 TREE_BINFO handler. Handle COMPLEX_TYPE, REAL_TYPE and
21800 FIXED_POINT_TYPE. Handle NULL TREE_TYPEs. Handle METHOD_TYPE and
21801 FUNCTION_TYPE together. Call print_struct_decl when printing
21802 structures and TDF_SLIM is not given.
21803 (print_struct_decl): Fix logic for detecting recursion.
21804
21805 2009-04-17 Rafael Avila de Espindola <espindola@google.com>
21806
21807 PR 31567
21808 * gcc.c (create_at_file): New.
21809 (compile_input_file_p): New.
21810 (do_spec_1): Use @args files for %i. Use create_at_file for %o.
21811 * main.c (main): Update call to toplev_main.
21812 * toplev.c (toplev_main): Change signature. Call expandargv.
21813 * toplev.h (toplev_main): Change signature.
21814
21815 2009-04-17 Eric Botcazou <ebotcazou@adacore.com>
21816
21817 * dwarf2out.c (field_byte_offset): Use the type size as the field size
21818 if the latter is not constant.
21819
21820 2009-04-17 David Edelsohn <edelsohn@gnu.org>
21821
21822 * dbxout.c (xcoff_debug_hooks): Add set_name_debug_nothing.
21823
21824 2009-04-17 Eric Botcazou <ebotcazou@adacore.com>
21825
21826 * dbxout.c (dbxout_block): Reinstate test on TREE_USED.
21827 * tree-ssa-live.c (remove_unused_scope_block_p): Update TREE_USED bit.
21828
21829 2009-04-17 Richard Guenther <rguenther@suse.de>
21830
21831 * tree-ssa-structalias.c (get_constraint_for_component_ref):
21832 Handle component references view-converting an invariant address.
21833
21834 2009-04-17 Adam Nemet <anemet@caviumnetworks.com>
21835
21836 * doc/tm.texi (TARGET_DEFAULT_TARGET_FLAGS,
21837 TARGET_MIN_ANCHOR_OFFSET, TARGET_MAX_ANCHOR_OFFSET,
21838 TARGET_HAVE_SRODATA_SECTION, TARGET_HAVE_TLS,
21839 TARGET_UNWIND_TABLES_DEFAULT, TARGET_TERMINATE_DW2_EH_FRAME_INFO):
21840 Use @deftypevr rather than @deftypevar.
21841
21842 2009-04-17 Richard Guenther <rguenther@suse.de>
21843
21844 * tree-ssa-forwprop.c (get_prop_dest_stmt): Clean up tuplification.
21845 (get_prop_source_stmt): Likewise.
21846 (can_propagate_from): Likewise.
21847
21848 2009-04-17 Andrew Stubbs <ams@codesourcery.com>
21849
21850 * configure.ac: Add new AC_SUBST for TM_ENDIAN_CONFIG,
21851 TM_MULTILIB_CONFIG and TM_MULTILIB_EXCEPTIONS_CONFIG.
21852 (--with-multilib-list): Add default value.
21853 * configure: Regenerate.
21854 * Makefile.in (TM_ENDIAN_CONFIG): Define.
21855 (TM_MULTILIB_CONFIG, TM_MULTILIB_EXCEPTIONS_CONFIG): Define.
21856 * config.gcc (sh-*-*): Switch to using TM_ENDIAN_CONFIG,
21857 TM_MULTILIB_CONFIG, and TM_MULTILIB_EXCEPTIONS_CONFIG.
21858 Don't add default cpu to multilib list unnecessarily, but do enable
21859 the relevant compiler option..
21860 Add support for --with-multilib-list=<blank> and
21861 --with-multilib-list=!<somelib> to supress unwanted multilibs.
21862 * config/sh/t-sh (DEFAULT_ENDIAN, OTHER_ENDIAN): New variables.
21863 (MULTILIB_ENDIAN, MULTILIB_CPUS): Delete variables.
21864 (MULTILIB_OPTIONS): Redefine using OTHER_ENDIAN and
21865 TM_MULTILIB_CONFIG.
21866 (MULTILIB_EXCEPTIONS): Add TM_MULTILIB_EXCEPTIONS_CONFIG.
21867 (MULTILIB_OSDIRNAMES): New variable.
21868 * config/sh/t-1e: Delete file.
21869 * config/sh/t-mlib-sh1: Delete file.
21870 * config/sh/t-mlib-sh2: Delete file.
21871 * config/sh/t-mlib-sh2a: Delete file.
21872 * config/sh/t-mlib-sh2a-nofpu: Delete file.
21873 * config/sh/t-mlib-sh2a-single: Delete file.
21874 * config/sh/t-mlib-sh2a-single-only: Delete file.
21875 * config/sh/t-mlib-sh2e: Delete file.
21876 * config/sh/t-mlib-sh3e: Delete file.
21877 * config/sh/t-mlib-sh4: Delete file.
21878 * config/sh/t-mlib-sh4-nofpu: Delete file.
21879 * config/sh/t-mlib-sh4-single: Delete file.
21880 * config/sh/t-mlib-sh4-single-only: Delete file.
21881 * config/sh/t-mlib-sh4a: Delete file.
21882 * config/sh/t-mlib-sh4a-nofpu: Delete file.
21883 * config/sh/t-mlib-sh4a-single: Delete file.
21884 * config/sh/t-mlib-sh4a-single-only: Delete file.
21885 * config/sh/t-mlib-sh4al: Delete file.
21886 * config/sh/t-mlib-sh5-32media: Delete file.
21887 * config/sh/t-mlib-sh5-32media-nofpu: Delete file.
21888 * config/sh/t-mlib-sh5-64media: Delete file.
21889 * config/sh/t-mlib-sh5-64media-nofpu: Delete file.
21890 * config/sh/t-mlib-sh5-compact: Delete file.
21891 * config/sh/t-mlib-sh5-compact-nofpu: Delete file.
21892 * config/sh/t-linux: Don't override MULTILIB_EXCEPTIONS.
21893 * doc/install.texi (Options specification): Add
21894 --with-multilib-list and --with-endian.
21895
21896 2009-04-17 Rafael Avila de Espindola <espindola@google.com>
21897
21898 * Makefile.in (REVISION_s): Always include quotes. Change ifdef to use
21899 REVISION_c.
21900 (OBJS-common): Add plugin-version.o.
21901 (plugin-version.o): New.
21902 * gcc-plugin.h (plugin_gcc_version): New.
21903 (plugin_default_version_check): New.
21904 (plugin_init_func, plugin_init): Add version argument.
21905 * plugin-version.c: New.
21906 * plugin.c (str_plugin_gcc_version_name): New.
21907 (try_init_one_plugin): Read plugin_gcc_version from the plugin and
21908 pass it to the init function.
21909 (plugin_default_version_check): New.
21910
21911 2009-04-17 Richard Guenther <rguenther@suse.de>
21912
21913 * tree-ssa-alias.c (refs_may_alias_p_1): Do not use TBAA
21914 for decl-vs-decl disambiguation.
21915
21916 2009-04-17 Andreas Krebbel <krebbel1@de.ibm.com>
21917
21918 * config/s390/s390.h (s390_tune_attr): New macro definition.
21919 * config/s390/s390.md (cpu attribute): Map to s390_tune_attr.
21920
21921 2009-04-17 Richard Guenther <rguenther@suse.de>
21922
21923 * tree-ssa-ccp.c (struct fold_stmt_r_data): Remove.
21924 (fold_stmt_r): Likewise.
21925 (maybe_fold_reference): New function.
21926 (fold_gimple_assign): Handle cases fold_stmt_r did.
21927 (fold_stmt): Do not use fold_stmt_r.
21928 (fold_stmt_inplace): Likewise.
21929
21930 2009-04-17 Richard Guenther <rguenther@suse.de>
21931
21932 * tree-ssa-dom.c (gimple_assign_unary_useless_conversion_p): Remove.
21933 (record_equivalences_from_stmt): Remove useless checks and
21934 simplifications.
21935 * tree-ssa-pre.c (eliminate): Avoid converting a constant if
21936 the type is already suitable.
21937
21938 2009-04-17 Paolo Bonzini <bonzini@gnu.org>
21939
21940 * config/sh/sh.h (FUNCTION_VALUE): Fix call to sh_promote_prototypes.
21941
21942 2009-04-17 Uros Bizjak <ubizjak@gmail.com>
21943
21944 * config/arm/sfp-machine.h (__gcc_CMPtype): New typedef.
21945 (CMPtype): Define as __gcc_CMPtype.
21946
21947 2009-04-17 Aurelien Jarno <aurelien@aurel32.net>
21948
21949 * config.gcc: Add soft-fp/t-softfp and i386/t-linux to tmake_file
21950 for i[34567]86-*-kfreebsd*-gnu*, x86_64-*-kfreebsd*-gnu*.
21951
21952 2009-04-17 Richard Guenther <rguenther@suse.de>
21953
21954 PR tree-optimization/39746
21955 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Remove
21956 special-casing for builtins and static variable use/def.
21957 (call_may_clobber_ref_p_1): Likewise.
21958
21959 2009-04-16 Ian Lance Taylor <iant@google.com>
21960
21961 * df.h: Include "timevar.h".
21962 (struct df_problem): Change tv_id field to timevar_id_t.
21963 * tree-pass.h: Include "timevar.h".
21964 (struct opt_pass): Change tv_id field to timevar_id_t.
21965 * timevar.h (timevar_id_t): Define TV_NONE.
21966 * passes.c (execute_one_ipa_transform_pass): Check for tv_id !=
21967 TV_NONE rather than tv_id != 0.
21968 (execute_one_pass): Likewise.
21969 * Makefile.in (DF_H): Add $(TIMEVAR_H).
21970 (TREE_PASS_H): Define. Change all instances of tree-pass.h in
21971 dependencies to $(TREE_PASS_H).
21972 * bt-load.c (pass_branch_target_load_optimize1): Set tv_id field
21973 to TV_NONE.
21974 (pass_branch_target_load_optimize2): Likewise.
21975 * cfglayout.c (pass_into_cfg_layout_mode): Likewise.
21976 (pass_outof_cfg_layout_mode): Likewise.
21977 * cgraphbuild.c (pass_remove_cgraph_callee_edges): Likewise.
21978 (pass_rebuild_cgraph_edges): Likewise.
21979 (pass_remove_cgraph_callee_edges): Likewise.
21980 * df-core.c (pass_df_initialize_opt): Likewise.
21981 (pass_df_initialize_no_opt): Likewise.
21982 (pass_df_finish): Likewise.
21983 * emit-rtl.c (pass_unshare_all_rtl): Likewise.
21984 * except.c (pass_set_nothrow_function_flags): Likewise.
21985 (pass_convert_to_eh_region_ranges): Likewise.
21986 * final.c (pass_compute_alignments): Likewise.
21987 * function.c (pass_instantiate_virtual_regs): Likewise.
21988 (pass_init_function): Likewise.
21989 (pass_leaf_regs): Likewise.
21990 (pass_match_asm_constraints): Likewise.
21991 * gimple-low.c (pass_lower_cf): Likewise.
21992 (pass_mark_used_blocks): Likewise.
21993 * init-regs.c (pass_initialize_regs): Likewise.
21994 * integrate.c (pass_initial_value_sets): Likewise.
21995 * ira.c (pass_ira): Likewise.
21996 * jump.c (pass_cleanup_barriers): Likewise.
21997 * omp-low.c (pass_expand_omp): Likewise.
21998 (pass_lower_omp): Likewise.
21999 * matrix-reorg.c (pass_ipa_matrix_reorg): Likewise.
22000 * recog.c (pass_split_all_insns): Likewise.
22001 (pass_split_after_reload): Likewise.
22002 (pass_split_before_regstack): Likewise.
22003 (pass_split_before_sched2): Likewise.
22004 (pass_split_for_shorten_branches): Likewise.
22005 * reginfo.c (pass_reginfo_init): Likewise.
22006 (pass_subregs_of_mode_init): Likewise.
22007 (pass_subregs_of_mode_finish): Likewise.
22008 * passes.c (pass_postreload): Likewise.
22009 * stack-ptr-mod.c (pass_stack_ptr_mod): Likewise.
22010 * tree-cfg.c (pass_remove_useless_stmts): Likewise.
22011 (pass_warn_function_return): Likewise.
22012 (pass_warn_function_noreturn): Likewise.
22013 * tree-complex.c (pass_lower_complex): Likewise.
22014 (pass_lower_complex_O0): Likewise.
22015 * tree-if-conv.c (pass_if_conversion): Likewise.
22016 * tree-into-ssa.c (pass_build_ssa): Likewise.
22017 * tree-mudflap.c (pass_mudflap_1): Likewise.
22018 (pass_mudflap_2): Likewise.
22019 * tree-nomudflap.c (pass_mudflap_1): Likewise.
22020 (pass_mudflap_2): Likewise.
22021 * tree-nrv.c (pass_return_slot): Likewise.
22022 * tree-object-size.c (pass_object_sizes): Likewise.
22023 * tree-optimize.c (pass_all_optimizations): Likewise.
22024 (pass_early_local_passes): Likewise.
22025 (pass_all_early_optimizations): Likewise.
22026 (pass_cleanup_cfg): Likewise.
22027 (pass_cleanup_cfg_post_optimizing): Likewise.
22028 (pass_free_datastructures): Likewise.
22029 (pass_free_cfg_annotations): Likewise.
22030 (pass_fixup_cfg): Likewise.
22031 (pass_init_datastructures): Likewise.
22032 * tree-ssa.c (pass_early_warn_uninitialized): Likewise.
22033 (pass_late_warn_uninitialized): Likewise.
22034 (pass_update_address_taken): Likewise.
22035 * tree-ssa-ccp.c (pass_fold_builtins): Likewise.
22036 * tree-ssa-math-opts.c (pass_cse_reciprocals): Likewise.
22037 (pass_cse_sincos): Likewise.
22038 (pass_convert_to_rsqrt): Likewise.
22039 * tree-ssa-structalias.c (pass_build_alias): Likewise.
22040 * tree-stdarg.c (pass_stdarg): Likewise.
22041 * tree-tailcall.c (pass_tail_recursion): Likewise.
22042 (pass_tail_calls): Likewise.
22043 * tree-vect-generic.c (pass_lower_vector): Likewise.
22044 (pass_lower_vector_ssa): Likewise.
22045 * tree-vectorizer.c (pass_ipa_increase_alignment): Likewise.
22046
22047 2009-04-16 Joseph Myers <joseph@codesourcery.com>
22048
22049 * config/mips/mips.c (mips_rtx_cost_data): Use SOFT_FP_COSTS in
22050 XLR entry.
22051 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC):
22052 Handle -march=xlr.
22053 * config/mips/xlr.md (ir_xlr_alu): Also accept insn types move,
22054 logical and signext.
22055
22056 2009-04-16 Kaz Kojima <kkojima@gcc.gnu.org>
22057
22058 PR target/39767
22059 * config/sh/predicates.md (arith_operand): Check if the operand
22060 of TRUNCATE is a REG.
22061
22062 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
22063
22064 * cfgrtl.c (delete_insn_chain_and_edges): Remove.
22065 * rtl.h: Remove the prototype for delete_insn_chain_and_edges.
22066
22067 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
22068
22069 * tree-iterator.c (tsi_split_statement_list_after,
22070 tsi_split_statement_list_before): Remove.
22071 * tree-iterator.h: Remove the prototypes for
22072 tsi_split_statement_list_after and tsi_split_statement_list_before.
22073
22074 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
22075
22076 * tree-ssa-propagate.c (stmt_makes_single_load): Remove.
22077 * tree-ssa-propagate.h: Remove the prototype for
22078 stmt_makes_single_load.
22079
22080 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
22081
22082 * emit-rtl.c (set_mem_attrs_from_reg): Remove.
22083 * rtl.h: Remove the prototype for set_mem_attrs_from_reg.
22084
22085 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
22086
22087 * tree-iterator.c (EXPR_LAST_BODY): Remove.
22088
22089 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
22090
22091 * except.c (eh_region_outer_p): Remove.
22092 * except.h: Remove the prototype for eh_region_outer_p.
22093
22094 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
22095
22096 * function.c (current_function_assembler_name): Remove.
22097 * function.h: Remove the prototype for
22098 current_function_assembler_name.
22099
22100 2009-04-16 Ian Lance Taylor <iant@google.com>
22101
22102 * rtlanal.c (alloc_reg_note): New function, broken out of add_reg_note.
22103 (add_reg_note): Call alloc_reg_note.
22104 * rtl.h (alloc_reg_note): Declare.
22105 * combine.c (try_combine): Use alloc_reg_note.
22106 (recog_for_combine, move_deaths): Likewise.
22107 (distribute_notes): Use alloc_reg_note and add_reg_note.
22108 * haifa-sched.c (sched_create_recovery_edges): Use add_reg_note.
22109 * combine-stack-adj.c (adjust_frame_related_expr): Likewise.
22110 * reload1.c (eliminate_regs_1): Use alloc_reg_note.
22111
22112 2009-04-16 Vladimir Makarov <vmakarov@redhat.com>
22113
22114 PR rtl-optimization/39762
22115 * ira-int.h (ira_register_move_cost, ira_may_move_in_cost,
22116 ira_may_move_out_cost): Add comments about way of their usage.
22117 (ira_get_register_move_cost, ira_get_may_move_cost): New functions.
22118
22119 * ira-conflicts.c (process_regs_for_copy): Use function
22120 ira_get_register_move_cost instead of global
22121 ira_register_move_cost.
22122
22123 * ira-color.c (update_copy_costs, calculate_allocno_spill_cost,
22124 color_pass, move_spill_restore, update_curr_costs): Ditto.
22125
22126 * ira-lives.c (process_single_reg_class_operands): Ditto.
22127
22128 * ira-emit.c (emit_move_list): Ditto.
22129
22130 * ira-costs.c (copy_cost): Don't call ira_init_register_move_cost.
22131 (record_reg_classes): Ditto. Use functions
22132 ira_get_register_move_cost and ira_get_may_move_cost instead of
22133 global vars ira_register_move_cost, ira_may_move_out_cost and
22134 ira_may_move_in_cost.
22135 (record_address_regs): Don't call ira_init_register_move_cost.
22136 Use function ira_get_may_move_cost instead of global
22137 ira_may_move_in_cost.
22138 (process_bb_node_for_hard_reg_moves): Use function
22139 ira_get_register_move_cost instead of global ira_register_move_cost.
22140 (ira_costs): Don't call ira_init_register_move_cost.
22141
22142 2009-04-16 Richard Guenther <rguenther@suse.de>
22143
22144 * tree-cfg.c (verify_gimple_assign_binary):
22145 Allow POINTER_PLUS_EXPR-like PLUS_EXPR for vectors.
22146 * ipa-struct-reorg.c (gen_size): Fold the built expressions.
22147 (create_general_new_stmt): Note that this function is broken.
22148
22149 2009-04-16 Rafael Avila de Espindola <espindola@google.com>
22150
22151 * common.opt (fhelp): Add Var(help_flag).
22152 * gcc-plugin.h (plugin_info): Add help.
22153 * plugin.c (plugin_name_args): Add help.
22154 (register_plugin_info): Set plugin->help.
22155 (print_help_one_plugin): New.
22156 (print_plugins_help): New.
22157 * plugin.h (print_plugins_help): New.
22158 * toplev.c (toplev_main): Call print_plugins_help if needed.
22159
22160 2009-04-16 Richard Guenther <rguenther@suse.de>
22161
22162 * gimple.c (gimple_copy): Do not clear addresses_taken bitmap.
22163 (gimple_ior_addresses_taken_1): New function.
22164 (gimple_ior_addresses_taken): Likewise.
22165 * gimple.h (struct gimple_statement_with_ops_base): Remove
22166 addresses_taken member.
22167 (gimple_ior_addresses_taken): Declare.
22168 (gimple_addresses_taken, gimple_addresses_taken_ptr,
22169 gimple_set_addresses_taken): Remove.
22170 * ipa-reference.c (mark_address): New function.
22171 (scan_stmt_for_static_refs): Use it for marking addresses taken.
22172 * tree-ssa-operands.c (add_to_addressable_set): Rename to ...
22173 (mark_address_taken): ... this. Just set TREE_ADDRESSABLE.
22174 (gimple_add_to_addresses_taken): Remove.
22175 (get_tmr_operands): Call mark_address_taken.
22176 (get_asm_expr_operands): Likewise.
22177 (get_expr_operands): Likewise.
22178 (build_ssa_operands): Do not clear the addresses_taken bitmap.
22179 (free_stmt_operands): Do not free it.
22180 * tree-ssa.c (delete_tree_ssa): Likewise.
22181 (execute_update_addresses_taken): Use gimple_ior_addresses_taken.
22182
22183 2009-04-16 Richard Guenther <rguenther@suse.de>
22184
22185 * gimple.h (walk_stmt_load_store_addr_ops): Declare.
22186 (walk_stmt_load_store_ops): Likewise.
22187 * gimple.c (get_base_loadstore): New function.
22188 (walk_stmt_load_store_addr_ops): Likewise.
22189 (walk_stmt_load_store_ops): Likewise.
22190 * ipa-pure-const.c (check_op): Simplify.
22191 (check_load, check_store): New functions.
22192 (check_stmt): Use walk_stmt_load_store_ops.
22193 * ipa-reference.c (mark_load): Adjust signature.
22194 (mark_store): Likewise.
22195 (scan_stmt_for_static_refs): Use walk_stmt_load_store_addr_ops.
22196
22197 2009-04-16 Rafael Avila de Espindola <espindola@google.com>
22198
22199 * gcc-plugin.h (plugin_event): Add PLUGIN_INFO.
22200 (plugin_info): New.
22201 * opts.c (common_handle_option): Don't call print_version.
22202 * plugin.c (plugin_name_args): Add version.
22203 (register_plugin_info): New.
22204 (register_callback): Handle PLUGIN_INFO.
22205 (try_init_one_plugin): New.
22206 (init_one_plugin): Use try_init_one_plugin. Only free plugin_name_args
22207 if failed to init.
22208 (finalize_one_plugin): New.
22209 (finalize_plugins): New.
22210 (print_one_plugin): New.
22211 (print_plugins_versions): New.
22212 * plugin.h (print_plugins_versions): New.
22213 (finalize_plugins): New.
22214 * toplev.c (compile_file): Don't call initialize_plugins.
22215 (print_version): Call print_plugins_versions.
22216 (toplev_main): Call initialize_plugins. Print version if needed.
22217 Call finalize_plugins.
22218
22219 2009-04-16 Rafael Avila de Espindola <espindola@google.com>
22220
22221 * common.opt (fversion): New.
22222 * gcc.c (print_version): New.
22223 (process_command): Don't print the version. Just set print_version.
22224 (main): Print version. Call subprocesses if print_version and
22225 verbose_flag are set.
22226 * opts.c (common_handle_option): Handle OPT_fversion.
22227
22228 2009-04-16 Richard Guenther <rguenther@suse.de>
22229 Ira Rosen <irar@il.ibm.com>
22230
22231 PR tree-optimization/39698
22232 * tree-vect-loop.c (get_initial_def_for_reduction): Use the
22233 type of the reduction variable. Only generate the def if
22234 it is needed.
22235
22236 * omp-low.c (expand_omp_for_generic): When converting to a pointer
22237 make sure to first convert to an integer of the same precision.
22238 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Retain
22239 the type of the evolution correctly in computing the new
22240 induction variable base.
22241
22242 2009-04-16 Richard Guenther <rguenther@suse.de>
22243
22244 PR middle-end/39625
22245 * tree-cfg.c (make_blocks): Split statements with to-be
22246 abnormal SSA names on the lhs.
22247
22248 2009-04-16 Paolo Bonzini <bonzini@gnu.org>
22249
22250 * c-common.c (vector_targets_convertible_p, vector_types_convertible_p):
22251 Use TYPE_VECTOR_OPAQUE instead of targetm.vector_opaque_p.
22252 * c-typeck.c (really_start_incremental_init): Likewise.
22253 * target-def.h (TARGET_VECTOR_OPAQUE_P): Remove.
22254 (TARGET_INITIALIZER): Remove it.
22255 * target.h (struct target): Remove vector_opaque_p.
22256 * tree.c (build_opaque_vector_type): New.
22257 * tree.h (TYPE_VECTOR_OPAQUE): New.
22258 (build_opaque_vector_type): Declare.
22259 * doc/tm.texi (TARGET_VECTOR_OPAQUE_P): Remove.
22260 * config/rs6000/rs6000.c (build_opaque_vector_type,
22261 rs6000_is_vector_type, TARGET_VECTOR_OPAQUE_P): Remove.
22262 (rs6000_init_builtins): Use build_opaque_vector_type for
22263 opaque_V4SI_type_node.
22264
22265 2009-04-15 Catherine Moore <clm@codesourcery.com>
22266
22267 * debug.h (set_name): Declare.
22268 * dwarf2out.c (dwarf2out_set_name): Declare.
22269 (dwarf2_debug_hooks): Add set_name.
22270 (find_AT_string): New.
22271 (add_AT_string): Call find_AT_string.
22272 (dwarf2out_set_name): New.
22273 * cp/decl.c (grokdeclarator): Call set_name.
22274 * vmsdbgout.c (vmsdbg_debug_hooks): Add set_name_debug_nothing.
22275 * debug.c (do_nothing_debug_hooks): Likewise.
22276 * dbxout.c (dbx_debug_hooks): Likewise.
22277 * sdbout.c (sdb_debug_hooks): Likewise.
22278
22279 2009-04-15 Michael Eager <eager@eagercon.com>
22280
22281 * config/rs6000/rs6000.c (rs6000_function_value): Set function return
22282 reg for single-precision FPU.
22283 * config/rs6000/rs6000.md (movsi_internal1): Only for
22284 !TARGET_SINGLE_FPU.
22285 (movsi_internal1_single): New. Add pattern to move SI values to/from
22286 single-precision FP regs.
22287
22288 2009-04-15 Richard Guenther <rguenther@suse.de>
22289
22290 * omp-low.c (lower_rec_input_clauses): Build correct address
22291 expressions.
22292 (expand_omp_for_generic): Fix multiplication type.
22293 * tree-loop-distribution.c (build_size_arg): Build a size_t argument.
22294 (generate_memset_zero): Fix types.
22295 * tree-profile.c (prepare_instrumented_value): Correctly
22296 widen a pointer.
22297
22298 2009-04-15 Ian Lance Taylor <iant@google.com>
22299
22300 * c.opt (Wenum-compare): Enable for C and Objc. Initialize to -1.
22301 * c-opts.c (c_common_handle_option): For C, set warn_enum_compare
22302 for -Wall and for -Wc++-compat.
22303 (c_common_post_options): For C++, set warn_enum_compare if not
22304 already set.
22305 * c-tree.h (struct c_expr): Add field original_type.
22306 (build_external_ref): Update declaration.
22307 * c-parser.c (c_parser_braced_init): Set original_type.
22308 (c_parser_initelt): Likewise.
22309 (c_parser_expr_no_commas): Likewise.
22310 (c_parser_conditional_expression): Likewise.
22311 (c_parser_cast_expression): Likewise.
22312 (c_parser_unary_expression): Likewise. Pull setting of
22313 original_code to top of function.
22314 (c_parser_sizeof_expression): Set original_type.
22315 (c_parser_alignof_expression): Likewise.
22316 (c_parser_postfix_expression): Likewise. Pull setting of
22317 original_code to top of function.
22318 (c_parser_postfix_expression_after_paren_type): Set original_type.
22319 (c_parser_postfix_expression_after_primary): Likewise.
22320 (c_parser_expression): Likewise.
22321 * c-typeck.c (build_external_ref): Add type parameter. Change all
22322 callers.
22323 (c_expr_sizeof_expr): Set original_type field.
22324 (parser_build_unary_op): Likewise.
22325 (parser_build_binary_op): Likewise. Optionally warn about
22326 comparisons of enums of different types.
22327 (digest_init): Set original_type field.
22328 (really_start_incremental_init): Likewise.
22329 (push_init_level, pop_init_level): Likewise.
22330 * doc/invoke.texi (Warning Options): -Wenum-compare now
22331 supported in C.
22332
22333 2009-04-15 Richard Guenther <rguenther@suse.de>
22334
22335 * tree-ssa-pre.c (eliminate): When replacing a PHI node carry
22336 out a necessary conversion.
22337 * tree-ssa-sccvn.c (run_scc_vn): Also assign value-ids to
22338 names we didn't value number.
22339 * tree-mudflap.c (mf_build_check_statement_for): Use correct types.
22340
22341 2009-04-15 Richard Guenther <rguenther@suse.de>
22342
22343 PR tree-optimization/39764
22344 * tree-ssa-ccp.c (get_value): Canonicalize value with
22345 canonicalize_float_value.
22346
22347 2009-04-15 Jan Hubicka <jh@suse.cz>
22348
22349 * builtins.def (va_start, va_end, va_copy): Fix my previous commit.
22350 Wrong version of patch.
22351
22352 2009-04-15 Jan Hubicka <jh@suse.cz>
22353
22354 * builtins.def (va_start, va_end, va_copy): Mark nothrow.
22355
22356 2009-04-15 Nathan Sidwell <nathan@codesourcery.com>
22357
22358 * config/rs6000/rs6000.c (rs6000_init_builtins): Set TYPE_NAME of
22359 our distinct integral and vector types.
22360
22361 2009-04-15 Rafael Avila de Espindola <espindola@google.com>
22362
22363 * class.c (build_vtbl_ref_1): Remove call to assemble_external.
22364 * init.c (build_vtbl_address): Remove call to assemble_external.
22365
22366 2009-04-14 Daniel Jacobowitz <dan@codesourcery.com>
22367
22368 * config/rs6000/rs6000.c (rs6000_dwarf_register_span): Fix debug
22369 output for other floating point modes.
22370
22371 2009-04-14 Diego Novillo <dnovillo@google.com>
22372
22373 * diagnostic.c (diagnostic_report_diagnostic): Do not
22374 warn about loaded plugins for DK_ERROR and DK_WARNING.
22375 * c-decl.c (declspecs_add_type): Move call to
22376 invoke_plugin_callbacks ...
22377 * c-parser.c (c_parser_declspecs): ... here.
22378 * plugin.c (dump_active_plugins): Tidy output.
22379
22380 2009-04-14 Diego Novillo <dnovillo@google.com>
22381 Le-Chun Wu <lcwu@google.com>
22382
22383 * configure.ac: Add --enable-plugin support.
22384 Define ENABLE_PLUGIN and PLUGINLIBS when specified.
22385 * Makefile.in (PLUGIN_H): Define.
22386 Export ENABLE_PLUGIN and GMPINC to site.exp.
22387 Add PLUGINLIBS to link command.
22388 Add/modify dependencies for plugin.o and files including plugin.h.
22389 (plugin.o): New.
22390 * config.in: Regenerate.
22391
22392 * opts.c (common_handle_option): Handle OPT_fplugin_ and
22393 OPT_fplugin_arg_.
22394
22395 2009-04-14 Le-Chun Wu <lcwu@google.com>
22396
22397 * tree-pass.h (register_one_dump_file): Add a prototype for
22398 register_one_dump_file.
22399 * toplev.c (compile_file): Call initialize_plugins.
22400 (do_compile): Call invoke_plugin_callbacks.
22401 (toplev_main): Call invoke_plugin_callbacks.
22402 * common.opt: Add -fplugin= and -fplugin-arg-.
22403 * gcc-plugin.h: New public header file for plugins to include.
22404 * plugin.c: New source file.
22405 * plugin.h: New internal header file.
22406 * passes.c (register_one_dump_file): Make it external.
22407
22408 * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks.
22409
22410 2009-04-14 Diego Novillo <dnovillo@google.com>
22411
22412 * doc/plugins.texi: New.
22413 * doc/gccint.texi: Add reference to Plugins chapter.
22414 * doc/invoke.texi: Document -fplugin and -fplugin-arg
22415 * diagnostic.c (diagnostic_report_diagnostic): Warn about
22416 loaded plugins, if any.
22417 * timevar.def (TV_PLUGIN_INIT): Define.
22418 (TV_PLUGIN_RUN): Define.
22419 * plugin.c: Include timevar.h
22420 (plugins_active_p): New.
22421 (dump_active_plugins): New.
22422 (debug_active_plugins): New.
22423
22424 2009-04-14 Joseph Myers <joseph@codesourcery.com>
22425
22426 * config/sol2.h (LINK_ARCH32_SPEC_BASE): Use %R with absolute
22427 library paths.
22428 * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Likewise.
22429
22430 2009-04-14 Kazu Hirata <kazu@codesourcery.com>
22431
22432 * config/arm/arm.c (arm_rtx_costs_1): Treat a minus with a shift
22433 the same as a minus without a shift.
22434
22435 2009-04-14 Nick Clifton <nickc@redhat.com>
22436
22437 * config/stormy16/stormy16.md (ineqbranch_1): Do not assume that
22438 comparisons with small integers will always produce a short
22439 branch.
22440
22441 2009-04-14 Rafael Avila de Espindola <espindola@google.com>
22442
22443 Merge:
22444 2008-12-19 Diego Novillo <dnovillo@google.com>
22445
22446 * cgraph.c (dump_cgraph_node): Show memory address of NODE.
22447
22448 2009-04-14 Richard Guenther <rguenther@suse.de>
22449
22450 * tree-cfg.c (verify_gimple_assign_unary): Adjust vector code
22451 verification.
22452 (verify_gimple_assign_binary): Likewise. Handle shifts and
22453 rotates correctly.
22454 (verify_gimple_phi): Print the mismatched argument position.
22455 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
22456 Fix types.
22457 (vect_update_init_of_dr): Likewise.
22458 * matrix-reorg.c (transform_access_sites): Do what the
22459 comment suggests.
22460 * omp-low.c (expand_omp_atomic_pipeline): Use the correct types.
22461
22462 2009-04-13 Michael Eager <eager@eagercon.com>
22463
22464 * config/rs6000/rs6000-c.c: generate defines if rs6000_xilinx_fpu:
22465 _XFPU, _XFPU_SP_LITE, _XFPU_SP_FULL, _XFPU_DP_LITE, _XFPU_DP_FULL
22466 * config/rs6000/xilinx.h: New. Spec for powerpc-xilinx-eabi
22467 * config.gcc (powerpc-xilinx-eabi): add xilinx.h to tm_file,
22468 remove duplicate config
22469
22470 2009-04-13 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
22471
22472 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Dump
22473 file_name:line_number type locator of the call site.
22474
22475 2009-04-13 Vladimir Makarov <vmakarov@redhat.com>
22476
22477 * genautomata.c: Put blank after comma.
22478 (automaton_decls): New.
22479 (struct unit_usage): Add comments to member next.
22480 (store_alt_unit_usage): Keep the list ordered.
22481 (unit_present_on_list_p, equal_alternatives_p): New.
22482 (check_regexp_units_distribution): Check units distribution
22483 correctness correctly.
22484 (main): Don't write automata if error is found. Return correct
22485 exit code.
22486
22487 * config/m68k/cf.md (cfv4_ds): Remove.
22488 (cfv4_pOEP1, cfv4_sOEP1, cfv4_pOEP2,cfv4_sOEP2, cfv4_pOEP3,
22489 cfv4_sOEP3): Assign to cfv4_oep instead of cfv4_ds.
22490
22491 * config/rs6000/power4.md (lsuq_power4, iq_power4, fpq_power4,
22492 power4-load-ext, power4-store, power4-store-update,
22493 power4-fpstore, power4-fpstore-update, power4-two, power4-three,
22494 power4-insert, power4-compare, power4-lmul-cmp, power4-imul-cmp,
22495 power4-lmul, , power4-imul, power4-imul3, power4-sdiv,
22496 power4-sqrt, power4-isync): Modify reservation to make correct
22497 unit distribution to automata.
22498
22499 * config/rs6000/power5.md (iq_power5, fpq_power5, power5-store,
22500 power5-store-update, power5-two, power5-three, power5-lmul,
22501 power5-imul, power5-imul3, power5-sdiv, power5-sqrt): Ditto.
22502
22503 2009-04-13 Adam Nemet <anemet@caviumnetworks.com>
22504
22505 * except.c (pass_set_nothrow_function_flags): Set name and add
22506 TODO_dump_func.
22507 (set_nothrow_function_flags): Mention in the dump file when
22508 changing a function to nothrow.
22509
22510 2009-04-13 Ozkan Sezer <sezeroz@gmail.com>
22511
22512 PR/39066
22513 * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Use __SIZE_TYPE__
22514 instead of unsigned long.
22515
22516 2009-04-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22517
22518 * config/arm/arm.c (return_used_this_function): Remove.
22519 (arm_output_function_prologue): Remove use of
22520 return_used_this_function.
22521 (output_return_instruction): Replace use of
22522 return_used_this_function
22523 by cfun->machine->return_used_this_function.
22524 (arm_output_epilogue): Likewise.
22525 (arm_output_function_epilogue): Likewise.
22526 (thumb_unexpanded_epilogue): Likewise.
22527 * config/arm/arm.h (struct machine_function):
22528 New member return_used_this_function.
22529
22530 2009-04-12 Mark Mitchell <mark@codesourcery.com>
22531
22532 * doc/install.texi: Correct description of default directory for
22533 --with-gxx-include-dir.
22534
22535 2009-04-12 Eric Botcazou <ebotcazou@adacore.com>
22536
22537 * fold-const.c (build_range_check): Properly deal with enumeral and
22538 boolean base types.
22539
22540 2009-04-12 Steven Bosscher <steven@gcc.gnu.org>
22541
22542 * doc/invoke.texi (max_gcse_passes): Remove documentation.
22543 * params.def (PARAM_MAX_GCSE_PASSES): Remove.
22544 * params.h (MAX_GCSE_PASSES): Remove.
22545 * gcse.c (gcse_main): Run CPROP1, PRE or HOIST, and CPROP2
22546 in sequence. Remove ability to run multiple passes.
22547 (bypass_jumps): Report run as third CPROP pass.
22548
22549 2009-04-12 Adam Nemet <anemet@caviumnetworks.com>
22550
22551 PR middle-end/39651
22552 * except.c (can_throw_external): Look at each insn in a SEQUENCE
22553 when deciding whether the whole SEQUENCE can throw.
22554
22555 2009-04-12 Uros Bizjak <ubizjak@gmail.com>
22556
22557 PR target/39740
22558 * config/alpha/predicates.md (local_symbolic_operand): Return 1 for
22559 offseted label references.
22560
22561 2009-04-11 Jan Hubicka <jh@suse.cz>
22562
22563 * tree-ssa-pre.c (eliminate): Fix call of update_stmt.
22564
22565 2009-04-11 Richard Guenther <rguenther@suse.de>
22566
22567 PR middle-end/39732
22568 * tree-inline.c (declare_return_variable): Mark DECL_BY_REFERENCE
22569 return variables as TREE_ADDRESSABLE.
22570
22571 2009-04-11 Richard Guenther <rguenther@suse.de>
22572
22573 PR tree-optimization/39713
22574 * tree-ssa-sccvn.c (vn_get_expr_for): Make sure built
22575 reference trees have SSA_NAME operands.
22576
22577 2009-04-11 Richard Guenther <rguenther@suse.de>
22578
22579 PR c/39712
22580 * c-gimplify.c (c_gimplify_expr): Adjust check for mismatched
22581 address expressions.
22582
22583 2009-04-11 Dave Korn <dave.korn.cygwin@gmail.com>
22584
22585 * config/i386/cygwin-stdint.h (INT_LEAST32_TYPE): Update to
22586 match changes in Cygwin 1.7
22587 (UINT_LEAST32_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE,
22588 UINT_FAST16_TYPE, UINT_FAST32_TYPE): Likewise.
22589
22590 2009-04-10 Paolo Bonzini <bonzini@gnu.org>
22591
22592 PR tree-optimization/39701
22593 * doc/invoke.texi (Optimization Options): Document change in
22594 meaning and initialization of -fdelete-null-pointer-checks.
22595
22596 2009-04-10 H.J. Lu <hongjiu.lu@intel.com>
22597
22598 PR middle-end/39701
22599 * common.opt (-fdelete-null-pointer-checks): Initialize to 1.
22600
22601 * opts.c (decode_options): Don't set flag_delete_null_pointer_checks
22602 here.
22603
22604 * doc/invoke.texi: Update -fdelete-null-pointer-checks.
22605
22606 2009-04-10 Chao-ying Fu <fu@mips.com>
22607
22608 * doc/tm.texi (Instruction Output): Document
22609 TARGET_ASM_FINAL_POSTSCAN_INSN.
22610 * target.h (final_postscan_insn): New field in asm_out.
22611 * target-def.h (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
22612 (TARGET_ASM_OUT): Add TARGET_ASM_FINAL_POSTSCAN_INSN.
22613 * final.c (final_scan_insn): Call
22614 targetm.asm_out.final_postscan_insn after outputting
22615 an asm macro and a normal instruction.
22616
22617 * config/mips/mips.h (FINAL_PRESCAN_INSN): New define.
22618 * config/mips/mips-protos.h (mips_final_prescan_insn): Declare.
22619 * config/mips/mips.c (mips_at_reg_p): New for_each_rtx callback.
22620 (mips_final_prescan_insn, mips_final_postscan_insn): New functions.
22621 (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
22622
22623 2009-04-10 Paolo Bonzini <bonzini@gnu.org>
22624
22625 PR middle-end/39701
22626 * fold-const.c (tree_single_nonzero_warnv_p): Pass non-static
22627 variables as non-NULL even with -fdelete-null-pointer-checks.
22628
22629 2009-04-10 H.J. Lu <hongjiu.lu@intel.com>
22630
22631 * config/rs6000/darwin-vecsave.asm: Remove extra "*/".
22632
22633 2009-04-09 H.J. Lu <hongjiu.lu@intel.com>
22634
22635 PR target/39678
22636 * config/i386/i386.c (classify_argument): Handle SCmode with
22637 (bit_offset % 64) != 0.
22638
22639 2009-04-09 Sandra Loosemore <sandra@codesourcery.com>
22640
22641 * doc/invoke.texi (Optimize Options): Add cross-reference to
22642 -Q --help=optimizers examples.
22643
22644 2009-04-10 Ben Elliston <bje@au.ibm.com>
22645
22646 PR target/36800
22647 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Do not set
22648 regalign for the reg == fpr and TDmode case.
22649
22650 2009-04-09 David Ayers <ayers@fsfe.org>
22651
22652 PR objc/29200
22653 * objc/objc-act.c (warn_with_method): Remove helper function.
22654 (check_duplicates): Call warning and inform directly.
22655 (really_start_method): Likewise.
22656
22657 2009-04-09 Paolo Bonzini <bonzini@gnu.org>
22658
22659 * expmed.c (expand_divmod): Always use a comparison for a division
22660 by a large unsigned integer.
22661
22662 * fold-const.c (tree_single_nonzero_warnv_p): Always treat decls
22663 for things others than variables or functions as nonzero.
22664
22665 2009-04-09 Nick Clifton <nickc@redhat.com>
22666
22667 * unwind-compat.c: Change copyright header to refer to version
22668 3 of the GNU General Public License with version 3.1 of the
22669 GCC Runtime Library Exception and to point readers at the
22670 COPYING3 and COPYING3.RUNTIME files and the FSF's license web page.
22671 * config/alpha/crtfastmath.c: Likewise.
22672 * config/alpha/linux-unwind.h: Likewise.
22673 * config/alpha/qrnnd.asm: Likewise.
22674 * config/alpha/vms-crt0-64.c: Likewise.
22675 * config/alpha/vms-crt0.c: Likewise.
22676 * config/alpha/vms-dwarf2.asm: Likewise.
22677 * config/alpha/vms-dwarf2eh.asm: Likewise.
22678 * config/alpha/vms-psxcrt0-64.c: Likewise.
22679 * config/alpha/vms-psxcrt0.c: Likewise.
22680 * config/alpha/vms_tramp.asm: Likewise.
22681 * config/arc/initfini.c: Likewise.
22682 * config/arc/lib1funcs.asm: Likewise.
22683 * config/arm/bpabi-v6m.S: Likewise.
22684 * config/arm/bpabi.S: Likewise.
22685 * config/arm/bpabi.c: Likewise.
22686 * config/arm/crti.asm: Likewise.
22687 * config/arm/crtn.asm: Likewise.
22688 * config/arm/ieee754-df.S: Likewise.
22689 * config/arm/ieee754-sf.S: Likewise.
22690 * config/arm/lib1funcs.asm: Likewise.
22691 * config/arm/libunwind.S: Likewise.
22692 * config/arm/linux-atomic.c: Likewise.
22693 * config/arm/mmintrin.h: Likewise.
22694 * config/arm/pr-support.c: Likewise.
22695 * config/arm/unaligned-funcs.c: Likewise.
22696 * config/arm/unwind-arm.c: Likewise.
22697 * config/arm/unwind-arm.h: Likewise.
22698 * config/avr/libgcc.S: Likewise.
22699 * config/bfin/crti.s: Likewise.
22700 * config/bfin/crtlibid.s: Likewise.
22701 * config/bfin/crtn.s: Likewise.
22702 * config/bfin/lib1funcs.asm: Likewise.
22703 * config/bfin/linux-unwind.h: Likewise.
22704 * config/cris/arit.c: Likewise.
22705 * config/cris/cris_abi_symbol.c: Likewise.
22706 * config/darwin-64.c: Likewise.
22707 * config/darwin-crt2.c: Likewise.
22708 * config/darwin-crt3.c: Likewise.
22709 * config/darwin.h: Likewise.
22710 * config/dbxelf.h: Likewise.
22711 * config/dfp-bit.c: Likewise.
22712 * config/dfp-bit.h: Likewise.
22713 * config/elfos.h: Likewise.
22714 * config/fixed-bit.c: Likewise.
22715 * config/fixed-bit.h: Likewise.
22716 * config/fp-bit.c: Likewise.
22717 * config/fp-bit.h: Likewise.
22718 * config/fr30/crti.asm: Likewise.
22719 * config/fr30/crtn.asm: Likewise.
22720 * config/fr30/lib1funcs.asm: Likewise.
22721 * config/freebsd-spec.h: Likewise.
22722 * config/frv/cmovd.c: Likewise.
22723 * config/frv/cmovh.c: Likewise.
22724 * config/frv/cmovw.c: Likewise.
22725 * config/frv/frvbegin.c: Likewise.
22726 * config/frv/frvend.c: Likewise.
22727 * config/frv/lib1funcs.asm: Likewise.
22728 * config/glibc-stdint.h: Likewise.
22729 * config/h8300/clzhi2.c: Likewise.
22730 * config/h8300/crti.asm: Likewise.
22731 * config/h8300/crtn.asm: Likewise.
22732 * config/h8300/ctzhi2.c: Likewise.
22733 * config/h8300/fixunssfsi.c: Likewise.
22734 * config/h8300/lib1funcs.asm: Likewise.
22735 * config/h8300/parityhi2.c: Likewise.
22736 * config/h8300/popcounthi2.c: Likewise.
22737 * config/i386/ammintrin.h: Likewise.
22738 * config/i386/att.h: Likewise.
22739 * config/i386/avxintrin.h: Likewise.
22740 * config/i386/biarch64.h: Likewise.
22741 * config/i386/bmmintrin.h: Likewise.
22742 * config/i386/cpuid.h: Likewise.
22743 * config/i386/cross-stdarg.h: Likewise.
22744 * config/i386/crtfastmath.c: Likewise.
22745 * config/i386/crtprec.c: Likewise.
22746 * config/i386/cygming-crtbegin.c: Likewise.
22747 * config/i386/cygming-crtend.c: Likewise.
22748 * config/i386/cygwin.asm: Likewise.
22749 * config/i386/emmintrin.h: Likewise.
22750 * config/i386/gmm_malloc.h: Likewise.
22751 * config/i386/gthr-win32.c: Likewise.
22752 * config/i386/i386.h: Likewise.
22753 * config/i386/immintrin.h: Likewise.
22754 * config/i386/linux-unwind.h: Likewise.
22755 * config/i386/linux64.h: Likewise.
22756 * config/i386/mm3dnow.h: Likewise.
22757 * config/i386/mmintrin-common.h: Likewise.
22758 * config/i386/mmintrin.h: Likewise.
22759 * config/i386/nmmintrin.h: Likewise.
22760 * config/i386/pmm_malloc.h: Likewise.
22761 * config/i386/pmmintrin.h: Likewise.
22762 * config/i386/smmintrin.h: Likewise.
22763 * config/i386/sol2-c1.asm: Likewise.
22764 * config/i386/sol2-ci.asm: Likewise.
22765 * config/i386/sol2-cn.asm: Likewise.
22766 * config/i386/sol2-gc1.asm: Likewise.
22767 * config/i386/tmmintrin.h: Likewise.
22768 * config/i386/unix.h: Likewise.
22769 * config/i386/w32-unwind.h: Likewise.
22770 * config/i386/wmmintrin.h: Likewise.
22771 * config/i386/x86-64.h: Likewise.
22772 * config/i386/x86intrin.h: Likewise.
22773 * config/i386/xmmintrin.h: Likewise.
22774 * config/ia64/crtbegin.asm: Likewise.
22775 * config/ia64/crtend.asm: Likewise.
22776 * config/ia64/crtfastmath.c: Likewise.
22777 * config/ia64/crti.asm: Likewise.
22778 * config/ia64/crtn.asm: Likewise.
22779 * config/ia64/fde-glibc.c: Likewise.
22780 * config/ia64/lib1funcs.asm: Likewise.
22781 * config/ia64/linux-unwind.h: Likewise.
22782 * config/ia64/quadlib.c: Likewise.
22783 * config/ia64/unwind-ia64.c: Likewise.
22784 * config/linux.h: Likewise.
22785 * config/m32c/m32c-lib1.S: Likewise.
22786 * config/m32c/m32c-lib2-trapv.c: Likewise.
22787 * config/m32c/m32c-lib2.c: Likewise.
22788 * config/m32r/initfini.c: Likewise.
22789 * config/m68hc11/larith.asm: Likewise.
22790 * config/m68hc11/m68hc11-crt0.S: Likewise.
22791 * config/m68k/cf.md: Likewise.
22792 * config/m68k/crti.s: Likewise.
22793 * config/m68k/crtn.s: Likewise.
22794 * config/m68k/lb1sf68.asm: Likewise.
22795 * config/m68k/linux-unwind.h: Likewise.
22796 * config/mcore/crti.asm: Likewise.
22797 * config/mcore/crtn.asm: Likewise.
22798 * config/mcore/lib1.asm: Likewise.
22799 * config/mips/linux-unwind.h: Likewise.
22800 * config/mips/loongson.h: Likewise.
22801 * config/mips/mips16.S: Likewise.
22802 * config/mmix/crti.asm: Likewise.
22803 * config/mmix/crtn.asm: Likewise.
22804 * config/pa/fptr.c: Likewise.
22805 * config/pa/hpux-unwind.h: Likewise.
22806 * config/pa/lib2funcs.asm: Likewise.
22807 * config/pa/linux-atomic.c: Likewise.
22808 * config/pa/linux-unwind.h: Likewise.
22809 * config/pa/milli64.S: Likewise.
22810 * config/pa/quadlib.c: Likewise.
22811 * config/pa/stublib.c: Likewise.
22812 * config/picochip/libgccExtras/adddi3.asm: Likewise.
22813 * config/picochip/libgccExtras/ashlsi3.asm: Likewise.
22814 * config/picochip/libgccExtras/ashlsi3.c: Likewise.
22815 * config/picochip/libgccExtras/ashrsi3.asm: Likewise.
22816 * config/picochip/libgccExtras/ashrsi3.c: Likewise.
22817 * config/picochip/libgccExtras/cmpsi2.asm: Likewise.
22818 * config/picochip/libgccExtras/divmod15.asm: Likewise.
22819 * config/picochip/libgccExtras/divmodhi4.asm: Likewise.
22820 * config/picochip/libgccExtras/divmodsi4.asm: Likewise.
22821 * config/picochip/libgccExtras/longjmp.asm: Likewise.
22822 * config/picochip/libgccExtras/lshrsi3.asm: Likewise.
22823 * config/picochip/libgccExtras/lshrsi3.c: Likewise.
22824 * config/picochip/libgccExtras/parityhi2.asm: Likewise.
22825 * config/picochip/libgccExtras/popcounthi2.asm: Likewise.
22826 * config/picochip/libgccExtras/setjmp.asm: Likewise.
22827 * config/picochip/libgccExtras/subdi3.asm: Likewise.
22828 * config/picochip/libgccExtras/ucmpsi2.asm: Likewise.
22829 * config/picochip/libgccExtras/udivmodhi4.asm: Likewise.
22830 * config/picochip/libgccExtras/udivmodsi4.asm: Likewise.
22831 * config/rs6000/750cl.h: Likewise.
22832 * config/rs6000/altivec.h: Likewise.
22833 * config/rs6000/biarch64.h: Likewise.
22834 * config/rs6000/crtresfpr.asm: Likewise.
22835 * config/rs6000/crtresgpr.asm: Likewise.
22836 * config/rs6000/crtresxfpr.asm: Likewise.
22837 * config/rs6000/crtresxgpr.asm: Likewise.
22838 * config/rs6000/crtsavfpr.asm: Likewise.
22839 * config/rs6000/crtsavgpr.asm: Likewise.
22840 * config/rs6000/darwin-asm.h: Likewise.
22841 * config/rs6000/darwin-fallback.c: Likewise.
22842 * config/rs6000/darwin-fpsave.asm: Likewise.
22843 * config/rs6000/darwin-ldouble.c: Likewise.
22844 * config/rs6000/darwin-tramp.asm: Likewise.
22845 * config/rs6000/darwin-unwind.h: Likewise.
22846 * config/rs6000/darwin-vecsave.asm: Likewise.
22847 * config/rs6000/darwin-world.asm: Likewise.
22848 * config/rs6000/e500crtres32gpr.asm: Likewise.
22849 * config/rs6000/e500crtres64gpr.asm: Likewise.
22850 * config/rs6000/e500crtres64gprctr.asm: Likewise.
22851 * config/rs6000/e500crtrest32gpr.asm: Likewise.
22852 * config/rs6000/e500crtrest64gpr.asm: Likewise.
22853 * config/rs6000/e500crtresx32gpr.asm: Likewise.
22854 * config/rs6000/e500crtresx64gpr.asm: Likewise.
22855 * config/rs6000/e500crtsav32gpr.asm: Likewise.
22856 * config/rs6000/e500crtsav64gpr.asm: Likewise.
22857 * config/rs6000/e500crtsav64gprctr.asm: Likewise.
22858 * config/rs6000/e500crtsavg32gpr.asm: Likewise.
22859 * config/rs6000/e500crtsavg64gpr.asm: Likewise.
22860 * config/rs6000/e500crtsavg64gprctr.asm: Likewise.
22861 * config/rs6000/eabi-ci.asm: Likewise.
22862 * config/rs6000/eabi-cn.asm: Likewise.
22863 * config/rs6000/eabi.asm: Likewise.
22864 * config/rs6000/linux-unwind.h: Likewise.
22865 * config/rs6000/linux64.h: Likewise.
22866 * config/rs6000/paired.h: Likewise.
22867 * config/rs6000/paired.md: Likewise.
22868 * config/rs6000/ppc64-fp.c: Likewise.
22869 * config/rs6000/ppu_intrinsics.h: Likewise.
22870 * config/rs6000/rs6000.h: Likewise.
22871 * config/rs6000/si2vmx.h: Likewise.
22872 * config/rs6000/sol-ci.asm: Likewise.
22873 * config/rs6000/sol-cn.asm: Likewise.
22874 * config/rs6000/spe.h: Likewise.
22875 * config/rs6000/spu2vmx.h: Likewise.
22876 * config/rs6000/sysv4.h: Likewise.
22877 * config/rs6000/tramp.asm: Likewise.
22878 * config/rs6000/vec_types.h: Likewise.
22879 * config/s390/linux-unwind.h: Likewise.
22880 * config/s390/tpf-unwind.h: Likewise.
22881 * config/score/crti.asm: Likewise.
22882 * config/score/crtn.asm: Likewise.
22883 * config/sh/crt1.asm: Likewise.
22884 * config/sh/crti.asm: Likewise.
22885 * config/sh/crtn.asm: Likewise.
22886 * config/sh/divtab-sh4-300.c: Likewise.
22887 * config/sh/divtab-sh4.c: Likewise.
22888 * config/sh/divtab.c: Likewise.
22889 * config/sh/lib1funcs-4-300.asm: Likewise.
22890 * config/sh/lib1funcs-Os-4-200.asm: Likewise.
22891 * config/sh/lib1funcs.asm: Likewise.
22892 * config/sh/lib1funcs.h: Likewise.
22893 * config/sh/linux-atomic.asm: Likewise.
22894 * config/sh/linux-unwind.h: Likewise.
22895 * config/sh/shmedia.h: Likewise.
22896 * config/sh/sshmedia.h: Likewise.
22897 * config/sh/ushmedia.h: Likewise.
22898 * config/sparc/crtfastmath.c: Likewise.
22899 * config/sparc/linux-unwind.h: Likewise.
22900 * config/sparc/sol2-c1.asm: Likewise.
22901 * config/sparc/sol2-ci.asm: Likewise.
22902 * config/sparc/sol2-cn.asm: Likewise.
22903 * config/spu/divmodti4.c: Likewise.
22904 * config/spu/divv2df3.c: Likewise.
22905 * config/spu/float_disf.c: Likewise.
22906 * config/spu/float_unsdidf.c: Likewise.
22907 * config/spu/float_unsdisf.c: Likewise.
22908 * config/spu/float_unssidf.c: Likewise.
22909 * config/spu/mfc_multi_tag_release.c: Likewise.
22910 * config/spu/mfc_multi_tag_reserve.c: Likewise.
22911 * config/spu/mfc_tag_release.c: Likewise.
22912 * config/spu/mfc_tag_reserve.c: Likewise.
22913 * config/spu/mfc_tag_table.c: Likewise.
22914 * config/spu/multi3.c: Likewise.
22915 * config/spu/spu_internals.h: Likewise.
22916 * config/spu/spu_intrinsics.h: Likewise.
22917 * config/spu/spu_mfcio.h: Likewise.
22918 * config/spu/vec_types.h: Likewise.
22919 * config/spu/vmx2spu.h: Likewise.
22920 * config/stormy16/stormy16-lib2.c: Likewise.
22921 * config/svr4.h: Likewise.
22922 * config/sync.c: Likewise.
22923 * config/v850/lib1funcs.asm: Likewise.
22924 * config/vxlib-tls.c: Likewise.
22925 * config/vxlib.c: Likewise.
22926 * config/vxworks-dummy.h: Likewise.
22927 * config/xtensa/crti.asm: Likewise.
22928 * config/xtensa/crtn.asm: Likewise.
22929 * config/xtensa/ieee754-df.S: Likewise.
22930 * config/xtensa/ieee754-sf.S: Likewise.
22931 * config/xtensa/lib1funcs.asm: Likewise.
22932 * config/xtensa/lib2funcs.S: Likewise.
22933 * config/xtensa/linux-unwind.h: Likewise.
22934 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
22935 * config/xtensa/unwind-dw2-xtensa.h: Likewise.
22936 * coretypes.h: Likewise.
22937 * crtstuff.c: Likewise.
22938 * defaults.h: Likewise.
22939 * dwarf2.h: Likewise.
22940 * emutls.c: Likewise.
22941 * gbl-ctors.h: Likewise.
22942 * gcov-io.h: Likewise.
22943 * ginclude/float.h: Likewise.
22944 * ginclude/iso646.h: Likewise.
22945 * ginclude/stdarg.h: Likewise.
22946 * ginclude/stdbool.h: Likewise.
22947 * ginclude/stddef.h: Likewise.
22948 * ginclude/stdfix.h: Likewise.
22949 * ginclude/stdint-gcc.h: Likewise.
22950 * ginclude/tgmath.h: Likewise.
22951 * gthr-aix.h: Likewise.
22952 * gthr-dce.h: Likewise.
22953 * gthr-gnat.c: Likewise.
22954 * gthr-gnat.h: Likewise.
22955 * gthr-lynx.h: Likewise.
22956 * gthr-mipssde.h: Likewise.
22957 * gthr-nks.h: Likewise.
22958 * gthr-posix.c: Likewise.
22959 * gthr-posix.h: Likewise.
22960 * gthr-posix95.h: Likewise.
22961 * gthr-rtems.h: Likewise.
22962 * gthr-single.h: Likewise.
22963 * gthr-solaris.h: Likewise.
22964 * gthr-tpf.h: Likewise.
22965 * gthr-vxworks.h: Likewise.
22966 * gthr-win32.h: Likewise.
22967 * gthr.h: Likewise.
22968 * libgcc2.c: Likewise.
22969 * libgcc2.h: Likewise.
22970 * libgcov.c: Likewise.
22971 * tsystem.h: Likewise.
22972 * typeclass.h: Likewise.
22973 * unwind-c.c: Likewise.
22974 * unwind-compat.h: Likewise.
22975 * unwind-dw2-fde-compat.c: Likewise.
22976 * unwind-dw2-fde-darwin.c: Likewise.
22977 * unwind-dw2-fde-glibc.c: Likewise.
22978 * unwind-dw2-fde.c: Likewise.
22979 * unwind-dw2-fde.h: Likewise.
22980 * unwind-dw2.c: Likewise.
22981 * unwind-dw2.h: Likewise.
22982 * unwind-generic.h: Likewise.
22983 * unwind-pe.h: Likewise.
22984 * unwind-sjlj.c: Likewise.
22985 * unwind.inc: Likewise.
22986 * config/arm/neon-gen.ml: Change generated copyright header to
22987 refer to version 3 of the GNU General Public License with
22988 version 3.1 of the GCC Runtime Library Exception and to point
22989 readers at the COPYING3 and COPYING3.RUNTIME files and the
22990 FSF's license web page.
22991 * config/arm/arm_neon.h: Regenerate.
22992
22993 2009-04-09 Jakub Jelinek <jakub@redhat.com>
22994
22995 * config/cris/cris.md: Change copyright header to refer to version
22996 3 of the GNU General Public License.
22997 * doc/install.texi2html: Change copyright header to refer to version
22998 3 of the GNU General Public License and to point readers at the
22999 COPYING3 file and the FSF's license web page.
23000 * config/vax/linux.h: Likewise.
23001
23002 2009-04-09 Paolo Bonzini <bonzini@gnu.org>
23003
23004 * config/i386/i386.md (cmpcc): New.
23005 * config/i386/sync.md (sync_compare_and_swap*): Set FLAGS_REG.
23006 (sync_compare_and_swap_cc*): Delete.
23007
23008 * config/s390/s390.c (s390_compare_emitted): Remove.
23009 (s390_emit_compare): Handle MODE_CC s390_compare_op0 like
23010 s390_compare_emitted used to be handled. Assert that modes match.
23011 (s390_emit_compare_and_swap): Use s390_emit_compare, do not
23012 refer to sync_compare_and_swap_ccsi.
23013 * config/s390/s390.h (s390_compare_emitted): Remove.
23014 * config/s390/s390.md (seq): Look for MODE_CC s390_compare_op0
23015 instead of s390_compare_emitted.
23016 (stack_protect_test, sync_compare_and_swap_cc): Set s390_compare_op0
23017 instead of s390_compare_emitted.
23018 * config/s390/s390.md (cmpcc): New.
23019 (sync_compare_and_swapqi, sync_compare_and_swaphi): Clobber
23020 CC_REGNUM, do not pretend it's set.
23021 (sync_compare_and_swap_cc*): Delete.
23022 * config/s390/predicates.md (cc_reg_operand): New.
23023
23024 * expr.c (sync_compare_and_swap_cc): Delete.
23025 * optabs.h (sync_compare_and_swap_cc): Delete.
23026 * optabs.c (prepare_cmp_insn): Ignore which specific CCmode
23027 is being used with can_compare_p.
23028 (emit_cmp_and_jump_insn_1): Likewise when looking in the optab.
23029 (find_cc_set): New.
23030 (expand_bool_compare_and_swap): Do not use sync_compare_and_swap_cc,
23031 look for a MODE_CC set instead. Use emit_store_flag.
23032 (expand_compare_and_swap_loop): Likewise, with some additional
23033 complication to avoid a force_reg when useless. Use
23034 emit_cmp_and_jump_insns.
23035 * genopinit.c (optabs): Delete sync_compare_and_swap_cc.
23036 * doc/md.texi (sync_compare_and_swap_cc): Merge with
23037 sync_compare_and_swap documentation.
23038
23039 2009-04-09 Jan Hubicka <jh@suse.cz>
23040
23041 * except.c (find_prev_try): Break out from ....
23042 (duplicate_eh_regions): ... here; properly update prev_try pointers
23043 when duplication part of tree.
23044 (dump_eh_tree): Improve dumping.
23045 (verify_eh_region): New.
23046 (verify_eh_tree): Use it.
23047
23048 2009-04-06 Richard Guenther <rguenther@suse.de>
23049
23050 * c-gimplify.c (c_gimplify_expr): Fix the invalid GENERIC
23051 &ARRAY addresses by adjusting their types and prepending
23052 a conversion.
23053 * tree-cfg.c (verify_gimple_assign_single): Verify that
23054 addresses are correct.
23055
23056 2009-04-09 Richard Guenther <rguenther@suse.de>
23057
23058 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Move non-constant
23059 indices into an array reference if possible.
23060 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
23061 Fold POINTER_PLUS_EXPR statements with invariant address.
23062
23063 2009-04-09 Alan Modra <amodra@bigpond.net.au>
23064
23065 PR target/39634
23066 * config.gcc (powerpc64-*-linux*): Always build biarch.
23067
23068 2009-04-09 Joseph Myers <joseph@codesourcery.com>
23069
23070 PR c/39613
23071 * c-typeck.c (do_case): If case label is not an INTEGER_CST, fold
23072 it and pedwarn if this results in an INTEGER_CST.
23073
23074 2009-04-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
23075
23076 * doc/install.texi: Update minimum GMP version. Remove obsolete
23077 text in MPFR section.
23078
23079 2009-04-08 Jakub Jelinek <jakub@redhat.com>
23080
23081 * dwarf2out.c (class_scope_p): New static inline.
23082 (class_or_namespace_scope_p): Use it.
23083 (gen_variable_die): Use DW_TAG_member tag for static data member
23084 declarations instead of DW_TAG_variable.
23085
23086 PR middle-end/39573
23087 * omp-low.c (expand_omp_taskreg): Finalize taskreg static local_decls
23088 variables.
23089
23090 2009-04-08 Richard Guenther <rguenther@suse.de>
23091
23092 * tree-ssa-sccvn.c (valueize_refs): Do not continue to
23093 valueize random data.
23094
23095 2009-04-08 David Edelsohn <edelsohn@gnu.org>
23096
23097 * config.gcc (aix tm_file): Add aix-stdint.h.
23098 (aix tm clause use_gcc_stdint): Set to wrap.
23099 * config/rs6000/aix-stdint.h: New file.
23100
23101 2009-04-08 Richard Guenther <rguenther@suse.de>
23102
23103 PR middle-end/36291
23104 * tree-dfa.c (add_referenced_var): Do not recurse into
23105 global initializers.
23106 * tree-ssa-ccp.c (get_symbol_constant_value): Add newly
23107 exposed variables.
23108 (fold_const_aggregate_ref): Likewise.
23109
23110 2009-04-08 Paolo Bonzini <bonzini@gnu.org>
23111
23112 * recog.c (ordered_comparison_operator): New.
23113 * gensupport.c (std_preds): Add it.
23114 * doc/md.texi (Machine-Independent Predicates): Document it.
23115
23116 2009-04-08 Jan Hubicka <jh@suse.cz>
23117
23118 * tree-eh.c (cleanup_eh): When not optimizing, do not try EH merging.
23119 * function.h (rtl_eh): Remove exception_handler_label_map.
23120 * except.c (ehl_hash, ehl_eq, add_ehl_entry,
23121 remove_exception_handler_label, for_each_eh_label_1): Remove.
23122 (rtl_remove_unreachable_regions): Remove.
23123 (convert_from_eh_region_ranges): Do not remove unreachable regions.
23124 (find_exception_handler_labels): Don't build the hashtable.
23125 (maybe_remove_eh_handler): Remove.
23126 (for_each_eh_label): Rewrite to walk the tree.
23127 (rest_of_handle_eh): Do not cleanup cfg prior EH construction.
23128 * except.h (maybe_remove_eh_handler): Remove.
23129 * passes.c (init_optimization_passes): Schedule second EH cleanup
23130 before out-of-ssa.
23131 * cfgrtl.c (rtl_delete_block, rtl_merge_blocks,
23132 cfg_layout_merge_blocks): Do not call maybe_remove_eh_handler.
23133
23134 2009-04-08 Paolo Bonzini <bonzini@gnu.org>
23135
23136 * genoutput.c (validate_optab_operands): New.
23137 (gen_insn, gen_expand): Call it.
23138
23139 * genflags.c (gen_insn): Detect misused iterators.
23140 (main): Pass line_no to gen_insn, exit with status 1 on error.
23141
23142 * genextract.c (line_no): Make global.
23143 (VEC_safe_set_locstr): Change assertion to error message.
23144 (main): Exit with status 1 on error.
23145
23146 2009-04-08 Joseph Myers <joseph@codesourcery.com>
23147
23148 PR c/39614
23149 PR c/39673
23150 * c-common.h (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
23151 C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
23152 EXPR_INT_CONST_OPERANDS): Remove duplicate definitions.
23153 * c-convert.c (convert): Do not call fold on results of conversion
23154 functions when the result is a C_MAYBE_CONST_EXPR.
23155 * c-parser.c (c_parser_postfix_expression): Do not fold condition
23156 of __builtin_choose_expr.
23157 * c-typeck.c (remove_c_maybe_const_expr): New.
23158 (build_unary_op, build_conditional_expr, build_compound_expr,
23159 build_binary_op, c_objc_common_truthvalue_conversion): Call
23160 remove_c_maybe_const_expr on any input C_MAYBE_CONST_EXPR with
23161 integer operands.
23162
23163 2009-04-08 Bingfeng Mei <bmei@broadcom.com>
23164
23165 * fold-const.c (const_binop): Combine two VECTOR_CST under operation
23166 CODE to produce a new one. Add a prototype to use fold_convert_const
23167
23168 2009-04-08 Danny Smith <dannysmith@users.sourceforge.net>
23169
23170 PR bootstrap/39660
23171 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): Don't
23172 mix declarations and code.
23173
23174 2009-04-08 Ben Elliston <bje@au.ibm.com>
23175
23176 * gcc.c: Replace `CC' with `GCC' throughout.
23177
23178 2009-04-07 H.J. Lu <hongjiu.lu@intel.com>
23179
23180 * doc/invoke.texi: Document Atom support.
23181
23182 2009-04-07 Jason Merrill <jason@redhat.com>
23183
23184 PR c++/25185
23185 * c-common.h, c-common.c: Add flag_pretty_templates.
23186 * c-opts.c (c_common_handle_option): Set it.
23187 * c.opt: Add -fno-pretty-templates.
23188 * doc/invoke.texi (C++ Dialect Options): Likewise.
23189
23190 2009-04-07 Uros Bizjak <ubizjak@gmail.com>
23191
23192 * config/ia64/ia64.c (ia64_builtins): Add IA64_BUILTIN_HUGE_VALQ.
23193 (ia64_init_builtins): Handle IA64_BUILTIN_HUGE_VALQ.
23194 (ia64_expand_builtin): Likewise.
23195
23196 2009-04-07 Martin Jambor <mjambor@suse.cz>
23197
23198 * tree-ssa-alias.c (refs_may_alias_p_1): Check for
23199 is_gimple_min_invariant rather than CONSTANT_CLASS_P so that invariant
23200 ADDR_EXPRS are include too.
23201
23202 2009-04-07 Richard Guenther <rguenther@suse.de>
23203
23204 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Non-aliased
23205 decls are only used if passes as parameters or if they are
23206 local statics and the call is not to a builtin.
23207 (call_may_clobber_ref_p_1): Likewise.
23208
23209 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
23210
23211 * expr.c (do_store_flag): Remove last argument. Simplify code
23212 to avoid duplication of tests already done by can_compare_p.
23213 (expand_expr_real_1): Adjust caller.
23214
23215 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
23216
23217 * optabs.c (can_compare_p): Test the predicate of a
23218 cbranch and cstore pattern.
23219
23220 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
23221
23222 * expr.c (convert_move): Use emit_store_flag instead of
23223 "emulating" it.
23224
23225 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
23226
23227 * config/i386/i386.c (ix86_compare_emitted): Remove.
23228 (ix86_expand_compare, ix86_expand_branch): Handle MODE_CC
23229 ix86_compare_op0 like ix86_compare_emitted used to be handled.
23230 * config/i386/i386.h (ix86_compare_emitted): Remove.
23231 * config/i386/i386.md (stack_protect_test): Set ix86_compare_op0
23232 instead of ix86_compare_emitted.
23233 * config/i386/sync.md (sync_compare_and_swap_cc): Likewise.
23234
23235 2009-04-07 Andrew Stubbs <ams@codesourcery.com>
23236
23237 * config.gcc (sh-*-*): Add sysroot-suffix.h to tm_file.
23238 Add t-sysroot-suffix to tmake_file.
23239 * config/print-sysroot-suffix.sh: New file.
23240 * config/t-sysroot-suffix: New file.
23241
23242 2009-04-07 Ben Elliston <bje@au.ibm.com>
23243
23244 * libgcc2.c (INFINITY): Use __builtin_huge_val, not __builtin_inf,
23245 as the latter produces a warning when the target does not support
23246 infinity.
23247
23248 2009-04-07 Ben Elliston <bje@au.ibm.com>
23249
23250 * dfp.c: Replace type punning assignments with memcpy throughout.
23251 * Makefile.in (dfp.o-warn): Remove.
23252
23253 2009-04-07 Alan Modra <amodra@bigpond.net.au>
23254
23255 PR target/39634
23256 * config.gcc: Merge powerpc-*-linux* and powerpc64-*-linux*.
23257 Include soft-fp/t-softfp after rs6000/t-linux64.
23258
23259 2009-04-06 Eric Botcazou <ebotcazou@adacore.com>
23260
23261 * stor-layout.c (set_sizetype): Use the full precision of their
23262 machine mode for bitsize types.
23263
23264 2009-04-06 H.J. Lu <hongjiu.lu@intel.com>
23265
23266 * config/i386/i386.md: Revert 2 accidental checkins.
23267
23268 2009-04-06 Joey Ye <joey.ye@intel.com>
23269 Xuepeng Guo <xuepeng.guo@intel.com>
23270 H.J. Lu <hongjiu.lu@intel.com>
23271
23272 Atom pipeline model, tuning and insn selection.
23273 * config.gcc (atom): Add atom config options and target.
23274
23275 * config/i386/atom.md: New.
23276
23277 * config/i386/i386.c (atom_cost): New cost.
23278 (m_ATOM): New macro flag.
23279 (initial_ix86_tune_features): Set m_ATOM.
23280 (x86_accumulate_outgoing_args): Likewise.
23281 (x86_arch_always_fancy_math_387): Likewise.
23282 (processor_target): Add Atom cost.
23283 (cpu_names): Add Atom cpu name.
23284 (override_options): Set Atom ISA.
23285 (ix86_issue_rate): New case PROCESSOR_ATOM.
23286 (ix86_adjust_cost): Likewise.
23287
23288 * config/i386/i386.h (TARGET_ATOM): New target macro.
23289 (ix86_tune_indices): Add X86_TUNE_OPT_AGU.
23290 (TARGET_OPT_AGU): New target option.
23291 (target_cpu_default): Add TARGET_CPU_DEFAULT_atom.
23292 (processor_type): Add PROCESSOR_ATOM.
23293
23294 * config/i386/i386.md (cpu): Add new value "atom".
23295 (use_carry, movu): New attr.
23296 (atom.md): Include atom.md.
23297 (adddi3_carry_rex64): Set attr "use_carry".
23298 (addqi3_carry): Likewise.
23299 (addhi3_carry): Likewise.
23300 (addsi3_carry): Likewise.
23301 (*addsi3_carry_zext): Likewise.
23302 (subdi3_carry_rex64): Likewise.
23303 (subqi3_carry): Likewise.
23304 (subhi3_carry): Likewise.
23305 (subsi3_carry): Likewise.
23306 (x86_movdicc_0_m1_rex64): Likewise.
23307 (*x86_movdicc_0_m1_se): Likewise.
23308 (x86_movsicc_0_m1): Likewise.
23309 (*x86_movsicc_0_m1_se): Likewise.
23310 (*adddi_1_rex64): Emit add insn as much as possible.
23311 (*addsi_1): Likewise.
23312 (return_internal): Set atom_unit.
23313 (return_internal_long): Likewise.
23314 (return_pop_internal): Likewise.
23315 (*rcpsf2_sse): Set atom_sse_attr attr.
23316 (*qrt<mode>2_sse): Likewise.
23317 (*prefetch_sse): Likewise.
23318
23319 * config/i386/i386-c.c (ix86_target_macros_internal): New case
23320 PROCESSOR_ATOM.
23321 (ix86_target_macros_internal): Likewise.
23322
23323 * config/i386/sse.md (cpu): Set attr "atom_sse_attr".
23324 (*prefetch_sse_rex): Likewise.
23325 (sse_rcpv4sf2): Likewise.
23326 (sse_vmrcpv4sf2): Likewise.
23327 (sse_sqrtv4sf2): Likewise.
23328 (<sse>_vmsqrt<mode>2): Likewise.
23329 (sse_ldmxcsr): Likewise.
23330 (sse_stmxcsr): Likewise.
23331 (*sse_sfence): Likewise.
23332 (sse2_clflush): Likewise.
23333 (*sse2_mfence): Likewise.
23334 (*sse2_lfence): Likewise.
23335 (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Set attr "movu".
23336 (<sse>_movup<ssemodesuffixf2c>): Likewise.
23337 (avx_movdqu<avxmodesuffix>): Likewise.
23338 (avx_lddqu<avxmodesuffix>): Likewise.
23339 (sse2_movntv2di): Change attr "type" to "ssemov".
23340 (sse2_movntsi): Likewise.
23341 (rsqrtv8sf2): Change attr "type" to "sseadd".
23342 (sse3_addsubv2df3): Set attr "atom_unit".
23343 (sse3_h<plusminus_insn>v4sf3): Likewise.
23344 (*sse2_pmaddwd): Likewise.
23345 (*vec_extractv2di_1_rex64): Likewise.
23346 (*vec_extractv2di_1_avx): Likewise.
23347 (sse2_psadbw): Likewise.
23348 (ssse3_phaddwv8hi3): Likewise.
23349 (ssse3_phaddwv4hi3): Likewise.
23350 (ssse3_phadddv4si3): Likewise.
23351 (ssse3_phadddv2si3): Likewise.
23352 (ssse3_phaddswv8hi3): Likewise.
23353 (ssse3_phaddswv4hi3): Likewise.
23354 (ssse3_phsubwv8hi3): Likewise.
23355 (ssse3_phsubwv4hi3): Likewise.
23356 (ssse3_phsubdv4si3): Likewise.
23357 (ssse3_phsubdv2si3): Likewise.
23358 (ssse3_phsubswv8hi3): Likewise.
23359 (ssse3_phsubswv4hi3): Likewise.
23360 (ssse3_pmaddubsw128): Likewise.
23361 (sse3_pmaddubsw: Likewise.
23362 (ssse3_palignrti): Likewise.
23363 (ssse3_palignrdi): Likewise.
23364
23365 2009-04-06 Gerald Pfeifer <gerald@pfeifer.com>
23366
23367 * doc/install.texi (Specific): Fix two cross-references to MinGW.
23368
23369 2009-04-06 Richard Guenther <rguenther@suse.de>
23370
23371 PR tree-optimization/28868
23372 * tree-ssa-pre.c (inserted_phi_names): New bitmap to keep track
23373 of which PHI results we inserted.
23374 (insert_into_preds_of_block): Record inserted PHIs.
23375 (eliminate): Eliminate redundant PHI nodes.
23376 (init_pre): Init inserted_phi_names.
23377
23378 2009-04-06 Richard Guenther <rguenther@suse.de>
23379
23380 PR tree-optimization/39643
23381 * tree-ssa-ccp.c (ccp_fold): Fold REALPART_EXPRs and
23382 IMAGPART_EXPRs of complex constants.
23383 (execute_fold_all_builtins): If we folded a call queue
23384 TODO_update_address_taken.
23385
23386 2009-04-06 Jan Hubicka <jh@suse.cz>
23387
23388 PR middle-end/39659
23389 * except.c (remove_unreachable_regions): Propagate may_contain_throw
23390 flag.
23391
23392 2009-04-06 Andrew Stubbs <ams@codesourcery.com>
23393
23394 * config/sh/lib1funcs.asm (ic_invalidate): Move ICBI out of the
23395 delay slot.
23396 (ic_invalidate_array): Likewise.
23397
23398 2009-04-06 Hariharan Sandanagobalane <hariharan@picochip.com>
23399
23400 * calls.c (emit_library_call_value_1): Fix a problem with parameter
23401 alignment for library calls.
23402
23403 2009-04-06 Danny Smith <dannysmith@users.sourceforge.net>
23404
23405 * config.gcc (mingw32 tm_file): Add mingw-stdint.h.
23406 (mingw32 tm clause use_gcc_stdint): Set to wrap.
23407 * config/i386/mingw-stdint.h: New file.
23408
23409 2009-04-05 Richard Guenther <rguenther@suse.de>
23410
23411 PR tree-optimization/39648
23412 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Work around
23413 our &A vs. &A[0] IL deficiencies.
23414
23415 2009-04-04 Jan Hubicka <jh@suse.cz>
23416
23417 * except.c (sjlj_find_directly_reachable_regions): Be ready for
23418 removed toplevel regions.
23419 (sjlj_mark_call_sites): Likewise.
23420
23421 2009-04-04 Dave Korn <dave.korn.cygwin@gmail.com>
23422
23423 * config.gcc (cygwin tm_file): Add cygwin-stdint.h.
23424 (cygwin tm clause use_gcc_stdint): Set to wrap.
23425 * config/i386/cygwin-stdint.h: New file.
23426
23427 2009-04-04 Richard Guenther <rguenther@suse.de>
23428
23429 * Makefile.in (tree-ssa-copy.o): Add $(CFGLOOP_H) dependency.
23430 * tree-ssa-copy.c (init_copy_prop): Do not propagate through
23431 single-argument PHIs if we are in loop-closed SSA form.
23432 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Pass extra guards
23433 for the pre-condition.
23434 (slpeel_tree_peel_loop_to_edge): Likewise.
23435 (vect_build_loop_niters): Take an optional sequence to append stmts.
23436 (vect_generate_tmps_on_preheader): Likewise.
23437 (vect_do_peeling_for_loop_bound): Take extra guards for the
23438 pre-condition.
23439 (vect_do_peeling_for_alignment): Adjust. Unconditionally apply
23440 the cost model check.
23441 (vect_loop_versioning): Take stmt and stmt list to put pre-condition
23442 guards if we are going to peel. Do not apply versioning in that case.
23443 * tree-vectorizer.h (vect_loop_versioning): Adjust declaration.
23444 (vect_do_peeling_for_loop_bound): Likewise.
23445 * tree-vect-loop.c (vect_transform_loop): If we are peeling for
23446 loop bound only record extra pre-conditions, do not apply loop
23447 versioning.
23448
23449 2009-04-04 Richard Guenther <rguenther@suse.de>
23450
23451 * tree-ssa-operands.c (pop_stmt_changes): Remove automatic
23452 renaming code.
23453
23454 2009-04-04 Jan Hubicka <jh@suse.cz>
23455
23456 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
23457 last_basic_block for size of bb->index indexed array.
23458 * bt-load.c (compute_defs_uses_and_gen, compute_kill,
23459 compute_out, link_btr_uses, build_btr_def_use_webs,
23460 build_btr_def_use_webs, migrate_btr_defs): Likewise.
23461
23462 2009-04-04 Jan Hubicka <jh@suse.cz>
23463
23464 * except.c (remove_eh_handler_and_replace): Break out from ...
23465 (remove_eh_handler): ... here.
23466 (bring_to_root): New function.
23467 (remove_unreachable_regions): Collect MUST_NOT_THROW, unify runtime
23468 handled ones, bring others to root of tree.
23469
23470 2009-04-04 Jan Hubicka <jh@suse.cz>
23471
23472 * tree-eh.c (tree_empty_eh_handler_p): Pattern match more curefully.
23473 (all_phis_safe_to_merge): New function.
23474 (update_info): New structure.
23475 (make_eh_edge_and_update_phi, update_eh_edges): New functions.
23476 (cleanup_empty_eh): Update SSA if possible.
23477
23478 2009-04-04 Richard Guenther <rguenther@suse.de>
23479
23480 * tree-ssa.c (verify_ssa): With -O0 we do not need VOPs.
23481 * tree-ssa-operands.c (append_vdef): Do not append VOPs at -O0.
23482 (append_vuse): Likewise.
23483
23484 2009-04-04 Jakub Jelinek <jakub@redhat.com>
23485
23486 * unwind-dw2.h (_Unwind_FrameState): Add REG_UNDEFINED enum value.
23487 * unwind-dw2.c (execute_cfa_program): Set how to REG_UNDEFINED
23488 instead of REG_UNSAVED for DW_CFA_undefined.
23489 (uw_update_context_1): Handle REG_UNDEFINED the same as REG_UNSAVED.
23490 (uw_update_context): If RA column is REG_UNDEFINED, mark it as
23491 outermost frame.
23492
23493 2009-04-04 Richard Earnshaw <rearnsha@arm.com>
23494
23495 PR target/39501
23496 * arm.md (movsfcc): Disable if not TARGET_HARD_FLOAT.
23497
23498 2009-04-04 Richard Guenther <rguenther@suse.de>
23499
23500 PR tree-optimization/8781
23501 PR tree-optimization/37892
23502 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Declare.
23503 * tree-ssa-sccvn.c (vn_reference_fold_indirect): New function.
23504 (valueize_refs): Call it for *& valueizations.
23505 (shared_reference_ops_from_ref): Rename to ...
23506 (valueize_shared_reference_ops_from_ref): ... this and valueize.
23507 (shared_reference_ops_from_call): Rename to ...
23508 (valueize_shared_reference_ops_from_call): ... this and valueize.
23509 (vn_reference_lookup): Update.
23510 (visit_reference_op_call): Likewise.
23511 * tree-ssa-pre.c (phi_translate_1): Fold *&.
23512 (eliminate): Value-replace the call address in call statements.
23513
23514 2009-04-04 Richard Guenther <rguenther@suse.de>
23515
23516 PR tree-optimization/39636
23517 * tree-ssa-forwprop.c
23518 (forward_propagate_addr_into_variable_array_index): Check for
23519 GIMPLE_ASSIGN before accessing the rhs code.
23520
23521 2009-04-03 Jason Merrill <jason@redhat.com>
23522
23523 * stor-layout.c (set_sizetype): Set TYPE_CANONICAL.
23524
23525 2009-04-03 Steve Ellcey <sje@cup.hp.com>
23526
23527 * config/ia64/ia64.md (extendsfdf2, extendsfxf2, extenddfxf2,
23528 truncdfsf2, truncxfsf2, truncxfdf2, floatdixf2, fix_truncsfdi2,
23529 fix_truncdfdi2, fix_truncxfdi2, fix_truncxfdi2_alts, floatunsdisf2,
23530 floatunsdidf2, floatunsdixf2, fixuns_truncsfdi2, fixuns_truncdfdi2,
23531 fixuns_truncxfdi2, fixuns_truncxfdi2_alts, divsi3_internal,
23532 smuldi3_highpart, umuldi3_highpart, ctzdi2, *getf_exp_xf,
23533 divdi3_internal_lat, divdi3_internal_thr, mulditi3, *mulditi3_internal,
23534 umulditi3, *umulditi3_internal, addsf3, mulsf3, abssf2, negsf2,
23535 *nabssf2, sminsf3, smaxsf3, *maddsf4, *msubsf4, *nmulsf3, *nmaddsf4,
23536 *nmaddsf4_alts, divsf3, *sqrt_approx, sqrtsf2, sqrtsf2_internal_thr,
23537 adddf3, *adddf3_trunc, muldf3, *muldf3_trunc, absdf2, negdf2, *nabsdf2,
23538 smindf3, smaxdf3, *madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc,
23539 *nmuldf3, *nmuldf3_trunc, *nmadddf4, *nmadddf4_alts, *nmadddf4_truncsf,
23540 *nmadddf4_truncsf_alts, divdf3, sqrtdf2, sqrtdf2_internal_thr, divxf3,
23541 sqrtxf2, sqrtxf2_internal_thr, *recip_approx):
23542 Use fr_reg_or_fp01_operand instead of fr_register_operand
23543
23544 * config/ia64/div.md (extend<mode>rf2, truncrf<mode>2,
23545 recip_approx_rf, divsf3_internal_thr, divsf3_internal_lat,
23546 divdf3_internal_thr, divdf3_internal_lat divxf3_internal): Ditto.
23547
23548 2009-04-03 Vladimir Makarov <vmakarov@redhat.com>
23549
23550 PR rtl-optimization/39607
23551 PR rtl-optimization/39631
23552
23553 Revert:
23554
23555 2009-03-30 Vladimir Makarov <vmakarov@redhat.com>
23556 * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
23557 instead of DF_LR_OUT.
23558 * ira-lives.c (process_bb_node_lives): Ditto.
23559 * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
23560 instead of DF_LR_{OUT,IN}.
23561 * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
23562 * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
23563
23564 2009-04-03 Steven Bosscher <steven@gcc.gnu.org>
23565
23566 * omp-low.c (pass_expand_omp): Don't claim to provide PROP_gimple_lomp.
23567 (execute_lower_omp): Always run but take the short way out if -fopenmp
23568 is not given.
23569 (gate_lower_omp): Remove, forcing the pass manager to always run the
23570 pass and always set PROP_gimple_lomp.
23571 (pass_lower_omp): Remove gate function.
23572 * matrix-reorg.c (pass_ipa_matrix_reorg): Don't claim to provide
23573 PROP_trees. Instead, require it.
23574 * ipa-cp.c (pass_ipa_cp): Likewise.
23575 * ipa-inline.c (pass_early_inline): Don't claim to provide PROP_cfg.
23576 (pass_ipa_early_inline, pass_inline_parameters, pass_ipa_inline): Idem.
23577 * tree-profile.c (pass_tree_profile): Don't claim to provide PROP_cfg
23578 and PROP_gimple_leh.
23579
23580 2009-04-03 Richard Guenther <rguenther@suse.de>
23581
23582 PR middle-end/13146
23583 PR tree-optimization/23940
23584 PR tree-optimization/33237
23585 PR middle-end/33974
23586 PR middle-end/34093
23587 PR tree-optimization/36201
23588 PR tree-optimization/36230
23589 PR tree-optimization/38049
23590 PR tree-optimization/38207
23591 PR tree-optimization/38230
23592 PR tree-optimization/38301
23593 PR tree-optimization/38585
23594 PR middle-end/38895
23595 PR tree-optimization/38985
23596 PR tree-optimization/39299
23597 * tree-ssa-structalias.h: Remove.
23598 * tree-ssa-operands.h (NULL_USE_OPERAND_P): Make of type use_operand_p.
23599 (NULL_DEF_OPERAND_P): Make of type def_operand_p.
23600 (struct vuse_element_d): Remove.
23601 (struct vuse_vec_d): Likewise.
23602 (VUSE_VECT_NUM_ELEM, VUSE_VECT_ELEMENT_NC, VUSE_ELEMENT_PTR_NC,
23603 VUSE_ELEMENT_VAR_NC, VUSE_VECT_ELEMENT, VUSE_ELEMENT_PTR,
23604 SET_VUSE_VECT_ELEMENT, SET_VUSE_ELEMENT_VAR, SET_VUSE_ELEMENT_PTR,
23605 VUSE_ELEMENT_VAR): Likewise.
23606 (struct voptype_d): Likewise.
23607 (NUM_VOP_FREE_BUCKETS): Likewise.
23608 (struct ssa_operands): Remove vop_free_buckets and mpt_table fields.
23609 (struct stmt_operands_d): Remove.
23610 (VUSE_OP_PTR, VUSE_OP, SET_VUSE_OP, VUSE_NUM, VUSE_VECT,
23611 VDEF_RESULT_PTR, VDEF_RESULT, VDEF_OP_PTR, VDEF_OP, SET_VDEF_OP,
23612 VDEF_NUM, VDEF_VECT): Likewise.
23613 (copy_virtual_operands): Remove.
23614 (operand_build_cmp): Likewise.
23615 (create_ssa_artificial_load_stmt): Likewise.
23616 (enum ssa_op_iter_type): Remove ssa_op_iter_vdef.
23617 (struct ssa_operand_iterator_d): Remove vuses, vdefs, mayusesm
23618 vuse_index and mayuse_index members. Pack and move done and iter_type
23619 members to the front.
23620 (SSA_OP_VMAYUSE): Remove.
23621 (SSA_OP_VIRTUAL_USES): Adjust.
23622 (FOR_EACH_SSA_VDEF_OPERAND): Remove.
23623 (unlink_stmt_vdef): Declare.
23624 (add_to_addressable_set): Remove.
23625 * tree-vrp.c (stmt_interesting_for_vrp): Adjust.
23626 (vrp_visit_stmt): Likewise.
23627 * doc/tree-ssa.texi (Alias analysis): Update.
23628 * doc/invoke.texi (max-aliased-vops): Remove docs.
23629 (avg-aliased-vops): Likewise.
23630 * tree-into-ssa.c (syms_to_rename): Remove.
23631 (need_to_update_vops_p): Likewise.
23632 (need_to_initialize_update_ssa_p): Rename to ...
23633 (update_ssa_initialized_fn): ... this. Track function we are
23634 initialized for.
23635 (symbol_marked_for_renaming): Simplify.
23636 (add_new_name_mapping): Do not set need_to_update_vops_p.
23637 (dump_currdefs): Use SYMS_TO_RENAME.
23638 (rewrite_update_stmt): Always walk all uses/defs.
23639 (dump_update_ssa): Adjust.
23640 (init_update_ssa): Take function argument. Track what we are
23641 initialized for.
23642 (delete_update_ssa): Reset SYMS_TO_RENAME and update_ssa_initialized_fn.
23643 (create_new_def_for): Initialize for cfun, assert we are initialized
23644 for cfun.
23645 (mark_sym_for_renaming): Simplify.
23646 (mark_set_for_renaming): Do not initialize update-ssa.
23647 (need_ssa_update_p): Simplify. Take function argument.
23648 (name_mappings_registered_p): Assert we ask for the correct function.
23649 (name_registered_for_update_p): Likewise.
23650 (ssa_names_to_replace): Likewise.
23651 (release_ssa_name_after_update_ssa): Likewise.
23652 (update_ssa): Likewise. Use SYMS_TO_RENAME.
23653 (dump_decl_set): Do not print a newline.
23654 (debug_decl_set): Do it here.
23655 (dump_update_ssa): And here.
23656 * tree-ssa-loop-im.c (move_computations): Adjust.
23657 (movement_possibility): Likewise.
23658 (determine_max_movement): Likewise.
23659 (gather_mem_refs_stmt): Likewise.
23660 * tree-dump.c (dequeue_and_dump): Do not handle SYMBOL_MEMORY_TAG
23661 or NAME_MEMORY_TAG.
23662 * tree-complex.c (update_all_vops): Remove.
23663 (expand_complex_move): Adjust.
23664 * tree-ssa-loop-niter.c (chain_of_csts_start): Use NULL_TREE.
23665 Simplify test for memory referencing statement. Exclude
23666 non-invariant ADDR_EXPRs.
23667 * tree-pretty-print.c (dump_generic_node): Do not handle memory tags.
23668 * tree-loop-distribution.c (generate_memset_zero): Adjust.
23669 (rdg_flag_uses): Likewise.
23670 * tree-tailcall.c (suitable_for_tail_opt_p): Remove memory-tag
23671 related code.
23672 (tree_optimize_tail_calls_1): Also split the
23673 edge from the entry block if we have degenerate PHI nodes in
23674 the first basic block.
23675 * tree.c (init_ttree): Remove memory-tag related code.
23676 (tree_code_size): Likewise.
23677 (tree_node_structure): Likewise.
23678 (build7_stat): Re-write to be build6_stat.
23679 * tree.h (MTAG_P, TREE_MEMORY_TAG_CHECK, TMR_TAG): Remove.
23680 (SSA_VAR_P): Adjust.
23681 (struct tree_memory_tag): Remove.
23682 (struct tree_memory_partition_tag): Likewise.
23683 (union tree_node): Adjust.
23684 (build7): Re-write to be build6.
23685 * tree-pass.h (pass_reset_cc_flags): Remove.
23686 (TODO_update_address_taken): New flag.
23687 (pass_simple_dse): Remove.
23688 * ipa-cp.c (ipcp_update_callgraph): Update SSA form.
23689 * params.h (MAX_ALIASED_VOPS): Remove.
23690 (AVG_ALIASED_VOPS): Likewise.
23691 * omp-low.c (expand_omp_taskreg): Update SSA form.
23692 * tree-ssa-dse.c (dse_optimize_stmt): Properly query if the rhs
23693 aliases the lhs in a copy stmt.
23694 * tree-ssa-dse.c (struct address_walk_data): Remove.
23695 (memory_ssa_name_same): Likewise.
23696 (memory_address_same): Likewise.
23697 (get_kill_of_stmt_lhs): Likewise.
23698 (dse_possible_dead_store_p): Simplify, use the oracle. Handle
23699 unused stores. Look through PHI nodes into post-dominated regions.
23700 (dse_optimize_stmt): Simplify. Properly remove stores.
23701 (tree_ssa_dse): Compute dominators.
23702 (execute_simple_dse): Remove.
23703 (pass_simple_dse): Likewise.
23704 * ipa-reference.c (scan_stmt_for_static_refs): Open-code
23705 gimple_loaded_syms and gimple_stored_syms computation.
23706 * toplev.c (dump_memory_report): Dump alias and pta stats.
23707 * tree-ssa-sccvn.c (vn_reference_compute_hash): Simplify.
23708 (vn_reference_eq): Likewise.
23709 (vuses_to_vec, copy_vuses_from_stmt, vdefs_to_vec,
23710 copy_vdefs_from_stmt, shared_lookup_vops, shared_vuses_from_stmt,
23711 valueize_vuses): Remove.
23712 (get_def_ref_stmt_vuses): Simplify. Rename to ...
23713 (get_def_ref_stmt_vuse): ... this.
23714 (vn_reference_lookup_2): New function.
23715 (vn_reference_lookup_pieces): Use walk_non_aliased_vuses for
23716 walking equivalent vuses. Simplify.
23717 (vn_reference_lookup): Likewise.
23718 (vn_reference_insert): Likewise.
23719 (vn_reference_insert_pieces): Likewise.
23720 (visit_reference_op_call): Simplify.
23721 (visit_reference_op_load): Likewise.
23722 (visit_reference_op_store): Likewise.
23723 (init_scc_vn): Remove shared_lookup_vuses initialization.
23724 (free_scc_vn): Remove shared_lookup_vuses freeing.
23725 (sort_vuses, sort_vuses_heap): Remove.
23726 (get_ref_from_reference_ops): Export.
23727 * tree-ssa-sccvn.h (struct vn_reference_s): Replace vuses
23728 vector with single vuse pointer.
23729 (vn_reference_lookup_pieces, vn_reference_lookup,
23730 vn_reference_insert, vn_reference_insert_pieces): Adjust prototypes.
23731 (shared_vuses_from_stmt): Remove.
23732 (get_ref_from_reference_ops): Declare.
23733 * tree-ssa-loop-manip.c (slpeel_can_duplicate_loop_p): Adjust.
23734 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
23735 memory-tag related code.
23736 * tree-ssa-ccp.c (get_symbol_constant_value): Remove memory-tag code.
23737 (likely_value): Add comment, skip static-chain of call statements.
23738 (surely_varying_stmt_p): Adjust.
23739 (gimplify_and_update_call_from_tree): Likewise.
23740 (execute_fold_all_builtins): Do not rebuild alias info.
23741 (gimplify_and_update_call_from_tree): Properly update VOPs.
23742 * tree-ssa-loop-ivopts.c (get_ref_tag): Remove.
23743 (copy_ref_info): Remove memory-tag related code.
23744 * tree-call-cdce.c (tree_call_cdce): Rename the VOP.
23745 * ipa-pure-const.c (check_decl): Remove memory-tag related code.
23746 (check_stmt): Open-code gimple_loaded_syms and gimple_stored_syms
23747 computation.
23748 * tree-ssa-dom.c (gimple_p): Remove typedef.
23749 (eliminate_redundant_computations): Adjust.
23750 (record_equivalences_from_stmt): Likewise.
23751 (avail_expr_hash): Likewise.
23752 (avail_expr_eq): Likewise.
23753 * tree-ssa-propagate.c (update_call_from_tree): Properly update VOPs.
23754 (stmt_makes_single_load): Likewise.
23755 (stmt_makes_single_store): Likewise.
23756 * tree-ssa-alias.c: Rewrite completely.
23757 (debug_memory_partitions, dump_mem_ref_stats, debug_mem_ref_stats,
23758 debug_mem_sym_stats, dump_mem_sym_stats_for_var,
23759 debug_all_mem_sym_stats, debug_mp_info, update_mem_sym_stats_from_stmt,
23760 delete_mem_ref_stats, create_tag_raw, dump_points_to_info,
23761 dump_may_aliases_for, debug_may_aliases_for, new_type_alias):
23762 Remove public functions.
23763 (pass_reset_cc_flags): Remove.
23764 (pass_build_alias): Move ...
23765 * tree-ssa-structalias.c (pass_build_alias): ... here.
23766 * tree-ssa-alias.c (may_be_aliased): Move ...
23767 * tree-flow-inline.h (may_be_aliased): ... here.
23768 tree-ssa-alias.c (struct count_ptr_d, count_ptr_derefs,
23769 count_uses_and_derefs): Move ...
23770 * gimple.c: ... here.
23771 * gimple.h (count_uses_and_derefs): Declare.
23772 * tree-ssa-alias.c (dump_alias_stats, ptr_deref_may_alias_global_p,
23773 ptr_deref_may_alias_decl_p, ptr_derefs_may_alias_p,
23774 same_type_for_tbaa, nonaliasing_component_refs_p, decl_refs_may_alias_p,
23775 indirect_ref_may_alias_decl_p, indirect_refs_may_alias_p,
23776 ref_maybe_used_by_call_p, ref_maybe_used_by_stmt_p,
23777 call_may_clobber_ref_p, stmt_may_clobber_ref_p, maybe_skip_until,
23778 get_continuation_for_phi, walk_non_aliased_vuses, walk_aliased_vdefs):
23779 New functions.
23780 * tree-dfa.c (refs_may_alias_p): Move ...
23781 * tree-ssa-alias.c (refs_may_alias_p): ... here. Extend.
23782 * tree-ssa-alias.h: New file.
23783 * tree-ssa-sink.c (is_hidden_global_store): Adjust.
23784 (statement_sink_location): Likewise.
23785 * opts.c (decode_options): Do not adjust max-aliased-vops or
23786 avg-aliased-vops values.
23787 * timevar.def (TV_TREE_MAY_ALIAS): Remove.
23788 (TV_CALL_CLOBBER): Likewise.
23789 (TV_FLOW_SENSITIVE): Likewise.
23790 (TV_FLOW_INSENSITIVE): Likewise.
23791 (TV_MEMORY_PARTITIONING): Likewise.
23792 (TV_ALIAS_STMT_WALK): New timevar.
23793 * tree-ssa-loop-ivcanon.c (empty_loop_p): Adjust.
23794 * tree-ssa-address.c (create_mem_ref_raw): Use build6.
23795 (get_address_description): Remove memory-tag related code.
23796 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Adjust.
23797 * treestruct.def (TS_MEMORY_TAG, TS_MEMORY_PARTITION_TAG): Remove.
23798 * tree-eh.c (cleanup_empty_eh): Do not leave stale SSA_NAMEs
23799 and immediate uses in statements. Document.
23800 * gimple-pretty-print.c (dump_gimple_mem_ops): Adjust.
23801 (dump_symbols): Remove.
23802 (dump_gimple_mem_ops): Do not dump loaded or stored syms.
23803 * alias.c (get_deref_alias_set): New function split out from ...
23804 (get_alias_set): ... here.
23805 * alias.h (get_deref_alias_set): Declare.
23806 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove unused
23807 type parameter. Remove restrict pointer handling. Create a
23808 ref-all pointer in case type-based alias sets do not conflict.
23809 (vect_analyze_data_refs): Remove SMT related code.
23810 * tree-vect-stmts.c (vectorizable_store): Re-instantiate TBAA assert.
23811 (vectorizable_load): Likewise.
23812 * tree-data-ref.h (struct dr_alias): Remove symbol_tag field.
23813 (DR_SYMBOL_TAG, DR_VOPS): Remove.
23814 * tree-data-ref.c (dr_may_alias_p): Use the alias-oracle.
23815 Ignore vops and SMTs.
23816 (dr_analyze_alias): Likewise..
23817 (free_data_ref): Likewise.
23818 (create_data_ref): Likewise.
23819 (analyze_all_data_dependences): Likewise.
23820 (get_references_in_stmt): Adjust.
23821 * tree-flow-inline.h (gimple_aliases_computed_p,
23822 gimple_addressable_vars, gimple_call_clobbered_vars,
23823 gimple_call_used_vars, gimple_global_var, may_aliases, memory_partition,
23824 factoring_name_p, mark_call_clobbered, clear_call_clobbered,
23825 compare_ssa_operands_equal, symbol_mem_tag, set_symbol_mem_tag,
23826 gimple_mem_ref_stats): Remove.
23827 (gimple_vop): New function.
23828 (op_iter_next_use): Remove vuses and mayuses cases.
23829 (op_iter_next_def): Remove vdefs case.
23830 (op_iter_next_tree): Remove vuses, mayuses and vdefs cases.
23831 (clear_and_done_ssa_iter): Do not set removed fields.
23832 (op_iter_init): Likewise. Skip vuse and/or vdef if requested.
23833 Assert we are not iterating over vuses or vdefs if not also
23834 iterating over uses or defs.
23835 (op_iter_init_use): Likewise.
23836 (op_iter_init_def): Likewise.
23837 (op_iter_next_vdef): Remove.
23838 (op_iter_next_mustdef): Likewise.
23839 (op_iter_init_vdef): Likewise.
23840 (compare_ssa_operands_equal): Likewise.
23841 (link_use_stmts_after): Handle vuse operand.
23842 (is_call_used): Use is_call_clobbered.
23843 (is_call_clobbered): Global variables are always call clobbered,
23844 query the call-clobbers bitmap.
23845 (mark_call_clobbered): Ignore global variables.
23846 (clear_call_clobbered): Likewise.
23847 * tree-ssa-coalesce.c (create_outofssa_var_map): Adjust
23848 virtual operands sanity check.
23849 * tree.def (NAME_MEMORY_TAG, SYMBOL_MEMORY_TAG, MEMORY_PARTITION_TAG):
23850 Remove.
23851 (TARGET_MEM_REF): Remove TMR_TAG operand.
23852 * tree-dfa.c (add_referenced_var): Initialize call-clobber state.
23853 Remove call-clobber related code.
23854 (remove_referenced_var): Likewise. Do not clear mpt or symbol_mem_tag.
23855 (dump_variable): Do not dump SMTs, memory stats, may-aliases or
23856 partitions or escape reason.
23857 (get_single_def_stmt, get_single_def_stmt_from_phi,
23858 get_single_def_stmt_with_phi): Remove.
23859 (dump_referenced_vars): Tidy.
23860 (get_ref_base_and_extent): Allow bare decls.
23861 (collect_dfa_stats): Adjust.
23862 * graphite.c (rename_variables_in_stmt): Adjust.
23863 (graphite_copy_stmts_from_block): Likewise.
23864 (translate_clast): Likewise.
23865 * tree-ssa-pre.c (struct bb_bitmap_sets): Add expr_dies bitmap.
23866 (EXPR_DIES): New.
23867 (translate_vuse_through_block): Use the oracle.
23868 (phi_translate_1): Adjust.
23869 (value_dies_in_block_x): Use the oracle. Cache the outcome
23870 in EXPR_DIES.
23871 (valid_in_sets): Check if the VUSE for
23872 a REFERENCE is available.
23873 (eliminate): Do not remove stmts during elimination,
23874 instead queue and remove them afterwards.
23875 (do_pre): Do not rebuild alias info.
23876 (pass_pre): Run TODO_rebuild_alias before PRE.
23877 * tree-ssa-live.c (remove_unused_locals): Remove memory-tag code.
23878 * tree-sra.c (sra_walk_function): Use gimple_references_memory_p.
23879 (mark_all_v_defs_stmt): Remove.
23880 (mark_all_v_defs_seq): Adjust.
23881 (sra_replace): Likewise.
23882 (scalarize_use): Likewise.
23883 (scalarize_copy): Likewise.
23884 (scalarize_init): Likewise.
23885 (scalarize_ldst): Likewise.
23886 (todoflags): Remove.
23887 (tree_sra): Do not rebuild alias info.
23888 (tree_sra_early): Adjust.
23889 (pass_sra): Run TODO_update_address_taken before SRA.
23890 * tree-predcom.c (set_alias_info): Remove.
23891 (prepare_initializers_chain): Do not call it.
23892 (mark_virtual_ops_for_renaming): Adjust.
23893 (mark_virtual_ops_for_renaming_list): Remove.
23894 (initialize_root_vars): Adjust.
23895 (initialize_root_vars_lm): Likewise.
23896 (prepare_initializers_chain): Likewise.
23897 * tree-ssa-copy.c (may_propagate_copy): Remove memory-tag related code.
23898 (may_propagate_copy_into_stmt): Likewise.
23899 (merge_alias_info): Do nothing for now.
23900 (propagate_tree_value_into_stmt): Adjust.
23901 (stmt_may_generate_copy): Likewise.
23902 * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr): Do
23903 not mark symbols for renaming.
23904 (forward_propagate_addr_expr): Match up push/pop_stmt_changes
23905 with the same statement, make sure to update the new pointed-to one.
23906 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not copy
23907 call statements, do not mark symbols for renaming.
23908 (mark_operand_necessary): Dump something.
23909 (ref_may_be_aliased): New function.
23910 (mark_aliased_reaching_defs_necessary_1): New helper function.
23911 (mark_aliased_reaching_defs_necessary): Likewise.
23912 (mark_all_reaching_defs_necessary_1): Likewise.
23913 (mark_all_reaching_defs_necessary): Likewise.
23914 (propagate_necessity): Do not process virtual PHIs. For
23915 non-aliased loads mark all reaching definitions as necessary.
23916 For aliased loads and stores mark the immediate dominating
23917 aliased clobbers as necessary.
23918 (visited): New global static.
23919 (perform_tree_ssa_dce): Free visited bitmap after propagating
23920 necessity.
23921 (remove_dead_phis): Perform simple dead virtual PHI removal.
23922 (remove_dead_stmt): Properly unlink virtual operands when
23923 removing stores.
23924 (eliminate_unnecessary_stmts): Schedule PHI removal after
23925 stmt removal.
23926 * tree-ssa-ter.c (is_replaceable_p): Adjust.
23927 (process_replaceable): Likewise.
23928 (find_replaceable_in_bb): Likewise.
23929 * tree-ssa.c (verify_ssa_name): Verify all VOPs are
23930 based on the single gimple vop.
23931 (verify_flow_insensitive_alias_info): Remove.
23932 (verify_flow_sensitive_alias_info): Likewise.
23933 (verify_call_clobbering): Likewise.
23934 (verify_memory_partitions): Likewise.
23935 (verify_alias_info): Likewise.
23936 (verify_ssa): Adjust..
23937 (execute_update_addresses_taken): Export. Update SSA
23938 manually. Optimize only when optimizing. Use a local bitmap.
23939 (pass_update_address_taken): Remove TODO_update_ssa, add
23940 TODO_dump_func.
23941 (pass_update_address_taken): Just use TODO_update_address_taken.
23942 (init_tree_ssa): Do not initialize addressable_vars.
23943 (verify_ssa): Verify new VUSE / VDEF properties.
23944 Verify that all stmts definitions have the stmt as SSA_NAME_DEF_STMT.
23945 Do not call verify_alias_info.
23946 (delete_tree_ssa): Clear the VUSE, VDEF operands.
23947 Do not free the loaded and stored syms bitmaps. Reset the escaped
23948 and callused solutions. Do not free addressable_vars.
23949 Remove memory-tag related code.
23950 (warn_uninitialized_var): Aliases are always available.
23951 * tree-ssa-loop-prefetch.c (gather_memory_references): Adjust.
23952 * lambda-code.c (can_put_in_inner_loop): Adjust.
23953 (can_put_after_inner_loop): Likewise.
23954 (perfect_nestify): Likewise.
23955 * tree-vect-stmts.c (vect_stmt_relevant_p): Adjust.
23956 (vect_gen_widened_results_half): Remove CALL_EXPR handling.
23957 (vectorizable_conversion): Do not mark symbols for renaming.
23958 * tree-inline.c (remap_gimple_stmt): Clear VUSE/VDEF.
23959 (expand_call_inline): Unlink the calls virtual operands before
23960 replacing it.
23961 (tree_function_versioning): Do not call update_ssa if we are not
23962 updating clones. Simplify.
23963 * tree-ssa-phiprop.c (phivn_valid_p): Adjust.
23964 (propagate_with_phi): Likewise..
23965 * tree-outof-ssa.c (create_temp): Remove memory tag and call
23966 clobber code. Assert we are not aliased or global.
23967 * tree-flow.h: Include tree-ssa-alias.h
23968 (enum escape_type): Remove.
23969 (struct mem_sym_stats_d): Likewise.
23970 (struct mem_ref_stats_d): Likewise.
23971 (struct gimple_df): Add vop member. Remove global_var,
23972 call_clobbered_vars, call_used_vars, addressable_vars,
23973 aliases_compted_p and mem_ref_stats members. Add syms_to_rename,
23974 escaped and callused members.
23975 (struct ptr_info_def): Remove all members, add points-to solution
23976 member pt.
23977 (struct var_ann_d): Remove in_vuse_list, in_vdef_list,
23978 call_clobbered, escape_mask, mpt and symbol_mem_tag members.
23979 * Makefile.in (TREE_FLOW_H): Add tree-ssa-alias.h.
23980 (tree-ssa-structalias.o): Remove tree-ssa-structalias.h.
23981 (tree-ssa-alias.o): Likewise.
23982 (toplev.o): Add tree-ssa-alias.h
23983 (GTFILES): Remove tree-ssa-structalias.h, add tree-ssa-alias.h.
23984 * gimple.c (gimple_set_bb): Fix off-by-one error.
23985 (is_gimple_reg): Do not handle memory tags.
23986 (gimple_copy): Also copy virtual operands.
23987 Delay updating the statement. Do not reset loaded and stored syms.
23988 (gimple_set_stored_syms): Remove.
23989 (gimple_set_loaded_syms): Likewise.
23990 (gimple_call_copy_skip_args): Copy the virtual operands
23991 and mark the new statement modified.
23992 * tree-ssa-structalias.c (may_alias_p): Remove.
23993 (set_uids_in_ptset): Take the alias set to prune with as
23994 parameter. Fold in the alias test of may_alias_p.
23995 (compute_points_to_sets): Compute whether a ptr is dereferenced
23996 in a local sbitmap.
23997 (process_constraint): Deal with &ANYTHING on the lhs, reject all
23998 other ADDRESSOF constraints on the lhs.
23999 (get_constraint_for_component_ref): Assert that we don't get
24000 ADDRESSOF constraints from the base of the reference.
24001 Properly generate UNKNOWN_OFFSET for DEREF if needed.
24002 (struct variable_info): Remove collapsed_to member.
24003 (get_varinfo_fc): Remove.
24004 (new_var_info): Do not set collapsed_to.
24005 (dump_constraint): Do not follow cycles.
24006 (dump_constraint_graph): Likewise.
24007 (build_pred_graph): Likewise.
24008 (build_succ_graph): Likewise.
24009 (rewrite_constraints): Likewise.
24010 (do_simple_structure_copy): Remove.
24011 (do_rhs_deref_structure_copy): Remove.
24012 (do_lhs_deref_structure_copy): Remove.
24013 (collapse_rest_of_var): Remove.
24014 (do_structure_copy): Re-implement.
24015 (pta_stats): New global variable.
24016 (dump_pta_stats): New function.
24017 (struct constraint_expr): Make offset signed.
24018 (UNKNOWN_OFFSET): Define special value.
24019 (dump_constraint): Dump UNKNOWN_OFFSET as UNKNOWN.
24020 (solution_set_expand): New helper function split out from ...
24021 (do_sd_constraint): ... here.
24022 (solution_set_add): Handle UNKNOWN_OFFSET. Handle negative offsets.
24023 (do_ds_constraint): Likewise.
24024 (do_sd_constraint): Likewise. Do not special-case ESCAPED = *ESCAPED
24025 and CALLUSED = *CALLUSED.
24026 (set_union_with_increment): Make inc argument signed.
24027 (type_safe): Remove.
24028 (get_constraint_for_ptr_offset): Handle unknown and negative
24029 constant offsets.
24030 (first_vi_for_offset): Handle offsets before start. Bail
24031 out early for offsets beyond the variable extent.
24032 (first_or_preceding_vi_for_offset): New function.
24033 (init_base_vars): Add ESCAPED = ESCAPED + UNKNOWN_OFFSET constraint.
24034 Together with ESCAPED = *ESCAPED this properly computes reachability.
24035 (find_what_var_points_to): New function.
24036 (find_what_p_points_to): Implement in terms of find_what_var_points_to.
24037 (pt_solution_reset, pt_solution_empty_p, pt_solution_includes_global,
24038 pt_solution_includes_1, pt_solution_includes, pt_solutions_intersect_1,
24039 pt_solutions_intersect): New functions.
24040 (compute_call_used_vars): Remove.
24041 (compute_may_aliases): New main entry into PTA computation.
24042 * gimple.h (gimple_p): New typedef.
24043 (struct gimple_statement_base): Remove references_memory_p.
24044 (struct gimple_statement_with_memory_ops_base): Remove
24045 vdef_ops, vuse_ops, stores and loads members. Add vdef and vuse
24046 members.
24047 (gimple_vuse_ops, gimple_set_vuse_ops, gimple_vdef_ops,
24048 gimple_set_vdef_ops, gimple_loaded_syms, gimple_stored_syms,
24049 gimple_set_references_memory): Remove.
24050 (gimple_vuse_op, gimple_vdef_op, gimple_vuse, gimple_vdef,
24051 gimple_vuse_ptr, gimple_vdef_ptri, gimple_set_vuse, gimple_set_vdef):
24052 New functions.
24053 * tree-cfg.c (move_block_to_fn): Fix off-by-one error.
24054 (verify_expr): Allow RESULT_DECL.
24055 (gimple_duplicate_bb): Do not copy virtual operands.
24056 (gimple_duplicate_sese_region): Adjust.
24057 (gimple_duplicate_sese_tail): Likewise.
24058 (mark_virtual_ops_in_region): Remove.
24059 (move_sese_region_to_fn): Do not call it.
24060 * passes.c (init_optimization_passes): Remove pass_reset_cc_flags
24061 and pass_simple_dse.
24062 (execute_function_todo): Handle TODO_update_address_taken,
24063 call execute_update_addresses_taken for TODO_rebuild_alias.
24064 (execute_todo): Adjust.
24065 (execute_one_pass): Init dump files early.
24066 * ipa-struct-reorg.c (finalize_var_creation): Do not mark vars
24067 call-clobbered.
24068 (create_general_new_stmt): Clear vops.
24069 * tree-ssa-reassoc.c (get_rank): Adjust.
24070 * tree-vect-slp.c (vect_create_mask_and_perm): Do not mark
24071 symbols for renaming.
24072 * params.def (PARAM_MAX_ALIASED_VOPS): Remove.
24073 (PARAM_AVG_ALIASED_VOPS): Likewise.
24074 * tree-ssanames.c (init_ssanames): Allocate SYMS_TO_RENAME.
24075 (duplicate_ssa_name_ptr_info): No need to copy the shared bitmaps.
24076 * tree-ssa-operands.c: Simplify for new virtual operand representation.
24077 (operand_build_cmp, copy_virtual_operands,
24078 create_ssa_artificial_load_stmt, add_to_addressable_set,
24079 gimple_add_to_addresses_taken): Remove public functions.
24080 (unlink_stmt_vdef): New function.
24081
24082 2009-04-03 Alan Modra <amodra@bigpond.net.au>
24083
24084 * config.gcc (powerpc-*-linux*): Merge variants.
24085
24086 2009-04-02 Chao-ying Fu <fu@mips.com>
24087 James Grosbach <james.grosbach@microchip.com>
24088
24089 * config/mips/mips.c (mips_frame_info): Add acc_mask, num_acc,
24090 num_cop0_regs, acc_save_offset, cop0_save_offset, acc_sp_offset,
24091 cop0_sp_offset.
24092 (machine_function): Add interrupt_handler_p, use_shadow_register_set_p,
24093 keep_interrupts_masked_p, use_debug_exception_return_p.
24094 (mips_attribute_table): Add interrupt, use_shadow_register_set,
24095 keep_interrupts_masked, use_debug_exception_return.
24096 (mips_interrupt_type_p, mips_use_shadow_register_set_p,
24097 mips_keep_interrupts_masked_p, mips_use_debug_exception_return_p):
24098 New functions.
24099 (mips_function_ok_for_sibcall): Return false for interrupt handlers.
24100 (mips_print_operand): Process COP0 registers to print $0 .. $31
24101 correctly for GAS to process.
24102 (mips_interrupt_extra_call_saved_reg_p): New function.
24103 (mips_cfun_call_saved_reg_p): For interrupt handlers, we need to check
24104 extra registers.
24105 (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
24106 (mips_compute_frame_info): Add supports for interrupt context that
24107 includes doubleword accumulators and COP0 registers.
24108 (mips_for_each_saved_acc): New function.
24109 (mips_for_each_saved_gpr_and_fpr): Change the function name from
24110 mips_for_each_saved_reg.
24111 (mips_save_reg): Save accumulators.
24112 (mips_kernel_reg_p): A new for_each_rtx callback.
24113 (mips_expand_prologue): Support interrupt handlers.
24114 (mips_restore_reg): Restore accumulators.
24115 (mips_expand_epilogue): Support interrupt handlers.
24116 (mips_can_use_return_insn): Return false for interrupt handlers.
24117 (mips_epilogue_uses): New function.
24118 * config/mips/mips.md (UNSPEC_ERET, UNSPEC_DERET, UNSPEC_DI,
24119 UNSPEC_EHB, UNSPEC_RDPGPR, UNSPEC_COP0): New UNSPEC.
24120 (mips_eret, mips_deret, mips_di, mips_ehb, mips_rdpgpr,
24121 cop0_move): New instructions.
24122 * config/mips/mips-protos.h (mips_epilogue_uses): Declare.
24123 * config/mips/mips.h (K0_REG_NUM, K1_REG_NUM, KERNEL_REG_P): New
24124 defines.
24125 (COP0_STATUS_REG_NUM, COP0_CAUSE_REG_NUM, COP0_EPC_REG_NUM):
24126 New defines.
24127 (CAUSE_IPL, SR_IPL, SR_EXL, SR_IE): New defines.
24128 (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): For
24129 interrupt handlers, we use K0 as the temporary register.
24130 (EPILOGUE_USES): Change to a function call.
24131 * config/mips/sde.h (MIPS_EPILOGUE_TEMP_REGNUM): For interrupt
24132 handlers, we use K0 as the temporary register.
24133
24134 * doc/extend.texi (Function Attributes): Document interrupt,
24135 use_shadow_register_set, keep_interrupts_masked,
24136 use_debug_exception_return for MIPS attributes.
24137
24138 2009-04-03 Alan Modra <amodra@bigpond.net.au>
24139
24140 * config.gcc (powerpc64-*-gnu*): Add rs6000/default64.h to tm_file.
24141 Remove a number of t-files from tmake_file.
24142 * config/rs6000/sysv4.opt (mprototype): Name variable target_prototype.
24143 * config/rs6000/sysv4.h (TARGET_PROTOTYPE): Define.
24144 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
24145 target_prototype, not TARGET_PROTOTYPE.
24146 (LINK_OS_GNU_SPEC): Define.
24147 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Delete tramp.S
24148 and darwin-ldoubdle.c.
24149
24150 2009-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
24151
24152 PR driver/39293
24153 * gcc.c (save_temps_flag): Add support for -save-temps=obj.
24154 (cpp_options): Ditto.
24155 (default_compilers): Ditto.
24156 (display_help): Ditto.
24157 (process_command): Ditto.
24158 (do_spec_1): Ditto.
24159 (set_input): Use lbasename instead of duplicate code.
24160 (save_temps_prefix): New static for -save-temps=obj.
24161 (save_temps_length): Ditto.
24162
24163 * doc/invoke.texi (-save-temps=obj): Document new variant to
24164 -save-temps switch.
24165
24166 2009-04-02 Jeff Law <law@redhat.com>
24167
24168 * reload1.c (fixup_eh_region_notes): Remove write-only "trap_count"
24169 variable.
24170
24171 2009-04-02 H.J. Lu <hongjiu.lu@intel.com>
24172
24173 * configure.ac: Support -Bstatic/-Bdynamic for linker version > 2.
24174 * configure: Regenerated.
24175
24176 2009-04-02 Rafael Avila de Espindola <espindola@google.com>
24177
24178 * c-decl.c (merge_decls): Make sure newdecl and olddecl don't
24179 share the argument list.
24180
24181 2009-04-02 Rafael Avila de Espindola <espindola@google.com>
24182
24183 Merge
24184
24185 2009-02-12 Diego Novillo <dnovillo@google.com>
24186
24187 * varpool.c (debug_varpool): New.
24188 * cgraph.h (debug_varpool): Declare.
24189
24190 2009-04-02 Jan Hubicka <jh@suse.cz>
24191
24192 * passes.c (init_optimization_passes): Remove two copies of ehcleanup
24193 pass.
24194
24195 2009-04-02 H.J. Lu <hongjiu.lu@intel.com>
24196
24197 * config/i386/i386.c (ix86_abi): Move initialization to ...
24198 (override_options): Here.
24199
24200 2009-04-02 Christian Bruel <christian.bruel@st.com>
24201
24202 * config/sh/sh.c (sh_dwarf_register_span): New function.
24203 (TARGET_DWARF_REGISTER_SPAN): Define.
24204 * config/sh/sh-protos.h (sh_dwarf_register_span): Declare.
24205
24206 2009-04-02 Ira Rosen <irar@il.ibm.com>
24207
24208 PR tree-optimization/39595
24209 * tree-vect-slp.c (vect_build_slp_tree): Check that the size of
24210 interleaved loads group is not greater than the SLP group size.
24211
24212 2009-04-02 Rafael Avila de Espindola <espindola@google.com>
24213
24214 * builtins.c (is_builtin_name): New.
24215 (called_as_built_in): Use is_builtin_name.
24216 * tree.h (is_builtin_name): New.
24217 * varasm.c (incorporeal_function_p): Use is_builtin_name
24218
24219 2009-04-02 Andrew Stubbs <ams@codesourcery.com>
24220
24221 * config/sh/linux-unwind.h: Disable when inhibit_libc is defined.
24222
24223 2009-04-02 Dodji Seketeli <dodji@redhat.com>
24224
24225 PR c++/26693
24226 * c-decl.c (clone_underlying_type): Move this ...
24227 * c-common.c (set_underlying_type): ... here.
24228 Also, make sure the function properly sets TYPE_STUB_DECL() on
24229 the newly created typedef variant type.
24230 * c-common.h (is_typedef_decl, set_underlying_type): Declare ...
24231 * c-common.c (is_typedef_decl, set_underlying_type): ... new entry
24232 points.
24233
24234 2009-04-02 Richard Guenther <rguenther@suse.de>
24235
24236 PR tree-optimization/37221
24237 * tree-flow.h (degenerate_phi_result): Declare.
24238 * tree-ssa-dom.c (degenerate_phi_result): Export.
24239 * tree-scalar-evolution.c (analyze_initial_condition): If
24240 the initial condition is defined by a degenerate PHI node
24241 use the degenerate value.
24242
24243 2009-04-01 Eric Botcazou <ebotcazou@adacore.com>
24244
24245 PR rtl-optimization/39588
24246 * combine.c (merge_outer_ops): Do not set the constant when this
24247 is not necessary.
24248 (simplify_shift_const_1): Do not modify it either in this case.
24249
24250 2009-04-01 Steven Bosscher <steven@gcc.gnu.org>
24251
24252 * config/ia64/ia64.c (ia64_handle_option): Inform user that Itanium1
24253 tuning is deprecated if -mtune value is set to an Itanium1 variant.
24254
24255 2009-04-01 Janis Johnson <janis187@us.ibm.com>
24256
24257 PR c/29027
24258 * c-lex.c (interpret_float): Default (no suffix) is double.
24259
24260 2009-04-1 Xinliang David Li <davidxl@google.com>
24261
24262 * config/i386/i386.c (legitimate_constant_p): Recognize
24263 all one vector constant.
24264
24265 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
24266
24267 * config/vax/vax.c: Add #includes to silence warnings.
24268 Change #include order to silence two warnings.
24269
24270 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
24271
24272 * config/vax/linux.h (TARGET_DEFAULT): Add the MASK_QMATH flag bit.
24273 (ASM_SPEC): Pass -k to the assembler for PIC code.
24274
24275 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
24276
24277 * config.gcc: Add vax-*-linux* to the switch.
24278 * config/vax/linux.h: New file. (TARGET_VERSION,
24279 TARGET_OS_CPP_BUILTINS, TARGET_DEFAULT, CPP_SPEC, LINK_SPEC): Define.
24280
24281 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
24282
24283 * config/vax/vax.c (vax_output_int_move, adjacent_operands_p):
24284 Use predicate macros instead of GET_CODE() == foo.
24285 * config/vax/vax.md (movsi_2, movstrictqi, and<mode>3, ashrsi3,
24286 ashlsi3, rotrsi3, <unnamed>): Likewise.
24287
24288 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
24289
24290 * config/vax/builtins.md (jbbssiqi, jbbssihi, jbbssisi, jbbcciqi,
24291 jbbccihi, jbbccisi): Remova trailing whitespace.
24292 * config/vax/constraints.md: Likewise.
24293 * config/vax/elf.h: (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
24294 * config/vax/openbsd1.h (OBSD_OLD_GAS): Likewise.
24295 * config/vax/predicates.md: Likewise.
24296 * config/vax/vax.c (print_operand_address, vax_output_int_move,
24297 vax_expand_addsub_di_operands, adjacent_operands_p): Likewise.
24298 * config/vax/vax.h: Likewise.
24299 * config/vax/vax.md (nonlocal_goto): Likewise.
24300
24301 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
24302
24303 * config/vax/vax.c (vax_float_literal, vax_output_int_move)
24304 (indirectable_address_p, adjacent_operands_p): Add spaces around
24305 braces.
24306 * config/vax/vax-protos.h (adjacent_operands_p): Likewise.
24307
24308 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
24309
24310 * config/vax/vax.c (legitimate_constant_address_p,
24311 legitimate_constant_p, indirectable_address_p, nonindexed_address_p,
24312 index_term_p, reg_plus_index_p, legitimate_address_p,
24313 vax_mode_dependent_address_p): Update comments to match functions
24314 modified by the recent int->bool conversion.
24315
24316 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
24317
24318 * config/vax/builtins.md: Update copyright message.
24319 * config/vax/constraints.md: Likewise.
24320 * config/vax/netbsd-elf.h: Likewise.
24321 * config/vax/predicates.md: Likewise.
24322 * config/vax/vax-protos.h: Likewise.
24323 * config/vax/vax.c: Likewise.
24324 * config/vax/vax.h: Likewise.
24325 * config/vax/vax.md: Likewise.
24326 * config/vax/vax.opt: Likewise.
24327
24328 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
24329
24330 * config/vax/builtins.md (ffssi2, ffssi2_internal,
24331 sync_lock_test_and_set<mode>, sync_lock_release<mode>): Fix indention.
24332 * config/vax/constraints.md (B, R): Likewise.
24333 * config/vax/predicates.md (external_memory_operand,
24334 nonimmediate_addsub_di_operand): Likewise.
24335 * config/vax/vax.c (vax_output_int_add): Likewise.
24336 * config/vax/vax.md (movsi, movsi_2, mov<mode>, call_value,
24337 untyped_call): Likewise.
24338
24339 2009-04-01 Matt Thomas <matt@3am-software.com>
24340
24341 * config/vax/predicates.md: New file.
24342 (symbolic_operand, local_symbolic_operand, external_symbolic_operand,
24343 external_const_operand, nonsymbolic_operand, external_memory_operand,
24344 indirect_memory_operand, indexed_memory_operand,
24345 illegal_blk_memory_operand, illegal_addsub_di_memory_operand,
24346 nonimmediate_addsub_di_operand, general_addsub_di_operand): New
24347 predicate.
24348 * config/vax/constraints.md: New file.
24349 (Z0, U06, U08, U16, CN6, S08, S16, I, J, K, L, M, N, O, G, Q, B, R, T):
24350 New constraint.
24351 * config/vax/builtins.md: New file.
24352 (ffssi2, ffssi2_internal, sync_lock_test_and_set<mode>, jbbssiqi,
24353 jbbssihi, jbbssisi, sync_lock_release<mode>, jbbcciqi, jbbccihi,
24354 jbbccisi): Define.
24355 * config/vax/vax.opt (mqmath): Add option.
24356 * config/vax/vax.md (isfx): Extend with DI.
24357 (VAXintQH, VAXintQHSD): Define.
24358 (tst<mode>, cmp<mode>, *bit<mode>, movmemhi1, truncsiqi2, truncsihi2,
24359 mulsidi3, add<mode>3, sub<mode>, mul<mode>3, div<mode>3, and<mode>,
24360 and<mode>_const_int, ior<mode>3, xor<mode>3, neg<mode>2,
24361 one_cmpl<mode>2, ashlsi3, lshrsi3, rotlsi3): Update constraints.
24362 (movdi): Update constraints and use vax_output_int_move().
24363 (movsi, movsi_2, pushlclsymreg, pushextsymreg, movlclsymreg,
24364 movextsymreg, adddi3, adcdi3, subdi3, sbcdi3, pushextsym, movextsym,
24365 pushlclsym, movlclsym, movaddr<mode>, pushaddr<mode>,
24366 nonlocal_goto): New.
24367 (mov<mode>): Extend accepted operand types.
24368 (subdi3_old): Rename from subdi3, change update constraints and use
24369 a new implementation.
24370 * config/vax/vax.h (PCC_BITFIELD_TYPE_MATTERS): Add space.
24371 (FRAME_POINTER_CFA_OFFSET, IRA_COVER_CLASSES, CLASS_MAX_NREGS,
24372 MOVE_RATIO, CLEAR_RATIO): Define.
24373 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P,
24374 CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
24375 (PRINT_OPERAND): Redefine using a function instead of inlined code.
24376 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
24377 (split_quadword_operands): Make static and really allow variable
24378 splitting.
24379 (print_operand_address): Update for PIC generation.
24380 (print_operand, vax_builtin_setjmp_frame_value, vax_output_int_subtract,
24381 indexable_address_p, fixup_mathdi_operand,
24382 vax_expand_addsub_di_operands, adjacent_operands_p): New.
24383 (vax_float_literal, legitimate_constant_p,
24384 indirectable_constant_address_p, index_term_p,
24385 reg_plus_index_p): Return bool instead of int.
24386 (vax_rtx_costs): Fix cost for CONST_INT, indent and use HOST_WIDE_INT
24387 where needed.
24388 (vax_output_int_move, vax_output_int_add): Extend to allow PIC
24389 generation.
24390 (vax_output_conditional_branch): Indent.
24391 (legitimate_constant_address_p, indirectable_constant_address_p,
24392 indirectable_address_p, nonindexed_address_p, legitimate_address_p,
24393 vax_mode_dependent_address_p): Return bool instead of int, update for
24394 PIC generation.
24395 * config/vax/vax-protos.h (legitimate_constant_address_p,
24396 legitimate_constant_p, legitimate_address_p,
24397 vax_mode_dependent_address_p): Change declaration to bool.
24398 (legitimate_pic_operand_p, adjacent_operands_p, print_operand,
24399 vax_expand_addsub_di_operands, vax_output_int_subtract,
24400 vax_output_movmemsi): Declare.
24401 (split_quadword_operands, vax_float_literal): Delete declaration.
24402 * config/vax/netbsd-elf.h (CC1_SPEC, CC1PLUS_SPEC) Define.
24403 * config/vax/elf.h (NO_EXTERNAL_INDIRECT_ADDRESS,
24404 VAX_CC1_AND_CC1PLUS_SPEC, ASM_PREFERRED_EH_DATA_FORMAT,
24405 ASM_OUTPUT_DWARF_PCREL): Define.
24406 (ASM_SPEC): Change definition to allow PIC generation.
24407
24408 2009-04-01 Steve Ellcey <sje@cup.hp.com>
24409
24410 * doc/sourcebuild.texi: Update front-end requirements.
24411
24412 2009-04-01 Jakub Jelinek <jakub@redhat.com>
24413
24414 PR target/39226
24415 * config/rs6000/rs6000.md (andsi3_internal5_nomc,
24416 anddi3_internal2_nomc, anddi3_internal3_nomc): Removed.
24417 (booldi3_internal3): Use boolean_or_operator instead of
24418 boolean_operator.
24419
24420 2009-04-01 Joseph Myers <joseph@codesourcery.com>
24421
24422 PR c/39605
24423 * c-decl.c (grokdeclarator): Pedwarn for file-scope array
24424 declarator whose size is not an integer constant expression but
24425 folds to an integer constant, then treat it as a constant
24426 subsequently.
24427
24428 2009-04-01 Richard Guenther <rguenther@suse.de>
24429
24430 * fold-const.c (fold_plusminus_mult_expr): Do not fold
24431 i * 4 + 2 to (i * 2 + 1) * 2.
24432
24433 2009-04-01 Jakub Jelinek <jakub@redhat.com>
24434
24435 PR c/37772
24436 * c-parser.c (c_parser_asm_statement): Skip until close paren and
24437 return if c_parser_asm_string_literal returned NULL.
24438
24439 2009-04-01 Nick Clifton <nickc@redhat.com>
24440
24441 * config/m32c/m32c.h (LIBGCC2_UNITS_PER_WORD): Define if not
24442 already defined.
24443 * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Add m32c-lib2-trapv.c.
24444 * config/m32c/m32c-lib2.c: Remove unused typedefs. Rename the
24445 other typedefs to avoid conflicts with libgcc2.c. Define labels
24446 to gain 16-bit bit-manipulation functions from libgcc2.c and then
24447 include it.
24448 * config/m32c/m32c-lib2-trapv.c: New file. Define labels
24449 to gain 16-bit trapping arithmetic functions from libgcc2.c and
24450 then include it.
24451
24452 2009-04-01 Rafael Avila de Espindola <espindola@google.com>
24453
24454 * varasm.c (default_function_rodata_section): Declare DOT as
24455 const char*.
24456
24457 2009-04-01 Kai Tietz <kai.tietz@onevision.com>
24458 Andrey Galkin <agalkin@hypercom.com>
24459
24460 PR/39492
24461 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
24462 Make object_name unique for each process.
24463
24464 2009-04-01 Jakub Jelinek <jakub@redhat.com>
24465
24466 PR other/39591
24467 * omp-low.c (remove_exit_barrier): Don't optimize if there are any
24468 addressable variables in the parallel that could go out of scope while
24469 running queued tasks.
24470
24471 2009-04-01 Anatoly Sokolov <aesok@post.ru>
24472
24473 * config/avr/avr.h (avr_case_values_threshold): Remove declaration.
24474 (CASE_VALUES_THRESHOLD): Redefine.
24475 * config/avr/avr.c (avr_override_options): Remove initialization of
24476 avr_case_values_threshold variable.
24477 (avr_case_values_threshold): Remove variable. Add new function.
24478 * config/avr/avr-protos.h (avr_case_values_threshold): Declare.
24479 * config/avr/avr.opt (mno-tablejump): Remove option.
24480 * doc/invoke.texi (AVR Options): Remove -mno-tablejump.
24481
24482 2009-04-01 DJ Delorie <dj@redhat.com>
24483
24484 * varasm.c (default_function_rodata_section): Don't assume
24485 anything about where the first '.' in the section name is.
24486
24487 2009-04-01 Alan Modra <amodra@bigpond.net.au>
24488
24489 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete redundant
24490 rs6000_emit_stack_tie.
24491
24492 2009-03-31 Ian Lance Taylor <iant@google.com>
24493
24494 * tree-eh.c (tree_remove_unreachable_handlers): Compare
24495 gimple_code with GIMPLE_RESX, not RESX.
24496
24497 2009-03-31 Joseph Myers <joseph@codesourcery.com>
24498
24499 * c-common.c (c_get_ident): New.
24500 (c_common_nodes_and_builtins): Call it for type names that may be NULL.
24501
24502 2009-04-01 Ben Elliston <bje@au.ibm.com>
24503
24504 * config/rs6000/sysv4.opt (msdata): Improve option description.
24505
24506 2009-03-31 Steve Ellcey <sje@cup.hp.com>
24507
24508 * config/ia64/ia64.md (divsf3_internal_lat): Remove.
24509 (divdf3_internal_lat): Remove.
24510 (divxf3_internal_lat): Remove.
24511 (divxf3_internal_thr): Remove.
24512 (divxf): Use divxf3_internal.
24513 * config/ia64/div.md (divsf3_internal_lat): New.
24514 (divdf3_internal_lat): New.
24515 (divxf3_internal): New.
24516
24517 2009-03-31 Joseph Myers <joseph@codesourcery.com>
24518
24519 PR c/448
24520 * Makefile.in (USE_GCC_STDINT): Define.
24521 (stmp-int-hdrs): Install stdint.h if applicable.
24522 * c-common.c (CHAR16_TYPE): Define in terms of UINT_LEAST16_TYPE
24523 if known.
24524 (CHAR32_TYPE): Define in terms of UINT_LEAST32_TYPE if known.
24525 (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE,
24526 UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
24527 INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
24528 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
24529 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
24530 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
24531 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
24532 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
24533 (c_common_nodes_and_builtins): Initialize
24534 underlying_wchar_type_node. Do not initialize
24535 signed_wchar_type_node or unsigned_wchar_type_node. Initialize
24536 nodes for new types.
24537 (c_stddef_cpp_builtins): Define macros for new types.
24538 * c-common.h (CTI_SIGNED_WCHAR_TYPE, CTI_UNSIGNED_WCHAR_TYPE):
24539 Remove.
24540 (CTI_UNDERLYING_WCHAR_TYPE, CTI_SIG_ATOMIC_TYPE, CTI_INT8_TYPE,
24541 CTI_INT16_TYPE, CTI_INT32_TYPE, CTI_INT64_TYPE, CTI_UINT8_TYPE,
24542 CTI_UINT16_TYPE, CTI_UINT32_TYPE, CTI_UINT64_TYPE,
24543 CTI_INT_LEAST8_TYPE, CTI_INT_LEAST16_TYPE, CTI_INT_LEAST32_TYPE,
24544 CTI_INT_LEAST64_TYPE, CTI_UINT_LEAST8_TYPE, CTI_UINT_LEAST16_TYPE,
24545 CTI_UINT_LEAST32_TYPE, CTI_UINT_LEAST64_TYPE, CTI_INT_FAST8_TYPE,
24546 CTI_INT_FAST16_TYPE, CTI_INT_FAST32_TYPE, CTI_INT_FAST64_TYPE,
24547 CTI_UINT_FAST8_TYPE, CTI_UINT_FAST16_TYPE, CTI_UINT_FAST32_TYPE,
24548 CTI_UINT_FAST64_TYPE, CTI_INTPTR_TYPE, CTI_UINTPTR_TYPE): Define.
24549 (signed_wchar_type_node, unsigned_wchar_type_node): Remove.
24550 (underlying_wchar_type_node, sig_atomic_type_node, int8_type_node,
24551 int16_type_node, int32_type_node, int64_type_node,
24552 uint8_type_node, uint16_type_node, c_uint32_type_node,
24553 c_uint64_type_node, int_least8_type_node, int_least16_type_node,
24554 int_least32_type_node, int_least64_type_node,
24555 uint_least8_type_node, uint_least16_type_node,
24556 uint_least32_type_node, uint_least64_type_node,
24557 int_fast8_type_node, int_fast16_type_node, int_fast32_type_node,
24558 int_fast64_type_node, uint_fast8_type_node, uint_fast16_type_node,
24559 uint_fast32_type_node, uint_fast64_type_node, intptr_type_node,
24560 uintptr_type_node): Define.
24561 * c-cppbuiltin.c (builtin_define_constants,
24562 builtin_define_type_minmax): New.
24563 (builtin_define_stdint_macros): Define more macros.
24564 (c_cpp_builtins): Define more limit macros.
24565 (type_suffix): New.
24566 (builtin_define_type_max): Define in terms of
24567 builtin_define_type_minmax. Remove is_long parameter. All
24568 callers changed.
24569 * config.gcc (use_gcc_stdint): Define.
24570 (tm_file): Add glibc-stdint.h for targets using glibc or uClibc.
24571 Add newlib-stdint.h for generic targets.
24572 * config/glibc-stdint.h, config/newlib-stdint.h,
24573 ginclude/stdint-gcc.h, ginclude/stdint-wrap.h: New.
24574 * config/m32c/m32c.h (UINTPTR_TYPE): Define.
24575 * config/score/score.h (UINTPTR_TYPE): Define.
24576 * config/sol2.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
24577 INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
24578 UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
24579 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
24580 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
24581 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
24582 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
24583 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
24584 * config/spu/spu.h (STDINT_LONG32): Define.
24585 * configure.ac (use_gcc_stdint): Substitute.
24586 * configure: Regenerate.
24587 * doc/cpp.texi (__SIG_ATOMIC_TYPE__, __INT8_TYPE__,
24588 __INT16_TYPE__, __INT32_TYPE__, __INT64_TYPE__, __UINT8_TYPE__,
24589 __UINT16_TYPE__, __UINT32_TYPE__, __UINT64_TYPE__,
24590 __INT_LEAST8_TYPE__, __INT_LEAST16_TYPE__, __INT_LEAST32_TYPE__,
24591 __INT_LEAST64_TYPE__, __UINT_LEAST8_TYPE__, __UINT_LEAST16_TYPE__,
24592 __UINT_LEAST32_TYPE_, __UINT_LEAST64_TYPE__, __INT_FAST8_TYPE__,
24593 __INT_FAST16_TYPE__, __INT_FAST32_TYPE__, __INT_FAST64_TYPE__,
24594 __UINT_FAST8_TYPE__, __UINT_FAST16_TYPE__, __UINT_FAST32_TYPE__,
24595 __UINT_FAST64_TYPE__, __INTPTR_TYPE__, __UINTPTR_TYPE__,
24596 __WINT_MAX__, __SIZE_MAX__, __PTRDIFF_MAX__, __UINTMAX_MAX__,
24597 __SIG_ATOMIC_MAX__, __INT8_MAX__, __INT16_MAX__, __INT32_MAX__,
24598 __INT64_MAX__, __UINT8_MAX__, __UINT16_MAX__, __UINT32_MAX__,
24599 __UINT64_MAX__, __INT_LEAST8_MAX__, __INT_LEAST16_MAX__,
24600 __INT_LEAST32_MAX__, __INT_LEAST64_MAX__, __UINT_LEAST8_MAX__,
24601 __UINT_LEAST16_MAX__, __UINT_LEAST32_MAX__, __UINT_LEAST64_MAX__,
24602 __INT_FAST8_MAX__, __INT_FAST16_MAX__, __INT_FAST32_MAX__,
24603 __INT_FAST64_MAX__, __UINT_FAST8_MAX__, __UINT_FAST16_MAX__,
24604 __UINT_FAST32_MAX__, __UINT_FAST64_MAX__, __INTPTR_MAX__,
24605 __UINTPTR_MAX__, __WCHAR_MIN__, __WINT_MIN__, __SIG_ATOMIC_MIN__,
24606 __INT8_C, __INT16_C, __INT32_C, __INT64_C, __UINT8_C, __UINT16_C,
24607 __UINT32_C, __UINT64_C, __INTMAX_C, __UINTMAX_C): Document.
24608 * doc/tm.texi (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE,
24609 INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
24610 INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
24611 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
24612 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
24613 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
24614 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
24615 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Document.
24616
24617 2009-03-31 Bernd Schmidt <bernd.schmidt@analog.com>
24618
24619 * loop-iv.c (suitable_set_for_replacement): Renamed from
24620 simplify_using_assignment; changed to return bool and to accept new
24621 args DEST and SRC. Return true iff we find a source/destination pair
24622 that can be used to make a replacement, and fill SRC and DEST if so.
24623 Remove arg ALTERED. Don't deal with altered regs here. All callers
24624 changed.
24625 (simplify_using_initial_values): Deal with altered regs here and track
24626 more precisely the effect they have on the validity of our expression.
24627
24628 * loop-iv.c (simplify_using_condition): A condition of the form
24629 (EQ REG CONST) can be used to simply make a substitution.
24630 (simplify_using_initial_values): Keep track of conditions we have seen
24631 and keep using them to simplify new expressions, while applying the
24632 same substitutions to them as to the expression.
24633
24634 * simplify-rtx.c (simplify_relational_operation_1): Simplify
24635 (LTU (PLUS a C) C) or (LTU (PLUS a C) a) to (GEU a -C); likewise with
24636 GEU/LTU reversed.
24637
24638 * loop-iv.c (determine_max_iter): New arg OLD_NITER. All callers
24639 changed. Use this when trying to improve the upper bound.
24640 Generate the comparison by using simplify_gen_relational.
24641
24642 * loop-iv.c (simple_rhs_p): Allow more kinds of expressions.
24643
24644 * loop-iv.c (replace_single_def_regs, replace_in_expr): New static
24645 functions.
24646 (simplify_using_assignment, simplify_using_initial_values): Call
24647 replace_in_expr to make replacements. Call replace_single_def_regs
24648 once on the initial version of the expression.
24649
24650 2009-03-31 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24651
24652 PR target/27237
24653 * doc/invoke.texi (ARM Options): Update documentation for -mthumb.
24654
24655 2009-03-31 Richard Guenther <rguenther@suse.de>
24656
24657 PR middle-end/31029
24658 * fold-const.c (fold_binary): Fold X +- Y CMP X to Y CMP 0 for
24659 equality comparisons. Fold C - X CMP X if C % 2 == 1.
24660
24661 2009-03-31 Richard Guenther <rguenther@suse.de>
24662
24663 * tree.h (div_if_zero_remainder): Declare.
24664 * fold-const.c (div_if_zero_remainder): Export.
24665 * tree-ssa-forwprop.c
24666 (forward_propagate_addr_into_variable_array_index): Handle
24667 constant array index addition outside of the variable index.
24668
24669 2009-03-31 Joseph Myers <joseph@codesourcery.com>
24670
24671 PR target/39592
24672 * config/i386/i386.md (*floatunssi<mode>2_1, two unnamed
24673 define_splits, floatunssi<mode>2): Require x87 conversions from
24674 DImode to be permitted.
24675
24676 2009-03-31 Joseph Myers <joseph@codesourcery.com>
24677
24678 PR preprocessor/15638
24679 * c-common.c (c_cpp_error): Handle CPP_DL_FATAL.
24680
24681 2009-03-31 Richard Guenther <rguenther@suse.de>
24682
24683 PR middle-end/23401
24684 PR middle-end/27810
24685 * tree.h (DECL_GIMPLE_FORMAL_TEMP_P): Remove.
24686 (struct tree_decl_with_vis): Remove gimple_formal_temp member.
24687 * tree-eh.c (lower_eh_constructs_2): Move LHS assignment to
24688 a separate statement.
24689 * gimplify.c (pop_gimplify_context): Remove formal temp handling.
24690 (lookup_tmp_var): Likewise.
24691 (is_gimple_formal_tmp_or_call_rhs): Remove.
24692 (is_gimple_reg_or_call_rhs): Rename to ...
24693 (is_gimple_reg_rhs_or_call): ... this.
24694 (is_gimple_mem_or_call_rhs): Rename to ...
24695 (is_gimple_mem_rhs_or_call): ... this.
24696 (internal_get_tmp_var): Use is_gimple_reg_rhs_or_call. Set
24697 DECL_GIMPLE_REG_P only if is_formal is true.
24698 (gimplify_compound_lval): Use is_gimple_reg. Remove workaround
24699 for non-proper post-modify expression gimplification.
24700 (gimplify_self_mod_expr): For post-modify expressions gimplify
24701 the lvalue to a minimal lvalue.
24702 (rhs_predicate_for): Remove formal temp case.
24703 (gimplify_modify_expr_rhs): Likewise.
24704 (gimplify_addr_expr): Use is_gimple_reg.
24705 (gimplify_expr): Remove formal temp cases.
24706 (gimple_regimplify_operands): Likewise.
24707 * tree-ssa-pre.c (get_or_alloc_expr_for): Treat EXC_PTR_EXPR
24708 and FILTER_EXPR like constants.
24709 * gimple.c (walk_gimple_op): Fix val_only initialization, use
24710 is_gimple_reg.
24711 (is_gimple_formal_tmp_rhs): Remove.
24712 (is_gimple_reg_rhs): Remove special casing.
24713 (is_gimple_mem_rhs): Fix.
24714 (is_gimple_reg): Move DECL_GIMPLE_REG_P handling earlier.
24715 (is_gimple_formal_tmp_var): Remove.
24716 (is_gimple_formal_tmp_reg): Likewise.
24717 (is_gimple_min_lval): Allow invariant component ref parts.
24718 * gimple.h (is_gimple_formal_tmp_rhs, is_gimple_formal_tmp_var,
24719 is_gimple_formal_tmp_reg): Remove declarations.
24720 * tree-cfg.c (verify_expr): Verify that variables with address
24721 taken do not have DECL_GIMPLE_REG_P set.
24722 * tree-mudflap.c (mf_build_check_statement_for): Use
24723 force_gimple_operand instead of gimplify_expr.
24724
24725 2009-03-31 Ayal Zaks <zaks@il.ibm.com>
24726
24727 * modulo-sched.c (sms_schedule_by_order): Pass the actual
24728 schedulable rows to compute_split_row.
24729
24730 2009-03-31 Ben Elliston <bje@au.ibm.com>
24731
24732 PR target/31635
24733 * config/rs6000/rs6000.c (rs6000_handle_option): Handle
24734 OPT_mvrsave.
24735
24736 2009-03-31 Alan Modra <amodra@bigpond.net.au>
24737
24738 * doc/invoke.texi (RS/6000 and PowerPC Options):Document mtls-markers.
24739 * configure.ac (HAVE_AS_TLS_MARKERS): New gas feature check.
24740 * configure: Regenerate.
24741 * config.in: Regenerate.
24742 * config/rs6000/rs6000.opt (mtls-markers): Add.
24743 * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Define.
24744 * config/rs6000/rs6000.md (tls_gd_aix, tls_gd_sysv): Add splitter.
24745 (tls_ld_aix, tls_ld_sysv): Likewise.
24746 (tls_gd, tls_gd_call_aix, tls_gd_call_sysv): New insns.
24747 (tls_ld, tls_ld_call_aix, tls_ld_call_sysv): Likewise.
24748
24749 2009-03-31 Alan Modra <amodra@bigpond.net.au>
24750
24751 * config/spu/spu.c (spu_expand_prologue): Delete redundant code.
24752
24753 2009-03-30 Jan Hubicka <jh@suse.cz>
24754
24755 * tree-eh.c (make_eh_edges): Set probability 100% to first edge
24756 out of RESX.
24757 (tree_remove_unreachable_handlers): Cleanup EH predecestor
24758 detection and label handling.
24759
24760 2009-03-30 Vladimir Makarov <vmakarov@redhat.com>
24761
24762 * ira-int.h (ira_allocno): Rename left_conflicts_num to
24763 left_conflicts_size.
24764 (ALLOCNO_LEFT_CONFLICTS_NUM): Rename to
24765 ALLOCNO_LEFT_CONFLICTS_SIZE.
24766
24767 * ira-color.c (allocno_spill_priority, push_allocno_to_stack,
24768 remove_allocno_from_bucket_and_push,
24769 allocno_spill_priority_compare, push_allocnos_to_stack,
24770 setup_allocno_available_regs_num): Use ALLOCNO_LEFT_CONFLICTS_SIZE
24771 instead of ALLOCNO_LEFT_CONFLICTS_NUM.
24772 (setup_allocno_left_conflicts_num): Ditto. Rename to
24773 setup_allocno_left_conflicts_size.
24774 (put_allocno_into_bucket): Use ALLOCNO_LEFT_CONFLICTS_SIZE
24775 instead of ALLOCNO_LEFT_CONFLICTS_NUM and
24776 setup_allocno_left_conflicts_size instead of
24777 setup_allocno_left_conflicts_num.
24778
24779 * ira-build.c (ira_create_allocno): Use
24780 ALLOCNO_LEFT_CONFLICTS_SIZE instead of
24781 ALLOCNO_LEFT_CONFLICTS_NUM.
24782
24783 2009-03-30 Vladimir Makarov <vmakarov@redhat.com>
24784
24785 * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
24786 instead of DF_LR_OUT.
24787
24788 * ira-lives.c (process_bb_node_lives): Ditto.
24789
24790 * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
24791 instead of DF_LR_{OUT,IN}.
24792
24793 * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
24794
24795 * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
24796
24797 2009-03-30 Jan Hubicka <jh@suse.cz>
24798
24799 * except.c (label_to_region_map): Fix thinko.
24800
24801 2009-03-30 Steve Ellcey <sje@cup.hp.com>
24802
24803 PR middle-end/38237
24804 * tree.h (tree_find_value): New declaration.
24805 * tree.c (tree_find_value): New function.
24806 * varasm.c (assemble_external): Avoid duplicate entries on lists.
24807
24808 2009-03-30 Jakub Jelinek <jakub@redhat.com>
24809
24810 PR debug/39563
24811 * c-decl.c (struct c_binding): Add locus field.
24812 (bind): Add locus argument, set locus field from it.
24813 (pop_scope): For b->nested VAR_DECL or FUNCTION_DECL,
24814 add a DECL_EXTERNAL copy of b->decl to current BLOCK_VARS.
24815 (push_file_scope, pushtag, pushdecl, pushdecl_top_level,
24816 implicitly_declare, undeclared_variable, lookup_label,
24817 declare_label, c_make_fname_decl, c_builtin_function,
24818 c_builtin_function_ext_scope, store_parm_decls_newstyle): Adjust
24819 bind callers.
24820
24821 2009-03-30 H.J. Lu <hongjiu.lu@intel.com>
24822
24823 PR target/38781
24824 * config/i386/i386.c (classify_argument): Check total size of
24825 structure.
24826
24827 2009-03-30 Martin Jambor <mjambor@suse.cz>
24828
24829 * ipa-prop.h (jump_func_type): Rename IPA_UNKNOWN, IPA_CONST,
24830 IPA_CONST_MEMBER_PTR, and IPA_PASS_THROUGH to IPA_JF_UNKNOWN,
24831 IPA_JF_CONST, IPA_JF_CONST_MEMBER_PTR, and IPA_JF_PASS_THROUGH
24832 respectively.
24833
24834 * tree-dfa.c (get_ref_base_and_extent): Return -1 maxsize if
24835 seen_variable_array_ref while also traversing a union.
24836
24837 * tree-inline.c (optimize_inline_calls): Do not call
24838 cgraph_node_remove_callees.
24839 * cgraphbuild.c (remove_cgraph_callee_edges): New function.
24840 (pass_remove_cgraph_callee_edges): New variable.
24841 * passes.c (init_optimization_passes): Add
24842 pass_remove_cgraph_callee_edges after early inlining and before all
24843 late intraprocedural passes.
24844
24845 * omp-low.c (expand_omp_taskreg): Always set current_function_decl.
24846
24847 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
24848
24849 * config/sparc/sparc.md (*nand<V64mode>_vis, *nand<V32mode>_vis):
24850 Fix typos in names.
24851
24852 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
24853
24854 * combine.c (simplify_comparison): Use have_insn_for.
24855 * dojump.c (do_jump): Likewise.
24856
24857 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
24858
24859 * config/sparc/sparc.c (sparc_compare_emitted): Remove.
24860 (gen_compare_reg, emit_v9_brxx_insn): Handle MODE_CC
24861 sparc_compare_op0 like sparc_compare_emitted used to be handled.
24862 (sparc_expand_compare_and_swap_12): Set sparc_compare_op0
24863 instead of sparc_compare_emitted.
24864 * config/sparc/sparc.h (sparc_compare_emitted): Remove.
24865 * config/sparc/sparc.md (stack_protect_test): Set sparc_compare_op0
24866 instead of sparc_compare_emitted.
24867
24868 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
24869
24870 * bb-reorder.c (partition_hot_cold_basic_blocks): Do not
24871 enter/exit cfglayout mode.
24872 (pass_partition_block): Require it.
24873 * combine.c (find_single_use, reg_dead_at_p): Use CFG.
24874 (combine_instructions): Track basic blocks instead of labels.
24875 (update_cfg_for_uncondjump): New.
24876 (try_combine): Use it. Update jumps after rescanning.
24877 (pass_combine): Require PROP_cfglayout.
24878 * passes.c (pass_outof_cfg_layout_mode): Move after regmove.
24879
24880 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
24881
24882 * cfglayout.c (pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode):
24883 Provide/destroy PROP_cfglayout respectively.
24884 * gcse.c (pass_jump_bypass, pass_gcse): Require it.
24885 * tree-pass.h (PROP_cfglayout): New.
24886
24887 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
24888
24889 * fold-const.c (const_binop, fold_convert_const_real_from_fixed,
24890 fold_convert_const_fixed_from_fixed,
24891 fold_convert_const_fixed_from_int,
24892 fold_convert_const_fixed_from_real, fold_negate_const): Do not
24893 set TREE_CONSTANT_OVERFLOW.
24894 * tree.def: Remove mention of TREE_CONSTANT_OVERFLOW.
24895 * tree.h (TREE_CONSTANT_OVERFLOW): Delete.
24896
24897 2009-03-30 Ira Rosen <irar@il.ibm.com>
24898
24899 * tree-vect-loop-manip.c: New file.
24900 * tree-vectorizer.c: Update documentation and included files.
24901 (vect_loop_location): Make extern.
24902 (rename_use_op): Move to tree-vect-loop-manip.c
24903 (rename_variables_in_bb, rename_variables_in_loop,
24904 slpeel_update_phis_for_duplicate_loop,
24905 slpeel_update_phi_nodes_for_guard1,
24906 slpeel_update_phi_nodes_for_guard2, slpeel_make_loop_iterate_ntimes,
24907 slpeel_tree_duplicate_loop_to_edge_cfg, slpeel_add_loop_guard,
24908 slpeel_can_duplicate_loop_p, slpeel_verify_cfg_after_peeling,
24909 set_prologue_iterations, slpeel_tree_peel_loop_to_edge,
24910 find_loop_location): Likewise.
24911 (new_stmt_vec_info): Move to tree-vect-stmts.c.
24912 (init_stmt_vec_info_vec, free_stmt_vec_info_vec, free_stmt_vec_info,
24913 get_vectype_for_scalar_type, vect_is_simple_use,
24914 supportable_widening_operation, supportable_narrowing_operation):
24915 Likewise.
24916 (bb_in_loop_p): Move to tree-vect-loop.c.
24917 (new_loop_vec_info, destroy_loop_vec_info,
24918 reduction_code_for_scalar_code, report_vect_op,
24919 vect_is_simple_reduction, vect_is_simple_iv_evolution): Likewise.
24920 (vect_can_force_dr_alignment_p): Move to tree-vect-data-refs.c.
24921 (vect_supportable_dr_alignment): Likewise.
24922 * tree-vectorizer.h (tree-data-ref.h): Include.
24923 (vect_loop_location): Declare.
24924 Reorganize function declarations according to the new file structure.
24925 * tree-vect-loop.c: New file.
24926 * tree-vect-analyze.c: Remove. Move functions to tree-vect-data-refs.c,
24927 tree-vect-stmts.c, tree-vect-slp.c, tree-vect-loop.c.
24928 * tree-vect-data-refs.c: New file.
24929 * tree-vect-patterns.c (timevar.h): Don't include.
24930 * tree-vect-stmts.c: New file.
24931 * tree-vect-transform.c: Remove. Move functions to tree-vect-stmts.c,
24932 tree-vect-slp.c, tree-vect-loop.c.
24933 * Makefile.in (OBJS-common): Remove tree-vect-analyze.o and
24934 tree-vect-transform.o. Add tree-vect-data-refs.o, tree-vect-stmts.o,
24935 tree-vect-loop.o, tree-vect-loop-manip.o, tree-vect-slp.o.
24936 (tree-vect-analyze.o): Remove.
24937 (tree-vect-transform.o): Likewise.
24938 (tree-vect-data-refs.o): Add rule.
24939 (tree-vect-stmts.o, tree-vect-loop.o, tree-vect-loop-manip.o,
24940 tree-vect-slp.o): Likewise.
24941 (tree-vect-patterns.o): Remove redundant dependencies.
24942 (tree-vectorizer.o): Likewise.
24943 * tree-vect-slp.c: New file.
24944
24945 2009-03-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24946
24947 * optc-gen.awk: Warn if an option flag has multiple different
24948 help strings.
24949
24950 2009-03-30 Sebastian Pop <sebastian.pop@amd.com>
24951
24952 * doc/invoke.texi (-floop-interchange, -floop-strip-mine,
24953 -floop-block): Document dependences on PPL, CLooG and Graphite.
24954
24955 2009-03-30 Joseph Myers <joseph@codesourcery.com>
24956
24957 PR rtl-optimization/323
24958 * c-common.c (c_fully_fold, convert_and_check,
24959 c_common_truthvalue_conversion): Handle EXCESS_PRECISION_EXPR.
24960 (c_fully_fold_internal): Disallow EXCESS_PRECISION_EXPR.
24961 * c-common.def (EXCESS_PRECISION_EXPR): New.
24962 * c-cppbuiltin.c (builtin_define_float_constants): Define
24963 constants with enough digits for long double.
24964 * c-lex.c (interpret_float): Interpret constant with excess
24965 precision where appropriate.
24966 * c-opts.c (c_common_post_options): Set
24967 flag_excess_precision_cmdline. Give an error for
24968 -fexcess-precision=standard for C++ for processors where the
24969 option is significant.
24970 * c-parser.c (c_parser_conditional_expression): Handle excess
24971 precision in condition.
24972 * c-typeck.c (convert_arguments): Handle arguments with excess
24973 precision.
24974 (build_unary_op): Move excess precision outside operation.
24975 (build_conditional_expr): Likewise.
24976 (build_compound_expr): Likewise.
24977 (build_c_cast): Do cast on operand of EXCESS_PRECISION_EXPR.
24978 (build_modify_expr): Handle excess precision in RHS.
24979 (convert_for_assignment): Handle excess precision in converted
24980 value.
24981 (digest_init, output_init_element, process_init_element): Handle
24982 excess precision in initializer.
24983 (c_finish_return): Handle excess precision in return value.
24984 (build_binary_op): Handle excess precision in operands and add
24985 excess precision as needed for operation.
24986 * common.opt (-fexcess-precision=): New option.
24987 * config/i386/i386.h (X87_ENABLE_ARITH, X87_ENABLE_FLOAT): New.
24988 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
24989 For standard excess precision, output explicit conversion to and
24990 truncation from XFmode.
24991 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1,
24992 *float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp,
24993 *float<SSEMODEI24:mode><X87MODEF:mode>2_i387, two unnamed
24994 define_splits, floatdi<X87MODEF:mode>2_i387_with_xmm, two unnamed
24995 define_splits, *floatunssi<mode>2_1, two unnamed define_splits,
24996 floatunssi<mode>2, add<mode>3, sub<mode>3, mul<mode>3, divdf3,
24997 divsf3, *fop_<mode>_comm_i387, *fop_<mode>_1_i387,
24998 *fop_<MODEF:mode>_2_i387, *fop_<MODEF:mode>_3_i387,
24999 *fop_df_4_i387, *fop_df_5_i387, *fop_df_6_i387, two unnamed
25000 define_splits, sqrt<mode>2): Disable where appropriate for
25001 standard excess precision.
25002 * convert.c (convert_to_real): Do not shorten arithmetic to type
25003 for which excess precision would be used.
25004 * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Define.
25005 * doc/invoke.texi (-fexcess-precision=): Document option.
25006 (-mfpmath=): Correct index entry.
25007 * flags.h (enum excess_precision, flag_excess_precision_cmdline,
25008 flag_excess_precision): New.
25009 * langhooks.c (lhd_post_options): Set
25010 flag_excess_precision_cmdline.
25011 * opts.c (common_handle_option): Handle -fexcess-precision=.
25012 * toplev.c (flag_excess_precision_cmdline, flag_excess_precision,
25013 init_excess_precision): New.
25014 (lang_dependent_init_target): Call init_excess_precision.
25015 * tree.c (excess_precision_type): New.
25016 * tree.h (excess_precision_type): Declare.
25017
25018 2009-03-30 Joseph Myers <joseph@codesourcery.com>
25019
25020 PR c/35235
25021 * c-typeck.c (build_component_ref): Do not copy qualifiers from
25022 non-lvalue to component.
25023
25024 2009-03-29 Joseph Myers <joseph@codesourcery.com>
25025
25026 PR preprocessor/34695
25027 * Makefile.in (c-opts.o): Depend on c-tree.h.
25028 * c-common.c: Move down include of diagnostic.h.
25029 (done_lexing, c_cpp_error): New.
25030 * c-common.h (done_lexing): Declare.
25031 * c-decl.c (c_write_global_declarations): Don't check cpp_errors
25032 (parse_in).
25033 * c-opts.c: Include c-tree.h.
25034 (c_common_init_options): Set preprocessor error callback.
25035 (c_common_handle_option): Do not set preprocessor
25036 inhibit_warnings, warnings_are_errors, warn_system_headers,
25037 pedantic_errors or inhibit_warnings flags.
25038 (c_common_post_options): Do not check cpp_errors (parse_in).
25039 (c_common_finish): Do not output dependencies if there were
25040 errors. Do not check return value of cpp_finish.
25041 * c-ppoutput.c (pp_file_change): Set input_location.
25042 * c-tree.h (c_cpp_error): Declare.
25043 * diagnostic.c (diagnostic_set_info_translated): Also initialize
25044 override_column.
25045 (diagnostic_build_prefix): Check override_column.
25046 * diagnostic.h (diagnostic_info): Add override_column field.
25047 (diagnostic_override_column): Define.
25048
25049 2009-03-28 Paolo Bonzini <bonzini@gnu.org>
25050
25051 * c-common.c (c_expand_expr, c_staticp): Remove.
25052 * c-common.def (COMPOUND_LITERAL_EXPR): Delete.
25053 * c-common.h (emit_local_var, c_staticp, COMPOUND_LITERAL_EXPR_DECL,
25054 COMPOUND_LITERAL_EXPR_DECL_EXPR): Remove.
25055 * c-gimplify.c (gimplify_compound_literal_expr,
25056 optimize_compound_literals_in_ctor): Remove.
25057 (c_gimplify_expr): Remove COMPOUND_LITERAL_EXPR handling.
25058 * c-objc-common.h (LANG_HOOKS_STATICP): Remove.
25059 * c-semantics.c (emit_local_var): Remove.
25060
25061 * langhooks-def.h (lhd_expand_expr): Remove.
25062 * langhooks.c (lhd_expand_expr): Remove.
25063 * langhooks.h (LANG_HOOKS_DEF): Remove LANG_HOOKS_EXPAND_EXPR.
25064
25065 * expr.c (expand_expr_real_1): Move COMPOUND_LITERAL_EXPR
25066 handling from c-semantics.c; don't call into langhook.
25067 (expand_expr_addr_expr_1): Check that we don't get non-GENERIC trees.
25068 * gimplify.c (gimplify_compound_literal_expr,
25069 optimize_compound_literals_in_ctor): Move from c-gimplify.c.
25070 (gimplify_init_constructor): Call optimize_compound_literals_in_ctor.
25071 (gimplify_modify_expr_rhs, gimplify_expr): Handle COMPOUND_LITERAL_EXPR
25072 as was done in c-gimplify.c.
25073 * tree.c (staticp): Move COMPOUND_LITERAL_EXPR handling from c_staticp.
25074 * tree.h (COMPOUND_LITERAL_EXPR_DECL, COMPOUND_LITERAL_EXPR_DECL_EXPR):
25075 Move from c-common.h.
25076 * tree.def (COMPOUND_LITERAL_EXPR): Move from c-common.def.
25077
25078 * tree.c (staticp): Do not call langhook.
25079 * langhooks.c (lhd_staticp): Delete.
25080 * langhooks-def.h (lhd_staticp): Delete prototype.
25081 (LANG_HOOKS_STATICP): Delete.
25082 (LANG_HOOKS_INITIALIZER): Delete LANG_HOOKS_STATICP.
25083
25084 * doc/c-tree.texi (Expression nodes): Refer to DECL_EXPRs
25085 instead of DECL_STMTs.
25086
25087 2009-03-29 Joseph Myers <joseph@codesourcery.com>
25088
25089 PR c/456
25090 PR c/5675
25091 PR c/19976
25092 PR c/29116
25093 PR c/31871
25094 PR c/35198
25095 * builtins.c (fold_builtin_sincos): Build COMPOUND_EXPR in
25096 void_type_node.
25097 (fold_call_expr): Return a NOP_EXPR from folding rather than the
25098 contained expression.
25099 * c-common.c (c_fully_fold, c_fully_fold_internal, c_save_expr): New.
25100 (c_common_truthvalue_conversion): Use c_save_expr. Do not fold
25101 conditional expressions for C.
25102 (decl_constant_value_for_optimization): Move from
25103 decl_constant_value_for_broken_optimization in c-typeck.c. Check
25104 whether optimizing and that the expression is a VAR_DECL not of
25105 array type instead of doing such checks in the caller. Do not
25106 check pedantic. Call gcc_unreachable for C++.
25107 * c-common.def (C_MAYBE_CONST_EXPR): New.
25108 * c-common.h (c_fully_fold, c_save_expr,
25109 decl_constant_value_for_optimization): New prototypes.
25110 (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
25111 C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
25112 EXPR_INT_CONST_OPERANDS): Define.
25113 * c-convert.c (convert): Strip nops from expression.
25114 * c-decl.c (groktypename): Take extra parameters expr and
25115 expr_const_operands. Update call to grokdeclarator.
25116 (start_decl): Update call to grokdeclarator. Add statement for
25117 expressions used in type of decl.
25118 (grokparm): Update call to grokdeclarator.
25119 (push_parm_decl): Update call to grokdeclarator.
25120 (build_compound_literal): Add parameter non_const and build a
25121 C_MAYBE_COSNT_EXPR if applicable.
25122 (grokdeclarator): Take extra parameters expr and
25123 expr_const_operands. Track expressions used in declaration
25124 specifiers and declarators. Fold array sizes and track whether
25125 they are constant expressions and whether they are integer
25126 constant expressions.
25127 (parser_xref_tag): Set expr and expr_const_operands fields in
25128 return value.
25129 (grokfield): Update call to grokdeclarator.
25130 (start_function): Update call to grokdeclarator.
25131 (build_null_declspecs): Set expr and expr_const_operands fields in
25132 return value.
25133 (declspecs_add_type): Handle expressions in typeof specifiers.
25134 * c-parser.c (c_parser_declspecs): Set expr and
25135 expr_const_operands fields for declaration specifiers.
25136 (c_parser_enum_specifier): Likewise.
25137 (c_parser_struct_or_union_specifier): Likewise.
25138 (c_parser_typeof_specifier): Likewise. Update call to
25139 groktypename. Fold expression as needed. Return expressions with
25140 type instead of adding statements.
25141 (c_parser_attributes): Update calls to c_parser_expr_list.
25142 (c_parser_statement_after_labels): Fold expression before passing
25143 to objc_build_throw_stmt.
25144 (c_parser_condition): Fold expression.
25145 (c_parser_asm_operands): Fold expression.
25146 (c_parser_conditional_expression): Use c_save_expr. Update call
25147 to build_conditional_expr.
25148 (c_parser_alignof_expression): Update call to groktypename.
25149 (c_parser_postfix_expression): Preserve C_MAYBE_CONST_EXPR as
25150 original_code. Fold expression argument of va_arg. Create
25151 C_MAYBE_CONST_EXPR to preserve side effects of expressions in type
25152 argument to va_arg. Update calls to groktypename. Fold array
25153 index for offsetof. Verify that first argument to
25154 __builtin_choose_expr has integer type.
25155 (c_parser_postfix_expression_after_paren_type): Update calls to
25156 groktypename and build_compound_literal. Handle expressions with
25157 side effects in type name.
25158 (c_parser_postfix_expression_after_primary): Update call to
25159 c_parser_expr_list. Set original_code for calls to
25160 __builtin_constant_p.
25161 (c_parser_expr_list): Take extra parameter fold_p. Fold
25162 expressions if requested.
25163 (c_parser_objc_type_name): Update call to groktypename.
25164 (c_parser_objc_synchronized_statement): Fold expression.
25165 (c_parser_objc_receiver): Fold expression.
25166 (c_parser_objc_keywordexpr): Update call to c_parser_expr_list.
25167 (c_parser_omp_clause_num_threads, c_parser_omp_clause_schedule,
25168 c_parser_omp_atomic, c_parser_omp_for_loop): Fold expressions.
25169 * c-tree.h (CONSTRUCTOR_NON_CONST): Define.
25170 (struct c_typespec): Add elements expr and expr_const_operands.
25171 (struct c_declspecs): Add elements expr and expr_const_operands.
25172 (groktypename, build_conditional_expr, build_compound_literal):
25173 Update prototypes.
25174 (in_late_binary_op): Declare.
25175 * c-typeck.c (note_integer_operands): New function.
25176 (in_late_binary_op): New variable.
25177 (decl_constant_value_for_broken_optimization): Move to c-common.c
25178 and rename to decl_constant_value_for_optimization.
25179 (default_function_array_conversion): Do not strip nops.
25180 (default_conversion): Do not call
25181 decl_constant_value_for_broken_optimization.
25182 (build_array_ref): Do not fold result.
25183 (c_expr_sizeof_expr): Fold operand. Use C_MAYBE_CONST_EXPR for
25184 result when operand is a VLA.
25185 (c_expr_sizeof_type): Update call to groktypename. Handle
25186 expressions included in type name. Use C_MAYBE_CONST_EXPR for
25187 result when operand names a VLA type.
25188 (build_function_call): Update call to build_compound_literal.
25189 Only fold result for calls to __builtin_* functions. Strip
25190 NOP_EXPR from INTEGER_CST returned from such functions. Fold
25191 the function designator.
25192 (convert_arguments): Fold arguments. Update call to
25193 convert_for_assignment.
25194 (build_unary_op): Handle increment and decrement of
25195 C_MAYBE_CONST_EXPR. Move lvalue checks for increment and
25196 decrement earlier. Fold operand of increment and decrement.
25197 Handle address of C_MAYBE_CONST_EXPR. Only fold expression being
25198 built for integer operand. Wrap returns that are INTEGER_CSTs
25199 without being integer constant expressions or that have integer
25200 constant operands without being INTEGER_CSTs.
25201 (lvalue_p): Handle C_MAYBE_CONST_EXPR.
25202 (build_conditional_expr): Add operand ifexp_bcp. Track whether
25203 result is an integer constant expression or can be used in
25204 unevaluated parts of one and avoid folding and wrap as
25205 appropriate. Fold operands before possibly doing -Wsign-compare
25206 warnings.
25207 (build_compound_expr): Wrap result for C99 if operands can be used
25208 in integer constant expressions.
25209 (build_c_cast): Update call to digest_init. Do not ignore
25210 overflow from casting floating-point constants to integers. Wrap
25211 results that could be confused with integer constant expressions,
25212 null pointer constants or floating-point constants.
25213 (c_cast_expr): Update call to groktypename. Handle expressions
25214 included in type name.
25215 (build_modify_expr): Handle modifying a C_MAYBE_CONST_EXPR. Fold
25216 lhs inside possible SAVE_EXPR. Fold RHS before assignment.
25217 Update calls to convert_for_assignment.
25218 (convert_for_assignment): Take new parameter
25219 null_pointer_constant. Do not strip nops or call
25220 decl_constant_value_for_broken_optimization. Set
25221 in_late_binary_op for conversions to boolean.
25222 (store_init_value): Update call to digest_init.
25223 (digest_init): Take new parameter null_pointer_constant. Do not
25224 call decl_constant_value_for_broken_optimization. pedwarn for
25225 initializers not constant expressions. Update calls to
25226 convert_for_assignment.
25227 (constructor_nonconst): New.
25228 (struct constructor_stack): Add nonconst element.
25229 (really_start_incremental_init, push_init_level, pop_init_level):
25230 Handle constructor_nonconst and nonconst element.
25231 (set_init_index): Call constant_expression_warning for array
25232 designators.
25233 (output_init_element): Fold value. Set constructor_nonconst as
25234 applicable. pedwarn for initializers not constant expressions.
25235 Update call to digest_init. Call constant_expression_warning
25236 where constant initializers are required.
25237 (process_init_element): Use c_save_expr.
25238 (c_finish_goto_ptr): Fold expression.
25239 (c_finish_return): Fold return value. Update call to
25240 convert_for_assignment.
25241 (c_start_case): Fold switch expression.
25242 (c_process_expr_stmt): Fold expression.
25243 (c_finish_stmt_expr): Create C_MAYBE_CONST_EXPR as needed to
25244 ensure statement expression is not evaluated in constant expression.
25245 (build_binary_op): Track whether results are integer constant
25246 expressions or may occur in such, disable folding and wrap results
25247 as applicable. Fold operands for -Wsign-compare warnings unless
25248 in_late_binary_op.
25249 (c_objc_common_truthvalue_conversion): Handle results folded to
25250 integer constants that are not integer constant expressions.
25251 * doc/extend.texi: Document when typeof operands are evaluated,
25252 that condition of __builtin_choose_expr is an integer constant
25253 expression, and more about use of __builtin_constant_p in
25254 initializers.
25255
25256 2009-03-29 Richard Guenther <rguenther@suse.de>
25257
25258 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
25259 propagate addresses of array references.
25260
25261 2009-03-29 Steven Bosscher <steven@gcc.gnu.org>
25262
25263 * regmove.c (perhaps_ends_bb_p): Remove.
25264 (optimize_reg_copy_1): Don't call perhaps_ends_bb_p. Get basic block
25265 from INSN and check that the main loop stays within that basic block.
25266 (optimize_reg_copy_1, optimize_reg_copy_3, fixup_match_2): Likewise.
25267 (regmove_forward_pass): Split out from regmove_optimize. Use
25268 FOR_EACH_BB and FOR_BB_INSNS instead of traversing the insns stream.
25269 (regmove_backward_pass): Split out from regmove_optimize. Use
25270 FOR_EACH_BB_REVERSE and FOR_BB_INSNS_REVERS_SAFE.
25271 (regmove_optimize): Simplify.
25272
25273 2009-03-29 H.J. Lu <hongjiu.lu@intel.com>
25274
25275 PR target/39545
25276 * config/i386/i386.c (classify_argument): Ignore flexible array
25277 member in struct and warn ABI change.
25278
25279 2009-03-29 H.J. Lu <hongjiu.lu@intel.com>
25280
25281 * config/i386/i386-protos.h (ix86_agi_dependent): New.
25282
25283 * config/i386/i386.c (ix86_agi_dependent): Rewrite.
25284 (ix86_adjust_cost): Updated.
25285
25286 2009-03-29 Jan Hubicka <jh@suse.cz>
25287
25288 PR middle-end/28850
25289 * tree-pass.h (pass_cleanup_eh): New function.
25290 (remove_unreachable_regions): Break code handling RTL
25291 to rtl_remove_unreachable_regions; remove ERT_MUST_NOT_THROW
25292 that can not be reached by runtime.
25293 (can_be_reached_by_runtime): New function.
25294 (label_to_region_map): New function.
25295 (num_eh_regions): New function.
25296 (rtl_remove_unreachable_regions): New function.
25297 (convert_from_eh_region_ranges): Call rtl_remove_unreachable_regions.
25298 (remove_eh_region): New function.
25299 * except.h: Include sbitmap and vecprim.
25300 (remove_eh_region, remove_unreachable_regions, label_to_region_map,
25301 num_eh_regions): Declare.
25302 * passes.c (init_optimization_passes): Schedule cleanup_eh.
25303 * Makefile.in (EXCEPT_H): New; replace all uses of except.h by it.
25304 * tree-eh.c (tree_remove_unreachable_handlers): New function.
25305 (tree_empty_eh_handler_p): New function.
25306 (cleanup_empty_eh): New function.
25307 (cleanup_eh): New function.
25308 (pass_cleanup_eh): New function.
25309
25310 2009-03-29 Jan Hubicka <jh@suse.cz>
25311
25312 * except.c (verify_eh_tree): Fix handling of fun!=cfun; be ready
25313 for removed regions.
25314
25315 2009-03-29 Jan Hubicka <jh@suse.cz>
25316
25317 * except.c (dump_eh_tree): Dump all datastructures.
25318
25319 2009-03-29 Jan Hubicka <jh@suse.cz>
25320
25321 * except.c (duplicate_eh_regions_0): Handle AKA bitmap.
25322 (duplicate_eh_regions_1): Likewise.
25323 (duplicate_eh_regions): Likewise; cleanup code gorwing the region
25324 vector; call EH verification.
25325 (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
25326 Be ready for region being removed.
25327
25328 2009-03-29 Jan Hubicka <jh@suse.cz>
25329
25330 * bitmap.c (bitmap_last_set_bit): New function.
25331 * bitmap.h (bitmap_last_set_bit): Declare.
25332
25333 2009-03-29 David Ayers <ayers@fsfe.org>
25334
25335 PR objc/27377
25336 * c-typeck.c (build_conditional_expr): Emit ObjC warnings
25337 by calling objc_compare_types and surpress warnings about
25338 incompatible C pointers that are compatible ObjC pointers.
25339
25340 2009-03-29 Adam Nemet <anemet@caviumnetworks.com>
25341
25342 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Don't
25343 call initialize_inline_failed.
25344 (initialize_inline_failed): Move it from here ...
25345 * cgraph.c (initialize_inline_failed): ... to here.
25346 (cgraph_create_edge): Call initialize_inline_failed rather than
25347 setting inline_failed directly.
25348
25349 2009-03-29 Ben Elliston <bje@au.ibm.com>
25350
25351 PR target/32542
25352 * sysv4.opt (msdata): Improve comment.
25353 * linux64.h (ASM_SPEC32): Do not pass -memb when -msdata is given.
25354 * sysv4.h (SVR4_ASM_SPEC): Likewise.
25355
25356 2009-03-29 Ben Elliston <bje@au.ibm.com>
25357
25358 PR target/30451
25359 * config/rs6000/rs6000.md (*movti_ppc64): Correct the order of
25360 load and store attributes.
25361
25362 2009-03-29 Ben Elliston <bje@au.ibm.com>
25363
25364 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_HUGE_VALQ.
25365 (ix86_init_builtins): Add built-in function __builtin_huge_valq.
25366 (ix86_expand_builtin): Handle IX86_BUILTIN_HUGE_VALQ.
25367 * doc/extend.texi (X86 Built-in Functions): Add index entries for
25368 __builtin_infq and __builtin_huge_valq.
25369
25370 2009-03-28 Anatoly Sokolov <aesok@post.ru>
25371
25372 * config/avr/avr.c (avr_mcu_t): Add atmega8c1, atmega16c1 and
25373 atmega8m1 devices.
25374 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
25375 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.)
25376
25377 2009-03-28 Xinliang David Li <davidxl@google.com>
25378
25379 * tree-ssa-ccp.c (ccp_finalize): Add dbg_count support.
25380 (do_dbg_cnt): New function.
25381
25382 2009-03-28 Jan Hubicka <jh@suse.cz>
25383
25384 Merge from pretty-ipa:
25385
25386 2009-03-27 Jan Hubicka <jh@suse.cz>
25387
25388 * cgraph.c (dump_cgraph_node): Add replace output flag by process.
25389 * tree-pass.h (function_called_by_processed_nodes_p): Declare.
25390 * passes.c (function_called_by_processed_nodes_p): New.
25391 * ipa-pure-const.c (check_call): Fix handling of operands.
25392 (analyze_function): Dump debug output for skipped bodies.
25393 (local_pure_const): Use function_called_by_processed_nodes_p.
25394 * dwarf2out.c (reference_to_unused): Use output.
25395 * passes.c (do_per_function_toporder): Likewise.
25396
25397 2008-11-12 Jan Hubicka <jh@suse.cz>
25398
25399 * tree-pass.h (pass_fixup_cfg, pass_local_pure_const): Declare.
25400 * ipa-pure-const.c (funct_state_d): Add can throw field; make
25401 state_set_in_source enum
25402 (check_decl): Ignore memory tags; do not set fake looping flags;
25403 dump diagnostics.
25404 (check_operand, check_tree, check_rhs_var, check_lhs_var,
25405 get_asm_expr_operands, scan_function_op, scan_function_stmt): Remove.
25406 (check_call, analyze_function): Rewrite.
25407 (check_stmt): New.
25408 (add_new_function): Update call of analyze_function.
25409 (generate_summary): Add call of analyze_function.
25410 (propagate): Propagate can_throw; handle state_set_in_source correctly.
25411 (local_pure_const): New function.
25412 (pass_local_pure_const): New pass.
25413 * ipa-inline.c (inline_transform): Set after_inlining.
25414 * tree-eh.c (stmt_can_throw_external): New.
25415 * tree-optimize.c (execute_fixup_cfg): Do not set after_inlining;
25416 work with aliasing built.
25417 * tree-flow.h (stmt_can_throw_external): New.
25418 * passes.c (init_optimization_passes): Schedule fixup_cfg pass early;
25419 and local pure/const pass in early and late optimization queue.
25420
25421 2009-03-28 Martin Jambor <mjambor@suse.cz>
25422
25423 * fold-const.c (get_pointer_modulus_and_residue): New parameter
25424 allow_func_align.
25425 (fold_binary): Allow function decl aligment consideration is the
25426 second argument is integer constant one.
25427 * tree-ssa-forwprop.c (simplify_bitwise_and): New function.
25428 (tree_ssa_forward_propagate_single_use_vars): Handle assing statements
25429 with BIT_AND_EXPR on the RHS by calling simplify_bitwise_and.
25430
25431 2009-03-28 Jan Hubicka <jh@suse.cz>
25432
25433 * dwarf2out.c (dwarf2out_begin_prologue): Use crtl->nothrow
25434 * tree-eh.c (stmt_could_throw_p): Remove check for WEAK decls.
25435 * function.h (rtl_data): Add nothrow flag.
25436 * except.c (set_nothrow_function_flags): Use crtl->nothrow;
25437 set DECL_NOTHROW for AVAILABLE functions.
25438
25439 2009-03-28 Jakub Jelinek <jakub@redhat.com>
25440
25441 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If macro
25442 following vector keyword has expansion starting with pixel or bool
25443 keyword, expand vector to __vector and pixel or bool to __pixel or
25444 __bool.
25445
25446 PR c++/39554
25447 * opts.c (warning_disallowed_functions, warn_disallowed_functions,
25448 warn_if_disallowed_function_p): Removed.
25449 (common_handle_option): Don't handle OPT_Wdisallowed_function_list_.
25450 * c-parser.c (c_parser_postfix_expression_after_primary): Don't call
25451 warning_if_disallowed_function_p.
25452 * flags.h (warn_if_disallowed_function_p,
25453 warn_disallowed_functions): Removed.
25454 * common.opt (Wdisallowed-function-list=): Removed.
25455 * doc/invoke.texi (-Wdisallowed-function-list=): Removed.
25456
25457 2009-03-28 Richard Guenther <rguenther@suse.de>
25458
25459 PR tree-optimization/38723
25460 * tree-ssa-pre.c (compute_avail): Add all default definitions to
25461 the entry block.
25462
25463 2009-03-28 Jan Hubicka <jh@suse.cz>
25464
25465 * tree-ssa-structalias.c (ipa_pta_execute): Fix bogus node->analyzed
25466 test introduced by my previous patch.
25467
25468 2009-03-28 Richard Guenther <rguenther@suse.de>
25469
25470 * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not leave
25471 the PHIs value undefined.
25472
25473 2009-03-28 Jan Hubicka <jh@suse.cz>
25474
25475 * tree-pass.h (pass_fixup_cfg): New pass.
25476 * ipa-inline.c (inline_transform): Set
25477 always_inline_functions_inlined/after_inlining.
25478 * tree-optimize.c (execute_fixup_cfg): Do not set them here.
25479 (pass_fixup_cfg): New pass.
25480 * passes.c (init_optimization_passes): Add fixup_cfg.
25481
25482 2009-03-28 Richard Guenther <rguenther@suse.de>
25483
25484 PR tree-optimization/38458
25485 * tree-ssa-copy.c (copy_prop_visit_phi_node): For the first
25486 argument use the arguments copy-of value.
25487
25488 2009-03-28 Richard Guenther <rguenther@suse.de>
25489
25490 PR tree-optimization/38180
25491 * tree-ssa-ccp.c (get_default_value): Simplify.
25492 (likely_value): Likewise.
25493 (surely_varying_stmt_p): Properly handle VOP case.
25494 (ccp_initialize): Likewise.
25495 (ccp_fold): Handle propagating through *&.
25496 (fold_const_aggregate_ref): Also handle decls.
25497
25498 2009-03-28 Jan Hubicka <jh@suse.cz>
25499
25500 * cgraph.c (dump_cgraph_node): Add replace output flag by process.
25501 * cgraph.h (cgraph_node): Likewise.
25502 * cgraphunit.c (cgraph_process_new_functions): Set process flag.
25503 (cgraph_reset_node): Use process flag.
25504 (cgraph_mark_functions_to_output): Likewise.
25505 (cgraph_expand_function): Likewise.
25506 (cgraph_expand_all_functions): Likewise.
25507 (cgraph_output_in_order): Likewise.
25508 * dwarf2out.c (reference_to_unused): Likewise.
25509 * passes.c do_per_function_toporder): Likewise.
25510
25511 2009-03-28 Jan Hubicka <jh@suse.cz>
25512
25513 Bring from lto-branch:
25514
25515 2008-09-03 Doug Kwan <dougkwan@google.com>
25516
25517 * cgraphbuild.c (initialize_inline_failed): Use cgraph_inline_failed_t
25518 enums instead of reason strings.
25519 * cgraph.c (cgraph_create_edge): Same.
25520 (cgraph_inline_failed_string): New function.
25521 * cgraph.h (cgraph_inline_failed_t): New enum type.
25522 (cgraph_inline_failed_string): New prototype.
25523 (struct cgraph_edge): Change type of INLINED_FAILED from constant
25524 char pointer to cgraph_inline_failed_t.
25525 (cgraph_inline_p): Adjust prototype to use cgraph_inline_failed_t.
25526 (cgraph_default_inline_p): Ditto.
25527 * cgraphunit.c (cgraph_inline_p): Change type of parameter REASON
25528 to cgraph_inline_failed_t pointer.
25529 * cif-code.def: New file.
25530 * ipa-inline.c (cgraph_mark_inline_edge): Use an enum instead of a
25531 reason string.
25532 (cgraph_check_inline_limits): Change type of REASON to pointer to
25533 cgraph_inline_failed_t. Replace reason strings with enums.
25534 (cgraph_default_inline_p): Ditto.
25535 (cgraph_recursive_inlining_p): Ditto.
25536 (update_caller_keys): Change type of FAILED_REASON to
25537 cgraph_inline_failed_t.
25538 (cgraph_set_inline_failed): Change type of REASON to pointer to
25539 cgraph_inline_failed_t. Call cgraph_inline_failed_string to
25540 convert enums to strings for text output.
25541 (cgraph_decide_inlining_of_small_function): Change FAILED_REASON
25542 to be of type cgraph_inline_failed_t. Replace reason strings with
25543 enums. Call cgraph_inline_failed_string to covert enums
25544 to strings for text output.
25545 (cgraph_decide_inlining): Replace reason strings with enums.
25546 (cgraph_decide_inlining_incrementally): Change type of FAILED_REASON
25547 to cgraph_inline_failed_t type. Call cgraph_inline_failed_string
25548 for text output.
25549 * tree-inline.c (expand_call_inline): Change type of REASON
25550 to cgraph_inline_failed_t. Replace reason strings with enums.
25551 Call cgraph_inline_failed_string for text output.
25552 * Makefile.in (CGRAPH_H): Add cif-code.def to dependencies.
25553 (cgraph.o): Ditto.
25554
25555 2009-03-28 Jan Hubicka <jh@suse.cz>
25556
25557 * cgraph.c (cgraph_node, cgraph_remove_node, dump_cgraph_node,
25558 cgraph_clone_node): Remove master clone handling.
25559 (cgraph_is_master_clone, cgraph_master_clone): Remove.
25560 * cgraph.h (master_clone): Remove.
25561 (cgraph_is_master_clone, cgraph_master_clone): Remove.
25562 * ipa-type-escape.c (type_escape_execute): Remove use of master clone.
25563 (tree-ssa-structalias.c (ipa_pta_execute): Likewise.
25564
25565 2009-03-28 Jan Hubicka <jh@suse.cz>
25566
25567 * cgraph.c (cgraph_function_body_availability): Functions declared
25568 inline are always safe to assume that it is not going to be replaced.
25569
25570 2009-03-28 Richard Guenther <rguenther@suse.de>
25571
25572 PR tree-optimization/38513
25573 * tree-ssa-pre.c (eliminate): Remove redundant stores.
25574 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
25575 EXC_PTR_EXPR and FILTER_EXPR.
25576 (get_ref_from_reference_ops): Likewise.
25577
25578 2009-03-28 Richard Guenther <rguenther@suse.de>
25579
25580 PR tree-optimization/38968
25581 * tree-vect-analyze.c (vect_compute_data_ref_alignment):
25582 Use FLOOR_MOD_EXPR to compute misalignment.
25583
25584 2009-03-28 Richard Guenther <rguenther@suse.de>
25585
25586 PR tree-optimization/37795
25587 * tree.h (combine_comparisons): Declare.
25588 * fold-const.c (combine_comparisons): Export.
25589 * tree-ssa-ifcombine.c (ifcombine_ifandif): Optimize two successive
25590 comparisons.
25591 (ifcombine_iforif): Use combine_comparisons.
25592
25593 2009-03-28 Jan Hubicka <jh@suse.cz>
25594
25595 * tree-eh.c (inlinable_call_p): New function.
25596 (make_eh_edges): Use it.
25597 (verify_eh_edges): Use it.
25598 (stmt_can_throw_external, stmt_can_throw_internal): Use it.
25599 * except.c (reachable_next_level): Add inlinable_function argument
25600 (sjlj_find_directly_reachable_regions): Update.
25601 (add_reachable_handler): Do not set saw_any_handlers.
25602 (reachable_next_level): Handle MUST_NOT_THROW more curefully.
25603 (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
25604 Add new inlinable call parameter.
25605 (can_throw_internal, can_throw_external): Update.
25606 * except.h (can_throw_internal_1, can_throw_external_1,
25607 foreach_reachable_handler): Update declaration.
25608
25609 2009-03-28 Joseph Myers <joseph@codesourcery.com>
25610
25611 * config/arm/t-arm-coff, config/h8300/coff.h,
25612 config/i386/i386-aout.h, config/i386/i386-coff.h,
25613 config/libgloss.h, config/m68k/coff.h, config/m68k/m68k-aout.h,
25614 config/pdp11/2bsd.h, config/rs6000/aix41.h,
25615 config/rs6000/aix41.opt, config/rs6000/t-newas, config/sh/coff.h,
25616 fix-header.c, fixproto, gen-protos.c, protoize.c, scan-decls.c,
25617 scan-types.sh, scan.c, scan.h, sort-protos, sys-protos.h,
25618 sys-types.h: Remove.
25619 * Makefile.in: Remove protoize and fixproto support and references
25620 in comments.
25621 (SYSCALLS.c.X-warn, TARGET_GETGROUPS_T, STMP_FIXPROTO,
25622 PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, FIXPROTO_DEFINES):
25623 Remove.
25624 (ALL_HOST_OBJS): Remove $(PROTO_OBJS).
25625 (MOSTLYCLEANFILES): Remove protoize$(exeext) and
25626 unprotoize$(exeext).
25627 (rest.encap): Don't depend on $(STMP_FIXPROTO)
25628 (.PHONY): Don't depend on proto.
25629 (libgcc-support): Don't depend on $(STMP_FIXPROTO).
25630 (proto, PROTO_OBJS, protoize$(exeext), unprotoize$(exeext),
25631 protoize.o, unprotoize.o, SYSCALLS.c.X, test-protoize-simple,
25632 deduced.h, GEN_PROTOS_OBJS, build/gen-protos$(build_exeext),
25633 build/gen-protos.o, build/scan.o, xsys-protos.h,
25634 build/fix-header$(build_exeext), build/fix-header.o,
25635 build/scan-decls.o, fixhdr.ready, stmp-fixproto,
25636 stmp-install-fixproto): Remove.
25637 (mostlyclean): Don't remove xsys-protos.hT, SYSCALLS.c.X,
25638 SYSCALLS.c or fixproto files.
25639 (install-common): Don't install protoize.
25640 (install-headers-tar, install-headers-cpio, install-headers-cp):
25641 Don't depend on $(STMP_FIXPROTO).
25642 (install-mkheaders): Don't depend on $(STMP_FIXPROTO). Don't
25643 install fixproto files or write out fixproto settings.
25644 (uninstall): Don't uninstall protoize.
25645 * config.gcc (use_fixproto): Remove.
25646 (arm-*-coff*, armel-*-coff*, h8300-*-*, i[34567]86-*-aout*,
25647 i[34567]86-*-coff*, m68k-*-aout*, m68k-*-coff*, pdp11-*-bsd,
25648 rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*, sh-*-*): Remove.
25649 * config/m32r/t-linux (STMP_FIXPROTO): Remove.
25650 * config/m68k/m68k.c: Remove M68K_TARGET_COFF-conditional code.
25651 * config/mips/t-iris (FIXPROTO_DEFINES): Remove.
25652 * config/pa/t-pa-hpux (FIXPROTO_DEFINES): Remove.
25653 * config/pdp11/pdp11.c: Remove TWO_BSD-conditional code.
25654 * config/t-svr4 (FIXPROTO_DEFINES): Remove.
25655 * config/t-vxworks (STMP_FIXPROTO): Remove.
25656 * configure.ac (AC_TYPE_GETGROUPS, TARGET_GETGROUPS_T,
25657 STMP_FIXPROTO): Remove.
25658 * config.in, configure: Regenerate.
25659 * crtstuff.c (gid_t, uid_t): Don't undefine.
25660 * doc/install.texi: Change m68k-coff to m68k-elf in example.
25661 (arm-*-coff, arm-*-aout: Remove target entries.
25662 (*-ibm-aix*): Mention removal of support for AIX 4.2 and older.
25663 Remove mention of AIX 4.1.
25664 (m68k-*-*): Remove mention of m68k-*-aout and m68k-*-coff*.
25665 * doc/invoke.texi (Running Protoize): Remove.
25666 * doc/trouble.texi (Actual Bugs): Remove mention of fixproto.
25667 (Protoize Caveats): Remove.
25668 * tsystem.h: Update comments on headers assumed to exist.
25669
25670 2009-03-27 Vladimir Makarov <vmakarov@redhat.com>
25671
25672 * genautomata.c: Add a new year to the copyright. Add a new
25673 reference.
25674 (struct insn_reserv_decl): Add comments for member bypass_list.
25675 (find_bypass): Remove.
25676 (insert_bypass): New.
25677 (process_decls): Use insert_bypass.
25678 (output_internal_insn_latency_func): Output all bypasses with the
25679 same input insn in one switch case.
25680
25681 * rtl.def (define_bypass): Describe bypass choice.
25682 * doc/md.texi (define_bypass): Ditto.
25683
25684 2009-03-27 Richard Guenther <rguenther@suse.de>
25685
25686 * gimplify.c (mark_addressable): Export.
25687 * tree-flow.h (mark_addressable): Declare.
25688 * tree-ssa-loop-manip.c (create_iv): Mark the base addressable.
25689 * tree-ssa.c (verify_phi_args): Verify that address taken
25690 variables have TREE_ADDRESSABLE set.
25691
25692 2009-03-27 Richard Guenther <rguenther@suse.de>
25693
25694 * fold-const.c (build_fold_addr_expr_with_type_1): Rename back to ...
25695 (build_fold_addr_expr_with_type): ... this. Remove in_fold handling.
25696 Do not mark decls TREE_ADDRESSABLE.
25697 (build_fold_addr_expr): Adjust.
25698 (fold_addr_expr): Remove.
25699 (fold_unary): Use build_fold_addr_expr.
25700 (fold_comparison): Likewise.
25701 (split_address_to_core_and_offset): Likewise.
25702 * coverage.c (tree_coverage_counter_addr): Mark the array decl
25703 TREE_ADDRESSABLE.
25704 * gimplify.c (mark_addressable): Do not exclude RESULT_DECLs.
25705 (gimplify_modify_expr_to_memcpy): Mark source and destination
25706 addressable.
25707 * omp-low.c (create_omp_child_function): Mark the object decl
25708 TREE_ADDRESSABLE.
25709 (lower_rec_input_clauses): Mark the var we take the address of
25710 TREE_ADDRESSABLE.
25711 (lower_omp_taskreg): Mark the sender decl TREE_ADDRESSABLE.
25712
25713 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
25714
25715 PR middle-end/39315
25716 * cfgexpand.c (expand_one_stack_var_at): Change alignment
25717 limit to MAX_SUPPORTED_STACK_ALIGNMENT.
25718
25719 2009-03-27 Richard Guenther <rguenther@suse.de>
25720
25721 PR tree-optimization/39120
25722 * tree-ssa-structalias.c (handle_rhs_call): Fill out return
25723 constraints.
25724 (handle_lhs_call): Process return constraints. Add escape
25725 constraints if necessary.
25726 (handle_const_call): Fill out return constraints. Make nested
25727 case more precise. Avoid consttmp if possible.
25728 (handle_pure_call): Fill out return constraints. Avoid
25729 callused if possible.
25730 (find_func_aliases): Simplify call handling.
25731
25732 2009-03-27 Richard Guenther <rguenther@suse.de>
25733
25734 PR tree-optimization/39120
25735 * tree-ssa-structalias.c (do_sd_constraint): Do not use CALLUSED
25736 as a representative.
25737 (solve_graph): Do propagate CALLUSED.
25738 (handle_pure_call): Use a scalar constraint from CALLUSED for
25739 the return value.
25740 (find_what_p_points_to): CALLUSED shall not appear in poins-to
25741 solutions.
25742
25743 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
25744
25745 PR c/39323
25746 * c-common.c (handle_aligned_attribute): Properly check alignment
25747 overflow. Use (1U << i) instead of (1 << i).
25748
25749 * emit-rtl.c (get_mem_align_offset): Use "unsigned int" for align.
25750
25751 * expr.h (get_mem_align_offset): Updated.
25752
25753 * tree.h (tree_decl_common): Change align to "unsigned int" and
25754 move it before pointer_alias_set.
25755
25756 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
25757 Jakub Jelinek <jakub@redhat.com>
25758
25759 PR target/38034
25760 * config/ia64/sync.md (cmpxchg_rel_<mode>): Replace input
25761 gr_register_operand with gr_reg_or_0_operand.
25762 (cmpxchg_rel_di): Likewise.
25763 (sync_lock_test_and_set<mode>): Likewise.
25764
25765 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
25766
25767 * jump.c (rtx_renumbered_equal_p): Use subreg_get_info.
25768 (true_regnum): Likewise.
25769
25770 * rtlanal.c (subreg_info): Moved to ...
25771 * rtl.h (subreg_info): Here. New.
25772 (subreg_get_info): New.
25773
25774 * rtlanal.c (subreg_get_info): Make it extern.
25775
25776 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
25777
25778 PR target/39472
25779 * config/i386/i386.c (ix86_abi): New.
25780 (override_options): Handle -mabi=.
25781 (ix86_function_arg_regno_p): Replace DEFAULT_ABI with ix86_abi.
25782 (ix86_call_abi_override): Likewise.
25783 (init_cumulative_args): Likewise.
25784 (function_arg_advance): Likewise.
25785 (function_arg_64): Likewise.
25786 (function_arg): Likewise.
25787 (ix86_pass_by_reference): Likewise.
25788 (ix86_function_value_regno_p): Likewise.
25789 (ix86_build_builtin_va_list_abi): Likewise.
25790 (setup_incoming_varargs_64): Likewise.
25791 (is_va_list_char_pointer): Likewise.
25792 (ix86_init_machine_status): Likewise.
25793 (ix86_reg_parm_stack_space): Use enum calling_abi on call_abi.
25794 (ix86_function_type_abi): Return enum calling_abi. Rewrite
25795 for 64bit. Replace DEFAULT_ABI with ix86_abi.
25796 (ix86_function_abi): Make it static and return enum calling_abi.
25797 (ix86_cfun_abi): Return enum calling_abi. Replace DEFAULT_ABI
25798 with ix86_abi.
25799 (ix86_fn_abi_va_list): Updated.
25800
25801 * config/i386/i386.h (ix86_abi): New.
25802 (STACK_BOUNDARY): Replace DEFAULT_ABI with ix86_abi.
25803 (CONDITIONAL_REGISTER_USAGE): Likewise.
25804 (CUMULATIVE_ARGS): Change call_abi type to enum calling_abi.
25805 (machine_function): Likewise.
25806
25807 * config/i386/i386.md (untyped_call): Replace DEFAULT_ABI
25808 with ix86_abi.
25809 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Likewise.
25810 (STACK_BOUNDARY): Likewise.
25811 * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Likewise.
25812
25813 * config/i386/i386.opt (mabi=): New.
25814
25815 * config/i386/i386-protos.h (ix86_cfun_abi): Changed to
25816 return enum calling_abi.
25817 (ix86_function_type_abi): Likewise.
25818 (ix86_function_abi): Removed.
25819
25820 * doc/invoke.texi: Document -mabi= option for x86.
25821
25822 2009-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
25823
25824 * builtins.c (real_dconstp): Delete.
25825 (fold_builtin_logarithm): Remove inaccurate log(e) special case.
25826
25827 2009-03-27 Dodji Seketeli <dodji@redhat.com>
25828 Jakub Jelinek <jakub@redhat.com>
25829
25830 PR debug/37959
25831 * dwarf2out.c (dwarf_attr_name): Handle DW_AT_explicit attribute.
25832 (gen_subprogram_die): When a function is explicit, generate the
25833 DW_AT_explicit attribute.
25834 * langhooks.h (struct lang_hooks_for_decls): Add
25835 function_decl_explicit_p langhook.
25836 * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Define.
25837 (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P.
25838
25839 2009-03-27 Jakub Jelinek <jakub@redhat.com>
25840
25841 * builtins.c (fold_builtin_memory_op): Optimize memmove
25842 into memcpy if we can prove source and destination don't overlap.
25843
25844 * tree-inline.c: Include gt-tree-inline.h.
25845 (clone_fn_id_num): New variable.
25846 (clone_function_name): New function.
25847 (tree_function_versioning): Use it.
25848 * Makefile.in (GTFILES): Add tree-inline.c.
25849
25850 2009-03-27 Mark Mitchell <mark@codesourcery.com>
25851
25852 * BASE-VER: Change to 4.5.0.
25853
25854 2009-03-27 Xinliang David Li <davidxl@google.com>
25855
25856 PR tree-optimization/39557
25857 * tree-ssa.c (warn_uninitialized_vars): free postdom info.
25858
25859 2009-03-27 Xinliang David Li <davidxl@google.com>
25860
25861 PR tree-optimization/39548
25862 * tree-ssa-copy.c (copy_prop_visit_phi_node): Add copy
25863 candidate check.
25864
25865 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
25866
25867 * c-common.c (pointer_int_sum): Use %wd on return from
25868 tree_low_cst.
25869
25870 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
25871
25872 * c-common.c (pointer_int_sum): Use HOST_WIDE_INT_PRINT_DEC
25873 on return from tree_low_cst.
25874
25875 2009-03-27 Andrew Pinski <andrew_pinski@playstation.sony.com>
25876
25877 PR c++/36799
25878 * ginclude/stdarg.h (va_copy): Define also for
25879 __GXX_EXPERIMENTAL_CXX0X__.
25880
25881 2009-03-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
25882
25883 PR c++/35652
25884 * builtins.h (c_strlen): Do not warn here.
25885 * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
25886 * c-common.c (pointer_int_sum): Take an explicit location.
25887 Warn about offsets out of bounds.
25888 * c-common.h (pointer_int_sum): Adjust declaration.
25889
25890 2009-03-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25891
25892 * doc/invoke.texi (i386 and x86-64 Windows Options): Fix texinfo
25893 markup glitch.
25894
25895 2009-03-26 Jakub Jelinek <jakub@redhat.com>
25896
25897 PR c++/39554
25898 * opts.c (warn_if_disallowed_function_p): Don't assume
25899 get_callee_fndecl must return non-NULL.
25900
25901 2009-03-26 Vladimir Makarov <vmakarov@redhat.com>
25902
25903 PR rtl-optimization/39522
25904 * reload1.c (reload_as_needed): Invalidate reg_last_reload_reg too
25905 when reg_reloaded_valid is set.
25906
25907 2009-03-26 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
25908
25909 * config/spu/divv2df3.c: New file.
25910 * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add it.
25911 (DPBIT_FUNCS): Filter out _div_df.
25912
25913 2009-03-26 Bernd Schmidt <bernd.schmidt@analog.com>
25914
25915 * config/bfin/bfin.c (bfin_optimize_loop): If the LSETUP goes before
25916 a jump insn, count that jump in the distance to the loop start.
25917
25918 2009-03-25 Kaz Kojima <kkojima@gcc.gnu.org>
25919
25920 PR target/39523
25921 * config/sh/sh.c (calc_live_regs): Fix condition for global
25922 registers except PIC_OFFSET_TABLE_REGNUM.
25923
25924 2009-03-25 Kai Tietz <kai.tietz@onevision.com>
25925
25926 PR/39518
25927 * doc/invoke.texi (-mconsole): New.
25928 (-mcygwin): New.
25929 (-mno-cygwin): New.
25930 (-mdll): New.
25931 (-mnop-fun-dllimport): New.
25932 (-mthread): New.
25933 (-mwin32): New.
25934 (-mwindows): New.
25935 (sub section "i386 and x86-64 Windows Options"): New.
25936
25937 2009-03-25 Ralf Corsépius <ralf.corsepius@rtems.org>
25938
25939 * config/arm/rtems-elf.h: Remove LINK_GCC_C_SEQUENCE_SPEC.
25940 * config/rs6000/t-rtems: Remove MULTILIB_EXTRA_OPTS.
25941
25942 2009-03-25 Richard Guenther <rguenther@suse.de>
25943
25944 PR middle-end/39497
25945 * Makefile.in (dfp.o-warn): Use -fno-strict-aliasing instead
25946 of -Wno-error.
25947
25948 2009-03-25 Andrey Belevantsev <abel@ispras.ru>
25949
25950 * config/ia64/ia64.c (ia64_set_sched_flags): Zero spec_info->mask when
25951 neither of haifa/selective schedulers are working.
25952
25953 2009-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25954
25955 * doc/invoke.texi (Debugging Options): Fix description of
25956 -fno-merge-debug-strings.
25957
25958 2009-03-24 Hans-Peter Nilsson <hp@axis.com>
25959
25960 * config/cris/libgcc.ver: New version-script.
25961 * config/cris/t-linux (SHLIB_MAPFILES): Use it.
25962
25963 * configure.ac <GAS features, nop mnemonic>: Add pattern
25964 crisv32-*-* for "nop".
25965 <GAS features, Thread-local storage>: Add item for CRIS and CRIS v32.
25966 * configure: Regenerate.
25967
25968 2009-03-24 Ira Rosen <irar@il.ibm.com>
25969
25970 PR tree-optimization/39529
25971 * tree-vect-transform.c (vect_create_data_ref_ptr): Call
25972 mark_sym_for_renaming for the tag copied to the new vector
25973 pointer.
25974
25975 2009-03-24 Arthur Loiret <aloiret@debian.org>
25976
25977 * config.host (alpha*-*-linux*): Use driver-alpha.o and alpha/x-alpha.
25978 * config/alpha/linux.h (host_detect_local_cpu): Declare, add to
25979 EXTRA_SPEC_FUNCTIONS.
25980 (MCPU_MTUNE_NATIVE_SPECS, DRIVER_SELF_SPECS): New macros.
25981 * config/alpha/driver-alpha.c, config/alpha/x-alpha: New.
25982 * doc/invoke.texi (DEC Alpha Options): Document 'native' value for
25983 -march and -mtune options.
25984
25985 2009-03-24 Ralf Corsépius <ralf.corsepius@rtems.org>
25986
25987 * config/m68k/t-rtems: Add m5329 multilib.
25988
25989 2009-03-24 Dodji Seketeli <dodji@redhat.com>
25990 Jakub Jelinek <jakub@redhat.com>
25991
25992 PR debug/39524
25993 * dwarf2out.c (gen_variable_die): Avoid adding duplicate declaration
25994 nodes.
25995
25996 2009-03-23 Jakub Jelinek <jakub@redhat.com>
25997
25998 PR c/39495
25999 * c-parser.c (c_parser_omp_for_loop): Call c_parser_binary_expression
26000 instead of c_parser_expression_conv, if original_code isn't one of the
26001 4 allowed comparison codes, fail.
26002
26003 2009-03-23 Richard Guenther <rguenther@suse.de>
26004
26005 * cgraph.h (struct cgraph_node): Reorder fields for 64-bit hosts.
26006 * tree.h (struct tree_type): Likewise.
26007 * reload.h (struct insn_chain): Likewise.
26008 * dwarf2out.c (struct dw_loc_descr_struct): Likewise.
26009 * function.h (struct function): Likewise.
26010 * tree-ssa-structalias.c (struct equiv_class_label): Likewise.
26011
26012 2009-03-23 Jakub Jelinek <jakub@redhat.com>
26013
26014 PR tree-optimization/39516
26015 * lambda-code.c (perfect_nestify): Fix type of the uboundvar variable.
26016
26017 2009-03-23 Bingfeng Mei <bmei@broadcom.com>
26018
26019 * config.gcc (need_64bit_hwint): Make clear that need_64bit_hwint
26020 should be set true if BITS_PER_WORD of target is bigger than 32
26021
26022 2009-03-22 Hans-Peter Nilsson <hp@axis.com>
26023
26024 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC):
26025 Translate -B-options to -rpath-link. Correct existing
26026 rpath-link and conditionalize on !nostdlib.
26027
26028 2009-03-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26029
26030 * doc/extend.texi (Function Attributes, Variable Attributes):
26031 Fix typos.
26032 * doc/invoke.texi (Debugging Options, Optimize Options)
26033 (i386 and x86-64 Options, MCore Options): Likewise.
26034
26035 2009-03-20 Jakub Jelinek <jakub@redhat.com>
26036
26037 PR debug/37890
26038 * dwarf2out.c (gen_namespace_die): Add context_die argument and use
26039 it for block local namespace aliases.
26040 (gen_decl_die): Pass context_die to gen_namespace_die.
26041
26042 2009-03-19 Jakub Jelinek <jakub@redhat.com>
26043
26044 PR c/39495
26045 * c-omp.c (c_finish_omp_for): Allow NE_EXPR with TREE_TYPE (decl)'s
26046 minimum or maximum value.
26047
26048 2009-03-19 Alexandre Oliva <aoliva@redhat.com>
26049
26050 * reginfo.c (globalize_reg): Recompute derived reg sets.
26051
26052 2009-03-19 Ozkan Sezer <sezeroz@gmail.com>
26053
26054 PR target/39063
26055 * libgcc2.c (mprotect): Do not use signed arguments for
26056 VirtualProtect, use DWORD arguments. Also fix the 'may
26057 be used uninitialized' warning for the np variable.
26058
26059 2009-03-19 Jakub Jelinek <jakub@redhat.com>
26060
26061 PR target/39496
26062 * config/i386/i386.c (ix86_function_regparm): Don't optimize local
26063 functions using regparm calling conventions when not optimizing.
26064 (ix86_function_sseregparm): Similarly for sseregparm calling
26065 conventions.
26066
26067 2009-03-19 Li Feng <nemokingdom@gmail.com>
26068
26069 PR middle-end/39500
26070 * tree-data-ref.c (analyze_subscript_affine_affine): There is no
26071 dependence if the first conflict is after niter iterations.
26072
26073 2009-03-19 Hans-Peter Nilsson <hp@axis.com>
26074
26075 PR middle-end/38609
26076 * config/cris/cris.h (FRAME_POINTER_REQUIRED): Force for all
26077 functions with dynamic stack-pointer adjustments.
26078
26079 2009-03-19 Ben Elliston <bje@au.ibm.com>
26080
26081 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix -msdata-data
26082 option; change to -msdata=data.
26083
26084 2009-03-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26085
26086 * c.opt: Unify help texts for -Wdeprecated, -Wsystem-headers,
26087 and -fopenmp.
26088
26089 2009-03-18 Eric Botcazou <ebotcazou@adacore.com>
26090
26091 PR target/35180
26092 * config/sparc/sparc.md (do_builtin_setjmp_setup): Prettify asm output.
26093
26094 2009-03-18 Sandra Loosemore <sandra@codesourcery.com>
26095
26096 * doc/invoke.texi (Code Gen Options): Expand discussion of
26097 -fno-common.
26098
26099 2009-03-18 Jakub Jelinek <jakub@redhat.com>
26100
26101 * dse.c (struct group_info): Reorder fields for 64-bit hosts.
26102 * matrix-reorg.c (struct matrix_info): Likewise.
26103 * tree-ssa-loop-ivopts.c (struct ivopts_data): Likewise.
26104 * rtl.h (struct mem_attrs): Likewise.
26105 * df.h (struct df): Likewise.
26106 * tree-data-ref.h (struct data_dependence_relation): Likewise.
26107 * ira-int.h (struct ira_allocno): Likewise.
26108 * df-scan.c (struct df_collection_rec): Likewise.
26109 * ira.c (struct equivalence): Likewise.
26110 * function.c (struct temp_slot): Likewise.
26111 * cfgloop.h (struct loop): Likewise.
26112
26113 PR debug/39485
26114 * function.c (use_register_for_decl): When not optimizing, disregard
26115 register keyword for variables with types containing methods.
26116
26117 2009-03-18 Sebastian Pop <sebastian.pop@amd.com>
26118
26119 PR middle-end/39447
26120 * graphite.c (exclude_component_ref): Renamed contains_component_ref_p.
26121 (is_simple_operand): Call contains_component_ref_p before calling data
26122 reference analysis that would fail on COMPONENT_REFs.
26123
26124 * tree-vrp.c (search_for_addr_array): Fix formatting.
26125
26126 2009-03-18 Richard Guenther <rguenther@suse.de>
26127
26128 * tree-vect-transform.c (vect_loop_versioning): Fold the
26129 generated comparisons.
26130 * tree-vectorizer.c (set_prologue_iterations): Likewise.
26131 (slpeel_tree_peel_loop_to_edge): Likewise.
26132
26133 2009-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26134
26135 PR middle-end/37805
26136 * opts.c (print_specific_help): In addition to `undocumented',
26137 accept `separate' and `joined' flags if passed alone. Describe
26138 output by the first matched one of those.
26139 (common_handle_option): Skip over empty strings.
26140 * gcc.c (display_help): Fix help string for `--help='.
26141 * doc/invoke.texi (Option Summary, Overall Options): With
26142 `--help=', classes and qualifiers can both be repeated, but
26143 only the latter can be negated. One should not pass only
26144 negated qualifiers. Fix markup and examples.
26145
26146 Revert
26147 2008-10-14 Jakub Jelinek <jakub@redhat.com>
26148 PR middle-end/37805
26149 * opts.c (common_handle_option): Don't ICE on -fhelp=joined
26150 and -fhelp=separate.
26151
26152 2009-03-17 Jing Yu <jingyu@google.com>
26153
26154 PR middle-end/39378
26155 * function.h (struct rtl_data): Move is_thunk from here...
26156 (struct function): ...to here.
26157 * cp/method.c (use_thunk): Change is_thunk from crtl to cfun.
26158 * varasm.c (assemble_start_function): Change is_thunk from crtl to
26159 cfun.
26160 * config/alpha/alpha.c (alpha_sa_mask): Change is_thunk from crtl to
26161 cfun.
26162 (alpha_does_function_need_gp, alpha_start_function): Likewise.
26163 (alpha_output_function_end_prologue): Likewise.
26164 (alpha_end_function, alpha_output_mi_thunk_osf): Likewise.
26165 * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likewise.
26166 (rs6000_output_function_epilogue): Likewise.
26167 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Likewise.
26168
26169 2009-03-17 Uros Bizjak <ubizjak@gmail.com>
26170
26171 PR target/39482
26172 * config/i386/i386.md (*truncdfsf_mixed): Avoid combining registers
26173 from different units in a single alternative.
26174 (*truncdfsf_i387): Ditto.
26175 (*truncxfsf2_mixed): Ditto.
26176 (*truncxfdf2_mixed): Ditto.
26177
26178 2009-03-17 Jakub Jelinek <jakub@redhat.com>
26179
26180 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Allow
26181 non-NAMESPACE_DECL IMPORTED_DECL_ASSOCIATED_DECL.
26182
26183 PR debug/39474
26184 * tree-ssa-live.c (remove_unused_locals): Don't remove local
26185 unused non-artificial variables when not optimizing.
26186
26187 PR debug/39471
26188 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Emit
26189 DW_TAG_imported_module even if decl is IMPORTED_DECL with
26190 NAMESPACE_DECL in its DECL_INITIAL.
26191
26192 PR middle-end/39443
26193 * optabs.c (set_user_assembler_libfunc): New function.
26194 * expr.h (set_user_assembler_libfunc): New prototype.
26195 * c-common.c: Include libfuncs.h.
26196 (set_builtin_user_assembler_name): Call set_user_assembler_libfunc
26197 for memcmp, memset, memcpy, memmove and abort.
26198 * Makefile.in (c-common.o): Depend on libfuncs.h.
26199
26200 PR debug/39412
26201 * dwarf2out.c (gen_inlined_enumeration_type_die,
26202 gen_inlined_structure_type_die, gen_inlined_union_type_die,
26203 gen_tagged_type_instantiation_die): Removed.
26204 (gen_decl_die): For TYPE_DECL_IS_STUB with non-NULL decl_origin
26205 do nothing.
26206
26207 2009-03-17 Janis Johnson <janis187@us.ibm.com>
26208
26209 PR testsuite/38526
26210 * Makefile.in (site.exp): Rename TEST_GCC_EXEC_PREFIX and comment
26211 its use.
26212 (check-%): Don't set GCC_EXEC_PREFIX when invoking runtest.
26213 (check-parallel-%): Ditto.
26214 (check-consistency): Ditto.
26215
26216 2009-03-17 Kai Tietz <kai.tietz@onevision.com>
26217
26218 * ipa-struct-reorg.c (create_general_new_stmt): Initialize
26219 local variable rhs by NULL_TREE.
26220
26221 2009-03-17 H.J. Lu <hongjiu.lu@intel.com>
26222
26223 PR target/39477
26224 * doc/extend.texi: Correct register behavior for regparm on Intel 386.
26225
26226 2009-03-17 H.J. Lu <hongjiu.lu@intel.com>
26227
26228 PR target/39476
26229 * config/i386/i386.c (ix86_function_regparm): Rewrite for 64bit.
26230
26231 2009-03-17 H.J. Lu <hongjiu.lu@intel.com>
26232
26233 PR target/39473
26234 * config/i386/i386.c (ix86_expand_call): Check extra clobbers
26235 for ms->sysv ABI calls only in 64bit mode.
26236
26237 * config/i386/i386.md (untyped_call): Support 32bit.
26238
26239 2009-03-16 H.J. Lu <hongjiu.lu@intel.com>
26240
26241 * doc/extend.texi: Replace x86_65 with x86_64.
26242
26243 2009-03-16 Jakub Jelinek <jakub@redhat.com>
26244
26245 PR tree-optimization/39455
26246 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Fix types
26247 mismatches for POINTER_TYPE_P (type).
26248 (number_of_iterations_le): Likewise.
26249
26250 2009-03-16 Hariharan Sandanagobalane <hariharan@picochip.com>
26251
26252 * config/picochip/picochip.c: Removed profiling support.
26253 * config/picochip/picochip.md: Removed profiling instruction.
26254 * config/picochip/picochip.h: Removed profiling builtin.
26255
26256 2009-03-16 Joseph Myers <joseph@codesourcery.com>
26257
26258 * doc/install.texi (--with-host-libstdcxx): Document.
26259
26260 2009-03-14 Anatoly Sokolov <aesok@post.ru>
26261
26262 PR target/34299
26263 * config/avr/avr.c (avr_handle_fndecl_attribute): Move code for
26264 generate a warning if the function name does not begin with
26265 "__vector" and the function has either the 'signal' or 'interrupt'
26266 attribute, from here to ...
26267 (avr_declare_function_name): ...here. New function.
26268 * config/avr/avr.h (ASM_DECLARE_FUNCTION_NAME): Redefine.
26269 * config/avr/avr-protos.h (avr_declare_function_name): Declare.
26270
26271 2009-03-14 Jakub Jelinek <jakub@redhat.com>
26272
26273 PR bootstrap/39454
26274 * cse.c (fold_rtx): Don't modify original const_arg1 when
26275 canonicalizing SHIFT_COUNT_TRUNCATED shift count, do it on a
26276 separate variable instead.
26277 * rtlanal.c (nonzero_bits1) <case ASHIFTRT>: Don't assume anything
26278 from out of range shift counts.
26279 (num_sign_bit_copies1) <case ASHIFTRT, case ASHIFT>: Similarly.
26280
26281 2009-03-13 Catherine Moore <clm@codesourcery.com>
26282
26283 * config/i386/x-mingw32 (host-mingw32.o): Replace
26284 diagnostic.h with $(DIAGNOSTIC_H).
26285
26286 2009-03-12 Jakub Jelinek <jakub@redhat.com>
26287
26288 PR target/39431
26289 * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): New
26290 predicate.
26291 * config/i386/sync.md (sync_compare_and_swap<mode>,
26292 sync_compare_and_swap_cc<mode>): For DImode with -m32 -fpic check
26293 if operands[1] is cmpxchg8b_pic_memory_operand, if not force address
26294 into a register.
26295 (sync_double_compare_and_swapdi_pic,
26296 sync_double_compare_and_swap_ccdi_pic): Require operand 1 to be
26297 cmpxchg8b_pic_memory_operand instead of just memory_operand.
26298
26299 2009-03-12 H.J. Lu <hongjiu.lu@intel.com>
26300
26301 PR target/39445
26302 * config/i386/i386.c (ix86_expand_push): Don't set memory alignment.
26303
26304 2009-03-12 H.J. Lu <hongjiu.lu@intel.com>
26305
26306 PR target/39327
26307 * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
26308 (avx_addsubv4df3): Likewise.
26309 (*avx_addsubv4sf3): Likewise.
26310 (sse3_addsubv4sf3): Likewise.
26311
26312 2009-03-12 H.J. Lu <hongjiu.lu@intel.com>
26313
26314 PR target/38824
26315 * config/i386/i386.md: Compare REGNO on the new peephole2 patterns.
26316
26317 2009-03-12 Vladimir Makarov <vmakarov@redhat.com>
26318
26319 PR debug/39432
26320 * ira-int.h (struct allocno): Fix comment for calls_crossed_num.
26321 * ira-conflicts.c (ira_build_conflicts): Prohibit call used
26322 registers for allocnos created from user-defined variables.
26323
26324 2009-03-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26325
26326 PR target/39181
26327 * config/spu/spu.c (spu_expand_mov): Handle invalid subregs
26328 of non-integer mode as well.
26329
26330 2009-03-11 Adam Nemet <anemet@caviumnetworks.com>
26331
26332 * gimplify.c (gimplify_call_expr): Don't set CALL_CANNOT_INLINE_P
26333 for functions for which the parameter types are unknown.
26334
26335 2009-03-11 Jakub Jelinek <jakub@redhat.com>
26336
26337 PR target/39137
26338 * cfgexpand.c (get_decl_align_unit): Use LOCAL_DECL_ALIGNMENT macro.
26339 * defaults.h (LOCAL_DECL_ALIGNMENT): Define if not yet defined.
26340 * config/i386/i386.h (LOCAL_DECL_ALIGNMENT): Define.
26341 * config/i386/i386.c (ix86_local_alignment): For
26342 -m32 -mpreferred-stack-boundary=2 use 32-bit alignment for
26343 long long variables on the stack to avoid dynamic realignment.
26344 Allow the first argument to be a decl rather than type.
26345 * doc/tm.texi (LOCAL_DECL_ALIGNMENT): Document.
26346
26347 2009-03-11 Nick Clifton <nickc@redhat.com>
26348
26349 PR target/5362
26350 * config/mcore/mcore.opt: Remove deprecated m4align and m8align
26351 options.
26352 Add description to mno-lsim option.
26353 * config/mcore/mcore.h: Remove comment about deprecated m4align
26354 option.
26355 (TARGET_DEFAULT): Remove deprecated MASK_M8ALIGN.
26356 * doc/invoke.texi: Add description of mno-lsim and
26357 mstack-increment options.
26358
26359 * config/fr30/fr30.opt: Document the -mno-lsim option.
26360 * doc/invoke.texi: Add descriptions of the FR30's -msmall-model
26361 and -mno-lsim options.
26362
26363 2009-03-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26364
26365 * fold-const.c (fold_comparison): Only call fold_inf_compare
26366 if the mode supports infinities.
26367
26368 2009-03-11 Jason Merrill <jason@redhat.com>
26369
26370 PR debug/39086
26371 * tree-nrv.c (tree_nrv): Don't do this optimization if the front
26372 end already did. Notice GIMPLE_CALL modifications of the result.
26373 Don't copy debug information from an ignored decl or a decl from
26374 another function.
26375
26376 2009-03-10 Richard Guenther <rguenther@suse.de>
26377 Nathan Froyd <froydnj@codesourcery.com>
26378
26379 PR middle-end/37850
26380 * libgcc2.c (__mulMODE3): Use explicit assignments to form the result.
26381 (__divMODE3): Likewise.
26382
26383 2009-03-09 Jakub Jelinek <jakub@redhat.com>
26384
26385 PR tree-optimization/39394
26386 * gimplify.c (gimplify_type_sizes): Gimplify DECL_SIZE and
26387 DECL_SIZE_UNIT of variable length FIELD_DECLs.
26388
26389 2009-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26390
26391 * recog.c (verfiy_changes): Disallow renaming of hard regs in
26392 inline asms for register asm ("") declarations.
26393
26394 2009-03-09 Eric Botcazou <ebotcazou@adacore.com>
26395
26396 * fold-const.c (fold_unary): Fix comment.
26397
26398 2009-03-07 Jan Hubicka <jh@suse.cz>
26399
26400 PR target/39361
26401 * tree-inline.c (setup_one_parameter): Do replacement of const
26402 argument by constant in SSA form.
26403
26404 2009-03-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26405
26406 PR middle-end/38028
26407 * function.c (assign_parm_setup_stack): Use STACK_SLOT_ALIGNMENT to
26408 determine alignment passed to assign_stack_local.
26409 (assign_parms_unsplit_complex): Likewise.
26410 * except.c (sjlj_build_landing_pads): Likewise.
26411
26412 2009-03-06 Jakub Jelinek <jakub@redhat.com>
26413
26414 PR middle-end/39360
26415 * tree-flow.h (add_referenced_var): Return bool instead of void.
26416 * tree-dfa.c (add_referenced_var): Return result of
26417 referenced_var_check_and_insert call.
26418 * tree-inline.c (expand_call_inline): Call add_referenced_var instead
26419 of referenced_var_check_and_insert.
26420
26421 PR debug/39372
26422 * dwarf2out.c (add_abstract_origin_attribute): Return origin_die.
26423 (gen_variable_die): Emit DW_AT_location on abstract static variable's
26424 DIE, don't emit it if abstract origin already has it.
26425 * tree-cfg.c (remove_useless_stmts_bind): GIMPLE_BINDs with any
26426 BLOCK_NONLOCALIZED_VARS in its gimple_bind_block aren't useless.
26427
26428 2009-03-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
26429
26430 * genpreds.c (needs_variable): Fix parentheses at variable name
26431 detection.
26432 (write_tm_constrs_h): Indent generated code.
26433
26434 2009-03-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26435
26436 * doc/extend.texi (Function Attributes): Add documentation
26437 for isr attributes.
26438
26439 2009-03-06 Jakub Jelinek <jakub@redhat.com>
26440
26441 PR debug/39387
26442 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): For IMPORTED_DECL
26443 take locus from its DECL_SOURCE_LOCATION instead of input_location.
26444
26445 2009-03-05 Bernd Schmidt <bernd.schmidt@analog.com>
26446
26447 * config/bfin/bfin.c (bfin_discover_loop): When retrying fails, mark
26448 the loop as bad.
26449
26450 2009-03-05 Jakub Jelinek <jakub@redhat.com>
26451
26452 PR debug/39379
26453 * tree-cfg.c (remove_useless_stmts_bind): Don't remove GIMPLE_BINDs
26454 with blocks containing IMPORTED_DECLs in BLOCK_VARS.
26455
26456 2009-03-05 Uros Bizjak <ubizjak@gmail.com>
26457
26458 * config/i386/i386.md (R8_REG, R9_REG): New constants.
26459 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Use named
26460 constants instead of magic numbers.
26461 (HARD_REGNO_CALLER_SAVE_MODE): Ditto.
26462 (QI_REG_P): Ditto.
26463 * config/i386/i386.c (x86_64_int_parameter_registers): Ditto.
26464 (x86_64_ms_abi_int_parameter_registers): Ditto.
26465 (x86_64_int_return_registers): Ditto.
26466 (ix86_maybe_switch_abi): Ditto.
26467 (ix86_expand_call): Ditto for clobbered_registers array.
26468 (ix86_hard_regno_mode_ok): Ditto.
26469 (x86_extended_QIreg_mentioned_p): Ditto.
26470
26471 2009-03-05 J"orn Rennecke <joern.rennecke@arc.com>
26472
26473 PR tree-optimization/39349
26474 * cse.c (cse_insn): Fix loop to stop at VOIDmode.
26475
26476 * combine.c (gen_lowpart_for_combine): Use omode when generating
26477 clobber.
26478
26479 2009-03-04 J"orn Rennecke <joern.rennecke@arc.com>
26480
26481 PR rtl-optimization/39235
26482 * loop-iv.c (get_simple_loop_desc): Use XCNEW.
26483
26484 2009-03-04 Zdenek Dvorak <ook@ucw.cz>
26485
26486 * graphite.c (nb_reductions_in_loop): Update simple_iv arguments.
26487
26488 2009-03-04 Richard Guenther <rguenther@suse.de>
26489
26490 PR tree-optimization/39362
26491 * tree-ssa-sccvn.c (visit_use): Stores and copies from SSA_NAMEs
26492 that occur in abnormal PHIs should be varying.
26493
26494 2009-03-04 Zdenek Dvorak <ook@ucw.cz>
26495
26496 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop):
26497 Extend comments.
26498 (simple_iv): Take loop as an argument instead of statement.
26499 * tree-scalar-evolution.h (simple_iv): Declaration changed.
26500 * tree-ssa-loop-niter.c (number_of_iterations_exit): Update calls
26501 to simple_iv.
26502 * tree-ssa-loop-ivopts.c (determine_biv_step, find_givs_in_stmt_scev):
26503 Ditto.
26504 * tree-parloops.c (loop_parallel_p, canonicalize_loop_ivs): Ditto.
26505 * matrix-reorg.c (analyze_transpose): Ditto.
26506 * tree-data-ref.c (dr_analyze_innermost): Ditto.
26507 * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
26508 * tree-predcom.c (ref_at_iteration): Ditto.
26509 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Ditto.
26510
26511 2009-03-04 Richard Guenther <rguenther@suse.de>
26512
26513 PR tree-optimization/39358
26514 * tree-ssa-structalias.c (do_sd_constraint): Fix check for
26515 escaped_id and callused_id.
26516 (solve_graph): Likewise.
26517
26518 2009-03-04 Richard Guenther <rguenther@suse.de>
26519
26520 PR tree-optimization/39339
26521 * tree-sra.c (try_instantiate_multiple_fields): Make it
26522 no longer ICE on the above.
26523
26524 2009-03-03 Joseph Myers <joseph@codesourcery.com>
26525
26526 * emit-rtl.c (adjust_address_1): Reduce offset to a signed value
26527 that fits within Pmode.
26528
26529 2009-03-03 Steve Ellcey <sje@cup.hp.com>
26530
26531 PR middle-end/10109
26532 * tm.texi (LIBCALL_VALUE): Update description.
26533
26534 2009-03-03 Steve Ellcey <sje@cup.hp.com>
26535
26536 PR middle-end/34443
26537 * doc/extend.texi (section): Update description.
26538
26539 2009-03-03 H.J. Lu <hongjiu.lu@intel.com>
26540
26541 PR middle-end/39345
26542 * tree-inline.c (remapped_type): New.
26543 (can_be_nonlocal): Call remapped_type instead of remap_type.
26544
26545 2009-03-03 Jakub Jelinek <jakub@redhat.com>
26546
26547 PR fortran/39354
26548 * gimplify.c (goa_stabilize_expr): Handle tcc_comparison,
26549 TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR.
26550
26551 2009-03-03 Richard Guenther <rguenther@suse.de>
26552
26553 PR middle-end/39272
26554 * tree.c (tree_nonartificial_location): New function.
26555 * tree.h (tree_nonartificial_location): Declare.
26556 * builtins.c (expand_builtin_memory_chk): Provide location
26557 of the call location for artificial function pieces.
26558 (maybe_emit_chk_warning): Likewise.
26559 (maybe_emit_sprintf_chk_warning): Likewise.
26560 (maybe_emit_free_warning): Likewise.
26561 * expr.c (expand_expr_real_1): Likewise.
26562
26563 2009-03-03 Jakub Jelinek <jakub@redhat.com>
26564
26565 PR tree-optimization/39343
26566 * tree-ssa-ccp.c (maybe_fold_offset_to_address): Don't check if
26567 COMPONENT_REF t has ARRAY_TYPE.
26568
26569 2009-03-02 Sebastian Pop <sebastian.pop@amd.com>
26570
26571 PR middle-end/39335
26572 * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
26573 when the type precision of the induction variable should be
26574 larger than the type precision of nit.
26575 (gen_parallel_loop): Update use of canonicalize_loop_ivs.
26576 * graphite.c (graphite_loop_normal_form): Same.
26577 * tree-flow.h (canonicalize_loop_ivs): Update declaration.
26578
26579 2009-03-02 Uros Bizjak <ubizjak@gmail.com>
26580
26581 * config/i386/i386.md (ST?_REG, MM?_REG): New constants.
26582 (*call_1_rex64_ms_sysv): Use named constants instead of magic
26583 numbers to describe clobbered registers.
26584 (*call_value_0_rex64_ms_sysv): Ditto.
26585 * config/i386/mmx.md (mmx_emms): Ditto.
26586 (mmx_femms): Ditto.
26587
26588 2009-03-02 Richard Sandiford <rdsandiford@googlemail.com>
26589
26590 * config/mips/mips.c (mips_mdebug_abi_name): Fix the handling
26591 of ABI_64.
26592
26593 2009-03-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26594
26595 * config/spu/spu.c (TARGET_SECTION_TYPE_FLAGS): Define.
26596 (spu_section_type_flags): New function.
26597
26598 2009-03-02 Uros Bizjak <ubizjak@gmail.com>
26599
26600 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not copy
26601 reg_class_contents of FLOAT_REGS into a temporary.
26602
26603 2009-03-02 Richard Guenther <rguenther@suse.de>
26604 Ira Rosen <irar@il.ibm.com>
26605
26606 PR tree-optimization/39318
26607 * tree-vect-transform.c (vectorizable_call): Transfer the EH region
26608 information to the vectorized statement.
26609
26610 2009-03-01 Uros Bizjak <ubizjak@gmail.com>
26611
26612 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not shadow "i"
26613 variable. Use defined names instead of magic constants for REX SSE
26614 registers.
26615
26616 2009-03-01 Richard Guenther <rguenther@suse.de>
26617
26618 PR tree-optimization/39331
26619 * omp-low.c (lower_send_shared_vars): Do not receive new
26620 values for the reference of DECL_BY_REFERENCE parms or results.
26621
26622 2009-03-01 Jan Hubicka <jh@suse.cz>
26623
26624 PR debug/39267
26625 * tree.h (BLOCK_NONLOCALIZED_VARS, BLOCK_NUM_NONLOCALIZED_VARS,
26626 BLOCK_NONLOCALIZED_VAR): New macros.
26627 (tree_block): Add nonlocalized_vars.
26628 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die,
26629 gen_decl_die): Add origin argument. Allow generation of die with
26630 origin at hand only.
26631 (gen_member_die, gen_type_die_with_usage, force_decl_die,
26632 declare_in_namespace, gen_namescpace_die, dwarf2out_decl): Update use
26633 of gen_*.
26634 (gen_block_die): Fix checking for unused blocks.
26635 (process_scope_var): Break out from .... ; work with origins only.
26636 (decls_for_scope) ... here; process nonlocalized list.
26637 (dwarf2out_ignore_block): Look for nonlocalized vars.
26638 * tree-ssa-live.c (remove_unused_scope_block_p): Look for nonlocalized
26639 vars.
26640 (dump_scope_block): Dump them.
26641 * tree-inline.c (remap_decls): Handle nonlocalized vars.
26642 (remap_block): Likewise.
26643 (can_be_nonlocal): New predicate.
26644 (copy_bind_expr, copy_gimple_bind): Update use of remap_block.
26645
26646 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26647
26648 * configure: Regenerate.
26649
26650 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26651
26652 * optc-gen.awk: No need to duplicate option flags twice.
26653 Reuse help texts for duplicate options which do not have any.
26654
26655 * gcc.c (display_help): Document --version.
26656
26657 * gcc.c (main): If print_help_list and verbose_flag, ensure
26658 driver output comes before subprocess output.
26659
26660 * optc-gen.awk: Assign all remaining fields to help string,
26661 space-separated, for multi-line help in *.opt.
26662
26663 * doc/invoke.texi (Warning Options): -Wsync-nand is C/C++ only.
26664 -Wno-pedantic-ms-format is for MinGW targets only.
26665
26666 * doc/options.texi (Option file format): Fix bad indentation,
26667 restoring dropped sentence.
26668
26669 2009-02-28 Jan Hubicka <jh@suse.cz>
26670
26671 * tree-inline.c (tree_function_versioning): Output debug info.
26672
26673 2009-02-28 Jan Hubicka <jh@suse.cz>
26674
26675 PR debug/39267
26676 * tree-inline.c (setup_one_parameter): Do not copy propagate
26677 arguments when not optimizing.
26678
26679 2009-02-28 H.J. Lu <hongjiu.lu@intel.com>
26680
26681 PR target/39327
26682 * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
26683 (avx_addsubv4df3): Likewise.
26684 (*avx_addsubv4sf3): Likewise.
26685 (sse3_addsubv4sf3): Likewise.
26686 (*avx_addsubv2df3): Likewise.
26687 (sse3_addsubv2df3): Likewise.
26688 (avx_unpckhps256): Correct item selectors.
26689 (avx_unpcklps256): Likewise.
26690 (avx_unpckhpd256): Likewise.
26691 (avx_unpcklpd256): Likewise.
26692
26693 2009-02-28 Jan Hubicka <jh@suse.cz>
26694
26695 * tree-inline.c (expand_call_inline): Avoid duplicate declarations of
26696 static vars.
26697 (copy_arguments_for_versioning): If var is declared don't declare it.
26698 (tree_function_versioning): First setup substitutions and then copy
26699 args.
26700
26701 2009-02-27 Jan Hubicka <jh@suse.cz>
26702
26703 PR debug/39267
26704 * cgraph.h (varpool_output_debug_info): Remove.
26705 * cgraphunit.c (varpool_output_debug_info): Remove.
26706 * dwarf2out.c (deferred_locations_struct): New struct
26707 (deferred_locations): New type.
26708 (deferred_locations_list): New static var.
26709 (deffer_location): New function.
26710 (gen_variable_die): Use it.
26711 (decls_for_scope): Output info on local static vars.
26712 (dwarf2out_finish): Process deferred locations.
26713 * varpool.c (varpool_output_debug_info): Remove.
26714
26715 2009-02-27 Jan Hubicka <jh@suse.cz>
26716
26717 PR debug/39267
26718 * tree.h (TREE_PROTECTED): Fix comment.
26719 (BLOCK_HANDLER_BLOCK): Remove.
26720 (struct tree_block): Remove handler_block add body_block.
26721 (inlined_function_outer_scope_p): New.
26722 (is_body_block): Remove.
26723 * dbxout.c (dbxout_block): Remove BLOCK_HANDLER_BLOCK.
26724 * dwarf2out.c (is_inlined_entry_point): Remove.
26725 (add_high_low_attributes): Use inlined_function_outer_scope_p.
26726 (gen_block_die): Use is_inlined_entry_point check. Remove body block
26727 code.
26728 * langhooks.h (struct lang_hooks): Remove no_bodu_blocks.
26729 * gimplify.c (gimplify_expr): Gimplify body blocks.
26730 * tree-ssa-live.c (remove_unused_scope_block_p): Allow removing wrapper
26731 block with multiple subblocks.
26732 (dump_scope_block): Prettier output; dump more flags and info.
26733 (dump_scope_blocks): New.
26734 (remove_unused_locals): Use dump_scope_blocks.
26735 * tree-flow.h (dump_scope_blocks): Declare.
26736 * tree-cfg.c (execute_build_cfg): Dump scope blocks.
26737 * stmt.c (is_body_block): Remove.
26738 * tree-inline.c (remap_block): Copy BODY_BLOCK info.
26739 * langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): Remove.
26740
26741 2009-02-27 Sebastian Pop <sebastian.pop@amd.com>
26742
26743 PR middle-end/39308
26744 * graphite.c (graphite_loop_normal_form): Do not call
26745 number_of_iterations_exit from a gcc_assert.
26746
26747 2009-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26748
26749 * config/s390/s390.c (s390_swap_cmp): Look for conditional
26750 jumps if COND is NULL.
26751 (find_cond_jump): New function.
26752 (s390_z10_optimize_cmp): Handling for reg-reg compares added.
26753 * config/s390/s390.md: Remove z10_cobra attribute value.
26754
26755 2009-02-26 Uros Bizjak <ubizjak@gmail.com>
26756
26757 * config/alpha/alpha.h (alpha_expand_mov): Return false if
26758 force_const_mem returns NULL_RTX.
26759
26760 2009-02-26 Jan Hubicka <jh@suse.cz>
26761
26762 PR debug/39267
26763 * cgraph.h (varpool_output_debug_info): Remove.
26764 * cgraphunit.c (varpool_output_debug_info): Remove.
26765 * dwarf2out.c (deferred_locations_struct): New struct
26766 (deferred_locations): New type.
26767 (deferred_locations_list): New static var.
26768 (deffer_location): New function.
26769 (gen_variable_die): Use it.
26770 (decls_for_scope): Output info on local static vars.
26771 (dwarf2out_finish): Process deferred locations.
26772 * varpool.c (varpool_output_debug_info): Remove.
26773
26774 2009-02-25 H.J. Lu <hongjiu.lu@intel.com>
26775
26776 PR rtl-optimization/39241
26777 * jump.c (rtx_renumbered_equal_p): Remove 2 superfluous calls
26778 to subreg_offset_representable_p.
26779
26780 2009-02-25 Paolo Bonzini <bonzini@gnu.org>
26781
26782 * regmove.c (regmove_optimize): Conform to struct rtl_opt_pass
26783 execute function prototype. Get f and nregs from max_reg_num
26784 and get_insns. Remove the first backward pass as it's dead,
26785 guard the forward pass by flag_expensive_optimizations.
26786 (rest_of_handle_regmove): Delete.
26787 (pass_regmove): Replace it with regmove_optimize.
26788
26789 2009-02-25 Martin Jambor <mjambor@suse.cz>
26790
26791 PR tree-optimization/39259
26792 * tree-inline.c (initialize_cfun): Remove asserts for calls_setjmp and
26793 calls_alloca function flags.
26794 (copy_bb): Set calls_setjmp and alls_alloca function flags if such
26795 calls are detected.
26796
26797 2009-02-25 Paolo Bonzini <bonzini@gnu.org>
26798
26799 * regmove.c (discover_flags_reg, flags_set_1, mark_flags_life_zones,
26800 flags_set_1_rtx, flags_set_1_set): Delete.
26801 (regmove_optimize): Do not call mark_flags_life_zones.
26802
26803 2009-02-24 Julian Brown <julian@codesourcery.com>
26804
26805 PR target/35965
26806 * config/arm/arm.c (require_pic_register): Only set
26807 cfun->machine->pic_reg once per function.
26808
26809 2009-02-24 Sandra Loosemore <sandra@codesourcery.com>
26810
26811 * doc/invoke.texi (Link Options): Document an easier way to pass
26812 options that take arguments to the GNU linker using -Xlinker and -Wl.
26813
26814 2009-02-24 Steve Ellcey <sje@cup.hp.com>
26815
26816 PR target/33785
26817 * doc/tm.texi (TARGET_C99_FUNCTIONS): Fix description.
26818
26819 2009-02-24 Richard Guenther <rguenther@suse.de>
26820
26821 PR debug/39285
26822 * dwarf2out.c (gen_enumeration_type_die): Handle CONST_DECLs.
26823
26824 2009-02-24 Richard Guenther <rguenther@suse.de>
26825 Zdenek Dvorak <ook@ucw.cz>
26826
26827 PR tree-optimization/39233
26828 * tree-ssa-loop-ivopts.c (add_candidate_1): Do not except pointers
26829 from converting them to a generic type.
26830
26831 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
26832
26833 PR tree-optimization/39260
26834 * graphite.c (harmful_stmt_in_bb): Stop a SCoP when the basic block
26835 contains a condition with a real type.
26836 (build_scop_conditions_1): Conditions are always last_stmt of a bb.
26837
26838 2009-02-23 Jason Merrill <jason@redhat.com>
26839
26840 PR c++/38880
26841 * varasm.c (initializer_constant_valid_p) [PLUS_EXPR]: Check
26842 narrowing_initializer_constant_valid_p.
26843 (narrowing_initializer_constant_valid_p): Don't return
26844 null_pointer_node for adding a pointer to itself.
26845
26846 2009-02-23 Jan Hubicka <jh@suse.cz>
26847
26848 PR c/12245
26849 * ggc.h (htab_create_ggc): Use ggc_free to free hashtable when
26850 resizing.
26851
26852 2009-02-23 Jan Hubicka <jh@suse.cz>
26853
26854 PR tree-optimization/37709
26855 * tree.c (block_ultimate_origin): Move here from dwarf2out.
26856 * tree.h (block_ultimate_origin): Declare.
26857 * dwarf2out.c (block_ultimate_origin): Move to tree.c
26858 * tree-ssa-live.c (remove_unused_scope_block_p):
26859 Eliminate blocks containig no instructions nor live variables nor
26860 nested blocks.
26861 (dump_scope_block): New function.
26862 (remove_unused_locals): Enable removal of dead blocks by default;
26863 enable dumping at TDF_DETAILS.
26864
26865 2009-02-21 H.J. Lu <hongjiu.lu@intel.com>
26866
26867 * config/i386/i386.c (classify_argument): Don't allow COImode
26868 and OImode.
26869 (function_arg_advance_32): Don't allow OImode.
26870 (function_arg_32): Likewise.
26871 (function_value_32): Likewise.
26872 (return_in_memory_32): Likewise.
26873 (function_arg_64): Remove OImode comment.
26874
26875 2009-02-21 H.J. Lu <hongjiu.lu@intel.com>
26876
26877 PR target/39261
26878 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
26879 ix86_expand_vector_set for V4DImode in 64bit mode only.
26880 (ix86_expand_vector_init_one_var): Likewise.
26881
26882 2009-02-21 Sebastian Pop <sebastian.pop@amd.com>
26883
26884 * graphite.c (graphite_trans_loop_block): Adjust tile size to 51.
26885
26886 2009-02-21 Richard Sandiford <rdsandiford@googlemail.com>
26887
26888 PR bootstrap/39257
26889 * loop-iv.c: Revert last change.
26890 * emit-rtl.c: Likewise.
26891
26892 2009-02-21 H.J. Lu <hongjiu.lu@intel.com>
26893
26894 PR target/39256
26895 * config/i386/i386.c (type_natural_mode): Remove an extra
26896 space in the warning message.
26897 (function_value_32): Handle 32-byte vector modes.
26898 (return_in_memory_32): Likewise.
26899
26900 2009-02-21 Richard Sandiford <rdsandiford@googlemail.com>
26901
26902 * loop-iv.c (truncate_value): New function.
26903 (iv_subreg, get_iv_value, iv_number_of_iterations): Use it instead
26904 of lowpart_subreg.
26905 (lowpart_subreg): Move to...
26906 * emit-rtl.c: ...here.
26907
26908 2009-02-21 Danny Smith <dannysmith@users.sourceforge.net>
26909
26910 * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Revert
26911 accidental and undocumented change at revision 140860.
26912
26913 2009-02-21 Joseph Myers <joseph@codesourcery.com>
26914
26915 * config/arm/arm.c (arm_gimplify_va_arg_expr): Update prototype to
26916 take gimple_seq * arguments.
26917 (arm_mangle_type): Use CONST_CAST_TREE on type argument passed to
26918 types_compatible_p langhook.
26919
26920 2009-02-20 Mark Mitchell <mark@codesourcery.com>
26921 Joseph Myers <joseph@codesourcery.com>
26922
26923 * config/arm/arm.c (arm_builtin_va_list): New function.
26924 (arm_expand_builtin_va_start): Likewise.
26925 (arm_gimplify_va_arg_expr): Likewise.
26926 (TARGET_BUILD_BUILTIN_VA_LIST): Define.
26927 (TARGET_BUILD_BUILTIN_VA_START): Likewise.
26928 (TARGET_BUILD_BUILTIN_VA_ARG_EXPR): Likewise.
26929 (va_list_type): New variable.
26930 (arm_mangle_type): Mangle va_list_type appropriately.
26931
26932 2009-02-20 Jakub Jelinek <jakub@redhat.com>
26933
26934 PR middle-end/39157
26935 * Makefile.in (loop-invariant.o): Depend on $(PARAMS_H).
26936 * params.h (LOOP_INVARIANT_MAX_BBS_IN_LOOP): Define.
26937 * params.def (loop-invariant-max-bbs-in-loop): New parameter.
26938 * opts.c (decode_options): Set loop-invariant-max-bbs-in-loop
26939 parameter to 1000 for -O1 by default.
26940 * doc/invoke.texi (loop-invariant-max-bbs-in-loop): Document new
26941 parameter.
26942 * loop-invariant.c: Include params.h.
26943 (move_loop_invariants): Don't call move_single_loop_invariants on
26944 very large loops.
26945
26946 2009-02-20 Jaka Mocnik <jaka@xlab.si>
26947
26948 * calls.c (emit_library_call_value_1): Use slot_offset instead of
26949 offset when calculating bounds for indexing stack_usage_map. Fixes
26950 a buffer overflow with certain target setups.
26951
26952 2009-02-20 Jakub Jelinek <jakub@redhat.com>
26953
26954 PR target/39240
26955 * calls.c (expand_call): Clear try_tail_call if caller and callee
26956 disagree in promotion of function return value.
26957
26958 2009-02-19 Jakub Jelinek <jakub@redhat.com>
26959
26960 PR target/39175
26961 * c-common.c (c_determine_visibility): If visibility changed and
26962 DECL_RTL has been already set, call make_decl_rtl to update symbol
26963 flags.
26964
26965 2009-02-19 H.J. Lu <hongjiu.lu@intel.com>
26966
26967 PR c++/39188
26968 * varasm.c (assemble_variable): Don't check DECL_NAME when
26969 globalizing a variable.
26970
26971 2009-02-19 Joseph Myers <joseph@codesourcery.com>
26972
26973 PR c/38483
26974 * builtins.c (gimplify_va_arg_expr): Evaluate the va_list
26975 expression before any __builtin_trap call.
26976 * c-typeck.c (build_function_call): Convert and check function
26977 arguments before generating a call to a trap. Evaluate the
26978 function arguments before the trap.
26979
26980 2009-02-19 Uros Bizjak <ubizjak@gmail.com>
26981
26982 PR target/39228
26983 * config/i386/i386.md (isinfxf2): Split from isinf<mode>2.
26984 (UNSPEC_FXAM_MEM): New unspec.
26985 (fxam<mode>2_i387_with_temp): New insn and split pattern.
26986 (isinf<mode>2): Use MODEF mode iterator. Force operand[1] through
26987 memory using fxam<mode>2_i387_with_temp to remove excess precision.
26988
26989 2009-02-19 Richard Guenther <rguenther@suse.de>
26990
26991 PR tree-optimization/39207
26992 PR tree-optimization/39074
26993 * tree-ssa-structalias.c (storedanything_id, var_storedanything,
26994 storedanything_tree): New.
26995 (do_ds_constraint): Simplify ANYTHING shortcutting. Update
26996 the STOREDANYTHING solution if the lhs solution contains ANYTHING.
26997 (build_succ_graph): Add edges from STOREDANYTHING to all
26998 non-direct nodes.
26999 (init_base_vars): Initialize STOREDANYTHING.
27000 (compute_points_to_sets): Free substitution info after
27001 building the succ graph.
27002 (ipa_pta_execute): Likewise.
27003
27004 * tree-ssa-structalias.c (struct variable_info): Add may_have_pointers
27005 field.
27006 (do_ds_constraint): Do not add to special var or non-pointer
27007 field solutions.
27008 (type_could_have_pointers): Split out from ...
27009 (could_have_pointers): ... here. For arrays use the element type.
27010 (create_variable_info_for): Initialize may_have_pointers.
27011 (new_var_info): Likewise.
27012 (handle_lhs_call): Make the HEAP variable unknown-sized.
27013 (intra_create_variable_infos): Use a type with pointers for
27014 PARM_NOALIAS, make it unknown-sized.
27015
27016 2009-02-18 H.J. Lu <hongjiu.lu@intel.com>
27017
27018 PR target/39224
27019 * config/i386/i386.c (ix86_return_in_memory): Properly check ABI.
27020
27021 2009-02-18 Jason Merrill <jason@redhat.com>
27022
27023 PR target/39179
27024 * tree-ssa-ccp.c (get_symbol_constant_value): Don't assume zero
27025 value if DECL_EXTERNAL.
27026 * tree-sra.c (sra_walk_gimple_assign): Likewise.
27027 * target.h (gcc_target::binds_local_p): Clarify "module".
27028 * tree.h (TREE_PUBLIC): Clarify "module".
27029
27030 2009-02-17 Xuepeng Guo <xuepeng.guo@intel.com>
27031
27032 PR target/38891
27033 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move the hunk of
27034 initialization for MS_ABI prior to the hunk of !TARGET_MMX.
27035
27036 2009-02-17 H.J. Lu <hongjiu.lu@intel.com>
27037
27038 PR target/39082
27039 * c.opt (Wabi): Support C and ObjC.
27040 (Wpsabi): New.
27041
27042 * c-opts.c (c_common_handle_option): Handle OPT_Wabi.
27043
27044 * config/i386/i386.c (classify_argument): Warn once about the ABI
27045 change when passing union with long double.
27046
27047 * doc/invoke.texi: Update -Wabi for warning psABI changes.
27048
27049 2009-02-18 Joseph Myers <joseph@codesourcery.com>
27050
27051 PR c/35447
27052 * c-parser.c (c_parser_compound_statement): Always enter and leave
27053 a scope.
27054
27055 2009-02-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
27056
27057 PR target/34587
27058 * config/darwin.h (SUPPORTS_INIT_PRIORITY): Define.
27059
27060 2009-02-18 Jakub Jelinek <jakub@redhat.com>
27061
27062 PR tree-optimization/36922
27063 * tree-data-ref.c (initialize_matrix_A): Handle BIT_NOT_EXPR.
27064 * tree-scalar-evolution.c (interpret_rhs_expr, instantiate_scev_1):
27065 Likewise.
27066
27067 2009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
27068
27069 * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
27070 to 0 for EABI64.
27071
27072 2009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
27073
27074 * config/mips/mips.md (type): Reclassify lui_movf as "unknown".
27075
27076 2009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
27077
27078 * config/mips/mips.c (mips_gimplify_va_arg_expr): Fix invalid
27079 tree sharing.
27080
27081 2009-02-17 Ruan Beihong <ruanbeihong@gmail.com>
27082 Richard Sandiford <rdsandiford@googlemail.com>
27083
27084 * config/mips/mips.c (CODE_FOR_loongson_biadd): Delete.
27085 * config/mips/loongson.md (reduc_uplus_<mode>): Rename to...
27086 (loongson_biadd): ...this.
27087
27088 2009-02-17 Richard Guenther <rguenther@suse.de>
27089
27090 PR tree-optimization/39202
27091 * tree-ssa-structalias.c (do_structure_copy): Before collapsing
27092 a var make sure to follow existing collapses.
27093
27094 2009-02-17 Richard Guenther <rguenther@suse.de>
27095
27096 PR middle-end/39214
27097 * langhooks.c (lhd_print_error_function): Check for NULL block.
27098
27099 2009-02-17 Richard Guenther <rguenther@suse.de>
27100
27101 PR tree-optimization/39204
27102 * tree-ssa-pre.c (phi_translate_1): Lookup the value-number
27103 of the PHI arg.
27104
27105 2009-02-17 Uros Bizjak <ubizjak@gmail.com>
27106
27107 * config/soft-fp/double.h: Update from glibc CVS.
27108
27109 2009-02-17 Richard Guenther <rguenther@suse.de>
27110
27111 PR tree-optimization/39207
27112 * tree-ssa-structalias.c (find_what_p_points_to): Do not emit
27113 strict-aliasing warnings for pointers pointing to NULL.
27114
27115 2009-02-16 Joseph Myers <joseph@codesourcery.com>
27116
27117 PR c/35446
27118 * c-parser.c (c_parser_braced_init): Call pop_init_level when
27119 skipping until next close brace.
27120
27121 2009-02-16 H.J. Lu <hongjiu.lu@intel.com>
27122
27123 PR target/37049
27124 * config/i386/i386.c (ix86_expand_push): Set memory alignment
27125 to function argument boundary.
27126
27127 2009-02-16 Hariharan Sandanagobalane <hariharan@picochip.com>
27128
27129 * config/picochip/picochip.md (lea_add): Allow any nonimmediate
27130 in the lea_add. Reload eventually constraints it properly.
27131 * config/picochip/constraints.md: Remove the target constraint
27132 "b", since it is not needed anymore.
27133
27134 2009-02-16 Jakub Jelinek <jakub@redhat.com>
27135
27136 * gthr-dce.h: Uglify function parameter and local variable names.
27137 * gthr-gnat.h: Likewise.
27138 * gthr-mipssde.h: Likewise.
27139 * gthr-nks.h: Likewise.
27140 * gthr-posix95.h: Likewise.
27141 * gthr-posix.h: Likewise.
27142 * gthr-rtems.h: Likewise.
27143 * gthr-single.h: Likewise.
27144 * gthr-solaris.h: Likewise.
27145 * gthr-tpf.h: Likewise.
27146 * gthr-vxworks.h: Likewise.
27147 * gthr-win32.h: Likewise.
27148
27149 2009-02-15 H.J. Lu <hongjiu.lu@intel.com>
27150
27151 PR target/39196
27152 * config/i386/i386.md: Restrict the new peephole2 to move
27153 between MMX/SSE registers.
27154
27155 2009-02-15 Richard Guenther <rguenther@suse.de>
27156
27157 Revert
27158 2009-02-13 Richard Guenther <rguenther@suse.de>
27159
27160 * configure.ac: Enable LFS.
27161 * configure: Re-generate.
27162 * config.in: Likewise.
27163
27164 2009-02-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27165
27166 * config/spu/spu_internals.h (spu_sr, spu_sra, spu_srqw,
27167 spu_srqwbyte, spu_srqwbytebc): Define.
27168 * config/spu/spu-builtins.def (spu_sr, spu_sra, spu_srqw,
27169 spu_srqwbyte, spu_srqwbytebc): New overloaded builtins.
27170 * config/spu/spu.md ("shrqbybi_<mode>", "shrqbi_<mode>",
27171 "shrqby_<mode>"): New insn-and-split patterns.
27172 * config/spu/spu.c (expand_builtin_args): Determine and return
27173 number of operands using spu_builtin_description data.
27174 (spu_expand_builtin_1): Use it.
27175
27176 2009-02-13 Steve Ellcey <sje@cup.hp.com>
27177
27178 PR target/38056
27179 * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Check
27180 TARGET_CONST_GP.
27181
27182 2009-02-13 H.J. Lu <hongjiu.lu@intel.com>
27183
27184 PR target/39149
27185 * config/i386/i386.c (override_options): Correct warning
27186 messages for -malign-loops, -malign-jumps and -malign-functions.
27187
27188 2009-02-13 H.J. Lu <hongjiu.lu@intel.com>
27189
27190 PR target/39152
27191 * config/i386/i386.md: Restrict the new peephole2 to move
27192 between the general purpose registers.
27193
27194 2009-02-13 H.J. Lu <hongjiu.lu@intel.com>
27195
27196 PR target/39162
27197 * config/i386/i386.c (type_natural_mode): Add a new argument.
27198 Return the original mode and warn ABI change if vector size is 32byte.
27199 (function_arg_advance): Updated.
27200 (function_arg): Likewise.
27201 (ix86_function_value): Likewise.
27202 (ix86_return_in_memory): Likewise.
27203 (ix86_sol10_return_in_memory): Likewise.
27204 (ix86_gimplify_va_arg): Likewise.
27205 (function_arg_32): Don't warn ABX ABI change here.
27206 (function_arg_64): Likewise.
27207
27208 2009-02-13 Bernd Schmidt <bernd.schmidt@analog.com>
27209
27210 * loop-iv.c (implies_p): In the final case, test that operands 0
27211 of the two comparisons match.
27212
27213 * config/bfin/bfin.c (find_prev_insn_start): New function.
27214 (bfin_optimize_loop): Use it in some cases instead of PREV_INSN.
27215 (find_next_insn_start): Move.
27216
27217 2009-02-13 Richard Guenther <rguenther@suse.de>
27218
27219 * configure.ac: Enable LFS.
27220 * configure: Re-generate.
27221 * config.in: Likewise.
27222
27223 2009-02-13 Joseph Myers <joseph@codesourcery.com>
27224
27225 PR c/35444
27226 * c-parser.c (c_parser_parms_list_declarator): Discard pending
27227 sizes on syntax error after some arguments have been parsed.
27228
27229 2009-02-12 Jakub Jelinek <jakub@redhat.com>
27230
27231 * doc/invoke.texi (-fira): Remove.
27232
27233 2009-02-12 H.J. Lu <hongjiu.lu@intel.com>
27234
27235 * caller-save.c: Replace regclass.c with reginfo.c in comments.
27236 * recog.c: Likewise.
27237 * rtl.h: Likewise.
27238
27239 2009-02-12 Uros Bizjak <ubizjak@gmail.com>
27240
27241 * longlong.h (sub_ddmmss): New for ia64. Ported from GMP 4.2.
27242 (umul_ppmm): Likewise.
27243 (count_leading_zeros): Likewise.
27244 (count_trailing_zeros): Likewise.
27245 (UMUL_TIME): Likewise.
27246
27247 2009-02-12 H.J. Lu <hongjiu.lu@intel.com>
27248
27249 * config.gcc (ia64*-*-linux*): Add ia64/t-fprules-softfp and
27250 soft-fp/t-softfp to tmake_file.
27251
27252 * config/ia64/ia64.c (ia64_soft_fp_init_libfuncs): New.
27253 (ia64_expand_compare): Use HPUX library for TFmode only for HPUX.
27254 (ia64_builtins) [IA64_BUILTIN_COPYSIGNQ, IA64_BUILTIN_FABSQ,
27255 IA64_BUILTIN_INFQ]: New.
27256 (ia64_init_builtins): Initialize __builtin_infq,
27257 __builtin_fabsq and __builtin_copysignq if not HPUX.
27258 (ia64_expand_builtin): Handle IA64_BUILTIN_COPYSIGNQ,
27259 IA64_BUILTIN_FABSQ and IA64_BUILTIN_INFQ.
27260
27261 * config/ia64/lib1funcs.asm (__divtf3): Define only if
27262 SHARED is defined.
27263 (__fixtfti): Likewise.
27264 (__fixunstfti): Likewise.
27265 (__floattitf): Likewise.
27266
27267 * config/ia64/libgcc-glibc.ver: New.
27268 * config/ia64/t-fprules-softfp: Likewise.
27269 * config/ia64/sfp-machine.h: Likewise.
27270
27271 * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): New.
27272 (LIBGCC2_TF_CEXT): Likewise.
27273 (TF_SIZE): Likewise.
27274 (TARGET_INIT_LIBFUNCS): Likewise.
27275
27276 * config/ia64/t-glibc (SHLINB_MAPFILES):
27277 Add $(srcdir)/config/ia64/libgcc-glibc.ver.
27278
27279 2009-02-12 H.J. Lu <hongjiu.lu@intel.com>
27280
27281 * config/i386/i386.c (construct_container): Rewrite processing
27282 BLKmode with X86_64_SSE_CLASS.
27283
27284 2009-02-12 Paolo Bonzini <bonzini@gnu.org>
27285
27286 PR target/39152
27287 * config/i386/i386.md: Replace simplify_replace_rtx with
27288 replace_rtx in the new peephole2.
27289
27290 2009-02-12 Nathan Sidwell <nathan@codesourcery.com>
27291
27292 * doc/invoke.texi (Optimize Options): Stop claiming inlining and
27293 loop unrolling do not happen at -O2.
27294
27295 2009-02-12 Michael Matz <matz@suse.de>
27296
27297 * gcc.c (ASM_DEBUG_SPEC): Check for -g0.
27298
27299 2009-02-12 Jakub Jelinek <jakub@redhat.com>
27300
27301 * dwarf2out.c (dwarf2out_finish): Force output of comp_unit_die
27302 for -g3.
27303
27304 2009-02-12 Ben Elliston <bje@au.ibm.com>
27305
27306 * config/rs6000/rs6000.md (allocate_stack): Use _stack form of
27307 patterns when updating the back chain. Missed in the 2009-02-10
27308 change.
27309
27310 2009-02-11 Janis Johnson <janis187@us.ibm.com>
27311
27312 * doc/extend.texi (Decimal Floating Types): Update identifier of
27313 draft TR and list of missing support.
27314
27315 2009-02-11 Jakub Jelinek <jakub@redhat.com>
27316
27317 PR middle-end/39154
27318 * gimplify.c (omp_notice_variable): If adding GOVD_SEEN
27319 bit to variable length decl's flags, add it also to its
27320 pointer replacement variable.
27321
27322 2009-02-11 Uros Bizjak <ubizjak@gmail.com>
27323 Jakub Jelinek <jakub@redhat.com>
27324
27325 PR target/39118
27326 * config/i386/i386.md (UNSPEC_MEMORY_BLOCKAGE): New constant.
27327 (memory_blockage): New expander.
27328 (*memory_blockage): New insn pattern.
27329 * config/i386/i386.c (ix86_expand_prologue): Use memory_blockage
27330 instead of general blockage at the end of function prologue when
27331 frame pointer is used to access red zone area. Do not emit blockage
27332 when profiling, it is emitted in generic code.
27333 (ix86_expand_epilogue): Emit memory_blockage at the beginning of
27334 function epilogue when frame pointer is used to access red zone area.
27335
27336 2009-02-11 Paolo Bonzini <bonzini@gnu.org>
27337
27338 PR target/38824
27339 * config/i386/i386.md: Add two new peephole2 to avoid mov followed
27340 by arithmetic with memory operands.
27341 * config/i386/predicates.md (commutative_operator): New.
27342
27343 2009-02-10 Janis Johnson <janis187@us.ibm.com>
27344
27345 * doc/extend.texi (Fixed-Point Types): Break long paragraphs into
27346 bulleted lists.
27347
27348 2009-02-10 Eric Botcazou <ebotcazou@adacore.com>
27349
27350 * alias.h (record_alias_subset): Declare.
27351 * alias.c (record_alias_subset): Make global.
27352
27353 2009-02-10 Nick Clifton <nickc@redhat.com>
27354
27355 * tree-parloops.c: Change license to GPLv3.
27356 * ipa-struct-reorg.c: Change license to GPLv3.
27357 * ipa-struct-reorg.h: Change license to GPLv3.
27358
27359 2009-02-10 Steve Ellcey <sje@cup.hp.com>
27360
27361 PR c/39084
27362 * c-decl.c (start_struct): Return NULL on error.
27363
27364 2009-02-10 Jakub Jelinek <jakub@redhat.com>
27365
27366 PR middle-end/39124
27367 * cfgloopmanip.c (remove_path): Call remove_bbs after
27368 cancel_loop_tree, not before it.
27369
27370 PR target/39139
27371 * function.h (struct function): Add has_local_explicit_reg_vars bit.
27372 * gimplify.c (gimplify_bind_expr): Set it if local DECL_HARD_REGISTER
27373 VAR_DECLs were seen.
27374 * tree-ssa-live.c (remove_unused_locals): Recompute
27375 cfun->has_local_explicit_reg_vars.
27376 * tree-ssa-sink.c (statement_sink_location): Don't sink BLKmode
27377 copies or clearings if cfun->has_local_explicit_reg_vars.
27378
27379 2009-02-10 Uros Bizjak <ubizjak@gmail.com>
27380
27381 PR target/39118
27382 * config/i386/i386.c (expand_prologue): Emit blockage at the end
27383 of function prologue when frame pointer is used to access
27384 red zone area.
27385
27386 2009-02-10 Richard Guenther <rguenther@suse.de>
27387
27388 PR middle-end/39127
27389 * gimplify.c (gimple_regimplify_operands): Always look if
27390 we need to create a temporary.
27391
27392 2009-02-10 Richard Guenther <rguenther@suse.de>
27393
27394 PR tree-optimization/39132
27395 * tree-loop-distribution.c (todo): New global var.
27396 (generate_memset_zero): Trigger TODO_rebuild_alias.
27397 (tree_loop_distribution): Return todo.
27398
27399 2009-02-10 H.J. Lu <hongjiu.lu@intel.com>
27400
27401 PR target/39119
27402 * config/i386/i386.c (x86_64_reg_class): Remove X86_64_AVX_CLASS.
27403 (x86_64_reg_class_name): Removed.
27404 (classify_argument): Return 0 if bytes > 32. Return 0 if the
27405 first one isn't X86_64_SSE_CLASS or any other ones aren't
27406 X86_64_SSEUP_CLASS when size > 16bytes. Don't turn
27407 X86_64_SSEUP_CLASS into X86_64_SSE_CLASS if the preceded one
27408 is X86_64_SSEUP_CLASS. Set AVX modes to 1 X86_64_SSE_CLASS
27409 and 3 X86_64_SSEUP_CLASS.
27410 (construct_container): Remove X86_64_AVX_CLASS. Handle 4
27411 registers with 1 X86_64_SSE_CLASS and 3 X86_64_SSEUP_CLASS.
27412
27413 2009-02-10 Ben Elliston <bje@au.ibm.com>
27414
27415 * config/rs6000/rs6000.md (allocate_stack): Always use an update
27416 form instruction to update the stack back chain word, even if the
27417 user has disabled the generation of update instructions.
27418 (movdi_<mode>_update_stack): New.
27419 (movsi_update_stack): Likewise.
27420 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Likewise,
27421 always use an update form instruction to update the stack back
27422 chain word.
27423
27424 2009-02-09 Sebastian Pop <sebastian.pop@amd.com>
27425
27426 PR middle-end/38953
27427 * graphite.c (if_region_set_false_region): After moving a region in
27428 the false branch of a condition, remove the empty dummy basic block.
27429 (gloog): Remove wrong fix for PR38953.
27430
27431 2009-02-09 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27432
27433 * config/spu/spu.c (array_to_constant): Fix (latent) wrong-code
27434 generation due to implicit sign extension.
27435
27436 2009-02-09 Eric Botcazou <ebotcazou@adacore.com>
27437
27438 PR middle-end/38981
27439 * tree-ssa-coalesce.c (add_coalesce): Cap the costs of coalesce pairs
27440 at MUST_COALESCE_COST-1 instead of MUST_COALESCE_COST.
27441
27442 2009-02-09 Richard Guenther <rguenther@suse.de>
27443
27444 PR middle-end/35202
27445 * convert.c (convert_to_real): Disable (float)fn((double)x)
27446 to fnf(x) conversion if errno differences may occur and
27447 -fmath-errno is set.
27448
27449 2009-02-07 Anatoly Sokolov <aesok@post.ru>
27450
27451 * config/avr/avr.c (avr_mcu_t): Add ata6289 device.
27452 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
27453 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
27454
27455 2009-02-06 Joseph Myers <joseph@codesourcery.com>
27456
27457 PR c/35434
27458 * c-common.c (handle_alias_attribute): Disallow attribute for
27459 anything not a FUNCTION_DECL or VAR_DECL.
27460
27461 2009-02-06 Janis Johnson <janis187@us.ibm.com>
27462
27463 PR c/39035
27464 * real.c (do_compare): Special-case compare of zero against
27465 decimal float value.
27466
27467 2009-02-06 Joseph Myers <joseph@codesourcery.com>
27468
27469 PR c/36432
27470 * c-decl.c (grokdeclarator): Don't treat [] declarators in fields
27471 as indicating flexible array members unless the field itself is
27472 being declarared as the incomplete array.
27473
27474 2009-02-06 Jan Hubicka <jh@suse.cz>
27475
27476 PR tree-optimization/38844
27477 * ipa-inline.c (try_inline): Stop inlining recursion when edge
27478 is already inlined.
27479
27480 2009-02-06 Richard Guenther <rguenther@suse.de>
27481
27482 PR middle-end/38977
27483 * tree-cfg.c (need_fake_edge_p): Force a fake edge for
27484 fork because we may expand it as __gcov_fork.
27485
27486 2009-02-06 Nick Clifton <nickc@redhat.com>
27487
27488 * config/m32c/m32c.h (PCC_BITFIELD_TYPE_MATTERS): Define to zero.
27489
27490 2009-02-06 Paolo Bonzini <bonzini@gnu.org>
27491
27492 PR tree-optimization/35659
27493 * tree-ssa-sccvn.c (vn_constant_eq, vn_reference_eq, vn_nary_op_eq
27494 vn_phi_eq): Shortcut if hashcode does not match.
27495 (vn_reference_op_compute_hash): Do not call iterative_hash_expr for
27496 NULL operands.
27497 * tree-ssa-pre.c (pre_expr_hash): Look at hashcode if available,
27498 and avoid iterative_hash_expr.
27499 (FOR_EACH_VALUE_ID_IN_SET): New.
27500 (value_id_compare): Remove.
27501 (sorted_array_from_bitmap_set): Use FOR_EACH_VALUE_ID_IN_SET to
27502 sort expressions by value id.
27503
27504 2009-02-05 Kaz Kojima <kkojima@gcc.gnu.org>
27505
27506 PR target/38991
27507 * config/sh/predicates.md (general_movsrc_operand): Don't check
27508 the subreg of system registers here.
27509
27510 2009-02-05 Jakub Jelinek <jakub@redhat.com>
27511
27512 PR c++/39106
27513 * cgraphunit.c (cgraph_function_versioning): Clear also DECL_VIRTUAL_P
27514 on the copied decl.
27515
27516 2009-02-05 Paolo Bonzini <bonzini@gnu.org>
27517
27518 PR rtl-optimization/39110
27519 * rtlanal.c (rtx_addr_can_trap_p_1): Shortcut unaligned
27520 addresses, not aligned ones.
27521
27522 2009-02-05 Daniel Berlin <dberlin@dberlin.org>
27523 Richard Guenther <rguenther@suse.de>
27524
27525 PR tree-optimization/39100
27526 * tree-ssa-structalias.c (do_ds_constraint): Actually do what the
27527 comment says and add edges.
27528
27529 2009-02-05 Joseph Myers <joseph@codesourcery.com>
27530
27531 PR c/35435
27532 * c-common.c (handle_tls_model_attribute): Ignore attribute for
27533 non-VAR_DECLs without checking DECL_THREAD_LOCAL_P.
27534
27535 2009-02-04 Tobias Grosser <grosser@fim.uni-passau.de>
27536
27537 * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use,
27538 sese_build_livein_liveouts_bb, sese_build_livein_liveouts,
27539 register_bb_in_sese, new_sese, free_sese): Moved.
27540 (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains,
27541 outermost_loop_in_scop, build_scop_iteration_domain,
27542 expand_scalar_variables_ssa_name, get_vdef_before_scop,
27543 limit_scops): Use bb_in_sese_p instead of bb_in_scop_p.
27544 Use loop_in_sese_p instead of loop_in_scop_p.
27545 (new_graphite_bb, gloog): Do not initialize SCOP_BBS_B.
27546 (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP and SCOP_BBS_B.
27547 (scopdet_basic_block_info): Fix bug in scop detection.
27548 (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
27549 eq_loop_to_cloog_loop): Remove.
27550 (nb_loops_around_loop_in_scop, nb_loop
27551 ref_nb_loops): Moved here...
27552 * graphite.h (ref_nb_loops): ... from here.
27553 (struct scop): Remove bbs_b bitmap and loop2cloog_loop.
27554 (loop_domain_dim, loop_iteration_vector_dim): Remove.
27555 (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed.
27556
27557 2009-02-04 Paolo Bonzini <bonzini@gnu.org>
27558 Hans-Peter Nilsson <hp@axis.com>
27559
27560 PR rtl-optimization/37889
27561 * rtlanal.c (rtx_addr_can_trap_p_1): Add offset and size arguments.
27562 Move offset handling from PLUS to before the switch. Use new
27563 arguments when considering SYMBOL_REFs too.
27564 (rtx_addr_can_trap_p): Pass dummy offset and size.
27565 (enum may_trap_p_flags): Remove.
27566 (may_trap_p_1): Pass size from MEM_SIZE.
27567
27568 PR rtl-optimization/38921
27569 * loop-invariant.c (find_invariant_insn): Use may_trap_or_fault_p.
27570 * rtl.h (may_trap_after_code_motion_p): Delete prototype.
27571 * rtlanal.c (may_trap_after_code_motion_p): Delete.
27572 (may_trap_p, may_trap_or_fault_p): Pass 0/1 as flags.
27573
27574 2009-02-04 H.J. Lu <hongjiu.lu@intel.com>
27575
27576 AVX Programming Reference (January, 2009)
27577 * config/i386/sse.md (*vpclmulqdq): New.
27578
27579 2009-02-04 Jakub Jelinek <jakub@redhat.com>
27580
27581 PR tree-optimization/38977
27582 PR gcov-profile/38292
27583 * calls.c (special_function_p): Disregard __builtin_ prefix.
27584
27585 2009-02-04 Hariharan Sandanagobalane <hariharan@picochip.com>
27586
27587 * config/picochip/picochip.c (GO_IF_LEGITIMATE_ADDRESS): Disallow
27588 non-indexable addresses even before reload.
27589
27590 2009-02-03 Joseph Myers <joseph@codesourcery.com>
27591
27592 PR c/29129
27593 * c-decl.c (grokdeclarator): Mark [*] arrays in field declarators
27594 as having variable size. Do not give an error for unnamed
27595 parameters with [*] declarators. Give a warning for type names
27596 with [*] declarators and mark them as variable size.
27597 * c-parser.c (c_parser_sizeof_expression): Do not give an error
27598 for sizeof applied to [*] type names.
27599
27600 2009-02-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
27601
27602 PR C++/36607
27603 * convert.c (convert_to_integer): Treat OFFSET_TYPE like INTEGER_TYPE.
27604
27605 2009-02-03 Jakub Jelinek <jakub@redhat.com>
27606
27607 * gcc.c (process_command): Update copyright notice dates.
27608 * gcov.c (print_version): Likewise.
27609 * gcov-dump.c (print_version): Likewise.
27610 * mips-tfile.c (main): Likewise.
27611 * mips-tdump.c (main): Likewise.
27612
27613 2009-02-03 Joseph Myers <joseph@codesourcery.com>
27614
27615 PR c/35433
27616 * c-typeck.c (composite_type): Set TYPE_SIZE and TYPE_SIZE_UNIT
27617 for composite type involving a zero-length array type.
27618
27619 2009-02-03 Jakub Jelinek <jakub@redhat.com>
27620
27621 PR target/35318
27622 * function.c (match_asm_constraints_1): Skip over
27623 initial optional % in the constraint.
27624
27625 PR inline-asm/39059
27626 * c-parser.c (c_parser_postfix_expression): If fixed point is not
27627 supported, don't accept FIXED_CSTs.
27628 * c-decl.c (finish_declspecs): Error if fixed point is not supported
27629 and _Sat is used without _Fract/_Accum. Set specs->type to
27630 integer_type_node for cts_fract/cts_accum if fixed point is not
27631 supported.
27632
27633 2009-02-02 Catherine Moore <clm@codesourcery.com>
27634
27635 * sde.h (SUBTARGET_ARM_SPEC): Don't assemble -fpic code as -mabicalls.
27636
27637 2009-02-02 Richard Sandiford <rdsandiford@googlemail.com>
27638
27639 * config/mips/mips.h (FILE_HAS_64BIT_SYMBOLS): New macro.
27640 (ABI_HAS_64BIT_SYMBOLS): Use it.
27641 (DWARF2_ADDR_SIZE): Use it instead of ABI_HAS_64BIT_SYMBOLS.
27642
27643 2009-02-02 Paul Brook <paul@codesourcery.com>
27644
27645 * config/arm/arm.md (arm_addsi3): Add r/r/k alternative.
27646
27647 2009-02-02 Jakub Jelinek <jakub@redhat.com>
27648
27649 PR inline-asm/39058
27650 * recog.h (asm_operand_ok): Add constraints argument.
27651 * recog.c (asm_operand_ok): Likewise. If it is set, for digits
27652 recurse on matching constraint.
27653 (check_asm_operands): Pass constraints as 3rd argument to
27654 asm_operand_ok. Don't look up matching constraint here.
27655 * stmt.c (expand_asm_operands): Pass NULL as 3rd argument
27656 to asm_operand_ok.
27657
27658 2009-02-02 Ben Elliston <bje@au.ibm.com>
27659
27660 * doc/tm.texi (Storage Layout): Fix TARGET_ALIGN_ANON_BITFIELD and
27661 TARGET_NARROW_VOLATILE_BITFIELD macro names.
27662
27663 2009-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
27664
27665 * doc/install.texi (hppa*-hp-hpux*): Update binutils and linker
27666 information. Remove some obsolete information. Reorganize.
27667
27668 * config/pa/fptr.c: Revert license to GPL 2.
27669 * config/pa/milli64.S: Likewise.
27670
27671 2009-01-31 Dave Korn <dave.korn.cygwin@gmail.com>
27672
27673 PR target/38904
27674 * mkmap-flat.awk (END): Use pe_dll command-line arg to pass
27675 LIBRARY name in, instead of hard-coding it.
27676 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add an
27677 extra target make frag to tmake_files according to EH model.
27678 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
27679 * config/i386/t-dw2-eh, config/i386/t-sjlj-eh: Add new target
27680 frags that define makefile variable EH_MODEL appropriately.
27681 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Add comment.
27682 * config/i386/cygwin.h (LIBGCC_EH_EXTN): Define to nothing or
27683 to "-sjlj" according to type of EH configured.
27684 (LIBGCC_SONAME): Concatenate it to shared library base name.
27685 * config/i386/mingw32.h (LIBGCC_EH_EXTN): Define to "_dw2" or
27686 to "_sjlj" according to type of EH configured.
27687 (LIBGCC_SONAME): Concatenate it to shared library base name.
27688 * config/i386/t-cygming (SHLIB_SONAME): Use EH_MODEL.
27689 (SHLIB_LINK): Add missing semicolon to if-else construct.
27690 (SHLIB_MKMAP_OPTS): Pass library name to mkmap-flat.awk as
27691 string value of "pe_dll" command-line option.
27692 * config/i386/t-cygwin (SHLIB_EH_EXTENSION): New helper.
27693 (SHLIB_SONAME): Use it when overriding t-cygming default.
27694 (SHLIB_IMPLIB): Override t-cygming default.
27695 (SHLIB_MKMAP_OPTS): Pass library name to mkmap-flat.awk as
27696 string value of "pe_dll" command-line option.
27697
27698 2009-01-31 Dave Korn <dave.korn.cygwin@gmail.com>
27699
27700 PR target/38952
27701 * config/i386/i386.c (ix86_builtin_setjmp_frame_value): New.
27702 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Override default to point at it.
27703
27704 2009-01-31 Richard Guenther <rguenther@suse.de>
27705
27706 PR tree-optimization/38937
27707 * tree-ssa-structalias.c (do_sd_constraint): Do not shortcut
27708 computing the transitive closure.
27709
27710 2009-01-30 Richard Guenther <rguenther@suse.de>
27711
27712 PR tree-optimization/39041
27713 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
27714 Propagate variable indices only if the types match for this stmt.
27715
27716 2009-01-30 Jakub Jelinek <jakub@redhat.com>
27717
27718 PR target/39013
27719 * c-decl.c (pop_scope): Set DECL_EXTERNAL for functions declared
27720 inline but never defined.
27721
27722 2009-01-30 Wolfgang Gellerich <gellerich@de.ibm.com>
27723
27724 * config/s390/s390.md (*insv<mode>_reg_extimm): Removed.
27725 (*insv_h_di_reg_extimm): New insn.
27726 (*insv_l<mode>_reg_extimm): New insn.
27727
27728 2009-01-30 Hariharan Sandanagobalane <hariharan@picochip.com>
27729
27730 * config/picochip/picochip.c (flag_conserve_stack): set
27731 PARAM_LARGE_STACK_FRAME and PARAM_STACK_FRAME_GROWTH to zero under
27732 fconserve-stack. Reduce call-overhead used by inliner.
27733
27734 2009-01-30 Hariharan Sandanagobalane <hariharan@picochip.com>
27735
27736 PR/38157
27737 * common.opt (flag_conserve_stack): Initialised to zero.
27738
27739 2009-01-30 Kai Tietz <kai.tietz@onevision.com>
27740
27741 PR/39002
27742 * config/i386/i386.c (ix86_can_use_return_insn_p): Check for nsseregs.
27743 (ix86_expand_epilogue): Take nsseregs in account to use proper restore
27744 method.
27745
27746 2009-01-29 H.J. Lu <hongjiu.lu@intel.com>
27747
27748 * ira-color.c (allocno_reload_assign): Update comments.
27749 * regmove.c (regmove_optimize): Likewise.
27750
27751 * ra.h: Removed.
27752
27753 2009-01-29 Robert Millan <rmh@aybabtu.com>
27754
27755 * config.gcc: Recognize GNU/kOpenSolaris (*-*-kopensolaris*-gnu).
27756 * config/i386/kopensolaris-gnu.h: New file. Undefine
27757 `MD_UNWIND_SUPPORT'.
27758 * config/kopensolaris-gnu.h: New file (based on kfreebsd-gnu.h).
27759
27760 2009-01-29 Kazu Hirata <kazu@codesourcery.com>
27761
27762 PR tree-optimization/39007
27763 * tree-loop-distribution.c (generate_builtin): Use
27764 recompute_dominator to compute the immediate dominator of the
27765 basic block just after the loop.
27766
27767 2009-01-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
27768
27769 * config/i386/sol2-10.h [!HAVE_AS_IX86_DIFF_SECT_DELTA]
27770 (ASM_OUTPUT_DWARF_PCREL): Define.
27771
27772 2009-01-29 Vladimir Makarov <vmakarov@redhat.com>
27773
27774 * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Modify description.
27775 * doc/passes.texi: Remove entries about regclass, local-alloc, and
27776 global. Modify entries about regmove and IRA.
27777
27778 * ra-conflict.c: Remove the file.
27779
27780 * reload.c (push_reload, find_dummy_reload): Remove flag_ira.
27781
27782 * tree-pass.h (pass_local_alloc, pass_global_alloc): Remove.
27783 (pass_regclass_init): Rename to pass_reginfo_init.
27784
27785 * cfgloopanal.c (estimate_reg_pressure_cost): Remove flag_ira.
27786
27787 * toplev.h (flag_ira): Remove.
27788
27789 * caller-save.c (setup_save_areas): Remove flag_ira.
27790
27791 * ira-color.c (ira_reuse_stack_slot, ira_mark_new_stack_slot): Ditto.
27792
27793 * global.c: Remove the file.
27794
27795 * opts.c (decode_options): Remove flag_ira.
27796
27797 * hard-reg-set.h (losing_caller_save_reg_set): Remove.
27798
27799 * regmove.c: Modify file description.
27800 (find_use_as_address, try_auto_increment): Define them only if
27801 AUTO_INC_DEC is defined.
27802 (replacement_quality, replace_in_call_usage, fixup_match_1,
27803 stable_and_no_regs_but_for_p): Remove.
27804 (reg_set_in_bb): Make it static.
27805 (regmove_optimize): Remove flag_ira and code which worked for
27806 !flag_ira.
27807
27808 * local-alloc.c: Remove the file.
27809
27810 * common.opt (fira): Remove.
27811
27812 * ira.c: Include except.h.
27813 (eliminable_regset): Move from global.c.
27814 (mark_elimination): Ditto. Remove flag_ira.
27815 (reg_renumber, struct equivalence, reg_equiv, equiv_mem,
27816 equiv_mem_modified, validate_equiv_mem_from_store,
27817 validate_equiv_mem, equiv_init_varies_p, equiv_init_movable_p,
27818 contains_replace_regs, memref_referenced_p, memref_used_between_p,
27819 no_equiv, recorded_label_ref): Move from local-alloc.c.
27820 (update_equiv_regs): Ditto. Make it static.
27821 (print_insn_chain, print_insn_chains): Move it from global.c.
27822 (pseudo_for_reload_consideration_p): Ditto. Remove flag_ira.
27823 (build_insn_chain): Ditto. Make it static.
27824 (ra_init_live_subregs): Move from ra-conflict.c. Make it static.
27825 Rename to init_live_subregs.
27826 (gate_ira): Remove flag_ira.
27827
27828 * regclass.c: Rename reginfo.c. Change file description.
27829 (FORBIDDEN_INC_DEC_CLASSES): Remove.
27830 (reg_class_superclasses, forbidden_inc_dec_class, in_inc_dec): Remove.
27831 (init_reg_sets_1): Remove code for evaluation of
27832 reg_class_superclasses and losing_caller_save_reg_set.
27833 (init_regs): Remove init_reg_autoinc.
27834 (struct costs, costs, init_cost, ok_for_index_p_nonstrict,
27835 ok_for_base_p_nonstrict): Remove.
27836 (regclass_init): Rename to reginfo_init. Don't initialize init_cost.
27837 (pass_regclass_init): Rename to pass_reginfo_init. Modify
27838 corresponding entries.
27839 (dump_regclass, record_operand_costs, scan_one_insn,
27840 init_reg_autoinc, regclass, record_reg_classes, copy_cost,
27841 record_address_regs, auto_inc_dec_reg_p): Remove.
27842 (gt-regclass.h): Rename to gt-reginfo.h.
27843
27844 * rtl.h (dump_global_regs, retry_global_alloc,
27845 build_insn_chain, dump_local_alloc, update_equiv_regs): Remove.
27846
27847 * Makefile.in (RA_H): Remove.
27848 (OBJS-common): Remove global.o, local-alloc.o, and ra-conflict.o.
27849 Rename regclass.o to reginfo.o.
27850 (regclass.o): Rename to reginfo.o. Rename gt-regclass.h to
27851 gt-reginfo.h.
27852 (global.o, local-alloc.o, ra-conflict.o): Remove entries.
27853 (GTFILES): Rename regclass.c to reginfo.c.
27854
27855 * passes.c (init_optimization_passes): Remove pass_local_alloc and
27856 pass_global_alloc. Rename pass_regclass_init to pass_reginfo_init.
27857
27858 * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
27859 count_spilled_pseudo, find_reg, alter_reg, delete_output_reload):
27860 Remove flag_ira.
27861 (finish_spills): Ditto. Remove code for !flag_ira.
27862
27863 2009-01-29 Kenneth Zadeck <zadeck@naturalbridge.com>
27864
27865 PR middle-end/35854
27866 * doc/invoke.texi (rtl debug options): Complete rewrite.
27867 * auto-inc-dec.c (pass_inc_dec): Rename pass from "auto-inc-dec"
27868 to auto_inc_dec".
27869 * mode-switching.c (pass_mode_switching): Rename pass from
27870 "mode-sw" to "mode_sw".
27871 * except.c (pass_convert_to_eh_ranges): Rename pass from
27872 "eh-ranges" to "eh_ranges".
27873 * lower-subreg.c (pass_lower_subreg): Renamed pass from "subreg"
27874 to "subreg1".
27875
27876
27877 2009-01-29 Andrey Belevantsev <abel@ispras.ru>
27878 Alexander Monakov <amonakov@ispras.ru>
27879
27880 PR middle-end/38857
27881 * sel-sched.c (count_occurrences_1): Check that *cur_rtx is a hard
27882 register.
27883 (move_exprs_to_boundary): Change return type and pass through
27884 should_move from move_op. Relax assert. Update usage ...
27885 (schedule_expr_on_boundary): ... here. Use should_move instead of
27886 cant_move.
27887 (move_op_orig_expr_found): Indicate that insn was disconnected from
27888 stream.
27889 (code_motion_process_successors): Do not call after_merge_succs
27890 callback if original expression was not found when traversing any of
27891 the branches.
27892 (code_motion_path_driver): Change return type. Update prototype.
27893 (move_op): Update comment. Add a new parameter (should_move). Update
27894 prototype. Set *should_move based on indication provided by
27895 move_op_orig_expr_found.
27896
27897 2009-01-28 Pat Haugen <pthaugen@us.ibm.com>
27898
27899 * doc/invoke.texi (avoid-indexed-addresses): Document new option.
27900 * config/rs6000/rs6000-protos.h (avoiding_indexed_address_p): Declare.
27901 * config/rs6000/rs6000.opt (avoid-indexed-addresses): New option.
27902 * config/rs6000/rs6000.c (rs6000_override_options): Default
27903 avoid-indexed-addresses on for Power6, off for everything else.
27904 (avoiding_indexed_address_p): New function.
27905 (rs6000_legitimize_address): Use it.
27906 (rs6000_legitimate_address): Likewise.
27907 * config/rs6000/rs6000.md (movXX_updateX): Likewise
27908
27909 2009-01-28 Kazu Hirata <kazu@codesourcery.com>
27910
27911 PR tree-optimization/38997
27912 * tree-loop-distribution.c (generate_memset_zero): Use
27913 POINTER_PLUS_EXPR for a pointer addition.
27914
27915 2009-01-28 Andreas Krebbel <krebbel1@de.ibm.com>
27916
27917 * config/s390/s390.md (bswap<mode>2): New pattern added.
27918
27919 2009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
27920
27921 * config/s390/s390.md (*tls_load_31): Added type attribute.
27922
27923 2009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
27924
27925 * config/s390/s390.md: Fix a few comments.
27926
27927 2009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
27928
27929 * config/s390/s390.md (*tmsi_reg): Fixed z10prop attribute.
27930 (*tm<mode>_full): Fixed z10prop attribute.
27931 (*tst<mode>_extimm): Fixed z10prop attribute.
27932 (*tst<mode>_cconly_extimm): Fixed z10prop attribute.
27933 (*tstqiCCT_cconly): Fixed z10prop attribute.
27934 (*cmpsi_ccu_zerohi_rlsi): Fixed z10prop attribute.
27935 (*movsi_larl): Fixed z10prop attribute.
27936 (*movsi_zarch): Fixed z10prop attribute.
27937 (*movsi_eas): Fixed z10prop attribute.
27938 (*movhi): Fixed z10prop attribute.
27939 (*movqi): Fixed z10prop attribute.
27940 (*movstrictqi): Fixed z10prop attribute.
27941 (*mov<mode>): Fixed z10prop attribute.
27942 (*movcc): Fixed z10prop attribute.
27943 (*sethighpartdi_64): Fixed z10prop attribute.
27944 (*zero_extendhi<mode>2_z10): Fixed z10prop attribute.
27945 (*negdi2_sign_cc): Fixed z10prop attribute.
27946 (*negdi2_sign): Fixed z10prop attribute.
27947 (*absdi2_sign_cc): Fixed z10prop attribute.
27948 (*absdi2_sign): Fixed z10prop attribute.
27949 (*negabsdi2_sign_cc): Fixed z10prop attribute.
27950 (*negabsdi2_sign): Fixed z10prop attribute.
27951 (*cmp_and_trap_signed_int<mode>): Fixed z10prop attribute.
27952 (*cmp_and_trap_unsigned_int<mode>): Fixed z10prop attribute.
27953 (doloop_si64): Fixed z10prop attribute.
27954 (doloop_si31): Fixed z10prop attribute.
27955 (doloop_long): Fixed z10prop attribute.
27956 (indirect_jump): Fixed z10prop attribute.
27957 (nop): Fixed z10prop attribute.
27958 (main_base_64): Fixed z10prop attribute.
27959 (reload_base_64): Fixed z10prop attribute.
27960
27961 2009-01-28 Jakub Jelinek <jakub@redhat.com>
27962
27963 PR rtl-optimization/38740
27964 * reorg.c (gate_handle_delay_slots): Avoid dbr scheduling
27965 if !optimize.
27966 * config/mips/mips.c (mips_reorg): Likewise.
27967
27968 2009-01-28 Richard Guenther <rguenther@suse.de>
27969
27970 PR tree-optimization/38926
27971 * tree-ssa-pre.c (add_to_value): Assert we add only expressions
27972 with the correct value id to a value.
27973 (do_regular_insertion): Use the value number of edoubleprime
27974 for the value number of the expr.
27975
27976 Revert
27977 2008-08-21 Richard Guenther <rguenther@suse.de>
27978
27979 * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
27980 a PHI ask VN if it is already available.
27981 * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
27982 * tree-ssa-sccvn.c (vn_phi_lookup): Export.
27983
27984 2009-01-28 Jakub Jelinek <jakub@redhat.com>
27985
27986 PR middle-end/38934
27987 * tree-vrp.c (extract_range_from_assert): For LE_EXPR and LT_EXPR
27988 set to varying whenever max has TREE_OVERFLOW set, similarly
27989 for GE_EXPR and GT_EXPR and TREE_OVERFLOW min.
27990
27991 2009-01-28 Richard Guenther <rguenther@suse.de>
27992
27993 PR middle-end/38908
27994 * tree-ssa.c (warn_uninitialized_var): Do not warn for seemingly
27995 uninitialized aggregate uses in call arguments.
27996
27997 2009-01-28 Paolo Bonzini <bonzini@gnu.org>
27998
27999 PR tree-optimization/38984
28000 * tree-ssa-structalias.c (get_constraints_for_1): Do not use
28001 the nothing_id variable if -fno-delete-null-pointer-checks.
28002
28003 2009-01-28 Uros Bizjak <ubizjak@gmail.com>
28004
28005 PR target/38988
28006 * config/i386/i386.md (set_rip_rex64): Wrap operand 1 in label_ref.
28007 (set_got_offset_rex64): Ditto.
28008
28009 2009-01-27 H.J. Lu <hongjiu.lu@intel.com>
28010
28011 PR target/38941
28012 * doc/extend.texi: Improve local variable with asm reg.
28013
28014 2009-01-27 Adam Nemet <anemet@caviumnetworks.com>
28015
28016 * c.opt (Wpacked-bitfield-compat): Change init value to -1.
28017 * c-opts.c (c_common_post_options): If -W*packed-bitfield-compat
28018 was not supplied then set warn_packed_bitfield_compat to the
28019 default value of 1.
28020 * stor-layout.c (place_field): Check warn_packed_bitfield_compat
28021 against 1.
28022
28023 2009-01-27 Richard Guenther <rguenther@suse.de>
28024
28025 PR tree-optimization/38503
28026 * cfgexpand.c (expand_gimple_basic_block): Ignore
28027 GIMPLE_CHANGE_DYNAMIC_TYPE during expansion.
28028 * tree-ssa-structalias.c (set_uids_in_ptset): Do not prune
28029 variables that cannot have TBAA applied.
28030 (compute_points_to_sets): Do not remove GIMPLE_CHANGE_DYNAMIC_TYPE
28031 statements.
28032
28033 2009-01-27 Uros Bizjak <ubizjak@gmail.com>
28034
28035 PR middle-end/38969
28036 * calls.c (initialize_argument_information): Do not wrap complex
28037 arguments in SAVE_EXPR.
28038
28039 2009-01-26 Andreas Tobler <a.tobler@schweiz.org>
28040
28041 * config/t-vxworks (LIBGCC2_INCLUDES): Fix typo.
28042 (INSTALL_LIBGCC): Revert typo commit.
28043
28044 2009-01-26 Richard Guenther <rguenther@suse.de>
28045
28046 PR tree-optimization/38745
28047 * tree-ssa-alias.c (update_alias_info_1): Exclude RESULT_DECL
28048 from special handling.
28049
28050 2009-01-26 Richard Guenther <rguenther@suse.de>
28051
28052 PR tree-optimization/38745
28053 * tree-ssa.c (execute_update_addresses_taken): Do not include
28054 variables that cannot possibly be a register in not_reg_needs.
28055 Do not clear TREE_ADDRESSABLE on vars that may not become
28056 registers.
28057 * tree-ssa.c (update_alias_info_1): Include those in the set
28058 of addressable vars.
28059
28060 2009-01-26 Richard Guenther <rguenther@suse.de>
28061
28062 PR middle-end/38851
28063 * Makefile.in (tree-ssa-dse.o): Add langhooks.h.
28064 * tree-ssa-dse.c: Include langhooks.h
28065 (execute_simple_dse): Remove stores with zero size.
28066
28067 2009-01-24 Jakub Jelinek <jakub@redhat.com>
28068
28069 PR c/38957
28070 * c-typeck.c (c_finish_return): Handle POINTER_PLUS_EXPR the same way
28071 as PLUS_EXPR.
28072
28073 2009-01-24 Julian Brown <julian@codesourcery.com>
28074
28075 * config/arm/t-linux-eabi (LIB2FUNCS_STATIC_EXTRA): Add
28076 config/arm/linux-atomic.c.
28077 * config/arm/linux-atomic.c: New.
28078
28079 2009-01-24 Eric Botcazou <ebotcazou@adacore.com>
28080
28081 * config/sparc/linux.h (DBX_REGISTER_NUMBER): Delete.
28082 * config/sparc/linux64.h (DBX_REGISTER_NUMBER): Likewise.
28083 * config/sparc/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
28084
28085 2009-01-24 H.J. Lu <hongjiu.lu@intel.com>
28086
28087 PR c/38938
28088 * c-opts.c (c_common_handle_option): Update warn_pointer_sign
28089 properly.
28090
28091 2009-01-24 Sebastian Pop <sebastian.pop@amd.com>
28092
28093 PR tree-optimization/38953
28094 * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa.
28095 (scop_adjust_phis_for_liveouts): Initialize false_i to zero.
28096 (gloog): Split the exit of the scop when the scop exit is a loop exit.
28097 (graphite_transform_loops): Only call cleanup_tree_cfg if gloog
28098 changed the CFG.
28099
28100 2009-01-24 Paul Brook <paul@codesourcery.com>
28101
28102 * config/arm/neon.md (neon_type): Move to arm.md.
28103 (neon_mov<VSTRUCT>): Add neon_type attribute.
28104 * config/arm/arm.md (neon_type): Move to here.
28105 (conds): Add "unconditioal" and use as default for NEON insns.
28106
28107 2009-01-24 Ben Elliston <bje@au.ibm.com>
28108
28109 * bitmap.h (BITMAP_FREE): Eliminate `implicit conversion from
28110 void *' warning from -Wc++-compat.
28111 * Makefile.in (dominance.o-warn): Remove.
28112
28113 2009-01-23 Paolo Bonzini <bonzini@gnu.org>
28114
28115 PR tree-optimization/38932
28116 * fold-const.c (fold_unary_ignore_overflow): New.
28117 * tree.h (fold_unary_ignore_overflow): Declare.
28118 * tree-ssa-ccp.c (ccp_fold): Use fold_unary_ignore_overflow.
28119 * tree-ssa-sccvn.c (visit_reference_op_load,
28120 simplify_unary_expression): Likewise.
28121
28122 2009-01-22 Adam Nemet <anemet@caviumnetworks.com>
28123
28124 * c-decl.c (finish_struct): Move code to set DECL_PACKED after
28125 DECL_BIT_FIELD is alreay known. Also inherit packed for bitfields
28126 regardless of their type.
28127 * c-common.c (handle_packed_attribute): Don't ignore packed on
28128 bitfields.
28129 * c.opt (Wpacked-bitfield-compat): New warning option.
28130 * stor-layout.c (place_field): Warn if offset of a field changed.
28131 * doc/extend.texi (packed): Mention the ABI change.
28132 * doc/invoke.texi (-Wpacked-bitfield-compat): Document.
28133 (Warning Options): Add it to the list.
28134
28135 2009-01-22 H.J. Lu <hongjiu.lu@intel.com>
28136
28137 * c-opts.c (c_common_post_options): Fix a typo in comments.
28138
28139 2009-01-22 Steve Ellcey <sje@cup.hp.com>
28140
28141 PR middle-end/38615
28142 * gimplify.c (gimplify_init_constructor): Fix promotion of const
28143 variables to static.
28144 * doc/invoke.texi (-fmerge-all-constants): Update description.
28145
28146 2009-01-22 Uros Bizjak <ubizjak@gmail.com>
28147
28148 PR target/38931
28149 * config/i386/i386.md (*movsi_1): Use type "mmx" for alternative 2.
28150 (*movdi_1_rex64): Use type "mmx" for alternative 5.
28151
28152 2009-01-22 Richard Earnshaw <rearnsha@arm.com>
28153
28154 * arm.h (DATA_ALIGNMENT): Align structures, unions and arrays to
28155 a word boundary.
28156 (LOCAL_ALIGNMENT): Similarly.
28157
28158 2009-01-22 Mark Shinwell <shinwell@codesourcery.com>
28159 Joseph Myers <joseph@codesourcery.com>
28160
28161 * config/arm/arm.c (all_architectures): Add iWMMXt2 entry.
28162 * config/arm/arm-cores.def: New ARM_CORE entry for iWMMXt2.
28163 * config/arm/arm-tune.md: Regenerate.
28164 * doc/invoke.texi (ARM Options): Document -mcpu=iwmmxt2 and
28165 -march=iwmmxt2.
28166
28167 2009-01-22 Mark Shinwell <shinwell@codesourcery.com>
28168
28169 * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Bump EABI
28170 version number to five.
28171
28172 2009-01-22 Dodji Seketeli <dodji@redhat.com>
28173
28174 PR c++/38930
28175 * c-decl.c (clone_underlying_type): Revert PR c++/26693 changes.
28176 * c-common.c (set_underlying_type): Likewise.
28177 (is_typedef_decl ): Likewise
28178 * tree.h: Likewise
28179 (set_underlying_type): Likewise.
28180 (is_typedef_type): Likewise.
28181
28182 2009-01-21 Vladimir Makarov <vmakarov@redhat.com>
28183
28184 PR middle-end/38587
28185 * ira-color.c (coalesce_spill_slots): Don't coalesce allocnos
28186 crossing setjmps.
28187
28188 2009-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
28189
28190 PR bootstrap/37660
28191 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): New helper macro.
28192 (LIBGCC_SPEC): Don't define.
28193 (REAL_LIBGCC_SPEC): Define instead, using SHARED_LIBGCC_SPEC.
28194
28195 2009-01-21 Uros Bizjak <ubizjak@gmail.com>
28196
28197 PR rtl-optimization/38879
28198 * alias.c (base_alias_check): Unaligned access via AND address can
28199 alias all surrounding object types except those with sizes equal
28200 or wider than the size of unaligned access.
28201
28202 2009-01-21 Dodji Seketeli <dodji@redhat.com>
28203
28204 PR c++/26693
28205 * c-decl.c (clone_underlying_type): Move this ...
28206 * c-common.c (set_underlying_type): ... here.
28207 Also, make sure the function properly sets TYPE_STUB_DECL() on
28208 the newly created typedef variant type.
28209 (is_typedef_decl ): New entry point.
28210 * tree.h: Added a new member member_types_needing_access_check to
28211 struct tree_decl_non_common.
28212 (set_underlying_type): New entry point.
28213 (is_typedef_type): Likewise.
28214
28215 2009-01-21 Bingfeng Mei <bmei@broadcom.com>
28216
28217 * alias.c (walk_mems_1, walk_mems_2, insn_alias_sets_conflict_p):
28218 Check whether two instructions have memory references that
28219 belong to conflicting alias sets. walk_mems_1 and walk_mems_2
28220 are helper functions for traversing.
28221 * alias.h (insn_alias_sets_confilict_p): New prototypes.
28222 * ddg.c (add_inter_loop_mem_dep): Call insn_alias_sets_conflict_p
28223 not to draw dependency edge for instructions with non-conflicting
28224 alias sets.
28225
28226 2009-01-20 Joseph Myers <joseph@codesourcery.com>
28227
28228 PR other/38758
28229 * longlong.h: Update copyright years. Use soft-fp license notice.
28230 Sync __clz_tab declaration with glibc.
28231
28232 2009-01-20 Steve Ellcey <sje@cup.hp.com>
28233
28234 PR target/30687
28235 * doc/extend.texi (syscall_linkage): New.
28236 (version_id): Modify.
28237
28238 2009-01-20 Andrew Pinski <andrew_pinski@playstation.sony.com>
28239 Richard Guenther <rguenther@suse.de>
28240
28241 PR tree-optimization/38747
28242 PR tree-optimization/38748
28243 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Disable the VCE
28244 conversion if the base address is an indirect reference and the
28245 aliasing sets could cause issues.
28246
28247 2009-01-20 Sebastian Pop <sebastian.pop@amd.com>
28248
28249 * common.opt (fgraphite, fgraphite-identity): Add comment for
28250 explaining why these options are not documented.
28251
28252 2009-01-20 Sebastian Pop <sebastian.pop@amd.com>
28253
28254 * graphite.c (stmt_simple_for_scop_p): Also handle cases when
28255 gimple_call_lhs is NULL.
28256
28257 2009-01-20 Paolo Bonzini <bonzini@gnu.org>
28258
28259 PR target/38868
28260 * emit-rtl.c (adjust_address_1): Make sure memref is never
28261 overwritten.
28262
28263 2009-01-20 Ben Elliston <bje@au.ibm.com>
28264
28265 * libgcov.c (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
28266 const qualifier from arg parameter. Remove unnecessary cast to char *.
28267 * gcov-io.h (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
28268 const qualifier from arg 2.
28269
28270 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
28271
28272 * config/darwin.h: Add static-libgfortran to LINK_SPEC.
28273
28274 2009-01-19 Vladimir Makarov <vmakarov@redhat.com>
28275
28276 PR c/38869
28277 * rtl.h (reinit_regs): New prototype.
28278 * regclass.c: Include ira.h.
28279 (reinit_regs): New.
28280 * Makefile.in (regclass.o): Add ira.h.
28281 * config/i386/i386.c (ix86_maybe_switch_abi): Use reinit_regs.
28282
28283 2009-01-18 H.J. Lu <hongjiu.lu@intel.com>
28284
28285 PR target/38736
28286 * c-common.c (handle_aligned_attribute): Use
28287 ATTRIBUTE_ALIGNED_VALUE instead of BIGGEST_ALIGNMENT for
28288 default alignment value.
28289
28290 * c-cppbuiltin.c (c_cpp_builtins): Define __BIGGEST_ALIGNMENT__.
28291
28292 * defaults.h (ATTRIBUTE_ALIGNED_VALUE): New.
28293 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Likewise.
28294
28295 * doc/extend.texi: Update __attribute__ ((aligned)). Document
28296 __BIGGEST_ALIGNMENT__.
28297
28298 * doc/tm.texi: Document ATTRIBUTE_ALIGNED_VALUE.
28299
28300 2009-01-18 Richard Guenther <rguenther@suse.de>
28301
28302 PR tree-optimization/38819
28303 * tree-flow.h (operation_could_trap_helper_p): Declare.
28304 * tree-eh.c (operation_could_trap_helper_p): Export.
28305 * tree-ssa-sccvn.h (vn_nary_may_trap): Declare.
28306 * tree-ssa-sccvn.c (vn_nary_may_trap): New function.
28307 * tree-ssa-pre.c (insert_into_preds_of_block): Check if we
28308 are about to insert a possibly trapping instruction and fail
28309 in this case.
28310
28311 2009-01-18 Andreas Schwab <schwab@suse.de>
28312
28313 * doc/install.texi (Configuration): Remove obsolete paragraph
28314 about use of --with-gnu-ld with --with-gnu-as.
28315
28316 2009-01-18 Kazu Hirata <kazu@codesourcery.com>
28317
28318 * doc/extend.texi, doc/gimple.texi, doc/invoke.texi,
28319 doc/md.texi, doc/sourcebuild.texi, doc/tm.texi: Fix typos.
28320 Follow spelling conventions.
28321
28322 2009-01-18 Ben Elliston <bje@au.ibm.com>
28323
28324 * bitmap.c (bitmap_obstack_alloc_stat): Adjust cast to eliminate
28325 C++ warning about implicit conversion from void * to struct
28326 bitmap_head_def *.
28327 (bitmap_obstack_free): Likewise for bitmap_element *.
28328 * Makefile.in (bitmap.o-warn): Remove.
28329
28330 2009-01-17 Dave Korn <dave.korn.cygwin@gmail.com>
28331
28332 * Makefile.in (BACKENDLIBS): Reorder to match dependencies.
28333
28334 2009-01-17 Sebastian Pop <sebastian.pop@amd.com>
28335 Tobias Grosser <tobi.grosser@amd.com>
28336
28337 * graphite.c (graphite_trans_scop_block): Do not block single
28338 nested loops.
28339
28340 2009-01-16 Alexandre Oliva <aoliva@redhat.com>
28341
28342 * ebitmap.h (ebitmap_iter_init): Initialize all fields.
28343 * ipa-struct-reorg.c (gen_struct_type): Replace known-true
28344 test with assertion.
28345
28346 2009-01-16 Richard Guenther <rguenther@suse.de>
28347
28348 PR tree-optimization/38835
28349 PR middle-end/36227
28350 * fold-const.c (fold_binary): Remove PTR + INT -> (INT)(PTR p+ INT)
28351 and INT + PTR -> (INT)(PTR p+ INT) folding.
28352 * tree-ssa-address.c (create_mem_ref): Properly use POINTER_PLUS_EXPR.
28353
28354 2009-01-16 Adam Nemet <anemet@caviumnetworks.com>
28355
28356 PR target/38554
28357 * expmed.c (expand_shift): With SHIFT_COUNT_TRUNCATED, don't lift
28358 the subreg from a lowpart subreg if it is also casting the value.
28359
28360 2009-01-16 Sebastian Pop <sebastian.pop@amd.com>
28361 Tobias Grosser <tobi.grosser@amd.com>
28362
28363 * graphite.c (compare_prefix_loops): New.
28364 (build_scop_canonical_schedules): Rewritten.
28365 (graphite_transform_loops): Move build_scop_canonical_schedules
28366 after build_scop_iteration_domain.
28367
28368 2009-01-16 Sebastian Pop <sebastian.pop@amd.com>
28369 Tobias Grosser <tobi.grosser@amd.com>
28370
28371 * graphite.c (add_conditions_to_domain): Add the loops to
28372 the dimension of the iteration domain. Do copy the domain
28373 only when it exists.
28374 (build_scop_conditions_1): Do not call add_conditions_to_domain.
28375 (add_conditions_to_constraints): New.
28376 (can_generate_code_stmt, can_generate_code): Removed.
28377 (gloog): Do not call can_generate_code.
28378 (graphite_transform_loops): Call add_conditions_to_constraints
28379 after building the iteration domain.
28380
28381 2009-01-16 Jakub Jelinek <jakub@redhat.com>
28382
28383 PR tree-optimization/38789
28384 * tree-ssa-threadedge.c
28385 (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
28386 __builtin_constant_p.
28387
28388 2009-01-16 Kenneth Zadeck <zadeck@naturalbridge.com>
28389
28390 * dce.c (delete_unmarked_insns): Reversed the order that insns are
28391 examined before deleting them.
28392
28393 2009-01-16 Richard Earnshaw <rearnsha@arm.com>
28394
28395 * function.c (aggregate_value_p): Correctly extract the function
28396 type from CALL_EXPR_FN lookup.
28397
28398 2009-01-16 Hariharan Sandanagobalane <hariharan@picochip.com>
28399
28400 * config/picochip/picochip.c (picochip_override_options): Revert
28401 CFI asm flag disable commited previously.
28402
28403 2009-01-15 Sebastian Pop <sebastian.pop@amd.com>
28404 Tobias Grosser <tobi.grosser@amd.com>
28405 Jan Sjodin <jan.sjodin@amd.com>
28406
28407 * graphite.c (scan_tree_for_params): On substractions negate
28408 all the coefficients of the term.
28409 (clast_to_gcc_expression_red): New. Handle reduction expressions
28410 of more than two operands.
28411 (clast_to_gcc_expression): Call clast_to_gcc_expression_red.
28412 (get_vdef_before_scop): Handle also the case of default definitions.
28413
28414 2009-01-15 Richard Sandiford <rdsandiford@googlemail.com>
28415
28416 * caller-save.c (add_used_regs_1, add_used_regs): New functions.
28417 (insert_one_insn): Use them instead of REG_DEAD and REG_INC notes.
28418 Also use them when walking CALL_INSN_FUNCTION_USAGE.
28419
28420 2009-01-15 H.J. Lu <hongjiu.lu@intel.com>
28421 Joey Ye <joey.ye@intel.com>
28422
28423 PR middle-end/37843
28424 * cfgexpand.c (expand_stack_alignment): Don't update stack
28425 boundary nor check incoming stack boundary here.
28426 (gimple_expand_cfg): Update stack boundary and check incoming
28427 stack boundary here.
28428
28429 2009-01-15 Kenneth Zadeck <zadeck@naturalbridge.com>
28430
28431 * dce.c (find_call_stack_args, delete_unmarked_insns): Fixed comments.
28432
28433 2009-01-14 Jakub Jelinek <jakub@redhat.com>
28434
28435 PR rtl-optimization/38245
28436 * calls.c (expand_call): Add stack arguments to
28437 CALL_INSN_FUNCTION_USAGE even for pure calls (when
28438 ACCUMULATE_OUTGOING_ARGS) and even for args partially passed
28439 in regs and partially in memory or BLKmode arguments.
28440 (emit_library_call_value_1): Add stack arguments to
28441 CALL_INSN_FUNCTION_USAGE even for pure calls (when
28442 ACCUMULATE_OUTGOING_ARGS).
28443 * dce.c: Include tm_p.h.
28444 (find_call_stack_args): New function.
28445 (deletable_insn_p): Call it for CALL_P insns. Add ARG_STORES
28446 argument.
28447 (mark_insn): Call find_call_stack_args for CALL_Ps.
28448 (prescan_insns_for_dce): Walk insns backwards in bb rather than
28449 forwards. Allocate and free arg_stores bitmap if needed, pass it
28450 down to deletable_insn_p, don't mark stores set in arg_stores
28451 bitmap, clear the bitmap at the beginning of each bb.
28452 * Makefile.in (dce.o): Depend on $(TM_P_H).
28453
28454 2009-01-14 Michael Meissner <gnu@the-meissners.org>
28455
28456 PR target/22599
28457 * config/i386/i386.c (print_operand): Add tests for 'D', 'C', 'F', 'f'
28458 to make sure the insn is a conditional test (bug 22599). Reformat a
28459 few long lines.
28460
28461 2009-01-14 Sebastian Pop <sebastian.pop@amd.com>
28462
28463 PR middle-end/38431
28464 * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New.
28465 (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi.
28466 (gloog): Do not call cleanup_tree_cfg.
28467 (graphite_transform_loops): Call cleanup_tree_cfg after all
28468 scops have been code generated.
28469
28470 2009-01-14 Basile Starynkevitch <basile@starynkevitch.net>
28471 * doc/gty.texi (Invoking the garbage collector): Added new node
28472 and section documenting ggc_collect.
28473
28474 2009-01-14 Richard Guenther <rguenther@suse.de>
28475
28476 PR tree-optimization/38826
28477 PR middle-end/38477
28478 * tree-ssa-structalias.c (emit_alias_warning): Emit the pointer
28479 initialization notes only if we actually emitted a warning.
28480 (intra_create_variable_infos): Add constraints for a result decl
28481 that is passed by hidden reference.
28482 (build_pred_graph): Mark all related variables non-direct on
28483 address-taking.
28484
28485 2009-01-14 Nick Clifton <nickc@redhat.com>
28486
28487 * ira-conflicts.c: Include addresses.h for the definition of
28488 base_reg_class.
28489 (ira_build_conflicts): Use base_reg_class instead of BASE_REG_CLASS.
28490 * Makefile.in: Add a dependency of ira-conflicts.o on addresses.h.
28491
28492 2009-01-13 Vladimir Makarov <vmakarov@redhat.com>
28493
28494 PR target/38811
28495 * Makefile.in (ira-lives.o): Add except.h.
28496
28497 * ira-lives.c: Include except.h.
28498 (process_bb_node_lives): Process can_throw_internal.
28499
28500 2009-01-13 Jakub Jelinek <jakub@redhat.com>
28501
28502 PR rtl-optimization/38774
28503 * combine.c (simplify_set): When undoing cc_use change, don't do
28504 PUT_CODE on the newly created comparison, but instead put back the
28505 old comparison.
28506
28507 2009-01-13 Joseph Myers <joseph@codesourcery.com>
28508
28509 * doc/invoke.texi (ARM Options): Update lists of -mcpu and -march
28510 values. Remove duplicate arm8 entry.
28511
28512 2009-01-13 Sebastian Pop <sebastian.pop@amd.com>
28513
28514 PR tree-optimization/38786
28515 * graphite.c (expand_scalar_variables_ssa_name): New, outlined from
28516 the SSA_NAME case of expand_scalar_variables_expr.
28517 Set the type of an expression to the type of its assign statement.
28518 (expand_scalar_variables_expr): Also gather the scalar computation
28519 used to index the memory access. Do not pass loop_p.
28520 Fix comment. Stop recursion on tcc_constant or tcc_declaration.
28521 (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr
28522 the gimple_stmt_iterator where it inserts new code.
28523 Do not pass loop_p.
28524 (copy_bb_and_scalar_dependences): Do not pass loop_p.
28525 (translate_clast): Update call to copy_bb_and_scalar_dependences.
28526
28527 2009-01-13 Sebastian Pop <sebastian.pop@amd.com>
28528
28529 * graphite.h (debug_value): Removed.
28530 * graphite.c (debug_value): Removed.
28531
28532 2009-01-13 Richard Earnshaw <rearnsha@arm.com>
28533
28534 * config/arm/arm.c (output_move_double): Don't synthesize thumb-2
28535 ldrd/strd with two 32-bit instructions.
28536
28537 2009-01-13 Richard Earnshaw <rearnsha@arm.com>
28538
28539 * config/arm/arm.c (struct processors): Pass for speed down into
28540 cost helper functions.
28541 (const_ok_for_op): Handle COMPARE and inequality nodes.
28542 (arm_rtx_costs_1): Rewrite.
28543 (arm_size_rtx_costs): Update prototype.
28544 (arm_rtx_costs): Pass speed down to helper functions.
28545 (arm_slowmul_rtx_costs): Rework cost calculations.
28546 (arm_fastmul_rtx_costs, arm_xscale_rtx_costs): Likewise.
28547 (arm_9e_rtx_costs): Likewise.
28548
28549 2009-01-13 Uros Bizjak <ubizjak@gmail.com>
28550
28551 * config/alpha/alpha.c (alpha_legitimate_address_p): Explicit
28552 relocations of local symbols wider than UNITS_PER_WORD are not valid.
28553 (alpha_legitimize_address): Do not split local symbols wider than
28554 UNITS_PER_WORD into HIGH/LO_SUM parts.
28555
28556 2009-01-13 Danny Smith <dannysmith@users.sourceforge.net>
28557
28558 PR bootstrap/38580
28559 * gcc.c (process_command): Replace call to execvp with calls
28560 to pex_one and exit.
28561
28562 2009-01-03 Anatoly Sokolov <aesok@post.ru>
28563
28564 PR target/29141
28565 * config/avr/t-avr (LIB1ASMFUNCS): Add _tablejump_elpm.
28566 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Add
28567 variant for devices with 3-byte PC.
28568 (__tablejump_elpm__): New.
28569
28570 2009-01-12 Jakub Jelinek <jakub@redhat.com>
28571
28572 PR c/32041
28573 * c-parser.c (c_parser_postfix_expression): Allow `->' in
28574 offsetof member-designator, handle it as `[0].'.
28575
28576 2009-01-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
28577
28578 * pa.c (pa_asm_output_mi_thunk): Use pc-relative branch to thunk
28579 function when not using named sections on targets with named sections
28580 if branch distance is less than 262132.
28581
28582 2009-01-12 Richard Earnshaw <rearnsha@arm.com>
28583
28584 * combine.c (combine_instructions): Recompute
28585 optimize_this_for_speed_p for each BB in the main combine loop.
28586
28587 2009-01-12 Tomas Bily <tbily@suse.cz>
28588
28589 PR middlend/38385
28590 * tree-loop-distribution.c (prop_phis): New function.
28591 (generate_builtin): Call prop_phis.
28592
28593 2009-01-12 Jakub Jelinek <jakub@redhat.com>
28594
28595 PR tree-optimization/38807
28596 * tree-ssa-reassoc.c (remove_visited_stmt_chain): Don't look at
28597 gimple_visited_p unless stmt is GIMPLE_ASSIGN.
28598
28599 2009-01-11 Adam Nemet <anemet@caviumnetworks.com>
28600
28601 * expmed.c (store_bit_field_1): Properly truncate the paradoxical
28602 subreg of op0 to the original op0.
28603
28604 2009-01-11 Laurent GUERBY <laurent@guerby.net>
28605
28606 * doc/sourcebuild.texi (Source Tree): Move up intl and fixinc.
28607
28608 2009-01-11 Markus Schoepflin <markus.schoepflin@comsoft.de>
28609
28610 PR debug/7055
28611 * mips-tfile.c (parse_def): Fix parsing of def strings
28612 starting with digits.
28613
28614 2009-01-10 Jakub Jelinek <jakub@redhat.com>
28615
28616 PR target/38695
28617 * config/arm/arm.c (arm_is_long_call_p): Don't call
28618 arm_function_in_section_p if decl isn't a FUNCTION_DECL.
28619
28620 2009-01-09 Steven Bosscher <steven@gcc.gnu.org>
28621
28622 * regrename.c (regrename_optimize): Fix dumping.
28623 (find_oldest_value_reg): Preserve REG_POINTER.
28624 (copy_hardreg_forward_1): Likewise.
28625
28626 2009-01-09 Diego Novillo <dnovillo@google.com>
28627
28628 * gimple.h (struct gimple_statement_base) <uid>: Document
28629 the restrictions on its use.
28630 (gimple_uid): Tidy.
28631 (gimple_set_uid): Tidy.
28632
28633 2009-01-09 Jakub Jelinek <jakub@redhat.com>
28634
28635 * config/i386/i386.c (ix86_expand_movmem, ix86_expand_setmem): Add
28636 zero guard even if align_bytes != 0 and count is smaller than
28637 size_needed.
28638
28639 2009-01-09 Vladimir Makarov <vmakarov@redhat.com>
28640
28641 PR rtl-optimization/38495
28642 * ira-emit.c (print_move_list, ira_debug_move_list): New functions.
28643 (add_range_and_copies_from_move_list): Print all added ranges.
28644 Add ranges to memory optimized destination.
28645
28646 2009-01-09 Jakub Jelinek <jakub@redhat.com>
28647
28648 PR target/38686
28649 PR target/38708
28650 * config/i386/i386.c (override_options): Reject
28651 -mstringop-strategy=rep_8byte with -m32.
28652 (ix86_expand_movmem): For size_needed == 1 set epilogue_size_needed
28653 to 1. Do count comparison against epilogue_size_needed at compile
28654 time even when count_exp was constant forced into register. For
28655 size_needed don't jump to epilogue, instead just avoid aligning
28656 and invoke the body algorithm. If need_zero_guard, add zero guard
28657 even if count is non-zero, but smaller than size_needed + number of
28658 bytes that could be stored for alignment.
28659 (ix86_expand_setmem): For size_needed == 1 set epilogue_size_needed
28660 to 1. If need_zero_guard, add zero guard even if count is non-zero,
28661 but smaller than size_needed + number of bytes that could be stored
28662 for alignment. Compare size_needed with epilogue_size_needed instead
28663 of desired_align - align, don't adjust size_needed, pass
28664 epilogue_size_needed to the epilogue expanders.
28665
28666 PR c/35742
28667 * c-pretty-print.c (pp_c_expression): Handle GOTO_EXPR like BIND_EXPR.
28668
28669 2009-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
28670
28671 * pa.c (last_address): Change to unsigned.
28672 (update_total_code_bytes): Change argument to unsigned. Don't
28673 check if insn addresses are set.
28674 (pa_output_function_epilogue): Set last_address to UINT_MAX if insn
28675 addresses are not set.
28676 (pa_asm_output_mi_thunk): Handle wrap when updating last_address.
28677
28678 2009-01-09 Nick Clifton <nickc@redhat.com>
28679
28680 * config/sh/symbian.c: Replace uses of DECL_INLINE with
28681 DECL_DECLARED_INLINE_P.
28682
28683 2009-01-09 Jakub Jelinek <jakub@redhat.com>
28684
28685 PR middle-end/38347
28686 * dojump.c (do_jump_by_parts_zero_rtx): Use mode instead of
28687 GET_MODE (op0) in operand_subword_force calls.
28688
28689 PR middle-end/38771
28690 * fold-const.c (fold_unary): For COMPOUND_EXPR and COND_EXPR,
28691 fold_convert arg0 operands to TREE_TYPE (op0) first.
28692
28693 2009-01-08 Vladimir Makarov <vmakarov@redhat.com>
28694
28695 * params.def (ira-max-conflict-table-size): Decrease default value
28696 to 1000.
28697
28698 2009-01-08 Jakub Jelinek <jakub@redhat.com>
28699
28700 PR tree-optimization/37031
28701 * lambda-code.c (lambda_collect_parameters): Call pointer_set_destroy
28702 on parameter_set.
28703 (build_access_matrix): Reserve correct size for AM_MATRIX vector,
28704 allocate it using gc instead of heap, use VEC_quick_push instead of
28705 VEC_safe_push.
28706 * graphite.c (build_access_matrix): Allocate AM_MATRIX vector using gc
28707 instead of heap, use VEC_quick_push instead of VEC_safe_push.
28708 * tree-data-ref.h (struct access_matrix): Change matrix to gc
28709 allocated vector from heap allocated.
28710 * lambda.h: Add DEF_VEC_ALLOC_P for gc allocated lambda_vector.
28711 * tree-loop-linear.c (linear_transform_loops): Allocate nest
28712 vector only after perfect_loop_nest_depth call.
28713
28714 2009-01-08 Sebastian Pop <sebastian.pop@amd.com>
28715 Jan Sjodin <jan.sjodin@amd.com>
28716
28717 PR tree-optimization/38559
28718 * graphite.c (debug_value, copy_constraint,
28719 swap_constraint_variables, scale_constraint_variable, ): New.
28720 (get_lower_bound, get_upper_bound): Removed.
28721 (graphite_trans_bb_strip_mine): Clean up this code that works
28722 only for constant number of iterations. Fully copy upper and
28723 lower bound constraints, not only the constant part of them.
28724 * graphite.h (debug_value): Declared.
28725
28726 2009-01-08 Ira Rosen <irar@il.ibm.com>
28727
28728 PR tree-optimization/37194
28729 * tree-vect-transform.c (vect_estimate_min_profitable_iters):
28730 Don't add the cost of cost model guard in prologue to scalar
28731 outside cost in case of known number of iterations.
28732
28733 2009-01-07 Nathan Froyd <froydnj@codesourcery.com>
28734 Alan Modra <amodra@bigpond.net.au>
28735
28736 * config/rs6000/rs6000.c (rs6000_legitimize_address): Check for
28737 non-word-aligned REG+CONST addressing.
28738
28739 2009-01-07 Uros Bizjak <ubizjak@gmail.com>
28740
28741 PR target/38706
28742 * config/alpha/alpha.c (alpha_end_function): For TARGET_ABI_OSF, call
28743 free_after_compilation when outputting a thunk.
28744 (alpha_output_mi_thunk_osf): Assert that we are processing a thunk.
28745 Do not call free_after_compilation here.
28746
28747 2009-01-07 Uros Bizjak <ubizjak@gmail.com>
28748
28749 * config/i386/i386.c (ix86_target_string): Use ARRAY_SIZE.
28750 (ix86_valid_target_attribute_inner_p): Ditto.
28751
28752 2009-01-07 Jan Sjodin <jan.sjodin@amd.com>
28753
28754 PR tree-optimization/38492
28755 PR tree-optimization/38498
28756 * tree-check.c (operator_is_linear, scev_is_linear_expression): New.
28757 * tree-chrec.h (scev_is_linear_expression): Declared.
28758 * graphite.c (graphite_cannot_represent_loop_niter): New.
28759 (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter.
28760 (graphite_loop_normal_form): Use gcc_assert.
28761 (scan_tree_for_params): Use CASE_CONVERT.
28762 (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New.
28763 (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes.
28764 Use gcc_assert. Discard scops that contain unhandled cases.
28765 (build_scop_conditions): Return a boolean status for unhandled cases.
28766 (strip_mine_profitable_p): Print the loop number, not its depth.
28767 (is_interchange_valid): Pass the depth of the loop nest, don't
28768 recompute it wrongly.
28769 (graphite_trans_bb_block): Same.
28770 (graphite_trans_bb_block): Print tentative of loop blocking.
28771 (graphite_trans_scop_block): Do not print that the loop has been
28772 blocked.
28773 (graphite_transform_loops): Do not handle scops that contain condition
28774 scalar phi nodes.
28775
28776 2009-01-07 H.J. Lu <hongjiu.lu@intel.com>
28777
28778 AVX Programming Reference (December, 2008)
28779 * config/i386/avxintrin.h (_mm256_stream_si256): New.
28780 (_mm256_stream_pd): Likewise.
28781 (_mm256_stream_ps): Likewise.
28782
28783 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVNTDQ256,
28784 IX86_BUILTIN_MOVNTPD256 and IX86_BUILTIN_MOVNTPS256.
28785 (ix86_special_builtin_type): Add VOID_FTYPE_PV4DI_V4DI.
28786 (bdesc_special_args): Add __builtin_ia32_movntdq256,
28787 __builtin_ia32_movntpd256 and __builtin_ia32_movntps256.
28788 (ix86_init_mmx_sse_builtins): Handle VOID_FTYPE_PV4DI_V4DI.
28789 (ix86_expand_special_args_builtin): Likewise.
28790
28791 * config/i386/sse.md (AVXMODEDI): New.
28792 (avx_movnt<mode>): Likewise.
28793 (avx_movnt<mode>): Likewise.
28794 (<sse>_movnt<mode>): Remove AVX support.
28795 (sse2_movntv2di): Likewise.
28796
28797 2009-01-07 Richard Guenther <rguenther@suse.de>
28798
28799 PR middle-end/38751
28800 * fold-const.c (extract_muldiv): Remove obsolete comment.
28801 (fold_plusminus_mult_expr): Undo MINUS_EXPR
28802 to PLUS_EXPR canonicalization for the canonicalization.
28803
28804 2009-01-07 Gerald Pfeifer <gerald@pfeifer.com>
28805
28806 * doc/install.texi (alpha*-dec-osf*): Remove note on 32-bit
28807 hosted cross-compilers generating less efficient code.
28808
28809 2009-01-06 Richard Sandiford <rdsandiford@googlemail.com>
28810
28811 * function.h (rtl_data): Add a dbr_scheduled_p field.
28812 * reorg.c (dbr_schedule): Set it.
28813 (gate_handle_delay_slots): Check it.
28814 * config/mips/mips.c (mips_base_delayed_branch): Delete.
28815 (mips_reorg): Check flag_delayed_branch instead of
28816 mips_base_delayed_branch.
28817 (mips_override_options): Don't set mips_base_delayed_branch
28818 or flag_delayed_branch.
28819
28820 2009-01-06 Richard Sandiford <rdsandiford@googlemail.com>
28821
28822 PR rtl-optimization/38426.
28823 * ira.c (ira): Set current_function_is_leaf earlier.
28824
28825 2009-01-06 Jakub Jelinek <jakub@redhat.com>
28826
28827 PR rtl-optimization/38722
28828 * combine.c (try_combine): Don't modify PATTERN (i3) and notes
28829 too early, only set a flag and modify after last possible
28830 undo_all point.
28831
28832 2009-01-06 Janis Johnson <janis187@us.ibm.com>
28833
28834 PR c/34252
28835 * ginclude/float.h: Rename DECnn_DEN to DECnn_SUBNORMAL_MIN.
28836 * real.c (decimal_single_format): Correct values of emin and emax.
28837 (decimal_double_format): Ditto.
28838 (decimal_quad_format): Ditto.
28839 * c-cppbuiltin.c (builtin_define_decimal_float_constants): Adjust
28840 computation of DECnn_MIN and DECnn_MAX for corrected values of
28841 emin and emax. Define __DECnn_SUBNORMAL_MIN__ instead of
28842 __DECnn_MIN__, and adjust its computation for the corrected value
28843 of emin.
28844
28845 2009-01-06 Jan Hubicka <jh@suse.cz>
28846
28847 PR target/38744
28848 * config/i386/i386.c (ix86_expand_call): Use ARRAY_SIZE.
28849
28850 2009-01-06 Gerald Pfeifer <gerald@pfeifer.com>
28851
28852 * doc/contrib.texi (Contributors): Slightly adjust the end note.
28853 Add Robert Clark to the list of testers.
28854
28855 2009-01-06 Jan Hubicka <jh@suse.cz>
28856 Kai Tietz <kai.tietz@onevision.com>
28857
28858 * config/i386/i386.md (*msabi_syvabi): Add SSE regs clobbers.
28859 * config/i386/i386.c (ix86_expand_call): Add clobbers.
28860
28861 2009-01-06 Jan Hubicka <jh@suse.cz>
28862 Kai Tietz <kai.tietz@onevision.com>
28863
28864 * config/i386/i386.h (CONDITIONAL_CALL_USAGE): SSE regs are not used
28865 for w64 ABI.
28866 * config/i386/i386.c (struct ix86_frame): Add padding0 and nsseregs.
28867 (ix86_nsaved_regs): Count only general purpose regs.
28868 (ix86_nsaved_sseregs): New.
28869 (ix86_compute_frame_layout): Update nsseregs; set preferred alignment
28870 to 16 for w64; compute padding and size of sse reg save area.
28871 (ix86_emit_save_regs, ix86_emit_save_regs_using_mov): Save only
28872 general purpose regs.
28873 (ix86_emit_save_sse_regs_using_mov): New.
28874 (ix86_expand_prologue): Save SSE regs if needed.
28875 (ix86_emit_restore_regs_using_mov): Use only general purpose regs.
28876 (ix86_emit_restore_sse_regs_using_mov): New.
28877 (ix86_expand_epilogue): Save SSE regs if needed.
28878
28879 2009-01-06 Jan Hubicka <jh@suse.cz>
28880 Kai Tietz <kai.tietz@onevision.com>
28881
28882 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Enable for MSABI
28883 * config/i386/i386.c (init_cumulative_args): Disallow calls of MSABI
28884 functions when accumulate outgoing args is off.
28885
28886 2009-01-06 H.J. Lu <hongjiu.lu@intel.com>
28887
28888 PR bootstrap/38742
28889 * ira-color.c (ira_reuse_stack_slot): Check ENABLE_IRA_CHECKING
28890 before using pseudos_have_intersected_live_ranges_p.
28891
28892 * ira-int.h (ira_assert): Always define.
28893
28894 2009-01-06 H.J. Lu <hongjiu.lu@intel.com>
28895
28896 AVX Programming Reference (December, 2008)
28897 * config/i386/avxintrin.h (_mm_permute2_pd): Removed.
28898 (_mm256_permute2_pd): Likewise.
28899 (_mm_permute2_ps): Likewise.
28900 (_mm256_permute2_ps): Likewise.
28901 * config/i386/i386.md (UNSPEC_VPERMIL2): Likewise.
28902 * config/i386/sse.md (avx_vpermil2<mode>3): Likewise.
28903
28904 * config/i386/i386.c (ix86_builtins): Remove
28905 IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
28906 IX86_BUILTIN_VPERMIL2PD256 and IX86_BUILTIN_VPERMIL2PS256.
28907 (ix86_builtin_type): Remove V8SF_FTYPE_V8SF_V8SF_V8SI_INT,
28908 V4DF_FTYPE_V4DF_V4DF_V4DI_INT, V4SF_FTYPE_V4SF_V4SF_V4SI_INT
28909 and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
28910 (bdesc_args): Remove __builtin_ia32_vpermil2pd,
28911 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256 and
28912 __builtin_ia32_vpermil2ps256.
28913 (ix86_init_mmx_sse_builtins): Updated.
28914 (ix86_expand_args_builtin): Likewise.
28915
28916 2009-01-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
28917
28918 * pa.c (output_call): Relocate non-jump insns in the delay slot of
28919 long absolute calls when generating PA 2.0 code.
28920
28921 2009-01-05 Vladimir Makarov <vmakarov@redhat.com>
28922
28923 PR rtl-optimization/38583
28924 * params.h (IRA_MAX_CONFLICT_TABLE_SIZE): New macro.
28925
28926 * params.def (ira-max-conflict-table-size): New.
28927
28928 * doc/invoke.texi (ira-max-conflict-table-size): Decribe.
28929
28930 * ira.h (ira_conflicts_p): New external definition.
28931
28932 * ira-conflicts.c (build_conflict_bit_table): Do not build too big
28933 table. Report this. Return result of building.
28934 (ira_build_conflicts): Use ira_conflicts_p. Check result of
28935 building conflict table.
28936
28937 * ira-color.c (fast_allocation): Use num instead of ira_allocnos_num.
28938 (ira_color): Use ira_conflicts_p.
28939
28940 * global.c: Include ira.h.
28941 (pseudo_for_reload_consideration_p, build_insn_chain): Use
28942 ira_conflicts_p.
28943
28944 * Makefile.in (global.o): Add ira.h.
28945
28946 * ira-build.c (mark_all_loops_for_removal,
28947 propagate_some_info_from_allocno): New.
28948 (remove_unnecessary_allocnos): Call
28949 propagate_some_info_from_allocno.
28950 (remove_low_level_allocnos): New.
28951 (remove_unnecessary_regions): Add parameter. Call
28952 mark_all_loops_for_removal and remove_low_level_allocnos. Pass
28953 parameter to remove_unnecessary_regions.
28954 (ira_build): Remove all regions but root if the conflict table was
28955 not built. Update conflict hard regs for allocnos crossing calls.
28956
28957 * ira.c (ira_conflicts_p): New global.
28958 (ira): Define and use ira_conflicts_p.
28959
28960 * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
28961 count_spilled_pseudo, find_reg, alter_reg, finish_spills,
28962 emit_input_reload_insns, delete_output_reload): Use ira_conflicts_p.
28963
28964 2009-01-06 Ben Elliston <bje@au.ibm.com>
28965
28966 * gengtype-lex.l (YY_NO_INPUT): Define.
28967
28968 2009-01-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
28969
28970 PR c/34911
28971 * c-common.c (handle_vector_size_attribute): Also reject
28972 BOOLEAN_TYPE types.
28973
28974 2009-01-05 Sebastian Pop <sebastian.pop@amd.com>
28975
28976 PR tree-optimization/38492
28977 * graphite.c (rename_map_elt, debug_rename_elt,
28978 debug_rename_map_1, debug_rename_map, new_rename_map_elt,
28979 rename_map_elt_info, eq_rename_map_elts,
28980 get_new_name_from_old_name, bb_in_sese_p): Moved around.
28981 (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use.
28982 (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb.
28983 (sese_build_livein_liveouts): New.
28984 (new_sese, free_sese): New.
28985 (new_scop): Call new_sese.
28986 (free_scop): Call free_sese.
28987 (rename_variables_from_edge, rename_phis_end_scop): Removed.
28988 (register_old_new_names): Renamed register_old_and_new_names.
28989 (register_scop_liveout_renames, add_loop_exit_phis,
28990 insert_loop_close_phis, struct igp,
28991 default_liveout_before_guard, add_guard_exit_phis,
28992 insert_guard_phis, copy_renames): New.
28993 (translate_clast): Call insert_loop_close_phis and insert_guard_phis.
28994 (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge.
28995 (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts.
28996 (scop_adjust_phis_for_liveouts): New.
28997 (gloog): Call scop_adjust_phis_for_liveouts.
28998
28999 * graphite.h (struct sese): Documented. Added fields liveout,
29000 num_ver and livein.
29001 (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New.
29002 (new_sese, free_sese, sese_build_livein_liveouts): Declared.
29003 (struct scop): Added field liveout_renames.
29004 (SCOP_LIVEOUT_RENAMES): New.
29005
29006 2009-01-05 Harsha Jagasia <harsha.jagasia@amd.com>
29007
29008 PR tree-optimization/38510
29009 * graphite.c (recompute_all_dominators): Call mark_irreducible_loops.
29010 (translate_clast): Call recompute_all_dominators before
29011 graphite_verify.
29012 (gloog): Call recompute_all_dominators before graphite_verify.
29013
29014 2009-01-05 Harsha Jagasia <harsha.jagasia@amd.com>
29015 Jan Sjodin <jan.sjodin@amd.com>
29016
29017 PR tree-optimization/38500
29018 * graphite.c (create_sese_edges): Call fix_loop_structure after
29019 splitting blocks.
29020
29021 2009-01-05 Joel Sherrill <joel.sherrill@oarcorp.com>
29022
29023 * config.gcc: Add m32r*-*-rtems*.
29024 * config/m32r/rtems.h: New file.
29025
29026 2009-01-05 Ben Elliston <bje@au.ibm.com>
29027
29028 * Makefile.in (.po.gmo): Use mkinstalldirs, not test -d || mkdir.
29029 (.po.pox): Likewise.
29030 (po/gcc.pot): Likewise.
29031
29032 2009-01-04 David S. Miller <davem@davemloft.net>
29033
29034 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED_RTX): Delete.
29035 (STARTING_FRAME_OFFSET): Always set to zero.
29036
29037 2009-01-04 Richard Sandiford <rdsandiford@googlemail.com>
29038
29039 * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Add commentary.
29040 * tree-cfg.c (verify_gimple_assign_binary): Allow shifts of
29041 fixed-point types, and vectors of the same.
29042
29043 2009-01-04 Richard Sandiford <rdsandiford@googlemail.com>
29044
29045 * config/mips/sync.md (*mb_barrier): Rename to...
29046 (*memory_barrier): ...this.
29047
29048 2009-01-04 Jonathan Wakely <jwakely.gcc@gmail.com>
29049
29050 * doc/extend.texi (Function Attributes): Move @cindex after @item
29051 for 'artificial' and 'flatten'. Fix grammar for 'externally_visible'
29052 and put in alphabetical order. Fix 'target' name and put in order.
29053 * doc/invoke.texi (-Wstrict-null-sentinel, -fipa-matrix-reorg): Fix
29054 typos.
29055
29056 2009-01-04 Uros Bizjak <ubizjak@gmail.com>
29057
29058 * config/s390/s390.md (UNSPEC_MB): Rename from UNSPECV_MB.
29059 (memory_barrier): Expand as unspec instead of unspec_volatile.
29060 Remove mem:BLK from insn operands. Use Pmode scratch register.
29061 (*memory_barrier): Define as unspec instead of unspec_volatile.
29062 Use (match_dup 0) as input operand.
29063
29064 * config/sparc/sparc.md (UNSPEC_MEMBAR): Rename from UNSPECV_MEMBAR.
29065 * config/sparc/sync.md (memory_barrier): Expand as unspec instead of
29066 unspec_volatile. Remove mem:BLK from insn operands. Use Pmode
29067 scratch register. Remove operand 1.
29068 (*stbar): Define as unspec instead of unspec_volatile.
29069 Use (match_dup 0) as input operand, remove (const_int 8).
29070 (*membar): Define as unspec instead of unspec_volatile.
29071 Use (match_dup 0) as input operand, remove input operand 2.
29072
29073 * config/xtensa/xtensa.md (UNSPEC_MEMW): Rename from UNSPECV_MEMW.
29074 (memory_barrier): Expand as unspec instead of unspec_volatile.
29075 Remove mem:BLK from insn operands. Use Pmode scratch register.
29076 (*memory_barrier): Define as unspec instead of unspec_volatile.
29077 Use (match_dup 0) as input operand.
29078
29079 * config/ia64/sync.md (memory_barrier): Redefine as expander pattern.
29080 Remove mem:BLK from insn operands. Use Pmode scratch register.
29081 Set volatile flag on operand 0.
29082 (*memory_barrier): New insn pattern.
29083
29084 * config/rs6000/sync.md (memory_barrier): Remove mem:BLK from
29085 insn operands.
29086 (*memory_barrier): Use (match_dup 0) as input operand.
29087
29088 * config/mips/sync.md (memory_barrier): Redefine as expander pattern.
29089 Remove mem:BLK from insn operands. Use Pmode scratch register.
29090 Set volatile flag on operand 0.
29091 (*mb_internal): New insn pattern.
29092
29093 * config/alpha/sync.md (*memory_barrier): Rename from *mb_internal.
29094
29095 2009-01-04 Steven Bosscher <steven@gcc.gnu.org>
29096
29097 PR middle-end/38586
29098 * function.c (struct temp_slot): Move to the section of the file
29099 that deals with temp slots. Remove field 'address'.
29100 (temp_slot_address_table): New hash table of address -> temp slot.
29101 (struct temp_slot_address_entry): New struct, items for the table.
29102 (temp_slot_address_compute_hash, temp_slot_address_hash,
29103 temp_slot_address_eq, insert_temp_slot_address): Support functions
29104 for the new table.
29105 (find_temp_slot_from_address): Rewrite to use the new hash table.
29106 (remove_unused_temp_slot_addresses): Remove addresses of temp
29107 slots that have been made available.
29108 (remove_unused_temp_slot_addresses_1): Call-back for htab_traverse,
29109 worker function for remove_unused_temp_slot_addresses.
29110 (assign_stack_temp_for_type): Don't clear the temp slot address list.
29111 Add the temp slot address to the address -> temp slot map.
29112 (update_temp_slot_address): Update via insert_temp_slot_address.
29113 (free_temp_slots): Call remove_unused_temp_slot_addresses.
29114 (pop_temp_slots): Likewise.
29115 (init_temp_slots): Allocate the address -> temp slot map, or empty
29116 the map if it is already allocated.
29117 (prepare_function_start): Initialize temp slot processing.
29118
29119 2009-01-04 Steven Bosscher <steven@gcc.gnu.org>
29120
29121 PR middle-end/38584
29122 * cfgexpand.c (estimate_stack_frame_size): Simplify the estimate:
29123 Calculate the size of all stack vars assuming no packing of stack
29124 vars will happen, replacing a quadratic algorithm with a linear one.
29125
29126 2009-01-03 Jakub Jelinek <jakub@redhat.com>
29127
29128 PR target/38707
29129 * expmed.c (store_bit_field_1): Don't modify op0 if movstrict insn
29130 can't be used.
29131
29132 2009-01-03 Diego Novillo <dnovillo@google.com>
29133
29134 * doc/contrib.texi: Update contributions.
29135
29136 2009-01-03 Jakub Jelinek <jakub@redhat.com>
29137
29138 PR c++/38705
29139 * builtins.c (fold_builtin_memory_op): Give up if either operand
29140 is volatile. Set srctype or desttype to non-qualified version
29141 of the other type.
29142
29143 PR c/38700
29144 * builtins.c (fold_builtin_expect): Only check DECL_WEAK for VAR_DECLs
29145 and FUNCTION_DECLs.
29146
29147 2009-01-02 Kenneth Zadeck <zadeck@naturalbridge.com>
29148
29149 PR rtl-optimization/35805
29150 * df-problems.c (df_lr_finalize): Add recursive call to resolve lr
29151 problem if fast dce is able to remove any instructions.
29152 * dce.c (dce_process_block): Fix dump message.
29153
29154 2009-01-02 Mark Mitchell <mark@codesourcery.com>
29155
29156 PR 33649
29157 * tree-ssa-pre.c (compute_antic): Correct loop bounds.
29158
29159 2009-01-02 Jakub Jelinek <jakub@redhat.com>
29160
29161 PR middle-end/38690
29162 * tree-flow.h (op_code_prio, op_prio): New prototypes.
29163 * tree-pretty-print.c (op_code_prio): New function.
29164 (op_prio): No longer static. Use op_code_prio.
29165 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs):
29166 Use op_prio and op_code_prio to determine if () should be
29167 printed around operand(s) or not.
29168
29169 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
29170 dump_gimple_call, dump_gimple_switch, dump_gimple_cond,
29171 dump_gimple_label, dump_gimple_try, dump_symbols, dump_gimple_phi,
29172 dump_gimple_mem_ops, dump_bb_header, dump_bb_end, pp_cfg_jump): Use
29173 pp_character instead of pp_string for single letter printing.
29174
29175 2009-01-02 Richard Sandiford <rdsandiford@googlemail.com>
29176
29177 * doc/extend.texi: Fix '#pragma GCC option' typo.
29178
29179 2009-01-02 Richard Guenther <rguenther@suse.de>
29180
29181 * doc/install.texi (--enable-checking): Mention different
29182 default for stage1.
29183 (--enable-stage1-checking): Document.
29184
29185 2009-01-01 Andrew Pinski <pinskia@gmail.com>
29186
29187 PR middle-end/30142
29188 * tree-cfg.c (verify_expr): Add INDIRECT_REF case. Change MODIFY_EXPR
29189 case to be an error.
29190
29191 2009-01-02 Ben Elliston <bje@au.ibm.com>
29192
29193 * config/fp-bit.h (pack_d): Constify argument.
29194 * config/fp-bit.c (makenan): Constify return type. Remove casts.
29195 (isnan): Constify argument.
29196 (isinf): Likewise.
29197 (iszero): Likewise.
29198 (pack_d): Likewise.
29199 (_fpadd_parts): Constify return type.
29200 (_fpmul_parts): Likewise.
29201 (_fpdiv_parts): Likewise.
29202
29203 2009-01-01 Jakub Jelinek <jakub@redhat.com>
29204
29205 PR c/36489
29206 * c-typeck.c (add_pending_init): Add IMPLICIT argument. Only
29207 warn about overwriting initializer with side-effects or
29208 -Woverride-init if !IMPLICIT.
29209 (output_init_element): Likewise. Pass IMPLICIT down to
29210 add_pending_init.
29211 (process_init_element): Add IMPLICIT argument. Pass it down
29212 to output_init_element.
29213 (push_init_element, pop_init_level, set_designator): Adjust
29214 process_init_element callers.
29215 (set_nonincremental_init, set_nonincremental_init_from_string):
29216 Adjust add_pending_init callers.
29217 (output_pending_init_elements): Adjust output_init_element callers.
29218 * c-tree.h (process_init_element): Adjust prototype.
29219 * c-parser.c (c_parser_initelt, c_parser_initval): Adjust
29220 process_init_element callers.
29221
29222 \f
29223 Copyright (C) 2009 Free Software Foundation, Inc.
29224
29225 Copying and distribution of this file, with or without modification,
29226 are permitted in any medium without royalty provided the copyright
29227 notice and this notice are preserved.