s390.c (s390_z10_optimize_cmp): Don't touch FP compares.
[gcc.git] / gcc / ChangeLog
1 2009-10-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2
3 * config/s390/s390.c (s390_z10_optimize_cmp): Don't touch FP compares.
4
5 2009-10-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6
7 * config/s390/s390.c (s390_z10_optimize_cmp): Use
8 next/prev_active_insn to skip DEBUG_INSNs as well.
9
10 2009-10-19 Joseph Myers <joseph@codesourcery.com>
11
12 * config/arm/arm.c (output_move_neon): Use DImode in call to
13 adjust_address.
14
15 2009-10-19 Matthias Klose <doko@ubuntu.com>
16
17 PR target/40134
18 * config.gcc (arm*-*-linux-*eabi): Use config/t-slibgcc-libgcc.
19
20 2009-10-19 Jakub Jelinek <jakub@redhat.com>
21
22 * cfgexpand.c (expand_debug_expr): Fail if bitpos < 0 for non-MEM
23 op0.
24
25 2009-10-17 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
26
27 PR middle-end/41738
28 * optabs.c (expand_binop): Make mode of shift count expression mode
29 of shift count not target.
30 Remove indent nit.
31
32 2009-10-17 Eric Botcazou <ebotcazou@adacore.com>
33
34 * tree-nested.c (convert_nonlocal_reference_stmt) <GIMPLE_COND>: New
35 case. Force using values to replace references within the statement.
36 (convert_local_reference_stmt): Likewise.
37
38 2009-10-17 Eric Botcazou <ebotcazou@adacore.com>
39
40 * gimple-low.c (lower_stmt) <GIMPLE_CALL>: If the call is noreturn,
41 remove a subsequent GOTO or RETURN statement.
42
43 2009-10-17 Andy Hutchinson <hutchinsonandy@aim.com>
44
45 * config/avr.md (*movqi): Add zero as equally preferable constraint
46 as general register.
47 (*movhi): Ditto.
48
49 2009-10-17 Eric Botcazou <ebotcazou@adacore.com>
50
51 * print-tree.c (print_node): Fix string for DECL_STRUCT_FUNCTION.
52
53 2009-10-17 Richard Guenther <rguenther@suse.de>
54
55 * lto-streamer-in.c (lto_input_location): Try to reuse
56 previous maps.
57
58 2009-10-17 Richard Guenther <rguenther@suse.de>
59
60 * lto-streamer-in.c (input_gimple_stmt): Fixup FIELD_DECL
61 operands in COMPONENT_REFs.
62
63 2009-10-17 Anatoly Sokolov <aesok@post.ru>
64
65 * targhooks.c (default_libcall_value): Don't use LIBCALL_VALUE macro
66 if not defined. Change type of second argument to const_rtx.
67 (default_function_value): Call gcc_unreachable if FUNCTION_VALUE
68 macro not defined.
69 * targhooks.h (default_libcall_value): Update prototype.
70 * target.h (struct gcc_target): Change type of second argument of
71 libcall_value to const_rtx.
72 * config/arm/arm.c (arm_libcall_value): Change type of second argument
73 to const_rtx.
74 (arm_libcall_uses_aapcs_base): Change type of argument to const_rtx.
75 * doc/tm.texi (TARGET_LIBCALL_VALUE): Revise documentation.
76
77 2009-10-17 Jakub Jelinek <jakub@redhat.com>
78
79 PR debug/40521
80 * debug.h (struct gcc_debug_hooks): Add assembly_start hook.
81 * cgraphunit.c (cgraph_optimize): Call it.
82 * dwarf2out.c (dwarf2out_init): Move .cfi_sections printing into...
83 (dwarf2out_assembly_start): ... here. New hook.
84 (dwarf2out_debug_hooks): Add dwarf2out_assembly_start.
85 * debug.c (do_nothing_debug_hooks): Do nothing for assembly_start
86 hook.
87 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
88 * sdbout.c (sdb_debug_hooks): Likewise.
89 * vmsdbgout.c (vmsdbg_debug_hooks): Add vmsdbgout_assembly_start.
90 (vmsdbgout_assembly_start): New hook.
91
92 2009-10-17 Alexandre Oliva <aoliva@redhat.com>
93
94 * rtl.h (RTL_LOCATION): Fix typo.
95
96 2009-10-17 Alexandre Oliva <aoliva@redhat.com>
97
98 * print-rtl.c (print_rtx): Print locators in asm_operands
99 and asm_input.
100
101 2009-10-17 Alexandre Oliva <aoliva@redhat.com>
102
103 PR debug/41535
104 * sched-deps.c (depl_on_debug_p): New.
105 (attach_dep_link): Reject debug deps before nondebug deps.
106 (add_to_deps_list): Insert debug deps after nondebug deps.
107 (sd_lists_empty_p): Stop at first nonempty list. Disregard debug
108 deps.
109 (sd_add_dep): Do not reject debug deps.
110 (add_insn_mem_dependence): Don't count debug deps.
111 (remove_from_deps): Likewise.
112 (sched_analyze_2): Set up mem deps on debug insns.
113 (sched_analyze_insn): Record reg uses for deps on debug insns.
114 * haifa-sched.c (schedule_insn): Reset deferred debug insn. Don't
115 try_ready nondebug insn after debug insn.
116 * ddg.c (create_ddg_dep_from_intra_loop_link,
117 create_ddg_dep_no_link): Don't reject debug deps.
118
119 2009-10-16 Richard Guenther <rguenther@suse.de>
120
121 * lto-symtab.c (merge_incomplete_and_complete_type): Remove.
122 (maybe_merge_incomplete_and_complete_type): Likewise.
123 (lto_symtab_merge): Do not call them. Do not warn for
124 complete vs. incomplete compatible types.
125 (lto_symtab_merge_decls_2): Simplify.
126 * gimple.c (gimple_force_type_merge): Remove.
127 (gimple_types_compatible_p): Make it static.
128 * gimple.h (gimple_force_type_merge): Remove.
129 (gimple_types_compatible_p): Likewise.
130
131 2009-10-16 Jakub Jelinek <jakub@redhat.com>
132
133 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Cast
134 DWARF2_ADDR_SIZE to int to avoid signed vs. unsigned warnings.
135
136 2009-10-16 Richard Guenther <rguenther@suse.de>
137
138 PR tree-optimization/41728
139 * tree-ssa-dom.c (optimize_stmt): Mark the stmt modified
140 if fold_stmt did anything.
141
142 2009-10-16 Richard Guenther <rguenther@suse.de>
143
144 PR lto/41715
145 * lto-streamer-in.c (lto_input_tree_ref): Revert last change.
146 (maybe_fixup_handled_component): New function.
147 (input_gimple_stmt): Fixup mismatched decl replacements.
148
149 2009-10-16 Richard Guenther <rguenther@suse.de>
150
151 PR lto/41713
152 * lto-streamer-out.c (lto_output_tree_ref): Handle DEBUG_EXPR_DECL
153 the same as VAR_DECL.
154
155 2009-10-16 Richard Guenther <rguenther@suse.de>
156
157 * gimple.c (iterative_hash_gimple_type): For integer types
158 also hash their minimum and maximum values and the string flag.
159 For array types hash their domain and the string flag.
160
161 2009-10-16 Richard Guenther <rguenther@suse.de>
162
163 * gimple.c (gimple_types_compatible_p): Restrict completing
164 types to record or unions. Simplify completion.
165 Do not merge records or unions with different
166 TYPE_STRUCTURAL_EQUALITY_P tag.
167 (iterative_hash_gimple_type): Restrict non-recursing into
168 pointer targets for records and unions.
169
170 2009-10-15 Jakub Jelinek <jakub@redhat.com>
171
172 PR debug/41717
173 * cfgexpand.c (expand_debug_expr): Handle CONJ_EXPR.
174 * dwarf2out.c (mem_loc_descriptor): Don't handle
175 POST_INT/POST_DEC/POST_MODIFY like SUBREG. For SUBREG
176 punt if it is not lowpart subreg or if inner mode isn't
177 MODE_INT.
178
179 2009-10-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
180
181 * config/s390/s390.c (s390_z10_optimize_cmp): Skip notes when
182 investigating previous or next insns.
183
184 2009-10-16 Eric Botcazou <ebotcazou@adacore.com>
185
186 * tree-sra.c (build_ref_for_offset_1): Update comment.
187
188 2009-10-16 Wolfgang Gellerich <gellerich@de.ibm.com>
189
190 * config/s390/s390.md (atype): Added missing values.
191
192 2009-10-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
193
194 PR target/41702
195 * pa.md (casesi): Use sign extended index in call to
196 gen_casesi64p.
197 (casesi64p): Update pattern to reflect above.
198
199 2009-10-15 Steve Ellcey <sje@cup.hp.com>
200
201 PR rtl-optimization/41697
202 * sel-sched-ir.h (_eligible_successor_edge_p): Check successor count.
203
204 2009-10-15 Michael Meissner <meissner@linux.vnet.ibm.com>
205
206 PR target/23983
207 * config/rs6000/predicates.md: Update copyright year.
208 * config/rs6000/altivec.md: Ditto.
209
210 * config/rs6000/t-rs6000 (TM_H): Add rs6000-builtin.def.
211 (MD_INCLUDES): Add a2.md.
212
213 * config/rs6000/rs6000.c (rs6000_builtin_decls): Change
214 RS6000_BUILTIN_COUNT to MAX_RS6000_BUILTINS.
215 (builtin_classify): New static vector to classify various builtins
216 to get the tree attributes correct.
217 (def_builtin): Set the attributes of builtins based on what the
218 builtin does (i.e. memory operation, floating point, saturation
219 need special attributes, others are pure functions).
220
221 * config/rs6000/rs6000.h (enum rs6000_btc): New enum to classify
222 the builtins.
223 (enum rs6000_builtins): Include rs6000-builtin.def to define the
224 builtins. Change the end marker to MAX_RS6000_BUILTINS from
225 RS6000_BUILTIN_COUNT.
226 (rs6000_builtin_decls): Change RS6000_BUILTIN_COUNT to
227 MAX_RS6000_BUILTINS.
228
229 * config/rs6000/rs6000-builtin.def: New file that combines the
230 builtin enumeration name and attributes.
231
232 2009-10-15 H.J. Lu <hongjiu.lu@intel.com>
233
234 * config/i386/linux.h (ASM_SPEC): Add --32.
235
236 2009-10-15 Jakub Jelinek <jakub@redhat.com>
237
238 * dwarf2out.c (dwarf_tag_name): Handle DW_TAG_rvalue_reference_type
239 and DW_TAG_template_alias.
240 (dwarf_attr_name): Handle DW_AT_main_subprogram,
241 DW_AT_data_bit_offset, DW_AT_const_expr, DW_AT_enum_class,
242 DW_AT_linkage_name, DW_AT_GNU_guarded_by, DW_AT_GNU_pt_guarded_by,
243 DW_AT_GNU_guarded, DW_AT_GNU_pt_guarded, DW_AT_GNU_locks_excluded,
244 DW_AT_GNU_exclusive_locks_required, DW_AT_GNU_shared_locks_required
245 and DW_AT_GNU_odr_signature.
246 (dwarf_form_name): Handle DW_FORM_sec_offset, DW_FORM_exprloc,
247 DW_FORM_flag_present and DW_FORM_ref_sig8.
248 (output_signature): Only print name on the first byte.
249 (output_die): Likewise for dw_val_class_data8.
250
251 2009-10-15 Alexander Monakov <amonakov@ispras.ru>
252
253 * doc/invoke.texi: Clarify that most optimizations are not enabled
254 without -O.
255
256 2009-10-15 Richard Guenther <rguenther@suse.de>
257
258 PR lto/41668
259 * gimple.c (compare_type_names_p): Handle anonymous names
260 differently based on new mode argument.
261 (gimple_types_compatible_p): For structs also compare the tags.
262 (iterative_hash_type_name): Rename to ...
263 (iterative_hash_name): ... this. Hash all names.
264 (iterative_hash_gimple_type): Fix hashing the struct tag of
265 pointer targets. Hash field decl names.
266
267 2009-10-15 Richard Guenther <rguenther@suse.de>
268
269 PR lto/41669
270 * gimple.c (gimple_get_alias_set): Avoid recursing on
271 invalid type topology.
272
273 2009-10-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
274
275 * config/spu/spu.c (get_branch_target): Use extract_asm_operands.
276
277 2009-10-15 Richard Guenther <rguenther@suse.de>
278
279 * tree.c (free_lang_data_in_decl): Free DECL_FCONTEXT.
280
281 2009-10-15 Jakub Jelinek <jakub@redhat.com>
282
283 * config/rs6000/option-defaults.h (OPTION_DEFAULT_SPECS): Don't
284 add --with-tune{,-32,-64} configured default for -mtune if explicit
285 -mcpu is used.
286
287 2009-10-14 Daniel Gutson <dgutson@codesourcery.com>
288
289 * config/arm/neon.md (neon_vshll_n<mode>): Checking Bounds
290 fixed.
291
292 2009-10-14 DJ Delorie <dj@redhat.com>
293
294 * config/h8300/h8300.c (F): New.
295 (Fpa): New.
296 (h8300_emit_stack_adjustment): Call them.
297 (push): Likewise.
298 (h8300_push_pop): Likewise.
299 (h8300_expand_prologue): Likewise.
300 * config/h8300/h8300.h (DWARF2_DEBUGGING_INFO): Define.
301 (MUST_USE_SJLJ_EXCEPTIONS): Define.
302 (INCOMING_RETURN_ADDR_RTX): Define.
303 (INCOMING_FRAME_SP_OFFSET): Define.
304 (DWARF_CIE_DATA_ALIGNMENT): Define.
305
306 2009-10-14 Jakub Jelinek <jakub@redhat.com>
307
308 * stor-layout.c (place_field): Don't emit -Wpadded warnings for
309 fields in builtin structs.
310 (finalize_record_size): Likewise.
311
312 2009-10-14 Richard Guenther <rguenther@suse.de>
313
314 * gimple.c (gtc_ob): New global.
315 (struct type_pair_d): Replace pointers with type UIDs.
316 (type_pair_hash): Adjust.
317 (type_pair_eq): Likewise.
318 (lookup_type_pair): Likewise. Allocate from an obstack.
319 (gimple_force_type_merge): Adjust.
320 (gimple_types_compatible_p): Likewise.
321 (free_gimple_type_tables): Free the obstack.
322
323 2009-10-14 Jakub Jelinek <jakub@redhat.com>
324
325 * tree-parloops.c (separate_decls_in_region_debug_bind): Drop debug
326 stmts setting DEBUG_EXPR_DECLs.
327
328 * cfgexpand.c (expand_debug_expr): Ignore zero-length bitfields.
329 Don't crash if mode1 is VOIDmode.
330
331 2009-09-26 Vladimir Makarov <vmakarov@redhat.com>
332
333 * params.def (PARAM_IRA_LOOP_RESERVED_REGS): New.
334 * params.h (IRA_LOOP_RESERVED_REGS): New
335 * tree-pass.h (pass_subregs_of_mode_init,
336 pass_subregs_of_mode_finish): Remove.
337 * passes.c (pass_subregs_of_mode_init,
338 pass_subregs_of_mode_finish): Remove.
339 (pass_reginfo_init): Move before loop optimizations.
340 * config/i386/i386.h (STACK_REG_COVER_CLASS): Define.
341 * common.opt (fira-loop-pressure): New.
342 * toplev.h (flag_ira_loop_pressure): New.
343 * rtl.h (init_subregs_of_mode, finish_subregs_of_mode): New
344 externals.
345 * reginfo.c (init_subregs_of_mode, finish_subregs_of_mode):
346 Make external and void type functions.
347 (gate_subregs_of_mode_init, pass_subregs_of_mode_init,
348 pass_subregs_of_mode_finish): Remove.
349 * ira-costs.c (init_costs): Call init_subregs_of_mode.
350 * regmove.c: Include ira.h.
351 (regmove_optimize): Call ira_set_pseudo_classes after IRA based
352 register pressure calculation in loops.
353 * loop-invariant.c: Include REGS_H and ira.h.
354 (struct loop_data): New members max_reg_pressure, regs_ref, and
355 regs_live.
356 (struct invariant): New member orig_regno.
357 (curr_loop): New variable.
358 (find_exits): Initialize regs_ref and regs_live.
359 (create_new_invariant): Initialize orig_regno.
360 (get_cover_class_and_nregs): New.
361 (get_inv_cost): Make aregs_needed an array. Use regs_needed as an
362 array. Add code for flag_ira_loop_pressure.
363 (gain_for_invariant): Make new_regs an array. Add code for
364 flag_ira_loop_pressure.
365 (best_gain_for_invariant): Ditto.
366 (set_move_mark): New parameter gain. Use it for debugging output.
367 (find_invariants_to_move): Make regs_needed and new_regs an array.
368 Add code for flag_ira_loop_pressure.
369 (move_invariant_reg): Set up orig_regno.
370 (move_invariants): Set up reg classes for pseudos for
371 flag_ira_loop_pressure.
372 (free_loop_data): Clear regs_ref and regs_live.
373 (curr_regs_live, curr_reg_pressure, regs_set, n_regs_set,
374 get_regno_cover_class, change_pressure, mark_regno_live,
375 mark_regno_death, mark_reg_store, mark_reg_clobber,
376 mark_reg_death, mark_ref_regs, calculate_loop_reg_pressure): New.
377 (move_loop_invariants): Calculate pressure. Initialize curr_loop.
378 * ira.c (ira): Call ira_set_pseudo_classes after IRA based
379 register pressure calculation in loops if new regs were added.
380 Call finish_subregs_of_mode.
381 * opts.c (decode_options): Set up flag_ira_loop_pressure.
382 * Makefile.in (loop-invariant.o): Add ira.h.
383 (regmove.o): Ditto.
384 * doc/invoke.texi (-fira-loop-pressure, ira-loop-reserved-regs):
385 Describe.
386 * doc/tm.texi (STACK_REG_COVER_CLASS): Describe.
387
388 2009-10-14 Richard Guenther <rguenther@suse.de>
389
390 * lto-symtab.c (lto_symtab_compatible): Fold in ...
391 (lto_symtab_merge): ... here. Rewrite both to take the
392 prevailing and a to-be-merged entry and to queue diagnostics
393 properly.
394 (lto_symtab_resolve_replaceable_p): New predicate for
395 symbol resolution.
396 (lto_symtab_resolve_can_prevail_p): Likewise.
397 (lto_symtab_resolve_symbols): Rewrite. Fold in code that
398 handles merging commons by choosing the largest decl. Fold
399 in code that gives ODR errors.
400 (lto_symtab_merge_decls_2): Simplify a lot. Emit queued
401 diagnostics here.
402 (lto_symtab_merge_decls_1): Re-structure. Deal with the
403 case of no prevailing decl here. Diagnose mismatches
404 in object types here. Drop all but the prevailing decls.
405 (lto_symtab_prevailing_decl): Return the single prevailing decl.
406 * lto-streamer-in.c (lto_input_tree_ref): Deal with
407 VIEW_CONVERT_EXPRs in decl slots. Unshare the tree in this case.
408
409 2009-10-14 Richard Guenther <rguenther@suse.de>
410
411 PR lto/41521
412 * lto-streamer-in.c (input_bb): Replace debug stmts with
413 nops instead of dropping them.
414
415 2009-10-14 Nick Clifton <nickc@redhat.com>
416
417 * gcc/doc/extended.texi: Replace the dash character with
418 @minus{} in situations where it is being used as a minus
419 symbol.
420 * gcc/doc/tm.texi: Likewise.
421 * gcc/doc/md.texi: Likewise.
422
423 2009-10-14 Jakub Jelinek <jakub@redhat.com>
424
425 PR preprocessor/41543
426 * input.h (BUILTINS_LOCATION): Change to 1 from 2.
427 Assert BUILTINS_LOCATION < RESERVED_LOCATION_COUNT.
428 * tree.c: Include intl.h.
429 (expand_location): Handle BUILTINS_LOCATION.
430 * Makefile.in (tree.o): Depend on intl.h.
431
432 PR debug/41695
433 * dwarf2out.c (dwarf2out_var_location): Always clear
434 last_postcall_label when changing last_label.
435
436 2009-10-14 Pascal Obry <obry@adacore.com>
437
438 * gcc.c (DEFAULT_SWITCH_CURTAILS_COMPILATION): Add -E.
439 (process_command): Handle -E as done with -c and -S. Do not add
440 the target executable suffix to the output file when -E is used.
441 (main): Adjust error message accordingly.
442
443 2009-10-14 Alexandre Oliva <aoliva@redhat.com>
444
445 PR debug/41343
446 PR debug/41447
447 PR debug/41264
448 PR debug/41338
449 * tree.c (tree_node_structure_for_code): DEBUG_EXPR_DECL uses
450 decl with rtl.
451 (tree_code_size): Likewise.
452
453 2009-10-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
454
455 * builtins.c (fold_builtin_1): Support complex "arc" functions.
456 * real.h (HAVE_mpc_arc): Define.
457
458 2009-10-14 Kaz Kojima <kkojima@gcc.gnu.org>
459
460 * config/sh/sh.c (TARGET_BUILTIN_DECL): Define.
461 (struct builtin_description): Add fndecl field.
462 (bdesc): Remove const qualifier. Update initializer.
463 (sh_media_init_builtins): Remove const qualifier for d. Record
464 the result of add_builtin_function to the fndecl field.
465 (sh_builtin_decl): New.
466 (sh_media_builtin_decl): New.
467
468 2009-10-14 Hans-Peter Nilsson <hp@axis.com>
469
470 PR target/38948
471 * config/cris/cris.h (SECONDARY_RELOAD_CLASS): Handle reload
472 requests between special registers.
473
474 2009-10-13 Eric Botcazou <ebotcazou@adacore.com>
475
476 * dwarf2out.c (mem_loc_descriptor): Accept UNGT as well.
477
478 2009-10-13 Richard Henderson <rth@redhat.com>
479
480 PR tree-optimization/41377
481 * tree-eh.c (unsplit_eh): Propagate degenerate PHIs.
482 (cleanup_empty_eh_merge_phis): New change_region parameter;
483 pass it on to redirect_eh_edge_1. Update callers.
484 (cleanup_empty_eh_unsplit): Don't require an existing EH label
485 at the destination block.
486
487 2009-10-13 Basile Starynkevitch <basile@starynkevitch.net>
488
489 * passes.c (register_pass): Replaced gcc_unreachable by
490 fatal_error on failure. Mentions plugins in comments & messages.
491
492 2009-10-13 Jakub Jelinek <jakub@redhat.com>
493
494 PR target/41693
495 * rtl.h (DEBUG_EXPR_TREE_DECL): Define.
496 * sched-vis.c (print_value): Use it.
497 * cselib.c (cselib_hash_rtx): Likewise.
498 * print-rtl.c (print_rtx): Likewise.
499 * cfgexpand.c (expand_debug_rtx): Likewise.
500 * var-tracking.c (vt_expand_loc_callback): Likewise.
501
502 2009-10-13 Richard Guenther <rguenther@suse.de>
503
504 PR lto/41565
505 * opts.c (handle_option): Split out code to handle setting
506 the options flag var ...
507 (set_option): ... here.
508 * opts.h (set_option): Declare.
509 * lto-opts.c (register_user_option_p): Include -fexceptions
510 and all position independent code variants.
511 (handle_common_option): Remove.
512 (lto_reissue_options): Use set_option.
513
514 2009-10-13 Martin Jambor <mjambor@suse.cz>
515
516 PR tree-optimization/41661
517 * ipa-prop.c (compute_complex_pass_through): Allow only operations
518 that are tcc_comparisons or do not change the type in any
519 un-usleless way.
520 * ipa-cp.c (ipcp_lattice_from_jfunc): Request boolean type when
521 folding tcc_comparison operations.
522
523 2009-10-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
524
525 * config/s390/s390.c (s390_encode_section_info): Handle BLKmode
526 properly.
527
528 2009-10-12 Alexandre Oliva <aoliva@redhat.com>
529
530 PR debug/41343
531 PR debug/41447
532 PR debug/41264
533 PR debug/41338
534 * tree.def (DEBUG_EXPR_DECL): New.
535 * rtl.def (DEBUG_EXPR): New.
536 * gengtype.c (adjust_field_rtx_def): Handle it.
537 * tree-ssa.c (propagate_var_def_into_debug_stmts): Rename to...
538 (insert_debug_temp_for_var_def): ... this. Drop support for
539 moving. Take iterator for def stmt; insert debug stmt before it.
540 Scan early for use count and kind in debug stmts.
541 (propagate_defs_into_debug_stmts): Rename to...
542 (insert_debug_temps_for_defs): ... this. Likewise.
543 * tree.h (DEBUG_TEMP_UID): New.
544 * tree.c (next_debug_decl_uid): New.
545 (make_node_stat): Count debug decls separately.
546 (copy_node_stat): Likewise.
547 * cfgexpand.c (expand_debug_expr): Handle DEBUG_EXPR_DECL.
548 * var-tracking.c (dv_is_decl_p): Recognize it.
549 (VALUE_RECURSED_INTO): Apply to DEBUG_EXPRs too.
550 (track_expr_p): Track expanded DEBUG_EXPR_DECLs.
551 (vt_expand_loc_callback): Expand DEBUG_EXPRs.
552 (emit_note_insn_var_location): Don't emit notes for DEBUG_EXPR_DECLs.
553 * cselib.c (rtx_equal_for_cselib_p): Handle DEBUG_EXPR.
554 (cselib_hash_rtx): Likewise.
555 (cselib_expand_value_rtx_1): Use callback for DEBUG_EXPR.
556 * tree-ssa-operands.c (get_expr_operands): Skip DEBUG_EXPR_DECLs in
557 debug bind stmts.
558 * emit-rtl.c (verify_rtx_sharing): Handle DEBUG_EXPR and VALUE.
559 (copy_rtx_if_shared_1, reset_used_flags, set_used_flags): Likewise.
560 * rtl.c (copy_rtx): Likewise.
561 (rtx_equal_p_cb, rtx_equal_p): Handle DEBUG_EXPR.
562 * print-rtl.c (print_rtx): Likewise.
563 * sched-vis.c (print_value): Likewise.
564 (print_insn): Handle DEBUG_EXPR_DECL.
565 * tree-dump.c (dequeue_and_dump): Likewise.
566 * tree-pretty-print.c (dump_decl_name, dump_generic_node): Likewise.
567 * gimple-iterator (gsi_replace): Check for same lhs.
568 (gsi_remove): Insert debug temps.
569 * tree-ssa-loop-im.c (rewrite_reciprocal): Replace with same lhs.
570 (move_computations_stmt): Drop explicit propagation into debug stmts.
571 (rewrite_bittest): Likewise. Use gsi_remove for propagation.
572 * tree-ssa-reassoc.c (rewrite_expr_tree, linearize_expr): Likewise.
573 * tree-ssa-sink.c (statement_sink_location): Likewise.
574 * tree-ssa-forwprop (forward_propagate_addr_expr): Likewise.
575 * tree-ssanames.c (release_ssa_name): Adjust for rename.
576 * tree-flow.h: Likewise.
577 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Don't mark
578 debug temps without values.
579 (eliminate_unnecessary_stmts): Don't discard just-inserted
580 debug stmts.
581
582 2009-10-12 Hans-Peter Nilsson <hp@axis.com>
583
584 PR target/26515
585 * config/cris/cris.md (andu): Check that operand 1 is one of the
586 general registers. Fix typo in head comment.
587
588 2009-10-12 Stefan Dösinger <stefan@codeweavers.com>
589
590 * config/i386/i386.md (vswapmov): New.
591 * config/i386/i386.c (ix86_handle_fndecl_attribute): New.
592 (ix86_function_ms_hook_prologue): New.
593 (ix86_expand_prologue): Handle ms_hook_prologue attribute.
594 * configure.ac: Test for swap suffix support in as.
595 * configure: Rebuild.
596
597 2009-10-12 Jakub Jelinek <jakub@redhat.com>
598
599 PR target/41680
600 * config/i386/i386.md (split after *testqi_ext_3_rex64): Only narrow
601 paradoxical subregs to prevent partial register stalls if the inner
602 mode is integer mode.
603
604 2009-10-12 Uros Bizjak <ubizjak@gmail.com>
605
606 * config/i386/i386.md (*setcc_<mode>_2): Remove insn pattern.
607
608 2009-10-12 Dodji Seketeli <dodji@redhat.com>
609
610 PR c++/41570
611 * gcc/dwarf2out.c (template_parameter_pack_die,
612 gen_formal_parameter_pack_die): Use add_name_and_src_coords_attributes.
613
614 2009-10-12 Alexandre Oliva <aoliva@redhat.com>
615
616 PR debug/41616
617 * tree-into-ssa.c (insert_phi_nodes_for): Build debug bind stmts
618 on updates too.
619 (maybe_register_def): Likewise. Take stmt iterator.
620 (rewrite_update_stmt): Take stmt iterator and pass it on.
621 (rewrite_update_enter_block): Pass stmt iterator.
622
623 2009-10-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
624
625 * config/spu/spu.c (TARGET_BUILTIN_DECL): Define.
626 (spu_builtin_decl): New function.
627
628 2009-10-12 Uros Bizjak <ubizjak@gmail.com>
629
630 * config/i386/i386.md (SWIM): New mode iterator.
631 (mov<mode>cc): Macroize expander from mov{qi,hi,si,di}cc patterns
632 using SWIM mode iterator.
633 (x86_mov<mode>cc_0_m1): Macroize insn from x86_mov{si,di}cc_0_m1
634 patterns using SWI48 mode iterator.
635 (*x86_mov<mode>cc_0_m1_se): Macroize insn from
636 *x86_mov{si,di}cc_0_m1_se patterns using SWI48 mode iterator.
637 (*x86_mov<mode>cc_0_m1_neg): New insn pattern.
638 (*mov<mode>cc_noc): Macroize insn from *mov{hi,si,di}cc_noc
639 patterns using SWI248 mode iterator.
640 * config/i386/i386.c (ix86_expand_int_movcc): Update the call to
641 gen_x86_movdicc_0_m1_rex64 for renamed function
642
643 2009-10-11 Jose Ruiz <ruiz@adacore.com>
644 Eric Botcazou <ebotcazou@adacore.com>
645
646 PR target/33743
647 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Define.
648 * config/sparc/sol2-unwind.h: New file.
649
650 2009-10-11 Olivier Hainque <hainque@adacore.com>
651 Eric Botcazou <ebotcazou@adacore.com>
652
653 PR target/33743
654 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Define.
655 * config/i386/sol2-unwind.h: New file.
656
657 2009-10-11 H.J. Lu <hongjiu.lu@intel.com>
658
659 PR target/41665
660 * config/i386/i386.md (addsi_1_zext): Get the proper second
661 operand for lea.
662
663 2009-10-11 Richard Sandiford <rdsandiford@googlemail.com>
664
665 * simplify-rtx.c (simplify_replace_rtx): Use rtx_equal_p for
666 all OLD_RTXes, not just REGs. Use copy_rtx to create the
667 replacement value.
668
669 2009-10-11 Richard Guenther <rguenther@suse.de>
670
671 * gimple.c (iterative_hash_type_name): Do not handle special
672 anonymous names.
673
674 2009-10-11 Uros Bizjak <ubizjak@gmail.com>
675
676 * config/i386/i386.md (*setcc_di_1): New insn_and_split pattern.
677 (*setcc_si_1_and): Ditto.
678 (*setcc_si_1_movzbl): Ditto.
679 (*setcc_<mode>_2): Ditto.
680 (*setcc_qi): Rename from *setcc_1.
681 (*setcc_qi_slp): Rename from *setcc_2.
682
683 (*zero_extendqihi2_movzbw_and splitter): Use ix86_expand_clear.
684 (*zero_extendqisi2_movzbw_and splitter): Ditto.
685
686 * config/i386/i386.c (ix86_expand_clear): Remove reload_completed from
687 "if" condition, there is already assert with reload_completed present.
688
689 2009-10-11 Gerald Pfeifer <gerald@pfeifer.com>
690
691 * plugin.c (try_init_one_plugin): Improve constness of variable err.
692
693 2009-10-10 Gerald Pfeifer <gerald@pfeifer.com>
694
695 * doc/install.texi (Final install): Refer to
696 http://gcc.gnu.org/bugs/ for bug reporting.
697
698 2009-10-10 Peter Bergner <bergner@vnet.ibm.com>
699
700 * configure.ac: Add test for dci instruction.
701 * configure: Regenerate.
702 * config.in: Likewise.
703 * config.gcc: Handle --with-cpu=476 and --with-cpu=476fp.
704 * doc/invoke.texi: Add cpu_type 476 and 476fp.
705 (-mmulhw): Add 476 to description.
706 (-mdlmzb): Likewise.
707 * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=476.
708 * config/rs6000/rs6000.c (processor_costs): Add ppc476_cost.
709 (processor_target_table): Add 476 and 476fp entries.
710 (rs6000_override_options): Use ppc476_cost for PROCESSOR_PPC476.
711 (rs6000_issue_rate): Add CPU_PPC476.
712 * config/rs6000/rs6000.h (ASM_CPU_476_SPEC): Define.
713 (ASM_CPU_SPEC): Pass %(asm_cpu_476) for -mcpu=476 and -mcpu=476fp.
714 (processor_type): Add PROCESSOR_PPC476.
715 (EXTRA_SPECS): Add asm_cpu_476 string.
716 * config/rs6000/rs6000.md: (define_attr "type"): Add isel attribute.
717 (define_attr "cpu"): Add ppc476.
718 Include 476.md.
719 Update comments for 476.
720 (isel_signed, isel_unsigned): Change to use "isel" type attribute.
721 * config/rs6000/vxworks.h (CPP_SPEC): Handle 464 and 476.
722 Update copyright year.
723 * config/rs6000/476.md: New file.
724 * config/rs6000/40x.md: Add description for "isel" attribute.
725 Update copyright year.
726 * config/rs6000/440.md: Likewise.
727 * config/rs6000/603.md: Likewise.
728 * config/rs6000/6xx.md: Likewise.
729 * config/rs6000/7450.md: Likewise.
730 * config/rs6000/7xx.md: Likewise.
731 * config/rs6000/8540.md: Likewise.
732 * config/rs6000/cell.md: Likewise.
733 * config/rs6000/e300c2c3.md: Likewise.
734 * config/rs6000/e500mc.md: Likewise.
735 * config/rs6000/mpc.md: Likewise.
736 * config/rs6000/power4.md: Likewise.
737 * config/rs6000/power5.md: Likewise.
738 * config/rs6000/power6.md: Likewise.
739 * config/rs6000/power7.md: Likewise.
740 * config/rs6000/rios1.md: Likewise.
741 * config/rs6000/rios2.md: Likewise.
742 * config/rs6000/rs64.md: Likewise.
743
744 2009-10-10 Richard Guenther <rguenther@suse.de>
745
746 PR tree-optimization/41654
747 * tree-ssa-ifcombine.c (ifcombine_ifandif): Properly canonicalize
748 a cond expr before calling gimple_cond_set_condition_from_tree.
749 (ifcombine_iforif): Likewise.
750
751 2009-10-09 Ian Lance Taylor <iant@google.com>
752
753 * configure.ac: Use AC_SEARCH_LIBS to find dlopen.
754 * configure: Rebuild.
755
756 2009-10-09 Neil Vachharajani <nvachhar@google.com>
757
758 * doc/cpp.texi (Other Directives): Do not list #ident and #sccs as
759 deprecated.
760
761 2009-10-09 Richard Guenther <rguenther@suse.de>
762
763 PR lto/41638
764 * target-def.h (TARGET_BUILTIN_DECL): Define.
765 (TARGET_INITIALIZER): Add TARGET_BUILTIN_DECL.
766 * target.h (struct gcc_target): Add builtin_decl target hook.
767 * doc/tm.texi (TARGET_BUILTIN_DECL): Document.
768 * lto-streamer-in.c (lto_get_builtin_tree): Fix handling of
769 target builtins.
770 * lto-streamer-out.c (lto_output_tree_pointers): Use sorry,
771 not gcc_unreachable.
772 (lto_output_builtin_tree): Sorry if the target does not support
773 streaming target builtins.
774 * config/rs6000/rs6000.c (TARGET_BUILTIN_DECL): Define.
775 (rs6000_builtin_decl): New function.
776 * config/i386/i386.c (TARGET_BUILTIN_DECL): Define.
777 (ix86_builtin_decl): New function.
778
779 2009-10-09 Jakub Jelinek <jakub@redhat.com>
780
781 PR preprocessor/41445
782 * c-ppoutput.c (do_line_change): New function.
783 (cb_line_change): Use it.
784 (scan_translation_unit): Call do_line_change if
785 avoid_paste or PREV_WHITE and token location is on a different line
786 than print.src_line.
787
788 PR debug/40521
789 * dwarf2out.c (dwarf2out_init): Test whether
790 HAVE_GAS_CFI_SECTIONS_DIRECTIVE is non-zero instead of checking
791 it is defined.
792
793 PR rtl-optimization/41646
794 * calls.c (expand_call): For BLKmode types returned in registers
795 avoid likely spilled hard regs in copy_blkmode_from_reg generated
796 insns.
797
798 2009-10-09 Richard Guenther <rguenther@suse.de>
799
800 PR tree-optimization/41634
801 * tree-ssa-dom.c (remove_local_expressions_from_table): Assert
802 we remove the correct elements.
803 (optimize_stmt): Make sure to update stmt operands before
804 optimizing redundancies.
805
806 2009-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
807
808 * config/s390/s390.md ("prefetch"): Remove stcmh for prefetching.
809
810 2009-10-09 Richard Guenther <rguenther@suse.de>
811
812 PR driver/41637
813 * lto-wrapper.c (ltrans_output_file, flto_out, args_name): New
814 globals.
815 (lto_wrapper_exit): New function.
816 (fatal): Use it.
817 (fatal_perror): Likewise.
818 (fork_execute): Use global args_name, do not free it.
819 (run_gcc): Use global ltrans_output_file, flto_out, do not free them.
820 * lto-streamer.h: Remove duplicate prototypes.
821
822 2009-10-09 Richard Guenther <rguenther@suse.de>
823
824 * cgraph.c (cgraph_create_edge): Check for NULL call_stmt
825 before calling stmt_can_throw_external.
826
827 2009-10-09 Eric Botcazou <ebotcazou@adacore.com>
828
829 PR tree-optimization/40071
830 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Build a ref-all
831 pointer if the original data reference doesn't conflict with the
832 created vector data reference. Fix long line.
833
834 2009-10-09 Uros Bizjak <ubizjak@gmail.com>
835
836 * config/i386/i386.md (any_div): New code iterator.
837 (u): Handle div and udiv.
838 (sgnprefix): Ditto.
839 (<u>divqi3): Macroize insn from {,u}divqi3 using any_div
840 code iterator.
841 (lfloor<MODEF:mode><SWI48:mode>2): Macroize insn from
842 lfloor<mode>{si,di}2 patterns using SWI48 mode iterator.
843 (lceil<MODEF:mode><SWI48:mode>2): Macroize insn from
844 lceil<mode>{si,di}2 patterns using SWI48 mode iterator.
845
846 2009-10-08 Joseph Myers <joseph@codesourcery.com>
847
848 * gcc.c (main): Remove trailing "." from diagnostics.
849
850 2009-10-08 Cary Coutant <ccoutant@google.com>
851
852 Add support for debugging with ICF (Identical Code Folding).
853 * calls.c (debug.h): New #include.
854 (emit_call_1): Call virtual_call_token debug hook.
855 * common.opt (-fenable-icf-debug): New option.
856 * dwarf2out.c (dwarf2_debug_hooks): Add entries for new hooks (two
857 locations in the source).
858 (poc_label_num): New variable.
859 (dcall_entry, vcall_entry): New typedefs.
860 (dcall_table, vcall_table): New variables.
861 (struct vcall_insn): New type.
862 (vcall_insn_table): New variable.
863 (DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION): New macros.
864 (size_of_dcall_table): New function.
865 (output_dcall_table): New function.
866 (size_of_vcall_table): New function.
867 (output_vcall_table): New function.
868 (dwarf2out_direct_call): New function.
869 (vcall_insn_table_hash): New function.
870 (vcall_insn_table_eq): New function.
871 (dwarf2out_virtual_call_token): New function.
872 (dwarf2out_virtual_call): New function.
873 (dwarf2out_init): Allocate new tables and sections.
874 (prune_unused_types): Mark DIEs referenced from direct call table.
875 (dwarf2out_finish): Output direct and virtual call tables.
876 * final.c (final_scan_insn): Call direct_call and virtual_call
877 debug hooks.
878 * debug.h (struct gcc_debug_hooks): Add direct_call,
879 virtual_call_token, virtual_call hooks.
880 (debug_nothing_uid): New function.
881 * debug.c (do_nothing_debug_hooks): Add dummy entries for new hooks.
882 (debug_nothing_uid): New function.
883 * dbxout.c (dbx_debug_hooks): Add dummy entries for new hooks.
884 (xcoff_debug_hooks): Likewise.
885 * sdbout.c (sdb_debug_hooks): Likewise.
886 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
887 * doc/invoke.texi (-fenable-icf-debug): New option.
888
889 2009-10-08 Alexandre Oliva <aoliva@redhat.com>
890
891 PR debug/41353
892 * regmove.c (regmove_backward_pass): Replace src with dst in the
893 debug insn, and check for dst before rather than after.
894
895 2009-10-08 Janis Johnson <janis187@us.ibm.com>
896
897 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Remove.
898 (TARGET_DELEGITIMIZE_ADDRESS): Likewise.
899
900 2009-10-08 Jan Hubicka <jh@suse.cz>
901
902 PR middle-end/41626
903 * cgraphbuild.c (record_reference): When parameter DATA is NULL,
904 do not mark cgraph nodes as needed.
905 (record_references_in_initializer): Add new only_vars parameter.
906 * cgraph.h (record_references_in_initializer): New parameter.
907 * varasm.c (assemble_variable): Update call.
908 * varpool.c (varpool_analyze_pending_decls): Always look for
909 referenced vars.
910
911 2009-10-08 Anatoly Sokolov <aesok@post.ru>
912
913 * config/avr/avr.c (last_insn_address) Remove variable.
914 (expand_prologue): Don't initialise last_insn_address variable.
915 (final_prescan_insn): Don't output insn size.
916 * config/avr/avr.opt (msize): Remove switch.
917 * doc/invoke.texi (AVR Options): Remove documentation of -msize
918 switch.
919
920 2009-10-08 Adam Nemet <anemet@caviumnetworks.com>
921
922 * combine.c (label_tick_ebb_start): Fix comment.
923 (combine_instructions): Set label_tick and label_tick_ebb_start before
924 calling setup_incoming_promotions. Start them from 1. Increment
925 label_tick instead of deriving it from the BB index. Rather than
926 comparing ticks use the block from the previous iteration to decide
927 whether to start a new EBB. Remove empty lines before function.
928
929 2009-10-08 Michael Matz <matz@suse.de>
930
931 PR middle-end/41573
932 * builtins.c (fold_builtin_isascii): Use fold_build2.
933 (fold_builtin_isdigit): Ditto.
934 * except.c (duplicate_eh_regions_1): Tolerate NULL labels.
935 * tree-cfg.c (struct rus_data, remove_useless_stmts_warn_notreached,
936 remove_useless_stmts_cond, remove_useless_stmts_tf,
937 remove_useless_stmts_tc, remove_useless_stmts_bind,
938 remove_useless_stmts_goto, remove_useless_stmts_label,
939 remove_useless_stmts_1, remove_useless_stmts,
940 pass_remove_useless_stmts): Remove.
941 * tree-pass.h (pass_remove_useless_stmts): Don't declare.
942 * passes.c (init_optimization_passes): Don't add
943 pass_remove_useless_stmts.
944 * tree-eh.c (lower_eh_constructs_2): Handle empty cleanups.
945 * tree.c (free_lang_data_in_decl): Don't clear DECL_INITIAL of
946 static constants.
947 * lto-symtab.c (lto_symtab_register_decl): Accepts DECL_INITIAL
948 for static constants.
949 * lto-streamer-out.c (output_gimple_stmt): Handle GIMPLE_NOP.
950 * lto-streamer-in.c (input_gimple_stmt): Handle GIMPLE_NOP.
951
952 2009-10-08 Richard Guenther <rguenther@suse.de>
953
954 * gimple.c (free_gimple_type_tables): New function.
955 * gimple.h (free_gimple_type_tables): Declare.
956
957 2009-10-07 Mark Heffernan <meheff@google.com>
958
959 * ipa-prop.c (ipa_print_node_params) Only print
960 names of named arguments.
961
962 2009-10-08 Rafael Avila de Espindola <espindola@google.com>
963
964 * gcc.c (LINK_COMMAND_SPEC): Pass libc with -pass-through if it is
965 being statically linked.
966
967 2009-10-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
968
969 * collect2.c (add_lto_object): Only define if OBJECT_FORMAT_NONE.
970
971 2009-10-08 Jan Hubicka <jh@suse.cz>
972
973 PR bootstrap/41620
974 * ipa.c (cgraph_externally_visible_p,
975 function_and_variable_visibility,
976 whole_program_function_and_variable_visibility): Skip non-finalized
977 nodes.
978
979 2009-10-08 Nick Clifton <nickc@redhat.com>
980
981 * config/mn10300/mn10300.h (CONSTANT_ADDRESS_P): Do not allow
982 CONST_DOUBLEs.
983
984 2009-10-08 Andreas Tobler <a.tobler@schweiz.org>
985
986 PR bootstrap/37739
987 * config.host: Use config/x-cflags-O1 for powerpc FreeBSD.
988
989 2009-10-07 Joseph Myers <joseph@codesourcery.com>
990
991 PR c/41182
992 * c-common.c (c_fully_fold_internal): Strip nops from the result
993 of recursive calls to c_fully_fold_internal.
994 (c_wrap_maybe_const): New.
995 (c_save_expr): Use c_wrap_maybe_const.
996 * c-common.h (c_wrap_maybe_const): Declare.
997 * c-typeck.c (build_conditional_expr, c_finish_stmt_expr,
998 build_binary_op): Use c_wrap_maybe_const.
999
1000 2009-10-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1001
1002 * real.c: Fix comment to reflect actual exponent size.
1003
1004 2009-10-08 Ben Elliston <bje@au.ibm.com>
1005
1006 * config/rs6000/a2.md: Add FSF comment header.
1007
1008 2009-10-07 Uros Bizjak <ubizjak@gmail.com>
1009
1010 * config/i386/i386.md (any_extend): New code iterator.
1011 (u, s): New code attributes.
1012 (sgnprefix): Ditto.
1013 (DWIH): Rewrite as code iterator for SI and DI modes.
1014 (DWI): Rewrite as mode attribute.
1015 (dwi): New mode attribute.
1016 (di): Depend on SI mode and DI mode.
1017 (doubleint_general_operand): Remove mode attribute.
1018
1019 (*lea_1): Macroize insn from *lea_1_rex64 and *lea_1 patterns using
1020 DWIH mode iterator.
1021
1022 (*add<mode>3_doubleword): Use DWIH as the base mode iterator.
1023 (*sub<mode>3_doubleword): Ditto.
1024
1025 (mul<mode>3): Macroize expander from mul{hi,si,di}3 patterns
1026 using SWIM248 mode iterator.
1027 (*mul<mode>3_1): Macroize insn from mul{si,di}3_1 patterns
1028 using SWI48 mode iterator.
1029 (<u>mul<mode><dwi>3): Macroize expander from {,u}mul{sidi,diti}3
1030 patterns using DWIH mode iterator and any_extend code iterator.
1031 (<u>mulqihi3): Macroize expander from {,u}mulqihi3 patterns
1032 using any_extend code iterator.
1033 (*<u>mul<mode><dwi>3_1): Macroize insn from {,u}mul{sidi,diti}3_1
1034 patterns using DWIH mode iterator and any_extend code iterator.
1035 (*<u>mulqihi3_1): Macroize insn from {,u}mulqihi3_1 patterns
1036 using any_extend code iterator.
1037 (<s>mul<mode>3_highpart): Macroize expander from
1038 {s,u}mul{si,di}3_highpart patterns using DWIH mode iterator
1039 and any_extend code iterator.
1040 (*<s>muldi3_highpart_1): Macroize insn from
1041 *{s,u}muldi3_highpart_rex64 patterns using any_extend code iterator.
1042 (*<s>mulsi3_highpart_1): Macroize insn from *{s,u}mulsi3_highpart_1
1043 patterns using any_extend code iterator.
1044 (*<s>mulsi3_highpart_zext): Macroize insn from
1045 *{s,u}mulsi3_highpart_zext patterns using any_extend code iterator.
1046
1047 2009-10-07 Jakub Jelinek <jakub@redhat.com>
1048
1049 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Don't add
1050 DW_AT_const_value if VAR_DIE already has DW_AT_abstract_origin
1051 refering to a DIE with DW_AT_const_value.
1052
1053 2009-10-07 Vladimir Makarov <vmakarov@redhat.com>
1054
1055 PR middle-end/22072
1056 * ira-lives.c (check_and_make_def_conflict): Process all operands.
1057
1058 2009-10-06 Jan Hubicka <jh@suse.cz>
1059
1060 * cgraph.c (cgraph_node_can_be_local): Handle externally visible nodes
1061 correctly.
1062
1063 2009-10-06 Uros Bizjak <ubizjak@gmail.com>
1064
1065 * config/i386/i386.md (*lea_1_rex64, *lea_1, *lea_1_zext,
1066 *lea_2_rex64): Move before *add<mode>_1 pattern.
1067
1068 2009-10-07 Jan Hubicka <jh@suse.cz>
1069
1070 * collect2.c (main): Add -fno-whole-program.
1071 * gcc.c (set_collect_gcc_options): Do not remove whole program here.
1072
1073 2009-10-07 Jan Hubicka <jh@suse.cz>
1074
1075 * lto-symtab.c (lto_cgraph_replace_node): Assert that inline clones
1076 has no address taken.
1077 * cgraph.c (cgraph_mark_needed_node): Assert that inline clones are
1078 never needed.
1079 (cgraph_clone_node): Clear externally_visible flag for clones.
1080 * cgraph.h (cgraph_only_called_directly_p,
1081 cgraph_can_remove_if_no_direct_calls_p): New predicates.
1082 * tree-pass.h (pass_ipa_whole_program_visibility): Declare.
1083 * ipa-cp.c (ipcp_cloning_candidate_p): Use new predicate.
1084 (ipcp_initialize_node_lattices, ipcp_estimate_growth,
1085 ipcp_insert_stage): Likwise.
1086 * cgraphunit.c (cgraph_decide_is_function_needed): Do not compute
1087 externally_visible flag.
1088 (verify_cgraph_node): Verify that inline clones look right.
1089 (process_function_and_variable_attributes): Do not set
1090 externally_visible flags.
1091 (ipa_passes): Avoid executing small_ipa_passes at LTO stage; they've
1092 been already run.
1093 * lto-cgraph.c (lto_output_node): Assert that inline clones are not
1094 boundaries.
1095 * ipa-inline.c (cgraph_clone_inlined_nodes): Use new predicates;
1096 clear externally_visible when turning into inline clones
1097 (cgraph_mark_inline_edge): Use new predicates.
1098 (cgraph_estimate_growth): Likewise.
1099 (cgraph_decide_inlining): Likewise.
1100 * ipa.c (cgraph_postorder): Likewise.
1101 (cgraph_remove_unreachable_nodes): Likewise; sanity check
1102 that inline clones are not needed.
1103 (cgraph_externally_visible_p): New predicate.
1104 (function_and_variable_visibility): Add whole_program parameter;
1105 always set externally_visible flag; handle COMDAT function
1106 privatization.
1107 (local_function_and_variable_visibility): New function.
1108 (gate_whole_program_function_and_variable_visibility): New function.
1109 (whole_program_function_and_variable_visibility): New function.
1110 (pass_ipa_whole_program_visibility): New function.
1111 * passes.c (init_optimization_passes): Add whole program visibility
1112 pass.
1113 (do_per_function_toporder, function_called_by_processed_nodes_p): Do
1114 not care about needed/reachable flags.
1115 * varpool.c: Include flags.h
1116 (decide_is_variable_needed): When doing LTO assume whole-program mode.
1117 (varpool_finalize_decl): When we are in LTO read-back, all variables
1118 are analyzed.
1119 (varpool_analyze_pending_decls): Skip analyzis of analyzed vars.
1120
1121 2009-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1122
1123 * config/s390/tpf.h (TARGET_DEFAULT): Remove MASK_HARD_FLOAT and
1124 add MASK_HARD_DFP.
1125
1126 2009-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1127
1128 * config.gcc: Don't include the makefile fragments intended for
1129 libgcc.
1130 * config/s390/fixdfdi.h: File removed.
1131 * config/s390/libgcc-glibc.ver: File removed.
1132 * config/s390/s390.h: Remove the fixdfdi.h hack.
1133 * config/s390/t-crtstuff: File moved to libgcc dir.
1134 * config/s390/t-linux: Likewise.
1135 * config/s390/t-tpf: libgcc specific parts removed.
1136 * config/s390/t-linux64: Likewise.
1137
1138 2009-10-06 Jerry Quinn <jlquinn@optonline.net>
1139
1140 * Makefile.in (lto-wrapper): Use COMPILER and ALL_COMPILERFLAGS.
1141 (lto-compress.o): Likewise.
1142
1143 2009-10-07 Danny Smith <dannysmith@users.sourceforge.net>
1144
1145 PR target/41512
1146 * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't propagate
1147 dllexport to class members here.
1148 (i386_pe_determine_dllimport_p): Only check static class data for
1149 definition.
1150 (i386_pe_encode_section_info): Don't recheck DECL_DLLIMPORT_P.
1151 * config/i386/winnt-cxx.c (i386_pe_type_dllimport_p): Only check
1152 functions for vague linkage.
1153 (i386_pe_type_dllexport_p): Fix formatting.
1154 (maybe_add_dllexport) New function.
1155 (i386_pe_adjust_class_at_definition): Use it to propagate dllexport
1156 to class members.
1157
1158 2009-10-07 Ben Elliston <bje@au.ibm.com>
1159
1160 * config/rs6000/a2.md: Remove duplicated lines.
1161
1162 2009-10-07 Ben Elliston <bje@au.ibm.com>
1163
1164 * config.gcc (powerpc*-*-*): Handle a2.
1165 * config/rs6000/rs6000.md (cpu): Add ppca2. Include "a2.md".
1166 * config/rs6000/a2.md: New file.
1167 * config/rs6000/rs6000.opt (mno-update): New.
1168 (mupdate): Return to using a mask, not a var.
1169 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for a2.
1170 (enum processor_type): Add PROCESSOR_PPCA2.
1171 * config/rs6000/rs6000.c (ppca2_cost): New costs.
1172 (rs6000_override_options): Add "a2" to processor_target_table.
1173 Update rs6000_always_hint logic. Correctly set rs6000_cost for a2.
1174 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=a2.
1175
1176 2009-10-06 Uros Bizjak <ubizjak@gmail.com>
1177
1178 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
1179 Use explicit gen_truncxfsf2 and gen_truncxfdf2 references to avoid
1180 reference to nonexistent gen_truncxfxf2 function.
1181
1182 2009-10-06 Uros Bizjak <ubizjak@gmail.com>
1183
1184 * config/i386/i386.md (SWI48, SDWIM, DWI): New mode iterators.
1185 (DWIH, g, di, doubleint_general_operand): New mode attributes.
1186 (general_operand): Handle TI mode.
1187 (add<mode>3): Macroize expander from add{qi,hi,si,di,ti}3 patterns
1188 using SDWIM mode iterator.
1189 (*add<mode>3_doubleword): New insn_and_split pattern. Macroize
1190 pattern from *add{di,ti}3_1 patterns and corresponding splitters
1191 using DWI mode iterator.
1192 (add<mode>3_carry): Macroize insn from add{qi,hi,si,di}3_carry
1193 patterns using SWI mode iterator.
1194 (*add<mode>3_cc): Macroize insn from add{si,di}3_cc patterns
1195 using SWI48 mode iterator.
1196 (*add<mode>_1): Ditto from add{si,di}_1 patterns.
1197 (*add<mode>_2): Ditto from add{si,di}_2 patterns.
1198 (*add<mode>_3): Ditto from add{si,di}_3 patterns.
1199 (*add<mode>_5): Ditto from add{si,di}_5 patterns.
1200 (sub<mode>3): Macroize expander from sub{qi,hi,si,di,ti}3 patterns
1201 using SDWIM mode iterator.
1202 (*sub<mode>3_doubleword): New insn_and_split pattern. Macroize
1203 pattern from *sub{di,ti}3_1 patterns and corresponding splitters
1204 using DWI mode iterator.
1205 (sub<mode>3_carry): Macroize insn from sub{qi,hi,si,di}3_carry
1206 patterns using SWI mode iterator.
1207 (*sub<mode>_1): Ditto from from sub{qi,hi,si,di}_1 patterns.
1208 (*sub<mode>_2): Ditto from sub{qi,hi,si,di}_2 patterns.
1209 (*sub<mode>_3): Ditto from sub{qi,hi,si,di}_3 patterns.
1210 (<plusminus_insn>xf3): Macroize expander from addxf3 and subxf3
1211 patterns using plusminus code iterator.
1212 (<plusminus_insn><mode>3): Macroize expander from add<mode>3 and
1213 sub<mode>3 patterns using plusminus code iterator.
1214 * config/i386/i386.c (override_options): Update the call to
1215 gen_subdi_carry_rex64 for renamed function.
1216 (ix86_expand_int_addcc): Update calls to gen_subdi3_carry_rex64
1217 and gen_adddi3_carry_rex64 for renamed functions. Use indirect
1218 calls to instruction expanders.
1219
1220 2009-10-06 Martin Jambor <mjambor@suse.cz>
1221
1222 PR bootstrap/41395
1223 * opts.c (decode_options): Run IPA-SRA at -O2.
1224
1225 2009-10-06 Richard Guenther <rguenther@suse.de>
1226
1227 * lto-symtab.c (lto_symtab_entry_hash): Hash strings, not pointers.
1228
1229 2009-10-06 Tobias Burnus <burnus@net-b.de>
1230
1231 PR lto/41591
1232 * doc/invoke.texi (-flto,-fwhole-program): Make clear that the
1233 -flto and -fwhole-program flags can be combined.
1234
1235 2009-10-06 Ryan Mansfield <rmansfield@qnx.com>
1236
1237 PR driver/41217
1238 * gcc.c (process_command): Check that -o argument was specified.
1239
1240 2009-10-06 Jerry Quinn <jlquinn@optonline.net>
1241
1242 * gimple.c (gimple_type_hash): Use CONST_CAST_TREE to fix compilation.
1243
1244 2009-10-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1245
1246 * c.opt (Wjump-misses-init): Fix typo to enable for ObjC.
1247 * doc/invoke.texi (Warning Options): Annotate allowed languages
1248 for -Wunsuffixed-float-constants.
1249
1250 2009-10-05 Jakub Jelinek <jakub@redhat.com>
1251
1252 * dwarf2out.c (modified_type_die): Don't add DW_AT_name to
1253 DW_TAG_{const,volatile}_type if its DW_AT_type already has the
1254 same name and isn't the main variant.
1255
1256 PR debug/41558
1257 * dwarf2out.c (loc_by_reference): Removed.
1258 (dw_loc_list_1): New function.
1259 (dw_loc_list): Remove toplev argument, add want_address argument.
1260 Don't look at decl_by_reference_p at all. Use dw_loc_list_1.
1261 (loc_list_from_tree) <case VAR_DECL>: Pass want_address rather than
1262 want_address == 2 to dw_loc_list. For successful dw_loc_list
1263 set have_address to 1 only if want_address is not 0.
1264
1265 2009-10-05 Richard Sandiford <rdsandiford@googlemail.com>
1266
1267 * config/mips/mips-protos.h (mips_trampoline_code_size): Declare.
1268 * config/mips/mips.h (TRAMPOLINE_SIZE): Redefine as the size of
1269 a code block followed by two pointers.
1270 (TRAMPOLINE_ALIGNMENT): Define to 64 for 32-bit targets too.
1271 * config/mips/mips.c (MIPS_LOAD_PTR): New macro.
1272 (MIPS_MOVE): Likewise.
1273 (MIPS_LUI): Likewise.
1274 (MIPS_JR): Likewise.
1275 (MIPS_BAL): Likewise.
1276 (MIPS_NOP): Likewise.
1277 (mips_asm_trampoline_template): Delete.
1278 (mips_trampoline_code_size): New function.
1279 (mips_trampoline_init): Add shorter sequences for all cases
1280 except Pmode == DImoe && !TARGET_USE_PIC_FN_ADDR_REG.
1281 Calculate the opcodes directly, rather than copying from a template.
1282 Only flush the code part of the trampoline.
1283 (TARGET_ASM_TRAMPOLINE_TEMPLATE): Delete.
1284
1285 2009-10-05 Richard Sandiford <rdsandiford@googlemail.com>
1286
1287 * config/mips/mips.h (DWARF_FRAME_RETURN_COLUMN): Replace
1288 GP_REG_FIRST + 31 with RETURN_ADDR_REGNUM.
1289 (INCOMING_RETURN_ADDR_RTX): Likewise.
1290 (FUNCTION_PROFILER): Likewise. Replace GP_REG_FIRST + 1
1291 with AT_REGNUM.
1292 * config/mips/sdemtk.h (FUNCTION_PROFILER): Replace GP_REG_FIRST + 31
1293 with RETURN_ADDR_REGNUM.
1294 (MIPS_SAVE_REG_FOR_PROFILING_P): Likewise.
1295 * config/mips/mips.c (mips16_build_call_stub): Replace
1296 GP_REG_FIRST + 31 with RETURN_ADDR_REGNUM, GP_REG_FIRST + 1
1297 with AT_REGNUM and 31 with RETURN_ADDR_REGNUM.
1298 (mips_print_operand_punctuation): Likewise.
1299 (mips_frame_set): Likewise.
1300 (mips16e_output_save_restore): Likewise.
1301 (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
1302 (mips_save_reg_p): Likewise.
1303 (mips_return_addr): Likewise.
1304 (mips_set_return_address): Likewise.
1305 (mips_direct_save_slot_move_p): Likewise.
1306 (mips_output_function_prologue): Likewise.
1307 (mips_restore_reg): Likewise.
1308 (mips_expand_epilogue): Likewise.
1309 (mips_epilogue_uses): Likewise.
1310 * config/mips/mips.md (RETURN_ADD_REGNUM): Define.
1311 (*mov<mode>_ra): Use it instead of a hard-coded 31.
1312 (clear_hazard_<mode>): Likewise.
1313 (call_internal): Likewise.
1314 (call_internal_direct): Likewise.
1315 (call_direct_split): Likewise.
1316 (call_value_internal): Likewise.
1317 (call_value_split): Likewise.
1318 (call_value_internal_direct): Likewise.
1319 (call_value_direct_split): Likewise.
1320 (call_value_multiple_internal): Likewise.
1321 (call_value_multiple_split): Likewise.
1322
1323 2009-10-05 Eric Botcazou <ebotcazou@adacore.com>
1324 Jakub Jelinek <jakub@redhat.com>
1325
1326 PR rtl-optimization/41511
1327 * combine.c (record_value_for_reg): Pass explicit values as argument
1328 to get_last_value_validate.
1329 (get_last_value_validate): Document INSN parameter.
1330 For non-readonly MEMs, assume they might have been modified if INSN
1331 was in another basic block.
1332 (get_last_value): Minor reformatting.
1333
1334 2009-10-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
1335
1336 PR tree-opt/40992
1337 * final.c (asm_str_count): Split out from asm_insn_count.
1338 * rtl.h (asm_str_count): New prototype.
1339 * tree-inline (estimate_num_insns) <case GIMPLE_ASM>: Call
1340 asm_str_count.
1341
1342 2009-10-05 Sriraman Tallam <tmsriram@google.com>
1343
1344 * doc/plugins.texi: Change plugin_pass to register_pass_info.
1345
1346 2009-10-05 Basile Starynkevitch <basile@starynkevitch.net>
1347 Rafael Espindola <espindola@google.com>
1348
1349 * gengtype.c (write_types): Moved call to write_func_for_structure
1350 into seperate loops.
1351
1352 2009-10-05 Richard Guenther <rguenther@suse.de>
1353
1354 PR lto/41281
1355 * lto-cgraph.c (output_cgraph): Output toplevel asms.
1356 (input_cgraph_1): Input toplevel asms.
1357
1358 2009-10-05 Richard Guenther <rguenther@suse.de>
1359
1360 PR lto/40902
1361 * lto-symtab.c (lto_compatible_attributes_p): Remove.
1362 (external_aggregate_decl_p): Likewise.
1363 (lto_symtab_compatible): Re-structure. Remove dead code.
1364 For variables ignore toplevel qualifiers when comparing types.
1365 Issue warnings, not errors for mismatched user-alignment.
1366
1367 2009-10-05 Richard Guenther <rguenther@suse.de>
1368
1369 PR lto/41552
1370 PR lto/41487
1371 * lto-symtab.c (struct lto_symtab_base_def): Remove.
1372 (struct lto_symtab_identifier_def): Likewise.
1373 (struct lto_symtab_decl_def): Likewise.
1374 (struct lto_symtab_entry_def): New.
1375 (lto_symtab_identifier_t): Rename to ...
1376 (lto_symtab_entry_t): ... this.
1377 (lto_symtab_decls): Remove.
1378 (lto_symtab_base_hash): Rename to ...
1379 (lto_symtab_entry_hash): ... this.
1380 (lto_symtab_base_eq): Rename to ...
1381 (lto_symtab_entry_eq): ... this.
1382 (lto_symtab_base_marked_p): Rename to ...
1383 (lto_symtab_entry_marked_p): ... this.
1384 (lto_symtab_identifier_marked_p): Remove.
1385 (lto_symtab_decl_marked_p): Likewise.
1386 (lto_symtab_maybe_init_hash_tables): Rename to ...
1387 (lto_symtab_maybe_init_hash_table): ... this.
1388 (lto_symtab_set_resolution_and_file_data): Remove.
1389 (lto_symtab_register_decl): New function.
1390 (lto_symtab_get_identifier): Remove.
1391 (lto_symtab_get): New function.
1392 (lto_symtab_get_resolution): Adjust.
1393 (lto_symtab_get_identifier_decl): Remove.
1394 (lto_symtab_set_identifier_decl): Likewise.
1395 (lto_symtab_merge_decl): Rename to ...
1396 (lto_symtab_merge): ... this. Rewrite.
1397 (lto_symtab_merge_var): Remove.
1398 (lto_symtab_merge_fn): Likewise.
1399 (lto_symtab_prevailing_decl): Adjust.
1400 (lto_cgraph_replace_node): New function.
1401 (lto_symtab_merge_decls_2): Likewise.
1402 (lto_symtab_merge_decls_1): Likewise.
1403 (lto_symtab_fixup_var_decls): Likewise.
1404 (lto_symtab_resolve_symbols): Likewise.
1405 (lto_symtab_merge_decls): Likewise.
1406 (lto_symtab_prevailing_decl): Adjust.
1407 (lto_symtab_get_symtab_def): Remove.
1408 (lto_symtab_get_file_data): Likewise.
1409 (lto_symtab_clear_resolution): Adjust.
1410 (lto_symtab_clear_resolution): Likewise.
1411 * lto-cgraph.c (input_edge): Do not merge cgraph nodes here.
1412 (input_cgraph_1): Likewise.
1413 * lto-streamer-in.c (get_resolution): Do not provide fake
1414 symbol resolutions here.
1415 (deferred_global_decls): Remove.
1416 (lto_register_deferred_decls_in_symtab): Likewise.
1417 (lto_register_var_decl_in_symtab): Change signature, register
1418 variable via lto_symtab_register_decl.
1419 (lto_register_function_decl_in_symtab): Likewise.
1420 (lto_read_tree): Adjust.
1421 * lto-streamer.h (lto_register_deferred_decls_in_symtab): Remove.
1422 (lto_symtab_merge_var): Likewise.
1423 (lto_symtab_merge_fn): Likewise.
1424 (lto_symtab_register_decl): Declare.
1425 (lto_symtab_merge_decls): Likewise.
1426
1427 2009-10-05 Richard Guenther <rguenther@suse.de>
1428
1429 PR tree-optimization/23821
1430 * tree-vrp.c (vrp_finalize): Do not perform copy propagation.
1431 * tree-ssa-dom.c (cprop_operand): Do not propagate copies into
1432 simple IV increments.
1433
1434 2009-10-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1435
1436 * config/arm/arm.c (arm_override_options): Really initialize
1437 flag_dwarf2_cfi_asm to 0.
1438
1439 2009-10-05 Doug Kwan <dougkwan@google.com>
1440
1441 PR rtl-optimization/41574
1442 * combine.c (distribute_and_simplify_rtx): Quit if RTX mode is
1443 floating point and we are not doing unsafe math optimizations.
1444
1445 2009-10-03 Simon Baldwin <simonb@google.com>
1446 Cary Coutant <ccoutant@google.com>
1447 Rafael Espindola <espindola@google.com>
1448 Richard Guenther <rguenther@suse.de>
1449 Jan Hubicka <jh@suse.cz>
1450 Doug Kwan <dougkwan@google.com>
1451 H.J. Lu <hongjiu.lu@intel.com>
1452 Bill Maddox <maddox@google.com>
1453 Ryan Mansfield <rmansfield@qnx.com>
1454 Diego Novillo <dnovillo@google.com>
1455 Ollie Wild <aaw@google.com>
1456 Kenneth Zadeck <zadeck@naturalbridge.com>
1457
1458 * lto-cgraph.c: New file.
1459 * lto-compress.c: New file.
1460 * lto-compress.h: New file.
1461 * lto-opts.c: New file.
1462 * lto-section-in.c: New file.
1463 * lto-section-out.c: New file.
1464 * lto-streamer-in.c: New file.
1465 * lto-streamer-out.c: New file.
1466 * lto-streamer.c: New file.
1467 * lto-streamer.h: New file.
1468 * lto-symtab.c: New file.
1469 * lto-wpa-fixup.c: New file.
1470 * lto-wrapper.c: New file.
1471
1472 2009-10-03 Simon Baldwin <baldwin@google.com>
1473 Ben Elliston <bje@au.ibm.com>
1474 Rafael Espindola <espindola@google.com>
1475 Nathan Froyd <froydnj@codesourcery.com>
1476 Jan Hubicka <jh@suse.cz>
1477 Doug Kwan <dougkwan@google.com>
1478 Diego Novillo <dnovillo@google.com>
1479 Kenneth Zadeck <zadeck@naturalbridge.com>
1480
1481 * Makefile.in (enable_lto): New.
1482 (site.exp): If @enable_lto@ is set to 'yes' define ENABLE_LTO.
1483 (LINKER_PLUGIN_API_H): Define.
1484 (LTO_SYMTAB_H): Define.
1485 (LTO_STREAMER_H): Define.
1486 (TREE_VECTORIZER_H): Define.
1487 (INCLUDES): Add LIBELFINC.
1488 (OBJS-common): Add lto-cgraph.o, lto-streamer-in.o,
1489 lto-streamer-out.o, lto-section-in.o, lto-section-out.o, lto-symtab.o,
1490 lto-opts.o, lto-streamer.o, lto-wpa-fixup.o, lto-compress.o.
1491 (MOSTLYCLEANFILES): Add lto-wrapper$(exeext)
1492 (native): Add lto-wrapper$(exeext)
1493 (lto-compress.o, lto-cgraph.o, lto-streamer-in.o,
1494 lto-streamer-out.o, lto-section-in.o, lto-section-out.o,
1495 lto-symtab.o, lto-opts.o, lto-streamer.o, lto-wpa-fixup.o): New rules.
1496 (gimple.o): Add dependency on LTO_HEADER_H and LTO_SECTION_OUT_H.
1497 (varasm.o): Add dependency on tree-iterator.h.
1498 (cgraph.o): Add dependency on cif-code.def.
1499 (ipa-reference.o): Add dependency on LTO_STREAMER_H.
1500 (ipa-pure-const.o): Likewise.
1501 (GTFILES): Add lto-symtab.c.
1502 (install-lto-wrapper): New.
1503 * configure.ac: If 'lto' is in enable_languages, define ENABLE_LTO
1504 and enable_lto. If LIBELFLIBS is set, define HAVE_libelf.
1505 * config.in: Regenerate.
1506
1507 2009-10-03 Rafael Espindola <espindola@google.com>
1508 Diego Novillo <dnovillo@google.com>
1509
1510 * cgraphunit.c (ipa_passes): Prevent lto1 from calling
1511 ipa_write_summaries.
1512 Call execute_ipa_summary_passes for all_regular_ipa_passes and
1513 all_lto_gen_passes.
1514 (cgraph_optimize): Make extern.
1515
1516 2009-10-03 Nathan Froyd <froydnj@codesourcery.com>
1517 Kenneth Zadeck <zadeck@naturalbridge.com>
1518
1519 * toplev.c (in_lto_p): Declare.
1520 * collect2.c (scan_prog_file): Read all the output when reading
1521 information for LTO.
1522 (enum lto_mode_d): Declare.
1523
1524 2009-10-03 Richard Guenther <rguenther@suse.de>
1525 Diego Novillo <dnovillo@google.com>
1526
1527 * gimple.c: Include target.h and alias.h.
1528 (gimple_types): Declare.
1529 (type_hash_cache): Declare.
1530 (gimple_alloc_stat): Make extern.
1531 (gimple_build_eh_must_not_throw): Call
1532 gimple_eh_must_not_throw_set_fndecl.
1533 (struct type_pair_d): Declare.
1534 (type_pair_t): Declare.
1535 (type_pair_hash): New.
1536 (type_pair_eq): New.
1537 (lookup_type_pair): New.
1538 (gimple_force_type_merge): New.
1539 (compare_type_names_p): New.
1540 (compare_field_offset): New.
1541 (gimple_types_compatible_p): New.
1542 (struct sccs): Declare.
1543 (next_dfs_num): Declare.
1544 (iterative_hash_gimple_type): New.
1545 (visit): New.
1546 (iterative_hash_type_name): New.
1547 (iterative_hash_gimple_type): New.
1548 (gimple_type_hash): New.
1549 (gimple_type_eq): New.
1550 (gimple_register_type): New.
1551 (print_gimple_types_stats): New.
1552 (gimple_signed_or_unsigned_type): New.
1553 (gimple_unsigned_type): New.
1554 (gimple_signed_type): New.
1555 (gimple_get_alias_set): New.
1556 (gimple_decl_printable_name): Do not use DMGL_TYPES.
1557 * gimple.h (gimple_alloc, gimple_alloc_stat): Declare.
1558 (gimple_force_type_merge): Declare.
1559 (gimple_types_compatible_p): Declare.
1560 (gimple_register_type): Declare.
1561 (print_gimple_types_stats): Declare.
1562 (gimple_unsigned_type): Declare.
1563 (gimple_signed_type): Declare.
1564 (gimple_get_alias_set): Declare.
1565 (gimple_eh_must_not_throw_set_fndecl): New.
1566
1567 2009-10-03 Jan Hubicka <jh@suse.cz>
1568 Kenneth Zadeck <zadeck@naturalbridge.com>
1569
1570 * ipa-pure-const.c: Include lto-streamer.h.
1571 (register_hooks): Factor out of ...
1572 (generate_summary): ... here.
1573 (pure_const_write_summary): New.
1574 (pure_const_read_summary): New.
1575 (pass_ipa_pure_const): Add pure_const_write_summary and
1576 pure_const_read_summary.
1577 * ipa-reference.c: Include lto-streamer.h.
1578 (add_new_function): New.
1579 (remove_node_data): New.
1580 (duplicate_node_data): New.
1581 (ipa_init): Guard against multiple calls.
1582 Move hook setup from analyze_function.
1583 (write_node_summary_p): New.
1584 (ipa_reference_write_summary): New.
1585 (ipa_reference_read_summary): New.
1586 (pass_ipa_reference): Add ipa_reference_write_summary and
1587 ipa_reference_read_summary.
1588 * cgraph.h (cgraph_local_info): Add field lto_file_data.
1589 (struct cgraph_edge): Add fields lto_stmt_uid and
1590 call_stmt_cannot_inline_p.
1591 (cgraph_optimize): Declare.
1592 (cgraph_decide_is_function_needed): Declare.
1593 (reset_inline_failed): Declare.
1594 (enum LTO_cgraph_tags): Declare.
1595 (LTO_cgraph_tag_names): Declare.
1596 (LCC_NOT_FOUND): Define.
1597
1598 2009-10-03 Doug Kwan <dougkwan@google.com>
1599 Rafael Espindola <espindola@google.com>
1600 Jan Hubicka <jh@suse.cz>
1601 Diego Novillo <dnovillo@google.com>
1602 Kenneth Zadeck <zadeck@naturalbridge.com>
1603
1604 * passes.c (all_regular_ipa_passes): New.
1605 (all_ipa_passes): Rename to all_small_ipa_passes.
1606 (init_optimization_passes): Init all_regular_ipa_passes.
1607 * tree-pass.h (all_regular_ipa_passes): New.
1608 (all_ipa_passes): Rename to all_small_ipa_passes.
1609 * passes.c (all_lto_gen_passes): New.
1610 (init_optimization_passes): Initialize all_lto_gen_passes.
1611 (execute_ipa_summary_passes): Make non-static.
1612 (ipa_write_summaries_1): New.
1613 (ipa_write_summaries_2): New.
1614 (ipa_write_summaries): New.
1615 (ipa_write_summaries_of_cgraph_node_set): New.
1616 (ipa_read_summaries_1): New.
1617 (ipa_read_summaries): New.
1618 (execute_ipa_pass_list): Call cgraph_process_new_functions.
1619 (execute_regular_ipa_pass_list): Remove.
1620 (init_optimization_passes): Schedule
1621 pass_rebuild_cgraph_edges and pass_early_inline outside
1622 of pass_all_early_optimizations. Document reason.
1623 (pass_ipa_lto_gimple_out, pass_ipa_lto_wpa_fixup,
1624 pass_ipa_lto_finish_out): New pass.
1625 (pass_ipa_summary_passes): Start and stop timers if the pass has them.
1626 (execute_all_ipa_transforms): New.
1627 (execute_one_pass): Don't call execute_one_ipa_transform_pass.
1628 (dump_properties, debug_properties): New.
1629 * tree-optimize.c (gate_all_early_local_passes): Return
1630 false if we are in lto1.
1631 (tree_rest_of_compilation): Call execute_all_ipa_transforms.
1632 * tree-pass.h (execute_all_ipa_transforms): Declare.
1633 (pass_ipa_function_and_variable_visibility): Declare.
1634 (pass_ipa_early_inline): Declare.
1635 (pass_ipa_lto_gimple_out): Declare.
1636 (pass_ipa_lto_wpa_fixup): Declare.
1637 (pass_ipa_lto_finish_out): Declare.
1638 (all_small_ipa_passes, all_regular_ipa_passes,
1639 all_lto_gen_passes): Declare.
1640 (execute_ipa_summary_passes): Declare.
1641 (execute_all_ipa_transforms): Declare.
1642 (ipa_write_summaries): Declare
1643 (ipa_write_summaries_of_cgraph_node_set): Declare.
1644 (ipa_read_summaries): Declare.
1645
1646 2009-10-03 Doug Kwan <dougkwan@google.com>
1647 Ollie Wild <aaw@google.com>
1648
1649 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do nothing in WPA.
1650
1651 * collect2.c (LTO_MODE_NONE, LTO_MODE_LTO, LTO_MODE_WPA): New enums.
1652 (lto_mode): New variable.
1653 (maybe_run_lto_and_relink): Handle the -fwpa option.
1654 (main): Handle the -fwpa option.
1655 (maybe_unlink_list): New function.
1656 * gcc.c (link_lto_options): Replace -flto with -fwpa.
1657 * common.opt (flto): New flag.
1658 * toplev.c (flag_generate_lto): Declare.
1659
1660 2009-10-03 Simon Baldwin <simonb@google.com>
1661
1662 * common.opt (flto-compression-level): New flag.
1663
1664 * opts.c: Include lto-opts.h.
1665 (handle_option): Call lto_register_user_option for each
1666 valid option handled.
1667 (decode_options): Clear registered options before the options
1668 handling loop.
1669
1670 2009-10-03 Cary Coutant <ccoutant@google.com>
1671
1672 * collect2.c (is_elf): New function.
1673 (scan_prog_file): Require LTO object to be in ELF format.
1674
1675 2009-10-03 Rafael Espindola <espindola@google.com>
1676
1677 * gcc.c (LINK_COMMAND_SPEC): Use the -pass-through option to pass
1678 libgcc to the linker.
1679
1680 * ipa-cp.c (cgraph_gate_cp): Return false if LTRANS is running.
1681
1682 * collect2.c (maybe_run_lto_and_relink): Execute lto-wrapper.
1683 (collect_execute): Add flags argument. Pass flags to pex_run. Update
1684 all callers.
1685 * collect2.h (collect_execute): Add flags argument.
1686 * tlink.c (tlink_execute): Update call to collect_execute.
1687 * gcc.c (main): Set the COLLECT_LTO_WRAPPER environment variable.
1688 (use_linker_plugin): New.
1689 (use_linker_plugin_spec_function): New.
1690 (LINK_COMMAND_SPEC): Pass plugin options to the linker.
1691 (linker_plugin_file_spec): New.
1692 (lto_wrapper_spec): New.
1693 (lto_gcc_spec): New.
1694 (static_specs): Add linker_plugin_file, lto_wrapper and lto_gcc.
1695 (static_spec_functions): Add use-linker-plugin.
1696 (process_command): Handle -use-linker-plugin.
1697 (main): Use lto_wrapper_spec instead of lto_wrapper. Set
1698 linker_plugin_file_spec and lto_gcc_spec.
1699 (use_linker_plugin_spec_function): New.
1700
1701 2009-10-03 Richard Guenther <rguenther@suse.de>
1702
1703 PR lto/41547
1704 PR lto/41548
1705 * tree.h (is_lang_specific): Include LANG_TYPE.
1706 * tree.c (find_decls_types_r): Manually add interesting parts
1707 of TYPE_FIELDS. Walk BINFO_VIRTUALS. Do not walk TYPE_METHODS.
1708
1709 * gimple.c (type_pair_hash): Make symmetric.
1710 (type_pair_eq): Likewise.
1711 (lookup_type_pair): Increase initial hashtable size.
1712 (gimple_force_type_merge): Rely on type-pair symmetry.
1713 (visit): Remove excessive checking code.
1714 (iterative_hash_type_name): Do not hash TYPE_NAME of anonymous unions.
1715 (gimple_register_type): Remove getenv calls, shrink initial
1716 hashtable size.
1717
1718 PR middle-end/41502
1719 * cgraphunit.c (ipa_passes): Do not remove bodies of extern
1720 inline functions if not generating lto output.
1721
1722 PR lto/41379
1723 * toplev.c (finalize): In WPA mode remove the asm file.
1724
1725 2009-10-03 Doug Kwan <dougkwan@google.com>
1726
1727 * ipa-inline.c (cgraph_mark_inline): Check
1728 edge->call_stmt_cannot_inline_p instead of calling
1729 gimple_call_cannot_inline_p.
1730 (cgraph_decide_inlining): Do nothing in WPA and LTRANS.
1731 (cgraph_gate_ipa_early_inlining): Return false if in_lto_p is set.
1732 (inline_generate_summary): Do nothing in LTRANS.
1733 * cgraph.c (initialize_inline_failed): Make sure e->call_stmt
1734 exists before calling gimple_call_cannot_inline_p.
1735 (cgraph_create_edge): Set edge->call_stmt_cannot_inline_p.
1736 (cgraph_clone_edge): Add argument STMT_UID. Modify all callers.
1737 Update new_edge->lto_stmt_uid.
1738 * cgraphbuild.c (reset_inline_failed): New.
1739
1740 * common.opt (fwpa): New flag.
1741 (fltrans): New option.
1742 * gcc.c (gcc_lto_option_t): New type.
1743 (current_lto_option): New variable.
1744 (lto_single_spec_function): Remove and is replaced by ..
1745 (lto_option_spec_function): New function.
1746 (LINK_COMMAND_SPEC): Use link_lto_option spec instead of just
1747 passing the -flto flag.
1748 (cc1_options): Separate non-LTO related parts into ..
1749 (cc1_non_lto_options): Non-LTO related options shared by all FEs.
1750 (lto1_options): New spec for lto FE.
1751 (link_lto_options): New spec for handling LTO flags in linker.
1752 (invoke_lto_single): Re-format to fit in 80 column. Replace
1753 lto-single with lto-option.
1754 (static_specs): Add cc1_non_lto_options, lto1_options and
1755 link_lto_options.
1756 (static_spec_function): Replace lto-single with lto-option.
1757 (process_command): Handle -flto, -fwpa and -fltran by setting
1758 current_lto_option and not passing it to subprocess unconditionally.
1759
1760 2009-10-03 Bill Maddox <maddox@google.com>
1761
1762 Add `gcc' driver support for link-time code generation (LTO).
1763
1764 * collect2.c (enum pass): Add new literal PASS_LTOINFO.
1765 (lto_flag, lto_objects, lto_o_file): New variables.
1766 (struct lto_object, struct lto_object_list): New structures.
1767 (collect_exit, handler): Remove LTO temporary output file on exit.
1768 (add_lto_object): New function.
1769 (maybe_run_lto_and_relink): New function. Perform link time code
1770 generation and relinking for object files containing LTO information.
1771 (main): Invoke maybe_run_lto_and_relink().
1772 (dump_argv): New function. For debugging, currently disabled.
1773 (scan_prog_file): Add LTO information pass.
1774 * gcc.c (LINK_COMMAND_SPEC): Pass `-flto' switch to linker, i.e.,
1775 collect2.
1776 * toplev.c (compile_file): Emit assembler directive to create
1777 the `gnu_lto_v1' marker symbol when compiling with `-flto'.
1778
1779 2009-10-03 Diego Novillo <dnovillo@google.com>
1780
1781 * c.opt: Add LTO to warn_abi and warn_psabi.
1782
1783 * tree.c (fld_worklist_push): Rename from PUSH. Convert to static
1784 inline function. Ignore language-specific nodes. Update all users.
1785 (find_decls_types_r): Do not traverse the subtrees of
1786 language-specific nodes. Do not traverse DECL_INITIAL for TYPE_DECLs.
1787 * tree.h (is_lang_specific): New.
1788 * langhooks.h (struct lang_hooks_for_decls): Remove
1789 may_need_assembler_name_p. Update all users.
1790
1791 * c-common.c (set_builtin_user_assembler_name): Move ...
1792 * builtins.c (set_builtin_user_assembler_name): ... here.
1793 (is_builtin_name): Add comment
1794 (is_builtin_fn): New.
1795 * except.c (output_ttype): Only call
1796 lookup_type_for_runtime if TYPE is not a runtime type.
1797
1798 * passes.c (register_pass): Call position_pass on
1799 all_small_ipa_passes, all_regular_ipa_passes and all_lto_gen_passes.
1800 * timevar.def (TV_IPA_LTO_GIMPLE_IO): Define.
1801 (TV_IPA_LTO_DECL_IO): Define.
1802 (TV_IPA_LTO_CGRAPH_IO): Define.
1803 (TV_LTO): Define.
1804 (TV_WHOPR_WPA): Define.
1805 (TV_WHOPR_WPA_IO): Define.
1806 (TV_WHOPR_LTRANS): Define.
1807 (TV_WHOPR_WPA_FIXUP): Define.
1808 (TV_WHOPR_WPA_LTRANS_EXEC): Define.
1809 * tree-cfg.c (tree_node_can_be_shared): Make extern.
1810 * tree-flow.h (tree_node_can_be_shared): Declare.
1811 * tree-inline.c (tree_can_inline_p): Check that E has a
1812 statement associated with it.
1813 * tree.c (free_lang_data_in_binf): Factor out of ...
1814 (free_lang_data_in_type): ... here.
1815 Call RECORD_OR_UNION_TYPE_P.
1816 (need_assembler_name_p): Ignore DECL if it does not have TREE_PUBLIC
1817 set. Call lang_hooks.decls.may_need_assembler_name_p if set.
1818 (free_lang_data_in_decl): Do not clear DECL_CONTEXT for CONST_DECLs.
1819 (free_lang_data): Set debug_info_level to DINFO_LEVEL_NONE. Set
1820 write_symbols to NO_DEBUG. Set debug_hooks to do_nothing_debug_hooks.
1821 (gate_free_lang_data): Return true if flag_generate_lto is set.
1822 (walk_tree_1): Call RECORD_OR_UNION_TYPE_P.
1823 * c-common.h (set_builtin_user_assembler_name): Move ...
1824 * tree.h (set_builtin_user_assembler_name): ... here.
1825
1826 * common.opt (flto-report): New flag.
1827 * opts.c (complain_wrong_lang): Do not complain if running lto1.
1828 * collect2.c (scan_prog_file): Send the error output of
1829 'nm' to HOST_BIT_BUCKET.
1830
1831 2009-10-03 Ollie Wild <aaw@google.com>
1832
1833 * langhooks-def.h (lhd_begin_section): New function declaration.
1834 (lhd_write_section): New function declaration.
1835 (lhd_end_section): New function declaration.
1836 (LANG_HOOKS_BEGIN_SECTION): New macro.
1837 (LANG_HOOKS_WRITE_SECTION_DATA): New macro.
1838 (LANG_HOOKS_END_SECTION): New macro.
1839 (LANG_HOOKS_LTO): New macro.
1840 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_LTO.
1841 * langhooks.c (output.h): Add include.
1842 (saved_section): New static variable.
1843 (lhd_begin_section): New function.
1844 (lhd_write_section_data): New function.
1845 (lhd_end_section): New function.
1846 * langhooks.h (struct lang_hooks_for_lto): New structure.
1847 (struct lang_hooks): Add member lto.
1848 * Makefile.in (langhooks.o): Add dependency on output.h.
1849
1850 * c-opts.c (c_common_post_options): Handle -flto and -fwhopr.
1851
1852 2009-10-03 Richard Guenther <rguenther@suse.de>
1853
1854 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
1855 Handle LTO.
1856
1857 2009-10-03 Simon Baldwin <simonb@google.com>
1858 Richard Guenther <rguenther@suse.de>
1859 Janis Johnson <janis187@us.ibm.com>
1860 Doug Kwan <dougkwan@google.com>
1861 Diego Novillo <dnovillo@google.com>
1862 Ramana Radhakrishnan <ramana.r@gmail.com>
1863 Ollie Wild <aaw@google.com>
1864
1865 * doc/install.texi: Add documentation for libelf and --enable-lto.
1866 * doc/invoke.texi: Document -fwpa, -flto, -fwhopr, -fltrans,
1867 -flto-report, -flto-compression-level and -use-linker-plugin.
1868 * doc/sourcebuild.texi: Document use of zlib. Document lto-plugin.
1869 Add section for LTO Testing.
1870
1871 2009-10-02 Cary Coutant <ccoutant@google.com>
1872
1873 Add support for comdat type sections for DWARF v4.
1874 Merge from dwarf4 branch.
1875
1876 * dwarf2out.c (DWARF_TYPE_SIGNATURE_SIZE): New constant.
1877 (dw_die_ref): Define vector type.
1878 (enum dw_val_class): Add dw_val_class_data8.
1879 (struct dw_val_struct): Add v.val_data8.
1880 (comdat_type_node_ref): New type.
1881 (struct die_struct): Move die_symbol into a union; add new field
1882 die_type_node. Change all uses.
1883 (comdat_type_node): New type.
1884 (skeleton_chain_node): New type.
1885 (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): New constant.
1886 (comdat_type_list): New variable.
1887 (dwarf_tag_name): Add DW_TAG_type_unit.
1888 (dwarf_attr_name): Add DW_AT_signature.
1889 (add_AT_data8): New function.
1890 (replace_child): New function.
1891 (move_all_children): New function.
1892 (print_signature): New function.
1893 (print_die): Print signature information; add dw_val_class_data8.
1894 (attr_checksum): Support dw_val_class_data8.
1895 (CHECKSUM_STRING): Redefine for DWARF-4 to include trailing NULL byte.
1896 (CHECKSUM_SLEB128, CHECKSUM_ULEB128): New macros.
1897 (checksum_sleb128, checksum_uleb128): New functions.
1898 (checksum_die_context): New function.
1899 (loc_checksum_ordered): New function.
1900 (attr_checksum_ordered): New function.
1901 (struct checksum_attributes): New structure.
1902 (collect_checksum_attributes): New function.
1903 (die_checksum_ordered): New function.
1904 (generate_type_signature): New function.
1905 (same_dw_val_p): Add dw_val_class_data8.
1906 (is_symbol_die): Use new is_declaration_die function.
1907 (is_declaration_die): New function.
1908 (should_move_die_to_comdat): New function.
1909 (clone_die): New function.
1910 (clone_tree): New function.
1911 (clone_as_declaration): New function.
1912 (copy_declaration_context): New function.
1913 (generate_skeleton_ancestor_tree): New function.
1914 (generate_skeleton_bottom_up): New function.
1915 (generate_skeleton): New function.
1916 (remove_child_or_replace_with_skeleton): New function.
1917 (break_out_comdat_types): New function.
1918 (struct decl_table_entry): New type.
1919 (htab_decl_hash): New function.
1920 (htab_decl_eq): New function.
1921 (htab_decl_del): New function.
1922 (copy_ancestor_tree): New function.
1923 (copy_decls_walk): New function.
1924 (copy_decls_for_unworthy_types): New function.
1925 (build_abbrev_table): Don't assert on missing die_symbol when doing
1926 comdat type sections.
1927 (size_of_die): Use DW_FORM_sig8 for external references. Add
1928 dw_val_class_data8.
1929 (unmark_dies): Don't assert for unmarked dies when doing comdat
1930 type sections.
1931 (value_format): Support DW_FORM_sig8 and dw_val_class_data8.
1932 (output_signature): New function.
1933 (output_die): Likewise.
1934 (output_compilation_unit_header): Mark output as DWARF version 3
1935 even if generating DWARF 4.
1936 (output_comdat_type_unit): New function.
1937 (output_line_info): Mark output as DWARF version 3 even if generating
1938 DWARF 4.
1939 (dwarf2out_start_source_file): Don't do eliminate_dwarf2_dups with
1940 DWARF-4.
1941 (dwarf2out_end_source_file): Likewise.
1942 (prune_unused_types_walk_attribs): Don't follow references into
1943 comdat type sections.
1944 (prune_unused_types_mark): When generating type units, do not mark
1945 children of non-defining declarations of types; do mark children of
1946 type entries.
1947 (prune_unused_types): Process comdat type sections.
1948 (htab_ct_hash): New function.
1949 (htab_ct_eq): New function.
1950 (dwarf2out_finish): Move types to comdat sections when using DWARF-4.
1951 Add a pointer to the line table from type unit entries so
1952 DW_AT_decl_file has meaning.
1953 * varasm.c (default_elf_asm_named_section): Use identifier name as
1954 comdat key instead of lang hook.
1955
1956 2009-10-02 Neil Vachharajani <nvachhar@google.com>
1957
1958 * gcov-io.c (gcov_open): Open files read-only when MODE < 0.
1959
1960 2009-10-02 Uros Bizjak <ubizjak@gmail.com>
1961
1962 * config/i386/i386.md (SWIM248): New mode iterator.
1963 (divmod<mode>4) Macroize expander from divmoddi4, divmodsi4 and
1964 divmodhi4 patterns using SWIM248 macro.
1965 (*divmod<mode>4): Macroize insn_and_split pattern from
1966 *divmoddi4_cltd_rex64, *divmodsi4_cltd and divmodhi4 insn patterns
1967 and their corresponding splitters usign SWIM248 macro. Split SImode
1968 insn to generate cltd and DImode insn to generate cqto instead of
1969 move+shift when optimizing for size or TARGET_USE_CLTD is in effect.
1970 (*divmoddi4_nocltd_rex64, *divmodsi4_nocltd): Remove insn patterns.
1971 (*divmod<mode>4_noext): Macroize insn from *divmoddi_noext_rex64 and
1972 *divmodsi_noext patterns using SWIM248 macro.
1973 (udivmod<mode>4): Macroize expander from udivmoddi4, udivmodsi4 and
1974 udivmodhi4 patterns using SWIM248 macro.
1975 (*udivmod<mode>4): Macroize insn_and_split pattern from
1976 *udivmoddi4, udivmodsi4 and udivmodhi4 patterns and their
1977 corresponding splitters using SWIM248 macro.
1978 (*udivmod<mode>4_noext): Macroize insn from *udivmoddi4_noext,
1979 *udivmodsi4_noext and *udivmodhi_noext patterns using SWIM248 macro.
1980
1981 2009-10-02 Eric Botcazou <ebotcazou@adacore.com>
1982
1983 * stor-layout.c (layout_type) <ARRAY_TYPE>: Make sure that an array
1984 of zero-sized element is zero-sized regardless of its extent.
1985
1986 2009-10-02 Jakub Jelinek <jakub@redhat.com>
1987
1988 PR debug/40521
1989 * configure.ac (HAVE_GAS_CFI_SECTIONS_DIRECTIVE): New test.
1990 * configure: Regenerated.
1991 * config.in: Regenerated.
1992 * dwarf2out.c (dwarf2out_do_cfi_asm): Return false if
1993 !HAVE_GAS_CFI_SECTIONS_DIRECTIVE and not emitting .eh_frame.
1994 (dwarf2out_init): If HAVE_GAS_CFI_SECTIONS_DIRECTIVE and
1995 not emitting .eh_frame, emit .cfi_sections .debug_frame
1996 directive.
1997
1998 PR debug/41404
1999 PR debug/41353
2000 * cfgexpand.c (expand_debug_expr) <case STRING_CST>: Don't create
2001 CONST_STRING if STRING_CST contains embedded '\0's or doesn't end
2002 with '\0'.
2003 (expand_debug_expr) <case VAR_DECL>: For TREE_STATIC !DECL_EXTERNAL
2004 vars use DECL_RTL with resetting it back to NULL afterwards.
2005 * dwarf2out.c (same_dw_val_p): For dw_val_class_addr compare with
2006 rtx_equal_p instead of asserting it is a SYMBOL_REF.
2007 (value_format): For dw_val_class_addr only use DW_FORM_addr if
2008 the attribute type allows it, otherwise use DW_FORM_dataN.
2009 (mem_loc_descriptor): Handle CONST_STRING.
2010 (add_const_value_attribute): Handle CONST_STRING using add_AT_addr.
2011 Handle MEM with CONST_STRING address using add_AT_string.
2012 (rtl_for_decl_init): Return MEM with CONST_STRING address instead of
2013 CONST_STRING for const arrays initialized with a string literal.
2014 (resolve_one_addr, resolve_addr_in_expr, resolve_addr): New functions.
2015 (dwarf2out_finish): Call resolve_addr.
2016
2017 2009-10-02 Andreas Schwab <schwab@linux-m68k.org>
2018 Maxim Kuvyrkov <maxim@codesourcery.com>
2019
2020 * config/m68k/lb1sf68.asm (PICCALL): Use variable sized branch.
2021
2022 2009-10-02 Nick Clifton <nickc@redhat.com>
2023
2024 * config/mn10300/mn10300.h (USER_LABEL_PREFIX): Define.
2025 (ASM_OUTPUT_LABELREF): Use asm_fprintf and %U.
2026
2027 2009-10-01 Jan Hubicka <jh@suse.cz>
2028
2029 * cgraph.c (cgraph_clone_node): Add redirect_callers parameter.
2030 (cgraph_create_virtual_clone): Just pass redirect_callers
2031 around.
2032 * cgraph.h (cgraph_clone_node): Update prototype.
2033 * ipa-pure-const.c (self_recursive_p): New function.
2034 (propagate): Use it.
2035 * ipa-inline.c (cgraph_clone_inlined_nodes,
2036 cgraph_decide_recursive_inlining): Update.
2037
2038 2009-10-01 David Daney <ddaney@caviumnetworks.com>
2039
2040 * gcc/config/mips/mips.c (mips_process_sync_loop) Emit syncw
2041 instructions for TARGET_OCTEON.
2042
2043 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2044
2045 * config/arm/arm.c (arm_override_options): Turn off
2046 flag_dwarf2_cfi_asm for AAPCS variants.
2047
2048 2009-10-01 Martin Jambor <mjambor@suse.cz>
2049
2050 PR middle-end/12392
2051 * tree-sra.c (convert_callers): Do not call
2052 compute_inline_parameters on one caller more than once.
2053
2054 2009-10-01 Nick Clifton <nickc@redhat.com>
2055
2056 * config/vax/netbsd-elf.h (NETBSD_CC1_AND_CC1PLUS_SPEC): Define as
2057 an empty string if not already defined.
2058
2059 2009-10-01 Martin Jambor <mjambor@suse.cz>
2060
2061 PR bootstrap/41395
2062 * tree-sra.c (is_va_list_type): New function.
2063 (find_var_candidates): Call is_va_list_type.
2064 (find_param_candidates): Check that the type or the type pointed
2065 to are not va_list types.
2066
2067 2009-10-01 Martin Jambor <mjambor@suse.cz>
2068
2069 PR c++/41503
2070 * cp/pt.c (function_parameter_expanded_from_pack_p): Return false if
2071 DECL_ARTIFICIAL (param_decl) is true.
2072
2073 2009-09-30 Gabriel Dos Reis <gdr@cs.tamu.edu>
2074
2075 * tree.h (tree_decl_common::lang_flag_8): New.
2076 * c-common.c (c_common_reswords): Include "constexpr" as C++0x
2077 keyword.
2078 * c-common.h (RID_CONSTEXPR): New.
2079
2080 2009-09-30 Uros Bizjak <ubizjak@gmail.com>
2081
2082 * config/alpha/alpha.c (alpha_gimplify_va_arg_1):
2083 Use ref-all pointers.
2084 (alpha_gimplify_va_arg): Ditto.
2085
2086 2009-09-30 Jakub Jelinek <jakub@redhat.com>
2087
2088 PR target/41279
2089 * cfgloopanal.c (num_loop_insns): Don't increment ninsns for each bb
2090 before insn counting loop now that BB_END (bb) is counted. Ensure
2091 the return value isn't zero.
2092
2093 2009-09-30 Nick Clifton <nickc@redhat.com>
2094
2095 * config.gcc (sh-symbianelf): Replace definition of extra_objs
2096 with separate definitions of c_target_objs and cxx_target_objs.
2097 * config/sh/t-sh: Add rules to build symbian-cxx.o, symbian-c.o
2098 and symbian-base.o.
2099 * config/sh/sh.c (TARGET_CXX_INPUT_EXPORT_CLASS): Use
2100 sh_symbian_import_export_class.
2101 * config/sh/sh-protos.h: Fix names of exported symbian functions.
2102 * config/sh/symbian.c: Delete, moving code into...
2103 * config/sh/symbian-base.c: ... here
2104 * config/sh/symbian-c.c: ... and here
2105 * config/sh/symbian-cxx.c: ... and here.
2106
2107 2009-09-30 Uros Bizjak <ubizjak@gmail.com>
2108
2109 PR target/22093
2110 * config/alpha/alpha.md (unaligned_storehi_be): Force operand
2111 of plus RTX into register.
2112
2113 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2114
2115 * doc/install.texi: Linguistic and markup fixes.
2116 (Configuration) <--disable-cpp>: Remove description.
2117 <--enable-maintainer-mode>: Autotools files are affected, too.
2118 <--with-sysroot>: Improve description.
2119 (Building): Bump required GNU make version.
2120
2121 2009-09-29 Harsha Jagasia <harsha.jagasia@amd.com>
2122
2123 * config.gcc (i[34567]86-*-*): Include fma4intrin.h.
2124 (x86_64-*-*): Ditto.
2125
2126 * config/i386/fma4intrin.h: New file, provide common x86 compiler
2127 intrinisics for FMA4.
2128 * config/i386/cpuid.h (bit_FMA4): Define FMA4 bit.
2129 * config/i386/x86intrin.h: Fix typo to SSE4A instead of SSE4a.
2130 Add FMA4 check and fma4intrin.h.
2131 * config/i386/i386-c.c(ix86_target_macros_internal): Check
2132 ISA_FLAG for FMA4.
2133 * config/i386/i386.h(TARGET_FMA4): New macro for FMA4.
2134 * config/i386/i386.md (UNSPEC_FMA4_INTRINSIC): Add new UNSPEC
2135 constant for FMA4 support.
2136 (UNSPEC_FMA4_FMADDSUB): Ditto.
2137 (UNSPEC_FMA4_FMSUBADD): Ditto.
2138 * config/i386/i386.opt (-mfma4): New switch for FMA4 support.
2139 * config/i386/i386-protos.h (ix86_fma4_valid_op_p): Add declaration.
2140 (ix86_expand_fma4_multiple_memory): Ditto.
2141 * config/i386/i386.c (OPTION_MASK_ISA_FMA4_SET): New.
2142 (OPTION_MASK_ISA_FMA4_UNSET): New.
2143 (OPTION_MASK_ISA_SSE4A_UNSET): Change definition to depend on FMA4.
2144 (OPTION_MASK_ISA_AVX_UNSET): Change definition to depend on FMA4.
2145 (ix86_handle_option): Handle -mfma4.
2146 (isa_opts): Handle -mfma4.
2147 (enum pta_flags): Add PTA_FMA4.
2148 (override_options): Add FMA4 support.
2149 (IX86_BUILTIN_VFMADDSS): New for FMA4 intrinsic.
2150 (IX86_BUILTIN_VFMADDSD): Ditto.
2151 (IX86_BUILTIN_VFMADDPS): Ditto.
2152 (IX86_BUILTIN_VFMADDPD): Ditto.
2153 (IX86_BUILTIN_VFMSUBSS): Ditto.
2154 (IX86_BUILTIN_VFMSUBSD): Ditto.
2155 (IX86_BUILTIN_VFMSUBPS): Ditto.
2156 (IX86_BUILTIN_VFMSUBPD): Ditto.
2157 (IX86_BUILTIN_VFMADDSUBPS): Ditto.
2158 (IX86_BUILTIN_VFMADDSUBPD): Ditto.
2159 (IX86_BUILTIN_VFMSUBADDPS): Ditto.
2160 (IX86_BUILTIN_VFMSUBADDPD): Ditto.
2161 (IX86_BUILTIN_VFNMADDSS): Ditto.
2162 (IX86_BUILTIN_VFNMADDSD): Ditto.
2163 (IX86_BUILTIN_VFNMADDPS): Ditto.
2164 (IX86_BUILTIN_VFNMADDPD): Ditto.
2165 (IX86_BUILTIN_VFNMSUBSS): Ditto.
2166 (IX86_BUILTIN_VFNMSUBSD): Ditto.
2167 (IX86_BUILTIN_VFNMSUBPS): Ditto.
2168 (IX86_BUILTIN_VFNMSUBPD): Ditto.
2169 (IX86_BUILTIN_VFMADDPS256): Ditto.
2170 (IX86_BUILTIN_VFMADDPD256): Ditto.
2171 (IX86_BUILTIN_VFMSUBPS256): Ditto.
2172 (IX86_BUILTIN_VFMSUBPD256): Ditto.
2173 (IX86_BUILTIN_VFMADDSUBPS256): Ditto.
2174 (IX86_BUILTIN_VFMADDSUBPD256): Ditto.
2175 (IX86_BUILTIN_VFMSUBADDPS256): Ditto.
2176 (IX86_BUILTIN_VFMSUBADDPD256): Ditto.
2177 (IX86_BUILTIN_VFNMADDPS256): Ditto.
2178 (IX86_BUILTIN_VFNMADDPD256): Ditto.
2179 (IX86_BUILTIN_VFNMSUBPS256): Ditto.
2180 (IX86_BUILTIN_VFNMSUBPD256): Ditto.
2181 (enum multi_arg_type): New enum for describing the various FMA4
2182 intrinsic argument types.
2183 (bdesc_multi_arg): New table for FMA4 intrinsics.
2184 (ix86_init_mmx_sse_builtins): Add FMA4 intrinsic support.
2185 (ix86_expand_multi_arg_builtin): New function for creating FMA4
2186 intrinsics.
2187 (ix86_expand_builtin): Add FMA4 intrinsic support.
2188 (ix86_fma4_valid_op_p): New function to validate FMA4 3 and 4
2189 operand instructions.
2190 (ix86_expand_fma4_multiple_memory): New function to split the
2191 second memory reference from FMA4 instructions.
2192 * config/i386/sse.md (ssemodesuffixf4): New mode attribute for FMA4.
2193 (ssemodesuffixf2s): Ditto.
2194 (fma4_fmadd<mode>4): Add FMA4 floating point multiply/add
2195 instructions.
2196 (fma4_fmsub<mode>4): Ditto.
2197 (fma4_fnmadd<mode>4): Ditto.
2198 (fma4_fnmsub<mode>4): Ditto.
2199 (fma4_vmfmadd<mode>4): Ditto.
2200 (fma4_vmfmsub<mode>4): Ditto.
2201 (fma4_vmfnmadd<mode>4): Ditto.
2202 (fma4_vmfnmsub<mode>4): Ditto.
2203 (fma4_fmadd<mode>4256): Ditto.
2204 (fma4_fmsub<mode>4256): Ditto.
2205 (fma4_fnmadd<mode>4256): Ditto.
2206 (fma4_fnmsub<mode>4256): Ditto.
2207 (fma4_fmaddsubv8sf4): Ditto.
2208 (fma4_fmaddsubv4sf4): Ditto.
2209 (fma4_fmaddsubv4df4): Ditto.
2210 (fma4_fmaddsubv2df4): Ditto.
2211 (fma4_fmsubaddv8sf4): Ditto.
2212 (fma4_fmsubaddv4sf4): Ditto.
2213 (fma4_fmsubaddv4df4): Ditto.
2214 (fma4_fmsubaddv2df4): Ditto.
2215 (fma4i_fmadd<mode>4): Add FMA4 floating point multiply/add
2216 instructions for intrinsics.
2217 (fma4i_fmsub<mode>4): Ditto.
2218 (fma4i_fnmadd<mode>4): Ditto.
2219 (fma4i_fnmsub<mode>4): Ditto.
2220 (fma4i_vmfmadd<mode>4): Ditto.
2221 (fma4i_vmfmsub<mode>4): Ditto.
2222 (fma4i_vmfnmadd<mode>4): Ditto.
2223 (fma4i_vmfnmsub<mode>4): Ditto.
2224 (fma4i_fmadd<mode>4256): Ditto.
2225 (fma4i_fmsub<mode>4256): Ditto.
2226 (fma4i_fnmadd<mode>4256): Ditto.
2227 (fma4i_fnmsub<mode>4256): Ditto.
2228 (fma4i_fmaddsubv8sf4): Ditto.
2229 (fma4i_fmaddsubv4sf4): Ditto.
2230 (fma4i_fmaddsubv4df4): Ditto.
2231 (fma4i_fmaddsubv2df4): Ditto.
2232 (fma4i_fmsubaddv8sf4): Ditto.
2233 (fma4i_fmsubaddv4sf4): Ditto.
2234 (fma4i_fmsubaddv4df4): Ditto.
2235 (fma4i_fmsubaddv2df4): Ditto.
2236
2237 * doc/invoke.texi (-mfma4): Add documentation.
2238 * doc/extend.texi (x86 intrinsics): Add FMA4 intrinsics.
2239
2240 2009-09-29 Richard Henderson <rth@redhat.com>
2241
2242 * tree-eh.c (unsplit_eh): Do not unsplit if there's already
2243 an edge to the new destination block.
2244
2245 2009-09-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2246
2247 PR target/41393
2248 * pa.c (hppa_profile_hook): Use
2249 make_reg_eh_region_note_nothrow_nononlocal to add REG_EH_REGION note.
2250
2251 2009-09-29 Steve Ellcey <sje@cup.hp.com>
2252 Alexander Monakov <amonakov@ispras.ru>
2253
2254 PR target/41365
2255 * config/ia64/predicates.md (not_postinc_destination_operand): New.
2256 (not_postinc_memory_operand): New.
2257 (not_postinc_move_operand): New.
2258 * config/ia64/ia64.md (*cmovdi_internal): Disallow autoincrement.
2259 (*cmovsi_internal): Ditto.
2260
2261 2009-09-29 Pat Haugen <pthaugen@us.ibm.com>
2262
2263 * config/rs6000/rs6000.c (rs6000_issue_rate): Don't artificially
2264 restrict issue_rate in first pass when scheduling for register
2265 pressure.
2266
2267 2009-09-29 Basile Starynkevitch <basile@starynkevitch.net>
2268 Rafael Avila de Espindola <espindola@google.com>
2269
2270 * gengtype.c (plugin_output): New.
2271 (get_output_file_with_visibility): Return plugin_output for plugins.
2272 (main): Parse and use the -P option.
2273 * gty.texi: Update the command line format.
2274
2275 2009-09-29 Jakub Jelinek <jakub@redhat.com>
2276
2277 PR debug/41438
2278 * dwarf2out.c (const_ok_for_output_1, const_ok_for_output): New
2279 functions.
2280 (mem_loc_descriptor, loc_descriptor, add_const_value_attribute): Bail
2281 out if !const_ok_for_output.
2282
2283 PR debug/41474
2284 * dwarf2out.c (mem_loc_descriptor) <case CONCAT, case CONCATN,
2285 case VAR_LOCATION>: Remove gcc_unreachable ().
2286
2287 2009-09-29 Harsha Jagasia <harsha.jagasia@amd.com>
2288
2289 * config.gcc (i[34567]86-*-*): Remove mmintrin-common.h.
2290 (x86_64-*-*): Ditto.
2291 * config/i386/smmintrin.h: Move instructions in mmintrin-common.h
2292 back to smmintrin.h.
2293 * config/i386/cpuid.h: (bit_SSE5): Remove SSE5 bit.
2294 * config/i386/x86intrin.h: Remove SSE5.
2295 * config/i386/mmintrin-common.h: Delete file.
2296 * doc/extend.texi (x86 intrinsics): Remove SSE5 flags and builtins.
2297
2298 2009-09-29 Richard Guenther <rguenther@suse.de>
2299
2300 * alias.c (ao_ref_from_mem): Properly deal with off decl accesses
2301 resulting from stack temporaries on STRICT_ALIGNMENT targets.
2302
2303 2009-09-29 Nick Clifton <nickc@redhat.com>
2304
2305 * function.c (current_function_name): If there is no current
2306 function just return "<none>".
2307
2308 2009-09-28 Sriraman Tallam <tmsriram@google.com>
2309
2310 * tree-pass.h (register_pass_info): New structure.
2311 (pass_positioning_ops): Move enum from gcc-plugin.h.
2312 (register_pass): New function.
2313 * gcc-plugin.h (plugin_pass): Delete structure.
2314 (pass_positioning_ops): Delete enum.
2315 * plugin.c (regsiter_pass): Delete function.
2316 (position_pass): Delete function.
2317 (added_pass_nodes): Delete variable.
2318 (prev_added_pass_nodes): Delete variable.
2319 (pass_list_node): Delete structure.
2320 * passes.c (make_pass_instance): New function.
2321 (next_pass_1): Change to call make_pass_instance.
2322 (pass_list_node): Move structure from gcc-plugin.h.
2323 (added_pass_nodes): Move variable from plugin.c.
2324 (prev_added_pass_nodes): Move variable from plugin.c.
2325 (position_pass): New function.
2326 (register_pass): New function.
2327
2328 2009-09-28 Easwaran Raman <eraman@google.com>
2329
2330 * ifcvt.c (noce_try_abs): Recognize pattern and call
2331 expand_one_cmpl_abs_nojump.
2332 * optabs.c (expand_one_cmpl_abs_nojump): New function.
2333 * optabs.h (expand_one_cmpl_abs_nojump): Declare.
2334
2335 2009-09-28 Ian Lance Taylor <iant@google.com>
2336
2337 PR middle-end/40500
2338 * c-opts.c (c_common_handle_option): Don't set
2339 warn_jump_misses_init for -Wall.
2340 * doc/invoke.texi (Warning Options): Update documentation.
2341
2342 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2343
2344 * Makefile.in ($(out_object_file)): Depend on
2345 gt-$(basename $(notdir $(out_file))).h.
2346
2347 2009-09-28 Richard Henderson <rth@redhat.com>
2348
2349 * except.h (struct eh_region_d): Add use_cxa_end_cleanup.
2350 * except.c (gen_eh_region): Set it.
2351 (duplicate_eh_regions_1): Copy it.
2352 * tree-eh.c (lower_resx): Use it to determine which function
2353 to call to resume.
2354
2355 * langhooks.h (struct lang_hooks): Add eh_use_cxa_end_cleanup.
2356 * langhooks-def.h (LANG_HOOKS_EH_USE_CXA_END_CLEANUP): New.
2357 * builtins.def (BUILT_IN_CXA_END_CLEANUP): New.
2358 * tree.c (build_common_builtin_nodes): Remove parameter. Build
2359 BUILT_IN_CXA_END_CLEANUP if necessary.
2360
2361 * c-common.c (c_define_builtins): Update call to
2362 build_common_builtin_nodes.
2363
2364 2009-09-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
2365
2366 * spu.c (get_branch_target): Return NULL for ASM_OPERANDS patterns.
2367
2368 2009-09-28 Michael Matz <matz@suse.de>
2369
2370 * builtins.c (interclass_mathfn_icode): New helper.
2371 (expand_builtin_interclass_mathfn): Use it here, and split folding
2372 into ...
2373 (fold_builtin_interclass_mathfn): ... this new folder.
2374 (build_call_nofold_loc): New static helper.
2375 (build_call_nofold): New wrapper macro for above.
2376 (expand_builtin_int_roundingfn): Use it instead of build_call_expr.
2377 (expand_builtin_pow): Ditto.
2378 (expand_builtin_memset_args): Ditto.
2379 (expand_builtin_printf): Ditto.
2380 (expand_builtin_fprintf): Ditto.
2381 (expand_builtin_sprintf): Ditto.
2382 (expand_builtin_memory_chk): Ditto.
2383 (expand_builtin_mempcpy_args): Ditto and don't call folders.
2384 (expand_builtin_stpcpy): Ditto.
2385 (expand_builtin_strcmp): Ditto.
2386 (expand_builtin_strncmp): Ditto.
2387 (expand_builtin_strcpy): Remove FNDECL and MODE arguments.
2388 (expand_builtin_strcpy_args): Don't call folders.
2389 (expand_builtin_memcmp): Ditto.
2390 (expand_builtin_strncpy): Ditto, and use target.
2391 (expand_builtin_memcpy): Ditto.
2392 (expand_builtin_strstr, expand_builtin_strchr, expand_builtin_strrchr,
2393 expand_builtin_strpbrk, expand_builtin_memmove,
2394 expand_builtin_memmove_args, expand_builtin_bcopy,
2395 expand_builtin_memchr, expand_builtin_strcat, expand_builtin_strncat,
2396 expand_builtin_strspn, expand_builtin_strcspn,
2397 expand_builtin_fputs): Remove these.
2398 (expand_builtin): Don't call the above, change calls to other
2399 expanders that changed prototype.
2400 (fold_builtin_stpcpy): New folder split out from expand_builtin_stpcpy.
2401 (fold_builtin_1 <ISFINITE, ISINF, ISNORMAL>): Call
2402 fold_builtin_interclass_mathfn.
2403 (fold_builtin_2 <STPCPY>): Call fold_builtin_stpcpy.
2404 (fold_builtin_strcat): Add folding split from expand_builtin_strcat.
2405
2406 * fold-const.c (fold_binary_loc <NE_EXPR>): Add !exp != 0 -> !exp.
2407 * passes.c (init_optimization_passes): Move pass_fold_builtins
2408 after last phiopt pass.
2409 * tree-inline.c (fold_marked_statements): When folding builtins
2410 iterate over all instruction potentially generated.
2411 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Declare
2412 earlier.
2413 (fold_gimple_call): Use it to always fold calls (into potentially
2414 multiple instructions).
2415 * tree-ssa-dom.c (optimize_stmt): Resolve __builtin_constant_p
2416 calls into zero at this time.
2417 * tree-ssa-propagate.c (substitute_and_fold): Ignore multiple
2418 statements generated by builtin folding.
2419
2420 2009-09-28 Nick Clifton <nickc@redhat.com>
2421
2422 * config/m32r/m32r.c (m32r_is_insn): Return false for debugging insns.
2423
2424 2009-09-28 Duncan Sands <baldrick@free.fr>
2425
2426 * gcc-plugin.h (PLUGIN_REGISTER_GGC_CACHES): New event.
2427 * plugin.c (plugin_event_name): Add PLUGIN_REGISTER_GGC_CACHES.
2428 (register_callback): Dispatch it.
2429 (invoke_plugin_callbacks): Incorporate in sanity check.
2430 * ggc.h (ggc_register_cache_tab): Add declaration.
2431 * ggc-common.c (ggc_register_root_tab): Simplify.
2432 (const_ggc_cache_tab_t): New typedef.
2433 (extra_cache_vec): New vector of dynamically added cache tables.
2434 (ggc_register_cache_tab): New function.
2435 (ggc_scan_cache_tab): New function.
2436 (ggc_mark_roots): Simplify dynamic roots. Handle dynamic caches.
2437 * doc/plugins.texi: Document PLUGIN_REGISTER_GGC_CACHES.
2438
2439 2009-09-27 Richard Henderson <rth@redhat.com>
2440
2441 * tree-ssa-ccp.c (optimize_stack_restore): Relax the conditions under
2442 which we remove __builtin_stack_restore.
2443
2444 2009-09-27 Bernd Schmidt <bernd.schmidt@analog.com>
2445
2446 * loop-iv.c (iv_analyze_op): Use function_invariant_p, not CONSTANT_P,
2447 to test for GRD_INVARIANT.
2448 (simple_rhs_p): Anything that's function_invariant_p is fine.
2449
2450 2009-09-27 Rafael Avila de Espindola <espindola@google.com>
2451
2452 * gengtype.c (main): Use plunge_files instead of plugin_output.
2453
2454 2009-09-27 Basile Starynkevitch <basile@starynkevitch.net>
2455 Rafael Avila de Espindola <espindola@google.com>
2456
2457 * gengtype.c (write_root, write_roots): Add a emit_pch argument.
2458 Don't print pch related info if it is false.
2459 (main): Don't print pch info in plugin mode.
2460
2461 2009-09-27 Eric Botcazou <ebotcazou@adacore.com>
2462
2463 * dwarf2out.c (enum dw_val_class): Replace dw_val_class_long_long
2464 with dw_val_class_const_double.
2465 (struct dw_val_struct): Replace val_long_long with val_double and
2466 adjust for above change.
2467 (output_loc_operands): Likewise.
2468 (add_AT_long_long): Rename into...
2469 (add_AT_double): ...this.
2470 (print_die): Replace dw_val_class_long_long with
2471 dw_val_class_const_double and adjust.
2472 (attr_checksum): Likewise.
2473 (same_dw_val_p): Likewise.
2474 (size_of_die): Likewise.
2475 (value_format): Likewise.
2476 (output_die): Likewise.
2477 (loc_descriptor) <CONST_DOUBLE>: Likewise.
2478 (add_const_value_attribute) <CONST_DOUBLE>: Call add_AT_double
2479 instead of add_AT_long_long.
2480 (add_bound_info) <INTEGER_CST>: Generate the bound as an unsigned
2481 value with the precision of its type.
2482
2483 2009-09-27 Andreas Schwab <schwab@linux-m68k.org>
2484
2485 PR c/41476
2486 * c-typeck.c (build_conditional_expr): Use the readonly and
2487 volatile flags of the operand types, not of the operands itself.
2488
2489 2009-09-27 Peter O'Gorman <pogma@thewrittenword.com>
2490
2491 * collect2.c (main): Look for -brtl before adding libraries.
2492
2493 2009-09-27 Jonathan Gray <jsg@openbsd.org>
2494
2495 * config.gcc: Update OpenBSD targets.
2496 * config/openbsd-stdint.h: New file.
2497 * config/openbsd-libpthread.h: New file.
2498 * config/openbsd.h: Update and break out LIB_SPEC definition.
2499 * config/alpha/openbsd.h: Overhaul to reflect ELF migration.
2500 * config/i386/openbsdelf.h: Correct types.
2501 * config/m68k/openbsd.h: Likewise.
2502 * config/mips/openbsd.h: Likewise.
2503 * config/vax/openbsd.h: Likewise.
2504
2505 2009-09-27 Eric Botcazou <ebotcazou@adacore.com>
2506
2507 * fold-const.c (maybe_lvalue_p): Return false for M(IN|AX)_EXPR.
2508 (extract_muldiv_1) <MINUS_EXPR>: Swap operands if necessary.
2509 * stor-layout.c (layout_type) <ARRAY_TYPE>: Do not take the maximum
2510 of the length and zero.
2511
2512 2009-09-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2513
2514 * Makefile.in (TOPLEV_H): Use $(INPUT_H) not input.h.
2515 (FLAGS_H): Add options.h $(REAL_H).
2516 (SEL_SCHED_IR_H): Add $(BITMAP_H) vecprim.h $(CFGLOOP_H).
2517 (TREE_VECTORIZER_H): New.
2518 (EBITMAP_H): Renamed from EBIMAP_H.
2519 (c-decl.o, c-objc-common.o, c-pretty-print.o, attribs.o, c-omp.o)
2520 (gtype-desc.o, ggc-common.o, ggc-page.o, ggc-zone.o, langhooks.o)
2521 (tree.o, tree-ssa-structalias.o, tree-ssa-ter.o, tree-ssanames.o)
2522 (tree-phinodes.o, tree-ssa-loop.o, tree-ssa-math-opts.o)
2523 (gimple-low.o, omp-low.o, sese.o, graphite-blocking.o)
2524 (graphite-clast-to-gimple.o, graphite-dependences.o)
2525 (graphite-interchange.o, graphite-poly.o, graphite-scop-detection.o)
2526 (graphite-sese-to-poly.o, tree-vect-loop.o, tree-vect-loop-manip.o)
2527 (tree-vect-patterns.o, tree-vect-slp.o, tree-vect-stmts.o)
2528 (tree-vect-data-refs.o, tree-vectorizer.o, gimple.o, tree-mudflap.o)
2529 (targhooks.o, stmt.o, emit-rtl.o, ipa.o, matrix-reorg.o, ipa-inline.o)
2530 (gcse.o, tree-ssa-ccp.o, df-byte-scan.o, vec.o, caller-save.o)
2531 (ira-build.o, ira-costs.o, ira-color.o, ira-emit.o, ira.o)
2532 (haifa-sched.o, sched-rgn.o, sel-sched.o, sel-sched-dump.o)
2533 (sel-sched-ir.o, final.o, $(out_object_file)): Dependencies
2534 updated and fixed as per above changes and per
2535 check_makefile_deps.sh output.
2536
2537 PR bootstrap/40928
2538 * configure.ac: Use $LIBS for '-ldl', not $LDFLAGS.
2539 * configure: Regenerate.
2540
2541 2009-09-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2542
2543 * doc/install.texi: Update minimum MPC version to 0.7.
2544
2545 2009-09-26 Gerald Pfeifer <gerald@pfeifer.com>
2546
2547 * doc/install.texi (Binaries): Remove reference to the binary
2548 distribution CD-ROM from the FSF.
2549
2550 2009-09-26 Michael Matz <matz@suse.de>
2551
2552 PR lto/40758
2553 PR middle-end/41470
2554 * tree-ssa-coalesce.c (coalesce_ssa_name): Add only SSA names
2555 that are mentioned in the body.
2556
2557 2009-09-26 Michael Matz <matz@suse.de>
2558
2559 PR tree-optimization/41454
2560 * tree-ssa-dom (stmts_to_rescan): Remove variable.
2561 (tree_ssa_dominator_optimize): Don't allocate and free it.
2562 (dom_opt_leave_block): Don't iterate over it.
2563 (eliminate_redundant_computations): Don't return a value.
2564 (cprop_operand, cprop_into_stmt): Ditto.
2565 (optimize_stmt): Don't defer updating stmts.
2566
2567 2009-09-25 Dodji Seketeli <dodji@redhat.com>
2568
2569 * dwarf2out.c (dwarf_tag_name, gen_generic_params_dies,
2570 generic_parameter_die, template_parameter_pack_die,
2571 gen_formal_parameter_die, gen_subprogram_die): Adjust after
2572 renaming DW_TAG_formal_parameter_pack and
2573 DW_TAG_template_parameter_pack into DW_TAG_GNU_formal_parameter_pack
2574 and DW_TAG_GNU_template_parameter_pack.
2575
2576 2009-09-25 Anatoly Sokolov <aesok@post.ru>
2577
2578 * config/v850/v850.h (FUNCTION_VALUE): Remove.
2579 * config/v850/v850.c (v850_function_value): New function.
2580 (TARGET_FUNCTION_VALUE): Define.
2581
2582 2009-09-25 Jakub Jelinek <jakub@redhat.com>
2583
2584 * tree-vect-stmts.c (vectorizable_call): Call
2585 mark_symbols_for_renaming after vect_finish_stmt_generation.
2586
2587 * dwarf2out.c (tls_mem_loc_descriptor): Pass 1 instead of 2
2588 to loc_descriptor_from_tree.
2589 (add_location_or_const_value_attribute): Pass 0 instead of 2
2590 for decl_by_reference_p decls.
2591
2592 2009-09-25 Richard Guenther <rguenther@suse.de>
2593
2594 PR middle-end/41463
2595 * tree-dfa.c (get_ref_base_and_extent): Fix issue with trailing
2596 arrays again.
2597
2598 2009-09-25 Ben Elliston <bje@au.ibm.com>
2599
2600 * doc/invoke.texi (RS/6000 and PowerPC Options): Add missing comma
2601 after `power7'.
2602
2603 2009-09-25 Alan Modra <amodra@bigpond.net.au>
2604
2605 * config/rs6000/rs6000.md (load_toc_v4_PIC_3c): Correct POWER
2606 form of instruction.
2607
2608 2009-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2609
2610 PR middle-end/41435
2611 * fold-const.c (const_binop): Handle complex int division.
2612 * tree-complex.c (expand_complex_div_straight,
2613 expand_complex_div_wide): Update comments.
2614
2615 2009-09-24 DJ Delorie <dj@redhat.com>
2616
2617 PR target/41456
2618 * config/m32c/m32c.h (REG_CLASS_CONTENTS): Add R13.
2619 (reg_class): Likewise.
2620 (REG_CLASS_NAMES): Likewise.
2621 * config/m32c/m32c.c (m32c_reg_class_from_constraint): Likewise.
2622 (m32c_override_options): Disable -fivopts for M32C.
2623
2624 2009-09-24 Michael Meissner <meissner@linux.vnet.ibm.com>
2625
2626 * config/rs6000/predicates.md (indexed_or_indirect_operand):
2627 Delete VSX load/store with update support.
2628 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Ditto.
2629 * config/rs6000/vsx.md (vsx_mov<mode>): Ditto.
2630 (vsx_movti): Ditto.
2631 (VSX_U): Delete.
2632 (VSbit): Ditto.
2633 (VStype_load_update): Ditto.
2634 (VStype_store_update): Ditto.
2635 (vsx_load<VSX_U:mode>_update_<P:mptrsize>): Ditto.
2636 (vsx_store<VSX_U:mode>_update_<P:mptrsize>): Ditto.
2637
2638 * config/rs6000/rs6000.h (enum rs6000_builtins): Delete VSX
2639 load/store with update builtins.
2640
2641 2009-09-24 Kai Tietz <kai.tietz@onevision.com>
2642
2643 * libgcc2.c (L_trampoline): Prototype for getpagesize
2644 and mprotect in WINNT case.
2645
2646 2009-09-24 Anatoly Sokolov <aesok@post.ru>
2647
2648 * config/rs6000/rs6000.h (FUNCTION_VALUE): Remove macro.
2649 * config/rs6000/rs6000-protos.h (rs6000_function_value): Remove.
2650 * config/rs6000/rs6000.c (rs6000_function_value): Make static, add
2651 'outgoing' argument.
2652 (TARGET_FUNCTION_VALUE): Define.
2653
2654 2009-09-24 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
2655
2656 * config/darwin.h (DWARF2_DEBUGGING_INFO): Define as 1.
2657
2658 2009-09-24 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
2659
2660 PR bootstrap/41405
2661 * common.opt: Initialize dwarf_strict to -1.
2662 * toplev.c (process_options): Catch unset dwarf_strict
2663 and set to 0 for all targets not overriding.
2664 * config/darwin.c (darwin_override_options): Catch unset
2665 dwarf_strict and override to 1.
2666
2667 2009-09-24 Jeff Law <law@redhat.com>
2668
2669 * tree-into-ssa.c (rewrite_into_ssa): Free interesting_blocks.
2670
2671 2009-09-24 Richard Guenther <rguenther@suse.de>
2672
2673 PR tree-optimization/36143
2674 PR tree-optimization/38747
2675 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Only
2676 create VIEW_CONVERT_EXPRs for TBAA compatible accesses.
2677
2678 2009-09-24 Jakub Jelinek <jakub@redhat.com>
2679
2680 PR bootstrap/41457
2681 * dwarf2out.c (add_const_value_attribute): For HIGH and CONST_FIXED,
2682 return false instead of gcc_unreachable (). For CONST return the
2683 value returned by recursive call instead of always returning true.
2684 (tree_add_const_value_attribute): Return the value returned by
2685 add_const_value_attribute instead of always returning true if rtl
2686 is non-NULL.
2687
2688 2009-09-23 Justin Seyster <jrseys@gmail.com>
2689
2690 * Makefile.in (PLUGIN_HEADERS): Include real.h.
2691
2692 2009-09-24 Jakub Jelinek <jakub@redhat.com>
2693
2694 * cgraphunit.c (cgraph_lower_function): Revert last change.
2695 * targhooks.c (default_static_chain): Use !DECL_STATIC_CHAIN
2696 instead of DECL_NO_STATIC_CHAIN.
2697 * tree-cfg.c (verify_gimple_call): Likewise.
2698 * tree-nested.c (get_chain_decl, get_chain_field,
2699 convert_tramp_reference_op, convert_gimple_call): Likewise.
2700 (convert_all_function_calls): Likewise. Always set or clear
2701 DECL_STATIC_CHAIN initially, for !n->outer clear it.
2702 (lower_nested_functions): Remove DECL_NO_STATIC_CHAIN checking code.
2703 * c-parser.c (c_parser_declaration_or_fndef): Set DECL_STATIC_CHAIN
2704 if nested.
2705 * print-tree.c (print_node): Handle DECL_STATIC_CHAIN instead of
2706 DECL_NO_STATIC_CHAIN.
2707 * config/i386/i386.c (ix86_static_chain): Use !DECL_STATIC_CHAIN
2708 instead of DECL_NO_STATIC_CHAIN.
2709 (ix86_function_regparm, find_drap_reg): Likewise. Don't test
2710 decl_function_context.
2711 * varasm.c (initializer_constant_valid_p): Likewise.
2712 * tree.h (DECL_NO_STATIC_CHAIN): Renamed to ...
2713 (DECL_STATIC_CHAIN): ... this.
2714 * config/moxie/moxie.c (moxie_static_chain): Use !DECL_STATIC_CHAIN
2715 instead of DECL_NO_STATIC_CHAIN.
2716
2717 2009-09-23 Basile Starynkevitch <basile@starynkevitch.net>
2718 Rafael Avila de Espindola <espindola@google.com>
2719
2720 * gengtype.c (nb_plugin_files): Make it unsigned to match
2721 num_gt_files. Adjust other variables to avoid warnings.
2722 (main): Allocate an all zero lang_bitmap before each plugin file name
2723 to match regular file names.
2724
2725 2009-09-23 Richard Henderson <rth@redhat.com>
2726
2727 * doc/tm.texi (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
2728 (TARGET_STATIC_CHAIN): Mention that this hook must be used for
2729 static chain passed in memory.
2730 * system.h (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Poison.
2731 * targhooks.c (default_static_chain): Don't handle STATIC_CHAIN,
2732 STATIC_CHAIN_INCOMING. Issue a sorry if there's no
2733 STATIC_CHAIN_REGNUM defined.
2734
2735 * config/picochip/picochip-protos.h: s/class/klass/.
2736 * config/picochip/picochip.c (TARGET_STATIC_CHAIN): New.
2737 (picochip_static_chain): New.
2738 * config/picochip/picochip.h (STATIC_CHAIN): Remove.
2739 (STATIC_CHAIN_INCOMING): Remove.
2740
2741 * config/xtensa/xtensa.c (TARGET_STATIC_CHAIN): New.
2742 (xtensa_static_chain): New.
2743 * config/xtensa/xtensa.h (STATIC_CHAIN): Remove.
2744 (STATIC_CHAIN_INCOMING): Remove.
2745
2746 2009-09-23 Anatoly Sokolov <aesok@post.ru>
2747
2748 * config/pa/pa.h (FUNCTION_VALUE): Remove macro.
2749 * config/pa/pa-protos.h (function_value): Remove.
2750 * config/pa/pa.c (pa_function_value): Rename from function_value.
2751 Make static, add 'outgoing' argument.
2752 (TARGET_FUNCTION_VALUE): Define.
2753
2754 2009-09-23 Anatoly Sokolov <aesok@post.ru>
2755
2756 * config/avr/avr.c (avr_regs_to_save): Use current_function_is_leaf
2757 instead of cfun->machine->is_leaf.
2758 * config/avr/avr.h (machine_function): Remove is_leaf field.
2759
2760 2009-09-23 Jakub Jelinek <jakub@redhat.com>
2761
2762 PR debug/41439
2763 * dwarf2out.c (address_of_int_loc_descriptor): Don't emit
2764 DW_OP_piece after DW_OP_stack_value, adjust size calculations
2765 for it, when DW_OP_stack_value and DW_OP_implicit_value has
2766 the same size, prefer DW_OP_stack_value.
2767 (loc_descriptor, loc_list_for_address_of_addr_expr_of_indirect_ref,
2768 loc_list_from_tree): Don't emit DW_OP_piece after DW_OP_stack_value.
2769
2770 2009-09-23 Alexandre Oliva <aoliva@redhat.com>
2771
2772 PR debug/41353
2773 * var-tracking.c (add_with_sets): Sort MO_VAL_LOC last among uses.
2774
2775 2009-09-23 Alexandre Oliva <aoliva@redhat.com>
2776
2777 PR debug/41248
2778 * cfgexpand.c (convert_debug_memory_address): New.
2779 (expand_debug_expr): Convert base address and offset to the same
2780 mode. Use it to convert addresses to other modes. Accept
2781 ptr_mode addresses.
2782
2783 2009-09-23 Richard Guenther <rguenther@suse.de>
2784
2785 * alias.c (ao_ref_from_mem): Correct for negative MEM_OFFSET
2786 produced for bigendian targets with promoted subregs.
2787
2788 2009-09-23 Richard Guenther <rguenther@suse.de>
2789
2790 * value-prof.c (gimple_ic): Purge old EH edges only after building
2791 the new ones.
2792
2793 2009-09-23 Nick Clifton <nickc@redhat.com>
2794
2795 * config/arc/arc.c (arc_trampoline_init): Fix typo.
2796
2797 2009-09-23 Jakub Jelinek <jakub@redhat.com>
2798
2799 PR bootstrap/41405
2800 * doc/invoke.texi: Document -gstrict-dwarf and -gno-strict-dwarf.
2801
2802 PR bootstrap/41436
2803 * cgraphunit.c (cgraph_lower_function): Set DECL_NO_STATIC_CHAIN
2804 on non-nested functions.
2805
2806 2009-09-23 Jakub Jelinek <jakub@redhat.com>
2807 Jan Hubicka <jh@suse.cz>
2808
2809 * dwarf2out.c (loc_list_plus_const): Only define if
2810 DWARF2_DEBUGGING_INFO.
2811 (address_of_int_loc_descriptor): Likewise.
2812
2813 PR debug/41411
2814 * dwarf2out.c (mem_loc_descriptor): Handle HIGH.
2815
2816 2009-09-23 Uros Bizjak <ubizjak@gmail.com>
2817
2818 PR c/39779
2819 * c-typeck.c (build_binary_op) <short_shift>: Check that integer
2820 constant is more than zero.
2821
2822 2009-09-23 Alan Modra <amodra@bigpond.net.au>
2823
2824 PR target/40473
2825 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
2826 call final to emit non-scheduled prologue, instead insert at entry.
2827
2828 2009-09-22 Loren J. Rittle <ljrittle@acm.org>
2829 Joseph S. Myers <joseph@codesourcery.com>
2830
2831 * doc/install.texi (*-*-freebsd*): Add proper format codes.
2832
2833 2009-09-22 Basile Starynkevitch <basile@starynkevitch.net>
2834 Rafael Avila de Espindola <espindola@google.com>
2835
2836 * gengtype.c (is_file_equal): New function.
2837 (close_output_files): Use is_file_equal. Free of->buf.
2838
2839 2009-09-22 Basile Starynkevitch <basile@starynkevitch.net>
2840 Rafael Avila de Espindola <espindola@google.com>
2841
2842 * gengtype.c (write_types, write_local): Add the output_header
2843 argument. Update all callers.
2844
2845 2009-09-22 Dodji Seketeli <dodji@redhat.com>
2846
2847 * dwarf2out.c (template_parameter_pack_die,
2848 gen_formal_parameter_pack_die ): New functions.
2849 (make_ith_pack_parameter_name): Remove this function.
2850 (dwarf_tag_name): Support printing DW_TAG_template_parameter_pack and
2851 DW_TAG_formal_parameter_pack.
2852 (gen_generic_params_dies): Represent each template parameter pack
2853 by a DW_TAG_template_parameter_pack DIE. Argument pack elements are
2854 represented by usual DW_TAG_template_*_parameter DIEs that are
2855 children of the DW_TAG_template_parameter_pack element DIE.
2856 (generic_parameter_die): This doesn't deal with parameter pack
2857 names anymore. Don't generate DW_AT_name for some DIEs, e.g. children
2858 of parameter pack DIEs.
2859 (gen_formal_parameter_die): Add a flag to not emit DW_AT_name
2860 in certain cases, e.g. for pack elements.
2861 (gen_formal_types_die, gen_decl_die): Adjust usage of
2862 gen_formal_parameter_die.
2863 (gen_subprogram_die): Represent each function parameter pack by a
2864 DW_TAG_formal_parameter_pack DIE. Arguments of of the pack are
2865 represented by usual DW_TAG_formal_parameter DIEs that are children
2866 of the DW_TAG_formal_parameter_pack DIE. Remove references to
2867 ____builtin_va_alist decls as no part of the compiler uses those
2868 anymore.
2869 * langhooks.h (struct lang_hooks_for_decls): Add
2870 function_parm_expanded_from_pack_p, get_generic_function_decl
2871 and function_parameter_pack_p hooks. Fix comment for
2872 get_innermost_generic_parms hook.
2873 * langhooks-def.h (LANG_HOOKS_FUNCTION_PARAMETER_PACK_P,
2874 LANG_HOOKS_FUNCTION_PARM_EXPANDED_FROM_PACK_P ): Declare new hook
2875 macros and use them to initialize lang_hook.
2876
2877 2009-09-22 Richard Henderson <rth@redhat.com>
2878
2879 * system.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE): Poison.
2880 (TRAMPOLINE_ADJUST_ADDRESS): Poison.
2881 * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): Don't conditionalize
2882 on TRAMPOLINE_TEMPLATE.
2883 (TARGET_TRAMPOLINE_ADJUST_ADDRESS): Don't conditionalize on
2884 TRAMPOLINE_ADJUST_ADDRESS.
2885 * targhooks.c (default_asm_trampoline_template): Remove.
2886 (default_trampoline_adjust_address): Remove.
2887 (default_trampoline_init): Don't handle INITIALIZE_TRAMPOLINE.
2888 * targhooks.h: Update decls.
2889
2890 2009-09-22 Dave Korn <dave.korn.cygwin@gmail.com>
2891
2892 * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Enable.
2893 * config/i386/cygwin.h (LIBGCJ_SONAME): Define.
2894 * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
2895
2896 2009-09-22 Alexandre Oliva <aoliva@redhat.com>
2897
2898 PR debug/41295
2899 * reload1.c (reload): Reset debug insns with pseudos without
2900 equivalences.
2901
2902 2009-09-22 Janis Johnson <janis187@us.ibm.com>
2903
2904 * config/i386/i386.c (ix86_scalar_mode_supported_p): Don't return
2905 unconditional true for decimal float modes.
2906 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Ditto.
2907 * config/s390/s390.c (s390_scalar_mode_supported_p): Ditto.
2908
2909 2009-09-22 Loren J. Rittle <ljrittle@acm.org>
2910
2911 * unwind-dw2-fde-glibc.c: Define and use USE_PT_GNU_EH_FRAME.
2912 Enable a new case for __FreeBSD__ >= 7.
2913 * crtstuff.c: Define USE_PT_GNU_EH_FRAME for __FreeBSD__ >= 7.
2914 * config/t-freebsd: Define LIB2ADDEH and LIB2ADDEHDEP.
2915 * config/freebsd-spec.h: Conditionally define LINK_EH_SPEC
2916 and USE_LD_AS_NEEDED.
2917
2918 * doc/install.texi (*-*-freebsd*): Update target information.
2919
2920 2009-09-22 Richard Guenther <rguenther@suse.de>
2921
2922 PR middle-end/41395
2923 * tree-dfa.c (get_ref_base_and_extent): Handle trailing
2924 arrays really properly.
2925
2926 2009-09-22 Richard Henderson <rth@redhat.com>
2927
2928 PR target/41246
2929 * target.h (struct gcc_target): Add asm_out.trampoline_template,
2930 calls.static_chain, calls.trampoline_init,
2931 calls.trampoline_adjust_address.
2932 * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
2933 (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New.
2934 (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
2935 * builtins.c (expand_builtin_setjmp_receiver): Use
2936 targetm.calls.static_chain; only clobber registers.
2937 (expand_builtin_init_trampoline): Use targetm.calls.trampoline_init;
2938 set up memory attributes properly for the trampoline block.
2939 (expand_builtin_adjust_trampoline): Use
2940 targetm.calls.trampoline_adjust_address.
2941 * calls.c (prepare_call_address): Add fndecl argument. Use
2942 targetm.calls.static_chain.
2943 * df-scan.c (df_need_static_chain_reg): Remove.
2944 (df_get_entry_block_def_set): Use targetm.calls.static_chain;
2945 consolodate static chain handling.
2946 * doc/tm.texi: Document new hooks.
2947 * emit-rtl.c (static_chain_rtx, static_chain_incoming_rtx): Remove.
2948 (init_emit_regs): Don't initialize them.
2949 * expr.h (prepare_call_address): Update decl.
2950 * final.c (profile_function): Use targetm.calls.static_chain.
2951 * function.c (expand_function_start): Likewise.
2952 * rtl.h (static_chain_rtx, static_chain_incoming_rtx): Remove.
2953 * stmt.c (expand_nl_goto_receiver): Use targetm.calls.static_chain;
2954 only clobber registers.
2955 * targhooks.c (default_static_chain): New.
2956 (default_asm_trampoline_template, default_trampoline_init): New.
2957 (default_trampoline_adjust_address): New.
2958 * targhooks.h: Declare them.
2959 * varasm.c (assemble_trampoline_template): Use
2960 targetm.asm_out.trampoline_template. Make the memory block const
2961 and set its size.
2962
2963 * config/alpha/alpha.c (alpha_trampoline_init): Rename from
2964 alpha_initialize_trampoline. Make static. Merge VMS parameter
2965 differences into the TARGET_ABI_OPEN_VMS code block.
2966 (TARGET_TRAMPOLINE_INIT): New.
2967 * config/alpha/alpha.h (TRAMPOLINE_TEMPLATE): Remove.
2968 (TRAMPOLINE_SECTION, INITIALIZE_TRAMPOLINE): Remove.
2969 * config/alpha/vms.h (TRAMPOLINE_SIZE, TRAMPOLINE_ALIGNMENT): Remove.
2970 (INITIALIZE_TRAMPOLINE): Remove.
2971
2972 * config/arc/arc.h (TRAMPOLINE_ALIGNMENT): New.
2973 (TRAMPOLINE_TEMPLATE): Merge with ...
2974 (INITIALIZE_TRAMPOLINE): ... this and move ...
2975 * config/arc/arc.c (arc_trampoline_init): ... here.
2976 (TARGET_TRAMPOLINE_INIT): New.
2977
2978 * config/arm/arm.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
2979 (TARGET_TRAMPOLINE_INIT, TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
2980 (arm_asm_trampoline_template): New.
2981 (arm_trampoline_init, arm_trampoline_adjust_address): New.
2982 * config/arm/arm.h (TRAMPOLINE_TEMPLATE, ARM_TRAMPOLINE_TEMPLATE,
2983 THUMB2_TRAMPOLINE_TEMPLATE, THUMB1_TRAMPOLINE_TEMPLATE): Move all
2984 code to arm_asm_trampoline_template.
2985 (TRAMPOLINE_ADJUST_ADDRESS): Move code to
2986 arm_trampoline_adjust_address.
2987 (INITIALIZE_TRAMPOLINE): Move code to arm_trampoline_init;
2988 adjust for target hook parameters.
2989
2990 * config/avr/avr.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE):
2991 Remove.
2992
2993 * config/bfin/bfin-protos.h (initialize_trampoline): Remove.
2994 * config/bfin/bfin.c (bfin_asm_trampoline_template): New.
2995 (bfin_trampoline_init): Rename from initialize_trampoline;
2996 make static; update for target hook parameters.
2997 (TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New.
2998 * config/bfin/bfin.h (TRAMPOLINE_TEMPLATE): Move code to
2999 bfin_asm_trampoline_template.
3000 (INITIALIZE_TRAMPOLINE): Remove.
3001
3002 * config/cris/cris.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
3003 TARGET_TRAMPOLINE_INIT, cris_asm_trampoline_template,
3004 cris_trampoline_init): New.
3005 * config/cris/cris.h (TRAMPOLINE_TEMPLATE): Move code to
3006 cris_asm_trampoline_template.
3007 (INITIALIZE_TRAMPOLINE): Move code to cris_trampoline_init;
3008 adjust for target hook parameters.
3009
3010 * config/crx/crx.h (INITIALIZE_TRAMPOLINE): Remove.
3011
3012 * config/fr30/fr30.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
3013 TARGET_TRAMPOLINE_INIT, fr30_asm_trampoline_template,
3014 fr30_trampoline_init): New.
3015 * config/fr30/fr30.h (TRAMPOLINE_TEMPLATE): Move code to
3016 fr30_asm_trampoline_template.
3017 (INITIALIZE_TRAMPOLINE): Move code to fr30_trampoline_init;
3018 adjust for target hook parameters.
3019
3020 * config/frv/frv.c (TARGET_TRAMPOLINE_INIT): New.
3021 (frv_trampoline_init): Rename from frv_initialize_trampoline;
3022 make static, adjust arguments for TARGET_TRAMPOLINE_INIT hook.
3023 * config/frv/frv.h (INITIALIZE_TRAMPOLINE): Remove.
3024 * config/frv/frv-protos.h (frv_initialize_trampoline): Remove.
3025
3026 * config/h8300/h8300.c (h8300_trampoline_init): New.
3027 (TARGET_TRAMPOLINE_INIT): New.
3028 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Move code
3029 to h8300_trampoline_init and adjust for hook parameters.
3030
3031 * config/ia64/ia64-protos.h (ia64_initialize_trampoline): Remove.
3032 * config/ia64/ia64.c (TARGET_TRAMPOLINE_INIT): New.
3033 (ia64_trampoline_init): Rename from ia64_initialize_trampoline;
3034 make static; adjust for hook parameters.
3035 * config/ia64/ia64.h (INITIALIZE_TRAMPOLINE): Remove.
3036
3037 * config/iq2000/iq2000.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
3038 (TARGET_TRAMPOLINE_INIT): New.
3039 (iq2000_asm_trampoline_template, iq2000_trampoline_init): New.
3040 * config/iq2000/iq2000.h (TRAMPOLINE_TEMPLATE): Move code to
3041 iq2000_asm_trampoline_template.
3042 (INITIALIZE_TRAMPOLINE): Move code to iq2000_trampoline_init.
3043 (TRAMPOLINE_CODE_SIZE): New.
3044 (TRAMPOLINE_SIZE): Use it.
3045 (TRAMPOLINE_ALIGNMENT): Follow Pmode.
3046
3047 * config/m32c/m32c-protos.h (m32c_initialize_trampoline): Remove.
3048 * config/m32c/m32c.c (TARGET_TRAMPOLINE_INIT): New.
3049 (m32c_trampoline_init): Rename from m32c_initialize_trampoline;
3050 adjust for hook parameters.
3051 * config/m32c/m32c.h (INITIALIZE_TRAMPOLINE): Remove.
3052
3053 * config/m32r/m32r.c (TARGET_TRAMPOLINE_INIT): New.
3054 (m32r_trampoline_init): New.
3055 * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Move code to
3056 m32r_trampoline_init.
3057
3058 * config/m68hc11/m68hc11.c (TARGET_TRAMPOLINE_INIT): New.
3059 (m68hc11_trampoline_init): Rename from m68hc11_initialize_trampoline;
3060 make static; update for hook parameters.
3061 * config/m68hc11/m68hc11-protos.h: Update.
3062 * config/m68hc11/m68hc11.h (INITIALIZE_TRAMPOLINE): Remove.
3063
3064 * config/mcore/mcore.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
3065 (TARGET_TRAMPOLINE_INIT): New.
3066 (mcore_function_value): Fix typo.
3067 (mcore_asm_trampoline_template, mcore_trampoline_init): New.
3068 * config/mcore/mcore.h (TRAMPOLINE_TEMPLATE): Move code
3069 to mcore_asm_trampoline_template.
3070 (INITIALIZE_TRAMPOLINE): Move code to mcore_trampoline_init.
3071
3072 * config/mep/mep.h (INITIALIZE_TRAMPOLINE): Remove.
3073 * config/mep/mep.c (TARGET_TRAMPOLINE_INIT): New.
3074 (mep_trampoline_init): Rename from mep_init_trampoline; make static;
3075 update for hook parameters.
3076 * config/mep/mep-protos.h (mep_init_trampoline): Remove.
3077
3078 * config/mips/mips.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
3079 mips_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
3080 mips_trampoline_init): New.
3081 * config/mips/mips.h (TRAMPOLINE_TEMPLATE): Move code to
3082 mips_asm_trampoline_template.
3083 (INITIALIZE_TRAMPOLINE): Move code to mips_trampoline_init;
3084 update for hook parameters.
3085
3086 * gcc/config/mmix/mmix.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
3087 (TARGET_TRAMPOLINE_INIT): New.
3088 (mmix_trampoline_size): Remove.
3089 (mmix_asm_trampoline_template): Rename from mmix_trampoline_template;
3090 make static. Remove out-of-date tetra vs octa comment.
3091 (mmix_trampoline_init): Rename from mmix_initialize_trampoline;
3092 make static; update for hook parameters.
3093 * config/mmix/mmix.h (TRAMPOLINE_TEMPLATE): Remove.
3094 (INITIALIZE_TRAMPOLINE): Remove.
3095 (TRAMPOLINE_SIZE): Use a constant instead of mmix_trampoline_size.
3096 (TRAMPOLINE_ALIGNMENT): New.
3097 * gcc/config/mmix/mmix-protos.h: Update.
3098
3099 * config/mn10300/mn10300.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
3100 mn10300_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
3101 mn10300_trampoline_init): New.
3102 * config/mn10300/mn10300.h (TRAMPOLINE_TEMPLATE): Move code to
3103 mn10300_asm_trampoline_template.
3104 (INITIALIZE_TRAMPOLINE): Move code to mn10300_trampoline_init.
3105
3106 * config/moxie/moxie.c (moxie_static_chain,
3107 moxie_asm_trampoline_template, moxie_trampoline_init,
3108 TARGET_STATIC_CHAIN, TARGET_ASM_TRAMPOLINE_TEMPLATE,
3109 TARGET_TRAMPOLINE_INIT): New.
3110 * config/moxie/moxie.h (INITIALIZE_TRAMPOLINE): Move code to
3111 moxie_trampoline_init.
3112 (TRAMPOLINE_TEMPLATE): Move code to moxie_asm_trampoline_template.
3113 (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
3114
3115 * gcc/config/pa/pa.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
3116 pa_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
3117 pa_trampoline_init, TARGET_TRAMPOLINE_ADJUST_ADDRESS,
3118 pa_trampoline_adjust_address): New.
3119 * config/pa/pa.h (TRAMPOLINE_TEMPLATE): Move code to
3120 pa_asm_trampoline_template.
3121 (TRAMPOLINE_ALIGNMENT): New.
3122 (TRAMPOLINE_CODE_SIZE): Move to pa.c.
3123 (INITIALIZE_TRAMPOLINE): Move code to pa_trampoline_init;
3124 adjust for hook parameters.
3125 (TRAMPOLINE_ADJUST_ADDRESS): Move code to pa_trampoline_adjust_address.
3126
3127 * config/pdp11/pdp11.c (pdp11_trampoline_init): New.
3128 (TARGET_TRAMPOLINE_INIT): New.
3129 * config/pdp11/pdp11.h (TRAMPOLINE_TEMPLATE): Remove.
3130 (INITIALIZE_TRAMPOLINE): Move code to pdp11_trampoline_init.
3131
3132 * config/picochip/picochip.h (INITIALIZE_TRAMPOLINE): Remove.
3133
3134 * config/rs6000/rs6000-protos.h (rs6000_initialize_trampoline): Remove.
3135 * config/rs6000/rs6000.c (TARGET_TRAMPOLINE_INIT): New.
3136 (rs6000_trampoline_init): Rename from rs6000_initialize_trampoline;
3137 make static; adjust parameters for the hook.
3138 * config/rs6000/rs6000.h (INITIALIZE_TRAMPOLINE): Remove.
3139
3140 * config/s390/s390.c (s390_asm_trampoline_template): Rename from
3141 s390_trampoline_template; make static.
3142 (s390_trampoline_init): Rename from s390_initialize_trampoline;
3143 make static; adjust for target hook.
3144 (TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New.
3145 * config/s390/s390-protos.h: Remove trampoline decls.
3146 * config/s390/s390.h (INITIALIZE_TRAMPOLINE): Remove.
3147 (TRAMPOLINE_TEMPLATE): Remove.
3148 (TRAMPOLINE_ALIGNMENT): New.
3149
3150 * config/score/score-protos.h (score_initialize_trampoline): Remove.
3151 * config/score/score.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
3152 (TARGET_TRAMPOLINE_INIT): New.
3153 (score_asm_trampoline_template): New.
3154 (score_trampoline_init): Rename from score_initialize_trampoline;
3155 make static; adjust for hook parameters.
3156 * config/score/score.h (TRAMPOLINE_TEMPLATE): Move code to
3157 score[37]_asm_trampoline_template.
3158 (INITIALIZE_TRAMPOLINE): Remove.
3159 * config/score/score3.c (score3_asm_trampoline_template): New.
3160 (score3_trampoline_init): Rename from score3_initialize_trampoline;
3161 adjust for target hook.
3162 * config/score/score7.c (score7_asm_trampoline_template): New.
3163 (score7_trampoline_init): Rename from score7_initialize_trampoline;
3164 adjust for target hook.
3165 * config/score/score3.h, config/score/score7.h: Update.
3166
3167 * config/sh/sh-protos.h (sh_initialize_trampoline): Remove.
3168 * config/sh/sh.c (TARGET_TRAMPOLINE_INIT): New.
3169 (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
3170 (sh_trampoline_init): Rename from sh_initialize_trampoline;
3171 make static; adjust for target hook parameters.
3172 (sh_trampoline_adjust_address): New.
3173 * config/sh/sh.h (INITIALIZE_TRAMPOLINE): New.
3174 (TRAMPOLINE_ADJUST_ADDRESS): Move code to sh_trampoline_adjust_address.
3175
3176 * config/sparc/sparc.c (TARGET_TRAMPOLINE_INIT): New.
3177 (sparc32_initialize_trampoline): Rename from
3178 sparc_initialize_trampoline; make static; replace tramp parameter
3179 with m_tramp and update memory accesses.
3180 (sparc64_initialize_trampoline): Similarly.
3181 (sparc_trampoline_init): New.
3182 * config/sparc/sparc-protos.h: Remove trampoline decls.
3183 * config/sparc/sparc.h (INITIALIZE_TRAMPOLINE): Remove.
3184 * config/sparc/sparc.md (nonlocal_goto): Don't use static_chain_rtx.
3185
3186 * config/spu/spu.c (TARGET_TRAMPOLINE_INIT): New.
3187 (array_to_constant): Make ARR parameter const.
3188 (spu_trampoline_init): Rename from spu_initialize_trampoline;
3189 make static; update for hook parameters.
3190 * config/spu/spu-protos.h: Update decls.
3191 * config/spu/spu.h (INITIALIZE_TRAMPOLINE): Remove.
3192
3193 * config/stormy16/stormy16.c (xstormy16_trampoline_init): Rename
3194 from xstormy16_initialize_trampoline; make static; update for
3195 hook parameters.
3196 (TARGET_TRAMPOLINE_INIT): New.
3197 * config/stormy16/stormy16.h (INITIALIZE_TRAMPOLINE): Remove.
3198
3199 * config/v850/v850.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
3200 (TARGET_TRAMPOLINE_INIT): New.
3201 (v850_can_eliminate): Make static.
3202 (v850_asm_trampoline_template, v850_trampoline_init): New.
3203 * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Move code to
3204 v850_asm_trampoline_template.
3205 (INITIALIZE_TRAMPOLINE): Move code to v850_trampoline_init
3206 and adjust for target hook parameters.
3207
3208 * config/vax/vax.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
3209 (TARGET_TRAMPOLINE_INIT): New.
3210 (vax_asm_trampoline_template, vax_trampoline_init): New.
3211 * config/vax/vax.h (TRAMPOLINE_TEMPLATE): Move code to
3212 vax_asm_trampoline_template.
3213 (INITIALIZE_TRAMPOLINE): Move code to vax_trampoline_init.
3214
3215 * config/xtensa/xtensa.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
3216 (TARGET_TRAMPOLINE_INIT): New.
3217 (xtensa_asm_trampoline_template): Rename from
3218 xtensa_trampoline_template; make static.
3219 (xtensa_trampoline_init): Rename from xtensa_initialize_trampoline;
3220 make static; update for hook parameters.
3221 * config/xtensa/xtensa-protos.h: Remove trampoline decls.
3222 * config/xtensa/xtensa.h (TRAMPOLINE_TEMPLATE): Remove.
3223 (INITIALIZE_TRAMPOLINE): Remove.
3224
3225 * config/i386/i386.c (ix86_function_regparm): Do not issue an
3226 error for nested functions with regparm=3.
3227 (ix86_compute_frame_layout): Adjust frame pointer offset for
3228 ix86_static_chain_on_stack.
3229 (ix86_expand_prologue): Handle ix86_static_chain_on_stack.
3230 (ix86_emit_restore_reg_using_pop): Increment ix86_cfa_state->offset,
3231 don't reset to UNITS_PER_WORD.
3232 (ix86_emit_leave): Adjust ix86_cfa_state.
3233 (ix86_expand_epilogue): Handle ix86_static_chain_on_stack.
3234 (ix86_static_chain): New.
3235 (ix86_trampoline_init): Rename from x86_initialize_trampoline;
3236 make static; update for target hook parameters; use ix86_static_chain.
3237 (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New.
3238 * config/i386/i386.h (STATIC_CHAIN_REGNUM): Remove.
3239 (INITIALIZE_TRAMPOLINE): Remove.
3240 (TRAMPOLINE_SIZE): Use 24 for 64-bit.
3241 (struct machine_function): Use BOOL_BITFIELD; rearrange bitfields
3242 to the end. Add static_chain_on_stack.
3243 (ix86_static_chain_on_stack): New.
3244
3245 * config/m68k/m68k.c (TARGET_TRAMPOLINE_INIT): New.
3246 (m68k_output_mi_thunk): Don't use static_chain_rtx.
3247 (m68k_trampoline_init): New.
3248 * config/m68k/m68k.h (INITIALIZE_TRAMPOLINE): Move code to
3249 m68k_trampoline_init and adjust for hook parameters.
3250 * config/m68k/netbsd-elf.h (TRAMPOLINE_TEMPLATE): Remove.
3251 (TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE): Remove.
3252
3253 2009-09-22 Jakub Jelinek <jakub@redhat.com>
3254
3255 * config/rs6000/rs6000.c (bdesc_2arg): Fix CODE_FOR_vector_gt* codes
3256 for __builtin_altivec_vcmpgt{sb,uh,sh,uw}.
3257
3258 * reload1.c (reload): Call wrap_constant when substituting
3259 reg for equiv inside of DEBUG_INSNs.
3260
3261 PR bootstrap/41405
3262 * dwarf2out.c (base_type_die, record_type_tag, gen_subprogram_die,
3263 add_call_src_coords_attributes, add_high_low_attributes,
3264 gen_compile_unit_die, gen_type_die_with_usage force_decl_die,
3265 gen_decl_die, dwarf2out_imported_module_or_decl_1, dwarf2out_finish,
3266 dwarf2out_imported_module_or_decl): Avoid using DWARF3 additions
3267 when -gdwarf-2 -gstrict-dwarf.
3268 (loc_list_from_tree): Likewise. Avoid using DWARF4 additions when
3269 -gdwarf-[23] -gstrict-dwarf.
3270 (address_of_int_loc_descriptor, loc_descriptor,
3271 loc_list_for_address_of_addr_expr_of_indirect_ref): Avoid using
3272 DWARF4 additions when -gdwarf-[23] -gstrict-dwarf.
3273 * common.opt (gno-strict-dwarf, gstrict-dwarf): New options.
3274
3275 2009-09-22 Richard Guenther <rguenther@suse.de>
3276
3277 PR tree-optimization/41428
3278 * tree-ssa-ccp.c (ccp_fold_stmt): New function.
3279 (ccp_finalize): Pass it to substitute_and_fold.
3280
3281 2009-09-22 Richard Guenther <rguenther@suse.de>
3282
3283 * tree-ssa-propagate.h (ssa_prop_fold_stmt_fn): Declare.
3284 (substitute_and_fold): Adjust prototype.
3285 * tree-vrp.c (vrp_evaluate_conditional): Make static.
3286 (simplify_stmt_using_ranges): Likewise.
3287 (fold_predicate_in): Move here from tree-ssa-propagate.c.
3288 (vrp_fold_stmt): New function.
3289 (vrp_finalize): Pass it to substitute_and_fold.
3290 * tree-flow.h (vrp_evaluate_conditional): Remove.
3291 (simplify_stmt_using_ranges): Likewise.
3292 * tree-ssa-ccp.c (ccp_finalize): Adjust call to substitute_and_fold.
3293 * tree-ssa-copy.c (fini_copy_prop): Likewise.
3294 * tree-ssa-propagate.c (struct prop_stats_d): Rename num_pred_folded
3295 member.
3296 (fold_predicate_in): Move to tree-vrp.c.
3297 (substitute_and_fold): Use the callback instead of calling into
3298 tree-vrp.c functions directly.
3299
3300 2009-09-22 Jakub Jelinek <jakub@redhat.com>
3301
3302 * dwarf2out.c (address_of_int_loc_descriptor): Avoid signed/unsigned
3303 comparison warning on rs6000.
3304
3305 PR middle-end/41429
3306 * tree-cfg.c (remove_useless_stmts_tc): Call gsi_next (gsi) even for
3307 GIMPLE_EH_MUST_NOT_THROW cleanup.
3308 (verify_types_in_gimple_stmt): Handle GIMPLE_EH_MUST_NOT_THROW.
3309
3310 2009-09-22 Jack Howarth <howarth@bromo.med.uc.edu>
3311
3312 PR middle-end/41260
3313 * gcc/config.gcc: Use darwin9.h and darwin10.h on darwin10 and later.
3314 * gcc/config/darwin10.h: Add file to pass -no_compact_unwind on
3315 LIB_SPEC for darwin10 and later since it always uses the unwinder in
3316 libSystem which is derived from the gcc 4.2.1 unwinder.
3317
3318 2009-09-22 Dave Korn <dave.korn.cygwin@gmail.com>
3319
3320 PR middle-end/41357
3321 * varasm.c (default_encode_section_info): Copy TLS model into
3322 sym_ref flags regardless of backend support for TLS, for all
3323 model types except TLS_MODEL_EMULATED.
3324
3325 2009-09-22 Dave Korn <dave.korn.cygwin@gmail.com>
3326
3327 PR bootstrap/41404
3328 * dwarf2out.c (mem_loc_descriptor): Punt on CONST_STRING until
3329 we can handle it correctly.
3330
3331 2009-09-21 Gerald Pfeifer <gerald@pfeifer.com>
3332
3333 * doc/install.texi (os2): Remove section.
3334
3335 2009-09-21 Gerald Pfeifer <gerald@pfeifer.com>
3336
3337 * doc/standards.texi (Objective-C): Adjust two URLs.
3338
3339 2009-09-21 Giuseppe Scrivano <gscrivano@gnu.org>
3340
3341 * tree-tailcall.c (process_assignment): Don't check if a
3342 multiplication or an addition are already present.
3343 (find_tail_calls): Combine multiple additions and multiplications.
3344 (adjust_accumulator_values): Emit accumulators.
3345
3346 2009-09-21 Kai Tietz <kai.tietz@onevision.com>
3347
3348 * config/i386/i386.c (ix86_expand_epilogue): Adjust offset for
3349 xmm register restore.
3350
3351 2009-09-21 Jan Hubicka <jh@suse.cz>
3352
3353 * dwarf2out.c (decl_loc_table_eq): Allow decl_loc_table to be NULL.
3354 (dwarf2out_abstract_function): NULLify decl_loc_table at begginig and
3355 restore at the end.
3356
3357 2009-09-21 Eric Botcazou <ebotcazou@adacore.com>
3358
3359 * stor-layout.c (layout_type): Remove obsolete code.
3360
3361 2009-09-20 H.J. Lu <hongjiu.lu@intel.com>
3362
3363 PR middle-end/41395
3364 * opts.c (decode_options): Don't turn on flag_ipa_sra for opt2.
3365
3366 2009-09-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3367
3368 PR middle-end/30789
3369 * builtins.c (do_mpc_arg2): Accept DO_NONFINITE parameter.
3370 (do_mpc_ckconv): Accept FORCE_CONVERT parameter.
3371 (fold_builtin_2, do_mpc_arg1): Update accordingly.
3372 * fold-const.c (const_binop): Likewise.
3373 * real.h (do_mpc_arg2): Update prototype.
3374
3375 2009-09-20 Jan Hubicka <jh@suse.cz>
3376
3377 * dwarf2out.c (add_const_value_attribute): Return true if successful.
3378 (add_location_or_const_value_attribute): Rewrite using
3379 loc_list_from_tree.
3380 (tree_add_const_value_attribute): Return true if successful.
3381 (tree_add_const_value_attribute_for_decl): Likewise.
3382
3383 * dwarf2out.c (address_of_int_loc_descriptor): Break out from ...
3384 (loc_descriptor): ... here;
3385 (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
3386 (cst_pool_loc_descr): Break out from ...; do not reffer constant
3387 pool items that was not marked for output.
3388 (loc_list_from_tree): ... here; handle special cases of ADDR_EXPR;
3389 (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
3390 (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
3391 handle ALIGN_INDIRECT_REF, MISALIGNED_INDIRECT_REF, REALPART_EXPR,
3392 IMAGPART_EXPR; handle address of INTEGER_CST; improve handling of
3393 CONSTRUCTOR; handle REAL_CST, STRING_CST, COMPLEX_CST; use
3394 DW_OP_stack_value to get address of items that are not available
3395 as addresses.
3396 (dw_loc_list): Handle single element lists correctly.
3397
3398 2009-09-20 Kai Tietz <kai.tietz@onevision.com>
3399 Pascal Obry <obry@adacore.com>
3400
3401 * unwind-dw2-fde.c (classify_object_over_fdes):
3402 Cast the constant 1 to _Unwind_Ptr.
3403 (add_fdes): Likewise.
3404 (linear_search_fdes): Likewise.
3405
3406 2009-09-20 Eric Botcazou <ebotcazou@adacore.com>
3407
3408 * stor-layout.c (set_sizetype): Avoid useless type copy.
3409
3410 2009-09-20 Richard Sandiford <rdsandiford@googlemail.com>
3411
3412 * configure.ac (gcc_cv_ld_mips_personality_relaxation): New
3413 feature check.
3414 (HAVE_LD_PERSONALITY_RELAXATION): New macro definition.
3415 * configure, config.in: Regenerate.
3416 * dwarf2asm.c (eh_data_format_name): Handle DW_EH_PE_indirect |
3417 DW_EH_PE_absptr.
3418 * config/mips/mips.h (TARGET_WRITABLE_EH_FRAME): New macro.
3419 (ASM_PREFERRED_EH_DATA_FORMAT): Define. Use MIPS_EH_INDIRECT
3420 for global data if the output could be used in a shared library.
3421 * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
3422 to 0 if TARGET_WRITABLE_EH_FRAME.
3423
3424 2009-09-20 Paolo Bonzini <bonzini@gnu.org>
3425
3426 PR rtl-optimization/39886
3427 * combine.c (update_cfg_for_uncondjump): Set EDGE_FALLTHRU
3428 just when insn is equal to BB_END (bb).
3429
3430 2009-09-19 Adam Nemet <anemet@caviumnetworks.com>
3431
3432 * config/mips/mips.opt (mrelax-pic-calls): New option.
3433 * config/mips/mips.c (mips_strip_unspec_address): Move it up in
3434 the file.
3435 (mips_unspec_call): Change "unspec_call" expander into this.
3436 (mips_strip_unspec_call): New function.
3437 (mips_got_load): Call mips_unspec_call instead of
3438 gen_unspec_call<mode>.
3439 (mips16_build_call_stub): Fix comment for fp_code. Adjust call to
3440 MIPS_CALL.
3441 (mips_cfg_in_reorg): New function.
3442 (mips16_lay_out_constants): Use it to decide whether to call
3443 CFG-aware insn splitting.
3444 (r10k_insert_cache_barriers): Move CFG set-up code from here to
3445 mips_reorg. Move DF set-up code from here ...
3446 (mips_df_reorg): ... to here. Call r10k_insert_cache_barriers
3447 from here.
3448 (mips_reorg): Call mips_df_reorg instead of
3449 r10k_insert_cache_barriers. Move CFG set-up code here from
3450 r10k_insert_cache_barriers.
3451 (mips_call_expr_from_insn): New function.
3452 (mips_pic_call_symbol_from_set): Likewise.
3453 (mips_find_pic_call_symbol): Likewise.
3454 (mips_annotate_pic_call_expr): Likewise.
3455 (mips_get_pic_call_symbol): Likewise.
3456 (mips_annotate_pic_calls): Likewise.
3457 (mips_override_options): Disable -mrelax-pic-calls unless PIC
3458 calls are used.
3459 (mips_set_mips16_mode): Disable -mrelax-pic-calls for MIPS16.
3460 * config/mips/mips-protos.h (mips_get_pic_call_symbol): Declare it.
3461 * config/mips/mips.h (MIPS_CALL): Use it to print the .reloc
3462 directive.
3463 * config/mips/mips.md (UNSPEC_CALL_ATTR): New unspec.
3464 (unspec_call<mode>): Remove it.
3465 (sibcall_internal, sibcall_value_internal,
3466 sibcall_value_multiple_internal, call_internal, call_split,
3467 call_value_internal, call_value_split,
3468 call_value_multiple_internal, call_value_multiple_split): Pass
3469 SIZE_OPNO to MIPS_CALL.
3470 (call_internal_direct, call_direct_split,
3471 call_value_internal_direct, call_value_direct_split): Pass -1 as
3472 SIZE_OPNO to MIPS_CALL.
3473 * configure.ac <mips*-*-*>: Add test for .reloc R_MIPS_JALR.
3474 * configure: Regenerate.
3475 * doc/invoke.texi (Option Summary): Add -mrelax-pic-calls
3476 and -mno-relax-pic-calls.
3477 (MIPS Options): Document -mrelax-pic-calls and -mno-relax-pic-calls.
3478
3479 2009-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3480
3481 PR bootstrap/35619
3482 * Makefile.in (stmp-fixinc): Ensure `include-fixed' is created
3483 in the directory this rule is called from, rather than the
3484 toplevel 'gcc' directory, to fix in-tree build.
3485
3486 2009-09-19 Chris Demetriou <cgd@google.com>
3487
3488 PR preprocessor/28435:
3489 * c-opts.c (c_common_handle_option): For -MD and -MMD, indicate
3490 to cpplib that the preprocessor output is needed.
3491
3492 2009-09-19 Jakub Jelinek <jakub@redhat.com>
3493
3494 * config/rs6000/rs6000.md (*save_gpregs_<mode>, *save_fpregs_<mode>,
3495 *restore_gpregs_<mode>, *return_and_restore_gpregs_<mode>,
3496 *return_and_restore_fpregs_<mode>,
3497 *return_and_restore_fpregs_aix_<mode>): Remove 'z' operand modifier.
3498
3499 PR bootstrap/41397
3500 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Recurse
3501 instead of assuming it has always a REG inside of it.
3502
3503 2009-09-18 Gerald Pfeifer <gerald@pfeifer.com>
3504
3505 * config/freebsd.h: Update comment on types.
3506 (WINT_TYPE): Define.
3507
3508 2009-09-18 Jason Merrill <jason@redhat.com>
3509
3510 * c.opt: Add -fno-deduce-init-list.
3511
3512 2009-09-18 Neil Vachharajani <nvachhar@google.com>
3513
3514 * value-prof.c (interesting_stringop_to_profile_p): Added output
3515 argument to indicate which parameter is the size parameter.
3516 * value-prof.c (gimple_stringop_fixed_value): Use
3517 INTERESTING_STRINGOP_TO_PROFILE_P to find size argument.
3518 * value-prof.c (gimple_stringops_transform): Update call sites to
3519 INTERESTING_STRINGOP_TO_PROFILE_P to reflect parameter change.
3520
3521 2009-09-18 Uros Bizjak <ubizjak@gmail.com>
3522
3523 PR target/38288
3524 From David Binderman <dcb314@hotmail.com>:
3525 * gcc/config/i386/i386.c (ix86_function_regparm): Remove useless
3526 local variable f. Remove stale comments.
3527 (ix86_compute_frame_layout): Remove useless local variable total_size.
3528 Remove #if 0'd code.
3529 (legitimate_address_p): Remove useless local variables
3530 reason_rtx and reason.
3531 (ix86_split_copysign_const): Remove useless local variable op1.
3532 (scale_counter): Remove useless local variable piece_size_mask.
3533
3534 2009-09-18 Jakub Jelinek <jakub@redhat.com>
3535
3536 * stmt.c (expand_asm_operands): Set REG_ATTRS on the temporary from
3537 output decl.
3538
3539 2009-09-17 Michael Haubenwallner <michael.haubenwallner@salomon.at>
3540
3541 PR target/40913
3542 * config/pa/t-hpux-shlib: Set soname in libgcc_s.sl.
3543
3544 2009-09-17 Jakub Jelinek <jakub@redhat.com>
3545
3546 * c-decl.c (finish_struct): Adjust DECL_SOURCE_LOCATION of
3547 TYPE_STUB_DECL.
3548
3549 2009-09-17 Alexandre Oliva <aoliva@redhat.com>
3550
3551 * dwarf2out.c (loc_descriptor): Emit DW_OP_stack_value and
3552 DW_OP_implicit_value even without dwarf_version 4.
3553
3554 2009-09-17 Jan Hubicka <jh@suse.cz>
3555
3556 * dwarf2out.c: Include tree-pass.h and gimple.h.
3557 (loc_list_plus_const): New function.
3558 (loc_descriptor_from_tree_1): Rename to ...
3559 (loc_descriptor_from_tree): ... remove original.
3560 (loc_list_from_tree): New function.
3561 (add_AT_location_description): Accept location list.
3562 (tls_mem_loc_descriptor): Update call of loc_descriptor_from_tree.
3563 (concatn_mem_loc_descriptor): Remove.
3564 (mem_loc_descriptor): Handle CONCAT/CONCATN and VAR_LOCATION by
3565 returning NULL.
3566 (secname_for_decl): Move up.
3567 (hidden_reference_p): New function; break out from ...
3568 (loc_by_refernece): ... here; move up.
3569 (dw_loc_list): New function.
3570 (single_element_loc_list): New function.
3571 (single_element_loc_list_p): New function.
3572 (add_loc_descr_to_each): New function.
3573 (add_loc_list): New function.
3574 (loc_descr_from_tree): Make wraper of loc_list_from_tree.
3575 (loc_list_from_tree): Reroganized from loc_descr_from_tree;
3576 add diagnostics why expansion failed.
3577 (add_location_or_const_value_attribute): Support location lists.
3578 (add_bound_info): Likewise.
3579 (descr_info_loc): Update call of loc_descriptor_from_tree.
3580 (gen_variable_die): Work on location lists.
3581 * final.c (pass_final): Add dump file.
3582 * Makefile.in (dwarf2out.o): Add new dependencies.
3583
3584 2009-09-17 Janis Johnson <janis187@us.ibm.com>
3585
3586 PR c/41049
3587 * real.c decimal_from_integer, decimal_integer_string): New.
3588 (real_from_integer): Use them as special case for decimal float.
3589 * config/dfp-bit.c (_si_to_sd, _usi_to_sd): Use default rounding.
3590 (_di_to_sd, _di_to_dd, _di_to_td, _udi_to_sd, _udi_to_dd, _udi_to_td):
3591 Do not append zero after the decimal point in string to convert.
3592
3593 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
3594
3595 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only
3596 for ARRAY_REFs. Use array_ref_{low,up}_bound to determine bounds.
3597
3598 2009-09-17 Martin Jambor <mjambor@suse.cz>
3599
3600 * common.opt (fipa-sra): New switch.
3601 * opts.c (decode_options): Turn flag_ipa_sra on for opt2.
3602 * timevar.def (TV_IPA_SRA): New timevar.
3603 * params.def (ipa-sra-ptr-growth-factor): New parameter.
3604 * doc/invoke.texi: Document -fipa-sra and ipa-sra-ptr-growth-factor.
3605 * tree-sra.c: Include cgraph.c.
3606 (enum sra_mode): Added SRA_MODE_EARLY_IPA.
3607 (struct access): Added fields stmt, grp_maybe_modified, grp_scalar_ptr
3608 and grp_not_necessarilly_dereferenced.
3609 (func_param_count): New variable.
3610 (encountered_apply_args): New variable.
3611 (bb_dereferences): New variable.
3612 (final_bbs): New variable.
3613 (no_accesses_representant): New variable.
3614 (no_accesses_p): New function.
3615 (dump_access): Dump the new fields.
3616 (sra_initialize): Set encountered_apply_args to false.
3617 (get_ssa_base_param): New function.
3618 (mark_parm_dereference): New function.
3619 (create_access): Caring for INIDRECT_REFs and different handling of
3620 varialble length accesses in early IPA SRA. Store the stmt - a new
3621 parameter - to the new access.
3622 (build_access_from_expr_1): New parameter stmt, passed to
3623 create_access. Handle INDIRECT_REFs.
3624 (build_access_from_expr): Pass the current statement to
3625 build_access_from_expr_1.
3626 (disqualify_ops_if_throwing_stmt): Trigger only in intraprocedural
3627 passes.
3628 (build_accesses_from_assign): Pass the current statement to
3629 build_access_from_expr_1. Do not create assign links in IPA-SRA.
3630 (scan_function): Call handle_ssa_defs on phi nodes. Set bits in
3631 final_bbs when necessary. Check for calls to __builtin_apply_args.
3632 Fixup EH info if anythng was changed.
3633 (is_unused_scalar_param): New function.
3634 (ptr_parm_has_direct_uses): New function.
3635 (find_param_candidates): New function.
3636 (mark_maybe_modified): New function.
3637 (analyze_modified_params): New function.
3638 (propagate_dereference_distances): New function.
3639 (dump_dereferences_table): New function.
3640 (analyze_caller_dereference_legality): New function.
3641 (unmodified_by_ref_scalar_representative): New function.
3642 (splice_param_accesses): New function.
3643 (decide_one_param_reduction): New function.
3644 (enum ipa_splicing_result): New type.
3645 (splice_all_param_accesses): New function.
3646 (get_param_index): New function.
3647 (turn_representatives_into_adjustments): New function.
3648 (analyze_all_param_acesses): New function.
3649 (get_replaced_param_substitute): New function.
3650 (get_adjustment_for_base): New function.
3651 (replace_removed_params_ssa_names): New function.
3652 (sra_ipa_reset_debug_stmts): New function.
3653 (sra_ipa_modify_expr): New function.
3654 (sra_ipa_modify_assign): New function.
3655 (convert_callers): New function.
3656 (modify_function): New function.
3657 (ipa_sra_preliminary_function_checks): New function.
3658 (ipa_early_sra): New function.
3659 (ipa_early_sra_gate): New function.
3660 (pass_early_ipa_sra): New variable.
3661 * Makefile.in (tree-sra.o): Add cgraph.h to dependencies.
3662
3663 2009-09-17 Michael Matz <matz@suse.de>
3664
3665 PR middle-end/41347
3666 * tree.c (build_type_attribute_qual_variant): Export.
3667 * tree.h (build_type_attribute_qual_variant): Declare.
3668 * tree-inline.c (remap_type_1): Use it to build variants with
3669 the original qualifiers and attributes.
3670
3671 2009-09-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3672
3673 * cfglayout.c (fixup_reorder_chain): Accept conditional jumps
3674 without a fallthrough edge.
3675
3676 2009-09-16 DJ Delorie <dj@redhat.com>
3677
3678 * config/m32c/m32c.c (m32c_emit_epilogue): Check for R8C or M16C
3679 chip and ignore the "fast_interrupt" attribute if so.
3680
3681 2009-09-16 Richard Henderson <rth@redhat.com>
3682
3683 PR middle-end/41360
3684 * cfgbuild.c (find_bb_boundaries): Really re-instate 2009-09-02
3685 barrier fix.
3686
3687 2009-09-16 Richard Henderson <rth@redhat.com>
3688
3689 PR target/41246
3690 * tree-cfg.c (verify_gimple_call): Validate that gimple_call_chain
3691 is set only if DECL_NO_STATIC_CHAIN is unset.
3692 * tree-nested.c (iter_nestinfo_start, iter_nestinfo_next): New.
3693 (FOR_EACH_NEST_INFO): New.
3694 (walk_all_functions): Use it.
3695 (finalize_nesting_tree): Likewise.
3696 (unnest_nesting_tree): Likewise.
3697 (free_nesting_tree): Use iter_nestinfo_start, iter_nestinfo_next.
3698 (get_chain_decl, get_chain_field): Reset DECL_NO_STATIC_CHAIN.
3699 (convert_gimple_call): Early out if gimple_call_chain already set.
3700 (convert_all_function_calls): Iterate until no new functions
3701 require a static chain.
3702 (finalize_nesting_tree_1): Assert DECL_NO_STATIC_CHAIN is unset
3703 when building a trampoline. Use dump_function_to_file instead
3704 of dump_function.
3705 (lower_nested_functions): Open dump_file. Validate that decls
3706 that have DECL_NO_STATIC_CHAIN from the front end don't have that
3707 bit reset by this pass.
3708
3709 2009-09-16 Michael Matz <matz@suse.de>
3710
3711 PR fortran/41212
3712 * tree.h (struct tree_decl_common): Add decl_restricted_flag,
3713 shorten decl_common_unused.
3714 (DECL_RESTRICTED_P): New accessor.
3715 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Use it
3716 to disambiguate marked decls and restrict pointers.
3717
3718 2009-09-16 Richard Henderson <rth@redhat.com>
3719
3720 PR middle-end/41360
3721 * cfgbuild.c (find_bb_boundaries): Re-instate 2009-09-02 barrier fix.
3722
3723 2009-09-16 Jakub Jelinek <jakub@redhat.com>
3724
3725 * integrate.c (set_block_abstract_flags): Call
3726 set_decl_abstract_flags also on BLOCK_NONLOCALIZED_VARs.
3727
3728 2009-09-16 Richard Guenther <rguenther@suse.de>
3729
3730 PR middle-end/34011
3731 * tree-flow-inline.h (may_be_aliased): Compute readonly variables
3732 as non-aliased.
3733
3734 2009-09-16 DJ Delorie <dj@redhat.com>
3735 Kaz Kojima <kkojima@gcc.gnu.org>
3736
3737 * config/sh/sh.c (output_stack_adjust): Add new argument frame_p.
3738 (sh_expand_prologue): Update calls to output_stack_adjust.
3739 (sh_expand_epilogue): Likewise.
3740
3741 2009-09-15 Adam Nemet <anemet@caviumnetworks.com>
3742
3743 PR bootstrap/41349
3744 * reorg.c (redundant_insn): Don't count notes or DEBUG_INSNs when
3745 trying to limit the extent of searches in the insn stream.
3746
3747 2009-09-15 Nathan Froyd <froydnj@codesourcery.com>
3748 Jakub Jelinek <jakub@redhat.com>
3749
3750 PR target/41175
3751 PR target/40677
3752 * config/rs6000/rs6000.c (no_global_regs_above): Fix precedence
3753 problem.
3754 (SAVRES_NOINLINE_GPRS_SAVES_LR, SAVRES_NOINLINE_FPRS_SAVES_LR,
3755 SAVRES_NOINLINE_FPRS_DOESNT_RESTORE_LR): New strategy bits.
3756 (rs6000_savres_strategy): Always save FP registers inline if the
3757 target doesn't support hardware double-precision. Set the above
3758 bits in return value when needed.
3759 (rs6000_savres_routine_sym): Fix computation for cache selector.
3760 Mark the generated symbol as a function. Rename exitp argument to
3761 lr. Move code for determining the name of the symbol...
3762 (rs6000_savres_routine_name): ...here. New function. Add cases for
3763 getting the names right on AIX and 64-bit Linux.
3764 (savres_routine_name): New variable.
3765 (rs6000_make_savres_rtx): Rename exitp argument to lr. Don't assert
3766 lr isn't set when savep. Use r12 resp. r1 instead of r11 depending
3767 on what the target routine uses as a base register. If savep && lr
3768 describe saving of r0 into memory slot.
3769 (rs6000_emit_prologue): Correct use of call_used_regs. Fix out of
3770 line calls for AIX ABI.
3771 (rs6000_output_function_prologue): Use rs6000_savres_routine_name to
3772 determine FP save/restore functions.
3773 (rs6000_emit_stack_reset): Handle savres if sp_offset != 0 and
3774 frame_reg_rtx != sp_reg_rtx. Use gen_add3_insn instead of
3775 gen_addsi3.
3776 (rs6000_emit_epilogue): Adjust computation of restore_lr.
3777 Duplicate restoration of LR and execute the appropriate one
3778 depending on whether GPRs are being restored inline. Set r11 from
3779 offsetted frame_reg_rtx instead of sp_reg_rtx; if frame_reg_rtx is
3780 r11, adjust sp_offset. Use gen_add3_insn instead of gen_addsi3.
3781 Fix out of line calls for AIX ABI.
3782 * config/rs6000/rs6000.md (*return_and_restore_fpregs_aix_<mode>):
3783 New insn.
3784 * config/rs6000/spe.md (*save_gpregs_spe): Use explicit match for
3785 register 11.
3786 (*restore_gpregs_spe): Likewise.
3787 (*return_and_restore_gpregs_spe): Likewise.
3788 * config/rs6000/linux64.h (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX):
3789 Define to empty string unconditionally.
3790 * config/rs6000/sysv4.h (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX):
3791 Define to empty string unconditionally.
3792 (GP_SAVE_INLINE, FP_SAVE_INLINE): Handle TARGET_64BIT the same as
3793 !TARGET_64BIT.
3794
3795 2009-09-15 Jan Hubicka <jh@suse.cz>
3796
3797 * doc/invoke.texi (inline-insns-auto): Drop from 60 to 50.
3798 * params.def (inline-insns-auto): Likewise.
3799
3800 2009-09-15 Martin Jambor <mjambor@suse.cz>
3801
3802 * ipa-inline.c (estimate_function_body_sizes): Dump info about
3803 individual statements only at TDF_DETAILS dump level. Format
3804 source for 80 characters per line.
3805
3806 2009-09-15 Christian Bruel <christian.bruel@st.com>
3807
3808 * regrename.c (do_replace): Update REG_DEAD notes.
3809
3810 2009-09-15 Revital Eres <eres@il.ibm.com>
3811
3812 * doc/tm.texi (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Document.
3813 * targhooks.c (default_builtin_support_vector_misalignment):
3814 New builtin function.
3815 * targhooks.h (default_builtin_support_vector_misalignment):
3816 Declare.
3817 * target.h (builtin_support_vector_misalignment):
3818 New field in struct gcc_target.
3819 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Call
3820 new builtin function.
3821 * target-def.h (TARGET_SUPPORT_VECTOR_MISALIGNMENT):
3822 Define.
3823 * config/rs6000/rs6000.c
3824 (rs6000_builtin_support_vector_misalignment): New function.
3825 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Define.
3826
3827 2009-09-15 Jie Zhang <jie.zhang@analog.com>
3828
3829 * config/bfin/bfin.c (length_for_loop): Use NONDEBUG_INSN_P
3830 instead of INSN_P.
3831 (bfin_optimize_loop): Likewise.
3832 (bfin_gen_bundles): Likewise.
3833 (workaround_speculation): Likewise.
3834 (find_load): Return NULL_RTX for debug_insn.
3835
3836 2009-09-15 Uros Bizjak <ubizjak@gmail.com>
3837
3838 * config/alpha/alpha.md (smaxsf3): Disable for IEEE mode.
3839 (sminsf3): Ditto.
3840
3841 2009-09-14 DJ Delorie <dj@redhat.com>
3842
3843 * config/mep/mep.h (JUMP_TABLES_IN_TEXT_SECTION): Define.
3844 * config/mep/mep.c (mep_emit_cbranch): Don't use BEQZ/BNEI in
3845 VLIW mode.
3846
3847 2009-09-14 Richard Henderson <rth@redhat.com>
3848 Jakub Jelinek <jakub@redhat.com>
3849
3850 * builtins.c (expand_builtin_synchronize): Use gimple_build_asm_vec.
3851 * cfgbuild.c (make_edges): Handle asm goto.
3852 * cfglayout.c (fixup_reorder_chain): Likewise.
3853 * cfgrtl.c (patch_jump_insn): Likewise.
3854 * gimple-pretty-print.c (dump_gimple_asm): Likewise.
3855 * gimple.c (gimple_build_asm_1): Add and use nlabels parameter.
3856 (gimple_build_asm_vec): Add and use labels parameter.
3857 (gimple_build_asm): Remove.
3858 (walk_gimple_asm): Walk labels too.
3859 * gimple.def (GIMPLE_ASM): Update docs.
3860 * gimple.h: Update decls.
3861 (struct gimple_statement_asm): Change nc to use unsigned char;
3862 add nl member.
3863 (gimple_asm_nlabels): New.
3864 (gimple_asm_label_op, gimple_asm_set_label_op): New.
3865 * gimplify.c (gimplify_asm_expr): Copy labels from ASM_EXPR
3866 into gimple_build_asm_vec.
3867 * jump.c (mark_jump_label_asm): New.
3868 (mark_jump_label): Use it.
3869 (redirect_jump_1): Handle asm goto.
3870 (invert_jump_1): Soft fail if X is null.
3871 * recog.c (extract_asm_operands): New.
3872 (asm_noperands): Use it; handle asm labels.
3873 (decode_asm_operands): Use extract_asm_operands.
3874 (asm_operand_ok): Properly handle empty string.
3875 * reg-stack.c (get_asm_operands_in_out): Rename from
3876 get_asm_operand_n_inputs; use extract_asm_operands; return both
3877 inputs and outputs by reference; update all callers.
3878 * rtl.def (ASM_OPERANDS): Add label vector as operand 6.
3879 * rtl.h (ASM_OPERANDS_LABEL_VEC): New.
3880 (ASM_OPERANDS_LABEL_LENGTH, ASM_OPERANDS_LABEL): New.
3881 (ASM_OPERANDS_SOURCE_LOCATION): Renumber.
3882 (extract_asm_operands): Declare.
3883 * stmt.c (expand_asm_operands): Add and use labels parameter.
3884 (check_unique_operand_names): Likewise.
3885 (resolve_asm_operand_names, resolve_operand_name_1): Likewise.
3886 (expand_asm_stmt): Handle asm labels.
3887 * tree-cfg.c (make_gimple_asm_edges): New.
3888 (make_edges): Use it.
3889 (cleanup_dead_labels): Handle asm labels.
3890 (is_ctrl_altering_stmt): Likewise.
3891 (gimple_redirect_edge_and_branch): Likewise.
3892 * tree.def (ASM_EXPR): Add 5th operand.
3893 * tree.h (ASM_LABELS): New.
3894 (resolve_asm_operand_names): Update decl.
3895
3896 * c-parser.c (c_parser_asm_statement): Parse asm goto.
3897 (c_parser_asm_goto_operands): New.
3898 * c-tree.h (build_asm_expr): Update decl.
3899 * c-typeck.c (build_asm_expr): Add and use labels parameter.
3900 * doc/extend.texi: Document asm goto.
3901
3902 2009-09-14 Richard Henderson <rth@redhat.com>
3903
3904 * except.h: Update declarations.
3905 (struct pointer_map_t): Forward declare.
3906 (ERT_UNKNOWN, ERT_THROW, ERT_CATCH): Remove.
3907 (struct eh_landing_pad_d, eh_landing_pad): New.
3908 (struct eh_catch_d, eh_catch): New.
3909 (struct eh_region_d): Remove next_region_sharing_label, aka,
3910 label, tree_label, landing_pad, post_landing_pad, resume,
3911 may_contain_throw. Rename region_number to index. Remove
3912 u.eh_catch, u.eh_throw. Rename u.eh_try.eh_catch to first_catch.
3913 Add u.must_not_throw, landing_pads, exc_ptr_reg, filter_reg.
3914 (VEC(eh_landing_pad,gc)): New.
3915 (struct eh_status): Remove last_region_number. Add lp_array,
3916 throw_stmt_table, ttype_data, ehspec_data.
3917 (ehr_next, FOR_ALL_EH_REGION_AT): New.
3918 (FOR_ALL_EH_REGION_FN, FOR_ALL_EH_REGION): New.
3919 * except.c (lang_protect_cleanup_actions): Return tree.
3920 (struct ehl_map_entry): Remove.
3921 (init_eh_for_function): Push zero entries for region and lp_array.
3922 (gen_eh_region): Add to region_array immediately.
3923 (gen_eh_region_catch): Operate on eh_catch objects.
3924 (gen_eh_landing_pad): New.
3925 (get_eh_region_may_contain_throw, get_eh_region_tree_label): Remove.
3926 (get_eh_region_no_tree_label, set_eh_region_tree_label): Remove.
3927 (get_eh_region_from_number, get_eh_region_from_number_fn): New.
3928 (get_eh_landing_pad_from_number_fn): New.
3929 (get_eh_landing_pad_from_number): New.
3930 (get_eh_region_from_lp_number_fn): New.
3931 (get_eh_region_from_lp_number): New.
3932 (expand_resx_stmt, note_eh_region_may_contain_throw): Remove.
3933 (get_exception_pointer, get_exception_filter): Remove.
3934 (collect_eh_region_array, can_be_reached_by_runtime): Remove.
3935 (current_function_has_exception_handlers): Simplify.
3936 (bring_to_root, eh_region_replaceable_by_p): Remove.
3937 (replace_region, hash_type_list, hash_eh_region): Remove.
3938 (eh_regions_equal_p, merge_peers, remove_unreachable_regions): Remove.
3939 (label_to_region_map, num_eh_regions): Remove.
3940 (get_next_region_sharing_label, must_not_throw_labels): Remove.
3941 (find_exception_handler_labels): Remove.
3942 (duplicate_eh_regions_0, find_prev_try): Remove.
3943 (struct duplicate_eh_regions_data): New.
3944 (duplicate_eh_regions_1): Rewrite.
3945 (duplicate_eh_regions): Return a pointer map instead of an
3946 integer offset.
3947 (copy_eh_region_1, copy_eh_region, push_reachable_handler): Remove.
3948 (redirect_eh_edge_to_label): Remove.
3949 (eh_region_outermost): Rewrite using eh_region pointers
3950 instead of integers.
3951 (add_ttypes_entry): Update for ttype_data move to eh_status.
3952 (add_ehspec_entry): Rewrite with VEC instead of varray.
3953 (assign_filter_values): Likewise. Export.
3954 (build_post_landing_pads, connect_post_landing_pads): Remove.
3955 (dw2_build_landing_pads): Rewrite to use lp_array.
3956 (struct sjlj_lp_info, sjlj_find_directly_reachable_regions): Remove.
3957 (sjlj_assign_call_site_values): Rewrite to use lp_array.
3958 (sjlj_emit_dispatch_table, sjlj_build_landing_pads): Likewise.
3959 (sjlj_mark_call_sites): Update for landing pad numbers.
3960 (finish_eh_generation): Rewrite.
3961 (gate_handle_eh): Do nothing for no eh tree.
3962 (pass_rtl_eh): Move up near finish_eh_generation.
3963 (remove_eh_landing_pad): New.
3964 (remove_eh_handler): Export.
3965 (remove_eh_region, remove_eh_handler_and_replace): Remove.
3966 (for_each_eh_label): Rewrite to use lp_array.
3967 (make_reg_eh_region_note): New.
3968 (make_reg_eh_region_note_nothrow_nononlocal): New.
3969 (insn_could_throw_p): New.
3970 (copy_reg_eh_region_note_forward): New.
3971 (copy_reg_eh_region_note_backward): New.
3972 (check_handled, add_reachable_handler): Remove.
3973 (reachable_next_level, foreach_reachable_handler): Remove.
3974 (arh_to_landing_pad, arh_to_label, reachable_handlers): Remove.
3975 (get_eh_region_and_lp_from_rtx): New.
3976 (get_eh_region_from_rtx): New.
3977 (can_throw_internal_1, can_throw_external_1): Remove.
3978 (can_throw_internal): Use get_eh_region_from_rtx.
3979 (can_throw_external): Use get_eh_region_and_lp_from_rtx.
3980 (insn_nothrow_p, can_nonlocal_goto): New.
3981 (expand_builtin_eh_common, expand_builtin_eh_pointer): New.
3982 (expand_builtin_eh_filter, expand_builtin_eh_copy_values): New.
3983 (add_action_record): Use VEC not varray.
3984 (collect_one_action_chain): Update for eh_region changes.
3985 (convert_to_eh_region_ranges): Make static. Use VEC not varray.
3986 Use get_eh_region_and_lp_from_rtx.
3987 (gate_convert_to_eh_region_ranges): New.
3988 (pass_convert_to_eh_region_ranges): Use it.
3989 (push_uleb128, push_sleb128): Use VEC not varray.
3990 (output_one_function_exception_table): Likewise.
3991 (dump_eh_tree): Update for eh_region changes.
3992 (verify_eh_tree): Likewise.
3993 (verify_eh_region, default_init_unwind_resume_libfunc): Remove.
3994 * tree-eh.c: Include target.h.
3995 (add_stmt_to_eh_lp_fn): Rename from add_stmt_to_eh_region_fn.
3996 Don't disallow GIMPLE_RESX; adjust argument check.
3997 (add_stmt_to_eh_lp): Rename from add_stmt_to_eh_region.
3998 (record_stmt_eh_region): Update for landing pad numbers;
3999 generate a landing pad if necessary.
4000 (remove_stmt_from_eh_lp): Rename from remove_stmt_from_eh_region.
4001 (remove_stmt_from_eh_lp_fn): Similarly.
4002 (lookup_stmt_eh_lp_fn): Rename from lookup_stmt_eh_region_fn.
4003 Update for lp numbers; don't special case missing throw_stmt_table.
4004 (lookup_expr_eh_lp): Similarly.
4005 (lookup_stmt_eh_lp): Rename from lookup_stmt_eh_region.
4006 (eh_seq, eh_region_may_contain_throw): New.
4007 (struct leh_state): Add ehp_region.
4008 (struct leh_tf_state): Remove eh_label.
4009 (emit_post_landing_pad): New.
4010 (emit_resx, emit_eh_dispatch): New.
4011 (note_eh_region_may_contain_throw): New.
4012 (frob_into_branch_around): Take eh_region not eh label;
4013 emit eh code into eh_seq.
4014 (honor_protect_cleanup_actions): Early exit for no actions. Don't
4015 handle EXC_PTR_EXPR, FILTER_EXPR. Use gimple_build_eh_must_not_throw,
4016 lower_eh_must_not_throw. Emit code to eh_seq.
4017 (lower_try_finally_nofallthru): Emit eh code to eh_seq.
4018 (lower_try_finally_onedest): Likewise.
4019 (lower_try_finally_copy): Likewise.
4020 (lower_try_finally_switch): Likewise.
4021 (lower_try_finally): Initialize ehp_region.
4022 (lower_catch): Update for eh_catch objects.
4023 (lower_eh_filter): Don't handle must_not_throw.
4024 (lower_eh_must_not_throw): New.
4025 (lower_cleanup): Don't set eh_label.
4026 (lower_eh_constructs_2): Resolve eh builtins.
4027 Handle GIMPLE_EH_MUST_NOT_THROW.
4028 (lower_eh_constructs): Initialize eh_region_may_contain_throw.
4029 Add eh_seq to the end of the function body.
4030 (make_eh_dispatch_edges): New.
4031 (make_eh_edge): Remove.
4032 (make_eh_edges): Simplify for landing pads.
4033 (redirect_eh_edge_1): New.
4034 (redirect_eh_edge): Use it.
4035 (redirect_eh_dispatch_edge): New.
4036 (stmt_could_throw_p): Use a switch. Allow RESX.
4037 (stmt_can_throw_external): Use lookup_stmt_eh_lp.
4038 (stmt_can_throw_internal): Likewise.
4039 (maybe_clean_eh_stmt_fn, maybe_clean_eh_stmt): New.
4040 (maybe_clean_or_replace_eh_stmt): Update for landing pads.
4041 (maybe_duplicate_eh_stmt_fn, maybe_duplicate_eh_stmt): New.
4042 (gate_refactor_eh): New.
4043 (pass_refactor_eh): Use it.
4044 (lower_resx, execute_lower_resx, pass_lower_resx): New.
4045 (lower_eh_dispatch, execute_lower_eh_dispatch): New.
4046 (gate_lower_ehcontrol, pass_lower_eh_dispatch): New.
4047 (remove_unreachable_handlers): Rename from
4048 tree_remove_unreachable_handlers; rewrite for landing pads;
4049 call remove_eh_handler directly.
4050 (remove_unreachable_handlers_no_lp): New.
4051 (unsplit_eh, unsplit_all_eh): New.
4052 (tree_empty_eh_handler_p, all_phis_safe_to_merge): Remove.
4053 (cleanup_empty_eh_merge_phis, cleanup_empty_eh_move_lp): New.
4054 (cleanup_empty_eh_unsplit): New.
4055 (cleanup_empty_eh): Rewrite.
4056 (cleanup_all_empty_eh): New.
4057 (execute_cleanup_eh): Rename from cleanup_eh. Remove unreachable
4058 handlers first. Use unsplit_all_eh, cleanup_all_empty_eh.
4059 (gate_cleanup_eh): New.
4060 (pass_cleanup_eh): Use it.
4061 (verify_eh_edges): Move later in file. Expect one EH edge.
4062 (verify_eh_dispatch_edge): New.
4063
4064 * Makefile.in (FUNCTION_H): Use vecprim.h, not varray.h.
4065 (gtype-desc.o): Add TARGET_H.
4066 (tree.o): Use EXCEPT_H, not except.h.
4067 (cfgbuild.o): Add EXPR_H.
4068 (GTFILES): Add vecprim.h.
4069 * builtins.c (expand_builtin): Handle BUILT_IN_EH_POINTER,
4070 BUILT_IN_EH_FILTER, BUILT_IN_EH_COPY_VALUES.
4071 * builtins.def (BUILT_IN_UNWIND_RESUME, BUILT_IN_EH_POINTER,
4072 BUILT_IN_EH_FILTER, BUILT_IN_EH_COPY_VALUES): New.
4073 * calls.c (emit_call_1): Use make_reg_eh_region_note.
4074 * cfgbuild.c (control_flow_insn_p): Use can_nonlocal_goto; tidy
4075 calls to can_throw_internal.
4076 (rtl_make_eh_edge): Use get_eh_landing_pad_from_rtx.
4077 (make_edges): Don't handle RESX; use can_nonlocal_goto.
4078 * cfgexpand.c (expand_gimple_stmt_1): Don't handle RESX.
4079 (expand_gimple_stmt): Use make_reg_eh_region_note.
4080 (expand_debug_expr): Don't handle EXC_PTR_EXPR and FILTER_EXPR.
4081 (gimple_expand_cfg): Don't call convert_from_eh_region_ranges,
4082 or find_exception_handler_labels.
4083 * cfgrtl.c (rtl_verify_flow_info_1): Don't handle RESX. Assert
4084 there is exacly one EH edge. Use can_nonlocal_goto and
4085 can_throw_internal.
4086 * cgraphunit.c (update_call_expr): Use maybe_clean_eh_stmt_fn.
4087 (cgraph_materialize_all_clones): Use maybe_clean_or_replace_eh_stmt.
4088 * combine.c (can_combine_p, try_combine): Use insn_nothrow_p.
4089 * cse.c (count_reg_usage, insn_live_p): Use insn_could_throw_p.
4090 * dce.c (deletable_insn_p_1): Don't test may_trap_p.
4091 (deletable_insn_p): Use insn_nothrow_p; reorder nonjump insn test.
4092 * dse.c (scan_insn): Use insn_could_throw_p.
4093 * emit-rtl.c (try_split): Use copy_reg_eh_region_note_backward.
4094 * expr.c (expand_expr_real): Use make_reg_eh_region_note.
4095 (expand_expr_real_1): Don't handle RESX, EXC_PTR, or FILTER_EXPR.
4096 * fold-const.c (tree_expr_nonnegative_warnv_p): Don't handle
4097 EXC_PTR_EXPR or FILTER_EXPR.
4098 (tree_expr_nonzero_warnv_p): Likewise.
4099 * function.h: Include vecprim.h, not varray.h
4100 (struct rtl_eh): Remove filter, exc_ptr, built_landing_pad members;
4101 move ttype_data and ehspec_data members to struct eh_status; change
4102 action_record_data member to a VEC.
4103 * gcse.c (hash_scan_set): Use can_throw_internal.
4104 * gengtype.c (open_base_files): Add target.h to gtype-desc.c.
4105 * gimple-iterator.c (gsi_replace): Use maybe_clean_or_replace_eh_stmt.
4106 * gimple-low.c (lower_stmt): Handle GIMPLE_EH_MUST_NOT_THROW.
4107 (block_may_fallthru): Don't handle RESX_EXPR.
4108 * gimple-pretty-print.c (dump_gimple_label): Dump EH_LANDING_PAD_NR.
4109 (dump_gimple_eh_must_not_throw, dump_gimple_eh_dispatch): New.
4110 (dump_gimple_stmt): Dump landing pad information with TDF_EH;
4111 handle GIMPLE_EH_MUST_NOT_THROW, GIMPLE_EH_DISPATCH.
4112 * gimple.c (gss_for_code): Handle GIMPLE_EH_MUST_NOT_THROW,
4113 GIMPLE_EH_DISPATCH, GIMPLE_RESX.
4114 (gimple_size): Likewise.
4115 (gimple_build_eh_dispatch, gimple_build_eh_must_not_throw): New.
4116 (gimple_build_resx): Use gimple_build_with_ops.
4117 (DEFTREECODE): Don't handle EXC_PTR_EXPR, FILTER_EXPR.
4118 (is_gimple_val): Likewise.
4119 (is_gimple_stmt): Remove RESX_EXPR.
4120 * gimple.def (GIMPLE_EH_MUST_NOT_THROW, GIMPLE_EH_DISPATCH): New.
4121 (GIMPLE_RESX): Reorder with other EH constructs.
4122 * gimple.h (struct gimple_statement_eh_mnt): New.
4123 (struct gimple_statement_eh_ctrl): Rename from gimple_statement_resx.
4124 (gimple_eh_filter_must_not_throw): Remove.
4125 (gimple_eh_filter_set_must_not_throw): Remove.
4126 (gimple_eh_must_not_throw_fndecl): New.
4127 (gimple_eh_dispatch_region, gimple_eh_dispatch_set_region): New.
4128 (is_gimple_resx): New.
4129 * gimplify.c (gimplify_expr): Don't handle EXC_PTR_EXPR, RESX_EXPR.
4130 Don't copy EH_FILTER_MUST_NOT_THROW.
4131 * gsstruct.def (GSS_EH_MNT, GSS_EHCONTROL): New.
4132 * ipa-inline.c (estimate_function_body_sizes): Don't try to
4133 handle must_not_throw_labels specially.
4134 * ipa-pure-const.c (check_call): Update debug statement for LP.
4135 * ipa-type-escape.c (check_operand): Don't handle EXC_PTR or FILTER.
4136 * ipa-utils.c (get_base_var): Likewise.
4137 * libfunc.h (LTI_unwind_resume, unwind_resume_libfunc): Remove.
4138 * lower-subreg.c (move_eh_region_note): Remove.
4139 (resolve_simple_move): Use copy_reg_eh_region_note_forward.
4140 * omp-low.c (new_omp_context): Update for eh_lp_nr.
4141 (create_task_copyfn): Likewise.
4142 (maybe_catch_exception): Use gimple_build_eh_filter.
4143 * optabs.c (emit_libcall_block): Update test for no-nonlocal-goto
4144 REG_EH_REGION. Use make_reg_eh_region_note_nothrow_nononlocal.
4145 * passes.c (init_optimization_passes): Add pass_lower_eh_dispatch
4146 and pass_lower_resx.
4147 * print-tree.c (print_node): Dump EH_LANDING_PAD_NR.
4148 * recog.c (peephole2_optimize): Use copy_reg_eh_region_note_backward,
4149 can_throw_internal, can_nonlocal_goto.
4150 * reload1.c (fixup_eh_region_note): Use insn_could_throw_p,
4151 copy_reg_eh_region_note_forward.
4152 (emit_input_reload_insns): Use copy_reg_eh_region_note_forward.
4153 (emit_output_reload_insns): Likewise.
4154 (copy_eh_notes): Remove.
4155 * rtl.def (RESX): Remove.
4156 * rtl.h: Update declarations.
4157 * sese.c (graphite_copy_stmts_from_block): Use maybe_duplicate_eh_stmt.
4158 * tree-cfg.c (make_edges): Handle GIMPLE_EH_DISPATCH.
4159 (update_eh_label): Remove.
4160 (cleanup_dead_labels_eh): New.
4161 (cleanup_deal_labels): Use it instead of update_eh_label.
4162 (gimple_merge_blocks): Update landing pad data structure when
4163 removing a landing pad label.
4164 (remove_useless_stmts_tc): Remove gimple_eh_filter_must_not_throw
4165 test; handle GIMPLE_EH_MUST_NOT_THROW.
4166 (is_ctrl_altering_stmt): Handle GIMPLE_EH_DISPATCH.
4167 (verify_gimple_assign_single): Don't handle EXC_PTR or FILTER_EXPR.
4168 (verify_types_in_gimple_stmt): Handle GIMPLE_EH_DISPATCH.
4169 (verify_stmt): Likewise. Verify landing pads.
4170 (gimple_redirect_edge_and_branch): Handle GIMPLE_EH_DISPATCH.
4171 (gimple_duplicate_bb): Use maybe_duplicate_eh_stmt.
4172 (struct move_stmt_d): Add eh_map.
4173 (move_stmt_eh_region_nr, move_stmt_eh_region_tree_nr): New.
4174 (move_stmt_r): Remap eh region numbers in builtin calls,
4175 resx and eh_dispatch.
4176 (move_block_to_fn): Remove eh_offset parameter. Use
4177 maybe_duplicate_eh_stmt_fn.
4178 (find_outermost_region_in_block): Operate on eh_region pointers
4179 instead of region numbers.
4180 (move_sese_region_to_fn): Expect eh_map instead of eh_offset from
4181 duplicate_eh_regions.
4182 * tree-cfgcleanup.c (tree_forwarder_block_p): Move entry block edge
4183 test earlier. Disallow EH landing pads.
4184 * tree-cfa.c (create_tree_common_ann): Don't set ann->rn.
4185 * tree-flow.h: Update declarations.
4186 (struct tree_ann_common_d): Replace rn with lp_nr.
4187 * tree-inline.c (copy_tree_body_r): Don't handle RESX_EXPR.
4188 (remap_eh_region_nr, remap_eh_region_tree_nr): New.
4189 (remap_gimple_stmt): Remap eh region numbers in builtin calls,
4190 resx and eh_dispatch.
4191 (copy_bb): Use maybe_duplicate_eh_stmt_fn.
4192 (copy_edges_for_bb): Use make_eh_dispatch_edges.
4193 (copy_cfg_body): Expect eh_map instead of eh_region_offset
4194 from duplicate_eh_regions.
4195 (estimate_num_insns): Don't handle EXC_PTR_EXPR or FILTER_EXPR;
4196 update RESX; handle EH_DISPATCH.
4197 (expand_call_inline): Set eh_lp_nr, not eh_region.
4198 (maybe_inline_call_in_expr): Likewise.
4199 * tree-inline.h (struct copy_body_data): Replace eh_region with
4200 eh_lp_nr, eh_region_offset with eh_map.
4201 * tree-optimize.c (execute_fixup_cfg): Use maybe_clean_eh_stmt.
4202 * tree-pass.h (pass_lower_eh_dispatch, pass_lower_resx): New.
4203 * tree-pretty-print.c (dump_generic_node): Don't handle
4204 EXC_PTR_EXPR, FILTER_EXPR, RESX_EXPR.
4205 * tree-sra.c (scan_function): Use maybe_clean_eh_stmt.
4206 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Don't handle
4207 EXC_PTR_EXPR, FILTER_EXPR.
4208 * tree-ssa-operands.c (get_expr_operands): Likewise.
4209 * tree-ssa-propagate.c (valid_gimple_rhs_p): Likewise.
4210 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
4211 (ao_ref_init_from_vn_reference): Likewise.
4212 * tree-ssa-sink.c (statement_sink_location): Likewise.
4213 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
4214 (mark_virtual_phi_result_for_renaming): Export. Tidy.
4215 * tree-ssa-pre.c (get_or_alloc_expr_for): Don't handle
4216 EXC_PTR_EXPR, FILTER_EXPR.
4217 (is_exception_related): Remove.
4218 (compute_avail): Don't call it.
4219 * tree-ssa-structalias.c: Remove VEC definitions for int and unsigned.
4220 * tree.c (find_decls_types_in_eh_region): Update for eh_region changes.
4221 (find_decls_types_in_node): Use FOR_ALL_EH_REGION_FN.
4222 (build_common_builtin_nodes): Add enable_cxa_end_cleanup parameter.
4223 Build EH builtins.
4224 (build_resx): Remove.
4225 * tree.def (EXC_PTR_EXPR, FILTER_EXPR, RESX_EXPR): Remove.
4226 * tree.h: Update declarations.
4227 (EH_FILTER_MUST_NOT_THROW): Remove.
4228 (struct tree_label_decl): Add eh_landing_pad_nr.
4229 (EH_LANDING_PAD_NR): New.
4230 * value-prof.c (gimple_ic): Tidy variable names. Update for
4231 landing pad numbers.
4232 (gimple_stringop_fixed_value): Tidy variable names. Assert
4233 that neither call stmt can throw.
4234 * vecprim.h (uchar): New.
4235 (VEC(uchar,heap), VEC(uchar,gc)): New.
4236
4237 * c-common.c (c_define_builtins): Update call to
4238 build_common_builtin_nodes.
4239 * c-parser.c (c_parse_file): Don't call
4240 default_init_unwind_resume_libfunc.
4241
4242 2009-09-14 Richard Sandiford <rdsandiford@googlemail.com>
4243
4244 * config/mips/mips-protos.h (mips_cfun_has_cprestore_slot_p): Declare.
4245 (mips_cprestore_address_p): Likewise.
4246 (mips_save_gp_to_cprestore_slot): Likewise.
4247 (mips_restore_gp): Rename to...
4248 (mips_restore_gp_from_cprestore_slot): ...this.
4249 (mips_must_initialize_gp_p): Declare.
4250 (mips_emit_save_slot_move): Likewise.
4251 (mips_output_load_label): Return nothing.
4252 (mips_eh_uses): Declare.
4253 * config/mips/mips.h (TARGET_SPLIT_CALLS): Require epilogue_completed.
4254 (TARGET_CPRESTORE_DIRECTIVE): New macro.
4255 (TARGET_ABSOLUTE_JUMPS): Likewise.
4256 (EH_USES): Likewise.
4257 (FIRST_PSEUDO_REGISTER): Update comment.
4258 (MIPS_ABSOLUTE_JUMP): New macro, extracted from...
4259 (MIPS_CALL): ...here.
4260 (REGISTER_NAMES): Add $cprestore.
4261 * config/mips/mips.c (machine_function): Remove has_gp_insn_p.
4262 Add load_label_length, has_inflexible_gp_insn_p,
4263 has_flexible_gp_insn_p, must_initialize_gp_p and
4264 must_restore_gp_when_clobbered_p.
4265 (mips_expand_call): Don't generate split instructions here.
4266 (mips_split_call): Update the call to mips_restore_gp after
4267 the above name change.
4268 (mips16_cfun_returns_in_fpr_p): Move earlier in file.
4269 (mips_find_gp_ref): New function.
4270 (mips_insn_has_inflexible_gp_ref_p): Likewise.
4271 (mips_cfun_has_inflexible_gp_ref_p): Likewise.
4272 (mips_insn_has_flexible_gp_ref_p): Likewise.
4273 (mips_cfun_has_flexible_gp_ref_p): Likewise.
4274 (mips_function_has_gp_insn): Delete.
4275 (mips_global_pointer): Drop the df_regs_ever_live_p check.
4276 Use the new functions above. Only return INVALID_REGNUM
4277 for TARGET_ABSOLUTE_JUMPS.
4278 (mips_must_initialize_gp_p): New function.
4279 (mips_get_cprestore_base_and_offset): New function, extracted from...
4280 (mips_cprestore_slot): ...here. Take a bool parameter.
4281 (mips_cfun_has_cprestore_slot_p): New function.
4282 (mips_cprestore_address_p): Likewise.
4283 (mips_save_gp_to_cprestore_slot): Likewise.
4284 (mips_restore_gp): Rename to...
4285 (mips_restore_gp_from_cprestore_slot): ...this. Assert
4286 epilogue_completed. Update the call to mips_cprestore_slot.
4287 Test cfun->machine->must_restore_gp_when_clobbered_p.
4288 (mips_direct_save_slot_move_p): New function.
4289 (mips_emit_save_slot_move): Likewise.
4290 (mips_output_cplocal): Test mips_must_initialize_gp_p () instead
4291 of cfun->machine->global_pointer.
4292 (mips_output_function_prologue): Check mips_must_initialize_gp_p ().
4293 (mips_save_reg): Use mips_emit_save_slot_move.
4294 (mips_expand_prologue): Set must_initialize_gp_p.
4295 Use mips_cfun_has_cprestore_slot_p. Use gen_potential_cprestore
4296 for all cprestore saves. Emit a use_cprestore instruction after
4297 setting up the cprestore slot.
4298 (mips_restore_reg): Use mips_emit_save_slot_move.
4299 (mips_process_load_label): New function.
4300 (mips_load_label_length): Likewise.
4301 (mips_output_load_label): Don't return asm: output it here instead.
4302 Use mips_process_load_label.
4303 (mips_adjust_insn_length): Adjust the length of branch instructions
4304 that have length MAX_PIC_BRANCH_LENGTH.
4305 (mips_output_conditional_branch): Update the call to
4306 mips_output_load_label. Assume the branch target is OPERANDS[0]
4307 rather than OPERANDS[1]. Use MIPS_ABSOLUTE_JUMP for absolute jumps.
4308 (mips_output_order_conditional_branch): Swap the meaning of
4309 OPERANDS[0] and OPERANDS[1].
4310 (mips_variable_issue): Don't count ghost instructions.
4311 (mips_expand_ghost_gp_insns): New function.
4312 (mips_reorg): Rerun mips_reorg_process_insns if it returns true.
4313 (mips_output_mi_thunk): Set must_initialize_gp_p.
4314 (mips_eh_uses): New function.
4315 * config/mips/predicates.md (cprestore_save_slot_operand)
4316 (cprestore_load_slot_operand): New predicates.
4317 * config/mips/mips.md (UNSPEC_POTENTIAL_CPRESTORE): New unspec.
4318 (UNSPEC_MOVE_GP): Likewise.
4319 (UNSPEC_CPRESTORE, UNSPEC_RESTORE_GP, UNSPEC_EH_RETURN)
4320 (UNSPEC_CONSTTABLE_INT, UNSPEC_CONSTTABLE_FLOAT): Bump to make room.
4321 (CPRESTORE_SLOT_REGNUM): New register.
4322 (MAX_PIC_BRANCH_LENGTH): New constant.
4323 (jal_macro): Use MIPS_ABSOLUTE_JUMPS.
4324 (length): Use MAX_PIC_BRANCH_LENGTH as a placeholder for PIC long
4325 branches. Fix commentary.
4326 (loadgp_newabi_<mode>): Change from unspec_volatile to unspec.
4327 Only split if mips_must_initialize_gp_p; expand to nothing otherwise.
4328 Change type to "ghost".
4329 (loadgp_absolute_<mode>): Likewise.
4330 (loadgp_rtp_<mode>): Likewise.
4331 (copygp_mips16): Likewise.
4332 (loadgp_blockage): Remove redundant mode attribute.
4333 (potential_cprestore): New instruction.
4334 (cprestore): Turn into an unspec set.
4335 (use_cprestore): New instruction.
4336 (*branch_fp): Swap operands 0 and 1. Remove redundant mode attribute.
4337 (*branch_fp_inverted): Likewise.
4338 (*branch_order<mode>): Likewise.
4339 (*branch_order<mode>_inverted): Likewise.
4340 (*branch_equality<mode>): Likewise.
4341 (*branch_equality<mode>_inverted): Likewise.
4342 (*branch_bit<bbv><mode>): Likewise.
4343 (*branch_bit<bbv><mode>_inverted): Likewise.
4344 (*branch_equality<mode>_mips16): Remove redundant mode.
4345 (jump): Turn into a define_expand.
4346 (*jump_absolute): New instruction.
4347 (*jump_pic): Likewise.
4348 (*jump_mips16): Rename previously-unnamed pattern. Remove
4349 redundant mode attribute.
4350 (restore_gp): Split on epilogue_completed rather than
4351 reload_completed. Change type to "ghost".
4352 (move_gp<mode>): New instruction.
4353 * config/mips/mips-dsp.md (mips_bposge): Swap operands 0 and 1.
4354 Remove redundant mode attribute.
4355 * config/mips/mips-ps-3d.md (bc1any4t): Likewise.
4356 (bc1any4f, bc1any2t, bc1any2f): Likewise.
4357 (*branch_upper_lower, *branch_upper_lower_inverted): Likewise.
4358
4359 2009-09-14 Michael Meissner <meissner@linux.vnet.ibm.com>
4360
4361 PR target/41210
4362 * config/rs6000/rs6000.c (rs6000_function_value): V2DF and V2DI
4363 are returned in the same register (vs34 or v2) that Altivec vector
4364 types are returned in.
4365 (rs6000_libcall_value): Ditto.
4366
4367 PR target/41331
4368 * config/rs6000/rs6000.c (rs6000_emit_move): Use gen_add3_insn
4369 instead of explicit addsi3/adddi3 calls.
4370 (rs6000_split_multireg_move): Ditto.
4371 (rs6000_emit_allocate_stack): Ditto.
4372 (rs6000_emit_prologue): Ditto.
4373 (rs6000_output_mi_thunk): Ditto.
4374
4375 * config/rs6000/rs6000.md (bswapdi*): Don't assume the pointer
4376 size is 64 bits if we can use 64-bit registers.
4377
4378 2009-09-14 Bernd Schmidt <bernd.schmidt@analog.com>
4379
4380 * config/bfin/bfin.c (bfin_longcall_p): Don't use short calls for weak
4381 symbols.
4382
4383 From Jie Zhang <jie.zhang@analog.com>:
4384 * config/bfin/bfin.c (bfin_expand_prologue): Ask do_link to
4385 save FP and RETS with saveall attribute.
4386 (bfin_expand_epilogue): Ask do_unlink to restore FP and RETS
4387 with saveall attribute.
4388
4389 * config/bfin/bfin.c (bfin_expand_builtin,
4390 case BFIN_BUILTIN_MULT_1X32X32): Force constants to registers for the
4391 operands.
4392
4393 From Jie Zhang <jie.zhang@analog.com>:
4394 * config/bfin/bfin.c (bfin_expand_builtin): Initialize icodes
4395 before use in two places.
4396 * config/bfin/bfin.md (AREG): Define mode iterator.
4397 (reload_in, reload_out): Use mode iterator AREG.
4398
4399 2009-09-14 Richard Guenther <rguenther@suse.de>
4400
4401 PR middle-end/41350
4402 * dwarf2out.c (dwarf2out_begin_prologue): Adjust non-CFI asm
4403 EH personality path.
4404
4405 2009-09-13 Richard Guenther <rguenther@suse.de>
4406 Rafael Avila de Espindola <espindola@google.com>
4407
4408 * langhooks-def.h (LANG_HOOKS_EH_RUNTIME_TYPE): Define.
4409 (LANG_HOOKS_EH_PERSONALITY): Likewise.
4410 (LANG_HOOKS_INITIALIZER): Adjust.
4411 (lhd_pass_through_t): Declare.
4412 * langhooks.h (struct lang_hooks): Add eh_runtime_type and
4413 eh_personality.
4414 * langhooks.c (lhd_pass_through_t): New function.
4415 * dwarf2out.c (output_call_frame_info, dwarf2out_do_cfi_startproc,
4416 dwarf2out_begin_prologue): Use personality from current_function_decl.
4417 * expr.h (get_personality_function): Declare.
4418 * expr.c (get_personality_function): New function.
4419 (build_personality_function): Likewise.
4420 * libfuncs.h (libfunc_index): Remove LTI_eh_personality.
4421 (eh_personality_libfunc): Remove.
4422 * optabs.c (build_libfunc_function): New function split out from ...
4423 (init_one_libfunc): ... here.
4424 * tree.h (DECL_FUNCTION_PERSONALITY): New.
4425 (tree_function_decl): Add personality.
4426 (lhd_gcc_personality): Declare.
4427 (build_personality_function): Likewise.
4428 * tree.c (gcc_eh_personality_decl): New.
4429 (lhd_gcc_personality): New function.
4430 * except.h (lang_eh_runtime_type): Remove.
4431 (enum eh_personality_kind): New.
4432 (build_personality_function): Declare.
4433 (function_needs_eh_personality): Declare.
4434 * except.c (lang_eh_runtime_type): Remove.
4435 (function_needs_eh_personality): New function.
4436 (add_type_for_runtime): Call lang_hooks.type_for_runtime instead.
4437 (sjlj_emit_function_enter, output_function_exception_table):
4438 Use personality from current_function_decl.
4439 * tree-eh.c (lower_eh_constructs): Set DECL_FUNCTION_PERSONALITY.
4440 * tree-inline.c (tree_can_inline_p): Do not inline across different
4441 EH personalities.
4442 (expand_call_inline): Likewise. Adjust the callers EH personality.
4443 (tree_function_versioning): Copy DECL_FUNCTION_PERSONALITY.
4444 * cgraph.c (cgraph_add_new_function): Set DECL_FUNCTION_PERSONALITY.
4445 * Makefile.in (cgraph.o): Add $(EXCEPT_H) dependency.
4446 (c-parser.o): Likewise
4447 * c-tree.h (c_eh_initialized_p): Remove.
4448 (c_maybe_initialize_eh): Likewise.
4449 * c-decl.c (finish_decl): Don't call c_maybe_initialize_eh.
4450 (finish_decl): Don't call c_maybe_initialize_eh.
4451 (c_eh_initialized_p): Remove.
4452 (c_maybe_initialize_eh): Likewise.
4453 * c-parser.c (c_parser_omp_construct): Likewise.
4454 (c_parse_file): Initialize exception handling.
4455
4456 2009-09-13 Kai Tietz <kai.tietz@onevision.com>
4457
4458 * config.gcc (tm_file): Remove i386/biarch32.h
4459 for i?86-w64-mingw* case.
4460 (i?86-*-mingw* andx86_64-*-mingw*): Add multilib
4461 support.
4462 * config.host: Set for x64 mingw the option
4463 use_long_long_for_widest_fast_int to yes.
4464
4465 2009-09-13 Eric Botcazou <ebotcazou@adacore.com>
4466
4467 * tree.h (DECL_IGNORED_P): Document further effect for FUNCTION_DECL.
4468 * dbxout.c (dbxout_function_end): Do not test DECL_IGNORED_P.
4469 (dbxout_begin_function): Likewise.
4470 * final.c (dwarf2_debug_info_emitted_p): New predicate.
4471 (final_start_function): Do not emit debug info if DECL_IGNORED_P is
4472 set on the function.
4473 (final_end_function): Likewise.
4474 (final_scan_insn): Likewise.
4475 (rest_of_handle_final): Likewise.
4476 * varasm.c (assemble_start_function): Likewise.
4477 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
4478
4479 2009-09-12 Jason Merrill <jason@redhat.com>
4480
4481 * dbgcnt.c (dbg_cnt_process_single_pair): constify.
4482 * opts.c (common_handle_option): constify.
4483
4484 2009-09-12 Gerald Pfeifer <gerald@pfeifer.com>
4485
4486 * doc/install.texi (avr): Remove obsolete reference site.
4487
4488 2009-09-12 Gerald Pfeifer <gerald@pfeifer.com>
4489
4490 * doc/install.texi (Binaries): Adjust AIX link.
4491
4492 2009-09-12 Akim Demaille <demaille@gostai.com>
4493
4494 * doc/invoke.texi (-fstrict-aliasing): Correct two examples.
4495 Use an imperative sentence.
4496
4497 2009-09-11 Richard Henderson <rth@redhat.com>
4498
4499 * gsstruct.def (DEFGSSTRUCT): Remove printable-name argument; add
4500 structure-name and has-tree-operands arguments; update all entries.
4501 * gimple.def (DEFGSCODE): Replace 3rd argument with GSS_symbol;
4502 update all entries.
4503 * gimple.c (gimple_ops_offset_): Use HAS_TREE_OP argument.
4504 (gsstruct_code_size): New.
4505 (gss_for_code_): New.
4506 (gss_for_code): Remove.
4507 (gimple_size): Rewrite using gsstruct_code_size.
4508 (gimple_statement_structure): Move to gimple.h.
4509 * gimple.h (gimple_ops_offset_, gss_for_code_): Declare.
4510 (gss_for_code, gimple_statement_structure): New.
4511 (gimple_ops): Use new arrays; tidy.
4512
4513 2009-09-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4514
4515 * config/pa/predicates.md (symbolic_operand): Require a CONST symbolic
4516 operand to be a PLUS expression.
4517 * config/pa/pa.c (pa_secondary_reload): Likewise.
4518
4519 2009-09-11 Jakub Jelinek <jakub@redhat.com>
4520
4521 * combine.c (propagate_for_debug_subst): Call wrap_constant on top.
4522
4523 * print-rtl.c (print_rtx): Use JUMP_LABEL (in_rtx) instead of
4524 XEXP (in_rtx, 8).
4525
4526 2009-09-11 Bernd Schmidt <bernd.schmidt@analog.com>
4527
4528 From Jie Zhang <jie.zhang@analog.com>:
4529 * doc/extend.texi (node Function Attributes): Document l2
4530 function attribute.
4531 (node Blackfin Variable Attributes): Document l2 variable attributes.
4532
4533 2009-09-11 Loren J. Rittle <ljrittle@acm.org>
4534
4535 * config.gcc (*-*-freebsd*): Enable default_use_cxa_atexit
4536 to match the system compiler's configuration at inflection point.
4537 Add comment to remark a remaining difference with system compiler.
4538
4539 * configure.ac (*-*-freebsd*): Enable check for __stack_chk_fail.
4540 * configure: Regenerate.
4541
4542 2009-09-11 Bernd Schmidt <bernd.schmidt@analog.com>
4543
4544 From Jie Zhang <jie.zhang@analog.com>:
4545 * config/bfin/bfin.c (bfin_expand_call): Handle L2 functions.
4546 (bfin_handle_l2_attribute): New.
4547 (bfin_attribute_table): Add l2 attribute.
4548
4549 2009-09-11 Michael Matz <matz@suse.de>
4550
4551 PR middle-end/41275
4552 * tree-inline.c (remap_decls): Don't put DECL_EXTERNAL decls
4553 on the local_decls list.
4554
4555 2009-09-11 Alexandre Oliva <aoliva@redhat.com>
4556
4557 PR debug/41276
4558 PR debug/41307
4559 * cselib.c (cselib_expand_value_rtx_cb): Document callback
4560 interface.
4561 (cselib_expand_value_rtx_1): Use callback for SUBREGs. Adjust
4562 for VALUEs, to implement the documented interface.
4563 * var-tracking.c (vt_expand_loc_callback): Handle SUBREGs.
4564 Adjust for VALUEs and anything else, to implement the
4565 documented interface.
4566
4567 2009-09-10 Nathan Froyd <froydnj@codesourcery.com>
4568
4569 * config/rs6000/rs6000.h (DATA_ALIGNMENT): Check that we are dealing
4570 with actual SPE/paired vector modes before using 64-bit alignment.
4571 Check that TYPE is a REAL_TYPE for TARGET_E500_DOUBLE.
4572
4573 2009-09-10 DJ Delorie <dj@redhat.com>
4574
4575 * config/mep/mep.md (eh_epilogue): Defer until after epilogue is
4576 emitted.
4577
4578 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): New.
4579 * config/mep/mep.c (mep_legitimate_constant_p): New.
4580 * config/mep/mep-protos.h: Prototype it.
4581
4582 2009-09-10 Richard Henderson <rth@redhat.com>
4583
4584 * print-rtl.c (print_rtx): Fix JUMP_LABEL index.
4585
4586 2009-09-10 Jason Merrill <jason@redhat.com>
4587
4588 * tree.c (chain_index): New fn.
4589 * tree.h: Declare it.
4590
4591 2009-09-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4592
4593 * config/sol2-c.c (cmn_err_length_specs): Initialize
4594 scalar_identity_flag.
4595
4596 2009-09-10 Richard Henderson <rth@redhat.com>
4597
4598 * tree.h (struct tree_decl_common): Move align member earlier;
4599 move label_decl_uid member ...
4600 (struct tree_label_decl): ... here.
4601 (LABEL_DECL_UID): Update to match.
4602
4603 * tree-cfg.c (dump_function_to_file): Dump eh tree with TDF_EH,
4604 not TDF_DETAILS.
4605
4606 * tree-cfg.c (gimple_redirect_edge_and_branch): Do
4607 gimple_try_redirect_by_replacing_jump test after no-op and EH tests.
4608
4609 * tree-cfg.c (split_edge_bb_loc): Don't disallow placement at
4610 dest_prev if the edge is complex.
4611
4612 * tree-cfg.c (is_ctrl_stmt): Use a switch.
4613
4614 * tree-cfg.c (gimple_can_merge_blocks_p): Move label and
4615 loop latch tests earlier.
4616
4617 * gimple-iterator.c (gimple_find_edge_insert_loc): Insert
4618 before GIMPLE_RETURN, not after its predecessor; insert
4619 before GIMPLE_RESX.
4620
4621 * gimple-iterator.c (gimple_find_edge_insert_loc): Use
4622 gimple_seq_empty_p to test for no PHI nodes.
4623 * tree-cfg.c (split_critical_edges): Likewise.
4624
4625 * c-common.h (c_dialect_cxx, c_dialect_objc): Boolify.
4626
4627 2009-09-10 Hariharan Sandanagobalane <hariharan@picochip.com>
4628
4629 * final.c (shorten_branches) : Ignore DEBUG_INSN_P instructions
4630 introduced by the VTA branch merge.
4631
4632 2009-09-10 Uros Bizjak <ubizjak@gmail.com>
4633
4634 * ira-conflicts.c: Use fputs or putc instead of fprintf
4635 where appropriate.
4636 * cfg.c: Ditto.
4637 * toplev.c: Ditto.
4638 * tree-switch-conversion.c: Ditto.
4639
4640 2009-09-10 Hariharan Sandanagobalane <hariharan@picochip.com>
4641
4642 * config/picochip/picochip.c : Ignore DEBUG_INSN_P instructions
4643 introduced by the VTA branch merge.
4644
4645 2009-09-10 Uros Bizjak <ubizjak@gmail.com>
4646
4647 Revert:
4648 2009-09-09 Uros Bizjak <ubizjak@gmail.com>
4649
4650 PR rtl-optimization/39779
4651 * expr.c (convert_modes): Return when mode == oldmode after
4652 CONST_INTs are processed.
4653
4654 2009-09-10 Nick Clifton <nickc@redhat.com>
4655
4656 * config/mep/mep.c (mep_encode_section_info): Copy weakness
4657 attribute and referring decl when creating renamed symbol.
4658
4659 2009-09-10 Richard Guenther <rguenther@suse.de>
4660
4661 PR middle-end/41257
4662 * cgraphunit.c (cgraph_emit_thunks): Emit thunks only for
4663 reachable nodes.
4664 (cgraph_finalize_compilation_unit): Compute reachability
4665 before emitting thunks. Properly process aliases before
4666 possibly removing unreachable nodes.
4667
4668 2009-09-10 Richard Guenther <rguenther@suse.de>
4669
4670 PR middle-end/41254
4671 * tree.c (struct free_lang_data_d): Add worklist member.
4672 (find_decls_types_r): Push onto the worklist instead of recursing.
4673 Handle TREE_BINFOs properly.
4674 (find_decls_types): New function wrapped around find_decls_types_r
4675 to process the worklist.
4676 (find_decls_types_in_eh_region): Use it.
4677 (find_decls_types_in_node): Likewise.
4678 (find_decls_types_in_var): Likewise.
4679 (free_lang_data_in_cgraph): Likewise. Free the worklist.
4680 * tree.h (RECORD_OR_UNION_TYPE_P): New.
4681 (AGGREGATE_TYPE_P): Adjust.
4682
4683 2009-09-09 Jason Merrill <jason@redhat.com>
4684
4685 * configure.ac: Check glibc version even if we have an in-tree
4686 assembler.
4687
4688 2009-09-09 Anthony Green <green@moxielogic.com>
4689
4690 * config/moxie/moxie.md (*movsi, *movhi, *movqi): Use xor to load
4691 the constant 0 when appropriate.
4692 * config/moxie/constraints.md: Add constraint O.
4693
4694 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Adjust
4695 to pass up to 6 32-bit argument values in registers.
4696 (moxie_function_arg): Ditto.
4697 (moxie_arg_partial_bytes): Ditto.
4698 * config/moxie/moxie.h (FUNCTION_ARG_ADVANCE): Ditto.
4699 (REG_PARM_STACK_SPACE): Ditto.
4700 (FUNCTION_ARG_REGNO_P): Ditto.
4701
4702 * config/moxie/moxie.c (moxie_expand_prologue): Use dec
4703 instruction to allocate stack space.
4704
4705 2009-09-09 Segher Boessenkool <segher@kernel.crashing.org>
4706
4707 * config/rs6000/rs6000.md (bswapdi2_64bit): Fix
4708 unnecessarily stringent constraints. Fix address
4709 calculation in the splitters.
4710
4711 2009-09-09 Uros Bizjak <ubizjak@gmail.com>
4712
4713 PR rtl-optimization/39779
4714 * expr.c (convert_modes): Return when mode == oldmode after
4715 CONST_INTs are processed.
4716
4717 2009-09-09 Kai Tietz <kai.tietz@onevision.com>
4718
4719 PR/41315
4720 * config/i386.c (ix86_can_use_return_insn_p): Check for padding0, too.
4721 (ix86_expand_prologue): Take frame.padding0 into logic of
4722 to_allocate checks.
4723 (ix86_expand_epilogue): Likewise.
4724
4725 2009-09-09 Jakub Jelinek <jakub@redhat.com>
4726
4727 * config/t-slibgcc-elf-ver (SHLIB_MAKE_SOLINK, SHLIB_INSTALL_SOLINK):
4728 New variables.
4729 (SHLIB_LINK, SHLIB_INSTALL): Use them.
4730 * config/t-slibgcc-libgcc: New file.
4731 * config.gcc (powerpc*-*-linux*, powerpc*-*-gnu*): Use it.
4732
4733 2009-09-09 Martin Jambor <mjambor@suse.cz>
4734
4735 PR tree-optimization/41089
4736 * tree-sra.c (find_var_candidates): Do not consider va_lists in
4737 early SRA.
4738
4739 2009-09-09 Richard Henderson <rth@redhat.com>
4740
4741 * gimple.h (CASE_GIMPLE_OMP): New.
4742 (is_gimple_omp): Use it.
4743 * tree-cfg.c (is_ctrl_altering_stmt): Likewise.
4744 (verify_gimple_debug): Likewise.
4745
4746 2009-09-09 Richard Guenther <rguenther@suse.de>
4747
4748 PR tree-optimization/41101
4749 * tree-ssa-pre.c (maximal_set): Remove.
4750 (compute_antic_aux): Treat the maximal set as implicitly all ones.
4751 Defer all blocks we didn't visit at least one successor.
4752 (add_to_exp_gen): Do not add to the maximal set.
4753 (make_values_for_phi): Likewise.
4754 (compute_avail): Likewise.
4755 (init_pre): Do not allocate the maximal set.
4756 (execute_pre): Do not dump it.
4757
4758 2009-09-09 Martin Jambor <mjambor@suse.cz>
4759
4760 * tree-cfg.c (verify_gimple_phi): Check that gimple_phi_result is
4761 an SSA_NAME rather than a is_gimple_variable.
4762
4763 2009-09-09 Richard Guenther <rguenther@suse.de>
4764
4765 PR middle-end/41317
4766 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Remove
4767 code dealing with plain pointer bases.
4768 (maybe_fold_offset_to_reference): Likewise.
4769 (maybe_fold_stmt_addition): Adjust.
4770
4771 2009-09-09 Richard Guenther <rguenther@suse.de>
4772
4773 * tree.c (free_lang_data_in_type): Do not free the type variant
4774 chains.
4775 (free_lang_data): Merge char_type_node with its properly signed
4776 variant.
4777 (pass_ipa_free): Collect after freeing language specific data.
4778
4779 2009-09-09 Michael Matz <matz@suse.de>
4780
4781 PR middle-end/41268
4782 * cfgexpand.c (expand_gimple_stmt_1): Use an int for storing
4783 SUBREG_PROMOTED_UNSIGNED_P, instead of a bool.
4784 * rtl.h (struct rtx, SUBREG_PROMOTED_UNSIGNED_P): Update comments
4785 to reflect reality.
4786
4787 2009-09-08 DJ Delorie <dj@redhat.com>
4788
4789 * config/mep/mep.c (conversions[]): Add "ml" pattern.
4790
4791 2009-09-04 Jason Merrill <jason@redhat.com>
4792
4793 * tree.c (tree_find_value): Remove.
4794 * tree.h: Remove prototype.
4795 * varasm.c (assemble_external): Use value_member instead.
4796
4797 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
4798
4799 * toplev.c (process_options): Choose default debugging type when
4800 gtoggle enables debug info and type is unset.
4801
4802 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
4803
4804 PR debug/41276
4805 PR debug/41307
4806 * cselib.c (cselib_expand_value_rtx_1): Don't return copy of
4807 invalid subreg.
4808
4809 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
4810
4811 * configure: Rebuilt with modified libtool.m4.
4812
4813 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
4814
4815 PR debug/41229
4816 PR debug/41291
4817 PR debug/41300
4818 * tree-ssa.c (execute_update_addresses_taken): Update debug insns.
4819
4820 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
4821
4822 * tree-ssa-loop-ivopts.c (get_phi_with_result): Remove.
4823 (remove_statement): Likewise.
4824 (rewrite_use_nonlinear_expr): Adjust.
4825 (remove_unused_ivs): Collect SSA NAMEs to remove and call...
4826 * tree-ssa.c (release_defs_bitset): ... this. New.
4827 * tree-flow.h (release_defs_bitset): Declare.
4828
4829 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
4830
4831 PR debug/41232
4832 * tree-ssa-phiopt.c (minmax_replacement): Skip debug stmts
4833 in the middle block.
4834
4835 2009-09-08 Kai Tietz <kai.tietz@onevision.com>
4836
4837 * tree-ssa-reassoc.c (find_operand_rank): Cast pointer
4838 via intptr_t to long type.
4839 (insert_operand_rank): Cast long type via intptr_t to
4840 pointer type.
4841 * genattrtab.c (RTL_HASH): Use intptr_t to cast from
4842 pointer to scalar.
4843 * c-pretty-print.c (pp_c_tree_decl_identifier): Cast
4844 from pointer to unsigned via uintptr_t.
4845
4846 * configure.ac (GCC_STDINT_TYPES): Initialize intptr_t,
4847 uintptr_t, HAVE_INTTYPES_H, HAVE_STDINT_H, HAVE_UINTPTR_T,
4848 and HAVE_INTPTR_T.
4849 * configure: Regenerated.
4850 * config.in: Regenerated
4851 * system.h (stdint.h): Add include.
4852 (inttypes.h): Likewise.
4853 * Makefile.in (aclocal): Add config/stdint.m4.
4854 * aclocal.m4: Regenerated.
4855
4856 2009-09-08 Bernd Schmidt <bernd.schmidt@analog.com>
4857
4858 * config/bfin/bfin.c (np_check_regno, np_after_branch): New static
4859 variables.
4860 (note_np_check_stores): New function.
4861 (harmless_null_pointer_p): New function.
4862 (trapping_loads_p): New args NP_REG and AFTER_NP_BRANCH. Callers
4863 changed. Take into account whether we're in the shadow of a condjump
4864 that tested NP_REG for NULL.
4865 Lose all code that tested for SEQUENCEs.
4866 (workaround_speculation): Avoid inserting NOPs for loads that are
4867 either always executed or a NULL pointer.
4868
4869 2009-09-08 Jan Hubicka <jh@suse.cz>
4870
4871 * doc/invoke.texi (early-inlining-insns): Reduce from 12 to 8.
4872 * params.def (early-inlining-insns): Likewise.
4873
4874 2009-09-08 Jakub Jelinek <jakub@redhat.com>
4875
4876 PR rtl-optimization/41239
4877 * sched-int.h (struct deps): Add last_function_call_may_noreturn field.
4878 * sched-rgn.c (deps_join): Join also last_function_call_may_noreturn
4879 lists.
4880 * sched-deps.c (sched_analyze_insn): Prevent moving trapping insns
4881 across calls, as the calls might not always return normally.
4882 (call_may_noreturn_p): New function.
4883 (deps_analyze_insn): Update last_function_call_may_noreturn list.
4884 (init_deps): Initialize it.
4885 (remove_from_deps): Also remove calls from
4886 last_function_call_may_noreturn list.
4887
4888 2009-09-07 Richard Henderson <rth@redhat.com>
4889
4890 * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't assume there are
4891 more VR->OPERANDS than LHS operands. Free LHS before returning.
4892
4893 2009-09-07 Bernd Schmidt <bernd.schmidt@analog.com>
4894
4895 * config/bfin/bfin.md (UNSPEC_VOLATILE_STALL): New constant.
4896 (attr "addrtype"): New member "spreg".
4897 Use it if mem_spfp_address_operand is true for the address.
4898 (attr "type"): New entry "stall".
4899 (cpu_unit "load"): New.
4900 (insn_reservations "load32", "loadp", "loadi"): Add reservation of
4901 "load".
4902 (insn_reservation "loadsp"): New.
4903 (insn_reservation "load_stall1"): New.
4904 (insn_reservation "load_stall3"): New.
4905 (stall): New insn.
4906 * config/bfin/predicates.md (const1_operand, const3_operand): New.
4907 (mem_p_address_operand): Exclude stack and frame pointer based
4908 addresses.
4909 (mem_spfp_address_operand): New; match them here.
4910 * config/bfin/bfin.c (add_sched_insns_for_speculation): New function.
4911 (bfin_reorg): Call it if scheduling insns.
4912 (bfin_gen_bundles): Remove dummy insns created by
4913 add_sched_insns_for_speculation.
4914
4915 From Jie Zhang <jie.zhang@analog.com>:
4916 * config/bfin/bfin-protos.h (enum bfin_cpu_type, bfin_cpu_type,
4917 bfin_si_revision, bfin_workarounds): Move these ...
4918 * config/bfin/bfin.h: ... here.
4919
4920 From Mike Frysinger <michael.frysinger@analog.com>
4921 * config/bfin/bfin-protos.h (bfin_cpu_type): Add BFIN_CPU_BF542M,
4922 BFIN_CPU_BF544M, BFIN_CPU_BF547M, BFIN_CPU_BF548M, and BFIN_CPU_BF549M.
4923 * config/bfin/bfin.c (bfin_cpus[]): Add 0.3 for bf542m, bf544m,
4924 bf547m, bf548m, and bf549m.
4925 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define __ADSPBF542M__
4926 for BFIN_CPU_BF542M, __ADSPBF544M__ for BFIN_CPU_BF544M,
4927 __ADSPBF547M__ for BFIN_CPU_BF547M, __ADSPBF548M__ for
4928 BFIN_CPU_BF548M, and __ADSPBF549M__ for BFIN_CPU_BF549M.
4929 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
4930 bf542m-none, bf544m-none, bf547m-none, bf548m-none, and bf549m-none.
4931 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
4932 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
4933 * doc/invoke.texi (Blackfin Options): Document that -mcpu now accepts
4934 bf542m, bf544m, bf547m, bf548m, and bf549m.
4935
4936 From Jie Zhang <jie.zhang@analog.com>:
4937 * config/bfin/predicates.md (p_register_operand): New predicate.
4938 (dp_register_operand): New predicate.
4939 * config/bfin/bfin-protos.h (WA_05000074): Define.
4940 (ENABLE_WA_05000074): Define.
4941 * config/bfin/bfin.c (bfin_cpus[]): Add WA_05000074 for all cpus.
4942 (bfin_gen_bundles): Put dsp32shiftimm instruction in slot[0].
4943 * config/bfin/bfin.md (define_attr type): Add dsp32shiftimm.
4944 (define_attr addrtype): Allow load/store register to be P register.
4945 (define_attr storereg): New.
4946 (define_cpu_unit anomaly_05000074): New.
4947 (define_insn_reservation dsp32shiftimm): New.
4948 (define_insn_reservation dsp32shiftimm_anomaly_05000074): New.
4949 (define_insn_reservation loadp): Cannot use slot2.
4950 (define_insn_reservation loadsp): Cannot use slot2.
4951 (define_insn_reservation storep): Cannot use slot2. Does not
4952 apply when working around 05000074.
4953 (define_insn_reservation storep_anomaly_05000074): New.
4954 (define_insn_reservation storei): Does not apply when working
4955 around 05000074.
4956 (define_insn_reservation storei_anomaly_05000074): New.
4957 (define_attr length): Add dsp32shiftimm case.
4958 (define_insn movsi_insn32, movsi_insv, ashlsi3_insn, ashrsi3,
4959 ror_one, rol_one, lshrsi3, lshrpdi3, ashrpdi3, movhiv2hi_low,
4960 movhiv2hi_high, composev2hi, packv2hi, movv2hi_hi,
4961 ssashiftv2hi3, ssashifthi3, ssashiftsi3, lshiftv2hi3, lshifthi3):
4962 Set type as dsp32shiftimm for dsp32shiftimm alternatives.
4963
4964 2009-09-07 Martin Jambor <mjambor@suse.cz>
4965
4966 PR middle-end/41282
4967 * tree-sra.c (create_artificial_child_access): Return NULL if
4968 build_ref_for_offset fails.
4969 (propagate_subacesses_accross_link): Allow build_ref_for_offset
4970 and create_artificial_child_access to fail.
4971
4972 2009-09-06 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
4973
4974 PR c++/41214
4975 * unwind-dw2.c (uw_init_context_1): Mark noinline.
4976 * config/ia64/unwind-ia64.c (uw_init_context_1): Likewise.
4977 * config/xtensa/unwind-dw2-xtensa.c (uw_init_context_1): Likewise.
4978
4979 2009-09-07 Bernd Schmidt <bernd.schmidt@analog.com>
4980
4981 * config/bfin/bfin.c (bfin_optimize_loop): When creating a new basic
4982 block, ensure it has an exit edge. Emit a barrier after a jump.
4983
4984 2009-09-07 Nick Clifton <nickc@redhat.com>
4985
4986 * gcc.c (this_is_linker_script): New variable. Like
4987 this_is_library_file but for the %T constructor.
4988 (end_going_arg): If this_is_linker_script is set then locate the
4989 script and insert a --script switch before it
4990 (do_spec_2): Initialise this_is_linker_script.
4991 (do_spec_1): Likewise. Handle %T construct.
4992 (eval_spec_function): Preserve this_is_linker_script.
4993 * doc/invoke.texi: Document %T construct in spec files.
4994 * config/m32c/m32c.h (LIB_SPEC): Use it.
4995
4996 2009-09-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4997
4998 * rtl.h (PREFETCH_SCHEDULE_BARRIER_P): New macro.
4999 * sched-deps.c (sched_analyze_2): Make prefetches a hard barrier
5000 when volatile flag is set.
5001 * doc/rtl.texi (PREFETCH_SCHEDULE_BARRIER_P): Add documentation pieces.
5002
5003 2009-09-06 Eric Botcazou <ebotcazou@adacore.com>
5004
5005 PR bootstrap/41241
5006 * combine-stack-adj.c (try_apply_stack_adjustment): Handle stores.
5007 (combine_stack_adjustments_for_block): Allow insns between stack
5008 adjustments and stores with corresponding pre-(dec|inc)rement or
5009 pre-modify operation.
5010
5011 2009-09-06 Jakub Jelinek <jakub@redhat.com>
5012
5013 PR bootstrap/41241
5014 * combine-stack-adj.c (struct csa_memlist): Rename to...
5015 (struct csa_reflist): ... this. Rename mem field to ref.
5016 (free_csa_memlist): Rename to...
5017 (free_csa_reflist): ... this.
5018 (record_one_stack_memref): Rename to...
5019 (record_one_stack_ref): ... this. Handle also REG_P.
5020 (try_apply_stack_adjustment): Handle also REG_P.
5021 (struct record_stack_memrefs_data): Rename to...
5022 (struct record_stack_refs_data): ... this. Rename memlist field to
5023 reflist.
5024 (record_stack_memrefs): Rename to...
5025 (record_stack_refs): ... this. For DEBUG_INSNs keep traversing
5026 subexpressions instead of failing when a MEM contains SP references.
5027 For SP itself in DEBUG_INSNs queue it also onto reflist chain.
5028 (combine_stack_adjustments_for_block): Adjust for mem to ref renaming.
5029
5030 2009-09-06 Richard Guenther <rguenther@suse.de>
5031
5032 PR middle-end/41144
5033 * tree.c (build_array_type): Do not record types marked
5034 with structural equality in the canonical type hashtable.
5035
5036 2009-09-06 Richard Guenther <rguenther@suse.de>
5037
5038 PR middle-end/41261
5039 * tree-ssa-alias.c (refs_may_alias_p_1): Bail out for function decls.
5040
5041 2009-09-05 Richard Guenther <rguenther@suse.de>
5042
5043 PR middle-end/41181
5044 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Use the correct type.
5045
5046 2009-09-05 Richard Guenther <rguenther@suse.de>
5047
5048 PR debug/41273
5049 * tree-ssa-operands.c (get_tmr_operands): Pass through opf_no_vops.
5050
5051 2009-09-05 Richard Guenther <rguenther@suse.de>
5052
5053 PR middle-end/41271
5054 * tree-ssa.c (useless_type_conversion_p): Drop qualifiers
5055 before comparing function argument types.
5056
5057 2009-09-05 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
5058
5059 PR target/41024
5060 * config/i386/mingw-w64.h (ASM_SPEC): Pass -v instead of -V to
5061 the assembler.
5062
5063 2009-09-04 Uros Bizjak <ubizjak@gmail.com>
5064
5065 Revert:
5066 2009-08-18 Uros Bizjak <ubizjak@gmail.com>
5067
5068 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn
5069 locators before emit_insn is called.
5070
5071 2009-09-04 Vladimir Makarov <vmakarov@redhat.com>
5072
5073 PR bootstrap/41241
5074 * ira.c (update_equiv_reg): Revert my previous patch for the PR.
5075 * reginfo.c (resize_reg_info): Call allocate_reg_info if necessary.
5076 (reginfo_init): Don't call allocate_reg_info.
5077
5078 2009-09-04 Uros Bizjak <ubizjak@gmail.com>
5079
5080 PR target/41262
5081 * config/alpha/alpha.c (alpha_does_function_need_gp): Use
5082 NONDEBUG_INSN_P instead of INSN_P.
5083
5084 2009-09-04 Alexandre Oliva <aoliva@redhat.com>
5085
5086 PR debug/41225
5087 * tree-vect-stmts.c (vect_stmt_relevant_p): Skip debug uses.
5088
5089 2009-09-04 Alexandre Oliva <aoliva@redhat.com>
5090
5091 PR target/41252
5092 * config/arm/vfp.md (*cmpdf_split_vfp): Fix src mode in the second
5093 pattern of the split.
5094
5095 2009-09-04 Alexandre Oliva <aoliva@redhat.com>
5096
5097 * toplev.c (process_options): Move setter of flag_var_tracking
5098 before other tests that depend on it. Move down setter of
5099 flag_rename_registers. Don't enable var-tracking-assignments
5100 by default if selective scheduling is enabled. Warn if both
5101 are enabled.
5102
5103 2009-09-04 Alexandre Oliva <aoliva@redhat.com>
5104
5105 * var-tracking.c (dv_is_decl_p): Adjust NULL behavior to match
5106 comment. Use switch statement to catch overlaps between rtx
5107 and tree codes. Accept FUNCTION_DECLs in addition to those in...
5108 (IS_DECL_CODE): ... here. Remove.
5109 (check_value_is_not_decl): Remove.
5110 (dv_from_decl, dv_from_value): Check after conversion.
5111
5112 2009-09-04 Richard Guenther <rguenther@suse.de>
5113
5114 PR middle-end/41257
5115 * (cgraph_finalize_compilation_unit): Move finalizing aliases
5116 after emitting tunks. Move emitting thunks and ctors from ...
5117 (cgraph_optimize): ... here. Remove redundant
5118 cgraph_analyze_functions.
5119 * varasm.c (find_decl_and_mark_needed): Remove no longer
5120 necessary check.
5121 (finish_aliases_1): Adjust check for thunk aliases.
5122
5123 2009-09-04 Daniel Gutson <dgutson@codesourcery.com>
5124
5125 * config/arm/arm.md (ctzsi2): Added braces
5126 to avoid warning that broke booststrap.
5127
5128 2009-09-04 Martin Jambor <mjambor@suse.cz>
5129
5130 PR tree-optimization/41112
5131 * tree-sra.c (build_ref_for_offset_1): Signal that we cannot
5132 handle variable-bounded arrays.
5133 (expr_with_var_bounded_array_refs_p): New function.
5134 (analyze_access_subtree): Call expr_with_var_bounded_array_refs_p.
5135
5136 2009-09-04 Wolfgang Gellerich <gellerich@de.ibm.com>
5137
5138 * config/s390/2097.md: Removed two incorrect bypasses.
5139 (z10_fsimpdf): Fixed latency.
5140 (z10_fhex): New insn_reservation.
5141 (z10_floaddf): Fixed latency.
5142 (z10_floadsf): Fixed latency.
5143 (z10_ftrunctf): Fixed latency.
5144 (z10_ftruncdf): Fixed latency.
5145 * config/s390/s390.c (z10_cost): Fixed values.
5146 (s390_adjust_priority): Added z10 path.
5147 * config/s390/s390.md (type): Added fhex.
5148 (*mov<mode>_64dfp): Updated type attribute.
5149 (*mov<mode>_64): Updated type attribute.
5150 (*mov<mode>_31): Updated type attribute.
5151 (*mov<mode>"): Likewise.
5152 * config/s390/2084.md (x_fsimpdf): Updated condition.
5153
5154 2009-09-04 Andreas Krebbel <krebbel1@de.ibm.com>
5155
5156 * config/s390/s390.md ("*fmadd<mode>", "*fmsub<mode>"): Enable mem
5157 RTXs in the predicate for operand 1.
5158
5159 2009-09-03 Daniel Gutson <dgutson@codesourcery.com>
5160
5161 * config/arm/arm.md (UNSPEC_RBIT): New constant.
5162 (rbitsi2): New insn.
5163 (ctzsi2): New expand.
5164 * config/arm/arm.h (CTZ_DEFINED_VALUE_AT_ZERO): New macro.
5165
5166 2009-09-03 Martin Jambor <mjambor@suse.cz>
5167
5168 * tree-sra.c (duplicate_expr_for_different_base): Removed.
5169 (create_artificial_child_access): Use build_ref_for_offset instead
5170 of duplicate_expr_for_different_base.
5171 (propagate_subacesses_accross_link): Likewise.
5172
5173 2009-09-03 Richard Sandiford <rdsandiford@googlemail.com>
5174
5175 * config/mips/mips.c (USEFUL_INSN_P): Use NONDEBUG_INSN_P instead
5176 of INSN_P.
5177 (mips16e_collect_argument_saves): Skip debug instructions.
5178 (mips_74k_agen_init): Use CALL_P || JUMP_P instead of !NONJUMP_INSN_P.
5179 (mips16_lay_out_constants): Use USEFUL_INSN_P instead of INSN_P.
5180 (r10k_insert_cache_barriers): Likewise.
5181 (mips_reorg_process_insns): Likewise.
5182
5183 2009-09-03 Vladimir Makarov <vmakarov@redhat.com>
5184
5185 PR bootstrap/41241
5186 * ira.c (update_equiv_reg): Remove check on class likely spill.
5187
5188 2009-09-03 Jakub Jelinek <jakub@redhat.com>
5189
5190 PR debug/41236
5191 * dwarf2out.c (loc_descriptor): Don't use SUBREG_REG macro on
5192 SIGN_EXTEND or ZERO_EXTEND. Don't assume there is a REG inside of
5193 it or SUBREG.
5194
5195 PR debug/41238
5196 * function.c (assign_parm_find_stack_rtl): Don't set mem attributes on
5197 the stack slot if it is passed by invisible reference.
5198 * var-tracking.c (vt_add_function_parameters): Handle arguments passed
5199 by invisible reference.
5200
5201 2009-09-03 Bernd Schmidt <bernd.schmidt@analog.com>
5202
5203 * config/bfin/linux.h (TARGET_SUPPORTS_SYNC_CALLS): Define to 1.
5204 * config/bfin/uclinux.h (TARGET_SUPPORTS_SYNC_CALLS): Define to 1.
5205 * config/bfin/bfin.h (TARGET_SUPPORTS_SYNC_CALLS): Provide default of
5206 0.
5207 * config/bfin/sync.md: New file.
5208 * config/bfin/bfin.md: Include it.
5209 (UNSPEC_ATOMIC): New.
5210 (UNSPEC_ONES): Provide a unique number.
5211
5212 From Jie Zhang <jie.zhang@analog.com>:
5213 * config/bfin/bfin.c (ret_regs): New.
5214 (must_save_fp_p): Don't return true because of frame_pointer_needed.
5215 (must_save_rets_p): New.
5216 (n_regs_saved_by_prologue): Use must_save_rets_p instead of
5217 current_function_is_leaf.
5218 (do_link): Likewise.
5219 (do_unlink): Likewise.
5220 (expand_interrupt_handler_prologue): Use ret_regs array.
5221 (expand_interrupt_handler_epilogue): Use ret_regs array and
5222 pass return register to gen_return_internal.
5223 (bfin_expand_epilogue): Pass return register to
5224 gen_return_internal.
5225 (bfin_expand_call): Explicitly clobber RETS.
5226 * config/bfin/bfin.h (FUNCTION_RETURN_REGISTERS): Define.
5227 * config/bfin/bfin.md (call_symbol_fdpic, call_value_symbol_fdpic,
5228 call_insn_fdpic, call_value_insn_fdpic, call_symbol,
5229 call_value_symbol, call_insn, call_value_insn): Explicitly clobber
5230 RETS.
5231 (return_internal): Take a reg rtx rather than the register number.
5232
5233 2009-09-03 H.J. Lu <hongjiu.lu@intel.com>
5234
5235 * tree-parloops.c (parallelize_loops): Cast to HOST_WIDE_INT
5236 when comparing against estimated_loop_iterations_int return.
5237
5238 2009-09-03 Richard Guenther <rguenther@suse.de>
5239
5240 * dwarf2out.c (dwarf2out_do_cfi_asm): Remove check of
5241 eh_personality_libfunc.
5242
5243 2009-09-03 Razya Ladelsky <razya@il.ibm.com>
5244
5245 * tree-parloops.c (separate_decls_in_region): Add space.
5246
5247 2009-09-03 Razya Ladelsky <razya@il.ibm.com>
5248
5249 * tree-parloops.c (separate_decls_in_region): Change the condition
5250 checking if there are reductions in the loop.
5251
5252 2009-09-03 Razya Ladelsky <razya@il.ibm.com>
5253
5254 PR tree-optimization/38275
5255 * tree-parloops.c (parallelize_loops): Replace profitability condition
5256 for expected number of iterations.
5257
5258 2009-09-03 Alexandre Oliva <aoliva@redhat.com>
5259
5260 * doc/invoke.texi (BUILD_CONFIG): Document --with-build-config.
5261 (bootstrap-debug): Explain conditions in which it becomes default.
5262 (bootstrap-debug-big): Rather than duplicate bootstrap-debug,
5263 make it add to it.
5264
5265 2009-09-03 Namhyung Kim <namhyung@gmail.com>
5266
5267 * doc/invoke.texi (Optimize Options): Move
5268 -finline-small-functions to the -O2 list.
5269
5270 2009-09-03 Alexandre Oliva <aoliva@redhat.com>
5271
5272 * toplev.c (process_options): Enable var-tracking-assignments
5273 by default if var-tracking is enabled.
5274
5275 2009-09-02 David Daney <ddaney@caviumnetworks.com>
5276
5277 * cfgbuild.c (find_bb_boundaries): Split blocks containing a
5278 barrier.
5279 * emit-rtl.c (prev_nonnote_insn_bb): New function.
5280 * rtl.h (prev_nonnote_insn_bb): Declare it.
5281
5282 2009-09-03 Diego Novillo <dnovillo@google.com>
5283
5284 * cgraph.c (cgraph_node_for_decl): New.
5285 * cgraph.h (cgraph_node_for_decl): Declare.
5286 * tree.c (host_integerp): Return 0 if T is NULL.
5287
5288 2009-09-03 Diego Novillo <dnovillo@google.com>
5289
5290 * tree.h (struct alias_pair): Move from varasm.c.
5291 (alias_pairs): Likewise.
5292 (TYPE_MAXVAL): Define.
5293 (TYPE_MINVAL): Define.
5294 (iterative_hash_host_wide_int): Declare.
5295 (remove_unreachable_alias_pairs): Declare.
5296 * tree-pass.h (pass_ipa_free_lang_data): Declare.
5297 * diagnostic.c (default_diagnostic_starter): Make extern.
5298 (default_diagnostic_finalizer): Make extern.
5299 * diagnostic.h (default_diagnostic_starter): Declare.
5300 (default_diagnostic_finalizer): Declare.
5301 (default_tree_printer): Declare.
5302 * toplev.c (default_tree_printer): Make extern.
5303
5304 2009-09-03 Richard Guenther <rguenther@suse.de>
5305 Diego Novillo <dnovillo@google.com>
5306
5307 * cgraph.c (cgraph_add_new_function): Remove gimplification.
5308 * cgraphunit.c (cgraph_expand_function): Do not emit
5309 associated thunks from here.
5310 (cgraph_emit_thunks): New.
5311 (cgraph_optimize): Call it.
5312 Return if any IPA pass finds an error.
5313 * varasm.c (finish_aliases_1): Ignore errorneous aliases used
5314 by thunks.
5315
5316 2009-09-03 Simon Baldwin <simonb@google.com>
5317 Rafael Espindola <espindola@google.com>
5318 Richard Guenther <rguenther@suse.de>
5319 Doug Kwan <dougkwan@google.com>
5320 Diego Novillo <dnovillo@google.com>
5321
5322 * tree.c: Include tree-pass.h, langhooks-def.h,
5323 diagnostic.h, cgraph.h, timevar.h, except.h and debug.h.
5324 (free_lang_data_in_type): New.
5325 (need_assembler_name_p): New.
5326 (free_lang_data_in_block): New.
5327 (free_lang_data_in_decl): New.
5328 (struct free_lang_data_d): New.
5329 (add_tree_to_fld_list): New.
5330 (find_decls_types_r): New.
5331 (get_eh_types_for_runtime): New.
5332 (find_decls_types_in_eh_region): New.
5333 (find_decls_types_in_node): New.
5334 (find_decls_types_in_var): New.
5335 (free_lang_data_in_cgraph): New.
5336 (free_lang_data): New.
5337 (gate_free_lang_data): New.
5338 (pass_ipa_free_lang_data): New.
5339
5340 2009-09-03 Diego Novillo <dnovillo@google.com>
5341
5342 * timevar.def (TV_IPA_FREE_LANG_DATA): Define.
5343 * langhooks.h (struct lang_hooks): Add field free_lang_data.
5344 (lang_hooks): Remove const qualifier.
5345 * ipa.c (cgraph_remove_unreachable_nodes): Call
5346 remove_unreachable_alias_pairs.
5347 * except.c (add_type_for_runtime): Check if TYPE has
5348 already been converted.
5349 (lookup_type_for_runtime): Likewise.
5350 (check_handled): Handle converted types.
5351 * varasm.c (remove_unreachable_alias_pairs): New.
5352 * gimple.c: Include demangle.h.
5353 (gimple_decl_printable_name): New.
5354 (gimple_fold_obj_type_ref): New.
5355 * gimple.h (gimple_decl_printable_name): Declare.
5356 (gimple_fold_obj_type_ref): Declare.
5357 * passes.c (init_optimization_passes): Add pass
5358 pass_ipa_free_lang_data.
5359 * langhooks-def.h (LANG_HOOKS_FREE_LANG_DATA): Define.
5360 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_FREE_LANG_DATA.
5361
5362 2009-09-03 Diego Novillo <dnovillo@google.com>
5363
5364 * c-lang.c (lang_hooks): Remove const qualifier.
5365
5366 2009-09-02 Loren James Rittle <ljrittle@acm.org>
5367
5368 * doc/install.texi (*-*-freebsd*): Update target information.
5369
5370 2009-09-02 Anatoly Sokolov <aesok@post.ru>
5371
5372 * hard-reg-set.h (call_fixed_regs): Remove.
5373 * reginfo.c (call_fixed_regs): Remove.
5374 (init_reg_sets_1): Remove initialization of call_fixed_regs.
5375 (globalize_reg): Don't use call_fixed_regs.
5376 * caller-save.c (init_caller_save): Use call_fixed_reg_set instead of
5377 call_fixed_regs.
5378
5379 2009-09-01 Michael Matz <matz@suse.de>
5380
5381 * expr.h (emit_storent_insn, expand_expr_real_1,
5382 expand_expr_real_2): Declare.
5383 * expr.c (emit_storent_insn, expand_expr_real_1,
5384 expand_expr_real_2): Export.
5385 (store_expr): Setting and evaluating dont_return_target is useless.
5386 (expand_expr_real_1, <case GOTO_EXPR, RETURN_EXPR, SWITCH_EXPR,
5387 LABEL_EXPR and ASM_EXPR>): Move to gcc_unreachable.
5388 * except.c (expand_resx_expr): Rename to ...
5389 (expand_resx_stmt): ... this. Rewrite to take gimple statement.
5390 * except.h (expand_resx_stmt): Declare.
5391 * stmt.c: Add include gimple.h
5392 (expand_asm_expr): Rename to ...
5393 (expand_asm_stmt): ... this. Rewrite to take gimple statement.
5394 (expand_case): Rewrite to take gimple statement.
5395 * tree.h (expand_asm_stmt): Declare.
5396 (expand_case): Change prototype.
5397 * Makefile.in (stmt.o): Depend on gimple.h.
5398 * builtins.c (expand_builtin_synchronize): Build gimple asm
5399 statement, not an ASM_EXPR.
5400 * cfgexpand.c (gimple_cond_pred_to_tree, set_expr_location_r,
5401 gimple_to_tree, release_stmt_tree): Remove.
5402 (expand_gimple_cond): Don't call gimple_cond_pred_to_tree or
5403 ggc_free, but hold comparison code and operands separately.
5404 Call jumpif_1 and jumpifnot_1 instead of jumpif and jumpifnot.
5405 (expand_call_stmt, expand_gimple_stmt_1,
5406 expand_gimple_stmt): New helpers.
5407 (expand_gimple_tailcall): Don't call gimple_to_tree, expand_expr_stmt,
5408 release_stmt_tree. Call expand_gimple_stmt instead.
5409 (expand_gimple_basic_block): Ditto.
5410
5411 * calls.c (emit_call_1): Don't look at EH regions here, make
5412 fntree parameter useless.
5413 (expand_call): New local rettype for TREE_TYPE(exp), use it
5414 throughout. Remove local p, use addr instead.
5415 Don't look at EH regions here.
5416
5417 2009-09-02 Vladimir Makarov <vmakarov@redhat.com>
5418
5419 * doc/invoke.texi (-fsched-pressure): Document it.
5420 (-fsched-reg-pressure-heuristic): Remove it.
5421
5422 * reload.c (ira.h): Include.
5423 (find_reloads): Add choosing reload on number of small spilled
5424 classes.
5425
5426 * haifa-sched.c (ira.h): Include.
5427 (sched_pressure_p, sched_regno_cover_class, curr_reg_pressure,
5428 saved_reg_pressure, curr_reg_live, saved_reg_live,
5429 region_ref_regs): New variables.
5430 (sched_init_region_reg_pressure_info, mark_regno_birth_or_death,
5431 initiate_reg_pressure_info, setup_ref_regs,
5432 initiate_bb_reg_pressure_info, save_reg_pressure,
5433 restore_reg_pressure, dying_use_p, print_curr_reg_pressure): New
5434 functions.
5435 (setup_insn_reg_pressure_info): New function.
5436 (rank_for_schedule): Add pressure checking and insn issue time.
5437 Remove comparison of insn reg weights.
5438 (ready_sort): Set insn reg pressure info.
5439 (update_register_pressure, setup_insn_max_reg_pressure,
5440 update_reg_and_insn_max_reg_pressure,
5441 sched_setup_bb_reg_pressure_info): New functions.
5442 (schedule_insn): Add code for printing and updating reg pressure info.
5443 (find_set_reg_weight, find_insn_reg_weight): Remove.
5444 (ok_for_early_queue_removal): Do nothing if pressure_only_p.
5445 (debug_ready_list): Print reg pressure info.
5446 (schedule_block): Ditto. Check insn issue time.
5447 (sched_init): Set up sched_pressure_p. Allocate and set up some
5448 reg pressure related info.
5449 (sched_finish): Free some reg pressure related info.
5450 (fix_tick_ready): Make insn always ready if pressure_p.
5451 (init_h_i_d): Don't call find_insn_reg_weight.
5452 (haifa_finish_h_i_d): Free insn reg pressure info.
5453
5454 * ira-int.h (ira_hard_regno_cover_class, ira_reg_class_nregs,
5455 ira_memory_move_cost, ira_class_hard_regs,
5456 ira_class_hard_regs_num, ira_no_alloc_regs,
5457 ira_available_class_regs, ira_reg_class_cover_size,
5458 ira_reg_class_cover, ira_class_translate): Move to ira.h.
5459
5460 * ira-lives.c (single_reg_class): Check mode to find how many
5461 registers are necessary for operand.
5462 (ira_implicitly_set_insn_hard_regs): New.
5463
5464 * common.opt (fsched-pressure): New options.
5465 (fsched-reg-pressure-heuristic): Remove.
5466
5467 * ira.c (setup_eliminable_regset): Rename to
5468 ira_setup_eliminable_regset. Make it external.
5469 (expand_reg_info): Pass cover class to setup_reg_classes.
5470 (ira): Call resize_reg_info instead of allocate_reg_info.
5471
5472 * sched-deps.c: Include ira.h.
5473 (implicit_reg_pending_clobbers, implicit_reg_pending_uses): New.
5474 (create_insn_reg_use, create_insn_reg_set, setup_insn_reg_uses,
5475 reg_pressure_info, insn_use_p, mark_insn_pseudo_birth,
5476 mark_insn_hard_regno_birth, mark_insn_reg_birth,
5477 mark_pseudo_death, mark_hard_regno_death, mark_reg_death,
5478 mark_insn_reg_store, mark_insn_reg_clobber,
5479 setup_insn_reg_pressure_info): New.
5480 (sched_analyze_1): Update implicit_reg_pending_uses.
5481 (sched_analyze_insn): Find implicit sets, uses, clobbers of regs.
5482 Use them to create dependencies. Set insn reg uses and pressure
5483 info. Process reg_pending_uses in one place.
5484 (free_deps): Free implicit sets.
5485 (remove_from_deps): Remove implicit sets if necessary. Check
5486 implicit sets when clearing reg_last_in_use.
5487 (init_deps_global): Clear implicit_reg_pending_clobbers and
5488 implicit_reg_pending_uses.
5489
5490 * ira.h (ira_hard_regno_cover_class, ira_reg_class_nregs,
5491 ira_memory_move_cost, ira_class_hard_regs,
5492 ira_class_hard_regs_num, ira_no_alloc_regs,
5493 ira_available_class_regs, ira_reg_class_cover_size,
5494 ira_reg_class_cover, ira_class_translate): Move from ira-int.h.
5495 (ira_setup_eliminable_regset, ira_set_pseudo_classes,
5496 ira_implicitly_set_insn_hard_regs): New prototypes.
5497
5498 * ira-costs.c (pseudo_classes_defined_p, allocno_p,
5499 cost_elements_num): New variables.
5500 (allocno_costs, total_costs): Rename to costs and
5501 total_allocno_costs.
5502 (COSTS_OF_ALLOCNO): Rename to COSTS.
5503 (allocno_pref): Rename to pref.
5504 (allocno_pref_buffer): Rename to pref_buffer.
5505 (common_classes): Rename to regno_cover_class.
5506 (COST_INDEX): New.
5507 (record_reg_classes): Set allocno attributes only if allocno_p.
5508 (record_address_regs): Ditto. Use COST_INDEX instead of ALLOCNO_NUM.
5509 (scan_one_insn): Use COST_INDEX and COSTS instead of ALLOCNO_NUM
5510 and COSTS_OF_ALLOCNO.
5511 (print_costs): Rename to print_allocno_costs.
5512 (print_pseudo_costs): New.
5513 (process_bb_node_for_costs): Split into 2 functions with new
5514 function process_bb_for_costs. Pass BB to process_bb_for_costs.
5515 (find_allocno_class_costs): Rename to find_costs_and_classes. Add
5516 new parameter dump_file. Use cost_elements_num instead of
5517 ira_allocnos_num. Make one iteration if preferred classes were
5518 already calculated for scheduler. Make 2 versions of code
5519 depending on allocno_p.
5520 (setup_allocno_cover_class_and_costs): Check allocno_p. Use
5521 regno_cover_class and COSTS instead of common_classes and
5522 COSTS_OF_ALLOCNO.
5523 (init_costs, finish_costs): New.
5524 (ira_costs): Set up allocno_p and cost_elements_num. Call
5525 init_costs and finish_costs.
5526 (ira_set_pseudo_classes): New.
5527
5528 * rtl.h (allocate_reg_info): Remove.
5529 (resize_reg_info): Change return type.
5530 (reg_cover_class): New.
5531 (setup_reg_classes): Add new parameter.
5532
5533 * sched-int.h (struct deps_reg): New member implicit_sets.
5534 (sched_pressure_p, sched_regno_cover_class): New external definitions.
5535 (INCREASE_BITS): New macro.
5536 (struct reg_pressure_data, struct reg_use_data): New.
5537 (struct _haifa_insn_data): Remove reg_weight. Add members
5538 reg_pressure, reg_use_list, reg_set_list, and
5539 reg_pressure_excess_cost_change.
5540 (struct deps): New member implicit_sets.
5541 (pressure_p): New variable.
5542 (COVER_CLASS_BITS, INCREASE_BITS): New macros.
5543 (struct reg_pressure_data, struct reg_use_data): New.
5544 (INSN_REG_WEIGHT): Remove.
5545 (INSN_REG_PRESSURE, INSN_MAX_REG_PRESSURE, INSN_REG_USE_LIST,
5546 INSN_REG_SET_LIST, INSN_REG_PRESSURE_EXCESS_COST_CHANGE): New macros.
5547 (sched_init_region_reg_pressure_info,
5548 sched_setup_bb_reg_pressure_info): New prototypes.
5549
5550 * reginfo.c (struct reg_pref): New member coverclass.
5551 (reg_cover_class): New function.
5552 (reginfo_init, pass_reginfo_init): Move after free_reg_info.
5553 (reg_info_size): New variable.
5554 (allocate_reg_info): Make static. Setup reg_info_size.
5555 (resize_reg_info): Use reg_info_size. Return flag of resizing.
5556 (setup_reg_classes): Add a new parameter. Setup cover class too.
5557
5558 * Makefile.in (reload.o, haifa-sched.o, sched-deps.o): Add ira.h to
5559 the dependencies.
5560
5561 * sched-rgn.c (deps_join): Set up implicit_sets.
5562 (schedule_region): Set up region and basic blocks pressure
5563 relative info.
5564
5565 * passes.c (init_optimization_passes): Move
5566 pass_subregs_of_mode_init before pass_sched.
5567
5568 2009-09-02 Martin Jambor <mjambor@suse.cz>
5569
5570 * tree-sra.c (struct access): New field grp_hint.
5571 (dump_access): Dump grp_hint.
5572 (sort_and_splice_var_accesses): Set grp_hint if a group is read
5573 multiple times.
5574 (analyze_access_subtree): Only scalarize accesses with grp_hint set or
5575 those which have been specifically read and somehow written to.
5576 (propagate_subacesses_accross_link): Set grp_hint of right child and
5577 also possibly of the left child.
5578
5579 2009-09-02 Jakub Jelinek <jakub@redhat.com>
5580
5581 * tree-object-size.c (addr_object_size): Always use object_size_type
5582 0 or 2 when determining the pointer pointed object size.
5583
5584 2009-09-02 Richard Guenther <rguenther@suse.de>
5585
5586 Revert
5587 2009-08-31 Richard Guenther <rguenther@suse.de>
5588
5589 * builtins.c (fold_builtin_memory_op): Use the alias oracle
5590 to query if the memory regions for memmove overlap.
5591 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Relax the
5592 asserts on pointers, instead deal with odd trees.
5593 (ptr_derefs_may_alias_p): Likewise.
5594 (refs_may_alias_p_1): Constructor bases also never alias.
5595
5596 2009-08-01 Christian Bruel <christian.bruel@st.com>
5597
5598 Revert:
5599 2009-07-31 Christian Bruel <christian.bruel@st.com>
5600 * gcc/config.gcc (sh*-*-elf): test with_libgloss.
5601
5602 2009-09-01 Alexandre Oliva <aoliva@redhat.com>
5603
5604 * doc/invoke.texi (-fvar-tracking-assignments): New.
5605 (-fvar-tracking-assignments-toggle): New.
5606 (-fdump-final-insns=file): Mark filename as optional.
5607 (--param min-nondebug-insn-uid): New.
5608 (-gdwarf-@{version}): Mention version 4.
5609 * opts.c (common_handle_option): Accept it.
5610 * tree-vrp.c (find_assert_locations_1): Skip debug stmts.
5611 * regrename.c (regrename_optimize): Drop last. Don't count debug
5612 insns as uses. Don't reject change because of debug insn.
5613 (do_replace): Reject DEBUG_INSN as chain starter. Take base_regno
5614 from the chain starter, and check for inexact matches in DEBUG_INSNS.
5615 (scan_rtx_reg): Accept inexact matches in DEBUG_INSNs.
5616 (build_def_use): Simplify and fix the marking of DEBUG_INSNs.
5617 * sched-ebb.c (schedule_ebbs): Skip boundary debug insns.
5618 * fwprop.c (forward_propagate_and_simplify): ...into debug insns.
5619 * doc/gimple.texi (is_gimple_debug): New.
5620 (gimple_debug_bind_p): New.
5621 (is_gimple_call, gimple_assign_cast_p): End sentence with period.
5622 * doc/install.texi (bootstrap-debug): More details.
5623 (bootstrap-debug-big, bootstrap-debug-lean): Document.
5624 (bootstrap-debug-lib): More details.
5625 (bootstrap-debug-ckovw): Update.
5626 (bootstrap-time): New.
5627 * tree-into-ssa.c (mark_def_sites): Skip debug stmts.
5628 (insert_phi_nodes_for): Insert debug stmts.
5629 (rewrite_stmt): Take iterator. Insert debug stmts.
5630 (rewrite_enter_block): Adjust.
5631 (maybe_replace_use_in_debug_stmt): New.
5632 (rewrite_update_stmt): Use it.
5633 (mark_use_interesting): Return early for debug stmts.
5634 * tree-ssa-loop-im.c (rewrite_bittest): Propagate DEFs into debug
5635 stmts before replacing stmt.
5636 (move_computations_stmt): Likewise.
5637 * ira-conflicts.c (add_copies): Skip debug insns.
5638 * regstat.c (regstat_init_n_sets_and_refs): Discount debug insns.
5639 (regstat_bb_compute_ri): Skip debug insns.
5640 * tree-ssa-threadupdate.c (redirection_block_p): Skip debug stmts.
5641 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt,
5642 check_loop_closed_ssa_stmt): Skip debug stmts.
5643 * tree-tailcall.c (find_tail_calls): Likewise.
5644 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
5645 * tree.h (MAY_HAVE_DEBUG_STMTS): New.
5646 (build_var_debug_value_stat): Declare.
5647 (build_var_debug_value): Define.
5648 (target_for_debug_bind): Declare.
5649 * reload.c (find_equiv_reg): Skip debug insns.
5650 * rtlanal.c (reg_used_between_p): Skip debug insns.
5651 (side_effects_p): Likewise.
5652 (canonicalize_condition): Likewise.
5653 * ddg.c (create_ddg_dep_from_intra_loop_link): Check that non-debug
5654 insns never depend on debug insns.
5655 (create_ddg_dep_no_link): Likewise.
5656 (add_cross_iteration_register_deps): Use ANTI_DEP for debug insns.
5657 Don't add inter-loop dependencies for debug insns.
5658 (build_intra_loop_deps): Likewise.
5659 (create_ddg): Count debug insns.
5660 * ddg.h (struct ddg::num_debug): New.
5661 (num_backargs): Pair up with previous int field.
5662 * diagnostic.c (diagnostic_report_diagnostic): Skip notes on
5663 -fcompare-debug-second.
5664 * final.c (get_attr_length_1): Skip debug insns.
5665 (rest_of_clean-state): Don't dump CFA_RESTORE_STATE.
5666 * gcc.c (invoke_as): Call compare-debug-dump-opt.
5667 (driver_self_specs): Map -fdump-final-insns to
5668 -fdump-final-insns=..
5669 (get_local_tick): New.
5670 (compare_debug_dump_opt_spec_function): Test for . argument and
5671 compute output name. Compute temp output spec without flag name.
5672 Compute -frandom-seed.
5673 (OPT): Undef after use.
5674 * cfgloopanal.c (num_loop_insns): Skip debug insns.
5675 (average_num_loop_insns): Likewise.
5676 * params.h (MIN_NONDEBUG_INSN_UID): New.
5677 * gimple.def (GIMPLE_DEBUG): New.
5678 * ipa-reference.c (scan_stmt_for_static_refs): Skip debug stmts.
5679 * auto-inc-dec.c (merge_in_block): Skip debug insns.
5680 (merge_in_block): Fix whitespace.
5681 * toplev.c (flag_var_tracking): Update comment.
5682 (flag_var_tracking_assignments): New.
5683 (flag_var_tracking_assignments_toggle): New.
5684 (process_options): Don't open final insns dump file if we're not
5685 going to write to it. Compute defaults for var_tracking.
5686 * df-scan.c (df_insn_rescan_debug_internal): New.
5687 (df_uses_record): Handle debug insns.
5688 * haifa-sched.c (ready): Initialize n_debug.
5689 (contributes_to_priority): Skip debug insns.
5690 (dep_list_size): New.
5691 (priority): Use it.
5692 (rank_for_schedule): Likewise. Schedule debug insns as soon as
5693 they're ready. Disregard previous debug insns to make decisions.
5694 (queue_insn): Never queue debug insns.
5695 (ready_add, ready_remove_first, ready_remove): Count debug insns.
5696 (schedule_insn): Don't reject debug insns because of issue rate.
5697 (get_ebb_head_tail, no_real_insns_p): Skip boundary debug insns.
5698 (queue_to_ready): Skip and discount debug insns.
5699 (choose_ready): Let debug insns through.
5700 (schedule_block): Check boundary debug insns. Discount debug
5701 insns, schedule them early. Adjust whitespace.
5702 (set_priorities): Check for boundary debug insns.
5703 (add_jump_dependencies): Use dep_list_size.
5704 (prev_non_location_insn): New.
5705 (check_cfg): Use it.
5706 * tree-ssa-loop-ivopts.c (find-interesting_users): Skip debug
5707 stmts.
5708 (remove_unused_ivs): Reset debug stmts.
5709 * modulo-sched.c (const_iteration_count): Skip debug insns.
5710 (res_MII): Discount debug insns.
5711 (loop_single_full_bb_p): Skip debug insns.
5712 (sms_schedule): Likewise.
5713 (sms_schedule_by_order): Likewise.
5714 (ps_has_conflicts): Likewise.
5715 * caller-save.c (refmarker_fn): New.
5716 (save_call_clobbered_regs): Replace regs with saved mem in
5717 debug insns.
5718 (mark_referenced_regs): Take pointer, mark and arg. Adjust.
5719 Call refmarker_fn mark for hardregnos.
5720 (mark_reg_as_referenced): New.
5721 (replace_reg_with_saved_mem): New.
5722 * ipa-pure-const.c (check_stmt): Skip debug stmts.
5723 * cse.c (cse_insn): Canonicalize debug insns. Skip them when
5724 searching back.
5725 (cse_extended_basic_block): Skip debug insns.
5726 (count_reg_usage): Likewise.
5727 (is_dead_reg): New, split out of...
5728 (set_live_p): ... here.
5729 (insn_live_p): Use it for debug insns.
5730 * tree-stdarg.c (check_all_va_list_escapes): Skip debug stmts.
5731 (execute_optimize_stdarg): Likewise.
5732 * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
5733 * tree-ssa-propagate.c (substitute_and_fold): Don't regard
5734 changes in debug stmts as changes.
5735 * sel-sched.c (moving_insn_creates_bookkeeping_block_p): New.
5736 (moveup_expr): Don't move across debug insns. Don't move
5737 debug insn if it would create a bookkeeping block.
5738 (moveup_expr_cached): Don't use cache for debug insns that
5739 are heads of blocks.
5740 (compute_av_set_inside_bb): Skip debug insns.
5741 (sel_rank_for_schedule): Schedule debug insns first. Remove
5742 dead code.
5743 (block_valid_for_bookkeeping_p); Support lax searches.
5744 (create_block_for_bookkeeping): Adjust block numbers when
5745 encountering debug-only blocks.
5746 (find_place_for_bookkeeping): Deal with debug-only blocks.
5747 (generate_bookkeeping_insn): Accept no place to insert.
5748 (remove_temp_moveop_nops): New argument full_tidying.
5749 (prepare_place_to_insert): Deal with debug insns.
5750 (advance_state_on_fence): Debug insns don't start cycles.
5751 (update_boundaries): Take fence as argument. Deal with
5752 debug insns.
5753 (schedule_expr_on_boundary): No full_tidying on debug insns.
5754 (fill_insns): Deal with debug insns.
5755 (track_scheduled_insns_and_blocks): Don't count debug insns.
5756 (need_nop_to_preserve_insn_bb): New, split out of...
5757 (remove_insn_from_stream): ... this.
5758 (fur_orig_expr_not_found): Skip debug insns.
5759 * rtl.def (VALUE): Move up.
5760 (DEBUG_INSN): New.
5761 * tree-ssa-sink.c (all_immediate_uses_same_place): Skip debug stmts.
5762 (nearest_common_dominator_of_uses): Take debug_stmts argument.
5763 Set it if debug stmts are found.
5764 (statement_sink_location): Skip debug stmts. Propagate
5765 moving defs into debug stmts.
5766 * ifcvt.c (first_active_insn): Skip debug insns.
5767 (last_active_insns): Likewise.
5768 (cond_exec_process_insns): Likewise.
5769 (noce_process_if_block): Likewise.
5770 (check_cond_move_block): Likewise.
5771 (cond_move_convert_if_block): Likewise.
5772 (block_jumps_and_fallthru_p): Likewise.
5773 (dead_or_predicable): Likewise.
5774 * dwarf2out.c (debug_str_hash_forced): New.
5775 (find_AT_string): Add comment.
5776 (gen_label_for_indirect_string): New.
5777 (get_debug_string_label): New.
5778 (AT_string_form): Use it.
5779 (mem_loc_descriptor): Handle non-TLS symbols. Handle MINUS , DIV,
5780 MOD, AND, IOR, XOR, NOT, ABS, NEG, and CONST_STRING. Accept but
5781 discard COMPARE, IF_THEN_ELSE, ROTATE, ROTATERT, TRUNCATE and
5782 several operations that cannot be represented with DWARF opcodes.
5783 (loc_descriptor): Ignore SIGN_EXTEND and ZERO_EXTEND. Require
5784 dwarf_version 4 for DW_OP_implicit_value and DW_OP_stack_value.
5785 (dwarf2out_var_location): Take during-call mark into account.
5786 (output_indirect_string): Update comment. Output if there are
5787 label and references.
5788 (prune_indirect_string): New.
5789 (prune_unused_types): Call it if debug_str_hash_forced.
5790 More in dwarf2out.c, from Jakub Jelinek <jakub@redhat.com>:
5791 (dw_long_long_const): Remove.
5792 (struct dw_val_struct): Change val_long_long type to rtx.
5793 (print_die, attr_checksum, same_dw_val_p, loc_descriptor): Adjust for
5794 val_long_long change to CONST_DOUBLE rtx from a long hi/lo pair.
5795 (output_die): Likewise. Use HOST_BITS_PER_WIDE_INT size of each
5796 component instead of HOST_BITS_PER_LONG.
5797 (output_loc_operands): Likewise. For const8* assert
5798 HOST_BITS_PER_WIDE_INT rather than HOST_BITS_PER_LONG is >= 64.
5799 (output_loc_operands_raw): For const8* assert HOST_BITS_PER_WIDE_INT
5800 rather than HOST_BITS_PER_LONG is >= 64.
5801 (add_AT_long_long): Remove val_hi and val_lo arguments, add
5802 val_const_double.
5803 (size_of_die): Use HOST_BITS_PER_WIDE_INT size multiplier instead of
5804 HOST_BITS_PER_LONG for dw_val_class_long_long.
5805 (add_const_value_attribute): Adjust add_AT_long_long caller. Don't
5806 handle TLS SYMBOL_REFs. If CONST wraps a constant, tail recurse.
5807 (dwarf_stack_op_name): Handle DW_OP_implicit_value and
5808 DW_OP_stack_value.
5809 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
5810 Handle DW_OP_implicit_value.
5811 (extract_int): Move prototype earlier.
5812 (mem_loc_descriptor): For SUBREG punt if inner
5813 mode size is wider than DWARF2_ADDR_SIZE. Handle SIGN_EXTEND
5814 and ZERO_EXTEND by DW_OP_shl and DW_OP_shr{a,}. Handle
5815 EQ, NE, GT, GE, LT, LE, GTU, GEU, LTU, LEU, SMIN, SMAX, UMIN,
5816 UMAX, SIGN_EXTRACT, ZERO_EXTRACT.
5817 (loc_descriptor): Compare mode size with DWARF2_ADDR_SIZE
5818 instead of Pmode size.
5819 (loc_descriptor): Add MODE argument. Handle CONST_INT, CONST_DOUBLE,
5820 CONST_VECTOR, CONST, LABEL_REF and SYMBOL_REF if mode != VOIDmode,
5821 attempt to handle other expressions. Don't handle TLS SYMBOL_REFs.
5822 (concat_loc_descriptor, concatn_loc_descriptor,
5823 loc_descriptor_from_tree_1): Adjust loc_descriptor callers.
5824 (add_location_or_const_value_attribute): Likewise. For single
5825 location loc_lists attempt to use add_const_value_attribute
5826 for constant decls. Add DW_AT_const_value even if
5827 NOTE_VAR_LOCATION is VAR_LOCATION with CONSTANT_P or CONST_STRING
5828 in its expression.
5829 * cfgbuild.c (inside_basic_block_p): Handle debug insns.
5830 (control_flow_insn_p): Likewise.
5831 * tree-parloops.c (eliminate_local_variables_stmt): Handle debug stmt.
5832 (separate_decls_in_region_debug_bind): New.
5833 (separate_decls_in_region): Process debug bind stmts afterwards.
5834 * recog.c (verify_changes): Handle debug insns.
5835 (extract_insn): Likewise.
5836 (peephole2_optimize): Skip debug insns.
5837 * dse.c (scan_insn): Skip debug insns.
5838 * sel-sched-ir.c (return_nop_to_pool): Take full_tidying argument.
5839 Pass it on.
5840 (setup_id_for_insn): Handle debug insns.
5841 (maybe_tidy_empty_bb): Adjust whitespace.
5842 (tidy_control_flow): Skip debug insns.
5843 (sel_remove_insn): Adjust for debug insns.
5844 (sel_estimate_number_of_insns): Skip debug insns.
5845 (create_insn_rtx_from_pattern): Handle debug insns.
5846 (create_copy_of_insn_rtx): Likewise.
5847 * sel-sched-.h (sel_bb_end): Declare.
5848 (sel_bb_empty_or_nop_p): New.
5849 (get_all_loop_exits): Use it.
5850 (_eligible_successor_edge_p): Likewise.
5851 (return_nop_to_pool): Adjust.
5852 * tree-eh.c (tre_empty_eh_handler_p): Skip debug stmts.
5853 * ira-lives.c (process_bb_node_lives): Skip debug insns.
5854 * gimple-pretty-print.c (dump_gimple_debug): New.
5855 (dump_gimple_stmt): Use it.
5856 (dump_bb_header): Skip gimple debug stmts.
5857 * regmove.c (optimize_reg_copy_1): Discount debug insns.
5858 (fixup_match_2): Likewise.
5859 (regmove_backward_pass): Likewise. Simplify combined
5860 replacement. Handle debug insns.
5861 * function.c (instantiate_virtual_regs): Handle debug insns.
5862 * function.h (struct emit_status): Add x_cur_debug_insn_uid.
5863 * print-rtl.h: Include cselib.h.
5864 (print_rtx): Print VALUEs. Split out and recurse for VAR_LOCATIONs.
5865 * df.h (df_inns_rescan_debug_internal): Declare.
5866 * gcse.c (alloc_hash_table): Estimate n_insns.
5867 (cprop_insn): Don't regard debug insns as changes.
5868 (bypass_conditional_jumps): Skip debug insns.
5869 (one_pre_gcse_pass): Adjust.
5870 (one_code_hoisting_pass): Likewise.
5871 (compute_ld_motion_mems): Skip debug insns.
5872 (one_cprop_pass): Adjust.
5873 * tree-if-conv.c (tree_if_convert_stmt): Reset debug stmts.
5874 (if_convertible_stmt_p): Handle debug stmts.
5875 * init-regs.c (initialize_uninitialized_regs): Skip debug insns.
5876 * tree-vect-loop.c (vect_is_simple_reduction): Skip debug stmts.
5877 * ira-build.c (create_bb_allocnos): Skip debug insns.
5878 * tree-flow-inline.h (has_zero_uses): Discount debug stmts.
5879 (has_single_use): Likewise.
5880 (single_imm_use): Likewise.
5881 (num_imm_uses): Likewise.
5882 * tree-ssa-phiopt.c (empty_block_p): Skip debug stmts.
5883 * tree-ssa-coalesce.c (build_ssa_conflict_graph): Skip debug stmts.
5884 (create_outofssa_var_map): Likewise.
5885 * lower-subreg.c (adjust_decomposed_uses): New.
5886 (resolve_debug): New.
5887 (decompose_multiword_subregs): Use it.
5888 * tree-dfa.c (find_referenced_vars): Skip debug stmts.
5889 * emit-rtl.c: Include params.h.
5890 (cur_debug_insn_uid): Define.
5891 (set_new_first_and_last_insn): Set cur_debug_insn_uid too.
5892 (copy_rtx_if_shared_1): Handle debug insns.
5893 (reset_used_flags): Likewise.
5894 (set_used_flags): LIkewise.
5895 (get_max_insn_count): New.
5896 (next_nondebug_insn): New.
5897 (prev_nondebug_insn): New.
5898 (make_debug_insn_raw): New.
5899 (emit_insn_before_noloc): Handle debug insns.
5900 (emit_jump_insn_before_noloc): Likewise.
5901 (emit_call_insn_before_noloc): Likewise.
5902 (emit_debug_insn_before_noloc): New.
5903 (emit_insn_after_noloc): Handle debug insns.
5904 (emit_jump_insn_after_noloc): Likewise.
5905 (emit_call_insn_after_noloc): Likewise.
5906 (emit_debug_insn_after_noloc): Likewise.
5907 (emit_insn_after): Take loc from earlier non-debug insn.
5908 (emit_jump_insn_after): Likewise.
5909 (emit_call_insn_after): Likewise.
5910 (emit_debug_insn_after_setloc): New.
5911 (emit_debug_insn_after): New.
5912 (emit_insn_before): Take loc from later non-debug insn.
5913 (emit_jump_insn_before): Likewise.
5914 (emit_call_insn_before): Likewise.
5915 (emit_debug_insn_before_setloc): New.
5916 (emit_debug_insn_before): New.
5917 (emit_insn): Handle debug insns.
5918 (emit_debug_insn): New.
5919 (emit_jump_insn): Handle debug insns.
5920 (emit_call_insn): Likewise.
5921 (emit): Likewise.
5922 (init_emit): Take min-nondebug-insn-uid into account.
5923 Initialize cur_debug_insn_uid.
5924 (emit_copy_of_insn_after): Handle debug insns.
5925 * cfgexpand.c (gimple_assign_rhs_to_tree): Do not overwrite
5926 location of single rhs in place.
5927 (maybe_dump_rtl_for_gimple_stmt): Dump lineno.
5928 (floor_sdiv_adjust): New.
5929 (cell_sdiv_adjust): New.
5930 (cell_udiv_adjust): New.
5931 (round_sdiv_adjust): New.
5932 (round_udiv_adjust): New.
5933 (wrap_constant): Moved from cselib.
5934 (unwrap_constant): New.
5935 (expand_debug_expr): New.
5936 (expand_debug_locations): New.
5937 (expand_gimple_basic_block): Drop hiding redeclaration. Expand
5938 debug bind stmts.
5939 (gimple_expand_cfg): Expand debug locations.
5940 * cselib.c: Include tree-pass.h.
5941 (struct expand_value_data): New.
5942 (cselib_record_sets_hook): New.
5943 (PRESERVED_VALUE_P, LONG_TERM_PRESERVED_VALUE_P): New.
5944 (cselib_clear_table): Move, and implemnet in terms of...
5945 (cselib_reset_table_with_next_value): ... this.
5946 (cselib_get_next_unknown_value): New.
5947 (discard_useless_locs): Don't discard preserved values.
5948 (cselib_preserve_value): New.
5949 (cselib_preserved_value_p): New.
5950 (cselib_preserve_definitely): New.
5951 (cselib_clear_preserve): New.
5952 (cselib_preserve_only_values): New.
5953 (new_cselib_val): Take rtx argument. Dump it in details.
5954 (cselib_lookup_mem): Adjust.
5955 (expand_loc): Take regs_active in struct. Adjust. Silence
5956 dumps unless details are requested.
5957 (cselib_expand_value_rtx_cb): New.
5958 (cselib_expand_value_rtx): Rename and reimplment in terms of...
5959 (cselib_expand_value_rtx_1): ... this. Adjust. Silence dumps
5960 without details. Copy more subregs. Try to resolve values
5961 using a callback. Wrap constants.
5962 (cselib_subst_to_values): Adjust.
5963 (cselib_log_lookup): New.
5964 (cselib_lookup): Call it.
5965 (cselib_invalidate_regno): Don't count preserved values as useless.
5966 (cselib_invalidate_mem): Likewise.
5967 (cselib_record_set): Likewise.
5968 (struct set): Renamed to cselib_set, moved to cselib.h.
5969 (cselib_record_sets): Adjust. Call hook.
5970 (cselib_process_insn): Reset table when it would be cleared.
5971 (dump_cselib_val): New.
5972 (dump_cselib_table): New.
5973 * tree-cfgcleanup.c (tree_forwarded_block_p): Skip debug stmts.
5974 (remove_forwarder_block): Support moving debug stmts.
5975 * cselib.h (cselib_record_sets_hook): Declare.
5976 (cselib_expand_callback): New type.
5977 (cselib_expand_value_rtx_cb): Declare.
5978 (cselib_reset_table_with_next_value): Declare.
5979 (cselib_get_next_unknown_value): Declare.
5980 (cselib_preserve_value): Declare.
5981 (cselib_preserved_value_p): Declare.
5982 (cselib_preserve_only_values): Declare.
5983 (dump_cselib_table): Declare.
5984 * cfgcleanup.c (flow_find_cross_jump): Skip debug insns.
5985 (try_crossjump_to_edge): Likewise.
5986 (delete_unreachable_blocks): Remove dominant GIMPLE blocks after
5987 dominated blocks when debug stmts are present.
5988 * simplify-rtx.c (delegitimize_mem_from_attrs): New.
5989 * tree-ssa-live.c (remove_unused_locals): Skip debug stmts.
5990 (set_var_live_on_entry): Likewise.
5991 * loop-invariant.c (find_invariants_bb): Skip debug insns.
5992 * cfglayout.c (curr_location, last_location): Make static.
5993 (set_curr_insn_source_location): Don't avoid bouncing.
5994 (get_curr_insn_source_location): New.
5995 (get_curr_insn_block): New.
5996 (duplicate_insn_chain): Handle debug insns.
5997 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Propagate
5998 into debug stmts.
5999 * common.opt (fcompare-debug): Move to sort order.
6000 (fdump-unnumbered-links): Likewise.
6001 (fvar-tracking-assignments): New.
6002 (fvar-tracking-assignments-toggle): New.
6003 * tree-ssa-dce.c (mark_stmt_necessary): Don't mark blocks
6004 because of debug stmts.
6005 (mark_stmt_if_obviously_necessary): Mark debug stmts.
6006 (eliminate_unnecessary_stmts): Walk dominated blocks before
6007 dominators.
6008 * tree-ssa-ter.c (find_replaceable_in_bb): Skip debug stmts.
6009 * ira.c (memref_used_between_p): Skip debug insns.
6010 (update_equiv_regs): Likewise.
6011 * sched-deps.c (sd_lists_size): Accept empty list.
6012 (sd_init_insn): Mark debug insns.
6013 (sd_finish_insn): Unmark them.
6014 (sd_add_dep): Reject non-debug deps on debug insns.
6015 (fixup_sched_groups): Give debug insns group treatment.
6016 Skip debug insns.
6017 (sched_analyze_reg): Don't mark debug insns for sched before call.
6018 (sched_analyze_2): Handle debug insns.
6019 (sched_analyze_insn): Compute next non-debug insn. Handle debug
6020 insns.
6021 (deps_analyze_insn): Handle debug insns.
6022 (deps_start_bb): Skip debug insns.
6023 (init_deps): Initialize last_debug_insn.
6024 * tree-ssa.c (target_for_debug_bind): New.
6025 (find_released_ssa_name): New.
6026 (propagate_var_def_into_debug_stmts): New.
6027 (propagate_defs_into_debug_stmts): New.
6028 (verify_ssa): Skip debug bind stmts without values.
6029 (warn_uninialized_vars): Skip debug stmts.
6030 * target-def.h (TARGET_DELEGITIMIZE_ADDRESS): Set default.
6031 * rtl.c (rtx_equal_p_cb): Handle VALUEs.
6032 (rtx_equal_p): Likewise.
6033 * ira-costs.c (scan_one_insn): Skip debug insns.
6034 (process_bb_node_for_hard_reg_moves): Likewise.
6035 * rtl.h (DEBUG_INSN_P): New.
6036 (NONDEBUG_INSN_P): New.
6037 (MAY_HAVE_DEBUG_INSNS): New.
6038 (INSN_P): Accept debug insns.
6039 (RTX_FRAME_RELATED_P): Likewise.
6040 (INSN_DELETED_P): Likewise
6041 (PAT_VAR_LOCATION_DECL): New.
6042 (PAT_VAR_LOCATION_LOC): New.
6043 (PAT_VAR_OCATION_STATUS): New.
6044 (NOTE_VAR_LOCATION_DECL): Reimplement.
6045 (NOTE_VAR_LOCATION_LOC): Likewise.
6046 (NOTE_VAR_LOCATION_STATUS): Likewise.
6047 (INSN_VAR_LOCATION): New.
6048 (INSN_VAR_LOCATION_DECL): New.
6049 (INSN_VAR_LOCATION_LOC): New.
6050 (INSN_VAR_LOCATION_STATUS): New.
6051 (gen_rtx_UNKNOWN_VAR_LOC): New.
6052 (VAR_LOC_UNKNOWN_P): New.
6053 (NOTE_DURING_CALL_P): New.
6054 (SCHED_GROUP_P): Accept debug insns.
6055 (emit_debug_insn_before): Declare.
6056 (emit_debug_insn_before_noloc): Declare.
6057 (emit_debug_insn_beore_setloc): Declare.
6058 (emit_debug_insn_after): Declare.
6059 (emit_debug_insn_after_noloc): Declare.
6060 (emit_debug_insn_after_setloc): Declare.
6061 (emit_debug_insn): Declare.
6062 (make_debug_insn_raw): Declare.
6063 (prev_nondebug_insn): Declare.
6064 (next_nondebug_insn): Declare.
6065 (delegitimize_mem_from_attrs): Declare.
6066 (get_max_insn_count): Declare.
6067 (wrap_constant): Declare.
6068 (unwrap_constant): Declare.
6069 (get_curr_insn_source_location): Declare.
6070 (get_curr_insn_block): Declare.
6071 * tree-inline.c (insert_debug_decl_map): New.
6072 (processing_debug_stmt): New.
6073 (remap_decl): Don't create new mappings in debug stmts.
6074 (remap_gimple_op_r): Don't add references in debug stmts.
6075 (copy_tree_body_r): Likewise.
6076 (remap_gimple_stmt): Handle debug bind stmts.
6077 (copy_bb): Skip debug stmts.
6078 (copy_edges_for_bb): Likewise.
6079 (copy_debug_stmt): New.
6080 (copy_debug_stmts): New.
6081 (copy_body): Copy debug stmts at the end.
6082 (insert_init_debug_bind): New.
6083 (insert_init_stmt): Take id. Skip and emit debug stmts.
6084 (setup_one_parameter): Remap variable earlier, register debug mapping.
6085 (estimate_num_insns): Skip debug stmts.
6086 (expand_call_inline): Preserve debug_map.
6087 (optimize_inline_calls): Check for no debug_stmts left-overs.
6088 (unsave_expr_now): Preserve debug_map.
6089 (copy_gimple_seq_and_replace_locals): Likewise.
6090 (tree_function_versioning): Check for no debug_stmts left-overs.
6091 Init and destroy debug_map as needed. Split edges unconditionally.
6092 (build_duplicate_type): Init and destroy debug_map as needed.
6093 * tree-inline.h: Include gimple.h instead of pointer-set.h.
6094 (struct copy_body_data): Add debug_stmts and debug_map.
6095 * sched-int.h (struct ready_list): Add n_debug.
6096 (struct deps): Add last_debug_insn.
6097 (DEBUG_INSN_SCHED_P): New.
6098 (BOUNDARY_DEBUG_INSN_P): New.
6099 (SCHEDULE_DEBUG_INSN_P): New.
6100 (sd_iterator_cond): Accept empty list.
6101 * combine.c (create_log_links): Skip debug insns.
6102 (combine_instructions): Likewise.
6103 (cleanup_auto_inc_dec): New. From Jakub Jelinek: Make sure the
6104 return value is always unshared.
6105 (struct rtx_subst_pair): New.
6106 (auto_adjust_pair): New.
6107 (propagate_for_debug_subst): New.
6108 (propagate_for_debug): New.
6109 (try_combine): Skip debug insns. Propagate removed defs into
6110 debug insns.
6111 (next_nonnote_nondebug_insn): New.
6112 (distribute_notes): Use it. Skip debug insns.
6113 (distribute_links): Skip debug insns.
6114 * tree-outof-ssa.c (set_location_for_edge): Likewise.
6115 * resource.c (mark_target_live_regs): Likewise.
6116 * var-tracking.c: Include cselib.h and target.h.
6117 (enum micro_operation_type): Add MO_VAL_USE, MO_VAL_LOC, and
6118 MO_VAL_SET.
6119 (micro_operation_type_name): New.
6120 (enum emit_note_where): Add EMIT_NOTE_AFTER_CALL_INSN.
6121 (struct micro_operation_def): Update comments.
6122 (decl_or_value): New type. Use instead of decls.
6123 (struct emit_note_data_def): Add vars.
6124 (struct attrs_def): Use decl_or_value.
6125 (struct variable_tracking_info_def): Add permp, flooded.
6126 (struct location_chain_def): Update comment.
6127 (struct variable_part_def): Use decl_or_value.
6128 (struct variable_def): Make var_part a variable length array.
6129 (valvar_pool): New.
6130 (scratch_regs): New.
6131 (cselib_hook_called): New.
6132 (dv_is_decl_p): New.
6133 (dv_is_value_p): New.
6134 (dv_as_decl): New.
6135 (dv_as_value): New.
6136 (dv_as_opaque): New.
6137 (dv_onepart_p): New.
6138 (dv_pool): New.
6139 (IS_DECL_CODE): New.
6140 (check_value_is_not_decl): New.
6141 (dv_from_decl): New.
6142 (dv_from_value): New.
6143 (dv_htab_hash): New.
6144 (variable_htab_hash): Use it.
6145 (variable_htab_eq): Support values.
6146 (variable_htab_free): Free from the right pool.
6147 (attrs_list_member, attrs_list_insert): Use decl_or_value.
6148 (attrs_list_union): Adjust.
6149 (attrs_list_mpdv_union): New.
6150 (tie_break_pointers): New.
6151 (canon_value_cmp): New.
6152 (unshare_variable): Return possibly-modified slot.
6153 (vars_copy_1): Adjust.
6154 (var_reg_decl_set): Adjust. Split out of...
6155 (var_reg_set): ... this.
6156 (get_init_value): Adjust.
6157 (var_reg_delete_and_set): Adjust.
6158 (var_reg_delete): Adjust.
6159 (var_regno_delete): Adjust.
6160 (var_mem_decl_set): Split out of...
6161 (var_mem_set): ... this.
6162 (var_mem_delete_and_set): Adjust.
6163 (var_mem_delete): Adjust.
6164 (val_store): New.
6165 (val_reset): New.
6166 (val_resolve): New.
6167 (variable_union): Adjust. Speed up merge of 1-part vars.
6168 (variable_canonicalize): Use unshared slot.
6169 (VALUED_RECURSED_INTO): New.
6170 (find_loc_in_1pdv): New.
6171 (struct dfset_merge): New.
6172 (insert_into_intersection): New.
6173 (intersect_loc_chains): New.
6174 (loc_cmp): New.
6175 (canonicalize_loc_order_check): New.
6176 (canonicalize_values_mark): New.
6177 (canonicalize_values_star): New.
6178 (variable_merge_over_cur): New.
6179 (variable_merge_over_src): New.
6180 (dataflow_set_merge): New.
6181 (dataflow_set_equiv_regs): New.
6182 (remove_duplicate_values): New.
6183 (struct dfset_post_merge): New.
6184 (variable_post_merge_new_vals): New.
6185 (variable_post_merge_perm_vals): New.
6186 (dataflow_post_merge_adjust): New.
6187 (find_mem_expr_in_1pdv): New.
6188 (dataflow_set_preserve_mem_locs): New.
6189 (dataflow_set_remove_mem_locs): New.
6190 (dataflow_set_clear_at_call): New.
6191 (onepart_variable_different_p): New.
6192 (variable_different_p): Use it.
6193 (dataflow_set_different_1): Adjust. Make detailed dump more verbose.
6194 (track_expr_p): Add need_rtl parameter. Don't generate rtl
6195 if not needed.
6196 (track_loc_p): Pass it true.
6197 (struct count_use_info): New.
6198 (find_use_val): New.
6199 (replace_expr_with_values): New.
6200 (log_op_type): New.
6201 (use_type): New, partially split out of...
6202 (count_uses): ... this. Count new micro-ops.
6203 (count_uses_1): Adjust.
6204 (count_stores): Adjust.
6205 (count_with_sets): New.
6206 (VAL_NEEDS_RESOLUTION): New.
6207 (VAL_HOLDS_TRACK_EXPR): New.
6208 (VAL_EXPR_IS_COPIED): New.
6209 (VAL_EXPR_IS_CLOBBERED): New.
6210 (add_uses): Adjust. Generate new micro-ops.
6211 (add_uses_1): Adjust.
6212 (add_stores): Generate new micro-ops.
6213 (add_with_sets): New.
6214 (find_src_status): Adjust.
6215 (find_src_set_src): Adjust.
6216 (compute_bb_dataflow): Use dataflow_set_clear_at_call.
6217 Handle new micro-ops. Canonicalize value equivalances.
6218 (vt_find_locations): Compute total size of hash tables for
6219 dumping. Perform merge for var-tracking-assignments. Don't
6220 disregard single-block loops.
6221 (dump_attrs_list): Handle decl_or_value.
6222 (dump_variable): Take variable. Deal with decl_or_value.
6223 (dump_variable_slot): New.
6224 (dump_vars): Use it.
6225 (dump_dataflow_sets): Adjust.
6226 (set_slot_part): New, extended to support one-part variables
6227 after splitting out of...
6228 (set_variable_part): ... this.
6229 (clobber_slot_part): New, split out of...
6230 (clobber_variable_part): ... this.
6231 (delete_slot_part): New, split out of...
6232 (delete_variable_part): .... this.
6233 (check_wrap_constant): New.
6234 (vt_expand_loc_callback): New.
6235 (vt_expand_loc): New.
6236 (emit_note_insn_var_location): Adjust. Handle values. Handle
6237 EMIT_NOTE_AFTER_CALL_INSN.
6238 (emit_notes_for_differences_1): Adjust. Handle values.
6239 (emit_notes_for_differences_2): Likewise.
6240 (emit_notes_for_differences): Adjust.
6241 (emit_notes_in_bb): Take pointer to set. Emit AFTER_CALL_INSN notes.
6242 Adjust. Handle new micro-ops.
6243 (vt_add_function_parameters): Adjust. Create and bind values.
6244 (vt_initialize): Adjust. Initialize scratch_regs and
6245 valvar_pool, flooded and perm.. Initialize and use cselib. Log
6246 operations. Move some code to count_with_sets and add_with_sets.
6247 (delete_debug_insns): New.
6248 (vt_debug_insns_local): New.
6249 (vt_finalize): Release permp, valvar_pool, scratch_regs. Finish
6250 cselib.
6251 (var_tracking_main): If var-tracking-assignments is enabled
6252 but var-tracking isn't, delete debug insns and leave. Likewise
6253 if we exceed limits or fail the stack adjustments tests, and
6254 after all var-tracking processing.
6255 More in var-tracking, from Jakub Jelinek <jakub@redhat.com>:
6256 (dataflow_set): Add traversed_vars.
6257 (value_chain, const_value_chain): New typedefs.
6258 (value_chain_pool, value_chains): New variables.
6259 (value_chain_htab_hash, value_chain_htab_eq, add_value_chain,
6260 add_value_chains, add_cselib_value_chains, remove_value_chain,
6261 remove_value_chains, remove_cselib_value_chains): New functions.
6262 (shared_hash_find_slot_unshare_1, shared_hash_find_slot_1,
6263 shared_hash_find_slot_noinsert_1, shared_hash_find_1): New
6264 static inlines.
6265 (shared_hash_find_slot_unshare, shared_hash_find_slot,
6266 shared_hash_find_slot_noinsert, shared_hash_find): Update.
6267 (dst_can_be_shared): New variable.
6268 (unshare_variable): Unshare set->vars if shared, use shared_hash_*.
6269 Clear dst_can_be_shared. If set->traversed_vars is non-NULL and
6270 different from set->vars, look up slot again instead of using the
6271 passed in slot.
6272 (dataflow_set_init): Initialize traversed_vars.
6273 (variable_union): Use shared_hash_*. Use initially NO_INSERT
6274 lookup if set->vars is shared. Don't keep slot cleared before
6275 calling unshare_variable. Unshare set->vars if needed. Adjust
6276 unshare_variable callers. Clear dst_can_be_shared if needed.
6277 Even ->refcount == 1 vars must be unshared if set->vars is shared
6278 and var needs to be modified.
6279 (dataflow_set_union): Set traversed_vars during canonicalization.
6280 (VALUE_CHANGED, DECL_CHANGED): Define.
6281 (set_dv_changed, dv_changed_p): New static inlines.
6282 (track_expr_p): Clear DECL_CHANGED.
6283 (dump_dataflow_sets): Set it.
6284 (variable_was_changed): Call set_dv_changed.
6285 (emit_note_insn_var_location): Likewise.
6286 (changed_variables_stack): New variable.
6287 (check_changed_vars_1, check_changed_vars_2): New functions.
6288 (emit_notes_for_changes): Do nothing if changed_variables is
6289 empty. Traverse changed_variables with check_changed_vars_1,
6290 call check_changed_vars_2 on each changed_variables_stack entry.
6291 (emit_notes_in_bb): Add SET argument. Just clear it at the
6292 beginning, use it instead of local &set, don't destroy it at the end.
6293 (vt_emit_notes): Call dataflow_set_clear early on all
6294 VTI(bb)->out sets, never use them, instead use emit_notes_in_bb
6295 computed set, dataflow_set_clear also VTI(bb)->in when we are
6296 done with the basic block. Initialize changed_variables_stack,
6297 free it afterwards. If ENABLE_CHECKING verify that after noting
6298 differences to an empty set value_chains hash table is empty.
6299 (vt_initialize): Initialize value_chains and value_chain_pool.
6300 (vt_finalize): Delete value_chains htab, free value_chain_pool.
6301 (variable_tracking_main): Call dump_dataflow_sets before calling
6302 vt_emit_notes, not after it.
6303 * tree-flow.h (propagate_defs_into_debug_stmts): Declare.
6304 (propagate_var_def_into_debug_stmts): Declare.
6305 * df-problems.c (df_lr_bb_local_compute): Skip debug insns.
6306 (df_set_note): Reject debug insns.
6307 (df_whole_mw_reg_dead_p): Take added_notes_p argument. Don't
6308 add notes to debug insns.
6309 (df_note_bb_compute): Adjust. Likewise.
6310 (df_simulate_uses): Skip debug insns.
6311 (df_simulate_initialize_backwards): Likewise.
6312 * reg-stack.c (subst_stack_regs_in_debug_insn): New.
6313 (subst_stack_regs_pat): Reject debug insns.
6314 (convert_regs_1): Handle debug insns.
6315 * Makefile.in (TREE_INLINE_H): Take pointer-set.h from GIMPLE_H.
6316 (print-rtl.o): Depend on cselib.h.
6317 (cselib.o): Depend on TREE_PASS_H.
6318 (var-tracking.o): Depend on cselib.h and TARGET_H.
6319 * sched-rgn.c (rgn_estimate_number_of_insns): Discount debug insns.
6320 (init_ready_list): Skip boundary debug insns.
6321 (add_branch_dependences): Skip debug insns.
6322 (free_block_dependencies): Check for blocks with only debug insns.
6323 (compute_priorities): Likewise.
6324 * gimple.c (gss_for_code): Handle GIMPLE_DEBUG.
6325 (gimple_build_with_ops_stat): Take subcode as unsigned. Adjust
6326 all callers.
6327 (gimple_build_debug_bind_stat): New.
6328 (empty_body_p): Skip debug stmts.
6329 (gimple_has_side_effects): Likewise.
6330 (gimple_rhs_has_side_effects): Likewise.
6331 * gimple.h (enum gimple_debug_subcode, GIMPLE_DEBUG_BIND): New.
6332 (gimple_build_debug_bind_stat): Declare.
6333 (gimple_build_debug_bind): Define.
6334 (is_gimple_debug): New.
6335 (gimple_debug_bind_p): New.
6336 (gimple_debug_bind_get_var): New.
6337 (gimple_debug_bind_get_value): New.
6338 (gimple_debug_bind_get_value_ptr): New.
6339 (gimple_debug_bind_set_var): New.
6340 (gimple_debug_bind_set_value): New.
6341 (GIMPLE_DEBUG_BIND_NOVALUE): New internal temporary macro.
6342 (gimple_debug_bind_reset_value): New.
6343 (gimple_debug_bind_has_value_p): New.
6344 (gsi_next_nondebug): New.
6345 (gsi_prev_nondebug): New.
6346 (gsi_start_nondebug_bb): New.
6347 (gsi_last_nondebug_bb): New.
6348 * sched-vis.c (print_pattern): Handle VAR_LOCATION.
6349 (print_insn): Handle DEBUG_INSN.
6350 * tree-cfg.c (remove_bb): Walk stmts backwards. Let loc
6351 of first insn prevail.
6352 (first_stmt): Skip debug stmts.
6353 (first_non_label_stmt): Likewise.
6354 (last_stmt): Likewise.
6355 (has_zero_uses_1): New.
6356 (single_imm_use_1): New.
6357 (verify_gimple_debug): New.
6358 (verify_types_in_gimple_stmt): Handle debug stmts.
6359 (verify_stmt): Likewise.
6360 (debug_loop_num): Skip debug stmts.
6361 (remove_edge_and_dominated_blocks): Remove dominators last.
6362 * tree-ssa-reasssoc.c (rewrite_expr_tree): Propagate into debug stmts.
6363 (linearize_expr): Likewise.
6364 * config/i386/i386.c (ix86_delegitimize_address): Call
6365 default implementation.
6366 * config/ia64/ia64.c (ia64_safe_itanium_class): Handle debug insns.
6367 (group_barrier_needed): Skip debug insns.
6368 (emit_insn_group_barriers): Likewise.
6369 (emit_all_insn_group_barriers): Likewise.
6370 (ia64_variable_issue): Handle debug insns.
6371 (ia64_dfa_new_cycle): Likewise.
6372 (final_emit_insn_group_barriers): Skip debug insns.
6373 (ia64_dwarf2out_def_steady_cfa): Take frame argument. Don't
6374 def cfa without frame.
6375 (process_set): Likewise.
6376 (process_for_unwind_directive): Pass frame on.
6377 * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
6378 (rs6000_delegitimize_address): New.
6379 (rs6000_debug_adjust_cost): Handle debug insns.
6380 (is_microcoded_insn): Likewise.
6381 (is_cracked_insn): Likewise.
6382 (is_nonpipeline_insn): Likewise.
6383 (insn_must_be_first_in_group): Likewise.
6384 (insn_must_be_last_in_group): Likewise.
6385 (force_new_group): Likewise.
6386 * cfgrtl.c (rtl_split_block): Emit INSN_DELETED note if block
6387 contains only debug insns.
6388 (rtl_merge_blocks): Skip debug insns.
6389 (purge_dead_edges): Likewise.
6390 (rtl_block_ends_with_call_p): Skip debug insns.
6391 * dce.c (deletable_insn_p): Handle VAR_LOCATION.
6392 (mark_reg_dependencies): Skip debug insns.
6393 * params.def (PARAM_MIN_NONDEBUG_INSN_UID): New.
6394 * tree-ssanames.c (release_ssa_name): Propagate def into debug stmts.
6395 * tree-ssa-threadedge.c
6396 (record_temporary_equivalences_from_stmts): Skip debug stmts.
6397 * regcprop.c (replace_oldest_value_addr): Skip debug insns.
6398 (replace_oldest_value_mem): Use ALL_REGS for debug insns.
6399 (copyprop_hardreg_forward_1): Handle debug insns.
6400 * reload1.c (reload): Skip debug insns. Replace unassigned
6401 pseudos in debug insns with their equivalences.
6402 (eliminate_regs_in_insn): Skip debug insns.
6403 (emit_input_reload_insns): Skip debug insns at first, adjust
6404 them later.
6405 * tree-ssa-operands.c (add_virtual_operand): Reject debug stmts.
6406 (get_indirect_ref_operands): Pass opf_no_vops on.
6407 (get_expr_operands): Likewise. Skip debug stmts.
6408 (parse_ssa_operands): Scan debug insns with opf_no_vops.
6409
6410 2009-09-01 Richard Henderson <rth@redhat.com>
6411
6412 * tree-ssa-ccp.c (ccp_initialize): Make sure to simulate
6413 stmt_ends_pp_p statements at least once.
6414 * tree-vrp.c (vrp_initialize): Likewise.
6415 (vrp_visit_stmt): Be prepared for non-interesting stmts.
6416
6417 2009-09-01 Dodji Seketeli <dodji@redhat.com>
6418
6419 PR bootstrap/41205
6420 Fix AIX bootstrap after PR debug/30161
6421 * dwarf2out.c (make_ith_pack_parameter_name): Don't used strnlen
6422 that is a GNU extension.
6423 (tmpl_value_parm_die_table): Move the definition of this global
6424 outside #ifdef DWARF2_DEBUGGING_INFO region.
6425
6426 2009-09-01 Richard Guenther <rguenther@suse.de>
6427
6428 * tree.c (tree_expr_size): New function.
6429 * tree.h (tree_expr_size): Declare.
6430 * rtlanal.c (rtx_addr_can_trap_p_1): Adjust comment.
6431 * builtins.c (fold_builtin_memory_op): Use tree_expr_size.
6432 * langhooks.c (lhd_expr_size): Remove.
6433 * langhooks.h (struct lang_hooks): Remove expr_size.
6434 * explow.c (expr_size): Use tree_expr_size.
6435 (int_expr_size): Likewise.
6436 * langhooks-def.h (lhd_expr_size): Remove.
6437 (LANG_HOOKS_EXPR_SIZE): Likewise.
6438 (LANG_HOOKS_INITIALIZER): Adjust.
6439
6440 2009-09-01 Richard Guenther <rguenther@suse.de>
6441
6442 * tree-flow.h (mark_addressable): Move declaration ...
6443 * tree.h (mark_addressable): ... here.
6444 * stmt.c (expand_asm_operands): Use mark_addressable, not
6445 lang_hooks.mark_addressable.
6446 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Remove
6447 LANG_HOOKS_MARK_ADDRESSABLE.
6448 * langhooks.h (struct lang_hooks): Remove mark_addressable langhook.
6449 * c-objc-common.h (LANG_HOOKS_MARK_ADDRESSABLE): Remove.
6450
6451 2009-08-31 Chris Demetriou <cgd@google.com>
6452
6453 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Never
6454 vectorize if not TARGET_SSE2.
6455
6456 2009-08-31 DJ Delorie <dj@redhat.com>
6457
6458 * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Exclude coprocessor
6459 registers if no coprocessor is enabled.
6460
6461 2009-08-31 Dodji Seketeli <dodji@redhat.com>
6462
6463 PR debug/30161
6464 * cgraph.h (cgraph_get_node): Declare ...
6465 * cgraph.c (cgraph_get_node): ... new function.
6466 * dwarf2out.c (gen_generic_params_dies,
6467 generic_parameter_die, tree_add_const_value_attribute_for_decl,
6468 make_ith_pack_parameter_name,
6469 append_entry_to_tmpl_value_parm_die_table,
6470 gen_remaining_tmpl_value_param_die_attribute): New functions.
6471 (gen_subprogram_die): Generate debug info for template parameters
6472 if debug info level is higher than DINFO_LEVEL_TERSE.
6473 Use tree_add_const_value_attribute_for_decl instead of
6474 tree_add_const_value_attribute.
6475 (gen_const_die): Use tree_add_const_value_attribute_for_decl
6476 instead of tree_add_const_value_attribute.
6477 (gen_struct_or_union_type_die): Generate debug
6478 info for template parameters if debug info level is higher than
6479 DINFO_LEVEL_TERSE.
6480 (tree_add_const_value_attribute): Handle integral and pointer
6481 constants. Update comment.
6482 (dwarf_tag_name): Support DW_TAG_GNU_template_template_param.
6483 (dwarf_attr_name): Support DW_AT_GNU_template_name.
6484 (reference_to_unused): Fix thinko. Remove redundant predicates from
6485 tests.
6486 (tree_add_const_value_attribute): Make this work for constant
6487 expressions only.
6488 tree_add_const_value_attribute_for_decl is to be used for variable
6489 DECLs now.
6490 (add_location_or_const_value_attribute): Use
6491 tree_add_const_value_attribute_for_decl now.
6492 (dwarf2out_finish): Emit the DW_AT_const_value attribute of
6493 DW_TAG_template_value_param DIEs after function DIEs have been
6494 emitted.
6495 * langhooks.h (lang_hooks_for_types): Add
6496 get_argument_pack_elems.
6497 (lang_hooks_for_decls): Add generic_generic_parameter_decl_p.
6498 (lang_hooks): Added get_innermost_generic_parms,
6499 get_innermost_generic_args.
6500 * langhooks-def.h (LANG_HOOKS_GET_INNERMOST_GENERIC_PARMS,
6501 LANG_HOOKS_GET_INNERMOST_GENERIC_ARGS,
6502 LANG_HOOKS_GET_ARGUMENT_PACK_ELEMS,
6503 LANG_HOOKS_GENERIC_GENERIC_PARAMETER_DECL_P): New language hooks.
6504
6505 2009-08-31 DJ Delorie <dj@redhat.com>
6506
6507 * config/mep/mep.c (machine_function): Add frame_locked flag. Set
6508 it once we start generating the prologue or epilogue.
6509 (mep_call_saves_register): If the frame is locked, re-use
6510 cached values.
6511 (mep_assign_save_slots): New, broken out from mep_expand_prologue.
6512 (mep_expand_prologue): Call it.
6513 (mep_expand_epilogue): Likewise.
6514 (mep_start_function): Use the same logic as mep_expand_prologue.
6515 (mep_pass_by_reference): Make logic more readable.
6516 (mep_return_in_memory): Zero-sized objects are passed in memory.
6517 (mep_reorg_noframe): Make sure we have accurate REG_DEAD notes.
6518
6519 2009-08-31 Richard Guenther <rguenther@suse.de>
6520
6521 * builtins.c (fold_builtin_memory_op): Use the alias oracle
6522 to query if the memory regions for memmove overlap.
6523 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Relax the
6524 asserts on pointers, instead deal with odd trees.
6525 (ptr_derefs_may_alias_p): Likewise.
6526 (refs_may_alias_p_1): Constructor bases also never alias.
6527
6528 2009-08-31 Gerald Pfeifer <gerald@pfeifer.com>
6529
6530 * doc/install.texi (Final install): Adjust reference on where to
6531 order printed manuals.
6532
6533 2009-08-30 Olivier Hainque <hainque@adacore.com>
6534
6535 * dwarf2out.c (switch_to_frame_table_section): Move
6536 definition prior to first use.
6537
6538 2009-08-30 Richard Guenther <rguenther@suse.de>
6539
6540 PR tree-optimization/41186
6541 * tree-ssa-alias.c (ptr_deref_may_alias_ref_p): Remove.
6542 (ao_ref_init_from_ptr_and_size): New function.
6543 (ref_maybe_used_by_call_p_1): Be more precise tracking
6544 used ranges for builtin functions.
6545 (ref_maybe_used_by_call_p): Adjust.
6546 (call_may_clobber_ref_p_1): Be more precise tracking clobbered
6547 ranges for builtin functions.
6548 * tree-ssa-alias.h (ao_ref_init_from_ptr_and_size): Declare.
6549
6550 2009-08-30 Alan Modra <amodra@bigpond.net.au>
6551
6552 PR target/41081
6553 * fwprop.c (get_reg_use_in): Delete.
6554 (free_load_extend): New function.
6555 (forward_propagate_subreg): Use it.
6556
6557 2009-08-29 Kaz Kojima <kkojima@gcc.gnu.org>
6558
6559 * config.gcc (sh*-*-elf): Add superh stuff only for sh*-superh-elf.
6560
6561 2009-08-29 Kai Tietz<kai.tietz@onevision.com>
6562
6563 PR/41184
6564 * config/i386.c (ix86_expand_epilogue): Correct stack adjustment for
6565 padding.
6566
6567 2009-08-29 Douglas B Rupp <rupp@gnat.com>
6568
6569 * crtstuff.c (__do_global_dtors_aux): Use atexit if no
6570 fini or fini_array section.
6571
6572 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
6573
6574 * graphite-dependences.c (graphite_legal_transform_bb): Call
6575 pbb_remove_duplicate_pdrs.
6576 * graphite-poly.c (can_collapse_pdr): Removed.
6577 (pdr_find_duplicate): Removed.
6578 (can_collapse_pdrs): New.
6579 (pbb_remove_duplicate_pdrs): New.
6580 (new_poly_dr): Do not look for duplicates.
6581 * graphite-poly.h (struct poly_bb): New field pdr_duplicates_removed.
6582 (PBB_PDR_DUPLICATES_REMOVED): New.
6583 (pbb_remove_duplicate_pdrs): Declared.
6584
6585 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
6586
6587 * graphite-interchange.c (pbb_interchange_profitable_p): Adjust
6588 the strides by multiplying by PDR_NB_REFS.
6589 * graphite-poly.c (can_collapse_pdr): New.
6590 (pdr_find_duplicate): New.
6591 (new_poly_dr): Call pdr_find_duplicate. Collapse duplicate PDRs.
6592 Initialize PDR_NB_REFS.
6593 * graphite-poly.h (struct poly_dr): Add field nb_refs.
6594 (PDR_NB_REFS): New.
6595 (new_poly_dr): Number of subscripts is a graphite_dim_t.
6596
6597 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
6598
6599 PR middle-end/40965
6600 * graphite-poly.c (apply_poly_transforms): Remove legality test before
6601 any transform.
6602
6603 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
6604
6605 * graphite-dependences.c (pddr_original_scattering): Return NULL
6606 for read-read dependence relations.
6607 * graphite-poly.h (enum poly_dr_type): Fix comment.
6608 (pdr_read_p): New.
6609 (pdr_write_p): New.
6610 (pdr_may_write_p): New.
6611
6612 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
6613
6614 * graphite-poly.h (enum POLY_DR_TYPE): Renamed poly_dr_type.
6615 (struct poly_dr): Same.
6616 (new_poly_dr): Same.
6617 * graphite-poly.c (new_poly_dr): Same.
6618 * graphite-dependences.c (dot_deps): Disable call to system.
6619
6620 2009-08-28 Cary Coutant <ccoutant@google.com>
6621
6622 PR debug/41063
6623 * dwarf2out.c (gen_type_die_with_usage): Use proper context for
6624 struct/union/enum types local to a function.
6625
6626 2009-08-28 Konrad Trifunovic <konrad.trifunovic@gmail.com>
6627 Sebastian Pop <sebastian.pop@amd.com>
6628
6629 * graphite-blocking.c (pbb_strip_mine_loop_depth): Renamed
6630 pbb_strip_mine_time_depth. Changed the implementation so that
6631 transformation is expressed as a transformation on
6632 time (scatttering) dimensions. Also, ensures that the 2d+1
6633 scheduling format is preserved.
6634 (pbb_strip_mine_profitable_p): Profitability is based on the
6635 iteration number of a given time (scattering) dimension,
6636 and not on a original loop depth dimension.
6637 (pbb_strip_mine): Call pbb_number_of_iterations_at_time.
6638 (pbb_do_strip_mine): Call psct_dynamic_dim.
6639 * graphite-poly.c (pbb_number_of_iterations_at_time): New.
6640 * graphite-poly.h (pbb_number_of_iterations_at_time): Declared.
6641 (pbb_nb_dynamic_scattering_transform): New.
6642 (psct_dynamic_dim): New.
6643
6644 2009-08-28 Konrad Trifunovic <konrad.trifunovic@gmail.com>
6645
6646 * graphite-ppl.c (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
6647 * graphite-ppl.h (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
6648 * graphite-poly.c (pbb_number_of_iterations): Rename ppl_max_for_le.
6649 * graphite-interchange.c (build_linearized_memory_access): Same.
6650 (memory_stride_in_loop): Same.
6651
6652 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
6653
6654 * graphite-dependences.c (pddr_original_scattering): New.
6655 (graphite_legal_transform_dr): Call pddr_original_scattering.
6656 (dot_deps_1): New.
6657 (dot_deps): New.
6658 * graphite-dependences.h (dot_deps): Declared.
6659 * graphite-poly.c (new_poly_dr): Initialize PDR_ID.
6660 (print_pdr): Print PDR_ID.
6661 * graphite-poly.h (struct poly_dr): Add field id.
6662 (PDR_ID): New.
6663 (pbb_index): New.
6664 * graphite-scop-detection.c (dot_all_scops_1): Cleanup comment.
6665
6666 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
6667
6668 * graphite-dependences.c (graphite_carried_dependence_level_k): Do
6669 not delete the original dependence relation.
6670
6671 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
6672
6673 * graphite-dependences.c (new_poly_dr_pair): Renamed new_poly_ddr.
6674 (eq_poly_dr_pair_p): Renamed eq_poly_ddr_p.
6675 (hash_poly_dr_pair_p): Renamed hash_poly_ddr_p.
6676 (free_poly_ddr): New.
6677 (pddr_is_empty): New.
6678 (dependence_polyhedron_1): Now returns a poly_ddr_p.
6679 (dependence_polyhedron): Same. Remove useless gcc_assert.
6680 Remove fprintfs.
6681 (graphite_legal_transform_dr): Call pddr_is_empty and free_poly_ddr.
6682 (graphite_carried_dependence_level_k): Call pddr_is_empty.
6683 * graphite-dependences.h (enum poly_dependence_kind): New.
6684 (poly_dr_pair): Renamed poly_ddr. Added a field kind.
6685 (PDRP_SOURCE): Renamed PDDR_SOURCE.
6686 (PDRP_SINK): Renamed PDDR_SINK.
6687 (PDRP_DDP): Renamed PDDR_DDP.
6688 (PDDR_KIND): New.
6689 (free_poly_ddr): Declared.
6690 * graphite-poly.c (new_scop): Use the new hash function names.
6691 * graphite-poly.h (struct scop): Renamed field original_pdr_pairs
6692 into original_pddrs.
6693 (SCOP_ORIGINAL_PDR_PAIRS): Renamed SCOP_ORIGINAL_PDDRS.
6694
6695 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
6696
6697 * cfgloopmanip.c (create_empty_loop_on_edge): Generate upper
6698 bounds with LT_EXPR to make niter analysis more precise on code
6699 generated by Graphite.
6700
6701 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
6702
6703 * graphite-dependences.c (graphite_legal_transform_dr): Fix formatting.
6704 (graphite_legal_transform_bb): Same.
6705 (poly_drs_may_alias_p): Same.
6706
6707 2009-08-28 Richard Guenther <rguenther@suse.de>
6708
6709 * tree.def: Remove note about obsolete TYPE_NONCOPIED_PARTS.
6710
6711 2009-08-28 Jan Beulich <jbeulich@novell.com>
6712
6713 * config/i386/netware.c: Include langhooks.h.
6714 (i386_nlm_encode_section_info): Simplify.
6715 (netware_override_options): Delete.
6716 * config/i386/netware.h (netware_override_options): Delete
6717 declaration.
6718 (OVERRIDE_OPTIONS): Delete definition.
6719 (SUBTARGET_OVERRIDE_OPTIONS): Define.
6720 (ASM_COMMENT_START): Define.
6721 * config/i386/nwld.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Define.
6722
6723 2009-08-28 Jan Beulich <jbeulich@novell.com>
6724
6725 * configure.ac: For in-tree ld, do a plain version check to
6726 determine whether comdat groups are supported.
6727 * configure: Regenerate.
6728
6729 2009-08-28 Olivier Hainque <hainque@adacore.com>
6730
6731 * collect2.c (DO_COLLECT_EXPORT_LIST): New internal macro,
6732 always defined. Reflect definition or absence of such for
6733 COLLECT_EXPORT_LIST. Readability helper.
6734 (scanfilter): New enum, to help control what symbols
6735 are to be considered or ignored by scan_prog_file.
6736 (enum pass): Rename as "scanpass", moved together with scanfilter
6737 prior to scan_prog_file's prototype.
6738 (scan_prog_file): Accept and honor scanpass and scanfilter arguments.
6739 Group prototype with the scanpass/scanfilter definitions, factorize
6740 head comments for the several implementations at the prototype.
6741 (main): Reorganize the first pass link control to let AIX
6742 drag only the needed frame tables in executables. Prevent
6743 frame tables collection during the scan aimed at static ctors.
6744 Pre-link and scan for frame tables later to compensate.
6745 * doc/tm.texi (ASM_OUTPUT_DWARF_TABLE_REF): New macro.
6746 A C statement to issue assembly directives that create a reference
6747 to the given DWARF table identifier label from the current function
6748 section.
6749 * dwarf2out.c (switch_to_eh_frame_section): Add a BACK argument
6750 to differentiate first time section entry. Only emit a .data
6751 tables start identifier label the first time around.
6752 (switch_to_frame_table_section): New function. Helper for
6753 output_call_frame_info to switch possibly BACK into the eh_frame
6754 or the debug_frame section depending on FOR_EH.
6755 (output_call_frame_info): Use helper to first enter the proper
6756 frame section.
6757 (output_fde): Use ASM_OUTPUT_DWARF_TABLE_REF when defined to
6758 emit a link to the frame table start label from each function
6759 section.
6760 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_table_ref):
6761 New function. Implementation of ASM_OUTPUT_DWARF_TABLE_REF.
6762 * config/rs6000/rs6000-protos.h: Declare it.
6763 * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Define.
6764
6765 2009-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
6766
6767 * config/sh/sh.c (split_branches): Check the result of
6768 next_active_insn.
6769
6770 2009-08-27 Steve Ellcey <sje@cup.hp.com>
6771
6772 * config/ia64/hpux.h (LIB_SPEC): Add -lrt for when
6773 using -pthread -fopenmp
6774
6775 2009-08-27 Gerald Pfeifer <gerald@pfeifer.com>
6776
6777 * doc/service.texi (service directory): Update URL.
6778
6779 2009-08-27 Uros Bizjak <ubizjak@gmail.com>
6780
6781 PR rtl-optimization/40861
6782 * simplify-rtx.c (simplify_subreg): Do not call simplify_gen_subreg to
6783 extract word from a multi-word subreg for negative byte positions.
6784
6785 2009-08-27 Tristan Gingold <gingold@adacore.com>
6786 Douglas B Rupp <rupp@gnat.com>
6787
6788 * config/ia64/ia64.c (ia64_attribute_table): Add "common_object" entry.
6789 (SECTION_VMS_OVERLAY): Define.
6790 (ia64_vms_common_object_attribute): Added. Handle the "common_object"
6791 attribute.
6792 (ia64_vms_elf_asm_named_section): Added. Generate .section pseudo-op
6793 for common_object.
6794 (ia64_vms_output_aligned_decl_common): Added. Generate pseudo-op for
6795 common_object declarations.
6796 (ia64_section_type_flags): Set section flag for common_object.
6797 * config/ia64/ia64-protos.h
6798 (ia64_vms_output_aligned_decl_common): Declare.
6799 (ia64_vms_elf_asm_named_section): Declare.
6800
6801 2009-08-27 Michael Matz <matz@suse.de>
6802
6803 * expr.c (expand_expr_real_2): New function taking exploded
6804 unary or binary expression, split out from ...
6805 (expand_expr_real_1): ... here. Move over all unary/binary
6806 switch parts to above function, in particular these codes:
6807 PAREN_EXPR, NOP_EXPR, CONVERT_EXPR, POINTER_PLUS_EXPR, PLUS_EXPR,
6808 MINUS_EXPR, MULT_EXPR, TRUNC_DIV_EXPR, FLOOR_DIV_EXPR, CEIL_DIV_EXPR,
6809 ROUND_DIV_EXPR, EXACT_DIV_EXPR, RDIV_EXPR, TRUNC_MOD_EXPR,
6810 FLOOR_MOD_EXPR, CEIL_MOD_EXPR, ROUND_MOD_EXPR, FIXED_CONVERT_EXPR,
6811 FIX_TRUNC_EXPR, FLOAT_EXPR, NEGATE_EXPR, ABS_EXPR, MAX_EXPR, MIN_EXPR,
6812 BIT_NOT_EXPR, TRUTH_AND_EXPR, BIT_AND_EXPR, TRUTH_OR_EXPR,
6813 BIT_IOR_EXPR, TRUTH_XOR_EXPR, BIT_XOR_EXPR, LROTATE_EXPR, RROTATE_EXPR,
6814 LSHIFT_EXPR, RSHIFT_EXPR, LT_EXPR, LE_EXPR, GT_EXPR, GE_EXPR, EQ_EXPR,
6815 NE_EXPR, UNORDERED_EXPR, ORDERED_EXPR, UNLT_EXPR, UNLE_EXPR, UNGT_EXPR,
6816 UNGE_EXPR, UNEQ_EXPR, LTGT_EXPR, TRUTH_NOT_EXPR, COMPLEX_EXPR,
6817 WIDEN_SUM_EXPR, REDUC_MAX_EXPR, REDUC_MIN_EXPR, REDUC_PLUS_EXPR,
6818 VEC_EXTRACT_EVEN_EXPR, VEC_EXTRACT_ODD_EXPR, VEC_INTERLEAVE_HIGH_EXPR,
6819 VEC_INTERLEAVE_LOW_EXPR, VEC_LSHIFT_EXPR, VEC_RSHIFT_EXPR,
6820 VEC_UNPACK_HI_EXPR, VEC_UNPACK_LO_EXPR, VEC_UNPACK_FLOAT_HI_EXPR,
6821 VEC_UNPACK_FLOAT_LO_EXPR, VEC_WIDEN_MULT_HI_EXPR,
6822 VEC_WIDEN_MULT_LO_EXPR, VEC_PACK_TRUNC_EXPR, VEC_PACK_SAT_EXPR,
6823 VEC_PACK_FIX_TRUNC_EXPR.
6824 (<case PAREN_EXPR>): Call set_mem_attributes() with type, not the
6825 full expression.
6826
6827 2009-08-27 Richard Guenther <rguenther@suse.de>
6828
6829 * gengtype.c (main): Handle uint64_t.
6830 * ipa-utils.c (get_base_var): Indent properly.
6831 * tree-ssa-live.c (debug_scope_block): New function.
6832 * tree-flow.h (debug_scope_block): Declare.
6833 * tree-ssa-copy.c (replace_exp_1): Add vertical space.
6834 * basic-block.h (enum profile_status): Rename to
6835 enum profile_status_d.
6836 (x_profile_status): Adjust type.
6837
6838 2009-08-27 Dodji Seketeli <dodji@redhat.com>
6839
6840 PR debug/41170
6841 * dwarf2out.c (get_context_die): Declare this static function.
6842 (gen_type_die_with_usage): Make sure a DIE is a generated for
6843 the context of a typedef.
6844
6845 2009-08-26 Anatoly Sokolov <aesok@post.ru>
6846
6847 * doc/invoke.texi (AVR Options): Remove documentation of -minit-stack
6848 switch.
6849
6850 2009-08-26 Richard Sandiford <rdsandiford@googlemail.com>
6851
6852 * config/mips/mips-protos.h (mips_output_sync): Declare.
6853 (mips_sync_loop_insns): Likewise.
6854 (mips_output_sync_loop): Replace first two parameters with an rtx.
6855 * config/mips/mips.c (mips_multi_member): New structure.
6856 (mips_multi_members): New variable.
6857 (mips_multi_start): New function.
6858 (mips_multi_add): Likewise.
6859 (mips_multi_add_insn): Likewise.
6860 (mips_multi_add_label): Likewise.
6861 (mips_multi_last_index): Likewise.
6862 (mips_multi_copy_insn): Likewise.
6863 (mips_multi_set_operand): Likewise.
6864 (mips_multi_write): Likewise.
6865 (mips_print_operand_punctuation): Remove '%|' and '%-'.
6866 (mips_init_print_operand_punct): Update accordingly.
6867 (mips_start_ll_sc_sync_block): New function.
6868 (mips_end_ll_sc_sync_block): Likewise.
6869 (mips_output_sync): Likewise.
6870 (mips_sync_insn1_template): Likewise.
6871 (mips_sync_insn2_template): Likewise.
6872 (mips_get_sync_operand): Likewise.
6873 (mips_process_sync_loop): Likewise.
6874 (mips_output_sync_loop): Use mips_process_sync_loop.
6875 (mips_sync_loop_insns): New function.
6876 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Delete.
6877 (MIPS_COMPARE_AND_SWAP_12): Likewise.
6878 (MIPS_COMPARE_AND_SWAP_12_ZERO_OP): Likewise.
6879 (MIPS_COMPARE_AND_SWAP_12_NONZERO_OP): Likewise.
6880 (MIPS_SYNC_OP, MIPS_SYNC_OP_12): Likewise.
6881 (MIPS_SYNC_OP_12_AND, MIPS_SYNC_OP_12_XOR): Likewise.
6882 (MIPS_SYNC_OLD_OP_12): Likewise.
6883 (MIPS_SYNC_OLD_OP_12_AND, MIPS_SYNC_OLD_OP_12_XOR): Likewise.
6884 (MIPS_SYNC_NEW_OP_12): Likewise.
6885 (MIPS_SYNC_NEW_OP_12_AND, MIPS_SYNC_NEW_OP_12_XOR): Likewise.
6886 (MIPS_SYNC_OLD_OP, MIPS_SYNC_NEW_OP): Likewise.
6887 (MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND, MIPS_SYNC_NEW_NAND): Likewise.
6888 (MIPS_SYNC_EXCHANGE, MIPS_SYNC_EXCHANGE_12): Likewise.
6889 (MIPS_SYNC_EXCHANGE_12_ZERO_OP): Likewise.
6890 (MIPS_SYNC_EXCHANGE_12_NONZER_OP): Likewise.
6891 * config/mips/mips.md (sync_mem): New attribute.
6892 (sync_oldval, sync_newval, sync_inclusive_mask): Likewise.
6893 (sync_exclusive_mask, sync_required_oldval): Likewise.
6894 (sync_insn1_op2, sync_insn1, sync_insn2): Likewise.
6895 (sync_release_barrier): Likewise.
6896 (length): Handle sync loops.
6897 (sync): Use mips_output_sync.
6898 * config/mips/sync.md (*memory_barrier): Use mips_output_sync.
6899 (sync_compare_and_swap<mode>): Set the new sync_* attributes
6900 and use mips_output_sync_loop.
6901 (compare_and_swap_12, sync_add<mode>, sync_<optab>_12): Likewise.
6902 (sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12): Likewise.
6903 (sync_old_nand_12, sync_new_nand_12, sync_sub<mode>): Likewise.
6904 (sync_old_add<mode>, sync_old_sub<mode>): Likewise.
6905 (sync_new_add<mode>, sync_new_sub<mode>): Likewise.
6906 (sync_<optab><mode>, sync_old_<optab><mode>): Likewise.
6907 (sync_new_<optab><mode>, sync_nand<mode>): Likewise.
6908 (sync_old_nand<mode>, sync_new_nand<mode>): Likewise.
6909 (sync_lock_test_and_set<mode>, test_and_set_12): Likewise.
6910
6911 2009-08-26 Richard Guenther <rguenther@suse.de>
6912
6913 PR middle-end/41163
6914 * gimplify.c (gimplify_addr_expr): Canonicalize ADDR_EXPRs if
6915 the types to not match.
6916 * tree-cfg.c (verify_gimple_assign_single): Adjust ADDR_EXPR
6917 verification.
6918 * tree-ssa.c (useless_type_conversion_p): Conversions to
6919 pointers to unprototyped functions are useless.
6920
6921 2009-08-26 Richard Guenther <rguenther@suse.de>
6922
6923 * tree-ssa-structalias.c (create_variable_info_for): Remove strange
6924 whole-program condition, prepare to be called for non-globals.
6925 (intra_create_variable_infos): For restrict qualified DECL_BY_REFERENCE
6926 params build a representative with known type and track its fields.
6927
6928 2009-08-26 Uros Bizjak <ubizjak@gmail.com>
6929
6930 * config/alpha/sync.md: Update comment about unpredictable LL/SC lock
6931 clearing by a taken branch.
6932 (sync_<fetchop_name><mode>): Split when epilogue_completed is set,
6933 effectively after bbro pass.
6934 (sync_nand<mode>): Ditto.
6935 (sync_old_<fetchop_name><mode>): Ditto.
6936 (sync_old_nand<mode>): Ditto.
6937 (sync_new_<fetchop_name><mode>): Dito.
6938 (sync_new_nand<mode>): Ditto.
6939 (sync_compare_and_swap<mode>_1): Ditto.
6940 (*sync_compare_and_swap<mode>): Ditto.
6941 (sync_lock_test_and_set<mode>_1): Ditto.
6942 ("sync_lock_test_and_set<mode>): Ditto.
6943
6944 2009-08-25 Douglas B Rupp <rupp@gnat.com>
6945
6946 * hwint.h (HOST_LONG_FORMAT): New macro
6947 * bitmap.c, c-decl.c, mips-tfile.c, print-rtl.c, print-tree.c:
6948 Use HOST_PTR_PRINTF.
6949 * system.h (HOST_PTR_PRINTF): Resurrect old macro
6950 * doc/hostconfig.texi (HOST_LONG_FORMAT): Document.
6951 (HOST_PTR_PRINTF): Document.
6952
6953 2009-08-25 Jan Hubicka <jh@suse.cz>
6954
6955 * config/i386/bmmintrin.h: Replace by #error.
6956
6957 Revert:
6958 Michael Meissner <michael.meissner@amd.com>
6959 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
6960 Tony Linthicum <tony.linthicum@amd.com>
6961
6962 * config/i386/i386.h (TARGET_SSE5): New macro for SSE5.
6963 (TARGET_ROUND): New macro for the round/ptest instructions which
6964 are shared between SSE4.1 and SSE5.
6965 (OPTION_MASK_ISA_ROUND): Ditto.
6966 (OPTION_ISA_ROUND): Ditto.
6967 (TARGET_FUSED_MADD): New macro for -mfused-madd swtich.
6968 (TARGET_CPU_CPP_BUILTINS): Add SSE5 support.
6969
6970 * config/i386/i386.opt (-msse5): New switch for SSE5 support.
6971 (-mfused-madd): New switch to give users control over whether the
6972 compiler optimizes to use the multiply/add SSE5 instructions.
6973
6974 * config/i386/i386.c (enum pta_flags): Add PTA_SSE5.
6975 (ix86_handle_option): Turn off 3dnow if -msse5.
6976 (override_options): Add SSE5 support.
6977 (print_operand): %Y prints comparison codes for SSE5 com/pcom
6978 instructions.
6979 (ix86_expand_sse_movcc): Add SSE5 support.
6980 (ix86_expand_sse5_unpack): New function to use pperm to unpack a
6981 vector type to the next largest size.
6982 (ix86_expand_sse5_pack): New function to use pperm to pack a
6983 vector type to the next smallest size.
6984 (IX86_BUILTIN_FMADDSS): New for SSE5 intrinsic.
6985 (IX86_BUILTIN_FMADDSD): Ditto.
6986 (IX86_BUILTIN_FMADDPS): Ditto.
6987 (IX86_BUILTIN_FMADDPD): Ditto.
6988 (IX86_BUILTIN_FMSUBSS): Ditto.
6989 (IX86_BUILTIN_FMSUBSD): Ditto.
6990 (IX86_BUILTIN_FMSUBPS): Ditto.
6991 (IX86_BUILTIN_FMSUBPD): Ditto.
6992 (IX86_BUILTIN_FNMADDSS): Ditto.
6993 (IX86_BUILTIN_FNMADDSD): Ditto.
6994 (IX86_BUILTIN_FNMADDPS): Ditto.
6995 (IX86_BUILTIN_FNMADDPD): Ditto.
6996 (IX86_BUILTIN_FNMSUBSS): Ditto.
6997 (IX86_BUILTIN_FNMSUBSD): Ditto.
6998 (IX86_BUILTIN_FNMSUBPS): Ditto.
6999 (IX86_BUILTIN_FNMSUBPD): Ditto.
7000 (IX86_BUILTIN_PCMOV_V2DI): Ditto.
7001 (IX86_BUILTIN_PCMOV_V4SI): Ditto.
7002 (IX86_BUILTIN_PCMOV_V8HI): Ditto.
7003 (IX86_BUILTIN_PCMOV_V16QI): Ditto.
7004 (IX86_BUILTIN_PCMOV_V4SF): Ditto.
7005 (IX86_BUILTIN_PCMOV_V2DF): Ditto.
7006 (IX86_BUILTIN_PPERM): Ditto.
7007 (IX86_BUILTIN_PERMPS): Ditto.
7008 (IX86_BUILTIN_PERMPD): Ditto.
7009 (IX86_BUILTIN_PMACSSWW): Ditto.
7010 (IX86_BUILTIN_PMACSWW): Ditto.
7011 (IX86_BUILTIN_PMACSSWD): Ditto.
7012 (IX86_BUILTIN_PMACSWD): Ditto.
7013 (IX86_BUILTIN_PMACSSDD): Ditto.
7014 (IX86_BUILTIN_PMACSDD): Ditto.
7015 (IX86_BUILTIN_PMACSSDQL): Ditto.
7016 (IX86_BUILTIN_PMACSSDQH): Ditto.
7017 (IX86_BUILTIN_PMACSDQL): Ditto.
7018 (IX86_BUILTIN_PMACSDQH): Ditto.
7019 (IX86_BUILTIN_PMADCSSWD): Ditto.
7020 (IX86_BUILTIN_PMADCSWD): Ditto.
7021 (IX86_BUILTIN_PHADDBW): Ditto.
7022 (IX86_BUILTIN_PHADDBD): Ditto.
7023 (IX86_BUILTIN_PHADDBQ): Ditto.
7024 (IX86_BUILTIN_PHADDWD): Ditto.
7025 (IX86_BUILTIN_PHADDWQ): Ditto.
7026 (IX86_BUILTIN_PHADDDQ): Ditto.
7027 (IX86_BUILTIN_PHADDUBW): Ditto.
7028 (IX86_BUILTIN_PHADDUBD): Ditto.
7029 (IX86_BUILTIN_PHADDUBQ): Ditto.
7030 (IX86_BUILTIN_PHADDUWD): Ditto.
7031 (IX86_BUILTIN_PHADDUWQ): Ditto.
7032 (IX86_BUILTIN_PHADDUDQ): Ditto.
7033 (IX86_BUILTIN_PHSUBBW): Ditto.
7034 (IX86_BUILTIN_PHSUBWD): Ditto.
7035 (IX86_BUILTIN_PHSUBDQ): Ditto.
7036 (IX86_BUILTIN_PROTB): Ditto.
7037 (IX86_BUILTIN_PROTW): Ditto.
7038 (IX86_BUILTIN_PROTD): Ditto.
7039 (IX86_BUILTIN_PROTQ): Ditto.
7040 (IX86_BUILTIN_PROTB_IMM): Ditto.
7041 (IX86_BUILTIN_PROTW_IMM): Ditto.
7042 (IX86_BUILTIN_PROTD_IMM): Ditto.
7043 (IX86_BUILTIN_PROTQ_IMM): Ditto.
7044 (IX86_BUILTIN_PSHLB): Ditto.
7045 (IX86_BUILTIN_PSHLW): Ditto.
7046 (IX86_BUILTIN_PSHLD): Ditto.
7047 (IX86_BUILTIN_PSHLQ): Ditto.
7048 (IX86_BUILTIN_PSHAB): Ditto.
7049 (IX86_BUILTIN_PSHAW): Ditto.
7050 (IX86_BUILTIN_PSHAD): Ditto.
7051 (IX86_BUILTIN_PSHAQ): Ditto.
7052 (IX86_BUILTIN_FRCZSS): Ditto.
7053 (IX86_BUILTIN_FRCZSD): Ditto.
7054 (IX86_BUILTIN_FRCZPS): Ditto.
7055 (IX86_BUILTIN_FRCZPD): Ditto.
7056 (IX86_BUILTIN_CVTPH2PS): Ditto.
7057 (IX86_BUILTIN_CVTPS2PH): Ditto.
7058 (IX86_BUILTIN_COMEQSS): Ditto.
7059 (IX86_BUILTIN_COMNESS): Ditto.
7060 (IX86_BUILTIN_COMLTSS): Ditto.
7061 (IX86_BUILTIN_COMLESS): Ditto.
7062 (IX86_BUILTIN_COMGTSS): Ditto.
7063 (IX86_BUILTIN_COMGESS): Ditto.
7064 (IX86_BUILTIN_COMUEQSS): Ditto.
7065 (IX86_BUILTIN_COMUNESS): Ditto.
7066 (IX86_BUILTIN_COMULTSS): Ditto.
7067 (IX86_BUILTIN_COMULESS): Ditto.
7068 (IX86_BUILTIN_COMUGTSS): Ditto.
7069 (IX86_BUILTIN_COMUGESS): Ditto.
7070 (IX86_BUILTIN_COMORDSS): Ditto.
7071 (IX86_BUILTIN_COMUNORDSS): Ditto.
7072 (IX86_BUILTIN_COMFALSESS): Ditto.
7073 (IX86_BUILTIN_COMTRUESS): Ditto.
7074 (IX86_BUILTIN_COMEQSD): Ditto.
7075 (IX86_BUILTIN_COMNESD): Ditto.
7076 (IX86_BUILTIN_COMLTSD): Ditto.
7077 (IX86_BUILTIN_COMLESD): Ditto.
7078 (IX86_BUILTIN_COMGTSD): Ditto.
7079 (IX86_BUILTIN_COMGESD): Ditto.
7080 (IX86_BUILTIN_COMUEQSD): Ditto.
7081 (IX86_BUILTIN_COMUNESD): Ditto.
7082 (IX86_BUILTIN_COMULTSD): Ditto.
7083 (IX86_BUILTIN_COMULESD): Ditto.
7084 (IX86_BUILTIN_COMUGTSD): Ditto.
7085 (IX86_BUILTIN_COMUGESD): Ditto.
7086 (IX86_BUILTIN_COMORDSD): Ditto.
7087 (IX86_BUILTIN_COMUNORDSD): Ditto.
7088 (IX86_BUILTIN_COMFALSESD): Ditto.
7089 (IX86_BUILTIN_COMTRUESD): Ditto.
7090 (IX86_BUILTIN_COMEQPS): Ditto.
7091 (IX86_BUILTIN_COMNEPS): Ditto.
7092 (IX86_BUILTIN_COMLTPS): Ditto.
7093 (IX86_BUILTIN_COMLEPS): Ditto.
7094 (IX86_BUILTIN_COMGTPS): Ditto.
7095 (IX86_BUILTIN_COMGEPS): Ditto.
7096 (IX86_BUILTIN_COMUEQPS): Ditto.
7097 (IX86_BUILTIN_COMUNEPS): Ditto.
7098 (IX86_BUILTIN_COMULTPS): Ditto.
7099 (IX86_BUILTIN_COMULEPS): Ditto.
7100 (IX86_BUILTIN_COMUGTPS): Ditto.
7101 (IX86_BUILTIN_COMUGEPS): Ditto.
7102 (IX86_BUILTIN_COMORDPS): Ditto.
7103 (IX86_BUILTIN_COMUNORDPS): Ditto.
7104 (IX86_BUILTIN_COMFALSEPS): Ditto.
7105 (IX86_BUILTIN_COMTRUEPS): Ditto.
7106 (IX86_BUILTIN_COMEQPD): Ditto.
7107 (IX86_BUILTIN_COMNEPD): Ditto.
7108 (IX86_BUILTIN_COMLTPD): Ditto.
7109 (IX86_BUILTIN_COMLEPD): Ditto.
7110 (IX86_BUILTIN_COMGTPD): Ditto.
7111 (IX86_BUILTIN_COMGEPD): Ditto.
7112 (IX86_BUILTIN_COMUEQPD): Ditto.
7113 (IX86_BUILTIN_COMUNEPD): Ditto.
7114 (IX86_BUILTIN_COMULTPD): Ditto.
7115 (IX86_BUILTIN_COMULEPD): Ditto.
7116 (IX86_BUILTIN_COMUGTPD): Ditto.
7117 (IX86_BUILTIN_COMUGEPD): Ditto.
7118 (IX86_BUILTIN_COMORDPD): Ditto.
7119 (IX86_BUILTIN_COMUNORDPD): Ditto.
7120 (IX86_BUILTIN_COMFALSEPD): Ditto.
7121 (IX86_BUILTIN_COMTRUEPD): Ditto.
7122 (IX86_BUILTIN_PCOMEQUB): Ditto.
7123 (IX86_BUILTIN_PCOMNEUB): Ditto.
7124 (IX86_BUILTIN_PCOMLTUB): Ditto.
7125 (IX86_BUILTIN_PCOMLEUB): Ditto.
7126 (IX86_BUILTIN_PCOMGTUB): Ditto.
7127 (IX86_BUILTIN_PCOMGEUB): Ditto.
7128 (IX86_BUILTIN_PCOMFALSEUB): Ditto.
7129 (IX86_BUILTIN_PCOMTRUEUB): Ditto.
7130 (IX86_BUILTIN_PCOMEQUW): Ditto.
7131 (IX86_BUILTIN_PCOMNEUW): Ditto.
7132 (IX86_BUILTIN_PCOMLTUW): Ditto.
7133 (IX86_BUILTIN_PCOMLEUW): Ditto.
7134 (IX86_BUILTIN_PCOMGTUW): Ditto.
7135 (IX86_BUILTIN_PCOMGEUW): Ditto.
7136 (IX86_BUILTIN_PCOMFALSEUW): Ditto.
7137 (IX86_BUILTIN_PCOMTRUEUW): Ditto.
7138 (IX86_BUILTIN_PCOMEQUD): Ditto.
7139 (IX86_BUILTIN_PCOMNEUD): Ditto.
7140 (IX86_BUILTIN_PCOMLTUD): Ditto.
7141 (IX86_BUILTIN_PCOMLEUD): Ditto.
7142 (IX86_BUILTIN_PCOMGTUD): Ditto.
7143 (IX86_BUILTIN_PCOMGEUD): Ditto.
7144 (IX86_BUILTIN_PCOMFALSEUD): Ditto.
7145 (IX86_BUILTIN_PCOMTRUEUD): Ditto.
7146 (IX86_BUILTIN_PCOMEQUQ): Ditto.
7147 (IX86_BUILTIN_PCOMNEUQ): Ditto.
7148 (IX86_BUILTIN_PCOMLTUQ): Ditto.
7149 (IX86_BUILTIN_PCOMLEUQ): Ditto.
7150 (IX86_BUILTIN_PCOMGTUQ): Ditto.
7151 (IX86_BUILTIN_PCOMGEUQ): Ditto.
7152 (IX86_BUILTIN_PCOMFALSEUQ): Ditto.
7153 (IX86_BUILTIN_PCOMTRUEUQ): Ditto.
7154 (IX86_BUILTIN_PCOMEQB): Ditto.
7155 (IX86_BUILTIN_PCOMNEB): Ditto.
7156 (IX86_BUILTIN_PCOMLTB): Ditto.
7157 (IX86_BUILTIN_PCOMLEB): Ditto.
7158 (IX86_BUILTIN_PCOMGTB): Ditto.
7159 (IX86_BUILTIN_PCOMGEB): Ditto.
7160 (IX86_BUILTIN_PCOMFALSEB): Ditto.
7161 (IX86_BUILTIN_PCOMTRUEB): Ditto.
7162 (IX86_BUILTIN_PCOMEQW): Ditto.
7163 (IX86_BUILTIN_PCOMNEW): Ditto.
7164 (IX86_BUILTIN_PCOMLTW): Ditto.
7165 (IX86_BUILTIN_PCOMLEW): Ditto.
7166 (IX86_BUILTIN_PCOMGTW): Ditto.
7167 (IX86_BUILTIN_PCOMGEW): Ditto.
7168 (IX86_BUILTIN_PCOMFALSEW): Ditto.
7169 (IX86_BUILTIN_PCOMTRUEW): Ditto.
7170 (IX86_BUILTIN_PCOMEQD): Ditto.
7171 (IX86_BUILTIN_PCOMNED): Ditto.
7172 (IX86_BUILTIN_PCOMLTD): Ditto.
7173 (IX86_BUILTIN_PCOMLED): Ditto.
7174 (IX86_BUILTIN_PCOMGTD): Ditto.
7175 (IX86_BUILTIN_PCOMGED): Ditto.
7176 (IX86_BUILTIN_PCOMFALSED): Ditto.
7177 (IX86_BUILTIN_PCOMTRUED): Ditto.
7178 (IX86_BUILTIN_PCOMEQQ): Ditto.
7179 (IX86_BUILTIN_PCOMNEQ): Ditto.
7180 (IX86_BUILTIN_PCOMLTQ): Ditto.
7181 (IX86_BUILTIN_PCOMLEQ): Ditto.
7182 (IX86_BUILTIN_PCOMGTQ): Ditto.
7183 (IX86_BUILTIN_PCOMGEQ): Ditto.
7184 (IX86_BUILTIN_PCOMFALSEQ): Ditto.
7185 (IX86_BUILTIN_PCOMTRUEQ): Ditto.
7186 (enum multi_arg_type): New enum for describing the various SSE5
7187 intrinsic argument types.
7188 (bdesc_multi_arg): New table for SSE5 intrinsics.
7189 (ix86_init_mmx_sse_builtins): Add SSE5 intrinsic support.
7190 (ix86_expand_multi_arg_builtin): New function for creating SSE5
7191 intrinsics.
7192 (ix86_expand_builtin): Add SSE5 intrinsic support.
7193 (ix86_sse5_valid_op_p): New function to validate SSE5 3 and 4
7194 operand instructions.
7195 (ix86_expand_sse5_multiple_memory): New function to split the
7196 second memory reference from SSE5 instructions.
7197 (type_has_variadic_args_p): Delete in favor of stdarg_p.
7198 (ix86_return_pops_args): Use stdarg_p to determine if the function
7199 has variable arguments.
7200 (ix86_setup_incoming_varargs): Ditto.
7201 (x86_this_parameter): Ditto.
7202
7203 * config/i386/i386-protos.h (ix86_expand_sse5_unpack): Add
7204 declaration.
7205 (ix86_expand_sse5_pack): Ditto.
7206 (ix86_sse5_valid_op_p): Ditto.
7207 (ix86_expand_sse5_multiple_memory): Ditto.
7208
7209 * config/i386/i386.md (UNSPEC_SSE5_INTRINSIC): Add new UNSPEC
7210 constant for SSE5 support.
7211 (UNSPEC_SSE5_UNSIGNED_CMP): Ditto.
7212 (UNSPEC_SSE5_TRUEFALSE): Ditto.
7213 (UNSPEC_SSE5_PERMUTE): Ditto.
7214 (UNSPEC_SSE5_ASHIFT): Ditto.
7215 (UNSPEC_SSE5_LSHIFT): Ditto.
7216 (UNSPEC_FRCZ): Ditto.
7217 (UNSPEC_CVTPH2PS): Ditto.
7218 (UNSPEC_CVTPS2PH): Ditto.
7219 (PCOM_FALSE): Add new constant for true/false SSE5 comparisons.
7220 (PCOM_TRUE): Ditto.
7221 (COM_FALSE_S): Ditto.
7222 (COM_FALSE_P): Ditto.
7223 (COM_TRUE_S): Ditto.
7224 (COM_TRUE_P): Ditto.
7225 (type attribute): Add ssemuladd, sseiadd1, ssecvt1, sse4arg types.
7226 (unit attribute): Add support for ssemuladd, ssecvt1, sseiadd1 sse4arg
7227 types.
7228 (memory attribute): Ditto.
7229 (sse4_1_round<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
7230 Use SSE4_1_ROUND_* constants instead of hard coded numbers.
7231 (rint<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
7232 (floor<mode>2): Ditto.
7233 (ceil<mode>2): Ditto.
7234 (btrunc<mode>2): Ditto.
7235 (nearbyintdf2): Ditto.
7236 (nearbyintsf2): Ditto.
7237 (sse_setccsf): Disable if SSE5.
7238 (sse_setccdf): Ditto.
7239 (sse5_setcc<mode>): New support for SSE5 conditional move.
7240 (sse5_pcmov_<mode>): Ditto.
7241
7242 * config/i386/sse.md (SSEMODE1248): New mode iterator for SSE5.
7243 (SSEMODEF4): Ditto.
7244 (SSEMODEF2P): Ditto.
7245 (ssemodesuffixf4): New mode attribute for SSE5.
7246 (ssemodesuffixf2s): Ditto.
7247 (ssemodesuffixf2c): Ditto.
7248 (sserotatemax): Ditto.
7249 (ssescalarmode): Ditto.
7250 (sse_maskcmpv4sf3): Disable if SSE5.
7251 (sse_maskcmpv2df3): Ditto.
7252 (sse_vmmaskcmpv4sf3): Ditto.
7253 (sse5_fmadd<mode>4): Add SSE5 floating point multiply/add instructions.
7254 (sse5_vmfmadd<mode>4): Ditto.
7255 (sse5_fmsub<mode>4): Ditto.
7256 (sse5_vmfmsub<mode>4): Ditto.
7257 (sse5_fnmadd<mode>4): Ditto.
7258 (sse5_vmfnmadd<mode>4): Ditto.
7259 (sse5_fnmsub<mode>4): Ditto.
7260 (sse5_vmfnmsub<mode>4): Ditto.
7261 (sse5i_fmadd<mode>4): Ditto.
7262 (sse5i_fmsub<mode>4): Ditto.
7263 (sse5i_fnmadd<mode>4): Ditto.
7264 (sse5i_fnmsub<mode>4): Ditto.
7265 (sse5i_vmfmadd<mode>4): Ditto.
7266 (sse5i_vmfmsub<mode>4): Ditto.
7267 (sse5i_vmfnmadd<mode>4): Ditto.
7268 (sse5i_vmfnmsub<mode>4): Ditto.
7269 (mulv16qi3): Add SSE5 support.
7270 (mulv4si3): Ditto.
7271 (sse5_mulv4si3): New insn for 32-bit multiply support on SSE5.
7272 (sse2_mulv4si3): Disable if SSE5.
7273 (sse4_1_roundpd): Use TARGET_ROUND instead of TARGET_SSE4_1.
7274 (sse4_1_roundps): Ditto.
7275 (sse4_1_roundsd): Ditto.
7276 (sse4_1_roundss): Ditto.
7277 (sse_maskcmpv4sf3): Disable if SSE5 so the SSE5 instruction will
7278 be generated.
7279 (sse_maskcmpsf3): Ditto.
7280 (sse_vmmaskcmpv4sf3): Ditto.
7281 (sse2_maskcmpv2df3): Ditto.
7282 (sse2_maskcmpdf3): Ditto.
7283 (sse2_vmmaskcmpv2df3): Ditto.
7284 (sse2_eq<mode>3): Ditto.
7285 (sse2_gt<mode>3): Ditto.
7286 (sse5_pcmov_<mode>): Add SSE5 support.
7287 (vec_unpacku_hi_v16qi): Ditto.
7288 (vec_unpacks_hi_v16qi): Ditto.
7289 (vec_unpacku_lo_v16qi): Ditto.
7290 (vec_unpacks_lo_v16qi): Ditto.
7291 (vec_unpacku_hi_v8hi): Ditto.
7292 (vec_unpacks_hi_v8hi): Ditto.
7293 (vec_unpacku_lo_v8hi): Ditto.
7294 (vec_unpacks_lo_v8hi): Ditto.
7295 (vec_unpacku_hi_v4si): Ditto.
7296 (vec_unpacks_hi_v4si): Ditto.
7297 (vec_unpacku_lo_v4si): Ditto.
7298 (vec_unpacks_lo_v4si): Ditto.
7299 (sse5_pmacsww): New SSE5 intrinsic insn.
7300 (sse5_pmacssww): Ditto.
7301 (sse5_pmacsdd): Ditto.
7302 (sse5_pmacssdd): Ditto.
7303 (sse5_pmacssdql): Ditto.
7304 (sse5_pmacssdqh): Ditto.
7305 (sse5_pmacsdqh): Ditto.
7306 (sse5_pmacsswd): Ditto.
7307 (sse5_pmacswd): Ditto.
7308 (sse5_pmadcsswd): Ditto.
7309 (sse5_pmadcswd): Ditto.
7310 (sse5_pcmov_<move>): Conditional move support on SSE5.
7311 (sse5_phaddbw): New SSE5 intrinsic insn.
7312 (sse5_phaddbd): Ditto.
7313 (sse5_phaddbq): Ditto.
7314 (sse5_phaddwd): Ditto.
7315 (sse5_phaddwq): Ditto.
7316 (sse5_phadddq): Ditto.
7317 (sse5_phaddubw): Ditto.
7318 (sse5_phaddubd): Ditto.
7319 (sse5_phaddubq): Ditto.
7320 (sse5_phadduwd): Ditto.
7321 (sse5_phadduwq): Ditto.
7322 (sse5_phaddudq): Ditto.
7323 (sse5_phsubbw): Ditto.
7324 (sse5_phsubwd): Ditto.
7325 (sse5_phsubdq): Ditto.
7326 (sse5_pperm): Ditto.
7327 (sse5_pperm_sign_v16qi_v8hi): New insns for pack/unpack with SSE5.
7328 (sse5_pperm_zero_v16qi_v8hi): Ditto.
7329 (sse5_pperm_sign_v8hi_v4si): Ditto.
7330 (sse5_pperm_zero_v8hi_v4si): Ditto.
7331 (sse5_pperm_sign_v4si_v2di): Ditto.
7332 (sse5_pperm_sign_v4si_v2di): Ditto.
7333 (sse5_pperm_pack_v2di_v4si): Ditto.
7334 (sse5_pperm_pack_v4si_v8hi): Ditto.
7335 (sse5_pperm_pack_v8hi_v16qi): Ditto.
7336 (sse5_perm<mode>): New SSE5 intrinsic insn.
7337 (rotl<mode>3): Ditto.
7338 (sse5_rotl<mode>3): Ditto.
7339 (sse5_ashl<mode>3): Ditto.
7340 (sse5_lshl<mode>3): Ditto.
7341 (sse5_frcz<mode>2): Ditto.
7342 (sse5s_frcz<mode>2): Ditto.
7343 (sse5_cvtph2ps): Ditto.
7344 (sse5_cvtps2ph): Ditto.
7345 (sse5_vmmaskcmp<mode>3): Ditto.
7346 (sse5_com_tf<mode>3): Ditto.
7347 (sse5_maskcmp<mode>3): Ditto.
7348 (sse5_maskcmp_uns<mode>3): Ditto.
7349 (sse5_maskcmp_uns2<mode>3): Ditto.
7350 (sse5_pcom_tf<mode>3): Ditto.
7351
7352 * config/i386/predicates.md (sse5_comparison_float_operator):
7353 New predicate to match the comparison operators supported by
7354 the SSE5 com instruction.
7355 (ix86_comparison_int_operator): New predicate to match just the
7356 signed int comparisons.
7357 (ix86_comparison_uns_operator): New predicate to match just the
7358 unsigned int comparisons.
7359
7360 * doc/invoke.texi (-msse5): Add documentation.
7361 (-mfused-madd): Ditto.
7362
7363 * doc/extend.texi (x86 intrinsics): Document new SSE5 intrinsics.
7364
7365 * config.gcc (i[34567]86-*-*): Include bmmintrin.h and
7366 mmintrin-common.h.
7367 (x86_64-*-*): Ditto.
7368
7369 * config/i386/cpuid.h (bit_SSE5): Define SSE5 bit.
7370
7371 * config/i386/bmmintrin.h: New file, provide common x86 compiler
7372 intrinisics for SSE5.
7373
7374 * config/i386/smmintrin.h: Move instructions shared with SSE5 to
7375 mmintrin-common.h.
7376
7377 * config/i386/mmintrin-common.h: New file, to contain common
7378 instructions between SSE4.1 and SSE5.
7379
7380 * config/i386/netware.c (gen_stdcall_or_fastcall_decoration): Use
7381 FOREACH_FUNCTION_ARGS to iterate over the argument list.
7382 (gen_regparm_prefix): Ditto.
7383
7384 * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix): Use
7385 FOREACH_FUNCTION_ARGS to iterate over the argument list. Use
7386 prototype_p to determine if a function is prototyped.
7387
7388 2009-08-25 Ville Voutilainen <ville.voutilainen@gmail.com>
7389
7390 * c-common.c (c_common_reswords) add the alignof keyword,
7391 with same RID as __alignof and __alignof__
7392
7393 2009-08-25 Anatoly Sokolov <aesok@post.ru>
7394
7395 * hooks.h (hook_bool_const_int_const_int_true): Declare.
7396 * hooks.c (hook_bool_const_int_const_int_true): New function.
7397 * target.h (struct gcc_target): Add can_eliminate field.
7398 * target-def.h (TARGET_CAN_ELIMINATE): Define.
7399 (TARGET_INITIALIZER): Use TARGET_CAN_ELIMINATE.
7400 * ira.c (setup_eliminable_regset): Use can_eliminate target hook.
7401 * reload1.c (update_eliminables, init_elim_table): (Ditto.).
7402 (elim_table): Revise comment.
7403 * system.h (CAN_ELIMINATE): Poison.
7404 * defaults.h (CAN_ELIMINATE): Remove.
7405 * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
7406
7407 * config/alpha/vms.h (CAN_ELIMINATE): Remove macro.
7408 * config/alpha/alpha.c (TARGET_CAN_ELIMINATE) [TARGET_ABI_OPEN_VMS]:
7409 Define macro.
7410 (alpha_vms_can_eliminate): Declare as static, change return type to
7411 bool.
7412 * config/alpha/alpha-protos.h (alpha_vms_can_eliminate): Remove.
7413
7414 * config/arm/arm.h (CAN_ELIMINATE): Remove macro.
7415 * config/arm/arm.c (TARGET_CAN_ELIMINATE): Define macro.
7416 (arm_can_eliminate): New function.
7417
7418 * config/avr/avr.h (CAN_ELIMINATE): Remove macro.
7419 * config/avr/avr.c (TARGET_CAN_ELIMINATE): Define macro.
7420 (avr_can_eliminate): Declare as static.
7421 * config/avr/avr-protos.h (avr_can_eliminate): Remove.
7422
7423 * config/bfin/bfin.h (CAN_ELIMINATE): Remove macro.
7424 * config/bfin/bfin.c (TARGET_CAN_ELIMINATE): Define macro.
7425 (bfin_can_eliminate): New function.
7426
7427 * config/crx/crx.h (CAN_ELIMINATE): Remove macro.
7428 * config/crx/crx.c (TARGET_CAN_ELIMINATE): Define macro.
7429 (crx_can_eliminate): New function.
7430
7431 * config/fr30/fr30.h (CAN_ELIMINATE): Remove macro.
7432 * config/fr30/fr30.c (TARGET_CAN_ELIMINATE): Define macro.
7433 (fr30_can_eliminate): New function.
7434
7435 * config/frv/frv.h (CAN_ELIMINATE): Remove macro.
7436 * config/frv/frv.c (TARGET_CAN_ELIMINATE): Define macro.
7437 (frv_can_eliminate): New function.
7438
7439 * config/h8300/h8300.h (CAN_ELIMINATE): Remove macro.
7440 * config/h8300/h8300.c (TARGET_CAN_ELIMINATE): Define macro.
7441 (h8300_can_eliminate): New function.
7442
7443 * config/i386/i386.h (CAN_ELIMINATE): Remove macro.
7444 * config/i386/i386.c (TARGET_CAN_ELIMINATE): Define macro.
7445 (i386_can_eliminate): Declare as static, change return type to bool.
7446 * config/i386/i386-protos.h (i386_can_eliminate): Remove.
7447
7448 * config/ia64/ia64.h (CAN_ELIMINATE): Remove macro.
7449 * config/ia64/ia64.c (TARGET_CAN_ELIMINATE): Define macro.
7450 (ia64_can_eliminate): New function.
7451
7452 * config/iq2000/iq2000.h (CAN_ELIMINATE): Remove macro.
7453 * config/iq2000/iq2000.c (TARGET_CAN_ELIMINATE): Define macro.
7454 (iq2000_can_eliminate): New function.
7455
7456 * config/m32r/m32r.h (CAN_ELIMINATE): Remove macro.
7457 * config/m32r/m32r.c (TARGET_CAN_ELIMINATE): Define macro.
7458 (m32r_can_eliminate): New function.
7459
7460 * config/m68hc11/m68hc11.h (CAN_ELIMINATE): Remove macro.
7461 * config/m68hc11/m68hc11.c (TARGET_CAN_ELIMINATE): Define macro.
7462 (m68hc11_can_eliminate): New function.
7463
7464 * config/m68k/m68k.h (CAN_ELIMINATE): Remove macro.
7465 * config/m68k/m68k.c (TARGET_CAN_ELIMINATE): Define macro.
7466 (m68k_can_eliminate): New function.
7467
7468 * config/mep/mep.h (CAN_ELIMINATE): Remove macro.
7469 * config/mep/mep.c (TARGET_CAN_ELIMINATE): Define macro.
7470 (mep_can_eliminate): New function.
7471
7472 * config/mips/mips.h (CAN_ELIMINATE): Remove macro.
7473 * config/mips/mips.c (TARGET_CAN_ELIMINATE): Define macro.
7474 (mips_can_eliminate): New function.
7475
7476 * config/rs6000/rs6000.h (CAN_ELIMINATE): Remove macro.
7477 * config/rs6000/rs6000.c (TARGET_CAN_ELIMINATE): Define macro.
7478 (rs6000_can_eliminate): New function.
7479
7480 * config/s390/s390.h (CAN_ELIMINATE): Remove macro.
7481 * config/s390/s390.c (TARGET_CAN_ELIMINATE): Define macro.
7482 (s390_can_eliminate): Declare as static.
7483 * config/s390/s390-protos.h (sparc_can_eliminate): Remove.
7484
7485 * config/score/score.h (CAN_ELIMINATE): Remove macro.
7486 * config/score/score.c (TARGET_CAN_ELIMINATE): Define macro.
7487 (score_can_eliminate): New function.
7488
7489 * config/sparc/sparc.h (CAN_ELIMINATE): Remove macro.
7490 * config/sparc/sparc.c (TARGET_CAN_ELIMINATE): Define macro.
7491 (sparc_can_eliminate): Declare as static.
7492 * config/sparc/sparc-protos.h (sparc_can_eliminate): Remove.
7493
7494 * config/stormy16/stormy16.h (CAN_ELIMINATE): Remove macro.
7495 * config/stormy16/stormy16.c (TARGET_CAN_ELIMINATE): Define macro.
7496 (xstormy16_can_eliminate): New function.
7497
7498 * config/v850/v850.h (CAN_ELIMINATE): Remove macro.
7499 * config/v850/v850.c (TARGET_CAN_ELIMINATE): Define macro.
7500 (v850_can_eliminate): New function.
7501
7502 2009-08-25 Uros Bizjak <ubizjak@gmail.com>
7503
7504 * config/alpha/alpha.md (*cmpdf_ieee_ext[123]): Remove.
7505 (*cmpdf_internal): Enable for all ALPHA_FPTM levels.
7506 (*movdfcc_ext[1234]): Disable for IEEE mode.
7507
7508 2009-08-25 Eric Botcazou <ebotcazou@adacore.com>
7509
7510 * gimplify.c (prepare_gimple_addressable): New static function.
7511 (gimplify_modify_expr_to_memcpy): Invoke it on the RHS before marking
7512 it addressable.
7513 (gimplify_addr_expr): Invoke it similarly on the operand instead of
7514 manually fiddling with it.
7515
7516 2009-08-25 Michael Matz <matz@suse.de>
7517
7518 * expr.h (jumpifnot_1, jumpif_1, do_jump_1): Declare.
7519 * dojump.c (do_jump_by_parts_greater): Take two operands instead of
7520 full expression.
7521 (do_jump_by_parts_equality, do_compare_and_jump): Ditto.
7522 (jumpifnot_1, jumpif_1): New wrappers for do_jump_1.
7523 (do_jump): Split out code for simple binary comparisons into ...
7524 (do_jump_1): ... this, taking the individual operands and code.
7525 Change callers to helper function above accordingly.
7526 * expr.c (expand_expr_real_1): Use jumpifnot_1 for simple binary
7527 comparisons.
7528
7529 2009-08-25 Michael Matz <matz@suse.de>
7530
7531 * expr.h (struct separate_ops, sepops): New type for passing
7532 around an exploded simple expression.
7533 * optabs.c (expand_widen_pattern_expr, expand_vec_shift_expr):
7534 Use this structure instead of expression tree.
7535 (get_vcond_icode, expand_vec_cond_expr_p): Don't take whole
7536 expression, only its type.
7537 (expand_vec_cond_expr): Take type and individual operands instead
7538 of full expression.
7539 * optabs.h (expand_widen_pattern_expr, expand_vec_cond_expr,
7540 expand_vec_shift_expr): Change prototype accordingly.
7541 * tree-vect-stmts.c (vectorizable_condition): Change call of
7542 expand_vec_cond_expr_p to pass only type.
7543 * expr.c (do_store_flags): Change prototype and implementation
7544 to take an exploded expression.
7545 (expand_expr_real_1): New local ops initialized with details
7546 of the full expression. Use it instead of full
7547 expression in calls to do_store_flags, expand_vec_cond_expr,
7548 expand_widen_pattern_expr and expand_vec_shift_expr.
7549
7550 2009-08-25 Michael Matz <matz@suse.de>
7551
7552 * expr.c (expand_expr_real_1): New local treeop0, treeop1,
7553 treeop2 initialized with first three operands of the full expression.
7554 Substitute all TREE_OPERAND (exp, [012]) calls with them.
7555
7556 2009-08-25 Kai Tietz <kai.tietz@onevision.com>
7557
7558 * gcc/gthr-win32.h (__UNUSED_PARAM): Define, if not already present.
7559 (__gthread_objc_condition_allocate): Mark arguments as unused.
7560 (__gthread_objc_condition_deallocate): Likewise.
7561 (__gthread_objc_condition_wait): Likewise.
7562 (__gthread_objc_condition_broadcast): Likewise.
7563 (__gthread_objc_condition_signal): Likewise.
7564 (__gthread_objc_thread_detach): Cast via INT_PTR to pointer.
7565 (__gthread_objc_thread_id): Likewise.
7566
7567 2009-08-25 Janus Weil <janus@gcc.gnu.org>
7568
7569 PR middle-end/41149
7570 * tree-pretty-print.c (print_call_name): Print the correct call name
7571 for procedure pointer components.
7572
7573 2009-08-24 Steve Ellcey <sje@cup.hp.com>
7574
7575 * config/ia64/ia64.c (ia64_promote_function_mode): Call
7576 default_promote_function_mode when not VMS.
7577
7578 2009-08-24 Olivier Hainque <hainque@adacore.com>
7579
7580 * convert.c (convert_to_integer): Don't assume an input pointer is
7581 POINTER_SIZE wide. Fetch from the type instead.
7582
7583 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7584
7585 * configure.ac (AC_PREREQ): Bump to 2.64.
7586
7587 2009-08-24 Rafael Avila de Espindola <espindola@google.com>
7588
7589 * gcc.c (standard_exec_prefix_1,standard_exec_prefix_2): Remove.
7590 (process_command): Don't search standard_exec_prefix_1 and
7591 standard_exec_prefix_2.
7592
7593 2009-08-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7594
7595 * config/arm/arm.c (output_return_instruction): Handle for
7596 unified syntax.
7597
7598 2009-08-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7599
7600 * config/arm/arm.c (arm_select_cc_mode): Handle subreg.
7601
7602 2009-08-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7603
7604 * config/arm/vfp.md (*arm_movdi_vfp): Mark as predicable.
7605 (*arm_movdf_vfp): Likewise.
7606
7607 2009-08-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7608
7609 * config/arm/neon.md (vashl<mode>3): Rename from ashl<mode>3.
7610 (vashr<mode>3): Rename from ashr<mode>3.
7611 (vlshr<mode>3): Rename from lshr<mode>3.
7612
7613 2009-08-24 Kai Tietz <kai.tietz@onevision.com>
7614
7615 PR/40786
7616 * c-format.c (format_wanted_type): Add new member scalar_identity_flag.
7617 (check_format_info_main): Use scalar_identify_flag.
7618 (check_format_types): Check for scalar size identity if
7619 scalar_identify_flag is set.
7620 (printf_length_specs): Extend by new field.
7621 (asm_fprintf_length_specs): Likewise.
7622 (gcc_diag_length_specs): Likewise.
7623 (scanf_length_specs): Likewise.
7624 (strfmon_length_specs): Likewise.
7625 (gcc_gfc_length_specs): Likewise.
7626 * config/i386/msformat-c.c (ms_printf_length_specs): Likewise.
7627 (ms_printf_flag_specs): Likewise.
7628 * c-format.h (format_length_info): Add new member scalar_identity_flag.
7629
7630 2009-08-23 Uros Bizjak <ubizjak@gmail.com>
7631
7632 PR target/40718
7633 * config/i386/i386.c (*call_pop_1): Disable for sibling calls.
7634 (*call_value_pop_1): Ditto.
7635 (*sibcall_pop_1): New insn pattern.
7636 (*sibcall_value_pop_1): Ditto.
7637
7638 2009-08-23 Alan Modra <amodra@bigpond.net.au>
7639
7640 PR target/41081
7641 * config/rs6000/rs6000.md (rotlsi3_64, ashlsi3_64, lshrsi3_64,
7642 ashrsi3_64): New.
7643
7644 2009-08-23 Alan Modra <amodra@bigpond.net.au>
7645
7646 PR target/41081
7647 * fwprop.c (try_fwprop_subst): Allow multiple sets.
7648 (get_reg_use_in): New function.
7649 (forward_propagate_subreg): Propagate through subreg of zero_extend
7650 or sign_extend.
7651
7652 2009-08-22 Kaz Kojima <kkojima@gcc.gnu.org>
7653
7654 * config/sh/t-sh (TARGET_LIBGCC2_CFLAGS): Define.
7655 * config/sh/t-netbsd (TARGET_LIBGCC2_CFLAGS): Add -mieee.
7656
7657 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7658
7659 * configure.ac: Remove --with-datarootdir, --with-docdir,
7660 --with-htmldir switches. No need to call AC_SUBST for
7661 datarootdir, docdir, htmldir any more.
7662 * configure: Regenerate.
7663 * doc/install.texi (Configuration): Document --datarootdir,
7664 --docdir, --htmldir, --pdfdir; update documentation for
7665 --infodir, --mandir.
7666 (Prerequisites): Bump Autoconf version to 2.64, Automake to 1.11,
7667 M4 to 1.4.6.
7668
7669 * aclocal.m4: Regenerate.
7670 * config.in: Regenerate.
7671 * configure: Regenerate.
7672
7673 2009-08-21 Douglas B Rupp <rupp@gnat.com>
7674 Olivier Hainque <hainque@adacore.com>
7675
7676 * config/ia64/ia64.c: Include libfuncs.h.
7677 (TARGET_PROMOTE_FUNCITON_MODE): Define target macro.
7678 (ia64_expand_call): Use reg 25 on VMS.
7679 (ia64_initialize_trampoline): Fix for VMS ABI.
7680 (ia64_function_arg_offset): Always returns 0 when TARGET_ABI_OPEN_VMS.
7681 (ia64_function_arg): Initialize reg 25 on VMS.
7682 Fix OpenVMS ABI issues for varargs.
7683 For OpenVMS, emit the Argument Information register set in the
7684 incoming/sibcall case as well.
7685 (ia64_arg_type): New function.
7686 (ia64_function_arg_advance): Keep track of cum->words.
7687 Fix OpenVMS ABI issues for varargs.
7688 (ia64_function_value): On VMS, promote mode of non-aggregate types.
7689 (ia64_override_options): Set flag_no_common on VMS.
7690 (ia64_init_builtins): Disable FWRITE builtin.
7691 (ia64_asm_output_external): Call DO_CRTL_NAMES.
7692 (ia64_vms_init_libfuncs): Add decc$ routines.
7693 (ia64_vms_valid_pointer_mode): New function.
7694 (ia64_struct_value_rtx): Allways NULL_RTX on VMS.
7695 (ia64_promote_function_mode): New function
7696 * config/ia64/ia64.h (TARGET_ABI_OPEN_VMS): Define as 0 for default.
7697 (LONG_DOUBLE_TYPE_SIZE): Force to 64 on VMS.
7698 (LIBCGC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
7699 (INIT_CUMULATIVE_ARGS): Add atypes for VMS.
7700 (INIT_CUMULATIVE_INCOMING_ARGS): Likewise.
7701 (ASM_OUTPUT_DEF): Use ISDIGIT instead of isdigit.
7702 Suppress trailing '#' if VALUE is numeric.
7703 * config/ia64/vms.h (PROMOTE_FUNCTION_MODE): Remove, code moved to
7704 ia64_promote_function_mode.
7705 (TARGET_VALID_POINTER_MODE): Define.
7706
7707 2009-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
7708
7709 PR target/40671
7710 * config/rs6000/rs6000.c (rs6000_override_options): Use
7711 TARGET_64BIT instead of TARGET_POWERPC64 to set the size of pointers.
7712
7713 PR target/41145
7714 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Fix
7715 reporting of vector + decimal/boolean/complex error.
7716
7717 2009-08-21 Jakub Jelinek <jakub@redhat.com>
7718
7719 * config/rs6000/rs6000.c (rs6000_init_builtins): Fix type of
7720 __vector double TYPE_DECL.
7721
7722 2009-08-21 Richard Earnshaw <rearnsha@arm.com>
7723
7724 * arm.h (MACHMODE): New define. Include insn-modes.h if available.
7725 (CUMULATIVE_ARGS): Use MACHMODE for declaration of aapcs_vfp_mode.
7726 * arm.c (aapcs_vfp_is_call_or_return_candidate): Change base_mode
7727 to pointer to enum machine_mode. Update all callers as needed.
7728
7729 2009-08-21 Uros Bizjak <ubizjak@gmail.com>
7730
7731 * config/alpha/alpha.md (exception_receiver): Emit alternative
7732 GP load sequence if flag_reorder_blocks_and_partition is set.
7733 (*exception_receiver_2): Also enable when
7734 flag_reorder_blocks_and_partition is set.
7735
7736 2009-08-20 Matt Rice <ratmice@gmail.com>
7737 Diego Novillo <dnovillo@google.com>
7738
7739 * Makefile.in (PLUGIN_HEADERS): Include incpath.h and
7740 tree-ssa-sccvn.h.
7741
7742 2009-08-20 Richard Guenther <rguenther@suse.de>
7743
7744 * c-objc-common.h (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Do not define.
7745 * c-tree.h (c_dup_lang_specific_decl): Remove.
7746 (struct lang_decl, struct lang_type): Move definitions ...
7747 * c-lang.h: ... here. New file.
7748 * c-decl.c: Include c-lang.h.
7749 (c_dup_lang_specific_decl): Remove.
7750 * c-typeck.c: Include c-lang.h.
7751 * Makefile.in (c-decl.o): Add c-lang.h dependency.
7752 (c-typeck.o): Likewise.
7753 * c-config-lang.in (gtfiles): Add c-lang.h.
7754 * gengtype.c (get_output_file_with_visibility): Handle c-lang.h
7755 like c-tree.h.
7756
7757 2009-08-20 Uros Bizjak <ubizjak@gmail.com>
7758
7759 * config/alpha/alpha.c (alpha_end_function): Do not clear
7760 crtl->emit structure and free insn locators if cfun->is_thunk is true,
7761 this is now handled in generic code.
7762
7763 2009-08-20 Andreas Krebbel <krebbel1@de.ibm.com>
7764
7765 * config/s390/s390.c (Z10_PREDICT_DISTANCE): New macro.
7766 (s390_z10_fix_long_loop_prediction): New function.
7767 (s390_z10_optimize_cmp): INSN walk moved to callee - s390_reorg.
7768 (s390_reorg): Walk over the INSNs and invoke
7769 s390_z10_fix_long_loop_prediction and s390_z10_optimize_cmp.
7770
7771 2009-08-20 Andreas Krebbel <krebbel1@de.ibm.com>
7772
7773 * config/s390/s390.md ("*brx_stage1_<GPR:mode>", "*brxg_64bit",
7774 "*brx_64bit", "*brx_31bit"): New patterns.
7775 * config/s390/s390.c ('E'): New output modifier.
7776
7777 2009-08-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7778 Richard Earnshaw <richard.earnshaw@arm.com>
7779
7780 * config/arm/arm.c (arm_emit_movpair): Handle CONST_INT.
7781 * config/arm/arm.md (*arm_movtas_ze): New pattern for movt.
7782
7783 2009-08-19 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7784
7785 * pa.md (reload_inhi, reload_outhi, reload_inqi, reload_outqi): New
7786 patterns.
7787 * pa.c (emit_move_sequence): Check if address of operand1 is valid
7788 for mode mode of operand0 when doing secondary reload for SAR.
7789
7790 2009-08-19 Jakub Jelinek <jakub@redhat.com>
7791
7792 PR middle-end/41123
7793 * expr.c (expand_expr_real_1) <normal_inner_ref>: Handle all kinds
7794 of CONCAT, not just bitpos 0 bitsize size of the whole CONCAT.
7795
7796 2009-08-19 Jason Merrill <jason@redhat.com>
7797
7798 * doc/invoke.texi (C++ Dialect Options): Note change of minimum
7799 supported template depth in C++0x.
7800
7801 2009-08-19 Jakub Jelinek <jakub@redhat.com>
7802
7803 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Don't call
7804 free_after_compilation.
7805 * config/score/score7.c (score7_output_mi_thunk): Likewise.
7806 * config/score/score3.c (score3_output_mi_thunk): Likewise.
7807 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
7808 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
7809 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
7810 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
7811 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
7812
7813 2009-08-19 Ian Lance Taylor <iant@google.com>
7814
7815 * doc/md.texi (Insn Canonicalizations): Correct canonicalization
7816 of (plus (mult (neg B) C) A).
7817
7818 2009-08-18 Michael Matz <matz@suse.de>
7819
7820 * omp-low.c (optimize_omp_library_calls): Use types_compatible_p
7821 instead of comparing TYPE_MAIN_VARIANT for equality.
7822 * tree-vect-patterns.c (vect_recog_dot_prod_pattern,
7823 vect_recog_widen_mult_pattern, vect_recog_widen_sum_pattern): Ditto.
7824 * tree-vect-loop.c (vect_is_simple_reduction): Ditto.
7825 * gimplify.c (goa_lhs_expr_p): Ditto and use
7826 STRIP_USELESS_TYPE_CONVERSION.
7827
7828 2009-08-18 Michael Matz <matz@suse.de>
7829
7830 * tree-ssa-structalias.c (create_variable_info_for): Also mark
7831 first field in a struct.
7832 (intra_create_variable_infos): Don't deal with flag_argument_noalias.
7833
7834 2009-08-18 Uros Bizjak <ubizjak@gmail.com>
7835
7836 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn
7837 locators before emit_insn is called. Remove assert that
7838 cfun->is_thunk.
7839 (alpha_end_function): Clear crtl->emit structure and free insn
7840 locators if cfun->is_thunk is true.
7841
7842 2009-08-18 Jason Merrill <jason@redhat.com>
7843
7844 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
7845 type if available.
7846 * configure.ac: Test for it.
7847 * configure, config.in: Regenerate.
7848 * doc/install.texi: Document --enable-gnu-unique-object.
7849
7850 2009-08-18 Richard Guenther <rguenther@suse.de>
7851
7852 PR middle-end/41094
7853 * builtins.c (fold_builtin_pow): Fold pow(pow(x,y),z) to
7854 pow(x,y*z) only if x is nonnegative.
7855
7856 2009-08-18 Jakub Jelinek <jakub@redhat.com>
7857
7858 * bb-reorder.c (fix_up_fall_thru_edges): Only call invert_jump
7859 on jumps.
7860
7861 PR target/40971
7862 * config/rs6000/rs6000.c (rs6000_legitimize_address): For
7863 [DT][FDI]mode ensure the offset isn't 4/8/12 bytes below 0x8000.
7864
7865 2009-08-17 DJ Delorie <dj@redhat.com>
7866
7867 * config/m32c/m32c.md (UNS_FSETB, UNS_FREIT): New.
7868 * config/m32c/prologue.md (epilogue_freit): New.
7869 (fset_b): New.
7870 * config/m32c/m32c.c (m32c_function_needs_enter): Add prototype.
7871 (bank_switch_p): Likewise.
7872 (fast_interrupt_p): Likewise.
7873 (interrupt_p): Likewise.
7874 (m32c_conditional_register_usage): Round memregs size up.
7875 (need_to_save): We only need to save $a0 when we use ENTER.
7876 (interrupt_p): Check for fast_interrupt too.
7877 (bank_switch_p): New.
7878 (fast_interrupt_p): New.
7879 (m32c_attribute_table): Add bank_switch and fast_interrupt.
7880 (m32c_emit_prolog): Support bank switching and fast interrupts.
7881 * doc/extend.texi (Function Attributes): Add bank_switch and
7882 fast_interrupt.
7883
7884 2009-08-17 Douglas B Rupp <rupp@gnat.com>
7885
7886 * config/alpha/alpha.c (vms_valid_pointer_mode): New function.
7887 * config/alpha/vms.h (TARGET_VALID_POINTER_MODE): Define.
7888
7889 2009-08-16 Douglas B Rupp <rupp@gnat.com>
7890
7891 * doc/invoke.texi (Target options): Add new option list for IA-64/VMS.
7892 (menu): Add IA-64/VMS Options.
7893 (IA-64/VMS Options): Likewise.
7894
7895 2009-08-16 Richard Sandiford <rdsandiford@googlemail.com>
7896
7897 PR target/38599
7898 * config/mips/mips.md (*lwxs): Use :P for pointer values.
7899
7900 2009-08-16 Richard Sandiford <rdsandiford@googlemail.com>
7901
7902 * config/mips/mips-protos.h (mips_push_asm_switch): New function.
7903 (mips_pop_asm_switch): Likewise.
7904 * config/mips/mips.c (set_noreorder, set_nomacro, set_noat): Replace
7905 with...
7906 (mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
7907 (mips_push_asm_switch_1, mips_pop_asm_switch_1): New functions.
7908 (mips_push_asm_switch, mips_pop_asm_switch): Likewise.
7909 (mips_print_operand_punctuation): Use them. Check mips_noreorder
7910 instead of set_noreorder.
7911 (mips_output_function_prologue): Use the new functions.
7912 (mips_output_function_epilogue): Likewise.
7913 (mips_need_noat_wrapper_p): New function, split out from...
7914 (mips_final_prescan_insn, mips_final_postscan_insn): ...here.
7915 Use mips_push_asm_switch and mips_pop_asm_switch.
7916 * config/mips/mips.h (FUNCTION_PROFILER): Use mips_push_asm_switch
7917 and mips_pop_asm_switch.
7918 (ASM_OUTPUT_REG_POP): Likewise.
7919 (DBR_OUTPUT_SEQEND): Remove boilerplate comment.
7920 Use mips_pop_asm_switch.
7921 (mips_asm_switch): New structure.
7922 (set_noreorder, set_nomacro): Replace with...
7923 (mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
7924 * config/mips/mips.md (fix_truncdfsi2_macro): Use mips_nomacro
7925 instead of set_nomacro.
7926 (fix_truncsfsi2_macro): Likewise.
7927 (cprestore): Likewise.
7928 (hazard): Use mips_noreorder instead of set_noreorder.
7929 * config/mips/sdemtk.h (FUNCTION_PROFILER): As for mips.h.
7930
7931 2009-08-16 Uros Bizjak <ubizjak@gmail.com>
7932
7933 * config/alpha/alpha.c (alpha_end_function): Handle NULL_RTX returned
7934 from prev_active_insn.
7935
7936 2009-08-16 Anatoly Sokolov <aesok@post.ru>
7937
7938 * config/avr/avr.h (AVR_HAVE_8BIT_SP): New macros.
7939 * config/avr/avr.c (avr_override_options): Initialize
7940 avr_current_arch variable.
7941 (avr_cpu_cpp_builtins): Define __AVR_HAVE_8BIT_SP__ or
7942 __AVR_HAVE_16BIT_SP__ according to the device type.
7943 (expand_prologue, output_movhi): Use AVR_HAVE_8BIT_SP instead of
7944 TARGET_TINY_STACK.
7945 (expand_epilogue): Use correct QI mode frame pointer for tiny stack.
7946 Use AVR_HAVE_8BIT_SP instead of TARGET_TINY_STACK.
7947
7948 2009-08-16 Dodji Seketeli <dodji@redhat.com>
7949
7950 PR debug/37801
7951 * gcc/dwarf2out.c (gen_inlined_subroutine_die): Concentrate on
7952 generating inlined subroutine die only. We shouldn't be
7953 called for anything else.
7954 (gen_block_die): Don't generate inline subroutine debug info for
7955 abstract blocks.
7956
7957 2009-08-15 Sebastian Pop <sebastian.pop@amd.com>
7958
7959 * graphite-poly.c (print_pbb): Print PBB index.
7960
7961 2009-08-15 Sebastian Pop <sebastian.pop@amd.com>
7962
7963 PR middle-end/40981
7964 * graphite-interchange.c (ppl_max_for_le): Moved...
7965 * graphite-poly.c (pbb_number_of_iterations): Call ppl_max_for_le.
7966 * graphite-ppl.c (ppl_max_for_le): ... here. Correct the use of
7967 ppl_Pointset_Powerset_C_Polyhedron_maximize.
7968 * graphite-ppl.h (ppl_max_for_le): Declared.
7969
7970 2009-08-14 Olatunji Ruwase <tjruwase@google.com>
7971
7972 * doc/extend.texi (Symbol-Renaming Pragmas): redefine_extname is
7973 supported on all platforms.
7974 * target.h (struct gcc_target): Remove handle_pragma_redefine_extname.
7975 * c-cppbuiltin.c: Remove use of targetm.handle_pragma_redefine_extname.
7976 * c-pragma.c: Likewise.
7977 * target-def.h (TARGET_INITIALIZER): Remove
7978 TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
7979 * config/sol2.h: Remove use of TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
7980
7981 2009-08-14 Douglas B Rupp <rupp@gnat.com>
7982
7983 * config/ia64/fde-vms.c: New file.
7984 * config/ia64/fde-glibc.c (_Unwind_FindTableEntry): Add dummy arg.
7985 * config/ia64/unwind-ia64.c (UNW_ accessors): Move to unwind-ia64.h
7986 (MD_UNW_COMPATIBLE_PERSONALITY_P): Provide default.
7987 (uw_frame_state_for): Only register a personality routine if it is
7988 known to be compatible with our expectations.
7989 (_Unwind_FindEnclosingFunction, uw_frame_state_for):
7990 Declare unw_table_entry stack variable and
7991 mod all calls to _Unwind_FindTableEntry to add arg.
7992 * config/ia64/unwind-ia64.h (UNW_ accessors): Move here.
7993 (_Unwind_FindTableEntry): Add arg to prototype.
7994
7995 2009-08-14 Eric Botcazou <ebotcazou@adacore.com>
7996
7997 * config/ia64/unwind-ia64.c (struct _Unwind_Context): Add new
7998 field 'signal_pfs_loc'.
7999 (uw_frame_state_for): Remove duplicate code dealing with leaf
8000 procedures without unwind info.
8001 If in the frame after unwinding through a signal handler, restore
8002 the AR.PFS register instead of the CFM if AR.PFS has not been saved.
8003 * config/ia64/linux-unwind.h (ia64_fallback_frame_state): Do not set
8004 'pfs_loc' to the AR.PFS location in the signal context; instead
8005 set 'signal_pfs_loc'.
8006 Manually generate the unwind info for the AR.PFS register.
8007 (ABI_MARKER_OLD_LINUX_SIGTRAMP, ABI_MARKER_OLD_LINUX_INTERRUPT,
8008 ABI_MARKER_LINUX_SIGTRAMP, ABI_MARKER_LINUX_INTERRUPT): Define.
8009 (ia64_handle_unwabi): Test 'fs->unwabi' against them.
8010 Do not set 'pfs_loc' to the AR.PFS location in the signal context;
8011 instead set 'signal_pfs_loc'.
8012 Remove code preventing the AR.PFS register from being restored
8013 from the signal context.
8014
8015 2009-08-14 Douglas B Rupp <rupp@gnat.com>
8016 Tristan Gingold <gingold@adacore.com>
8017
8018 * config.gcc (ia64-hp-*vms*): Insert ia64/t-ia64 in tmake_file.
8019 * config/ia64/t-vms: New file.
8020 * config/ia64/vms64.h: New file.
8021 * config/ia64/vms.h: New file.
8022 * config/ia64/vms-crtinit.asm: New file.
8023 * config/ia64/vms_symvec_libgcc_s.opt: New file.
8024 * config/ia64/vms-unwind.h: New file.
8025
8026 2009-08-14 Uros Bizjak <ubizjak@gmail.com>
8027
8028 * config/alpha/alpha.c (alpha_emit_conditional_move): Handle
8029 TFmode compares.
8030
8031 2009-08-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8032
8033 PR middle-end/30789
8034 * builtins.c (do_mpc_arg2): Make extern, define for any MPC version.
8035 Move declaration...
8036 * real.h (do_mpc_arg2): ... here.
8037 * fold-const.c (const_binop): Use MPC for complex MULT_EXPR
8038 and RDIV_EXPR.
8039
8040 2009-08-14 Rafael Avila de Espindola <espindola@google.com>
8041
8042 * final.c (add_debug_prefix_map): Don't use GC memory for
8043 old_prefix and new_prefix.
8044
8045 2009-08-14 Richard Guenther <rguenther@suse.de>
8046
8047 * ipa-prop.c (compute_complex_pass_through): If we cannot
8048 compute a non-varying offset for IPA_JF_ANCESTOR punt.
8049
8050 2009-08-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8051
8052 * c-lex.c (c_lex_with_flags): Increase size of local variable
8053 to avoid memory clobber.
8054
8055 2009-08-14 Paolo Bonzini <bonzini@gnu.org>
8056
8057 PR target/40934
8058 * config/i386/i386.c (ix86_fp_comparison_strategy):
8059 Only enable/disable sahf at function granularity.
8060
8061 2009-08-14 Hans-Peter Nilsson <hp@axis.com>
8062
8063 PR rtl-optimization/41064
8064 * reload1.c (reload_as_needed): Don't call extract_insn
8065 for known invalid replacements after calling
8066 validate_replace_rtx_group and verify_changes.
8067
8068 2009-08-14 Uros Bizjak <ubizjak@gmail.com>
8069
8070 PR target/41019
8071 * config/i386/sse.md (SSEMODE124C8): New mode iterator.
8072 (vcond<SSEMODEF2P:mode>): Assert that operation is supported by
8073 ix86_expand_fp_vcond.
8074 (vcond<SSEMODE124C8:mode>): Use SSEMODE124C8 instead of SSEMODE124.
8075 Assert that operation is supported by ix86_expand_int_vcond.
8076 (vcondu<SSEMODE124C8:mode>): Ditto.
8077
8078 2009-08-13 DJ Delorie <dj@redhat.com>
8079
8080 * config/i386/djgpp-stdint.h: New.
8081 * config.gcc (djgpp): Use it.
8082
8083 2009-08-13 Kaz Kojima <kkojima@gcc.gnu.org>
8084
8085 * config/sh/sh.c (sh_override_options): When flag_exceptions or
8086 flag_unwind_tables is on, turn flag_reorder_blocks_and_partition off.
8087
8088 2009-08-13 Ghassan Shobaki <ghassan.shobaki@amd.com>
8089
8090 * tree-ssa-loop-prefetch.c
8091 (prune_ref_by_group_reuse): Enhance probabilistic analysis
8092 for long-stride pruning.
8093 (compute_miss_rate): New function to compute the probability
8094 that two memory references access different cache lines.
8095
8096 2009-08-13 Dave Korn <dave.korn.cygwin@gmail.com>
8097
8098 * gcc/config/i386/cygwin.h (LINK_SPEC): Add --enable-auto-image-base.
8099
8100 2009-08-13 Richard Guenther <rguenther@suse.de>
8101
8102 PR middle-end/41047
8103 * tree-ssa-ccp.c (ccp_fold): When folding pointer additions
8104 use the constant pointer type.
8105 * gimplify.c (canonicalize_addr_expr): Canonicalize independent
8106 of CV qualifiers on the target pointer type.
8107 * tree-ssa.c (useless_type_conversion_p): Move incomplete pointer
8108 conversion check before restrict check.
8109
8110 2009-08-12 Kaz Kojima <kkojima@gcc.gnu.org>
8111
8112 PR target/41029
8113 * config/sh/sh.md (reload_outdf__RnFRm+4): Fix thinko.
8114
8115 2009-08-12 Kaz Kojima <kkojima@gcc.gnu.org>
8116
8117 * config/sh/sh.c (sh_promote_function_mode): Add ATTRIBUTE_UNUSED.
8118
8119 2009-08-12 Richard Guenther <rguenther@suse.de>
8120
8121 PR tree-optimization/41011
8122 * ipa-cp.c (ipcp_lattice_from_jfunc): Deal with failing fold
8123 and reference constructing.
8124
8125 2009-08-12 Xinliang David Li <davidxl@google.com>
8126
8127 PR tree-optimization/41012
8128 * tree-flow.h : New external interface.
8129 * gimple-low.c (check_call_arg): Change to public function.
8130 Remove argument mismatch check in lowering.
8131 * tree-inline.h (tree_can_inline_p): Interface change.
8132 * tree-inline.c (tree_can_inline_p): Fold argument mismatch check
8133 into this function.
8134 * ipa-inline.c (cgraph_decide_inlining_of_small_functions):
8135 Call change to tree_can_inline_p function.
8136 (cgraph_decide_inlining_incrementally): Ditto.
8137
8138 2009-08-12 Richard Sandiford <rdsandiford@googlemail.com>
8139
8140 PR tree-optimization/41031
8141 * tree-outof-ssa.c (insert_value_copy_on_edge): Use promote_decl_mode
8142 on the partition variable rather than promote_mode on the source
8143 type. Assert that the partition variable's type has the same
8144 mode as the source value's.
8145
8146 2009-08-12 Paolo Bonzini <bonzini@gnu.org>
8147
8148 * doc/tm.texi (TARGET_PROMOTE_FUNCTION_MODE): Add documentation
8149 for for_return == 2.
8150 * function.c (assign_parm_setup_reg): Use for_return == 2, improve
8151 comments.
8152 * calls.c (expand_call): Fix typo.
8153 * explow.c (promote_decl_mode): Use for_return == 2 for RESULT_DECL
8154 and PARM_DECL.
8155 * stmt.c (expand_value_return): Use promote_function_mode to copy out
8156 of pseudo.
8157 * targhooks.c (default_promote_function_mode): Handle for_return == 2.
8158 * config/cris/cris.c (cris_promote_function_mode): Likewise.
8159 * config/mmix/mmix.c (mmix_promote_function_mode): Likewise.
8160 * config/pa/pa.c (pa_promote_function_mode): Likewise.
8161
8162 2009-08-12 Andrew Haley <aph@redhat.com>
8163
8164 * config/arm/arm.c (arm_init_libfuncs): Add __sync_synchronize.
8165
8166 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
8167
8168 PR bootstrap/40103
8169 * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
8170
8171 2009-08-12 Richard Guenther <rguenther@suse.de>
8172
8173 * alias.c (get_alias_set): Honor TYPE_STRUCTURAL_EQUALITY_P.
8174 * gimplify.c (gimplify_modify_expr): Do not use
8175 lang_hooks.types_compatible_p.
8176 * tree-ssa.c (useless_type_conversion_p): For aggregates
8177 just return false if the canonical types differ.
8178
8179 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
8180
8181 PR middle-end/40980
8182 * sese.c (convert_for_phi_arg): New.
8183 (add_guard_exit_phis): Use convert_for_phi_arg.
8184
8185 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
8186
8187 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Dont add
8188 unknown subscript upper bounds.
8189
8190 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
8191 Pranav Garg <pranav.garg2107@gmail.com>
8192
8193 * graphite-interchange.c (gather_access_strides): Removed.
8194 (ppl_max_for_le): New.
8195 (build_linearized_memory_access): New.
8196 (memory_stride_in_loop): New.
8197 (pbb_interchange_profitable_p): Reimplemented.
8198 * graphite-ppl.h (ppl_new_id_map): New.
8199 (ppl_interchange): New.
8200
8201 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
8202
8203 * graphite-interchange.c (compute_subscript): Removed.
8204 (compute_array_size_cstr): Removed.
8205 (compute_array_size_poly): Removed.
8206 (compute_array_size): Removed.
8207 (gather_access_strides_poly): Removed.
8208 (gather_access_strides): Empty.
8209
8210 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
8211
8212 * graphite-dependences.c (dependence_polyhedron_1): Replace
8213 pdr_nb_subscripts with PDR_NB_SUBSCRIPTS.
8214 (graphite_legal_transform_dr): Same.
8215 (graphite_carried_dependence_level_k): Same.
8216 * graphite-poly.c (new_poly_dr): Add a parameter nb_subscripts.
8217 Initialize PDR_NB_SUBSCRIPTS.
8218 (print_pdr_access_layout): Replace pdr_nb_subscripts with
8219 PDR_NB_SUBSCRIPTS.
8220 * graphite-poly.h (struct poly_dr): Add nb_subscripts field.
8221 (PDR_NB_SUBSCRIPTS): New.
8222 (pdr_nb_subscripts): Removed.
8223 (pdr_dim): Simplified.
8224 * graphite-sese-to-poly.c (build_poly_dr): Replace pdr_nb_subscripts
8225 with PDR_NB_SUBSCRIPTS.
8226
8227 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
8228
8229 * graphite-interchange.c (compute_array_size): Remove use of
8230 PDR_DATA_CONTAINER.
8231 * graphite-poly.c (new_poly_dr): Remove argument data_container.
8232 Do not initialize PDR_DATA_CONTAINER.
8233 (print_pdr): Do not print PDR_DATA_CONTAINER.
8234 * graphite-poly.h (struct poly_dr): Remove data_container field.
8235 (PDR_DATA_CONTAINER): Removed.
8236 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Remove use of
8237 PDR_DATA_CONTAINER.
8238 (build_poly_dr): Same.
8239
8240 2009-08-12 Konrad Trifunovic <konrad.trifunovic@gmail.com>
8241 Sebastian Pop <sebastian.pop@amd.com>
8242
8243 * graphite-dependences.c (graphite_legal_transform_dr): Work on a
8244 copy of the dependence polyhedron. Free the temporary objects.
8245 (graphite_carried_dependence_level_k): Free unused objects before
8246 returning.
8247
8248 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
8249
8250 * graphite-blocking.c (scop_do_strip_mine): Call store_scattering.
8251 Early return without analyzing the data dependences if no
8252 transform has been done. Call restore_scattering if the transform
8253 is not legal.
8254 (graphite-interchange.c): Same.
8255 * graphite-poly.c (print_scattering_function): Test for
8256 PBB_TRANSFORMED.
8257 (graphite_read_transforms): Initialize PBB_TRANSFORMED.
8258 (apply_poly_transforms): Do not gcc_assert that
8259 the transform is legal.
8260 (new_poly_bb): Initialize PBB_TRANSFORMED, PBB_SAVED and PBB_ORIGINAL.
8261 Do not initialize PBB_NB_SCATTERING_TRANSFORM, PBB_NB_LOCAL_VARIABLES,
8262 PBB_TRANSFORMED_SCATTERING, and PBB_ORIGINAL_SCATTERING.
8263 (free_poly_dr): Free PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL.
8264 * graphite-poly.h (struct poly_scattering): New.
8265 (struct poly_bb): Add original, transformed, and saved fields.
8266 Remove transformed_scattering, original_scattering,
8267 nb_local_variables and nb_scattering_transform fields.
8268 (PBB_ORIGINAL, PBB_TRANSFORMED, PBB_SAVED): New.
8269 (poly_scattering_new): New.
8270 (poly_scattering_free): New.
8271 (poly_scattering_copy): New.
8272 (store_scattering_pbb): New.
8273 (store_scattering): New.
8274 (restore_scattering_pbb): New.
8275 (restore_scattering): New.
8276 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
8277 Initialize PBB_TRANSFORMED and PBB_ORIGINAL.
8278
8279 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
8280
8281 * graphite-poly.c (print_pbb): Add parentheses in the pretty print.
8282 (print_scop): Same.
8283
8284 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
8285
8286 * Makefile.in (graphite.o): Depends on PREDICT_H.
8287 * graphite.c: Include predict.h.
8288 (graphite_finalize): Call tree_estimate_probability.
8289 * predict.c (predict_loops): Do not call scev_initialize and
8290 scev_finalize.
8291 (tree_estimate_probability_bb): New.
8292 (tree_estimate_probability): Do not initialize loops: move that
8293 code to the driver. Call tree_estimate_probability_bb.
8294 (tree_estimate_probability_driver): New.
8295 (pass_profile): Use tree_estimate_probability_driver.
8296 * predict.h (tree_estimate_probability): Declared.
8297
8298 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
8299
8300 * graphite-clast-to-gimple.c (gloog): Add time to TV_GRAPHITE_CODE_GEN.
8301 * graphite-dependences.c (graphite_legal_transform): Add time to
8302 TV_GRAPHITE_DATA_DEPS.
8303 (dependency_between_pbbs_p): Same.
8304 * timevar.def (TV_GRAPHITE_DATA_DEPS, TV_GRAPHITE_CODE_GEN): New.
8305
8306 2009-08-12 Andrey Belevantsev <abel@ispras.ru>
8307
8308 PR rtl-optimization/41033
8309 * alias.c (nonoverlapping_component_refs_p): Punt when strict
8310 aliasing is disabled.
8311
8312 2009-08-11 Adam Nemet <anemet@caviumnetworks.com>
8313
8314 * config/mips/predicates.md (qi_mask_operand, hi_mask_operand,
8315 si_mask_operand, and_load_operand, low_bitmask_operand,
8316 and_reg_operand, and_operand): New predicates.
8317 * config/mips/constraints.md (Yb, Yh, Yw, Yz): New constraints.
8318 * config/mips/mips.c (and_operands_ok): New function.
8319 * config/mips/mips-protos.h (and_operands_ok): Declare it.
8320 * config/mips/mips.md (move_type): Add ext_ins and logical.
8321 (type): Handle them.
8322 (and<mode>3): Use and_reg_operand as the second operand's predicate.
8323 (*and<mode>3): Add alternatives for lbu, lhu, lwu, <d>ext and
8324 shift_shift. Remove commutative constraint modifier.
8325 (*and<mode>3_mips16): Add alternatives for lbu, lhu, lwu and
8326 shift_shift.
8327 (*clear_upper32_dext): Remove define_insn_and_split.
8328 (*clear_upper32): Turn this define_insn_and_split ...
8329 (splitter for ANDing register with 0xffff_ffff): .. into this.
8330
8331 2009-08-11 Adam Nemet <anemet@caviumnetworks.com>
8332
8333 * combine.c (try_widen_shift_mode): Factor out code to check if an
8334 integer constant is a low-order bitmask from here ...
8335 * rtlanal.c (low_bitmask_len): ... to here.
8336 * rtl.h (low_bitmask_len): Declare.
8337
8338 2009-08-11 Uros Bizjak <ubizjak@gmail.com>
8339
8340 PR target/8603
8341 * config/alpha/alpha.md (addsi3): Remove expander.
8342 (addsi3): Rename from *addsi3_internal insn pattern.
8343 (subsi3): Remove expander.
8344 (subsi3): Rename from *subsi3_internal insn pattern.
8345
8346 2009-08-11 Douglas B Rupp <rupp@gnat.com>
8347
8348 * config/alpha/alpha.c (alpha_init_builtins): Nullify FWRITE and
8349 FWRITE_UNLOCKED.
8350
8351 2009-08-11 Vasiliy Fofanov <fofanov@adacore.com>
8352 Eric Botcazou <botcazou@adacore.com>
8353 Douglas B Rupp <rupp@gnat.com>
8354
8355 * config/alpha/alpha.c (alpha_return_in_memory): On VMS, ensure
8356 that records that fit in 64 bits are returned by immediate value,
8357 as required by OpenVMS Calling Standard.
8358 (function_value): Adjust for above modification.
8359 (alpha_va_start) <TARGET_ABI_OPEN_VMS>: Use
8360 virtual_incoming_args_rtx as base object, not next_arg.
8361 * config/alpha/vms.h: (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
8362
8363 2009-08-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8364
8365 * reload.c (find_reloads_subreg_address): Check the original
8366 req_equiv_mem address to detect the case where an address is
8367 not valid in the outer mode.
8368
8369 2009-08-11 Richard Guenther <rguenther@suse.de>
8370
8371 PR bootstrap/40788
8372 * builtins.c (gimplify_va_arg_expr): Do not call SET_EXPR_LOCATION.
8373
8374 2009-08-10 Douglas B Rupp <rupp@gnat.com>
8375
8376 * config/alpha/vms.h (OPTIMIZATION_OPTIONS): Remove
8377 (OVERRIDE_OPTIONS): Incorporate removed OPTIMIZATION_OPTIONS.
8378
8379 2009-08-10 Olivier Hainque <hainqueu@adacore.com>
8380 Douglas B Rupp <rupp@gnat.com>
8381
8382 * config/alpha/alpha.c (alpha_sa_size): Force procedure type to
8383 PT_STACK when frame_pointer_needed on OpenVMS.
8384 (alpha_pv_save_size, alpha_using_fp): Remove.
8385 (alpha_vms_can_eliminate): New function. Support for CAN_ELIMINATE
8386 with proper processing for PT_NULL.
8387 (alpha_vms_initial_elimination_offset): New function. Support for
8388 INITIAL_ELIMINATION_OFFSET with proper processing for PT_NULL.
8389 (alpha_sa_size): Force procedure type to PT_STACK when
8390 frame_pointer_needed on OpenVMS.
8391 * config/alpha/alpha-protos.h (alpha_pv_save_size): Remove prototype.
8392 (alpha_using_fp): Likewise.
8393 (alpha_vms_can_eliminate): Add prototype.
8394 (alpha_vms_initial_elimination_offset): Likewise.
8395 * config/alpha/vms.h (CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET):
8396 Call alpha_vms_can_eliminate and alpha_vms_initial_elimination_offset.
8397
8398 2009-08-10 Eric Botcazou <botcazou@adacore.com>
8399 Douglas B Rupp <rupp@gnat.com>
8400
8401 * config/alpha/alpha.c (common_object_handler): New function.
8402 (vms_attribute_table): Declare a single attribute "common_object".
8403 (vms_output_aligned_decl_common): New global function.
8404 (SECTION_VMS_OVERLAY): Delete.
8405 (SECTION_VMS_GLOBAL): Likewise.
8406 (SECTION_VMS_INITIALIZE): Likewise.
8407 (vms_asm_named_section): Remove support for above flags.
8408 (vms_section_type_flags): Delete.
8409 (TARGET_SECTION_TYPE_FLAGS): Likewise.
8410 * config/alpha/alpha-protos.h (vms_output_aligned_decl_common): New.
8411 * config/alpha/vms.h (ASM_OUTPUT_ALIGNED_COMMON): Delete.
8412 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New macro.
8413
8414 2009-08-10 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
8415
8416 PR target/41015
8417 * longlong.h [__sh__] (udiv_qrnnd): Add T register to clobber list.
8418 (sub_ddmmss): Likewise.
8419
8420 2009-08-10 Andreas Tobler <a.tobler@schweiz.org>
8421
8422 PR bootstrap/41018
8423 * config/rs6000/freebsd.h: Define SVR4_ASM_SPEC. Adjust copyright
8424 year.
8425
8426 2009-08-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8427
8428 PR target/37053
8429 * reload1.c (reload_as_needed): Use cancel_changes to completely
8430 undo a failed replacement attempt.
8431
8432 2009-08-10 Richard Guenther <rguenther@suse.de>
8433
8434 PR middle-end/41006
8435 * tree-ssa.c (useless_type_conversion_p_1): Fold into ...
8436 (useless_type_conversion_p): ... here. Require pointer targets
8437 to be compatible.
8438
8439 2009-08-10 Dodji Seketeli <dodji@redhat.com>
8440
8441 PR c++/40866
8442 * tree-inline.c (copy_statement_list): The resulting copy shouldn't
8443 loose the original type of the statement list.
8444
8445 2009-08-09 Douglas B Rupp <rupp@gnat.com>
8446
8447 * config/alpha/alpha.c: Include libfuncs.h
8448 (avms_asm_output_extern): New function.
8449 (alpha_init_libfuncs): Init some decc libfuncs.
8450 * config/alpha/alpha-protos.h (avms_asm_output_external): Declare.
8451 * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Define.
8452 (DO_CRTL_NAMES): Define.
8453 (LIB_SPEC): Remove.
8454 * config/alpha/vms64.h: (POINTERS_EXTEND_UNSIGNED): Remove undef.
8455 (LONG_TYPE_SIZE): Define.
8456 (TARGET_OS_CPP_BUILTINS): Define with __LONG_POINTERS=1
8457 (SUBTARGET_SWITCHES): Define malloc64 switch.
8458 (TARGET_DEFAULT): Default MASK_MALLOC64 set.
8459 (MASK_RETURN_ADDR): Define.
8460 doc/invoke.texi (mmalloc64): Document switch.
8461
8462 2009-08-09 Olivier Hainque <hainque@adacore.com>
8463 Douglas B Rupp <rupp@gnat.com>
8464
8465 * config/alpha/alpha.c (struct machine_function): New flag for VMS,
8466 uses_condition_handler.
8467 (alpha_expand_builtin_establish_vms_condition_handler): New expander.
8468 (alpha_expand_builtin_revert_vms_condition_handler): New expander.
8469 (enum alpha_builtin): New ALPHA_BUILTIN_REVERT_VMS_CONDITION_HANDLER
8470 and ALPHA_BUILTIN_ESTABLISH_VMS_CONDITION_HANDLER values.
8471 (code_for_builtin): New insn codes for the new alpha_builtins.
8472 (alpha_init_builtins): Register the new functions as BUILT_IN_MD.
8473 (alpha_sa_size): Account for uses_condition_handler.
8474 (alpha_expand_prologue): Likewise.
8475 (alpha_start_function): Likewise.
8476 (alpha_expand_epilogue): Likewise.
8477 * config/alpha/alpha-protos.h: Prototype the new alpha.c builtin
8478 establish/revert expanders.
8479 * config/alpha/alpha.h (DWARF_FRAME_REGNUM): Define.
8480 * config/alpha/alpha.md (builtin_establish_vms_condition_handler):
8481 New expander, resorting to the alpha.c associated function.
8482 (builtin_revert_vms_condition_handler): Likewise.
8483 * config/alpha/vms-gcc_shell_handler.c: New file. Implements
8484 __gcc_shell_handler, the static VMS condition handler used as
8485 an indirection wrapper to the current dynamically established
8486 handler.
8487 * config/alpha/vms-unwind.h: Complete rewrite.
8488 * config/alpha/t-vms (LIB2FUNCS_EXTRA): Add vms-gcc_shell_handler.c
8489 * config/alpha/vms.h (MD_UNWIND_SUPPORT):
8490
8491 2009-08-09 Eric Botcazou <botcazou@adacore.com>
8492 Douglas B Rupp <rupp@gnat.com>
8493
8494 * config/alpha/alpha.c (alpha_links): Add 'target' field.
8495 (alpha_need_linkage): Handle aliases. Return function symbol.
8496 (alpha_use_linkage): Rename 'linkage' argument to 'func'.
8497 Use ultimate alias target for the linkage name.
8498 * config/alpha/alpha.md (movmemdi): Use the symbol returned
8499 by alpha_need_linkage for the function symbol.
8500 (setmemdi): Likewise.
8501
8502 2009-08-09 Douglas B Rupp <rupp@gnat.com>
8503
8504 * config/alpha/alpha.c (TARGET_ASM_UNALIGNED_*_OP): Define if on VMS.
8505 * config/alpha/vms.h (OBJECT_FORMAT_ELF): Define.
8506 (ASM_WEAKEN_LABEL): Define.
8507 (CRT_CALL_STATIC_FUNCTION): Define.
8508 (STARTFILE_SPEC): Add crtbegin.o crtbeginS.o.
8509 (ENDFILE_SPEC): Define.
8510 (INIT_SECTION_ASM_OP): Define.
8511 * config/alpha/vms-dwarf2eh.asm (__EH_FRAME_BEGIN__): Remove.
8512 * config/alpha/t-vms (EXTRA_PARTS): Add crtbegin.o crtbeginS.o
8513 crtend.o crtendS.o.
8514 (MULTILIB_OSDIRNAMES): Define.
8515 (shlib_version): Define.
8516 (SHLIB_EXT): Define.
8517 (SHLIB_OBJS): Define.
8518 (SHLIB_NAME): Define.
8519 (SHLIB_MULTILIB): Define.
8520 (SHLIB_INSTALL): Define.
8521 (SHLIB_SYMVEC): Define.
8522 (SHLIB_SYMVECX2): Define.
8523 (SHLIB_LINK): Define.
8524
8525 2009-08-09 Douglas B Rupp <rupp@gnat.com>
8526
8527 * config/alpha/alpha.c (alpha_initialize_trampoline):
8528 Initialize VMS trampoline IAW ABI for bounded procedure calls.
8529 (alpha_start_function): Emit transfer address on nested functions
8530 for VMS trampoline call.
8531 * config/alpha/t-vms (LIB2FUNCS_EXTRA): Remove vms_tramp.asm
8532 since no longer used.
8533 * config/alpha/vms-tramp.asm: Remove.
8534 * config/alpha/vms.h (TRAMPOLINE_TEMPLATE): Leave undefined
8535 since now only data initialized at runtime.
8536
8537 2009-08-09 Douglas B Rupp <rupp@gnat.com>
8538
8539 * config/alpha/vms.h (HANDLE_SYSV_PRAGMA): Define.
8540 (LINK_GCC_C_SEQUENCE_SPEC): Define.
8541 (MD_EXEC_PREFIX): Remove, no longer used.
8542 (MD_STARTFILE_PREFIX): Likewise.
8543 (INCLUDE_DEFAULTS): Likewise.
8544 * config/alpha/t-vms:
8545 (vms-dwarf2.o, vms-dwarf2eh.o): Use GCC_FOR_TARGET to compile.
8546
8547 2009-08-09 Richard Guenther <rguenther@suse.de>
8548
8549 PR tree-optimization/41016
8550 * tree-ssa-ifcombine.c (get_name_for_bit_test): Fix tuplification bug.
8551 (operand_precision): Remove.
8552 (integral_operand_p): Likewise.
8553 (recognize_single_bit_test): Adjust.
8554
8555 2009-08-09 Richard Sandiford <rdsandiford@googlemail.com>
8556
8557 * c-common.c (c_fully_fold_internal): Issue a warning if a binary
8558 operation overflows. Likewise non-cast unary arithmetic.
8559 If one arm of a conditional expression is always taken,
8560 inhibit evaluation warnings for the other arm. Likewise inhibit
8561 evaluation warnings for the second && or || operand if the first
8562 operand is enough to determine the result.
8563 * c-typeck.c (build_conditional_expr): Apply the same inhibition
8564 rules here.
8565 (build_binary_op): Prevent duplicate evaluation warnings.
8566
8567 2009-08-09 Richard Sandiford <rdsandiford@googlemail.com>
8568
8569 * tree-out-of-ssa.c (insert_value_copy_on_edge): If the source
8570 and destination have different modes, Use promote_mode to
8571 determine the signedness of the conversion. Assert that the
8572 promoted source mode matches the destination mode. Don't pass
8573 the destination and destination mode to expand_expr if the source
8574 mode is different. Simplify conversion logic.
8575
8576 2009-08-09 Ira Rosen <irar@il.ibm.com>
8577
8578 PR tree-optimization/41008
8579 * tree-vect-loop.c (vect_is_simple_reduction): Get operands
8580 from condition only in case it's a comparison. Adjust checks.
8581
8582 2009-08-09 Bernd Schmidt <bernd.schmidt@analog.com>
8583
8584 * tree-dfa.c (renumber_gimple_stmt_uids_in_blocks): New function.
8585 * tree-flow.h (renumber_gimple_stmt_uids_in_blocks): Declare it.
8586 * tree-ssa-loop-ivopts.c (comp_cost): Make COST an integer.
8587 (enum iv_position): Add IP_AFTER_USE and IP_BEFORE_USE.
8588 (dump_cand): Handle them.
8589 (struct iv_cand): New members COST_STEP and AINC_USE.
8590 (stmt_after_increment): Likewise.
8591 (stmt_after_inc_pos): Renamed from stmt_after_ip_original_pos. All
8592 callers changed. Use gimple_uid comparison instead of scanning.
8593 (add_candidate_1): When looking for identical candidates, take
8594 AINC_USE into account. Set it for new candidates.
8595 (force_expr_to_var_cost): Cast target_spill_cost to int.
8596 (get_address_cost): New arguments STMT_AFTER_INC and MAY_AUTOINC.
8597 All callers changed. Check for availability of autoinc addressing
8598 modes, both in general for a given mode, and in the specific use case.
8599 (get_computation_cost_at): New argument CAN_AUTOINC. All callers
8600 changed.
8601 (get_computation_cost): Likewise.
8602 (autoinc_possible_for_pair, set_autoinc_for_original_candidates,
8603 add_autoinc_candidates): New static functions.
8604 (add_candidate): Call add_autoinc_candidates for candidates based on
8605 a USE_ADDRESS use.
8606 (find_iv_candidates): Call set_autoinc_for_original_candidates.
8607 (determine_use_iv_cost_address): If we have an autoinc candidate at
8608 the matching use, verify autoinc is possible and subtract the cost
8609 of the candidate's step from the cost.
8610 (determine_iv_cost): Record the cost of the increment in the COST_STEP
8611 member of the candidate.
8612 (tree_ssa_iv_optimize_loop): Swap the calls to determine_iv_costs and
8613 determine_use_iv_costs. Call renumber_gimple_stmt_uids_in_blocks.
8614
8615 2009-08-09 Douglas B Rupp <rupp@gnat.com>
8616
8617 * config.build (ia64-hp-*vms*): New target.
8618 (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
8619 with ia64-hp-*vms*.
8620 * config.gcc (ia64-hp-*vms*): New target.
8621 (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
8622 with ia64-hp-*vms*.
8623 * config.host (ia64-hp-*vms*): New target.
8624 (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
8625 with ia64-hp-*vms*.
8626
8627 2009-08-08 Richard Guenther <rguenther@suse.de>
8628
8629 PR tree-optimization/40991
8630 * tree-ssa-pre.c (eliminate): Delay purging EH edges.
8631
8632 2009-08-08 Richard Sandiford <rdsandiford@googlemail.com>
8633
8634 * combine.c (gen_lowpart_or_truncate): Exclude CONST_INTs from
8635 mode check. Do truncations in an integer mode.
8636 (force_to_mode): Handle subregs for all mode types. Only do
8637 arithmetic simplifications on integer modes.
8638
8639 2009-08-07 Richard Guenther <rguenther@suse.de>
8640
8641 PR tree-optimization/40999
8642 * tree-ssa-ccp.c (get_symbol_constant_value): Handle CONST_DECLs.
8643 (maybe_fold_reference): Lookup constant initializers.
8644 (fold_gimple_assign): Likewise.
8645
8646 2009-08-07 Richard Guenther <rguenther@suse.de>
8647
8648 * tree-ssa.c (useless_type_conversion_p_1): Only for types
8649 that require structural equality defer to the langhook.
8650
8651 2009-08-07 Martin Jambor <mjambor@suse.cz>
8652
8653 * ipa-prop.h (enum jump_func_type): New value IPA_JF_ANCESTOR, changed
8654 comments.
8655 (struct ipa_pass_through_data): New type.
8656 (struct ipa_ancestor_jf_data): New type.
8657 (union jump_func_value): Removed field formal_id, added fields
8658 pass_through and ancestor.
8659 (struct ipa_param_call_note): Changed type of formal_id to int from
8660 unsigned.
8661 * ipa-prop.c (ipa_print_node_jump_functions): Print pass through with
8662 operations jump functions and ancestor jump functions.
8663 (compute_complex_pass_through): New function.
8664 (compute_scalar_jump_functions): Call compute_complex_pass_through,
8665 reflect changes in the jump function strucutre.
8666 (update_jump_functions_after_inlining): Ignore complex pass-through
8667 and ancestor jump functions.
8668 * ipa-cp.c (ipcp_lattice_from_jfunc): Added support for ancestor and
8669 polynomial pass-through with operation jump functions.
8670
8671 2009-08-07 Jakub Jelinek <jakub@redhat.com>
8672
8673 * dwarf2out.c (output_fde): When doing hot/cold partitioning, use
8674 fde->dw_fde_begin as begin label instead of hot/cold label.
8675 Use LLSDAC label instead of LLSDA for second section lsda.
8676 (dwarf2out_do_cfi_startproc): Add SECOND argument. Use LLSDAC
8677 label instead of LLSDA if it is true.
8678 (dwarf2out_begin_prologue, dwarf2out_switch_text_section): Adjust
8679 callers.
8680 * except.c (add_call_site, dw2_size_of_call_site_table): Add
8681 SECTION argument. Use it as index into crtl->eh.call_site_record
8682 array.
8683 (dw2_output_call_site_table): Likewise. Add CS_FORMAT argument,
8684 use it to determine how to print table entries instead of using
8685 #ifdef HAVE_AS_LEB128. For SECTION > 0 use hot resp. cold
8686 label instead of normal begin label as base.
8687 (sjlj_assign_call_site_values): Adjust add_call_site caller.
8688 (convert_to_eh_region_ranges): When doing hot/cold partitioning,
8689 ensure no EH range spans between sections and that landing pads
8690 are always in the corresponding section.
8691 (sjlj_size_of_call_site_table, sjlj_output_call_site_table): Adjust
8692 for crtl->eh.call_site_record being an array rather than scalar.
8693 (output_one_function_exception_table): New function, copied
8694 from output_function_exception_table. Adjust
8695 dw2_size_of_call_site_table, dw2_output_call_site_table
8696 callers. For SECOND section use *C suffixed labels.
8697 (output_function_exception_table): Call
8698 output_one_function_exception_table and, when doing hot/cold
8699 partitioning, also another time for the second section.
8700 * opts.c: Include except.h.
8701 (decode_options): Allow -freorder-blocks-and-partition with
8702 exceptions, unless SJLJ or TARGET_UNWIND_INFO.
8703 * Makefile.in (opts.o): Depend on $(EXCEPT_H).
8704 * function.h (struct rtl_eh): Change call_site_record from
8705 scalar into array of 2 elements.
8706
8707 2009-08-07 Martin Jambor <mjambor@suse.cz>
8708
8709 * ipa-prop.c (count_formal_params_1): New function.
8710 (ipa_get_vector_of_formal_parms): New function.
8711 (get_vector_of_formal_parm_types): New function.
8712 (ipa_modify_formal_parameters): New function.
8713 (ipa_modify_call_arguments): New function.
8714 (index_in_adjustments_multiple_times_p): New function.
8715 (ipa_combine_adjustments): New function.
8716 (ipa_dump_param_adjustments): New function.
8717 * ipa-prop.h (struct ipa_parm_adjustment): New type.
8718 (ipa_get_vector_of_formal_parms): Declare.
8719 (ipa_modify_formal_parameters): Declare.
8720 (ipa_modify_call_arguments): Declare.
8721 (ipa_combine_adjustments): Declare.
8722 (ipa_dump_param_adjustments): Declare.
8723 (build_ref_for_offset): Declare.
8724 * Makefile.in (tree-sra.o): Add ipa-prop.h to dependencies.
8725 * tree-sra.c: Include ipa-prop.c.
8726 (build_ref_for_offset): Make public.
8727
8728 2009-08-06 Neil Vachharajani <nvachhar@gmail.com>
8729
8730 * value-prof.c (init_pid_map): Replace xmalloc with XCNEWVEC.
8731
8732 2009-08-06 Thomas Schwinge <tschwinge@gnu.org>
8733
8734 * gcc/doc/extend.texi (__builtin_extract_return_address)
8735 (__builtin_frob_return_address): Document.
8736
8737 2009-08-06 Paul Brook <paul@codesourcery.com>
8738
8739 * config/arm/lib1funcs.asm (ARM_DIV_BODY): Add Thumb-2 implementation.
8740 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Only use Thumb-1
8741 implementation on ARMv6-M.
8742
8743 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
8744
8745 * doc/extend.texi (pcs): Document new attribute for ARM.
8746
8747 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
8748
8749 * arm.c (pcs_attribute_args): Comment out unsupported attribute
8750 variants.
8751
8752 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
8753
8754 * arm.c (arm_handle_pcs_attribute): Pass the entire name object to
8755 warning ().
8756
8757 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
8758
8759 * arm.c (arm_handle_pcs_attribute): Use %qE in warning.
8760
8761 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
8762
8763 Merge ARM/hard_vfp_branch to trunk.
8764
8765 2009-08-04 Richard Earnshaw <rearnsha@arm.com>
8766
8767 * arm.c (libcall_eq): New function.
8768 (libcall_hash): New function.
8769 (add_libcall): New function.
8770 (arm_libcall_uses_aapcs_base): New function.
8771 (arm_libcall_value): Use arm_libcall_uses_aapcs_base to check for
8772 libcalls using the base PCS.
8773 (arm_init_cumulative_args): Likewise.
8774
8775 2009-07-20 Joseph Myers <joseph@codesourcery.com>
8776
8777 * config/arm/arm.c (arm_libcall_value, arm_init_cumulative_args):
8778 Use base ABI for conversion libfuncs between HFmode and SFmode.
8779
8780 2009-05-12 Joseph Myers <joseph@codesourcery.com>
8781
8782 * config/arm/arm.c (aapcs_vfp_sub_candidate): Use V2SImode and
8783 V4SImode as representatives of all 64-bit and 128-bit vector
8784 types. Allow vector types without vector modes.
8785 (aapcs_vfp_is_call_or_return_candidate): Handle vector types
8786 without vector modes like BLKmode.
8787 (aapcs_vfp_allocate): Handle TImode for non-TARGET_NEON like
8788 BLKmode. Avoid unsupported vector modes or TImode moves for
8789 non-TARGET_NEON.
8790 (aapcs_vfp_allocate_return_reg): Likewise.
8791 (arm_vector_mode_supported_p): Only support V2SImode, V4HImode and
8792 V8QImode if TARGET_NEON || TARGET_IWMMXT.
8793
8794 2009-05-12 Joseph Myers <joseph@codesourcery.com>
8795
8796 * config/arm/arm.c (arm_handle_pcs_attribute): New.
8797 (arm_get_pcs_model): Pass attribute arguments to
8798 arm_pcs_from_attribute.
8799 (arm_init_cumulative_args): Use base AAPCS for conversions from
8800 floating-point types to DImode.
8801 (arm_attribute_table): Add pcs attribute.
8802 (arm_handle_pcs_attribute): New.
8803 * config/arm/bpabi.h (DECLARE_LIBRARY_RENAMES): When renaming
8804 conversions from floating-point types to DImode, also declare them
8805 to use base AAPCS and declare functions they call to use base
8806 AAPCS and their RTABI names.
8807
8808 2009-05-12 Joseph Myers <joseph@codesourcery.com>
8809
8810 * doc/invoke.texi (-mfloat-abi=@var{name}): Remove statement about
8811 -mfloat-abi=hard not being supported for VFP.
8812
8813 2009-05-11 Kazu Hirata <kazu@codesourcery.com>
8814
8815 * config/sparc/sparc.c (sparc_emit_float_lib_cmp): Pass a libcall
8816 SYMBOL_REF to hard_libcall_value.
8817
8818 2009-03-05 Joseph Myers <joseph@codesourcery.com>
8819 Richard Earnshaw <rearnsha@arm.com>
8820
8821 * config/arm/arm.c (aapcs_layout_arg): Once a co-processor argument
8822 has been put on the stack, all remaining co-processory arguments for
8823 that co-processor also go on the stack.
8824
8825 2009-03-05 Joseph Myers <joseph@codesourcery.com>
8826
8827 * config/arm/arm.c (arm_return_in_memory): Handle returning
8828 vectors of suitable size in registers also for AAPCS case.
8829
8830 2009-01-13 Richard Earnshaw <rearnsha@arm.com>
8831
8832 * doc/tm.texi (TARGET_LIBCALL_VALUE): Add missing end statement.
8833
8834 2008-12-09 Richard Earnshaw <rearnsha@arm.com>
8835
8836 ARM Hard-VFP calling convention
8837 * target-def.h (TARGET_LIBCALL_VALUE): New hook.
8838 * target.h (gcc_target): Add libcall_value to table of call hooks.
8839 * targhooks.h (default_libcall_value): Default implementation.
8840 * targhooks.c (default_libcall_value): Likewise.
8841 * doc/tm.texi (TARGET_LIBCALL_VALUE): Document it.
8842 * optabs.c (expand_unop): Use it.
8843 * expr.h (hard_libcall_value): Pass the function RTX through.
8844 * calls.c (emit_library_call_value_1): Update call to
8845 hard_libcall_value.
8846 * explow.c (hard_libcall_value): Use new target hook.
8847 * testsuite/lib/target-supports.exp
8848 (check_effective_target_arm_hard_vfp_ok): New hook.
8849 (check_effective_target_arm_neon_ok): Improve test for neon
8850 availability.
8851 * testsuite/gcc.target/arm/eabi1.c: Only run test in base variant.
8852 * config/arm/arm.c: Include cgraph.h
8853 (TARGET_FUNCTION_VALUE): Override default hook.
8854 (arm_pcs_default): New variable.
8855 (arm_override_options): Don't fault hard calling convention with VFP.
8856 Add support for AAPCS variants.
8857 (arm_function_value): Make static. Handle AAPCS variants.
8858 (arm_libcall_value): New function.
8859 (arm_apply_result_size): Handle VFP registers in results.
8860 (arm_return_in_memory): Rework all AAPCS variants; handle hard-vfp
8861 conventions.
8862 (pcs_attribute_args): New variable.
8863 (arm_pcs_from_attribute): New function.
8864 (arm_get_pcs_model): New function.
8865 (aapcs_vfp_cum_init): New function.
8866 (aapcs_vfp_sub_candidate): New function.
8867 (aapcs_vfp_is_return_candidate): New function.
8868 (aapcs_vfp_is_call_candidate): New function.
8869 (aapcs_vfp_allocate): New function.
8870 (aapcs_vfp_allocate_return_reg): New function.
8871 (aapcs_vfp_advance): New function.
8872 (aapcs_cp_arg_layout): New variable.
8873 (aapcs_select_call_coproc): New function.
8874 (aapcs_select_return_coproc): New function.
8875 (aapcs_allocate_return_reg): New function.
8876 (aapcs_libcall_value): New function.
8877 (aapcs_layout_arg): New function.
8878 (arm_init_cumulative_args): Initialize AAPCS args data.
8879 (arm_function_arg): Handle AAPCS variants using new interface.
8880 (arm_arg_parital_bytes): Likewise.
8881 (arm_function_arg_advance): New function.
8882 (arm_function_ok_for_sibcall): Ensure that sibling calls agree on
8883 calling conventions.
8884 (arm_setup_incoming_varargs): Handle new AAPCS args data.
8885 * arm.h (NUM_VFP_ARG_REGS): Define.
8886 (LIBCALL_VALUE): Update.
8887 (FUNCTION_VALUE): Delete.
8888 (FUNCTION_VALUE_REGNO_P): Add VFP regs.
8889 (arm_pcs): New enum.
8890 (CUMULATIVE_ARGS): New data to support AAPCS argument marshalling.
8891 (FUNCTION_ARG_ADVANCE): Call arm_function_arg_advance.
8892 (FUNCTION_ARG_REGNO_P): Add VFP regs.
8893 * arm-protos.h (arm_function_arg_advance): Add.
8894 (aapcs_libcall_value): Add.
8895 (arm_function_value): Delete.
8896
8897 2009-08-06 Uros Bizjak <ubizjak@gmail.com>
8898 H.J. Lu <hongjiu.lu@intel.com>
8899
8900 PR target/40957
8901 * config/i386/i386.c (standard_sse_mode_p): Remove.
8902 (standard_sse_constant_p): Return 2 for integer mode
8903 vector_all_ones_operand when SSE2 is enabled.
8904 (standard_sse_constant_opcode)<case 2>: Always return [v]pcmpeqd.
8905 (ix86_expand_vector_move): Do not check for negative values from
8906 standard_sse_constant_p.
8907
8908 2009-08-06 Richard Guenther <rguenther@suse.de>
8909
8910 * tree-ssa.c (useless_type_conversion_p_1): Make function and
8911 array type comparisons frontend independent.
8912 * Makefile.in (tree-ssa.o): Add $(TARGET_H) dependency.
8913 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Always fill
8914 out array reference lower bound and element size operands.
8915 (ao_ref_init_from_vn_reference): Properly compute the offset
8916 for ARRAY_RANGE_REF.
8917 (vn_reference_fold_indirect): Fill out array reference lower
8918 bound and element size operands.
8919 * tree-ssa-pre.c (phi_translate_1): Fail if we have to translate
8920 a non gimple valued reference operand which can happen for
8921 array reference lower bound or element size.
8922 (create_component_ref_by_pieces_1): Properly generate the
8923 element size operand for array references.
8924
8925 2009-08-06 Richard Guenther <rguenther@suse.de>
8926
8927 PR tree-optimization/40964
8928 * tree.c (iterative_hash_host_wide_int): Export.
8929 * tree.h (iterative_hash_host_wide_int): Declare.
8930 * tree-ssa-structalias.c (heapvar_map): New struct.
8931 (heapvar_map_eq): New function.
8932 (heapvar_map_hash): Likewise.
8933 (heapvar_lookup): Adjust.
8934 (heapvar_insert): Likewise.
8935 (make_constraint_from_heapvar): Allow multiple heap variables
8936 per decl at different offsets.
8937 (init_alias_heapvars): Adjust.
8938
8939 2009-08-04 David Daney <ddaney@caviumnetworks.com>
8940
8941 * config/mips/mips.h (TARGET_SYNC_AFTER_SC): New macro.
8942 * mips_output_sync_loop (mips_output_sync_loop): Only emit
8943 trailing sync if TARGET_SYNC_AFTER_SC.
8944
8945 2009-08-05 David Daney <ddaney@caviumnetworks.com>
8946
8947 * gcc/config/mips/sync.md (sync_compare_and_swap<mode>,
8948 compare_and_swap_12, sync_add<mode>, sync_<optab>_12,
8949 sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12,
8950 sync_old_nand_12, sync_new_nand_12, sync_sub<mode>,
8951 sync_old_add<mode>, sync_old_sub<mode>, sync_new_add<mode>,
8952 sync_new_sub<mode>, sync_<optab><mode>, sync_old_<optab><mode>,
8953 sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
8954 sync_new_nand<mode>, sync_lock_test_and_set<mode>,
8955 test_and_set_12): Rewrite calls to mips_output_sync_loop.
8956 * gcc/config/mips/mips-protos.h (mips_output_sync_loop): Make
8957 the prototype declaration match the definition.
8958 * gcc/config/mips/mips.c (mips_output_sync_loop): Emit sync
8959 instructions explicitly. Add barrier_before and operands
8960 parameters.
8961 * gcc/config/mips/mips.h (MIPS_COMPARE_AND_SWAP,
8962 MIPS_COMPARE_AND_SWAP_12, MIPS_SYNC_OP, MIPS_SYNC_OP_12,
8963 MIPS_SYNC_OLD_OP_12, MIPS_SYNC_NEW_OP_12, MIPS_SYNC_OLD_OP,
8964 MIPS_SYNC_NEW_OP, MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND,
8965 MIPS_SYNC_NEW_NAND, MIPS_SYNC_EXCHANGE,
8966 MIPS_SYNC_EXCHANGE_12): Remove sync instructions.
8967
8968 2009-08-05 Andrew Pinski <pinskia@gmail.com>
8969
8970 * tree-ssa-alias.c: Fix intervals to use [) syntax.
8971
8972 2009-08-05 Uros Bizjak <ubizjak@gmail.com>
8973 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
8974
8975 PR target/40906
8976 * config/i386/i386.c (ix86_split_long_move): Fix push of multi-part
8977 source operand.
8978
8979 2009-08-05 Jakub Jelinek <jakub@redhat.com>
8980
8981 PR rtl-optimization/40924
8982 * dse.c (canon_address): Before calling cselib_expand_value_rtx
8983 make sure canon_rtx (mem_address) isn't simpler than
8984 canon_rtx (expanded_mem_address).
8985
8986 2009-08-05 Li Feng <nemokingdom@gmail.com>
8987
8988 * graphite-sese-to-poly.c (build_pbb_drs): Remove build alias set
8989 for each poly_bb_p.
8990 (build_scop_drs): Build alias set for each SCoP.
8991
8992 2009-08-04 Sandra Loosemore <sandra@codesourcery.com>
8993
8994 * doc/invoke.texi (MIPS Options): Document new 1004K -march options.
8995 * config/mips/mips.c (mips_cpu_info_table): Add 1004K cores.
8996 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Add pattern for 1004K.
8997 (MIPS_ARCH_FLOAT_SPEC): Likewise.
8998 (BASE_DRIVER_SELF_SPECS): Likewise.
8999
9000 2009-08-04 Andrew Pinski <pinskia@gmail.com>
9001
9002 * tree-ssa-alias.c: Fix some comment typos.
9003
9004 2009-08-04 Kaz Kojima <kkojima@gcc.gnu.org>
9005
9006 * config/sh/linux-atomic.asm (ATOMIC_BOOL_COMPARE_AND_SWAP,
9007 ATOMIC_OP_AND_FETCH, ATOMIC_COMBOP_AND_FETCH): Define.
9008
9009 2009-08-03 Janis Johnson <janis187@us.ibm.com>
9010
9011 PR c/39902
9012 * simplify-rtx.c (simplify_binary_operation_1): Disable
9013 simplifications for decimal float operations.
9014
9015 2009-08-03 Jakub Jelinek <jakub@redhat.com>
9016
9017 PR middle-end/40943
9018 * tree-ssa.c (warn_uninitialized_var): Even on LHS warn for
9019 operand of INDIRECT_REF.
9020
9021 2009-08-03 Uros Bizjak <ubizjak@gmail.com>
9022
9023 * config/alpha/alpha.c (alpha_legitimate_constant_p): Reject CONST
9024 constants referencing TLS symbols.
9025
9026 2009-08-03 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
9027
9028 * config/sh/linux-atomic.asm (ATOMIC_COMPARE_AND_SWAP): Rename
9029 __sync_compare_and_swap_* to __sync_val_compare_and_swap_*.
9030
9031 2009-08-03 Richard Guenther <rguenther@suse.de>
9032
9033 * tree.c (make_vector_type): Build a main variant first,
9034 get the canonical one and then build the variant.
9035 * tree-ssa.c (useless_type_conversion_p_1): Handle
9036 fixed-point types.
9037 (useless_type_conversion_p): Conversions to pointers to
9038 incomplete record types are useless.
9039
9040 2009-08-03 Richard Guenther <rguenther@suse.de>
9041
9042 * tree-cfg.c (pass_warn_unused_result): Mark name that no dump
9043 file will be created.
9044 * omp-low.c (pass_diagnose_omp_blocks): Likewise.
9045 * toplev.c (compile_file): Adjust comment.
9046
9047 2009-08-03 Kaz Kojima <kkojima@gcc.gnu.org>
9048
9049 * config/sh/sh-protos.h (sh_promote_function_mode): Remove.
9050 * config/sh/sh.c (sh_promote_function_mode): Wrap long lines.
9051 (TARGET_PROMOTE_FUNCTION_MODE): Define.
9052 (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
9053 (sh_promote_function_mode): Fix typo.
9054
9055 2009-08-03 Andreas Krebbel <krebbel1@de.ibm.com>
9056
9057 * explow.c (promote_mode): Mark TYPE and PUNSIGNEDP as possibly unused.
9058
9059 2009-08-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9060
9061 * pa.c (pa_promote_function_mode): Remove ATTRIBUTE_UNUSED from
9062 declaration arguments.
9063
9064 2009-08-02 Uros Bizjak <ubizjak@gmail.com>
9065
9066 * config/i386/i386.c (ix86_expand_fp_compare): Use const0_rtx instead
9067 of GEN_INT (0x00) and const1_rtx instead of GEN_INT (0x01).
9068 (ix86_split_ashl): Ditto.
9069 (ix86_expand_vector_init_one_nonzero): Ditto.
9070 (ix86_expand_vector_set): Ditto.
9071 (ix86_expand_reduc_v4sf): Ditto.
9072
9073 2009-08-02 Paolo Bonzini <bonzini@gnu.org>
9074
9075 * explow.c (promote_function_mode): Remove assert.
9076 * config/sh/sh.c (sh_promote_function_mode): Declare.
9077
9078 2009-08-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9079
9080 * config/pa/pa.c (pa_promote_function_mode): Declare.
9081 Change to static. Fix promote_mode call.
9082
9083 * gthr-dce.h (CONST_CAST2): Define if not defined.
9084 (__gthread_setspecific): Use CONST_CAST2 to fix warning.
9085
9086 * config.gcc (hppa[12]*-*-hpux10*): Add stdint support.
9087
9088 2009-08-01 Paolo Bonzini <bonzini@gnu.org>
9089
9090 * expr.c (store_constructor): Use promote_decl_mode. Remove
9091 now write-only variable unsignedp.
9092 (expand_expr_real_1): Use promote_decl_mode.
9093 * expr.h (promote_function_mode, promote_decl_mode): New.
9094 (promote_mode): Remove last argument.
9095 * function.c (assign_temp): Drop last argument of promote_mode.
9096 (assign_parm_find_data_types): Use promote_function_mode.
9097 (assign_parm_setup_reg): Likewise.
9098 (expand_function_end): Use promote_function_mode.
9099 * calls.c (initialize_argument_information): Use promote_function_mode.
9100 (precompute_arguments): Use promote_mode instead of checking if
9101 only PROMOTE_FUNCTION_MODE is defined.
9102 (expand_call): When making sibcall decisions, use promote_function_mode.
9103 Below, remove an if for targetm.calls.promote_function_return and
9104 and use promote_function_mode.
9105 (emit_library_call_value_1): Use promote_function_mode, fix bug
9106 where promote_mode was passed FOR_CALL == 0 for a return value in an
9107 assertion.
9108 * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
9109 * explow.c (promote_function_mode, promote_decl_mode): New.
9110 (promote_mode): Keep only the FOR_CALL == 0 case.
9111 * combine.c (setup_incoming_promotion): Remove test of
9112 promote_function_args. Use promote_function_mode.
9113 * stmt.c (expand_value_return): Use promote_decl_mode.
9114 (expand_decl): Use promote_decl_mode.
9115
9116 * expr.c (store_constructor): Use promote_decl_mode. Remove
9117 now write-only variable unsignedp.
9118 (expand_expr_real_1): Use promote_decl_mode.
9119 * expr.h (promote_function_mode, promote_decl_mode): New.
9120 (promote_mode): Remove last argument.
9121 * function.c (assign_temp): Drop last argument of promote_mode.
9122 (assign_parm_find_data_types): Use promote_function_mode.
9123 (assign_parm_setup_reg): Likewise.
9124 (expand_function_end): Use promote_function_mode.
9125 * calls.c (initialize_argument_information): Use promote_function_mode.
9126 (precompute_arguments): Use promote_mode instead of checking if
9127 only PROMOTE_FUNCTION_MODE is defined.
9128 (expand_call): When making sibcall decisions, use promote_function_mode.
9129 Below, remove an if for targetm.calls.promote_function_return and
9130 and use promote_function_mode.
9131 (emit_library_call_value_1): Use promote_function_mode, fix bug
9132 where promote_mode was passed FOR_CALL == 0 for a return value in an
9133 assertion.
9134 * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
9135 * explow.c (promote_function_mode, promote_decl_mode): New.
9136 (promote_mode): Keep only the FOR_CALL == 0 case.
9137 * combine.c (setup_incoming_promotion): Remove test of
9138 promote_function_args. Use promote_function_mode.
9139 * stmt.c (expand_value_return): Use promote_decl_mode.
9140 (expand_decl): Use promote_decl_mode.
9141
9142 * explow.c (promote_function_mode): Just call the target hook.
9143 * targhooks.c (default_promote_function_mode,
9144 default_promote_function_mode_always_promote): New.
9145 * targhooks.h (default_promote_function_mode,
9146 default_promote_function_mode_always_promote): Declare.
9147 * target.h (promote_function_args, promote_function_return): Remove.
9148 (promote_function_mode): New.
9149 * target-def.h (TARGET_PROMOTE_FUNCTION_ARGS,
9150 TARGET_PROMOTE_FUNCTION_RETURN): Remove.
9151 (TARGET_PROMOTE_FUNCTION_MODE): New.
9152 (TARGET_CALLS): Adjust.
9153 * system.h (TARGET_PROMOTE_FUNCTION_ARGS,
9154 TARGET_PROMOTE_FUNCTION_RETURN, PROMOTE_FUNCTION_MODE): Poison.
9155
9156 * config/s390/s390.h (PROMOTE_FUNCTION_MODE): Move...
9157 * config/s390/s390.c (s390_promote_function_mode): ... here,
9158 with pointer handling.
9159 (TARGET_PROMOTE_FUNCTION_MODE): Define.
9160 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
9161
9162 * config/sparc/sparc.h (PROMOTE_FUNCTION_MODE): Move...
9163 * config/sparc/sparc.c (sparc_promote_function_mode): ... here,
9164 with pointer handling.
9165 (TARGET_PROMOTE_FUNCTION_MODE): Define.
9166 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
9167
9168 * config/sh/sh-protos.h (sh_promote_function_mode): New.
9169 * config/sh/sh.c (sh_promote_function_mode): New.
9170 (TARGET_PROMOTE_FUNCTION_MODE): Define.
9171 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
9172
9173 * config/cris/cris.h (PROMOTE_FUNCTION_MODE): Move...
9174 * config/cris/cris.c (cris_promote_function_mode): ... here.
9175 (TARGET_PROMOTE_FUNCTION_MODE): Define.
9176 (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
9177
9178 * config/mmix/mmix.h (PROMOTE_FUNCTION_MODE): Move...
9179 * config/mmix/mmix.c (mmix_promote_function_mode): ... here.
9180 (TARGET_PROMOTE_FUNCTION_MODE): Define.
9181 (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
9182
9183 * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Move...
9184 * config/arm/arm.c (arm_promote_function_mode): ... here, without
9185 complex type handling.
9186 (TARGET_PROMOTE_FUNCTION_MODE): Define.
9187 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
9188
9189 * config/pa/pa.c (pa_promote_function_mode): New.
9190 (TARGET_PROMOTE_FUNCTION_MODE): Define.
9191 (TARGET_PROMOTE_FUNCTION_RETURN): Remove.
9192
9193 * config/alpha/alpha.c (TARGET_PROMOTE_FUNCTION_ARGS,
9194 TARGET_PROMOTE_FUNCTION_RETURN): Remove.
9195 (TARGET_PROMOTE_FUNCTION_MODE): Define equivalently.
9196 * config/xtensa/xtensa.c: Likewise.
9197 * config/stormy16/stormy16.c: Likewise.
9198 * config/iq2000/iq2000.c: Likewise.
9199 * config/rs6000/rs6000.c: Likewise.
9200 * config/picochip/picochip.c: Likewise.
9201 * config/arc/arc.c: Likewise.
9202 * config/mcore/mcore.c: Likewise.
9203 * config/score/score.c: Likewise.
9204 * config/mips/mips.c: Likewise.
9205 * config/bfin/bfin.c: Likewise.
9206 * config/ia64/ia64.c: Likewise (disabled though).
9207
9208 * config/frv/frv.h: Remove pointless remark.
9209
9210 * doc/tm.texi (PROMOTE_FUNCTION_MODE,
9211 TARGET_PROMOTE_FUNCTION_ARGS,
9212 TARGET_PROMOTE_FUNCTION_RETURN): Consolidate into...
9213 (TARGET_PROMOTE_FUNCTION_MODE): ... this.
9214
9215 2009-08-01 Sebastian Pop <sebastian.pop@amd.com>
9216
9217 * doc/invoke.texi (-fgraphite-force-parallel): Renamed
9218 -floop-parallelize-all.
9219 * toplev.c (process_options): Rename flag_graphite_force_parallel to
9220 flag_loop_parallelize_all.
9221 * tree-ssa-loop.c (gate_graphite_transforms): Same.
9222 * graphite.c (graphite_transform_loops): Same.
9223 * common.opt: Same.
9224 * graphite-poly.c (apply_poly_transforms): Same.
9225
9226 2009-07-31 Richard Earnshaw <rearnsha@arm.com>
9227
9228 PR tree-optimization/40914
9229 * ipa-prop.c (ipa_get_ptr_load_param): New argument use_delta,
9230 if set, then check the delta field of the PMF record.
9231 (ipa_get_stmt_member_ptr_load_param): Propagate new param use_delta.
9232 (ipa_analyze_call_uses): Handle machines where the vbit for a PMF
9233 call is stored in the delta.
9234
9235 2009-07-31 Adam Nemet <anemet@caviumnetworks.com>
9236
9237 * config/mips/mips.md (*clear_upper32_dext): New pattern.
9238
9239 2009-07-31 Uros Bizjak <ubizjak@gmail.com>
9240
9241 * config/i386/bsd.h (ASM_BYTE): New define.
9242 * config/i386/darwin.h (ASM_BYTE): Rename from ASM_BYTE_OP.
9243 * config/i386/att.h (ASM_BYTE): New define. Use ASM_BYTE instead of
9244 .byte. Use fputs or putc instead of fprintf where appropriate.
9245 * config/i386/i386-interix.h: Use ASM_BYTE instead of .byte. Use
9246 fputs or putc instead of fprintf where appropriate.
9247 * config/i386/i386elf.h: Ditto.
9248 * config/i386/sysv4.h: Ditto.
9249
9250 * config/i386/i386.c (TARGET_ASM_BYTE_OP): New define.
9251 * config/i386/i386.md (x86_sahf_1): Use ASM_BYTE instead of .byte.
9252 (*tls_global_dynamic_64): Ditto.
9253
9254 2009-07-31 Christian Bruel <christian.bruel@st.com>
9255
9256 * gcc/config.gcc (sh*-*-elf): test with_libgloss.
9257
9258 2009-07-31 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9259
9260 * config/arm/arm.c (arm_arm_address_cost): Fix typo.
9261 Remove dead code for MINUS.
9262
9263 2009-07-31 Anthony Green <green@moxielogic.com>
9264
9265 * config/moxie/moxie.c (moxie_expand_prologue): Use $r5 instead of
9266 $r12 in prologue.
9267 (moxie_expand_epilogue): Ditto for epilogue.
9268 (moxie_setup_incoming_varargs): ABI change. Use 5 registers for
9269 incoming arguments.
9270 (moxie_function_arg): Ditto.
9271 (moxie_pass_by_reference): Ditto.
9272 (moxie_arg_partial_bytes): Ditto.
9273 * config/moxie/moxie.h (CALL_USED_REGISTERS): Ditto.
9274 (FUNCTION_ARG_ADVANCE) Ditto.
9275 (REG_PARM_STACK_SPACE) Ditto.
9276 (FUNCTION_ARG_REGNO_P) Dito.
9277
9278 * config.gcc: Add moxie linux config support.
9279 * gcc/config/moxie/uclinux.h: New file.
9280
9281 2009-07-31 DJ Delorie <dj@redhat.com>
9282
9283 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
9284 (UNSPECV_SP_SWITCH_E): New.
9285 (sp_switch_1): Change to an unspec.
9286 (sp_switch_2): Change to an unspec. Don't use post-inc when we
9287 replace $r15.
9288 * config/sh/sh.c (sh_expand_prologue): Use the constant pool to
9289 reference the new stack's address
9290
9291 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
9292
9293 * Makefile.in (OBJS-common): Added dependence on graphite-blocking.o,
9294 graphite-clast-to-gimple.o, graphite-dependences.o,
9295 graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
9296 graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o.
9297 (graphite-blocking.o,
9298 graphite-clast-to-gimple.o, graphite-dependences.o,
9299 graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
9300 graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o): New.
9301 * cfgloop.c (alloc_loop): Set loop->can_be_parallel to false.
9302 * cfgloop.h (struct loop): Add can_be_parallel field.
9303 * common.opt (fgraphite-identity): Moved up.
9304 (fgraphite-force-parallel): New flag.
9305 * graphite.c: Rewrite.
9306 * graphite.h: Rewrite.
9307 * passes.c (init_optimization_passes): Schedule a pass of DCE and LIM
9308 after Graphite.
9309 * toplev.c (graphite_out_file): New file descriptor.
9310 (graphite_in_file): New.
9311 (process_options): flag_graphite_force_parallel cannot be used without
9312 Graphite.
9313 * tree-ssa-loop.c: Include toplev.h.
9314 (gate_graphite_transforms): Enable flag_graphite for
9315 flag_graphite_force_parallel.
9316
9317 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
9318
9319 * ChangeLog.graphite: New.
9320 * graphite-blocking.c: New.
9321 * graphite-clast-to-gimple.c: New.
9322 * graphite-clast-to-gimple.h: New.
9323 * graphite-dependences.c: New.
9324 * graphite-dependences.h: New.
9325 * graphite-interchange.c: New.
9326 * graphite-poly.c: New.
9327 * graphite-poly.h: New.
9328 * graphite-ppl.c: New.
9329 * graphite-ppl.h: New.
9330 * graphite-scop-detection.c: New.
9331 * graphite-scop-detection.h: New.
9332 * graphite-sese-to-poly.c: New.
9333 * graphite-sese-to-poly.h: New.
9334 * sese.c: New.
9335 * sese.h: New.
9336
9337 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
9338
9339 * tree-chrec.c (evolution_function_right_is_integer_cst): New.
9340 * tree-chrec.h (evolution_function_right_is_integer_cst): Declared.
9341
9342 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
9343
9344 * tree-chrec.c (operator_is_linear): Handle BIT_NOT_EXPR.
9345 (scev_is_linear_expression): Return false if the evolution is not
9346 affine multivariate.
9347
9348 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
9349
9350 * tree-data-ref.c (graphite_find_data_references_in_stmt): New.
9351 * tree-data-ref.h (graphite_find_data_references_in_stmt): Declared.
9352
9353 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
9354
9355 * tree-data-ref.c (debug_data_references): New.
9356 (debug_data_reference): New.
9357 * tree-data-ref.h (debug_data_references): Declared.
9358 (debug_data_reference): Declared.
9359
9360 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
9361
9362 * tree-data-ref.c (stmt_simple_memref_p: Removed.
9363 * tree-data-ref.h (scop_p): Removed.
9364 (struct data_reference): Remove field scop.
9365 (DR_SCOP): Removed.
9366 (stmt_simple_memref_p): Removed.
9367
9368 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
9369
9370 * cfgloop.h (create_empty_loop_on_edge): Pass an extra argument.
9371 * cfgloopmanip.c (create_empty_loop_on_edge): Leave the loop_latch
9372 basic block empty.
9373
9374 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
9375
9376 * doc/invoke.texi (-fgraphite-force-parallel): Documented.
9377
9378 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
9379
9380 * doc/invoke.texi (-fgraphite-identity): Documented.
9381
9382 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
9383
9384 * tree-scalar-evolution.c: Fix comment.
9385 (instantiate_scev_1): Return unknow from scev instantiation if the
9386 result is not above instantiate_below.
9387
9388 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
9389
9390 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop): Not
9391 static anymore. Instantiate the symbols that may have been introduced
9392 by chrec_apply.
9393 * tree-scalar-evolution.h (compute_overall_effect_of_inner_loop):
9394 Declared.
9395
9396 2009-07-30 DJ Delorie <dj@redhat.com>
9397
9398 * config/mep/mep.c (mep_asm_init_sections): Add section flags and
9399 .vliw directive to VLIW sections.
9400
9401 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9402
9403 * Makefile.in (AUTOCONF, ACLOCAL, ACLOCAL_AMFLAGS, aclocal_deps):
9404 New variables.
9405 ($(srcdir)/configure, $(srcdir)/aclocal.m4): New rules.
9406 (AUTOHEADER): New variable.
9407 ($(srcdir)/cstamp-h.in): Use it.
9408
9409 2009-07-30 Michael Meissner <meissner@linux.vnet.ibm.com>
9410 Pat Haugen <pthaugen@us.ibm.com>
9411 Revital Eres <ERES@il.ibm.com>
9412
9413 * config/rs6000/vector.md (VEC_F): Add VSX support.
9414 (VEC_A): Ditto.
9415 (VEC_N): Ditto.
9416 (mov<mode>): Ditto.
9417 (vector_load_<mode>): Ditto.
9418 (vector_store_<mode>): Ditto.
9419 (vector GPR move split): Ditto.
9420 (vec_reload_and_plus_<mptrsize>): Ditto.
9421 (vec_reload_and_reg_<mptrsize>): Ditto.
9422 (add<mode>3): Ditto.
9423 (sub<mode>3): Ditto.
9424 (mul<mode>3): Ditto.
9425 (neg<mode>2): Ditto.
9426 (abs<mode>2): Ditto.
9427 (smin<mode>3): Ditto.
9428 (smax<mode>3): Ditto.
9429 (vector_eq<mode>): Ditto.
9430 (vector_gt<mode>): Ditto.
9431 (vector_ge<mode>): Ditto.
9432 (vector_gtu<mode>): Ditto.
9433 (vector_select_<mode>_uns): Ditto.
9434 (vector_eq_<mode>_p): Ditto.
9435 (vector_gt_<mode>_p): Ditto.
9436 (vector_ge_<mode>_p): Ditto.
9437 (vector_gtu_<mode>_p): Ditto.
9438 (cr6_test_for_zero): Ditto.
9439 (cr6_test_for_zero_reverse): Ditto.
9440 (cr6_test_for_lt): Ditto.
9441 (cr6_test_for_lt_reverse): Ditto.
9442 (xor<mode>3): Ditto.
9443 (ior<mode>3): Ditto.
9444 (and<mode>3): Ditto.
9445 (one_cmpl<mode>2): Ditto.
9446 (nor<mode>2): Ditto.
9447 (andc<mode>2): Ditto.
9448 (float<VEC_int<mode>2): Ditto.
9449 (unsigned_float<VEC_int><mode>2): Ditto.
9450 (fix_trunc<mode><VEC_int>2): Ditto.
9451 (fixuns_trunc<mode><VEC_int>2): Ditto.
9452 (vec_init<mode>):
9453 (vec_set<mode>): Ditto.
9454 (vec_extract<mode>): Ditto.
9455 (vec_interleave_highv4sf): Ditto.
9456 (vec_interleave_lowv4sf): Ditto.
9457 (vec_realign_load_<mode>): Ditto.
9458 (vec_shl_<mode>): Ditto.
9459 (vec_shr_<mode>): Ditto.
9460 (div<mode>3): New patterns for VSX.
9461 (vec_interleave_highv2df): Ditto.
9462 (vec_interleave_lowv2df): Ditto.
9463 (vec_pack_trunc_v2df): Ditto.
9464 (vec_pack_sfix_trunc_v2df): Ditto.
9465 (vec_pack_ufix_trunc_v2df): Ditto.
9466 (vec_unpacks_hi_v4sf): Ditto.
9467 (vec_unpacks_lo_v4sf): Ditto.
9468 (vec_unpacks_float_hi_v4si): Ditto.
9469 (vec_unpacks_float_lo_v4si): Ditto.
9470 (vec_unpacku_float_hi_v4si): Ditto.
9471 (vec_unpacku_float_lo_v4si): Ditto.
9472 (movmisalign<mode>): Ditto.
9473 (vector_ceil<mode>2): New patterns for vectorizing math library.
9474 (vector_floor<mode>2): Ditto.
9475 (vector_btrunc<mode>2): Ditto.
9476 (vector_copysign<mode>3): Ditto.
9477
9478 * config/rs6000/predicates.md (easy_vector_constant_msb): New
9479 predicate for setting the high bit in each word, used for copysign.
9480
9481 * config/rs6000/ppc-asm.h (f19): Whitespace.
9482 (f32-f63): Define if VSX.
9483 (v0-v31): Define if Altivec.
9484 (vs0-vs63): Define if VSX.
9485
9486 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power7.md and vsx.md.
9487
9488 * config/rs6000/power7.md: New file, provide tuning parameters for
9489 -mcpu=power7.
9490
9491 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): Add VSX support.
9492 (rs6000_cpu_cpp_builtins): Ditto.
9493 (altivec_overloaded_builtins): Ditto.
9494 (altivec_resolve_overloaded_builtin): Ditto.
9495
9496 * config/rs6000/rs6000.opt (-mno-vectorize-builtins): Add new
9497 debug switch to disable vectorizing simple math builtin
9498 functions.
9499
9500 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
9501 Vectorize simple math builtin functions.
9502 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
9503 hook to vectorize math builtins.
9504 (rs6000_override_options): Enable -mvsx on -mcpu=power7.
9505 (rs6000_builtin_conversion): Add VSX/power7 support.
9506 (rs6000_builtin_vec_perm): Ditto.
9507 (vsplits_constant): Add support for loading up a vector constant
9508 with just the high bit set in each part.
9509 (rs6000_expand_vector_init): Add VSX/power7 support.
9510 (rs6000_expand_vector_set): Ditto.
9511 (rs6000_expand_vector_extract): Ditto.
9512 (rs6000_emit_move): Ditto.
9513 (bdesc_3arg): Ditto.
9514 (bdesc_2arg): Ditto.
9515 (bdesc_1arg): Ditto.
9516 (rs6000_expand_ternop_builtin): Ditto.
9517 (altivec_expand_builtin): Ditto.
9518 (rs6000_expand_unop_builtin): Ditto.
9519 (rs6000_init_builtins): Ditto.
9520 (altivec_init_builtins): Ditto.
9521 (builtin_function_type): Ditto.
9522 (rs6000_common_init_builtins): Ditto.
9523 (rs6000_handle_altivec_attribute); Ditto.
9524 (rs6000_mangle_type): Ditto.
9525 (rs6000_vector_mode_supported_p): Ditto.
9526 (rs6000_mode_dependent_address): Altivec addresses with AND -16
9527 are mode dependent.
9528
9529 * config/rs6000/vsx.md: New file for VSX support.
9530
9531 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): New macro for
9532 identifing values with just the most significant bit set.
9533 (enum rs6000_builtins): Add builtins for VSX. Add simple math
9534 vectorized builtins.
9535
9536 * config/rs6000/altivec.md (UNSPEC_VRFIP): Delete.
9537 (UNSPEC_VRFIM): Delete.
9538 (splitter for loading up vector with most significant bit): New
9539 splitter for vectorizing copysign.
9540 (altivec_vrfiz): Rename from altivec_fturncv4sf2. Add support for
9541 vectorizing simple math functions.
9542 (altivec_vrfip): Add support for vectorizing simple math functions.
9543 (altivec_vrfim): Ditto.
9544 (altivec_copysign_v4sf3): New insn for Altivec copysign support.
9545
9546 * config/rs6000/rs6000.md (UNSPEC_BPERM): New constant.
9547 (power7.md, vsx.md): Include for power7 support.
9548 (copysigndf3): Use VSX instructions if -mvsx.
9549 (negdf2_fpr): Ditto.
9550 (absdf2_fpr): Ditto.
9551 (nabsdf2_fpr): Ditto.
9552 (adddf3_fpr): Ditto.
9553 (subdf3_fpr): Ditto.
9554 (muldf3_fpr): Ditto.
9555 (divdf3_fpr): Ditto.
9556 (fix_truncdfdi2_fpr): Ditto.
9557 (cmpdf_internal1): Ditto.
9558 (fred, fred_fpr): Convert into expander/insn to add VSX support.
9559 (btruncdf2, btruncdf2_fpr): Ditto.
9560 (ceildf2, ceildf2_fpr): Ditto.
9561 (floordf2, floordf2_fpr): Ditto.
9562 (floatdidf2, floatdidf2_fpr): Ditto.
9563 (fmadddf4_fpr): Name insn. Use VSX instructions if -mvsx.
9564 (fmsubdf4_fpr): Ditto.
9565 (fnmadddf4_fpr_1): Ditto.
9566 (fnmadddf4_fpr_2): Ditto.
9567 (fnmsubdf4_fpr_1): Ditto.
9568 (fnmsubdf4_fpr_2): Ditto.
9569 (fixuns_truncdfdi2): Add expander for VSX support.
9570 (fix_truncdfdi2): Ditto.
9571 (fix_truncdfsi2): Ditto.
9572 (ftruncdf2): Ditto.
9573 (btruncsf2): Whitespace.
9574 (movdf_hardfloat32): Add support for VSX registers.
9575 (movdf_softfloat32): Ditto.
9576 (movdf_hardfloat64): Ditto.
9577 (movdf_hardfloat64_mfpgpr): Ditto.
9578 (movdf_softfloat64): Ditto.
9579 (movti splitters): Add check for vector registers supporting
9580 TImode in the future.
9581 (bpermd): Add power7 bpermd instruction.
9582
9583 * config/rs6000/altivec.h (vec_div): Define if VSX.
9584 (vec_mul): Ditto.
9585 (vec_msub): Ditto.
9586 (vec_nmadd): Ditto.
9587 (vec_nearbyint): Ditto.
9588 (vec_rint): Ditto.
9589 (vec_sqrt): Ditto.
9590 (all predicates): Use the generic builtin function, and not the V4SF
9591 specific function so that the predicates will work with VSX's V2DF.
9592 (vec_all_*): Ditto.
9593 (vec_any_*): Ditto.
9594
9595 * doc/extend.texi (PowerPC Altivec/VSX Built-in Functions):
9596 Document new VSX functions and types.
9597
9598 * doc/invoke.texi (PowerPc options): Document -mpopcntd, -mvsx
9599 switches.
9600
9601 * doc/md.texi (PowerPC constraints): Document "wd", "wf", "ws",
9602 "wa", and "j" constraints. Modify "v" to talk about Altivec
9603 instead of just vector.
9604
9605 2009-07-30 Andrew MacLeod <amacleod@redhat.com>
9606
9607 PR debug/26475
9608 * tree-into-ssa.c (insert_phi_nodes_for, rewrite_add_phi_arguments): Set
9609 location for phi arguments.
9610 (rewrite_update_phi_arguments): Find locations for reaching defs.
9611 * tree-ssa-threadupdate.c (create_edge_and_update_destination_phis):
9612 Add location to add_phi_arg calls.
9613 * tree-loop-districbution.c (update_phis_for_loop_copy): Add locations.
9614 * tree-ssa-loop-manip.c (create_iv, add_exit_phis_edge,
9615 split_loop_exit_edge, tree_transform_and_unroll_loop): Add locations.
9616 * tree-tailcall.c (add_successor_phi_arg, eliminate_tail_call,
9617 create_tailcall_accumulator, tree_optimize_tail_calls_1): Add locations.
9618 * tree.h (struct phi_arg_d): Add location_t to PHI arguments.
9619 * tree-phinodes.c (make_phi_node): Initialize location.
9620 (resize_phi_node): Initialize location to UNKNOWN_LOCATION.
9621 (add_phi_arg): Add location parameter.
9622 (remove_phi_arg_num): Move location when moving phi argument.
9623 * omp-low.c (expand_parallel_call, expand_omp_for_static_chunk): Set
9624 location.
9625 * tree-vect-loop-manip.c (slpeel_update_phis_for_duplicate_loop,
9626 slpeel_update_phi_nodes_for_guard1,
9627 slpeel_update_phi_nodes_for_guard2,
9628 slpeel_tree_duplicate_loop_to_edge_cfg, set_prologue_iterations,
9629 vect_loop_versioning): Set locations.
9630 * tree-parloops.c (create_phi_for_local_result,
9631 transform_to_exit_first_loop, create_parallel_loop): Add locations.
9632 * gimple-pretty-print.c (dump_gimple_phi): Dump lineno's if present.
9633 * tree-vect-loop.c (get_initial_def_for_induction,
9634 vect_create_epilog_for_reduction, vect_finalize_reduction): Add
9635 locations.
9636 * tree-flow-inline.h (gimple_phi_arg_location): New. Return locus.
9637 (gimple_phi_arg_location_from_edge): New. Return locus from an edge.
9638 (gimple_phi_arg_set_location): New. Set locus.
9639 (gimple_phi_arg_has_location): New. Check for locus.
9640 (redirect_edge_var_map_location): New. Return locus from var_map.
9641 * tree-vect-data-refs.c (vect_setup_realignment): Set location.
9642 * tree-ssa-phiopt.c (conditional_replacement): Set locus when
9643 combining PHI arguments.
9644 (cond_store_replacement): Set location.
9645 * cfgexpand.c (gimple_assign_rhs_to_tree): Transfer locus if possible.
9646 * grpahite.c (add_loop_exit_phis, add_guard_exit_phis,
9647 scop_add_exit_phis_edge): Add locations.
9648 * tree-cfgcleanup.c (remove_forwarder_block,
9649 remove_forwarder_block_with_phi): Add locations.
9650 * tree-ssa-pre.c (insert_into_preds_of_block): Add locations.
9651 * tree-predcom.c (initialize_root_vars, initialize_root_vars_lm): Add
9652 locations.
9653 * tree-ssa-dce.c (forward_edge_to_pdom): Add locations.
9654 * tree-ssa.c (redirect_edge_var_map_add, ssa_redirect_edge,
9655 flush_pending_stmts): Add source location.
9656 * lambda-code.c (perfect_nestify): Maintain location stack with argument
9657 stack to preserve locations.
9658 * tree-vect-stmts.c (vectorizable_load): Add location.
9659 * tree-inline.c (copy_phis_for_bb): Copy locus.
9660 (setup_one_parameter): Add call locus to inlined parameter stmts.
9661 (initialize_inlined_parameters): Pass in call location as parameter
9662 assignment locus.
9663 (tree_function_versioning): Pass location to setup_one_parameter.
9664 * tree-ssa-phiprop.c (phiprop_insert_phi): Set locations.
9665 * tree-outof-ssa.c (struct _elim_graph): Add source_location vecs for
9666 copy and edge lists.
9667 (insert_partition_copy_on_edge, insert_value_copy_on_edge,
9668 insert_rtx_to_part_on_edge, insert_part_to_rtx_on_edge): Provide a
9669 locus parameter and override the stmt default if provided.
9670 (new_elim_graph, clear_elim_graph, delete_elim_graph,
9671 elim_graph_add_edge, elim_graph_remove_succ_edge,
9672 FOR_EACH_ELIM_GRAPH_SUCC, FOR_EACH_ELIM_GRAPH_PRED, eliminate_build,
9673 elim_forward, elim_unvisited_predecessor, elim_backward, elim_create,
9674 eliminate_phi): Add locus info in elimination graph for each edge and
9675 value copy.
9676 (insert_backedge_copies): Copy locus if present.
9677 * tree-flow.h (struct _edge_var_map): Add locus field.
9678 * tree-switch_conversions.c (fix_phi_nodes): Add locations.
9679 * tree-cfg.c (reinstall_phi_args, gimple_make_forwarder_block,
9680 add_phi_args_after_copy_edge, gimple_lv_adjust_loop_header_phi): Add
9681 locations.
9682 * ipa-struct-reorg.c (make_edge_and_fix_phis_of_dest): Add locations.
9683
9684 2009-07-30 Martin Jambor <mjambor@suse.cz>
9685
9686 PR tree-optimization/40570
9687 * ipa-inline.c (cgraph_decide_inlining): Watch out for dead single
9688 use inlining loops.
9689
9690 2009-07-30 Razya Ladelsky <razya@il.ibm.com>
9691
9692 * ssa-loop-manip.c: Include langhooks.h.
9693 (rewrite_phi_with_iv): New.
9694 (rewrite_all_phi_nodes_with_iv): New.
9695 (canonicalize_loop_ivs): Move here from tree-parloops.c.
9696 Remove reduction_list argument. Use rewrite_all_phi_nodes_with_iv.
9697 * tree-parloops.c (loop_parallel_p): Move out all conditions
9698 except dependency check.
9699 (canonicalize_loop_ivs): Move to tree-ssa-loop-manip.c.
9700 (gen_parallel_loop): Call canonicalize_loop_ivs without
9701 reduction_list argument.
9702 (build_new_reduction): New.
9703 (gather_scalar_reductions): New.
9704 (try_get_loop_niter): New.
9705 (try_create_reduction_list): New.
9706 (parallleize_loops): Change the parallel conditions check.
9707 * tree-flow.h (canonicalize_loop_ivs): Remove one argument.
9708 * Makefile.in (tree-ssa-loop-manip.o): Add langhooks.h dependency.
9709
9710 2009-07-30 Dave Korn <dave.korn.cygwin@gmail.com>
9711
9712 * opt-functions.awk (opt_args): Allow argument to be enclosed in
9713 curly braces.
9714 * doc/options.texi (Option properties): Mention new quoting syntax.
9715
9716 2009-07-29 Douglas B Rupp <rupp@gnat.com>
9717
9718 * config/alpha/alpha.c (alpha_start_function):
9719 Handle VMS_DEBUG_MAIN_POINTER
9720 * config/alpha/vms.h (VMS_DEBUG_MAIN_POINTER): Define new macro.
9721 * doc/invoke.texi: Document -mdebug-main switch.
9722
9723 2009-07-29 Richard Henderson <rth@redhat.com>
9724
9725 * cgraph.c (cgraph_set_call_stmt_including_clones): Tidy.
9726 (cgraph_create_edge_including_clones): Likewise.
9727 * tree-inline.c (copy_bb): Operate on the correct edges
9728 when updating the callgraph.
9729
9730 2009-07-29 Douglas B Rupp <rupp@gnat.com>
9731
9732 * config/alpha/vms-cc.c: Deleted.
9733 * config/alpha/vms-ld.c: Deleted.
9734 * config/alpha/t-vms64: Moved to config/vms
9735 * config/alpha/vms-crt0-64.c: Moved to config/vms
9736 * config/alpha/vms-crt0.c: Moved to config/vms
9737 * config/alpha/vms-psxcrt0-64.c: Moved to config/vms
9738 * config/alpha/vms-psxcrt0.c: Moved to config/vms
9739 * config/alpha/xm-vms.h: Moved to config/vms
9740 * config/alpha/x-vms: Moved to config/vms
9741 * config/alpha/t-vms (vcrt0.o, pcrt0.o): Move rules to new file
9742 config/vms/t-vms.
9743 * config/vms/t-vms: Moved here from config/alpha. Alpha specific
9744 parts removed. (STMP_FIXPROTO, STMP_FIXINC, LIMITS_H_TEST): Set.
9745 (version): Set.
9746 * config/vms/t-vms64: Moved here from config/alpha
9747 * config/vms/vms-crt0-64.c: Moved here from config/alpha.
9748 (argc,argv,envp): Enforce 32bit malloc'ing.
9749 * config/vms/vms-psxcrt0-64.c: Likewise.
9750 * config/vms/vms-crt0.c: Moved here from config/alpha.
9751 * config/vms/vms-psxcrt0.c: Likewise.
9752 * config/vms/vms-crtl-64.h: New file.
9753 * config/vms/vms-crtl.h: New file.
9754 * config/vms/vms.opt: New file.
9755 * config/vms/xm-vms64.h: New file.
9756 * config/vms/xm-vms.h: Moved here from config/alpha.
9757 (STANARD_EXEC_PREFIX, STANDARD_STARTFILE_PREFIX, STANDARD_INCLUDE_DIR):
9758 Set.
9759 * config/vms/x-vms: Moved here from config/alpha.
9760 (version, VMS_EXTRA_PARTS): Moved to t-vms.
9761 (vms-ld.o, vms-cc.o): Removed.
9762 (LN, LN_S, USE_COLLECT2, POD2MAN): Set.
9763
9764 2009-07-29 Douglas B Rupp <rupp@gnat.com>
9765
9766 * dwarf2out.c (add_name_and_src_coords_attributes): Push on the
9767 correct stack (obvious VMS fix).
9768
9769 2009-07-29 Douglas B Rupp <rupp@gnat.com>
9770
9771 * dwarf2out.c (output_file_names): Output VMS style file name, size,
9772 date, version info if VMS_DEBUGGING_INFO defined.
9773 * vmsdgbout.c (vms_file_stats_name): New functon. VMS style file name,
9774 size, date calculating code moved here.
9775
9776 2009-07-29 Paul Brook <paul@codesourcery.com>
9777
9778 * config/arm/lib1funcs.asm (clear_cache): Use ARM_FUNC_START and
9779 do_push/do_pop.
9780
9781 2009-07-29 Uros Bizjak <ubizjak@gmail.com>
9782
9783 PR target/40577
9784 * config/alpha/alpha.c (alpha_expand_unaligned_store): Convert src
9785 to DImode when generating insq_le insn.
9786
9787 2009-07-28 Douglas B Rupp <rupp@gnat.com>
9788
9789 * dwarf2out.c (DWARF2_INDIRECT_STRING_SUPPORT_MISSING_ON_TARGET):
9790 New macro set for VMS_DEBUGGGING_INFO.
9791 (AT_string_form): Use it.
9792
9793 2009-07-28 DJ Delorie <dj@redhat.com>
9794
9795 * config/mep/mep.c (vtext_section): New.
9796 (vftext_section): New.
9797 (ftext_section): New.
9798 (mep_select_section): Add support for functions.
9799 (mep_unique_section): Likewise.
9800 (mep_asm_init_sections): Likewise.
9801 (mep_encode_section_info): Remove it from here.
9802
9803 * config/mep/mep.h (USE_SELECT_SECTION_FOR_FUNCTIONS): Define.
9804
9805 2009-07-28 Paolo Bonzini <bonzinI@gnu.org>
9806
9807 * tree.h (TREE_DEPRECATED): Document it is used for types too.
9808 (TYPE_VECTOR_OPAQUE): Use default_def_flag
9809
9810 2009-07-28 Douglas B Rupp <rupp@gnat.com>
9811
9812 * dwarf2out.c (output_file_names): Test new macro
9813 DWARF2_DIR_SHOULD_END_WITH_SEPARATOR.
9814 (add_comp_dir_attribute): Likewise.
9815
9816 2009-07-28 Kai Tietz <kai.tietz@onevision.com>
9817
9818 * config/i386/mingw-w64.h (LINK_SPEC): Add
9819 separating space between commands.
9820
9821 2009-07-28 Jan Hubicka <jh@suse.cz>
9822
9823 PR tree-optimization/40759
9824 * tree-ssa-dce.c (mark_virtual_phi_result_for_renaming): Mark all uses
9825 for renaming.
9826
9827 2009-07-27 DJ Delorie <dj@redhat.com>
9828
9829 * config/mep/mep.c (mep_expand_builtin_saveregs): Make sure 64-bit
9830 types are dword-aligned.
9831 (mep_expand_va_start): Likewise.
9832
9833 2009-07-27 Olivier Hainque <hainque@adacore.com>
9834 Douglas B Rupp <rupp@gnat.com>
9835
9836 * convert.c (convert_to_pointer): Don't assume the target
9837 pointer type is POINTER_SIZE long. Fetch its precision instead.
9838
9839 2009-07-27 Douglas B Rupp <rupp@gnat.com>
9840
9841 * system.h (fopen): Undefine if macro.
9842
9843 2009-07-27 Jakub Jelinek <jakub@redhat.com>
9844
9845 * dwarf2out.c (output_cfi_p): Removed.
9846 (output_cfis): New function.
9847 (output_fde): New function, split from output_call_frame_info.
9848 (output_call_frame_info): Use it.
9849 (dwarf2out_switch_text_section): Use output_cfis.
9850
9851 2009-07-24 Kai Tietz <kai.tietz@onevision.com>
9852
9853 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Error build when
9854 TARGET_BI_ARCH is specified without enabling SJLJ.
9855 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Define MD_UNWIND_SUPPORT,
9856 if TARGET_64BIT and TARGET_BI_ARCH aren't defined.
9857
9858 2009-07-26 Mikael Pettersson <mikpe@it.uu.se>
9859
9860 * arm.md (negdi2): Use DImode if forcing a value into a register.
9861
9862 2009-07-26 Ira Rosen <irar@il.ibm.com>
9863
9864 PR tree-optimization/40801
9865 * tree-vect-stmts.c (vectorizable_call): Get previous copy
9866 of vector operand from the previous copy of vector statement.
9867 Pass the correct definition type value to
9868 vect_get_vec_def_for_stmt_copy().
9869
9870 2009-07-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9871
9872 * collect2.c (scan_libraries): Use CONST_CAST2 to perform char ** to
9873 const char ** conversion.
9874
9875 2009-07-25 David Daney <ddaney@caviumnetworks.com>
9876
9877 * system.h (gcc_assert): Invoke __builtin_unreachable() instead of
9878 fancy_abort() if !ENABLE_ASSERT_CHECKING.
9879 (gcc_unreachable): Invoke __builtin_unreachable() if
9880 !ENABLE_ASSERT_CHECKING.
9881
9882 2009-07-25 David Daney <ddaney@caviumnetworks.com>
9883
9884 PR rtl-optimization/40445
9885 * emit-rtl.c (next_nonnote_insn_bb): New function.
9886 * rtl.h (next_nonnote_insn_bb): Declare new function.
9887 * cfgcleanup.c (try_optimize_cfg): Don't remove an empty block
9888 with no successors that is the successor of the ENTRY_BLOCK.
9889 Continue from the top after removing an empty fallthrough block.
9890 * cfgrtl.c (get_last_bb_insn): Call next_nonnote_insn_bb instead
9891 of next_nonnote_insn.
9892
9893 2009-07-25 David Daney <ddaney@caviumnetworks.com>
9894
9895 * cfgcleanup.c (old_insns_match_p): Handle the case of empty blocks.
9896
9897 2009-07-25 Martin Jambor <mjambor@suse.cz>
9898
9899 * c-common.c (c_common_attribute_table): New element for noclone.
9900 (handle_noclone_attribute): New function. Forward-declare.
9901 * tree-inline.c (tree_versionable_function_p): Check for noclone
9902 attribute.
9903 * doc/extend.texi (Labels as Values): Document need for noclone.
9904 (Function Attributes): Document noclone attribute.
9905
9906 2009-07-25 Jakub Jelinek <jakub@redhat.com>
9907
9908 PR rtl-optimization/34999
9909 * dwarf2out.c (struct dw_fde_struct): Add dw_fde_switch_cfi
9910 and dw_fde_switched_cold_to_hot fields.
9911 (output_cfi_p): New function.
9912 (output_call_frame_info): If fde->dw_fde_switched_sections,
9913 output 2 FDEs instead of one with corrupted header.
9914 (dwarf2out_do_cfi_startproc): New function.
9915 (dwarf2out_begin_prologue): Use it. Initialize fde->dw_fde_switch_cfi
9916 and fde->dw_fde_switched_cold_to_hot.
9917 (dwarf2out_switch_text_section): Compute
9918 fde->dw_fde_switched_cold_to_hot. Switch to new text section here.
9919 If dwarf2out_do_cfi_asm, emit .cfi_endproc before it and call
9920 dwarf2out_do_cfi_startproc plus emit again currently active CFI insns.
9921 Otherwise, compute fde->dw_fde_switch_cfi.
9922
9923 2009-07-24 Cary Coutant <ccoutant@google.com>
9924
9925 * tree-cfg.c (assign_discriminator): Add explicit parentheses.
9926
9927 2009-07-24 Cary Coutant <ccoutant@google.com>
9928
9929 * cfghooks.c (split_block): Copy discriminator to new block.
9930 * tree-cfg.c (assign_discriminator): Check location of last
9931 instruction in block as well as first.
9932
9933 2009-07-24 Uros Bizjak <ubizjak@gmail.com>
9934
9935 * config/i386/linux.c: Use fputs or putc instead of fprintf
9936 where appropriate.
9937 * config/i386/gas.h: Ditto.
9938 * config/i386/x86-64.h: Ditto.
9939 * config/i386/att.h: Ditto.
9940
9941 2009-07-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9942
9943 * expmed.c (emit_store_flag): Use a recursive call to optimize the
9944 xor case.
9945
9946 2009-07-24 Martin Jambor <mjambor@suse.cz>
9947
9948 * ipa-prop.h (struct ipa_node_params): New flag node_enqued.
9949 (ipa_push_func_to_list_1): Declare.
9950 (ipa_push_func_to_list): New function.
9951
9952 * ipa-prop.c (ipa_push_func_to_list_1): New function.
9953 (ipa_init_func_list): Call ipa_push_func_to_list_1.
9954 (ipa_push_func_to_list): Removed.
9955 (ipa_pop_func_from_list): Clear node_enqueued flag.
9956
9957 2009-07-24 Andreas Krebbel <krebbel1@de.ibm.com>
9958
9959 * config/s390/s390.c (override_options): Default
9960 max-unrolled-insns to 100 for z10 tuning.
9961
9962 2009-07-24 Tobias Grosser <grosser@fim.uni-passau.de>
9963
9964 * Makefile.in (TREE_DATA_REF_H, tree-vrp.o, tree-cfg.o, tree-if-conv.o
9965 tree-ssa-loop.o, tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o,
9966 tree-ssa-loop-prefetch.o, tree-predcom.o, tree-affine.o,
9967 tree-scalar-evolution.o, tree-data-ref.o, tree-vect-loop.o,
9968 tree-vect-data-refs.o, tree-loop-linear.o, tree-loop-distribution.o
9969 tree-parloops.o, tree-pretty-printer.o, fold-const.o, tree-ssa-dce.o,
9970 lambda-code.o, params.o): Cleanup use of SCEV_H and TREE_DATA_REF_H.
9971
9972 2009-07-24 Kai Tietz <kai.tietz@onevision.com>
9973
9974 * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR): Remove and
9975 use default set in mingw32.h header.
9976 * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Use for 32-bit and
9977 64-bit /mingw/include path.
9978 (STANDARD_STARTFILE_PREFIX_1): Use for 32-bit and 64-bit /mingw/lib
9979 path.
9980
9981 2009-07-23 Neil Vachharajani <nvachhar@google.com>
9982
9983 PR rtl-optimization/40209
9984 * loop-iv.c (iv_analysis_loop_init): Call df_note_add_problem.
9985
9986 2009-07-23 Uros Bizjak <ubizjak@gmail.com>
9987
9988 * config/i386/i386.c: Use ASM_LONG instead of .long. Concatenate
9989 ASM_LONG, LPREFIX, MCOUNT_NAME and PROFILE_COUNT_REGISTER strings
9990 with the rest of string where appropriate. Use fputs or putc
9991 instead of fprintf where appropriate.
9992
9993 2009-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
9994 Pat Haugen <pthaugen@us.ibm.com>
9995 Revital Eres <ERES@il.ibm.com>
9996
9997 * config/rs6000/vector.md: New file. Move most of the vector
9998 expander support here from altivec.md to allow for the VSX vector
9999 unit in the future. Add support for secondary_reload patterns.
10000 Rewrite the patterns for vector comparison, and vector comparison
10001 predicate instructions so that the RTL expresses the desired
10002 behavior, instead of using unspec.
10003
10004 * config/rs6000/constraints.md ("f" constraint): Use
10005 rs6000_constraints to hold the precalculated register class.
10006 ("d" constraint): Ditto.
10007 ("wd" constraint): New constraint for VSX.
10008 ("wf" constraint): Ditto.
10009 ("ws" constraint): Ditto.
10010 ("wa" constraint): Ditto.
10011 ("wZ" constraint): Ditto.
10012 ("j" constraint): Ditto.
10013
10014 * config/rs6000/predicates.md (vsx_register_operand): New
10015 predicate for VSX.
10016 (vfloat_operand): New predicate for vector.md.
10017 (vint_operand): Ditto.
10018 (vlogical_operand): Ditto.
10019 (easy_fp_constant): If VSX, 0.0 is an easy constant.
10020 (easy_vector_constant): Add VSX support.
10021 (altivec_indexed_or_indirect_operand): New predicate for
10022 recognizing Altivec style memory references with AND -16.
10023
10024 * config/rs6000/rs6000.c (rs6000_vector_reload): New static global
10025 for vector secondary reload support.
10026 (rs6000_vector_reg_class): Delete, replacing it with
10027 rs6000_constraints.
10028 (rs6000_vsx_reg_class): Ditto.
10029 (rs6000_constraints): New array to hold the register classes of
10030 each of the register constraints that can vary at runtime.
10031 (builtin_mode_to_type): New static array for builtin function type
10032 creation.
10033 (builtin_hash_table): New static hash table for builtin function
10034 type creation.
10035 (TARGET_SECONDARY_RELOAD): Define target hook.
10036 (TARGET_IRA_COVER_CLASSES): Ditto.
10037 (rs6000_hard_regno_nregs_internal): If -mvsx, floating point
10038 registers are 128 bits if VSX memory reference instructions are used.
10039 (rs6000_hard_regno_mode_ok): For VSX, only check if the VSX memory
10040 unit is being used.
10041 (rs6000_debug_vector_unit): Move into rs6000_debug_reg_global.
10042 (rs6000_debug_reg_global): Move -mdebug=reg statements here.
10043 Print several of the scheduling related parameters.
10044 (rs6000_init_hard_regno_mode_ok): Switch to putting constraints in
10045 rs6000_constraints instead of rs6000_vector_reg_class. Move
10046 -mdebug=reg code to rs6000_debug_reg_global. Add support for
10047 -mvsx-align-128 debug switch. Drop testing float_p if VSX or
10048 Altivec. Add VSX support. Setup for secondary reload support on
10049 Altivec/VSX registers.
10050 (rs6000_override_options): Make power7 set the scheduling groups
10051 like the power5. Add support for new debug switches to override
10052 the scheduling defaults. Temporarily disable -mcpu=power7 from
10053 setting -mvsx. Add support for debug switches -malways-hint,
10054 -msched-groups, and -malign-branch-targets.
10055 (rs6000_buitlin_conversion): Add support for returning unsigned
10056 vector conversion functions to fix regressions due to stricter
10057 type checking.
10058 (rs6000_builtin_mul_widen_even): Ditto.
10059 (rs6000_builtin_mul_widen_odd): Ditto.
10060 (rs6000_builtin_vec_perm): Ditto.
10061 (rs6000_vec_const_move): On VSX, use xxlxor to clear register.
10062 (rs6000_expand_vector_init): Initial VSX support for using xxlxor
10063 to zero a register.
10064 (rs6000_emit_move): Fixup invalid const symbol_ref+reg that is
10065 generated upstream.
10066 (bdesc_3arg): Add builtins for unsigned types. Add builtins for
10067 VSX types for bit operations. Changes to accomidate vector.md.
10068 (bdesc_2arg): Ditto.
10069 (bdesc_1arg): Ditto.
10070 (struct builtin_description_predicates): Rewrite predicate
10071 handling so that RTL describes the operation, instead of passing
10072 the instruction to be used as a string argument.
10073 (bdesc_altivec_preds): Ditto.
10074 (altivec_expand_predicate_builtin): Ditto.
10075 (altivec_expand_builtin): Ditto.
10076 (rs6000_expand_ternop_builtin): Use a switch instead of an if
10077 statement for vsldoi support.
10078 (altivec_expand_ld_builtin): Change to use new names from vector.md.
10079 (altivec_expand_st_builtin): Ditto.
10080 (paired_expand_builtin): Whitespace changes.
10081 (rs6000_init_builtins): Add V2DF/V2DI types. Initialize the
10082 builtin_mode_to_type table for secondary reload. Call
10083 builtin_function_type to build random builtin functions.
10084 (altivec_init_builtins): Change to use builtin_function_type to
10085 create builtin function types dynamically as we need them.
10086 (builtin_hash_function): New support for hashing the tree types
10087 for builtin function as we need it, rather than trying to build
10088 all of the trees that we need. Add initial preliminary VSX support.
10089 (builtin_function_type): Ditto.
10090 (builtin_function_eq): Ditto.
10091 (builtin_hash_struct): Ditto.
10092 (rs6000_init_builtins): Ditto.
10093 (rs6000_common_init_builtins): Ditto.
10094 (altivec_init_builtins): Ditto.
10095 (rs6000_common_init_builtins): Ditto.
10096 (enum reload_reg_type): New enum for simplifing reg classes.
10097 (rs6000_reload_register_type): Simplify register classes into GPR,
10098 Vector, and other registers. Altivec and VSX addresses in reload.
10099 (rs6000_secondary_reload_inner): Ditto.
10100 (rs6000_ira_cover_classes): New target hook, that returns the
10101 appropriate cover classes, based on -mvsx being used or not.
10102 (rs6000_secondary_reload_class): Add VSX support.
10103 (get_vec_cmp_insn): Delete, rewrite vector conditionals.
10104 (get_vsel_insn): Ditto.
10105 (rs6000_emit_vector_compare): Rewrite vector conditional support
10106 so that where we can, we use RTL operators, instead of blindly use
10107 UNSPEC.
10108 (rs6000_emit_vector_select): Ditto.
10109 (rs6000_emit_vector_cond_expr): Ditto.
10110 (rs6000_emit_minmax): Directly generate min/max under altivec, vsx.
10111 (create_TOC_reference): Add -mdebug=addr support.
10112 (emit_frame_save): VSX loads/stores need register indexed addressing.
10113
10114 * config/rs6000/rs6000.md: Include vector.md.
10115
10116 * config/rs6000/t-rs6000 (MD_INCLUDES): Add vector.md.
10117
10118 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
10119 support for V2DI, V2DF in logical, permute, select operations.
10120
10121 * config/rs6000/rs6000.opt (-mvsx-scalar-double): Add new debug
10122 switch for vsx/power7.
10123 (-mvsx-scalar-memory): Ditto.
10124 (-mvsx-align-128): Ditto.
10125 (-mallow-movmisalign): Ditto.
10126 (-mallow-df-permute): Ditto.
10127 (-msched-groups): Ditto.
10128 (-malways-hint): Ditto.
10129 (-malign-branch-targets): Ditto.
10130
10131 * config/rs6000/rs6000.h (IRA_COVER_CLASSES): Delete, use target
10132 hook instead.
10133 (IRA_COVER_CLASSES_PRE_VSX): Cover classes if not -mvsx.
10134 (IRA_COVER_CLASSES_VSX): Cover classes if -mvsx.
10135 (rs6000_vector_reg_class): Delete.
10136 (rs6000_vsx_reg_class): Ditto.
10137 (enum rs6000_reg_class_enum): New enum for the constraints that
10138 vary based on target switches.
10139 (rs6000_constraints): New array to hold the register class for all
10140 of the register constraints that vary based on the switches used.
10141 (ALTIVEC_BUILTIN_*_UNS): Add unsigned builtin functions.
10142 (enum rs6000_builtins): Add unsigned varients for the builtin
10143 declarations returned by target hooks for expanding multiplies,
10144 select, and permute operations. Add VSX builtins.
10145 (enum rs6000_builtin_type_index): Add entries for VSX.
10146 (V2DI_type_node): Ditto.
10147 (V2DF_type_node): Ditto.
10148 (unsigned_V2DI_type_node): Ditto.
10149 (bool_long_type_node): Ditto.
10150 (intDI_type_internal_node): Ditto.
10151 (uintDI_type_internal_node): Ditto.
10152 (double_type_internal_node): Ditto.
10153
10154 * config/rs6000/altivec.md (whole file): Move all expanders to
10155 vector.md from altivec.md. Rename insn matching functions to be
10156 altivec_foo.
10157 (UNSPEC_VCMP*): Delete, rewrite vector comparisons.
10158 (altivec_vcmp*): Ditto.
10159 (UNSPEC_VPERM_UNS): New, add for unsigned types using vperm.
10160 (VM): New iterator for moves that includes the VSX types.
10161 (altivec_vperm_<mode>): Add VSX types. Add unsigned types.
10162 (altivec_vperm_<mode>_uns): New, for unsigned types.
10163 (altivec_vsel_*): Rewrite vector comparisons and predicate builtins.
10164 (altivec_eq<mode>): Ditto.
10165 (altivec_gt<mode>): Ditto.
10166 (altivec_gtu<mode>): Ditto.
10167 (altivec_eqv4sf): Ditto.
10168 (altivec_gev4sf): Ditto.
10169 (altivec_gtv4sf): Ditto.
10170 (altivec_vcmpbfp_p): Ditto.
10171
10172 2009-07-23 Richard Earnshaw <rearnsha@arm.com>
10173
10174 * arm.md (split for ior/xor with shift and zero-extend): Cast op3 to
10175 unsigned HWI.
10176
10177 2009-07-23 Uros Bizjak <ubizjak@gmail.com>
10178
10179 PR target/40832
10180 * config/i386/i386.c (output_387_ffreep): Rewrite to use
10181 ASM_SHORT instead of .word.
10182 * config/i386/i386.md (*tls_global_dynamic_64): Use ASM_SHORT
10183 instead of .word in asm template.
10184
10185 2009-07-22 Vladimir Makarov <vmakarov@redhat.com>
10186
10187 PR target/37488
10188 * ira-lives.c (bb_has_abnormal_call_pred): New function.
10189 (process_bb_node_lives): Use it.
10190
10191 * ira.c (setup_cover_and_important_classes): Don't setup
10192 ira_important_class_nums. Add cover classes to the end of
10193 important classes.
10194 (cover_class_order, comp_reg_classes_func, reorder_important_classes):
10195 New.
10196 (find_reg_class_closure): Use reorder_important_classes.
10197
10198 * config/i386/i386.h (IRA_COVER_CLASSES): Remove.
10199
10200 * config/i386/i386.c (i386_ira_cover_classes): New function.
10201 (TARGET_IRA_COVER_CLASSES): Redefine.
10202
10203 * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Add a comment about
10204 importance of order of cover classes in the array.
10205
10206 2009-07-22 Diego Novillo <dnovillo@google.com>
10207
10208 * tree-pass.h (TDF_EH): Define.
10209 * gimple-pretty-print.c (dump_gimple_stmt): If FLAGS
10210 contains TDF_EH, print the EH region number holding GS.
10211 * tree-dump.c (dump_options): Add "eh".
10212 * doc/invoke.texi: Document it.
10213
10214 2009-07-22 Doug Kwan <dougkwan@google.com>
10215
10216 * config/arm/arm.md (subdi3) Copy non-reg values to DImode registers.
10217
10218 2009-07-22 Michael Matz <matz@suse.de>
10219
10220 PR tree-optimization/35229
10221 PR tree-optimization/39300
10222
10223 * tree-ssa-pre.c (includes): Include tree-scalar-evolution.h.
10224 (inhibit_phi_insertion): New function.
10225 (insert_into_preds_of_block): Call it for REFERENCEs.
10226 (init_pre): Initialize and finalize scalar evolutions.
10227 * Makefile.in (tree-ssa-pre.o): Depend on tree-scalar-evolution.h .
10228
10229 2009-07-22 Uros Bizjak <ubizjak@gmail.com>
10230
10231 * config/i386/predicates.md (zero_extended_scalar_load_operand):
10232 Use CONST_VECTOR_NUNITS to determine number of elements.
10233
10234 2009-07-22 Andreas Krebbel <krebbel1@de.ibm.com>
10235
10236 * config/s390/constraints.md (ZQ, ZR, ZS, ZT): New constraints.
10237 (U, W): Constraints are now deprecated and will be removed if we
10238 run out of letters.
10239 * config/s390/s390.md (U, W): Replaced with ZQZR, ZSZT throughout
10240 the file.
10241 ("prefetch"): Add the stcmh instruction for prefetching.
10242 * config/s390/s390.c (s390_symref_operand_p): Function moved. No
10243 changes.
10244 (s390_short_displacement): Return always true if compiling for
10245 machines not providing the long displacement facility.
10246 (s390_mem_constraint): Support the new constraint letter Z.
10247 (s390_check_qrst_address): New function.
10248
10249 2009-07-21 DJ Delorie <dj@redhat.com>
10250
10251 * config/mep/mep.c (mep_legitimize_arg): Leave control registers
10252 alone too.
10253
10254 2009-07-21 Jason Merrill <jason@redhat.com>
10255
10256 * c-common.c (max_tinst_depth): Increase default to 1024.
10257
10258 2009-07-21 Uros Bizjak <ubizjak@gmail.com>
10259
10260 * config/i386/sse.md (vec_unpacku_float_hi_v4si): New expander.
10261 (vec_unpacku_float_lo_v4si): Ditto.
10262
10263 2009-07-21 Uros Bizjak <ubizjak@gmail.com>
10264
10265 PR target/40811
10266 * config/i386/sse.md (sse2_cvtudq2ps): New expander.
10267 (enum ix86_builtins): Add IX86_BUILTIN_CVTUDQ2PS.
10268 (builtin_description): Add __builtin_ia32_cvtudq2ps.
10269 (ix86_vectorize_builtin_conversion): Handle IX86_BUILTIN_CVTUDQ2PS.
10270
10271 2009-07-21 Jakub Jelinek <jakub@redhat.com>
10272
10273 PR tree-optimization/40813
10274 * tree-inline.c (copy_bb): Regimplify RHS after last stmt, not before
10275 it.
10276
10277 2009-07-21 Kaz Kojima <kkojima@gcc.gnu.org>
10278
10279 * config/sh/sh.c (sh_gimplify_va_arg_expr): Wrap the result
10280 with a NOP_EXPR if needed.
10281
10282 2009-07-21 Paul Brook <paul@codesourcery.com>
10283
10284 * tree-vectorizer.c (increase_alignment): Handle nested arrays.
10285 Terminate debug dump with newline.
10286
10287 2009-07-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10288
10289 * pa.c (compute_zdepwi_operands): Limit deposit length to 32 - lsb.
10290 Cast "1" to unsigned HOST_WIDE_INT.
10291 (compute_zdepdi_operands): Limit maximum length to 64 bits. Limit
10292 deposit length to the maximum length - lsb. Extend length if
10293 HOST_BITS_PER_WIDE_INT is 32.
10294
10295 2009-07-20 Olatunji Ruwase <tjruwase@google.com>
10296
10297 * cgraph.h (constant_pool_htab): New function.
10298 (constant_descriptor_tree): Move from varasm.c.
10299 * varasm.c (constant_pool_htab): New function.
10300 (constant_descriptor_tree): Move to cgraph.h.
10301
10302 2009-07-20 Olatunji Ruwase <tjruwase@google.com>
10303
10304 * toplev.c: Invoke FINISH_UNIT callbacks before call to finalize().
10305
10306 2009-07-20 Shujing Zhao <pearly.zhao@oracle.com>
10307
10308 * Makefile.in (TREE_INLINE_H, tree-inline.o, cgraph.o): Remove
10309 $(VARRAY_H).
10310
10311 2009-07-20 Xinliang David Li <davidxl@google.com>
10312
10313 * dbgcnt.c (dbg_cnt_set_limit_by_name): Add length check.
10314
10315 2009-07-20 Adam Nemet <anemet@caviumnetworks.com>
10316
10317 * config/mips/mips.md (move_type): Add arith.
10318 (type): Handle arith.
10319 (zero_extendsidi2): Rename this into ...
10320 (*zero_extendsidi2): ... this. Don't match if ISA_HAS_EXT_INS.
10321 (zero_extendsidi2): New expander.
10322 (*zero_extendsidi2_dext): New pattern.
10323
10324 2009-07-20 Nick Clifton <nickc@redhat.com>
10325
10326 * config.gcc (mips64-*-*): Add definition of tm_defines in order
10327 to set MIPS_ABI_DEFAULT.
10328 * config/mips/vr.h (MIPS_ABI_DEFAULT): Remove definition.
10329
10330 2009-07-20 Jakub Jelinek <jakub@redhat.com>
10331
10332 * tree-object-size.c (addr_object_size): Handle unions with
10333 array in it as last field of structs in __bos (, 1) as __bos (, 0).
10334
10335 PR tree-optimization/40792
10336 * tree.c (build_function_type_skip_args): Remove bogus assert.
10337
10338 2009-07-20 Jan Hubicka <jh@suse.cz>
10339 Martin Jambor <mjambor@suse.cz>
10340
10341 * cgraph.h (combined_args_to_skip): New field.
10342 * cgraph.c (cgraph_create_virtual_clone): Properly handle
10343 combined_args_to_skip and args_to_skip.
10344 * tree-inline.c (update_clone_info): New function.
10345 (tree_function_versioning): Call update_clone_info.
10346 * cgraphunit.c: (cgraph_materialize_clone): Dump materialized
10347 functions.
10348 (cgraph_materialize_all_clones): More extensive dumping, working
10349 with combined_args_to_skip rather than args_to_skip.
10350
10351 2009-07-20 Ira Rosen <irar@il.ibm.com>
10352
10353 * tree-vectorizer.h (vectorizable_condition): Add parameters.
10354 * tree-vect-loop.c (vect_is_simple_reduction): Support COND_EXPR.
10355 (get_initial_def_for_reduction): Likewise.
10356 (vectorizable_reduction): Skip the check of first operand in case
10357 of COND_EXPR. Add check that it is outer loop vectorization if
10358 nested cycle was detected. Call vectorizable_condition() for
10359 COND_EXPR. If reduction epilogue cannot be created do not fail for
10360 nested cycles (if it is not double reduction). Assert that there
10361 is only one type in the loop in case of COND_EXPR. Call
10362 vectorizable_condition() to vectorize COND_EXPR.
10363 * tree-vect-stmts.c (vectorizable_condition): Update comment.
10364 Add parameters. Allow nested cycles if called from
10365 vectorizable_reduction(). Use reduction vector variable if provided.
10366 (vect_analyze_stmt): Call vectorizable_reduction() before
10367 vectorizable_condition().
10368 (vect_transform_stmt): Update call to vectorizable_condition().
10369
10370 2009-07-20 Christian Bruel <christian.bruel@st.com>
10371
10372 * config/sh/sh.opt (-mfmovd): Resurrect and document.
10373 * doc/invoke.texi (-mfmovd): Likewise.
10374 * config/sh/sh.h (TARGET_FMOVD, MASK_FMOVD): Remove default setting.
10375
10376 2009-07-20 Jan Hubicka <jh@suse.cz>
10377
10378 * tree-ssa-dce.c (remove_dead_phis): Only look for abnormal PHIs
10379 when handling SSA name.
10380
10381 2009-07-19 Jan Hubicka <jh@suse.cz>
10382
10383 PR tree-optimization/40676
10384 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do renaming on all
10385 virtual PHIs in empty BBs.
10386
10387 2009-07-18 Adam Nemet <anemet@caviumnetworks.com>
10388
10389 * combine.c (make_compound_operation) <SUBREG>: If force_to_mode
10390 re-expanded the compound use gen_lowpart instead to convert to the
10391 desired mode.
10392
10393 2009-07-18 Adam Nemet <anemet@caviumnetworks.com>
10394
10395 * combine.c (try_widen_shift_mode): Add COUNT, OUTER_CODE and
10396 OUTER_CONST arguments.
10397 <LSHIFTRT>: Use them to allow widening if the bits shifted in from
10398 the new wider mode will be masked off.
10399 (simplify_shift_const_1): Adjust calls to try_widen_shift_mode.
10400
10401 2009-07-18 Adam Nemet <anemet@caviumnetworks.com>
10402
10403 * combine.c (try_widen_shift_mode) <LSHIFTRT>: Allow widening if the
10404 high-order bits are zero.
10405
10406 2009-07-18 Adam Nemet <anemet@caviumnetworks.com>
10407
10408 * combine.c (simplify_shift_const_1): Split code to determine
10409 shift_mode into ...
10410 (try_widen_shift_mode): ... here. Allow widening for ASHIFTRT if the
10411 new bits shifted in are identical to the old sign bit.
10412
10413 2009-07-18 Richard Guenther <rguenther@suse.de>
10414
10415 PR c/40787
10416 * gimplify.c (gimplify_call_expr): Reject code using results from
10417 functions returning void.
10418
10419 2009-07-18 Richard Sandiford <r.sandiford@uk.ibm.com>
10420
10421 * doc/md.texi: Document the new PowerPC "es" constraint.
10422 Document that "m" can include automodified addresses on this target,
10423 and explain how %U must be used. Extend the "Q" and "Z" documentation
10424 to suggest "es" as well as "m".
10425 * config/rs6000/constraints.md (es): New memory constraint.
10426 (Q, Z): Update strings to match new documentation.
10427
10428 2009-07-18 Richard Sandiford <r.sandiford@uk.ibm.com>
10429
10430 * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Allow any
10431 offset from virtual_stack_vars_rtx and arg_pointer_rtx.
10432 * config/rs6000/predicates.md (volatile_mem_operand): Use
10433 offsettable_nonstrict_memref_p.
10434 * config/rs6000/rs6000.md (*floatsidf2_internal): Remove split check.
10435 (*floatunssidf2_internal): Likewise.
10436 (*fix_truncdfsi2_internal): Likewise.
10437 (*fix_trunctfsi2_internal): Likewise.
10438
10439 2009-07-17 Anatoly Sokolov <aesok@post.ru>
10440
10441 * config/avr/avr-devices.c (avr_mcu_t): Add atmega8u2, atmega16u2 and
10442 atmega32u2 devices.
10443 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
10444
10445 2009-07-17 Richard Guenther <rguenther@suse.de>
10446
10447 PR c/40401
10448 * tree-pass.h (pass_diagnose_omp_blocks): Declare.
10449 (pass_warn_unused_result): Likewise.
10450 (TODO_set_props): Remove.
10451 * omp-low.c (diagnose_omp_structured_block_errors): Change to
10452 run as a pass.
10453 (pass_diagnose_omp_blocks): Define.
10454 * c-decl.c (pop_file_scope): Do not finalize the CU here.
10455 (c_gimple_diagnostics_recursively): Remove.
10456 (finish_function): Do not call it.
10457 (c_write_global_declarations): Continue after errors.
10458 Finalize the CU here.
10459 * c-gimplify.c (c_genericize): Do not gimplify here.
10460 * c-common.c (c_warn_unused_result): Move ...
10461 * tree-cfg.c (do_warn_unused_result): ... here.
10462 (run_warn_unused_result): New function.
10463 (gate_warn_unused_result): New function.
10464 (pass_warn_unused_result): New pass.
10465 * c-common.h (c_warn_unused_result): Remove.
10466 * flags.h (flag_warn_unused_result): Declare.
10467 * c-opts.c (c_common_init_options): Enable flag_warn_unused_result.
10468 * opts.c (flag_warn_unused_result): Initialize to false.
10469 * toplev.c (compile_file): Add comment.
10470 * omp-low.c (create_omp_child_function): Do not register
10471 the function with the frontend.
10472 (diagnose_omp_structured_block_errors): Prepare to be
10473 called as optimization pass.
10474 (gate_diagnose_omp_blocks): New function.
10475 (pass_diagnose_omp_blocks): New pass.
10476 * cgraph.h (cgraph_optimize): Remove.
10477 (cgraph_analyze_function): Likewise.
10478 * cgraph.c (cgraph_add_new_function): Gimplify C++ thunks.
10479 * cgraphunit.c (cgraph_lower_function): Lower nested functions
10480 before their parents here.
10481 (cgraph_finalize_function): Not here.
10482 (cgraph_analyze_function): Gimplify functions here.
10483 (cgraph_finalize_compilation_unit): Continue after errors.
10484 Optimize the callgraph from here.
10485 (cgraph_optimize): Make static.
10486 * langhooks.c (write_global_declarations): Finalize the CU.
10487 * gimplify.c (gimplify_asm_expr): Do not emit ASMs with errors.
10488 (gimplify_function_tree): Assert we gimplify only once.
10489 Set PROP_gimple_any property.
10490 * tree-nested.c (gimplify_all_functions): New function.
10491 (lower_nested_functions): Gimplify all nested functions.
10492 * gimple.h (diagnose_omp_structured_block_errors): Remove.
10493 * passes.c (init_optimization_passes): Add pass_warn_unused_result
10494 and pass_diagnose_omp_blocks after gimplification. Do not
10495 set TODO_set_props on all_lowering_passes.
10496 (execute_one_pass): Do not handle TODO_set_props.
10497 * Makefile.in (cgraphunit.o): Add $(TREE_DUMP_H) dependency.
10498 (gimplify.o): Add tree-pass.h dependency.
10499 * tree-inline.c (copy_statement_list): Properly copy STATEMENT_LIST.
10500 (copy_tree_body_r): Properly handle TARGET_EXPR like SAVE_EXPR.
10501 (unsave_r): Likewise.
10502 * c-omp.c (c_finish_omp_atomic): Set DECL_CONTEXT on the
10503 temporary variable.
10504
10505 2009-07-17 Sandra Loosemore <sandra@codesourcery.com>
10506
10507 * doc/service.texi (Service): Restore previously removed link,
10508 which isn't broken after all.
10509
10510 2009-07-17 Richard Guenther <rguenther@suse.de>
10511
10512 PR tree-optimization/40321
10513 * tree-ssa-pre.c (add_to_exp_gen): Also add names defined by
10514 PHI nodes to the maximal set.
10515 (make_values_for_phi): Add PHI arguments to the maximal set.
10516 (execute_pre): Dump PHI_GEN and the maximal set.
10517
10518 2009-07-17 Jakub Jelinek <jakub@redhat.com>
10519
10520 PR c++/40780
10521 * gimplify.c (gimplify_conversion): Don't change non-conversions into
10522 VIEW_CONVERT_EXPR.
10523
10524 2009-07-16 Sandra Loosemore <sandra@codesourcery.com>
10525
10526 * doc/extend.texi (Nested Functions): Replace broken link with
10527 textual reference.
10528 * doc/service.texi (Service): Remove broken link.
10529
10530 2009-07-16 H.J. Lu <hongjiu.lu@intel.com>
10531
10532 PR bootstrap/40781
10533 * builtins.c (expand_builtin_memcmp): Use loc instead of
10534 EXPR_LOCATION (exp).
10535 (expand_builtin_strncmp): Likewise.
10536
10537 2009-07-17 Aldy Hernandez <aldyh@redhat.com>
10538 Manuel López-Ibáñez <manu@gcc.gnu.org>
10539
10540 PR 40435
10541 * tree-complex.c, tree-loop-distribution.c, tree.c, tree.h,
10542 builtins.c, fold-const.c, omp-low.c, cgraphunit.c, tree-ssa-ccp.c,
10543 tree-ssa-dom.c, gimple-low.c, expr.c, tree-ssa-ifcombine.c,
10544 c-decl.c, stor-layout.c, tree-if-conv.c, c-typeck.c, gimplify.c,
10545 calls.c, tree-sra.c, tree-mudflap.c, tree-ssa-copy.c,
10546 tree-ssa-forwprop.c, c-convert.c, c-omp.c, varasm.c,
10547 tree-inline.c, c-common.c, c-common.h, gimple.c,
10548 tree-switch-conversion.c, gimple.h, tree-cfg.c, c-parser.c,
10549 convert.c: Add location argument to fold_{unary,binary,ternary},
10550 fold_build[123], build_call_expr, build_size_arg,
10551 build_fold_addr_expr, build_call_array, non_lvalue, size_diffop,
10552 fold_build1_initializer, fold_build2_initializer,
10553 fold_build3_initializer, fold_build_call_array,
10554 fold_build_call_array_initializer, fold_single_bit_test,
10555 omit_one_operand, omit_two_operands, invert_truthvalue,
10556 fold_truth_not_expr, build_fold_indirect_ref, fold_indirect_ref,
10557 combine_comparisons, fold_builtin_*, fold_call_expr,
10558 build_range_check, maybe_fold_offset_to_address, round_up,
10559 round_down.
10560
10561 2009-07-16 Jason Merrill <jason@redhat.com>
10562
10563 PR libstdc++/37907
10564 * c-common.c (c_common_reswords): Add __is_standard_layout
10565 and __is_trivial.
10566 * c-common.h (enum rid): Add RID_IS_STD_LAYOUT and RID_IS_TRIVIAL.
10567 * doc/implement-cxx.texi: New.
10568 * doc/gcc.texi: Include it.
10569
10570 2009-07-16 DJ Delorie <dj@redhat.com>
10571
10572 * config/m32c/m32c.c (m32c_compare_redundant): Avoid removing
10573 compares that may be indirectly affected by previous instructions.
10574
10575 2009-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10576
10577 * builtins.c (do_mpc_arg2): New.
10578 (fold_builtin_2): Fold builtin cpow.
10579 * real.h (HAVE_mpc_pow): New.
10580
10581 2009-07-16 Bingfeng Mei <bmei@broadcom.com>
10582
10583 * modulo-sched.c (sms_schedule): stage_count <= 1 as correct
10584 comparison to skip unprofitable schedule
10585
10586 2009-07-16 Simon Baldwin <simonb@google.com>
10587
10588 * gcc.c (option_map): New flag -no-canonical-prefixes.
10589 * (display_help): Print help text for new flag.
10590 * (process_command): Move options translation and language specifics
10591 and handle new flag early. Use it to set a function pointer to a
10592 prefix builder. Replace make_relative_prefix calls with calls to
10593 the function pointed to. Ignore new flag in regular options handling.
10594 * doc/invoke.texi (Overall Options): Documented -no-canonical-prefixes.
10595
10596 2009-07-15 DJ Delorie <dj@redhat.com>
10597
10598 * config/mep/mep.md (sibcall_internal): Change register to avoid
10599 argument registers.
10600 (sibcall_value_internal): Likewise.
10601
10602 2009-07-15 Eric Botcazou <ebotcazou@adacore.com>
10603
10604 PR rtl-optimization/40710
10605 * resource.c (mark_target_live_regs): Reset DF problem to LR.
10606
10607 2009-07-15 Adam Nemet <anemet@caviumnetworks.com>
10608
10609 * config/mips/mips.md (*extenddi_truncate<mode>,
10610 *extendsi_truncate<mode>): Change type attribute to move_type
10611 with shift_shift. Split out code handling exts from here ...
10612 (*extend<GPR:mode>_truncate<SHORT:mode>_exts): ... to this new
10613 pattern.
10614 (*extendhi_truncateqi): Change type attribute to move_type with
10615 shift_shift. Split out code handling exts from here ...
10616 (*extendhi_truncateqi_exts): ... to this new pattern.
10617
10618 2009-07-15 Uros Bizjak <ubizjak@gmail.com>
10619
10620 * config/i386/sse.md (copysign<mode>3): Use "and-not" SSE instruction
10621 instead of "and" with inverted sign bit mask value. Use
10622 "nonimmediate_operand" for operand 1 and operand 2 predicate.
10623 Allocate registers only for operand 4 and operand 5.
10624
10625 2009-07-15 Jakub Jelinek <jakub@redhat.com>
10626
10627 PR middle-end/40747
10628 * fold-const.c (fold_cond_expr_with_comparison): When folding
10629 < and <= to MIN, make sure the MIN uses the same type as the
10630 comparison's operands.
10631
10632 2009-07-15 Richard Earnshaw <rearnsha@arm.com>
10633
10634 * arm.md (ior_xor): New code iterator.
10635 (split for ior/xor with shift and zero-extend): New split pattern.
10636 * arm/predicates.md (subreg_lowpart_operator): New special predicate.
10637
10638 2009-07-15 Richard Guenther <rguenther@suse.de>
10639
10640 * tree-ssa-structalias.c (make_constraint_from_heapvar): Initialize
10641 offset member.
10642
10643 2009-07-15 Richard Guenther <rguenther@suse.de>
10644
10645 PR middle-end/40753
10646 * alias.c (ao_ref_from_mem): Reject FUNCTION_DECL and LABEL_DECL bases.
10647
10648 2009-07-15 Maxim Kuvyrkov <maxim@codesourcery.com>
10649
10650 * config/m68k/linux-unwind.h (m68k_fallback_frame_state): Update to
10651 handle 2.6.30 kernel.
10652
10653 2009-07-15 DJ Delorie <dj@redhat.com>
10654
10655 * config/mep/mep.md (sibcall_internal): Change register to allow
10656 for 24-bit addresses.
10657 (sibcall_value_internal): Likewise.
10658
10659 2009-07-14 Ghassan Shobaki <ghassan.shobaki@amd.com>
10660
10661 * doc/invoke.texi: Added descriptions of the scheduling heuristics
10662 that are enabled/disabled by the flags introduced by a previous patch.
10663
10664 2009-07-14 DJ Delorie <dj@redhat.com>
10665
10666 * config/mep/mep.md (sibcall_internal): Include non-toggling
10667 non-jmp case.
10668 (sibcall_value_internal): Likewise.
10669
10670 2009-07-14 Taras Glek <tglek@mozilla.com>
10671 Rafael Espindola <espindola@google.com>
10672
10673 * doc/sourcebuild.texi: Document install-plugin target.
10674 * configure.ac: Added install-plugin target to language makefiles.
10675 * configure: Regenerate.
10676 * Makefile.in: (install-plugin): Install more headers,
10677 depend on lang.install-plugin.
10678
10679 2009-07-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
10680
10681 * tree-vrp.c (vrp_evaluate_conditional): Mark strings for
10682 translation.
10683
10684 2009-07-14 DJ Delorie <dj@redhat.com>
10685
10686 * config/mep/mep.c (mep_vliw_jmp_match): New function.
10687 * config/mep/mep-protos.h (mep_vliw_jmp_match): Prototype it.
10688 * config/mep/mep.md (sibcall_internal): Change test from
10689 mep_vliw_mode_match to mep_vliw_jmp_match.
10690 (sibcall_value_internal): Likewise.
10691
10692 2009-07-14 Uros Bizjak <ubizjak@gmail.com>
10693
10694 * config/i386/sse.md (copysign<mode>3): New expander.
10695 * config/i386/i386-protos.h (ix86_build_signbit_mask): New prototype.
10696 * config/i386/i386.c (ix86_build_signbit_mask): Make public.
10697 Use ix86_build_const_vector.
10698 (enum ix86_builtins): Add IX86_BUILTIN_CPYSGNPS and
10699 IX86_BUILTIN_CPYSGNPD.
10700 (builtin_description): Add __builtin_ia32_copysignps and
10701 __builtin_ia32_copysignpd.
10702 (ix86_builtin_vectorized_function): Handle BUILT_IN_COPYSIGN
10703 and BUILT_IN_COPYSIGNF.
10704
10705 2009-07-13 Jason Merrill <jason@redhat.com>
10706
10707 * builtins.c (can_trust_pointer_alignment): New fn.
10708 (get_pointer_alignment): Factor it out from here.
10709 * tree.h: Declare it.
10710
10711 2009-07-14 David Edelsohn <edelsohn@gnu.org>
10712
10713 * config/rs6000/predicates.md (offsettable_mem_operand): Test
10714 RTX_AUTOINC class.
10715
10716 2009-07-14 Dodji Seketeli <dodji@redhat.com>
10717
10718 PR debug/40705
10719 PR c++/403057
10720 * dwarf2.out.c (gen_type_die_with_usage): Added comment.
10721
10722 2009-07-14 Richard Guenther <rguenther@suse.de>
10723 Andrey Belevantsev <abel@ispras.ru>
10724
10725 PR middle-end/40745
10726 * cfgexpand.c (partition_stack_vars): Do not bother to update
10727 alias information when not optimizing.
10728
10729 2009-07-14 Richard Guenther <rguenther@suse.de>
10730 Andrey Belevantsev <abel@ispras.ru>
10731
10732 * tree-ssa-alias.h (refs_may_alias_p_1): Declare.
10733 (pt_solution_set): Likewise.
10734 * tree-ssa-alias.c (refs_may_alias_p_1): Export.
10735 * tree-ssa-structalias.c (pt_solution_set): New function.
10736 * final.c (rest_of_clean_state): Free SSA data structures.
10737 * print-rtl.c (print_decl_name): Remove.
10738 (print_mem_expr): Implement in terms of print_generic_expr.
10739 * alias.c (ao_ref_from_mem): New function.
10740 (rtx_refs_may_alias_p): Likewise.
10741 (true_dependence): Query alias-export info.
10742 (canon_true_dependence): Likewise.
10743 (write_dependence_p): Likewise.
10744 * tree-dfa.c (get_ref_base_and_extent): For void types leave
10745 size unknown.
10746 * emit-rtl.c (component_ref_for_mem_expr): Remove.
10747 (mem_expr_equal_p): Use operand_equal_p.
10748 (set_mem_attributes_minus_bitpos): Do not use
10749 component_ref_for_mem_expr.
10750 * cfgexpand.c (add_partitioned_vars_to_ptset): New function.
10751 (update_alias_info_with_stack_vars): Likewise.
10752 (partition_stack_vars): Call update_alias_info_with_stack_vars.
10753 * tree-ssa.c (delete_tree_ssa): Do not release SSA names
10754 explicitly nor clear stmt operands.
10755 Free the decl-to-pointer map.
10756 * tree-optimize.c (execute_free_datastructures): Do not free
10757 SSA data structures here.
10758 * tree-flow.h (struct gimple_df): Add decls_to_pointers member.
10759 * Makefile.in (emit-rtl.o): Add pointer-set.h dependency.
10760 (alias.o): Add tree-ssa-alias.h, pointer-set.h and $(TREE_FLOW_H)
10761 dependencies.
10762 (print-rtl.o): Add $(DIAGNOSTIC_H) dependency.
10763
10764 2009-07-13 DJ Delorie <dj@redhat.com>
10765
10766 * config/mep/mep.h (CC1_SPEC): Tweak parameters to trigger
10767 unrolling at the right iteration count.
10768
10769 * config/mep/mep.c (mep_expand_prologue): Fix frame pointer
10770 calculations.
10771
10772 2009-07-13 Ghassan Shobaki <ghassan.shobaki@amd.com>
10773
10774 * haifa-sched.c (rank_for_schedule): Introduced flags to
10775 enable/disable individual scheduling heuristics.
10776 * common.opt: Introduced flags to enable/disable individual
10777 heuristics in the scheduler.
10778 * doc/invoke.texi: Introduced flags to enable/disable individual
10779 heuristics in the scheduler.
10780
10781 2009-07-13 Kai Tietz <kai.tietz@onevision.com>
10782
10783 * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Remove file
10784 config/i386/mingw-tls.c.
10785 * config/i386/mingw-tls.c: Removed.
10786
10787 2009-07-13 Ira Rosen <irar@il.ibm.com>
10788
10789 * tree-vect-loop.c (get_initial_def_for_reduction): Ensure that the
10790 checks access only relevant statements.
10791 (vectorizable_reduction): Likewise.
10792
10793 2009-07-12 Kai Tietz <kai.tietz@onevision.com>
10794
10795 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Define _X86_
10796 just for 32-bit case.
10797
10798 2009-07-12 Jan Hubicka <jh@suse.cz>
10799
10800 PR tree-optimization/40585
10801 * except.c (expand_resx_expr): When there already is resume
10802 instruction, produce linked list.
10803 (build_post_landing_pads): Assert that resume is empty.
10804 (connect_post_landing_pads): Handle resume lists.
10805 (dump_eh_tree): Dump resume list.
10806
10807 2009-07-12 Ira Rosen <irar@il.ibm.com>
10808
10809 * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
10810 with additional argument.
10811 * tree-vectorizer.h (enum vect_def_type): Add
10812 vect_double_reduction_def.
10813 (vect_is_simple_reduction): Add argument.
10814 * tree-vect-loop.c (vect_determine_vectorization_factor): Fix
10815 indentation.
10816 (vect_analyze_scalar_cycles_1): Detect double reduction. Call
10817 vect_is_simple_reduction with additional argument.
10818 (vect_analyze_loop_operations): Handle exit phi nodes in case of
10819 double reduction.
10820 (reduction_code_for_scalar_code): Handle additional codes by
10821 returning ERROR_MARK for them. Fix comment and indentation.
10822 (vect_is_simple_reduction): Fix comment, add argument to specify
10823 double reduction. Detect double reduction.
10824 (get_initial_def_for_induction): Fix indentation.
10825 (get_initial_def_for_reduction): Fix comment and indentation.
10826 Handle double reduction. Create initial definitions that do not
10827 require adjustment if ADJUSTMENT_DEF is NULL. Handle additional cases.
10828 (vect_create_epilog_for_reduction): Fix comment, add argument to
10829 handle double reduction. Use PLUS_EXPR in case of MINUS_EXPR in
10830 epilogue result extraction. Create double reduction phi node and
10831 replace relevant uses.
10832 (vectorizable_reduction): Call vect_is_simple_reduction with
10833 additional argument. Fix indentation. Update epilogue code treatment
10834 according to the changes in reduction_code_for_scalar_code. Check
10835 for double reduction. Call vect_create_epilog_for_reduction with
10836 additional argument.
10837 * tree-vect-stmts.c (process_use): Handle double reduction, update
10838 documentation.
10839 (vect_mark_stmts_to_be_vectorized): Handle double reduction.
10840 (vect_get_vec_def_for_operand): Likewise.
10841
10842 2009-07-12 Danny Smith <dansmister@gmail.com>
10843
10844 * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't
10845 dllexport if !TREE_PUBLIC.
10846 (i386_pe_maybe_record_exported_symbol): Assert TREE_PUBLIC.
10847
10848 2009-07-11 Anatoly Sokolov <aesok@post.ru>
10849
10850 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Redefine.
10851 (avr_extra_arch_macro) Remove declatation.
10852 * config/avr/avr.c (avr_cpu_cpp_builtins): New function.
10853 (avr_extra_arch_macro) Declare as static.
10854 * config/avr/avr-protos.h (avr_cpu_cpp_builtins): Dclare.
10855
10856 2009-07-11 Jan Hubicka <jh@suse.cz>
10857
10858 PR middle-end/48388
10859 * except.c (can_be_reached_by_runtime): Test for NULL aka bitmap.
10860
10861 2009-07-11 Jakub Jelinek <jakub@redhat.com>
10862
10863 PR debug/40713
10864 * dwarf2out.c (dw_fde_struct): Add in_std_section and
10865 cold_in_std_section bits.
10866 (dwarf2out_begin_prologue): Initialize them.
10867 (dwarf2out_finish): Don't emit FDE range into .debug_ranges
10868 if already covered by text_section or cold_text_section range.
10869
10870 PR rtl-optimization/40667
10871 * defaults.h (MINIMUM_ALIGNMENT): Define if not defined.
10872 * doc/tm.texi (MINIMUM_ALIGNMENT): Document it.
10873 * config/i386/i386.h (MINIMUM_ALIGNMENT): Define.
10874 * config/i386/i386.c (ix86_minimum_alignment): New function.
10875 * config/i386/i386-protos.h (ix86_minimum_alignment): New prototype.
10876 * cfgexpand.c (expand_one_var): Use MINIMIM_ALIGNMENT.
10877 * emit-rtl.c (gen_reg_rtx): Likewise.
10878 * function.c (assign_parms): Likewise. If nominal_type needs
10879 bigger alignment than FUNCTION_ARG_BOUNDARY, use its alignment
10880 rather than passed_type's alignment.
10881
10882 PR target/40668
10883 * function.c (assign_parm_setup_stack): Adjust
10884 MEM_OFFSET (data->stack_parm) if promoted_mode is different
10885 from nominal_mode on big endian.
10886
10887 2009-07-11 Paolo Bonzini <bonzini@gnu.org>
10888
10889 * expmed.c (emit_store_flag_1): Fix choice of zero vs. sign extension.
10890
10891 2009-07-10 DJ Delorie <dj@redhat.com>
10892
10893 * config/mep/mep.c (mep_can_inline_p): Correct logic, and simplify.
10894
10895 2009-07-10 Mark Mitchell <mark@codesourcery.com>
10896
10897 * config/arm/thumb2.md (thumb2_cbz): Correct computation of length
10898 attribute.
10899 (thumb2_cbnz): Likewise.
10900
10901 2009-07-10 David Daney <ddaney@caviumnetworks.com>
10902
10903 PR target/39079
10904 * config.gcc (supported_defaults): Add synci.
10905 (with_synci): Add validation.
10906 (all_defaults): Add synci.
10907 * config/mips/mips.md (clear_cache): Use TARGET_SYNCI instead of
10908 ISA_HAS_SYNCI.
10909 (synci): Same.
10910 * config/mips/mips.opt (msynci): New option.
10911 * config/mips/mips.c (mips_override_options): Warn on use of
10912 -msynci for targets that do now support it.
10913 * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
10914 msynci.
10915 * gcc/doc/invoke.texi (-msynci): Document the new option.
10916 * doc/install.texi (--with-synci): Document the new option.
10917
10918 2009-07-10 Richard Guenther <rguenther@suse.de>
10919
10920 PR tree-optimization/40496
10921 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Create
10922 the PHI result with a compatible type.
10923
10924 2009-07-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
10925
10926 PR 25509
10927 PR 40614
10928 * c.opt (Wunused-result): New.
10929 * doc/invoke.texi: Document it.
10930 * c-common.c (c_warn_unused_result): Use it.
10931
10932 2009-07-09 DJ Delorie <dj@redhat.com>
10933
10934 * targhooks.c (default_target_can_inline_p): Rename from
10935 default_target_option_can_inline_p.
10936 * targhooks.h (default_target_can_inline_p): Likewise.
10937 * target-def.h (TARGET_CAN_INLINE_P): Rename from
10938 TARGET_OPTION_CAN_INLINE_P.
10939 * config/i386/i386.c (TARGET_CAN_INLINE_P): Likewise.
10940 * config/mep/mep.c (TARGET_CAN_INLINE_P): Likewise.
10941 (mep_target_can_inline_p): Rename from
10942 mep_target_option_can_inline_p.
10943
10944 PR target/40626
10945 * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Add coprocessor
10946 registers used to pass vectors.
10947
10948 * config/mep/mep.c (mep_option_can_inline_p): Remove error call.
10949
10950 2009-07-09 Tom Tromey <tromey@redhat.com>
10951
10952 * unwind-dw2-fde-darwin.c: Include dwarf2.h.
10953 * config/mmix/mmix.c: Include dwarf2.h.
10954 * config/rs6000/darwin-fallback.c: Include dwarf2.h.
10955 * config/xtensa/unwind-dw2-xtensa.c: Include dwarf2.h.
10956 * config/sh/sh.c: Include dwarf2.h.
10957 * config/i386/i386.c: Include dwarf2.h.
10958 * Makefile.in (DWARF2_H): Remove 'elf'.
10959 * except.c: Include dwarf2.h.
10960 * unwind-dw2.c: Include dwarf2.h.
10961 * dwarf2out.c: Include dwarf2.h.
10962 * unwind-dw2-fde-glibc.c: Include dwarf2.h.
10963 * unwind-dw2-fde.c: Include dwarf2.h.
10964 * dwarf2asm.c: Include dwarf2.h.
10965
10966 2009-07-09 Maxim Kuvyrkov <maxim@codesourcery.com>
10967
10968 * haifa-sched.c (insn_finishes_cycle_p): New static function.
10969 (max_issue): Use it.
10970 * sched-int.h (struct sched_info: insn_finishes_block_p): New
10971 scheduler hook.
10972 * sched-rgn.c (rgn_insn_finishes_block_p): Implement it.
10973 (region_sched_info): Update.
10974 * sched-ebb.c (ebb_sched_info): Update.
10975 * modulo-sched.c (sms_sched_info): Update.
10976 * sel-sched-ir.c (sched_sel_haifa_sched_info): Update.
10977
10978 2009-07-09 Maxim Kuvyrkov <maxim@codesourcery.com>
10979
10980 * varasm.c (build_constant_desc): Don't share RTL in pool entries.
10981
10982 2009-07-09 Basile Starynkevitch <basile@starynkevitch.net>
10983
10984 * plugin.c (try_init_one_plugin): passes RTLD_GLOBAL to dlopen.
10985
10986 2009-07-09 Jakub Jelinek <jakub@redhat.com>
10987
10988 PR middle-end/40692
10989 * fold-const.c (fold_cond_expr_with_comparison): Don't replace
10990 arg1 with arg01 if arg1 is already INTEGER_CST.
10991
10992 2009-07-08 Adam Nemet <anemet@caviumnetworks.com>
10993
10994 * simplify-rtx.c (simplify_binary_operation_1) <AND>:
10995 Transform (and (truncate)) into (truncate (and)).
10996
10997 2009-07-08 Adam Nemet <anemet@caviumnetworks.com>
10998
10999 * combine.c (make_extraction): Check TRULY_NOOP_TRUNCATION before
11000 creating LHS paradoxical subregs. Fix surrounding returns to
11001 use NULL_RTX rather than 0.
11002
11003 2009-07-08 DJ Delorie <dj@redhat.com>
11004
11005 * config/mep/mep.c: (mep_option_can_inline_p): New.
11006 (TARGET_OPTION_CAN_INLINE_P): Define.
11007
11008 2009-07-08 Mark Wielaard <mjw@redhat.com>
11009
11010 PR debug/40659
11011 * dwarf2out.c (add_data_member_location_attribute): When we have
11012 only a constant offset don't emit a new location description using
11013 DW_OP_plus_uconst, but just add the constant with add_AT_int, when
11014 dwarf_version > 2.
11015
11016 2009-07-08 Richard Henderson <rth@redhat.com>
11017
11018 PR target/38900
11019 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move to i386.c.
11020 (enum reg_class): Add CLOBBERED_REGS.
11021 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Likewise.
11022 * config/i386/i386.c (ix86_conditional_register_usage): Moved
11023 from CONDITIONAL_REGISTER_USAGE; build CLOBBERED_REGS for 64-bit.
11024 (ix86_function_ok_for_sibcall): Tidy. Disallow MS->SYSV sibcalls.
11025 (ix86_expand_call): Use sibcall_insn_operand when needed. Don't
11026 force 64-bit sibcalls into R11.
11027 * config/i386/constraints.md (U): New constraint.
11028 * config/i386/i386.md (sibcall_1, sibcall_value_1): Use it.
11029 (sibcall_1_rex64, sibcall_value_1_rex64): Likewise.
11030 (sibcall_1_rex64_v, sibcall_value_1_rex64_v): Remove.
11031
11032 2009-07-08 Shujing Zhao <pearly.zhao@oracle.com>
11033
11034 * basic-block.h (dump_regset, debug_regset): Remove duplicate
11035 prototypes.
11036 * c-objc-common.h (c_initialize_diagnostics): Ditto.
11037 * ebitmap.h (dump_ebitmap): Ditto.
11038 * optabs.h (optab_libfunc): Ditto.
11039 * tree.h (tree_expr_nonzero_warnv_p): Ditto.
11040 * tree-flow.h (vect_can_force_dr_alignment_p,
11041 get_vectype_for_scalar_type): Ditto.
11042 (vectorize_loops): Move prototype to ...
11043 * tree-vectorizer.h: ... here. Also, adjust comment.
11044 (vect_set_verbosity_level): Remove duplicate prototype.
11045 * tree-ssa-loop.c: Include tree-vectorizer.h.
11046 * Makefile.in (tree-ssa-loop.o): Depend on tree-vectorizer.h.
11047
11048 2009-07-08 Nick Clifton <nickc@redhat.com>
11049
11050 * config/i386/unix.h (ASM_COMMENT_START): Add a space after the
11051 forward slash.
11052
11053 2009-07-08 DJ Delorie <dj@redhat.com>
11054
11055 * config/mep/mep-ivc2.cpu (cpmovtocsar0_C3, cpmovtocsar1_C3,
11056 cpmovtocc_C3, cpmovtocsar0_P0S_P1, cpmovtocsar1_P0S_P1,
11057 cpmovtocc_P0S_P1): Mark volatile. Note which registers are
11058 written to.
11059 * config/mep/intrinsics.md: Regenerated.
11060 * config/mep/mep.c (mep_interrupt_saved_reg): Save IVC2 control
11061 registers when asm() or calls are detected.
11062
11063 2009-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
11064
11065 PR c++/31246
11066 * gimplify.c (gimplify_expr): Propagate no_warning flag when
11067 gimplifying.
11068 * gimple (gimple_build_call_from_tree): Likewise.
11069 * tree-cfg.c (remove_useless_stmts_warn_notreached): Check
11070 no_warning flag before warning.
11071
11072 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
11073
11074 * tree.c (set_expr_locus): Remove.
11075 * tree.h (EXPR_LOCUS,SET_EXPR_LOCUS,set_expr_locus): Remove.
11076 * c-typeck.c (c_finish_stmt_expr): Replace EXPR_LOCUS by
11077 EXPR_LOCATION.
11078 * gimplify.c (internal_get_tmp_var): Likewise.
11079 (gimplify_call_expr): Likewise.
11080 (gimplify_one_sizepos): Likewise.
11081
11082 2009-07-07 Eric Botcazou <ebotcazou@adacore.com>
11083
11084 PR debug/40666
11085 * dbxout.c (dbxout_symbol) <PARM_DECL>: Deal with parameters pointing
11086 to variables for debugging purposes.
11087
11088 2009-06-23 Mark Loeser <mark@halcy0n.com>
11089
11090 PR build/40010
11091 * Makefile.in (gcc.pod): Depend on gcc-vers.texi.
11092
11093 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
11094
11095 * pretty-print.c (pp_base_format): Remove %J.
11096 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
11097 gcc_cxxdiag_char_table): Likewise.
11098 (init_dynamic_diag_info): Likewise.
11099
11100 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
11101
11102 * pretty-print.c (pp_base_format): Remove %H.
11103 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
11104 gcc_cxxdiag_char_table): Likewise.
11105 (init_dynamic_diag_info): Likewise.
11106 * config/mep/mep.c (mep_select_section): Likewise.
11107
11108 2009-07-07 Duncan Sands <baldrick@free.fr>
11109
11110 * final.c (pass_clean_state): Give the pass a name.
11111 * passes.c (pass_rest_of_compilation): Likewise.
11112 * tree-optimize.c (pass_all_optimizations): Likewise.
11113
11114 2009-07-07 H.J. Lu <hongjiu.lu@intel.com>
11115
11116 * config/ia64/ia64.c (ia64_handle_model_attribute): Remove
11117 an extra 'decl' for error_at.
11118
11119 2009-07-07 Jakub Jelinek <jakub@redhat.com>
11120
11121 PR middle-end/40669
11122 * tree-tailcall.c (adjust_return_value_with_ops,
11123 create_tailcall_accumulator): Set DECL_GIMPLE_REG_P on the temporary
11124 if it has complex or vector type.
11125
11126 2009-07-07 Olivier Hainque <hainque@adacore.com>
11127
11128 * config/alpha/t-osf4 (SHLIB_LINK): Do not hide the dummy weak
11129 pthread symbols.
11130
11131 2009-07-07 Basile Starynkevitch <basile@starynkevitch.net>
11132
11133 * Makefile.in: added more lists of includes to PLUGIN_HEADERS.
11134
11135 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
11136
11137 * cgraphunit.c: Replace %J by an explicit location. Update all calls.
11138 * c-decl.c: Likewise.
11139 * function.c: Likewise.
11140 * varasm.c: Likewise.
11141 * tree-ssa.c: Likewise.
11142 * c-common.c: Likewise.
11143 * tree-cfg.c: Likewise.
11144 * config/spu/spu.c: Likewise.
11145 * config/ia64/ia64.c: Likewise.
11146 * config/v850/v850.c: Likewise.
11147
11148 2009-07-06 DJ Delorie <dj@redhat.com>
11149
11150 * config/mep/mep-core.cpu (fsft, ssarb): Mark as VOLATILE.
11151 * config/mep/mep-ivc2.cpu (many): Add VOLATILE to more insns that make
11152 unspecified accesses to control registers.
11153 * config/mep/intrinsics.md: Regenerate.
11154 * config/mep/intrinsics.h: Regenerate.
11155 * config/mep/mep-intrin.h: Regenerate.
11156
11157 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
11158
11159 * c-lex.c: Replace %H by an explicit location. Update all calls.
11160 * c-common.c: Likewise.
11161 * c-decl.c: Likewise.
11162 * c-typeck.c: Likewise.
11163 * fold-const.c: Likewise.
11164 * gimplify.c: Likewise.
11165 * stmt.c: Likewise.
11166 * tree-cfg.c: Likewise.
11167 * tree-ssa-loop-niter.c: Likewise.
11168 * tree-vrp.c: Likewise.
11169 * value-prof.c: Likewise.
11170
11171 2009-07-06 Diego Novillo <dnovillo@google.com>
11172
11173 * tree-dfa.c (dump_variable): Write DECL_INITIAL for VAR
11174 if it has one. Handle cases where VAR does not have an
11175 annotation or cfun is NULL.
11176
11177 2009-07-06 Diego Novillo <dnovillo@google.com>
11178
11179 * tree.c: Include debug.h.
11180 (initialize_tree_contains_struct): New.
11181 (init_ttree): Call it.
11182 (tree_node_structure_for_code): Factor out of ...
11183 (tree_node_structure): ... here.
11184 * treestruct.def (TS_PHI_NODE): Remove.
11185 (TS_GIMPLE_STATEMENT): Remove.
11186
11187 2009-07-06 Diego Novillo <dnovillo@google.com>
11188
11189 * tree-pretty-print.c (dump_generic_node): Protect against NULL op0.
11190 (debug_tree_chain): Handle cycles.
11191
11192 2009-07-06 Nick Clifton <nickc@redhat.com>
11193 DJ Delorie <dj@redhat.com>
11194
11195 * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
11196 __FMOVD_ENABLED__ is defined.
11197 * config/sh/sh.h
11198 (TARGET_FMOVD): Provide a default definition.
11199 (MASK_FMOVD): Likewise.
11200 (TARGET_CPU_CPP_BUILTINS): Define
11201 __FMOVD_ENABLED__ if TARGET_FMOVD is true.
11202 * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
11203 two fmov instructions depending upon whether TARGET_FMOVD is enabled.
11204 (split for DF load from memory into register): Also handle
11205 MEMs which consist of REG+DISP addressing.
11206 (split for DF store from register to memory): Likewise.
11207 (movsf_ie): Always use single fp_mode.
11208 * config/sh/sh.c (sh_override_options): Do not automatically
11209 enable TARGET_MOVD for the SH2A when supporting doubles - leave
11210 that to the -mfmovd command line switch.
11211 (broken_move): Do not restrict fldi test to only the SH4 and SH4A.
11212 (fldi_ok): Always allow.
11213 * config/sh/sh.opt (mfmovd): Remove this switch.
11214 * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
11215
11216 2009-07-06 J"orn Rennecke <joern.rennecke@arc.com>
11217 Kaz Kojima <kkojima@gcc.gnu.org>
11218
11219 PR rtl-optimization/30807
11220 * postreload.c (reload_combine): For every new use of REG_SUM,
11221 record the use of BASE.
11222
11223 2009-07-06 Jan Hubicka <jh@suse.cz>
11224
11225 * params.def: Revert my accidental commit at 2009-06-30.
11226
11227 2009-07-04 Ian Lance Taylor <iant@google.com>
11228
11229 PR target/40636
11230 * config/i386/msformat-c.c (mingw_format_attributes): Declare as
11231 EXPORTED_CONST.
11232 (mingw_format_attribute_overrides): Likewise.
11233
11234 2009-07-04 Jakub Jelinek <jakub@redhat.com>
11235
11236 PR debug/40596
11237 * dwarf2out.c (based_loc_descr): For crtl->stack_realign_tried
11238 don't check cfa.reg. Instead of cfa.indirect use
11239 fde && fde->drap_reg != INVALID_REGNUM test.
11240
11241 2009-07-04 Eric Botcazou <ebotcazou@adacore.com>
11242
11243 * postreload.c (reload_combine): Replace CONST_REG with INDEX_REG.
11244
11245 2009-07-03 Vladimir Makarov <vmakarov@redhat.com>
11246
11247 PR target/40587
11248 * ira.c (build_insn_chain): Use DF_LR_OUT instead of df_get_live_out.
11249
11250 2009-07-03 Richard Guenther <rguenther@suse.de>
11251
11252 PR tree-optimization/40640
11253 * tree-switch-conversion.c (build_arrays): Perform arithmetic
11254 in original type.
11255
11256 2009-07-03 Jan Hubicka <jh@suse.cz>
11257
11258 * ipa-inline.c (cgraph_decide_inlining_incrementally): When optimizing
11259 for size, reduce amount of inlining.
11260
11261 2009-07-03 Richard Guenther <rguenther@suse.de>
11262
11263 PR middle-end/34163
11264 * tree-chrec.c (chrec_convert_1): Fold (T2)(t +- x) to (T2)t +- (T2)x
11265 if t +- x is known to not overflow and the conversion widens the
11266 operation.
11267 * Makefile.in (tree-chrec.o): Add $(FLAGS_H) dependency.
11268
11269 2009-07-03 Jan Hubicka <jh@suse.cz>
11270
11271 * ipa-pure-const.c (analyze): Update loop optimizer init.
11272 * tree-ssa-loop-iv-canon.c (empty_loop_p, remove_empty_loop,
11273 try_remove_empty_loop, remove_empty_loops): Remove.
11274 * tree-ssa-loop.c (tree_ssa_empty_loop, pass_empty_loop): Remove.
11275 * tree-ssa-dce.c (find_obviously_necessary_stmts): Use finiteness info
11276 to mark regular loops as neccesary.
11277 (degenerate_phi_p): New function.
11278 (propagate_necessity, remove_dead_phis): Use it.
11279 (forward_edge_to_pdom): Likewise.
11280 (eliminate_unnecessary_stmts): Take care to remove uses of results of
11281 virtual PHI nodes that became unreachable.
11282 (perform_tree_ssa_dce): Initialize/deinitialize loop optimizer.
11283 * tree-flow.h (remove_empty_loops): Remove.
11284 * passes.c (init_optimization_passes): Remove.
11285
11286 2009-07-03 Uros Bizjak <ubizjak@gmail.com>
11287
11288 * config/i386/i386.md (fix_trunc<mode>_fisttp_i387_1): Use
11289 can_create_pseudo_p.
11290 (*fix_trunc<mode>_i387_1): Ditto.
11291 (*floathi<mode>2_1): Ditto.
11292 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): Ditto.
11293 (*fistdi2_1): Ditto.
11294 (*fist<mode>2_1): Ditto.
11295 (frndintxf2_floor): Ditto.
11296 (*fist<mode>2_floor_1): Ditto.
11297 (frndintxf2_ceil): Ditto.
11298 (*fist<mode>2_ceil_1): Ditto.
11299 (frndintxf2_trunc): Ditto.
11300 (frndintxf2_mask_pm): Ditto.
11301 (fxam<mode>2_i387_with_temp): Ditto.
11302 * config/i386/sse.md (mulv16qi3): Ditto.
11303 (*sse2_mulv4si3): Ditto.
11304 (mulv2di3): Ditto.
11305 (sse4_2_pcmpestr): Ditto.
11306 (sse4_2_pcmpistr): Ditto.
11307
11308 2009-07-03 Jan Hubicka <jh@suse.cz>
11309
11310 * tree-ssa-dce.c (bb_contains_live_stmts): New bitmap.
11311 (mark_stmt_necessary): Set it.
11312 (mark_operand_necessary): Set it.
11313 (mark_control_dependent_edges_necessary): Set it.
11314 (mark_virtual_phi_result_for_renaming): New function.
11315 (get_live_post_dom): New function.
11316 (forward_edge_to_pdom): New function.
11317 (remove_dead_stmt): Fix handling of control dependences.
11318 (tree_dce_init): Init new bitmap.
11319 (tree_dce_done): Free it.
11320
11321 2009-07-02 Richard Guenther <rguenther@suse.de>
11322
11323 PR bootstrap/40617
11324 * tree-ssa-structalias.c (new_var_info): Initialize
11325 is_restrict_var.
11326
11327 2009-07-02 Jan Hubicka <jh@suse.cz>
11328
11329 * ipa-pure-const.c (check_op): Use PTA info to see if indirect_ref is
11330 local.
11331
11332 2009-07-02 Paolo Bonzini <bonzini@gnu.org>
11333
11334 * expmed.c (emit_cstore, emit_store_flag_1): Accept target_mode
11335 instead of recomputing it. Adjust calls.
11336 (emit_store_flag): Adjust recursive calls.
11337
11338 2009-07-02 Richard Guenther <rguenther@suse.de>
11339
11340 * tree-ssa-live.c (remove_unused_locals): Do not remove
11341 heap variables.
11342 * tree-ssa-structalias.c (handle_lhs_call): Delay setting
11343 of DECL_EXTERNAL for HEAP variables.
11344 (compute_points_to_sets): Set DECL_EXTERNAL for escaped
11345 HEAP variables. Do not adjust RESTRICT vars.
11346 (find_what_var_points_to): Nobody cares if something
11347 points to READONLY.
11348
11349 2009-07-02 Ben Elliston <bje@au.ibm.com>
11350
11351 * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Move
11352 pc_low and pc_high declarations to the top of the function.
11353
11354 2009-07-01 DJ Delorie <dj@redhat.com>
11355
11356 * config/mep/mep.c (mep_handle_option): Leave IVC2 control
11357 registers as fixed.
11358 (mep_interrupt_saved_reg): Save appropriate IVC2 control registers.
11359 * config/mep/mep-ivc2.cpu: Add VOLATILE to insns that make
11360 unspecified accesses to control registers.
11361 * config/mep/intrinsics.md: Regenerate.
11362 * config/mep/intrinsics.h: Regenerate.
11363 * config/mep/mep-intrin.h: Regenerate.
11364
11365 2009-07-01 Anthony Green <green@moxielogic.com>
11366
11367 * config/moxie/moxie.c (moxie_expand_prologue): Use dec
11368 instruction when possible.
11369 (moxie_expand_prologue): Ditto. Also, save an instruction and
11370 some complexity by popping off of $r12 instead of $sp.
11371 * config/moxie/moxie.md (movsi_pop): Don't assume $sp. Take two
11372 operands.
11373
11374 2009-07-01 Richard Henderson <rth@redhat.com>
11375
11376 PR bootstrap/40347
11377 * function.c (reposition_prologue_and_epilogue_notes): If epilogue
11378 contained no insns, reposition note before last insn.
11379
11380 2009-07-01 Richard Henderson <rth@redhat.com>
11381
11382 PR debug/40431
11383 * dwarf2out.c (def_cfa_1): Revert 2009-06-11 change for
11384 DW_CFA_def_cfa_offset and DW_CFA_def_cfa.
11385
11386 2009-07-01 Michael Meissner <meissner@linux.vnet.ibm.com>
11387
11388 PR bootstrap/40558
11389 * config/rs6000/rs6000.c (print_operand): Undo change that breaks
11390 darwin9 for printing reg addresses with %y.
11391
11392 2009-07-01 Adam Nemet <anemet@caviumnetworks.com>
11393
11394 * combine.c (force_to_mode): Handle TRUNCATE. Factor out
11395 truncation from operands in binary operations.
11396
11397 2009-07-01 Adam Nemet <anemet@caviumnetworks.com>
11398
11399 Revert:
11400 2009-01-11 Adam Nemet <anemet@caviumnetworks.com>
11401 * expmed.c (store_bit_field_1): Properly truncate the paradoxical
11402 subreg of op0 to the original op0.
11403
11404 * expmed.c (store_bit_field_1): Use a temporary as the destination
11405 instead of a paradoxical subreg when we need to truncate the result.
11406
11407 2009-07-01 DJ Delorie <dj@redhat.com>
11408
11409 * config/mep/mep-ivc2.cpu (cmov, cmovc, cmovh): Add intrinsic
11410 names to VLIW variants.
11411 (ivc2rm, ivc2crn): Make data type consistent with non-VLIW variants.
11412 * config/mep/intrinsics.md: Regenerate.
11413 * config/mep/intrinsics.h: Regenerate.
11414 * config/mep/mep-intrin.h: Regenerate.
11415
11416 2009-07-01 Jakub Jelinek <jakub@redhat.com>
11417
11418 PR debug/40462
11419 * jump.c (returnjump_p): Revert last patch.
11420 * dwarf2out.c (dwarf2out_begin_epilogue): Handle SEQUENCEs.
11421
11422 2009-07-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11423
11424 PR target/40575
11425 * pa.md (casesi32p): Use jump table label to determine the offset
11426 of the jump table.
11427 (casesi64p): Likewise.
11428
11429 * pa.c (forward_branch_p): Return bool type. Use instruction
11430 addresses when available. Assert that INSN has a jump label.
11431 (pa_adjust_insn_length): Don't call forward_branch_p if INSN doesn't
11432 have a jump label.
11433
11434 2009-07-01 Richard Guenther <rguenther@suse.de>
11435
11436 PR tree-optimization/19831
11437 * tree-ssa-dce.c (propagate_necessity): Calls to functions
11438 that only act as barriers do not make any previous stores necessary.
11439 * tree-ssa-structalias.c (handle_lhs_call): Delay making
11440 HEAP variables global, do not add a constraint from nonlocal.
11441 (find_func_aliases): Handle escapes through return statements.
11442 (compute_points_to_sets): Make escaped HEAP variables global.
11443
11444 2009-07-01 Paolo Bonzini <bonzini@gnu.org>
11445
11446 PR bootstrap/40597
11447 * expmed.c (emit_store_flag): Perform a conversion if necessary,
11448 after reducing a DImode cstore to SImode.
11449
11450 2009-07-01 Paolo Bonzini <bonzini@gnu.org>
11451
11452 * expr.c (expand_expr_real_1): Reinstate fallthrough to
11453 TRUTH_ANDIF_EXPR if do_store_flag returns NULL.
11454
11455 2009-07-01 Maciej W. Rozycki <macro@linux-mips.org>
11456
11457 * config/vax/vax.h (TARGET_BSD_DIVMOD): New macro. Set to 1.
11458 * config/vax/linux.h (TARGET_BSD_DIVMOD): New macro. Redefine the
11459 to 0.
11460 * config/vax/vax.c (vax_init_libfuncs): Only redefine udiv_optab
11461 and umod_optab if TARGET_BSD_DIVMOD.
11462 * config/vax/lib1funcs.asm: New file.
11463 * config/vax/t-linux: New file.
11464 * config.gcc (vax-*-linux*): Set tmake_file to vax/t-linux.
11465
11466 2009-06-30 Jakub Jelinek <jakub@redhat.com>
11467
11468 PR c++/40566
11469 * convert.c (convert_to_integer) <case COND_EXPR>: Don't convert
11470 to type arguments that have void type.
11471
11472 PR debug/40573
11473 * dwarf2out.c (gen_formal_parameter_die): Call
11474 equate_decl_number_to_die if node is different from origin.
11475
11476 2009-06-30 Anthony Green <green@moxielogic.com>
11477
11478 Clean up moxie port for --enable-build-with-cxx.
11479 * config/moxie/moxie.c (moxie_function_value): First two
11480 parameters are const_tree, not tree.
11481 * config/moxie/moxie.h (enum reg_class): Rename CC_REG to CC_REGS.
11482 (REG_CLASS_NAMES): Ditto.
11483 (REGNO_REG_CLASS): Ditto.
11484 * config/moxie/moxie-protos.h (moxie_override_options): Declare.
11485 (moxie_function_value): Fix constyness of arguments.
11486
11487 2009-06-30 Eric Botcazou <ebotcazou@adacore.com>
11488
11489 * cgraphunit.c (cgraph_finalize_compilation_unit): Call
11490 finalize_size_functions before further processing.
11491 * stor-layout.c: Include cgraph.h, tree-inline.h and tree-dump.h.
11492 (variable_size): Call self_referential_size on size expressions
11493 that contain a PLACEHOLDER_EXPR.
11494 (size_functions): New static variable.
11495 (copy_self_referential_tree_r): New static function.
11496 (self_referential_size): Likewise.
11497 (finalize_size_functions): New global function.
11498 * tree.c: Include tree-inline.h.
11499 (push_without_duplicates): New static function.
11500 (find_placeholder_in_expr): New global function.
11501 (substitute_in_expr) <tcc_declaration>: Return the replacement object
11502 on equality.
11503 <tcc_expression>: Likewise.
11504 <tcc_vl_exp>: If the replacement object is a constant, try to inline
11505 the call in the expression.
11506 * tree.h (finalize_size_functions): Declare.
11507 (find_placeholder_in_expr): Likewise.
11508 (FIND_PLACEHOLDER_IN_EXPR): New macro.
11509 (substitute_placeholder_in_expr): Update comment.
11510 * tree-inline.c (remap_decl): Do not unshare trees if do_not_unshare
11511 is true.
11512 (copy_tree_body_r): Likewise.
11513 (copy_tree_body): New static function.
11514 (maybe_inline_call_in_expr): New global function.
11515 * tree-inline.h (struct copy_body_data): Add do_not_unshare field.
11516 (maybe_inline_call_in_expr): Declare.
11517 * Makefile.in (tree.o): Depend on TREE_INLINE_H.
11518 (stor-layout.o): Depend on CGRAPH_H, TREE_INLINE_H, TREE_DUMP_H and
11519 GIMPLE_H.
11520
11521 2009-06-30 Richard Guenther <rguenther@suse.de>
11522
11523 * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Always
11524 continue walking.
11525 (propagate_necessity): Do not mark reaching defs of stores
11526 as necessary.
11527
11528 2009-06-30 Jan Hubicka <jh@suse.cz>
11529
11530 * cfgloopanal.c (check_irred): Move into ...
11531 (mark_irreducible_loops): ... here; return true if ireducible
11532 loops was found.
11533 * ipa-pure-const.c: Include cfgloop.h and tree-scalar-evolution.h
11534 (analyze_function): Try to prove loop finiteness.
11535 * cfgloop.h (mark_irreducible_loops): Update prototype.
11536 * Makefile.in (ipa-pure-const.o): Add dependency on SCEV and CFGLOOP.
11537
11538 2009-06-30 Basile Starynkevitch <basile@starynkevitch.net>
11539
11540 * Makefile.in (PLUGIN_HEADERS): added ggc, tree-dump, pretty-print.
11541
11542 2009-06-30 Ira Rosen <irar@il.ibm.com>
11543
11544 PR tree-optimization/40542
11545 * tree-vect-stmts.c (vect_analyze_stmt): Don't vectorize volatile
11546 types.
11547
11548 2009-06-30 Martin Jambor <mjambor@suse.cz>
11549
11550 PR tree-optimization/40582
11551 * tree-sra.c (build_ref_for_offset_1): Use types_compatible_p rather
11552 than useless_type_conversion_p.
11553 (generate_subtree_copies): Increment sra_stats.subtree_copies at a
11554 proper place.
11555
11556 2009-06-30 Martin Jambor <mjambor@suse.cz>
11557
11558 PR middle-end/40554
11559 * tree-sra.c (sra_modify_expr): Add access->offset to start_offset.
11560
11561 2009-06-30 Richard Guenther <rguenther@suse.de>
11562
11563 * tree-ssa-alias.c (walk_aliased_vdefs_1): Change interface to
11564 use ao_ref references.
11565 (walk_aliased_vdefs): Likewise.
11566 * tree-ssa-alias.h (walk_aliased_vdefs): Adjust prototype.
11567 * tree-ssa-dce.c (struct ref_data): Remove.
11568 (mark_aliased_reaching_defs_necessary_1): Use the ao_ref argument.
11569 (mark_aliased_reaching_defs_necessary): Adjust.
11570 (mark_all_reaching_defs_necessary_1): Likewise.
11571
11572 2009-06-30 Paolo Bonzini <bonzini@gnu.org>
11573
11574 PR boostrap/40597
11575 * expmed.c (emit_cstore): New name of emit_store_flag_1.
11576 (emit_store_flag_1): Extract from emit_store_flag, adjust
11577 calls to (what now is) emit_cstore.
11578 (emit_store_flag): Call emit_store_flag_1 and also use it
11579 for what used to be recursive calls.
11580
11581 2009-06-30 Wei Guozhi <carrot@google.com>
11582
11583 PR/40416
11584 * tree-ssa-sink.c (statement_sink_location): Stop sinking expression
11585 if the target bb post dominates from bb.
11586 * config/i386/i386.c (memory_address_length): Check existence of base
11587 register before using it.
11588
11589 2009-06-30 Nick Clifton <nickc@redhat.com>
11590 DJ Delorie <dj@redhat.com>
11591
11592 * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
11593 __FMOVD_ENABLED__ is defined.
11594 * config/sh/sh.h
11595 (TARGET_FMOVD): Provide a default definition.
11596 (MASK_FMOVD): Likewise.
11597 (TARGET_CPU_CPP_BUILTINS): Define
11598 __FMOVD_ENABLED__ if TARGET_FMOVD is true.
11599 * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
11600 two fmov instructions depending upon whether TARGET_FMOVD is
11601 enabled.
11602 (split for DF load from memory into register): Also handle
11603 MEMs which consist of REG+DISP addressing.
11604 (split for DF store from register to memory): Likewise.
11605 * config/sh/sh.opt (mfmovd): Remove this switch.
11606 * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
11607 * config/sh/sh.c (sh_override_options): Do not automatically
11608 enable TARGET_MOVD for the SH2A when supporting doubles - leave
11609 that to the -mfmovd command line switch.
11610
11611 * config/sh/sh.c (broken_move): Do not restrict fldi test to only
11612 the SH4 and SH4A.
11613 (fldi_ok): Always allow.
11614 * config/sh/sh.md (movsf_ie): Always use single fp_mode.
11615
11616 2009-06-29 DJ Delorie <dj@redhat.com>
11617
11618 * doc/install.texi (mep-x-elf): Correct chip's full name.
11619
11620 2009-06-29 H.J. Lu <hongjiu.lu@intel.com>
11621
11622 * doc/extend.texi: Fix typo.
11623
11624 2009-06-29 Tom Tromey <tromey@redhat.com>
11625
11626 * dwarf2.h: Remove.
11627 * Makefile.in (DWARF2_H): New variable.
11628 (except.o): Use it.
11629 (dwarf2out.o): Likewise.
11630 (dwarf2asm.o): Likewise.
11631 * config/i386/t-i386: Use DWARF2_H.
11632 * except.c: Include elf/dwarf2.h.
11633 * unwind-dw2.c: Include elf/dwarf2.h.
11634 * dwarf2out.c: Include elf/dwarf2.h.
11635 (dw_loc_descr_struct) <dw_loc_opc>: Now a bitfield.
11636 <dtprel>: New field.
11637 (dwarf_stack_op_name): Don't handle INTERNAL_DW_OP_tls_addr.
11638 (size_of_loc_descr): Likewise.
11639 (output_loc_operands_raw): Likewise.
11640 (output_loc_operands): Handle new dtprel field.
11641 (loc_checksum): Update.
11642 (loc_descriptor_from_tree_1) <VAR_DDECL>: Set dtprel field.
11643 * unwind-dw2-fde-glibc.c: Include elf/dwarf2.h.
11644 * unwind-dw2-fde.c: Include elf/dwarf2.h.
11645 * dwarf2asm.c: Include elf/dwarf2.h.
11646 * unwind-dw2-fde-darwin.c: Include elf/dwarf2.h.
11647 * config/mmix/mmix.c: Include elf/dwarf2.h.
11648 * config/rs6000/darwin-fallback.c: Include elf/dwarf2.h.
11649 * config/xtensa/unwind-dw2-xtensa.c: Include elf/dwarf2.h.
11650 * config/sh/sh.c: Include elf/dwarf2.h.
11651 * config/i386/i386.c: Include elf/dwarf2.h.
11652
11653 2009-06-29 DJ Delorie <dj@redhat.com>
11654
11655 * config/mep/mep.h (CPP_SPEC): Remove __cop macro.
11656
11657 * doc/extend.texi: Add MeP attributes and pragmas.
11658 * doc/invoke.text: Add MeP Options.
11659 * doc/contrib.texi: Add MeP contribution.
11660 * doc/md.texi: Add MeP constraints.
11661 * doc/install.texi: Add MeP target.
11662
11663 2009-06-30 Anatoly Sokolov <aesok@post.ru>
11664
11665 * target.h (struct gcc_target): Add frame_pointer_required field.
11666 * target-def.h (TARGET_FRAME_POINTER_REQUIRED): New.
11667 (TARGET_INITIALIZER): Use TARGET_FRAME_POINTER_REQUIRED.
11668 * ira.c (setup_eliminable_regset): Use frame_pointer_required target
11669 hook.
11670 * reload1.c (update_eliminables): (Ditto.).
11671 * gcc/system.h (FRAME_POINTER_REQUIRED): Poison.
11672 * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
11673 (INITIAL_FRAME_POINTER_OFFSET): (Ditto.).
11674
11675 * config/arc/arc.h (FRAME_POINTER_REQUIRED): Remove macro.
11676
11677 * config/arm/arm.h (FRAME_POINTER_REQUIRED): Remove macro.
11678 * config/arm/arm.c (TARGET_FRAME_POINTER_REQUIRED): Define.
11679 (arm_frame_pointer_required): New function.
11680
11681 * config/avr/avr.h (FRAME_POINTER_REQUIRED): Remove macro.
11682 * config/avr/avr.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
11683 (avr_frame_pointer_required_p): Declare as static.
11684 * config/avr/avr-protos.h (avr_frame_pointer_required_p): Remove.
11685
11686 * config/bfin/bfin.h (FRAME_POINTER_REQUIRED): Remove macro.
11687 * config/bfin/bfin.c (TARGET_FRAME_POINTER_REQUIRED): Define.
11688 (bfin_frame_pointer_required): Make as static, change return type
11689 to bool.
11690 * config/bfin/bfin-protos.h (bfin_frame_pointer_required): Remove.
11691
11692 * config/cris/cris.h (FRAME_POINTER_REQUIRED): Remove macro.
11693 * config/cris/cris.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
11694 (cris_frame_pointer_required): New function.
11695
11696 * config/crx/crx.h (FRAME_POINTER_REQUIRED): Remove macro.
11697
11698 * config/fr30/fr30.h (FRAME_POINTER_REQUIRED): Remove macro.
11699 * config/fr30/fr30.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
11700 (fr30_frame_pointer_required): New function.
11701
11702 * config/frv/frv.h (FRAME_POINTER_REQUIRED): Remove macro.
11703 * config/frv/frv.c (TARGET_FRAME_POINTER_REQUIRED): Define.
11704 (frv_frame_pointer_required): Make as static, change return type
11705 to bool.
11706 * config/bfin/bfin-protos.h (frv_frame_pointer_required): Remove.
11707
11708 * config/i386/i386.h (FRAME_POINTER_REQUIRED): Remove macro.
11709 * config/i386/i386.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
11710 (ix86_frame_pointer_required): Make as static, change return type to
11711 bool.
11712 * config/i386/i386-protos.h (ix86_frame_pointer_required): Remove.
11713
11714 * config/m32c/m32c.h (FRAME_POINTER_REQUIRED): Remove macro.
11715 * config/m32c/m32c.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
11716
11717 * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Remove macro.
11718
11719 * config/mcore/mcore.h (CAN_ELIMINATE): Remove macro.
11720
11721 * config/mep/mep.h (FRAME_POINTER_REQUIRED): Remove macro.
11722
11723 * config/mips/mips.h (FRAME_POINTER_REQUIRED): Remove macro.
11724 * config/mips/mips.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
11725 (mips_frame_pointer_required): Make as static.
11726 * config/mips/mips-protos.h (mips_frame_pointer_required): Remove.
11727
11728 * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Remove macro.
11729 * config/mmix/mmix.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
11730 (mmix_frame_pointer_required): Mew function.
11731
11732 * config/moxie/moxie.h (FRAME_POINTER_REQUIRED): Remove macro.
11733 * config/moxie/moxie.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
11734
11735 * config/pa/pa.h (FRAME_POINTER_REQUIRED): Remove macro.
11736
11737 * config/score/score.h (FRAME_POINTER_REQUIRED): Remove macro.
11738
11739 * config/sh/sh.h (CAN_ELIMINATE): Remove macro.
11740
11741 * config/sparc/sparc.h (FRAME_POINTER_REQUIRED): Remove macro.
11742 (CAN_ELIMINATE): Redefine.
11743 * config/sparc/sparc.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
11744 (sparc_frame_pointer_required): New function.
11745 (sparc_can_eliminate): New function.
11746 * config/sparc/sparc-protos.h (sparc_can_eliminate): Declare.
11747
11748 * config/vax/vax.h (FRAME_POINTER_REQUIRED): Remove macro.
11749 * config/vax/vax.c (TARGET_FRAME_POINTER_REQUIRED): Define.
11750
11751 * config/xtensa/xtensa.h (FRAME_POINTER_REQUIRED): Remove macro.
11752 * config/xtensa/xtensa.c (TARGET_FRAME_POINTER_REQUIRED): Define.
11753 (xtensa_frame_pointer_required): Make as static, change return type
11754 to bool.
11755 * config/xtensa/xtensa-protos.h (xtensa_frame_pointer_required):
11756 Remove.
11757
11758 2009-06-29 Olatunji Ruwase <tjruwase@google.com>
11759
11760 * doc/plugins.texi: Document PLUGIN_START_UNIT.
11761 * toplev.c (compile_file): Call PLUGIN_START_UNIT.
11762 * gcc-plugin.h (PLUGIN_START_UNIT): Added new event.
11763 * plugin.c (plugin_event_name): Added PLUGIN_START_UNIT.
11764 (register_callback): Handle PLUGIN_START_UNIT.
11765 (invoke_plugin_callbacks): Handle PLUGIN_START_UNIT.
11766
11767 2009-06-29 Eric Botcazou <ebotcazou@adacore.com>
11768
11769 * tree.c (process_call_operands): Propagate TREE_READONLY from the
11770 operands.
11771 (PROCESS_ARG): Do not clear TREE_READONLY if CONSTANT_CLASS_P.
11772 (build3_stat): Propagate TREE_READONLY for COND_EXPR.
11773
11774 2009-06-29 Daniel Jacobowitz <dan@codesourcery.com>
11775
11776 * config/arm/arm.h (REGISTER_MOVE_COST): Increase VFP register
11777 move cost.
11778
11779 2009-06-29 Uros Bizjak <ubizjak@gmail.com>
11780
11781 * doc/extend.texi (Additional Floating Types): __float128 is also
11782 supported on i386 targets.
11783
11784 2009-06-29 Richard Guenther <rguenther@suse.de>
11785
11786 PR middle-end/14187
11787 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
11788 flag.
11789 (pt_solutions_same_restrict_base): Declare.
11790 * tree-ssa-structalias.c (struct variable_info): Add is_restrict_var
11791 flag.
11792 (new_var_info): Initialize is_global_var properly for SSA_NAMEs.
11793 (make_constraint_from, make_copy_constraint): Move earlier.
11794 (make_constraint_from_heapvar): New function.
11795 (make_constraint_from_restrict): Likewise.
11796 (handle_lhs_call): Use it.
11797 (find_func_aliases): Use it to track conversions to restrict
11798 qualified pointers.
11799 (struct fieldoff): Add only_restrict_pointers flag.
11800 (push_fields_onto_fieldstack): Initialize it.
11801 (create_variable_info_for): Track global restrict qualified pointers.
11802 (intra_create_variable_infos): Use make_constraint_from_heapvar.
11803 Track restrict qualified pointer arguments.
11804 (set_uids_in_ptset): Use varinfo is_global_var flag.
11805 (find_what_var_points_to): Set the vars_contains_restrict flag.
11806 Always create the points-to solution for sets including restrict tags.
11807 (pt_solutions_same_restrict_base): New function.
11808 * tree-ssa-alias.c (ptr_derefs_may_alias_p): For two restrict
11809 qualified pointers use pt_solutions_same_restrict_base as
11810 additional source for disambiguation.
11811
11812 2009-06-29 Richard Guenther <rguenther@suse.de>
11813
11814 PR middle-end/38212
11815 * alias.c (find_base_decl): Remove.
11816 (get_deref_alias_set_1): Remove restrict handling.
11817 * c-common.c (c_apply_type_quals_to_decl): Do not set
11818 DECL_POINTER_ALIAS_SET.
11819 * gimplify.c (find_single_pointer_decl_1): Remove.
11820 (find_single_pointer_decl): Likewise.
11821 (internal_get_tmp_var): Remove restrict handling.
11822 (gimple_regimplify_operands): Likewise.
11823 * omp-low.c (expand_omp_atomic_pipeline): Do not set
11824 DECL_POINTER_ALIAS_SET. Use ref-all pointers.
11825 * print-tree.c (print_node): Do not print DECL_POINTER_ALIAS_SET.
11826 * tree.c (restrict_base_for_decl): Remove.
11827 (init_ttree): Do not allocate it.
11828 (make_node_stat): Do not set DECL_POINTER_ALIAS_SET. Set
11829 LABEL_DECL_UID for label decls.
11830 (copy_node_stat): Do not copy restrict information.
11831 (decl_restrict_base_lookup): Remove.
11832 (decl_restrict_base_insert): Likewise.
11833 (print_restrict_base_statistics): Likewise.
11834 (dump_tree_statistics): Do not call print_restrict_base_statistics.
11835 * tree.h (DECL_POINTER_ALIAS_SET): Remove.
11836 (DECL_POINTER_ALIAS_SET_KNOWN_P): Likewise.
11837 (struct tree_decl_common): Rename pointer_alias_set to label_decl_uid.
11838 (LABEL_DECL_UID): Adjust.
11839 (DECL_BASED_ON_RESTRICT_P): Remove.
11840 (DECL_GET_RESTRICT_BASE): Likewise.
11841 (SET_DECL_RESTRICT_BASE): Likewise.
11842 (struct tree_decl_with_vis): Remove based_on_restrict_p flag.
11843
11844 * config/i386/i386.c (ix86_gimplify_va_arg): Use ref-all pointers
11845 instead of DECL_POINTER_ALIAS_SET.
11846 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
11847 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
11848 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
11849
11850 2009-06-29 Richard Guenther <rguenther@suse.de>
11851
11852 PR tree-optimization/40579
11853 * tree-vrp.c (vrp_evaluate_conditional): Bail out early if
11854 the IL to simplify has constants that overflowed.
11855
11856 2009-06-28 Uros Bizjak <ubizjak@gmail.com>
11857
11858 PR tree-optimization/40550
11859 * tree-vect-generic.c (expand_vector_operations_1): Compute in
11860 vector_compute_type only when the size of vector_compute_type is
11861 less than the size of type.
11862
11863 2009-06-28 Eric Botcazou <ebotcazou@adacore.com>
11864
11865 * fold-const.c (contains_label_1): Fix comments.
11866 (contains_label_p): Do not walk trees multiple time.
11867
11868 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
11869
11870 * config/i386/i386.h (enum ix86_fpcmp_strategy): New.
11871 * config/i386/i386.md (cbranchxf4, cstorexf4, cbranch<MODEF>4,
11872 cstore<MODEF>4, mov<X87MODEF>cc): Change predicate to
11873 ix86_fp_comparison_operator.
11874 (*fp_jcc_1_mixed, *fp_jcc_1_sse, *fp_jcc_1_387, *fp_jcc_2_mixed,
11875 *fp_jcc_2_sse, *fp_jcc_2_387): Delete
11876 (*fp_jcc_3_387, *fp_jcc_4_387, *fp_jcc_5_387, *fp_jcc_6_387,
11877 *fp_jcc_7_387, *fp_jcc_8<MODEF>_387): Eliminate call to
11878 !ix86_use_fcomi_compare, change ix86_fp_jump_nontrivial_p call
11879 to !TARGET_CMOVE, change predicate to ix86_fp_comparison_operator.
11880 (related splits): Change predicate to ix86_fp_comparison_operator.
11881 * config/i386/predicates.md: Use ix86_trivial_fp_comparison_operator
11882 instead of ix86_fp_comparison_codes.
11883 (ix86_trivial_fp_comparison_operator,
11884 ix86_fp_comparison_operator): New.
11885 * config/i386/i386-protos.h (ix86_fp_comparison_strategy): New.
11886 (ix86_expand_compare): Eliminate last two parameters.
11887 (ix86_fp_jump_nontrivial_p): Kill.
11888 * config/i386/i386.c (put_condition_code): Eliminate call to
11889 ix86_fp_comparison_codes and subsequent assertion.
11890 (ix86_fp_comparison_codes): Eliminate.
11891 (ix86_fp_swap_condition): New.
11892 (ix86_fp_comparison_arithmetics_cost, ix86_fp_comparison_fcomi_cost,
11893 ix86_fp_comparison_sahf_cost, ix86_use_fcomi_compare): Consolidate
11894 into ix86_fp_comparison_cost and ix86_fp_comparison_strategy.
11895 (ix86_prepare_fp_compare_args): Use ix86_fp_comparison_strategy
11896 and ix86_fp_swap_condition.
11897 (ix86_expand_fp_compare): Eliminate code for second jump/bypass jump.
11898 Use ix86_fp_comparison_strategy.
11899 (ix86_expand_compare): Likewise. Eliminate last two arguments.
11900 (ix86_fp_jump_nontrivial_p): Eliminate.
11901 (ix86_expand_branch): Treat SFmode/DFmode/XFmode as simple. Adjust
11902 call to ix86_expand_compare.
11903 (ix86_split_fp_branch, ix86_expand_setcc,
11904 ix86_expand_carry_flag_compare, ix86_expand_int_movcc,
11905 ix86_expand_fp_movcc): Eliminate code for second jump/bypass jump.
11906
11907 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
11908
11909 * config/arm/arm.c (arm_final_prescan_ins): Eliminate code
11910 related to jump_clobbers.
11911 * config/arm/arm.md (conds): Remove jump_clob case.
11912 (addsi3_cbranch, addsi3_cbranch_scratch, subsi3_cbranch, two
11913 splits): Change comparison_operator to arm_comparison_operator.
11914 (*arm_buneq, *arm_bltgt, *arm_buneq_reversed, *arm_bltgt_reversed):
11915 Eliminate.
11916
11917 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
11918
11919 * dojump.c (do_compare_rtx_and_jump): Try swapping the
11920 condition for floating point modes.
11921 * expmed.c (emit_store_flag_1): Move here a bigger part
11922 of emit_store_flag.
11923 (emit_store_flag): Try swapping the condition for floating point
11924 modes.
11925 * optabs.c (emit_cmp_and_jump_insns): Cope with constant op0 better.
11926
11927 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
11928
11929 * expr.c (expand_expr_real_1): Just use do_store_flag.
11930 (do_store_flag): Drop support for TRUTH_NOT_EXPR. Use
11931 emit_store_flag_force.
11932 * expmed.c (emit_store_flag_force): Copy here trick
11933 previously in expand_expr_real_1. Try reversing the comparison.
11934 (emit_store_flag_1): Work if target is NULL.
11935 (emit_store_flag): Work if target is NULL, using the result mode
11936 from the comparison. Use split_comparison, restructure final part
11937 to simplify conditionals.
11938
11939 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
11940
11941 * builtins.c (expand_errno_check): Use do_compare_rtx_and_jump.
11942 * dojump.c (do_jump): Change handling of floating-point
11943 ops to use just do_compare_and_jump.
11944 (split_comparison): New.
11945 (do_compare_rtx_and_jump): Add here logic coming previously
11946 in do_jump, using split_comparison.
11947
11948 2009-06-27 H.J. Lu <hongjiu.lu@intel.com>
11949
11950 PR target/40489
11951 * config/ia64/ia64.c (ia64_reorg): Check NULL insn.
11952
11953 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
11954
11955 * tree-ssa-alias.c: Fix unintentional commit.
11956
11957 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
11958
11959 * passes.c (execute_one_pass): Fix unintentional commit.
11960
11961 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
11962
11963 * df-problems.c (df_set_seen, df_unset_seen): Delete.
11964 (df_rd_local_compute, df_md_local_compute): Inline them.
11965
11966 (df_md_scratch): New.
11967 (df_md_alloc, df_md_free): Allocate/free it.
11968 (df_md_local_compute): Only include live registers in init.
11969 (df_md_transfer_function): Prune the in-set computed by
11970 the confluence function, and the gen-set too.
11971
11972 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
11973
11974 PR rtl-optimization/26854
11975 * timevar.def: Remove TV_DF_RU, add TV_DF_MD.
11976 * df-problems.c (df_rd_add_problem): Fix comment.
11977 (df_md_set_bb_info, df_md_free_bb_info, df_md_alloc,
11978 df_md_simulate_artificial_defs_at_top,
11979 df_md_simulate_one_insn, df_md_bb_local_compute_process_def,
11980 df_md_bb_local_compute, df_md_local_compute, df_md_reset,
11981 df_md_transfer_function, df_md_init, df_md_confluence_0,
11982 df_md_confluence_n, df_md_free, df_md_top_dump, df_md_bottom_dump,
11983 problem_MD, df_md_add_problem): New.
11984 * df.h (DF_MD, DF_MD_BB_INFO, struct df_md_bb_info, df_md,
11985 df_md_get_bb_info): New.
11986 (DF_LAST_PROBLEM_PLUS1): Adjust.
11987
11988 * Makefile.in (fwprop.o): Include domwalk.h.
11989 * fwprop.c: Include domwalk.h.
11990 (reg_defs, reg_defs_stack): New.
11991 (bitmap_only_bit_between): Remove.
11992 (process_defs): New.
11993 (process_uses): Use reg_defs and local_md instead of
11994 bitmap_only_bit_between and local_rd.
11995 (single_def_use_enter_block): New, from build_single_def_use_links.
11996 (single_def_use_leave_block): New.
11997 (build_single_def_use_links): Remove code moved to
11998 single_def_use_enter_block, invoke domwalk.
11999 (use_killed_between): Adjust comment.
12000
12001 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
12002
12003 * bitmap.h (bitmap_ior_and_into): New.
12004 * bitmap.c (bitmap_ior_and_into): New.
12005
12006 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
12007
12008 * domwalk.h (struct dom_walk_data): Remove all callbacks except
12009 before_dom_children_before_stmts and after_dom_children_after_stmts.
12010 Rename the two remaining callbacks to just before_dom_children and
12011 after_dom_children. Remove other GIMPLE statement walking bits.
12012 * domwalk.c (walk_dominator_tree): Remove now unsupported features.
12013 * graphite.c: Do not include domwalk.h.
12014 * tree-into-ssa.c (interesting_blocks): New global.
12015 (struct mark_def_sites_global_data): Remove it and names_to_rename.
12016 (mark_def_sites, rewrite_stmt, rewrite_add_phi_arguments,
12017 rewrite_update_stmt, rewrite_update_phi_arguments): Simplify
12018 now that they're not domwalk callbacks.
12019 (rewrite_initialize_block): Rename to...
12020 (rewrite_enter_block): ... this, place after called functions. Test
12021 interesting_blocks, call rewrite_stmt and rewrite_add_phi_arguments.
12022 (rewrite_finalize_block): Rename to...
12023 (rewrite_leave_block): ... this, place after called functions.
12024 (rewrite_update_init_block): Rename to...
12025 (rewrite_update_enter_block): ... this, place after called functions.
12026 Test interesting_blocks, call rewrite_update_stmt and
12027 rewrite_update_phi_arguments.
12028 (rewrite_update_fini_block): Rename to...
12029 (rewrite_leave_block): ... this, place after called functions.
12030 (rewrite_blocks): Remove last argument, simplify initialization of
12031 walk_data.
12032 (mark_def_sites_initialize_block): Rename to...
12033 (mark_def_sites_block): ... this, call mark_def_sites.
12034 (mark_def_sites_blocks): Remove argument, simplify initialization of
12035 walk_data.
12036 (rewrite_into_ssa): Adjust for interesting_blocks_being a global.
12037 (update_ssa): Likewise.
12038 * tree-ssa-dom.c (optimize_stmt): Simplify now that it's not a domwalk
12039 callback.
12040 (tree_ssa_dominator_optimize): Simplify initialization of walk_data.
12041 (dom_opt_initialize_block): Rename to...
12042 (dom_opt_enter_block): ... this, place after called functions. Walk
12043 statements here, inline propagate_to_outgoing_edges.
12044 (dom_opt_finalize_block): Rename to...
12045 (dom_opt_leave_block): ... this, place after called functions.
12046 * tree-ssa-dse.c (dse_optimize_stmt): Simplify now that it's not a
12047 domwalk callback.
12048 (dse_enter_block, dse_record_phi): New.
12049 (dse_record_phis): Delete.
12050 (dse_finalize_block): Rename to...
12051 (dse_leave_block): ... this.
12052 (tree_ssa_dse): Simplify initialization of walk_data.
12053 * tree-ssa-loop-im.c (determine_invariantness, move_computations):
12054 Adjust initialization of walk_data.
12055 * tree-ssa-loop-unswitch.c: Do not include domwalk.h.
12056 * tree-ssa-loop-phiopt.c (get_non_trapping):
12057 Adjust initialization of walk_data.
12058 * tree-ssa-loop-threadedge.c: Do not include domwalk.h.
12059 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Simplify now that
12060 it's not a domwalk callback.
12061 (uncprop_initialize_block): Rename to...
12062 (dse_enter_block): ... this, call uncprop_into_successor_phis.
12063 (dse_finalize_block): Rename to...
12064 (dse_leave_block): ... this.
12065 (tree_ssa_uncprop): Simplify initialization of walk_data.
12066 * Makefile.in: Adjust dependencies.
12067
12068 2009-06-27 Richard Earnshaw <rearnsha@arm.com>
12069
12070 * arm.md (casesi): Fix test for Thumb1.
12071 (thumb1_casesi_internal_pic): Likewise.
12072 (thumb1_casesi_dispatch): Likewise.
12073
12074 2009-06-26 Daniel Gutson <dgutson@codesourcery.com>
12075
12076 * config/arm/arm-cores.def: Added core cortex-m0.
12077 * config/arm/arm-tune.md: Regenerated.
12078 * doc/invoke.texi: Added entry for cpu ARM Cortex-M0.
12079
12080 2009-06-26 DJ Delorie <dj@redhat.com>
12081
12082 * config/mep/mep.opt (mfar): Remove -mfar as it doesn't do anything.
12083
12084 * config/mep/mep.c (mep_bundle_insns): Account for the fact that
12085 the scheduler doesn't tag jump insns.
12086
12087 2009-06-26 H.J. Lu <hongjiu.lu@intel.com>
12088
12089 * c-decl.c (merge_decls): Re-indent.
12090
12091 2009-06-26 Janis Johnson <janis187@us.ibm.com>
12092
12093 PR c/39902
12094 * tree.c (real_zerop, real_onep, real_twop, real_minus_onep):
12095 Special-case decimal float constants.
12096
12097 2009-06-26 Richard Henderson <rth@redhat.com>
12098
12099 * function.h (struct function): Add cannot_be_copied_reason,
12100 and cannot_be_copied_set.
12101 * tree-inline.c (has_label_address_in_static_1): Rename from
12102 inline_forbidden_p_2; don't set inline_forbidden_reason here.
12103 (cannot_copy_type_1): Rename from inline_forbidden_p_op; likewise
12104 don't set inline_forbidden_reason.
12105 (copy_forbidden): New function, split out of inline_forbidden_p.
12106 (inline_forbidden_p_stmt): Don't check for nonlocal labels here.
12107 (inline_forbidden_p): Use copy_forbidden.
12108 (tree_versionable_function_p): Likewise.
12109 (inlinable_function_p): Merge into tree_inlinable_function_p.
12110 (tree_function_versioning): Remap cfun->nonlocal_goto_save_area.
12111 * ipa-cp.c (ipcp_versionable_function_p): New function.
12112 (ipcp_cloning_candidate_p): Use it.
12113 (ipcp_node_modifiable_p): Likewise.
12114
12115 2009-06-26 Olatunji Ruwase <tjruwase@google.com>
12116
12117 * builtins.c (expand_builtin_alloca): Handle builtin alloca
12118 that is marked not to be inlined. Remove flag_mudflap use.
12119 * tree-mudflap.c: Rename mf_xform_derefs to mf_xfrom_statements.
12120 (mf_xform_statements): Mark builtin alloca calls as un-inlineable.
12121
12122 2009-06-26 Steve Ellcey <sje@cup.hp.com>
12123
12124 PR bootstrap/40338
12125 * config/pa/t-pa-hpux10 (TARGET_LIBGCC2_CFLAGS): Add -frandom-seed.
12126 * config/pa/t-pa-hpux11 (TARGET_LIBGCC2_CFLAGS): Ditto.
12127
12128 2009-06-26 Kai Tietz <kai.tietz@onevision.com>
12129
12130 * config/i386/mingw-tls.c (__mingwthr_key_dtor): Remove for none
12131 shared libgcc.
12132 (__mingwthr_remove_key_dtor): Likewise.
12133
12134 2009-06-26 Richard Guenther <rguenther@suse.de>
12135
12136 * tree-ssa-structalias.c (do_ds_constraint): Simplify escape handling.
12137
12138 2009-06-26 Steven Bosscher <steven@gcc.gnu.org>
12139
12140 PR middle-end/40525
12141 * ifcvt.c (dead_or_predicable): If predicating MERGE_BB fails,
12142 try the non-cond_exec path also.
12143
12144 2009-06-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12145
12146 PR target/40468
12147 * pa.c (branch_to_delay_slot_p, branch_needs_nop_p): New functions.
12148 (output_cbranch): Use new functions.
12149 (output_lbranch, output_bb, output_bvb, output_dbra, output_movb):
12150 Likewise.
12151
12152 2009-06-25 Michael Meissner <meissner@linux.vnet.ibm.com>
12153 Pat Haugen <pthaugen@us.ibm.com>
12154 Revital Eres <ERES@il.ibm.com>
12155
12156 * config/rs6000/rs6000.c (print_operand): Correct lossage message
12157 for %c error. Add %x support to print VSX registers as a unified
12158 register set, instead of separate float and altivec registers.
12159 Switch to use VECTOR_MEM_ALTIVEC_P instead of TARGET_ALTIVEC for
12160 %y case, and add support for VSX pre-modify addresses.
12161 (output_toc): Add assert for CONST containing an integer constant
12162 in the PLUS case.
12163 (rs6000_adjust_cost): Add POWER7 support.
12164 (insn_must_be_first_in_group): Ditto.
12165 (insn_must_be_last_in_group): Ditto.
12166 (rs6000_emit_popcount): Ditto.
12167 (rs6000_vector_mode_supported_p): Ditto.
12168
12169 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_class):
12170 Change some of the functions called by macros to being called
12171 through a pointer, so debug functions can be inserted if
12172 -mdebug=addr or -mdebug=cost.
12173 (rs6000_preferred_reload_class_ptr): Ditto.
12174 (rs6000_secondary_reload_class_ptr): Ditto.
12175 (rs6000_secondary_memory_needed_ptr): Ditto.
12176 (rs6000_cannot_change_mode_class_ptr): Ditto.
12177 (rs6000_secondary_reload_inner): Ditto.
12178 (rs6000_legitimize_reload_address): Ditto.
12179 (rs6000_legitimize_reload_address_ptr): Ditto.
12180 (rs6000_mode_dependent_address): Ditto.
12181 (rs6000_mode_dependent_address_ptr): Ditto.
12182
12183 * config/rs6000/rs6000.c (reg_offset_addressing_ok_p): New
12184 function to return true if the mode allows reg + integer
12185 addresses.
12186 (virtual_stack_registers_memory_p): New function to return true if
12187 the address refers to a virtual stack register.
12188 (rs6000_legitimate_offset_address_p): Move code to say whether a
12189 mode supports reg+int addressing to reg_offset_addressing_ok_p and
12190 call it.
12191 (rs6000_legitimate_address_p): Add checks for modes that only can
12192 do reg+reg addressing. Start adding VSX support.
12193 (rs6000_legitimize_reload_address): Ditto.
12194 (rs6000_legitimize_address): Ditto.
12195 (rs6000_debug_legitimate_address_p): New debug functions for
12196 -mdebug=addr and -mdebug=cost.
12197 (rs6000_debug_rtx_costs): Ditto.
12198 (rs6000_debug_address_costs): Ditto.
12199 (rs6000_debug_adjust_cost): Ditto.
12200 (rs6000_debug_legitimize_address): Ditto.
12201 (rs6000_legitimize_reload_address_ptr): Point to call normal
12202 function or debug function. Make functions called via pointer
12203 static.
12204 (rs6000_mode_dependent_address_ptr): Ditto.
12205 (rs6000_secondary_reload_class_ptr): Ditto.
12206 (rs6000_hard_regno_mode_ok): Add preliminary VSX support.
12207 (rs6000_emit_move): Add -mdebug=addr support. Change an abort
12208 into a friendlier error.
12209 (rs6000_init_builtins): Add initial VSX support.
12210 (rs6000_adjust_cost): Fix some spacing issues.
12211
12212 * config/rs6000/rs6000.h (enum reg_class): Add VSX_REGS.
12213 (REG_CLASS_NAMES): Ditto.
12214 (REG_CLASS_CONTENTS): Ditto.
12215 (PREFERRED_RELOAD_CLASS): Move from a macro to calling through a
12216 pointer, to add -mdebug=addr support.
12217 (CANNOT_CHANGE_MODE_CLASS): Ditto.
12218 (SECONDARY_RELOAD_CLASS): Call through a pointer to add
12219 -mdebug=addr support.
12220 (LEGITIMIZE_RELOAD_ADDRESS): Ditto.
12221 (GO_IF_MODE_DEPENDENT_ADDRESS): Ditto.
12222 (enum rs6000_builtins): Add RS6000_BUILTIN_BSWAP_HI.
12223
12224 * config/rs6000/rs6000.md (bswaphi*): Add support for swapping
12225 16-bit values.
12226 (bswapsi*): Set attribute types for load/store. Add combiner
12227 patterns to eliminate zero extend on 64-bit.
12228 (bswapdi*): Add support for swapping 64-bit values. Use ldbrx and
12229 stdbrx if the hardware supports those instructions.
12230
12231 2009-06-25 Ian Lance Taylor <iant@google.com>
12232
12233 * doc/invoke.texi (Option Summary): Mention -static-libstdc++.
12234 (Link Options): Document -static-libstdc++.
12235
12236 2009-06-25 Andrew Pinski <andrew_pinski@playstation.sony.com>
12237
12238 PR target/38731
12239 * config/rs6000/rs6000.c (LOCAL_ALIGNMENT): Redefine to just use
12240 DATA_ALIGNMENT instead.
12241
12242 2009-06-25 Richard Guenther <rguenther@suse.de>
12243
12244 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Disambiguate
12245 indirect references against the callused/escaped solutions.
12246 (call_may_clobber_ref_p_1): Likewise.
12247
12248 2009-06-25 Martin Jambor <mjambor@suse.cz>
12249
12250 PR tree-optimization/40493
12251 * tree-sra.c (sra_modify_expr): Correct BIT_FIELD_REF argument numbers.
12252 (enum unscalarized_data_handling): New type.
12253 (handle_unscalarized_data_in_subtree): Return what has been done.
12254 (load_assign_lhs_subreplacements): Handle left flushes differently.
12255 (sra_modify_assign): Use unscalarized_data_handling, simplified
12256 condition determining whether to remove the statement.
12257
12258 2009-06-25 Basile Starynkevitch <basile@starynkevitch.net>
12259
12260 * doc/plugins.texi (Building GCC plugins): Correct typo in Makefile
12261 excerpt - @ should be doubled for texinfo.
12262
12263 2009-06-24 Ian Lance Taylor <iant@google.com>
12264
12265 * config/arc/arc.c: Include "df.h".
12266 (arc_attribute_table): Make static. Move higher in file.
12267 (arc_address_cost): Call SMALL_INT on INTVAL, not rtx.
12268 (output_shift): Initialize n later to avoid warning.
12269 * config/arm/arm.c (arm_attribute_table): Make static. Move
12270 higher in file.
12271 * config/avr/avr.c (avr_attribute_table): Make static. Move
12272 higher in file.
12273 (reg_class_tab): Change array type from int to enum reg_class.
12274 (avr_jump_mode): Change GET_MODE to GET_CODE when checking for
12275 LABEL_REF.
12276 (out_tsthi, ashlhi3_out): Don't use AS2 with "or" or "and".
12277 (lshrhi3_out): Likewise.
12278 (class_likely_spilled_p): Change return type to bool.
12279 (avr_rtx_costs): Use local code variable with enum type.
12280 * config/avr/avr.md (movmemhi): Use add_reg_note.
12281 (andhi3, andsi3): Don't use AS2 with "and".
12282 (iorhi3, iorsi3): Don't use AS2 with "or".
12283 * config/avr/avr-protos.h (class_likely_spilled_p): Update declaration.
12284 * config/crx/crx.c: Include "df.h".
12285 (crx_attribute_table): Make static.
12286 * config/m32r/m32r.c: Include "df.h".
12287 (m32r_attribute_table): Make static. Move higher in file.
12288 (pop): Use add_reg_note.
12289 (block_move_call): Change 0 to LCT_NORMAL in function call.
12290 * config/m32r/m32r.md (movsi_insn): Remove unused local value.
12291 * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Likewise.
12292 * config/m32r/m32r-protos.h (m32r_compute_function_type): Always
12293 declare, not just when TREE_CODE is defined.
12294 * config/m68hc11/m68hc11.c: Include "expr.h".
12295 (m68hc11_attribute_table): Make static. Move higher in file.
12296 (m68hc11_small_indexed_indirect_p): Change 0 to VOIDmode in
12297 function call.
12298 (m68hc11_register_indirect_p): Likewise.
12299 (m68hc11_function_arg_padding): Change return type to enum
12300 direction.
12301 (emit_move_after_reload): Use add_reg_note.
12302 (m68hc11_emit_logical): Change code parameter to enum rtx_code.
12303 (m68hc11_split_logical): Likewise.
12304 (m68hc11_rtx_costs): Add local code_and outer_code variables with
12305 enum type.
12306 * config/m68hc11/predicates.md (reg_or_some_mem_operand): Change 0
12307 to VOIDmode in function call.
12308 * config/m68hc11/m68hc11-protos.h: Don't check TREE_CODE to see if
12309 tree is defined.
12310 (m68hc11_split_logical): Update declaration.
12311 (m68hc11_function_arg_padding): Update declaration.
12312 * config/mcore/mcore.c (regno_reg_class): Change form array of int
12313 to array of enum reg_class.
12314 (mcore_attribute_table): Make static. Move higher in file.
12315 (mcore_rtx_costs): Add cast to enum type.
12316 * config/mcore/mcore.h (regno_reg_class): Update declaration.
12317 (GO_IF_LEGITIMATE_INDEX): Add cast to avoid warning.
12318 * config/sh/sh.c (sh_attribute_table): Make static. Move higher
12319 in file.
12320 * config/sh/predicates.md (trapping_target_operand): Rename and to
12321 and_expr.
12322 * config/sparc/sparc.c (sparc_attribute_table): Make static. Move
12323 higher in file.
12324 * config/spu/spu.c (spu_attribute_table): Make static. Move
12325 higher in file.
12326 * config/v850/v850.c (v850_attribute_table): Make static. Move
12327 higher in file.
12328 (v850_rtx_costs): Use local code with enum type.
12329 (expand_epilogue): Add cast.
12330 * config/v850/v850-c.c (ghs_pragma_section): Initialize repeat.
12331
12332 2009-06-23 Takashi YOSHII <yoshii.takashi@renesas.com>
12333
12334 PR target/40515
12335 * doc/invoke.texi (SH Options): Document -m2a, -m2a-single,
12336 -m2a-single-only and -m2a-nofpu.
12337 * config/sh/sh.opt: Document m2a generates FPU code.
12338
12339 2009-06-24 Anatoly Sokolov <aesok@post.ru>
12340
12341 * defaults.h (CAN_ELIMINATE): Provide default.
12342 * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
12343 * config/alpha/alpha.h (CAN_ELIMINATE): Delete.
12344 * config/m32c/m32c.h (CAN_ELIMINATE): Delete.
12345 * config/spu/spu.h (CAN_ELIMINATE): Delete.
12346 * config/xtensa/xtensa.h (CAN_ELIMINATE): Delete.
12347 * config/moxie/moxie.h (CAN_ELIMINATE): Delete.
12348 * config/cris/cris.h (CAN_ELIMINATE): Delete.
12349 * config/mn10300/mn10300.h (CAN_ELIMINATE): Delete.
12350 * config/pa/pa64-linux.h (CAN_ELIMINATE): Delete.
12351 * config/mmix/mmix.h (CAN_ELIMINATE): Delete.
12352
12353 2009-06-24 DJ Delorie <dj@redhat.com>
12354
12355 * mep-ext-cop.cpu: Fix copyright notice.
12356 * mep-default: Fix copyright notice.
12357 * mep-core: Fix copyright notice.
12358 * mep: Fix copyright notice.
12359 * mep-ivc2: Fix copyright notice.
12360 * mep-c5: Fix copyright notice.
12361
12362 2009-06-24 Denis Chertykov <chertykov@gmail.com>
12363
12364 * doc/contrib.texi (Contributors):
12365
12366 2009-06-24 Andreas Krebbel <krebbel1@de.ibm.com>
12367
12368 PR middle-end/40501
12369 * tree-ssa-math-opts.c (execute_optimize_bswap): Convert the bswap
12370 src and dst operands if necessary.
12371
12372 2009-06-23 DJ Delorie <dj@redhat.com>
12373
12374 Add MeP port.
12375 * config.gcc: Add mep support.
12376 * recog.c: Resurrect validate_replace_rtx_subexp().
12377 * recog.h: Likewise.
12378 * config/mep/: Add new port:
12379 * config/mep/constraints.md: New file.
12380 * config/mep/default.h: New file.
12381 * config/mep/intrinsics.h: New file.
12382 * config/mep/intrinsics.md: New file.
12383 * config/mep/ivc2-template.h: New file.
12384 * config/mep/mep-c5.cpu: New file.
12385 * config/mep/mep-core.cpu: New file.
12386 * config/mep/mep-default.cpu: New file.
12387 * config/mep/mep-ext-cop.cpu: New file.
12388 * config/mep/mep-intrin.h: New file.
12389 * config/mep/mep-ivc2.cpu: New file.
12390 * config/mep/mep-lib1.asm: New file.
12391 * config/mep/mep-lib2.c: New file.
12392 * config/mep/mep-pragma.c: New file.
12393 * config/mep/mep-protos.h: New file.
12394 * config/mep/mep-tramp.c: New file.
12395 * config/mep/mep.c: New file.
12396 * config/mep/mep.cpu: New file.
12397 * config/mep/mep.h: New file.
12398 * config/mep/mep.md: New file.
12399 * config/mep/mep.opt: New file.
12400 * config/mep/predicates.md: New file.
12401 * config/mep/t-mep: New file.
12402
12403 2009-06-23 Ian Lance Taylor <iant@google.com>
12404
12405 * configure.ac: Invoke AC_PROG_CXX. Separate C specific warnings
12406 from loose_warn into c_loose_warn and from strict_warn into
12407 c_strict_warn. Set and substitute warn_cxxflags. Check for
12408 --enable-build-with-cxx. Set and substitute
12409 ENABLE_BUILD_WITH_CXX. Set and substitute HOST_LIBS.
12410 * Makefile.in (CXXFLAGS): New variable.
12411 (C_LOOSE_WARN, C_STRICT_WARN): New variables.
12412 (GCC_WARN_CFLAGS): Add $(C_LOOSE_WARN). Add $(C_STRICT_WARN) if
12413 the default is the same as $(STRICT_WARN).
12414 (GCC_WARN_CXXFLAGS, WARN_CXXFLAGS): New variables.
12415 (CXX): New variable.
12416 (COMPILER): New value if ENABLE_BUILD_WITH_CXX.
12417 (COMPILER_FLAGS, LINKER, LINKER_FLAGS): Likewise.
12418 (ALL_COMPILERFLAGS, ALL_LINKERFLAGS): Likewise.
12419 (HOST_LIBS): New variable.
12420 (GCC_CFLAGS): Add $(C_LOOSE_WARN).
12421 (ALL_CXXFLAGS): New variable.
12422 (LIBS, BACKENDLIBS): Add $(HOST_LIBS).
12423 * doc/install.texi (Configuration): Document
12424 --enable-build-with-cxx, --with-stage1-ldflags,
12425 --with-stage1-libs, --with-boot-ldflags, --with-boot-libs.
12426 * configure: Rebuild.
12427
12428 2009-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12429
12430 * config/arm/arm.c (arm_override_options): Fix braces and formatting
12431 from previous commit.
12432
12433 2009-06-23 Ian Lance Taylor <iant@google.com>
12434
12435 * Makefile.in ($(out_object_file)): Depend upon $(DF_H).
12436
12437 2009-06-23 Ian Lance Taylor <iant@google.com>
12438
12439 * reload.c (alternative_allows_const_pool_ref): Mark mem parameter
12440 with ATTRIBUTE_UNUSED.
12441
12442 2009-06-23 Michael Meissner <meissner@linux.vnet.ibm.com>
12443 Pat Haugen <pthaugen@us.ibm.com>
12444 Revital Eres <eres@il.ibm.com>
12445
12446 * config.in (HAVE_AS_POPCNTD): Add default definition.
12447 (HAVE_AS_LWSYNC): Ditto.
12448
12449 * configure.ac (gcc_cv_as_powerpc_mfpgpr): Provide real binutils
12450 release number.
12451 (gcc_cv_as_powerpc_cmpb): Ditto.
12452 (gcc_cv_as_powerpc_dfp): Ditto.
12453 (gcc_cv_as_powerpc_vsx): Ditto.
12454 (gcc_cv_as_powerpc_popcntd): Add feature test for assembler
12455 supporting the popcntd/lwsync instructions.
12456 (gcc_cv_as_powerpc_lwsync): Ditto.
12457 * configure: Regenerate.
12458
12459 * config/rs6000/aix53.h (ASM_CPU_SPEC): Add support for
12460 -mcpu=native and -mcpu=power7.
12461 * config/rs6000/aix61.h (ASM_CPU_SPEC): Ditto.
12462
12463 * config/rs6000/linux64.opt (-mprofile-kernel): Move switch to be
12464 a variable instead of a mask to reduce the number of mask bits.
12465 * config/rs6000/sysv4.opt (-mbit-align): Ditto.
12466 (-mbit-word): Ditto.
12467 (-mregnames): Ditto.
12468 * config/rs6000/rs6000.opt (-mupdate): Ditto.
12469 (-mfused-madd): Ditto.
12470
12471 * config/rs6000/rs6000.opt (-mpopcntd): New switch for non-VSX ISA
12472 2.06 instructions.
12473 (-mvsx): New switch for VSX instructions.
12474 (-misel): Move from a variable to a mask to allow it to be set by
12475 -mcpu=.
12476
12477 * config/rs6000/rs6000-protos.h (rs6000_hard_regno_nregs): Change
12478 function declaration to an array declaration.
12479 (rs6000_hard_regno_nregs): New external array declaration.
12480
12481 * config/rs6000/t-rs6000 (MD_INCLUDES): Define, add all of the .md
12482 files included by rs6000.md.
12483
12484 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
12485 SET_PROFILE_KERNEL macro to reset the -mprofile-kernel switch.
12486
12487 * config/rs6000/rs6000.c (rs6000_isel): Delete, -misel moved to be
12488 a target mask.
12489 (rs6000_debug_reg): New -mdebug= variables.
12490 (rs6000_debug_addr): Ditto.
12491 (rs6000_debug_cost): Ditto.
12492 (rs6000_pmode): New variable to hold Pmode.
12493 (rs6000_pointer_size): New variable to hold POINTER_SIZE.
12494 (rs6000_class_max_nregs): New array to hold CLASS_MAX_NREGS
12495 calculated at compiler start.
12496 (rs6000_hard_regno_nregs): Change function to an array which holds
12497 HARD_REGNO_NREGS calculated at compiler start.
12498 (rs6000_explicit_options): Delete isel field.
12499 (rs6000_vector_unit): New array to hold which vector unit
12500 supports arithmetic options for a given type.
12501 (rs6000_vector_mem): New array to hold which vector unit supports
12502 memory reference operations for a given type.
12503 (rs6000_vector_align): New array to given the alignment of each
12504 vector type.
12505 (power7_cost): New basic costs for power7.
12506 (SET_PROFILE_KERNEL): New macro for resetting -mprofile-kernel.
12507 (rs6000_hard_regno_nregs_internal): New function, moved from
12508 HARD_REGNO_NREGS, to calculate the number of registers each hard
12509 register takes for each type.
12510 (rs6000_debug_reg_print): New function for -mdebug=reg support.
12511 (rs6000_debug_vector_unit): New array, map rs6000_vector to string.
12512 (+rs6000_init_hard_regno_mode_ok): New function, move calculation
12513 of HARD_REGNO_NREGS, CLASS_MAX_NREGS, REGNO_REG_CLASS, and vector
12514 unit information here so it is calculated once at compiler startup
12515 time.
12516 (rs6000_override_options): Make -misel a target mask. Add more
12517 power7 target masks. Setup Pmode and POINTER_SIZE. Add initial
12518 VSX support. Add support for -mdebug=reg, -mdebug=addr, and
12519 -mdebug=cost.
12520 (POWERPC_MASKS): Add MASK_POPCNTD, MASK_VSX, and MASK_ISEL.
12521 (rs6000_handle_option): Move -misel from variable to target mask.
12522 (rs6000_builtin_mask_for_load): Add VSX support.
12523 (rs6000_conditional_register_usage): Ditto.
12524 (USE_ALTIVEC_FOR_ARG_P): Ditto.
12525 (function_arg_boundary): Ditto.
12526 (rs6000_expand_builtin): Ditto.
12527 (def_builtin): Make abort message a little friendlier.
12528 (rs6000_emit_int_cmove): Add support for 64-bit isel.
12529
12530 * config/rs6000/rs6000.h (ASM_CPU_POWER7_SPEC): Depend on the
12531 assembler support the popcntd instruction instead of a vsx
12532 instruction to enable power7 support.
12533 (ASM_CPU_SPEC): Add support for -mcpu=native and -mcpu=power7.
12534 (EXTRA_SPECS): Add ASM_CPU_NATIVE_SPEC to allow passing the right
12535 option to the assembler if -mcpu=native.
12536 (ASM_CPU_NATIVE_SPEC): Ditto.
12537 (TARGET_POPCNTD): If assembler doesn't support popcntd, turn off
12538 ISA 2.06 features.
12539 (TARGET_LWSYNC_INSTRUCTION): Define whether it is safe to issue
12540 the lwsync instruction.
12541 (enum processor_type): Add PROCESSOR_POWER7.
12542 (rs6000_debug_reg): New -mdebug= options.
12543 (rs6000_debug_addr): Ditto.
12544 (rs6000_debug_cost): Ditto.
12545 (rs6000_isel): Delete.
12546 (enum rs6000_vector): New enum to say what vector unit we have.
12547 (VECTOR_UNIT_*): New macros to say which vector unit has
12548 arithmetic operations for a given type.
12549 (VECTOR_MEM_*): New macros to say which vector unit has memory
12550 operations for a given type.
12551 (TARGET_LDBRX): Whether the machine supports the ldbrx
12552 instruction.
12553 (TARGET_ISEL): Delete, -misel moved to be a mask.
12554 (TARGET_ISEL64): New macro for 64-bit isel support.
12555 (UNITS_PER_VSX_WORD): New macro.
12556 (POINTER_SIZE): Move to be an external variable, rather than
12557 calculating whether we are generating 32 ot 64-bit code.
12558 (Pmode): Ditto.
12559 (STACK_BOUNDARY): Add VSX support.
12560 (LOCAL_ALIGNMENT): Ditto.
12561 (SLOW_UNALIGNED_ACCESS): Ditto.
12562 (VSX_REGNO_P): New macro for VSX support.
12563 (VFLOAT_REGNO_P): Ditto.
12564 (VINT_REGNO_P): Ditto.
12565 (VLOGICAL_REGNO_P): Ditto.
12566 (VSX_VECTOR_MODE): Ditto.
12567 (VSX_SCALAR_MODE): Ditto.
12568 (VSX_MODE): Ditto.
12569 (VSX_MOVE_MODE): Ditto.
12570 (VSX_REG_CLASS_P): Ditto.
12571 (HARD_REGNO_NREGS): Instead of calling a function, use an array
12572 lookup.
12573 (UNITS_PER_SIMD_WORD): Add VSX support.
12574 (MODES_TIEABLE_P): Ditto.
12575 (STARTING_FRAME_OFFSET): Ditto.
12576 (STACK_DYNAMIC_OFFSET): Ditto.
12577 (EPILOGUE_USES): Ditto.
12578 (REGNO_REG_CLASS): Move to array lookup.
12579 (CLASS_MAX_NREGS): Ditto.
12580 (rs6000_vector_reg_class): Add declaration.
12581 (ADDITIONAL_REGISTER_NAMES): Add VSX names for the registers that
12582 overlap with the floating point and Altivec registers.
12583
12584 * config/rs6000/e500.h (CHECK_E500_OPTIONS): Disallow -mvsx.
12585
12586 * config/rs6000/driver-rs6000.c (asm_names): New static array to
12587 give the appropriate asm switches if -mcpu=native.
12588 (host_detect_local_cpu): Add support for "asm".
12589 (host_detect_local_cpu): Follow GNU code guidelines for name.
12590
12591 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Move
12592 -mbit-word to a variable instead of being a target mask.
12593
12594 * config/rs6000/sync.md (lwsync): If the assembler supports it,
12595 emit the lwsync instruction instead of emitting the instruction as
12596 an integer constant.
12597
12598 * config/rs6000/spe.md (spe_fixuns_truncdfsi2): Rename from
12599 fixuns_trundfsi2, move expander into rs6000.md.
12600
12601 * config/rs6000/rs6000.md (cpu): Add power7.
12602 (sel, *ptrsize): New mode attributes for 32/64-bit isel.
12603 (logical predicate patterns): Change the single instruction
12604 primitives that set CR0 to be fast_compare instead of compare.
12605 (norsi*): Ditto.
12606 (popcntwsi2): Add support for ISA 2.06 popcount instructions.
12607 (popcntddi2): Ditto.
12608 (popcount<mode>): Ditto.
12609 (floating multiply/add insns): Name the floating point
12610 multiply/add insns.
12611 (isel_signed_<mode>): Add support for -misel on 64-bit systems.
12612 (isel_unsigned_<mode>): Ditto.
12613 (fixuns_trundfsi2): Move expander here from spe.md.
12614 (smindi3): Define if we have -misel on 64-bit systems.
12615 (smaxdi3): Ditto.
12616 (umindi3): Ditto.
12617 (umaxdi3): Ditto.
12618
12619 2009-06-23 Anatoly Sokolov <aesok@post.ru>
12620
12621 * config.gcc (avr-*-rtems*, avr-*-*): Set extra_gcc_objs and
12622 extra_objs.
12623 * config/avr/avr.c (avr_current_device): New variable.
12624 (avr_arch_types, avr_mcu_types): Move to avr-deveces.c.
12625 (avr_arch, mcu_type_s): Move to avr.h.
12626 * config/avr/avr.h (base_arch_s). Add reserved2, arch_name and
12627 default_data_section_start fields.
12628 (avr_arch): Moved from avr.c.
12629 (mcu_type_s): Moved from avr.c. Add short_sp, data_section_start and
12630 library_name fields.
12631 (avr_current_device, avr_mcu_types, avr_arch_types,
12632 avr_device_to_arch, avr_device_to_data_start,
12633 avr_device_to_startfiles, avr_device_to_devicelib): Declare.
12634 (EXTRA_SPEC_FUNCTIONS): Define.
12635 (LINK_SPEC): Remove device name to '-m ...' and '-Tdata ...' linker
12636 options mapping. Use device_to_arch and device_to_data_start insted.
12637 (STARTFILE_SPEC): Use device_to_startfile instead of crt_binutils.
12638 (CRT_BINUTILS_SPECS, EXTRA_SPECS): Remove.
12639 * config/avr/t-avr (driver-avr.o, avr-devices.o): New rules.
12640 * config/avr/driver-avr.c: New file.
12641 * config/avr/avr-devices.c: New file.
12642
12643 2009-06-23 Jakub Jelinek <jakub@redhat.com>
12644
12645 * var-tracking.c (unshare_variable): Force initialized to
12646 be VAR_INIT_STATUS_INITIALIZED unless flag_var_tracking_uninit.
12647 (set_variable_part): Likewise.
12648 (struct variable_union_info): Remove pos_src field.
12649 (vui_vec, vui_allocated): New variables.
12650 (variable_union): Pass VAR_INIT_STATUS_UNKNOWN to unshare_variable
12651 unconditionally. Avoid XCVECNEW/free for every sorting, for dst_l
12652 == 1 use a simpler sorting algorithm. Compute pos field right
12653 away, don't fill in pos_src. For dst_l == 2 avoid qsort.
12654 Avoid quadratic comparison if !flag_var_tracking_uninit.
12655 (variable_canonicalize): Pass VAR_INIT_STATUS_UNKNOWN to
12656 unshare_variable unconditionally.
12657 (dataflow_set_different_2): Removed.
12658 (dataflow_set_different): Don't traverse second hash table.
12659 (compute_bb_dataflow): Pass VAR_INIT_STATUS_UNINITIALIZED
12660 unconditionally to var_reg_set or var_mem_set.
12661 (emit_notes_in_bb): Likewise.
12662 (delete_variable_part): Pass VAR_INIT_STATUS_UNKNOWN to
12663 unshare_variable.
12664 (emit_note_insn_var_location): Don't set initialized to
12665 VAR_INIT_STATUS_INITIALIZED early.
12666 (vt_finalize): Free vui_vec if needed, clear vui_vec and
12667 vui_allocated.
12668 * rtl.c (rtx_equal_p): Don't implement on top of rtx_equal_p_cb.
12669
12670 * tree-object-size.c (addr_object_size): Instead of checking
12671 for non-NULL TREE_CHAIN of the FIELD_DECL check that there
12672 are no FIELD_DECLs following it.
12673
12674 2009-06-23 Andreas Krebbel <krebbel1@de.ibm.com>
12675
12676 * tree-ssa-math-opts.c (find_bswap): Increase the search depth in
12677 order to match bswaps with signed source operands.
12678
12679 2009-06-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12680
12681 * sdbout.c (sdbout_one_type): Fix braces in switch.
12682
12683 2009-06-23 Richard Guenther <rguenther@suse.de>
12684
12685 * tree-ssa-structalias.c (struct variable_info): Add is_global_var
12686 member.
12687 (var_anything, anything_tree, var_nothing, nothing_tree, var_readonly,
12688 readonly_tree, var_escaped, escaped_tree, var_nonlocal, nonlocal_tree,
12689 var_callused, callused_tree, var_storedanything, storedanything_tree,
12690 var_integer, integer_tree): Remove global variables.
12691 (new_var_info): Do not pass new id, append the new var to the
12692 global variable vector.
12693 (do_ds_constraint): Use is_global_var member of the variable-info.
12694 (new_scalar_tmp_constraint_exp): Adjust.
12695 (create_function_info_for): Likewise.
12696 (create_variable_info_for): Likewise.
12697 (find_what_var_points_to): Remove dead code.
12698 (init_base_vars): Simplify.
12699 (compute_points_to_sets): Adjust.
12700
12701 2009-06-22 Adam Nemet <anemet@caviumnetworks.com>
12702
12703 * combine.c (try_combine): Dump information about the insns we're
12704 combining.
12705
12706 2009-06-22 Adam Nemet <anemet@caviumnetworks.com>
12707
12708 * combine.c (combine_simplify_rtx): Remove TRULY_NOOP_TRUNCATION
12709 check when calling force_to_mode on TRUNCATE's operand.
12710
12711 2009-06-22 Ian Lance Taylor <iant@google.com>
12712
12713 * config/rs6000/rs6000.opt: Move msched-epilog before msched-prolog.
12714
12715 2009-06-22 Steven Bosscher <steven@gcc.gnu.org>
12716
12717 * config/arm/arm.md (prologue_use): Set length of fake insn to 0.
12718
12719 2009-06-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12720
12721 * doc/invoke.texi (Link Options): -nodefaultlibs and -nostdlib
12722 override library linkage flags such as -static-libgcc or
12723 -shared-libgcc.
12724
12725 2009-06-22 Maxim Kuvyrkov <maxim@codesourcery.com>
12726
12727 * config/m68k/m68k-devices.def: Add line for MCF5221x.
12728
12729 2009-06-22 Ian Lance Taylor <iant@google.com>
12730
12731 * config/linux.opt: Put mglibc ahead of muclibc.
12732
12733 * c-decl.c (diagnose_mismatched_decls): Add -Wc++-compat warning
12734 for duplicate decls.
12735
12736 2009-06-22 Matthias Klose <doko@ubuntu.com>
12737
12738 * Makefile.in (install-plugin): Remove extra `/' after $(DESTDIR).
12739
12740 2009-06-22 Steven Bosscher <steven@gcc.gnu.org>
12741
12742 PR objc/28050
12743 * c-parser.c (c_parser_objc_message_args): Return error_mark_node
12744 instead of NULL if a parser error occurs.
12745
12746 2009-06-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12747
12748 * dwarf2out.c (dwarf2_debug_hooks): Initialize
12749 non-DWARF2_DEBUGGING_INFO version.
12750
12751 2009-06-22 Kai Tietz <kai.tietz@onevision.com>
12752
12753 * config.gcc (i[34567]86-*-mingw*, x86_64-*-mingw*): Add
12754 i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
12755
12756 * config/i386/mingw32.h (LIBGCC2_HAS_TF_MODE): Define.
12757 (LIBGCC2_TF_CEXT): Define.
12758 (TF_SIZE): Define.
12759
12760 2009-06-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12761
12762 PR target/40463
12763 * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Fix definition.
12764
12765 2009-06-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12766
12767 * config/arm/arm.c (arm_override_options): Disable
12768 -mcaller-super-interworking and -mcallee-super-interworking.
12769 * doc/invoke.texi (ARM Options): Document this.
12770
12771 2009-06-22 Nathan Sidwell <nathan@codesourcery.com>
12772
12773 * config/arm/arm.c (arm_print_operand): Deal with HIGH.
12774 * config/arm/constraints.md (j): New constraint for movw operands.
12775 (N): Remove thumb2 meaning.
12776 * config/arm/arm.md (*arm_movw): Delete.
12777 (*arm_movsi_insn): Use j constraint for movw instead of N constraint.
12778 * config/arm/vfp.md (*arm_movsi_vfp, *thumb2_movsi_vfp): Likewise.
12779 * config/arm/thumb2.md (*thumb2_movsi_insn): Likewise.
12780
12781 2009-06-22 Martin Jambor <mjambor@suse.cz>
12782
12783 PR tree-optimization/40492
12784 * tree-sra.c (sra_modify_assign): Pass zero offsets to
12785 build_ref_for_offset.
12786
12787 2009-06-22 Shujing Zhao <pearly.zhao@oracle.com>
12788
12789 * alias.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P, CALL_P, NOTE_P and
12790 JUMP_TABLE_DATA_P predicates where applicable.
12791 * auto-inc-dec.c: Ditto.
12792 * builtins.c: Ditto.
12793 * caller-save.c: Ditto.
12794 * calls.c: Ditto.
12795 * cfgcleanup.c: Ditto.
12796 * cfglayout.c: Ditto.
12797 * cfgrtl.c: Ditto.
12798 * combine.c: Ditto.
12799 * combine-stack-adj.c: Ditto.
12800 * cse.c: Ditto.
12801 * cselib.c: Ditto.
12802 * dbxout.c: Ditto.
12803 * df-scan.c: Ditto.
12804 * dse.c: Ditto.
12805 * dwarf2asm.c: Ditto.
12806 * dwarf2out.c: Ditto.
12807 * emit-rtl.c: Ditto.
12808 * except.c: Ditto.
12809 * explow.c: Ditto.
12810 * expmed.c: Ditto.
12811 * expr.c: Ditto.
12812 * final.c: Ditto.
12813 * function.c: Ditto.
12814 * fwprop.c: Ditto.
12815 * gcse.c: Ditto.
12816 * genpreds.c: Ditto.
12817 * genrecog.c: Ditto.
12818 * ifcvt.c: Ditto.
12819 * ira-costs.c: Ditto.
12820 * ira-lives.c: Ditto.
12821 * jump.c: Ditto.
12822 * loop-iv.c: Ditto.
12823 * lower-subreg.c: Ditto.
12824 * modulo-sched.c: Ditto.
12825 * optabs.c: Ditto.
12826 * postreload.c: Ditto.
12827 * print-rtl.c: Ditto.
12828 * recog.c: Ditto.
12829 * reginfo.c: Ditto.
12830 * regmove.c: Ditto.
12831 * reload1.c: Ditto.
12832 * reload.c: Ditto.
12833 * reorg.c: Ditto.
12834 * rtlanal.c: Ditto.
12835 * rtl.c: Ditto.
12836 * sched-vis.c: Ditto.
12837 * sdbout.c: Ditto.
12838 * sel-sched-ir.c: Ditto.
12839 * simplify-rtx.c: Ditto.
12840 * targhooks.c: Ditto.
12841 * var-tracking.c: Ditto.
12842 * vmsdbgout.c: Ditto.
12843
12844 2009-06-22 Matthias Klose <doko@ubuntu.com>
12845
12846 * Makefile.in (install-plugin): Always use DESTDIR.
12847
12848 2009-06-22 Olivier Hainque <hainque@adacore.com>
12849
12850 * config/pa/pa.c (output_call): Don't optimize post call jumps
12851 into return address adjustments if the call may throw.
12852
12853 2009-06-21 Richard Earnshaw <rearnsha@arm.com>
12854
12855 * arm.c (thumb1_output_casesi): New function.
12856 * arm.h (CASE_VECTOR_PC_RELATIVE): Thumb-1 code is also relative if
12857 optimizing for size or PIC.
12858 (CASE_VECTOR_SHORTEN_MODE): Handle thumb-1.
12859 * arm.md (UNSPEC_THUMB1_CASESI): New constant.
12860 (casesi): Handle Thumb-1 when optimizing for size or PIC.
12861 (thumb1_casesi_internal_pic): New expand rule.
12862 (thumb1_casesi_dispatch): New pattern.
12863 * aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use shortened vectors for
12864 thumb-1 mode.
12865 * coff.h (JUMP_TABLES_IN_TEXT_SECTION): Thumb-1 jump tables are now
12866 in the text seciton when PIC or optimizing for size.
12867 * elf.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
12868 * lib1funcs.asm ([__ARM_EABI__]): Add an attribute describing stack
12869 preservation properties of code.
12870 (__gnu_thumb1_case_sqi, __gnu_thumb1_case_uqi): New functions.
12871 (__gnu_thumb1_case_shi, __gnu_thumb1_case_uhi): New functions.
12872 (__gnu_thumb1_case_si): New function.
12873 * t-arm (LIB1ASMSRC): Define here.
12874 (LIB1ASMFUNCS): Add some common functions.
12875 * t-arm-elf (LIB1ASMSRC): Delete.
12876 (LIB1ASMFUNCS): Append to existing set.
12877 * t-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
12878 * t-strongarm-elf (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
12879 * t-symbian (LIB1ASMFUNCS): Likewise.
12880 * t-vxworks (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
12881 * t-wince-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
12882
12883 2009-06-21 Richard Guenther <rguenther@suse.de>
12884
12885 PR tree-optimization/38729
12886 * tree-ssa-loop-niter.c (find_loop_niter_by_eval): Restrict
12887 to loops with a single exit if -fno-expensive-optimizations.
12888
12889 2009-06-21 Jakub Jelinek <jakub@redhat.com>
12890
12891 * var-tracking.c (struct shared_hash_def, shared_hash): New types.
12892 (dataflow_set): Change vars type from htab_t to shared_hash.
12893 (shared_hash_pool, empty_shared_hash): New variables.
12894 (vars_clear): Removed.
12895 (shared_hash_shared, shared_hash_htab, shared_hash_copy,
12896 shared_hash_find_slot_unshare, shared_hash_find_slot,
12897 shared_hash_find_slot_noinsert, shared_hash_find): New
12898 static inlines.
12899 (shared_hash_unshare, shared_hash_destroy): New functions.
12900 (unshare_variable): Unshare set->vars if shared, use
12901 shared_hash_htab.
12902 (vars_copy): Use htab_traverse_noresize instead of htab_traverse.
12903 (get_init_value, find_src_set_src, dump_dataflow_set,
12904 clobber_variable_part, emit_notes_for_differences): Use
12905 shared_hash_htab.
12906 (dataflow_set_init): Remove second argument, set vars to
12907 empty_shared_hash instead of creating a new htab.
12908 (dataflow_set_clear): Call shared_hash_destroy and set vars
12909 to empty_shared_hash instead of calling vars_clear.
12910 (dataflow_set_copy): Don't call vars_copy, instead just share
12911 the src htab with dst.
12912 (variable_union): Use shared_hash_*, use initially NO_INSERT
12913 lookup if set->vars is shared. Don't keep slot cleared before
12914 calling unshare_variable. Unshare set->vars if needed.
12915 Even ->refcount == 1 vars must be unshared if set->vars is shared
12916 and var needs to be modified.
12917 (variable_canonicalize): New function.
12918 (dataflow_set_union): If dst->vars is empty, just share src->vars
12919 with dst->vars and traverse with variable_canonicalize to canonicalize
12920 and unshare what is needed.
12921 (dataflow_set_different): If old_set and new_set use the same shared
12922 htab, they aren't different. If number of htab elements is different,
12923 htabs are different. Use shared_hash_*.
12924 (dataflow_set_destroy): Call shared_hash_destroy instead of
12925 htab_delete.
12926 (compute_bb_dataflow, emit_notes_in_bb, vt_emit_notes): Don't pass
12927 second argument to dataflow_set_init.
12928 (vt_initialize): Likewise. Initialize shared_hash_pool and
12929 empty_shared_hash, move bb in/out initialization afterwards.
12930 Use variable_htab_free instead of NULL as changed_variables del hook.
12931 (variable_was_changed): Change type of second argument to pointer to
12932 dataflow_set. When inserting var into changed_variables, bump
12933 refcount. Unshare set->vars if set is shared htab and slot needs to
12934 be cleared.
12935 (set_variable_part): Use shared_hash_*, use initially NO_INSERT
12936 lookup if set->vars is shared. Unshare set->vars if needed.
12937 Even ->refcount == 1 vars must be unshared if set->vars is shared
12938 and var needs to be modified. Adjust variable_was_changed caller.
12939 (delete_variable_part): Use shared_hash_*. Even ->refcount == 1
12940 vars must be unshared if set->vars is shared and var needs to be
12941 modified. Adjust variable_was_changed caller.
12942 (emit_note_insn_var_location): Don't pool_free var.
12943 (emit_notes_for_differences_1): Initialize empty_var->refcount to 0
12944 instead of 1.
12945 (vt_finalize): Call htab_delete on empty_shared_hash->htab and
12946 free_alloc_pool on shared_hash_pool.
12947
12948 2009-06-20 Anthony Green <green@moxielogic.com>
12949
12950 * config/moxie/sfp-machine.h (__gcc_CMPtype, CMPtype): Define.
12951 * config/moxie/moxie.h (LOAD_EXTEND_OP): Define.
12952
12953 2009-06-20 Richard Guenther <rguenther@suse.de>
12954
12955 * tree-ssa-structalias.c (find_func_aliases): For memset use
12956 a constraint from NULL if we memset to zero.
12957 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Add builtins
12958 we explicitly handle that do not read from memory.
12959 (call_may_clobber_ref_p_1): Properly handle builtins that may
12960 set errno.
12961
12962 2009-06-20 Richard Guenther <rguenther@suse.de>
12963
12964 PR tree-optimization/40495
12965 * tree-ssa-structalias.c (get_constraint_exp_for_temp): Remove.
12966 (new_scalar_tmp_constraint_exp): New function.
12967 (process_constraint): Do not create temporary decls.
12968 (process_all_all_constraints): Likewise.
12969 (handle_const_call): Likewise.
12970 (create_function_info_for): Do not set decl.
12971
12972 2009-06-19 Ian Lance Taylor <iant@google.com>
12973
12974 * config/rs6000/rs6000.c (rs6000_explicit_options): Make static.
12975 (rs6000_attribute_table): Make static; move before use.
12976
12977 2009-06-19 Eric Botcazou <ebotcazou@adacore.com>
12978
12979 * tree.c (substitute_in_expr) <COMPONENT_REF>: Tweak and reformat.
12980 <tcc_vl_exp>: Call process_call_operands on the new CALL_EXPR.
12981 Propagate the TREE_READONLY flag without overwriting it.
12982 (substitute_placeholder_in_expr) <tcc_vl_exp>: Likewise.
12983 Propagate the TREE_READONLY flag onto the result.
12984 (process_call_operands): Move around. Use correct constant value.
12985
12986 2009-06-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12987
12988 PR target/40482
12989 * config/arm/arm.c (thumb_shiftable_const): Truncate val to 32 bits.
12990 * config/arm/arm.md: Likewise.
12991
12992 2009-06-19 Ian Lance Taylor <iant@google.com>
12993
12994 * tree-cfg.c (gimple_redirect_edge_and_branch): Change ERROR_MARK
12995 to GIMPLE_ERROR_MARK.
12996
12997 * c-typeck.c (build_conditional_expr): Add op1_original_type and
12998 op2_original_type parameters. Warn about using different enum types.
12999 * c-parser.c (c_parser_conditional_expression): Pass original
13000 types to build_conditional_expr.
13001 * c-tree.h (build_conditional_expr): Update declaration.
13002
13003 2009-06-19 Ian Lance Taylor <iant@google.com>
13004
13005 * config/i386/i386.c (ix86_function_specific_save): Test that
13006 fields match values, rather than testing the values are in a
13007 certain range.
13008
13009 2009-06-19 Richard Guenther <rguenther@suse.de>
13010
13011 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
13012 ADDR_EXPR pointers.
13013 (ptr_derefs_may_alias_p): Likewise.
13014 (ptr_deref_may_alias_ref_p_1): New function.
13015 (ptr_deref_may_alias_ref_p): Likewise.
13016 (ref_maybe_used_by_call_p_1): Handle builtins that are not
13017 covered by looking at the ESCAPED solution.
13018 (call_may_clobber_ref_p_1): Likewise.
13019 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
13020 Handle NULL_TREE offset. Do not produce redundant constraints.
13021 (process_all_all_constraints): New helper function.
13022 (do_structure_copy): Use it.
13023 (handle_lhs_call): Likewise.
13024 (find_func_aliases): Handle some builtins with pointer arguments
13025 and/or return values explicitly.
13026
13027 2009-06-19 Ian Lance Taylor <iant@google.com>
13028
13029 * varasm.c (const_rtx_hash_1): Remove const qualifier from shift.
13030
13031 2009-06-19 Ian Lance Taylor <iant@google.com>
13032
13033 * rtl.h (SUBREG_PROMOTED_UNSIGNED_P): Add cast to int.
13034
13035 2009-06-19 Ian Lance Taylor <iant@google.com>
13036
13037 * ggc-page.c (ggc_pch_write_object): Initialize emptyBytes.
13038 * sdbout.c (sdb_debug_hooks): Initialize non-SDB_DEBUGGING_INFO
13039 version.
13040
13041 * c-decl.c (finish_decl): If -Wc++-compat, warn about
13042 uninitialized const.
13043
13044 2009-06-19 Ian Lance Taylor <iant@google.com>
13045
13046 * dse.c (struct store_info): Rename bitmap field to bmap. Change
13047 all uses.
13048
13049 * c-decl.c (in_struct, struct_types): Remove.
13050 (struct c_binding): Add in_struct field.
13051 (c_binding_ptr): Define type, along with VEC.
13052 (struct c_struct_parse_info): Define.
13053 (struct_parse_info): New static variable.
13054 (bind): Initialize in_struct field.
13055 (start_struct): Remove enclosing_in_struct and
13056 enclosing_struct_types parameters. Add
13057 enclosing_struct_parse_info parameter. Change all callers. Set
13058 struct_parse_info rather than in_struct and struct_types.
13059 (grokfield): If -Wc++-compat and there is a symbol binding for the
13060 field name, set the in_struct flag and push it on the
13061 struct_parse_info->fields vector.
13062 (warn_cxx_compat_finish_struct): New static function.
13063 (finish_struct): Remove enclosing_in_struct and
13064 enclosing_struct_types parameters. Add
13065 enclosing_struct_parse_info parameter. Change all callers. Don't
13066 set C_TYPE_DEFINED_IN_STRUCT here. Call
13067 warn_cxx_compat_finish_struct. Free struct_parse_info and set to
13068 parameter. Only push on struct_types if warn_cxx_compat.
13069 (finish_enum): Only push on struct_types if warn_cxx_compat.
13070 (declspecs_add_type): Add loc parameter. Change all callers.
13071 Change all error calls to error_at. Pass loc, not input_location,
13072 to pedwarn calls. Warn if -Wc++-compat and a typedef name is
13073 defined in a struct. If -Wc++-compat and parsing a struct, record
13074 that a typedef name was used.
13075 * c-parser.c (c_parser_declspecs): Get location to pass to
13076 declspecs_add_type.
13077 (c_parser_struct_or_union_specifier): Update calls to start_struct
13078 and finish_struct.
13079 * c-tree.h (struct c_struct_parse_info): Declare.
13080 (finish_struct, start_struct): Update declarations.
13081 (declspecs_add_type): Update declaration.
13082
13083 2009-06-19 Ian Lance Taylor <iant@google.com>
13084
13085 * c-decl.c (grokdeclarator): If -Wc++-compat, warn about a global
13086 variable with an anonymous type.
13087
13088 2009-06-19 Uros Bizjak <ubizjak@gmail.com>
13089
13090 * see.c: Remove for real.
13091
13092 2009-06-19 Uros Bizjak <ubizjak@gmail.com>
13093
13094 * optabs.h (enum optab_index): Add new OTI_significand.
13095 (significand_optab): Define corresponding macro.
13096 * optabs.c (init_optabs): Initialize significand_optab.
13097 * genopinit.c (optabs): Implement significand_optab using
13098 significand?f2 patterns.
13099 * builtins.c (expand_builtin_mathfn): Handle
13100 BUILT_IN_SIGNIFICAND{,F,L}.
13101 (expand_builtin): Expand BUILT_IN_SIGNIFICAND{,F,L} using
13102 expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
13103
13104 * config/i386/i386.md (significandxf2, significand<mode>2): New
13105 expanders to implement significandf, significand and significandl
13106 built-ins as inline x87 intrinsics.
13107
13108 2009-06-18 Anatoly Sokolov <aesok@post.ru>
13109
13110 * config/avr/avr.c (avr_override_options): Remove setting value of
13111 PARAM_INLINE_CALL_COST.
13112
13113 2009-06-18 Richard Henderson <rth@redhat.com>
13114
13115 PR 40488
13116 * tree-pass.h (TDF_ASMNAME): New.
13117 * tree-dump.c (dump_options): Add asmname.
13118 * doc/invoke.texi: Document it.
13119
13120 * tree-pretty-print.c (maybe_dump_asm_name): Merge into...
13121 (dump_decl_name): ...here.
13122 (dump_function_name): New flags arg; mind TDF_ASMNAME.
13123 (dump_generic_node): Update dump_function_name calls.
13124 (print_call_name): New flags arg; update all dump calls.
13125 * diagnostic.h (print_call_name): Update.
13126 * gimple-pretty-print.c (dump_gimple_call): Update.
13127
13128 2009-06-18 H.J. Lu <hongjiu.lu@intel.com>
13129
13130 PR target/40470
13131 * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Add SSE_FIRST_REG.
13132
13133 2009-06-18 Diego Novillo <dnovillo@google.com>
13134
13135 * doc/plugins.texi: Document plugin_is_GPL_compatible.
13136 * plugin.c (str_license): Declare.
13137 (try_init_one_plugin): Assert that the symbol
13138 'plugin_is_GPL_compatible' exists.
13139
13140 2009-06-18 Sergei Dyshel <sergeid@il.ibm.com>
13141
13142 * see.c: Remove.
13143 * Makefile.in (OBJS-common): Remove see.o.
13144 (see.o): Remove.
13145 * common.opt (fsee): Mark as preserved for backward compatibility.
13146 * opts.c (common_handle_option): Add OPT_fsee to the backward
13147 compatibility section.
13148 * passes.c (init_optimization_passes, pass_see): Remove pass.
13149 * timevar.def (TV_SEE): Remove.
13150 * tree-pass.h (pass_see): Remove declaration.
13151 * doc/invoke.texi (-fsee): Remove documentation.
13152
13153 2009-06-18 Martin Jambor <mjambor@suse.cz>
13154
13155 * tree-sra.c: Include statistics.h
13156 (sra_stats): New variable.
13157 (sra_initialize): Clear sra_stats.
13158 (create_access_replacement): Increment sra_stats.replacements.
13159 (get_access_replacement): Do not return twice.
13160 (analyze_all_variable_accesses): Increment statistics counter by the
13161 number of scalarized aggregates.
13162 (generate_subtree_copies): Increment sra_stats.subtree_copies.
13163 (sra_modify_expr): Increment sra_stats.exprs.
13164 (load_assign_lhs_subreplacements): Increment sra_stats.subreplacements.
13165 (sra_modify_assign): Increment sra_stats.exprs,
13166 sra_stats.separate_lhs_rhs_handling and sra_stats.deleted.
13167 (perform_intra_sra): Update statistics counters.
13168 * Makefile.in (tree-sra.o): Add statistics.h to dependencies.
13169
13170 2009-06-18 Sandra Loosemore <sandra@codesourcery.com>
13171
13172 * config/arm/arm.c (TARGET_SCALAR_MODE_SUPPORTED_P): Redefine.
13173 (arm_scalar_mode_supported_p): New function.
13174
13175 2009-06-18 Paul Brook <paul@codesourcery.com>
13176 Sandra Loosemore <sandra@codesourcery.com>
13177
13178 * config/arm/sfp-machine.h (_FP_NANFRAC_H, _FP_NANSIGN_H): Define.
13179 (__extendhfsf2, __truncsfhf2): Define.
13180 * config/arm/fp16.c: New file.
13181 * config/arm/t-bpabi (LIB2FUNCS_STATIC_EXTRA): Add fp16.c.
13182 * config/arm/t-symbian (LIB2FUNCS_STATIC_EXTRA): Add fp16.c.
13183
13184 2009-06-18 Sandra Loosemore <sandra@codesourcery.com>
13185
13186 * doc/extend.texi (Half-Precision): New section.
13187 * doc/invoke.texi (Option Summary): List -mfp16-format.
13188 (ARM Options): List neon-fp16 as -mfpu value. Document -mfp16-format.
13189 * config/arm/arm.opt (mfp16-format=): New.
13190 * config/arm/arm.c: Include intl.h.
13191 (TARGET_INVALID_PARAMETER_TYPE): Redefine.
13192 (TARGET_INVALID_RETURN_TYPE): Redefine.
13193 (TARGET_PROMOTED_TYPE): Redefine.
13194 (TARGET_CONVERT_TO_TYPE): Redefine.
13195 (arm_fp16_format): Define.
13196 (all_fpus): Add entry for neon-fp16.
13197 (fp_model_for_fpu): Likewise.
13198 (struct fp16_format): Declare.
13199 (all_fp16_formats): Define.
13200 (arm_init_libfuncs): Add entries for HFmode conversions and arithmetic
13201 functions.
13202 (arm_override_options): Set arm_fp16_format. Call sorry for fp16
13203 and no ldrh.
13204 (arm_legitimate_index_p): Treat HFmode like HImode.
13205 (thumb1_legitimate_address_p): Make it recognize HFmode constants.
13206 (coproc_secondary_reload_class): Special-case HFmode.
13207 (arm_print_operand): Add 'z' specifier for vld1.16/vst1.16.
13208 (arm_hard_regno_mode_ok): Allow HFmode values in VFP registers.
13209 (arm_init_fp16_builtins): New.
13210 (arm_init_builtins): Call it.
13211 (arm_invalid_parameter_type): New.
13212 (arm_invalid_return_type): New.
13213 (arm_promoted_type): New.
13214 (arm_convert_to_type).
13215 (arm_file_start): Deal with neon-fp16 as fpu_name. Emit tag for fp16
13216 format.
13217 (arm_emit_fp16_const): New function.
13218 (arm_mangle_type): Mangle __fp16 as "Dh".
13219 * config/arm/arm.h (TARGET_VFPD32): Make it know about
13220 FPUTYPE_NEON_FP16.
13221 (TARGET_NEON_FP16): New.
13222 (TARGET_NEON): Make it know about FPUTYPE_NEON_FP16.
13223 (enum fputype): Add FPUTYPE_NEON_FP16.
13224 (enum arm_fp16_format_type): Declare.
13225 (arm_fp16_format): Declare.
13226 (LARGEST_EXPONENT_IS_NORMAL): Define.
13227 * config/arm/arm-protos.h (arm_emit_fp16_const): Declare.
13228 * config/arm/arm-modes.def (HFmode): Define.
13229 * config/arm/vfp.md: (*movhf_vfp): New.
13230 (extendhfsf2): New.
13231 (truncsfhf2): New.
13232 * config/arm/arm.md: (fpu): Add neon_fp16.
13233 (floatsihf2, floatdihf2): New.
13234 (fix_trunchfsi2, fix_trunchfdi2): New.
13235 (truncdfhf2): New.
13236 (extendhfdf2): New.
13237 (movhf): New.
13238 (*arm32_movhf): New.
13239 (*thumb1_movhf): New.
13240 (consttable_2): Add check for HFmode constants.
13241 (consttable_4): Handle HFmode constants.
13242
13243 2009-06-18 Uros Bizjak <ubizjak@gmail.com>
13244
13245 * convert.c (convert_to_integer): Convert (int)logb() into ilogb().
13246
13247 2009-06-17 Olivier Hainque <hainque@adacore.com>
13248
13249 * collect2.c (main): Use CONST_CAST2 to perform char ** to
13250 const char ** conversion in AIX specific section.
13251
13252 2009-06-17 H.J. Lu <hongjiu.lu@intel.com>
13253
13254 * config/i386/i386.c (ix86_special_builtin_type): Remove
13255 UINT64_FTYPE_PINT. Add UINT64_FTYPE_PUNSIGNED.
13256 (bdesc_special_args): Updated.
13257 (ix86_init_mmx_sse_builtins): Likewise.
13258 (ix86_expand_special_args_builtin): Likewise.
13259
13260 2009-06-17 Richard Henderson <rth@redhat.com>
13261
13262 * tree-pretty-print.c (maybe_dump_asm_name): New.
13263 (dump_decl_name): Use it.
13264 (PRINT_FUNCTION_NAME): Merge into...
13265 (dump_function_name): ... here. Use maybe_dump_asm_name.
13266
13267 2009-06-17 Cary Coutant <ccoutant@google.com>
13268
13269 * dbxout.c (dbxout_source_line): Add is_stmt parameter.
13270 Change caller.
13271 * debug.c (struct gcc_debug_hooks): Change placeholder for
13272 source_line hook.
13273 (debug_nothing_int_charstar_int): Replaced by...
13274 (debug_nothing_int_charstar_int_bool): ...this.
13275 * debug.h (struct gcc_debug_hooks): Add is_stmt parameter to
13276 source_line prototype.
13277 (debug_nothing_int_charstar_int): Replaced by...
13278 (debug_nothing_int_charstar_int_bool): ...this.
13279 * defaults.h (SUPPORTS_DISCRIMINATOR): New constant.
13280 * dwarf2out.c (dwarf2out_source_line): Add is_stmt parameter.
13281 Output is_stmt operand when necessary.
13282 * final.c (final_scan_insn): Pass is_stmt to source_line debug hook.
13283 (notice_source_line): Add is_stmt parameter.
13284 * sdbout.c (sdbout_source_line): Add is_stmt parameter.
13285 * vmsdbgout.c (vmsdbgout_source_line): Add is_stmt parameter.
13286 Change callers.
13287 * xcoffout.c (xcoffout_source_line): Add is_stmt parameter.
13288 * xcoffout.h (xcoffout_source_line): Add is_stmt parameter.
13289
13290 2009-06-17 Ian Lance Taylor <iant@google.com>
13291
13292 * expr.c (struct move_by_pieces_d): Rename from move_by_pieces.
13293 Change all uses.
13294 (struct store_by_pieces_d): Rename from store_by_pieces. Change
13295 call uses.
13296
13297 2009-06-17 Adam Nemet <anemet@caviumnetworks.com>
13298
13299 * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS,
13300 STRIP_USELESS_TYPE_CONVERSION): Use tree_strip_nop_conversions,
13301 tree_strip_sign_nop_conversions and
13302 tree_ssa_strip_useless_type_conversions rather than stripping
13303 the operations here.
13304 (tree_strip_nop_conversions, tree_strip_sign_nop_conversions):
13305 Declare them.
13306 * gimple.h (tree_ssa_strip_useless_type_conversions): Declare it.
13307 * tree-ssa.c (tree_ssa_strip_useless_type_conversions): New function.
13308 * tree.c (tree_nop_conversion, tree_sign_nop_conversion,
13309 tree_strip_nop_conversions, tree_strip_sign_nop_conversions): New
13310 functions.
13311
13312 2009-06-17 Michael Eager <eager@eagercon.com>
13313
13314 * config/rs6000/constraints.md (register_constraint "d"): New.
13315 * config/rs6000/dfp.md (movsd_store, extendsddd2, extendsdtd2,
13316 truncddsd2, *negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
13317 *movdd_hardfloat32, *movdd_hardfloat64_mfpgpr, *movdd_hardfloat64,
13318 *negtd2_fp, *abstd2_fpr, *nabstd2_fpr, *movtd_internal, extendddtd2,
13319 trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
13320 divtd3, *cmpdd_internal1, *cmptd_internal1, floatditd2, ftruncdd2,
13321 fixdddi2, ftrunctd2, fixtddi2): replace 'f' constraint with 'd'
13322 * config/rs6000/ppu_intrinsics.h (__mffs, __mtfsf, __mtfsfi, __fabs,
13323 __fnabs, __fmadd, __fmsub, __fnmadd, __fnmsub, __fsel, __frsqrte,
13324 __fsqrt, __fmul, __fmuls, __frsp, __fcfid, __fctid, __fctidz, __fctiw,
13325 __fctiwz): Same.
13326 * config/rs6000/rs6000.md (*extendsfdf2_fpr, *truncdfsf2_fpr,
13327 *fseldfsf4, *negdf2_fpr, *absdf2_fpr, *nabsdf2_fpr, *adddf3_fpr,
13328 *subdf3_fpr, *muldf3_fpr, *divdf3_fpr, recipdf3, fred, sqrtdf2,
13329 *fseldfdf4, *fselsfdf4, *floatsidf2_internal, *floatunssidf2_internal,
13330 *fix_truncdfsi2_internal, fix_truncdfsi2_internal_gfxopt,
13331 fix_truncdfsi2_mfpgpr, fctiwz, btruncdf2, ceildf2, floordf2, rounddf2,
13332 stfiwx, floatdidf2, fix_truncdfdi2, floatdisf2_internal1,
13333 *movdf_hardfloat32, *movdf_hardfloat64_mfpgpr, *movdf_hardfloat64,
13334 *movtf_internal, *extenddftf2_internal, trunctfdf2_internal1,
13335 trunctfdf2_internal2, trunctfsf2_fprs, fix_trunc_helper,
13336 *fix_trunctfsi2_internal, negtf2_internal, *movdi_internal32,
13337 *movdi_mfpgpr, *movdi_internal64, *movdf_update1, *movdf_update2,
13338 *cmpdf_internal1, *cmptf_internal1, *cmptf_internal2): Same.
13339 * doc/md.texi: Describe PowerPC 'd' constraint, update 'f' constraint.
13340
13341 2009-06-16 Ian Lance Taylor <iant@google.com>
13342
13343 * profile.c (total_num_never_executed): Don't define.
13344 (compute_branch_probabilities): Don't count or print
13345 num_never_executed.
13346 (init_branch_prob): Don't set total_num_never_executed.
13347 (end_branch_prob): Don't print total_num_never_executed.
13348
13349 2009-06-17 David Daney <ddaney@caviumnetworks.com>
13350
13351 * jump.c (cleanup_barriers): Handle case of no insns before a barrier.
13352
13353 2009-06-17 David Edelsohn <edelsohn@gnu.org>
13354
13355 * config/rs6000/dfp.md (nabsdd2_fpr): Correct mode.
13356 (nabstd2_fpr): Same.
13357
13358 2009-06-17 Steve Ellcey <sje@cup.hp.com>
13359
13360 * expr.c (expand_assignment): Change complex type check.
13361
13362 2009-06-17 Basile Starynkevitch <basile@starynkevitch.net>
13363
13364 * doc/plugins.texi (Building GCC plugins): Added new section.
13365
13366 2009-06-17 Ian Lance Taylor <iant@google.com>
13367
13368 * c-pch.c (get_ident): Don't set size of templ array.
13369 (pch_init): Don't set size of partial_pch array.
13370
13371 * c-typeck.c (digest_init): If -Wc++-compat, warn about using a
13372 string constant to intialize an array whose size is the length of
13373 the string.
13374
13375 2009-06-17 Richard Guenther <rguenther@suse.de>
13376
13377 PR tree-optimization/40389
13378 * tree-ssa-structalias.c (handle_rhs_call): Restrict NRV case
13379 to addressable types.
13380 * gimple.c (walk_stmt_load_store_addr_ops): Likewise.
13381
13382 2009-06-17 Richard Guenther <rguenther@suse.de>
13383
13384 PR middle-end/40460
13385 * tree-chrec.h (build_polynomial_chrec): If we cannot determine
13386 if there is no evolution of left in the loop bail out.
13387 * tree-chrec.c (chrec_fold_multiply_poly_poly): CSE one
13388 chrec_fold_multiply.
13389
13390 2009-06-16 J"orn Rennecke <joern.rennecke@arc.com>
13391 Janis Johnson <janis187@us.ibm.com>
13392
13393 PR target/39254
13394 * config/rs6000/rs6000.c (rs6000_emit_move): Don't emit a USE
13395 for the symbol ref of a constant that is the source of a move
13396 - nor for any other not-obvious-label-ref constants.
13397
13398 2009-06-16 Olatunji Ruwase <tjruwase@google.com>
13399
13400 * plugin.c (position_pass): Skip newly inserted pass during list
13401 traversal to avoid repeated insertion.
13402
13403 2009-06-16 Ian Lance Taylor <iant@google.com>
13404
13405 * vec.h (VEC_stack_alloc): Define different version if
13406 GATHER_STATISTICS is defined, to accept and ignore MEM_STAT.
13407 (DEF_VEC_ALLOC_FUNC_P_STACK): Remove MEM_STAT_DECL.
13408 (DEF_VEC_ALLOC_FUNC_O_STACK): Likewise.
13409 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
13410
13411 2009-06-16 H.J. Lu <hongjiu.lu@intel.com>
13412
13413 * config.gcc (extra_headers): Add ia32intrin.h for x86.
13414
13415 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_BSRSI,
13416 IX86_BUILTIN_BSRDI. IX86_BUILTIN_RDPMC, IX86_BUILTIN_RDTSC.
13417 IX86_BUILTIN_RDTSCP. IX86_BUILTIN_ROLQI, IX86_BUILTIN_ROLHI,
13418 IX86_BUILTIN_RORQI and IX86_BUILTIN_RORHI.
13419 (ix86_special_builtin_type): Add UINT64_FTYPE_VOID,
13420 UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
13421 INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
13422 (bdesc_special_args): Add __builtin_ia32_rdtsc and
13423 __builtin_ia32_rdtscp.
13424 (bdesc_args): Add __builtin_ia32_bsrsi, __builtin_ia32_bsrdi,
13425 __builtin_ia32_rolqi, __builtin_ia32_rolhi, __builtin_ia32_rorqi
13426 and __builtin_ia32_rorhi.
13427 (ix86_init_mmx_sse_builtins): Handle UINT64_FTYPE_VOID,
13428 UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
13429 INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
13430 (ix86_expand_args_builtin): Likewise.
13431 (ix86_expand_special_args_builtin): Likewise.
13432
13433 * config/i386/i386.md (UNSPECV_RDTSCP): New.
13434 (UNSPECV_RDTSC): Likewise.
13435 (UNSPECV_RDPMC): Likewise.
13436 (*bsr): Renamed to ...
13437 (bsr): This
13438 (*bsr_rex64): Renamed to ...
13439 (bsr_rex64): This.
13440 (rdpmc): New.
13441 (*rdpmc): Likewise.
13442 (*rdpmc_rex64): Likewise.
13443 (rdtsc): Likewise.
13444 (*rdtsc): Likewise.
13445 (*rdtsc_rex64): Likewise.
13446 (rdtscp): Likewise.
13447 (*rdtscp): Likewise.
13448 (*rdtscp_rex64): Likewise.
13449
13450 * config/i386/ia32intrin.h: New.
13451
13452 * config/i386/x86intrin.h: Include <ia32intrin.h>.
13453
13454 2009-06-16 Ian Lance Taylor <iant@google.com>
13455
13456 * ira-build.c (copy_info_to_removed_store_destinations):
13457 Initialize parent_a.
13458
13459 2009-06-16 Ian Lance Taylor <iant@google.com>
13460
13461 * c-decl.c (grokdeclarator): Change size_varies to bool.
13462
13463 2009-06-16 Ian Lance Taylor <iant@google.com>
13464
13465 * sel-sched.c: Make forward declarations of move_op_hooks and
13466 fur_hooks explicitly extern.
13467
13468 2009-06-16 Ian Lance Taylor <iant@google.com>
13469
13470 * df-problems.c (df_byte_lr_alloc): Don't set problem_data to itself.
13471 * vec.c (vec_gc_o_reserve_1): Don't set alloc to itself.
13472
13473 2009-06-16 Ian Lance Taylor <iant@google.com>
13474
13475 * resource.c (mark_referenced_resources): Change
13476 include_delayed_effects parameter to bool. Change all callers.
13477 (mark_end_of_function_resources): Likewise.
13478 * reorg.c (insn_references_resource_p): Likewise.
13479 (insn_sets_resource_p): Likewise.
13480 * resource.h (mark_referenced_resources): Update declaration.
13481 (mark_end_of_function_resources): Update declaration.
13482
13483 2009-06-16 David Edelsohn <edelsohn@gnu.org>
13484
13485 * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove -lstdc++.
13486
13487 2009-06-16 David Edelsohn <edelsohn@gnu.org>
13488
13489 * doc/install.texi (*-*-aix): Update explanation of XLC bootstrap.
13490 GCC can bootstrap on AIX with GNU Binutils 2.20.
13491
13492 2009-06-16 Ian Lance Taylor <iant@google.com>
13493
13494 * Makefile.in (tree-vect-stmts.o): Depend upon $(TOPLEV_H).
13495
13496 2009-06-16 Ian Lance Taylor <iant@google.com>
13497
13498 * toplev.h (floor_log2): If GCC_VERSION >= 3004, declare as static
13499 inline, not extern inline.
13500 (exact_log2): Likewise.
13501 * toplev.c (floor_log2): Only define if GCC_VERSION < 3004. Don't
13502 test CLZ_HWI.
13503 (exact_log2): Likewise, but don't test CTZ_HWI.
13504
13505 2009-06-16 Ian Lance Taylor <iant@google.com>
13506
13507 * bitmap.c (bitmap_clear): Don't declare as inline.
13508 * gimple.c (gimplify_assign): Likewise.
13509 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
13510 * haifa-sched.c (insn_cost): Don't declare with HAIFA_INLINE.
13511 (sched_scan_info): Remove duplicate definition.
13512
13513 2009-06-16 Ian Lance Taylor <iant@google.com>
13514
13515 * c-common.c (skip_evaluation): Don't define.
13516 (c_inhibit_evaluation_warnings): Define global variable.
13517 (overflow_warning): Check c_inhibit_evaluation_warnings rather
13518 than skip_evaluation.
13519 (convert_and_check, warn_for_div_by_zero): Likewise.
13520 * c-common.h (skip_evaluation): Don't declare.
13521 (c_inhibit_evaluation_warnings): Declare.
13522 * c-parser.c (c_parser_typeof_specifier): Set
13523 c_inhibit_evaluation_warnings rather than skip_evaluation.
13524 (c_parser_conditional_expression): Likewise.
13525 (c_parser_binary_expression): Likewise.
13526 (c_parser_sizeof_expression): Likewise.
13527 (c_parser_alignof_expression): Likewise.
13528 * c-typeck.c (build_indirect_ref): Check
13529 c_inhibit_evaluation_warnings rather than skip_evaluation.
13530 (build_conditional_expr, build_binary_op): Likewise.
13531
13532 2009-06-16 Richard Guenther <rguenther@suse.de>
13533
13534 * tree-ssa-alias.c (is_escape_site): Remove.
13535 * tree-ssa-alias.h (enum escape_type): Remove.
13536 (is_escape_site): Likewise.
13537 * tree-ssa-structalias.c (find_func_aliases): Handle escapes
13538 via casts and asms without deferring to is_escape_site.
13539
13540 2009-06-16 Jakub Jelinek <jakub@redhat.com>
13541
13542 PR middle-end/40446
13543 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: Don't
13544 use gen_lowpart if op0 has complex mode.
13545
13546 2009-06-16 Richard Guenther <rguenther@suse.de>
13547
13548 * tree-ssa-structalias.c (do_ds_constraint): Stores in global
13549 variables add them to ESCAPED.
13550 (find_func_aliases): Do not make all indirectly stored values escaped.
13551
13552 2009-06-16 Rafael Avila de Espindola <espindola@google.com>
13553
13554 * config/i386/winnt.c (i386_pe_encode_section_info): Update call to
13555 make_decl_one_only.
13556
13557 2009-06-16 Martin Jambor <mjambor@suse.cz>
13558
13559 PR tree-optimization/40432
13560 * tree-sra.c (sra_modify_assign): When creating VIEW_CONVERT_EXPR,
13561 check whether we need to force gimple register operand.
13562
13563 2009-06-16 Martin Jambor <mjambor@suse.cz>
13564
13565 PR tree-optimization/40413
13566 * tree-sra.c (load_assign_lhs_subreplacements): Pass offset to
13567 build_ref_for_offset.
13568 (propagate_subacesses_accross_link): Fix a typo in a comment.
13569
13570 2009-06-16 Ira Rosen <irar@il.ibm.com>
13571
13572 * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
13573 with additional parameter.
13574 * tree-vectorizer.h (enum vect_def_type): Add new value
13575 vect_nested_cycle.
13576 (enum vect_relevant): Add comments.
13577 (vect_is_simple_reduction): Add new argument.
13578 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Add comments.
13579 Detect nested cycles.
13580 (vect_is_simple_reduction): Update documentation, add an argument to
13581 distinguish inner-loop reduction from nested cycle, detect nested
13582 cycles, fix printings and indentation, don't swap operands in case
13583 of nested cycle.
13584 (get_initial_def_for_reduction): Handle subtraction.
13585 (vect_create_epilog_for_reduction): Add new argument to specify
13586 reduction variable.
13587 (vect_finalize_reduction): Handle subtraction, fix comments.
13588 (vectorizable_reduction): Handle nested cycles. In case of nested
13589 cycle keep track of the reduction variable position. Call
13590 vect_is_simple_reduction with additional parameter. Use original
13591 statement code in reduction epilogue for nested cycle. Call
13592 vect_create_epilog_for_reduction with additional parameter.
13593 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Assert
13594 inner-loop vectorization.
13595 (vect_recog_widen_sum_pattern): Likewise.
13596 * tree-vect-stmts.c (process_use): Distinguish between nested cycles
13597 and reductions.
13598 (vect_mark_stmts_to_be_vectorized): Likewise.
13599 (vect_get_vec_def_for_operand): Handle nested cycles.
13600
13601 2009-06-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13602
13603 * doc/invoke.texi (Debugging Options): Fix option index entries
13604 for -fdump-statistics, -frandom-seed add entries for
13605 -fdump-tree-original, -fdump-tree-optimized, -frandom-seed.
13606 (FRV Options): Fix entries for -mTLS, -mtls.
13607 (HPPA Options): Fix entries for -mgnu-ld, -mhp-ld.
13608 (i386 and x86-64 Options): Fix entry for -mno-red-zone.
13609 (M68hc1x Options): Fix @itemx for -mnominmax.
13610 (MCore Options): Fix entry for -mno-lsim.
13611 (MMIX Options): Fix entry for -mabi=mmixware.
13612 (PDP-11 Options): Fix entry for -mbcopy-builtin.
13613
13614 2009-06-16 Basile Starynkevitch <basile@starynkevitch.net>
13615
13616 * doc/plugins.texi (Interacting with the GCC Garbage Collector):
13617 Mention the plugin mode of gengtype.
13618 * doc/gty.texi (Source Files Containing Type Information): Likewise.
13619 * gengtype.c: Updated copyright.
13620 (plugin_files, nb_plugin_files) Added new static variables.
13621 (measure_input_list) Care about plugin_files.
13622 (write_rtx_next): Added early return in plugin mode.
13623 (create_file): Updated copyright year in generated file. Added
13624 asserts.
13625 (oprintf): Added early return if NULL outf.
13626 (get_output_file_with_visibility): Care of plugin_files.
13627 (get_output_file_name): May return null.
13628 (write_local): Added early return.
13629 (put_mangled_filename): Ditto.
13630 (finish_root_table): Added check for base_files.
13631 (write_roots): Care about null when plugins.
13632 (main): Added plugin mode.
13633
13634 2009-06-15 Ian Lance Taylor <iant@google.com>
13635
13636 * df-problems.c (df_simulate_one_insn_forwards): Fix braces in switch.
13637 * gcov.c (read_count_file): Add braces around variables declared
13638 before label.
13639
13640 * c.opt (Wjump-misses-init): New warning.
13641 * c-opts.c (c_common_handle_option): Set warn_jump_misses_init for
13642 -Wall and -Wc++-compat if not already set.
13643 (c_common_post_options): Clear warn_jump_misses_init if it was not
13644 set.
13645 * c-decl.c (struct c_binding): Change type field to a union with
13646 new label field. Make it the first field in the struct. Update
13647 references to type to use u.type instead.
13648 (struct c_spot_bindings): Define.
13649 (struct c_goto_bindings): Define.
13650 (c_goto_bindings_p): Define, along with VECs.
13651 (struct c_label_vars): Define.
13652 (struct c_scope): Add has_label_bindings field.
13653 (bind_label, set_spot_bindings): New static functions.
13654 (decl_jump_unsafe, update_spot_bindings): New static functions.
13655 (update_label_decls): New static function.
13656 (pop_scope): Call update_label_decls. Don't call c_end_vm_scope.
13657 Update binding u.label field to shadowed field.
13658 (c_binding_start_stmt_expr): New function.
13659 (c_binding_end_stmt_expr): New function.
13660 (pushdecl): Don't call c_begin_vm_scope.
13661 (make_label): Add defining and p_label_vars parameters. Change
13662 all callers.
13663 (lookup_label): Correct test for whether a label has not yet been
13664 defined. Call bind_label rather than bind.
13665 (warn_about_goto): New static function.
13666 (lookup_label_for_goto): New function.
13667 (declare_label): Call bind_label rather than bind.
13668 (check_earlier_gotos): New static function.
13669 (define_label): Don't give errors about jumping into statement
13670 expressions or scopes of variably modified types. Call
13671 set_spot_bindings and check_earlier_gotos. Call bind_label
13672 instead of bind. Don't set label_context_stack_se or
13673 label_context_stack_vm.
13674 (c_get_switch_bindings): New function.
13675 (c_release_switch_bindings): New function.
13676 (c_check_switch_jump_warnings): New function.
13677 (start_function): Don't set label_context_stack_se or
13678 label_context_stack_vm.
13679 (finish_function): Likewise.
13680 * c-typeck.c (label_context_stack_se): Don't define.
13681 (label_context_stack_vm): Don't define.
13682 (c_finish_goto_label): Call lookup_label_for_goto rather than
13683 lookup_label. Don't give errors about jumping into a statement
13684 expression or the scope of a variably modified type. Don't set
13685 label_context_stack_se or label_context_stack_vm.
13686 (struct c_switch): Remove blocked_stmt_expr and blocked_vm
13687 fields. Add bindings field.
13688 (c_start_case): Don't set deleted fields. Set bindings field.
13689 (do_case): Rework order of tests. Don't check blocked_stmt_expr
13690 or blocked_vm. Call c_check_switch_jump_warnings.
13691 (c_finish_case): Don't test blocked_stmt_expr field. Call
13692 c_release_switch_bindings.
13693 (c_begin_stmt_expr): Don't increment blocked_stmt_expr in
13694 c_switch_stack. Don't walk label_context_stack_se labels. Don't
13695 set label_context_stack_se. Call c_bindings_start_stmt_expr.
13696 (c_finish_stmt_expr): Don't decrement blocked_stmt_expr in
13697 c_switch_stack. Don't walk label_context_stack_se labels. Don't
13698 set label_context_stack_se. Call c_bindings_end_stmt_expr.
13699 (c_begin_vm_scope, c_end_vm_scope): Don't define.
13700 * c-tree.h (C_DECL_UNJUMPABLE_STMT_EXPR): Don't define.
13701 (C_DECL_UNDEFINABLE_STMT_EXPR): Don't define.
13702 (C_DECL_UNJUMPABLE_VM): Don't define.
13703 (C_DECL_UNDEFINABLE_VM): Don't define.
13704 (struct c_label_list): Don't define.
13705 (struct c_label_context_se): Don't define.
13706 (struct c_label_context_vm): Don't define.
13707 (struct c_spot_bindings): Declare.
13708 (c_bindings_start_stmt_expr): Declare.
13709 (c_bindings_end_stmt_expr): Declare.
13710 (lookup_label_for_goto): Declare.
13711 (c_get_switch_bindings, c_release_switch_bindings): Declare.
13712 (c_check_switch_jump_warnings): Declare.
13713 (label_context_stack_se, label_context_stack_vm): Don't declare.
13714 (c_finish_goto_label): Update declaration.
13715 (c_begin_vm_scope, c_end_vm_scope): Don't declare.
13716 * doc/invoke.texi (Option Summary): Mention -Wjump-misses-init.
13717 (Warning Options): Document -Wjump-misses-init.
13718
13719 2009-06-15 Jakub Jelinek <jakub@redhat.com>
13720
13721 * tree-object-size.c (addr_object_size): Fix a pasto in the last
13722 change.
13723
13724 2009-06-15 Rafael Avila de Espindola <espindola@google.com>
13725
13726 * cgraph.c (cgraph_make_node_local): Use DECL_COMDAT_GROUP.
13727
13728 2009-06-15 Aldy Hernandez <aldyh@redhat.com>
13729
13730 * except.c (init_eh): Use BUILTINS_LOCATION when calling build_decl.
13731
13732 2009-06-15 Aldy Hernandez <aldyh@redhat.com>
13733
13734 * tree-eh.c (lower_try_finally_switch): Initialize tf_loc.
13735
13736 2009-06-15 Rafael Avila de Espindola <espindola@google.com>
13737
13738 * cgraphunit.c (cgraph_function_versioning,save_inline_function_body):
13739 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
13740 * cgraph.c (cgraph_create_virtual_clone): Use DECL_COMDAT_GROUP.
13741 * config/i386/i386.c (ix86_file_end): Compute DECL_COMDAT_GROUP.
13742 * dwarf2asm.c (dw2_force_const_mem): Update call to
13743 make_decl_one_only.
13744 * langhooks-def.h (lhd_comdat_group, LANG_HOOKS_COMDAT_GROUP): Remove.
13745 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_COMDAT_GROUP.
13746 * langhooks.c (lhd_comdat_group): Remove.
13747 * langhooks.h (lang_hooks_for_decls): Remove comdat_group.
13748 * tree.h (DECL_COMDAT_GROUP): New.
13749 (DECL_ONE_ONLY): Use DECL_COMDAT_GROUP.
13750 (tree_decl_with_vis): Add comdat_group. Remove one_only.
13751 (make_decl_one_only): Change signature.
13752 * varasm.c (get_emutls_init_templ_addr, emutls_decl): Update call to
13753 make_decl_one_only.
13754 (make_decl_one_only): Change signature.
13755 (default_elf_asm_named_section): Use DECL_COMDAT_GROUP.
13756
13757 2009-06-15 Richard Guenther <rguenther@suse.de>
13758
13759 PR middle-end/40439
13760 * tree.c (widest_int_cst_value): Fix bootstrap on 32bit HWI hosts.
13761
13762 2009-06-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13763
13764 * tree-ssa-math-opts.c: Remove extra divide.
13765
13766 2009-06-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13767
13768 * config/s390/s390.md ("bswap<mode>2"): Only available on z900.
13769
13770 2009-06-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13771
13772 * passes.c: Add bswap pass.
13773 * tree-pass.h: Add pass_optimize_bswap declaration.
13774 * tree-ssa-math-opts.c: Include diagnostics.h for print_gimple_stmt.
13775 Include rtl.h, expr.h and optabs.h for optab_handler check.
13776 (struct symbolic_number, pass_optimize_bswap): New definition.
13777 (do_shift_rotate, verify_symbolic_number_p): New functions.
13778 (find_bswap_1, find_bswap, execute_optimize_bswap): New functions.
13779 (gate_optimize_bswap): New function.
13780 * tree.c (widest_int_cst_value): New function.
13781 * tree.h (widest_int_cst_value): Prototype added.
13782
13783 2009-06-14 Steven Bosscher <steven@gcc.gnu.org>
13784
13785 * cfgcleanup.c (old_insns_match_p): Remove code to substitute
13786 REG_EQUAL/REG_EQUIV notes.
13787
13788 2009-06-14 Richard Guenther <rguenther@suse.de>
13789
13790 PR middle-end/40389
13791 * gimple.c (walk_stmt_load_store_addr_ops): The LHS of a call
13792 has its address taken if NRV was applied and it is addressable.
13793 * tree-ssa-structalias.c (get_constraint_for_address_of): New
13794 function split out from ...
13795 (get_constraint_for_1): ... here.
13796 (handle_rhs_call): Use it to mark the return slot escaped if
13797 it is addressable and NRV was applied.
13798
13799 2009-06-13 Aldy Hernandez <aldyh@redhat.com>
13800
13801 * config/rs6000/rs6000-protos.h (altivec_resolve_overloaded_builtin):
13802 Change first argument type to location_t.
13803 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Same.
13804 Do not set input_location.
13805 Use loc instead of input_location throughout.
13806
13807 2009-06-13 Richard Guenther <rguenther@suse.de>
13808
13809 PR tree-optimization/40421
13810 * tree-predcom.c (should_unroll_loop_p): Remove.
13811 (tree_predictive_commoning_loop): Use can_unroll_loop_p.
13812
13813 2009-06-13 Michael Meissner <meissner@linux.vnet.ibm.com>
13814
13815 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
13816 Add location argument.
13817
13818 2009-06-13 Aldy Hernandez <aldyh@redhat.com>
13819
13820 * config/alpha/alpha.c (alpha_build_builtin_va_list): Pass location to
13821 build_decl.
13822 * config/s390/s390.c (s390_build_builtin_va_list): Same.
13823 (s390_gimplify_va_arg): Pass location to create_artificial_label.
13824 * config/spu/spu-protos.h: Add location to
13825 spu_resolve_overloaded_builtin.
13826 * config/spu/spu.c (spu_build_builtin_va_list): Pass location to
13827 spu_build_builtin_va_list.
13828 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Add location
13829 argument. Pass location to build_function_call_vec.
13830 * config/sh/sh.c (sh_build_builtin_va_list): Pass location to
13831 build_decl.
13832 (emit_fpu_switch): Same.
13833 (sh_gimplify_va_arg_expr): Pass location to create_artificial_label.
13834 * config/xtensa/xtensa.c (xtensa_build_builtin_va_list): Pass location
13835 to build_decl and create_artificial_label.
13836 (xtensa_gimplify_va_arg_expr): Same.
13837 * config/stormy16/stormy16.c (xstormy16_build_builtin_va_list): Same.
13838 (xstormy16_gimplify_va_arg_expr): Same.
13839 * config/iq2000/iq2000.c (iq2000_expand_prologue): Same.
13840 * config/arm/arm.c (arm_build_builtin_va_list): Same.
13841 * config/mips/mips.c (mips_build_builtin_va_list): Same.
13842 (mips16_build_function_stub): Same.
13843 (mips16_build_call_stub): Same.
13844
13845 2009-06-13 Richard Earnshaw <rearnsha@arm.com>
13846
13847 PR target/40327
13848 * arm/constraints.md (Pa, Pb): New constraints.
13849 * arm/arm.md (thumb1_addsi3): Support more complex additions. Add a
13850 split pattern to deal with them.
13851
13852 2009-06-13 Joerg Sonnenberger <joerg@britannica.bec.de>
13853
13854 * doc/invoke.texi: Add missing option -Wp,OPTION in list,
13855 fix index entry for -Xpreprocessor.
13856
13857 2009-06-12 Aldy Hernandez <aldyh@redhat.com>
13858
13859 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
13860 Add location argument to build_decl call.
13861 * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Same.
13862 (rs6000_init_builtins): Same.
13863 (spe_init_builtins): Same.
13864 (rs6000_gimplify_va_arg): Add location argument to
13865 create_artificial_label call.
13866
13867 2009-06-12 Steven Bosscher <steven@gcc.gnu.org>
13868
13869 * timevar.def (TV_COMBINE_STACK_ADJUST): New timevar.
13870 * combine-stack-adj.c (pass_stack_adjustments): Use it.
13871 * Makefile.in: Fix GGC dependency for gcse.o.
13872
13873 2009-06-12 Aldy Hernandez <aldyh@redhat.com>
13874
13875 * tree-pretty-print.c (dump_generic_node): Dump column numbers.
13876 * gimple-pretty-print.c (dump_gimple_stmt): Same.
13877 * gimplify.c (gimplify_modify_expr): Set location for GIMPLE_ASSIGNs
13878 created.
13879 * c-parser.c (c_parser_binary_expression): Use current column while
13880 building binary operations.
13881 * common.opt (fshow-column): Enable by default.
13882 * tree-vrp.c (check_array_ref): Use warning_at.
13883 (check_array_bounds): Use location from call back if expr has no
13884 location.
13885 * tree.h: Add location argument to maybe_fold_*.
13886 * tree-ssa-ccp.c (ccp_fold): Pass location to maybe_fold_*.
13887 (maybe_fold_offset_to_array_ref): Add location argument and use it.
13888 (maybe_fold_offset_to_component_ref): Same.
13889 (maybe_fold_offset_to_reference): Same.
13890 (maybe_fold_offset_to_address): Same.
13891 (maybe_fold_stmt_indirect): Same.
13892 (maybe_fold_stmt_addition): Same.
13893 (fold_stmt_r): Pass location to maybe_fold_*.
13894 (fold_gimple_assign): Same.
13895 * c-tree.h: Add location argument to finish_decl,
13896 default_function_array_conversion, store_init_value.
13897 * c-decl.c (define_label): Use error_at.
13898 (c_make_fname_decl): Pass location to finish_decl.
13899 (finish_decl): New location argument.
13900 (build_compound_literal): Pass location to store_init_value.
13901 (grokdeclarator): Pass location to finish_decl.
13902 (grokfield): Same.
13903 * c-typeck.c (array_to_pointer_conversion): New location argument.
13904 (function_to_pointer_conversion): Same.
13905 (default_function_array_conversion): Same.
13906 (parser_build_unary_op): Pass location to overflow_warning.
13907 (parser_build_binary_op): Same. Use warning_at.
13908 (build_unary_op): Pass location to array_to_pointer_conversion.
13909 (build_c_cast): Pass location to digest_init.
13910 (build_modify_expr): New location argument.
13911 (convert_for_assignment): Same.
13912 (store_init_value): Same.
13913 (digest_init): Same.
13914 (output_init_element): Pass location to digest_init and
13915 array_to_pointer_conversion.
13916 (c_finish_return): Pass location to convert_for_assignment.
13917 * gimplify.c (gimplify_conversion): Pass location to
13918 maybe_fold_offset_to_address.
13919 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Pass location
13920 to maybe_fold_stmt_addition.
13921 * c-omp.c (c_finish_omp_atomic): Pass new location to
13922 build_modify_expr.
13923 (c_finish_omp_for): Same.
13924 * c-common.c (overflow_warning): New argument.
13925 * c-common.h: New argument to build_modify_expr, overflow_warning.
13926 * c-parser.c (c_parser_declaration_or_fndef): Pass location to
13927 finish_decl.
13928 (c_parser_initializer): Pass location to
13929 default_function_array_conversion.
13930 (c_parser_initelt): Same.
13931 (c_parser_initval): Same.
13932 (c_parser_asm_operands): Same.
13933 (c_parser_expr_no_commas): Same. Pass location to build_modify_expr.
13934 (c_parser_conditional_expression): Same.
13935 (c_parser_binary_expression): Add location info to stack. Use it.
13936 (c_parser_unary_expression): Pass location to
13937 default_function_array_conversion, parser_build_unary_op,
13938 build_indirect_ref, c_parser_postfix_expression_after_primary.
13939 (c_parser_postfix_expression_after_primary): New location argument.
13940 Use it.
13941 (c_parser_expression_conv): Pass location to
13942 default_function_array_conversion.
13943 (c_parser_expr_list): Same.
13944 (c_parser_omp_atomic): Same.
13945 (c_parser_omp_for_loop): Same.
13946 * c-tree.h: (struct c_declarator): Add comment to id_loc.
13947 (build_array_declarator): New argument.
13948 * c-decl.c (build_array_declarator): Add location argument.
13949 (grokdeclarator): Set id_loc for cdk_array.
13950 * c-parser.c (c_parser_direct_declarator_inner): Pass location to
13951 build_array_declarator.
13952 * tree.c (build_omp_clause): Add location argument.
13953 * tree.h (OMP_CLAUSE_HAS_LOCATION): New macro.
13954 (OMP_CLAUSE_LOCATION): New macro.
13955 (struct tree_omp_clause): Add location field.
13956 (build_omp_clause): Add argument.
13957 * testsuite/gcc.dg/gomp/for-1.c: Fix column.
13958 * cp/pt.c (tsubst_omp_for_iterator): Pass location to
13959 build_omp_clause.
13960 * cp/parser.c (cp_parser_omp_var_list_no_open): Same.
13961 (cp_parser_omp_clause_collapse): Same.
13962 (cp_parser_omp_clause_default): Same.
13963 (cp_parser_omp_clause_if): Same.
13964 (cp_parser_omp_clause_nowait): Same.
13965 (cp_parser_omp_clause_num_threads): Same.
13966 (cp_parser_omp_clause_ordered): Same.
13967 (cp_parser_omp_clause_schedule): Same.
13968 (cp_parser_omp_clause_untied): Same.
13969 (cp_parser_omp_for_loop): Same.
13970 (cp_parser_omp_parallel): Pass location to c_split_parallel_clauses.
13971 * c-tree.h (c_start_case): Add location argument.
13972 (c_process_expr_stmt): Same.
13973 (c_finish_goto_*): Same.
13974 * tree-parloops.c (initialize_reductions): Pass location to
13975 build_omp_clause.
13976 (create_parallel_loop): Same.
13977 * fortran/trans-openmp.c (gfc_trans_omp_variable_list): Same.
13978 (gfc_trans_omp_reduction_list): Same.
13979 (gfc_trans_omp_clauses): Same.
13980 (gfc_trans_omp_do): Same.
13981 * c-typeck.c (c_finish_goto_label): Same.
13982 (c_finish_goto_ptr): New location argument.
13983 (c_start_case): Same.
13984 (emit_side_effect_warnings): Same.
13985 (c_process_expr_stmt): Same.
13986 (c_finish_stmt_expr): Same.
13987 (c_finish_omp_clauses): Use error_at instead of error.
13988 * gimplify.c (gimplify_adjust_omp_clauses_1): Pass location to
13989 build_omp_clause.
13990 * c-omp.c (c_split_parallel_clauses): New location argument.
13991 * tree-nested.c (convert_nonlocal_reference_stmt): Pass location
13992 to build_omp_clause.
13993 (convert_local_reference_stmt): Same.
13994 (convert_gimple_call): Same.
13995 * c-common.h (c_split_parallel_clauses): New argument.
13996 * c-parser.c (c_parser_statement_after_labels): Pass location to
13997 c_finish_goto_label.
13998 (c_parser_switch_statement): Pass location to c_start_case.
13999 (c_parser_for_statement): Pass location to c_finish_expr_stmt,
14000 and c_process_expr_stmt.
14001 (c_parser_omp_variable_list): Add location argument.
14002 (c_parser_omp_clause_collapse): Pass location to build_omp_clause.
14003 (c_parser_omp_clause_default): Same.
14004 (c_parser_omp_clause_if): Same.
14005 (c_parser_omp_clause_num_threads): Same.
14006 (-c_parser_omp_clause_ordered): Same.
14007 (c_parser_omp_clause_reduction): Pass location to
14008 c_parser_omp_variable_list.
14009 (c_parser_omp_clause_schedule): Pass location to build_omp_clause.
14010 (c_parser_omp_clause_untied): Same.
14011 (c_parser_omp_for_loop): Pass location to c_process_expr_stmt.
14012 (c_parser_omp_parallel): Pass location to c_split_parallel_clauses.
14013
14014 * c-tree.h (check_for_loop_decls, undeclared_variable,
14015 build_component_ref, build_array_ref, build_external_ref,
14016 c_expr_sizeof_expr, c_expr_sizeof_type, parser_build_unary_op,
14017 build_conditional_expr, build_compound_expr, c_cast_expr,
14018 build_c_cast, build_asm_expr, c_end_compound_stmt, c_finish_stmt_expr,
14019 c_finish_return, c_finish_omp_parallel, c_finish_omp_task): New
14020 argument.
14021 * c-semantics.c (build_stmt): Same.
14022 (build_case_label): Same.
14023 * c-decl.c (c_finish_incomplete_decl): Pass location on down.
14024 (undeclared_variable): New argument.
14025 (make_label): Same.
14026 (lookup_label): Pass location on down.
14027 (define_label): Same.
14028 (finish_decl): Same.
14029 (build_compound_literal): Same.
14030 (finish_struct): Same.
14031 (finish_function): Do not set location here.
14032 (check_for_loop_decls): New argument.
14033 * tree.c (save_expr): Set location.
14034 (build_empty_stmt): New argument.
14035 * tree.h (build_empty_stmt): New argument to build_empty_stmt.
14036 (CAN_HAVE_LOCATION_P): Make sure we have a non empty node.
14037 * builtins.c (gimplify_va_arg_expr): Use locations.
14038 (expand_builtin_sync_operation): Same.
14039 * c-typeck.c (build_component_ref): New argument.
14040 (build_array_ref): Same.
14041 (build_external_ref): Same.
14042 (c_expr_sizeof_expr): Same.
14043 (c_expr_sizeof_type): Same.
14044 (parser_build_unary_op): Same.
14045 (build_conditional_expr): Same.
14046 (build_compound_expr): Pass location on down.
14047 (build_compound_expr): New argument.
14048 (build_c_cast): Same.
14049 (c_cast_expr): Same.
14050 (build_asm_expr): Same.
14051 (c_finish_return): Same.
14052 (c_process_expr_stmt): Pass location on down.
14053 (c_finish_stmt_expr): New argument.
14054 (push_clenaup): Same.
14055 (c_finish_omp_parallel): Same.
14056 (c_finish_omp_task): Same.
14057 * gimplify.c (gimplify_call_expr): Pass location on down.
14058 * c-omp.c (c_finish_omp_master): New argument.
14059 (c_finish_omp_critical): Same.
14060 (c_finish_omp_ordered): Same.
14061 (c_finish_omp_barrier): Same.
14062 (-c_finish_omp_taskwait): Same.
14063 (c_finish_omp_atomic): Same.
14064 (c_finish_omp_flush): Same.
14065 * tree-inline.c (copy_tree_body_r): Pass location on down.
14066 (inline_forbidden_p): Remove use of input_location.
14067 * c-gimplify.c (c_build_bind_expr): New argument.
14068 * c-common.c (c_common_truthvalue_conversion): Pass location on down.
14069 (c_sizeof_or_alignof_type): New argument.
14070 (c_alignof_expr): Same.
14071 (build_va_arg): Same.
14072 (c_add_case_label): Same.
14073 * c-common.h (c_sizeof_or_alignof_type, c_alignof_expr,
14074 c_sizeof, c_alignof, build_va_arg, build_stmt, build_case_label,
14075 c_build_bind_expr, objc_build_selector_expr, objc_build_throw_stmt,
14076 c_finish_omp_master, c_finish_omp_critical, c_finish_omp_ordered,
14077 c_finish_omp_barrier, c_finish_omp_atomic, c_finish_omp_flush,
14078 c_finish_omp_taskwait, c_finish_omp_for, c_split_parallel_clauses):
14079 New argument.
14080 * stub-objc.c (objc_build_selector_expr): Same.
14081 (objc_build_throw_stmt): Same.
14082 * c-parser.c (c_parser_declaration_or_fndef): Pass location on down.
14083 (c_parser_initelt): Same.
14084 (c_parser_compound_statement): Same.
14085 (c_parser_compound_statement_nostart): Same.
14086 (c_parser_label): Same.
14087 (c_parser_statement_after_labels): Same.
14088 (c_parser_if_body): Same.
14089 (c_parser_else_body): Same.
14090 (c_parser_if_statement): Same.
14091 (c_parser_switch_statement): Same.
14092 (c_parser_while_statement): Same.
14093 (c_parser_do_statement): Same.
14094 (c_parser_for_statement): Same.
14095 (c_parser_asm_statement): Same.
14096 (c_parser_conditional_expression): Same.
14097 (c_parser_binary_expression): Same.
14098 (c_parser_cast_expression): Same.
14099 (c_parser_unary_expression): Same.
14100 (c_parser_sizeof_expression): Same.
14101 (c_parser_alignof_expression): Same.
14102 (c_parser_postfix_expression): Same.
14103 (c_parser_expression): Same.
14104 (c_parser_objc_receiver): Same.
14105 (c_parser_omp_variable_list): Same.
14106 (c_parser_omp_structured_block): Same.
14107 (c_parser_omp_atomic): New argument.
14108 (c_parser_omp_barrier): Same.
14109 (c_parser_omp_critical): Same.
14110 (c_parser_omp_flush): Pass location on down.
14111 (c_parser_omp_for_loop): New argument.
14112 (c_parser_omp_for): Same.
14113 (c_parser_omp_master): Same.
14114 (c_parser_omp_ordered): Same.
14115 (c_parser_omp_sections_scope): Same.
14116 (c_parser_omp_sections): Same.
14117 (c_parser_omp_parallel): Same.
14118 (c_parser_omp_single): Same.
14119 (c_parser_omp_task): Same.
14120 (c_parser_omp_taskwait): Pass location on down.
14121 (c_parser_omp_construct): Same.
14122 (c_parser_omp_threadprivate): Same.
14123 * dwarf2asm.c, targhooks.c, optabs.c, tree.c, tree.h, target.h,
14124 builtins.c, omp-low.c, cgraphunit.c, tree-call-cdce.c,
14125 tree-ssa-alias.c, gimple-low.c, c-tree.h, expr.c, tree-parloops.c,
14126 c-decl.c, tree-eh.c, langhooks.c, function.c, stor-layout.c,
14127 c-typeck.c, gimplify.c, c-pragma.c, expmed.c, except.c, coverage.c,
14128 emit-rtl.c, cfgexpand.c, tree-mudflap.c, varasm.c, tree-nested.c,
14129 rtl.h, tree-inline.c, tree-profile.c, c-common.c, c-common.h,
14130 tree-switch-conversion.c, tree-cfg.c, ipa-struct-reorg.c, c-parser.c,
14131 config/i386/i386.c, stmt.c:
14132 Add location argument to the following function definitions and/or
14133 function calls: build_decl, objcp_start_struct, objcp_finish_struct,
14134 start_struct, finish_struct, PUSH_FIELD, create_artificial_label,
14135 cp_make_fname_decl, pushtag, implicitly_declare, c_make_fname_decl,
14136 build_compound_literal, parser_xref_tag, resolve_overloaded_builtin,
14137 do_case, c_finish_bc_stmt, build_compound_literal,
14138 build_function_call.
14139 * c-decl.c (build_compound_literal): Add location argument.
14140 Make all diagnostic calls use location.
14141 (start_struct): Same.
14142 (finish_struct): Same.
14143 (start_enum): Same.
14144 (build_enumerator): Same.
14145 (start_function): Same.
14146 (grokdeclarator): Make all diagnostic calls use location.
14147 (store_parm_decls_oldstyle): Same.
14148 * c-typeck.c (build_function_call): Add location argument.
14149 Make all diagnostic calls use location.
14150 (do_case): Same.
14151 (c_finish_bc_stmt): Same.
14152 * tree-nested.c (get_trampoline_type): Add argument.
14153 Pass location to build_decl.
14154 (lookup_tramp_for_decl): Pass location to get_trampoline_type.
14155 * rtl.h (RTL_LOCATION): New.
14156 * c-common.c (c_add_case_label): Add location argument.
14157 Make all diagnostic calls use location.
14158 * c-common.h: Add location argument to make_fname_decl, do_case,
14159 c_add_case_label, build_function_call, resolve_overloaded_builtin.
14160 * c-parser.c (c_parser_enum_specifier): Rename ident_loc to enum_loc.
14161 Set it appropriately for every case. Pass enum_loc to start_enum
14162 call. Pass value_loc first to build_enumerator. Pass enum_loc to
14163 parser_xref_tag.
14164 (c_parser_struct_or_union_specifier): Save location. Use it for
14165 start_struct, finish_struct, and parser_xref_tag.
14166
14167 2009-06-12 Ian Lance Taylor <iant@google.com>
14168
14169 * fold-const.c (fold_unary): Rename local variable and to and_expr.
14170
14171 * c-opts.c (c_common_handle_option): For -Wc++-compat set
14172 cpp_opts->warn_cxx_operator_names.
14173
14174 2009-06-12 Andrew Pinski <andrew_pinski@playstation.sony.com>
14175
14176 PR tree-opt/38865
14177 * tree-ssa-sccvn.c (visit_reference_op_load): If vn_reference_lookup
14178 is returns NULL and OP is a VCE, look through the VCE.
14179
14180 2009-06-12 Ian Lance Taylor <iant@google.com>
14181
14182 PR bootstrap/40430
14183 * collect2.c (main): Use CONST_CAST2 in code inside #if
14184 LINK_ELIMINATE_DUPLICATE_LDIRECTORIES.
14185
14186 2009-06-12 Joey Ye <joey.ye@intel.com>
14187
14188 PR middle-end/39146
14189 * cfgexpand.c (get_decl_align_unit): Update
14190 max_used_stack_slot_alignment with align instead of
14191 stack_alignment_needed.
14192
14193 * function.c (assign_stack_local_1): Update
14194 max_used_stack_slot_alignment with alignment_in_bits instead
14195 of stack_alignment_needed.
14196 (locate_and_pad_parm): Don't update max_used_stack_slot_alignment
14197 here.
14198
14199 2009-06-12 Jakub Jelinek <jakub@redhat.com>
14200
14201 * dwarf2out.c (last_var_location_insn): New variable.
14202 (dwarf2out_end_epilogue): Clear last_var_location_insn.
14203 (dwarf2out_var_location): Don't record anything after last real
14204 insn. Only change labels if there were any real instructions
14205 in between last note and this one, or if changed sections.
14206
14207 2009-06-11 Richard Henderson <rth@redhat.com>
14208
14209 * alpha.c (alpha_expand_prologue): Add a REF_CFA_REGISTER
14210 note when storing the frame pointer in a register.
14211 (FRP): Don't redefine to nothing for epilogue.
14212 (alpha_expand_epilogue): Mark register and sp restores.
14213 (unicosmk_gen_dsib): Don't mark weird frame pointer adjust.
14214
14215 * config/alpha/alpha.c (alpha_emit_setcc): Fix test for
14216 when gen_lowpart is needed.
14217
14218 2009-06-11 Richard Henderson <rth@redhat.com>
14219
14220 * dwarf2out.c (def_cfa_1): Likewise for DW_CFA_cfa_offset.
14221
14222 * dwarf2out.c (need_data_align_sf_opcode): New.
14223 (div_data_align): Move earlier.
14224 (def_cfa_1, reg_save): Use it.
14225
14226 2009-06-11 H.J. Lu <hongjiu.lu@intel.com>
14227
14228 * config/i386/i386.c (OPTION_MASK_ISA_CRC32_SET): New.
14229 (OPTION_MASK_ISA_CRC32_UNSET): Likewise.
14230 (ix86_handle_option): Handle OPT_mcrc32.
14231 (ix86_target_string): Add -mcrc32.
14232 (bdesc_args): Enable crc32 builtins with OPTION_MASK_ISA_CRC32.
14233
14234 * config/i386/i386.h (TARGET_CRC32): New.
14235
14236 * config/i386/i386.md (sse4_2_crc32<mode>): Also check TARGET_CRC32.
14237 (sse4_2_crc32di): Likewise.
14238
14239 * config/i386/i386.opt (mcrc32): New.
14240
14241 * doc/invoke.texi: Document -mcrc32.
14242
14243 2009-06-11 Richard Henderson <rth@redhat.com>
14244
14245 * common.opt (gdwarf-): Accept a version number.
14246 * doc/invoke.texi (gdwarf-): Update docs.
14247 * opth-gen.awk: Special case -gdwarf+ to OPT_gdwarfplus.
14248 * opts.c (common_handle_option) [OPT_gdwarf_]: Verify dwarf
14249 version level, and record it.
14250
14251 * dwarf2.h (DW_CIE_VERSION): Remove.
14252 * dwarf2out.c (DWARF_VERSION): Remove.
14253 (add_fde_cfi): Skip DW_CFA_set_loc addition for dwarf3.
14254 (output_call_frame_info): Use CIE version 3 for dwarf3,
14255 or if the return register column is out of range for version 1.
14256 (dwarf_stack_op_name): Add all dwarf3 values.
14257 (DEBUG_PUBTYPES_SECTION): New.
14258 (size_of_die) [dw_val_class_die_ref]: Handle DW_FORM_ref_addr
14259 encoding change for dwarf3.
14260 (output_die) [dw_val_class_die_ref]: Likewise.
14261 (output_compilation_unit_header): Emit correct version for dwarf3.
14262 (output_line_info): Likewise.
14263 (output_pubnames): Update for DWARF_VERSION removal.
14264 (output_aranges): Likewise.
14265 (gen_subprogram_die): Emit DW_OP_call_frame_cfa if emitting dwarf3.
14266 (dwarf2out_init): Don't ifdef DEBUG_PUBTYPES_SECTION.
14267 (dwarf2out_finish): Likewise.
14268
14269 2009-06-11 David Daney <ddaney@caviumnetworks.com>
14270
14271 * system.h (gcc_assert, gcc_unreachable): Revert accidental commit
14272 in r148403.
14273
14274 2009-06-11 David Daney <ddaney@caviumnetworks.com>
14275
14276 PR c/39252
14277 * doc/extend.texi ( __builtin_unreachable): Document new builtin.
14278 * builtins.c (expand_builtin_unreachable): New function.
14279 (expand_builtin): Handle BUILT_IN_UNREACHABLE case.
14280 * builtins.def (BUILT_IN_UNREACHABLE): Add new builtin.
14281 * cfgcleanup.c (try_optimize_cfg): Delete empty blocks with no
14282 successors.
14283 * cfgrtl.c (rtl_verify_flow_info): Handle empty blocks when
14284 searching for missing barriers.
14285
14286 2009-06-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
14287
14288 * config/darwin.h (LINK_COMMAND_SPEC): Adjust spec to link libcov
14289 when -fprofile-generate* was passed.
14290 * config/darwin9.h (LINK_COMMAND_SPEC): Likewise.
14291
14292 2009-06-11 Anthony Green <green@moxielogic.com>
14293
14294 * config/moxie/moxie.md: Define length attribute for all instructions.
14295 (rCC): Define.
14296 (*b<cond:code>): Support limited branch ranges for new PC-relative
14297 branch instructions.
14298 * config/moxie/moxie.h (HAS_LONG_UNCOND_BRANCH): Define.
14299
14300 2009-06-11 Jakub Jelinek <jakub@redhat.com>
14301
14302 * config/i386/i386.c (min_insn_size): Use get_attr_length
14303 for normal insns other than TYPE_MULTI, TYPE_OTHER and TYPE_FCMP.
14304 For __asm return 0.
14305
14306 * config/i386/i386.c (ix86_pad_returns): Use emit_jump_insn_before
14307 instead of emit_insn_before.
14308
14309 2009-06-10 Ian Lance Taylor <iant@google.com>
14310
14311 PR bootstrap/40408
14312 * graphite.c (add_conditions_to_domain): Change SWITCH_EXPR to
14313 GIMPLE_SWITCH.
14314
14315 2009-06-10 Revital Eres <eres@il.ibm.com>
14316
14317 * passes.c (init_optimization_passes): Reschedule
14318 predictive-commoning pass before complete unroll pass.
14319
14320 2009-06-10 Martin Jambor <mjambor@suse.cz>
14321
14322 * cgraph.c (cgraph_node_can_be_local_p): New function.
14323 (cgraph_make_node_local): New function.
14324 * cgraph.h (cgraph_node_can_be_local_p): Declare.
14325 (cgraph_make_node_local): Declare.
14326
14327 2009-06-10 Nathan Froyd <froydnj@codesourcery.com>
14328
14329 * tree.h (tree_base): Add packed_flag and user_align fields.
14330 Decrease size of spare field.
14331 (TYPE_USER_ALIGN): Use user_align from tree_base.
14332 (DECL_USER_ALIGN): Likewise.
14333 (TYPE_PACKED): Use packed_flag from tree_base.
14334 (DECL_PACKED): Likewise.
14335 (tree_type): Delete packed_flag and user_align fields. Widen
14336 precision field. Widen mode field and shuffle fields to align
14337 mode on an 8-bit boundary.
14338 (tree_decl_common): Delete decl_flag_1 and user_align fields.
14339 Renumber decl_flag_* fields. Fix comments. Widen
14340 decl_common_unused field.
14341 (DECL_HAS_VALUE_EXPR_P): Adjust for renumbering of decl_flag_* fields.
14342 (DECL_EXTERNAL): Likewise.
14343 (DECL_BIT_FIELD): Likewise.
14344 (DECL_NONADDRESSABLE_P): Likewise.
14345 (TYPE_DECL_SUPRESS_DEBUG): Likewise.
14346 * config/arm/arm-modes.def (XImode): Make it an INT_MODE.
14347
14348 2009-06-10 Ian Lance Taylor <iant@google.com>
14349
14350 * vec.h (DEF_VEC_ALLOC_I): Use DEF_VEC_NONALLOC_FUNCS_I.
14351 (DEF_VEC_ALLOC_P): Use DEF_VEC_NONALLOC_FUNCS_P.
14352 (DEF_VEC_ALLOC_O): Use DEF_VEC_NONALLOC_FUNCS_O.
14353 (DEF_VEC_ALLOC_FUNC_P): Only define VEC_OP (T,A,alloc).
14354 (DEF_VEC_NONALLOC_FUNCS_P): New macro, broken out of old
14355 DEF_VEC_ALLOC_FUNC_P.
14356 (DEF_VEC_ALLOC_FUNC_O): Only define VEC_OP (T,A,alloc).
14357 (DEF_VEC_NONALLOC_FUNCS_O): New macro, broken out of old
14358 DEF_VEC_ALLOC_FUNC_O.
14359 (DEF_VEC_ALLOC_FUNC_I): Only define VEC_OP (T,A,alloc).
14360 (DEF_VEC_NONALLOC_FUNCS_I): New macro, broken out of old
14361 DEF_VEC_ALLOC_FUNC_I.
14362 (vec_stack_p_reserve, vec_stack_p_reserve_exact): Declare.
14363 (vec_stack_p_reserve_exact_1): Declare.
14364 (vec_stack_o_reserve, vec_stack_o_reserve_exact): Declare.
14365 (vec_stack_free): Declare.
14366 (VEC_stack_alloc): Define.
14367 (DEF_VEC_ALLOC_P_STACK, DEF_VEC_ALLOC_FUNC_P_STACK): Define.
14368 (DEF_VEC_ALLOC_O_STACK, DEF_VEC_ALLOC_FUNC_O_STACK): Define.
14369 (DEF_VEC_ALLOC_I_STACK, DEF_VEC_ALLOC_FUNC_I_STACK): Define.
14370 * vec.c (void_p): New type. Call DEF_VEC_P and DEF_VEC_ALLOC_P
14371 for void_p.
14372 (stack_vecs): New static variable.
14373 (vec_stack_p_reserve_exact_1): New function.
14374 (vec_stack_o_reserve_1): New static function.
14375 (vec_stack_p_reserve, vec_stack_p_reserve_exact): New functions.
14376 (vec_stack_o_reserve, vec_stack_o_reserve_exact): New functions.
14377 (vec_stack_free): New function.
14378 * df-scan.c (df_ref): Use DEF_VEC_P and DEF_VEC_ALLOC_P_STACK.
14379 (VEC_df_ref_stack_alloc): Define.
14380 (df_mw_hardreg_ptr): New type. Use DEF_VEC_P and
14381 DEF_VEC_ALLOC_P_STACK.
14382 (VEC_df_mw_hardreg_ptr_stack_alloc): Define.
14383 (struct df_collection_rec): Change _vec fields to VEC. Remove
14384 _use fields.
14385 (df_free_collection_rec): Adjust for new fields.
14386 (df_insn_rescan): Use new df_collection_rec fields.
14387 (df_notes_rescan, df_canonize_collection_rec): Likewise.
14388 (df_ref_create_structure, df_ref_record): Likewise.
14389 (df_get_conditional_uses, df_get_call_refs): Likewise.
14390 (df_insn_refs_collect, df_bb_refs_collect): Likewise.
14391 (df_bb_refs_record, df_record_entry_block_defs): Likewise.
14392 (df_record_exit_block_uses, df_bb_verify): Likewise.
14393 (df_swap_refs): Change ref_vec parameter to VEC. Change all callers.
14394 (df_sort_and_compress_refs): Change ref_vec parameter to VEC.
14395 Remove count parameter. Change return type to void. Change all
14396 callers.
14397 (df_sort_and_compress_mws): Change mw_vec parameter to VEC.
14398 Remove count parameter. Change return type to void. Change all
14399 callers.
14400 (df_install_refs): Change old_vec parameter to VEC. Remove count
14401 parameter. Change all callers.
14402 (df_install_mws): Change old_vec parameter to VEC. Remove count
14403 parameter. Change all callers.
14404 (df_refs_verify): Change new_rec parameter to VEC. Change call
14405 callers.
14406 (df_mws_verify): Likewise.
14407
14408 2009-06-10 Alexandre Oliva <aoliva@redhat.com>
14409
14410 * gcc.c (compare_files): Cast munmap argumento to caddr_t.
14411
14412 2009-06-10 H.J. Lu <hongjiu.lu@intel.com>
14413
14414 * doc/extend.texi: Add description for __builtin_ia32_crc32di.
14415
14416 2009-06-10 Anthony Green <green@moxielogic.com>
14417
14418 * config/moxie/crti.asm: New file.
14419 * config/moxie/crtn.asm: New file.
14420 * config/moxie/moxie.c: New file.
14421 * config/moxie/moxie.h: New file.
14422 * config/moxie/sfp-machine.h: New file.
14423 * config/moxie/moxie-protos.h: New file.
14424 * config/moxie/t-moxie: Created.
14425 * config/moxie/t-moxie-softfp: Created.
14426 * config/moxie/moxie.md: Created.
14427 * config/moxie/constraints.md: Created.
14428 * config.gcc: Add moxie support.
14429 * doc/md.texi (Machine Constraints): Add moxie constraints.
14430 * doc/contrib.texi (Contributors): Mention moxie port.
14431 * doc/install.texi (Specific): Mention the moxie port.
14432
14433 2009-06-09 Ian Lance Taylor <iant@google.com>
14434
14435 * system.h (HAVE_DESIGNATED_INITIALIZERS): Don't define if
14436 compiling with C++.
14437 * optabs.c (optab_table): Only use designated initializers if
14438 HAVE_DESIGNATED_INITIALIZERS is defined.
14439 (convert_optab_table): Likewise.
14440 (init_optabs): Always call init_insn_codes if
14441 HAVE_DESIGNATED_INITIALIZERS is not defined.
14442
14443 2009-06-09 Ian Lance Taylor <iant@google.com>
14444
14445 * targhooks.c (default_builtin_vectorized_function): Change fn
14446 parameter to unsigned int.
14447 (default_builtin_vectorized_conversion): Change code parameter to
14448 unsigned int.
14449 (default_builtin_reciprocal): Change fn parameter to unsigned int.
14450 * targhooks.h: Update declarations.
14451 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Change code
14452 parameter to unsigned int.
14453
14454 * c-typeck.c (comptypes_check_enum_int): New static function.
14455 (comptypes_internal): Add enum_and_int_p parameter. Change all
14456 callers.
14457 (comp_target_types): Add location parameter. Change all callers.
14458 (tagged_types_tu_compatible_p): Add enum_and_int_p parameter.
14459 Change all callers.
14460 (function_types_compatible_p, type_lists_compatible_p): Likewise.
14461 (build_conditional_expr): Add colon_loc parameter. Change all
14462 callers.
14463 (convert_for_assignment): Add location parameter. Change all callers.
14464 * c-parser.c (c_parser_conditional_expression): Pass location of
14465 colon to build_conditional_expr.
14466 * c-tree.h (build_conditional_expr): Update declaration.
14467
14468 2009-06-09 Sebastian Pop <sebastian.pop@amd.com>
14469
14470 * graphite.c: Revert previous patch.
14471
14472 2009-06-09 Sebastian Pop <sebastian.pop@amd.com>
14473
14474 PR bootstrap/40103
14475 * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
14476
14477 2009-06-09 Ghassan Shobaki <ghassan.shobaki@amd.com>
14478
14479 * tree-ssa-loop-prefetch.c
14480 (loop_prefetch_arrays): Fixed a portability problem in printf format
14481 string.
14482
14483 2009-06-09 Martin Jambor <mjambor@suse.cz>
14484
14485 PR tree-optimization/40351
14486 * tree-sra.c (propagate_subacesses_accross_link): Check that a
14487 refrence to a potential artifical subaccess can be constructed.
14488
14489 2009-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
14490
14491 * config/sh/sh-protos.h (sh_optimization_options): Declare.
14492 (sh_override_options): Likewise.
14493 * config/sh/sh.c: Include params.h.
14494 (sh_optimization_options): New.
14495 (sh_override_options): Likewise.
14496 * config/sh/sh.c (OPTIMIZATION_OPTIONS): Use sh_optimization_options.
14497 (OVERRIDE_OPTIONS): Use sh_override_options.
14498
14499 2009-06-08 Jakub Jelinek <jakub@redhat.com>
14500
14501 * dwarf2out.c (emit_cfa_remember): New variable.
14502 (add_fde_cfi): If emit_cfa_remember, recurse to add
14503 DW_CFA_remember_state first.
14504 (dwarf2out_begin_epilogue): Don't add_fde_cfi DW_CFA_remember_state,
14505 instead just set emit_cfa_remember.
14506
14507 2009-06-08 Jan Hubicka <jh@suse.cz>
14508
14509 PR debug/40126
14510 * dwarf2out.c (dwarf2out_abstract_function): Free decl_loc_table.
14511
14512 2009-06-08 Jan Hubicka <jh@suse.cz>
14513
14514 PR middle-end/39834
14515 * cgraphunit.c (save_inline_function_body): Do not copy transform
14516 hooks for saved inline bodies.
14517 * ipa-passes.c (do_per_function): Do not add the hoks multiple times
14518 for given function.
14519
14520 2009-06-08 Adam Nemet <anemet@caviumnetworks.com>
14521
14522 * jump.c (returnjump_p): Handle delayed branches. Add missing
14523 function comment.
14524
14525 2009-06-08 Jan Hubicka <jh@suse.cz>
14526
14527 PR middle-end/40102
14528 * cgraph.c (cgraph_create_edge_including_clones): Also asume that the
14529 original node might've been modified.
14530 * tree-inline.c (copy_bb): Do not assume that all clones are the same.
14531
14532 2009-06-08 Jakub Jelinek <jakub@redhat.com>
14533
14534 * tree-object-size.c (addr_object_size): Add OSI argument.
14535 Handle also INDIRECT_REF with SSA_NAME inside of it as base address.
14536 (compute_builtin_object_size, expr_object_size): Adjust callers.
14537 (plus_stmt_object_size): Call addr_object_size instead of
14538 compute_builtin_object_size.
14539
14540 2009-06-08 Ghassan Shobaki <ghassan.shobaki@amd.com>
14541 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
14542
14543 * tree-ssa-loop-prefetch.c
14544 (gather_memory_references): Introduced a counter for the number of
14545 memory references.
14546 (anything_to_prefetch_p): Introduced a counter for the number of
14547 prefetches.
14548 (is_loop_prefetching_profitable): New function with a cost model
14549 for prefetching.
14550 (loop_prefetch_arrays): Use the new cost model to determine if
14551 prefetching is profitable.
14552 * params.def (MIN_INSN_TO_PREFETCH_RATIO,
14553 PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
14554 * params.h (MIN_INSN_TO_PREFETCH_RATIO,
14555 PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
14556 * doc/invoke.texi (MIN_INSN_TO_PREFETCT_RATIO,
14557 PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
14558
14559 2009-06-08 Michael Matz <matz@suse.de>
14560
14561 PR debug/40012
14562 * cfgexpand.c (set_rtl): Store place also in DECL_RTL, if all
14563 partitions use the same.
14564 (expand_one_var): Deal with DECL_RTL sometimes begin set also
14565 for basevars of SSA_NAMEs.
14566 (expand_used_vars): Reset TREE_USED for basevars of SSA_NAMEs,
14567 to not expand them twice.
14568 (gimple_expand_cfg): Clear DECL_RTL for those decls that have
14569 multiple places.
14570
14571 2009-06-08 Alexandre Oliva <aoliva@redhat.com>
14572
14573 * common.opt (fcompare-debug=, fcompare-debug-second): New.
14574 (fdump-final-insns=, gtoggle): New.
14575 * doc/invoke.texi: Document them.
14576 * final.c (rest_of_clean_state): Dump final insn stream.
14577 * gcc.c (invoke_as): Hook in -fcompare-debug.
14578 (static_spec_functions): Add compare-debug-dump-opt,
14579 compare-debug-self-opt and compare-debug-auxbase-opt.
14580 (compare_debug, compare_debug_second, compare_debug_opt): New.
14581 (switches_debug_check, n_switches_debug_check): New.
14582 (debug_auxbase_opt, debug_check_temp_file): New.
14583 (process_command): Handle -fno-compare-debug, -fcompare-debug and
14584 -fcompare-debug=*.
14585 (do_self_spec): Handle arguments after switches.
14586 (do_spec_1): Add .gk extension to temp file basenames for compare.
14587 (check_live_switch): Take SWITCH_IGNORE into account, and earlier.
14588 (cc1_options): Use it instead of normal auxbase computation for
14589 the second compare-debug compilation.
14590 (compare_files): New.
14591 (main): Set up and implement compare debug mode.
14592 (compare_debug_dump_opt_spec_function): New.
14593 (compare_debug_self_opt_spec_function): New.
14594 (compare_debug_auxbase_opt_spec_function): New.
14595 * toplev.c (process_options): Handle flag_gtoggle,
14596 flag_dump_final_insns.
14597 * coverage.c (coverage_begin_output): Don't overwrite .gcno file
14598 during -fcompare-debug-second compilation.
14599
14600 2009-06-07 Ian Lance Taylor <iant@google.com>
14601
14602 * dwarf2.h (enum dwarf_location_atom): Add INTERNAL_DW_OP_tls_addr.
14603 * dwarf2out.c (INTERNAL_DW_OP_tls_addr): Don't #define.
14604
14605 * c-common.c (c_do_switch_warnings): Don't exit early for -Wswitch
14606 with no default node. Change warning with %H to warning_at.
14607 Don't clear warn_switch around case checking.
14608 * doc/invoke.texi (Warning Options): Clarify distinction between
14609 -Wswitch and -Wswitch-enum.
14610
14611 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14612
14613 * tree-pass.h (TODO_update_ssa_any): Document internal use only.
14614
14615 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14616
14617 * gbl-ctors.h: Add header guard.
14618
14619 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14620
14621 * tree-flow.h (make_value_handle, set_value_handle, sort_vuses,
14622 sort_vuses_heap, vn_lookup_or_add, vn_lookup_or_add_with_stmt,
14623 vn_lookup_or_add_with_vuses, vn_add, vn_add_with_vuses,
14624 vn_lookup_with_stmt, vn_lookup, vn_lookup_with_vuses): Remove
14625 prototypes for removed functions.
14626 (expressions_equal_p): Move to ...
14627 * tree-ssa-sccvn.h: ... here and ...
14628 * matrix-reorg.c: ... adjust includes.
14629
14630 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14631
14632 * ipa-struct-reorg.c (do_reorg_1): Fix whitespace in dump output.
14633
14634 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14635
14636 * c-decl.c (finish_decl): Use bool for variable was_incomplete.
14637 (finish_function): Remove erroneous whitespace.
14638
14639 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14640
14641 * tree-cfg.c (gimple_merge_blocks): Commentary typo fix.
14642 (verify_stmts): Print statement who's gimple_bb is set to a wrong BB
14643
14644 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14645
14646 * errors.c (internal_error): Commentary typo fix.
14647 * gimple-iterator.c (gsi_insert_seq_on_edge): Ditto.
14648 * tree-ssa-pre.c: Ditto.
14649
14650 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14651
14652 * basic-block.h (ENTRY_BLOCK, EXIT_BLOCK): Document that neither of
14653 them is supposed to hold actual statements.
14654
14655 2009-06-06 Ian Lance Taylor <iant@google.com>
14656
14657 * doc/extend.texi (Attribute Syntax): Document that C++ labels on
14658 empty statements can now have attributes.
14659
14660 2009-06-05 Shujing Zhao <pearly.zhao@oracle.com>
14661
14662 * config/mips/mips.c: Use REG_P and CONST_INT_P where applicable.
14663 * config/mips/mips.md: Ditto.
14664
14665 2009-06-05 Nathan Froyd <froydnj@codesourcery.com>
14666
14667 * config/rs6000/eabi.asm (__eabi_convert): Don't define if
14668 _RELOCATABLE.
14669 (__eabi_uconvert): Likewise.
14670
14671 2009-06-05 Nathan Froyd <froydnj@codesourcery.com>
14672
14673 * config/rs6000/ppc-asm.h: Protect auto-host.h inclusion and
14674 CFI_* definitions with IN_GCC.
14675
14676 2009-06-05 David Edelsohn <edelsohn@gnu.org>
14677
14678 * xcoffout.h (xcoffout_source_line): Update prototype.
14679
14680 2009-06-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14681
14682 * builtins.c (do_mpc_ckconv, do_mpc_arg1): Use
14683 mpc_realref/mpc_imagref instead of MPC_RE/MPC_IM.
14684
14685 2009-06-05 Jakub Jelinek <jakub@redhat.com>
14686
14687 PR middle-end/40340
14688 * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
14689 inlined_function_outer_scope_p blocks for artificial inlines
14690 even at -g0/-g1.
14691 * tree.c (tree_nonartificial_location): Rewrite using
14692 block_nonartificial_location.
14693
14694 2009-06-05 Revital Eres <eres@il.ibm.com>
14695 Leehod Baruch <leehod@il.ibm.com>
14696
14697 * expr.c (expand_assignment): Expand MISALIGNED_INDIRECT_REF.
14698 (expand_expr_real_1): Remove comment.
14699 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
14700 Vectorize misaligned access when the target supports it.
14701 (vect_supportable_dr_alignment): Check for unaligned access support.
14702 * tree-vect-stmts.c (vectorizable_store): Generate misaligned store
14703 and remove asset.
14704
14705 2009-06-05 Julian Brown <julian@codesourcery.com>
14706
14707 * config/arm/ieee754-df.S (cmpdf2): Avoid writing below SP.
14708 * config/arm/ieee754-sf.S (cmpsf2): Likewise.
14709
14710 2009-06-05 Richard Guenther <rguenther@suse.de>
14711
14712 PR bootstrap/40350
14713 * dwarf2out.c (dwarf2out_begin_function): Mark discriminator
14714 as possibly unused.
14715
14716 2009-06-05 Jakub Jelinek <jakub@redhat.com>
14717
14718 * config/s390/s390.c (global_not_special_regno_p): New static inline.
14719 (save_gprs): Don't tell unwinder when a global register is saved.
14720 (s390_emit_epilogue): Emit needed epilogue unwind info.
14721
14722 2009-06-05 Alexandre Oliva <aoliva@redhat.com>
14723
14724 * dwarf2out.c (deferred_asm_name): New.
14725 (add_name_and_src_coords_attributes): Defer creation of
14726 DW_AT_MIPS_linkage_name attribute if DECL_ASSEMBLER_NAME was not
14727 computed yet.
14728 (move_linkage_attr): New.
14729 (dwarf2out_finish): Revisit deferrals and emit attributes at the
14730 right place.
14731
14732 2009-06-05 Alexandre Oliva <aoliva@redhat.com>
14733
14734 * tree-nested.c (finalize_nesting_tree_1): Declare the
14735 frame_decl in the binding tree.
14736
14737 2009-06-04 Cary Coutant <ccoutant@google.com>
14738
14739 * basic-block.h (struct basic_block_def): Add discriminator field.
14740 * dbxout.c (dbxout_source_line): Add new parameter. Change all
14741 callers.
14742 * debug.c (do_nothing_debug_hooks): Add additional entry.
14743 (debug_nothing_int_charstar_int): New function.
14744 * debug.h (struct gcc_debug_hooks): Add parameter to source_line hook.
14745 (debug_nothing_int_charstar_int): New declaration.
14746 * dwarf2out.c (dwarf2out_source_line): Add new parameter. Write
14747 discriminator value in .loc directive.
14748 * final.c (last_discriminator): New variable.
14749 (discriminator): New variable.
14750 (final_start_function): Initialize above variables, pass current
14751 discriminator to debug hook.
14752 (notice_source_line): Check for discriminator change.
14753 * gimple-pretty-print.c (dump_bb_header): Print discriminator value.
14754 * sdbout.c (sdbout_source_line): New parameter.
14755 * tree-cfg.c (struct locus_discrim_map): New structure type.
14756 (discriminator_per_locus): New hash table.
14757 (build_gimple_cfg): Allocate and free discriminator hash table.
14758 (make_edges): Call assign_discriminator.
14759 (locus_map_hash): New function.
14760 (locus_map_eq): New function.
14761 (next_discriminator_for_locus): New function.
14762 (same_line_p): New function.
14763 (assign_discriminator): New function.
14764 (make_cond_expr_edges): Call assign_discriminator.
14765 (make_gimple_switch_edges): Likewise.
14766 (first_non_label_stmt): New function.
14767 * vmsdbgout.c (vmsdbgout_source_line): Add new parameter. Change
14768 all callers.
14769 * xcoffout.c (xcoffout_source_line): Add new parameter.
14770
14771 * configure.ac (gcc_cv_as_discriminator): New configury check for
14772 gas support for discriminator.
14773 * configure: Regenerate.
14774 * config.in: Regenerate.
14775
14776 2009-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14777
14778 * config/arm/arm.c (thumb2_legitimate_index_p): Initialize
14779 val after checking for integers.
14780
14781 2009-06-04 Uros Bizjak <ubizjak@gmail.com>
14782
14783 * config/i386/i386.h (X86_64_MS_REGPARM_MAX): Rename from
14784 X64_REGPARM_MAX.
14785 (REGPARM_MAX): Use X86_64_MS_REGPARM_MAX.
14786 (X86_64_MS_SSE_REGPARM_MAX): Rename from X64_SSE_REGPARM_MAX.
14787 (SSE_REGPARM_MAX): Use X86_64_MS_SSE_REGPARM_MAX.
14788 * config/i386/i386.c: Use X86_64_MS_REGPARM_MAX instead of
14789 X64_REGPARM_MAX. Use X86_64_MS_SSE_REGPARM_MAX instead of
14790 X64_SSE_REGPARM_MAX.
14791 * config/i386/i386.md: Use X86_64_MS_SSE_REGPARM_MAX instead of
14792 X64_SSE_REGPARM_MAX.
14793
14794 2009-06-04 Alexandre Oliva <aoliva@redhat.com>
14795
14796 * gcc.c (report_times_to_file): New.
14797 (execute): Implement it.
14798 (process_command): Support -time=.
14799 * doc/invoke.texi: Document it.
14800
14801 2009-06-04 Alexandre Oliva <aoliva@redhat.com>
14802
14803 * tree-ssa-live.c (remove_unused_scope_block_p): Keep variables
14804 that have value exprs.
14805
14806 2009-06-04 Alexandre Oliva <aoliva@redhat.com>
14807
14808 * dwarf2asm.c (dw2_force_const_mem): Defer creation of
14809 declarations for constants until...
14810 (dw2_output_indirect_constant_1): ... this point.
14811
14812 2009-06-04 Richard Earnshaw <rearnsha@arm.com>
14813
14814 PR target/10242
14815 * arm.md (arm_addsi3): Don't try to split an add with an
14816 eliminable register until after reload has completed.
14817
14818 2009-06-03 Ian Lance Taylor <iant@google.com>
14819
14820 * dummy-checksum.c (executable_checksum): Use EXPORTED_CONST.
14821 * genattrtab.c (write_length_unit_log): Likewise.
14822 * genchecksum.c (dosum): Likewise.
14823 * gengtype.c (write_rtx_next): Likewise.
14824 (finish_root_table, write_roots): Likewise.
14825 * gimple.c (gimple_ops_offset_): Likewise.
14826 * tree-nomudflap.c (gt_ggc_r_gt_tree_mudflap_h): Likewise.
14827 * config/arc/arc.c (arc_attribute_table): Likewise.
14828 * config/arm/arm.c (arm_attribute_table): Likewise.
14829 * config/avr/avr.c (avr_attribute_table): Likewise.
14830 * config/crx/crx.c (crx_attribute_table): Likewise.
14831 * config/m32r/m32r.c (m32r_attribute_table): Likewise.
14832 * config/m68hc11/m68hc11.c (m68hc11_attribute_table): Likewise.
14833 * config/mcore/mcore.c (mcore_attribute_table): Likewise.
14834 * config/rs6000/rs6000.c (rs6000_attribute_table): Likewise.
14835 * config/sh/sh.c (sh_attribute_table): Likewise.
14836 * config/sparc/sparc.c (sparc_attribute_table): Likewise.
14837 * config/spu/spu.c (spu_attribute_table): Likewise.
14838 * config/v850/v850.c (v850_attribute_table): Likewise.
14839
14840 * config/alpha/alpha.c (vms_attribute_table): Make static.
14841 * config/bfin/bfin.c (bfin_attribute_table): Likewise.
14842 * config/h8300/h8300.c (h8300_attribute_table): Likewise.
14843 * config/mips/mips.c (mips_attribute_table): Likewise.
14844
14845 * Makefile.in (dummy-checksum.o): Depend upon $(CONFIG_H) and
14846 $(SYSTEM_H).
14847 (cc1-checksum.o): Likewise.
14848
14849 2009-06-03 Steve Ellcey <sje@cup.hp.com>
14850
14851 * config/ia64/vect.md (*movv2sf_internal): Handle big endian case.
14852
14853 2009-06-03 Jakub Jelinek <jakub@redhat.com>
14854
14855 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Return generated
14856 insn if it is changing sp. Use gen_add3_insn instead of
14857 conditionally gen_addsi3 and gen_adddi3.
14858 (offset_below_red_zone_p): New static inline function.
14859 (rs6000_emit_epilogue): Emit needed epilogue unwind info.
14860 Use gen_add3_insn instead of conditionally gen_addsi3 and gen_adddi3.
14861 * config/rs6000/ppc-asm.h: Include auto-host.h.
14862 (CFI_STARTPROC, CFI_ENDPROC, CFI_DEF_CFA_REGISTER, CFI_OFFSET,
14863 CFI_RESTORE): Define.
14864 * config/rs6000/crtresxgpr.asm: Add unwind info.
14865 * config/rs6000/crtresxfpr.asm: Likewise.
14866 * config/rs6000/crtresgpr.asm: Likewise.
14867 * config/rs6000/crtresfpr.asm: Likewise.
14868 * config/rs6000/crtsavgpr.asm: Likewise.
14869 * config/rs6000/crtsavfpr.asm: Likewise.
14870
14871 * dwarf2out.c (output_cfi_directive): Pass 1 instead of 0 to second
14872 argument of DWARF2_FRAME_REG_OUT macros.
14873
14874 2009-06-03 Julian Brown <julian@codesourcery.com>
14875
14876 * config/arm/arm.c (arm_hard_regno_mode_ok): Permit values of four
14877 words or less (including TImode) in core registers.
14878
14879 2009-06-03 Richard Guenther <rguenther@suse.de>
14880
14881 PR middle-end/40328
14882 * fold-const.c (fold_convert): Fold the build COMPLEX_EXPR.
14883
14884 2009-06-03 Andrey Belevantsev <abel@ispras.ru>
14885
14886 * statistics.c (statistics_counter_event): Do not record event
14887 in pass dump if its number == -1.
14888 (curr_statistics_hash): Add assert that we never get passes
14889 with static number == -1.
14890
14891 2009-06-03 Richard Guenther <rguenther@suse.de>
14892 Andrey Belevantsev <abel@ispras.ru>
14893
14894 * cfgexpand.c (discover_nonconstant_array_refs_r): Make only
14895 non-BLKmode arrays addressable.
14896
14897 2009-06-03 Maxim Kuvyrkov <maxim@codesourcery.com>
14898
14899 * config/m68k/linux.h (HAVE_GAS_BALIGN_AND_P2ALIGN): Move to ...
14900 * config/m68k/m68k.h: ... here.
14901
14902 2009-06-03 Martin Jambor <mjambor@suse.cz>
14903
14904 PR tree-optimization/40323
14905 * ipa-prop.c (get_ssa_def_if_simple_copy): Break if not single
14906 assignment.
14907
14908 2009-06-03 Richard Guenther <rguenther@suse.de>
14909
14910 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
14911 consistently.
14912
14913 2009-06-03 Shujing Zhao <pearly.zhao@oracle.com>
14914
14915 * config/sh/predicates.md: Use REG_P, MEM_P, CONST_INT_P, LABEL_P,
14916 JUMP_P, CALL_P, NONJUMP_INSN_P, NOTE_P, BARRIER_P and
14917 JUMP_TABLE_DATA_P where applicable.
14918 * config/sh/sh.c: Ditto.
14919 * config/sh/sh.h: Ditto.
14920 * config/sh/sh.md: Ditto.
14921 * config/sh/symbian.c: Ditto.
14922
14923 2009-06-03 Uros Bizjak <ubizjak@gmail.com>
14924
14925 * config/i386/driver-i386.c (describe_cache): Optimize
14926 concatenation of strings. Use snprintf instead of sprintf.
14927 (host_detect_local_cpu): Ditto. Ignore -march and -mtune for native
14928 target when not compiling with GCC.
14929
14930 2009-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
14931
14932 * config/sh/sh.c: Revert last change.
14933 (sh_expand_epilogue): Emit a blockage insn before the frame
14934 pointer adjustment unconditionally.
14935
14936 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
14937
14938 * config/pa/pa-hpux.h (LINK_SPEC): Remove "%<fwhole-program".
14939 * config/pa/pa-hpux10.h (LINK_SPEC): Likewise.
14940 * config/pa/pa-hpux11.h (LINK_SPEC): Likewise.
14941 * gcc.c (set_collect_gcc_options): Don't add -fwhole-program
14942 to COLLECT_GCC_OPTIONS.
14943
14944 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
14945
14946 * collect2.c (target_system_root): New variable.
14947 (main): Handle --sysroot=.
14948 (ignore_library): Strip the sysroot from the library path.
14949
14950 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
14951
14952 * Makefile.in (COLLECT2_OBJS): Add collect2-aix.o.
14953 (collect2.o): Depend on collect2-aix.h.
14954 (collect2-aix.o): New rule.
14955 * collect2-aix.h: New file.
14956 * collect2-aix.c: Likewise.
14957 * collect2.c: Include collect2-aix.h. Don't undefine
14958 OBJECT_FORMAT_COFF if CROSS_AIX_SUPPORT is defined.
14959 Guard native includes with #ifndef CROSS_DIRECTORY_STRUCTURE.
14960 Use TARGET_AIX_VERSION instead of _AIX51.
14961 * config/rs6000/aix43.h (TARGET_AIX_VERSION): Define.
14962 * config/rs6000/aix51.h (TARGET_AIX_VERSION): Likewise.
14963 * config/rs6000/aix52.h (TARGET_AIX_VERSION): Likewise.
14964 * config/rs6000/aix53.h (TARGET_AIX_VERSION): Likewise.
14965 * config/rs6000/aix61.h (TARGET_AIX_VERSION): Likewise.
14966
14967 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
14968
14969 * collect2.c (ignore_library): Avoid premature post-increment
14970 and null deference.
14971
14972 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
14973
14974 * Makefile.in (libgcc.mvars): Add TARGET_SYSTEM_ROOT.
14975 * config/rs6000/aix.h (LINK_SYSCALLS_SPEC): Add %R to the
14976 !CROSS_DIRECTORY_STRUCTURE alternative and use it for
14977 CROSS_DIRECTORY_STRUCTURE too.
14978 (LINK_LIBG_SPEC): Likewise.
14979 (LIB_SPEC): Add %R to sysroot paths.
14980 * config/rs6000/aix43.h (CPP_SPEC): Add %R to sysroot paths.
14981 (CPLUSPLUS_CPP_SPEC, LIB_SPEC): Likewise.
14982 * config/rs6000/aix51.h: As for aix43.h.
14983 * config/rs6000/aix52.h: Likewise.
14984 * config/rs6000/aix53.h: Likewise.
14985 * config/rs6000/aix61.h: Likewise.
14986 * config/rs6000/t-aix52 (SHLIB_LINK): Add $(TARGET_SYSTEM_ROOT)
14987 to the beginning of sysroot paths.
14988
14989 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
14990
14991 * print_rtl (print_rtx): Don't print modes in EXPR_LISTs and
14992 INSN_LISTs that are out of the REG_NOTE range.
14993
14994 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
14995
14996 * loop-unroll.c (struct iv_to_split): Add pointer to next.
14997 (struct var_to_expand): Likewise.
14998 (struct opt_info): Add head and tail for linked lists of the above.
14999 (analyze_insn_to_expand_var): Initialize next.
15000 (analyze_iv_to_split_insn): Likewise.
15001 (analyze_insns_in_loop): Create linked lists.
15002 (allocate_basic_variable): Simplify for use without hash table.
15003 (insert_var_expansion_initialization): Likewise, make it type-safer.
15004 (combine_var_copies_in_loop_exit): Likewise.
15005 (apply_opt_in_copies): Walk lists rather than hash tables.
15006 (release_var_copies): Simplified and inlined by hand into...
15007 (free_opt_info): ... this function.
15008
15009 2009-06-02 Richard Guenther <rguenther@suse.de>
15010
15011 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
15012 for field decls.
15013
15014 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
15015
15016 * cfgexpand.c (gimple_expand_cfg): Discard the source location
15017 only for builtins that are not overridden.
15018
15019 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
15020
15021 * gengtype.c (adjust_field_rtx_def): Add NOTE_INSN_DELETED_LABEL's
15022 label string.
15023
15024 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
15025
15026 * df-core.c (df_ref_debug): Honor -fdump-noaddr.
15027
15028 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
15029
15030 * combine.c (move_deaths): Compare LUIDs within the same BB only.
15031
15032 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
15033
15034 * common.opt (fdump-unnumbered-links): New.
15035 * doc/invoke.texi (-fdump-unnumbered-links): Document it.
15036 * print-rtl.c (flag_dump_unnumbered_links): New.
15037 (print_rtx): Test it.
15038
15039 2009-06-02 Richard Earnshaw <rearnsha@arm.com>
15040
15041 * arm.c (arm_get_frame_offsets): Prefer using r3 for padding a
15042 push/pop multiple to 8-byte alignment.
15043
15044 2009-06-01 Jakub Jelinek <jakub@redhat.com>
15045
15046 * config/i386/i386.c (queued_cfa_restores): New static variable.
15047 (ix86_add_cfa_restore_note, ix86_add_queued_cfa_restore_notes): New
15048 functions.
15049 (pro_epilogue_adjust_stack): Call ix86_add_queued_cfa_restore_notes.
15050 (ix86_emit_restore_reg_using_pop): Add RED_OFFSET argument.
15051 Set RTX_FRAME_RELATED_P immediately after adding a REG_CFA_* note.
15052 Call ix86_add_cfa_restore_note instead of adding REG_CFA_OFFSET
15053 note unconditionally.
15054 (ix86_emit_restore_regs_using_mov): Likewise.
15055 (ix86_emit_restore_sse_regs_using_mov): Likewise.
15056 (ix86_emit_restore_regs_using_pop): Add RED_OFFSET argument, pass
15057 it through to ix86_emit_restore_reg_using_pop.
15058 (ix86_emit_leave): Add RED_OFFSET argument. Call
15059 ix86_add_queued_cfa_restore_notes. Call ix86_add_cfa_restore_note
15060 instead of adding REG_CFA_OFFSET note unconditionally.
15061 (ix86_expand_epilogue): Compute RED_OFFSET, pass it down to
15062 the above functions. Call ix86_add_queued_cfa_restore_notes when
15063 needed.
15064
15065 * dwarf2out.c (dwarf2out_cfi_label): Add FORCE argument, if true,
15066 force output of the label even for dwarf2out_do_cfi_asm.
15067 (add_fde_cfi): If -g2 and above and cfi might change CFA,
15068 force creation of CFI label and chain DW_CFA_set_loc jumping to it
15069 for convert_cfa_to_fb_loc_list. Adjust other dwarf2out_cfi_label
15070 caller.
15071 (dwarf2out_stack_adjust, dwarf2out_frame_debug,
15072 dwarf2out_begin_epilogue, dwarf2out_frame_debug_restore_state): Adjust
15073 dwarf2out_cfi_label callers.
15074 * tree.h (dwarf2out_cfi_label): Adjust prototype.
15075 * config/arm/arm.c (thumb_pushpop, thumb1_output_function_prologue):
15076 Adjust dwarf2out_cfi_label callers.
15077 * config/vax/vax.c (vax_output_function_prologue): Likewise.
15078
15079 * config/i386/i386.h (struct machine_cfa_state,
15080 struct machine_function): Guard with ifndef USED_FOR_TARGET
15081 instead of not IN_LIBGCC2 and not in IN_TARGET_LIBS.
15082
15083 PR other/40024
15084 * emutls.c (__emutls_get_address): Change arr->size to mean number
15085 of allocated arr->data entries instead of # of slots + 1.
15086
15087 PR middle-end/40316
15088 * recog.c (peep2_reinit_state): New function.
15089 (peephole2_init_state): Use it at the end of a basic block and also
15090 when seeing a RTX_FRAME_RELATED_P insn.
15091
15092 2009-06-01 Steve Ellcey <sje@cup.hp.com>
15093
15094 * ia64.md (floatdirf2, fix_truncrfdi, floatunsdirf,
15095 fixuns_truncrfdi2): New.
15096 (fix_truncxfdi2_alts, fixuns_truncxfdi2_alts,
15097 *nmaddsf4_alts, *nmadddf4_alts, *nmadddf4_truncsf_alts,
15098 *mulxf3_alts, *mulxf3_truncsf_alts, *mulxf3_truncdf_alts,
15099 *maddxf4_alts, *maddxf4_alts_truncsf, *maddxf4_alts_truncdf,
15100 *nmaddxf4_alts, *nmaddxf4_truncsf_alts, *nmaddxf4_truncdf_alts,
15101 *recip_approx): Remove.
15102 (divsi3 modsi3, udivsi3, umodsi3, divsi3_internal, divdi3,
15103 moddi3, udivdi3, umoddi3, divdi3_internal_lat, divdi3_internal_thr,
15104 divsf3, sqrtsf2, divdf3, sqrtdf2, divxf3, sqrtxf2): Modify and
15105 move to div.md.
15106 * div.md (fix_truncrfdi2_alts, fixuns_truncrfdi2_alt,
15107 setf_exp_rf): New.
15108
15109 2009-06-01 Ian Lance Taylor <iant@google.com>
15110
15111 * attribs.c (register_attribute): Use CONST_CAST.
15112 * collect2.c (main): Use CONST_CAST2.
15113 (scan_prog_file): Likewise.
15114 * gcc.c (process_command, main): Likewise.
15115 * toplev.c (toplev_main): Likewise.
15116
15117 * c-typeck.c (handle_warn_cast_qual): New static function,
15118 partially broken out of build_c_cast.
15119 (build_c_cast): Call handle_warn_cast_qual.
15120 * doc/invoke.texi (Warning Options): Document new effect of
15121 -Wcast-qual.
15122
15123 2009-06-01 Aldy Hernandez <aldyh@redhat.com>
15124
15125 * diagnostic.c (diagnostic_build_prefix): Always print columns.
15126 (diagnostic_report_current_module): Print columns.
15127 * common.opt (flag_show_column): Enable by default.
15128
15129 2009-06-01 Luis Machado <luisgpm@br.ibm.com>
15130
15131 * alias.c (find_base_term): Check for NULL term before returning.
15132
15133 2009-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
15134
15135 Revert due to PR40320:
15136 2009-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
15137 * calls.c (emit_library_call_value_1): Don't force_operand for move
15138 and push insns.
15139
15140 2009-06-01 Olivier Hainque <hainque@adacore.com>
15141 Eric Botcazou <ebotcazou@adacore.com>
15142
15143 * tree.h (CONSTRUCTOR_BITFIELD_P): True if NODE, a FIELD_DECL, is
15144 to be processed as a bitfield for constructor output purposes.
15145 * output.h (initializer_constant_valid_for_bitfield_p): Declare
15146 new function.
15147 * varasm.c (oc_local_state): New type, output_constructor
15148 local state to support communication with helpers.
15149 (oc_outer_state): New type, output_constructor outer state of
15150 relevance in recursive calls.
15151 (output_constructor_array_range): New output_constructor helper,
15152 extracted code for an array range element.
15153 (output_constructor_regular_field): New output_constructor helper,
15154 extracted code for an element that is not a bitfield.
15155 (output_constructor_bitfield): New output_constructor helper,
15156 extracted code for a bitfield element. Accept an OUTER state
15157 argument for recursive processing. Recurse on record or array
15158 CONSTRUCTOR values, possibly past noop conversions.
15159 (initializer_constant_valid_for_bitfield_p): New predicate. Whether
15160 VALUE is a valid constant-valued expression for use in a static
15161 bit-field initializer.
15162 (output_constructor): Rework to use helpers. Accept and honor an
15163 OUTER state argument for recursive calls. Return total size. Be
15164 prepared for nested constructors initializing bitfields.
15165 (output_constant): Feed OUTER in calls to output_constructor.
15166
15167 2009-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
15168
15169 * calls.c (emit_library_call_value_1): Don't force_operand for move
15170 and push insns.
15171
15172 2009-06-01 Nick Clifton <nickc@redhat.com>
15173
15174 * doc/invoke.texi (IA-64 Options): Fix typo.
15175
15176 2009-06-01 Ira Rosen <irar@il.ibm.com>
15177
15178 PR tree-optimization/39129
15179 * tree-vect-loop-manip.c (conservative_cost_threshold): Change the
15180 printed message.
15181 (vect_do_peeling_for_loop_bound): Use
15182 LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
15183 LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
15184 (vect_loop_versioning): Likewise.
15185 (vect_create_cond_for_alias_checks): Fix indentation.
15186 * tree-vectorizer.h (struct _loop_vec_info): Fix indentation of the
15187 macros.
15188 (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT): Define.
15189 (LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Likewise.
15190 * tree-vect-loop.c (vect_analyze_loop_form): Change "too many BBs" to
15191 "control flow in loop".
15192 (vect_estimate_min_profitable_iters): Use
15193 LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
15194 LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
15195 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
15196 (vect_create_data_ref_ptr): Don't mention array dimension in printing.
15197 * tree-vect-stmts.c (vectorizable_store): Replace the check that the
15198 statement belongs to a group of strided accesses with the exact code
15199 check.
15200 (vectorizable_load): Likewise.
15201 * tree-vect-slp.c (vect_analyze_slp_instance): Spell out "basic block".
15202 (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
15203
15204 2009-06-01 Gerald Pfeifer <gerald@pfeifer.com>
15205
15206 * config/freebsd-stdint.h: New file.
15207 * config.gcc (*-*-freebsd): Set use_gcc_stdint=wrap.
15208 Add freebsd-stdint.h to tm_file.
15209
15210 2009-06-01 Richard Earnshaw <rearnsha@arm.com>
15211
15212 * arm/thumb2.md (thumb2_zero_extendhidi2): New insn and split.
15213 (thumb2_extendhidi2): Likewise.
15214
15215 2009-05-31 Ian Lance Taylor <iant@google.com>
15216
15217 * regstat.c (regstat_n_sets_and_refs): Remove duplicate definition.
15218
15219 2009-05-31 Ian Lance Taylor <iant@google.com>
15220
15221 * Makefile.in (except.o): Depend upon gt-except.h, not gt-$(EXCEPT_H).
15222 (ipa-cp.o): Depend upon $(FIBHEAP_H) and $(PARAMS_H).
15223 (ipa-reference.o): Depend upon gt-ipa-reference.h.
15224
15225 2009-05-31 Jason Merrill <jason@redhat.com>
15226
15227 * tree-pretty-print.c (print_call_name): Take the callee, not the
15228 call itself. Make non-static. Use dump_function_name for functions.
15229 (dump_generic_node): Adjust.
15230 * diagnostic.h: Declare print_call_name.
15231 * gimple-pretty-print.c (dump_gimple_call): Use it.
15232
15233 2009-05-31 Kaz Kojima <kkojima@gcc.gnu.org>
15234
15235 * config/sh/sh.md (ashldi3_std): New define_expand.
15236 (ashldi3): Use it.
15237
15238 2009-05-31 Kaz Kojima <kkojima@gcc.gnu.org>
15239
15240 PR target/40313
15241 * config/sh/sh.c: Include debug.h.
15242 (sh_expand_epilogue): Emit a blockage insn before the frame
15243 pointer adjustment also when dwarf2out_do_frame returns true.
15244
15245 2009-05-31 Richard Earnshaw <rearnsha@arm.com>
15246
15247 * arm/thumb2.md (thumb2_extendsidi2): Add a split sub-pattern.
15248 (thumb2_extendqidi2): New pattern.
15249
15250 2009-05-31 Ira Rosen <irar@il.ibm.com>
15251
15252 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
15253 mark phis for renaming.
15254 * tree-vectorizer.c (vect_memsyms_to_rename): Remove.
15255 (vectorize_loops): Don't allocate and free vect_memsyms_to_rename.
15256 Call mark_sym_for_renaming.
15257 * tree-vectorizer.h (vect_memsyms_to_rename): Remove.
15258 * tree-vect-loop.c (vect_transform_loop): Remove
15259 vect_memsyms_to_rename initialization and a call to
15260 mark_set_for_renaming.
15261
15262 2009-05-31 Jakub Jelinek <jakub@redhat.com>
15263
15264 PR middle-end/40304
15265 * config/i386/i386.c (pro_epilogue_adjust_stack): Mark insns
15266 frame related even if !set_cfa && style < 0.
15267
15268 2009-05-30 Kai Tietz <kai.tietz@onevision.com>
15269
15270 * config/i386/mingw-tls.c: New file.
15271 * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Add mingw-tls.c file.
15272 * gthr-win32.h (MINGW32_SUPPORTS_MT_EH): Define it for targets
15273 defining _WIN32 but not __CYGWIN__.
15274
15275 2009-05-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15276
15277 * configure.ac: Add MPC support.
15278
15279 * config.in, configure: Regenerate.
15280
15281 2009-05-29 Richard Henderson <rth@redhat.com>
15282
15283 * cfgcleanup.c (try_crossjump_to_edge): Only skip past
15284 NOTE_INSN_BASIC_BLOCK.
15285 * cfglayout.c (duplicate_insn_chain): Copy epilogue insn marks.
15286 Duplicate NOTE_INSN_EPILOGUE_BEG notes.
15287 * cfgrtl.c (can_delete_note_p): Allow NOTE_INSN_EPILOGUE_BEG
15288 to be deleted.
15289 * dwarf2out.c (struct cfa_loc): Change indirect field to bitfield,
15290 add in_use field.
15291 (add_cfi): Disable check redefining cfa away from drap.
15292 (lookup_cfa_1): Add remember argument; handle remember/restore.
15293 (lookup_cfa): Pass remember argument.
15294 (cfa_remember): New.
15295 (compute_barrier_args_size_1): Remove sibcall check.
15296 (dwarf2out_frame_debug_def_cfa): New.
15297 (dwarf2out_frame_debug_adjust_cfa): New.
15298 (dwarf2out_frame_debug_cfa_offset): New.
15299 (dwarf2out_frame_debug_cfa_register): New.
15300 (dwarf2out_frame_debug_cfa_restore): New.
15301 (dwarf2out_frame_debug): Handle REG_CFA_* notes.
15302 (dwarf2out_begin_epilogue): New.
15303 (dwarf2out_frame_debug_restore_state): New.
15304 (dw_cfi_oprnd1_desc): Handle DW_CFA_remember_state,
15305 DW_CFA_restore_state.
15306 (output_cfi_directive): Likewise.
15307 (convert_cfa_to_fb_loc_list): Likewise.
15308 (dw_cfi_oprnd1_desc): Handle DW_CFA_restore.
15309 * dwarf2out.h: Update.
15310 * emit-rtl.c (try_split): Don't split RTX_FRAME_RELATED_P.
15311 (copy_insn_1): Early out for null.
15312 * final.c (final_scan_insn): Call dwarf2out_begin_epilogue
15313 and dwarf2out_frame_debug_restore_state.
15314 * function.c (prologue, epilogue, sibcall_epilogue): Remove.
15315 (prologue_insn_hash, epilogue_insn_hash): New.
15316 (free_after_compilation): Adjust freeing accordingly.
15317 (record_insns): Create hash table if needed; push insns into
15318 hash instead of array.
15319 (maybe_copy_epilogue_insn): New.
15320 (contains): Search hash table instead of array.
15321 (sibcall_epilogue_contains): Remove.
15322 (thread_prologue_and_epilogue_insns): Split eh_return insns
15323 and mark them as epilogues.
15324 (reposition_prologue_and_epilogue_notes): Rewrite epilogue
15325 scanning in terms of basic blocks.
15326 * insn-notes.def (CFA_RESTORE_STATE): New.
15327 * jump.c (returnjump_p_1): Accept EH_RETURN.
15328 (eh_returnjump_p_1, eh_returnjump_p): New.
15329 * reg-notes.def (CFA_DEF_CFA, CFA_ADJUST_CFA, CFA_OFFSET,
15330 CFA_REGISTER, CFA_RESTORE): New.
15331 * rtl.def (EH_RETURN): New.
15332 * rtl.h (eh_returnjump_p, maybe_copy_epilogue_insn): Declare.
15333
15334 * config/bfin/bfin.md (UNSPEC_VOLATILE_EH_RETURN): Remove.
15335 (eh_return_internal): Use eh_return rtx; split w/ epilogue.
15336
15337 * config/i386/i386.c (gen_push): Update cfa state.
15338 (pro_epilogue_adjust_stack): Add set_cfa argument. When true,
15339 add a CFA_ADJUST_CFA note.
15340 (ix86_dwarf_handle_frame_unspec): Remove.
15341 (ix86_expand_prologue): Update cfa state.
15342 (ix86_emit_restore_reg_using_pop): New.
15343 (ix86_emit_restore_regs_using_pop): New.
15344 (ix86_emit_leave): New.
15345 (ix86_emit_restore_regs_using_mov): Add CFA_RESTORE notes.
15346 (ix86_expand_epilogue): Add notes for unwinding the epilogue.
15347 * config/i386/i386.h (struct machine_cfa_state): New.
15348 (ix86_cfa_state): New.
15349 * config/i386/i386.md (UNSPEC_EH_RETURN): Remove.
15350 (eh_return_internal): Merge from eh_return_<mode>,
15351 use eh_return rtx, split w/ epilogue.
15352
15353 2009-05-29 Ian Lance Taylor <iant@google.com>
15354
15355 * builtins.c (validate_gimple_arglist): Don't use va_arg with
15356 enum type.
15357 * calls.c (emit_library_call_value_1): Likewise.
15358
15359 * c-typeck.c (c_build_va_arg): New function.
15360 * c-tree.h (c_build_va_arg): Declare.
15361 * c-parser.c (c_parser_postfix_expression): Call c_build_va_arg
15362 instead of build_va_arg.
15363
15364 2009-05-29 Eric Botcazou <ebotcazou@adacore.com>
15365
15366 * tree-ssa-loop-ivopts.c (strip_offset_1) <MULT_EXPR>: New case.
15367 (force_expr_to_var_cost) <NEGATE_EXPR>: Likewise.
15368 (ptr_difference_cost): Use affine combinations to compute it.
15369 (difference_cost): Likewise.
15370 (get_computation_cost_at): Compute more accurate cost for addresses
15371 if the ratio is a multiplier allowed in addresses.
15372 For non-addresses, consider that an additional offset or symbol is
15373 added only once.
15374
15375 2009-05-29 Jakub Jelinek <jakub@redhat.com>
15376
15377 * config/i386/i386.c (ix86_decompose_address): Avoid useless
15378 0 displacement. Add 0 displacement if base is %[er]bp or %r13.
15379
15380 * config/i386/i386.md (prefix_data16, prefix_rep): Set to 0 for
15381 TYPE_SSE{MULADD,4ARG,IADD1,CVT1} by default.
15382 (prefix_rex): For UNIT_MMX don't imply the prefix by default
15383 if MODE_DI.
15384 (prefix_extra): Default to 2 for TYPE_SSE{MULADD,4ARG} and
15385 to 1 for TYPE_SSE{IADD1,CVT1}.
15386 (prefix_vex_imm8): Removed.
15387 (length_vex): Only pass 1 as second argument to
15388 ix86_attr_length_vex_default if prefix_extra is 0.
15389 (modrm): For TYPE_INCDEC only set to 0 if not TARGET_64BIT.
15390 (length): For prefix vex computation use length_immediate
15391 attribute instead of prefix_vex_imm8.
15392 (cmpqi_ext_3_insn, cmpqi_ext_3_insn_rex64,
15393 addqi_ext_1, addqi_ext_1_rex64, *testqi_ext_0, andqi_ext_0,
15394 *andqi_ext_0_cc, *iorqi_ext_0, *xorqi_ext_0, *xorqi_cc_ext_1,
15395 *xorqi_cc_ext_1_rex64): Override modrm attribute to 1.
15396 (extendsidi2_rex64, extendhidi2, extendqidi2, extendhisi2,
15397 *extendhisi2_zext, extendqihi2, extendqisi2, *extendqisi2_zext): Emit
15398 a space in between the operands.
15399 (*anddi_1_rex64, *andsi_1): Likewise. Override prefix_rex to 1
15400 if one operand is 0xff and the other one si, di, bp or sp.
15401 (*andhi_1): Override prefix_rex to 1 if one operand is 0xff and the
15402 other one si, di, bp or sp.
15403 (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Add mode attribute.
15404 (*ffssi_1, *ffsdi_1, ctzsi2, ctzdi2): Add
15405 type and mode attributes.
15406 (*bsr, *bsr_rex64, *bsrhi): Add type attribute.
15407 (*cmpfp_i_mixed, *cmpfp_iu_mixed): For TYPE_SSECOMI, clear
15408 prefix_rep attribute and set prefix_data16 attribute iff MODE_DF.
15409 (*cmpfp_i_sse, *cmpfp_iu_sse): Clear prefix_rep attribute and set
15410 prefix_data16 attribute iff MODE_DF.
15411 (*movsi_1): For TYPE_SSEMOV MODE_SI set prefix_data16 attribute.
15412 (fix_trunc<mode>di_sse): Set prefix_rex attribute.
15413 (*adddi_4_rex64, *addsi_4): Use const128_operand instead of
15414 constm128_operand in length_immediate computation.
15415 (*addhi_4): Likewise. Fix mode attribute to MODE_HI.
15416 (anddi_1_rex64): Use movzbl/movzwl instead of movzbq/movzwq.
15417 (*avx_ashlti3, sse2_ashlti3, *avx_lshrti3, sse2_lshrti3): Set
15418 length_immediate attribute to 1.
15419 (x86_fnstsw_1, x86_fnstcw_1, x86_fldcw_1): Fix length attribute.
15420 (*movdi_1_rex64): Override prefix_rex or prefix_data16 attributes
15421 for certain alternatives.
15422 (*movdf_nointeger, *movdf_integer_rex64, *movdf_integer): Override
15423 prefix_data16 attribute if MODE_V1DF.
15424 (*avx_setcc<mode>, *sse_setcc<mode>, *sse5_setcc<mode>): Set
15425 length_immediate to 1.
15426 (set_got_rex64, set_rip_rex64): Remove length attribute, set
15427 length_address to 4, set mode attribute to MODE_DI.
15428 (set_got_offset_rex64): Likewise. Set length_immediate to 0.
15429 (fxam<mode>2_i387): Set length attribute to 4.
15430 (*prefetch_sse, *prefetch_sse_rex, *prefetch_3dnow,
15431 *prefetch_3dnow_rex): Override length_address attribute.
15432 (sse4_2_crc32<mode>): Override prefix_data16 and prefix_rex
15433 attributes.
15434 * config/i386/predicates.md (ext_QIreg_nomode_operand): New predicate.
15435 (constm128_operand): Removed.
15436 * config/i386/i386.c (memory_address_length): For
15437 disp && !index && !base in 64-bit mode account for SIB byte if
15438 print_operand_address can't optimize disp32 into disp32(%rip)
15439 and UNSPEC doesn't imply (%rip) addressing. Add 1 to length
15440 for fs: or gs: segment.
15441 (ix86_attr_length_immediate_default): When checking if shortform
15442 is possible, truncate immediate to the length of the non-shortened
15443 immediate.
15444 (ix86_attr_length_address_default): Ignore MEM_P operands
15445 with X constraint.
15446 (ix86_attr_length_vex_default): Only check for DImode on
15447 GENERAL_REG_P operands.
15448 * config/i386/sse.md (<sse>_comi, <sse>_ucomi): Clear
15449 prefix_rep attribute, set prefix_data16 attribute iff MODE_DF.
15450 (sse_cvttps2pi): Clear prefix_rep attribute.
15451 (sse2_cvttps2dq, *sse2_cvtpd2dq, sse2_cvtps2pd): Clear prefix_data16
15452 attribute.
15453 (*sse2_cvttpd2dq): Don't clear prefix_rep attribute.
15454 (*avx_ashr<mode>3, ashr<mode>3, *avx_lshr<mode>3, lshr<mode>3,
15455 *avx_ashl<mode>3, ashl<mode>3): Set length_immediate attribute to 1
15456 iff operand 2 is const_int_operand.
15457 (*vec_dupv4si, avx_shufpd256_1, *avx_shufpd_<mode>,
15458 sse2_shufpd_<mode>): Set length_immediate attribute to 1.
15459 (sse2_pshufd_1): Likewise. Set prefix attribute to maybe_vex
15460 instead of vex.
15461 (sse2_pshuflw_1, sse2_pshufhw_1): Set length_immediate to 1 and clear
15462 prefix_data16.
15463 (sse2_unpckhpd, sse2_unpcklpd, sse2_storehpd, *vec_concatv2df): Set
15464 prefix_data16 attribute for movlpd and movhpd instructions.
15465 (sse2_loadhpd, sse2_loadlpd, sse2_movsd): Likewise. Override
15466 length_immediate for shufpd instruction.
15467 (sse2_movntsi, sse3_lddqu): Clear prefix_data16 attribute.
15468 (avx_cmpp<avxmodesuffixf2c><mode>3,
15469 avx_cmps<ssemodesuffixf2c><mode>3, *avx_maskcmp<mode>3,
15470 <sse>_maskcmp<mode>3, <sse>_vmmaskcmp<mode>3,
15471 avx_shufps256_1, *avx_shufps_<mode>, sse_shufps_<mode>,
15472 *vec_dupv4sf_avx, *vec_dupv4sf): Set length_immediate attribute to 1.
15473 (*avx_cvtsi2ssq, *avx_cvtsi2sdq): Set length_vex attribute to 4.
15474 (sse_cvtsi2ssq, sse2_cvtsi2sdq): Set prefix_rex attribute to 1.
15475 (sse2_cvtpi2pd, sse_loadlps, sse2_storelpd): Override
15476 prefix_data16 attribute for the first alternative to 1.
15477 (*avx_loadlps): Override length_immediate for the first alternative.
15478 (*vec_concatv2sf_avx): Override length_immediate and prefix_extra
15479 attributes for second alternative.
15480 (*vec_concatv2sf_sse4_1): Override length_immediate and
15481 prefix_data16 attributes for second alternative.
15482 (*vec_setv4sf_avx, *avx_insertps, vec_extract_lo_<mode>,
15483 vec_extract_hi_<mode>, vec_extract_lo_v16hi,
15484 vec_extract_hi_v16hi, vec_extract_lo_v32qi,
15485 vec_extract_hi_v32qi): Set prefix_extra and length_immediate to 1.
15486 (*vec_setv4sf_sse4_1, sse4_1_insertps, *sse4_1_extractps): Set
15487 prefix_data16 and length_immediate to 1.
15488 (*avx_mulv2siv2di3, *avx_mulv4si3, sse4_2_gtv2di3): Set prefix_extra
15489 to 1.
15490 (*avx_<code><mode>3, *avx_eq<mode>3, *avx_gt<mode>3): Set
15491 prefix_extra attribute for variants that don't have 0f prefix alone.
15492 (*avx_pinsr<ssevecsize>): Likewise. Set length_immediate to 1.
15493 (*sse4_1_pinsrb, *sse2_pinsrw, *sse4_1_pinsrd, *sse4_1_pextrb,
15494 *sse4_1_pextrb_memory, *sse2_pextrw, *sse4_1_pextrw_memory,
15495 *sse4_1_pextrd): Set length_immediate to 1.
15496 (*sse4_1_pinsrd): Likewise. Set prefix_extra to 1.
15497 (*sse4_1_pinsrq, *sse4_1_pextrq): Set prefix_rex and length_immediate
15498 to 1.
15499 (*vec_extractv2di_1_rex64_avx, *vec_extractv2di_1_rex64,
15500 *vec_extractv2di_1_avx, *vec_extractv2di_1_sse2): Override
15501 length_immediate to 1 for second alternative.
15502 (*vec_concatv2si_avx, *vec_concatv2di_rex64_avx): Override
15503 prefix_extra and length_immediate attributes for the first
15504 alternative.
15505 (vec_concatv2si_sse4_1): Override length_immediate to 1 for the
15506 first alternative.
15507 (*vec_concatv2di_rex64_sse4_1): Likewise. Override prefix_rex
15508 to 1 for the first and third alternative.
15509 (*vec_concatv2di_rex64_sse): Override prefix_rex to 1 for the second
15510 alternative.
15511 (*sse2_maskmovdqu, *sse2_maskmovdqu_rex64): Override length_vex
15512 attribute.
15513 (*sse_sfence, sse2_mfence, sse2_lfence): Override length_address
15514 attribute to 0.
15515 (*avx_phaddwv8hi3, *avx_phadddv4si3, *avx_phaddswv8hi3,
15516 *avx_phsubwv8hi3, *avx_phsubdv4si3, *avx_phsubswv8hi,
15517 *avx_pmaddubsw128, *avx_pmulhrswv8hi3, *avx_pshufbv16qi3,
15518 *avx_psign<mode>3): Set prefix_extra attribute to 1.
15519 (ssse3_phaddwv4hi3, ssse3_phadddv2si3, ssse3_phaddswv4hi3,
15520 ssse3_phsubwv4hi3, ssse3_phsubdv2si3, ssse3_phsubswv4hi3,
15521 ssse3_pmaddubsw, *ssse3_pmulhrswv4hi, ssse3_pshufbv8qi3,
15522 ssse3_psign<mode>3): Override prefix_rex attribute.
15523 (*avx_palignrti): Override prefix_extra and length_immediate to 1.
15524 (ssse3_palignrti): Override length_immediate to 1.
15525 (ssse3_palignrdi): Override length_immediate to 1, override
15526 prefix_rex attribute.
15527 (abs<mode>2): Override prefix_rep to 0, override prefix_rex attribute.
15528 (sse4a_extrqi): Override length_immediate to 2.
15529 (sse4a_insertqi): Likewise. Override prefix_data16 to 0.
15530 (sse4a_insertq): Override prefix_data16 to 0.
15531 (avx_blendp<avxmodesuffixf2c><avxmodesuffix>,
15532 avx_blendvp<avxmodesuffixf2c><avxmodesuffix>,
15533 avx_dpp<avxmodesuffixf2c><avxmodesuffix>, *avx_mpsadbw,
15534 *avx_pblendvb, *avx_pblendw, avx_roundp<avxmodesuffixf2c>256,
15535 avx_rounds<avxmodesuffixf2c>256): Override prefix_extra
15536 and length_immediate to 1.
15537 (sse4_1_blendp<ssemodesuffixf2c>, sse4_1_dpp<ssemodesuffixf2c>,
15538 sse4_2_pcmpestr, sse4_2_pcmpestri, sse4_2_pcmpestrm,
15539 sse4_2_pcmpestr_cconly, sse4_2_pcmpistr, sse4_2_pcmpistri,
15540 sse4_2_pcmpistrm, sse4_2_pcmpistr_cconly): Override prefix_data16
15541 and length_immediate to 1.
15542 (sse4_1_blendvp<ssemodesuffixf2c>): Override prefix_data16 to 1.
15543 (sse4_1_mpsadbw, sse4_1_pblendw): Override length_immediate to 1.
15544 (*avx_packusdw, avx_vtestp<avxmodesuffixf2c><avxmodesuffix>,
15545 avx_ptest256): Override prefix_extra to 1.
15546 (sse4_1_roundp<ssemodesuffixf2c>, sse4_1_rounds<ssemodesuffixf2c>):
15547 Override prefix_data16 and length_immediate to 1.
15548 (sse5_pperm_zero_v16qi_v8hi, sse5_pperm_sign_v16qi_v8hi,
15549 sse5_pperm_zero_v8hi_v4si, sse5_pperm_sign_v8hi_v4si,
15550 sse5_pperm_zero_v4si_v2di, sse5_pperm_sign_v4si_v2di,
15551 sse5_vrotl<mode>3, sse5_ashl<mode>3, sse5_lshl<mode>3): Override
15552 prefix_data16 to 0 and prefix_extra to 2.
15553 (sse5_rotl<mode>3, sse5_rotr<mode>3): Override length_immediate to 1.
15554 (sse5_frcz<mode>2, sse5_vmfrcz<mode>2): Don't override prefix_extra
15555 attribute.
15556 (*sse5_vmmaskcmp<mode>3, sse5_com_tf<mode>3,
15557 sse5_maskcmp<mode>3, sse5_maskcmp<mode>3, sse5_maskcmp_uns<mode>3):
15558 Override prefix_data16 and prefix_rep to 0, length_immediate to 1
15559 and prefix_extra to 2.
15560 (sse5_maskcmp_uns2<mode>3, sse5_pcom_tf<mode>3): Override
15561 prefix_data16 to 0, length_immediate to 1 and prefix_extra to 2.
15562 (*avx_aesenc, *avx_aesenclast, *avx_aesdec, *avx_aesdeclast,
15563 avx_vpermilvar<mode>3,
15564 avx_vbroadcasts<avxmodesuffixf2c><avxmodesuffix>,
15565 avx_vbroadcastss256, avx_vbroadcastf128_p<avxmodesuffixf2c>256,
15566 avx_maskloadp<avxmodesuffixf2c><avxmodesuffix>,
15567 avx_maskstorep<avxmodesuffixf2c><avxmodesuffix>):
15568 Override prefix_extra to 1.
15569 (aeskeygenassist, pclmulqdq): Override length_immediate to 1.
15570 (*vpclmulqdq, avx_vpermil<mode>, avx_vperm2f128<mode>3,
15571 vec_set_lo_<mode>, vec_set_hi_<mode>, vec_set_lo_v16hi,
15572 vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Override
15573 prefix_extra and length_immediate to 1.
15574 (*avx_vzeroall, avx_vzeroupper, avx_vzeroupper_rex64): Override
15575 modrm to 0.
15576 (*vec_concat<mode>_avx): Override prefix_extra and length_immediate
15577 to 1 for the first alternative.
15578 * config/i386/mmx.md (*mov<mode>_internal_rex64): Override
15579 prefix_rep, prefix_data16 and/or prefix_rex attributes in certain
15580 cases.
15581 (*mov<mode>_internal_avx, *movv2sf_internal_rex64,
15582 *movv2sf_internal_avx, *movv2sf_internal): Override
15583 prefix_rep attribute for certain alternatives.
15584 (*mov<mode>_internal): Override prefix_rep or prefix_data16
15585 attributes for certain alternatives.
15586 (*movv2sf_internal_rex64_avx): Override prefix_rep and length_vex
15587 attributes for certain alternatives.
15588 (*mmx_addv2sf3, *mmx_subv2sf3, *mmx_mulv2sf3,
15589 *mmx_<code>v2sf3_finite, *mmx_<code>v2sf3, mmx_rcpv2sf2,
15590 mmx_rcpit1v2sf3, mmx_rcpit2v2sf3, mmx_rsqrtv2sf2, mmx_rsqit1v2sf3,
15591 mmx_haddv2sf3, mmx_hsubv2sf3, mmx_addsubv2sf3,
15592 *mmx_eqv2sf3, mmx_gtv2sf3, mmx_gev2sf3, mmx_pf2id, mmx_pf2iw,
15593 mmx_pi2fw, mmx_floatv2si2, mmx_pswapdv2sf2, *mmx_pmulhrwv4hi3,
15594 mmx_pswapdv2si2): Set prefix_extra attribute to 1.
15595 (mmx_ashr<mode>3, mmx_lshr<mode>3, mmx_ashl<mode>3): Set
15596 length_immediate to 1 if operand 2 is const_int_operand.
15597 (*mmx_pinsrw, mmx_pextrw, mmx_pshufw_1, *vec_dupv4hi,
15598 *vec_extractv2si_1): Set length_immediate attribute to 1.
15599 (*mmx_uavgv8qi3): Override prefix_extra attribute to 1 if
15600 using old 3DNOW insn rather than SSE/3DNOW_A.
15601 (mmx_emms, mmx_femms): Clear modrm attribute.
15602
15603 2009-05-29 Martin Jambor <mjambor@suse.cz>
15604
15605 * tree-sra.c: New implementation of SRA.
15606
15607 * params.def (PARAM_SRA_MAX_STRUCTURE_SIZE): Removed.
15608 (PARAM_SRA_MAX_STRUCTURE_COUNT): Removed.
15609 (PARAM_SRA_FIELD_STRUCTURE_RATIO): Removed.
15610 * params.h (SRA_MAX_STRUCTURE_SIZE): Removed.
15611 (SRA_MAX_STRUCTURE_COUNT): Removed.
15612 (SRA_FIELD_STRUCTURE_RATIO): Removed.
15613 * doc/invoke.texi (sra-max-structure-size): Removed.
15614 (sra-field-structure-ratio): Removed.
15615
15616 2009-05-29 Jakub Jelinek <jakub@redhat.com>
15617
15618 PR middle-end/40291
15619 * builtins.c (expand_builtin_memcmp): Convert len to sizetype
15620 before expansion.
15621
15622 2009-05-29 Andrey Belevantsev <abel@ispras.ru>
15623
15624 PR rtl-optimization/40101
15625 * sel-sched-ir.c (get_seqno_by_preds): Allow returning negative
15626 seqno. Adjust comment.
15627 * sel-sched.c (find_seqno_for_bookkeeping): Assert that when
15628 inserting bookkeeping before a jump, the jump is not scheduled.
15629 When no positive seqno found, provide a value. Add comment.
15630
15631 2009-05-29 Richard Guenther <rguenther@suse.de>
15632
15633 * tree-ssa-alias.c (nonaliasing_component_refs_p): Remove
15634 short-cutting on the first component.
15635
15636 2009-05-29 Jakub Jelinek <jakub@redhat.com>
15637
15638 PR middle-end/39958
15639 * omp-low.c (scan_omp_1_op): Call remap_type on TREE_TYPE
15640 for trees other than decls/types.
15641
15642 2009-05-29 Richard Guenther <rguenther@suse.de>
15643
15644 * tree-ssa-operands.c (get_expr_operands): Do not handle
15645 INDIRECT_REFs in the handled-component case. Remove
15646 unused get_ref_base_and_extent case.
15647 * tree-dfa.c (get_ref_base_and_extent): Avoid calling
15648 tree_low_cst and host_integerp where possible.
15649 * tree-ssa-structalias.c (equiv_class_label_eq): Check hash
15650 codes for equivalence.
15651 * dce.c (find_call_stack_args): Avoid redundant bitmap queries.
15652
15653 2009-05-29 David Billinghurst <billingd@gcc.gnu.org>
15654
15655 * config.gcc: Add i386/t-fprules-softfp and soft-fp/t-softfp
15656 to tmake_file for i[34567]86-*-cygwin*.
15657
15658 2009-05-29 Jakub Jelinek <jakub@redhat.com>
15659
15660 PR target/40017
15661 * config/rs6000/rs6000-c.c (_Bool_keyword): New variable.
15662 (altivec_categorize_keyword, init_vector_keywords,
15663 rs6000_cpu_cpp_builtins): Define _Bool as conditional macro
15664 similar to bool.
15665
15666 2009-05-29 Kai Tietz <kai.tietz@onevision.com>
15667
15668 * tree.c (handle_dll_attribute): Check if node is
15669 of kind FUNCTION_DECL for DECL_DECLARED_INLINE_P check.
15670
15671 2009-05-29 Richard Earnshaw <rearnsha@arm.com>
15672
15673 * config/arm/thumb2.md (thumb2_zero_extendsidi2): Add a split
15674 component.
15675 (thumb2_zero_extendqidi2): Likewise.
15676
15677 2009-05-28 Kaz Kojima <kkojima@gcc.gnu.org>
15678
15679 * config/sh/sh.c (sh_expand_t_scc): Use gen_xorsi3_movrt
15680 instead of gen_movrt.
15681 * config/sh/sh.md (movrt): Remove.
15682
15683 2009-05-28 Steve Ellcey <sje@cup.hp.com>
15684
15685 * doc/invoke.texi (IA-64 Options):
15686 Add -msdata, -mfused-madd, -mno-inline-float-divide,
15687 -mno-inline-int-divide, -mno-inline-sqrt, -msched-spec-ldc,
15688 -msched-spec-control-ldc, -msched-prefer-non-data-spec-insns,
15689 -msched-prefer-non-control-spec-insns,
15690 -msched-stop-bits-after-every-cycle,
15691 -msched-count-spec-in-critical-path,
15692 -msel-sched-dont-check-control-spec, -msched-fp-mem-deps-zero-cost
15693 -msched-max-memory-insns-hard-limit, -msched-max-memory-insns.
15694 Remove -mt, -pthread, -msched-ldc, -mno-sched-control-ldc,
15695 and -msched-spec-verbose.
15696
15697 2009-05-28 Joseph Myers <joseph@codesourcery.com>
15698
15699 * config/arm/lib1funcs.asm (__clear_cache): Define if L_clear_cache.
15700 * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Define to give an
15701 error if used.
15702 * config/arm/t-linux-eabi (LIB1ASMFUNCS): Add _clear_cache.
15703
15704 2009-05-28 Richard Guenther <rguenther@suse.de>
15705
15706 * tree-ssa-alias.c (ao_ref_init): New function.
15707 (ao_ref_base): Likewise.
15708 (ao_ref_base_alias_set): Likewise.
15709 (ao_ref_alias_set): Likewise.
15710 (refs_may_alias_p_1): Change signature.
15711 (refs_may_alias_p): Adjust.
15712 (refs_anti_dependent_p): Likewise.
15713 (refs_output_dependent_p): Likewise.
15714 (call_may_clobber_ref_p_1): Change signature.
15715 (call_may_clobber_ref_p): Adjust.
15716 (stmt_may_clobber_ref_p_1): New function split out from ...
15717 (stmt_may_clobber_ref_p): ... here.
15718 (maybe_skip_until): Adjust signature.
15719 (get_continuation_for_phi): Likewise.
15720 (walk_non_aliased_vuses): Likewise.
15721 * tree-ssa-alias.h (struct ao_ref_s): New structure type.
15722 (ao_ref_init): Declare.
15723 (ao_ref_base): Likewise.
15724 (ao_ref_alias_set): Likewise.
15725 (stmt_may_clobber_ref_p_1): Likewise.
15726 (walk_non_aliased_vuses): Adjust.
15727 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): New function.
15728 (get_ref_from_reference_ops): remove.
15729 (vn_reference_lookup_2): Adjust signature.
15730 (vn_reference_lookup_3): Do not re-build trees. Handle unions.
15731 (vn_reference_lookup_pieces): Adjust signature, do not re-build trees.
15732 (vn_reference_lookup): Adjust.
15733 (vn_reference_insert): Likewise.
15734 (vn_reference_insert_pieces): Adjust signature.
15735 (visit_reference_op_call): Adjust.
15736 * tree-ssa-pre.c (get_expr_type): Simplify.
15737 (phi_translate_1): Adjust.
15738 (compute_avail): Likewise.
15739 (translate_vuse_through_block): Do not re-build trees.
15740 (value_dies_in_block_x): Likewise.
15741 * tree-ssa-sccvn.h (struct vn_reference_s): Add type and alias-set
15742 fields.
15743 (vn_reference_lookup_pieces): Adjust declaration.
15744 (vn_reference_insert_pieces): Likewise.
15745
15746 2009-05-28 Benjamin Kosnik <bkoz@redhat.com>
15747
15748 * tree-ssa-copy.c (replace_exp_1): Move op for warning-free use
15749 with checking disabled.
15750
15751 2009-05-28 Dave Korn <dave.korn.cygwin@gmail.com>
15752
15753 PR target/37216
15754
15755 * configure.ac (HAVE_GAS_ALIGNED_COMM): Add autoconf test and
15756 macro definition for support of three-operand format aligned
15757 .comm directive in assembler on cygwin/pe/mingw target OS.
15758 * configure: Regenerate.
15759 * config.h: Regenerate.
15760
15761 * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Use
15762 aligned form of .comm directive if -mpe-aligned-commons is in effect.
15763 * config/i386/cygming.opt (-mpe-aligned-commons): Add new option.
15764
15765 * doc/invoke.texi (-mpe-aligned-commons): Document new target option.
15766 * doc/tm.texi (ASM_OUTPUT_COMMON): Document zero size commons.
15767
15768 2009-05-28 Ira Rosen <irar@il.ibm.com>
15769
15770 PR tree-optimization/40254
15771 * tree-data-ref.c (dr_analyze_innermost): Take POFFSET into account
15772 in analysis of basic blocks.
15773
15774 2009-05-28 Adam Nemet <anemet@caviumnetworks.com>
15775
15776 PR middle-end/33699
15777 * target.h (struct gcc_target): Fix indentation. Add const_anchor.
15778 * target-def.h (TARGET_CONST_ANCHOR): New macro.
15779 (TARGET_INITIALIZER): Use it.
15780 * cse.c (CHEAPER): Move it up to the other macros.
15781 (insert): Rename this ...
15782 (insert_with_costs): ... to this. Add cost parameters. Update
15783 function comment.
15784 (insert): New function. Call insert_with_costs.
15785 (compute_const_anchors, insert_const_anchor, insert_const_anchors,
15786 find_reg_offset_for_const, try_const_anchors): New functions.
15787 (cse_insn): Call try_const_anchors. Adjust cost of src_related
15788 when using a const-anchor. Call insert_const_anchors.
15789 * config/mips/mips.c (mips_set_mips16_mode): Set targetm.const_anchor.
15790 * doc/tm.texi (Misc): Document TARGET_CONST_ANCHOR.
15791
15792 2009-05-28 Alexandre Oliva <aoliva@redhat.com>
15793
15794 * tree-inline.c (remap_decls): Enable nonlocalized variables
15795 when not optimizing.
15796
15797 2009-05-28 Alexandre Oliva <aoliva@redhat.com>
15798
15799 * tree-ssa-live.c (remove_unused_locals): Skip when not optimizing.
15800 Simplify other tests involving optimize.
15801
15802 2009-05-27 Tom Tromey <tromey@redhat.com>
15803
15804 * unwind-dw2.c (_Unwind_DebugHook): New function.
15805 (uw_install_context): Call _Unwind_DebugHook.
15806
15807 2009-05-27 Tom Tromey <tromey@redhat.com>
15808
15809 * system.h (CONST_CAST2): Use C++ const_cast when compiled as C++
15810
15811 2009-05-27 Ian Lance Taylor <iant@google.com>
15812
15813 * Makefile.in (LINKER, LINKER_FLAGS): Define.
15814 (LINKER_FOR_BUILD, BUILD_LINKERFLAGS): Define.
15815 (ALL_LINKERFLAGS): Define.
15816 (xgcc$(exeext)): Change $(COMPILER) to $(LINKER).
15817 (cpp$(exeext), cc1-dummy$(exeext), cc1$(exeext)): Likewise.
15818 (collect2$(exeext), mips-tfile, mips-tdump): Likewise.
15819 (gcov$(exeext), gcov-dump$(exeext)): Likewise.
15820 (build/gen%$(build_exeext)): Change $(COMPILER_FOR_BUILD) to
15821 $(LINKER_FOR_BUILD).
15822 (build/gcov-iov$(build_exeext)): Likewise.
15823
15824 2009-05-27 Julian Brown <julian@codesourcery.com>
15825
15826 * gcse.c (target.h): Include.
15827 (can_assign_to_reg_without_clobbers_p): Check that the target allows
15828 copy of argument to a pseudo register.
15829
15830 2009-05-27 Diego Novillo <dnovillo@google.com>
15831
15832 * tree-ssa-live.c (dump_scope_block): Document arguments.
15833 (dump_scope_blocks): Document.
15834 (debug_scope_blocks): New.
15835 * tree-flow.h (debug_scope_blocks): Declare.
15836
15837 2009-05-21 Denis Chertykov <denisc@overta.ru>
15838
15839 * doc/contrib.texi (Contributors): Add myself to the list.
15840
15841 2009-05-27 Olivier Hainque <hainque@adacore.com>
15842
15843 * expr.c (target_align): New function. Alignment the TARGET of an
15844 assignment may be assume to have.
15845 (highest_pow2_factor_for_target): Use it instead of relying on
15846 immediate tree attributes of TARGET, not necessarily honored when
15847 intermediate bitfields are involved.
15848
15849 2009-05-27 H.J. Lu <hongjiu.lu@intel.com>
15850
15851 PR target/40266
15852 * config/i386/driver-i386.c (host_detect_local_cpu): Support
15853 AVX, SSE4, AES, PCLMUL and POPCNT.
15854
15855 2009-05-27 Diego Novillo <dnovillo@google.com>
15856
15857 * tree-pretty-print.c (dump_location): New.
15858 (dump_generic_node): Call it.
15859 Factor code to handle BLOCK nodes ...
15860 (dump_block_node): ... here.
15861
15862 2009-05-27 Rafael Avila de Espindola <espindola@google.com>
15863
15864 * Makefile.in (GCC_PLUGIN_H): New. Replace all uses of gcc-plugin.h
15865 with it.
15866 * doc/plugins.texi: Document that gcc-plugin.h must be the first to be
15867 included.
15868 * gcc-plugin.h: Include config.h and system.h.
15869 (IN_GCC): Define if not defined.
15870
15871 2009-05-27 Hans-Peter Nilsson <hp@axis.com>
15872
15873 PR middle-end/40249
15874 * Makefile.in (CRTSTUFF_CFLAGS): Replace -fno-inline-functions
15875 with -fno-inline.
15876
15877 2009-05-27 Shujing Zhao <pearly.zhao@oracle.com>
15878
15879 * config/m32r/m32r.c: Use REG_P, MEM_P and CONST_INT_P where
15880 applicable.
15881 * config/m32r/m32r.h: Ditto.
15882 * config/m32r/m32r.md: Ditto.
15883 * config/m32r/predicates.md: Ditto.
15884
15885 2009-05-27 Alexandre Oliva <aoliva@redhat.com>
15886
15887 * cgraph.c (dump_cgraph_node): Honor -fdump-noaddr.
15888
15889 2009-05-26 Basile Starynkevitch <basile@starynkevitch.net>
15890
15891 * doc/plugins.texi
15892 (Loading plugins): typo.
15893 (Plugin callbacks): Documented PLUGIN_INFO, PLUGIN_GGC_START,
15894 PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
15895 (Interacting with the GCC Garbage Collector): Added new section.
15896 (Giving information about a plugin): Added new section for
15897 PLUGIN_INFO.
15898 * ggc.h (ggc_register_root_tab): Added declaration.
15899 * gcc-plugin.h (PLUGIN_GGC_START, PLUGIN_GGC_MARKING)
15900 (PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS): Added new events.
15901 (register_callback): Improved comment in declaration.
15902 * ggc-common.c (const_ggc_root_tab_t) Added new typedef for vectors.
15903 (extra_root_vec) Added static variable for dynamic roots registration.
15904 (ggc_register_root_tab) Added new routine.
15905 (ggc_mark_roots) Added iteration inside extra_root_vec, and invoke
15906 PLUGIN_GGC_MARKING event.
15907 * ggc-zone.c: Include plugin.h.
15908 (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
15909 * ggc-page.c: Include plugin.h.
15910 (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
15911 * plugin.c (plugin_event_name): added names of PLUGIN_GGC_START,
15912 PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS
15913 (register_callback): check lack of callbacks for
15914 pseudo-events. Added handling of PLUGIN_REGISTER_GGC_ROOTS,
15915 PLUGIN_GGC_START, PLUGIN_GGC_MARKING, PLUGIN_GGC_END.
15916 (invoke_plugin_callbacks): Handle PLUGIN_GGC_START,
15917 PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
15918 * Makefile.in (ggc-common.o, ggc-zone.o, ggc-page.o): Added
15919 dependency on plugin.h.
15920 (plugin.o): Added dependency on ggc.h...
15921
15922 2009-05-26 Richard Guenther <rguenther@suse.de>
15923
15924 PR middle-end/40248
15925 Revert
15926 * expr.c (expand_expr_real_1): Avoid calling do_store_flag
15927 with mismatched comparison modes.
15928
15929 * expr.c (expand_expr_real_1): Expand the operand of a
15930 VIEW_CONVERT_EXPR in its natural mode.
15931
15932 2009-05-26 Ian Lance Taylor <iant@google.com>
15933
15934 * Makefile.in (COMPILER, COMPILER_FLAGS): Define.
15935 (COMPILER_FOR_BUILD, BUILD_COMPILERFLAGS): Define.
15936 (ALL_COMPILERFLAGS): Define.
15937 (.c.o, xgcc$(exeext), cpp$(exeext)): Use $(COMPILER).
15938 (cc1-dummy$(exeext), cc1$(exeext)): Likewise.
15939 (collect2$(exeext), collect2.o): Likewise.
15940 (c-opts.o, c-cppbuiltin.o, c-pch.o, gcc.o, gccspec.o): Likewise.
15941 (gcc-options.o, version.o, prefix.o, toplev.o): Likewise.
15942 ($(out_object_file), mips-tfile, mips-tdump): Likewise.
15943 (libbackend.o, intl.o, cppdefault.o): Likewise.
15944 (gcov$(exeext), gcov-dump$(exeext)): Likewise.
15945 (build/%.o): Use $(COMPILER_FOR_BUILD).
15946 (build/gen%$(build_exeext)): Likewise.
15947 (build/gcov-iov$(build_exeext)): LIkewise.
15948 * config/t-darwin (darwin.o): Use $(COMPILER).
15949 (darwin-c.o, darwin-f.o, darwin-driver.o): Likewise.
15950 * config/t-sol2 (sol2-c.o): Likewise.
15951 (sol2.o): Likewise.
15952 * config/t-vxworks (vxworks.o): Likewise.
15953 * config/x-darwin (host-darwin.o): Likewise.
15954 * config/x-hpux (host-hpux.o): Likewise.
15955 * config/x-linux (host-linux.o): Likewise.
15956 * config/x-solaris (host-solaris.o): Likewise.
15957 * config/alpha/x-alpha (driver-alpha.o): Likewise.
15958 * config/arm/t-arm (arm-c.o): Likewise.
15959 * config/arm/t-pe (pe.o): Likewise.
15960 * config/arm/t-wince-pe (pe.o): Likewise.
15961 * config/i386/t-cygming (winnt.o): Likewise.
15962 (winnt-cxx.o, winnt-stubs.o, msformat-c.o): Likewise.
15963 * config/i386/t-cygwin (cygwin1.o): Likewise.
15964 (cygwin2.o): Likewise.
15965 * config/i386/t-i386 (i386-c.o): Likewise.
15966 * config/i386/t-interix (winnt.o): Likewise.
15967 * config/i386/t-netware (netware.o): Likewise.
15968 * config/i386/t-nwld (nwld.o): Likewise.
15969 * config/i386/x-darwin (host-i386-darwin.o): Likewise.
15970 * config/i386/x-i386 (driver-i386.o): Likewise.
15971 * config/i386/x-cygwin (host-cygwin.o): Likewise.
15972 * config/i386/x-mingw32 (host-mingw32.o): Likewise.
15973 * config/ia64/t-ia64 (ia64-c.o): Likewise.
15974 * config/m32c/t-m32c (m32c-pragma.o): Likewise.
15975 * config/mips/x-native (driver-native.o): Likewise.
15976 * config/rs6000/t-rs6000 (rs6000-c.o): Likewise.
15977 * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
15978 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
15979 * config/rs6000/x-rs6000 (driver-rs6000.o): Likewise.
15980 * config/score/t-score-elf (score7.o): Likewise.
15981 (score3.o): Likewise.
15982 * config/sh/t-sh (sh-c.o): Likewise.
15983 * config/sh/t-symbian (sh-c.o): Likewise.
15984 (symbian.o): Likewise.
15985 * config/spu/t-spu-elf (spu-c.o): Likewise.
15986 * config/v850/t-v850 (v850-c.o): Likewise.
15987 * config/v850/t-v850e (v850-c.o): Likewise.
15988
15989 2009-05-26 Richard Guenther <rguenther@suse.de>
15990
15991 PR tree-optimization/40122
15992 * tree-ssa-ccp.c (ccp_fold): Fold vector CONSTRUCTORs to
15993 VECTOR_CSTs if possible.
15994 (fold_gimple_assign): Likewise.
15995
15996 2009-05-26 Richard Guenther <rguenther@suse.de>
15997
15998 PR middle-end/40252
15999 * fold-const.c (fold_binary): Use the correct types for building
16000 rotates.
16001
16002 2009-05-26 Richard Guenther <rguenther@suse.de>
16003
16004 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove
16005 redundant calls to merge_alias_info.
16006 (bump_vector_ptr): Likewise.
16007 * tree-ssa-copy.c (merge_alias_info): Remove.
16008 (replace_exp_1): Remove call to merge_alias_info.
16009 (propagate_tree_value): Likewise.
16010 (fini_copy_prop): Propagate points-to info.
16011 * tree-flow.h (merge_alias_info): Remove.
16012
16013 2009-05-07 Hariharan Sandanagobalane <hariharan@picochip.com>
16014
16015 * config/picochip/picochip.C (PARAM_INLINE_CALL_COST): Remove.
16016
16017 2009-05-25 Jan Hubicka <jh@suse.cz>
16018
16019 * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
16020 * cgraph.h (struct inline_summary): New filed self_wize,
16021 size_inlining_benefit, self_time and time_inlining_benefit.
16022 (struct cgraph_global_info): Replace insns by time ans size fields.
16023 * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
16024 (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
16025 (ipcp_update_callgraph): Do not touch function bodies.
16026 * ipa-inline.c: Include except.h
16027 (MAX_TIME): New constant.
16028 (overall_insns): Remove.
16029 (leaf_node_p): New.
16030 (overall_size, max_benefit): New static variables.
16031 (cgraph_estimate_time_after_inlining): New function.
16032 (cgraph_estimate_size_after_inlining): Rewrite using benefits.
16033 (cgraph_clone_inlined_nodes): Update size.
16034 (cgraph_mark_inline_edge): Update size.
16035 (cgraph_estimate_growth): Use size info.
16036 (cgraph_check_inline_limits): Check size.
16037 (cgraph_default_inline_p): Likewise.
16038 (cgraph_edge_badness): Compute badness based on benefit and size cost.
16039 (cgraph_decide_recursive_inlining): Check size.
16040 (cgraph_decide_inlining_of_small_function): Update size; dump sizes
16041 and times.
16042 (cgraph_decide_inlining): Likewise.
16043 (cgraph_decide_inlining_incrementally): Likewise; honor
16044 PARAM_EARLY_INLINING_INSNS.
16045 (likely_eliminated_by_inlining_p): New predicate.
16046 (estimate_function_body_sizes): New function.
16047 (compute_inline_parameters): Use it.
16048 * except.c (must_not_throw_labels): New function.
16049 * except.h (must_not_throw_labels): Declare.
16050 * tree-inline.c (init_inline_once): Kill inlining_weigths
16051 * tree-ssa-structalias.c: Avoid uninitialized warning.
16052 * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
16053 (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
16054 (PARAM_INLINE_CALL_COST): Remove.
16055 (PARAM_EARLY_INLINING_INSNS): New.
16056
16057 2009-05-25 Richard Guenther <rguenther@suse.de>
16058
16059 PR tree-optimization/36327
16060 * tree-ssa-alias.c (walk_non_aliased_vuses): Add second walker
16061 callback for reference translation or lookup at the point of may-defs.
16062 * tree-ssa-alias.h (walk_non_aliased_vuses): Adjust prototype.
16063 * tree-ssa-sccvn.c (get_ref_from_reference_ops): Bail out
16064 for union COMPONENT_REFs.
16065 (vn_reference_lookup_3): New callback. Lookup from memset
16066 and CONSTRUCTOR assignment, translate through struct copies.
16067 (vn_reference_lookup_pieces): Make sure to not free the
16068 passed operands array. Adjust walk_non_aliased_vuses call.
16069 (vn_reference_lookup): Adjust walk_non_aliased_vuses call,
16070 make sure we do not leak memory.
16071
16072 2009-05-25 Richard Guenther <rguenther@suse.de>
16073
16074 * tree-ssa-alias.h (dump_points_to_solution): Declare.
16075 * tree-inline.c (expand_call_inline): Reset the escaped and
16076 callused solutions.
16077 * tree-ssa-structalias.c (pass_build_ealias): New.
16078 * tree-pass.h (pass_build_ealias): Declare.
16079 * passes.c (init_optimization_passes): Add PTA during
16080 early optimizations.
16081 * tree-ssa-alias.c (dump_alias_info): Dump the ESCAPED
16082 and CALLUSED solutions.
16083 (dump_points_to_solution): New function, split out from ...
16084 (dump_points_to_info_for): ... here.
16085 * tree-parloops.c (parallelize_loops): Reset the escaped and
16086 callused solutions.
16087
16088 2009-05-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
16089
16090 PR bootstrap/40027
16091 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Only define if missing.
16092 * config/i386/sol2.h [!TARGET_GNU_LD] (USE_HIDDEN_LINKONCE): Define.
16093
16094 2009-05-25 Ira Rosen <irar@il.ibm.com>
16095
16096 PR tree-optimization/40238
16097 * tree-vect-stmts.c (vect_init_vector): Insert initialization
16098 statements after basic block's labels.
16099 * tree-vect-slp.c (vect_slp_transform_bb): Call destroy_bb_vec_info()
16100 to free the allocated memory.
16101
16102 2009-05-24 Kaz Kojima <kkojima@gcc.gnu.org>
16103
16104 * gcc/config/sh/sh.c (sh_set_return_address): Mark store of
16105 return address with a USE.
16106
16107 2009-05-24 Richard Guenther <rguenther@suse.de>
16108
16109 PR middle-end/40233
16110 * tree.c (make_vector_type): Build the TYPE_DEBUG_REPRESENTATION_TYPEs
16111 array type from the main variant of the inner type.
16112
16113 2009-05-24 Jan-Benedict Glaw <jbglaw@lug-owl.de>
16114
16115 * config/vax/vax-protos.h (legitimate_constant_address_p): Change
16116 definition to bool (from int) to un-break build.
16117 (legitimate_constant_p, vax_mode_dependent_address_p): Likewise.
16118
16119 2009-05-24 Paolo Bonzini <bonzini@gnu.org>
16120
16121 * tree-ssa-operands.h (push_stmt_changes, pop_stmt_changes,
16122 discard_stmt_changes): Delete.
16123 * tree-ssa-operands.c (scb_stack): Delete.
16124 (init_ssa_operands): Do not initialize it.
16125 (fini_ssa_operands): Do not free it.
16126 (push_stmt_changes, pop_stmt_changes, discard_stmt_changes): Delete.
16127
16128 * tree-cfg.c (replace_uses_by): Replace pop_stmt_changes with
16129 update_stmt, remove the others. Fix comments.
16130 * tree-dfa.c (optimize_stack_restore): Likewise.
16131 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Likewise.
16132 * tree-ssa-loop-ivopts.c (rewrite_use): Likewise.
16133 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
16134 * tree-ssa-ccp.c (optimize_stack_restore, execute_fold_all_builtins):
16135 Likewise.
16136 * tree-ssa-propagate.c (substitute_and_fold): Likewise.
16137 * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
16138 (dom_opt_finalize_block): Likewise, adjusting access to
16139 stmts_to_rescan.
16140 (optimize_stmt): Likewise, adjusting access to stmts_to_rescan.
16141 (stmts_to_rescan): Change item type to gimple.
16142 (tree_ssa_dominator_optimize): Change type of stmts_to_rescan.
16143
16144 2009-05-24 Ira Rosen <irar@il.ibm.com>
16145
16146 * doc/passes.texi (Tree-SSA passes): Document SLP pass.
16147 * tree-pass.h (pass_slp_vectorize): New pass.
16148 * params.h (SLP_MAX_INSNS_IN_BB): Define.
16149 * timevar.def (TV_TREE_SLP_VECTORIZATION): Define.
16150 * tree-vectorizer.c (timevar.h): Include.
16151 (user_vect_verbosity_level): Declare.
16152 (vect_location): Fix comment.
16153 (vect_set_verbosity_level): Update user_vect_verbosity_level
16154 instead of vect_verbosity_level.
16155 (vect_set_dump_settings): Add an argument. Ignore user defined
16156 verbosity if dump flags require higher level of verbosity. Print to
16157 stderr only for loop vectorization.
16158 (vectorize_loops): Update call to vect_set_dump_settings.
16159 (execute_vect_slp): New function.
16160 (gate_vect_slp): Likewise.
16161 (struct gimple_opt_pass pass_slp_vectorize): New.
16162 * tree-vectorizer.h (struct _bb_vec_info): Define along macros to
16163 access its members.
16164 (vec_info_for_bb): New function.
16165 (struct _stmt_vec_info): Add bb_vinfo and a macro for its access.
16166 (VECTORIZATION_ENABLED): New macro.
16167 (SLP_ENABLED, SLP_DISABLED): Likewise.
16168 (vect_is_simple_use): Add bb_vec_info argument.
16169 (new_stmt_vec_info, vect_analyze_data_ref_dependences,
16170 vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
16171 vect_analyze_data_ref_accesses, vect_analyze_data_refs,
16172 vect_schedule_slp, vect_analyze_slp): Likewise.
16173 (vect_analyze_stmt): Add slp_tree argument.
16174 (find_bb_location): Declare.
16175 (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
16176 * tree-vect-loop.c (new_loop_vec_info): Adjust function calls.
16177 (vect_analyze_loop_operations, vect_analyze_loop,
16178 get_initial_def_for_induction, vect_create_epilog_for_reduction,
16179 vect_finalize_reduction, vectorizable_reduction,
16180 vectorizable_live_operation, vect_transform_loop): Likewise.
16181 * tree-data-ref.c (dr_analyze_innermost): Update comment,
16182 skip evolution analysis if analyzing a basic block.
16183 (dr_analyze_indices): Likewise.
16184 (initialize_data_dependence_relation): Skip the test whether the
16185 object is invariant for basic blocks.
16186 (compute_all_dependences): Skip dependence analysis for data
16187 references in basic blocks.
16188 (find_data_references_in_stmt): Don't fail in case of invariant
16189 access in basic block.
16190 (find_data_references_in_bb): New function.
16191 (find_data_references_in_loop): Move code to
16192 find_data_references_in_bb and add a call to it.
16193 (compute_data_dependences_for_bb): New function.
16194 * tree-data-ref.h (compute_data_dependences_for_bb): Declare.
16195 * tree-vect-data-refs.c (vect_check_interleaving): Adjust to the case
16196 that STEP is 0.
16197 (vect_analyze_data_ref_dependence): Check for interleaving in case of
16198 unknown dependence in basic block and fail in case of dependence in
16199 basic block.
16200 (vect_analyze_data_ref_dependences): Add bb_vinfo argument, get data
16201 dependence instances from either loop or basic block vectorization
16202 info.
16203 (vect_compute_data_ref_alignment): Check if it is loop vectorization
16204 before calling nested_in_vect_loop_p.
16205 (vect_compute_data_refs_alignment): Add bb_vinfo argument, get data
16206 dependence instances from either loop or basic block vectorization
16207 info.
16208 (vect_verify_datarefs_alignment): Likewise.
16209 (vect_enhance_data_refs_alignment): Adjust function calls.
16210 (vect_analyze_data_refs_alignment): Likewise.
16211 (vect_analyze_group_access): Fix printing. Skip different checks if
16212 DR_STEP is 0. Keep strided stores either in loop or basic block
16213 vectorization data structure. Fix indentation.
16214 (vect_analyze_data_ref_access): Fix comments, allow zero step in
16215 basic blocks.
16216 (vect_analyze_data_ref_accesses): Add bb_vinfo argument, get data
16217 dependence instances from either loop or basic block vectorization
16218 info.
16219 (vect_analyze_data_refs): Update comment. Call
16220 compute_data_dependences_for_bb to analyze basic blocks.
16221 (vect_create_addr_base_for_vector_ref): Check for outer loop only in
16222 case of loop vectorization. In case of basic block vectorization use
16223 data-ref itself as a base.
16224 (vect_create_data_ref_ptr): In case of basic block vectorization:
16225 don't advance the pointer, add new statements before the current
16226 statement. Adjust function calls.
16227 (vect_supportable_dr_alignment): Support only aligned accesses in
16228 basic block vectorization.
16229 * common.opt (ftree-slp-vectorize): New flag.
16230 * tree-vect-patterns.c (widened_name_p): Adjust function calls.
16231 (vect_pattern_recog_1): Likewise.
16232 * tree-vect-stmts.c (process_use): Likewise.
16233 (vect_init_vector): Add new statements in the beginning of the basic
16234 block in case of basic block SLP.
16235 (vect_get_vec_def_for_operand): Adjust function calls.
16236 (vect_finish_stmt_generation): Likewise.
16237 (vectorizable_call): Add assert that it is loop vectorization, adjust
16238 function calls.
16239 (vectorizable_conversion, vectorizable_assignment): Likewise.
16240 (vectorizable_operation): In case of basic block SLP, take
16241 vectorization factor from statement's type and skip the relevance
16242 check. Adjust function calls.
16243 (vectorizable_type_demotion): Add assert that it is loop
16244 vectorization, adjust function calls.
16245 (vectorizable_type_promotion): Likewise.
16246 (vectorizable_store): Check for outer loop only in case of loop
16247 vectorization. Adjust function calls. For basic blocks, skip the
16248 relevance check and don't advance pointers.
16249 (vectorizable_load): Likewise.
16250 (vectorizable_condition): Add assert that it is loop vectorization,
16251 adjust function calls.
16252 (vect_analyze_stmt): Add argument. In case of basic block SLP, check
16253 that it is not reduction, get vector type, call only supported
16254 functions, skip loop specific parts.
16255 (vect_transform_stmt): Check for outer loop only in case of loop
16256 vectorization.
16257 (new_stmt_vec_info): Add new argument and initialize bb_vinfo.
16258 (vect_is_simple_use): Fix comment, add new argument, fix conditions
16259 for external definition.
16260 * passes.c (pass_slp_vectorize): New pass.
16261 * tree-vect-slp.c (find_bb_location): New function.
16262 (vect_get_and_check_slp_defs): Add argument, adjust function calls,
16263 check for patterns only in loops.
16264 (vect_build_slp_tree): Add argument, adjust function calls, fail in
16265 case of multiple types in basic block SLP.
16266 (vect_mark_slp_stmts_relevant): New function.
16267 (vect_supported_load_permutation_p): Fix comment.
16268 (vect_analyze_slp_instance): Add argument. In case of basic block
16269 SLP, take vectorization factor from statement's type, check that
16270 unrolling factor is 1. Adjust function call. Save SLP instance in
16271 either loop or basic block vectorization structure. Return FALSE,
16272 if SLP failed.
16273 (vect_analyze_slp): Add argument. Get strided stores groups from
16274 either loop or basic block vectorization structure. Return FALSE
16275 if basic block SLP failed.
16276 (new_bb_vec_info): New function.
16277 (destroy_bb_vec_info, vect_slp_analyze_node_operations,
16278 vect_slp_analyze_operations, vect_slp_analyze_bb): Likewise.
16279 (vect_schedule_slp): Add argument. Get SLP instances from either
16280 loop or basic block vectorization structure. Set vectorization factor
16281 to be 1 for basic block SLP.
16282 (vect_slp_transform_bb): New function.
16283 * params.def (PARAM_SLP_MAX_INSNS_IN_BB): Define.
16284
16285 2009-05-23 Mark Mitchell <mark@codesourcery.com>
16286
16287 * final.c (shorten_branches): Do not align labels for jump tables.
16288 (final_scan_insn): Use JUMP_TABLE_DATA_P.
16289
16290 2009-05-23 Eric Botcazou <ebotcazou@adacore.com>
16291
16292 * doc/passes.texi: Standardize spelling of RTL, Tree and Tree SSA.
16293 Remove outdated reference to flow.c and fix nits.
16294 * doc/gccint.texi: Tweak RTL description.
16295 * doc/rtl.texi: Likewise.
16296
16297 2009-05-23 Denis Chertykov <chertykov@gmail.com>
16298
16299 * config/avr/avr.c: Change my email address.
16300 * config/avr/avr.h: Likewise.
16301 * config/avr/avr.md: Likewise.
16302 * config/avr/avr-protos.h: Likewise.
16303 * config/avr/libgcc.S: Likewise.
16304
16305 2009-05-22 Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
16306
16307 * config/spu/spu-protos.h (aligned_mem_p, spu_valid_mov): Remove.
16308 (spu_split_load, spu_split_store): Change return type to int.
16309 (spu_split_convert): Declare.
16310 * config/spu/predicates.md (spu_mem_operand): Remove.
16311 (spu_mov_operand): Update.
16312 (spu_dest_operand, shiftrt_operator, extend_operator): Define.
16313 * config/spu/spu.c (regno_aligned_for_load): Remove.
16314 (reg_aligned_for_addr, spu_expand_load): Define.
16315 (spu_expand_extv): Reimplement and handle MEM.
16316 (spu_expand_insv): Handle MEM.
16317 (spu_sched_reorder): Handle insn's with length 0.
16318 (spu_legitimate_address_p): Reimplement.
16319 (store_with_one_insn_p): Return TRUE for any mode with size
16320 larger than 16 bytes.
16321 (address_needs_split): Define.
16322 (spu_expand_mov): Call spu_split_load and spu_split_store for MEM
16323 operands.
16324 (spu_convert_move): Define.
16325 (spu_split_load): Use spu_expand_load and change all MEM's to TImode.
16326 (spu_split_store): Change all MEM's to TImode.
16327 (spu_init_expanders): Preallocate registers that correspond to
16328 LAST_VIRTUAL_REG+1 and LAST_VIRTUAL_REG+2 and set them with
16329 mark_reg_pointer.
16330 (spu_split_convert): Define.
16331 * config/spu/spu.md (QHSI, QHSDI): New mode iterators.
16332 (_move<mode>, _movdi, _movti): Update predicate and condition.
16333 (load, store): Change to define_split.
16334 (extendqiti2, extendhiti2, extendsiti2, extendditi2): Simplify to
16335 extend<mode>ti2.
16336 (zero_extendqiti2, zero_extendhiti2, <v>lshr<mode>3_imm): Define.
16337 (lshr<mode>3, lshr<mode>3_imm, lshr<mode>3_re): Simplify to one
16338 define_insn_and_split of lshr<mode>3.
16339 (shrqbybi_<mode>, shrqby_<mode>): Simplify to define_expand.
16340 (<v>ashr<mode>3_imm): Define.
16341 (extv, extzv, insv): Allow MEM operands.
16342 (trunc_shr_ti<mode>, trunc_shr_tidi, shl_ext_<mode>ti,
16343 shl_ext_diti, sext_trunc_lshr_tiqisi, zext_trunc_lshr_tiqisi,
16344 sext_trunc_lshr_tihisi, zext_trunc_lshr_tihisi): Define for combine.
16345 (_spu_convert2): Change to define_insn_and_split and remove the
16346 corresponding define_peephole2.
16347 (stack_protect_set, stack_protect_test, stack_protect_test_si):
16348 Change predicates to memory_operand.
16349
16350 2009-05-22 Mark Mitchell <mark@codesourcery.com>
16351
16352 * config/arm/thumb2.md: Add 16-bit multiply instructions.
16353
16354 2009-05-21 Michael Meissner <meissner@linux.vnet.ibm.com>
16355
16356 PR tree-optimization/40219
16357 * tree.c (iterative_hash_expr): Make sure the builtin function is
16358 a normal builtin function and not a front end or back end builtin
16359 before indexing into the built_in_decls array.
16360
16361 2009-05-22 Richard Guenther <rguenther@suse.de>
16362
16363 PR middle-end/38964
16364 * alias.c (write_dependence_p): Do not use TBAA for answering
16365 anti-dependence or output-dependence.
16366 * tree-ssa-structalias.c (set_uids_in_ptset): Remove TBAA pruning code.
16367 (emit_pointer_definition): Remove.
16368 (emit_alias_warning): Likewise.
16369 (find_what_var_points_to): Remove TBAA pruning code.
16370 (find_what_p_points_to): Likewise. Do not warn about strict-aliasing
16371 violations.
16372 (compute_points_to_sets): Remove code computing the set of
16373 dereferenced pointers.
16374 * tree-data-ref.c (dr_may_alias_p): Properly use the split
16375 oracle for querying anti and output dependencies.
16376 * tree-ssa-alias.c (refs_may_alias_p_1): Add argument specifying
16377 if TBAA may be applied.
16378 (refs_anti_dependent_p): New function.
16379 (refs_output_dependent_p): Likewise.
16380 * tree-ssa-alias.h (refs_anti_dependent_p): Declare.
16381 (refs_output_dependent_p): Likewise.
16382 * doc/tree-ssa.texi (Memory model): New section.
16383 * doc/c-tree.texi (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
16384 * doc/gimple.texi (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
16385 * cfgexpand.c (expand_gimple_basic_block): Do not handle
16386 GIMPLE_CHANGE_DYNAMIC_TYPE or CHANGE_DYNAMIC_TYPE_EXPR.
16387 * expr.c (expand_expr_real_1): Likewise.
16388 * gimple-low.c (lower_stmt): Likewise.
16389 * gimple-pretty-print.c (dump_gimple_stmt): Likewise.
16390 (dump_gimple_cdt): Remove.
16391 * gimple.c (gss_for_code): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
16392 (gimple_size): Likewise.
16393 (walk_gimple_op): Likewise.
16394 (is_gimple_stmt): Likewise.
16395 (walk_stmt_load_store_addr_ops): Likewise.
16396 (gimple_build_cdt): Remove.
16397 * gimple.def (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
16398 * gimple.h (gimple_cdt_new_type): Remove.
16399 (gimple_cdt_new_type_ptr): Likewise.
16400 (gimple_cdt_set_new_type): Likewise.
16401 (gimple_cdt_location): Likewise.
16402 (gimple_cdt_location_ptr): Likewise.
16403 (gimple_cdt_set_location): Likewise.
16404 * gimplify.c (gimplify_expr): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
16405 * tree-cfg.c (remove_useless_stmts_1): Do not handle
16406 GIMPLE_CHANGE_DYNAMIC_TYPE.
16407 (verify_types_in_gimple_stmt): Likewise.
16408 * tree-inline.c (estimate_num_insns): Likewise.
16409 (expand_call_inline): Do not copy DECL_NO_TBAA_P.
16410 (copy_decl_to_var): Likewise.
16411 (copy_result_decl_to_var): Likewise.
16412 * tree-pretty-print.c (dump_generic_node): Do not handle
16413 CHANGE_DYNAMIC_TYPE_EXPR.
16414 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
16415 * tree-ssa-operands.c (get_expr_operands): Likewise.
16416 * tree-ssa-structalias.c (struct variable_info): Remove
16417 no_tbaa_pruning member.
16418 (new_var_info): Do not set it based on DECL_NO_TBAA_P.
16419 (unify_nodes): Do not copy it.
16420 (find_func_aliases): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
16421 (dump_solution_for_var): Do not dump no_tbaa_pruning state.
16422 (set_uids_in_ptset): Do not check it.
16423 (find_what_var_points_to): Likewise.
16424 (compute_tbaa_pruning): Remove.
16425 (compute_points_to_sets): Do not call it.
16426 * tree.c (walk_tree_1): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
16427 * tree.def (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
16428 * tree.h (CHANGE_DYNAMIC_TYPE_NEW_TYPE): Remove.
16429 (CHANGE_DYNAMIC_TYPE_LOCATION): Likewise.
16430 (DECL_NO_TBAA_P): Likewise.
16431 (struct tree_decl_common): Move no_tbaa_flag to unused flags section.
16432 * omp-low.c (copy_var_decl): Do not copy DECL_NO_TBAA_P.
16433 (expand_omp_atomic_pipeline): Do not set it.
16434 * print-tree.c (print_node): Do not dump it.
16435 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
16436 redundant check.
16437
16438 2009-05-22 Vladimir Makarov <vmakarov@redhat.com>
16439
16440 PR target/39856
16441 * reg-stack.c (subst_stack_regs_pat): Remove gcc_assert for note
16442 for clobber.
16443
16444 2009-05-22 Mark Mitchell <mark@codesourcery.com>
16445
16446 * tree.c (handle_dll_attribute): Mark dllexport'd inlines as
16447 non-external.
16448
16449 2009-05-22 Ben Elliston <bje@au.ibm.com>
16450
16451 * Makefile.in (bversion.h, s-bversion): New targets.
16452 (TOPLEV_H): Add bversion.h.
16453 * toplev.h: Include "bversion.h".
16454 (ATTRIBUTE_GCC_DIAG): When building with checking disabled, use
16455 the __format__ attribute only if compiling with the same version
16456 of GCC as the sources (the "build version").
16457
16458 2009-05-22 Ben Elliston <bje@au.ibm.com>
16459
16460 * c-format.c (handle_format_attribute): Fix comment typo.
16461
16462 2009-05-21 Steve Ellcey <sje@cup.hp.com>
16463
16464 PR target/37846
16465 * config/ia64/ia64.opt (mfused-madd): New.
16466 * config/ia64/ia64.h (TARGET_DEFAULT): Set MASK_FUSED_MADD.
16467 * config/ia64/hpux.h (TARGET_DEFAULT): Ditto.
16468 * config/ia64/ia64.md (maddsf4, msubsf4, nmaddsf4,
16469 madddf4, madddf4_trunc, msubdf4, msubdf4_trunc, nmadddf4,
16470 nmadddf4_truncsf, maddxf4, maddxf4_truncsf, maddxf4_truncdf,
16471 msubxf4, msubxf4_truncsf msubxf4_truncdf, nmaddxf4,
16472 nmaddxf4_truncsf, nmaddxf4_truncdf): Check TARGET_FUSED_MADD.
16473 * config/ia64/vect.md (addv2sf3, subv2sf3): Force fpma/fpms
16474 instruction if !TARGET_FUSED_MADD.
16475 (fpma, fpms): Remove colon from name.
16476
16477 2009-05-22 Richard Guenther <rguenther@suse.de>
16478
16479 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record
16480 TMR_ORIGINAL. Always either record TMR_SYMBOL or TMR_BASE.
16481 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
16482 TARGET_MEM_REF.
16483 (create_expression_by_pieces): Only convert if necessary.
16484 * gimplify.c (gimplify_expr): Handle TARGET_MEM_REF.
16485 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle INTEGER_CST.
16486
16487 2009-05-21 Adam Nemet <anemet@caviumnetworks.com>
16488
16489 * config/mips/mips.md (*extzv_trunc<mode>_exts): Turn into a
16490 regular pattern from a template and rename it ...
16491 (*extzv_truncsi_exts): ... to this.
16492
16493 2009-05-21 Richard Guenther <rguenther@suse.de>
16494
16495 * cgraph.h (struct cgraph_node): Remove inline_decl member.
16496 * ipa-inline.c (cgraph_mark_inline_edge): Do not check it.
16497 (cgraph_default_inline_p): Likewise.
16498 (cgraph_decide_inlining_incrementally): Likewise.
16499
16500 2009-05-21 H.J. Lu <hongjiu.lu@intel.com>
16501 Uros Bizjak <ubizjak@gmail.com>
16502
16503 * config/i386/cpuid.h (bit_MOVBE): New.
16504
16505 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
16506
16507 * config/i386/i386.c (OPTION_MASK_ISA_MOVBE_SET): New.
16508 (OPTION_MASK_ISA_MOVBE_UNSET): Likewise.
16509 (ix86_handle_option): Handle OPT_mmovbe.
16510 (ix86_target_string): Add -mmovbe.
16511 (pta_flags): Add PTA_MOVBE.
16512 (processor_alias_table): Add PTA_MOVBE to "atom".
16513 (override_options): Handle PTA_MOVBE.
16514
16515 * config/i386/i386.h (TARGET_MOVBE): New.
16516
16517 * config/i386/i386.md (bswapsi2): Check TARGET_MOVBE.
16518 (*bswapsi_movbe): New.
16519 (*bswapdi_movbe): Likewise.
16520 (bswapdi2): Renamed to ...
16521 (*bswapdi_1): This.
16522 (bswapdi2): New expander.
16523
16524 * config/i386/i386.opt (mmovbe): New.
16525
16526 * doc/invoke.texi: Document -mmovbe.
16527
16528 2009-05-21 Taras Glek <tglek@mozilla.com>
16529
16530 * plugin.c (try_init_one_plugin): Updated to new plugin_init API.
16531 * gcc-plugin.h (plugin_init): Updated signature.
16532 * gcc-plugin.h (plugin_name_args): Moved to this header.
16533 * doc/plugins.texi (plugin_init): Updated documention to reflect
16534 API change.
16535 * doc/plugins.texi (plugin_name_args): Added to documention.
16536
16537 2009-05-21 Mark Mitchell <mark@codesourcery.com>
16538
16539 * config/arm/neon.md (*mul<mode>3add<mode>_neon): New pattern.
16540 (*mul<mode>3neg<mode>add<mode>_neon): Likewise.
16541
16542 2009-05-21 Shujing Zhao <pearly.zhao@oracle.com>
16543
16544 * config/i386/i386.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P and
16545 JUMP_TABLE_DATA_P predicates where applicable.
16546 * config/i386/predicates.md: Ditto.
16547 * config/i386/sse.md: Ditto.
16548
16549 2009-05-21 Jakub Jelinek <jakub@redhat.com>
16550
16551 * config/i386/i386.md (adddi_4_rex64, addsi_4, addhi_4): For
16552 operand2 -128 override length_immediate attribute to 1.
16553 * config/i386/predicates.md (constm128_operand): New predicate.
16554
16555 * config/i386/i386.c (memory_address_length): Handle %r12
16556 the same as %rsp and %r13 the same as %rbp. For %rsp and %rbp
16557 also check REGNO.
16558 (ix86_attr_length_address_default): For MODE_SI lea in 64-bit
16559 mode look through optional ZERO_EXTEND and SUBREG.
16560 * config/i386/i386.md (R12_REG): New define_constant.
16561 (prefix_data16): For sse unit set also for MODE_TI insns.
16562 (prefix_rex): For -m32 always return 0. For TYPE_IMOVX
16563 insns set if operand 1 is ext_QIreg_operand.
16564 (modrm): For TYPE_IMOV clear only if not MODE_DI. For
16565 TYPE_{ALU{,1},ICMP,TEST} insn clear if there is non-shortened
16566 immediate.
16567 (*movdi_extzv_1, zero_extendhidi2, zero_extendqidi2): Change
16568 mode from MODE_DI to MODE_SI.
16569 (movdi_1_rex64): Override modrm and length_immediate attributes
16570 only for movabs (TYPE_IMOV, alternative 2).
16571 (zero_extendsidi2_rex64): Clear prefix_0f attribute if TYPE_IMOVX.
16572 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
16573 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
16574 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
16575 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Set
16576 prefix_rex attribute if DImode.
16577 (*adddi_1_rex64, *adddi_2_rex64, *adddi_3_rex64, *adddi_5_rex64,
16578 *addsi_1, *addsi_1_zext, *addsi_2, *addsi_2_zext, *addsi_3,
16579 *addsi_3_zext, *addsi_5, *addhi_1_lea, *addhi_1, *addhi_2, *addhi_3,
16580 *addhi_5, *addqi_1_lea, *addqi_1): Override length_immediate
16581 attribute to 1 if TYPE_ALU and operand 2 is const128_operand.
16582 (pro_epilogue_adjust_stack_1, pro_epilogue_adjust_stack_rex64):
16583 Likewise. For TYPE_IMOV clear length_immediate attribute.
16584 (*ashldi3_1_rex64, *ashldi3_cmp_rex64, *ashldi3_cconly_rex64,
16585 *ashlsi3_1, *ashlsi3_1_zext, *ashlsi3_cmp, **ashlsi3_cconly,
16586 *ashlsi3_cmp_zext, *ashlhi3_1_lea, *ashlhi3_1, *ashlhi3_cmp,
16587 *ashlhi3_cconly, *ashlqi3_1_lea, *ashlqi3_1, *ashlqi3_cmp,
16588 *ashlqi3_cconly): Override length_immediate attribute to 0 if TYPE_ALU
16589 or one operand TYPE_ISHIFT.
16590 (*ashrdi3_1_one_bit_rex64, *ashrdi3_one_bit_cmp_rex64,
16591 *ashrdi3_one_bit_cconly_rex64, *ashrsi3_1_one_bit,
16592 *ashrsi3_1_one_bit_zext, *ashrsi3_one_bit_cmp,
16593 *ashrsi3_one_bit_cconly, *ashrsi3_one_bit_cmp_zext,
16594 *ashrhi3_1_one_bit, *ashrhi3_one_bit_cmp, *ashrhi3_one_bit_cconly,
16595 *ashrqi3_1_one_bit, *ashrqi3_1_one_bit_slp, *ashrqi3_one_bit_cmp,
16596 *ashrqi3_one_bit_cconly, *lshrdi3_1_one_bit_rex64,
16597 *lshrdi3_cmp_one_bit_rex64, *lshrdi3_cconly_one_bit_rex64,
16598 *lshrsi3_1_one_bit, *lshrsi3_1_one_bit_zext, *lshrsi3_one_bit_cmp,
16599 *lshrsi3_one_bit_cconly, *lshrsi3_cmp_one_bit_zext,
16600 *lshrhi3_1_one_bit, *lshrhi3_one_bit_cmp, *lshrhi3_one_bit_cconly,
16601 *lshrqi3_1_one_bit, *lshrqi3_1_one_bit_slp, *lshrqi2_one_bit_cmp,
16602 *lshrqi2_one_bit_cconly, *rotlsi3_1_one_bit_rex64, *rotlsi3_1_one_bit,
16603 *rotlsi3_1_one_bit_zext, *rotlhi3_1_one_bit, *rotlqi3_1_one_bit_slp,
16604 *rotlqi3_1_one_bit, *rotrdi3_1_one_bit_rex64, *rotrsi3_1_one_bit,
16605 *rotrsi3_1_one_bit_zext, *rotrhi3_one_bit, *rotrqi3_1_one_bit,
16606 *rotrqi3_1_one_bit_slp): Override length_immediate attribute to 0,
16607 set mode attribute, don't override length attribute.
16608 (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Set prefix_0f attribute
16609 to 1.
16610 (return_internal_long): Set length attribute to 2 instead of 1.
16611 (*strmovqi_rex_1, *strsetqi_rex_1, *rep_stosqi_rex64,
16612 *cmpstrnqi_nz_rex_1, *cmpstrnqi_rex_1, *strlenqi_rex_1): Clear
16613 prefix_rex attribute.
16614 * config/i386/predicates.md (ext_QIreg_operand, const128_operand):
16615 New predicates.
16616 (memory_displacement_only_operand): Always return 0 for TARGET_64BIT.
16617
16618 2009-05-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16619
16620 * config/arm/thumb2.md (orsi_notsi_si): Fix typo in pattern.
16621
16622 2009-05-20 Ian Lance Taylor <iant@google.com>
16623
16624 * tree.c (build_tree_list_vec_stat): New function.
16625 (ctor_to_vec): New function.
16626 (build_nt_call_vec): New function.
16627 (build_call_array): Change args to be a const pointer.
16628 (build_call_vec): New function.
16629 * tree.h (build_nt_call_vec): Declare.
16630 (build_tree_list_vec_stat): Declare.
16631 (build_tree_list_vec): Define.
16632 (build_call_array): Update declaration.
16633 (build_call_vec): Declare.
16634 (ctor_to_vec): Declare.
16635 * c-common.c (tree_vector_cache): New static variable.
16636 (make_tree_vector): New function.
16637 (release_tree_vector): New function.
16638 (make_tree_vector_single): New function.
16639 (make_tree_vector_copy): New function.
16640 * c-common.h (tree_vector_cache, make_tree_vector): Declare.
16641 (make_tree_vector_single, make_tree_vector_copy): Declare.
16642 * c-parser.c (cached_expr_list_1, cached_expr_list_2): Remove.
16643 (c_parser_expr_list): Don't manage cache here, instead call
16644 make_tree_vector.
16645 (c_parser_release_expr_list): Remove static function.
16646 (c_parser_vec_to_tree_list): Remove static function.
16647 (c_parser_attributes): Call build_tree_list_vec instead of
16648 c_parser_vec_to_tree_list. Call release_tree_vector instead of
16649 c_parser_release_expr_list.
16650 (c_parser_postfix_expression_after_primary): Likewise.
16651 (c_parser_objc_keywordexpr): Likewise.
16652
16653 2009-05-20 Sandra Loosemore <sandra@codesourcery.com>
16654
16655 * doc/tm.texi (Misc): Document TARGET_INVALID_PARAMETER_TYPE,
16656 TARGET_INVALID_RETURN_TYPE, TARGET_PROMOTED_TYPE, and
16657 TARGET_CONVERT_TO_TYPE.
16658 * hooks.c (hook_tree_const_tree_null): Define.
16659 * hooks.h (hook_tree_const_tree_null): Declare.
16660 * target.h (struct gcc_target): Add invalid_parameter_type,
16661 invalid_return_type, promoted_type, and convert_to_type fields.
16662 * target-def.h: (TARGET_INVALID_PARAMETER_TYPE): Define.
16663 (TARGET_INVALID_RETURN_TYPE): Define.
16664 (TARGET_PROMOTED_TYPE): Define.
16665 (TARGET_CONVERT_TO_TYPE): Define.
16666 (TARGET_INITIALIZER): Update for new fields.
16667 * c-decl.c (grokdeclarator): Check targetm.invalid_return_type.
16668 (grokparms): Check targetm.invalid_parameter_type.
16669 * c-typeck.c (default_conversion): Check targetm.promoted_type.
16670 * c-convert.c (convert): Check targetm.convert_to_type.
16671
16672 2009-05-20 Adam Nemet <anemet@caviumnetworks.com>
16673
16674 * config/mips/mips.md (*extenddi_truncate<mode>,
16675 *extendsi_truncate<mode>): Emit exts if supported. Add attribute
16676 defintions.
16677 (*extendhi_truncateqi): New define_insn_and_sptit.
16678
16679 2009-05-20 Jakub Jelinek <jakub@redhat.com>
16680
16681 PR middle-end/40204
16682 * fold-const.c (fold_binary) <case BIT_AND_EXPR>: Avoid infinite
16683 recursion if build_int_cst_type returns the same INTEGER_CST as arg1.
16684
16685 2009-05-20 Eric Botcazou <ebotcazou@adacore.com>
16686
16687 * fold-const.c (build_fold_addr_expr_with_type): Take the address of
16688 the operand of VIEW_CONVERT_EXPR.
16689
16690 2009-05-20 H.J. Lu <hongjiu.lu@intel.com>
16691
16692 * config/i386/driver-i386.c (host_detect_local_cpu): Check
16693 extended family and model for Intel processors. Support Intel Atom.
16694
16695 2009-05-20 Olivier Hainque <hainque@adacore.com>
16696
16697 * gstab.h (stab_code_type): Define, to be used instead of the
16698 __stab_debug_code enum, made anonymous. Add 2009 to the copyright
16699 notice.
16700 * dbxout.c (STAB_CODE_TYPE): Remove #define and replace use
16701 occurrences by stab_code_type.
16702 * mips-tfile.c (STAB_CODE_TYPE): Remove #define, unused.
16703
16704 2009-05-20 Martin Jambor <mjambor@suse.cz>
16705
16706 * tree-flow.h (insert_edge_copies_seq): Undeclare.
16707 (sra_insert_before): Likewise.
16708 (sra_insert_after): Likewise.
16709 (sra_init_cache): Likewise.
16710 (sra_type_can_be_decomposed_p): Likewise.
16711 * tree-mudflap.c (insert_edge_copies_seq): Copied here from tree-sra.c
16712 * tree-sra.c (sra_type_can_be_decomposed_p): Made static.
16713 (sra_insert_before): Likewise.
16714 (sra_insert_after): Likewise.
16715 (sra_init_cache): Likewise.
16716 (insert_edge_copies_seq): Made static and moved upwards.
16717
16718 * tree-complex.c (extract_component): Added VIEW_CONVERT_EXPR switch
16719 case.
16720
16721 * tree-flow-inline.h (contains_view_convert_expr_p): New function.
16722
16723 * ipa-prop.c (get_ssa_def_if_simple_copy): New function.
16724 (determine_cst_member_ptr): Call get_ssa_def_if_simple_copy to skip
16725 simple copies.
16726
16727 2009-05-20 Richard Guenther <rguenther@suse.de>
16728
16729 * expr.c (expand_expr_real_1): Avoid calling do_store_flag
16730 with mismatched comparison modes.
16731
16732 2009-05-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16733
16734 * config/arm/arm.md (*arm_iorsi3): Refactored for only ARM.
16735 (peephole ior (reg, int) -> mov, ior): Refactored for only ARM.
16736 * config/arm/thumb2.md (*thumb_andsi_not_shiftsi_si): Allow bic
16737 with shifts for Thumb2.
16738 (orsi_notsi): New for orn.
16739 (*thumb_orsi_notshiftsi_si): Allow orn with shifts.
16740 (*thumb2_iorsi3): Rewrite support for iorsi for Thumb2.
16741 * config/arm/arm.c (const_ok_for_op): Split case for IOR for Thumb2.
16742 (arm_gen_constant): Set can_invert for IOR and Thumb2, Add comments.
16743 Don't invert remainder for IOR.
16744
16745 2009-05-19 Zdenek Dvorak <ook@ucw.cz>
16746
16747 PR tree-optimization/40087
16748 * tree-ssa-loop-niter.c (number_of_iterations_ne_max,
16749 number_of_iterations_ne): Rename never_infinite argument.
16750 (number_of_iterations_lt_to_ne, number_of_iterations_lt,
16751 number_of_iterations_le): Handle pointer-type ivs when
16752 exit_must_be_taken is false.
16753 (number_of_iterations_cond): Do not always assume that
16754 exit_must_be_taken if the control variable is a pointer.
16755
16756 2009-05-19 Andrew Pinski <andrew_pinski@playstation.sony.com>
16757
16758 * c-typeck.c (build_binary_op): Allow % on integal vectors.
16759 * doc/extend.texi (Vector Extension): Document that % is allowed too.
16760
16761 2009-05-19 H.J. Lu <hongjiu.lu@intel.com>
16762
16763 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Check
16764 ASM_OUTPUT_MAX_SKIP_PAD instead of ASM_OUTPUT_MAX_SKIP_ALIGN.
16765
16766 2009-05-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
16767
16768 PR c/40172
16769 * c.opt (Wlogical-op): Disabled by default.
16770 * c-opt (c_common_post_options): Do not enable Wlogical-op with
16771 Wextra.
16772 * doc/invoke.texi (Wlogical-op): Likewise.
16773
16774 2009-05-19 Eric Botcazou <ebotcazou@adacore.com>
16775
16776 * tree-scalar-evolution.c (follow_ssa_edge_expr) <NOP_EXPR>: Turn
16777 into CASE_CONVERT.
16778 <PLUS_EXPR>: Strip useless type conversions instead of type nops.
16779 Propagate the type of the first operand.
16780 <ASSERT_EXPR>: Simplify.
16781 (follow_ssa_edge_in_rhs): Use gimple_expr_type to get the type.
16782 Rewrite using the RHS code as discriminant.
16783 <NOP_EXPR>: Turn into CASE_CONVERT.
16784 <PLUS_EXPR>: Propagate the type of the first operand.
16785
16786 2009-05-19 Steve Ellcey <sje@cup.hp.com>
16787
16788 * config/ia64/ia64-protos.h (ia64_dconst_0_5): New.
16789 (ia64_dconst_0_375): New.
16790 * config/ia64/ia64.c (ia64_override_options): Remove
16791 -minline-sqrt-min-latency warning.
16792 (ia64_dconst_0_5_rtx, ia64_dconst_0_5): New.
16793 (ia64_dconst_0_375_rtx, ia64_dconst_0_375): New
16794 * config/ia64/ia64.md (*sqrt_approx): Remove.
16795 (sqrtsf2): Remove #if 0.
16796 (sqrtsf2_internal_thr): Rewrite and move to div.md.
16797 (sqrtdf): Remove assert.
16798 (sqrtdf2_internal_thr): Rewrite and move to div.md.
16799 (sqrtxf2): Remove #if 0.
16800 (sqrtxf2_internal_thr): Rewrite and move to div.md.
16801 * div.md (sqrt_approx_rf): New.
16802 (sqrtsf2_internal_thr): New implementation.
16803 (sqrtsf2_internal_lat): New.
16804 (sqrtdf2_internal_thr: New implementation.
16805 (sqrtxf2_internal): New implementation.
16806
16807 2009-05-19 Francois-Xavier Coudert <fxcoudert@gmail.com>
16808 Hans-Peter Nilsson <hp@axis.com>
16809
16810 * defaults.h (UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE)
16811 (WCHAR_TYPE, MODIFIED_WCHAR_TYPE, PTRDIFF_TYPE, WINT_TYPE)
16812 (INTMAX_TYPE, UINTMAX_TYPE, SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE)
16813 (INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE)
16814 (UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE)
16815 (INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE)
16816 (UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE)
16817 (INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE)
16818 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE)
16819 (SIZE_TYPE, PID_TYPE, CHAR16_TYPE, CHAR32_TYPE): Move defaults here...
16820 * c-common.c: ...from here.
16821
16822 2009-05-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
16823
16824 * c-common.c (warn_logical_operator): Remove unnecessary conditionals.
16825
16826 2009-05-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16827
16828 * builtins.c (do_mpc_arg1): Separate MPFR/MPC C rounding types.
16829
16830 2009-05-19 Ben Elliston <bje@au.ibm.com>
16831
16832 * unwind-dw2-fde.c (fde_unencoded_compare): Replace type punning
16833 assignments with memcpy calls.
16834 (add_fdes): Likewise.
16835 (binary_search_unencoded_fdes): Likewise.
16836 (linear_search_fdes): Eliminate type puns.
16837
16838 2009-05-19 Richard Guenther <rguenther@suse.de>
16839
16840 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do
16841 not falsely claim to have propagated into all uses.
16842
16843 2009-05-19 Ben Elliston <bje@au.ibm.com>
16844
16845 * doc/invoke.texi (C Dialect Options): Update OpenMP specification
16846 version to v3.0.
16847
16848 2009-05-18 Kaz Kojima <kkojima@gcc.gnu.org>
16849
16850 * config/sh/sh-protos.h (sh_legitimate_address_p): Remove.
16851 * config/sh/sh.c (sh_legitimate_address_p): Make static.
16852 (TARGET_LEGITIMATE_ADDRESS_P): New.
16853 * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16854 * config/sh/sh.md: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
16855
16856 2009-05-18 Dodji Seketeli <dodji@redhat.com>
16857
16858 PR debug/40109
16859 * dwarf2out.c (gen_type_die_with_usage): Generate the DIE as a
16860 child of the containing namespace's DIE.
16861
16862 2009-05-18 Adam Nemet <anemet@caviumnetworks.com>
16863
16864 * config/mips/mips.md (*zero_extend<GPR:mode>_trunc<SHORT:mode>,
16865 *zero_extendhi_truncqi): Move after the zero_extend patterns.
16866 (*extenddi_truncate<mode>, *extendsi_truncate<mode>): Move after the
16867 extend patterns.
16868
16869 2009-05-18 H.J. Lu <hongjiu.lu@intel.com>
16870
16871 PR target/39942
16872 * config/i386/i386.c (ix86_avoid_jump_misspredicts): Replace
16873 gen_align with gen_pad.
16874 (ix86_reorg): Check ASM_OUTPUT_MAX_SKIP_PAD instead of
16875 #ifdef ASM_OUTPUT_MAX_SKIP_ALIGN.
16876
16877 * config/i386/i386.h (ASM_OUTPUT_MAX_SKIP_PAD): New.
16878 * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_PAD): Likewise.
16879
16880 * config/i386/i386.md (align): Renamed to ...
16881 (pad): This. Replace ASM_OUTPUT_MAX_SKIP_ALIGN with
16882 ASM_OUTPUT_MAX_SKIP_PAD.
16883
16884 2009-05-18 Andreas Schwab <schwab@linux-m68k.org>
16885
16886 * config.gcc: Fix variable syntax.
16887
16888 PR target/39531
16889 * config/m68k/m68k.c (output_andsi3): Mask off sign bit copies
16890 before calling exact_log2.
16891 (output_iorsi3): Likewise.
16892 (output_xorsi3): Likewise.
16893
16894 2009-05-18 Kaz Kojima <kkojima@gcc.gnu.org>
16895
16896 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register
16897 for the none zero constant operand except for EQ and NE
16898 comprisons even when the first operand is R0.
16899
16900 2009-05-18 Andreas Krebbel <krebbel1@de.ibm.com>
16901
16902 * config/s390/2064.md: Remove trailing whitespaces.
16903 * config/s390/2084.md: Likewise.
16904 * config/s390/constraints.md: Likewise.
16905 * config/s390/fixdfdi.h: Likewise.
16906 * config/s390/libgcc-glibc.ver: Likewise.
16907 * config/s390/s390-modes.def: Likewise.
16908 * config/s390/s390-protos.h: Likewise.
16909 * config/s390/s390.c: Likewise.
16910 * config/s390/s390.h: Likewise.
16911 * config/s390/s390.md: Likewise.
16912 * config/s390/tpf-unwind.h: Likewise.
16913
16914 2009-05-18 Maxim Kuvyrkov <maxim@codesourcery.com>
16915
16916 * config/m68k/m68k.c (m68k_legitimize_address): Fix typo in signature.
16917
16918 2009-05-18 Maxim Kuvyrkov <maxim@codesourcery.com>
16919
16920 M68K TLS support.
16921 * configure.ac (m68k-*-*): Check if binutils support TLS.
16922 * configure: Regenerate.
16923 * config/m68k/predicates.md (symbolic_operand): Extend comment.
16924 * config/m68k/constraints.md (Cu): New constraint.
16925 * config/m68k/m68k.md (UNSPEC_GOTOFF): Remove.
16926 (UNSPEC_RELOC16, UNSPEC_RELOC32): New constants.
16927 (movsi): Handle TLS symbols.
16928 (addsi3_5200): Handle XTLS symbols, indent.
16929 * config/m68k/m68k-protos.h (m68k_legitimize_tls_address): Declare.
16930 (m68k_tls_reference_p): Declare.
16931 (m68k_legitimize_address): Declare.
16932 (m68k_unwrap_symbol): Declare.
16933 * config/m68k/m68k.opt (mxtls): New option.
16934 * config/m68k/m68k.c (ggc.h): Include.
16935 (m68k_output_dwarf_dtprel): Implement hook.
16936 (TARGET_HAVE_TLS, TARGET_ASM_OUTPUT_DWARF_DTPREL): Define.
16937 (m68k_expand_prologue): Load GOT pointer when function needs it.
16938 (m68k_illegitimate_symbolic_constant_p): Handle TLS symbols.
16939 (m68k_legitimate_constant_address_p): Same.
16940 (m68k_decompose_address): Handle TLS references.
16941 (m68k_get_gp): New static function.
16942 (enum m68k_reloc): New contants.
16943 (TLS_RELOC_P): New macro.
16944 (m68k_wrap_symbol): New static function.
16945 (m68k_unwrap_symbol): New function.
16946 (m68k_final_prescan_insn_1): New static function.
16947 (m68k_final_prescan_insn): New function.
16948 (m68k_move_to_reg, m68k_wrap_symbol_into_got_ref): New static
16949 functions.
16950 (legitimize_pic_address): Handle TLS references..
16951 (m68k_tls_get_addr, m68k_get_tls_get_addr)
16952 (m68k_libcall_value_in_a0_p)
16953 (m68k_call_tls_get_addr, m68k_read_tp, m68k_get_m68k_read_tp)
16954 (m68k_call_m68k_read_tp): Helper variables and functions for ...
16955 (m68k_legitimize_tls_address): Handle TLS references.
16956 (m68k_tls_symbol_p, m68k_tls_reference_p_1, m68k_tls_reference_p):
16957 New functions.
16958 (m68k_legitimize_address): Handle TLS symbols.
16959 (m68k_get_reloc_decoration): New static function.
16960 (m68k_output_addr_const_extra): Handle UNSPEC_RELOC16 and
16961 UNSPEC_RELOC32.
16962 (m68k_output_dwarf_dtprel): Implement hook.
16963 (print_operand_address): Handle UNSPEC_RELOC16 adn UNSPEC_RELOC32.
16964 (m68k_libcall_value): Return result in A0 instead of D0 when asked by
16965 m68k_call_* routines.
16966 (sched_attr_op_type): Handle TLS symbols.
16967 (gt-m68k.h): Include.
16968 * config/m68k/m68k.h (FINAL_PRESCAN_INSN): Define.
16969 (LEGITIMATE_PIC_OPERAND_P): Support TLS.
16970
16971 2009-05-18 Martin Jambor <mjambor@suse.cz>
16972
16973 * ipa-prop.c (ipa_check_stmt_modifications): Removed.
16974 (visit_store_addr_for_mod_analysis): New function.
16975 (ipa_detect_param_modifications): Use walk_stmt_load_store_addr_ops.
16976 (determine_cst_member_ptr): Use gimple_assign_single_p.
16977 (ipa_get_stmt_member_ptr_load_param): Use gimple_assign_single_p.
16978 (ipa_analyze_call_uses): Use !gimple_assign_rhs2 rather than number of
16979 operands. Don't check number of operands of a NOP_EXPR.
16980
16981 2009-05-18 Eric Fisher <joefoxreal@gmail.com>
16982
16983 * doc/tree-ssa.texi (SSA Operands): Fix a mistake.
16984
16985 2009-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
16986
16987 PR c/40172
16988 * c-common.c (warn_logical_operator): Don't warn if one of
16989 expression isn't always true or false.
16990
16991 2009-05-17 Kai Tietz <kai.tietz@onevision.com>
16992
16993 * config/i386/biarch32.h: New file.
16994 * config.gcc: Add for target i386-w64-* the biarch32.h to tm_file.
16995
16996 2009-05-17 Adam Nemet <anemet@caviumnetworks.com>
16997
16998 * config/mips/mips.md (*zero_extend<mode>_trunchi,
16999 *zero_extend<mode>_truncqi): Merge these into ...
17000 (*zero_extend<GPR:mode>_trunc<SHORT:mode>): ... this new pattern.
17001 Name the pattern following this as *zero_extendhi_truncqi.
17002
17003 2009-05-16 Brad Lucier <lucier@math.purdue.edu>
17004
17005 PR middle-end/39301
17006 * hwint.h: Add macro HOST_WIDEST_INT_PRINT.
17007 * bitmap.c (bitmap_descriptor): Make fields HOST_WIDEST_INT.
17008 (output_info): Make field HOST_WIDEST_INT.
17009 (print_statistics): Use HOST_WIDEST_INT_PRINT.
17010 (dump_bitmat_statistics): Same.
17011
17012 2009-05-16 Francois-Xavier Coudert <fxcoudert@gmail.com>
17013
17014 * config.gcc (use_gcc_stdint): Set to wrap.
17015 * config/darwin.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
17016 INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
17017 UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
17018 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
17019 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
17020 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
17021 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
17022 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
17023
17024 2009-05-16 Joseph Myers <joseph@codesourcery.com>
17025
17026 * config.gcc (mips*-*-*): Support arch_32, arch_64, tune_32 and
17027 tune_64.
17028 * config/mips/mips.h (MIPS_ABI_DEFAULT, MULTILIB_ABI_DEFAULT):
17029 Move definitions earlier.
17030 (OPT_ARCH64, OPT_ARCH32): Define.
17031 (OPTION_DEFAULT_SPECS): Add entries for arch_32, arch_64, tune_32
17032 and tune_64.
17033
17034 2009-05-16 Richard Earnshaw <rearnsha@arm.com>
17035
17036 PR target/40153
17037 * arm.md (cstoresi_nltu_thumb1): Use a neg of ltu as the pattern name
17038 implies.
17039
17040 2009-05-16 Richard Earnshaw <rearnsha@arm.com>
17041
17042 * arm.md (movdi2): Copy non-reg values to DImode registers.
17043
17044 2009-05-16 Jakub Jelinek <jakub@redhat.com>
17045
17046 PR target/39942
17047 * final.c (label_to_max_skip): New function.
17048 (label_to_alignment): Only use LABEL_TO_ALIGNMENT if
17049 CODE_LABEL_NUMBER <= max_labelno.
17050 * output.h (label_to_max_skip): New prototype.
17051 * config/i386/i386.c (ix86_avoid_jump_misspredicts): Renamed to...
17052 (ix86_avoid_jump_mispredicts): ... this. Don't define if
17053 ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined. Update comment.
17054 Handle CODE_LABELs with >= 16 byte alignment or with
17055 max_skip == (1 << align) - 1.
17056 (ix86_reorg): Don't call ix86_avoid_jump_mispredicts if
17057 ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined.
17058
17059 PR target/39942
17060 * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Don't emit second
17061 .p2align 3 if MAX_SKIP is smaller than 7.
17062 * config/i386/linux.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
17063
17064 2009-05-15 Ian Lance Taylor <iant@google.com>
17065
17066 * alias.c (struct alias_set_entry_d): Rename from struct
17067 alias_set_entry. Change all uses.
17068 * except.c (struct call_site_record_d): Rename from struct
17069 call_site_record. Change all uses.
17070 * except.h (struct eh_region_d): Rename from struct eh_region.
17071 Change all uses.
17072 * gcse.c (struct hash_table_d): Rename from struct hash_table.
17073 Change all uses.
17074 * graphite.c (struct ivtype_map_elt_d): Rename fromstruct
17075 ivtype_map_elt. Change all uses.
17076 (struct rename_map_elt_d): Rename fromstruct rename_map_elt.
17077 Change all uses.
17078 (struct ifsese_d): Rename fromstruct ifsese. Change all uses.
17079 * graphite.h (struct name_tree_d): Rename from struct name_tree.
17080 Change all uses.
17081 (struct sese_d): Rename from struct sese. Change all uses.
17082 * omega.h (struct eqn_d): Rename from struct eqn. Change all uses.
17083 (struct omega_pb_d): Rename from struct omega_pb. Change all uses.
17084 * optabs.h (struct optab_d): Rename from struct optab. Change all
17085 uses.
17086 (struct convert_optab_d): Rename from struct convert_optab.
17087 Change all uses.
17088 * tree-pass.h (struct ipa_opt_pass_d): Rename fromstruct
17089 ipa_opt_pass. Change all uses.
17090 * tree-predcom.c (struct dref_d): Rename from struct dref. Change
17091 all uses.
17092
17093 * c-decl.c (pushtag): If -Wc++-compat, warn if the tag is already
17094 defined as a typedef.
17095 (grokdeclarator): If -Wc++-compat, warn if a typedef is already
17096 defined as a tag.
17097
17098 2009-05-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
17099
17100 PR 16302
17101 * fold-const.c (make_range,build_range_check,merge_ranges): Move
17102 declaration to...
17103 (merge_ranges): Returns bool.
17104 * tree.h (make_range): .. to here.
17105 (build_range_check): Likewise.
17106 (merge_ranges): Likewise. Renamed from merge_ranges.
17107 * c-typeck.c (parser_build_binary_op): Update calls to
17108 warn_logical_operator.
17109 * c-common.c (warn_logical_operator): Add new warning.
17110 * c-common.h (warn_logical_operator): Update declaration.
17111
17112 2009-05-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
17113
17114 * ira-conflicts.c (add_insn_allocno_copies): Fix wrong conditional.
17115
17116 2009-05-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17117
17118 * doc/install.texi: Document MPC requirements, flags etc.
17119
17120 * builtins.c (do_mpc_arg1, fold_builtin_ccos): New.
17121 (fold_builtin_cexp): Ensure we get a complex REAL_TYPE.
17122 Evaluate constant arguments.
17123 (fold_builtin_carg): Ensure we get a complex REAL_TYPE.
17124 (fold_builtin_1): Likewise, also evaluate constant arguments.
17125 Remove superfluous break.
17126 (do_mpc_ckconv): New.
17127 * real.h: Include mpc.h.
17128 * toplev.c (print_version): Output MPC version info if available.
17129
17130 2009-05-15 Sandra Loosemore <sandra@codesourcery.com>
17131
17132 * fold-const.c (fold_convert_const_real_from_real): Check for overflow.
17133
17134 2009-05-15 H.J. Lu <hongjiu.lu@intel.com>
17135
17136 * config/i386/i386.c (ix86_reorg): Call optimize_function_for_speed_p
17137 only once.
17138
17139 2009-05-15 Jan Hubicka <jh@suse.cz>
17140
17141 * doc/invoke.texi (max-early-inliner-iterations): New flag.
17142 * ipa-inline.c (enum inlining_mode): New INLINE_SIZE_NORECURSIVE.
17143 (try_inline): Fix return value.
17144 (cgraph_decide_inlining_incrementally): Honor new value.
17145 (cgraph_early_inlining): Handle indirect inlining.
17146 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): New.
17147
17148 2009-05-15 Jan Hubicka <jh@suse.cz>
17149
17150 * cgraph.h (struct cgraph_node): Add finalized_by_frotnend flag.
17151 * cgraphunit.c (cgraph_finalize_function): Set it.
17152 (cgraph_expand_function): Use it.
17153
17154 2009-05-15 Sandra Loosemore <sandra@codesourcery.com>
17155
17156 * real.c (encode_ieee_half): Define.
17157 (decode_ieee_half): Define.
17158 (ieee_half_format): Define.
17159 (arm_half_format): Define.
17160 * real.h (ieee_half_format): Declare.
17161 (arm_half_format): Declare.
17162
17163 2009-05-15 Sandra Loosemore <sandra@codesourcery.com>
17164
17165 * optabs.c (prepare_float_lib_cmp): Test that the comparison,
17166 swapped, and reversed optabs exist before trying to use them.
17167
17168 2009-05-15 Paul Brook <paul@codesourcery.com>
17169 Sandra Loosemore <sandra@codesourcery.com>
17170
17171 * config/arm/arm.c (neon_vector_mem_operand): Handle element/structure
17172 loads. Allow PRE_DEC.
17173 (output_move_neon): Handle PRE_DEC.
17174 (arm_print_operand): Add 'A' for neon structure loads.
17175 * config/arm/arm-protos.h (neon_vector_mem_operand): Update prototype.
17176 * config/arm/neon.md (neon_mov): Update comment.
17177 * config/arm/constraints.md (Un, Us): Update neon_vector_mem_operand
17178 calls.
17179 (Um): New constraint.
17180
17181 2009-05-15 Jan Hubicka <jh@suse.cz>
17182
17183 Revert the following patch until testsuite fallout is fixed:
17184 * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
17185 * cgraph.h (struct inline_summary): New filed self_wize,
17186 size_inlining_benefit, self_time and time_inlining_benefit.
17187 (struct cgraph_global_info): Replace insns by time ans size fields.
17188 * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
17189 (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
17190 (ipcp_update_callgraph): Do not touch function bodies.
17191 * ipa-inline.c: Include except.h
17192 (MAX_TIME): New constant.
17193 (overall_insns): Remove
17194 (overall_size, max_benefit): New static variables.
17195 (cgraph_estimate_time_after_inlining): New function.
17196 (cgraph_estimate_size_after_inlining): Rewrite using benefits.
17197 (cgraph_clone_inlined_nodes): Update size.
17198 (cgraph_mark_inline_edge): Update size.
17199 (cgraph_estimate_growth): Use size info.
17200 (cgraph_check_inline_limits): Check size.
17201 (cgraph_default_inline_p): Likewise.
17202 (cgraph_edge_badness): Compute badness based on benefit and size cost.
17203 (cgraph_decide_recursive_inlining): Check size.
17204 (cgraph_decide_inlining_of_small_function): Update size; dump sizes
17205 and times.
17206 (cgraph_decide_inlining): Likewise.
17207 (cgraph_decide_inlining_incrementally): Likewise; honor
17208 PARAM_EARLY_INLINING_INSNS.
17209 (likely_eliminated_by_inlining_p): New predicate.
17210 (estimate_function_body_sizes): New function.
17211 (compute_inline_parameters): Use it.
17212 * except.c (must_not_throw_labels): New function.
17213 * except.h (must_not_throw_labels): Declare.
17214 * tree-inline.c (init_inline_once): Kill inlining_weigths
17215 * tree-ssa-structalias.c: Avoid uninitialized warning.
17216 * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
17217 (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
17218 (PARAM_INLINE_CALL_COST): Remove.
17219 (PARAM_EARLY_INLINING_INSNS): New.
17220
17221 2009-05-15 Richard Guenther <rguenther@suse.de>
17222
17223 * tree-ssa-pre.c (eliminate): Use TODO_update_ssa_only_virtuals,
17224 not TODO_update_ssa.
17225
17226 2009-05-15 Richard Guenther <rguenther@suse.de>
17227
17228 PR tree-optimization/39999
17229 * gimple.h (gimple_expr_type): Use the expression type looking
17230 through useless conversions.
17231 * tree-ssa-sccvn.c (vn_nary_op_lookup_stmt): Use gimple_expr_type.
17232 (vn_nary_op_insert_stmt): Likewise.
17233 (simplify_binary_expression): Likewise.
17234
17235 2009-05-15 Richard Guenther <rguenther@suse.de>
17236
17237 * common.opt (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
17238 New options, enabled by default.
17239 * doc/invoke.texi (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
17240 Document.
17241 * tree-ssa-forwprop.c (gate_forwprop): Use flag_tree_forwprop.
17242 * tree-ssa-phiprop.c (gate_phiprop): Use flag_tree_phiprop.
17243 * tree-ssa-structalias.c (gate_tree_pta): New function.
17244 (pass_build_alias): Use it.
17245
17246 2009-05-15 Joseph Myers <joseph@codesourcery.com>
17247
17248 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
17249 recurse on an invariant address if a conversion from a pointer
17250 type to a wider integer type is involved.
17251
17252 2009-05-15 Jan Hubicka <jh@suse.cz>
17253
17254 * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
17255 * cgraph.h (struct inline_summary): New filed self_wize,
17256 size_inlining_benefit, self_time and time_inlining_benefit.
17257 (struct cgraph_global_info): Replace insns by time ans size fields.
17258 * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
17259 (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
17260 (ipcp_update_callgraph): Do not touch function bodies.
17261 * ipa-inline.c: Include except.h
17262 (MAX_TIME): New constant.
17263 (overall_insns): Remove
17264 (overall_size, max_benefit): New static variables.
17265 (cgraph_estimate_time_after_inlining): New function.
17266 (cgraph_estimate_size_after_inlining): Rewrite using benefits.
17267 (cgraph_clone_inlined_nodes): Update size.
17268 (cgraph_mark_inline_edge): Update size.
17269 (cgraph_estimate_growth): Use size info.
17270 (cgraph_check_inline_limits): Check size.
17271 (cgraph_default_inline_p): Likewise.
17272 (cgraph_edge_badness): Compute badness based on benefit and size cost.
17273 (cgraph_decide_recursive_inlining): Check size.
17274 (cgraph_decide_inlining_of_small_function): Update size; dump sizes
17275 and times.
17276 (cgraph_decide_inlining): Likewise.
17277 (cgraph_decide_inlining_incrementally): Likewise; honor
17278 PARAM_EARLY_INLINING_INSNS.
17279 (likely_eliminated_by_inlining_p): New predicate.
17280 (estimate_function_body_sizes): New function.
17281 (compute_inline_parameters): Use it.
17282 * except.c (must_not_throw_labels): New function.
17283 * except.h (must_not_throw_labels): Declare.
17284 * tree-inline.c (init_inline_once): Kill inlining_weigths
17285 * tree-ssa-structalias.c: Avoid uninitialized warning.
17286 * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
17287 (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
17288 (PARAM_INLINE_CALL_COST): Remove.
17289 (PARAM_EARLY_INLINING_INSNS): New.
17290 doc/invoke.texi (max-inline-insns-auto, early-inlining-insns): Update.
17291 (inline-call-cost): Remove.
17292 (early-inlining-insns): New.
17293
17294 2009-05-15 Eric Botcazou <ebotcazou@adacore.com>
17295
17296 * dbxout.c (dbxout_range_type): Add LOW and HIGH parameters. Use them
17297 for bounds.
17298 (print_int_cst_bounds_in_octal_p): Likewise.
17299 (dbxout_type): Adjust calls to above functions. Be prepared to deal
17300 with subtypes.
17301 * dwarf2out.c (base_type_die): Likewise.
17302 (is_subrange_type): Delete.
17303 (subrange_type_die): Add LOW and HIGH parameters. Use them for bounds.
17304 (modified_type_die): Call subrange_type_for_debug_p on subtypes.
17305 * fold-const.c (fold_truth_not_expr) <CONVERT_EXPR>: Do not strip it
17306 if the destination type is boolean.
17307 (build_range_check): Do not special-case subtypes.
17308 (fold_sign_changed_comparison): Likewise.
17309 (fold_unary): Likewise.
17310 * langhooks-def.h (LANG_HOOKS_GET_SUBRANGE_BOUNDS): Define.
17311 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_GET_SUBRANGE_BOUNDS.
17312 * langhooks.h (lang_hooks_for_types): Add get_subrange_bounds.
17313 * tree.c (subrange_type_for_debug_p): New predicate based on the
17314 former is_subrange_type.
17315 * tree.h (subrange_type_for_debug_p): Declare.
17316 * tree-chrec.c (avoid_arithmetics_in_type_p): Delete.
17317 (convert_affine_scev): Remove call to above function.
17318 (chrec_convert_aggressive): Likewise.
17319 * tree-ssa.c (useless_type_conversion_p_1): Do not specifically return
17320 false for conversions involving subtypes.
17321 * tree-vrp.c (vrp_val_max): Do not special-case subtypes.
17322 (vrp_val_min): Likewise.
17323 (needs_overflow_infinity): Likewise.
17324 (extract_range_from_unary_expr): Likewise.
17325
17326 2009-05-15 Paolo Bonzini <bonzini@gnu.org>
17327
17328 * config/frv/frv.h: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
17329 * config/frv/frv.c: Likewise.
17330 * config/s390/s390.c: Likewise.
17331 * config/sparc/sparc.h: Likewise.
17332 * config/i386/i386.h: Likewise.
17333 * config/i386/i386.c: Likewise.
17334 * config/crx/crx.c: Likewise.
17335 * config/m68hc11/m68hc11.h: Likewise.
17336 * config/iq2000/iq2000.c: Likewise.
17337 * config/mn10300/mn10300.h: Likewise.
17338 * config/mn10300/mn10300.c: Likewise.
17339 * config/m68k/m68k.c: Likewise.
17340 * config/rs6000/rs6000.c: Likewise.
17341 * config/rs6000/xcoff.h: Likewise.
17342 * config/rs6000/linux64.h: Likewise.
17343 * config/rs6000/sysv4.h: Likewise.
17344 * config/score/score3.c: Likewise.
17345 * config/score/score7.c: Likewise.
17346 * config/score/score.c: Likewise.
17347 * config/arm/arm.md: Likewise.
17348 * config/mips/mips.c: Likewise.
17349 * config/mips/mips.md: Likewise.
17350 * config/bfin/bfin.h: Likewise.
17351 * config/pa/pa.c: Likewise.
17352 * config/pa/constraints.md: Likewise.
17353
17354 * config/pdp11/pdp11-protos.h (legitimate_address_p): Delete.
17355 * config/pdp11/pdp11.c (legitimate_address_p): Delete.
17356 * config/pdp11/pdp11.h: Use memory_address_p instead.
17357
17358 2009-05-14 Ian Lance Taylor <iant@google.com>
17359
17360 * passes.c (finish_optimization_passes): Change i to int.
17361 * plugin.c (plugins_active_p): Change event to int.
17362 (dump_active_plugins): Likewise.
17363 * reginfo.c (invalid_mode_change_p): Change to to unsigned int.
17364 Add cast.
17365 * tree.c (tree_range_check_failed): Change c to unsigned int.
17366 (omp_clause_range_check_failed): Likewise.
17367 (build_common_builtin_nodes): Change mode to int. Add cast.
17368 * config/ia64/ia64.c (is_emitted): Change r to unsigned int.
17369 (ia64_hard_regno_rename_ok, ia64_eh_uses): Likewise.
17370
17371 * c-typeck.c (build_unary_op): If -Wc++-compat, warn about using
17372 ++ or -- with a variable of enum type.
17373
17374 2009-05-14 Steven Bosscher <steven@gcc.gnu.org>
17375
17376 PR driver/40144
17377 * opts.c (common_handle_option): Add OPT_fcse_skip_blocks as a no-op.
17378
17379 2009-05-14 Steven Bosscher <steven@gcc.gnu.org>
17380
17381 * store-motion.c: Do not include params.h
17382 * Makefile.in: Fix dependencies for various files.
17383
17384 2009-05-14 Steven Bosscher <steven@gcc.gnu.org>
17385
17386 * auto-inc-dec.c: Fix pass description, remove apparent
17387 accidental duplication.
17388
17389 2009-05-14 H.J. Lu <hongjiu.lu@intel.com>
17390
17391 PR middle-end/40147
17392 * ipa-utils.h (memory_identifier_string): Moved to ...
17393 * tree.h (memory_identifier_string): Here. Add GTY(()).
17394
17395 2009-05-14 Paolo Bonzini <bonzini@gnu.org>
17396
17397 * doc/tm.texi (TARGET_LEGITIMATE_ADDRESS_P): Refer mainly to this
17398 in the former documentation of...
17399 (GO_IF_LEGITIMATE_ADDRESS): ... this.
17400 * ira-conflicts.c (get_dup_num): Use address_operand.
17401 * targhooks.c (default_legitimate_address_p): New.
17402 * targhooks.h (default_legitimate_address_p): New.
17403 * reload.c (strict_memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]:
17404 Call hook.
17405 * recog.c (memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]: Call hook.
17406 * target.h (struct target): Add legitimate_address_p.
17407 * target-def.h (TARGET_LEGITIMATE_ADDRESS_P): New.
17408 (TARGET_INITIALIZER): Include it.
17409
17410 * config/alpha/alpha.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17411 * config/alpha/alpha-protos.h (alpha_legitimate_address_p): Remove.
17412 * config/alpha/alpha.c (alpha_legitimate_address_p): Make static.
17413 (TARGET_LEGITIMATE_ADDRESS_P): New.
17414
17415 * config/frv/frv.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17416 (REG_OK_STRICT_P): Delete.
17417 * config/frv/frv-protos.h (frv_legitimate_address_p): Rename to...
17418 (frv_legitimate_address_p_1): ... this.
17419 * config/frv/frv.c (frv_legitimate_address_p): Forward to...
17420 (frv_legitimate_address_p_1): ... the renamed old
17421 frv_legitimate_address_p.
17422 * config/frv/predicates.md: Adjust calls to frv_legitimate_address_p.
17423 (TARGET_LEGITIMATE_ADDRESS_P): New.
17424
17425 * config/s390/s390.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17426 * config/s390/s390-protos.h (legitimate_address_p): Remove.
17427 * config/s390/s390.c (legitimate_address_p): Rename to...
17428 (s390_legitimate_address_p): ... this, make static.
17429 (legitimize_address): Adjust call.
17430 (TARGET_LEGITIMATE_ADDRESS_P): New.
17431 * config/s390/constraints.md ("e"): Call strict_memory_address_p.
17432
17433 * config/m32c/m32c.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17434 * config/m32c/m32c-protos.h (m32c_legitimate_address_p): Remove.
17435 * config/m32c/m32c.c (m32c_legitimate_address_p): Make static.
17436 (TARGET_LEGITIMATE_ADDRESS_P): New.
17437
17438 * config/spu/spu.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17439 * config/spu/spu-protos.h (spu_legitimate_address): Remove.
17440 * config/spu/spu.c (spu_legitimate_address): Rename to...
17441 (spu_legitimate_address_p): ... this, make static.
17442 (TARGET_LEGITIMATE_ADDRESS_P): New.
17443
17444 * config/sparc/sparc.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17445 * config/sparc/sparc-protos.h (legitimate_address_p): Remove.
17446 * config/sparc/sparc.c (legitimate_address_p): Rename to...
17447 (sparc_legitimate_address_p): ... this, make static and return bool.
17448 (legitimize_address): Adjust call.
17449 (TARGET_LEGITIMATE_ADDRESS_P): New.
17450
17451 * config/i386/i386.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17452 * config/i386/i386-protos.h (legitimate_address_p): Remove.
17453 * config/i386/i386.c (legitimate_address_p): Rename to...
17454 (ix86_legitimate_address_p): ... this, make static.
17455 (constant_address_p): Move after it, adjust call.
17456 (TARGET_LEGITIMATE_ADDRESS_P): New.
17457
17458 * config/avr/avr.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17459 * config/avr/avr-protos.h (legitimate_address_p): Remove.
17460 * config/avr/avr.c (legitimate_address_p): Rename to...
17461 (avr_legitimate_address_p): ... this, make static.
17462 (legitimize_address): Adjust call.
17463 (TARGET_LEGITIMATE_ADDRESS_P): New.
17464
17465 * config/crx/crx.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17466 * config/crx/crx-protos.h (crx_legitimate_address_p): Remove.
17467 * config/crx/crx.c (crx_legitimate_address_p): Make static.
17468 (TARGET_LEGITIMATE_ADDRESS_P): New.
17469
17470 * config/xtensa/xtensa.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17471 * config/xtensa/xtensa-protos.h (xtensa_legitimate_address_p): Remove.
17472 * config/xtensa/xtensa.c (xtensa_legitimate_address_p): Make static.
17473 (TARGET_LEGITIMATE_ADDRESS_P): New.
17474
17475 * config/stormy16/stormy16.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17476 * config/stormy16/stormy16-protos.h (xstormy16_legitimate_address_p):
17477 Remove.
17478 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
17479 Make static.
17480 (TARGET_LEGITIMATE_ADDRESS_P): New.
17481
17482 * config/m68hc11/m68hc11.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17483 * config/m68hc11/m68hc11-protos.h (m68hc11_go_if_legitimate_address):
17484 Remove.
17485 * config/m68hc11/m68hc11.c (m68hc11_go_if_legitimate_address):
17486 Rename to...
17487 (m68hc11_legitimate_address_p): ... this, make static.
17488 (go_if_legitimate_address_internal): Rename to...
17489 (m68hc11_legitimate_address_p_1): ... this.
17490 (legitimize_address): Adjust call.
17491 (TARGET_LEGITIMATE_ADDRESS_P): New.
17492
17493 * config/iq2000/iq2000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17494 * config/iq2000/iq2000-protos.h (iq2000_legitimate_address_p): Remove.
17495 * config/iq2000/iq2000.c (iq2000_legitimate_address_p): Make static.
17496 (TARGET_LEGITIMATE_ADDRESS_P): New.
17497
17498 * config/mn10300/mn10300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17499 * config/mn10300/mn10300-protos.h (legitimate_address_p): Remove.
17500 * config/mn10300/mn10300.c (legitimate_address_p): Rename to...
17501 (mn10300_legitimate_address_p): ... this, make static.
17502 (TARGET_LEGITIMATE_ADDRESS_P): New.
17503
17504 * config/m68k/m68k.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17505 * config/m68k/m68k-protos.h (m68k_legitimate_address_p): Remove.
17506 * config/m68k/m68k.c (m68k_legitimate_address_p): Make static.
17507 (TARGET_LEGITIMATE_ADDRESS_P): New.
17508
17509 * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17510 (REG_OK_STRICT_FLAG, REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Delete.
17511 (INT_REG_OK_FOR_BASE_P, INT_REG_OK_FOR_INDEX_P): Move above.
17512 * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17513 * config/rs6000/rs6000-protos.h (rs6000_legitimate_address): Remove.
17514 * config/rs6000/rs6000.c (rs6000_legitimate_address): Rename to...
17515 (rs6000_legitimate_address_p): ... this, make static.
17516 (TARGET_LEGITIMATE_ADDRESS_P): New.
17517 (REG_MODE_OK_FOR_BASE_P): Delete.
17518 (rs6000_legitimize_reload_address): Use INT_REG_OK_FOR_BASE_P.
17519
17520 * config/picochip/picochip.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17521 * config/picochip/picochip-protos.h (picochip_legitimate_address_p):
17522 Delete.
17523 * config/picochip/picochip.c (picochip_legitimate_address_p): Make
17524 static, adjust types.
17525 (TARGET_LEGITIMATE_ADDRESS_P): New.
17526
17527 * config/score/score.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17528 * config/score/score.c (score_address_p): Rename to...
17529 (score_legitimate_address_p): ... this.
17530 (TARGET_LEGITIMATE_ADDRESS_P): New.
17531 * config/score/score3.c (score3_address_p): Rename to...
17532 (score3_legitimate_address_p): ... this.
17533 * config/score/score7.c (score7_address_p): Rename to...
17534 (score7_legitimate_address_p): ... this.
17535
17536 * config/arm/arm.h (ARM_GO_IF_LEGITIMATE_ADDRESS,
17537 THUMB2_GO_IF_LEGITIMATE_ADDRESS, THUMB1_GO_IF_LEGITIMATE_ADDRESS,
17538 GO_IF_LEGITIMATE_ADDRESS): Delete.
17539 * config/arm/arm-protos.h (thumb1_legitimate_address_p,
17540 thumb2_legitimate_address_p): Delete.
17541 (arm_legitimate_address_p): Rename to...
17542 (arm_legitimate_address_outer_p): ... this.
17543 * config/arm/constraints.md ("Uq"): Adjust call.
17544 * config/arm/predicates.md (arm_extendqisi_mem_op): Likewise.
17545 * config/arm/arm.c (arm_legitimate_address_p): New, rename old one
17546 to...
17547 (arm_legitimate_address_outer_p): ... this.
17548 (thumb1_legitimate_address_p, thumb2_legitimate_address_p): Make
17549 static.
17550 (TARGET_LEGITIMATE_ADDRESS_P): New.
17551
17552 * config/mips/mips.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17553 * config/mips/mips-protos.h (mips_legitimate_address_p): Remove.
17554 * config/mips/mips.c (mips_legitimate_address_p): ... Make static.
17555 (TARGET_LEGITIMATE_ADDRESS_P): New.
17556
17557 * config/vax/vax.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17558 * config/vax/vax-protos.h (legitimate_address_p): Remove.
17559 * config/vax/vax.c (legitimate_address_p): Rename to...
17560 (vax_legitimate_address_p): ... this, make static.
17561 (TARGET_LEGITIMATE_ADDRESS_P): New.
17562
17563 * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17564 * config/h8300/h8300-protos.h (h8300_legitimate_address_p): Remove.
17565 * config/h8300/h8300.c (h8300_legitimate_address_p): ... Make static.
17566 (TARGET_LEGITIMATE_ADDRESS_P): New.
17567
17568 * config/mmix/mmix.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17569 * config/mmix/mmix-protos.h (mmix_legitimize_address): Remove.
17570 * config/mmix/mmix.c (mmix_legitimate_address): Rename to...
17571 (mmix_legitimate_address_p): ... this, make static.
17572 (TARGET_LEGITIMATE_ADDRESS_P): New.
17573
17574 * config/bfin/bfin.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17575 * config/bfin/bfin-protos.h (bfin_legitimate_address_p): Remove.
17576 * config/bfin/bfin.c (bfin_legitimate_address_p): ... Make static.
17577 (TARGET_LEGITIMATE_ADDRESS_P): New.
17578
17579 2009-05-14 Paolo Bonzini <bonzini@gnu.org>
17580
17581 * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Remove handling
17582 of MODE_COMPLEX_INT.
17583
17584 2009-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
17585
17586 * config/alpha/alpha.c (alpha_initialize_trampoline): Change 0 to
17587 LCT_NORMAL in function call.
17588 * mips-tdump.c (print_file_desc): Add cast to enum type.
17589 * mips-tfile.c (add_ext_symbol): Add casts to enum types.
17590 (mark_stabs): Add casts to enum types.
17591 (parse_stabs_common): Add casts to enum types.
17592
17593 2009-05-13 Adam Nemet <anemet@caviumnetworks.com>
17594
17595 * config/mips/mips.c (mips_print_operand) <REG, MEM, default>:
17596 Check for invalid values of LETTER.
17597
17598 2009-05-13 Taras Glek <tglek@mozilla.com>
17599
17600 * attribs.c (register_attribute): moved out attribute registration
17601 into register_attribute.
17602 * doc/plugins.texi: Documented register_attribute and
17603 PLUGIN_ATTRIBUTES.
17604 * gcc-plugin.h: Added forward decl for register_attribute.
17605 * gcc-plugin.h (plugins_event): Added PLUGIN_ATTRIBUTES.
17606 * plugin.c (register_callback, invoke_plugin_callbacks): Added
17607 PLUGIN_ATTRIBUTES boilerplate.
17608
17609 2009-05-14 Dave Korn <dave.korn.cygwin@gmail.com>
17610
17611 * config/i386/msformat-c.c (ms_printf_length_specs): Use enumeration
17612 values even in sentinel and empty entries.
17613 (ms_printf_flag_specs): Likewise.
17614 (ms_scanf_flag_specs): Likewise.
17615 (ms_strftime_flag_specs): Likewise.
17616 (ms_print_char_table): Likewise.
17617 (ms_scan_char_table): Likewise.
17618 (ms_time_char_table): Likewise.
17619
17620 2009-05-13 Doug Kwan <dougkwan@google.com>
17621
17622 * tree-ssa-sccvn.c (compare_ops): Stabilize qsort.
17623
17624 2009-05-13 Adam Nemet <anemet@caviumnetworks.com>
17625
17626 * config/mips/mips.md (store): Add attributes for QI and HI.
17627 Update comment.
17628 (truncdisi2, truncdihi2, truncdiqi2): Merge these into ...
17629 (truncdi<mode>2): ... this new pattern.
17630
17631 2009-05-13 Brad Hards <bradh@kde.org>
17632
17633 * Makefile.in (TEXI_GCCINT_FILES): Add plugins.texi.
17634
17635 2009-05-14 Jakub Jelinek <jakub@redhat.com>
17636 Ben Elliston <bje@au.ibm.com>
17637
17638 PR middle-end/40035
17639 * dse.c (check_mem_read_rtx): Guard against width == -1.
17640
17641 2009-05-13 Michael Matz <matz@suse.de>
17642
17643 PR middle-end/39976
17644 * tree-outof-ssa.c (maybe_renumber_stmts_bb): New function.
17645 (trivially_conflicts_p): New function.
17646 (insert_backedge_copies): Use it.
17647
17648 2009-05-13 Janis Johnson <janis187@us.ibm.com>
17649
17650 * c-pragma.c (enum pragma_switch_t): Prefix constants with PRAGMA_.
17651 (handle_stdc_pragma): Use new enum constant names.
17652 (handle_pragma_float_const_decimal64): Ditto.
17653
17654 2009-05-13 Ian Lance Taylor <iant@google.com>
17655
17656 * Makefile.in (build/gencheck.o): Depend upon all-tree.def, not
17657 tree.def.
17658
17659 2009-05-13 Nathan Sidwell <nathan@codesourcery.com>
17660
17661 * config/m68k/t-uclinux (M68K_MLIB_CPU): Check for FL_UCLINUX.
17662 * config/m68k/m68k-devices.def: Add FL_UCLINUX to 68020 and 54455
17663 multilibs.
17664 * config/m68k/m68k.h (FL_UCLINUX): Define.
17665
17666 2009-05-13 Jan Hubicka <jh@suse.cz>
17667
17668 * options.c (gfc_post_options): -fwhole-program imply -fwhole-file.
17669
17670 2009-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
17671
17672 * config/sh/sh.h (OVERRIDE_OPTIONS): Clear flag_schedule_insns
17673 unless -fschedule-insns is specified.
17674
17675 2009-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
17676
17677 PR target/39561
17678 * config/sh/sh.h (OPTIMIZATION_OPTIONS): Don't set
17679 TARGET_EXPAND_CBRANCHDI4.
17680 * config/sh/sh.md (cbranchdi4): Don't check TARGET_EXPAND_CBRANCHDI4.
17681 * config/sh/sh.opt (mexpand-cbranchdi): Remove.
17682 (cmpeqdi): Fix comment.
17683
17684 2009-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
17685
17686 * config/sh/sh-protos.h (sh_legitimate_index_p): Declare.
17687 (sh_legitimate_address_p): Likewise.
17688 * config/sh/sh.c (sh_legitimate_index_p): New.
17689 (sh_legitimate_address_p): Likewise.
17690 * config/sh/sh.h (REG_OK_FOR_BASE_P): Add STRICT parameter.
17691 (REG_OK_FOR_INDEX_P, SUBREG_OK_FOR_INDEX_P): Likewise.
17692 (MODE_DISP_OK_4, MODE_DISP_OK_8): Remove.
17693 (MAYBE_BASE_REGISTER_RTX_P): New macro.
17694 (MAYBE_INDEX_REGISTER_RTX_P): Likewise.
17695 (BASE_REGISTER_RTX_P): Use MAYBE_BASE_REGISTER_RTX_P.
17696 (INDEX_REGISTER_RTX_P): Use MAYBE_INDEX_REGISTER_RTX_P.
17697 (GO_IF_LEGITIMATE_INDEX): Use sh_legitimate_index_p.
17698 (GO_IF_LEGITIMATE_ADDRESS): Use sh_legitimate_address_p.
17699
17700 2009-05-12 Jan Hubicka <jh@suse.cz>
17701
17702 * tree-inline.c (estimate_operator_cost): Add operands;
17703 when division happens by constant, it is cheap.
17704 (estimate_num_insns): Loads and stores are not having cost of 0;
17705 EH magic stuff is cheap; when computing runtime cost of switch,
17706 use log2 base of amount of its cases; builtin_expect has cost of 0;
17707 compute cost for moving return value of call.
17708 (init_inline_once): Initialize time_based flags.
17709 * tree-inline.h (eni_weights_d): Add time_based flag.
17710
17711 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
17712
17713 * df-core.c: Update head documentation.
17714
17715 2009-05-12 Michael Meissner <meissner@linux.vnet.ibm.com>
17716
17717 PR bootstrap/40118
17718 * rs6000.c (rs6000_generate_compare): Use op1b instead of
17719 shadowing exisiting variable op1.
17720
17721 2009-05-12 Uros Bizjak <ubizjak@gmail.com>
17722
17723 PR target/37179
17724 * config/i386/driver-i386.c (processor_signatures): New enum.
17725 (SIG_GEODE): Move from vendor_signatures to processor_signatures.
17726 (host_detect_local_cpu): For SIG_AMD vendor, check for SIG_GEODE
17727 processor signature to detect geode processor.
17728
17729 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
17730
17731 Revert:
17732
17733 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
17734
17735 * optabs.c (prepare_cmp_insn): Temporarily disable test that
17736 causes spurious differences between trunk and cond-optab branch.
17737
17738 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
17739
17740 * dojump.c (compare_from_rtx): Delete.
17741 * expmed.c (emit_store_flag): Only try cstore_optab. Canonicalize
17742 any MODE_CC mode to the cstorecc4 pattern. Use prepare_operand, fail
17743 if the comparison does not satisfy the predicate; test predicates for
17744 operands 2 and 3 of a cstore pattern. Don't try cstore optab
17745 further if one existing pattern fails.
17746 * expr.h (compare_from_rtx): Delete.
17747 (prepare_operand): Declare it.
17748 * optabs.c: Change "lib call" to "libcall" throughout.
17749 (bcc_gen_fctn, setcc_gen_code, trap_rtx,
17750 HAVE_conditional_trap, emit_cmp_insn): Delete.
17751 (can_compare_p): Delete cmp_optab case.
17752 (prepare_float_lib_cmp): Return an rtx and a machine mode.
17753 Accept other parameters by value.
17754 (prepare_operand): Make non-static.
17755 (prepare_cmp_insn): Return an rtx and a machine mode. Accept
17756 other parameters by value. Try to widen operands here based on
17757 an optab_methods argument and looking at cbranch_optab.
17758 (emit_cmp_and_jump_insn_1): Accept test and mode, remove widening
17759 loop. Use cbranch_optab directly.
17760 (emit_cmp_and_jump_insns): Fix comment. Adjust call to
17761 prepare_cmp_insn and emit_cmp_and_jump_insn_1, remove obsolete
17762 assertion.
17763 (emit_conditional_move, emit_conditional_add): Inline what's needed
17764 of compare_from_rtx, using new prepare_cmp_insn for the rest.
17765 (init_optabs): Init cmp_optab with UNKNOWN, cbranch_optab
17766 with COMPARE. Move cmov_optab and cstore_optab above
17767 with cbranch_optab, move cmp_optab down with ucmp_optab,
17768 remove tst_otpab. Do not initialize trap_rtx.
17769 (gen_cond_trap): Do it here. Use ctrap_optab. Test predicate
17770 for trap code. Do not check HAVE_conditional_trap. Use
17771 prepare_cmp_insn. Accept no predicate for operand 3.
17772 * optabs.h (OTI_cmp): Mark as used only for libcalls.
17773 (OTI_ctrap, ctrap_optab): New.
17774 (tst_optab): Delete.
17775 (bcc_gen_fctn, setcc_gen_code, emit_cmp_insn): Delete.
17776 * ifcvt.c (find_if_header): Replace HAVE_conditional_trap
17777 with lookup of ctrap_optab.
17778 * genopinit.c (cmp_optab, tst_optab, bcc_gen_fctn, setcc_gen_code):
17779 Delete.
17780 (ctrap_optab): New.
17781
17782 * combine.c (combine_simplify_rtx, simplify_set): Do not
17783 special case comparing against zero for cc0 machines.
17784 * simplify-rtx.c (simplify_binary_operation_1): Never remove
17785 COMPARE on cc0 machines.
17786 (simplify_relational_operation): Return a new expression when
17787 a COMPARE could be removed.
17788 * final.c (final_scan_insn): Compare cc_status values
17789 against LHS of a (compare FOO (const_int 0)) cc0 source.
17790 Also check if cc_status.value is the full compare.
17791
17792 * doc/md.texi (bCC, sCC, tstMM, cmpMM): Delete.
17793 (cstoreMM4): Document.
17794 (conditional_trap): Document ctrapMM4 instead.
17795 (sync_compare_and_swapMM): Refer to cbranchcc4.
17796 (Dependent Patterns): Eliminate obsolete information referring to
17797 the old jump optimization phase.
17798 (Canonicalization): Include cbranchcc4 case, omit canonicalization
17799 of compares with 0 on cc0 machines.
17800 (Jump Patterns): Refer to MODE_CC jump patterns preferably,
17801 avoiding references to cc0. Remove text about storing operands
17802 in cmpMM.
17803 * doc/tm.texi (Condition Codes): Include blurb on different
17804 condition code representations, separate into subsections for
17805 CC0, MODE_CC and conditional execution.
17806
17807 * config/alpha/alpha-protos.h (alpha_emit_conditional_branch,
17808 alpha_emit_setcc): Accept operands and a machine mode.
17809 * config/alpha/alpha.c (alpha_emit_conditional_branch):
17810 Get code/op0/op1 from operands, use machine mode argument
17811 instead of alpha_compare.fp_p. Emit the branch here.
17812 (alpha_emit_setcc): Likewise, and return boolean.
17813 (alpha_emit_conditional_move): Likewise. Assert that
17814 cmp_op_mode == cmp_mode, and simplify accordingly.
17815 * config/alpha/alpha.h (struct alpha_compare, alpha_compare): Delete.
17816 * config/alpha/alpha.md (cmpdf, cmptf, cmpdi, bCC, sCC): Delete.
17817 (cbranchdf4, cbranchtf4, cbranchdi4, cstoredf4, cstoretf4,cstoredi4):
17818 Delete.
17819 (stack probe test): Use cbranchdi4.
17820 * config/alpha/predicates.md (alpha_cbranch_operator): New.
17821
17822 * config/arc/arc.c (gen_compare_reg): Do not emit cmp.
17823 * config/arc/arc.h (movsicc, movsfcc): Use it.
17824 (movdicc, *movdicc_insn, movdfcc, *movdfcc_insn): Remove.
17825 (cbranchsi4, cstoresi4): New.
17826 (cmpsi, bCC and sCC expanders): Remove.
17827
17828 * config/arm/arm.c (arm_compare_op0, arm_compare_op1): Delete.
17829 * config/arm/arm.h (arm_compare_op0, arm_compare_op1): Delete.
17830 * config/arm/predicates.md (arm_comparison_operator): Only include
17831 floating-point operators if there is a hardware floating-point unit.
17832 * config/arm/arm.md (cbranchsi4, cstoresi4): Enable for TARGET_32BIT,
17833 deferring to cbranch_cc and cstore_cc respectively.
17834 (cbranchsf4, cbranchdf4, cbranchdi4, cstoresf4, cstoredf4, cstoredi4,
17835 cbranch_cc, cstore_cc): New.
17836 (movsicc, movsfcc, movdfcc): Do not use arm_compare_op0 and
17837 arm_compare_op1.
17838 (bCC, sCC, cmpsi, cmpsf, cmpdf, cmpdi): Delete.
17839
17840 * config/avr/avr-protos.h (out_tstsi, out_tsthi): Adjust prototype.
17841 * config/avr/avr.c (out_tstsi, out_tsthi): Get the tested operand
17842 as an argument.
17843 (adjust_insn_length): Adjust calls.
17844 (avr_reorg): Handle (compare (foo) (const_int 0)).
17845 * config/avr/avr.md (tstqi, tsthi, tstsi): Remove.
17846 (*negated_tstqi, *negated_tsthi, *negated_tstsi): Unmacroize.
17847 (*reversed_tsthi, *reversed_tstsi): Add a scratch for simplicity.
17848 (cmpqi, cmphi, cmpsi): Prepend asterisk, fuse tst[qhs]i here.
17849 (bCC): Remove.
17850 (cbranchqi4, cbranchhi4, cbranchsi4): New.
17851 (tst -> sbrc/sbrs peephole2, cpse peephole): Wrap RHS with COMPARE.
17852
17853 * config/bfin/bfin.md (cmpbi, cmpsi, bCC, sCC): Delete.
17854 (cbranchsi4, cstorebi4, cstoresi4): New.
17855 (movbisi): This insn is duplicate, split it to zero_extend.
17856 * config/bfin/bfin.c (bfin_compare_op0, bfin_compare_op1): Delete
17857 (bfin_gen_compare): Do not use them. Emit VOIDmode SET, not BImode.
17858 (bfin_optimize_loop): Use cbranch expander.
17859 * config/bfin/bfin.h (bfin_compare_op0, bfin_compare_op1): Delete.
17860 * config/bfin/predicates.md (bfin_cbranch_operator): Rename to...
17861 (bfin_bimode_comparison_operator): ... this.
17862 (bfin_direct_comparison_operator): New.
17863
17864 * config/cris/cris.c (cris_normal_notice_update_cc): Look
17865 inside (compare FOO (const_int 0)).
17866 (cris_rtx_costs): Handle ZERO_EXTRACT.
17867 * config/cris/cris.md (tstdi, tst<mode>, cmpdi): Delete.
17868 (*tstdi_non_v32): Fold in *cmpdi_non_v32.
17869 (*tstdi_v32): Delete.
17870 (*cmpdi_non_v32): Add M alternative for operand 1.
17871 (cmpsi, cmp<mode>): Make private.
17872 (*tstsi, *tst<mode>_cmp, *tst<mode>_non_cmp, *btst): Wrap LHS
17873 with COMPARE.
17874 (cbranch<mode>4, cbranchdi4, cstore<mode>4): New.
17875
17876 * config/crx/crx.md (cstore<mode>4, cbranchcc4): New.
17877 (cmp<mode>, bCOND_internal, b<code>, s<code>): Delete.
17878 (cbranch<mode>4, sCOND_internal): Use ordered_comparison_operator.
17879 (cc_reg_operand): New.
17880 (any_cond): Delete.
17881 * config/crx/crx.c (crx_compare_op0, crx_compare_op1,
17882 crx_expand_compare, crx_expand_branch, crx_expand_scond): Delete.
17883 * config/crx/crx.h (crx_compare_op0, crx_compare_op1): Delete.
17884 * config/crx/crx-protos.h (crx_expand_compare, crx_expand_branch,
17885 crx_expand_scond): Delete.
17886
17887 * config/fr30/fr30.md (cmp<mode>, bCC): Delete.
17888 (cbranchsi4): New.
17889 * config/fr30/fr30.c (fr30_compare_op0, fr30_compare_op1): Delete
17890 * config/fr30/fr30.h (fr30_compare_op0, fr30_compare_op1): Delete.
17891
17892 * config/frv/frv.md (cbranchsi4, cbranchsf4, cbranchdf4,
17893 cstoresi4, cstoresf4, cstoredf4): New.
17894 (cmpdi, cmpsi, cmpsf, cmpdf, bCC, sCC): Remove.
17895 * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
17896 Receive the entire operands array.
17897 * config/frv/frv.h (frv_compare_op0, frv_compare_op1): Delete.
17898 * config/frv/frv.c (frv_compare_op0, frv_compare_op1): Delete.
17899 * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
17900 Get test/op0/op1 from the operands array.
17901 (frv_emit_cond_move): Get test/op0/op1 from the test_rtx.
17902
17903 * config/h8300/h8300-protos.h (h8300_expand_branch): Accept operands.
17904 (h8300_expand_store): New.
17905 * config/h8300/h8300.c (h8300_rtx_costs): Handle (compare FOO
17906 (const_int 0)).
17907 (h8300_expand_branch): Emit compare here. Adjust for new arguments.
17908 (h8300_expand_store): New.
17909 * config/h8300/h8300.md (btst combine patterns): Wrap with COMPARE
17910 or do not try to produce (set (cc0) REG).
17911 (peepholes): Wrap arguments with COMPARE. Add a peephole to
17912 change a compare into a move to a scratch register. Disable some
17913 peepholes when comparing with zero.
17914 (tstsi, tsthi, tstsi, cmpqi): Make private.
17915 (cmphi): Delete.
17916 (bCC, sCC): Delete.
17917 (cbranchqi4, cbranchhi4, cbranchsi4, cstoreqi4, cstorehi4,
17918 cstoresi4): New.
17919
17920 * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_int_addcc,
17921 ix86_expand_fp_movcc): Set ix86_compare_op0 and ix86_compare_op1.
17922 (ix86_emit_i387_log1p): Use gen_cbranchxf4.
17923 (ix86_emit_i387_log1p): Use cbranchxf2.
17924 (ix86_expand_setcc): Return void.
17925 * config/i386/i386-protos.h (ix86_expand_setcc): Return void.
17926 * config/i386/i386.md (cmpti, cmpdi, cmpsi, cmphi, cmpqi, cmpxf,
17927 cmp<MODEF>, cmpcc): Remove.
17928 (cbranchti4, cbranchdi4, cbranchsi4, cbranchhi4, cbranchqi4,
17929 cbranchxf4, cbranch<MODEF>4, cbranchcc4, cstoredi4, cstoresi4,
17930 cstorehi4, cstoreqi4, cstorexf4, cstore<MODEF>4, cstorecc): New.
17931 (sCC and bCC expanders): Remove.
17932 (stack_protect_test): Use cbranchcc4.
17933
17934 * config/ia64/ia64-protos.h (ia64_compare_op0, ia64_compare_op1):
17935 Delete.
17936 (ia64_expand_compare): Accept three rtx by reference and return void.
17937 * config/ia64/ia64.c (ia64_compare_op0, ia64_compare_op1): Delete.
17938 (ia64_expand_compare): Replace op0/op1 with *op0/*op1. Get code
17939 from *expr. Update *expr with the BImode comparison to do.
17940 * config/ia64/ia64.md (cmpbi, cmpsi, cmpdi, cmpsf, cmpdf, cmpxf,
17941 cmptf, bCC, sCC, conditional_trap): Delete.
17942 (cbranchbi4, cbranchsi4, cbranchdi4, cbranchsf4, cbranchdf4,
17943 cbranchxf4, cbranchtf4, cstorebi4, cstoresi4, cstoredi4, cstoresf4,
17944 cstoredf4, cstorexf4, cstoretf4, ctrapbi4, ctrapsi4, ctrapdi4,
17945 ctrapsf4, ctrapdf4, ctrapxf4, ctraptf4): New.
17946 * config/ia64/predicates.md (ia64_cbranch_operator): New.
17947
17948 * config/iq2000/iq2000-protos.h (gen_conditional_branch): Change
17949 type of last argument.
17950 * config/iq2000/iq2000.c (branch_cmp, branch_type): Remove.
17951 (gen_conditional_branch): Get code/cmp0/cmp1 from operands,
17952 use machine mode argument instead of branch_type. Remove dead
17953 code for floating-point comparisons.
17954 * config/iq2000/iq2000.h (branch_cmp, branch_type): Remove.
17955 * config/iq2000/iq2000.md (cmpsi, cmpdi, cmpsf, cmpdf, tstsi, bCC):
17956 Remove.
17957 (cbranchsi4, cstoresi4): New.
17958 * config/iq2000/predicates.md (reg_or_const_operand): New.
17959
17960 * config/m32c/m32c.md (cbranch splitter): Use match_op_dup.
17961 * config/m32c/m32c.md (any_cond, gl_cond): Delete.
17962 (b<code>_op): Rewrite to...
17963 (bcc_op): ... this, using match_operator.
17964 (s<code>_op): Rewrite to...
17965 (scc_op): ... this, using match_operator.
17966 (s<code>_24_op): Rewrite to...
17967 (scc_op_24): ... this, using match_operator.
17968 (s<code>_<mode>): Rewrite to...
17969 (cstore<mode>4): ... this, using match_operator.
17970 (s<code>_<mode>_24): Rewrite to...
17971 (cstore<mode>4_24): ... this, using match_operator.
17972 * config/m32c/m32c-protos.h (m32c_cmp_flg_0, m32c_pend_compare,
17973 m32c_unpend_compare, m32c_expand_scc): Delete.
17974 * config/m32c/m32c.c (compare_op0, compare_op1, m32c_cmp_flg_0,
17975 m32c_pend_compare, m32c_unpend_compare, m32c_expand_scc): Delete.
17976 (m32c_expand_movcc): Change NE to EQ if necessary.
17977 (m32c_init_libfuncs): Modify cstore optab instead of setcc_gen_code.
17978
17979 * config/m32r/m32r-protos.h (gen_cond_store): New.
17980 * config/m32r/m32r.c (m32r_compare_op0, m32r_compare_op1): Delete.
17981 (gen_cond_store): New, from sCC patterns.
17982 (m32r_expand_block_move): Use cbranchsi4.
17983 * config/m32r/m32r.h (m32r_compare_op0, m32r_compare_op1): Delete.
17984 * config/m32r/m32r.md (cmpsi, bCC, sCC): Delete.
17985 (cbranchsi4, cstoresi4): New.
17986
17987 * config/m68hc11/m68hc11.c (m68hc11_compare_op0, m68hc11_compare_op1):
17988 Delete.
17989 (m68hc11_rtx_costs_1, m68hc11_rtx_costs): Handle ZERO_EXTRACT.
17990 (m68hc11_notice_update_cc): Look into a compare with 0.
17991 * config/m68hc11/m68hc11.h (m68hc11_compare_op0, m68hc11_compare_op1):
17992 Delete.
17993 * config/m68hc11/m68hc11.md (tstsi, tsthi, tstqi, cmpsi,
17994 cmphi, cmpqi, bCC): Delete.
17995 (cbranchsi4, cbranchhi4, cbranchqi4): New.
17996 (tstqi_1, tstqi_z_used, tstqi_1, bitcmpqi, bitcmpqi_z_used,
17997 bitcmpqi_12, bitcmphi, various splits and peephole2s): Wrap cc0<-reg
17998 sets with COMPARE.
17999
18000 * config/m68k/predicates.md (m68k_cstore_comparison_operator,
18001 const0_operand, const1_operand, m68k_subword_comparison_operand): New.
18002 * config/m68k/constraints.md (H): New.
18003 * config/m68k/m68k.md (tstdi): Remove define_expand, use name for
18004 the define_insn below.
18005 (tstsi, tsthi, tst<FP:mode>, cmphi, cmpqi, cmp<FP:mode>): Delete.
18006 (*tstsi_internal_68020_cf, *tstsi_internal, *tsthi_internal,
18007 *tstqi_internal, tst<mode>_6881, tst<mode>_cf, many unnamed
18008 patterns): Wrap RHS with COMPARE.
18009 (tst<FP>_68881, tst<FP>_cf): Use const0_operand.
18010 (*cmpdi_internal): Name this pattern.
18011 (cmpdi): Change to define_insn.
18012 (cbranchdi4, cstoredi4, cbranchsi4, cstoresi4, cbranchhi4, cstorehi4,
18013 cbranchqi4, cstoreqi4, cbranch<FP:mode>4, cstore<FP:mode>4): New.
18014 (scc0_di, scc0_di_5200, scc_di): Use the ordered_comparison_operator
18015 predicate.
18016 (seq, sne, sgt, sgtu, slt, sltu, sge, sgeu, sle, sleu, sordered,
18017 sunordered, suneq, sunge, sungt, sunle, sunlt, sltgt): Delete
18018 (conditional_trap): Change to...
18019 (ctrapdi4, ctrapsi4, ctraphi4, ctrapqi4): ... these.
18020 (*conditional_trap): Use the ordered_comparison_operator and
18021 const1_operand predicates.
18022 * config/m68k/m68k.c (m68k_last_compare_had_fp_operands): Delete.
18023 (m68k_expand_prologue): Use ctrapsi4 instead of cmpsi+conditional_trap.
18024 (m68k_rtx_costs): Look for ZERO_EXTRACT in a COMPARE.
18025 * config/m68k/m68k.h (m68k_last_compare_had_fp_operands): Delete.
18026
18027 * config/mcore/mcore-protos.h (arch_compare_op0, arch_compare_op1,
18028 mcore_modify_comparison, mcore_gen_compare_reg): Remove.
18029 (mcore_gen_compare): New.
18030 * config/mcore/mcore.c (arch_compare_op0, arch_compare_op1): Delete.
18031 (mcore_modify_comparison, mcore_gen_compare_reg): Fold into...
18032 (mcore_gen_compare): ... this.
18033 * config/mcore/mcore.md (cmpsi, bCC, sCC): Remove.
18034 (cbranchsi4, cstoresi4): New, using mcore_gen_compare.
18035 (stack probe pattern): Use cbranchsi4.
18036
18037 * config/mips/predicates.md (mips_cstore_operator): New.
18038 * config/mips/mips-ps-3d.md (movv2sfcc): Do not use cmp_operands.
18039 * config/mips/mips.md (any_cond): Delete.
18040 (conditional_trap): Rename to ctrap<GPR:mode>4. Adjust predicates,
18041 always succeed.
18042 (fixuns_truncdfsi2, fixuns_truncdfdi2, fixuns_truncsfsi2,
18043 fixuns_truncsfdi2): Use cbranch patterns.
18044 (cmp<GPR:mode>, cmp<SCALARF:mode>): Delete.
18045 (b<code>): Change to cbranch<GPR:mode>4 and cbranch<SCALARF:mode>4.
18046 Adjust call to mips_expand_conditional_branch.
18047 (seq, sne, slt<u>, sle<u>, sgt<u>, sge<u>): Change to
18048 cstore<GPR:mode>4.
18049 * config/mips/mips-protos.h (mips_expand_conditional_branch,
18050 mips_expand_scc, mips_expand_conditional_trap): Adjust prototypes.
18051 * config/mips/mips.c (cmp_operands): Delete.
18052 (mips_emit_compare): Get comparison operands from *op0/*op1.
18053 (mips_expand_scc): Get code/op0/op1/target from operands. Assert
18054 that it succeeds. Use op0/op1 instead of cmp_operands.
18055 (mips_expand_conditional_branch, mips_expand_conditional_move,
18056 mips_expand_conditional_trap): Likewise.
18057 (mips_block_move_loop): Use cbranch patterns.
18058 * config/mips/mips.h (cmp_operands): Delete.
18059
18060 * config/mmix/mmix.c (mmix_valid_comparison): Delete.
18061 (mmix_gen_compare_reg): Just return a register in the right CC mode.
18062 * config/mmix/mmix.h (mmix_compare_op0, mmix_compare_op1): New.
18063 * config/mmix/mmix.md (cmpdi, cmpdf): Remove.
18064 (*cmpcc_folded): Rename to...
18065 (*cmpdi_folded): this.
18066 (*cmpcc): Rename to...
18067 (*cmps): ... this.
18068 (movdfcc, movdicc): Adjust for new semantics of mmix_gen_compare_reg.
18069 (bCC): Remove.
18070 (cbranchdi4): New.
18071 (cbranchdf4): New. Handle invalid comparisons here.
18072 * config/mmix/predicates.md (float_comparison_operator): New.
18073
18074 * config/mn10300/mn10300.c (mn10300_rtx_costs): Consider 0 and
18075 zero_extract to be cheap in (compare (zero_extract) (const_int 0).
18076 * config/mn10300/mn10300.md (tst): Delete.
18077 (*tst_extqisi_am33, *tst_extqisi, *tst_exthisi_am33, *tst_exthisi):
18078 Name these patterns and wrap RHS in a compare.
18079 (*cmpsi): Make this pattern private. Include tst.
18080 (*cmpsf): Make this pattern private.
18081 (and and zero_extract cc0 set): Wrap RHS in a COMPARE.
18082 (compare with zero peepholes): Likewise.
18083 (bCC): Remove.
18084 (cbranchsi4, cbranchsf4): New.
18085 (casesi): Use cbranchsi4.
18086
18087 * config/pa/pa.c (hppa_compare_op0, hppa_compare_op1,
18088 hppa_branch_type): Delete.
18089 (return_addr_rtx): Use cbranchsi4.
18090 (emit_bcond_fp): Accept all operands. Replace CODE with NE.
18091 Emit CCFPmode comparison here.
18092 (gen_cmp_fp): Delete, now part of emit_bcond_fp.
18093 * config/pa/pa.h (enum cmp_type, hppa_compare_op0, hppa_compare_op1,
18094 hppa_branch_type): Delete.
18095 * config/pa/pa.md (cmpdi, cmpsi, cmpsf, cmpdf, sCC, bCC): Delete.
18096 (movsicc, movdicc): Remove references to hppa_compare_op0,
18097 hppa_compare_op1 and compare_from_rtx.
18098 (cbranchdi4, cbranchsi4, cbranchsf4, cbranchdf4, cstoresi4): New.
18099 (casesi): Use cbranchsi4.
18100
18101 * config/pdp11/pdp11-protos.h (output_jump): Change prototype.
18102 * config/pdp11/pdp11.c (output_jump): Embed opcodes here.
18103 * config/pdp11/pdp11.md (register_or_const0_operand): New.
18104 (cmpdf, cmphi, cmpqi): Make private. Add tst alternatives.
18105 (cmpsi, tstsi, tstdf, tsthi, tstqi): Delete.
18106 (bCC): Delete.
18107 (cbranchdf4, cbranchhi4, cbranchqi4): New.
18108 (*branch, *branch_inverted): New.
18109
18110 * config/picochip/picochip.md (cbranchhi4): Use
18111 ordered_comparison_operator.
18112 (cmphi, bCC): Remove.
18113
18114 * config/rs6000/predicates.md (rs6000_cbranch_operator): New.
18115 (trap_comparison_operator): Delete.
18116 * config/rs6000/rs6000-protos.h (rs6000_emit_sCOND,
18117 rs6000_emit_cbranch): Accept mode and operands.
18118 * config/rs6000/rs6000.c (rs6000_compare_op0, rs6000_compare_op1,
18119 rs6000_compare_fp_p): Delete.
18120 (rs6000_generate_compare): Accept mode and comparison. Extract code
18121 and op0/op1 from there. Replace references to rs6000_compare_op0
18122 and rs6000_compare_op1.
18123 (rs6000_emit_sCOND): Adjust call to rs6000_generate_compare and
18124 extract result from passed operands.
18125 (rs6000_emit_cbranch): Adjust call to rs6000_generate_compare and
18126 extract loc from passed operands.
18127 (rs6000_emit_cmove): Likewise.
18128 * config/rs6000/rs6000.h (rs6000_compare_op0, rs6000_compare_op1,
18129 rs6000_compare_fp_p): Delete.
18130 * config/rs6000/rs6000.md (cmp<GPR>, cmp<FP>, bCC, sCC): Delete.
18131 (cbranch<GPR>4, cbranch<FP>4): New.
18132 (cstore<mode>4): New. Consolidate here all choices about when to use
18133 portable or specialized sCC sequences.
18134 (stack_protect_test): Use cbranchsi4.
18135 (conditional_trap): Replace with ctrap<GPR>4.
18136 (conditional trap insn): Replace trap_comparison_operator with
18137 ordered_comparison_operator.
18138
18139 * config/s390/s390.c (s390_compare_op0, s390_compare_op1): Delete.
18140 (s390_emit_prologue): Use ctrap.
18141 * config/s390/s390.h (s390_compare_op0, s390_compare_op1): Delete.
18142 * config/s390/predicates.md (s390_eqne_operator, s390_scond_operator):
18143 New predicates replacing...
18144 * config/s390/s390.md (COMPARE, SCOND): ... these iterators.
18145 (cmp<GPR>, cmp<FP>, cmpcc): Delete.
18146 (trunc patterns): Use emit_cmp_and_jump_insns instead of cmp/branch.
18147 (add<mode>cc): Do not use s390_compare_op0/op1.
18148 (s<code>): Change to...
18149 (cstore<mode>4): ... this. Do not use s390_compare_op0/op1.
18150 (seq): Change to...
18151 (cstorecc4): ... this. Handle EQ or NE equally.
18152 (*sne): Un-privatize for use in cstorecc4.
18153 (b<code>): Change to...
18154 (cbranch<GPR>4, cbranch<FP>4, cbranchcc4): ... these.
18155 (conditional_trap): Replace with...
18156 (ctrap<GPR>4, ctrap<FP>4): ... these.
18157 (stack_protect): Use cbranchcc4.
18158
18159 * config/score/score-conv.h (cmp_op0, cmp_op1): Delete.
18160 * config/score/score-protos.h (score_gen_cmp): Delete.
18161 * config/score/score.c (cmp_op0, cmp_op1, score_gen_cmp): Delete.
18162 (score_block_move-loop): Use cbranchsi4.
18163 * config/score/score.md (cbranchsi4): New.
18164 (cmpsi, bCC): Delete.
18165 * config/score/score3.c (cmp_op0, cmp_op1, score3_gen_cmp): Delete.
18166 (score3_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
18167 * config/score/score7.c (cmp_op0, cmp_op1, score7_gen_cmp): Delete.
18168 (score7_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
18169 * config/score/score3.h (score3_gen_cmp): Delete.
18170 * config/score/score7.h (score7_gen_cmp): Delete.
18171
18172 * config/sh/sh-protos.h (prepare_scc_operands): Rename to...
18173 (sh_emit_scc_to_t): ... this. Return void.
18174 (from_compare): Rename to...
18175 (sh_emit_compare_and_branch): ... this.
18176 (sh_emit_compare_and_set): New.
18177 (sh_expand_t_scc): Accept operands.
18178 * config/sh/predicates.md (sh_float_comparison_operator): New.
18179 * config/sh/sh.c (sh_compare_op0, sh_compare_op1): Delete.
18180 (prepare_scc_operands): Rename to...
18181 (sh_emit_scc_to_t): ... this. Return void. Get op0/op1 from
18182 arguments.
18183 (sh_emit_cheap_store_flag): New.
18184 (sh_emit_set_t_insn): New.
18185 (from_compare): Rename to...
18186 (sh_emit_compare_and_branch): ... this. Accept mode. Rewrite
18187 handling of TARGET_SH2E floating point to avoid recursive call.
18188 Generate branch here.
18189 (sh_emit_compare_and_set): New.
18190 (sh_expand_t_scc): Get op0/op1 from arguments.
18191 (sh_emit_cheap_store_flag): New.
18192 * config/sh/sh.md (cbranchdi4, cbranchsi4): Include -mno-cbranchdi
18193 cases.
18194 (cbranchdi4_i): Use an "I08" constraint instead of an "i" constraint.
18195 (cmpsi, cmpdi, cmpsf, cmpdf): Delete.
18196 (movsicc, movdicc): Do nothing when it recreated operands from
18197 sh_compare_*. Use sh_emit_cheap_store_flag. Adjust call to
18198 prepare_scc_operands (now sh_emit_scc_to_t).
18199 (udivdi3): Use cstoresi4.
18200 (beq_media, bne_media, bge_media, bgtu_media, bgeu_media, beq,
18201 bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu, bunordered): Delete.
18202 (cbranchint4_media, cbranchfp4_media): New.
18203 (casesi): Use cbranchdi4.
18204 (seq, slt, sle, sgt, sge, sgtu, sltu, sgeu, sne, sleu, sunordered):
18205 Delete.
18206 (cstore4_media, cstoresi4, cstoredi4, cstoresf4, cstoredf4): New.
18207 (movnegt): Remove second operand.
18208 (cbranchsf4, cbranchdf4): New.
18209 (stack_protect): Use cbranchdi4/cbranchsi4.
18210
18211 * config/sparc/sparc.c (sparc_compare_op0, sparc_compare_op1): Delete.
18212 (gen_compare_reg): Accept comparison, extract part of it to...
18213 (gen_compare_reg_1): ... this.
18214 (gen_compare_operator): Delete.
18215 (gen_v9_scc): Accept separate destination, comparison code and arms.
18216 Do not use sparc_compare_op0/sparc_compare_op1.
18217 (emit_scc_insn, emit_conditional_branch_insn): New.
18218 (emit_v9_brxx): Make static. Remove useless assertion.
18219 (sparc_emit_float_lib_cmp): Return RTL instead of calling
18220 emit_cmp_insn.
18221 (sparc_expand_compare_and_swap_12): Use gen_compare_reg_1+cbranchcc4.
18222 * config/sparc/sparc-protos.h (gen_compare_reg,
18223 sparc_emit_float_lib_cmp): Adjust prototype.
18224 (emit_scc_insn, emit_conditional_branch_insn): New.
18225 (gen_v9_scc, emit_v9_brxx_insn, gen_compare_operator): Delete.
18226 * config/sparc/sparc.h (sparc_compare_op0, sparc_compare_op1): Delete.
18227 * config/sparc/sparc.md (P, I, F, V32, V32I, V64, V64I): Move all
18228 iterators to the top.
18229 (cmpsi, cmpdi, cmpsf, cmpdf, cmptf, seqsi_special_extend,
18230 snesi_special_extend, sCC, bCC, seqdi_special_trunc,
18231 snedi_special_trunc): Delete.
18232 (seqdi_special, snedi_special): Use expansion of seqdi_special_trunc
18233 and snedi_special_trunc.
18234 (cstoresi4, cstoredi4, cstore<F:mode>4, cbranchcc4, cbranchsi4,
18235 cbranchdi4, cbranch<F:mode>4): New.
18236 (mov<I:mode>cc, mov<F:mode>cc): Handle sparc_emit_float_lib_cmp
18237 here. Use gen_compare_reg instead of gen_compare_operator.
18238 (conditional_trap): Replace with...
18239 (ctrapsi4, ctrapdi4): ... this.
18240 (stack_protect_test): Use cbranchcc4.
18241
18242 * config/spu/spu-protos.h (spu_emit_branch_or_set): Change second
18243 argument to rtx.
18244 * config/spu/spu.c (spu_compare_op0, spu_compare_op1): Remove.
18245 (spu_emit_branch_or_set): Get code/op0/op1 from second argument.
18246 Change spu_compare_op0/op1 to op0/op1 throughout. Get target
18247 from operands[0] or operands[3] depending on is_set.
18248 * config/spu/spu.h (spu_compare_op0, spu_compare_op1): Remove.
18249 * config/spu/spu.md (cmp<mode:VQHSI>, cmp<mode:DTI>, cmp<mode:VSF>,
18250 cmpdf, bCC), sCC: Remove.
18251 (cbranch<mode:VQHSI>4, cbranch<mode:DTI>, cbranch<mode:VSF>4,
18252 cbranchdf4, cstore<mode:VQHSI>4, cstore<mode:DTI>, cstore<mode:VSF>4,
18253 cstoredf4): New.
18254 (mov<mode>cc): Accept ordered_comparison_operator, adjust call to
18255 spu_emit_branch_or_set.
18256
18257 * config/stormy16/stormy16-protos.h (xstormy16_emit_cbranch):
18258 Add two arguments.
18259 * config/stormy16/stormy16.h (xstormy16_compare_op0,
18260 xstormy16_compare_op1): Delete.
18261 * config/stormy16/stormy16.c (xstormy16_compare_op0,
18262 xstormy16_compare_op1): Delete.
18263 (xstormy16_emit_cbranch): Get op0/op1 from the new arguments.
18264 Adjust calls.
18265 * config/stormy16/stormy16.md (cbranchsi4, cbranchhi4): New.
18266 (cmphi, cmpsi, bCC): Remove.
18267
18268 * config/v850/v850.md (tstsi, cmpsi): Fold into...
18269 (*cmpsi): ... this one.
18270 (cbranchsi4, cstoresi4): New.
18271 (bCC expanders): Delete.
18272 (sCC insns): Fold into...
18273 (*setcc): ... this one.
18274 (casesi): Do not use gen_cmpsi and gen_bgtu.
18275 (various splits): Wrap "naked" RHS of a cc0 set with COMPARE.
18276 (movsicc): Simplify.
18277 * config/v850/v850.c (v850_rtx_costs): Handle ZERO_EXTRACT in COMPARE.
18278
18279 * config/vax/vax-protos.h (cond_name): New.
18280 (vax_output_conditional_branch): Remove.
18281 * config/vax/vax.c (cond_name): New.
18282 (vax_output_conditional_branch): Remove.
18283 * config/vax/vax.h (PRINT_OPERAND): Dispatch %c to cond_name.
18284 * config/vax/vax.md (tst<VAXint>, tst<VAXfp>): Remove.
18285 (cmp<VAXint>, cmp<VAXfp>): Privatize. Add constraints for tst.
18286 (bit<VAXint>): Wrap source with (compare).
18287 (b<code> and following unnamed pattern): Rename to *branch and
18288 *branch_reversed. Change macroization to match_operator.
18289 (cbranch<VAXint>4, cbranch<VAXfp>4): New.
18290
18291 * config/xtensa/predicates.md (xtensa_cstoresi_operator): New.
18292 * config/xtensa/xtensa-protos.h (xtensa_expand_conditional_branch):
18293 Change last argument to machine_mode.
18294 (xtensa_expand_scc): Add machine_mode argument.
18295 * config/xtensa/xtensa.c (branch_cmp, branch_type): Remove.
18296 (gen_conditional_move, xtensa_expand_conditional_branch,
18297 xtensa_expand_scc, xtensa_expand_conditional_move): Use mode
18298 instead of branch_type, fetch cmp0/cmp1/test_code from operands[].
18299 Adjust operand numbers.
18300 * config/xtensa/xtensa.h (enum cmp_type, branch_cmp, branch_type):
18301 Delete.
18302 * config/xtensa/xtensa.md (any_cond, any_scc): Delete.
18303 (cmpsi, cmpsf, b<code>, s<code>): Delete.
18304 (cbranchsi4, cbranchsf4, cstoresi4, cstoresf4): New.
18305
18306 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
18307
18308 * optabs.c (prepare_cmp_insn): Temporarily disable test that
18309 causes spurious differences between trunk and cond-optab branch.
18310
18311 2009-05-12 Alexandre Oliva <aoliva@redhat.com>
18312
18313 PR target/37137
18314 * doc/install.texi (STAGE1_TFLAGS, BUILD_CONFIG): Document.
18315
18316 2009-05-12 Alexandre Oliva <aoliva@redhat.com>
18317
18318 * tree.c (iterative_hash_pointer): Delete.
18319 (iterative_hash_expr): Short-circuit handling of NULL pointer.
18320 Hash UIDs and versions of SSA names. Don't special-case built-in
18321 function declarations.
18322
18323 2009-05-11 Ian Lance Taylor <iant@google.com>
18324
18325 PR bootstrap/40103
18326 * graphite.c: Force -Wc++-compat to only be a warning before
18327 #including "cloog/cloog.h".
18328
18329 2009-05-11 Martin Jambor <mjambor@suse.cz>
18330
18331 * ipa-cp.c (ipcp_cloning_candidate_p): Add missing return false.
18332
18333 2009-05-11 Jan Hubicka <jh@suse.cz>
18334
18335 * tree-ssa-loop-ivcanon.c: Include target.h
18336 (struct loop_size): new structure.
18337 (constant_after_peeling): New predicate.
18338 (tree_estimate_loop_size): New function.
18339 (estimated_unrolled_size): Rewrite for new estimates.
18340 (try_unroll_loop_completely): Use new estimates.
18341 * Makefile.in (tree-ssa-loop-ivcanon.o): Add dependenc on target.h
18342
18343 2009-05-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
18344
18345 * config/spu/spu-c.c (spu_categorize_keyword): Update for recent
18346 libcpp interface change.
18347 (spu_macro_to_expand): Likewise.
18348
18349 2009-05-11 Paolo Bonzini <bonzini@gnu.org>
18350
18351 PR tree-optimization/40026
18352 * gimplify.c (gimplify_init_constructor): Change initial conditional
18353 to assertion. Rewrite TREE_OPERAND (*expr_p, 1) after
18354 optimize_compound_literals_in_ctor.
18355
18356 2009-05-11 Nathan Sidwell <nathan@codesourcery.com>
18357
18358 * config/m68k/m68k-devices.def (52274, 52277, 5301x, 5225x, 51xx):
18359 New devices.
18360 * doc/invoke.texi (M680x0 Options): Document new coldfire cpus.
18361
18362 2009-05-11 H.J. Lu <hongjiu.lu@intel.com>
18363
18364 * tree-vect-data-refs.c (vect_analyze_group_access): Use
18365 HOST_WIDE_INT for gap.
18366
18367 2009-05-11 Ira Rosen <irar@il.ibm.com>
18368
18369 PR tree-optimization/40074
18370 * tree-vect-data-refs.c (vect_analyze_group_access): Take gaps into
18371 account in group size and step comparison.
18372
18373 2009-05-11 Richard Guenther <rguenther@suse.de>
18374
18375 * passes.c (init_optimization_passes): Strip now incorrect comment.
18376 (execute_function_todo): Do not set PROP_alias.
18377 * tree-pass.h (PROP_alias): Remove.
18378 * tree-ssa-structalias.c (pass_build_alias): Do not provide PROP_alias.
18379 * tree-if-conv.c (pass_if_conversion): Do not require PROP_alias.
18380 * tree-nrv.c (pass_return_slot): Likewise.
18381 * tree-object-size.c (pass_object_sizes): Likewise.
18382 * tree-ssa-dom.c (pass_dominator): Likewise.
18383 (pass_phi_only_cprop): Likewise.
18384 * tree-ssa-dse.c (pass_dse): Likewise.
18385 * tree-ssa-phiopt.c (pass_phiopt): Likewise.
18386 (pass_cselim): Likewise.
18387 * tree-ssa-pre.c (pass_pre): Likewise.
18388 (pass_fre): Likewise.
18389 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
18390 * tree-ssa-sink.c (pass_sink_code): Likewise.
18391 * tree-stdarg.c (pass_stdarg): Likewise.
18392 * tree-tailcall.c (pass_tail_calls): Likewise.
18393 * tree-vrp.c (pass_vrp): Likewise.
18394
18395 2009-05-10 Ian Lance Taylor <iant@google.com>
18396
18397 * basic-block.h (enum profile_status): Break out of struct
18398 control_flow_graph.
18399 * cgraph.h (struct inline_summary): Break out of struct
18400 cgraph_local_info.
18401 * cgraphunit.c (enum cgraph_order_sort_kind): New enum, broken out
18402 of struct cgraph_order_sort.
18403 * combine.c (enum undo_kind): New enum, broken out of struct undo.
18404 * cse.c (struct branch_path): Break out of struct
18405 cse_basic_block_data.
18406 * except.h (enum eh_region_type): Break out of struct eh_region.
18407 * gcc.c (enum add_del): Break out of struct modify_target.
18408 * genrecog.c (enum decision_type): Break out of struct decision_test.
18409 * ggc-page.c (struct ggc_pch_ondisk): Break out of struct
18410 ggc_pch_data.
18411 * matrix-reorg.c (struct free_info): Break out of struct matrix_info.
18412 * regmove.c (enum match_use): New enum, broken out of struct match.
18413 * sched-int.h (enum post_call_group): New enum, broken out of
18414 struct deps.
18415 (struct deps_reg): Break out of struct deps.
18416 * target.h (struct asm_int_op): Break out of struct gcc_target.
18417 * tree-eh.c (struct goto_queue_node): Break out of struct
18418 leh_tf_state.
18419 * tree-inline.h (enum copy_body_cge_which): Break out of
18420 copy_body_data.
18421 * tree-pass.h (enum opt_pass_type): Break out of struct opt_pass.
18422
18423 * c-decl.c (in_struct, struct_types): New static variables.
18424 (pushtag): Add loc parameter. Change all callers.
18425 (lookup_tag): Add ploc parameter. Change all callers.
18426 (check_compound_literal_type): New function.
18427 (parser_xref_tag): Add loc parameter. Change all callers. If
18428 -Wc++-compat, warn about struct/union/enum types defined within a
18429 struct or union.
18430 (start_struct): Add enclosing_in_struct, enclosing_struct_types,
18431 and loc parameters. Change all callers. Change error calls to
18432 error_at, using loc. For a redefinition, if the location of the
18433 original definition is known, report it. Set in_struct and
18434 struct_types. If -Wc++-compat warn if in sizeof, typeof, or alignof.
18435 (finish_struct): Add new parameters enclosing_in_struct and
18436 enclosing_struct_types. Change all callers. Set
18437 C_TYPE_DEFINED_IN_STRUCT for all struct/union/enum types defined
18438 in the struct. If in a struct, add this struct to struct_types.
18439 (start_enum): Add loc parameter. Change all callers. Use
18440 error_at for errors, using loc. For a redefinition, if the
18441 location of the original definition is known, report it. If in a
18442 struct, add this enum type to struct_types. If -Wc++-compat warn
18443 if in sizeof, typeof, or alignof.
18444 * c-parser.c (disable_extension_diagnostics): Disable -Wc++-compat.
18445 (enable_extension_diagnostics): Reenable -Wc++-compat if appropriate.
18446 (c_parser_enum_specifier): Get enum location for start_enum.
18447 (c_parser_struct_or_union_specifier): Get struct location for
18448 start_struct. Save in_struct and struct_types status between
18449 start_struct and finish_struct.
18450 (c_parser_cast_expression): Get location of cast.
18451 (c_parser_alignof_expression): Get location of type.
18452 (c_parser_postfix_expression): Likewise.
18453 (c_parser_postfix_expression_after_paren_type): Add type_loc
18454 parameter. Change all callers. Call check_compound_literal_type.
18455 Use type_loc for error about variable size type.
18456 * c-typeck.c (build_external_ref): If -Wc++-compat, warn about a use
18457 of an enum constant from an enum type defined in a struct or union.
18458 (c_cast_expr): Add loc parameter. Change all callers. If
18459 -Wc++-compat, warn about defining a type in a cast.
18460 * c-tree.h (C_TYPE_DEFINED_IN_STRUCT): Define.
18461 (start_enum, start_struct, finish_struct): Update declarations.
18462 (parser_xref_tag, c_cast_expr): Update declarations.
18463 (check_compound_literal_type): Declare.
18464
18465 2009-05-11 Ben Elliston <bje@au.ibm.com>
18466
18467 * config/rs6000/rs6000-c.c (altivec_categorize_keyword): Update
18468 for recent libcpp interface change.
18469 (rs6000_macro_to_expand): Likewise.
18470
18471 2009-05-10 Michael Matz <matz@suse.de>
18472
18473 PR target/40031
18474 * config/arm/arm.c (require_pic_register): Emit on entry edge,
18475 not at entry of function.
18476
18477 2009-05-10 Richard Guenther <rguenther@suse.de>
18478
18479 PR tree-optimization/40081
18480 Revert
18481 * tree-sra.c (instantiate_element): Instantiate scalar replacements
18482 using the main variant of the element type. Do not fiddle with
18483 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
18484
18485 * tree-sra.c (sra_type_can_be_decomposed_p): Do not decompose
18486 structs with volatile fields.
18487
18488 2009-05-10 Jan Hubicka <jh@suse.cz>
18489
18490 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Declare.
18491 (estimate_move_cost): Assert that it does not get called for
18492 VOID_TYPE_P.
18493 (estimate_num_insns): Skip VOID types in argument handling.
18494 (optimize_inline_calls): Delete unreachable blocks and verify that
18495 callgraph is valid.
18496
18497 2009-05-10 Jan Hubicka <jh@suse.cz>
18498
18499 * cgraphbuild.c (record_reference): Use cgraph_mark_address_taken_node.
18500 * cgraph.c (cgraph_mark_address_taken_node): New function.
18501 (dump_cgraph_node): Dump new flag.
18502 * cgraph.h (struct cgraph_node): Add address_taken.
18503 (cgraph_mark_address_taken_node): New function.
18504 * ipa.c (cgraph_postorder): Prioritize functions with address taken
18505 since new direct calls can be born.
18506
18507 2009-05-10 Joseph Myers <joseph@codesourcery.com>
18508
18509 * c-lex.c (c_lex_with_flags): Expect cpp_hashnode in
18510 tok->val.node.node.
18511
18512 2009-05-10 Jan Hubicka <jh@suse.cz>
18513
18514 PR middle-end/40084
18515 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Take old_call
18516 argument; rewrite.
18517 (cgraph_update_edges_for_call_stmt): Take old_decl argument.
18518 * cgraph.h (cgraph_update_edges_for_call_stmt): Update prototype.
18519 * tree-inline.c (copy_bb): Set frequency correctly.
18520 (fold_marked_statements): Update call to
18521 cgraph_update_edges_for_call_stmt.
18522
18523 2009-05-10 Joseph Myers <joseph@codesourcery.com>
18524
18525 * config/arc/arc.c (arc_handle_interrupt_attribute): Use %qE for
18526 identifiers in diagnostics.
18527 * config/arm/arm.c (arm_handle_fndecl_attribute,
18528 arm_handle_isr_attribute): Likewise.
18529 * config/avr/avr.c (avr_handle_progmem_attribute,
18530 avr_handle_fndecl_attribute, avr_handle_fntype_attribute): Likewise.
18531 * config/bfin/bfin.c (handle_int_attribute,
18532 bfin_handle_longcall_attribute, bfin_handle_l1_text_attribute,
18533 bfin_handle_l1_data_attribute, bfin_handle_longcall_attribute,
18534 bfin_handle_l1_text_attribute, bfin_handle_l1_data_attribute):
18535 Likewise.
18536 * config/darwin.c (darwin_handle_kext_attribute,
18537 darwin_handle_weak_import_attribute): Likewise.
18538 * config/h8300/h8300.c (h8300_handle_fndecl_attribute,
18539 h8300_handle_eightbit_data_attribute,
18540 h8300_handle_tiny_data_attribute): Likewise.
18541 * config/i386/i386.c (ix86_handle_cconv_attribute,
18542 ix86_handle_abi_attribute, ix86_handle_struct_attribute): Likewise.
18543 * config/i386/winnt.c (ix86_handle_shared_attribute,
18544 ix86_handle_selectany_attribute): Likewise.
18545 * config/ia64/ia64.c (ia64_handle_model_attribute): Likewise.
18546 * config/m32c/m32c.c (function_vector_handler): Likewise.
18547 * config/m68hc11/m68hc11.c (m68hc11_handle_page0_attribute,
18548 m68hc11_handle_fntype_attribute): Likewise.
18549 * config/m68k/m68k.c (m68k_handle_fndecl_attribute): Likewise.
18550 * config/mcore/mcore.c (mcore_handle_naked_attribute): Likewise.
18551 * config/mips/mips.c (mips_insert_attributes,
18552 mips_merge_decl_attributes, mips_expand_builtin): Likewise.
18553 * config/rs6000/rs6000.c (rs6000_handle_longcall_attribute,
18554 rs6000_handle_struct_attribute): Likewise.
18555 * config/sh/sh.c (sh_insert_attributes,
18556 sh_handle_resbank_handler_attribute,
18557 sh_handle_interrupt_handler_attribute,
18558 sh2a_handle_function_vector_handler_attribute,
18559 sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
18560 Likewise.
18561 * config/sh/symbian.c (sh_symbian_mark_dllimport): Likewise.
18562 * config/spu/spu.c (spu_handle_fndecl_attribute,
18563 spu_handle_vector_attribute): Likewise.
18564 * config/stormy16/stormy16.c
18565 (xstormy16_handle_interrupt_attribute): Likewise.
18566 * config/v850/v850-c.c (ghs_pragma_section): Likewise.
18567 * config/v850/v850.c (v850_handle_interrupt_attribute): Likewise.
18568
18569 2009-05-10 Joseph Myers <joseph@codesourcery.com>
18570
18571 * pretty-print.h (struct pretty_print_info): Add translate_identifiers.
18572 (pp_translate_identifiers): New.
18573 (pp_identifier): Only conditionally translate identifier to locale
18574 character set.
18575 * pretty-print.c (pp_construct): Set pp_translate_identifiers.
18576 (pp_base_tree_identifier): Only conditionally translate identifier
18577 to locale character set.
18578 * c-pretty-print.c (M_): Define.
18579 (pp_c_type_specifier, pp_c_primary_expression): Mark English
18580 fragments for conditional translation with M_.
18581 * tree-pretty-print.c (maybe_init_pretty_print): Disable
18582 identifier translation.
18583
18584 2009-05-10 Richard Guenther <rguenther@suse.de>
18585
18586 PR tree-optimization/40081
18587 * tree-sra.c (instantiate_element): Instantiate scalar replacements
18588 using the main variant of the element type. Do not fiddle with
18589 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
18590
18591 2009-05-09 Jan Hubicka <jh@suse.cz>
18592
18593 PR middle-end/40080
18594 * cgraphunit.c (cgraph_materialize_all_clones): Do not redirect
18595 indirect calls; verify cgraph afterwards.
18596
18597 2009-05-09 Jan Hubicka <jh@suse.cz>
18598
18599 PR bootstrap/40082
18600 * ipa.c (update_inlined_to_pointer): New function.
18601 (cgraph_remove_unreachable_nodes): Use it.
18602
18603 2009-05-09 Jan Hubicka <jh@suse.cz>
18604
18605 * tree-eh.c (struct leh_state): Remove prev_try.
18606 (lower_try_finally, lower_catch, lower_eh_filter, lower_cleanup): Do
18607 not track prev_try.
18608 * except.c (gen_eh_region_cleanup, duplicate_eh_regions,
18609 copy_eh_region_1, copy_eh_region, redirect_eh_edge_to_label,
18610 remove_eh_handler_and_replace, foreach_reachable_handler,
18611 verify_eh_region, verify_eh_tree): Remove tracking of prev_try pointer.
18612 * except.h (struct eh_region): Remove eh_region_u_cleanup.
18613 (gen_eh_region_cleanup): Update prototype.
18614
18615 2009-05-09 Jan Hubicka <jh@suse.cz>
18616
18617 PR middle-end/40043
18618 * except.c (copy_eh_region): Always set prev_try.
18619 (redirect_eh_edge_to_label): Find outer try.
18620 (foreach_reachable_handler): When looking for prev try
18621 handle case where previous try is not going to be taken.
18622
18623 2009-05-07 Michael Meissner <meissner@linux.vnet.ibm.com>
18624
18625 PR tree-optimization/40049
18626 * tree-vect-stmts.c (vectorizable_operation): If the machine has
18627 only vector/vector shifts, convert the type of the constant to the
18628 appropriate type to avoid building incorrect trees, which
18629 eventually have problems with garbage collection.
18630
18631 2009-05-08 Joseph Myers <joseph@codesourcery.com>
18632
18633 * fold-const.c (fold_binary): Do not fold multiplication by 1 or
18634 -1 for complex floating-point types if honoring signed zeros.
18635
18636 2009-05-08 Jan Hubicka <jh@suse.cz>
18637
18638 * cgraphbuild.c (compute_call_stmt_bb_frequency): Accept function
18639 argument; handle correctly when profile is absent.
18640 (build_cgraph_edges): Update.
18641 (rebuild_cgraph_edges): Update.
18642 * cgraph.c: Do not include varray.h.
18643 (cgraph_set_call_stmt_including_clones): New function.
18644 (cgraph_create_edge_including_clones): Likewise
18645 (cgraph_update_edges_for_call_stmt_node): New static cfunction.
18646 (cgraph_update_edges_for_call_stmt): Handle clones.
18647 (cgraph_remove_node): Handle clone tree.
18648 (cgraph_remove_node_and_inline_clones): New function.
18649 (dump_cgraph_node): Dump clone tree.
18650 (cgraph_clone_node): Handle clone tree.
18651 (clone_function_name): Bring here from tree-inline.c.
18652 (cgraph_create_virtual_clone): New function.
18653 * cgraph.h (ipa_replace_map): Move here from ipa.h.
18654 (cgraph_clone_info): New function.
18655 (strut cgraph_node): Add clone_info and new clone tree pointers.
18656 (cgraph_remove_node_and_inline_clones,
18657 cgraph_set_call_stmt_including_clones,
18658 cgraph_create_edge_including_clones,
18659 cgraph_create_virtual_clone): Declare.
18660 (cgraph_function_versioning): Use VEC argument.
18661 (compute_call_stmt_bb_frequency): Update prototype.
18662 (cgraph_materialize_all_clones): New function.
18663 * ipa-cp.c (ipcp_update_cloned_node): Remove.
18664 (ipcp_create_replace_map): Update to VECtors.
18665 (ipcp_update_callgraph): Use virtual clones.
18666 (ipcp_update_bb_counts, ipcp_update_edges_counts): Remove.
18667 (ipcp_update_profiling): Do not update local profiling.
18668 (ipcp_insert_stage): Use VECtors and virtual clones.
18669 * cgraphunit.c (verify_cgraph_node): Verify clone tree.
18670 (clone_of_p): New function.
18671 (cgraph_preserve_function_body_p): Use clone tree.
18672 (cgraph_optimize): Materialize clones.
18673 (cgraph_function_versioning): Update for VECtors.
18674 (save_inline_function_body): Use clone tree.
18675 (cgraph_materialize_clone): New function.
18676 (cgraph_materialize_all_clones): Likewise.
18677 * ipa-inline.c (cgraph_default_inline_p): Use analyzed flags.
18678 * ipa.c: Include gimple.h.
18679 (cgraph_remove_unreachable_nodes): Use clone tree.
18680 * ipa-prop.c (ipa_note_param_call): Update call to
18681 compute_call_stmt_bb_frequencycall.
18682 * ipa-prop.h (ipa_replace_map): Move to cgraph.h.
18683 * tree-inline.c: Do not include varray.h or gt-tree-inline.h.
18684 (copy_bb): Handle updating of clone tree; add new edge when new call
18685 appears.
18686 (expand_call_inline): Be strict about every call having edge.
18687 (clone_fn_id_num, clone_function_name): Move to cgraph.c.
18688 (delete_unreachable_blocks_update_callgraph): New function.
18689 (tree_function_versioning): Use VECtors; always remove unreachable
18690 blocks and fold conditionals.
18691 * tree-inline.h: Do not include varray.h.
18692 (tree_function_versioning): Remove.
18693 * Makefile.in (GTFILES): Remove tree-inline.c
18694 * passes.c (do_per_function): Do only functions having body.
18695 * ipa-struct-reorg.c (do_reorg_1, collect_data_accesses): Handle clone
18696 tree.
18697
18698 2009-05-08 H.J. Lu <hongjiu.lu@intel.com>
18699 Andrew Morrow <acm@google.com>
18700
18701 PR c/36892
18702 * c-common.c (c_common_attribute_table): Permit deprecated
18703 attribute to take an optional argument.
18704 (handle_deprecated_attribute): If the optional argument to
18705 __attribute__((deprecated)) is not a string ignore the attribute
18706 and emit a warning.
18707
18708 * c-decl.c (grokdeclarator): Updated warn_deprecated_use call.
18709 * c-typeck.c (build_component_ref): Likewise.
18710 (build_external_ref): Likewise.
18711
18712 * toplev.c (warn_deprecated_use): Add an attribute argument.
18713 Emit the message associated with __attribute__((deprecated)).
18714
18715 * toplev.h (warn_deprecated_use): Updated.
18716
18717 * doc/extend.texi: Document new optional parameter to
18718 __attribute__((deprecated))
18719
18720 2009-05-08 Michael Eager <eager@eagercon.com>
18721
18722 * config/rs6000/rs6000.md (*movdf_softfloat32): replace
18723 !TARGET_DOUBLE_FLOAT with TARGET_SINGLE_FLOAT.
18724
18725 2009-05-08 Richard Guenther <rguenther@suse.de>
18726
18727 PR tree-optimization/40062
18728 * tree-scalar-evolution.c (follow_ssa_edge_in_condition_phi):
18729 Avoid exponential behavior.
18730
18731 2009-05-08 Paolo Bonzini <bonzini@gnu.org>
18732
18733 PR rtl-optimization/33928
18734 PR 26854
18735 * fwprop.c (use_def_ref, get_def_for_use, bitmap_only_bit_bitween,
18736 process_uses, build_single_def_use_links): New.
18737 (update_df): Update use_def_ref.
18738 (forward_propagate_into): Use get_def_for_use instead of use-def
18739 chains.
18740 (fwprop_init): Call build_single_def_use_links and let it initialize
18741 dataflow.
18742 (fwprop_done): Free use_def_ref.
18743 (fwprop_addr): Eliminate duplicate call to df_set_flags.
18744 * df-problems.c (df_rd_simulate_artificial_defs_at_top,
18745 df_rd_simulate_one_insn): New.
18746 (df_rd_bb_local_compute_process_def): Update head comment.
18747 (df_chain_create_bb): Use the new RD simulation functions.
18748 * df.h (df_rd_simulate_artificial_defs_at_top,
18749 df_rd_simulate_one_insn): New.
18750 * opts.c (decode_options): Enable fwprop at -O1.
18751 * doc/invoke.texi (-fforward-propagate): Document this.
18752
18753 2009-05-08 Joseph Myers <joseph@codesourcery.com>
18754
18755 PR c/24581
18756 * c-typeck.c (build_binary_op): Handle arithmetic between one real
18757 and one complex operand specially.
18758 * tree-complex.c (some_nonzerop): Do not identify a real value as
18759 zero if flag_signed_zeros.
18760
18761 2009-05-08 Paolo Bonzini <bonzini@gnu.org>
18762
18763 PR rtl-optimization/33928
18764 * loop-invariant.c (record_use): Fix && vs. || mishap.
18765
18766 2009-05-08 Paolo Bonzini <bonzini@gnu.org>
18767
18768 PR rtl-optimization/33928
18769 * loop-invariant.c (struct use): Add addr_use_p.
18770 (struct def): Add n_addr_uses.
18771 (struct invariant): Add cheap_address.
18772 (create_new_invariant): Set cheap_address.
18773 (record_use): Accept df_ref. Set addr_use_p and update n_addr_uses.
18774 (record_uses): Pass df_ref to record_use.
18775 (get_inv_cost): Do not add inv->cost to comp_cost for cheap addresses
18776 used only as such.
18777
18778 2009-05-08 Kaz Kojima <kkojima@gcc.gnu.org>
18779
18780 * config/sh/sh.c: Do not include c-pragma.h.
18781
18782 2009-05-07 Andrew Pinski <andrew_pinski@playstation.sony.com>
18783
18784 * config/spu/spu.c: Remove include of c-common.h.
18785
18786 2009-05-07 Janis Johnson <janis187@us.ibm.com>
18787
18788 PR c/39037
18789 * c-common.h (mark_valid_location_for_stdc_pragma,
18790 valid_location_for_stdc_pragma_p, set_float_const_decimal64,
18791 clear_float_const_decimal64, float_const_decimal64_p): New.
18792 * c.opt (Wunsuffixed-float-constants): New.
18793 * c-lex.c (interpret_float): Use pragma FLOAT_CONST_DECIMAL64 for
18794 unsuffixed float constant, handle new warning.
18795 * c-cppbuiltin.c (c_cpp_builtins): Use cast for double constants.
18796 * c-decl.c (c_scope): New flag float_const_decimal64.
18797 (set_float_const_decimal64, clear_float_const_decimal64,
18798 float_const_decimal64_p): New.
18799 (push_scope): Set new flag.
18800 * c-parser.c (c_parser_translation_unit): Mark when it's valid
18801 to use STDC pragmas.
18802 (c_parser_external_declaration): Ditto.
18803 (c_parser_compound_statement_nostart): Ditto.
18804 * c-pragma.c (valid_location_for_stdc_pragma,
18805 mark_valid_location_for_stdc_pragma,
18806 valid_location_for_stdc_pragma_p, handle_stdc_pragma,
18807 handle_pragma_float_const_decimal64): New.
18808 (init_pragma): Register new pragma FLOAT_CONST_DECIMAL64.
18809 * cp/semantics.c (valid_location_for_stdc_pragma_p,
18810 set_float_const_decimal64, clear_float_const_decimal64,
18811 float_const_decimal64_p): New dummy functions.
18812 * doc/extend.texi (Decimal Float): Remove statement that the
18813 pragma, and suffix for double constants, are not supported.
18814 * doc/invoke.texi (Warning Options): List new option.
18815 (-Wunsuffixed-float-constants): New.
18816
18817 2009-05-08 Steven Bosscher <steven@gcc.gnu.org>
18818
18819 * config/i386/i386.c: Do not include c-common.h.
18820
18821 2009-05-07 Mark Heffernan <meheff@google.com>
18822
18823 * doc/invoke.texi (Debugging Options): Document change of debugging
18824 dump location.
18825 * opts.c (decode_options): Make dump_base_name relative to
18826 aux_base_name directory.
18827
18828 2009-05-07 Hariharan Sandanagobalane <hariharan@picochip.com>
18829
18830 * config/picochip/picochip.h (NO_DOLLAR_IN_LABEL): Added.
18831 * config/picochip/libgccExtras/divmod15.asm : Removed redefiniton.
18832
18833 2009-05-07 Rafael Avila de Espindola <espindola@google.com>
18834
18835 * Makefile.in (install-plugin): Simplify a bit.
18836
18837 2009-05-07 Paolo Bonzini <bonzini@gnu.org>
18838
18839 * Makefile.in (OBJS-common): Add regcprop.o.
18840 (regcprop.o): New.
18841 * timevar.def (TV_CPROP_REGISTERS): New.
18842 * regrename.c (regrename_optimize): Return 0.
18843 (rest_of_handle_regrename): Delete.
18844 (pass_rename_registers): Point to regrename_optimize.
18845 (struct value_data_entry, struct value_data,
18846 kill_value_one_regno, kill_value_regno, kill_value,
18847 set_value_regno, init_value_data, kill_clobbered_value,
18848 kill_set_value, kill_autoinc_value, copy_value,
18849 mode_change_ok, maybe_mode_change, find_oldest_value_reg,
18850 replace_oldest_value_reg, replace_oldest_value_addr,
18851 replace_oldest_value_mem, copyprop_hardreg_forward_1,
18852 debug_value_data, validate_value_data): Move...
18853 * regcprop.c: ... here.
18854 (rest_of_handle_cprop): Delete.
18855 (pass_cprop_hardreg): Point to copyprop_hardreg_forward.
18856
18857 2009-05-07 Jakub Jelinek <jakub@redhat.com>
18858
18859 PR middle-end/40057
18860 * dojump.c (prefer_and_bit_test): Use immed_double_const instead of
18861 GEN_INT for 1 << bitnum.
18862 (do_jump) <case BIT_AND_EXPR>: Use build_int_cst_wide_type instead of
18863 build_int_cst_type.
18864
18865 2009-05-07 Uros Bizjak <ubizjak@gmail.com>
18866
18867 * doc/md.texi (Standard Pattern Names For Generation) [sync_nand]:
18868 Remove wrong description of "nand" operation.
18869
18870 2009-05-06 Richard Guenther <rguenther@suse.de>
18871 Adam Nemet <anemet@caviumnetworks.com>
18872
18873 * gimple.def (GIMPLE_ASSIGN): Fix incorrect information in the
18874 comment. Add that if LHS is not a gimple register, then RHS1 has
18875 to be a single object (GIMPLE_SINGLE_RHS).
18876
18877 2009-05-06 Adam Nemet <anemet@caviumnetworks.com>
18878
18879 * expr.c (get_def_for_expr): Move it up in the file.
18880 (store_field): When expanding a bit-field store, look at the
18881 defining gimple stmt for the masking conversion.
18882
18883 2009-05-06 Janis Johnson <janis187@us.ibm.com>
18884
18885 PR middle-end/39986
18886 * dfp.c (encode_decimal32, decode_decimal32, encode_decimal64,
18887 decode_decimal64, encode_decimal128, decode_decimal128): Avoid
18888 32-bit memcpy into long.
18889
18890 2009-05-06 Jakub Jelinek <jakub@redhat.com>
18891
18892 * dwarf2out.c (new_reg_loc_descr): Don't ever create DW_OP_regX.
18893 (one_reg_loc_descriptor): Create DW_OP_regX here instead of calling
18894 new_reg_loc_descr.
18895 (loc_by_reference): If loc is DW_OP_regX, change it into DW_OP_bregX 0
18896 instead of appending DW_OP_deref*.
18897
18898 2009-05-06 Michael Matz <matz@suse.de>
18899
18900 PR middle-end/40021
18901 * cfgexpand.c (maybe_cleanup_end_of_block): New static function.
18902 (expand_gimple_cond): Use it to cleanup CFG and superfluous jumps.
18903
18904 2009-05-06 Rafael Avila de Espindola <espindola@google.com>
18905
18906 * Makefile.in (install-plugin): Fix srcdir handling.
18907
18908 2009-05-06 Andrey Belevantsev <abel@ispras.ru>
18909
18910 * tree-ssa.c (execute_update_address_taken): Handle TARGET_MEM_REF
18911 when processing for not_regs_needed bitmap.
18912 * gimple.c (walk_stmt_load_store_addr_ops): When visiting address,
18913 handle TARGET_MEM_REF in lhs. Check TMR_BASE for NULL while
18914 handling it for rhs.
18915
18916 2009-05-06 H.J. Lu <hongjiu.lu@intel.com>
18917
18918 * config/i386/i386.md (unnamed inc/dec peephole): Use
18919 optimize_insn_for_size_p instead of optimize_size.
18920 * config/i386/predicates.md (incdec_operand): Likewise.
18921 (aligned_operand): Likewise.
18922 * config/i386/sse.md (divv8sf3): Likewise.
18923 (sqrtv8sf2): Likewise.
18924
18925 2009-05-06 H.J. Lu <hongjiu.lu@intel.com>
18926
18927 * config/i386/i386.c (ix86_build_signbit_mask): Make it static.
18928
18929 * config/i386/i386-protos.h (ix86_build_signbit_mask): Removed.
18930
18931 2009-05-06 H.J. Lu <hongjiu.lu@intel.com>
18932
18933 * config/i386/i386.md (*avx_<code><mode>3_finite): Replace
18934 ssemodesuffixf2c with avxmodesuffixf2c.
18935
18936 2009-05-06 Joseph Myers <joseph@codesourcery.com>
18937
18938 PR c/40032
18939 * c-decl.c (grokdeclarator): Handle incomplete type of unnamed field.
18940
18941 2009-05-05 Jakub Jelinek <jakub@redhat.com>
18942
18943 * tree.h: Remove DECL_BY_REFERENCE from private_flag comment.
18944 (struct tree_base): Adjust spacing for 8 bit boundaries.
18945 (struct tree_decl_common): Add decl_by_reference_flag bit.
18946 (DECL_BY_REFERENCE): Adjust.
18947 * print-tree.c (print_node): For VAR_DECL, PARM_DECL or RESULT_DECL,
18948 print DECL_BY_REFERENCE bit.
18949 * dbxout.c (DECL_ACCESSIBILITY_CHAR): Revert last change.
18950 * dwarf2out.c (loc_by_reference, gen_decl_die): Check
18951 DECL_BY_REFERENCE for all VAR_DECLs, not just non-static ones.
18952 (gen_variable_die): Likewise. Check TREE_PRIVATE/TREE_PROTECTED
18953 unconditionally.
18954
18955 PR middle-end/39666
18956 * gimplify.c (gimplify_switch_expr): If case labels cover the whole
18957 range of the type, but default label is missing, add it with one
18958 of the existing labels instead of adding a new label for it.
18959
18960 2009-05-05 Joseph Myers <joseph@codesourcery.com>
18961
18962 * dwarf.h: Remove.
18963
18964 2009-05-05 Rafael Avila de Espindola <espindola@google.com>
18965
18966 * Makefile.in (enable_plugin, plugin_includedir): New.
18967 (install): Depend on install-plugin.
18968 (PLUGIN_HEADERS): New.
18969 (install-plugin): New.
18970 * config.gcc: Add vxworks-dummy.h to tm_file for x86 and x86-64.
18971
18972 2009-05-05 Richard Guenther <rguenther@suse.de>
18973
18974 PR tree-optimization/40022
18975 * tree-ssa-phiprop.c (struct phiprop_d): Exchange vop_stmt for
18976 the only vuse.
18977 (phivn_valid_p): Fix tuplification error, simplify.
18978 (phiprop_insert_phi): Add dumps.
18979 (propagate_with_phi): Simplify.
18980
18981 2009-05-05 Richard Guenther <rguenther@suse.de>
18982
18983 PR middle-end/40023
18984 * builtins.c (gimplify_va_arg_expr): Properly build the address.
18985
18986 2009-05-05 Shujing Zhao <pearly.zhao@oracle.com>
18987
18988 * tree.h (strip_float_extensions): Remove duplicate declaration.
18989 (build_low_bits_mask, debug_fold_checksum, expand_function_end,
18990 expand_function_start, stack_protect_prologue, stack_protect_epilogue,
18991 block_ultimate_origin): Rearrange the declarations line to match the
18992 comment that indicates the .c file which the functions are defined.
18993 (dwarf2out_*, set_decl_rtl): Add comment.
18994 (get_base_address): Adjust comment.
18995 (change_decl_assembler_name, maybe_fold_*, build_addr): Rearrange the
18996 declarations line and add comment.
18997 (is_builtin_name): Add blank after function name, for clarity.
18998
18999 2009-05-04 Joseph Myers <joseph@codesourcery.com>
19000
19001 * attribs.c (decl_attributes): Use %qE for identifiers in
19002 diagnostics.
19003 * cgraphunit.c (verify_cgraph_node): Translate function names to
19004 locale character set in diagnostics.
19005 * coverage.c (get_coverage_counts): Use %qE for identifiers in
19006 diagnostics.
19007 * doc/invoke.texi (-finstrument-functions-exclude-function-list):
19008 Document that functions are named in UTF-8.
19009 * expr.c (expand_expr_real_1): Translate function names to locale
19010 character set in diagnostics.
19011 * gimplify.c (omp_notice_variable, omp_is_private,
19012 gimplify_scan_omp_clauses): Use %qE for identifiers in
19013 diagnostics.
19014 * langhooks.c (lhd_print_error_function): Translate function names
19015 to locale character set.
19016 * langhooks.h (decl_printable_name): Document that return value is
19017 in internal character set.
19018 * stmt.c: Include pretty-print.h
19019 (tree_conflicts_with_clobbers_p): Use %qE for identifiers in
19020 diagnostics.
19021 (resolve_operand_name_1): Translate named operand name to locale
19022 character set.
19023 * stor-layout.c (finalize_record_size): Use %qE for identifiers in
19024 diagnostics.
19025 * toplev.c (announce_function): Translate function names to locale
19026 character set.
19027 (warn_deprecated_use): Use %qE for identifiers in diagnostics.
19028 (default_tree_printer): Use pp_identifier or translate identifiers
19029 to locale character set. Mark "<anonymous>" for translation.
19030 * tree-mudflap.c (mx_register_decls, mudflap_finish_file): Use %qE
19031 for identifiers in diagnostics.
19032 * tree.c (handle_dll_attribute): Use %qE for identifiers in
19033 diagnostics.
19034 * varasm.c (output_constructor): Use %qE for identifiers in
19035 diagnostics.
19036
19037 2009-05-04 Rafael Avila de Espindola <espindola@google.com>
19038
19039 * configure.ac: use ` ` instead of $()
19040 * configure: Regenerate.
19041
19042 2009-05-05 Ben Elliston <bje@au.ibm.com>
19043
19044 * config/pa/linux-atomic.c: Eliminate conditional include of
19045 errno.h on non-LP64 systems to simplify build requirements.
19046
19047 2009-05-04 Joseph Myers <joseph@codesourcery.com>
19048
19049 * c-common.c (handle_mode_attribute): Use %qE for identifiers in
19050 diagnostics.
19051 * c-decl.c (check_bitfield_type_and_width): Make orig_name a tree
19052 and pass value to identifier_to_locale.
19053 (warn_variable_length_array): Make name a tree.
19054 (grokdeclarator): Separate diagnostic texts for named and unnamed
19055 declarators. Use %qE for named declarators.
19056 * c-parser.c (c_lex_one_token): Use %qE for identifiers in
19057 diagnostics.
19058 * c-pragma.c (pop_alignment, handle_pragma_pack): Use %qE for
19059 identifiers in diagnostics.
19060 * c-typeck.c (push_member_name, start_init): Pass identifiers to
19061 identifier_to_locale. Mark "anonymous" strings for translation.
19062
19063 2009-05-04 Michael Eager <eager@eagercon.com>
19064
19065 * config/rs6000/rs6000.c (rs6000_legitimate_address): Allow
19066 address for DImode/DFmode only if double-precision FP regs.
19067
19068 2009-05-04 Michael Eager <eager@eagercon.com>
19069
19070 * config/rs6000/rs6000.c (rs6000_libcall_value): Add
19071 TARGET_SINGLE_FLOAT check.
19072
19073 2009-05-04 Michael Eager <eager@eagercon.com>
19074
19075 * config/rs6000/xilinx.h: Add CPP_SPEC for -mxilinx-fpu options.
19076
19077 2009-05-04 Michael Eager <eager@eagercon.com>
19078
19079 * gcc/config.gcc: (powerpc-xilinx-eabi*): Add tm t-xilinx
19080 * config/rs6000/t-xilinx: New
19081
19082 2009-05-04 Paolo Bonzini <bonzini@gnu.org>
19083
19084 * doc/tm.texi (LEGITIMIZE_ADDRESS): Revise documentation.
19085 * gcc/defaults.h (LEGITIMIZE_ADDRESS): Delete.
19086 * gcc/explow.c (memory_address): Use target hook.
19087 * gcc/targhooks.c (default_legitimize_address): New.
19088 * gcc/targhooks.h (default_legitimize_address): New.
19089 * gcc/target.h (legitimize_address): New.
19090 * gcc/target-def.h (TARGET_LEGITIMIZE_ADDRESS): New.
19091 (TARGET_INITIALIZER): Include it.
19092 * gcc/system.h (LEGITIMIZE_ADDRESS): Poison.
19093
19094 * config/bfin/bfin-protos.h (legitimize_address): Remove.
19095 * config/bfin/bfin.c (legitimize_address): Remove.
19096 * config/bfin/bfin.h (LEGITIMIZE_ADDRESS): Remove.
19097 * config/m68hc11/m68hc11-protos.h (m68hc11_legitimize_address):
19098 Remove.
19099 * config/m68hc11/m68hc11.c (m68hc11_legitimize_address): Remove.
19100 * config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Remove.
19101
19102 * gcc/config/arm/arm.h (LEGITIMIZE_ADDRESS, ARM_LEGITIMIZE_ADDRESS,
19103 THUMB_LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS): Delete.
19104 * gcc/config/s390/s390.h (LEGITIMIZE_ADDRESS): Delete.
19105 * gcc/config/m32c/m32c.h (LEGITIMIZE_ADDRESS): Delete.
19106 * gcc/config/sparc/sparc.h (LEGITIMIZE_ADDRESS): Delete.
19107 * gcc/config/m32r/m32r.h (LEGITIMIZE_ADDRESS): Delete.
19108 * gcc/config/i386/i386.h (LEGITIMIZE_ADDRESS): Delete.
19109 * gcc/config/sh/sh.h (LEGITIMIZE_ADDRESS): Delete.
19110 * gcc/config/avr/avr.h (LEGITIMIZE_ADDRESS): Delete.
19111 * gcc/config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Delete.
19112 * gcc/config/iq2000/iq2000.h (LEGITIMIZE_ADDRESS): Delete.
19113 * gcc/config/mn10300/mn10300.h (LEGITIMIZE_ADDRESS): Delete.
19114 * gcc/config/m68k/m68k.h (LEGITIMIZE_ADDRESS): Delete.
19115 * gcc/config/score/score.h (LEGITIMIZE_ADDRESS): Delete.
19116 * gcc/config/pa/pa.h (LEGITIMIZE_ADDRESS): Delete.
19117 * gcc/config/mips/mips.h (LEGITIMIZE_ADDRESS): Delete.
19118 * gcc/config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Delete.
19119 * gcc/config/frv/frv.h (LEGITIMIZE_ADDRESS): Delete.
19120 * gcc/config/spu/spu.h (LEGITIMIZE_ADDRESS): Delete.
19121 * gcc/config/xtensa/xtensa.h (LEGITIMIZE_ADDRESS): Delete.
19122 * gcc/config/cris/cris.h (LEGITIMIZE_ADDRESS): Delete.
19123 * gcc/config/rs6000/rs6000.h (LEGITIMIZE_ADDRESS): Delete.
19124 * gcc/config/picochip/picochip.h (LEGITIMIZE_ADDRESS): Delete.
19125
19126 * gcc/config/s390/s390-protos.h (legitimize_address): Delete.
19127 * gcc/config/m32c/m32c-protos.h (m32c_legitimize_address): Delete.
19128 * gcc/config/sparc/sparc-protos.h (legitimize_address): Delete.
19129 * gcc/config/i386/i386-protos.h (legitimize_address): Delete.
19130 * gcc/config/avr/avr-protos.h (legitimize_address): Delete.
19131 * gcc/config/mn10300/mn10300-protos.h (legitimize_address): Delete.
19132 * gcc/config/score/score-protos.h (score_legitimize_address): Delete.
19133 * gcc/config/arm/arm-protos.h (arm_legitimize_address,
19134 (thumb_legitimize_address): Delete.
19135 * gcc/config/pa/pa-protos.h (hppa_legitimize_address): Delete.
19136 * gcc/config/mips/mips-protos.h (mips_legitimize_address): Delete.
19137 * gcc/config/alpha/alpha-protos.h (alpha_legitimize_address): Delete.
19138 * gcc/config/frv/frv-protos.h (frv_legitimize_address): Delete.
19139 * gcc/config/spu/spu-protos.h (spu_legitimize_address): Delete.
19140 * gcc/config/xtensa/xtensa-protos.h (xtensa_legitimize_address):
19141 Delete.
19142 * gcc/config/rs6000/rs6000-protos.h (rs6000_legitimize_address):
19143 Delete.
19144
19145 * config/arm/arm.c (arm_legitimize_address): Maybe call Thumb version.
19146 * config/m32c/m32c.c (m32c_legitimize_address): Standardize.
19147 * config/m32r/m32r.c (m32r_legitimize_address): New.
19148 * config/m68k/m68k.c (m68k_legitimize_address): New.
19149 * config/score/score.c (score_legitimize_address): Standardize.
19150 * config/score/score3.c (score3_legitimize_address): Standardize.
19151 * config/score/score3.h (score3_legitimize_address): Adjust.
19152 * config/score/score7.c (score7_legitimize_address): Standardize.
19153 * config/score/score7.h (score7_legitimize_address): Adjust.
19154 * config/sh/sh.c (sh_legitimize_address): New.
19155 * config/iq2000/iq2000.c (iq2000_legitimize_address): New.
19156
19157 * gcc/config/s390/s390.c (legitimize_address): Rename to...
19158 (s390_legitimize_address): ... this.
19159 * gcc/config/sparc/sparc.c (legitimize_address): Rename to...
19160 (sparc_legitimize_address): ... this.
19161 * gcc/config/i386/i386.c (legitimize_address): Rename to...
19162 (ix86_legitimize_address): ... this.
19163 * gcc/config/avr/avr.c (legitimize_address): Rename to...
19164 (avr_legitimize_address): ... this.
19165 * gcc/config/mn10300/mn10300.c (legitimize_address): Rename to...
19166 (mn10300_legitimize_address): ... this.
19167 * config/alpha/alpha.c (alpha_legitimize_address): Wrap...
19168 (alpha_legitimize_address_1): ... the old alpha_legitimize_address.
19169 (alpha_expand_mov): Adjust call.
19170
19171 * config/frv/frv.c (frv_legitimize_address): Return x on failure.
19172 * config/spu/spu.c (spu_legitimize_address): Likewise.
19173 * config/xtensa/xtensa.c (xtensa_legitimize_address): Likewise.
19174 * config/rs6000/rs6000.c (rs6000_legitimize_address): Likewise.
19175
19176 2009-05-04 Joseph Myers <joseph@codesourcery.com>
19177
19178 * intl.c (locale_encoding, locale_utf8): New.
19179 (gcc_init_libintl): Initialize locale_encoding and locale_utf8.
19180 * intl.h (locale_encoding, locale_utf8): Declare.
19181 * pretty-print.c: Include ggc.h. Include iconv.h if HAVE_ICONV.
19182 (pp_base_tree_identifier, decode_utf8_char, identifier_to_locale):
19183 New.
19184 * pretty-print.h (pp_identifier): Call identifier_to_locale on ID
19185 argument.
19186 (pp_tree_identifier): Define to call pp_base_tree_identifier.
19187 (pp_base_tree_identifier): Declare as function.
19188 (identifier_to_locale): Declare.
19189 * Makefile.in (pretty-print.o): Update dependencies.
19190 * varasm.c (finish_aliases_1): Use %qE for identifiers in diagnostics.
19191
19192 2009-05-04 Richard Guenther <rguenther@suse.de>
19193
19194 PR middle-end/40015
19195 * builtins.c (fold_builtin_memory_op): Do not decay to element
19196 type if the size matches the whole array.
19197
19198 2009-05-04 Kazu Hirata <kazu@codesourcery.com>
19199
19200 * expmed.c (synth_mult): When trying out a shift, pass the result
19201 of a signed shift.
19202
19203 2009-05-04 Kazu Hirata <kazu@codesourcery.com>
19204
19205 * expmed.c (shiftsub_cost): Rename to shiftsub0_cost.
19206 (shiftsub1_cost): New.
19207 (init_expmed): Compute shiftsub1_cost.
19208 (synth_mult): Optimize multiplications by constants of the form
19209 -(2^^m-1) for some constant positive integer m.
19210
19211 2009-05-03 Richard Guenther <rguenther@suse.de>
19212
19213 PR c/39983
19214 * c-typeck.c (array_to_pointer_conversion): Do not built
19215 ADDR_EXPRs of arrays of pointer-to-element type.
19216 * c-gimplify.c (c_gimplify_expr): Revert change fixing
19217 up wrong ADDR_EXPRs after-the-fact.
19218 * c-common.c (strict_aliasing_warning): Strip pointer
19219 conversions for obtaining the original type.
19220 * builtins.c (fold_builtin_memset): Handle array types.
19221 (fold_builtin_memory_op): Handle folded POINTER_PLUS_EXPRs
19222 and array types
19223
19224 2009-05-03 Richard Guenther <rguenther@suse.de>
19225
19226 PR middle-end/23329
19227 * tree-ssa.c (useless_type_conversion_p_1): Use get_deref_alias_set.
19228 Do not lose casts from array types with unknown extent to array
19229 types with known extent.
19230 * tree-ssa-copy.c (may_propagate_copy): Remove hack checking for
19231 alias set compatibility.
19232
19233 2009-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
19234
19235 * flags.h (extra_warnings): Delete.
19236 * toplev.c (process_options): Handle Wuninitialized here.
19237 * opts.c (extra_warnings): Delete.
19238 (set_Wextra): Delete.
19239 (common_handle_option): -Wextra can be handled automatically.
19240 * c-opts.c (c_common_handle_option): Delete obsolete code.
19241 (c_common_post_options): Simplify comment.
19242 * common.opt (W): Add Var.
19243 (Wextra): Add Var.
19244 (Wuninitialized): Initialize to -1.
19245
19246 2009-05-03 Adam Nemet <anemet@caviumnetworks.com>
19247 Richard Guenther <rguenther@suse.de>
19248
19249 * expr.c (get_def_for_expr): New function.
19250 (expand_expr_real_1) <PLUS_EXPR, MINUS_EXPR>: Adjust to work with
19251 SSA rather than trees.
19252 <MULT_EXPR>: Likewise. Use subexp0 and subexp1 instead of
19253 TREE_OPERAND (exp, 0) and TREE_OPERAND (exp, 1).
19254
19255 2009-05-03 Joseph Myers <joseph@codesourcery.com>
19256
19257 * c-common.c (reswords): Add _Imaginary.
19258 * c-common.c (enum rid): Add RID_IMAGINARY.
19259
19260 2009-05-03 Paolo Bonzini <bonzini@gnu.org>
19261
19262 * tree.h (TYPE_VECTOR_OPAQUE): Fix documentation.
19263 Patch by Richard Guenther.
19264
19265 2009-05-03 Anatoly Sokolov <aesok@post.ru>
19266
19267 * defaults.h (FRAME_POINTER_REQUIRED): Provide default.
19268 * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
19269 * config/alpha/alpha.h (FRAME_POINTER_REQUIRED): Delete.
19270 * config/s390/s390.h (FRAME_POINTER_REQUIRED): Delete.
19271 * config/spu/spu.h (FRAME_POINTER_REQUIRED): Delete.
19272 * config/sh/sh.h (FRAME_POINTER_REQUIRED): Delete.
19273 * config/pdp11/pdp11.h (FRAME_POINTER_REQUIRED): Delete.
19274 * config/stormy16/stormy16.h (FRAME_POINTER_REQUIRED): Delete.
19275 * config/m68hc11/m68hc11.h (FRAME_POINTER_REQUIRED): Delete.
19276 * config/iq2000/iq2000.h (FRAME_POINTER_REQUIRED): Delete.
19277 * config/mn10300/mn10300.h (FRAME_POINTER_REQUIRED): Delete.
19278 * config/ia64/ia64.h (FRAME_POINTER_REQUIRED): Delete.
19279 * config/m68k/m68k.h (FRAME_POINTER_REQUIRED): Delete.
19280 * config/rs6000/rs6000.h (FRAME_POINTER_REQUIRED): Delete.
19281 * config/picochip/picochip.h (FRAME_POINTER_REQUIRED): Delete.
19282 * config/mcore/mcore.h (FRAME_POINTER_REQUIRED): Delete.
19283 * config/h8300/h8300.h (FRAME_POINTER_REQUIRED): Delete.
19284 * config/v850/v850.h (FRAME_POINTER_REQUIRED): Delete.
19285
19286 2009-05-02 Richard Guenther <rguenther@suse.de>
19287
19288 PR tree-optimization/39940
19289 * tree-ssa-pre.c (eliminate): Make sure we may propagate before
19290 doing so.
19291
19292 2009-05-02 Richard Guenther <rguenther@suse.de>
19293
19294 PR middle-end/40001
19295 * tree-ssa.c (execute_update_addresses_taken): Properly check
19296 if we can mark a variable DECL_GIMPLE_REG_P.
19297 * gimple.c (is_gimple_reg): Re-order check for DECL_GIMPLE_REG_P
19298 back to the end of the function.
19299 (is_gimple_reg_type): Remove complex type special casing.
19300 * gimplify.c (gimplify_bind_expr): Do not set DECL_GIMPLE_REG_P
19301 if not optimizing.
19302
19303 2009-05-02 Ben Elliston <bje@au.ibm.com>
19304
19305 * doc/collect2.texi (Collect2): Document search path behaviour
19306 when configured with --with-ld.
19307
19308 2009-05-02 Jan Hubicka <jh@suse.cz>
19309
19310 * tree-ssa-coalesce.c (coalesce_cost): Do not take ciritical
19311 parameter; update callers.
19312 (coalesce_cost_edge): EH edges are costier because they needs
19313 splitting even if not critical and even more costier when there are
19314 multiple EH predecestors.
19315
19316 2009-05-02 Jan Hubicka <jh@suse.cz>
19317
19318 * except.c (remove_eh_handler_and_replace): Handle updating after
19319 removing TRY blocks.
19320
19321 2009-05-02 Eric Botcazou <ebotcazou@adacore.com>
19322
19323 * store-motion.c (compute_store_table): Add ENABLE_CHECKING guard.
19324
19325 2009-05-02 Steven Bosscher <steven@gcc.gnu.org>
19326
19327 * varasm.c: Do not include c-pragma.h.
19328 * attribs.c: Do not incude c-common.h.
19329
19330 2009-05-01 Michael Matz <matz@suse.de>
19331
19332 * calls.c (initialize_argument_information): Handle SSA names like
19333 decls with a non MEM_P DECL_RTL.
19334
19335 2009-05-01 Steven Bosscher <steven@gcc.gnu.org>
19336
19337 * ipa-reference.c: Do not include c-common.h, include splay-tree.h.
19338 * ipa-utils.c: Likewise.
19339 * ipa-type-escape.c: Likewise.
19340 * cgraphunit.c Do not include c-common.h.
19341 * ipa-pure-const.c: Likewise.
19342 * tree-if-conv.c: Likewise.
19343 * matrix-reorg.c: Do not include c-common.h and c-tree.h.
19344 * ipa-struct-reorg.c: Likewise.
19345 * tree-nomudflap.c: Likewise.
19346 * tree-ssa-structalias.c: Likewise.
19347
19348 2009-05-01 Steven Bosscher <steven@gcc.gnu.org>
19349
19350 * store-motion.c: Many cleanups to make this pass a first-class
19351 citizen instead of an appendix to gcse load motion. Add TODO list
19352 to make this pass faster/cleaner/better.
19353
19354 (struct ls_expr): Post gcse.c-split cleanups.
19355 Rename to st_expr. Rename "loads" field to "antic_stores". Rename
19356 "stores" field to "avail_stores".
19357 (pre_ldst_mems): Rename to store_motion_mems.
19358 (pre_ldst_table): Rename to store_motion_mems_table.
19359 (pre_ldst_expr_hash): Rename to pre_st_expr_hash, update users.
19360 (pre_ldst_expr_eq): Rename to pre_st_expr_eq, update users.
19361 (ldst_entry): Rename to st_expr_entry, update users.
19362 (free_ldst_entry): Rename to free_st_expr_entry, update users.
19363 (free_ldst_mems): Rename to free_store_motion_mems, update users.
19364 (enumerate_ldsts): Rename to enumerate_store_motion_mems,
19365 update caller.
19366 (first_ls_expr): Rename to first_st_expr, update users.
19367 (next_ls_expr): Rename to next_st_expr, update users.
19368 (print_ldst_list): Rename to print_store_motion_mems. Print names of
19369 fields properly for store motion instead of names inherited from load
19370 motion in gcse.c.
19371 (ANTIC_STORE_LIST, AVAIL_STORE_LIST): Remove.
19372 (LAST_AVAIL_CHECK_FAILURE): Explain what this is. Undefine when we
19373 are done with it.
19374
19375 (ae_kill): Rename to st_kill, update users.
19376 (ae_gen): Rename to st_avloc, update users.
19377 (transp): Rename to st_transp, update users.
19378 (pre_insert_map): Rename to st_insert_map, update users.
19379 (pre_delete_map): Rename to st_delete_map, update users.
19380 (insert_store, build_store_vectors, free_store_memory,
19381 one_store_motion_pass): Update for abovementioned changes.
19382
19383 (gcse_subst_count, gcse_create_count): Remove.
19384 (one_store_motion_pass): New statistics counters "n_stores_deleted"
19385 and "n_stores_created", local variables.
19386
19387 (extract_mentioned_regs, extract_mentioned_regs_1): Rewrite to
19388 use for_each_rtx.
19389
19390 (regvec, compute_store_table_current_insn): Remove.
19391 (reg_set_info, reg_clear_last_set): Remove.
19392 (compute_store_table): Use DF caches instead of local dataflow
19393 solvers.
19394
19395 2009-05-01 Joseph Myers <joseph@codesourcery.com>
19396
19397 * c-objc-common.c (c_tree_printer): Print identifiers with
19398 pp_identifier, not pp_string. Mark "({anonymous})" for
19399 translation.
19400 * c-pretty-print.c (pp_c_ws_string): New.
19401 (pp_c_cv_qualifier, pp_c_type_specifier,
19402 pp_c_specifier_qualifier_list, pp_c_parameter_type_list,
19403 pp_c_storage_class_specifier, pp_c_function_specifier,
19404 pp_c_attributes, pp_c_bool_constant, pp_c_constant,
19405 pp_c_primary_expression, pp_c_postfix_expression,
19406 pp_c_unary_expression, pp_c_shift_expression,
19407 pp_c_relational_expression, pp_c_equality_expression,
19408 pp_c_logical_and_expression, pp_c_logical_or_expression): Mostly
19409 use pp_string and pp_c_ws_string in place of pp_identifier and
19410 pp_c_identifier for non-identifiers. Mark English strings for
19411 translation.
19412 * c-pretty-print.h (pp_c_ws_string): Declare.
19413
19414 2009-04-30 Paul Pluzhnikov <ppluzhnikov@google.com>
19415 Roland McGrath <roland@redhat.com>
19416
19417 * configure.ac (HAVE_LD_BUILDID): New check for ld --build-id support.
19418 (ENABLE_LD_BUILDID): New configuration option.
19419 * gcc.c [HAVE_LD_BUILDID and ENABLE_LD_BUILDID]
19420 (LINK_BUILDID_SPEC): New macro.
19421 (init_spec): If defined, prepend it between LINK_EH_SPEC and
19422 link_spec.
19423 * doc/install.texi: Document --enable-linker-build-id option.
19424 * configure: Rebuild.
19425 * config.in: Rebuild.
19426
19427 2009-04-30 Adam Nemet <anemet@caviumnetworks.com>
19428
19429 * config/mips/mips.h (FRAME_GROWS_DOWNWARD,
19430 MIPS_GP_SAVE_AREA_SIZE): Define new macros.
19431 (STARTING_FRAME_OFFSET): Return 0 if FRAME_GROWS_DOWNWARD. Use
19432 MIPS_GP_SAVE_AREA_SIZE.
19433 * config/mips/mips.c (struct mips_frame_info): Update comment
19434 before arg_pointer_offset and hard_frame_pointer_offset.
19435 (mips_compute_frame_info): Update diagram before function: to
19436 correctly use stack_pointer_rtx for fp_sp_offset and gp_sp_offset, to
19437 indicate the position of frame_pointer_rtx with -fstack-protector and
19438 to show args_size. Don't allocate cprestore area for leaf functions
19439 if FRAME_GROWS_DOWNWARD. Use MIPS_GP_SAVE_AREA_SIZE to set
19440 cprestore_size.
19441 (mips_initial_elimination_offset): Update for FRAME_GROWS_DOWNWARD.
19442
19443 2009-04-30 Michael Matz <matz@suse.de>
19444
19445 PR tree-optimization/39955
19446 * config/rs6000/rs6000.c (rs6000_check_sdmode): Also check SSA_NAMEs.
19447
19448 2009-04-30 Dave Korn <dave.korn.cygwin@gmail.com>
19449
19450 * ira.c (setup_cover_and_important_classes): Use safe macro
19451 REG_CLASS_FOR_CONSTRAINT instead of calling regclass_for_constraint
19452 directly.
19453 * genpreds.c (write_tm_preds_h): Output suitable definition of
19454 REG_CLASS_FOR_CONSTRAINT.
19455
19456 2009-04-30 Rafael Avila de Espindola <espindola@google.com>
19457
19458 * alloc-pool.c (alloc_pool_descriptor): Use an insert_opion value
19459 instead of an int.
19460 * bitmap.c (bitmap_descriptor): Likewise.
19461 * ggc-common.c (loc_descriptor): Likewise.
19462 * varray.c (varray_descriptor): Likewise.
19463 * vec.c (vec_descriptor): Likewise.
19464
19465 2009-04-30 Eric Botcazou <ebotcazou@adacore.com>
19466
19467 * Makefile.in (dce.o): Add $(EXCEPT_H).
19468 * dce.c: Include except.h and delete redundant vector definitions.
19469 (deletable_insn_p): Return false for non-call insns that can throw
19470 if DF is running.
19471
19472 2009-04-30 Steven Bosscher <steven@gcc.gnu.org>
19473
19474 * gcse.c (ae_gen): Remove.
19475 (can_assign_to_reg_p): Rename to can_assign_to_reg_without_clobbers_p
19476 and make non-static function to make it available in store-motion.c.
19477 Update call sites with search-and-replace.
19478 (enumerate_ldsts, reg_set_info, reg_clear_last_set, store_ops_ok,
19479 extract_mentioned_regs, extract_mentioned_regs_helper,
19480 find_moveable_store, compute_store_table, load_kills_store, find_loads,
19481 store_killed_in_insn, store_killed_after, store_killed_before,
19482 build_store_vectors, insert_insn_start_basic_block, insert-store,
19483 remove_reachable_equiv_notes, replace_store_insn, delete_store,
19484 free_store_memory, one_store_motion_pass, gate_rtl_store_motion,
19485 execute_rtl_store_motion, pass_rtl_store_motion): Move to...
19486 * store-motion.c: ...new file. Also copy data structures from gcse.c
19487 and clean up to remove parts not used by store motion.
19488 * rtl.h (can_assign_to_reg_without_clobbers_p): Add prototype.
19489 * Makefile.in (store-motion.o): New rule. Add to OBJS-common.
19490
19491 2009-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19492
19493 PR target/38571
19494 * config/arm/arm.h (FUNCTION_BOUNDARY): Set to 16 for thumb
19495 when optimizing for size.
19496
19497 2009-04-30 Hans-Peter Nilsson <hp@axis.com>
19498
19499 * gcse.c (gcse_constant_p): Fix typo in last change.
19500
19501 2009-04-30 Rafael Avila de Espindola <espindola@google.com>
19502
19503 * plugin.c: Include plugin-version.h only if ENABLE_PLUGIN is defined.
19504
19505 2009-04-30 Andreas Krebbel <krebbel1@de.ibm.com>
19506
19507 * gcse.c (gcse_constant_p): Make sure the constant is sharable.
19508
19509 2009-04-29 James E. Wilson <wilson@codesourcery.com>
19510
19511 * config/mips/mips.c (mips_add_offset): Use gen_int_mode for
19512 CONST_HIGH_PART result.
19513
19514 2009-04-29 Anatoly Sokolov <aesok@post.ru>
19515
19516 * config/avr/avr.c (initial_elimination_offset): Rename to
19517 avr_initial_elimination_offset.
19518 (frame_pointer_required_p): Rename to avr_frame_pointer_required_p,
19519 change return type to bool.
19520 (avr_can_eliminate): New function.
19521 * config/avr/avr.h (CAN_ELIMINATE): Use avr_can_eliminate.
19522 (FRAME_POINTER_REQUIRED): Use avr_frame_pointer_required_p.
19523 (INITIAL_ELIMINATION_OFFSET): Use avr_initial_elimination_offset.
19524 * config/avr/avr-protos.h (initial_elimination_offset): Rename to
19525 avr_initial_elimination_offset.
19526 (frame_pointer_required_p): Rename to avr_frame_pointer_required_p.
19527 (avr_initial_elimination_offset): Define.
19528
19529 2009-04-29 Eric Botcazou <ebotcazou@adacore.com>
19530 Steven Bosscher <steven@gcc.gnu.org>
19531
19532 PR rtl-optimization/39938
19533 * Makefile.in (cfgrtl.o): Add $(INSN_ATTR_H).
19534 * cfgrtl.c: Include insn-attr.h.
19535 (rest_of_pass_free_cfg): New function.
19536 (pass_free_cfg): Use rest_of_pass_free_cfg as execute function.
19537 * resource.c (init_resource_info): Remove call to df_analyze.
19538
19539 2009-04-29 Richard Guenther <rguenther@suse.de>
19540
19541 PR target/39943
19542 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Only
19543 allow conversion to signed integers.
19544
19545 2009-04-29 Richard Guenther <rguenther@suse.de>
19546
19547 * tree-cfg.c (verify_gimple_assign_binary): Allow vector
19548 shifts of floating point vectors if the shift amount is
19549 a constant multiple of the element size.
19550
19551 2009-04-29 Andreas Krebbel <krebbel1@de.ibm.com>
19552 Michael Matz <matz@suse.de>
19553
19554 PR middle-end/39927
19555 PR bootstrap/39929
19556 * tree-outof-ssa.c (emit_partition_copy): New function.
19557 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
19558 insert_part_to_rtx_on_edge): Perform the partition base var
19559 copy using emit_partition_copy.
19560 (insert_value_copy_on_edge): Convert constants to the right mode.
19561 (insert_rtx_to_part_on_edge): Add UNSIGNEDSRCP parameter.
19562 (elim_create): Pass the sign of the src to insert_rtx_to_part_on_edge.
19563
19564 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
19565
19566 * config/bfin/bfin.c (bfin_optimize_loop): If we need a scratch reg,
19567 scan backwards to try to find a constant to initialize it.
19568
19569 * config/bfin/bfin.c (bfin_optimize_loop): When looking for the last
19570 insn before the loop_end instruction, don't look past labels.
19571
19572 2009-04-29 Richard Guenther <rguenther@suse.de>
19573
19574 PR middle-end/39937
19575 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do not
19576 loose type conversions.
19577 (forward_propagate_addr_expr): Fix tuplification bug. Remove
19578 stmts only if there are no uses of its definition.
19579
19580 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
19581
19582 * config/bfin/bfin.h (splitting_loops): Declare.
19583 * config/bfin/bfin-protos.h (WA_05000257, WA_05000283, WA_05000315):
19584 Reorder bit definitions to be ascending.
19585 (WA_LOAD_LCREGS, ENABLE_WA_LOAD_LCREGS): New macros.
19586 * config/bfin/bfin.c (splitting_loops): New variable.
19587 (bfin_cpus): Add WA_LOAD_LCREGS as needed.
19588 (struct loop_info): Remove members INIT and LOOP_INIT.
19589 (bfin_optimize_loop): Don't set them. Reorder the code that generates
19590 the LSETUP sequence. Allow LC to be loaded from any register, but
19591 also add a case to push/pop a PREG scratch if ENABLE_WA_LOAD_LCREGS.
19592 (bfin_reorg_loops): When done, split all BB_ENDs with splitting_loops
19593 set to 1.
19594 * config/bfin/bfin.md (loop_end splitter): Use splitting_loops instead
19595 of reload_completed.
19596
19597 From Jie Zhang:
19598 * config/bfin/bfin.md (movsi_insn): Refine constraints.
19599
19600 2009-04-29 Rafael Avila de Espindola <espindola@google.com>
19601
19602 * Makefile.in (PLUGIN_VERSION_H): New.
19603 (OBJS-common): Remove plugin-version.o.
19604 (plugin.o): Depend on (PLUGIN_VERSION_H).
19605 (plugin-version.o): Remove.
19606 * configure: Regenerate
19607 * configure.ac: Create plugin-version.h.
19608 * gcc-plugin.h (plugin_gcc_version): Remove.
19609 (plugin_default_version_check): Change signature.
19610 * plugin-version.c: Remove.
19611 * plugin.c: Include plugin-version.h.
19612 (str_plugin_gcc_version_name): Remove.
19613 (try_init_one_plugin): Pass gcc version to plugin_init.
19614 (plugin_default_version_check): Both gcc and plugin versions are now
19615 arguments.
19616
19617 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
19618
19619 * config/bfin/bfin.c (bfin_optimize_loop): Unify handling of
19620 problematic last insns. Test for TYPE_CALL rather than CALL_P.
19621 Remove special case testing for last insn of inner loops. Don't fail
19622 if the loop ends with a jump, emit an extra nop instead.
19623
19624 * config/bfin/bfin.c (bfin_register_move_cost): Test for subsets of
19625 DREGS rather than comparing directly. Remove code that tries to
19626 account for latencies.
19627
19628 2009-04-29 Richard Guenther <rguenther@suse.de>
19629
19630 PR tree-optimization/39941
19631 * tree-ssa-pre.c (eliminate): Schedule update-ssa after
19632 eliminating an indirect call.
19633
19634 2009-04-29 Richard Guenther <rguenther@suse.de>
19635
19636 * tree-cfg.c (verify_types_in_gimple_reference): Add require_lvalue
19637 parameter. Allow invariants as base if !require_lvalue.
19638 (verify_gimple_assign_single): Adjust.
19639
19640 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
19641
19642 * config/bfin/bfin.md (sp_or_sm, spm_string, spm_name): New macro.
19643 (ss<spm_name>hi3, ss<spm_name>hi3_parts, ss<spm_name>hi3_low_parts,
19644 ss<spm_name_hi3_high_parts): New patterns, replacing ssaddhi3,
19645 ssubhi3, ssaddhi3_parts and sssubhi3_parts.
19646 (flag_mulhi3_parts): Produce a HImode output rather than trying to set
19647 a VEC_SELECT.
19648 * config/bfin/bfin.c (bfin_expand_builtin,
19649 case BFIN_BUILTIN_CPLX_SQU): Adjust accordingly.
19650
19651 2009-04-28 Richard Guenther <rguenther@suse.de>
19652
19653 * tree-vect-loop.c (get_initial_def_for_induction): Use
19654 correct types for pointer increment.
19655
19656 2009-04-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19657
19658 * toplev.c (print_version): Update GMP version string calculation.
19659
19660 2009-04-28 Eric Botcazou <ebotcazou@adacore.com>
19661
19662 PR rtl-optimization/39938
19663 * resource.c (init_resource_info): Add call to df_analyze.
19664
19665 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
19666
19667 * config/alpha/alpha.md (usegp): Cast the result of
19668 alpha_find_lo_sum_using_gp to enum attr_usegp.
19669 * config/alpha/alpha.c (override_options): Remove end-of-structure
19670 marker element from cpu_table. Use array size of cpu_table to handle
19671 -mcpu and -mtune options.
19672 (tls_symbolic_operand_type): Change 0 to TLS_MODEL_NONE.
19673
19674 2009-04-28 Joseph Myers <joseph@codesourcery.com>
19675
19676 * config.gcc (powerpc*-*-* | rs6000-*-*): Add
19677 rs6000/option-defaults.h to tm_file. Support cpu_32, cpu_64,
19678 tune_32 and tune_64.
19679 * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
19680 support on PowerPC.
19681 * config/rs6000/rs6000.h (OPTION_DEFAULT_SPECS): Move to ...
19682 * config/rs6000/option-defaults.h: ... here. New file.
19683 (OPT_64, OPT_32): Define.
19684 (MASK_64BIT): Define to 0 if not already defined.
19685 (OPT_ARCH64, OPT_ARCH32): Define.
19686 (OPTION_DEFAULT_SPECS): Add entries for cpu_32, cpu_64, tune_32
19687 and tune_64.
19688
19689 2009-04-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19690
19691 * config/arm/arm.c (arm_override_options): Emit error on using
19692 fpa with AAPCS.
19693
19694 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
19695
19696 PR rtl-optimization/39914
19697 * ira-conflicts.c (ira_build_conflicts): Prohibit call used
19698 registers for allocnos created from user-defined variables only
19699 when not optimizing.
19700
19701 2009-04-28 Richard Guenther <rguenther@suse.de>
19702
19703 PR middle-end/39937
19704 * fold-const.c (fold_binary): Use distribute_real_division only
19705 on float types.
19706
19707 2009-04-28 Steve Ellcey <sje@cup.hp.com>
19708
19709 * config.gcc (hppa*64*-*-hpux11*): Set use_gcc_stdint and
19710 add hpux-stdint.h to tm_file.
19711 (hppa[12]*-*-hpux11*): Ditto.
19712 (ia64*-*-hpux*): Ditto.
19713 * config/hpux-stdint.h: New.
19714 * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Set
19715 __STDC_EXT__ for all compiles.
19716 * config/pa/pa-hpux.h: Ditto.
19717 * config/pa/pa-hpux10.h: Ditto.
19718 * config/pa/pa-hpux11.h: Ditto.
19719
19720 2009-04-28 Catherine Moore <clm@codesourcery.com>
19721
19722 * debug.h (set_name): Add comment.
19723
19724 2009-04-28 Andrew Pinski <pinskia@gmail.com>
19725
19726 PR target/39929
19727 * config/darwin.c (machopic_gen_offset): Check
19728 currently_expanding_to_rtl if current_ir_type returns IR_GIMPLE.
19729 * config/arm/arm.c (require_pic_register): Likewise.
19730
19731 2009-04-28 Paolo Bonzini <bonzini@gnu.org>
19732
19733 * config/m32c/m32c.c (TARGET_PROMOTE_FUNCTION_RETURN,
19734 m32c_promote_function_return, TARGET_PROMOTE_PROTOTYPES,
19735 m32c_promote_prototypes): Delete.
19736
19737 2009-04-28 Michael Matz <matz@suse.de>
19738
19739 PR middle-end/39922
19740 * tree-outof-ssa.c (insert_value_copy_on_edge): Don't convert
19741 constants.
19742
19743 2009-04-28 Richard Guenther <rguenther@suse.de>
19744
19745 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Fix type error.
19746
19747 2009-04-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19748
19749 * config/arm/arm-cores.def: Add support for arm1156t2f-s.
19750 * doc/invoke.texi (ARM Options): Document support for arm1156t2f-s.
19751 * config/arm/arm-tune.md: Regenerate.
19752
19753 2009-04-28 Alexander Monakov <amonakov@ispras.ru>
19754
19755 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not attempt to delete a
19756 block if there are complex incoming edges.
19757 (sel_merge_blocks): Remove useless assert.
19758 (sel_redirect_edge_and_branch): Check that edge was redirected.
19759 * sel-sched-ir.h (_eligible_successor_edge_p): Remove assert.
19760 (sel_find_rgns): Delete declaration.
19761 * sel-sched.c (purge_empty_blocks): Attempt to remove first block of
19762 the region when it is not a preheader.
19763
19764 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
19765
19766 PR c/39323
19767 * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Sync with elfos.h
19768
19769 2009-04-28 Richard Guenther <rguenther@suse.de>
19770
19771 * tree.h (SSA_NAME_VALUE): Remove.
19772 (struct tree_ssa_name): Remove value_handle member.
19773 * tree-vrp.c (execute_vrp): Initialize/free the value-handle
19774 array for jump threading.
19775 * tree-ssa-propagate.c (ssa_prop_init): Do not initialize
19776 SSA_NAME_VALUEs.
19777 * print-tree.c (print_node): Do not dump SSA_NAME_VALUEs.
19778 * tree-flow.h (threadedge_initialize_values): Declare.
19779 (threadedge_finalize_values): Likewise.
19780 * tree-ssa-threadedge.c (ssa_name_values): New global variable.
19781 (SSA_NAME_VALUE): Define.
19782 (threadedge_initialize_values): New function.
19783 (threadedge_finalize_values): Likewise.
19784 * tree-ssa-dom.c (ssa_name_values): New global variable.
19785 (SSA_NAME_VALUE): Define.
19786 (tree_ssa_dominator_optimize): Initialize/free the value-handle array.
19787
19788 2009-04-28 Ira Rosen <irar@il.ibm.com>
19789
19790 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
19791 Use REPORT_VECTORIZED_LOCATIONS instead
19792 REPORT_VECTORIZED_LOOPS.
19793 * tree-vectorizer.c (vect_verbosity_level): Make static.
19794 (vect_loop_location): Rename to vect_location.
19795 (vect_set_verbosity_level): Update comment.
19796 (vect_set_dump_settings): Use REPORT_VECTORIZED_LOCATIONS
19797 and vect_location.
19798 (vectorize_loops): Fix comment. Use REPORT_VECTORIZED_LOCATIONS
19799 and vect_location. Use REPORT_UNVECTORIZED_LOCATIONS
19800 instead REPORT_UNVECTORIZED_LOOPS.
19801 * tree-vectorizer.h (enum vect_def_type): Rename vect_invariant_def
19802 and vect_loop_def to vect_external_def and vect_internal_def.
19803 (enum verbosity_levels): Rename REPORT_VECTORIZED_LOOPS
19804 and REPORT_UNVECTORIZED_LOOPS to REPORT_VECTORIZED_LOCATIONS and
19805 REPORT_UNVECTORIZED_LOCATIONS.
19806 (enum vect_relevant): Update comment. Rename vect_unused_in_loop
19807 and vect_used_in_loop and to vect_unused_in_scope and
19808 vect_used_in_scope.
19809 (STMT_VINFO_RELEVANT_P): Use vect_unused_in_scope.
19810 (vect_verbosity_level): Remove declaration.
19811 (vect_analyze_operations): Likewise.
19812 (vect_analyze_stmt): Declare.
19813 * tree-vect-loop.c (vect_determine_vectorization_factor): Use
19814 REPORT_UNVECTORIZED_LOCATIONS.
19815 (vect_get_loop_niters): Fix indentation.
19816 (vect_analyze_loop_form): Use REPORT_UNVECTORIZED_LOCATIONS.
19817 (vect_analyze_loop_operations): New function.
19818 (vect_analyze_loop): Call vect_analyze_loop_operations instead of
19819 vect_analyze_operations.
19820 (vect_is_simple_reduction): Use new names.
19821 (vectorizable_live_operation, vect_transform_loop): Likewise.
19822 * tree-vect-data-refs.c (vect_check_interleaving): Add a return value
19823 to specify whether the data references can be a part of interleaving
19824 chain.
19825 (vect_analyze_data_ref_dependence): Use new names.
19826 (vect_analyze_data_refs_alignment, vect_analyze_data_refs): Likewise.
19827 (vect_create_addr_base_for_vector_ref): Remove redundant code.
19828 * tree-vect-patterns.c (widened_name_p): Use new names.
19829 (vect_recog_dot_prod_pattern): Likewise.
19830 * tree-vect-stmts.c (vect_stmt_relevant_p): Use new names.
19831 (process_use, vect_mark_stmts_to_be_vectorized,
19832 vect_model_simple_cost, vect_model_store_cost,
19833 vect_get_vec_def_for_operand, vect_get_vec_def_for_stmt_copy,
19834 vectorizable_call, vectorizable_conversion, vectorizable_assignment,
19835 vectorizable_operation, vectorizable_type_demotion,
19836 vectorizable_type_promotion, vectorizable_store, vectorizable_load,
19837 vectorizable_condition): Likewise.
19838 (vect_analyze_operations): Split into vect_analyze_loop_operations
19839 and ...
19840 (vect_analyze_stmt): ... new function.
19841 (new_stmt_vec_info): Use new names.
19842 (vect_is_simple_use): Use new names and fix comment.
19843 * tree-vect-slp.c (vect_get_and_check_slp_defs): Use new names.
19844 (vect_build_slp_tree, vect_analyze_slp, vect_schedule_slp): Likewise.
19845
19846 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
19847
19848 PR target/39911
19849 * config/i386/i386.c (print_operand) ['Z']: Handle floating point
19850 and integer modes for x87 operands. Do not ICE for unsupported size,
19851 generate error instead. Generate error for unsupported operand types.
19852 ['z']: Do not handle HImode memory operands specially. Warning
19853 for floating-point operands. Fallthru to 'Z' for unsupported operand
19854 types. Do not ICE for unsupported size, generate error instead.
19855 (output_387_binary_op): Use %Z to output operands.
19856 (output_fp_compare): Ditto.
19857 (output_387_reg_move): Ditto.
19858
19859 2009-04-28 Ben Elliston <bje@au.ibm.com>
19860
19861 PR c++/35652
19862 Revert:
19863
19864 2009-03-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
19865
19866 * builtins.c (c_strlen): Do not warn here.
19867 * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
19868 * c-common.c (pointer_int_sum): Take an explicit location.
19869 Warn about offsets out of bounds.
19870 * c-common.h (pointer_int_sum): Adjust declaration.
19871
19872 2009-04-27 Ian Lance Taylor <iant@google.com>
19873
19874 * collect2.c (is_ctor_dtor): Change type of ret field in struct
19875 names to symkind.
19876 * dce.c (run_fast_df_dce): Change type of old_flags to int.
19877 * df-core.c (df_set_flags): Change return type to int. Change
19878 type of old_flags to int.
19879 (df_clear_flags): Likewise.
19880 * df-scan.c (df_def_record_1): Change 0 to VOIDmode.
19881 (df_get_conditional_uses): Likewise.
19882 * df.h (df_set_flags, df_clear_flags): Update declarations.
19883 * dwarf2out.c (struct indirect_string_node): Change type of form
19884 field to enum dwarf_form.
19885 (AT_string_form): Change return type to enum dwarf_form.
19886 * fixed-value.c (fixed_compare): Add cast to enum type.
19887 * fwprop.c (update_df): Change 0 to VOIDmode.
19888 * gensupport.c: Change 0 to UNKNOWN.
19889 * gimple.h (gimple_cond_code): Add cast to enum type.
19890 * haifa-sched.c (reemit_notes): Add cast to enum type.
19891 * hooks.c (hook_int_void_no_regs): Remove function.
19892 * hooks.h (hook_int_void_no_regs): Remove declaration.
19893 * optabs.c (expand_widen_pattern_expr): Change 0 to VOIDmode.
19894 * predict.c (combine_predictions_for_insn): Add casts to enum type.
19895 * real.c (real_arithmetic): Add cast to enum type.
19896 (real_compare): Likewise.
19897 * target.h (struct gcc_target): Change return type of
19898 branch_target_register_class to enum reg_class.
19899 * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Define as
19900 default_branch_target_register_class.
19901 * targhooks.c (default_branch_target_register_class): New function.
19902 * targhooks.h (default_branch_target_register_class): Declare.
19903 * tree-data-ref.c (print_direction_vector): Add cast to enum type.
19904 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Remove
19905 cast to int.
19906 * tree-vect-loop.c (vect_create_epilog_for_reduction): Change 0 to
19907 ERROR_MARK.
19908 * tree-vect-slp.c (vect_build_slp_tree): Change 0 to
19909 vect_uninitialized_def. Change 0 to ERROR_MARK.
19910 * tree-vect-stmts.c (supportable_widening_operation): Don't
19911 initialize icode1 and icode2.
19912 * tree-vectorizer.h (enum vect_def_type): Add vect_uninitialized_def.
19913 * config/sol2-c.c (cmn_err_length_specs): Change 0 to FMT_LEN_none
19914 and to STD_C89.
19915 (cmn_err_flag_specs): Change 0 to STD_C89.
19916 (cmn_err_char_table): Likewise.
19917 * config/arm/arm.c (get_arm_condition_code): Change type of code
19918 to enum arm_cond_code.
19919 (IWMMXT_BUILTIN): Change 0 to UNKNOWN.
19920 (IWMMXT_BUILTIN2): Likewise.
19921 (neon_builtin_type_bits): Don't define typedef.
19922 (neon_builtin_datum): Change type of bits field to int.
19923 (arm_expand_neon_args): Add cast to enum type.
19924 * config/ia64/ia64.c (tls_symbolic_operand_type): Change 0 to
19925 TLS_MODEL_NONE.
19926 * config/i386/i386.c (bdesc_multi_arg): Change 0 to UNKNOWN. Add
19927 casts to enum type.
19928 * config/mips/mips.c (LOONGSON_BUILTIN_ALIAS): Change 0 to
19929 MIPS_FP_COND_f.
19930 * config/mips/mips.md (jal_macro): Return enum constant.
19931 (single_insn): Likewise.
19932 * config/rs6000/rs6000.c (bdesc_altivec_preds): Change 0 to
19933 CODE_FOR_nothing.
19934 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
19935 casts to enum type.
19936 * config/s390/s390.c (s390_tune_flags): Change type to int.
19937 (s390_arch_flags): Likewise.
19938 (s390_handle_arch_option): Change flags field of struct pta to int.
19939 * config/s390/s390.h (s390_tune_flags): Update declaration.
19940 (s390_arch_flags): Likewise.
19941 * config/sh/sh.c (prepare_move_operands): Compare
19942 tls_symbolic_operand result with enum constant.
19943 (sh_reorg): Change PUT_MODE to PUT_REG_NOTE_KIND.
19944 (sh_expand_prologue): Add cast to enum type.
19945 (sh_expand_epilogue): Likewise.
19946 (tls_symbolic_operand): Change return type to enum tls_model.
19947 (fpscr_set_from_mem): Add cast to enum type.
19948 (legitimize_pic_address): Compare tls_symbolic_operand result with
19949 enum constant.
19950 (sh_target_reg_class): Change return type to enum reg_class.
19951 * config/sh/sh.h (OVERRIDE_OPTIONS): Change CPU_xxx to
19952 PROCESSOR_xxx.
19953 * config/sh/sh-protos.h (tls_symbolic_operand): Update declaration.
19954 * config/sparc/sparc.c (sparc_override_options): Add cast to enum type.
19955 * config/sparc/sparc.md (empty_delay_slot): Return enum constant.
19956 (pic, calls_alloca, calls_eh_return, leaf_function): Likewise.
19957 (delayed_branch, tls_call_delay): Likewise.
19958 (eligible_for_sibcall_delay): Likewise.
19959 (eligible_for_return_delay): Likewise.
19960 * config/spu/spu.c (expand_builtin_args): Add cast to enum type.
19961 (spu_expand_builtin_1): Likewise.
19962
19963 * c-typeck.c (convert_for_assignment): Issue -Wc++-compat warnings
19964 for all types of conversions.
19965 (output_init_element): Issue -Wc++-compat warning if needed when
19966 initializing a bitfield with enum type.
19967 * c-parser.c (c_parser_expression): Set original_type to
19968 original_type of right hand operand of comma operator.
19969
19970 2009-04-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19971
19972 * doc/c-tree.texi (Types, Functions, Expression trees): Fix
19973 grammar nits.
19974 * doc/cfg.texi (Maintaining the CFG, Liveness information): Likewise.
19975 * doc/cpp.texi (Standard Predefined Macros)
19976 (Implementation-defined behavior): Likewise.
19977 * doc/extend.texi (Function Attributes, Type Attributes): Likewise.
19978 * doc/gimple.texi (GIMPLE Exception Handling)
19979 (@code{GIMPLE_ASSIGN}): Likewise.
19980 * doc/install.texi (Prerequisites, Configuration, Specific): Likewise.
19981 * doc/invoke.texi (Warning Options, Optimize Options)
19982 (AVR Options, Darwin Options): Likewise.
19983 (Optimize Options): Reformulate -fwhole-program description.
19984 * doc/loop.texi (Lambda): Likewise.
19985 * doc/md.texi (Output Template, Define Constraints)
19986 (Standard Names, Insn Splitting): Likewise.
19987 * doc/options.texi (Option properties): Likewise.
19988 * doc/passes.texi (Tree-SSA passes): Likewise.
19989 * doc/rtl.texi (Side Effects, Assembler, Insns): Likewise.
19990 * doc/tm.texi (Register Classes, Old Constraints, Scalar Return)
19991 (File Names and DBX): Likewise.
19992 * doc/trouble.texi (Incompatibilities): Likewise.
19993
19994 2009-04-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
19995
19996 * spu.c (spu_machine_dependent_reorg): Make sure branch label on hint
19997 instruction is correct.
19998
19999 2009-04-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
20000
20001 Allow non-constant arguments to conversion intrinsics.
20002 * spu-protos.h (exp2_immediate_p, spu_gen_exp2): Declare.
20003 * predicates.md (spu_inv_exp2_operand, spu_exp2_operand): New.
20004 * spu.c (print_operand): Handle 'v' and 'w'.
20005 (exp2_immediate_p, spu_gen_exp2): Define.
20006 * spu-builtins.def (spu_convts, spu_convtu, spu_convtf_0,
20007 spu_convtf_1): Update parameter descriptions.
20008 * spu-builtins.md (spu_csflt, spu_cuflt, spu_cflts, spu_cfltu): Update.
20009 * constraints.md ('v', 'w'): New.
20010 * spu.md (UNSPEC_CSFLT, UNSPEC_CFLTS, UNSPEC_CUFLT, UNSPEC_CFLTU):
20011 Remove.
20012 (i2f, I2F): New define_mode_attr.
20013 (floatsisf2, floatv4siv4sf2, fix_truncsfsi2, fix_truncv4sfv4si2,
20014 floatunssisf2, floatunsv4siv4sf2, fixuns_truncsfsi2,
20015 fixuns_truncv4sfv4si2): Update to use mode attribute.
20016 (float<mode><i2f>2_mul, float<mode><i2f>2_div,
20017 fix_trunc<mode><f2i>2_mul, floatuns<mode><i2f>2_mul,
20018 floatuns<mode><i2f>2_div, fixuns_trunc<mode><f2i>2_mul): New
20019 patterns for combine.
20020
20021 2009-04-27 Steven Bosscher <steven@gcc.gnu.org>
20022
20023 * dbgcnt.def (cprop1, cprop2, gcse, jump_bypass): Remove
20024 (cprop, hoist, pre, store_motion): New debug counters.
20025 * tree-pass.h (pass_tracer): Move to list of gimple passes, it
20026 is not an RTL pass anymore.
20027 (pass_profiling): Remove extern decl for pass removed in 2005.
20028 (pass_gcse, pass_jump_bypass): Remove.
20029 * final.c (rest_of_clean_state): Set flag_rerun_cse_after_global_opts
20030 to 0 for clean state.
20031 * toplev.h (flag_rerun_cse_after_global_opts): Add extern declaration.
20032 * cse.c (gate_handle_cse_after_global_opts,
20033 rest_of_handle_cse_after_global_opts): New functions.
20034 (pass_cse_after_global_opts): New pass, does local CSE.
20035 * timevar.def (TV_GCSE, TV_CPROP1, TV_CPROP2, TV_BYPASS): Remove.
20036 (TV_CPROP): New timevar.
20037 * gcse.c (flag_rerun_cse_after_global_opts): New global variable.
20038 (run_jump_opt_after_gcse, max_gcse_regno): Remove global vars.
20039 (gcse_main, recompute_all_luids): Remove.
20040 (compute_hash_table_work): Call max_reg_num instead of reading
20041 max_gcse_regno.
20042 (cprop_jump): Don't set run_jump_opt_after_gcse.
20043 (constprop_register): Always allow to alter jumps.
20044 (cprop_insn): Likewise.
20045 (do_local_cprop): Likewise.
20046 (local_cprop_pass): Likewise. Return non-zero if something changed.
20047 (cprop): Remove function, fold interesting bits into one_cprop_pass.
20048 (find_implicit_sets): Add note about missed optimization opportunity.
20049 (one_cprop_pass): Rewrite to be "the" CPROP pass, called from the
20050 pass_rtl_cprop execute function.
20051 Don't bother tracking the pass number, each pass gets its own dumpfile
20052 now anyway.
20053 Always allow to alter jumpsand bypass jumps.
20054 (bypass_block): Don't ignore regno >= max_gcse_regno, find_bypass_set
20055 will just find no suitable set.
20056 (pre_edge_insert): Fix dumping, this function is for PRE only.
20057 (one_pre_gcse_pass): Rewrite to be "the" PRE pass, called from the
20058 pass_rtl_pre execute function.
20059 (hoist_code): Return non-zero if something changed. Keep track of
20060 substitutions and insertions for statistics gathering similar to PRE.
20061 (one_code_hoisting_pass): Rewrite to be "the" code hoisting pass,
20062 called from the pass_rtl_hoist execute function. Show pass statistics.
20063 (compute_store_table): Use max_reg_num directly instead of using the
20064 formerly global max_gcse_regno.
20065 (build_store_vectors): Likewise.
20066 (replace_store_insn): Fix dumping.
20067 (store_motion): Rename to ...
20068 (one_store_motion_pass): ... this. Rewrite to be "the" STORE_MOTION
20069 pass, called from the pass_rtl_store_motion execute function. Keep
20070 track of substitutions and insertions for statistics gathering similar
20071 to PRE.
20072 (bypass_jumps): Remove, fold interesting bits into ...
20073 (one_cprop_pass): ... this. Rewrite to be "the" CPROP pass, called
20074 from the pass_rtl_cprop execute function.
20075 (gate_handle_jump_bypass, rest_of_handle_jump_bypass,
20076 pass_jump_bypass): Remove.
20077 (gate_handle_gcse, rest_of_handle_gcse): Remove.
20078 (gate_rtl_cprop, execute_rtl_cprop, pass_rtl_cprop): New.
20079 (gate_rtl_pre, execute_rtl_pre, pass_rtl_pre): New.
20080 (gate_rtl_hoist, execute_rtl_hoist, pass_rtl_hoist): New.
20081 (gate_rtl_store_motion, execute_rtl_store_motion,
20082 pass_rtl_store_motion): New.
20083 * common.opt: Remove flag_cse_skip_blocks, adjust documentation to
20084 make it clear that -fcse-skip-blocks is a no-op for backward compat.
20085 * passes.c (init_optimization_passes): Remove pass_gcse and
20086 pass_jump_bypass. Schedule cprop, pre, hoist, cprop, store_motion,
20087 and cse_after_global_opts in place of pass_gcse. Schedule cprop
20088 instead of pass_jump_bypass.
20089
20090 2009-04-27 Richard Guenther <rguenther@suse.de>
20091
20092 PR middle-end/39928
20093 * gimplify.c (gimplify_expr): If we are required to create
20094 a temporary make sure it ends up as register.
20095
20096 2009-04-27 H.J. Lu <hongjiu.lu@intel.com>
20097
20098 PR target/39903
20099 * config/i386/i386.c (construct_container): Don't call
20100 gen_reg_or_parallel with BLKmode on X86_64_SSE_CLASS,
20101 X86_64_SSESF_CLASS and X86_64_SSEDF_CLASS.
20102
20103 2009-04-27 Michael Matz <matz@suse.de>
20104
20105 * ssaexpand.h (struct ssaexpand): Member 'values' is a bitmap.
20106 (get_gimple_for_ssa_name): Adjust, lookup using SSA_NAME_DEF_STMT.
20107 * tree-ssa-live.h: (find_replaceable_exprs): Return a bitmap.
20108 (dump_replaceable_exprs): Take a bitmap.
20109 * cfgexpand.c (gimple_cond_pred_to_tree): Handle bitmap instead of
20110 array.
20111 (expand_gimple_basic_block): Likewise.
20112 * tree-ssa-ter.c (struct temp_expr_table_d): Make
20113 replaceable_expressions member a bitmap.
20114 (free_temp_expr_table): Pass back and deal with bitmap, not gimple*.
20115 (mark_replaceable): Likewise.
20116 (find_replaceable_in_bb, dump_replaceable_exprs): Likewise.
20117 * tree-outof-ssa.c (remove_ssa_form): 'values' is a bitmap.
20118
20119 2009-04-27 Richard Guenther <rguenther@suse.de>
20120
20121 * tree-cfg.c (remove_useless_stmts): Verify stmts afterwards.
20122 (verify_stmts): Dispatch to gimple/type verification code.
20123 * tree-inline.c (remap_gimple_op_r): Work around C++ FE
20124 issue with call argument types.
20125
20126 2009-04-27 Michael Matz <matz@suse.de>
20127
20128 * tree-into-ssa.c (regs_to_rename, mem_syms_to_rename): Remove.
20129 (init_update_ssa, delete_update_ssa, update_ssa): Remove references
20130 to above.
20131
20132 2009-04-27 Richard Sandiford <rdsandiford@googlemail.com>
20133 Eric Botcazou <ebotcazou@adacore.com>
20134
20135 * resource.c (find_basic_block): Use BLOCK_FOR_INSN to look up
20136 a label's basic block.
20137 (mark_target_live_regs): Tidy and rework obsolete comments.
20138 Change back DF problem to LIVE. If a label starts a basic block,
20139 assume that all registers that used to be live then still are.
20140 (init_resource_info): If a label starts a basic block, set its
20141 BLOCK_FOR_INSN accordingly.
20142 (fini_resource_info): Undo the setting of BLOCK_FOR_INSN.
20143
20144 2009-04-27 Richard Guenther <rguenther@suse.de>
20145
20146 * tree-flow-inline.h (function_ann): Remove.
20147 (get_function_ann): Likewise.
20148 * tree-dfa.c (create_function_ann): Remove.
20149 * tree-flow.h (struct static_var_ann_d): Remove.
20150 (struct function_ann_d): Likewise.
20151 (union tree_ann_d): Remove fdecl member.
20152 (function_ann_t): Remove.
20153 (function_ann, get_function_ann, create_function_ann): Remove
20154 declarations.
20155
20156 2009-04-27 Uros Bizjak <ubizjak@gmail.com>
20157
20158 * config/alpha/alpha.c (code_for_builtin): Declare as enum insn_code.
20159
20160 2009-04-27 Jan Hubicka <jh@suse.cz>
20161
20162 * ipa-pure-const.c (struct funct_state_d): New fields
20163 state_previously_known, looping_previously_known; remove
20164 state_set_in_source.
20165 (analyze_function): Use new fields.
20166 (propagate): Avoid assumption that state_set_in_source imply
20167 nonlooping.
20168
20169 * tree-ssa-loop-niter.c (finite_loop_p): New function.
20170 * tree-ssa-loop-ivcanon.c (empty_loop_p): Use it.
20171 * cfgloop.h (finite_loop_p): Declare.
20172
20173 2009-04-26 Michael Matz <matz@suse.de>
20174
20175 * tree-flow.h (tree_ann_common_d): Remove aux and value_handle members.
20176
20177 2009-04-26 Michael Matz <matz@suse.de>
20178
20179 * tree-pass.h (pass_del_ssa, pass_mark_used_blocks,
20180 pass_free_cfg_annotations, pass_free_datastructures): Remove decls.
20181 * gimple-low.c (mark_blocks_with_used_vars, mark_used_blocks,
20182 pass_mark_used_blocks): Remove.
20183 * tree-optimize.c (pass_free_datastructures,
20184 execute_free_cfg_annotations, pass_free_cfg_annotations): Remove.
20185 * passes.c (init_optimization_passes): Don't call
20186 pass_mark_used_blocks, remove dead code.
20187
20188 2009-04-26 H.J. Lu <hongjiu.lu@intel.com>
20189
20190 * tree-outof-ssa.c (rewrite_trees): Add ATTRIBUTE_UNUSED.
20191 * tree-ssa-live.h (register_ssa_partition): Likewise.
20192
20193 2009-04-26 Michael Matz <matz@suse.de>
20194
20195 Expand from SSA.
20196 * builtins.c (fold_builtin_next_arg): Handle SSA names.
20197 * tree-ssa-copyrename.c (rename_ssa_copies): Use ssa_name() directly.
20198 * tree-ssa-coalesce.c (create_outofssa_var_map): Mark only useful
20199 SSA names.
20200 (compare_pairs): Swap cost comparison.
20201 (coalesce_ssa_name): Don't use change_partition_var.
20202 * tree-nrv.c (struct nrv_data): Add modified member.
20203 (finalize_nrv_r): Set it.
20204 (tree_nrv): Use it to update statements.
20205 (pass_nrv): Require PROP_ssa.
20206 * tree-mudflap.c (mf_decl_cache_locals,
20207 mf_build_check_statement_for): Use make_rename_temp.
20208 (pass_mudflap_2): Require PROP_ssa, run ssa update at finish.
20209 * alias.c (find_base_decl): Handle SSA names.
20210 * emit-rtl (set_reg_attrs_for_parm): Make non-static.
20211 (component_ref_for_mem_expr): Don't leak SSA names into RTL.
20212 * rtl.h (set_reg_attrs_for_parm): Declare.
20213 * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Rename
20214 to "optimized", remove unused locals at finish.
20215 (execute_free_datastructures): Make global, call
20216 delete_tree_cfg_annotations.
20217 (execute_free_cfg_annotations): Don't call
20218 delete_tree_cfg_annotations.
20219
20220 * ssaexpand.h: New file.
20221 * expr.c (toplevel): Include ssaexpand.h.
20222 (expand_assignment): Handle SSA names the same as register variables.
20223 (expand_expr_real_1): Expand SSA names.
20224 * cfgexpand.c (toplevel): Include ssaexpand.h.
20225 (SA): New global variable.
20226 (gimple_cond_pred_to_tree): Fold TERed comparisons into predicates.
20227 (SSAVAR): New macro.
20228 (set_rtl): New helper function.
20229 (add_stack_var): Deal with SSA names, use set_rtl.
20230 (expand_one_stack_var_at): Likewise.
20231 (expand_one_stack_var): Deal with SSA names.
20232 (stack_var_size_cmp): Use code (SSA_NAME / DECL) as tie breaker
20233 before unique numbers.
20234 (expand_stack_vars): Use set_rtl.
20235 (expand_one_var): Accept SSA names, add asserts for them, feed them
20236 to above subroutines.
20237 (expand_used_vars): Expand all partitions (without default defs),
20238 then only the local decls (ignoring those expanded already).
20239 (expand_gimple_cond): Remove edges when jumpif() expands an
20240 unconditional jump.
20241 (expand_gimple_basic_block): Don't clear EDGE_EXECUTABLE here,
20242 or remove abnormal edges. Ignore insns setting the LHS of a TERed
20243 SSA name.
20244 (gimple_expand_cfg): Call into rewrite_out_of_ssa, initialize
20245 members of SA; deal with PARM_DECL partitions here; expand
20246 all PHI nodes, free tree datastructures and SA. Commit instructions
20247 on edges, clear EDGE_EXECUTABLE and remove abnormal edges here.
20248 (pass_expand): Require and destroy PROP_ssa, verify SSA form, flow
20249 info and statements at start, collect garbage at finish.
20250 * tree-ssa-live.h (struct _var_map): Remove partition_to_var member.
20251 (VAR_ANN_PARTITION) Remove.
20252 (change_partition_var): Don't declare.
20253 (partition_to_var): Always return SSA names.
20254 (var_to_partition): Only accept SSA names.
20255 (register_ssa_partition): Only check argument.
20256 * tree-ssa-live.c (init_var_map): Don't allocate partition_to_var
20257 member.
20258 (delete_var_map): Don't free it.
20259 (var_union): Only accept SSA names, simplify.
20260 (partition_view_init): Mark only useful SSA names as used.
20261 (partition_view_fini): Only deal with SSA names.
20262 (change_partition_var): Remove.
20263 (dump_var_map): Use ssa_name instead of partition_to_var member.
20264 * tree-ssa.c (delete_tree_ssa): Don't remove PHI nodes on RTL
20265 basic blocks.
20266 * tree-outof-ssa.c (toplevel): Include ssaexpand.h and expr.h.
20267 (struct _elim_graph): New member const_dests; nodes member vector of
20268 ints.
20269 (set_location_for_edge): New static helper.
20270 (create_temp): Remove.
20271 (insert_partition_copy_on_edge, insert_part_to_rtx_on_edge,
20272 insert_value_copy_on_edge, insert_rtx_to_part_on_edge): New functions.
20273 (new_elim_graph): Allocate const_dests member.
20274 (clean_elim_graph): Truncate const_dests member.
20275 (delete_elim_graph): Free const_dests member.
20276 (elim_graph_size): Adapt to new type of nodes member.
20277 (elim_graph_add_node): Likewise.
20278 (eliminate_name): Likewise.
20279 (eliminate_build): Don't take basic block argument, deal only with
20280 partition numbers, not variables.
20281 (get_temp_reg): New static helper.
20282 (elim_create): Use it, deal with RTL temporaries instead of trees.
20283 (eliminate_phi): Adjust all calls to new signature.
20284 (assign_vars, replace_use_variable, replace_def_variable): Remove.
20285 (rewrite_trees): Only do checking.
20286 (edge_leader, stmt_list, leader_has_match, leader_match): Remove.
20287 (same_stmt_list_p, identical_copies_p, identical_stmt_lists_p,
20288 init_analyze_edges_for_bb, fini_analyze_edges_for_bb,
20289 contains_tree_r, MAX_STMTS_IN_LATCH,
20290 process_single_block_loop_latch, analyze_edges_for_bb,
20291 perform_edge_inserts): Remove.
20292 (expand_phi_nodes): New global function.
20293 (remove_ssa_form): Take ssaexpand parameter. Don't call removed
20294 functions, initialize new parameter, remember partitions having a
20295 default def.
20296 (finish_out_of_ssa): New global function.
20297 (rewrite_out_of_ssa): Make global. Adjust call to remove_ssa_form,
20298 don't reset in_ssa_p here, don't disable TER when mudflap.
20299 (pass_del_ssa): Remove.
20300 * tree-flow.h (struct var_ann_d): Remove out_of_ssa_tag and
20301 partition members.
20302 (execute_free_datastructures): Declare.
20303 * Makefile.in (SSAEXPAND_H): New variable.
20304 (tree-outof-ssa.o, expr.o, cfgexpand.o): Depend on SSAEXPAND_H.
20305 * basic-block.h (commit_one_edge_insertion): Declare.
20306 * passes.c (init_optimization_passes): Move pass_nrv and
20307 pass_mudflap2 before pass_cleanup_cfg_post_optimizing, remove
20308 pass_del_ssa, pass_free_datastructures, pass_free_cfg_annotations.
20309 * cfgrtl.c (commit_one_edge_insertion): Make global, don't declare.
20310 (redirect_branch_edge): Deal with super block when expanding, split
20311 out jump patching itself into ...
20312 (patch_jump_insn): ... here, new static helper.
20313
20314 2009-04-26 Michael Matz <matz@suse.de>
20315
20316 * tree-ssa-copyrename.c (rename_ssa_copies): Don't iterate
20317 beyond num_ssa_names.
20318 * tree-ssa-ter.c (free_temp_expr_table): Likewise.
20319 * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
20320
20321 2009-04-26 Jakub Jelinek <jakub@redhat.com>
20322
20323 PR inline-asm/39543
20324 * fwprop.c (forward_propagate_asm): New function.
20325 (forward_propagate_and_simplify): Propagate also into __asm, if it
20326 doesn't increase the number of referenced registers.
20327
20328 PR c/39889
20329 * stmt.c (warn_if_unused_value): Look through NON_LVALUE_EXPR.
20330
20331 2009-04-26 Jakub Jelinek <jakub@redhat.com>
20332
20333 * tree-nested.c (get_nonlocal_vla_type): If not optimizing, call
20334 note_nonlocal_vla_type for nonlocal VLAs.
20335 (note_nonlocal_vla_type, note_nonlocal_block_vlas,
20336 contains_remapped_vars, remap_vla_decls): New functions.
20337 (convert_nonlocal_reference_stmt): If not optimizing, call
20338 note_nonlocal_block_vlas on GIMPLE_BIND block vars.
20339 (nesting_copy_decl): Return {VAR,PARM,RESULT}_DECL unmodified
20340 if it wasn't found in var_map.
20341 (finalize_nesting_tree_1): Call remap_vla_decls. If outermost
20342 GIMPLE_BIND doesn't have gimple_bind_block, chain debug_var_chain
20343 to BLOCK_VARS (DECL_INITIAL (root->context)) instead of calling
20344 declare_vars.
20345 * gimplify.c (nonlocal_vlas): New variable.
20346 (gimplify_var_or_parm_decl): Add debug VAR_DECLs for non-local
20347 referenced VLAs.
20348 (gimplify_body): Create and destroy nonlocal_vlas.
20349
20350 * dwarf2out.c (loc_descr_plus_const): New function.
20351 (build_cfa_aligned_loc, tls_mem_loc_descriptor,
20352 mem_loc_descriptor, loc_descriptor_from_tree_1,
20353 descr_info_loc, gen_variable_die): Use it.
20354
20355 * tree.h (DECL_BY_REFERENCE): Note that it is also valid for
20356 !TREE_STATIC VAR_DECLs.
20357 * dwarf2out.c (loc_by_reference, gen_decl_die): Handle
20358 DECL_BY_REFERENCE on !TREE_STATIC VAR_DECLs.
20359 (gen_variable_die): Likewise. Don't look at TREE_PRIVATE if
20360 DECL_BY_REFERENCE is valid.
20361 * dbxout.c (DECL_ACCESSIBILITY_CHAR): Don't look at TREE_PRIVATE
20362 for PARM_DECLs, RESULT_DECLs or !TREE_STATIC VAR_DECLs.
20363 * tree-nested.c (get_nonlocal_debug_decl, get_local_debug_decl):
20364 Copy DECL_BY_REFERENCE.
20365 (struct nesting_copy_body_data): New type.
20366 (nesting_copy_decl): New function.
20367 (finalize_nesting_tree_1): Remap types of debug_var_chain variables,
20368 if they have variable length.
20369
20370 2009-04-26 Michael Matz <matz@suse.de>
20371
20372 * tree-sra.c (sra_build_assignment): Don't use into_ssa mode,
20373 mark new temporaries for renaming.
20374
20375 2009-04-26 Joseph Myers <joseph@codesourcery.com>
20376
20377 PR c/39581
20378 * c-decl.c (global_bindings_p): Return negative value.
20379 (c_variable_size): New. Based on variable_size from
20380 stor-layout.c.
20381 (grokdeclarator): Call c_variable_size not variable_size.
20382
20383 2009-04-26 Uros Bizjak <ubizjak@gmail.com>
20384
20385 * config/i386/i386.c (print_operand) ['z']: Fix typo.
20386
20387 2009-04-26 Kai Tietz <kai.tietz@onevision.com>
20388
20389 * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR):
20390 Redefine it to just use mingw/include.
20391 (ASM_SPEC): Rules for -m32 and -m64.
20392 (LINK_SPEC): Use Likewise.
20393 (SPEC_32): New define.
20394 (SPEC_64): Likewise.
20395 (SUB_LINK_SPEC): Likewise.
20396 (MULTILIB_DEFAULTS): New define.
20397 * config/i386/t-mingw-w64 (MULTILIB_OPTIONS):
20398 Add multilib options.
20399 (MULTILIB_DIRNAMES): Likewise.
20400 (MULTILIB_OSDIRNAMES): Likewise.
20401 (LIBGCC): Likewise.
20402 (INSTALL_LIBGCC): Likewise.
20403
20404 2009-04-26 Joseph Myers <joseph@codesourcery.com>
20405
20406 PR c/39556
20407 * c-tree.h (enum c_inline_static_type): New.
20408 (record_inline_static): Declare.
20409 * c-decl.c (struct c_inline_static, c_inline_statics,
20410 record_inline_static, check_inline_statics): New.
20411 (pop_file_scope): Call check_inline_statics.
20412 (start_decl): Call record_inline_static instead of pedwarning
20413 directly for static in inline function.
20414 * c-typeck.c (build_external_ref): Call record_inline_static
20415 instead of pedwarning directly for static referenced in inline
20416 function.
20417
20418 2009-04-26 Steven Bosscher <steven@gcc.gnu.org>
20419
20420 * df-scan.c (df_insn_rescan): Salvage insn's LUID if the insn is
20421 not new but only being rescanned.
20422 * gcse.c (uid_cuid, max_uid, INSN_CUID, max_cuid, struct reg_set,
20423 reg_set_table, REG_SET_TABLE_SLOP, reg_set_in_block,
20424 alloc_reg_set_mem, free_reg_set_mem, record_one_set,
20425 record_set_info, compute_set, grealloc): Remove.
20426 (recompute_all_luids): New function.
20427 (gcse_main): Don't compute sets, and don't do related memory
20428 allocations/free-ing. If something changed before the end of the
20429 pass, update LUIDs using recompute_all_luids.
20430 (alloc_gcse_mem): Don't compute LUIDs. Don't allocate reg_set memory.
20431 (free_gcse_mem): Don't free it either.
20432 (oprs_unchanged_p, load_killed_in_block, record_last_reg_set_info):
20433 Use the df insn LUIDs.
20434 (load_killed_in_block): Likewise.
20435 (compute_hash_table_work): Don't compute reg_set_in_block.
20436 (compute_transp): Use DF_REG_DEF_CHAINs.
20437 (local_cprop_pass): Don't use compute_sets and related functions.
20438 (one_cprop_pass, pre_gcse, one_pre_gcse_pass, one_code_hoisting_pass):
20439 Use get_max_uid() instead of max_cuid.
20440 (insert_insn_end_basic_block, pre_insert_copy_insn,
20441 update_ld_motion_stores): Don't try to
20442 keep reg_set tables up to date.
20443 (pre_insert_copies): Use df insn LUIDs.
20444 (sbitmap pre_redundant_insns): Replace with uses of INSN_DELETED_P.
20445 (reg_set_info): Don't use extra bitmap argument.
20446 (compute_store_table): Don't compute reg_set_in_block. Use DF scan
20447 information to compute regs_set_in_block.
20448 (free_store_memory, store_motion): Don't nullify reg_set_in_block.
20449 (bypass_jumps): Don't use compute_sets and friends.
20450
20451 2009-04-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20452
20453 PR testsuite/39710
20454 * opts.c (undocumented_msg): Do not leave blank even with
20455 ENABLE_CHECKING.
20456
20457 2009-04-25 Joseph Myers <joseph@codesourcery.com>
20458
20459 * c-decl.c (build_enumerator): Allow values folding to integer
20460 constants but not integer constant expressions with a pedwarn if
20461 pedantic.
20462
20463 2009-04-25 Joseph Myers <joseph@codesourcery.com>
20464
20465 PR c/39582
20466 * c-typeck.c (c_expr_sizeof_type): Create a C_MAYBE_CONST_EXPR
20467 with non-null C_MAYBE_CONST_EXPR_PRE if size of a variable-length
20468 type is an integer constant.
20469
20470 2009-04-25 Uros Bizjak <ubizjak@gmail.com>
20471
20472 PR target/39897
20473 * config/i386/i386.c (print_operand) ['z']: Revert handling of
20474 HImode operands.
20475
20476 2009-04-25 Joseph Myers <joseph@codesourcery.com>
20477
20478 PR c/39564
20479 * c-decl.c (grokdeclarator): Diagnose declarations of functions
20480 with variably modified return type and no storage class
20481 specifiers, except for the case of nested functions. Distinguish
20482 extern declarations of functions with variably modified return
20483 types from those of objects with variably modified types.
20484
20485 2009-04-25 Jan Hubicka <jh@suse.cz>
20486
20487 * tree.c (list_equal_p): New function.
20488 * tree.h (list_equal_p): Declare.
20489 * coretypes.h (edge_def, edge, const_edge, basic_block_def
20490 basic_block_def, basic_block, const_basic_block): New.
20491 * tree-eh.c (make_eh_edge): EH edges are not abnormal.
20492 (redirect_eh_edge): New function.
20493 (make_eh_edge_update_phi): EH edges are not abnormal.
20494 * except.c: Include tree-flow.h.
20495 (list_match): New function.
20496 (eh_region_replaceable_by_p): New function.
20497 (replace_region): New function.
20498 (hash_type_list): New function.
20499 (hash_eh_region): New function.
20500 (eh_regions_equal_p): New function.
20501 (merge_peers): New function.
20502 (remove_unreachable_regions): Verify EH tree when checking;
20503 merge peers.
20504 (copy_eh_region_1): New function.
20505 (copy_eh_region): New function.
20506 (push_reachable_handler): New function.
20507 (build_post_landing_pads, dw2_build_landing_pads): Be ready for
20508 regions without label but with live RESX.
20509 * except.h (redirect_eh_edge_to_label): New.
20510 * tree-flow.h (redirect_eh_edge): New.
20511 * coretypes.h (edge_def, edge, const_edge, basic_block_def
20512 basic_block_def, basic_block, const_basic_block): Remove.
20513 * Makefile.in (except.o): Add dependency on tree-flow.h
20514 * tree-cfg.c (gimple_redirect_edge_and_branch): Handle EH edges.
20515 * basic-block.h (edge, const_edge, basic_block, const_basic_block):
20516 Remove.
20517
20518 2009-04-25 Eric Botcazou <ebotcazou@adacore.com>
20519
20520 PR bootstrap/39645
20521 * config/sparc/sparc.c (sparc_gimplify_va_arg): Set TREE_ADDRESSABLE
20522 on the destination of memcpy.
20523
20524 2009-04-25 Paolo Bonzini <bonzini@gnu.org>
20525
20526 * doc/tm.texi (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
20527 REGNO_MODE_OK_FOR_REG_BASE_P, REGNO_MODE_CODE_OK_FOR_BASE_P,
20528 REGNO_OK_FOR_INDEX_P): Mention strict/nonstrict difference.
20529
20530 2009-04-25 Jan Hubicka <jh@suse.cz>
20531
20532 * tree-eh.c (tree_remove_unreachable_handlers): Handle shared labels.
20533 (tree_empty_eh_handler_p): Allow non-EH predecestors; allow region
20534 to be reached by different label than left.
20535 (update_eh_edges): Update comment; remove edge_to_remove if possible
20536 and return true if suceeded.
20537 (cleanup_empty_eh): Accept sharing map; handle shared regions.
20538 (cleanup_eh): Compute sharing map.
20539 * except.c (remove_eh_handler_and_replace): Add argument if we should
20540 update regions.
20541 (remove_unreachable_regions): Update for label sharing.
20542 (label_to_region_map): Likewise.
20543 (get_next_region_sharing_label): New function.
20544 (remove_eh_handler_and_replace): Add update_catch_try parameter; update
20545 prev_try pointers.
20546 (remove_eh_handler): Update.
20547 (remove_eh_region_and_replace_by_outer_of): New function.
20548 * except.h (struct eh_region): Add next_region_sharing_label.
20549 (remove_eh_region_and_replace_by_outer_of,
20550 get_next_region_sharing_label): Declare.
20551 * tree-cfgcleanup.c (tree_forwarder_block_p): Simplify.
20552
20553 2009-04-25 Jan Hubicka <jh@suse.cz>
20554
20555 * tree-cfg.c (split_critical_edges): Split also edges where we can't
20556 insert code even if they are not critical.
20557
20558 2009-04-25 Jan Hubicka <jh@suse.cz>
20559
20560 * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
20561 (gimple_can_remove_branch_p): EH edges won't remove branch by
20562 redirection.
20563 * tree-inline.c (update_ssa_across_abnormal_edges): Do handle
20564 updating of non-abnormal EH edges.
20565 * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
20566 (gimple_can_remove_branch_p): EH edges are unremovable by redirection.
20567 (split_critical_edges): Split also edges where emitting code on them
20568 will lead to splitting later.
20569
20570 2009-04-25 Uros Bizjak <ubizjak@gmail.com>
20571 H.J. Lu <hongjiu.lu@intel.com>
20572
20573 PR target/39590
20574 * configure.ac (HAVE_AS_IX86_FILDQ): On x86 targets check whether
20575 the configured assembler supports fildq and fistpq mnemonics.
20576 (HAVE_AS_IX86_FILDS): Rename from HAVE_GAS_FILDS_FISTS.
20577 * configure: Regenerated.
20578 * config.in: Ditto.
20579
20580 * config/i386/i386.c (print_operand): Handle 'Z'.
20581 ['z']: Remove handling of special fild/fist suffixes.
20582 (output_fix_trunc): Use '%Z' to output suffix of fist{,p,tp} insn.
20583 * config/i386/i386.md (*floathi<mode>2_i387): Use '%Z' to output
20584 suffix of fild insn.
20585 (*floatsi<mode>2_vector_mixed): Ditto.
20586 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Ditto.
20587 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Ditto.
20588 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
20589 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387): Ditto.
20590 * config/i386/gas.h (GAS_MNEMONICS): Remove.
20591
20592 2009-04-25 Ben Elliston <bje@au.ibm.com>
20593
20594 * genrecog.c (validate_pattern): Do not warn for VOIDmode CALLs as
20595 the source of a set operation.
20596
20597 2009-04-25 Anatoly Sokolov <aesok@post.ru>
20598
20599 * target.h (struct gcc_target): Add case_values_threshold field.
20600 * target-def.h (TARGET_CASE_VALUES_THRESHOLD): New.
20601 (TARGET_INITIALIZER): Use TARGET_CASE_VALUES_THRESHOLD.
20602 * targhooks.c (default_case_values_threshold): New function.
20603 * targhooks.h (default_case_values_threshold): Declare function.
20604 * stmt.c (expand_case): Use case_values_threshold target hook.
20605 * expr.h (case_values_threshold): Remove declartation.
20606 * expr.c (case_values_threshold): Remove function.
20607 * doc/tm.texi (CASE_VALUES_THRESHOLD): Revise documentation.
20608
20609 * config/avr/avr.h (CASE_VALUES_THRESHOLD): Remove macro.
20610 * config/avr/avr.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
20611 (avr_case_values_threshold): Declare as static.
20612 * config/avr/avr-protos.h (avr_case_values_threshold): Remove.
20613
20614 * config/avr/mn10300.h (CASE_VALUES_THRESHOLD): Remove macro.
20615 * config/avr/mn10300.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
20616 (mn10300_case_values_threshold): New function.
20617
20618 2009-04-24 H.J. Lu <hongjiu.lu@intel.com>
20619
20620 * ira.c (setup_cover_and_important_classes): Add enum cast.
20621
20622 2009-04-24 Vladimir Makarov <vmakarov@redhat.com>
20623
20624 * genpreds.c (write_enum_constraint_num): Output definition of
20625 CONSTRAINT_NUM_DEFINED_P macro.
20626 * ira.c (setup_cover_and_important_classes): Use
20627 CONSTRAINT_NUM_DEFINED_P instead of CONSTRAINT__LIMIT in #ifdef.
20628
20629 2009-04-24 DJ Delorie <dj@redhat.com>
20630
20631 * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Test
20632 __SH2A_SINGLE_ONLY__ also.
20633
20634 2009-04-24 Steve Ellcey <sje@cup.hp.com>
20635
20636 * config/ia64/ia64.md (movfs_internal): Allow flt constants.
20637 (movdf_internal): Ditto.
20638 * config/ia64/ia64.c (ia64_legitimate_constant_p): Allow
20639 SFmode and DFmode constants.
20640 (ia64_print_operand): Add 'G' format for printing
20641 floating point constants.
20642
20643 2009-04-24 Richard Guenther <rguenther@suse.de>
20644
20645 * tree-vrp.c (extract_range_from_binary_expr): Handle overflow
20646 from unsigned additions.
20647
20648 2009-04-24 Joseph Myers <joseph@codesourcery.com>
20649
20650 * c-typeck.c (set_init_index): Allow array designators that are
20651 not integer constant expressions with a pedwarn if pedantic.
20652
20653 2009-04-24 Bernd Schmidt <bernd.schmidt@analog.com>
20654
20655 * simplify-rtx.c (simplify_binary_operation_1, case AND): Result is
20656 zero if no overlap in nonzero bits between the operands.
20657
20658 2009-04-24 Ian Lance Taylor <iant@google.com>
20659
20660 * combine.c (record_value_for_reg): Change 0 to VOIDmode, twice.
20661 (record_dead_and_set_regs): Likewise.
20662 * df.h (struct df_mw_hardreg): Change flags field to int.
20663 (struct df_base_ref): Likewise.
20664 (struct df): Change changeable_flags field to int.
20665 * df-scan.c (df_defs_record): Change clobber_flags to int.
20666 * dwarf2.h (enum dwarf_tag): Make lo_user and hi_user values enum
20667 constants rather than #define macros.
20668 (enum dwarf_attribute, enum dwarf_location_atom): Likewise.
20669 (enum dwarf_type, enum dwarf_endianity_encoding): Likewise.
20670 (enum dwarf_calling_convention): Likewise.
20671 (enum dwarf_line_number_x_ops): Likewise.
20672 (enum dwarf_call_frame_info): Likewise.
20673 (enum dwarf_source_language): Likewise.
20674 * dwarf2out.c (int_loc_descriptor): Add cast to enum type.
20675 (add_calling_convention_attribute): Likewise.
20676 * fold-const.c (fold_undefer_overflow_warnings): Add cast to enum type.
20677 (combine_comparisons): Change compcode to int. Add cast to enum type.
20678 * genrecog.c (maybe_both_true_2): Change c to int.
20679 (write_switch): Likewise. Add cast to enum type.
20680 * gimplify.c (gimplify_omp_for): Handle return values from
20681 gimplify_expr using MIN rather than bitwise or.
20682 (gimplify_expr): Add cast to enum type.
20683 * ipa-prop.c (update_jump_functions_after_inlining): Change
20684 IPA_BOTTOM to IPA_JF_UNKNOWN.
20685 * ira.c (setup_class_subset_and_memory_move_costs): Change mode to int.
20686 Add casts to enum type.
20687 (setup_cover_and_important_classes): Change cl to int. Add casts
20688 to enum type.
20689 (setup_class_translate): Change cl and mode to int.
20690 (ira_init_once): Change mode to int.
20691 (free_register_move_costs): Likewise.
20692 (setup_prohibited_mode_move_regs): Add casts to enum type.
20693 * langhooks.c (add_builtin_function_common): Rework assertion that
20694 value fits bitfield.
20695 * mcf.c (add_fixup_edge): Change type parameter to edge_type.
20696 * omega.c (omega_do_elimination): Avoid math on enum types.
20697 * optabs.c (expand_vec_shift_expr): Remove casts to int.
20698 * opts.c (set_debug_level): Change 2 to enum constant. Use new
20699 int local to handle integral_argment value.
20700 * regmove.c (try_auto_increment): Change PUT_MODE to
20701 PUT_REG_NOTE_KIND.
20702 * reload.c (push_secondary_reload): Add casts to enum type.
20703 (secondary_reload_class, find_valid_class): Likewise.
20704 * reload1.c (emit_input_reload_insns): Likewise.
20705 * rtl.h (NOTE_VAR_LOCATION_STATUS): Likewise.
20706 * sel-sched.c (init_hard_regs_data): Change cur_mode to int.
20707 * sel-sched-ir.c (hash_with_unspec_callback): Change 0 to enum
20708 constant.
20709 * tree.c (build_common_builtin_nodes): Add casts to enum type.
20710 * tree-complex.c (complex_lattice_t): Typedef to int rather than
20711 enum type.
20712 (expand_complex_libcall): Add casts to enum type.
20713 * tree-into-ssa.c (get_ssa_name_ann): Change 0 to enum constant.
20714 * tree-vect-loop.c (vect_model_reduction_cost): Compare reduc_code
20715 with ERROR_MARK, not NUM_TREE_CODES.
20716 (vect_create_epilog_for_reduction): Likewise.
20717 (vectorizable_reduction): Don't initialize epiloc_reduc_code.
20718 When not using it, set it to ERROR_MARK rather than NUM_TREE_CODES.
20719 * tree-vect-patterns.c (vect_pattern_recog_1): Change vec_mode to
20720 enum machine_mode.
20721 * tree-vect-stmts.c (new_stmt_vec_info): Change 0 to
20722 vect_unused_in_loop. Change 0 to loop_vect.
20723 * tree-vectorizer.c (vect_set_verbosity_level): Add casts to enum type.
20724 * var-tracking.c (get_init_value): Change return type to enum
20725 var_init_status.
20726 * vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
20727 * config/arm/arm.c (fp_model_for_fpu): Change to array to enum
20728 arm_fp_model.
20729 (arm_override_options): Add casts to enum type.
20730 (arm_emit_tls_decoration): Likewise.
20731 * config/i386/i386.c (ix86_function_specific_restore): Add casts
20732 to enum type.
20733 * config/i386/i386-c.c (ix86_pragma_target_parse): Likewise.
20734 * config/ia64/ia64.c (ia64_expand_compare): Change magic to int.
20735 * config/rs6000/rs6000.c (rs6000_override_options): Add casts to
20736 enum type.
20737 * config/s390/s390.c (code_for_builtin_64): Change to array of
20738 enum insn_code.
20739 (code_for_builtin_31): Likewise.
20740 (s390_expand_builtin): Change code_for_builtin to enum insn_code
20741 const *.
20742 * config/sparc/sparc.c (sparc_override_options): Change value
20743 field in struct code_model to enum cmodel. In initializer change
20744 0 to NULL and add cast to enum type.
20745
20746 * c-typeck.c (build_modify_expr): Add lhs_origtype parameter.
20747 Change all callers. Issue a -Wc++-compat warning using
20748 lhs_origtype if necessary.
20749 (convert_for_assignment): Issue -Wc++-compat warnings about
20750 invalid conversions to enum type on assignment.
20751 * c-common.h (build_modify_expr): Update declaration.
20752
20753 2009-04-24 Nick Clifton <nickc@redhat.com>
20754
20755 * config/iq2000/iq2000.c (function_arg): Handle TImode values.
20756 (function_arg_advance): Likewise.
20757 * config/iq2000/iq2000.md (movsi_internal2): Fix the length of the
20758 5th alternative.
20759
20760 2009-04-24 Andreas Krebbel <krebbel1@de.ibm.com>
20761
20762 * config/s390/constraints.md ('I', 'J'): Fix condition.
20763
20764 2009-04-24 Diego Novillo <dnovillo@google.com>
20765
20766 * gengtype-parse.c (parse_error): Add newline after message.
20767
20768 2009-04-24 H.J. Lu <hongjiu.lu@intel.com>
20769
20770 * config/i386/sse.md (avxmodesuffixs): Removed.
20771 (*avx_pinsr<avxmodesuffixs>): Renamed to ...
20772 (*avx_pinsr<ssevecsize>): This.
20773
20774 2009-04-24 Bernd Schmidt <bernd.schmidt@analog.com>
20775
20776 * loop-iv.c (replace_single_def_regs): Look for REG_EQUAL notes;
20777 follow chains of regs with a single definition, and allow expressions
20778 that are function_invariant_p.
20779 (simple_rhs_p): Allow expressions that are function_invariant_p.
20780
20781 2009-04-24 Paolo Bonzini <bonzini@gnu.org>
20782
20783 PR middle-end/39867
20784 * fold-const.c (fold_cond_expr_with_comparison): When folding
20785 > and >= to MAX, make sure the MAX uses the same type as the
20786 comparison's operands.
20787
20788 2009-04-24 Nick Clifton <nickc@redhat.com>
20789
20790 * config/frv/frv.c (frv_frame_access): Do not use reg+reg
20791 addressing for DImode accesses.
20792 (frv_print_operand_address): Handle PLUS case.
20793 * config/frv/frv.h (FIXED_REGISTERS): Mark link register as fixed.
20794
20795 2009-04-24 Jakub Jelinek <jakub@redhat.com>
20796
20797 PR rtl-optimization/39794
20798 * alias.c (canon_true_dependence): Add x_addr argument.
20799 * rtl.h (canon_true_dependence): Adjust prototype.
20800 * cse.c (check_dependence): Adjust canon_true_dependence callers.
20801 * cselib.c (cselib_invalidate_mem): Likewise.
20802 * gcse.c (compute_transp): Likewise.
20803 * dse.c (scan_reads_nospill): Likewise.
20804 (record_store, check_mem_read_rtx): Likewise. For non-const-or-frame
20805 addresses pass base->val_rtx as mem_addr, for const-or-frame addresses
20806 canon_base_addr of the group, plus optional offset.
20807 (struct group_info): Rename canon_base_mem to
20808 canon_base_addr.
20809 (get_group_info): Set canon_base_addr to canon_rtx of base, not
20810 canon_rtx of base_mem.
20811
20812 2009-04-23 Paolo Bonzini <bonzini@gnu.org>
20813
20814 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
20815 Use memory_address_p instead of GO_IF_LEGITIMATE_ADDRESS.
20816
20817 2009-04-23 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20818
20819 * config/spu/spu-builtins.h: Delete file.
20820
20821 * config/spu/spu.h (enum spu_builtin_type): Move here from
20822 spu-builtins.h.
20823 (struct spu_builtin_description): Likewise. Add GTY marker.
20824 Do not use enum spu_function_code or enum insn_code.
20825 (spu_builtins): Add extern declaration.
20826
20827 * config/spu/spu.c: Do not include "spu-builtins.h".
20828 (enum spu_function_code, enum spu_builtin_type_index,
20829 V16QI_type_node, V8HI_type_node, V4SI_type_node, V2DI_type_node,
20830 V4SF_type_node, V2DF_type_node, unsigned_V16QI_type_node,
20831 unsigned_V8HI_type_node, unsigned_V4SI_type_node,
20832 unsigned_V2DI_type_node): Move here from spu-builtins.h.
20833 (spu_builtin_types): Make static. Add GTY marker.
20834 (spu_builtins): Add extern declaration with GTY marker.
20835 Include "gt-spu.h".
20836
20837 * config/spu/spu-c.c: Do not include "spu-builtins.h".
20838 (spu_resolve_overloaded_builtin): Do not use spu_function_code.
20839 Check programmatically whether all parameters are scalar.
20840
20841 * config/spu/t-spu-elf (spu.o, spu-c.o): Update dependencies.
20842
20843 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
20844
20845 * gimplify.c (gimplify_modify_expr_rhs) <VAR_DECL>: Do not do a direct
20846 assignment from the constructor either if the target is volatile.
20847
20848 2009-04-23 Daniel Jacobowitz <dan@codesourcery.com>
20849
20850 * config/arm/arm.md (insv): Do not share operands[0].
20851
20852 2009-04-23 Nathan Sidwell <nathan@codesourcery.com>
20853
20854 * config/vxlib-tls.c (active_tls_threads): Delete.
20855 (delete_hook_installed): New.
20856 (tls_delete_hook): Don't delete the delete hook.
20857 (tls_destructor): Delete it here.
20858 (__gthread_set_specific): Adjust installing the delete hook.
20859 (tls_delete_hook): Use __gthread_enter_tsd_dtor_context and
20860 __gthread_leave_tsd_dtor_context.
20861
20862 2009-04-23 Rafael Avila de Espindola <espindola@google.com>
20863
20864 * c-format.c (gcc_tdiag_char_table): Add support for %E.
20865
20866 2009-04-23 Uros Bizjak <ubizjak@gmail.com>
20867
20868 * config/alpha/alpha.c (alpha_legitimize_reload_address): Add cast to
20869 enum type.
20870 (alpha_rtx_costs): Ditto.
20871 (emit_unlikely_jump): Use add_reg_note.
20872 (emit_frame_store_1): Ditto.
20873 (alpha_expand_prologue): Ditto.
20874 (alpha_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
20875 * config/alpha/alpha.c (Unicos/Mk address splitter): Use add_reg_note.
20876
20877 2009-04-23 Nick Clifton <nickc@redhat.com>
20878
20879 * config/v850/v850.md (epilogue): Remove suppressed code.
20880 (return): Rename to return_simple and remove test of frame size.
20881 * config/v850/v850.c (expand_epilogue): Rename call to gen_return
20882 to gen_return_simple.
20883
20884 2009-04-22 Jing Yu <jingyu@google.com>
20885
20886 PR testsuite/39781
20887 * config/arm/arm.h: Define HANDLE_PRAGMA_PACK_PUSH_POP.
20888
20889 2009-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
20890
20891 PR C/31499
20892 * c-typeck.c (process_init_element): Treat VECTOR_TYPE like ARRAY_TYPE
20893 and RECORD_TYPE/UNION_TYPE. When outputing the actual element and the
20894 value is a VECTOR_CST, the element type is the element type of the
20895 vector.
20896
20897 2009-04-22 DJ Delorie <dj@redhat.com>
20898
20899 * config/m32c/m32c.h: Update GTY annotations to new syntax.
20900
20901 2009-04-22 Jakub Jelinek <jakub@redhat.com>
20902
20903 * alias.c (find_base_term): Move around LO_SUM case, so that
20904 CONST falls through into PLUS/MINUS handling.
20905
20906 PR c/39855
20907 * fold-const.c (fold_binary) <case LSHIFT_EXPR>: When optimizing
20908 into 0, use omit_one_operand.
20909
20910 2009-04-23 Ben Elliston <bje@au.ibm.com>
20911
20912 * config/rs6000/linux-unwind.h (get_regs): Remove type
20913 puns. Change the type of `pc' to an array of unsigned ints and
20914 update all users. Constify frame24.
20915
20916 2009-04-22 DJ Delorie <dj@redhat.com>
20917
20918 * config/m32c/m32c.c (m32c_special_page_vector_p): Move
20919 declarations before code.
20920 (current_function_special_page_vector): Likewise.
20921 (m32c_expand_insv): Silence a warning.
20922
20923 2009-04-21 Taras Glek <tglek@mozilla.com>
20924
20925 * alias.c: Update GTY annotations to new syntax.
20926 * basic-block.h: Likewise.
20927 * bitmap.h: Likewise.
20928 * c-common.h: Likewise.
20929 * c-decl.c: Likewise.
20930 * c-parser.c: Likewise.
20931 * c-pragma.c: Likewise.
20932 * c-tree.h: Likewise.
20933 * cfgloop.h: Likewise.
20934 * cgraph.h: Likewise.
20935 * config/alpha/alpha.c: Likewise.
20936 * config/arm/arm.h: Likewise.
20937 * config/avr/avr.h: Likewise.
20938 * config/bfin/bfin.c: Likewise.
20939 * config/cris/cris.c: Likewise.
20940 * config/darwin.c: Likewise.
20941 * config/frv/frv.c: Likewise.
20942 * config/i386/i386.c: Likewise.
20943 * config/i386/i386.h: Likewise.
20944 * config/i386/winnt.c: Likewise.
20945 * config/ia64/ia64.h: Likewise.
20946 * config/iq2000/iq2000.c: Likewise.
20947 * config/mips/mips.c: Likewise.
20948 * config/mmix/mmix.h: Likewise.
20949 * config/pa/pa.c: Likewise.
20950 * config/pa/pa.h: Likewise.
20951 * config/rs6000/rs6000.c: Likewise.
20952 * config/s390/s390.c: Likewise.
20953 * config/sparc/sparc.c: Likewise.
20954 * config/xtensa/xtensa.c: Likewise.
20955 * cselib.h: Likewise.
20956 * dbxout.c: Likewise.
20957 * dwarf2out.c: Likewise.
20958 * except.c: Likewise.
20959 * except.h: Likewise.
20960 * fixed-value.h: Likewise.
20961 * function.c: Likewise.
20962 * function.h: Likewise.
20963 * gimple.h: Likewise.
20964 * integrate.c: Likewise.
20965 * optabs.c: Likewise.
20966 * output.h: Likewise.
20967 * real.h: Likewise.
20968 * rtl.h: Likewise.
20969 * stringpool.c: Likewise.
20970 * tree-data-ref.c: Likewise.
20971 * tree-flow.h: Likewise.
20972 * tree-scalar-evolution.c: Likewise.
20973 * tree-ssa-address.c: Likewise.
20974 * tree-ssa-alias.h: Likewise.
20975 * tree-ssa-operands.h: Likewise.
20976 * tree.c: Likewise.
20977 * tree.h: Likewise.
20978 * varasm.c: Likewise.
20979 * varray.h: Likewise.
20980 * vec.h: Likewise.
20981 * coretypes.h: Do not define GTY macro if it is already defined.
20982 * doc/gty.texi: Update GTY documentation to new syntax.
20983 * gengtype-lex.l: Enforce attribute-like syntax for GTY
20984 annotations on structs.
20985 * gengtype-parse.c: Likewise.
20986
20987 2009-04-22 Mark Heffernan <meheff@google.com>
20988
20989 * gcc.c (LINK_COMMAND_SPEC): Link with gcov with -fprofile-generate=.
20990
20991 2009-04-22 Kazu Hirata <kazu@codesourcery.com>
20992
20993 * config/arm/arm.c (arm_rtx_costs_1): Use power_of_two_operand
20994 where appropriate.
20995
20996 2009-04-22 Kazu Hirata <kazu@codesourcery.com>
20997
20998 * config/arm/arm.c (arm_size_rtx_costs): Treat a PLUS with a shift
20999 the same as a PLUS without a shift. Increase the cost of a
21000 CONST_INT in MULT.
21001
21002 2009-04-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
21003
21004 * Makefile.in: Update dependencies.
21005 * errors.c (warning): Remove unused parameter 'opt'. Returns 'void'.
21006 * errors.h: Remove bogus comment about compatibility.
21007 (warning): Update declaration.
21008 * genautomata.c: Update all calls to warning.
21009 * gimple.c: Do not include errors.h. Include toplev.h.
21010 * tree-ssa-structalias.c: Do not include errors.h.
21011 * omega.c: Likewise.
21012 * tree-ssa-reassoc.c: Likewise.
21013 * config/spu/spu-c.c: Likewise.
21014 * config/spu/t-spu-elf: Update dependencies.
21015
21016 2009-04-22 Richard Guenther <rguenther@suse.de>
21017
21018 PR tree-optimization/39824
21019 * tree-ssa-ccp.c (fold_const_aggregate_ref): For INDIRECT_REFs
21020 make sure the types are compatible.
21021
21022 2009-04-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
21023
21024 PR c++/14875
21025 * c-common.c (c_parse_error): Take a token_flags parameter.
21026 Use token_type for the token type instead.
21027 Pass token_flags to cpp_type2name.
21028 * c-common.h (c_parse_error): Update declaration.
21029 * c-parser.c (c_parser_error): Pass 0 as token flags.
21030
21031 2009-04-22 Andrey Belevantsev <abel@ispras.ru>
21032
21033 PR rtl-optimization/39580
21034 * sel-sched-ir.c (insert_in_history_vect): Remove incorrect gcc_assert.
21035
21036 2009-04-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21037
21038 * function.c (expand_function_end): Do not emit a jump to the "naked"
21039 return label for fall-through returns.
21040 * except.c (sjlj_emit_function_exit): Always place the call to the
21041 unregister function at the location installed by expand_function_end.
21042
21043 2009-04-22 Richard Guenther <rguenther@suse.de>
21044
21045 PR tree-optimization/39845
21046 * tree-switch-conversion.c (build_arrays): Add new referenced vars.
21047 (gen_inbound_check): Likewise.
21048
21049 2009-04-22 Nathan Sidwell <nathan@codesourcery.com>
21050
21051 * gthr-vxworks.h (struct __gthread_once_t): Add alignment and
21052 padding for PPC.
21053 (__GTHREAD_ONCE_INIT): Adjust ppc initializer.
21054 * config/vxlib.c (__gthread_once): Add race guard for PPC.
21055
21056 2009-04-22 Paolo Bonzini <bonzini@gnu.org>
21057
21058 * config/sh/sh.c (shift_insns_rtx, shiftcosts, gen_shifty_op,
21059 sh_dynamicalize_shift_p, shl_and_scr_length): Truncate
21060 shift counts to avoid out-of-bounds array accesses.
21061
21062 2009-04-22 Paolo Bonzini <bonzini@gnu.org>
21063
21064 * config/sparc/sparc.h (POINTER_SIZE): Fix comment.
21065 (Pmode): Move above.
21066
21067 2009-04-22 Uros Bizjak <ubizjak@gmail.com>
21068
21069 * config/alpha/alpha.c: Use REG_P, MEM_P, CONST_INT_P, JUMP_P,
21070 NONJUMP_INSN_P, CALL_P, LABEL_P and NOTE_P predicates instead of
21071 GET_CODE macro. Use IN_RANGE macro where appropriate.
21072 * config/alpha/alpha.h: Ditto.
21073 * config/alpha/alpha.md: Ditto.
21074 * config/alpha/constraints.md: Ditto.
21075 * config/alpha/predicates.md: Ditto.
21076
21077 2009-04-22 Paolo Bonzini <bonzini@gnu.org>
21078
21079 * defaults.h (GO_IF_MODE_DEPENDENT_ADDRESS): Provide empty default.
21080 * config/frv/frv.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21081 * config/s390/s390.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21082 * config/m32c/m32c.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21083 * config/spu/spu.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21084 * config/i386/i386.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21085 * config/sh/sh.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21086 * config/pdp11/pdp11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21087 * config/avr/avr.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21088 * config/crx/crx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21089 * config/fr30/fr30.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21090 * config/m68hc11/m68hc11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21091 * config/cris/cris.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21092 * config/iq2000/iq2000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21093 * config/mn10300/mn10300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21094 * config/ia64/ia64.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21095 * config/m68k/m68k.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21096 * config/picochip/picochip.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21097 * config/arc/arc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21098 * config/mcore/mcore.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21099 * config/score/score.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21100 * config/arm/arm.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21101 * config/pa/pa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21102 * config/mips/mips.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21103 * config/v850/v850.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21104 * config/mmix/mmix.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21105 * config/bfin/bfin.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21106
21107 2009-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
21108
21109 * cfghooks.c (tidy_fallthru_edges): Remove find_basic_blocks
21110 references from comments.
21111 * cfgbuild.c: (count_basic_blocks): Delete.
21112 (find_basic_blocks_1): Delete.
21113 (find_basic_blocks): Delete.
21114 * except.c (finish_eh_generation): Make static. Move comment from
21115 except.h here. Remove find_basic_blocks references from comments.
21116 * except.h (finish_eh_generation): Delete.
21117 * basic-block.h (find_basic_blocks): Delete.
21118 * config/sh/sh.c (sh_output_mi_thunk): Delete a "#if 0" block.
21119
21120 2009-04-22 Dave Korn <dave.korn.cygwin@gmail.com>
21121
21122 * sdbout.c (sdbout_symbol): Pass VOIDmode to eliminate_regs.
21123 (sdbout_parms): Likewise.
21124
21125 2009-04-21 Kaz Kojima <kkojima@gcc.gnu.org>
21126
21127 * config/sh/sh.c (prepare_cbranch_operands): Use
21128 LAST_AND_UNUSED_RTX_CODE instead of CODE_FOR_nothing.
21129 (expand_cbranchdi4): Likewise.
21130 (from_compare): Add cast to enum type.
21131 (expand_cbranchsi4): Use add_reg_note.
21132 (output_stack_adjust, push, pop, sh_expand_prologue): Likewise.
21133 (sh_insn_length_adjustment): Use sh_cpu_attr instead of sh_cpu.
21134 (sh_initialize_trampoline): Change 0 to LCT_NORMAL in function call.
21135 (sh_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
21136 * config/sh/sh.md (cbranchsi4): Use LAST_AND_UNUSED_RTX_CODE
21137 instead of CODE_FOR_nothing.
21138 (cbranchdi4): Likewise. Fix the order of arguments for
21139 gen_rtx_fmt_ee.
21140 (push_fpscr): Use add_reg_note.
21141 (pop_fpscr, movdf_i4+1, reload_outdf__RnFRm+3, reload_outdf__RnFRm+4,
21142 reload_outdf__RnFRm+5, fpu_switch+1, fpu_switch+2): Likewise.
21143
21144 2009-04-21 Joseph Myers <joseph@codesourcery.com>
21145
21146 * ABOUT-GCC-NLS, ChangeLog, ChangeLog-1997, ChangeLog-1998,
21147 ChangeLog-1999, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
21148 ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
21149 ChangeLog-2007, ChangeLog-2008, ChangeLog.dataflow, ChangeLog.lib,
21150 ChangeLog.ptr, ChangeLog.tree-ssa, ChangeLog.tuples, FSFChangeLog,
21151 FSFChangeLog.10, FSFChangeLog.11, LANGUAGES, ONEWS, acinclude.m4,
21152 config/alpha/gnu.h, config/alpha/libgcc-alpha-ldbl.ver,
21153 config/alpha/t-osf4, config/alpha/t-vms, config/alpha/va_list.h,
21154 config/alpha/x-vms, config/arc/t-arc,
21155 config/arm/README-interworking, config/arm/arm-c.c,
21156 config/arm/gentune.sh, config/arm/libgcc-bpabi.ver,
21157 config/arm/t-arm, config/arm/t-arm-elf, config/arm/t-arm-softfp,
21158 config/arm/t-bpabi, config/arm/t-linux, config/arm/t-linux-eabi,
21159 config/arm/t-netbsd, config/arm/t-pe, config/arm/t-strongarm-elf,
21160 config/arm/t-symbian, config/arm/t-vxworks, config/arm/t-wince-pe,
21161 config/avr/t-avr, config/bfin/elf.h, config/bfin/libgcc-bfin.ver,
21162 config/bfin/linux.h, config/bfin/t-bfin, config/bfin/t-bfin-elf,
21163 config/bfin/t-bfin-linux, config/bfin/t-bfin-uclinux,
21164 config/bfin/uclinux.h, config/cris/mulsi3.asm, config/cris/t-cris,
21165 config/cris/t-elfmulti, config/crx/t-crx,
21166 config/darwin-ppc-ldouble-patch.def, config/darwin-sections.def,
21167 config/divmod.c, config/fr30/t-fr30, config/frv/libgcc-frv.ver,
21168 config/frv/t-frv, config/frv/t-linux, config/h8300/genmova.sh,
21169 config/h8300/t-h8300, config/i386/athlon.md,
21170 config/i386/darwin-libgcc.10.4.ver,
21171 config/i386/darwin-libgcc.10.5.ver, config/i386/libgcc-glibc.ver,
21172 config/i386/mach.h, config/i386/netbsd.h, config/i386/t-crtpc,
21173 config/i386/t-cygming, config/i386/t-cygwin, config/i386/t-i386,
21174 config/i386/t-linux64, config/i386/t-nwld,
21175 config/i386/t-rtems-i386, config/i386/t-sol2-10,
21176 config/i386/x-mingw32, config/ia64/div.md, config/ia64/elf.h,
21177 config/ia64/ia64.opt, config/ia64/libgcc-glibc.ver,
21178 config/ia64/libgcc-ia64.ver, config/ia64/linux.h,
21179 config/ia64/sysv4.h, config/ia64/t-hpux, config/ia64/t-ia64,
21180 config/iq2000/abi, config/iq2000/lib2extra-funcs.c,
21181 config/iq2000/t-iq2000, config/libgcc-glibc.ver,
21182 config/m32r/libgcc-glibc.ver, config/m32r/t-linux,
21183 config/m32r/t-m32r, config/m68hc11/t-m68hc11,
21184 config/m68k/t-floatlib, config/m68k/t-linux, config/m68k/t-mlibs,
21185 config/m68k/t-uclinux, config/mcore/t-mcore,
21186 config/mcore/t-mcore-pe, config/mips/20kc.md, config/mips/4130.md,
21187 config/mips/5400.md, config/mips/5500.md, config/mips/crti.asm,
21188 config/mips/crtn.asm, config/mips/irix-crti.asm,
21189 config/mips/irix-crtn.asm, config/mips/libgcc-mips16.ver,
21190 config/mips/mips-dsp.md, config/mips/mips-dspr2.md,
21191 config/mips/mips-fixed.md, config/mips/sb1.md,
21192 config/mips/sr71k.md, config/mips/t-elf, config/mips/t-gofast,
21193 config/mips/t-iris6, config/mips/t-isa3264,
21194 config/mips/t-libgcc-mips16, config/mips/t-linux64,
21195 config/mips/t-mips, config/mips/t-r3900, config/mips/t-rtems,
21196 config/mips/t-sb1, config/mips/t-sde, config/mips/t-sdemtk,
21197 config/mips/t-slibgcc-irix, config/mips/t-sr71k, config/mips/t-st,
21198 config/mips/t-vr, config/mips/t-vxworks, config/mmix/t-mmix,
21199 config/mn10300/t-linux, config/mn10300/t-mn10300,
21200 config/pa/pa32-regs.h, config/pa/t-hpux-shlib, config/pa/t-linux,
21201 config/pa/t-linux64, config/pa/t-pa64, config/pdp11/t-pdp11,
21202 config/picochip/libgccExtras/clzsi2.asm,
21203 config/picochip/t-picochip, config/rs6000/darwin-ldouble-format,
21204 config/rs6000/darwin-libgcc.10.4.ver,
21205 config/rs6000/darwin-libgcc.10.5.ver,
21206 config/rs6000/libgcc-ppc-glibc.ver, config/rs6000/ppc-asm.h,
21207 config/rs6000/t-aix43, config/rs6000/t-aix52,
21208 config/rs6000/t-darwin, config/rs6000/t-fprules,
21209 config/rs6000/t-fprules-fpbit, config/rs6000/t-linux64,
21210 config/rs6000/t-lynx, config/rs6000/t-netbsd,
21211 config/rs6000/t-ppccomm, config/rs6000/t-ppcendian,
21212 config/rs6000/t-ppcgas, config/rs6000/t-rs6000,
21213 config/rs6000/t-rtems, config/rs6000/t-spe,
21214 config/rs6000/t-vxworks, config/s390/libgcc-glibc.ver,
21215 config/score/t-score-elf, config/sh/divcost-analysis,
21216 config/sh/libgcc-glibc.ver, config/sh/t-netbsd, config/sh/t-sh,
21217 config/sh/t-sh64, config/sh/t-superh, config/sh/t-symbian,
21218 config/sparc/libgcc-sparc-glibc.ver, config/sparc/sol2-bi.h,
21219 config/sparc/sol2-gas.h, config/sparc/sol2-gld-bi.h,
21220 config/sparc/t-elf, config/sparc/t-linux64, config/sparc/t-sol2,
21221 config/stormy16/stormy-abi, config/stormy16/t-stormy16,
21222 config/t-darwin, config/t-libunwind, config/t-libunwind-elf,
21223 config/t-linux, config/t-lynx, config/t-slibgcc-elf-ver,
21224 config/t-slibgcc-sld, config/t-sol2, config/t-vxworks,
21225 config/udivmod.c, config/udivmodsi4.c, config/v850/t-v850,
21226 config/v850/t-v850e, config/xtensa/t-xtensa, diagnostic.def,
21227 gdbinit.in, glimits.h, gstab.h, gsyms.h, java/ChangeLog,
21228 java/ChangeLog.ptr, java/ChangeLog.tree-ssa, libgcc-std.ver,
21229 limitx.h, version.c, xcoff.h: Add copyright and license notices.
21230 * config/h8300/genmova.sh: Include copyright and license notices
21231 in generated output.
21232 * config/h8300/mova.md: Regenerate.
21233 * doc/install.texi2html: Include word "Copyright" in copyright
21234 notice and use name "Free Software Foundation, Inc.".
21235 * ChangeLog, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
21236 ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
21237 ChangeLog-2007, ChangeLog-2008: Correct dates.
21238
21239 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
21240
21241 * c-common.c (c_common_truthvalue_conversion): Use LOCATION to build
21242 NE_EXPR operations as well.
21243 * c-parser.c (c_parser_condition): Do not set location information on
21244 the condition.
21245 (c_parser_conditional_expression): Likewise.
21246 (c_parser_binary_expression): Set location information on operators.
21247 * c-typeck.c (build_unary_op) <TRUTH_NOT_EXPR>: Reset the location if
21248 TRUTH_NOT_EXPR has been folded.
21249 * fold-const.c (fold_truth_not_expr): Copy location information from
21250 the incoming expression to the outgoing one.
21251 * gimplify.c (shortcut_cond_r): Add locus parameter. Pass it to
21252 recursive calls on the LHS of the operator but pass that of the
21253 operator to recursive calls on the RHS of the operator. Set it
21254 on the COND_EXPR.
21255 (shortcut_cond_expr): Set the locus of the operator on the second
21256 COND_EXPR and that of the expression on the first in degenerate cases.
21257 Pass the locus of the expression to calls to shortcut_cond_r.
21258 Set the locus of the 'then' block on the associated jump, if any.
21259 (gimplify_boolean_expr): Add locus parameter. Set it on the COND_EXPR.
21260 (gimplify_expr) <TRUTH_ANDIF_EXPR>: Pass the locus of the outer
21261 expression to call to gimplify_boolean_expr.
21262
21263 2009-04-21 Kai Tietz <kai.tietz@onevision.com>
21264
21265 * config.gcc: Add additional configuration for
21266 i686-w64-mingw* and x86_64-w64-mingw* triplet.
21267 * config/i386/mingw-w64.h: New mingw-w64 specific header.
21268 (CPP_SPEC): Redefine for allowing -municode option.
21269 (STARTFILE_SPEC): Likewise.
21270 * config/i386/t-mingw-w64: New.
21271 * config/i386/mingw-w64.opt: New.
21272 (municode): Add new target option.
21273 * doc/invoke.texi (municode): Add documentation for new option.
21274
21275 2009-04-21 Ian Lance Taylor <iant@google.com>
21276
21277 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
21278 Correct test for number of arguments.
21279 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
21280
21281 2009-04-21 Andreas Schwab <schwab@linux-m68k.org>
21282
21283 * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Use enum for second
21284 argument of emit_library_call.
21285
21286 2009-04-21 Richard Guenther <rguenther@suse.de>
21287
21288 PR middle-end/39829
21289 * gimple.c (walk_stmt_load_store_addr_ops): Catch addresses
21290 inside VIEW_CONVERT_EXPRs.
21291
21292 2009-04-21 Martin Jambor <mjambor@suse.cz>
21293
21294 * tree-switch-conversion.c (build_constructors): Split a long line.
21295 (constructor_contains_same_values_p): New function.
21296 (build_one_array): Create assigns of constants if possible, do not
21297 call mark_sym_for_renaming, call update_stmt.
21298 (build_arrays): Call make_ssa_name (create_tmp_var ()) instead of
21299 make_rename_temp. Do not call mark_symbols_for_renaming, call
21300 update_stmt.
21301 (gen_def_assigns): Do not call mark_symbols_for_renaming or
21302 find_new_referenced_vars, call update_stmt.
21303 (gen_inbound_check): Use create_tmp_var and create ssa names manually
21304 instead of calling make_rename_temp. Do not call
21305 find_new_referenced_vars or mark_symbols_for_renaming, call
21306 update_stmt.
21307
21308 2009-04-21 Richard Guenther <rguenther@suse.de>
21309
21310 PR tree-optimization/39827
21311 * tree-ssa-phiprop.c (propagate_with_phi): Check SSA_NAME is in range.
21312 (tree_ssa_phiprop): Pass the correct array size.
21313
21314 2009-04-21 Uros Bizjak <ubizjak@gmail.com>
21315
21316 * config/alpha/alpha.md (tune): Add cast to enum attr_tune.
21317
21318 2009-04-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
21319
21320 PR 16202
21321 * c-typeck.c (lvalue_p): Move declaration ...
21322 * c-common.h (lvalue_p): ... to here.
21323 * c-common.c (candidate_equal_p): New.
21324 (add_tlist): Use it.
21325 (merge_tlist): Use it.
21326 (warn_for_collisions_1): Likewise.
21327 (warning_candidate_p): Accept more candidates.
21328 (verify_tree): A warning candidate can be an expression. Use
21329 candidate_equal_p.
21330
21331 2009-04-21 Ben Elliston <bje@au.ibm.com>
21332
21333 PR target/5267
21334 * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
21335 for -mcall-eabi, -mcall-aixdesc, -mcall-freebsd and -mcall-openbsd
21336 options. Remove -mcall-solaris documentation.
21337
21338 2009-04-21 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
21339
21340 PR c++/13358
21341 * doc/invoke.texi (-Wlong-long): Update description.
21342 * c-lex (interpret_integer): Only warn if there was no previous
21343 overflow and -Wlong-long is enabled.
21344 * c-decl.c (declspecs_add_type): Drop redundant flags.
21345 * c.opt (Wlong-long): Init to -1.
21346 * c-opts.c (sanitize_cpp_opts): Synchronize cpp's warn_long_long
21347 and front-end warn_long_long. Wlong-long only depends on other
21348 flags if it is uninitialized.
21349 * c-parser.c (disable_extension_diagnostics): warn_long_long is
21350 the same for CPP and FE.
21351 (restore_extension_diagnostics): Likewise.
21352
21353 2009-04-20 Ian Lance Taylor <iant@google.com>
21354
21355 Fix enum conversions which are invalid in C++:
21356 * auto-inc-dec.c (attempt_change): Change 0 to SET in function call.
21357 * calls.c (store_one_arg): Change 0 to EXPAND_NORMAL in function call.
21358 * cse.c (hash_rtx_cb): Change 0 to VOIDmode in function call.
21359 * dbgcnt.c (dbg_cnt_set_limit_by_name): Add cast to enum type.
21360 * dbxout.c (dbxout_symbol): Change 0 to VOIDmode in function call.
21361 (dbxout_parms): Likewise.
21362 * df-core.c (df_set_flags): Change changeable_flags parameter to int.
21363 (df_clear_flags): Likewise.
21364 * df-problems.c (df_rd_bb_local_compute_process_def): Change
21365 top_flag parameter to int.
21366 (df_chain_create_bb_process_use): Likewise.
21367 (df_chain_add_problem): Change chain_flags parameter to unsigned int.
21368 Remove cast.
21369 * df-scan.c (df_ref_create): Change ref_flags parameter to int.
21370 (df_ref_create_structure, df_def_record_1): Likewise.
21371 (df_defs_record, df_uses_record, df_get_call_refs): Likewise.
21372 (df_notes_rescan): Change 0 to VOIDmode in function call.
21373 (df_get_call_refs, df_insn_refs_collect): Likewise.
21374 (df_bb_regs_collect): Likewise.
21375 (df_entry_block_defs_collect): Likewise.
21376 (df_exit_block_uses_collect): Likewise.
21377 * df.h: Update declarations.
21378 * double-int.c (double_int_divmod): Add cast to enum type.
21379 * dse.c (replace_inc_dec): Reverse parameters to gen_int_mode.
21380 * dwarf2out.c (new_reg_loc_descr): Add casts to enum type.
21381 (based_loc_descr): Likewise.
21382 (loc_descriptor_from_tree_1): Change first_op and second_op to
21383 enum dwarf_location_atom. Add cast to enum type.
21384 * expmed.c (init_expmed): Change 0 to SET in function call.
21385 * expr.c (init_expr_target): Change 0 to VOIDmode in function call.
21386 (expand_expr_real_1): Change 0 to EXPAND_NORMAL in function call.
21387 (do_store_flag): Likewise.
21388 * fixed-value.h (struct fixed_value): Change mode to enum
21389 machine_mode.
21390 * function.c (assign_parms): Change 0 to VOIDmode in function call.
21391 * genautomata.c (insert_automaton_decl): Change 1 to INSERT in
21392 function call.
21393 (insert_insn_decl, insert_decl, insert_state): Likewise.
21394 (automata_list_finish): Likewise.
21395 * genrecog.c (process_define_predicate): Add cast to enum type.
21396 * gensupport.c (init_predicate_table): Add cast to enum type.
21397 * gimple.c (gimple_build_return): Change 0 to ERROR_MARK in
21398 function call.
21399 (gimple_build_call_1, gimple_build_label): Likewise.
21400 (gimple_build_goto, gimple_build_asm_1): Likewise.
21401 (gimple_build_switch_1, gimple_build_cdt): Likewise.
21402 * gimple.h (GIMPLE_CHECK): Change 0 to ERROR_MARK in function call.
21403 (enum fallback): Rename from enum fallback_t.
21404 (fallback_t): Typedef as int.
21405 * gimple-low.c (lower_builtin_setjmp): Change TSI_SAME_STMT to
21406 GSI_SAME_STMT in function call.
21407 * ira.c (setup_class_subset_and_memory_move_costs): Add casts to
21408 enum type.
21409 (setup_reg_class_relations): Likewise.
21410 (setup_reg_class_nregs): Change cl to int. Add casts to enum type.
21411 (setup_prohibited_class_mode_regs): Add cast to enum type.
21412 (setup_prohibited_mode_move_regs): Likewise.
21413 * ira-costs.c (record_reg_classes): Change rclass to enum reg_class.
21414 (record_address_regs): Change i to enum reg_class.
21415 * lists.c (alloc_EXPR_LIST): Add cast to enum type.
21416 * machmode.h (GET_MODE_CLASS): Cast value to enum mode_class.
21417 (GET_MODE_WIDER_MODE): Cast value to enum machine_mode.
21418 (GET_MODE_2XWIDER_MODE): Likewise.
21419 (GET_CLASS_NARROWEST_MODE): Likewise.
21420 * omp-low.c (expand_omp_for): Add cast to enum type.
21421 * optabs.c (debug_optab_libfuncs): Add casts to enum type.
21422 * opts.c (enable_warning_as_error): Change kind to diagostic_t.
21423 * postreload.c (reload_cse_simplify_operands): Change rclass local
21424 to enum reg_class.
21425 * predict.c (combine_predictions_for_insn): Change best_predictor
21426 and predictor to enum br_predictor.
21427 (combine_predictions_for_bb): Likewise.
21428 (build_predict_expr): Change assignment to PREDICT_EXPR_OUTCOME to
21429 use SET_PREDICT_EXPR_OUTCOME.
21430 * real.c (real_arithmetic): Change icode to code in function call.
21431 * reginfo.c (init_move_cost): Add casts to enum type.
21432 (init_reg_sets_1, init_fake_stack_mems): Likewise.
21433 * regmove.c (regclass_compatible_p): Change class0 and class1 to
21434 enum reg_class.
21435 * reload.c (find_valid_class): Add casts to enum type.
21436 (push_reload): Change 0 to NO_REGS in function call.
21437 (find_reloads): Change this_alternative to array of enum
21438 reg_class. Remove some now-unnecessary casts.
21439 (make_memloc): Change 0 to VOIDmode in function call.
21440 * reload1.c (reload): Change 0 to VOIDmode in function call.
21441 (eliminate_regs_1, elimination_effects): Likewise.
21442 (eliminate_regs_in_insn): Likewise.
21443 (emit_input_reload_insns): Add cast to enum type.
21444 (delete_output_reload): Change 0 to VOIDmode in function call.
21445 * reorg.c (insn_sets_resource_p): Convert include_delayed_effects
21446 to enum type in function call.
21447 * tree.h (PREDICT_EXPR_OUTCOME): Add cast to enum type.
21448 (SET_PREDICT_EXPR_OUTCOME): Define.
21449 * tree-dump.c (get_dump_file_info): Change phase parameter to int.
21450 (get_dump_file_name, dump_begin, dump_enabled_p): Likewise.
21451 (dump_initialized_p, dump_flag_name, dump_end): Likewise.
21452 (dump_function): Likewise.
21453 * tree-dump.h: Update declarations.
21454 * tree-pass.h: Update declarations.
21455 * varasm.c (assemble_integer): Change mclass to enum mode_class.
21456 * config/arm/arm.c (thumb_legitimize_reload_address): Add cast to
21457 enum type.
21458 (arm_rtx_costs_1): Correct parenthesization.
21459 (arm_rtx_costs): Add casts to enum type.
21460 (adjacent_mem_locations): Reverse arguments to const_ok_for_op.
21461 (vfp_emit_fstmd): Use add_rg_note.
21462 (emit_multi_reg_push, emit_sfm): Likewise.
21463 (thumb_set_frame_pointer): Likewise.
21464 (arm_expand_prologue): Likewise.
21465 (arm_regno_class): Change return type to enum reg_class.
21466 (thumb1_expand_prologue): Use add_reg_note.
21467 * config/arm/arm-protos.h (arm_regno_class): Update declaration.
21468 * config/arm/arm.h (INITIALIZE_TRAMPOLINE): Change 0 to LCT_NORMAL
21469 in function call.
21470 * config/arm/gentune.sh: Add cast to enum type.
21471 * config/arm/arm-tune.md: Rebuild.
21472 * config/i386/i386.c (ix86_expand_prologue): Use add_reg_note.
21473 (ix86_split_fp_branch, predict_jump): Likewise.
21474 (ix86_expand_multi_arg_builtin): Change sub_code from enum
21475 insn_code to enum rtx_code.
21476 (ix86_builtin_vectorized_function): Add cast to enum type.
21477 * config/i386/i386.md (truncdfsf2): Change slot to enum
21478 ix86_stack_slot.
21479 (truncxf<mode>2, isinf<mode>2): Likewise.
21480 * config/i386/i386-c.c (ix86_pragma_target_parse): Add cast to
21481 enum type.
21482 * config/ia64/ia64.c (ia64_split_tmode_move): Use add_reg_note.
21483 (spill_restore_mem, do_spill, ia64_expand_prologue): Likewise.
21484 (insert_bundle_state): Change 1 to INSERT in function call.
21485 (ia64_add_bundle_selector_before): Likewise.
21486 * config/ia64/ia64.md (cpu attr): Add cast to enum type.
21487 (save_stack_nonlocal): Change 0 to LCT_NORMAL in function call.
21488 (restore_stack_nonlocal): Likewise.
21489 * config/mips/mips.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL in
21490 function call.
21491 * config/mips/mips.c (mips_binary_cost): Change 0 to SET in
21492 function call.
21493 (mips_rtx_costs): Likewise.
21494 (mips_override_options): Add casts to enum type.
21495 * config/mips/sdemtk.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL
21496 in function call.
21497 * config/pa/pa.c (legitimize_pic_address): Use add_reg_note.
21498 (store_reg, set_reg_plus_d): Likewise.
21499 (hppa_expand_prologue, hppa_profile_hook): Likewise.
21500 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
21501 cast to enum type.
21502 (altivec_expand_vec_set_builtin): Change 0 to EXPAND_NORMAL in
21503 function call.
21504 (emit_unlikely_jump): Use add_reg_note.
21505 (rs6000_emit_allocate_stack): Likewise.
21506 (rs6000_frame_related, rs6000_emit_prologue): Likewise.
21507 (output_toc): Change 1 to INSERT in function call.
21508 (output_profile_hook): Change 0 to LCT_NORMAL in function call.
21509 (rs6000_initialize_trampoline): Likewise.
21510 (rs6000_init_dwarf_reg_sizes_extra): Change 0 to EXPAND_NORMAL in
21511 function call.
21512 * config/s390/s390.c (s390_rtx_costs): Add cast to enum type.
21513 (s390_expand_movmem): Change 0 to OPTAB_DIRECT in function call.
21514 (s390_expand_setmem, s390_expand_cmpmem): Likewise.
21515 (save_gprs): Use add_reg_note.
21516 (s390_emit_prologue): Likewise.
21517 (s390_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
21518 * config/sparc/sparc.c (sparc_expand_prologue): Use add_reg_note.
21519 (sparc_fold_builtin): Add cast to enum type.
21520 * config/spu/spu.c (spu_emit_branch_or_set): Change ior_code to
21521 enum insn_code.
21522 (spu_expand_prologue): Use add_reg_note.
21523 (expand_builtin_args): Change 0 to EXPAND_NORMAL in function call.
21524
21525 2009-04-20 Ian Lance Taylor <iant@google.com>
21526
21527 * c-parser.c (c_parser_attributes): Change VEC back to tree list.
21528 (c_parser_postfix_expression_after_primary): Get VEC for list of
21529 arguments. Get original types of arguments. Call
21530 build_function_call_vec.
21531 (cached_expr_list_1, cached_expr_list_2): New static variables.
21532 (c_parser_expr_list): Change return type to VEC *. Add
21533 p_orig_types parameter. Change all callers.
21534 (c_parser_release_expr): New static function.
21535 (c_parser_vec_to_tree_list): New static function.
21536 * c-typeck.c (build_function_call): Rewrite to build a VEC and
21537 call build_function_call_vec.
21538 (build_function_call_vec): New function, based on old
21539 build_function_call.
21540 (convert_arguments): Remove nargs and argarray parameters. Change
21541 values to a VEC. Add origtypes parameter.
21542 (build_modify_expr): Add rhs_origtype parameter. Change all callers.
21543 (convert_for_assignment): Add origtype parameter. Change all
21544 callers. If warn_cxx_compat, check for conversion to an enum
21545 type when calling a function.
21546 (store_init_value): Add origtype parameter. Change all callers.
21547 (digest_init): Likewise.
21548 (struct init_node): Add origtype field.
21549 (add_pending_init): Add origtype parameter. Change all callers.
21550 (output_init_element): Likewise.
21551 (output_pending_init_elements): Pass origtype from init_node to
21552 output_init_element.
21553 (process_init_element): Pass origtype from c_expr to
21554 output_init_element.
21555 (c_finish_return): Add origtype parameter. Change all callers.
21556 * c-common.c (sync_resolve_size): Change params to VEC *. Change
21557 caller.
21558 (sync_resolve_params): Likewise.
21559 (sync_resolve_return): Change params to first_param. Change caller.
21560 (resolve_overloaded_builtins): Change params to VEC *. Change
21561 callers. Save first parameter around call to build_function_call_vec.
21562 * c-decl.c (finish_decl): Add origtype parameter. Change all
21563 callers. Call build_function_call_vec rather than
21564 build_function_call for cleanup.
21565 * c-tree.h: Update declarations.
21566 * c-common.h: Update declarations.
21567 * stub-objc.c (objc_rewrite_function_call): Change parameter from
21568 params to first_param.
21569 * target.h (struct gcc_target): Change resolve_overloaded_builtin
21570 params parameter from tree to void *.
21571 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
21572 Change arglist parameter to have type void *, and to be a pointer
21573 to a VEC.
21574 * config/rs6000/rs6000-protos.h
21575 (altivec_resolve_overloaded_builtin): Update declaration.
21576 * config/spu/spu-c.c (spu_resolved_overloaded_builtin): Change
21577 fnargs parameter to have type void *, and to be a pointer to a
21578 VEC. Call build_function_call_vec instead of
21579 build_function_call.
21580 * config/spu/spu-protos.h (spu_expand_builtin): Update declaration.
21581
21582 2009-04-20 Joey Ye <joey.ye@intel.com>
21583 Xuepeng Guo <xuepeng.guo@intel.com>
21584 H.J. Lu <hongjiu.lu@intel.com>
21585
21586 * config/i386/atom.md: Add bypasses with ix86_dep_by_shift_count.
21587
21588 * config/i386/i386.c (LEA_SEARCH_THRESHOLD): New macro.
21589 (IX86_LEA_PRIORITY): Likewise.
21590 (distance_non_agu_define): New function.
21591 (distance_agu_use): Likewise.
21592 (ix86_lea_for_add_ok): Likewise.
21593 (ix86_dep_by_shift_count): Likewise.
21594
21595 * config/i386/i386.md: Call ix86_lea_for_add_ok to decide we
21596 should split for LEA.
21597
21598 * config/i386/i386-protos.h (ix86_lea_for_add_ok): Declare new
21599 function.
21600 (ix86_dep_by_shift_count): Likewise.
21601
21602 2009-04-20 Richard Guenther <rguenther@suse.de>
21603
21604 * expr.c (handled_component_p): Move ...
21605 * tree.h (handled_component_p): ... here.
21606 * tree.def: Re-order BIT_FIELD_REF, COMPONENT_REF,
21607 ARRAY_REF, ARRAY_RANGE_REF, VIEW_CONVERT_EXPR, IMAGPART_EXPR
21608 and REALPART_EXPR to be in one group.
21609
21610 2009-04-20 Richard Guenther <rguenther@suse.de>
21611
21612 * basic-block.h (get_all_dominated_blocks): Declare.
21613 * dominance.c (get_all_dominated_blocks): New function.
21614 * tree-cfg.c (get_all_dominated_blocks): Remove.
21615 (remove_edge_and_dominated_blocks): Adjust.
21616 * tree-ssa-phiprop.c (tree_ssa_phiprop_1): Fold in ...
21617 (tree_ssa_phiprop): ... here. Use get_all_dominated_blocks
21618 instead of recursing.
21619
21620 2009-04-20 Doug Kwan <dougkwan@google.com>
21621
21622 * cgraph.h (cgraph_node_ptr): New type for vector functions.
21623 (struct cgraph_node_set_def): New type.
21624 (cgraph_node_set) New type. Also declare vector functions.
21625 (struct cgraph_node_set_element_def): New type.
21626 (cgraph_node_set_element): Ditto.
21627 (cgraph_node_set_iterator): New iterator type.
21628 (cgraph_node_set_new, cgraph_node_set_find, cgraph_node_set_add,
21629 cgraph_node_set_remove, dump_cgraph_node_set,
21630 debug_cgraph_node_set): New prototypes.
21631 (csi_end_p, csi_next, csi_node, csi_start, cgraph_node_in_set_p,
21632 cgraph_node_set_size): New inlines.
21633 * tree-pass.h (struct cgraph_node_set_def): New decl to avoid
21634 including cgraph.h.
21635 (struct ipa_opt_pass): Add struct cgraph_node_set_def
21636 argument to function 'write_summary'.
21637 * ipa.c: Include ggc.h.
21638 (hash_cgraph_node_set_element,
21639 eq_cgraph_node_set_element, cgraph_node_set_new,
21640 cgraph_node_set_add, cgraph_node_set_remove,
21641 cgraph_node_set_find, dump_cgraph_node_set,
21642 debug_cgraph_node_set): New functions.
21643 * Makefile.in (ipa.o): Add dependency on GGC_H.
21644
21645 2009-04-20 Ira Rosen <irar@il.ibm.com>
21646
21647 PR tree-optimization/39675
21648 * tree-vect-loop.c (vect_transform_loop): Remove currently redundant
21649 check of the return code of vect_schedule_slp. Check that
21650 stmt_vec_info still exists for the statement, before checking its
21651 vectorization type.
21652
21653 2009-04-20 Michael Matz <matz@suse.de>
21654
21655 * Makefile.in (generated_files): Take out $(simple_generated_c).
21656
21657 2009-04-19 Dave Korn <dave.korn.cygwin@gmail.com>
21658
21659 * config/i386/cygwin-stdint.h (INTPTR_TYPE): Remove "long".
21660 (UINTPTR_TYPE): Likewise.
21661
21662 2009-04-19 Joseph Myers <joseph@codesourcery.com>
21663
21664 PR c/37481
21665 * c-typeck.c (digest_init): Check for initializing an array with a
21666 string literal.
21667
21668 2009-04-19 Joseph Myers <joseph@codesourcery.com>
21669
21670 PR c/19771
21671 * c-semantics.c (pop_stmt_list): Propagate
21672 STATEMENT_LIST_HAS_LABEL to parent statement list.
21673
21674 2009-04-19 Adam Nemet <anemet@caviumnetworks.com>
21675
21676 * config/mips/mips.h (mips_tune_attr): New macro.
21677 * config/mips/mips.md (cpu): Use it.
21678
21679 2009-04-19 Joseph Myers <joseph@codesourcery.com>
21680
21681 PR c/38243
21682 * c-decl.c (shadow_tag_warned): Diagnose use of restrict when
21683 declaring a tag.
21684
21685 2009-04-19 Diego Novillo <dnovillo@google.com>
21686
21687 * toplev.c (compile_file): Move call to coverage_finish ...
21688 * cgraphunit.c (ipa_passes): ... here.
21689 Call cgraph_process_new_functions.
21690 * ipa-utils.c (get_base_var): Handle CONSTRUCTOR.
21691 * Makefile.in (cgraphunit.o): Add dependency on COVERAGE_H.
21692
21693 2009-04-19 Jan Hubicka <jh@suse.cz>
21694
21695 * cgraph.c (cgraph_create_edge, cgraph_set_call_stmt): Set proper
21696 cfun.
21697 (dump_cgraph_node): Dump can throw external flag.
21698 * ipa-pure-const.c (propagate): Fix propagation of nothrow flags.
21699
21700 2009-04-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
21701
21702 PR c/32061
21703 PR c++/36954
21704 * doc/invoke.texi: Add -Wlogical-op to -Wextra.
21705 * common.opt (Wlogical-op): Move from here...
21706 * c.opt (Wlogical-op): ... to here.
21707 * c-typeck.c (parser_build_binary_op): Update call to
21708 warn_logical_operator.
21709 * c-opts.c (c_common_post_options): Enable warn_logical_op with
21710 extra_warnings.
21711 * c-common.c (warn_logical_op): Update.
21712 * c-common.h (warn_logical_op): Update declaration.
21713
21714 2009-04-19 Eric Botcazou <ebotcazou@adacore.com>
21715
21716 * tree.c (protected_set_expr_location): Fix formatting.
21717
21718 2009-04-18 Joseph Myers <joseph@codesourcery.com>
21719
21720 PR c/27676
21721 * c-typeck.c (readonly_warning): new.
21722 (build_unary_op, build_modify_expr): Use readonly_warning for
21723 storing into something readonly but not const-qualified.
21724
21725 2009-04-18 Joseph Myers <joseph@codesourcery.com>
21726
21727 PR c/22367
21728 * c-typeck.c (build_unary_op): Check for taking address of
21729 expression of type void.
21730
21731 2009-04-18 Joseph Myers <joseph@codesourcery.com>
21732
21733 PR c/35210
21734 * c-typeck.c (build_function_call): Check for calling a function
21735 with qualified void return types. Call require_complete_type when
21736 generating a trap.
21737
21738 2009-04-18 Jan Hubicka <jh@suse.cz>
21739
21740 * cgraph.c (cgraph_make_edge, dump_cgraph_node, cgraph_set_call_stmt):
21741 Set nothrow flag.
21742 * cgraph.h (struct function): Reduce loop_nest to 30 bits; add
21743 can_throw_external flag.
21744 * ipa-reference.c (ipa_utils_reduced_inorder): Update call.
21745 * ipa-pure-const.c (ignore_edge): New function.
21746 (propagate): Compute order for NOTHROW computation; set NOTHROWs
21747 only over can_throw_external edges.
21748 (local_pure_const): Add nothrow flag.
21749 * ipa-utils.c (searchc): Add ignore_edge callback.
21750 (ipa_utils_reduced_inorder): Add ignore_edge callback.
21751 * ipa-utils.h (ipa_utils_reduced_inorder): Update prototype.
21752 (set_nothrow_function_flags): Update cgraph.
21753 * tree-cfg.c (verify_stmt): Relax nothrow checking when in IPA mode.
21754
21755 2009-04-18 Richard Guenther <rguenther@suse.de>
21756
21757 PR middle-end/39804
21758 * tree-ssa-ccp.c (fold_stmt_1): New function factored from ...
21759 (fold_stmt): ... this and ...
21760 (fold_stmt_inplace): ... this.
21761 (fold_stmt_1): Fold references in calls and asms.
21762 * tree-cfg.c (remove_useless_stmts_cond): Use fold_stmt.
21763
21764 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
21765
21766 * tree-vrp.c (ssa_name_nonzero_p): Remove.
21767 * tree.h: Remove the prototype for ssa_name_nonzero_p.
21768
21769 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
21770
21771 * tree.c (function_args_count): Remove.
21772 * tree.h: Remove the prototype for function_args_count.
21773
21774 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
21775
21776 * tree-iterator.c (expr_only): Remove.
21777 * tree.h: Remove the prototype for expr_only.
21778
21779 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
21780
21781 * reginfo.c (cannot_change_mode_set_regs): Remove.
21782 * rtl.h: Remove the prototype for cannot_change_mode_set_regs.
21783
21784 2009-04-08 Anatoly Sokolov <aesok@post.ru>
21785
21786 * config/avr/avr.md (*rotlsi3_8, *rotlsi3_16, *rotlsi3_24 ): Check
21787 whether operands 0 and 1 overlaps.
21788
21789 2009-04-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
21790
21791 PR middle-end/36902
21792 * tree-vrp.c (check_array_ref): Pass a location_t instead of a
21793 pointer. Use warning_at instead of warning.
21794 (search_for_addr_array): Likewise.
21795 (check_array_bounds): Likewise.
21796 (check_all_array_refs): Check that the incoming edge is not in the
21797 list of edges to be removed.
21798 (check_all_array_refs): Avoid the temporal pointer.
21799 (vrp_visit_cond_stmt): Fix typo.
21800 (simplify_switch_using_ranges): Handle the case where the switch
21801 index is an integer constant.
21802
21803 2009-04-18 Adam Nemet <anemet@caviumnetworks.com>
21804
21805 * config/mips/mips.c (mips_final_postscan_insn): Make it static.
21806
21807 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
21808
21809 * doc/extend.texi, doc/invoke.texi: Fix typos.
21810
21811 2009-04-17 Cary Coutant <ccoutant@google.com>
21812
21813 * tree-flow-inline.h (get_lineno): Fix inverted test.
21814
21815 2009-04-17 Diego Novillo <dnovillo@google.com>
21816
21817 * tree-ssa-pre.c (create_expression_by_pieces): Remove
21818 assertion for AVAIL_OUT.
21819
21820 2009-04-17 Mike Frysinger <vapier@gentoo.org>
21821
21822 PR target/38627
21823 * config/sh/lib1funcs.asm [__ELF__ && __linux__]: Add .note.GNU-stack.
21824 * config/sh/linux-atomic.asm: Likewise.
21825
21826 2009-04-17 Diego Novillo <dnovillo@google.com>
21827
21828 * except.c (debug_eh_tree): New.
21829 (struct eh_region, struct eh_status): Move ...
21830 * except.h: ... here.
21831 (add_type_for_runtime): Declare extern.
21832 (lookup_type_for_runtime): Likewise.
21833 (debug_eh_tree): Declare.
21834 * Makefile.in (GTFILES): List except.h before except.c
21835
21836 2009-04-17 Diego Novillo <dnovillo@google.com>
21837
21838 * omp-low.c (create_omp_child_function): Set DECL_CONTEXT for DECL.
21839 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
21840 * tree-dfa.c (find_referenced_vars_in): Factor out of ...
21841 (find_vars_r): ... here.
21842 * tree-flow.h (find_referenced_vars_in): Declare.
21843 * tree-ssa-pre.c (create_expression_by_pieces): Assert
21844 that AVAIL_OUT exists for BLOCK.
21845 * Makefile.in (CGRAPH_H): Add dependency on cif-code.def
21846 (tree-loop-distribution.o): Fix dependency on TREE_VECTORIZER_H.
21847 (tree-parloops.o): Likewise.
21848
21849 2009-04-17 Simon Baldwin <simonb@google.com>
21850
21851 * toplev.c (default_tree_printer): Add handling for %E format.
21852
21853 2009-04-17 Diego Novillo <dnovillo@google.com>
21854
21855 * tree-pretty-print.c (dump_generic_node): Add break after
21856 TREE_BINFO handler. Handle COMPLEX_TYPE, REAL_TYPE and
21857 FIXED_POINT_TYPE. Handle NULL TREE_TYPEs. Handle METHOD_TYPE and
21858 FUNCTION_TYPE together. Call print_struct_decl when printing
21859 structures and TDF_SLIM is not given.
21860 (print_struct_decl): Fix logic for detecting recursion.
21861
21862 2009-04-17 Rafael Avila de Espindola <espindola@google.com>
21863
21864 PR 31567
21865 * gcc.c (create_at_file): New.
21866 (compile_input_file_p): New.
21867 (do_spec_1): Use @args files for %i. Use create_at_file for %o.
21868 * main.c (main): Update call to toplev_main.
21869 * toplev.c (toplev_main): Change signature. Call expandargv.
21870 * toplev.h (toplev_main): Change signature.
21871
21872 2009-04-17 Eric Botcazou <ebotcazou@adacore.com>
21873
21874 * dwarf2out.c (field_byte_offset): Use the type size as the field size
21875 if the latter is not constant.
21876
21877 2009-04-17 David Edelsohn <edelsohn@gnu.org>
21878
21879 * dbxout.c (xcoff_debug_hooks): Add set_name_debug_nothing.
21880
21881 2009-04-17 Eric Botcazou <ebotcazou@adacore.com>
21882
21883 * dbxout.c (dbxout_block): Reinstate test on TREE_USED.
21884 * tree-ssa-live.c (remove_unused_scope_block_p): Update TREE_USED bit.
21885
21886 2009-04-17 Richard Guenther <rguenther@suse.de>
21887
21888 * tree-ssa-structalias.c (get_constraint_for_component_ref):
21889 Handle component references view-converting an invariant address.
21890
21891 2009-04-17 Adam Nemet <anemet@caviumnetworks.com>
21892
21893 * doc/tm.texi (TARGET_DEFAULT_TARGET_FLAGS,
21894 TARGET_MIN_ANCHOR_OFFSET, TARGET_MAX_ANCHOR_OFFSET,
21895 TARGET_HAVE_SRODATA_SECTION, TARGET_HAVE_TLS,
21896 TARGET_UNWIND_TABLES_DEFAULT, TARGET_TERMINATE_DW2_EH_FRAME_INFO):
21897 Use @deftypevr rather than @deftypevar.
21898
21899 2009-04-17 Richard Guenther <rguenther@suse.de>
21900
21901 * tree-ssa-forwprop.c (get_prop_dest_stmt): Clean up tuplification.
21902 (get_prop_source_stmt): Likewise.
21903 (can_propagate_from): Likewise.
21904
21905 2009-04-17 Andrew Stubbs <ams@codesourcery.com>
21906
21907 * configure.ac: Add new AC_SUBST for TM_ENDIAN_CONFIG,
21908 TM_MULTILIB_CONFIG and TM_MULTILIB_EXCEPTIONS_CONFIG.
21909 (--with-multilib-list): Add default value.
21910 * configure: Regenerate.
21911 * Makefile.in (TM_ENDIAN_CONFIG): Define.
21912 (TM_MULTILIB_CONFIG, TM_MULTILIB_EXCEPTIONS_CONFIG): Define.
21913 * config.gcc (sh-*-*): Switch to using TM_ENDIAN_CONFIG,
21914 TM_MULTILIB_CONFIG, and TM_MULTILIB_EXCEPTIONS_CONFIG.
21915 Don't add default cpu to multilib list unnecessarily, but do enable
21916 the relevant compiler option..
21917 Add support for --with-multilib-list=<blank> and
21918 --with-multilib-list=!<somelib> to supress unwanted multilibs.
21919 * config/sh/t-sh (DEFAULT_ENDIAN, OTHER_ENDIAN): New variables.
21920 (MULTILIB_ENDIAN, MULTILIB_CPUS): Delete variables.
21921 (MULTILIB_OPTIONS): Redefine using OTHER_ENDIAN and
21922 TM_MULTILIB_CONFIG.
21923 (MULTILIB_EXCEPTIONS): Add TM_MULTILIB_EXCEPTIONS_CONFIG.
21924 (MULTILIB_OSDIRNAMES): New variable.
21925 * config/sh/t-1e: Delete file.
21926 * config/sh/t-mlib-sh1: Delete file.
21927 * config/sh/t-mlib-sh2: Delete file.
21928 * config/sh/t-mlib-sh2a: Delete file.
21929 * config/sh/t-mlib-sh2a-nofpu: Delete file.
21930 * config/sh/t-mlib-sh2a-single: Delete file.
21931 * config/sh/t-mlib-sh2a-single-only: Delete file.
21932 * config/sh/t-mlib-sh2e: Delete file.
21933 * config/sh/t-mlib-sh3e: Delete file.
21934 * config/sh/t-mlib-sh4: Delete file.
21935 * config/sh/t-mlib-sh4-nofpu: Delete file.
21936 * config/sh/t-mlib-sh4-single: Delete file.
21937 * config/sh/t-mlib-sh4-single-only: Delete file.
21938 * config/sh/t-mlib-sh4a: Delete file.
21939 * config/sh/t-mlib-sh4a-nofpu: Delete file.
21940 * config/sh/t-mlib-sh4a-single: Delete file.
21941 * config/sh/t-mlib-sh4a-single-only: Delete file.
21942 * config/sh/t-mlib-sh4al: Delete file.
21943 * config/sh/t-mlib-sh5-32media: Delete file.
21944 * config/sh/t-mlib-sh5-32media-nofpu: Delete file.
21945 * config/sh/t-mlib-sh5-64media: Delete file.
21946 * config/sh/t-mlib-sh5-64media-nofpu: Delete file.
21947 * config/sh/t-mlib-sh5-compact: Delete file.
21948 * config/sh/t-mlib-sh5-compact-nofpu: Delete file.
21949 * config/sh/t-linux: Don't override MULTILIB_EXCEPTIONS.
21950 * doc/install.texi (Options specification): Add
21951 --with-multilib-list and --with-endian.
21952
21953 2009-04-17 Rafael Avila de Espindola <espindola@google.com>
21954
21955 * Makefile.in (REVISION_s): Always include quotes. Change ifdef to use
21956 REVISION_c.
21957 (OBJS-common): Add plugin-version.o.
21958 (plugin-version.o): New.
21959 * gcc-plugin.h (plugin_gcc_version): New.
21960 (plugin_default_version_check): New.
21961 (plugin_init_func, plugin_init): Add version argument.
21962 * plugin-version.c: New.
21963 * plugin.c (str_plugin_gcc_version_name): New.
21964 (try_init_one_plugin): Read plugin_gcc_version from the plugin and
21965 pass it to the init function.
21966 (plugin_default_version_check): New.
21967
21968 2009-04-17 Richard Guenther <rguenther@suse.de>
21969
21970 * tree-ssa-alias.c (refs_may_alias_p_1): Do not use TBAA
21971 for decl-vs-decl disambiguation.
21972
21973 2009-04-17 Andreas Krebbel <krebbel1@de.ibm.com>
21974
21975 * config/s390/s390.h (s390_tune_attr): New macro definition.
21976 * config/s390/s390.md (cpu attribute): Map to s390_tune_attr.
21977
21978 2009-04-17 Richard Guenther <rguenther@suse.de>
21979
21980 * tree-ssa-ccp.c (struct fold_stmt_r_data): Remove.
21981 (fold_stmt_r): Likewise.
21982 (maybe_fold_reference): New function.
21983 (fold_gimple_assign): Handle cases fold_stmt_r did.
21984 (fold_stmt): Do not use fold_stmt_r.
21985 (fold_stmt_inplace): Likewise.
21986
21987 2009-04-17 Richard Guenther <rguenther@suse.de>
21988
21989 * tree-ssa-dom.c (gimple_assign_unary_useless_conversion_p): Remove.
21990 (record_equivalences_from_stmt): Remove useless checks and
21991 simplifications.
21992 * tree-ssa-pre.c (eliminate): Avoid converting a constant if
21993 the type is already suitable.
21994
21995 2009-04-17 Paolo Bonzini <bonzini@gnu.org>
21996
21997 * config/sh/sh.h (FUNCTION_VALUE): Fix call to sh_promote_prototypes.
21998
21999 2009-04-17 Uros Bizjak <ubizjak@gmail.com>
22000
22001 * config/arm/sfp-machine.h (__gcc_CMPtype): New typedef.
22002 (CMPtype): Define as __gcc_CMPtype.
22003
22004 2009-04-17 Aurelien Jarno <aurelien@aurel32.net>
22005
22006 * config.gcc: Add soft-fp/t-softfp and i386/t-linux to tmake_file
22007 for i[34567]86-*-kfreebsd*-gnu*, x86_64-*-kfreebsd*-gnu*.
22008
22009 2009-04-17 Richard Guenther <rguenther@suse.de>
22010
22011 PR tree-optimization/39746
22012 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Remove
22013 special-casing for builtins and static variable use/def.
22014 (call_may_clobber_ref_p_1): Likewise.
22015
22016 2009-04-16 Ian Lance Taylor <iant@google.com>
22017
22018 * df.h: Include "timevar.h".
22019 (struct df_problem): Change tv_id field to timevar_id_t.
22020 * tree-pass.h: Include "timevar.h".
22021 (struct opt_pass): Change tv_id field to timevar_id_t.
22022 * timevar.h (timevar_id_t): Define TV_NONE.
22023 * passes.c (execute_one_ipa_transform_pass): Check for tv_id !=
22024 TV_NONE rather than tv_id != 0.
22025 (execute_one_pass): Likewise.
22026 * Makefile.in (DF_H): Add $(TIMEVAR_H).
22027 (TREE_PASS_H): Define. Change all instances of tree-pass.h in
22028 dependencies to $(TREE_PASS_H).
22029 * bt-load.c (pass_branch_target_load_optimize1): Set tv_id field
22030 to TV_NONE.
22031 (pass_branch_target_load_optimize2): Likewise.
22032 * cfglayout.c (pass_into_cfg_layout_mode): Likewise.
22033 (pass_outof_cfg_layout_mode): Likewise.
22034 * cgraphbuild.c (pass_remove_cgraph_callee_edges): Likewise.
22035 (pass_rebuild_cgraph_edges): Likewise.
22036 (pass_remove_cgraph_callee_edges): Likewise.
22037 * df-core.c (pass_df_initialize_opt): Likewise.
22038 (pass_df_initialize_no_opt): Likewise.
22039 (pass_df_finish): Likewise.
22040 * emit-rtl.c (pass_unshare_all_rtl): Likewise.
22041 * except.c (pass_set_nothrow_function_flags): Likewise.
22042 (pass_convert_to_eh_region_ranges): Likewise.
22043 * final.c (pass_compute_alignments): Likewise.
22044 * function.c (pass_instantiate_virtual_regs): Likewise.
22045 (pass_init_function): Likewise.
22046 (pass_leaf_regs): Likewise.
22047 (pass_match_asm_constraints): Likewise.
22048 * gimple-low.c (pass_lower_cf): Likewise.
22049 (pass_mark_used_blocks): Likewise.
22050 * init-regs.c (pass_initialize_regs): Likewise.
22051 * integrate.c (pass_initial_value_sets): Likewise.
22052 * ira.c (pass_ira): Likewise.
22053 * jump.c (pass_cleanup_barriers): Likewise.
22054 * omp-low.c (pass_expand_omp): Likewise.
22055 (pass_lower_omp): Likewise.
22056 * matrix-reorg.c (pass_ipa_matrix_reorg): Likewise.
22057 * recog.c (pass_split_all_insns): Likewise.
22058 (pass_split_after_reload): Likewise.
22059 (pass_split_before_regstack): Likewise.
22060 (pass_split_before_sched2): Likewise.
22061 (pass_split_for_shorten_branches): Likewise.
22062 * reginfo.c (pass_reginfo_init): Likewise.
22063 (pass_subregs_of_mode_init): Likewise.
22064 (pass_subregs_of_mode_finish): Likewise.
22065 * passes.c (pass_postreload): Likewise.
22066 * stack-ptr-mod.c (pass_stack_ptr_mod): Likewise.
22067 * tree-cfg.c (pass_remove_useless_stmts): Likewise.
22068 (pass_warn_function_return): Likewise.
22069 (pass_warn_function_noreturn): Likewise.
22070 * tree-complex.c (pass_lower_complex): Likewise.
22071 (pass_lower_complex_O0): Likewise.
22072 * tree-if-conv.c (pass_if_conversion): Likewise.
22073 * tree-into-ssa.c (pass_build_ssa): Likewise.
22074 * tree-mudflap.c (pass_mudflap_1): Likewise.
22075 (pass_mudflap_2): Likewise.
22076 * tree-nomudflap.c (pass_mudflap_1): Likewise.
22077 (pass_mudflap_2): Likewise.
22078 * tree-nrv.c (pass_return_slot): Likewise.
22079 * tree-object-size.c (pass_object_sizes): Likewise.
22080 * tree-optimize.c (pass_all_optimizations): Likewise.
22081 (pass_early_local_passes): Likewise.
22082 (pass_all_early_optimizations): Likewise.
22083 (pass_cleanup_cfg): Likewise.
22084 (pass_cleanup_cfg_post_optimizing): Likewise.
22085 (pass_free_datastructures): Likewise.
22086 (pass_free_cfg_annotations): Likewise.
22087 (pass_fixup_cfg): Likewise.
22088 (pass_init_datastructures): Likewise.
22089 * tree-ssa.c (pass_early_warn_uninitialized): Likewise.
22090 (pass_late_warn_uninitialized): Likewise.
22091 (pass_update_address_taken): Likewise.
22092 * tree-ssa-ccp.c (pass_fold_builtins): Likewise.
22093 * tree-ssa-math-opts.c (pass_cse_reciprocals): Likewise.
22094 (pass_cse_sincos): Likewise.
22095 (pass_convert_to_rsqrt): Likewise.
22096 * tree-ssa-structalias.c (pass_build_alias): Likewise.
22097 * tree-stdarg.c (pass_stdarg): Likewise.
22098 * tree-tailcall.c (pass_tail_recursion): Likewise.
22099 (pass_tail_calls): Likewise.
22100 * tree-vect-generic.c (pass_lower_vector): Likewise.
22101 (pass_lower_vector_ssa): Likewise.
22102 * tree-vectorizer.c (pass_ipa_increase_alignment): Likewise.
22103
22104 2009-04-16 Joseph Myers <joseph@codesourcery.com>
22105
22106 * config/mips/mips.c (mips_rtx_cost_data): Use SOFT_FP_COSTS in
22107 XLR entry.
22108 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC):
22109 Handle -march=xlr.
22110 * config/mips/xlr.md (ir_xlr_alu): Also accept insn types move,
22111 logical and signext.
22112
22113 2009-04-16 Kaz Kojima <kkojima@gcc.gnu.org>
22114
22115 PR target/39767
22116 * config/sh/predicates.md (arith_operand): Check if the operand
22117 of TRUNCATE is a REG.
22118
22119 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
22120
22121 * cfgrtl.c (delete_insn_chain_and_edges): Remove.
22122 * rtl.h: Remove the prototype for delete_insn_chain_and_edges.
22123
22124 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
22125
22126 * tree-iterator.c (tsi_split_statement_list_after,
22127 tsi_split_statement_list_before): Remove.
22128 * tree-iterator.h: Remove the prototypes for
22129 tsi_split_statement_list_after and tsi_split_statement_list_before.
22130
22131 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
22132
22133 * tree-ssa-propagate.c (stmt_makes_single_load): Remove.
22134 * tree-ssa-propagate.h: Remove the prototype for
22135 stmt_makes_single_load.
22136
22137 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
22138
22139 * emit-rtl.c (set_mem_attrs_from_reg): Remove.
22140 * rtl.h: Remove the prototype for set_mem_attrs_from_reg.
22141
22142 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
22143
22144 * tree-iterator.c (EXPR_LAST_BODY): Remove.
22145
22146 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
22147
22148 * except.c (eh_region_outer_p): Remove.
22149 * except.h: Remove the prototype for eh_region_outer_p.
22150
22151 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
22152
22153 * function.c (current_function_assembler_name): Remove.
22154 * function.h: Remove the prototype for
22155 current_function_assembler_name.
22156
22157 2009-04-16 Ian Lance Taylor <iant@google.com>
22158
22159 * rtlanal.c (alloc_reg_note): New function, broken out of add_reg_note.
22160 (add_reg_note): Call alloc_reg_note.
22161 * rtl.h (alloc_reg_note): Declare.
22162 * combine.c (try_combine): Use alloc_reg_note.
22163 (recog_for_combine, move_deaths): Likewise.
22164 (distribute_notes): Use alloc_reg_note and add_reg_note.
22165 * haifa-sched.c (sched_create_recovery_edges): Use add_reg_note.
22166 * combine-stack-adj.c (adjust_frame_related_expr): Likewise.
22167 * reload1.c (eliminate_regs_1): Use alloc_reg_note.
22168
22169 2009-04-16 Vladimir Makarov <vmakarov@redhat.com>
22170
22171 PR rtl-optimization/39762
22172 * ira-int.h (ira_register_move_cost, ira_may_move_in_cost,
22173 ira_may_move_out_cost): Add comments about way of their usage.
22174 (ira_get_register_move_cost, ira_get_may_move_cost): New functions.
22175
22176 * ira-conflicts.c (process_regs_for_copy): Use function
22177 ira_get_register_move_cost instead of global
22178 ira_register_move_cost.
22179
22180 * ira-color.c (update_copy_costs, calculate_allocno_spill_cost,
22181 color_pass, move_spill_restore, update_curr_costs): Ditto.
22182
22183 * ira-lives.c (process_single_reg_class_operands): Ditto.
22184
22185 * ira-emit.c (emit_move_list): Ditto.
22186
22187 * ira-costs.c (copy_cost): Don't call ira_init_register_move_cost.
22188 (record_reg_classes): Ditto. Use functions
22189 ira_get_register_move_cost and ira_get_may_move_cost instead of
22190 global vars ira_register_move_cost, ira_may_move_out_cost and
22191 ira_may_move_in_cost.
22192 (record_address_regs): Don't call ira_init_register_move_cost.
22193 Use function ira_get_may_move_cost instead of global
22194 ira_may_move_in_cost.
22195 (process_bb_node_for_hard_reg_moves): Use function
22196 ira_get_register_move_cost instead of global ira_register_move_cost.
22197 (ira_costs): Don't call ira_init_register_move_cost.
22198
22199 2009-04-16 Richard Guenther <rguenther@suse.de>
22200
22201 * tree-cfg.c (verify_gimple_assign_binary):
22202 Allow POINTER_PLUS_EXPR-like PLUS_EXPR for vectors.
22203 * ipa-struct-reorg.c (gen_size): Fold the built expressions.
22204 (create_general_new_stmt): Note that this function is broken.
22205
22206 2009-04-16 Rafael Avila de Espindola <espindola@google.com>
22207
22208 * common.opt (fhelp): Add Var(help_flag).
22209 * gcc-plugin.h (plugin_info): Add help.
22210 * plugin.c (plugin_name_args): Add help.
22211 (register_plugin_info): Set plugin->help.
22212 (print_help_one_plugin): New.
22213 (print_plugins_help): New.
22214 * plugin.h (print_plugins_help): New.
22215 * toplev.c (toplev_main): Call print_plugins_help if needed.
22216
22217 2009-04-16 Richard Guenther <rguenther@suse.de>
22218
22219 * gimple.c (gimple_copy): Do not clear addresses_taken bitmap.
22220 (gimple_ior_addresses_taken_1): New function.
22221 (gimple_ior_addresses_taken): Likewise.
22222 * gimple.h (struct gimple_statement_with_ops_base): Remove
22223 addresses_taken member.
22224 (gimple_ior_addresses_taken): Declare.
22225 (gimple_addresses_taken, gimple_addresses_taken_ptr,
22226 gimple_set_addresses_taken): Remove.
22227 * ipa-reference.c (mark_address): New function.
22228 (scan_stmt_for_static_refs): Use it for marking addresses taken.
22229 * tree-ssa-operands.c (add_to_addressable_set): Rename to ...
22230 (mark_address_taken): ... this. Just set TREE_ADDRESSABLE.
22231 (gimple_add_to_addresses_taken): Remove.
22232 (get_tmr_operands): Call mark_address_taken.
22233 (get_asm_expr_operands): Likewise.
22234 (get_expr_operands): Likewise.
22235 (build_ssa_operands): Do not clear the addresses_taken bitmap.
22236 (free_stmt_operands): Do not free it.
22237 * tree-ssa.c (delete_tree_ssa): Likewise.
22238 (execute_update_addresses_taken): Use gimple_ior_addresses_taken.
22239
22240 2009-04-16 Richard Guenther <rguenther@suse.de>
22241
22242 * gimple.h (walk_stmt_load_store_addr_ops): Declare.
22243 (walk_stmt_load_store_ops): Likewise.
22244 * gimple.c (get_base_loadstore): New function.
22245 (walk_stmt_load_store_addr_ops): Likewise.
22246 (walk_stmt_load_store_ops): Likewise.
22247 * ipa-pure-const.c (check_op): Simplify.
22248 (check_load, check_store): New functions.
22249 (check_stmt): Use walk_stmt_load_store_ops.
22250 * ipa-reference.c (mark_load): Adjust signature.
22251 (mark_store): Likewise.
22252 (scan_stmt_for_static_refs): Use walk_stmt_load_store_addr_ops.
22253
22254 2009-04-16 Rafael Avila de Espindola <espindola@google.com>
22255
22256 * gcc-plugin.h (plugin_event): Add PLUGIN_INFO.
22257 (plugin_info): New.
22258 * opts.c (common_handle_option): Don't call print_version.
22259 * plugin.c (plugin_name_args): Add version.
22260 (register_plugin_info): New.
22261 (register_callback): Handle PLUGIN_INFO.
22262 (try_init_one_plugin): New.
22263 (init_one_plugin): Use try_init_one_plugin. Only free plugin_name_args
22264 if failed to init.
22265 (finalize_one_plugin): New.
22266 (finalize_plugins): New.
22267 (print_one_plugin): New.
22268 (print_plugins_versions): New.
22269 * plugin.h (print_plugins_versions): New.
22270 (finalize_plugins): New.
22271 * toplev.c (compile_file): Don't call initialize_plugins.
22272 (print_version): Call print_plugins_versions.
22273 (toplev_main): Call initialize_plugins. Print version if needed.
22274 Call finalize_plugins.
22275
22276 2009-04-16 Rafael Avila de Espindola <espindola@google.com>
22277
22278 * common.opt (fversion): New.
22279 * gcc.c (print_version): New.
22280 (process_command): Don't print the version. Just set print_version.
22281 (main): Print version. Call subprocesses if print_version and
22282 verbose_flag are set.
22283 * opts.c (common_handle_option): Handle OPT_fversion.
22284
22285 2009-04-16 Richard Guenther <rguenther@suse.de>
22286 Ira Rosen <irar@il.ibm.com>
22287
22288 PR tree-optimization/39698
22289 * tree-vect-loop.c (get_initial_def_for_reduction): Use the
22290 type of the reduction variable. Only generate the def if
22291 it is needed.
22292
22293 * omp-low.c (expand_omp_for_generic): When converting to a pointer
22294 make sure to first convert to an integer of the same precision.
22295 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Retain
22296 the type of the evolution correctly in computing the new
22297 induction variable base.
22298
22299 2009-04-16 Richard Guenther <rguenther@suse.de>
22300
22301 PR middle-end/39625
22302 * tree-cfg.c (make_blocks): Split statements with to-be
22303 abnormal SSA names on the lhs.
22304
22305 2009-04-16 Paolo Bonzini <bonzini@gnu.org>
22306
22307 * c-common.c (vector_targets_convertible_p, vector_types_convertible_p):
22308 Use TYPE_VECTOR_OPAQUE instead of targetm.vector_opaque_p.
22309 * c-typeck.c (really_start_incremental_init): Likewise.
22310 * target-def.h (TARGET_VECTOR_OPAQUE_P): Remove.
22311 (TARGET_INITIALIZER): Remove it.
22312 * target.h (struct target): Remove vector_opaque_p.
22313 * tree.c (build_opaque_vector_type): New.
22314 * tree.h (TYPE_VECTOR_OPAQUE): New.
22315 (build_opaque_vector_type): Declare.
22316 * doc/tm.texi (TARGET_VECTOR_OPAQUE_P): Remove.
22317 * config/rs6000/rs6000.c (build_opaque_vector_type,
22318 rs6000_is_vector_type, TARGET_VECTOR_OPAQUE_P): Remove.
22319 (rs6000_init_builtins): Use build_opaque_vector_type for
22320 opaque_V4SI_type_node.
22321
22322 2009-04-15 Catherine Moore <clm@codesourcery.com>
22323
22324 * debug.h (set_name): Declare.
22325 * dwarf2out.c (dwarf2out_set_name): Declare.
22326 (dwarf2_debug_hooks): Add set_name.
22327 (find_AT_string): New.
22328 (add_AT_string): Call find_AT_string.
22329 (dwarf2out_set_name): New.
22330 * cp/decl.c (grokdeclarator): Call set_name.
22331 * vmsdbgout.c (vmsdbg_debug_hooks): Add set_name_debug_nothing.
22332 * debug.c (do_nothing_debug_hooks): Likewise.
22333 * dbxout.c (dbx_debug_hooks): Likewise.
22334 * sdbout.c (sdb_debug_hooks): Likewise.
22335
22336 2009-04-15 Michael Eager <eager@eagercon.com>
22337
22338 * config/rs6000/rs6000.c (rs6000_function_value): Set function return
22339 reg for single-precision FPU.
22340 * config/rs6000/rs6000.md (movsi_internal1): Only for
22341 !TARGET_SINGLE_FPU.
22342 (movsi_internal1_single): New. Add pattern to move SI values to/from
22343 single-precision FP regs.
22344
22345 2009-04-15 Richard Guenther <rguenther@suse.de>
22346
22347 * omp-low.c (lower_rec_input_clauses): Build correct address
22348 expressions.
22349 (expand_omp_for_generic): Fix multiplication type.
22350 * tree-loop-distribution.c (build_size_arg): Build a size_t argument.
22351 (generate_memset_zero): Fix types.
22352 * tree-profile.c (prepare_instrumented_value): Correctly
22353 widen a pointer.
22354
22355 2009-04-15 Ian Lance Taylor <iant@google.com>
22356
22357 * c.opt (Wenum-compare): Enable for C and Objc. Initialize to -1.
22358 * c-opts.c (c_common_handle_option): For C, set warn_enum_compare
22359 for -Wall and for -Wc++-compat.
22360 (c_common_post_options): For C++, set warn_enum_compare if not
22361 already set.
22362 * c-tree.h (struct c_expr): Add field original_type.
22363 (build_external_ref): Update declaration.
22364 * c-parser.c (c_parser_braced_init): Set original_type.
22365 (c_parser_initelt): Likewise.
22366 (c_parser_expr_no_commas): Likewise.
22367 (c_parser_conditional_expression): Likewise.
22368 (c_parser_cast_expression): Likewise.
22369 (c_parser_unary_expression): Likewise. Pull setting of
22370 original_code to top of function.
22371 (c_parser_sizeof_expression): Set original_type.
22372 (c_parser_alignof_expression): Likewise.
22373 (c_parser_postfix_expression): Likewise. Pull setting of
22374 original_code to top of function.
22375 (c_parser_postfix_expression_after_paren_type): Set original_type.
22376 (c_parser_postfix_expression_after_primary): Likewise.
22377 (c_parser_expression): Likewise.
22378 * c-typeck.c (build_external_ref): Add type parameter. Change all
22379 callers.
22380 (c_expr_sizeof_expr): Set original_type field.
22381 (parser_build_unary_op): Likewise.
22382 (parser_build_binary_op): Likewise. Optionally warn about
22383 comparisons of enums of different types.
22384 (digest_init): Set original_type field.
22385 (really_start_incremental_init): Likewise.
22386 (push_init_level, pop_init_level): Likewise.
22387 * doc/invoke.texi (Warning Options): -Wenum-compare now
22388 supported in C.
22389
22390 2009-04-15 Richard Guenther <rguenther@suse.de>
22391
22392 * tree-ssa-pre.c (eliminate): When replacing a PHI node carry
22393 out a necessary conversion.
22394 * tree-ssa-sccvn.c (run_scc_vn): Also assign value-ids to
22395 names we didn't value number.
22396 * tree-mudflap.c (mf_build_check_statement_for): Use correct types.
22397
22398 2009-04-15 Richard Guenther <rguenther@suse.de>
22399
22400 PR tree-optimization/39764
22401 * tree-ssa-ccp.c (get_value): Canonicalize value with
22402 canonicalize_float_value.
22403
22404 2009-04-15 Jan Hubicka <jh@suse.cz>
22405
22406 * builtins.def (va_start, va_end, va_copy): Fix my previous commit.
22407 Wrong version of patch.
22408
22409 2009-04-15 Jan Hubicka <jh@suse.cz>
22410
22411 * builtins.def (va_start, va_end, va_copy): Mark nothrow.
22412
22413 2009-04-15 Nathan Sidwell <nathan@codesourcery.com>
22414
22415 * config/rs6000/rs6000.c (rs6000_init_builtins): Set TYPE_NAME of
22416 our distinct integral and vector types.
22417
22418 2009-04-15 Rafael Avila de Espindola <espindola@google.com>
22419
22420 * class.c (build_vtbl_ref_1): Remove call to assemble_external.
22421 * init.c (build_vtbl_address): Remove call to assemble_external.
22422
22423 2009-04-14 Daniel Jacobowitz <dan@codesourcery.com>
22424
22425 * config/rs6000/rs6000.c (rs6000_dwarf_register_span): Fix debug
22426 output for other floating point modes.
22427
22428 2009-04-14 Diego Novillo <dnovillo@google.com>
22429
22430 * diagnostic.c (diagnostic_report_diagnostic): Do not
22431 warn about loaded plugins for DK_ERROR and DK_WARNING.
22432 * c-decl.c (declspecs_add_type): Move call to
22433 invoke_plugin_callbacks ...
22434 * c-parser.c (c_parser_declspecs): ... here.
22435 * plugin.c (dump_active_plugins): Tidy output.
22436
22437 2009-04-14 Diego Novillo <dnovillo@google.com>
22438 Le-Chun Wu <lcwu@google.com>
22439
22440 * configure.ac: Add --enable-plugin support.
22441 Define ENABLE_PLUGIN and PLUGINLIBS when specified.
22442 * Makefile.in (PLUGIN_H): Define.
22443 Export ENABLE_PLUGIN and GMPINC to site.exp.
22444 Add PLUGINLIBS to link command.
22445 Add/modify dependencies for plugin.o and files including plugin.h.
22446 (plugin.o): New.
22447 * config.in: Regenerate.
22448
22449 * opts.c (common_handle_option): Handle OPT_fplugin_ and
22450 OPT_fplugin_arg_.
22451
22452 2009-04-14 Le-Chun Wu <lcwu@google.com>
22453
22454 * tree-pass.h (register_one_dump_file): Add a prototype for
22455 register_one_dump_file.
22456 * toplev.c (compile_file): Call initialize_plugins.
22457 (do_compile): Call invoke_plugin_callbacks.
22458 (toplev_main): Call invoke_plugin_callbacks.
22459 * common.opt: Add -fplugin= and -fplugin-arg-.
22460 * gcc-plugin.h: New public header file for plugins to include.
22461 * plugin.c: New source file.
22462 * plugin.h: New internal header file.
22463 * passes.c (register_one_dump_file): Make it external.
22464
22465 * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks.
22466
22467 2009-04-14 Diego Novillo <dnovillo@google.com>
22468
22469 * doc/plugins.texi: New.
22470 * doc/gccint.texi: Add reference to Plugins chapter.
22471 * doc/invoke.texi: Document -fplugin and -fplugin-arg
22472 * diagnostic.c (diagnostic_report_diagnostic): Warn about
22473 loaded plugins, if any.
22474 * timevar.def (TV_PLUGIN_INIT): Define.
22475 (TV_PLUGIN_RUN): Define.
22476 * plugin.c: Include timevar.h
22477 (plugins_active_p): New.
22478 (dump_active_plugins): New.
22479 (debug_active_plugins): New.
22480
22481 2009-04-14 Joseph Myers <joseph@codesourcery.com>
22482
22483 * config/sol2.h (LINK_ARCH32_SPEC_BASE): Use %R with absolute
22484 library paths.
22485 * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Likewise.
22486
22487 2009-04-14 Kazu Hirata <kazu@codesourcery.com>
22488
22489 * config/arm/arm.c (arm_rtx_costs_1): Treat a minus with a shift
22490 the same as a minus without a shift.
22491
22492 2009-04-14 Nick Clifton <nickc@redhat.com>
22493
22494 * config/stormy16/stormy16.md (ineqbranch_1): Do not assume that
22495 comparisons with small integers will always produce a short
22496 branch.
22497
22498 2009-04-14 Rafael Avila de Espindola <espindola@google.com>
22499
22500 Merge:
22501 2008-12-19 Diego Novillo <dnovillo@google.com>
22502
22503 * cgraph.c (dump_cgraph_node): Show memory address of NODE.
22504
22505 2009-04-14 Richard Guenther <rguenther@suse.de>
22506
22507 * tree-cfg.c (verify_gimple_assign_unary): Adjust vector code
22508 verification.
22509 (verify_gimple_assign_binary): Likewise. Handle shifts and
22510 rotates correctly.
22511 (verify_gimple_phi): Print the mismatched argument position.
22512 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
22513 Fix types.
22514 (vect_update_init_of_dr): Likewise.
22515 * matrix-reorg.c (transform_access_sites): Do what the
22516 comment suggests.
22517 * omp-low.c (expand_omp_atomic_pipeline): Use the correct types.
22518
22519 2009-04-13 Michael Eager <eager@eagercon.com>
22520
22521 * config/rs6000/rs6000-c.c: generate defines if rs6000_xilinx_fpu:
22522 _XFPU, _XFPU_SP_LITE, _XFPU_SP_FULL, _XFPU_DP_LITE, _XFPU_DP_FULL
22523 * config/rs6000/xilinx.h: New. Spec for powerpc-xilinx-eabi
22524 * config.gcc (powerpc-xilinx-eabi): add xilinx.h to tm_file,
22525 remove duplicate config
22526
22527 2009-04-13 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
22528
22529 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Dump
22530 file_name:line_number type locator of the call site.
22531
22532 2009-04-13 Vladimir Makarov <vmakarov@redhat.com>
22533
22534 * genautomata.c: Put blank after comma.
22535 (automaton_decls): New.
22536 (struct unit_usage): Add comments to member next.
22537 (store_alt_unit_usage): Keep the list ordered.
22538 (unit_present_on_list_p, equal_alternatives_p): New.
22539 (check_regexp_units_distribution): Check units distribution
22540 correctness correctly.
22541 (main): Don't write automata if error is found. Return correct
22542 exit code.
22543
22544 * config/m68k/cf.md (cfv4_ds): Remove.
22545 (cfv4_pOEP1, cfv4_sOEP1, cfv4_pOEP2,cfv4_sOEP2, cfv4_pOEP3,
22546 cfv4_sOEP3): Assign to cfv4_oep instead of cfv4_ds.
22547
22548 * config/rs6000/power4.md (lsuq_power4, iq_power4, fpq_power4,
22549 power4-load-ext, power4-store, power4-store-update,
22550 power4-fpstore, power4-fpstore-update, power4-two, power4-three,
22551 power4-insert, power4-compare, power4-lmul-cmp, power4-imul-cmp,
22552 power4-lmul, , power4-imul, power4-imul3, power4-sdiv,
22553 power4-sqrt, power4-isync): Modify reservation to make correct
22554 unit distribution to automata.
22555
22556 * config/rs6000/power5.md (iq_power5, fpq_power5, power5-store,
22557 power5-store-update, power5-two, power5-three, power5-lmul,
22558 power5-imul, power5-imul3, power5-sdiv, power5-sqrt): Ditto.
22559
22560 2009-04-13 Adam Nemet <anemet@caviumnetworks.com>
22561
22562 * except.c (pass_set_nothrow_function_flags): Set name and add
22563 TODO_dump_func.
22564 (set_nothrow_function_flags): Mention in the dump file when
22565 changing a function to nothrow.
22566
22567 2009-04-13 Ozkan Sezer <sezeroz@gmail.com>
22568
22569 PR/39066
22570 * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Use __SIZE_TYPE__
22571 instead of unsigned long.
22572
22573 2009-04-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22574
22575 * config/arm/arm.c (return_used_this_function): Remove.
22576 (arm_output_function_prologue): Remove use of
22577 return_used_this_function.
22578 (output_return_instruction): Replace use of
22579 return_used_this_function
22580 by cfun->machine->return_used_this_function.
22581 (arm_output_epilogue): Likewise.
22582 (arm_output_function_epilogue): Likewise.
22583 (thumb_unexpanded_epilogue): Likewise.
22584 * config/arm/arm.h (struct machine_function):
22585 New member return_used_this_function.
22586
22587 2009-04-12 Mark Mitchell <mark@codesourcery.com>
22588
22589 * doc/install.texi: Correct description of default directory for
22590 --with-gxx-include-dir.
22591
22592 2009-04-12 Eric Botcazou <ebotcazou@adacore.com>
22593
22594 * fold-const.c (build_range_check): Properly deal with enumeral and
22595 boolean base types.
22596
22597 2009-04-12 Steven Bosscher <steven@gcc.gnu.org>
22598
22599 * doc/invoke.texi (max_gcse_passes): Remove documentation.
22600 * params.def (PARAM_MAX_GCSE_PASSES): Remove.
22601 * params.h (MAX_GCSE_PASSES): Remove.
22602 * gcse.c (gcse_main): Run CPROP1, PRE or HOIST, and CPROP2
22603 in sequence. Remove ability to run multiple passes.
22604 (bypass_jumps): Report run as third CPROP pass.
22605
22606 2009-04-12 Adam Nemet <anemet@caviumnetworks.com>
22607
22608 PR middle-end/39651
22609 * except.c (can_throw_external): Look at each insn in a SEQUENCE
22610 when deciding whether the whole SEQUENCE can throw.
22611
22612 2009-04-12 Uros Bizjak <ubizjak@gmail.com>
22613
22614 PR target/39740
22615 * config/alpha/predicates.md (local_symbolic_operand): Return 1 for
22616 offseted label references.
22617
22618 2009-04-11 Jan Hubicka <jh@suse.cz>
22619
22620 * tree-ssa-pre.c (eliminate): Fix call of update_stmt.
22621
22622 2009-04-11 Richard Guenther <rguenther@suse.de>
22623
22624 PR middle-end/39732
22625 * tree-inline.c (declare_return_variable): Mark DECL_BY_REFERENCE
22626 return variables as TREE_ADDRESSABLE.
22627
22628 2009-04-11 Richard Guenther <rguenther@suse.de>
22629
22630 PR tree-optimization/39713
22631 * tree-ssa-sccvn.c (vn_get_expr_for): Make sure built
22632 reference trees have SSA_NAME operands.
22633
22634 2009-04-11 Richard Guenther <rguenther@suse.de>
22635
22636 PR c/39712
22637 * c-gimplify.c (c_gimplify_expr): Adjust check for mismatched
22638 address expressions.
22639
22640 2009-04-11 Dave Korn <dave.korn.cygwin@gmail.com>
22641
22642 * config/i386/cygwin-stdint.h (INT_LEAST32_TYPE): Update to
22643 match changes in Cygwin 1.7
22644 (UINT_LEAST32_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE,
22645 UINT_FAST16_TYPE, UINT_FAST32_TYPE): Likewise.
22646
22647 2009-04-10 Paolo Bonzini <bonzini@gnu.org>
22648
22649 PR tree-optimization/39701
22650 * doc/invoke.texi (Optimization Options): Document change in
22651 meaning and initialization of -fdelete-null-pointer-checks.
22652
22653 2009-04-10 H.J. Lu <hongjiu.lu@intel.com>
22654
22655 PR middle-end/39701
22656 * common.opt (-fdelete-null-pointer-checks): Initialize to 1.
22657
22658 * opts.c (decode_options): Don't set flag_delete_null_pointer_checks
22659 here.
22660
22661 * doc/invoke.texi: Update -fdelete-null-pointer-checks.
22662
22663 2009-04-10 Chao-ying Fu <fu@mips.com>
22664
22665 * doc/tm.texi (Instruction Output): Document
22666 TARGET_ASM_FINAL_POSTSCAN_INSN.
22667 * target.h (final_postscan_insn): New field in asm_out.
22668 * target-def.h (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
22669 (TARGET_ASM_OUT): Add TARGET_ASM_FINAL_POSTSCAN_INSN.
22670 * final.c (final_scan_insn): Call
22671 targetm.asm_out.final_postscan_insn after outputting
22672 an asm macro and a normal instruction.
22673
22674 * config/mips/mips.h (FINAL_PRESCAN_INSN): New define.
22675 * config/mips/mips-protos.h (mips_final_prescan_insn): Declare.
22676 * config/mips/mips.c (mips_at_reg_p): New for_each_rtx callback.
22677 (mips_final_prescan_insn, mips_final_postscan_insn): New functions.
22678 (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
22679
22680 2009-04-10 Paolo Bonzini <bonzini@gnu.org>
22681
22682 PR middle-end/39701
22683 * fold-const.c (tree_single_nonzero_warnv_p): Pass non-static
22684 variables as non-NULL even with -fdelete-null-pointer-checks.
22685
22686 2009-04-10 H.J. Lu <hongjiu.lu@intel.com>
22687
22688 * config/rs6000/darwin-vecsave.asm: Remove extra "*/".
22689
22690 2009-04-09 H.J. Lu <hongjiu.lu@intel.com>
22691
22692 PR target/39678
22693 * config/i386/i386.c (classify_argument): Handle SCmode with
22694 (bit_offset % 64) != 0.
22695
22696 2009-04-09 Sandra Loosemore <sandra@codesourcery.com>
22697
22698 * doc/invoke.texi (Optimize Options): Add cross-reference to
22699 -Q --help=optimizers examples.
22700
22701 2009-04-10 Ben Elliston <bje@au.ibm.com>
22702
22703 PR target/36800
22704 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Do not set
22705 regalign for the reg == fpr and TDmode case.
22706
22707 2009-04-09 David Ayers <ayers@fsfe.org>
22708
22709 PR objc/29200
22710 * objc/objc-act.c (warn_with_method): Remove helper function.
22711 (check_duplicates): Call warning and inform directly.
22712 (really_start_method): Likewise.
22713
22714 2009-04-09 Paolo Bonzini <bonzini@gnu.org>
22715
22716 * expmed.c (expand_divmod): Always use a comparison for a division
22717 by a large unsigned integer.
22718
22719 * fold-const.c (tree_single_nonzero_warnv_p): Always treat decls
22720 for things others than variables or functions as nonzero.
22721
22722 2009-04-09 Nick Clifton <nickc@redhat.com>
22723
22724 * unwind-compat.c: Change copyright header to refer to version
22725 3 of the GNU General Public License with version 3.1 of the
22726 GCC Runtime Library Exception and to point readers at the
22727 COPYING3 and COPYING3.RUNTIME files and the FSF's license web page.
22728 * config/alpha/crtfastmath.c: Likewise.
22729 * config/alpha/linux-unwind.h: Likewise.
22730 * config/alpha/qrnnd.asm: Likewise.
22731 * config/alpha/vms-crt0-64.c: Likewise.
22732 * config/alpha/vms-crt0.c: Likewise.
22733 * config/alpha/vms-dwarf2.asm: Likewise.
22734 * config/alpha/vms-dwarf2eh.asm: Likewise.
22735 * config/alpha/vms-psxcrt0-64.c: Likewise.
22736 * config/alpha/vms-psxcrt0.c: Likewise.
22737 * config/alpha/vms_tramp.asm: Likewise.
22738 * config/arc/initfini.c: Likewise.
22739 * config/arc/lib1funcs.asm: Likewise.
22740 * config/arm/bpabi-v6m.S: Likewise.
22741 * config/arm/bpabi.S: Likewise.
22742 * config/arm/bpabi.c: Likewise.
22743 * config/arm/crti.asm: Likewise.
22744 * config/arm/crtn.asm: Likewise.
22745 * config/arm/ieee754-df.S: Likewise.
22746 * config/arm/ieee754-sf.S: Likewise.
22747 * config/arm/lib1funcs.asm: Likewise.
22748 * config/arm/libunwind.S: Likewise.
22749 * config/arm/linux-atomic.c: Likewise.
22750 * config/arm/mmintrin.h: Likewise.
22751 * config/arm/pr-support.c: Likewise.
22752 * config/arm/unaligned-funcs.c: Likewise.
22753 * config/arm/unwind-arm.c: Likewise.
22754 * config/arm/unwind-arm.h: Likewise.
22755 * config/avr/libgcc.S: Likewise.
22756 * config/bfin/crti.s: Likewise.
22757 * config/bfin/crtlibid.s: Likewise.
22758 * config/bfin/crtn.s: Likewise.
22759 * config/bfin/lib1funcs.asm: Likewise.
22760 * config/bfin/linux-unwind.h: Likewise.
22761 * config/cris/arit.c: Likewise.
22762 * config/cris/cris_abi_symbol.c: Likewise.
22763 * config/darwin-64.c: Likewise.
22764 * config/darwin-crt2.c: Likewise.
22765 * config/darwin-crt3.c: Likewise.
22766 * config/darwin.h: Likewise.
22767 * config/dbxelf.h: Likewise.
22768 * config/dfp-bit.c: Likewise.
22769 * config/dfp-bit.h: Likewise.
22770 * config/elfos.h: Likewise.
22771 * config/fixed-bit.c: Likewise.
22772 * config/fixed-bit.h: Likewise.
22773 * config/fp-bit.c: Likewise.
22774 * config/fp-bit.h: Likewise.
22775 * config/fr30/crti.asm: Likewise.
22776 * config/fr30/crtn.asm: Likewise.
22777 * config/fr30/lib1funcs.asm: Likewise.
22778 * config/freebsd-spec.h: Likewise.
22779 * config/frv/cmovd.c: Likewise.
22780 * config/frv/cmovh.c: Likewise.
22781 * config/frv/cmovw.c: Likewise.
22782 * config/frv/frvbegin.c: Likewise.
22783 * config/frv/frvend.c: Likewise.
22784 * config/frv/lib1funcs.asm: Likewise.
22785 * config/glibc-stdint.h: Likewise.
22786 * config/h8300/clzhi2.c: Likewise.
22787 * config/h8300/crti.asm: Likewise.
22788 * config/h8300/crtn.asm: Likewise.
22789 * config/h8300/ctzhi2.c: Likewise.
22790 * config/h8300/fixunssfsi.c: Likewise.
22791 * config/h8300/lib1funcs.asm: Likewise.
22792 * config/h8300/parityhi2.c: Likewise.
22793 * config/h8300/popcounthi2.c: Likewise.
22794 * config/i386/ammintrin.h: Likewise.
22795 * config/i386/att.h: Likewise.
22796 * config/i386/avxintrin.h: Likewise.
22797 * config/i386/biarch64.h: Likewise.
22798 * config/i386/bmmintrin.h: Likewise.
22799 * config/i386/cpuid.h: Likewise.
22800 * config/i386/cross-stdarg.h: Likewise.
22801 * config/i386/crtfastmath.c: Likewise.
22802 * config/i386/crtprec.c: Likewise.
22803 * config/i386/cygming-crtbegin.c: Likewise.
22804 * config/i386/cygming-crtend.c: Likewise.
22805 * config/i386/cygwin.asm: Likewise.
22806 * config/i386/emmintrin.h: Likewise.
22807 * config/i386/gmm_malloc.h: Likewise.
22808 * config/i386/gthr-win32.c: Likewise.
22809 * config/i386/i386.h: Likewise.
22810 * config/i386/immintrin.h: Likewise.
22811 * config/i386/linux-unwind.h: Likewise.
22812 * config/i386/linux64.h: Likewise.
22813 * config/i386/mm3dnow.h: Likewise.
22814 * config/i386/mmintrin-common.h: Likewise.
22815 * config/i386/mmintrin.h: Likewise.
22816 * config/i386/nmmintrin.h: Likewise.
22817 * config/i386/pmm_malloc.h: Likewise.
22818 * config/i386/pmmintrin.h: Likewise.
22819 * config/i386/smmintrin.h: Likewise.
22820 * config/i386/sol2-c1.asm: Likewise.
22821 * config/i386/sol2-ci.asm: Likewise.
22822 * config/i386/sol2-cn.asm: Likewise.
22823 * config/i386/sol2-gc1.asm: Likewise.
22824 * config/i386/tmmintrin.h: Likewise.
22825 * config/i386/unix.h: Likewise.
22826 * config/i386/w32-unwind.h: Likewise.
22827 * config/i386/wmmintrin.h: Likewise.
22828 * config/i386/x86-64.h: Likewise.
22829 * config/i386/x86intrin.h: Likewise.
22830 * config/i386/xmmintrin.h: Likewise.
22831 * config/ia64/crtbegin.asm: Likewise.
22832 * config/ia64/crtend.asm: Likewise.
22833 * config/ia64/crtfastmath.c: Likewise.
22834 * config/ia64/crti.asm: Likewise.
22835 * config/ia64/crtn.asm: Likewise.
22836 * config/ia64/fde-glibc.c: Likewise.
22837 * config/ia64/lib1funcs.asm: Likewise.
22838 * config/ia64/linux-unwind.h: Likewise.
22839 * config/ia64/quadlib.c: Likewise.
22840 * config/ia64/unwind-ia64.c: Likewise.
22841 * config/linux.h: Likewise.
22842 * config/m32c/m32c-lib1.S: Likewise.
22843 * config/m32c/m32c-lib2-trapv.c: Likewise.
22844 * config/m32c/m32c-lib2.c: Likewise.
22845 * config/m32r/initfini.c: Likewise.
22846 * config/m68hc11/larith.asm: Likewise.
22847 * config/m68hc11/m68hc11-crt0.S: Likewise.
22848 * config/m68k/cf.md: Likewise.
22849 * config/m68k/crti.s: Likewise.
22850 * config/m68k/crtn.s: Likewise.
22851 * config/m68k/lb1sf68.asm: Likewise.
22852 * config/m68k/linux-unwind.h: Likewise.
22853 * config/mcore/crti.asm: Likewise.
22854 * config/mcore/crtn.asm: Likewise.
22855 * config/mcore/lib1.asm: Likewise.
22856 * config/mips/linux-unwind.h: Likewise.
22857 * config/mips/loongson.h: Likewise.
22858 * config/mips/mips16.S: Likewise.
22859 * config/mmix/crti.asm: Likewise.
22860 * config/mmix/crtn.asm: Likewise.
22861 * config/pa/fptr.c: Likewise.
22862 * config/pa/hpux-unwind.h: Likewise.
22863 * config/pa/lib2funcs.asm: Likewise.
22864 * config/pa/linux-atomic.c: Likewise.
22865 * config/pa/linux-unwind.h: Likewise.
22866 * config/pa/milli64.S: Likewise.
22867 * config/pa/quadlib.c: Likewise.
22868 * config/pa/stublib.c: Likewise.
22869 * config/picochip/libgccExtras/adddi3.asm: Likewise.
22870 * config/picochip/libgccExtras/ashlsi3.asm: Likewise.
22871 * config/picochip/libgccExtras/ashlsi3.c: Likewise.
22872 * config/picochip/libgccExtras/ashrsi3.asm: Likewise.
22873 * config/picochip/libgccExtras/ashrsi3.c: Likewise.
22874 * config/picochip/libgccExtras/cmpsi2.asm: Likewise.
22875 * config/picochip/libgccExtras/divmod15.asm: Likewise.
22876 * config/picochip/libgccExtras/divmodhi4.asm: Likewise.
22877 * config/picochip/libgccExtras/divmodsi4.asm: Likewise.
22878 * config/picochip/libgccExtras/longjmp.asm: Likewise.
22879 * config/picochip/libgccExtras/lshrsi3.asm: Likewise.
22880 * config/picochip/libgccExtras/lshrsi3.c: Likewise.
22881 * config/picochip/libgccExtras/parityhi2.asm: Likewise.
22882 * config/picochip/libgccExtras/popcounthi2.asm: Likewise.
22883 * config/picochip/libgccExtras/setjmp.asm: Likewise.
22884 * config/picochip/libgccExtras/subdi3.asm: Likewise.
22885 * config/picochip/libgccExtras/ucmpsi2.asm: Likewise.
22886 * config/picochip/libgccExtras/udivmodhi4.asm: Likewise.
22887 * config/picochip/libgccExtras/udivmodsi4.asm: Likewise.
22888 * config/rs6000/750cl.h: Likewise.
22889 * config/rs6000/altivec.h: Likewise.
22890 * config/rs6000/biarch64.h: Likewise.
22891 * config/rs6000/crtresfpr.asm: Likewise.
22892 * config/rs6000/crtresgpr.asm: Likewise.
22893 * config/rs6000/crtresxfpr.asm: Likewise.
22894 * config/rs6000/crtresxgpr.asm: Likewise.
22895 * config/rs6000/crtsavfpr.asm: Likewise.
22896 * config/rs6000/crtsavgpr.asm: Likewise.
22897 * config/rs6000/darwin-asm.h: Likewise.
22898 * config/rs6000/darwin-fallback.c: Likewise.
22899 * config/rs6000/darwin-fpsave.asm: Likewise.
22900 * config/rs6000/darwin-ldouble.c: Likewise.
22901 * config/rs6000/darwin-tramp.asm: Likewise.
22902 * config/rs6000/darwin-unwind.h: Likewise.
22903 * config/rs6000/darwin-vecsave.asm: Likewise.
22904 * config/rs6000/darwin-world.asm: Likewise.
22905 * config/rs6000/e500crtres32gpr.asm: Likewise.
22906 * config/rs6000/e500crtres64gpr.asm: Likewise.
22907 * config/rs6000/e500crtres64gprctr.asm: Likewise.
22908 * config/rs6000/e500crtrest32gpr.asm: Likewise.
22909 * config/rs6000/e500crtrest64gpr.asm: Likewise.
22910 * config/rs6000/e500crtresx32gpr.asm: Likewise.
22911 * config/rs6000/e500crtresx64gpr.asm: Likewise.
22912 * config/rs6000/e500crtsav32gpr.asm: Likewise.
22913 * config/rs6000/e500crtsav64gpr.asm: Likewise.
22914 * config/rs6000/e500crtsav64gprctr.asm: Likewise.
22915 * config/rs6000/e500crtsavg32gpr.asm: Likewise.
22916 * config/rs6000/e500crtsavg64gpr.asm: Likewise.
22917 * config/rs6000/e500crtsavg64gprctr.asm: Likewise.
22918 * config/rs6000/eabi-ci.asm: Likewise.
22919 * config/rs6000/eabi-cn.asm: Likewise.
22920 * config/rs6000/eabi.asm: Likewise.
22921 * config/rs6000/linux-unwind.h: Likewise.
22922 * config/rs6000/linux64.h: Likewise.
22923 * config/rs6000/paired.h: Likewise.
22924 * config/rs6000/paired.md: Likewise.
22925 * config/rs6000/ppc64-fp.c: Likewise.
22926 * config/rs6000/ppu_intrinsics.h: Likewise.
22927 * config/rs6000/rs6000.h: Likewise.
22928 * config/rs6000/si2vmx.h: Likewise.
22929 * config/rs6000/sol-ci.asm: Likewise.
22930 * config/rs6000/sol-cn.asm: Likewise.
22931 * config/rs6000/spe.h: Likewise.
22932 * config/rs6000/spu2vmx.h: Likewise.
22933 * config/rs6000/sysv4.h: Likewise.
22934 * config/rs6000/tramp.asm: Likewise.
22935 * config/rs6000/vec_types.h: Likewise.
22936 * config/s390/linux-unwind.h: Likewise.
22937 * config/s390/tpf-unwind.h: Likewise.
22938 * config/score/crti.asm: Likewise.
22939 * config/score/crtn.asm: Likewise.
22940 * config/sh/crt1.asm: Likewise.
22941 * config/sh/crti.asm: Likewise.
22942 * config/sh/crtn.asm: Likewise.
22943 * config/sh/divtab-sh4-300.c: Likewise.
22944 * config/sh/divtab-sh4.c: Likewise.
22945 * config/sh/divtab.c: Likewise.
22946 * config/sh/lib1funcs-4-300.asm: Likewise.
22947 * config/sh/lib1funcs-Os-4-200.asm: Likewise.
22948 * config/sh/lib1funcs.asm: Likewise.
22949 * config/sh/lib1funcs.h: Likewise.
22950 * config/sh/linux-atomic.asm: Likewise.
22951 * config/sh/linux-unwind.h: Likewise.
22952 * config/sh/shmedia.h: Likewise.
22953 * config/sh/sshmedia.h: Likewise.
22954 * config/sh/ushmedia.h: Likewise.
22955 * config/sparc/crtfastmath.c: Likewise.
22956 * config/sparc/linux-unwind.h: Likewise.
22957 * config/sparc/sol2-c1.asm: Likewise.
22958 * config/sparc/sol2-ci.asm: Likewise.
22959 * config/sparc/sol2-cn.asm: Likewise.
22960 * config/spu/divmodti4.c: Likewise.
22961 * config/spu/divv2df3.c: Likewise.
22962 * config/spu/float_disf.c: Likewise.
22963 * config/spu/float_unsdidf.c: Likewise.
22964 * config/spu/float_unsdisf.c: Likewise.
22965 * config/spu/float_unssidf.c: Likewise.
22966 * config/spu/mfc_multi_tag_release.c: Likewise.
22967 * config/spu/mfc_multi_tag_reserve.c: Likewise.
22968 * config/spu/mfc_tag_release.c: Likewise.
22969 * config/spu/mfc_tag_reserve.c: Likewise.
22970 * config/spu/mfc_tag_table.c: Likewise.
22971 * config/spu/multi3.c: Likewise.
22972 * config/spu/spu_internals.h: Likewise.
22973 * config/spu/spu_intrinsics.h: Likewise.
22974 * config/spu/spu_mfcio.h: Likewise.
22975 * config/spu/vec_types.h: Likewise.
22976 * config/spu/vmx2spu.h: Likewise.
22977 * config/stormy16/stormy16-lib2.c: Likewise.
22978 * config/svr4.h: Likewise.
22979 * config/sync.c: Likewise.
22980 * config/v850/lib1funcs.asm: Likewise.
22981 * config/vxlib-tls.c: Likewise.
22982 * config/vxlib.c: Likewise.
22983 * config/vxworks-dummy.h: Likewise.
22984 * config/xtensa/crti.asm: Likewise.
22985 * config/xtensa/crtn.asm: Likewise.
22986 * config/xtensa/ieee754-df.S: Likewise.
22987 * config/xtensa/ieee754-sf.S: Likewise.
22988 * config/xtensa/lib1funcs.asm: Likewise.
22989 * config/xtensa/lib2funcs.S: Likewise.
22990 * config/xtensa/linux-unwind.h: Likewise.
22991 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
22992 * config/xtensa/unwind-dw2-xtensa.h: Likewise.
22993 * coretypes.h: Likewise.
22994 * crtstuff.c: Likewise.
22995 * defaults.h: Likewise.
22996 * dwarf2.h: Likewise.
22997 * emutls.c: Likewise.
22998 * gbl-ctors.h: Likewise.
22999 * gcov-io.h: Likewise.
23000 * ginclude/float.h: Likewise.
23001 * ginclude/iso646.h: Likewise.
23002 * ginclude/stdarg.h: Likewise.
23003 * ginclude/stdbool.h: Likewise.
23004 * ginclude/stddef.h: Likewise.
23005 * ginclude/stdfix.h: Likewise.
23006 * ginclude/stdint-gcc.h: Likewise.
23007 * ginclude/tgmath.h: Likewise.
23008 * gthr-aix.h: Likewise.
23009 * gthr-dce.h: Likewise.
23010 * gthr-gnat.c: Likewise.
23011 * gthr-gnat.h: Likewise.
23012 * gthr-lynx.h: Likewise.
23013 * gthr-mipssde.h: Likewise.
23014 * gthr-nks.h: Likewise.
23015 * gthr-posix.c: Likewise.
23016 * gthr-posix.h: Likewise.
23017 * gthr-posix95.h: Likewise.
23018 * gthr-rtems.h: Likewise.
23019 * gthr-single.h: Likewise.
23020 * gthr-solaris.h: Likewise.
23021 * gthr-tpf.h: Likewise.
23022 * gthr-vxworks.h: Likewise.
23023 * gthr-win32.h: Likewise.
23024 * gthr.h: Likewise.
23025 * libgcc2.c: Likewise.
23026 * libgcc2.h: Likewise.
23027 * libgcov.c: Likewise.
23028 * tsystem.h: Likewise.
23029 * typeclass.h: Likewise.
23030 * unwind-c.c: Likewise.
23031 * unwind-compat.h: Likewise.
23032 * unwind-dw2-fde-compat.c: Likewise.
23033 * unwind-dw2-fde-darwin.c: Likewise.
23034 * unwind-dw2-fde-glibc.c: Likewise.
23035 * unwind-dw2-fde.c: Likewise.
23036 * unwind-dw2-fde.h: Likewise.
23037 * unwind-dw2.c: Likewise.
23038 * unwind-dw2.h: Likewise.
23039 * unwind-generic.h: Likewise.
23040 * unwind-pe.h: Likewise.
23041 * unwind-sjlj.c: Likewise.
23042 * unwind.inc: Likewise.
23043 * config/arm/neon-gen.ml: Change generated copyright header to
23044 refer to version 3 of the GNU General Public License with
23045 version 3.1 of the GCC Runtime Library Exception and to point
23046 readers at the COPYING3 and COPYING3.RUNTIME files and the
23047 FSF's license web page.
23048 * config/arm/arm_neon.h: Regenerate.
23049
23050 2009-04-09 Jakub Jelinek <jakub@redhat.com>
23051
23052 * config/cris/cris.md: Change copyright header to refer to version
23053 3 of the GNU General Public License.
23054 * doc/install.texi2html: Change copyright header to refer to version
23055 3 of the GNU General Public License and to point readers at the
23056 COPYING3 file and the FSF's license web page.
23057 * config/vax/linux.h: Likewise.
23058
23059 2009-04-09 Paolo Bonzini <bonzini@gnu.org>
23060
23061 * config/i386/i386.md (cmpcc): New.
23062 * config/i386/sync.md (sync_compare_and_swap*): Set FLAGS_REG.
23063 (sync_compare_and_swap_cc*): Delete.
23064
23065 * config/s390/s390.c (s390_compare_emitted): Remove.
23066 (s390_emit_compare): Handle MODE_CC s390_compare_op0 like
23067 s390_compare_emitted used to be handled. Assert that modes match.
23068 (s390_emit_compare_and_swap): Use s390_emit_compare, do not
23069 refer to sync_compare_and_swap_ccsi.
23070 * config/s390/s390.h (s390_compare_emitted): Remove.
23071 * config/s390/s390.md (seq): Look for MODE_CC s390_compare_op0
23072 instead of s390_compare_emitted.
23073 (stack_protect_test, sync_compare_and_swap_cc): Set s390_compare_op0
23074 instead of s390_compare_emitted.
23075 * config/s390/s390.md (cmpcc): New.
23076 (sync_compare_and_swapqi, sync_compare_and_swaphi): Clobber
23077 CC_REGNUM, do not pretend it's set.
23078 (sync_compare_and_swap_cc*): Delete.
23079 * config/s390/predicates.md (cc_reg_operand): New.
23080
23081 * expr.c (sync_compare_and_swap_cc): Delete.
23082 * optabs.h (sync_compare_and_swap_cc): Delete.
23083 * optabs.c (prepare_cmp_insn): Ignore which specific CCmode
23084 is being used with can_compare_p.
23085 (emit_cmp_and_jump_insn_1): Likewise when looking in the optab.
23086 (find_cc_set): New.
23087 (expand_bool_compare_and_swap): Do not use sync_compare_and_swap_cc,
23088 look for a MODE_CC set instead. Use emit_store_flag.
23089 (expand_compare_and_swap_loop): Likewise, with some additional
23090 complication to avoid a force_reg when useless. Use
23091 emit_cmp_and_jump_insns.
23092 * genopinit.c (optabs): Delete sync_compare_and_swap_cc.
23093 * doc/md.texi (sync_compare_and_swap_cc): Merge with
23094 sync_compare_and_swap documentation.
23095
23096 2009-04-09 Jan Hubicka <jh@suse.cz>
23097
23098 * except.c (find_prev_try): Break out from ....
23099 (duplicate_eh_regions): ... here; properly update prev_try pointers
23100 when duplication part of tree.
23101 (dump_eh_tree): Improve dumping.
23102 (verify_eh_region): New.
23103 (verify_eh_tree): Use it.
23104
23105 2009-04-06 Richard Guenther <rguenther@suse.de>
23106
23107 * c-gimplify.c (c_gimplify_expr): Fix the invalid GENERIC
23108 &ARRAY addresses by adjusting their types and prepending
23109 a conversion.
23110 * tree-cfg.c (verify_gimple_assign_single): Verify that
23111 addresses are correct.
23112
23113 2009-04-09 Richard Guenther <rguenther@suse.de>
23114
23115 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Move non-constant
23116 indices into an array reference if possible.
23117 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
23118 Fold POINTER_PLUS_EXPR statements with invariant address.
23119
23120 2009-04-09 Alan Modra <amodra@bigpond.net.au>
23121
23122 PR target/39634
23123 * config.gcc (powerpc64-*-linux*): Always build biarch.
23124
23125 2009-04-09 Joseph Myers <joseph@codesourcery.com>
23126
23127 PR c/39613
23128 * c-typeck.c (do_case): If case label is not an INTEGER_CST, fold
23129 it and pedwarn if this results in an INTEGER_CST.
23130
23131 2009-04-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
23132
23133 * doc/install.texi: Update minimum GMP version. Remove obsolete
23134 text in MPFR section.
23135
23136 2009-04-08 Jakub Jelinek <jakub@redhat.com>
23137
23138 * dwarf2out.c (class_scope_p): New static inline.
23139 (class_or_namespace_scope_p): Use it.
23140 (gen_variable_die): Use DW_TAG_member tag for static data member
23141 declarations instead of DW_TAG_variable.
23142
23143 PR middle-end/39573
23144 * omp-low.c (expand_omp_taskreg): Finalize taskreg static local_decls
23145 variables.
23146
23147 2009-04-08 Richard Guenther <rguenther@suse.de>
23148
23149 * tree-ssa-sccvn.c (valueize_refs): Do not continue to
23150 valueize random data.
23151
23152 2009-04-08 David Edelsohn <edelsohn@gnu.org>
23153
23154 * config.gcc (aix tm_file): Add aix-stdint.h.
23155 (aix tm clause use_gcc_stdint): Set to wrap.
23156 * config/rs6000/aix-stdint.h: New file.
23157
23158 2009-04-08 Richard Guenther <rguenther@suse.de>
23159
23160 PR middle-end/36291
23161 * tree-dfa.c (add_referenced_var): Do not recurse into
23162 global initializers.
23163 * tree-ssa-ccp.c (get_symbol_constant_value): Add newly
23164 exposed variables.
23165 (fold_const_aggregate_ref): Likewise.
23166
23167 2009-04-08 Paolo Bonzini <bonzini@gnu.org>
23168
23169 * recog.c (ordered_comparison_operator): New.
23170 * gensupport.c (std_preds): Add it.
23171 * doc/md.texi (Machine-Independent Predicates): Document it.
23172
23173 2009-04-08 Jan Hubicka <jh@suse.cz>
23174
23175 * tree-eh.c (cleanup_eh): When not optimizing, do not try EH merging.
23176 * function.h (rtl_eh): Remove exception_handler_label_map.
23177 * except.c (ehl_hash, ehl_eq, add_ehl_entry,
23178 remove_exception_handler_label, for_each_eh_label_1): Remove.
23179 (rtl_remove_unreachable_regions): Remove.
23180 (convert_from_eh_region_ranges): Do not remove unreachable regions.
23181 (find_exception_handler_labels): Don't build the hashtable.
23182 (maybe_remove_eh_handler): Remove.
23183 (for_each_eh_label): Rewrite to walk the tree.
23184 (rest_of_handle_eh): Do not cleanup cfg prior EH construction.
23185 * except.h (maybe_remove_eh_handler): Remove.
23186 * passes.c (init_optimization_passes): Schedule second EH cleanup
23187 before out-of-ssa.
23188 * cfgrtl.c (rtl_delete_block, rtl_merge_blocks,
23189 cfg_layout_merge_blocks): Do not call maybe_remove_eh_handler.
23190
23191 2009-04-08 Paolo Bonzini <bonzini@gnu.org>
23192
23193 * genoutput.c (validate_optab_operands): New.
23194 (gen_insn, gen_expand): Call it.
23195
23196 * genflags.c (gen_insn): Detect misused iterators.
23197 (main): Pass line_no to gen_insn, exit with status 1 on error.
23198
23199 * genextract.c (line_no): Make global.
23200 (VEC_safe_set_locstr): Change assertion to error message.
23201 (main): Exit with status 1 on error.
23202
23203 2009-04-08 Joseph Myers <joseph@codesourcery.com>
23204
23205 PR c/39614
23206 PR c/39673
23207 * c-common.h (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
23208 C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
23209 EXPR_INT_CONST_OPERANDS): Remove duplicate definitions.
23210 * c-convert.c (convert): Do not call fold on results of conversion
23211 functions when the result is a C_MAYBE_CONST_EXPR.
23212 * c-parser.c (c_parser_postfix_expression): Do not fold condition
23213 of __builtin_choose_expr.
23214 * c-typeck.c (remove_c_maybe_const_expr): New.
23215 (build_unary_op, build_conditional_expr, build_compound_expr,
23216 build_binary_op, c_objc_common_truthvalue_conversion): Call
23217 remove_c_maybe_const_expr on any input C_MAYBE_CONST_EXPR with
23218 integer operands.
23219
23220 2009-04-08 Bingfeng Mei <bmei@broadcom.com>
23221
23222 * fold-const.c (const_binop): Combine two VECTOR_CST under operation
23223 CODE to produce a new one. Add a prototype to use fold_convert_const
23224
23225 2009-04-08 Danny Smith <dannysmith@users.sourceforge.net>
23226
23227 PR bootstrap/39660
23228 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): Don't
23229 mix declarations and code.
23230
23231 2009-04-08 Ben Elliston <bje@au.ibm.com>
23232
23233 * gcc.c: Replace `CC' with `GCC' throughout.
23234
23235 2009-04-07 H.J. Lu <hongjiu.lu@intel.com>
23236
23237 * doc/invoke.texi: Document Atom support.
23238
23239 2009-04-07 Jason Merrill <jason@redhat.com>
23240
23241 PR c++/25185
23242 * c-common.h, c-common.c: Add flag_pretty_templates.
23243 * c-opts.c (c_common_handle_option): Set it.
23244 * c.opt: Add -fno-pretty-templates.
23245 * doc/invoke.texi (C++ Dialect Options): Likewise.
23246
23247 2009-04-07 Uros Bizjak <ubizjak@gmail.com>
23248
23249 * config/ia64/ia64.c (ia64_builtins): Add IA64_BUILTIN_HUGE_VALQ.
23250 (ia64_init_builtins): Handle IA64_BUILTIN_HUGE_VALQ.
23251 (ia64_expand_builtin): Likewise.
23252
23253 2009-04-07 Martin Jambor <mjambor@suse.cz>
23254
23255 * tree-ssa-alias.c (refs_may_alias_p_1): Check for
23256 is_gimple_min_invariant rather than CONSTANT_CLASS_P so that invariant
23257 ADDR_EXPRS are include too.
23258
23259 2009-04-07 Richard Guenther <rguenther@suse.de>
23260
23261 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Non-aliased
23262 decls are only used if passes as parameters or if they are
23263 local statics and the call is not to a builtin.
23264 (call_may_clobber_ref_p_1): Likewise.
23265
23266 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
23267
23268 * expr.c (do_store_flag): Remove last argument. Simplify code
23269 to avoid duplication of tests already done by can_compare_p.
23270 (expand_expr_real_1): Adjust caller.
23271
23272 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
23273
23274 * optabs.c (can_compare_p): Test the predicate of a
23275 cbranch and cstore pattern.
23276
23277 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
23278
23279 * expr.c (convert_move): Use emit_store_flag instead of
23280 "emulating" it.
23281
23282 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
23283
23284 * config/i386/i386.c (ix86_compare_emitted): Remove.
23285 (ix86_expand_compare, ix86_expand_branch): Handle MODE_CC
23286 ix86_compare_op0 like ix86_compare_emitted used to be handled.
23287 * config/i386/i386.h (ix86_compare_emitted): Remove.
23288 * config/i386/i386.md (stack_protect_test): Set ix86_compare_op0
23289 instead of ix86_compare_emitted.
23290 * config/i386/sync.md (sync_compare_and_swap_cc): Likewise.
23291
23292 2009-04-07 Andrew Stubbs <ams@codesourcery.com>
23293
23294 * config.gcc (sh-*-*): Add sysroot-suffix.h to tm_file.
23295 Add t-sysroot-suffix to tmake_file.
23296 * config/print-sysroot-suffix.sh: New file.
23297 * config/t-sysroot-suffix: New file.
23298
23299 2009-04-07 Ben Elliston <bje@au.ibm.com>
23300
23301 * libgcc2.c (INFINITY): Use __builtin_huge_val, not __builtin_inf,
23302 as the latter produces a warning when the target does not support
23303 infinity.
23304
23305 2009-04-07 Ben Elliston <bje@au.ibm.com>
23306
23307 * dfp.c: Replace type punning assignments with memcpy throughout.
23308 * Makefile.in (dfp.o-warn): Remove.
23309
23310 2009-04-07 Alan Modra <amodra@bigpond.net.au>
23311
23312 PR target/39634
23313 * config.gcc: Merge powerpc-*-linux* and powerpc64-*-linux*.
23314 Include soft-fp/t-softfp after rs6000/t-linux64.
23315
23316 2009-04-06 Eric Botcazou <ebotcazou@adacore.com>
23317
23318 * stor-layout.c (set_sizetype): Use the full precision of their
23319 machine mode for bitsize types.
23320
23321 2009-04-06 H.J. Lu <hongjiu.lu@intel.com>
23322
23323 * config/i386/i386.md: Revert 2 accidental checkins.
23324
23325 2009-04-06 Joey Ye <joey.ye@intel.com>
23326 Xuepeng Guo <xuepeng.guo@intel.com>
23327 H.J. Lu <hongjiu.lu@intel.com>
23328
23329 Atom pipeline model, tuning and insn selection.
23330 * config.gcc (atom): Add atom config options and target.
23331
23332 * config/i386/atom.md: New.
23333
23334 * config/i386/i386.c (atom_cost): New cost.
23335 (m_ATOM): New macro flag.
23336 (initial_ix86_tune_features): Set m_ATOM.
23337 (x86_accumulate_outgoing_args): Likewise.
23338 (x86_arch_always_fancy_math_387): Likewise.
23339 (processor_target): Add Atom cost.
23340 (cpu_names): Add Atom cpu name.
23341 (override_options): Set Atom ISA.
23342 (ix86_issue_rate): New case PROCESSOR_ATOM.
23343 (ix86_adjust_cost): Likewise.
23344
23345 * config/i386/i386.h (TARGET_ATOM): New target macro.
23346 (ix86_tune_indices): Add X86_TUNE_OPT_AGU.
23347 (TARGET_OPT_AGU): New target option.
23348 (target_cpu_default): Add TARGET_CPU_DEFAULT_atom.
23349 (processor_type): Add PROCESSOR_ATOM.
23350
23351 * config/i386/i386.md (cpu): Add new value "atom".
23352 (use_carry, movu): New attr.
23353 (atom.md): Include atom.md.
23354 (adddi3_carry_rex64): Set attr "use_carry".
23355 (addqi3_carry): Likewise.
23356 (addhi3_carry): Likewise.
23357 (addsi3_carry): Likewise.
23358 (*addsi3_carry_zext): Likewise.
23359 (subdi3_carry_rex64): Likewise.
23360 (subqi3_carry): Likewise.
23361 (subhi3_carry): Likewise.
23362 (subsi3_carry): Likewise.
23363 (x86_movdicc_0_m1_rex64): Likewise.
23364 (*x86_movdicc_0_m1_se): Likewise.
23365 (x86_movsicc_0_m1): Likewise.
23366 (*x86_movsicc_0_m1_se): Likewise.
23367 (*adddi_1_rex64): Emit add insn as much as possible.
23368 (*addsi_1): Likewise.
23369 (return_internal): Set atom_unit.
23370 (return_internal_long): Likewise.
23371 (return_pop_internal): Likewise.
23372 (*rcpsf2_sse): Set atom_sse_attr attr.
23373 (*qrt<mode>2_sse): Likewise.
23374 (*prefetch_sse): Likewise.
23375
23376 * config/i386/i386-c.c (ix86_target_macros_internal): New case
23377 PROCESSOR_ATOM.
23378 (ix86_target_macros_internal): Likewise.
23379
23380 * config/i386/sse.md (cpu): Set attr "atom_sse_attr".
23381 (*prefetch_sse_rex): Likewise.
23382 (sse_rcpv4sf2): Likewise.
23383 (sse_vmrcpv4sf2): Likewise.
23384 (sse_sqrtv4sf2): Likewise.
23385 (<sse>_vmsqrt<mode>2): Likewise.
23386 (sse_ldmxcsr): Likewise.
23387 (sse_stmxcsr): Likewise.
23388 (*sse_sfence): Likewise.
23389 (sse2_clflush): Likewise.
23390 (*sse2_mfence): Likewise.
23391 (*sse2_lfence): Likewise.
23392 (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Set attr "movu".
23393 (<sse>_movup<ssemodesuffixf2c>): Likewise.
23394 (avx_movdqu<avxmodesuffix>): Likewise.
23395 (avx_lddqu<avxmodesuffix>): Likewise.
23396 (sse2_movntv2di): Change attr "type" to "ssemov".
23397 (sse2_movntsi): Likewise.
23398 (rsqrtv8sf2): Change attr "type" to "sseadd".
23399 (sse3_addsubv2df3): Set attr "atom_unit".
23400 (sse3_h<plusminus_insn>v4sf3): Likewise.
23401 (*sse2_pmaddwd): Likewise.
23402 (*vec_extractv2di_1_rex64): Likewise.
23403 (*vec_extractv2di_1_avx): Likewise.
23404 (sse2_psadbw): Likewise.
23405 (ssse3_phaddwv8hi3): Likewise.
23406 (ssse3_phaddwv4hi3): Likewise.
23407 (ssse3_phadddv4si3): Likewise.
23408 (ssse3_phadddv2si3): Likewise.
23409 (ssse3_phaddswv8hi3): Likewise.
23410 (ssse3_phaddswv4hi3): Likewise.
23411 (ssse3_phsubwv8hi3): Likewise.
23412 (ssse3_phsubwv4hi3): Likewise.
23413 (ssse3_phsubdv4si3): Likewise.
23414 (ssse3_phsubdv2si3): Likewise.
23415 (ssse3_phsubswv8hi3): Likewise.
23416 (ssse3_phsubswv4hi3): Likewise.
23417 (ssse3_pmaddubsw128): Likewise.
23418 (sse3_pmaddubsw: Likewise.
23419 (ssse3_palignrti): Likewise.
23420 (ssse3_palignrdi): Likewise.
23421
23422 2009-04-06 Gerald Pfeifer <gerald@pfeifer.com>
23423
23424 * doc/install.texi (Specific): Fix two cross-references to MinGW.
23425
23426 2009-04-06 Richard Guenther <rguenther@suse.de>
23427
23428 PR tree-optimization/28868
23429 * tree-ssa-pre.c (inserted_phi_names): New bitmap to keep track
23430 of which PHI results we inserted.
23431 (insert_into_preds_of_block): Record inserted PHIs.
23432 (eliminate): Eliminate redundant PHI nodes.
23433 (init_pre): Init inserted_phi_names.
23434
23435 2009-04-06 Richard Guenther <rguenther@suse.de>
23436
23437 PR tree-optimization/39643
23438 * tree-ssa-ccp.c (ccp_fold): Fold REALPART_EXPRs and
23439 IMAGPART_EXPRs of complex constants.
23440 (execute_fold_all_builtins): If we folded a call queue
23441 TODO_update_address_taken.
23442
23443 2009-04-06 Jan Hubicka <jh@suse.cz>
23444
23445 PR middle-end/39659
23446 * except.c (remove_unreachable_regions): Propagate may_contain_throw
23447 flag.
23448
23449 2009-04-06 Andrew Stubbs <ams@codesourcery.com>
23450
23451 * config/sh/lib1funcs.asm (ic_invalidate): Move ICBI out of the
23452 delay slot.
23453 (ic_invalidate_array): Likewise.
23454
23455 2009-04-06 Hariharan Sandanagobalane <hariharan@picochip.com>
23456
23457 * calls.c (emit_library_call_value_1): Fix a problem with parameter
23458 alignment for library calls.
23459
23460 2009-04-06 Danny Smith <dannysmith@users.sourceforge.net>
23461
23462 * config.gcc (mingw32 tm_file): Add mingw-stdint.h.
23463 (mingw32 tm clause use_gcc_stdint): Set to wrap.
23464 * config/i386/mingw-stdint.h: New file.
23465
23466 2009-04-05 Richard Guenther <rguenther@suse.de>
23467
23468 PR tree-optimization/39648
23469 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Work around
23470 our &A vs. &A[0] IL deficiencies.
23471
23472 2009-04-04 Jan Hubicka <jh@suse.cz>
23473
23474 * except.c (sjlj_find_directly_reachable_regions): Be ready for
23475 removed toplevel regions.
23476 (sjlj_mark_call_sites): Likewise.
23477
23478 2009-04-04 Dave Korn <dave.korn.cygwin@gmail.com>
23479
23480 * config.gcc (cygwin tm_file): Add cygwin-stdint.h.
23481 (cygwin tm clause use_gcc_stdint): Set to wrap.
23482 * config/i386/cygwin-stdint.h: New file.
23483
23484 2009-04-04 Richard Guenther <rguenther@suse.de>
23485
23486 * Makefile.in (tree-ssa-copy.o): Add $(CFGLOOP_H) dependency.
23487 * tree-ssa-copy.c (init_copy_prop): Do not propagate through
23488 single-argument PHIs if we are in loop-closed SSA form.
23489 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Pass extra guards
23490 for the pre-condition.
23491 (slpeel_tree_peel_loop_to_edge): Likewise.
23492 (vect_build_loop_niters): Take an optional sequence to append stmts.
23493 (vect_generate_tmps_on_preheader): Likewise.
23494 (vect_do_peeling_for_loop_bound): Take extra guards for the
23495 pre-condition.
23496 (vect_do_peeling_for_alignment): Adjust. Unconditionally apply
23497 the cost model check.
23498 (vect_loop_versioning): Take stmt and stmt list to put pre-condition
23499 guards if we are going to peel. Do not apply versioning in that case.
23500 * tree-vectorizer.h (vect_loop_versioning): Adjust declaration.
23501 (vect_do_peeling_for_loop_bound): Likewise.
23502 * tree-vect-loop.c (vect_transform_loop): If we are peeling for
23503 loop bound only record extra pre-conditions, do not apply loop
23504 versioning.
23505
23506 2009-04-04 Richard Guenther <rguenther@suse.de>
23507
23508 * tree-ssa-operands.c (pop_stmt_changes): Remove automatic
23509 renaming code.
23510
23511 2009-04-04 Jan Hubicka <jh@suse.cz>
23512
23513 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
23514 last_basic_block for size of bb->index indexed array.
23515 * bt-load.c (compute_defs_uses_and_gen, compute_kill,
23516 compute_out, link_btr_uses, build_btr_def_use_webs,
23517 build_btr_def_use_webs, migrate_btr_defs): Likewise.
23518
23519 2009-04-04 Jan Hubicka <jh@suse.cz>
23520
23521 * except.c (remove_eh_handler_and_replace): Break out from ...
23522 (remove_eh_handler): ... here.
23523 (bring_to_root): New function.
23524 (remove_unreachable_regions): Collect MUST_NOT_THROW, unify runtime
23525 handled ones, bring others to root of tree.
23526
23527 2009-04-04 Jan Hubicka <jh@suse.cz>
23528
23529 * tree-eh.c (tree_empty_eh_handler_p): Pattern match more curefully.
23530 (all_phis_safe_to_merge): New function.
23531 (update_info): New structure.
23532 (make_eh_edge_and_update_phi, update_eh_edges): New functions.
23533 (cleanup_empty_eh): Update SSA if possible.
23534
23535 2009-04-04 Richard Guenther <rguenther@suse.de>
23536
23537 * tree-ssa.c (verify_ssa): With -O0 we do not need VOPs.
23538 * tree-ssa-operands.c (append_vdef): Do not append VOPs at -O0.
23539 (append_vuse): Likewise.
23540
23541 2009-04-04 Jakub Jelinek <jakub@redhat.com>
23542
23543 * unwind-dw2.h (_Unwind_FrameState): Add REG_UNDEFINED enum value.
23544 * unwind-dw2.c (execute_cfa_program): Set how to REG_UNDEFINED
23545 instead of REG_UNSAVED for DW_CFA_undefined.
23546 (uw_update_context_1): Handle REG_UNDEFINED the same as REG_UNSAVED.
23547 (uw_update_context): If RA column is REG_UNDEFINED, mark it as
23548 outermost frame.
23549
23550 2009-04-04 Richard Earnshaw <rearnsha@arm.com>
23551
23552 PR target/39501
23553 * arm.md (movsfcc): Disable if not TARGET_HARD_FLOAT.
23554
23555 2009-04-04 Richard Guenther <rguenther@suse.de>
23556
23557 PR tree-optimization/8781
23558 PR tree-optimization/37892
23559 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Declare.
23560 * tree-ssa-sccvn.c (vn_reference_fold_indirect): New function.
23561 (valueize_refs): Call it for *& valueizations.
23562 (shared_reference_ops_from_ref): Rename to ...
23563 (valueize_shared_reference_ops_from_ref): ... this and valueize.
23564 (shared_reference_ops_from_call): Rename to ...
23565 (valueize_shared_reference_ops_from_call): ... this and valueize.
23566 (vn_reference_lookup): Update.
23567 (visit_reference_op_call): Likewise.
23568 * tree-ssa-pre.c (phi_translate_1): Fold *&.
23569 (eliminate): Value-replace the call address in call statements.
23570
23571 2009-04-04 Richard Guenther <rguenther@suse.de>
23572
23573 PR tree-optimization/39636
23574 * tree-ssa-forwprop.c
23575 (forward_propagate_addr_into_variable_array_index): Check for
23576 GIMPLE_ASSIGN before accessing the rhs code.
23577
23578 2009-04-03 Jason Merrill <jason@redhat.com>
23579
23580 * stor-layout.c (set_sizetype): Set TYPE_CANONICAL.
23581
23582 2009-04-03 Steve Ellcey <sje@cup.hp.com>
23583
23584 * config/ia64/ia64.md (extendsfdf2, extendsfxf2, extenddfxf2,
23585 truncdfsf2, truncxfsf2, truncxfdf2, floatdixf2, fix_truncsfdi2,
23586 fix_truncdfdi2, fix_truncxfdi2, fix_truncxfdi2_alts, floatunsdisf2,
23587 floatunsdidf2, floatunsdixf2, fixuns_truncsfdi2, fixuns_truncdfdi2,
23588 fixuns_truncxfdi2, fixuns_truncxfdi2_alts, divsi3_internal,
23589 smuldi3_highpart, umuldi3_highpart, ctzdi2, *getf_exp_xf,
23590 divdi3_internal_lat, divdi3_internal_thr, mulditi3, *mulditi3_internal,
23591 umulditi3, *umulditi3_internal, addsf3, mulsf3, abssf2, negsf2,
23592 *nabssf2, sminsf3, smaxsf3, *maddsf4, *msubsf4, *nmulsf3, *nmaddsf4,
23593 *nmaddsf4_alts, divsf3, *sqrt_approx, sqrtsf2, sqrtsf2_internal_thr,
23594 adddf3, *adddf3_trunc, muldf3, *muldf3_trunc, absdf2, negdf2, *nabsdf2,
23595 smindf3, smaxdf3, *madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc,
23596 *nmuldf3, *nmuldf3_trunc, *nmadddf4, *nmadddf4_alts, *nmadddf4_truncsf,
23597 *nmadddf4_truncsf_alts, divdf3, sqrtdf2, sqrtdf2_internal_thr, divxf3,
23598 sqrtxf2, sqrtxf2_internal_thr, *recip_approx):
23599 Use fr_reg_or_fp01_operand instead of fr_register_operand
23600
23601 * config/ia64/div.md (extend<mode>rf2, truncrf<mode>2,
23602 recip_approx_rf, divsf3_internal_thr, divsf3_internal_lat,
23603 divdf3_internal_thr, divdf3_internal_lat divxf3_internal): Ditto.
23604
23605 2009-04-03 Vladimir Makarov <vmakarov@redhat.com>
23606
23607 PR rtl-optimization/39607
23608 PR rtl-optimization/39631
23609
23610 Revert:
23611
23612 2009-03-30 Vladimir Makarov <vmakarov@redhat.com>
23613 * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
23614 instead of DF_LR_OUT.
23615 * ira-lives.c (process_bb_node_lives): Ditto.
23616 * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
23617 instead of DF_LR_{OUT,IN}.
23618 * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
23619 * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
23620
23621 2009-04-03 Steven Bosscher <steven@gcc.gnu.org>
23622
23623 * omp-low.c (pass_expand_omp): Don't claim to provide PROP_gimple_lomp.
23624 (execute_lower_omp): Always run but take the short way out if -fopenmp
23625 is not given.
23626 (gate_lower_omp): Remove, forcing the pass manager to always run the
23627 pass and always set PROP_gimple_lomp.
23628 (pass_lower_omp): Remove gate function.
23629 * matrix-reorg.c (pass_ipa_matrix_reorg): Don't claim to provide
23630 PROP_trees. Instead, require it.
23631 * ipa-cp.c (pass_ipa_cp): Likewise.
23632 * ipa-inline.c (pass_early_inline): Don't claim to provide PROP_cfg.
23633 (pass_ipa_early_inline, pass_inline_parameters, pass_ipa_inline): Idem.
23634 * tree-profile.c (pass_tree_profile): Don't claim to provide PROP_cfg
23635 and PROP_gimple_leh.
23636
23637 2009-04-03 Richard Guenther <rguenther@suse.de>
23638
23639 PR middle-end/13146
23640 PR tree-optimization/23940
23641 PR tree-optimization/33237
23642 PR middle-end/33974
23643 PR middle-end/34093
23644 PR tree-optimization/36201
23645 PR tree-optimization/36230
23646 PR tree-optimization/38049
23647 PR tree-optimization/38207
23648 PR tree-optimization/38230
23649 PR tree-optimization/38301
23650 PR tree-optimization/38585
23651 PR middle-end/38895
23652 PR tree-optimization/38985
23653 PR tree-optimization/39299
23654 * tree-ssa-structalias.h: Remove.
23655 * tree-ssa-operands.h (NULL_USE_OPERAND_P): Make of type use_operand_p.
23656 (NULL_DEF_OPERAND_P): Make of type def_operand_p.
23657 (struct vuse_element_d): Remove.
23658 (struct vuse_vec_d): Likewise.
23659 (VUSE_VECT_NUM_ELEM, VUSE_VECT_ELEMENT_NC, VUSE_ELEMENT_PTR_NC,
23660 VUSE_ELEMENT_VAR_NC, VUSE_VECT_ELEMENT, VUSE_ELEMENT_PTR,
23661 SET_VUSE_VECT_ELEMENT, SET_VUSE_ELEMENT_VAR, SET_VUSE_ELEMENT_PTR,
23662 VUSE_ELEMENT_VAR): Likewise.
23663 (struct voptype_d): Likewise.
23664 (NUM_VOP_FREE_BUCKETS): Likewise.
23665 (struct ssa_operands): Remove vop_free_buckets and mpt_table fields.
23666 (struct stmt_operands_d): Remove.
23667 (VUSE_OP_PTR, VUSE_OP, SET_VUSE_OP, VUSE_NUM, VUSE_VECT,
23668 VDEF_RESULT_PTR, VDEF_RESULT, VDEF_OP_PTR, VDEF_OP, SET_VDEF_OP,
23669 VDEF_NUM, VDEF_VECT): Likewise.
23670 (copy_virtual_operands): Remove.
23671 (operand_build_cmp): Likewise.
23672 (create_ssa_artificial_load_stmt): Likewise.
23673 (enum ssa_op_iter_type): Remove ssa_op_iter_vdef.
23674 (struct ssa_operand_iterator_d): Remove vuses, vdefs, mayusesm
23675 vuse_index and mayuse_index members. Pack and move done and iter_type
23676 members to the front.
23677 (SSA_OP_VMAYUSE): Remove.
23678 (SSA_OP_VIRTUAL_USES): Adjust.
23679 (FOR_EACH_SSA_VDEF_OPERAND): Remove.
23680 (unlink_stmt_vdef): Declare.
23681 (add_to_addressable_set): Remove.
23682 * tree-vrp.c (stmt_interesting_for_vrp): Adjust.
23683 (vrp_visit_stmt): Likewise.
23684 * doc/tree-ssa.texi (Alias analysis): Update.
23685 * doc/invoke.texi (max-aliased-vops): Remove docs.
23686 (avg-aliased-vops): Likewise.
23687 * tree-into-ssa.c (syms_to_rename): Remove.
23688 (need_to_update_vops_p): Likewise.
23689 (need_to_initialize_update_ssa_p): Rename to ...
23690 (update_ssa_initialized_fn): ... this. Track function we are
23691 initialized for.
23692 (symbol_marked_for_renaming): Simplify.
23693 (add_new_name_mapping): Do not set need_to_update_vops_p.
23694 (dump_currdefs): Use SYMS_TO_RENAME.
23695 (rewrite_update_stmt): Always walk all uses/defs.
23696 (dump_update_ssa): Adjust.
23697 (init_update_ssa): Take function argument. Track what we are
23698 initialized for.
23699 (delete_update_ssa): Reset SYMS_TO_RENAME and update_ssa_initialized_fn.
23700 (create_new_def_for): Initialize for cfun, assert we are initialized
23701 for cfun.
23702 (mark_sym_for_renaming): Simplify.
23703 (mark_set_for_renaming): Do not initialize update-ssa.
23704 (need_ssa_update_p): Simplify. Take function argument.
23705 (name_mappings_registered_p): Assert we ask for the correct function.
23706 (name_registered_for_update_p): Likewise.
23707 (ssa_names_to_replace): Likewise.
23708 (release_ssa_name_after_update_ssa): Likewise.
23709 (update_ssa): Likewise. Use SYMS_TO_RENAME.
23710 (dump_decl_set): Do not print a newline.
23711 (debug_decl_set): Do it here.
23712 (dump_update_ssa): And here.
23713 * tree-ssa-loop-im.c (move_computations): Adjust.
23714 (movement_possibility): Likewise.
23715 (determine_max_movement): Likewise.
23716 (gather_mem_refs_stmt): Likewise.
23717 * tree-dump.c (dequeue_and_dump): Do not handle SYMBOL_MEMORY_TAG
23718 or NAME_MEMORY_TAG.
23719 * tree-complex.c (update_all_vops): Remove.
23720 (expand_complex_move): Adjust.
23721 * tree-ssa-loop-niter.c (chain_of_csts_start): Use NULL_TREE.
23722 Simplify test for memory referencing statement. Exclude
23723 non-invariant ADDR_EXPRs.
23724 * tree-pretty-print.c (dump_generic_node): Do not handle memory tags.
23725 * tree-loop-distribution.c (generate_memset_zero): Adjust.
23726 (rdg_flag_uses): Likewise.
23727 * tree-tailcall.c (suitable_for_tail_opt_p): Remove memory-tag
23728 related code.
23729 (tree_optimize_tail_calls_1): Also split the
23730 edge from the entry block if we have degenerate PHI nodes in
23731 the first basic block.
23732 * tree.c (init_ttree): Remove memory-tag related code.
23733 (tree_code_size): Likewise.
23734 (tree_node_structure): Likewise.
23735 (build7_stat): Re-write to be build6_stat.
23736 * tree.h (MTAG_P, TREE_MEMORY_TAG_CHECK, TMR_TAG): Remove.
23737 (SSA_VAR_P): Adjust.
23738 (struct tree_memory_tag): Remove.
23739 (struct tree_memory_partition_tag): Likewise.
23740 (union tree_node): Adjust.
23741 (build7): Re-write to be build6.
23742 * tree-pass.h (pass_reset_cc_flags): Remove.
23743 (TODO_update_address_taken): New flag.
23744 (pass_simple_dse): Remove.
23745 * ipa-cp.c (ipcp_update_callgraph): Update SSA form.
23746 * params.h (MAX_ALIASED_VOPS): Remove.
23747 (AVG_ALIASED_VOPS): Likewise.
23748 * omp-low.c (expand_omp_taskreg): Update SSA form.
23749 * tree-ssa-dse.c (dse_optimize_stmt): Properly query if the rhs
23750 aliases the lhs in a copy stmt.
23751 * tree-ssa-dse.c (struct address_walk_data): Remove.
23752 (memory_ssa_name_same): Likewise.
23753 (memory_address_same): Likewise.
23754 (get_kill_of_stmt_lhs): Likewise.
23755 (dse_possible_dead_store_p): Simplify, use the oracle. Handle
23756 unused stores. Look through PHI nodes into post-dominated regions.
23757 (dse_optimize_stmt): Simplify. Properly remove stores.
23758 (tree_ssa_dse): Compute dominators.
23759 (execute_simple_dse): Remove.
23760 (pass_simple_dse): Likewise.
23761 * ipa-reference.c (scan_stmt_for_static_refs): Open-code
23762 gimple_loaded_syms and gimple_stored_syms computation.
23763 * toplev.c (dump_memory_report): Dump alias and pta stats.
23764 * tree-ssa-sccvn.c (vn_reference_compute_hash): Simplify.
23765 (vn_reference_eq): Likewise.
23766 (vuses_to_vec, copy_vuses_from_stmt, vdefs_to_vec,
23767 copy_vdefs_from_stmt, shared_lookup_vops, shared_vuses_from_stmt,
23768 valueize_vuses): Remove.
23769 (get_def_ref_stmt_vuses): Simplify. Rename to ...
23770 (get_def_ref_stmt_vuse): ... this.
23771 (vn_reference_lookup_2): New function.
23772 (vn_reference_lookup_pieces): Use walk_non_aliased_vuses for
23773 walking equivalent vuses. Simplify.
23774 (vn_reference_lookup): Likewise.
23775 (vn_reference_insert): Likewise.
23776 (vn_reference_insert_pieces): Likewise.
23777 (visit_reference_op_call): Simplify.
23778 (visit_reference_op_load): Likewise.
23779 (visit_reference_op_store): Likewise.
23780 (init_scc_vn): Remove shared_lookup_vuses initialization.
23781 (free_scc_vn): Remove shared_lookup_vuses freeing.
23782 (sort_vuses, sort_vuses_heap): Remove.
23783 (get_ref_from_reference_ops): Export.
23784 * tree-ssa-sccvn.h (struct vn_reference_s): Replace vuses
23785 vector with single vuse pointer.
23786 (vn_reference_lookup_pieces, vn_reference_lookup,
23787 vn_reference_insert, vn_reference_insert_pieces): Adjust prototypes.
23788 (shared_vuses_from_stmt): Remove.
23789 (get_ref_from_reference_ops): Declare.
23790 * tree-ssa-loop-manip.c (slpeel_can_duplicate_loop_p): Adjust.
23791 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
23792 memory-tag related code.
23793 * tree-ssa-ccp.c (get_symbol_constant_value): Remove memory-tag code.
23794 (likely_value): Add comment, skip static-chain of call statements.
23795 (surely_varying_stmt_p): Adjust.
23796 (gimplify_and_update_call_from_tree): Likewise.
23797 (execute_fold_all_builtins): Do not rebuild alias info.
23798 (gimplify_and_update_call_from_tree): Properly update VOPs.
23799 * tree-ssa-loop-ivopts.c (get_ref_tag): Remove.
23800 (copy_ref_info): Remove memory-tag related code.
23801 * tree-call-cdce.c (tree_call_cdce): Rename the VOP.
23802 * ipa-pure-const.c (check_decl): Remove memory-tag related code.
23803 (check_stmt): Open-code gimple_loaded_syms and gimple_stored_syms
23804 computation.
23805 * tree-ssa-dom.c (gimple_p): Remove typedef.
23806 (eliminate_redundant_computations): Adjust.
23807 (record_equivalences_from_stmt): Likewise.
23808 (avail_expr_hash): Likewise.
23809 (avail_expr_eq): Likewise.
23810 * tree-ssa-propagate.c (update_call_from_tree): Properly update VOPs.
23811 (stmt_makes_single_load): Likewise.
23812 (stmt_makes_single_store): Likewise.
23813 * tree-ssa-alias.c: Rewrite completely.
23814 (debug_memory_partitions, dump_mem_ref_stats, debug_mem_ref_stats,
23815 debug_mem_sym_stats, dump_mem_sym_stats_for_var,
23816 debug_all_mem_sym_stats, debug_mp_info, update_mem_sym_stats_from_stmt,
23817 delete_mem_ref_stats, create_tag_raw, dump_points_to_info,
23818 dump_may_aliases_for, debug_may_aliases_for, new_type_alias):
23819 Remove public functions.
23820 (pass_reset_cc_flags): Remove.
23821 (pass_build_alias): Move ...
23822 * tree-ssa-structalias.c (pass_build_alias): ... here.
23823 * tree-ssa-alias.c (may_be_aliased): Move ...
23824 * tree-flow-inline.h (may_be_aliased): ... here.
23825 tree-ssa-alias.c (struct count_ptr_d, count_ptr_derefs,
23826 count_uses_and_derefs): Move ...
23827 * gimple.c: ... here.
23828 * gimple.h (count_uses_and_derefs): Declare.
23829 * tree-ssa-alias.c (dump_alias_stats, ptr_deref_may_alias_global_p,
23830 ptr_deref_may_alias_decl_p, ptr_derefs_may_alias_p,
23831 same_type_for_tbaa, nonaliasing_component_refs_p, decl_refs_may_alias_p,
23832 indirect_ref_may_alias_decl_p, indirect_refs_may_alias_p,
23833 ref_maybe_used_by_call_p, ref_maybe_used_by_stmt_p,
23834 call_may_clobber_ref_p, stmt_may_clobber_ref_p, maybe_skip_until,
23835 get_continuation_for_phi, walk_non_aliased_vuses, walk_aliased_vdefs):
23836 New functions.
23837 * tree-dfa.c (refs_may_alias_p): Move ...
23838 * tree-ssa-alias.c (refs_may_alias_p): ... here. Extend.
23839 * tree-ssa-alias.h: New file.
23840 * tree-ssa-sink.c (is_hidden_global_store): Adjust.
23841 (statement_sink_location): Likewise.
23842 * opts.c (decode_options): Do not adjust max-aliased-vops or
23843 avg-aliased-vops values.
23844 * timevar.def (TV_TREE_MAY_ALIAS): Remove.
23845 (TV_CALL_CLOBBER): Likewise.
23846 (TV_FLOW_SENSITIVE): Likewise.
23847 (TV_FLOW_INSENSITIVE): Likewise.
23848 (TV_MEMORY_PARTITIONING): Likewise.
23849 (TV_ALIAS_STMT_WALK): New timevar.
23850 * tree-ssa-loop-ivcanon.c (empty_loop_p): Adjust.
23851 * tree-ssa-address.c (create_mem_ref_raw): Use build6.
23852 (get_address_description): Remove memory-tag related code.
23853 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Adjust.
23854 * treestruct.def (TS_MEMORY_TAG, TS_MEMORY_PARTITION_TAG): Remove.
23855 * tree-eh.c (cleanup_empty_eh): Do not leave stale SSA_NAMEs
23856 and immediate uses in statements. Document.
23857 * gimple-pretty-print.c (dump_gimple_mem_ops): Adjust.
23858 (dump_symbols): Remove.
23859 (dump_gimple_mem_ops): Do not dump loaded or stored syms.
23860 * alias.c (get_deref_alias_set): New function split out from ...
23861 (get_alias_set): ... here.
23862 * alias.h (get_deref_alias_set): Declare.
23863 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove unused
23864 type parameter. Remove restrict pointer handling. Create a
23865 ref-all pointer in case type-based alias sets do not conflict.
23866 (vect_analyze_data_refs): Remove SMT related code.
23867 * tree-vect-stmts.c (vectorizable_store): Re-instantiate TBAA assert.
23868 (vectorizable_load): Likewise.
23869 * tree-data-ref.h (struct dr_alias): Remove symbol_tag field.
23870 (DR_SYMBOL_TAG, DR_VOPS): Remove.
23871 * tree-data-ref.c (dr_may_alias_p): Use the alias-oracle.
23872 Ignore vops and SMTs.
23873 (dr_analyze_alias): Likewise..
23874 (free_data_ref): Likewise.
23875 (create_data_ref): Likewise.
23876 (analyze_all_data_dependences): Likewise.
23877 (get_references_in_stmt): Adjust.
23878 * tree-flow-inline.h (gimple_aliases_computed_p,
23879 gimple_addressable_vars, gimple_call_clobbered_vars,
23880 gimple_call_used_vars, gimple_global_var, may_aliases, memory_partition,
23881 factoring_name_p, mark_call_clobbered, clear_call_clobbered,
23882 compare_ssa_operands_equal, symbol_mem_tag, set_symbol_mem_tag,
23883 gimple_mem_ref_stats): Remove.
23884 (gimple_vop): New function.
23885 (op_iter_next_use): Remove vuses and mayuses cases.
23886 (op_iter_next_def): Remove vdefs case.
23887 (op_iter_next_tree): Remove vuses, mayuses and vdefs cases.
23888 (clear_and_done_ssa_iter): Do not set removed fields.
23889 (op_iter_init): Likewise. Skip vuse and/or vdef if requested.
23890 Assert we are not iterating over vuses or vdefs if not also
23891 iterating over uses or defs.
23892 (op_iter_init_use): Likewise.
23893 (op_iter_init_def): Likewise.
23894 (op_iter_next_vdef): Remove.
23895 (op_iter_next_mustdef): Likewise.
23896 (op_iter_init_vdef): Likewise.
23897 (compare_ssa_operands_equal): Likewise.
23898 (link_use_stmts_after): Handle vuse operand.
23899 (is_call_used): Use is_call_clobbered.
23900 (is_call_clobbered): Global variables are always call clobbered,
23901 query the call-clobbers bitmap.
23902 (mark_call_clobbered): Ignore global variables.
23903 (clear_call_clobbered): Likewise.
23904 * tree-ssa-coalesce.c (create_outofssa_var_map): Adjust
23905 virtual operands sanity check.
23906 * tree.def (NAME_MEMORY_TAG, SYMBOL_MEMORY_TAG, MEMORY_PARTITION_TAG):
23907 Remove.
23908 (TARGET_MEM_REF): Remove TMR_TAG operand.
23909 * tree-dfa.c (add_referenced_var): Initialize call-clobber state.
23910 Remove call-clobber related code.
23911 (remove_referenced_var): Likewise. Do not clear mpt or symbol_mem_tag.
23912 (dump_variable): Do not dump SMTs, memory stats, may-aliases or
23913 partitions or escape reason.
23914 (get_single_def_stmt, get_single_def_stmt_from_phi,
23915 get_single_def_stmt_with_phi): Remove.
23916 (dump_referenced_vars): Tidy.
23917 (get_ref_base_and_extent): Allow bare decls.
23918 (collect_dfa_stats): Adjust.
23919 * graphite.c (rename_variables_in_stmt): Adjust.
23920 (graphite_copy_stmts_from_block): Likewise.
23921 (translate_clast): Likewise.
23922 * tree-ssa-pre.c (struct bb_bitmap_sets): Add expr_dies bitmap.
23923 (EXPR_DIES): New.
23924 (translate_vuse_through_block): Use the oracle.
23925 (phi_translate_1): Adjust.
23926 (value_dies_in_block_x): Use the oracle. Cache the outcome
23927 in EXPR_DIES.
23928 (valid_in_sets): Check if the VUSE for
23929 a REFERENCE is available.
23930 (eliminate): Do not remove stmts during elimination,
23931 instead queue and remove them afterwards.
23932 (do_pre): Do not rebuild alias info.
23933 (pass_pre): Run TODO_rebuild_alias before PRE.
23934 * tree-ssa-live.c (remove_unused_locals): Remove memory-tag code.
23935 * tree-sra.c (sra_walk_function): Use gimple_references_memory_p.
23936 (mark_all_v_defs_stmt): Remove.
23937 (mark_all_v_defs_seq): Adjust.
23938 (sra_replace): Likewise.
23939 (scalarize_use): Likewise.
23940 (scalarize_copy): Likewise.
23941 (scalarize_init): Likewise.
23942 (scalarize_ldst): Likewise.
23943 (todoflags): Remove.
23944 (tree_sra): Do not rebuild alias info.
23945 (tree_sra_early): Adjust.
23946 (pass_sra): Run TODO_update_address_taken before SRA.
23947 * tree-predcom.c (set_alias_info): Remove.
23948 (prepare_initializers_chain): Do not call it.
23949 (mark_virtual_ops_for_renaming): Adjust.
23950 (mark_virtual_ops_for_renaming_list): Remove.
23951 (initialize_root_vars): Adjust.
23952 (initialize_root_vars_lm): Likewise.
23953 (prepare_initializers_chain): Likewise.
23954 * tree-ssa-copy.c (may_propagate_copy): Remove memory-tag related code.
23955 (may_propagate_copy_into_stmt): Likewise.
23956 (merge_alias_info): Do nothing for now.
23957 (propagate_tree_value_into_stmt): Adjust.
23958 (stmt_may_generate_copy): Likewise.
23959 * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr): Do
23960 not mark symbols for renaming.
23961 (forward_propagate_addr_expr): Match up push/pop_stmt_changes
23962 with the same statement, make sure to update the new pointed-to one.
23963 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not copy
23964 call statements, do not mark symbols for renaming.
23965 (mark_operand_necessary): Dump something.
23966 (ref_may_be_aliased): New function.
23967 (mark_aliased_reaching_defs_necessary_1): New helper function.
23968 (mark_aliased_reaching_defs_necessary): Likewise.
23969 (mark_all_reaching_defs_necessary_1): Likewise.
23970 (mark_all_reaching_defs_necessary): Likewise.
23971 (propagate_necessity): Do not process virtual PHIs. For
23972 non-aliased loads mark all reaching definitions as necessary.
23973 For aliased loads and stores mark the immediate dominating
23974 aliased clobbers as necessary.
23975 (visited): New global static.
23976 (perform_tree_ssa_dce): Free visited bitmap after propagating
23977 necessity.
23978 (remove_dead_phis): Perform simple dead virtual PHI removal.
23979 (remove_dead_stmt): Properly unlink virtual operands when
23980 removing stores.
23981 (eliminate_unnecessary_stmts): Schedule PHI removal after
23982 stmt removal.
23983 * tree-ssa-ter.c (is_replaceable_p): Adjust.
23984 (process_replaceable): Likewise.
23985 (find_replaceable_in_bb): Likewise.
23986 * tree-ssa.c (verify_ssa_name): Verify all VOPs are
23987 based on the single gimple vop.
23988 (verify_flow_insensitive_alias_info): Remove.
23989 (verify_flow_sensitive_alias_info): Likewise.
23990 (verify_call_clobbering): Likewise.
23991 (verify_memory_partitions): Likewise.
23992 (verify_alias_info): Likewise.
23993 (verify_ssa): Adjust..
23994 (execute_update_addresses_taken): Export. Update SSA
23995 manually. Optimize only when optimizing. Use a local bitmap.
23996 (pass_update_address_taken): Remove TODO_update_ssa, add
23997 TODO_dump_func.
23998 (pass_update_address_taken): Just use TODO_update_address_taken.
23999 (init_tree_ssa): Do not initialize addressable_vars.
24000 (verify_ssa): Verify new VUSE / VDEF properties.
24001 Verify that all stmts definitions have the stmt as SSA_NAME_DEF_STMT.
24002 Do not call verify_alias_info.
24003 (delete_tree_ssa): Clear the VUSE, VDEF operands.
24004 Do not free the loaded and stored syms bitmaps. Reset the escaped
24005 and callused solutions. Do not free addressable_vars.
24006 Remove memory-tag related code.
24007 (warn_uninitialized_var): Aliases are always available.
24008 * tree-ssa-loop-prefetch.c (gather_memory_references): Adjust.
24009 * lambda-code.c (can_put_in_inner_loop): Adjust.
24010 (can_put_after_inner_loop): Likewise.
24011 (perfect_nestify): Likewise.
24012 * tree-vect-stmts.c (vect_stmt_relevant_p): Adjust.
24013 (vect_gen_widened_results_half): Remove CALL_EXPR handling.
24014 (vectorizable_conversion): Do not mark symbols for renaming.
24015 * tree-inline.c (remap_gimple_stmt): Clear VUSE/VDEF.
24016 (expand_call_inline): Unlink the calls virtual operands before
24017 replacing it.
24018 (tree_function_versioning): Do not call update_ssa if we are not
24019 updating clones. Simplify.
24020 * tree-ssa-phiprop.c (phivn_valid_p): Adjust.
24021 (propagate_with_phi): Likewise..
24022 * tree-outof-ssa.c (create_temp): Remove memory tag and call
24023 clobber code. Assert we are not aliased or global.
24024 * tree-flow.h: Include tree-ssa-alias.h
24025 (enum escape_type): Remove.
24026 (struct mem_sym_stats_d): Likewise.
24027 (struct mem_ref_stats_d): Likewise.
24028 (struct gimple_df): Add vop member. Remove global_var,
24029 call_clobbered_vars, call_used_vars, addressable_vars,
24030 aliases_compted_p and mem_ref_stats members. Add syms_to_rename,
24031 escaped and callused members.
24032 (struct ptr_info_def): Remove all members, add points-to solution
24033 member pt.
24034 (struct var_ann_d): Remove in_vuse_list, in_vdef_list,
24035 call_clobbered, escape_mask, mpt and symbol_mem_tag members.
24036 * Makefile.in (TREE_FLOW_H): Add tree-ssa-alias.h.
24037 (tree-ssa-structalias.o): Remove tree-ssa-structalias.h.
24038 (tree-ssa-alias.o): Likewise.
24039 (toplev.o): Add tree-ssa-alias.h
24040 (GTFILES): Remove tree-ssa-structalias.h, add tree-ssa-alias.h.
24041 * gimple.c (gimple_set_bb): Fix off-by-one error.
24042 (is_gimple_reg): Do not handle memory tags.
24043 (gimple_copy): Also copy virtual operands.
24044 Delay updating the statement. Do not reset loaded and stored syms.
24045 (gimple_set_stored_syms): Remove.
24046 (gimple_set_loaded_syms): Likewise.
24047 (gimple_call_copy_skip_args): Copy the virtual operands
24048 and mark the new statement modified.
24049 * tree-ssa-structalias.c (may_alias_p): Remove.
24050 (set_uids_in_ptset): Take the alias set to prune with as
24051 parameter. Fold in the alias test of may_alias_p.
24052 (compute_points_to_sets): Compute whether a ptr is dereferenced
24053 in a local sbitmap.
24054 (process_constraint): Deal with &ANYTHING on the lhs, reject all
24055 other ADDRESSOF constraints on the lhs.
24056 (get_constraint_for_component_ref): Assert that we don't get
24057 ADDRESSOF constraints from the base of the reference.
24058 Properly generate UNKNOWN_OFFSET for DEREF if needed.
24059 (struct variable_info): Remove collapsed_to member.
24060 (get_varinfo_fc): Remove.
24061 (new_var_info): Do not set collapsed_to.
24062 (dump_constraint): Do not follow cycles.
24063 (dump_constraint_graph): Likewise.
24064 (build_pred_graph): Likewise.
24065 (build_succ_graph): Likewise.
24066 (rewrite_constraints): Likewise.
24067 (do_simple_structure_copy): Remove.
24068 (do_rhs_deref_structure_copy): Remove.
24069 (do_lhs_deref_structure_copy): Remove.
24070 (collapse_rest_of_var): Remove.
24071 (do_structure_copy): Re-implement.
24072 (pta_stats): New global variable.
24073 (dump_pta_stats): New function.
24074 (struct constraint_expr): Make offset signed.
24075 (UNKNOWN_OFFSET): Define special value.
24076 (dump_constraint): Dump UNKNOWN_OFFSET as UNKNOWN.
24077 (solution_set_expand): New helper function split out from ...
24078 (do_sd_constraint): ... here.
24079 (solution_set_add): Handle UNKNOWN_OFFSET. Handle negative offsets.
24080 (do_ds_constraint): Likewise.
24081 (do_sd_constraint): Likewise. Do not special-case ESCAPED = *ESCAPED
24082 and CALLUSED = *CALLUSED.
24083 (set_union_with_increment): Make inc argument signed.
24084 (type_safe): Remove.
24085 (get_constraint_for_ptr_offset): Handle unknown and negative
24086 constant offsets.
24087 (first_vi_for_offset): Handle offsets before start. Bail
24088 out early for offsets beyond the variable extent.
24089 (first_or_preceding_vi_for_offset): New function.
24090 (init_base_vars): Add ESCAPED = ESCAPED + UNKNOWN_OFFSET constraint.
24091 Together with ESCAPED = *ESCAPED this properly computes reachability.
24092 (find_what_var_points_to): New function.
24093 (find_what_p_points_to): Implement in terms of find_what_var_points_to.
24094 (pt_solution_reset, pt_solution_empty_p, pt_solution_includes_global,
24095 pt_solution_includes_1, pt_solution_includes, pt_solutions_intersect_1,
24096 pt_solutions_intersect): New functions.
24097 (compute_call_used_vars): Remove.
24098 (compute_may_aliases): New main entry into PTA computation.
24099 * gimple.h (gimple_p): New typedef.
24100 (struct gimple_statement_base): Remove references_memory_p.
24101 (struct gimple_statement_with_memory_ops_base): Remove
24102 vdef_ops, vuse_ops, stores and loads members. Add vdef and vuse
24103 members.
24104 (gimple_vuse_ops, gimple_set_vuse_ops, gimple_vdef_ops,
24105 gimple_set_vdef_ops, gimple_loaded_syms, gimple_stored_syms,
24106 gimple_set_references_memory): Remove.
24107 (gimple_vuse_op, gimple_vdef_op, gimple_vuse, gimple_vdef,
24108 gimple_vuse_ptr, gimple_vdef_ptri, gimple_set_vuse, gimple_set_vdef):
24109 New functions.
24110 * tree-cfg.c (move_block_to_fn): Fix off-by-one error.
24111 (verify_expr): Allow RESULT_DECL.
24112 (gimple_duplicate_bb): Do not copy virtual operands.
24113 (gimple_duplicate_sese_region): Adjust.
24114 (gimple_duplicate_sese_tail): Likewise.
24115 (mark_virtual_ops_in_region): Remove.
24116 (move_sese_region_to_fn): Do not call it.
24117 * passes.c (init_optimization_passes): Remove pass_reset_cc_flags
24118 and pass_simple_dse.
24119 (execute_function_todo): Handle TODO_update_address_taken,
24120 call execute_update_addresses_taken for TODO_rebuild_alias.
24121 (execute_todo): Adjust.
24122 (execute_one_pass): Init dump files early.
24123 * ipa-struct-reorg.c (finalize_var_creation): Do not mark vars
24124 call-clobbered.
24125 (create_general_new_stmt): Clear vops.
24126 * tree-ssa-reassoc.c (get_rank): Adjust.
24127 * tree-vect-slp.c (vect_create_mask_and_perm): Do not mark
24128 symbols for renaming.
24129 * params.def (PARAM_MAX_ALIASED_VOPS): Remove.
24130 (PARAM_AVG_ALIASED_VOPS): Likewise.
24131 * tree-ssanames.c (init_ssanames): Allocate SYMS_TO_RENAME.
24132 (duplicate_ssa_name_ptr_info): No need to copy the shared bitmaps.
24133 * tree-ssa-operands.c: Simplify for new virtual operand representation.
24134 (operand_build_cmp, copy_virtual_operands,
24135 create_ssa_artificial_load_stmt, add_to_addressable_set,
24136 gimple_add_to_addresses_taken): Remove public functions.
24137 (unlink_stmt_vdef): New function.
24138
24139 2009-04-03 Alan Modra <amodra@bigpond.net.au>
24140
24141 * config.gcc (powerpc-*-linux*): Merge variants.
24142
24143 2009-04-02 Chao-ying Fu <fu@mips.com>
24144 James Grosbach <james.grosbach@microchip.com>
24145
24146 * config/mips/mips.c (mips_frame_info): Add acc_mask, num_acc,
24147 num_cop0_regs, acc_save_offset, cop0_save_offset, acc_sp_offset,
24148 cop0_sp_offset.
24149 (machine_function): Add interrupt_handler_p, use_shadow_register_set_p,
24150 keep_interrupts_masked_p, use_debug_exception_return_p.
24151 (mips_attribute_table): Add interrupt, use_shadow_register_set,
24152 keep_interrupts_masked, use_debug_exception_return.
24153 (mips_interrupt_type_p, mips_use_shadow_register_set_p,
24154 mips_keep_interrupts_masked_p, mips_use_debug_exception_return_p):
24155 New functions.
24156 (mips_function_ok_for_sibcall): Return false for interrupt handlers.
24157 (mips_print_operand): Process COP0 registers to print $0 .. $31
24158 correctly for GAS to process.
24159 (mips_interrupt_extra_call_saved_reg_p): New function.
24160 (mips_cfun_call_saved_reg_p): For interrupt handlers, we need to check
24161 extra registers.
24162 (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
24163 (mips_compute_frame_info): Add supports for interrupt context that
24164 includes doubleword accumulators and COP0 registers.
24165 (mips_for_each_saved_acc): New function.
24166 (mips_for_each_saved_gpr_and_fpr): Change the function name from
24167 mips_for_each_saved_reg.
24168 (mips_save_reg): Save accumulators.
24169 (mips_kernel_reg_p): A new for_each_rtx callback.
24170 (mips_expand_prologue): Support interrupt handlers.
24171 (mips_restore_reg): Restore accumulators.
24172 (mips_expand_epilogue): Support interrupt handlers.
24173 (mips_can_use_return_insn): Return false for interrupt handlers.
24174 (mips_epilogue_uses): New function.
24175 * config/mips/mips.md (UNSPEC_ERET, UNSPEC_DERET, UNSPEC_DI,
24176 UNSPEC_EHB, UNSPEC_RDPGPR, UNSPEC_COP0): New UNSPEC.
24177 (mips_eret, mips_deret, mips_di, mips_ehb, mips_rdpgpr,
24178 cop0_move): New instructions.
24179 * config/mips/mips-protos.h (mips_epilogue_uses): Declare.
24180 * config/mips/mips.h (K0_REG_NUM, K1_REG_NUM, KERNEL_REG_P): New
24181 defines.
24182 (COP0_STATUS_REG_NUM, COP0_CAUSE_REG_NUM, COP0_EPC_REG_NUM):
24183 New defines.
24184 (CAUSE_IPL, SR_IPL, SR_EXL, SR_IE): New defines.
24185 (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): For
24186 interrupt handlers, we use K0 as the temporary register.
24187 (EPILOGUE_USES): Change to a function call.
24188 * config/mips/sde.h (MIPS_EPILOGUE_TEMP_REGNUM): For interrupt
24189 handlers, we use K0 as the temporary register.
24190
24191 * doc/extend.texi (Function Attributes): Document interrupt,
24192 use_shadow_register_set, keep_interrupts_masked,
24193 use_debug_exception_return for MIPS attributes.
24194
24195 2009-04-03 Alan Modra <amodra@bigpond.net.au>
24196
24197 * config.gcc (powerpc64-*-gnu*): Add rs6000/default64.h to tm_file.
24198 Remove a number of t-files from tmake_file.
24199 * config/rs6000/sysv4.opt (mprototype): Name variable target_prototype.
24200 * config/rs6000/sysv4.h (TARGET_PROTOTYPE): Define.
24201 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
24202 target_prototype, not TARGET_PROTOTYPE.
24203 (LINK_OS_GNU_SPEC): Define.
24204 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Delete tramp.S
24205 and darwin-ldoubdle.c.
24206
24207 2009-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
24208
24209 PR driver/39293
24210 * gcc.c (save_temps_flag): Add support for -save-temps=obj.
24211 (cpp_options): Ditto.
24212 (default_compilers): Ditto.
24213 (display_help): Ditto.
24214 (process_command): Ditto.
24215 (do_spec_1): Ditto.
24216 (set_input): Use lbasename instead of duplicate code.
24217 (save_temps_prefix): New static for -save-temps=obj.
24218 (save_temps_length): Ditto.
24219
24220 * doc/invoke.texi (-save-temps=obj): Document new variant to
24221 -save-temps switch.
24222
24223 2009-04-02 Jeff Law <law@redhat.com>
24224
24225 * reload1.c (fixup_eh_region_notes): Remove write-only "trap_count"
24226 variable.
24227
24228 2009-04-02 H.J. Lu <hongjiu.lu@intel.com>
24229
24230 * configure.ac: Support -Bstatic/-Bdynamic for linker version > 2.
24231 * configure: Regenerated.
24232
24233 2009-04-02 Rafael Avila de Espindola <espindola@google.com>
24234
24235 * c-decl.c (merge_decls): Make sure newdecl and olddecl don't
24236 share the argument list.
24237
24238 2009-04-02 Rafael Avila de Espindola <espindola@google.com>
24239
24240 Merge
24241
24242 2009-02-12 Diego Novillo <dnovillo@google.com>
24243
24244 * varpool.c (debug_varpool): New.
24245 * cgraph.h (debug_varpool): Declare.
24246
24247 2009-04-02 Jan Hubicka <jh@suse.cz>
24248
24249 * passes.c (init_optimization_passes): Remove two copies of ehcleanup
24250 pass.
24251
24252 2009-04-02 H.J. Lu <hongjiu.lu@intel.com>
24253
24254 * config/i386/i386.c (ix86_abi): Move initialization to ...
24255 (override_options): Here.
24256
24257 2009-04-02 Christian Bruel <christian.bruel@st.com>
24258
24259 * config/sh/sh.c (sh_dwarf_register_span): New function.
24260 (TARGET_DWARF_REGISTER_SPAN): Define.
24261 * config/sh/sh-protos.h (sh_dwarf_register_span): Declare.
24262
24263 2009-04-02 Ira Rosen <irar@il.ibm.com>
24264
24265 PR tree-optimization/39595
24266 * tree-vect-slp.c (vect_build_slp_tree): Check that the size of
24267 interleaved loads group is not greater than the SLP group size.
24268
24269 2009-04-02 Rafael Avila de Espindola <espindola@google.com>
24270
24271 * builtins.c (is_builtin_name): New.
24272 (called_as_built_in): Use is_builtin_name.
24273 * tree.h (is_builtin_name): New.
24274 * varasm.c (incorporeal_function_p): Use is_builtin_name
24275
24276 2009-04-02 Andrew Stubbs <ams@codesourcery.com>
24277
24278 * config/sh/linux-unwind.h: Disable when inhibit_libc is defined.
24279
24280 2009-04-02 Dodji Seketeli <dodji@redhat.com>
24281
24282 PR c++/26693
24283 * c-decl.c (clone_underlying_type): Move this ...
24284 * c-common.c (set_underlying_type): ... here.
24285 Also, make sure the function properly sets TYPE_STUB_DECL() on
24286 the newly created typedef variant type.
24287 * c-common.h (is_typedef_decl, set_underlying_type): Declare ...
24288 * c-common.c (is_typedef_decl, set_underlying_type): ... new entry
24289 points.
24290
24291 2009-04-02 Richard Guenther <rguenther@suse.de>
24292
24293 PR tree-optimization/37221
24294 * tree-flow.h (degenerate_phi_result): Declare.
24295 * tree-ssa-dom.c (degenerate_phi_result): Export.
24296 * tree-scalar-evolution.c (analyze_initial_condition): If
24297 the initial condition is defined by a degenerate PHI node
24298 use the degenerate value.
24299
24300 2009-04-01 Eric Botcazou <ebotcazou@adacore.com>
24301
24302 PR rtl-optimization/39588
24303 * combine.c (merge_outer_ops): Do not set the constant when this
24304 is not necessary.
24305 (simplify_shift_const_1): Do not modify it either in this case.
24306
24307 2009-04-01 Steven Bosscher <steven@gcc.gnu.org>
24308
24309 * config/ia64/ia64.c (ia64_handle_option): Inform user that Itanium1
24310 tuning is deprecated if -mtune value is set to an Itanium1 variant.
24311
24312 2009-04-01 Janis Johnson <janis187@us.ibm.com>
24313
24314 PR c/29027
24315 * c-lex.c (interpret_float): Default (no suffix) is double.
24316
24317 2009-04-1 Xinliang David Li <davidxl@google.com>
24318
24319 * config/i386/i386.c (legitimate_constant_p): Recognize
24320 all one vector constant.
24321
24322 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
24323
24324 * config/vax/vax.c: Add #includes to silence warnings.
24325 Change #include order to silence two warnings.
24326
24327 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
24328
24329 * config/vax/linux.h (TARGET_DEFAULT): Add the MASK_QMATH flag bit.
24330 (ASM_SPEC): Pass -k to the assembler for PIC code.
24331
24332 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
24333
24334 * config.gcc: Add vax-*-linux* to the switch.
24335 * config/vax/linux.h: New file. (TARGET_VERSION,
24336 TARGET_OS_CPP_BUILTINS, TARGET_DEFAULT, CPP_SPEC, LINK_SPEC): Define.
24337
24338 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
24339
24340 * config/vax/vax.c (vax_output_int_move, adjacent_operands_p):
24341 Use predicate macros instead of GET_CODE() == foo.
24342 * config/vax/vax.md (movsi_2, movstrictqi, and<mode>3, ashrsi3,
24343 ashlsi3, rotrsi3, <unnamed>): Likewise.
24344
24345 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
24346
24347 * config/vax/builtins.md (jbbssiqi, jbbssihi, jbbssisi, jbbcciqi,
24348 jbbccihi, jbbccisi): Remova trailing whitespace.
24349 * config/vax/constraints.md: Likewise.
24350 * config/vax/elf.h: (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
24351 * config/vax/openbsd1.h (OBSD_OLD_GAS): Likewise.
24352 * config/vax/predicates.md: Likewise.
24353 * config/vax/vax.c (print_operand_address, vax_output_int_move,
24354 vax_expand_addsub_di_operands, adjacent_operands_p): Likewise.
24355 * config/vax/vax.h: Likewise.
24356 * config/vax/vax.md (nonlocal_goto): Likewise.
24357
24358 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
24359
24360 * config/vax/vax.c (vax_float_literal, vax_output_int_move)
24361 (indirectable_address_p, adjacent_operands_p): Add spaces around
24362 braces.
24363 * config/vax/vax-protos.h (adjacent_operands_p): Likewise.
24364
24365 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
24366
24367 * config/vax/vax.c (legitimate_constant_address_p,
24368 legitimate_constant_p, indirectable_address_p, nonindexed_address_p,
24369 index_term_p, reg_plus_index_p, legitimate_address_p,
24370 vax_mode_dependent_address_p): Update comments to match functions
24371 modified by the recent int->bool conversion.
24372
24373 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
24374
24375 * config/vax/builtins.md: Update copyright message.
24376 * config/vax/constraints.md: Likewise.
24377 * config/vax/netbsd-elf.h: Likewise.
24378 * config/vax/predicates.md: Likewise.
24379 * config/vax/vax-protos.h: Likewise.
24380 * config/vax/vax.c: Likewise.
24381 * config/vax/vax.h: Likewise.
24382 * config/vax/vax.md: Likewise.
24383 * config/vax/vax.opt: Likewise.
24384
24385 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
24386
24387 * config/vax/builtins.md (ffssi2, ffssi2_internal,
24388 sync_lock_test_and_set<mode>, sync_lock_release<mode>): Fix indention.
24389 * config/vax/constraints.md (B, R): Likewise.
24390 * config/vax/predicates.md (external_memory_operand,
24391 nonimmediate_addsub_di_operand): Likewise.
24392 * config/vax/vax.c (vax_output_int_add): Likewise.
24393 * config/vax/vax.md (movsi, movsi_2, mov<mode>, call_value,
24394 untyped_call): Likewise.
24395
24396 2009-04-01 Matt Thomas <matt@3am-software.com>
24397
24398 * config/vax/predicates.md: New file.
24399 (symbolic_operand, local_symbolic_operand, external_symbolic_operand,
24400 external_const_operand, nonsymbolic_operand, external_memory_operand,
24401 indirect_memory_operand, indexed_memory_operand,
24402 illegal_blk_memory_operand, illegal_addsub_di_memory_operand,
24403 nonimmediate_addsub_di_operand, general_addsub_di_operand): New
24404 predicate.
24405 * config/vax/constraints.md: New file.
24406 (Z0, U06, U08, U16, CN6, S08, S16, I, J, K, L, M, N, O, G, Q, B, R, T):
24407 New constraint.
24408 * config/vax/builtins.md: New file.
24409 (ffssi2, ffssi2_internal, sync_lock_test_and_set<mode>, jbbssiqi,
24410 jbbssihi, jbbssisi, sync_lock_release<mode>, jbbcciqi, jbbccihi,
24411 jbbccisi): Define.
24412 * config/vax/vax.opt (mqmath): Add option.
24413 * config/vax/vax.md (isfx): Extend with DI.
24414 (VAXintQH, VAXintQHSD): Define.
24415 (tst<mode>, cmp<mode>, *bit<mode>, movmemhi1, truncsiqi2, truncsihi2,
24416 mulsidi3, add<mode>3, sub<mode>, mul<mode>3, div<mode>3, and<mode>,
24417 and<mode>_const_int, ior<mode>3, xor<mode>3, neg<mode>2,
24418 one_cmpl<mode>2, ashlsi3, lshrsi3, rotlsi3): Update constraints.
24419 (movdi): Update constraints and use vax_output_int_move().
24420 (movsi, movsi_2, pushlclsymreg, pushextsymreg, movlclsymreg,
24421 movextsymreg, adddi3, adcdi3, subdi3, sbcdi3, pushextsym, movextsym,
24422 pushlclsym, movlclsym, movaddr<mode>, pushaddr<mode>,
24423 nonlocal_goto): New.
24424 (mov<mode>): Extend accepted operand types.
24425 (subdi3_old): Rename from subdi3, change update constraints and use
24426 a new implementation.
24427 * config/vax/vax.h (PCC_BITFIELD_TYPE_MATTERS): Add space.
24428 (FRAME_POINTER_CFA_OFFSET, IRA_COVER_CLASSES, CLASS_MAX_NREGS,
24429 MOVE_RATIO, CLEAR_RATIO): Define.
24430 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P,
24431 CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
24432 (PRINT_OPERAND): Redefine using a function instead of inlined code.
24433 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
24434 (split_quadword_operands): Make static and really allow variable
24435 splitting.
24436 (print_operand_address): Update for PIC generation.
24437 (print_operand, vax_builtin_setjmp_frame_value, vax_output_int_subtract,
24438 indexable_address_p, fixup_mathdi_operand,
24439 vax_expand_addsub_di_operands, adjacent_operands_p): New.
24440 (vax_float_literal, legitimate_constant_p,
24441 indirectable_constant_address_p, index_term_p,
24442 reg_plus_index_p): Return bool instead of int.
24443 (vax_rtx_costs): Fix cost for CONST_INT, indent and use HOST_WIDE_INT
24444 where needed.
24445 (vax_output_int_move, vax_output_int_add): Extend to allow PIC
24446 generation.
24447 (vax_output_conditional_branch): Indent.
24448 (legitimate_constant_address_p, indirectable_constant_address_p,
24449 indirectable_address_p, nonindexed_address_p, legitimate_address_p,
24450 vax_mode_dependent_address_p): Return bool instead of int, update for
24451 PIC generation.
24452 * config/vax/vax-protos.h (legitimate_constant_address_p,
24453 legitimate_constant_p, legitimate_address_p,
24454 vax_mode_dependent_address_p): Change declaration to bool.
24455 (legitimate_pic_operand_p, adjacent_operands_p, print_operand,
24456 vax_expand_addsub_di_operands, vax_output_int_subtract,
24457 vax_output_movmemsi): Declare.
24458 (split_quadword_operands, vax_float_literal): Delete declaration.
24459 * config/vax/netbsd-elf.h (CC1_SPEC, CC1PLUS_SPEC) Define.
24460 * config/vax/elf.h (NO_EXTERNAL_INDIRECT_ADDRESS,
24461 VAX_CC1_AND_CC1PLUS_SPEC, ASM_PREFERRED_EH_DATA_FORMAT,
24462 ASM_OUTPUT_DWARF_PCREL): Define.
24463 (ASM_SPEC): Change definition to allow PIC generation.
24464
24465 2009-04-01 Steve Ellcey <sje@cup.hp.com>
24466
24467 * doc/sourcebuild.texi: Update front-end requirements.
24468
24469 2009-04-01 Jakub Jelinek <jakub@redhat.com>
24470
24471 PR target/39226
24472 * config/rs6000/rs6000.md (andsi3_internal5_nomc,
24473 anddi3_internal2_nomc, anddi3_internal3_nomc): Removed.
24474 (booldi3_internal3): Use boolean_or_operator instead of
24475 boolean_operator.
24476
24477 2009-04-01 Joseph Myers <joseph@codesourcery.com>
24478
24479 PR c/39605
24480 * c-decl.c (grokdeclarator): Pedwarn for file-scope array
24481 declarator whose size is not an integer constant expression but
24482 folds to an integer constant, then treat it as a constant
24483 subsequently.
24484
24485 2009-04-01 Richard Guenther <rguenther@suse.de>
24486
24487 * fold-const.c (fold_plusminus_mult_expr): Do not fold
24488 i * 4 + 2 to (i * 2 + 1) * 2.
24489
24490 2009-04-01 Jakub Jelinek <jakub@redhat.com>
24491
24492 PR c/37772
24493 * c-parser.c (c_parser_asm_statement): Skip until close paren and
24494 return if c_parser_asm_string_literal returned NULL.
24495
24496 2009-04-01 Nick Clifton <nickc@redhat.com>
24497
24498 * config/m32c/m32c.h (LIBGCC2_UNITS_PER_WORD): Define if not
24499 already defined.
24500 * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Add m32c-lib2-trapv.c.
24501 * config/m32c/m32c-lib2.c: Remove unused typedefs. Rename the
24502 other typedefs to avoid conflicts with libgcc2.c. Define labels
24503 to gain 16-bit bit-manipulation functions from libgcc2.c and then
24504 include it.
24505 * config/m32c/m32c-lib2-trapv.c: New file. Define labels
24506 to gain 16-bit trapping arithmetic functions from libgcc2.c and
24507 then include it.
24508
24509 2009-04-01 Rafael Avila de Espindola <espindola@google.com>
24510
24511 * varasm.c (default_function_rodata_section): Declare DOT as
24512 const char*.
24513
24514 2009-04-01 Kai Tietz <kai.tietz@onevision.com>
24515 Andrey Galkin <agalkin@hypercom.com>
24516
24517 PR/39492
24518 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
24519 Make object_name unique for each process.
24520
24521 2009-04-01 Jakub Jelinek <jakub@redhat.com>
24522
24523 PR other/39591
24524 * omp-low.c (remove_exit_barrier): Don't optimize if there are any
24525 addressable variables in the parallel that could go out of scope while
24526 running queued tasks.
24527
24528 2009-04-01 Anatoly Sokolov <aesok@post.ru>
24529
24530 * config/avr/avr.h (avr_case_values_threshold): Remove declaration.
24531 (CASE_VALUES_THRESHOLD): Redefine.
24532 * config/avr/avr.c (avr_override_options): Remove initialization of
24533 avr_case_values_threshold variable.
24534 (avr_case_values_threshold): Remove variable. Add new function.
24535 * config/avr/avr-protos.h (avr_case_values_threshold): Declare.
24536 * config/avr/avr.opt (mno-tablejump): Remove option.
24537 * doc/invoke.texi (AVR Options): Remove -mno-tablejump.
24538
24539 2009-04-01 DJ Delorie <dj@redhat.com>
24540
24541 * varasm.c (default_function_rodata_section): Don't assume
24542 anything about where the first '.' in the section name is.
24543
24544 2009-04-01 Alan Modra <amodra@bigpond.net.au>
24545
24546 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete redundant
24547 rs6000_emit_stack_tie.
24548
24549 2009-03-31 Ian Lance Taylor <iant@google.com>
24550
24551 * tree-eh.c (tree_remove_unreachable_handlers): Compare
24552 gimple_code with GIMPLE_RESX, not RESX.
24553
24554 2009-03-31 Joseph Myers <joseph@codesourcery.com>
24555
24556 * c-common.c (c_get_ident): New.
24557 (c_common_nodes_and_builtins): Call it for type names that may be NULL.
24558
24559 2009-04-01 Ben Elliston <bje@au.ibm.com>
24560
24561 * config/rs6000/sysv4.opt (msdata): Improve option description.
24562
24563 2009-03-31 Steve Ellcey <sje@cup.hp.com>
24564
24565 * config/ia64/ia64.md (divsf3_internal_lat): Remove.
24566 (divdf3_internal_lat): Remove.
24567 (divxf3_internal_lat): Remove.
24568 (divxf3_internal_thr): Remove.
24569 (divxf): Use divxf3_internal.
24570 * config/ia64/div.md (divsf3_internal_lat): New.
24571 (divdf3_internal_lat): New.
24572 (divxf3_internal): New.
24573
24574 2009-03-31 Joseph Myers <joseph@codesourcery.com>
24575
24576 PR c/448
24577 * Makefile.in (USE_GCC_STDINT): Define.
24578 (stmp-int-hdrs): Install stdint.h if applicable.
24579 * c-common.c (CHAR16_TYPE): Define in terms of UINT_LEAST16_TYPE
24580 if known.
24581 (CHAR32_TYPE): Define in terms of UINT_LEAST32_TYPE if known.
24582 (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE,
24583 UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
24584 INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
24585 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
24586 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
24587 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
24588 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
24589 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
24590 (c_common_nodes_and_builtins): Initialize
24591 underlying_wchar_type_node. Do not initialize
24592 signed_wchar_type_node or unsigned_wchar_type_node. Initialize
24593 nodes for new types.
24594 (c_stddef_cpp_builtins): Define macros for new types.
24595 * c-common.h (CTI_SIGNED_WCHAR_TYPE, CTI_UNSIGNED_WCHAR_TYPE):
24596 Remove.
24597 (CTI_UNDERLYING_WCHAR_TYPE, CTI_SIG_ATOMIC_TYPE, CTI_INT8_TYPE,
24598 CTI_INT16_TYPE, CTI_INT32_TYPE, CTI_INT64_TYPE, CTI_UINT8_TYPE,
24599 CTI_UINT16_TYPE, CTI_UINT32_TYPE, CTI_UINT64_TYPE,
24600 CTI_INT_LEAST8_TYPE, CTI_INT_LEAST16_TYPE, CTI_INT_LEAST32_TYPE,
24601 CTI_INT_LEAST64_TYPE, CTI_UINT_LEAST8_TYPE, CTI_UINT_LEAST16_TYPE,
24602 CTI_UINT_LEAST32_TYPE, CTI_UINT_LEAST64_TYPE, CTI_INT_FAST8_TYPE,
24603 CTI_INT_FAST16_TYPE, CTI_INT_FAST32_TYPE, CTI_INT_FAST64_TYPE,
24604 CTI_UINT_FAST8_TYPE, CTI_UINT_FAST16_TYPE, CTI_UINT_FAST32_TYPE,
24605 CTI_UINT_FAST64_TYPE, CTI_INTPTR_TYPE, CTI_UINTPTR_TYPE): Define.
24606 (signed_wchar_type_node, unsigned_wchar_type_node): Remove.
24607 (underlying_wchar_type_node, sig_atomic_type_node, int8_type_node,
24608 int16_type_node, int32_type_node, int64_type_node,
24609 uint8_type_node, uint16_type_node, c_uint32_type_node,
24610 c_uint64_type_node, int_least8_type_node, int_least16_type_node,
24611 int_least32_type_node, int_least64_type_node,
24612 uint_least8_type_node, uint_least16_type_node,
24613 uint_least32_type_node, uint_least64_type_node,
24614 int_fast8_type_node, int_fast16_type_node, int_fast32_type_node,
24615 int_fast64_type_node, uint_fast8_type_node, uint_fast16_type_node,
24616 uint_fast32_type_node, uint_fast64_type_node, intptr_type_node,
24617 uintptr_type_node): Define.
24618 * c-cppbuiltin.c (builtin_define_constants,
24619 builtin_define_type_minmax): New.
24620 (builtin_define_stdint_macros): Define more macros.
24621 (c_cpp_builtins): Define more limit macros.
24622 (type_suffix): New.
24623 (builtin_define_type_max): Define in terms of
24624 builtin_define_type_minmax. Remove is_long parameter. All
24625 callers changed.
24626 * config.gcc (use_gcc_stdint): Define.
24627 (tm_file): Add glibc-stdint.h for targets using glibc or uClibc.
24628 Add newlib-stdint.h for generic targets.
24629 * config/glibc-stdint.h, config/newlib-stdint.h,
24630 ginclude/stdint-gcc.h, ginclude/stdint-wrap.h: New.
24631 * config/m32c/m32c.h (UINTPTR_TYPE): Define.
24632 * config/score/score.h (UINTPTR_TYPE): Define.
24633 * config/sol2.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
24634 INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
24635 UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
24636 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
24637 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
24638 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
24639 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
24640 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
24641 * config/spu/spu.h (STDINT_LONG32): Define.
24642 * configure.ac (use_gcc_stdint): Substitute.
24643 * configure: Regenerate.
24644 * doc/cpp.texi (__SIG_ATOMIC_TYPE__, __INT8_TYPE__,
24645 __INT16_TYPE__, __INT32_TYPE__, __INT64_TYPE__, __UINT8_TYPE__,
24646 __UINT16_TYPE__, __UINT32_TYPE__, __UINT64_TYPE__,
24647 __INT_LEAST8_TYPE__, __INT_LEAST16_TYPE__, __INT_LEAST32_TYPE__,
24648 __INT_LEAST64_TYPE__, __UINT_LEAST8_TYPE__, __UINT_LEAST16_TYPE__,
24649 __UINT_LEAST32_TYPE_, __UINT_LEAST64_TYPE__, __INT_FAST8_TYPE__,
24650 __INT_FAST16_TYPE__, __INT_FAST32_TYPE__, __INT_FAST64_TYPE__,
24651 __UINT_FAST8_TYPE__, __UINT_FAST16_TYPE__, __UINT_FAST32_TYPE__,
24652 __UINT_FAST64_TYPE__, __INTPTR_TYPE__, __UINTPTR_TYPE__,
24653 __WINT_MAX__, __SIZE_MAX__, __PTRDIFF_MAX__, __UINTMAX_MAX__,
24654 __SIG_ATOMIC_MAX__, __INT8_MAX__, __INT16_MAX__, __INT32_MAX__,
24655 __INT64_MAX__, __UINT8_MAX__, __UINT16_MAX__, __UINT32_MAX__,
24656 __UINT64_MAX__, __INT_LEAST8_MAX__, __INT_LEAST16_MAX__,
24657 __INT_LEAST32_MAX__, __INT_LEAST64_MAX__, __UINT_LEAST8_MAX__,
24658 __UINT_LEAST16_MAX__, __UINT_LEAST32_MAX__, __UINT_LEAST64_MAX__,
24659 __INT_FAST8_MAX__, __INT_FAST16_MAX__, __INT_FAST32_MAX__,
24660 __INT_FAST64_MAX__, __UINT_FAST8_MAX__, __UINT_FAST16_MAX__,
24661 __UINT_FAST32_MAX__, __UINT_FAST64_MAX__, __INTPTR_MAX__,
24662 __UINTPTR_MAX__, __WCHAR_MIN__, __WINT_MIN__, __SIG_ATOMIC_MIN__,
24663 __INT8_C, __INT16_C, __INT32_C, __INT64_C, __UINT8_C, __UINT16_C,
24664 __UINT32_C, __UINT64_C, __INTMAX_C, __UINTMAX_C): Document.
24665 * doc/tm.texi (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE,
24666 INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
24667 INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
24668 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
24669 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
24670 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
24671 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
24672 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Document.
24673
24674 2009-03-31 Bernd Schmidt <bernd.schmidt@analog.com>
24675
24676 * loop-iv.c (suitable_set_for_replacement): Renamed from
24677 simplify_using_assignment; changed to return bool and to accept new
24678 args DEST and SRC. Return true iff we find a source/destination pair
24679 that can be used to make a replacement, and fill SRC and DEST if so.
24680 Remove arg ALTERED. Don't deal with altered regs here. All callers
24681 changed.
24682 (simplify_using_initial_values): Deal with altered regs here and track
24683 more precisely the effect they have on the validity of our expression.
24684
24685 * loop-iv.c (simplify_using_condition): A condition of the form
24686 (EQ REG CONST) can be used to simply make a substitution.
24687 (simplify_using_initial_values): Keep track of conditions we have seen
24688 and keep using them to simplify new expressions, while applying the
24689 same substitutions to them as to the expression.
24690
24691 * simplify-rtx.c (simplify_relational_operation_1): Simplify
24692 (LTU (PLUS a C) C) or (LTU (PLUS a C) a) to (GEU a -C); likewise with
24693 GEU/LTU reversed.
24694
24695 * loop-iv.c (determine_max_iter): New arg OLD_NITER. All callers
24696 changed. Use this when trying to improve the upper bound.
24697 Generate the comparison by using simplify_gen_relational.
24698
24699 * loop-iv.c (simple_rhs_p): Allow more kinds of expressions.
24700
24701 * loop-iv.c (replace_single_def_regs, replace_in_expr): New static
24702 functions.
24703 (simplify_using_assignment, simplify_using_initial_values): Call
24704 replace_in_expr to make replacements. Call replace_single_def_regs
24705 once on the initial version of the expression.
24706
24707 2009-03-31 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24708
24709 PR target/27237
24710 * doc/invoke.texi (ARM Options): Update documentation for -mthumb.
24711
24712 2009-03-31 Richard Guenther <rguenther@suse.de>
24713
24714 PR middle-end/31029
24715 * fold-const.c (fold_binary): Fold X +- Y CMP X to Y CMP 0 for
24716 equality comparisons. Fold C - X CMP X if C % 2 == 1.
24717
24718 2009-03-31 Richard Guenther <rguenther@suse.de>
24719
24720 * tree.h (div_if_zero_remainder): Declare.
24721 * fold-const.c (div_if_zero_remainder): Export.
24722 * tree-ssa-forwprop.c
24723 (forward_propagate_addr_into_variable_array_index): Handle
24724 constant array index addition outside of the variable index.
24725
24726 2009-03-31 Joseph Myers <joseph@codesourcery.com>
24727
24728 PR target/39592
24729 * config/i386/i386.md (*floatunssi<mode>2_1, two unnamed
24730 define_splits, floatunssi<mode>2): Require x87 conversions from
24731 DImode to be permitted.
24732
24733 2009-03-31 Joseph Myers <joseph@codesourcery.com>
24734
24735 PR preprocessor/15638
24736 * c-common.c (c_cpp_error): Handle CPP_DL_FATAL.
24737
24738 2009-03-31 Richard Guenther <rguenther@suse.de>
24739
24740 PR middle-end/23401
24741 PR middle-end/27810
24742 * tree.h (DECL_GIMPLE_FORMAL_TEMP_P): Remove.
24743 (struct tree_decl_with_vis): Remove gimple_formal_temp member.
24744 * tree-eh.c (lower_eh_constructs_2): Move LHS assignment to
24745 a separate statement.
24746 * gimplify.c (pop_gimplify_context): Remove formal temp handling.
24747 (lookup_tmp_var): Likewise.
24748 (is_gimple_formal_tmp_or_call_rhs): Remove.
24749 (is_gimple_reg_or_call_rhs): Rename to ...
24750 (is_gimple_reg_rhs_or_call): ... this.
24751 (is_gimple_mem_or_call_rhs): Rename to ...
24752 (is_gimple_mem_rhs_or_call): ... this.
24753 (internal_get_tmp_var): Use is_gimple_reg_rhs_or_call. Set
24754 DECL_GIMPLE_REG_P only if is_formal is true.
24755 (gimplify_compound_lval): Use is_gimple_reg. Remove workaround
24756 for non-proper post-modify expression gimplification.
24757 (gimplify_self_mod_expr): For post-modify expressions gimplify
24758 the lvalue to a minimal lvalue.
24759 (rhs_predicate_for): Remove formal temp case.
24760 (gimplify_modify_expr_rhs): Likewise.
24761 (gimplify_addr_expr): Use is_gimple_reg.
24762 (gimplify_expr): Remove formal temp cases.
24763 (gimple_regimplify_operands): Likewise.
24764 * tree-ssa-pre.c (get_or_alloc_expr_for): Treat EXC_PTR_EXPR
24765 and FILTER_EXPR like constants.
24766 * gimple.c (walk_gimple_op): Fix val_only initialization, use
24767 is_gimple_reg.
24768 (is_gimple_formal_tmp_rhs): Remove.
24769 (is_gimple_reg_rhs): Remove special casing.
24770 (is_gimple_mem_rhs): Fix.
24771 (is_gimple_reg): Move DECL_GIMPLE_REG_P handling earlier.
24772 (is_gimple_formal_tmp_var): Remove.
24773 (is_gimple_formal_tmp_reg): Likewise.
24774 (is_gimple_min_lval): Allow invariant component ref parts.
24775 * gimple.h (is_gimple_formal_tmp_rhs, is_gimple_formal_tmp_var,
24776 is_gimple_formal_tmp_reg): Remove declarations.
24777 * tree-cfg.c (verify_expr): Verify that variables with address
24778 taken do not have DECL_GIMPLE_REG_P set.
24779 * tree-mudflap.c (mf_build_check_statement_for): Use
24780 force_gimple_operand instead of gimplify_expr.
24781
24782 2009-03-31 Ayal Zaks <zaks@il.ibm.com>
24783
24784 * modulo-sched.c (sms_schedule_by_order): Pass the actual
24785 schedulable rows to compute_split_row.
24786
24787 2009-03-31 Ben Elliston <bje@au.ibm.com>
24788
24789 PR target/31635
24790 * config/rs6000/rs6000.c (rs6000_handle_option): Handle
24791 OPT_mvrsave.
24792
24793 2009-03-31 Alan Modra <amodra@bigpond.net.au>
24794
24795 * doc/invoke.texi (RS/6000 and PowerPC Options):Document mtls-markers.
24796 * configure.ac (HAVE_AS_TLS_MARKERS): New gas feature check.
24797 * configure: Regenerate.
24798 * config.in: Regenerate.
24799 * config/rs6000/rs6000.opt (mtls-markers): Add.
24800 * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Define.
24801 * config/rs6000/rs6000.md (tls_gd_aix, tls_gd_sysv): Add splitter.
24802 (tls_ld_aix, tls_ld_sysv): Likewise.
24803 (tls_gd, tls_gd_call_aix, tls_gd_call_sysv): New insns.
24804 (tls_ld, tls_ld_call_aix, tls_ld_call_sysv): Likewise.
24805
24806 2009-03-31 Alan Modra <amodra@bigpond.net.au>
24807
24808 * config/spu/spu.c (spu_expand_prologue): Delete redundant code.
24809
24810 2009-03-30 Jan Hubicka <jh@suse.cz>
24811
24812 * tree-eh.c (make_eh_edges): Set probability 100% to first edge
24813 out of RESX.
24814 (tree_remove_unreachable_handlers): Cleanup EH predecestor
24815 detection and label handling.
24816
24817 2009-03-30 Vladimir Makarov <vmakarov@redhat.com>
24818
24819 * ira-int.h (ira_allocno): Rename left_conflicts_num to
24820 left_conflicts_size.
24821 (ALLOCNO_LEFT_CONFLICTS_NUM): Rename to
24822 ALLOCNO_LEFT_CONFLICTS_SIZE.
24823
24824 * ira-color.c (allocno_spill_priority, push_allocno_to_stack,
24825 remove_allocno_from_bucket_and_push,
24826 allocno_spill_priority_compare, push_allocnos_to_stack,
24827 setup_allocno_available_regs_num): Use ALLOCNO_LEFT_CONFLICTS_SIZE
24828 instead of ALLOCNO_LEFT_CONFLICTS_NUM.
24829 (setup_allocno_left_conflicts_num): Ditto. Rename to
24830 setup_allocno_left_conflicts_size.
24831 (put_allocno_into_bucket): Use ALLOCNO_LEFT_CONFLICTS_SIZE
24832 instead of ALLOCNO_LEFT_CONFLICTS_NUM and
24833 setup_allocno_left_conflicts_size instead of
24834 setup_allocno_left_conflicts_num.
24835
24836 * ira-build.c (ira_create_allocno): Use
24837 ALLOCNO_LEFT_CONFLICTS_SIZE instead of
24838 ALLOCNO_LEFT_CONFLICTS_NUM.
24839
24840 2009-03-30 Vladimir Makarov <vmakarov@redhat.com>
24841
24842 * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
24843 instead of DF_LR_OUT.
24844
24845 * ira-lives.c (process_bb_node_lives): Ditto.
24846
24847 * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
24848 instead of DF_LR_{OUT,IN}.
24849
24850 * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
24851
24852 * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
24853
24854 2009-03-30 Jan Hubicka <jh@suse.cz>
24855
24856 * except.c (label_to_region_map): Fix thinko.
24857
24858 2009-03-30 Steve Ellcey <sje@cup.hp.com>
24859
24860 PR middle-end/38237
24861 * tree.h (tree_find_value): New declaration.
24862 * tree.c (tree_find_value): New function.
24863 * varasm.c (assemble_external): Avoid duplicate entries on lists.
24864
24865 2009-03-30 Jakub Jelinek <jakub@redhat.com>
24866
24867 PR debug/39563
24868 * c-decl.c (struct c_binding): Add locus field.
24869 (bind): Add locus argument, set locus field from it.
24870 (pop_scope): For b->nested VAR_DECL or FUNCTION_DECL,
24871 add a DECL_EXTERNAL copy of b->decl to current BLOCK_VARS.
24872 (push_file_scope, pushtag, pushdecl, pushdecl_top_level,
24873 implicitly_declare, undeclared_variable, lookup_label,
24874 declare_label, c_make_fname_decl, c_builtin_function,
24875 c_builtin_function_ext_scope, store_parm_decls_newstyle): Adjust
24876 bind callers.
24877
24878 2009-03-30 H.J. Lu <hongjiu.lu@intel.com>
24879
24880 PR target/38781
24881 * config/i386/i386.c (classify_argument): Check total size of
24882 structure.
24883
24884 2009-03-30 Martin Jambor <mjambor@suse.cz>
24885
24886 * ipa-prop.h (jump_func_type): Rename IPA_UNKNOWN, IPA_CONST,
24887 IPA_CONST_MEMBER_PTR, and IPA_PASS_THROUGH to IPA_JF_UNKNOWN,
24888 IPA_JF_CONST, IPA_JF_CONST_MEMBER_PTR, and IPA_JF_PASS_THROUGH
24889 respectively.
24890
24891 * tree-dfa.c (get_ref_base_and_extent): Return -1 maxsize if
24892 seen_variable_array_ref while also traversing a union.
24893
24894 * tree-inline.c (optimize_inline_calls): Do not call
24895 cgraph_node_remove_callees.
24896 * cgraphbuild.c (remove_cgraph_callee_edges): New function.
24897 (pass_remove_cgraph_callee_edges): New variable.
24898 * passes.c (init_optimization_passes): Add
24899 pass_remove_cgraph_callee_edges after early inlining and before all
24900 late intraprocedural passes.
24901
24902 * omp-low.c (expand_omp_taskreg): Always set current_function_decl.
24903
24904 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
24905
24906 * config/sparc/sparc.md (*nand<V64mode>_vis, *nand<V32mode>_vis):
24907 Fix typos in names.
24908
24909 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
24910
24911 * combine.c (simplify_comparison): Use have_insn_for.
24912 * dojump.c (do_jump): Likewise.
24913
24914 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
24915
24916 * config/sparc/sparc.c (sparc_compare_emitted): Remove.
24917 (gen_compare_reg, emit_v9_brxx_insn): Handle MODE_CC
24918 sparc_compare_op0 like sparc_compare_emitted used to be handled.
24919 (sparc_expand_compare_and_swap_12): Set sparc_compare_op0
24920 instead of sparc_compare_emitted.
24921 * config/sparc/sparc.h (sparc_compare_emitted): Remove.
24922 * config/sparc/sparc.md (stack_protect_test): Set sparc_compare_op0
24923 instead of sparc_compare_emitted.
24924
24925 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
24926
24927 * bb-reorder.c (partition_hot_cold_basic_blocks): Do not
24928 enter/exit cfglayout mode.
24929 (pass_partition_block): Require it.
24930 * combine.c (find_single_use, reg_dead_at_p): Use CFG.
24931 (combine_instructions): Track basic blocks instead of labels.
24932 (update_cfg_for_uncondjump): New.
24933 (try_combine): Use it. Update jumps after rescanning.
24934 (pass_combine): Require PROP_cfglayout.
24935 * passes.c (pass_outof_cfg_layout_mode): Move after regmove.
24936
24937 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
24938
24939 * cfglayout.c (pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode):
24940 Provide/destroy PROP_cfglayout respectively.
24941 * gcse.c (pass_jump_bypass, pass_gcse): Require it.
24942 * tree-pass.h (PROP_cfglayout): New.
24943
24944 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
24945
24946 * fold-const.c (const_binop, fold_convert_const_real_from_fixed,
24947 fold_convert_const_fixed_from_fixed,
24948 fold_convert_const_fixed_from_int,
24949 fold_convert_const_fixed_from_real, fold_negate_const): Do not
24950 set TREE_CONSTANT_OVERFLOW.
24951 * tree.def: Remove mention of TREE_CONSTANT_OVERFLOW.
24952 * tree.h (TREE_CONSTANT_OVERFLOW): Delete.
24953
24954 2009-03-30 Ira Rosen <irar@il.ibm.com>
24955
24956 * tree-vect-loop-manip.c: New file.
24957 * tree-vectorizer.c: Update documentation and included files.
24958 (vect_loop_location): Make extern.
24959 (rename_use_op): Move to tree-vect-loop-manip.c
24960 (rename_variables_in_bb, rename_variables_in_loop,
24961 slpeel_update_phis_for_duplicate_loop,
24962 slpeel_update_phi_nodes_for_guard1,
24963 slpeel_update_phi_nodes_for_guard2, slpeel_make_loop_iterate_ntimes,
24964 slpeel_tree_duplicate_loop_to_edge_cfg, slpeel_add_loop_guard,
24965 slpeel_can_duplicate_loop_p, slpeel_verify_cfg_after_peeling,
24966 set_prologue_iterations, slpeel_tree_peel_loop_to_edge,
24967 find_loop_location): Likewise.
24968 (new_stmt_vec_info): Move to tree-vect-stmts.c.
24969 (init_stmt_vec_info_vec, free_stmt_vec_info_vec, free_stmt_vec_info,
24970 get_vectype_for_scalar_type, vect_is_simple_use,
24971 supportable_widening_operation, supportable_narrowing_operation):
24972 Likewise.
24973 (bb_in_loop_p): Move to tree-vect-loop.c.
24974 (new_loop_vec_info, destroy_loop_vec_info,
24975 reduction_code_for_scalar_code, report_vect_op,
24976 vect_is_simple_reduction, vect_is_simple_iv_evolution): Likewise.
24977 (vect_can_force_dr_alignment_p): Move to tree-vect-data-refs.c.
24978 (vect_supportable_dr_alignment): Likewise.
24979 * tree-vectorizer.h (tree-data-ref.h): Include.
24980 (vect_loop_location): Declare.
24981 Reorganize function declarations according to the new file structure.
24982 * tree-vect-loop.c: New file.
24983 * tree-vect-analyze.c: Remove. Move functions to tree-vect-data-refs.c,
24984 tree-vect-stmts.c, tree-vect-slp.c, tree-vect-loop.c.
24985 * tree-vect-data-refs.c: New file.
24986 * tree-vect-patterns.c (timevar.h): Don't include.
24987 * tree-vect-stmts.c: New file.
24988 * tree-vect-transform.c: Remove. Move functions to tree-vect-stmts.c,
24989 tree-vect-slp.c, tree-vect-loop.c.
24990 * Makefile.in (OBJS-common): Remove tree-vect-analyze.o and
24991 tree-vect-transform.o. Add tree-vect-data-refs.o, tree-vect-stmts.o,
24992 tree-vect-loop.o, tree-vect-loop-manip.o, tree-vect-slp.o.
24993 (tree-vect-analyze.o): Remove.
24994 (tree-vect-transform.o): Likewise.
24995 (tree-vect-data-refs.o): Add rule.
24996 (tree-vect-stmts.o, tree-vect-loop.o, tree-vect-loop-manip.o,
24997 tree-vect-slp.o): Likewise.
24998 (tree-vect-patterns.o): Remove redundant dependencies.
24999 (tree-vectorizer.o): Likewise.
25000 * tree-vect-slp.c: New file.
25001
25002 2009-03-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25003
25004 * optc-gen.awk: Warn if an option flag has multiple different
25005 help strings.
25006
25007 2009-03-30 Sebastian Pop <sebastian.pop@amd.com>
25008
25009 * doc/invoke.texi (-floop-interchange, -floop-strip-mine,
25010 -floop-block): Document dependences on PPL, CLooG and Graphite.
25011
25012 2009-03-30 Joseph Myers <joseph@codesourcery.com>
25013
25014 PR rtl-optimization/323
25015 * c-common.c (c_fully_fold, convert_and_check,
25016 c_common_truthvalue_conversion): Handle EXCESS_PRECISION_EXPR.
25017 (c_fully_fold_internal): Disallow EXCESS_PRECISION_EXPR.
25018 * c-common.def (EXCESS_PRECISION_EXPR): New.
25019 * c-cppbuiltin.c (builtin_define_float_constants): Define
25020 constants with enough digits for long double.
25021 * c-lex.c (interpret_float): Interpret constant with excess
25022 precision where appropriate.
25023 * c-opts.c (c_common_post_options): Set
25024 flag_excess_precision_cmdline. Give an error for
25025 -fexcess-precision=standard for C++ for processors where the
25026 option is significant.
25027 * c-parser.c (c_parser_conditional_expression): Handle excess
25028 precision in condition.
25029 * c-typeck.c (convert_arguments): Handle arguments with excess
25030 precision.
25031 (build_unary_op): Move excess precision outside operation.
25032 (build_conditional_expr): Likewise.
25033 (build_compound_expr): Likewise.
25034 (build_c_cast): Do cast on operand of EXCESS_PRECISION_EXPR.
25035 (build_modify_expr): Handle excess precision in RHS.
25036 (convert_for_assignment): Handle excess precision in converted
25037 value.
25038 (digest_init, output_init_element, process_init_element): Handle
25039 excess precision in initializer.
25040 (c_finish_return): Handle excess precision in return value.
25041 (build_binary_op): Handle excess precision in operands and add
25042 excess precision as needed for operation.
25043 * common.opt (-fexcess-precision=): New option.
25044 * config/i386/i386.h (X87_ENABLE_ARITH, X87_ENABLE_FLOAT): New.
25045 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
25046 For standard excess precision, output explicit conversion to and
25047 truncation from XFmode.
25048 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1,
25049 *float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp,
25050 *float<SSEMODEI24:mode><X87MODEF:mode>2_i387, two unnamed
25051 define_splits, floatdi<X87MODEF:mode>2_i387_with_xmm, two unnamed
25052 define_splits, *floatunssi<mode>2_1, two unnamed define_splits,
25053 floatunssi<mode>2, add<mode>3, sub<mode>3, mul<mode>3, divdf3,
25054 divsf3, *fop_<mode>_comm_i387, *fop_<mode>_1_i387,
25055 *fop_<MODEF:mode>_2_i387, *fop_<MODEF:mode>_3_i387,
25056 *fop_df_4_i387, *fop_df_5_i387, *fop_df_6_i387, two unnamed
25057 define_splits, sqrt<mode>2): Disable where appropriate for
25058 standard excess precision.
25059 * convert.c (convert_to_real): Do not shorten arithmetic to type
25060 for which excess precision would be used.
25061 * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Define.
25062 * doc/invoke.texi (-fexcess-precision=): Document option.
25063 (-mfpmath=): Correct index entry.
25064 * flags.h (enum excess_precision, flag_excess_precision_cmdline,
25065 flag_excess_precision): New.
25066 * langhooks.c (lhd_post_options): Set
25067 flag_excess_precision_cmdline.
25068 * opts.c (common_handle_option): Handle -fexcess-precision=.
25069 * toplev.c (flag_excess_precision_cmdline, flag_excess_precision,
25070 init_excess_precision): New.
25071 (lang_dependent_init_target): Call init_excess_precision.
25072 * tree.c (excess_precision_type): New.
25073 * tree.h (excess_precision_type): Declare.
25074
25075 2009-03-30 Joseph Myers <joseph@codesourcery.com>
25076
25077 PR c/35235
25078 * c-typeck.c (build_component_ref): Do not copy qualifiers from
25079 non-lvalue to component.
25080
25081 2009-03-29 Joseph Myers <joseph@codesourcery.com>
25082
25083 PR preprocessor/34695
25084 * Makefile.in (c-opts.o): Depend on c-tree.h.
25085 * c-common.c: Move down include of diagnostic.h.
25086 (done_lexing, c_cpp_error): New.
25087 * c-common.h (done_lexing): Declare.
25088 * c-decl.c (c_write_global_declarations): Don't check cpp_errors
25089 (parse_in).
25090 * c-opts.c: Include c-tree.h.
25091 (c_common_init_options): Set preprocessor error callback.
25092 (c_common_handle_option): Do not set preprocessor
25093 inhibit_warnings, warnings_are_errors, warn_system_headers,
25094 pedantic_errors or inhibit_warnings flags.
25095 (c_common_post_options): Do not check cpp_errors (parse_in).
25096 (c_common_finish): Do not output dependencies if there were
25097 errors. Do not check return value of cpp_finish.
25098 * c-ppoutput.c (pp_file_change): Set input_location.
25099 * c-tree.h (c_cpp_error): Declare.
25100 * diagnostic.c (diagnostic_set_info_translated): Also initialize
25101 override_column.
25102 (diagnostic_build_prefix): Check override_column.
25103 * diagnostic.h (diagnostic_info): Add override_column field.
25104 (diagnostic_override_column): Define.
25105
25106 2009-03-28 Paolo Bonzini <bonzini@gnu.org>
25107
25108 * c-common.c (c_expand_expr, c_staticp): Remove.
25109 * c-common.def (COMPOUND_LITERAL_EXPR): Delete.
25110 * c-common.h (emit_local_var, c_staticp, COMPOUND_LITERAL_EXPR_DECL,
25111 COMPOUND_LITERAL_EXPR_DECL_EXPR): Remove.
25112 * c-gimplify.c (gimplify_compound_literal_expr,
25113 optimize_compound_literals_in_ctor): Remove.
25114 (c_gimplify_expr): Remove COMPOUND_LITERAL_EXPR handling.
25115 * c-objc-common.h (LANG_HOOKS_STATICP): Remove.
25116 * c-semantics.c (emit_local_var): Remove.
25117
25118 * langhooks-def.h (lhd_expand_expr): Remove.
25119 * langhooks.c (lhd_expand_expr): Remove.
25120 * langhooks.h (LANG_HOOKS_DEF): Remove LANG_HOOKS_EXPAND_EXPR.
25121
25122 * expr.c (expand_expr_real_1): Move COMPOUND_LITERAL_EXPR
25123 handling from c-semantics.c; don't call into langhook.
25124 (expand_expr_addr_expr_1): Check that we don't get non-GENERIC trees.
25125 * gimplify.c (gimplify_compound_literal_expr,
25126 optimize_compound_literals_in_ctor): Move from c-gimplify.c.
25127 (gimplify_init_constructor): Call optimize_compound_literals_in_ctor.
25128 (gimplify_modify_expr_rhs, gimplify_expr): Handle COMPOUND_LITERAL_EXPR
25129 as was done in c-gimplify.c.
25130 * tree.c (staticp): Move COMPOUND_LITERAL_EXPR handling from c_staticp.
25131 * tree.h (COMPOUND_LITERAL_EXPR_DECL, COMPOUND_LITERAL_EXPR_DECL_EXPR):
25132 Move from c-common.h.
25133 * tree.def (COMPOUND_LITERAL_EXPR): Move from c-common.def.
25134
25135 * tree.c (staticp): Do not call langhook.
25136 * langhooks.c (lhd_staticp): Delete.
25137 * langhooks-def.h (lhd_staticp): Delete prototype.
25138 (LANG_HOOKS_STATICP): Delete.
25139 (LANG_HOOKS_INITIALIZER): Delete LANG_HOOKS_STATICP.
25140
25141 * doc/c-tree.texi (Expression nodes): Refer to DECL_EXPRs
25142 instead of DECL_STMTs.
25143
25144 2009-03-29 Joseph Myers <joseph@codesourcery.com>
25145
25146 PR c/456
25147 PR c/5675
25148 PR c/19976
25149 PR c/29116
25150 PR c/31871
25151 PR c/35198
25152 * builtins.c (fold_builtin_sincos): Build COMPOUND_EXPR in
25153 void_type_node.
25154 (fold_call_expr): Return a NOP_EXPR from folding rather than the
25155 contained expression.
25156 * c-common.c (c_fully_fold, c_fully_fold_internal, c_save_expr): New.
25157 (c_common_truthvalue_conversion): Use c_save_expr. Do not fold
25158 conditional expressions for C.
25159 (decl_constant_value_for_optimization): Move from
25160 decl_constant_value_for_broken_optimization in c-typeck.c. Check
25161 whether optimizing and that the expression is a VAR_DECL not of
25162 array type instead of doing such checks in the caller. Do not
25163 check pedantic. Call gcc_unreachable for C++.
25164 * c-common.def (C_MAYBE_CONST_EXPR): New.
25165 * c-common.h (c_fully_fold, c_save_expr,
25166 decl_constant_value_for_optimization): New prototypes.
25167 (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
25168 C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
25169 EXPR_INT_CONST_OPERANDS): Define.
25170 * c-convert.c (convert): Strip nops from expression.
25171 * c-decl.c (groktypename): Take extra parameters expr and
25172 expr_const_operands. Update call to grokdeclarator.
25173 (start_decl): Update call to grokdeclarator. Add statement for
25174 expressions used in type of decl.
25175 (grokparm): Update call to grokdeclarator.
25176 (push_parm_decl): Update call to grokdeclarator.
25177 (build_compound_literal): Add parameter non_const and build a
25178 C_MAYBE_COSNT_EXPR if applicable.
25179 (grokdeclarator): Take extra parameters expr and
25180 expr_const_operands. Track expressions used in declaration
25181 specifiers and declarators. Fold array sizes and track whether
25182 they are constant expressions and whether they are integer
25183 constant expressions.
25184 (parser_xref_tag): Set expr and expr_const_operands fields in
25185 return value.
25186 (grokfield): Update call to grokdeclarator.
25187 (start_function): Update call to grokdeclarator.
25188 (build_null_declspecs): Set expr and expr_const_operands fields in
25189 return value.
25190 (declspecs_add_type): Handle expressions in typeof specifiers.
25191 * c-parser.c (c_parser_declspecs): Set expr and
25192 expr_const_operands fields for declaration specifiers.
25193 (c_parser_enum_specifier): Likewise.
25194 (c_parser_struct_or_union_specifier): Likewise.
25195 (c_parser_typeof_specifier): Likewise. Update call to
25196 groktypename. Fold expression as needed. Return expressions with
25197 type instead of adding statements.
25198 (c_parser_attributes): Update calls to c_parser_expr_list.
25199 (c_parser_statement_after_labels): Fold expression before passing
25200 to objc_build_throw_stmt.
25201 (c_parser_condition): Fold expression.
25202 (c_parser_asm_operands): Fold expression.
25203 (c_parser_conditional_expression): Use c_save_expr. Update call
25204 to build_conditional_expr.
25205 (c_parser_alignof_expression): Update call to groktypename.
25206 (c_parser_postfix_expression): Preserve C_MAYBE_CONST_EXPR as
25207 original_code. Fold expression argument of va_arg. Create
25208 C_MAYBE_CONST_EXPR to preserve side effects of expressions in type
25209 argument to va_arg. Update calls to groktypename. Fold array
25210 index for offsetof. Verify that first argument to
25211 __builtin_choose_expr has integer type.
25212 (c_parser_postfix_expression_after_paren_type): Update calls to
25213 groktypename and build_compound_literal. Handle expressions with
25214 side effects in type name.
25215 (c_parser_postfix_expression_after_primary): Update call to
25216 c_parser_expr_list. Set original_code for calls to
25217 __builtin_constant_p.
25218 (c_parser_expr_list): Take extra parameter fold_p. Fold
25219 expressions if requested.
25220 (c_parser_objc_type_name): Update call to groktypename.
25221 (c_parser_objc_synchronized_statement): Fold expression.
25222 (c_parser_objc_receiver): Fold expression.
25223 (c_parser_objc_keywordexpr): Update call to c_parser_expr_list.
25224 (c_parser_omp_clause_num_threads, c_parser_omp_clause_schedule,
25225 c_parser_omp_atomic, c_parser_omp_for_loop): Fold expressions.
25226 * c-tree.h (CONSTRUCTOR_NON_CONST): Define.
25227 (struct c_typespec): Add elements expr and expr_const_operands.
25228 (struct c_declspecs): Add elements expr and expr_const_operands.
25229 (groktypename, build_conditional_expr, build_compound_literal):
25230 Update prototypes.
25231 (in_late_binary_op): Declare.
25232 * c-typeck.c (note_integer_operands): New function.
25233 (in_late_binary_op): New variable.
25234 (decl_constant_value_for_broken_optimization): Move to c-common.c
25235 and rename to decl_constant_value_for_optimization.
25236 (default_function_array_conversion): Do not strip nops.
25237 (default_conversion): Do not call
25238 decl_constant_value_for_broken_optimization.
25239 (build_array_ref): Do not fold result.
25240 (c_expr_sizeof_expr): Fold operand. Use C_MAYBE_CONST_EXPR for
25241 result when operand is a VLA.
25242 (c_expr_sizeof_type): Update call to groktypename. Handle
25243 expressions included in type name. Use C_MAYBE_CONST_EXPR for
25244 result when operand names a VLA type.
25245 (build_function_call): Update call to build_compound_literal.
25246 Only fold result for calls to __builtin_* functions. Strip
25247 NOP_EXPR from INTEGER_CST returned from such functions. Fold
25248 the function designator.
25249 (convert_arguments): Fold arguments. Update call to
25250 convert_for_assignment.
25251 (build_unary_op): Handle increment and decrement of
25252 C_MAYBE_CONST_EXPR. Move lvalue checks for increment and
25253 decrement earlier. Fold operand of increment and decrement.
25254 Handle address of C_MAYBE_CONST_EXPR. Only fold expression being
25255 built for integer operand. Wrap returns that are INTEGER_CSTs
25256 without being integer constant expressions or that have integer
25257 constant operands without being INTEGER_CSTs.
25258 (lvalue_p): Handle C_MAYBE_CONST_EXPR.
25259 (build_conditional_expr): Add operand ifexp_bcp. Track whether
25260 result is an integer constant expression or can be used in
25261 unevaluated parts of one and avoid folding and wrap as
25262 appropriate. Fold operands before possibly doing -Wsign-compare
25263 warnings.
25264 (build_compound_expr): Wrap result for C99 if operands can be used
25265 in integer constant expressions.
25266 (build_c_cast): Update call to digest_init. Do not ignore
25267 overflow from casting floating-point constants to integers. Wrap
25268 results that could be confused with integer constant expressions,
25269 null pointer constants or floating-point constants.
25270 (c_cast_expr): Update call to groktypename. Handle expressions
25271 included in type name.
25272 (build_modify_expr): Handle modifying a C_MAYBE_CONST_EXPR. Fold
25273 lhs inside possible SAVE_EXPR. Fold RHS before assignment.
25274 Update calls to convert_for_assignment.
25275 (convert_for_assignment): Take new parameter
25276 null_pointer_constant. Do not strip nops or call
25277 decl_constant_value_for_broken_optimization. Set
25278 in_late_binary_op for conversions to boolean.
25279 (store_init_value): Update call to digest_init.
25280 (digest_init): Take new parameter null_pointer_constant. Do not
25281 call decl_constant_value_for_broken_optimization. pedwarn for
25282 initializers not constant expressions. Update calls to
25283 convert_for_assignment.
25284 (constructor_nonconst): New.
25285 (struct constructor_stack): Add nonconst element.
25286 (really_start_incremental_init, push_init_level, pop_init_level):
25287 Handle constructor_nonconst and nonconst element.
25288 (set_init_index): Call constant_expression_warning for array
25289 designators.
25290 (output_init_element): Fold value. Set constructor_nonconst as
25291 applicable. pedwarn for initializers not constant expressions.
25292 Update call to digest_init. Call constant_expression_warning
25293 where constant initializers are required.
25294 (process_init_element): Use c_save_expr.
25295 (c_finish_goto_ptr): Fold expression.
25296 (c_finish_return): Fold return value. Update call to
25297 convert_for_assignment.
25298 (c_start_case): Fold switch expression.
25299 (c_process_expr_stmt): Fold expression.
25300 (c_finish_stmt_expr): Create C_MAYBE_CONST_EXPR as needed to
25301 ensure statement expression is not evaluated in constant expression.
25302 (build_binary_op): Track whether results are integer constant
25303 expressions or may occur in such, disable folding and wrap results
25304 as applicable. Fold operands for -Wsign-compare warnings unless
25305 in_late_binary_op.
25306 (c_objc_common_truthvalue_conversion): Handle results folded to
25307 integer constants that are not integer constant expressions.
25308 * doc/extend.texi: Document when typeof operands are evaluated,
25309 that condition of __builtin_choose_expr is an integer constant
25310 expression, and more about use of __builtin_constant_p in
25311 initializers.
25312
25313 2009-03-29 Richard Guenther <rguenther@suse.de>
25314
25315 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
25316 propagate addresses of array references.
25317
25318 2009-03-29 Steven Bosscher <steven@gcc.gnu.org>
25319
25320 * regmove.c (perhaps_ends_bb_p): Remove.
25321 (optimize_reg_copy_1): Don't call perhaps_ends_bb_p. Get basic block
25322 from INSN and check that the main loop stays within that basic block.
25323 (optimize_reg_copy_1, optimize_reg_copy_3, fixup_match_2): Likewise.
25324 (regmove_forward_pass): Split out from regmove_optimize. Use
25325 FOR_EACH_BB and FOR_BB_INSNS instead of traversing the insns stream.
25326 (regmove_backward_pass): Split out from regmove_optimize. Use
25327 FOR_EACH_BB_REVERSE and FOR_BB_INSNS_REVERS_SAFE.
25328 (regmove_optimize): Simplify.
25329
25330 2009-03-29 H.J. Lu <hongjiu.lu@intel.com>
25331
25332 PR target/39545
25333 * config/i386/i386.c (classify_argument): Ignore flexible array
25334 member in struct and warn ABI change.
25335
25336 2009-03-29 H.J. Lu <hongjiu.lu@intel.com>
25337
25338 * config/i386/i386-protos.h (ix86_agi_dependent): New.
25339
25340 * config/i386/i386.c (ix86_agi_dependent): Rewrite.
25341 (ix86_adjust_cost): Updated.
25342
25343 2009-03-29 Jan Hubicka <jh@suse.cz>
25344
25345 PR middle-end/28850
25346 * tree-pass.h (pass_cleanup_eh): New function.
25347 (remove_unreachable_regions): Break code handling RTL
25348 to rtl_remove_unreachable_regions; remove ERT_MUST_NOT_THROW
25349 that can not be reached by runtime.
25350 (can_be_reached_by_runtime): New function.
25351 (label_to_region_map): New function.
25352 (num_eh_regions): New function.
25353 (rtl_remove_unreachable_regions): New function.
25354 (convert_from_eh_region_ranges): Call rtl_remove_unreachable_regions.
25355 (remove_eh_region): New function.
25356 * except.h: Include sbitmap and vecprim.
25357 (remove_eh_region, remove_unreachable_regions, label_to_region_map,
25358 num_eh_regions): Declare.
25359 * passes.c (init_optimization_passes): Schedule cleanup_eh.
25360 * Makefile.in (EXCEPT_H): New; replace all uses of except.h by it.
25361 * tree-eh.c (tree_remove_unreachable_handlers): New function.
25362 (tree_empty_eh_handler_p): New function.
25363 (cleanup_empty_eh): New function.
25364 (cleanup_eh): New function.
25365 (pass_cleanup_eh): New function.
25366
25367 2009-03-29 Jan Hubicka <jh@suse.cz>
25368
25369 * except.c (verify_eh_tree): Fix handling of fun!=cfun; be ready
25370 for removed regions.
25371
25372 2009-03-29 Jan Hubicka <jh@suse.cz>
25373
25374 * except.c (dump_eh_tree): Dump all datastructures.
25375
25376 2009-03-29 Jan Hubicka <jh@suse.cz>
25377
25378 * except.c (duplicate_eh_regions_0): Handle AKA bitmap.
25379 (duplicate_eh_regions_1): Likewise.
25380 (duplicate_eh_regions): Likewise; cleanup code gorwing the region
25381 vector; call EH verification.
25382 (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
25383 Be ready for region being removed.
25384
25385 2009-03-29 Jan Hubicka <jh@suse.cz>
25386
25387 * bitmap.c (bitmap_last_set_bit): New function.
25388 * bitmap.h (bitmap_last_set_bit): Declare.
25389
25390 2009-03-29 David Ayers <ayers@fsfe.org>
25391
25392 PR objc/27377
25393 * c-typeck.c (build_conditional_expr): Emit ObjC warnings
25394 by calling objc_compare_types and surpress warnings about
25395 incompatible C pointers that are compatible ObjC pointers.
25396
25397 2009-03-29 Adam Nemet <anemet@caviumnetworks.com>
25398
25399 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Don't
25400 call initialize_inline_failed.
25401 (initialize_inline_failed): Move it from here ...
25402 * cgraph.c (initialize_inline_failed): ... to here.
25403 (cgraph_create_edge): Call initialize_inline_failed rather than
25404 setting inline_failed directly.
25405
25406 2009-03-29 Ben Elliston <bje@au.ibm.com>
25407
25408 PR target/32542
25409 * sysv4.opt (msdata): Improve comment.
25410 * linux64.h (ASM_SPEC32): Do not pass -memb when -msdata is given.
25411 * sysv4.h (SVR4_ASM_SPEC): Likewise.
25412
25413 2009-03-29 Ben Elliston <bje@au.ibm.com>
25414
25415 PR target/30451
25416 * config/rs6000/rs6000.md (*movti_ppc64): Correct the order of
25417 load and store attributes.
25418
25419 2009-03-29 Ben Elliston <bje@au.ibm.com>
25420
25421 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_HUGE_VALQ.
25422 (ix86_init_builtins): Add built-in function __builtin_huge_valq.
25423 (ix86_expand_builtin): Handle IX86_BUILTIN_HUGE_VALQ.
25424 * doc/extend.texi (X86 Built-in Functions): Add index entries for
25425 __builtin_infq and __builtin_huge_valq.
25426
25427 2009-03-28 Anatoly Sokolov <aesok@post.ru>
25428
25429 * config/avr/avr.c (avr_mcu_t): Add atmega8c1, atmega16c1 and
25430 atmega8m1 devices.
25431 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
25432 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.)
25433
25434 2009-03-28 Xinliang David Li <davidxl@google.com>
25435
25436 * tree-ssa-ccp.c (ccp_finalize): Add dbg_count support.
25437 (do_dbg_cnt): New function.
25438
25439 2009-03-28 Jan Hubicka <jh@suse.cz>
25440
25441 Merge from pretty-ipa:
25442
25443 2009-03-27 Jan Hubicka <jh@suse.cz>
25444
25445 * cgraph.c (dump_cgraph_node): Add replace output flag by process.
25446 * tree-pass.h (function_called_by_processed_nodes_p): Declare.
25447 * passes.c (function_called_by_processed_nodes_p): New.
25448 * ipa-pure-const.c (check_call): Fix handling of operands.
25449 (analyze_function): Dump debug output for skipped bodies.
25450 (local_pure_const): Use function_called_by_processed_nodes_p.
25451 * dwarf2out.c (reference_to_unused): Use output.
25452 * passes.c (do_per_function_toporder): Likewise.
25453
25454 2008-11-12 Jan Hubicka <jh@suse.cz>
25455
25456 * tree-pass.h (pass_fixup_cfg, pass_local_pure_const): Declare.
25457 * ipa-pure-const.c (funct_state_d): Add can throw field; make
25458 state_set_in_source enum
25459 (check_decl): Ignore memory tags; do not set fake looping flags;
25460 dump diagnostics.
25461 (check_operand, check_tree, check_rhs_var, check_lhs_var,
25462 get_asm_expr_operands, scan_function_op, scan_function_stmt): Remove.
25463 (check_call, analyze_function): Rewrite.
25464 (check_stmt): New.
25465 (add_new_function): Update call of analyze_function.
25466 (generate_summary): Add call of analyze_function.
25467 (propagate): Propagate can_throw; handle state_set_in_source correctly.
25468 (local_pure_const): New function.
25469 (pass_local_pure_const): New pass.
25470 * ipa-inline.c (inline_transform): Set after_inlining.
25471 * tree-eh.c (stmt_can_throw_external): New.
25472 * tree-optimize.c (execute_fixup_cfg): Do not set after_inlining;
25473 work with aliasing built.
25474 * tree-flow.h (stmt_can_throw_external): New.
25475 * passes.c (init_optimization_passes): Schedule fixup_cfg pass early;
25476 and local pure/const pass in early and late optimization queue.
25477
25478 2009-03-28 Martin Jambor <mjambor@suse.cz>
25479
25480 * fold-const.c (get_pointer_modulus_and_residue): New parameter
25481 allow_func_align.
25482 (fold_binary): Allow function decl aligment consideration is the
25483 second argument is integer constant one.
25484 * tree-ssa-forwprop.c (simplify_bitwise_and): New function.
25485 (tree_ssa_forward_propagate_single_use_vars): Handle assing statements
25486 with BIT_AND_EXPR on the RHS by calling simplify_bitwise_and.
25487
25488 2009-03-28 Jan Hubicka <jh@suse.cz>
25489
25490 * dwarf2out.c (dwarf2out_begin_prologue): Use crtl->nothrow
25491 * tree-eh.c (stmt_could_throw_p): Remove check for WEAK decls.
25492 * function.h (rtl_data): Add nothrow flag.
25493 * except.c (set_nothrow_function_flags): Use crtl->nothrow;
25494 set DECL_NOTHROW for AVAILABLE functions.
25495
25496 2009-03-28 Jakub Jelinek <jakub@redhat.com>
25497
25498 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If macro
25499 following vector keyword has expansion starting with pixel or bool
25500 keyword, expand vector to __vector and pixel or bool to __pixel or
25501 __bool.
25502
25503 PR c++/39554
25504 * opts.c (warning_disallowed_functions, warn_disallowed_functions,
25505 warn_if_disallowed_function_p): Removed.
25506 (common_handle_option): Don't handle OPT_Wdisallowed_function_list_.
25507 * c-parser.c (c_parser_postfix_expression_after_primary): Don't call
25508 warning_if_disallowed_function_p.
25509 * flags.h (warn_if_disallowed_function_p,
25510 warn_disallowed_functions): Removed.
25511 * common.opt (Wdisallowed-function-list=): Removed.
25512 * doc/invoke.texi (-Wdisallowed-function-list=): Removed.
25513
25514 2009-03-28 Richard Guenther <rguenther@suse.de>
25515
25516 PR tree-optimization/38723
25517 * tree-ssa-pre.c (compute_avail): Add all default definitions to
25518 the entry block.
25519
25520 2009-03-28 Jan Hubicka <jh@suse.cz>
25521
25522 * tree-ssa-structalias.c (ipa_pta_execute): Fix bogus node->analyzed
25523 test introduced by my previous patch.
25524
25525 2009-03-28 Richard Guenther <rguenther@suse.de>
25526
25527 * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not leave
25528 the PHIs value undefined.
25529
25530 2009-03-28 Jan Hubicka <jh@suse.cz>
25531
25532 * tree-pass.h (pass_fixup_cfg): New pass.
25533 * ipa-inline.c (inline_transform): Set
25534 always_inline_functions_inlined/after_inlining.
25535 * tree-optimize.c (execute_fixup_cfg): Do not set them here.
25536 (pass_fixup_cfg): New pass.
25537 * passes.c (init_optimization_passes): Add fixup_cfg.
25538
25539 2009-03-28 Richard Guenther <rguenther@suse.de>
25540
25541 PR tree-optimization/38458
25542 * tree-ssa-copy.c (copy_prop_visit_phi_node): For the first
25543 argument use the arguments copy-of value.
25544
25545 2009-03-28 Richard Guenther <rguenther@suse.de>
25546
25547 PR tree-optimization/38180
25548 * tree-ssa-ccp.c (get_default_value): Simplify.
25549 (likely_value): Likewise.
25550 (surely_varying_stmt_p): Properly handle VOP case.
25551 (ccp_initialize): Likewise.
25552 (ccp_fold): Handle propagating through *&.
25553 (fold_const_aggregate_ref): Also handle decls.
25554
25555 2009-03-28 Jan Hubicka <jh@suse.cz>
25556
25557 * cgraph.c (dump_cgraph_node): Add replace output flag by process.
25558 * cgraph.h (cgraph_node): Likewise.
25559 * cgraphunit.c (cgraph_process_new_functions): Set process flag.
25560 (cgraph_reset_node): Use process flag.
25561 (cgraph_mark_functions_to_output): Likewise.
25562 (cgraph_expand_function): Likewise.
25563 (cgraph_expand_all_functions): Likewise.
25564 (cgraph_output_in_order): Likewise.
25565 * dwarf2out.c (reference_to_unused): Likewise.
25566 * passes.c do_per_function_toporder): Likewise.
25567
25568 2009-03-28 Jan Hubicka <jh@suse.cz>
25569
25570 Bring from lto-branch:
25571
25572 2008-09-03 Doug Kwan <dougkwan@google.com>
25573
25574 * cgraphbuild.c (initialize_inline_failed): Use cgraph_inline_failed_t
25575 enums instead of reason strings.
25576 * cgraph.c (cgraph_create_edge): Same.
25577 (cgraph_inline_failed_string): New function.
25578 * cgraph.h (cgraph_inline_failed_t): New enum type.
25579 (cgraph_inline_failed_string): New prototype.
25580 (struct cgraph_edge): Change type of INLINED_FAILED from constant
25581 char pointer to cgraph_inline_failed_t.
25582 (cgraph_inline_p): Adjust prototype to use cgraph_inline_failed_t.
25583 (cgraph_default_inline_p): Ditto.
25584 * cgraphunit.c (cgraph_inline_p): Change type of parameter REASON
25585 to cgraph_inline_failed_t pointer.
25586 * cif-code.def: New file.
25587 * ipa-inline.c (cgraph_mark_inline_edge): Use an enum instead of a
25588 reason string.
25589 (cgraph_check_inline_limits): Change type of REASON to pointer to
25590 cgraph_inline_failed_t. Replace reason strings with enums.
25591 (cgraph_default_inline_p): Ditto.
25592 (cgraph_recursive_inlining_p): Ditto.
25593 (update_caller_keys): Change type of FAILED_REASON to
25594 cgraph_inline_failed_t.
25595 (cgraph_set_inline_failed): Change type of REASON to pointer to
25596 cgraph_inline_failed_t. Call cgraph_inline_failed_string to
25597 convert enums to strings for text output.
25598 (cgraph_decide_inlining_of_small_function): Change FAILED_REASON
25599 to be of type cgraph_inline_failed_t. Replace reason strings with
25600 enums. Call cgraph_inline_failed_string to covert enums
25601 to strings for text output.
25602 (cgraph_decide_inlining): Replace reason strings with enums.
25603 (cgraph_decide_inlining_incrementally): Change type of FAILED_REASON
25604 to cgraph_inline_failed_t type. Call cgraph_inline_failed_string
25605 for text output.
25606 * tree-inline.c (expand_call_inline): Change type of REASON
25607 to cgraph_inline_failed_t. Replace reason strings with enums.
25608 Call cgraph_inline_failed_string for text output.
25609 * Makefile.in (CGRAPH_H): Add cif-code.def to dependencies.
25610 (cgraph.o): Ditto.
25611
25612 2009-03-28 Jan Hubicka <jh@suse.cz>
25613
25614 * cgraph.c (cgraph_node, cgraph_remove_node, dump_cgraph_node,
25615 cgraph_clone_node): Remove master clone handling.
25616 (cgraph_is_master_clone, cgraph_master_clone): Remove.
25617 * cgraph.h (master_clone): Remove.
25618 (cgraph_is_master_clone, cgraph_master_clone): Remove.
25619 * ipa-type-escape.c (type_escape_execute): Remove use of master clone.
25620 (tree-ssa-structalias.c (ipa_pta_execute): Likewise.
25621
25622 2009-03-28 Jan Hubicka <jh@suse.cz>
25623
25624 * cgraph.c (cgraph_function_body_availability): Functions declared
25625 inline are always safe to assume that it is not going to be replaced.
25626
25627 2009-03-28 Richard Guenther <rguenther@suse.de>
25628
25629 PR tree-optimization/38513
25630 * tree-ssa-pre.c (eliminate): Remove redundant stores.
25631 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
25632 EXC_PTR_EXPR and FILTER_EXPR.
25633 (get_ref_from_reference_ops): Likewise.
25634
25635 2009-03-28 Richard Guenther <rguenther@suse.de>
25636
25637 PR tree-optimization/38968
25638 * tree-vect-analyze.c (vect_compute_data_ref_alignment):
25639 Use FLOOR_MOD_EXPR to compute misalignment.
25640
25641 2009-03-28 Richard Guenther <rguenther@suse.de>
25642
25643 PR tree-optimization/37795
25644 * tree.h (combine_comparisons): Declare.
25645 * fold-const.c (combine_comparisons): Export.
25646 * tree-ssa-ifcombine.c (ifcombine_ifandif): Optimize two successive
25647 comparisons.
25648 (ifcombine_iforif): Use combine_comparisons.
25649
25650 2009-03-28 Jan Hubicka <jh@suse.cz>
25651
25652 * tree-eh.c (inlinable_call_p): New function.
25653 (make_eh_edges): Use it.
25654 (verify_eh_edges): Use it.
25655 (stmt_can_throw_external, stmt_can_throw_internal): Use it.
25656 * except.c (reachable_next_level): Add inlinable_function argument
25657 (sjlj_find_directly_reachable_regions): Update.
25658 (add_reachable_handler): Do not set saw_any_handlers.
25659 (reachable_next_level): Handle MUST_NOT_THROW more curefully.
25660 (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
25661 Add new inlinable call parameter.
25662 (can_throw_internal, can_throw_external): Update.
25663 * except.h (can_throw_internal_1, can_throw_external_1,
25664 foreach_reachable_handler): Update declaration.
25665
25666 2009-03-28 Joseph Myers <joseph@codesourcery.com>
25667
25668 * config/arm/t-arm-coff, config/h8300/coff.h,
25669 config/i386/i386-aout.h, config/i386/i386-coff.h,
25670 config/libgloss.h, config/m68k/coff.h, config/m68k/m68k-aout.h,
25671 config/pdp11/2bsd.h, config/rs6000/aix41.h,
25672 config/rs6000/aix41.opt, config/rs6000/t-newas, config/sh/coff.h,
25673 fix-header.c, fixproto, gen-protos.c, protoize.c, scan-decls.c,
25674 scan-types.sh, scan.c, scan.h, sort-protos, sys-protos.h,
25675 sys-types.h: Remove.
25676 * Makefile.in: Remove protoize and fixproto support and references
25677 in comments.
25678 (SYSCALLS.c.X-warn, TARGET_GETGROUPS_T, STMP_FIXPROTO,
25679 PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, FIXPROTO_DEFINES):
25680 Remove.
25681 (ALL_HOST_OBJS): Remove $(PROTO_OBJS).
25682 (MOSTLYCLEANFILES): Remove protoize$(exeext) and
25683 unprotoize$(exeext).
25684 (rest.encap): Don't depend on $(STMP_FIXPROTO)
25685 (.PHONY): Don't depend on proto.
25686 (libgcc-support): Don't depend on $(STMP_FIXPROTO).
25687 (proto, PROTO_OBJS, protoize$(exeext), unprotoize$(exeext),
25688 protoize.o, unprotoize.o, SYSCALLS.c.X, test-protoize-simple,
25689 deduced.h, GEN_PROTOS_OBJS, build/gen-protos$(build_exeext),
25690 build/gen-protos.o, build/scan.o, xsys-protos.h,
25691 build/fix-header$(build_exeext), build/fix-header.o,
25692 build/scan-decls.o, fixhdr.ready, stmp-fixproto,
25693 stmp-install-fixproto): Remove.
25694 (mostlyclean): Don't remove xsys-protos.hT, SYSCALLS.c.X,
25695 SYSCALLS.c or fixproto files.
25696 (install-common): Don't install protoize.
25697 (install-headers-tar, install-headers-cpio, install-headers-cp):
25698 Don't depend on $(STMP_FIXPROTO).
25699 (install-mkheaders): Don't depend on $(STMP_FIXPROTO). Don't
25700 install fixproto files or write out fixproto settings.
25701 (uninstall): Don't uninstall protoize.
25702 * config.gcc (use_fixproto): Remove.
25703 (arm-*-coff*, armel-*-coff*, h8300-*-*, i[34567]86-*-aout*,
25704 i[34567]86-*-coff*, m68k-*-aout*, m68k-*-coff*, pdp11-*-bsd,
25705 rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*, sh-*-*): Remove.
25706 * config/m32r/t-linux (STMP_FIXPROTO): Remove.
25707 * config/m68k/m68k.c: Remove M68K_TARGET_COFF-conditional code.
25708 * config/mips/t-iris (FIXPROTO_DEFINES): Remove.
25709 * config/pa/t-pa-hpux (FIXPROTO_DEFINES): Remove.
25710 * config/pdp11/pdp11.c: Remove TWO_BSD-conditional code.
25711 * config/t-svr4 (FIXPROTO_DEFINES): Remove.
25712 * config/t-vxworks (STMP_FIXPROTO): Remove.
25713 * configure.ac (AC_TYPE_GETGROUPS, TARGET_GETGROUPS_T,
25714 STMP_FIXPROTO): Remove.
25715 * config.in, configure: Regenerate.
25716 * crtstuff.c (gid_t, uid_t): Don't undefine.
25717 * doc/install.texi: Change m68k-coff to m68k-elf in example.
25718 (arm-*-coff, arm-*-aout: Remove target entries.
25719 (*-ibm-aix*): Mention removal of support for AIX 4.2 and older.
25720 Remove mention of AIX 4.1.
25721 (m68k-*-*): Remove mention of m68k-*-aout and m68k-*-coff*.
25722 * doc/invoke.texi (Running Protoize): Remove.
25723 * doc/trouble.texi (Actual Bugs): Remove mention of fixproto.
25724 (Protoize Caveats): Remove.
25725 * tsystem.h: Update comments on headers assumed to exist.
25726
25727 2009-03-27 Vladimir Makarov <vmakarov@redhat.com>
25728
25729 * genautomata.c: Add a new year to the copyright. Add a new
25730 reference.
25731 (struct insn_reserv_decl): Add comments for member bypass_list.
25732 (find_bypass): Remove.
25733 (insert_bypass): New.
25734 (process_decls): Use insert_bypass.
25735 (output_internal_insn_latency_func): Output all bypasses with the
25736 same input insn in one switch case.
25737
25738 * rtl.def (define_bypass): Describe bypass choice.
25739 * doc/md.texi (define_bypass): Ditto.
25740
25741 2009-03-27 Richard Guenther <rguenther@suse.de>
25742
25743 * gimplify.c (mark_addressable): Export.
25744 * tree-flow.h (mark_addressable): Declare.
25745 * tree-ssa-loop-manip.c (create_iv): Mark the base addressable.
25746 * tree-ssa.c (verify_phi_args): Verify that address taken
25747 variables have TREE_ADDRESSABLE set.
25748
25749 2009-03-27 Richard Guenther <rguenther@suse.de>
25750
25751 * fold-const.c (build_fold_addr_expr_with_type_1): Rename back to ...
25752 (build_fold_addr_expr_with_type): ... this. Remove in_fold handling.
25753 Do not mark decls TREE_ADDRESSABLE.
25754 (build_fold_addr_expr): Adjust.
25755 (fold_addr_expr): Remove.
25756 (fold_unary): Use build_fold_addr_expr.
25757 (fold_comparison): Likewise.
25758 (split_address_to_core_and_offset): Likewise.
25759 * coverage.c (tree_coverage_counter_addr): Mark the array decl
25760 TREE_ADDRESSABLE.
25761 * gimplify.c (mark_addressable): Do not exclude RESULT_DECLs.
25762 (gimplify_modify_expr_to_memcpy): Mark source and destination
25763 addressable.
25764 * omp-low.c (create_omp_child_function): Mark the object decl
25765 TREE_ADDRESSABLE.
25766 (lower_rec_input_clauses): Mark the var we take the address of
25767 TREE_ADDRESSABLE.
25768 (lower_omp_taskreg): Mark the sender decl TREE_ADDRESSABLE.
25769
25770 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
25771
25772 PR middle-end/39315
25773 * cfgexpand.c (expand_one_stack_var_at): Change alignment
25774 limit to MAX_SUPPORTED_STACK_ALIGNMENT.
25775
25776 2009-03-27 Richard Guenther <rguenther@suse.de>
25777
25778 PR tree-optimization/39120
25779 * tree-ssa-structalias.c (handle_rhs_call): Fill out return
25780 constraints.
25781 (handle_lhs_call): Process return constraints. Add escape
25782 constraints if necessary.
25783 (handle_const_call): Fill out return constraints. Make nested
25784 case more precise. Avoid consttmp if possible.
25785 (handle_pure_call): Fill out return constraints. Avoid
25786 callused if possible.
25787 (find_func_aliases): Simplify call handling.
25788
25789 2009-03-27 Richard Guenther <rguenther@suse.de>
25790
25791 PR tree-optimization/39120
25792 * tree-ssa-structalias.c (do_sd_constraint): Do not use CALLUSED
25793 as a representative.
25794 (solve_graph): Do propagate CALLUSED.
25795 (handle_pure_call): Use a scalar constraint from CALLUSED for
25796 the return value.
25797 (find_what_p_points_to): CALLUSED shall not appear in poins-to
25798 solutions.
25799
25800 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
25801
25802 PR c/39323
25803 * c-common.c (handle_aligned_attribute): Properly check alignment
25804 overflow. Use (1U << i) instead of (1 << i).
25805
25806 * emit-rtl.c (get_mem_align_offset): Use "unsigned int" for align.
25807
25808 * expr.h (get_mem_align_offset): Updated.
25809
25810 * tree.h (tree_decl_common): Change align to "unsigned int" and
25811 move it before pointer_alias_set.
25812
25813 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
25814 Jakub Jelinek <jakub@redhat.com>
25815
25816 PR target/38034
25817 * config/ia64/sync.md (cmpxchg_rel_<mode>): Replace input
25818 gr_register_operand with gr_reg_or_0_operand.
25819 (cmpxchg_rel_di): Likewise.
25820 (sync_lock_test_and_set<mode>): Likewise.
25821
25822 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
25823
25824 * jump.c (rtx_renumbered_equal_p): Use subreg_get_info.
25825 (true_regnum): Likewise.
25826
25827 * rtlanal.c (subreg_info): Moved to ...
25828 * rtl.h (subreg_info): Here. New.
25829 (subreg_get_info): New.
25830
25831 * rtlanal.c (subreg_get_info): Make it extern.
25832
25833 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
25834
25835 PR target/39472
25836 * config/i386/i386.c (ix86_abi): New.
25837 (override_options): Handle -mabi=.
25838 (ix86_function_arg_regno_p): Replace DEFAULT_ABI with ix86_abi.
25839 (ix86_call_abi_override): Likewise.
25840 (init_cumulative_args): Likewise.
25841 (function_arg_advance): Likewise.
25842 (function_arg_64): Likewise.
25843 (function_arg): Likewise.
25844 (ix86_pass_by_reference): Likewise.
25845 (ix86_function_value_regno_p): Likewise.
25846 (ix86_build_builtin_va_list_abi): Likewise.
25847 (setup_incoming_varargs_64): Likewise.
25848 (is_va_list_char_pointer): Likewise.
25849 (ix86_init_machine_status): Likewise.
25850 (ix86_reg_parm_stack_space): Use enum calling_abi on call_abi.
25851 (ix86_function_type_abi): Return enum calling_abi. Rewrite
25852 for 64bit. Replace DEFAULT_ABI with ix86_abi.
25853 (ix86_function_abi): Make it static and return enum calling_abi.
25854 (ix86_cfun_abi): Return enum calling_abi. Replace DEFAULT_ABI
25855 with ix86_abi.
25856 (ix86_fn_abi_va_list): Updated.
25857
25858 * config/i386/i386.h (ix86_abi): New.
25859 (STACK_BOUNDARY): Replace DEFAULT_ABI with ix86_abi.
25860 (CONDITIONAL_REGISTER_USAGE): Likewise.
25861 (CUMULATIVE_ARGS): Change call_abi type to enum calling_abi.
25862 (machine_function): Likewise.
25863
25864 * config/i386/i386.md (untyped_call): Replace DEFAULT_ABI
25865 with ix86_abi.
25866 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Likewise.
25867 (STACK_BOUNDARY): Likewise.
25868 * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Likewise.
25869
25870 * config/i386/i386.opt (mabi=): New.
25871
25872 * config/i386/i386-protos.h (ix86_cfun_abi): Changed to
25873 return enum calling_abi.
25874 (ix86_function_type_abi): Likewise.
25875 (ix86_function_abi): Removed.
25876
25877 * doc/invoke.texi: Document -mabi= option for x86.
25878
25879 2009-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
25880
25881 * builtins.c (real_dconstp): Delete.
25882 (fold_builtin_logarithm): Remove inaccurate log(e) special case.
25883
25884 2009-03-27 Dodji Seketeli <dodji@redhat.com>
25885 Jakub Jelinek <jakub@redhat.com>
25886
25887 PR debug/37959
25888 * dwarf2out.c (dwarf_attr_name): Handle DW_AT_explicit attribute.
25889 (gen_subprogram_die): When a function is explicit, generate the
25890 DW_AT_explicit attribute.
25891 * langhooks.h (struct lang_hooks_for_decls): Add
25892 function_decl_explicit_p langhook.
25893 * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Define.
25894 (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P.
25895
25896 2009-03-27 Jakub Jelinek <jakub@redhat.com>
25897
25898 * builtins.c (fold_builtin_memory_op): Optimize memmove
25899 into memcpy if we can prove source and destination don't overlap.
25900
25901 * tree-inline.c: Include gt-tree-inline.h.
25902 (clone_fn_id_num): New variable.
25903 (clone_function_name): New function.
25904 (tree_function_versioning): Use it.
25905 * Makefile.in (GTFILES): Add tree-inline.c.
25906
25907 2009-03-27 Mark Mitchell <mark@codesourcery.com>
25908
25909 * BASE-VER: Change to 4.5.0.
25910
25911 2009-03-27 Xinliang David Li <davidxl@google.com>
25912
25913 PR tree-optimization/39557
25914 * tree-ssa.c (warn_uninitialized_vars): free postdom info.
25915
25916 2009-03-27 Xinliang David Li <davidxl@google.com>
25917
25918 PR tree-optimization/39548
25919 * tree-ssa-copy.c (copy_prop_visit_phi_node): Add copy
25920 candidate check.
25921
25922 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
25923
25924 * c-common.c (pointer_int_sum): Use %wd on return from
25925 tree_low_cst.
25926
25927 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
25928
25929 * c-common.c (pointer_int_sum): Use HOST_WIDE_INT_PRINT_DEC
25930 on return from tree_low_cst.
25931
25932 2009-03-27 Andrew Pinski <andrew_pinski@playstation.sony.com>
25933
25934 PR c++/36799
25935 * ginclude/stdarg.h (va_copy): Define also for
25936 __GXX_EXPERIMENTAL_CXX0X__.
25937
25938 2009-03-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
25939
25940 PR c++/35652
25941 * builtins.h (c_strlen): Do not warn here.
25942 * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
25943 * c-common.c (pointer_int_sum): Take an explicit location.
25944 Warn about offsets out of bounds.
25945 * c-common.h (pointer_int_sum): Adjust declaration.
25946
25947 2009-03-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25948
25949 * doc/invoke.texi (i386 and x86-64 Windows Options): Fix texinfo
25950 markup glitch.
25951
25952 2009-03-26 Jakub Jelinek <jakub@redhat.com>
25953
25954 PR c++/39554
25955 * opts.c (warn_if_disallowed_function_p): Don't assume
25956 get_callee_fndecl must return non-NULL.
25957
25958 2009-03-26 Vladimir Makarov <vmakarov@redhat.com>
25959
25960 PR rtl-optimization/39522
25961 * reload1.c (reload_as_needed): Invalidate reg_last_reload_reg too
25962 when reg_reloaded_valid is set.
25963
25964 2009-03-26 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
25965
25966 * config/spu/divv2df3.c: New file.
25967 * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add it.
25968 (DPBIT_FUNCS): Filter out _div_df.
25969
25970 2009-03-26 Bernd Schmidt <bernd.schmidt@analog.com>
25971
25972 * config/bfin/bfin.c (bfin_optimize_loop): If the LSETUP goes before
25973 a jump insn, count that jump in the distance to the loop start.
25974
25975 2009-03-25 Kaz Kojima <kkojima@gcc.gnu.org>
25976
25977 PR target/39523
25978 * config/sh/sh.c (calc_live_regs): Fix condition for global
25979 registers except PIC_OFFSET_TABLE_REGNUM.
25980
25981 2009-03-25 Kai Tietz <kai.tietz@onevision.com>
25982
25983 PR/39518
25984 * doc/invoke.texi (-mconsole): New.
25985 (-mcygwin): New.
25986 (-mno-cygwin): New.
25987 (-mdll): New.
25988 (-mnop-fun-dllimport): New.
25989 (-mthread): New.
25990 (-mwin32): New.
25991 (-mwindows): New.
25992 (sub section "i386 and x86-64 Windows Options"): New.
25993
25994 2009-03-25 Ralf Corsépius <ralf.corsepius@rtems.org>
25995
25996 * config/arm/rtems-elf.h: Remove LINK_GCC_C_SEQUENCE_SPEC.
25997 * config/rs6000/t-rtems: Remove MULTILIB_EXTRA_OPTS.
25998
25999 2009-03-25 Richard Guenther <rguenther@suse.de>
26000
26001 PR middle-end/39497
26002 * Makefile.in (dfp.o-warn): Use -fno-strict-aliasing instead
26003 of -Wno-error.
26004
26005 2009-03-25 Andrey Belevantsev <abel@ispras.ru>
26006
26007 * config/ia64/ia64.c (ia64_set_sched_flags): Zero spec_info->mask when
26008 neither of haifa/selective schedulers are working.
26009
26010 2009-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26011
26012 * doc/invoke.texi (Debugging Options): Fix description of
26013 -fno-merge-debug-strings.
26014
26015 2009-03-24 Hans-Peter Nilsson <hp@axis.com>
26016
26017 * config/cris/libgcc.ver: New version-script.
26018 * config/cris/t-linux (SHLIB_MAPFILES): Use it.
26019
26020 * configure.ac <GAS features, nop mnemonic>: Add pattern
26021 crisv32-*-* for "nop".
26022 <GAS features, Thread-local storage>: Add item for CRIS and CRIS v32.
26023 * configure: Regenerate.
26024
26025 2009-03-24 Ira Rosen <irar@il.ibm.com>
26026
26027 PR tree-optimization/39529
26028 * tree-vect-transform.c (vect_create_data_ref_ptr): Call
26029 mark_sym_for_renaming for the tag copied to the new vector
26030 pointer.
26031
26032 2009-03-24 Arthur Loiret <aloiret@debian.org>
26033
26034 * config.host (alpha*-*-linux*): Use driver-alpha.o and alpha/x-alpha.
26035 * config/alpha/linux.h (host_detect_local_cpu): Declare, add to
26036 EXTRA_SPEC_FUNCTIONS.
26037 (MCPU_MTUNE_NATIVE_SPECS, DRIVER_SELF_SPECS): New macros.
26038 * config/alpha/driver-alpha.c, config/alpha/x-alpha: New.
26039 * doc/invoke.texi (DEC Alpha Options): Document 'native' value for
26040 -march and -mtune options.
26041
26042 2009-03-24 Ralf Corsépius <ralf.corsepius@rtems.org>
26043
26044 * config/m68k/t-rtems: Add m5329 multilib.
26045
26046 2009-03-24 Dodji Seketeli <dodji@redhat.com>
26047 Jakub Jelinek <jakub@redhat.com>
26048
26049 PR debug/39524
26050 * dwarf2out.c (gen_variable_die): Avoid adding duplicate declaration
26051 nodes.
26052
26053 2009-03-23 Jakub Jelinek <jakub@redhat.com>
26054
26055 PR c/39495
26056 * c-parser.c (c_parser_omp_for_loop): Call c_parser_binary_expression
26057 instead of c_parser_expression_conv, if original_code isn't one of the
26058 4 allowed comparison codes, fail.
26059
26060 2009-03-23 Richard Guenther <rguenther@suse.de>
26061
26062 * cgraph.h (struct cgraph_node): Reorder fields for 64-bit hosts.
26063 * tree.h (struct tree_type): Likewise.
26064 * reload.h (struct insn_chain): Likewise.
26065 * dwarf2out.c (struct dw_loc_descr_struct): Likewise.
26066 * function.h (struct function): Likewise.
26067 * tree-ssa-structalias.c (struct equiv_class_label): Likewise.
26068
26069 2009-03-23 Jakub Jelinek <jakub@redhat.com>
26070
26071 PR tree-optimization/39516
26072 * lambda-code.c (perfect_nestify): Fix type of the uboundvar variable.
26073
26074 2009-03-23 Bingfeng Mei <bmei@broadcom.com>
26075
26076 * config.gcc (need_64bit_hwint): Make clear that need_64bit_hwint
26077 should be set true if BITS_PER_WORD of target is bigger than 32
26078
26079 2009-03-22 Hans-Peter Nilsson <hp@axis.com>
26080
26081 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC):
26082 Translate -B-options to -rpath-link. Correct existing
26083 rpath-link and conditionalize on !nostdlib.
26084
26085 2009-03-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26086
26087 * doc/extend.texi (Function Attributes, Variable Attributes):
26088 Fix typos.
26089 * doc/invoke.texi (Debugging Options, Optimize Options)
26090 (i386 and x86-64 Options, MCore Options): Likewise.
26091
26092 2009-03-20 Jakub Jelinek <jakub@redhat.com>
26093
26094 PR debug/37890
26095 * dwarf2out.c (gen_namespace_die): Add context_die argument and use
26096 it for block local namespace aliases.
26097 (gen_decl_die): Pass context_die to gen_namespace_die.
26098
26099 2009-03-19 Jakub Jelinek <jakub@redhat.com>
26100
26101 PR c/39495
26102 * c-omp.c (c_finish_omp_for): Allow NE_EXPR with TREE_TYPE (decl)'s
26103 minimum or maximum value.
26104
26105 2009-03-19 Alexandre Oliva <aoliva@redhat.com>
26106
26107 * reginfo.c (globalize_reg): Recompute derived reg sets.
26108
26109 2009-03-19 Ozkan Sezer <sezeroz@gmail.com>
26110
26111 PR target/39063
26112 * libgcc2.c (mprotect): Do not use signed arguments for
26113 VirtualProtect, use DWORD arguments. Also fix the 'may
26114 be used uninitialized' warning for the np variable.
26115
26116 2009-03-19 Jakub Jelinek <jakub@redhat.com>
26117
26118 PR target/39496
26119 * config/i386/i386.c (ix86_function_regparm): Don't optimize local
26120 functions using regparm calling conventions when not optimizing.
26121 (ix86_function_sseregparm): Similarly for sseregparm calling
26122 conventions.
26123
26124 2009-03-19 Li Feng <nemokingdom@gmail.com>
26125
26126 PR middle-end/39500
26127 * tree-data-ref.c (analyze_subscript_affine_affine): There is no
26128 dependence if the first conflict is after niter iterations.
26129
26130 2009-03-19 Hans-Peter Nilsson <hp@axis.com>
26131
26132 PR middle-end/38609
26133 * config/cris/cris.h (FRAME_POINTER_REQUIRED): Force for all
26134 functions with dynamic stack-pointer adjustments.
26135
26136 2009-03-19 Ben Elliston <bje@au.ibm.com>
26137
26138 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix -msdata-data
26139 option; change to -msdata=data.
26140
26141 2009-03-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26142
26143 * c.opt: Unify help texts for -Wdeprecated, -Wsystem-headers,
26144 and -fopenmp.
26145
26146 2009-03-18 Eric Botcazou <ebotcazou@adacore.com>
26147
26148 PR target/35180
26149 * config/sparc/sparc.md (do_builtin_setjmp_setup): Prettify asm output.
26150
26151 2009-03-18 Sandra Loosemore <sandra@codesourcery.com>
26152
26153 * doc/invoke.texi (Code Gen Options): Expand discussion of
26154 -fno-common.
26155
26156 2009-03-18 Jakub Jelinek <jakub@redhat.com>
26157
26158 * dse.c (struct group_info): Reorder fields for 64-bit hosts.
26159 * matrix-reorg.c (struct matrix_info): Likewise.
26160 * tree-ssa-loop-ivopts.c (struct ivopts_data): Likewise.
26161 * rtl.h (struct mem_attrs): Likewise.
26162 * df.h (struct df): Likewise.
26163 * tree-data-ref.h (struct data_dependence_relation): Likewise.
26164 * ira-int.h (struct ira_allocno): Likewise.
26165 * df-scan.c (struct df_collection_rec): Likewise.
26166 * ira.c (struct equivalence): Likewise.
26167 * function.c (struct temp_slot): Likewise.
26168 * cfgloop.h (struct loop): Likewise.
26169
26170 PR debug/39485
26171 * function.c (use_register_for_decl): When not optimizing, disregard
26172 register keyword for variables with types containing methods.
26173
26174 2009-03-18 Sebastian Pop <sebastian.pop@amd.com>
26175
26176 PR middle-end/39447
26177 * graphite.c (exclude_component_ref): Renamed contains_component_ref_p.
26178 (is_simple_operand): Call contains_component_ref_p before calling data
26179 reference analysis that would fail on COMPONENT_REFs.
26180
26181 * tree-vrp.c (search_for_addr_array): Fix formatting.
26182
26183 2009-03-18 Richard Guenther <rguenther@suse.de>
26184
26185 * tree-vect-transform.c (vect_loop_versioning): Fold the
26186 generated comparisons.
26187 * tree-vectorizer.c (set_prologue_iterations): Likewise.
26188 (slpeel_tree_peel_loop_to_edge): Likewise.
26189
26190 2009-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26191
26192 PR middle-end/37805
26193 * opts.c (print_specific_help): In addition to `undocumented',
26194 accept `separate' and `joined' flags if passed alone. Describe
26195 output by the first matched one of those.
26196 (common_handle_option): Skip over empty strings.
26197 * gcc.c (display_help): Fix help string for `--help='.
26198 * doc/invoke.texi (Option Summary, Overall Options): With
26199 `--help=', classes and qualifiers can both be repeated, but
26200 only the latter can be negated. One should not pass only
26201 negated qualifiers. Fix markup and examples.
26202
26203 Revert
26204 2008-10-14 Jakub Jelinek <jakub@redhat.com>
26205 PR middle-end/37805
26206 * opts.c (common_handle_option): Don't ICE on -fhelp=joined
26207 and -fhelp=separate.
26208
26209 2009-03-17 Jing Yu <jingyu@google.com>
26210
26211 PR middle-end/39378
26212 * function.h (struct rtl_data): Move is_thunk from here...
26213 (struct function): ...to here.
26214 * cp/method.c (use_thunk): Change is_thunk from crtl to cfun.
26215 * varasm.c (assemble_start_function): Change is_thunk from crtl to
26216 cfun.
26217 * config/alpha/alpha.c (alpha_sa_mask): Change is_thunk from crtl to
26218 cfun.
26219 (alpha_does_function_need_gp, alpha_start_function): Likewise.
26220 (alpha_output_function_end_prologue): Likewise.
26221 (alpha_end_function, alpha_output_mi_thunk_osf): Likewise.
26222 * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likewise.
26223 (rs6000_output_function_epilogue): Likewise.
26224 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Likewise.
26225
26226 2009-03-17 Uros Bizjak <ubizjak@gmail.com>
26227
26228 PR target/39482
26229 * config/i386/i386.md (*truncdfsf_mixed): Avoid combining registers
26230 from different units in a single alternative.
26231 (*truncdfsf_i387): Ditto.
26232 (*truncxfsf2_mixed): Ditto.
26233 (*truncxfdf2_mixed): Ditto.
26234
26235 2009-03-17 Jakub Jelinek <jakub@redhat.com>
26236
26237 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Allow
26238 non-NAMESPACE_DECL IMPORTED_DECL_ASSOCIATED_DECL.
26239
26240 PR debug/39474
26241 * tree-ssa-live.c (remove_unused_locals): Don't remove local
26242 unused non-artificial variables when not optimizing.
26243
26244 PR debug/39471
26245 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Emit
26246 DW_TAG_imported_module even if decl is IMPORTED_DECL with
26247 NAMESPACE_DECL in its DECL_INITIAL.
26248
26249 PR middle-end/39443
26250 * optabs.c (set_user_assembler_libfunc): New function.
26251 * expr.h (set_user_assembler_libfunc): New prototype.
26252 * c-common.c: Include libfuncs.h.
26253 (set_builtin_user_assembler_name): Call set_user_assembler_libfunc
26254 for memcmp, memset, memcpy, memmove and abort.
26255 * Makefile.in (c-common.o): Depend on libfuncs.h.
26256
26257 PR debug/39412
26258 * dwarf2out.c (gen_inlined_enumeration_type_die,
26259 gen_inlined_structure_type_die, gen_inlined_union_type_die,
26260 gen_tagged_type_instantiation_die): Removed.
26261 (gen_decl_die): For TYPE_DECL_IS_STUB with non-NULL decl_origin
26262 do nothing.
26263
26264 2009-03-17 Janis Johnson <janis187@us.ibm.com>
26265
26266 PR testsuite/38526
26267 * Makefile.in (site.exp): Rename TEST_GCC_EXEC_PREFIX and comment
26268 its use.
26269 (check-%): Don't set GCC_EXEC_PREFIX when invoking runtest.
26270 (check-parallel-%): Ditto.
26271 (check-consistency): Ditto.
26272
26273 2009-03-17 Kai Tietz <kai.tietz@onevision.com>
26274
26275 * ipa-struct-reorg.c (create_general_new_stmt): Initialize
26276 local variable rhs by NULL_TREE.
26277
26278 2009-03-17 H.J. Lu <hongjiu.lu@intel.com>
26279
26280 PR target/39477
26281 * doc/extend.texi: Correct register behavior for regparm on Intel 386.
26282
26283 2009-03-17 H.J. Lu <hongjiu.lu@intel.com>
26284
26285 PR target/39476
26286 * config/i386/i386.c (ix86_function_regparm): Rewrite for 64bit.
26287
26288 2009-03-17 H.J. Lu <hongjiu.lu@intel.com>
26289
26290 PR target/39473
26291 * config/i386/i386.c (ix86_expand_call): Check extra clobbers
26292 for ms->sysv ABI calls only in 64bit mode.
26293
26294 * config/i386/i386.md (untyped_call): Support 32bit.
26295
26296 2009-03-16 H.J. Lu <hongjiu.lu@intel.com>
26297
26298 * doc/extend.texi: Replace x86_65 with x86_64.
26299
26300 2009-03-16 Jakub Jelinek <jakub@redhat.com>
26301
26302 PR tree-optimization/39455
26303 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Fix types
26304 mismatches for POINTER_TYPE_P (type).
26305 (number_of_iterations_le): Likewise.
26306
26307 2009-03-16 Hariharan Sandanagobalane <hariharan@picochip.com>
26308
26309 * config/picochip/picochip.c: Removed profiling support.
26310 * config/picochip/picochip.md: Removed profiling instruction.
26311 * config/picochip/picochip.h: Removed profiling builtin.
26312
26313 2009-03-16 Joseph Myers <joseph@codesourcery.com>
26314
26315 * doc/install.texi (--with-host-libstdcxx): Document.
26316
26317 2009-03-14 Anatoly Sokolov <aesok@post.ru>
26318
26319 PR target/34299
26320 * config/avr/avr.c (avr_handle_fndecl_attribute): Move code for
26321 generate a warning if the function name does not begin with
26322 "__vector" and the function has either the 'signal' or 'interrupt'
26323 attribute, from here to ...
26324 (avr_declare_function_name): ...here. New function.
26325 * config/avr/avr.h (ASM_DECLARE_FUNCTION_NAME): Redefine.
26326 * config/avr/avr-protos.h (avr_declare_function_name): Declare.
26327
26328 2009-03-14 Jakub Jelinek <jakub@redhat.com>
26329
26330 PR bootstrap/39454
26331 * cse.c (fold_rtx): Don't modify original const_arg1 when
26332 canonicalizing SHIFT_COUNT_TRUNCATED shift count, do it on a
26333 separate variable instead.
26334 * rtlanal.c (nonzero_bits1) <case ASHIFTRT>: Don't assume anything
26335 from out of range shift counts.
26336 (num_sign_bit_copies1) <case ASHIFTRT, case ASHIFT>: Similarly.
26337
26338 2009-03-13 Catherine Moore <clm@codesourcery.com>
26339
26340 * config/i386/x-mingw32 (host-mingw32.o): Replace
26341 diagnostic.h with $(DIAGNOSTIC_H).
26342
26343 2009-03-12 Jakub Jelinek <jakub@redhat.com>
26344
26345 PR target/39431
26346 * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): New
26347 predicate.
26348 * config/i386/sync.md (sync_compare_and_swap<mode>,
26349 sync_compare_and_swap_cc<mode>): For DImode with -m32 -fpic check
26350 if operands[1] is cmpxchg8b_pic_memory_operand, if not force address
26351 into a register.
26352 (sync_double_compare_and_swapdi_pic,
26353 sync_double_compare_and_swap_ccdi_pic): Require operand 1 to be
26354 cmpxchg8b_pic_memory_operand instead of just memory_operand.
26355
26356 2009-03-12 H.J. Lu <hongjiu.lu@intel.com>
26357
26358 PR target/39445
26359 * config/i386/i386.c (ix86_expand_push): Don't set memory alignment.
26360
26361 2009-03-12 H.J. Lu <hongjiu.lu@intel.com>
26362
26363 PR target/39327
26364 * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
26365 (avx_addsubv4df3): Likewise.
26366 (*avx_addsubv4sf3): Likewise.
26367 (sse3_addsubv4sf3): Likewise.
26368
26369 2009-03-12 H.J. Lu <hongjiu.lu@intel.com>
26370
26371 PR target/38824
26372 * config/i386/i386.md: Compare REGNO on the new peephole2 patterns.
26373
26374 2009-03-12 Vladimir Makarov <vmakarov@redhat.com>
26375
26376 PR debug/39432
26377 * ira-int.h (struct allocno): Fix comment for calls_crossed_num.
26378 * ira-conflicts.c (ira_build_conflicts): Prohibit call used
26379 registers for allocnos created from user-defined variables.
26380
26381 2009-03-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26382
26383 PR target/39181
26384 * config/spu/spu.c (spu_expand_mov): Handle invalid subregs
26385 of non-integer mode as well.
26386
26387 2009-03-11 Adam Nemet <anemet@caviumnetworks.com>
26388
26389 * gimplify.c (gimplify_call_expr): Don't set CALL_CANNOT_INLINE_P
26390 for functions for which the parameter types are unknown.
26391
26392 2009-03-11 Jakub Jelinek <jakub@redhat.com>
26393
26394 PR target/39137
26395 * cfgexpand.c (get_decl_align_unit): Use LOCAL_DECL_ALIGNMENT macro.
26396 * defaults.h (LOCAL_DECL_ALIGNMENT): Define if not yet defined.
26397 * config/i386/i386.h (LOCAL_DECL_ALIGNMENT): Define.
26398 * config/i386/i386.c (ix86_local_alignment): For
26399 -m32 -mpreferred-stack-boundary=2 use 32-bit alignment for
26400 long long variables on the stack to avoid dynamic realignment.
26401 Allow the first argument to be a decl rather than type.
26402 * doc/tm.texi (LOCAL_DECL_ALIGNMENT): Document.
26403
26404 2009-03-11 Nick Clifton <nickc@redhat.com>
26405
26406 PR target/5362
26407 * config/mcore/mcore.opt: Remove deprecated m4align and m8align
26408 options.
26409 Add description to mno-lsim option.
26410 * config/mcore/mcore.h: Remove comment about deprecated m4align
26411 option.
26412 (TARGET_DEFAULT): Remove deprecated MASK_M8ALIGN.
26413 * doc/invoke.texi: Add description of mno-lsim and
26414 mstack-increment options.
26415
26416 * config/fr30/fr30.opt: Document the -mno-lsim option.
26417 * doc/invoke.texi: Add descriptions of the FR30's -msmall-model
26418 and -mno-lsim options.
26419
26420 2009-03-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26421
26422 * fold-const.c (fold_comparison): Only call fold_inf_compare
26423 if the mode supports infinities.
26424
26425 2009-03-11 Jason Merrill <jason@redhat.com>
26426
26427 PR debug/39086
26428 * tree-nrv.c (tree_nrv): Don't do this optimization if the front
26429 end already did. Notice GIMPLE_CALL modifications of the result.
26430 Don't copy debug information from an ignored decl or a decl from
26431 another function.
26432
26433 2009-03-10 Richard Guenther <rguenther@suse.de>
26434 Nathan Froyd <froydnj@codesourcery.com>
26435
26436 PR middle-end/37850
26437 * libgcc2.c (__mulMODE3): Use explicit assignments to form the result.
26438 (__divMODE3): Likewise.
26439
26440 2009-03-09 Jakub Jelinek <jakub@redhat.com>
26441
26442 PR tree-optimization/39394
26443 * gimplify.c (gimplify_type_sizes): Gimplify DECL_SIZE and
26444 DECL_SIZE_UNIT of variable length FIELD_DECLs.
26445
26446 2009-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26447
26448 * recog.c (verfiy_changes): Disallow renaming of hard regs in
26449 inline asms for register asm ("") declarations.
26450
26451 2009-03-09 Eric Botcazou <ebotcazou@adacore.com>
26452
26453 * fold-const.c (fold_unary): Fix comment.
26454
26455 2009-03-07 Jan Hubicka <jh@suse.cz>
26456
26457 PR target/39361
26458 * tree-inline.c (setup_one_parameter): Do replacement of const
26459 argument by constant in SSA form.
26460
26461 2009-03-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26462
26463 PR middle-end/38028
26464 * function.c (assign_parm_setup_stack): Use STACK_SLOT_ALIGNMENT to
26465 determine alignment passed to assign_stack_local.
26466 (assign_parms_unsplit_complex): Likewise.
26467 * except.c (sjlj_build_landing_pads): Likewise.
26468
26469 2009-03-06 Jakub Jelinek <jakub@redhat.com>
26470
26471 PR middle-end/39360
26472 * tree-flow.h (add_referenced_var): Return bool instead of void.
26473 * tree-dfa.c (add_referenced_var): Return result of
26474 referenced_var_check_and_insert call.
26475 * tree-inline.c (expand_call_inline): Call add_referenced_var instead
26476 of referenced_var_check_and_insert.
26477
26478 PR debug/39372
26479 * dwarf2out.c (add_abstract_origin_attribute): Return origin_die.
26480 (gen_variable_die): Emit DW_AT_location on abstract static variable's
26481 DIE, don't emit it if abstract origin already has it.
26482 * tree-cfg.c (remove_useless_stmts_bind): GIMPLE_BINDs with any
26483 BLOCK_NONLOCALIZED_VARS in its gimple_bind_block aren't useless.
26484
26485 2009-03-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
26486
26487 * genpreds.c (needs_variable): Fix parentheses at variable name
26488 detection.
26489 (write_tm_constrs_h): Indent generated code.
26490
26491 2009-03-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26492
26493 * doc/extend.texi (Function Attributes): Add documentation
26494 for isr attributes.
26495
26496 2009-03-06 Jakub Jelinek <jakub@redhat.com>
26497
26498 PR debug/39387
26499 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): For IMPORTED_DECL
26500 take locus from its DECL_SOURCE_LOCATION instead of input_location.
26501
26502 2009-03-05 Bernd Schmidt <bernd.schmidt@analog.com>
26503
26504 * config/bfin/bfin.c (bfin_discover_loop): When retrying fails, mark
26505 the loop as bad.
26506
26507 2009-03-05 Jakub Jelinek <jakub@redhat.com>
26508
26509 PR debug/39379
26510 * tree-cfg.c (remove_useless_stmts_bind): Don't remove GIMPLE_BINDs
26511 with blocks containing IMPORTED_DECLs in BLOCK_VARS.
26512
26513 2009-03-05 Uros Bizjak <ubizjak@gmail.com>
26514
26515 * config/i386/i386.md (R8_REG, R9_REG): New constants.
26516 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Use named
26517 constants instead of magic numbers.
26518 (HARD_REGNO_CALLER_SAVE_MODE): Ditto.
26519 (QI_REG_P): Ditto.
26520 * config/i386/i386.c (x86_64_int_parameter_registers): Ditto.
26521 (x86_64_ms_abi_int_parameter_registers): Ditto.
26522 (x86_64_int_return_registers): Ditto.
26523 (ix86_maybe_switch_abi): Ditto.
26524 (ix86_expand_call): Ditto for clobbered_registers array.
26525 (ix86_hard_regno_mode_ok): Ditto.
26526 (x86_extended_QIreg_mentioned_p): Ditto.
26527
26528 2009-03-05 J"orn Rennecke <joern.rennecke@arc.com>
26529
26530 PR tree-optimization/39349
26531 * cse.c (cse_insn): Fix loop to stop at VOIDmode.
26532
26533 * combine.c (gen_lowpart_for_combine): Use omode when generating
26534 clobber.
26535
26536 2009-03-04 J"orn Rennecke <joern.rennecke@arc.com>
26537
26538 PR rtl-optimization/39235
26539 * loop-iv.c (get_simple_loop_desc): Use XCNEW.
26540
26541 2009-03-04 Zdenek Dvorak <ook@ucw.cz>
26542
26543 * graphite.c (nb_reductions_in_loop): Update simple_iv arguments.
26544
26545 2009-03-04 Richard Guenther <rguenther@suse.de>
26546
26547 PR tree-optimization/39362
26548 * tree-ssa-sccvn.c (visit_use): Stores and copies from SSA_NAMEs
26549 that occur in abnormal PHIs should be varying.
26550
26551 2009-03-04 Zdenek Dvorak <ook@ucw.cz>
26552
26553 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop):
26554 Extend comments.
26555 (simple_iv): Take loop as an argument instead of statement.
26556 * tree-scalar-evolution.h (simple_iv): Declaration changed.
26557 * tree-ssa-loop-niter.c (number_of_iterations_exit): Update calls
26558 to simple_iv.
26559 * tree-ssa-loop-ivopts.c (determine_biv_step, find_givs_in_stmt_scev):
26560 Ditto.
26561 * tree-parloops.c (loop_parallel_p, canonicalize_loop_ivs): Ditto.
26562 * matrix-reorg.c (analyze_transpose): Ditto.
26563 * tree-data-ref.c (dr_analyze_innermost): Ditto.
26564 * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
26565 * tree-predcom.c (ref_at_iteration): Ditto.
26566 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Ditto.
26567
26568 2009-03-04 Richard Guenther <rguenther@suse.de>
26569
26570 PR tree-optimization/39358
26571 * tree-ssa-structalias.c (do_sd_constraint): Fix check for
26572 escaped_id and callused_id.
26573 (solve_graph): Likewise.
26574
26575 2009-03-04 Richard Guenther <rguenther@suse.de>
26576
26577 PR tree-optimization/39339
26578 * tree-sra.c (try_instantiate_multiple_fields): Make it
26579 no longer ICE on the above.
26580
26581 2009-03-03 Joseph Myers <joseph@codesourcery.com>
26582
26583 * emit-rtl.c (adjust_address_1): Reduce offset to a signed value
26584 that fits within Pmode.
26585
26586 2009-03-03 Steve Ellcey <sje@cup.hp.com>
26587
26588 PR middle-end/10109
26589 * tm.texi (LIBCALL_VALUE): Update description.
26590
26591 2009-03-03 Steve Ellcey <sje@cup.hp.com>
26592
26593 PR middle-end/34443
26594 * doc/extend.texi (section): Update description.
26595
26596 2009-03-03 H.J. Lu <hongjiu.lu@intel.com>
26597
26598 PR middle-end/39345
26599 * tree-inline.c (remapped_type): New.
26600 (can_be_nonlocal): Call remapped_type instead of remap_type.
26601
26602 2009-03-03 Jakub Jelinek <jakub@redhat.com>
26603
26604 PR fortran/39354
26605 * gimplify.c (goa_stabilize_expr): Handle tcc_comparison,
26606 TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR.
26607
26608 2009-03-03 Richard Guenther <rguenther@suse.de>
26609
26610 PR middle-end/39272
26611 * tree.c (tree_nonartificial_location): New function.
26612 * tree.h (tree_nonartificial_location): Declare.
26613 * builtins.c (expand_builtin_memory_chk): Provide location
26614 of the call location for artificial function pieces.
26615 (maybe_emit_chk_warning): Likewise.
26616 (maybe_emit_sprintf_chk_warning): Likewise.
26617 (maybe_emit_free_warning): Likewise.
26618 * expr.c (expand_expr_real_1): Likewise.
26619
26620 2009-03-03 Jakub Jelinek <jakub@redhat.com>
26621
26622 PR tree-optimization/39343
26623 * tree-ssa-ccp.c (maybe_fold_offset_to_address): Don't check if
26624 COMPONENT_REF t has ARRAY_TYPE.
26625
26626 2009-03-02 Sebastian Pop <sebastian.pop@amd.com>
26627
26628 PR middle-end/39335
26629 * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
26630 when the type precision of the induction variable should be
26631 larger than the type precision of nit.
26632 (gen_parallel_loop): Update use of canonicalize_loop_ivs.
26633 * graphite.c (graphite_loop_normal_form): Same.
26634 * tree-flow.h (canonicalize_loop_ivs): Update declaration.
26635
26636 2009-03-02 Uros Bizjak <ubizjak@gmail.com>
26637
26638 * config/i386/i386.md (ST?_REG, MM?_REG): New constants.
26639 (*call_1_rex64_ms_sysv): Use named constants instead of magic
26640 numbers to describe clobbered registers.
26641 (*call_value_0_rex64_ms_sysv): Ditto.
26642 * config/i386/mmx.md (mmx_emms): Ditto.
26643 (mmx_femms): Ditto.
26644
26645 2009-03-02 Richard Sandiford <rdsandiford@googlemail.com>
26646
26647 * config/mips/mips.c (mips_mdebug_abi_name): Fix the handling
26648 of ABI_64.
26649
26650 2009-03-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26651
26652 * config/spu/spu.c (TARGET_SECTION_TYPE_FLAGS): Define.
26653 (spu_section_type_flags): New function.
26654
26655 2009-03-02 Uros Bizjak <ubizjak@gmail.com>
26656
26657 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not copy
26658 reg_class_contents of FLOAT_REGS into a temporary.
26659
26660 2009-03-02 Richard Guenther <rguenther@suse.de>
26661 Ira Rosen <irar@il.ibm.com>
26662
26663 PR tree-optimization/39318
26664 * tree-vect-transform.c (vectorizable_call): Transfer the EH region
26665 information to the vectorized statement.
26666
26667 2009-03-01 Uros Bizjak <ubizjak@gmail.com>
26668
26669 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not shadow "i"
26670 variable. Use defined names instead of magic constants for REX SSE
26671 registers.
26672
26673 2009-03-01 Richard Guenther <rguenther@suse.de>
26674
26675 PR tree-optimization/39331
26676 * omp-low.c (lower_send_shared_vars): Do not receive new
26677 values for the reference of DECL_BY_REFERENCE parms or results.
26678
26679 2009-03-01 Jan Hubicka <jh@suse.cz>
26680
26681 PR debug/39267
26682 * tree.h (BLOCK_NONLOCALIZED_VARS, BLOCK_NUM_NONLOCALIZED_VARS,
26683 BLOCK_NONLOCALIZED_VAR): New macros.
26684 (tree_block): Add nonlocalized_vars.
26685 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die,
26686 gen_decl_die): Add origin argument. Allow generation of die with
26687 origin at hand only.
26688 (gen_member_die, gen_type_die_with_usage, force_decl_die,
26689 declare_in_namespace, gen_namescpace_die, dwarf2out_decl): Update use
26690 of gen_*.
26691 (gen_block_die): Fix checking for unused blocks.
26692 (process_scope_var): Break out from .... ; work with origins only.
26693 (decls_for_scope) ... here; process nonlocalized list.
26694 (dwarf2out_ignore_block): Look for nonlocalized vars.
26695 * tree-ssa-live.c (remove_unused_scope_block_p): Look for nonlocalized
26696 vars.
26697 (dump_scope_block): Dump them.
26698 * tree-inline.c (remap_decls): Handle nonlocalized vars.
26699 (remap_block): Likewise.
26700 (can_be_nonlocal): New predicate.
26701 (copy_bind_expr, copy_gimple_bind): Update use of remap_block.
26702
26703 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26704
26705 * configure: Regenerate.
26706
26707 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26708
26709 * optc-gen.awk: No need to duplicate option flags twice.
26710 Reuse help texts for duplicate options which do not have any.
26711
26712 * gcc.c (display_help): Document --version.
26713
26714 * gcc.c (main): If print_help_list and verbose_flag, ensure
26715 driver output comes before subprocess output.
26716
26717 * optc-gen.awk: Assign all remaining fields to help string,
26718 space-separated, for multi-line help in *.opt.
26719
26720 * doc/invoke.texi (Warning Options): -Wsync-nand is C/C++ only.
26721 -Wno-pedantic-ms-format is for MinGW targets only.
26722
26723 * doc/options.texi (Option file format): Fix bad indentation,
26724 restoring dropped sentence.
26725
26726 2009-02-28 Jan Hubicka <jh@suse.cz>
26727
26728 * tree-inline.c (tree_function_versioning): Output debug info.
26729
26730 2009-02-28 Jan Hubicka <jh@suse.cz>
26731
26732 PR debug/39267
26733 * tree-inline.c (setup_one_parameter): Do not copy propagate
26734 arguments when not optimizing.
26735
26736 2009-02-28 H.J. Lu <hongjiu.lu@intel.com>
26737
26738 PR target/39327
26739 * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
26740 (avx_addsubv4df3): Likewise.
26741 (*avx_addsubv4sf3): Likewise.
26742 (sse3_addsubv4sf3): Likewise.
26743 (*avx_addsubv2df3): Likewise.
26744 (sse3_addsubv2df3): Likewise.
26745 (avx_unpckhps256): Correct item selectors.
26746 (avx_unpcklps256): Likewise.
26747 (avx_unpckhpd256): Likewise.
26748 (avx_unpcklpd256): Likewise.
26749
26750 2009-02-28 Jan Hubicka <jh@suse.cz>
26751
26752 * tree-inline.c (expand_call_inline): Avoid duplicate declarations of
26753 static vars.
26754 (copy_arguments_for_versioning): If var is declared don't declare it.
26755 (tree_function_versioning): First setup substitutions and then copy
26756 args.
26757
26758 2009-02-27 Jan Hubicka <jh@suse.cz>
26759
26760 PR debug/39267
26761 * cgraph.h (varpool_output_debug_info): Remove.
26762 * cgraphunit.c (varpool_output_debug_info): Remove.
26763 * dwarf2out.c (deferred_locations_struct): New struct
26764 (deferred_locations): New type.
26765 (deferred_locations_list): New static var.
26766 (deffer_location): New function.
26767 (gen_variable_die): Use it.
26768 (decls_for_scope): Output info on local static vars.
26769 (dwarf2out_finish): Process deferred locations.
26770 * varpool.c (varpool_output_debug_info): Remove.
26771
26772 2009-02-27 Jan Hubicka <jh@suse.cz>
26773
26774 PR debug/39267
26775 * tree.h (TREE_PROTECTED): Fix comment.
26776 (BLOCK_HANDLER_BLOCK): Remove.
26777 (struct tree_block): Remove handler_block add body_block.
26778 (inlined_function_outer_scope_p): New.
26779 (is_body_block): Remove.
26780 * dbxout.c (dbxout_block): Remove BLOCK_HANDLER_BLOCK.
26781 * dwarf2out.c (is_inlined_entry_point): Remove.
26782 (add_high_low_attributes): Use inlined_function_outer_scope_p.
26783 (gen_block_die): Use is_inlined_entry_point check. Remove body block
26784 code.
26785 * langhooks.h (struct lang_hooks): Remove no_bodu_blocks.
26786 * gimplify.c (gimplify_expr): Gimplify body blocks.
26787 * tree-ssa-live.c (remove_unused_scope_block_p): Allow removing wrapper
26788 block with multiple subblocks.
26789 (dump_scope_block): Prettier output; dump more flags and info.
26790 (dump_scope_blocks): New.
26791 (remove_unused_locals): Use dump_scope_blocks.
26792 * tree-flow.h (dump_scope_blocks): Declare.
26793 * tree-cfg.c (execute_build_cfg): Dump scope blocks.
26794 * stmt.c (is_body_block): Remove.
26795 * tree-inline.c (remap_block): Copy BODY_BLOCK info.
26796 * langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): Remove.
26797
26798 2009-02-27 Sebastian Pop <sebastian.pop@amd.com>
26799
26800 PR middle-end/39308
26801 * graphite.c (graphite_loop_normal_form): Do not call
26802 number_of_iterations_exit from a gcc_assert.
26803
26804 2009-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26805
26806 * config/s390/s390.c (s390_swap_cmp): Look for conditional
26807 jumps if COND is NULL.
26808 (find_cond_jump): New function.
26809 (s390_z10_optimize_cmp): Handling for reg-reg compares added.
26810 * config/s390/s390.md: Remove z10_cobra attribute value.
26811
26812 2009-02-26 Uros Bizjak <ubizjak@gmail.com>
26813
26814 * config/alpha/alpha.h (alpha_expand_mov): Return false if
26815 force_const_mem returns NULL_RTX.
26816
26817 2009-02-26 Jan Hubicka <jh@suse.cz>
26818
26819 PR debug/39267
26820 * cgraph.h (varpool_output_debug_info): Remove.
26821 * cgraphunit.c (varpool_output_debug_info): Remove.
26822 * dwarf2out.c (deferred_locations_struct): New struct
26823 (deferred_locations): New type.
26824 (deferred_locations_list): New static var.
26825 (deffer_location): New function.
26826 (gen_variable_die): Use it.
26827 (decls_for_scope): Output info on local static vars.
26828 (dwarf2out_finish): Process deferred locations.
26829 * varpool.c (varpool_output_debug_info): Remove.
26830
26831 2009-02-25 H.J. Lu <hongjiu.lu@intel.com>
26832
26833 PR rtl-optimization/39241
26834 * jump.c (rtx_renumbered_equal_p): Remove 2 superfluous calls
26835 to subreg_offset_representable_p.
26836
26837 2009-02-25 Paolo Bonzini <bonzini@gnu.org>
26838
26839 * regmove.c (regmove_optimize): Conform to struct rtl_opt_pass
26840 execute function prototype. Get f and nregs from max_reg_num
26841 and get_insns. Remove the first backward pass as it's dead,
26842 guard the forward pass by flag_expensive_optimizations.
26843 (rest_of_handle_regmove): Delete.
26844 (pass_regmove): Replace it with regmove_optimize.
26845
26846 2009-02-25 Martin Jambor <mjambor@suse.cz>
26847
26848 PR tree-optimization/39259
26849 * tree-inline.c (initialize_cfun): Remove asserts for calls_setjmp and
26850 calls_alloca function flags.
26851 (copy_bb): Set calls_setjmp and alls_alloca function flags if such
26852 calls are detected.
26853
26854 2009-02-25 Paolo Bonzini <bonzini@gnu.org>
26855
26856 * regmove.c (discover_flags_reg, flags_set_1, mark_flags_life_zones,
26857 flags_set_1_rtx, flags_set_1_set): Delete.
26858 (regmove_optimize): Do not call mark_flags_life_zones.
26859
26860 2009-02-24 Julian Brown <julian@codesourcery.com>
26861
26862 PR target/35965
26863 * config/arm/arm.c (require_pic_register): Only set
26864 cfun->machine->pic_reg once per function.
26865
26866 2009-02-24 Sandra Loosemore <sandra@codesourcery.com>
26867
26868 * doc/invoke.texi (Link Options): Document an easier way to pass
26869 options that take arguments to the GNU linker using -Xlinker and -Wl.
26870
26871 2009-02-24 Steve Ellcey <sje@cup.hp.com>
26872
26873 PR target/33785
26874 * doc/tm.texi (TARGET_C99_FUNCTIONS): Fix description.
26875
26876 2009-02-24 Richard Guenther <rguenther@suse.de>
26877
26878 PR debug/39285
26879 * dwarf2out.c (gen_enumeration_type_die): Handle CONST_DECLs.
26880
26881 2009-02-24 Richard Guenther <rguenther@suse.de>
26882 Zdenek Dvorak <ook@ucw.cz>
26883
26884 PR tree-optimization/39233
26885 * tree-ssa-loop-ivopts.c (add_candidate_1): Do not except pointers
26886 from converting them to a generic type.
26887
26888 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
26889
26890 PR tree-optimization/39260
26891 * graphite.c (harmful_stmt_in_bb): Stop a SCoP when the basic block
26892 contains a condition with a real type.
26893 (build_scop_conditions_1): Conditions are always last_stmt of a bb.
26894
26895 2009-02-23 Jason Merrill <jason@redhat.com>
26896
26897 PR c++/38880
26898 * varasm.c (initializer_constant_valid_p) [PLUS_EXPR]: Check
26899 narrowing_initializer_constant_valid_p.
26900 (narrowing_initializer_constant_valid_p): Don't return
26901 null_pointer_node for adding a pointer to itself.
26902
26903 2009-02-23 Jan Hubicka <jh@suse.cz>
26904
26905 PR c/12245
26906 * ggc.h (htab_create_ggc): Use ggc_free to free hashtable when
26907 resizing.
26908
26909 2009-02-23 Jan Hubicka <jh@suse.cz>
26910
26911 PR tree-optimization/37709
26912 * tree.c (block_ultimate_origin): Move here from dwarf2out.
26913 * tree.h (block_ultimate_origin): Declare.
26914 * dwarf2out.c (block_ultimate_origin): Move to tree.c
26915 * tree-ssa-live.c (remove_unused_scope_block_p):
26916 Eliminate blocks containig no instructions nor live variables nor
26917 nested blocks.
26918 (dump_scope_block): New function.
26919 (remove_unused_locals): Enable removal of dead blocks by default;
26920 enable dumping at TDF_DETAILS.
26921
26922 2009-02-21 H.J. Lu <hongjiu.lu@intel.com>
26923
26924 * config/i386/i386.c (classify_argument): Don't allow COImode
26925 and OImode.
26926 (function_arg_advance_32): Don't allow OImode.
26927 (function_arg_32): Likewise.
26928 (function_value_32): Likewise.
26929 (return_in_memory_32): Likewise.
26930 (function_arg_64): Remove OImode comment.
26931
26932 2009-02-21 H.J. Lu <hongjiu.lu@intel.com>
26933
26934 PR target/39261
26935 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
26936 ix86_expand_vector_set for V4DImode in 64bit mode only.
26937 (ix86_expand_vector_init_one_var): Likewise.
26938
26939 2009-02-21 Sebastian Pop <sebastian.pop@amd.com>
26940
26941 * graphite.c (graphite_trans_loop_block): Adjust tile size to 51.
26942
26943 2009-02-21 Richard Sandiford <rdsandiford@googlemail.com>
26944
26945 PR bootstrap/39257
26946 * loop-iv.c: Revert last change.
26947 * emit-rtl.c: Likewise.
26948
26949 2009-02-21 H.J. Lu <hongjiu.lu@intel.com>
26950
26951 PR target/39256
26952 * config/i386/i386.c (type_natural_mode): Remove an extra
26953 space in the warning message.
26954 (function_value_32): Handle 32-byte vector modes.
26955 (return_in_memory_32): Likewise.
26956
26957 2009-02-21 Richard Sandiford <rdsandiford@googlemail.com>
26958
26959 * loop-iv.c (truncate_value): New function.
26960 (iv_subreg, get_iv_value, iv_number_of_iterations): Use it instead
26961 of lowpart_subreg.
26962 (lowpart_subreg): Move to...
26963 * emit-rtl.c: ...here.
26964
26965 2009-02-21 Danny Smith <dannysmith@users.sourceforge.net>
26966
26967 * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Revert
26968 accidental and undocumented change at revision 140860.
26969
26970 2009-02-21 Joseph Myers <joseph@codesourcery.com>
26971
26972 * config/arm/arm.c (arm_gimplify_va_arg_expr): Update prototype to
26973 take gimple_seq * arguments.
26974 (arm_mangle_type): Use CONST_CAST_TREE on type argument passed to
26975 types_compatible_p langhook.
26976
26977 2009-02-20 Mark Mitchell <mark@codesourcery.com>
26978 Joseph Myers <joseph@codesourcery.com>
26979
26980 * config/arm/arm.c (arm_builtin_va_list): New function.
26981 (arm_expand_builtin_va_start): Likewise.
26982 (arm_gimplify_va_arg_expr): Likewise.
26983 (TARGET_BUILD_BUILTIN_VA_LIST): Define.
26984 (TARGET_BUILD_BUILTIN_VA_START): Likewise.
26985 (TARGET_BUILD_BUILTIN_VA_ARG_EXPR): Likewise.
26986 (va_list_type): New variable.
26987 (arm_mangle_type): Mangle va_list_type appropriately.
26988
26989 2009-02-20 Jakub Jelinek <jakub@redhat.com>
26990
26991 PR middle-end/39157
26992 * Makefile.in (loop-invariant.o): Depend on $(PARAMS_H).
26993 * params.h (LOOP_INVARIANT_MAX_BBS_IN_LOOP): Define.
26994 * params.def (loop-invariant-max-bbs-in-loop): New parameter.
26995 * opts.c (decode_options): Set loop-invariant-max-bbs-in-loop
26996 parameter to 1000 for -O1 by default.
26997 * doc/invoke.texi (loop-invariant-max-bbs-in-loop): Document new
26998 parameter.
26999 * loop-invariant.c: Include params.h.
27000 (move_loop_invariants): Don't call move_single_loop_invariants on
27001 very large loops.
27002
27003 2009-02-20 Jaka Mocnik <jaka@xlab.si>
27004
27005 * calls.c (emit_library_call_value_1): Use slot_offset instead of
27006 offset when calculating bounds for indexing stack_usage_map. Fixes
27007 a buffer overflow with certain target setups.
27008
27009 2009-02-20 Jakub Jelinek <jakub@redhat.com>
27010
27011 PR target/39240
27012 * calls.c (expand_call): Clear try_tail_call if caller and callee
27013 disagree in promotion of function return value.
27014
27015 2009-02-19 Jakub Jelinek <jakub@redhat.com>
27016
27017 PR target/39175
27018 * c-common.c (c_determine_visibility): If visibility changed and
27019 DECL_RTL has been already set, call make_decl_rtl to update symbol
27020 flags.
27021
27022 2009-02-19 H.J. Lu <hongjiu.lu@intel.com>
27023
27024 PR c++/39188
27025 * varasm.c (assemble_variable): Don't check DECL_NAME when
27026 globalizing a variable.
27027
27028 2009-02-19 Joseph Myers <joseph@codesourcery.com>
27029
27030 PR c/38483
27031 * builtins.c (gimplify_va_arg_expr): Evaluate the va_list
27032 expression before any __builtin_trap call.
27033 * c-typeck.c (build_function_call): Convert and check function
27034 arguments before generating a call to a trap. Evaluate the
27035 function arguments before the trap.
27036
27037 2009-02-19 Uros Bizjak <ubizjak@gmail.com>
27038
27039 PR target/39228
27040 * config/i386/i386.md (isinfxf2): Split from isinf<mode>2.
27041 (UNSPEC_FXAM_MEM): New unspec.
27042 (fxam<mode>2_i387_with_temp): New insn and split pattern.
27043 (isinf<mode>2): Use MODEF mode iterator. Force operand[1] through
27044 memory using fxam<mode>2_i387_with_temp to remove excess precision.
27045
27046 2009-02-19 Richard Guenther <rguenther@suse.de>
27047
27048 PR tree-optimization/39207
27049 PR tree-optimization/39074
27050 * tree-ssa-structalias.c (storedanything_id, var_storedanything,
27051 storedanything_tree): New.
27052 (do_ds_constraint): Simplify ANYTHING shortcutting. Update
27053 the STOREDANYTHING solution if the lhs solution contains ANYTHING.
27054 (build_succ_graph): Add edges from STOREDANYTHING to all
27055 non-direct nodes.
27056 (init_base_vars): Initialize STOREDANYTHING.
27057 (compute_points_to_sets): Free substitution info after
27058 building the succ graph.
27059 (ipa_pta_execute): Likewise.
27060
27061 * tree-ssa-structalias.c (struct variable_info): Add may_have_pointers
27062 field.
27063 (do_ds_constraint): Do not add to special var or non-pointer
27064 field solutions.
27065 (type_could_have_pointers): Split out from ...
27066 (could_have_pointers): ... here. For arrays use the element type.
27067 (create_variable_info_for): Initialize may_have_pointers.
27068 (new_var_info): Likewise.
27069 (handle_lhs_call): Make the HEAP variable unknown-sized.
27070 (intra_create_variable_infos): Use a type with pointers for
27071 PARM_NOALIAS, make it unknown-sized.
27072
27073 2009-02-18 H.J. Lu <hongjiu.lu@intel.com>
27074
27075 PR target/39224
27076 * config/i386/i386.c (ix86_return_in_memory): Properly check ABI.
27077
27078 2009-02-18 Jason Merrill <jason@redhat.com>
27079
27080 PR target/39179
27081 * tree-ssa-ccp.c (get_symbol_constant_value): Don't assume zero
27082 value if DECL_EXTERNAL.
27083 * tree-sra.c (sra_walk_gimple_assign): Likewise.
27084 * target.h (gcc_target::binds_local_p): Clarify "module".
27085 * tree.h (TREE_PUBLIC): Clarify "module".
27086
27087 2009-02-17 Xuepeng Guo <xuepeng.guo@intel.com>
27088
27089 PR target/38891
27090 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move the hunk of
27091 initialization for MS_ABI prior to the hunk of !TARGET_MMX.
27092
27093 2009-02-17 H.J. Lu <hongjiu.lu@intel.com>
27094
27095 PR target/39082
27096 * c.opt (Wabi): Support C and ObjC.
27097 (Wpsabi): New.
27098
27099 * c-opts.c (c_common_handle_option): Handle OPT_Wabi.
27100
27101 * config/i386/i386.c (classify_argument): Warn once about the ABI
27102 change when passing union with long double.
27103
27104 * doc/invoke.texi: Update -Wabi for warning psABI changes.
27105
27106 2009-02-18 Joseph Myers <joseph@codesourcery.com>
27107
27108 PR c/35447
27109 * c-parser.c (c_parser_compound_statement): Always enter and leave
27110 a scope.
27111
27112 2009-02-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
27113
27114 PR target/34587
27115 * config/darwin.h (SUPPORTS_INIT_PRIORITY): Define.
27116
27117 2009-02-18 Jakub Jelinek <jakub@redhat.com>
27118
27119 PR tree-optimization/36922
27120 * tree-data-ref.c (initialize_matrix_A): Handle BIT_NOT_EXPR.
27121 * tree-scalar-evolution.c (interpret_rhs_expr, instantiate_scev_1):
27122 Likewise.
27123
27124 2009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
27125
27126 * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
27127 to 0 for EABI64.
27128
27129 2009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
27130
27131 * config/mips/mips.md (type): Reclassify lui_movf as "unknown".
27132
27133 2009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
27134
27135 * config/mips/mips.c (mips_gimplify_va_arg_expr): Fix invalid
27136 tree sharing.
27137
27138 2009-02-17 Ruan Beihong <ruanbeihong@gmail.com>
27139 Richard Sandiford <rdsandiford@googlemail.com>
27140
27141 * config/mips/mips.c (CODE_FOR_loongson_biadd): Delete.
27142 * config/mips/loongson.md (reduc_uplus_<mode>): Rename to...
27143 (loongson_biadd): ...this.
27144
27145 2009-02-17 Richard Guenther <rguenther@suse.de>
27146
27147 PR tree-optimization/39202
27148 * tree-ssa-structalias.c (do_structure_copy): Before collapsing
27149 a var make sure to follow existing collapses.
27150
27151 2009-02-17 Richard Guenther <rguenther@suse.de>
27152
27153 PR middle-end/39214
27154 * langhooks.c (lhd_print_error_function): Check for NULL block.
27155
27156 2009-02-17 Richard Guenther <rguenther@suse.de>
27157
27158 PR tree-optimization/39204
27159 * tree-ssa-pre.c (phi_translate_1): Lookup the value-number
27160 of the PHI arg.
27161
27162 2009-02-17 Uros Bizjak <ubizjak@gmail.com>
27163
27164 * config/soft-fp/double.h: Update from glibc CVS.
27165
27166 2009-02-17 Richard Guenther <rguenther@suse.de>
27167
27168 PR tree-optimization/39207
27169 * tree-ssa-structalias.c (find_what_p_points_to): Do not emit
27170 strict-aliasing warnings for pointers pointing to NULL.
27171
27172 2009-02-16 Joseph Myers <joseph@codesourcery.com>
27173
27174 PR c/35446
27175 * c-parser.c (c_parser_braced_init): Call pop_init_level when
27176 skipping until next close brace.
27177
27178 2009-02-16 H.J. Lu <hongjiu.lu@intel.com>
27179
27180 PR target/37049
27181 * config/i386/i386.c (ix86_expand_push): Set memory alignment
27182 to function argument boundary.
27183
27184 2009-02-16 Hariharan Sandanagobalane <hariharan@picochip.com>
27185
27186 * config/picochip/picochip.md (lea_add): Allow any nonimmediate
27187 in the lea_add. Reload eventually constraints it properly.
27188 * config/picochip/constraints.md: Remove the target constraint
27189 "b", since it is not needed anymore.
27190
27191 2009-02-16 Jakub Jelinek <jakub@redhat.com>
27192
27193 * gthr-dce.h: Uglify function parameter and local variable names.
27194 * gthr-gnat.h: Likewise.
27195 * gthr-mipssde.h: Likewise.
27196 * gthr-nks.h: Likewise.
27197 * gthr-posix95.h: Likewise.
27198 * gthr-posix.h: Likewise.
27199 * gthr-rtems.h: Likewise.
27200 * gthr-single.h: Likewise.
27201 * gthr-solaris.h: Likewise.
27202 * gthr-tpf.h: Likewise.
27203 * gthr-vxworks.h: Likewise.
27204 * gthr-win32.h: Likewise.
27205
27206 2009-02-15 H.J. Lu <hongjiu.lu@intel.com>
27207
27208 PR target/39196
27209 * config/i386/i386.md: Restrict the new peephole2 to move
27210 between MMX/SSE registers.
27211
27212 2009-02-15 Richard Guenther <rguenther@suse.de>
27213
27214 Revert
27215 2009-02-13 Richard Guenther <rguenther@suse.de>
27216
27217 * configure.ac: Enable LFS.
27218 * configure: Re-generate.
27219 * config.in: Likewise.
27220
27221 2009-02-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27222
27223 * config/spu/spu_internals.h (spu_sr, spu_sra, spu_srqw,
27224 spu_srqwbyte, spu_srqwbytebc): Define.
27225 * config/spu/spu-builtins.def (spu_sr, spu_sra, spu_srqw,
27226 spu_srqwbyte, spu_srqwbytebc): New overloaded builtins.
27227 * config/spu/spu.md ("shrqbybi_<mode>", "shrqbi_<mode>",
27228 "shrqby_<mode>"): New insn-and-split patterns.
27229 * config/spu/spu.c (expand_builtin_args): Determine and return
27230 number of operands using spu_builtin_description data.
27231 (spu_expand_builtin_1): Use it.
27232
27233 2009-02-13 Steve Ellcey <sje@cup.hp.com>
27234
27235 PR target/38056
27236 * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Check
27237 TARGET_CONST_GP.
27238
27239 2009-02-13 H.J. Lu <hongjiu.lu@intel.com>
27240
27241 PR target/39149
27242 * config/i386/i386.c (override_options): Correct warning
27243 messages for -malign-loops, -malign-jumps and -malign-functions.
27244
27245 2009-02-13 H.J. Lu <hongjiu.lu@intel.com>
27246
27247 PR target/39152
27248 * config/i386/i386.md: Restrict the new peephole2 to move
27249 between the general purpose registers.
27250
27251 2009-02-13 H.J. Lu <hongjiu.lu@intel.com>
27252
27253 PR target/39162
27254 * config/i386/i386.c (type_natural_mode): Add a new argument.
27255 Return the original mode and warn ABI change if vector size is 32byte.
27256 (function_arg_advance): Updated.
27257 (function_arg): Likewise.
27258 (ix86_function_value): Likewise.
27259 (ix86_return_in_memory): Likewise.
27260 (ix86_sol10_return_in_memory): Likewise.
27261 (ix86_gimplify_va_arg): Likewise.
27262 (function_arg_32): Don't warn ABX ABI change here.
27263 (function_arg_64): Likewise.
27264
27265 2009-02-13 Bernd Schmidt <bernd.schmidt@analog.com>
27266
27267 * loop-iv.c (implies_p): In the final case, test that operands 0
27268 of the two comparisons match.
27269
27270 * config/bfin/bfin.c (find_prev_insn_start): New function.
27271 (bfin_optimize_loop): Use it in some cases instead of PREV_INSN.
27272 (find_next_insn_start): Move.
27273
27274 2009-02-13 Richard Guenther <rguenther@suse.de>
27275
27276 * configure.ac: Enable LFS.
27277 * configure: Re-generate.
27278 * config.in: Likewise.
27279
27280 2009-02-13 Joseph Myers <joseph@codesourcery.com>
27281
27282 PR c/35444
27283 * c-parser.c (c_parser_parms_list_declarator): Discard pending
27284 sizes on syntax error after some arguments have been parsed.
27285
27286 2009-02-12 Jakub Jelinek <jakub@redhat.com>
27287
27288 * doc/invoke.texi (-fira): Remove.
27289
27290 2009-02-12 H.J. Lu <hongjiu.lu@intel.com>
27291
27292 * caller-save.c: Replace regclass.c with reginfo.c in comments.
27293 * recog.c: Likewise.
27294 * rtl.h: Likewise.
27295
27296 2009-02-12 Uros Bizjak <ubizjak@gmail.com>
27297
27298 * longlong.h (sub_ddmmss): New for ia64. Ported from GMP 4.2.
27299 (umul_ppmm): Likewise.
27300 (count_leading_zeros): Likewise.
27301 (count_trailing_zeros): Likewise.
27302 (UMUL_TIME): Likewise.
27303
27304 2009-02-12 H.J. Lu <hongjiu.lu@intel.com>
27305
27306 * config.gcc (ia64*-*-linux*): Add ia64/t-fprules-softfp and
27307 soft-fp/t-softfp to tmake_file.
27308
27309 * config/ia64/ia64.c (ia64_soft_fp_init_libfuncs): New.
27310 (ia64_expand_compare): Use HPUX library for TFmode only for HPUX.
27311 (ia64_builtins) [IA64_BUILTIN_COPYSIGNQ, IA64_BUILTIN_FABSQ,
27312 IA64_BUILTIN_INFQ]: New.
27313 (ia64_init_builtins): Initialize __builtin_infq,
27314 __builtin_fabsq and __builtin_copysignq if not HPUX.
27315 (ia64_expand_builtin): Handle IA64_BUILTIN_COPYSIGNQ,
27316 IA64_BUILTIN_FABSQ and IA64_BUILTIN_INFQ.
27317
27318 * config/ia64/lib1funcs.asm (__divtf3): Define only if
27319 SHARED is defined.
27320 (__fixtfti): Likewise.
27321 (__fixunstfti): Likewise.
27322 (__floattitf): Likewise.
27323
27324 * config/ia64/libgcc-glibc.ver: New.
27325 * config/ia64/t-fprules-softfp: Likewise.
27326 * config/ia64/sfp-machine.h: Likewise.
27327
27328 * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): New.
27329 (LIBGCC2_TF_CEXT): Likewise.
27330 (TF_SIZE): Likewise.
27331 (TARGET_INIT_LIBFUNCS): Likewise.
27332
27333 * config/ia64/t-glibc (SHLINB_MAPFILES):
27334 Add $(srcdir)/config/ia64/libgcc-glibc.ver.
27335
27336 2009-02-12 H.J. Lu <hongjiu.lu@intel.com>
27337
27338 * config/i386/i386.c (construct_container): Rewrite processing
27339 BLKmode with X86_64_SSE_CLASS.
27340
27341 2009-02-12 Paolo Bonzini <bonzini@gnu.org>
27342
27343 PR target/39152
27344 * config/i386/i386.md: Replace simplify_replace_rtx with
27345 replace_rtx in the new peephole2.
27346
27347 2009-02-12 Nathan Sidwell <nathan@codesourcery.com>
27348
27349 * doc/invoke.texi (Optimize Options): Stop claiming inlining and
27350 loop unrolling do not happen at -O2.
27351
27352 2009-02-12 Michael Matz <matz@suse.de>
27353
27354 * gcc.c (ASM_DEBUG_SPEC): Check for -g0.
27355
27356 2009-02-12 Jakub Jelinek <jakub@redhat.com>
27357
27358 * dwarf2out.c (dwarf2out_finish): Force output of comp_unit_die
27359 for -g3.
27360
27361 2009-02-12 Ben Elliston <bje@au.ibm.com>
27362
27363 * config/rs6000/rs6000.md (allocate_stack): Use _stack form of
27364 patterns when updating the back chain. Missed in the 2009-02-10
27365 change.
27366
27367 2009-02-11 Janis Johnson <janis187@us.ibm.com>
27368
27369 * doc/extend.texi (Decimal Floating Types): Update identifier of
27370 draft TR and list of missing support.
27371
27372 2009-02-11 Jakub Jelinek <jakub@redhat.com>
27373
27374 PR middle-end/39154
27375 * gimplify.c (omp_notice_variable): If adding GOVD_SEEN
27376 bit to variable length decl's flags, add it also to its
27377 pointer replacement variable.
27378
27379 2009-02-11 Uros Bizjak <ubizjak@gmail.com>
27380 Jakub Jelinek <jakub@redhat.com>
27381
27382 PR target/39118
27383 * config/i386/i386.md (UNSPEC_MEMORY_BLOCKAGE): New constant.
27384 (memory_blockage): New expander.
27385 (*memory_blockage): New insn pattern.
27386 * config/i386/i386.c (ix86_expand_prologue): Use memory_blockage
27387 instead of general blockage at the end of function prologue when
27388 frame pointer is used to access red zone area. Do not emit blockage
27389 when profiling, it is emitted in generic code.
27390 (ix86_expand_epilogue): Emit memory_blockage at the beginning of
27391 function epilogue when frame pointer is used to access red zone area.
27392
27393 2009-02-11 Paolo Bonzini <bonzini@gnu.org>
27394
27395 PR target/38824
27396 * config/i386/i386.md: Add two new peephole2 to avoid mov followed
27397 by arithmetic with memory operands.
27398 * config/i386/predicates.md (commutative_operator): New.
27399
27400 2009-02-10 Janis Johnson <janis187@us.ibm.com>
27401
27402 * doc/extend.texi (Fixed-Point Types): Break long paragraphs into
27403 bulleted lists.
27404
27405 2009-02-10 Eric Botcazou <ebotcazou@adacore.com>
27406
27407 * alias.h (record_alias_subset): Declare.
27408 * alias.c (record_alias_subset): Make global.
27409
27410 2009-02-10 Nick Clifton <nickc@redhat.com>
27411
27412 * tree-parloops.c: Change license to GPLv3.
27413 * ipa-struct-reorg.c: Change license to GPLv3.
27414 * ipa-struct-reorg.h: Change license to GPLv3.
27415
27416 2009-02-10 Steve Ellcey <sje@cup.hp.com>
27417
27418 PR c/39084
27419 * c-decl.c (start_struct): Return NULL on error.
27420
27421 2009-02-10 Jakub Jelinek <jakub@redhat.com>
27422
27423 PR middle-end/39124
27424 * cfgloopmanip.c (remove_path): Call remove_bbs after
27425 cancel_loop_tree, not before it.
27426
27427 PR target/39139
27428 * function.h (struct function): Add has_local_explicit_reg_vars bit.
27429 * gimplify.c (gimplify_bind_expr): Set it if local DECL_HARD_REGISTER
27430 VAR_DECLs were seen.
27431 * tree-ssa-live.c (remove_unused_locals): Recompute
27432 cfun->has_local_explicit_reg_vars.
27433 * tree-ssa-sink.c (statement_sink_location): Don't sink BLKmode
27434 copies or clearings if cfun->has_local_explicit_reg_vars.
27435
27436 2009-02-10 Uros Bizjak <ubizjak@gmail.com>
27437
27438 PR target/39118
27439 * config/i386/i386.c (expand_prologue): Emit blockage at the end
27440 of function prologue when frame pointer is used to access
27441 red zone area.
27442
27443 2009-02-10 Richard Guenther <rguenther@suse.de>
27444
27445 PR middle-end/39127
27446 * gimplify.c (gimple_regimplify_operands): Always look if
27447 we need to create a temporary.
27448
27449 2009-02-10 Richard Guenther <rguenther@suse.de>
27450
27451 PR tree-optimization/39132
27452 * tree-loop-distribution.c (todo): New global var.
27453 (generate_memset_zero): Trigger TODO_rebuild_alias.
27454 (tree_loop_distribution): Return todo.
27455
27456 2009-02-10 H.J. Lu <hongjiu.lu@intel.com>
27457
27458 PR target/39119
27459 * config/i386/i386.c (x86_64_reg_class): Remove X86_64_AVX_CLASS.
27460 (x86_64_reg_class_name): Removed.
27461 (classify_argument): Return 0 if bytes > 32. Return 0 if the
27462 first one isn't X86_64_SSE_CLASS or any other ones aren't
27463 X86_64_SSEUP_CLASS when size > 16bytes. Don't turn
27464 X86_64_SSEUP_CLASS into X86_64_SSE_CLASS if the preceded one
27465 is X86_64_SSEUP_CLASS. Set AVX modes to 1 X86_64_SSE_CLASS
27466 and 3 X86_64_SSEUP_CLASS.
27467 (construct_container): Remove X86_64_AVX_CLASS. Handle 4
27468 registers with 1 X86_64_SSE_CLASS and 3 X86_64_SSEUP_CLASS.
27469
27470 2009-02-10 Ben Elliston <bje@au.ibm.com>
27471
27472 * config/rs6000/rs6000.md (allocate_stack): Always use an update
27473 form instruction to update the stack back chain word, even if the
27474 user has disabled the generation of update instructions.
27475 (movdi_<mode>_update_stack): New.
27476 (movsi_update_stack): Likewise.
27477 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Likewise,
27478 always use an update form instruction to update the stack back
27479 chain word.
27480
27481 2009-02-09 Sebastian Pop <sebastian.pop@amd.com>
27482
27483 PR middle-end/38953
27484 * graphite.c (if_region_set_false_region): After moving a region in
27485 the false branch of a condition, remove the empty dummy basic block.
27486 (gloog): Remove wrong fix for PR38953.
27487
27488 2009-02-09 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27489
27490 * config/spu/spu.c (array_to_constant): Fix (latent) wrong-code
27491 generation due to implicit sign extension.
27492
27493 2009-02-09 Eric Botcazou <ebotcazou@adacore.com>
27494
27495 PR middle-end/38981
27496 * tree-ssa-coalesce.c (add_coalesce): Cap the costs of coalesce pairs
27497 at MUST_COALESCE_COST-1 instead of MUST_COALESCE_COST.
27498
27499 2009-02-09 Richard Guenther <rguenther@suse.de>
27500
27501 PR middle-end/35202
27502 * convert.c (convert_to_real): Disable (float)fn((double)x)
27503 to fnf(x) conversion if errno differences may occur and
27504 -fmath-errno is set.
27505
27506 2009-02-07 Anatoly Sokolov <aesok@post.ru>
27507
27508 * config/avr/avr.c (avr_mcu_t): Add ata6289 device.
27509 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
27510 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
27511
27512 2009-02-06 Joseph Myers <joseph@codesourcery.com>
27513
27514 PR c/35434
27515 * c-common.c (handle_alias_attribute): Disallow attribute for
27516 anything not a FUNCTION_DECL or VAR_DECL.
27517
27518 2009-02-06 Janis Johnson <janis187@us.ibm.com>
27519
27520 PR c/39035
27521 * real.c (do_compare): Special-case compare of zero against
27522 decimal float value.
27523
27524 2009-02-06 Joseph Myers <joseph@codesourcery.com>
27525
27526 PR c/36432
27527 * c-decl.c (grokdeclarator): Don't treat [] declarators in fields
27528 as indicating flexible array members unless the field itself is
27529 being declarared as the incomplete array.
27530
27531 2009-02-06 Jan Hubicka <jh@suse.cz>
27532
27533 PR tree-optimization/38844
27534 * ipa-inline.c (try_inline): Stop inlining recursion when edge
27535 is already inlined.
27536
27537 2009-02-06 Richard Guenther <rguenther@suse.de>
27538
27539 PR middle-end/38977
27540 * tree-cfg.c (need_fake_edge_p): Force a fake edge for
27541 fork because we may expand it as __gcov_fork.
27542
27543 2009-02-06 Nick Clifton <nickc@redhat.com>
27544
27545 * config/m32c/m32c.h (PCC_BITFIELD_TYPE_MATTERS): Define to zero.
27546
27547 2009-02-06 Paolo Bonzini <bonzini@gnu.org>
27548
27549 PR tree-optimization/35659
27550 * tree-ssa-sccvn.c (vn_constant_eq, vn_reference_eq, vn_nary_op_eq
27551 vn_phi_eq): Shortcut if hashcode does not match.
27552 (vn_reference_op_compute_hash): Do not call iterative_hash_expr for
27553 NULL operands.
27554 * tree-ssa-pre.c (pre_expr_hash): Look at hashcode if available,
27555 and avoid iterative_hash_expr.
27556 (FOR_EACH_VALUE_ID_IN_SET): New.
27557 (value_id_compare): Remove.
27558 (sorted_array_from_bitmap_set): Use FOR_EACH_VALUE_ID_IN_SET to
27559 sort expressions by value id.
27560
27561 2009-02-05 Kaz Kojima <kkojima@gcc.gnu.org>
27562
27563 PR target/38991
27564 * config/sh/predicates.md (general_movsrc_operand): Don't check
27565 the subreg of system registers here.
27566
27567 2009-02-05 Jakub Jelinek <jakub@redhat.com>
27568
27569 PR c++/39106
27570 * cgraphunit.c (cgraph_function_versioning): Clear also DECL_VIRTUAL_P
27571 on the copied decl.
27572
27573 2009-02-05 Paolo Bonzini <bonzini@gnu.org>
27574
27575 PR rtl-optimization/39110
27576 * rtlanal.c (rtx_addr_can_trap_p_1): Shortcut unaligned
27577 addresses, not aligned ones.
27578
27579 2009-02-05 Daniel Berlin <dberlin@dberlin.org>
27580 Richard Guenther <rguenther@suse.de>
27581
27582 PR tree-optimization/39100
27583 * tree-ssa-structalias.c (do_ds_constraint): Actually do what the
27584 comment says and add edges.
27585
27586 2009-02-05 Joseph Myers <joseph@codesourcery.com>
27587
27588 PR c/35435
27589 * c-common.c (handle_tls_model_attribute): Ignore attribute for
27590 non-VAR_DECLs without checking DECL_THREAD_LOCAL_P.
27591
27592 2009-02-04 Tobias Grosser <grosser@fim.uni-passau.de>
27593
27594 * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use,
27595 sese_build_livein_liveouts_bb, sese_build_livein_liveouts,
27596 register_bb_in_sese, new_sese, free_sese): Moved.
27597 (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains,
27598 outermost_loop_in_scop, build_scop_iteration_domain,
27599 expand_scalar_variables_ssa_name, get_vdef_before_scop,
27600 limit_scops): Use bb_in_sese_p instead of bb_in_scop_p.
27601 Use loop_in_sese_p instead of loop_in_scop_p.
27602 (new_graphite_bb, gloog): Do not initialize SCOP_BBS_B.
27603 (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP and SCOP_BBS_B.
27604 (scopdet_basic_block_info): Fix bug in scop detection.
27605 (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
27606 eq_loop_to_cloog_loop): Remove.
27607 (nb_loops_around_loop_in_scop, nb_loop
27608 ref_nb_loops): Moved here...
27609 * graphite.h (ref_nb_loops): ... from here.
27610 (struct scop): Remove bbs_b bitmap and loop2cloog_loop.
27611 (loop_domain_dim, loop_iteration_vector_dim): Remove.
27612 (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed.
27613
27614 2009-02-04 Paolo Bonzini <bonzini@gnu.org>
27615 Hans-Peter Nilsson <hp@axis.com>
27616
27617 PR rtl-optimization/37889
27618 * rtlanal.c (rtx_addr_can_trap_p_1): Add offset and size arguments.
27619 Move offset handling from PLUS to before the switch. Use new
27620 arguments when considering SYMBOL_REFs too.
27621 (rtx_addr_can_trap_p): Pass dummy offset and size.
27622 (enum may_trap_p_flags): Remove.
27623 (may_trap_p_1): Pass size from MEM_SIZE.
27624
27625 PR rtl-optimization/38921
27626 * loop-invariant.c (find_invariant_insn): Use may_trap_or_fault_p.
27627 * rtl.h (may_trap_after_code_motion_p): Delete prototype.
27628 * rtlanal.c (may_trap_after_code_motion_p): Delete.
27629 (may_trap_p, may_trap_or_fault_p): Pass 0/1 as flags.
27630
27631 2009-02-04 H.J. Lu <hongjiu.lu@intel.com>
27632
27633 AVX Programming Reference (January, 2009)
27634 * config/i386/sse.md (*vpclmulqdq): New.
27635
27636 2009-02-04 Jakub Jelinek <jakub@redhat.com>
27637
27638 PR tree-optimization/38977
27639 PR gcov-profile/38292
27640 * calls.c (special_function_p): Disregard __builtin_ prefix.
27641
27642 2009-02-04 Hariharan Sandanagobalane <hariharan@picochip.com>
27643
27644 * config/picochip/picochip.c (GO_IF_LEGITIMATE_ADDRESS): Disallow
27645 non-indexable addresses even before reload.
27646
27647 2009-02-03 Joseph Myers <joseph@codesourcery.com>
27648
27649 PR c/29129
27650 * c-decl.c (grokdeclarator): Mark [*] arrays in field declarators
27651 as having variable size. Do not give an error for unnamed
27652 parameters with [*] declarators. Give a warning for type names
27653 with [*] declarators and mark them as variable size.
27654 * c-parser.c (c_parser_sizeof_expression): Do not give an error
27655 for sizeof applied to [*] type names.
27656
27657 2009-02-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
27658
27659 PR C++/36607
27660 * convert.c (convert_to_integer): Treat OFFSET_TYPE like INTEGER_TYPE.
27661
27662 2009-02-03 Jakub Jelinek <jakub@redhat.com>
27663
27664 * gcc.c (process_command): Update copyright notice dates.
27665 * gcov.c (print_version): Likewise.
27666 * gcov-dump.c (print_version): Likewise.
27667 * mips-tfile.c (main): Likewise.
27668 * mips-tdump.c (main): Likewise.
27669
27670 2009-02-03 Joseph Myers <joseph@codesourcery.com>
27671
27672 PR c/35433
27673 * c-typeck.c (composite_type): Set TYPE_SIZE and TYPE_SIZE_UNIT
27674 for composite type involving a zero-length array type.
27675
27676 2009-02-03 Jakub Jelinek <jakub@redhat.com>
27677
27678 PR target/35318
27679 * function.c (match_asm_constraints_1): Skip over
27680 initial optional % in the constraint.
27681
27682 PR inline-asm/39059
27683 * c-parser.c (c_parser_postfix_expression): If fixed point is not
27684 supported, don't accept FIXED_CSTs.
27685 * c-decl.c (finish_declspecs): Error if fixed point is not supported
27686 and _Sat is used without _Fract/_Accum. Set specs->type to
27687 integer_type_node for cts_fract/cts_accum if fixed point is not
27688 supported.
27689
27690 2009-02-02 Catherine Moore <clm@codesourcery.com>
27691
27692 * sde.h (SUBTARGET_ARM_SPEC): Don't assemble -fpic code as -mabicalls.
27693
27694 2009-02-02 Richard Sandiford <rdsandiford@googlemail.com>
27695
27696 * config/mips/mips.h (FILE_HAS_64BIT_SYMBOLS): New macro.
27697 (ABI_HAS_64BIT_SYMBOLS): Use it.
27698 (DWARF2_ADDR_SIZE): Use it instead of ABI_HAS_64BIT_SYMBOLS.
27699
27700 2009-02-02 Paul Brook <paul@codesourcery.com>
27701
27702 * config/arm/arm.md (arm_addsi3): Add r/r/k alternative.
27703
27704 2009-02-02 Jakub Jelinek <jakub@redhat.com>
27705
27706 PR inline-asm/39058
27707 * recog.h (asm_operand_ok): Add constraints argument.
27708 * recog.c (asm_operand_ok): Likewise. If it is set, for digits
27709 recurse on matching constraint.
27710 (check_asm_operands): Pass constraints as 3rd argument to
27711 asm_operand_ok. Don't look up matching constraint here.
27712 * stmt.c (expand_asm_operands): Pass NULL as 3rd argument
27713 to asm_operand_ok.
27714
27715 2009-02-02 Ben Elliston <bje@au.ibm.com>
27716
27717 * doc/tm.texi (Storage Layout): Fix TARGET_ALIGN_ANON_BITFIELD and
27718 TARGET_NARROW_VOLATILE_BITFIELD macro names.
27719
27720 2009-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
27721
27722 * doc/install.texi (hppa*-hp-hpux*): Update binutils and linker
27723 information. Remove some obsolete information. Reorganize.
27724
27725 * config/pa/fptr.c: Revert license to GPL 2.
27726 * config/pa/milli64.S: Likewise.
27727
27728 2009-01-31 Dave Korn <dave.korn.cygwin@gmail.com>
27729
27730 PR target/38904
27731 * mkmap-flat.awk (END): Use pe_dll command-line arg to pass
27732 LIBRARY name in, instead of hard-coding it.
27733 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add an
27734 extra target make frag to tmake_files according to EH model.
27735 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
27736 * config/i386/t-dw2-eh, config/i386/t-sjlj-eh: Add new target
27737 frags that define makefile variable EH_MODEL appropriately.
27738 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Add comment.
27739 * config/i386/cygwin.h (LIBGCC_EH_EXTN): Define to nothing or
27740 to "-sjlj" according to type of EH configured.
27741 (LIBGCC_SONAME): Concatenate it to shared library base name.
27742 * config/i386/mingw32.h (LIBGCC_EH_EXTN): Define to "_dw2" or
27743 to "_sjlj" according to type of EH configured.
27744 (LIBGCC_SONAME): Concatenate it to shared library base name.
27745 * config/i386/t-cygming (SHLIB_SONAME): Use EH_MODEL.
27746 (SHLIB_LINK): Add missing semicolon to if-else construct.
27747 (SHLIB_MKMAP_OPTS): Pass library name to mkmap-flat.awk as
27748 string value of "pe_dll" command-line option.
27749 * config/i386/t-cygwin (SHLIB_EH_EXTENSION): New helper.
27750 (SHLIB_SONAME): Use it when overriding t-cygming default.
27751 (SHLIB_IMPLIB): Override t-cygming default.
27752 (SHLIB_MKMAP_OPTS): Pass library name to mkmap-flat.awk as
27753 string value of "pe_dll" command-line option.
27754
27755 2009-01-31 Dave Korn <dave.korn.cygwin@gmail.com>
27756
27757 PR target/38952
27758 * config/i386/i386.c (ix86_builtin_setjmp_frame_value): New.
27759 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Override default to point at it.
27760
27761 2009-01-31 Richard Guenther <rguenther@suse.de>
27762
27763 PR tree-optimization/38937
27764 * tree-ssa-structalias.c (do_sd_constraint): Do not shortcut
27765 computing the transitive closure.
27766
27767 2009-01-30 Richard Guenther <rguenther@suse.de>
27768
27769 PR tree-optimization/39041
27770 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
27771 Propagate variable indices only if the types match for this stmt.
27772
27773 2009-01-30 Jakub Jelinek <jakub@redhat.com>
27774
27775 PR target/39013
27776 * c-decl.c (pop_scope): Set DECL_EXTERNAL for functions declared
27777 inline but never defined.
27778
27779 2009-01-30 Wolfgang Gellerich <gellerich@de.ibm.com>
27780
27781 * config/s390/s390.md (*insv<mode>_reg_extimm): Removed.
27782 (*insv_h_di_reg_extimm): New insn.
27783 (*insv_l<mode>_reg_extimm): New insn.
27784
27785 2009-01-30 Hariharan Sandanagobalane <hariharan@picochip.com>
27786
27787 * config/picochip/picochip.c (flag_conserve_stack): set
27788 PARAM_LARGE_STACK_FRAME and PARAM_STACK_FRAME_GROWTH to zero under
27789 fconserve-stack. Reduce call-overhead used by inliner.
27790
27791 2009-01-30 Hariharan Sandanagobalane <hariharan@picochip.com>
27792
27793 PR/38157
27794 * common.opt (flag_conserve_stack): Initialised to zero.
27795
27796 2009-01-30 Kai Tietz <kai.tietz@onevision.com>
27797
27798 PR/39002
27799 * config/i386/i386.c (ix86_can_use_return_insn_p): Check for nsseregs.
27800 (ix86_expand_epilogue): Take nsseregs in account to use proper restore
27801 method.
27802
27803 2009-01-29 H.J. Lu <hongjiu.lu@intel.com>
27804
27805 * ira-color.c (allocno_reload_assign): Update comments.
27806 * regmove.c (regmove_optimize): Likewise.
27807
27808 * ra.h: Removed.
27809
27810 2009-01-29 Robert Millan <rmh@aybabtu.com>
27811
27812 * config.gcc: Recognize GNU/kOpenSolaris (*-*-kopensolaris*-gnu).
27813 * config/i386/kopensolaris-gnu.h: New file. Undefine
27814 `MD_UNWIND_SUPPORT'.
27815 * config/kopensolaris-gnu.h: New file (based on kfreebsd-gnu.h).
27816
27817 2009-01-29 Kazu Hirata <kazu@codesourcery.com>
27818
27819 PR tree-optimization/39007
27820 * tree-loop-distribution.c (generate_builtin): Use
27821 recompute_dominator to compute the immediate dominator of the
27822 basic block just after the loop.
27823
27824 2009-01-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
27825
27826 * config/i386/sol2-10.h [!HAVE_AS_IX86_DIFF_SECT_DELTA]
27827 (ASM_OUTPUT_DWARF_PCREL): Define.
27828
27829 2009-01-29 Vladimir Makarov <vmakarov@redhat.com>
27830
27831 * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Modify description.
27832 * doc/passes.texi: Remove entries about regclass, local-alloc, and
27833 global. Modify entries about regmove and IRA.
27834
27835 * ra-conflict.c: Remove the file.
27836
27837 * reload.c (push_reload, find_dummy_reload): Remove flag_ira.
27838
27839 * tree-pass.h (pass_local_alloc, pass_global_alloc): Remove.
27840 (pass_regclass_init): Rename to pass_reginfo_init.
27841
27842 * cfgloopanal.c (estimate_reg_pressure_cost): Remove flag_ira.
27843
27844 * toplev.h (flag_ira): Remove.
27845
27846 * caller-save.c (setup_save_areas): Remove flag_ira.
27847
27848 * ira-color.c (ira_reuse_stack_slot, ira_mark_new_stack_slot): Ditto.
27849
27850 * global.c: Remove the file.
27851
27852 * opts.c (decode_options): Remove flag_ira.
27853
27854 * hard-reg-set.h (losing_caller_save_reg_set): Remove.
27855
27856 * regmove.c: Modify file description.
27857 (find_use_as_address, try_auto_increment): Define them only if
27858 AUTO_INC_DEC is defined.
27859 (replacement_quality, replace_in_call_usage, fixup_match_1,
27860 stable_and_no_regs_but_for_p): Remove.
27861 (reg_set_in_bb): Make it static.
27862 (regmove_optimize): Remove flag_ira and code which worked for
27863 !flag_ira.
27864
27865 * local-alloc.c: Remove the file.
27866
27867 * common.opt (fira): Remove.
27868
27869 * ira.c: Include except.h.
27870 (eliminable_regset): Move from global.c.
27871 (mark_elimination): Ditto. Remove flag_ira.
27872 (reg_renumber, struct equivalence, reg_equiv, equiv_mem,
27873 equiv_mem_modified, validate_equiv_mem_from_store,
27874 validate_equiv_mem, equiv_init_varies_p, equiv_init_movable_p,
27875 contains_replace_regs, memref_referenced_p, memref_used_between_p,
27876 no_equiv, recorded_label_ref): Move from local-alloc.c.
27877 (update_equiv_regs): Ditto. Make it static.
27878 (print_insn_chain, print_insn_chains): Move it from global.c.
27879 (pseudo_for_reload_consideration_p): Ditto. Remove flag_ira.
27880 (build_insn_chain): Ditto. Make it static.
27881 (ra_init_live_subregs): Move from ra-conflict.c. Make it static.
27882 Rename to init_live_subregs.
27883 (gate_ira): Remove flag_ira.
27884
27885 * regclass.c: Rename reginfo.c. Change file description.
27886 (FORBIDDEN_INC_DEC_CLASSES): Remove.
27887 (reg_class_superclasses, forbidden_inc_dec_class, in_inc_dec): Remove.
27888 (init_reg_sets_1): Remove code for evaluation of
27889 reg_class_superclasses and losing_caller_save_reg_set.
27890 (init_regs): Remove init_reg_autoinc.
27891 (struct costs, costs, init_cost, ok_for_index_p_nonstrict,
27892 ok_for_base_p_nonstrict): Remove.
27893 (regclass_init): Rename to reginfo_init. Don't initialize init_cost.
27894 (pass_regclass_init): Rename to pass_reginfo_init. Modify
27895 corresponding entries.
27896 (dump_regclass, record_operand_costs, scan_one_insn,
27897 init_reg_autoinc, regclass, record_reg_classes, copy_cost,
27898 record_address_regs, auto_inc_dec_reg_p): Remove.
27899 (gt-regclass.h): Rename to gt-reginfo.h.
27900
27901 * rtl.h (dump_global_regs, retry_global_alloc,
27902 build_insn_chain, dump_local_alloc, update_equiv_regs): Remove.
27903
27904 * Makefile.in (RA_H): Remove.
27905 (OBJS-common): Remove global.o, local-alloc.o, and ra-conflict.o.
27906 Rename regclass.o to reginfo.o.
27907 (regclass.o): Rename to reginfo.o. Rename gt-regclass.h to
27908 gt-reginfo.h.
27909 (global.o, local-alloc.o, ra-conflict.o): Remove entries.
27910 (GTFILES): Rename regclass.c to reginfo.c.
27911
27912 * passes.c (init_optimization_passes): Remove pass_local_alloc and
27913 pass_global_alloc. Rename pass_regclass_init to pass_reginfo_init.
27914
27915 * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
27916 count_spilled_pseudo, find_reg, alter_reg, delete_output_reload):
27917 Remove flag_ira.
27918 (finish_spills): Ditto. Remove code for !flag_ira.
27919
27920 2009-01-29 Kenneth Zadeck <zadeck@naturalbridge.com>
27921
27922 PR middle-end/35854
27923 * doc/invoke.texi (rtl debug options): Complete rewrite.
27924 * auto-inc-dec.c (pass_inc_dec): Rename pass from "auto-inc-dec"
27925 to auto_inc_dec".
27926 * mode-switching.c (pass_mode_switching): Rename pass from
27927 "mode-sw" to "mode_sw".
27928 * except.c (pass_convert_to_eh_ranges): Rename pass from
27929 "eh-ranges" to "eh_ranges".
27930 * lower-subreg.c (pass_lower_subreg): Renamed pass from "subreg"
27931 to "subreg1".
27932
27933
27934 2009-01-29 Andrey Belevantsev <abel@ispras.ru>
27935 Alexander Monakov <amonakov@ispras.ru>
27936
27937 PR middle-end/38857
27938 * sel-sched.c (count_occurrences_1): Check that *cur_rtx is a hard
27939 register.
27940 (move_exprs_to_boundary): Change return type and pass through
27941 should_move from move_op. Relax assert. Update usage ...
27942 (schedule_expr_on_boundary): ... here. Use should_move instead of
27943 cant_move.
27944 (move_op_orig_expr_found): Indicate that insn was disconnected from
27945 stream.
27946 (code_motion_process_successors): Do not call after_merge_succs
27947 callback if original expression was not found when traversing any of
27948 the branches.
27949 (code_motion_path_driver): Change return type. Update prototype.
27950 (move_op): Update comment. Add a new parameter (should_move). Update
27951 prototype. Set *should_move based on indication provided by
27952 move_op_orig_expr_found.
27953
27954 2009-01-28 Pat Haugen <pthaugen@us.ibm.com>
27955
27956 * doc/invoke.texi (avoid-indexed-addresses): Document new option.
27957 * config/rs6000/rs6000-protos.h (avoiding_indexed_address_p): Declare.
27958 * config/rs6000/rs6000.opt (avoid-indexed-addresses): New option.
27959 * config/rs6000/rs6000.c (rs6000_override_options): Default
27960 avoid-indexed-addresses on for Power6, off for everything else.
27961 (avoiding_indexed_address_p): New function.
27962 (rs6000_legitimize_address): Use it.
27963 (rs6000_legitimate_address): Likewise.
27964 * config/rs6000/rs6000.md (movXX_updateX): Likewise
27965
27966 2009-01-28 Kazu Hirata <kazu@codesourcery.com>
27967
27968 PR tree-optimization/38997
27969 * tree-loop-distribution.c (generate_memset_zero): Use
27970 POINTER_PLUS_EXPR for a pointer addition.
27971
27972 2009-01-28 Andreas Krebbel <krebbel1@de.ibm.com>
27973
27974 * config/s390/s390.md (bswap<mode>2): New pattern added.
27975
27976 2009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
27977
27978 * config/s390/s390.md (*tls_load_31): Added type attribute.
27979
27980 2009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
27981
27982 * config/s390/s390.md: Fix a few comments.
27983
27984 2009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
27985
27986 * config/s390/s390.md (*tmsi_reg): Fixed z10prop attribute.
27987 (*tm<mode>_full): Fixed z10prop attribute.
27988 (*tst<mode>_extimm): Fixed z10prop attribute.
27989 (*tst<mode>_cconly_extimm): Fixed z10prop attribute.
27990 (*tstqiCCT_cconly): Fixed z10prop attribute.
27991 (*cmpsi_ccu_zerohi_rlsi): Fixed z10prop attribute.
27992 (*movsi_larl): Fixed z10prop attribute.
27993 (*movsi_zarch): Fixed z10prop attribute.
27994 (*movsi_eas): Fixed z10prop attribute.
27995 (*movhi): Fixed z10prop attribute.
27996 (*movqi): Fixed z10prop attribute.
27997 (*movstrictqi): Fixed z10prop attribute.
27998 (*mov<mode>): Fixed z10prop attribute.
27999 (*movcc): Fixed z10prop attribute.
28000 (*sethighpartdi_64): Fixed z10prop attribute.
28001 (*zero_extendhi<mode>2_z10): Fixed z10prop attribute.
28002 (*negdi2_sign_cc): Fixed z10prop attribute.
28003 (*negdi2_sign): Fixed z10prop attribute.
28004 (*absdi2_sign_cc): Fixed z10prop attribute.
28005 (*absdi2_sign): Fixed z10prop attribute.
28006 (*negabsdi2_sign_cc): Fixed z10prop attribute.
28007 (*negabsdi2_sign): Fixed z10prop attribute.
28008 (*cmp_and_trap_signed_int<mode>): Fixed z10prop attribute.
28009 (*cmp_and_trap_unsigned_int<mode>): Fixed z10prop attribute.
28010 (doloop_si64): Fixed z10prop attribute.
28011 (doloop_si31): Fixed z10prop attribute.
28012 (doloop_long): Fixed z10prop attribute.
28013 (indirect_jump): Fixed z10prop attribute.
28014 (nop): Fixed z10prop attribute.
28015 (main_base_64): Fixed z10prop attribute.
28016 (reload_base_64): Fixed z10prop attribute.
28017
28018 2009-01-28 Jakub Jelinek <jakub@redhat.com>
28019
28020 PR rtl-optimization/38740
28021 * reorg.c (gate_handle_delay_slots): Avoid dbr scheduling
28022 if !optimize.
28023 * config/mips/mips.c (mips_reorg): Likewise.
28024
28025 2009-01-28 Richard Guenther <rguenther@suse.de>
28026
28027 PR tree-optimization/38926
28028 * tree-ssa-pre.c (add_to_value): Assert we add only expressions
28029 with the correct value id to a value.
28030 (do_regular_insertion): Use the value number of edoubleprime
28031 for the value number of the expr.
28032
28033 Revert
28034 2008-08-21 Richard Guenther <rguenther@suse.de>
28035
28036 * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
28037 a PHI ask VN if it is already available.
28038 * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
28039 * tree-ssa-sccvn.c (vn_phi_lookup): Export.
28040
28041 2009-01-28 Jakub Jelinek <jakub@redhat.com>
28042
28043 PR middle-end/38934
28044 * tree-vrp.c (extract_range_from_assert): For LE_EXPR and LT_EXPR
28045 set to varying whenever max has TREE_OVERFLOW set, similarly
28046 for GE_EXPR and GT_EXPR and TREE_OVERFLOW min.
28047
28048 2009-01-28 Richard Guenther <rguenther@suse.de>
28049
28050 PR middle-end/38908
28051 * tree-ssa.c (warn_uninitialized_var): Do not warn for seemingly
28052 uninitialized aggregate uses in call arguments.
28053
28054 2009-01-28 Paolo Bonzini <bonzini@gnu.org>
28055
28056 PR tree-optimization/38984
28057 * tree-ssa-structalias.c (get_constraints_for_1): Do not use
28058 the nothing_id variable if -fno-delete-null-pointer-checks.
28059
28060 2009-01-28 Uros Bizjak <ubizjak@gmail.com>
28061
28062 PR target/38988
28063 * config/i386/i386.md (set_rip_rex64): Wrap operand 1 in label_ref.
28064 (set_got_offset_rex64): Ditto.
28065
28066 2009-01-27 H.J. Lu <hongjiu.lu@intel.com>
28067
28068 PR target/38941
28069 * doc/extend.texi: Improve local variable with asm reg.
28070
28071 2009-01-27 Adam Nemet <anemet@caviumnetworks.com>
28072
28073 * c.opt (Wpacked-bitfield-compat): Change init value to -1.
28074 * c-opts.c (c_common_post_options): If -W*packed-bitfield-compat
28075 was not supplied then set warn_packed_bitfield_compat to the
28076 default value of 1.
28077 * stor-layout.c (place_field): Check warn_packed_bitfield_compat
28078 against 1.
28079
28080 2009-01-27 Richard Guenther <rguenther@suse.de>
28081
28082 PR tree-optimization/38503
28083 * cfgexpand.c (expand_gimple_basic_block): Ignore
28084 GIMPLE_CHANGE_DYNAMIC_TYPE during expansion.
28085 * tree-ssa-structalias.c (set_uids_in_ptset): Do not prune
28086 variables that cannot have TBAA applied.
28087 (compute_points_to_sets): Do not remove GIMPLE_CHANGE_DYNAMIC_TYPE
28088 statements.
28089
28090 2009-01-27 Uros Bizjak <ubizjak@gmail.com>
28091
28092 PR middle-end/38969
28093 * calls.c (initialize_argument_information): Do not wrap complex
28094 arguments in SAVE_EXPR.
28095
28096 2009-01-26 Andreas Tobler <a.tobler@schweiz.org>
28097
28098 * config/t-vxworks (LIBGCC2_INCLUDES): Fix typo.
28099 (INSTALL_LIBGCC): Revert typo commit.
28100
28101 2009-01-26 Richard Guenther <rguenther@suse.de>
28102
28103 PR tree-optimization/38745
28104 * tree-ssa-alias.c (update_alias_info_1): Exclude RESULT_DECL
28105 from special handling.
28106
28107 2009-01-26 Richard Guenther <rguenther@suse.de>
28108
28109 PR tree-optimization/38745
28110 * tree-ssa.c (execute_update_addresses_taken): Do not include
28111 variables that cannot possibly be a register in not_reg_needs.
28112 Do not clear TREE_ADDRESSABLE on vars that may not become
28113 registers.
28114 * tree-ssa.c (update_alias_info_1): Include those in the set
28115 of addressable vars.
28116
28117 2009-01-26 Richard Guenther <rguenther@suse.de>
28118
28119 PR middle-end/38851
28120 * Makefile.in (tree-ssa-dse.o): Add langhooks.h.
28121 * tree-ssa-dse.c: Include langhooks.h
28122 (execute_simple_dse): Remove stores with zero size.
28123
28124 2009-01-24 Jakub Jelinek <jakub@redhat.com>
28125
28126 PR c/38957
28127 * c-typeck.c (c_finish_return): Handle POINTER_PLUS_EXPR the same way
28128 as PLUS_EXPR.
28129
28130 2009-01-24 Julian Brown <julian@codesourcery.com>
28131
28132 * config/arm/t-linux-eabi (LIB2FUNCS_STATIC_EXTRA): Add
28133 config/arm/linux-atomic.c.
28134 * config/arm/linux-atomic.c: New.
28135
28136 2009-01-24 Eric Botcazou <ebotcazou@adacore.com>
28137
28138 * config/sparc/linux.h (DBX_REGISTER_NUMBER): Delete.
28139 * config/sparc/linux64.h (DBX_REGISTER_NUMBER): Likewise.
28140 * config/sparc/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
28141
28142 2009-01-24 H.J. Lu <hongjiu.lu@intel.com>
28143
28144 PR c/38938
28145 * c-opts.c (c_common_handle_option): Update warn_pointer_sign
28146 properly.
28147
28148 2009-01-24 Sebastian Pop <sebastian.pop@amd.com>
28149
28150 PR tree-optimization/38953
28151 * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa.
28152 (scop_adjust_phis_for_liveouts): Initialize false_i to zero.
28153 (gloog): Split the exit of the scop when the scop exit is a loop exit.
28154 (graphite_transform_loops): Only call cleanup_tree_cfg if gloog
28155 changed the CFG.
28156
28157 2009-01-24 Paul Brook <paul@codesourcery.com>
28158
28159 * config/arm/neon.md (neon_type): Move to arm.md.
28160 (neon_mov<VSTRUCT>): Add neon_type attribute.
28161 * config/arm/arm.md (neon_type): Move to here.
28162 (conds): Add "unconditioal" and use as default for NEON insns.
28163
28164 2009-01-24 Ben Elliston <bje@au.ibm.com>
28165
28166 * bitmap.h (BITMAP_FREE): Eliminate `implicit conversion from
28167 void *' warning from -Wc++-compat.
28168 * Makefile.in (dominance.o-warn): Remove.
28169
28170 2009-01-23 Paolo Bonzini <bonzini@gnu.org>
28171
28172 PR tree-optimization/38932
28173 * fold-const.c (fold_unary_ignore_overflow): New.
28174 * tree.h (fold_unary_ignore_overflow): Declare.
28175 * tree-ssa-ccp.c (ccp_fold): Use fold_unary_ignore_overflow.
28176 * tree-ssa-sccvn.c (visit_reference_op_load,
28177 simplify_unary_expression): Likewise.
28178
28179 2009-01-22 Adam Nemet <anemet@caviumnetworks.com>
28180
28181 * c-decl.c (finish_struct): Move code to set DECL_PACKED after
28182 DECL_BIT_FIELD is alreay known. Also inherit packed for bitfields
28183 regardless of their type.
28184 * c-common.c (handle_packed_attribute): Don't ignore packed on
28185 bitfields.
28186 * c.opt (Wpacked-bitfield-compat): New warning option.
28187 * stor-layout.c (place_field): Warn if offset of a field changed.
28188 * doc/extend.texi (packed): Mention the ABI change.
28189 * doc/invoke.texi (-Wpacked-bitfield-compat): Document.
28190 (Warning Options): Add it to the list.
28191
28192 2009-01-22 H.J. Lu <hongjiu.lu@intel.com>
28193
28194 * c-opts.c (c_common_post_options): Fix a typo in comments.
28195
28196 2009-01-22 Steve Ellcey <sje@cup.hp.com>
28197
28198 PR middle-end/38615
28199 * gimplify.c (gimplify_init_constructor): Fix promotion of const
28200 variables to static.
28201 * doc/invoke.texi (-fmerge-all-constants): Update description.
28202
28203 2009-01-22 Uros Bizjak <ubizjak@gmail.com>
28204
28205 PR target/38931
28206 * config/i386/i386.md (*movsi_1): Use type "mmx" for alternative 2.
28207 (*movdi_1_rex64): Use type "mmx" for alternative 5.
28208
28209 2009-01-22 Richard Earnshaw <rearnsha@arm.com>
28210
28211 * arm.h (DATA_ALIGNMENT): Align structures, unions and arrays to
28212 a word boundary.
28213 (LOCAL_ALIGNMENT): Similarly.
28214
28215 2009-01-22 Mark Shinwell <shinwell@codesourcery.com>
28216 Joseph Myers <joseph@codesourcery.com>
28217
28218 * config/arm/arm.c (all_architectures): Add iWMMXt2 entry.
28219 * config/arm/arm-cores.def: New ARM_CORE entry for iWMMXt2.
28220 * config/arm/arm-tune.md: Regenerate.
28221 * doc/invoke.texi (ARM Options): Document -mcpu=iwmmxt2 and
28222 -march=iwmmxt2.
28223
28224 2009-01-22 Mark Shinwell <shinwell@codesourcery.com>
28225
28226 * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Bump EABI
28227 version number to five.
28228
28229 2009-01-22 Dodji Seketeli <dodji@redhat.com>
28230
28231 PR c++/38930
28232 * c-decl.c (clone_underlying_type): Revert PR c++/26693 changes.
28233 * c-common.c (set_underlying_type): Likewise.
28234 (is_typedef_decl ): Likewise
28235 * tree.h: Likewise
28236 (set_underlying_type): Likewise.
28237 (is_typedef_type): Likewise.
28238
28239 2009-01-21 Vladimir Makarov <vmakarov@redhat.com>
28240
28241 PR middle-end/38587
28242 * ira-color.c (coalesce_spill_slots): Don't coalesce allocnos
28243 crossing setjmps.
28244
28245 2009-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
28246
28247 PR bootstrap/37660
28248 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): New helper macro.
28249 (LIBGCC_SPEC): Don't define.
28250 (REAL_LIBGCC_SPEC): Define instead, using SHARED_LIBGCC_SPEC.
28251
28252 2009-01-21 Uros Bizjak <ubizjak@gmail.com>
28253
28254 PR rtl-optimization/38879
28255 * alias.c (base_alias_check): Unaligned access via AND address can
28256 alias all surrounding object types except those with sizes equal
28257 or wider than the size of unaligned access.
28258
28259 2009-01-21 Dodji Seketeli <dodji@redhat.com>
28260
28261 PR c++/26693
28262 * c-decl.c (clone_underlying_type): Move this ...
28263 * c-common.c (set_underlying_type): ... here.
28264 Also, make sure the function properly sets TYPE_STUB_DECL() on
28265 the newly created typedef variant type.
28266 (is_typedef_decl ): New entry point.
28267 * tree.h: Added a new member member_types_needing_access_check to
28268 struct tree_decl_non_common.
28269 (set_underlying_type): New entry point.
28270 (is_typedef_type): Likewise.
28271
28272 2009-01-21 Bingfeng Mei <bmei@broadcom.com>
28273
28274 * alias.c (walk_mems_1, walk_mems_2, insn_alias_sets_conflict_p):
28275 Check whether two instructions have memory references that
28276 belong to conflicting alias sets. walk_mems_1 and walk_mems_2
28277 are helper functions for traversing.
28278 * alias.h (insn_alias_sets_confilict_p): New prototypes.
28279 * ddg.c (add_inter_loop_mem_dep): Call insn_alias_sets_conflict_p
28280 not to draw dependency edge for instructions with non-conflicting
28281 alias sets.
28282
28283 2009-01-20 Joseph Myers <joseph@codesourcery.com>
28284
28285 PR other/38758
28286 * longlong.h: Update copyright years. Use soft-fp license notice.
28287 Sync __clz_tab declaration with glibc.
28288
28289 2009-01-20 Steve Ellcey <sje@cup.hp.com>
28290
28291 PR target/30687
28292 * doc/extend.texi (syscall_linkage): New.
28293 (version_id): Modify.
28294
28295 2009-01-20 Andrew Pinski <andrew_pinski@playstation.sony.com>
28296 Richard Guenther <rguenther@suse.de>
28297
28298 PR tree-optimization/38747
28299 PR tree-optimization/38748
28300 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Disable the VCE
28301 conversion if the base address is an indirect reference and the
28302 aliasing sets could cause issues.
28303
28304 2009-01-20 Sebastian Pop <sebastian.pop@amd.com>
28305
28306 * common.opt (fgraphite, fgraphite-identity): Add comment for
28307 explaining why these options are not documented.
28308
28309 2009-01-20 Sebastian Pop <sebastian.pop@amd.com>
28310
28311 * graphite.c (stmt_simple_for_scop_p): Also handle cases when
28312 gimple_call_lhs is NULL.
28313
28314 2009-01-20 Paolo Bonzini <bonzini@gnu.org>
28315
28316 PR target/38868
28317 * emit-rtl.c (adjust_address_1): Make sure memref is never
28318 overwritten.
28319
28320 2009-01-20 Ben Elliston <bje@au.ibm.com>
28321
28322 * libgcov.c (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
28323 const qualifier from arg parameter. Remove unnecessary cast to char *.
28324 * gcov-io.h (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
28325 const qualifier from arg 2.
28326
28327 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
28328
28329 * config/darwin.h: Add static-libgfortran to LINK_SPEC.
28330
28331 2009-01-19 Vladimir Makarov <vmakarov@redhat.com>
28332
28333 PR c/38869
28334 * rtl.h (reinit_regs): New prototype.
28335 * regclass.c: Include ira.h.
28336 (reinit_regs): New.
28337 * Makefile.in (regclass.o): Add ira.h.
28338 * config/i386/i386.c (ix86_maybe_switch_abi): Use reinit_regs.
28339
28340 2009-01-18 H.J. Lu <hongjiu.lu@intel.com>
28341
28342 PR target/38736
28343 * c-common.c (handle_aligned_attribute): Use
28344 ATTRIBUTE_ALIGNED_VALUE instead of BIGGEST_ALIGNMENT for
28345 default alignment value.
28346
28347 * c-cppbuiltin.c (c_cpp_builtins): Define __BIGGEST_ALIGNMENT__.
28348
28349 * defaults.h (ATTRIBUTE_ALIGNED_VALUE): New.
28350 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Likewise.
28351
28352 * doc/extend.texi: Update __attribute__ ((aligned)). Document
28353 __BIGGEST_ALIGNMENT__.
28354
28355 * doc/tm.texi: Document ATTRIBUTE_ALIGNED_VALUE.
28356
28357 2009-01-18 Richard Guenther <rguenther@suse.de>
28358
28359 PR tree-optimization/38819
28360 * tree-flow.h (operation_could_trap_helper_p): Declare.
28361 * tree-eh.c (operation_could_trap_helper_p): Export.
28362 * tree-ssa-sccvn.h (vn_nary_may_trap): Declare.
28363 * tree-ssa-sccvn.c (vn_nary_may_trap): New function.
28364 * tree-ssa-pre.c (insert_into_preds_of_block): Check if we
28365 are about to insert a possibly trapping instruction and fail
28366 in this case.
28367
28368 2009-01-18 Andreas Schwab <schwab@suse.de>
28369
28370 * doc/install.texi (Configuration): Remove obsolete paragraph
28371 about use of --with-gnu-ld with --with-gnu-as.
28372
28373 2009-01-18 Kazu Hirata <kazu@codesourcery.com>
28374
28375 * doc/extend.texi, doc/gimple.texi, doc/invoke.texi,
28376 doc/md.texi, doc/sourcebuild.texi, doc/tm.texi: Fix typos.
28377 Follow spelling conventions.
28378
28379 2009-01-18 Ben Elliston <bje@au.ibm.com>
28380
28381 * bitmap.c (bitmap_obstack_alloc_stat): Adjust cast to eliminate
28382 C++ warning about implicit conversion from void * to struct
28383 bitmap_head_def *.
28384 (bitmap_obstack_free): Likewise for bitmap_element *.
28385 * Makefile.in (bitmap.o-warn): Remove.
28386
28387 2009-01-17 Dave Korn <dave.korn.cygwin@gmail.com>
28388
28389 * Makefile.in (BACKENDLIBS): Reorder to match dependencies.
28390
28391 2009-01-17 Sebastian Pop <sebastian.pop@amd.com>
28392 Tobias Grosser <tobi.grosser@amd.com>
28393
28394 * graphite.c (graphite_trans_scop_block): Do not block single
28395 nested loops.
28396
28397 2009-01-16 Alexandre Oliva <aoliva@redhat.com>
28398
28399 * ebitmap.h (ebitmap_iter_init): Initialize all fields.
28400 * ipa-struct-reorg.c (gen_struct_type): Replace known-true
28401 test with assertion.
28402
28403 2009-01-16 Richard Guenther <rguenther@suse.de>
28404
28405 PR tree-optimization/38835
28406 PR middle-end/36227
28407 * fold-const.c (fold_binary): Remove PTR + INT -> (INT)(PTR p+ INT)
28408 and INT + PTR -> (INT)(PTR p+ INT) folding.
28409 * tree-ssa-address.c (create_mem_ref): Properly use POINTER_PLUS_EXPR.
28410
28411 2009-01-16 Adam Nemet <anemet@caviumnetworks.com>
28412
28413 PR target/38554
28414 * expmed.c (expand_shift): With SHIFT_COUNT_TRUNCATED, don't lift
28415 the subreg from a lowpart subreg if it is also casting the value.
28416
28417 2009-01-16 Sebastian Pop <sebastian.pop@amd.com>
28418 Tobias Grosser <tobi.grosser@amd.com>
28419
28420 * graphite.c (compare_prefix_loops): New.
28421 (build_scop_canonical_schedules): Rewritten.
28422 (graphite_transform_loops): Move build_scop_canonical_schedules
28423 after build_scop_iteration_domain.
28424
28425 2009-01-16 Sebastian Pop <sebastian.pop@amd.com>
28426 Tobias Grosser <tobi.grosser@amd.com>
28427
28428 * graphite.c (add_conditions_to_domain): Add the loops to
28429 the dimension of the iteration domain. Do copy the domain
28430 only when it exists.
28431 (build_scop_conditions_1): Do not call add_conditions_to_domain.
28432 (add_conditions_to_constraints): New.
28433 (can_generate_code_stmt, can_generate_code): Removed.
28434 (gloog): Do not call can_generate_code.
28435 (graphite_transform_loops): Call add_conditions_to_constraints
28436 after building the iteration domain.
28437
28438 2009-01-16 Jakub Jelinek <jakub@redhat.com>
28439
28440 PR tree-optimization/38789
28441 * tree-ssa-threadedge.c
28442 (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
28443 __builtin_constant_p.
28444
28445 2009-01-16 Kenneth Zadeck <zadeck@naturalbridge.com>
28446
28447 * dce.c (delete_unmarked_insns): Reversed the order that insns are
28448 examined before deleting them.
28449
28450 2009-01-16 Richard Earnshaw <rearnsha@arm.com>
28451
28452 * function.c (aggregate_value_p): Correctly extract the function
28453 type from CALL_EXPR_FN lookup.
28454
28455 2009-01-16 Hariharan Sandanagobalane <hariharan@picochip.com>
28456
28457 * config/picochip/picochip.c (picochip_override_options): Revert
28458 CFI asm flag disable commited previously.
28459
28460 2009-01-15 Sebastian Pop <sebastian.pop@amd.com>
28461 Tobias Grosser <tobi.grosser@amd.com>
28462 Jan Sjodin <jan.sjodin@amd.com>
28463
28464 * graphite.c (scan_tree_for_params): On substractions negate
28465 all the coefficients of the term.
28466 (clast_to_gcc_expression_red): New. Handle reduction expressions
28467 of more than two operands.
28468 (clast_to_gcc_expression): Call clast_to_gcc_expression_red.
28469 (get_vdef_before_scop): Handle also the case of default definitions.
28470
28471 2009-01-15 Richard Sandiford <rdsandiford@googlemail.com>
28472
28473 * caller-save.c (add_used_regs_1, add_used_regs): New functions.
28474 (insert_one_insn): Use them instead of REG_DEAD and REG_INC notes.
28475 Also use them when walking CALL_INSN_FUNCTION_USAGE.
28476
28477 2009-01-15 H.J. Lu <hongjiu.lu@intel.com>
28478 Joey Ye <joey.ye@intel.com>
28479
28480 PR middle-end/37843
28481 * cfgexpand.c (expand_stack_alignment): Don't update stack
28482 boundary nor check incoming stack boundary here.
28483 (gimple_expand_cfg): Update stack boundary and check incoming
28484 stack boundary here.
28485
28486 2009-01-15 Kenneth Zadeck <zadeck@naturalbridge.com>
28487
28488 * dce.c (find_call_stack_args, delete_unmarked_insns): Fixed comments.
28489
28490 2009-01-14 Jakub Jelinek <jakub@redhat.com>
28491
28492 PR rtl-optimization/38245
28493 * calls.c (expand_call): Add stack arguments to
28494 CALL_INSN_FUNCTION_USAGE even for pure calls (when
28495 ACCUMULATE_OUTGOING_ARGS) and even for args partially passed
28496 in regs and partially in memory or BLKmode arguments.
28497 (emit_library_call_value_1): Add stack arguments to
28498 CALL_INSN_FUNCTION_USAGE even for pure calls (when
28499 ACCUMULATE_OUTGOING_ARGS).
28500 * dce.c: Include tm_p.h.
28501 (find_call_stack_args): New function.
28502 (deletable_insn_p): Call it for CALL_P insns. Add ARG_STORES
28503 argument.
28504 (mark_insn): Call find_call_stack_args for CALL_Ps.
28505 (prescan_insns_for_dce): Walk insns backwards in bb rather than
28506 forwards. Allocate and free arg_stores bitmap if needed, pass it
28507 down to deletable_insn_p, don't mark stores set in arg_stores
28508 bitmap, clear the bitmap at the beginning of each bb.
28509 * Makefile.in (dce.o): Depend on $(TM_P_H).
28510
28511 2009-01-14 Michael Meissner <gnu@the-meissners.org>
28512
28513 PR target/22599
28514 * config/i386/i386.c (print_operand): Add tests for 'D', 'C', 'F', 'f'
28515 to make sure the insn is a conditional test (bug 22599). Reformat a
28516 few long lines.
28517
28518 2009-01-14 Sebastian Pop <sebastian.pop@amd.com>
28519
28520 PR middle-end/38431
28521 * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New.
28522 (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi.
28523 (gloog): Do not call cleanup_tree_cfg.
28524 (graphite_transform_loops): Call cleanup_tree_cfg after all
28525 scops have been code generated.
28526
28527 2009-01-14 Basile Starynkevitch <basile@starynkevitch.net>
28528 * doc/gty.texi (Invoking the garbage collector): Added new node
28529 and section documenting ggc_collect.
28530
28531 2009-01-14 Richard Guenther <rguenther@suse.de>
28532
28533 PR tree-optimization/38826
28534 PR middle-end/38477
28535 * tree-ssa-structalias.c (emit_alias_warning): Emit the pointer
28536 initialization notes only if we actually emitted a warning.
28537 (intra_create_variable_infos): Add constraints for a result decl
28538 that is passed by hidden reference.
28539 (build_pred_graph): Mark all related variables non-direct on
28540 address-taking.
28541
28542 2009-01-14 Nick Clifton <nickc@redhat.com>
28543
28544 * ira-conflicts.c: Include addresses.h for the definition of
28545 base_reg_class.
28546 (ira_build_conflicts): Use base_reg_class instead of BASE_REG_CLASS.
28547 * Makefile.in: Add a dependency of ira-conflicts.o on addresses.h.
28548
28549 2009-01-13 Vladimir Makarov <vmakarov@redhat.com>
28550
28551 PR target/38811
28552 * Makefile.in (ira-lives.o): Add except.h.
28553
28554 * ira-lives.c: Include except.h.
28555 (process_bb_node_lives): Process can_throw_internal.
28556
28557 2009-01-13 Jakub Jelinek <jakub@redhat.com>
28558
28559 PR rtl-optimization/38774
28560 * combine.c (simplify_set): When undoing cc_use change, don't do
28561 PUT_CODE on the newly created comparison, but instead put back the
28562 old comparison.
28563
28564 2009-01-13 Joseph Myers <joseph@codesourcery.com>
28565
28566 * doc/invoke.texi (ARM Options): Update lists of -mcpu and -march
28567 values. Remove duplicate arm8 entry.
28568
28569 2009-01-13 Sebastian Pop <sebastian.pop@amd.com>
28570
28571 PR tree-optimization/38786
28572 * graphite.c (expand_scalar_variables_ssa_name): New, outlined from
28573 the SSA_NAME case of expand_scalar_variables_expr.
28574 Set the type of an expression to the type of its assign statement.
28575 (expand_scalar_variables_expr): Also gather the scalar computation
28576 used to index the memory access. Do not pass loop_p.
28577 Fix comment. Stop recursion on tcc_constant or tcc_declaration.
28578 (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr
28579 the gimple_stmt_iterator where it inserts new code.
28580 Do not pass loop_p.
28581 (copy_bb_and_scalar_dependences): Do not pass loop_p.
28582 (translate_clast): Update call to copy_bb_and_scalar_dependences.
28583
28584 2009-01-13 Sebastian Pop <sebastian.pop@amd.com>
28585
28586 * graphite.h (debug_value): Removed.
28587 * graphite.c (debug_value): Removed.
28588
28589 2009-01-13 Richard Earnshaw <rearnsha@arm.com>
28590
28591 * config/arm/arm.c (output_move_double): Don't synthesize thumb-2
28592 ldrd/strd with two 32-bit instructions.
28593
28594 2009-01-13 Richard Earnshaw <rearnsha@arm.com>
28595
28596 * config/arm/arm.c (struct processors): Pass for speed down into
28597 cost helper functions.
28598 (const_ok_for_op): Handle COMPARE and inequality nodes.
28599 (arm_rtx_costs_1): Rewrite.
28600 (arm_size_rtx_costs): Update prototype.
28601 (arm_rtx_costs): Pass speed down to helper functions.
28602 (arm_slowmul_rtx_costs): Rework cost calculations.
28603 (arm_fastmul_rtx_costs, arm_xscale_rtx_costs): Likewise.
28604 (arm_9e_rtx_costs): Likewise.
28605
28606 2009-01-13 Uros Bizjak <ubizjak@gmail.com>
28607
28608 * config/alpha/alpha.c (alpha_legitimate_address_p): Explicit
28609 relocations of local symbols wider than UNITS_PER_WORD are not valid.
28610 (alpha_legitimize_address): Do not split local symbols wider than
28611 UNITS_PER_WORD into HIGH/LO_SUM parts.
28612
28613 2009-01-13 Danny Smith <dannysmith@users.sourceforge.net>
28614
28615 PR bootstrap/38580
28616 * gcc.c (process_command): Replace call to execvp with calls
28617 to pex_one and exit.
28618
28619 2009-01-03 Anatoly Sokolov <aesok@post.ru>
28620
28621 PR target/29141
28622 * config/avr/t-avr (LIB1ASMFUNCS): Add _tablejump_elpm.
28623 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Add
28624 variant for devices with 3-byte PC.
28625 (__tablejump_elpm__): New.
28626
28627 2009-01-12 Jakub Jelinek <jakub@redhat.com>
28628
28629 PR c/32041
28630 * c-parser.c (c_parser_postfix_expression): Allow `->' in
28631 offsetof member-designator, handle it as `[0].'.
28632
28633 2009-01-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
28634
28635 * pa.c (pa_asm_output_mi_thunk): Use pc-relative branch to thunk
28636 function when not using named sections on targets with named sections
28637 if branch distance is less than 262132.
28638
28639 2009-01-12 Richard Earnshaw <rearnsha@arm.com>
28640
28641 * combine.c (combine_instructions): Recompute
28642 optimize_this_for_speed_p for each BB in the main combine loop.
28643
28644 2009-01-12 Tomas Bily <tbily@suse.cz>
28645
28646 PR middlend/38385
28647 * tree-loop-distribution.c (prop_phis): New function.
28648 (generate_builtin): Call prop_phis.
28649
28650 2009-01-12 Jakub Jelinek <jakub@redhat.com>
28651
28652 PR tree-optimization/38807
28653 * tree-ssa-reassoc.c (remove_visited_stmt_chain): Don't look at
28654 gimple_visited_p unless stmt is GIMPLE_ASSIGN.
28655
28656 2009-01-11 Adam Nemet <anemet@caviumnetworks.com>
28657
28658 * expmed.c (store_bit_field_1): Properly truncate the paradoxical
28659 subreg of op0 to the original op0.
28660
28661 2009-01-11 Laurent GUERBY <laurent@guerby.net>
28662
28663 * doc/sourcebuild.texi (Source Tree): Move up intl and fixinc.
28664
28665 2009-01-11 Markus Schoepflin <markus.schoepflin@comsoft.de>
28666
28667 PR debug/7055
28668 * mips-tfile.c (parse_def): Fix parsing of def strings
28669 starting with digits.
28670
28671 2009-01-10 Jakub Jelinek <jakub@redhat.com>
28672
28673 PR target/38695
28674 * config/arm/arm.c (arm_is_long_call_p): Don't call
28675 arm_function_in_section_p if decl isn't a FUNCTION_DECL.
28676
28677 2009-01-09 Steven Bosscher <steven@gcc.gnu.org>
28678
28679 * regrename.c (regrename_optimize): Fix dumping.
28680 (find_oldest_value_reg): Preserve REG_POINTER.
28681 (copy_hardreg_forward_1): Likewise.
28682
28683 2009-01-09 Diego Novillo <dnovillo@google.com>
28684
28685 * gimple.h (struct gimple_statement_base) <uid>: Document
28686 the restrictions on its use.
28687 (gimple_uid): Tidy.
28688 (gimple_set_uid): Tidy.
28689
28690 2009-01-09 Jakub Jelinek <jakub@redhat.com>
28691
28692 * config/i386/i386.c (ix86_expand_movmem, ix86_expand_setmem): Add
28693 zero guard even if align_bytes != 0 and count is smaller than
28694 size_needed.
28695
28696 2009-01-09 Vladimir Makarov <vmakarov@redhat.com>
28697
28698 PR rtl-optimization/38495
28699 * ira-emit.c (print_move_list, ira_debug_move_list): New functions.
28700 (add_range_and_copies_from_move_list): Print all added ranges.
28701 Add ranges to memory optimized destination.
28702
28703 2009-01-09 Jakub Jelinek <jakub@redhat.com>
28704
28705 PR target/38686
28706 PR target/38708
28707 * config/i386/i386.c (override_options): Reject
28708 -mstringop-strategy=rep_8byte with -m32.
28709 (ix86_expand_movmem): For size_needed == 1 set epilogue_size_needed
28710 to 1. Do count comparison against epilogue_size_needed at compile
28711 time even when count_exp was constant forced into register. For
28712 size_needed don't jump to epilogue, instead just avoid aligning
28713 and invoke the body algorithm. If need_zero_guard, add zero guard
28714 even if count is non-zero, but smaller than size_needed + number of
28715 bytes that could be stored for alignment.
28716 (ix86_expand_setmem): For size_needed == 1 set epilogue_size_needed
28717 to 1. If need_zero_guard, add zero guard even if count is non-zero,
28718 but smaller than size_needed + number of bytes that could be stored
28719 for alignment. Compare size_needed with epilogue_size_needed instead
28720 of desired_align - align, don't adjust size_needed, pass
28721 epilogue_size_needed to the epilogue expanders.
28722
28723 PR c/35742
28724 * c-pretty-print.c (pp_c_expression): Handle GOTO_EXPR like BIND_EXPR.
28725
28726 2009-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
28727
28728 * pa.c (last_address): Change to unsigned.
28729 (update_total_code_bytes): Change argument to unsigned. Don't
28730 check if insn addresses are set.
28731 (pa_output_function_epilogue): Set last_address to UINT_MAX if insn
28732 addresses are not set.
28733 (pa_asm_output_mi_thunk): Handle wrap when updating last_address.
28734
28735 2009-01-09 Nick Clifton <nickc@redhat.com>
28736
28737 * config/sh/symbian.c: Replace uses of DECL_INLINE with
28738 DECL_DECLARED_INLINE_P.
28739
28740 2009-01-09 Jakub Jelinek <jakub@redhat.com>
28741
28742 PR middle-end/38347
28743 * dojump.c (do_jump_by_parts_zero_rtx): Use mode instead of
28744 GET_MODE (op0) in operand_subword_force calls.
28745
28746 PR middle-end/38771
28747 * fold-const.c (fold_unary): For COMPOUND_EXPR and COND_EXPR,
28748 fold_convert arg0 operands to TREE_TYPE (op0) first.
28749
28750 2009-01-08 Vladimir Makarov <vmakarov@redhat.com>
28751
28752 * params.def (ira-max-conflict-table-size): Decrease default value
28753 to 1000.
28754
28755 2009-01-08 Jakub Jelinek <jakub@redhat.com>
28756
28757 PR tree-optimization/37031
28758 * lambda-code.c (lambda_collect_parameters): Call pointer_set_destroy
28759 on parameter_set.
28760 (build_access_matrix): Reserve correct size for AM_MATRIX vector,
28761 allocate it using gc instead of heap, use VEC_quick_push instead of
28762 VEC_safe_push.
28763 * graphite.c (build_access_matrix): Allocate AM_MATRIX vector using gc
28764 instead of heap, use VEC_quick_push instead of VEC_safe_push.
28765 * tree-data-ref.h (struct access_matrix): Change matrix to gc
28766 allocated vector from heap allocated.
28767 * lambda.h: Add DEF_VEC_ALLOC_P for gc allocated lambda_vector.
28768 * tree-loop-linear.c (linear_transform_loops): Allocate nest
28769 vector only after perfect_loop_nest_depth call.
28770
28771 2009-01-08 Sebastian Pop <sebastian.pop@amd.com>
28772 Jan Sjodin <jan.sjodin@amd.com>
28773
28774 PR tree-optimization/38559
28775 * graphite.c (debug_value, copy_constraint,
28776 swap_constraint_variables, scale_constraint_variable, ): New.
28777 (get_lower_bound, get_upper_bound): Removed.
28778 (graphite_trans_bb_strip_mine): Clean up this code that works
28779 only for constant number of iterations. Fully copy upper and
28780 lower bound constraints, not only the constant part of them.
28781 * graphite.h (debug_value): Declared.
28782
28783 2009-01-08 Ira Rosen <irar@il.ibm.com>
28784
28785 PR tree-optimization/37194
28786 * tree-vect-transform.c (vect_estimate_min_profitable_iters):
28787 Don't add the cost of cost model guard in prologue to scalar
28788 outside cost in case of known number of iterations.
28789
28790 2009-01-07 Nathan Froyd <froydnj@codesourcery.com>
28791 Alan Modra <amodra@bigpond.net.au>
28792
28793 * config/rs6000/rs6000.c (rs6000_legitimize_address): Check for
28794 non-word-aligned REG+CONST addressing.
28795
28796 2009-01-07 Uros Bizjak <ubizjak@gmail.com>
28797
28798 PR target/38706
28799 * config/alpha/alpha.c (alpha_end_function): For TARGET_ABI_OSF, call
28800 free_after_compilation when outputting a thunk.
28801 (alpha_output_mi_thunk_osf): Assert that we are processing a thunk.
28802 Do not call free_after_compilation here.
28803
28804 2009-01-07 Uros Bizjak <ubizjak@gmail.com>
28805
28806 * config/i386/i386.c (ix86_target_string): Use ARRAY_SIZE.
28807 (ix86_valid_target_attribute_inner_p): Ditto.
28808
28809 2009-01-07 Jan Sjodin <jan.sjodin@amd.com>
28810
28811 PR tree-optimization/38492
28812 PR tree-optimization/38498
28813 * tree-check.c (operator_is_linear, scev_is_linear_expression): New.
28814 * tree-chrec.h (scev_is_linear_expression): Declared.
28815 * graphite.c (graphite_cannot_represent_loop_niter): New.
28816 (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter.
28817 (graphite_loop_normal_form): Use gcc_assert.
28818 (scan_tree_for_params): Use CASE_CONVERT.
28819 (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New.
28820 (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes.
28821 Use gcc_assert. Discard scops that contain unhandled cases.
28822 (build_scop_conditions): Return a boolean status for unhandled cases.
28823 (strip_mine_profitable_p): Print the loop number, not its depth.
28824 (is_interchange_valid): Pass the depth of the loop nest, don't
28825 recompute it wrongly.
28826 (graphite_trans_bb_block): Same.
28827 (graphite_trans_bb_block): Print tentative of loop blocking.
28828 (graphite_trans_scop_block): Do not print that the loop has been
28829 blocked.
28830 (graphite_transform_loops): Do not handle scops that contain condition
28831 scalar phi nodes.
28832
28833 2009-01-07 H.J. Lu <hongjiu.lu@intel.com>
28834
28835 AVX Programming Reference (December, 2008)
28836 * config/i386/avxintrin.h (_mm256_stream_si256): New.
28837 (_mm256_stream_pd): Likewise.
28838 (_mm256_stream_ps): Likewise.
28839
28840 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVNTDQ256,
28841 IX86_BUILTIN_MOVNTPD256 and IX86_BUILTIN_MOVNTPS256.
28842 (ix86_special_builtin_type): Add VOID_FTYPE_PV4DI_V4DI.
28843 (bdesc_special_args): Add __builtin_ia32_movntdq256,
28844 __builtin_ia32_movntpd256 and __builtin_ia32_movntps256.
28845 (ix86_init_mmx_sse_builtins): Handle VOID_FTYPE_PV4DI_V4DI.
28846 (ix86_expand_special_args_builtin): Likewise.
28847
28848 * config/i386/sse.md (AVXMODEDI): New.
28849 (avx_movnt<mode>): Likewise.
28850 (avx_movnt<mode>): Likewise.
28851 (<sse>_movnt<mode>): Remove AVX support.
28852 (sse2_movntv2di): Likewise.
28853
28854 2009-01-07 Richard Guenther <rguenther@suse.de>
28855
28856 PR middle-end/38751
28857 * fold-const.c (extract_muldiv): Remove obsolete comment.
28858 (fold_plusminus_mult_expr): Undo MINUS_EXPR
28859 to PLUS_EXPR canonicalization for the canonicalization.
28860
28861 2009-01-07 Gerald Pfeifer <gerald@pfeifer.com>
28862
28863 * doc/install.texi (alpha*-dec-osf*): Remove note on 32-bit
28864 hosted cross-compilers generating less efficient code.
28865
28866 2009-01-06 Richard Sandiford <rdsandiford@googlemail.com>
28867
28868 * function.h (rtl_data): Add a dbr_scheduled_p field.
28869 * reorg.c (dbr_schedule): Set it.
28870 (gate_handle_delay_slots): Check it.
28871 * config/mips/mips.c (mips_base_delayed_branch): Delete.
28872 (mips_reorg): Check flag_delayed_branch instead of
28873 mips_base_delayed_branch.
28874 (mips_override_options): Don't set mips_base_delayed_branch
28875 or flag_delayed_branch.
28876
28877 2009-01-06 Richard Sandiford <rdsandiford@googlemail.com>
28878
28879 PR rtl-optimization/38426.
28880 * ira.c (ira): Set current_function_is_leaf earlier.
28881
28882 2009-01-06 Jakub Jelinek <jakub@redhat.com>
28883
28884 PR rtl-optimization/38722
28885 * combine.c (try_combine): Don't modify PATTERN (i3) and notes
28886 too early, only set a flag and modify after last possible
28887 undo_all point.
28888
28889 2009-01-06 Janis Johnson <janis187@us.ibm.com>
28890
28891 PR c/34252
28892 * ginclude/float.h: Rename DECnn_DEN to DECnn_SUBNORMAL_MIN.
28893 * real.c (decimal_single_format): Correct values of emin and emax.
28894 (decimal_double_format): Ditto.
28895 (decimal_quad_format): Ditto.
28896 * c-cppbuiltin.c (builtin_define_decimal_float_constants): Adjust
28897 computation of DECnn_MIN and DECnn_MAX for corrected values of
28898 emin and emax. Define __DECnn_SUBNORMAL_MIN__ instead of
28899 __DECnn_MIN__, and adjust its computation for the corrected value
28900 of emin.
28901
28902 2009-01-06 Jan Hubicka <jh@suse.cz>
28903
28904 PR target/38744
28905 * config/i386/i386.c (ix86_expand_call): Use ARRAY_SIZE.
28906
28907 2009-01-06 Gerald Pfeifer <gerald@pfeifer.com>
28908
28909 * doc/contrib.texi (Contributors): Slightly adjust the end note.
28910 Add Robert Clark to the list of testers.
28911
28912 2009-01-06 Jan Hubicka <jh@suse.cz>
28913 Kai Tietz <kai.tietz@onevision.com>
28914
28915 * config/i386/i386.md (*msabi_syvabi): Add SSE regs clobbers.
28916 * config/i386/i386.c (ix86_expand_call): Add clobbers.
28917
28918 2009-01-06 Jan Hubicka <jh@suse.cz>
28919 Kai Tietz <kai.tietz@onevision.com>
28920
28921 * config/i386/i386.h (CONDITIONAL_CALL_USAGE): SSE regs are not used
28922 for w64 ABI.
28923 * config/i386/i386.c (struct ix86_frame): Add padding0 and nsseregs.
28924 (ix86_nsaved_regs): Count only general purpose regs.
28925 (ix86_nsaved_sseregs): New.
28926 (ix86_compute_frame_layout): Update nsseregs; set preferred alignment
28927 to 16 for w64; compute padding and size of sse reg save area.
28928 (ix86_emit_save_regs, ix86_emit_save_regs_using_mov): Save only
28929 general purpose regs.
28930 (ix86_emit_save_sse_regs_using_mov): New.
28931 (ix86_expand_prologue): Save SSE regs if needed.
28932 (ix86_emit_restore_regs_using_mov): Use only general purpose regs.
28933 (ix86_emit_restore_sse_regs_using_mov): New.
28934 (ix86_expand_epilogue): Save SSE regs if needed.
28935
28936 2009-01-06 Jan Hubicka <jh@suse.cz>
28937 Kai Tietz <kai.tietz@onevision.com>
28938
28939 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Enable for MSABI
28940 * config/i386/i386.c (init_cumulative_args): Disallow calls of MSABI
28941 functions when accumulate outgoing args is off.
28942
28943 2009-01-06 H.J. Lu <hongjiu.lu@intel.com>
28944
28945 PR bootstrap/38742
28946 * ira-color.c (ira_reuse_stack_slot): Check ENABLE_IRA_CHECKING
28947 before using pseudos_have_intersected_live_ranges_p.
28948
28949 * ira-int.h (ira_assert): Always define.
28950
28951 2009-01-06 H.J. Lu <hongjiu.lu@intel.com>
28952
28953 AVX Programming Reference (December, 2008)
28954 * config/i386/avxintrin.h (_mm_permute2_pd): Removed.
28955 (_mm256_permute2_pd): Likewise.
28956 (_mm_permute2_ps): Likewise.
28957 (_mm256_permute2_ps): Likewise.
28958 * config/i386/i386.md (UNSPEC_VPERMIL2): Likewise.
28959 * config/i386/sse.md (avx_vpermil2<mode>3): Likewise.
28960
28961 * config/i386/i386.c (ix86_builtins): Remove
28962 IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
28963 IX86_BUILTIN_VPERMIL2PD256 and IX86_BUILTIN_VPERMIL2PS256.
28964 (ix86_builtin_type): Remove V8SF_FTYPE_V8SF_V8SF_V8SI_INT,
28965 V4DF_FTYPE_V4DF_V4DF_V4DI_INT, V4SF_FTYPE_V4SF_V4SF_V4SI_INT
28966 and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
28967 (bdesc_args): Remove __builtin_ia32_vpermil2pd,
28968 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256 and
28969 __builtin_ia32_vpermil2ps256.
28970 (ix86_init_mmx_sse_builtins): Updated.
28971 (ix86_expand_args_builtin): Likewise.
28972
28973 2009-01-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
28974
28975 * pa.c (output_call): Relocate non-jump insns in the delay slot of
28976 long absolute calls when generating PA 2.0 code.
28977
28978 2009-01-05 Vladimir Makarov <vmakarov@redhat.com>
28979
28980 PR rtl-optimization/38583
28981 * params.h (IRA_MAX_CONFLICT_TABLE_SIZE): New macro.
28982
28983 * params.def (ira-max-conflict-table-size): New.
28984
28985 * doc/invoke.texi (ira-max-conflict-table-size): Decribe.
28986
28987 * ira.h (ira_conflicts_p): New external definition.
28988
28989 * ira-conflicts.c (build_conflict_bit_table): Do not build too big
28990 table. Report this. Return result of building.
28991 (ira_build_conflicts): Use ira_conflicts_p. Check result of
28992 building conflict table.
28993
28994 * ira-color.c (fast_allocation): Use num instead of ira_allocnos_num.
28995 (ira_color): Use ira_conflicts_p.
28996
28997 * global.c: Include ira.h.
28998 (pseudo_for_reload_consideration_p, build_insn_chain): Use
28999 ira_conflicts_p.
29000
29001 * Makefile.in (global.o): Add ira.h.
29002
29003 * ira-build.c (mark_all_loops_for_removal,
29004 propagate_some_info_from_allocno): New.
29005 (remove_unnecessary_allocnos): Call
29006 propagate_some_info_from_allocno.
29007 (remove_low_level_allocnos): New.
29008 (remove_unnecessary_regions): Add parameter. Call
29009 mark_all_loops_for_removal and remove_low_level_allocnos. Pass
29010 parameter to remove_unnecessary_regions.
29011 (ira_build): Remove all regions but root if the conflict table was
29012 not built. Update conflict hard regs for allocnos crossing calls.
29013
29014 * ira.c (ira_conflicts_p): New global.
29015 (ira): Define and use ira_conflicts_p.
29016
29017 * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
29018 count_spilled_pseudo, find_reg, alter_reg, finish_spills,
29019 emit_input_reload_insns, delete_output_reload): Use ira_conflicts_p.
29020
29021 2009-01-06 Ben Elliston <bje@au.ibm.com>
29022
29023 * gengtype-lex.l (YY_NO_INPUT): Define.
29024
29025 2009-01-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
29026
29027 PR c/34911
29028 * c-common.c (handle_vector_size_attribute): Also reject
29029 BOOLEAN_TYPE types.
29030
29031 2009-01-05 Sebastian Pop <sebastian.pop@amd.com>
29032
29033 PR tree-optimization/38492
29034 * graphite.c (rename_map_elt, debug_rename_elt,
29035 debug_rename_map_1, debug_rename_map, new_rename_map_elt,
29036 rename_map_elt_info, eq_rename_map_elts,
29037 get_new_name_from_old_name, bb_in_sese_p): Moved around.
29038 (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use.
29039 (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb.
29040 (sese_build_livein_liveouts): New.
29041 (new_sese, free_sese): New.
29042 (new_scop): Call new_sese.
29043 (free_scop): Call free_sese.
29044 (rename_variables_from_edge, rename_phis_end_scop): Removed.
29045 (register_old_new_names): Renamed register_old_and_new_names.
29046 (register_scop_liveout_renames, add_loop_exit_phis,
29047 insert_loop_close_phis, struct igp,
29048 default_liveout_before_guard, add_guard_exit_phis,
29049 insert_guard_phis, copy_renames): New.
29050 (translate_clast): Call insert_loop_close_phis and insert_guard_phis.
29051 (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge.
29052 (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts.
29053 (scop_adjust_phis_for_liveouts): New.
29054 (gloog): Call scop_adjust_phis_for_liveouts.
29055
29056 * graphite.h (struct sese): Documented. Added fields liveout,
29057 num_ver and livein.
29058 (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New.
29059 (new_sese, free_sese, sese_build_livein_liveouts): Declared.
29060 (struct scop): Added field liveout_renames.
29061 (SCOP_LIVEOUT_RENAMES): New.
29062
29063 2009-01-05 Harsha Jagasia <harsha.jagasia@amd.com>
29064
29065 PR tree-optimization/38510
29066 * graphite.c (recompute_all_dominators): Call mark_irreducible_loops.
29067 (translate_clast): Call recompute_all_dominators before
29068 graphite_verify.
29069 (gloog): Call recompute_all_dominators before graphite_verify.
29070
29071 2009-01-05 Harsha Jagasia <harsha.jagasia@amd.com>
29072 Jan Sjodin <jan.sjodin@amd.com>
29073
29074 PR tree-optimization/38500
29075 * graphite.c (create_sese_edges): Call fix_loop_structure after
29076 splitting blocks.
29077
29078 2009-01-05 Joel Sherrill <joel.sherrill@oarcorp.com>
29079
29080 * config.gcc: Add m32r*-*-rtems*.
29081 * config/m32r/rtems.h: New file.
29082
29083 2009-01-05 Ben Elliston <bje@au.ibm.com>
29084
29085 * Makefile.in (.po.gmo): Use mkinstalldirs, not test -d || mkdir.
29086 (.po.pox): Likewise.
29087 (po/gcc.pot): Likewise.
29088
29089 2009-01-04 David S. Miller <davem@davemloft.net>
29090
29091 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED_RTX): Delete.
29092 (STARTING_FRAME_OFFSET): Always set to zero.
29093
29094 2009-01-04 Richard Sandiford <rdsandiford@googlemail.com>
29095
29096 * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Add commentary.
29097 * tree-cfg.c (verify_gimple_assign_binary): Allow shifts of
29098 fixed-point types, and vectors of the same.
29099
29100 2009-01-04 Richard Sandiford <rdsandiford@googlemail.com>
29101
29102 * config/mips/sync.md (*mb_barrier): Rename to...
29103 (*memory_barrier): ...this.
29104
29105 2009-01-04 Jonathan Wakely <jwakely.gcc@gmail.com>
29106
29107 * doc/extend.texi (Function Attributes): Move @cindex after @item
29108 for 'artificial' and 'flatten'. Fix grammar for 'externally_visible'
29109 and put in alphabetical order. Fix 'target' name and put in order.
29110 * doc/invoke.texi (-Wstrict-null-sentinel, -fipa-matrix-reorg): Fix
29111 typos.
29112
29113 2009-01-04 Uros Bizjak <ubizjak@gmail.com>
29114
29115 * config/s390/s390.md (UNSPEC_MB): Rename from UNSPECV_MB.
29116 (memory_barrier): Expand as unspec instead of unspec_volatile.
29117 Remove mem:BLK from insn operands. Use Pmode scratch register.
29118 (*memory_barrier): Define as unspec instead of unspec_volatile.
29119 Use (match_dup 0) as input operand.
29120
29121 * config/sparc/sparc.md (UNSPEC_MEMBAR): Rename from UNSPECV_MEMBAR.
29122 * config/sparc/sync.md (memory_barrier): Expand as unspec instead of
29123 unspec_volatile. Remove mem:BLK from insn operands. Use Pmode
29124 scratch register. Remove operand 1.
29125 (*stbar): Define as unspec instead of unspec_volatile.
29126 Use (match_dup 0) as input operand, remove (const_int 8).
29127 (*membar): Define as unspec instead of unspec_volatile.
29128 Use (match_dup 0) as input operand, remove input operand 2.
29129
29130 * config/xtensa/xtensa.md (UNSPEC_MEMW): Rename from UNSPECV_MEMW.
29131 (memory_barrier): Expand as unspec instead of unspec_volatile.
29132 Remove mem:BLK from insn operands. Use Pmode scratch register.
29133 (*memory_barrier): Define as unspec instead of unspec_volatile.
29134 Use (match_dup 0) as input operand.
29135
29136 * config/ia64/sync.md (memory_barrier): Redefine as expander pattern.
29137 Remove mem:BLK from insn operands. Use Pmode scratch register.
29138 Set volatile flag on operand 0.
29139 (*memory_barrier): New insn pattern.
29140
29141 * config/rs6000/sync.md (memory_barrier): Remove mem:BLK from
29142 insn operands.
29143 (*memory_barrier): Use (match_dup 0) as input operand.
29144
29145 * config/mips/sync.md (memory_barrier): Redefine as expander pattern.
29146 Remove mem:BLK from insn operands. Use Pmode scratch register.
29147 Set volatile flag on operand 0.
29148 (*mb_internal): New insn pattern.
29149
29150 * config/alpha/sync.md (*memory_barrier): Rename from *mb_internal.
29151
29152 2009-01-04 Steven Bosscher <steven@gcc.gnu.org>
29153
29154 PR middle-end/38586
29155 * function.c (struct temp_slot): Move to the section of the file
29156 that deals with temp slots. Remove field 'address'.
29157 (temp_slot_address_table): New hash table of address -> temp slot.
29158 (struct temp_slot_address_entry): New struct, items for the table.
29159 (temp_slot_address_compute_hash, temp_slot_address_hash,
29160 temp_slot_address_eq, insert_temp_slot_address): Support functions
29161 for the new table.
29162 (find_temp_slot_from_address): Rewrite to use the new hash table.
29163 (remove_unused_temp_slot_addresses): Remove addresses of temp
29164 slots that have been made available.
29165 (remove_unused_temp_slot_addresses_1): Call-back for htab_traverse,
29166 worker function for remove_unused_temp_slot_addresses.
29167 (assign_stack_temp_for_type): Don't clear the temp slot address list.
29168 Add the temp slot address to the address -> temp slot map.
29169 (update_temp_slot_address): Update via insert_temp_slot_address.
29170 (free_temp_slots): Call remove_unused_temp_slot_addresses.
29171 (pop_temp_slots): Likewise.
29172 (init_temp_slots): Allocate the address -> temp slot map, or empty
29173 the map if it is already allocated.
29174 (prepare_function_start): Initialize temp slot processing.
29175
29176 2009-01-04 Steven Bosscher <steven@gcc.gnu.org>
29177
29178 PR middle-end/38584
29179 * cfgexpand.c (estimate_stack_frame_size): Simplify the estimate:
29180 Calculate the size of all stack vars assuming no packing of stack
29181 vars will happen, replacing a quadratic algorithm with a linear one.
29182
29183 2009-01-03 Jakub Jelinek <jakub@redhat.com>
29184
29185 PR target/38707
29186 * expmed.c (store_bit_field_1): Don't modify op0 if movstrict insn
29187 can't be used.
29188
29189 2009-01-03 Diego Novillo <dnovillo@google.com>
29190
29191 * doc/contrib.texi: Update contributions.
29192
29193 2009-01-03 Jakub Jelinek <jakub@redhat.com>
29194
29195 PR c++/38705
29196 * builtins.c (fold_builtin_memory_op): Give up if either operand
29197 is volatile. Set srctype or desttype to non-qualified version
29198 of the other type.
29199
29200 PR c/38700
29201 * builtins.c (fold_builtin_expect): Only check DECL_WEAK for VAR_DECLs
29202 and FUNCTION_DECLs.
29203
29204 2009-01-02 Kenneth Zadeck <zadeck@naturalbridge.com>
29205
29206 PR rtl-optimization/35805
29207 * df-problems.c (df_lr_finalize): Add recursive call to resolve lr
29208 problem if fast dce is able to remove any instructions.
29209 * dce.c (dce_process_block): Fix dump message.
29210
29211 2009-01-02 Mark Mitchell <mark@codesourcery.com>
29212
29213 PR 33649
29214 * tree-ssa-pre.c (compute_antic): Correct loop bounds.
29215
29216 2009-01-02 Jakub Jelinek <jakub@redhat.com>
29217
29218 PR middle-end/38690
29219 * tree-flow.h (op_code_prio, op_prio): New prototypes.
29220 * tree-pretty-print.c (op_code_prio): New function.
29221 (op_prio): No longer static. Use op_code_prio.
29222 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs):
29223 Use op_prio and op_code_prio to determine if () should be
29224 printed around operand(s) or not.
29225
29226 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
29227 dump_gimple_call, dump_gimple_switch, dump_gimple_cond,
29228 dump_gimple_label, dump_gimple_try, dump_symbols, dump_gimple_phi,
29229 dump_gimple_mem_ops, dump_bb_header, dump_bb_end, pp_cfg_jump): Use
29230 pp_character instead of pp_string for single letter printing.
29231
29232 2009-01-02 Richard Sandiford <rdsandiford@googlemail.com>
29233
29234 * doc/extend.texi: Fix '#pragma GCC option' typo.
29235
29236 2009-01-02 Richard Guenther <rguenther@suse.de>
29237
29238 * doc/install.texi (--enable-checking): Mention different
29239 default for stage1.
29240 (--enable-stage1-checking): Document.
29241
29242 2009-01-01 Andrew Pinski <pinskia@gmail.com>
29243
29244 PR middle-end/30142
29245 * tree-cfg.c (verify_expr): Add INDIRECT_REF case. Change MODIFY_EXPR
29246 case to be an error.
29247
29248 2009-01-02 Ben Elliston <bje@au.ibm.com>
29249
29250 * config/fp-bit.h (pack_d): Constify argument.
29251 * config/fp-bit.c (makenan): Constify return type. Remove casts.
29252 (isnan): Constify argument.
29253 (isinf): Likewise.
29254 (iszero): Likewise.
29255 (pack_d): Likewise.
29256 (_fpadd_parts): Constify return type.
29257 (_fpmul_parts): Likewise.
29258 (_fpdiv_parts): Likewise.
29259
29260 2009-01-01 Jakub Jelinek <jakub@redhat.com>
29261
29262 PR c/36489
29263 * c-typeck.c (add_pending_init): Add IMPLICIT argument. Only
29264 warn about overwriting initializer with side-effects or
29265 -Woverride-init if !IMPLICIT.
29266 (output_init_element): Likewise. Pass IMPLICIT down to
29267 add_pending_init.
29268 (process_init_element): Add IMPLICIT argument. Pass it down
29269 to output_init_element.
29270 (push_init_element, pop_init_level, set_designator): Adjust
29271 process_init_element callers.
29272 (set_nonincremental_init, set_nonincremental_init_from_string):
29273 Adjust add_pending_init callers.
29274 (output_pending_init_elements): Adjust output_init_element callers.
29275 * c-tree.h (process_init_element): Adjust prototype.
29276 * c-parser.c (c_parser_initelt, c_parser_initval): Adjust
29277 process_init_element callers.
29278
29279 \f
29280 Copyright (C) 2009 Free Software Foundation, Inc.
29281
29282 Copying and distribution of this file, with or without modification,
29283 are permitted in any medium without royalty provided the copyright
29284 notice and this notice are preserved.