s390.c (s390_z10_optimize_cmp): Use next/prev_active_insn to skip DEBUG_INSNs as...
[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): Use
4 next/prev_active_insn to skip DEBUG_INSNs as well.
5
6 2009-10-19 Joseph Myers <joseph@codesourcery.com>
7
8 * config/arm/arm.c (output_move_neon): Use DImode in call to
9 adjust_address.
10
11 2009-10-19 Matthias Klose <doko@ubuntu.com>
12
13 PR target/40134
14 * config.gcc (arm*-*-linux-*eabi): Use config/t-slibgcc-libgcc.
15
16 2009-10-19 Jakub Jelinek <jakub@redhat.com>
17
18 * cfgexpand.c (expand_debug_expr): Fail if bitpos < 0 for non-MEM
19 op0.
20
21 2009-10-17 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
22
23 PR middle-end/41738
24 * optabs.c (expand_binop): Make mode of shift count expression mode
25 of shift count not target.
26 Remove indent nit.
27
28 2009-10-17 Eric Botcazou <ebotcazou@adacore.com>
29
30 * tree-nested.c (convert_nonlocal_reference_stmt) <GIMPLE_COND>: New
31 case. Force using values to replace references within the statement.
32 (convert_local_reference_stmt): Likewise.
33
34 2009-10-17 Eric Botcazou <ebotcazou@adacore.com>
35
36 * gimple-low.c (lower_stmt) <GIMPLE_CALL>: If the call is noreturn,
37 remove a subsequent GOTO or RETURN statement.
38
39 2009-10-17 Andy Hutchinson <hutchinsonandy@aim.com>
40
41 * config/avr.md (*movqi): Add zero as equally preferable constraint
42 as general register.
43 (*movhi): Ditto.
44
45 2009-10-17 Eric Botcazou <ebotcazou@adacore.com>
46
47 * print-tree.c (print_node): Fix string for DECL_STRUCT_FUNCTION.
48
49 2009-10-17 Richard Guenther <rguenther@suse.de>
50
51 * lto-streamer-in.c (lto_input_location): Try to reuse
52 previous maps.
53
54 2009-10-17 Richard Guenther <rguenther@suse.de>
55
56 * lto-streamer-in.c (input_gimple_stmt): Fixup FIELD_DECL
57 operands in COMPONENT_REFs.
58
59 2009-10-17 Anatoly Sokolov <aesok@post.ru>
60
61 * targhooks.c (default_libcall_value): Don't use LIBCALL_VALUE macro
62 if not defined. Change type of second argument to const_rtx.
63 (default_function_value): Call gcc_unreachable if FUNCTION_VALUE
64 macro not defined.
65 * targhooks.h (default_libcall_value): Update prototype.
66 * target.h (struct gcc_target): Change type of second argument of
67 libcall_value to const_rtx.
68 * config/arm/arm.c (arm_libcall_value): Change type of second argument
69 to const_rtx.
70 (arm_libcall_uses_aapcs_base): Change type of argument to const_rtx.
71 * doc/tm.texi (TARGET_LIBCALL_VALUE): Revise documentation.
72
73 2009-10-17 Jakub Jelinek <jakub@redhat.com>
74
75 PR debug/40521
76 * debug.h (struct gcc_debug_hooks): Add assembly_start hook.
77 * cgraphunit.c (cgraph_optimize): Call it.
78 * dwarf2out.c (dwarf2out_init): Move .cfi_sections printing into...
79 (dwarf2out_assembly_start): ... here. New hook.
80 (dwarf2out_debug_hooks): Add dwarf2out_assembly_start.
81 * debug.c (do_nothing_debug_hooks): Do nothing for assembly_start
82 hook.
83 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
84 * sdbout.c (sdb_debug_hooks): Likewise.
85 * vmsdbgout.c (vmsdbg_debug_hooks): Add vmsdbgout_assembly_start.
86 (vmsdbgout_assembly_start): New hook.
87
88 2009-10-17 Alexandre Oliva <aoliva@redhat.com>
89
90 * rtl.h (RTL_LOCATION): Fix typo.
91
92 2009-10-17 Alexandre Oliva <aoliva@redhat.com>
93
94 * print-rtl.c (print_rtx): Print locators in asm_operands
95 and asm_input.
96
97 2009-10-17 Alexandre Oliva <aoliva@redhat.com>
98
99 PR debug/41535
100 * sched-deps.c (depl_on_debug_p): New.
101 (attach_dep_link): Reject debug deps before nondebug deps.
102 (add_to_deps_list): Insert debug deps after nondebug deps.
103 (sd_lists_empty_p): Stop at first nonempty list. Disregard debug
104 deps.
105 (sd_add_dep): Do not reject debug deps.
106 (add_insn_mem_dependence): Don't count debug deps.
107 (remove_from_deps): Likewise.
108 (sched_analyze_2): Set up mem deps on debug insns.
109 (sched_analyze_insn): Record reg uses for deps on debug insns.
110 * haifa-sched.c (schedule_insn): Reset deferred debug insn. Don't
111 try_ready nondebug insn after debug insn.
112 * ddg.c (create_ddg_dep_from_intra_loop_link,
113 create_ddg_dep_no_link): Don't reject debug deps.
114
115 2009-10-16 Richard Guenther <rguenther@suse.de>
116
117 * lto-symtab.c (merge_incomplete_and_complete_type): Remove.
118 (maybe_merge_incomplete_and_complete_type): Likewise.
119 (lto_symtab_merge): Do not call them. Do not warn for
120 complete vs. incomplete compatible types.
121 (lto_symtab_merge_decls_2): Simplify.
122 * gimple.c (gimple_force_type_merge): Remove.
123 (gimple_types_compatible_p): Make it static.
124 * gimple.h (gimple_force_type_merge): Remove.
125 (gimple_types_compatible_p): Likewise.
126
127 2009-10-16 Jakub Jelinek <jakub@redhat.com>
128
129 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Cast
130 DWARF2_ADDR_SIZE to int to avoid signed vs. unsigned warnings.
131
132 2009-10-16 Richard Guenther <rguenther@suse.de>
133
134 PR tree-optimization/41728
135 * tree-ssa-dom.c (optimize_stmt): Mark the stmt modified
136 if fold_stmt did anything.
137
138 2009-10-16 Richard Guenther <rguenther@suse.de>
139
140 PR lto/41715
141 * lto-streamer-in.c (lto_input_tree_ref): Revert last change.
142 (maybe_fixup_handled_component): New function.
143 (input_gimple_stmt): Fixup mismatched decl replacements.
144
145 2009-10-16 Richard Guenther <rguenther@suse.de>
146
147 PR lto/41713
148 * lto-streamer-out.c (lto_output_tree_ref): Handle DEBUG_EXPR_DECL
149 the same as VAR_DECL.
150
151 2009-10-16 Richard Guenther <rguenther@suse.de>
152
153 * gimple.c (iterative_hash_gimple_type): For integer types
154 also hash their minimum and maximum values and the string flag.
155 For array types hash their domain and the string flag.
156
157 2009-10-16 Richard Guenther <rguenther@suse.de>
158
159 * gimple.c (gimple_types_compatible_p): Restrict completing
160 types to record or unions. Simplify completion.
161 Do not merge records or unions with different
162 TYPE_STRUCTURAL_EQUALITY_P tag.
163 (iterative_hash_gimple_type): Restrict non-recursing into
164 pointer targets for records and unions.
165
166 2009-10-15 Jakub Jelinek <jakub@redhat.com>
167
168 PR debug/41717
169 * cfgexpand.c (expand_debug_expr): Handle CONJ_EXPR.
170 * dwarf2out.c (mem_loc_descriptor): Don't handle
171 POST_INT/POST_DEC/POST_MODIFY like SUBREG. For SUBREG
172 punt if it is not lowpart subreg or if inner mode isn't
173 MODE_INT.
174
175 2009-10-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
176
177 * config/s390/s390.c (s390_z10_optimize_cmp): Skip notes when
178 investigating previous or next insns.
179
180 2009-10-16 Eric Botcazou <ebotcazou@adacore.com>
181
182 * tree-sra.c (build_ref_for_offset_1): Update comment.
183
184 2009-10-16 Wolfgang Gellerich <gellerich@de.ibm.com>
185
186 * config/s390/s390.md (atype): Added missing values.
187
188 2009-10-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
189
190 PR target/41702
191 * pa.md (casesi): Use sign extended index in call to
192 gen_casesi64p.
193 (casesi64p): Update pattern to reflect above.
194
195 2009-10-15 Steve Ellcey <sje@cup.hp.com>
196
197 PR rtl-optimization/41697
198 * sel-sched-ir.h (_eligible_successor_edge_p): Check successor count.
199
200 2009-10-15 Michael Meissner <meissner@linux.vnet.ibm.com>
201
202 PR target/23983
203 * config/rs6000/predicates.md: Update copyright year.
204 * config/rs6000/altivec.md: Ditto.
205
206 * config/rs6000/t-rs6000 (TM_H): Add rs6000-builtin.def.
207 (MD_INCLUDES): Add a2.md.
208
209 * config/rs6000/rs6000.c (rs6000_builtin_decls): Change
210 RS6000_BUILTIN_COUNT to MAX_RS6000_BUILTINS.
211 (builtin_classify): New static vector to classify various builtins
212 to get the tree attributes correct.
213 (def_builtin): Set the attributes of builtins based on what the
214 builtin does (i.e. memory operation, floating point, saturation
215 need special attributes, others are pure functions).
216
217 * config/rs6000/rs6000.h (enum rs6000_btc): New enum to classify
218 the builtins.
219 (enum rs6000_builtins): Include rs6000-builtin.def to define the
220 builtins. Change the end marker to MAX_RS6000_BUILTINS from
221 RS6000_BUILTIN_COUNT.
222 (rs6000_builtin_decls): Change RS6000_BUILTIN_COUNT to
223 MAX_RS6000_BUILTINS.
224
225 * config/rs6000/rs6000-builtin.def: New file that combines the
226 builtin enumeration name and attributes.
227
228 2009-10-15 H.J. Lu <hongjiu.lu@intel.com>
229
230 * config/i386/linux.h (ASM_SPEC): Add --32.
231
232 2009-10-15 Jakub Jelinek <jakub@redhat.com>
233
234 * dwarf2out.c (dwarf_tag_name): Handle DW_TAG_rvalue_reference_type
235 and DW_TAG_template_alias.
236 (dwarf_attr_name): Handle DW_AT_main_subprogram,
237 DW_AT_data_bit_offset, DW_AT_const_expr, DW_AT_enum_class,
238 DW_AT_linkage_name, DW_AT_GNU_guarded_by, DW_AT_GNU_pt_guarded_by,
239 DW_AT_GNU_guarded, DW_AT_GNU_pt_guarded, DW_AT_GNU_locks_excluded,
240 DW_AT_GNU_exclusive_locks_required, DW_AT_GNU_shared_locks_required
241 and DW_AT_GNU_odr_signature.
242 (dwarf_form_name): Handle DW_FORM_sec_offset, DW_FORM_exprloc,
243 DW_FORM_flag_present and DW_FORM_ref_sig8.
244 (output_signature): Only print name on the first byte.
245 (output_die): Likewise for dw_val_class_data8.
246
247 2009-10-15 Alexander Monakov <amonakov@ispras.ru>
248
249 * doc/invoke.texi: Clarify that most optimizations are not enabled
250 without -O.
251
252 2009-10-15 Richard Guenther <rguenther@suse.de>
253
254 PR lto/41668
255 * gimple.c (compare_type_names_p): Handle anonymous names
256 differently based on new mode argument.
257 (gimple_types_compatible_p): For structs also compare the tags.
258 (iterative_hash_type_name): Rename to ...
259 (iterative_hash_name): ... this. Hash all names.
260 (iterative_hash_gimple_type): Fix hashing the struct tag of
261 pointer targets. Hash field decl names.
262
263 2009-10-15 Richard Guenther <rguenther@suse.de>
264
265 PR lto/41669
266 * gimple.c (gimple_get_alias_set): Avoid recursing on
267 invalid type topology.
268
269 2009-10-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
270
271 * config/spu/spu.c (get_branch_target): Use extract_asm_operands.
272
273 2009-10-15 Richard Guenther <rguenther@suse.de>
274
275 * tree.c (free_lang_data_in_decl): Free DECL_FCONTEXT.
276
277 2009-10-15 Jakub Jelinek <jakub@redhat.com>
278
279 * config/rs6000/option-defaults.h (OPTION_DEFAULT_SPECS): Don't
280 add --with-tune{,-32,-64} configured default for -mtune if explicit
281 -mcpu is used.
282
283 2009-10-14 Daniel Gutson <dgutson@codesourcery.com>
284
285 * config/arm/neon.md (neon_vshll_n<mode>): Checking Bounds
286 fixed.
287
288 2009-10-14 DJ Delorie <dj@redhat.com>
289
290 * config/h8300/h8300.c (F): New.
291 (Fpa): New.
292 (h8300_emit_stack_adjustment): Call them.
293 (push): Likewise.
294 (h8300_push_pop): Likewise.
295 (h8300_expand_prologue): Likewise.
296 * config/h8300/h8300.h (DWARF2_DEBUGGING_INFO): Define.
297 (MUST_USE_SJLJ_EXCEPTIONS): Define.
298 (INCOMING_RETURN_ADDR_RTX): Define.
299 (INCOMING_FRAME_SP_OFFSET): Define.
300 (DWARF_CIE_DATA_ALIGNMENT): Define.
301
302 2009-10-14 Jakub Jelinek <jakub@redhat.com>
303
304 * stor-layout.c (place_field): Don't emit -Wpadded warnings for
305 fields in builtin structs.
306 (finalize_record_size): Likewise.
307
308 2009-10-14 Richard Guenther <rguenther@suse.de>
309
310 * gimple.c (gtc_ob): New global.
311 (struct type_pair_d): Replace pointers with type UIDs.
312 (type_pair_hash): Adjust.
313 (type_pair_eq): Likewise.
314 (lookup_type_pair): Likewise. Allocate from an obstack.
315 (gimple_force_type_merge): Adjust.
316 (gimple_types_compatible_p): Likewise.
317 (free_gimple_type_tables): Free the obstack.
318
319 2009-10-14 Jakub Jelinek <jakub@redhat.com>
320
321 * tree-parloops.c (separate_decls_in_region_debug_bind): Drop debug
322 stmts setting DEBUG_EXPR_DECLs.
323
324 * cfgexpand.c (expand_debug_expr): Ignore zero-length bitfields.
325 Don't crash if mode1 is VOIDmode.
326
327 2009-09-26 Vladimir Makarov <vmakarov@redhat.com>
328
329 * params.def (PARAM_IRA_LOOP_RESERVED_REGS): New.
330 * params.h (IRA_LOOP_RESERVED_REGS): New
331 * tree-pass.h (pass_subregs_of_mode_init,
332 pass_subregs_of_mode_finish): Remove.
333 * passes.c (pass_subregs_of_mode_init,
334 pass_subregs_of_mode_finish): Remove.
335 (pass_reginfo_init): Move before loop optimizations.
336 * config/i386/i386.h (STACK_REG_COVER_CLASS): Define.
337 * common.opt (fira-loop-pressure): New.
338 * toplev.h (flag_ira_loop_pressure): New.
339 * rtl.h (init_subregs_of_mode, finish_subregs_of_mode): New
340 externals.
341 * reginfo.c (init_subregs_of_mode, finish_subregs_of_mode):
342 Make external and void type functions.
343 (gate_subregs_of_mode_init, pass_subregs_of_mode_init,
344 pass_subregs_of_mode_finish): Remove.
345 * ira-costs.c (init_costs): Call init_subregs_of_mode.
346 * regmove.c: Include ira.h.
347 (regmove_optimize): Call ira_set_pseudo_classes after IRA based
348 register pressure calculation in loops.
349 * loop-invariant.c: Include REGS_H and ira.h.
350 (struct loop_data): New members max_reg_pressure, regs_ref, and
351 regs_live.
352 (struct invariant): New member orig_regno.
353 (curr_loop): New variable.
354 (find_exits): Initialize regs_ref and regs_live.
355 (create_new_invariant): Initialize orig_regno.
356 (get_cover_class_and_nregs): New.
357 (get_inv_cost): Make aregs_needed an array. Use regs_needed as an
358 array. Add code for flag_ira_loop_pressure.
359 (gain_for_invariant): Make new_regs an array. Add code for
360 flag_ira_loop_pressure.
361 (best_gain_for_invariant): Ditto.
362 (set_move_mark): New parameter gain. Use it for debugging output.
363 (find_invariants_to_move): Make regs_needed and new_regs an array.
364 Add code for flag_ira_loop_pressure.
365 (move_invariant_reg): Set up orig_regno.
366 (move_invariants): Set up reg classes for pseudos for
367 flag_ira_loop_pressure.
368 (free_loop_data): Clear regs_ref and regs_live.
369 (curr_regs_live, curr_reg_pressure, regs_set, n_regs_set,
370 get_regno_cover_class, change_pressure, mark_regno_live,
371 mark_regno_death, mark_reg_store, mark_reg_clobber,
372 mark_reg_death, mark_ref_regs, calculate_loop_reg_pressure): New.
373 (move_loop_invariants): Calculate pressure. Initialize curr_loop.
374 * ira.c (ira): Call ira_set_pseudo_classes after IRA based
375 register pressure calculation in loops if new regs were added.
376 Call finish_subregs_of_mode.
377 * opts.c (decode_options): Set up flag_ira_loop_pressure.
378 * Makefile.in (loop-invariant.o): Add ira.h.
379 (regmove.o): Ditto.
380 * doc/invoke.texi (-fira-loop-pressure, ira-loop-reserved-regs):
381 Describe.
382 * doc/tm.texi (STACK_REG_COVER_CLASS): Describe.
383
384 2009-10-14 Richard Guenther <rguenther@suse.de>
385
386 * lto-symtab.c (lto_symtab_compatible): Fold in ...
387 (lto_symtab_merge): ... here. Rewrite both to take the
388 prevailing and a to-be-merged entry and to queue diagnostics
389 properly.
390 (lto_symtab_resolve_replaceable_p): New predicate for
391 symbol resolution.
392 (lto_symtab_resolve_can_prevail_p): Likewise.
393 (lto_symtab_resolve_symbols): Rewrite. Fold in code that
394 handles merging commons by choosing the largest decl. Fold
395 in code that gives ODR errors.
396 (lto_symtab_merge_decls_2): Simplify a lot. Emit queued
397 diagnostics here.
398 (lto_symtab_merge_decls_1): Re-structure. Deal with the
399 case of no prevailing decl here. Diagnose mismatches
400 in object types here. Drop all but the prevailing decls.
401 (lto_symtab_prevailing_decl): Return the single prevailing decl.
402 * lto-streamer-in.c (lto_input_tree_ref): Deal with
403 VIEW_CONVERT_EXPRs in decl slots. Unshare the tree in this case.
404
405 2009-10-14 Richard Guenther <rguenther@suse.de>
406
407 PR lto/41521
408 * lto-streamer-in.c (input_bb): Replace debug stmts with
409 nops instead of dropping them.
410
411 2009-10-14 Nick Clifton <nickc@redhat.com>
412
413 * gcc/doc/extended.texi: Replace the dash character with
414 @minus{} in situations where it is being used as a minus
415 symbol.
416 * gcc/doc/tm.texi: Likewise.
417 * gcc/doc/md.texi: Likewise.
418
419 2009-10-14 Jakub Jelinek <jakub@redhat.com>
420
421 PR preprocessor/41543
422 * input.h (BUILTINS_LOCATION): Change to 1 from 2.
423 Assert BUILTINS_LOCATION < RESERVED_LOCATION_COUNT.
424 * tree.c: Include intl.h.
425 (expand_location): Handle BUILTINS_LOCATION.
426 * Makefile.in (tree.o): Depend on intl.h.
427
428 PR debug/41695
429 * dwarf2out.c (dwarf2out_var_location): Always clear
430 last_postcall_label when changing last_label.
431
432 2009-10-14 Pascal Obry <obry@adacore.com>
433
434 * gcc.c (DEFAULT_SWITCH_CURTAILS_COMPILATION): Add -E.
435 (process_command): Handle -E as done with -c and -S. Do not add
436 the target executable suffix to the output file when -E is used.
437 (main): Adjust error message accordingly.
438
439 2009-10-14 Alexandre Oliva <aoliva@redhat.com>
440
441 PR debug/41343
442 PR debug/41447
443 PR debug/41264
444 PR debug/41338
445 * tree.c (tree_node_structure_for_code): DEBUG_EXPR_DECL uses
446 decl with rtl.
447 (tree_code_size): Likewise.
448
449 2009-10-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
450
451 * builtins.c (fold_builtin_1): Support complex "arc" functions.
452 * real.h (HAVE_mpc_arc): Define.
453
454 2009-10-14 Kaz Kojima <kkojima@gcc.gnu.org>
455
456 * config/sh/sh.c (TARGET_BUILTIN_DECL): Define.
457 (struct builtin_description): Add fndecl field.
458 (bdesc): Remove const qualifier. Update initializer.
459 (sh_media_init_builtins): Remove const qualifier for d. Record
460 the result of add_builtin_function to the fndecl field.
461 (sh_builtin_decl): New.
462 (sh_media_builtin_decl): New.
463
464 2009-10-14 Hans-Peter Nilsson <hp@axis.com>
465
466 PR target/38948
467 * config/cris/cris.h (SECONDARY_RELOAD_CLASS): Handle reload
468 requests between special registers.
469
470 2009-10-13 Eric Botcazou <ebotcazou@adacore.com>
471
472 * dwarf2out.c (mem_loc_descriptor): Accept UNGT as well.
473
474 2009-10-13 Richard Henderson <rth@redhat.com>
475
476 PR tree-optimization/41377
477 * tree-eh.c (unsplit_eh): Propagate degenerate PHIs.
478 (cleanup_empty_eh_merge_phis): New change_region parameter;
479 pass it on to redirect_eh_edge_1. Update callers.
480 (cleanup_empty_eh_unsplit): Don't require an existing EH label
481 at the destination block.
482
483 2009-10-13 Basile Starynkevitch <basile@starynkevitch.net>
484
485 * passes.c (register_pass): Replaced gcc_unreachable by
486 fatal_error on failure. Mentions plugins in comments & messages.
487
488 2009-10-13 Jakub Jelinek <jakub@redhat.com>
489
490 PR target/41693
491 * rtl.h (DEBUG_EXPR_TREE_DECL): Define.
492 * sched-vis.c (print_value): Use it.
493 * cselib.c (cselib_hash_rtx): Likewise.
494 * print-rtl.c (print_rtx): Likewise.
495 * cfgexpand.c (expand_debug_rtx): Likewise.
496 * var-tracking.c (vt_expand_loc_callback): Likewise.
497
498 2009-10-13 Richard Guenther <rguenther@suse.de>
499
500 PR lto/41565
501 * opts.c (handle_option): Split out code to handle setting
502 the options flag var ...
503 (set_option): ... here.
504 * opts.h (set_option): Declare.
505 * lto-opts.c (register_user_option_p): Include -fexceptions
506 and all position independent code variants.
507 (handle_common_option): Remove.
508 (lto_reissue_options): Use set_option.
509
510 2009-10-13 Martin Jambor <mjambor@suse.cz>
511
512 PR tree-optimization/41661
513 * ipa-prop.c (compute_complex_pass_through): Allow only operations
514 that are tcc_comparisons or do not change the type in any
515 un-usleless way.
516 * ipa-cp.c (ipcp_lattice_from_jfunc): Request boolean type when
517 folding tcc_comparison operations.
518
519 2009-10-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
520
521 * config/s390/s390.c (s390_encode_section_info): Handle BLKmode
522 properly.
523
524 2009-10-12 Alexandre Oliva <aoliva@redhat.com>
525
526 PR debug/41343
527 PR debug/41447
528 PR debug/41264
529 PR debug/41338
530 * tree.def (DEBUG_EXPR_DECL): New.
531 * rtl.def (DEBUG_EXPR): New.
532 * gengtype.c (adjust_field_rtx_def): Handle it.
533 * tree-ssa.c (propagate_var_def_into_debug_stmts): Rename to...
534 (insert_debug_temp_for_var_def): ... this. Drop support for
535 moving. Take iterator for def stmt; insert debug stmt before it.
536 Scan early for use count and kind in debug stmts.
537 (propagate_defs_into_debug_stmts): Rename to...
538 (insert_debug_temps_for_defs): ... this. Likewise.
539 * tree.h (DEBUG_TEMP_UID): New.
540 * tree.c (next_debug_decl_uid): New.
541 (make_node_stat): Count debug decls separately.
542 (copy_node_stat): Likewise.
543 * cfgexpand.c (expand_debug_expr): Handle DEBUG_EXPR_DECL.
544 * var-tracking.c (dv_is_decl_p): Recognize it.
545 (VALUE_RECURSED_INTO): Apply to DEBUG_EXPRs too.
546 (track_expr_p): Track expanded DEBUG_EXPR_DECLs.
547 (vt_expand_loc_callback): Expand DEBUG_EXPRs.
548 (emit_note_insn_var_location): Don't emit notes for DEBUG_EXPR_DECLs.
549 * cselib.c (rtx_equal_for_cselib_p): Handle DEBUG_EXPR.
550 (cselib_hash_rtx): Likewise.
551 (cselib_expand_value_rtx_1): Use callback for DEBUG_EXPR.
552 * tree-ssa-operands.c (get_expr_operands): Skip DEBUG_EXPR_DECLs in
553 debug bind stmts.
554 * emit-rtl.c (verify_rtx_sharing): Handle DEBUG_EXPR and VALUE.
555 (copy_rtx_if_shared_1, reset_used_flags, set_used_flags): Likewise.
556 * rtl.c (copy_rtx): Likewise.
557 (rtx_equal_p_cb, rtx_equal_p): Handle DEBUG_EXPR.
558 * print-rtl.c (print_rtx): Likewise.
559 * sched-vis.c (print_value): Likewise.
560 (print_insn): Handle DEBUG_EXPR_DECL.
561 * tree-dump.c (dequeue_and_dump): Likewise.
562 * tree-pretty-print.c (dump_decl_name, dump_generic_node): Likewise.
563 * gimple-iterator (gsi_replace): Check for same lhs.
564 (gsi_remove): Insert debug temps.
565 * tree-ssa-loop-im.c (rewrite_reciprocal): Replace with same lhs.
566 (move_computations_stmt): Drop explicit propagation into debug stmts.
567 (rewrite_bittest): Likewise. Use gsi_remove for propagation.
568 * tree-ssa-reassoc.c (rewrite_expr_tree, linearize_expr): Likewise.
569 * tree-ssa-sink.c (statement_sink_location): Likewise.
570 * tree-ssa-forwprop (forward_propagate_addr_expr): Likewise.
571 * tree-ssanames.c (release_ssa_name): Adjust for rename.
572 * tree-flow.h: Likewise.
573 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Don't mark
574 debug temps without values.
575 (eliminate_unnecessary_stmts): Don't discard just-inserted
576 debug stmts.
577
578 2009-10-12 Hans-Peter Nilsson <hp@axis.com>
579
580 PR target/26515
581 * config/cris/cris.md (andu): Check that operand 1 is one of the
582 general registers. Fix typo in head comment.
583
584 2009-10-12 Stefan Dösinger <stefan@codeweavers.com>
585
586 * config/i386/i386.md (vswapmov): New.
587 * config/i386/i386.c (ix86_handle_fndecl_attribute): New.
588 (ix86_function_ms_hook_prologue): New.
589 (ix86_expand_prologue): Handle ms_hook_prologue attribute.
590 * configure.ac: Test for swap suffix support in as.
591 * configure: Rebuild.
592
593 2009-10-12 Jakub Jelinek <jakub@redhat.com>
594
595 PR target/41680
596 * config/i386/i386.md (split after *testqi_ext_3_rex64): Only narrow
597 paradoxical subregs to prevent partial register stalls if the inner
598 mode is integer mode.
599
600 2009-10-12 Uros Bizjak <ubizjak@gmail.com>
601
602 * config/i386/i386.md (*setcc_<mode>_2): Remove insn pattern.
603
604 2009-10-12 Dodji Seketeli <dodji@redhat.com>
605
606 PR c++/41570
607 * gcc/dwarf2out.c (template_parameter_pack_die,
608 gen_formal_parameter_pack_die): Use add_name_and_src_coords_attributes.
609
610 2009-10-12 Alexandre Oliva <aoliva@redhat.com>
611
612 PR debug/41616
613 * tree-into-ssa.c (insert_phi_nodes_for): Build debug bind stmts
614 on updates too.
615 (maybe_register_def): Likewise. Take stmt iterator.
616 (rewrite_update_stmt): Take stmt iterator and pass it on.
617 (rewrite_update_enter_block): Pass stmt iterator.
618
619 2009-10-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
620
621 * config/spu/spu.c (TARGET_BUILTIN_DECL): Define.
622 (spu_builtin_decl): New function.
623
624 2009-10-12 Uros Bizjak <ubizjak@gmail.com>
625
626 * config/i386/i386.md (SWIM): New mode iterator.
627 (mov<mode>cc): Macroize expander from mov{qi,hi,si,di}cc patterns
628 using SWIM mode iterator.
629 (x86_mov<mode>cc_0_m1): Macroize insn from x86_mov{si,di}cc_0_m1
630 patterns using SWI48 mode iterator.
631 (*x86_mov<mode>cc_0_m1_se): Macroize insn from
632 *x86_mov{si,di}cc_0_m1_se patterns using SWI48 mode iterator.
633 (*x86_mov<mode>cc_0_m1_neg): New insn pattern.
634 (*mov<mode>cc_noc): Macroize insn from *mov{hi,si,di}cc_noc
635 patterns using SWI248 mode iterator.
636 * config/i386/i386.c (ix86_expand_int_movcc): Update the call to
637 gen_x86_movdicc_0_m1_rex64 for renamed function
638
639 2009-10-11 Jose Ruiz <ruiz@adacore.com>
640 Eric Botcazou <ebotcazou@adacore.com>
641
642 PR target/33743
643 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Define.
644 * config/sparc/sol2-unwind.h: New file.
645
646 2009-10-11 Olivier Hainque <hainque@adacore.com>
647 Eric Botcazou <ebotcazou@adacore.com>
648
649 PR target/33743
650 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Define.
651 * config/i386/sol2-unwind.h: New file.
652
653 2009-10-11 H.J. Lu <hongjiu.lu@intel.com>
654
655 PR target/41665
656 * config/i386/i386.md (addsi_1_zext): Get the proper second
657 operand for lea.
658
659 2009-10-11 Richard Sandiford <rdsandiford@googlemail.com>
660
661 * simplify-rtx.c (simplify_replace_rtx): Use rtx_equal_p for
662 all OLD_RTXes, not just REGs. Use copy_rtx to create the
663 replacement value.
664
665 2009-10-11 Richard Guenther <rguenther@suse.de>
666
667 * gimple.c (iterative_hash_type_name): Do not handle special
668 anonymous names.
669
670 2009-10-11 Uros Bizjak <ubizjak@gmail.com>
671
672 * config/i386/i386.md (*setcc_di_1): New insn_and_split pattern.
673 (*setcc_si_1_and): Ditto.
674 (*setcc_si_1_movzbl): Ditto.
675 (*setcc_<mode>_2): Ditto.
676 (*setcc_qi): Rename from *setcc_1.
677 (*setcc_qi_slp): Rename from *setcc_2.
678
679 (*zero_extendqihi2_movzbw_and splitter): Use ix86_expand_clear.
680 (*zero_extendqisi2_movzbw_and splitter): Ditto.
681
682 * config/i386/i386.c (ix86_expand_clear): Remove reload_completed from
683 "if" condition, there is already assert with reload_completed present.
684
685 2009-10-11 Gerald Pfeifer <gerald@pfeifer.com>
686
687 * plugin.c (try_init_one_plugin): Improve constness of variable err.
688
689 2009-10-10 Gerald Pfeifer <gerald@pfeifer.com>
690
691 * doc/install.texi (Final install): Refer to
692 http://gcc.gnu.org/bugs/ for bug reporting.
693
694 2009-10-10 Peter Bergner <bergner@vnet.ibm.com>
695
696 * configure.ac: Add test for dci instruction.
697 * configure: Regenerate.
698 * config.in: Likewise.
699 * config.gcc: Handle --with-cpu=476 and --with-cpu=476fp.
700 * doc/invoke.texi: Add cpu_type 476 and 476fp.
701 (-mmulhw): Add 476 to description.
702 (-mdlmzb): Likewise.
703 * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=476.
704 * config/rs6000/rs6000.c (processor_costs): Add ppc476_cost.
705 (processor_target_table): Add 476 and 476fp entries.
706 (rs6000_override_options): Use ppc476_cost for PROCESSOR_PPC476.
707 (rs6000_issue_rate): Add CPU_PPC476.
708 * config/rs6000/rs6000.h (ASM_CPU_476_SPEC): Define.
709 (ASM_CPU_SPEC): Pass %(asm_cpu_476) for -mcpu=476 and -mcpu=476fp.
710 (processor_type): Add PROCESSOR_PPC476.
711 (EXTRA_SPECS): Add asm_cpu_476 string.
712 * config/rs6000/rs6000.md: (define_attr "type"): Add isel attribute.
713 (define_attr "cpu"): Add ppc476.
714 Include 476.md.
715 Update comments for 476.
716 (isel_signed, isel_unsigned): Change to use "isel" type attribute.
717 * config/rs6000/vxworks.h (CPP_SPEC): Handle 464 and 476.
718 Update copyright year.
719 * config/rs6000/476.md: New file.
720 * config/rs6000/40x.md: Add description for "isel" attribute.
721 Update copyright year.
722 * config/rs6000/440.md: Likewise.
723 * config/rs6000/603.md: Likewise.
724 * config/rs6000/6xx.md: Likewise.
725 * config/rs6000/7450.md: Likewise.
726 * config/rs6000/7xx.md: Likewise.
727 * config/rs6000/8540.md: Likewise.
728 * config/rs6000/cell.md: Likewise.
729 * config/rs6000/e300c2c3.md: Likewise.
730 * config/rs6000/e500mc.md: Likewise.
731 * config/rs6000/mpc.md: Likewise.
732 * config/rs6000/power4.md: Likewise.
733 * config/rs6000/power5.md: Likewise.
734 * config/rs6000/power6.md: Likewise.
735 * config/rs6000/power7.md: Likewise.
736 * config/rs6000/rios1.md: Likewise.
737 * config/rs6000/rios2.md: Likewise.
738 * config/rs6000/rs64.md: Likewise.
739
740 2009-10-10 Richard Guenther <rguenther@suse.de>
741
742 PR tree-optimization/41654
743 * tree-ssa-ifcombine.c (ifcombine_ifandif): Properly canonicalize
744 a cond expr before calling gimple_cond_set_condition_from_tree.
745 (ifcombine_iforif): Likewise.
746
747 2009-10-09 Ian Lance Taylor <iant@google.com>
748
749 * configure.ac: Use AC_SEARCH_LIBS to find dlopen.
750 * configure: Rebuild.
751
752 2009-10-09 Neil Vachharajani <nvachhar@google.com>
753
754 * doc/cpp.texi (Other Directives): Do not list #ident and #sccs as
755 deprecated.
756
757 2009-10-09 Richard Guenther <rguenther@suse.de>
758
759 PR lto/41638
760 * target-def.h (TARGET_BUILTIN_DECL): Define.
761 (TARGET_INITIALIZER): Add TARGET_BUILTIN_DECL.
762 * target.h (struct gcc_target): Add builtin_decl target hook.
763 * doc/tm.texi (TARGET_BUILTIN_DECL): Document.
764 * lto-streamer-in.c (lto_get_builtin_tree): Fix handling of
765 target builtins.
766 * lto-streamer-out.c (lto_output_tree_pointers): Use sorry,
767 not gcc_unreachable.
768 (lto_output_builtin_tree): Sorry if the target does not support
769 streaming target builtins.
770 * config/rs6000/rs6000.c (TARGET_BUILTIN_DECL): Define.
771 (rs6000_builtin_decl): New function.
772 * config/i386/i386.c (TARGET_BUILTIN_DECL): Define.
773 (ix86_builtin_decl): New function.
774
775 2009-10-09 Jakub Jelinek <jakub@redhat.com>
776
777 PR preprocessor/41445
778 * c-ppoutput.c (do_line_change): New function.
779 (cb_line_change): Use it.
780 (scan_translation_unit): Call do_line_change if
781 avoid_paste or PREV_WHITE and token location is on a different line
782 than print.src_line.
783
784 PR debug/40521
785 * dwarf2out.c (dwarf2out_init): Test whether
786 HAVE_GAS_CFI_SECTIONS_DIRECTIVE is non-zero instead of checking
787 it is defined.
788
789 PR rtl-optimization/41646
790 * calls.c (expand_call): For BLKmode types returned in registers
791 avoid likely spilled hard regs in copy_blkmode_from_reg generated
792 insns.
793
794 2009-10-09 Richard Guenther <rguenther@suse.de>
795
796 PR tree-optimization/41634
797 * tree-ssa-dom.c (remove_local_expressions_from_table): Assert
798 we remove the correct elements.
799 (optimize_stmt): Make sure to update stmt operands before
800 optimizing redundancies.
801
802 2009-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
803
804 * config/s390/s390.md ("prefetch"): Remove stcmh for prefetching.
805
806 2009-10-09 Richard Guenther <rguenther@suse.de>
807
808 PR driver/41637
809 * lto-wrapper.c (ltrans_output_file, flto_out, args_name): New
810 globals.
811 (lto_wrapper_exit): New function.
812 (fatal): Use it.
813 (fatal_perror): Likewise.
814 (fork_execute): Use global args_name, do not free it.
815 (run_gcc): Use global ltrans_output_file, flto_out, do not free them.
816 * lto-streamer.h: Remove duplicate prototypes.
817
818 2009-10-09 Richard Guenther <rguenther@suse.de>
819
820 * cgraph.c (cgraph_create_edge): Check for NULL call_stmt
821 before calling stmt_can_throw_external.
822
823 2009-10-09 Eric Botcazou <ebotcazou@adacore.com>
824
825 PR tree-optimization/40071
826 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Build a ref-all
827 pointer if the original data reference doesn't conflict with the
828 created vector data reference. Fix long line.
829
830 2009-10-09 Uros Bizjak <ubizjak@gmail.com>
831
832 * config/i386/i386.md (any_div): New code iterator.
833 (u): Handle div and udiv.
834 (sgnprefix): Ditto.
835 (<u>divqi3): Macroize insn from {,u}divqi3 using any_div
836 code iterator.
837 (lfloor<MODEF:mode><SWI48:mode>2): Macroize insn from
838 lfloor<mode>{si,di}2 patterns using SWI48 mode iterator.
839 (lceil<MODEF:mode><SWI48:mode>2): Macroize insn from
840 lceil<mode>{si,di}2 patterns using SWI48 mode iterator.
841
842 2009-10-08 Joseph Myers <joseph@codesourcery.com>
843
844 * gcc.c (main): Remove trailing "." from diagnostics.
845
846 2009-10-08 Cary Coutant <ccoutant@google.com>
847
848 Add support for debugging with ICF (Identical Code Folding).
849 * calls.c (debug.h): New #include.
850 (emit_call_1): Call virtual_call_token debug hook.
851 * common.opt (-fenable-icf-debug): New option.
852 * dwarf2out.c (dwarf2_debug_hooks): Add entries for new hooks (two
853 locations in the source).
854 (poc_label_num): New variable.
855 (dcall_entry, vcall_entry): New typedefs.
856 (dcall_table, vcall_table): New variables.
857 (struct vcall_insn): New type.
858 (vcall_insn_table): New variable.
859 (DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION): New macros.
860 (size_of_dcall_table): New function.
861 (output_dcall_table): New function.
862 (size_of_vcall_table): New function.
863 (output_vcall_table): New function.
864 (dwarf2out_direct_call): New function.
865 (vcall_insn_table_hash): New function.
866 (vcall_insn_table_eq): New function.
867 (dwarf2out_virtual_call_token): New function.
868 (dwarf2out_virtual_call): New function.
869 (dwarf2out_init): Allocate new tables and sections.
870 (prune_unused_types): Mark DIEs referenced from direct call table.
871 (dwarf2out_finish): Output direct and virtual call tables.
872 * final.c (final_scan_insn): Call direct_call and virtual_call
873 debug hooks.
874 * debug.h (struct gcc_debug_hooks): Add direct_call,
875 virtual_call_token, virtual_call hooks.
876 (debug_nothing_uid): New function.
877 * debug.c (do_nothing_debug_hooks): Add dummy entries for new hooks.
878 (debug_nothing_uid): New function.
879 * dbxout.c (dbx_debug_hooks): Add dummy entries for new hooks.
880 (xcoff_debug_hooks): Likewise.
881 * sdbout.c (sdb_debug_hooks): Likewise.
882 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
883 * doc/invoke.texi (-fenable-icf-debug): New option.
884
885 2009-10-08 Alexandre Oliva <aoliva@redhat.com>
886
887 PR debug/41353
888 * regmove.c (regmove_backward_pass): Replace src with dst in the
889 debug insn, and check for dst before rather than after.
890
891 2009-10-08 Janis Johnson <janis187@us.ibm.com>
892
893 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Remove.
894 (TARGET_DELEGITIMIZE_ADDRESS): Likewise.
895
896 2009-10-08 Jan Hubicka <jh@suse.cz>
897
898 PR middle-end/41626
899 * cgraphbuild.c (record_reference): When parameter DATA is NULL,
900 do not mark cgraph nodes as needed.
901 (record_references_in_initializer): Add new only_vars parameter.
902 * cgraph.h (record_references_in_initializer): New parameter.
903 * varasm.c (assemble_variable): Update call.
904 * varpool.c (varpool_analyze_pending_decls): Always look for
905 referenced vars.
906
907 2009-10-08 Anatoly Sokolov <aesok@post.ru>
908
909 * config/avr/avr.c (last_insn_address) Remove variable.
910 (expand_prologue): Don't initialise last_insn_address variable.
911 (final_prescan_insn): Don't output insn size.
912 * config/avr/avr.opt (msize): Remove switch.
913 * doc/invoke.texi (AVR Options): Remove documentation of -msize
914 switch.
915
916 2009-10-08 Adam Nemet <anemet@caviumnetworks.com>
917
918 * combine.c (label_tick_ebb_start): Fix comment.
919 (combine_instructions): Set label_tick and label_tick_ebb_start before
920 calling setup_incoming_promotions. Start them from 1. Increment
921 label_tick instead of deriving it from the BB index. Rather than
922 comparing ticks use the block from the previous iteration to decide
923 whether to start a new EBB. Remove empty lines before function.
924
925 2009-10-08 Michael Matz <matz@suse.de>
926
927 PR middle-end/41573
928 * builtins.c (fold_builtin_isascii): Use fold_build2.
929 (fold_builtin_isdigit): Ditto.
930 * except.c (duplicate_eh_regions_1): Tolerate NULL labels.
931 * tree-cfg.c (struct rus_data, remove_useless_stmts_warn_notreached,
932 remove_useless_stmts_cond, remove_useless_stmts_tf,
933 remove_useless_stmts_tc, remove_useless_stmts_bind,
934 remove_useless_stmts_goto, remove_useless_stmts_label,
935 remove_useless_stmts_1, remove_useless_stmts,
936 pass_remove_useless_stmts): Remove.
937 * tree-pass.h (pass_remove_useless_stmts): Don't declare.
938 * passes.c (init_optimization_passes): Don't add
939 pass_remove_useless_stmts.
940 * tree-eh.c (lower_eh_constructs_2): Handle empty cleanups.
941 * tree.c (free_lang_data_in_decl): Don't clear DECL_INITIAL of
942 static constants.
943 * lto-symtab.c (lto_symtab_register_decl): Accepts DECL_INITIAL
944 for static constants.
945 * lto-streamer-out.c (output_gimple_stmt): Handle GIMPLE_NOP.
946 * lto-streamer-in.c (input_gimple_stmt): Handle GIMPLE_NOP.
947
948 2009-10-08 Richard Guenther <rguenther@suse.de>
949
950 * gimple.c (free_gimple_type_tables): New function.
951 * gimple.h (free_gimple_type_tables): Declare.
952
953 2009-10-07 Mark Heffernan <meheff@google.com>
954
955 * ipa-prop.c (ipa_print_node_params) Only print
956 names of named arguments.
957
958 2009-10-08 Rafael Avila de Espindola <espindola@google.com>
959
960 * gcc.c (LINK_COMMAND_SPEC): Pass libc with -pass-through if it is
961 being statically linked.
962
963 2009-10-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
964
965 * collect2.c (add_lto_object): Only define if OBJECT_FORMAT_NONE.
966
967 2009-10-08 Jan Hubicka <jh@suse.cz>
968
969 PR bootstrap/41620
970 * ipa.c (cgraph_externally_visible_p,
971 function_and_variable_visibility,
972 whole_program_function_and_variable_visibility): Skip non-finalized
973 nodes.
974
975 2009-10-08 Nick Clifton <nickc@redhat.com>
976
977 * config/mn10300/mn10300.h (CONSTANT_ADDRESS_P): Do not allow
978 CONST_DOUBLEs.
979
980 2009-10-08 Andreas Tobler <a.tobler@schweiz.org>
981
982 PR bootstrap/37739
983 * config.host: Use config/x-cflags-O1 for powerpc FreeBSD.
984
985 2009-10-07 Joseph Myers <joseph@codesourcery.com>
986
987 PR c/41182
988 * c-common.c (c_fully_fold_internal): Strip nops from the result
989 of recursive calls to c_fully_fold_internal.
990 (c_wrap_maybe_const): New.
991 (c_save_expr): Use c_wrap_maybe_const.
992 * c-common.h (c_wrap_maybe_const): Declare.
993 * c-typeck.c (build_conditional_expr, c_finish_stmt_expr,
994 build_binary_op): Use c_wrap_maybe_const.
995
996 2009-10-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
997
998 * real.c: Fix comment to reflect actual exponent size.
999
1000 2009-10-08 Ben Elliston <bje@au.ibm.com>
1001
1002 * config/rs6000/a2.md: Add FSF comment header.
1003
1004 2009-10-07 Uros Bizjak <ubizjak@gmail.com>
1005
1006 * config/i386/i386.md (any_extend): New code iterator.
1007 (u, s): New code attributes.
1008 (sgnprefix): Ditto.
1009 (DWIH): Rewrite as code iterator for SI and DI modes.
1010 (DWI): Rewrite as mode attribute.
1011 (dwi): New mode attribute.
1012 (di): Depend on SI mode and DI mode.
1013 (doubleint_general_operand): Remove mode attribute.
1014
1015 (*lea_1): Macroize insn from *lea_1_rex64 and *lea_1 patterns using
1016 DWIH mode iterator.
1017
1018 (*add<mode>3_doubleword): Use DWIH as the base mode iterator.
1019 (*sub<mode>3_doubleword): Ditto.
1020
1021 (mul<mode>3): Macroize expander from mul{hi,si,di}3 patterns
1022 using SWIM248 mode iterator.
1023 (*mul<mode>3_1): Macroize insn from mul{si,di}3_1 patterns
1024 using SWI48 mode iterator.
1025 (<u>mul<mode><dwi>3): Macroize expander from {,u}mul{sidi,diti}3
1026 patterns using DWIH mode iterator and any_extend code iterator.
1027 (<u>mulqihi3): Macroize expander from {,u}mulqihi3 patterns
1028 using any_extend code iterator.
1029 (*<u>mul<mode><dwi>3_1): Macroize insn from {,u}mul{sidi,diti}3_1
1030 patterns using DWIH mode iterator and any_extend code iterator.
1031 (*<u>mulqihi3_1): Macroize insn from {,u}mulqihi3_1 patterns
1032 using any_extend code iterator.
1033 (<s>mul<mode>3_highpart): Macroize expander from
1034 {s,u}mul{si,di}3_highpart patterns using DWIH mode iterator
1035 and any_extend code iterator.
1036 (*<s>muldi3_highpart_1): Macroize insn from
1037 *{s,u}muldi3_highpart_rex64 patterns using any_extend code iterator.
1038 (*<s>mulsi3_highpart_1): Macroize insn from *{s,u}mulsi3_highpart_1
1039 patterns using any_extend code iterator.
1040 (*<s>mulsi3_highpart_zext): Macroize insn from
1041 *{s,u}mulsi3_highpart_zext patterns using any_extend code iterator.
1042
1043 2009-10-07 Jakub Jelinek <jakub@redhat.com>
1044
1045 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Don't add
1046 DW_AT_const_value if VAR_DIE already has DW_AT_abstract_origin
1047 refering to a DIE with DW_AT_const_value.
1048
1049 2009-10-07 Vladimir Makarov <vmakarov@redhat.com>
1050
1051 PR middle-end/22072
1052 * ira-lives.c (check_and_make_def_conflict): Process all operands.
1053
1054 2009-10-06 Jan Hubicka <jh@suse.cz>
1055
1056 * cgraph.c (cgraph_node_can_be_local): Handle externally visible nodes
1057 correctly.
1058
1059 2009-10-06 Uros Bizjak <ubizjak@gmail.com>
1060
1061 * config/i386/i386.md (*lea_1_rex64, *lea_1, *lea_1_zext,
1062 *lea_2_rex64): Move before *add<mode>_1 pattern.
1063
1064 2009-10-07 Jan Hubicka <jh@suse.cz>
1065
1066 * collect2.c (main): Add -fno-whole-program.
1067 * gcc.c (set_collect_gcc_options): Do not remove whole program here.
1068
1069 2009-10-07 Jan Hubicka <jh@suse.cz>
1070
1071 * lto-symtab.c (lto_cgraph_replace_node): Assert that inline clones
1072 has no address taken.
1073 * cgraph.c (cgraph_mark_needed_node): Assert that inline clones are
1074 never needed.
1075 (cgraph_clone_node): Clear externally_visible flag for clones.
1076 * cgraph.h (cgraph_only_called_directly_p,
1077 cgraph_can_remove_if_no_direct_calls_p): New predicates.
1078 * tree-pass.h (pass_ipa_whole_program_visibility): Declare.
1079 * ipa-cp.c (ipcp_cloning_candidate_p): Use new predicate.
1080 (ipcp_initialize_node_lattices, ipcp_estimate_growth,
1081 ipcp_insert_stage): Likwise.
1082 * cgraphunit.c (cgraph_decide_is_function_needed): Do not compute
1083 externally_visible flag.
1084 (verify_cgraph_node): Verify that inline clones look right.
1085 (process_function_and_variable_attributes): Do not set
1086 externally_visible flags.
1087 (ipa_passes): Avoid executing small_ipa_passes at LTO stage; they've
1088 been already run.
1089 * lto-cgraph.c (lto_output_node): Assert that inline clones are not
1090 boundaries.
1091 * ipa-inline.c (cgraph_clone_inlined_nodes): Use new predicates;
1092 clear externally_visible when turning into inline clones
1093 (cgraph_mark_inline_edge): Use new predicates.
1094 (cgraph_estimate_growth): Likewise.
1095 (cgraph_decide_inlining): Likewise.
1096 * ipa.c (cgraph_postorder): Likewise.
1097 (cgraph_remove_unreachable_nodes): Likewise; sanity check
1098 that inline clones are not needed.
1099 (cgraph_externally_visible_p): New predicate.
1100 (function_and_variable_visibility): Add whole_program parameter;
1101 always set externally_visible flag; handle COMDAT function
1102 privatization.
1103 (local_function_and_variable_visibility): New function.
1104 (gate_whole_program_function_and_variable_visibility): New function.
1105 (whole_program_function_and_variable_visibility): New function.
1106 (pass_ipa_whole_program_visibility): New function.
1107 * passes.c (init_optimization_passes): Add whole program visibility
1108 pass.
1109 (do_per_function_toporder, function_called_by_processed_nodes_p): Do
1110 not care about needed/reachable flags.
1111 * varpool.c: Include flags.h
1112 (decide_is_variable_needed): When doing LTO assume whole-program mode.
1113 (varpool_finalize_decl): When we are in LTO read-back, all variables
1114 are analyzed.
1115 (varpool_analyze_pending_decls): Skip analyzis of analyzed vars.
1116
1117 2009-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1118
1119 * config/s390/tpf.h (TARGET_DEFAULT): Remove MASK_HARD_FLOAT and
1120 add MASK_HARD_DFP.
1121
1122 2009-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1123
1124 * config.gcc: Don't include the makefile fragments intended for
1125 libgcc.
1126 * config/s390/fixdfdi.h: File removed.
1127 * config/s390/libgcc-glibc.ver: File removed.
1128 * config/s390/s390.h: Remove the fixdfdi.h hack.
1129 * config/s390/t-crtstuff: File moved to libgcc dir.
1130 * config/s390/t-linux: Likewise.
1131 * config/s390/t-tpf: libgcc specific parts removed.
1132 * config/s390/t-linux64: Likewise.
1133
1134 2009-10-06 Jerry Quinn <jlquinn@optonline.net>
1135
1136 * Makefile.in (lto-wrapper): Use COMPILER and ALL_COMPILERFLAGS.
1137 (lto-compress.o): Likewise.
1138
1139 2009-10-07 Danny Smith <dannysmith@users.sourceforge.net>
1140
1141 PR target/41512
1142 * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't propagate
1143 dllexport to class members here.
1144 (i386_pe_determine_dllimport_p): Only check static class data for
1145 definition.
1146 (i386_pe_encode_section_info): Don't recheck DECL_DLLIMPORT_P.
1147 * config/i386/winnt-cxx.c (i386_pe_type_dllimport_p): Only check
1148 functions for vague linkage.
1149 (i386_pe_type_dllexport_p): Fix formatting.
1150 (maybe_add_dllexport) New function.
1151 (i386_pe_adjust_class_at_definition): Use it to propagate dllexport
1152 to class members.
1153
1154 2009-10-07 Ben Elliston <bje@au.ibm.com>
1155
1156 * config/rs6000/a2.md: Remove duplicated lines.
1157
1158 2009-10-07 Ben Elliston <bje@au.ibm.com>
1159
1160 * config.gcc (powerpc*-*-*): Handle a2.
1161 * config/rs6000/rs6000.md (cpu): Add ppca2. Include "a2.md".
1162 * config/rs6000/a2.md: New file.
1163 * config/rs6000/rs6000.opt (mno-update): New.
1164 (mupdate): Return to using a mask, not a var.
1165 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for a2.
1166 (enum processor_type): Add PROCESSOR_PPCA2.
1167 * config/rs6000/rs6000.c (ppca2_cost): New costs.
1168 (rs6000_override_options): Add "a2" to processor_target_table.
1169 Update rs6000_always_hint logic. Correctly set rs6000_cost for a2.
1170 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=a2.
1171
1172 2009-10-06 Uros Bizjak <ubizjak@gmail.com>
1173
1174 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
1175 Use explicit gen_truncxfsf2 and gen_truncxfdf2 references to avoid
1176 reference to nonexistent gen_truncxfxf2 function.
1177
1178 2009-10-06 Uros Bizjak <ubizjak@gmail.com>
1179
1180 * config/i386/i386.md (SWI48, SDWIM, DWI): New mode iterators.
1181 (DWIH, g, di, doubleint_general_operand): New mode attributes.
1182 (general_operand): Handle TI mode.
1183 (add<mode>3): Macroize expander from add{qi,hi,si,di,ti}3 patterns
1184 using SDWIM mode iterator.
1185 (*add<mode>3_doubleword): New insn_and_split pattern. Macroize
1186 pattern from *add{di,ti}3_1 patterns and corresponding splitters
1187 using DWI mode iterator.
1188 (add<mode>3_carry): Macroize insn from add{qi,hi,si,di}3_carry
1189 patterns using SWI mode iterator.
1190 (*add<mode>3_cc): Macroize insn from add{si,di}3_cc patterns
1191 using SWI48 mode iterator.
1192 (*add<mode>_1): Ditto from add{si,di}_1 patterns.
1193 (*add<mode>_2): Ditto from add{si,di}_2 patterns.
1194 (*add<mode>_3): Ditto from add{si,di}_3 patterns.
1195 (*add<mode>_5): Ditto from add{si,di}_5 patterns.
1196 (sub<mode>3): Macroize expander from sub{qi,hi,si,di,ti}3 patterns
1197 using SDWIM mode iterator.
1198 (*sub<mode>3_doubleword): New insn_and_split pattern. Macroize
1199 pattern from *sub{di,ti}3_1 patterns and corresponding splitters
1200 using DWI mode iterator.
1201 (sub<mode>3_carry): Macroize insn from sub{qi,hi,si,di}3_carry
1202 patterns using SWI mode iterator.
1203 (*sub<mode>_1): Ditto from from sub{qi,hi,si,di}_1 patterns.
1204 (*sub<mode>_2): Ditto from sub{qi,hi,si,di}_2 patterns.
1205 (*sub<mode>_3): Ditto from sub{qi,hi,si,di}_3 patterns.
1206 (<plusminus_insn>xf3): Macroize expander from addxf3 and subxf3
1207 patterns using plusminus code iterator.
1208 (<plusminus_insn><mode>3): Macroize expander from add<mode>3 and
1209 sub<mode>3 patterns using plusminus code iterator.
1210 * config/i386/i386.c (override_options): Update the call to
1211 gen_subdi_carry_rex64 for renamed function.
1212 (ix86_expand_int_addcc): Update calls to gen_subdi3_carry_rex64
1213 and gen_adddi3_carry_rex64 for renamed functions. Use indirect
1214 calls to instruction expanders.
1215
1216 2009-10-06 Martin Jambor <mjambor@suse.cz>
1217
1218 PR bootstrap/41395
1219 * opts.c (decode_options): Run IPA-SRA at -O2.
1220
1221 2009-10-06 Richard Guenther <rguenther@suse.de>
1222
1223 * lto-symtab.c (lto_symtab_entry_hash): Hash strings, not pointers.
1224
1225 2009-10-06 Tobias Burnus <burnus@net-b.de>
1226
1227 PR lto/41591
1228 * doc/invoke.texi (-flto,-fwhole-program): Make clear that the
1229 -flto and -fwhole-program flags can be combined.
1230
1231 2009-10-06 Ryan Mansfield <rmansfield@qnx.com>
1232
1233 PR driver/41217
1234 * gcc.c (process_command): Check that -o argument was specified.
1235
1236 2009-10-06 Jerry Quinn <jlquinn@optonline.net>
1237
1238 * gimple.c (gimple_type_hash): Use CONST_CAST_TREE to fix compilation.
1239
1240 2009-10-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1241
1242 * c.opt (Wjump-misses-init): Fix typo to enable for ObjC.
1243 * doc/invoke.texi (Warning Options): Annotate allowed languages
1244 for -Wunsuffixed-float-constants.
1245
1246 2009-10-05 Jakub Jelinek <jakub@redhat.com>
1247
1248 * dwarf2out.c (modified_type_die): Don't add DW_AT_name to
1249 DW_TAG_{const,volatile}_type if its DW_AT_type already has the
1250 same name and isn't the main variant.
1251
1252 PR debug/41558
1253 * dwarf2out.c (loc_by_reference): Removed.
1254 (dw_loc_list_1): New function.
1255 (dw_loc_list): Remove toplev argument, add want_address argument.
1256 Don't look at decl_by_reference_p at all. Use dw_loc_list_1.
1257 (loc_list_from_tree) <case VAR_DECL>: Pass want_address rather than
1258 want_address == 2 to dw_loc_list. For successful dw_loc_list
1259 set have_address to 1 only if want_address is not 0.
1260
1261 2009-10-05 Richard Sandiford <rdsandiford@googlemail.com>
1262
1263 * config/mips/mips-protos.h (mips_trampoline_code_size): Declare.
1264 * config/mips/mips.h (TRAMPOLINE_SIZE): Redefine as the size of
1265 a code block followed by two pointers.
1266 (TRAMPOLINE_ALIGNMENT): Define to 64 for 32-bit targets too.
1267 * config/mips/mips.c (MIPS_LOAD_PTR): New macro.
1268 (MIPS_MOVE): Likewise.
1269 (MIPS_LUI): Likewise.
1270 (MIPS_JR): Likewise.
1271 (MIPS_BAL): Likewise.
1272 (MIPS_NOP): Likewise.
1273 (mips_asm_trampoline_template): Delete.
1274 (mips_trampoline_code_size): New function.
1275 (mips_trampoline_init): Add shorter sequences for all cases
1276 except Pmode == DImoe && !TARGET_USE_PIC_FN_ADDR_REG.
1277 Calculate the opcodes directly, rather than copying from a template.
1278 Only flush the code part of the trampoline.
1279 (TARGET_ASM_TRAMPOLINE_TEMPLATE): Delete.
1280
1281 2009-10-05 Richard Sandiford <rdsandiford@googlemail.com>
1282
1283 * config/mips/mips.h (DWARF_FRAME_RETURN_COLUMN): Replace
1284 GP_REG_FIRST + 31 with RETURN_ADDR_REGNUM.
1285 (INCOMING_RETURN_ADDR_RTX): Likewise.
1286 (FUNCTION_PROFILER): Likewise. Replace GP_REG_FIRST + 1
1287 with AT_REGNUM.
1288 * config/mips/sdemtk.h (FUNCTION_PROFILER): Replace GP_REG_FIRST + 31
1289 with RETURN_ADDR_REGNUM.
1290 (MIPS_SAVE_REG_FOR_PROFILING_P): Likewise.
1291 * config/mips/mips.c (mips16_build_call_stub): Replace
1292 GP_REG_FIRST + 31 with RETURN_ADDR_REGNUM, GP_REG_FIRST + 1
1293 with AT_REGNUM and 31 with RETURN_ADDR_REGNUM.
1294 (mips_print_operand_punctuation): Likewise.
1295 (mips_frame_set): Likewise.
1296 (mips16e_output_save_restore): Likewise.
1297 (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
1298 (mips_save_reg_p): Likewise.
1299 (mips_return_addr): Likewise.
1300 (mips_set_return_address): Likewise.
1301 (mips_direct_save_slot_move_p): Likewise.
1302 (mips_output_function_prologue): Likewise.
1303 (mips_restore_reg): Likewise.
1304 (mips_expand_epilogue): Likewise.
1305 (mips_epilogue_uses): Likewise.
1306 * config/mips/mips.md (RETURN_ADD_REGNUM): Define.
1307 (*mov<mode>_ra): Use it instead of a hard-coded 31.
1308 (clear_hazard_<mode>): Likewise.
1309 (call_internal): Likewise.
1310 (call_internal_direct): Likewise.
1311 (call_direct_split): Likewise.
1312 (call_value_internal): Likewise.
1313 (call_value_split): Likewise.
1314 (call_value_internal_direct): Likewise.
1315 (call_value_direct_split): Likewise.
1316 (call_value_multiple_internal): Likewise.
1317 (call_value_multiple_split): Likewise.
1318
1319 2009-10-05 Eric Botcazou <ebotcazou@adacore.com>
1320 Jakub Jelinek <jakub@redhat.com>
1321
1322 PR rtl-optimization/41511
1323 * combine.c (record_value_for_reg): Pass explicit values as argument
1324 to get_last_value_validate.
1325 (get_last_value_validate): Document INSN parameter.
1326 For non-readonly MEMs, assume they might have been modified if INSN
1327 was in another basic block.
1328 (get_last_value): Minor reformatting.
1329
1330 2009-10-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
1331
1332 PR tree-opt/40992
1333 * final.c (asm_str_count): Split out from asm_insn_count.
1334 * rtl.h (asm_str_count): New prototype.
1335 * tree-inline (estimate_num_insns) <case GIMPLE_ASM>: Call
1336 asm_str_count.
1337
1338 2009-10-05 Sriraman Tallam <tmsriram@google.com>
1339
1340 * doc/plugins.texi: Change plugin_pass to register_pass_info.
1341
1342 2009-10-05 Basile Starynkevitch <basile@starynkevitch.net>
1343 Rafael Espindola <espindola@google.com>
1344
1345 * gengtype.c (write_types): Moved call to write_func_for_structure
1346 into seperate loops.
1347
1348 2009-10-05 Richard Guenther <rguenther@suse.de>
1349
1350 PR lto/41281
1351 * lto-cgraph.c (output_cgraph): Output toplevel asms.
1352 (input_cgraph_1): Input toplevel asms.
1353
1354 2009-10-05 Richard Guenther <rguenther@suse.de>
1355
1356 PR lto/40902
1357 * lto-symtab.c (lto_compatible_attributes_p): Remove.
1358 (external_aggregate_decl_p): Likewise.
1359 (lto_symtab_compatible): Re-structure. Remove dead code.
1360 For variables ignore toplevel qualifiers when comparing types.
1361 Issue warnings, not errors for mismatched user-alignment.
1362
1363 2009-10-05 Richard Guenther <rguenther@suse.de>
1364
1365 PR lto/41552
1366 PR lto/41487
1367 * lto-symtab.c (struct lto_symtab_base_def): Remove.
1368 (struct lto_symtab_identifier_def): Likewise.
1369 (struct lto_symtab_decl_def): Likewise.
1370 (struct lto_symtab_entry_def): New.
1371 (lto_symtab_identifier_t): Rename to ...
1372 (lto_symtab_entry_t): ... this.
1373 (lto_symtab_decls): Remove.
1374 (lto_symtab_base_hash): Rename to ...
1375 (lto_symtab_entry_hash): ... this.
1376 (lto_symtab_base_eq): Rename to ...
1377 (lto_symtab_entry_eq): ... this.
1378 (lto_symtab_base_marked_p): Rename to ...
1379 (lto_symtab_entry_marked_p): ... this.
1380 (lto_symtab_identifier_marked_p): Remove.
1381 (lto_symtab_decl_marked_p): Likewise.
1382 (lto_symtab_maybe_init_hash_tables): Rename to ...
1383 (lto_symtab_maybe_init_hash_table): ... this.
1384 (lto_symtab_set_resolution_and_file_data): Remove.
1385 (lto_symtab_register_decl): New function.
1386 (lto_symtab_get_identifier): Remove.
1387 (lto_symtab_get): New function.
1388 (lto_symtab_get_resolution): Adjust.
1389 (lto_symtab_get_identifier_decl): Remove.
1390 (lto_symtab_set_identifier_decl): Likewise.
1391 (lto_symtab_merge_decl): Rename to ...
1392 (lto_symtab_merge): ... this. Rewrite.
1393 (lto_symtab_merge_var): Remove.
1394 (lto_symtab_merge_fn): Likewise.
1395 (lto_symtab_prevailing_decl): Adjust.
1396 (lto_cgraph_replace_node): New function.
1397 (lto_symtab_merge_decls_2): Likewise.
1398 (lto_symtab_merge_decls_1): Likewise.
1399 (lto_symtab_fixup_var_decls): Likewise.
1400 (lto_symtab_resolve_symbols): Likewise.
1401 (lto_symtab_merge_decls): Likewise.
1402 (lto_symtab_prevailing_decl): Adjust.
1403 (lto_symtab_get_symtab_def): Remove.
1404 (lto_symtab_get_file_data): Likewise.
1405 (lto_symtab_clear_resolution): Adjust.
1406 (lto_symtab_clear_resolution): Likewise.
1407 * lto-cgraph.c (input_edge): Do not merge cgraph nodes here.
1408 (input_cgraph_1): Likewise.
1409 * lto-streamer-in.c (get_resolution): Do not provide fake
1410 symbol resolutions here.
1411 (deferred_global_decls): Remove.
1412 (lto_register_deferred_decls_in_symtab): Likewise.
1413 (lto_register_var_decl_in_symtab): Change signature, register
1414 variable via lto_symtab_register_decl.
1415 (lto_register_function_decl_in_symtab): Likewise.
1416 (lto_read_tree): Adjust.
1417 * lto-streamer.h (lto_register_deferred_decls_in_symtab): Remove.
1418 (lto_symtab_merge_var): Likewise.
1419 (lto_symtab_merge_fn): Likewise.
1420 (lto_symtab_register_decl): Declare.
1421 (lto_symtab_merge_decls): Likewise.
1422
1423 2009-10-05 Richard Guenther <rguenther@suse.de>
1424
1425 PR tree-optimization/23821
1426 * tree-vrp.c (vrp_finalize): Do not perform copy propagation.
1427 * tree-ssa-dom.c (cprop_operand): Do not propagate copies into
1428 simple IV increments.
1429
1430 2009-10-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1431
1432 * config/arm/arm.c (arm_override_options): Really initialize
1433 flag_dwarf2_cfi_asm to 0.
1434
1435 2009-10-05 Doug Kwan <dougkwan@google.com>
1436
1437 PR rtl-optimization/41574
1438 * combine.c (distribute_and_simplify_rtx): Quit if RTX mode is
1439 floating point and we are not doing unsafe math optimizations.
1440
1441 2009-10-03 Simon Baldwin <simonb@google.com>
1442 Cary Coutant <ccoutant@google.com>
1443 Rafael Espindola <espindola@google.com>
1444 Richard Guenther <rguenther@suse.de>
1445 Jan Hubicka <jh@suse.cz>
1446 Doug Kwan <dougkwan@google.com>
1447 H.J. Lu <hongjiu.lu@intel.com>
1448 Bill Maddox <maddox@google.com>
1449 Ryan Mansfield <rmansfield@qnx.com>
1450 Diego Novillo <dnovillo@google.com>
1451 Ollie Wild <aaw@google.com>
1452 Kenneth Zadeck <zadeck@naturalbridge.com>
1453
1454 * lto-cgraph.c: New file.
1455 * lto-compress.c: New file.
1456 * lto-compress.h: New file.
1457 * lto-opts.c: New file.
1458 * lto-section-in.c: New file.
1459 * lto-section-out.c: New file.
1460 * lto-streamer-in.c: New file.
1461 * lto-streamer-out.c: New file.
1462 * lto-streamer.c: New file.
1463 * lto-streamer.h: New file.
1464 * lto-symtab.c: New file.
1465 * lto-wpa-fixup.c: New file.
1466 * lto-wrapper.c: New file.
1467
1468 2009-10-03 Simon Baldwin <baldwin@google.com>
1469 Ben Elliston <bje@au.ibm.com>
1470 Rafael Espindola <espindola@google.com>
1471 Nathan Froyd <froydnj@codesourcery.com>
1472 Jan Hubicka <jh@suse.cz>
1473 Doug Kwan <dougkwan@google.com>
1474 Diego Novillo <dnovillo@google.com>
1475 Kenneth Zadeck <zadeck@naturalbridge.com>
1476
1477 * Makefile.in (enable_lto): New.
1478 (site.exp): If @enable_lto@ is set to 'yes' define ENABLE_LTO.
1479 (LINKER_PLUGIN_API_H): Define.
1480 (LTO_SYMTAB_H): Define.
1481 (LTO_STREAMER_H): Define.
1482 (TREE_VECTORIZER_H): Define.
1483 (INCLUDES): Add LIBELFINC.
1484 (OBJS-common): Add lto-cgraph.o, lto-streamer-in.o,
1485 lto-streamer-out.o, lto-section-in.o, lto-section-out.o, lto-symtab.o,
1486 lto-opts.o, lto-streamer.o, lto-wpa-fixup.o, lto-compress.o.
1487 (MOSTLYCLEANFILES): Add lto-wrapper$(exeext)
1488 (native): Add lto-wrapper$(exeext)
1489 (lto-compress.o, lto-cgraph.o, lto-streamer-in.o,
1490 lto-streamer-out.o, lto-section-in.o, lto-section-out.o,
1491 lto-symtab.o, lto-opts.o, lto-streamer.o, lto-wpa-fixup.o): New rules.
1492 (gimple.o): Add dependency on LTO_HEADER_H and LTO_SECTION_OUT_H.
1493 (varasm.o): Add dependency on tree-iterator.h.
1494 (cgraph.o): Add dependency on cif-code.def.
1495 (ipa-reference.o): Add dependency on LTO_STREAMER_H.
1496 (ipa-pure-const.o): Likewise.
1497 (GTFILES): Add lto-symtab.c.
1498 (install-lto-wrapper): New.
1499 * configure.ac: If 'lto' is in enable_languages, define ENABLE_LTO
1500 and enable_lto. If LIBELFLIBS is set, define HAVE_libelf.
1501 * config.in: Regenerate.
1502
1503 2009-10-03 Rafael Espindola <espindola@google.com>
1504 Diego Novillo <dnovillo@google.com>
1505
1506 * cgraphunit.c (ipa_passes): Prevent lto1 from calling
1507 ipa_write_summaries.
1508 Call execute_ipa_summary_passes for all_regular_ipa_passes and
1509 all_lto_gen_passes.
1510 (cgraph_optimize): Make extern.
1511
1512 2009-10-03 Nathan Froyd <froydnj@codesourcery.com>
1513 Kenneth Zadeck <zadeck@naturalbridge.com>
1514
1515 * toplev.c (in_lto_p): Declare.
1516 * collect2.c (scan_prog_file): Read all the output when reading
1517 information for LTO.
1518 (enum lto_mode_d): Declare.
1519
1520 2009-10-03 Richard Guenther <rguenther@suse.de>
1521 Diego Novillo <dnovillo@google.com>
1522
1523 * gimple.c: Include target.h and alias.h.
1524 (gimple_types): Declare.
1525 (type_hash_cache): Declare.
1526 (gimple_alloc_stat): Make extern.
1527 (gimple_build_eh_must_not_throw): Call
1528 gimple_eh_must_not_throw_set_fndecl.
1529 (struct type_pair_d): Declare.
1530 (type_pair_t): Declare.
1531 (type_pair_hash): New.
1532 (type_pair_eq): New.
1533 (lookup_type_pair): New.
1534 (gimple_force_type_merge): New.
1535 (compare_type_names_p): New.
1536 (compare_field_offset): New.
1537 (gimple_types_compatible_p): New.
1538 (struct sccs): Declare.
1539 (next_dfs_num): Declare.
1540 (iterative_hash_gimple_type): New.
1541 (visit): New.
1542 (iterative_hash_type_name): New.
1543 (iterative_hash_gimple_type): New.
1544 (gimple_type_hash): New.
1545 (gimple_type_eq): New.
1546 (gimple_register_type): New.
1547 (print_gimple_types_stats): New.
1548 (gimple_signed_or_unsigned_type): New.
1549 (gimple_unsigned_type): New.
1550 (gimple_signed_type): New.
1551 (gimple_get_alias_set): New.
1552 (gimple_decl_printable_name): Do not use DMGL_TYPES.
1553 * gimple.h (gimple_alloc, gimple_alloc_stat): Declare.
1554 (gimple_force_type_merge): Declare.
1555 (gimple_types_compatible_p): Declare.
1556 (gimple_register_type): Declare.
1557 (print_gimple_types_stats): Declare.
1558 (gimple_unsigned_type): Declare.
1559 (gimple_signed_type): Declare.
1560 (gimple_get_alias_set): Declare.
1561 (gimple_eh_must_not_throw_set_fndecl): New.
1562
1563 2009-10-03 Jan Hubicka <jh@suse.cz>
1564 Kenneth Zadeck <zadeck@naturalbridge.com>
1565
1566 * ipa-pure-const.c: Include lto-streamer.h.
1567 (register_hooks): Factor out of ...
1568 (generate_summary): ... here.
1569 (pure_const_write_summary): New.
1570 (pure_const_read_summary): New.
1571 (pass_ipa_pure_const): Add pure_const_write_summary and
1572 pure_const_read_summary.
1573 * ipa-reference.c: Include lto-streamer.h.
1574 (add_new_function): New.
1575 (remove_node_data): New.
1576 (duplicate_node_data): New.
1577 (ipa_init): Guard against multiple calls.
1578 Move hook setup from analyze_function.
1579 (write_node_summary_p): New.
1580 (ipa_reference_write_summary): New.
1581 (ipa_reference_read_summary): New.
1582 (pass_ipa_reference): Add ipa_reference_write_summary and
1583 ipa_reference_read_summary.
1584 * cgraph.h (cgraph_local_info): Add field lto_file_data.
1585 (struct cgraph_edge): Add fields lto_stmt_uid and
1586 call_stmt_cannot_inline_p.
1587 (cgraph_optimize): Declare.
1588 (cgraph_decide_is_function_needed): Declare.
1589 (reset_inline_failed): Declare.
1590 (enum LTO_cgraph_tags): Declare.
1591 (LTO_cgraph_tag_names): Declare.
1592 (LCC_NOT_FOUND): Define.
1593
1594 2009-10-03 Doug Kwan <dougkwan@google.com>
1595 Rafael Espindola <espindola@google.com>
1596 Jan Hubicka <jh@suse.cz>
1597 Diego Novillo <dnovillo@google.com>
1598 Kenneth Zadeck <zadeck@naturalbridge.com>
1599
1600 * passes.c (all_regular_ipa_passes): New.
1601 (all_ipa_passes): Rename to all_small_ipa_passes.
1602 (init_optimization_passes): Init all_regular_ipa_passes.
1603 * tree-pass.h (all_regular_ipa_passes): New.
1604 (all_ipa_passes): Rename to all_small_ipa_passes.
1605 * passes.c (all_lto_gen_passes): New.
1606 (init_optimization_passes): Initialize all_lto_gen_passes.
1607 (execute_ipa_summary_passes): Make non-static.
1608 (ipa_write_summaries_1): New.
1609 (ipa_write_summaries_2): New.
1610 (ipa_write_summaries): New.
1611 (ipa_write_summaries_of_cgraph_node_set): New.
1612 (ipa_read_summaries_1): New.
1613 (ipa_read_summaries): New.
1614 (execute_ipa_pass_list): Call cgraph_process_new_functions.
1615 (execute_regular_ipa_pass_list): Remove.
1616 (init_optimization_passes): Schedule
1617 pass_rebuild_cgraph_edges and pass_early_inline outside
1618 of pass_all_early_optimizations. Document reason.
1619 (pass_ipa_lto_gimple_out, pass_ipa_lto_wpa_fixup,
1620 pass_ipa_lto_finish_out): New pass.
1621 (pass_ipa_summary_passes): Start and stop timers if the pass has them.
1622 (execute_all_ipa_transforms): New.
1623 (execute_one_pass): Don't call execute_one_ipa_transform_pass.
1624 (dump_properties, debug_properties): New.
1625 * tree-optimize.c (gate_all_early_local_passes): Return
1626 false if we are in lto1.
1627 (tree_rest_of_compilation): Call execute_all_ipa_transforms.
1628 * tree-pass.h (execute_all_ipa_transforms): Declare.
1629 (pass_ipa_function_and_variable_visibility): Declare.
1630 (pass_ipa_early_inline): Declare.
1631 (pass_ipa_lto_gimple_out): Declare.
1632 (pass_ipa_lto_wpa_fixup): Declare.
1633 (pass_ipa_lto_finish_out): Declare.
1634 (all_small_ipa_passes, all_regular_ipa_passes,
1635 all_lto_gen_passes): Declare.
1636 (execute_ipa_summary_passes): Declare.
1637 (execute_all_ipa_transforms): Declare.
1638 (ipa_write_summaries): Declare
1639 (ipa_write_summaries_of_cgraph_node_set): Declare.
1640 (ipa_read_summaries): Declare.
1641
1642 2009-10-03 Doug Kwan <dougkwan@google.com>
1643 Ollie Wild <aaw@google.com>
1644
1645 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do nothing in WPA.
1646
1647 * collect2.c (LTO_MODE_NONE, LTO_MODE_LTO, LTO_MODE_WPA): New enums.
1648 (lto_mode): New variable.
1649 (maybe_run_lto_and_relink): Handle the -fwpa option.
1650 (main): Handle the -fwpa option.
1651 (maybe_unlink_list): New function.
1652 * gcc.c (link_lto_options): Replace -flto with -fwpa.
1653 * common.opt (flto): New flag.
1654 * toplev.c (flag_generate_lto): Declare.
1655
1656 2009-10-03 Simon Baldwin <simonb@google.com>
1657
1658 * common.opt (flto-compression-level): New flag.
1659
1660 * opts.c: Include lto-opts.h.
1661 (handle_option): Call lto_register_user_option for each
1662 valid option handled.
1663 (decode_options): Clear registered options before the options
1664 handling loop.
1665
1666 2009-10-03 Cary Coutant <ccoutant@google.com>
1667
1668 * collect2.c (is_elf): New function.
1669 (scan_prog_file): Require LTO object to be in ELF format.
1670
1671 2009-10-03 Rafael Espindola <espindola@google.com>
1672
1673 * gcc.c (LINK_COMMAND_SPEC): Use the -pass-through option to pass
1674 libgcc to the linker.
1675
1676 * ipa-cp.c (cgraph_gate_cp): Return false if LTRANS is running.
1677
1678 * collect2.c (maybe_run_lto_and_relink): Execute lto-wrapper.
1679 (collect_execute): Add flags argument. Pass flags to pex_run. Update
1680 all callers.
1681 * collect2.h (collect_execute): Add flags argument.
1682 * tlink.c (tlink_execute): Update call to collect_execute.
1683 * gcc.c (main): Set the COLLECT_LTO_WRAPPER environment variable.
1684 (use_linker_plugin): New.
1685 (use_linker_plugin_spec_function): New.
1686 (LINK_COMMAND_SPEC): Pass plugin options to the linker.
1687 (linker_plugin_file_spec): New.
1688 (lto_wrapper_spec): New.
1689 (lto_gcc_spec): New.
1690 (static_specs): Add linker_plugin_file, lto_wrapper and lto_gcc.
1691 (static_spec_functions): Add use-linker-plugin.
1692 (process_command): Handle -use-linker-plugin.
1693 (main): Use lto_wrapper_spec instead of lto_wrapper. Set
1694 linker_plugin_file_spec and lto_gcc_spec.
1695 (use_linker_plugin_spec_function): New.
1696
1697 2009-10-03 Richard Guenther <rguenther@suse.de>
1698
1699 PR lto/41547
1700 PR lto/41548
1701 * tree.h (is_lang_specific): Include LANG_TYPE.
1702 * tree.c (find_decls_types_r): Manually add interesting parts
1703 of TYPE_FIELDS. Walk BINFO_VIRTUALS. Do not walk TYPE_METHODS.
1704
1705 * gimple.c (type_pair_hash): Make symmetric.
1706 (type_pair_eq): Likewise.
1707 (lookup_type_pair): Increase initial hashtable size.
1708 (gimple_force_type_merge): Rely on type-pair symmetry.
1709 (visit): Remove excessive checking code.
1710 (iterative_hash_type_name): Do not hash TYPE_NAME of anonymous unions.
1711 (gimple_register_type): Remove getenv calls, shrink initial
1712 hashtable size.
1713
1714 PR middle-end/41502
1715 * cgraphunit.c (ipa_passes): Do not remove bodies of extern
1716 inline functions if not generating lto output.
1717
1718 PR lto/41379
1719 * toplev.c (finalize): In WPA mode remove the asm file.
1720
1721 2009-10-03 Doug Kwan <dougkwan@google.com>
1722
1723 * ipa-inline.c (cgraph_mark_inline): Check
1724 edge->call_stmt_cannot_inline_p instead of calling
1725 gimple_call_cannot_inline_p.
1726 (cgraph_decide_inlining): Do nothing in WPA and LTRANS.
1727 (cgraph_gate_ipa_early_inlining): Return false if in_lto_p is set.
1728 (inline_generate_summary): Do nothing in LTRANS.
1729 * cgraph.c (initialize_inline_failed): Make sure e->call_stmt
1730 exists before calling gimple_call_cannot_inline_p.
1731 (cgraph_create_edge): Set edge->call_stmt_cannot_inline_p.
1732 (cgraph_clone_edge): Add argument STMT_UID. Modify all callers.
1733 Update new_edge->lto_stmt_uid.
1734 * cgraphbuild.c (reset_inline_failed): New.
1735
1736 * common.opt (fwpa): New flag.
1737 (fltrans): New option.
1738 * gcc.c (gcc_lto_option_t): New type.
1739 (current_lto_option): New variable.
1740 (lto_single_spec_function): Remove and is replaced by ..
1741 (lto_option_spec_function): New function.
1742 (LINK_COMMAND_SPEC): Use link_lto_option spec instead of just
1743 passing the -flto flag.
1744 (cc1_options): Separate non-LTO related parts into ..
1745 (cc1_non_lto_options): Non-LTO related options shared by all FEs.
1746 (lto1_options): New spec for lto FE.
1747 (link_lto_options): New spec for handling LTO flags in linker.
1748 (invoke_lto_single): Re-format to fit in 80 column. Replace
1749 lto-single with lto-option.
1750 (static_specs): Add cc1_non_lto_options, lto1_options and
1751 link_lto_options.
1752 (static_spec_function): Replace lto-single with lto-option.
1753 (process_command): Handle -flto, -fwpa and -fltran by setting
1754 current_lto_option and not passing it to subprocess unconditionally.
1755
1756 2009-10-03 Bill Maddox <maddox@google.com>
1757
1758 Add `gcc' driver support for link-time code generation (LTO).
1759
1760 * collect2.c (enum pass): Add new literal PASS_LTOINFO.
1761 (lto_flag, lto_objects, lto_o_file): New variables.
1762 (struct lto_object, struct lto_object_list): New structures.
1763 (collect_exit, handler): Remove LTO temporary output file on exit.
1764 (add_lto_object): New function.
1765 (maybe_run_lto_and_relink): New function. Perform link time code
1766 generation and relinking for object files containing LTO information.
1767 (main): Invoke maybe_run_lto_and_relink().
1768 (dump_argv): New function. For debugging, currently disabled.
1769 (scan_prog_file): Add LTO information pass.
1770 * gcc.c (LINK_COMMAND_SPEC): Pass `-flto' switch to linker, i.e.,
1771 collect2.
1772 * toplev.c (compile_file): Emit assembler directive to create
1773 the `gnu_lto_v1' marker symbol when compiling with `-flto'.
1774
1775 2009-10-03 Diego Novillo <dnovillo@google.com>
1776
1777 * c.opt: Add LTO to warn_abi and warn_psabi.
1778
1779 * tree.c (fld_worklist_push): Rename from PUSH. Convert to static
1780 inline function. Ignore language-specific nodes. Update all users.
1781 (find_decls_types_r): Do not traverse the subtrees of
1782 language-specific nodes. Do not traverse DECL_INITIAL for TYPE_DECLs.
1783 * tree.h (is_lang_specific): New.
1784 * langhooks.h (struct lang_hooks_for_decls): Remove
1785 may_need_assembler_name_p. Update all users.
1786
1787 * c-common.c (set_builtin_user_assembler_name): Move ...
1788 * builtins.c (set_builtin_user_assembler_name): ... here.
1789 (is_builtin_name): Add comment
1790 (is_builtin_fn): New.
1791 * except.c (output_ttype): Only call
1792 lookup_type_for_runtime if TYPE is not a runtime type.
1793
1794 * passes.c (register_pass): Call position_pass on
1795 all_small_ipa_passes, all_regular_ipa_passes and all_lto_gen_passes.
1796 * timevar.def (TV_IPA_LTO_GIMPLE_IO): Define.
1797 (TV_IPA_LTO_DECL_IO): Define.
1798 (TV_IPA_LTO_CGRAPH_IO): Define.
1799 (TV_LTO): Define.
1800 (TV_WHOPR_WPA): Define.
1801 (TV_WHOPR_WPA_IO): Define.
1802 (TV_WHOPR_LTRANS): Define.
1803 (TV_WHOPR_WPA_FIXUP): Define.
1804 (TV_WHOPR_WPA_LTRANS_EXEC): Define.
1805 * tree-cfg.c (tree_node_can_be_shared): Make extern.
1806 * tree-flow.h (tree_node_can_be_shared): Declare.
1807 * tree-inline.c (tree_can_inline_p): Check that E has a
1808 statement associated with it.
1809 * tree.c (free_lang_data_in_binf): Factor out of ...
1810 (free_lang_data_in_type): ... here.
1811 Call RECORD_OR_UNION_TYPE_P.
1812 (need_assembler_name_p): Ignore DECL if it does not have TREE_PUBLIC
1813 set. Call lang_hooks.decls.may_need_assembler_name_p if set.
1814 (free_lang_data_in_decl): Do not clear DECL_CONTEXT for CONST_DECLs.
1815 (free_lang_data): Set debug_info_level to DINFO_LEVEL_NONE. Set
1816 write_symbols to NO_DEBUG. Set debug_hooks to do_nothing_debug_hooks.
1817 (gate_free_lang_data): Return true if flag_generate_lto is set.
1818 (walk_tree_1): Call RECORD_OR_UNION_TYPE_P.
1819 * c-common.h (set_builtin_user_assembler_name): Move ...
1820 * tree.h (set_builtin_user_assembler_name): ... here.
1821
1822 * common.opt (flto-report): New flag.
1823 * opts.c (complain_wrong_lang): Do not complain if running lto1.
1824 * collect2.c (scan_prog_file): Send the error output of
1825 'nm' to HOST_BIT_BUCKET.
1826
1827 2009-10-03 Ollie Wild <aaw@google.com>
1828
1829 * langhooks-def.h (lhd_begin_section): New function declaration.
1830 (lhd_write_section): New function declaration.
1831 (lhd_end_section): New function declaration.
1832 (LANG_HOOKS_BEGIN_SECTION): New macro.
1833 (LANG_HOOKS_WRITE_SECTION_DATA): New macro.
1834 (LANG_HOOKS_END_SECTION): New macro.
1835 (LANG_HOOKS_LTO): New macro.
1836 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_LTO.
1837 * langhooks.c (output.h): Add include.
1838 (saved_section): New static variable.
1839 (lhd_begin_section): New function.
1840 (lhd_write_section_data): New function.
1841 (lhd_end_section): New function.
1842 * langhooks.h (struct lang_hooks_for_lto): New structure.
1843 (struct lang_hooks): Add member lto.
1844 * Makefile.in (langhooks.o): Add dependency on output.h.
1845
1846 * c-opts.c (c_common_post_options): Handle -flto and -fwhopr.
1847
1848 2009-10-03 Richard Guenther <rguenther@suse.de>
1849
1850 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
1851 Handle LTO.
1852
1853 2009-10-03 Simon Baldwin <simonb@google.com>
1854 Richard Guenther <rguenther@suse.de>
1855 Janis Johnson <janis187@us.ibm.com>
1856 Doug Kwan <dougkwan@google.com>
1857 Diego Novillo <dnovillo@google.com>
1858 Ramana Radhakrishnan <ramana.r@gmail.com>
1859 Ollie Wild <aaw@google.com>
1860
1861 * doc/install.texi: Add documentation for libelf and --enable-lto.
1862 * doc/invoke.texi: Document -fwpa, -flto, -fwhopr, -fltrans,
1863 -flto-report, -flto-compression-level and -use-linker-plugin.
1864 * doc/sourcebuild.texi: Document use of zlib. Document lto-plugin.
1865 Add section for LTO Testing.
1866
1867 2009-10-02 Cary Coutant <ccoutant@google.com>
1868
1869 Add support for comdat type sections for DWARF v4.
1870 Merge from dwarf4 branch.
1871
1872 * dwarf2out.c (DWARF_TYPE_SIGNATURE_SIZE): New constant.
1873 (dw_die_ref): Define vector type.
1874 (enum dw_val_class): Add dw_val_class_data8.
1875 (struct dw_val_struct): Add v.val_data8.
1876 (comdat_type_node_ref): New type.
1877 (struct die_struct): Move die_symbol into a union; add new field
1878 die_type_node. Change all uses.
1879 (comdat_type_node): New type.
1880 (skeleton_chain_node): New type.
1881 (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): New constant.
1882 (comdat_type_list): New variable.
1883 (dwarf_tag_name): Add DW_TAG_type_unit.
1884 (dwarf_attr_name): Add DW_AT_signature.
1885 (add_AT_data8): New function.
1886 (replace_child): New function.
1887 (move_all_children): New function.
1888 (print_signature): New function.
1889 (print_die): Print signature information; add dw_val_class_data8.
1890 (attr_checksum): Support dw_val_class_data8.
1891 (CHECKSUM_STRING): Redefine for DWARF-4 to include trailing NULL byte.
1892 (CHECKSUM_SLEB128, CHECKSUM_ULEB128): New macros.
1893 (checksum_sleb128, checksum_uleb128): New functions.
1894 (checksum_die_context): New function.
1895 (loc_checksum_ordered): New function.
1896 (attr_checksum_ordered): New function.
1897 (struct checksum_attributes): New structure.
1898 (collect_checksum_attributes): New function.
1899 (die_checksum_ordered): New function.
1900 (generate_type_signature): New function.
1901 (same_dw_val_p): Add dw_val_class_data8.
1902 (is_symbol_die): Use new is_declaration_die function.
1903 (is_declaration_die): New function.
1904 (should_move_die_to_comdat): New function.
1905 (clone_die): New function.
1906 (clone_tree): New function.
1907 (clone_as_declaration): New function.
1908 (copy_declaration_context): New function.
1909 (generate_skeleton_ancestor_tree): New function.
1910 (generate_skeleton_bottom_up): New function.
1911 (generate_skeleton): New function.
1912 (remove_child_or_replace_with_skeleton): New function.
1913 (break_out_comdat_types): New function.
1914 (struct decl_table_entry): New type.
1915 (htab_decl_hash): New function.
1916 (htab_decl_eq): New function.
1917 (htab_decl_del): New function.
1918 (copy_ancestor_tree): New function.
1919 (copy_decls_walk): New function.
1920 (copy_decls_for_unworthy_types): New function.
1921 (build_abbrev_table): Don't assert on missing die_symbol when doing
1922 comdat type sections.
1923 (size_of_die): Use DW_FORM_sig8 for external references. Add
1924 dw_val_class_data8.
1925 (unmark_dies): Don't assert for unmarked dies when doing comdat
1926 type sections.
1927 (value_format): Support DW_FORM_sig8 and dw_val_class_data8.
1928 (output_signature): New function.
1929 (output_die): Likewise.
1930 (output_compilation_unit_header): Mark output as DWARF version 3
1931 even if generating DWARF 4.
1932 (output_comdat_type_unit): New function.
1933 (output_line_info): Mark output as DWARF version 3 even if generating
1934 DWARF 4.
1935 (dwarf2out_start_source_file): Don't do eliminate_dwarf2_dups with
1936 DWARF-4.
1937 (dwarf2out_end_source_file): Likewise.
1938 (prune_unused_types_walk_attribs): Don't follow references into
1939 comdat type sections.
1940 (prune_unused_types_mark): When generating type units, do not mark
1941 children of non-defining declarations of types; do mark children of
1942 type entries.
1943 (prune_unused_types): Process comdat type sections.
1944 (htab_ct_hash): New function.
1945 (htab_ct_eq): New function.
1946 (dwarf2out_finish): Move types to comdat sections when using DWARF-4.
1947 Add a pointer to the line table from type unit entries so
1948 DW_AT_decl_file has meaning.
1949 * varasm.c (default_elf_asm_named_section): Use identifier name as
1950 comdat key instead of lang hook.
1951
1952 2009-10-02 Neil Vachharajani <nvachhar@google.com>
1953
1954 * gcov-io.c (gcov_open): Open files read-only when MODE < 0.
1955
1956 2009-10-02 Uros Bizjak <ubizjak@gmail.com>
1957
1958 * config/i386/i386.md (SWIM248): New mode iterator.
1959 (divmod<mode>4) Macroize expander from divmoddi4, divmodsi4 and
1960 divmodhi4 patterns using SWIM248 macro.
1961 (*divmod<mode>4): Macroize insn_and_split pattern from
1962 *divmoddi4_cltd_rex64, *divmodsi4_cltd and divmodhi4 insn patterns
1963 and their corresponding splitters usign SWIM248 macro. Split SImode
1964 insn to generate cltd and DImode insn to generate cqto instead of
1965 move+shift when optimizing for size or TARGET_USE_CLTD is in effect.
1966 (*divmoddi4_nocltd_rex64, *divmodsi4_nocltd): Remove insn patterns.
1967 (*divmod<mode>4_noext): Macroize insn from *divmoddi_noext_rex64 and
1968 *divmodsi_noext patterns using SWIM248 macro.
1969 (udivmod<mode>4): Macroize expander from udivmoddi4, udivmodsi4 and
1970 udivmodhi4 patterns using SWIM248 macro.
1971 (*udivmod<mode>4): Macroize insn_and_split pattern from
1972 *udivmoddi4, udivmodsi4 and udivmodhi4 patterns and their
1973 corresponding splitters using SWIM248 macro.
1974 (*udivmod<mode>4_noext): Macroize insn from *udivmoddi4_noext,
1975 *udivmodsi4_noext and *udivmodhi_noext patterns using SWIM248 macro.
1976
1977 2009-10-02 Eric Botcazou <ebotcazou@adacore.com>
1978
1979 * stor-layout.c (layout_type) <ARRAY_TYPE>: Make sure that an array
1980 of zero-sized element is zero-sized regardless of its extent.
1981
1982 2009-10-02 Jakub Jelinek <jakub@redhat.com>
1983
1984 PR debug/40521
1985 * configure.ac (HAVE_GAS_CFI_SECTIONS_DIRECTIVE): New test.
1986 * configure: Regenerated.
1987 * config.in: Regenerated.
1988 * dwarf2out.c (dwarf2out_do_cfi_asm): Return false if
1989 !HAVE_GAS_CFI_SECTIONS_DIRECTIVE and not emitting .eh_frame.
1990 (dwarf2out_init): If HAVE_GAS_CFI_SECTIONS_DIRECTIVE and
1991 not emitting .eh_frame, emit .cfi_sections .debug_frame
1992 directive.
1993
1994 PR debug/41404
1995 PR debug/41353
1996 * cfgexpand.c (expand_debug_expr) <case STRING_CST>: Don't create
1997 CONST_STRING if STRING_CST contains embedded '\0's or doesn't end
1998 with '\0'.
1999 (expand_debug_expr) <case VAR_DECL>: For TREE_STATIC !DECL_EXTERNAL
2000 vars use DECL_RTL with resetting it back to NULL afterwards.
2001 * dwarf2out.c (same_dw_val_p): For dw_val_class_addr compare with
2002 rtx_equal_p instead of asserting it is a SYMBOL_REF.
2003 (value_format): For dw_val_class_addr only use DW_FORM_addr if
2004 the attribute type allows it, otherwise use DW_FORM_dataN.
2005 (mem_loc_descriptor): Handle CONST_STRING.
2006 (add_const_value_attribute): Handle CONST_STRING using add_AT_addr.
2007 Handle MEM with CONST_STRING address using add_AT_string.
2008 (rtl_for_decl_init): Return MEM with CONST_STRING address instead of
2009 CONST_STRING for const arrays initialized with a string literal.
2010 (resolve_one_addr, resolve_addr_in_expr, resolve_addr): New functions.
2011 (dwarf2out_finish): Call resolve_addr.
2012
2013 2009-10-02 Andreas Schwab <schwab@linux-m68k.org>
2014 Maxim Kuvyrkov <maxim@codesourcery.com>
2015
2016 * config/m68k/lb1sf68.asm (PICCALL): Use variable sized branch.
2017
2018 2009-10-02 Nick Clifton <nickc@redhat.com>
2019
2020 * config/mn10300/mn10300.h (USER_LABEL_PREFIX): Define.
2021 (ASM_OUTPUT_LABELREF): Use asm_fprintf and %U.
2022
2023 2009-10-01 Jan Hubicka <jh@suse.cz>
2024
2025 * cgraph.c (cgraph_clone_node): Add redirect_callers parameter.
2026 (cgraph_create_virtual_clone): Just pass redirect_callers
2027 around.
2028 * cgraph.h (cgraph_clone_node): Update prototype.
2029 * ipa-pure-const.c (self_recursive_p): New function.
2030 (propagate): Use it.
2031 * ipa-inline.c (cgraph_clone_inlined_nodes,
2032 cgraph_decide_recursive_inlining): Update.
2033
2034 2009-10-01 David Daney <ddaney@caviumnetworks.com>
2035
2036 * gcc/config/mips/mips.c (mips_process_sync_loop) Emit syncw
2037 instructions for TARGET_OCTEON.
2038
2039 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2040
2041 * config/arm/arm.c (arm_override_options): Turn off
2042 flag_dwarf2_cfi_asm for AAPCS variants.
2043
2044 2009-10-01 Martin Jambor <mjambor@suse.cz>
2045
2046 PR middle-end/12392
2047 * tree-sra.c (convert_callers): Do not call
2048 compute_inline_parameters on one caller more than once.
2049
2050 2009-10-01 Nick Clifton <nickc@redhat.com>
2051
2052 * config/vax/netbsd-elf.h (NETBSD_CC1_AND_CC1PLUS_SPEC): Define as
2053 an empty string if not already defined.
2054
2055 2009-10-01 Martin Jambor <mjambor@suse.cz>
2056
2057 PR bootstrap/41395
2058 * tree-sra.c (is_va_list_type): New function.
2059 (find_var_candidates): Call is_va_list_type.
2060 (find_param_candidates): Check that the type or the type pointed
2061 to are not va_list types.
2062
2063 2009-10-01 Martin Jambor <mjambor@suse.cz>
2064
2065 PR c++/41503
2066 * cp/pt.c (function_parameter_expanded_from_pack_p): Return false if
2067 DECL_ARTIFICIAL (param_decl) is true.
2068
2069 2009-09-30 Gabriel Dos Reis <gdr@cs.tamu.edu>
2070
2071 * tree.h (tree_decl_common::lang_flag_8): New.
2072 * c-common.c (c_common_reswords): Include "constexpr" as C++0x
2073 keyword.
2074 * c-common.h (RID_CONSTEXPR): New.
2075
2076 2009-09-30 Uros Bizjak <ubizjak@gmail.com>
2077
2078 * config/alpha/alpha.c (alpha_gimplify_va_arg_1):
2079 Use ref-all pointers.
2080 (alpha_gimplify_va_arg): Ditto.
2081
2082 2009-09-30 Jakub Jelinek <jakub@redhat.com>
2083
2084 PR target/41279
2085 * cfgloopanal.c (num_loop_insns): Don't increment ninsns for each bb
2086 before insn counting loop now that BB_END (bb) is counted. Ensure
2087 the return value isn't zero.
2088
2089 2009-09-30 Nick Clifton <nickc@redhat.com>
2090
2091 * config.gcc (sh-symbianelf): Replace definition of extra_objs
2092 with separate definitions of c_target_objs and cxx_target_objs.
2093 * config/sh/t-sh: Add rules to build symbian-cxx.o, symbian-c.o
2094 and symbian-base.o.
2095 * config/sh/sh.c (TARGET_CXX_INPUT_EXPORT_CLASS): Use
2096 sh_symbian_import_export_class.
2097 * config/sh/sh-protos.h: Fix names of exported symbian functions.
2098 * config/sh/symbian.c: Delete, moving code into...
2099 * config/sh/symbian-base.c: ... here
2100 * config/sh/symbian-c.c: ... and here
2101 * config/sh/symbian-cxx.c: ... and here.
2102
2103 2009-09-30 Uros Bizjak <ubizjak@gmail.com>
2104
2105 PR target/22093
2106 * config/alpha/alpha.md (unaligned_storehi_be): Force operand
2107 of plus RTX into register.
2108
2109 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2110
2111 * doc/install.texi: Linguistic and markup fixes.
2112 (Configuration) <--disable-cpp>: Remove description.
2113 <--enable-maintainer-mode>: Autotools files are affected, too.
2114 <--with-sysroot>: Improve description.
2115 (Building): Bump required GNU make version.
2116
2117 2009-09-29 Harsha Jagasia <harsha.jagasia@amd.com>
2118
2119 * config.gcc (i[34567]86-*-*): Include fma4intrin.h.
2120 (x86_64-*-*): Ditto.
2121
2122 * config/i386/fma4intrin.h: New file, provide common x86 compiler
2123 intrinisics for FMA4.
2124 * config/i386/cpuid.h (bit_FMA4): Define FMA4 bit.
2125 * config/i386/x86intrin.h: Fix typo to SSE4A instead of SSE4a.
2126 Add FMA4 check and fma4intrin.h.
2127 * config/i386/i386-c.c(ix86_target_macros_internal): Check
2128 ISA_FLAG for FMA4.
2129 * config/i386/i386.h(TARGET_FMA4): New macro for FMA4.
2130 * config/i386/i386.md (UNSPEC_FMA4_INTRINSIC): Add new UNSPEC
2131 constant for FMA4 support.
2132 (UNSPEC_FMA4_FMADDSUB): Ditto.
2133 (UNSPEC_FMA4_FMSUBADD): Ditto.
2134 * config/i386/i386.opt (-mfma4): New switch for FMA4 support.
2135 * config/i386/i386-protos.h (ix86_fma4_valid_op_p): Add declaration.
2136 (ix86_expand_fma4_multiple_memory): Ditto.
2137 * config/i386/i386.c (OPTION_MASK_ISA_FMA4_SET): New.
2138 (OPTION_MASK_ISA_FMA4_UNSET): New.
2139 (OPTION_MASK_ISA_SSE4A_UNSET): Change definition to depend on FMA4.
2140 (OPTION_MASK_ISA_AVX_UNSET): Change definition to depend on FMA4.
2141 (ix86_handle_option): Handle -mfma4.
2142 (isa_opts): Handle -mfma4.
2143 (enum pta_flags): Add PTA_FMA4.
2144 (override_options): Add FMA4 support.
2145 (IX86_BUILTIN_VFMADDSS): New for FMA4 intrinsic.
2146 (IX86_BUILTIN_VFMADDSD): Ditto.
2147 (IX86_BUILTIN_VFMADDPS): Ditto.
2148 (IX86_BUILTIN_VFMADDPD): Ditto.
2149 (IX86_BUILTIN_VFMSUBSS): Ditto.
2150 (IX86_BUILTIN_VFMSUBSD): Ditto.
2151 (IX86_BUILTIN_VFMSUBPS): Ditto.
2152 (IX86_BUILTIN_VFMSUBPD): Ditto.
2153 (IX86_BUILTIN_VFMADDSUBPS): Ditto.
2154 (IX86_BUILTIN_VFMADDSUBPD): Ditto.
2155 (IX86_BUILTIN_VFMSUBADDPS): Ditto.
2156 (IX86_BUILTIN_VFMSUBADDPD): Ditto.
2157 (IX86_BUILTIN_VFNMADDSS): Ditto.
2158 (IX86_BUILTIN_VFNMADDSD): Ditto.
2159 (IX86_BUILTIN_VFNMADDPS): Ditto.
2160 (IX86_BUILTIN_VFNMADDPD): Ditto.
2161 (IX86_BUILTIN_VFNMSUBSS): Ditto.
2162 (IX86_BUILTIN_VFNMSUBSD): Ditto.
2163 (IX86_BUILTIN_VFNMSUBPS): Ditto.
2164 (IX86_BUILTIN_VFNMSUBPD): Ditto.
2165 (IX86_BUILTIN_VFMADDPS256): Ditto.
2166 (IX86_BUILTIN_VFMADDPD256): Ditto.
2167 (IX86_BUILTIN_VFMSUBPS256): Ditto.
2168 (IX86_BUILTIN_VFMSUBPD256): Ditto.
2169 (IX86_BUILTIN_VFMADDSUBPS256): Ditto.
2170 (IX86_BUILTIN_VFMADDSUBPD256): Ditto.
2171 (IX86_BUILTIN_VFMSUBADDPS256): Ditto.
2172 (IX86_BUILTIN_VFMSUBADDPD256): Ditto.
2173 (IX86_BUILTIN_VFNMADDPS256): Ditto.
2174 (IX86_BUILTIN_VFNMADDPD256): Ditto.
2175 (IX86_BUILTIN_VFNMSUBPS256): Ditto.
2176 (IX86_BUILTIN_VFNMSUBPD256): Ditto.
2177 (enum multi_arg_type): New enum for describing the various FMA4
2178 intrinsic argument types.
2179 (bdesc_multi_arg): New table for FMA4 intrinsics.
2180 (ix86_init_mmx_sse_builtins): Add FMA4 intrinsic support.
2181 (ix86_expand_multi_arg_builtin): New function for creating FMA4
2182 intrinsics.
2183 (ix86_expand_builtin): Add FMA4 intrinsic support.
2184 (ix86_fma4_valid_op_p): New function to validate FMA4 3 and 4
2185 operand instructions.
2186 (ix86_expand_fma4_multiple_memory): New function to split the
2187 second memory reference from FMA4 instructions.
2188 * config/i386/sse.md (ssemodesuffixf4): New mode attribute for FMA4.
2189 (ssemodesuffixf2s): Ditto.
2190 (fma4_fmadd<mode>4): Add FMA4 floating point multiply/add
2191 instructions.
2192 (fma4_fmsub<mode>4): Ditto.
2193 (fma4_fnmadd<mode>4): Ditto.
2194 (fma4_fnmsub<mode>4): Ditto.
2195 (fma4_vmfmadd<mode>4): Ditto.
2196 (fma4_vmfmsub<mode>4): Ditto.
2197 (fma4_vmfnmadd<mode>4): Ditto.
2198 (fma4_vmfnmsub<mode>4): Ditto.
2199 (fma4_fmadd<mode>4256): Ditto.
2200 (fma4_fmsub<mode>4256): Ditto.
2201 (fma4_fnmadd<mode>4256): Ditto.
2202 (fma4_fnmsub<mode>4256): Ditto.
2203 (fma4_fmaddsubv8sf4): Ditto.
2204 (fma4_fmaddsubv4sf4): Ditto.
2205 (fma4_fmaddsubv4df4): Ditto.
2206 (fma4_fmaddsubv2df4): Ditto.
2207 (fma4_fmsubaddv8sf4): Ditto.
2208 (fma4_fmsubaddv4sf4): Ditto.
2209 (fma4_fmsubaddv4df4): Ditto.
2210 (fma4_fmsubaddv2df4): Ditto.
2211 (fma4i_fmadd<mode>4): Add FMA4 floating point multiply/add
2212 instructions for intrinsics.
2213 (fma4i_fmsub<mode>4): Ditto.
2214 (fma4i_fnmadd<mode>4): Ditto.
2215 (fma4i_fnmsub<mode>4): Ditto.
2216 (fma4i_vmfmadd<mode>4): Ditto.
2217 (fma4i_vmfmsub<mode>4): Ditto.
2218 (fma4i_vmfnmadd<mode>4): Ditto.
2219 (fma4i_vmfnmsub<mode>4): Ditto.
2220 (fma4i_fmadd<mode>4256): Ditto.
2221 (fma4i_fmsub<mode>4256): Ditto.
2222 (fma4i_fnmadd<mode>4256): Ditto.
2223 (fma4i_fnmsub<mode>4256): Ditto.
2224 (fma4i_fmaddsubv8sf4): Ditto.
2225 (fma4i_fmaddsubv4sf4): Ditto.
2226 (fma4i_fmaddsubv4df4): Ditto.
2227 (fma4i_fmaddsubv2df4): Ditto.
2228 (fma4i_fmsubaddv8sf4): Ditto.
2229 (fma4i_fmsubaddv4sf4): Ditto.
2230 (fma4i_fmsubaddv4df4): Ditto.
2231 (fma4i_fmsubaddv2df4): Ditto.
2232
2233 * doc/invoke.texi (-mfma4): Add documentation.
2234 * doc/extend.texi (x86 intrinsics): Add FMA4 intrinsics.
2235
2236 2009-09-29 Richard Henderson <rth@redhat.com>
2237
2238 * tree-eh.c (unsplit_eh): Do not unsplit if there's already
2239 an edge to the new destination block.
2240
2241 2009-09-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2242
2243 PR target/41393
2244 * pa.c (hppa_profile_hook): Use
2245 make_reg_eh_region_note_nothrow_nononlocal to add REG_EH_REGION note.
2246
2247 2009-09-29 Steve Ellcey <sje@cup.hp.com>
2248 Alexander Monakov <amonakov@ispras.ru>
2249
2250 PR target/41365
2251 * config/ia64/predicates.md (not_postinc_destination_operand): New.
2252 (not_postinc_memory_operand): New.
2253 (not_postinc_move_operand): New.
2254 * config/ia64/ia64.md (*cmovdi_internal): Disallow autoincrement.
2255 (*cmovsi_internal): Ditto.
2256
2257 2009-09-29 Pat Haugen <pthaugen@us.ibm.com>
2258
2259 * config/rs6000/rs6000.c (rs6000_issue_rate): Don't artificially
2260 restrict issue_rate in first pass when scheduling for register
2261 pressure.
2262
2263 2009-09-29 Basile Starynkevitch <basile@starynkevitch.net>
2264 Rafael Avila de Espindola <espindola@google.com>
2265
2266 * gengtype.c (plugin_output): New.
2267 (get_output_file_with_visibility): Return plugin_output for plugins.
2268 (main): Parse and use the -P option.
2269 * gty.texi: Update the command line format.
2270
2271 2009-09-29 Jakub Jelinek <jakub@redhat.com>
2272
2273 PR debug/41438
2274 * dwarf2out.c (const_ok_for_output_1, const_ok_for_output): New
2275 functions.
2276 (mem_loc_descriptor, loc_descriptor, add_const_value_attribute): Bail
2277 out if !const_ok_for_output.
2278
2279 PR debug/41474
2280 * dwarf2out.c (mem_loc_descriptor) <case CONCAT, case CONCATN,
2281 case VAR_LOCATION>: Remove gcc_unreachable ().
2282
2283 2009-09-29 Harsha Jagasia <harsha.jagasia@amd.com>
2284
2285 * config.gcc (i[34567]86-*-*): Remove mmintrin-common.h.
2286 (x86_64-*-*): Ditto.
2287 * config/i386/smmintrin.h: Move instructions in mmintrin-common.h
2288 back to smmintrin.h.
2289 * config/i386/cpuid.h: (bit_SSE5): Remove SSE5 bit.
2290 * config/i386/x86intrin.h: Remove SSE5.
2291 * config/i386/mmintrin-common.h: Delete file.
2292 * doc/extend.texi (x86 intrinsics): Remove SSE5 flags and builtins.
2293
2294 2009-09-29 Richard Guenther <rguenther@suse.de>
2295
2296 * alias.c (ao_ref_from_mem): Properly deal with off decl accesses
2297 resulting from stack temporaries on STRICT_ALIGNMENT targets.
2298
2299 2009-09-29 Nick Clifton <nickc@redhat.com>
2300
2301 * function.c (current_function_name): If there is no current
2302 function just return "<none>".
2303
2304 2009-09-28 Sriraman Tallam <tmsriram@google.com>
2305
2306 * tree-pass.h (register_pass_info): New structure.
2307 (pass_positioning_ops): Move enum from gcc-plugin.h.
2308 (register_pass): New function.
2309 * gcc-plugin.h (plugin_pass): Delete structure.
2310 (pass_positioning_ops): Delete enum.
2311 * plugin.c (regsiter_pass): Delete function.
2312 (position_pass): Delete function.
2313 (added_pass_nodes): Delete variable.
2314 (prev_added_pass_nodes): Delete variable.
2315 (pass_list_node): Delete structure.
2316 * passes.c (make_pass_instance): New function.
2317 (next_pass_1): Change to call make_pass_instance.
2318 (pass_list_node): Move structure from gcc-plugin.h.
2319 (added_pass_nodes): Move variable from plugin.c.
2320 (prev_added_pass_nodes): Move variable from plugin.c.
2321 (position_pass): New function.
2322 (register_pass): New function.
2323
2324 2009-09-28 Easwaran Raman <eraman@google.com>
2325
2326 * ifcvt.c (noce_try_abs): Recognize pattern and call
2327 expand_one_cmpl_abs_nojump.
2328 * optabs.c (expand_one_cmpl_abs_nojump): New function.
2329 * optabs.h (expand_one_cmpl_abs_nojump): Declare.
2330
2331 2009-09-28 Ian Lance Taylor <iant@google.com>
2332
2333 PR middle-end/40500
2334 * c-opts.c (c_common_handle_option): Don't set
2335 warn_jump_misses_init for -Wall.
2336 * doc/invoke.texi (Warning Options): Update documentation.
2337
2338 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2339
2340 * Makefile.in ($(out_object_file)): Depend on
2341 gt-$(basename $(notdir $(out_file))).h.
2342
2343 2009-09-28 Richard Henderson <rth@redhat.com>
2344
2345 * except.h (struct eh_region_d): Add use_cxa_end_cleanup.
2346 * except.c (gen_eh_region): Set it.
2347 (duplicate_eh_regions_1): Copy it.
2348 * tree-eh.c (lower_resx): Use it to determine which function
2349 to call to resume.
2350
2351 * langhooks.h (struct lang_hooks): Add eh_use_cxa_end_cleanup.
2352 * langhooks-def.h (LANG_HOOKS_EH_USE_CXA_END_CLEANUP): New.
2353 * builtins.def (BUILT_IN_CXA_END_CLEANUP): New.
2354 * tree.c (build_common_builtin_nodes): Remove parameter. Build
2355 BUILT_IN_CXA_END_CLEANUP if necessary.
2356
2357 * c-common.c (c_define_builtins): Update call to
2358 build_common_builtin_nodes.
2359
2360 2009-09-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
2361
2362 * spu.c (get_branch_target): Return NULL for ASM_OPERANDS patterns.
2363
2364 2009-09-28 Michael Matz <matz@suse.de>
2365
2366 * builtins.c (interclass_mathfn_icode): New helper.
2367 (expand_builtin_interclass_mathfn): Use it here, and split folding
2368 into ...
2369 (fold_builtin_interclass_mathfn): ... this new folder.
2370 (build_call_nofold_loc): New static helper.
2371 (build_call_nofold): New wrapper macro for above.
2372 (expand_builtin_int_roundingfn): Use it instead of build_call_expr.
2373 (expand_builtin_pow): Ditto.
2374 (expand_builtin_memset_args): Ditto.
2375 (expand_builtin_printf): Ditto.
2376 (expand_builtin_fprintf): Ditto.
2377 (expand_builtin_sprintf): Ditto.
2378 (expand_builtin_memory_chk): Ditto.
2379 (expand_builtin_mempcpy_args): Ditto and don't call folders.
2380 (expand_builtin_stpcpy): Ditto.
2381 (expand_builtin_strcmp): Ditto.
2382 (expand_builtin_strncmp): Ditto.
2383 (expand_builtin_strcpy): Remove FNDECL and MODE arguments.
2384 (expand_builtin_strcpy_args): Don't call folders.
2385 (expand_builtin_memcmp): Ditto.
2386 (expand_builtin_strncpy): Ditto, and use target.
2387 (expand_builtin_memcpy): Ditto.
2388 (expand_builtin_strstr, expand_builtin_strchr, expand_builtin_strrchr,
2389 expand_builtin_strpbrk, expand_builtin_memmove,
2390 expand_builtin_memmove_args, expand_builtin_bcopy,
2391 expand_builtin_memchr, expand_builtin_strcat, expand_builtin_strncat,
2392 expand_builtin_strspn, expand_builtin_strcspn,
2393 expand_builtin_fputs): Remove these.
2394 (expand_builtin): Don't call the above, change calls to other
2395 expanders that changed prototype.
2396 (fold_builtin_stpcpy): New folder split out from expand_builtin_stpcpy.
2397 (fold_builtin_1 <ISFINITE, ISINF, ISNORMAL>): Call
2398 fold_builtin_interclass_mathfn.
2399 (fold_builtin_2 <STPCPY>): Call fold_builtin_stpcpy.
2400 (fold_builtin_strcat): Add folding split from expand_builtin_strcat.
2401
2402 * fold-const.c (fold_binary_loc <NE_EXPR>): Add !exp != 0 -> !exp.
2403 * passes.c (init_optimization_passes): Move pass_fold_builtins
2404 after last phiopt pass.
2405 * tree-inline.c (fold_marked_statements): When folding builtins
2406 iterate over all instruction potentially generated.
2407 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Declare
2408 earlier.
2409 (fold_gimple_call): Use it to always fold calls (into potentially
2410 multiple instructions).
2411 * tree-ssa-dom.c (optimize_stmt): Resolve __builtin_constant_p
2412 calls into zero at this time.
2413 * tree-ssa-propagate.c (substitute_and_fold): Ignore multiple
2414 statements generated by builtin folding.
2415
2416 2009-09-28 Nick Clifton <nickc@redhat.com>
2417
2418 * config/m32r/m32r.c (m32r_is_insn): Return false for debugging insns.
2419
2420 2009-09-28 Duncan Sands <baldrick@free.fr>
2421
2422 * gcc-plugin.h (PLUGIN_REGISTER_GGC_CACHES): New event.
2423 * plugin.c (plugin_event_name): Add PLUGIN_REGISTER_GGC_CACHES.
2424 (register_callback): Dispatch it.
2425 (invoke_plugin_callbacks): Incorporate in sanity check.
2426 * ggc.h (ggc_register_cache_tab): Add declaration.
2427 * ggc-common.c (ggc_register_root_tab): Simplify.
2428 (const_ggc_cache_tab_t): New typedef.
2429 (extra_cache_vec): New vector of dynamically added cache tables.
2430 (ggc_register_cache_tab): New function.
2431 (ggc_scan_cache_tab): New function.
2432 (ggc_mark_roots): Simplify dynamic roots. Handle dynamic caches.
2433 * doc/plugins.texi: Document PLUGIN_REGISTER_GGC_CACHES.
2434
2435 2009-09-27 Richard Henderson <rth@redhat.com>
2436
2437 * tree-ssa-ccp.c (optimize_stack_restore): Relax the conditions under
2438 which we remove __builtin_stack_restore.
2439
2440 2009-09-27 Bernd Schmidt <bernd.schmidt@analog.com>
2441
2442 * loop-iv.c (iv_analyze_op): Use function_invariant_p, not CONSTANT_P,
2443 to test for GRD_INVARIANT.
2444 (simple_rhs_p): Anything that's function_invariant_p is fine.
2445
2446 2009-09-27 Rafael Avila de Espindola <espindola@google.com>
2447
2448 * gengtype.c (main): Use plunge_files instead of plugin_output.
2449
2450 2009-09-27 Basile Starynkevitch <basile@starynkevitch.net>
2451 Rafael Avila de Espindola <espindola@google.com>
2452
2453 * gengtype.c (write_root, write_roots): Add a emit_pch argument.
2454 Don't print pch related info if it is false.
2455 (main): Don't print pch info in plugin mode.
2456
2457 2009-09-27 Eric Botcazou <ebotcazou@adacore.com>
2458
2459 * dwarf2out.c (enum dw_val_class): Replace dw_val_class_long_long
2460 with dw_val_class_const_double.
2461 (struct dw_val_struct): Replace val_long_long with val_double and
2462 adjust for above change.
2463 (output_loc_operands): Likewise.
2464 (add_AT_long_long): Rename into...
2465 (add_AT_double): ...this.
2466 (print_die): Replace dw_val_class_long_long with
2467 dw_val_class_const_double and adjust.
2468 (attr_checksum): Likewise.
2469 (same_dw_val_p): Likewise.
2470 (size_of_die): Likewise.
2471 (value_format): Likewise.
2472 (output_die): Likewise.
2473 (loc_descriptor) <CONST_DOUBLE>: Likewise.
2474 (add_const_value_attribute) <CONST_DOUBLE>: Call add_AT_double
2475 instead of add_AT_long_long.
2476 (add_bound_info) <INTEGER_CST>: Generate the bound as an unsigned
2477 value with the precision of its type.
2478
2479 2009-09-27 Andreas Schwab <schwab@linux-m68k.org>
2480
2481 PR c/41476
2482 * c-typeck.c (build_conditional_expr): Use the readonly and
2483 volatile flags of the operand types, not of the operands itself.
2484
2485 2009-09-27 Peter O'Gorman <pogma@thewrittenword.com>
2486
2487 * collect2.c (main): Look for -brtl before adding libraries.
2488
2489 2009-09-27 Jonathan Gray <jsg@openbsd.org>
2490
2491 * config.gcc: Update OpenBSD targets.
2492 * config/openbsd-stdint.h: New file.
2493 * config/openbsd-libpthread.h: New file.
2494 * config/openbsd.h: Update and break out LIB_SPEC definition.
2495 * config/alpha/openbsd.h: Overhaul to reflect ELF migration.
2496 * config/i386/openbsdelf.h: Correct types.
2497 * config/m68k/openbsd.h: Likewise.
2498 * config/mips/openbsd.h: Likewise.
2499 * config/vax/openbsd.h: Likewise.
2500
2501 2009-09-27 Eric Botcazou <ebotcazou@adacore.com>
2502
2503 * fold-const.c (maybe_lvalue_p): Return false for M(IN|AX)_EXPR.
2504 (extract_muldiv_1) <MINUS_EXPR>: Swap operands if necessary.
2505 * stor-layout.c (layout_type) <ARRAY_TYPE>: Do not take the maximum
2506 of the length and zero.
2507
2508 2009-09-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2509
2510 * Makefile.in (TOPLEV_H): Use $(INPUT_H) not input.h.
2511 (FLAGS_H): Add options.h $(REAL_H).
2512 (SEL_SCHED_IR_H): Add $(BITMAP_H) vecprim.h $(CFGLOOP_H).
2513 (TREE_VECTORIZER_H): New.
2514 (EBITMAP_H): Renamed from EBIMAP_H.
2515 (c-decl.o, c-objc-common.o, c-pretty-print.o, attribs.o, c-omp.o)
2516 (gtype-desc.o, ggc-common.o, ggc-page.o, ggc-zone.o, langhooks.o)
2517 (tree.o, tree-ssa-structalias.o, tree-ssa-ter.o, tree-ssanames.o)
2518 (tree-phinodes.o, tree-ssa-loop.o, tree-ssa-math-opts.o)
2519 (gimple-low.o, omp-low.o, sese.o, graphite-blocking.o)
2520 (graphite-clast-to-gimple.o, graphite-dependences.o)
2521 (graphite-interchange.o, graphite-poly.o, graphite-scop-detection.o)
2522 (graphite-sese-to-poly.o, tree-vect-loop.o, tree-vect-loop-manip.o)
2523 (tree-vect-patterns.o, tree-vect-slp.o, tree-vect-stmts.o)
2524 (tree-vect-data-refs.o, tree-vectorizer.o, gimple.o, tree-mudflap.o)
2525 (targhooks.o, stmt.o, emit-rtl.o, ipa.o, matrix-reorg.o, ipa-inline.o)
2526 (gcse.o, tree-ssa-ccp.o, df-byte-scan.o, vec.o, caller-save.o)
2527 (ira-build.o, ira-costs.o, ira-color.o, ira-emit.o, ira.o)
2528 (haifa-sched.o, sched-rgn.o, sel-sched.o, sel-sched-dump.o)
2529 (sel-sched-ir.o, final.o, $(out_object_file)): Dependencies
2530 updated and fixed as per above changes and per
2531 check_makefile_deps.sh output.
2532
2533 PR bootstrap/40928
2534 * configure.ac: Use $LIBS for '-ldl', not $LDFLAGS.
2535 * configure: Regenerate.
2536
2537 2009-09-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2538
2539 * doc/install.texi: Update minimum MPC version to 0.7.
2540
2541 2009-09-26 Gerald Pfeifer <gerald@pfeifer.com>
2542
2543 * doc/install.texi (Binaries): Remove reference to the binary
2544 distribution CD-ROM from the FSF.
2545
2546 2009-09-26 Michael Matz <matz@suse.de>
2547
2548 PR lto/40758
2549 PR middle-end/41470
2550 * tree-ssa-coalesce.c (coalesce_ssa_name): Add only SSA names
2551 that are mentioned in the body.
2552
2553 2009-09-26 Michael Matz <matz@suse.de>
2554
2555 PR tree-optimization/41454
2556 * tree-ssa-dom (stmts_to_rescan): Remove variable.
2557 (tree_ssa_dominator_optimize): Don't allocate and free it.
2558 (dom_opt_leave_block): Don't iterate over it.
2559 (eliminate_redundant_computations): Don't return a value.
2560 (cprop_operand, cprop_into_stmt): Ditto.
2561 (optimize_stmt): Don't defer updating stmts.
2562
2563 2009-09-25 Dodji Seketeli <dodji@redhat.com>
2564
2565 * dwarf2out.c (dwarf_tag_name, gen_generic_params_dies,
2566 generic_parameter_die, template_parameter_pack_die,
2567 gen_formal_parameter_die, gen_subprogram_die): Adjust after
2568 renaming DW_TAG_formal_parameter_pack and
2569 DW_TAG_template_parameter_pack into DW_TAG_GNU_formal_parameter_pack
2570 and DW_TAG_GNU_template_parameter_pack.
2571
2572 2009-09-25 Anatoly Sokolov <aesok@post.ru>
2573
2574 * config/v850/v850.h (FUNCTION_VALUE): Remove.
2575 * config/v850/v850.c (v850_function_value): New function.
2576 (TARGET_FUNCTION_VALUE): Define.
2577
2578 2009-09-25 Jakub Jelinek <jakub@redhat.com>
2579
2580 * tree-vect-stmts.c (vectorizable_call): Call
2581 mark_symbols_for_renaming after vect_finish_stmt_generation.
2582
2583 * dwarf2out.c (tls_mem_loc_descriptor): Pass 1 instead of 2
2584 to loc_descriptor_from_tree.
2585 (add_location_or_const_value_attribute): Pass 0 instead of 2
2586 for decl_by_reference_p decls.
2587
2588 2009-09-25 Richard Guenther <rguenther@suse.de>
2589
2590 PR middle-end/41463
2591 * tree-dfa.c (get_ref_base_and_extent): Fix issue with trailing
2592 arrays again.
2593
2594 2009-09-25 Ben Elliston <bje@au.ibm.com>
2595
2596 * doc/invoke.texi (RS/6000 and PowerPC Options): Add missing comma
2597 after `power7'.
2598
2599 2009-09-25 Alan Modra <amodra@bigpond.net.au>
2600
2601 * config/rs6000/rs6000.md (load_toc_v4_PIC_3c): Correct POWER
2602 form of instruction.
2603
2604 2009-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2605
2606 PR middle-end/41435
2607 * fold-const.c (const_binop): Handle complex int division.
2608 * tree-complex.c (expand_complex_div_straight,
2609 expand_complex_div_wide): Update comments.
2610
2611 2009-09-24 DJ Delorie <dj@redhat.com>
2612
2613 PR target/41456
2614 * config/m32c/m32c.h (REG_CLASS_CONTENTS): Add R13.
2615 (reg_class): Likewise.
2616 (REG_CLASS_NAMES): Likewise.
2617 * config/m32c/m32c.c (m32c_reg_class_from_constraint): Likewise.
2618 (m32c_override_options): Disable -fivopts for M32C.
2619
2620 2009-09-24 Michael Meissner <meissner@linux.vnet.ibm.com>
2621
2622 * config/rs6000/predicates.md (indexed_or_indirect_operand):
2623 Delete VSX load/store with update support.
2624 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Ditto.
2625 * config/rs6000/vsx.md (vsx_mov<mode>): Ditto.
2626 (vsx_movti): Ditto.
2627 (VSX_U): Delete.
2628 (VSbit): Ditto.
2629 (VStype_load_update): Ditto.
2630 (VStype_store_update): Ditto.
2631 (vsx_load<VSX_U:mode>_update_<P:mptrsize>): Ditto.
2632 (vsx_store<VSX_U:mode>_update_<P:mptrsize>): Ditto.
2633
2634 * config/rs6000/rs6000.h (enum rs6000_builtins): Delete VSX
2635 load/store with update builtins.
2636
2637 2009-09-24 Kai Tietz <kai.tietz@onevision.com>
2638
2639 * libgcc2.c (L_trampoline): Prototype for getpagesize
2640 and mprotect in WINNT case.
2641
2642 2009-09-24 Anatoly Sokolov <aesok@post.ru>
2643
2644 * config/rs6000/rs6000.h (FUNCTION_VALUE): Remove macro.
2645 * config/rs6000/rs6000-protos.h (rs6000_function_value): Remove.
2646 * config/rs6000/rs6000.c (rs6000_function_value): Make static, add
2647 'outgoing' argument.
2648 (TARGET_FUNCTION_VALUE): Define.
2649
2650 2009-09-24 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
2651
2652 * config/darwin.h (DWARF2_DEBUGGING_INFO): Define as 1.
2653
2654 2009-09-24 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
2655
2656 PR bootstrap/41405
2657 * common.opt: Initialize dwarf_strict to -1.
2658 * toplev.c (process_options): Catch unset dwarf_strict
2659 and set to 0 for all targets not overriding.
2660 * config/darwin.c (darwin_override_options): Catch unset
2661 dwarf_strict and override to 1.
2662
2663 2009-09-24 Jeff Law <law@redhat.com>
2664
2665 * tree-into-ssa.c (rewrite_into_ssa): Free interesting_blocks.
2666
2667 2009-09-24 Richard Guenther <rguenther@suse.de>
2668
2669 PR tree-optimization/36143
2670 PR tree-optimization/38747
2671 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Only
2672 create VIEW_CONVERT_EXPRs for TBAA compatible accesses.
2673
2674 2009-09-24 Jakub Jelinek <jakub@redhat.com>
2675
2676 PR bootstrap/41457
2677 * dwarf2out.c (add_const_value_attribute): For HIGH and CONST_FIXED,
2678 return false instead of gcc_unreachable (). For CONST return the
2679 value returned by recursive call instead of always returning true.
2680 (tree_add_const_value_attribute): Return the value returned by
2681 add_const_value_attribute instead of always returning true if rtl
2682 is non-NULL.
2683
2684 2009-09-23 Justin Seyster <jrseys@gmail.com>
2685
2686 * Makefile.in (PLUGIN_HEADERS): Include real.h.
2687
2688 2009-09-24 Jakub Jelinek <jakub@redhat.com>
2689
2690 * cgraphunit.c (cgraph_lower_function): Revert last change.
2691 * targhooks.c (default_static_chain): Use !DECL_STATIC_CHAIN
2692 instead of DECL_NO_STATIC_CHAIN.
2693 * tree-cfg.c (verify_gimple_call): Likewise.
2694 * tree-nested.c (get_chain_decl, get_chain_field,
2695 convert_tramp_reference_op, convert_gimple_call): Likewise.
2696 (convert_all_function_calls): Likewise. Always set or clear
2697 DECL_STATIC_CHAIN initially, for !n->outer clear it.
2698 (lower_nested_functions): Remove DECL_NO_STATIC_CHAIN checking code.
2699 * c-parser.c (c_parser_declaration_or_fndef): Set DECL_STATIC_CHAIN
2700 if nested.
2701 * print-tree.c (print_node): Handle DECL_STATIC_CHAIN instead of
2702 DECL_NO_STATIC_CHAIN.
2703 * config/i386/i386.c (ix86_static_chain): Use !DECL_STATIC_CHAIN
2704 instead of DECL_NO_STATIC_CHAIN.
2705 (ix86_function_regparm, find_drap_reg): Likewise. Don't test
2706 decl_function_context.
2707 * varasm.c (initializer_constant_valid_p): Likewise.
2708 * tree.h (DECL_NO_STATIC_CHAIN): Renamed to ...
2709 (DECL_STATIC_CHAIN): ... this.
2710 * config/moxie/moxie.c (moxie_static_chain): Use !DECL_STATIC_CHAIN
2711 instead of DECL_NO_STATIC_CHAIN.
2712
2713 2009-09-23 Basile Starynkevitch <basile@starynkevitch.net>
2714 Rafael Avila de Espindola <espindola@google.com>
2715
2716 * gengtype.c (nb_plugin_files): Make it unsigned to match
2717 num_gt_files. Adjust other variables to avoid warnings.
2718 (main): Allocate an all zero lang_bitmap before each plugin file name
2719 to match regular file names.
2720
2721 2009-09-23 Richard Henderson <rth@redhat.com>
2722
2723 * doc/tm.texi (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
2724 (TARGET_STATIC_CHAIN): Mention that this hook must be used for
2725 static chain passed in memory.
2726 * system.h (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Poison.
2727 * targhooks.c (default_static_chain): Don't handle STATIC_CHAIN,
2728 STATIC_CHAIN_INCOMING. Issue a sorry if there's no
2729 STATIC_CHAIN_REGNUM defined.
2730
2731 * config/picochip/picochip-protos.h: s/class/klass/.
2732 * config/picochip/picochip.c (TARGET_STATIC_CHAIN): New.
2733 (picochip_static_chain): New.
2734 * config/picochip/picochip.h (STATIC_CHAIN): Remove.
2735 (STATIC_CHAIN_INCOMING): Remove.
2736
2737 * config/xtensa/xtensa.c (TARGET_STATIC_CHAIN): New.
2738 (xtensa_static_chain): New.
2739 * config/xtensa/xtensa.h (STATIC_CHAIN): Remove.
2740 (STATIC_CHAIN_INCOMING): Remove.
2741
2742 2009-09-23 Anatoly Sokolov <aesok@post.ru>
2743
2744 * config/pa/pa.h (FUNCTION_VALUE): Remove macro.
2745 * config/pa/pa-protos.h (function_value): Remove.
2746 * config/pa/pa.c (pa_function_value): Rename from function_value.
2747 Make static, add 'outgoing' argument.
2748 (TARGET_FUNCTION_VALUE): Define.
2749
2750 2009-09-23 Anatoly Sokolov <aesok@post.ru>
2751
2752 * config/avr/avr.c (avr_regs_to_save): Use current_function_is_leaf
2753 instead of cfun->machine->is_leaf.
2754 * config/avr/avr.h (machine_function): Remove is_leaf field.
2755
2756 2009-09-23 Jakub Jelinek <jakub@redhat.com>
2757
2758 PR debug/41439
2759 * dwarf2out.c (address_of_int_loc_descriptor): Don't emit
2760 DW_OP_piece after DW_OP_stack_value, adjust size calculations
2761 for it, when DW_OP_stack_value and DW_OP_implicit_value has
2762 the same size, prefer DW_OP_stack_value.
2763 (loc_descriptor, loc_list_for_address_of_addr_expr_of_indirect_ref,
2764 loc_list_from_tree): Don't emit DW_OP_piece after DW_OP_stack_value.
2765
2766 2009-09-23 Alexandre Oliva <aoliva@redhat.com>
2767
2768 PR debug/41353
2769 * var-tracking.c (add_with_sets): Sort MO_VAL_LOC last among uses.
2770
2771 2009-09-23 Alexandre Oliva <aoliva@redhat.com>
2772
2773 PR debug/41248
2774 * cfgexpand.c (convert_debug_memory_address): New.
2775 (expand_debug_expr): Convert base address and offset to the same
2776 mode. Use it to convert addresses to other modes. Accept
2777 ptr_mode addresses.
2778
2779 2009-09-23 Richard Guenther <rguenther@suse.de>
2780
2781 * alias.c (ao_ref_from_mem): Correct for negative MEM_OFFSET
2782 produced for bigendian targets with promoted subregs.
2783
2784 2009-09-23 Richard Guenther <rguenther@suse.de>
2785
2786 * value-prof.c (gimple_ic): Purge old EH edges only after building
2787 the new ones.
2788
2789 2009-09-23 Nick Clifton <nickc@redhat.com>
2790
2791 * config/arc/arc.c (arc_trampoline_init): Fix typo.
2792
2793 2009-09-23 Jakub Jelinek <jakub@redhat.com>
2794
2795 PR bootstrap/41405
2796 * doc/invoke.texi: Document -gstrict-dwarf and -gno-strict-dwarf.
2797
2798 PR bootstrap/41436
2799 * cgraphunit.c (cgraph_lower_function): Set DECL_NO_STATIC_CHAIN
2800 on non-nested functions.
2801
2802 2009-09-23 Jakub Jelinek <jakub@redhat.com>
2803 Jan Hubicka <jh@suse.cz>
2804
2805 * dwarf2out.c (loc_list_plus_const): Only define if
2806 DWARF2_DEBUGGING_INFO.
2807 (address_of_int_loc_descriptor): Likewise.
2808
2809 PR debug/41411
2810 * dwarf2out.c (mem_loc_descriptor): Handle HIGH.
2811
2812 2009-09-23 Uros Bizjak <ubizjak@gmail.com>
2813
2814 PR c/39779
2815 * c-typeck.c (build_binary_op) <short_shift>: Check that integer
2816 constant is more than zero.
2817
2818 2009-09-23 Alan Modra <amodra@bigpond.net.au>
2819
2820 PR target/40473
2821 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
2822 call final to emit non-scheduled prologue, instead insert at entry.
2823
2824 2009-09-22 Loren J. Rittle <ljrittle@acm.org>
2825 Joseph S. Myers <joseph@codesourcery.com>
2826
2827 * doc/install.texi (*-*-freebsd*): Add proper format codes.
2828
2829 2009-09-22 Basile Starynkevitch <basile@starynkevitch.net>
2830 Rafael Avila de Espindola <espindola@google.com>
2831
2832 * gengtype.c (is_file_equal): New function.
2833 (close_output_files): Use is_file_equal. Free of->buf.
2834
2835 2009-09-22 Basile Starynkevitch <basile@starynkevitch.net>
2836 Rafael Avila de Espindola <espindola@google.com>
2837
2838 * gengtype.c (write_types, write_local): Add the output_header
2839 argument. Update all callers.
2840
2841 2009-09-22 Dodji Seketeli <dodji@redhat.com>
2842
2843 * dwarf2out.c (template_parameter_pack_die,
2844 gen_formal_parameter_pack_die ): New functions.
2845 (make_ith_pack_parameter_name): Remove this function.
2846 (dwarf_tag_name): Support printing DW_TAG_template_parameter_pack and
2847 DW_TAG_formal_parameter_pack.
2848 (gen_generic_params_dies): Represent each template parameter pack
2849 by a DW_TAG_template_parameter_pack DIE. Argument pack elements are
2850 represented by usual DW_TAG_template_*_parameter DIEs that are
2851 children of the DW_TAG_template_parameter_pack element DIE.
2852 (generic_parameter_die): This doesn't deal with parameter pack
2853 names anymore. Don't generate DW_AT_name for some DIEs, e.g. children
2854 of parameter pack DIEs.
2855 (gen_formal_parameter_die): Add a flag to not emit DW_AT_name
2856 in certain cases, e.g. for pack elements.
2857 (gen_formal_types_die, gen_decl_die): Adjust usage of
2858 gen_formal_parameter_die.
2859 (gen_subprogram_die): Represent each function parameter pack by a
2860 DW_TAG_formal_parameter_pack DIE. Arguments of of the pack are
2861 represented by usual DW_TAG_formal_parameter DIEs that are children
2862 of the DW_TAG_formal_parameter_pack DIE. Remove references to
2863 ____builtin_va_alist decls as no part of the compiler uses those
2864 anymore.
2865 * langhooks.h (struct lang_hooks_for_decls): Add
2866 function_parm_expanded_from_pack_p, get_generic_function_decl
2867 and function_parameter_pack_p hooks. Fix comment for
2868 get_innermost_generic_parms hook.
2869 * langhooks-def.h (LANG_HOOKS_FUNCTION_PARAMETER_PACK_P,
2870 LANG_HOOKS_FUNCTION_PARM_EXPANDED_FROM_PACK_P ): Declare new hook
2871 macros and use them to initialize lang_hook.
2872
2873 2009-09-22 Richard Henderson <rth@redhat.com>
2874
2875 * system.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE): Poison.
2876 (TRAMPOLINE_ADJUST_ADDRESS): Poison.
2877 * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): Don't conditionalize
2878 on TRAMPOLINE_TEMPLATE.
2879 (TARGET_TRAMPOLINE_ADJUST_ADDRESS): Don't conditionalize on
2880 TRAMPOLINE_ADJUST_ADDRESS.
2881 * targhooks.c (default_asm_trampoline_template): Remove.
2882 (default_trampoline_adjust_address): Remove.
2883 (default_trampoline_init): Don't handle INITIALIZE_TRAMPOLINE.
2884 * targhooks.h: Update decls.
2885
2886 2009-09-22 Dave Korn <dave.korn.cygwin@gmail.com>
2887
2888 * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Enable.
2889 * config/i386/cygwin.h (LIBGCJ_SONAME): Define.
2890 * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
2891
2892 2009-09-22 Alexandre Oliva <aoliva@redhat.com>
2893
2894 PR debug/41295
2895 * reload1.c (reload): Reset debug insns with pseudos without
2896 equivalences.
2897
2898 2009-09-22 Janis Johnson <janis187@us.ibm.com>
2899
2900 * config/i386/i386.c (ix86_scalar_mode_supported_p): Don't return
2901 unconditional true for decimal float modes.
2902 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Ditto.
2903 * config/s390/s390.c (s390_scalar_mode_supported_p): Ditto.
2904
2905 2009-09-22 Loren J. Rittle <ljrittle@acm.org>
2906
2907 * unwind-dw2-fde-glibc.c: Define and use USE_PT_GNU_EH_FRAME.
2908 Enable a new case for __FreeBSD__ >= 7.
2909 * crtstuff.c: Define USE_PT_GNU_EH_FRAME for __FreeBSD__ >= 7.
2910 * config/t-freebsd: Define LIB2ADDEH and LIB2ADDEHDEP.
2911 * config/freebsd-spec.h: Conditionally define LINK_EH_SPEC
2912 and USE_LD_AS_NEEDED.
2913
2914 * doc/install.texi (*-*-freebsd*): Update target information.
2915
2916 2009-09-22 Richard Guenther <rguenther@suse.de>
2917
2918 PR middle-end/41395
2919 * tree-dfa.c (get_ref_base_and_extent): Handle trailing
2920 arrays really properly.
2921
2922 2009-09-22 Richard Henderson <rth@redhat.com>
2923
2924 PR target/41246
2925 * target.h (struct gcc_target): Add asm_out.trampoline_template,
2926 calls.static_chain, calls.trampoline_init,
2927 calls.trampoline_adjust_address.
2928 * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
2929 (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New.
2930 (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
2931 * builtins.c (expand_builtin_setjmp_receiver): Use
2932 targetm.calls.static_chain; only clobber registers.
2933 (expand_builtin_init_trampoline): Use targetm.calls.trampoline_init;
2934 set up memory attributes properly for the trampoline block.
2935 (expand_builtin_adjust_trampoline): Use
2936 targetm.calls.trampoline_adjust_address.
2937 * calls.c (prepare_call_address): Add fndecl argument. Use
2938 targetm.calls.static_chain.
2939 * df-scan.c (df_need_static_chain_reg): Remove.
2940 (df_get_entry_block_def_set): Use targetm.calls.static_chain;
2941 consolodate static chain handling.
2942 * doc/tm.texi: Document new hooks.
2943 * emit-rtl.c (static_chain_rtx, static_chain_incoming_rtx): Remove.
2944 (init_emit_regs): Don't initialize them.
2945 * expr.h (prepare_call_address): Update decl.
2946 * final.c (profile_function): Use targetm.calls.static_chain.
2947 * function.c (expand_function_start): Likewise.
2948 * rtl.h (static_chain_rtx, static_chain_incoming_rtx): Remove.
2949 * stmt.c (expand_nl_goto_receiver): Use targetm.calls.static_chain;
2950 only clobber registers.
2951 * targhooks.c (default_static_chain): New.
2952 (default_asm_trampoline_template, default_trampoline_init): New.
2953 (default_trampoline_adjust_address): New.
2954 * targhooks.h: Declare them.
2955 * varasm.c (assemble_trampoline_template): Use
2956 targetm.asm_out.trampoline_template. Make the memory block const
2957 and set its size.
2958
2959 * config/alpha/alpha.c (alpha_trampoline_init): Rename from
2960 alpha_initialize_trampoline. Make static. Merge VMS parameter
2961 differences into the TARGET_ABI_OPEN_VMS code block.
2962 (TARGET_TRAMPOLINE_INIT): New.
2963 * config/alpha/alpha.h (TRAMPOLINE_TEMPLATE): Remove.
2964 (TRAMPOLINE_SECTION, INITIALIZE_TRAMPOLINE): Remove.
2965 * config/alpha/vms.h (TRAMPOLINE_SIZE, TRAMPOLINE_ALIGNMENT): Remove.
2966 (INITIALIZE_TRAMPOLINE): Remove.
2967
2968 * config/arc/arc.h (TRAMPOLINE_ALIGNMENT): New.
2969 (TRAMPOLINE_TEMPLATE): Merge with ...
2970 (INITIALIZE_TRAMPOLINE): ... this and move ...
2971 * config/arc/arc.c (arc_trampoline_init): ... here.
2972 (TARGET_TRAMPOLINE_INIT): New.
2973
2974 * config/arm/arm.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
2975 (TARGET_TRAMPOLINE_INIT, TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
2976 (arm_asm_trampoline_template): New.
2977 (arm_trampoline_init, arm_trampoline_adjust_address): New.
2978 * config/arm/arm.h (TRAMPOLINE_TEMPLATE, ARM_TRAMPOLINE_TEMPLATE,
2979 THUMB2_TRAMPOLINE_TEMPLATE, THUMB1_TRAMPOLINE_TEMPLATE): Move all
2980 code to arm_asm_trampoline_template.
2981 (TRAMPOLINE_ADJUST_ADDRESS): Move code to
2982 arm_trampoline_adjust_address.
2983 (INITIALIZE_TRAMPOLINE): Move code to arm_trampoline_init;
2984 adjust for target hook parameters.
2985
2986 * config/avr/avr.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE):
2987 Remove.
2988
2989 * config/bfin/bfin-protos.h (initialize_trampoline): Remove.
2990 * config/bfin/bfin.c (bfin_asm_trampoline_template): New.
2991 (bfin_trampoline_init): Rename from initialize_trampoline;
2992 make static; update for target hook parameters.
2993 (TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New.
2994 * config/bfin/bfin.h (TRAMPOLINE_TEMPLATE): Move code to
2995 bfin_asm_trampoline_template.
2996 (INITIALIZE_TRAMPOLINE): Remove.
2997
2998 * config/cris/cris.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
2999 TARGET_TRAMPOLINE_INIT, cris_asm_trampoline_template,
3000 cris_trampoline_init): New.
3001 * config/cris/cris.h (TRAMPOLINE_TEMPLATE): Move code to
3002 cris_asm_trampoline_template.
3003 (INITIALIZE_TRAMPOLINE): Move code to cris_trampoline_init;
3004 adjust for target hook parameters.
3005
3006 * config/crx/crx.h (INITIALIZE_TRAMPOLINE): Remove.
3007
3008 * config/fr30/fr30.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
3009 TARGET_TRAMPOLINE_INIT, fr30_asm_trampoline_template,
3010 fr30_trampoline_init): New.
3011 * config/fr30/fr30.h (TRAMPOLINE_TEMPLATE): Move code to
3012 fr30_asm_trampoline_template.
3013 (INITIALIZE_TRAMPOLINE): Move code to fr30_trampoline_init;
3014 adjust for target hook parameters.
3015
3016 * config/frv/frv.c (TARGET_TRAMPOLINE_INIT): New.
3017 (frv_trampoline_init): Rename from frv_initialize_trampoline;
3018 make static, adjust arguments for TARGET_TRAMPOLINE_INIT hook.
3019 * config/frv/frv.h (INITIALIZE_TRAMPOLINE): Remove.
3020 * config/frv/frv-protos.h (frv_initialize_trampoline): Remove.
3021
3022 * config/h8300/h8300.c (h8300_trampoline_init): New.
3023 (TARGET_TRAMPOLINE_INIT): New.
3024 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Move code
3025 to h8300_trampoline_init and adjust for hook parameters.
3026
3027 * config/ia64/ia64-protos.h (ia64_initialize_trampoline): Remove.
3028 * config/ia64/ia64.c (TARGET_TRAMPOLINE_INIT): New.
3029 (ia64_trampoline_init): Rename from ia64_initialize_trampoline;
3030 make static; adjust for hook parameters.
3031 * config/ia64/ia64.h (INITIALIZE_TRAMPOLINE): Remove.
3032
3033 * config/iq2000/iq2000.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
3034 (TARGET_TRAMPOLINE_INIT): New.
3035 (iq2000_asm_trampoline_template, iq2000_trampoline_init): New.
3036 * config/iq2000/iq2000.h (TRAMPOLINE_TEMPLATE): Move code to
3037 iq2000_asm_trampoline_template.
3038 (INITIALIZE_TRAMPOLINE): Move code to iq2000_trampoline_init.
3039 (TRAMPOLINE_CODE_SIZE): New.
3040 (TRAMPOLINE_SIZE): Use it.
3041 (TRAMPOLINE_ALIGNMENT): Follow Pmode.
3042
3043 * config/m32c/m32c-protos.h (m32c_initialize_trampoline): Remove.
3044 * config/m32c/m32c.c (TARGET_TRAMPOLINE_INIT): New.
3045 (m32c_trampoline_init): Rename from m32c_initialize_trampoline;
3046 adjust for hook parameters.
3047 * config/m32c/m32c.h (INITIALIZE_TRAMPOLINE): Remove.
3048
3049 * config/m32r/m32r.c (TARGET_TRAMPOLINE_INIT): New.
3050 (m32r_trampoline_init): New.
3051 * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Move code to
3052 m32r_trampoline_init.
3053
3054 * config/m68hc11/m68hc11.c (TARGET_TRAMPOLINE_INIT): New.
3055 (m68hc11_trampoline_init): Rename from m68hc11_initialize_trampoline;
3056 make static; update for hook parameters.
3057 * config/m68hc11/m68hc11-protos.h: Update.
3058 * config/m68hc11/m68hc11.h (INITIALIZE_TRAMPOLINE): Remove.
3059
3060 * config/mcore/mcore.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
3061 (TARGET_TRAMPOLINE_INIT): New.
3062 (mcore_function_value): Fix typo.
3063 (mcore_asm_trampoline_template, mcore_trampoline_init): New.
3064 * config/mcore/mcore.h (TRAMPOLINE_TEMPLATE): Move code
3065 to mcore_asm_trampoline_template.
3066 (INITIALIZE_TRAMPOLINE): Move code to mcore_trampoline_init.
3067
3068 * config/mep/mep.h (INITIALIZE_TRAMPOLINE): Remove.
3069 * config/mep/mep.c (TARGET_TRAMPOLINE_INIT): New.
3070 (mep_trampoline_init): Rename from mep_init_trampoline; make static;
3071 update for hook parameters.
3072 * config/mep/mep-protos.h (mep_init_trampoline): Remove.
3073
3074 * config/mips/mips.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
3075 mips_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
3076 mips_trampoline_init): New.
3077 * config/mips/mips.h (TRAMPOLINE_TEMPLATE): Move code to
3078 mips_asm_trampoline_template.
3079 (INITIALIZE_TRAMPOLINE): Move code to mips_trampoline_init;
3080 update for hook parameters.
3081
3082 * gcc/config/mmix/mmix.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
3083 (TARGET_TRAMPOLINE_INIT): New.
3084 (mmix_trampoline_size): Remove.
3085 (mmix_asm_trampoline_template): Rename from mmix_trampoline_template;
3086 make static. Remove out-of-date tetra vs octa comment.
3087 (mmix_trampoline_init): Rename from mmix_initialize_trampoline;
3088 make static; update for hook parameters.
3089 * config/mmix/mmix.h (TRAMPOLINE_TEMPLATE): Remove.
3090 (INITIALIZE_TRAMPOLINE): Remove.
3091 (TRAMPOLINE_SIZE): Use a constant instead of mmix_trampoline_size.
3092 (TRAMPOLINE_ALIGNMENT): New.
3093 * gcc/config/mmix/mmix-protos.h: Update.
3094
3095 * config/mn10300/mn10300.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
3096 mn10300_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
3097 mn10300_trampoline_init): New.
3098 * config/mn10300/mn10300.h (TRAMPOLINE_TEMPLATE): Move code to
3099 mn10300_asm_trampoline_template.
3100 (INITIALIZE_TRAMPOLINE): Move code to mn10300_trampoline_init.
3101
3102 * config/moxie/moxie.c (moxie_static_chain,
3103 moxie_asm_trampoline_template, moxie_trampoline_init,
3104 TARGET_STATIC_CHAIN, TARGET_ASM_TRAMPOLINE_TEMPLATE,
3105 TARGET_TRAMPOLINE_INIT): New.
3106 * config/moxie/moxie.h (INITIALIZE_TRAMPOLINE): Move code to
3107 moxie_trampoline_init.
3108 (TRAMPOLINE_TEMPLATE): Move code to moxie_asm_trampoline_template.
3109 (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
3110
3111 * gcc/config/pa/pa.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
3112 pa_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
3113 pa_trampoline_init, TARGET_TRAMPOLINE_ADJUST_ADDRESS,
3114 pa_trampoline_adjust_address): New.
3115 * config/pa/pa.h (TRAMPOLINE_TEMPLATE): Move code to
3116 pa_asm_trampoline_template.
3117 (TRAMPOLINE_ALIGNMENT): New.
3118 (TRAMPOLINE_CODE_SIZE): Move to pa.c.
3119 (INITIALIZE_TRAMPOLINE): Move code to pa_trampoline_init;
3120 adjust for hook parameters.
3121 (TRAMPOLINE_ADJUST_ADDRESS): Move code to pa_trampoline_adjust_address.
3122
3123 * config/pdp11/pdp11.c (pdp11_trampoline_init): New.
3124 (TARGET_TRAMPOLINE_INIT): New.
3125 * config/pdp11/pdp11.h (TRAMPOLINE_TEMPLATE): Remove.
3126 (INITIALIZE_TRAMPOLINE): Move code to pdp11_trampoline_init.
3127
3128 * config/picochip/picochip.h (INITIALIZE_TRAMPOLINE): Remove.
3129
3130 * config/rs6000/rs6000-protos.h (rs6000_initialize_trampoline): Remove.
3131 * config/rs6000/rs6000.c (TARGET_TRAMPOLINE_INIT): New.
3132 (rs6000_trampoline_init): Rename from rs6000_initialize_trampoline;
3133 make static; adjust parameters for the hook.
3134 * config/rs6000/rs6000.h (INITIALIZE_TRAMPOLINE): Remove.
3135
3136 * config/s390/s390.c (s390_asm_trampoline_template): Rename from
3137 s390_trampoline_template; make static.
3138 (s390_trampoline_init): Rename from s390_initialize_trampoline;
3139 make static; adjust for target hook.
3140 (TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New.
3141 * config/s390/s390-protos.h: Remove trampoline decls.
3142 * config/s390/s390.h (INITIALIZE_TRAMPOLINE): Remove.
3143 (TRAMPOLINE_TEMPLATE): Remove.
3144 (TRAMPOLINE_ALIGNMENT): New.
3145
3146 * config/score/score-protos.h (score_initialize_trampoline): Remove.
3147 * config/score/score.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
3148 (TARGET_TRAMPOLINE_INIT): New.
3149 (score_asm_trampoline_template): New.
3150 (score_trampoline_init): Rename from score_initialize_trampoline;
3151 make static; adjust for hook parameters.
3152 * config/score/score.h (TRAMPOLINE_TEMPLATE): Move code to
3153 score[37]_asm_trampoline_template.
3154 (INITIALIZE_TRAMPOLINE): Remove.
3155 * config/score/score3.c (score3_asm_trampoline_template): New.
3156 (score3_trampoline_init): Rename from score3_initialize_trampoline;
3157 adjust for target hook.
3158 * config/score/score7.c (score7_asm_trampoline_template): New.
3159 (score7_trampoline_init): Rename from score7_initialize_trampoline;
3160 adjust for target hook.
3161 * config/score/score3.h, config/score/score7.h: Update.
3162
3163 * config/sh/sh-protos.h (sh_initialize_trampoline): Remove.
3164 * config/sh/sh.c (TARGET_TRAMPOLINE_INIT): New.
3165 (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
3166 (sh_trampoline_init): Rename from sh_initialize_trampoline;
3167 make static; adjust for target hook parameters.
3168 (sh_trampoline_adjust_address): New.
3169 * config/sh/sh.h (INITIALIZE_TRAMPOLINE): New.
3170 (TRAMPOLINE_ADJUST_ADDRESS): Move code to sh_trampoline_adjust_address.
3171
3172 * config/sparc/sparc.c (TARGET_TRAMPOLINE_INIT): New.
3173 (sparc32_initialize_trampoline): Rename from
3174 sparc_initialize_trampoline; make static; replace tramp parameter
3175 with m_tramp and update memory accesses.
3176 (sparc64_initialize_trampoline): Similarly.
3177 (sparc_trampoline_init): New.
3178 * config/sparc/sparc-protos.h: Remove trampoline decls.
3179 * config/sparc/sparc.h (INITIALIZE_TRAMPOLINE): Remove.
3180 * config/sparc/sparc.md (nonlocal_goto): Don't use static_chain_rtx.
3181
3182 * config/spu/spu.c (TARGET_TRAMPOLINE_INIT): New.
3183 (array_to_constant): Make ARR parameter const.
3184 (spu_trampoline_init): Rename from spu_initialize_trampoline;
3185 make static; update for hook parameters.
3186 * config/spu/spu-protos.h: Update decls.
3187 * config/spu/spu.h (INITIALIZE_TRAMPOLINE): Remove.
3188
3189 * config/stormy16/stormy16.c (xstormy16_trampoline_init): Rename
3190 from xstormy16_initialize_trampoline; make static; update for
3191 hook parameters.
3192 (TARGET_TRAMPOLINE_INIT): New.
3193 * config/stormy16/stormy16.h (INITIALIZE_TRAMPOLINE): Remove.
3194
3195 * config/v850/v850.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
3196 (TARGET_TRAMPOLINE_INIT): New.
3197 (v850_can_eliminate): Make static.
3198 (v850_asm_trampoline_template, v850_trampoline_init): New.
3199 * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Move code to
3200 v850_asm_trampoline_template.
3201 (INITIALIZE_TRAMPOLINE): Move code to v850_trampoline_init
3202 and adjust for target hook parameters.
3203
3204 * config/vax/vax.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
3205 (TARGET_TRAMPOLINE_INIT): New.
3206 (vax_asm_trampoline_template, vax_trampoline_init): New.
3207 * config/vax/vax.h (TRAMPOLINE_TEMPLATE): Move code to
3208 vax_asm_trampoline_template.
3209 (INITIALIZE_TRAMPOLINE): Move code to vax_trampoline_init.
3210
3211 * config/xtensa/xtensa.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
3212 (TARGET_TRAMPOLINE_INIT): New.
3213 (xtensa_asm_trampoline_template): Rename from
3214 xtensa_trampoline_template; make static.
3215 (xtensa_trampoline_init): Rename from xtensa_initialize_trampoline;
3216 make static; update for hook parameters.
3217 * config/xtensa/xtensa-protos.h: Remove trampoline decls.
3218 * config/xtensa/xtensa.h (TRAMPOLINE_TEMPLATE): Remove.
3219 (INITIALIZE_TRAMPOLINE): Remove.
3220
3221 * config/i386/i386.c (ix86_function_regparm): Do not issue an
3222 error for nested functions with regparm=3.
3223 (ix86_compute_frame_layout): Adjust frame pointer offset for
3224 ix86_static_chain_on_stack.
3225 (ix86_expand_prologue): Handle ix86_static_chain_on_stack.
3226 (ix86_emit_restore_reg_using_pop): Increment ix86_cfa_state->offset,
3227 don't reset to UNITS_PER_WORD.
3228 (ix86_emit_leave): Adjust ix86_cfa_state.
3229 (ix86_expand_epilogue): Handle ix86_static_chain_on_stack.
3230 (ix86_static_chain): New.
3231 (ix86_trampoline_init): Rename from x86_initialize_trampoline;
3232 make static; update for target hook parameters; use ix86_static_chain.
3233 (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New.
3234 * config/i386/i386.h (STATIC_CHAIN_REGNUM): Remove.
3235 (INITIALIZE_TRAMPOLINE): Remove.
3236 (TRAMPOLINE_SIZE): Use 24 for 64-bit.
3237 (struct machine_function): Use BOOL_BITFIELD; rearrange bitfields
3238 to the end. Add static_chain_on_stack.
3239 (ix86_static_chain_on_stack): New.
3240
3241 * config/m68k/m68k.c (TARGET_TRAMPOLINE_INIT): New.
3242 (m68k_output_mi_thunk): Don't use static_chain_rtx.
3243 (m68k_trampoline_init): New.
3244 * config/m68k/m68k.h (INITIALIZE_TRAMPOLINE): Move code to
3245 m68k_trampoline_init and adjust for hook parameters.
3246 * config/m68k/netbsd-elf.h (TRAMPOLINE_TEMPLATE): Remove.
3247 (TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE): Remove.
3248
3249 2009-09-22 Jakub Jelinek <jakub@redhat.com>
3250
3251 * config/rs6000/rs6000.c (bdesc_2arg): Fix CODE_FOR_vector_gt* codes
3252 for __builtin_altivec_vcmpgt{sb,uh,sh,uw}.
3253
3254 * reload1.c (reload): Call wrap_constant when substituting
3255 reg for equiv inside of DEBUG_INSNs.
3256
3257 PR bootstrap/41405
3258 * dwarf2out.c (base_type_die, record_type_tag, gen_subprogram_die,
3259 add_call_src_coords_attributes, add_high_low_attributes,
3260 gen_compile_unit_die, gen_type_die_with_usage force_decl_die,
3261 gen_decl_die, dwarf2out_imported_module_or_decl_1, dwarf2out_finish,
3262 dwarf2out_imported_module_or_decl): Avoid using DWARF3 additions
3263 when -gdwarf-2 -gstrict-dwarf.
3264 (loc_list_from_tree): Likewise. Avoid using DWARF4 additions when
3265 -gdwarf-[23] -gstrict-dwarf.
3266 (address_of_int_loc_descriptor, loc_descriptor,
3267 loc_list_for_address_of_addr_expr_of_indirect_ref): Avoid using
3268 DWARF4 additions when -gdwarf-[23] -gstrict-dwarf.
3269 * common.opt (gno-strict-dwarf, gstrict-dwarf): New options.
3270
3271 2009-09-22 Richard Guenther <rguenther@suse.de>
3272
3273 PR tree-optimization/41428
3274 * tree-ssa-ccp.c (ccp_fold_stmt): New function.
3275 (ccp_finalize): Pass it to substitute_and_fold.
3276
3277 2009-09-22 Richard Guenther <rguenther@suse.de>
3278
3279 * tree-ssa-propagate.h (ssa_prop_fold_stmt_fn): Declare.
3280 (substitute_and_fold): Adjust prototype.
3281 * tree-vrp.c (vrp_evaluate_conditional): Make static.
3282 (simplify_stmt_using_ranges): Likewise.
3283 (fold_predicate_in): Move here from tree-ssa-propagate.c.
3284 (vrp_fold_stmt): New function.
3285 (vrp_finalize): Pass it to substitute_and_fold.
3286 * tree-flow.h (vrp_evaluate_conditional): Remove.
3287 (simplify_stmt_using_ranges): Likewise.
3288 * tree-ssa-ccp.c (ccp_finalize): Adjust call to substitute_and_fold.
3289 * tree-ssa-copy.c (fini_copy_prop): Likewise.
3290 * tree-ssa-propagate.c (struct prop_stats_d): Rename num_pred_folded
3291 member.
3292 (fold_predicate_in): Move to tree-vrp.c.
3293 (substitute_and_fold): Use the callback instead of calling into
3294 tree-vrp.c functions directly.
3295
3296 2009-09-22 Jakub Jelinek <jakub@redhat.com>
3297
3298 * dwarf2out.c (address_of_int_loc_descriptor): Avoid signed/unsigned
3299 comparison warning on rs6000.
3300
3301 PR middle-end/41429
3302 * tree-cfg.c (remove_useless_stmts_tc): Call gsi_next (gsi) even for
3303 GIMPLE_EH_MUST_NOT_THROW cleanup.
3304 (verify_types_in_gimple_stmt): Handle GIMPLE_EH_MUST_NOT_THROW.
3305
3306 2009-09-22 Jack Howarth <howarth@bromo.med.uc.edu>
3307
3308 PR middle-end/41260
3309 * gcc/config.gcc: Use darwin9.h and darwin10.h on darwin10 and later.
3310 * gcc/config/darwin10.h: Add file to pass -no_compact_unwind on
3311 LIB_SPEC for darwin10 and later since it always uses the unwinder in
3312 libSystem which is derived from the gcc 4.2.1 unwinder.
3313
3314 2009-09-22 Dave Korn <dave.korn.cygwin@gmail.com>
3315
3316 PR middle-end/41357
3317 * varasm.c (default_encode_section_info): Copy TLS model into
3318 sym_ref flags regardless of backend support for TLS, for all
3319 model types except TLS_MODEL_EMULATED.
3320
3321 2009-09-22 Dave Korn <dave.korn.cygwin@gmail.com>
3322
3323 PR bootstrap/41404
3324 * dwarf2out.c (mem_loc_descriptor): Punt on CONST_STRING until
3325 we can handle it correctly.
3326
3327 2009-09-21 Gerald Pfeifer <gerald@pfeifer.com>
3328
3329 * doc/install.texi (os2): Remove section.
3330
3331 2009-09-21 Gerald Pfeifer <gerald@pfeifer.com>
3332
3333 * doc/standards.texi (Objective-C): Adjust two URLs.
3334
3335 2009-09-21 Giuseppe Scrivano <gscrivano@gnu.org>
3336
3337 * tree-tailcall.c (process_assignment): Don't check if a
3338 multiplication or an addition are already present.
3339 (find_tail_calls): Combine multiple additions and multiplications.
3340 (adjust_accumulator_values): Emit accumulators.
3341
3342 2009-09-21 Kai Tietz <kai.tietz@onevision.com>
3343
3344 * config/i386/i386.c (ix86_expand_epilogue): Adjust offset for
3345 xmm register restore.
3346
3347 2009-09-21 Jan Hubicka <jh@suse.cz>
3348
3349 * dwarf2out.c (decl_loc_table_eq): Allow decl_loc_table to be NULL.
3350 (dwarf2out_abstract_function): NULLify decl_loc_table at begginig and
3351 restore at the end.
3352
3353 2009-09-21 Eric Botcazou <ebotcazou@adacore.com>
3354
3355 * stor-layout.c (layout_type): Remove obsolete code.
3356
3357 2009-09-20 H.J. Lu <hongjiu.lu@intel.com>
3358
3359 PR middle-end/41395
3360 * opts.c (decode_options): Don't turn on flag_ipa_sra for opt2.
3361
3362 2009-09-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3363
3364 PR middle-end/30789
3365 * builtins.c (do_mpc_arg2): Accept DO_NONFINITE parameter.
3366 (do_mpc_ckconv): Accept FORCE_CONVERT parameter.
3367 (fold_builtin_2, do_mpc_arg1): Update accordingly.
3368 * fold-const.c (const_binop): Likewise.
3369 * real.h (do_mpc_arg2): Update prototype.
3370
3371 2009-09-20 Jan Hubicka <jh@suse.cz>
3372
3373 * dwarf2out.c (add_const_value_attribute): Return true if successful.
3374 (add_location_or_const_value_attribute): Rewrite using
3375 loc_list_from_tree.
3376 (tree_add_const_value_attribute): Return true if successful.
3377 (tree_add_const_value_attribute_for_decl): Likewise.
3378
3379 * dwarf2out.c (address_of_int_loc_descriptor): Break out from ...
3380 (loc_descriptor): ... here;
3381 (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
3382 (cst_pool_loc_descr): Break out from ...; do not reffer constant
3383 pool items that was not marked for output.
3384 (loc_list_from_tree): ... here; handle special cases of ADDR_EXPR;
3385 (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
3386 (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
3387 handle ALIGN_INDIRECT_REF, MISALIGNED_INDIRECT_REF, REALPART_EXPR,
3388 IMAGPART_EXPR; handle address of INTEGER_CST; improve handling of
3389 CONSTRUCTOR; handle REAL_CST, STRING_CST, COMPLEX_CST; use
3390 DW_OP_stack_value to get address of items that are not available
3391 as addresses.
3392 (dw_loc_list): Handle single element lists correctly.
3393
3394 2009-09-20 Kai Tietz <kai.tietz@onevision.com>
3395 Pascal Obry <obry@adacore.com>
3396
3397 * unwind-dw2-fde.c (classify_object_over_fdes):
3398 Cast the constant 1 to _Unwind_Ptr.
3399 (add_fdes): Likewise.
3400 (linear_search_fdes): Likewise.
3401
3402 2009-09-20 Eric Botcazou <ebotcazou@adacore.com>
3403
3404 * stor-layout.c (set_sizetype): Avoid useless type copy.
3405
3406 2009-09-20 Richard Sandiford <rdsandiford@googlemail.com>
3407
3408 * configure.ac (gcc_cv_ld_mips_personality_relaxation): New
3409 feature check.
3410 (HAVE_LD_PERSONALITY_RELAXATION): New macro definition.
3411 * configure, config.in: Regenerate.
3412 * dwarf2asm.c (eh_data_format_name): Handle DW_EH_PE_indirect |
3413 DW_EH_PE_absptr.
3414 * config/mips/mips.h (TARGET_WRITABLE_EH_FRAME): New macro.
3415 (ASM_PREFERRED_EH_DATA_FORMAT): Define. Use MIPS_EH_INDIRECT
3416 for global data if the output could be used in a shared library.
3417 * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
3418 to 0 if TARGET_WRITABLE_EH_FRAME.
3419
3420 2009-09-20 Paolo Bonzini <bonzini@gnu.org>
3421
3422 PR rtl-optimization/39886
3423 * combine.c (update_cfg_for_uncondjump): Set EDGE_FALLTHRU
3424 just when insn is equal to BB_END (bb).
3425
3426 2009-09-19 Adam Nemet <anemet@caviumnetworks.com>
3427
3428 * config/mips/mips.opt (mrelax-pic-calls): New option.
3429 * config/mips/mips.c (mips_strip_unspec_address): Move it up in
3430 the file.
3431 (mips_unspec_call): Change "unspec_call" expander into this.
3432 (mips_strip_unspec_call): New function.
3433 (mips_got_load): Call mips_unspec_call instead of
3434 gen_unspec_call<mode>.
3435 (mips16_build_call_stub): Fix comment for fp_code. Adjust call to
3436 MIPS_CALL.
3437 (mips_cfg_in_reorg): New function.
3438 (mips16_lay_out_constants): Use it to decide whether to call
3439 CFG-aware insn splitting.
3440 (r10k_insert_cache_barriers): Move CFG set-up code from here to
3441 mips_reorg. Move DF set-up code from here ...
3442 (mips_df_reorg): ... to here. Call r10k_insert_cache_barriers
3443 from here.
3444 (mips_reorg): Call mips_df_reorg instead of
3445 r10k_insert_cache_barriers. Move CFG set-up code here from
3446 r10k_insert_cache_barriers.
3447 (mips_call_expr_from_insn): New function.
3448 (mips_pic_call_symbol_from_set): Likewise.
3449 (mips_find_pic_call_symbol): Likewise.
3450 (mips_annotate_pic_call_expr): Likewise.
3451 (mips_get_pic_call_symbol): Likewise.
3452 (mips_annotate_pic_calls): Likewise.
3453 (mips_override_options): Disable -mrelax-pic-calls unless PIC
3454 calls are used.
3455 (mips_set_mips16_mode): Disable -mrelax-pic-calls for MIPS16.
3456 * config/mips/mips-protos.h (mips_get_pic_call_symbol): Declare it.
3457 * config/mips/mips.h (MIPS_CALL): Use it to print the .reloc
3458 directive.
3459 * config/mips/mips.md (UNSPEC_CALL_ATTR): New unspec.
3460 (unspec_call<mode>): Remove it.
3461 (sibcall_internal, sibcall_value_internal,
3462 sibcall_value_multiple_internal, call_internal, call_split,
3463 call_value_internal, call_value_split,
3464 call_value_multiple_internal, call_value_multiple_split): Pass
3465 SIZE_OPNO to MIPS_CALL.
3466 (call_internal_direct, call_direct_split,
3467 call_value_internal_direct, call_value_direct_split): Pass -1 as
3468 SIZE_OPNO to MIPS_CALL.
3469 * configure.ac <mips*-*-*>: Add test for .reloc R_MIPS_JALR.
3470 * configure: Regenerate.
3471 * doc/invoke.texi (Option Summary): Add -mrelax-pic-calls
3472 and -mno-relax-pic-calls.
3473 (MIPS Options): Document -mrelax-pic-calls and -mno-relax-pic-calls.
3474
3475 2009-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3476
3477 PR bootstrap/35619
3478 * Makefile.in (stmp-fixinc): Ensure `include-fixed' is created
3479 in the directory this rule is called from, rather than the
3480 toplevel 'gcc' directory, to fix in-tree build.
3481
3482 2009-09-19 Chris Demetriou <cgd@google.com>
3483
3484 PR preprocessor/28435:
3485 * c-opts.c (c_common_handle_option): For -MD and -MMD, indicate
3486 to cpplib that the preprocessor output is needed.
3487
3488 2009-09-19 Jakub Jelinek <jakub@redhat.com>
3489
3490 * config/rs6000/rs6000.md (*save_gpregs_<mode>, *save_fpregs_<mode>,
3491 *restore_gpregs_<mode>, *return_and_restore_gpregs_<mode>,
3492 *return_and_restore_fpregs_<mode>,
3493 *return_and_restore_fpregs_aix_<mode>): Remove 'z' operand modifier.
3494
3495 PR bootstrap/41397
3496 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Recurse
3497 instead of assuming it has always a REG inside of it.
3498
3499 2009-09-18 Gerald Pfeifer <gerald@pfeifer.com>
3500
3501 * config/freebsd.h: Update comment on types.
3502 (WINT_TYPE): Define.
3503
3504 2009-09-18 Jason Merrill <jason@redhat.com>
3505
3506 * c.opt: Add -fno-deduce-init-list.
3507
3508 2009-09-18 Neil Vachharajani <nvachhar@google.com>
3509
3510 * value-prof.c (interesting_stringop_to_profile_p): Added output
3511 argument to indicate which parameter is the size parameter.
3512 * value-prof.c (gimple_stringop_fixed_value): Use
3513 INTERESTING_STRINGOP_TO_PROFILE_P to find size argument.
3514 * value-prof.c (gimple_stringops_transform): Update call sites to
3515 INTERESTING_STRINGOP_TO_PROFILE_P to reflect parameter change.
3516
3517 2009-09-18 Uros Bizjak <ubizjak@gmail.com>
3518
3519 PR target/38288
3520 From David Binderman <dcb314@hotmail.com>:
3521 * gcc/config/i386/i386.c (ix86_function_regparm): Remove useless
3522 local variable f. Remove stale comments.
3523 (ix86_compute_frame_layout): Remove useless local variable total_size.
3524 Remove #if 0'd code.
3525 (legitimate_address_p): Remove useless local variables
3526 reason_rtx and reason.
3527 (ix86_split_copysign_const): Remove useless local variable op1.
3528 (scale_counter): Remove useless local variable piece_size_mask.
3529
3530 2009-09-18 Jakub Jelinek <jakub@redhat.com>
3531
3532 * stmt.c (expand_asm_operands): Set REG_ATTRS on the temporary from
3533 output decl.
3534
3535 2009-09-17 Michael Haubenwallner <michael.haubenwallner@salomon.at>
3536
3537 PR target/40913
3538 * config/pa/t-hpux-shlib: Set soname in libgcc_s.sl.
3539
3540 2009-09-17 Jakub Jelinek <jakub@redhat.com>
3541
3542 * c-decl.c (finish_struct): Adjust DECL_SOURCE_LOCATION of
3543 TYPE_STUB_DECL.
3544
3545 2009-09-17 Alexandre Oliva <aoliva@redhat.com>
3546
3547 * dwarf2out.c (loc_descriptor): Emit DW_OP_stack_value and
3548 DW_OP_implicit_value even without dwarf_version 4.
3549
3550 2009-09-17 Jan Hubicka <jh@suse.cz>
3551
3552 * dwarf2out.c: Include tree-pass.h and gimple.h.
3553 (loc_list_plus_const): New function.
3554 (loc_descriptor_from_tree_1): Rename to ...
3555 (loc_descriptor_from_tree): ... remove original.
3556 (loc_list_from_tree): New function.
3557 (add_AT_location_description): Accept location list.
3558 (tls_mem_loc_descriptor): Update call of loc_descriptor_from_tree.
3559 (concatn_mem_loc_descriptor): Remove.
3560 (mem_loc_descriptor): Handle CONCAT/CONCATN and VAR_LOCATION by
3561 returning NULL.
3562 (secname_for_decl): Move up.
3563 (hidden_reference_p): New function; break out from ...
3564 (loc_by_refernece): ... here; move up.
3565 (dw_loc_list): New function.
3566 (single_element_loc_list): New function.
3567 (single_element_loc_list_p): New function.
3568 (add_loc_descr_to_each): New function.
3569 (add_loc_list): New function.
3570 (loc_descr_from_tree): Make wraper of loc_list_from_tree.
3571 (loc_list_from_tree): Reroganized from loc_descr_from_tree;
3572 add diagnostics why expansion failed.
3573 (add_location_or_const_value_attribute): Support location lists.
3574 (add_bound_info): Likewise.
3575 (descr_info_loc): Update call of loc_descriptor_from_tree.
3576 (gen_variable_die): Work on location lists.
3577 * final.c (pass_final): Add dump file.
3578 * Makefile.in (dwarf2out.o): Add new dependencies.
3579
3580 2009-09-17 Janis Johnson <janis187@us.ibm.com>
3581
3582 PR c/41049
3583 * real.c decimal_from_integer, decimal_integer_string): New.
3584 (real_from_integer): Use them as special case for decimal float.
3585 * config/dfp-bit.c (_si_to_sd, _usi_to_sd): Use default rounding.
3586 (_di_to_sd, _di_to_dd, _di_to_td, _udi_to_sd, _udi_to_dd, _udi_to_td):
3587 Do not append zero after the decimal point in string to convert.
3588
3589 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
3590
3591 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only
3592 for ARRAY_REFs. Use array_ref_{low,up}_bound to determine bounds.
3593
3594 2009-09-17 Martin Jambor <mjambor@suse.cz>
3595
3596 * common.opt (fipa-sra): New switch.
3597 * opts.c (decode_options): Turn flag_ipa_sra on for opt2.
3598 * timevar.def (TV_IPA_SRA): New timevar.
3599 * params.def (ipa-sra-ptr-growth-factor): New parameter.
3600 * doc/invoke.texi: Document -fipa-sra and ipa-sra-ptr-growth-factor.
3601 * tree-sra.c: Include cgraph.c.
3602 (enum sra_mode): Added SRA_MODE_EARLY_IPA.
3603 (struct access): Added fields stmt, grp_maybe_modified, grp_scalar_ptr
3604 and grp_not_necessarilly_dereferenced.
3605 (func_param_count): New variable.
3606 (encountered_apply_args): New variable.
3607 (bb_dereferences): New variable.
3608 (final_bbs): New variable.
3609 (no_accesses_representant): New variable.
3610 (no_accesses_p): New function.
3611 (dump_access): Dump the new fields.
3612 (sra_initialize): Set encountered_apply_args to false.
3613 (get_ssa_base_param): New function.
3614 (mark_parm_dereference): New function.
3615 (create_access): Caring for INIDRECT_REFs and different handling of
3616 varialble length accesses in early IPA SRA. Store the stmt - a new
3617 parameter - to the new access.
3618 (build_access_from_expr_1): New parameter stmt, passed to
3619 create_access. Handle INDIRECT_REFs.
3620 (build_access_from_expr): Pass the current statement to
3621 build_access_from_expr_1.
3622 (disqualify_ops_if_throwing_stmt): Trigger only in intraprocedural
3623 passes.
3624 (build_accesses_from_assign): Pass the current statement to
3625 build_access_from_expr_1. Do not create assign links in IPA-SRA.
3626 (scan_function): Call handle_ssa_defs on phi nodes. Set bits in
3627 final_bbs when necessary. Check for calls to __builtin_apply_args.
3628 Fixup EH info if anythng was changed.
3629 (is_unused_scalar_param): New function.
3630 (ptr_parm_has_direct_uses): New function.
3631 (find_param_candidates): New function.
3632 (mark_maybe_modified): New function.
3633 (analyze_modified_params): New function.
3634 (propagate_dereference_distances): New function.
3635 (dump_dereferences_table): New function.
3636 (analyze_caller_dereference_legality): New function.
3637 (unmodified_by_ref_scalar_representative): New function.
3638 (splice_param_accesses): New function.
3639 (decide_one_param_reduction): New function.
3640 (enum ipa_splicing_result): New type.
3641 (splice_all_param_accesses): New function.
3642 (get_param_index): New function.
3643 (turn_representatives_into_adjustments): New function.
3644 (analyze_all_param_acesses): New function.
3645 (get_replaced_param_substitute): New function.
3646 (get_adjustment_for_base): New function.
3647 (replace_removed_params_ssa_names): New function.
3648 (sra_ipa_reset_debug_stmts): New function.
3649 (sra_ipa_modify_expr): New function.
3650 (sra_ipa_modify_assign): New function.
3651 (convert_callers): New function.
3652 (modify_function): New function.
3653 (ipa_sra_preliminary_function_checks): New function.
3654 (ipa_early_sra): New function.
3655 (ipa_early_sra_gate): New function.
3656 (pass_early_ipa_sra): New variable.
3657 * Makefile.in (tree-sra.o): Add cgraph.h to dependencies.
3658
3659 2009-09-17 Michael Matz <matz@suse.de>
3660
3661 PR middle-end/41347
3662 * tree.c (build_type_attribute_qual_variant): Export.
3663 * tree.h (build_type_attribute_qual_variant): Declare.
3664 * tree-inline.c (remap_type_1): Use it to build variants with
3665 the original qualifiers and attributes.
3666
3667 2009-09-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3668
3669 * cfglayout.c (fixup_reorder_chain): Accept conditional jumps
3670 without a fallthrough edge.
3671
3672 2009-09-16 DJ Delorie <dj@redhat.com>
3673
3674 * config/m32c/m32c.c (m32c_emit_epilogue): Check for R8C or M16C
3675 chip and ignore the "fast_interrupt" attribute if so.
3676
3677 2009-09-16 Richard Henderson <rth@redhat.com>
3678
3679 PR middle-end/41360
3680 * cfgbuild.c (find_bb_boundaries): Really re-instate 2009-09-02
3681 barrier fix.
3682
3683 2009-09-16 Richard Henderson <rth@redhat.com>
3684
3685 PR target/41246
3686 * tree-cfg.c (verify_gimple_call): Validate that gimple_call_chain
3687 is set only if DECL_NO_STATIC_CHAIN is unset.
3688 * tree-nested.c (iter_nestinfo_start, iter_nestinfo_next): New.
3689 (FOR_EACH_NEST_INFO): New.
3690 (walk_all_functions): Use it.
3691 (finalize_nesting_tree): Likewise.
3692 (unnest_nesting_tree): Likewise.
3693 (free_nesting_tree): Use iter_nestinfo_start, iter_nestinfo_next.
3694 (get_chain_decl, get_chain_field): Reset DECL_NO_STATIC_CHAIN.
3695 (convert_gimple_call): Early out if gimple_call_chain already set.
3696 (convert_all_function_calls): Iterate until no new functions
3697 require a static chain.
3698 (finalize_nesting_tree_1): Assert DECL_NO_STATIC_CHAIN is unset
3699 when building a trampoline. Use dump_function_to_file instead
3700 of dump_function.
3701 (lower_nested_functions): Open dump_file. Validate that decls
3702 that have DECL_NO_STATIC_CHAIN from the front end don't have that
3703 bit reset by this pass.
3704
3705 2009-09-16 Michael Matz <matz@suse.de>
3706
3707 PR fortran/41212
3708 * tree.h (struct tree_decl_common): Add decl_restricted_flag,
3709 shorten decl_common_unused.
3710 (DECL_RESTRICTED_P): New accessor.
3711 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Use it
3712 to disambiguate marked decls and restrict pointers.
3713
3714 2009-09-16 Richard Henderson <rth@redhat.com>
3715
3716 PR middle-end/41360
3717 * cfgbuild.c (find_bb_boundaries): Re-instate 2009-09-02 barrier fix.
3718
3719 2009-09-16 Jakub Jelinek <jakub@redhat.com>
3720
3721 * integrate.c (set_block_abstract_flags): Call
3722 set_decl_abstract_flags also on BLOCK_NONLOCALIZED_VARs.
3723
3724 2009-09-16 Richard Guenther <rguenther@suse.de>
3725
3726 PR middle-end/34011
3727 * tree-flow-inline.h (may_be_aliased): Compute readonly variables
3728 as non-aliased.
3729
3730 2009-09-16 DJ Delorie <dj@redhat.com>
3731 Kaz Kojima <kkojima@gcc.gnu.org>
3732
3733 * config/sh/sh.c (output_stack_adjust): Add new argument frame_p.
3734 (sh_expand_prologue): Update calls to output_stack_adjust.
3735 (sh_expand_epilogue): Likewise.
3736
3737 2009-09-15 Adam Nemet <anemet@caviumnetworks.com>
3738
3739 PR bootstrap/41349
3740 * reorg.c (redundant_insn): Don't count notes or DEBUG_INSNs when
3741 trying to limit the extent of searches in the insn stream.
3742
3743 2009-09-15 Nathan Froyd <froydnj@codesourcery.com>
3744 Jakub Jelinek <jakub@redhat.com>
3745
3746 PR target/41175
3747 PR target/40677
3748 * config/rs6000/rs6000.c (no_global_regs_above): Fix precedence
3749 problem.
3750 (SAVRES_NOINLINE_GPRS_SAVES_LR, SAVRES_NOINLINE_FPRS_SAVES_LR,
3751 SAVRES_NOINLINE_FPRS_DOESNT_RESTORE_LR): New strategy bits.
3752 (rs6000_savres_strategy): Always save FP registers inline if the
3753 target doesn't support hardware double-precision. Set the above
3754 bits in return value when needed.
3755 (rs6000_savres_routine_sym): Fix computation for cache selector.
3756 Mark the generated symbol as a function. Rename exitp argument to
3757 lr. Move code for determining the name of the symbol...
3758 (rs6000_savres_routine_name): ...here. New function. Add cases for
3759 getting the names right on AIX and 64-bit Linux.
3760 (savres_routine_name): New variable.
3761 (rs6000_make_savres_rtx): Rename exitp argument to lr. Don't assert
3762 lr isn't set when savep. Use r12 resp. r1 instead of r11 depending
3763 on what the target routine uses as a base register. If savep && lr
3764 describe saving of r0 into memory slot.
3765 (rs6000_emit_prologue): Correct use of call_used_regs. Fix out of
3766 line calls for AIX ABI.
3767 (rs6000_output_function_prologue): Use rs6000_savres_routine_name to
3768 determine FP save/restore functions.
3769 (rs6000_emit_stack_reset): Handle savres if sp_offset != 0 and
3770 frame_reg_rtx != sp_reg_rtx. Use gen_add3_insn instead of
3771 gen_addsi3.
3772 (rs6000_emit_epilogue): Adjust computation of restore_lr.
3773 Duplicate restoration of LR and execute the appropriate one
3774 depending on whether GPRs are being restored inline. Set r11 from
3775 offsetted frame_reg_rtx instead of sp_reg_rtx; if frame_reg_rtx is
3776 r11, adjust sp_offset. Use gen_add3_insn instead of gen_addsi3.
3777 Fix out of line calls for AIX ABI.
3778 * config/rs6000/rs6000.md (*return_and_restore_fpregs_aix_<mode>):
3779 New insn.
3780 * config/rs6000/spe.md (*save_gpregs_spe): Use explicit match for
3781 register 11.
3782 (*restore_gpregs_spe): Likewise.
3783 (*return_and_restore_gpregs_spe): Likewise.
3784 * config/rs6000/linux64.h (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX):
3785 Define to empty string unconditionally.
3786 * config/rs6000/sysv4.h (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX):
3787 Define to empty string unconditionally.
3788 (GP_SAVE_INLINE, FP_SAVE_INLINE): Handle TARGET_64BIT the same as
3789 !TARGET_64BIT.
3790
3791 2009-09-15 Jan Hubicka <jh@suse.cz>
3792
3793 * doc/invoke.texi (inline-insns-auto): Drop from 60 to 50.
3794 * params.def (inline-insns-auto): Likewise.
3795
3796 2009-09-15 Martin Jambor <mjambor@suse.cz>
3797
3798 * ipa-inline.c (estimate_function_body_sizes): Dump info about
3799 individual statements only at TDF_DETAILS dump level. Format
3800 source for 80 characters per line.
3801
3802 2009-09-15 Christian Bruel <christian.bruel@st.com>
3803
3804 * regrename.c (do_replace): Update REG_DEAD notes.
3805
3806 2009-09-15 Revital Eres <eres@il.ibm.com>
3807
3808 * doc/tm.texi (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Document.
3809 * targhooks.c (default_builtin_support_vector_misalignment):
3810 New builtin function.
3811 * targhooks.h (default_builtin_support_vector_misalignment):
3812 Declare.
3813 * target.h (builtin_support_vector_misalignment):
3814 New field in struct gcc_target.
3815 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Call
3816 new builtin function.
3817 * target-def.h (TARGET_SUPPORT_VECTOR_MISALIGNMENT):
3818 Define.
3819 * config/rs6000/rs6000.c
3820 (rs6000_builtin_support_vector_misalignment): New function.
3821 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Define.
3822
3823 2009-09-15 Jie Zhang <jie.zhang@analog.com>
3824
3825 * config/bfin/bfin.c (length_for_loop): Use NONDEBUG_INSN_P
3826 instead of INSN_P.
3827 (bfin_optimize_loop): Likewise.
3828 (bfin_gen_bundles): Likewise.
3829 (workaround_speculation): Likewise.
3830 (find_load): Return NULL_RTX for debug_insn.
3831
3832 2009-09-15 Uros Bizjak <ubizjak@gmail.com>
3833
3834 * config/alpha/alpha.md (smaxsf3): Disable for IEEE mode.
3835 (sminsf3): Ditto.
3836
3837 2009-09-14 DJ Delorie <dj@redhat.com>
3838
3839 * config/mep/mep.h (JUMP_TABLES_IN_TEXT_SECTION): Define.
3840 * config/mep/mep.c (mep_emit_cbranch): Don't use BEQZ/BNEI in
3841 VLIW mode.
3842
3843 2009-09-14 Richard Henderson <rth@redhat.com>
3844 Jakub Jelinek <jakub@redhat.com>
3845
3846 * builtins.c (expand_builtin_synchronize): Use gimple_build_asm_vec.
3847 * cfgbuild.c (make_edges): Handle asm goto.
3848 * cfglayout.c (fixup_reorder_chain): Likewise.
3849 * cfgrtl.c (patch_jump_insn): Likewise.
3850 * gimple-pretty-print.c (dump_gimple_asm): Likewise.
3851 * gimple.c (gimple_build_asm_1): Add and use nlabels parameter.
3852 (gimple_build_asm_vec): Add and use labels parameter.
3853 (gimple_build_asm): Remove.
3854 (walk_gimple_asm): Walk labels too.
3855 * gimple.def (GIMPLE_ASM): Update docs.
3856 * gimple.h: Update decls.
3857 (struct gimple_statement_asm): Change nc to use unsigned char;
3858 add nl member.
3859 (gimple_asm_nlabels): New.
3860 (gimple_asm_label_op, gimple_asm_set_label_op): New.
3861 * gimplify.c (gimplify_asm_expr): Copy labels from ASM_EXPR
3862 into gimple_build_asm_vec.
3863 * jump.c (mark_jump_label_asm): New.
3864 (mark_jump_label): Use it.
3865 (redirect_jump_1): Handle asm goto.
3866 (invert_jump_1): Soft fail if X is null.
3867 * recog.c (extract_asm_operands): New.
3868 (asm_noperands): Use it; handle asm labels.
3869 (decode_asm_operands): Use extract_asm_operands.
3870 (asm_operand_ok): Properly handle empty string.
3871 * reg-stack.c (get_asm_operands_in_out): Rename from
3872 get_asm_operand_n_inputs; use extract_asm_operands; return both
3873 inputs and outputs by reference; update all callers.
3874 * rtl.def (ASM_OPERANDS): Add label vector as operand 6.
3875 * rtl.h (ASM_OPERANDS_LABEL_VEC): New.
3876 (ASM_OPERANDS_LABEL_LENGTH, ASM_OPERANDS_LABEL): New.
3877 (ASM_OPERANDS_SOURCE_LOCATION): Renumber.
3878 (extract_asm_operands): Declare.
3879 * stmt.c (expand_asm_operands): Add and use labels parameter.
3880 (check_unique_operand_names): Likewise.
3881 (resolve_asm_operand_names, resolve_operand_name_1): Likewise.
3882 (expand_asm_stmt): Handle asm labels.
3883 * tree-cfg.c (make_gimple_asm_edges): New.
3884 (make_edges): Use it.
3885 (cleanup_dead_labels): Handle asm labels.
3886 (is_ctrl_altering_stmt): Likewise.
3887 (gimple_redirect_edge_and_branch): Likewise.
3888 * tree.def (ASM_EXPR): Add 5th operand.
3889 * tree.h (ASM_LABELS): New.
3890 (resolve_asm_operand_names): Update decl.
3891
3892 * c-parser.c (c_parser_asm_statement): Parse asm goto.
3893 (c_parser_asm_goto_operands): New.
3894 * c-tree.h (build_asm_expr): Update decl.
3895 * c-typeck.c (build_asm_expr): Add and use labels parameter.
3896 * doc/extend.texi: Document asm goto.
3897
3898 2009-09-14 Richard Henderson <rth@redhat.com>
3899
3900 * except.h: Update declarations.
3901 (struct pointer_map_t): Forward declare.
3902 (ERT_UNKNOWN, ERT_THROW, ERT_CATCH): Remove.
3903 (struct eh_landing_pad_d, eh_landing_pad): New.
3904 (struct eh_catch_d, eh_catch): New.
3905 (struct eh_region_d): Remove next_region_sharing_label, aka,
3906 label, tree_label, landing_pad, post_landing_pad, resume,
3907 may_contain_throw. Rename region_number to index. Remove
3908 u.eh_catch, u.eh_throw. Rename u.eh_try.eh_catch to first_catch.
3909 Add u.must_not_throw, landing_pads, exc_ptr_reg, filter_reg.
3910 (VEC(eh_landing_pad,gc)): New.
3911 (struct eh_status): Remove last_region_number. Add lp_array,
3912 throw_stmt_table, ttype_data, ehspec_data.
3913 (ehr_next, FOR_ALL_EH_REGION_AT): New.
3914 (FOR_ALL_EH_REGION_FN, FOR_ALL_EH_REGION): New.
3915 * except.c (lang_protect_cleanup_actions): Return tree.
3916 (struct ehl_map_entry): Remove.
3917 (init_eh_for_function): Push zero entries for region and lp_array.
3918 (gen_eh_region): Add to region_array immediately.
3919 (gen_eh_region_catch): Operate on eh_catch objects.
3920 (gen_eh_landing_pad): New.
3921 (get_eh_region_may_contain_throw, get_eh_region_tree_label): Remove.
3922 (get_eh_region_no_tree_label, set_eh_region_tree_label): Remove.
3923 (get_eh_region_from_number, get_eh_region_from_number_fn): New.
3924 (get_eh_landing_pad_from_number_fn): New.
3925 (get_eh_landing_pad_from_number): New.
3926 (get_eh_region_from_lp_number_fn): New.
3927 (get_eh_region_from_lp_number): New.
3928 (expand_resx_stmt, note_eh_region_may_contain_throw): Remove.
3929 (get_exception_pointer, get_exception_filter): Remove.
3930 (collect_eh_region_array, can_be_reached_by_runtime): Remove.
3931 (current_function_has_exception_handlers): Simplify.
3932 (bring_to_root, eh_region_replaceable_by_p): Remove.
3933 (replace_region, hash_type_list, hash_eh_region): Remove.
3934 (eh_regions_equal_p, merge_peers, remove_unreachable_regions): Remove.
3935 (label_to_region_map, num_eh_regions): Remove.
3936 (get_next_region_sharing_label, must_not_throw_labels): Remove.
3937 (find_exception_handler_labels): Remove.
3938 (duplicate_eh_regions_0, find_prev_try): Remove.
3939 (struct duplicate_eh_regions_data): New.
3940 (duplicate_eh_regions_1): Rewrite.
3941 (duplicate_eh_regions): Return a pointer map instead of an
3942 integer offset.
3943 (copy_eh_region_1, copy_eh_region, push_reachable_handler): Remove.
3944 (redirect_eh_edge_to_label): Remove.
3945 (eh_region_outermost): Rewrite using eh_region pointers
3946 instead of integers.
3947 (add_ttypes_entry): Update for ttype_data move to eh_status.
3948 (add_ehspec_entry): Rewrite with VEC instead of varray.
3949 (assign_filter_values): Likewise. Export.
3950 (build_post_landing_pads, connect_post_landing_pads): Remove.
3951 (dw2_build_landing_pads): Rewrite to use lp_array.
3952 (struct sjlj_lp_info, sjlj_find_directly_reachable_regions): Remove.
3953 (sjlj_assign_call_site_values): Rewrite to use lp_array.
3954 (sjlj_emit_dispatch_table, sjlj_build_landing_pads): Likewise.
3955 (sjlj_mark_call_sites): Update for landing pad numbers.
3956 (finish_eh_generation): Rewrite.
3957 (gate_handle_eh): Do nothing for no eh tree.
3958 (pass_rtl_eh): Move up near finish_eh_generation.
3959 (remove_eh_landing_pad): New.
3960 (remove_eh_handler): Export.
3961 (remove_eh_region, remove_eh_handler_and_replace): Remove.
3962 (for_each_eh_label): Rewrite to use lp_array.
3963 (make_reg_eh_region_note): New.
3964 (make_reg_eh_region_note_nothrow_nononlocal): New.
3965 (insn_could_throw_p): New.
3966 (copy_reg_eh_region_note_forward): New.
3967 (copy_reg_eh_region_note_backward): New.
3968 (check_handled, add_reachable_handler): Remove.
3969 (reachable_next_level, foreach_reachable_handler): Remove.
3970 (arh_to_landing_pad, arh_to_label, reachable_handlers): Remove.
3971 (get_eh_region_and_lp_from_rtx): New.
3972 (get_eh_region_from_rtx): New.
3973 (can_throw_internal_1, can_throw_external_1): Remove.
3974 (can_throw_internal): Use get_eh_region_from_rtx.
3975 (can_throw_external): Use get_eh_region_and_lp_from_rtx.
3976 (insn_nothrow_p, can_nonlocal_goto): New.
3977 (expand_builtin_eh_common, expand_builtin_eh_pointer): New.
3978 (expand_builtin_eh_filter, expand_builtin_eh_copy_values): New.
3979 (add_action_record): Use VEC not varray.
3980 (collect_one_action_chain): Update for eh_region changes.
3981 (convert_to_eh_region_ranges): Make static. Use VEC not varray.
3982 Use get_eh_region_and_lp_from_rtx.
3983 (gate_convert_to_eh_region_ranges): New.
3984 (pass_convert_to_eh_region_ranges): Use it.
3985 (push_uleb128, push_sleb128): Use VEC not varray.
3986 (output_one_function_exception_table): Likewise.
3987 (dump_eh_tree): Update for eh_region changes.
3988 (verify_eh_tree): Likewise.
3989 (verify_eh_region, default_init_unwind_resume_libfunc): Remove.
3990 * tree-eh.c: Include target.h.
3991 (add_stmt_to_eh_lp_fn): Rename from add_stmt_to_eh_region_fn.
3992 Don't disallow GIMPLE_RESX; adjust argument check.
3993 (add_stmt_to_eh_lp): Rename from add_stmt_to_eh_region.
3994 (record_stmt_eh_region): Update for landing pad numbers;
3995 generate a landing pad if necessary.
3996 (remove_stmt_from_eh_lp): Rename from remove_stmt_from_eh_region.
3997 (remove_stmt_from_eh_lp_fn): Similarly.
3998 (lookup_stmt_eh_lp_fn): Rename from lookup_stmt_eh_region_fn.
3999 Update for lp numbers; don't special case missing throw_stmt_table.
4000 (lookup_expr_eh_lp): Similarly.
4001 (lookup_stmt_eh_lp): Rename from lookup_stmt_eh_region.
4002 (eh_seq, eh_region_may_contain_throw): New.
4003 (struct leh_state): Add ehp_region.
4004 (struct leh_tf_state): Remove eh_label.
4005 (emit_post_landing_pad): New.
4006 (emit_resx, emit_eh_dispatch): New.
4007 (note_eh_region_may_contain_throw): New.
4008 (frob_into_branch_around): Take eh_region not eh label;
4009 emit eh code into eh_seq.
4010 (honor_protect_cleanup_actions): Early exit for no actions. Don't
4011 handle EXC_PTR_EXPR, FILTER_EXPR. Use gimple_build_eh_must_not_throw,
4012 lower_eh_must_not_throw. Emit code to eh_seq.
4013 (lower_try_finally_nofallthru): Emit eh code to eh_seq.
4014 (lower_try_finally_onedest): Likewise.
4015 (lower_try_finally_copy): Likewise.
4016 (lower_try_finally_switch): Likewise.
4017 (lower_try_finally): Initialize ehp_region.
4018 (lower_catch): Update for eh_catch objects.
4019 (lower_eh_filter): Don't handle must_not_throw.
4020 (lower_eh_must_not_throw): New.
4021 (lower_cleanup): Don't set eh_label.
4022 (lower_eh_constructs_2): Resolve eh builtins.
4023 Handle GIMPLE_EH_MUST_NOT_THROW.
4024 (lower_eh_constructs): Initialize eh_region_may_contain_throw.
4025 Add eh_seq to the end of the function body.
4026 (make_eh_dispatch_edges): New.
4027 (make_eh_edge): Remove.
4028 (make_eh_edges): Simplify for landing pads.
4029 (redirect_eh_edge_1): New.
4030 (redirect_eh_edge): Use it.
4031 (redirect_eh_dispatch_edge): New.
4032 (stmt_could_throw_p): Use a switch. Allow RESX.
4033 (stmt_can_throw_external): Use lookup_stmt_eh_lp.
4034 (stmt_can_throw_internal): Likewise.
4035 (maybe_clean_eh_stmt_fn, maybe_clean_eh_stmt): New.
4036 (maybe_clean_or_replace_eh_stmt): Update for landing pads.
4037 (maybe_duplicate_eh_stmt_fn, maybe_duplicate_eh_stmt): New.
4038 (gate_refactor_eh): New.
4039 (pass_refactor_eh): Use it.
4040 (lower_resx, execute_lower_resx, pass_lower_resx): New.
4041 (lower_eh_dispatch, execute_lower_eh_dispatch): New.
4042 (gate_lower_ehcontrol, pass_lower_eh_dispatch): New.
4043 (remove_unreachable_handlers): Rename from
4044 tree_remove_unreachable_handlers; rewrite for landing pads;
4045 call remove_eh_handler directly.
4046 (remove_unreachable_handlers_no_lp): New.
4047 (unsplit_eh, unsplit_all_eh): New.
4048 (tree_empty_eh_handler_p, all_phis_safe_to_merge): Remove.
4049 (cleanup_empty_eh_merge_phis, cleanup_empty_eh_move_lp): New.
4050 (cleanup_empty_eh_unsplit): New.
4051 (cleanup_empty_eh): Rewrite.
4052 (cleanup_all_empty_eh): New.
4053 (execute_cleanup_eh): Rename from cleanup_eh. Remove unreachable
4054 handlers first. Use unsplit_all_eh, cleanup_all_empty_eh.
4055 (gate_cleanup_eh): New.
4056 (pass_cleanup_eh): Use it.
4057 (verify_eh_edges): Move later in file. Expect one EH edge.
4058 (verify_eh_dispatch_edge): New.
4059
4060 * Makefile.in (FUNCTION_H): Use vecprim.h, not varray.h.
4061 (gtype-desc.o): Add TARGET_H.
4062 (tree.o): Use EXCEPT_H, not except.h.
4063 (cfgbuild.o): Add EXPR_H.
4064 (GTFILES): Add vecprim.h.
4065 * builtins.c (expand_builtin): Handle BUILT_IN_EH_POINTER,
4066 BUILT_IN_EH_FILTER, BUILT_IN_EH_COPY_VALUES.
4067 * builtins.def (BUILT_IN_UNWIND_RESUME, BUILT_IN_EH_POINTER,
4068 BUILT_IN_EH_FILTER, BUILT_IN_EH_COPY_VALUES): New.
4069 * calls.c (emit_call_1): Use make_reg_eh_region_note.
4070 * cfgbuild.c (control_flow_insn_p): Use can_nonlocal_goto; tidy
4071 calls to can_throw_internal.
4072 (rtl_make_eh_edge): Use get_eh_landing_pad_from_rtx.
4073 (make_edges): Don't handle RESX; use can_nonlocal_goto.
4074 * cfgexpand.c (expand_gimple_stmt_1): Don't handle RESX.
4075 (expand_gimple_stmt): Use make_reg_eh_region_note.
4076 (expand_debug_expr): Don't handle EXC_PTR_EXPR and FILTER_EXPR.
4077 (gimple_expand_cfg): Don't call convert_from_eh_region_ranges,
4078 or find_exception_handler_labels.
4079 * cfgrtl.c (rtl_verify_flow_info_1): Don't handle RESX. Assert
4080 there is exacly one EH edge. Use can_nonlocal_goto and
4081 can_throw_internal.
4082 * cgraphunit.c (update_call_expr): Use maybe_clean_eh_stmt_fn.
4083 (cgraph_materialize_all_clones): Use maybe_clean_or_replace_eh_stmt.
4084 * combine.c (can_combine_p, try_combine): Use insn_nothrow_p.
4085 * cse.c (count_reg_usage, insn_live_p): Use insn_could_throw_p.
4086 * dce.c (deletable_insn_p_1): Don't test may_trap_p.
4087 (deletable_insn_p): Use insn_nothrow_p; reorder nonjump insn test.
4088 * dse.c (scan_insn): Use insn_could_throw_p.
4089 * emit-rtl.c (try_split): Use copy_reg_eh_region_note_backward.
4090 * expr.c (expand_expr_real): Use make_reg_eh_region_note.
4091 (expand_expr_real_1): Don't handle RESX, EXC_PTR, or FILTER_EXPR.
4092 * fold-const.c (tree_expr_nonnegative_warnv_p): Don't handle
4093 EXC_PTR_EXPR or FILTER_EXPR.
4094 (tree_expr_nonzero_warnv_p): Likewise.
4095 * function.h: Include vecprim.h, not varray.h
4096 (struct rtl_eh): Remove filter, exc_ptr, built_landing_pad members;
4097 move ttype_data and ehspec_data members to struct eh_status; change
4098 action_record_data member to a VEC.
4099 * gcse.c (hash_scan_set): Use can_throw_internal.
4100 * gengtype.c (open_base_files): Add target.h to gtype-desc.c.
4101 * gimple-iterator.c (gsi_replace): Use maybe_clean_or_replace_eh_stmt.
4102 * gimple-low.c (lower_stmt): Handle GIMPLE_EH_MUST_NOT_THROW.
4103 (block_may_fallthru): Don't handle RESX_EXPR.
4104 * gimple-pretty-print.c (dump_gimple_label): Dump EH_LANDING_PAD_NR.
4105 (dump_gimple_eh_must_not_throw, dump_gimple_eh_dispatch): New.
4106 (dump_gimple_stmt): Dump landing pad information with TDF_EH;
4107 handle GIMPLE_EH_MUST_NOT_THROW, GIMPLE_EH_DISPATCH.
4108 * gimple.c (gss_for_code): Handle GIMPLE_EH_MUST_NOT_THROW,
4109 GIMPLE_EH_DISPATCH, GIMPLE_RESX.
4110 (gimple_size): Likewise.
4111 (gimple_build_eh_dispatch, gimple_build_eh_must_not_throw): New.
4112 (gimple_build_resx): Use gimple_build_with_ops.
4113 (DEFTREECODE): Don't handle EXC_PTR_EXPR, FILTER_EXPR.
4114 (is_gimple_val): Likewise.
4115 (is_gimple_stmt): Remove RESX_EXPR.
4116 * gimple.def (GIMPLE_EH_MUST_NOT_THROW, GIMPLE_EH_DISPATCH): New.
4117 (GIMPLE_RESX): Reorder with other EH constructs.
4118 * gimple.h (struct gimple_statement_eh_mnt): New.
4119 (struct gimple_statement_eh_ctrl): Rename from gimple_statement_resx.
4120 (gimple_eh_filter_must_not_throw): Remove.
4121 (gimple_eh_filter_set_must_not_throw): Remove.
4122 (gimple_eh_must_not_throw_fndecl): New.
4123 (gimple_eh_dispatch_region, gimple_eh_dispatch_set_region): New.
4124 (is_gimple_resx): New.
4125 * gimplify.c (gimplify_expr): Don't handle EXC_PTR_EXPR, RESX_EXPR.
4126 Don't copy EH_FILTER_MUST_NOT_THROW.
4127 * gsstruct.def (GSS_EH_MNT, GSS_EHCONTROL): New.
4128 * ipa-inline.c (estimate_function_body_sizes): Don't try to
4129 handle must_not_throw_labels specially.
4130 * ipa-pure-const.c (check_call): Update debug statement for LP.
4131 * ipa-type-escape.c (check_operand): Don't handle EXC_PTR or FILTER.
4132 * ipa-utils.c (get_base_var): Likewise.
4133 * libfunc.h (LTI_unwind_resume, unwind_resume_libfunc): Remove.
4134 * lower-subreg.c (move_eh_region_note): Remove.
4135 (resolve_simple_move): Use copy_reg_eh_region_note_forward.
4136 * omp-low.c (new_omp_context): Update for eh_lp_nr.
4137 (create_task_copyfn): Likewise.
4138 (maybe_catch_exception): Use gimple_build_eh_filter.
4139 * optabs.c (emit_libcall_block): Update test for no-nonlocal-goto
4140 REG_EH_REGION. Use make_reg_eh_region_note_nothrow_nononlocal.
4141 * passes.c (init_optimization_passes): Add pass_lower_eh_dispatch
4142 and pass_lower_resx.
4143 * print-tree.c (print_node): Dump EH_LANDING_PAD_NR.
4144 * recog.c (peephole2_optimize): Use copy_reg_eh_region_note_backward,
4145 can_throw_internal, can_nonlocal_goto.
4146 * reload1.c (fixup_eh_region_note): Use insn_could_throw_p,
4147 copy_reg_eh_region_note_forward.
4148 (emit_input_reload_insns): Use copy_reg_eh_region_note_forward.
4149 (emit_output_reload_insns): Likewise.
4150 (copy_eh_notes): Remove.
4151 * rtl.def (RESX): Remove.
4152 * rtl.h: Update declarations.
4153 * sese.c (graphite_copy_stmts_from_block): Use maybe_duplicate_eh_stmt.
4154 * tree-cfg.c (make_edges): Handle GIMPLE_EH_DISPATCH.
4155 (update_eh_label): Remove.
4156 (cleanup_dead_labels_eh): New.
4157 (cleanup_deal_labels): Use it instead of update_eh_label.
4158 (gimple_merge_blocks): Update landing pad data structure when
4159 removing a landing pad label.
4160 (remove_useless_stmts_tc): Remove gimple_eh_filter_must_not_throw
4161 test; handle GIMPLE_EH_MUST_NOT_THROW.
4162 (is_ctrl_altering_stmt): Handle GIMPLE_EH_DISPATCH.
4163 (verify_gimple_assign_single): Don't handle EXC_PTR or FILTER_EXPR.
4164 (verify_types_in_gimple_stmt): Handle GIMPLE_EH_DISPATCH.
4165 (verify_stmt): Likewise. Verify landing pads.
4166 (gimple_redirect_edge_and_branch): Handle GIMPLE_EH_DISPATCH.
4167 (gimple_duplicate_bb): Use maybe_duplicate_eh_stmt.
4168 (struct move_stmt_d): Add eh_map.
4169 (move_stmt_eh_region_nr, move_stmt_eh_region_tree_nr): New.
4170 (move_stmt_r): Remap eh region numbers in builtin calls,
4171 resx and eh_dispatch.
4172 (move_block_to_fn): Remove eh_offset parameter. Use
4173 maybe_duplicate_eh_stmt_fn.
4174 (find_outermost_region_in_block): Operate on eh_region pointers
4175 instead of region numbers.
4176 (move_sese_region_to_fn): Expect eh_map instead of eh_offset from
4177 duplicate_eh_regions.
4178 * tree-cfgcleanup.c (tree_forwarder_block_p): Move entry block edge
4179 test earlier. Disallow EH landing pads.
4180 * tree-cfa.c (create_tree_common_ann): Don't set ann->rn.
4181 * tree-flow.h: Update declarations.
4182 (struct tree_ann_common_d): Replace rn with lp_nr.
4183 * tree-inline.c (copy_tree_body_r): Don't handle RESX_EXPR.
4184 (remap_eh_region_nr, remap_eh_region_tree_nr): New.
4185 (remap_gimple_stmt): Remap eh region numbers in builtin calls,
4186 resx and eh_dispatch.
4187 (copy_bb): Use maybe_duplicate_eh_stmt_fn.
4188 (copy_edges_for_bb): Use make_eh_dispatch_edges.
4189 (copy_cfg_body): Expect eh_map instead of eh_region_offset
4190 from duplicate_eh_regions.
4191 (estimate_num_insns): Don't handle EXC_PTR_EXPR or FILTER_EXPR;
4192 update RESX; handle EH_DISPATCH.
4193 (expand_call_inline): Set eh_lp_nr, not eh_region.
4194 (maybe_inline_call_in_expr): Likewise.
4195 * tree-inline.h (struct copy_body_data): Replace eh_region with
4196 eh_lp_nr, eh_region_offset with eh_map.
4197 * tree-optimize.c (execute_fixup_cfg): Use maybe_clean_eh_stmt.
4198 * tree-pass.h (pass_lower_eh_dispatch, pass_lower_resx): New.
4199 * tree-pretty-print.c (dump_generic_node): Don't handle
4200 EXC_PTR_EXPR, FILTER_EXPR, RESX_EXPR.
4201 * tree-sra.c (scan_function): Use maybe_clean_eh_stmt.
4202 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Don't handle
4203 EXC_PTR_EXPR, FILTER_EXPR.
4204 * tree-ssa-operands.c (get_expr_operands): Likewise.
4205 * tree-ssa-propagate.c (valid_gimple_rhs_p): Likewise.
4206 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
4207 (ao_ref_init_from_vn_reference): Likewise.
4208 * tree-ssa-sink.c (statement_sink_location): Likewise.
4209 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
4210 (mark_virtual_phi_result_for_renaming): Export. Tidy.
4211 * tree-ssa-pre.c (get_or_alloc_expr_for): Don't handle
4212 EXC_PTR_EXPR, FILTER_EXPR.
4213 (is_exception_related): Remove.
4214 (compute_avail): Don't call it.
4215 * tree-ssa-structalias.c: Remove VEC definitions for int and unsigned.
4216 * tree.c (find_decls_types_in_eh_region): Update for eh_region changes.
4217 (find_decls_types_in_node): Use FOR_ALL_EH_REGION_FN.
4218 (build_common_builtin_nodes): Add enable_cxa_end_cleanup parameter.
4219 Build EH builtins.
4220 (build_resx): Remove.
4221 * tree.def (EXC_PTR_EXPR, FILTER_EXPR, RESX_EXPR): Remove.
4222 * tree.h: Update declarations.
4223 (EH_FILTER_MUST_NOT_THROW): Remove.
4224 (struct tree_label_decl): Add eh_landing_pad_nr.
4225 (EH_LANDING_PAD_NR): New.
4226 * value-prof.c (gimple_ic): Tidy variable names. Update for
4227 landing pad numbers.
4228 (gimple_stringop_fixed_value): Tidy variable names. Assert
4229 that neither call stmt can throw.
4230 * vecprim.h (uchar): New.
4231 (VEC(uchar,heap), VEC(uchar,gc)): New.
4232
4233 * c-common.c (c_define_builtins): Update call to
4234 build_common_builtin_nodes.
4235 * c-parser.c (c_parse_file): Don't call
4236 default_init_unwind_resume_libfunc.
4237
4238 2009-09-14 Richard Sandiford <rdsandiford@googlemail.com>
4239
4240 * config/mips/mips-protos.h (mips_cfun_has_cprestore_slot_p): Declare.
4241 (mips_cprestore_address_p): Likewise.
4242 (mips_save_gp_to_cprestore_slot): Likewise.
4243 (mips_restore_gp): Rename to...
4244 (mips_restore_gp_from_cprestore_slot): ...this.
4245 (mips_must_initialize_gp_p): Declare.
4246 (mips_emit_save_slot_move): Likewise.
4247 (mips_output_load_label): Return nothing.
4248 (mips_eh_uses): Declare.
4249 * config/mips/mips.h (TARGET_SPLIT_CALLS): Require epilogue_completed.
4250 (TARGET_CPRESTORE_DIRECTIVE): New macro.
4251 (TARGET_ABSOLUTE_JUMPS): Likewise.
4252 (EH_USES): Likewise.
4253 (FIRST_PSEUDO_REGISTER): Update comment.
4254 (MIPS_ABSOLUTE_JUMP): New macro, extracted from...
4255 (MIPS_CALL): ...here.
4256 (REGISTER_NAMES): Add $cprestore.
4257 * config/mips/mips.c (machine_function): Remove has_gp_insn_p.
4258 Add load_label_length, has_inflexible_gp_insn_p,
4259 has_flexible_gp_insn_p, must_initialize_gp_p and
4260 must_restore_gp_when_clobbered_p.
4261 (mips_expand_call): Don't generate split instructions here.
4262 (mips_split_call): Update the call to mips_restore_gp after
4263 the above name change.
4264 (mips16_cfun_returns_in_fpr_p): Move earlier in file.
4265 (mips_find_gp_ref): New function.
4266 (mips_insn_has_inflexible_gp_ref_p): Likewise.
4267 (mips_cfun_has_inflexible_gp_ref_p): Likewise.
4268 (mips_insn_has_flexible_gp_ref_p): Likewise.
4269 (mips_cfun_has_flexible_gp_ref_p): Likewise.
4270 (mips_function_has_gp_insn): Delete.
4271 (mips_global_pointer): Drop the df_regs_ever_live_p check.
4272 Use the new functions above. Only return INVALID_REGNUM
4273 for TARGET_ABSOLUTE_JUMPS.
4274 (mips_must_initialize_gp_p): New function.
4275 (mips_get_cprestore_base_and_offset): New function, extracted from...
4276 (mips_cprestore_slot): ...here. Take a bool parameter.
4277 (mips_cfun_has_cprestore_slot_p): New function.
4278 (mips_cprestore_address_p): Likewise.
4279 (mips_save_gp_to_cprestore_slot): Likewise.
4280 (mips_restore_gp): Rename to...
4281 (mips_restore_gp_from_cprestore_slot): ...this. Assert
4282 epilogue_completed. Update the call to mips_cprestore_slot.
4283 Test cfun->machine->must_restore_gp_when_clobbered_p.
4284 (mips_direct_save_slot_move_p): New function.
4285 (mips_emit_save_slot_move): Likewise.
4286 (mips_output_cplocal): Test mips_must_initialize_gp_p () instead
4287 of cfun->machine->global_pointer.
4288 (mips_output_function_prologue): Check mips_must_initialize_gp_p ().
4289 (mips_save_reg): Use mips_emit_save_slot_move.
4290 (mips_expand_prologue): Set must_initialize_gp_p.
4291 Use mips_cfun_has_cprestore_slot_p. Use gen_potential_cprestore
4292 for all cprestore saves. Emit a use_cprestore instruction after
4293 setting up the cprestore slot.
4294 (mips_restore_reg): Use mips_emit_save_slot_move.
4295 (mips_process_load_label): New function.
4296 (mips_load_label_length): Likewise.
4297 (mips_output_load_label): Don't return asm: output it here instead.
4298 Use mips_process_load_label.
4299 (mips_adjust_insn_length): Adjust the length of branch instructions
4300 that have length MAX_PIC_BRANCH_LENGTH.
4301 (mips_output_conditional_branch): Update the call to
4302 mips_output_load_label. Assume the branch target is OPERANDS[0]
4303 rather than OPERANDS[1]. Use MIPS_ABSOLUTE_JUMP for absolute jumps.
4304 (mips_output_order_conditional_branch): Swap the meaning of
4305 OPERANDS[0] and OPERANDS[1].
4306 (mips_variable_issue): Don't count ghost instructions.
4307 (mips_expand_ghost_gp_insns): New function.
4308 (mips_reorg): Rerun mips_reorg_process_insns if it returns true.
4309 (mips_output_mi_thunk): Set must_initialize_gp_p.
4310 (mips_eh_uses): New function.
4311 * config/mips/predicates.md (cprestore_save_slot_operand)
4312 (cprestore_load_slot_operand): New predicates.
4313 * config/mips/mips.md (UNSPEC_POTENTIAL_CPRESTORE): New unspec.
4314 (UNSPEC_MOVE_GP): Likewise.
4315 (UNSPEC_CPRESTORE, UNSPEC_RESTORE_GP, UNSPEC_EH_RETURN)
4316 (UNSPEC_CONSTTABLE_INT, UNSPEC_CONSTTABLE_FLOAT): Bump to make room.
4317 (CPRESTORE_SLOT_REGNUM): New register.
4318 (MAX_PIC_BRANCH_LENGTH): New constant.
4319 (jal_macro): Use MIPS_ABSOLUTE_JUMPS.
4320 (length): Use MAX_PIC_BRANCH_LENGTH as a placeholder for PIC long
4321 branches. Fix commentary.
4322 (loadgp_newabi_<mode>): Change from unspec_volatile to unspec.
4323 Only split if mips_must_initialize_gp_p; expand to nothing otherwise.
4324 Change type to "ghost".
4325 (loadgp_absolute_<mode>): Likewise.
4326 (loadgp_rtp_<mode>): Likewise.
4327 (copygp_mips16): Likewise.
4328 (loadgp_blockage): Remove redundant mode attribute.
4329 (potential_cprestore): New instruction.
4330 (cprestore): Turn into an unspec set.
4331 (use_cprestore): New instruction.
4332 (*branch_fp): Swap operands 0 and 1. Remove redundant mode attribute.
4333 (*branch_fp_inverted): Likewise.
4334 (*branch_order<mode>): Likewise.
4335 (*branch_order<mode>_inverted): Likewise.
4336 (*branch_equality<mode>): Likewise.
4337 (*branch_equality<mode>_inverted): Likewise.
4338 (*branch_bit<bbv><mode>): Likewise.
4339 (*branch_bit<bbv><mode>_inverted): Likewise.
4340 (*branch_equality<mode>_mips16): Remove redundant mode.
4341 (jump): Turn into a define_expand.
4342 (*jump_absolute): New instruction.
4343 (*jump_pic): Likewise.
4344 (*jump_mips16): Rename previously-unnamed pattern. Remove
4345 redundant mode attribute.
4346 (restore_gp): Split on epilogue_completed rather than
4347 reload_completed. Change type to "ghost".
4348 (move_gp<mode>): New instruction.
4349 * config/mips/mips-dsp.md (mips_bposge): Swap operands 0 and 1.
4350 Remove redundant mode attribute.
4351 * config/mips/mips-ps-3d.md (bc1any4t): Likewise.
4352 (bc1any4f, bc1any2t, bc1any2f): Likewise.
4353 (*branch_upper_lower, *branch_upper_lower_inverted): Likewise.
4354
4355 2009-09-14 Michael Meissner <meissner@linux.vnet.ibm.com>
4356
4357 PR target/41210
4358 * config/rs6000/rs6000.c (rs6000_function_value): V2DF and V2DI
4359 are returned in the same register (vs34 or v2) that Altivec vector
4360 types are returned in.
4361 (rs6000_libcall_value): Ditto.
4362
4363 PR target/41331
4364 * config/rs6000/rs6000.c (rs6000_emit_move): Use gen_add3_insn
4365 instead of explicit addsi3/adddi3 calls.
4366 (rs6000_split_multireg_move): Ditto.
4367 (rs6000_emit_allocate_stack): Ditto.
4368 (rs6000_emit_prologue): Ditto.
4369 (rs6000_output_mi_thunk): Ditto.
4370
4371 * config/rs6000/rs6000.md (bswapdi*): Don't assume the pointer
4372 size is 64 bits if we can use 64-bit registers.
4373
4374 2009-09-14 Bernd Schmidt <bernd.schmidt@analog.com>
4375
4376 * config/bfin/bfin.c (bfin_longcall_p): Don't use short calls for weak
4377 symbols.
4378
4379 From Jie Zhang <jie.zhang@analog.com>:
4380 * config/bfin/bfin.c (bfin_expand_prologue): Ask do_link to
4381 save FP and RETS with saveall attribute.
4382 (bfin_expand_epilogue): Ask do_unlink to restore FP and RETS
4383 with saveall attribute.
4384
4385 * config/bfin/bfin.c (bfin_expand_builtin,
4386 case BFIN_BUILTIN_MULT_1X32X32): Force constants to registers for the
4387 operands.
4388
4389 From Jie Zhang <jie.zhang@analog.com>:
4390 * config/bfin/bfin.c (bfin_expand_builtin): Initialize icodes
4391 before use in two places.
4392 * config/bfin/bfin.md (AREG): Define mode iterator.
4393 (reload_in, reload_out): Use mode iterator AREG.
4394
4395 2009-09-14 Richard Guenther <rguenther@suse.de>
4396
4397 PR middle-end/41350
4398 * dwarf2out.c (dwarf2out_begin_prologue): Adjust non-CFI asm
4399 EH personality path.
4400
4401 2009-09-13 Richard Guenther <rguenther@suse.de>
4402 Rafael Avila de Espindola <espindola@google.com>
4403
4404 * langhooks-def.h (LANG_HOOKS_EH_RUNTIME_TYPE): Define.
4405 (LANG_HOOKS_EH_PERSONALITY): Likewise.
4406 (LANG_HOOKS_INITIALIZER): Adjust.
4407 (lhd_pass_through_t): Declare.
4408 * langhooks.h (struct lang_hooks): Add eh_runtime_type and
4409 eh_personality.
4410 * langhooks.c (lhd_pass_through_t): New function.
4411 * dwarf2out.c (output_call_frame_info, dwarf2out_do_cfi_startproc,
4412 dwarf2out_begin_prologue): Use personality from current_function_decl.
4413 * expr.h (get_personality_function): Declare.
4414 * expr.c (get_personality_function): New function.
4415 (build_personality_function): Likewise.
4416 * libfuncs.h (libfunc_index): Remove LTI_eh_personality.
4417 (eh_personality_libfunc): Remove.
4418 * optabs.c (build_libfunc_function): New function split out from ...
4419 (init_one_libfunc): ... here.
4420 * tree.h (DECL_FUNCTION_PERSONALITY): New.
4421 (tree_function_decl): Add personality.
4422 (lhd_gcc_personality): Declare.
4423 (build_personality_function): Likewise.
4424 * tree.c (gcc_eh_personality_decl): New.
4425 (lhd_gcc_personality): New function.
4426 * except.h (lang_eh_runtime_type): Remove.
4427 (enum eh_personality_kind): New.
4428 (build_personality_function): Declare.
4429 (function_needs_eh_personality): Declare.
4430 * except.c (lang_eh_runtime_type): Remove.
4431 (function_needs_eh_personality): New function.
4432 (add_type_for_runtime): Call lang_hooks.type_for_runtime instead.
4433 (sjlj_emit_function_enter, output_function_exception_table):
4434 Use personality from current_function_decl.
4435 * tree-eh.c (lower_eh_constructs): Set DECL_FUNCTION_PERSONALITY.
4436 * tree-inline.c (tree_can_inline_p): Do not inline across different
4437 EH personalities.
4438 (expand_call_inline): Likewise. Adjust the callers EH personality.
4439 (tree_function_versioning): Copy DECL_FUNCTION_PERSONALITY.
4440 * cgraph.c (cgraph_add_new_function): Set DECL_FUNCTION_PERSONALITY.
4441 * Makefile.in (cgraph.o): Add $(EXCEPT_H) dependency.
4442 (c-parser.o): Likewise
4443 * c-tree.h (c_eh_initialized_p): Remove.
4444 (c_maybe_initialize_eh): Likewise.
4445 * c-decl.c (finish_decl): Don't call c_maybe_initialize_eh.
4446 (finish_decl): Don't call c_maybe_initialize_eh.
4447 (c_eh_initialized_p): Remove.
4448 (c_maybe_initialize_eh): Likewise.
4449 * c-parser.c (c_parser_omp_construct): Likewise.
4450 (c_parse_file): Initialize exception handling.
4451
4452 2009-09-13 Kai Tietz <kai.tietz@onevision.com>
4453
4454 * config.gcc (tm_file): Remove i386/biarch32.h
4455 for i?86-w64-mingw* case.
4456 (i?86-*-mingw* andx86_64-*-mingw*): Add multilib
4457 support.
4458 * config.host: Set for x64 mingw the option
4459 use_long_long_for_widest_fast_int to yes.
4460
4461 2009-09-13 Eric Botcazou <ebotcazou@adacore.com>
4462
4463 * tree.h (DECL_IGNORED_P): Document further effect for FUNCTION_DECL.
4464 * dbxout.c (dbxout_function_end): Do not test DECL_IGNORED_P.
4465 (dbxout_begin_function): Likewise.
4466 * final.c (dwarf2_debug_info_emitted_p): New predicate.
4467 (final_start_function): Do not emit debug info if DECL_IGNORED_P is
4468 set on the function.
4469 (final_end_function): Likewise.
4470 (final_scan_insn): Likewise.
4471 (rest_of_handle_final): Likewise.
4472 * varasm.c (assemble_start_function): Likewise.
4473 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
4474
4475 2009-09-12 Jason Merrill <jason@redhat.com>
4476
4477 * dbgcnt.c (dbg_cnt_process_single_pair): constify.
4478 * opts.c (common_handle_option): constify.
4479
4480 2009-09-12 Gerald Pfeifer <gerald@pfeifer.com>
4481
4482 * doc/install.texi (avr): Remove obsolete reference site.
4483
4484 2009-09-12 Gerald Pfeifer <gerald@pfeifer.com>
4485
4486 * doc/install.texi (Binaries): Adjust AIX link.
4487
4488 2009-09-12 Akim Demaille <demaille@gostai.com>
4489
4490 * doc/invoke.texi (-fstrict-aliasing): Correct two examples.
4491 Use an imperative sentence.
4492
4493 2009-09-11 Richard Henderson <rth@redhat.com>
4494
4495 * gsstruct.def (DEFGSSTRUCT): Remove printable-name argument; add
4496 structure-name and has-tree-operands arguments; update all entries.
4497 * gimple.def (DEFGSCODE): Replace 3rd argument with GSS_symbol;
4498 update all entries.
4499 * gimple.c (gimple_ops_offset_): Use HAS_TREE_OP argument.
4500 (gsstruct_code_size): New.
4501 (gss_for_code_): New.
4502 (gss_for_code): Remove.
4503 (gimple_size): Rewrite using gsstruct_code_size.
4504 (gimple_statement_structure): Move to gimple.h.
4505 * gimple.h (gimple_ops_offset_, gss_for_code_): Declare.
4506 (gss_for_code, gimple_statement_structure): New.
4507 (gimple_ops): Use new arrays; tidy.
4508
4509 2009-09-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4510
4511 * config/pa/predicates.md (symbolic_operand): Require a CONST symbolic
4512 operand to be a PLUS expression.
4513 * config/pa/pa.c (pa_secondary_reload): Likewise.
4514
4515 2009-09-11 Jakub Jelinek <jakub@redhat.com>
4516
4517 * combine.c (propagate_for_debug_subst): Call wrap_constant on top.
4518
4519 * print-rtl.c (print_rtx): Use JUMP_LABEL (in_rtx) instead of
4520 XEXP (in_rtx, 8).
4521
4522 2009-09-11 Bernd Schmidt <bernd.schmidt@analog.com>
4523
4524 From Jie Zhang <jie.zhang@analog.com>:
4525 * doc/extend.texi (node Function Attributes): Document l2
4526 function attribute.
4527 (node Blackfin Variable Attributes): Document l2 variable attributes.
4528
4529 2009-09-11 Loren J. Rittle <ljrittle@acm.org>
4530
4531 * config.gcc (*-*-freebsd*): Enable default_use_cxa_atexit
4532 to match the system compiler's configuration at inflection point.
4533 Add comment to remark a remaining difference with system compiler.
4534
4535 * configure.ac (*-*-freebsd*): Enable check for __stack_chk_fail.
4536 * configure: Regenerate.
4537
4538 2009-09-11 Bernd Schmidt <bernd.schmidt@analog.com>
4539
4540 From Jie Zhang <jie.zhang@analog.com>:
4541 * config/bfin/bfin.c (bfin_expand_call): Handle L2 functions.
4542 (bfin_handle_l2_attribute): New.
4543 (bfin_attribute_table): Add l2 attribute.
4544
4545 2009-09-11 Michael Matz <matz@suse.de>
4546
4547 PR middle-end/41275
4548 * tree-inline.c (remap_decls): Don't put DECL_EXTERNAL decls
4549 on the local_decls list.
4550
4551 2009-09-11 Alexandre Oliva <aoliva@redhat.com>
4552
4553 PR debug/41276
4554 PR debug/41307
4555 * cselib.c (cselib_expand_value_rtx_cb): Document callback
4556 interface.
4557 (cselib_expand_value_rtx_1): Use callback for SUBREGs. Adjust
4558 for VALUEs, to implement the documented interface.
4559 * var-tracking.c (vt_expand_loc_callback): Handle SUBREGs.
4560 Adjust for VALUEs and anything else, to implement the
4561 documented interface.
4562
4563 2009-09-10 Nathan Froyd <froydnj@codesourcery.com>
4564
4565 * config/rs6000/rs6000.h (DATA_ALIGNMENT): Check that we are dealing
4566 with actual SPE/paired vector modes before using 64-bit alignment.
4567 Check that TYPE is a REAL_TYPE for TARGET_E500_DOUBLE.
4568
4569 2009-09-10 DJ Delorie <dj@redhat.com>
4570
4571 * config/mep/mep.md (eh_epilogue): Defer until after epilogue is
4572 emitted.
4573
4574 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): New.
4575 * config/mep/mep.c (mep_legitimate_constant_p): New.
4576 * config/mep/mep-protos.h: Prototype it.
4577
4578 2009-09-10 Richard Henderson <rth@redhat.com>
4579
4580 * print-rtl.c (print_rtx): Fix JUMP_LABEL index.
4581
4582 2009-09-10 Jason Merrill <jason@redhat.com>
4583
4584 * tree.c (chain_index): New fn.
4585 * tree.h: Declare it.
4586
4587 2009-09-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4588
4589 * config/sol2-c.c (cmn_err_length_specs): Initialize
4590 scalar_identity_flag.
4591
4592 2009-09-10 Richard Henderson <rth@redhat.com>
4593
4594 * tree.h (struct tree_decl_common): Move align member earlier;
4595 move label_decl_uid member ...
4596 (struct tree_label_decl): ... here.
4597 (LABEL_DECL_UID): Update to match.
4598
4599 * tree-cfg.c (dump_function_to_file): Dump eh tree with TDF_EH,
4600 not TDF_DETAILS.
4601
4602 * tree-cfg.c (gimple_redirect_edge_and_branch): Do
4603 gimple_try_redirect_by_replacing_jump test after no-op and EH tests.
4604
4605 * tree-cfg.c (split_edge_bb_loc): Don't disallow placement at
4606 dest_prev if the edge is complex.
4607
4608 * tree-cfg.c (is_ctrl_stmt): Use a switch.
4609
4610 * tree-cfg.c (gimple_can_merge_blocks_p): Move label and
4611 loop latch tests earlier.
4612
4613 * gimple-iterator.c (gimple_find_edge_insert_loc): Insert
4614 before GIMPLE_RETURN, not after its predecessor; insert
4615 before GIMPLE_RESX.
4616
4617 * gimple-iterator.c (gimple_find_edge_insert_loc): Use
4618 gimple_seq_empty_p to test for no PHI nodes.
4619 * tree-cfg.c (split_critical_edges): Likewise.
4620
4621 * c-common.h (c_dialect_cxx, c_dialect_objc): Boolify.
4622
4623 2009-09-10 Hariharan Sandanagobalane <hariharan@picochip.com>
4624
4625 * final.c (shorten_branches) : Ignore DEBUG_INSN_P instructions
4626 introduced by the VTA branch merge.
4627
4628 2009-09-10 Uros Bizjak <ubizjak@gmail.com>
4629
4630 * ira-conflicts.c: Use fputs or putc instead of fprintf
4631 where appropriate.
4632 * cfg.c: Ditto.
4633 * toplev.c: Ditto.
4634 * tree-switch-conversion.c: Ditto.
4635
4636 2009-09-10 Hariharan Sandanagobalane <hariharan@picochip.com>
4637
4638 * config/picochip/picochip.c : Ignore DEBUG_INSN_P instructions
4639 introduced by the VTA branch merge.
4640
4641 2009-09-10 Uros Bizjak <ubizjak@gmail.com>
4642
4643 Revert:
4644 2009-09-09 Uros Bizjak <ubizjak@gmail.com>
4645
4646 PR rtl-optimization/39779
4647 * expr.c (convert_modes): Return when mode == oldmode after
4648 CONST_INTs are processed.
4649
4650 2009-09-10 Nick Clifton <nickc@redhat.com>
4651
4652 * config/mep/mep.c (mep_encode_section_info): Copy weakness
4653 attribute and referring decl when creating renamed symbol.
4654
4655 2009-09-10 Richard Guenther <rguenther@suse.de>
4656
4657 PR middle-end/41257
4658 * cgraphunit.c (cgraph_emit_thunks): Emit thunks only for
4659 reachable nodes.
4660 (cgraph_finalize_compilation_unit): Compute reachability
4661 before emitting thunks. Properly process aliases before
4662 possibly removing unreachable nodes.
4663
4664 2009-09-10 Richard Guenther <rguenther@suse.de>
4665
4666 PR middle-end/41254
4667 * tree.c (struct free_lang_data_d): Add worklist member.
4668 (find_decls_types_r): Push onto the worklist instead of recursing.
4669 Handle TREE_BINFOs properly.
4670 (find_decls_types): New function wrapped around find_decls_types_r
4671 to process the worklist.
4672 (find_decls_types_in_eh_region): Use it.
4673 (find_decls_types_in_node): Likewise.
4674 (find_decls_types_in_var): Likewise.
4675 (free_lang_data_in_cgraph): Likewise. Free the worklist.
4676 * tree.h (RECORD_OR_UNION_TYPE_P): New.
4677 (AGGREGATE_TYPE_P): Adjust.
4678
4679 2009-09-09 Jason Merrill <jason@redhat.com>
4680
4681 * configure.ac: Check glibc version even if we have an in-tree
4682 assembler.
4683
4684 2009-09-09 Anthony Green <green@moxielogic.com>
4685
4686 * config/moxie/moxie.md (*movsi, *movhi, *movqi): Use xor to load
4687 the constant 0 when appropriate.
4688 * config/moxie/constraints.md: Add constraint O.
4689
4690 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Adjust
4691 to pass up to 6 32-bit argument values in registers.
4692 (moxie_function_arg): Ditto.
4693 (moxie_arg_partial_bytes): Ditto.
4694 * config/moxie/moxie.h (FUNCTION_ARG_ADVANCE): Ditto.
4695 (REG_PARM_STACK_SPACE): Ditto.
4696 (FUNCTION_ARG_REGNO_P): Ditto.
4697
4698 * config/moxie/moxie.c (moxie_expand_prologue): Use dec
4699 instruction to allocate stack space.
4700
4701 2009-09-09 Segher Boessenkool <segher@kernel.crashing.org>
4702
4703 * config/rs6000/rs6000.md (bswapdi2_64bit): Fix
4704 unnecessarily stringent constraints. Fix address
4705 calculation in the splitters.
4706
4707 2009-09-09 Uros Bizjak <ubizjak@gmail.com>
4708
4709 PR rtl-optimization/39779
4710 * expr.c (convert_modes): Return when mode == oldmode after
4711 CONST_INTs are processed.
4712
4713 2009-09-09 Kai Tietz <kai.tietz@onevision.com>
4714
4715 PR/41315
4716 * config/i386.c (ix86_can_use_return_insn_p): Check for padding0, too.
4717 (ix86_expand_prologue): Take frame.padding0 into logic of
4718 to_allocate checks.
4719 (ix86_expand_epilogue): Likewise.
4720
4721 2009-09-09 Jakub Jelinek <jakub@redhat.com>
4722
4723 * config/t-slibgcc-elf-ver (SHLIB_MAKE_SOLINK, SHLIB_INSTALL_SOLINK):
4724 New variables.
4725 (SHLIB_LINK, SHLIB_INSTALL): Use them.
4726 * config/t-slibgcc-libgcc: New file.
4727 * config.gcc (powerpc*-*-linux*, powerpc*-*-gnu*): Use it.
4728
4729 2009-09-09 Martin Jambor <mjambor@suse.cz>
4730
4731 PR tree-optimization/41089
4732 * tree-sra.c (find_var_candidates): Do not consider va_lists in
4733 early SRA.
4734
4735 2009-09-09 Richard Henderson <rth@redhat.com>
4736
4737 * gimple.h (CASE_GIMPLE_OMP): New.
4738 (is_gimple_omp): Use it.
4739 * tree-cfg.c (is_ctrl_altering_stmt): Likewise.
4740 (verify_gimple_debug): Likewise.
4741
4742 2009-09-09 Richard Guenther <rguenther@suse.de>
4743
4744 PR tree-optimization/41101
4745 * tree-ssa-pre.c (maximal_set): Remove.
4746 (compute_antic_aux): Treat the maximal set as implicitly all ones.
4747 Defer all blocks we didn't visit at least one successor.
4748 (add_to_exp_gen): Do not add to the maximal set.
4749 (make_values_for_phi): Likewise.
4750 (compute_avail): Likewise.
4751 (init_pre): Do not allocate the maximal set.
4752 (execute_pre): Do not dump it.
4753
4754 2009-09-09 Martin Jambor <mjambor@suse.cz>
4755
4756 * tree-cfg.c (verify_gimple_phi): Check that gimple_phi_result is
4757 an SSA_NAME rather than a is_gimple_variable.
4758
4759 2009-09-09 Richard Guenther <rguenther@suse.de>
4760
4761 PR middle-end/41317
4762 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Remove
4763 code dealing with plain pointer bases.
4764 (maybe_fold_offset_to_reference): Likewise.
4765 (maybe_fold_stmt_addition): Adjust.
4766
4767 2009-09-09 Richard Guenther <rguenther@suse.de>
4768
4769 * tree.c (free_lang_data_in_type): Do not free the type variant
4770 chains.
4771 (free_lang_data): Merge char_type_node with its properly signed
4772 variant.
4773 (pass_ipa_free): Collect after freeing language specific data.
4774
4775 2009-09-09 Michael Matz <matz@suse.de>
4776
4777 PR middle-end/41268
4778 * cfgexpand.c (expand_gimple_stmt_1): Use an int for storing
4779 SUBREG_PROMOTED_UNSIGNED_P, instead of a bool.
4780 * rtl.h (struct rtx, SUBREG_PROMOTED_UNSIGNED_P): Update comments
4781 to reflect reality.
4782
4783 2009-09-08 DJ Delorie <dj@redhat.com>
4784
4785 * config/mep/mep.c (conversions[]): Add "ml" pattern.
4786
4787 2009-09-04 Jason Merrill <jason@redhat.com>
4788
4789 * tree.c (tree_find_value): Remove.
4790 * tree.h: Remove prototype.
4791 * varasm.c (assemble_external): Use value_member instead.
4792
4793 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
4794
4795 * toplev.c (process_options): Choose default debugging type when
4796 gtoggle enables debug info and type is unset.
4797
4798 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
4799
4800 PR debug/41276
4801 PR debug/41307
4802 * cselib.c (cselib_expand_value_rtx_1): Don't return copy of
4803 invalid subreg.
4804
4805 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
4806
4807 * configure: Rebuilt with modified libtool.m4.
4808
4809 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
4810
4811 PR debug/41229
4812 PR debug/41291
4813 PR debug/41300
4814 * tree-ssa.c (execute_update_addresses_taken): Update debug insns.
4815
4816 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
4817
4818 * tree-ssa-loop-ivopts.c (get_phi_with_result): Remove.
4819 (remove_statement): Likewise.
4820 (rewrite_use_nonlinear_expr): Adjust.
4821 (remove_unused_ivs): Collect SSA NAMEs to remove and call...
4822 * tree-ssa.c (release_defs_bitset): ... this. New.
4823 * tree-flow.h (release_defs_bitset): Declare.
4824
4825 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
4826
4827 PR debug/41232
4828 * tree-ssa-phiopt.c (minmax_replacement): Skip debug stmts
4829 in the middle block.
4830
4831 2009-09-08 Kai Tietz <kai.tietz@onevision.com>
4832
4833 * tree-ssa-reassoc.c (find_operand_rank): Cast pointer
4834 via intptr_t to long type.
4835 (insert_operand_rank): Cast long type via intptr_t to
4836 pointer type.
4837 * genattrtab.c (RTL_HASH): Use intptr_t to cast from
4838 pointer to scalar.
4839 * c-pretty-print.c (pp_c_tree_decl_identifier): Cast
4840 from pointer to unsigned via uintptr_t.
4841
4842 * configure.ac (GCC_STDINT_TYPES): Initialize intptr_t,
4843 uintptr_t, HAVE_INTTYPES_H, HAVE_STDINT_H, HAVE_UINTPTR_T,
4844 and HAVE_INTPTR_T.
4845 * configure: Regenerated.
4846 * config.in: Regenerated
4847 * system.h (stdint.h): Add include.
4848 (inttypes.h): Likewise.
4849 * Makefile.in (aclocal): Add config/stdint.m4.
4850 * aclocal.m4: Regenerated.
4851
4852 2009-09-08 Bernd Schmidt <bernd.schmidt@analog.com>
4853
4854 * config/bfin/bfin.c (np_check_regno, np_after_branch): New static
4855 variables.
4856 (note_np_check_stores): New function.
4857 (harmless_null_pointer_p): New function.
4858 (trapping_loads_p): New args NP_REG and AFTER_NP_BRANCH. Callers
4859 changed. Take into account whether we're in the shadow of a condjump
4860 that tested NP_REG for NULL.
4861 Lose all code that tested for SEQUENCEs.
4862 (workaround_speculation): Avoid inserting NOPs for loads that are
4863 either always executed or a NULL pointer.
4864
4865 2009-09-08 Jan Hubicka <jh@suse.cz>
4866
4867 * doc/invoke.texi (early-inlining-insns): Reduce from 12 to 8.
4868 * params.def (early-inlining-insns): Likewise.
4869
4870 2009-09-08 Jakub Jelinek <jakub@redhat.com>
4871
4872 PR rtl-optimization/41239
4873 * sched-int.h (struct deps): Add last_function_call_may_noreturn field.
4874 * sched-rgn.c (deps_join): Join also last_function_call_may_noreturn
4875 lists.
4876 * sched-deps.c (sched_analyze_insn): Prevent moving trapping insns
4877 across calls, as the calls might not always return normally.
4878 (call_may_noreturn_p): New function.
4879 (deps_analyze_insn): Update last_function_call_may_noreturn list.
4880 (init_deps): Initialize it.
4881 (remove_from_deps): Also remove calls from
4882 last_function_call_may_noreturn list.
4883
4884 2009-09-07 Richard Henderson <rth@redhat.com>
4885
4886 * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't assume there are
4887 more VR->OPERANDS than LHS operands. Free LHS before returning.
4888
4889 2009-09-07 Bernd Schmidt <bernd.schmidt@analog.com>
4890
4891 * config/bfin/bfin.md (UNSPEC_VOLATILE_STALL): New constant.
4892 (attr "addrtype"): New member "spreg".
4893 Use it if mem_spfp_address_operand is true for the address.
4894 (attr "type"): New entry "stall".
4895 (cpu_unit "load"): New.
4896 (insn_reservations "load32", "loadp", "loadi"): Add reservation of
4897 "load".
4898 (insn_reservation "loadsp"): New.
4899 (insn_reservation "load_stall1"): New.
4900 (insn_reservation "load_stall3"): New.
4901 (stall): New insn.
4902 * config/bfin/predicates.md (const1_operand, const3_operand): New.
4903 (mem_p_address_operand): Exclude stack and frame pointer based
4904 addresses.
4905 (mem_spfp_address_operand): New; match them here.
4906 * config/bfin/bfin.c (add_sched_insns_for_speculation): New function.
4907 (bfin_reorg): Call it if scheduling insns.
4908 (bfin_gen_bundles): Remove dummy insns created by
4909 add_sched_insns_for_speculation.
4910
4911 From Jie Zhang <jie.zhang@analog.com>:
4912 * config/bfin/bfin-protos.h (enum bfin_cpu_type, bfin_cpu_type,
4913 bfin_si_revision, bfin_workarounds): Move these ...
4914 * config/bfin/bfin.h: ... here.
4915
4916 From Mike Frysinger <michael.frysinger@analog.com>
4917 * config/bfin/bfin-protos.h (bfin_cpu_type): Add BFIN_CPU_BF542M,
4918 BFIN_CPU_BF544M, BFIN_CPU_BF547M, BFIN_CPU_BF548M, and BFIN_CPU_BF549M.
4919 * config/bfin/bfin.c (bfin_cpus[]): Add 0.3 for bf542m, bf544m,
4920 bf547m, bf548m, and bf549m.
4921 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define __ADSPBF542M__
4922 for BFIN_CPU_BF542M, __ADSPBF544M__ for BFIN_CPU_BF544M,
4923 __ADSPBF547M__ for BFIN_CPU_BF547M, __ADSPBF548M__ for
4924 BFIN_CPU_BF548M, and __ADSPBF549M__ for BFIN_CPU_BF549M.
4925 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
4926 bf542m-none, bf544m-none, bf547m-none, bf548m-none, and bf549m-none.
4927 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
4928 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
4929 * doc/invoke.texi (Blackfin Options): Document that -mcpu now accepts
4930 bf542m, bf544m, bf547m, bf548m, and bf549m.
4931
4932 From Jie Zhang <jie.zhang@analog.com>:
4933 * config/bfin/predicates.md (p_register_operand): New predicate.
4934 (dp_register_operand): New predicate.
4935 * config/bfin/bfin-protos.h (WA_05000074): Define.
4936 (ENABLE_WA_05000074): Define.
4937 * config/bfin/bfin.c (bfin_cpus[]): Add WA_05000074 for all cpus.
4938 (bfin_gen_bundles): Put dsp32shiftimm instruction in slot[0].
4939 * config/bfin/bfin.md (define_attr type): Add dsp32shiftimm.
4940 (define_attr addrtype): Allow load/store register to be P register.
4941 (define_attr storereg): New.
4942 (define_cpu_unit anomaly_05000074): New.
4943 (define_insn_reservation dsp32shiftimm): New.
4944 (define_insn_reservation dsp32shiftimm_anomaly_05000074): New.
4945 (define_insn_reservation loadp): Cannot use slot2.
4946 (define_insn_reservation loadsp): Cannot use slot2.
4947 (define_insn_reservation storep): Cannot use slot2. Does not
4948 apply when working around 05000074.
4949 (define_insn_reservation storep_anomaly_05000074): New.
4950 (define_insn_reservation storei): Does not apply when working
4951 around 05000074.
4952 (define_insn_reservation storei_anomaly_05000074): New.
4953 (define_attr length): Add dsp32shiftimm case.
4954 (define_insn movsi_insn32, movsi_insv, ashlsi3_insn, ashrsi3,
4955 ror_one, rol_one, lshrsi3, lshrpdi3, ashrpdi3, movhiv2hi_low,
4956 movhiv2hi_high, composev2hi, packv2hi, movv2hi_hi,
4957 ssashiftv2hi3, ssashifthi3, ssashiftsi3, lshiftv2hi3, lshifthi3):
4958 Set type as dsp32shiftimm for dsp32shiftimm alternatives.
4959
4960 2009-09-07 Martin Jambor <mjambor@suse.cz>
4961
4962 PR middle-end/41282
4963 * tree-sra.c (create_artificial_child_access): Return NULL if
4964 build_ref_for_offset fails.
4965 (propagate_subacesses_accross_link): Allow build_ref_for_offset
4966 and create_artificial_child_access to fail.
4967
4968 2009-09-06 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
4969
4970 PR c++/41214
4971 * unwind-dw2.c (uw_init_context_1): Mark noinline.
4972 * config/ia64/unwind-ia64.c (uw_init_context_1): Likewise.
4973 * config/xtensa/unwind-dw2-xtensa.c (uw_init_context_1): Likewise.
4974
4975 2009-09-07 Bernd Schmidt <bernd.schmidt@analog.com>
4976
4977 * config/bfin/bfin.c (bfin_optimize_loop): When creating a new basic
4978 block, ensure it has an exit edge. Emit a barrier after a jump.
4979
4980 2009-09-07 Nick Clifton <nickc@redhat.com>
4981
4982 * gcc.c (this_is_linker_script): New variable. Like
4983 this_is_library_file but for the %T constructor.
4984 (end_going_arg): If this_is_linker_script is set then locate the
4985 script and insert a --script switch before it
4986 (do_spec_2): Initialise this_is_linker_script.
4987 (do_spec_1): Likewise. Handle %T construct.
4988 (eval_spec_function): Preserve this_is_linker_script.
4989 * doc/invoke.texi: Document %T construct in spec files.
4990 * config/m32c/m32c.h (LIB_SPEC): Use it.
4991
4992 2009-09-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4993
4994 * rtl.h (PREFETCH_SCHEDULE_BARRIER_P): New macro.
4995 * sched-deps.c (sched_analyze_2): Make prefetches a hard barrier
4996 when volatile flag is set.
4997 * doc/rtl.texi (PREFETCH_SCHEDULE_BARRIER_P): Add documentation pieces.
4998
4999 2009-09-06 Eric Botcazou <ebotcazou@adacore.com>
5000
5001 PR bootstrap/41241
5002 * combine-stack-adj.c (try_apply_stack_adjustment): Handle stores.
5003 (combine_stack_adjustments_for_block): Allow insns between stack
5004 adjustments and stores with corresponding pre-(dec|inc)rement or
5005 pre-modify operation.
5006
5007 2009-09-06 Jakub Jelinek <jakub@redhat.com>
5008
5009 PR bootstrap/41241
5010 * combine-stack-adj.c (struct csa_memlist): Rename to...
5011 (struct csa_reflist): ... this. Rename mem field to ref.
5012 (free_csa_memlist): Rename to...
5013 (free_csa_reflist): ... this.
5014 (record_one_stack_memref): Rename to...
5015 (record_one_stack_ref): ... this. Handle also REG_P.
5016 (try_apply_stack_adjustment): Handle also REG_P.
5017 (struct record_stack_memrefs_data): Rename to...
5018 (struct record_stack_refs_data): ... this. Rename memlist field to
5019 reflist.
5020 (record_stack_memrefs): Rename to...
5021 (record_stack_refs): ... this. For DEBUG_INSNs keep traversing
5022 subexpressions instead of failing when a MEM contains SP references.
5023 For SP itself in DEBUG_INSNs queue it also onto reflist chain.
5024 (combine_stack_adjustments_for_block): Adjust for mem to ref renaming.
5025
5026 2009-09-06 Richard Guenther <rguenther@suse.de>
5027
5028 PR middle-end/41144
5029 * tree.c (build_array_type): Do not record types marked
5030 with structural equality in the canonical type hashtable.
5031
5032 2009-09-06 Richard Guenther <rguenther@suse.de>
5033
5034 PR middle-end/41261
5035 * tree-ssa-alias.c (refs_may_alias_p_1): Bail out for function decls.
5036
5037 2009-09-05 Richard Guenther <rguenther@suse.de>
5038
5039 PR middle-end/41181
5040 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Use the correct type.
5041
5042 2009-09-05 Richard Guenther <rguenther@suse.de>
5043
5044 PR debug/41273
5045 * tree-ssa-operands.c (get_tmr_operands): Pass through opf_no_vops.
5046
5047 2009-09-05 Richard Guenther <rguenther@suse.de>
5048
5049 PR middle-end/41271
5050 * tree-ssa.c (useless_type_conversion_p): Drop qualifiers
5051 before comparing function argument types.
5052
5053 2009-09-05 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
5054
5055 PR target/41024
5056 * config/i386/mingw-w64.h (ASM_SPEC): Pass -v instead of -V to
5057 the assembler.
5058
5059 2009-09-04 Uros Bizjak <ubizjak@gmail.com>
5060
5061 Revert:
5062 2009-08-18 Uros Bizjak <ubizjak@gmail.com>
5063
5064 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn
5065 locators before emit_insn is called.
5066
5067 2009-09-04 Vladimir Makarov <vmakarov@redhat.com>
5068
5069 PR bootstrap/41241
5070 * ira.c (update_equiv_reg): Revert my previous patch for the PR.
5071 * reginfo.c (resize_reg_info): Call allocate_reg_info if necessary.
5072 (reginfo_init): Don't call allocate_reg_info.
5073
5074 2009-09-04 Uros Bizjak <ubizjak@gmail.com>
5075
5076 PR target/41262
5077 * config/alpha/alpha.c (alpha_does_function_need_gp): Use
5078 NONDEBUG_INSN_P instead of INSN_P.
5079
5080 2009-09-04 Alexandre Oliva <aoliva@redhat.com>
5081
5082 PR debug/41225
5083 * tree-vect-stmts.c (vect_stmt_relevant_p): Skip debug uses.
5084
5085 2009-09-04 Alexandre Oliva <aoliva@redhat.com>
5086
5087 PR target/41252
5088 * config/arm/vfp.md (*cmpdf_split_vfp): Fix src mode in the second
5089 pattern of the split.
5090
5091 2009-09-04 Alexandre Oliva <aoliva@redhat.com>
5092
5093 * toplev.c (process_options): Move setter of flag_var_tracking
5094 before other tests that depend on it. Move down setter of
5095 flag_rename_registers. Don't enable var-tracking-assignments
5096 by default if selective scheduling is enabled. Warn if both
5097 are enabled.
5098
5099 2009-09-04 Alexandre Oliva <aoliva@redhat.com>
5100
5101 * var-tracking.c (dv_is_decl_p): Adjust NULL behavior to match
5102 comment. Use switch statement to catch overlaps between rtx
5103 and tree codes. Accept FUNCTION_DECLs in addition to those in...
5104 (IS_DECL_CODE): ... here. Remove.
5105 (check_value_is_not_decl): Remove.
5106 (dv_from_decl, dv_from_value): Check after conversion.
5107
5108 2009-09-04 Richard Guenther <rguenther@suse.de>
5109
5110 PR middle-end/41257
5111 * (cgraph_finalize_compilation_unit): Move finalizing aliases
5112 after emitting tunks. Move emitting thunks and ctors from ...
5113 (cgraph_optimize): ... here. Remove redundant
5114 cgraph_analyze_functions.
5115 * varasm.c (find_decl_and_mark_needed): Remove no longer
5116 necessary check.
5117 (finish_aliases_1): Adjust check for thunk aliases.
5118
5119 2009-09-04 Daniel Gutson <dgutson@codesourcery.com>
5120
5121 * config/arm/arm.md (ctzsi2): Added braces
5122 to avoid warning that broke booststrap.
5123
5124 2009-09-04 Martin Jambor <mjambor@suse.cz>
5125
5126 PR tree-optimization/41112
5127 * tree-sra.c (build_ref_for_offset_1): Signal that we cannot
5128 handle variable-bounded arrays.
5129 (expr_with_var_bounded_array_refs_p): New function.
5130 (analyze_access_subtree): Call expr_with_var_bounded_array_refs_p.
5131
5132 2009-09-04 Wolfgang Gellerich <gellerich@de.ibm.com>
5133
5134 * config/s390/2097.md: Removed two incorrect bypasses.
5135 (z10_fsimpdf): Fixed latency.
5136 (z10_fhex): New insn_reservation.
5137 (z10_floaddf): Fixed latency.
5138 (z10_floadsf): Fixed latency.
5139 (z10_ftrunctf): Fixed latency.
5140 (z10_ftruncdf): Fixed latency.
5141 * config/s390/s390.c (z10_cost): Fixed values.
5142 (s390_adjust_priority): Added z10 path.
5143 * config/s390/s390.md (type): Added fhex.
5144 (*mov<mode>_64dfp): Updated type attribute.
5145 (*mov<mode>_64): Updated type attribute.
5146 (*mov<mode>_31): Updated type attribute.
5147 (*mov<mode>"): Likewise.
5148 * config/s390/2084.md (x_fsimpdf): Updated condition.
5149
5150 2009-09-04 Andreas Krebbel <krebbel1@de.ibm.com>
5151
5152 * config/s390/s390.md ("*fmadd<mode>", "*fmsub<mode>"): Enable mem
5153 RTXs in the predicate for operand 1.
5154
5155 2009-09-03 Daniel Gutson <dgutson@codesourcery.com>
5156
5157 * config/arm/arm.md (UNSPEC_RBIT): New constant.
5158 (rbitsi2): New insn.
5159 (ctzsi2): New expand.
5160 * config/arm/arm.h (CTZ_DEFINED_VALUE_AT_ZERO): New macro.
5161
5162 2009-09-03 Martin Jambor <mjambor@suse.cz>
5163
5164 * tree-sra.c (duplicate_expr_for_different_base): Removed.
5165 (create_artificial_child_access): Use build_ref_for_offset instead
5166 of duplicate_expr_for_different_base.
5167 (propagate_subacesses_accross_link): Likewise.
5168
5169 2009-09-03 Richard Sandiford <rdsandiford@googlemail.com>
5170
5171 * config/mips/mips.c (USEFUL_INSN_P): Use NONDEBUG_INSN_P instead
5172 of INSN_P.
5173 (mips16e_collect_argument_saves): Skip debug instructions.
5174 (mips_74k_agen_init): Use CALL_P || JUMP_P instead of !NONJUMP_INSN_P.
5175 (mips16_lay_out_constants): Use USEFUL_INSN_P instead of INSN_P.
5176 (r10k_insert_cache_barriers): Likewise.
5177 (mips_reorg_process_insns): Likewise.
5178
5179 2009-09-03 Vladimir Makarov <vmakarov@redhat.com>
5180
5181 PR bootstrap/41241
5182 * ira.c (update_equiv_reg): Remove check on class likely spill.
5183
5184 2009-09-03 Jakub Jelinek <jakub@redhat.com>
5185
5186 PR debug/41236
5187 * dwarf2out.c (loc_descriptor): Don't use SUBREG_REG macro on
5188 SIGN_EXTEND or ZERO_EXTEND. Don't assume there is a REG inside of
5189 it or SUBREG.
5190
5191 PR debug/41238
5192 * function.c (assign_parm_find_stack_rtl): Don't set mem attributes on
5193 the stack slot if it is passed by invisible reference.
5194 * var-tracking.c (vt_add_function_parameters): Handle arguments passed
5195 by invisible reference.
5196
5197 2009-09-03 Bernd Schmidt <bernd.schmidt@analog.com>
5198
5199 * config/bfin/linux.h (TARGET_SUPPORTS_SYNC_CALLS): Define to 1.
5200 * config/bfin/uclinux.h (TARGET_SUPPORTS_SYNC_CALLS): Define to 1.
5201 * config/bfin/bfin.h (TARGET_SUPPORTS_SYNC_CALLS): Provide default of
5202 0.
5203 * config/bfin/sync.md: New file.
5204 * config/bfin/bfin.md: Include it.
5205 (UNSPEC_ATOMIC): New.
5206 (UNSPEC_ONES): Provide a unique number.
5207
5208 From Jie Zhang <jie.zhang@analog.com>:
5209 * config/bfin/bfin.c (ret_regs): New.
5210 (must_save_fp_p): Don't return true because of frame_pointer_needed.
5211 (must_save_rets_p): New.
5212 (n_regs_saved_by_prologue): Use must_save_rets_p instead of
5213 current_function_is_leaf.
5214 (do_link): Likewise.
5215 (do_unlink): Likewise.
5216 (expand_interrupt_handler_prologue): Use ret_regs array.
5217 (expand_interrupt_handler_epilogue): Use ret_regs array and
5218 pass return register to gen_return_internal.
5219 (bfin_expand_epilogue): Pass return register to
5220 gen_return_internal.
5221 (bfin_expand_call): Explicitly clobber RETS.
5222 * config/bfin/bfin.h (FUNCTION_RETURN_REGISTERS): Define.
5223 * config/bfin/bfin.md (call_symbol_fdpic, call_value_symbol_fdpic,
5224 call_insn_fdpic, call_value_insn_fdpic, call_symbol,
5225 call_value_symbol, call_insn, call_value_insn): Explicitly clobber
5226 RETS.
5227 (return_internal): Take a reg rtx rather than the register number.
5228
5229 2009-09-03 H.J. Lu <hongjiu.lu@intel.com>
5230
5231 * tree-parloops.c (parallelize_loops): Cast to HOST_WIDE_INT
5232 when comparing against estimated_loop_iterations_int return.
5233
5234 2009-09-03 Richard Guenther <rguenther@suse.de>
5235
5236 * dwarf2out.c (dwarf2out_do_cfi_asm): Remove check of
5237 eh_personality_libfunc.
5238
5239 2009-09-03 Razya Ladelsky <razya@il.ibm.com>
5240
5241 * tree-parloops.c (separate_decls_in_region): Add space.
5242
5243 2009-09-03 Razya Ladelsky <razya@il.ibm.com>
5244
5245 * tree-parloops.c (separate_decls_in_region): Change the condition
5246 checking if there are reductions in the loop.
5247
5248 2009-09-03 Razya Ladelsky <razya@il.ibm.com>
5249
5250 PR tree-optimization/38275
5251 * tree-parloops.c (parallelize_loops): Replace profitability condition
5252 for expected number of iterations.
5253
5254 2009-09-03 Alexandre Oliva <aoliva@redhat.com>
5255
5256 * doc/invoke.texi (BUILD_CONFIG): Document --with-build-config.
5257 (bootstrap-debug): Explain conditions in which it becomes default.
5258 (bootstrap-debug-big): Rather than duplicate bootstrap-debug,
5259 make it add to it.
5260
5261 2009-09-03 Namhyung Kim <namhyung@gmail.com>
5262
5263 * doc/invoke.texi (Optimize Options): Move
5264 -finline-small-functions to the -O2 list.
5265
5266 2009-09-03 Alexandre Oliva <aoliva@redhat.com>
5267
5268 * toplev.c (process_options): Enable var-tracking-assignments
5269 by default if var-tracking is enabled.
5270
5271 2009-09-02 David Daney <ddaney@caviumnetworks.com>
5272
5273 * cfgbuild.c (find_bb_boundaries): Split blocks containing a
5274 barrier.
5275 * emit-rtl.c (prev_nonnote_insn_bb): New function.
5276 * rtl.h (prev_nonnote_insn_bb): Declare it.
5277
5278 2009-09-03 Diego Novillo <dnovillo@google.com>
5279
5280 * cgraph.c (cgraph_node_for_decl): New.
5281 * cgraph.h (cgraph_node_for_decl): Declare.
5282 * tree.c (host_integerp): Return 0 if T is NULL.
5283
5284 2009-09-03 Diego Novillo <dnovillo@google.com>
5285
5286 * tree.h (struct alias_pair): Move from varasm.c.
5287 (alias_pairs): Likewise.
5288 (TYPE_MAXVAL): Define.
5289 (TYPE_MINVAL): Define.
5290 (iterative_hash_host_wide_int): Declare.
5291 (remove_unreachable_alias_pairs): Declare.
5292 * tree-pass.h (pass_ipa_free_lang_data): Declare.
5293 * diagnostic.c (default_diagnostic_starter): Make extern.
5294 (default_diagnostic_finalizer): Make extern.
5295 * diagnostic.h (default_diagnostic_starter): Declare.
5296 (default_diagnostic_finalizer): Declare.
5297 (default_tree_printer): Declare.
5298 * toplev.c (default_tree_printer): Make extern.
5299
5300 2009-09-03 Richard Guenther <rguenther@suse.de>
5301 Diego Novillo <dnovillo@google.com>
5302
5303 * cgraph.c (cgraph_add_new_function): Remove gimplification.
5304 * cgraphunit.c (cgraph_expand_function): Do not emit
5305 associated thunks from here.
5306 (cgraph_emit_thunks): New.
5307 (cgraph_optimize): Call it.
5308 Return if any IPA pass finds an error.
5309 * varasm.c (finish_aliases_1): Ignore errorneous aliases used
5310 by thunks.
5311
5312 2009-09-03 Simon Baldwin <simonb@google.com>
5313 Rafael Espindola <espindola@google.com>
5314 Richard Guenther <rguenther@suse.de>
5315 Doug Kwan <dougkwan@google.com>
5316 Diego Novillo <dnovillo@google.com>
5317
5318 * tree.c: Include tree-pass.h, langhooks-def.h,
5319 diagnostic.h, cgraph.h, timevar.h, except.h and debug.h.
5320 (free_lang_data_in_type): New.
5321 (need_assembler_name_p): New.
5322 (free_lang_data_in_block): New.
5323 (free_lang_data_in_decl): New.
5324 (struct free_lang_data_d): New.
5325 (add_tree_to_fld_list): New.
5326 (find_decls_types_r): New.
5327 (get_eh_types_for_runtime): New.
5328 (find_decls_types_in_eh_region): New.
5329 (find_decls_types_in_node): New.
5330 (find_decls_types_in_var): New.
5331 (free_lang_data_in_cgraph): New.
5332 (free_lang_data): New.
5333 (gate_free_lang_data): New.
5334 (pass_ipa_free_lang_data): New.
5335
5336 2009-09-03 Diego Novillo <dnovillo@google.com>
5337
5338 * timevar.def (TV_IPA_FREE_LANG_DATA): Define.
5339 * langhooks.h (struct lang_hooks): Add field free_lang_data.
5340 (lang_hooks): Remove const qualifier.
5341 * ipa.c (cgraph_remove_unreachable_nodes): Call
5342 remove_unreachable_alias_pairs.
5343 * except.c (add_type_for_runtime): Check if TYPE has
5344 already been converted.
5345 (lookup_type_for_runtime): Likewise.
5346 (check_handled): Handle converted types.
5347 * varasm.c (remove_unreachable_alias_pairs): New.
5348 * gimple.c: Include demangle.h.
5349 (gimple_decl_printable_name): New.
5350 (gimple_fold_obj_type_ref): New.
5351 * gimple.h (gimple_decl_printable_name): Declare.
5352 (gimple_fold_obj_type_ref): Declare.
5353 * passes.c (init_optimization_passes): Add pass
5354 pass_ipa_free_lang_data.
5355 * langhooks-def.h (LANG_HOOKS_FREE_LANG_DATA): Define.
5356 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_FREE_LANG_DATA.
5357
5358 2009-09-03 Diego Novillo <dnovillo@google.com>
5359
5360 * c-lang.c (lang_hooks): Remove const qualifier.
5361
5362 2009-09-02 Loren James Rittle <ljrittle@acm.org>
5363
5364 * doc/install.texi (*-*-freebsd*): Update target information.
5365
5366 2009-09-02 Anatoly Sokolov <aesok@post.ru>
5367
5368 * hard-reg-set.h (call_fixed_regs): Remove.
5369 * reginfo.c (call_fixed_regs): Remove.
5370 (init_reg_sets_1): Remove initialization of call_fixed_regs.
5371 (globalize_reg): Don't use call_fixed_regs.
5372 * caller-save.c (init_caller_save): Use call_fixed_reg_set instead of
5373 call_fixed_regs.
5374
5375 2009-09-01 Michael Matz <matz@suse.de>
5376
5377 * expr.h (emit_storent_insn, expand_expr_real_1,
5378 expand_expr_real_2): Declare.
5379 * expr.c (emit_storent_insn, expand_expr_real_1,
5380 expand_expr_real_2): Export.
5381 (store_expr): Setting and evaluating dont_return_target is useless.
5382 (expand_expr_real_1, <case GOTO_EXPR, RETURN_EXPR, SWITCH_EXPR,
5383 LABEL_EXPR and ASM_EXPR>): Move to gcc_unreachable.
5384 * except.c (expand_resx_expr): Rename to ...
5385 (expand_resx_stmt): ... this. Rewrite to take gimple statement.
5386 * except.h (expand_resx_stmt): Declare.
5387 * stmt.c: Add include gimple.h
5388 (expand_asm_expr): Rename to ...
5389 (expand_asm_stmt): ... this. Rewrite to take gimple statement.
5390 (expand_case): Rewrite to take gimple statement.
5391 * tree.h (expand_asm_stmt): Declare.
5392 (expand_case): Change prototype.
5393 * Makefile.in (stmt.o): Depend on gimple.h.
5394 * builtins.c (expand_builtin_synchronize): Build gimple asm
5395 statement, not an ASM_EXPR.
5396 * cfgexpand.c (gimple_cond_pred_to_tree, set_expr_location_r,
5397 gimple_to_tree, release_stmt_tree): Remove.
5398 (expand_gimple_cond): Don't call gimple_cond_pred_to_tree or
5399 ggc_free, but hold comparison code and operands separately.
5400 Call jumpif_1 and jumpifnot_1 instead of jumpif and jumpifnot.
5401 (expand_call_stmt, expand_gimple_stmt_1,
5402 expand_gimple_stmt): New helpers.
5403 (expand_gimple_tailcall): Don't call gimple_to_tree, expand_expr_stmt,
5404 release_stmt_tree. Call expand_gimple_stmt instead.
5405 (expand_gimple_basic_block): Ditto.
5406
5407 * calls.c (emit_call_1): Don't look at EH regions here, make
5408 fntree parameter useless.
5409 (expand_call): New local rettype for TREE_TYPE(exp), use it
5410 throughout. Remove local p, use addr instead.
5411 Don't look at EH regions here.
5412
5413 2009-09-02 Vladimir Makarov <vmakarov@redhat.com>
5414
5415 * doc/invoke.texi (-fsched-pressure): Document it.
5416 (-fsched-reg-pressure-heuristic): Remove it.
5417
5418 * reload.c (ira.h): Include.
5419 (find_reloads): Add choosing reload on number of small spilled
5420 classes.
5421
5422 * haifa-sched.c (ira.h): Include.
5423 (sched_pressure_p, sched_regno_cover_class, curr_reg_pressure,
5424 saved_reg_pressure, curr_reg_live, saved_reg_live,
5425 region_ref_regs): New variables.
5426 (sched_init_region_reg_pressure_info, mark_regno_birth_or_death,
5427 initiate_reg_pressure_info, setup_ref_regs,
5428 initiate_bb_reg_pressure_info, save_reg_pressure,
5429 restore_reg_pressure, dying_use_p, print_curr_reg_pressure): New
5430 functions.
5431 (setup_insn_reg_pressure_info): New function.
5432 (rank_for_schedule): Add pressure checking and insn issue time.
5433 Remove comparison of insn reg weights.
5434 (ready_sort): Set insn reg pressure info.
5435 (update_register_pressure, setup_insn_max_reg_pressure,
5436 update_reg_and_insn_max_reg_pressure,
5437 sched_setup_bb_reg_pressure_info): New functions.
5438 (schedule_insn): Add code for printing and updating reg pressure info.
5439 (find_set_reg_weight, find_insn_reg_weight): Remove.
5440 (ok_for_early_queue_removal): Do nothing if pressure_only_p.
5441 (debug_ready_list): Print reg pressure info.
5442 (schedule_block): Ditto. Check insn issue time.
5443 (sched_init): Set up sched_pressure_p. Allocate and set up some
5444 reg pressure related info.
5445 (sched_finish): Free some reg pressure related info.
5446 (fix_tick_ready): Make insn always ready if pressure_p.
5447 (init_h_i_d): Don't call find_insn_reg_weight.
5448 (haifa_finish_h_i_d): Free insn reg pressure info.
5449
5450 * ira-int.h (ira_hard_regno_cover_class, ira_reg_class_nregs,
5451 ira_memory_move_cost, ira_class_hard_regs,
5452 ira_class_hard_regs_num, ira_no_alloc_regs,
5453 ira_available_class_regs, ira_reg_class_cover_size,
5454 ira_reg_class_cover, ira_class_translate): Move to ira.h.
5455
5456 * ira-lives.c (single_reg_class): Check mode to find how many
5457 registers are necessary for operand.
5458 (ira_implicitly_set_insn_hard_regs): New.
5459
5460 * common.opt (fsched-pressure): New options.
5461 (fsched-reg-pressure-heuristic): Remove.
5462
5463 * ira.c (setup_eliminable_regset): Rename to
5464 ira_setup_eliminable_regset. Make it external.
5465 (expand_reg_info): Pass cover class to setup_reg_classes.
5466 (ira): Call resize_reg_info instead of allocate_reg_info.
5467
5468 * sched-deps.c: Include ira.h.
5469 (implicit_reg_pending_clobbers, implicit_reg_pending_uses): New.
5470 (create_insn_reg_use, create_insn_reg_set, setup_insn_reg_uses,
5471 reg_pressure_info, insn_use_p, mark_insn_pseudo_birth,
5472 mark_insn_hard_regno_birth, mark_insn_reg_birth,
5473 mark_pseudo_death, mark_hard_regno_death, mark_reg_death,
5474 mark_insn_reg_store, mark_insn_reg_clobber,
5475 setup_insn_reg_pressure_info): New.
5476 (sched_analyze_1): Update implicit_reg_pending_uses.
5477 (sched_analyze_insn): Find implicit sets, uses, clobbers of regs.
5478 Use them to create dependencies. Set insn reg uses and pressure
5479 info. Process reg_pending_uses in one place.
5480 (free_deps): Free implicit sets.
5481 (remove_from_deps): Remove implicit sets if necessary. Check
5482 implicit sets when clearing reg_last_in_use.
5483 (init_deps_global): Clear implicit_reg_pending_clobbers and
5484 implicit_reg_pending_uses.
5485
5486 * ira.h (ira_hard_regno_cover_class, ira_reg_class_nregs,
5487 ira_memory_move_cost, ira_class_hard_regs,
5488 ira_class_hard_regs_num, ira_no_alloc_regs,
5489 ira_available_class_regs, ira_reg_class_cover_size,
5490 ira_reg_class_cover, ira_class_translate): Move from ira-int.h.
5491 (ira_setup_eliminable_regset, ira_set_pseudo_classes,
5492 ira_implicitly_set_insn_hard_regs): New prototypes.
5493
5494 * ira-costs.c (pseudo_classes_defined_p, allocno_p,
5495 cost_elements_num): New variables.
5496 (allocno_costs, total_costs): Rename to costs and
5497 total_allocno_costs.
5498 (COSTS_OF_ALLOCNO): Rename to COSTS.
5499 (allocno_pref): Rename to pref.
5500 (allocno_pref_buffer): Rename to pref_buffer.
5501 (common_classes): Rename to regno_cover_class.
5502 (COST_INDEX): New.
5503 (record_reg_classes): Set allocno attributes only if allocno_p.
5504 (record_address_regs): Ditto. Use COST_INDEX instead of ALLOCNO_NUM.
5505 (scan_one_insn): Use COST_INDEX and COSTS instead of ALLOCNO_NUM
5506 and COSTS_OF_ALLOCNO.
5507 (print_costs): Rename to print_allocno_costs.
5508 (print_pseudo_costs): New.
5509 (process_bb_node_for_costs): Split into 2 functions with new
5510 function process_bb_for_costs. Pass BB to process_bb_for_costs.
5511 (find_allocno_class_costs): Rename to find_costs_and_classes. Add
5512 new parameter dump_file. Use cost_elements_num instead of
5513 ira_allocnos_num. Make one iteration if preferred classes were
5514 already calculated for scheduler. Make 2 versions of code
5515 depending on allocno_p.
5516 (setup_allocno_cover_class_and_costs): Check allocno_p. Use
5517 regno_cover_class and COSTS instead of common_classes and
5518 COSTS_OF_ALLOCNO.
5519 (init_costs, finish_costs): New.
5520 (ira_costs): Set up allocno_p and cost_elements_num. Call
5521 init_costs and finish_costs.
5522 (ira_set_pseudo_classes): New.
5523
5524 * rtl.h (allocate_reg_info): Remove.
5525 (resize_reg_info): Change return type.
5526 (reg_cover_class): New.
5527 (setup_reg_classes): Add new parameter.
5528
5529 * sched-int.h (struct deps_reg): New member implicit_sets.
5530 (sched_pressure_p, sched_regno_cover_class): New external definitions.
5531 (INCREASE_BITS): New macro.
5532 (struct reg_pressure_data, struct reg_use_data): New.
5533 (struct _haifa_insn_data): Remove reg_weight. Add members
5534 reg_pressure, reg_use_list, reg_set_list, and
5535 reg_pressure_excess_cost_change.
5536 (struct deps): New member implicit_sets.
5537 (pressure_p): New variable.
5538 (COVER_CLASS_BITS, INCREASE_BITS): New macros.
5539 (struct reg_pressure_data, struct reg_use_data): New.
5540 (INSN_REG_WEIGHT): Remove.
5541 (INSN_REG_PRESSURE, INSN_MAX_REG_PRESSURE, INSN_REG_USE_LIST,
5542 INSN_REG_SET_LIST, INSN_REG_PRESSURE_EXCESS_COST_CHANGE): New macros.
5543 (sched_init_region_reg_pressure_info,
5544 sched_setup_bb_reg_pressure_info): New prototypes.
5545
5546 * reginfo.c (struct reg_pref): New member coverclass.
5547 (reg_cover_class): New function.
5548 (reginfo_init, pass_reginfo_init): Move after free_reg_info.
5549 (reg_info_size): New variable.
5550 (allocate_reg_info): Make static. Setup reg_info_size.
5551 (resize_reg_info): Use reg_info_size. Return flag of resizing.
5552 (setup_reg_classes): Add a new parameter. Setup cover class too.
5553
5554 * Makefile.in (reload.o, haifa-sched.o, sched-deps.o): Add ira.h to
5555 the dependencies.
5556
5557 * sched-rgn.c (deps_join): Set up implicit_sets.
5558 (schedule_region): Set up region and basic blocks pressure
5559 relative info.
5560
5561 * passes.c (init_optimization_passes): Move
5562 pass_subregs_of_mode_init before pass_sched.
5563
5564 2009-09-02 Martin Jambor <mjambor@suse.cz>
5565
5566 * tree-sra.c (struct access): New field grp_hint.
5567 (dump_access): Dump grp_hint.
5568 (sort_and_splice_var_accesses): Set grp_hint if a group is read
5569 multiple times.
5570 (analyze_access_subtree): Only scalarize accesses with grp_hint set or
5571 those which have been specifically read and somehow written to.
5572 (propagate_subacesses_accross_link): Set grp_hint of right child and
5573 also possibly of the left child.
5574
5575 2009-09-02 Jakub Jelinek <jakub@redhat.com>
5576
5577 * tree-object-size.c (addr_object_size): Always use object_size_type
5578 0 or 2 when determining the pointer pointed object size.
5579
5580 2009-09-02 Richard Guenther <rguenther@suse.de>
5581
5582 Revert
5583 2009-08-31 Richard Guenther <rguenther@suse.de>
5584
5585 * builtins.c (fold_builtin_memory_op): Use the alias oracle
5586 to query if the memory regions for memmove overlap.
5587 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Relax the
5588 asserts on pointers, instead deal with odd trees.
5589 (ptr_derefs_may_alias_p): Likewise.
5590 (refs_may_alias_p_1): Constructor bases also never alias.
5591
5592 2009-08-01 Christian Bruel <christian.bruel@st.com>
5593
5594 Revert:
5595 2009-07-31 Christian Bruel <christian.bruel@st.com>
5596 * gcc/config.gcc (sh*-*-elf): test with_libgloss.
5597
5598 2009-09-01 Alexandre Oliva <aoliva@redhat.com>
5599
5600 * doc/invoke.texi (-fvar-tracking-assignments): New.
5601 (-fvar-tracking-assignments-toggle): New.
5602 (-fdump-final-insns=file): Mark filename as optional.
5603 (--param min-nondebug-insn-uid): New.
5604 (-gdwarf-@{version}): Mention version 4.
5605 * opts.c (common_handle_option): Accept it.
5606 * tree-vrp.c (find_assert_locations_1): Skip debug stmts.
5607 * regrename.c (regrename_optimize): Drop last. Don't count debug
5608 insns as uses. Don't reject change because of debug insn.
5609 (do_replace): Reject DEBUG_INSN as chain starter. Take base_regno
5610 from the chain starter, and check for inexact matches in DEBUG_INSNS.
5611 (scan_rtx_reg): Accept inexact matches in DEBUG_INSNs.
5612 (build_def_use): Simplify and fix the marking of DEBUG_INSNs.
5613 * sched-ebb.c (schedule_ebbs): Skip boundary debug insns.
5614 * fwprop.c (forward_propagate_and_simplify): ...into debug insns.
5615 * doc/gimple.texi (is_gimple_debug): New.
5616 (gimple_debug_bind_p): New.
5617 (is_gimple_call, gimple_assign_cast_p): End sentence with period.
5618 * doc/install.texi (bootstrap-debug): More details.
5619 (bootstrap-debug-big, bootstrap-debug-lean): Document.
5620 (bootstrap-debug-lib): More details.
5621 (bootstrap-debug-ckovw): Update.
5622 (bootstrap-time): New.
5623 * tree-into-ssa.c (mark_def_sites): Skip debug stmts.
5624 (insert_phi_nodes_for): Insert debug stmts.
5625 (rewrite_stmt): Take iterator. Insert debug stmts.
5626 (rewrite_enter_block): Adjust.
5627 (maybe_replace_use_in_debug_stmt): New.
5628 (rewrite_update_stmt): Use it.
5629 (mark_use_interesting): Return early for debug stmts.
5630 * tree-ssa-loop-im.c (rewrite_bittest): Propagate DEFs into debug
5631 stmts before replacing stmt.
5632 (move_computations_stmt): Likewise.
5633 * ira-conflicts.c (add_copies): Skip debug insns.
5634 * regstat.c (regstat_init_n_sets_and_refs): Discount debug insns.
5635 (regstat_bb_compute_ri): Skip debug insns.
5636 * tree-ssa-threadupdate.c (redirection_block_p): Skip debug stmts.
5637 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt,
5638 check_loop_closed_ssa_stmt): Skip debug stmts.
5639 * tree-tailcall.c (find_tail_calls): Likewise.
5640 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
5641 * tree.h (MAY_HAVE_DEBUG_STMTS): New.
5642 (build_var_debug_value_stat): Declare.
5643 (build_var_debug_value): Define.
5644 (target_for_debug_bind): Declare.
5645 * reload.c (find_equiv_reg): Skip debug insns.
5646 * rtlanal.c (reg_used_between_p): Skip debug insns.
5647 (side_effects_p): Likewise.
5648 (canonicalize_condition): Likewise.
5649 * ddg.c (create_ddg_dep_from_intra_loop_link): Check that non-debug
5650 insns never depend on debug insns.
5651 (create_ddg_dep_no_link): Likewise.
5652 (add_cross_iteration_register_deps): Use ANTI_DEP for debug insns.
5653 Don't add inter-loop dependencies for debug insns.
5654 (build_intra_loop_deps): Likewise.
5655 (create_ddg): Count debug insns.
5656 * ddg.h (struct ddg::num_debug): New.
5657 (num_backargs): Pair up with previous int field.
5658 * diagnostic.c (diagnostic_report_diagnostic): Skip notes on
5659 -fcompare-debug-second.
5660 * final.c (get_attr_length_1): Skip debug insns.
5661 (rest_of_clean-state): Don't dump CFA_RESTORE_STATE.
5662 * gcc.c (invoke_as): Call compare-debug-dump-opt.
5663 (driver_self_specs): Map -fdump-final-insns to
5664 -fdump-final-insns=..
5665 (get_local_tick): New.
5666 (compare_debug_dump_opt_spec_function): Test for . argument and
5667 compute output name. Compute temp output spec without flag name.
5668 Compute -frandom-seed.
5669 (OPT): Undef after use.
5670 * cfgloopanal.c (num_loop_insns): Skip debug insns.
5671 (average_num_loop_insns): Likewise.
5672 * params.h (MIN_NONDEBUG_INSN_UID): New.
5673 * gimple.def (GIMPLE_DEBUG): New.
5674 * ipa-reference.c (scan_stmt_for_static_refs): Skip debug stmts.
5675 * auto-inc-dec.c (merge_in_block): Skip debug insns.
5676 (merge_in_block): Fix whitespace.
5677 * toplev.c (flag_var_tracking): Update comment.
5678 (flag_var_tracking_assignments): New.
5679 (flag_var_tracking_assignments_toggle): New.
5680 (process_options): Don't open final insns dump file if we're not
5681 going to write to it. Compute defaults for var_tracking.
5682 * df-scan.c (df_insn_rescan_debug_internal): New.
5683 (df_uses_record): Handle debug insns.
5684 * haifa-sched.c (ready): Initialize n_debug.
5685 (contributes_to_priority): Skip debug insns.
5686 (dep_list_size): New.
5687 (priority): Use it.
5688 (rank_for_schedule): Likewise. Schedule debug insns as soon as
5689 they're ready. Disregard previous debug insns to make decisions.
5690 (queue_insn): Never queue debug insns.
5691 (ready_add, ready_remove_first, ready_remove): Count debug insns.
5692 (schedule_insn): Don't reject debug insns because of issue rate.
5693 (get_ebb_head_tail, no_real_insns_p): Skip boundary debug insns.
5694 (queue_to_ready): Skip and discount debug insns.
5695 (choose_ready): Let debug insns through.
5696 (schedule_block): Check boundary debug insns. Discount debug
5697 insns, schedule them early. Adjust whitespace.
5698 (set_priorities): Check for boundary debug insns.
5699 (add_jump_dependencies): Use dep_list_size.
5700 (prev_non_location_insn): New.
5701 (check_cfg): Use it.
5702 * tree-ssa-loop-ivopts.c (find-interesting_users): Skip debug
5703 stmts.
5704 (remove_unused_ivs): Reset debug stmts.
5705 * modulo-sched.c (const_iteration_count): Skip debug insns.
5706 (res_MII): Discount debug insns.
5707 (loop_single_full_bb_p): Skip debug insns.
5708 (sms_schedule): Likewise.
5709 (sms_schedule_by_order): Likewise.
5710 (ps_has_conflicts): Likewise.
5711 * caller-save.c (refmarker_fn): New.
5712 (save_call_clobbered_regs): Replace regs with saved mem in
5713 debug insns.
5714 (mark_referenced_regs): Take pointer, mark and arg. Adjust.
5715 Call refmarker_fn mark for hardregnos.
5716 (mark_reg_as_referenced): New.
5717 (replace_reg_with_saved_mem): New.
5718 * ipa-pure-const.c (check_stmt): Skip debug stmts.
5719 * cse.c (cse_insn): Canonicalize debug insns. Skip them when
5720 searching back.
5721 (cse_extended_basic_block): Skip debug insns.
5722 (count_reg_usage): Likewise.
5723 (is_dead_reg): New, split out of...
5724 (set_live_p): ... here.
5725 (insn_live_p): Use it for debug insns.
5726 * tree-stdarg.c (check_all_va_list_escapes): Skip debug stmts.
5727 (execute_optimize_stdarg): Likewise.
5728 * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
5729 * tree-ssa-propagate.c (substitute_and_fold): Don't regard
5730 changes in debug stmts as changes.
5731 * sel-sched.c (moving_insn_creates_bookkeeping_block_p): New.
5732 (moveup_expr): Don't move across debug insns. Don't move
5733 debug insn if it would create a bookkeeping block.
5734 (moveup_expr_cached): Don't use cache for debug insns that
5735 are heads of blocks.
5736 (compute_av_set_inside_bb): Skip debug insns.
5737 (sel_rank_for_schedule): Schedule debug insns first. Remove
5738 dead code.
5739 (block_valid_for_bookkeeping_p); Support lax searches.
5740 (create_block_for_bookkeeping): Adjust block numbers when
5741 encountering debug-only blocks.
5742 (find_place_for_bookkeeping): Deal with debug-only blocks.
5743 (generate_bookkeeping_insn): Accept no place to insert.
5744 (remove_temp_moveop_nops): New argument full_tidying.
5745 (prepare_place_to_insert): Deal with debug insns.
5746 (advance_state_on_fence): Debug insns don't start cycles.
5747 (update_boundaries): Take fence as argument. Deal with
5748 debug insns.
5749 (schedule_expr_on_boundary): No full_tidying on debug insns.
5750 (fill_insns): Deal with debug insns.
5751 (track_scheduled_insns_and_blocks): Don't count debug insns.
5752 (need_nop_to_preserve_insn_bb): New, split out of...
5753 (remove_insn_from_stream): ... this.
5754 (fur_orig_expr_not_found): Skip debug insns.
5755 * rtl.def (VALUE): Move up.
5756 (DEBUG_INSN): New.
5757 * tree-ssa-sink.c (all_immediate_uses_same_place): Skip debug stmts.
5758 (nearest_common_dominator_of_uses): Take debug_stmts argument.
5759 Set it if debug stmts are found.
5760 (statement_sink_location): Skip debug stmts. Propagate
5761 moving defs into debug stmts.
5762 * ifcvt.c (first_active_insn): Skip debug insns.
5763 (last_active_insns): Likewise.
5764 (cond_exec_process_insns): Likewise.
5765 (noce_process_if_block): Likewise.
5766 (check_cond_move_block): Likewise.
5767 (cond_move_convert_if_block): Likewise.
5768 (block_jumps_and_fallthru_p): Likewise.
5769 (dead_or_predicable): Likewise.
5770 * dwarf2out.c (debug_str_hash_forced): New.
5771 (find_AT_string): Add comment.
5772 (gen_label_for_indirect_string): New.
5773 (get_debug_string_label): New.
5774 (AT_string_form): Use it.
5775 (mem_loc_descriptor): Handle non-TLS symbols. Handle MINUS , DIV,
5776 MOD, AND, IOR, XOR, NOT, ABS, NEG, and CONST_STRING. Accept but
5777 discard COMPARE, IF_THEN_ELSE, ROTATE, ROTATERT, TRUNCATE and
5778 several operations that cannot be represented with DWARF opcodes.
5779 (loc_descriptor): Ignore SIGN_EXTEND and ZERO_EXTEND. Require
5780 dwarf_version 4 for DW_OP_implicit_value and DW_OP_stack_value.
5781 (dwarf2out_var_location): Take during-call mark into account.
5782 (output_indirect_string): Update comment. Output if there are
5783 label and references.
5784 (prune_indirect_string): New.
5785 (prune_unused_types): Call it if debug_str_hash_forced.
5786 More in dwarf2out.c, from Jakub Jelinek <jakub@redhat.com>:
5787 (dw_long_long_const): Remove.
5788 (struct dw_val_struct): Change val_long_long type to rtx.
5789 (print_die, attr_checksum, same_dw_val_p, loc_descriptor): Adjust for
5790 val_long_long change to CONST_DOUBLE rtx from a long hi/lo pair.
5791 (output_die): Likewise. Use HOST_BITS_PER_WIDE_INT size of each
5792 component instead of HOST_BITS_PER_LONG.
5793 (output_loc_operands): Likewise. For const8* assert
5794 HOST_BITS_PER_WIDE_INT rather than HOST_BITS_PER_LONG is >= 64.
5795 (output_loc_operands_raw): For const8* assert HOST_BITS_PER_WIDE_INT
5796 rather than HOST_BITS_PER_LONG is >= 64.
5797 (add_AT_long_long): Remove val_hi and val_lo arguments, add
5798 val_const_double.
5799 (size_of_die): Use HOST_BITS_PER_WIDE_INT size multiplier instead of
5800 HOST_BITS_PER_LONG for dw_val_class_long_long.
5801 (add_const_value_attribute): Adjust add_AT_long_long caller. Don't
5802 handle TLS SYMBOL_REFs. If CONST wraps a constant, tail recurse.
5803 (dwarf_stack_op_name): Handle DW_OP_implicit_value and
5804 DW_OP_stack_value.
5805 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
5806 Handle DW_OP_implicit_value.
5807 (extract_int): Move prototype earlier.
5808 (mem_loc_descriptor): For SUBREG punt if inner
5809 mode size is wider than DWARF2_ADDR_SIZE. Handle SIGN_EXTEND
5810 and ZERO_EXTEND by DW_OP_shl and DW_OP_shr{a,}. Handle
5811 EQ, NE, GT, GE, LT, LE, GTU, GEU, LTU, LEU, SMIN, SMAX, UMIN,
5812 UMAX, SIGN_EXTRACT, ZERO_EXTRACT.
5813 (loc_descriptor): Compare mode size with DWARF2_ADDR_SIZE
5814 instead of Pmode size.
5815 (loc_descriptor): Add MODE argument. Handle CONST_INT, CONST_DOUBLE,
5816 CONST_VECTOR, CONST, LABEL_REF and SYMBOL_REF if mode != VOIDmode,
5817 attempt to handle other expressions. Don't handle TLS SYMBOL_REFs.
5818 (concat_loc_descriptor, concatn_loc_descriptor,
5819 loc_descriptor_from_tree_1): Adjust loc_descriptor callers.
5820 (add_location_or_const_value_attribute): Likewise. For single
5821 location loc_lists attempt to use add_const_value_attribute
5822 for constant decls. Add DW_AT_const_value even if
5823 NOTE_VAR_LOCATION is VAR_LOCATION with CONSTANT_P or CONST_STRING
5824 in its expression.
5825 * cfgbuild.c (inside_basic_block_p): Handle debug insns.
5826 (control_flow_insn_p): Likewise.
5827 * tree-parloops.c (eliminate_local_variables_stmt): Handle debug stmt.
5828 (separate_decls_in_region_debug_bind): New.
5829 (separate_decls_in_region): Process debug bind stmts afterwards.
5830 * recog.c (verify_changes): Handle debug insns.
5831 (extract_insn): Likewise.
5832 (peephole2_optimize): Skip debug insns.
5833 * dse.c (scan_insn): Skip debug insns.
5834 * sel-sched-ir.c (return_nop_to_pool): Take full_tidying argument.
5835 Pass it on.
5836 (setup_id_for_insn): Handle debug insns.
5837 (maybe_tidy_empty_bb): Adjust whitespace.
5838 (tidy_control_flow): Skip debug insns.
5839 (sel_remove_insn): Adjust for debug insns.
5840 (sel_estimate_number_of_insns): Skip debug insns.
5841 (create_insn_rtx_from_pattern): Handle debug insns.
5842 (create_copy_of_insn_rtx): Likewise.
5843 * sel-sched-.h (sel_bb_end): Declare.
5844 (sel_bb_empty_or_nop_p): New.
5845 (get_all_loop_exits): Use it.
5846 (_eligible_successor_edge_p): Likewise.
5847 (return_nop_to_pool): Adjust.
5848 * tree-eh.c (tre_empty_eh_handler_p): Skip debug stmts.
5849 * ira-lives.c (process_bb_node_lives): Skip debug insns.
5850 * gimple-pretty-print.c (dump_gimple_debug): New.
5851 (dump_gimple_stmt): Use it.
5852 (dump_bb_header): Skip gimple debug stmts.
5853 * regmove.c (optimize_reg_copy_1): Discount debug insns.
5854 (fixup_match_2): Likewise.
5855 (regmove_backward_pass): Likewise. Simplify combined
5856 replacement. Handle debug insns.
5857 * function.c (instantiate_virtual_regs): Handle debug insns.
5858 * function.h (struct emit_status): Add x_cur_debug_insn_uid.
5859 * print-rtl.h: Include cselib.h.
5860 (print_rtx): Print VALUEs. Split out and recurse for VAR_LOCATIONs.
5861 * df.h (df_inns_rescan_debug_internal): Declare.
5862 * gcse.c (alloc_hash_table): Estimate n_insns.
5863 (cprop_insn): Don't regard debug insns as changes.
5864 (bypass_conditional_jumps): Skip debug insns.
5865 (one_pre_gcse_pass): Adjust.
5866 (one_code_hoisting_pass): Likewise.
5867 (compute_ld_motion_mems): Skip debug insns.
5868 (one_cprop_pass): Adjust.
5869 * tree-if-conv.c (tree_if_convert_stmt): Reset debug stmts.
5870 (if_convertible_stmt_p): Handle debug stmts.
5871 * init-regs.c (initialize_uninitialized_regs): Skip debug insns.
5872 * tree-vect-loop.c (vect_is_simple_reduction): Skip debug stmts.
5873 * ira-build.c (create_bb_allocnos): Skip debug insns.
5874 * tree-flow-inline.h (has_zero_uses): Discount debug stmts.
5875 (has_single_use): Likewise.
5876 (single_imm_use): Likewise.
5877 (num_imm_uses): Likewise.
5878 * tree-ssa-phiopt.c (empty_block_p): Skip debug stmts.
5879 * tree-ssa-coalesce.c (build_ssa_conflict_graph): Skip debug stmts.
5880 (create_outofssa_var_map): Likewise.
5881 * lower-subreg.c (adjust_decomposed_uses): New.
5882 (resolve_debug): New.
5883 (decompose_multiword_subregs): Use it.
5884 * tree-dfa.c (find_referenced_vars): Skip debug stmts.
5885 * emit-rtl.c: Include params.h.
5886 (cur_debug_insn_uid): Define.
5887 (set_new_first_and_last_insn): Set cur_debug_insn_uid too.
5888 (copy_rtx_if_shared_1): Handle debug insns.
5889 (reset_used_flags): Likewise.
5890 (set_used_flags): LIkewise.
5891 (get_max_insn_count): New.
5892 (next_nondebug_insn): New.
5893 (prev_nondebug_insn): New.
5894 (make_debug_insn_raw): New.
5895 (emit_insn_before_noloc): Handle debug insns.
5896 (emit_jump_insn_before_noloc): Likewise.
5897 (emit_call_insn_before_noloc): Likewise.
5898 (emit_debug_insn_before_noloc): New.
5899 (emit_insn_after_noloc): Handle debug insns.
5900 (emit_jump_insn_after_noloc): Likewise.
5901 (emit_call_insn_after_noloc): Likewise.
5902 (emit_debug_insn_after_noloc): Likewise.
5903 (emit_insn_after): Take loc from earlier non-debug insn.
5904 (emit_jump_insn_after): Likewise.
5905 (emit_call_insn_after): Likewise.
5906 (emit_debug_insn_after_setloc): New.
5907 (emit_debug_insn_after): New.
5908 (emit_insn_before): Take loc from later non-debug insn.
5909 (emit_jump_insn_before): Likewise.
5910 (emit_call_insn_before): Likewise.
5911 (emit_debug_insn_before_setloc): New.
5912 (emit_debug_insn_before): New.
5913 (emit_insn): Handle debug insns.
5914 (emit_debug_insn): New.
5915 (emit_jump_insn): Handle debug insns.
5916 (emit_call_insn): Likewise.
5917 (emit): Likewise.
5918 (init_emit): Take min-nondebug-insn-uid into account.
5919 Initialize cur_debug_insn_uid.
5920 (emit_copy_of_insn_after): Handle debug insns.
5921 * cfgexpand.c (gimple_assign_rhs_to_tree): Do not overwrite
5922 location of single rhs in place.
5923 (maybe_dump_rtl_for_gimple_stmt): Dump lineno.
5924 (floor_sdiv_adjust): New.
5925 (cell_sdiv_adjust): New.
5926 (cell_udiv_adjust): New.
5927 (round_sdiv_adjust): New.
5928 (round_udiv_adjust): New.
5929 (wrap_constant): Moved from cselib.
5930 (unwrap_constant): New.
5931 (expand_debug_expr): New.
5932 (expand_debug_locations): New.
5933 (expand_gimple_basic_block): Drop hiding redeclaration. Expand
5934 debug bind stmts.
5935 (gimple_expand_cfg): Expand debug locations.
5936 * cselib.c: Include tree-pass.h.
5937 (struct expand_value_data): New.
5938 (cselib_record_sets_hook): New.
5939 (PRESERVED_VALUE_P, LONG_TERM_PRESERVED_VALUE_P): New.
5940 (cselib_clear_table): Move, and implemnet in terms of...
5941 (cselib_reset_table_with_next_value): ... this.
5942 (cselib_get_next_unknown_value): New.
5943 (discard_useless_locs): Don't discard preserved values.
5944 (cselib_preserve_value): New.
5945 (cselib_preserved_value_p): New.
5946 (cselib_preserve_definitely): New.
5947 (cselib_clear_preserve): New.
5948 (cselib_preserve_only_values): New.
5949 (new_cselib_val): Take rtx argument. Dump it in details.
5950 (cselib_lookup_mem): Adjust.
5951 (expand_loc): Take regs_active in struct. Adjust. Silence
5952 dumps unless details are requested.
5953 (cselib_expand_value_rtx_cb): New.
5954 (cselib_expand_value_rtx): Rename and reimplment in terms of...
5955 (cselib_expand_value_rtx_1): ... this. Adjust. Silence dumps
5956 without details. Copy more subregs. Try to resolve values
5957 using a callback. Wrap constants.
5958 (cselib_subst_to_values): Adjust.
5959 (cselib_log_lookup): New.
5960 (cselib_lookup): Call it.
5961 (cselib_invalidate_regno): Don't count preserved values as useless.
5962 (cselib_invalidate_mem): Likewise.
5963 (cselib_record_set): Likewise.
5964 (struct set): Renamed to cselib_set, moved to cselib.h.
5965 (cselib_record_sets): Adjust. Call hook.
5966 (cselib_process_insn): Reset table when it would be cleared.
5967 (dump_cselib_val): New.
5968 (dump_cselib_table): New.
5969 * tree-cfgcleanup.c (tree_forwarded_block_p): Skip debug stmts.
5970 (remove_forwarder_block): Support moving debug stmts.
5971 * cselib.h (cselib_record_sets_hook): Declare.
5972 (cselib_expand_callback): New type.
5973 (cselib_expand_value_rtx_cb): Declare.
5974 (cselib_reset_table_with_next_value): Declare.
5975 (cselib_get_next_unknown_value): Declare.
5976 (cselib_preserve_value): Declare.
5977 (cselib_preserved_value_p): Declare.
5978 (cselib_preserve_only_values): Declare.
5979 (dump_cselib_table): Declare.
5980 * cfgcleanup.c (flow_find_cross_jump): Skip debug insns.
5981 (try_crossjump_to_edge): Likewise.
5982 (delete_unreachable_blocks): Remove dominant GIMPLE blocks after
5983 dominated blocks when debug stmts are present.
5984 * simplify-rtx.c (delegitimize_mem_from_attrs): New.
5985 * tree-ssa-live.c (remove_unused_locals): Skip debug stmts.
5986 (set_var_live_on_entry): Likewise.
5987 * loop-invariant.c (find_invariants_bb): Skip debug insns.
5988 * cfglayout.c (curr_location, last_location): Make static.
5989 (set_curr_insn_source_location): Don't avoid bouncing.
5990 (get_curr_insn_source_location): New.
5991 (get_curr_insn_block): New.
5992 (duplicate_insn_chain): Handle debug insns.
5993 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Propagate
5994 into debug stmts.
5995 * common.opt (fcompare-debug): Move to sort order.
5996 (fdump-unnumbered-links): Likewise.
5997 (fvar-tracking-assignments): New.
5998 (fvar-tracking-assignments-toggle): New.
5999 * tree-ssa-dce.c (mark_stmt_necessary): Don't mark blocks
6000 because of debug stmts.
6001 (mark_stmt_if_obviously_necessary): Mark debug stmts.
6002 (eliminate_unnecessary_stmts): Walk dominated blocks before
6003 dominators.
6004 * tree-ssa-ter.c (find_replaceable_in_bb): Skip debug stmts.
6005 * ira.c (memref_used_between_p): Skip debug insns.
6006 (update_equiv_regs): Likewise.
6007 * sched-deps.c (sd_lists_size): Accept empty list.
6008 (sd_init_insn): Mark debug insns.
6009 (sd_finish_insn): Unmark them.
6010 (sd_add_dep): Reject non-debug deps on debug insns.
6011 (fixup_sched_groups): Give debug insns group treatment.
6012 Skip debug insns.
6013 (sched_analyze_reg): Don't mark debug insns for sched before call.
6014 (sched_analyze_2): Handle debug insns.
6015 (sched_analyze_insn): Compute next non-debug insn. Handle debug
6016 insns.
6017 (deps_analyze_insn): Handle debug insns.
6018 (deps_start_bb): Skip debug insns.
6019 (init_deps): Initialize last_debug_insn.
6020 * tree-ssa.c (target_for_debug_bind): New.
6021 (find_released_ssa_name): New.
6022 (propagate_var_def_into_debug_stmts): New.
6023 (propagate_defs_into_debug_stmts): New.
6024 (verify_ssa): Skip debug bind stmts without values.
6025 (warn_uninialized_vars): Skip debug stmts.
6026 * target-def.h (TARGET_DELEGITIMIZE_ADDRESS): Set default.
6027 * rtl.c (rtx_equal_p_cb): Handle VALUEs.
6028 (rtx_equal_p): Likewise.
6029 * ira-costs.c (scan_one_insn): Skip debug insns.
6030 (process_bb_node_for_hard_reg_moves): Likewise.
6031 * rtl.h (DEBUG_INSN_P): New.
6032 (NONDEBUG_INSN_P): New.
6033 (MAY_HAVE_DEBUG_INSNS): New.
6034 (INSN_P): Accept debug insns.
6035 (RTX_FRAME_RELATED_P): Likewise.
6036 (INSN_DELETED_P): Likewise
6037 (PAT_VAR_LOCATION_DECL): New.
6038 (PAT_VAR_LOCATION_LOC): New.
6039 (PAT_VAR_OCATION_STATUS): New.
6040 (NOTE_VAR_LOCATION_DECL): Reimplement.
6041 (NOTE_VAR_LOCATION_LOC): Likewise.
6042 (NOTE_VAR_LOCATION_STATUS): Likewise.
6043 (INSN_VAR_LOCATION): New.
6044 (INSN_VAR_LOCATION_DECL): New.
6045 (INSN_VAR_LOCATION_LOC): New.
6046 (INSN_VAR_LOCATION_STATUS): New.
6047 (gen_rtx_UNKNOWN_VAR_LOC): New.
6048 (VAR_LOC_UNKNOWN_P): New.
6049 (NOTE_DURING_CALL_P): New.
6050 (SCHED_GROUP_P): Accept debug insns.
6051 (emit_debug_insn_before): Declare.
6052 (emit_debug_insn_before_noloc): Declare.
6053 (emit_debug_insn_beore_setloc): Declare.
6054 (emit_debug_insn_after): Declare.
6055 (emit_debug_insn_after_noloc): Declare.
6056 (emit_debug_insn_after_setloc): Declare.
6057 (emit_debug_insn): Declare.
6058 (make_debug_insn_raw): Declare.
6059 (prev_nondebug_insn): Declare.
6060 (next_nondebug_insn): Declare.
6061 (delegitimize_mem_from_attrs): Declare.
6062 (get_max_insn_count): Declare.
6063 (wrap_constant): Declare.
6064 (unwrap_constant): Declare.
6065 (get_curr_insn_source_location): Declare.
6066 (get_curr_insn_block): Declare.
6067 * tree-inline.c (insert_debug_decl_map): New.
6068 (processing_debug_stmt): New.
6069 (remap_decl): Don't create new mappings in debug stmts.
6070 (remap_gimple_op_r): Don't add references in debug stmts.
6071 (copy_tree_body_r): Likewise.
6072 (remap_gimple_stmt): Handle debug bind stmts.
6073 (copy_bb): Skip debug stmts.
6074 (copy_edges_for_bb): Likewise.
6075 (copy_debug_stmt): New.
6076 (copy_debug_stmts): New.
6077 (copy_body): Copy debug stmts at the end.
6078 (insert_init_debug_bind): New.
6079 (insert_init_stmt): Take id. Skip and emit debug stmts.
6080 (setup_one_parameter): Remap variable earlier, register debug mapping.
6081 (estimate_num_insns): Skip debug stmts.
6082 (expand_call_inline): Preserve debug_map.
6083 (optimize_inline_calls): Check for no debug_stmts left-overs.
6084 (unsave_expr_now): Preserve debug_map.
6085 (copy_gimple_seq_and_replace_locals): Likewise.
6086 (tree_function_versioning): Check for no debug_stmts left-overs.
6087 Init and destroy debug_map as needed. Split edges unconditionally.
6088 (build_duplicate_type): Init and destroy debug_map as needed.
6089 * tree-inline.h: Include gimple.h instead of pointer-set.h.
6090 (struct copy_body_data): Add debug_stmts and debug_map.
6091 * sched-int.h (struct ready_list): Add n_debug.
6092 (struct deps): Add last_debug_insn.
6093 (DEBUG_INSN_SCHED_P): New.
6094 (BOUNDARY_DEBUG_INSN_P): New.
6095 (SCHEDULE_DEBUG_INSN_P): New.
6096 (sd_iterator_cond): Accept empty list.
6097 * combine.c (create_log_links): Skip debug insns.
6098 (combine_instructions): Likewise.
6099 (cleanup_auto_inc_dec): New. From Jakub Jelinek: Make sure the
6100 return value is always unshared.
6101 (struct rtx_subst_pair): New.
6102 (auto_adjust_pair): New.
6103 (propagate_for_debug_subst): New.
6104 (propagate_for_debug): New.
6105 (try_combine): Skip debug insns. Propagate removed defs into
6106 debug insns.
6107 (next_nonnote_nondebug_insn): New.
6108 (distribute_notes): Use it. Skip debug insns.
6109 (distribute_links): Skip debug insns.
6110 * tree-outof-ssa.c (set_location_for_edge): Likewise.
6111 * resource.c (mark_target_live_regs): Likewise.
6112 * var-tracking.c: Include cselib.h and target.h.
6113 (enum micro_operation_type): Add MO_VAL_USE, MO_VAL_LOC, and
6114 MO_VAL_SET.
6115 (micro_operation_type_name): New.
6116 (enum emit_note_where): Add EMIT_NOTE_AFTER_CALL_INSN.
6117 (struct micro_operation_def): Update comments.
6118 (decl_or_value): New type. Use instead of decls.
6119 (struct emit_note_data_def): Add vars.
6120 (struct attrs_def): Use decl_or_value.
6121 (struct variable_tracking_info_def): Add permp, flooded.
6122 (struct location_chain_def): Update comment.
6123 (struct variable_part_def): Use decl_or_value.
6124 (struct variable_def): Make var_part a variable length array.
6125 (valvar_pool): New.
6126 (scratch_regs): New.
6127 (cselib_hook_called): New.
6128 (dv_is_decl_p): New.
6129 (dv_is_value_p): New.
6130 (dv_as_decl): New.
6131 (dv_as_value): New.
6132 (dv_as_opaque): New.
6133 (dv_onepart_p): New.
6134 (dv_pool): New.
6135 (IS_DECL_CODE): New.
6136 (check_value_is_not_decl): New.
6137 (dv_from_decl): New.
6138 (dv_from_value): New.
6139 (dv_htab_hash): New.
6140 (variable_htab_hash): Use it.
6141 (variable_htab_eq): Support values.
6142 (variable_htab_free): Free from the right pool.
6143 (attrs_list_member, attrs_list_insert): Use decl_or_value.
6144 (attrs_list_union): Adjust.
6145 (attrs_list_mpdv_union): New.
6146 (tie_break_pointers): New.
6147 (canon_value_cmp): New.
6148 (unshare_variable): Return possibly-modified slot.
6149 (vars_copy_1): Adjust.
6150 (var_reg_decl_set): Adjust. Split out of...
6151 (var_reg_set): ... this.
6152 (get_init_value): Adjust.
6153 (var_reg_delete_and_set): Adjust.
6154 (var_reg_delete): Adjust.
6155 (var_regno_delete): Adjust.
6156 (var_mem_decl_set): Split out of...
6157 (var_mem_set): ... this.
6158 (var_mem_delete_and_set): Adjust.
6159 (var_mem_delete): Adjust.
6160 (val_store): New.
6161 (val_reset): New.
6162 (val_resolve): New.
6163 (variable_union): Adjust. Speed up merge of 1-part vars.
6164 (variable_canonicalize): Use unshared slot.
6165 (VALUED_RECURSED_INTO): New.
6166 (find_loc_in_1pdv): New.
6167 (struct dfset_merge): New.
6168 (insert_into_intersection): New.
6169 (intersect_loc_chains): New.
6170 (loc_cmp): New.
6171 (canonicalize_loc_order_check): New.
6172 (canonicalize_values_mark): New.
6173 (canonicalize_values_star): New.
6174 (variable_merge_over_cur): New.
6175 (variable_merge_over_src): New.
6176 (dataflow_set_merge): New.
6177 (dataflow_set_equiv_regs): New.
6178 (remove_duplicate_values): New.
6179 (struct dfset_post_merge): New.
6180 (variable_post_merge_new_vals): New.
6181 (variable_post_merge_perm_vals): New.
6182 (dataflow_post_merge_adjust): New.
6183 (find_mem_expr_in_1pdv): New.
6184 (dataflow_set_preserve_mem_locs): New.
6185 (dataflow_set_remove_mem_locs): New.
6186 (dataflow_set_clear_at_call): New.
6187 (onepart_variable_different_p): New.
6188 (variable_different_p): Use it.
6189 (dataflow_set_different_1): Adjust. Make detailed dump more verbose.
6190 (track_expr_p): Add need_rtl parameter. Don't generate rtl
6191 if not needed.
6192 (track_loc_p): Pass it true.
6193 (struct count_use_info): New.
6194 (find_use_val): New.
6195 (replace_expr_with_values): New.
6196 (log_op_type): New.
6197 (use_type): New, partially split out of...
6198 (count_uses): ... this. Count new micro-ops.
6199 (count_uses_1): Adjust.
6200 (count_stores): Adjust.
6201 (count_with_sets): New.
6202 (VAL_NEEDS_RESOLUTION): New.
6203 (VAL_HOLDS_TRACK_EXPR): New.
6204 (VAL_EXPR_IS_COPIED): New.
6205 (VAL_EXPR_IS_CLOBBERED): New.
6206 (add_uses): Adjust. Generate new micro-ops.
6207 (add_uses_1): Adjust.
6208 (add_stores): Generate new micro-ops.
6209 (add_with_sets): New.
6210 (find_src_status): Adjust.
6211 (find_src_set_src): Adjust.
6212 (compute_bb_dataflow): Use dataflow_set_clear_at_call.
6213 Handle new micro-ops. Canonicalize value equivalances.
6214 (vt_find_locations): Compute total size of hash tables for
6215 dumping. Perform merge for var-tracking-assignments. Don't
6216 disregard single-block loops.
6217 (dump_attrs_list): Handle decl_or_value.
6218 (dump_variable): Take variable. Deal with decl_or_value.
6219 (dump_variable_slot): New.
6220 (dump_vars): Use it.
6221 (dump_dataflow_sets): Adjust.
6222 (set_slot_part): New, extended to support one-part variables
6223 after splitting out of...
6224 (set_variable_part): ... this.
6225 (clobber_slot_part): New, split out of...
6226 (clobber_variable_part): ... this.
6227 (delete_slot_part): New, split out of...
6228 (delete_variable_part): .... this.
6229 (check_wrap_constant): New.
6230 (vt_expand_loc_callback): New.
6231 (vt_expand_loc): New.
6232 (emit_note_insn_var_location): Adjust. Handle values. Handle
6233 EMIT_NOTE_AFTER_CALL_INSN.
6234 (emit_notes_for_differences_1): Adjust. Handle values.
6235 (emit_notes_for_differences_2): Likewise.
6236 (emit_notes_for_differences): Adjust.
6237 (emit_notes_in_bb): Take pointer to set. Emit AFTER_CALL_INSN notes.
6238 Adjust. Handle new micro-ops.
6239 (vt_add_function_parameters): Adjust. Create and bind values.
6240 (vt_initialize): Adjust. Initialize scratch_regs and
6241 valvar_pool, flooded and perm.. Initialize and use cselib. Log
6242 operations. Move some code to count_with_sets and add_with_sets.
6243 (delete_debug_insns): New.
6244 (vt_debug_insns_local): New.
6245 (vt_finalize): Release permp, valvar_pool, scratch_regs. Finish
6246 cselib.
6247 (var_tracking_main): If var-tracking-assignments is enabled
6248 but var-tracking isn't, delete debug insns and leave. Likewise
6249 if we exceed limits or fail the stack adjustments tests, and
6250 after all var-tracking processing.
6251 More in var-tracking, from Jakub Jelinek <jakub@redhat.com>:
6252 (dataflow_set): Add traversed_vars.
6253 (value_chain, const_value_chain): New typedefs.
6254 (value_chain_pool, value_chains): New variables.
6255 (value_chain_htab_hash, value_chain_htab_eq, add_value_chain,
6256 add_value_chains, add_cselib_value_chains, remove_value_chain,
6257 remove_value_chains, remove_cselib_value_chains): New functions.
6258 (shared_hash_find_slot_unshare_1, shared_hash_find_slot_1,
6259 shared_hash_find_slot_noinsert_1, shared_hash_find_1): New
6260 static inlines.
6261 (shared_hash_find_slot_unshare, shared_hash_find_slot,
6262 shared_hash_find_slot_noinsert, shared_hash_find): Update.
6263 (dst_can_be_shared): New variable.
6264 (unshare_variable): Unshare set->vars if shared, use shared_hash_*.
6265 Clear dst_can_be_shared. If set->traversed_vars is non-NULL and
6266 different from set->vars, look up slot again instead of using the
6267 passed in slot.
6268 (dataflow_set_init): Initialize traversed_vars.
6269 (variable_union): Use shared_hash_*. Use initially NO_INSERT
6270 lookup if set->vars is shared. Don't keep slot cleared before
6271 calling unshare_variable. Unshare set->vars if needed. Adjust
6272 unshare_variable callers. Clear dst_can_be_shared if needed.
6273 Even ->refcount == 1 vars must be unshared if set->vars is shared
6274 and var needs to be modified.
6275 (dataflow_set_union): Set traversed_vars during canonicalization.
6276 (VALUE_CHANGED, DECL_CHANGED): Define.
6277 (set_dv_changed, dv_changed_p): New static inlines.
6278 (track_expr_p): Clear DECL_CHANGED.
6279 (dump_dataflow_sets): Set it.
6280 (variable_was_changed): Call set_dv_changed.
6281 (emit_note_insn_var_location): Likewise.
6282 (changed_variables_stack): New variable.
6283 (check_changed_vars_1, check_changed_vars_2): New functions.
6284 (emit_notes_for_changes): Do nothing if changed_variables is
6285 empty. Traverse changed_variables with check_changed_vars_1,
6286 call check_changed_vars_2 on each changed_variables_stack entry.
6287 (emit_notes_in_bb): Add SET argument. Just clear it at the
6288 beginning, use it instead of local &set, don't destroy it at the end.
6289 (vt_emit_notes): Call dataflow_set_clear early on all
6290 VTI(bb)->out sets, never use them, instead use emit_notes_in_bb
6291 computed set, dataflow_set_clear also VTI(bb)->in when we are
6292 done with the basic block. Initialize changed_variables_stack,
6293 free it afterwards. If ENABLE_CHECKING verify that after noting
6294 differences to an empty set value_chains hash table is empty.
6295 (vt_initialize): Initialize value_chains and value_chain_pool.
6296 (vt_finalize): Delete value_chains htab, free value_chain_pool.
6297 (variable_tracking_main): Call dump_dataflow_sets before calling
6298 vt_emit_notes, not after it.
6299 * tree-flow.h (propagate_defs_into_debug_stmts): Declare.
6300 (propagate_var_def_into_debug_stmts): Declare.
6301 * df-problems.c (df_lr_bb_local_compute): Skip debug insns.
6302 (df_set_note): Reject debug insns.
6303 (df_whole_mw_reg_dead_p): Take added_notes_p argument. Don't
6304 add notes to debug insns.
6305 (df_note_bb_compute): Adjust. Likewise.
6306 (df_simulate_uses): Skip debug insns.
6307 (df_simulate_initialize_backwards): Likewise.
6308 * reg-stack.c (subst_stack_regs_in_debug_insn): New.
6309 (subst_stack_regs_pat): Reject debug insns.
6310 (convert_regs_1): Handle debug insns.
6311 * Makefile.in (TREE_INLINE_H): Take pointer-set.h from GIMPLE_H.
6312 (print-rtl.o): Depend on cselib.h.
6313 (cselib.o): Depend on TREE_PASS_H.
6314 (var-tracking.o): Depend on cselib.h and TARGET_H.
6315 * sched-rgn.c (rgn_estimate_number_of_insns): Discount debug insns.
6316 (init_ready_list): Skip boundary debug insns.
6317 (add_branch_dependences): Skip debug insns.
6318 (free_block_dependencies): Check for blocks with only debug insns.
6319 (compute_priorities): Likewise.
6320 * gimple.c (gss_for_code): Handle GIMPLE_DEBUG.
6321 (gimple_build_with_ops_stat): Take subcode as unsigned. Adjust
6322 all callers.
6323 (gimple_build_debug_bind_stat): New.
6324 (empty_body_p): Skip debug stmts.
6325 (gimple_has_side_effects): Likewise.
6326 (gimple_rhs_has_side_effects): Likewise.
6327 * gimple.h (enum gimple_debug_subcode, GIMPLE_DEBUG_BIND): New.
6328 (gimple_build_debug_bind_stat): Declare.
6329 (gimple_build_debug_bind): Define.
6330 (is_gimple_debug): New.
6331 (gimple_debug_bind_p): New.
6332 (gimple_debug_bind_get_var): New.
6333 (gimple_debug_bind_get_value): New.
6334 (gimple_debug_bind_get_value_ptr): New.
6335 (gimple_debug_bind_set_var): New.
6336 (gimple_debug_bind_set_value): New.
6337 (GIMPLE_DEBUG_BIND_NOVALUE): New internal temporary macro.
6338 (gimple_debug_bind_reset_value): New.
6339 (gimple_debug_bind_has_value_p): New.
6340 (gsi_next_nondebug): New.
6341 (gsi_prev_nondebug): New.
6342 (gsi_start_nondebug_bb): New.
6343 (gsi_last_nondebug_bb): New.
6344 * sched-vis.c (print_pattern): Handle VAR_LOCATION.
6345 (print_insn): Handle DEBUG_INSN.
6346 * tree-cfg.c (remove_bb): Walk stmts backwards. Let loc
6347 of first insn prevail.
6348 (first_stmt): Skip debug stmts.
6349 (first_non_label_stmt): Likewise.
6350 (last_stmt): Likewise.
6351 (has_zero_uses_1): New.
6352 (single_imm_use_1): New.
6353 (verify_gimple_debug): New.
6354 (verify_types_in_gimple_stmt): Handle debug stmts.
6355 (verify_stmt): Likewise.
6356 (debug_loop_num): Skip debug stmts.
6357 (remove_edge_and_dominated_blocks): Remove dominators last.
6358 * tree-ssa-reasssoc.c (rewrite_expr_tree): Propagate into debug stmts.
6359 (linearize_expr): Likewise.
6360 * config/i386/i386.c (ix86_delegitimize_address): Call
6361 default implementation.
6362 * config/ia64/ia64.c (ia64_safe_itanium_class): Handle debug insns.
6363 (group_barrier_needed): Skip debug insns.
6364 (emit_insn_group_barriers): Likewise.
6365 (emit_all_insn_group_barriers): Likewise.
6366 (ia64_variable_issue): Handle debug insns.
6367 (ia64_dfa_new_cycle): Likewise.
6368 (final_emit_insn_group_barriers): Skip debug insns.
6369 (ia64_dwarf2out_def_steady_cfa): Take frame argument. Don't
6370 def cfa without frame.
6371 (process_set): Likewise.
6372 (process_for_unwind_directive): Pass frame on.
6373 * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
6374 (rs6000_delegitimize_address): New.
6375 (rs6000_debug_adjust_cost): Handle debug insns.
6376 (is_microcoded_insn): Likewise.
6377 (is_cracked_insn): Likewise.
6378 (is_nonpipeline_insn): Likewise.
6379 (insn_must_be_first_in_group): Likewise.
6380 (insn_must_be_last_in_group): Likewise.
6381 (force_new_group): Likewise.
6382 * cfgrtl.c (rtl_split_block): Emit INSN_DELETED note if block
6383 contains only debug insns.
6384 (rtl_merge_blocks): Skip debug insns.
6385 (purge_dead_edges): Likewise.
6386 (rtl_block_ends_with_call_p): Skip debug insns.
6387 * dce.c (deletable_insn_p): Handle VAR_LOCATION.
6388 (mark_reg_dependencies): Skip debug insns.
6389 * params.def (PARAM_MIN_NONDEBUG_INSN_UID): New.
6390 * tree-ssanames.c (release_ssa_name): Propagate def into debug stmts.
6391 * tree-ssa-threadedge.c
6392 (record_temporary_equivalences_from_stmts): Skip debug stmts.
6393 * regcprop.c (replace_oldest_value_addr): Skip debug insns.
6394 (replace_oldest_value_mem): Use ALL_REGS for debug insns.
6395 (copyprop_hardreg_forward_1): Handle debug insns.
6396 * reload1.c (reload): Skip debug insns. Replace unassigned
6397 pseudos in debug insns with their equivalences.
6398 (eliminate_regs_in_insn): Skip debug insns.
6399 (emit_input_reload_insns): Skip debug insns at first, adjust
6400 them later.
6401 * tree-ssa-operands.c (add_virtual_operand): Reject debug stmts.
6402 (get_indirect_ref_operands): Pass opf_no_vops on.
6403 (get_expr_operands): Likewise. Skip debug stmts.
6404 (parse_ssa_operands): Scan debug insns with opf_no_vops.
6405
6406 2009-09-01 Richard Henderson <rth@redhat.com>
6407
6408 * tree-ssa-ccp.c (ccp_initialize): Make sure to simulate
6409 stmt_ends_pp_p statements at least once.
6410 * tree-vrp.c (vrp_initialize): Likewise.
6411 (vrp_visit_stmt): Be prepared for non-interesting stmts.
6412
6413 2009-09-01 Dodji Seketeli <dodji@redhat.com>
6414
6415 PR bootstrap/41205
6416 Fix AIX bootstrap after PR debug/30161
6417 * dwarf2out.c (make_ith_pack_parameter_name): Don't used strnlen
6418 that is a GNU extension.
6419 (tmpl_value_parm_die_table): Move the definition of this global
6420 outside #ifdef DWARF2_DEBUGGING_INFO region.
6421
6422 2009-09-01 Richard Guenther <rguenther@suse.de>
6423
6424 * tree.c (tree_expr_size): New function.
6425 * tree.h (tree_expr_size): Declare.
6426 * rtlanal.c (rtx_addr_can_trap_p_1): Adjust comment.
6427 * builtins.c (fold_builtin_memory_op): Use tree_expr_size.
6428 * langhooks.c (lhd_expr_size): Remove.
6429 * langhooks.h (struct lang_hooks): Remove expr_size.
6430 * explow.c (expr_size): Use tree_expr_size.
6431 (int_expr_size): Likewise.
6432 * langhooks-def.h (lhd_expr_size): Remove.
6433 (LANG_HOOKS_EXPR_SIZE): Likewise.
6434 (LANG_HOOKS_INITIALIZER): Adjust.
6435
6436 2009-09-01 Richard Guenther <rguenther@suse.de>
6437
6438 * tree-flow.h (mark_addressable): Move declaration ...
6439 * tree.h (mark_addressable): ... here.
6440 * stmt.c (expand_asm_operands): Use mark_addressable, not
6441 lang_hooks.mark_addressable.
6442 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Remove
6443 LANG_HOOKS_MARK_ADDRESSABLE.
6444 * langhooks.h (struct lang_hooks): Remove mark_addressable langhook.
6445 * c-objc-common.h (LANG_HOOKS_MARK_ADDRESSABLE): Remove.
6446
6447 2009-08-31 Chris Demetriou <cgd@google.com>
6448
6449 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Never
6450 vectorize if not TARGET_SSE2.
6451
6452 2009-08-31 DJ Delorie <dj@redhat.com>
6453
6454 * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Exclude coprocessor
6455 registers if no coprocessor is enabled.
6456
6457 2009-08-31 Dodji Seketeli <dodji@redhat.com>
6458
6459 PR debug/30161
6460 * cgraph.h (cgraph_get_node): Declare ...
6461 * cgraph.c (cgraph_get_node): ... new function.
6462 * dwarf2out.c (gen_generic_params_dies,
6463 generic_parameter_die, tree_add_const_value_attribute_for_decl,
6464 make_ith_pack_parameter_name,
6465 append_entry_to_tmpl_value_parm_die_table,
6466 gen_remaining_tmpl_value_param_die_attribute): New functions.
6467 (gen_subprogram_die): Generate debug info for template parameters
6468 if debug info level is higher than DINFO_LEVEL_TERSE.
6469 Use tree_add_const_value_attribute_for_decl instead of
6470 tree_add_const_value_attribute.
6471 (gen_const_die): Use tree_add_const_value_attribute_for_decl
6472 instead of tree_add_const_value_attribute.
6473 (gen_struct_or_union_type_die): Generate debug
6474 info for template parameters if debug info level is higher than
6475 DINFO_LEVEL_TERSE.
6476 (tree_add_const_value_attribute): Handle integral and pointer
6477 constants. Update comment.
6478 (dwarf_tag_name): Support DW_TAG_GNU_template_template_param.
6479 (dwarf_attr_name): Support DW_AT_GNU_template_name.
6480 (reference_to_unused): Fix thinko. Remove redundant predicates from
6481 tests.
6482 (tree_add_const_value_attribute): Make this work for constant
6483 expressions only.
6484 tree_add_const_value_attribute_for_decl is to be used for variable
6485 DECLs now.
6486 (add_location_or_const_value_attribute): Use
6487 tree_add_const_value_attribute_for_decl now.
6488 (dwarf2out_finish): Emit the DW_AT_const_value attribute of
6489 DW_TAG_template_value_param DIEs after function DIEs have been
6490 emitted.
6491 * langhooks.h (lang_hooks_for_types): Add
6492 get_argument_pack_elems.
6493 (lang_hooks_for_decls): Add generic_generic_parameter_decl_p.
6494 (lang_hooks): Added get_innermost_generic_parms,
6495 get_innermost_generic_args.
6496 * langhooks-def.h (LANG_HOOKS_GET_INNERMOST_GENERIC_PARMS,
6497 LANG_HOOKS_GET_INNERMOST_GENERIC_ARGS,
6498 LANG_HOOKS_GET_ARGUMENT_PACK_ELEMS,
6499 LANG_HOOKS_GENERIC_GENERIC_PARAMETER_DECL_P): New language hooks.
6500
6501 2009-08-31 DJ Delorie <dj@redhat.com>
6502
6503 * config/mep/mep.c (machine_function): Add frame_locked flag. Set
6504 it once we start generating the prologue or epilogue.
6505 (mep_call_saves_register): If the frame is locked, re-use
6506 cached values.
6507 (mep_assign_save_slots): New, broken out from mep_expand_prologue.
6508 (mep_expand_prologue): Call it.
6509 (mep_expand_epilogue): Likewise.
6510 (mep_start_function): Use the same logic as mep_expand_prologue.
6511 (mep_pass_by_reference): Make logic more readable.
6512 (mep_return_in_memory): Zero-sized objects are passed in memory.
6513 (mep_reorg_noframe): Make sure we have accurate REG_DEAD notes.
6514
6515 2009-08-31 Richard Guenther <rguenther@suse.de>
6516
6517 * builtins.c (fold_builtin_memory_op): Use the alias oracle
6518 to query if the memory regions for memmove overlap.
6519 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Relax the
6520 asserts on pointers, instead deal with odd trees.
6521 (ptr_derefs_may_alias_p): Likewise.
6522 (refs_may_alias_p_1): Constructor bases also never alias.
6523
6524 2009-08-31 Gerald Pfeifer <gerald@pfeifer.com>
6525
6526 * doc/install.texi (Final install): Adjust reference on where to
6527 order printed manuals.
6528
6529 2009-08-30 Olivier Hainque <hainque@adacore.com>
6530
6531 * dwarf2out.c (switch_to_frame_table_section): Move
6532 definition prior to first use.
6533
6534 2009-08-30 Richard Guenther <rguenther@suse.de>
6535
6536 PR tree-optimization/41186
6537 * tree-ssa-alias.c (ptr_deref_may_alias_ref_p): Remove.
6538 (ao_ref_init_from_ptr_and_size): New function.
6539 (ref_maybe_used_by_call_p_1): Be more precise tracking
6540 used ranges for builtin functions.
6541 (ref_maybe_used_by_call_p): Adjust.
6542 (call_may_clobber_ref_p_1): Be more precise tracking clobbered
6543 ranges for builtin functions.
6544 * tree-ssa-alias.h (ao_ref_init_from_ptr_and_size): Declare.
6545
6546 2009-08-30 Alan Modra <amodra@bigpond.net.au>
6547
6548 PR target/41081
6549 * fwprop.c (get_reg_use_in): Delete.
6550 (free_load_extend): New function.
6551 (forward_propagate_subreg): Use it.
6552
6553 2009-08-29 Kaz Kojima <kkojima@gcc.gnu.org>
6554
6555 * config.gcc (sh*-*-elf): Add superh stuff only for sh*-superh-elf.
6556
6557 2009-08-29 Kai Tietz<kai.tietz@onevision.com>
6558
6559 PR/41184
6560 * config/i386.c (ix86_expand_epilogue): Correct stack adjustment for
6561 padding.
6562
6563 2009-08-29 Douglas B Rupp <rupp@gnat.com>
6564
6565 * crtstuff.c (__do_global_dtors_aux): Use atexit if no
6566 fini or fini_array section.
6567
6568 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
6569
6570 * graphite-dependences.c (graphite_legal_transform_bb): Call
6571 pbb_remove_duplicate_pdrs.
6572 * graphite-poly.c (can_collapse_pdr): Removed.
6573 (pdr_find_duplicate): Removed.
6574 (can_collapse_pdrs): New.
6575 (pbb_remove_duplicate_pdrs): New.
6576 (new_poly_dr): Do not look for duplicates.
6577 * graphite-poly.h (struct poly_bb): New field pdr_duplicates_removed.
6578 (PBB_PDR_DUPLICATES_REMOVED): New.
6579 (pbb_remove_duplicate_pdrs): Declared.
6580
6581 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
6582
6583 * graphite-interchange.c (pbb_interchange_profitable_p): Adjust
6584 the strides by multiplying by PDR_NB_REFS.
6585 * graphite-poly.c (can_collapse_pdr): New.
6586 (pdr_find_duplicate): New.
6587 (new_poly_dr): Call pdr_find_duplicate. Collapse duplicate PDRs.
6588 Initialize PDR_NB_REFS.
6589 * graphite-poly.h (struct poly_dr): Add field nb_refs.
6590 (PDR_NB_REFS): New.
6591 (new_poly_dr): Number of subscripts is a graphite_dim_t.
6592
6593 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
6594
6595 PR middle-end/40965
6596 * graphite-poly.c (apply_poly_transforms): Remove legality test before
6597 any transform.
6598
6599 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
6600
6601 * graphite-dependences.c (pddr_original_scattering): Return NULL
6602 for read-read dependence relations.
6603 * graphite-poly.h (enum poly_dr_type): Fix comment.
6604 (pdr_read_p): New.
6605 (pdr_write_p): New.
6606 (pdr_may_write_p): New.
6607
6608 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
6609
6610 * graphite-poly.h (enum POLY_DR_TYPE): Renamed poly_dr_type.
6611 (struct poly_dr): Same.
6612 (new_poly_dr): Same.
6613 * graphite-poly.c (new_poly_dr): Same.
6614 * graphite-dependences.c (dot_deps): Disable call to system.
6615
6616 2009-08-28 Cary Coutant <ccoutant@google.com>
6617
6618 PR debug/41063
6619 * dwarf2out.c (gen_type_die_with_usage): Use proper context for
6620 struct/union/enum types local to a function.
6621
6622 2009-08-28 Konrad Trifunovic <konrad.trifunovic@gmail.com>
6623 Sebastian Pop <sebastian.pop@amd.com>
6624
6625 * graphite-blocking.c (pbb_strip_mine_loop_depth): Renamed
6626 pbb_strip_mine_time_depth. Changed the implementation so that
6627 transformation is expressed as a transformation on
6628 time (scatttering) dimensions. Also, ensures that the 2d+1
6629 scheduling format is preserved.
6630 (pbb_strip_mine_profitable_p): Profitability is based on the
6631 iteration number of a given time (scattering) dimension,
6632 and not on a original loop depth dimension.
6633 (pbb_strip_mine): Call pbb_number_of_iterations_at_time.
6634 (pbb_do_strip_mine): Call psct_dynamic_dim.
6635 * graphite-poly.c (pbb_number_of_iterations_at_time): New.
6636 * graphite-poly.h (pbb_number_of_iterations_at_time): Declared.
6637 (pbb_nb_dynamic_scattering_transform): New.
6638 (psct_dynamic_dim): New.
6639
6640 2009-08-28 Konrad Trifunovic <konrad.trifunovic@gmail.com>
6641
6642 * graphite-ppl.c (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
6643 * graphite-ppl.h (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
6644 * graphite-poly.c (pbb_number_of_iterations): Rename ppl_max_for_le.
6645 * graphite-interchange.c (build_linearized_memory_access): Same.
6646 (memory_stride_in_loop): Same.
6647
6648 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
6649
6650 * graphite-dependences.c (pddr_original_scattering): New.
6651 (graphite_legal_transform_dr): Call pddr_original_scattering.
6652 (dot_deps_1): New.
6653 (dot_deps): New.
6654 * graphite-dependences.h (dot_deps): Declared.
6655 * graphite-poly.c (new_poly_dr): Initialize PDR_ID.
6656 (print_pdr): Print PDR_ID.
6657 * graphite-poly.h (struct poly_dr): Add field id.
6658 (PDR_ID): New.
6659 (pbb_index): New.
6660 * graphite-scop-detection.c (dot_all_scops_1): Cleanup comment.
6661
6662 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
6663
6664 * graphite-dependences.c (graphite_carried_dependence_level_k): Do
6665 not delete the original dependence relation.
6666
6667 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
6668
6669 * graphite-dependences.c (new_poly_dr_pair): Renamed new_poly_ddr.
6670 (eq_poly_dr_pair_p): Renamed eq_poly_ddr_p.
6671 (hash_poly_dr_pair_p): Renamed hash_poly_ddr_p.
6672 (free_poly_ddr): New.
6673 (pddr_is_empty): New.
6674 (dependence_polyhedron_1): Now returns a poly_ddr_p.
6675 (dependence_polyhedron): Same. Remove useless gcc_assert.
6676 Remove fprintfs.
6677 (graphite_legal_transform_dr): Call pddr_is_empty and free_poly_ddr.
6678 (graphite_carried_dependence_level_k): Call pddr_is_empty.
6679 * graphite-dependences.h (enum poly_dependence_kind): New.
6680 (poly_dr_pair): Renamed poly_ddr. Added a field kind.
6681 (PDRP_SOURCE): Renamed PDDR_SOURCE.
6682 (PDRP_SINK): Renamed PDDR_SINK.
6683 (PDRP_DDP): Renamed PDDR_DDP.
6684 (PDDR_KIND): New.
6685 (free_poly_ddr): Declared.
6686 * graphite-poly.c (new_scop): Use the new hash function names.
6687 * graphite-poly.h (struct scop): Renamed field original_pdr_pairs
6688 into original_pddrs.
6689 (SCOP_ORIGINAL_PDR_PAIRS): Renamed SCOP_ORIGINAL_PDDRS.
6690
6691 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
6692
6693 * cfgloopmanip.c (create_empty_loop_on_edge): Generate upper
6694 bounds with LT_EXPR to make niter analysis more precise on code
6695 generated by Graphite.
6696
6697 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
6698
6699 * graphite-dependences.c (graphite_legal_transform_dr): Fix formatting.
6700 (graphite_legal_transform_bb): Same.
6701 (poly_drs_may_alias_p): Same.
6702
6703 2009-08-28 Richard Guenther <rguenther@suse.de>
6704
6705 * tree.def: Remove note about obsolete TYPE_NONCOPIED_PARTS.
6706
6707 2009-08-28 Jan Beulich <jbeulich@novell.com>
6708
6709 * config/i386/netware.c: Include langhooks.h.
6710 (i386_nlm_encode_section_info): Simplify.
6711 (netware_override_options): Delete.
6712 * config/i386/netware.h (netware_override_options): Delete
6713 declaration.
6714 (OVERRIDE_OPTIONS): Delete definition.
6715 (SUBTARGET_OVERRIDE_OPTIONS): Define.
6716 (ASM_COMMENT_START): Define.
6717 * config/i386/nwld.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Define.
6718
6719 2009-08-28 Jan Beulich <jbeulich@novell.com>
6720
6721 * configure.ac: For in-tree ld, do a plain version check to
6722 determine whether comdat groups are supported.
6723 * configure: Regenerate.
6724
6725 2009-08-28 Olivier Hainque <hainque@adacore.com>
6726
6727 * collect2.c (DO_COLLECT_EXPORT_LIST): New internal macro,
6728 always defined. Reflect definition or absence of such for
6729 COLLECT_EXPORT_LIST. Readability helper.
6730 (scanfilter): New enum, to help control what symbols
6731 are to be considered or ignored by scan_prog_file.
6732 (enum pass): Rename as "scanpass", moved together with scanfilter
6733 prior to scan_prog_file's prototype.
6734 (scan_prog_file): Accept and honor scanpass and scanfilter arguments.
6735 Group prototype with the scanpass/scanfilter definitions, factorize
6736 head comments for the several implementations at the prototype.
6737 (main): Reorganize the first pass link control to let AIX
6738 drag only the needed frame tables in executables. Prevent
6739 frame tables collection during the scan aimed at static ctors.
6740 Pre-link and scan for frame tables later to compensate.
6741 * doc/tm.texi (ASM_OUTPUT_DWARF_TABLE_REF): New macro.
6742 A C statement to issue assembly directives that create a reference
6743 to the given DWARF table identifier label from the current function
6744 section.
6745 * dwarf2out.c (switch_to_eh_frame_section): Add a BACK argument
6746 to differentiate first time section entry. Only emit a .data
6747 tables start identifier label the first time around.
6748 (switch_to_frame_table_section): New function. Helper for
6749 output_call_frame_info to switch possibly BACK into the eh_frame
6750 or the debug_frame section depending on FOR_EH.
6751 (output_call_frame_info): Use helper to first enter the proper
6752 frame section.
6753 (output_fde): Use ASM_OUTPUT_DWARF_TABLE_REF when defined to
6754 emit a link to the frame table start label from each function
6755 section.
6756 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_table_ref):
6757 New function. Implementation of ASM_OUTPUT_DWARF_TABLE_REF.
6758 * config/rs6000/rs6000-protos.h: Declare it.
6759 * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Define.
6760
6761 2009-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
6762
6763 * config/sh/sh.c (split_branches): Check the result of
6764 next_active_insn.
6765
6766 2009-08-27 Steve Ellcey <sje@cup.hp.com>
6767
6768 * config/ia64/hpux.h (LIB_SPEC): Add -lrt for when
6769 using -pthread -fopenmp
6770
6771 2009-08-27 Gerald Pfeifer <gerald@pfeifer.com>
6772
6773 * doc/service.texi (service directory): Update URL.
6774
6775 2009-08-27 Uros Bizjak <ubizjak@gmail.com>
6776
6777 PR rtl-optimization/40861
6778 * simplify-rtx.c (simplify_subreg): Do not call simplify_gen_subreg to
6779 extract word from a multi-word subreg for negative byte positions.
6780
6781 2009-08-27 Tristan Gingold <gingold@adacore.com>
6782 Douglas B Rupp <rupp@gnat.com>
6783
6784 * config/ia64/ia64.c (ia64_attribute_table): Add "common_object" entry.
6785 (SECTION_VMS_OVERLAY): Define.
6786 (ia64_vms_common_object_attribute): Added. Handle the "common_object"
6787 attribute.
6788 (ia64_vms_elf_asm_named_section): Added. Generate .section pseudo-op
6789 for common_object.
6790 (ia64_vms_output_aligned_decl_common): Added. Generate pseudo-op for
6791 common_object declarations.
6792 (ia64_section_type_flags): Set section flag for common_object.
6793 * config/ia64/ia64-protos.h
6794 (ia64_vms_output_aligned_decl_common): Declare.
6795 (ia64_vms_elf_asm_named_section): Declare.
6796
6797 2009-08-27 Michael Matz <matz@suse.de>
6798
6799 * expr.c (expand_expr_real_2): New function taking exploded
6800 unary or binary expression, split out from ...
6801 (expand_expr_real_1): ... here. Move over all unary/binary
6802 switch parts to above function, in particular these codes:
6803 PAREN_EXPR, NOP_EXPR, CONVERT_EXPR, POINTER_PLUS_EXPR, PLUS_EXPR,
6804 MINUS_EXPR, MULT_EXPR, TRUNC_DIV_EXPR, FLOOR_DIV_EXPR, CEIL_DIV_EXPR,
6805 ROUND_DIV_EXPR, EXACT_DIV_EXPR, RDIV_EXPR, TRUNC_MOD_EXPR,
6806 FLOOR_MOD_EXPR, CEIL_MOD_EXPR, ROUND_MOD_EXPR, FIXED_CONVERT_EXPR,
6807 FIX_TRUNC_EXPR, FLOAT_EXPR, NEGATE_EXPR, ABS_EXPR, MAX_EXPR, MIN_EXPR,
6808 BIT_NOT_EXPR, TRUTH_AND_EXPR, BIT_AND_EXPR, TRUTH_OR_EXPR,
6809 BIT_IOR_EXPR, TRUTH_XOR_EXPR, BIT_XOR_EXPR, LROTATE_EXPR, RROTATE_EXPR,
6810 LSHIFT_EXPR, RSHIFT_EXPR, LT_EXPR, LE_EXPR, GT_EXPR, GE_EXPR, EQ_EXPR,
6811 NE_EXPR, UNORDERED_EXPR, ORDERED_EXPR, UNLT_EXPR, UNLE_EXPR, UNGT_EXPR,
6812 UNGE_EXPR, UNEQ_EXPR, LTGT_EXPR, TRUTH_NOT_EXPR, COMPLEX_EXPR,
6813 WIDEN_SUM_EXPR, REDUC_MAX_EXPR, REDUC_MIN_EXPR, REDUC_PLUS_EXPR,
6814 VEC_EXTRACT_EVEN_EXPR, VEC_EXTRACT_ODD_EXPR, VEC_INTERLEAVE_HIGH_EXPR,
6815 VEC_INTERLEAVE_LOW_EXPR, VEC_LSHIFT_EXPR, VEC_RSHIFT_EXPR,
6816 VEC_UNPACK_HI_EXPR, VEC_UNPACK_LO_EXPR, VEC_UNPACK_FLOAT_HI_EXPR,
6817 VEC_UNPACK_FLOAT_LO_EXPR, VEC_WIDEN_MULT_HI_EXPR,
6818 VEC_WIDEN_MULT_LO_EXPR, VEC_PACK_TRUNC_EXPR, VEC_PACK_SAT_EXPR,
6819 VEC_PACK_FIX_TRUNC_EXPR.
6820 (<case PAREN_EXPR>): Call set_mem_attributes() with type, not the
6821 full expression.
6822
6823 2009-08-27 Richard Guenther <rguenther@suse.de>
6824
6825 * gengtype.c (main): Handle uint64_t.
6826 * ipa-utils.c (get_base_var): Indent properly.
6827 * tree-ssa-live.c (debug_scope_block): New function.
6828 * tree-flow.h (debug_scope_block): Declare.
6829 * tree-ssa-copy.c (replace_exp_1): Add vertical space.
6830 * basic-block.h (enum profile_status): Rename to
6831 enum profile_status_d.
6832 (x_profile_status): Adjust type.
6833
6834 2009-08-27 Dodji Seketeli <dodji@redhat.com>
6835
6836 PR debug/41170
6837 * dwarf2out.c (get_context_die): Declare this static function.
6838 (gen_type_die_with_usage): Make sure a DIE is a generated for
6839 the context of a typedef.
6840
6841 2009-08-26 Anatoly Sokolov <aesok@post.ru>
6842
6843 * doc/invoke.texi (AVR Options): Remove documentation of -minit-stack
6844 switch.
6845
6846 2009-08-26 Richard Sandiford <rdsandiford@googlemail.com>
6847
6848 * config/mips/mips-protos.h (mips_output_sync): Declare.
6849 (mips_sync_loop_insns): Likewise.
6850 (mips_output_sync_loop): Replace first two parameters with an rtx.
6851 * config/mips/mips.c (mips_multi_member): New structure.
6852 (mips_multi_members): New variable.
6853 (mips_multi_start): New function.
6854 (mips_multi_add): Likewise.
6855 (mips_multi_add_insn): Likewise.
6856 (mips_multi_add_label): Likewise.
6857 (mips_multi_last_index): Likewise.
6858 (mips_multi_copy_insn): Likewise.
6859 (mips_multi_set_operand): Likewise.
6860 (mips_multi_write): Likewise.
6861 (mips_print_operand_punctuation): Remove '%|' and '%-'.
6862 (mips_init_print_operand_punct): Update accordingly.
6863 (mips_start_ll_sc_sync_block): New function.
6864 (mips_end_ll_sc_sync_block): Likewise.
6865 (mips_output_sync): Likewise.
6866 (mips_sync_insn1_template): Likewise.
6867 (mips_sync_insn2_template): Likewise.
6868 (mips_get_sync_operand): Likewise.
6869 (mips_process_sync_loop): Likewise.
6870 (mips_output_sync_loop): Use mips_process_sync_loop.
6871 (mips_sync_loop_insns): New function.
6872 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Delete.
6873 (MIPS_COMPARE_AND_SWAP_12): Likewise.
6874 (MIPS_COMPARE_AND_SWAP_12_ZERO_OP): Likewise.
6875 (MIPS_COMPARE_AND_SWAP_12_NONZERO_OP): Likewise.
6876 (MIPS_SYNC_OP, MIPS_SYNC_OP_12): Likewise.
6877 (MIPS_SYNC_OP_12_AND, MIPS_SYNC_OP_12_XOR): Likewise.
6878 (MIPS_SYNC_OLD_OP_12): Likewise.
6879 (MIPS_SYNC_OLD_OP_12_AND, MIPS_SYNC_OLD_OP_12_XOR): Likewise.
6880 (MIPS_SYNC_NEW_OP_12): Likewise.
6881 (MIPS_SYNC_NEW_OP_12_AND, MIPS_SYNC_NEW_OP_12_XOR): Likewise.
6882 (MIPS_SYNC_OLD_OP, MIPS_SYNC_NEW_OP): Likewise.
6883 (MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND, MIPS_SYNC_NEW_NAND): Likewise.
6884 (MIPS_SYNC_EXCHANGE, MIPS_SYNC_EXCHANGE_12): Likewise.
6885 (MIPS_SYNC_EXCHANGE_12_ZERO_OP): Likewise.
6886 (MIPS_SYNC_EXCHANGE_12_NONZER_OP): Likewise.
6887 * config/mips/mips.md (sync_mem): New attribute.
6888 (sync_oldval, sync_newval, sync_inclusive_mask): Likewise.
6889 (sync_exclusive_mask, sync_required_oldval): Likewise.
6890 (sync_insn1_op2, sync_insn1, sync_insn2): Likewise.
6891 (sync_release_barrier): Likewise.
6892 (length): Handle sync loops.
6893 (sync): Use mips_output_sync.
6894 * config/mips/sync.md (*memory_barrier): Use mips_output_sync.
6895 (sync_compare_and_swap<mode>): Set the new sync_* attributes
6896 and use mips_output_sync_loop.
6897 (compare_and_swap_12, sync_add<mode>, sync_<optab>_12): Likewise.
6898 (sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12): Likewise.
6899 (sync_old_nand_12, sync_new_nand_12, sync_sub<mode>): Likewise.
6900 (sync_old_add<mode>, sync_old_sub<mode>): Likewise.
6901 (sync_new_add<mode>, sync_new_sub<mode>): Likewise.
6902 (sync_<optab><mode>, sync_old_<optab><mode>): Likewise.
6903 (sync_new_<optab><mode>, sync_nand<mode>): Likewise.
6904 (sync_old_nand<mode>, sync_new_nand<mode>): Likewise.
6905 (sync_lock_test_and_set<mode>, test_and_set_12): Likewise.
6906
6907 2009-08-26 Richard Guenther <rguenther@suse.de>
6908
6909 PR middle-end/41163
6910 * gimplify.c (gimplify_addr_expr): Canonicalize ADDR_EXPRs if
6911 the types to not match.
6912 * tree-cfg.c (verify_gimple_assign_single): Adjust ADDR_EXPR
6913 verification.
6914 * tree-ssa.c (useless_type_conversion_p): Conversions to
6915 pointers to unprototyped functions are useless.
6916
6917 2009-08-26 Richard Guenther <rguenther@suse.de>
6918
6919 * tree-ssa-structalias.c (create_variable_info_for): Remove strange
6920 whole-program condition, prepare to be called for non-globals.
6921 (intra_create_variable_infos): For restrict qualified DECL_BY_REFERENCE
6922 params build a representative with known type and track its fields.
6923
6924 2009-08-26 Uros Bizjak <ubizjak@gmail.com>
6925
6926 * config/alpha/sync.md: Update comment about unpredictable LL/SC lock
6927 clearing by a taken branch.
6928 (sync_<fetchop_name><mode>): Split when epilogue_completed is set,
6929 effectively after bbro pass.
6930 (sync_nand<mode>): Ditto.
6931 (sync_old_<fetchop_name><mode>): Ditto.
6932 (sync_old_nand<mode>): Ditto.
6933 (sync_new_<fetchop_name><mode>): Dito.
6934 (sync_new_nand<mode>): Ditto.
6935 (sync_compare_and_swap<mode>_1): Ditto.
6936 (*sync_compare_and_swap<mode>): Ditto.
6937 (sync_lock_test_and_set<mode>_1): Ditto.
6938 ("sync_lock_test_and_set<mode>): Ditto.
6939
6940 2009-08-25 Douglas B Rupp <rupp@gnat.com>
6941
6942 * hwint.h (HOST_LONG_FORMAT): New macro
6943 * bitmap.c, c-decl.c, mips-tfile.c, print-rtl.c, print-tree.c:
6944 Use HOST_PTR_PRINTF.
6945 * system.h (HOST_PTR_PRINTF): Resurrect old macro
6946 * doc/hostconfig.texi (HOST_LONG_FORMAT): Document.
6947 (HOST_PTR_PRINTF): Document.
6948
6949 2009-08-25 Jan Hubicka <jh@suse.cz>
6950
6951 * config/i386/bmmintrin.h: Replace by #error.
6952
6953 Revert:
6954 Michael Meissner <michael.meissner@amd.com>
6955 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
6956 Tony Linthicum <tony.linthicum@amd.com>
6957
6958 * config/i386/i386.h (TARGET_SSE5): New macro for SSE5.
6959 (TARGET_ROUND): New macro for the round/ptest instructions which
6960 are shared between SSE4.1 and SSE5.
6961 (OPTION_MASK_ISA_ROUND): Ditto.
6962 (OPTION_ISA_ROUND): Ditto.
6963 (TARGET_FUSED_MADD): New macro for -mfused-madd swtich.
6964 (TARGET_CPU_CPP_BUILTINS): Add SSE5 support.
6965
6966 * config/i386/i386.opt (-msse5): New switch for SSE5 support.
6967 (-mfused-madd): New switch to give users control over whether the
6968 compiler optimizes to use the multiply/add SSE5 instructions.
6969
6970 * config/i386/i386.c (enum pta_flags): Add PTA_SSE5.
6971 (ix86_handle_option): Turn off 3dnow if -msse5.
6972 (override_options): Add SSE5 support.
6973 (print_operand): %Y prints comparison codes for SSE5 com/pcom
6974 instructions.
6975 (ix86_expand_sse_movcc): Add SSE5 support.
6976 (ix86_expand_sse5_unpack): New function to use pperm to unpack a
6977 vector type to the next largest size.
6978 (ix86_expand_sse5_pack): New function to use pperm to pack a
6979 vector type to the next smallest size.
6980 (IX86_BUILTIN_FMADDSS): New for SSE5 intrinsic.
6981 (IX86_BUILTIN_FMADDSD): Ditto.
6982 (IX86_BUILTIN_FMADDPS): Ditto.
6983 (IX86_BUILTIN_FMADDPD): Ditto.
6984 (IX86_BUILTIN_FMSUBSS): Ditto.
6985 (IX86_BUILTIN_FMSUBSD): Ditto.
6986 (IX86_BUILTIN_FMSUBPS): Ditto.
6987 (IX86_BUILTIN_FMSUBPD): Ditto.
6988 (IX86_BUILTIN_FNMADDSS): Ditto.
6989 (IX86_BUILTIN_FNMADDSD): Ditto.
6990 (IX86_BUILTIN_FNMADDPS): Ditto.
6991 (IX86_BUILTIN_FNMADDPD): Ditto.
6992 (IX86_BUILTIN_FNMSUBSS): Ditto.
6993 (IX86_BUILTIN_FNMSUBSD): Ditto.
6994 (IX86_BUILTIN_FNMSUBPS): Ditto.
6995 (IX86_BUILTIN_FNMSUBPD): Ditto.
6996 (IX86_BUILTIN_PCMOV_V2DI): Ditto.
6997 (IX86_BUILTIN_PCMOV_V4SI): Ditto.
6998 (IX86_BUILTIN_PCMOV_V8HI): Ditto.
6999 (IX86_BUILTIN_PCMOV_V16QI): Ditto.
7000 (IX86_BUILTIN_PCMOV_V4SF): Ditto.
7001 (IX86_BUILTIN_PCMOV_V2DF): Ditto.
7002 (IX86_BUILTIN_PPERM): Ditto.
7003 (IX86_BUILTIN_PERMPS): Ditto.
7004 (IX86_BUILTIN_PERMPD): Ditto.
7005 (IX86_BUILTIN_PMACSSWW): Ditto.
7006 (IX86_BUILTIN_PMACSWW): Ditto.
7007 (IX86_BUILTIN_PMACSSWD): Ditto.
7008 (IX86_BUILTIN_PMACSWD): Ditto.
7009 (IX86_BUILTIN_PMACSSDD): Ditto.
7010 (IX86_BUILTIN_PMACSDD): Ditto.
7011 (IX86_BUILTIN_PMACSSDQL): Ditto.
7012 (IX86_BUILTIN_PMACSSDQH): Ditto.
7013 (IX86_BUILTIN_PMACSDQL): Ditto.
7014 (IX86_BUILTIN_PMACSDQH): Ditto.
7015 (IX86_BUILTIN_PMADCSSWD): Ditto.
7016 (IX86_BUILTIN_PMADCSWD): Ditto.
7017 (IX86_BUILTIN_PHADDBW): Ditto.
7018 (IX86_BUILTIN_PHADDBD): Ditto.
7019 (IX86_BUILTIN_PHADDBQ): Ditto.
7020 (IX86_BUILTIN_PHADDWD): Ditto.
7021 (IX86_BUILTIN_PHADDWQ): Ditto.
7022 (IX86_BUILTIN_PHADDDQ): Ditto.
7023 (IX86_BUILTIN_PHADDUBW): Ditto.
7024 (IX86_BUILTIN_PHADDUBD): Ditto.
7025 (IX86_BUILTIN_PHADDUBQ): Ditto.
7026 (IX86_BUILTIN_PHADDUWD): Ditto.
7027 (IX86_BUILTIN_PHADDUWQ): Ditto.
7028 (IX86_BUILTIN_PHADDUDQ): Ditto.
7029 (IX86_BUILTIN_PHSUBBW): Ditto.
7030 (IX86_BUILTIN_PHSUBWD): Ditto.
7031 (IX86_BUILTIN_PHSUBDQ): Ditto.
7032 (IX86_BUILTIN_PROTB): Ditto.
7033 (IX86_BUILTIN_PROTW): Ditto.
7034 (IX86_BUILTIN_PROTD): Ditto.
7035 (IX86_BUILTIN_PROTQ): Ditto.
7036 (IX86_BUILTIN_PROTB_IMM): Ditto.
7037 (IX86_BUILTIN_PROTW_IMM): Ditto.
7038 (IX86_BUILTIN_PROTD_IMM): Ditto.
7039 (IX86_BUILTIN_PROTQ_IMM): Ditto.
7040 (IX86_BUILTIN_PSHLB): Ditto.
7041 (IX86_BUILTIN_PSHLW): Ditto.
7042 (IX86_BUILTIN_PSHLD): Ditto.
7043 (IX86_BUILTIN_PSHLQ): Ditto.
7044 (IX86_BUILTIN_PSHAB): Ditto.
7045 (IX86_BUILTIN_PSHAW): Ditto.
7046 (IX86_BUILTIN_PSHAD): Ditto.
7047 (IX86_BUILTIN_PSHAQ): Ditto.
7048 (IX86_BUILTIN_FRCZSS): Ditto.
7049 (IX86_BUILTIN_FRCZSD): Ditto.
7050 (IX86_BUILTIN_FRCZPS): Ditto.
7051 (IX86_BUILTIN_FRCZPD): Ditto.
7052 (IX86_BUILTIN_CVTPH2PS): Ditto.
7053 (IX86_BUILTIN_CVTPS2PH): Ditto.
7054 (IX86_BUILTIN_COMEQSS): Ditto.
7055 (IX86_BUILTIN_COMNESS): Ditto.
7056 (IX86_BUILTIN_COMLTSS): Ditto.
7057 (IX86_BUILTIN_COMLESS): Ditto.
7058 (IX86_BUILTIN_COMGTSS): Ditto.
7059 (IX86_BUILTIN_COMGESS): Ditto.
7060 (IX86_BUILTIN_COMUEQSS): Ditto.
7061 (IX86_BUILTIN_COMUNESS): Ditto.
7062 (IX86_BUILTIN_COMULTSS): Ditto.
7063 (IX86_BUILTIN_COMULESS): Ditto.
7064 (IX86_BUILTIN_COMUGTSS): Ditto.
7065 (IX86_BUILTIN_COMUGESS): Ditto.
7066 (IX86_BUILTIN_COMORDSS): Ditto.
7067 (IX86_BUILTIN_COMUNORDSS): Ditto.
7068 (IX86_BUILTIN_COMFALSESS): Ditto.
7069 (IX86_BUILTIN_COMTRUESS): Ditto.
7070 (IX86_BUILTIN_COMEQSD): Ditto.
7071 (IX86_BUILTIN_COMNESD): Ditto.
7072 (IX86_BUILTIN_COMLTSD): Ditto.
7073 (IX86_BUILTIN_COMLESD): Ditto.
7074 (IX86_BUILTIN_COMGTSD): Ditto.
7075 (IX86_BUILTIN_COMGESD): Ditto.
7076 (IX86_BUILTIN_COMUEQSD): Ditto.
7077 (IX86_BUILTIN_COMUNESD): Ditto.
7078 (IX86_BUILTIN_COMULTSD): Ditto.
7079 (IX86_BUILTIN_COMULESD): Ditto.
7080 (IX86_BUILTIN_COMUGTSD): Ditto.
7081 (IX86_BUILTIN_COMUGESD): Ditto.
7082 (IX86_BUILTIN_COMORDSD): Ditto.
7083 (IX86_BUILTIN_COMUNORDSD): Ditto.
7084 (IX86_BUILTIN_COMFALSESD): Ditto.
7085 (IX86_BUILTIN_COMTRUESD): Ditto.
7086 (IX86_BUILTIN_COMEQPS): Ditto.
7087 (IX86_BUILTIN_COMNEPS): Ditto.
7088 (IX86_BUILTIN_COMLTPS): Ditto.
7089 (IX86_BUILTIN_COMLEPS): Ditto.
7090 (IX86_BUILTIN_COMGTPS): Ditto.
7091 (IX86_BUILTIN_COMGEPS): Ditto.
7092 (IX86_BUILTIN_COMUEQPS): Ditto.
7093 (IX86_BUILTIN_COMUNEPS): Ditto.
7094 (IX86_BUILTIN_COMULTPS): Ditto.
7095 (IX86_BUILTIN_COMULEPS): Ditto.
7096 (IX86_BUILTIN_COMUGTPS): Ditto.
7097 (IX86_BUILTIN_COMUGEPS): Ditto.
7098 (IX86_BUILTIN_COMORDPS): Ditto.
7099 (IX86_BUILTIN_COMUNORDPS): Ditto.
7100 (IX86_BUILTIN_COMFALSEPS): Ditto.
7101 (IX86_BUILTIN_COMTRUEPS): Ditto.
7102 (IX86_BUILTIN_COMEQPD): Ditto.
7103 (IX86_BUILTIN_COMNEPD): Ditto.
7104 (IX86_BUILTIN_COMLTPD): Ditto.
7105 (IX86_BUILTIN_COMLEPD): Ditto.
7106 (IX86_BUILTIN_COMGTPD): Ditto.
7107 (IX86_BUILTIN_COMGEPD): Ditto.
7108 (IX86_BUILTIN_COMUEQPD): Ditto.
7109 (IX86_BUILTIN_COMUNEPD): Ditto.
7110 (IX86_BUILTIN_COMULTPD): Ditto.
7111 (IX86_BUILTIN_COMULEPD): Ditto.
7112 (IX86_BUILTIN_COMUGTPD): Ditto.
7113 (IX86_BUILTIN_COMUGEPD): Ditto.
7114 (IX86_BUILTIN_COMORDPD): Ditto.
7115 (IX86_BUILTIN_COMUNORDPD): Ditto.
7116 (IX86_BUILTIN_COMFALSEPD): Ditto.
7117 (IX86_BUILTIN_COMTRUEPD): Ditto.
7118 (IX86_BUILTIN_PCOMEQUB): Ditto.
7119 (IX86_BUILTIN_PCOMNEUB): Ditto.
7120 (IX86_BUILTIN_PCOMLTUB): Ditto.
7121 (IX86_BUILTIN_PCOMLEUB): Ditto.
7122 (IX86_BUILTIN_PCOMGTUB): Ditto.
7123 (IX86_BUILTIN_PCOMGEUB): Ditto.
7124 (IX86_BUILTIN_PCOMFALSEUB): Ditto.
7125 (IX86_BUILTIN_PCOMTRUEUB): Ditto.
7126 (IX86_BUILTIN_PCOMEQUW): Ditto.
7127 (IX86_BUILTIN_PCOMNEUW): Ditto.
7128 (IX86_BUILTIN_PCOMLTUW): Ditto.
7129 (IX86_BUILTIN_PCOMLEUW): Ditto.
7130 (IX86_BUILTIN_PCOMGTUW): Ditto.
7131 (IX86_BUILTIN_PCOMGEUW): Ditto.
7132 (IX86_BUILTIN_PCOMFALSEUW): Ditto.
7133 (IX86_BUILTIN_PCOMTRUEUW): Ditto.
7134 (IX86_BUILTIN_PCOMEQUD): Ditto.
7135 (IX86_BUILTIN_PCOMNEUD): Ditto.
7136 (IX86_BUILTIN_PCOMLTUD): Ditto.
7137 (IX86_BUILTIN_PCOMLEUD): Ditto.
7138 (IX86_BUILTIN_PCOMGTUD): Ditto.
7139 (IX86_BUILTIN_PCOMGEUD): Ditto.
7140 (IX86_BUILTIN_PCOMFALSEUD): Ditto.
7141 (IX86_BUILTIN_PCOMTRUEUD): Ditto.
7142 (IX86_BUILTIN_PCOMEQUQ): Ditto.
7143 (IX86_BUILTIN_PCOMNEUQ): Ditto.
7144 (IX86_BUILTIN_PCOMLTUQ): Ditto.
7145 (IX86_BUILTIN_PCOMLEUQ): Ditto.
7146 (IX86_BUILTIN_PCOMGTUQ): Ditto.
7147 (IX86_BUILTIN_PCOMGEUQ): Ditto.
7148 (IX86_BUILTIN_PCOMFALSEUQ): Ditto.
7149 (IX86_BUILTIN_PCOMTRUEUQ): Ditto.
7150 (IX86_BUILTIN_PCOMEQB): Ditto.
7151 (IX86_BUILTIN_PCOMNEB): Ditto.
7152 (IX86_BUILTIN_PCOMLTB): Ditto.
7153 (IX86_BUILTIN_PCOMLEB): Ditto.
7154 (IX86_BUILTIN_PCOMGTB): Ditto.
7155 (IX86_BUILTIN_PCOMGEB): Ditto.
7156 (IX86_BUILTIN_PCOMFALSEB): Ditto.
7157 (IX86_BUILTIN_PCOMTRUEB): Ditto.
7158 (IX86_BUILTIN_PCOMEQW): Ditto.
7159 (IX86_BUILTIN_PCOMNEW): Ditto.
7160 (IX86_BUILTIN_PCOMLTW): Ditto.
7161 (IX86_BUILTIN_PCOMLEW): Ditto.
7162 (IX86_BUILTIN_PCOMGTW): Ditto.
7163 (IX86_BUILTIN_PCOMGEW): Ditto.
7164 (IX86_BUILTIN_PCOMFALSEW): Ditto.
7165 (IX86_BUILTIN_PCOMTRUEW): Ditto.
7166 (IX86_BUILTIN_PCOMEQD): Ditto.
7167 (IX86_BUILTIN_PCOMNED): Ditto.
7168 (IX86_BUILTIN_PCOMLTD): Ditto.
7169 (IX86_BUILTIN_PCOMLED): Ditto.
7170 (IX86_BUILTIN_PCOMGTD): Ditto.
7171 (IX86_BUILTIN_PCOMGED): Ditto.
7172 (IX86_BUILTIN_PCOMFALSED): Ditto.
7173 (IX86_BUILTIN_PCOMTRUED): Ditto.
7174 (IX86_BUILTIN_PCOMEQQ): Ditto.
7175 (IX86_BUILTIN_PCOMNEQ): Ditto.
7176 (IX86_BUILTIN_PCOMLTQ): Ditto.
7177 (IX86_BUILTIN_PCOMLEQ): Ditto.
7178 (IX86_BUILTIN_PCOMGTQ): Ditto.
7179 (IX86_BUILTIN_PCOMGEQ): Ditto.
7180 (IX86_BUILTIN_PCOMFALSEQ): Ditto.
7181 (IX86_BUILTIN_PCOMTRUEQ): Ditto.
7182 (enum multi_arg_type): New enum for describing the various SSE5
7183 intrinsic argument types.
7184 (bdesc_multi_arg): New table for SSE5 intrinsics.
7185 (ix86_init_mmx_sse_builtins): Add SSE5 intrinsic support.
7186 (ix86_expand_multi_arg_builtin): New function for creating SSE5
7187 intrinsics.
7188 (ix86_expand_builtin): Add SSE5 intrinsic support.
7189 (ix86_sse5_valid_op_p): New function to validate SSE5 3 and 4
7190 operand instructions.
7191 (ix86_expand_sse5_multiple_memory): New function to split the
7192 second memory reference from SSE5 instructions.
7193 (type_has_variadic_args_p): Delete in favor of stdarg_p.
7194 (ix86_return_pops_args): Use stdarg_p to determine if the function
7195 has variable arguments.
7196 (ix86_setup_incoming_varargs): Ditto.
7197 (x86_this_parameter): Ditto.
7198
7199 * config/i386/i386-protos.h (ix86_expand_sse5_unpack): Add
7200 declaration.
7201 (ix86_expand_sse5_pack): Ditto.
7202 (ix86_sse5_valid_op_p): Ditto.
7203 (ix86_expand_sse5_multiple_memory): Ditto.
7204
7205 * config/i386/i386.md (UNSPEC_SSE5_INTRINSIC): Add new UNSPEC
7206 constant for SSE5 support.
7207 (UNSPEC_SSE5_UNSIGNED_CMP): Ditto.
7208 (UNSPEC_SSE5_TRUEFALSE): Ditto.
7209 (UNSPEC_SSE5_PERMUTE): Ditto.
7210 (UNSPEC_SSE5_ASHIFT): Ditto.
7211 (UNSPEC_SSE5_LSHIFT): Ditto.
7212 (UNSPEC_FRCZ): Ditto.
7213 (UNSPEC_CVTPH2PS): Ditto.
7214 (UNSPEC_CVTPS2PH): Ditto.
7215 (PCOM_FALSE): Add new constant for true/false SSE5 comparisons.
7216 (PCOM_TRUE): Ditto.
7217 (COM_FALSE_S): Ditto.
7218 (COM_FALSE_P): Ditto.
7219 (COM_TRUE_S): Ditto.
7220 (COM_TRUE_P): Ditto.
7221 (type attribute): Add ssemuladd, sseiadd1, ssecvt1, sse4arg types.
7222 (unit attribute): Add support for ssemuladd, ssecvt1, sseiadd1 sse4arg
7223 types.
7224 (memory attribute): Ditto.
7225 (sse4_1_round<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
7226 Use SSE4_1_ROUND_* constants instead of hard coded numbers.
7227 (rint<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
7228 (floor<mode>2): Ditto.
7229 (ceil<mode>2): Ditto.
7230 (btrunc<mode>2): Ditto.
7231 (nearbyintdf2): Ditto.
7232 (nearbyintsf2): Ditto.
7233 (sse_setccsf): Disable if SSE5.
7234 (sse_setccdf): Ditto.
7235 (sse5_setcc<mode>): New support for SSE5 conditional move.
7236 (sse5_pcmov_<mode>): Ditto.
7237
7238 * config/i386/sse.md (SSEMODE1248): New mode iterator for SSE5.
7239 (SSEMODEF4): Ditto.
7240 (SSEMODEF2P): Ditto.
7241 (ssemodesuffixf4): New mode attribute for SSE5.
7242 (ssemodesuffixf2s): Ditto.
7243 (ssemodesuffixf2c): Ditto.
7244 (sserotatemax): Ditto.
7245 (ssescalarmode): Ditto.
7246 (sse_maskcmpv4sf3): Disable if SSE5.
7247 (sse_maskcmpv2df3): Ditto.
7248 (sse_vmmaskcmpv4sf3): Ditto.
7249 (sse5_fmadd<mode>4): Add SSE5 floating point multiply/add instructions.
7250 (sse5_vmfmadd<mode>4): Ditto.
7251 (sse5_fmsub<mode>4): Ditto.
7252 (sse5_vmfmsub<mode>4): Ditto.
7253 (sse5_fnmadd<mode>4): Ditto.
7254 (sse5_vmfnmadd<mode>4): Ditto.
7255 (sse5_fnmsub<mode>4): Ditto.
7256 (sse5_vmfnmsub<mode>4): Ditto.
7257 (sse5i_fmadd<mode>4): Ditto.
7258 (sse5i_fmsub<mode>4): Ditto.
7259 (sse5i_fnmadd<mode>4): Ditto.
7260 (sse5i_fnmsub<mode>4): Ditto.
7261 (sse5i_vmfmadd<mode>4): Ditto.
7262 (sse5i_vmfmsub<mode>4): Ditto.
7263 (sse5i_vmfnmadd<mode>4): Ditto.
7264 (sse5i_vmfnmsub<mode>4): Ditto.
7265 (mulv16qi3): Add SSE5 support.
7266 (mulv4si3): Ditto.
7267 (sse5_mulv4si3): New insn for 32-bit multiply support on SSE5.
7268 (sse2_mulv4si3): Disable if SSE5.
7269 (sse4_1_roundpd): Use TARGET_ROUND instead of TARGET_SSE4_1.
7270 (sse4_1_roundps): Ditto.
7271 (sse4_1_roundsd): Ditto.
7272 (sse4_1_roundss): Ditto.
7273 (sse_maskcmpv4sf3): Disable if SSE5 so the SSE5 instruction will
7274 be generated.
7275 (sse_maskcmpsf3): Ditto.
7276 (sse_vmmaskcmpv4sf3): Ditto.
7277 (sse2_maskcmpv2df3): Ditto.
7278 (sse2_maskcmpdf3): Ditto.
7279 (sse2_vmmaskcmpv2df3): Ditto.
7280 (sse2_eq<mode>3): Ditto.
7281 (sse2_gt<mode>3): Ditto.
7282 (sse5_pcmov_<mode>): Add SSE5 support.
7283 (vec_unpacku_hi_v16qi): Ditto.
7284 (vec_unpacks_hi_v16qi): Ditto.
7285 (vec_unpacku_lo_v16qi): Ditto.
7286 (vec_unpacks_lo_v16qi): Ditto.
7287 (vec_unpacku_hi_v8hi): Ditto.
7288 (vec_unpacks_hi_v8hi): Ditto.
7289 (vec_unpacku_lo_v8hi): Ditto.
7290 (vec_unpacks_lo_v8hi): Ditto.
7291 (vec_unpacku_hi_v4si): Ditto.
7292 (vec_unpacks_hi_v4si): Ditto.
7293 (vec_unpacku_lo_v4si): Ditto.
7294 (vec_unpacks_lo_v4si): Ditto.
7295 (sse5_pmacsww): New SSE5 intrinsic insn.
7296 (sse5_pmacssww): Ditto.
7297 (sse5_pmacsdd): Ditto.
7298 (sse5_pmacssdd): Ditto.
7299 (sse5_pmacssdql): Ditto.
7300 (sse5_pmacssdqh): Ditto.
7301 (sse5_pmacsdqh): Ditto.
7302 (sse5_pmacsswd): Ditto.
7303 (sse5_pmacswd): Ditto.
7304 (sse5_pmadcsswd): Ditto.
7305 (sse5_pmadcswd): Ditto.
7306 (sse5_pcmov_<move>): Conditional move support on SSE5.
7307 (sse5_phaddbw): New SSE5 intrinsic insn.
7308 (sse5_phaddbd): Ditto.
7309 (sse5_phaddbq): Ditto.
7310 (sse5_phaddwd): Ditto.
7311 (sse5_phaddwq): Ditto.
7312 (sse5_phadddq): Ditto.
7313 (sse5_phaddubw): Ditto.
7314 (sse5_phaddubd): Ditto.
7315 (sse5_phaddubq): Ditto.
7316 (sse5_phadduwd): Ditto.
7317 (sse5_phadduwq): Ditto.
7318 (sse5_phaddudq): Ditto.
7319 (sse5_phsubbw): Ditto.
7320 (sse5_phsubwd): Ditto.
7321 (sse5_phsubdq): Ditto.
7322 (sse5_pperm): Ditto.
7323 (sse5_pperm_sign_v16qi_v8hi): New insns for pack/unpack with SSE5.
7324 (sse5_pperm_zero_v16qi_v8hi): Ditto.
7325 (sse5_pperm_sign_v8hi_v4si): Ditto.
7326 (sse5_pperm_zero_v8hi_v4si): Ditto.
7327 (sse5_pperm_sign_v4si_v2di): Ditto.
7328 (sse5_pperm_sign_v4si_v2di): Ditto.
7329 (sse5_pperm_pack_v2di_v4si): Ditto.
7330 (sse5_pperm_pack_v4si_v8hi): Ditto.
7331 (sse5_pperm_pack_v8hi_v16qi): Ditto.
7332 (sse5_perm<mode>): New SSE5 intrinsic insn.
7333 (rotl<mode>3): Ditto.
7334 (sse5_rotl<mode>3): Ditto.
7335 (sse5_ashl<mode>3): Ditto.
7336 (sse5_lshl<mode>3): Ditto.
7337 (sse5_frcz<mode>2): Ditto.
7338 (sse5s_frcz<mode>2): Ditto.
7339 (sse5_cvtph2ps): Ditto.
7340 (sse5_cvtps2ph): Ditto.
7341 (sse5_vmmaskcmp<mode>3): Ditto.
7342 (sse5_com_tf<mode>3): Ditto.
7343 (sse5_maskcmp<mode>3): Ditto.
7344 (sse5_maskcmp_uns<mode>3): Ditto.
7345 (sse5_maskcmp_uns2<mode>3): Ditto.
7346 (sse5_pcom_tf<mode>3): Ditto.
7347
7348 * config/i386/predicates.md (sse5_comparison_float_operator):
7349 New predicate to match the comparison operators supported by
7350 the SSE5 com instruction.
7351 (ix86_comparison_int_operator): New predicate to match just the
7352 signed int comparisons.
7353 (ix86_comparison_uns_operator): New predicate to match just the
7354 unsigned int comparisons.
7355
7356 * doc/invoke.texi (-msse5): Add documentation.
7357 (-mfused-madd): Ditto.
7358
7359 * doc/extend.texi (x86 intrinsics): Document new SSE5 intrinsics.
7360
7361 * config.gcc (i[34567]86-*-*): Include bmmintrin.h and
7362 mmintrin-common.h.
7363 (x86_64-*-*): Ditto.
7364
7365 * config/i386/cpuid.h (bit_SSE5): Define SSE5 bit.
7366
7367 * config/i386/bmmintrin.h: New file, provide common x86 compiler
7368 intrinisics for SSE5.
7369
7370 * config/i386/smmintrin.h: Move instructions shared with SSE5 to
7371 mmintrin-common.h.
7372
7373 * config/i386/mmintrin-common.h: New file, to contain common
7374 instructions between SSE4.1 and SSE5.
7375
7376 * config/i386/netware.c (gen_stdcall_or_fastcall_decoration): Use
7377 FOREACH_FUNCTION_ARGS to iterate over the argument list.
7378 (gen_regparm_prefix): Ditto.
7379
7380 * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix): Use
7381 FOREACH_FUNCTION_ARGS to iterate over the argument list. Use
7382 prototype_p to determine if a function is prototyped.
7383
7384 2009-08-25 Ville Voutilainen <ville.voutilainen@gmail.com>
7385
7386 * c-common.c (c_common_reswords) add the alignof keyword,
7387 with same RID as __alignof and __alignof__
7388
7389 2009-08-25 Anatoly Sokolov <aesok@post.ru>
7390
7391 * hooks.h (hook_bool_const_int_const_int_true): Declare.
7392 * hooks.c (hook_bool_const_int_const_int_true): New function.
7393 * target.h (struct gcc_target): Add can_eliminate field.
7394 * target-def.h (TARGET_CAN_ELIMINATE): Define.
7395 (TARGET_INITIALIZER): Use TARGET_CAN_ELIMINATE.
7396 * ira.c (setup_eliminable_regset): Use can_eliminate target hook.
7397 * reload1.c (update_eliminables, init_elim_table): (Ditto.).
7398 (elim_table): Revise comment.
7399 * system.h (CAN_ELIMINATE): Poison.
7400 * defaults.h (CAN_ELIMINATE): Remove.
7401 * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
7402
7403 * config/alpha/vms.h (CAN_ELIMINATE): Remove macro.
7404 * config/alpha/alpha.c (TARGET_CAN_ELIMINATE) [TARGET_ABI_OPEN_VMS]:
7405 Define macro.
7406 (alpha_vms_can_eliminate): Declare as static, change return type to
7407 bool.
7408 * config/alpha/alpha-protos.h (alpha_vms_can_eliminate): Remove.
7409
7410 * config/arm/arm.h (CAN_ELIMINATE): Remove macro.
7411 * config/arm/arm.c (TARGET_CAN_ELIMINATE): Define macro.
7412 (arm_can_eliminate): New function.
7413
7414 * config/avr/avr.h (CAN_ELIMINATE): Remove macro.
7415 * config/avr/avr.c (TARGET_CAN_ELIMINATE): Define macro.
7416 (avr_can_eliminate): Declare as static.
7417 * config/avr/avr-protos.h (avr_can_eliminate): Remove.
7418
7419 * config/bfin/bfin.h (CAN_ELIMINATE): Remove macro.
7420 * config/bfin/bfin.c (TARGET_CAN_ELIMINATE): Define macro.
7421 (bfin_can_eliminate): New function.
7422
7423 * config/crx/crx.h (CAN_ELIMINATE): Remove macro.
7424 * config/crx/crx.c (TARGET_CAN_ELIMINATE): Define macro.
7425 (crx_can_eliminate): New function.
7426
7427 * config/fr30/fr30.h (CAN_ELIMINATE): Remove macro.
7428 * config/fr30/fr30.c (TARGET_CAN_ELIMINATE): Define macro.
7429 (fr30_can_eliminate): New function.
7430
7431 * config/frv/frv.h (CAN_ELIMINATE): Remove macro.
7432 * config/frv/frv.c (TARGET_CAN_ELIMINATE): Define macro.
7433 (frv_can_eliminate): New function.
7434
7435 * config/h8300/h8300.h (CAN_ELIMINATE): Remove macro.
7436 * config/h8300/h8300.c (TARGET_CAN_ELIMINATE): Define macro.
7437 (h8300_can_eliminate): New function.
7438
7439 * config/i386/i386.h (CAN_ELIMINATE): Remove macro.
7440 * config/i386/i386.c (TARGET_CAN_ELIMINATE): Define macro.
7441 (i386_can_eliminate): Declare as static, change return type to bool.
7442 * config/i386/i386-protos.h (i386_can_eliminate): Remove.
7443
7444 * config/ia64/ia64.h (CAN_ELIMINATE): Remove macro.
7445 * config/ia64/ia64.c (TARGET_CAN_ELIMINATE): Define macro.
7446 (ia64_can_eliminate): New function.
7447
7448 * config/iq2000/iq2000.h (CAN_ELIMINATE): Remove macro.
7449 * config/iq2000/iq2000.c (TARGET_CAN_ELIMINATE): Define macro.
7450 (iq2000_can_eliminate): New function.
7451
7452 * config/m32r/m32r.h (CAN_ELIMINATE): Remove macro.
7453 * config/m32r/m32r.c (TARGET_CAN_ELIMINATE): Define macro.
7454 (m32r_can_eliminate): New function.
7455
7456 * config/m68hc11/m68hc11.h (CAN_ELIMINATE): Remove macro.
7457 * config/m68hc11/m68hc11.c (TARGET_CAN_ELIMINATE): Define macro.
7458 (m68hc11_can_eliminate): New function.
7459
7460 * config/m68k/m68k.h (CAN_ELIMINATE): Remove macro.
7461 * config/m68k/m68k.c (TARGET_CAN_ELIMINATE): Define macro.
7462 (m68k_can_eliminate): New function.
7463
7464 * config/mep/mep.h (CAN_ELIMINATE): Remove macro.
7465 * config/mep/mep.c (TARGET_CAN_ELIMINATE): Define macro.
7466 (mep_can_eliminate): New function.
7467
7468 * config/mips/mips.h (CAN_ELIMINATE): Remove macro.
7469 * config/mips/mips.c (TARGET_CAN_ELIMINATE): Define macro.
7470 (mips_can_eliminate): New function.
7471
7472 * config/rs6000/rs6000.h (CAN_ELIMINATE): Remove macro.
7473 * config/rs6000/rs6000.c (TARGET_CAN_ELIMINATE): Define macro.
7474 (rs6000_can_eliminate): New function.
7475
7476 * config/s390/s390.h (CAN_ELIMINATE): Remove macro.
7477 * config/s390/s390.c (TARGET_CAN_ELIMINATE): Define macro.
7478 (s390_can_eliminate): Declare as static.
7479 * config/s390/s390-protos.h (sparc_can_eliminate): Remove.
7480
7481 * config/score/score.h (CAN_ELIMINATE): Remove macro.
7482 * config/score/score.c (TARGET_CAN_ELIMINATE): Define macro.
7483 (score_can_eliminate): New function.
7484
7485 * config/sparc/sparc.h (CAN_ELIMINATE): Remove macro.
7486 * config/sparc/sparc.c (TARGET_CAN_ELIMINATE): Define macro.
7487 (sparc_can_eliminate): Declare as static.
7488 * config/sparc/sparc-protos.h (sparc_can_eliminate): Remove.
7489
7490 * config/stormy16/stormy16.h (CAN_ELIMINATE): Remove macro.
7491 * config/stormy16/stormy16.c (TARGET_CAN_ELIMINATE): Define macro.
7492 (xstormy16_can_eliminate): New function.
7493
7494 * config/v850/v850.h (CAN_ELIMINATE): Remove macro.
7495 * config/v850/v850.c (TARGET_CAN_ELIMINATE): Define macro.
7496 (v850_can_eliminate): New function.
7497
7498 2009-08-25 Uros Bizjak <ubizjak@gmail.com>
7499
7500 * config/alpha/alpha.md (*cmpdf_ieee_ext[123]): Remove.
7501 (*cmpdf_internal): Enable for all ALPHA_FPTM levels.
7502 (*movdfcc_ext[1234]): Disable for IEEE mode.
7503
7504 2009-08-25 Eric Botcazou <ebotcazou@adacore.com>
7505
7506 * gimplify.c (prepare_gimple_addressable): New static function.
7507 (gimplify_modify_expr_to_memcpy): Invoke it on the RHS before marking
7508 it addressable.
7509 (gimplify_addr_expr): Invoke it similarly on the operand instead of
7510 manually fiddling with it.
7511
7512 2009-08-25 Michael Matz <matz@suse.de>
7513
7514 * expr.h (jumpifnot_1, jumpif_1, do_jump_1): Declare.
7515 * dojump.c (do_jump_by_parts_greater): Take two operands instead of
7516 full expression.
7517 (do_jump_by_parts_equality, do_compare_and_jump): Ditto.
7518 (jumpifnot_1, jumpif_1): New wrappers for do_jump_1.
7519 (do_jump): Split out code for simple binary comparisons into ...
7520 (do_jump_1): ... this, taking the individual operands and code.
7521 Change callers to helper function above accordingly.
7522 * expr.c (expand_expr_real_1): Use jumpifnot_1 for simple binary
7523 comparisons.
7524
7525 2009-08-25 Michael Matz <matz@suse.de>
7526
7527 * expr.h (struct separate_ops, sepops): New type for passing
7528 around an exploded simple expression.
7529 * optabs.c (expand_widen_pattern_expr, expand_vec_shift_expr):
7530 Use this structure instead of expression tree.
7531 (get_vcond_icode, expand_vec_cond_expr_p): Don't take whole
7532 expression, only its type.
7533 (expand_vec_cond_expr): Take type and individual operands instead
7534 of full expression.
7535 * optabs.h (expand_widen_pattern_expr, expand_vec_cond_expr,
7536 expand_vec_shift_expr): Change prototype accordingly.
7537 * tree-vect-stmts.c (vectorizable_condition): Change call of
7538 expand_vec_cond_expr_p to pass only type.
7539 * expr.c (do_store_flags): Change prototype and implementation
7540 to take an exploded expression.
7541 (expand_expr_real_1): New local ops initialized with details
7542 of the full expression. Use it instead of full
7543 expression in calls to do_store_flags, expand_vec_cond_expr,
7544 expand_widen_pattern_expr and expand_vec_shift_expr.
7545
7546 2009-08-25 Michael Matz <matz@suse.de>
7547
7548 * expr.c (expand_expr_real_1): New local treeop0, treeop1,
7549 treeop2 initialized with first three operands of the full expression.
7550 Substitute all TREE_OPERAND (exp, [012]) calls with them.
7551
7552 2009-08-25 Kai Tietz <kai.tietz@onevision.com>
7553
7554 * gcc/gthr-win32.h (__UNUSED_PARAM): Define, if not already present.
7555 (__gthread_objc_condition_allocate): Mark arguments as unused.
7556 (__gthread_objc_condition_deallocate): Likewise.
7557 (__gthread_objc_condition_wait): Likewise.
7558 (__gthread_objc_condition_broadcast): Likewise.
7559 (__gthread_objc_condition_signal): Likewise.
7560 (__gthread_objc_thread_detach): Cast via INT_PTR to pointer.
7561 (__gthread_objc_thread_id): Likewise.
7562
7563 2009-08-25 Janus Weil <janus@gcc.gnu.org>
7564
7565 PR middle-end/41149
7566 * tree-pretty-print.c (print_call_name): Print the correct call name
7567 for procedure pointer components.
7568
7569 2009-08-24 Steve Ellcey <sje@cup.hp.com>
7570
7571 * config/ia64/ia64.c (ia64_promote_function_mode): Call
7572 default_promote_function_mode when not VMS.
7573
7574 2009-08-24 Olivier Hainque <hainque@adacore.com>
7575
7576 * convert.c (convert_to_integer): Don't assume an input pointer is
7577 POINTER_SIZE wide. Fetch from the type instead.
7578
7579 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7580
7581 * configure.ac (AC_PREREQ): Bump to 2.64.
7582
7583 2009-08-24 Rafael Avila de Espindola <espindola@google.com>
7584
7585 * gcc.c (standard_exec_prefix_1,standard_exec_prefix_2): Remove.
7586 (process_command): Don't search standard_exec_prefix_1 and
7587 standard_exec_prefix_2.
7588
7589 2009-08-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7590
7591 * config/arm/arm.c (output_return_instruction): Handle for
7592 unified syntax.
7593
7594 2009-08-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7595
7596 * config/arm/arm.c (arm_select_cc_mode): Handle subreg.
7597
7598 2009-08-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7599
7600 * config/arm/vfp.md (*arm_movdi_vfp): Mark as predicable.
7601 (*arm_movdf_vfp): Likewise.
7602
7603 2009-08-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7604
7605 * config/arm/neon.md (vashl<mode>3): Rename from ashl<mode>3.
7606 (vashr<mode>3): Rename from ashr<mode>3.
7607 (vlshr<mode>3): Rename from lshr<mode>3.
7608
7609 2009-08-24 Kai Tietz <kai.tietz@onevision.com>
7610
7611 PR/40786
7612 * c-format.c (format_wanted_type): Add new member scalar_identity_flag.
7613 (check_format_info_main): Use scalar_identify_flag.
7614 (check_format_types): Check for scalar size identity if
7615 scalar_identify_flag is set.
7616 (printf_length_specs): Extend by new field.
7617 (asm_fprintf_length_specs): Likewise.
7618 (gcc_diag_length_specs): Likewise.
7619 (scanf_length_specs): Likewise.
7620 (strfmon_length_specs): Likewise.
7621 (gcc_gfc_length_specs): Likewise.
7622 * config/i386/msformat-c.c (ms_printf_length_specs): Likewise.
7623 (ms_printf_flag_specs): Likewise.
7624 * c-format.h (format_length_info): Add new member scalar_identity_flag.
7625
7626 2009-08-23 Uros Bizjak <ubizjak@gmail.com>
7627
7628 PR target/40718
7629 * config/i386/i386.c (*call_pop_1): Disable for sibling calls.
7630 (*call_value_pop_1): Ditto.
7631 (*sibcall_pop_1): New insn pattern.
7632 (*sibcall_value_pop_1): Ditto.
7633
7634 2009-08-23 Alan Modra <amodra@bigpond.net.au>
7635
7636 PR target/41081
7637 * config/rs6000/rs6000.md (rotlsi3_64, ashlsi3_64, lshrsi3_64,
7638 ashrsi3_64): New.
7639
7640 2009-08-23 Alan Modra <amodra@bigpond.net.au>
7641
7642 PR target/41081
7643 * fwprop.c (try_fwprop_subst): Allow multiple sets.
7644 (get_reg_use_in): New function.
7645 (forward_propagate_subreg): Propagate through subreg of zero_extend
7646 or sign_extend.
7647
7648 2009-08-22 Kaz Kojima <kkojima@gcc.gnu.org>
7649
7650 * config/sh/t-sh (TARGET_LIBGCC2_CFLAGS): Define.
7651 * config/sh/t-netbsd (TARGET_LIBGCC2_CFLAGS): Add -mieee.
7652
7653 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7654
7655 * configure.ac: Remove --with-datarootdir, --with-docdir,
7656 --with-htmldir switches. No need to call AC_SUBST for
7657 datarootdir, docdir, htmldir any more.
7658 * configure: Regenerate.
7659 * doc/install.texi (Configuration): Document --datarootdir,
7660 --docdir, --htmldir, --pdfdir; update documentation for
7661 --infodir, --mandir.
7662 (Prerequisites): Bump Autoconf version to 2.64, Automake to 1.11,
7663 M4 to 1.4.6.
7664
7665 * aclocal.m4: Regenerate.
7666 * config.in: Regenerate.
7667 * configure: Regenerate.
7668
7669 2009-08-21 Douglas B Rupp <rupp@gnat.com>
7670 Olivier Hainque <hainque@adacore.com>
7671
7672 * config/ia64/ia64.c: Include libfuncs.h.
7673 (TARGET_PROMOTE_FUNCITON_MODE): Define target macro.
7674 (ia64_expand_call): Use reg 25 on VMS.
7675 (ia64_initialize_trampoline): Fix for VMS ABI.
7676 (ia64_function_arg_offset): Always returns 0 when TARGET_ABI_OPEN_VMS.
7677 (ia64_function_arg): Initialize reg 25 on VMS.
7678 Fix OpenVMS ABI issues for varargs.
7679 For OpenVMS, emit the Argument Information register set in the
7680 incoming/sibcall case as well.
7681 (ia64_arg_type): New function.
7682 (ia64_function_arg_advance): Keep track of cum->words.
7683 Fix OpenVMS ABI issues for varargs.
7684 (ia64_function_value): On VMS, promote mode of non-aggregate types.
7685 (ia64_override_options): Set flag_no_common on VMS.
7686 (ia64_init_builtins): Disable FWRITE builtin.
7687 (ia64_asm_output_external): Call DO_CRTL_NAMES.
7688 (ia64_vms_init_libfuncs): Add decc$ routines.
7689 (ia64_vms_valid_pointer_mode): New function.
7690 (ia64_struct_value_rtx): Allways NULL_RTX on VMS.
7691 (ia64_promote_function_mode): New function
7692 * config/ia64/ia64.h (TARGET_ABI_OPEN_VMS): Define as 0 for default.
7693 (LONG_DOUBLE_TYPE_SIZE): Force to 64 on VMS.
7694 (LIBCGC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
7695 (INIT_CUMULATIVE_ARGS): Add atypes for VMS.
7696 (INIT_CUMULATIVE_INCOMING_ARGS): Likewise.
7697 (ASM_OUTPUT_DEF): Use ISDIGIT instead of isdigit.
7698 Suppress trailing '#' if VALUE is numeric.
7699 * config/ia64/vms.h (PROMOTE_FUNCTION_MODE): Remove, code moved to
7700 ia64_promote_function_mode.
7701 (TARGET_VALID_POINTER_MODE): Define.
7702
7703 2009-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
7704
7705 PR target/40671
7706 * config/rs6000/rs6000.c (rs6000_override_options): Use
7707 TARGET_64BIT instead of TARGET_POWERPC64 to set the size of pointers.
7708
7709 PR target/41145
7710 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Fix
7711 reporting of vector + decimal/boolean/complex error.
7712
7713 2009-08-21 Jakub Jelinek <jakub@redhat.com>
7714
7715 * config/rs6000/rs6000.c (rs6000_init_builtins): Fix type of
7716 __vector double TYPE_DECL.
7717
7718 2009-08-21 Richard Earnshaw <rearnsha@arm.com>
7719
7720 * arm.h (MACHMODE): New define. Include insn-modes.h if available.
7721 (CUMULATIVE_ARGS): Use MACHMODE for declaration of aapcs_vfp_mode.
7722 * arm.c (aapcs_vfp_is_call_or_return_candidate): Change base_mode
7723 to pointer to enum machine_mode. Update all callers as needed.
7724
7725 2009-08-21 Uros Bizjak <ubizjak@gmail.com>
7726
7727 * config/alpha/alpha.md (exception_receiver): Emit alternative
7728 GP load sequence if flag_reorder_blocks_and_partition is set.
7729 (*exception_receiver_2): Also enable when
7730 flag_reorder_blocks_and_partition is set.
7731
7732 2009-08-20 Matt Rice <ratmice@gmail.com>
7733 Diego Novillo <dnovillo@google.com>
7734
7735 * Makefile.in (PLUGIN_HEADERS): Include incpath.h and
7736 tree-ssa-sccvn.h.
7737
7738 2009-08-20 Richard Guenther <rguenther@suse.de>
7739
7740 * c-objc-common.h (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Do not define.
7741 * c-tree.h (c_dup_lang_specific_decl): Remove.
7742 (struct lang_decl, struct lang_type): Move definitions ...
7743 * c-lang.h: ... here. New file.
7744 * c-decl.c: Include c-lang.h.
7745 (c_dup_lang_specific_decl): Remove.
7746 * c-typeck.c: Include c-lang.h.
7747 * Makefile.in (c-decl.o): Add c-lang.h dependency.
7748 (c-typeck.o): Likewise.
7749 * c-config-lang.in (gtfiles): Add c-lang.h.
7750 * gengtype.c (get_output_file_with_visibility): Handle c-lang.h
7751 like c-tree.h.
7752
7753 2009-08-20 Uros Bizjak <ubizjak@gmail.com>
7754
7755 * config/alpha/alpha.c (alpha_end_function): Do not clear
7756 crtl->emit structure and free insn locators if cfun->is_thunk is true,
7757 this is now handled in generic code.
7758
7759 2009-08-20 Andreas Krebbel <krebbel1@de.ibm.com>
7760
7761 * config/s390/s390.c (Z10_PREDICT_DISTANCE): New macro.
7762 (s390_z10_fix_long_loop_prediction): New function.
7763 (s390_z10_optimize_cmp): INSN walk moved to callee - s390_reorg.
7764 (s390_reorg): Walk over the INSNs and invoke
7765 s390_z10_fix_long_loop_prediction and s390_z10_optimize_cmp.
7766
7767 2009-08-20 Andreas Krebbel <krebbel1@de.ibm.com>
7768
7769 * config/s390/s390.md ("*brx_stage1_<GPR:mode>", "*brxg_64bit",
7770 "*brx_64bit", "*brx_31bit"): New patterns.
7771 * config/s390/s390.c ('E'): New output modifier.
7772
7773 2009-08-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7774 Richard Earnshaw <richard.earnshaw@arm.com>
7775
7776 * config/arm/arm.c (arm_emit_movpair): Handle CONST_INT.
7777 * config/arm/arm.md (*arm_movtas_ze): New pattern for movt.
7778
7779 2009-08-19 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7780
7781 * pa.md (reload_inhi, reload_outhi, reload_inqi, reload_outqi): New
7782 patterns.
7783 * pa.c (emit_move_sequence): Check if address of operand1 is valid
7784 for mode mode of operand0 when doing secondary reload for SAR.
7785
7786 2009-08-19 Jakub Jelinek <jakub@redhat.com>
7787
7788 PR middle-end/41123
7789 * expr.c (expand_expr_real_1) <normal_inner_ref>: Handle all kinds
7790 of CONCAT, not just bitpos 0 bitsize size of the whole CONCAT.
7791
7792 2009-08-19 Jason Merrill <jason@redhat.com>
7793
7794 * doc/invoke.texi (C++ Dialect Options): Note change of minimum
7795 supported template depth in C++0x.
7796
7797 2009-08-19 Jakub Jelinek <jakub@redhat.com>
7798
7799 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Don't call
7800 free_after_compilation.
7801 * config/score/score7.c (score7_output_mi_thunk): Likewise.
7802 * config/score/score3.c (score3_output_mi_thunk): Likewise.
7803 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
7804 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
7805 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
7806 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
7807 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
7808
7809 2009-08-19 Ian Lance Taylor <iant@google.com>
7810
7811 * doc/md.texi (Insn Canonicalizations): Correct canonicalization
7812 of (plus (mult (neg B) C) A).
7813
7814 2009-08-18 Michael Matz <matz@suse.de>
7815
7816 * omp-low.c (optimize_omp_library_calls): Use types_compatible_p
7817 instead of comparing TYPE_MAIN_VARIANT for equality.
7818 * tree-vect-patterns.c (vect_recog_dot_prod_pattern,
7819 vect_recog_widen_mult_pattern, vect_recog_widen_sum_pattern): Ditto.
7820 * tree-vect-loop.c (vect_is_simple_reduction): Ditto.
7821 * gimplify.c (goa_lhs_expr_p): Ditto and use
7822 STRIP_USELESS_TYPE_CONVERSION.
7823
7824 2009-08-18 Michael Matz <matz@suse.de>
7825
7826 * tree-ssa-structalias.c (create_variable_info_for): Also mark
7827 first field in a struct.
7828 (intra_create_variable_infos): Don't deal with flag_argument_noalias.
7829
7830 2009-08-18 Uros Bizjak <ubizjak@gmail.com>
7831
7832 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn
7833 locators before emit_insn is called. Remove assert that
7834 cfun->is_thunk.
7835 (alpha_end_function): Clear crtl->emit structure and free insn
7836 locators if cfun->is_thunk is true.
7837
7838 2009-08-18 Jason Merrill <jason@redhat.com>
7839
7840 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
7841 type if available.
7842 * configure.ac: Test for it.
7843 * configure, config.in: Regenerate.
7844 * doc/install.texi: Document --enable-gnu-unique-object.
7845
7846 2009-08-18 Richard Guenther <rguenther@suse.de>
7847
7848 PR middle-end/41094
7849 * builtins.c (fold_builtin_pow): Fold pow(pow(x,y),z) to
7850 pow(x,y*z) only if x is nonnegative.
7851
7852 2009-08-18 Jakub Jelinek <jakub@redhat.com>
7853
7854 * bb-reorder.c (fix_up_fall_thru_edges): Only call invert_jump
7855 on jumps.
7856
7857 PR target/40971
7858 * config/rs6000/rs6000.c (rs6000_legitimize_address): For
7859 [DT][FDI]mode ensure the offset isn't 4/8/12 bytes below 0x8000.
7860
7861 2009-08-17 DJ Delorie <dj@redhat.com>
7862
7863 * config/m32c/m32c.md (UNS_FSETB, UNS_FREIT): New.
7864 * config/m32c/prologue.md (epilogue_freit): New.
7865 (fset_b): New.
7866 * config/m32c/m32c.c (m32c_function_needs_enter): Add prototype.
7867 (bank_switch_p): Likewise.
7868 (fast_interrupt_p): Likewise.
7869 (interrupt_p): Likewise.
7870 (m32c_conditional_register_usage): Round memregs size up.
7871 (need_to_save): We only need to save $a0 when we use ENTER.
7872 (interrupt_p): Check for fast_interrupt too.
7873 (bank_switch_p): New.
7874 (fast_interrupt_p): New.
7875 (m32c_attribute_table): Add bank_switch and fast_interrupt.
7876 (m32c_emit_prolog): Support bank switching and fast interrupts.
7877 * doc/extend.texi (Function Attributes): Add bank_switch and
7878 fast_interrupt.
7879
7880 2009-08-17 Douglas B Rupp <rupp@gnat.com>
7881
7882 * config/alpha/alpha.c (vms_valid_pointer_mode): New function.
7883 * config/alpha/vms.h (TARGET_VALID_POINTER_MODE): Define.
7884
7885 2009-08-16 Douglas B Rupp <rupp@gnat.com>
7886
7887 * doc/invoke.texi (Target options): Add new option list for IA-64/VMS.
7888 (menu): Add IA-64/VMS Options.
7889 (IA-64/VMS Options): Likewise.
7890
7891 2009-08-16 Richard Sandiford <rdsandiford@googlemail.com>
7892
7893 PR target/38599
7894 * config/mips/mips.md (*lwxs): Use :P for pointer values.
7895
7896 2009-08-16 Richard Sandiford <rdsandiford@googlemail.com>
7897
7898 * config/mips/mips-protos.h (mips_push_asm_switch): New function.
7899 (mips_pop_asm_switch): Likewise.
7900 * config/mips/mips.c (set_noreorder, set_nomacro, set_noat): Replace
7901 with...
7902 (mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
7903 (mips_push_asm_switch_1, mips_pop_asm_switch_1): New functions.
7904 (mips_push_asm_switch, mips_pop_asm_switch): Likewise.
7905 (mips_print_operand_punctuation): Use them. Check mips_noreorder
7906 instead of set_noreorder.
7907 (mips_output_function_prologue): Use the new functions.
7908 (mips_output_function_epilogue): Likewise.
7909 (mips_need_noat_wrapper_p): New function, split out from...
7910 (mips_final_prescan_insn, mips_final_postscan_insn): ...here.
7911 Use mips_push_asm_switch and mips_pop_asm_switch.
7912 * config/mips/mips.h (FUNCTION_PROFILER): Use mips_push_asm_switch
7913 and mips_pop_asm_switch.
7914 (ASM_OUTPUT_REG_POP): Likewise.
7915 (DBR_OUTPUT_SEQEND): Remove boilerplate comment.
7916 Use mips_pop_asm_switch.
7917 (mips_asm_switch): New structure.
7918 (set_noreorder, set_nomacro): Replace with...
7919 (mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
7920 * config/mips/mips.md (fix_truncdfsi2_macro): Use mips_nomacro
7921 instead of set_nomacro.
7922 (fix_truncsfsi2_macro): Likewise.
7923 (cprestore): Likewise.
7924 (hazard): Use mips_noreorder instead of set_noreorder.
7925 * config/mips/sdemtk.h (FUNCTION_PROFILER): As for mips.h.
7926
7927 2009-08-16 Uros Bizjak <ubizjak@gmail.com>
7928
7929 * config/alpha/alpha.c (alpha_end_function): Handle NULL_RTX returned
7930 from prev_active_insn.
7931
7932 2009-08-16 Anatoly Sokolov <aesok@post.ru>
7933
7934 * config/avr/avr.h (AVR_HAVE_8BIT_SP): New macros.
7935 * config/avr/avr.c (avr_override_options): Initialize
7936 avr_current_arch variable.
7937 (avr_cpu_cpp_builtins): Define __AVR_HAVE_8BIT_SP__ or
7938 __AVR_HAVE_16BIT_SP__ according to the device type.
7939 (expand_prologue, output_movhi): Use AVR_HAVE_8BIT_SP instead of
7940 TARGET_TINY_STACK.
7941 (expand_epilogue): Use correct QI mode frame pointer for tiny stack.
7942 Use AVR_HAVE_8BIT_SP instead of TARGET_TINY_STACK.
7943
7944 2009-08-16 Dodji Seketeli <dodji@redhat.com>
7945
7946 PR debug/37801
7947 * gcc/dwarf2out.c (gen_inlined_subroutine_die): Concentrate on
7948 generating inlined subroutine die only. We shouldn't be
7949 called for anything else.
7950 (gen_block_die): Don't generate inline subroutine debug info for
7951 abstract blocks.
7952
7953 2009-08-15 Sebastian Pop <sebastian.pop@amd.com>
7954
7955 * graphite-poly.c (print_pbb): Print PBB index.
7956
7957 2009-08-15 Sebastian Pop <sebastian.pop@amd.com>
7958
7959 PR middle-end/40981
7960 * graphite-interchange.c (ppl_max_for_le): Moved...
7961 * graphite-poly.c (pbb_number_of_iterations): Call ppl_max_for_le.
7962 * graphite-ppl.c (ppl_max_for_le): ... here. Correct the use of
7963 ppl_Pointset_Powerset_C_Polyhedron_maximize.
7964 * graphite-ppl.h (ppl_max_for_le): Declared.
7965
7966 2009-08-14 Olatunji Ruwase <tjruwase@google.com>
7967
7968 * doc/extend.texi (Symbol-Renaming Pragmas): redefine_extname is
7969 supported on all platforms.
7970 * target.h (struct gcc_target): Remove handle_pragma_redefine_extname.
7971 * c-cppbuiltin.c: Remove use of targetm.handle_pragma_redefine_extname.
7972 * c-pragma.c: Likewise.
7973 * target-def.h (TARGET_INITIALIZER): Remove
7974 TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
7975 * config/sol2.h: Remove use of TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
7976
7977 2009-08-14 Douglas B Rupp <rupp@gnat.com>
7978
7979 * config/ia64/fde-vms.c: New file.
7980 * config/ia64/fde-glibc.c (_Unwind_FindTableEntry): Add dummy arg.
7981 * config/ia64/unwind-ia64.c (UNW_ accessors): Move to unwind-ia64.h
7982 (MD_UNW_COMPATIBLE_PERSONALITY_P): Provide default.
7983 (uw_frame_state_for): Only register a personality routine if it is
7984 known to be compatible with our expectations.
7985 (_Unwind_FindEnclosingFunction, uw_frame_state_for):
7986 Declare unw_table_entry stack variable and
7987 mod all calls to _Unwind_FindTableEntry to add arg.
7988 * config/ia64/unwind-ia64.h (UNW_ accessors): Move here.
7989 (_Unwind_FindTableEntry): Add arg to prototype.
7990
7991 2009-08-14 Eric Botcazou <ebotcazou@adacore.com>
7992
7993 * config/ia64/unwind-ia64.c (struct _Unwind_Context): Add new
7994 field 'signal_pfs_loc'.
7995 (uw_frame_state_for): Remove duplicate code dealing with leaf
7996 procedures without unwind info.
7997 If in the frame after unwinding through a signal handler, restore
7998 the AR.PFS register instead of the CFM if AR.PFS has not been saved.
7999 * config/ia64/linux-unwind.h (ia64_fallback_frame_state): Do not set
8000 'pfs_loc' to the AR.PFS location in the signal context; instead
8001 set 'signal_pfs_loc'.
8002 Manually generate the unwind info for the AR.PFS register.
8003 (ABI_MARKER_OLD_LINUX_SIGTRAMP, ABI_MARKER_OLD_LINUX_INTERRUPT,
8004 ABI_MARKER_LINUX_SIGTRAMP, ABI_MARKER_LINUX_INTERRUPT): Define.
8005 (ia64_handle_unwabi): Test 'fs->unwabi' against them.
8006 Do not set 'pfs_loc' to the AR.PFS location in the signal context;
8007 instead set 'signal_pfs_loc'.
8008 Remove code preventing the AR.PFS register from being restored
8009 from the signal context.
8010
8011 2009-08-14 Douglas B Rupp <rupp@gnat.com>
8012 Tristan Gingold <gingold@adacore.com>
8013
8014 * config.gcc (ia64-hp-*vms*): Insert ia64/t-ia64 in tmake_file.
8015 * config/ia64/t-vms: New file.
8016 * config/ia64/vms64.h: New file.
8017 * config/ia64/vms.h: New file.
8018 * config/ia64/vms-crtinit.asm: New file.
8019 * config/ia64/vms_symvec_libgcc_s.opt: New file.
8020 * config/ia64/vms-unwind.h: New file.
8021
8022 2009-08-14 Uros Bizjak <ubizjak@gmail.com>
8023
8024 * config/alpha/alpha.c (alpha_emit_conditional_move): Handle
8025 TFmode compares.
8026
8027 2009-08-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8028
8029 PR middle-end/30789
8030 * builtins.c (do_mpc_arg2): Make extern, define for any MPC version.
8031 Move declaration...
8032 * real.h (do_mpc_arg2): ... here.
8033 * fold-const.c (const_binop): Use MPC for complex MULT_EXPR
8034 and RDIV_EXPR.
8035
8036 2009-08-14 Rafael Avila de Espindola <espindola@google.com>
8037
8038 * final.c (add_debug_prefix_map): Don't use GC memory for
8039 old_prefix and new_prefix.
8040
8041 2009-08-14 Richard Guenther <rguenther@suse.de>
8042
8043 * ipa-prop.c (compute_complex_pass_through): If we cannot
8044 compute a non-varying offset for IPA_JF_ANCESTOR punt.
8045
8046 2009-08-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8047
8048 * c-lex.c (c_lex_with_flags): Increase size of local variable
8049 to avoid memory clobber.
8050
8051 2009-08-14 Paolo Bonzini <bonzini@gnu.org>
8052
8053 PR target/40934
8054 * config/i386/i386.c (ix86_fp_comparison_strategy):
8055 Only enable/disable sahf at function granularity.
8056
8057 2009-08-14 Hans-Peter Nilsson <hp@axis.com>
8058
8059 PR rtl-optimization/41064
8060 * reload1.c (reload_as_needed): Don't call extract_insn
8061 for known invalid replacements after calling
8062 validate_replace_rtx_group and verify_changes.
8063
8064 2009-08-14 Uros Bizjak <ubizjak@gmail.com>
8065
8066 PR target/41019
8067 * config/i386/sse.md (SSEMODE124C8): New mode iterator.
8068 (vcond<SSEMODEF2P:mode>): Assert that operation is supported by
8069 ix86_expand_fp_vcond.
8070 (vcond<SSEMODE124C8:mode>): Use SSEMODE124C8 instead of SSEMODE124.
8071 Assert that operation is supported by ix86_expand_int_vcond.
8072 (vcondu<SSEMODE124C8:mode>): Ditto.
8073
8074 2009-08-13 DJ Delorie <dj@redhat.com>
8075
8076 * config/i386/djgpp-stdint.h: New.
8077 * config.gcc (djgpp): Use it.
8078
8079 2009-08-13 Kaz Kojima <kkojima@gcc.gnu.org>
8080
8081 * config/sh/sh.c (sh_override_options): When flag_exceptions or
8082 flag_unwind_tables is on, turn flag_reorder_blocks_and_partition off.
8083
8084 2009-08-13 Ghassan Shobaki <ghassan.shobaki@amd.com>
8085
8086 * tree-ssa-loop-prefetch.c
8087 (prune_ref_by_group_reuse): Enhance probabilistic analysis
8088 for long-stride pruning.
8089 (compute_miss_rate): New function to compute the probability
8090 that two memory references access different cache lines.
8091
8092 2009-08-13 Dave Korn <dave.korn.cygwin@gmail.com>
8093
8094 * gcc/config/i386/cygwin.h (LINK_SPEC): Add --enable-auto-image-base.
8095
8096 2009-08-13 Richard Guenther <rguenther@suse.de>
8097
8098 PR middle-end/41047
8099 * tree-ssa-ccp.c (ccp_fold): When folding pointer additions
8100 use the constant pointer type.
8101 * gimplify.c (canonicalize_addr_expr): Canonicalize independent
8102 of CV qualifiers on the target pointer type.
8103 * tree-ssa.c (useless_type_conversion_p): Move incomplete pointer
8104 conversion check before restrict check.
8105
8106 2009-08-12 Kaz Kojima <kkojima@gcc.gnu.org>
8107
8108 PR target/41029
8109 * config/sh/sh.md (reload_outdf__RnFRm+4): Fix thinko.
8110
8111 2009-08-12 Kaz Kojima <kkojima@gcc.gnu.org>
8112
8113 * config/sh/sh.c (sh_promote_function_mode): Add ATTRIBUTE_UNUSED.
8114
8115 2009-08-12 Richard Guenther <rguenther@suse.de>
8116
8117 PR tree-optimization/41011
8118 * ipa-cp.c (ipcp_lattice_from_jfunc): Deal with failing fold
8119 and reference constructing.
8120
8121 2009-08-12 Xinliang David Li <davidxl@google.com>
8122
8123 PR tree-optimization/41012
8124 * tree-flow.h : New external interface.
8125 * gimple-low.c (check_call_arg): Change to public function.
8126 Remove argument mismatch check in lowering.
8127 * tree-inline.h (tree_can_inline_p): Interface change.
8128 * tree-inline.c (tree_can_inline_p): Fold argument mismatch check
8129 into this function.
8130 * ipa-inline.c (cgraph_decide_inlining_of_small_functions):
8131 Call change to tree_can_inline_p function.
8132 (cgraph_decide_inlining_incrementally): Ditto.
8133
8134 2009-08-12 Richard Sandiford <rdsandiford@googlemail.com>
8135
8136 PR tree-optimization/41031
8137 * tree-outof-ssa.c (insert_value_copy_on_edge): Use promote_decl_mode
8138 on the partition variable rather than promote_mode on the source
8139 type. Assert that the partition variable's type has the same
8140 mode as the source value's.
8141
8142 2009-08-12 Paolo Bonzini <bonzini@gnu.org>
8143
8144 * doc/tm.texi (TARGET_PROMOTE_FUNCTION_MODE): Add documentation
8145 for for_return == 2.
8146 * function.c (assign_parm_setup_reg): Use for_return == 2, improve
8147 comments.
8148 * calls.c (expand_call): Fix typo.
8149 * explow.c (promote_decl_mode): Use for_return == 2 for RESULT_DECL
8150 and PARM_DECL.
8151 * stmt.c (expand_value_return): Use promote_function_mode to copy out
8152 of pseudo.
8153 * targhooks.c (default_promote_function_mode): Handle for_return == 2.
8154 * config/cris/cris.c (cris_promote_function_mode): Likewise.
8155 * config/mmix/mmix.c (mmix_promote_function_mode): Likewise.
8156 * config/pa/pa.c (pa_promote_function_mode): Likewise.
8157
8158 2009-08-12 Andrew Haley <aph@redhat.com>
8159
8160 * config/arm/arm.c (arm_init_libfuncs): Add __sync_synchronize.
8161
8162 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
8163
8164 PR bootstrap/40103
8165 * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
8166
8167 2009-08-12 Richard Guenther <rguenther@suse.de>
8168
8169 * alias.c (get_alias_set): Honor TYPE_STRUCTURAL_EQUALITY_P.
8170 * gimplify.c (gimplify_modify_expr): Do not use
8171 lang_hooks.types_compatible_p.
8172 * tree-ssa.c (useless_type_conversion_p): For aggregates
8173 just return false if the canonical types differ.
8174
8175 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
8176
8177 PR middle-end/40980
8178 * sese.c (convert_for_phi_arg): New.
8179 (add_guard_exit_phis): Use convert_for_phi_arg.
8180
8181 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
8182
8183 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Dont add
8184 unknown subscript upper bounds.
8185
8186 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
8187 Pranav Garg <pranav.garg2107@gmail.com>
8188
8189 * graphite-interchange.c (gather_access_strides): Removed.
8190 (ppl_max_for_le): New.
8191 (build_linearized_memory_access): New.
8192 (memory_stride_in_loop): New.
8193 (pbb_interchange_profitable_p): Reimplemented.
8194 * graphite-ppl.h (ppl_new_id_map): New.
8195 (ppl_interchange): New.
8196
8197 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
8198
8199 * graphite-interchange.c (compute_subscript): Removed.
8200 (compute_array_size_cstr): Removed.
8201 (compute_array_size_poly): Removed.
8202 (compute_array_size): Removed.
8203 (gather_access_strides_poly): Removed.
8204 (gather_access_strides): Empty.
8205
8206 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
8207
8208 * graphite-dependences.c (dependence_polyhedron_1): Replace
8209 pdr_nb_subscripts with PDR_NB_SUBSCRIPTS.
8210 (graphite_legal_transform_dr): Same.
8211 (graphite_carried_dependence_level_k): Same.
8212 * graphite-poly.c (new_poly_dr): Add a parameter nb_subscripts.
8213 Initialize PDR_NB_SUBSCRIPTS.
8214 (print_pdr_access_layout): Replace pdr_nb_subscripts with
8215 PDR_NB_SUBSCRIPTS.
8216 * graphite-poly.h (struct poly_dr): Add nb_subscripts field.
8217 (PDR_NB_SUBSCRIPTS): New.
8218 (pdr_nb_subscripts): Removed.
8219 (pdr_dim): Simplified.
8220 * graphite-sese-to-poly.c (build_poly_dr): Replace pdr_nb_subscripts
8221 with PDR_NB_SUBSCRIPTS.
8222
8223 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
8224
8225 * graphite-interchange.c (compute_array_size): Remove use of
8226 PDR_DATA_CONTAINER.
8227 * graphite-poly.c (new_poly_dr): Remove argument data_container.
8228 Do not initialize PDR_DATA_CONTAINER.
8229 (print_pdr): Do not print PDR_DATA_CONTAINER.
8230 * graphite-poly.h (struct poly_dr): Remove data_container field.
8231 (PDR_DATA_CONTAINER): Removed.
8232 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Remove use of
8233 PDR_DATA_CONTAINER.
8234 (build_poly_dr): Same.
8235
8236 2009-08-12 Konrad Trifunovic <konrad.trifunovic@gmail.com>
8237 Sebastian Pop <sebastian.pop@amd.com>
8238
8239 * graphite-dependences.c (graphite_legal_transform_dr): Work on a
8240 copy of the dependence polyhedron. Free the temporary objects.
8241 (graphite_carried_dependence_level_k): Free unused objects before
8242 returning.
8243
8244 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
8245
8246 * graphite-blocking.c (scop_do_strip_mine): Call store_scattering.
8247 Early return without analyzing the data dependences if no
8248 transform has been done. Call restore_scattering if the transform
8249 is not legal.
8250 (graphite-interchange.c): Same.
8251 * graphite-poly.c (print_scattering_function): Test for
8252 PBB_TRANSFORMED.
8253 (graphite_read_transforms): Initialize PBB_TRANSFORMED.
8254 (apply_poly_transforms): Do not gcc_assert that
8255 the transform is legal.
8256 (new_poly_bb): Initialize PBB_TRANSFORMED, PBB_SAVED and PBB_ORIGINAL.
8257 Do not initialize PBB_NB_SCATTERING_TRANSFORM, PBB_NB_LOCAL_VARIABLES,
8258 PBB_TRANSFORMED_SCATTERING, and PBB_ORIGINAL_SCATTERING.
8259 (free_poly_dr): Free PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL.
8260 * graphite-poly.h (struct poly_scattering): New.
8261 (struct poly_bb): Add original, transformed, and saved fields.
8262 Remove transformed_scattering, original_scattering,
8263 nb_local_variables and nb_scattering_transform fields.
8264 (PBB_ORIGINAL, PBB_TRANSFORMED, PBB_SAVED): New.
8265 (poly_scattering_new): New.
8266 (poly_scattering_free): New.
8267 (poly_scattering_copy): New.
8268 (store_scattering_pbb): New.
8269 (store_scattering): New.
8270 (restore_scattering_pbb): New.
8271 (restore_scattering): New.
8272 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
8273 Initialize PBB_TRANSFORMED and PBB_ORIGINAL.
8274
8275 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
8276
8277 * graphite-poly.c (print_pbb): Add parentheses in the pretty print.
8278 (print_scop): Same.
8279
8280 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
8281
8282 * Makefile.in (graphite.o): Depends on PREDICT_H.
8283 * graphite.c: Include predict.h.
8284 (graphite_finalize): Call tree_estimate_probability.
8285 * predict.c (predict_loops): Do not call scev_initialize and
8286 scev_finalize.
8287 (tree_estimate_probability_bb): New.
8288 (tree_estimate_probability): Do not initialize loops: move that
8289 code to the driver. Call tree_estimate_probability_bb.
8290 (tree_estimate_probability_driver): New.
8291 (pass_profile): Use tree_estimate_probability_driver.
8292 * predict.h (tree_estimate_probability): Declared.
8293
8294 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
8295
8296 * graphite-clast-to-gimple.c (gloog): Add time to TV_GRAPHITE_CODE_GEN.
8297 * graphite-dependences.c (graphite_legal_transform): Add time to
8298 TV_GRAPHITE_DATA_DEPS.
8299 (dependency_between_pbbs_p): Same.
8300 * timevar.def (TV_GRAPHITE_DATA_DEPS, TV_GRAPHITE_CODE_GEN): New.
8301
8302 2009-08-12 Andrey Belevantsev <abel@ispras.ru>
8303
8304 PR rtl-optimization/41033
8305 * alias.c (nonoverlapping_component_refs_p): Punt when strict
8306 aliasing is disabled.
8307
8308 2009-08-11 Adam Nemet <anemet@caviumnetworks.com>
8309
8310 * config/mips/predicates.md (qi_mask_operand, hi_mask_operand,
8311 si_mask_operand, and_load_operand, low_bitmask_operand,
8312 and_reg_operand, and_operand): New predicates.
8313 * config/mips/constraints.md (Yb, Yh, Yw, Yz): New constraints.
8314 * config/mips/mips.c (and_operands_ok): New function.
8315 * config/mips/mips-protos.h (and_operands_ok): Declare it.
8316 * config/mips/mips.md (move_type): Add ext_ins and logical.
8317 (type): Handle them.
8318 (and<mode>3): Use and_reg_operand as the second operand's predicate.
8319 (*and<mode>3): Add alternatives for lbu, lhu, lwu, <d>ext and
8320 shift_shift. Remove commutative constraint modifier.
8321 (*and<mode>3_mips16): Add alternatives for lbu, lhu, lwu and
8322 shift_shift.
8323 (*clear_upper32_dext): Remove define_insn_and_split.
8324 (*clear_upper32): Turn this define_insn_and_split ...
8325 (splitter for ANDing register with 0xffff_ffff): .. into this.
8326
8327 2009-08-11 Adam Nemet <anemet@caviumnetworks.com>
8328
8329 * combine.c (try_widen_shift_mode): Factor out code to check if an
8330 integer constant is a low-order bitmask from here ...
8331 * rtlanal.c (low_bitmask_len): ... to here.
8332 * rtl.h (low_bitmask_len): Declare.
8333
8334 2009-08-11 Uros Bizjak <ubizjak@gmail.com>
8335
8336 PR target/8603
8337 * config/alpha/alpha.md (addsi3): Remove expander.
8338 (addsi3): Rename from *addsi3_internal insn pattern.
8339 (subsi3): Remove expander.
8340 (subsi3): Rename from *subsi3_internal insn pattern.
8341
8342 2009-08-11 Douglas B Rupp <rupp@gnat.com>
8343
8344 * config/alpha/alpha.c (alpha_init_builtins): Nullify FWRITE and
8345 FWRITE_UNLOCKED.
8346
8347 2009-08-11 Vasiliy Fofanov <fofanov@adacore.com>
8348 Eric Botcazou <botcazou@adacore.com>
8349 Douglas B Rupp <rupp@gnat.com>
8350
8351 * config/alpha/alpha.c (alpha_return_in_memory): On VMS, ensure
8352 that records that fit in 64 bits are returned by immediate value,
8353 as required by OpenVMS Calling Standard.
8354 (function_value): Adjust for above modification.
8355 (alpha_va_start) <TARGET_ABI_OPEN_VMS>: Use
8356 virtual_incoming_args_rtx as base object, not next_arg.
8357 * config/alpha/vms.h: (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
8358
8359 2009-08-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8360
8361 * reload.c (find_reloads_subreg_address): Check the original
8362 req_equiv_mem address to detect the case where an address is
8363 not valid in the outer mode.
8364
8365 2009-08-11 Richard Guenther <rguenther@suse.de>
8366
8367 PR bootstrap/40788
8368 * builtins.c (gimplify_va_arg_expr): Do not call SET_EXPR_LOCATION.
8369
8370 2009-08-10 Douglas B Rupp <rupp@gnat.com>
8371
8372 * config/alpha/vms.h (OPTIMIZATION_OPTIONS): Remove
8373 (OVERRIDE_OPTIONS): Incorporate removed OPTIMIZATION_OPTIONS.
8374
8375 2009-08-10 Olivier Hainque <hainqueu@adacore.com>
8376 Douglas B Rupp <rupp@gnat.com>
8377
8378 * config/alpha/alpha.c (alpha_sa_size): Force procedure type to
8379 PT_STACK when frame_pointer_needed on OpenVMS.
8380 (alpha_pv_save_size, alpha_using_fp): Remove.
8381 (alpha_vms_can_eliminate): New function. Support for CAN_ELIMINATE
8382 with proper processing for PT_NULL.
8383 (alpha_vms_initial_elimination_offset): New function. Support for
8384 INITIAL_ELIMINATION_OFFSET with proper processing for PT_NULL.
8385 (alpha_sa_size): Force procedure type to PT_STACK when
8386 frame_pointer_needed on OpenVMS.
8387 * config/alpha/alpha-protos.h (alpha_pv_save_size): Remove prototype.
8388 (alpha_using_fp): Likewise.
8389 (alpha_vms_can_eliminate): Add prototype.
8390 (alpha_vms_initial_elimination_offset): Likewise.
8391 * config/alpha/vms.h (CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET):
8392 Call alpha_vms_can_eliminate and alpha_vms_initial_elimination_offset.
8393
8394 2009-08-10 Eric Botcazou <botcazou@adacore.com>
8395 Douglas B Rupp <rupp@gnat.com>
8396
8397 * config/alpha/alpha.c (common_object_handler): New function.
8398 (vms_attribute_table): Declare a single attribute "common_object".
8399 (vms_output_aligned_decl_common): New global function.
8400 (SECTION_VMS_OVERLAY): Delete.
8401 (SECTION_VMS_GLOBAL): Likewise.
8402 (SECTION_VMS_INITIALIZE): Likewise.
8403 (vms_asm_named_section): Remove support for above flags.
8404 (vms_section_type_flags): Delete.
8405 (TARGET_SECTION_TYPE_FLAGS): Likewise.
8406 * config/alpha/alpha-protos.h (vms_output_aligned_decl_common): New.
8407 * config/alpha/vms.h (ASM_OUTPUT_ALIGNED_COMMON): Delete.
8408 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New macro.
8409
8410 2009-08-10 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
8411
8412 PR target/41015
8413 * longlong.h [__sh__] (udiv_qrnnd): Add T register to clobber list.
8414 (sub_ddmmss): Likewise.
8415
8416 2009-08-10 Andreas Tobler <a.tobler@schweiz.org>
8417
8418 PR bootstrap/41018
8419 * config/rs6000/freebsd.h: Define SVR4_ASM_SPEC. Adjust copyright
8420 year.
8421
8422 2009-08-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8423
8424 PR target/37053
8425 * reload1.c (reload_as_needed): Use cancel_changes to completely
8426 undo a failed replacement attempt.
8427
8428 2009-08-10 Richard Guenther <rguenther@suse.de>
8429
8430 PR middle-end/41006
8431 * tree-ssa.c (useless_type_conversion_p_1): Fold into ...
8432 (useless_type_conversion_p): ... here. Require pointer targets
8433 to be compatible.
8434
8435 2009-08-10 Dodji Seketeli <dodji@redhat.com>
8436
8437 PR c++/40866
8438 * tree-inline.c (copy_statement_list): The resulting copy shouldn't
8439 loose the original type of the statement list.
8440
8441 2009-08-09 Douglas B Rupp <rupp@gnat.com>
8442
8443 * config/alpha/alpha.c: Include libfuncs.h
8444 (avms_asm_output_extern): New function.
8445 (alpha_init_libfuncs): Init some decc libfuncs.
8446 * config/alpha/alpha-protos.h (avms_asm_output_external): Declare.
8447 * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Define.
8448 (DO_CRTL_NAMES): Define.
8449 (LIB_SPEC): Remove.
8450 * config/alpha/vms64.h: (POINTERS_EXTEND_UNSIGNED): Remove undef.
8451 (LONG_TYPE_SIZE): Define.
8452 (TARGET_OS_CPP_BUILTINS): Define with __LONG_POINTERS=1
8453 (SUBTARGET_SWITCHES): Define malloc64 switch.
8454 (TARGET_DEFAULT): Default MASK_MALLOC64 set.
8455 (MASK_RETURN_ADDR): Define.
8456 doc/invoke.texi (mmalloc64): Document switch.
8457
8458 2009-08-09 Olivier Hainque <hainque@adacore.com>
8459 Douglas B Rupp <rupp@gnat.com>
8460
8461 * config/alpha/alpha.c (struct machine_function): New flag for VMS,
8462 uses_condition_handler.
8463 (alpha_expand_builtin_establish_vms_condition_handler): New expander.
8464 (alpha_expand_builtin_revert_vms_condition_handler): New expander.
8465 (enum alpha_builtin): New ALPHA_BUILTIN_REVERT_VMS_CONDITION_HANDLER
8466 and ALPHA_BUILTIN_ESTABLISH_VMS_CONDITION_HANDLER values.
8467 (code_for_builtin): New insn codes for the new alpha_builtins.
8468 (alpha_init_builtins): Register the new functions as BUILT_IN_MD.
8469 (alpha_sa_size): Account for uses_condition_handler.
8470 (alpha_expand_prologue): Likewise.
8471 (alpha_start_function): Likewise.
8472 (alpha_expand_epilogue): Likewise.
8473 * config/alpha/alpha-protos.h: Prototype the new alpha.c builtin
8474 establish/revert expanders.
8475 * config/alpha/alpha.h (DWARF_FRAME_REGNUM): Define.
8476 * config/alpha/alpha.md (builtin_establish_vms_condition_handler):
8477 New expander, resorting to the alpha.c associated function.
8478 (builtin_revert_vms_condition_handler): Likewise.
8479 * config/alpha/vms-gcc_shell_handler.c: New file. Implements
8480 __gcc_shell_handler, the static VMS condition handler used as
8481 an indirection wrapper to the current dynamically established
8482 handler.
8483 * config/alpha/vms-unwind.h: Complete rewrite.
8484 * config/alpha/t-vms (LIB2FUNCS_EXTRA): Add vms-gcc_shell_handler.c
8485 * config/alpha/vms.h (MD_UNWIND_SUPPORT):
8486
8487 2009-08-09 Eric Botcazou <botcazou@adacore.com>
8488 Douglas B Rupp <rupp@gnat.com>
8489
8490 * config/alpha/alpha.c (alpha_links): Add 'target' field.
8491 (alpha_need_linkage): Handle aliases. Return function symbol.
8492 (alpha_use_linkage): Rename 'linkage' argument to 'func'.
8493 Use ultimate alias target for the linkage name.
8494 * config/alpha/alpha.md (movmemdi): Use the symbol returned
8495 by alpha_need_linkage for the function symbol.
8496 (setmemdi): Likewise.
8497
8498 2009-08-09 Douglas B Rupp <rupp@gnat.com>
8499
8500 * config/alpha/alpha.c (TARGET_ASM_UNALIGNED_*_OP): Define if on VMS.
8501 * config/alpha/vms.h (OBJECT_FORMAT_ELF): Define.
8502 (ASM_WEAKEN_LABEL): Define.
8503 (CRT_CALL_STATIC_FUNCTION): Define.
8504 (STARTFILE_SPEC): Add crtbegin.o crtbeginS.o.
8505 (ENDFILE_SPEC): Define.
8506 (INIT_SECTION_ASM_OP): Define.
8507 * config/alpha/vms-dwarf2eh.asm (__EH_FRAME_BEGIN__): Remove.
8508 * config/alpha/t-vms (EXTRA_PARTS): Add crtbegin.o crtbeginS.o
8509 crtend.o crtendS.o.
8510 (MULTILIB_OSDIRNAMES): Define.
8511 (shlib_version): Define.
8512 (SHLIB_EXT): Define.
8513 (SHLIB_OBJS): Define.
8514 (SHLIB_NAME): Define.
8515 (SHLIB_MULTILIB): Define.
8516 (SHLIB_INSTALL): Define.
8517 (SHLIB_SYMVEC): Define.
8518 (SHLIB_SYMVECX2): Define.
8519 (SHLIB_LINK): Define.
8520
8521 2009-08-09 Douglas B Rupp <rupp@gnat.com>
8522
8523 * config/alpha/alpha.c (alpha_initialize_trampoline):
8524 Initialize VMS trampoline IAW ABI for bounded procedure calls.
8525 (alpha_start_function): Emit transfer address on nested functions
8526 for VMS trampoline call.
8527 * config/alpha/t-vms (LIB2FUNCS_EXTRA): Remove vms_tramp.asm
8528 since no longer used.
8529 * config/alpha/vms-tramp.asm: Remove.
8530 * config/alpha/vms.h (TRAMPOLINE_TEMPLATE): Leave undefined
8531 since now only data initialized at runtime.
8532
8533 2009-08-09 Douglas B Rupp <rupp@gnat.com>
8534
8535 * config/alpha/vms.h (HANDLE_SYSV_PRAGMA): Define.
8536 (LINK_GCC_C_SEQUENCE_SPEC): Define.
8537 (MD_EXEC_PREFIX): Remove, no longer used.
8538 (MD_STARTFILE_PREFIX): Likewise.
8539 (INCLUDE_DEFAULTS): Likewise.
8540 * config/alpha/t-vms:
8541 (vms-dwarf2.o, vms-dwarf2eh.o): Use GCC_FOR_TARGET to compile.
8542
8543 2009-08-09 Richard Guenther <rguenther@suse.de>
8544
8545 PR tree-optimization/41016
8546 * tree-ssa-ifcombine.c (get_name_for_bit_test): Fix tuplification bug.
8547 (operand_precision): Remove.
8548 (integral_operand_p): Likewise.
8549 (recognize_single_bit_test): Adjust.
8550
8551 2009-08-09 Richard Sandiford <rdsandiford@googlemail.com>
8552
8553 * c-common.c (c_fully_fold_internal): Issue a warning if a binary
8554 operation overflows. Likewise non-cast unary arithmetic.
8555 If one arm of a conditional expression is always taken,
8556 inhibit evaluation warnings for the other arm. Likewise inhibit
8557 evaluation warnings for the second && or || operand if the first
8558 operand is enough to determine the result.
8559 * c-typeck.c (build_conditional_expr): Apply the same inhibition
8560 rules here.
8561 (build_binary_op): Prevent duplicate evaluation warnings.
8562
8563 2009-08-09 Richard Sandiford <rdsandiford@googlemail.com>
8564
8565 * tree-out-of-ssa.c (insert_value_copy_on_edge): If the source
8566 and destination have different modes, Use promote_mode to
8567 determine the signedness of the conversion. Assert that the
8568 promoted source mode matches the destination mode. Don't pass
8569 the destination and destination mode to expand_expr if the source
8570 mode is different. Simplify conversion logic.
8571
8572 2009-08-09 Ira Rosen <irar@il.ibm.com>
8573
8574 PR tree-optimization/41008
8575 * tree-vect-loop.c (vect_is_simple_reduction): Get operands
8576 from condition only in case it's a comparison. Adjust checks.
8577
8578 2009-08-09 Bernd Schmidt <bernd.schmidt@analog.com>
8579
8580 * tree-dfa.c (renumber_gimple_stmt_uids_in_blocks): New function.
8581 * tree-flow.h (renumber_gimple_stmt_uids_in_blocks): Declare it.
8582 * tree-ssa-loop-ivopts.c (comp_cost): Make COST an integer.
8583 (enum iv_position): Add IP_AFTER_USE and IP_BEFORE_USE.
8584 (dump_cand): Handle them.
8585 (struct iv_cand): New members COST_STEP and AINC_USE.
8586 (stmt_after_increment): Likewise.
8587 (stmt_after_inc_pos): Renamed from stmt_after_ip_original_pos. All
8588 callers changed. Use gimple_uid comparison instead of scanning.
8589 (add_candidate_1): When looking for identical candidates, take
8590 AINC_USE into account. Set it for new candidates.
8591 (force_expr_to_var_cost): Cast target_spill_cost to int.
8592 (get_address_cost): New arguments STMT_AFTER_INC and MAY_AUTOINC.
8593 All callers changed. Check for availability of autoinc addressing
8594 modes, both in general for a given mode, and in the specific use case.
8595 (get_computation_cost_at): New argument CAN_AUTOINC. All callers
8596 changed.
8597 (get_computation_cost): Likewise.
8598 (autoinc_possible_for_pair, set_autoinc_for_original_candidates,
8599 add_autoinc_candidates): New static functions.
8600 (add_candidate): Call add_autoinc_candidates for candidates based on
8601 a USE_ADDRESS use.
8602 (find_iv_candidates): Call set_autoinc_for_original_candidates.
8603 (determine_use_iv_cost_address): If we have an autoinc candidate at
8604 the matching use, verify autoinc is possible and subtract the cost
8605 of the candidate's step from the cost.
8606 (determine_iv_cost): Record the cost of the increment in the COST_STEP
8607 member of the candidate.
8608 (tree_ssa_iv_optimize_loop): Swap the calls to determine_iv_costs and
8609 determine_use_iv_costs. Call renumber_gimple_stmt_uids_in_blocks.
8610
8611 2009-08-09 Douglas B Rupp <rupp@gnat.com>
8612
8613 * config.build (ia64-hp-*vms*): New target.
8614 (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
8615 with ia64-hp-*vms*.
8616 * config.gcc (ia64-hp-*vms*): New target.
8617 (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
8618 with ia64-hp-*vms*.
8619 * config.host (ia64-hp-*vms*): New target.
8620 (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
8621 with ia64-hp-*vms*.
8622
8623 2009-08-08 Richard Guenther <rguenther@suse.de>
8624
8625 PR tree-optimization/40991
8626 * tree-ssa-pre.c (eliminate): Delay purging EH edges.
8627
8628 2009-08-08 Richard Sandiford <rdsandiford@googlemail.com>
8629
8630 * combine.c (gen_lowpart_or_truncate): Exclude CONST_INTs from
8631 mode check. Do truncations in an integer mode.
8632 (force_to_mode): Handle subregs for all mode types. Only do
8633 arithmetic simplifications on integer modes.
8634
8635 2009-08-07 Richard Guenther <rguenther@suse.de>
8636
8637 PR tree-optimization/40999
8638 * tree-ssa-ccp.c (get_symbol_constant_value): Handle CONST_DECLs.
8639 (maybe_fold_reference): Lookup constant initializers.
8640 (fold_gimple_assign): Likewise.
8641
8642 2009-08-07 Richard Guenther <rguenther@suse.de>
8643
8644 * tree-ssa.c (useless_type_conversion_p_1): Only for types
8645 that require structural equality defer to the langhook.
8646
8647 2009-08-07 Martin Jambor <mjambor@suse.cz>
8648
8649 * ipa-prop.h (enum jump_func_type): New value IPA_JF_ANCESTOR, changed
8650 comments.
8651 (struct ipa_pass_through_data): New type.
8652 (struct ipa_ancestor_jf_data): New type.
8653 (union jump_func_value): Removed field formal_id, added fields
8654 pass_through and ancestor.
8655 (struct ipa_param_call_note): Changed type of formal_id to int from
8656 unsigned.
8657 * ipa-prop.c (ipa_print_node_jump_functions): Print pass through with
8658 operations jump functions and ancestor jump functions.
8659 (compute_complex_pass_through): New function.
8660 (compute_scalar_jump_functions): Call compute_complex_pass_through,
8661 reflect changes in the jump function strucutre.
8662 (update_jump_functions_after_inlining): Ignore complex pass-through
8663 and ancestor jump functions.
8664 * ipa-cp.c (ipcp_lattice_from_jfunc): Added support for ancestor and
8665 polynomial pass-through with operation jump functions.
8666
8667 2009-08-07 Jakub Jelinek <jakub@redhat.com>
8668
8669 * dwarf2out.c (output_fde): When doing hot/cold partitioning, use
8670 fde->dw_fde_begin as begin label instead of hot/cold label.
8671 Use LLSDAC label instead of LLSDA for second section lsda.
8672 (dwarf2out_do_cfi_startproc): Add SECOND argument. Use LLSDAC
8673 label instead of LLSDA if it is true.
8674 (dwarf2out_begin_prologue, dwarf2out_switch_text_section): Adjust
8675 callers.
8676 * except.c (add_call_site, dw2_size_of_call_site_table): Add
8677 SECTION argument. Use it as index into crtl->eh.call_site_record
8678 array.
8679 (dw2_output_call_site_table): Likewise. Add CS_FORMAT argument,
8680 use it to determine how to print table entries instead of using
8681 #ifdef HAVE_AS_LEB128. For SECTION > 0 use hot resp. cold
8682 label instead of normal begin label as base.
8683 (sjlj_assign_call_site_values): Adjust add_call_site caller.
8684 (convert_to_eh_region_ranges): When doing hot/cold partitioning,
8685 ensure no EH range spans between sections and that landing pads
8686 are always in the corresponding section.
8687 (sjlj_size_of_call_site_table, sjlj_output_call_site_table): Adjust
8688 for crtl->eh.call_site_record being an array rather than scalar.
8689 (output_one_function_exception_table): New function, copied
8690 from output_function_exception_table. Adjust
8691 dw2_size_of_call_site_table, dw2_output_call_site_table
8692 callers. For SECOND section use *C suffixed labels.
8693 (output_function_exception_table): Call
8694 output_one_function_exception_table and, when doing hot/cold
8695 partitioning, also another time for the second section.
8696 * opts.c: Include except.h.
8697 (decode_options): Allow -freorder-blocks-and-partition with
8698 exceptions, unless SJLJ or TARGET_UNWIND_INFO.
8699 * Makefile.in (opts.o): Depend on $(EXCEPT_H).
8700 * function.h (struct rtl_eh): Change call_site_record from
8701 scalar into array of 2 elements.
8702
8703 2009-08-07 Martin Jambor <mjambor@suse.cz>
8704
8705 * ipa-prop.c (count_formal_params_1): New function.
8706 (ipa_get_vector_of_formal_parms): New function.
8707 (get_vector_of_formal_parm_types): New function.
8708 (ipa_modify_formal_parameters): New function.
8709 (ipa_modify_call_arguments): New function.
8710 (index_in_adjustments_multiple_times_p): New function.
8711 (ipa_combine_adjustments): New function.
8712 (ipa_dump_param_adjustments): New function.
8713 * ipa-prop.h (struct ipa_parm_adjustment): New type.
8714 (ipa_get_vector_of_formal_parms): Declare.
8715 (ipa_modify_formal_parameters): Declare.
8716 (ipa_modify_call_arguments): Declare.
8717 (ipa_combine_adjustments): Declare.
8718 (ipa_dump_param_adjustments): Declare.
8719 (build_ref_for_offset): Declare.
8720 * Makefile.in (tree-sra.o): Add ipa-prop.h to dependencies.
8721 * tree-sra.c: Include ipa-prop.c.
8722 (build_ref_for_offset): Make public.
8723
8724 2009-08-06 Neil Vachharajani <nvachhar@gmail.com>
8725
8726 * value-prof.c (init_pid_map): Replace xmalloc with XCNEWVEC.
8727
8728 2009-08-06 Thomas Schwinge <tschwinge@gnu.org>
8729
8730 * gcc/doc/extend.texi (__builtin_extract_return_address)
8731 (__builtin_frob_return_address): Document.
8732
8733 2009-08-06 Paul Brook <paul@codesourcery.com>
8734
8735 * config/arm/lib1funcs.asm (ARM_DIV_BODY): Add Thumb-2 implementation.
8736 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Only use Thumb-1
8737 implementation on ARMv6-M.
8738
8739 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
8740
8741 * doc/extend.texi (pcs): Document new attribute for ARM.
8742
8743 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
8744
8745 * arm.c (pcs_attribute_args): Comment out unsupported attribute
8746 variants.
8747
8748 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
8749
8750 * arm.c (arm_handle_pcs_attribute): Pass the entire name object to
8751 warning ().
8752
8753 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
8754
8755 * arm.c (arm_handle_pcs_attribute): Use %qE in warning.
8756
8757 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
8758
8759 Merge ARM/hard_vfp_branch to trunk.
8760
8761 2009-08-04 Richard Earnshaw <rearnsha@arm.com>
8762
8763 * arm.c (libcall_eq): New function.
8764 (libcall_hash): New function.
8765 (add_libcall): New function.
8766 (arm_libcall_uses_aapcs_base): New function.
8767 (arm_libcall_value): Use arm_libcall_uses_aapcs_base to check for
8768 libcalls using the base PCS.
8769 (arm_init_cumulative_args): Likewise.
8770
8771 2009-07-20 Joseph Myers <joseph@codesourcery.com>
8772
8773 * config/arm/arm.c (arm_libcall_value, arm_init_cumulative_args):
8774 Use base ABI for conversion libfuncs between HFmode and SFmode.
8775
8776 2009-05-12 Joseph Myers <joseph@codesourcery.com>
8777
8778 * config/arm/arm.c (aapcs_vfp_sub_candidate): Use V2SImode and
8779 V4SImode as representatives of all 64-bit and 128-bit vector
8780 types. Allow vector types without vector modes.
8781 (aapcs_vfp_is_call_or_return_candidate): Handle vector types
8782 without vector modes like BLKmode.
8783 (aapcs_vfp_allocate): Handle TImode for non-TARGET_NEON like
8784 BLKmode. Avoid unsupported vector modes or TImode moves for
8785 non-TARGET_NEON.
8786 (aapcs_vfp_allocate_return_reg): Likewise.
8787 (arm_vector_mode_supported_p): Only support V2SImode, V4HImode and
8788 V8QImode if TARGET_NEON || TARGET_IWMMXT.
8789
8790 2009-05-12 Joseph Myers <joseph@codesourcery.com>
8791
8792 * config/arm/arm.c (arm_handle_pcs_attribute): New.
8793 (arm_get_pcs_model): Pass attribute arguments to
8794 arm_pcs_from_attribute.
8795 (arm_init_cumulative_args): Use base AAPCS for conversions from
8796 floating-point types to DImode.
8797 (arm_attribute_table): Add pcs attribute.
8798 (arm_handle_pcs_attribute): New.
8799 * config/arm/bpabi.h (DECLARE_LIBRARY_RENAMES): When renaming
8800 conversions from floating-point types to DImode, also declare them
8801 to use base AAPCS and declare functions they call to use base
8802 AAPCS and their RTABI names.
8803
8804 2009-05-12 Joseph Myers <joseph@codesourcery.com>
8805
8806 * doc/invoke.texi (-mfloat-abi=@var{name}): Remove statement about
8807 -mfloat-abi=hard not being supported for VFP.
8808
8809 2009-05-11 Kazu Hirata <kazu@codesourcery.com>
8810
8811 * config/sparc/sparc.c (sparc_emit_float_lib_cmp): Pass a libcall
8812 SYMBOL_REF to hard_libcall_value.
8813
8814 2009-03-05 Joseph Myers <joseph@codesourcery.com>
8815 Richard Earnshaw <rearnsha@arm.com>
8816
8817 * config/arm/arm.c (aapcs_layout_arg): Once a co-processor argument
8818 has been put on the stack, all remaining co-processory arguments for
8819 that co-processor also go on the stack.
8820
8821 2009-03-05 Joseph Myers <joseph@codesourcery.com>
8822
8823 * config/arm/arm.c (arm_return_in_memory): Handle returning
8824 vectors of suitable size in registers also for AAPCS case.
8825
8826 2009-01-13 Richard Earnshaw <rearnsha@arm.com>
8827
8828 * doc/tm.texi (TARGET_LIBCALL_VALUE): Add missing end statement.
8829
8830 2008-12-09 Richard Earnshaw <rearnsha@arm.com>
8831
8832 ARM Hard-VFP calling convention
8833 * target-def.h (TARGET_LIBCALL_VALUE): New hook.
8834 * target.h (gcc_target): Add libcall_value to table of call hooks.
8835 * targhooks.h (default_libcall_value): Default implementation.
8836 * targhooks.c (default_libcall_value): Likewise.
8837 * doc/tm.texi (TARGET_LIBCALL_VALUE): Document it.
8838 * optabs.c (expand_unop): Use it.
8839 * expr.h (hard_libcall_value): Pass the function RTX through.
8840 * calls.c (emit_library_call_value_1): Update call to
8841 hard_libcall_value.
8842 * explow.c (hard_libcall_value): Use new target hook.
8843 * testsuite/lib/target-supports.exp
8844 (check_effective_target_arm_hard_vfp_ok): New hook.
8845 (check_effective_target_arm_neon_ok): Improve test for neon
8846 availability.
8847 * testsuite/gcc.target/arm/eabi1.c: Only run test in base variant.
8848 * config/arm/arm.c: Include cgraph.h
8849 (TARGET_FUNCTION_VALUE): Override default hook.
8850 (arm_pcs_default): New variable.
8851 (arm_override_options): Don't fault hard calling convention with VFP.
8852 Add support for AAPCS variants.
8853 (arm_function_value): Make static. Handle AAPCS variants.
8854 (arm_libcall_value): New function.
8855 (arm_apply_result_size): Handle VFP registers in results.
8856 (arm_return_in_memory): Rework all AAPCS variants; handle hard-vfp
8857 conventions.
8858 (pcs_attribute_args): New variable.
8859 (arm_pcs_from_attribute): New function.
8860 (arm_get_pcs_model): New function.
8861 (aapcs_vfp_cum_init): New function.
8862 (aapcs_vfp_sub_candidate): New function.
8863 (aapcs_vfp_is_return_candidate): New function.
8864 (aapcs_vfp_is_call_candidate): New function.
8865 (aapcs_vfp_allocate): New function.
8866 (aapcs_vfp_allocate_return_reg): New function.
8867 (aapcs_vfp_advance): New function.
8868 (aapcs_cp_arg_layout): New variable.
8869 (aapcs_select_call_coproc): New function.
8870 (aapcs_select_return_coproc): New function.
8871 (aapcs_allocate_return_reg): New function.
8872 (aapcs_libcall_value): New function.
8873 (aapcs_layout_arg): New function.
8874 (arm_init_cumulative_args): Initialize AAPCS args data.
8875 (arm_function_arg): Handle AAPCS variants using new interface.
8876 (arm_arg_parital_bytes): Likewise.
8877 (arm_function_arg_advance): New function.
8878 (arm_function_ok_for_sibcall): Ensure that sibling calls agree on
8879 calling conventions.
8880 (arm_setup_incoming_varargs): Handle new AAPCS args data.
8881 * arm.h (NUM_VFP_ARG_REGS): Define.
8882 (LIBCALL_VALUE): Update.
8883 (FUNCTION_VALUE): Delete.
8884 (FUNCTION_VALUE_REGNO_P): Add VFP regs.
8885 (arm_pcs): New enum.
8886 (CUMULATIVE_ARGS): New data to support AAPCS argument marshalling.
8887 (FUNCTION_ARG_ADVANCE): Call arm_function_arg_advance.
8888 (FUNCTION_ARG_REGNO_P): Add VFP regs.
8889 * arm-protos.h (arm_function_arg_advance): Add.
8890 (aapcs_libcall_value): Add.
8891 (arm_function_value): Delete.
8892
8893 2009-08-06 Uros Bizjak <ubizjak@gmail.com>
8894 H.J. Lu <hongjiu.lu@intel.com>
8895
8896 PR target/40957
8897 * config/i386/i386.c (standard_sse_mode_p): Remove.
8898 (standard_sse_constant_p): Return 2 for integer mode
8899 vector_all_ones_operand when SSE2 is enabled.
8900 (standard_sse_constant_opcode)<case 2>: Always return [v]pcmpeqd.
8901 (ix86_expand_vector_move): Do not check for negative values from
8902 standard_sse_constant_p.
8903
8904 2009-08-06 Richard Guenther <rguenther@suse.de>
8905
8906 * tree-ssa.c (useless_type_conversion_p_1): Make function and
8907 array type comparisons frontend independent.
8908 * Makefile.in (tree-ssa.o): Add $(TARGET_H) dependency.
8909 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Always fill
8910 out array reference lower bound and element size operands.
8911 (ao_ref_init_from_vn_reference): Properly compute the offset
8912 for ARRAY_RANGE_REF.
8913 (vn_reference_fold_indirect): Fill out array reference lower
8914 bound and element size operands.
8915 * tree-ssa-pre.c (phi_translate_1): Fail if we have to translate
8916 a non gimple valued reference operand which can happen for
8917 array reference lower bound or element size.
8918 (create_component_ref_by_pieces_1): Properly generate the
8919 element size operand for array references.
8920
8921 2009-08-06 Richard Guenther <rguenther@suse.de>
8922
8923 PR tree-optimization/40964
8924 * tree.c (iterative_hash_host_wide_int): Export.
8925 * tree.h (iterative_hash_host_wide_int): Declare.
8926 * tree-ssa-structalias.c (heapvar_map): New struct.
8927 (heapvar_map_eq): New function.
8928 (heapvar_map_hash): Likewise.
8929 (heapvar_lookup): Adjust.
8930 (heapvar_insert): Likewise.
8931 (make_constraint_from_heapvar): Allow multiple heap variables
8932 per decl at different offsets.
8933 (init_alias_heapvars): Adjust.
8934
8935 2009-08-04 David Daney <ddaney@caviumnetworks.com>
8936
8937 * config/mips/mips.h (TARGET_SYNC_AFTER_SC): New macro.
8938 * mips_output_sync_loop (mips_output_sync_loop): Only emit
8939 trailing sync if TARGET_SYNC_AFTER_SC.
8940
8941 2009-08-05 David Daney <ddaney@caviumnetworks.com>
8942
8943 * gcc/config/mips/sync.md (sync_compare_and_swap<mode>,
8944 compare_and_swap_12, sync_add<mode>, sync_<optab>_12,
8945 sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12,
8946 sync_old_nand_12, sync_new_nand_12, sync_sub<mode>,
8947 sync_old_add<mode>, sync_old_sub<mode>, sync_new_add<mode>,
8948 sync_new_sub<mode>, sync_<optab><mode>, sync_old_<optab><mode>,
8949 sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
8950 sync_new_nand<mode>, sync_lock_test_and_set<mode>,
8951 test_and_set_12): Rewrite calls to mips_output_sync_loop.
8952 * gcc/config/mips/mips-protos.h (mips_output_sync_loop): Make
8953 the prototype declaration match the definition.
8954 * gcc/config/mips/mips.c (mips_output_sync_loop): Emit sync
8955 instructions explicitly. Add barrier_before and operands
8956 parameters.
8957 * gcc/config/mips/mips.h (MIPS_COMPARE_AND_SWAP,
8958 MIPS_COMPARE_AND_SWAP_12, MIPS_SYNC_OP, MIPS_SYNC_OP_12,
8959 MIPS_SYNC_OLD_OP_12, MIPS_SYNC_NEW_OP_12, MIPS_SYNC_OLD_OP,
8960 MIPS_SYNC_NEW_OP, MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND,
8961 MIPS_SYNC_NEW_NAND, MIPS_SYNC_EXCHANGE,
8962 MIPS_SYNC_EXCHANGE_12): Remove sync instructions.
8963
8964 2009-08-05 Andrew Pinski <pinskia@gmail.com>
8965
8966 * tree-ssa-alias.c: Fix intervals to use [) syntax.
8967
8968 2009-08-05 Uros Bizjak <ubizjak@gmail.com>
8969 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
8970
8971 PR target/40906
8972 * config/i386/i386.c (ix86_split_long_move): Fix push of multi-part
8973 source operand.
8974
8975 2009-08-05 Jakub Jelinek <jakub@redhat.com>
8976
8977 PR rtl-optimization/40924
8978 * dse.c (canon_address): Before calling cselib_expand_value_rtx
8979 make sure canon_rtx (mem_address) isn't simpler than
8980 canon_rtx (expanded_mem_address).
8981
8982 2009-08-05 Li Feng <nemokingdom@gmail.com>
8983
8984 * graphite-sese-to-poly.c (build_pbb_drs): Remove build alias set
8985 for each poly_bb_p.
8986 (build_scop_drs): Build alias set for each SCoP.
8987
8988 2009-08-04 Sandra Loosemore <sandra@codesourcery.com>
8989
8990 * doc/invoke.texi (MIPS Options): Document new 1004K -march options.
8991 * config/mips/mips.c (mips_cpu_info_table): Add 1004K cores.
8992 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Add pattern for 1004K.
8993 (MIPS_ARCH_FLOAT_SPEC): Likewise.
8994 (BASE_DRIVER_SELF_SPECS): Likewise.
8995
8996 2009-08-04 Andrew Pinski <pinskia@gmail.com>
8997
8998 * tree-ssa-alias.c: Fix some comment typos.
8999
9000 2009-08-04 Kaz Kojima <kkojima@gcc.gnu.org>
9001
9002 * config/sh/linux-atomic.asm (ATOMIC_BOOL_COMPARE_AND_SWAP,
9003 ATOMIC_OP_AND_FETCH, ATOMIC_COMBOP_AND_FETCH): Define.
9004
9005 2009-08-03 Janis Johnson <janis187@us.ibm.com>
9006
9007 PR c/39902
9008 * simplify-rtx.c (simplify_binary_operation_1): Disable
9009 simplifications for decimal float operations.
9010
9011 2009-08-03 Jakub Jelinek <jakub@redhat.com>
9012
9013 PR middle-end/40943
9014 * tree-ssa.c (warn_uninitialized_var): Even on LHS warn for
9015 operand of INDIRECT_REF.
9016
9017 2009-08-03 Uros Bizjak <ubizjak@gmail.com>
9018
9019 * config/alpha/alpha.c (alpha_legitimate_constant_p): Reject CONST
9020 constants referencing TLS symbols.
9021
9022 2009-08-03 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
9023
9024 * config/sh/linux-atomic.asm (ATOMIC_COMPARE_AND_SWAP): Rename
9025 __sync_compare_and_swap_* to __sync_val_compare_and_swap_*.
9026
9027 2009-08-03 Richard Guenther <rguenther@suse.de>
9028
9029 * tree.c (make_vector_type): Build a main variant first,
9030 get the canonical one and then build the variant.
9031 * tree-ssa.c (useless_type_conversion_p_1): Handle
9032 fixed-point types.
9033 (useless_type_conversion_p): Conversions to pointers to
9034 incomplete record types are useless.
9035
9036 2009-08-03 Richard Guenther <rguenther@suse.de>
9037
9038 * tree-cfg.c (pass_warn_unused_result): Mark name that no dump
9039 file will be created.
9040 * omp-low.c (pass_diagnose_omp_blocks): Likewise.
9041 * toplev.c (compile_file): Adjust comment.
9042
9043 2009-08-03 Kaz Kojima <kkojima@gcc.gnu.org>
9044
9045 * config/sh/sh-protos.h (sh_promote_function_mode): Remove.
9046 * config/sh/sh.c (sh_promote_function_mode): Wrap long lines.
9047 (TARGET_PROMOTE_FUNCTION_MODE): Define.
9048 (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
9049 (sh_promote_function_mode): Fix typo.
9050
9051 2009-08-03 Andreas Krebbel <krebbel1@de.ibm.com>
9052
9053 * explow.c (promote_mode): Mark TYPE and PUNSIGNEDP as possibly unused.
9054
9055 2009-08-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9056
9057 * pa.c (pa_promote_function_mode): Remove ATTRIBUTE_UNUSED from
9058 declaration arguments.
9059
9060 2009-08-02 Uros Bizjak <ubizjak@gmail.com>
9061
9062 * config/i386/i386.c (ix86_expand_fp_compare): Use const0_rtx instead
9063 of GEN_INT (0x00) and const1_rtx instead of GEN_INT (0x01).
9064 (ix86_split_ashl): Ditto.
9065 (ix86_expand_vector_init_one_nonzero): Ditto.
9066 (ix86_expand_vector_set): Ditto.
9067 (ix86_expand_reduc_v4sf): Ditto.
9068
9069 2009-08-02 Paolo Bonzini <bonzini@gnu.org>
9070
9071 * explow.c (promote_function_mode): Remove assert.
9072 * config/sh/sh.c (sh_promote_function_mode): Declare.
9073
9074 2009-08-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9075
9076 * config/pa/pa.c (pa_promote_function_mode): Declare.
9077 Change to static. Fix promote_mode call.
9078
9079 * gthr-dce.h (CONST_CAST2): Define if not defined.
9080 (__gthread_setspecific): Use CONST_CAST2 to fix warning.
9081
9082 * config.gcc (hppa[12]*-*-hpux10*): Add stdint support.
9083
9084 2009-08-01 Paolo Bonzini <bonzini@gnu.org>
9085
9086 * expr.c (store_constructor): Use promote_decl_mode. Remove
9087 now write-only variable unsignedp.
9088 (expand_expr_real_1): Use promote_decl_mode.
9089 * expr.h (promote_function_mode, promote_decl_mode): New.
9090 (promote_mode): Remove last argument.
9091 * function.c (assign_temp): Drop last argument of promote_mode.
9092 (assign_parm_find_data_types): Use promote_function_mode.
9093 (assign_parm_setup_reg): Likewise.
9094 (expand_function_end): Use promote_function_mode.
9095 * calls.c (initialize_argument_information): Use promote_function_mode.
9096 (precompute_arguments): Use promote_mode instead of checking if
9097 only PROMOTE_FUNCTION_MODE is defined.
9098 (expand_call): When making sibcall decisions, use promote_function_mode.
9099 Below, remove an if for targetm.calls.promote_function_return and
9100 and use promote_function_mode.
9101 (emit_library_call_value_1): Use promote_function_mode, fix bug
9102 where promote_mode was passed FOR_CALL == 0 for a return value in an
9103 assertion.
9104 * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
9105 * explow.c (promote_function_mode, promote_decl_mode): New.
9106 (promote_mode): Keep only the FOR_CALL == 0 case.
9107 * combine.c (setup_incoming_promotion): Remove test of
9108 promote_function_args. Use promote_function_mode.
9109 * stmt.c (expand_value_return): Use promote_decl_mode.
9110 (expand_decl): Use promote_decl_mode.
9111
9112 * expr.c (store_constructor): Use promote_decl_mode. Remove
9113 now write-only variable unsignedp.
9114 (expand_expr_real_1): Use promote_decl_mode.
9115 * expr.h (promote_function_mode, promote_decl_mode): New.
9116 (promote_mode): Remove last argument.
9117 * function.c (assign_temp): Drop last argument of promote_mode.
9118 (assign_parm_find_data_types): Use promote_function_mode.
9119 (assign_parm_setup_reg): Likewise.
9120 (expand_function_end): Use promote_function_mode.
9121 * calls.c (initialize_argument_information): Use promote_function_mode.
9122 (precompute_arguments): Use promote_mode instead of checking if
9123 only PROMOTE_FUNCTION_MODE is defined.
9124 (expand_call): When making sibcall decisions, use promote_function_mode.
9125 Below, remove an if for targetm.calls.promote_function_return and
9126 and use promote_function_mode.
9127 (emit_library_call_value_1): Use promote_function_mode, fix bug
9128 where promote_mode was passed FOR_CALL == 0 for a return value in an
9129 assertion.
9130 * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
9131 * explow.c (promote_function_mode, promote_decl_mode): New.
9132 (promote_mode): Keep only the FOR_CALL == 0 case.
9133 * combine.c (setup_incoming_promotion): Remove test of
9134 promote_function_args. Use promote_function_mode.
9135 * stmt.c (expand_value_return): Use promote_decl_mode.
9136 (expand_decl): Use promote_decl_mode.
9137
9138 * explow.c (promote_function_mode): Just call the target hook.
9139 * targhooks.c (default_promote_function_mode,
9140 default_promote_function_mode_always_promote): New.
9141 * targhooks.h (default_promote_function_mode,
9142 default_promote_function_mode_always_promote): Declare.
9143 * target.h (promote_function_args, promote_function_return): Remove.
9144 (promote_function_mode): New.
9145 * target-def.h (TARGET_PROMOTE_FUNCTION_ARGS,
9146 TARGET_PROMOTE_FUNCTION_RETURN): Remove.
9147 (TARGET_PROMOTE_FUNCTION_MODE): New.
9148 (TARGET_CALLS): Adjust.
9149 * system.h (TARGET_PROMOTE_FUNCTION_ARGS,
9150 TARGET_PROMOTE_FUNCTION_RETURN, PROMOTE_FUNCTION_MODE): Poison.
9151
9152 * config/s390/s390.h (PROMOTE_FUNCTION_MODE): Move...
9153 * config/s390/s390.c (s390_promote_function_mode): ... here,
9154 with pointer handling.
9155 (TARGET_PROMOTE_FUNCTION_MODE): Define.
9156 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
9157
9158 * config/sparc/sparc.h (PROMOTE_FUNCTION_MODE): Move...
9159 * config/sparc/sparc.c (sparc_promote_function_mode): ... here,
9160 with pointer handling.
9161 (TARGET_PROMOTE_FUNCTION_MODE): Define.
9162 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
9163
9164 * config/sh/sh-protos.h (sh_promote_function_mode): New.
9165 * config/sh/sh.c (sh_promote_function_mode): New.
9166 (TARGET_PROMOTE_FUNCTION_MODE): Define.
9167 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
9168
9169 * config/cris/cris.h (PROMOTE_FUNCTION_MODE): Move...
9170 * config/cris/cris.c (cris_promote_function_mode): ... here.
9171 (TARGET_PROMOTE_FUNCTION_MODE): Define.
9172 (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
9173
9174 * config/mmix/mmix.h (PROMOTE_FUNCTION_MODE): Move...
9175 * config/mmix/mmix.c (mmix_promote_function_mode): ... here.
9176 (TARGET_PROMOTE_FUNCTION_MODE): Define.
9177 (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
9178
9179 * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Move...
9180 * config/arm/arm.c (arm_promote_function_mode): ... here, without
9181 complex type handling.
9182 (TARGET_PROMOTE_FUNCTION_MODE): Define.
9183 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
9184
9185 * config/pa/pa.c (pa_promote_function_mode): New.
9186 (TARGET_PROMOTE_FUNCTION_MODE): Define.
9187 (TARGET_PROMOTE_FUNCTION_RETURN): Remove.
9188
9189 * config/alpha/alpha.c (TARGET_PROMOTE_FUNCTION_ARGS,
9190 TARGET_PROMOTE_FUNCTION_RETURN): Remove.
9191 (TARGET_PROMOTE_FUNCTION_MODE): Define equivalently.
9192 * config/xtensa/xtensa.c: Likewise.
9193 * config/stormy16/stormy16.c: Likewise.
9194 * config/iq2000/iq2000.c: Likewise.
9195 * config/rs6000/rs6000.c: Likewise.
9196 * config/picochip/picochip.c: Likewise.
9197 * config/arc/arc.c: Likewise.
9198 * config/mcore/mcore.c: Likewise.
9199 * config/score/score.c: Likewise.
9200 * config/mips/mips.c: Likewise.
9201 * config/bfin/bfin.c: Likewise.
9202 * config/ia64/ia64.c: Likewise (disabled though).
9203
9204 * config/frv/frv.h: Remove pointless remark.
9205
9206 * doc/tm.texi (PROMOTE_FUNCTION_MODE,
9207 TARGET_PROMOTE_FUNCTION_ARGS,
9208 TARGET_PROMOTE_FUNCTION_RETURN): Consolidate into...
9209 (TARGET_PROMOTE_FUNCTION_MODE): ... this.
9210
9211 2009-08-01 Sebastian Pop <sebastian.pop@amd.com>
9212
9213 * doc/invoke.texi (-fgraphite-force-parallel): Renamed
9214 -floop-parallelize-all.
9215 * toplev.c (process_options): Rename flag_graphite_force_parallel to
9216 flag_loop_parallelize_all.
9217 * tree-ssa-loop.c (gate_graphite_transforms): Same.
9218 * graphite.c (graphite_transform_loops): Same.
9219 * common.opt: Same.
9220 * graphite-poly.c (apply_poly_transforms): Same.
9221
9222 2009-07-31 Richard Earnshaw <rearnsha@arm.com>
9223
9224 PR tree-optimization/40914
9225 * ipa-prop.c (ipa_get_ptr_load_param): New argument use_delta,
9226 if set, then check the delta field of the PMF record.
9227 (ipa_get_stmt_member_ptr_load_param): Propagate new param use_delta.
9228 (ipa_analyze_call_uses): Handle machines where the vbit for a PMF
9229 call is stored in the delta.
9230
9231 2009-07-31 Adam Nemet <anemet@caviumnetworks.com>
9232
9233 * config/mips/mips.md (*clear_upper32_dext): New pattern.
9234
9235 2009-07-31 Uros Bizjak <ubizjak@gmail.com>
9236
9237 * config/i386/bsd.h (ASM_BYTE): New define.
9238 * config/i386/darwin.h (ASM_BYTE): Rename from ASM_BYTE_OP.
9239 * config/i386/att.h (ASM_BYTE): New define. Use ASM_BYTE instead of
9240 .byte. Use fputs or putc instead of fprintf where appropriate.
9241 * config/i386/i386-interix.h: Use ASM_BYTE instead of .byte. Use
9242 fputs or putc instead of fprintf where appropriate.
9243 * config/i386/i386elf.h: Ditto.
9244 * config/i386/sysv4.h: Ditto.
9245
9246 * config/i386/i386.c (TARGET_ASM_BYTE_OP): New define.
9247 * config/i386/i386.md (x86_sahf_1): Use ASM_BYTE instead of .byte.
9248 (*tls_global_dynamic_64): Ditto.
9249
9250 2009-07-31 Christian Bruel <christian.bruel@st.com>
9251
9252 * gcc/config.gcc (sh*-*-elf): test with_libgloss.
9253
9254 2009-07-31 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9255
9256 * config/arm/arm.c (arm_arm_address_cost): Fix typo.
9257 Remove dead code for MINUS.
9258
9259 2009-07-31 Anthony Green <green@moxielogic.com>
9260
9261 * config/moxie/moxie.c (moxie_expand_prologue): Use $r5 instead of
9262 $r12 in prologue.
9263 (moxie_expand_epilogue): Ditto for epilogue.
9264 (moxie_setup_incoming_varargs): ABI change. Use 5 registers for
9265 incoming arguments.
9266 (moxie_function_arg): Ditto.
9267 (moxie_pass_by_reference): Ditto.
9268 (moxie_arg_partial_bytes): Ditto.
9269 * config/moxie/moxie.h (CALL_USED_REGISTERS): Ditto.
9270 (FUNCTION_ARG_ADVANCE) Ditto.
9271 (REG_PARM_STACK_SPACE) Ditto.
9272 (FUNCTION_ARG_REGNO_P) Dito.
9273
9274 * config.gcc: Add moxie linux config support.
9275 * gcc/config/moxie/uclinux.h: New file.
9276
9277 2009-07-31 DJ Delorie <dj@redhat.com>
9278
9279 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
9280 (UNSPECV_SP_SWITCH_E): New.
9281 (sp_switch_1): Change to an unspec.
9282 (sp_switch_2): Change to an unspec. Don't use post-inc when we
9283 replace $r15.
9284 * config/sh/sh.c (sh_expand_prologue): Use the constant pool to
9285 reference the new stack's address
9286
9287 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
9288
9289 * Makefile.in (OBJS-common): Added dependence on graphite-blocking.o,
9290 graphite-clast-to-gimple.o, graphite-dependences.o,
9291 graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
9292 graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o.
9293 (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): New.
9297 * cfgloop.c (alloc_loop): Set loop->can_be_parallel to false.
9298 * cfgloop.h (struct loop): Add can_be_parallel field.
9299 * common.opt (fgraphite-identity): Moved up.
9300 (fgraphite-force-parallel): New flag.
9301 * graphite.c: Rewrite.
9302 * graphite.h: Rewrite.
9303 * passes.c (init_optimization_passes): Schedule a pass of DCE and LIM
9304 after Graphite.
9305 * toplev.c (graphite_out_file): New file descriptor.
9306 (graphite_in_file): New.
9307 (process_options): flag_graphite_force_parallel cannot be used without
9308 Graphite.
9309 * tree-ssa-loop.c: Include toplev.h.
9310 (gate_graphite_transforms): Enable flag_graphite for
9311 flag_graphite_force_parallel.
9312
9313 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
9314
9315 * ChangeLog.graphite: New.
9316 * graphite-blocking.c: New.
9317 * graphite-clast-to-gimple.c: New.
9318 * graphite-clast-to-gimple.h: New.
9319 * graphite-dependences.c: New.
9320 * graphite-dependences.h: New.
9321 * graphite-interchange.c: New.
9322 * graphite-poly.c: New.
9323 * graphite-poly.h: New.
9324 * graphite-ppl.c: New.
9325 * graphite-ppl.h: New.
9326 * graphite-scop-detection.c: New.
9327 * graphite-scop-detection.h: New.
9328 * graphite-sese-to-poly.c: New.
9329 * graphite-sese-to-poly.h: New.
9330 * sese.c: New.
9331 * sese.h: New.
9332
9333 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
9334
9335 * tree-chrec.c (evolution_function_right_is_integer_cst): New.
9336 * tree-chrec.h (evolution_function_right_is_integer_cst): Declared.
9337
9338 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
9339
9340 * tree-chrec.c (operator_is_linear): Handle BIT_NOT_EXPR.
9341 (scev_is_linear_expression): Return false if the evolution is not
9342 affine multivariate.
9343
9344 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
9345
9346 * tree-data-ref.c (graphite_find_data_references_in_stmt): New.
9347 * tree-data-ref.h (graphite_find_data_references_in_stmt): Declared.
9348
9349 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
9350
9351 * tree-data-ref.c (debug_data_references): New.
9352 (debug_data_reference): New.
9353 * tree-data-ref.h (debug_data_references): Declared.
9354 (debug_data_reference): Declared.
9355
9356 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
9357
9358 * tree-data-ref.c (stmt_simple_memref_p: Removed.
9359 * tree-data-ref.h (scop_p): Removed.
9360 (struct data_reference): Remove field scop.
9361 (DR_SCOP): Removed.
9362 (stmt_simple_memref_p): Removed.
9363
9364 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
9365
9366 * cfgloop.h (create_empty_loop_on_edge): Pass an extra argument.
9367 * cfgloopmanip.c (create_empty_loop_on_edge): Leave the loop_latch
9368 basic block empty.
9369
9370 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
9371
9372 * doc/invoke.texi (-fgraphite-force-parallel): Documented.
9373
9374 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
9375
9376 * doc/invoke.texi (-fgraphite-identity): Documented.
9377
9378 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
9379
9380 * tree-scalar-evolution.c: Fix comment.
9381 (instantiate_scev_1): Return unknow from scev instantiation if the
9382 result is not above instantiate_below.
9383
9384 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
9385
9386 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop): Not
9387 static anymore. Instantiate the symbols that may have been introduced
9388 by chrec_apply.
9389 * tree-scalar-evolution.h (compute_overall_effect_of_inner_loop):
9390 Declared.
9391
9392 2009-07-30 DJ Delorie <dj@redhat.com>
9393
9394 * config/mep/mep.c (mep_asm_init_sections): Add section flags and
9395 .vliw directive to VLIW sections.
9396
9397 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9398
9399 * Makefile.in (AUTOCONF, ACLOCAL, ACLOCAL_AMFLAGS, aclocal_deps):
9400 New variables.
9401 ($(srcdir)/configure, $(srcdir)/aclocal.m4): New rules.
9402 (AUTOHEADER): New variable.
9403 ($(srcdir)/cstamp-h.in): Use it.
9404
9405 2009-07-30 Michael Meissner <meissner@linux.vnet.ibm.com>
9406 Pat Haugen <pthaugen@us.ibm.com>
9407 Revital Eres <ERES@il.ibm.com>
9408
9409 * config/rs6000/vector.md (VEC_F): Add VSX support.
9410 (VEC_A): Ditto.
9411 (VEC_N): Ditto.
9412 (mov<mode>): Ditto.
9413 (vector_load_<mode>): Ditto.
9414 (vector_store_<mode>): Ditto.
9415 (vector GPR move split): Ditto.
9416 (vec_reload_and_plus_<mptrsize>): Ditto.
9417 (vec_reload_and_reg_<mptrsize>): Ditto.
9418 (add<mode>3): Ditto.
9419 (sub<mode>3): Ditto.
9420 (mul<mode>3): Ditto.
9421 (neg<mode>2): Ditto.
9422 (abs<mode>2): Ditto.
9423 (smin<mode>3): Ditto.
9424 (smax<mode>3): Ditto.
9425 (vector_eq<mode>): Ditto.
9426 (vector_gt<mode>): Ditto.
9427 (vector_ge<mode>): Ditto.
9428 (vector_gtu<mode>): Ditto.
9429 (vector_select_<mode>_uns): Ditto.
9430 (vector_eq_<mode>_p): Ditto.
9431 (vector_gt_<mode>_p): Ditto.
9432 (vector_ge_<mode>_p): Ditto.
9433 (vector_gtu_<mode>_p): Ditto.
9434 (cr6_test_for_zero): Ditto.
9435 (cr6_test_for_zero_reverse): Ditto.
9436 (cr6_test_for_lt): Ditto.
9437 (cr6_test_for_lt_reverse): Ditto.
9438 (xor<mode>3): Ditto.
9439 (ior<mode>3): Ditto.
9440 (and<mode>3): Ditto.
9441 (one_cmpl<mode>2): Ditto.
9442 (nor<mode>2): Ditto.
9443 (andc<mode>2): Ditto.
9444 (float<VEC_int<mode>2): Ditto.
9445 (unsigned_float<VEC_int><mode>2): Ditto.
9446 (fix_trunc<mode><VEC_int>2): Ditto.
9447 (fixuns_trunc<mode><VEC_int>2): Ditto.
9448 (vec_init<mode>):
9449 (vec_set<mode>): Ditto.
9450 (vec_extract<mode>): Ditto.
9451 (vec_interleave_highv4sf): Ditto.
9452 (vec_interleave_lowv4sf): Ditto.
9453 (vec_realign_load_<mode>): Ditto.
9454 (vec_shl_<mode>): Ditto.
9455 (vec_shr_<mode>): Ditto.
9456 (div<mode>3): New patterns for VSX.
9457 (vec_interleave_highv2df): Ditto.
9458 (vec_interleave_lowv2df): Ditto.
9459 (vec_pack_trunc_v2df): Ditto.
9460 (vec_pack_sfix_trunc_v2df): Ditto.
9461 (vec_pack_ufix_trunc_v2df): Ditto.
9462 (vec_unpacks_hi_v4sf): Ditto.
9463 (vec_unpacks_lo_v4sf): Ditto.
9464 (vec_unpacks_float_hi_v4si): Ditto.
9465 (vec_unpacks_float_lo_v4si): Ditto.
9466 (vec_unpacku_float_hi_v4si): Ditto.
9467 (vec_unpacku_float_lo_v4si): Ditto.
9468 (movmisalign<mode>): Ditto.
9469 (vector_ceil<mode>2): New patterns for vectorizing math library.
9470 (vector_floor<mode>2): Ditto.
9471 (vector_btrunc<mode>2): Ditto.
9472 (vector_copysign<mode>3): Ditto.
9473
9474 * config/rs6000/predicates.md (easy_vector_constant_msb): New
9475 predicate for setting the high bit in each word, used for copysign.
9476
9477 * config/rs6000/ppc-asm.h (f19): Whitespace.
9478 (f32-f63): Define if VSX.
9479 (v0-v31): Define if Altivec.
9480 (vs0-vs63): Define if VSX.
9481
9482 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power7.md and vsx.md.
9483
9484 * config/rs6000/power7.md: New file, provide tuning parameters for
9485 -mcpu=power7.
9486
9487 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): Add VSX support.
9488 (rs6000_cpu_cpp_builtins): Ditto.
9489 (altivec_overloaded_builtins): Ditto.
9490 (altivec_resolve_overloaded_builtin): Ditto.
9491
9492 * config/rs6000/rs6000.opt (-mno-vectorize-builtins): Add new
9493 debug switch to disable vectorizing simple math builtin
9494 functions.
9495
9496 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
9497 Vectorize simple math builtin functions.
9498 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
9499 hook to vectorize math builtins.
9500 (rs6000_override_options): Enable -mvsx on -mcpu=power7.
9501 (rs6000_builtin_conversion): Add VSX/power7 support.
9502 (rs6000_builtin_vec_perm): Ditto.
9503 (vsplits_constant): Add support for loading up a vector constant
9504 with just the high bit set in each part.
9505 (rs6000_expand_vector_init): Add VSX/power7 support.
9506 (rs6000_expand_vector_set): Ditto.
9507 (rs6000_expand_vector_extract): Ditto.
9508 (rs6000_emit_move): Ditto.
9509 (bdesc_3arg): Ditto.
9510 (bdesc_2arg): Ditto.
9511 (bdesc_1arg): Ditto.
9512 (rs6000_expand_ternop_builtin): Ditto.
9513 (altivec_expand_builtin): Ditto.
9514 (rs6000_expand_unop_builtin): Ditto.
9515 (rs6000_init_builtins): Ditto.
9516 (altivec_init_builtins): Ditto.
9517 (builtin_function_type): Ditto.
9518 (rs6000_common_init_builtins): Ditto.
9519 (rs6000_handle_altivec_attribute); Ditto.
9520 (rs6000_mangle_type): Ditto.
9521 (rs6000_vector_mode_supported_p): Ditto.
9522 (rs6000_mode_dependent_address): Altivec addresses with AND -16
9523 are mode dependent.
9524
9525 * config/rs6000/vsx.md: New file for VSX support.
9526
9527 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): New macro for
9528 identifing values with just the most significant bit set.
9529 (enum rs6000_builtins): Add builtins for VSX. Add simple math
9530 vectorized builtins.
9531
9532 * config/rs6000/altivec.md (UNSPEC_VRFIP): Delete.
9533 (UNSPEC_VRFIM): Delete.
9534 (splitter for loading up vector with most significant bit): New
9535 splitter for vectorizing copysign.
9536 (altivec_vrfiz): Rename from altivec_fturncv4sf2. Add support for
9537 vectorizing simple math functions.
9538 (altivec_vrfip): Add support for vectorizing simple math functions.
9539 (altivec_vrfim): Ditto.
9540 (altivec_copysign_v4sf3): New insn for Altivec copysign support.
9541
9542 * config/rs6000/rs6000.md (UNSPEC_BPERM): New constant.
9543 (power7.md, vsx.md): Include for power7 support.
9544 (copysigndf3): Use VSX instructions if -mvsx.
9545 (negdf2_fpr): Ditto.
9546 (absdf2_fpr): Ditto.
9547 (nabsdf2_fpr): Ditto.
9548 (adddf3_fpr): Ditto.
9549 (subdf3_fpr): Ditto.
9550 (muldf3_fpr): Ditto.
9551 (divdf3_fpr): Ditto.
9552 (fix_truncdfdi2_fpr): Ditto.
9553 (cmpdf_internal1): Ditto.
9554 (fred, fred_fpr): Convert into expander/insn to add VSX support.
9555 (btruncdf2, btruncdf2_fpr): Ditto.
9556 (ceildf2, ceildf2_fpr): Ditto.
9557 (floordf2, floordf2_fpr): Ditto.
9558 (floatdidf2, floatdidf2_fpr): Ditto.
9559 (fmadddf4_fpr): Name insn. Use VSX instructions if -mvsx.
9560 (fmsubdf4_fpr): Ditto.
9561 (fnmadddf4_fpr_1): Ditto.
9562 (fnmadddf4_fpr_2): Ditto.
9563 (fnmsubdf4_fpr_1): Ditto.
9564 (fnmsubdf4_fpr_2): Ditto.
9565 (fixuns_truncdfdi2): Add expander for VSX support.
9566 (fix_truncdfdi2): Ditto.
9567 (fix_truncdfsi2): Ditto.
9568 (ftruncdf2): Ditto.
9569 (btruncsf2): Whitespace.
9570 (movdf_hardfloat32): Add support for VSX registers.
9571 (movdf_softfloat32): Ditto.
9572 (movdf_hardfloat64): Ditto.
9573 (movdf_hardfloat64_mfpgpr): Ditto.
9574 (movdf_softfloat64): Ditto.
9575 (movti splitters): Add check for vector registers supporting
9576 TImode in the future.
9577 (bpermd): Add power7 bpermd instruction.
9578
9579 * config/rs6000/altivec.h (vec_div): Define if VSX.
9580 (vec_mul): Ditto.
9581 (vec_msub): Ditto.
9582 (vec_nmadd): Ditto.
9583 (vec_nearbyint): Ditto.
9584 (vec_rint): Ditto.
9585 (vec_sqrt): Ditto.
9586 (all predicates): Use the generic builtin function, and not the V4SF
9587 specific function so that the predicates will work with VSX's V2DF.
9588 (vec_all_*): Ditto.
9589 (vec_any_*): Ditto.
9590
9591 * doc/extend.texi (PowerPC Altivec/VSX Built-in Functions):
9592 Document new VSX functions and types.
9593
9594 * doc/invoke.texi (PowerPc options): Document -mpopcntd, -mvsx
9595 switches.
9596
9597 * doc/md.texi (PowerPC constraints): Document "wd", "wf", "ws",
9598 "wa", and "j" constraints. Modify "v" to talk about Altivec
9599 instead of just vector.
9600
9601 2009-07-30 Andrew MacLeod <amacleod@redhat.com>
9602
9603 PR debug/26475
9604 * tree-into-ssa.c (insert_phi_nodes_for, rewrite_add_phi_arguments): Set
9605 location for phi arguments.
9606 (rewrite_update_phi_arguments): Find locations for reaching defs.
9607 * tree-ssa-threadupdate.c (create_edge_and_update_destination_phis):
9608 Add location to add_phi_arg calls.
9609 * tree-loop-districbution.c (update_phis_for_loop_copy): Add locations.
9610 * tree-ssa-loop-manip.c (create_iv, add_exit_phis_edge,
9611 split_loop_exit_edge, tree_transform_and_unroll_loop): Add locations.
9612 * tree-tailcall.c (add_successor_phi_arg, eliminate_tail_call,
9613 create_tailcall_accumulator, tree_optimize_tail_calls_1): Add locations.
9614 * tree.h (struct phi_arg_d): Add location_t to PHI arguments.
9615 * tree-phinodes.c (make_phi_node): Initialize location.
9616 (resize_phi_node): Initialize location to UNKNOWN_LOCATION.
9617 (add_phi_arg): Add location parameter.
9618 (remove_phi_arg_num): Move location when moving phi argument.
9619 * omp-low.c (expand_parallel_call, expand_omp_for_static_chunk): Set
9620 location.
9621 * tree-vect-loop-manip.c (slpeel_update_phis_for_duplicate_loop,
9622 slpeel_update_phi_nodes_for_guard1,
9623 slpeel_update_phi_nodes_for_guard2,
9624 slpeel_tree_duplicate_loop_to_edge_cfg, set_prologue_iterations,
9625 vect_loop_versioning): Set locations.
9626 * tree-parloops.c (create_phi_for_local_result,
9627 transform_to_exit_first_loop, create_parallel_loop): Add locations.
9628 * gimple-pretty-print.c (dump_gimple_phi): Dump lineno's if present.
9629 * tree-vect-loop.c (get_initial_def_for_induction,
9630 vect_create_epilog_for_reduction, vect_finalize_reduction): Add
9631 locations.
9632 * tree-flow-inline.h (gimple_phi_arg_location): New. Return locus.
9633 (gimple_phi_arg_location_from_edge): New. Return locus from an edge.
9634 (gimple_phi_arg_set_location): New. Set locus.
9635 (gimple_phi_arg_has_location): New. Check for locus.
9636 (redirect_edge_var_map_location): New. Return locus from var_map.
9637 * tree-vect-data-refs.c (vect_setup_realignment): Set location.
9638 * tree-ssa-phiopt.c (conditional_replacement): Set locus when
9639 combining PHI arguments.
9640 (cond_store_replacement): Set location.
9641 * cfgexpand.c (gimple_assign_rhs_to_tree): Transfer locus if possible.
9642 * grpahite.c (add_loop_exit_phis, add_guard_exit_phis,
9643 scop_add_exit_phis_edge): Add locations.
9644 * tree-cfgcleanup.c (remove_forwarder_block,
9645 remove_forwarder_block_with_phi): Add locations.
9646 * tree-ssa-pre.c (insert_into_preds_of_block): Add locations.
9647 * tree-predcom.c (initialize_root_vars, initialize_root_vars_lm): Add
9648 locations.
9649 * tree-ssa-dce.c (forward_edge_to_pdom): Add locations.
9650 * tree-ssa.c (redirect_edge_var_map_add, ssa_redirect_edge,
9651 flush_pending_stmts): Add source location.
9652 * lambda-code.c (perfect_nestify): Maintain location stack with argument
9653 stack to preserve locations.
9654 * tree-vect-stmts.c (vectorizable_load): Add location.
9655 * tree-inline.c (copy_phis_for_bb): Copy locus.
9656 (setup_one_parameter): Add call locus to inlined parameter stmts.
9657 (initialize_inlined_parameters): Pass in call location as parameter
9658 assignment locus.
9659 (tree_function_versioning): Pass location to setup_one_parameter.
9660 * tree-ssa-phiprop.c (phiprop_insert_phi): Set locations.
9661 * tree-outof-ssa.c (struct _elim_graph): Add source_location vecs for
9662 copy and edge lists.
9663 (insert_partition_copy_on_edge, insert_value_copy_on_edge,
9664 insert_rtx_to_part_on_edge, insert_part_to_rtx_on_edge): Provide a
9665 locus parameter and override the stmt default if provided.
9666 (new_elim_graph, clear_elim_graph, delete_elim_graph,
9667 elim_graph_add_edge, elim_graph_remove_succ_edge,
9668 FOR_EACH_ELIM_GRAPH_SUCC, FOR_EACH_ELIM_GRAPH_PRED, eliminate_build,
9669 elim_forward, elim_unvisited_predecessor, elim_backward, elim_create,
9670 eliminate_phi): Add locus info in elimination graph for each edge and
9671 value copy.
9672 (insert_backedge_copies): Copy locus if present.
9673 * tree-flow.h (struct _edge_var_map): Add locus field.
9674 * tree-switch_conversions.c (fix_phi_nodes): Add locations.
9675 * tree-cfg.c (reinstall_phi_args, gimple_make_forwarder_block,
9676 add_phi_args_after_copy_edge, gimple_lv_adjust_loop_header_phi): Add
9677 locations.
9678 * ipa-struct-reorg.c (make_edge_and_fix_phis_of_dest): Add locations.
9679
9680 2009-07-30 Martin Jambor <mjambor@suse.cz>
9681
9682 PR tree-optimization/40570
9683 * ipa-inline.c (cgraph_decide_inlining): Watch out for dead single
9684 use inlining loops.
9685
9686 2009-07-30 Razya Ladelsky <razya@il.ibm.com>
9687
9688 * ssa-loop-manip.c: Include langhooks.h.
9689 (rewrite_phi_with_iv): New.
9690 (rewrite_all_phi_nodes_with_iv): New.
9691 (canonicalize_loop_ivs): Move here from tree-parloops.c.
9692 Remove reduction_list argument. Use rewrite_all_phi_nodes_with_iv.
9693 * tree-parloops.c (loop_parallel_p): Move out all conditions
9694 except dependency check.
9695 (canonicalize_loop_ivs): Move to tree-ssa-loop-manip.c.
9696 (gen_parallel_loop): Call canonicalize_loop_ivs without
9697 reduction_list argument.
9698 (build_new_reduction): New.
9699 (gather_scalar_reductions): New.
9700 (try_get_loop_niter): New.
9701 (try_create_reduction_list): New.
9702 (parallleize_loops): Change the parallel conditions check.
9703 * tree-flow.h (canonicalize_loop_ivs): Remove one argument.
9704 * Makefile.in (tree-ssa-loop-manip.o): Add langhooks.h dependency.
9705
9706 2009-07-30 Dave Korn <dave.korn.cygwin@gmail.com>
9707
9708 * opt-functions.awk (opt_args): Allow argument to be enclosed in
9709 curly braces.
9710 * doc/options.texi (Option properties): Mention new quoting syntax.
9711
9712 2009-07-29 Douglas B Rupp <rupp@gnat.com>
9713
9714 * config/alpha/alpha.c (alpha_start_function):
9715 Handle VMS_DEBUG_MAIN_POINTER
9716 * config/alpha/vms.h (VMS_DEBUG_MAIN_POINTER): Define new macro.
9717 * doc/invoke.texi: Document -mdebug-main switch.
9718
9719 2009-07-29 Richard Henderson <rth@redhat.com>
9720
9721 * cgraph.c (cgraph_set_call_stmt_including_clones): Tidy.
9722 (cgraph_create_edge_including_clones): Likewise.
9723 * tree-inline.c (copy_bb): Operate on the correct edges
9724 when updating the callgraph.
9725
9726 2009-07-29 Douglas B Rupp <rupp@gnat.com>
9727
9728 * config/alpha/vms-cc.c: Deleted.
9729 * config/alpha/vms-ld.c: Deleted.
9730 * config/alpha/t-vms64: Moved to config/vms
9731 * config/alpha/vms-crt0-64.c: Moved to config/vms
9732 * config/alpha/vms-crt0.c: Moved to config/vms
9733 * config/alpha/vms-psxcrt0-64.c: Moved to config/vms
9734 * config/alpha/vms-psxcrt0.c: Moved to config/vms
9735 * config/alpha/xm-vms.h: Moved to config/vms
9736 * config/alpha/x-vms: Moved to config/vms
9737 * config/alpha/t-vms (vcrt0.o, pcrt0.o): Move rules to new file
9738 config/vms/t-vms.
9739 * config/vms/t-vms: Moved here from config/alpha. Alpha specific
9740 parts removed. (STMP_FIXPROTO, STMP_FIXINC, LIMITS_H_TEST): Set.
9741 (version): Set.
9742 * config/vms/t-vms64: Moved here from config/alpha
9743 * config/vms/vms-crt0-64.c: Moved here from config/alpha.
9744 (argc,argv,envp): Enforce 32bit malloc'ing.
9745 * config/vms/vms-psxcrt0-64.c: Likewise.
9746 * config/vms/vms-crt0.c: Moved here from config/alpha.
9747 * config/vms/vms-psxcrt0.c: Likewise.
9748 * config/vms/vms-crtl-64.h: New file.
9749 * config/vms/vms-crtl.h: New file.
9750 * config/vms/vms.opt: New file.
9751 * config/vms/xm-vms64.h: New file.
9752 * config/vms/xm-vms.h: Moved here from config/alpha.
9753 (STANARD_EXEC_PREFIX, STANDARD_STARTFILE_PREFIX, STANDARD_INCLUDE_DIR):
9754 Set.
9755 * config/vms/x-vms: Moved here from config/alpha.
9756 (version, VMS_EXTRA_PARTS): Moved to t-vms.
9757 (vms-ld.o, vms-cc.o): Removed.
9758 (LN, LN_S, USE_COLLECT2, POD2MAN): Set.
9759
9760 2009-07-29 Douglas B Rupp <rupp@gnat.com>
9761
9762 * dwarf2out.c (add_name_and_src_coords_attributes): Push on the
9763 correct stack (obvious VMS fix).
9764
9765 2009-07-29 Douglas B Rupp <rupp@gnat.com>
9766
9767 * dwarf2out.c (output_file_names): Output VMS style file name, size,
9768 date, version info if VMS_DEBUGGING_INFO defined.
9769 * vmsdgbout.c (vms_file_stats_name): New functon. VMS style file name,
9770 size, date calculating code moved here.
9771
9772 2009-07-29 Paul Brook <paul@codesourcery.com>
9773
9774 * config/arm/lib1funcs.asm (clear_cache): Use ARM_FUNC_START and
9775 do_push/do_pop.
9776
9777 2009-07-29 Uros Bizjak <ubizjak@gmail.com>
9778
9779 PR target/40577
9780 * config/alpha/alpha.c (alpha_expand_unaligned_store): Convert src
9781 to DImode when generating insq_le insn.
9782
9783 2009-07-28 Douglas B Rupp <rupp@gnat.com>
9784
9785 * dwarf2out.c (DWARF2_INDIRECT_STRING_SUPPORT_MISSING_ON_TARGET):
9786 New macro set for VMS_DEBUGGGING_INFO.
9787 (AT_string_form): Use it.
9788
9789 2009-07-28 DJ Delorie <dj@redhat.com>
9790
9791 * config/mep/mep.c (vtext_section): New.
9792 (vftext_section): New.
9793 (ftext_section): New.
9794 (mep_select_section): Add support for functions.
9795 (mep_unique_section): Likewise.
9796 (mep_asm_init_sections): Likewise.
9797 (mep_encode_section_info): Remove it from here.
9798
9799 * config/mep/mep.h (USE_SELECT_SECTION_FOR_FUNCTIONS): Define.
9800
9801 2009-07-28 Paolo Bonzini <bonzinI@gnu.org>
9802
9803 * tree.h (TREE_DEPRECATED): Document it is used for types too.
9804 (TYPE_VECTOR_OPAQUE): Use default_def_flag
9805
9806 2009-07-28 Douglas B Rupp <rupp@gnat.com>
9807
9808 * dwarf2out.c (output_file_names): Test new macro
9809 DWARF2_DIR_SHOULD_END_WITH_SEPARATOR.
9810 (add_comp_dir_attribute): Likewise.
9811
9812 2009-07-28 Kai Tietz <kai.tietz@onevision.com>
9813
9814 * config/i386/mingw-w64.h (LINK_SPEC): Add
9815 separating space between commands.
9816
9817 2009-07-28 Jan Hubicka <jh@suse.cz>
9818
9819 PR tree-optimization/40759
9820 * tree-ssa-dce.c (mark_virtual_phi_result_for_renaming): Mark all uses
9821 for renaming.
9822
9823 2009-07-27 DJ Delorie <dj@redhat.com>
9824
9825 * config/mep/mep.c (mep_expand_builtin_saveregs): Make sure 64-bit
9826 types are dword-aligned.
9827 (mep_expand_va_start): Likewise.
9828
9829 2009-07-27 Olivier Hainque <hainque@adacore.com>
9830 Douglas B Rupp <rupp@gnat.com>
9831
9832 * convert.c (convert_to_pointer): Don't assume the target
9833 pointer type is POINTER_SIZE long. Fetch its precision instead.
9834
9835 2009-07-27 Douglas B Rupp <rupp@gnat.com>
9836
9837 * system.h (fopen): Undefine if macro.
9838
9839 2009-07-27 Jakub Jelinek <jakub@redhat.com>
9840
9841 * dwarf2out.c (output_cfi_p): Removed.
9842 (output_cfis): New function.
9843 (output_fde): New function, split from output_call_frame_info.
9844 (output_call_frame_info): Use it.
9845 (dwarf2out_switch_text_section): Use output_cfis.
9846
9847 2009-07-24 Kai Tietz <kai.tietz@onevision.com>
9848
9849 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Error build when
9850 TARGET_BI_ARCH is specified without enabling SJLJ.
9851 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Define MD_UNWIND_SUPPORT,
9852 if TARGET_64BIT and TARGET_BI_ARCH aren't defined.
9853
9854 2009-07-26 Mikael Pettersson <mikpe@it.uu.se>
9855
9856 * arm.md (negdi2): Use DImode if forcing a value into a register.
9857
9858 2009-07-26 Ira Rosen <irar@il.ibm.com>
9859
9860 PR tree-optimization/40801
9861 * tree-vect-stmts.c (vectorizable_call): Get previous copy
9862 of vector operand from the previous copy of vector statement.
9863 Pass the correct definition type value to
9864 vect_get_vec_def_for_stmt_copy().
9865
9866 2009-07-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9867
9868 * collect2.c (scan_libraries): Use CONST_CAST2 to perform char ** to
9869 const char ** conversion.
9870
9871 2009-07-25 David Daney <ddaney@caviumnetworks.com>
9872
9873 * system.h (gcc_assert): Invoke __builtin_unreachable() instead of
9874 fancy_abort() if !ENABLE_ASSERT_CHECKING.
9875 (gcc_unreachable): Invoke __builtin_unreachable() if
9876 !ENABLE_ASSERT_CHECKING.
9877
9878 2009-07-25 David Daney <ddaney@caviumnetworks.com>
9879
9880 PR rtl-optimization/40445
9881 * emit-rtl.c (next_nonnote_insn_bb): New function.
9882 * rtl.h (next_nonnote_insn_bb): Declare new function.
9883 * cfgcleanup.c (try_optimize_cfg): Don't remove an empty block
9884 with no successors that is the successor of the ENTRY_BLOCK.
9885 Continue from the top after removing an empty fallthrough block.
9886 * cfgrtl.c (get_last_bb_insn): Call next_nonnote_insn_bb instead
9887 of next_nonnote_insn.
9888
9889 2009-07-25 David Daney <ddaney@caviumnetworks.com>
9890
9891 * cfgcleanup.c (old_insns_match_p): Handle the case of empty blocks.
9892
9893 2009-07-25 Martin Jambor <mjambor@suse.cz>
9894
9895 * c-common.c (c_common_attribute_table): New element for noclone.
9896 (handle_noclone_attribute): New function. Forward-declare.
9897 * tree-inline.c (tree_versionable_function_p): Check for noclone
9898 attribute.
9899 * doc/extend.texi (Labels as Values): Document need for noclone.
9900 (Function Attributes): Document noclone attribute.
9901
9902 2009-07-25 Jakub Jelinek <jakub@redhat.com>
9903
9904 PR rtl-optimization/34999
9905 * dwarf2out.c (struct dw_fde_struct): Add dw_fde_switch_cfi
9906 and dw_fde_switched_cold_to_hot fields.
9907 (output_cfi_p): New function.
9908 (output_call_frame_info): If fde->dw_fde_switched_sections,
9909 output 2 FDEs instead of one with corrupted header.
9910 (dwarf2out_do_cfi_startproc): New function.
9911 (dwarf2out_begin_prologue): Use it. Initialize fde->dw_fde_switch_cfi
9912 and fde->dw_fde_switched_cold_to_hot.
9913 (dwarf2out_switch_text_section): Compute
9914 fde->dw_fde_switched_cold_to_hot. Switch to new text section here.
9915 If dwarf2out_do_cfi_asm, emit .cfi_endproc before it and call
9916 dwarf2out_do_cfi_startproc plus emit again currently active CFI insns.
9917 Otherwise, compute fde->dw_fde_switch_cfi.
9918
9919 2009-07-24 Cary Coutant <ccoutant@google.com>
9920
9921 * tree-cfg.c (assign_discriminator): Add explicit parentheses.
9922
9923 2009-07-24 Cary Coutant <ccoutant@google.com>
9924
9925 * cfghooks.c (split_block): Copy discriminator to new block.
9926 * tree-cfg.c (assign_discriminator): Check location of last
9927 instruction in block as well as first.
9928
9929 2009-07-24 Uros Bizjak <ubizjak@gmail.com>
9930
9931 * config/i386/linux.c: Use fputs or putc instead of fprintf
9932 where appropriate.
9933 * config/i386/gas.h: Ditto.
9934 * config/i386/x86-64.h: Ditto.
9935 * config/i386/att.h: Ditto.
9936
9937 2009-07-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9938
9939 * expmed.c (emit_store_flag): Use a recursive call to optimize the
9940 xor case.
9941
9942 2009-07-24 Martin Jambor <mjambor@suse.cz>
9943
9944 * ipa-prop.h (struct ipa_node_params): New flag node_enqued.
9945 (ipa_push_func_to_list_1): Declare.
9946 (ipa_push_func_to_list): New function.
9947
9948 * ipa-prop.c (ipa_push_func_to_list_1): New function.
9949 (ipa_init_func_list): Call ipa_push_func_to_list_1.
9950 (ipa_push_func_to_list): Removed.
9951 (ipa_pop_func_from_list): Clear node_enqueued flag.
9952
9953 2009-07-24 Andreas Krebbel <krebbel1@de.ibm.com>
9954
9955 * config/s390/s390.c (override_options): Default
9956 max-unrolled-insns to 100 for z10 tuning.
9957
9958 2009-07-24 Tobias Grosser <grosser@fim.uni-passau.de>
9959
9960 * Makefile.in (TREE_DATA_REF_H, tree-vrp.o, tree-cfg.o, tree-if-conv.o
9961 tree-ssa-loop.o, tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o,
9962 tree-ssa-loop-prefetch.o, tree-predcom.o, tree-affine.o,
9963 tree-scalar-evolution.o, tree-data-ref.o, tree-vect-loop.o,
9964 tree-vect-data-refs.o, tree-loop-linear.o, tree-loop-distribution.o
9965 tree-parloops.o, tree-pretty-printer.o, fold-const.o, tree-ssa-dce.o,
9966 lambda-code.o, params.o): Cleanup use of SCEV_H and TREE_DATA_REF_H.
9967
9968 2009-07-24 Kai Tietz <kai.tietz@onevision.com>
9969
9970 * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR): Remove and
9971 use default set in mingw32.h header.
9972 * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Use for 32-bit and
9973 64-bit /mingw/include path.
9974 (STANDARD_STARTFILE_PREFIX_1): Use for 32-bit and 64-bit /mingw/lib
9975 path.
9976
9977 2009-07-23 Neil Vachharajani <nvachhar@google.com>
9978
9979 PR rtl-optimization/40209
9980 * loop-iv.c (iv_analysis_loop_init): Call df_note_add_problem.
9981
9982 2009-07-23 Uros Bizjak <ubizjak@gmail.com>
9983
9984 * config/i386/i386.c: Use ASM_LONG instead of .long. Concatenate
9985 ASM_LONG, LPREFIX, MCOUNT_NAME and PROFILE_COUNT_REGISTER strings
9986 with the rest of string where appropriate. Use fputs or putc
9987 instead of fprintf where appropriate.
9988
9989 2009-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
9990 Pat Haugen <pthaugen@us.ibm.com>
9991 Revital Eres <ERES@il.ibm.com>
9992
9993 * config/rs6000/vector.md: New file. Move most of the vector
9994 expander support here from altivec.md to allow for the VSX vector
9995 unit in the future. Add support for secondary_reload patterns.
9996 Rewrite the patterns for vector comparison, and vector comparison
9997 predicate instructions so that the RTL expresses the desired
9998 behavior, instead of using unspec.
9999
10000 * config/rs6000/constraints.md ("f" constraint): Use
10001 rs6000_constraints to hold the precalculated register class.
10002 ("d" constraint): Ditto.
10003 ("wd" constraint): New constraint for VSX.
10004 ("wf" constraint): Ditto.
10005 ("ws" constraint): Ditto.
10006 ("wa" constraint): Ditto.
10007 ("wZ" constraint): Ditto.
10008 ("j" constraint): Ditto.
10009
10010 * config/rs6000/predicates.md (vsx_register_operand): New
10011 predicate for VSX.
10012 (vfloat_operand): New predicate for vector.md.
10013 (vint_operand): Ditto.
10014 (vlogical_operand): Ditto.
10015 (easy_fp_constant): If VSX, 0.0 is an easy constant.
10016 (easy_vector_constant): Add VSX support.
10017 (altivec_indexed_or_indirect_operand): New predicate for
10018 recognizing Altivec style memory references with AND -16.
10019
10020 * config/rs6000/rs6000.c (rs6000_vector_reload): New static global
10021 for vector secondary reload support.
10022 (rs6000_vector_reg_class): Delete, replacing it with
10023 rs6000_constraints.
10024 (rs6000_vsx_reg_class): Ditto.
10025 (rs6000_constraints): New array to hold the register classes of
10026 each of the register constraints that can vary at runtime.
10027 (builtin_mode_to_type): New static array for builtin function type
10028 creation.
10029 (builtin_hash_table): New static hash table for builtin function
10030 type creation.
10031 (TARGET_SECONDARY_RELOAD): Define target hook.
10032 (TARGET_IRA_COVER_CLASSES): Ditto.
10033 (rs6000_hard_regno_nregs_internal): If -mvsx, floating point
10034 registers are 128 bits if VSX memory reference instructions are used.
10035 (rs6000_hard_regno_mode_ok): For VSX, only check if the VSX memory
10036 unit is being used.
10037 (rs6000_debug_vector_unit): Move into rs6000_debug_reg_global.
10038 (rs6000_debug_reg_global): Move -mdebug=reg statements here.
10039 Print several of the scheduling related parameters.
10040 (rs6000_init_hard_regno_mode_ok): Switch to putting constraints in
10041 rs6000_constraints instead of rs6000_vector_reg_class. Move
10042 -mdebug=reg code to rs6000_debug_reg_global. Add support for
10043 -mvsx-align-128 debug switch. Drop testing float_p if VSX or
10044 Altivec. Add VSX support. Setup for secondary reload support on
10045 Altivec/VSX registers.
10046 (rs6000_override_options): Make power7 set the scheduling groups
10047 like the power5. Add support for new debug switches to override
10048 the scheduling defaults. Temporarily disable -mcpu=power7 from
10049 setting -mvsx. Add support for debug switches -malways-hint,
10050 -msched-groups, and -malign-branch-targets.
10051 (rs6000_buitlin_conversion): Add support for returning unsigned
10052 vector conversion functions to fix regressions due to stricter
10053 type checking.
10054 (rs6000_builtin_mul_widen_even): Ditto.
10055 (rs6000_builtin_mul_widen_odd): Ditto.
10056 (rs6000_builtin_vec_perm): Ditto.
10057 (rs6000_vec_const_move): On VSX, use xxlxor to clear register.
10058 (rs6000_expand_vector_init): Initial VSX support for using xxlxor
10059 to zero a register.
10060 (rs6000_emit_move): Fixup invalid const symbol_ref+reg that is
10061 generated upstream.
10062 (bdesc_3arg): Add builtins for unsigned types. Add builtins for
10063 VSX types for bit operations. Changes to accomidate vector.md.
10064 (bdesc_2arg): Ditto.
10065 (bdesc_1arg): Ditto.
10066 (struct builtin_description_predicates): Rewrite predicate
10067 handling so that RTL describes the operation, instead of passing
10068 the instruction to be used as a string argument.
10069 (bdesc_altivec_preds): Ditto.
10070 (altivec_expand_predicate_builtin): Ditto.
10071 (altivec_expand_builtin): Ditto.
10072 (rs6000_expand_ternop_builtin): Use a switch instead of an if
10073 statement for vsldoi support.
10074 (altivec_expand_ld_builtin): Change to use new names from vector.md.
10075 (altivec_expand_st_builtin): Ditto.
10076 (paired_expand_builtin): Whitespace changes.
10077 (rs6000_init_builtins): Add V2DF/V2DI types. Initialize the
10078 builtin_mode_to_type table for secondary reload. Call
10079 builtin_function_type to build random builtin functions.
10080 (altivec_init_builtins): Change to use builtin_function_type to
10081 create builtin function types dynamically as we need them.
10082 (builtin_hash_function): New support for hashing the tree types
10083 for builtin function as we need it, rather than trying to build
10084 all of the trees that we need. Add initial preliminary VSX support.
10085 (builtin_function_type): Ditto.
10086 (builtin_function_eq): Ditto.
10087 (builtin_hash_struct): Ditto.
10088 (rs6000_init_builtins): Ditto.
10089 (rs6000_common_init_builtins): Ditto.
10090 (altivec_init_builtins): Ditto.
10091 (rs6000_common_init_builtins): Ditto.
10092 (enum reload_reg_type): New enum for simplifing reg classes.
10093 (rs6000_reload_register_type): Simplify register classes into GPR,
10094 Vector, and other registers. Altivec and VSX addresses in reload.
10095 (rs6000_secondary_reload_inner): Ditto.
10096 (rs6000_ira_cover_classes): New target hook, that returns the
10097 appropriate cover classes, based on -mvsx being used or not.
10098 (rs6000_secondary_reload_class): Add VSX support.
10099 (get_vec_cmp_insn): Delete, rewrite vector conditionals.
10100 (get_vsel_insn): Ditto.
10101 (rs6000_emit_vector_compare): Rewrite vector conditional support
10102 so that where we can, we use RTL operators, instead of blindly use
10103 UNSPEC.
10104 (rs6000_emit_vector_select): Ditto.
10105 (rs6000_emit_vector_cond_expr): Ditto.
10106 (rs6000_emit_minmax): Directly generate min/max under altivec, vsx.
10107 (create_TOC_reference): Add -mdebug=addr support.
10108 (emit_frame_save): VSX loads/stores need register indexed addressing.
10109
10110 * config/rs6000/rs6000.md: Include vector.md.
10111
10112 * config/rs6000/t-rs6000 (MD_INCLUDES): Add vector.md.
10113
10114 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
10115 support for V2DI, V2DF in logical, permute, select operations.
10116
10117 * config/rs6000/rs6000.opt (-mvsx-scalar-double): Add new debug
10118 switch for vsx/power7.
10119 (-mvsx-scalar-memory): Ditto.
10120 (-mvsx-align-128): Ditto.
10121 (-mallow-movmisalign): Ditto.
10122 (-mallow-df-permute): Ditto.
10123 (-msched-groups): Ditto.
10124 (-malways-hint): Ditto.
10125 (-malign-branch-targets): Ditto.
10126
10127 * config/rs6000/rs6000.h (IRA_COVER_CLASSES): Delete, use target
10128 hook instead.
10129 (IRA_COVER_CLASSES_PRE_VSX): Cover classes if not -mvsx.
10130 (IRA_COVER_CLASSES_VSX): Cover classes if -mvsx.
10131 (rs6000_vector_reg_class): Delete.
10132 (rs6000_vsx_reg_class): Ditto.
10133 (enum rs6000_reg_class_enum): New enum for the constraints that
10134 vary based on target switches.
10135 (rs6000_constraints): New array to hold the register class for all
10136 of the register constraints that vary based on the switches used.
10137 (ALTIVEC_BUILTIN_*_UNS): Add unsigned builtin functions.
10138 (enum rs6000_builtins): Add unsigned varients for the builtin
10139 declarations returned by target hooks for expanding multiplies,
10140 select, and permute operations. Add VSX builtins.
10141 (enum rs6000_builtin_type_index): Add entries for VSX.
10142 (V2DI_type_node): Ditto.
10143 (V2DF_type_node): Ditto.
10144 (unsigned_V2DI_type_node): Ditto.
10145 (bool_long_type_node): Ditto.
10146 (intDI_type_internal_node): Ditto.
10147 (uintDI_type_internal_node): Ditto.
10148 (double_type_internal_node): Ditto.
10149
10150 * config/rs6000/altivec.md (whole file): Move all expanders to
10151 vector.md from altivec.md. Rename insn matching functions to be
10152 altivec_foo.
10153 (UNSPEC_VCMP*): Delete, rewrite vector comparisons.
10154 (altivec_vcmp*): Ditto.
10155 (UNSPEC_VPERM_UNS): New, add for unsigned types using vperm.
10156 (VM): New iterator for moves that includes the VSX types.
10157 (altivec_vperm_<mode>): Add VSX types. Add unsigned types.
10158 (altivec_vperm_<mode>_uns): New, for unsigned types.
10159 (altivec_vsel_*): Rewrite vector comparisons and predicate builtins.
10160 (altivec_eq<mode>): Ditto.
10161 (altivec_gt<mode>): Ditto.
10162 (altivec_gtu<mode>): Ditto.
10163 (altivec_eqv4sf): Ditto.
10164 (altivec_gev4sf): Ditto.
10165 (altivec_gtv4sf): Ditto.
10166 (altivec_vcmpbfp_p): Ditto.
10167
10168 2009-07-23 Richard Earnshaw <rearnsha@arm.com>
10169
10170 * arm.md (split for ior/xor with shift and zero-extend): Cast op3 to
10171 unsigned HWI.
10172
10173 2009-07-23 Uros Bizjak <ubizjak@gmail.com>
10174
10175 PR target/40832
10176 * config/i386/i386.c (output_387_ffreep): Rewrite to use
10177 ASM_SHORT instead of .word.
10178 * config/i386/i386.md (*tls_global_dynamic_64): Use ASM_SHORT
10179 instead of .word in asm template.
10180
10181 2009-07-22 Vladimir Makarov <vmakarov@redhat.com>
10182
10183 PR target/37488
10184 * ira-lives.c (bb_has_abnormal_call_pred): New function.
10185 (process_bb_node_lives): Use it.
10186
10187 * ira.c (setup_cover_and_important_classes): Don't setup
10188 ira_important_class_nums. Add cover classes to the end of
10189 important classes.
10190 (cover_class_order, comp_reg_classes_func, reorder_important_classes):
10191 New.
10192 (find_reg_class_closure): Use reorder_important_classes.
10193
10194 * config/i386/i386.h (IRA_COVER_CLASSES): Remove.
10195
10196 * config/i386/i386.c (i386_ira_cover_classes): New function.
10197 (TARGET_IRA_COVER_CLASSES): Redefine.
10198
10199 * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Add a comment about
10200 importance of order of cover classes in the array.
10201
10202 2009-07-22 Diego Novillo <dnovillo@google.com>
10203
10204 * tree-pass.h (TDF_EH): Define.
10205 * gimple-pretty-print.c (dump_gimple_stmt): If FLAGS
10206 contains TDF_EH, print the EH region number holding GS.
10207 * tree-dump.c (dump_options): Add "eh".
10208 * doc/invoke.texi: Document it.
10209
10210 2009-07-22 Doug Kwan <dougkwan@google.com>
10211
10212 * config/arm/arm.md (subdi3) Copy non-reg values to DImode registers.
10213
10214 2009-07-22 Michael Matz <matz@suse.de>
10215
10216 PR tree-optimization/35229
10217 PR tree-optimization/39300
10218
10219 * tree-ssa-pre.c (includes): Include tree-scalar-evolution.h.
10220 (inhibit_phi_insertion): New function.
10221 (insert_into_preds_of_block): Call it for REFERENCEs.
10222 (init_pre): Initialize and finalize scalar evolutions.
10223 * Makefile.in (tree-ssa-pre.o): Depend on tree-scalar-evolution.h .
10224
10225 2009-07-22 Uros Bizjak <ubizjak@gmail.com>
10226
10227 * config/i386/predicates.md (zero_extended_scalar_load_operand):
10228 Use CONST_VECTOR_NUNITS to determine number of elements.
10229
10230 2009-07-22 Andreas Krebbel <krebbel1@de.ibm.com>
10231
10232 * config/s390/constraints.md (ZQ, ZR, ZS, ZT): New constraints.
10233 (U, W): Constraints are now deprecated and will be removed if we
10234 run out of letters.
10235 * config/s390/s390.md (U, W): Replaced with ZQZR, ZSZT throughout
10236 the file.
10237 ("prefetch"): Add the stcmh instruction for prefetching.
10238 * config/s390/s390.c (s390_symref_operand_p): Function moved. No
10239 changes.
10240 (s390_short_displacement): Return always true if compiling for
10241 machines not providing the long displacement facility.
10242 (s390_mem_constraint): Support the new constraint letter Z.
10243 (s390_check_qrst_address): New function.
10244
10245 2009-07-21 DJ Delorie <dj@redhat.com>
10246
10247 * config/mep/mep.c (mep_legitimize_arg): Leave control registers
10248 alone too.
10249
10250 2009-07-21 Jason Merrill <jason@redhat.com>
10251
10252 * c-common.c (max_tinst_depth): Increase default to 1024.
10253
10254 2009-07-21 Uros Bizjak <ubizjak@gmail.com>
10255
10256 * config/i386/sse.md (vec_unpacku_float_hi_v4si): New expander.
10257 (vec_unpacku_float_lo_v4si): Ditto.
10258
10259 2009-07-21 Uros Bizjak <ubizjak@gmail.com>
10260
10261 PR target/40811
10262 * config/i386/sse.md (sse2_cvtudq2ps): New expander.
10263 (enum ix86_builtins): Add IX86_BUILTIN_CVTUDQ2PS.
10264 (builtin_description): Add __builtin_ia32_cvtudq2ps.
10265 (ix86_vectorize_builtin_conversion): Handle IX86_BUILTIN_CVTUDQ2PS.
10266
10267 2009-07-21 Jakub Jelinek <jakub@redhat.com>
10268
10269 PR tree-optimization/40813
10270 * tree-inline.c (copy_bb): Regimplify RHS after last stmt, not before
10271 it.
10272
10273 2009-07-21 Kaz Kojima <kkojima@gcc.gnu.org>
10274
10275 * config/sh/sh.c (sh_gimplify_va_arg_expr): Wrap the result
10276 with a NOP_EXPR if needed.
10277
10278 2009-07-21 Paul Brook <paul@codesourcery.com>
10279
10280 * tree-vectorizer.c (increase_alignment): Handle nested arrays.
10281 Terminate debug dump with newline.
10282
10283 2009-07-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10284
10285 * pa.c (compute_zdepwi_operands): Limit deposit length to 32 - lsb.
10286 Cast "1" to unsigned HOST_WIDE_INT.
10287 (compute_zdepdi_operands): Limit maximum length to 64 bits. Limit
10288 deposit length to the maximum length - lsb. Extend length if
10289 HOST_BITS_PER_WIDE_INT is 32.
10290
10291 2009-07-20 Olatunji Ruwase <tjruwase@google.com>
10292
10293 * cgraph.h (constant_pool_htab): New function.
10294 (constant_descriptor_tree): Move from varasm.c.
10295 * varasm.c (constant_pool_htab): New function.
10296 (constant_descriptor_tree): Move to cgraph.h.
10297
10298 2009-07-20 Olatunji Ruwase <tjruwase@google.com>
10299
10300 * toplev.c: Invoke FINISH_UNIT callbacks before call to finalize().
10301
10302 2009-07-20 Shujing Zhao <pearly.zhao@oracle.com>
10303
10304 * Makefile.in (TREE_INLINE_H, tree-inline.o, cgraph.o): Remove
10305 $(VARRAY_H).
10306
10307 2009-07-20 Xinliang David Li <davidxl@google.com>
10308
10309 * dbgcnt.c (dbg_cnt_set_limit_by_name): Add length check.
10310
10311 2009-07-20 Adam Nemet <anemet@caviumnetworks.com>
10312
10313 * config/mips/mips.md (move_type): Add arith.
10314 (type): Handle arith.
10315 (zero_extendsidi2): Rename this into ...
10316 (*zero_extendsidi2): ... this. Don't match if ISA_HAS_EXT_INS.
10317 (zero_extendsidi2): New expander.
10318 (*zero_extendsidi2_dext): New pattern.
10319
10320 2009-07-20 Nick Clifton <nickc@redhat.com>
10321
10322 * config.gcc (mips64-*-*): Add definition of tm_defines in order
10323 to set MIPS_ABI_DEFAULT.
10324 * config/mips/vr.h (MIPS_ABI_DEFAULT): Remove definition.
10325
10326 2009-07-20 Jakub Jelinek <jakub@redhat.com>
10327
10328 * tree-object-size.c (addr_object_size): Handle unions with
10329 array in it as last field of structs in __bos (, 1) as __bos (, 0).
10330
10331 PR tree-optimization/40792
10332 * tree.c (build_function_type_skip_args): Remove bogus assert.
10333
10334 2009-07-20 Jan Hubicka <jh@suse.cz>
10335 Martin Jambor <mjambor@suse.cz>
10336
10337 * cgraph.h (combined_args_to_skip): New field.
10338 * cgraph.c (cgraph_create_virtual_clone): Properly handle
10339 combined_args_to_skip and args_to_skip.
10340 * tree-inline.c (update_clone_info): New function.
10341 (tree_function_versioning): Call update_clone_info.
10342 * cgraphunit.c: (cgraph_materialize_clone): Dump materialized
10343 functions.
10344 (cgraph_materialize_all_clones): More extensive dumping, working
10345 with combined_args_to_skip rather than args_to_skip.
10346
10347 2009-07-20 Ira Rosen <irar@il.ibm.com>
10348
10349 * tree-vectorizer.h (vectorizable_condition): Add parameters.
10350 * tree-vect-loop.c (vect_is_simple_reduction): Support COND_EXPR.
10351 (get_initial_def_for_reduction): Likewise.
10352 (vectorizable_reduction): Skip the check of first operand in case
10353 of COND_EXPR. Add check that it is outer loop vectorization if
10354 nested cycle was detected. Call vectorizable_condition() for
10355 COND_EXPR. If reduction epilogue cannot be created do not fail for
10356 nested cycles (if it is not double reduction). Assert that there
10357 is only one type in the loop in case of COND_EXPR. Call
10358 vectorizable_condition() to vectorize COND_EXPR.
10359 * tree-vect-stmts.c (vectorizable_condition): Update comment.
10360 Add parameters. Allow nested cycles if called from
10361 vectorizable_reduction(). Use reduction vector variable if provided.
10362 (vect_analyze_stmt): Call vectorizable_reduction() before
10363 vectorizable_condition().
10364 (vect_transform_stmt): Update call to vectorizable_condition().
10365
10366 2009-07-20 Christian Bruel <christian.bruel@st.com>
10367
10368 * config/sh/sh.opt (-mfmovd): Resurrect and document.
10369 * doc/invoke.texi (-mfmovd): Likewise.
10370 * config/sh/sh.h (TARGET_FMOVD, MASK_FMOVD): Remove default setting.
10371
10372 2009-07-20 Jan Hubicka <jh@suse.cz>
10373
10374 * tree-ssa-dce.c (remove_dead_phis): Only look for abnormal PHIs
10375 when handling SSA name.
10376
10377 2009-07-19 Jan Hubicka <jh@suse.cz>
10378
10379 PR tree-optimization/40676
10380 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do renaming on all
10381 virtual PHIs in empty BBs.
10382
10383 2009-07-18 Adam Nemet <anemet@caviumnetworks.com>
10384
10385 * combine.c (make_compound_operation) <SUBREG>: If force_to_mode
10386 re-expanded the compound use gen_lowpart instead to convert to the
10387 desired mode.
10388
10389 2009-07-18 Adam Nemet <anemet@caviumnetworks.com>
10390
10391 * combine.c (try_widen_shift_mode): Add COUNT, OUTER_CODE and
10392 OUTER_CONST arguments.
10393 <LSHIFTRT>: Use them to allow widening if the bits shifted in from
10394 the new wider mode will be masked off.
10395 (simplify_shift_const_1): Adjust calls to try_widen_shift_mode.
10396
10397 2009-07-18 Adam Nemet <anemet@caviumnetworks.com>
10398
10399 * combine.c (try_widen_shift_mode) <LSHIFTRT>: Allow widening if the
10400 high-order bits are zero.
10401
10402 2009-07-18 Adam Nemet <anemet@caviumnetworks.com>
10403
10404 * combine.c (simplify_shift_const_1): Split code to determine
10405 shift_mode into ...
10406 (try_widen_shift_mode): ... here. Allow widening for ASHIFTRT if the
10407 new bits shifted in are identical to the old sign bit.
10408
10409 2009-07-18 Richard Guenther <rguenther@suse.de>
10410
10411 PR c/40787
10412 * gimplify.c (gimplify_call_expr): Reject code using results from
10413 functions returning void.
10414
10415 2009-07-18 Richard Sandiford <r.sandiford@uk.ibm.com>
10416
10417 * doc/md.texi: Document the new PowerPC "es" constraint.
10418 Document that "m" can include automodified addresses on this target,
10419 and explain how %U must be used. Extend the "Q" and "Z" documentation
10420 to suggest "es" as well as "m".
10421 * config/rs6000/constraints.md (es): New memory constraint.
10422 (Q, Z): Update strings to match new documentation.
10423
10424 2009-07-18 Richard Sandiford <r.sandiford@uk.ibm.com>
10425
10426 * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Allow any
10427 offset from virtual_stack_vars_rtx and arg_pointer_rtx.
10428 * config/rs6000/predicates.md (volatile_mem_operand): Use
10429 offsettable_nonstrict_memref_p.
10430 * config/rs6000/rs6000.md (*floatsidf2_internal): Remove split check.
10431 (*floatunssidf2_internal): Likewise.
10432 (*fix_truncdfsi2_internal): Likewise.
10433 (*fix_trunctfsi2_internal): Likewise.
10434
10435 2009-07-17 Anatoly Sokolov <aesok@post.ru>
10436
10437 * config/avr/avr-devices.c (avr_mcu_t): Add atmega8u2, atmega16u2 and
10438 atmega32u2 devices.
10439 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
10440
10441 2009-07-17 Richard Guenther <rguenther@suse.de>
10442
10443 PR c/40401
10444 * tree-pass.h (pass_diagnose_omp_blocks): Declare.
10445 (pass_warn_unused_result): Likewise.
10446 (TODO_set_props): Remove.
10447 * omp-low.c (diagnose_omp_structured_block_errors): Change to
10448 run as a pass.
10449 (pass_diagnose_omp_blocks): Define.
10450 * c-decl.c (pop_file_scope): Do not finalize the CU here.
10451 (c_gimple_diagnostics_recursively): Remove.
10452 (finish_function): Do not call it.
10453 (c_write_global_declarations): Continue after errors.
10454 Finalize the CU here.
10455 * c-gimplify.c (c_genericize): Do not gimplify here.
10456 * c-common.c (c_warn_unused_result): Move ...
10457 * tree-cfg.c (do_warn_unused_result): ... here.
10458 (run_warn_unused_result): New function.
10459 (gate_warn_unused_result): New function.
10460 (pass_warn_unused_result): New pass.
10461 * c-common.h (c_warn_unused_result): Remove.
10462 * flags.h (flag_warn_unused_result): Declare.
10463 * c-opts.c (c_common_init_options): Enable flag_warn_unused_result.
10464 * opts.c (flag_warn_unused_result): Initialize to false.
10465 * toplev.c (compile_file): Add comment.
10466 * omp-low.c (create_omp_child_function): Do not register
10467 the function with the frontend.
10468 (diagnose_omp_structured_block_errors): Prepare to be
10469 called as optimization pass.
10470 (gate_diagnose_omp_blocks): New function.
10471 (pass_diagnose_omp_blocks): New pass.
10472 * cgraph.h (cgraph_optimize): Remove.
10473 (cgraph_analyze_function): Likewise.
10474 * cgraph.c (cgraph_add_new_function): Gimplify C++ thunks.
10475 * cgraphunit.c (cgraph_lower_function): Lower nested functions
10476 before their parents here.
10477 (cgraph_finalize_function): Not here.
10478 (cgraph_analyze_function): Gimplify functions here.
10479 (cgraph_finalize_compilation_unit): Continue after errors.
10480 Optimize the callgraph from here.
10481 (cgraph_optimize): Make static.
10482 * langhooks.c (write_global_declarations): Finalize the CU.
10483 * gimplify.c (gimplify_asm_expr): Do not emit ASMs with errors.
10484 (gimplify_function_tree): Assert we gimplify only once.
10485 Set PROP_gimple_any property.
10486 * tree-nested.c (gimplify_all_functions): New function.
10487 (lower_nested_functions): Gimplify all nested functions.
10488 * gimple.h (diagnose_omp_structured_block_errors): Remove.
10489 * passes.c (init_optimization_passes): Add pass_warn_unused_result
10490 and pass_diagnose_omp_blocks after gimplification. Do not
10491 set TODO_set_props on all_lowering_passes.
10492 (execute_one_pass): Do not handle TODO_set_props.
10493 * Makefile.in (cgraphunit.o): Add $(TREE_DUMP_H) dependency.
10494 (gimplify.o): Add tree-pass.h dependency.
10495 * tree-inline.c (copy_statement_list): Properly copy STATEMENT_LIST.
10496 (copy_tree_body_r): Properly handle TARGET_EXPR like SAVE_EXPR.
10497 (unsave_r): Likewise.
10498 * c-omp.c (c_finish_omp_atomic): Set DECL_CONTEXT on the
10499 temporary variable.
10500
10501 2009-07-17 Sandra Loosemore <sandra@codesourcery.com>
10502
10503 * doc/service.texi (Service): Restore previously removed link,
10504 which isn't broken after all.
10505
10506 2009-07-17 Richard Guenther <rguenther@suse.de>
10507
10508 PR tree-optimization/40321
10509 * tree-ssa-pre.c (add_to_exp_gen): Also add names defined by
10510 PHI nodes to the maximal set.
10511 (make_values_for_phi): Add PHI arguments to the maximal set.
10512 (execute_pre): Dump PHI_GEN and the maximal set.
10513
10514 2009-07-17 Jakub Jelinek <jakub@redhat.com>
10515
10516 PR c++/40780
10517 * gimplify.c (gimplify_conversion): Don't change non-conversions into
10518 VIEW_CONVERT_EXPR.
10519
10520 2009-07-16 Sandra Loosemore <sandra@codesourcery.com>
10521
10522 * doc/extend.texi (Nested Functions): Replace broken link with
10523 textual reference.
10524 * doc/service.texi (Service): Remove broken link.
10525
10526 2009-07-16 H.J. Lu <hongjiu.lu@intel.com>
10527
10528 PR bootstrap/40781
10529 * builtins.c (expand_builtin_memcmp): Use loc instead of
10530 EXPR_LOCATION (exp).
10531 (expand_builtin_strncmp): Likewise.
10532
10533 2009-07-17 Aldy Hernandez <aldyh@redhat.com>
10534 Manuel López-Ibáñez <manu@gcc.gnu.org>
10535
10536 PR 40435
10537 * tree-complex.c, tree-loop-distribution.c, tree.c, tree.h,
10538 builtins.c, fold-const.c, omp-low.c, cgraphunit.c, tree-ssa-ccp.c,
10539 tree-ssa-dom.c, gimple-low.c, expr.c, tree-ssa-ifcombine.c,
10540 c-decl.c, stor-layout.c, tree-if-conv.c, c-typeck.c, gimplify.c,
10541 calls.c, tree-sra.c, tree-mudflap.c, tree-ssa-copy.c,
10542 tree-ssa-forwprop.c, c-convert.c, c-omp.c, varasm.c,
10543 tree-inline.c, c-common.c, c-common.h, gimple.c,
10544 tree-switch-conversion.c, gimple.h, tree-cfg.c, c-parser.c,
10545 convert.c: Add location argument to fold_{unary,binary,ternary},
10546 fold_build[123], build_call_expr, build_size_arg,
10547 build_fold_addr_expr, build_call_array, non_lvalue, size_diffop,
10548 fold_build1_initializer, fold_build2_initializer,
10549 fold_build3_initializer, fold_build_call_array,
10550 fold_build_call_array_initializer, fold_single_bit_test,
10551 omit_one_operand, omit_two_operands, invert_truthvalue,
10552 fold_truth_not_expr, build_fold_indirect_ref, fold_indirect_ref,
10553 combine_comparisons, fold_builtin_*, fold_call_expr,
10554 build_range_check, maybe_fold_offset_to_address, round_up,
10555 round_down.
10556
10557 2009-07-16 Jason Merrill <jason@redhat.com>
10558
10559 PR libstdc++/37907
10560 * c-common.c (c_common_reswords): Add __is_standard_layout
10561 and __is_trivial.
10562 * c-common.h (enum rid): Add RID_IS_STD_LAYOUT and RID_IS_TRIVIAL.
10563 * doc/implement-cxx.texi: New.
10564 * doc/gcc.texi: Include it.
10565
10566 2009-07-16 DJ Delorie <dj@redhat.com>
10567
10568 * config/m32c/m32c.c (m32c_compare_redundant): Avoid removing
10569 compares that may be indirectly affected by previous instructions.
10570
10571 2009-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10572
10573 * builtins.c (do_mpc_arg2): New.
10574 (fold_builtin_2): Fold builtin cpow.
10575 * real.h (HAVE_mpc_pow): New.
10576
10577 2009-07-16 Bingfeng Mei <bmei@broadcom.com>
10578
10579 * modulo-sched.c (sms_schedule): stage_count <= 1 as correct
10580 comparison to skip unprofitable schedule
10581
10582 2009-07-16 Simon Baldwin <simonb@google.com>
10583
10584 * gcc.c (option_map): New flag -no-canonical-prefixes.
10585 * (display_help): Print help text for new flag.
10586 * (process_command): Move options translation and language specifics
10587 and handle new flag early. Use it to set a function pointer to a
10588 prefix builder. Replace make_relative_prefix calls with calls to
10589 the function pointed to. Ignore new flag in regular options handling.
10590 * doc/invoke.texi (Overall Options): Documented -no-canonical-prefixes.
10591
10592 2009-07-15 DJ Delorie <dj@redhat.com>
10593
10594 * config/mep/mep.md (sibcall_internal): Change register to avoid
10595 argument registers.
10596 (sibcall_value_internal): Likewise.
10597
10598 2009-07-15 Eric Botcazou <ebotcazou@adacore.com>
10599
10600 PR rtl-optimization/40710
10601 * resource.c (mark_target_live_regs): Reset DF problem to LR.
10602
10603 2009-07-15 Adam Nemet <anemet@caviumnetworks.com>
10604
10605 * config/mips/mips.md (*extenddi_truncate<mode>,
10606 *extendsi_truncate<mode>): Change type attribute to move_type
10607 with shift_shift. Split out code handling exts from here ...
10608 (*extend<GPR:mode>_truncate<SHORT:mode>_exts): ... to this new
10609 pattern.
10610 (*extendhi_truncateqi): Change type attribute to move_type with
10611 shift_shift. Split out code handling exts from here ...
10612 (*extendhi_truncateqi_exts): ... to this new pattern.
10613
10614 2009-07-15 Uros Bizjak <ubizjak@gmail.com>
10615
10616 * config/i386/sse.md (copysign<mode>3): Use "and-not" SSE instruction
10617 instead of "and" with inverted sign bit mask value. Use
10618 "nonimmediate_operand" for operand 1 and operand 2 predicate.
10619 Allocate registers only for operand 4 and operand 5.
10620
10621 2009-07-15 Jakub Jelinek <jakub@redhat.com>
10622
10623 PR middle-end/40747
10624 * fold-const.c (fold_cond_expr_with_comparison): When folding
10625 < and <= to MIN, make sure the MIN uses the same type as the
10626 comparison's operands.
10627
10628 2009-07-15 Richard Earnshaw <rearnsha@arm.com>
10629
10630 * arm.md (ior_xor): New code iterator.
10631 (split for ior/xor with shift and zero-extend): New split pattern.
10632 * arm/predicates.md (subreg_lowpart_operator): New special predicate.
10633
10634 2009-07-15 Richard Guenther <rguenther@suse.de>
10635
10636 * tree-ssa-structalias.c (make_constraint_from_heapvar): Initialize
10637 offset member.
10638
10639 2009-07-15 Richard Guenther <rguenther@suse.de>
10640
10641 PR middle-end/40753
10642 * alias.c (ao_ref_from_mem): Reject FUNCTION_DECL and LABEL_DECL bases.
10643
10644 2009-07-15 Maxim Kuvyrkov <maxim@codesourcery.com>
10645
10646 * config/m68k/linux-unwind.h (m68k_fallback_frame_state): Update to
10647 handle 2.6.30 kernel.
10648
10649 2009-07-15 DJ Delorie <dj@redhat.com>
10650
10651 * config/mep/mep.md (sibcall_internal): Change register to allow
10652 for 24-bit addresses.
10653 (sibcall_value_internal): Likewise.
10654
10655 2009-07-14 Ghassan Shobaki <ghassan.shobaki@amd.com>
10656
10657 * doc/invoke.texi: Added descriptions of the scheduling heuristics
10658 that are enabled/disabled by the flags introduced by a previous patch.
10659
10660 2009-07-14 DJ Delorie <dj@redhat.com>
10661
10662 * config/mep/mep.md (sibcall_internal): Include non-toggling
10663 non-jmp case.
10664 (sibcall_value_internal): Likewise.
10665
10666 2009-07-14 Taras Glek <tglek@mozilla.com>
10667 Rafael Espindola <espindola@google.com>
10668
10669 * doc/sourcebuild.texi: Document install-plugin target.
10670 * configure.ac: Added install-plugin target to language makefiles.
10671 * configure: Regenerate.
10672 * Makefile.in: (install-plugin): Install more headers,
10673 depend on lang.install-plugin.
10674
10675 2009-07-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
10676
10677 * tree-vrp.c (vrp_evaluate_conditional): Mark strings for
10678 translation.
10679
10680 2009-07-14 DJ Delorie <dj@redhat.com>
10681
10682 * config/mep/mep.c (mep_vliw_jmp_match): New function.
10683 * config/mep/mep-protos.h (mep_vliw_jmp_match): Prototype it.
10684 * config/mep/mep.md (sibcall_internal): Change test from
10685 mep_vliw_mode_match to mep_vliw_jmp_match.
10686 (sibcall_value_internal): Likewise.
10687
10688 2009-07-14 Uros Bizjak <ubizjak@gmail.com>
10689
10690 * config/i386/sse.md (copysign<mode>3): New expander.
10691 * config/i386/i386-protos.h (ix86_build_signbit_mask): New prototype.
10692 * config/i386/i386.c (ix86_build_signbit_mask): Make public.
10693 Use ix86_build_const_vector.
10694 (enum ix86_builtins): Add IX86_BUILTIN_CPYSGNPS and
10695 IX86_BUILTIN_CPYSGNPD.
10696 (builtin_description): Add __builtin_ia32_copysignps and
10697 __builtin_ia32_copysignpd.
10698 (ix86_builtin_vectorized_function): Handle BUILT_IN_COPYSIGN
10699 and BUILT_IN_COPYSIGNF.
10700
10701 2009-07-13 Jason Merrill <jason@redhat.com>
10702
10703 * builtins.c (can_trust_pointer_alignment): New fn.
10704 (get_pointer_alignment): Factor it out from here.
10705 * tree.h: Declare it.
10706
10707 2009-07-14 David Edelsohn <edelsohn@gnu.org>
10708
10709 * config/rs6000/predicates.md (offsettable_mem_operand): Test
10710 RTX_AUTOINC class.
10711
10712 2009-07-14 Dodji Seketeli <dodji@redhat.com>
10713
10714 PR debug/40705
10715 PR c++/403057
10716 * dwarf2.out.c (gen_type_die_with_usage): Added comment.
10717
10718 2009-07-14 Richard Guenther <rguenther@suse.de>
10719 Andrey Belevantsev <abel@ispras.ru>
10720
10721 PR middle-end/40745
10722 * cfgexpand.c (partition_stack_vars): Do not bother to update
10723 alias information when not optimizing.
10724
10725 2009-07-14 Richard Guenther <rguenther@suse.de>
10726 Andrey Belevantsev <abel@ispras.ru>
10727
10728 * tree-ssa-alias.h (refs_may_alias_p_1): Declare.
10729 (pt_solution_set): Likewise.
10730 * tree-ssa-alias.c (refs_may_alias_p_1): Export.
10731 * tree-ssa-structalias.c (pt_solution_set): New function.
10732 * final.c (rest_of_clean_state): Free SSA data structures.
10733 * print-rtl.c (print_decl_name): Remove.
10734 (print_mem_expr): Implement in terms of print_generic_expr.
10735 * alias.c (ao_ref_from_mem): New function.
10736 (rtx_refs_may_alias_p): Likewise.
10737 (true_dependence): Query alias-export info.
10738 (canon_true_dependence): Likewise.
10739 (write_dependence_p): Likewise.
10740 * tree-dfa.c (get_ref_base_and_extent): For void types leave
10741 size unknown.
10742 * emit-rtl.c (component_ref_for_mem_expr): Remove.
10743 (mem_expr_equal_p): Use operand_equal_p.
10744 (set_mem_attributes_minus_bitpos): Do not use
10745 component_ref_for_mem_expr.
10746 * cfgexpand.c (add_partitioned_vars_to_ptset): New function.
10747 (update_alias_info_with_stack_vars): Likewise.
10748 (partition_stack_vars): Call update_alias_info_with_stack_vars.
10749 * tree-ssa.c (delete_tree_ssa): Do not release SSA names
10750 explicitly nor clear stmt operands.
10751 Free the decl-to-pointer map.
10752 * tree-optimize.c (execute_free_datastructures): Do not free
10753 SSA data structures here.
10754 * tree-flow.h (struct gimple_df): Add decls_to_pointers member.
10755 * Makefile.in (emit-rtl.o): Add pointer-set.h dependency.
10756 (alias.o): Add tree-ssa-alias.h, pointer-set.h and $(TREE_FLOW_H)
10757 dependencies.
10758 (print-rtl.o): Add $(DIAGNOSTIC_H) dependency.
10759
10760 2009-07-13 DJ Delorie <dj@redhat.com>
10761
10762 * config/mep/mep.h (CC1_SPEC): Tweak parameters to trigger
10763 unrolling at the right iteration count.
10764
10765 * config/mep/mep.c (mep_expand_prologue): Fix frame pointer
10766 calculations.
10767
10768 2009-07-13 Ghassan Shobaki <ghassan.shobaki@amd.com>
10769
10770 * haifa-sched.c (rank_for_schedule): Introduced flags to
10771 enable/disable individual scheduling heuristics.
10772 * common.opt: Introduced flags to enable/disable individual
10773 heuristics in the scheduler.
10774 * doc/invoke.texi: Introduced flags to enable/disable individual
10775 heuristics in the scheduler.
10776
10777 2009-07-13 Kai Tietz <kai.tietz@onevision.com>
10778
10779 * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Remove file
10780 config/i386/mingw-tls.c.
10781 * config/i386/mingw-tls.c: Removed.
10782
10783 2009-07-13 Ira Rosen <irar@il.ibm.com>
10784
10785 * tree-vect-loop.c (get_initial_def_for_reduction): Ensure that the
10786 checks access only relevant statements.
10787 (vectorizable_reduction): Likewise.
10788
10789 2009-07-12 Kai Tietz <kai.tietz@onevision.com>
10790
10791 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Define _X86_
10792 just for 32-bit case.
10793
10794 2009-07-12 Jan Hubicka <jh@suse.cz>
10795
10796 PR tree-optimization/40585
10797 * except.c (expand_resx_expr): When there already is resume
10798 instruction, produce linked list.
10799 (build_post_landing_pads): Assert that resume is empty.
10800 (connect_post_landing_pads): Handle resume lists.
10801 (dump_eh_tree): Dump resume list.
10802
10803 2009-07-12 Ira Rosen <irar@il.ibm.com>
10804
10805 * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
10806 with additional argument.
10807 * tree-vectorizer.h (enum vect_def_type): Add
10808 vect_double_reduction_def.
10809 (vect_is_simple_reduction): Add argument.
10810 * tree-vect-loop.c (vect_determine_vectorization_factor): Fix
10811 indentation.
10812 (vect_analyze_scalar_cycles_1): Detect double reduction. Call
10813 vect_is_simple_reduction with additional argument.
10814 (vect_analyze_loop_operations): Handle exit phi nodes in case of
10815 double reduction.
10816 (reduction_code_for_scalar_code): Handle additional codes by
10817 returning ERROR_MARK for them. Fix comment and indentation.
10818 (vect_is_simple_reduction): Fix comment, add argument to specify
10819 double reduction. Detect double reduction.
10820 (get_initial_def_for_induction): Fix indentation.
10821 (get_initial_def_for_reduction): Fix comment and indentation.
10822 Handle double reduction. Create initial definitions that do not
10823 require adjustment if ADJUSTMENT_DEF is NULL. Handle additional cases.
10824 (vect_create_epilog_for_reduction): Fix comment, add argument to
10825 handle double reduction. Use PLUS_EXPR in case of MINUS_EXPR in
10826 epilogue result extraction. Create double reduction phi node and
10827 replace relevant uses.
10828 (vectorizable_reduction): Call vect_is_simple_reduction with
10829 additional argument. Fix indentation. Update epilogue code treatment
10830 according to the changes in reduction_code_for_scalar_code. Check
10831 for double reduction. Call vect_create_epilog_for_reduction with
10832 additional argument.
10833 * tree-vect-stmts.c (process_use): Handle double reduction, update
10834 documentation.
10835 (vect_mark_stmts_to_be_vectorized): Handle double reduction.
10836 (vect_get_vec_def_for_operand): Likewise.
10837
10838 2009-07-12 Danny Smith <dansmister@gmail.com>
10839
10840 * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't
10841 dllexport if !TREE_PUBLIC.
10842 (i386_pe_maybe_record_exported_symbol): Assert TREE_PUBLIC.
10843
10844 2009-07-11 Anatoly Sokolov <aesok@post.ru>
10845
10846 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Redefine.
10847 (avr_extra_arch_macro) Remove declatation.
10848 * config/avr/avr.c (avr_cpu_cpp_builtins): New function.
10849 (avr_extra_arch_macro) Declare as static.
10850 * config/avr/avr-protos.h (avr_cpu_cpp_builtins): Dclare.
10851
10852 2009-07-11 Jan Hubicka <jh@suse.cz>
10853
10854 PR middle-end/48388
10855 * except.c (can_be_reached_by_runtime): Test for NULL aka bitmap.
10856
10857 2009-07-11 Jakub Jelinek <jakub@redhat.com>
10858
10859 PR debug/40713
10860 * dwarf2out.c (dw_fde_struct): Add in_std_section and
10861 cold_in_std_section bits.
10862 (dwarf2out_begin_prologue): Initialize them.
10863 (dwarf2out_finish): Don't emit FDE range into .debug_ranges
10864 if already covered by text_section or cold_text_section range.
10865
10866 PR rtl-optimization/40667
10867 * defaults.h (MINIMUM_ALIGNMENT): Define if not defined.
10868 * doc/tm.texi (MINIMUM_ALIGNMENT): Document it.
10869 * config/i386/i386.h (MINIMUM_ALIGNMENT): Define.
10870 * config/i386/i386.c (ix86_minimum_alignment): New function.
10871 * config/i386/i386-protos.h (ix86_minimum_alignment): New prototype.
10872 * cfgexpand.c (expand_one_var): Use MINIMIM_ALIGNMENT.
10873 * emit-rtl.c (gen_reg_rtx): Likewise.
10874 * function.c (assign_parms): Likewise. If nominal_type needs
10875 bigger alignment than FUNCTION_ARG_BOUNDARY, use its alignment
10876 rather than passed_type's alignment.
10877
10878 PR target/40668
10879 * function.c (assign_parm_setup_stack): Adjust
10880 MEM_OFFSET (data->stack_parm) if promoted_mode is different
10881 from nominal_mode on big endian.
10882
10883 2009-07-11 Paolo Bonzini <bonzini@gnu.org>
10884
10885 * expmed.c (emit_store_flag_1): Fix choice of zero vs. sign extension.
10886
10887 2009-07-10 DJ Delorie <dj@redhat.com>
10888
10889 * config/mep/mep.c (mep_can_inline_p): Correct logic, and simplify.
10890
10891 2009-07-10 Mark Mitchell <mark@codesourcery.com>
10892
10893 * config/arm/thumb2.md (thumb2_cbz): Correct computation of length
10894 attribute.
10895 (thumb2_cbnz): Likewise.
10896
10897 2009-07-10 David Daney <ddaney@caviumnetworks.com>
10898
10899 PR target/39079
10900 * config.gcc (supported_defaults): Add synci.
10901 (with_synci): Add validation.
10902 (all_defaults): Add synci.
10903 * config/mips/mips.md (clear_cache): Use TARGET_SYNCI instead of
10904 ISA_HAS_SYNCI.
10905 (synci): Same.
10906 * config/mips/mips.opt (msynci): New option.
10907 * config/mips/mips.c (mips_override_options): Warn on use of
10908 -msynci for targets that do now support it.
10909 * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
10910 msynci.
10911 * gcc/doc/invoke.texi (-msynci): Document the new option.
10912 * doc/install.texi (--with-synci): Document the new option.
10913
10914 2009-07-10 Richard Guenther <rguenther@suse.de>
10915
10916 PR tree-optimization/40496
10917 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Create
10918 the PHI result with a compatible type.
10919
10920 2009-07-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
10921
10922 PR 25509
10923 PR 40614
10924 * c.opt (Wunused-result): New.
10925 * doc/invoke.texi: Document it.
10926 * c-common.c (c_warn_unused_result): Use it.
10927
10928 2009-07-09 DJ Delorie <dj@redhat.com>
10929
10930 * targhooks.c (default_target_can_inline_p): Rename from
10931 default_target_option_can_inline_p.
10932 * targhooks.h (default_target_can_inline_p): Likewise.
10933 * target-def.h (TARGET_CAN_INLINE_P): Rename from
10934 TARGET_OPTION_CAN_INLINE_P.
10935 * config/i386/i386.c (TARGET_CAN_INLINE_P): Likewise.
10936 * config/mep/mep.c (TARGET_CAN_INLINE_P): Likewise.
10937 (mep_target_can_inline_p): Rename from
10938 mep_target_option_can_inline_p.
10939
10940 PR target/40626
10941 * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Add coprocessor
10942 registers used to pass vectors.
10943
10944 * config/mep/mep.c (mep_option_can_inline_p): Remove error call.
10945
10946 2009-07-09 Tom Tromey <tromey@redhat.com>
10947
10948 * unwind-dw2-fde-darwin.c: Include dwarf2.h.
10949 * config/mmix/mmix.c: Include dwarf2.h.
10950 * config/rs6000/darwin-fallback.c: Include dwarf2.h.
10951 * config/xtensa/unwind-dw2-xtensa.c: Include dwarf2.h.
10952 * config/sh/sh.c: Include dwarf2.h.
10953 * config/i386/i386.c: Include dwarf2.h.
10954 * Makefile.in (DWARF2_H): Remove 'elf'.
10955 * except.c: Include dwarf2.h.
10956 * unwind-dw2.c: Include dwarf2.h.
10957 * dwarf2out.c: Include dwarf2.h.
10958 * unwind-dw2-fde-glibc.c: Include dwarf2.h.
10959 * unwind-dw2-fde.c: Include dwarf2.h.
10960 * dwarf2asm.c: Include dwarf2.h.
10961
10962 2009-07-09 Maxim Kuvyrkov <maxim@codesourcery.com>
10963
10964 * haifa-sched.c (insn_finishes_cycle_p): New static function.
10965 (max_issue): Use it.
10966 * sched-int.h (struct sched_info: insn_finishes_block_p): New
10967 scheduler hook.
10968 * sched-rgn.c (rgn_insn_finishes_block_p): Implement it.
10969 (region_sched_info): Update.
10970 * sched-ebb.c (ebb_sched_info): Update.
10971 * modulo-sched.c (sms_sched_info): Update.
10972 * sel-sched-ir.c (sched_sel_haifa_sched_info): Update.
10973
10974 2009-07-09 Maxim Kuvyrkov <maxim@codesourcery.com>
10975
10976 * varasm.c (build_constant_desc): Don't share RTL in pool entries.
10977
10978 2009-07-09 Basile Starynkevitch <basile@starynkevitch.net>
10979
10980 * plugin.c (try_init_one_plugin): passes RTLD_GLOBAL to dlopen.
10981
10982 2009-07-09 Jakub Jelinek <jakub@redhat.com>
10983
10984 PR middle-end/40692
10985 * fold-const.c (fold_cond_expr_with_comparison): Don't replace
10986 arg1 with arg01 if arg1 is already INTEGER_CST.
10987
10988 2009-07-08 Adam Nemet <anemet@caviumnetworks.com>
10989
10990 * simplify-rtx.c (simplify_binary_operation_1) <AND>:
10991 Transform (and (truncate)) into (truncate (and)).
10992
10993 2009-07-08 Adam Nemet <anemet@caviumnetworks.com>
10994
10995 * combine.c (make_extraction): Check TRULY_NOOP_TRUNCATION before
10996 creating LHS paradoxical subregs. Fix surrounding returns to
10997 use NULL_RTX rather than 0.
10998
10999 2009-07-08 DJ Delorie <dj@redhat.com>
11000
11001 * config/mep/mep.c: (mep_option_can_inline_p): New.
11002 (TARGET_OPTION_CAN_INLINE_P): Define.
11003
11004 2009-07-08 Mark Wielaard <mjw@redhat.com>
11005
11006 PR debug/40659
11007 * dwarf2out.c (add_data_member_location_attribute): When we have
11008 only a constant offset don't emit a new location description using
11009 DW_OP_plus_uconst, but just add the constant with add_AT_int, when
11010 dwarf_version > 2.
11011
11012 2009-07-08 Richard Henderson <rth@redhat.com>
11013
11014 PR target/38900
11015 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move to i386.c.
11016 (enum reg_class): Add CLOBBERED_REGS.
11017 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Likewise.
11018 * config/i386/i386.c (ix86_conditional_register_usage): Moved
11019 from CONDITIONAL_REGISTER_USAGE; build CLOBBERED_REGS for 64-bit.
11020 (ix86_function_ok_for_sibcall): Tidy. Disallow MS->SYSV sibcalls.
11021 (ix86_expand_call): Use sibcall_insn_operand when needed. Don't
11022 force 64-bit sibcalls into R11.
11023 * config/i386/constraints.md (U): New constraint.
11024 * config/i386/i386.md (sibcall_1, sibcall_value_1): Use it.
11025 (sibcall_1_rex64, sibcall_value_1_rex64): Likewise.
11026 (sibcall_1_rex64_v, sibcall_value_1_rex64_v): Remove.
11027
11028 2009-07-08 Shujing Zhao <pearly.zhao@oracle.com>
11029
11030 * basic-block.h (dump_regset, debug_regset): Remove duplicate
11031 prototypes.
11032 * c-objc-common.h (c_initialize_diagnostics): Ditto.
11033 * ebitmap.h (dump_ebitmap): Ditto.
11034 * optabs.h (optab_libfunc): Ditto.
11035 * tree.h (tree_expr_nonzero_warnv_p): Ditto.
11036 * tree-flow.h (vect_can_force_dr_alignment_p,
11037 get_vectype_for_scalar_type): Ditto.
11038 (vectorize_loops): Move prototype to ...
11039 * tree-vectorizer.h: ... here. Also, adjust comment.
11040 (vect_set_verbosity_level): Remove duplicate prototype.
11041 * tree-ssa-loop.c: Include tree-vectorizer.h.
11042 * Makefile.in (tree-ssa-loop.o): Depend on tree-vectorizer.h.
11043
11044 2009-07-08 Nick Clifton <nickc@redhat.com>
11045
11046 * config/i386/unix.h (ASM_COMMENT_START): Add a space after the
11047 forward slash.
11048
11049 2009-07-08 DJ Delorie <dj@redhat.com>
11050
11051 * config/mep/mep-ivc2.cpu (cpmovtocsar0_C3, cpmovtocsar1_C3,
11052 cpmovtocc_C3, cpmovtocsar0_P0S_P1, cpmovtocsar1_P0S_P1,
11053 cpmovtocc_P0S_P1): Mark volatile. Note which registers are
11054 written to.
11055 * config/mep/intrinsics.md: Regenerated.
11056 * config/mep/mep.c (mep_interrupt_saved_reg): Save IVC2 control
11057 registers when asm() or calls are detected.
11058
11059 2009-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
11060
11061 PR c++/31246
11062 * gimplify.c (gimplify_expr): Propagate no_warning flag when
11063 gimplifying.
11064 * gimple (gimple_build_call_from_tree): Likewise.
11065 * tree-cfg.c (remove_useless_stmts_warn_notreached): Check
11066 no_warning flag before warning.
11067
11068 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
11069
11070 * tree.c (set_expr_locus): Remove.
11071 * tree.h (EXPR_LOCUS,SET_EXPR_LOCUS,set_expr_locus): Remove.
11072 * c-typeck.c (c_finish_stmt_expr): Replace EXPR_LOCUS by
11073 EXPR_LOCATION.
11074 * gimplify.c (internal_get_tmp_var): Likewise.
11075 (gimplify_call_expr): Likewise.
11076 (gimplify_one_sizepos): Likewise.
11077
11078 2009-07-07 Eric Botcazou <ebotcazou@adacore.com>
11079
11080 PR debug/40666
11081 * dbxout.c (dbxout_symbol) <PARM_DECL>: Deal with parameters pointing
11082 to variables for debugging purposes.
11083
11084 2009-06-23 Mark Loeser <mark@halcy0n.com>
11085
11086 PR build/40010
11087 * Makefile.in (gcc.pod): Depend on gcc-vers.texi.
11088
11089 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
11090
11091 * pretty-print.c (pp_base_format): Remove %J.
11092 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
11093 gcc_cxxdiag_char_table): Likewise.
11094 (init_dynamic_diag_info): Likewise.
11095
11096 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
11097
11098 * pretty-print.c (pp_base_format): Remove %H.
11099 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
11100 gcc_cxxdiag_char_table): Likewise.
11101 (init_dynamic_diag_info): Likewise.
11102 * config/mep/mep.c (mep_select_section): Likewise.
11103
11104 2009-07-07 Duncan Sands <baldrick@free.fr>
11105
11106 * final.c (pass_clean_state): Give the pass a name.
11107 * passes.c (pass_rest_of_compilation): Likewise.
11108 * tree-optimize.c (pass_all_optimizations): Likewise.
11109
11110 2009-07-07 H.J. Lu <hongjiu.lu@intel.com>
11111
11112 * config/ia64/ia64.c (ia64_handle_model_attribute): Remove
11113 an extra 'decl' for error_at.
11114
11115 2009-07-07 Jakub Jelinek <jakub@redhat.com>
11116
11117 PR middle-end/40669
11118 * tree-tailcall.c (adjust_return_value_with_ops,
11119 create_tailcall_accumulator): Set DECL_GIMPLE_REG_P on the temporary
11120 if it has complex or vector type.
11121
11122 2009-07-07 Olivier Hainque <hainque@adacore.com>
11123
11124 * config/alpha/t-osf4 (SHLIB_LINK): Do not hide the dummy weak
11125 pthread symbols.
11126
11127 2009-07-07 Basile Starynkevitch <basile@starynkevitch.net>
11128
11129 * Makefile.in: added more lists of includes to PLUGIN_HEADERS.
11130
11131 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
11132
11133 * cgraphunit.c: Replace %J by an explicit location. Update all calls.
11134 * c-decl.c: Likewise.
11135 * function.c: Likewise.
11136 * varasm.c: Likewise.
11137 * tree-ssa.c: Likewise.
11138 * c-common.c: Likewise.
11139 * tree-cfg.c: Likewise.
11140 * config/spu/spu.c: Likewise.
11141 * config/ia64/ia64.c: Likewise.
11142 * config/v850/v850.c: Likewise.
11143
11144 2009-07-06 DJ Delorie <dj@redhat.com>
11145
11146 * config/mep/mep-core.cpu (fsft, ssarb): Mark as VOLATILE.
11147 * config/mep/mep-ivc2.cpu (many): Add VOLATILE to more insns that make
11148 unspecified accesses to control registers.
11149 * config/mep/intrinsics.md: Regenerate.
11150 * config/mep/intrinsics.h: Regenerate.
11151 * config/mep/mep-intrin.h: Regenerate.
11152
11153 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
11154
11155 * c-lex.c: Replace %H by an explicit location. Update all calls.
11156 * c-common.c: Likewise.
11157 * c-decl.c: Likewise.
11158 * c-typeck.c: Likewise.
11159 * fold-const.c: Likewise.
11160 * gimplify.c: Likewise.
11161 * stmt.c: Likewise.
11162 * tree-cfg.c: Likewise.
11163 * tree-ssa-loop-niter.c: Likewise.
11164 * tree-vrp.c: Likewise.
11165 * value-prof.c: Likewise.
11166
11167 2009-07-06 Diego Novillo <dnovillo@google.com>
11168
11169 * tree-dfa.c (dump_variable): Write DECL_INITIAL for VAR
11170 if it has one. Handle cases where VAR does not have an
11171 annotation or cfun is NULL.
11172
11173 2009-07-06 Diego Novillo <dnovillo@google.com>
11174
11175 * tree.c: Include debug.h.
11176 (initialize_tree_contains_struct): New.
11177 (init_ttree): Call it.
11178 (tree_node_structure_for_code): Factor out of ...
11179 (tree_node_structure): ... here.
11180 * treestruct.def (TS_PHI_NODE): Remove.
11181 (TS_GIMPLE_STATEMENT): Remove.
11182
11183 2009-07-06 Diego Novillo <dnovillo@google.com>
11184
11185 * tree-pretty-print.c (dump_generic_node): Protect against NULL op0.
11186 (debug_tree_chain): Handle cycles.
11187
11188 2009-07-06 Nick Clifton <nickc@redhat.com>
11189 DJ Delorie <dj@redhat.com>
11190
11191 * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
11192 __FMOVD_ENABLED__ is defined.
11193 * config/sh/sh.h
11194 (TARGET_FMOVD): Provide a default definition.
11195 (MASK_FMOVD): Likewise.
11196 (TARGET_CPU_CPP_BUILTINS): Define
11197 __FMOVD_ENABLED__ if TARGET_FMOVD is true.
11198 * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
11199 two fmov instructions depending upon whether TARGET_FMOVD is enabled.
11200 (split for DF load from memory into register): Also handle
11201 MEMs which consist of REG+DISP addressing.
11202 (split for DF store from register to memory): Likewise.
11203 (movsf_ie): Always use single fp_mode.
11204 * config/sh/sh.c (sh_override_options): Do not automatically
11205 enable TARGET_MOVD for the SH2A when supporting doubles - leave
11206 that to the -mfmovd command line switch.
11207 (broken_move): Do not restrict fldi test to only the SH4 and SH4A.
11208 (fldi_ok): Always allow.
11209 * config/sh/sh.opt (mfmovd): Remove this switch.
11210 * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
11211
11212 2009-07-06 J"orn Rennecke <joern.rennecke@arc.com>
11213 Kaz Kojima <kkojima@gcc.gnu.org>
11214
11215 PR rtl-optimization/30807
11216 * postreload.c (reload_combine): For every new use of REG_SUM,
11217 record the use of BASE.
11218
11219 2009-07-06 Jan Hubicka <jh@suse.cz>
11220
11221 * params.def: Revert my accidental commit at 2009-06-30.
11222
11223 2009-07-04 Ian Lance Taylor <iant@google.com>
11224
11225 PR target/40636
11226 * config/i386/msformat-c.c (mingw_format_attributes): Declare as
11227 EXPORTED_CONST.
11228 (mingw_format_attribute_overrides): Likewise.
11229
11230 2009-07-04 Jakub Jelinek <jakub@redhat.com>
11231
11232 PR debug/40596
11233 * dwarf2out.c (based_loc_descr): For crtl->stack_realign_tried
11234 don't check cfa.reg. Instead of cfa.indirect use
11235 fde && fde->drap_reg != INVALID_REGNUM test.
11236
11237 2009-07-04 Eric Botcazou <ebotcazou@adacore.com>
11238
11239 * postreload.c (reload_combine): Replace CONST_REG with INDEX_REG.
11240
11241 2009-07-03 Vladimir Makarov <vmakarov@redhat.com>
11242
11243 PR target/40587
11244 * ira.c (build_insn_chain): Use DF_LR_OUT instead of df_get_live_out.
11245
11246 2009-07-03 Richard Guenther <rguenther@suse.de>
11247
11248 PR tree-optimization/40640
11249 * tree-switch-conversion.c (build_arrays): Perform arithmetic
11250 in original type.
11251
11252 2009-07-03 Jan Hubicka <jh@suse.cz>
11253
11254 * ipa-inline.c (cgraph_decide_inlining_incrementally): When optimizing
11255 for size, reduce amount of inlining.
11256
11257 2009-07-03 Richard Guenther <rguenther@suse.de>
11258
11259 PR middle-end/34163
11260 * tree-chrec.c (chrec_convert_1): Fold (T2)(t +- x) to (T2)t +- (T2)x
11261 if t +- x is known to not overflow and the conversion widens the
11262 operation.
11263 * Makefile.in (tree-chrec.o): Add $(FLAGS_H) dependency.
11264
11265 2009-07-03 Jan Hubicka <jh@suse.cz>
11266
11267 * ipa-pure-const.c (analyze): Update loop optimizer init.
11268 * tree-ssa-loop-iv-canon.c (empty_loop_p, remove_empty_loop,
11269 try_remove_empty_loop, remove_empty_loops): Remove.
11270 * tree-ssa-loop.c (tree_ssa_empty_loop, pass_empty_loop): Remove.
11271 * tree-ssa-dce.c (find_obviously_necessary_stmts): Use finiteness info
11272 to mark regular loops as neccesary.
11273 (degenerate_phi_p): New function.
11274 (propagate_necessity, remove_dead_phis): Use it.
11275 (forward_edge_to_pdom): Likewise.
11276 (eliminate_unnecessary_stmts): Take care to remove uses of results of
11277 virtual PHI nodes that became unreachable.
11278 (perform_tree_ssa_dce): Initialize/deinitialize loop optimizer.
11279 * tree-flow.h (remove_empty_loops): Remove.
11280 * passes.c (init_optimization_passes): Remove.
11281
11282 2009-07-03 Uros Bizjak <ubizjak@gmail.com>
11283
11284 * config/i386/i386.md (fix_trunc<mode>_fisttp_i387_1): Use
11285 can_create_pseudo_p.
11286 (*fix_trunc<mode>_i387_1): Ditto.
11287 (*floathi<mode>2_1): Ditto.
11288 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): Ditto.
11289 (*fistdi2_1): Ditto.
11290 (*fist<mode>2_1): Ditto.
11291 (frndintxf2_floor): Ditto.
11292 (*fist<mode>2_floor_1): Ditto.
11293 (frndintxf2_ceil): Ditto.
11294 (*fist<mode>2_ceil_1): Ditto.
11295 (frndintxf2_trunc): Ditto.
11296 (frndintxf2_mask_pm): Ditto.
11297 (fxam<mode>2_i387_with_temp): Ditto.
11298 * config/i386/sse.md (mulv16qi3): Ditto.
11299 (*sse2_mulv4si3): Ditto.
11300 (mulv2di3): Ditto.
11301 (sse4_2_pcmpestr): Ditto.
11302 (sse4_2_pcmpistr): Ditto.
11303
11304 2009-07-03 Jan Hubicka <jh@suse.cz>
11305
11306 * tree-ssa-dce.c (bb_contains_live_stmts): New bitmap.
11307 (mark_stmt_necessary): Set it.
11308 (mark_operand_necessary): Set it.
11309 (mark_control_dependent_edges_necessary): Set it.
11310 (mark_virtual_phi_result_for_renaming): New function.
11311 (get_live_post_dom): New function.
11312 (forward_edge_to_pdom): New function.
11313 (remove_dead_stmt): Fix handling of control dependences.
11314 (tree_dce_init): Init new bitmap.
11315 (tree_dce_done): Free it.
11316
11317 2009-07-02 Richard Guenther <rguenther@suse.de>
11318
11319 PR bootstrap/40617
11320 * tree-ssa-structalias.c (new_var_info): Initialize
11321 is_restrict_var.
11322
11323 2009-07-02 Jan Hubicka <jh@suse.cz>
11324
11325 * ipa-pure-const.c (check_op): Use PTA info to see if indirect_ref is
11326 local.
11327
11328 2009-07-02 Paolo Bonzini <bonzini@gnu.org>
11329
11330 * expmed.c (emit_cstore, emit_store_flag_1): Accept target_mode
11331 instead of recomputing it. Adjust calls.
11332 (emit_store_flag): Adjust recursive calls.
11333
11334 2009-07-02 Richard Guenther <rguenther@suse.de>
11335
11336 * tree-ssa-live.c (remove_unused_locals): Do not remove
11337 heap variables.
11338 * tree-ssa-structalias.c (handle_lhs_call): Delay setting
11339 of DECL_EXTERNAL for HEAP variables.
11340 (compute_points_to_sets): Set DECL_EXTERNAL for escaped
11341 HEAP variables. Do not adjust RESTRICT vars.
11342 (find_what_var_points_to): Nobody cares if something
11343 points to READONLY.
11344
11345 2009-07-02 Ben Elliston <bje@au.ibm.com>
11346
11347 * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Move
11348 pc_low and pc_high declarations to the top of the function.
11349
11350 2009-07-01 DJ Delorie <dj@redhat.com>
11351
11352 * config/mep/mep.c (mep_handle_option): Leave IVC2 control
11353 registers as fixed.
11354 (mep_interrupt_saved_reg): Save appropriate IVC2 control registers.
11355 * config/mep/mep-ivc2.cpu: Add VOLATILE to insns that make
11356 unspecified accesses to control registers.
11357 * config/mep/intrinsics.md: Regenerate.
11358 * config/mep/intrinsics.h: Regenerate.
11359 * config/mep/mep-intrin.h: Regenerate.
11360
11361 2009-07-01 Anthony Green <green@moxielogic.com>
11362
11363 * config/moxie/moxie.c (moxie_expand_prologue): Use dec
11364 instruction when possible.
11365 (moxie_expand_prologue): Ditto. Also, save an instruction and
11366 some complexity by popping off of $r12 instead of $sp.
11367 * config/moxie/moxie.md (movsi_pop): Don't assume $sp. Take two
11368 operands.
11369
11370 2009-07-01 Richard Henderson <rth@redhat.com>
11371
11372 PR bootstrap/40347
11373 * function.c (reposition_prologue_and_epilogue_notes): If epilogue
11374 contained no insns, reposition note before last insn.
11375
11376 2009-07-01 Richard Henderson <rth@redhat.com>
11377
11378 PR debug/40431
11379 * dwarf2out.c (def_cfa_1): Revert 2009-06-11 change for
11380 DW_CFA_def_cfa_offset and DW_CFA_def_cfa.
11381
11382 2009-07-01 Michael Meissner <meissner@linux.vnet.ibm.com>
11383
11384 PR bootstrap/40558
11385 * config/rs6000/rs6000.c (print_operand): Undo change that breaks
11386 darwin9 for printing reg addresses with %y.
11387
11388 2009-07-01 Adam Nemet <anemet@caviumnetworks.com>
11389
11390 * combine.c (force_to_mode): Handle TRUNCATE. Factor out
11391 truncation from operands in binary operations.
11392
11393 2009-07-01 Adam Nemet <anemet@caviumnetworks.com>
11394
11395 Revert:
11396 2009-01-11 Adam Nemet <anemet@caviumnetworks.com>
11397 * expmed.c (store_bit_field_1): Properly truncate the paradoxical
11398 subreg of op0 to the original op0.
11399
11400 * expmed.c (store_bit_field_1): Use a temporary as the destination
11401 instead of a paradoxical subreg when we need to truncate the result.
11402
11403 2009-07-01 DJ Delorie <dj@redhat.com>
11404
11405 * config/mep/mep-ivc2.cpu (cmov, cmovc, cmovh): Add intrinsic
11406 names to VLIW variants.
11407 (ivc2rm, ivc2crn): Make data type consistent with non-VLIW variants.
11408 * config/mep/intrinsics.md: Regenerate.
11409 * config/mep/intrinsics.h: Regenerate.
11410 * config/mep/mep-intrin.h: Regenerate.
11411
11412 2009-07-01 Jakub Jelinek <jakub@redhat.com>
11413
11414 PR debug/40462
11415 * jump.c (returnjump_p): Revert last patch.
11416 * dwarf2out.c (dwarf2out_begin_epilogue): Handle SEQUENCEs.
11417
11418 2009-07-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11419
11420 PR target/40575
11421 * pa.md (casesi32p): Use jump table label to determine the offset
11422 of the jump table.
11423 (casesi64p): Likewise.
11424
11425 * pa.c (forward_branch_p): Return bool type. Use instruction
11426 addresses when available. Assert that INSN has a jump label.
11427 (pa_adjust_insn_length): Don't call forward_branch_p if INSN doesn't
11428 have a jump label.
11429
11430 2009-07-01 Richard Guenther <rguenther@suse.de>
11431
11432 PR tree-optimization/19831
11433 * tree-ssa-dce.c (propagate_necessity): Calls to functions
11434 that only act as barriers do not make any previous stores necessary.
11435 * tree-ssa-structalias.c (handle_lhs_call): Delay making
11436 HEAP variables global, do not add a constraint from nonlocal.
11437 (find_func_aliases): Handle escapes through return statements.
11438 (compute_points_to_sets): Make escaped HEAP variables global.
11439
11440 2009-07-01 Paolo Bonzini <bonzini@gnu.org>
11441
11442 PR bootstrap/40597
11443 * expmed.c (emit_store_flag): Perform a conversion if necessary,
11444 after reducing a DImode cstore to SImode.
11445
11446 2009-07-01 Paolo Bonzini <bonzini@gnu.org>
11447
11448 * expr.c (expand_expr_real_1): Reinstate fallthrough to
11449 TRUTH_ANDIF_EXPR if do_store_flag returns NULL.
11450
11451 2009-07-01 Maciej W. Rozycki <macro@linux-mips.org>
11452
11453 * config/vax/vax.h (TARGET_BSD_DIVMOD): New macro. Set to 1.
11454 * config/vax/linux.h (TARGET_BSD_DIVMOD): New macro. Redefine the
11455 to 0.
11456 * config/vax/vax.c (vax_init_libfuncs): Only redefine udiv_optab
11457 and umod_optab if TARGET_BSD_DIVMOD.
11458 * config/vax/lib1funcs.asm: New file.
11459 * config/vax/t-linux: New file.
11460 * config.gcc (vax-*-linux*): Set tmake_file to vax/t-linux.
11461
11462 2009-06-30 Jakub Jelinek <jakub@redhat.com>
11463
11464 PR c++/40566
11465 * convert.c (convert_to_integer) <case COND_EXPR>: Don't convert
11466 to type arguments that have void type.
11467
11468 PR debug/40573
11469 * dwarf2out.c (gen_formal_parameter_die): Call
11470 equate_decl_number_to_die if node is different from origin.
11471
11472 2009-06-30 Anthony Green <green@moxielogic.com>
11473
11474 Clean up moxie port for --enable-build-with-cxx.
11475 * config/moxie/moxie.c (moxie_function_value): First two
11476 parameters are const_tree, not tree.
11477 * config/moxie/moxie.h (enum reg_class): Rename CC_REG to CC_REGS.
11478 (REG_CLASS_NAMES): Ditto.
11479 (REGNO_REG_CLASS): Ditto.
11480 * config/moxie/moxie-protos.h (moxie_override_options): Declare.
11481 (moxie_function_value): Fix constyness of arguments.
11482
11483 2009-06-30 Eric Botcazou <ebotcazou@adacore.com>
11484
11485 * cgraphunit.c (cgraph_finalize_compilation_unit): Call
11486 finalize_size_functions before further processing.
11487 * stor-layout.c: Include cgraph.h, tree-inline.h and tree-dump.h.
11488 (variable_size): Call self_referential_size on size expressions
11489 that contain a PLACEHOLDER_EXPR.
11490 (size_functions): New static variable.
11491 (copy_self_referential_tree_r): New static function.
11492 (self_referential_size): Likewise.
11493 (finalize_size_functions): New global function.
11494 * tree.c: Include tree-inline.h.
11495 (push_without_duplicates): New static function.
11496 (find_placeholder_in_expr): New global function.
11497 (substitute_in_expr) <tcc_declaration>: Return the replacement object
11498 on equality.
11499 <tcc_expression>: Likewise.
11500 <tcc_vl_exp>: If the replacement object is a constant, try to inline
11501 the call in the expression.
11502 * tree.h (finalize_size_functions): Declare.
11503 (find_placeholder_in_expr): Likewise.
11504 (FIND_PLACEHOLDER_IN_EXPR): New macro.
11505 (substitute_placeholder_in_expr): Update comment.
11506 * tree-inline.c (remap_decl): Do not unshare trees if do_not_unshare
11507 is true.
11508 (copy_tree_body_r): Likewise.
11509 (copy_tree_body): New static function.
11510 (maybe_inline_call_in_expr): New global function.
11511 * tree-inline.h (struct copy_body_data): Add do_not_unshare field.
11512 (maybe_inline_call_in_expr): Declare.
11513 * Makefile.in (tree.o): Depend on TREE_INLINE_H.
11514 (stor-layout.o): Depend on CGRAPH_H, TREE_INLINE_H, TREE_DUMP_H and
11515 GIMPLE_H.
11516
11517 2009-06-30 Richard Guenther <rguenther@suse.de>
11518
11519 * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Always
11520 continue walking.
11521 (propagate_necessity): Do not mark reaching defs of stores
11522 as necessary.
11523
11524 2009-06-30 Jan Hubicka <jh@suse.cz>
11525
11526 * cfgloopanal.c (check_irred): Move into ...
11527 (mark_irreducible_loops): ... here; return true if ireducible
11528 loops was found.
11529 * ipa-pure-const.c: Include cfgloop.h and tree-scalar-evolution.h
11530 (analyze_function): Try to prove loop finiteness.
11531 * cfgloop.h (mark_irreducible_loops): Update prototype.
11532 * Makefile.in (ipa-pure-const.o): Add dependency on SCEV and CFGLOOP.
11533
11534 2009-06-30 Basile Starynkevitch <basile@starynkevitch.net>
11535
11536 * Makefile.in (PLUGIN_HEADERS): added ggc, tree-dump, pretty-print.
11537
11538 2009-06-30 Ira Rosen <irar@il.ibm.com>
11539
11540 PR tree-optimization/40542
11541 * tree-vect-stmts.c (vect_analyze_stmt): Don't vectorize volatile
11542 types.
11543
11544 2009-06-30 Martin Jambor <mjambor@suse.cz>
11545
11546 PR tree-optimization/40582
11547 * tree-sra.c (build_ref_for_offset_1): Use types_compatible_p rather
11548 than useless_type_conversion_p.
11549 (generate_subtree_copies): Increment sra_stats.subtree_copies at a
11550 proper place.
11551
11552 2009-06-30 Martin Jambor <mjambor@suse.cz>
11553
11554 PR middle-end/40554
11555 * tree-sra.c (sra_modify_expr): Add access->offset to start_offset.
11556
11557 2009-06-30 Richard Guenther <rguenther@suse.de>
11558
11559 * tree-ssa-alias.c (walk_aliased_vdefs_1): Change interface to
11560 use ao_ref references.
11561 (walk_aliased_vdefs): Likewise.
11562 * tree-ssa-alias.h (walk_aliased_vdefs): Adjust prototype.
11563 * tree-ssa-dce.c (struct ref_data): Remove.
11564 (mark_aliased_reaching_defs_necessary_1): Use the ao_ref argument.
11565 (mark_aliased_reaching_defs_necessary): Adjust.
11566 (mark_all_reaching_defs_necessary_1): Likewise.
11567
11568 2009-06-30 Paolo Bonzini <bonzini@gnu.org>
11569
11570 PR boostrap/40597
11571 * expmed.c (emit_cstore): New name of emit_store_flag_1.
11572 (emit_store_flag_1): Extract from emit_store_flag, adjust
11573 calls to (what now is) emit_cstore.
11574 (emit_store_flag): Call emit_store_flag_1 and also use it
11575 for what used to be recursive calls.
11576
11577 2009-06-30 Wei Guozhi <carrot@google.com>
11578
11579 PR/40416
11580 * tree-ssa-sink.c (statement_sink_location): Stop sinking expression
11581 if the target bb post dominates from bb.
11582 * config/i386/i386.c (memory_address_length): Check existence of base
11583 register before using it.
11584
11585 2009-06-30 Nick Clifton <nickc@redhat.com>
11586 DJ Delorie <dj@redhat.com>
11587
11588 * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
11589 __FMOVD_ENABLED__ is defined.
11590 * config/sh/sh.h
11591 (TARGET_FMOVD): Provide a default definition.
11592 (MASK_FMOVD): Likewise.
11593 (TARGET_CPU_CPP_BUILTINS): Define
11594 __FMOVD_ENABLED__ if TARGET_FMOVD is true.
11595 * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
11596 two fmov instructions depending upon whether TARGET_FMOVD is
11597 enabled.
11598 (split for DF load from memory into register): Also handle
11599 MEMs which consist of REG+DISP addressing.
11600 (split for DF store from register to memory): Likewise.
11601 * config/sh/sh.opt (mfmovd): Remove this switch.
11602 * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
11603 * config/sh/sh.c (sh_override_options): Do not automatically
11604 enable TARGET_MOVD for the SH2A when supporting doubles - leave
11605 that to the -mfmovd command line switch.
11606
11607 * config/sh/sh.c (broken_move): Do not restrict fldi test to only
11608 the SH4 and SH4A.
11609 (fldi_ok): Always allow.
11610 * config/sh/sh.md (movsf_ie): Always use single fp_mode.
11611
11612 2009-06-29 DJ Delorie <dj@redhat.com>
11613
11614 * doc/install.texi (mep-x-elf): Correct chip's full name.
11615
11616 2009-06-29 H.J. Lu <hongjiu.lu@intel.com>
11617
11618 * doc/extend.texi: Fix typo.
11619
11620 2009-06-29 Tom Tromey <tromey@redhat.com>
11621
11622 * dwarf2.h: Remove.
11623 * Makefile.in (DWARF2_H): New variable.
11624 (except.o): Use it.
11625 (dwarf2out.o): Likewise.
11626 (dwarf2asm.o): Likewise.
11627 * config/i386/t-i386: Use DWARF2_H.
11628 * except.c: Include elf/dwarf2.h.
11629 * unwind-dw2.c: Include elf/dwarf2.h.
11630 * dwarf2out.c: Include elf/dwarf2.h.
11631 (dw_loc_descr_struct) <dw_loc_opc>: Now a bitfield.
11632 <dtprel>: New field.
11633 (dwarf_stack_op_name): Don't handle INTERNAL_DW_OP_tls_addr.
11634 (size_of_loc_descr): Likewise.
11635 (output_loc_operands_raw): Likewise.
11636 (output_loc_operands): Handle new dtprel field.
11637 (loc_checksum): Update.
11638 (loc_descriptor_from_tree_1) <VAR_DDECL>: Set dtprel field.
11639 * unwind-dw2-fde-glibc.c: Include elf/dwarf2.h.
11640 * unwind-dw2-fde.c: Include elf/dwarf2.h.
11641 * dwarf2asm.c: Include elf/dwarf2.h.
11642 * unwind-dw2-fde-darwin.c: Include elf/dwarf2.h.
11643 * config/mmix/mmix.c: Include elf/dwarf2.h.
11644 * config/rs6000/darwin-fallback.c: Include elf/dwarf2.h.
11645 * config/xtensa/unwind-dw2-xtensa.c: Include elf/dwarf2.h.
11646 * config/sh/sh.c: Include elf/dwarf2.h.
11647 * config/i386/i386.c: Include elf/dwarf2.h.
11648
11649 2009-06-29 DJ Delorie <dj@redhat.com>
11650
11651 * config/mep/mep.h (CPP_SPEC): Remove __cop macro.
11652
11653 * doc/extend.texi: Add MeP attributes and pragmas.
11654 * doc/invoke.text: Add MeP Options.
11655 * doc/contrib.texi: Add MeP contribution.
11656 * doc/md.texi: Add MeP constraints.
11657 * doc/install.texi: Add MeP target.
11658
11659 2009-06-30 Anatoly Sokolov <aesok@post.ru>
11660
11661 * target.h (struct gcc_target): Add frame_pointer_required field.
11662 * target-def.h (TARGET_FRAME_POINTER_REQUIRED): New.
11663 (TARGET_INITIALIZER): Use TARGET_FRAME_POINTER_REQUIRED.
11664 * ira.c (setup_eliminable_regset): Use frame_pointer_required target
11665 hook.
11666 * reload1.c (update_eliminables): (Ditto.).
11667 * gcc/system.h (FRAME_POINTER_REQUIRED): Poison.
11668 * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
11669 (INITIAL_FRAME_POINTER_OFFSET): (Ditto.).
11670
11671 * config/arc/arc.h (FRAME_POINTER_REQUIRED): Remove macro.
11672
11673 * config/arm/arm.h (FRAME_POINTER_REQUIRED): Remove macro.
11674 * config/arm/arm.c (TARGET_FRAME_POINTER_REQUIRED): Define.
11675 (arm_frame_pointer_required): New function.
11676
11677 * config/avr/avr.h (FRAME_POINTER_REQUIRED): Remove macro.
11678 * config/avr/avr.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
11679 (avr_frame_pointer_required_p): Declare as static.
11680 * config/avr/avr-protos.h (avr_frame_pointer_required_p): Remove.
11681
11682 * config/bfin/bfin.h (FRAME_POINTER_REQUIRED): Remove macro.
11683 * config/bfin/bfin.c (TARGET_FRAME_POINTER_REQUIRED): Define.
11684 (bfin_frame_pointer_required): Make as static, change return type
11685 to bool.
11686 * config/bfin/bfin-protos.h (bfin_frame_pointer_required): Remove.
11687
11688 * config/cris/cris.h (FRAME_POINTER_REQUIRED): Remove macro.
11689 * config/cris/cris.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
11690 (cris_frame_pointer_required): New function.
11691
11692 * config/crx/crx.h (FRAME_POINTER_REQUIRED): Remove macro.
11693
11694 * config/fr30/fr30.h (FRAME_POINTER_REQUIRED): Remove macro.
11695 * config/fr30/fr30.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
11696 (fr30_frame_pointer_required): New function.
11697
11698 * config/frv/frv.h (FRAME_POINTER_REQUIRED): Remove macro.
11699 * config/frv/frv.c (TARGET_FRAME_POINTER_REQUIRED): Define.
11700 (frv_frame_pointer_required): Make as static, change return type
11701 to bool.
11702 * config/bfin/bfin-protos.h (frv_frame_pointer_required): Remove.
11703
11704 * config/i386/i386.h (FRAME_POINTER_REQUIRED): Remove macro.
11705 * config/i386/i386.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
11706 (ix86_frame_pointer_required): Make as static, change return type to
11707 bool.
11708 * config/i386/i386-protos.h (ix86_frame_pointer_required): Remove.
11709
11710 * config/m32c/m32c.h (FRAME_POINTER_REQUIRED): Remove macro.
11711 * config/m32c/m32c.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
11712
11713 * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Remove macro.
11714
11715 * config/mcore/mcore.h (CAN_ELIMINATE): Remove macro.
11716
11717 * config/mep/mep.h (FRAME_POINTER_REQUIRED): Remove macro.
11718
11719 * config/mips/mips.h (FRAME_POINTER_REQUIRED): Remove macro.
11720 * config/mips/mips.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
11721 (mips_frame_pointer_required): Make as static.
11722 * config/mips/mips-protos.h (mips_frame_pointer_required): Remove.
11723
11724 * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Remove macro.
11725 * config/mmix/mmix.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
11726 (mmix_frame_pointer_required): Mew function.
11727
11728 * config/moxie/moxie.h (FRAME_POINTER_REQUIRED): Remove macro.
11729 * config/moxie/moxie.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
11730
11731 * config/pa/pa.h (FRAME_POINTER_REQUIRED): Remove macro.
11732
11733 * config/score/score.h (FRAME_POINTER_REQUIRED): Remove macro.
11734
11735 * config/sh/sh.h (CAN_ELIMINATE): Remove macro.
11736
11737 * config/sparc/sparc.h (FRAME_POINTER_REQUIRED): Remove macro.
11738 (CAN_ELIMINATE): Redefine.
11739 * config/sparc/sparc.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
11740 (sparc_frame_pointer_required): New function.
11741 (sparc_can_eliminate): New function.
11742 * config/sparc/sparc-protos.h (sparc_can_eliminate): Declare.
11743
11744 * config/vax/vax.h (FRAME_POINTER_REQUIRED): Remove macro.
11745 * config/vax/vax.c (TARGET_FRAME_POINTER_REQUIRED): Define.
11746
11747 * config/xtensa/xtensa.h (FRAME_POINTER_REQUIRED): Remove macro.
11748 * config/xtensa/xtensa.c (TARGET_FRAME_POINTER_REQUIRED): Define.
11749 (xtensa_frame_pointer_required): Make as static, change return type
11750 to bool.
11751 * config/xtensa/xtensa-protos.h (xtensa_frame_pointer_required):
11752 Remove.
11753
11754 2009-06-29 Olatunji Ruwase <tjruwase@google.com>
11755
11756 * doc/plugins.texi: Document PLUGIN_START_UNIT.
11757 * toplev.c (compile_file): Call PLUGIN_START_UNIT.
11758 * gcc-plugin.h (PLUGIN_START_UNIT): Added new event.
11759 * plugin.c (plugin_event_name): Added PLUGIN_START_UNIT.
11760 (register_callback): Handle PLUGIN_START_UNIT.
11761 (invoke_plugin_callbacks): Handle PLUGIN_START_UNIT.
11762
11763 2009-06-29 Eric Botcazou <ebotcazou@adacore.com>
11764
11765 * tree.c (process_call_operands): Propagate TREE_READONLY from the
11766 operands.
11767 (PROCESS_ARG): Do not clear TREE_READONLY if CONSTANT_CLASS_P.
11768 (build3_stat): Propagate TREE_READONLY for COND_EXPR.
11769
11770 2009-06-29 Daniel Jacobowitz <dan@codesourcery.com>
11771
11772 * config/arm/arm.h (REGISTER_MOVE_COST): Increase VFP register
11773 move cost.
11774
11775 2009-06-29 Uros Bizjak <ubizjak@gmail.com>
11776
11777 * doc/extend.texi (Additional Floating Types): __float128 is also
11778 supported on i386 targets.
11779
11780 2009-06-29 Richard Guenther <rguenther@suse.de>
11781
11782 PR middle-end/14187
11783 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
11784 flag.
11785 (pt_solutions_same_restrict_base): Declare.
11786 * tree-ssa-structalias.c (struct variable_info): Add is_restrict_var
11787 flag.
11788 (new_var_info): Initialize is_global_var properly for SSA_NAMEs.
11789 (make_constraint_from, make_copy_constraint): Move earlier.
11790 (make_constraint_from_heapvar): New function.
11791 (make_constraint_from_restrict): Likewise.
11792 (handle_lhs_call): Use it.
11793 (find_func_aliases): Use it to track conversions to restrict
11794 qualified pointers.
11795 (struct fieldoff): Add only_restrict_pointers flag.
11796 (push_fields_onto_fieldstack): Initialize it.
11797 (create_variable_info_for): Track global restrict qualified pointers.
11798 (intra_create_variable_infos): Use make_constraint_from_heapvar.
11799 Track restrict qualified pointer arguments.
11800 (set_uids_in_ptset): Use varinfo is_global_var flag.
11801 (find_what_var_points_to): Set the vars_contains_restrict flag.
11802 Always create the points-to solution for sets including restrict tags.
11803 (pt_solutions_same_restrict_base): New function.
11804 * tree-ssa-alias.c (ptr_derefs_may_alias_p): For two restrict
11805 qualified pointers use pt_solutions_same_restrict_base as
11806 additional source for disambiguation.
11807
11808 2009-06-29 Richard Guenther <rguenther@suse.de>
11809
11810 PR middle-end/38212
11811 * alias.c (find_base_decl): Remove.
11812 (get_deref_alias_set_1): Remove restrict handling.
11813 * c-common.c (c_apply_type_quals_to_decl): Do not set
11814 DECL_POINTER_ALIAS_SET.
11815 * gimplify.c (find_single_pointer_decl_1): Remove.
11816 (find_single_pointer_decl): Likewise.
11817 (internal_get_tmp_var): Remove restrict handling.
11818 (gimple_regimplify_operands): Likewise.
11819 * omp-low.c (expand_omp_atomic_pipeline): Do not set
11820 DECL_POINTER_ALIAS_SET. Use ref-all pointers.
11821 * print-tree.c (print_node): Do not print DECL_POINTER_ALIAS_SET.
11822 * tree.c (restrict_base_for_decl): Remove.
11823 (init_ttree): Do not allocate it.
11824 (make_node_stat): Do not set DECL_POINTER_ALIAS_SET. Set
11825 LABEL_DECL_UID for label decls.
11826 (copy_node_stat): Do not copy restrict information.
11827 (decl_restrict_base_lookup): Remove.
11828 (decl_restrict_base_insert): Likewise.
11829 (print_restrict_base_statistics): Likewise.
11830 (dump_tree_statistics): Do not call print_restrict_base_statistics.
11831 * tree.h (DECL_POINTER_ALIAS_SET): Remove.
11832 (DECL_POINTER_ALIAS_SET_KNOWN_P): Likewise.
11833 (struct tree_decl_common): Rename pointer_alias_set to label_decl_uid.
11834 (LABEL_DECL_UID): Adjust.
11835 (DECL_BASED_ON_RESTRICT_P): Remove.
11836 (DECL_GET_RESTRICT_BASE): Likewise.
11837 (SET_DECL_RESTRICT_BASE): Likewise.
11838 (struct tree_decl_with_vis): Remove based_on_restrict_p flag.
11839
11840 * config/i386/i386.c (ix86_gimplify_va_arg): Use ref-all pointers
11841 instead of DECL_POINTER_ALIAS_SET.
11842 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
11843 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
11844 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
11845
11846 2009-06-29 Richard Guenther <rguenther@suse.de>
11847
11848 PR tree-optimization/40579
11849 * tree-vrp.c (vrp_evaluate_conditional): Bail out early if
11850 the IL to simplify has constants that overflowed.
11851
11852 2009-06-28 Uros Bizjak <ubizjak@gmail.com>
11853
11854 PR tree-optimization/40550
11855 * tree-vect-generic.c (expand_vector_operations_1): Compute in
11856 vector_compute_type only when the size of vector_compute_type is
11857 less than the size of type.
11858
11859 2009-06-28 Eric Botcazou <ebotcazou@adacore.com>
11860
11861 * fold-const.c (contains_label_1): Fix comments.
11862 (contains_label_p): Do not walk trees multiple time.
11863
11864 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
11865
11866 * config/i386/i386.h (enum ix86_fpcmp_strategy): New.
11867 * config/i386/i386.md (cbranchxf4, cstorexf4, cbranch<MODEF>4,
11868 cstore<MODEF>4, mov<X87MODEF>cc): Change predicate to
11869 ix86_fp_comparison_operator.
11870 (*fp_jcc_1_mixed, *fp_jcc_1_sse, *fp_jcc_1_387, *fp_jcc_2_mixed,
11871 *fp_jcc_2_sse, *fp_jcc_2_387): Delete
11872 (*fp_jcc_3_387, *fp_jcc_4_387, *fp_jcc_5_387, *fp_jcc_6_387,
11873 *fp_jcc_7_387, *fp_jcc_8<MODEF>_387): Eliminate call to
11874 !ix86_use_fcomi_compare, change ix86_fp_jump_nontrivial_p call
11875 to !TARGET_CMOVE, change predicate to ix86_fp_comparison_operator.
11876 (related splits): Change predicate to ix86_fp_comparison_operator.
11877 * config/i386/predicates.md: Use ix86_trivial_fp_comparison_operator
11878 instead of ix86_fp_comparison_codes.
11879 (ix86_trivial_fp_comparison_operator,
11880 ix86_fp_comparison_operator): New.
11881 * config/i386/i386-protos.h (ix86_fp_comparison_strategy): New.
11882 (ix86_expand_compare): Eliminate last two parameters.
11883 (ix86_fp_jump_nontrivial_p): Kill.
11884 * config/i386/i386.c (put_condition_code): Eliminate call to
11885 ix86_fp_comparison_codes and subsequent assertion.
11886 (ix86_fp_comparison_codes): Eliminate.
11887 (ix86_fp_swap_condition): New.
11888 (ix86_fp_comparison_arithmetics_cost, ix86_fp_comparison_fcomi_cost,
11889 ix86_fp_comparison_sahf_cost, ix86_use_fcomi_compare): Consolidate
11890 into ix86_fp_comparison_cost and ix86_fp_comparison_strategy.
11891 (ix86_prepare_fp_compare_args): Use ix86_fp_comparison_strategy
11892 and ix86_fp_swap_condition.
11893 (ix86_expand_fp_compare): Eliminate code for second jump/bypass jump.
11894 Use ix86_fp_comparison_strategy.
11895 (ix86_expand_compare): Likewise. Eliminate last two arguments.
11896 (ix86_fp_jump_nontrivial_p): Eliminate.
11897 (ix86_expand_branch): Treat SFmode/DFmode/XFmode as simple. Adjust
11898 call to ix86_expand_compare.
11899 (ix86_split_fp_branch, ix86_expand_setcc,
11900 ix86_expand_carry_flag_compare, ix86_expand_int_movcc,
11901 ix86_expand_fp_movcc): Eliminate code for second jump/bypass jump.
11902
11903 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
11904
11905 * config/arm/arm.c (arm_final_prescan_ins): Eliminate code
11906 related to jump_clobbers.
11907 * config/arm/arm.md (conds): Remove jump_clob case.
11908 (addsi3_cbranch, addsi3_cbranch_scratch, subsi3_cbranch, two
11909 splits): Change comparison_operator to arm_comparison_operator.
11910 (*arm_buneq, *arm_bltgt, *arm_buneq_reversed, *arm_bltgt_reversed):
11911 Eliminate.
11912
11913 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
11914
11915 * dojump.c (do_compare_rtx_and_jump): Try swapping the
11916 condition for floating point modes.
11917 * expmed.c (emit_store_flag_1): Move here a bigger part
11918 of emit_store_flag.
11919 (emit_store_flag): Try swapping the condition for floating point
11920 modes.
11921 * optabs.c (emit_cmp_and_jump_insns): Cope with constant op0 better.
11922
11923 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
11924
11925 * expr.c (expand_expr_real_1): Just use do_store_flag.
11926 (do_store_flag): Drop support for TRUTH_NOT_EXPR. Use
11927 emit_store_flag_force.
11928 * expmed.c (emit_store_flag_force): Copy here trick
11929 previously in expand_expr_real_1. Try reversing the comparison.
11930 (emit_store_flag_1): Work if target is NULL.
11931 (emit_store_flag): Work if target is NULL, using the result mode
11932 from the comparison. Use split_comparison, restructure final part
11933 to simplify conditionals.
11934
11935 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
11936
11937 * builtins.c (expand_errno_check): Use do_compare_rtx_and_jump.
11938 * dojump.c (do_jump): Change handling of floating-point
11939 ops to use just do_compare_and_jump.
11940 (split_comparison): New.
11941 (do_compare_rtx_and_jump): Add here logic coming previously
11942 in do_jump, using split_comparison.
11943
11944 2009-06-27 H.J. Lu <hongjiu.lu@intel.com>
11945
11946 PR target/40489
11947 * config/ia64/ia64.c (ia64_reorg): Check NULL insn.
11948
11949 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
11950
11951 * tree-ssa-alias.c: Fix unintentional commit.
11952
11953 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
11954
11955 * passes.c (execute_one_pass): Fix unintentional commit.
11956
11957 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
11958
11959 * df-problems.c (df_set_seen, df_unset_seen): Delete.
11960 (df_rd_local_compute, df_md_local_compute): Inline them.
11961
11962 (df_md_scratch): New.
11963 (df_md_alloc, df_md_free): Allocate/free it.
11964 (df_md_local_compute): Only include live registers in init.
11965 (df_md_transfer_function): Prune the in-set computed by
11966 the confluence function, and the gen-set too.
11967
11968 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
11969
11970 PR rtl-optimization/26854
11971 * timevar.def: Remove TV_DF_RU, add TV_DF_MD.
11972 * df-problems.c (df_rd_add_problem): Fix comment.
11973 (df_md_set_bb_info, df_md_free_bb_info, df_md_alloc,
11974 df_md_simulate_artificial_defs_at_top,
11975 df_md_simulate_one_insn, df_md_bb_local_compute_process_def,
11976 df_md_bb_local_compute, df_md_local_compute, df_md_reset,
11977 df_md_transfer_function, df_md_init, df_md_confluence_0,
11978 df_md_confluence_n, df_md_free, df_md_top_dump, df_md_bottom_dump,
11979 problem_MD, df_md_add_problem): New.
11980 * df.h (DF_MD, DF_MD_BB_INFO, struct df_md_bb_info, df_md,
11981 df_md_get_bb_info): New.
11982 (DF_LAST_PROBLEM_PLUS1): Adjust.
11983
11984 * Makefile.in (fwprop.o): Include domwalk.h.
11985 * fwprop.c: Include domwalk.h.
11986 (reg_defs, reg_defs_stack): New.
11987 (bitmap_only_bit_between): Remove.
11988 (process_defs): New.
11989 (process_uses): Use reg_defs and local_md instead of
11990 bitmap_only_bit_between and local_rd.
11991 (single_def_use_enter_block): New, from build_single_def_use_links.
11992 (single_def_use_leave_block): New.
11993 (build_single_def_use_links): Remove code moved to
11994 single_def_use_enter_block, invoke domwalk.
11995 (use_killed_between): Adjust comment.
11996
11997 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
11998
11999 * bitmap.h (bitmap_ior_and_into): New.
12000 * bitmap.c (bitmap_ior_and_into): New.
12001
12002 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
12003
12004 * domwalk.h (struct dom_walk_data): Remove all callbacks except
12005 before_dom_children_before_stmts and after_dom_children_after_stmts.
12006 Rename the two remaining callbacks to just before_dom_children and
12007 after_dom_children. Remove other GIMPLE statement walking bits.
12008 * domwalk.c (walk_dominator_tree): Remove now unsupported features.
12009 * graphite.c: Do not include domwalk.h.
12010 * tree-into-ssa.c (interesting_blocks): New global.
12011 (struct mark_def_sites_global_data): Remove it and names_to_rename.
12012 (mark_def_sites, rewrite_stmt, rewrite_add_phi_arguments,
12013 rewrite_update_stmt, rewrite_update_phi_arguments): Simplify
12014 now that they're not domwalk callbacks.
12015 (rewrite_initialize_block): Rename to...
12016 (rewrite_enter_block): ... this, place after called functions. Test
12017 interesting_blocks, call rewrite_stmt and rewrite_add_phi_arguments.
12018 (rewrite_finalize_block): Rename to...
12019 (rewrite_leave_block): ... this, place after called functions.
12020 (rewrite_update_init_block): Rename to...
12021 (rewrite_update_enter_block): ... this, place after called functions.
12022 Test interesting_blocks, call rewrite_update_stmt and
12023 rewrite_update_phi_arguments.
12024 (rewrite_update_fini_block): Rename to...
12025 (rewrite_leave_block): ... this, place after called functions.
12026 (rewrite_blocks): Remove last argument, simplify initialization of
12027 walk_data.
12028 (mark_def_sites_initialize_block): Rename to...
12029 (mark_def_sites_block): ... this, call mark_def_sites.
12030 (mark_def_sites_blocks): Remove argument, simplify initialization of
12031 walk_data.
12032 (rewrite_into_ssa): Adjust for interesting_blocks_being a global.
12033 (update_ssa): Likewise.
12034 * tree-ssa-dom.c (optimize_stmt): Simplify now that it's not a domwalk
12035 callback.
12036 (tree_ssa_dominator_optimize): Simplify initialization of walk_data.
12037 (dom_opt_initialize_block): Rename to...
12038 (dom_opt_enter_block): ... this, place after called functions. Walk
12039 statements here, inline propagate_to_outgoing_edges.
12040 (dom_opt_finalize_block): Rename to...
12041 (dom_opt_leave_block): ... this, place after called functions.
12042 * tree-ssa-dse.c (dse_optimize_stmt): Simplify now that it's not a
12043 domwalk callback.
12044 (dse_enter_block, dse_record_phi): New.
12045 (dse_record_phis): Delete.
12046 (dse_finalize_block): Rename to...
12047 (dse_leave_block): ... this.
12048 (tree_ssa_dse): Simplify initialization of walk_data.
12049 * tree-ssa-loop-im.c (determine_invariantness, move_computations):
12050 Adjust initialization of walk_data.
12051 * tree-ssa-loop-unswitch.c: Do not include domwalk.h.
12052 * tree-ssa-loop-phiopt.c (get_non_trapping):
12053 Adjust initialization of walk_data.
12054 * tree-ssa-loop-threadedge.c: Do not include domwalk.h.
12055 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Simplify now that
12056 it's not a domwalk callback.
12057 (uncprop_initialize_block): Rename to...
12058 (dse_enter_block): ... this, call uncprop_into_successor_phis.
12059 (dse_finalize_block): Rename to...
12060 (dse_leave_block): ... this.
12061 (tree_ssa_uncprop): Simplify initialization of walk_data.
12062 * Makefile.in: Adjust dependencies.
12063
12064 2009-06-27 Richard Earnshaw <rearnsha@arm.com>
12065
12066 * arm.md (casesi): Fix test for Thumb1.
12067 (thumb1_casesi_internal_pic): Likewise.
12068 (thumb1_casesi_dispatch): Likewise.
12069
12070 2009-06-26 Daniel Gutson <dgutson@codesourcery.com>
12071
12072 * config/arm/arm-cores.def: Added core cortex-m0.
12073 * config/arm/arm-tune.md: Regenerated.
12074 * doc/invoke.texi: Added entry for cpu ARM Cortex-M0.
12075
12076 2009-06-26 DJ Delorie <dj@redhat.com>
12077
12078 * config/mep/mep.opt (mfar): Remove -mfar as it doesn't do anything.
12079
12080 * config/mep/mep.c (mep_bundle_insns): Account for the fact that
12081 the scheduler doesn't tag jump insns.
12082
12083 2009-06-26 H.J. Lu <hongjiu.lu@intel.com>
12084
12085 * c-decl.c (merge_decls): Re-indent.
12086
12087 2009-06-26 Janis Johnson <janis187@us.ibm.com>
12088
12089 PR c/39902
12090 * tree.c (real_zerop, real_onep, real_twop, real_minus_onep):
12091 Special-case decimal float constants.
12092
12093 2009-06-26 Richard Henderson <rth@redhat.com>
12094
12095 * function.h (struct function): Add cannot_be_copied_reason,
12096 and cannot_be_copied_set.
12097 * tree-inline.c (has_label_address_in_static_1): Rename from
12098 inline_forbidden_p_2; don't set inline_forbidden_reason here.
12099 (cannot_copy_type_1): Rename from inline_forbidden_p_op; likewise
12100 don't set inline_forbidden_reason.
12101 (copy_forbidden): New function, split out of inline_forbidden_p.
12102 (inline_forbidden_p_stmt): Don't check for nonlocal labels here.
12103 (inline_forbidden_p): Use copy_forbidden.
12104 (tree_versionable_function_p): Likewise.
12105 (inlinable_function_p): Merge into tree_inlinable_function_p.
12106 (tree_function_versioning): Remap cfun->nonlocal_goto_save_area.
12107 * ipa-cp.c (ipcp_versionable_function_p): New function.
12108 (ipcp_cloning_candidate_p): Use it.
12109 (ipcp_node_modifiable_p): Likewise.
12110
12111 2009-06-26 Olatunji Ruwase <tjruwase@google.com>
12112
12113 * builtins.c (expand_builtin_alloca): Handle builtin alloca
12114 that is marked not to be inlined. Remove flag_mudflap use.
12115 * tree-mudflap.c: Rename mf_xform_derefs to mf_xfrom_statements.
12116 (mf_xform_statements): Mark builtin alloca calls as un-inlineable.
12117
12118 2009-06-26 Steve Ellcey <sje@cup.hp.com>
12119
12120 PR bootstrap/40338
12121 * config/pa/t-pa-hpux10 (TARGET_LIBGCC2_CFLAGS): Add -frandom-seed.
12122 * config/pa/t-pa-hpux11 (TARGET_LIBGCC2_CFLAGS): Ditto.
12123
12124 2009-06-26 Kai Tietz <kai.tietz@onevision.com>
12125
12126 * config/i386/mingw-tls.c (__mingwthr_key_dtor): Remove for none
12127 shared libgcc.
12128 (__mingwthr_remove_key_dtor): Likewise.
12129
12130 2009-06-26 Richard Guenther <rguenther@suse.de>
12131
12132 * tree-ssa-structalias.c (do_ds_constraint): Simplify escape handling.
12133
12134 2009-06-26 Steven Bosscher <steven@gcc.gnu.org>
12135
12136 PR middle-end/40525
12137 * ifcvt.c (dead_or_predicable): If predicating MERGE_BB fails,
12138 try the non-cond_exec path also.
12139
12140 2009-06-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12141
12142 PR target/40468
12143 * pa.c (branch_to_delay_slot_p, branch_needs_nop_p): New functions.
12144 (output_cbranch): Use new functions.
12145 (output_lbranch, output_bb, output_bvb, output_dbra, output_movb):
12146 Likewise.
12147
12148 2009-06-25 Michael Meissner <meissner@linux.vnet.ibm.com>
12149 Pat Haugen <pthaugen@us.ibm.com>
12150 Revital Eres <ERES@il.ibm.com>
12151
12152 * config/rs6000/rs6000.c (print_operand): Correct lossage message
12153 for %c error. Add %x support to print VSX registers as a unified
12154 register set, instead of separate float and altivec registers.
12155 Switch to use VECTOR_MEM_ALTIVEC_P instead of TARGET_ALTIVEC for
12156 %y case, and add support for VSX pre-modify addresses.
12157 (output_toc): Add assert for CONST containing an integer constant
12158 in the PLUS case.
12159 (rs6000_adjust_cost): Add POWER7 support.
12160 (insn_must_be_first_in_group): Ditto.
12161 (insn_must_be_last_in_group): Ditto.
12162 (rs6000_emit_popcount): Ditto.
12163 (rs6000_vector_mode_supported_p): Ditto.
12164
12165 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_class):
12166 Change some of the functions called by macros to being called
12167 through a pointer, so debug functions can be inserted if
12168 -mdebug=addr or -mdebug=cost.
12169 (rs6000_preferred_reload_class_ptr): Ditto.
12170 (rs6000_secondary_reload_class_ptr): Ditto.
12171 (rs6000_secondary_memory_needed_ptr): Ditto.
12172 (rs6000_cannot_change_mode_class_ptr): Ditto.
12173 (rs6000_secondary_reload_inner): Ditto.
12174 (rs6000_legitimize_reload_address): Ditto.
12175 (rs6000_legitimize_reload_address_ptr): Ditto.
12176 (rs6000_mode_dependent_address): Ditto.
12177 (rs6000_mode_dependent_address_ptr): Ditto.
12178
12179 * config/rs6000/rs6000.c (reg_offset_addressing_ok_p): New
12180 function to return true if the mode allows reg + integer
12181 addresses.
12182 (virtual_stack_registers_memory_p): New function to return true if
12183 the address refers to a virtual stack register.
12184 (rs6000_legitimate_offset_address_p): Move code to say whether a
12185 mode supports reg+int addressing to reg_offset_addressing_ok_p and
12186 call it.
12187 (rs6000_legitimate_address_p): Add checks for modes that only can
12188 do reg+reg addressing. Start adding VSX support.
12189 (rs6000_legitimize_reload_address): Ditto.
12190 (rs6000_legitimize_address): Ditto.
12191 (rs6000_debug_legitimate_address_p): New debug functions for
12192 -mdebug=addr and -mdebug=cost.
12193 (rs6000_debug_rtx_costs): Ditto.
12194 (rs6000_debug_address_costs): Ditto.
12195 (rs6000_debug_adjust_cost): Ditto.
12196 (rs6000_debug_legitimize_address): Ditto.
12197 (rs6000_legitimize_reload_address_ptr): Point to call normal
12198 function or debug function. Make functions called via pointer
12199 static.
12200 (rs6000_mode_dependent_address_ptr): Ditto.
12201 (rs6000_secondary_reload_class_ptr): Ditto.
12202 (rs6000_hard_regno_mode_ok): Add preliminary VSX support.
12203 (rs6000_emit_move): Add -mdebug=addr support. Change an abort
12204 into a friendlier error.
12205 (rs6000_init_builtins): Add initial VSX support.
12206 (rs6000_adjust_cost): Fix some spacing issues.
12207
12208 * config/rs6000/rs6000.h (enum reg_class): Add VSX_REGS.
12209 (REG_CLASS_NAMES): Ditto.
12210 (REG_CLASS_CONTENTS): Ditto.
12211 (PREFERRED_RELOAD_CLASS): Move from a macro to calling through a
12212 pointer, to add -mdebug=addr support.
12213 (CANNOT_CHANGE_MODE_CLASS): Ditto.
12214 (SECONDARY_RELOAD_CLASS): Call through a pointer to add
12215 -mdebug=addr support.
12216 (LEGITIMIZE_RELOAD_ADDRESS): Ditto.
12217 (GO_IF_MODE_DEPENDENT_ADDRESS): Ditto.
12218 (enum rs6000_builtins): Add RS6000_BUILTIN_BSWAP_HI.
12219
12220 * config/rs6000/rs6000.md (bswaphi*): Add support for swapping
12221 16-bit values.
12222 (bswapsi*): Set attribute types for load/store. Add combiner
12223 patterns to eliminate zero extend on 64-bit.
12224 (bswapdi*): Add support for swapping 64-bit values. Use ldbrx and
12225 stdbrx if the hardware supports those instructions.
12226
12227 2009-06-25 Ian Lance Taylor <iant@google.com>
12228
12229 * doc/invoke.texi (Option Summary): Mention -static-libstdc++.
12230 (Link Options): Document -static-libstdc++.
12231
12232 2009-06-25 Andrew Pinski <andrew_pinski@playstation.sony.com>
12233
12234 PR target/38731
12235 * config/rs6000/rs6000.c (LOCAL_ALIGNMENT): Redefine to just use
12236 DATA_ALIGNMENT instead.
12237
12238 2009-06-25 Richard Guenther <rguenther@suse.de>
12239
12240 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Disambiguate
12241 indirect references against the callused/escaped solutions.
12242 (call_may_clobber_ref_p_1): Likewise.
12243
12244 2009-06-25 Martin Jambor <mjambor@suse.cz>
12245
12246 PR tree-optimization/40493
12247 * tree-sra.c (sra_modify_expr): Correct BIT_FIELD_REF argument numbers.
12248 (enum unscalarized_data_handling): New type.
12249 (handle_unscalarized_data_in_subtree): Return what has been done.
12250 (load_assign_lhs_subreplacements): Handle left flushes differently.
12251 (sra_modify_assign): Use unscalarized_data_handling, simplified
12252 condition determining whether to remove the statement.
12253
12254 2009-06-25 Basile Starynkevitch <basile@starynkevitch.net>
12255
12256 * doc/plugins.texi (Building GCC plugins): Correct typo in Makefile
12257 excerpt - @ should be doubled for texinfo.
12258
12259 2009-06-24 Ian Lance Taylor <iant@google.com>
12260
12261 * config/arc/arc.c: Include "df.h".
12262 (arc_attribute_table): Make static. Move higher in file.
12263 (arc_address_cost): Call SMALL_INT on INTVAL, not rtx.
12264 (output_shift): Initialize n later to avoid warning.
12265 * config/arm/arm.c (arm_attribute_table): Make static. Move
12266 higher in file.
12267 * config/avr/avr.c (avr_attribute_table): Make static. Move
12268 higher in file.
12269 (reg_class_tab): Change array type from int to enum reg_class.
12270 (avr_jump_mode): Change GET_MODE to GET_CODE when checking for
12271 LABEL_REF.
12272 (out_tsthi, ashlhi3_out): Don't use AS2 with "or" or "and".
12273 (lshrhi3_out): Likewise.
12274 (class_likely_spilled_p): Change return type to bool.
12275 (avr_rtx_costs): Use local code variable with enum type.
12276 * config/avr/avr.md (movmemhi): Use add_reg_note.
12277 (andhi3, andsi3): Don't use AS2 with "and".
12278 (iorhi3, iorsi3): Don't use AS2 with "or".
12279 * config/avr/avr-protos.h (class_likely_spilled_p): Update declaration.
12280 * config/crx/crx.c: Include "df.h".
12281 (crx_attribute_table): Make static.
12282 * config/m32r/m32r.c: Include "df.h".
12283 (m32r_attribute_table): Make static. Move higher in file.
12284 (pop): Use add_reg_note.
12285 (block_move_call): Change 0 to LCT_NORMAL in function call.
12286 * config/m32r/m32r.md (movsi_insn): Remove unused local value.
12287 * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Likewise.
12288 * config/m32r/m32r-protos.h (m32r_compute_function_type): Always
12289 declare, not just when TREE_CODE is defined.
12290 * config/m68hc11/m68hc11.c: Include "expr.h".
12291 (m68hc11_attribute_table): Make static. Move higher in file.
12292 (m68hc11_small_indexed_indirect_p): Change 0 to VOIDmode in
12293 function call.
12294 (m68hc11_register_indirect_p): Likewise.
12295 (m68hc11_function_arg_padding): Change return type to enum
12296 direction.
12297 (emit_move_after_reload): Use add_reg_note.
12298 (m68hc11_emit_logical): Change code parameter to enum rtx_code.
12299 (m68hc11_split_logical): Likewise.
12300 (m68hc11_rtx_costs): Add local code_and outer_code variables with
12301 enum type.
12302 * config/m68hc11/predicates.md (reg_or_some_mem_operand): Change 0
12303 to VOIDmode in function call.
12304 * config/m68hc11/m68hc11-protos.h: Don't check TREE_CODE to see if
12305 tree is defined.
12306 (m68hc11_split_logical): Update declaration.
12307 (m68hc11_function_arg_padding): Update declaration.
12308 * config/mcore/mcore.c (regno_reg_class): Change form array of int
12309 to array of enum reg_class.
12310 (mcore_attribute_table): Make static. Move higher in file.
12311 (mcore_rtx_costs): Add cast to enum type.
12312 * config/mcore/mcore.h (regno_reg_class): Update declaration.
12313 (GO_IF_LEGITIMATE_INDEX): Add cast to avoid warning.
12314 * config/sh/sh.c (sh_attribute_table): Make static. Move higher
12315 in file.
12316 * config/sh/predicates.md (trapping_target_operand): Rename and to
12317 and_expr.
12318 * config/sparc/sparc.c (sparc_attribute_table): Make static. Move
12319 higher in file.
12320 * config/spu/spu.c (spu_attribute_table): Make static. Move
12321 higher in file.
12322 * config/v850/v850.c (v850_attribute_table): Make static. Move
12323 higher in file.
12324 (v850_rtx_costs): Use local code with enum type.
12325 (expand_epilogue): Add cast.
12326 * config/v850/v850-c.c (ghs_pragma_section): Initialize repeat.
12327
12328 2009-06-23 Takashi YOSHII <yoshii.takashi@renesas.com>
12329
12330 PR target/40515
12331 * doc/invoke.texi (SH Options): Document -m2a, -m2a-single,
12332 -m2a-single-only and -m2a-nofpu.
12333 * config/sh/sh.opt: Document m2a generates FPU code.
12334
12335 2009-06-24 Anatoly Sokolov <aesok@post.ru>
12336
12337 * defaults.h (CAN_ELIMINATE): Provide default.
12338 * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
12339 * config/alpha/alpha.h (CAN_ELIMINATE): Delete.
12340 * config/m32c/m32c.h (CAN_ELIMINATE): Delete.
12341 * config/spu/spu.h (CAN_ELIMINATE): Delete.
12342 * config/xtensa/xtensa.h (CAN_ELIMINATE): Delete.
12343 * config/moxie/moxie.h (CAN_ELIMINATE): Delete.
12344 * config/cris/cris.h (CAN_ELIMINATE): Delete.
12345 * config/mn10300/mn10300.h (CAN_ELIMINATE): Delete.
12346 * config/pa/pa64-linux.h (CAN_ELIMINATE): Delete.
12347 * config/mmix/mmix.h (CAN_ELIMINATE): Delete.
12348
12349 2009-06-24 DJ Delorie <dj@redhat.com>
12350
12351 * mep-ext-cop.cpu: Fix copyright notice.
12352 * mep-default: Fix copyright notice.
12353 * mep-core: Fix copyright notice.
12354 * mep: Fix copyright notice.
12355 * mep-ivc2: Fix copyright notice.
12356 * mep-c5: Fix copyright notice.
12357
12358 2009-06-24 Denis Chertykov <chertykov@gmail.com>
12359
12360 * doc/contrib.texi (Contributors):
12361
12362 2009-06-24 Andreas Krebbel <krebbel1@de.ibm.com>
12363
12364 PR middle-end/40501
12365 * tree-ssa-math-opts.c (execute_optimize_bswap): Convert the bswap
12366 src and dst operands if necessary.
12367
12368 2009-06-23 DJ Delorie <dj@redhat.com>
12369
12370 Add MeP port.
12371 * config.gcc: Add mep support.
12372 * recog.c: Resurrect validate_replace_rtx_subexp().
12373 * recog.h: Likewise.
12374 * config/mep/: Add new port:
12375 * config/mep/constraints.md: New file.
12376 * config/mep/default.h: New file.
12377 * config/mep/intrinsics.h: New file.
12378 * config/mep/intrinsics.md: New file.
12379 * config/mep/ivc2-template.h: New file.
12380 * config/mep/mep-c5.cpu: New file.
12381 * config/mep/mep-core.cpu: New file.
12382 * config/mep/mep-default.cpu: New file.
12383 * config/mep/mep-ext-cop.cpu: New file.
12384 * config/mep/mep-intrin.h: New file.
12385 * config/mep/mep-ivc2.cpu: New file.
12386 * config/mep/mep-lib1.asm: New file.
12387 * config/mep/mep-lib2.c: New file.
12388 * config/mep/mep-pragma.c: New file.
12389 * config/mep/mep-protos.h: New file.
12390 * config/mep/mep-tramp.c: New file.
12391 * config/mep/mep.c: New file.
12392 * config/mep/mep.cpu: New file.
12393 * config/mep/mep.h: New file.
12394 * config/mep/mep.md: New file.
12395 * config/mep/mep.opt: New file.
12396 * config/mep/predicates.md: New file.
12397 * config/mep/t-mep: New file.
12398
12399 2009-06-23 Ian Lance Taylor <iant@google.com>
12400
12401 * configure.ac: Invoke AC_PROG_CXX. Separate C specific warnings
12402 from loose_warn into c_loose_warn and from strict_warn into
12403 c_strict_warn. Set and substitute warn_cxxflags. Check for
12404 --enable-build-with-cxx. Set and substitute
12405 ENABLE_BUILD_WITH_CXX. Set and substitute HOST_LIBS.
12406 * Makefile.in (CXXFLAGS): New variable.
12407 (C_LOOSE_WARN, C_STRICT_WARN): New variables.
12408 (GCC_WARN_CFLAGS): Add $(C_LOOSE_WARN). Add $(C_STRICT_WARN) if
12409 the default is the same as $(STRICT_WARN).
12410 (GCC_WARN_CXXFLAGS, WARN_CXXFLAGS): New variables.
12411 (CXX): New variable.
12412 (COMPILER): New value if ENABLE_BUILD_WITH_CXX.
12413 (COMPILER_FLAGS, LINKER, LINKER_FLAGS): Likewise.
12414 (ALL_COMPILERFLAGS, ALL_LINKERFLAGS): Likewise.
12415 (HOST_LIBS): New variable.
12416 (GCC_CFLAGS): Add $(C_LOOSE_WARN).
12417 (ALL_CXXFLAGS): New variable.
12418 (LIBS, BACKENDLIBS): Add $(HOST_LIBS).
12419 * doc/install.texi (Configuration): Document
12420 --enable-build-with-cxx, --with-stage1-ldflags,
12421 --with-stage1-libs, --with-boot-ldflags, --with-boot-libs.
12422 * configure: Rebuild.
12423
12424 2009-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12425
12426 * config/arm/arm.c (arm_override_options): Fix braces and formatting
12427 from previous commit.
12428
12429 2009-06-23 Ian Lance Taylor <iant@google.com>
12430
12431 * Makefile.in ($(out_object_file)): Depend upon $(DF_H).
12432
12433 2009-06-23 Ian Lance Taylor <iant@google.com>
12434
12435 * reload.c (alternative_allows_const_pool_ref): Mark mem parameter
12436 with ATTRIBUTE_UNUSED.
12437
12438 2009-06-23 Michael Meissner <meissner@linux.vnet.ibm.com>
12439 Pat Haugen <pthaugen@us.ibm.com>
12440 Revital Eres <eres@il.ibm.com>
12441
12442 * config.in (HAVE_AS_POPCNTD): Add default definition.
12443 (HAVE_AS_LWSYNC): Ditto.
12444
12445 * configure.ac (gcc_cv_as_powerpc_mfpgpr): Provide real binutils
12446 release number.
12447 (gcc_cv_as_powerpc_cmpb): Ditto.
12448 (gcc_cv_as_powerpc_dfp): Ditto.
12449 (gcc_cv_as_powerpc_vsx): Ditto.
12450 (gcc_cv_as_powerpc_popcntd): Add feature test for assembler
12451 supporting the popcntd/lwsync instructions.
12452 (gcc_cv_as_powerpc_lwsync): Ditto.
12453 * configure: Regenerate.
12454
12455 * config/rs6000/aix53.h (ASM_CPU_SPEC): Add support for
12456 -mcpu=native and -mcpu=power7.
12457 * config/rs6000/aix61.h (ASM_CPU_SPEC): Ditto.
12458
12459 * config/rs6000/linux64.opt (-mprofile-kernel): Move switch to be
12460 a variable instead of a mask to reduce the number of mask bits.
12461 * config/rs6000/sysv4.opt (-mbit-align): Ditto.
12462 (-mbit-word): Ditto.
12463 (-mregnames): Ditto.
12464 * config/rs6000/rs6000.opt (-mupdate): Ditto.
12465 (-mfused-madd): Ditto.
12466
12467 * config/rs6000/rs6000.opt (-mpopcntd): New switch for non-VSX ISA
12468 2.06 instructions.
12469 (-mvsx): New switch for VSX instructions.
12470 (-misel): Move from a variable to a mask to allow it to be set by
12471 -mcpu=.
12472
12473 * config/rs6000/rs6000-protos.h (rs6000_hard_regno_nregs): Change
12474 function declaration to an array declaration.
12475 (rs6000_hard_regno_nregs): New external array declaration.
12476
12477 * config/rs6000/t-rs6000 (MD_INCLUDES): Define, add all of the .md
12478 files included by rs6000.md.
12479
12480 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
12481 SET_PROFILE_KERNEL macro to reset the -mprofile-kernel switch.
12482
12483 * config/rs6000/rs6000.c (rs6000_isel): Delete, -misel moved to be
12484 a target mask.
12485 (rs6000_debug_reg): New -mdebug= variables.
12486 (rs6000_debug_addr): Ditto.
12487 (rs6000_debug_cost): Ditto.
12488 (rs6000_pmode): New variable to hold Pmode.
12489 (rs6000_pointer_size): New variable to hold POINTER_SIZE.
12490 (rs6000_class_max_nregs): New array to hold CLASS_MAX_NREGS
12491 calculated at compiler start.
12492 (rs6000_hard_regno_nregs): Change function to an array which holds
12493 HARD_REGNO_NREGS calculated at compiler start.
12494 (rs6000_explicit_options): Delete isel field.
12495 (rs6000_vector_unit): New array to hold which vector unit
12496 supports arithmetic options for a given type.
12497 (rs6000_vector_mem): New array to hold which vector unit supports
12498 memory reference operations for a given type.
12499 (rs6000_vector_align): New array to given the alignment of each
12500 vector type.
12501 (power7_cost): New basic costs for power7.
12502 (SET_PROFILE_KERNEL): New macro for resetting -mprofile-kernel.
12503 (rs6000_hard_regno_nregs_internal): New function, moved from
12504 HARD_REGNO_NREGS, to calculate the number of registers each hard
12505 register takes for each type.
12506 (rs6000_debug_reg_print): New function for -mdebug=reg support.
12507 (rs6000_debug_vector_unit): New array, map rs6000_vector to string.
12508 (+rs6000_init_hard_regno_mode_ok): New function, move calculation
12509 of HARD_REGNO_NREGS, CLASS_MAX_NREGS, REGNO_REG_CLASS, and vector
12510 unit information here so it is calculated once at compiler startup
12511 time.
12512 (rs6000_override_options): Make -misel a target mask. Add more
12513 power7 target masks. Setup Pmode and POINTER_SIZE. Add initial
12514 VSX support. Add support for -mdebug=reg, -mdebug=addr, and
12515 -mdebug=cost.
12516 (POWERPC_MASKS): Add MASK_POPCNTD, MASK_VSX, and MASK_ISEL.
12517 (rs6000_handle_option): Move -misel from variable to target mask.
12518 (rs6000_builtin_mask_for_load): Add VSX support.
12519 (rs6000_conditional_register_usage): Ditto.
12520 (USE_ALTIVEC_FOR_ARG_P): Ditto.
12521 (function_arg_boundary): Ditto.
12522 (rs6000_expand_builtin): Ditto.
12523 (def_builtin): Make abort message a little friendlier.
12524 (rs6000_emit_int_cmove): Add support for 64-bit isel.
12525
12526 * config/rs6000/rs6000.h (ASM_CPU_POWER7_SPEC): Depend on the
12527 assembler support the popcntd instruction instead of a vsx
12528 instruction to enable power7 support.
12529 (ASM_CPU_SPEC): Add support for -mcpu=native and -mcpu=power7.
12530 (EXTRA_SPECS): Add ASM_CPU_NATIVE_SPEC to allow passing the right
12531 option to the assembler if -mcpu=native.
12532 (ASM_CPU_NATIVE_SPEC): Ditto.
12533 (TARGET_POPCNTD): If assembler doesn't support popcntd, turn off
12534 ISA 2.06 features.
12535 (TARGET_LWSYNC_INSTRUCTION): Define whether it is safe to issue
12536 the lwsync instruction.
12537 (enum processor_type): Add PROCESSOR_POWER7.
12538 (rs6000_debug_reg): New -mdebug= options.
12539 (rs6000_debug_addr): Ditto.
12540 (rs6000_debug_cost): Ditto.
12541 (rs6000_isel): Delete.
12542 (enum rs6000_vector): New enum to say what vector unit we have.
12543 (VECTOR_UNIT_*): New macros to say which vector unit has
12544 arithmetic operations for a given type.
12545 (VECTOR_MEM_*): New macros to say which vector unit has memory
12546 operations for a given type.
12547 (TARGET_LDBRX): Whether the machine supports the ldbrx
12548 instruction.
12549 (TARGET_ISEL): Delete, -misel moved to be a mask.
12550 (TARGET_ISEL64): New macro for 64-bit isel support.
12551 (UNITS_PER_VSX_WORD): New macro.
12552 (POINTER_SIZE): Move to be an external variable, rather than
12553 calculating whether we are generating 32 ot 64-bit code.
12554 (Pmode): Ditto.
12555 (STACK_BOUNDARY): Add VSX support.
12556 (LOCAL_ALIGNMENT): Ditto.
12557 (SLOW_UNALIGNED_ACCESS): Ditto.
12558 (VSX_REGNO_P): New macro for VSX support.
12559 (VFLOAT_REGNO_P): Ditto.
12560 (VINT_REGNO_P): Ditto.
12561 (VLOGICAL_REGNO_P): Ditto.
12562 (VSX_VECTOR_MODE): Ditto.
12563 (VSX_SCALAR_MODE): Ditto.
12564 (VSX_MODE): Ditto.
12565 (VSX_MOVE_MODE): Ditto.
12566 (VSX_REG_CLASS_P): Ditto.
12567 (HARD_REGNO_NREGS): Instead of calling a function, use an array
12568 lookup.
12569 (UNITS_PER_SIMD_WORD): Add VSX support.
12570 (MODES_TIEABLE_P): Ditto.
12571 (STARTING_FRAME_OFFSET): Ditto.
12572 (STACK_DYNAMIC_OFFSET): Ditto.
12573 (EPILOGUE_USES): Ditto.
12574 (REGNO_REG_CLASS): Move to array lookup.
12575 (CLASS_MAX_NREGS): Ditto.
12576 (rs6000_vector_reg_class): Add declaration.
12577 (ADDITIONAL_REGISTER_NAMES): Add VSX names for the registers that
12578 overlap with the floating point and Altivec registers.
12579
12580 * config/rs6000/e500.h (CHECK_E500_OPTIONS): Disallow -mvsx.
12581
12582 * config/rs6000/driver-rs6000.c (asm_names): New static array to
12583 give the appropriate asm switches if -mcpu=native.
12584 (host_detect_local_cpu): Add support for "asm".
12585 (host_detect_local_cpu): Follow GNU code guidelines for name.
12586
12587 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Move
12588 -mbit-word to a variable instead of being a target mask.
12589
12590 * config/rs6000/sync.md (lwsync): If the assembler supports it,
12591 emit the lwsync instruction instead of emitting the instruction as
12592 an integer constant.
12593
12594 * config/rs6000/spe.md (spe_fixuns_truncdfsi2): Rename from
12595 fixuns_trundfsi2, move expander into rs6000.md.
12596
12597 * config/rs6000/rs6000.md (cpu): Add power7.
12598 (sel, *ptrsize): New mode attributes for 32/64-bit isel.
12599 (logical predicate patterns): Change the single instruction
12600 primitives that set CR0 to be fast_compare instead of compare.
12601 (norsi*): Ditto.
12602 (popcntwsi2): Add support for ISA 2.06 popcount instructions.
12603 (popcntddi2): Ditto.
12604 (popcount<mode>): Ditto.
12605 (floating multiply/add insns): Name the floating point
12606 multiply/add insns.
12607 (isel_signed_<mode>): Add support for -misel on 64-bit systems.
12608 (isel_unsigned_<mode>): Ditto.
12609 (fixuns_trundfsi2): Move expander here from spe.md.
12610 (smindi3): Define if we have -misel on 64-bit systems.
12611 (smaxdi3): Ditto.
12612 (umindi3): Ditto.
12613 (umaxdi3): Ditto.
12614
12615 2009-06-23 Anatoly Sokolov <aesok@post.ru>
12616
12617 * config.gcc (avr-*-rtems*, avr-*-*): Set extra_gcc_objs and
12618 extra_objs.
12619 * config/avr/avr.c (avr_current_device): New variable.
12620 (avr_arch_types, avr_mcu_types): Move to avr-deveces.c.
12621 (avr_arch, mcu_type_s): Move to avr.h.
12622 * config/avr/avr.h (base_arch_s). Add reserved2, arch_name and
12623 default_data_section_start fields.
12624 (avr_arch): Moved from avr.c.
12625 (mcu_type_s): Moved from avr.c. Add short_sp, data_section_start and
12626 library_name fields.
12627 (avr_current_device, avr_mcu_types, avr_arch_types,
12628 avr_device_to_arch, avr_device_to_data_start,
12629 avr_device_to_startfiles, avr_device_to_devicelib): Declare.
12630 (EXTRA_SPEC_FUNCTIONS): Define.
12631 (LINK_SPEC): Remove device name to '-m ...' and '-Tdata ...' linker
12632 options mapping. Use device_to_arch and device_to_data_start insted.
12633 (STARTFILE_SPEC): Use device_to_startfile instead of crt_binutils.
12634 (CRT_BINUTILS_SPECS, EXTRA_SPECS): Remove.
12635 * config/avr/t-avr (driver-avr.o, avr-devices.o): New rules.
12636 * config/avr/driver-avr.c: New file.
12637 * config/avr/avr-devices.c: New file.
12638
12639 2009-06-23 Jakub Jelinek <jakub@redhat.com>
12640
12641 * var-tracking.c (unshare_variable): Force initialized to
12642 be VAR_INIT_STATUS_INITIALIZED unless flag_var_tracking_uninit.
12643 (set_variable_part): Likewise.
12644 (struct variable_union_info): Remove pos_src field.
12645 (vui_vec, vui_allocated): New variables.
12646 (variable_union): Pass VAR_INIT_STATUS_UNKNOWN to unshare_variable
12647 unconditionally. Avoid XCVECNEW/free for every sorting, for dst_l
12648 == 1 use a simpler sorting algorithm. Compute pos field right
12649 away, don't fill in pos_src. For dst_l == 2 avoid qsort.
12650 Avoid quadratic comparison if !flag_var_tracking_uninit.
12651 (variable_canonicalize): Pass VAR_INIT_STATUS_UNKNOWN to
12652 unshare_variable unconditionally.
12653 (dataflow_set_different_2): Removed.
12654 (dataflow_set_different): Don't traverse second hash table.
12655 (compute_bb_dataflow): Pass VAR_INIT_STATUS_UNINITIALIZED
12656 unconditionally to var_reg_set or var_mem_set.
12657 (emit_notes_in_bb): Likewise.
12658 (delete_variable_part): Pass VAR_INIT_STATUS_UNKNOWN to
12659 unshare_variable.
12660 (emit_note_insn_var_location): Don't set initialized to
12661 VAR_INIT_STATUS_INITIALIZED early.
12662 (vt_finalize): Free vui_vec if needed, clear vui_vec and
12663 vui_allocated.
12664 * rtl.c (rtx_equal_p): Don't implement on top of rtx_equal_p_cb.
12665
12666 * tree-object-size.c (addr_object_size): Instead of checking
12667 for non-NULL TREE_CHAIN of the FIELD_DECL check that there
12668 are no FIELD_DECLs following it.
12669
12670 2009-06-23 Andreas Krebbel <krebbel1@de.ibm.com>
12671
12672 * tree-ssa-math-opts.c (find_bswap): Increase the search depth in
12673 order to match bswaps with signed source operands.
12674
12675 2009-06-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12676
12677 * sdbout.c (sdbout_one_type): Fix braces in switch.
12678
12679 2009-06-23 Richard Guenther <rguenther@suse.de>
12680
12681 * tree-ssa-structalias.c (struct variable_info): Add is_global_var
12682 member.
12683 (var_anything, anything_tree, var_nothing, nothing_tree, var_readonly,
12684 readonly_tree, var_escaped, escaped_tree, var_nonlocal, nonlocal_tree,
12685 var_callused, callused_tree, var_storedanything, storedanything_tree,
12686 var_integer, integer_tree): Remove global variables.
12687 (new_var_info): Do not pass new id, append the new var to the
12688 global variable vector.
12689 (do_ds_constraint): Use is_global_var member of the variable-info.
12690 (new_scalar_tmp_constraint_exp): Adjust.
12691 (create_function_info_for): Likewise.
12692 (create_variable_info_for): Likewise.
12693 (find_what_var_points_to): Remove dead code.
12694 (init_base_vars): Simplify.
12695 (compute_points_to_sets): Adjust.
12696
12697 2009-06-22 Adam Nemet <anemet@caviumnetworks.com>
12698
12699 * combine.c (try_combine): Dump information about the insns we're
12700 combining.
12701
12702 2009-06-22 Adam Nemet <anemet@caviumnetworks.com>
12703
12704 * combine.c (combine_simplify_rtx): Remove TRULY_NOOP_TRUNCATION
12705 check when calling force_to_mode on TRUNCATE's operand.
12706
12707 2009-06-22 Ian Lance Taylor <iant@google.com>
12708
12709 * config/rs6000/rs6000.opt: Move msched-epilog before msched-prolog.
12710
12711 2009-06-22 Steven Bosscher <steven@gcc.gnu.org>
12712
12713 * config/arm/arm.md (prologue_use): Set length of fake insn to 0.
12714
12715 2009-06-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12716
12717 * doc/invoke.texi (Link Options): -nodefaultlibs and -nostdlib
12718 override library linkage flags such as -static-libgcc or
12719 -shared-libgcc.
12720
12721 2009-06-22 Maxim Kuvyrkov <maxim@codesourcery.com>
12722
12723 * config/m68k/m68k-devices.def: Add line for MCF5221x.
12724
12725 2009-06-22 Ian Lance Taylor <iant@google.com>
12726
12727 * config/linux.opt: Put mglibc ahead of muclibc.
12728
12729 * c-decl.c (diagnose_mismatched_decls): Add -Wc++-compat warning
12730 for duplicate decls.
12731
12732 2009-06-22 Matthias Klose <doko@ubuntu.com>
12733
12734 * Makefile.in (install-plugin): Remove extra `/' after $(DESTDIR).
12735
12736 2009-06-22 Steven Bosscher <steven@gcc.gnu.org>
12737
12738 PR objc/28050
12739 * c-parser.c (c_parser_objc_message_args): Return error_mark_node
12740 instead of NULL if a parser error occurs.
12741
12742 2009-06-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12743
12744 * dwarf2out.c (dwarf2_debug_hooks): Initialize
12745 non-DWARF2_DEBUGGING_INFO version.
12746
12747 2009-06-22 Kai Tietz <kai.tietz@onevision.com>
12748
12749 * config.gcc (i[34567]86-*-mingw*, x86_64-*-mingw*): Add
12750 i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
12751
12752 * config/i386/mingw32.h (LIBGCC2_HAS_TF_MODE): Define.
12753 (LIBGCC2_TF_CEXT): Define.
12754 (TF_SIZE): Define.
12755
12756 2009-06-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12757
12758 PR target/40463
12759 * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Fix definition.
12760
12761 2009-06-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12762
12763 * config/arm/arm.c (arm_override_options): Disable
12764 -mcaller-super-interworking and -mcallee-super-interworking.
12765 * doc/invoke.texi (ARM Options): Document this.
12766
12767 2009-06-22 Nathan Sidwell <nathan@codesourcery.com>
12768
12769 * config/arm/arm.c (arm_print_operand): Deal with HIGH.
12770 * config/arm/constraints.md (j): New constraint for movw operands.
12771 (N): Remove thumb2 meaning.
12772 * config/arm/arm.md (*arm_movw): Delete.
12773 (*arm_movsi_insn): Use j constraint for movw instead of N constraint.
12774 * config/arm/vfp.md (*arm_movsi_vfp, *thumb2_movsi_vfp): Likewise.
12775 * config/arm/thumb2.md (*thumb2_movsi_insn): Likewise.
12776
12777 2009-06-22 Martin Jambor <mjambor@suse.cz>
12778
12779 PR tree-optimization/40492
12780 * tree-sra.c (sra_modify_assign): Pass zero offsets to
12781 build_ref_for_offset.
12782
12783 2009-06-22 Shujing Zhao <pearly.zhao@oracle.com>
12784
12785 * alias.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P, CALL_P, NOTE_P and
12786 JUMP_TABLE_DATA_P predicates where applicable.
12787 * auto-inc-dec.c: Ditto.
12788 * builtins.c: Ditto.
12789 * caller-save.c: Ditto.
12790 * calls.c: Ditto.
12791 * cfgcleanup.c: Ditto.
12792 * cfglayout.c: Ditto.
12793 * cfgrtl.c: Ditto.
12794 * combine.c: Ditto.
12795 * combine-stack-adj.c: Ditto.
12796 * cse.c: Ditto.
12797 * cselib.c: Ditto.
12798 * dbxout.c: Ditto.
12799 * df-scan.c: Ditto.
12800 * dse.c: Ditto.
12801 * dwarf2asm.c: Ditto.
12802 * dwarf2out.c: Ditto.
12803 * emit-rtl.c: Ditto.
12804 * except.c: Ditto.
12805 * explow.c: Ditto.
12806 * expmed.c: Ditto.
12807 * expr.c: Ditto.
12808 * final.c: Ditto.
12809 * function.c: Ditto.
12810 * fwprop.c: Ditto.
12811 * gcse.c: Ditto.
12812 * genpreds.c: Ditto.
12813 * genrecog.c: Ditto.
12814 * ifcvt.c: Ditto.
12815 * ira-costs.c: Ditto.
12816 * ira-lives.c: Ditto.
12817 * jump.c: Ditto.
12818 * loop-iv.c: Ditto.
12819 * lower-subreg.c: Ditto.
12820 * modulo-sched.c: Ditto.
12821 * optabs.c: Ditto.
12822 * postreload.c: Ditto.
12823 * print-rtl.c: Ditto.
12824 * recog.c: Ditto.
12825 * reginfo.c: Ditto.
12826 * regmove.c: Ditto.
12827 * reload1.c: Ditto.
12828 * reload.c: Ditto.
12829 * reorg.c: Ditto.
12830 * rtlanal.c: Ditto.
12831 * rtl.c: Ditto.
12832 * sched-vis.c: Ditto.
12833 * sdbout.c: Ditto.
12834 * sel-sched-ir.c: Ditto.
12835 * simplify-rtx.c: Ditto.
12836 * targhooks.c: Ditto.
12837 * var-tracking.c: Ditto.
12838 * vmsdbgout.c: Ditto.
12839
12840 2009-06-22 Matthias Klose <doko@ubuntu.com>
12841
12842 * Makefile.in (install-plugin): Always use DESTDIR.
12843
12844 2009-06-22 Olivier Hainque <hainque@adacore.com>
12845
12846 * config/pa/pa.c (output_call): Don't optimize post call jumps
12847 into return address adjustments if the call may throw.
12848
12849 2009-06-21 Richard Earnshaw <rearnsha@arm.com>
12850
12851 * arm.c (thumb1_output_casesi): New function.
12852 * arm.h (CASE_VECTOR_PC_RELATIVE): Thumb-1 code is also relative if
12853 optimizing for size or PIC.
12854 (CASE_VECTOR_SHORTEN_MODE): Handle thumb-1.
12855 * arm.md (UNSPEC_THUMB1_CASESI): New constant.
12856 (casesi): Handle Thumb-1 when optimizing for size or PIC.
12857 (thumb1_casesi_internal_pic): New expand rule.
12858 (thumb1_casesi_dispatch): New pattern.
12859 * aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use shortened vectors for
12860 thumb-1 mode.
12861 * coff.h (JUMP_TABLES_IN_TEXT_SECTION): Thumb-1 jump tables are now
12862 in the text seciton when PIC or optimizing for size.
12863 * elf.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
12864 * lib1funcs.asm ([__ARM_EABI__]): Add an attribute describing stack
12865 preservation properties of code.
12866 (__gnu_thumb1_case_sqi, __gnu_thumb1_case_uqi): New functions.
12867 (__gnu_thumb1_case_shi, __gnu_thumb1_case_uhi): New functions.
12868 (__gnu_thumb1_case_si): New function.
12869 * t-arm (LIB1ASMSRC): Define here.
12870 (LIB1ASMFUNCS): Add some common functions.
12871 * t-arm-elf (LIB1ASMSRC): Delete.
12872 (LIB1ASMFUNCS): Append to existing set.
12873 * t-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
12874 * t-strongarm-elf (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
12875 * t-symbian (LIB1ASMFUNCS): Likewise.
12876 * t-vxworks (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
12877 * t-wince-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
12878
12879 2009-06-21 Richard Guenther <rguenther@suse.de>
12880
12881 PR tree-optimization/38729
12882 * tree-ssa-loop-niter.c (find_loop_niter_by_eval): Restrict
12883 to loops with a single exit if -fno-expensive-optimizations.
12884
12885 2009-06-21 Jakub Jelinek <jakub@redhat.com>
12886
12887 * var-tracking.c (struct shared_hash_def, shared_hash): New types.
12888 (dataflow_set): Change vars type from htab_t to shared_hash.
12889 (shared_hash_pool, empty_shared_hash): New variables.
12890 (vars_clear): Removed.
12891 (shared_hash_shared, shared_hash_htab, shared_hash_copy,
12892 shared_hash_find_slot_unshare, shared_hash_find_slot,
12893 shared_hash_find_slot_noinsert, shared_hash_find): New
12894 static inlines.
12895 (shared_hash_unshare, shared_hash_destroy): New functions.
12896 (unshare_variable): Unshare set->vars if shared, use
12897 shared_hash_htab.
12898 (vars_copy): Use htab_traverse_noresize instead of htab_traverse.
12899 (get_init_value, find_src_set_src, dump_dataflow_set,
12900 clobber_variable_part, emit_notes_for_differences): Use
12901 shared_hash_htab.
12902 (dataflow_set_init): Remove second argument, set vars to
12903 empty_shared_hash instead of creating a new htab.
12904 (dataflow_set_clear): Call shared_hash_destroy and set vars
12905 to empty_shared_hash instead of calling vars_clear.
12906 (dataflow_set_copy): Don't call vars_copy, instead just share
12907 the src htab with dst.
12908 (variable_union): Use shared_hash_*, use initially NO_INSERT
12909 lookup if set->vars is shared. Don't keep slot cleared before
12910 calling unshare_variable. Unshare set->vars if needed.
12911 Even ->refcount == 1 vars must be unshared if set->vars is shared
12912 and var needs to be modified.
12913 (variable_canonicalize): New function.
12914 (dataflow_set_union): If dst->vars is empty, just share src->vars
12915 with dst->vars and traverse with variable_canonicalize to canonicalize
12916 and unshare what is needed.
12917 (dataflow_set_different): If old_set and new_set use the same shared
12918 htab, they aren't different. If number of htab elements is different,
12919 htabs are different. Use shared_hash_*.
12920 (dataflow_set_destroy): Call shared_hash_destroy instead of
12921 htab_delete.
12922 (compute_bb_dataflow, emit_notes_in_bb, vt_emit_notes): Don't pass
12923 second argument to dataflow_set_init.
12924 (vt_initialize): Likewise. Initialize shared_hash_pool and
12925 empty_shared_hash, move bb in/out initialization afterwards.
12926 Use variable_htab_free instead of NULL as changed_variables del hook.
12927 (variable_was_changed): Change type of second argument to pointer to
12928 dataflow_set. When inserting var into changed_variables, bump
12929 refcount. Unshare set->vars if set is shared htab and slot needs to
12930 be cleared.
12931 (set_variable_part): Use shared_hash_*, use initially NO_INSERT
12932 lookup if set->vars is shared. Unshare set->vars if needed.
12933 Even ->refcount == 1 vars must be unshared if set->vars is shared
12934 and var needs to be modified. Adjust variable_was_changed caller.
12935 (delete_variable_part): Use shared_hash_*. Even ->refcount == 1
12936 vars must be unshared if set->vars is shared and var needs to be
12937 modified. Adjust variable_was_changed caller.
12938 (emit_note_insn_var_location): Don't pool_free var.
12939 (emit_notes_for_differences_1): Initialize empty_var->refcount to 0
12940 instead of 1.
12941 (vt_finalize): Call htab_delete on empty_shared_hash->htab and
12942 free_alloc_pool on shared_hash_pool.
12943
12944 2009-06-20 Anthony Green <green@moxielogic.com>
12945
12946 * config/moxie/sfp-machine.h (__gcc_CMPtype, CMPtype): Define.
12947 * config/moxie/moxie.h (LOAD_EXTEND_OP): Define.
12948
12949 2009-06-20 Richard Guenther <rguenther@suse.de>
12950
12951 * tree-ssa-structalias.c (find_func_aliases): For memset use
12952 a constraint from NULL if we memset to zero.
12953 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Add builtins
12954 we explicitly handle that do not read from memory.
12955 (call_may_clobber_ref_p_1): Properly handle builtins that may
12956 set errno.
12957
12958 2009-06-20 Richard Guenther <rguenther@suse.de>
12959
12960 PR tree-optimization/40495
12961 * tree-ssa-structalias.c (get_constraint_exp_for_temp): Remove.
12962 (new_scalar_tmp_constraint_exp): New function.
12963 (process_constraint): Do not create temporary decls.
12964 (process_all_all_constraints): Likewise.
12965 (handle_const_call): Likewise.
12966 (create_function_info_for): Do not set decl.
12967
12968 2009-06-19 Ian Lance Taylor <iant@google.com>
12969
12970 * config/rs6000/rs6000.c (rs6000_explicit_options): Make static.
12971 (rs6000_attribute_table): Make static; move before use.
12972
12973 2009-06-19 Eric Botcazou <ebotcazou@adacore.com>
12974
12975 * tree.c (substitute_in_expr) <COMPONENT_REF>: Tweak and reformat.
12976 <tcc_vl_exp>: Call process_call_operands on the new CALL_EXPR.
12977 Propagate the TREE_READONLY flag without overwriting it.
12978 (substitute_placeholder_in_expr) <tcc_vl_exp>: Likewise.
12979 Propagate the TREE_READONLY flag onto the result.
12980 (process_call_operands): Move around. Use correct constant value.
12981
12982 2009-06-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12983
12984 PR target/40482
12985 * config/arm/arm.c (thumb_shiftable_const): Truncate val to 32 bits.
12986 * config/arm/arm.md: Likewise.
12987
12988 2009-06-19 Ian Lance Taylor <iant@google.com>
12989
12990 * tree-cfg.c (gimple_redirect_edge_and_branch): Change ERROR_MARK
12991 to GIMPLE_ERROR_MARK.
12992
12993 * c-typeck.c (build_conditional_expr): Add op1_original_type and
12994 op2_original_type parameters. Warn about using different enum types.
12995 * c-parser.c (c_parser_conditional_expression): Pass original
12996 types to build_conditional_expr.
12997 * c-tree.h (build_conditional_expr): Update declaration.
12998
12999 2009-06-19 Ian Lance Taylor <iant@google.com>
13000
13001 * config/i386/i386.c (ix86_function_specific_save): Test that
13002 fields match values, rather than testing the values are in a
13003 certain range.
13004
13005 2009-06-19 Richard Guenther <rguenther@suse.de>
13006
13007 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
13008 ADDR_EXPR pointers.
13009 (ptr_derefs_may_alias_p): Likewise.
13010 (ptr_deref_may_alias_ref_p_1): New function.
13011 (ptr_deref_may_alias_ref_p): Likewise.
13012 (ref_maybe_used_by_call_p_1): Handle builtins that are not
13013 covered by looking at the ESCAPED solution.
13014 (call_may_clobber_ref_p_1): Likewise.
13015 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
13016 Handle NULL_TREE offset. Do not produce redundant constraints.
13017 (process_all_all_constraints): New helper function.
13018 (do_structure_copy): Use it.
13019 (handle_lhs_call): Likewise.
13020 (find_func_aliases): Handle some builtins with pointer arguments
13021 and/or return values explicitly.
13022
13023 2009-06-19 Ian Lance Taylor <iant@google.com>
13024
13025 * varasm.c (const_rtx_hash_1): Remove const qualifier from shift.
13026
13027 2009-06-19 Ian Lance Taylor <iant@google.com>
13028
13029 * rtl.h (SUBREG_PROMOTED_UNSIGNED_P): Add cast to int.
13030
13031 2009-06-19 Ian Lance Taylor <iant@google.com>
13032
13033 * ggc-page.c (ggc_pch_write_object): Initialize emptyBytes.
13034 * sdbout.c (sdb_debug_hooks): Initialize non-SDB_DEBUGGING_INFO
13035 version.
13036
13037 * c-decl.c (finish_decl): If -Wc++-compat, warn about
13038 uninitialized const.
13039
13040 2009-06-19 Ian Lance Taylor <iant@google.com>
13041
13042 * dse.c (struct store_info): Rename bitmap field to bmap. Change
13043 all uses.
13044
13045 * c-decl.c (in_struct, struct_types): Remove.
13046 (struct c_binding): Add in_struct field.
13047 (c_binding_ptr): Define type, along with VEC.
13048 (struct c_struct_parse_info): Define.
13049 (struct_parse_info): New static variable.
13050 (bind): Initialize in_struct field.
13051 (start_struct): Remove enclosing_in_struct and
13052 enclosing_struct_types parameters. Add
13053 enclosing_struct_parse_info parameter. Change all callers. Set
13054 struct_parse_info rather than in_struct and struct_types.
13055 (grokfield): If -Wc++-compat and there is a symbol binding for the
13056 field name, set the in_struct flag and push it on the
13057 struct_parse_info->fields vector.
13058 (warn_cxx_compat_finish_struct): New static function.
13059 (finish_struct): Remove enclosing_in_struct and
13060 enclosing_struct_types parameters. Add
13061 enclosing_struct_parse_info parameter. Change all callers. Don't
13062 set C_TYPE_DEFINED_IN_STRUCT here. Call
13063 warn_cxx_compat_finish_struct. Free struct_parse_info and set to
13064 parameter. Only push on struct_types if warn_cxx_compat.
13065 (finish_enum): Only push on struct_types if warn_cxx_compat.
13066 (declspecs_add_type): Add loc parameter. Change all callers.
13067 Change all error calls to error_at. Pass loc, not input_location,
13068 to pedwarn calls. Warn if -Wc++-compat and a typedef name is
13069 defined in a struct. If -Wc++-compat and parsing a struct, record
13070 that a typedef name was used.
13071 * c-parser.c (c_parser_declspecs): Get location to pass to
13072 declspecs_add_type.
13073 (c_parser_struct_or_union_specifier): Update calls to start_struct
13074 and finish_struct.
13075 * c-tree.h (struct c_struct_parse_info): Declare.
13076 (finish_struct, start_struct): Update declarations.
13077 (declspecs_add_type): Update declaration.
13078
13079 2009-06-19 Ian Lance Taylor <iant@google.com>
13080
13081 * c-decl.c (grokdeclarator): If -Wc++-compat, warn about a global
13082 variable with an anonymous type.
13083
13084 2009-06-19 Uros Bizjak <ubizjak@gmail.com>
13085
13086 * see.c: Remove for real.
13087
13088 2009-06-19 Uros Bizjak <ubizjak@gmail.com>
13089
13090 * optabs.h (enum optab_index): Add new OTI_significand.
13091 (significand_optab): Define corresponding macro.
13092 * optabs.c (init_optabs): Initialize significand_optab.
13093 * genopinit.c (optabs): Implement significand_optab using
13094 significand?f2 patterns.
13095 * builtins.c (expand_builtin_mathfn): Handle
13096 BUILT_IN_SIGNIFICAND{,F,L}.
13097 (expand_builtin): Expand BUILT_IN_SIGNIFICAND{,F,L} using
13098 expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
13099
13100 * config/i386/i386.md (significandxf2, significand<mode>2): New
13101 expanders to implement significandf, significand and significandl
13102 built-ins as inline x87 intrinsics.
13103
13104 2009-06-18 Anatoly Sokolov <aesok@post.ru>
13105
13106 * config/avr/avr.c (avr_override_options): Remove setting value of
13107 PARAM_INLINE_CALL_COST.
13108
13109 2009-06-18 Richard Henderson <rth@redhat.com>
13110
13111 PR 40488
13112 * tree-pass.h (TDF_ASMNAME): New.
13113 * tree-dump.c (dump_options): Add asmname.
13114 * doc/invoke.texi: Document it.
13115
13116 * tree-pretty-print.c (maybe_dump_asm_name): Merge into...
13117 (dump_decl_name): ...here.
13118 (dump_function_name): New flags arg; mind TDF_ASMNAME.
13119 (dump_generic_node): Update dump_function_name calls.
13120 (print_call_name): New flags arg; update all dump calls.
13121 * diagnostic.h (print_call_name): Update.
13122 * gimple-pretty-print.c (dump_gimple_call): Update.
13123
13124 2009-06-18 H.J. Lu <hongjiu.lu@intel.com>
13125
13126 PR target/40470
13127 * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Add SSE_FIRST_REG.
13128
13129 2009-06-18 Diego Novillo <dnovillo@google.com>
13130
13131 * doc/plugins.texi: Document plugin_is_GPL_compatible.
13132 * plugin.c (str_license): Declare.
13133 (try_init_one_plugin): Assert that the symbol
13134 'plugin_is_GPL_compatible' exists.
13135
13136 2009-06-18 Sergei Dyshel <sergeid@il.ibm.com>
13137
13138 * see.c: Remove.
13139 * Makefile.in (OBJS-common): Remove see.o.
13140 (see.o): Remove.
13141 * common.opt (fsee): Mark as preserved for backward compatibility.
13142 * opts.c (common_handle_option): Add OPT_fsee to the backward
13143 compatibility section.
13144 * passes.c (init_optimization_passes, pass_see): Remove pass.
13145 * timevar.def (TV_SEE): Remove.
13146 * tree-pass.h (pass_see): Remove declaration.
13147 * doc/invoke.texi (-fsee): Remove documentation.
13148
13149 2009-06-18 Martin Jambor <mjambor@suse.cz>
13150
13151 * tree-sra.c: Include statistics.h
13152 (sra_stats): New variable.
13153 (sra_initialize): Clear sra_stats.
13154 (create_access_replacement): Increment sra_stats.replacements.
13155 (get_access_replacement): Do not return twice.
13156 (analyze_all_variable_accesses): Increment statistics counter by the
13157 number of scalarized aggregates.
13158 (generate_subtree_copies): Increment sra_stats.subtree_copies.
13159 (sra_modify_expr): Increment sra_stats.exprs.
13160 (load_assign_lhs_subreplacements): Increment sra_stats.subreplacements.
13161 (sra_modify_assign): Increment sra_stats.exprs,
13162 sra_stats.separate_lhs_rhs_handling and sra_stats.deleted.
13163 (perform_intra_sra): Update statistics counters.
13164 * Makefile.in (tree-sra.o): Add statistics.h to dependencies.
13165
13166 2009-06-18 Sandra Loosemore <sandra@codesourcery.com>
13167
13168 * config/arm/arm.c (TARGET_SCALAR_MODE_SUPPORTED_P): Redefine.
13169 (arm_scalar_mode_supported_p): New function.
13170
13171 2009-06-18 Paul Brook <paul@codesourcery.com>
13172 Sandra Loosemore <sandra@codesourcery.com>
13173
13174 * config/arm/sfp-machine.h (_FP_NANFRAC_H, _FP_NANSIGN_H): Define.
13175 (__extendhfsf2, __truncsfhf2): Define.
13176 * config/arm/fp16.c: New file.
13177 * config/arm/t-bpabi (LIB2FUNCS_STATIC_EXTRA): Add fp16.c.
13178 * config/arm/t-symbian (LIB2FUNCS_STATIC_EXTRA): Add fp16.c.
13179
13180 2009-06-18 Sandra Loosemore <sandra@codesourcery.com>
13181
13182 * doc/extend.texi (Half-Precision): New section.
13183 * doc/invoke.texi (Option Summary): List -mfp16-format.
13184 (ARM Options): List neon-fp16 as -mfpu value. Document -mfp16-format.
13185 * config/arm/arm.opt (mfp16-format=): New.
13186 * config/arm/arm.c: Include intl.h.
13187 (TARGET_INVALID_PARAMETER_TYPE): Redefine.
13188 (TARGET_INVALID_RETURN_TYPE): Redefine.
13189 (TARGET_PROMOTED_TYPE): Redefine.
13190 (TARGET_CONVERT_TO_TYPE): Redefine.
13191 (arm_fp16_format): Define.
13192 (all_fpus): Add entry for neon-fp16.
13193 (fp_model_for_fpu): Likewise.
13194 (struct fp16_format): Declare.
13195 (all_fp16_formats): Define.
13196 (arm_init_libfuncs): Add entries for HFmode conversions and arithmetic
13197 functions.
13198 (arm_override_options): Set arm_fp16_format. Call sorry for fp16
13199 and no ldrh.
13200 (arm_legitimate_index_p): Treat HFmode like HImode.
13201 (thumb1_legitimate_address_p): Make it recognize HFmode constants.
13202 (coproc_secondary_reload_class): Special-case HFmode.
13203 (arm_print_operand): Add 'z' specifier for vld1.16/vst1.16.
13204 (arm_hard_regno_mode_ok): Allow HFmode values in VFP registers.
13205 (arm_init_fp16_builtins): New.
13206 (arm_init_builtins): Call it.
13207 (arm_invalid_parameter_type): New.
13208 (arm_invalid_return_type): New.
13209 (arm_promoted_type): New.
13210 (arm_convert_to_type).
13211 (arm_file_start): Deal with neon-fp16 as fpu_name. Emit tag for fp16
13212 format.
13213 (arm_emit_fp16_const): New function.
13214 (arm_mangle_type): Mangle __fp16 as "Dh".
13215 * config/arm/arm.h (TARGET_VFPD32): Make it know about
13216 FPUTYPE_NEON_FP16.
13217 (TARGET_NEON_FP16): New.
13218 (TARGET_NEON): Make it know about FPUTYPE_NEON_FP16.
13219 (enum fputype): Add FPUTYPE_NEON_FP16.
13220 (enum arm_fp16_format_type): Declare.
13221 (arm_fp16_format): Declare.
13222 (LARGEST_EXPONENT_IS_NORMAL): Define.
13223 * config/arm/arm-protos.h (arm_emit_fp16_const): Declare.
13224 * config/arm/arm-modes.def (HFmode): Define.
13225 * config/arm/vfp.md: (*movhf_vfp): New.
13226 (extendhfsf2): New.
13227 (truncsfhf2): New.
13228 * config/arm/arm.md: (fpu): Add neon_fp16.
13229 (floatsihf2, floatdihf2): New.
13230 (fix_trunchfsi2, fix_trunchfdi2): New.
13231 (truncdfhf2): New.
13232 (extendhfdf2): New.
13233 (movhf): New.
13234 (*arm32_movhf): New.
13235 (*thumb1_movhf): New.
13236 (consttable_2): Add check for HFmode constants.
13237 (consttable_4): Handle HFmode constants.
13238
13239 2009-06-18 Uros Bizjak <ubizjak@gmail.com>
13240
13241 * convert.c (convert_to_integer): Convert (int)logb() into ilogb().
13242
13243 2009-06-17 Olivier Hainque <hainque@adacore.com>
13244
13245 * collect2.c (main): Use CONST_CAST2 to perform char ** to
13246 const char ** conversion in AIX specific section.
13247
13248 2009-06-17 H.J. Lu <hongjiu.lu@intel.com>
13249
13250 * config/i386/i386.c (ix86_special_builtin_type): Remove
13251 UINT64_FTYPE_PINT. Add UINT64_FTYPE_PUNSIGNED.
13252 (bdesc_special_args): Updated.
13253 (ix86_init_mmx_sse_builtins): Likewise.
13254 (ix86_expand_special_args_builtin): Likewise.
13255
13256 2009-06-17 Richard Henderson <rth@redhat.com>
13257
13258 * tree-pretty-print.c (maybe_dump_asm_name): New.
13259 (dump_decl_name): Use it.
13260 (PRINT_FUNCTION_NAME): Merge into...
13261 (dump_function_name): ... here. Use maybe_dump_asm_name.
13262
13263 2009-06-17 Cary Coutant <ccoutant@google.com>
13264
13265 * dbxout.c (dbxout_source_line): Add is_stmt parameter.
13266 Change caller.
13267 * debug.c (struct gcc_debug_hooks): Change placeholder for
13268 source_line hook.
13269 (debug_nothing_int_charstar_int): Replaced by...
13270 (debug_nothing_int_charstar_int_bool): ...this.
13271 * debug.h (struct gcc_debug_hooks): Add is_stmt parameter to
13272 source_line prototype.
13273 (debug_nothing_int_charstar_int): Replaced by...
13274 (debug_nothing_int_charstar_int_bool): ...this.
13275 * defaults.h (SUPPORTS_DISCRIMINATOR): New constant.
13276 * dwarf2out.c (dwarf2out_source_line): Add is_stmt parameter.
13277 Output is_stmt operand when necessary.
13278 * final.c (final_scan_insn): Pass is_stmt to source_line debug hook.
13279 (notice_source_line): Add is_stmt parameter.
13280 * sdbout.c (sdbout_source_line): Add is_stmt parameter.
13281 * vmsdbgout.c (vmsdbgout_source_line): Add is_stmt parameter.
13282 Change callers.
13283 * xcoffout.c (xcoffout_source_line): Add is_stmt parameter.
13284 * xcoffout.h (xcoffout_source_line): Add is_stmt parameter.
13285
13286 2009-06-17 Ian Lance Taylor <iant@google.com>
13287
13288 * expr.c (struct move_by_pieces_d): Rename from move_by_pieces.
13289 Change all uses.
13290 (struct store_by_pieces_d): Rename from store_by_pieces. Change
13291 call uses.
13292
13293 2009-06-17 Adam Nemet <anemet@caviumnetworks.com>
13294
13295 * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS,
13296 STRIP_USELESS_TYPE_CONVERSION): Use tree_strip_nop_conversions,
13297 tree_strip_sign_nop_conversions and
13298 tree_ssa_strip_useless_type_conversions rather than stripping
13299 the operations here.
13300 (tree_strip_nop_conversions, tree_strip_sign_nop_conversions):
13301 Declare them.
13302 * gimple.h (tree_ssa_strip_useless_type_conversions): Declare it.
13303 * tree-ssa.c (tree_ssa_strip_useless_type_conversions): New function.
13304 * tree.c (tree_nop_conversion, tree_sign_nop_conversion,
13305 tree_strip_nop_conversions, tree_strip_sign_nop_conversions): New
13306 functions.
13307
13308 2009-06-17 Michael Eager <eager@eagercon.com>
13309
13310 * config/rs6000/constraints.md (register_constraint "d"): New.
13311 * config/rs6000/dfp.md (movsd_store, extendsddd2, extendsdtd2,
13312 truncddsd2, *negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
13313 *movdd_hardfloat32, *movdd_hardfloat64_mfpgpr, *movdd_hardfloat64,
13314 *negtd2_fp, *abstd2_fpr, *nabstd2_fpr, *movtd_internal, extendddtd2,
13315 trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
13316 divtd3, *cmpdd_internal1, *cmptd_internal1, floatditd2, ftruncdd2,
13317 fixdddi2, ftrunctd2, fixtddi2): replace 'f' constraint with 'd'
13318 * config/rs6000/ppu_intrinsics.h (__mffs, __mtfsf, __mtfsfi, __fabs,
13319 __fnabs, __fmadd, __fmsub, __fnmadd, __fnmsub, __fsel, __frsqrte,
13320 __fsqrt, __fmul, __fmuls, __frsp, __fcfid, __fctid, __fctidz, __fctiw,
13321 __fctiwz): Same.
13322 * config/rs6000/rs6000.md (*extendsfdf2_fpr, *truncdfsf2_fpr,
13323 *fseldfsf4, *negdf2_fpr, *absdf2_fpr, *nabsdf2_fpr, *adddf3_fpr,
13324 *subdf3_fpr, *muldf3_fpr, *divdf3_fpr, recipdf3, fred, sqrtdf2,
13325 *fseldfdf4, *fselsfdf4, *floatsidf2_internal, *floatunssidf2_internal,
13326 *fix_truncdfsi2_internal, fix_truncdfsi2_internal_gfxopt,
13327 fix_truncdfsi2_mfpgpr, fctiwz, btruncdf2, ceildf2, floordf2, rounddf2,
13328 stfiwx, floatdidf2, fix_truncdfdi2, floatdisf2_internal1,
13329 *movdf_hardfloat32, *movdf_hardfloat64_mfpgpr, *movdf_hardfloat64,
13330 *movtf_internal, *extenddftf2_internal, trunctfdf2_internal1,
13331 trunctfdf2_internal2, trunctfsf2_fprs, fix_trunc_helper,
13332 *fix_trunctfsi2_internal, negtf2_internal, *movdi_internal32,
13333 *movdi_mfpgpr, *movdi_internal64, *movdf_update1, *movdf_update2,
13334 *cmpdf_internal1, *cmptf_internal1, *cmptf_internal2): Same.
13335 * doc/md.texi: Describe PowerPC 'd' constraint, update 'f' constraint.
13336
13337 2009-06-16 Ian Lance Taylor <iant@google.com>
13338
13339 * profile.c (total_num_never_executed): Don't define.
13340 (compute_branch_probabilities): Don't count or print
13341 num_never_executed.
13342 (init_branch_prob): Don't set total_num_never_executed.
13343 (end_branch_prob): Don't print total_num_never_executed.
13344
13345 2009-06-17 David Daney <ddaney@caviumnetworks.com>
13346
13347 * jump.c (cleanup_barriers): Handle case of no insns before a barrier.
13348
13349 2009-06-17 David Edelsohn <edelsohn@gnu.org>
13350
13351 * config/rs6000/dfp.md (nabsdd2_fpr): Correct mode.
13352 (nabstd2_fpr): Same.
13353
13354 2009-06-17 Steve Ellcey <sje@cup.hp.com>
13355
13356 * expr.c (expand_assignment): Change complex type check.
13357
13358 2009-06-17 Basile Starynkevitch <basile@starynkevitch.net>
13359
13360 * doc/plugins.texi (Building GCC plugins): Added new section.
13361
13362 2009-06-17 Ian Lance Taylor <iant@google.com>
13363
13364 * c-pch.c (get_ident): Don't set size of templ array.
13365 (pch_init): Don't set size of partial_pch array.
13366
13367 * c-typeck.c (digest_init): If -Wc++-compat, warn about using a
13368 string constant to intialize an array whose size is the length of
13369 the string.
13370
13371 2009-06-17 Richard Guenther <rguenther@suse.de>
13372
13373 PR tree-optimization/40389
13374 * tree-ssa-structalias.c (handle_rhs_call): Restrict NRV case
13375 to addressable types.
13376 * gimple.c (walk_stmt_load_store_addr_ops): Likewise.
13377
13378 2009-06-17 Richard Guenther <rguenther@suse.de>
13379
13380 PR middle-end/40460
13381 * tree-chrec.h (build_polynomial_chrec): If we cannot determine
13382 if there is no evolution of left in the loop bail out.
13383 * tree-chrec.c (chrec_fold_multiply_poly_poly): CSE one
13384 chrec_fold_multiply.
13385
13386 2009-06-16 J"orn Rennecke <joern.rennecke@arc.com>
13387 Janis Johnson <janis187@us.ibm.com>
13388
13389 PR target/39254
13390 * config/rs6000/rs6000.c (rs6000_emit_move): Don't emit a USE
13391 for the symbol ref of a constant that is the source of a move
13392 - nor for any other not-obvious-label-ref constants.
13393
13394 2009-06-16 Olatunji Ruwase <tjruwase@google.com>
13395
13396 * plugin.c (position_pass): Skip newly inserted pass during list
13397 traversal to avoid repeated insertion.
13398
13399 2009-06-16 Ian Lance Taylor <iant@google.com>
13400
13401 * vec.h (VEC_stack_alloc): Define different version if
13402 GATHER_STATISTICS is defined, to accept and ignore MEM_STAT.
13403 (DEF_VEC_ALLOC_FUNC_P_STACK): Remove MEM_STAT_DECL.
13404 (DEF_VEC_ALLOC_FUNC_O_STACK): Likewise.
13405 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
13406
13407 2009-06-16 H.J. Lu <hongjiu.lu@intel.com>
13408
13409 * config.gcc (extra_headers): Add ia32intrin.h for x86.
13410
13411 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_BSRSI,
13412 IX86_BUILTIN_BSRDI. IX86_BUILTIN_RDPMC, IX86_BUILTIN_RDTSC.
13413 IX86_BUILTIN_RDTSCP. IX86_BUILTIN_ROLQI, IX86_BUILTIN_ROLHI,
13414 IX86_BUILTIN_RORQI and IX86_BUILTIN_RORHI.
13415 (ix86_special_builtin_type): Add UINT64_FTYPE_VOID,
13416 UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
13417 INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
13418 (bdesc_special_args): Add __builtin_ia32_rdtsc and
13419 __builtin_ia32_rdtscp.
13420 (bdesc_args): Add __builtin_ia32_bsrsi, __builtin_ia32_bsrdi,
13421 __builtin_ia32_rolqi, __builtin_ia32_rolhi, __builtin_ia32_rorqi
13422 and __builtin_ia32_rorhi.
13423 (ix86_init_mmx_sse_builtins): Handle UINT64_FTYPE_VOID,
13424 UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
13425 INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
13426 (ix86_expand_args_builtin): Likewise.
13427 (ix86_expand_special_args_builtin): Likewise.
13428
13429 * config/i386/i386.md (UNSPECV_RDTSCP): New.
13430 (UNSPECV_RDTSC): Likewise.
13431 (UNSPECV_RDPMC): Likewise.
13432 (*bsr): Renamed to ...
13433 (bsr): This
13434 (*bsr_rex64): Renamed to ...
13435 (bsr_rex64): This.
13436 (rdpmc): New.
13437 (*rdpmc): Likewise.
13438 (*rdpmc_rex64): Likewise.
13439 (rdtsc): Likewise.
13440 (*rdtsc): Likewise.
13441 (*rdtsc_rex64): Likewise.
13442 (rdtscp): Likewise.
13443 (*rdtscp): Likewise.
13444 (*rdtscp_rex64): Likewise.
13445
13446 * config/i386/ia32intrin.h: New.
13447
13448 * config/i386/x86intrin.h: Include <ia32intrin.h>.
13449
13450 2009-06-16 Ian Lance Taylor <iant@google.com>
13451
13452 * ira-build.c (copy_info_to_removed_store_destinations):
13453 Initialize parent_a.
13454
13455 2009-06-16 Ian Lance Taylor <iant@google.com>
13456
13457 * c-decl.c (grokdeclarator): Change size_varies to bool.
13458
13459 2009-06-16 Ian Lance Taylor <iant@google.com>
13460
13461 * sel-sched.c: Make forward declarations of move_op_hooks and
13462 fur_hooks explicitly extern.
13463
13464 2009-06-16 Ian Lance Taylor <iant@google.com>
13465
13466 * df-problems.c (df_byte_lr_alloc): Don't set problem_data to itself.
13467 * vec.c (vec_gc_o_reserve_1): Don't set alloc to itself.
13468
13469 2009-06-16 Ian Lance Taylor <iant@google.com>
13470
13471 * resource.c (mark_referenced_resources): Change
13472 include_delayed_effects parameter to bool. Change all callers.
13473 (mark_end_of_function_resources): Likewise.
13474 * reorg.c (insn_references_resource_p): Likewise.
13475 (insn_sets_resource_p): Likewise.
13476 * resource.h (mark_referenced_resources): Update declaration.
13477 (mark_end_of_function_resources): Update declaration.
13478
13479 2009-06-16 David Edelsohn <edelsohn@gnu.org>
13480
13481 * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove -lstdc++.
13482
13483 2009-06-16 David Edelsohn <edelsohn@gnu.org>
13484
13485 * doc/install.texi (*-*-aix): Update explanation of XLC bootstrap.
13486 GCC can bootstrap on AIX with GNU Binutils 2.20.
13487
13488 2009-06-16 Ian Lance Taylor <iant@google.com>
13489
13490 * Makefile.in (tree-vect-stmts.o): Depend upon $(TOPLEV_H).
13491
13492 2009-06-16 Ian Lance Taylor <iant@google.com>
13493
13494 * toplev.h (floor_log2): If GCC_VERSION >= 3004, declare as static
13495 inline, not extern inline.
13496 (exact_log2): Likewise.
13497 * toplev.c (floor_log2): Only define if GCC_VERSION < 3004. Don't
13498 test CLZ_HWI.
13499 (exact_log2): Likewise, but don't test CTZ_HWI.
13500
13501 2009-06-16 Ian Lance Taylor <iant@google.com>
13502
13503 * bitmap.c (bitmap_clear): Don't declare as inline.
13504 * gimple.c (gimplify_assign): Likewise.
13505 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
13506 * haifa-sched.c (insn_cost): Don't declare with HAIFA_INLINE.
13507 (sched_scan_info): Remove duplicate definition.
13508
13509 2009-06-16 Ian Lance Taylor <iant@google.com>
13510
13511 * c-common.c (skip_evaluation): Don't define.
13512 (c_inhibit_evaluation_warnings): Define global variable.
13513 (overflow_warning): Check c_inhibit_evaluation_warnings rather
13514 than skip_evaluation.
13515 (convert_and_check, warn_for_div_by_zero): Likewise.
13516 * c-common.h (skip_evaluation): Don't declare.
13517 (c_inhibit_evaluation_warnings): Declare.
13518 * c-parser.c (c_parser_typeof_specifier): Set
13519 c_inhibit_evaluation_warnings rather than skip_evaluation.
13520 (c_parser_conditional_expression): Likewise.
13521 (c_parser_binary_expression): Likewise.
13522 (c_parser_sizeof_expression): Likewise.
13523 (c_parser_alignof_expression): Likewise.
13524 * c-typeck.c (build_indirect_ref): Check
13525 c_inhibit_evaluation_warnings rather than skip_evaluation.
13526 (build_conditional_expr, build_binary_op): Likewise.
13527
13528 2009-06-16 Richard Guenther <rguenther@suse.de>
13529
13530 * tree-ssa-alias.c (is_escape_site): Remove.
13531 * tree-ssa-alias.h (enum escape_type): Remove.
13532 (is_escape_site): Likewise.
13533 * tree-ssa-structalias.c (find_func_aliases): Handle escapes
13534 via casts and asms without deferring to is_escape_site.
13535
13536 2009-06-16 Jakub Jelinek <jakub@redhat.com>
13537
13538 PR middle-end/40446
13539 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: Don't
13540 use gen_lowpart if op0 has complex mode.
13541
13542 2009-06-16 Richard Guenther <rguenther@suse.de>
13543
13544 * tree-ssa-structalias.c (do_ds_constraint): Stores in global
13545 variables add them to ESCAPED.
13546 (find_func_aliases): Do not make all indirectly stored values escaped.
13547
13548 2009-06-16 Rafael Avila de Espindola <espindola@google.com>
13549
13550 * config/i386/winnt.c (i386_pe_encode_section_info): Update call to
13551 make_decl_one_only.
13552
13553 2009-06-16 Martin Jambor <mjambor@suse.cz>
13554
13555 PR tree-optimization/40432
13556 * tree-sra.c (sra_modify_assign): When creating VIEW_CONVERT_EXPR,
13557 check whether we need to force gimple register operand.
13558
13559 2009-06-16 Martin Jambor <mjambor@suse.cz>
13560
13561 PR tree-optimization/40413
13562 * tree-sra.c (load_assign_lhs_subreplacements): Pass offset to
13563 build_ref_for_offset.
13564 (propagate_subacesses_accross_link): Fix a typo in a comment.
13565
13566 2009-06-16 Ira Rosen <irar@il.ibm.com>
13567
13568 * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
13569 with additional parameter.
13570 * tree-vectorizer.h (enum vect_def_type): Add new value
13571 vect_nested_cycle.
13572 (enum vect_relevant): Add comments.
13573 (vect_is_simple_reduction): Add new argument.
13574 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Add comments.
13575 Detect nested cycles.
13576 (vect_is_simple_reduction): Update documentation, add an argument to
13577 distinguish inner-loop reduction from nested cycle, detect nested
13578 cycles, fix printings and indentation, don't swap operands in case
13579 of nested cycle.
13580 (get_initial_def_for_reduction): Handle subtraction.
13581 (vect_create_epilog_for_reduction): Add new argument to specify
13582 reduction variable.
13583 (vect_finalize_reduction): Handle subtraction, fix comments.
13584 (vectorizable_reduction): Handle nested cycles. In case of nested
13585 cycle keep track of the reduction variable position. Call
13586 vect_is_simple_reduction with additional parameter. Use original
13587 statement code in reduction epilogue for nested cycle. Call
13588 vect_create_epilog_for_reduction with additional parameter.
13589 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Assert
13590 inner-loop vectorization.
13591 (vect_recog_widen_sum_pattern): Likewise.
13592 * tree-vect-stmts.c (process_use): Distinguish between nested cycles
13593 and reductions.
13594 (vect_mark_stmts_to_be_vectorized): Likewise.
13595 (vect_get_vec_def_for_operand): Handle nested cycles.
13596
13597 2009-06-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13598
13599 * doc/invoke.texi (Debugging Options): Fix option index entries
13600 for -fdump-statistics, -frandom-seed add entries for
13601 -fdump-tree-original, -fdump-tree-optimized, -frandom-seed.
13602 (FRV Options): Fix entries for -mTLS, -mtls.
13603 (HPPA Options): Fix entries for -mgnu-ld, -mhp-ld.
13604 (i386 and x86-64 Options): Fix entry for -mno-red-zone.
13605 (M68hc1x Options): Fix @itemx for -mnominmax.
13606 (MCore Options): Fix entry for -mno-lsim.
13607 (MMIX Options): Fix entry for -mabi=mmixware.
13608 (PDP-11 Options): Fix entry for -mbcopy-builtin.
13609
13610 2009-06-16 Basile Starynkevitch <basile@starynkevitch.net>
13611
13612 * doc/plugins.texi (Interacting with the GCC Garbage Collector):
13613 Mention the plugin mode of gengtype.
13614 * doc/gty.texi (Source Files Containing Type Information): Likewise.
13615 * gengtype.c: Updated copyright.
13616 (plugin_files, nb_plugin_files) Added new static variables.
13617 (measure_input_list) Care about plugin_files.
13618 (write_rtx_next): Added early return in plugin mode.
13619 (create_file): Updated copyright year in generated file. Added
13620 asserts.
13621 (oprintf): Added early return if NULL outf.
13622 (get_output_file_with_visibility): Care of plugin_files.
13623 (get_output_file_name): May return null.
13624 (write_local): Added early return.
13625 (put_mangled_filename): Ditto.
13626 (finish_root_table): Added check for base_files.
13627 (write_roots): Care about null when plugins.
13628 (main): Added plugin mode.
13629
13630 2009-06-15 Ian Lance Taylor <iant@google.com>
13631
13632 * df-problems.c (df_simulate_one_insn_forwards): Fix braces in switch.
13633 * gcov.c (read_count_file): Add braces around variables declared
13634 before label.
13635
13636 * c.opt (Wjump-misses-init): New warning.
13637 * c-opts.c (c_common_handle_option): Set warn_jump_misses_init for
13638 -Wall and -Wc++-compat if not already set.
13639 (c_common_post_options): Clear warn_jump_misses_init if it was not
13640 set.
13641 * c-decl.c (struct c_binding): Change type field to a union with
13642 new label field. Make it the first field in the struct. Update
13643 references to type to use u.type instead.
13644 (struct c_spot_bindings): Define.
13645 (struct c_goto_bindings): Define.
13646 (c_goto_bindings_p): Define, along with VECs.
13647 (struct c_label_vars): Define.
13648 (struct c_scope): Add has_label_bindings field.
13649 (bind_label, set_spot_bindings): New static functions.
13650 (decl_jump_unsafe, update_spot_bindings): New static functions.
13651 (update_label_decls): New static function.
13652 (pop_scope): Call update_label_decls. Don't call c_end_vm_scope.
13653 Update binding u.label field to shadowed field.
13654 (c_binding_start_stmt_expr): New function.
13655 (c_binding_end_stmt_expr): New function.
13656 (pushdecl): Don't call c_begin_vm_scope.
13657 (make_label): Add defining and p_label_vars parameters. Change
13658 all callers.
13659 (lookup_label): Correct test for whether a label has not yet been
13660 defined. Call bind_label rather than bind.
13661 (warn_about_goto): New static function.
13662 (lookup_label_for_goto): New function.
13663 (declare_label): Call bind_label rather than bind.
13664 (check_earlier_gotos): New static function.
13665 (define_label): Don't give errors about jumping into statement
13666 expressions or scopes of variably modified types. Call
13667 set_spot_bindings and check_earlier_gotos. Call bind_label
13668 instead of bind. Don't set label_context_stack_se or
13669 label_context_stack_vm.
13670 (c_get_switch_bindings): New function.
13671 (c_release_switch_bindings): New function.
13672 (c_check_switch_jump_warnings): New function.
13673 (start_function): Don't set label_context_stack_se or
13674 label_context_stack_vm.
13675 (finish_function): Likewise.
13676 * c-typeck.c (label_context_stack_se): Don't define.
13677 (label_context_stack_vm): Don't define.
13678 (c_finish_goto_label): Call lookup_label_for_goto rather than
13679 lookup_label. Don't give errors about jumping into a statement
13680 expression or the scope of a variably modified type. Don't set
13681 label_context_stack_se or label_context_stack_vm.
13682 (struct c_switch): Remove blocked_stmt_expr and blocked_vm
13683 fields. Add bindings field.
13684 (c_start_case): Don't set deleted fields. Set bindings field.
13685 (do_case): Rework order of tests. Don't check blocked_stmt_expr
13686 or blocked_vm. Call c_check_switch_jump_warnings.
13687 (c_finish_case): Don't test blocked_stmt_expr field. Call
13688 c_release_switch_bindings.
13689 (c_begin_stmt_expr): Don't increment blocked_stmt_expr in
13690 c_switch_stack. Don't walk label_context_stack_se labels. Don't
13691 set label_context_stack_se. Call c_bindings_start_stmt_expr.
13692 (c_finish_stmt_expr): Don't decrement blocked_stmt_expr in
13693 c_switch_stack. Don't walk label_context_stack_se labels. Don't
13694 set label_context_stack_se. Call c_bindings_end_stmt_expr.
13695 (c_begin_vm_scope, c_end_vm_scope): Don't define.
13696 * c-tree.h (C_DECL_UNJUMPABLE_STMT_EXPR): Don't define.
13697 (C_DECL_UNDEFINABLE_STMT_EXPR): Don't define.
13698 (C_DECL_UNJUMPABLE_VM): Don't define.
13699 (C_DECL_UNDEFINABLE_VM): Don't define.
13700 (struct c_label_list): Don't define.
13701 (struct c_label_context_se): Don't define.
13702 (struct c_label_context_vm): Don't define.
13703 (struct c_spot_bindings): Declare.
13704 (c_bindings_start_stmt_expr): Declare.
13705 (c_bindings_end_stmt_expr): Declare.
13706 (lookup_label_for_goto): Declare.
13707 (c_get_switch_bindings, c_release_switch_bindings): Declare.
13708 (c_check_switch_jump_warnings): Declare.
13709 (label_context_stack_se, label_context_stack_vm): Don't declare.
13710 (c_finish_goto_label): Update declaration.
13711 (c_begin_vm_scope, c_end_vm_scope): Don't declare.
13712 * doc/invoke.texi (Option Summary): Mention -Wjump-misses-init.
13713 (Warning Options): Document -Wjump-misses-init.
13714
13715 2009-06-15 Jakub Jelinek <jakub@redhat.com>
13716
13717 * tree-object-size.c (addr_object_size): Fix a pasto in the last
13718 change.
13719
13720 2009-06-15 Rafael Avila de Espindola <espindola@google.com>
13721
13722 * cgraph.c (cgraph_make_node_local): Use DECL_COMDAT_GROUP.
13723
13724 2009-06-15 Aldy Hernandez <aldyh@redhat.com>
13725
13726 * except.c (init_eh): Use BUILTINS_LOCATION when calling build_decl.
13727
13728 2009-06-15 Aldy Hernandez <aldyh@redhat.com>
13729
13730 * tree-eh.c (lower_try_finally_switch): Initialize tf_loc.
13731
13732 2009-06-15 Rafael Avila de Espindola <espindola@google.com>
13733
13734 * cgraphunit.c (cgraph_function_versioning,save_inline_function_body):
13735 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
13736 * cgraph.c (cgraph_create_virtual_clone): Use DECL_COMDAT_GROUP.
13737 * config/i386/i386.c (ix86_file_end): Compute DECL_COMDAT_GROUP.
13738 * dwarf2asm.c (dw2_force_const_mem): Update call to
13739 make_decl_one_only.
13740 * langhooks-def.h (lhd_comdat_group, LANG_HOOKS_COMDAT_GROUP): Remove.
13741 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_COMDAT_GROUP.
13742 * langhooks.c (lhd_comdat_group): Remove.
13743 * langhooks.h (lang_hooks_for_decls): Remove comdat_group.
13744 * tree.h (DECL_COMDAT_GROUP): New.
13745 (DECL_ONE_ONLY): Use DECL_COMDAT_GROUP.
13746 (tree_decl_with_vis): Add comdat_group. Remove one_only.
13747 (make_decl_one_only): Change signature.
13748 * varasm.c (get_emutls_init_templ_addr, emutls_decl): Update call to
13749 make_decl_one_only.
13750 (make_decl_one_only): Change signature.
13751 (default_elf_asm_named_section): Use DECL_COMDAT_GROUP.
13752
13753 2009-06-15 Richard Guenther <rguenther@suse.de>
13754
13755 PR middle-end/40439
13756 * tree.c (widest_int_cst_value): Fix bootstrap on 32bit HWI hosts.
13757
13758 2009-06-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13759
13760 * tree-ssa-math-opts.c: Remove extra divide.
13761
13762 2009-06-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13763
13764 * config/s390/s390.md ("bswap<mode>2"): Only available on z900.
13765
13766 2009-06-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13767
13768 * passes.c: Add bswap pass.
13769 * tree-pass.h: Add pass_optimize_bswap declaration.
13770 * tree-ssa-math-opts.c: Include diagnostics.h for print_gimple_stmt.
13771 Include rtl.h, expr.h and optabs.h for optab_handler check.
13772 (struct symbolic_number, pass_optimize_bswap): New definition.
13773 (do_shift_rotate, verify_symbolic_number_p): New functions.
13774 (find_bswap_1, find_bswap, execute_optimize_bswap): New functions.
13775 (gate_optimize_bswap): New function.
13776 * tree.c (widest_int_cst_value): New function.
13777 * tree.h (widest_int_cst_value): Prototype added.
13778
13779 2009-06-14 Steven Bosscher <steven@gcc.gnu.org>
13780
13781 * cfgcleanup.c (old_insns_match_p): Remove code to substitute
13782 REG_EQUAL/REG_EQUIV notes.
13783
13784 2009-06-14 Richard Guenther <rguenther@suse.de>
13785
13786 PR middle-end/40389
13787 * gimple.c (walk_stmt_load_store_addr_ops): The LHS of a call
13788 has its address taken if NRV was applied and it is addressable.
13789 * tree-ssa-structalias.c (get_constraint_for_address_of): New
13790 function split out from ...
13791 (get_constraint_for_1): ... here.
13792 (handle_rhs_call): Use it to mark the return slot escaped if
13793 it is addressable and NRV was applied.
13794
13795 2009-06-13 Aldy Hernandez <aldyh@redhat.com>
13796
13797 * config/rs6000/rs6000-protos.h (altivec_resolve_overloaded_builtin):
13798 Change first argument type to location_t.
13799 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Same.
13800 Do not set input_location.
13801 Use loc instead of input_location throughout.
13802
13803 2009-06-13 Richard Guenther <rguenther@suse.de>
13804
13805 PR tree-optimization/40421
13806 * tree-predcom.c (should_unroll_loop_p): Remove.
13807 (tree_predictive_commoning_loop): Use can_unroll_loop_p.
13808
13809 2009-06-13 Michael Meissner <meissner@linux.vnet.ibm.com>
13810
13811 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
13812 Add location argument.
13813
13814 2009-06-13 Aldy Hernandez <aldyh@redhat.com>
13815
13816 * config/alpha/alpha.c (alpha_build_builtin_va_list): Pass location to
13817 build_decl.
13818 * config/s390/s390.c (s390_build_builtin_va_list): Same.
13819 (s390_gimplify_va_arg): Pass location to create_artificial_label.
13820 * config/spu/spu-protos.h: Add location to
13821 spu_resolve_overloaded_builtin.
13822 * config/spu/spu.c (spu_build_builtin_va_list): Pass location to
13823 spu_build_builtin_va_list.
13824 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Add location
13825 argument. Pass location to build_function_call_vec.
13826 * config/sh/sh.c (sh_build_builtin_va_list): Pass location to
13827 build_decl.
13828 (emit_fpu_switch): Same.
13829 (sh_gimplify_va_arg_expr): Pass location to create_artificial_label.
13830 * config/xtensa/xtensa.c (xtensa_build_builtin_va_list): Pass location
13831 to build_decl and create_artificial_label.
13832 (xtensa_gimplify_va_arg_expr): Same.
13833 * config/stormy16/stormy16.c (xstormy16_build_builtin_va_list): Same.
13834 (xstormy16_gimplify_va_arg_expr): Same.
13835 * config/iq2000/iq2000.c (iq2000_expand_prologue): Same.
13836 * config/arm/arm.c (arm_build_builtin_va_list): Same.
13837 * config/mips/mips.c (mips_build_builtin_va_list): Same.
13838 (mips16_build_function_stub): Same.
13839 (mips16_build_call_stub): Same.
13840
13841 2009-06-13 Richard Earnshaw <rearnsha@arm.com>
13842
13843 PR target/40327
13844 * arm/constraints.md (Pa, Pb): New constraints.
13845 * arm/arm.md (thumb1_addsi3): Support more complex additions. Add a
13846 split pattern to deal with them.
13847
13848 2009-06-13 Joerg Sonnenberger <joerg@britannica.bec.de>
13849
13850 * doc/invoke.texi: Add missing option -Wp,OPTION in list,
13851 fix index entry for -Xpreprocessor.
13852
13853 2009-06-12 Aldy Hernandez <aldyh@redhat.com>
13854
13855 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
13856 Add location argument to build_decl call.
13857 * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Same.
13858 (rs6000_init_builtins): Same.
13859 (spe_init_builtins): Same.
13860 (rs6000_gimplify_va_arg): Add location argument to
13861 create_artificial_label call.
13862
13863 2009-06-12 Steven Bosscher <steven@gcc.gnu.org>
13864
13865 * timevar.def (TV_COMBINE_STACK_ADJUST): New timevar.
13866 * combine-stack-adj.c (pass_stack_adjustments): Use it.
13867 * Makefile.in: Fix GGC dependency for gcse.o.
13868
13869 2009-06-12 Aldy Hernandez <aldyh@redhat.com>
13870
13871 * tree-pretty-print.c (dump_generic_node): Dump column numbers.
13872 * gimple-pretty-print.c (dump_gimple_stmt): Same.
13873 * gimplify.c (gimplify_modify_expr): Set location for GIMPLE_ASSIGNs
13874 created.
13875 * c-parser.c (c_parser_binary_expression): Use current column while
13876 building binary operations.
13877 * common.opt (fshow-column): Enable by default.
13878 * tree-vrp.c (check_array_ref): Use warning_at.
13879 (check_array_bounds): Use location from call back if expr has no
13880 location.
13881 * tree.h: Add location argument to maybe_fold_*.
13882 * tree-ssa-ccp.c (ccp_fold): Pass location to maybe_fold_*.
13883 (maybe_fold_offset_to_array_ref): Add location argument and use it.
13884 (maybe_fold_offset_to_component_ref): Same.
13885 (maybe_fold_offset_to_reference): Same.
13886 (maybe_fold_offset_to_address): Same.
13887 (maybe_fold_stmt_indirect): Same.
13888 (maybe_fold_stmt_addition): Same.
13889 (fold_stmt_r): Pass location to maybe_fold_*.
13890 (fold_gimple_assign): Same.
13891 * c-tree.h: Add location argument to finish_decl,
13892 default_function_array_conversion, store_init_value.
13893 * c-decl.c (define_label): Use error_at.
13894 (c_make_fname_decl): Pass location to finish_decl.
13895 (finish_decl): New location argument.
13896 (build_compound_literal): Pass location to store_init_value.
13897 (grokdeclarator): Pass location to finish_decl.
13898 (grokfield): Same.
13899 * c-typeck.c (array_to_pointer_conversion): New location argument.
13900 (function_to_pointer_conversion): Same.
13901 (default_function_array_conversion): Same.
13902 (parser_build_unary_op): Pass location to overflow_warning.
13903 (parser_build_binary_op): Same. Use warning_at.
13904 (build_unary_op): Pass location to array_to_pointer_conversion.
13905 (build_c_cast): Pass location to digest_init.
13906 (build_modify_expr): New location argument.
13907 (convert_for_assignment): Same.
13908 (store_init_value): Same.
13909 (digest_init): Same.
13910 (output_init_element): Pass location to digest_init and
13911 array_to_pointer_conversion.
13912 (c_finish_return): Pass location to convert_for_assignment.
13913 * gimplify.c (gimplify_conversion): Pass location to
13914 maybe_fold_offset_to_address.
13915 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Pass location
13916 to maybe_fold_stmt_addition.
13917 * c-omp.c (c_finish_omp_atomic): Pass new location to
13918 build_modify_expr.
13919 (c_finish_omp_for): Same.
13920 * c-common.c (overflow_warning): New argument.
13921 * c-common.h: New argument to build_modify_expr, overflow_warning.
13922 * c-parser.c (c_parser_declaration_or_fndef): Pass location to
13923 finish_decl.
13924 (c_parser_initializer): Pass location to
13925 default_function_array_conversion.
13926 (c_parser_initelt): Same.
13927 (c_parser_initval): Same.
13928 (c_parser_asm_operands): Same.
13929 (c_parser_expr_no_commas): Same. Pass location to build_modify_expr.
13930 (c_parser_conditional_expression): Same.
13931 (c_parser_binary_expression): Add location info to stack. Use it.
13932 (c_parser_unary_expression): Pass location to
13933 default_function_array_conversion, parser_build_unary_op,
13934 build_indirect_ref, c_parser_postfix_expression_after_primary.
13935 (c_parser_postfix_expression_after_primary): New location argument.
13936 Use it.
13937 (c_parser_expression_conv): Pass location to
13938 default_function_array_conversion.
13939 (c_parser_expr_list): Same.
13940 (c_parser_omp_atomic): Same.
13941 (c_parser_omp_for_loop): Same.
13942 * c-tree.h: (struct c_declarator): Add comment to id_loc.
13943 (build_array_declarator): New argument.
13944 * c-decl.c (build_array_declarator): Add location argument.
13945 (grokdeclarator): Set id_loc for cdk_array.
13946 * c-parser.c (c_parser_direct_declarator_inner): Pass location to
13947 build_array_declarator.
13948 * tree.c (build_omp_clause): Add location argument.
13949 * tree.h (OMP_CLAUSE_HAS_LOCATION): New macro.
13950 (OMP_CLAUSE_LOCATION): New macro.
13951 (struct tree_omp_clause): Add location field.
13952 (build_omp_clause): Add argument.
13953 * testsuite/gcc.dg/gomp/for-1.c: Fix column.
13954 * cp/pt.c (tsubst_omp_for_iterator): Pass location to
13955 build_omp_clause.
13956 * cp/parser.c (cp_parser_omp_var_list_no_open): Same.
13957 (cp_parser_omp_clause_collapse): Same.
13958 (cp_parser_omp_clause_default): Same.
13959 (cp_parser_omp_clause_if): Same.
13960 (cp_parser_omp_clause_nowait): Same.
13961 (cp_parser_omp_clause_num_threads): Same.
13962 (cp_parser_omp_clause_ordered): Same.
13963 (cp_parser_omp_clause_schedule): Same.
13964 (cp_parser_omp_clause_untied): Same.
13965 (cp_parser_omp_for_loop): Same.
13966 (cp_parser_omp_parallel): Pass location to c_split_parallel_clauses.
13967 * c-tree.h (c_start_case): Add location argument.
13968 (c_process_expr_stmt): Same.
13969 (c_finish_goto_*): Same.
13970 * tree-parloops.c (initialize_reductions): Pass location to
13971 build_omp_clause.
13972 (create_parallel_loop): Same.
13973 * fortran/trans-openmp.c (gfc_trans_omp_variable_list): Same.
13974 (gfc_trans_omp_reduction_list): Same.
13975 (gfc_trans_omp_clauses): Same.
13976 (gfc_trans_omp_do): Same.
13977 * c-typeck.c (c_finish_goto_label): Same.
13978 (c_finish_goto_ptr): New location argument.
13979 (c_start_case): Same.
13980 (emit_side_effect_warnings): Same.
13981 (c_process_expr_stmt): Same.
13982 (c_finish_stmt_expr): Same.
13983 (c_finish_omp_clauses): Use error_at instead of error.
13984 * gimplify.c (gimplify_adjust_omp_clauses_1): Pass location to
13985 build_omp_clause.
13986 * c-omp.c (c_split_parallel_clauses): New location argument.
13987 * tree-nested.c (convert_nonlocal_reference_stmt): Pass location
13988 to build_omp_clause.
13989 (convert_local_reference_stmt): Same.
13990 (convert_gimple_call): Same.
13991 * c-common.h (c_split_parallel_clauses): New argument.
13992 * c-parser.c (c_parser_statement_after_labels): Pass location to
13993 c_finish_goto_label.
13994 (c_parser_switch_statement): Pass location to c_start_case.
13995 (c_parser_for_statement): Pass location to c_finish_expr_stmt,
13996 and c_process_expr_stmt.
13997 (c_parser_omp_variable_list): Add location argument.
13998 (c_parser_omp_clause_collapse): Pass location to build_omp_clause.
13999 (c_parser_omp_clause_default): Same.
14000 (c_parser_omp_clause_if): Same.
14001 (c_parser_omp_clause_num_threads): Same.
14002 (-c_parser_omp_clause_ordered): Same.
14003 (c_parser_omp_clause_reduction): Pass location to
14004 c_parser_omp_variable_list.
14005 (c_parser_omp_clause_schedule): Pass location to build_omp_clause.
14006 (c_parser_omp_clause_untied): Same.
14007 (c_parser_omp_for_loop): Pass location to c_process_expr_stmt.
14008 (c_parser_omp_parallel): Pass location to c_split_parallel_clauses.
14009
14010 * c-tree.h (check_for_loop_decls, undeclared_variable,
14011 build_component_ref, build_array_ref, build_external_ref,
14012 c_expr_sizeof_expr, c_expr_sizeof_type, parser_build_unary_op,
14013 build_conditional_expr, build_compound_expr, c_cast_expr,
14014 build_c_cast, build_asm_expr, c_end_compound_stmt, c_finish_stmt_expr,
14015 c_finish_return, c_finish_omp_parallel, c_finish_omp_task): New
14016 argument.
14017 * c-semantics.c (build_stmt): Same.
14018 (build_case_label): Same.
14019 * c-decl.c (c_finish_incomplete_decl): Pass location on down.
14020 (undeclared_variable): New argument.
14021 (make_label): Same.
14022 (lookup_label): Pass location on down.
14023 (define_label): Same.
14024 (finish_decl): Same.
14025 (build_compound_literal): Same.
14026 (finish_struct): Same.
14027 (finish_function): Do not set location here.
14028 (check_for_loop_decls): New argument.
14029 * tree.c (save_expr): Set location.
14030 (build_empty_stmt): New argument.
14031 * tree.h (build_empty_stmt): New argument to build_empty_stmt.
14032 (CAN_HAVE_LOCATION_P): Make sure we have a non empty node.
14033 * builtins.c (gimplify_va_arg_expr): Use locations.
14034 (expand_builtin_sync_operation): Same.
14035 * c-typeck.c (build_component_ref): New argument.
14036 (build_array_ref): Same.
14037 (build_external_ref): Same.
14038 (c_expr_sizeof_expr): Same.
14039 (c_expr_sizeof_type): Same.
14040 (parser_build_unary_op): Same.
14041 (build_conditional_expr): Same.
14042 (build_compound_expr): Pass location on down.
14043 (build_compound_expr): New argument.
14044 (build_c_cast): Same.
14045 (c_cast_expr): Same.
14046 (build_asm_expr): Same.
14047 (c_finish_return): Same.
14048 (c_process_expr_stmt): Pass location on down.
14049 (c_finish_stmt_expr): New argument.
14050 (push_clenaup): Same.
14051 (c_finish_omp_parallel): Same.
14052 (c_finish_omp_task): Same.
14053 * gimplify.c (gimplify_call_expr): Pass location on down.
14054 * c-omp.c (c_finish_omp_master): New argument.
14055 (c_finish_omp_critical): Same.
14056 (c_finish_omp_ordered): Same.
14057 (c_finish_omp_barrier): Same.
14058 (-c_finish_omp_taskwait): Same.
14059 (c_finish_omp_atomic): Same.
14060 (c_finish_omp_flush): Same.
14061 * tree-inline.c (copy_tree_body_r): Pass location on down.
14062 (inline_forbidden_p): Remove use of input_location.
14063 * c-gimplify.c (c_build_bind_expr): New argument.
14064 * c-common.c (c_common_truthvalue_conversion): Pass location on down.
14065 (c_sizeof_or_alignof_type): New argument.
14066 (c_alignof_expr): Same.
14067 (build_va_arg): Same.
14068 (c_add_case_label): Same.
14069 * c-common.h (c_sizeof_or_alignof_type, c_alignof_expr,
14070 c_sizeof, c_alignof, build_va_arg, build_stmt, build_case_label,
14071 c_build_bind_expr, objc_build_selector_expr, objc_build_throw_stmt,
14072 c_finish_omp_master, c_finish_omp_critical, c_finish_omp_ordered,
14073 c_finish_omp_barrier, c_finish_omp_atomic, c_finish_omp_flush,
14074 c_finish_omp_taskwait, c_finish_omp_for, c_split_parallel_clauses):
14075 New argument.
14076 * stub-objc.c (objc_build_selector_expr): Same.
14077 (objc_build_throw_stmt): Same.
14078 * c-parser.c (c_parser_declaration_or_fndef): Pass location on down.
14079 (c_parser_initelt): Same.
14080 (c_parser_compound_statement): Same.
14081 (c_parser_compound_statement_nostart): Same.
14082 (c_parser_label): Same.
14083 (c_parser_statement_after_labels): Same.
14084 (c_parser_if_body): Same.
14085 (c_parser_else_body): Same.
14086 (c_parser_if_statement): Same.
14087 (c_parser_switch_statement): Same.
14088 (c_parser_while_statement): Same.
14089 (c_parser_do_statement): Same.
14090 (c_parser_for_statement): Same.
14091 (c_parser_asm_statement): Same.
14092 (c_parser_conditional_expression): Same.
14093 (c_parser_binary_expression): Same.
14094 (c_parser_cast_expression): Same.
14095 (c_parser_unary_expression): Same.
14096 (c_parser_sizeof_expression): Same.
14097 (c_parser_alignof_expression): Same.
14098 (c_parser_postfix_expression): Same.
14099 (c_parser_expression): Same.
14100 (c_parser_objc_receiver): Same.
14101 (c_parser_omp_variable_list): Same.
14102 (c_parser_omp_structured_block): Same.
14103 (c_parser_omp_atomic): New argument.
14104 (c_parser_omp_barrier): Same.
14105 (c_parser_omp_critical): Same.
14106 (c_parser_omp_flush): Pass location on down.
14107 (c_parser_omp_for_loop): New argument.
14108 (c_parser_omp_for): Same.
14109 (c_parser_omp_master): Same.
14110 (c_parser_omp_ordered): Same.
14111 (c_parser_omp_sections_scope): Same.
14112 (c_parser_omp_sections): Same.
14113 (c_parser_omp_parallel): Same.
14114 (c_parser_omp_single): Same.
14115 (c_parser_omp_task): Same.
14116 (c_parser_omp_taskwait): Pass location on down.
14117 (c_parser_omp_construct): Same.
14118 (c_parser_omp_threadprivate): Same.
14119 * dwarf2asm.c, targhooks.c, optabs.c, tree.c, tree.h, target.h,
14120 builtins.c, omp-low.c, cgraphunit.c, tree-call-cdce.c,
14121 tree-ssa-alias.c, gimple-low.c, c-tree.h, expr.c, tree-parloops.c,
14122 c-decl.c, tree-eh.c, langhooks.c, function.c, stor-layout.c,
14123 c-typeck.c, gimplify.c, c-pragma.c, expmed.c, except.c, coverage.c,
14124 emit-rtl.c, cfgexpand.c, tree-mudflap.c, varasm.c, tree-nested.c,
14125 rtl.h, tree-inline.c, tree-profile.c, c-common.c, c-common.h,
14126 tree-switch-conversion.c, tree-cfg.c, ipa-struct-reorg.c, c-parser.c,
14127 config/i386/i386.c, stmt.c:
14128 Add location argument to the following function definitions and/or
14129 function calls: build_decl, objcp_start_struct, objcp_finish_struct,
14130 start_struct, finish_struct, PUSH_FIELD, create_artificial_label,
14131 cp_make_fname_decl, pushtag, implicitly_declare, c_make_fname_decl,
14132 build_compound_literal, parser_xref_tag, resolve_overloaded_builtin,
14133 do_case, c_finish_bc_stmt, build_compound_literal,
14134 build_function_call.
14135 * c-decl.c (build_compound_literal): Add location argument.
14136 Make all diagnostic calls use location.
14137 (start_struct): Same.
14138 (finish_struct): Same.
14139 (start_enum): Same.
14140 (build_enumerator): Same.
14141 (start_function): Same.
14142 (grokdeclarator): Make all diagnostic calls use location.
14143 (store_parm_decls_oldstyle): Same.
14144 * c-typeck.c (build_function_call): Add location argument.
14145 Make all diagnostic calls use location.
14146 (do_case): Same.
14147 (c_finish_bc_stmt): Same.
14148 * tree-nested.c (get_trampoline_type): Add argument.
14149 Pass location to build_decl.
14150 (lookup_tramp_for_decl): Pass location to get_trampoline_type.
14151 * rtl.h (RTL_LOCATION): New.
14152 * c-common.c (c_add_case_label): Add location argument.
14153 Make all diagnostic calls use location.
14154 * c-common.h: Add location argument to make_fname_decl, do_case,
14155 c_add_case_label, build_function_call, resolve_overloaded_builtin.
14156 * c-parser.c (c_parser_enum_specifier): Rename ident_loc to enum_loc.
14157 Set it appropriately for every case. Pass enum_loc to start_enum
14158 call. Pass value_loc first to build_enumerator. Pass enum_loc to
14159 parser_xref_tag.
14160 (c_parser_struct_or_union_specifier): Save location. Use it for
14161 start_struct, finish_struct, and parser_xref_tag.
14162
14163 2009-06-12 Ian Lance Taylor <iant@google.com>
14164
14165 * fold-const.c (fold_unary): Rename local variable and to and_expr.
14166
14167 * c-opts.c (c_common_handle_option): For -Wc++-compat set
14168 cpp_opts->warn_cxx_operator_names.
14169
14170 2009-06-12 Andrew Pinski <andrew_pinski@playstation.sony.com>
14171
14172 PR tree-opt/38865
14173 * tree-ssa-sccvn.c (visit_reference_op_load): If vn_reference_lookup
14174 is returns NULL and OP is a VCE, look through the VCE.
14175
14176 2009-06-12 Ian Lance Taylor <iant@google.com>
14177
14178 PR bootstrap/40430
14179 * collect2.c (main): Use CONST_CAST2 in code inside #if
14180 LINK_ELIMINATE_DUPLICATE_LDIRECTORIES.
14181
14182 2009-06-12 Joey Ye <joey.ye@intel.com>
14183
14184 PR middle-end/39146
14185 * cfgexpand.c (get_decl_align_unit): Update
14186 max_used_stack_slot_alignment with align instead of
14187 stack_alignment_needed.
14188
14189 * function.c (assign_stack_local_1): Update
14190 max_used_stack_slot_alignment with alignment_in_bits instead
14191 of stack_alignment_needed.
14192 (locate_and_pad_parm): Don't update max_used_stack_slot_alignment
14193 here.
14194
14195 2009-06-12 Jakub Jelinek <jakub@redhat.com>
14196
14197 * dwarf2out.c (last_var_location_insn): New variable.
14198 (dwarf2out_end_epilogue): Clear last_var_location_insn.
14199 (dwarf2out_var_location): Don't record anything after last real
14200 insn. Only change labels if there were any real instructions
14201 in between last note and this one, or if changed sections.
14202
14203 2009-06-11 Richard Henderson <rth@redhat.com>
14204
14205 * alpha.c (alpha_expand_prologue): Add a REF_CFA_REGISTER
14206 note when storing the frame pointer in a register.
14207 (FRP): Don't redefine to nothing for epilogue.
14208 (alpha_expand_epilogue): Mark register and sp restores.
14209 (unicosmk_gen_dsib): Don't mark weird frame pointer adjust.
14210
14211 * config/alpha/alpha.c (alpha_emit_setcc): Fix test for
14212 when gen_lowpart is needed.
14213
14214 2009-06-11 Richard Henderson <rth@redhat.com>
14215
14216 * dwarf2out.c (def_cfa_1): Likewise for DW_CFA_cfa_offset.
14217
14218 * dwarf2out.c (need_data_align_sf_opcode): New.
14219 (div_data_align): Move earlier.
14220 (def_cfa_1, reg_save): Use it.
14221
14222 2009-06-11 H.J. Lu <hongjiu.lu@intel.com>
14223
14224 * config/i386/i386.c (OPTION_MASK_ISA_CRC32_SET): New.
14225 (OPTION_MASK_ISA_CRC32_UNSET): Likewise.
14226 (ix86_handle_option): Handle OPT_mcrc32.
14227 (ix86_target_string): Add -mcrc32.
14228 (bdesc_args): Enable crc32 builtins with OPTION_MASK_ISA_CRC32.
14229
14230 * config/i386/i386.h (TARGET_CRC32): New.
14231
14232 * config/i386/i386.md (sse4_2_crc32<mode>): Also check TARGET_CRC32.
14233 (sse4_2_crc32di): Likewise.
14234
14235 * config/i386/i386.opt (mcrc32): New.
14236
14237 * doc/invoke.texi: Document -mcrc32.
14238
14239 2009-06-11 Richard Henderson <rth@redhat.com>
14240
14241 * common.opt (gdwarf-): Accept a version number.
14242 * doc/invoke.texi (gdwarf-): Update docs.
14243 * opth-gen.awk: Special case -gdwarf+ to OPT_gdwarfplus.
14244 * opts.c (common_handle_option) [OPT_gdwarf_]: Verify dwarf
14245 version level, and record it.
14246
14247 * dwarf2.h (DW_CIE_VERSION): Remove.
14248 * dwarf2out.c (DWARF_VERSION): Remove.
14249 (add_fde_cfi): Skip DW_CFA_set_loc addition for dwarf3.
14250 (output_call_frame_info): Use CIE version 3 for dwarf3,
14251 or if the return register column is out of range for version 1.
14252 (dwarf_stack_op_name): Add all dwarf3 values.
14253 (DEBUG_PUBTYPES_SECTION): New.
14254 (size_of_die) [dw_val_class_die_ref]: Handle DW_FORM_ref_addr
14255 encoding change for dwarf3.
14256 (output_die) [dw_val_class_die_ref]: Likewise.
14257 (output_compilation_unit_header): Emit correct version for dwarf3.
14258 (output_line_info): Likewise.
14259 (output_pubnames): Update for DWARF_VERSION removal.
14260 (output_aranges): Likewise.
14261 (gen_subprogram_die): Emit DW_OP_call_frame_cfa if emitting dwarf3.
14262 (dwarf2out_init): Don't ifdef DEBUG_PUBTYPES_SECTION.
14263 (dwarf2out_finish): Likewise.
14264
14265 2009-06-11 David Daney <ddaney@caviumnetworks.com>
14266
14267 * system.h (gcc_assert, gcc_unreachable): Revert accidental commit
14268 in r148403.
14269
14270 2009-06-11 David Daney <ddaney@caviumnetworks.com>
14271
14272 PR c/39252
14273 * doc/extend.texi ( __builtin_unreachable): Document new builtin.
14274 * builtins.c (expand_builtin_unreachable): New function.
14275 (expand_builtin): Handle BUILT_IN_UNREACHABLE case.
14276 * builtins.def (BUILT_IN_UNREACHABLE): Add new builtin.
14277 * cfgcleanup.c (try_optimize_cfg): Delete empty blocks with no
14278 successors.
14279 * cfgrtl.c (rtl_verify_flow_info): Handle empty blocks when
14280 searching for missing barriers.
14281
14282 2009-06-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
14283
14284 * config/darwin.h (LINK_COMMAND_SPEC): Adjust spec to link libcov
14285 when -fprofile-generate* was passed.
14286 * config/darwin9.h (LINK_COMMAND_SPEC): Likewise.
14287
14288 2009-06-11 Anthony Green <green@moxielogic.com>
14289
14290 * config/moxie/moxie.md: Define length attribute for all instructions.
14291 (rCC): Define.
14292 (*b<cond:code>): Support limited branch ranges for new PC-relative
14293 branch instructions.
14294 * config/moxie/moxie.h (HAS_LONG_UNCOND_BRANCH): Define.
14295
14296 2009-06-11 Jakub Jelinek <jakub@redhat.com>
14297
14298 * config/i386/i386.c (min_insn_size): Use get_attr_length
14299 for normal insns other than TYPE_MULTI, TYPE_OTHER and TYPE_FCMP.
14300 For __asm return 0.
14301
14302 * config/i386/i386.c (ix86_pad_returns): Use emit_jump_insn_before
14303 instead of emit_insn_before.
14304
14305 2009-06-10 Ian Lance Taylor <iant@google.com>
14306
14307 PR bootstrap/40408
14308 * graphite.c (add_conditions_to_domain): Change SWITCH_EXPR to
14309 GIMPLE_SWITCH.
14310
14311 2009-06-10 Revital Eres <eres@il.ibm.com>
14312
14313 * passes.c (init_optimization_passes): Reschedule
14314 predictive-commoning pass before complete unroll pass.
14315
14316 2009-06-10 Martin Jambor <mjambor@suse.cz>
14317
14318 * cgraph.c (cgraph_node_can_be_local_p): New function.
14319 (cgraph_make_node_local): New function.
14320 * cgraph.h (cgraph_node_can_be_local_p): Declare.
14321 (cgraph_make_node_local): Declare.
14322
14323 2009-06-10 Nathan Froyd <froydnj@codesourcery.com>
14324
14325 * tree.h (tree_base): Add packed_flag and user_align fields.
14326 Decrease size of spare field.
14327 (TYPE_USER_ALIGN): Use user_align from tree_base.
14328 (DECL_USER_ALIGN): Likewise.
14329 (TYPE_PACKED): Use packed_flag from tree_base.
14330 (DECL_PACKED): Likewise.
14331 (tree_type): Delete packed_flag and user_align fields. Widen
14332 precision field. Widen mode field and shuffle fields to align
14333 mode on an 8-bit boundary.
14334 (tree_decl_common): Delete decl_flag_1 and user_align fields.
14335 Renumber decl_flag_* fields. Fix comments. Widen
14336 decl_common_unused field.
14337 (DECL_HAS_VALUE_EXPR_P): Adjust for renumbering of decl_flag_* fields.
14338 (DECL_EXTERNAL): Likewise.
14339 (DECL_BIT_FIELD): Likewise.
14340 (DECL_NONADDRESSABLE_P): Likewise.
14341 (TYPE_DECL_SUPRESS_DEBUG): Likewise.
14342 * config/arm/arm-modes.def (XImode): Make it an INT_MODE.
14343
14344 2009-06-10 Ian Lance Taylor <iant@google.com>
14345
14346 * vec.h (DEF_VEC_ALLOC_I): Use DEF_VEC_NONALLOC_FUNCS_I.
14347 (DEF_VEC_ALLOC_P): Use DEF_VEC_NONALLOC_FUNCS_P.
14348 (DEF_VEC_ALLOC_O): Use DEF_VEC_NONALLOC_FUNCS_O.
14349 (DEF_VEC_ALLOC_FUNC_P): Only define VEC_OP (T,A,alloc).
14350 (DEF_VEC_NONALLOC_FUNCS_P): New macro, broken out of old
14351 DEF_VEC_ALLOC_FUNC_P.
14352 (DEF_VEC_ALLOC_FUNC_O): Only define VEC_OP (T,A,alloc).
14353 (DEF_VEC_NONALLOC_FUNCS_O): New macro, broken out of old
14354 DEF_VEC_ALLOC_FUNC_O.
14355 (DEF_VEC_ALLOC_FUNC_I): Only define VEC_OP (T,A,alloc).
14356 (DEF_VEC_NONALLOC_FUNCS_I): New macro, broken out of old
14357 DEF_VEC_ALLOC_FUNC_I.
14358 (vec_stack_p_reserve, vec_stack_p_reserve_exact): Declare.
14359 (vec_stack_p_reserve_exact_1): Declare.
14360 (vec_stack_o_reserve, vec_stack_o_reserve_exact): Declare.
14361 (vec_stack_free): Declare.
14362 (VEC_stack_alloc): Define.
14363 (DEF_VEC_ALLOC_P_STACK, DEF_VEC_ALLOC_FUNC_P_STACK): Define.
14364 (DEF_VEC_ALLOC_O_STACK, DEF_VEC_ALLOC_FUNC_O_STACK): Define.
14365 (DEF_VEC_ALLOC_I_STACK, DEF_VEC_ALLOC_FUNC_I_STACK): Define.
14366 * vec.c (void_p): New type. Call DEF_VEC_P and DEF_VEC_ALLOC_P
14367 for void_p.
14368 (stack_vecs): New static variable.
14369 (vec_stack_p_reserve_exact_1): New function.
14370 (vec_stack_o_reserve_1): New static function.
14371 (vec_stack_p_reserve, vec_stack_p_reserve_exact): New functions.
14372 (vec_stack_o_reserve, vec_stack_o_reserve_exact): New functions.
14373 (vec_stack_free): New function.
14374 * df-scan.c (df_ref): Use DEF_VEC_P and DEF_VEC_ALLOC_P_STACK.
14375 (VEC_df_ref_stack_alloc): Define.
14376 (df_mw_hardreg_ptr): New type. Use DEF_VEC_P and
14377 DEF_VEC_ALLOC_P_STACK.
14378 (VEC_df_mw_hardreg_ptr_stack_alloc): Define.
14379 (struct df_collection_rec): Change _vec fields to VEC. Remove
14380 _use fields.
14381 (df_free_collection_rec): Adjust for new fields.
14382 (df_insn_rescan): Use new df_collection_rec fields.
14383 (df_notes_rescan, df_canonize_collection_rec): Likewise.
14384 (df_ref_create_structure, df_ref_record): Likewise.
14385 (df_get_conditional_uses, df_get_call_refs): Likewise.
14386 (df_insn_refs_collect, df_bb_refs_collect): Likewise.
14387 (df_bb_refs_record, df_record_entry_block_defs): Likewise.
14388 (df_record_exit_block_uses, df_bb_verify): Likewise.
14389 (df_swap_refs): Change ref_vec parameter to VEC. Change all callers.
14390 (df_sort_and_compress_refs): Change ref_vec parameter to VEC.
14391 Remove count parameter. Change return type to void. Change all
14392 callers.
14393 (df_sort_and_compress_mws): Change mw_vec parameter to VEC.
14394 Remove count parameter. Change return type to void. Change all
14395 callers.
14396 (df_install_refs): Change old_vec parameter to VEC. Remove count
14397 parameter. Change all callers.
14398 (df_install_mws): Change old_vec parameter to VEC. Remove count
14399 parameter. Change all callers.
14400 (df_refs_verify): Change new_rec parameter to VEC. Change call
14401 callers.
14402 (df_mws_verify): Likewise.
14403
14404 2009-06-10 Alexandre Oliva <aoliva@redhat.com>
14405
14406 * gcc.c (compare_files): Cast munmap argumento to caddr_t.
14407
14408 2009-06-10 H.J. Lu <hongjiu.lu@intel.com>
14409
14410 * doc/extend.texi: Add description for __builtin_ia32_crc32di.
14411
14412 2009-06-10 Anthony Green <green@moxielogic.com>
14413
14414 * config/moxie/crti.asm: New file.
14415 * config/moxie/crtn.asm: New file.
14416 * config/moxie/moxie.c: New file.
14417 * config/moxie/moxie.h: New file.
14418 * config/moxie/sfp-machine.h: New file.
14419 * config/moxie/moxie-protos.h: New file.
14420 * config/moxie/t-moxie: Created.
14421 * config/moxie/t-moxie-softfp: Created.
14422 * config/moxie/moxie.md: Created.
14423 * config/moxie/constraints.md: Created.
14424 * config.gcc: Add moxie support.
14425 * doc/md.texi (Machine Constraints): Add moxie constraints.
14426 * doc/contrib.texi (Contributors): Mention moxie port.
14427 * doc/install.texi (Specific): Mention the moxie port.
14428
14429 2009-06-09 Ian Lance Taylor <iant@google.com>
14430
14431 * system.h (HAVE_DESIGNATED_INITIALIZERS): Don't define if
14432 compiling with C++.
14433 * optabs.c (optab_table): Only use designated initializers if
14434 HAVE_DESIGNATED_INITIALIZERS is defined.
14435 (convert_optab_table): Likewise.
14436 (init_optabs): Always call init_insn_codes if
14437 HAVE_DESIGNATED_INITIALIZERS is not defined.
14438
14439 2009-06-09 Ian Lance Taylor <iant@google.com>
14440
14441 * targhooks.c (default_builtin_vectorized_function): Change fn
14442 parameter to unsigned int.
14443 (default_builtin_vectorized_conversion): Change code parameter to
14444 unsigned int.
14445 (default_builtin_reciprocal): Change fn parameter to unsigned int.
14446 * targhooks.h: Update declarations.
14447 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Change code
14448 parameter to unsigned int.
14449
14450 * c-typeck.c (comptypes_check_enum_int): New static function.
14451 (comptypes_internal): Add enum_and_int_p parameter. Change all
14452 callers.
14453 (comp_target_types): Add location parameter. Change all callers.
14454 (tagged_types_tu_compatible_p): Add enum_and_int_p parameter.
14455 Change all callers.
14456 (function_types_compatible_p, type_lists_compatible_p): Likewise.
14457 (build_conditional_expr): Add colon_loc parameter. Change all
14458 callers.
14459 (convert_for_assignment): Add location parameter. Change all callers.
14460 * c-parser.c (c_parser_conditional_expression): Pass location of
14461 colon to build_conditional_expr.
14462 * c-tree.h (build_conditional_expr): Update declaration.
14463
14464 2009-06-09 Sebastian Pop <sebastian.pop@amd.com>
14465
14466 * graphite.c: Revert previous patch.
14467
14468 2009-06-09 Sebastian Pop <sebastian.pop@amd.com>
14469
14470 PR bootstrap/40103
14471 * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
14472
14473 2009-06-09 Ghassan Shobaki <ghassan.shobaki@amd.com>
14474
14475 * tree-ssa-loop-prefetch.c
14476 (loop_prefetch_arrays): Fixed a portability problem in printf format
14477 string.
14478
14479 2009-06-09 Martin Jambor <mjambor@suse.cz>
14480
14481 PR tree-optimization/40351
14482 * tree-sra.c (propagate_subacesses_accross_link): Check that a
14483 refrence to a potential artifical subaccess can be constructed.
14484
14485 2009-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
14486
14487 * config/sh/sh-protos.h (sh_optimization_options): Declare.
14488 (sh_override_options): Likewise.
14489 * config/sh/sh.c: Include params.h.
14490 (sh_optimization_options): New.
14491 (sh_override_options): Likewise.
14492 * config/sh/sh.c (OPTIMIZATION_OPTIONS): Use sh_optimization_options.
14493 (OVERRIDE_OPTIONS): Use sh_override_options.
14494
14495 2009-06-08 Jakub Jelinek <jakub@redhat.com>
14496
14497 * dwarf2out.c (emit_cfa_remember): New variable.
14498 (add_fde_cfi): If emit_cfa_remember, recurse to add
14499 DW_CFA_remember_state first.
14500 (dwarf2out_begin_epilogue): Don't add_fde_cfi DW_CFA_remember_state,
14501 instead just set emit_cfa_remember.
14502
14503 2009-06-08 Jan Hubicka <jh@suse.cz>
14504
14505 PR debug/40126
14506 * dwarf2out.c (dwarf2out_abstract_function): Free decl_loc_table.
14507
14508 2009-06-08 Jan Hubicka <jh@suse.cz>
14509
14510 PR middle-end/39834
14511 * cgraphunit.c (save_inline_function_body): Do not copy transform
14512 hooks for saved inline bodies.
14513 * ipa-passes.c (do_per_function): Do not add the hoks multiple times
14514 for given function.
14515
14516 2009-06-08 Adam Nemet <anemet@caviumnetworks.com>
14517
14518 * jump.c (returnjump_p): Handle delayed branches. Add missing
14519 function comment.
14520
14521 2009-06-08 Jan Hubicka <jh@suse.cz>
14522
14523 PR middle-end/40102
14524 * cgraph.c (cgraph_create_edge_including_clones): Also asume that the
14525 original node might've been modified.
14526 * tree-inline.c (copy_bb): Do not assume that all clones are the same.
14527
14528 2009-06-08 Jakub Jelinek <jakub@redhat.com>
14529
14530 * tree-object-size.c (addr_object_size): Add OSI argument.
14531 Handle also INDIRECT_REF with SSA_NAME inside of it as base address.
14532 (compute_builtin_object_size, expr_object_size): Adjust callers.
14533 (plus_stmt_object_size): Call addr_object_size instead of
14534 compute_builtin_object_size.
14535
14536 2009-06-08 Ghassan Shobaki <ghassan.shobaki@amd.com>
14537 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
14538
14539 * tree-ssa-loop-prefetch.c
14540 (gather_memory_references): Introduced a counter for the number of
14541 memory references.
14542 (anything_to_prefetch_p): Introduced a counter for the number of
14543 prefetches.
14544 (is_loop_prefetching_profitable): New function with a cost model
14545 for prefetching.
14546 (loop_prefetch_arrays): Use the new cost model to determine if
14547 prefetching is profitable.
14548 * params.def (MIN_INSN_TO_PREFETCH_RATIO,
14549 PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
14550 * params.h (MIN_INSN_TO_PREFETCH_RATIO,
14551 PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
14552 * doc/invoke.texi (MIN_INSN_TO_PREFETCT_RATIO,
14553 PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
14554
14555 2009-06-08 Michael Matz <matz@suse.de>
14556
14557 PR debug/40012
14558 * cfgexpand.c (set_rtl): Store place also in DECL_RTL, if all
14559 partitions use the same.
14560 (expand_one_var): Deal with DECL_RTL sometimes begin set also
14561 for basevars of SSA_NAMEs.
14562 (expand_used_vars): Reset TREE_USED for basevars of SSA_NAMEs,
14563 to not expand them twice.
14564 (gimple_expand_cfg): Clear DECL_RTL for those decls that have
14565 multiple places.
14566
14567 2009-06-08 Alexandre Oliva <aoliva@redhat.com>
14568
14569 * common.opt (fcompare-debug=, fcompare-debug-second): New.
14570 (fdump-final-insns=, gtoggle): New.
14571 * doc/invoke.texi: Document them.
14572 * final.c (rest_of_clean_state): Dump final insn stream.
14573 * gcc.c (invoke_as): Hook in -fcompare-debug.
14574 (static_spec_functions): Add compare-debug-dump-opt,
14575 compare-debug-self-opt and compare-debug-auxbase-opt.
14576 (compare_debug, compare_debug_second, compare_debug_opt): New.
14577 (switches_debug_check, n_switches_debug_check): New.
14578 (debug_auxbase_opt, debug_check_temp_file): New.
14579 (process_command): Handle -fno-compare-debug, -fcompare-debug and
14580 -fcompare-debug=*.
14581 (do_self_spec): Handle arguments after switches.
14582 (do_spec_1): Add .gk extension to temp file basenames for compare.
14583 (check_live_switch): Take SWITCH_IGNORE into account, and earlier.
14584 (cc1_options): Use it instead of normal auxbase computation for
14585 the second compare-debug compilation.
14586 (compare_files): New.
14587 (main): Set up and implement compare debug mode.
14588 (compare_debug_dump_opt_spec_function): New.
14589 (compare_debug_self_opt_spec_function): New.
14590 (compare_debug_auxbase_opt_spec_function): New.
14591 * toplev.c (process_options): Handle flag_gtoggle,
14592 flag_dump_final_insns.
14593 * coverage.c (coverage_begin_output): Don't overwrite .gcno file
14594 during -fcompare-debug-second compilation.
14595
14596 2009-06-07 Ian Lance Taylor <iant@google.com>
14597
14598 * dwarf2.h (enum dwarf_location_atom): Add INTERNAL_DW_OP_tls_addr.
14599 * dwarf2out.c (INTERNAL_DW_OP_tls_addr): Don't #define.
14600
14601 * c-common.c (c_do_switch_warnings): Don't exit early for -Wswitch
14602 with no default node. Change warning with %H to warning_at.
14603 Don't clear warn_switch around case checking.
14604 * doc/invoke.texi (Warning Options): Clarify distinction between
14605 -Wswitch and -Wswitch-enum.
14606
14607 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14608
14609 * tree-pass.h (TODO_update_ssa_any): Document internal use only.
14610
14611 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14612
14613 * gbl-ctors.h: Add header guard.
14614
14615 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14616
14617 * tree-flow.h (make_value_handle, set_value_handle, sort_vuses,
14618 sort_vuses_heap, vn_lookup_or_add, vn_lookup_or_add_with_stmt,
14619 vn_lookup_or_add_with_vuses, vn_add, vn_add_with_vuses,
14620 vn_lookup_with_stmt, vn_lookup, vn_lookup_with_vuses): Remove
14621 prototypes for removed functions.
14622 (expressions_equal_p): Move to ...
14623 * tree-ssa-sccvn.h: ... here and ...
14624 * matrix-reorg.c: ... adjust includes.
14625
14626 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14627
14628 * ipa-struct-reorg.c (do_reorg_1): Fix whitespace in dump output.
14629
14630 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14631
14632 * c-decl.c (finish_decl): Use bool for variable was_incomplete.
14633 (finish_function): Remove erroneous whitespace.
14634
14635 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14636
14637 * tree-cfg.c (gimple_merge_blocks): Commentary typo fix.
14638 (verify_stmts): Print statement who's gimple_bb is set to a wrong BB
14639
14640 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14641
14642 * errors.c (internal_error): Commentary typo fix.
14643 * gimple-iterator.c (gsi_insert_seq_on_edge): Ditto.
14644 * tree-ssa-pre.c: Ditto.
14645
14646 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14647
14648 * basic-block.h (ENTRY_BLOCK, EXIT_BLOCK): Document that neither of
14649 them is supposed to hold actual statements.
14650
14651 2009-06-06 Ian Lance Taylor <iant@google.com>
14652
14653 * doc/extend.texi (Attribute Syntax): Document that C++ labels on
14654 empty statements can now have attributes.
14655
14656 2009-06-05 Shujing Zhao <pearly.zhao@oracle.com>
14657
14658 * config/mips/mips.c: Use REG_P and CONST_INT_P where applicable.
14659 * config/mips/mips.md: Ditto.
14660
14661 2009-06-05 Nathan Froyd <froydnj@codesourcery.com>
14662
14663 * config/rs6000/eabi.asm (__eabi_convert): Don't define if
14664 _RELOCATABLE.
14665 (__eabi_uconvert): Likewise.
14666
14667 2009-06-05 Nathan Froyd <froydnj@codesourcery.com>
14668
14669 * config/rs6000/ppc-asm.h: Protect auto-host.h inclusion and
14670 CFI_* definitions with IN_GCC.
14671
14672 2009-06-05 David Edelsohn <edelsohn@gnu.org>
14673
14674 * xcoffout.h (xcoffout_source_line): Update prototype.
14675
14676 2009-06-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14677
14678 * builtins.c (do_mpc_ckconv, do_mpc_arg1): Use
14679 mpc_realref/mpc_imagref instead of MPC_RE/MPC_IM.
14680
14681 2009-06-05 Jakub Jelinek <jakub@redhat.com>
14682
14683 PR middle-end/40340
14684 * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
14685 inlined_function_outer_scope_p blocks for artificial inlines
14686 even at -g0/-g1.
14687 * tree.c (tree_nonartificial_location): Rewrite using
14688 block_nonartificial_location.
14689
14690 2009-06-05 Revital Eres <eres@il.ibm.com>
14691 Leehod Baruch <leehod@il.ibm.com>
14692
14693 * expr.c (expand_assignment): Expand MISALIGNED_INDIRECT_REF.
14694 (expand_expr_real_1): Remove comment.
14695 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
14696 Vectorize misaligned access when the target supports it.
14697 (vect_supportable_dr_alignment): Check for unaligned access support.
14698 * tree-vect-stmts.c (vectorizable_store): Generate misaligned store
14699 and remove asset.
14700
14701 2009-06-05 Julian Brown <julian@codesourcery.com>
14702
14703 * config/arm/ieee754-df.S (cmpdf2): Avoid writing below SP.
14704 * config/arm/ieee754-sf.S (cmpsf2): Likewise.
14705
14706 2009-06-05 Richard Guenther <rguenther@suse.de>
14707
14708 PR bootstrap/40350
14709 * dwarf2out.c (dwarf2out_begin_function): Mark discriminator
14710 as possibly unused.
14711
14712 2009-06-05 Jakub Jelinek <jakub@redhat.com>
14713
14714 * config/s390/s390.c (global_not_special_regno_p): New static inline.
14715 (save_gprs): Don't tell unwinder when a global register is saved.
14716 (s390_emit_epilogue): Emit needed epilogue unwind info.
14717
14718 2009-06-05 Alexandre Oliva <aoliva@redhat.com>
14719
14720 * dwarf2out.c (deferred_asm_name): New.
14721 (add_name_and_src_coords_attributes): Defer creation of
14722 DW_AT_MIPS_linkage_name attribute if DECL_ASSEMBLER_NAME was not
14723 computed yet.
14724 (move_linkage_attr): New.
14725 (dwarf2out_finish): Revisit deferrals and emit attributes at the
14726 right place.
14727
14728 2009-06-05 Alexandre Oliva <aoliva@redhat.com>
14729
14730 * tree-nested.c (finalize_nesting_tree_1): Declare the
14731 frame_decl in the binding tree.
14732
14733 2009-06-04 Cary Coutant <ccoutant@google.com>
14734
14735 * basic-block.h (struct basic_block_def): Add discriminator field.
14736 * dbxout.c (dbxout_source_line): Add new parameter. Change all
14737 callers.
14738 * debug.c (do_nothing_debug_hooks): Add additional entry.
14739 (debug_nothing_int_charstar_int): New function.
14740 * debug.h (struct gcc_debug_hooks): Add parameter to source_line hook.
14741 (debug_nothing_int_charstar_int): New declaration.
14742 * dwarf2out.c (dwarf2out_source_line): Add new parameter. Write
14743 discriminator value in .loc directive.
14744 * final.c (last_discriminator): New variable.
14745 (discriminator): New variable.
14746 (final_start_function): Initialize above variables, pass current
14747 discriminator to debug hook.
14748 (notice_source_line): Check for discriminator change.
14749 * gimple-pretty-print.c (dump_bb_header): Print discriminator value.
14750 * sdbout.c (sdbout_source_line): New parameter.
14751 * tree-cfg.c (struct locus_discrim_map): New structure type.
14752 (discriminator_per_locus): New hash table.
14753 (build_gimple_cfg): Allocate and free discriminator hash table.
14754 (make_edges): Call assign_discriminator.
14755 (locus_map_hash): New function.
14756 (locus_map_eq): New function.
14757 (next_discriminator_for_locus): New function.
14758 (same_line_p): New function.
14759 (assign_discriminator): New function.
14760 (make_cond_expr_edges): Call assign_discriminator.
14761 (make_gimple_switch_edges): Likewise.
14762 (first_non_label_stmt): New function.
14763 * vmsdbgout.c (vmsdbgout_source_line): Add new parameter. Change
14764 all callers.
14765 * xcoffout.c (xcoffout_source_line): Add new parameter.
14766
14767 * configure.ac (gcc_cv_as_discriminator): New configury check for
14768 gas support for discriminator.
14769 * configure: Regenerate.
14770 * config.in: Regenerate.
14771
14772 2009-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14773
14774 * config/arm/arm.c (thumb2_legitimate_index_p): Initialize
14775 val after checking for integers.
14776
14777 2009-06-04 Uros Bizjak <ubizjak@gmail.com>
14778
14779 * config/i386/i386.h (X86_64_MS_REGPARM_MAX): Rename from
14780 X64_REGPARM_MAX.
14781 (REGPARM_MAX): Use X86_64_MS_REGPARM_MAX.
14782 (X86_64_MS_SSE_REGPARM_MAX): Rename from X64_SSE_REGPARM_MAX.
14783 (SSE_REGPARM_MAX): Use X86_64_MS_SSE_REGPARM_MAX.
14784 * config/i386/i386.c: Use X86_64_MS_REGPARM_MAX instead of
14785 X64_REGPARM_MAX. Use X86_64_MS_SSE_REGPARM_MAX instead of
14786 X64_SSE_REGPARM_MAX.
14787 * config/i386/i386.md: Use X86_64_MS_SSE_REGPARM_MAX instead of
14788 X64_SSE_REGPARM_MAX.
14789
14790 2009-06-04 Alexandre Oliva <aoliva@redhat.com>
14791
14792 * gcc.c (report_times_to_file): New.
14793 (execute): Implement it.
14794 (process_command): Support -time=.
14795 * doc/invoke.texi: Document it.
14796
14797 2009-06-04 Alexandre Oliva <aoliva@redhat.com>
14798
14799 * tree-ssa-live.c (remove_unused_scope_block_p): Keep variables
14800 that have value exprs.
14801
14802 2009-06-04 Alexandre Oliva <aoliva@redhat.com>
14803
14804 * dwarf2asm.c (dw2_force_const_mem): Defer creation of
14805 declarations for constants until...
14806 (dw2_output_indirect_constant_1): ... this point.
14807
14808 2009-06-04 Richard Earnshaw <rearnsha@arm.com>
14809
14810 PR target/10242
14811 * arm.md (arm_addsi3): Don't try to split an add with an
14812 eliminable register until after reload has completed.
14813
14814 2009-06-03 Ian Lance Taylor <iant@google.com>
14815
14816 * dummy-checksum.c (executable_checksum): Use EXPORTED_CONST.
14817 * genattrtab.c (write_length_unit_log): Likewise.
14818 * genchecksum.c (dosum): Likewise.
14819 * gengtype.c (write_rtx_next): Likewise.
14820 (finish_root_table, write_roots): Likewise.
14821 * gimple.c (gimple_ops_offset_): Likewise.
14822 * tree-nomudflap.c (gt_ggc_r_gt_tree_mudflap_h): Likewise.
14823 * config/arc/arc.c (arc_attribute_table): Likewise.
14824 * config/arm/arm.c (arm_attribute_table): Likewise.
14825 * config/avr/avr.c (avr_attribute_table): Likewise.
14826 * config/crx/crx.c (crx_attribute_table): Likewise.
14827 * config/m32r/m32r.c (m32r_attribute_table): Likewise.
14828 * config/m68hc11/m68hc11.c (m68hc11_attribute_table): Likewise.
14829 * config/mcore/mcore.c (mcore_attribute_table): Likewise.
14830 * config/rs6000/rs6000.c (rs6000_attribute_table): Likewise.
14831 * config/sh/sh.c (sh_attribute_table): Likewise.
14832 * config/sparc/sparc.c (sparc_attribute_table): Likewise.
14833 * config/spu/spu.c (spu_attribute_table): Likewise.
14834 * config/v850/v850.c (v850_attribute_table): Likewise.
14835
14836 * config/alpha/alpha.c (vms_attribute_table): Make static.
14837 * config/bfin/bfin.c (bfin_attribute_table): Likewise.
14838 * config/h8300/h8300.c (h8300_attribute_table): Likewise.
14839 * config/mips/mips.c (mips_attribute_table): Likewise.
14840
14841 * Makefile.in (dummy-checksum.o): Depend upon $(CONFIG_H) and
14842 $(SYSTEM_H).
14843 (cc1-checksum.o): Likewise.
14844
14845 2009-06-03 Steve Ellcey <sje@cup.hp.com>
14846
14847 * config/ia64/vect.md (*movv2sf_internal): Handle big endian case.
14848
14849 2009-06-03 Jakub Jelinek <jakub@redhat.com>
14850
14851 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Return generated
14852 insn if it is changing sp. Use gen_add3_insn instead of
14853 conditionally gen_addsi3 and gen_adddi3.
14854 (offset_below_red_zone_p): New static inline function.
14855 (rs6000_emit_epilogue): Emit needed epilogue unwind info.
14856 Use gen_add3_insn instead of conditionally gen_addsi3 and gen_adddi3.
14857 * config/rs6000/ppc-asm.h: Include auto-host.h.
14858 (CFI_STARTPROC, CFI_ENDPROC, CFI_DEF_CFA_REGISTER, CFI_OFFSET,
14859 CFI_RESTORE): Define.
14860 * config/rs6000/crtresxgpr.asm: Add unwind info.
14861 * config/rs6000/crtresxfpr.asm: Likewise.
14862 * config/rs6000/crtresgpr.asm: Likewise.
14863 * config/rs6000/crtresfpr.asm: Likewise.
14864 * config/rs6000/crtsavgpr.asm: Likewise.
14865 * config/rs6000/crtsavfpr.asm: Likewise.
14866
14867 * dwarf2out.c (output_cfi_directive): Pass 1 instead of 0 to second
14868 argument of DWARF2_FRAME_REG_OUT macros.
14869
14870 2009-06-03 Julian Brown <julian@codesourcery.com>
14871
14872 * config/arm/arm.c (arm_hard_regno_mode_ok): Permit values of four
14873 words or less (including TImode) in core registers.
14874
14875 2009-06-03 Richard Guenther <rguenther@suse.de>
14876
14877 PR middle-end/40328
14878 * fold-const.c (fold_convert): Fold the build COMPLEX_EXPR.
14879
14880 2009-06-03 Andrey Belevantsev <abel@ispras.ru>
14881
14882 * statistics.c (statistics_counter_event): Do not record event
14883 in pass dump if its number == -1.
14884 (curr_statistics_hash): Add assert that we never get passes
14885 with static number == -1.
14886
14887 2009-06-03 Richard Guenther <rguenther@suse.de>
14888 Andrey Belevantsev <abel@ispras.ru>
14889
14890 * cfgexpand.c (discover_nonconstant_array_refs_r): Make only
14891 non-BLKmode arrays addressable.
14892
14893 2009-06-03 Maxim Kuvyrkov <maxim@codesourcery.com>
14894
14895 * config/m68k/linux.h (HAVE_GAS_BALIGN_AND_P2ALIGN): Move to ...
14896 * config/m68k/m68k.h: ... here.
14897
14898 2009-06-03 Martin Jambor <mjambor@suse.cz>
14899
14900 PR tree-optimization/40323
14901 * ipa-prop.c (get_ssa_def_if_simple_copy): Break if not single
14902 assignment.
14903
14904 2009-06-03 Richard Guenther <rguenther@suse.de>
14905
14906 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
14907 consistently.
14908
14909 2009-06-03 Shujing Zhao <pearly.zhao@oracle.com>
14910
14911 * config/sh/predicates.md: Use REG_P, MEM_P, CONST_INT_P, LABEL_P,
14912 JUMP_P, CALL_P, NONJUMP_INSN_P, NOTE_P, BARRIER_P and
14913 JUMP_TABLE_DATA_P where applicable.
14914 * config/sh/sh.c: Ditto.
14915 * config/sh/sh.h: Ditto.
14916 * config/sh/sh.md: Ditto.
14917 * config/sh/symbian.c: Ditto.
14918
14919 2009-06-03 Uros Bizjak <ubizjak@gmail.com>
14920
14921 * config/i386/driver-i386.c (describe_cache): Optimize
14922 concatenation of strings. Use snprintf instead of sprintf.
14923 (host_detect_local_cpu): Ditto. Ignore -march and -mtune for native
14924 target when not compiling with GCC.
14925
14926 2009-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
14927
14928 * config/sh/sh.c: Revert last change.
14929 (sh_expand_epilogue): Emit a blockage insn before the frame
14930 pointer adjustment unconditionally.
14931
14932 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
14933
14934 * config/pa/pa-hpux.h (LINK_SPEC): Remove "%<fwhole-program".
14935 * config/pa/pa-hpux10.h (LINK_SPEC): Likewise.
14936 * config/pa/pa-hpux11.h (LINK_SPEC): Likewise.
14937 * gcc.c (set_collect_gcc_options): Don't add -fwhole-program
14938 to COLLECT_GCC_OPTIONS.
14939
14940 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
14941
14942 * collect2.c (target_system_root): New variable.
14943 (main): Handle --sysroot=.
14944 (ignore_library): Strip the sysroot from the library path.
14945
14946 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
14947
14948 * Makefile.in (COLLECT2_OBJS): Add collect2-aix.o.
14949 (collect2.o): Depend on collect2-aix.h.
14950 (collect2-aix.o): New rule.
14951 * collect2-aix.h: New file.
14952 * collect2-aix.c: Likewise.
14953 * collect2.c: Include collect2-aix.h. Don't undefine
14954 OBJECT_FORMAT_COFF if CROSS_AIX_SUPPORT is defined.
14955 Guard native includes with #ifndef CROSS_DIRECTORY_STRUCTURE.
14956 Use TARGET_AIX_VERSION instead of _AIX51.
14957 * config/rs6000/aix43.h (TARGET_AIX_VERSION): Define.
14958 * config/rs6000/aix51.h (TARGET_AIX_VERSION): Likewise.
14959 * config/rs6000/aix52.h (TARGET_AIX_VERSION): Likewise.
14960 * config/rs6000/aix53.h (TARGET_AIX_VERSION): Likewise.
14961 * config/rs6000/aix61.h (TARGET_AIX_VERSION): Likewise.
14962
14963 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
14964
14965 * collect2.c (ignore_library): Avoid premature post-increment
14966 and null deference.
14967
14968 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
14969
14970 * Makefile.in (libgcc.mvars): Add TARGET_SYSTEM_ROOT.
14971 * config/rs6000/aix.h (LINK_SYSCALLS_SPEC): Add %R to the
14972 !CROSS_DIRECTORY_STRUCTURE alternative and use it for
14973 CROSS_DIRECTORY_STRUCTURE too.
14974 (LINK_LIBG_SPEC): Likewise.
14975 (LIB_SPEC): Add %R to sysroot paths.
14976 * config/rs6000/aix43.h (CPP_SPEC): Add %R to sysroot paths.
14977 (CPLUSPLUS_CPP_SPEC, LIB_SPEC): Likewise.
14978 * config/rs6000/aix51.h: As for aix43.h.
14979 * config/rs6000/aix52.h: Likewise.
14980 * config/rs6000/aix53.h: Likewise.
14981 * config/rs6000/aix61.h: Likewise.
14982 * config/rs6000/t-aix52 (SHLIB_LINK): Add $(TARGET_SYSTEM_ROOT)
14983 to the beginning of sysroot paths.
14984
14985 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
14986
14987 * print_rtl (print_rtx): Don't print modes in EXPR_LISTs and
14988 INSN_LISTs that are out of the REG_NOTE range.
14989
14990 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
14991
14992 * loop-unroll.c (struct iv_to_split): Add pointer to next.
14993 (struct var_to_expand): Likewise.
14994 (struct opt_info): Add head and tail for linked lists of the above.
14995 (analyze_insn_to_expand_var): Initialize next.
14996 (analyze_iv_to_split_insn): Likewise.
14997 (analyze_insns_in_loop): Create linked lists.
14998 (allocate_basic_variable): Simplify for use without hash table.
14999 (insert_var_expansion_initialization): Likewise, make it type-safer.
15000 (combine_var_copies_in_loop_exit): Likewise.
15001 (apply_opt_in_copies): Walk lists rather than hash tables.
15002 (release_var_copies): Simplified and inlined by hand into...
15003 (free_opt_info): ... this function.
15004
15005 2009-06-02 Richard Guenther <rguenther@suse.de>
15006
15007 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
15008 for field decls.
15009
15010 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
15011
15012 * cfgexpand.c (gimple_expand_cfg): Discard the source location
15013 only for builtins that are not overridden.
15014
15015 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
15016
15017 * gengtype.c (adjust_field_rtx_def): Add NOTE_INSN_DELETED_LABEL's
15018 label string.
15019
15020 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
15021
15022 * df-core.c (df_ref_debug): Honor -fdump-noaddr.
15023
15024 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
15025
15026 * combine.c (move_deaths): Compare LUIDs within the same BB only.
15027
15028 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
15029
15030 * common.opt (fdump-unnumbered-links): New.
15031 * doc/invoke.texi (-fdump-unnumbered-links): Document it.
15032 * print-rtl.c (flag_dump_unnumbered_links): New.
15033 (print_rtx): Test it.
15034
15035 2009-06-02 Richard Earnshaw <rearnsha@arm.com>
15036
15037 * arm.c (arm_get_frame_offsets): Prefer using r3 for padding a
15038 push/pop multiple to 8-byte alignment.
15039
15040 2009-06-01 Jakub Jelinek <jakub@redhat.com>
15041
15042 * config/i386/i386.c (queued_cfa_restores): New static variable.
15043 (ix86_add_cfa_restore_note, ix86_add_queued_cfa_restore_notes): New
15044 functions.
15045 (pro_epilogue_adjust_stack): Call ix86_add_queued_cfa_restore_notes.
15046 (ix86_emit_restore_reg_using_pop): Add RED_OFFSET argument.
15047 Set RTX_FRAME_RELATED_P immediately after adding a REG_CFA_* note.
15048 Call ix86_add_cfa_restore_note instead of adding REG_CFA_OFFSET
15049 note unconditionally.
15050 (ix86_emit_restore_regs_using_mov): Likewise.
15051 (ix86_emit_restore_sse_regs_using_mov): Likewise.
15052 (ix86_emit_restore_regs_using_pop): Add RED_OFFSET argument, pass
15053 it through to ix86_emit_restore_reg_using_pop.
15054 (ix86_emit_leave): Add RED_OFFSET argument. Call
15055 ix86_add_queued_cfa_restore_notes. Call ix86_add_cfa_restore_note
15056 instead of adding REG_CFA_OFFSET note unconditionally.
15057 (ix86_expand_epilogue): Compute RED_OFFSET, pass it down to
15058 the above functions. Call ix86_add_queued_cfa_restore_notes when
15059 needed.
15060
15061 * dwarf2out.c (dwarf2out_cfi_label): Add FORCE argument, if true,
15062 force output of the label even for dwarf2out_do_cfi_asm.
15063 (add_fde_cfi): If -g2 and above and cfi might change CFA,
15064 force creation of CFI label and chain DW_CFA_set_loc jumping to it
15065 for convert_cfa_to_fb_loc_list. Adjust other dwarf2out_cfi_label
15066 caller.
15067 (dwarf2out_stack_adjust, dwarf2out_frame_debug,
15068 dwarf2out_begin_epilogue, dwarf2out_frame_debug_restore_state): Adjust
15069 dwarf2out_cfi_label callers.
15070 * tree.h (dwarf2out_cfi_label): Adjust prototype.
15071 * config/arm/arm.c (thumb_pushpop, thumb1_output_function_prologue):
15072 Adjust dwarf2out_cfi_label callers.
15073 * config/vax/vax.c (vax_output_function_prologue): Likewise.
15074
15075 * config/i386/i386.h (struct machine_cfa_state,
15076 struct machine_function): Guard with ifndef USED_FOR_TARGET
15077 instead of not IN_LIBGCC2 and not in IN_TARGET_LIBS.
15078
15079 PR other/40024
15080 * emutls.c (__emutls_get_address): Change arr->size to mean number
15081 of allocated arr->data entries instead of # of slots + 1.
15082
15083 PR middle-end/40316
15084 * recog.c (peep2_reinit_state): New function.
15085 (peephole2_init_state): Use it at the end of a basic block and also
15086 when seeing a RTX_FRAME_RELATED_P insn.
15087
15088 2009-06-01 Steve Ellcey <sje@cup.hp.com>
15089
15090 * ia64.md (floatdirf2, fix_truncrfdi, floatunsdirf,
15091 fixuns_truncrfdi2): New.
15092 (fix_truncxfdi2_alts, fixuns_truncxfdi2_alts,
15093 *nmaddsf4_alts, *nmadddf4_alts, *nmadddf4_truncsf_alts,
15094 *mulxf3_alts, *mulxf3_truncsf_alts, *mulxf3_truncdf_alts,
15095 *maddxf4_alts, *maddxf4_alts_truncsf, *maddxf4_alts_truncdf,
15096 *nmaddxf4_alts, *nmaddxf4_truncsf_alts, *nmaddxf4_truncdf_alts,
15097 *recip_approx): Remove.
15098 (divsi3 modsi3, udivsi3, umodsi3, divsi3_internal, divdi3,
15099 moddi3, udivdi3, umoddi3, divdi3_internal_lat, divdi3_internal_thr,
15100 divsf3, sqrtsf2, divdf3, sqrtdf2, divxf3, sqrtxf2): Modify and
15101 move to div.md.
15102 * div.md (fix_truncrfdi2_alts, fixuns_truncrfdi2_alt,
15103 setf_exp_rf): New.
15104
15105 2009-06-01 Ian Lance Taylor <iant@google.com>
15106
15107 * attribs.c (register_attribute): Use CONST_CAST.
15108 * collect2.c (main): Use CONST_CAST2.
15109 (scan_prog_file): Likewise.
15110 * gcc.c (process_command, main): Likewise.
15111 * toplev.c (toplev_main): Likewise.
15112
15113 * c-typeck.c (handle_warn_cast_qual): New static function,
15114 partially broken out of build_c_cast.
15115 (build_c_cast): Call handle_warn_cast_qual.
15116 * doc/invoke.texi (Warning Options): Document new effect of
15117 -Wcast-qual.
15118
15119 2009-06-01 Aldy Hernandez <aldyh@redhat.com>
15120
15121 * diagnostic.c (diagnostic_build_prefix): Always print columns.
15122 (diagnostic_report_current_module): Print columns.
15123 * common.opt (flag_show_column): Enable by default.
15124
15125 2009-06-01 Luis Machado <luisgpm@br.ibm.com>
15126
15127 * alias.c (find_base_term): Check for NULL term before returning.
15128
15129 2009-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
15130
15131 Revert due to PR40320:
15132 2009-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
15133 * calls.c (emit_library_call_value_1): Don't force_operand for move
15134 and push insns.
15135
15136 2009-06-01 Olivier Hainque <hainque@adacore.com>
15137 Eric Botcazou <ebotcazou@adacore.com>
15138
15139 * tree.h (CONSTRUCTOR_BITFIELD_P): True if NODE, a FIELD_DECL, is
15140 to be processed as a bitfield for constructor output purposes.
15141 * output.h (initializer_constant_valid_for_bitfield_p): Declare
15142 new function.
15143 * varasm.c (oc_local_state): New type, output_constructor
15144 local state to support communication with helpers.
15145 (oc_outer_state): New type, output_constructor outer state of
15146 relevance in recursive calls.
15147 (output_constructor_array_range): New output_constructor helper,
15148 extracted code for an array range element.
15149 (output_constructor_regular_field): New output_constructor helper,
15150 extracted code for an element that is not a bitfield.
15151 (output_constructor_bitfield): New output_constructor helper,
15152 extracted code for a bitfield element. Accept an OUTER state
15153 argument for recursive processing. Recurse on record or array
15154 CONSTRUCTOR values, possibly past noop conversions.
15155 (initializer_constant_valid_for_bitfield_p): New predicate. Whether
15156 VALUE is a valid constant-valued expression for use in a static
15157 bit-field initializer.
15158 (output_constructor): Rework to use helpers. Accept and honor an
15159 OUTER state argument for recursive calls. Return total size. Be
15160 prepared for nested constructors initializing bitfields.
15161 (output_constant): Feed OUTER in calls to output_constructor.
15162
15163 2009-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
15164
15165 * calls.c (emit_library_call_value_1): Don't force_operand for move
15166 and push insns.
15167
15168 2009-06-01 Nick Clifton <nickc@redhat.com>
15169
15170 * doc/invoke.texi (IA-64 Options): Fix typo.
15171
15172 2009-06-01 Ira Rosen <irar@il.ibm.com>
15173
15174 PR tree-optimization/39129
15175 * tree-vect-loop-manip.c (conservative_cost_threshold): Change the
15176 printed message.
15177 (vect_do_peeling_for_loop_bound): Use
15178 LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
15179 LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
15180 (vect_loop_versioning): Likewise.
15181 (vect_create_cond_for_alias_checks): Fix indentation.
15182 * tree-vectorizer.h (struct _loop_vec_info): Fix indentation of the
15183 macros.
15184 (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT): Define.
15185 (LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Likewise.
15186 * tree-vect-loop.c (vect_analyze_loop_form): Change "too many BBs" to
15187 "control flow in loop".
15188 (vect_estimate_min_profitable_iters): Use
15189 LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
15190 LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
15191 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
15192 (vect_create_data_ref_ptr): Don't mention array dimension in printing.
15193 * tree-vect-stmts.c (vectorizable_store): Replace the check that the
15194 statement belongs to a group of strided accesses with the exact code
15195 check.
15196 (vectorizable_load): Likewise.
15197 * tree-vect-slp.c (vect_analyze_slp_instance): Spell out "basic block".
15198 (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
15199
15200 2009-06-01 Gerald Pfeifer <gerald@pfeifer.com>
15201
15202 * config/freebsd-stdint.h: New file.
15203 * config.gcc (*-*-freebsd): Set use_gcc_stdint=wrap.
15204 Add freebsd-stdint.h to tm_file.
15205
15206 2009-06-01 Richard Earnshaw <rearnsha@arm.com>
15207
15208 * arm/thumb2.md (thumb2_zero_extendhidi2): New insn and split.
15209 (thumb2_extendhidi2): Likewise.
15210
15211 2009-05-31 Ian Lance Taylor <iant@google.com>
15212
15213 * regstat.c (regstat_n_sets_and_refs): Remove duplicate definition.
15214
15215 2009-05-31 Ian Lance Taylor <iant@google.com>
15216
15217 * Makefile.in (except.o): Depend upon gt-except.h, not gt-$(EXCEPT_H).
15218 (ipa-cp.o): Depend upon $(FIBHEAP_H) and $(PARAMS_H).
15219 (ipa-reference.o): Depend upon gt-ipa-reference.h.
15220
15221 2009-05-31 Jason Merrill <jason@redhat.com>
15222
15223 * tree-pretty-print.c (print_call_name): Take the callee, not the
15224 call itself. Make non-static. Use dump_function_name for functions.
15225 (dump_generic_node): Adjust.
15226 * diagnostic.h: Declare print_call_name.
15227 * gimple-pretty-print.c (dump_gimple_call): Use it.
15228
15229 2009-05-31 Kaz Kojima <kkojima@gcc.gnu.org>
15230
15231 * config/sh/sh.md (ashldi3_std): New define_expand.
15232 (ashldi3): Use it.
15233
15234 2009-05-31 Kaz Kojima <kkojima@gcc.gnu.org>
15235
15236 PR target/40313
15237 * config/sh/sh.c: Include debug.h.
15238 (sh_expand_epilogue): Emit a blockage insn before the frame
15239 pointer adjustment also when dwarf2out_do_frame returns true.
15240
15241 2009-05-31 Richard Earnshaw <rearnsha@arm.com>
15242
15243 * arm/thumb2.md (thumb2_extendsidi2): Add a split sub-pattern.
15244 (thumb2_extendqidi2): New pattern.
15245
15246 2009-05-31 Ira Rosen <irar@il.ibm.com>
15247
15248 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
15249 mark phis for renaming.
15250 * tree-vectorizer.c (vect_memsyms_to_rename): Remove.
15251 (vectorize_loops): Don't allocate and free vect_memsyms_to_rename.
15252 Call mark_sym_for_renaming.
15253 * tree-vectorizer.h (vect_memsyms_to_rename): Remove.
15254 * tree-vect-loop.c (vect_transform_loop): Remove
15255 vect_memsyms_to_rename initialization and a call to
15256 mark_set_for_renaming.
15257
15258 2009-05-31 Jakub Jelinek <jakub@redhat.com>
15259
15260 PR middle-end/40304
15261 * config/i386/i386.c (pro_epilogue_adjust_stack): Mark insns
15262 frame related even if !set_cfa && style < 0.
15263
15264 2009-05-30 Kai Tietz <kai.tietz@onevision.com>
15265
15266 * config/i386/mingw-tls.c: New file.
15267 * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Add mingw-tls.c file.
15268 * gthr-win32.h (MINGW32_SUPPORTS_MT_EH): Define it for targets
15269 defining _WIN32 but not __CYGWIN__.
15270
15271 2009-05-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15272
15273 * configure.ac: Add MPC support.
15274
15275 * config.in, configure: Regenerate.
15276
15277 2009-05-29 Richard Henderson <rth@redhat.com>
15278
15279 * cfgcleanup.c (try_crossjump_to_edge): Only skip past
15280 NOTE_INSN_BASIC_BLOCK.
15281 * cfglayout.c (duplicate_insn_chain): Copy epilogue insn marks.
15282 Duplicate NOTE_INSN_EPILOGUE_BEG notes.
15283 * cfgrtl.c (can_delete_note_p): Allow NOTE_INSN_EPILOGUE_BEG
15284 to be deleted.
15285 * dwarf2out.c (struct cfa_loc): Change indirect field to bitfield,
15286 add in_use field.
15287 (add_cfi): Disable check redefining cfa away from drap.
15288 (lookup_cfa_1): Add remember argument; handle remember/restore.
15289 (lookup_cfa): Pass remember argument.
15290 (cfa_remember): New.
15291 (compute_barrier_args_size_1): Remove sibcall check.
15292 (dwarf2out_frame_debug_def_cfa): New.
15293 (dwarf2out_frame_debug_adjust_cfa): New.
15294 (dwarf2out_frame_debug_cfa_offset): New.
15295 (dwarf2out_frame_debug_cfa_register): New.
15296 (dwarf2out_frame_debug_cfa_restore): New.
15297 (dwarf2out_frame_debug): Handle REG_CFA_* notes.
15298 (dwarf2out_begin_epilogue): New.
15299 (dwarf2out_frame_debug_restore_state): New.
15300 (dw_cfi_oprnd1_desc): Handle DW_CFA_remember_state,
15301 DW_CFA_restore_state.
15302 (output_cfi_directive): Likewise.
15303 (convert_cfa_to_fb_loc_list): Likewise.
15304 (dw_cfi_oprnd1_desc): Handle DW_CFA_restore.
15305 * dwarf2out.h: Update.
15306 * emit-rtl.c (try_split): Don't split RTX_FRAME_RELATED_P.
15307 (copy_insn_1): Early out for null.
15308 * final.c (final_scan_insn): Call dwarf2out_begin_epilogue
15309 and dwarf2out_frame_debug_restore_state.
15310 * function.c (prologue, epilogue, sibcall_epilogue): Remove.
15311 (prologue_insn_hash, epilogue_insn_hash): New.
15312 (free_after_compilation): Adjust freeing accordingly.
15313 (record_insns): Create hash table if needed; push insns into
15314 hash instead of array.
15315 (maybe_copy_epilogue_insn): New.
15316 (contains): Search hash table instead of array.
15317 (sibcall_epilogue_contains): Remove.
15318 (thread_prologue_and_epilogue_insns): Split eh_return insns
15319 and mark them as epilogues.
15320 (reposition_prologue_and_epilogue_notes): Rewrite epilogue
15321 scanning in terms of basic blocks.
15322 * insn-notes.def (CFA_RESTORE_STATE): New.
15323 * jump.c (returnjump_p_1): Accept EH_RETURN.
15324 (eh_returnjump_p_1, eh_returnjump_p): New.
15325 * reg-notes.def (CFA_DEF_CFA, CFA_ADJUST_CFA, CFA_OFFSET,
15326 CFA_REGISTER, CFA_RESTORE): New.
15327 * rtl.def (EH_RETURN): New.
15328 * rtl.h (eh_returnjump_p, maybe_copy_epilogue_insn): Declare.
15329
15330 * config/bfin/bfin.md (UNSPEC_VOLATILE_EH_RETURN): Remove.
15331 (eh_return_internal): Use eh_return rtx; split w/ epilogue.
15332
15333 * config/i386/i386.c (gen_push): Update cfa state.
15334 (pro_epilogue_adjust_stack): Add set_cfa argument. When true,
15335 add a CFA_ADJUST_CFA note.
15336 (ix86_dwarf_handle_frame_unspec): Remove.
15337 (ix86_expand_prologue): Update cfa state.
15338 (ix86_emit_restore_reg_using_pop): New.
15339 (ix86_emit_restore_regs_using_pop): New.
15340 (ix86_emit_leave): New.
15341 (ix86_emit_restore_regs_using_mov): Add CFA_RESTORE notes.
15342 (ix86_expand_epilogue): Add notes for unwinding the epilogue.
15343 * config/i386/i386.h (struct machine_cfa_state): New.
15344 (ix86_cfa_state): New.
15345 * config/i386/i386.md (UNSPEC_EH_RETURN): Remove.
15346 (eh_return_internal): Merge from eh_return_<mode>,
15347 use eh_return rtx, split w/ epilogue.
15348
15349 2009-05-29 Ian Lance Taylor <iant@google.com>
15350
15351 * builtins.c (validate_gimple_arglist): Don't use va_arg with
15352 enum type.
15353 * calls.c (emit_library_call_value_1): Likewise.
15354
15355 * c-typeck.c (c_build_va_arg): New function.
15356 * c-tree.h (c_build_va_arg): Declare.
15357 * c-parser.c (c_parser_postfix_expression): Call c_build_va_arg
15358 instead of build_va_arg.
15359
15360 2009-05-29 Eric Botcazou <ebotcazou@adacore.com>
15361
15362 * tree-ssa-loop-ivopts.c (strip_offset_1) <MULT_EXPR>: New case.
15363 (force_expr_to_var_cost) <NEGATE_EXPR>: Likewise.
15364 (ptr_difference_cost): Use affine combinations to compute it.
15365 (difference_cost): Likewise.
15366 (get_computation_cost_at): Compute more accurate cost for addresses
15367 if the ratio is a multiplier allowed in addresses.
15368 For non-addresses, consider that an additional offset or symbol is
15369 added only once.
15370
15371 2009-05-29 Jakub Jelinek <jakub@redhat.com>
15372
15373 * config/i386/i386.c (ix86_decompose_address): Avoid useless
15374 0 displacement. Add 0 displacement if base is %[er]bp or %r13.
15375
15376 * config/i386/i386.md (prefix_data16, prefix_rep): Set to 0 for
15377 TYPE_SSE{MULADD,4ARG,IADD1,CVT1} by default.
15378 (prefix_rex): For UNIT_MMX don't imply the prefix by default
15379 if MODE_DI.
15380 (prefix_extra): Default to 2 for TYPE_SSE{MULADD,4ARG} and
15381 to 1 for TYPE_SSE{IADD1,CVT1}.
15382 (prefix_vex_imm8): Removed.
15383 (length_vex): Only pass 1 as second argument to
15384 ix86_attr_length_vex_default if prefix_extra is 0.
15385 (modrm): For TYPE_INCDEC only set to 0 if not TARGET_64BIT.
15386 (length): For prefix vex computation use length_immediate
15387 attribute instead of prefix_vex_imm8.
15388 (cmpqi_ext_3_insn, cmpqi_ext_3_insn_rex64,
15389 addqi_ext_1, addqi_ext_1_rex64, *testqi_ext_0, andqi_ext_0,
15390 *andqi_ext_0_cc, *iorqi_ext_0, *xorqi_ext_0, *xorqi_cc_ext_1,
15391 *xorqi_cc_ext_1_rex64): Override modrm attribute to 1.
15392 (extendsidi2_rex64, extendhidi2, extendqidi2, extendhisi2,
15393 *extendhisi2_zext, extendqihi2, extendqisi2, *extendqisi2_zext): Emit
15394 a space in between the operands.
15395 (*anddi_1_rex64, *andsi_1): Likewise. Override prefix_rex to 1
15396 if one operand is 0xff and the other one si, di, bp or sp.
15397 (*andhi_1): Override prefix_rex to 1 if one operand is 0xff and the
15398 other one si, di, bp or sp.
15399 (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Add mode attribute.
15400 (*ffssi_1, *ffsdi_1, ctzsi2, ctzdi2): Add
15401 type and mode attributes.
15402 (*bsr, *bsr_rex64, *bsrhi): Add type attribute.
15403 (*cmpfp_i_mixed, *cmpfp_iu_mixed): For TYPE_SSECOMI, clear
15404 prefix_rep attribute and set prefix_data16 attribute iff MODE_DF.
15405 (*cmpfp_i_sse, *cmpfp_iu_sse): Clear prefix_rep attribute and set
15406 prefix_data16 attribute iff MODE_DF.
15407 (*movsi_1): For TYPE_SSEMOV MODE_SI set prefix_data16 attribute.
15408 (fix_trunc<mode>di_sse): Set prefix_rex attribute.
15409 (*adddi_4_rex64, *addsi_4): Use const128_operand instead of
15410 constm128_operand in length_immediate computation.
15411 (*addhi_4): Likewise. Fix mode attribute to MODE_HI.
15412 (anddi_1_rex64): Use movzbl/movzwl instead of movzbq/movzwq.
15413 (*avx_ashlti3, sse2_ashlti3, *avx_lshrti3, sse2_lshrti3): Set
15414 length_immediate attribute to 1.
15415 (x86_fnstsw_1, x86_fnstcw_1, x86_fldcw_1): Fix length attribute.
15416 (*movdi_1_rex64): Override prefix_rex or prefix_data16 attributes
15417 for certain alternatives.
15418 (*movdf_nointeger, *movdf_integer_rex64, *movdf_integer): Override
15419 prefix_data16 attribute if MODE_V1DF.
15420 (*avx_setcc<mode>, *sse_setcc<mode>, *sse5_setcc<mode>): Set
15421 length_immediate to 1.
15422 (set_got_rex64, set_rip_rex64): Remove length attribute, set
15423 length_address to 4, set mode attribute to MODE_DI.
15424 (set_got_offset_rex64): Likewise. Set length_immediate to 0.
15425 (fxam<mode>2_i387): Set length attribute to 4.
15426 (*prefetch_sse, *prefetch_sse_rex, *prefetch_3dnow,
15427 *prefetch_3dnow_rex): Override length_address attribute.
15428 (sse4_2_crc32<mode>): Override prefix_data16 and prefix_rex
15429 attributes.
15430 * config/i386/predicates.md (ext_QIreg_nomode_operand): New predicate.
15431 (constm128_operand): Removed.
15432 * config/i386/i386.c (memory_address_length): For
15433 disp && !index && !base in 64-bit mode account for SIB byte if
15434 print_operand_address can't optimize disp32 into disp32(%rip)
15435 and UNSPEC doesn't imply (%rip) addressing. Add 1 to length
15436 for fs: or gs: segment.
15437 (ix86_attr_length_immediate_default): When checking if shortform
15438 is possible, truncate immediate to the length of the non-shortened
15439 immediate.
15440 (ix86_attr_length_address_default): Ignore MEM_P operands
15441 with X constraint.
15442 (ix86_attr_length_vex_default): Only check for DImode on
15443 GENERAL_REG_P operands.
15444 * config/i386/sse.md (<sse>_comi, <sse>_ucomi): Clear
15445 prefix_rep attribute, set prefix_data16 attribute iff MODE_DF.
15446 (sse_cvttps2pi): Clear prefix_rep attribute.
15447 (sse2_cvttps2dq, *sse2_cvtpd2dq, sse2_cvtps2pd): Clear prefix_data16
15448 attribute.
15449 (*sse2_cvttpd2dq): Don't clear prefix_rep attribute.
15450 (*avx_ashr<mode>3, ashr<mode>3, *avx_lshr<mode>3, lshr<mode>3,
15451 *avx_ashl<mode>3, ashl<mode>3): Set length_immediate attribute to 1
15452 iff operand 2 is const_int_operand.
15453 (*vec_dupv4si, avx_shufpd256_1, *avx_shufpd_<mode>,
15454 sse2_shufpd_<mode>): Set length_immediate attribute to 1.
15455 (sse2_pshufd_1): Likewise. Set prefix attribute to maybe_vex
15456 instead of vex.
15457 (sse2_pshuflw_1, sse2_pshufhw_1): Set length_immediate to 1 and clear
15458 prefix_data16.
15459 (sse2_unpckhpd, sse2_unpcklpd, sse2_storehpd, *vec_concatv2df): Set
15460 prefix_data16 attribute for movlpd and movhpd instructions.
15461 (sse2_loadhpd, sse2_loadlpd, sse2_movsd): Likewise. Override
15462 length_immediate for shufpd instruction.
15463 (sse2_movntsi, sse3_lddqu): Clear prefix_data16 attribute.
15464 (avx_cmpp<avxmodesuffixf2c><mode>3,
15465 avx_cmps<ssemodesuffixf2c><mode>3, *avx_maskcmp<mode>3,
15466 <sse>_maskcmp<mode>3, <sse>_vmmaskcmp<mode>3,
15467 avx_shufps256_1, *avx_shufps_<mode>, sse_shufps_<mode>,
15468 *vec_dupv4sf_avx, *vec_dupv4sf): Set length_immediate attribute to 1.
15469 (*avx_cvtsi2ssq, *avx_cvtsi2sdq): Set length_vex attribute to 4.
15470 (sse_cvtsi2ssq, sse2_cvtsi2sdq): Set prefix_rex attribute to 1.
15471 (sse2_cvtpi2pd, sse_loadlps, sse2_storelpd): Override
15472 prefix_data16 attribute for the first alternative to 1.
15473 (*avx_loadlps): Override length_immediate for the first alternative.
15474 (*vec_concatv2sf_avx): Override length_immediate and prefix_extra
15475 attributes for second alternative.
15476 (*vec_concatv2sf_sse4_1): Override length_immediate and
15477 prefix_data16 attributes for second alternative.
15478 (*vec_setv4sf_avx, *avx_insertps, vec_extract_lo_<mode>,
15479 vec_extract_hi_<mode>, vec_extract_lo_v16hi,
15480 vec_extract_hi_v16hi, vec_extract_lo_v32qi,
15481 vec_extract_hi_v32qi): Set prefix_extra and length_immediate to 1.
15482 (*vec_setv4sf_sse4_1, sse4_1_insertps, *sse4_1_extractps): Set
15483 prefix_data16 and length_immediate to 1.
15484 (*avx_mulv2siv2di3, *avx_mulv4si3, sse4_2_gtv2di3): Set prefix_extra
15485 to 1.
15486 (*avx_<code><mode>3, *avx_eq<mode>3, *avx_gt<mode>3): Set
15487 prefix_extra attribute for variants that don't have 0f prefix alone.
15488 (*avx_pinsr<ssevecsize>): Likewise. Set length_immediate to 1.
15489 (*sse4_1_pinsrb, *sse2_pinsrw, *sse4_1_pinsrd, *sse4_1_pextrb,
15490 *sse4_1_pextrb_memory, *sse2_pextrw, *sse4_1_pextrw_memory,
15491 *sse4_1_pextrd): Set length_immediate to 1.
15492 (*sse4_1_pinsrd): Likewise. Set prefix_extra to 1.
15493 (*sse4_1_pinsrq, *sse4_1_pextrq): Set prefix_rex and length_immediate
15494 to 1.
15495 (*vec_extractv2di_1_rex64_avx, *vec_extractv2di_1_rex64,
15496 *vec_extractv2di_1_avx, *vec_extractv2di_1_sse2): Override
15497 length_immediate to 1 for second alternative.
15498 (*vec_concatv2si_avx, *vec_concatv2di_rex64_avx): Override
15499 prefix_extra and length_immediate attributes for the first
15500 alternative.
15501 (vec_concatv2si_sse4_1): Override length_immediate to 1 for the
15502 first alternative.
15503 (*vec_concatv2di_rex64_sse4_1): Likewise. Override prefix_rex
15504 to 1 for the first and third alternative.
15505 (*vec_concatv2di_rex64_sse): Override prefix_rex to 1 for the second
15506 alternative.
15507 (*sse2_maskmovdqu, *sse2_maskmovdqu_rex64): Override length_vex
15508 attribute.
15509 (*sse_sfence, sse2_mfence, sse2_lfence): Override length_address
15510 attribute to 0.
15511 (*avx_phaddwv8hi3, *avx_phadddv4si3, *avx_phaddswv8hi3,
15512 *avx_phsubwv8hi3, *avx_phsubdv4si3, *avx_phsubswv8hi,
15513 *avx_pmaddubsw128, *avx_pmulhrswv8hi3, *avx_pshufbv16qi3,
15514 *avx_psign<mode>3): Set prefix_extra attribute to 1.
15515 (ssse3_phaddwv4hi3, ssse3_phadddv2si3, ssse3_phaddswv4hi3,
15516 ssse3_phsubwv4hi3, ssse3_phsubdv2si3, ssse3_phsubswv4hi3,
15517 ssse3_pmaddubsw, *ssse3_pmulhrswv4hi, ssse3_pshufbv8qi3,
15518 ssse3_psign<mode>3): Override prefix_rex attribute.
15519 (*avx_palignrti): Override prefix_extra and length_immediate to 1.
15520 (ssse3_palignrti): Override length_immediate to 1.
15521 (ssse3_palignrdi): Override length_immediate to 1, override
15522 prefix_rex attribute.
15523 (abs<mode>2): Override prefix_rep to 0, override prefix_rex attribute.
15524 (sse4a_extrqi): Override length_immediate to 2.
15525 (sse4a_insertqi): Likewise. Override prefix_data16 to 0.
15526 (sse4a_insertq): Override prefix_data16 to 0.
15527 (avx_blendp<avxmodesuffixf2c><avxmodesuffix>,
15528 avx_blendvp<avxmodesuffixf2c><avxmodesuffix>,
15529 avx_dpp<avxmodesuffixf2c><avxmodesuffix>, *avx_mpsadbw,
15530 *avx_pblendvb, *avx_pblendw, avx_roundp<avxmodesuffixf2c>256,
15531 avx_rounds<avxmodesuffixf2c>256): Override prefix_extra
15532 and length_immediate to 1.
15533 (sse4_1_blendp<ssemodesuffixf2c>, sse4_1_dpp<ssemodesuffixf2c>,
15534 sse4_2_pcmpestr, sse4_2_pcmpestri, sse4_2_pcmpestrm,
15535 sse4_2_pcmpestr_cconly, sse4_2_pcmpistr, sse4_2_pcmpistri,
15536 sse4_2_pcmpistrm, sse4_2_pcmpistr_cconly): Override prefix_data16
15537 and length_immediate to 1.
15538 (sse4_1_blendvp<ssemodesuffixf2c>): Override prefix_data16 to 1.
15539 (sse4_1_mpsadbw, sse4_1_pblendw): Override length_immediate to 1.
15540 (*avx_packusdw, avx_vtestp<avxmodesuffixf2c><avxmodesuffix>,
15541 avx_ptest256): Override prefix_extra to 1.
15542 (sse4_1_roundp<ssemodesuffixf2c>, sse4_1_rounds<ssemodesuffixf2c>):
15543 Override prefix_data16 and length_immediate to 1.
15544 (sse5_pperm_zero_v16qi_v8hi, sse5_pperm_sign_v16qi_v8hi,
15545 sse5_pperm_zero_v8hi_v4si, sse5_pperm_sign_v8hi_v4si,
15546 sse5_pperm_zero_v4si_v2di, sse5_pperm_sign_v4si_v2di,
15547 sse5_vrotl<mode>3, sse5_ashl<mode>3, sse5_lshl<mode>3): Override
15548 prefix_data16 to 0 and prefix_extra to 2.
15549 (sse5_rotl<mode>3, sse5_rotr<mode>3): Override length_immediate to 1.
15550 (sse5_frcz<mode>2, sse5_vmfrcz<mode>2): Don't override prefix_extra
15551 attribute.
15552 (*sse5_vmmaskcmp<mode>3, sse5_com_tf<mode>3,
15553 sse5_maskcmp<mode>3, sse5_maskcmp<mode>3, sse5_maskcmp_uns<mode>3):
15554 Override prefix_data16 and prefix_rep to 0, length_immediate to 1
15555 and prefix_extra to 2.
15556 (sse5_maskcmp_uns2<mode>3, sse5_pcom_tf<mode>3): Override
15557 prefix_data16 to 0, length_immediate to 1 and prefix_extra to 2.
15558 (*avx_aesenc, *avx_aesenclast, *avx_aesdec, *avx_aesdeclast,
15559 avx_vpermilvar<mode>3,
15560 avx_vbroadcasts<avxmodesuffixf2c><avxmodesuffix>,
15561 avx_vbroadcastss256, avx_vbroadcastf128_p<avxmodesuffixf2c>256,
15562 avx_maskloadp<avxmodesuffixf2c><avxmodesuffix>,
15563 avx_maskstorep<avxmodesuffixf2c><avxmodesuffix>):
15564 Override prefix_extra to 1.
15565 (aeskeygenassist, pclmulqdq): Override length_immediate to 1.
15566 (*vpclmulqdq, avx_vpermil<mode>, avx_vperm2f128<mode>3,
15567 vec_set_lo_<mode>, vec_set_hi_<mode>, vec_set_lo_v16hi,
15568 vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Override
15569 prefix_extra and length_immediate to 1.
15570 (*avx_vzeroall, avx_vzeroupper, avx_vzeroupper_rex64): Override
15571 modrm to 0.
15572 (*vec_concat<mode>_avx): Override prefix_extra and length_immediate
15573 to 1 for the first alternative.
15574 * config/i386/mmx.md (*mov<mode>_internal_rex64): Override
15575 prefix_rep, prefix_data16 and/or prefix_rex attributes in certain
15576 cases.
15577 (*mov<mode>_internal_avx, *movv2sf_internal_rex64,
15578 *movv2sf_internal_avx, *movv2sf_internal): Override
15579 prefix_rep attribute for certain alternatives.
15580 (*mov<mode>_internal): Override prefix_rep or prefix_data16
15581 attributes for certain alternatives.
15582 (*movv2sf_internal_rex64_avx): Override prefix_rep and length_vex
15583 attributes for certain alternatives.
15584 (*mmx_addv2sf3, *mmx_subv2sf3, *mmx_mulv2sf3,
15585 *mmx_<code>v2sf3_finite, *mmx_<code>v2sf3, mmx_rcpv2sf2,
15586 mmx_rcpit1v2sf3, mmx_rcpit2v2sf3, mmx_rsqrtv2sf2, mmx_rsqit1v2sf3,
15587 mmx_haddv2sf3, mmx_hsubv2sf3, mmx_addsubv2sf3,
15588 *mmx_eqv2sf3, mmx_gtv2sf3, mmx_gev2sf3, mmx_pf2id, mmx_pf2iw,
15589 mmx_pi2fw, mmx_floatv2si2, mmx_pswapdv2sf2, *mmx_pmulhrwv4hi3,
15590 mmx_pswapdv2si2): Set prefix_extra attribute to 1.
15591 (mmx_ashr<mode>3, mmx_lshr<mode>3, mmx_ashl<mode>3): Set
15592 length_immediate to 1 if operand 2 is const_int_operand.
15593 (*mmx_pinsrw, mmx_pextrw, mmx_pshufw_1, *vec_dupv4hi,
15594 *vec_extractv2si_1): Set length_immediate attribute to 1.
15595 (*mmx_uavgv8qi3): Override prefix_extra attribute to 1 if
15596 using old 3DNOW insn rather than SSE/3DNOW_A.
15597 (mmx_emms, mmx_femms): Clear modrm attribute.
15598
15599 2009-05-29 Martin Jambor <mjambor@suse.cz>
15600
15601 * tree-sra.c: New implementation of SRA.
15602
15603 * params.def (PARAM_SRA_MAX_STRUCTURE_SIZE): Removed.
15604 (PARAM_SRA_MAX_STRUCTURE_COUNT): Removed.
15605 (PARAM_SRA_FIELD_STRUCTURE_RATIO): Removed.
15606 * params.h (SRA_MAX_STRUCTURE_SIZE): Removed.
15607 (SRA_MAX_STRUCTURE_COUNT): Removed.
15608 (SRA_FIELD_STRUCTURE_RATIO): Removed.
15609 * doc/invoke.texi (sra-max-structure-size): Removed.
15610 (sra-field-structure-ratio): Removed.
15611
15612 2009-05-29 Jakub Jelinek <jakub@redhat.com>
15613
15614 PR middle-end/40291
15615 * builtins.c (expand_builtin_memcmp): Convert len to sizetype
15616 before expansion.
15617
15618 2009-05-29 Andrey Belevantsev <abel@ispras.ru>
15619
15620 PR rtl-optimization/40101
15621 * sel-sched-ir.c (get_seqno_by_preds): Allow returning negative
15622 seqno. Adjust comment.
15623 * sel-sched.c (find_seqno_for_bookkeeping): Assert that when
15624 inserting bookkeeping before a jump, the jump is not scheduled.
15625 When no positive seqno found, provide a value. Add comment.
15626
15627 2009-05-29 Richard Guenther <rguenther@suse.de>
15628
15629 * tree-ssa-alias.c (nonaliasing_component_refs_p): Remove
15630 short-cutting on the first component.
15631
15632 2009-05-29 Jakub Jelinek <jakub@redhat.com>
15633
15634 PR middle-end/39958
15635 * omp-low.c (scan_omp_1_op): Call remap_type on TREE_TYPE
15636 for trees other than decls/types.
15637
15638 2009-05-29 Richard Guenther <rguenther@suse.de>
15639
15640 * tree-ssa-operands.c (get_expr_operands): Do not handle
15641 INDIRECT_REFs in the handled-component case. Remove
15642 unused get_ref_base_and_extent case.
15643 * tree-dfa.c (get_ref_base_and_extent): Avoid calling
15644 tree_low_cst and host_integerp where possible.
15645 * tree-ssa-structalias.c (equiv_class_label_eq): Check hash
15646 codes for equivalence.
15647 * dce.c (find_call_stack_args): Avoid redundant bitmap queries.
15648
15649 2009-05-29 David Billinghurst <billingd@gcc.gnu.org>
15650
15651 * config.gcc: Add i386/t-fprules-softfp and soft-fp/t-softfp
15652 to tmake_file for i[34567]86-*-cygwin*.
15653
15654 2009-05-29 Jakub Jelinek <jakub@redhat.com>
15655
15656 PR target/40017
15657 * config/rs6000/rs6000-c.c (_Bool_keyword): New variable.
15658 (altivec_categorize_keyword, init_vector_keywords,
15659 rs6000_cpu_cpp_builtins): Define _Bool as conditional macro
15660 similar to bool.
15661
15662 2009-05-29 Kai Tietz <kai.tietz@onevision.com>
15663
15664 * tree.c (handle_dll_attribute): Check if node is
15665 of kind FUNCTION_DECL for DECL_DECLARED_INLINE_P check.
15666
15667 2009-05-29 Richard Earnshaw <rearnsha@arm.com>
15668
15669 * config/arm/thumb2.md (thumb2_zero_extendsidi2): Add a split
15670 component.
15671 (thumb2_zero_extendqidi2): Likewise.
15672
15673 2009-05-28 Kaz Kojima <kkojima@gcc.gnu.org>
15674
15675 * config/sh/sh.c (sh_expand_t_scc): Use gen_xorsi3_movrt
15676 instead of gen_movrt.
15677 * config/sh/sh.md (movrt): Remove.
15678
15679 2009-05-28 Steve Ellcey <sje@cup.hp.com>
15680
15681 * doc/invoke.texi (IA-64 Options):
15682 Add -msdata, -mfused-madd, -mno-inline-float-divide,
15683 -mno-inline-int-divide, -mno-inline-sqrt, -msched-spec-ldc,
15684 -msched-spec-control-ldc, -msched-prefer-non-data-spec-insns,
15685 -msched-prefer-non-control-spec-insns,
15686 -msched-stop-bits-after-every-cycle,
15687 -msched-count-spec-in-critical-path,
15688 -msel-sched-dont-check-control-spec, -msched-fp-mem-deps-zero-cost
15689 -msched-max-memory-insns-hard-limit, -msched-max-memory-insns.
15690 Remove -mt, -pthread, -msched-ldc, -mno-sched-control-ldc,
15691 and -msched-spec-verbose.
15692
15693 2009-05-28 Joseph Myers <joseph@codesourcery.com>
15694
15695 * config/arm/lib1funcs.asm (__clear_cache): Define if L_clear_cache.
15696 * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Define to give an
15697 error if used.
15698 * config/arm/t-linux-eabi (LIB1ASMFUNCS): Add _clear_cache.
15699
15700 2009-05-28 Richard Guenther <rguenther@suse.de>
15701
15702 * tree-ssa-alias.c (ao_ref_init): New function.
15703 (ao_ref_base): Likewise.
15704 (ao_ref_base_alias_set): Likewise.
15705 (ao_ref_alias_set): Likewise.
15706 (refs_may_alias_p_1): Change signature.
15707 (refs_may_alias_p): Adjust.
15708 (refs_anti_dependent_p): Likewise.
15709 (refs_output_dependent_p): Likewise.
15710 (call_may_clobber_ref_p_1): Change signature.
15711 (call_may_clobber_ref_p): Adjust.
15712 (stmt_may_clobber_ref_p_1): New function split out from ...
15713 (stmt_may_clobber_ref_p): ... here.
15714 (maybe_skip_until): Adjust signature.
15715 (get_continuation_for_phi): Likewise.
15716 (walk_non_aliased_vuses): Likewise.
15717 * tree-ssa-alias.h (struct ao_ref_s): New structure type.
15718 (ao_ref_init): Declare.
15719 (ao_ref_base): Likewise.
15720 (ao_ref_alias_set): Likewise.
15721 (stmt_may_clobber_ref_p_1): Likewise.
15722 (walk_non_aliased_vuses): Adjust.
15723 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): New function.
15724 (get_ref_from_reference_ops): remove.
15725 (vn_reference_lookup_2): Adjust signature.
15726 (vn_reference_lookup_3): Do not re-build trees. Handle unions.
15727 (vn_reference_lookup_pieces): Adjust signature, do not re-build trees.
15728 (vn_reference_lookup): Adjust.
15729 (vn_reference_insert): Likewise.
15730 (vn_reference_insert_pieces): Adjust signature.
15731 (visit_reference_op_call): Adjust.
15732 * tree-ssa-pre.c (get_expr_type): Simplify.
15733 (phi_translate_1): Adjust.
15734 (compute_avail): Likewise.
15735 (translate_vuse_through_block): Do not re-build trees.
15736 (value_dies_in_block_x): Likewise.
15737 * tree-ssa-sccvn.h (struct vn_reference_s): Add type and alias-set
15738 fields.
15739 (vn_reference_lookup_pieces): Adjust declaration.
15740 (vn_reference_insert_pieces): Likewise.
15741
15742 2009-05-28 Benjamin Kosnik <bkoz@redhat.com>
15743
15744 * tree-ssa-copy.c (replace_exp_1): Move op for warning-free use
15745 with checking disabled.
15746
15747 2009-05-28 Dave Korn <dave.korn.cygwin@gmail.com>
15748
15749 PR target/37216
15750
15751 * configure.ac (HAVE_GAS_ALIGNED_COMM): Add autoconf test and
15752 macro definition for support of three-operand format aligned
15753 .comm directive in assembler on cygwin/pe/mingw target OS.
15754 * configure: Regenerate.
15755 * config.h: Regenerate.
15756
15757 * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Use
15758 aligned form of .comm directive if -mpe-aligned-commons is in effect.
15759 * config/i386/cygming.opt (-mpe-aligned-commons): Add new option.
15760
15761 * doc/invoke.texi (-mpe-aligned-commons): Document new target option.
15762 * doc/tm.texi (ASM_OUTPUT_COMMON): Document zero size commons.
15763
15764 2009-05-28 Ira Rosen <irar@il.ibm.com>
15765
15766 PR tree-optimization/40254
15767 * tree-data-ref.c (dr_analyze_innermost): Take POFFSET into account
15768 in analysis of basic blocks.
15769
15770 2009-05-28 Adam Nemet <anemet@caviumnetworks.com>
15771
15772 PR middle-end/33699
15773 * target.h (struct gcc_target): Fix indentation. Add const_anchor.
15774 * target-def.h (TARGET_CONST_ANCHOR): New macro.
15775 (TARGET_INITIALIZER): Use it.
15776 * cse.c (CHEAPER): Move it up to the other macros.
15777 (insert): Rename this ...
15778 (insert_with_costs): ... to this. Add cost parameters. Update
15779 function comment.
15780 (insert): New function. Call insert_with_costs.
15781 (compute_const_anchors, insert_const_anchor, insert_const_anchors,
15782 find_reg_offset_for_const, try_const_anchors): New functions.
15783 (cse_insn): Call try_const_anchors. Adjust cost of src_related
15784 when using a const-anchor. Call insert_const_anchors.
15785 * config/mips/mips.c (mips_set_mips16_mode): Set targetm.const_anchor.
15786 * doc/tm.texi (Misc): Document TARGET_CONST_ANCHOR.
15787
15788 2009-05-28 Alexandre Oliva <aoliva@redhat.com>
15789
15790 * tree-inline.c (remap_decls): Enable nonlocalized variables
15791 when not optimizing.
15792
15793 2009-05-28 Alexandre Oliva <aoliva@redhat.com>
15794
15795 * tree-ssa-live.c (remove_unused_locals): Skip when not optimizing.
15796 Simplify other tests involving optimize.
15797
15798 2009-05-27 Tom Tromey <tromey@redhat.com>
15799
15800 * unwind-dw2.c (_Unwind_DebugHook): New function.
15801 (uw_install_context): Call _Unwind_DebugHook.
15802
15803 2009-05-27 Tom Tromey <tromey@redhat.com>
15804
15805 * system.h (CONST_CAST2): Use C++ const_cast when compiled as C++
15806
15807 2009-05-27 Ian Lance Taylor <iant@google.com>
15808
15809 * Makefile.in (LINKER, LINKER_FLAGS): Define.
15810 (LINKER_FOR_BUILD, BUILD_LINKERFLAGS): Define.
15811 (ALL_LINKERFLAGS): Define.
15812 (xgcc$(exeext)): Change $(COMPILER) to $(LINKER).
15813 (cpp$(exeext), cc1-dummy$(exeext), cc1$(exeext)): Likewise.
15814 (collect2$(exeext), mips-tfile, mips-tdump): Likewise.
15815 (gcov$(exeext), gcov-dump$(exeext)): Likewise.
15816 (build/gen%$(build_exeext)): Change $(COMPILER_FOR_BUILD) to
15817 $(LINKER_FOR_BUILD).
15818 (build/gcov-iov$(build_exeext)): Likewise.
15819
15820 2009-05-27 Julian Brown <julian@codesourcery.com>
15821
15822 * gcse.c (target.h): Include.
15823 (can_assign_to_reg_without_clobbers_p): Check that the target allows
15824 copy of argument to a pseudo register.
15825
15826 2009-05-27 Diego Novillo <dnovillo@google.com>
15827
15828 * tree-ssa-live.c (dump_scope_block): Document arguments.
15829 (dump_scope_blocks): Document.
15830 (debug_scope_blocks): New.
15831 * tree-flow.h (debug_scope_blocks): Declare.
15832
15833 2009-05-21 Denis Chertykov <denisc@overta.ru>
15834
15835 * doc/contrib.texi (Contributors): Add myself to the list.
15836
15837 2009-05-27 Olivier Hainque <hainque@adacore.com>
15838
15839 * expr.c (target_align): New function. Alignment the TARGET of an
15840 assignment may be assume to have.
15841 (highest_pow2_factor_for_target): Use it instead of relying on
15842 immediate tree attributes of TARGET, not necessarily honored when
15843 intermediate bitfields are involved.
15844
15845 2009-05-27 H.J. Lu <hongjiu.lu@intel.com>
15846
15847 PR target/40266
15848 * config/i386/driver-i386.c (host_detect_local_cpu): Support
15849 AVX, SSE4, AES, PCLMUL and POPCNT.
15850
15851 2009-05-27 Diego Novillo <dnovillo@google.com>
15852
15853 * tree-pretty-print.c (dump_location): New.
15854 (dump_generic_node): Call it.
15855 Factor code to handle BLOCK nodes ...
15856 (dump_block_node): ... here.
15857
15858 2009-05-27 Rafael Avila de Espindola <espindola@google.com>
15859
15860 * Makefile.in (GCC_PLUGIN_H): New. Replace all uses of gcc-plugin.h
15861 with it.
15862 * doc/plugins.texi: Document that gcc-plugin.h must be the first to be
15863 included.
15864 * gcc-plugin.h: Include config.h and system.h.
15865 (IN_GCC): Define if not defined.
15866
15867 2009-05-27 Hans-Peter Nilsson <hp@axis.com>
15868
15869 PR middle-end/40249
15870 * Makefile.in (CRTSTUFF_CFLAGS): Replace -fno-inline-functions
15871 with -fno-inline.
15872
15873 2009-05-27 Shujing Zhao <pearly.zhao@oracle.com>
15874
15875 * config/m32r/m32r.c: Use REG_P, MEM_P and CONST_INT_P where
15876 applicable.
15877 * config/m32r/m32r.h: Ditto.
15878 * config/m32r/m32r.md: Ditto.
15879 * config/m32r/predicates.md: Ditto.
15880
15881 2009-05-27 Alexandre Oliva <aoliva@redhat.com>
15882
15883 * cgraph.c (dump_cgraph_node): Honor -fdump-noaddr.
15884
15885 2009-05-26 Basile Starynkevitch <basile@starynkevitch.net>
15886
15887 * doc/plugins.texi
15888 (Loading plugins): typo.
15889 (Plugin callbacks): Documented PLUGIN_INFO, PLUGIN_GGC_START,
15890 PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
15891 (Interacting with the GCC Garbage Collector): Added new section.
15892 (Giving information about a plugin): Added new section for
15893 PLUGIN_INFO.
15894 * ggc.h (ggc_register_root_tab): Added declaration.
15895 * gcc-plugin.h (PLUGIN_GGC_START, PLUGIN_GGC_MARKING)
15896 (PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS): Added new events.
15897 (register_callback): Improved comment in declaration.
15898 * ggc-common.c (const_ggc_root_tab_t) Added new typedef for vectors.
15899 (extra_root_vec) Added static variable for dynamic roots registration.
15900 (ggc_register_root_tab) Added new routine.
15901 (ggc_mark_roots) Added iteration inside extra_root_vec, and invoke
15902 PLUGIN_GGC_MARKING event.
15903 * ggc-zone.c: Include plugin.h.
15904 (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
15905 * ggc-page.c: Include plugin.h.
15906 (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
15907 * plugin.c (plugin_event_name): added names of PLUGIN_GGC_START,
15908 PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS
15909 (register_callback): check lack of callbacks for
15910 pseudo-events. Added handling of PLUGIN_REGISTER_GGC_ROOTS,
15911 PLUGIN_GGC_START, PLUGIN_GGC_MARKING, PLUGIN_GGC_END.
15912 (invoke_plugin_callbacks): Handle PLUGIN_GGC_START,
15913 PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
15914 * Makefile.in (ggc-common.o, ggc-zone.o, ggc-page.o): Added
15915 dependency on plugin.h.
15916 (plugin.o): Added dependency on ggc.h...
15917
15918 2009-05-26 Richard Guenther <rguenther@suse.de>
15919
15920 PR middle-end/40248
15921 Revert
15922 * expr.c (expand_expr_real_1): Avoid calling do_store_flag
15923 with mismatched comparison modes.
15924
15925 * expr.c (expand_expr_real_1): Expand the operand of a
15926 VIEW_CONVERT_EXPR in its natural mode.
15927
15928 2009-05-26 Ian Lance Taylor <iant@google.com>
15929
15930 * Makefile.in (COMPILER, COMPILER_FLAGS): Define.
15931 (COMPILER_FOR_BUILD, BUILD_COMPILERFLAGS): Define.
15932 (ALL_COMPILERFLAGS): Define.
15933 (.c.o, xgcc$(exeext), cpp$(exeext)): Use $(COMPILER).
15934 (cc1-dummy$(exeext), cc1$(exeext)): Likewise.
15935 (collect2$(exeext), collect2.o): Likewise.
15936 (c-opts.o, c-cppbuiltin.o, c-pch.o, gcc.o, gccspec.o): Likewise.
15937 (gcc-options.o, version.o, prefix.o, toplev.o): Likewise.
15938 ($(out_object_file), mips-tfile, mips-tdump): Likewise.
15939 (libbackend.o, intl.o, cppdefault.o): Likewise.
15940 (gcov$(exeext), gcov-dump$(exeext)): Likewise.
15941 (build/%.o): Use $(COMPILER_FOR_BUILD).
15942 (build/gen%$(build_exeext)): Likewise.
15943 (build/gcov-iov$(build_exeext)): LIkewise.
15944 * config/t-darwin (darwin.o): Use $(COMPILER).
15945 (darwin-c.o, darwin-f.o, darwin-driver.o): Likewise.
15946 * config/t-sol2 (sol2-c.o): Likewise.
15947 (sol2.o): Likewise.
15948 * config/t-vxworks (vxworks.o): Likewise.
15949 * config/x-darwin (host-darwin.o): Likewise.
15950 * config/x-hpux (host-hpux.o): Likewise.
15951 * config/x-linux (host-linux.o): Likewise.
15952 * config/x-solaris (host-solaris.o): Likewise.
15953 * config/alpha/x-alpha (driver-alpha.o): Likewise.
15954 * config/arm/t-arm (arm-c.o): Likewise.
15955 * config/arm/t-pe (pe.o): Likewise.
15956 * config/arm/t-wince-pe (pe.o): Likewise.
15957 * config/i386/t-cygming (winnt.o): Likewise.
15958 (winnt-cxx.o, winnt-stubs.o, msformat-c.o): Likewise.
15959 * config/i386/t-cygwin (cygwin1.o): Likewise.
15960 (cygwin2.o): Likewise.
15961 * config/i386/t-i386 (i386-c.o): Likewise.
15962 * config/i386/t-interix (winnt.o): Likewise.
15963 * config/i386/t-netware (netware.o): Likewise.
15964 * config/i386/t-nwld (nwld.o): Likewise.
15965 * config/i386/x-darwin (host-i386-darwin.o): Likewise.
15966 * config/i386/x-i386 (driver-i386.o): Likewise.
15967 * config/i386/x-cygwin (host-cygwin.o): Likewise.
15968 * config/i386/x-mingw32 (host-mingw32.o): Likewise.
15969 * config/ia64/t-ia64 (ia64-c.o): Likewise.
15970 * config/m32c/t-m32c (m32c-pragma.o): Likewise.
15971 * config/mips/x-native (driver-native.o): Likewise.
15972 * config/rs6000/t-rs6000 (rs6000-c.o): Likewise.
15973 * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
15974 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
15975 * config/rs6000/x-rs6000 (driver-rs6000.o): Likewise.
15976 * config/score/t-score-elf (score7.o): Likewise.
15977 (score3.o): Likewise.
15978 * config/sh/t-sh (sh-c.o): Likewise.
15979 * config/sh/t-symbian (sh-c.o): Likewise.
15980 (symbian.o): Likewise.
15981 * config/spu/t-spu-elf (spu-c.o): Likewise.
15982 * config/v850/t-v850 (v850-c.o): Likewise.
15983 * config/v850/t-v850e (v850-c.o): Likewise.
15984
15985 2009-05-26 Richard Guenther <rguenther@suse.de>
15986
15987 PR tree-optimization/40122
15988 * tree-ssa-ccp.c (ccp_fold): Fold vector CONSTRUCTORs to
15989 VECTOR_CSTs if possible.
15990 (fold_gimple_assign): Likewise.
15991
15992 2009-05-26 Richard Guenther <rguenther@suse.de>
15993
15994 PR middle-end/40252
15995 * fold-const.c (fold_binary): Use the correct types for building
15996 rotates.
15997
15998 2009-05-26 Richard Guenther <rguenther@suse.de>
15999
16000 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove
16001 redundant calls to merge_alias_info.
16002 (bump_vector_ptr): Likewise.
16003 * tree-ssa-copy.c (merge_alias_info): Remove.
16004 (replace_exp_1): Remove call to merge_alias_info.
16005 (propagate_tree_value): Likewise.
16006 (fini_copy_prop): Propagate points-to info.
16007 * tree-flow.h (merge_alias_info): Remove.
16008
16009 2009-05-07 Hariharan Sandanagobalane <hariharan@picochip.com>
16010
16011 * config/picochip/picochip.C (PARAM_INLINE_CALL_COST): Remove.
16012
16013 2009-05-25 Jan Hubicka <jh@suse.cz>
16014
16015 * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
16016 * cgraph.h (struct inline_summary): New filed self_wize,
16017 size_inlining_benefit, self_time and time_inlining_benefit.
16018 (struct cgraph_global_info): Replace insns by time ans size fields.
16019 * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
16020 (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
16021 (ipcp_update_callgraph): Do not touch function bodies.
16022 * ipa-inline.c: Include except.h
16023 (MAX_TIME): New constant.
16024 (overall_insns): Remove.
16025 (leaf_node_p): New.
16026 (overall_size, max_benefit): New static variables.
16027 (cgraph_estimate_time_after_inlining): New function.
16028 (cgraph_estimate_size_after_inlining): Rewrite using benefits.
16029 (cgraph_clone_inlined_nodes): Update size.
16030 (cgraph_mark_inline_edge): Update size.
16031 (cgraph_estimate_growth): Use size info.
16032 (cgraph_check_inline_limits): Check size.
16033 (cgraph_default_inline_p): Likewise.
16034 (cgraph_edge_badness): Compute badness based on benefit and size cost.
16035 (cgraph_decide_recursive_inlining): Check size.
16036 (cgraph_decide_inlining_of_small_function): Update size; dump sizes
16037 and times.
16038 (cgraph_decide_inlining): Likewise.
16039 (cgraph_decide_inlining_incrementally): Likewise; honor
16040 PARAM_EARLY_INLINING_INSNS.
16041 (likely_eliminated_by_inlining_p): New predicate.
16042 (estimate_function_body_sizes): New function.
16043 (compute_inline_parameters): Use it.
16044 * except.c (must_not_throw_labels): New function.
16045 * except.h (must_not_throw_labels): Declare.
16046 * tree-inline.c (init_inline_once): Kill inlining_weigths
16047 * tree-ssa-structalias.c: Avoid uninitialized warning.
16048 * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
16049 (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
16050 (PARAM_INLINE_CALL_COST): Remove.
16051 (PARAM_EARLY_INLINING_INSNS): New.
16052
16053 2009-05-25 Richard Guenther <rguenther@suse.de>
16054
16055 PR tree-optimization/36327
16056 * tree-ssa-alias.c (walk_non_aliased_vuses): Add second walker
16057 callback for reference translation or lookup at the point of may-defs.
16058 * tree-ssa-alias.h (walk_non_aliased_vuses): Adjust prototype.
16059 * tree-ssa-sccvn.c (get_ref_from_reference_ops): Bail out
16060 for union COMPONENT_REFs.
16061 (vn_reference_lookup_3): New callback. Lookup from memset
16062 and CONSTRUCTOR assignment, translate through struct copies.
16063 (vn_reference_lookup_pieces): Make sure to not free the
16064 passed operands array. Adjust walk_non_aliased_vuses call.
16065 (vn_reference_lookup): Adjust walk_non_aliased_vuses call,
16066 make sure we do not leak memory.
16067
16068 2009-05-25 Richard Guenther <rguenther@suse.de>
16069
16070 * tree-ssa-alias.h (dump_points_to_solution): Declare.
16071 * tree-inline.c (expand_call_inline): Reset the escaped and
16072 callused solutions.
16073 * tree-ssa-structalias.c (pass_build_ealias): New.
16074 * tree-pass.h (pass_build_ealias): Declare.
16075 * passes.c (init_optimization_passes): Add PTA during
16076 early optimizations.
16077 * tree-ssa-alias.c (dump_alias_info): Dump the ESCAPED
16078 and CALLUSED solutions.
16079 (dump_points_to_solution): New function, split out from ...
16080 (dump_points_to_info_for): ... here.
16081 * tree-parloops.c (parallelize_loops): Reset the escaped and
16082 callused solutions.
16083
16084 2009-05-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
16085
16086 PR bootstrap/40027
16087 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Only define if missing.
16088 * config/i386/sol2.h [!TARGET_GNU_LD] (USE_HIDDEN_LINKONCE): Define.
16089
16090 2009-05-25 Ira Rosen <irar@il.ibm.com>
16091
16092 PR tree-optimization/40238
16093 * tree-vect-stmts.c (vect_init_vector): Insert initialization
16094 statements after basic block's labels.
16095 * tree-vect-slp.c (vect_slp_transform_bb): Call destroy_bb_vec_info()
16096 to free the allocated memory.
16097
16098 2009-05-24 Kaz Kojima <kkojima@gcc.gnu.org>
16099
16100 * gcc/config/sh/sh.c (sh_set_return_address): Mark store of
16101 return address with a USE.
16102
16103 2009-05-24 Richard Guenther <rguenther@suse.de>
16104
16105 PR middle-end/40233
16106 * tree.c (make_vector_type): Build the TYPE_DEBUG_REPRESENTATION_TYPEs
16107 array type from the main variant of the inner type.
16108
16109 2009-05-24 Jan-Benedict Glaw <jbglaw@lug-owl.de>
16110
16111 * config/vax/vax-protos.h (legitimate_constant_address_p): Change
16112 definition to bool (from int) to un-break build.
16113 (legitimate_constant_p, vax_mode_dependent_address_p): Likewise.
16114
16115 2009-05-24 Paolo Bonzini <bonzini@gnu.org>
16116
16117 * tree-ssa-operands.h (push_stmt_changes, pop_stmt_changes,
16118 discard_stmt_changes): Delete.
16119 * tree-ssa-operands.c (scb_stack): Delete.
16120 (init_ssa_operands): Do not initialize it.
16121 (fini_ssa_operands): Do not free it.
16122 (push_stmt_changes, pop_stmt_changes, discard_stmt_changes): Delete.
16123
16124 * tree-cfg.c (replace_uses_by): Replace pop_stmt_changes with
16125 update_stmt, remove the others. Fix comments.
16126 * tree-dfa.c (optimize_stack_restore): Likewise.
16127 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Likewise.
16128 * tree-ssa-loop-ivopts.c (rewrite_use): Likewise.
16129 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
16130 * tree-ssa-ccp.c (optimize_stack_restore, execute_fold_all_builtins):
16131 Likewise.
16132 * tree-ssa-propagate.c (substitute_and_fold): Likewise.
16133 * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
16134 (dom_opt_finalize_block): Likewise, adjusting access to
16135 stmts_to_rescan.
16136 (optimize_stmt): Likewise, adjusting access to stmts_to_rescan.
16137 (stmts_to_rescan): Change item type to gimple.
16138 (tree_ssa_dominator_optimize): Change type of stmts_to_rescan.
16139
16140 2009-05-24 Ira Rosen <irar@il.ibm.com>
16141
16142 * doc/passes.texi (Tree-SSA passes): Document SLP pass.
16143 * tree-pass.h (pass_slp_vectorize): New pass.
16144 * params.h (SLP_MAX_INSNS_IN_BB): Define.
16145 * timevar.def (TV_TREE_SLP_VECTORIZATION): Define.
16146 * tree-vectorizer.c (timevar.h): Include.
16147 (user_vect_verbosity_level): Declare.
16148 (vect_location): Fix comment.
16149 (vect_set_verbosity_level): Update user_vect_verbosity_level
16150 instead of vect_verbosity_level.
16151 (vect_set_dump_settings): Add an argument. Ignore user defined
16152 verbosity if dump flags require higher level of verbosity. Print to
16153 stderr only for loop vectorization.
16154 (vectorize_loops): Update call to vect_set_dump_settings.
16155 (execute_vect_slp): New function.
16156 (gate_vect_slp): Likewise.
16157 (struct gimple_opt_pass pass_slp_vectorize): New.
16158 * tree-vectorizer.h (struct _bb_vec_info): Define along macros to
16159 access its members.
16160 (vec_info_for_bb): New function.
16161 (struct _stmt_vec_info): Add bb_vinfo and a macro for its access.
16162 (VECTORIZATION_ENABLED): New macro.
16163 (SLP_ENABLED, SLP_DISABLED): Likewise.
16164 (vect_is_simple_use): Add bb_vec_info argument.
16165 (new_stmt_vec_info, vect_analyze_data_ref_dependences,
16166 vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
16167 vect_analyze_data_ref_accesses, vect_analyze_data_refs,
16168 vect_schedule_slp, vect_analyze_slp): Likewise.
16169 (vect_analyze_stmt): Add slp_tree argument.
16170 (find_bb_location): Declare.
16171 (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
16172 * tree-vect-loop.c (new_loop_vec_info): Adjust function calls.
16173 (vect_analyze_loop_operations, vect_analyze_loop,
16174 get_initial_def_for_induction, vect_create_epilog_for_reduction,
16175 vect_finalize_reduction, vectorizable_reduction,
16176 vectorizable_live_operation, vect_transform_loop): Likewise.
16177 * tree-data-ref.c (dr_analyze_innermost): Update comment,
16178 skip evolution analysis if analyzing a basic block.
16179 (dr_analyze_indices): Likewise.
16180 (initialize_data_dependence_relation): Skip the test whether the
16181 object is invariant for basic blocks.
16182 (compute_all_dependences): Skip dependence analysis for data
16183 references in basic blocks.
16184 (find_data_references_in_stmt): Don't fail in case of invariant
16185 access in basic block.
16186 (find_data_references_in_bb): New function.
16187 (find_data_references_in_loop): Move code to
16188 find_data_references_in_bb and add a call to it.
16189 (compute_data_dependences_for_bb): New function.
16190 * tree-data-ref.h (compute_data_dependences_for_bb): Declare.
16191 * tree-vect-data-refs.c (vect_check_interleaving): Adjust to the case
16192 that STEP is 0.
16193 (vect_analyze_data_ref_dependence): Check for interleaving in case of
16194 unknown dependence in basic block and fail in case of dependence in
16195 basic block.
16196 (vect_analyze_data_ref_dependences): Add bb_vinfo argument, get data
16197 dependence instances from either loop or basic block vectorization
16198 info.
16199 (vect_compute_data_ref_alignment): Check if it is loop vectorization
16200 before calling nested_in_vect_loop_p.
16201 (vect_compute_data_refs_alignment): Add bb_vinfo argument, get data
16202 dependence instances from either loop or basic block vectorization
16203 info.
16204 (vect_verify_datarefs_alignment): Likewise.
16205 (vect_enhance_data_refs_alignment): Adjust function calls.
16206 (vect_analyze_data_refs_alignment): Likewise.
16207 (vect_analyze_group_access): Fix printing. Skip different checks if
16208 DR_STEP is 0. Keep strided stores either in loop or basic block
16209 vectorization data structure. Fix indentation.
16210 (vect_analyze_data_ref_access): Fix comments, allow zero step in
16211 basic blocks.
16212 (vect_analyze_data_ref_accesses): Add bb_vinfo argument, get data
16213 dependence instances from either loop or basic block vectorization
16214 info.
16215 (vect_analyze_data_refs): Update comment. Call
16216 compute_data_dependences_for_bb to analyze basic blocks.
16217 (vect_create_addr_base_for_vector_ref): Check for outer loop only in
16218 case of loop vectorization. In case of basic block vectorization use
16219 data-ref itself as a base.
16220 (vect_create_data_ref_ptr): In case of basic block vectorization:
16221 don't advance the pointer, add new statements before the current
16222 statement. Adjust function calls.
16223 (vect_supportable_dr_alignment): Support only aligned accesses in
16224 basic block vectorization.
16225 * common.opt (ftree-slp-vectorize): New flag.
16226 * tree-vect-patterns.c (widened_name_p): Adjust function calls.
16227 (vect_pattern_recog_1): Likewise.
16228 * tree-vect-stmts.c (process_use): Likewise.
16229 (vect_init_vector): Add new statements in the beginning of the basic
16230 block in case of basic block SLP.
16231 (vect_get_vec_def_for_operand): Adjust function calls.
16232 (vect_finish_stmt_generation): Likewise.
16233 (vectorizable_call): Add assert that it is loop vectorization, adjust
16234 function calls.
16235 (vectorizable_conversion, vectorizable_assignment): Likewise.
16236 (vectorizable_operation): In case of basic block SLP, take
16237 vectorization factor from statement's type and skip the relevance
16238 check. Adjust function calls.
16239 (vectorizable_type_demotion): Add assert that it is loop
16240 vectorization, adjust function calls.
16241 (vectorizable_type_promotion): Likewise.
16242 (vectorizable_store): Check for outer loop only in case of loop
16243 vectorization. Adjust function calls. For basic blocks, skip the
16244 relevance check and don't advance pointers.
16245 (vectorizable_load): Likewise.
16246 (vectorizable_condition): Add assert that it is loop vectorization,
16247 adjust function calls.
16248 (vect_analyze_stmt): Add argument. In case of basic block SLP, check
16249 that it is not reduction, get vector type, call only supported
16250 functions, skip loop specific parts.
16251 (vect_transform_stmt): Check for outer loop only in case of loop
16252 vectorization.
16253 (new_stmt_vec_info): Add new argument and initialize bb_vinfo.
16254 (vect_is_simple_use): Fix comment, add new argument, fix conditions
16255 for external definition.
16256 * passes.c (pass_slp_vectorize): New pass.
16257 * tree-vect-slp.c (find_bb_location): New function.
16258 (vect_get_and_check_slp_defs): Add argument, adjust function calls,
16259 check for patterns only in loops.
16260 (vect_build_slp_tree): Add argument, adjust function calls, fail in
16261 case of multiple types in basic block SLP.
16262 (vect_mark_slp_stmts_relevant): New function.
16263 (vect_supported_load_permutation_p): Fix comment.
16264 (vect_analyze_slp_instance): Add argument. In case of basic block
16265 SLP, take vectorization factor from statement's type, check that
16266 unrolling factor is 1. Adjust function call. Save SLP instance in
16267 either loop or basic block vectorization structure. Return FALSE,
16268 if SLP failed.
16269 (vect_analyze_slp): Add argument. Get strided stores groups from
16270 either loop or basic block vectorization structure. Return FALSE
16271 if basic block SLP failed.
16272 (new_bb_vec_info): New function.
16273 (destroy_bb_vec_info, vect_slp_analyze_node_operations,
16274 vect_slp_analyze_operations, vect_slp_analyze_bb): Likewise.
16275 (vect_schedule_slp): Add argument. Get SLP instances from either
16276 loop or basic block vectorization structure. Set vectorization factor
16277 to be 1 for basic block SLP.
16278 (vect_slp_transform_bb): New function.
16279 * params.def (PARAM_SLP_MAX_INSNS_IN_BB): Define.
16280
16281 2009-05-23 Mark Mitchell <mark@codesourcery.com>
16282
16283 * final.c (shorten_branches): Do not align labels for jump tables.
16284 (final_scan_insn): Use JUMP_TABLE_DATA_P.
16285
16286 2009-05-23 Eric Botcazou <ebotcazou@adacore.com>
16287
16288 * doc/passes.texi: Standardize spelling of RTL, Tree and Tree SSA.
16289 Remove outdated reference to flow.c and fix nits.
16290 * doc/gccint.texi: Tweak RTL description.
16291 * doc/rtl.texi: Likewise.
16292
16293 2009-05-23 Denis Chertykov <chertykov@gmail.com>
16294
16295 * config/avr/avr.c: Change my email address.
16296 * config/avr/avr.h: Likewise.
16297 * config/avr/avr.md: Likewise.
16298 * config/avr/avr-protos.h: Likewise.
16299 * config/avr/libgcc.S: Likewise.
16300
16301 2009-05-22 Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
16302
16303 * config/spu/spu-protos.h (aligned_mem_p, spu_valid_mov): Remove.
16304 (spu_split_load, spu_split_store): Change return type to int.
16305 (spu_split_convert): Declare.
16306 * config/spu/predicates.md (spu_mem_operand): Remove.
16307 (spu_mov_operand): Update.
16308 (spu_dest_operand, shiftrt_operator, extend_operator): Define.
16309 * config/spu/spu.c (regno_aligned_for_load): Remove.
16310 (reg_aligned_for_addr, spu_expand_load): Define.
16311 (spu_expand_extv): Reimplement and handle MEM.
16312 (spu_expand_insv): Handle MEM.
16313 (spu_sched_reorder): Handle insn's with length 0.
16314 (spu_legitimate_address_p): Reimplement.
16315 (store_with_one_insn_p): Return TRUE for any mode with size
16316 larger than 16 bytes.
16317 (address_needs_split): Define.
16318 (spu_expand_mov): Call spu_split_load and spu_split_store for MEM
16319 operands.
16320 (spu_convert_move): Define.
16321 (spu_split_load): Use spu_expand_load and change all MEM's to TImode.
16322 (spu_split_store): Change all MEM's to TImode.
16323 (spu_init_expanders): Preallocate registers that correspond to
16324 LAST_VIRTUAL_REG+1 and LAST_VIRTUAL_REG+2 and set them with
16325 mark_reg_pointer.
16326 (spu_split_convert): Define.
16327 * config/spu/spu.md (QHSI, QHSDI): New mode iterators.
16328 (_move<mode>, _movdi, _movti): Update predicate and condition.
16329 (load, store): Change to define_split.
16330 (extendqiti2, extendhiti2, extendsiti2, extendditi2): Simplify to
16331 extend<mode>ti2.
16332 (zero_extendqiti2, zero_extendhiti2, <v>lshr<mode>3_imm): Define.
16333 (lshr<mode>3, lshr<mode>3_imm, lshr<mode>3_re): Simplify to one
16334 define_insn_and_split of lshr<mode>3.
16335 (shrqbybi_<mode>, shrqby_<mode>): Simplify to define_expand.
16336 (<v>ashr<mode>3_imm): Define.
16337 (extv, extzv, insv): Allow MEM operands.
16338 (trunc_shr_ti<mode>, trunc_shr_tidi, shl_ext_<mode>ti,
16339 shl_ext_diti, sext_trunc_lshr_tiqisi, zext_trunc_lshr_tiqisi,
16340 sext_trunc_lshr_tihisi, zext_trunc_lshr_tihisi): Define for combine.
16341 (_spu_convert2): Change to define_insn_and_split and remove the
16342 corresponding define_peephole2.
16343 (stack_protect_set, stack_protect_test, stack_protect_test_si):
16344 Change predicates to memory_operand.
16345
16346 2009-05-22 Mark Mitchell <mark@codesourcery.com>
16347
16348 * config/arm/thumb2.md: Add 16-bit multiply instructions.
16349
16350 2009-05-21 Michael Meissner <meissner@linux.vnet.ibm.com>
16351
16352 PR tree-optimization/40219
16353 * tree.c (iterative_hash_expr): Make sure the builtin function is
16354 a normal builtin function and not a front end or back end builtin
16355 before indexing into the built_in_decls array.
16356
16357 2009-05-22 Richard Guenther <rguenther@suse.de>
16358
16359 PR middle-end/38964
16360 * alias.c (write_dependence_p): Do not use TBAA for answering
16361 anti-dependence or output-dependence.
16362 * tree-ssa-structalias.c (set_uids_in_ptset): Remove TBAA pruning code.
16363 (emit_pointer_definition): Remove.
16364 (emit_alias_warning): Likewise.
16365 (find_what_var_points_to): Remove TBAA pruning code.
16366 (find_what_p_points_to): Likewise. Do not warn about strict-aliasing
16367 violations.
16368 (compute_points_to_sets): Remove code computing the set of
16369 dereferenced pointers.
16370 * tree-data-ref.c (dr_may_alias_p): Properly use the split
16371 oracle for querying anti and output dependencies.
16372 * tree-ssa-alias.c (refs_may_alias_p_1): Add argument specifying
16373 if TBAA may be applied.
16374 (refs_anti_dependent_p): New function.
16375 (refs_output_dependent_p): Likewise.
16376 * tree-ssa-alias.h (refs_anti_dependent_p): Declare.
16377 (refs_output_dependent_p): Likewise.
16378 * doc/tree-ssa.texi (Memory model): New section.
16379 * doc/c-tree.texi (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
16380 * doc/gimple.texi (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
16381 * cfgexpand.c (expand_gimple_basic_block): Do not handle
16382 GIMPLE_CHANGE_DYNAMIC_TYPE or CHANGE_DYNAMIC_TYPE_EXPR.
16383 * expr.c (expand_expr_real_1): Likewise.
16384 * gimple-low.c (lower_stmt): Likewise.
16385 * gimple-pretty-print.c (dump_gimple_stmt): Likewise.
16386 (dump_gimple_cdt): Remove.
16387 * gimple.c (gss_for_code): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
16388 (gimple_size): Likewise.
16389 (walk_gimple_op): Likewise.
16390 (is_gimple_stmt): Likewise.
16391 (walk_stmt_load_store_addr_ops): Likewise.
16392 (gimple_build_cdt): Remove.
16393 * gimple.def (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
16394 * gimple.h (gimple_cdt_new_type): Remove.
16395 (gimple_cdt_new_type_ptr): Likewise.
16396 (gimple_cdt_set_new_type): Likewise.
16397 (gimple_cdt_location): Likewise.
16398 (gimple_cdt_location_ptr): Likewise.
16399 (gimple_cdt_set_location): Likewise.
16400 * gimplify.c (gimplify_expr): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
16401 * tree-cfg.c (remove_useless_stmts_1): Do not handle
16402 GIMPLE_CHANGE_DYNAMIC_TYPE.
16403 (verify_types_in_gimple_stmt): Likewise.
16404 * tree-inline.c (estimate_num_insns): Likewise.
16405 (expand_call_inline): Do not copy DECL_NO_TBAA_P.
16406 (copy_decl_to_var): Likewise.
16407 (copy_result_decl_to_var): Likewise.
16408 * tree-pretty-print.c (dump_generic_node): Do not handle
16409 CHANGE_DYNAMIC_TYPE_EXPR.
16410 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
16411 * tree-ssa-operands.c (get_expr_operands): Likewise.
16412 * tree-ssa-structalias.c (struct variable_info): Remove
16413 no_tbaa_pruning member.
16414 (new_var_info): Do not set it based on DECL_NO_TBAA_P.
16415 (unify_nodes): Do not copy it.
16416 (find_func_aliases): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
16417 (dump_solution_for_var): Do not dump no_tbaa_pruning state.
16418 (set_uids_in_ptset): Do not check it.
16419 (find_what_var_points_to): Likewise.
16420 (compute_tbaa_pruning): Remove.
16421 (compute_points_to_sets): Do not call it.
16422 * tree.c (walk_tree_1): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
16423 * tree.def (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
16424 * tree.h (CHANGE_DYNAMIC_TYPE_NEW_TYPE): Remove.
16425 (CHANGE_DYNAMIC_TYPE_LOCATION): Likewise.
16426 (DECL_NO_TBAA_P): Likewise.
16427 (struct tree_decl_common): Move no_tbaa_flag to unused flags section.
16428 * omp-low.c (copy_var_decl): Do not copy DECL_NO_TBAA_P.
16429 (expand_omp_atomic_pipeline): Do not set it.
16430 * print-tree.c (print_node): Do not dump it.
16431 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
16432 redundant check.
16433
16434 2009-05-22 Vladimir Makarov <vmakarov@redhat.com>
16435
16436 PR target/39856
16437 * reg-stack.c (subst_stack_regs_pat): Remove gcc_assert for note
16438 for clobber.
16439
16440 2009-05-22 Mark Mitchell <mark@codesourcery.com>
16441
16442 * tree.c (handle_dll_attribute): Mark dllexport'd inlines as
16443 non-external.
16444
16445 2009-05-22 Ben Elliston <bje@au.ibm.com>
16446
16447 * Makefile.in (bversion.h, s-bversion): New targets.
16448 (TOPLEV_H): Add bversion.h.
16449 * toplev.h: Include "bversion.h".
16450 (ATTRIBUTE_GCC_DIAG): When building with checking disabled, use
16451 the __format__ attribute only if compiling with the same version
16452 of GCC as the sources (the "build version").
16453
16454 2009-05-22 Ben Elliston <bje@au.ibm.com>
16455
16456 * c-format.c (handle_format_attribute): Fix comment typo.
16457
16458 2009-05-21 Steve Ellcey <sje@cup.hp.com>
16459
16460 PR target/37846
16461 * config/ia64/ia64.opt (mfused-madd): New.
16462 * config/ia64/ia64.h (TARGET_DEFAULT): Set MASK_FUSED_MADD.
16463 * config/ia64/hpux.h (TARGET_DEFAULT): Ditto.
16464 * config/ia64/ia64.md (maddsf4, msubsf4, nmaddsf4,
16465 madddf4, madddf4_trunc, msubdf4, msubdf4_trunc, nmadddf4,
16466 nmadddf4_truncsf, maddxf4, maddxf4_truncsf, maddxf4_truncdf,
16467 msubxf4, msubxf4_truncsf msubxf4_truncdf, nmaddxf4,
16468 nmaddxf4_truncsf, nmaddxf4_truncdf): Check TARGET_FUSED_MADD.
16469 * config/ia64/vect.md (addv2sf3, subv2sf3): Force fpma/fpms
16470 instruction if !TARGET_FUSED_MADD.
16471 (fpma, fpms): Remove colon from name.
16472
16473 2009-05-22 Richard Guenther <rguenther@suse.de>
16474
16475 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record
16476 TMR_ORIGINAL. Always either record TMR_SYMBOL or TMR_BASE.
16477 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
16478 TARGET_MEM_REF.
16479 (create_expression_by_pieces): Only convert if necessary.
16480 * gimplify.c (gimplify_expr): Handle TARGET_MEM_REF.
16481 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle INTEGER_CST.
16482
16483 2009-05-21 Adam Nemet <anemet@caviumnetworks.com>
16484
16485 * config/mips/mips.md (*extzv_trunc<mode>_exts): Turn into a
16486 regular pattern from a template and rename it ...
16487 (*extzv_truncsi_exts): ... to this.
16488
16489 2009-05-21 Richard Guenther <rguenther@suse.de>
16490
16491 * cgraph.h (struct cgraph_node): Remove inline_decl member.
16492 * ipa-inline.c (cgraph_mark_inline_edge): Do not check it.
16493 (cgraph_default_inline_p): Likewise.
16494 (cgraph_decide_inlining_incrementally): Likewise.
16495
16496 2009-05-21 H.J. Lu <hongjiu.lu@intel.com>
16497 Uros Bizjak <ubizjak@gmail.com>
16498
16499 * config/i386/cpuid.h (bit_MOVBE): New.
16500
16501 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
16502
16503 * config/i386/i386.c (OPTION_MASK_ISA_MOVBE_SET): New.
16504 (OPTION_MASK_ISA_MOVBE_UNSET): Likewise.
16505 (ix86_handle_option): Handle OPT_mmovbe.
16506 (ix86_target_string): Add -mmovbe.
16507 (pta_flags): Add PTA_MOVBE.
16508 (processor_alias_table): Add PTA_MOVBE to "atom".
16509 (override_options): Handle PTA_MOVBE.
16510
16511 * config/i386/i386.h (TARGET_MOVBE): New.
16512
16513 * config/i386/i386.md (bswapsi2): Check TARGET_MOVBE.
16514 (*bswapsi_movbe): New.
16515 (*bswapdi_movbe): Likewise.
16516 (bswapdi2): Renamed to ...
16517 (*bswapdi_1): This.
16518 (bswapdi2): New expander.
16519
16520 * config/i386/i386.opt (mmovbe): New.
16521
16522 * doc/invoke.texi: Document -mmovbe.
16523
16524 2009-05-21 Taras Glek <tglek@mozilla.com>
16525
16526 * plugin.c (try_init_one_plugin): Updated to new plugin_init API.
16527 * gcc-plugin.h (plugin_init): Updated signature.
16528 * gcc-plugin.h (plugin_name_args): Moved to this header.
16529 * doc/plugins.texi (plugin_init): Updated documention to reflect
16530 API change.
16531 * doc/plugins.texi (plugin_name_args): Added to documention.
16532
16533 2009-05-21 Mark Mitchell <mark@codesourcery.com>
16534
16535 * config/arm/neon.md (*mul<mode>3add<mode>_neon): New pattern.
16536 (*mul<mode>3neg<mode>add<mode>_neon): Likewise.
16537
16538 2009-05-21 Shujing Zhao <pearly.zhao@oracle.com>
16539
16540 * config/i386/i386.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P and
16541 JUMP_TABLE_DATA_P predicates where applicable.
16542 * config/i386/predicates.md: Ditto.
16543 * config/i386/sse.md: Ditto.
16544
16545 2009-05-21 Jakub Jelinek <jakub@redhat.com>
16546
16547 * config/i386/i386.md (adddi_4_rex64, addsi_4, addhi_4): For
16548 operand2 -128 override length_immediate attribute to 1.
16549 * config/i386/predicates.md (constm128_operand): New predicate.
16550
16551 * config/i386/i386.c (memory_address_length): Handle %r12
16552 the same as %rsp and %r13 the same as %rbp. For %rsp and %rbp
16553 also check REGNO.
16554 (ix86_attr_length_address_default): For MODE_SI lea in 64-bit
16555 mode look through optional ZERO_EXTEND and SUBREG.
16556 * config/i386/i386.md (R12_REG): New define_constant.
16557 (prefix_data16): For sse unit set also for MODE_TI insns.
16558 (prefix_rex): For -m32 always return 0. For TYPE_IMOVX
16559 insns set if operand 1 is ext_QIreg_operand.
16560 (modrm): For TYPE_IMOV clear only if not MODE_DI. For
16561 TYPE_{ALU{,1},ICMP,TEST} insn clear if there is non-shortened
16562 immediate.
16563 (*movdi_extzv_1, zero_extendhidi2, zero_extendqidi2): Change
16564 mode from MODE_DI to MODE_SI.
16565 (movdi_1_rex64): Override modrm and length_immediate attributes
16566 only for movabs (TYPE_IMOV, alternative 2).
16567 (zero_extendsidi2_rex64): Clear prefix_0f attribute if TYPE_IMOVX.
16568 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
16569 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
16570 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
16571 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Set
16572 prefix_rex attribute if DImode.
16573 (*adddi_1_rex64, *adddi_2_rex64, *adddi_3_rex64, *adddi_5_rex64,
16574 *addsi_1, *addsi_1_zext, *addsi_2, *addsi_2_zext, *addsi_3,
16575 *addsi_3_zext, *addsi_5, *addhi_1_lea, *addhi_1, *addhi_2, *addhi_3,
16576 *addhi_5, *addqi_1_lea, *addqi_1): Override length_immediate
16577 attribute to 1 if TYPE_ALU and operand 2 is const128_operand.
16578 (pro_epilogue_adjust_stack_1, pro_epilogue_adjust_stack_rex64):
16579 Likewise. For TYPE_IMOV clear length_immediate attribute.
16580 (*ashldi3_1_rex64, *ashldi3_cmp_rex64, *ashldi3_cconly_rex64,
16581 *ashlsi3_1, *ashlsi3_1_zext, *ashlsi3_cmp, **ashlsi3_cconly,
16582 *ashlsi3_cmp_zext, *ashlhi3_1_lea, *ashlhi3_1, *ashlhi3_cmp,
16583 *ashlhi3_cconly, *ashlqi3_1_lea, *ashlqi3_1, *ashlqi3_cmp,
16584 *ashlqi3_cconly): Override length_immediate attribute to 0 if TYPE_ALU
16585 or one operand TYPE_ISHIFT.
16586 (*ashrdi3_1_one_bit_rex64, *ashrdi3_one_bit_cmp_rex64,
16587 *ashrdi3_one_bit_cconly_rex64, *ashrsi3_1_one_bit,
16588 *ashrsi3_1_one_bit_zext, *ashrsi3_one_bit_cmp,
16589 *ashrsi3_one_bit_cconly, *ashrsi3_one_bit_cmp_zext,
16590 *ashrhi3_1_one_bit, *ashrhi3_one_bit_cmp, *ashrhi3_one_bit_cconly,
16591 *ashrqi3_1_one_bit, *ashrqi3_1_one_bit_slp, *ashrqi3_one_bit_cmp,
16592 *ashrqi3_one_bit_cconly, *lshrdi3_1_one_bit_rex64,
16593 *lshrdi3_cmp_one_bit_rex64, *lshrdi3_cconly_one_bit_rex64,
16594 *lshrsi3_1_one_bit, *lshrsi3_1_one_bit_zext, *lshrsi3_one_bit_cmp,
16595 *lshrsi3_one_bit_cconly, *lshrsi3_cmp_one_bit_zext,
16596 *lshrhi3_1_one_bit, *lshrhi3_one_bit_cmp, *lshrhi3_one_bit_cconly,
16597 *lshrqi3_1_one_bit, *lshrqi3_1_one_bit_slp, *lshrqi2_one_bit_cmp,
16598 *lshrqi2_one_bit_cconly, *rotlsi3_1_one_bit_rex64, *rotlsi3_1_one_bit,
16599 *rotlsi3_1_one_bit_zext, *rotlhi3_1_one_bit, *rotlqi3_1_one_bit_slp,
16600 *rotlqi3_1_one_bit, *rotrdi3_1_one_bit_rex64, *rotrsi3_1_one_bit,
16601 *rotrsi3_1_one_bit_zext, *rotrhi3_one_bit, *rotrqi3_1_one_bit,
16602 *rotrqi3_1_one_bit_slp): Override length_immediate attribute to 0,
16603 set mode attribute, don't override length attribute.
16604 (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Set prefix_0f attribute
16605 to 1.
16606 (return_internal_long): Set length attribute to 2 instead of 1.
16607 (*strmovqi_rex_1, *strsetqi_rex_1, *rep_stosqi_rex64,
16608 *cmpstrnqi_nz_rex_1, *cmpstrnqi_rex_1, *strlenqi_rex_1): Clear
16609 prefix_rex attribute.
16610 * config/i386/predicates.md (ext_QIreg_operand, const128_operand):
16611 New predicates.
16612 (memory_displacement_only_operand): Always return 0 for TARGET_64BIT.
16613
16614 2009-05-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16615
16616 * config/arm/thumb2.md (orsi_notsi_si): Fix typo in pattern.
16617
16618 2009-05-20 Ian Lance Taylor <iant@google.com>
16619
16620 * tree.c (build_tree_list_vec_stat): New function.
16621 (ctor_to_vec): New function.
16622 (build_nt_call_vec): New function.
16623 (build_call_array): Change args to be a const pointer.
16624 (build_call_vec): New function.
16625 * tree.h (build_nt_call_vec): Declare.
16626 (build_tree_list_vec_stat): Declare.
16627 (build_tree_list_vec): Define.
16628 (build_call_array): Update declaration.
16629 (build_call_vec): Declare.
16630 (ctor_to_vec): Declare.
16631 * c-common.c (tree_vector_cache): New static variable.
16632 (make_tree_vector): New function.
16633 (release_tree_vector): New function.
16634 (make_tree_vector_single): New function.
16635 (make_tree_vector_copy): New function.
16636 * c-common.h (tree_vector_cache, make_tree_vector): Declare.
16637 (make_tree_vector_single, make_tree_vector_copy): Declare.
16638 * c-parser.c (cached_expr_list_1, cached_expr_list_2): Remove.
16639 (c_parser_expr_list): Don't manage cache here, instead call
16640 make_tree_vector.
16641 (c_parser_release_expr_list): Remove static function.
16642 (c_parser_vec_to_tree_list): Remove static function.
16643 (c_parser_attributes): Call build_tree_list_vec instead of
16644 c_parser_vec_to_tree_list. Call release_tree_vector instead of
16645 c_parser_release_expr_list.
16646 (c_parser_postfix_expression_after_primary): Likewise.
16647 (c_parser_objc_keywordexpr): Likewise.
16648
16649 2009-05-20 Sandra Loosemore <sandra@codesourcery.com>
16650
16651 * doc/tm.texi (Misc): Document TARGET_INVALID_PARAMETER_TYPE,
16652 TARGET_INVALID_RETURN_TYPE, TARGET_PROMOTED_TYPE, and
16653 TARGET_CONVERT_TO_TYPE.
16654 * hooks.c (hook_tree_const_tree_null): Define.
16655 * hooks.h (hook_tree_const_tree_null): Declare.
16656 * target.h (struct gcc_target): Add invalid_parameter_type,
16657 invalid_return_type, promoted_type, and convert_to_type fields.
16658 * target-def.h: (TARGET_INVALID_PARAMETER_TYPE): Define.
16659 (TARGET_INVALID_RETURN_TYPE): Define.
16660 (TARGET_PROMOTED_TYPE): Define.
16661 (TARGET_CONVERT_TO_TYPE): Define.
16662 (TARGET_INITIALIZER): Update for new fields.
16663 * c-decl.c (grokdeclarator): Check targetm.invalid_return_type.
16664 (grokparms): Check targetm.invalid_parameter_type.
16665 * c-typeck.c (default_conversion): Check targetm.promoted_type.
16666 * c-convert.c (convert): Check targetm.convert_to_type.
16667
16668 2009-05-20 Adam Nemet <anemet@caviumnetworks.com>
16669
16670 * config/mips/mips.md (*extenddi_truncate<mode>,
16671 *extendsi_truncate<mode>): Emit exts if supported. Add attribute
16672 defintions.
16673 (*extendhi_truncateqi): New define_insn_and_sptit.
16674
16675 2009-05-20 Jakub Jelinek <jakub@redhat.com>
16676
16677 PR middle-end/40204
16678 * fold-const.c (fold_binary) <case BIT_AND_EXPR>: Avoid infinite
16679 recursion if build_int_cst_type returns the same INTEGER_CST as arg1.
16680
16681 2009-05-20 Eric Botcazou <ebotcazou@adacore.com>
16682
16683 * fold-const.c (build_fold_addr_expr_with_type): Take the address of
16684 the operand of VIEW_CONVERT_EXPR.
16685
16686 2009-05-20 H.J. Lu <hongjiu.lu@intel.com>
16687
16688 * config/i386/driver-i386.c (host_detect_local_cpu): Check
16689 extended family and model for Intel processors. Support Intel Atom.
16690
16691 2009-05-20 Olivier Hainque <hainque@adacore.com>
16692
16693 * gstab.h (stab_code_type): Define, to be used instead of the
16694 __stab_debug_code enum, made anonymous. Add 2009 to the copyright
16695 notice.
16696 * dbxout.c (STAB_CODE_TYPE): Remove #define and replace use
16697 occurrences by stab_code_type.
16698 * mips-tfile.c (STAB_CODE_TYPE): Remove #define, unused.
16699
16700 2009-05-20 Martin Jambor <mjambor@suse.cz>
16701
16702 * tree-flow.h (insert_edge_copies_seq): Undeclare.
16703 (sra_insert_before): Likewise.
16704 (sra_insert_after): Likewise.
16705 (sra_init_cache): Likewise.
16706 (sra_type_can_be_decomposed_p): Likewise.
16707 * tree-mudflap.c (insert_edge_copies_seq): Copied here from tree-sra.c
16708 * tree-sra.c (sra_type_can_be_decomposed_p): Made static.
16709 (sra_insert_before): Likewise.
16710 (sra_insert_after): Likewise.
16711 (sra_init_cache): Likewise.
16712 (insert_edge_copies_seq): Made static and moved upwards.
16713
16714 * tree-complex.c (extract_component): Added VIEW_CONVERT_EXPR switch
16715 case.
16716
16717 * tree-flow-inline.h (contains_view_convert_expr_p): New function.
16718
16719 * ipa-prop.c (get_ssa_def_if_simple_copy): New function.
16720 (determine_cst_member_ptr): Call get_ssa_def_if_simple_copy to skip
16721 simple copies.
16722
16723 2009-05-20 Richard Guenther <rguenther@suse.de>
16724
16725 * expr.c (expand_expr_real_1): Avoid calling do_store_flag
16726 with mismatched comparison modes.
16727
16728 2009-05-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16729
16730 * config/arm/arm.md (*arm_iorsi3): Refactored for only ARM.
16731 (peephole ior (reg, int) -> mov, ior): Refactored for only ARM.
16732 * config/arm/thumb2.md (*thumb_andsi_not_shiftsi_si): Allow bic
16733 with shifts for Thumb2.
16734 (orsi_notsi): New for orn.
16735 (*thumb_orsi_notshiftsi_si): Allow orn with shifts.
16736 (*thumb2_iorsi3): Rewrite support for iorsi for Thumb2.
16737 * config/arm/arm.c (const_ok_for_op): Split case for IOR for Thumb2.
16738 (arm_gen_constant): Set can_invert for IOR and Thumb2, Add comments.
16739 Don't invert remainder for IOR.
16740
16741 2009-05-19 Zdenek Dvorak <ook@ucw.cz>
16742
16743 PR tree-optimization/40087
16744 * tree-ssa-loop-niter.c (number_of_iterations_ne_max,
16745 number_of_iterations_ne): Rename never_infinite argument.
16746 (number_of_iterations_lt_to_ne, number_of_iterations_lt,
16747 number_of_iterations_le): Handle pointer-type ivs when
16748 exit_must_be_taken is false.
16749 (number_of_iterations_cond): Do not always assume that
16750 exit_must_be_taken if the control variable is a pointer.
16751
16752 2009-05-19 Andrew Pinski <andrew_pinski@playstation.sony.com>
16753
16754 * c-typeck.c (build_binary_op): Allow % on integal vectors.
16755 * doc/extend.texi (Vector Extension): Document that % is allowed too.
16756
16757 2009-05-19 H.J. Lu <hongjiu.lu@intel.com>
16758
16759 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Check
16760 ASM_OUTPUT_MAX_SKIP_PAD instead of ASM_OUTPUT_MAX_SKIP_ALIGN.
16761
16762 2009-05-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
16763
16764 PR c/40172
16765 * c.opt (Wlogical-op): Disabled by default.
16766 * c-opt (c_common_post_options): Do not enable Wlogical-op with
16767 Wextra.
16768 * doc/invoke.texi (Wlogical-op): Likewise.
16769
16770 2009-05-19 Eric Botcazou <ebotcazou@adacore.com>
16771
16772 * tree-scalar-evolution.c (follow_ssa_edge_expr) <NOP_EXPR>: Turn
16773 into CASE_CONVERT.
16774 <PLUS_EXPR>: Strip useless type conversions instead of type nops.
16775 Propagate the type of the first operand.
16776 <ASSERT_EXPR>: Simplify.
16777 (follow_ssa_edge_in_rhs): Use gimple_expr_type to get the type.
16778 Rewrite using the RHS code as discriminant.
16779 <NOP_EXPR>: Turn into CASE_CONVERT.
16780 <PLUS_EXPR>: Propagate the type of the first operand.
16781
16782 2009-05-19 Steve Ellcey <sje@cup.hp.com>
16783
16784 * config/ia64/ia64-protos.h (ia64_dconst_0_5): New.
16785 (ia64_dconst_0_375): New.
16786 * config/ia64/ia64.c (ia64_override_options): Remove
16787 -minline-sqrt-min-latency warning.
16788 (ia64_dconst_0_5_rtx, ia64_dconst_0_5): New.
16789 (ia64_dconst_0_375_rtx, ia64_dconst_0_375): New
16790 * config/ia64/ia64.md (*sqrt_approx): Remove.
16791 (sqrtsf2): Remove #if 0.
16792 (sqrtsf2_internal_thr): Rewrite and move to div.md.
16793 (sqrtdf): Remove assert.
16794 (sqrtdf2_internal_thr): Rewrite and move to div.md.
16795 (sqrtxf2): Remove #if 0.
16796 (sqrtxf2_internal_thr): Rewrite and move to div.md.
16797 * div.md (sqrt_approx_rf): New.
16798 (sqrtsf2_internal_thr): New implementation.
16799 (sqrtsf2_internal_lat): New.
16800 (sqrtdf2_internal_thr: New implementation.
16801 (sqrtxf2_internal): New implementation.
16802
16803 2009-05-19 Francois-Xavier Coudert <fxcoudert@gmail.com>
16804 Hans-Peter Nilsson <hp@axis.com>
16805
16806 * defaults.h (UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE)
16807 (WCHAR_TYPE, MODIFIED_WCHAR_TYPE, PTRDIFF_TYPE, WINT_TYPE)
16808 (INTMAX_TYPE, UINTMAX_TYPE, SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE)
16809 (INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE)
16810 (UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE)
16811 (INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE)
16812 (UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE)
16813 (INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE)
16814 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE)
16815 (SIZE_TYPE, PID_TYPE, CHAR16_TYPE, CHAR32_TYPE): Move defaults here...
16816 * c-common.c: ...from here.
16817
16818 2009-05-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
16819
16820 * c-common.c (warn_logical_operator): Remove unnecessary conditionals.
16821
16822 2009-05-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16823
16824 * builtins.c (do_mpc_arg1): Separate MPFR/MPC C rounding types.
16825
16826 2009-05-19 Ben Elliston <bje@au.ibm.com>
16827
16828 * unwind-dw2-fde.c (fde_unencoded_compare): Replace type punning
16829 assignments with memcpy calls.
16830 (add_fdes): Likewise.
16831 (binary_search_unencoded_fdes): Likewise.
16832 (linear_search_fdes): Eliminate type puns.
16833
16834 2009-05-19 Richard Guenther <rguenther@suse.de>
16835
16836 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do
16837 not falsely claim to have propagated into all uses.
16838
16839 2009-05-19 Ben Elliston <bje@au.ibm.com>
16840
16841 * doc/invoke.texi (C Dialect Options): Update OpenMP specification
16842 version to v3.0.
16843
16844 2009-05-18 Kaz Kojima <kkojima@gcc.gnu.org>
16845
16846 * config/sh/sh-protos.h (sh_legitimate_address_p): Remove.
16847 * config/sh/sh.c (sh_legitimate_address_p): Make static.
16848 (TARGET_LEGITIMATE_ADDRESS_P): New.
16849 * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16850 * config/sh/sh.md: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
16851
16852 2009-05-18 Dodji Seketeli <dodji@redhat.com>
16853
16854 PR debug/40109
16855 * dwarf2out.c (gen_type_die_with_usage): Generate the DIE as a
16856 child of the containing namespace's DIE.
16857
16858 2009-05-18 Adam Nemet <anemet@caviumnetworks.com>
16859
16860 * config/mips/mips.md (*zero_extend<GPR:mode>_trunc<SHORT:mode>,
16861 *zero_extendhi_truncqi): Move after the zero_extend patterns.
16862 (*extenddi_truncate<mode>, *extendsi_truncate<mode>): Move after the
16863 extend patterns.
16864
16865 2009-05-18 H.J. Lu <hongjiu.lu@intel.com>
16866
16867 PR target/39942
16868 * config/i386/i386.c (ix86_avoid_jump_misspredicts): Replace
16869 gen_align with gen_pad.
16870 (ix86_reorg): Check ASM_OUTPUT_MAX_SKIP_PAD instead of
16871 #ifdef ASM_OUTPUT_MAX_SKIP_ALIGN.
16872
16873 * config/i386/i386.h (ASM_OUTPUT_MAX_SKIP_PAD): New.
16874 * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_PAD): Likewise.
16875
16876 * config/i386/i386.md (align): Renamed to ...
16877 (pad): This. Replace ASM_OUTPUT_MAX_SKIP_ALIGN with
16878 ASM_OUTPUT_MAX_SKIP_PAD.
16879
16880 2009-05-18 Andreas Schwab <schwab@linux-m68k.org>
16881
16882 * config.gcc: Fix variable syntax.
16883
16884 PR target/39531
16885 * config/m68k/m68k.c (output_andsi3): Mask off sign bit copies
16886 before calling exact_log2.
16887 (output_iorsi3): Likewise.
16888 (output_xorsi3): Likewise.
16889
16890 2009-05-18 Kaz Kojima <kkojima@gcc.gnu.org>
16891
16892 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register
16893 for the none zero constant operand except for EQ and NE
16894 comprisons even when the first operand is R0.
16895
16896 2009-05-18 Andreas Krebbel <krebbel1@de.ibm.com>
16897
16898 * config/s390/2064.md: Remove trailing whitespaces.
16899 * config/s390/2084.md: Likewise.
16900 * config/s390/constraints.md: Likewise.
16901 * config/s390/fixdfdi.h: Likewise.
16902 * config/s390/libgcc-glibc.ver: Likewise.
16903 * config/s390/s390-modes.def: Likewise.
16904 * config/s390/s390-protos.h: Likewise.
16905 * config/s390/s390.c: Likewise.
16906 * config/s390/s390.h: Likewise.
16907 * config/s390/s390.md: Likewise.
16908 * config/s390/tpf-unwind.h: Likewise.
16909
16910 2009-05-18 Maxim Kuvyrkov <maxim@codesourcery.com>
16911
16912 * config/m68k/m68k.c (m68k_legitimize_address): Fix typo in signature.
16913
16914 2009-05-18 Maxim Kuvyrkov <maxim@codesourcery.com>
16915
16916 M68K TLS support.
16917 * configure.ac (m68k-*-*): Check if binutils support TLS.
16918 * configure: Regenerate.
16919 * config/m68k/predicates.md (symbolic_operand): Extend comment.
16920 * config/m68k/constraints.md (Cu): New constraint.
16921 * config/m68k/m68k.md (UNSPEC_GOTOFF): Remove.
16922 (UNSPEC_RELOC16, UNSPEC_RELOC32): New constants.
16923 (movsi): Handle TLS symbols.
16924 (addsi3_5200): Handle XTLS symbols, indent.
16925 * config/m68k/m68k-protos.h (m68k_legitimize_tls_address): Declare.
16926 (m68k_tls_reference_p): Declare.
16927 (m68k_legitimize_address): Declare.
16928 (m68k_unwrap_symbol): Declare.
16929 * config/m68k/m68k.opt (mxtls): New option.
16930 * config/m68k/m68k.c (ggc.h): Include.
16931 (m68k_output_dwarf_dtprel): Implement hook.
16932 (TARGET_HAVE_TLS, TARGET_ASM_OUTPUT_DWARF_DTPREL): Define.
16933 (m68k_expand_prologue): Load GOT pointer when function needs it.
16934 (m68k_illegitimate_symbolic_constant_p): Handle TLS symbols.
16935 (m68k_legitimate_constant_address_p): Same.
16936 (m68k_decompose_address): Handle TLS references.
16937 (m68k_get_gp): New static function.
16938 (enum m68k_reloc): New contants.
16939 (TLS_RELOC_P): New macro.
16940 (m68k_wrap_symbol): New static function.
16941 (m68k_unwrap_symbol): New function.
16942 (m68k_final_prescan_insn_1): New static function.
16943 (m68k_final_prescan_insn): New function.
16944 (m68k_move_to_reg, m68k_wrap_symbol_into_got_ref): New static
16945 functions.
16946 (legitimize_pic_address): Handle TLS references..
16947 (m68k_tls_get_addr, m68k_get_tls_get_addr)
16948 (m68k_libcall_value_in_a0_p)
16949 (m68k_call_tls_get_addr, m68k_read_tp, m68k_get_m68k_read_tp)
16950 (m68k_call_m68k_read_tp): Helper variables and functions for ...
16951 (m68k_legitimize_tls_address): Handle TLS references.
16952 (m68k_tls_symbol_p, m68k_tls_reference_p_1, m68k_tls_reference_p):
16953 New functions.
16954 (m68k_legitimize_address): Handle TLS symbols.
16955 (m68k_get_reloc_decoration): New static function.
16956 (m68k_output_addr_const_extra): Handle UNSPEC_RELOC16 and
16957 UNSPEC_RELOC32.
16958 (m68k_output_dwarf_dtprel): Implement hook.
16959 (print_operand_address): Handle UNSPEC_RELOC16 adn UNSPEC_RELOC32.
16960 (m68k_libcall_value): Return result in A0 instead of D0 when asked by
16961 m68k_call_* routines.
16962 (sched_attr_op_type): Handle TLS symbols.
16963 (gt-m68k.h): Include.
16964 * config/m68k/m68k.h (FINAL_PRESCAN_INSN): Define.
16965 (LEGITIMATE_PIC_OPERAND_P): Support TLS.
16966
16967 2009-05-18 Martin Jambor <mjambor@suse.cz>
16968
16969 * ipa-prop.c (ipa_check_stmt_modifications): Removed.
16970 (visit_store_addr_for_mod_analysis): New function.
16971 (ipa_detect_param_modifications): Use walk_stmt_load_store_addr_ops.
16972 (determine_cst_member_ptr): Use gimple_assign_single_p.
16973 (ipa_get_stmt_member_ptr_load_param): Use gimple_assign_single_p.
16974 (ipa_analyze_call_uses): Use !gimple_assign_rhs2 rather than number of
16975 operands. Don't check number of operands of a NOP_EXPR.
16976
16977 2009-05-18 Eric Fisher <joefoxreal@gmail.com>
16978
16979 * doc/tree-ssa.texi (SSA Operands): Fix a mistake.
16980
16981 2009-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
16982
16983 PR c/40172
16984 * c-common.c (warn_logical_operator): Don't warn if one of
16985 expression isn't always true or false.
16986
16987 2009-05-17 Kai Tietz <kai.tietz@onevision.com>
16988
16989 * config/i386/biarch32.h: New file.
16990 * config.gcc: Add for target i386-w64-* the biarch32.h to tm_file.
16991
16992 2009-05-17 Adam Nemet <anemet@caviumnetworks.com>
16993
16994 * config/mips/mips.md (*zero_extend<mode>_trunchi,
16995 *zero_extend<mode>_truncqi): Merge these into ...
16996 (*zero_extend<GPR:mode>_trunc<SHORT:mode>): ... this new pattern.
16997 Name the pattern following this as *zero_extendhi_truncqi.
16998
16999 2009-05-16 Brad Lucier <lucier@math.purdue.edu>
17000
17001 PR middle-end/39301
17002 * hwint.h: Add macro HOST_WIDEST_INT_PRINT.
17003 * bitmap.c (bitmap_descriptor): Make fields HOST_WIDEST_INT.
17004 (output_info): Make field HOST_WIDEST_INT.
17005 (print_statistics): Use HOST_WIDEST_INT_PRINT.
17006 (dump_bitmat_statistics): Same.
17007
17008 2009-05-16 Francois-Xavier Coudert <fxcoudert@gmail.com>
17009
17010 * config.gcc (use_gcc_stdint): Set to wrap.
17011 * config/darwin.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
17012 INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
17013 UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
17014 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
17015 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
17016 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
17017 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
17018 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
17019
17020 2009-05-16 Joseph Myers <joseph@codesourcery.com>
17021
17022 * config.gcc (mips*-*-*): Support arch_32, arch_64, tune_32 and
17023 tune_64.
17024 * config/mips/mips.h (MIPS_ABI_DEFAULT, MULTILIB_ABI_DEFAULT):
17025 Move definitions earlier.
17026 (OPT_ARCH64, OPT_ARCH32): Define.
17027 (OPTION_DEFAULT_SPECS): Add entries for arch_32, arch_64, tune_32
17028 and tune_64.
17029
17030 2009-05-16 Richard Earnshaw <rearnsha@arm.com>
17031
17032 PR target/40153
17033 * arm.md (cstoresi_nltu_thumb1): Use a neg of ltu as the pattern name
17034 implies.
17035
17036 2009-05-16 Richard Earnshaw <rearnsha@arm.com>
17037
17038 * arm.md (movdi2): Copy non-reg values to DImode registers.
17039
17040 2009-05-16 Jakub Jelinek <jakub@redhat.com>
17041
17042 PR target/39942
17043 * final.c (label_to_max_skip): New function.
17044 (label_to_alignment): Only use LABEL_TO_ALIGNMENT if
17045 CODE_LABEL_NUMBER <= max_labelno.
17046 * output.h (label_to_max_skip): New prototype.
17047 * config/i386/i386.c (ix86_avoid_jump_misspredicts): Renamed to...
17048 (ix86_avoid_jump_mispredicts): ... this. Don't define if
17049 ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined. Update comment.
17050 Handle CODE_LABELs with >= 16 byte alignment or with
17051 max_skip == (1 << align) - 1.
17052 (ix86_reorg): Don't call ix86_avoid_jump_mispredicts if
17053 ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined.
17054
17055 PR target/39942
17056 * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Don't emit second
17057 .p2align 3 if MAX_SKIP is smaller than 7.
17058 * config/i386/linux.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
17059
17060 2009-05-15 Ian Lance Taylor <iant@google.com>
17061
17062 * alias.c (struct alias_set_entry_d): Rename from struct
17063 alias_set_entry. Change all uses.
17064 * except.c (struct call_site_record_d): Rename from struct
17065 call_site_record. Change all uses.
17066 * except.h (struct eh_region_d): Rename from struct eh_region.
17067 Change all uses.
17068 * gcse.c (struct hash_table_d): Rename from struct hash_table.
17069 Change all uses.
17070 * graphite.c (struct ivtype_map_elt_d): Rename fromstruct
17071 ivtype_map_elt. Change all uses.
17072 (struct rename_map_elt_d): Rename fromstruct rename_map_elt.
17073 Change all uses.
17074 (struct ifsese_d): Rename fromstruct ifsese. Change all uses.
17075 * graphite.h (struct name_tree_d): Rename from struct name_tree.
17076 Change all uses.
17077 (struct sese_d): Rename from struct sese. Change all uses.
17078 * omega.h (struct eqn_d): Rename from struct eqn. Change all uses.
17079 (struct omega_pb_d): Rename from struct omega_pb. Change all uses.
17080 * optabs.h (struct optab_d): Rename from struct optab. Change all
17081 uses.
17082 (struct convert_optab_d): Rename from struct convert_optab.
17083 Change all uses.
17084 * tree-pass.h (struct ipa_opt_pass_d): Rename fromstruct
17085 ipa_opt_pass. Change all uses.
17086 * tree-predcom.c (struct dref_d): Rename from struct dref. Change
17087 all uses.
17088
17089 * c-decl.c (pushtag): If -Wc++-compat, warn if the tag is already
17090 defined as a typedef.
17091 (grokdeclarator): If -Wc++-compat, warn if a typedef is already
17092 defined as a tag.
17093
17094 2009-05-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
17095
17096 PR 16302
17097 * fold-const.c (make_range,build_range_check,merge_ranges): Move
17098 declaration to...
17099 (merge_ranges): Returns bool.
17100 * tree.h (make_range): .. to here.
17101 (build_range_check): Likewise.
17102 (merge_ranges): Likewise. Renamed from merge_ranges.
17103 * c-typeck.c (parser_build_binary_op): Update calls to
17104 warn_logical_operator.
17105 * c-common.c (warn_logical_operator): Add new warning.
17106 * c-common.h (warn_logical_operator): Update declaration.
17107
17108 2009-05-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
17109
17110 * ira-conflicts.c (add_insn_allocno_copies): Fix wrong conditional.
17111
17112 2009-05-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17113
17114 * doc/install.texi: Document MPC requirements, flags etc.
17115
17116 * builtins.c (do_mpc_arg1, fold_builtin_ccos): New.
17117 (fold_builtin_cexp): Ensure we get a complex REAL_TYPE.
17118 Evaluate constant arguments.
17119 (fold_builtin_carg): Ensure we get a complex REAL_TYPE.
17120 (fold_builtin_1): Likewise, also evaluate constant arguments.
17121 Remove superfluous break.
17122 (do_mpc_ckconv): New.
17123 * real.h: Include mpc.h.
17124 * toplev.c (print_version): Output MPC version info if available.
17125
17126 2009-05-15 Sandra Loosemore <sandra@codesourcery.com>
17127
17128 * fold-const.c (fold_convert_const_real_from_real): Check for overflow.
17129
17130 2009-05-15 H.J. Lu <hongjiu.lu@intel.com>
17131
17132 * config/i386/i386.c (ix86_reorg): Call optimize_function_for_speed_p
17133 only once.
17134
17135 2009-05-15 Jan Hubicka <jh@suse.cz>
17136
17137 * doc/invoke.texi (max-early-inliner-iterations): New flag.
17138 * ipa-inline.c (enum inlining_mode): New INLINE_SIZE_NORECURSIVE.
17139 (try_inline): Fix return value.
17140 (cgraph_decide_inlining_incrementally): Honor new value.
17141 (cgraph_early_inlining): Handle indirect inlining.
17142 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): New.
17143
17144 2009-05-15 Jan Hubicka <jh@suse.cz>
17145
17146 * cgraph.h (struct cgraph_node): Add finalized_by_frotnend flag.
17147 * cgraphunit.c (cgraph_finalize_function): Set it.
17148 (cgraph_expand_function): Use it.
17149
17150 2009-05-15 Sandra Loosemore <sandra@codesourcery.com>
17151
17152 * real.c (encode_ieee_half): Define.
17153 (decode_ieee_half): Define.
17154 (ieee_half_format): Define.
17155 (arm_half_format): Define.
17156 * real.h (ieee_half_format): Declare.
17157 (arm_half_format): Declare.
17158
17159 2009-05-15 Sandra Loosemore <sandra@codesourcery.com>
17160
17161 * optabs.c (prepare_float_lib_cmp): Test that the comparison,
17162 swapped, and reversed optabs exist before trying to use them.
17163
17164 2009-05-15 Paul Brook <paul@codesourcery.com>
17165 Sandra Loosemore <sandra@codesourcery.com>
17166
17167 * config/arm/arm.c (neon_vector_mem_operand): Handle element/structure
17168 loads. Allow PRE_DEC.
17169 (output_move_neon): Handle PRE_DEC.
17170 (arm_print_operand): Add 'A' for neon structure loads.
17171 * config/arm/arm-protos.h (neon_vector_mem_operand): Update prototype.
17172 * config/arm/neon.md (neon_mov): Update comment.
17173 * config/arm/constraints.md (Un, Us): Update neon_vector_mem_operand
17174 calls.
17175 (Um): New constraint.
17176
17177 2009-05-15 Jan Hubicka <jh@suse.cz>
17178
17179 Revert the following patch until testsuite fallout is fixed:
17180 * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
17181 * cgraph.h (struct inline_summary): New filed self_wize,
17182 size_inlining_benefit, self_time and time_inlining_benefit.
17183 (struct cgraph_global_info): Replace insns by time ans size fields.
17184 * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
17185 (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
17186 (ipcp_update_callgraph): Do not touch function bodies.
17187 * ipa-inline.c: Include except.h
17188 (MAX_TIME): New constant.
17189 (overall_insns): Remove
17190 (overall_size, max_benefit): New static variables.
17191 (cgraph_estimate_time_after_inlining): New function.
17192 (cgraph_estimate_size_after_inlining): Rewrite using benefits.
17193 (cgraph_clone_inlined_nodes): Update size.
17194 (cgraph_mark_inline_edge): Update size.
17195 (cgraph_estimate_growth): Use size info.
17196 (cgraph_check_inline_limits): Check size.
17197 (cgraph_default_inline_p): Likewise.
17198 (cgraph_edge_badness): Compute badness based on benefit and size cost.
17199 (cgraph_decide_recursive_inlining): Check size.
17200 (cgraph_decide_inlining_of_small_function): Update size; dump sizes
17201 and times.
17202 (cgraph_decide_inlining): Likewise.
17203 (cgraph_decide_inlining_incrementally): Likewise; honor
17204 PARAM_EARLY_INLINING_INSNS.
17205 (likely_eliminated_by_inlining_p): New predicate.
17206 (estimate_function_body_sizes): New function.
17207 (compute_inline_parameters): Use it.
17208 * except.c (must_not_throw_labels): New function.
17209 * except.h (must_not_throw_labels): Declare.
17210 * tree-inline.c (init_inline_once): Kill inlining_weigths
17211 * tree-ssa-structalias.c: Avoid uninitialized warning.
17212 * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
17213 (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
17214 (PARAM_INLINE_CALL_COST): Remove.
17215 (PARAM_EARLY_INLINING_INSNS): New.
17216
17217 2009-05-15 Richard Guenther <rguenther@suse.de>
17218
17219 * tree-ssa-pre.c (eliminate): Use TODO_update_ssa_only_virtuals,
17220 not TODO_update_ssa.
17221
17222 2009-05-15 Richard Guenther <rguenther@suse.de>
17223
17224 PR tree-optimization/39999
17225 * gimple.h (gimple_expr_type): Use the expression type looking
17226 through useless conversions.
17227 * tree-ssa-sccvn.c (vn_nary_op_lookup_stmt): Use gimple_expr_type.
17228 (vn_nary_op_insert_stmt): Likewise.
17229 (simplify_binary_expression): Likewise.
17230
17231 2009-05-15 Richard Guenther <rguenther@suse.de>
17232
17233 * common.opt (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
17234 New options, enabled by default.
17235 * doc/invoke.texi (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
17236 Document.
17237 * tree-ssa-forwprop.c (gate_forwprop): Use flag_tree_forwprop.
17238 * tree-ssa-phiprop.c (gate_phiprop): Use flag_tree_phiprop.
17239 * tree-ssa-structalias.c (gate_tree_pta): New function.
17240 (pass_build_alias): Use it.
17241
17242 2009-05-15 Joseph Myers <joseph@codesourcery.com>
17243
17244 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
17245 recurse on an invariant address if a conversion from a pointer
17246 type to a wider integer type is involved.
17247
17248 2009-05-15 Jan Hubicka <jh@suse.cz>
17249
17250 * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
17251 * cgraph.h (struct inline_summary): New filed self_wize,
17252 size_inlining_benefit, self_time and time_inlining_benefit.
17253 (struct cgraph_global_info): Replace insns by time ans size fields.
17254 * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
17255 (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
17256 (ipcp_update_callgraph): Do not touch function bodies.
17257 * ipa-inline.c: Include except.h
17258 (MAX_TIME): New constant.
17259 (overall_insns): Remove
17260 (overall_size, max_benefit): New static variables.
17261 (cgraph_estimate_time_after_inlining): New function.
17262 (cgraph_estimate_size_after_inlining): Rewrite using benefits.
17263 (cgraph_clone_inlined_nodes): Update size.
17264 (cgraph_mark_inline_edge): Update size.
17265 (cgraph_estimate_growth): Use size info.
17266 (cgraph_check_inline_limits): Check size.
17267 (cgraph_default_inline_p): Likewise.
17268 (cgraph_edge_badness): Compute badness based on benefit and size cost.
17269 (cgraph_decide_recursive_inlining): Check size.
17270 (cgraph_decide_inlining_of_small_function): Update size; dump sizes
17271 and times.
17272 (cgraph_decide_inlining): Likewise.
17273 (cgraph_decide_inlining_incrementally): Likewise; honor
17274 PARAM_EARLY_INLINING_INSNS.
17275 (likely_eliminated_by_inlining_p): New predicate.
17276 (estimate_function_body_sizes): New function.
17277 (compute_inline_parameters): Use it.
17278 * except.c (must_not_throw_labels): New function.
17279 * except.h (must_not_throw_labels): Declare.
17280 * tree-inline.c (init_inline_once): Kill inlining_weigths
17281 * tree-ssa-structalias.c: Avoid uninitialized warning.
17282 * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
17283 (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
17284 (PARAM_INLINE_CALL_COST): Remove.
17285 (PARAM_EARLY_INLINING_INSNS): New.
17286 doc/invoke.texi (max-inline-insns-auto, early-inlining-insns): Update.
17287 (inline-call-cost): Remove.
17288 (early-inlining-insns): New.
17289
17290 2009-05-15 Eric Botcazou <ebotcazou@adacore.com>
17291
17292 * dbxout.c (dbxout_range_type): Add LOW and HIGH parameters. Use them
17293 for bounds.
17294 (print_int_cst_bounds_in_octal_p): Likewise.
17295 (dbxout_type): Adjust calls to above functions. Be prepared to deal
17296 with subtypes.
17297 * dwarf2out.c (base_type_die): Likewise.
17298 (is_subrange_type): Delete.
17299 (subrange_type_die): Add LOW and HIGH parameters. Use them for bounds.
17300 (modified_type_die): Call subrange_type_for_debug_p on subtypes.
17301 * fold-const.c (fold_truth_not_expr) <CONVERT_EXPR>: Do not strip it
17302 if the destination type is boolean.
17303 (build_range_check): Do not special-case subtypes.
17304 (fold_sign_changed_comparison): Likewise.
17305 (fold_unary): Likewise.
17306 * langhooks-def.h (LANG_HOOKS_GET_SUBRANGE_BOUNDS): Define.
17307 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_GET_SUBRANGE_BOUNDS.
17308 * langhooks.h (lang_hooks_for_types): Add get_subrange_bounds.
17309 * tree.c (subrange_type_for_debug_p): New predicate based on the
17310 former is_subrange_type.
17311 * tree.h (subrange_type_for_debug_p): Declare.
17312 * tree-chrec.c (avoid_arithmetics_in_type_p): Delete.
17313 (convert_affine_scev): Remove call to above function.
17314 (chrec_convert_aggressive): Likewise.
17315 * tree-ssa.c (useless_type_conversion_p_1): Do not specifically return
17316 false for conversions involving subtypes.
17317 * tree-vrp.c (vrp_val_max): Do not special-case subtypes.
17318 (vrp_val_min): Likewise.
17319 (needs_overflow_infinity): Likewise.
17320 (extract_range_from_unary_expr): Likewise.
17321
17322 2009-05-15 Paolo Bonzini <bonzini@gnu.org>
17323
17324 * config/frv/frv.h: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
17325 * config/frv/frv.c: Likewise.
17326 * config/s390/s390.c: Likewise.
17327 * config/sparc/sparc.h: Likewise.
17328 * config/i386/i386.h: Likewise.
17329 * config/i386/i386.c: Likewise.
17330 * config/crx/crx.c: Likewise.
17331 * config/m68hc11/m68hc11.h: Likewise.
17332 * config/iq2000/iq2000.c: Likewise.
17333 * config/mn10300/mn10300.h: Likewise.
17334 * config/mn10300/mn10300.c: Likewise.
17335 * config/m68k/m68k.c: Likewise.
17336 * config/rs6000/rs6000.c: Likewise.
17337 * config/rs6000/xcoff.h: Likewise.
17338 * config/rs6000/linux64.h: Likewise.
17339 * config/rs6000/sysv4.h: Likewise.
17340 * config/score/score3.c: Likewise.
17341 * config/score/score7.c: Likewise.
17342 * config/score/score.c: Likewise.
17343 * config/arm/arm.md: Likewise.
17344 * config/mips/mips.c: Likewise.
17345 * config/mips/mips.md: Likewise.
17346 * config/bfin/bfin.h: Likewise.
17347 * config/pa/pa.c: Likewise.
17348 * config/pa/constraints.md: Likewise.
17349
17350 * config/pdp11/pdp11-protos.h (legitimate_address_p): Delete.
17351 * config/pdp11/pdp11.c (legitimate_address_p): Delete.
17352 * config/pdp11/pdp11.h: Use memory_address_p instead.
17353
17354 2009-05-14 Ian Lance Taylor <iant@google.com>
17355
17356 * passes.c (finish_optimization_passes): Change i to int.
17357 * plugin.c (plugins_active_p): Change event to int.
17358 (dump_active_plugins): Likewise.
17359 * reginfo.c (invalid_mode_change_p): Change to to unsigned int.
17360 Add cast.
17361 * tree.c (tree_range_check_failed): Change c to unsigned int.
17362 (omp_clause_range_check_failed): Likewise.
17363 (build_common_builtin_nodes): Change mode to int. Add cast.
17364 * config/ia64/ia64.c (is_emitted): Change r to unsigned int.
17365 (ia64_hard_regno_rename_ok, ia64_eh_uses): Likewise.
17366
17367 * c-typeck.c (build_unary_op): If -Wc++-compat, warn about using
17368 ++ or -- with a variable of enum type.
17369
17370 2009-05-14 Steven Bosscher <steven@gcc.gnu.org>
17371
17372 PR driver/40144
17373 * opts.c (common_handle_option): Add OPT_fcse_skip_blocks as a no-op.
17374
17375 2009-05-14 Steven Bosscher <steven@gcc.gnu.org>
17376
17377 * store-motion.c: Do not include params.h
17378 * Makefile.in: Fix dependencies for various files.
17379
17380 2009-05-14 Steven Bosscher <steven@gcc.gnu.org>
17381
17382 * auto-inc-dec.c: Fix pass description, remove apparent
17383 accidental duplication.
17384
17385 2009-05-14 H.J. Lu <hongjiu.lu@intel.com>
17386
17387 PR middle-end/40147
17388 * ipa-utils.h (memory_identifier_string): Moved to ...
17389 * tree.h (memory_identifier_string): Here. Add GTY(()).
17390
17391 2009-05-14 Paolo Bonzini <bonzini@gnu.org>
17392
17393 * doc/tm.texi (TARGET_LEGITIMATE_ADDRESS_P): Refer mainly to this
17394 in the former documentation of...
17395 (GO_IF_LEGITIMATE_ADDRESS): ... this.
17396 * ira-conflicts.c (get_dup_num): Use address_operand.
17397 * targhooks.c (default_legitimate_address_p): New.
17398 * targhooks.h (default_legitimate_address_p): New.
17399 * reload.c (strict_memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]:
17400 Call hook.
17401 * recog.c (memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]: Call hook.
17402 * target.h (struct target): Add legitimate_address_p.
17403 * target-def.h (TARGET_LEGITIMATE_ADDRESS_P): New.
17404 (TARGET_INITIALIZER): Include it.
17405
17406 * config/alpha/alpha.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17407 * config/alpha/alpha-protos.h (alpha_legitimate_address_p): Remove.
17408 * config/alpha/alpha.c (alpha_legitimate_address_p): Make static.
17409 (TARGET_LEGITIMATE_ADDRESS_P): New.
17410
17411 * config/frv/frv.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17412 (REG_OK_STRICT_P): Delete.
17413 * config/frv/frv-protos.h (frv_legitimate_address_p): Rename to...
17414 (frv_legitimate_address_p_1): ... this.
17415 * config/frv/frv.c (frv_legitimate_address_p): Forward to...
17416 (frv_legitimate_address_p_1): ... the renamed old
17417 frv_legitimate_address_p.
17418 * config/frv/predicates.md: Adjust calls to frv_legitimate_address_p.
17419 (TARGET_LEGITIMATE_ADDRESS_P): New.
17420
17421 * config/s390/s390.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17422 * config/s390/s390-protos.h (legitimate_address_p): Remove.
17423 * config/s390/s390.c (legitimate_address_p): Rename to...
17424 (s390_legitimate_address_p): ... this, make static.
17425 (legitimize_address): Adjust call.
17426 (TARGET_LEGITIMATE_ADDRESS_P): New.
17427 * config/s390/constraints.md ("e"): Call strict_memory_address_p.
17428
17429 * config/m32c/m32c.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17430 * config/m32c/m32c-protos.h (m32c_legitimate_address_p): Remove.
17431 * config/m32c/m32c.c (m32c_legitimate_address_p): Make static.
17432 (TARGET_LEGITIMATE_ADDRESS_P): New.
17433
17434 * config/spu/spu.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17435 * config/spu/spu-protos.h (spu_legitimate_address): Remove.
17436 * config/spu/spu.c (spu_legitimate_address): Rename to...
17437 (spu_legitimate_address_p): ... this, make static.
17438 (TARGET_LEGITIMATE_ADDRESS_P): New.
17439
17440 * config/sparc/sparc.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17441 * config/sparc/sparc-protos.h (legitimate_address_p): Remove.
17442 * config/sparc/sparc.c (legitimate_address_p): Rename to...
17443 (sparc_legitimate_address_p): ... this, make static and return bool.
17444 (legitimize_address): Adjust call.
17445 (TARGET_LEGITIMATE_ADDRESS_P): New.
17446
17447 * config/i386/i386.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17448 * config/i386/i386-protos.h (legitimate_address_p): Remove.
17449 * config/i386/i386.c (legitimate_address_p): Rename to...
17450 (ix86_legitimate_address_p): ... this, make static.
17451 (constant_address_p): Move after it, adjust call.
17452 (TARGET_LEGITIMATE_ADDRESS_P): New.
17453
17454 * config/avr/avr.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17455 * config/avr/avr-protos.h (legitimate_address_p): Remove.
17456 * config/avr/avr.c (legitimate_address_p): Rename to...
17457 (avr_legitimate_address_p): ... this, make static.
17458 (legitimize_address): Adjust call.
17459 (TARGET_LEGITIMATE_ADDRESS_P): New.
17460
17461 * config/crx/crx.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17462 * config/crx/crx-protos.h (crx_legitimate_address_p): Remove.
17463 * config/crx/crx.c (crx_legitimate_address_p): Make static.
17464 (TARGET_LEGITIMATE_ADDRESS_P): New.
17465
17466 * config/xtensa/xtensa.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17467 * config/xtensa/xtensa-protos.h (xtensa_legitimate_address_p): Remove.
17468 * config/xtensa/xtensa.c (xtensa_legitimate_address_p): Make static.
17469 (TARGET_LEGITIMATE_ADDRESS_P): New.
17470
17471 * config/stormy16/stormy16.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17472 * config/stormy16/stormy16-protos.h (xstormy16_legitimate_address_p):
17473 Remove.
17474 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
17475 Make static.
17476 (TARGET_LEGITIMATE_ADDRESS_P): New.
17477
17478 * config/m68hc11/m68hc11.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17479 * config/m68hc11/m68hc11-protos.h (m68hc11_go_if_legitimate_address):
17480 Remove.
17481 * config/m68hc11/m68hc11.c (m68hc11_go_if_legitimate_address):
17482 Rename to...
17483 (m68hc11_legitimate_address_p): ... this, make static.
17484 (go_if_legitimate_address_internal): Rename to...
17485 (m68hc11_legitimate_address_p_1): ... this.
17486 (legitimize_address): Adjust call.
17487 (TARGET_LEGITIMATE_ADDRESS_P): New.
17488
17489 * config/iq2000/iq2000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17490 * config/iq2000/iq2000-protos.h (iq2000_legitimate_address_p): Remove.
17491 * config/iq2000/iq2000.c (iq2000_legitimate_address_p): Make static.
17492 (TARGET_LEGITIMATE_ADDRESS_P): New.
17493
17494 * config/mn10300/mn10300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17495 * config/mn10300/mn10300-protos.h (legitimate_address_p): Remove.
17496 * config/mn10300/mn10300.c (legitimate_address_p): Rename to...
17497 (mn10300_legitimate_address_p): ... this, make static.
17498 (TARGET_LEGITIMATE_ADDRESS_P): New.
17499
17500 * config/m68k/m68k.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17501 * config/m68k/m68k-protos.h (m68k_legitimate_address_p): Remove.
17502 * config/m68k/m68k.c (m68k_legitimate_address_p): Make static.
17503 (TARGET_LEGITIMATE_ADDRESS_P): New.
17504
17505 * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17506 (REG_OK_STRICT_FLAG, REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Delete.
17507 (INT_REG_OK_FOR_BASE_P, INT_REG_OK_FOR_INDEX_P): Move above.
17508 * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17509 * config/rs6000/rs6000-protos.h (rs6000_legitimate_address): Remove.
17510 * config/rs6000/rs6000.c (rs6000_legitimate_address): Rename to...
17511 (rs6000_legitimate_address_p): ... this, make static.
17512 (TARGET_LEGITIMATE_ADDRESS_P): New.
17513 (REG_MODE_OK_FOR_BASE_P): Delete.
17514 (rs6000_legitimize_reload_address): Use INT_REG_OK_FOR_BASE_P.
17515
17516 * config/picochip/picochip.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17517 * config/picochip/picochip-protos.h (picochip_legitimate_address_p):
17518 Delete.
17519 * config/picochip/picochip.c (picochip_legitimate_address_p): Make
17520 static, adjust types.
17521 (TARGET_LEGITIMATE_ADDRESS_P): New.
17522
17523 * config/score/score.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17524 * config/score/score.c (score_address_p): Rename to...
17525 (score_legitimate_address_p): ... this.
17526 (TARGET_LEGITIMATE_ADDRESS_P): New.
17527 * config/score/score3.c (score3_address_p): Rename to...
17528 (score3_legitimate_address_p): ... this.
17529 * config/score/score7.c (score7_address_p): Rename to...
17530 (score7_legitimate_address_p): ... this.
17531
17532 * config/arm/arm.h (ARM_GO_IF_LEGITIMATE_ADDRESS,
17533 THUMB2_GO_IF_LEGITIMATE_ADDRESS, THUMB1_GO_IF_LEGITIMATE_ADDRESS,
17534 GO_IF_LEGITIMATE_ADDRESS): Delete.
17535 * config/arm/arm-protos.h (thumb1_legitimate_address_p,
17536 thumb2_legitimate_address_p): Delete.
17537 (arm_legitimate_address_p): Rename to...
17538 (arm_legitimate_address_outer_p): ... this.
17539 * config/arm/constraints.md ("Uq"): Adjust call.
17540 * config/arm/predicates.md (arm_extendqisi_mem_op): Likewise.
17541 * config/arm/arm.c (arm_legitimate_address_p): New, rename old one
17542 to...
17543 (arm_legitimate_address_outer_p): ... this.
17544 (thumb1_legitimate_address_p, thumb2_legitimate_address_p): Make
17545 static.
17546 (TARGET_LEGITIMATE_ADDRESS_P): New.
17547
17548 * config/mips/mips.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17549 * config/mips/mips-protos.h (mips_legitimate_address_p): Remove.
17550 * config/mips/mips.c (mips_legitimate_address_p): ... Make static.
17551 (TARGET_LEGITIMATE_ADDRESS_P): New.
17552
17553 * config/vax/vax.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17554 * config/vax/vax-protos.h (legitimate_address_p): Remove.
17555 * config/vax/vax.c (legitimate_address_p): Rename to...
17556 (vax_legitimate_address_p): ... this, make static.
17557 (TARGET_LEGITIMATE_ADDRESS_P): New.
17558
17559 * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17560 * config/h8300/h8300-protos.h (h8300_legitimate_address_p): Remove.
17561 * config/h8300/h8300.c (h8300_legitimate_address_p): ... Make static.
17562 (TARGET_LEGITIMATE_ADDRESS_P): New.
17563
17564 * config/mmix/mmix.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17565 * config/mmix/mmix-protos.h (mmix_legitimize_address): Remove.
17566 * config/mmix/mmix.c (mmix_legitimate_address): Rename to...
17567 (mmix_legitimate_address_p): ... this, make static.
17568 (TARGET_LEGITIMATE_ADDRESS_P): New.
17569
17570 * config/bfin/bfin.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17571 * config/bfin/bfin-protos.h (bfin_legitimate_address_p): Remove.
17572 * config/bfin/bfin.c (bfin_legitimate_address_p): ... Make static.
17573 (TARGET_LEGITIMATE_ADDRESS_P): New.
17574
17575 2009-05-14 Paolo Bonzini <bonzini@gnu.org>
17576
17577 * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Remove handling
17578 of MODE_COMPLEX_INT.
17579
17580 2009-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
17581
17582 * config/alpha/alpha.c (alpha_initialize_trampoline): Change 0 to
17583 LCT_NORMAL in function call.
17584 * mips-tdump.c (print_file_desc): Add cast to enum type.
17585 * mips-tfile.c (add_ext_symbol): Add casts to enum types.
17586 (mark_stabs): Add casts to enum types.
17587 (parse_stabs_common): Add casts to enum types.
17588
17589 2009-05-13 Adam Nemet <anemet@caviumnetworks.com>
17590
17591 * config/mips/mips.c (mips_print_operand) <REG, MEM, default>:
17592 Check for invalid values of LETTER.
17593
17594 2009-05-13 Taras Glek <tglek@mozilla.com>
17595
17596 * attribs.c (register_attribute): moved out attribute registration
17597 into register_attribute.
17598 * doc/plugins.texi: Documented register_attribute and
17599 PLUGIN_ATTRIBUTES.
17600 * gcc-plugin.h: Added forward decl for register_attribute.
17601 * gcc-plugin.h (plugins_event): Added PLUGIN_ATTRIBUTES.
17602 * plugin.c (register_callback, invoke_plugin_callbacks): Added
17603 PLUGIN_ATTRIBUTES boilerplate.
17604
17605 2009-05-14 Dave Korn <dave.korn.cygwin@gmail.com>
17606
17607 * config/i386/msformat-c.c (ms_printf_length_specs): Use enumeration
17608 values even in sentinel and empty entries.
17609 (ms_printf_flag_specs): Likewise.
17610 (ms_scanf_flag_specs): Likewise.
17611 (ms_strftime_flag_specs): Likewise.
17612 (ms_print_char_table): Likewise.
17613 (ms_scan_char_table): Likewise.
17614 (ms_time_char_table): Likewise.
17615
17616 2009-05-13 Doug Kwan <dougkwan@google.com>
17617
17618 * tree-ssa-sccvn.c (compare_ops): Stabilize qsort.
17619
17620 2009-05-13 Adam Nemet <anemet@caviumnetworks.com>
17621
17622 * config/mips/mips.md (store): Add attributes for QI and HI.
17623 Update comment.
17624 (truncdisi2, truncdihi2, truncdiqi2): Merge these into ...
17625 (truncdi<mode>2): ... this new pattern.
17626
17627 2009-05-13 Brad Hards <bradh@kde.org>
17628
17629 * Makefile.in (TEXI_GCCINT_FILES): Add plugins.texi.
17630
17631 2009-05-14 Jakub Jelinek <jakub@redhat.com>
17632 Ben Elliston <bje@au.ibm.com>
17633
17634 PR middle-end/40035
17635 * dse.c (check_mem_read_rtx): Guard against width == -1.
17636
17637 2009-05-13 Michael Matz <matz@suse.de>
17638
17639 PR middle-end/39976
17640 * tree-outof-ssa.c (maybe_renumber_stmts_bb): New function.
17641 (trivially_conflicts_p): New function.
17642 (insert_backedge_copies): Use it.
17643
17644 2009-05-13 Janis Johnson <janis187@us.ibm.com>
17645
17646 * c-pragma.c (enum pragma_switch_t): Prefix constants with PRAGMA_.
17647 (handle_stdc_pragma): Use new enum constant names.
17648 (handle_pragma_float_const_decimal64): Ditto.
17649
17650 2009-05-13 Ian Lance Taylor <iant@google.com>
17651
17652 * Makefile.in (build/gencheck.o): Depend upon all-tree.def, not
17653 tree.def.
17654
17655 2009-05-13 Nathan Sidwell <nathan@codesourcery.com>
17656
17657 * config/m68k/t-uclinux (M68K_MLIB_CPU): Check for FL_UCLINUX.
17658 * config/m68k/m68k-devices.def: Add FL_UCLINUX to 68020 and 54455
17659 multilibs.
17660 * config/m68k/m68k.h (FL_UCLINUX): Define.
17661
17662 2009-05-13 Jan Hubicka <jh@suse.cz>
17663
17664 * options.c (gfc_post_options): -fwhole-program imply -fwhole-file.
17665
17666 2009-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
17667
17668 * config/sh/sh.h (OVERRIDE_OPTIONS): Clear flag_schedule_insns
17669 unless -fschedule-insns is specified.
17670
17671 2009-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
17672
17673 PR target/39561
17674 * config/sh/sh.h (OPTIMIZATION_OPTIONS): Don't set
17675 TARGET_EXPAND_CBRANCHDI4.
17676 * config/sh/sh.md (cbranchdi4): Don't check TARGET_EXPAND_CBRANCHDI4.
17677 * config/sh/sh.opt (mexpand-cbranchdi): Remove.
17678 (cmpeqdi): Fix comment.
17679
17680 2009-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
17681
17682 * config/sh/sh-protos.h (sh_legitimate_index_p): Declare.
17683 (sh_legitimate_address_p): Likewise.
17684 * config/sh/sh.c (sh_legitimate_index_p): New.
17685 (sh_legitimate_address_p): Likewise.
17686 * config/sh/sh.h (REG_OK_FOR_BASE_P): Add STRICT parameter.
17687 (REG_OK_FOR_INDEX_P, SUBREG_OK_FOR_INDEX_P): Likewise.
17688 (MODE_DISP_OK_4, MODE_DISP_OK_8): Remove.
17689 (MAYBE_BASE_REGISTER_RTX_P): New macro.
17690 (MAYBE_INDEX_REGISTER_RTX_P): Likewise.
17691 (BASE_REGISTER_RTX_P): Use MAYBE_BASE_REGISTER_RTX_P.
17692 (INDEX_REGISTER_RTX_P): Use MAYBE_INDEX_REGISTER_RTX_P.
17693 (GO_IF_LEGITIMATE_INDEX): Use sh_legitimate_index_p.
17694 (GO_IF_LEGITIMATE_ADDRESS): Use sh_legitimate_address_p.
17695
17696 2009-05-12 Jan Hubicka <jh@suse.cz>
17697
17698 * tree-inline.c (estimate_operator_cost): Add operands;
17699 when division happens by constant, it is cheap.
17700 (estimate_num_insns): Loads and stores are not having cost of 0;
17701 EH magic stuff is cheap; when computing runtime cost of switch,
17702 use log2 base of amount of its cases; builtin_expect has cost of 0;
17703 compute cost for moving return value of call.
17704 (init_inline_once): Initialize time_based flags.
17705 * tree-inline.h (eni_weights_d): Add time_based flag.
17706
17707 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
17708
17709 * df-core.c: Update head documentation.
17710
17711 2009-05-12 Michael Meissner <meissner@linux.vnet.ibm.com>
17712
17713 PR bootstrap/40118
17714 * rs6000.c (rs6000_generate_compare): Use op1b instead of
17715 shadowing exisiting variable op1.
17716
17717 2009-05-12 Uros Bizjak <ubizjak@gmail.com>
17718
17719 PR target/37179
17720 * config/i386/driver-i386.c (processor_signatures): New enum.
17721 (SIG_GEODE): Move from vendor_signatures to processor_signatures.
17722 (host_detect_local_cpu): For SIG_AMD vendor, check for SIG_GEODE
17723 processor signature to detect geode processor.
17724
17725 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
17726
17727 Revert:
17728
17729 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
17730
17731 * optabs.c (prepare_cmp_insn): Temporarily disable test that
17732 causes spurious differences between trunk and cond-optab branch.
17733
17734 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
17735
17736 * dojump.c (compare_from_rtx): Delete.
17737 * expmed.c (emit_store_flag): Only try cstore_optab. Canonicalize
17738 any MODE_CC mode to the cstorecc4 pattern. Use prepare_operand, fail
17739 if the comparison does not satisfy the predicate; test predicates for
17740 operands 2 and 3 of a cstore pattern. Don't try cstore optab
17741 further if one existing pattern fails.
17742 * expr.h (compare_from_rtx): Delete.
17743 (prepare_operand): Declare it.
17744 * optabs.c: Change "lib call" to "libcall" throughout.
17745 (bcc_gen_fctn, setcc_gen_code, trap_rtx,
17746 HAVE_conditional_trap, emit_cmp_insn): Delete.
17747 (can_compare_p): Delete cmp_optab case.
17748 (prepare_float_lib_cmp): Return an rtx and a machine mode.
17749 Accept other parameters by value.
17750 (prepare_operand): Make non-static.
17751 (prepare_cmp_insn): Return an rtx and a machine mode. Accept
17752 other parameters by value. Try to widen operands here based on
17753 an optab_methods argument and looking at cbranch_optab.
17754 (emit_cmp_and_jump_insn_1): Accept test and mode, remove widening
17755 loop. Use cbranch_optab directly.
17756 (emit_cmp_and_jump_insns): Fix comment. Adjust call to
17757 prepare_cmp_insn and emit_cmp_and_jump_insn_1, remove obsolete
17758 assertion.
17759 (emit_conditional_move, emit_conditional_add): Inline what's needed
17760 of compare_from_rtx, using new prepare_cmp_insn for the rest.
17761 (init_optabs): Init cmp_optab with UNKNOWN, cbranch_optab
17762 with COMPARE. Move cmov_optab and cstore_optab above
17763 with cbranch_optab, move cmp_optab down with ucmp_optab,
17764 remove tst_otpab. Do not initialize trap_rtx.
17765 (gen_cond_trap): Do it here. Use ctrap_optab. Test predicate
17766 for trap code. Do not check HAVE_conditional_trap. Use
17767 prepare_cmp_insn. Accept no predicate for operand 3.
17768 * optabs.h (OTI_cmp): Mark as used only for libcalls.
17769 (OTI_ctrap, ctrap_optab): New.
17770 (tst_optab): Delete.
17771 (bcc_gen_fctn, setcc_gen_code, emit_cmp_insn): Delete.
17772 * ifcvt.c (find_if_header): Replace HAVE_conditional_trap
17773 with lookup of ctrap_optab.
17774 * genopinit.c (cmp_optab, tst_optab, bcc_gen_fctn, setcc_gen_code):
17775 Delete.
17776 (ctrap_optab): New.
17777
17778 * combine.c (combine_simplify_rtx, simplify_set): Do not
17779 special case comparing against zero for cc0 machines.
17780 * simplify-rtx.c (simplify_binary_operation_1): Never remove
17781 COMPARE on cc0 machines.
17782 (simplify_relational_operation): Return a new expression when
17783 a COMPARE could be removed.
17784 * final.c (final_scan_insn): Compare cc_status values
17785 against LHS of a (compare FOO (const_int 0)) cc0 source.
17786 Also check if cc_status.value is the full compare.
17787
17788 * doc/md.texi (bCC, sCC, tstMM, cmpMM): Delete.
17789 (cstoreMM4): Document.
17790 (conditional_trap): Document ctrapMM4 instead.
17791 (sync_compare_and_swapMM): Refer to cbranchcc4.
17792 (Dependent Patterns): Eliminate obsolete information referring to
17793 the old jump optimization phase.
17794 (Canonicalization): Include cbranchcc4 case, omit canonicalization
17795 of compares with 0 on cc0 machines.
17796 (Jump Patterns): Refer to MODE_CC jump patterns preferably,
17797 avoiding references to cc0. Remove text about storing operands
17798 in cmpMM.
17799 * doc/tm.texi (Condition Codes): Include blurb on different
17800 condition code representations, separate into subsections for
17801 CC0, MODE_CC and conditional execution.
17802
17803 * config/alpha/alpha-protos.h (alpha_emit_conditional_branch,
17804 alpha_emit_setcc): Accept operands and a machine mode.
17805 * config/alpha/alpha.c (alpha_emit_conditional_branch):
17806 Get code/op0/op1 from operands, use machine mode argument
17807 instead of alpha_compare.fp_p. Emit the branch here.
17808 (alpha_emit_setcc): Likewise, and return boolean.
17809 (alpha_emit_conditional_move): Likewise. Assert that
17810 cmp_op_mode == cmp_mode, and simplify accordingly.
17811 * config/alpha/alpha.h (struct alpha_compare, alpha_compare): Delete.
17812 * config/alpha/alpha.md (cmpdf, cmptf, cmpdi, bCC, sCC): Delete.
17813 (cbranchdf4, cbranchtf4, cbranchdi4, cstoredf4, cstoretf4,cstoredi4):
17814 Delete.
17815 (stack probe test): Use cbranchdi4.
17816 * config/alpha/predicates.md (alpha_cbranch_operator): New.
17817
17818 * config/arc/arc.c (gen_compare_reg): Do not emit cmp.
17819 * config/arc/arc.h (movsicc, movsfcc): Use it.
17820 (movdicc, *movdicc_insn, movdfcc, *movdfcc_insn): Remove.
17821 (cbranchsi4, cstoresi4): New.
17822 (cmpsi, bCC and sCC expanders): Remove.
17823
17824 * config/arm/arm.c (arm_compare_op0, arm_compare_op1): Delete.
17825 * config/arm/arm.h (arm_compare_op0, arm_compare_op1): Delete.
17826 * config/arm/predicates.md (arm_comparison_operator): Only include
17827 floating-point operators if there is a hardware floating-point unit.
17828 * config/arm/arm.md (cbranchsi4, cstoresi4): Enable for TARGET_32BIT,
17829 deferring to cbranch_cc and cstore_cc respectively.
17830 (cbranchsf4, cbranchdf4, cbranchdi4, cstoresf4, cstoredf4, cstoredi4,
17831 cbranch_cc, cstore_cc): New.
17832 (movsicc, movsfcc, movdfcc): Do not use arm_compare_op0 and
17833 arm_compare_op1.
17834 (bCC, sCC, cmpsi, cmpsf, cmpdf, cmpdi): Delete.
17835
17836 * config/avr/avr-protos.h (out_tstsi, out_tsthi): Adjust prototype.
17837 * config/avr/avr.c (out_tstsi, out_tsthi): Get the tested operand
17838 as an argument.
17839 (adjust_insn_length): Adjust calls.
17840 (avr_reorg): Handle (compare (foo) (const_int 0)).
17841 * config/avr/avr.md (tstqi, tsthi, tstsi): Remove.
17842 (*negated_tstqi, *negated_tsthi, *negated_tstsi): Unmacroize.
17843 (*reversed_tsthi, *reversed_tstsi): Add a scratch for simplicity.
17844 (cmpqi, cmphi, cmpsi): Prepend asterisk, fuse tst[qhs]i here.
17845 (bCC): Remove.
17846 (cbranchqi4, cbranchhi4, cbranchsi4): New.
17847 (tst -> sbrc/sbrs peephole2, cpse peephole): Wrap RHS with COMPARE.
17848
17849 * config/bfin/bfin.md (cmpbi, cmpsi, bCC, sCC): Delete.
17850 (cbranchsi4, cstorebi4, cstoresi4): New.
17851 (movbisi): This insn is duplicate, split it to zero_extend.
17852 * config/bfin/bfin.c (bfin_compare_op0, bfin_compare_op1): Delete
17853 (bfin_gen_compare): Do not use them. Emit VOIDmode SET, not BImode.
17854 (bfin_optimize_loop): Use cbranch expander.
17855 * config/bfin/bfin.h (bfin_compare_op0, bfin_compare_op1): Delete.
17856 * config/bfin/predicates.md (bfin_cbranch_operator): Rename to...
17857 (bfin_bimode_comparison_operator): ... this.
17858 (bfin_direct_comparison_operator): New.
17859
17860 * config/cris/cris.c (cris_normal_notice_update_cc): Look
17861 inside (compare FOO (const_int 0)).
17862 (cris_rtx_costs): Handle ZERO_EXTRACT.
17863 * config/cris/cris.md (tstdi, tst<mode>, cmpdi): Delete.
17864 (*tstdi_non_v32): Fold in *cmpdi_non_v32.
17865 (*tstdi_v32): Delete.
17866 (*cmpdi_non_v32): Add M alternative for operand 1.
17867 (cmpsi, cmp<mode>): Make private.
17868 (*tstsi, *tst<mode>_cmp, *tst<mode>_non_cmp, *btst): Wrap LHS
17869 with COMPARE.
17870 (cbranch<mode>4, cbranchdi4, cstore<mode>4): New.
17871
17872 * config/crx/crx.md (cstore<mode>4, cbranchcc4): New.
17873 (cmp<mode>, bCOND_internal, b<code>, s<code>): Delete.
17874 (cbranch<mode>4, sCOND_internal): Use ordered_comparison_operator.
17875 (cc_reg_operand): New.
17876 (any_cond): Delete.
17877 * config/crx/crx.c (crx_compare_op0, crx_compare_op1,
17878 crx_expand_compare, crx_expand_branch, crx_expand_scond): Delete.
17879 * config/crx/crx.h (crx_compare_op0, crx_compare_op1): Delete.
17880 * config/crx/crx-protos.h (crx_expand_compare, crx_expand_branch,
17881 crx_expand_scond): Delete.
17882
17883 * config/fr30/fr30.md (cmp<mode>, bCC): Delete.
17884 (cbranchsi4): New.
17885 * config/fr30/fr30.c (fr30_compare_op0, fr30_compare_op1): Delete
17886 * config/fr30/fr30.h (fr30_compare_op0, fr30_compare_op1): Delete.
17887
17888 * config/frv/frv.md (cbranchsi4, cbranchsf4, cbranchdf4,
17889 cstoresi4, cstoresf4, cstoredf4): New.
17890 (cmpdi, cmpsi, cmpsf, cmpdf, bCC, sCC): Remove.
17891 * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
17892 Receive the entire operands array.
17893 * config/frv/frv.h (frv_compare_op0, frv_compare_op1): Delete.
17894 * config/frv/frv.c (frv_compare_op0, frv_compare_op1): Delete.
17895 * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
17896 Get test/op0/op1 from the operands array.
17897 (frv_emit_cond_move): Get test/op0/op1 from the test_rtx.
17898
17899 * config/h8300/h8300-protos.h (h8300_expand_branch): Accept operands.
17900 (h8300_expand_store): New.
17901 * config/h8300/h8300.c (h8300_rtx_costs): Handle (compare FOO
17902 (const_int 0)).
17903 (h8300_expand_branch): Emit compare here. Adjust for new arguments.
17904 (h8300_expand_store): New.
17905 * config/h8300/h8300.md (btst combine patterns): Wrap with COMPARE
17906 or do not try to produce (set (cc0) REG).
17907 (peepholes): Wrap arguments with COMPARE. Add a peephole to
17908 change a compare into a move to a scratch register. Disable some
17909 peepholes when comparing with zero.
17910 (tstsi, tsthi, tstsi, cmpqi): Make private.
17911 (cmphi): Delete.
17912 (bCC, sCC): Delete.
17913 (cbranchqi4, cbranchhi4, cbranchsi4, cstoreqi4, cstorehi4,
17914 cstoresi4): New.
17915
17916 * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_int_addcc,
17917 ix86_expand_fp_movcc): Set ix86_compare_op0 and ix86_compare_op1.
17918 (ix86_emit_i387_log1p): Use gen_cbranchxf4.
17919 (ix86_emit_i387_log1p): Use cbranchxf2.
17920 (ix86_expand_setcc): Return void.
17921 * config/i386/i386-protos.h (ix86_expand_setcc): Return void.
17922 * config/i386/i386.md (cmpti, cmpdi, cmpsi, cmphi, cmpqi, cmpxf,
17923 cmp<MODEF>, cmpcc): Remove.
17924 (cbranchti4, cbranchdi4, cbranchsi4, cbranchhi4, cbranchqi4,
17925 cbranchxf4, cbranch<MODEF>4, cbranchcc4, cstoredi4, cstoresi4,
17926 cstorehi4, cstoreqi4, cstorexf4, cstore<MODEF>4, cstorecc): New.
17927 (sCC and bCC expanders): Remove.
17928 (stack_protect_test): Use cbranchcc4.
17929
17930 * config/ia64/ia64-protos.h (ia64_compare_op0, ia64_compare_op1):
17931 Delete.
17932 (ia64_expand_compare): Accept three rtx by reference and return void.
17933 * config/ia64/ia64.c (ia64_compare_op0, ia64_compare_op1): Delete.
17934 (ia64_expand_compare): Replace op0/op1 with *op0/*op1. Get code
17935 from *expr. Update *expr with the BImode comparison to do.
17936 * config/ia64/ia64.md (cmpbi, cmpsi, cmpdi, cmpsf, cmpdf, cmpxf,
17937 cmptf, bCC, sCC, conditional_trap): Delete.
17938 (cbranchbi4, cbranchsi4, cbranchdi4, cbranchsf4, cbranchdf4,
17939 cbranchxf4, cbranchtf4, cstorebi4, cstoresi4, cstoredi4, cstoresf4,
17940 cstoredf4, cstorexf4, cstoretf4, ctrapbi4, ctrapsi4, ctrapdi4,
17941 ctrapsf4, ctrapdf4, ctrapxf4, ctraptf4): New.
17942 * config/ia64/predicates.md (ia64_cbranch_operator): New.
17943
17944 * config/iq2000/iq2000-protos.h (gen_conditional_branch): Change
17945 type of last argument.
17946 * config/iq2000/iq2000.c (branch_cmp, branch_type): Remove.
17947 (gen_conditional_branch): Get code/cmp0/cmp1 from operands,
17948 use machine mode argument instead of branch_type. Remove dead
17949 code for floating-point comparisons.
17950 * config/iq2000/iq2000.h (branch_cmp, branch_type): Remove.
17951 * config/iq2000/iq2000.md (cmpsi, cmpdi, cmpsf, cmpdf, tstsi, bCC):
17952 Remove.
17953 (cbranchsi4, cstoresi4): New.
17954 * config/iq2000/predicates.md (reg_or_const_operand): New.
17955
17956 * config/m32c/m32c.md (cbranch splitter): Use match_op_dup.
17957 * config/m32c/m32c.md (any_cond, gl_cond): Delete.
17958 (b<code>_op): Rewrite to...
17959 (bcc_op): ... this, using match_operator.
17960 (s<code>_op): Rewrite to...
17961 (scc_op): ... this, using match_operator.
17962 (s<code>_24_op): Rewrite to...
17963 (scc_op_24): ... this, using match_operator.
17964 (s<code>_<mode>): Rewrite to...
17965 (cstore<mode>4): ... this, using match_operator.
17966 (s<code>_<mode>_24): Rewrite to...
17967 (cstore<mode>4_24): ... this, using match_operator.
17968 * config/m32c/m32c-protos.h (m32c_cmp_flg_0, m32c_pend_compare,
17969 m32c_unpend_compare, m32c_expand_scc): Delete.
17970 * config/m32c/m32c.c (compare_op0, compare_op1, m32c_cmp_flg_0,
17971 m32c_pend_compare, m32c_unpend_compare, m32c_expand_scc): Delete.
17972 (m32c_expand_movcc): Change NE to EQ if necessary.
17973 (m32c_init_libfuncs): Modify cstore optab instead of setcc_gen_code.
17974
17975 * config/m32r/m32r-protos.h (gen_cond_store): New.
17976 * config/m32r/m32r.c (m32r_compare_op0, m32r_compare_op1): Delete.
17977 (gen_cond_store): New, from sCC patterns.
17978 (m32r_expand_block_move): Use cbranchsi4.
17979 * config/m32r/m32r.h (m32r_compare_op0, m32r_compare_op1): Delete.
17980 * config/m32r/m32r.md (cmpsi, bCC, sCC): Delete.
17981 (cbranchsi4, cstoresi4): New.
17982
17983 * config/m68hc11/m68hc11.c (m68hc11_compare_op0, m68hc11_compare_op1):
17984 Delete.
17985 (m68hc11_rtx_costs_1, m68hc11_rtx_costs): Handle ZERO_EXTRACT.
17986 (m68hc11_notice_update_cc): Look into a compare with 0.
17987 * config/m68hc11/m68hc11.h (m68hc11_compare_op0, m68hc11_compare_op1):
17988 Delete.
17989 * config/m68hc11/m68hc11.md (tstsi, tsthi, tstqi, cmpsi,
17990 cmphi, cmpqi, bCC): Delete.
17991 (cbranchsi4, cbranchhi4, cbranchqi4): New.
17992 (tstqi_1, tstqi_z_used, tstqi_1, bitcmpqi, bitcmpqi_z_used,
17993 bitcmpqi_12, bitcmphi, various splits and peephole2s): Wrap cc0<-reg
17994 sets with COMPARE.
17995
17996 * config/m68k/predicates.md (m68k_cstore_comparison_operator,
17997 const0_operand, const1_operand, m68k_subword_comparison_operand): New.
17998 * config/m68k/constraints.md (H): New.
17999 * config/m68k/m68k.md (tstdi): Remove define_expand, use name for
18000 the define_insn below.
18001 (tstsi, tsthi, tst<FP:mode>, cmphi, cmpqi, cmp<FP:mode>): Delete.
18002 (*tstsi_internal_68020_cf, *tstsi_internal, *tsthi_internal,
18003 *tstqi_internal, tst<mode>_6881, tst<mode>_cf, many unnamed
18004 patterns): Wrap RHS with COMPARE.
18005 (tst<FP>_68881, tst<FP>_cf): Use const0_operand.
18006 (*cmpdi_internal): Name this pattern.
18007 (cmpdi): Change to define_insn.
18008 (cbranchdi4, cstoredi4, cbranchsi4, cstoresi4, cbranchhi4, cstorehi4,
18009 cbranchqi4, cstoreqi4, cbranch<FP:mode>4, cstore<FP:mode>4): New.
18010 (scc0_di, scc0_di_5200, scc_di): Use the ordered_comparison_operator
18011 predicate.
18012 (seq, sne, sgt, sgtu, slt, sltu, sge, sgeu, sle, sleu, sordered,
18013 sunordered, suneq, sunge, sungt, sunle, sunlt, sltgt): Delete
18014 (conditional_trap): Change to...
18015 (ctrapdi4, ctrapsi4, ctraphi4, ctrapqi4): ... these.
18016 (*conditional_trap): Use the ordered_comparison_operator and
18017 const1_operand predicates.
18018 * config/m68k/m68k.c (m68k_last_compare_had_fp_operands): Delete.
18019 (m68k_expand_prologue): Use ctrapsi4 instead of cmpsi+conditional_trap.
18020 (m68k_rtx_costs): Look for ZERO_EXTRACT in a COMPARE.
18021 * config/m68k/m68k.h (m68k_last_compare_had_fp_operands): Delete.
18022
18023 * config/mcore/mcore-protos.h (arch_compare_op0, arch_compare_op1,
18024 mcore_modify_comparison, mcore_gen_compare_reg): Remove.
18025 (mcore_gen_compare): New.
18026 * config/mcore/mcore.c (arch_compare_op0, arch_compare_op1): Delete.
18027 (mcore_modify_comparison, mcore_gen_compare_reg): Fold into...
18028 (mcore_gen_compare): ... this.
18029 * config/mcore/mcore.md (cmpsi, bCC, sCC): Remove.
18030 (cbranchsi4, cstoresi4): New, using mcore_gen_compare.
18031 (stack probe pattern): Use cbranchsi4.
18032
18033 * config/mips/predicates.md (mips_cstore_operator): New.
18034 * config/mips/mips-ps-3d.md (movv2sfcc): Do not use cmp_operands.
18035 * config/mips/mips.md (any_cond): Delete.
18036 (conditional_trap): Rename to ctrap<GPR:mode>4. Adjust predicates,
18037 always succeed.
18038 (fixuns_truncdfsi2, fixuns_truncdfdi2, fixuns_truncsfsi2,
18039 fixuns_truncsfdi2): Use cbranch patterns.
18040 (cmp<GPR:mode>, cmp<SCALARF:mode>): Delete.
18041 (b<code>): Change to cbranch<GPR:mode>4 and cbranch<SCALARF:mode>4.
18042 Adjust call to mips_expand_conditional_branch.
18043 (seq, sne, slt<u>, sle<u>, sgt<u>, sge<u>): Change to
18044 cstore<GPR:mode>4.
18045 * config/mips/mips-protos.h (mips_expand_conditional_branch,
18046 mips_expand_scc, mips_expand_conditional_trap): Adjust prototypes.
18047 * config/mips/mips.c (cmp_operands): Delete.
18048 (mips_emit_compare): Get comparison operands from *op0/*op1.
18049 (mips_expand_scc): Get code/op0/op1/target from operands. Assert
18050 that it succeeds. Use op0/op1 instead of cmp_operands.
18051 (mips_expand_conditional_branch, mips_expand_conditional_move,
18052 mips_expand_conditional_trap): Likewise.
18053 (mips_block_move_loop): Use cbranch patterns.
18054 * config/mips/mips.h (cmp_operands): Delete.
18055
18056 * config/mmix/mmix.c (mmix_valid_comparison): Delete.
18057 (mmix_gen_compare_reg): Just return a register in the right CC mode.
18058 * config/mmix/mmix.h (mmix_compare_op0, mmix_compare_op1): New.
18059 * config/mmix/mmix.md (cmpdi, cmpdf): Remove.
18060 (*cmpcc_folded): Rename to...
18061 (*cmpdi_folded): this.
18062 (*cmpcc): Rename to...
18063 (*cmps): ... this.
18064 (movdfcc, movdicc): Adjust for new semantics of mmix_gen_compare_reg.
18065 (bCC): Remove.
18066 (cbranchdi4): New.
18067 (cbranchdf4): New. Handle invalid comparisons here.
18068 * config/mmix/predicates.md (float_comparison_operator): New.
18069
18070 * config/mn10300/mn10300.c (mn10300_rtx_costs): Consider 0 and
18071 zero_extract to be cheap in (compare (zero_extract) (const_int 0).
18072 * config/mn10300/mn10300.md (tst): Delete.
18073 (*tst_extqisi_am33, *tst_extqisi, *tst_exthisi_am33, *tst_exthisi):
18074 Name these patterns and wrap RHS in a compare.
18075 (*cmpsi): Make this pattern private. Include tst.
18076 (*cmpsf): Make this pattern private.
18077 (and and zero_extract cc0 set): Wrap RHS in a COMPARE.
18078 (compare with zero peepholes): Likewise.
18079 (bCC): Remove.
18080 (cbranchsi4, cbranchsf4): New.
18081 (casesi): Use cbranchsi4.
18082
18083 * config/pa/pa.c (hppa_compare_op0, hppa_compare_op1,
18084 hppa_branch_type): Delete.
18085 (return_addr_rtx): Use cbranchsi4.
18086 (emit_bcond_fp): Accept all operands. Replace CODE with NE.
18087 Emit CCFPmode comparison here.
18088 (gen_cmp_fp): Delete, now part of emit_bcond_fp.
18089 * config/pa/pa.h (enum cmp_type, hppa_compare_op0, hppa_compare_op1,
18090 hppa_branch_type): Delete.
18091 * config/pa/pa.md (cmpdi, cmpsi, cmpsf, cmpdf, sCC, bCC): Delete.
18092 (movsicc, movdicc): Remove references to hppa_compare_op0,
18093 hppa_compare_op1 and compare_from_rtx.
18094 (cbranchdi4, cbranchsi4, cbranchsf4, cbranchdf4, cstoresi4): New.
18095 (casesi): Use cbranchsi4.
18096
18097 * config/pdp11/pdp11-protos.h (output_jump): Change prototype.
18098 * config/pdp11/pdp11.c (output_jump): Embed opcodes here.
18099 * config/pdp11/pdp11.md (register_or_const0_operand): New.
18100 (cmpdf, cmphi, cmpqi): Make private. Add tst alternatives.
18101 (cmpsi, tstsi, tstdf, tsthi, tstqi): Delete.
18102 (bCC): Delete.
18103 (cbranchdf4, cbranchhi4, cbranchqi4): New.
18104 (*branch, *branch_inverted): New.
18105
18106 * config/picochip/picochip.md (cbranchhi4): Use
18107 ordered_comparison_operator.
18108 (cmphi, bCC): Remove.
18109
18110 * config/rs6000/predicates.md (rs6000_cbranch_operator): New.
18111 (trap_comparison_operator): Delete.
18112 * config/rs6000/rs6000-protos.h (rs6000_emit_sCOND,
18113 rs6000_emit_cbranch): Accept mode and operands.
18114 * config/rs6000/rs6000.c (rs6000_compare_op0, rs6000_compare_op1,
18115 rs6000_compare_fp_p): Delete.
18116 (rs6000_generate_compare): Accept mode and comparison. Extract code
18117 and op0/op1 from there. Replace references to rs6000_compare_op0
18118 and rs6000_compare_op1.
18119 (rs6000_emit_sCOND): Adjust call to rs6000_generate_compare and
18120 extract result from passed operands.
18121 (rs6000_emit_cbranch): Adjust call to rs6000_generate_compare and
18122 extract loc from passed operands.
18123 (rs6000_emit_cmove): Likewise.
18124 * config/rs6000/rs6000.h (rs6000_compare_op0, rs6000_compare_op1,
18125 rs6000_compare_fp_p): Delete.
18126 * config/rs6000/rs6000.md (cmp<GPR>, cmp<FP>, bCC, sCC): Delete.
18127 (cbranch<GPR>4, cbranch<FP>4): New.
18128 (cstore<mode>4): New. Consolidate here all choices about when to use
18129 portable or specialized sCC sequences.
18130 (stack_protect_test): Use cbranchsi4.
18131 (conditional_trap): Replace with ctrap<GPR>4.
18132 (conditional trap insn): Replace trap_comparison_operator with
18133 ordered_comparison_operator.
18134
18135 * config/s390/s390.c (s390_compare_op0, s390_compare_op1): Delete.
18136 (s390_emit_prologue): Use ctrap.
18137 * config/s390/s390.h (s390_compare_op0, s390_compare_op1): Delete.
18138 * config/s390/predicates.md (s390_eqne_operator, s390_scond_operator):
18139 New predicates replacing...
18140 * config/s390/s390.md (COMPARE, SCOND): ... these iterators.
18141 (cmp<GPR>, cmp<FP>, cmpcc): Delete.
18142 (trunc patterns): Use emit_cmp_and_jump_insns instead of cmp/branch.
18143 (add<mode>cc): Do not use s390_compare_op0/op1.
18144 (s<code>): Change to...
18145 (cstore<mode>4): ... this. Do not use s390_compare_op0/op1.
18146 (seq): Change to...
18147 (cstorecc4): ... this. Handle EQ or NE equally.
18148 (*sne): Un-privatize for use in cstorecc4.
18149 (b<code>): Change to...
18150 (cbranch<GPR>4, cbranch<FP>4, cbranchcc4): ... these.
18151 (conditional_trap): Replace with...
18152 (ctrap<GPR>4, ctrap<FP>4): ... these.
18153 (stack_protect): Use cbranchcc4.
18154
18155 * config/score/score-conv.h (cmp_op0, cmp_op1): Delete.
18156 * config/score/score-protos.h (score_gen_cmp): Delete.
18157 * config/score/score.c (cmp_op0, cmp_op1, score_gen_cmp): Delete.
18158 (score_block_move-loop): Use cbranchsi4.
18159 * config/score/score.md (cbranchsi4): New.
18160 (cmpsi, bCC): Delete.
18161 * config/score/score3.c (cmp_op0, cmp_op1, score3_gen_cmp): Delete.
18162 (score3_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
18163 * config/score/score7.c (cmp_op0, cmp_op1, score7_gen_cmp): Delete.
18164 (score7_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
18165 * config/score/score3.h (score3_gen_cmp): Delete.
18166 * config/score/score7.h (score7_gen_cmp): Delete.
18167
18168 * config/sh/sh-protos.h (prepare_scc_operands): Rename to...
18169 (sh_emit_scc_to_t): ... this. Return void.
18170 (from_compare): Rename to...
18171 (sh_emit_compare_and_branch): ... this.
18172 (sh_emit_compare_and_set): New.
18173 (sh_expand_t_scc): Accept operands.
18174 * config/sh/predicates.md (sh_float_comparison_operator): New.
18175 * config/sh/sh.c (sh_compare_op0, sh_compare_op1): Delete.
18176 (prepare_scc_operands): Rename to...
18177 (sh_emit_scc_to_t): ... this. Return void. Get op0/op1 from
18178 arguments.
18179 (sh_emit_cheap_store_flag): New.
18180 (sh_emit_set_t_insn): New.
18181 (from_compare): Rename to...
18182 (sh_emit_compare_and_branch): ... this. Accept mode. Rewrite
18183 handling of TARGET_SH2E floating point to avoid recursive call.
18184 Generate branch here.
18185 (sh_emit_compare_and_set): New.
18186 (sh_expand_t_scc): Get op0/op1 from arguments.
18187 (sh_emit_cheap_store_flag): New.
18188 * config/sh/sh.md (cbranchdi4, cbranchsi4): Include -mno-cbranchdi
18189 cases.
18190 (cbranchdi4_i): Use an "I08" constraint instead of an "i" constraint.
18191 (cmpsi, cmpdi, cmpsf, cmpdf): Delete.
18192 (movsicc, movdicc): Do nothing when it recreated operands from
18193 sh_compare_*. Use sh_emit_cheap_store_flag. Adjust call to
18194 prepare_scc_operands (now sh_emit_scc_to_t).
18195 (udivdi3): Use cstoresi4.
18196 (beq_media, bne_media, bge_media, bgtu_media, bgeu_media, beq,
18197 bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu, bunordered): Delete.
18198 (cbranchint4_media, cbranchfp4_media): New.
18199 (casesi): Use cbranchdi4.
18200 (seq, slt, sle, sgt, sge, sgtu, sltu, sgeu, sne, sleu, sunordered):
18201 Delete.
18202 (cstore4_media, cstoresi4, cstoredi4, cstoresf4, cstoredf4): New.
18203 (movnegt): Remove second operand.
18204 (cbranchsf4, cbranchdf4): New.
18205 (stack_protect): Use cbranchdi4/cbranchsi4.
18206
18207 * config/sparc/sparc.c (sparc_compare_op0, sparc_compare_op1): Delete.
18208 (gen_compare_reg): Accept comparison, extract part of it to...
18209 (gen_compare_reg_1): ... this.
18210 (gen_compare_operator): Delete.
18211 (gen_v9_scc): Accept separate destination, comparison code and arms.
18212 Do not use sparc_compare_op0/sparc_compare_op1.
18213 (emit_scc_insn, emit_conditional_branch_insn): New.
18214 (emit_v9_brxx): Make static. Remove useless assertion.
18215 (sparc_emit_float_lib_cmp): Return RTL instead of calling
18216 emit_cmp_insn.
18217 (sparc_expand_compare_and_swap_12): Use gen_compare_reg_1+cbranchcc4.
18218 * config/sparc/sparc-protos.h (gen_compare_reg,
18219 sparc_emit_float_lib_cmp): Adjust prototype.
18220 (emit_scc_insn, emit_conditional_branch_insn): New.
18221 (gen_v9_scc, emit_v9_brxx_insn, gen_compare_operator): Delete.
18222 * config/sparc/sparc.h (sparc_compare_op0, sparc_compare_op1): Delete.
18223 * config/sparc/sparc.md (P, I, F, V32, V32I, V64, V64I): Move all
18224 iterators to the top.
18225 (cmpsi, cmpdi, cmpsf, cmpdf, cmptf, seqsi_special_extend,
18226 snesi_special_extend, sCC, bCC, seqdi_special_trunc,
18227 snedi_special_trunc): Delete.
18228 (seqdi_special, snedi_special): Use expansion of seqdi_special_trunc
18229 and snedi_special_trunc.
18230 (cstoresi4, cstoredi4, cstore<F:mode>4, cbranchcc4, cbranchsi4,
18231 cbranchdi4, cbranch<F:mode>4): New.
18232 (mov<I:mode>cc, mov<F:mode>cc): Handle sparc_emit_float_lib_cmp
18233 here. Use gen_compare_reg instead of gen_compare_operator.
18234 (conditional_trap): Replace with...
18235 (ctrapsi4, ctrapdi4): ... this.
18236 (stack_protect_test): Use cbranchcc4.
18237
18238 * config/spu/spu-protos.h (spu_emit_branch_or_set): Change second
18239 argument to rtx.
18240 * config/spu/spu.c (spu_compare_op0, spu_compare_op1): Remove.
18241 (spu_emit_branch_or_set): Get code/op0/op1 from second argument.
18242 Change spu_compare_op0/op1 to op0/op1 throughout. Get target
18243 from operands[0] or operands[3] depending on is_set.
18244 * config/spu/spu.h (spu_compare_op0, spu_compare_op1): Remove.
18245 * config/spu/spu.md (cmp<mode:VQHSI>, cmp<mode:DTI>, cmp<mode:VSF>,
18246 cmpdf, bCC), sCC: Remove.
18247 (cbranch<mode:VQHSI>4, cbranch<mode:DTI>, cbranch<mode:VSF>4,
18248 cbranchdf4, cstore<mode:VQHSI>4, cstore<mode:DTI>, cstore<mode:VSF>4,
18249 cstoredf4): New.
18250 (mov<mode>cc): Accept ordered_comparison_operator, adjust call to
18251 spu_emit_branch_or_set.
18252
18253 * config/stormy16/stormy16-protos.h (xstormy16_emit_cbranch):
18254 Add two arguments.
18255 * config/stormy16/stormy16.h (xstormy16_compare_op0,
18256 xstormy16_compare_op1): Delete.
18257 * config/stormy16/stormy16.c (xstormy16_compare_op0,
18258 xstormy16_compare_op1): Delete.
18259 (xstormy16_emit_cbranch): Get op0/op1 from the new arguments.
18260 Adjust calls.
18261 * config/stormy16/stormy16.md (cbranchsi4, cbranchhi4): New.
18262 (cmphi, cmpsi, bCC): Remove.
18263
18264 * config/v850/v850.md (tstsi, cmpsi): Fold into...
18265 (*cmpsi): ... this one.
18266 (cbranchsi4, cstoresi4): New.
18267 (bCC expanders): Delete.
18268 (sCC insns): Fold into...
18269 (*setcc): ... this one.
18270 (casesi): Do not use gen_cmpsi and gen_bgtu.
18271 (various splits): Wrap "naked" RHS of a cc0 set with COMPARE.
18272 (movsicc): Simplify.
18273 * config/v850/v850.c (v850_rtx_costs): Handle ZERO_EXTRACT in COMPARE.
18274
18275 * config/vax/vax-protos.h (cond_name): New.
18276 (vax_output_conditional_branch): Remove.
18277 * config/vax/vax.c (cond_name): New.
18278 (vax_output_conditional_branch): Remove.
18279 * config/vax/vax.h (PRINT_OPERAND): Dispatch %c to cond_name.
18280 * config/vax/vax.md (tst<VAXint>, tst<VAXfp>): Remove.
18281 (cmp<VAXint>, cmp<VAXfp>): Privatize. Add constraints for tst.
18282 (bit<VAXint>): Wrap source with (compare).
18283 (b<code> and following unnamed pattern): Rename to *branch and
18284 *branch_reversed. Change macroization to match_operator.
18285 (cbranch<VAXint>4, cbranch<VAXfp>4): New.
18286
18287 * config/xtensa/predicates.md (xtensa_cstoresi_operator): New.
18288 * config/xtensa/xtensa-protos.h (xtensa_expand_conditional_branch):
18289 Change last argument to machine_mode.
18290 (xtensa_expand_scc): Add machine_mode argument.
18291 * config/xtensa/xtensa.c (branch_cmp, branch_type): Remove.
18292 (gen_conditional_move, xtensa_expand_conditional_branch,
18293 xtensa_expand_scc, xtensa_expand_conditional_move): Use mode
18294 instead of branch_type, fetch cmp0/cmp1/test_code from operands[].
18295 Adjust operand numbers.
18296 * config/xtensa/xtensa.h (enum cmp_type, branch_cmp, branch_type):
18297 Delete.
18298 * config/xtensa/xtensa.md (any_cond, any_scc): Delete.
18299 (cmpsi, cmpsf, b<code>, s<code>): Delete.
18300 (cbranchsi4, cbranchsf4, cstoresi4, cstoresf4): New.
18301
18302 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
18303
18304 * optabs.c (prepare_cmp_insn): Temporarily disable test that
18305 causes spurious differences between trunk and cond-optab branch.
18306
18307 2009-05-12 Alexandre Oliva <aoliva@redhat.com>
18308
18309 PR target/37137
18310 * doc/install.texi (STAGE1_TFLAGS, BUILD_CONFIG): Document.
18311
18312 2009-05-12 Alexandre Oliva <aoliva@redhat.com>
18313
18314 * tree.c (iterative_hash_pointer): Delete.
18315 (iterative_hash_expr): Short-circuit handling of NULL pointer.
18316 Hash UIDs and versions of SSA names. Don't special-case built-in
18317 function declarations.
18318
18319 2009-05-11 Ian Lance Taylor <iant@google.com>
18320
18321 PR bootstrap/40103
18322 * graphite.c: Force -Wc++-compat to only be a warning before
18323 #including "cloog/cloog.h".
18324
18325 2009-05-11 Martin Jambor <mjambor@suse.cz>
18326
18327 * ipa-cp.c (ipcp_cloning_candidate_p): Add missing return false.
18328
18329 2009-05-11 Jan Hubicka <jh@suse.cz>
18330
18331 * tree-ssa-loop-ivcanon.c: Include target.h
18332 (struct loop_size): new structure.
18333 (constant_after_peeling): New predicate.
18334 (tree_estimate_loop_size): New function.
18335 (estimated_unrolled_size): Rewrite for new estimates.
18336 (try_unroll_loop_completely): Use new estimates.
18337 * Makefile.in (tree-ssa-loop-ivcanon.o): Add dependenc on target.h
18338
18339 2009-05-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
18340
18341 * config/spu/spu-c.c (spu_categorize_keyword): Update for recent
18342 libcpp interface change.
18343 (spu_macro_to_expand): Likewise.
18344
18345 2009-05-11 Paolo Bonzini <bonzini@gnu.org>
18346
18347 PR tree-optimization/40026
18348 * gimplify.c (gimplify_init_constructor): Change initial conditional
18349 to assertion. Rewrite TREE_OPERAND (*expr_p, 1) after
18350 optimize_compound_literals_in_ctor.
18351
18352 2009-05-11 Nathan Sidwell <nathan@codesourcery.com>
18353
18354 * config/m68k/m68k-devices.def (52274, 52277, 5301x, 5225x, 51xx):
18355 New devices.
18356 * doc/invoke.texi (M680x0 Options): Document new coldfire cpus.
18357
18358 2009-05-11 H.J. Lu <hongjiu.lu@intel.com>
18359
18360 * tree-vect-data-refs.c (vect_analyze_group_access): Use
18361 HOST_WIDE_INT for gap.
18362
18363 2009-05-11 Ira Rosen <irar@il.ibm.com>
18364
18365 PR tree-optimization/40074
18366 * tree-vect-data-refs.c (vect_analyze_group_access): Take gaps into
18367 account in group size and step comparison.
18368
18369 2009-05-11 Richard Guenther <rguenther@suse.de>
18370
18371 * passes.c (init_optimization_passes): Strip now incorrect comment.
18372 (execute_function_todo): Do not set PROP_alias.
18373 * tree-pass.h (PROP_alias): Remove.
18374 * tree-ssa-structalias.c (pass_build_alias): Do not provide PROP_alias.
18375 * tree-if-conv.c (pass_if_conversion): Do not require PROP_alias.
18376 * tree-nrv.c (pass_return_slot): Likewise.
18377 * tree-object-size.c (pass_object_sizes): Likewise.
18378 * tree-ssa-dom.c (pass_dominator): Likewise.
18379 (pass_phi_only_cprop): Likewise.
18380 * tree-ssa-dse.c (pass_dse): Likewise.
18381 * tree-ssa-phiopt.c (pass_phiopt): Likewise.
18382 (pass_cselim): Likewise.
18383 * tree-ssa-pre.c (pass_pre): Likewise.
18384 (pass_fre): Likewise.
18385 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
18386 * tree-ssa-sink.c (pass_sink_code): Likewise.
18387 * tree-stdarg.c (pass_stdarg): Likewise.
18388 * tree-tailcall.c (pass_tail_calls): Likewise.
18389 * tree-vrp.c (pass_vrp): Likewise.
18390
18391 2009-05-10 Ian Lance Taylor <iant@google.com>
18392
18393 * basic-block.h (enum profile_status): Break out of struct
18394 control_flow_graph.
18395 * cgraph.h (struct inline_summary): Break out of struct
18396 cgraph_local_info.
18397 * cgraphunit.c (enum cgraph_order_sort_kind): New enum, broken out
18398 of struct cgraph_order_sort.
18399 * combine.c (enum undo_kind): New enum, broken out of struct undo.
18400 * cse.c (struct branch_path): Break out of struct
18401 cse_basic_block_data.
18402 * except.h (enum eh_region_type): Break out of struct eh_region.
18403 * gcc.c (enum add_del): Break out of struct modify_target.
18404 * genrecog.c (enum decision_type): Break out of struct decision_test.
18405 * ggc-page.c (struct ggc_pch_ondisk): Break out of struct
18406 ggc_pch_data.
18407 * matrix-reorg.c (struct free_info): Break out of struct matrix_info.
18408 * regmove.c (enum match_use): New enum, broken out of struct match.
18409 * sched-int.h (enum post_call_group): New enum, broken out of
18410 struct deps.
18411 (struct deps_reg): Break out of struct deps.
18412 * target.h (struct asm_int_op): Break out of struct gcc_target.
18413 * tree-eh.c (struct goto_queue_node): Break out of struct
18414 leh_tf_state.
18415 * tree-inline.h (enum copy_body_cge_which): Break out of
18416 copy_body_data.
18417 * tree-pass.h (enum opt_pass_type): Break out of struct opt_pass.
18418
18419 * c-decl.c (in_struct, struct_types): New static variables.
18420 (pushtag): Add loc parameter. Change all callers.
18421 (lookup_tag): Add ploc parameter. Change all callers.
18422 (check_compound_literal_type): New function.
18423 (parser_xref_tag): Add loc parameter. Change all callers. If
18424 -Wc++-compat, warn about struct/union/enum types defined within a
18425 struct or union.
18426 (start_struct): Add enclosing_in_struct, enclosing_struct_types,
18427 and loc parameters. Change all callers. Change error calls to
18428 error_at, using loc. For a redefinition, if the location of the
18429 original definition is known, report it. Set in_struct and
18430 struct_types. If -Wc++-compat warn if in sizeof, typeof, or alignof.
18431 (finish_struct): Add new parameters enclosing_in_struct and
18432 enclosing_struct_types. Change all callers. Set
18433 C_TYPE_DEFINED_IN_STRUCT for all struct/union/enum types defined
18434 in the struct. If in a struct, add this struct to struct_types.
18435 (start_enum): Add loc parameter. Change all callers. Use
18436 error_at for errors, using loc. For a redefinition, if the
18437 location of the original definition is known, report it. If in a
18438 struct, add this enum type to struct_types. If -Wc++-compat warn
18439 if in sizeof, typeof, or alignof.
18440 * c-parser.c (disable_extension_diagnostics): Disable -Wc++-compat.
18441 (enable_extension_diagnostics): Reenable -Wc++-compat if appropriate.
18442 (c_parser_enum_specifier): Get enum location for start_enum.
18443 (c_parser_struct_or_union_specifier): Get struct location for
18444 start_struct. Save in_struct and struct_types status between
18445 start_struct and finish_struct.
18446 (c_parser_cast_expression): Get location of cast.
18447 (c_parser_alignof_expression): Get location of type.
18448 (c_parser_postfix_expression): Likewise.
18449 (c_parser_postfix_expression_after_paren_type): Add type_loc
18450 parameter. Change all callers. Call check_compound_literal_type.
18451 Use type_loc for error about variable size type.
18452 * c-typeck.c (build_external_ref): If -Wc++-compat, warn about a use
18453 of an enum constant from an enum type defined in a struct or union.
18454 (c_cast_expr): Add loc parameter. Change all callers. If
18455 -Wc++-compat, warn about defining a type in a cast.
18456 * c-tree.h (C_TYPE_DEFINED_IN_STRUCT): Define.
18457 (start_enum, start_struct, finish_struct): Update declarations.
18458 (parser_xref_tag, c_cast_expr): Update declarations.
18459 (check_compound_literal_type): Declare.
18460
18461 2009-05-11 Ben Elliston <bje@au.ibm.com>
18462
18463 * config/rs6000/rs6000-c.c (altivec_categorize_keyword): Update
18464 for recent libcpp interface change.
18465 (rs6000_macro_to_expand): Likewise.
18466
18467 2009-05-10 Michael Matz <matz@suse.de>
18468
18469 PR target/40031
18470 * config/arm/arm.c (require_pic_register): Emit on entry edge,
18471 not at entry of function.
18472
18473 2009-05-10 Richard Guenther <rguenther@suse.de>
18474
18475 PR tree-optimization/40081
18476 Revert
18477 * tree-sra.c (instantiate_element): Instantiate scalar replacements
18478 using the main variant of the element type. Do not fiddle with
18479 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
18480
18481 * tree-sra.c (sra_type_can_be_decomposed_p): Do not decompose
18482 structs with volatile fields.
18483
18484 2009-05-10 Jan Hubicka <jh@suse.cz>
18485
18486 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Declare.
18487 (estimate_move_cost): Assert that it does not get called for
18488 VOID_TYPE_P.
18489 (estimate_num_insns): Skip VOID types in argument handling.
18490 (optimize_inline_calls): Delete unreachable blocks and verify that
18491 callgraph is valid.
18492
18493 2009-05-10 Jan Hubicka <jh@suse.cz>
18494
18495 * cgraphbuild.c (record_reference): Use cgraph_mark_address_taken_node.
18496 * cgraph.c (cgraph_mark_address_taken_node): New function.
18497 (dump_cgraph_node): Dump new flag.
18498 * cgraph.h (struct cgraph_node): Add address_taken.
18499 (cgraph_mark_address_taken_node): New function.
18500 * ipa.c (cgraph_postorder): Prioritize functions with address taken
18501 since new direct calls can be born.
18502
18503 2009-05-10 Joseph Myers <joseph@codesourcery.com>
18504
18505 * c-lex.c (c_lex_with_flags): Expect cpp_hashnode in
18506 tok->val.node.node.
18507
18508 2009-05-10 Jan Hubicka <jh@suse.cz>
18509
18510 PR middle-end/40084
18511 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Take old_call
18512 argument; rewrite.
18513 (cgraph_update_edges_for_call_stmt): Take old_decl argument.
18514 * cgraph.h (cgraph_update_edges_for_call_stmt): Update prototype.
18515 * tree-inline.c (copy_bb): Set frequency correctly.
18516 (fold_marked_statements): Update call to
18517 cgraph_update_edges_for_call_stmt.
18518
18519 2009-05-10 Joseph Myers <joseph@codesourcery.com>
18520
18521 * config/arc/arc.c (arc_handle_interrupt_attribute): Use %qE for
18522 identifiers in diagnostics.
18523 * config/arm/arm.c (arm_handle_fndecl_attribute,
18524 arm_handle_isr_attribute): Likewise.
18525 * config/avr/avr.c (avr_handle_progmem_attribute,
18526 avr_handle_fndecl_attribute, avr_handle_fntype_attribute): Likewise.
18527 * config/bfin/bfin.c (handle_int_attribute,
18528 bfin_handle_longcall_attribute, bfin_handle_l1_text_attribute,
18529 bfin_handle_l1_data_attribute, bfin_handle_longcall_attribute,
18530 bfin_handle_l1_text_attribute, bfin_handle_l1_data_attribute):
18531 Likewise.
18532 * config/darwin.c (darwin_handle_kext_attribute,
18533 darwin_handle_weak_import_attribute): Likewise.
18534 * config/h8300/h8300.c (h8300_handle_fndecl_attribute,
18535 h8300_handle_eightbit_data_attribute,
18536 h8300_handle_tiny_data_attribute): Likewise.
18537 * config/i386/i386.c (ix86_handle_cconv_attribute,
18538 ix86_handle_abi_attribute, ix86_handle_struct_attribute): Likewise.
18539 * config/i386/winnt.c (ix86_handle_shared_attribute,
18540 ix86_handle_selectany_attribute): Likewise.
18541 * config/ia64/ia64.c (ia64_handle_model_attribute): Likewise.
18542 * config/m32c/m32c.c (function_vector_handler): Likewise.
18543 * config/m68hc11/m68hc11.c (m68hc11_handle_page0_attribute,
18544 m68hc11_handle_fntype_attribute): Likewise.
18545 * config/m68k/m68k.c (m68k_handle_fndecl_attribute): Likewise.
18546 * config/mcore/mcore.c (mcore_handle_naked_attribute): Likewise.
18547 * config/mips/mips.c (mips_insert_attributes,
18548 mips_merge_decl_attributes, mips_expand_builtin): Likewise.
18549 * config/rs6000/rs6000.c (rs6000_handle_longcall_attribute,
18550 rs6000_handle_struct_attribute): Likewise.
18551 * config/sh/sh.c (sh_insert_attributes,
18552 sh_handle_resbank_handler_attribute,
18553 sh_handle_interrupt_handler_attribute,
18554 sh2a_handle_function_vector_handler_attribute,
18555 sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
18556 Likewise.
18557 * config/sh/symbian.c (sh_symbian_mark_dllimport): Likewise.
18558 * config/spu/spu.c (spu_handle_fndecl_attribute,
18559 spu_handle_vector_attribute): Likewise.
18560 * config/stormy16/stormy16.c
18561 (xstormy16_handle_interrupt_attribute): Likewise.
18562 * config/v850/v850-c.c (ghs_pragma_section): Likewise.
18563 * config/v850/v850.c (v850_handle_interrupt_attribute): Likewise.
18564
18565 2009-05-10 Joseph Myers <joseph@codesourcery.com>
18566
18567 * pretty-print.h (struct pretty_print_info): Add translate_identifiers.
18568 (pp_translate_identifiers): New.
18569 (pp_identifier): Only conditionally translate identifier to locale
18570 character set.
18571 * pretty-print.c (pp_construct): Set pp_translate_identifiers.
18572 (pp_base_tree_identifier): Only conditionally translate identifier
18573 to locale character set.
18574 * c-pretty-print.c (M_): Define.
18575 (pp_c_type_specifier, pp_c_primary_expression): Mark English
18576 fragments for conditional translation with M_.
18577 * tree-pretty-print.c (maybe_init_pretty_print): Disable
18578 identifier translation.
18579
18580 2009-05-10 Richard Guenther <rguenther@suse.de>
18581
18582 PR tree-optimization/40081
18583 * tree-sra.c (instantiate_element): Instantiate scalar replacements
18584 using the main variant of the element type. Do not fiddle with
18585 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
18586
18587 2009-05-09 Jan Hubicka <jh@suse.cz>
18588
18589 PR middle-end/40080
18590 * cgraphunit.c (cgraph_materialize_all_clones): Do not redirect
18591 indirect calls; verify cgraph afterwards.
18592
18593 2009-05-09 Jan Hubicka <jh@suse.cz>
18594
18595 PR bootstrap/40082
18596 * ipa.c (update_inlined_to_pointer): New function.
18597 (cgraph_remove_unreachable_nodes): Use it.
18598
18599 2009-05-09 Jan Hubicka <jh@suse.cz>
18600
18601 * tree-eh.c (struct leh_state): Remove prev_try.
18602 (lower_try_finally, lower_catch, lower_eh_filter, lower_cleanup): Do
18603 not track prev_try.
18604 * except.c (gen_eh_region_cleanup, duplicate_eh_regions,
18605 copy_eh_region_1, copy_eh_region, redirect_eh_edge_to_label,
18606 remove_eh_handler_and_replace, foreach_reachable_handler,
18607 verify_eh_region, verify_eh_tree): Remove tracking of prev_try pointer.
18608 * except.h (struct eh_region): Remove eh_region_u_cleanup.
18609 (gen_eh_region_cleanup): Update prototype.
18610
18611 2009-05-09 Jan Hubicka <jh@suse.cz>
18612
18613 PR middle-end/40043
18614 * except.c (copy_eh_region): Always set prev_try.
18615 (redirect_eh_edge_to_label): Find outer try.
18616 (foreach_reachable_handler): When looking for prev try
18617 handle case where previous try is not going to be taken.
18618
18619 2009-05-07 Michael Meissner <meissner@linux.vnet.ibm.com>
18620
18621 PR tree-optimization/40049
18622 * tree-vect-stmts.c (vectorizable_operation): If the machine has
18623 only vector/vector shifts, convert the type of the constant to the
18624 appropriate type to avoid building incorrect trees, which
18625 eventually have problems with garbage collection.
18626
18627 2009-05-08 Joseph Myers <joseph@codesourcery.com>
18628
18629 * fold-const.c (fold_binary): Do not fold multiplication by 1 or
18630 -1 for complex floating-point types if honoring signed zeros.
18631
18632 2009-05-08 Jan Hubicka <jh@suse.cz>
18633
18634 * cgraphbuild.c (compute_call_stmt_bb_frequency): Accept function
18635 argument; handle correctly when profile is absent.
18636 (build_cgraph_edges): Update.
18637 (rebuild_cgraph_edges): Update.
18638 * cgraph.c: Do not include varray.h.
18639 (cgraph_set_call_stmt_including_clones): New function.
18640 (cgraph_create_edge_including_clones): Likewise
18641 (cgraph_update_edges_for_call_stmt_node): New static cfunction.
18642 (cgraph_update_edges_for_call_stmt): Handle clones.
18643 (cgraph_remove_node): Handle clone tree.
18644 (cgraph_remove_node_and_inline_clones): New function.
18645 (dump_cgraph_node): Dump clone tree.
18646 (cgraph_clone_node): Handle clone tree.
18647 (clone_function_name): Bring here from tree-inline.c.
18648 (cgraph_create_virtual_clone): New function.
18649 * cgraph.h (ipa_replace_map): Move here from ipa.h.
18650 (cgraph_clone_info): New function.
18651 (strut cgraph_node): Add clone_info and new clone tree pointers.
18652 (cgraph_remove_node_and_inline_clones,
18653 cgraph_set_call_stmt_including_clones,
18654 cgraph_create_edge_including_clones,
18655 cgraph_create_virtual_clone): Declare.
18656 (cgraph_function_versioning): Use VEC argument.
18657 (compute_call_stmt_bb_frequency): Update prototype.
18658 (cgraph_materialize_all_clones): New function.
18659 * ipa-cp.c (ipcp_update_cloned_node): Remove.
18660 (ipcp_create_replace_map): Update to VECtors.
18661 (ipcp_update_callgraph): Use virtual clones.
18662 (ipcp_update_bb_counts, ipcp_update_edges_counts): Remove.
18663 (ipcp_update_profiling): Do not update local profiling.
18664 (ipcp_insert_stage): Use VECtors and virtual clones.
18665 * cgraphunit.c (verify_cgraph_node): Verify clone tree.
18666 (clone_of_p): New function.
18667 (cgraph_preserve_function_body_p): Use clone tree.
18668 (cgraph_optimize): Materialize clones.
18669 (cgraph_function_versioning): Update for VECtors.
18670 (save_inline_function_body): Use clone tree.
18671 (cgraph_materialize_clone): New function.
18672 (cgraph_materialize_all_clones): Likewise.
18673 * ipa-inline.c (cgraph_default_inline_p): Use analyzed flags.
18674 * ipa.c: Include gimple.h.
18675 (cgraph_remove_unreachable_nodes): Use clone tree.
18676 * ipa-prop.c (ipa_note_param_call): Update call to
18677 compute_call_stmt_bb_frequencycall.
18678 * ipa-prop.h (ipa_replace_map): Move to cgraph.h.
18679 * tree-inline.c: Do not include varray.h or gt-tree-inline.h.
18680 (copy_bb): Handle updating of clone tree; add new edge when new call
18681 appears.
18682 (expand_call_inline): Be strict about every call having edge.
18683 (clone_fn_id_num, clone_function_name): Move to cgraph.c.
18684 (delete_unreachable_blocks_update_callgraph): New function.
18685 (tree_function_versioning): Use VECtors; always remove unreachable
18686 blocks and fold conditionals.
18687 * tree-inline.h: Do not include varray.h.
18688 (tree_function_versioning): Remove.
18689 * Makefile.in (GTFILES): Remove tree-inline.c
18690 * passes.c (do_per_function): Do only functions having body.
18691 * ipa-struct-reorg.c (do_reorg_1, collect_data_accesses): Handle clone
18692 tree.
18693
18694 2009-05-08 H.J. Lu <hongjiu.lu@intel.com>
18695 Andrew Morrow <acm@google.com>
18696
18697 PR c/36892
18698 * c-common.c (c_common_attribute_table): Permit deprecated
18699 attribute to take an optional argument.
18700 (handle_deprecated_attribute): If the optional argument to
18701 __attribute__((deprecated)) is not a string ignore the attribute
18702 and emit a warning.
18703
18704 * c-decl.c (grokdeclarator): Updated warn_deprecated_use call.
18705 * c-typeck.c (build_component_ref): Likewise.
18706 (build_external_ref): Likewise.
18707
18708 * toplev.c (warn_deprecated_use): Add an attribute argument.
18709 Emit the message associated with __attribute__((deprecated)).
18710
18711 * toplev.h (warn_deprecated_use): Updated.
18712
18713 * doc/extend.texi: Document new optional parameter to
18714 __attribute__((deprecated))
18715
18716 2009-05-08 Michael Eager <eager@eagercon.com>
18717
18718 * config/rs6000/rs6000.md (*movdf_softfloat32): replace
18719 !TARGET_DOUBLE_FLOAT with TARGET_SINGLE_FLOAT.
18720
18721 2009-05-08 Richard Guenther <rguenther@suse.de>
18722
18723 PR tree-optimization/40062
18724 * tree-scalar-evolution.c (follow_ssa_edge_in_condition_phi):
18725 Avoid exponential behavior.
18726
18727 2009-05-08 Paolo Bonzini <bonzini@gnu.org>
18728
18729 PR rtl-optimization/33928
18730 PR 26854
18731 * fwprop.c (use_def_ref, get_def_for_use, bitmap_only_bit_bitween,
18732 process_uses, build_single_def_use_links): New.
18733 (update_df): Update use_def_ref.
18734 (forward_propagate_into): Use get_def_for_use instead of use-def
18735 chains.
18736 (fwprop_init): Call build_single_def_use_links and let it initialize
18737 dataflow.
18738 (fwprop_done): Free use_def_ref.
18739 (fwprop_addr): Eliminate duplicate call to df_set_flags.
18740 * df-problems.c (df_rd_simulate_artificial_defs_at_top,
18741 df_rd_simulate_one_insn): New.
18742 (df_rd_bb_local_compute_process_def): Update head comment.
18743 (df_chain_create_bb): Use the new RD simulation functions.
18744 * df.h (df_rd_simulate_artificial_defs_at_top,
18745 df_rd_simulate_one_insn): New.
18746 * opts.c (decode_options): Enable fwprop at -O1.
18747 * doc/invoke.texi (-fforward-propagate): Document this.
18748
18749 2009-05-08 Joseph Myers <joseph@codesourcery.com>
18750
18751 PR c/24581
18752 * c-typeck.c (build_binary_op): Handle arithmetic between one real
18753 and one complex operand specially.
18754 * tree-complex.c (some_nonzerop): Do not identify a real value as
18755 zero if flag_signed_zeros.
18756
18757 2009-05-08 Paolo Bonzini <bonzini@gnu.org>
18758
18759 PR rtl-optimization/33928
18760 * loop-invariant.c (record_use): Fix && vs. || mishap.
18761
18762 2009-05-08 Paolo Bonzini <bonzini@gnu.org>
18763
18764 PR rtl-optimization/33928
18765 * loop-invariant.c (struct use): Add addr_use_p.
18766 (struct def): Add n_addr_uses.
18767 (struct invariant): Add cheap_address.
18768 (create_new_invariant): Set cheap_address.
18769 (record_use): Accept df_ref. Set addr_use_p and update n_addr_uses.
18770 (record_uses): Pass df_ref to record_use.
18771 (get_inv_cost): Do not add inv->cost to comp_cost for cheap addresses
18772 used only as such.
18773
18774 2009-05-08 Kaz Kojima <kkojima@gcc.gnu.org>
18775
18776 * config/sh/sh.c: Do not include c-pragma.h.
18777
18778 2009-05-07 Andrew Pinski <andrew_pinski@playstation.sony.com>
18779
18780 * config/spu/spu.c: Remove include of c-common.h.
18781
18782 2009-05-07 Janis Johnson <janis187@us.ibm.com>
18783
18784 PR c/39037
18785 * c-common.h (mark_valid_location_for_stdc_pragma,
18786 valid_location_for_stdc_pragma_p, set_float_const_decimal64,
18787 clear_float_const_decimal64, float_const_decimal64_p): New.
18788 * c.opt (Wunsuffixed-float-constants): New.
18789 * c-lex.c (interpret_float): Use pragma FLOAT_CONST_DECIMAL64 for
18790 unsuffixed float constant, handle new warning.
18791 * c-cppbuiltin.c (c_cpp_builtins): Use cast for double constants.
18792 * c-decl.c (c_scope): New flag float_const_decimal64.
18793 (set_float_const_decimal64, clear_float_const_decimal64,
18794 float_const_decimal64_p): New.
18795 (push_scope): Set new flag.
18796 * c-parser.c (c_parser_translation_unit): Mark when it's valid
18797 to use STDC pragmas.
18798 (c_parser_external_declaration): Ditto.
18799 (c_parser_compound_statement_nostart): Ditto.
18800 * c-pragma.c (valid_location_for_stdc_pragma,
18801 mark_valid_location_for_stdc_pragma,
18802 valid_location_for_stdc_pragma_p, handle_stdc_pragma,
18803 handle_pragma_float_const_decimal64): New.
18804 (init_pragma): Register new pragma FLOAT_CONST_DECIMAL64.
18805 * cp/semantics.c (valid_location_for_stdc_pragma_p,
18806 set_float_const_decimal64, clear_float_const_decimal64,
18807 float_const_decimal64_p): New dummy functions.
18808 * doc/extend.texi (Decimal Float): Remove statement that the
18809 pragma, and suffix for double constants, are not supported.
18810 * doc/invoke.texi (Warning Options): List new option.
18811 (-Wunsuffixed-float-constants): New.
18812
18813 2009-05-08 Steven Bosscher <steven@gcc.gnu.org>
18814
18815 * config/i386/i386.c: Do not include c-common.h.
18816
18817 2009-05-07 Mark Heffernan <meheff@google.com>
18818
18819 * doc/invoke.texi (Debugging Options): Document change of debugging
18820 dump location.
18821 * opts.c (decode_options): Make dump_base_name relative to
18822 aux_base_name directory.
18823
18824 2009-05-07 Hariharan Sandanagobalane <hariharan@picochip.com>
18825
18826 * config/picochip/picochip.h (NO_DOLLAR_IN_LABEL): Added.
18827 * config/picochip/libgccExtras/divmod15.asm : Removed redefiniton.
18828
18829 2009-05-07 Rafael Avila de Espindola <espindola@google.com>
18830
18831 * Makefile.in (install-plugin): Simplify a bit.
18832
18833 2009-05-07 Paolo Bonzini <bonzini@gnu.org>
18834
18835 * Makefile.in (OBJS-common): Add regcprop.o.
18836 (regcprop.o): New.
18837 * timevar.def (TV_CPROP_REGISTERS): New.
18838 * regrename.c (regrename_optimize): Return 0.
18839 (rest_of_handle_regrename): Delete.
18840 (pass_rename_registers): Point to regrename_optimize.
18841 (struct value_data_entry, struct value_data,
18842 kill_value_one_regno, kill_value_regno, kill_value,
18843 set_value_regno, init_value_data, kill_clobbered_value,
18844 kill_set_value, kill_autoinc_value, copy_value,
18845 mode_change_ok, maybe_mode_change, find_oldest_value_reg,
18846 replace_oldest_value_reg, replace_oldest_value_addr,
18847 replace_oldest_value_mem, copyprop_hardreg_forward_1,
18848 debug_value_data, validate_value_data): Move...
18849 * regcprop.c: ... here.
18850 (rest_of_handle_cprop): Delete.
18851 (pass_cprop_hardreg): Point to copyprop_hardreg_forward.
18852
18853 2009-05-07 Jakub Jelinek <jakub@redhat.com>
18854
18855 PR middle-end/40057
18856 * dojump.c (prefer_and_bit_test): Use immed_double_const instead of
18857 GEN_INT for 1 << bitnum.
18858 (do_jump) <case BIT_AND_EXPR>: Use build_int_cst_wide_type instead of
18859 build_int_cst_type.
18860
18861 2009-05-07 Uros Bizjak <ubizjak@gmail.com>
18862
18863 * doc/md.texi (Standard Pattern Names For Generation) [sync_nand]:
18864 Remove wrong description of "nand" operation.
18865
18866 2009-05-06 Richard Guenther <rguenther@suse.de>
18867 Adam Nemet <anemet@caviumnetworks.com>
18868
18869 * gimple.def (GIMPLE_ASSIGN): Fix incorrect information in the
18870 comment. Add that if LHS is not a gimple register, then RHS1 has
18871 to be a single object (GIMPLE_SINGLE_RHS).
18872
18873 2009-05-06 Adam Nemet <anemet@caviumnetworks.com>
18874
18875 * expr.c (get_def_for_expr): Move it up in the file.
18876 (store_field): When expanding a bit-field store, look at the
18877 defining gimple stmt for the masking conversion.
18878
18879 2009-05-06 Janis Johnson <janis187@us.ibm.com>
18880
18881 PR middle-end/39986
18882 * dfp.c (encode_decimal32, decode_decimal32, encode_decimal64,
18883 decode_decimal64, encode_decimal128, decode_decimal128): Avoid
18884 32-bit memcpy into long.
18885
18886 2009-05-06 Jakub Jelinek <jakub@redhat.com>
18887
18888 * dwarf2out.c (new_reg_loc_descr): Don't ever create DW_OP_regX.
18889 (one_reg_loc_descriptor): Create DW_OP_regX here instead of calling
18890 new_reg_loc_descr.
18891 (loc_by_reference): If loc is DW_OP_regX, change it into DW_OP_bregX 0
18892 instead of appending DW_OP_deref*.
18893
18894 2009-05-06 Michael Matz <matz@suse.de>
18895
18896 PR middle-end/40021
18897 * cfgexpand.c (maybe_cleanup_end_of_block): New static function.
18898 (expand_gimple_cond): Use it to cleanup CFG and superfluous jumps.
18899
18900 2009-05-06 Rafael Avila de Espindola <espindola@google.com>
18901
18902 * Makefile.in (install-plugin): Fix srcdir handling.
18903
18904 2009-05-06 Andrey Belevantsev <abel@ispras.ru>
18905
18906 * tree-ssa.c (execute_update_address_taken): Handle TARGET_MEM_REF
18907 when processing for not_regs_needed bitmap.
18908 * gimple.c (walk_stmt_load_store_addr_ops): When visiting address,
18909 handle TARGET_MEM_REF in lhs. Check TMR_BASE for NULL while
18910 handling it for rhs.
18911
18912 2009-05-06 H.J. Lu <hongjiu.lu@intel.com>
18913
18914 * config/i386/i386.md (unnamed inc/dec peephole): Use
18915 optimize_insn_for_size_p instead of optimize_size.
18916 * config/i386/predicates.md (incdec_operand): Likewise.
18917 (aligned_operand): Likewise.
18918 * config/i386/sse.md (divv8sf3): Likewise.
18919 (sqrtv8sf2): Likewise.
18920
18921 2009-05-06 H.J. Lu <hongjiu.lu@intel.com>
18922
18923 * config/i386/i386.c (ix86_build_signbit_mask): Make it static.
18924
18925 * config/i386/i386-protos.h (ix86_build_signbit_mask): Removed.
18926
18927 2009-05-06 H.J. Lu <hongjiu.lu@intel.com>
18928
18929 * config/i386/i386.md (*avx_<code><mode>3_finite): Replace
18930 ssemodesuffixf2c with avxmodesuffixf2c.
18931
18932 2009-05-06 Joseph Myers <joseph@codesourcery.com>
18933
18934 PR c/40032
18935 * c-decl.c (grokdeclarator): Handle incomplete type of unnamed field.
18936
18937 2009-05-05 Jakub Jelinek <jakub@redhat.com>
18938
18939 * tree.h: Remove DECL_BY_REFERENCE from private_flag comment.
18940 (struct tree_base): Adjust spacing for 8 bit boundaries.
18941 (struct tree_decl_common): Add decl_by_reference_flag bit.
18942 (DECL_BY_REFERENCE): Adjust.
18943 * print-tree.c (print_node): For VAR_DECL, PARM_DECL or RESULT_DECL,
18944 print DECL_BY_REFERENCE bit.
18945 * dbxout.c (DECL_ACCESSIBILITY_CHAR): Revert last change.
18946 * dwarf2out.c (loc_by_reference, gen_decl_die): Check
18947 DECL_BY_REFERENCE for all VAR_DECLs, not just non-static ones.
18948 (gen_variable_die): Likewise. Check TREE_PRIVATE/TREE_PROTECTED
18949 unconditionally.
18950
18951 PR middle-end/39666
18952 * gimplify.c (gimplify_switch_expr): If case labels cover the whole
18953 range of the type, but default label is missing, add it with one
18954 of the existing labels instead of adding a new label for it.
18955
18956 2009-05-05 Joseph Myers <joseph@codesourcery.com>
18957
18958 * dwarf.h: Remove.
18959
18960 2009-05-05 Rafael Avila de Espindola <espindola@google.com>
18961
18962 * Makefile.in (enable_plugin, plugin_includedir): New.
18963 (install): Depend on install-plugin.
18964 (PLUGIN_HEADERS): New.
18965 (install-plugin): New.
18966 * config.gcc: Add vxworks-dummy.h to tm_file for x86 and x86-64.
18967
18968 2009-05-05 Richard Guenther <rguenther@suse.de>
18969
18970 PR tree-optimization/40022
18971 * tree-ssa-phiprop.c (struct phiprop_d): Exchange vop_stmt for
18972 the only vuse.
18973 (phivn_valid_p): Fix tuplification error, simplify.
18974 (phiprop_insert_phi): Add dumps.
18975 (propagate_with_phi): Simplify.
18976
18977 2009-05-05 Richard Guenther <rguenther@suse.de>
18978
18979 PR middle-end/40023
18980 * builtins.c (gimplify_va_arg_expr): Properly build the address.
18981
18982 2009-05-05 Shujing Zhao <pearly.zhao@oracle.com>
18983
18984 * tree.h (strip_float_extensions): Remove duplicate declaration.
18985 (build_low_bits_mask, debug_fold_checksum, expand_function_end,
18986 expand_function_start, stack_protect_prologue, stack_protect_epilogue,
18987 block_ultimate_origin): Rearrange the declarations line to match the
18988 comment that indicates the .c file which the functions are defined.
18989 (dwarf2out_*, set_decl_rtl): Add comment.
18990 (get_base_address): Adjust comment.
18991 (change_decl_assembler_name, maybe_fold_*, build_addr): Rearrange the
18992 declarations line and add comment.
18993 (is_builtin_name): Add blank after function name, for clarity.
18994
18995 2009-05-04 Joseph Myers <joseph@codesourcery.com>
18996
18997 * attribs.c (decl_attributes): Use %qE for identifiers in
18998 diagnostics.
18999 * cgraphunit.c (verify_cgraph_node): Translate function names to
19000 locale character set in diagnostics.
19001 * coverage.c (get_coverage_counts): Use %qE for identifiers in
19002 diagnostics.
19003 * doc/invoke.texi (-finstrument-functions-exclude-function-list):
19004 Document that functions are named in UTF-8.
19005 * expr.c (expand_expr_real_1): Translate function names to locale
19006 character set in diagnostics.
19007 * gimplify.c (omp_notice_variable, omp_is_private,
19008 gimplify_scan_omp_clauses): Use %qE for identifiers in
19009 diagnostics.
19010 * langhooks.c (lhd_print_error_function): Translate function names
19011 to locale character set.
19012 * langhooks.h (decl_printable_name): Document that return value is
19013 in internal character set.
19014 * stmt.c: Include pretty-print.h
19015 (tree_conflicts_with_clobbers_p): Use %qE for identifiers in
19016 diagnostics.
19017 (resolve_operand_name_1): Translate named operand name to locale
19018 character set.
19019 * stor-layout.c (finalize_record_size): Use %qE for identifiers in
19020 diagnostics.
19021 * toplev.c (announce_function): Translate function names to locale
19022 character set.
19023 (warn_deprecated_use): Use %qE for identifiers in diagnostics.
19024 (default_tree_printer): Use pp_identifier or translate identifiers
19025 to locale character set. Mark "<anonymous>" for translation.
19026 * tree-mudflap.c (mx_register_decls, mudflap_finish_file): Use %qE
19027 for identifiers in diagnostics.
19028 * tree.c (handle_dll_attribute): Use %qE for identifiers in
19029 diagnostics.
19030 * varasm.c (output_constructor): Use %qE for identifiers in
19031 diagnostics.
19032
19033 2009-05-04 Rafael Avila de Espindola <espindola@google.com>
19034
19035 * configure.ac: use ` ` instead of $()
19036 * configure: Regenerate.
19037
19038 2009-05-05 Ben Elliston <bje@au.ibm.com>
19039
19040 * config/pa/linux-atomic.c: Eliminate conditional include of
19041 errno.h on non-LP64 systems to simplify build requirements.
19042
19043 2009-05-04 Joseph Myers <joseph@codesourcery.com>
19044
19045 * c-common.c (handle_mode_attribute): Use %qE for identifiers in
19046 diagnostics.
19047 * c-decl.c (check_bitfield_type_and_width): Make orig_name a tree
19048 and pass value to identifier_to_locale.
19049 (warn_variable_length_array): Make name a tree.
19050 (grokdeclarator): Separate diagnostic texts for named and unnamed
19051 declarators. Use %qE for named declarators.
19052 * c-parser.c (c_lex_one_token): Use %qE for identifiers in
19053 diagnostics.
19054 * c-pragma.c (pop_alignment, handle_pragma_pack): Use %qE for
19055 identifiers in diagnostics.
19056 * c-typeck.c (push_member_name, start_init): Pass identifiers to
19057 identifier_to_locale. Mark "anonymous" strings for translation.
19058
19059 2009-05-04 Michael Eager <eager@eagercon.com>
19060
19061 * config/rs6000/rs6000.c (rs6000_legitimate_address): Allow
19062 address for DImode/DFmode only if double-precision FP regs.
19063
19064 2009-05-04 Michael Eager <eager@eagercon.com>
19065
19066 * config/rs6000/rs6000.c (rs6000_libcall_value): Add
19067 TARGET_SINGLE_FLOAT check.
19068
19069 2009-05-04 Michael Eager <eager@eagercon.com>
19070
19071 * config/rs6000/xilinx.h: Add CPP_SPEC for -mxilinx-fpu options.
19072
19073 2009-05-04 Michael Eager <eager@eagercon.com>
19074
19075 * gcc/config.gcc: (powerpc-xilinx-eabi*): Add tm t-xilinx
19076 * config/rs6000/t-xilinx: New
19077
19078 2009-05-04 Paolo Bonzini <bonzini@gnu.org>
19079
19080 * doc/tm.texi (LEGITIMIZE_ADDRESS): Revise documentation.
19081 * gcc/defaults.h (LEGITIMIZE_ADDRESS): Delete.
19082 * gcc/explow.c (memory_address): Use target hook.
19083 * gcc/targhooks.c (default_legitimize_address): New.
19084 * gcc/targhooks.h (default_legitimize_address): New.
19085 * gcc/target.h (legitimize_address): New.
19086 * gcc/target-def.h (TARGET_LEGITIMIZE_ADDRESS): New.
19087 (TARGET_INITIALIZER): Include it.
19088 * gcc/system.h (LEGITIMIZE_ADDRESS): Poison.
19089
19090 * config/bfin/bfin-protos.h (legitimize_address): Remove.
19091 * config/bfin/bfin.c (legitimize_address): Remove.
19092 * config/bfin/bfin.h (LEGITIMIZE_ADDRESS): Remove.
19093 * config/m68hc11/m68hc11-protos.h (m68hc11_legitimize_address):
19094 Remove.
19095 * config/m68hc11/m68hc11.c (m68hc11_legitimize_address): Remove.
19096 * config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Remove.
19097
19098 * gcc/config/arm/arm.h (LEGITIMIZE_ADDRESS, ARM_LEGITIMIZE_ADDRESS,
19099 THUMB_LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS): Delete.
19100 * gcc/config/s390/s390.h (LEGITIMIZE_ADDRESS): Delete.
19101 * gcc/config/m32c/m32c.h (LEGITIMIZE_ADDRESS): Delete.
19102 * gcc/config/sparc/sparc.h (LEGITIMIZE_ADDRESS): Delete.
19103 * gcc/config/m32r/m32r.h (LEGITIMIZE_ADDRESS): Delete.
19104 * gcc/config/i386/i386.h (LEGITIMIZE_ADDRESS): Delete.
19105 * gcc/config/sh/sh.h (LEGITIMIZE_ADDRESS): Delete.
19106 * gcc/config/avr/avr.h (LEGITIMIZE_ADDRESS): Delete.
19107 * gcc/config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Delete.
19108 * gcc/config/iq2000/iq2000.h (LEGITIMIZE_ADDRESS): Delete.
19109 * gcc/config/mn10300/mn10300.h (LEGITIMIZE_ADDRESS): Delete.
19110 * gcc/config/m68k/m68k.h (LEGITIMIZE_ADDRESS): Delete.
19111 * gcc/config/score/score.h (LEGITIMIZE_ADDRESS): Delete.
19112 * gcc/config/pa/pa.h (LEGITIMIZE_ADDRESS): Delete.
19113 * gcc/config/mips/mips.h (LEGITIMIZE_ADDRESS): Delete.
19114 * gcc/config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Delete.
19115 * gcc/config/frv/frv.h (LEGITIMIZE_ADDRESS): Delete.
19116 * gcc/config/spu/spu.h (LEGITIMIZE_ADDRESS): Delete.
19117 * gcc/config/xtensa/xtensa.h (LEGITIMIZE_ADDRESS): Delete.
19118 * gcc/config/cris/cris.h (LEGITIMIZE_ADDRESS): Delete.
19119 * gcc/config/rs6000/rs6000.h (LEGITIMIZE_ADDRESS): Delete.
19120 * gcc/config/picochip/picochip.h (LEGITIMIZE_ADDRESS): Delete.
19121
19122 * gcc/config/s390/s390-protos.h (legitimize_address): Delete.
19123 * gcc/config/m32c/m32c-protos.h (m32c_legitimize_address): Delete.
19124 * gcc/config/sparc/sparc-protos.h (legitimize_address): Delete.
19125 * gcc/config/i386/i386-protos.h (legitimize_address): Delete.
19126 * gcc/config/avr/avr-protos.h (legitimize_address): Delete.
19127 * gcc/config/mn10300/mn10300-protos.h (legitimize_address): Delete.
19128 * gcc/config/score/score-protos.h (score_legitimize_address): Delete.
19129 * gcc/config/arm/arm-protos.h (arm_legitimize_address,
19130 (thumb_legitimize_address): Delete.
19131 * gcc/config/pa/pa-protos.h (hppa_legitimize_address): Delete.
19132 * gcc/config/mips/mips-protos.h (mips_legitimize_address): Delete.
19133 * gcc/config/alpha/alpha-protos.h (alpha_legitimize_address): Delete.
19134 * gcc/config/frv/frv-protos.h (frv_legitimize_address): Delete.
19135 * gcc/config/spu/spu-protos.h (spu_legitimize_address): Delete.
19136 * gcc/config/xtensa/xtensa-protos.h (xtensa_legitimize_address):
19137 Delete.
19138 * gcc/config/rs6000/rs6000-protos.h (rs6000_legitimize_address):
19139 Delete.
19140
19141 * config/arm/arm.c (arm_legitimize_address): Maybe call Thumb version.
19142 * config/m32c/m32c.c (m32c_legitimize_address): Standardize.
19143 * config/m32r/m32r.c (m32r_legitimize_address): New.
19144 * config/m68k/m68k.c (m68k_legitimize_address): New.
19145 * config/score/score.c (score_legitimize_address): Standardize.
19146 * config/score/score3.c (score3_legitimize_address): Standardize.
19147 * config/score/score3.h (score3_legitimize_address): Adjust.
19148 * config/score/score7.c (score7_legitimize_address): Standardize.
19149 * config/score/score7.h (score7_legitimize_address): Adjust.
19150 * config/sh/sh.c (sh_legitimize_address): New.
19151 * config/iq2000/iq2000.c (iq2000_legitimize_address): New.
19152
19153 * gcc/config/s390/s390.c (legitimize_address): Rename to...
19154 (s390_legitimize_address): ... this.
19155 * gcc/config/sparc/sparc.c (legitimize_address): Rename to...
19156 (sparc_legitimize_address): ... this.
19157 * gcc/config/i386/i386.c (legitimize_address): Rename to...
19158 (ix86_legitimize_address): ... this.
19159 * gcc/config/avr/avr.c (legitimize_address): Rename to...
19160 (avr_legitimize_address): ... this.
19161 * gcc/config/mn10300/mn10300.c (legitimize_address): Rename to...
19162 (mn10300_legitimize_address): ... this.
19163 * config/alpha/alpha.c (alpha_legitimize_address): Wrap...
19164 (alpha_legitimize_address_1): ... the old alpha_legitimize_address.
19165 (alpha_expand_mov): Adjust call.
19166
19167 * config/frv/frv.c (frv_legitimize_address): Return x on failure.
19168 * config/spu/spu.c (spu_legitimize_address): Likewise.
19169 * config/xtensa/xtensa.c (xtensa_legitimize_address): Likewise.
19170 * config/rs6000/rs6000.c (rs6000_legitimize_address): Likewise.
19171
19172 2009-05-04 Joseph Myers <joseph@codesourcery.com>
19173
19174 * intl.c (locale_encoding, locale_utf8): New.
19175 (gcc_init_libintl): Initialize locale_encoding and locale_utf8.
19176 * intl.h (locale_encoding, locale_utf8): Declare.
19177 * pretty-print.c: Include ggc.h. Include iconv.h if HAVE_ICONV.
19178 (pp_base_tree_identifier, decode_utf8_char, identifier_to_locale):
19179 New.
19180 * pretty-print.h (pp_identifier): Call identifier_to_locale on ID
19181 argument.
19182 (pp_tree_identifier): Define to call pp_base_tree_identifier.
19183 (pp_base_tree_identifier): Declare as function.
19184 (identifier_to_locale): Declare.
19185 * Makefile.in (pretty-print.o): Update dependencies.
19186 * varasm.c (finish_aliases_1): Use %qE for identifiers in diagnostics.
19187
19188 2009-05-04 Richard Guenther <rguenther@suse.de>
19189
19190 PR middle-end/40015
19191 * builtins.c (fold_builtin_memory_op): Do not decay to element
19192 type if the size matches the whole array.
19193
19194 2009-05-04 Kazu Hirata <kazu@codesourcery.com>
19195
19196 * expmed.c (synth_mult): When trying out a shift, pass the result
19197 of a signed shift.
19198
19199 2009-05-04 Kazu Hirata <kazu@codesourcery.com>
19200
19201 * expmed.c (shiftsub_cost): Rename to shiftsub0_cost.
19202 (shiftsub1_cost): New.
19203 (init_expmed): Compute shiftsub1_cost.
19204 (synth_mult): Optimize multiplications by constants of the form
19205 -(2^^m-1) for some constant positive integer m.
19206
19207 2009-05-03 Richard Guenther <rguenther@suse.de>
19208
19209 PR c/39983
19210 * c-typeck.c (array_to_pointer_conversion): Do not built
19211 ADDR_EXPRs of arrays of pointer-to-element type.
19212 * c-gimplify.c (c_gimplify_expr): Revert change fixing
19213 up wrong ADDR_EXPRs after-the-fact.
19214 * c-common.c (strict_aliasing_warning): Strip pointer
19215 conversions for obtaining the original type.
19216 * builtins.c (fold_builtin_memset): Handle array types.
19217 (fold_builtin_memory_op): Handle folded POINTER_PLUS_EXPRs
19218 and array types
19219
19220 2009-05-03 Richard Guenther <rguenther@suse.de>
19221
19222 PR middle-end/23329
19223 * tree-ssa.c (useless_type_conversion_p_1): Use get_deref_alias_set.
19224 Do not lose casts from array types with unknown extent to array
19225 types with known extent.
19226 * tree-ssa-copy.c (may_propagate_copy): Remove hack checking for
19227 alias set compatibility.
19228
19229 2009-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
19230
19231 * flags.h (extra_warnings): Delete.
19232 * toplev.c (process_options): Handle Wuninitialized here.
19233 * opts.c (extra_warnings): Delete.
19234 (set_Wextra): Delete.
19235 (common_handle_option): -Wextra can be handled automatically.
19236 * c-opts.c (c_common_handle_option): Delete obsolete code.
19237 (c_common_post_options): Simplify comment.
19238 * common.opt (W): Add Var.
19239 (Wextra): Add Var.
19240 (Wuninitialized): Initialize to -1.
19241
19242 2009-05-03 Adam Nemet <anemet@caviumnetworks.com>
19243 Richard Guenther <rguenther@suse.de>
19244
19245 * expr.c (get_def_for_expr): New function.
19246 (expand_expr_real_1) <PLUS_EXPR, MINUS_EXPR>: Adjust to work with
19247 SSA rather than trees.
19248 <MULT_EXPR>: Likewise. Use subexp0 and subexp1 instead of
19249 TREE_OPERAND (exp, 0) and TREE_OPERAND (exp, 1).
19250
19251 2009-05-03 Joseph Myers <joseph@codesourcery.com>
19252
19253 * c-common.c (reswords): Add _Imaginary.
19254 * c-common.c (enum rid): Add RID_IMAGINARY.
19255
19256 2009-05-03 Paolo Bonzini <bonzini@gnu.org>
19257
19258 * tree.h (TYPE_VECTOR_OPAQUE): Fix documentation.
19259 Patch by Richard Guenther.
19260
19261 2009-05-03 Anatoly Sokolov <aesok@post.ru>
19262
19263 * defaults.h (FRAME_POINTER_REQUIRED): Provide default.
19264 * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
19265 * config/alpha/alpha.h (FRAME_POINTER_REQUIRED): Delete.
19266 * config/s390/s390.h (FRAME_POINTER_REQUIRED): Delete.
19267 * config/spu/spu.h (FRAME_POINTER_REQUIRED): Delete.
19268 * config/sh/sh.h (FRAME_POINTER_REQUIRED): Delete.
19269 * config/pdp11/pdp11.h (FRAME_POINTER_REQUIRED): Delete.
19270 * config/stormy16/stormy16.h (FRAME_POINTER_REQUIRED): Delete.
19271 * config/m68hc11/m68hc11.h (FRAME_POINTER_REQUIRED): Delete.
19272 * config/iq2000/iq2000.h (FRAME_POINTER_REQUIRED): Delete.
19273 * config/mn10300/mn10300.h (FRAME_POINTER_REQUIRED): Delete.
19274 * config/ia64/ia64.h (FRAME_POINTER_REQUIRED): Delete.
19275 * config/m68k/m68k.h (FRAME_POINTER_REQUIRED): Delete.
19276 * config/rs6000/rs6000.h (FRAME_POINTER_REQUIRED): Delete.
19277 * config/picochip/picochip.h (FRAME_POINTER_REQUIRED): Delete.
19278 * config/mcore/mcore.h (FRAME_POINTER_REQUIRED): Delete.
19279 * config/h8300/h8300.h (FRAME_POINTER_REQUIRED): Delete.
19280 * config/v850/v850.h (FRAME_POINTER_REQUIRED): Delete.
19281
19282 2009-05-02 Richard Guenther <rguenther@suse.de>
19283
19284 PR tree-optimization/39940
19285 * tree-ssa-pre.c (eliminate): Make sure we may propagate before
19286 doing so.
19287
19288 2009-05-02 Richard Guenther <rguenther@suse.de>
19289
19290 PR middle-end/40001
19291 * tree-ssa.c (execute_update_addresses_taken): Properly check
19292 if we can mark a variable DECL_GIMPLE_REG_P.
19293 * gimple.c (is_gimple_reg): Re-order check for DECL_GIMPLE_REG_P
19294 back to the end of the function.
19295 (is_gimple_reg_type): Remove complex type special casing.
19296 * gimplify.c (gimplify_bind_expr): Do not set DECL_GIMPLE_REG_P
19297 if not optimizing.
19298
19299 2009-05-02 Ben Elliston <bje@au.ibm.com>
19300
19301 * doc/collect2.texi (Collect2): Document search path behaviour
19302 when configured with --with-ld.
19303
19304 2009-05-02 Jan Hubicka <jh@suse.cz>
19305
19306 * tree-ssa-coalesce.c (coalesce_cost): Do not take ciritical
19307 parameter; update callers.
19308 (coalesce_cost_edge): EH edges are costier because they needs
19309 splitting even if not critical and even more costier when there are
19310 multiple EH predecestors.
19311
19312 2009-05-02 Jan Hubicka <jh@suse.cz>
19313
19314 * except.c (remove_eh_handler_and_replace): Handle updating after
19315 removing TRY blocks.
19316
19317 2009-05-02 Eric Botcazou <ebotcazou@adacore.com>
19318
19319 * store-motion.c (compute_store_table): Add ENABLE_CHECKING guard.
19320
19321 2009-05-02 Steven Bosscher <steven@gcc.gnu.org>
19322
19323 * varasm.c: Do not include c-pragma.h.
19324 * attribs.c: Do not incude c-common.h.
19325
19326 2009-05-01 Michael Matz <matz@suse.de>
19327
19328 * calls.c (initialize_argument_information): Handle SSA names like
19329 decls with a non MEM_P DECL_RTL.
19330
19331 2009-05-01 Steven Bosscher <steven@gcc.gnu.org>
19332
19333 * ipa-reference.c: Do not include c-common.h, include splay-tree.h.
19334 * ipa-utils.c: Likewise.
19335 * ipa-type-escape.c: Likewise.
19336 * cgraphunit.c Do not include c-common.h.
19337 * ipa-pure-const.c: Likewise.
19338 * tree-if-conv.c: Likewise.
19339 * matrix-reorg.c: Do not include c-common.h and c-tree.h.
19340 * ipa-struct-reorg.c: Likewise.
19341 * tree-nomudflap.c: Likewise.
19342 * tree-ssa-structalias.c: Likewise.
19343
19344 2009-05-01 Steven Bosscher <steven@gcc.gnu.org>
19345
19346 * store-motion.c: Many cleanups to make this pass a first-class
19347 citizen instead of an appendix to gcse load motion. Add TODO list
19348 to make this pass faster/cleaner/better.
19349
19350 (struct ls_expr): Post gcse.c-split cleanups.
19351 Rename to st_expr. Rename "loads" field to "antic_stores". Rename
19352 "stores" field to "avail_stores".
19353 (pre_ldst_mems): Rename to store_motion_mems.
19354 (pre_ldst_table): Rename to store_motion_mems_table.
19355 (pre_ldst_expr_hash): Rename to pre_st_expr_hash, update users.
19356 (pre_ldst_expr_eq): Rename to pre_st_expr_eq, update users.
19357 (ldst_entry): Rename to st_expr_entry, update users.
19358 (free_ldst_entry): Rename to free_st_expr_entry, update users.
19359 (free_ldst_mems): Rename to free_store_motion_mems, update users.
19360 (enumerate_ldsts): Rename to enumerate_store_motion_mems,
19361 update caller.
19362 (first_ls_expr): Rename to first_st_expr, update users.
19363 (next_ls_expr): Rename to next_st_expr, update users.
19364 (print_ldst_list): Rename to print_store_motion_mems. Print names of
19365 fields properly for store motion instead of names inherited from load
19366 motion in gcse.c.
19367 (ANTIC_STORE_LIST, AVAIL_STORE_LIST): Remove.
19368 (LAST_AVAIL_CHECK_FAILURE): Explain what this is. Undefine when we
19369 are done with it.
19370
19371 (ae_kill): Rename to st_kill, update users.
19372 (ae_gen): Rename to st_avloc, update users.
19373 (transp): Rename to st_transp, update users.
19374 (pre_insert_map): Rename to st_insert_map, update users.
19375 (pre_delete_map): Rename to st_delete_map, update users.
19376 (insert_store, build_store_vectors, free_store_memory,
19377 one_store_motion_pass): Update for abovementioned changes.
19378
19379 (gcse_subst_count, gcse_create_count): Remove.
19380 (one_store_motion_pass): New statistics counters "n_stores_deleted"
19381 and "n_stores_created", local variables.
19382
19383 (extract_mentioned_regs, extract_mentioned_regs_1): Rewrite to
19384 use for_each_rtx.
19385
19386 (regvec, compute_store_table_current_insn): Remove.
19387 (reg_set_info, reg_clear_last_set): Remove.
19388 (compute_store_table): Use DF caches instead of local dataflow
19389 solvers.
19390
19391 2009-05-01 Joseph Myers <joseph@codesourcery.com>
19392
19393 * c-objc-common.c (c_tree_printer): Print identifiers with
19394 pp_identifier, not pp_string. Mark "({anonymous})" for
19395 translation.
19396 * c-pretty-print.c (pp_c_ws_string): New.
19397 (pp_c_cv_qualifier, pp_c_type_specifier,
19398 pp_c_specifier_qualifier_list, pp_c_parameter_type_list,
19399 pp_c_storage_class_specifier, pp_c_function_specifier,
19400 pp_c_attributes, pp_c_bool_constant, pp_c_constant,
19401 pp_c_primary_expression, pp_c_postfix_expression,
19402 pp_c_unary_expression, pp_c_shift_expression,
19403 pp_c_relational_expression, pp_c_equality_expression,
19404 pp_c_logical_and_expression, pp_c_logical_or_expression): Mostly
19405 use pp_string and pp_c_ws_string in place of pp_identifier and
19406 pp_c_identifier for non-identifiers. Mark English strings for
19407 translation.
19408 * c-pretty-print.h (pp_c_ws_string): Declare.
19409
19410 2009-04-30 Paul Pluzhnikov <ppluzhnikov@google.com>
19411 Roland McGrath <roland@redhat.com>
19412
19413 * configure.ac (HAVE_LD_BUILDID): New check for ld --build-id support.
19414 (ENABLE_LD_BUILDID): New configuration option.
19415 * gcc.c [HAVE_LD_BUILDID and ENABLE_LD_BUILDID]
19416 (LINK_BUILDID_SPEC): New macro.
19417 (init_spec): If defined, prepend it between LINK_EH_SPEC and
19418 link_spec.
19419 * doc/install.texi: Document --enable-linker-build-id option.
19420 * configure: Rebuild.
19421 * config.in: Rebuild.
19422
19423 2009-04-30 Adam Nemet <anemet@caviumnetworks.com>
19424
19425 * config/mips/mips.h (FRAME_GROWS_DOWNWARD,
19426 MIPS_GP_SAVE_AREA_SIZE): Define new macros.
19427 (STARTING_FRAME_OFFSET): Return 0 if FRAME_GROWS_DOWNWARD. Use
19428 MIPS_GP_SAVE_AREA_SIZE.
19429 * config/mips/mips.c (struct mips_frame_info): Update comment
19430 before arg_pointer_offset and hard_frame_pointer_offset.
19431 (mips_compute_frame_info): Update diagram before function: to
19432 correctly use stack_pointer_rtx for fp_sp_offset and gp_sp_offset, to
19433 indicate the position of frame_pointer_rtx with -fstack-protector and
19434 to show args_size. Don't allocate cprestore area for leaf functions
19435 if FRAME_GROWS_DOWNWARD. Use MIPS_GP_SAVE_AREA_SIZE to set
19436 cprestore_size.
19437 (mips_initial_elimination_offset): Update for FRAME_GROWS_DOWNWARD.
19438
19439 2009-04-30 Michael Matz <matz@suse.de>
19440
19441 PR tree-optimization/39955
19442 * config/rs6000/rs6000.c (rs6000_check_sdmode): Also check SSA_NAMEs.
19443
19444 2009-04-30 Dave Korn <dave.korn.cygwin@gmail.com>
19445
19446 * ira.c (setup_cover_and_important_classes): Use safe macro
19447 REG_CLASS_FOR_CONSTRAINT instead of calling regclass_for_constraint
19448 directly.
19449 * genpreds.c (write_tm_preds_h): Output suitable definition of
19450 REG_CLASS_FOR_CONSTRAINT.
19451
19452 2009-04-30 Rafael Avila de Espindola <espindola@google.com>
19453
19454 * alloc-pool.c (alloc_pool_descriptor): Use an insert_opion value
19455 instead of an int.
19456 * bitmap.c (bitmap_descriptor): Likewise.
19457 * ggc-common.c (loc_descriptor): Likewise.
19458 * varray.c (varray_descriptor): Likewise.
19459 * vec.c (vec_descriptor): Likewise.
19460
19461 2009-04-30 Eric Botcazou <ebotcazou@adacore.com>
19462
19463 * Makefile.in (dce.o): Add $(EXCEPT_H).
19464 * dce.c: Include except.h and delete redundant vector definitions.
19465 (deletable_insn_p): Return false for non-call insns that can throw
19466 if DF is running.
19467
19468 2009-04-30 Steven Bosscher <steven@gcc.gnu.org>
19469
19470 * gcse.c (ae_gen): Remove.
19471 (can_assign_to_reg_p): Rename to can_assign_to_reg_without_clobbers_p
19472 and make non-static function to make it available in store-motion.c.
19473 Update call sites with search-and-replace.
19474 (enumerate_ldsts, reg_set_info, reg_clear_last_set, store_ops_ok,
19475 extract_mentioned_regs, extract_mentioned_regs_helper,
19476 find_moveable_store, compute_store_table, load_kills_store, find_loads,
19477 store_killed_in_insn, store_killed_after, store_killed_before,
19478 build_store_vectors, insert_insn_start_basic_block, insert-store,
19479 remove_reachable_equiv_notes, replace_store_insn, delete_store,
19480 free_store_memory, one_store_motion_pass, gate_rtl_store_motion,
19481 execute_rtl_store_motion, pass_rtl_store_motion): Move to...
19482 * store-motion.c: ...new file. Also copy data structures from gcse.c
19483 and clean up to remove parts not used by store motion.
19484 * rtl.h (can_assign_to_reg_without_clobbers_p): Add prototype.
19485 * Makefile.in (store-motion.o): New rule. Add to OBJS-common.
19486
19487 2009-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19488
19489 PR target/38571
19490 * config/arm/arm.h (FUNCTION_BOUNDARY): Set to 16 for thumb
19491 when optimizing for size.
19492
19493 2009-04-30 Hans-Peter Nilsson <hp@axis.com>
19494
19495 * gcse.c (gcse_constant_p): Fix typo in last change.
19496
19497 2009-04-30 Rafael Avila de Espindola <espindola@google.com>
19498
19499 * plugin.c: Include plugin-version.h only if ENABLE_PLUGIN is defined.
19500
19501 2009-04-30 Andreas Krebbel <krebbel1@de.ibm.com>
19502
19503 * gcse.c (gcse_constant_p): Make sure the constant is sharable.
19504
19505 2009-04-29 James E. Wilson <wilson@codesourcery.com>
19506
19507 * config/mips/mips.c (mips_add_offset): Use gen_int_mode for
19508 CONST_HIGH_PART result.
19509
19510 2009-04-29 Anatoly Sokolov <aesok@post.ru>
19511
19512 * config/avr/avr.c (initial_elimination_offset): Rename to
19513 avr_initial_elimination_offset.
19514 (frame_pointer_required_p): Rename to avr_frame_pointer_required_p,
19515 change return type to bool.
19516 (avr_can_eliminate): New function.
19517 * config/avr/avr.h (CAN_ELIMINATE): Use avr_can_eliminate.
19518 (FRAME_POINTER_REQUIRED): Use avr_frame_pointer_required_p.
19519 (INITIAL_ELIMINATION_OFFSET): Use avr_initial_elimination_offset.
19520 * config/avr/avr-protos.h (initial_elimination_offset): Rename to
19521 avr_initial_elimination_offset.
19522 (frame_pointer_required_p): Rename to avr_frame_pointer_required_p.
19523 (avr_initial_elimination_offset): Define.
19524
19525 2009-04-29 Eric Botcazou <ebotcazou@adacore.com>
19526 Steven Bosscher <steven@gcc.gnu.org>
19527
19528 PR rtl-optimization/39938
19529 * Makefile.in (cfgrtl.o): Add $(INSN_ATTR_H).
19530 * cfgrtl.c: Include insn-attr.h.
19531 (rest_of_pass_free_cfg): New function.
19532 (pass_free_cfg): Use rest_of_pass_free_cfg as execute function.
19533 * resource.c (init_resource_info): Remove call to df_analyze.
19534
19535 2009-04-29 Richard Guenther <rguenther@suse.de>
19536
19537 PR target/39943
19538 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Only
19539 allow conversion to signed integers.
19540
19541 2009-04-29 Richard Guenther <rguenther@suse.de>
19542
19543 * tree-cfg.c (verify_gimple_assign_binary): Allow vector
19544 shifts of floating point vectors if the shift amount is
19545 a constant multiple of the element size.
19546
19547 2009-04-29 Andreas Krebbel <krebbel1@de.ibm.com>
19548 Michael Matz <matz@suse.de>
19549
19550 PR middle-end/39927
19551 PR bootstrap/39929
19552 * tree-outof-ssa.c (emit_partition_copy): New function.
19553 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
19554 insert_part_to_rtx_on_edge): Perform the partition base var
19555 copy using emit_partition_copy.
19556 (insert_value_copy_on_edge): Convert constants to the right mode.
19557 (insert_rtx_to_part_on_edge): Add UNSIGNEDSRCP parameter.
19558 (elim_create): Pass the sign of the src to insert_rtx_to_part_on_edge.
19559
19560 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
19561
19562 * config/bfin/bfin.c (bfin_optimize_loop): If we need a scratch reg,
19563 scan backwards to try to find a constant to initialize it.
19564
19565 * config/bfin/bfin.c (bfin_optimize_loop): When looking for the last
19566 insn before the loop_end instruction, don't look past labels.
19567
19568 2009-04-29 Richard Guenther <rguenther@suse.de>
19569
19570 PR middle-end/39937
19571 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do not
19572 loose type conversions.
19573 (forward_propagate_addr_expr): Fix tuplification bug. Remove
19574 stmts only if there are no uses of its definition.
19575
19576 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
19577
19578 * config/bfin/bfin.h (splitting_loops): Declare.
19579 * config/bfin/bfin-protos.h (WA_05000257, WA_05000283, WA_05000315):
19580 Reorder bit definitions to be ascending.
19581 (WA_LOAD_LCREGS, ENABLE_WA_LOAD_LCREGS): New macros.
19582 * config/bfin/bfin.c (splitting_loops): New variable.
19583 (bfin_cpus): Add WA_LOAD_LCREGS as needed.
19584 (struct loop_info): Remove members INIT and LOOP_INIT.
19585 (bfin_optimize_loop): Don't set them. Reorder the code that generates
19586 the LSETUP sequence. Allow LC to be loaded from any register, but
19587 also add a case to push/pop a PREG scratch if ENABLE_WA_LOAD_LCREGS.
19588 (bfin_reorg_loops): When done, split all BB_ENDs with splitting_loops
19589 set to 1.
19590 * config/bfin/bfin.md (loop_end splitter): Use splitting_loops instead
19591 of reload_completed.
19592
19593 From Jie Zhang:
19594 * config/bfin/bfin.md (movsi_insn): Refine constraints.
19595
19596 2009-04-29 Rafael Avila de Espindola <espindola@google.com>
19597
19598 * Makefile.in (PLUGIN_VERSION_H): New.
19599 (OBJS-common): Remove plugin-version.o.
19600 (plugin.o): Depend on (PLUGIN_VERSION_H).
19601 (plugin-version.o): Remove.
19602 * configure: Regenerate
19603 * configure.ac: Create plugin-version.h.
19604 * gcc-plugin.h (plugin_gcc_version): Remove.
19605 (plugin_default_version_check): Change signature.
19606 * plugin-version.c: Remove.
19607 * plugin.c: Include plugin-version.h.
19608 (str_plugin_gcc_version_name): Remove.
19609 (try_init_one_plugin): Pass gcc version to plugin_init.
19610 (plugin_default_version_check): Both gcc and plugin versions are now
19611 arguments.
19612
19613 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
19614
19615 * config/bfin/bfin.c (bfin_optimize_loop): Unify handling of
19616 problematic last insns. Test for TYPE_CALL rather than CALL_P.
19617 Remove special case testing for last insn of inner loops. Don't fail
19618 if the loop ends with a jump, emit an extra nop instead.
19619
19620 * config/bfin/bfin.c (bfin_register_move_cost): Test for subsets of
19621 DREGS rather than comparing directly. Remove code that tries to
19622 account for latencies.
19623
19624 2009-04-29 Richard Guenther <rguenther@suse.de>
19625
19626 PR tree-optimization/39941
19627 * tree-ssa-pre.c (eliminate): Schedule update-ssa after
19628 eliminating an indirect call.
19629
19630 2009-04-29 Richard Guenther <rguenther@suse.de>
19631
19632 * tree-cfg.c (verify_types_in_gimple_reference): Add require_lvalue
19633 parameter. Allow invariants as base if !require_lvalue.
19634 (verify_gimple_assign_single): Adjust.
19635
19636 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
19637
19638 * config/bfin/bfin.md (sp_or_sm, spm_string, spm_name): New macro.
19639 (ss<spm_name>hi3, ss<spm_name>hi3_parts, ss<spm_name>hi3_low_parts,
19640 ss<spm_name_hi3_high_parts): New patterns, replacing ssaddhi3,
19641 ssubhi3, ssaddhi3_parts and sssubhi3_parts.
19642 (flag_mulhi3_parts): Produce a HImode output rather than trying to set
19643 a VEC_SELECT.
19644 * config/bfin/bfin.c (bfin_expand_builtin,
19645 case BFIN_BUILTIN_CPLX_SQU): Adjust accordingly.
19646
19647 2009-04-28 Richard Guenther <rguenther@suse.de>
19648
19649 * tree-vect-loop.c (get_initial_def_for_induction): Use
19650 correct types for pointer increment.
19651
19652 2009-04-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19653
19654 * toplev.c (print_version): Update GMP version string calculation.
19655
19656 2009-04-28 Eric Botcazou <ebotcazou@adacore.com>
19657
19658 PR rtl-optimization/39938
19659 * resource.c (init_resource_info): Add call to df_analyze.
19660
19661 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
19662
19663 * config/alpha/alpha.md (usegp): Cast the result of
19664 alpha_find_lo_sum_using_gp to enum attr_usegp.
19665 * config/alpha/alpha.c (override_options): Remove end-of-structure
19666 marker element from cpu_table. Use array size of cpu_table to handle
19667 -mcpu and -mtune options.
19668 (tls_symbolic_operand_type): Change 0 to TLS_MODEL_NONE.
19669
19670 2009-04-28 Joseph Myers <joseph@codesourcery.com>
19671
19672 * config.gcc (powerpc*-*-* | rs6000-*-*): Add
19673 rs6000/option-defaults.h to tm_file. Support cpu_32, cpu_64,
19674 tune_32 and tune_64.
19675 * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
19676 support on PowerPC.
19677 * config/rs6000/rs6000.h (OPTION_DEFAULT_SPECS): Move to ...
19678 * config/rs6000/option-defaults.h: ... here. New file.
19679 (OPT_64, OPT_32): Define.
19680 (MASK_64BIT): Define to 0 if not already defined.
19681 (OPT_ARCH64, OPT_ARCH32): Define.
19682 (OPTION_DEFAULT_SPECS): Add entries for cpu_32, cpu_64, tune_32
19683 and tune_64.
19684
19685 2009-04-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19686
19687 * config/arm/arm.c (arm_override_options): Emit error on using
19688 fpa with AAPCS.
19689
19690 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
19691
19692 PR rtl-optimization/39914
19693 * ira-conflicts.c (ira_build_conflicts): Prohibit call used
19694 registers for allocnos created from user-defined variables only
19695 when not optimizing.
19696
19697 2009-04-28 Richard Guenther <rguenther@suse.de>
19698
19699 PR middle-end/39937
19700 * fold-const.c (fold_binary): Use distribute_real_division only
19701 on float types.
19702
19703 2009-04-28 Steve Ellcey <sje@cup.hp.com>
19704
19705 * config.gcc (hppa*64*-*-hpux11*): Set use_gcc_stdint and
19706 add hpux-stdint.h to tm_file.
19707 (hppa[12]*-*-hpux11*): Ditto.
19708 (ia64*-*-hpux*): Ditto.
19709 * config/hpux-stdint.h: New.
19710 * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Set
19711 __STDC_EXT__ for all compiles.
19712 * config/pa/pa-hpux.h: Ditto.
19713 * config/pa/pa-hpux10.h: Ditto.
19714 * config/pa/pa-hpux11.h: Ditto.
19715
19716 2009-04-28 Catherine Moore <clm@codesourcery.com>
19717
19718 * debug.h (set_name): Add comment.
19719
19720 2009-04-28 Andrew Pinski <pinskia@gmail.com>
19721
19722 PR target/39929
19723 * config/darwin.c (machopic_gen_offset): Check
19724 currently_expanding_to_rtl if current_ir_type returns IR_GIMPLE.
19725 * config/arm/arm.c (require_pic_register): Likewise.
19726
19727 2009-04-28 Paolo Bonzini <bonzini@gnu.org>
19728
19729 * config/m32c/m32c.c (TARGET_PROMOTE_FUNCTION_RETURN,
19730 m32c_promote_function_return, TARGET_PROMOTE_PROTOTYPES,
19731 m32c_promote_prototypes): Delete.
19732
19733 2009-04-28 Michael Matz <matz@suse.de>
19734
19735 PR middle-end/39922
19736 * tree-outof-ssa.c (insert_value_copy_on_edge): Don't convert
19737 constants.
19738
19739 2009-04-28 Richard Guenther <rguenther@suse.de>
19740
19741 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Fix type error.
19742
19743 2009-04-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19744
19745 * config/arm/arm-cores.def: Add support for arm1156t2f-s.
19746 * doc/invoke.texi (ARM Options): Document support for arm1156t2f-s.
19747 * config/arm/arm-tune.md: Regenerate.
19748
19749 2009-04-28 Alexander Monakov <amonakov@ispras.ru>
19750
19751 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not attempt to delete a
19752 block if there are complex incoming edges.
19753 (sel_merge_blocks): Remove useless assert.
19754 (sel_redirect_edge_and_branch): Check that edge was redirected.
19755 * sel-sched-ir.h (_eligible_successor_edge_p): Remove assert.
19756 (sel_find_rgns): Delete declaration.
19757 * sel-sched.c (purge_empty_blocks): Attempt to remove first block of
19758 the region when it is not a preheader.
19759
19760 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
19761
19762 PR c/39323
19763 * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Sync with elfos.h
19764
19765 2009-04-28 Richard Guenther <rguenther@suse.de>
19766
19767 * tree.h (SSA_NAME_VALUE): Remove.
19768 (struct tree_ssa_name): Remove value_handle member.
19769 * tree-vrp.c (execute_vrp): Initialize/free the value-handle
19770 array for jump threading.
19771 * tree-ssa-propagate.c (ssa_prop_init): Do not initialize
19772 SSA_NAME_VALUEs.
19773 * print-tree.c (print_node): Do not dump SSA_NAME_VALUEs.
19774 * tree-flow.h (threadedge_initialize_values): Declare.
19775 (threadedge_finalize_values): Likewise.
19776 * tree-ssa-threadedge.c (ssa_name_values): New global variable.
19777 (SSA_NAME_VALUE): Define.
19778 (threadedge_initialize_values): New function.
19779 (threadedge_finalize_values): Likewise.
19780 * tree-ssa-dom.c (ssa_name_values): New global variable.
19781 (SSA_NAME_VALUE): Define.
19782 (tree_ssa_dominator_optimize): Initialize/free the value-handle array.
19783
19784 2009-04-28 Ira Rosen <irar@il.ibm.com>
19785
19786 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
19787 Use REPORT_VECTORIZED_LOCATIONS instead
19788 REPORT_VECTORIZED_LOOPS.
19789 * tree-vectorizer.c (vect_verbosity_level): Make static.
19790 (vect_loop_location): Rename to vect_location.
19791 (vect_set_verbosity_level): Update comment.
19792 (vect_set_dump_settings): Use REPORT_VECTORIZED_LOCATIONS
19793 and vect_location.
19794 (vectorize_loops): Fix comment. Use REPORT_VECTORIZED_LOCATIONS
19795 and vect_location. Use REPORT_UNVECTORIZED_LOCATIONS
19796 instead REPORT_UNVECTORIZED_LOOPS.
19797 * tree-vectorizer.h (enum vect_def_type): Rename vect_invariant_def
19798 and vect_loop_def to vect_external_def and vect_internal_def.
19799 (enum verbosity_levels): Rename REPORT_VECTORIZED_LOOPS
19800 and REPORT_UNVECTORIZED_LOOPS to REPORT_VECTORIZED_LOCATIONS and
19801 REPORT_UNVECTORIZED_LOCATIONS.
19802 (enum vect_relevant): Update comment. Rename vect_unused_in_loop
19803 and vect_used_in_loop and to vect_unused_in_scope and
19804 vect_used_in_scope.
19805 (STMT_VINFO_RELEVANT_P): Use vect_unused_in_scope.
19806 (vect_verbosity_level): Remove declaration.
19807 (vect_analyze_operations): Likewise.
19808 (vect_analyze_stmt): Declare.
19809 * tree-vect-loop.c (vect_determine_vectorization_factor): Use
19810 REPORT_UNVECTORIZED_LOCATIONS.
19811 (vect_get_loop_niters): Fix indentation.
19812 (vect_analyze_loop_form): Use REPORT_UNVECTORIZED_LOCATIONS.
19813 (vect_analyze_loop_operations): New function.
19814 (vect_analyze_loop): Call vect_analyze_loop_operations instead of
19815 vect_analyze_operations.
19816 (vect_is_simple_reduction): Use new names.
19817 (vectorizable_live_operation, vect_transform_loop): Likewise.
19818 * tree-vect-data-refs.c (vect_check_interleaving): Add a return value
19819 to specify whether the data references can be a part of interleaving
19820 chain.
19821 (vect_analyze_data_ref_dependence): Use new names.
19822 (vect_analyze_data_refs_alignment, vect_analyze_data_refs): Likewise.
19823 (vect_create_addr_base_for_vector_ref): Remove redundant code.
19824 * tree-vect-patterns.c (widened_name_p): Use new names.
19825 (vect_recog_dot_prod_pattern): Likewise.
19826 * tree-vect-stmts.c (vect_stmt_relevant_p): Use new names.
19827 (process_use, vect_mark_stmts_to_be_vectorized,
19828 vect_model_simple_cost, vect_model_store_cost,
19829 vect_get_vec_def_for_operand, vect_get_vec_def_for_stmt_copy,
19830 vectorizable_call, vectorizable_conversion, vectorizable_assignment,
19831 vectorizable_operation, vectorizable_type_demotion,
19832 vectorizable_type_promotion, vectorizable_store, vectorizable_load,
19833 vectorizable_condition): Likewise.
19834 (vect_analyze_operations): Split into vect_analyze_loop_operations
19835 and ...
19836 (vect_analyze_stmt): ... new function.
19837 (new_stmt_vec_info): Use new names.
19838 (vect_is_simple_use): Use new names and fix comment.
19839 * tree-vect-slp.c (vect_get_and_check_slp_defs): Use new names.
19840 (vect_build_slp_tree, vect_analyze_slp, vect_schedule_slp): Likewise.
19841
19842 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
19843
19844 PR target/39911
19845 * config/i386/i386.c (print_operand) ['Z']: Handle floating point
19846 and integer modes for x87 operands. Do not ICE for unsupported size,
19847 generate error instead. Generate error for unsupported operand types.
19848 ['z']: Do not handle HImode memory operands specially. Warning
19849 for floating-point operands. Fallthru to 'Z' for unsupported operand
19850 types. Do not ICE for unsupported size, generate error instead.
19851 (output_387_binary_op): Use %Z to output operands.
19852 (output_fp_compare): Ditto.
19853 (output_387_reg_move): Ditto.
19854
19855 2009-04-28 Ben Elliston <bje@au.ibm.com>
19856
19857 PR c++/35652
19858 Revert:
19859
19860 2009-03-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
19861
19862 * builtins.c (c_strlen): Do not warn here.
19863 * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
19864 * c-common.c (pointer_int_sum): Take an explicit location.
19865 Warn about offsets out of bounds.
19866 * c-common.h (pointer_int_sum): Adjust declaration.
19867
19868 2009-04-27 Ian Lance Taylor <iant@google.com>
19869
19870 * collect2.c (is_ctor_dtor): Change type of ret field in struct
19871 names to symkind.
19872 * dce.c (run_fast_df_dce): Change type of old_flags to int.
19873 * df-core.c (df_set_flags): Change return type to int. Change
19874 type of old_flags to int.
19875 (df_clear_flags): Likewise.
19876 * df-scan.c (df_def_record_1): Change 0 to VOIDmode.
19877 (df_get_conditional_uses): Likewise.
19878 * df.h (df_set_flags, df_clear_flags): Update declarations.
19879 * dwarf2out.c (struct indirect_string_node): Change type of form
19880 field to enum dwarf_form.
19881 (AT_string_form): Change return type to enum dwarf_form.
19882 * fixed-value.c (fixed_compare): Add cast to enum type.
19883 * fwprop.c (update_df): Change 0 to VOIDmode.
19884 * gensupport.c: Change 0 to UNKNOWN.
19885 * gimple.h (gimple_cond_code): Add cast to enum type.
19886 * haifa-sched.c (reemit_notes): Add cast to enum type.
19887 * hooks.c (hook_int_void_no_regs): Remove function.
19888 * hooks.h (hook_int_void_no_regs): Remove declaration.
19889 * optabs.c (expand_widen_pattern_expr): Change 0 to VOIDmode.
19890 * predict.c (combine_predictions_for_insn): Add casts to enum type.
19891 * real.c (real_arithmetic): Add cast to enum type.
19892 (real_compare): Likewise.
19893 * target.h (struct gcc_target): Change return type of
19894 branch_target_register_class to enum reg_class.
19895 * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Define as
19896 default_branch_target_register_class.
19897 * targhooks.c (default_branch_target_register_class): New function.
19898 * targhooks.h (default_branch_target_register_class): Declare.
19899 * tree-data-ref.c (print_direction_vector): Add cast to enum type.
19900 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Remove
19901 cast to int.
19902 * tree-vect-loop.c (vect_create_epilog_for_reduction): Change 0 to
19903 ERROR_MARK.
19904 * tree-vect-slp.c (vect_build_slp_tree): Change 0 to
19905 vect_uninitialized_def. Change 0 to ERROR_MARK.
19906 * tree-vect-stmts.c (supportable_widening_operation): Don't
19907 initialize icode1 and icode2.
19908 * tree-vectorizer.h (enum vect_def_type): Add vect_uninitialized_def.
19909 * config/sol2-c.c (cmn_err_length_specs): Change 0 to FMT_LEN_none
19910 and to STD_C89.
19911 (cmn_err_flag_specs): Change 0 to STD_C89.
19912 (cmn_err_char_table): Likewise.
19913 * config/arm/arm.c (get_arm_condition_code): Change type of code
19914 to enum arm_cond_code.
19915 (IWMMXT_BUILTIN): Change 0 to UNKNOWN.
19916 (IWMMXT_BUILTIN2): Likewise.
19917 (neon_builtin_type_bits): Don't define typedef.
19918 (neon_builtin_datum): Change type of bits field to int.
19919 (arm_expand_neon_args): Add cast to enum type.
19920 * config/ia64/ia64.c (tls_symbolic_operand_type): Change 0 to
19921 TLS_MODEL_NONE.
19922 * config/i386/i386.c (bdesc_multi_arg): Change 0 to UNKNOWN. Add
19923 casts to enum type.
19924 * config/mips/mips.c (LOONGSON_BUILTIN_ALIAS): Change 0 to
19925 MIPS_FP_COND_f.
19926 * config/mips/mips.md (jal_macro): Return enum constant.
19927 (single_insn): Likewise.
19928 * config/rs6000/rs6000.c (bdesc_altivec_preds): Change 0 to
19929 CODE_FOR_nothing.
19930 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
19931 casts to enum type.
19932 * config/s390/s390.c (s390_tune_flags): Change type to int.
19933 (s390_arch_flags): Likewise.
19934 (s390_handle_arch_option): Change flags field of struct pta to int.
19935 * config/s390/s390.h (s390_tune_flags): Update declaration.
19936 (s390_arch_flags): Likewise.
19937 * config/sh/sh.c (prepare_move_operands): Compare
19938 tls_symbolic_operand result with enum constant.
19939 (sh_reorg): Change PUT_MODE to PUT_REG_NOTE_KIND.
19940 (sh_expand_prologue): Add cast to enum type.
19941 (sh_expand_epilogue): Likewise.
19942 (tls_symbolic_operand): Change return type to enum tls_model.
19943 (fpscr_set_from_mem): Add cast to enum type.
19944 (legitimize_pic_address): Compare tls_symbolic_operand result with
19945 enum constant.
19946 (sh_target_reg_class): Change return type to enum reg_class.
19947 * config/sh/sh.h (OVERRIDE_OPTIONS): Change CPU_xxx to
19948 PROCESSOR_xxx.
19949 * config/sh/sh-protos.h (tls_symbolic_operand): Update declaration.
19950 * config/sparc/sparc.c (sparc_override_options): Add cast to enum type.
19951 * config/sparc/sparc.md (empty_delay_slot): Return enum constant.
19952 (pic, calls_alloca, calls_eh_return, leaf_function): Likewise.
19953 (delayed_branch, tls_call_delay): Likewise.
19954 (eligible_for_sibcall_delay): Likewise.
19955 (eligible_for_return_delay): Likewise.
19956 * config/spu/spu.c (expand_builtin_args): Add cast to enum type.
19957 (spu_expand_builtin_1): Likewise.
19958
19959 * c-typeck.c (convert_for_assignment): Issue -Wc++-compat warnings
19960 for all types of conversions.
19961 (output_init_element): Issue -Wc++-compat warning if needed when
19962 initializing a bitfield with enum type.
19963 * c-parser.c (c_parser_expression): Set original_type to
19964 original_type of right hand operand of comma operator.
19965
19966 2009-04-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19967
19968 * doc/c-tree.texi (Types, Functions, Expression trees): Fix
19969 grammar nits.
19970 * doc/cfg.texi (Maintaining the CFG, Liveness information): Likewise.
19971 * doc/cpp.texi (Standard Predefined Macros)
19972 (Implementation-defined behavior): Likewise.
19973 * doc/extend.texi (Function Attributes, Type Attributes): Likewise.
19974 * doc/gimple.texi (GIMPLE Exception Handling)
19975 (@code{GIMPLE_ASSIGN}): Likewise.
19976 * doc/install.texi (Prerequisites, Configuration, Specific): Likewise.
19977 * doc/invoke.texi (Warning Options, Optimize Options)
19978 (AVR Options, Darwin Options): Likewise.
19979 (Optimize Options): Reformulate -fwhole-program description.
19980 * doc/loop.texi (Lambda): Likewise.
19981 * doc/md.texi (Output Template, Define Constraints)
19982 (Standard Names, Insn Splitting): Likewise.
19983 * doc/options.texi (Option properties): Likewise.
19984 * doc/passes.texi (Tree-SSA passes): Likewise.
19985 * doc/rtl.texi (Side Effects, Assembler, Insns): Likewise.
19986 * doc/tm.texi (Register Classes, Old Constraints, Scalar Return)
19987 (File Names and DBX): Likewise.
19988 * doc/trouble.texi (Incompatibilities): Likewise.
19989
19990 2009-04-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
19991
19992 * spu.c (spu_machine_dependent_reorg): Make sure branch label on hint
19993 instruction is correct.
19994
19995 2009-04-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
19996
19997 Allow non-constant arguments to conversion intrinsics.
19998 * spu-protos.h (exp2_immediate_p, spu_gen_exp2): Declare.
19999 * predicates.md (spu_inv_exp2_operand, spu_exp2_operand): New.
20000 * spu.c (print_operand): Handle 'v' and 'w'.
20001 (exp2_immediate_p, spu_gen_exp2): Define.
20002 * spu-builtins.def (spu_convts, spu_convtu, spu_convtf_0,
20003 spu_convtf_1): Update parameter descriptions.
20004 * spu-builtins.md (spu_csflt, spu_cuflt, spu_cflts, spu_cfltu): Update.
20005 * constraints.md ('v', 'w'): New.
20006 * spu.md (UNSPEC_CSFLT, UNSPEC_CFLTS, UNSPEC_CUFLT, UNSPEC_CFLTU):
20007 Remove.
20008 (i2f, I2F): New define_mode_attr.
20009 (floatsisf2, floatv4siv4sf2, fix_truncsfsi2, fix_truncv4sfv4si2,
20010 floatunssisf2, floatunsv4siv4sf2, fixuns_truncsfsi2,
20011 fixuns_truncv4sfv4si2): Update to use mode attribute.
20012 (float<mode><i2f>2_mul, float<mode><i2f>2_div,
20013 fix_trunc<mode><f2i>2_mul, floatuns<mode><i2f>2_mul,
20014 floatuns<mode><i2f>2_div, fixuns_trunc<mode><f2i>2_mul): New
20015 patterns for combine.
20016
20017 2009-04-27 Steven Bosscher <steven@gcc.gnu.org>
20018
20019 * dbgcnt.def (cprop1, cprop2, gcse, jump_bypass): Remove
20020 (cprop, hoist, pre, store_motion): New debug counters.
20021 * tree-pass.h (pass_tracer): Move to list of gimple passes, it
20022 is not an RTL pass anymore.
20023 (pass_profiling): Remove extern decl for pass removed in 2005.
20024 (pass_gcse, pass_jump_bypass): Remove.
20025 * final.c (rest_of_clean_state): Set flag_rerun_cse_after_global_opts
20026 to 0 for clean state.
20027 * toplev.h (flag_rerun_cse_after_global_opts): Add extern declaration.
20028 * cse.c (gate_handle_cse_after_global_opts,
20029 rest_of_handle_cse_after_global_opts): New functions.
20030 (pass_cse_after_global_opts): New pass, does local CSE.
20031 * timevar.def (TV_GCSE, TV_CPROP1, TV_CPROP2, TV_BYPASS): Remove.
20032 (TV_CPROP): New timevar.
20033 * gcse.c (flag_rerun_cse_after_global_opts): New global variable.
20034 (run_jump_opt_after_gcse, max_gcse_regno): Remove global vars.
20035 (gcse_main, recompute_all_luids): Remove.
20036 (compute_hash_table_work): Call max_reg_num instead of reading
20037 max_gcse_regno.
20038 (cprop_jump): Don't set run_jump_opt_after_gcse.
20039 (constprop_register): Always allow to alter jumps.
20040 (cprop_insn): Likewise.
20041 (do_local_cprop): Likewise.
20042 (local_cprop_pass): Likewise. Return non-zero if something changed.
20043 (cprop): Remove function, fold interesting bits into one_cprop_pass.
20044 (find_implicit_sets): Add note about missed optimization opportunity.
20045 (one_cprop_pass): Rewrite to be "the" CPROP pass, called from the
20046 pass_rtl_cprop execute function.
20047 Don't bother tracking the pass number, each pass gets its own dumpfile
20048 now anyway.
20049 Always allow to alter jumpsand bypass jumps.
20050 (bypass_block): Don't ignore regno >= max_gcse_regno, find_bypass_set
20051 will just find no suitable set.
20052 (pre_edge_insert): Fix dumping, this function is for PRE only.
20053 (one_pre_gcse_pass): Rewrite to be "the" PRE pass, called from the
20054 pass_rtl_pre execute function.
20055 (hoist_code): Return non-zero if something changed. Keep track of
20056 substitutions and insertions for statistics gathering similar to PRE.
20057 (one_code_hoisting_pass): Rewrite to be "the" code hoisting pass,
20058 called from the pass_rtl_hoist execute function. Show pass statistics.
20059 (compute_store_table): Use max_reg_num directly instead of using the
20060 formerly global max_gcse_regno.
20061 (build_store_vectors): Likewise.
20062 (replace_store_insn): Fix dumping.
20063 (store_motion): Rename to ...
20064 (one_store_motion_pass): ... this. Rewrite to be "the" STORE_MOTION
20065 pass, called from the pass_rtl_store_motion execute function. Keep
20066 track of substitutions and insertions for statistics gathering similar
20067 to PRE.
20068 (bypass_jumps): Remove, fold interesting bits into ...
20069 (one_cprop_pass): ... this. Rewrite to be "the" CPROP pass, called
20070 from the pass_rtl_cprop execute function.
20071 (gate_handle_jump_bypass, rest_of_handle_jump_bypass,
20072 pass_jump_bypass): Remove.
20073 (gate_handle_gcse, rest_of_handle_gcse): Remove.
20074 (gate_rtl_cprop, execute_rtl_cprop, pass_rtl_cprop): New.
20075 (gate_rtl_pre, execute_rtl_pre, pass_rtl_pre): New.
20076 (gate_rtl_hoist, execute_rtl_hoist, pass_rtl_hoist): New.
20077 (gate_rtl_store_motion, execute_rtl_store_motion,
20078 pass_rtl_store_motion): New.
20079 * common.opt: Remove flag_cse_skip_blocks, adjust documentation to
20080 make it clear that -fcse-skip-blocks is a no-op for backward compat.
20081 * passes.c (init_optimization_passes): Remove pass_gcse and
20082 pass_jump_bypass. Schedule cprop, pre, hoist, cprop, store_motion,
20083 and cse_after_global_opts in place of pass_gcse. Schedule cprop
20084 instead of pass_jump_bypass.
20085
20086 2009-04-27 Richard Guenther <rguenther@suse.de>
20087
20088 PR middle-end/39928
20089 * gimplify.c (gimplify_expr): If we are required to create
20090 a temporary make sure it ends up as register.
20091
20092 2009-04-27 H.J. Lu <hongjiu.lu@intel.com>
20093
20094 PR target/39903
20095 * config/i386/i386.c (construct_container): Don't call
20096 gen_reg_or_parallel with BLKmode on X86_64_SSE_CLASS,
20097 X86_64_SSESF_CLASS and X86_64_SSEDF_CLASS.
20098
20099 2009-04-27 Michael Matz <matz@suse.de>
20100
20101 * ssaexpand.h (struct ssaexpand): Member 'values' is a bitmap.
20102 (get_gimple_for_ssa_name): Adjust, lookup using SSA_NAME_DEF_STMT.
20103 * tree-ssa-live.h: (find_replaceable_exprs): Return a bitmap.
20104 (dump_replaceable_exprs): Take a bitmap.
20105 * cfgexpand.c (gimple_cond_pred_to_tree): Handle bitmap instead of
20106 array.
20107 (expand_gimple_basic_block): Likewise.
20108 * tree-ssa-ter.c (struct temp_expr_table_d): Make
20109 replaceable_expressions member a bitmap.
20110 (free_temp_expr_table): Pass back and deal with bitmap, not gimple*.
20111 (mark_replaceable): Likewise.
20112 (find_replaceable_in_bb, dump_replaceable_exprs): Likewise.
20113 * tree-outof-ssa.c (remove_ssa_form): 'values' is a bitmap.
20114
20115 2009-04-27 Richard Guenther <rguenther@suse.de>
20116
20117 * tree-cfg.c (remove_useless_stmts): Verify stmts afterwards.
20118 (verify_stmts): Dispatch to gimple/type verification code.
20119 * tree-inline.c (remap_gimple_op_r): Work around C++ FE
20120 issue with call argument types.
20121
20122 2009-04-27 Michael Matz <matz@suse.de>
20123
20124 * tree-into-ssa.c (regs_to_rename, mem_syms_to_rename): Remove.
20125 (init_update_ssa, delete_update_ssa, update_ssa): Remove references
20126 to above.
20127
20128 2009-04-27 Richard Sandiford <rdsandiford@googlemail.com>
20129 Eric Botcazou <ebotcazou@adacore.com>
20130
20131 * resource.c (find_basic_block): Use BLOCK_FOR_INSN to look up
20132 a label's basic block.
20133 (mark_target_live_regs): Tidy and rework obsolete comments.
20134 Change back DF problem to LIVE. If a label starts a basic block,
20135 assume that all registers that used to be live then still are.
20136 (init_resource_info): If a label starts a basic block, set its
20137 BLOCK_FOR_INSN accordingly.
20138 (fini_resource_info): Undo the setting of BLOCK_FOR_INSN.
20139
20140 2009-04-27 Richard Guenther <rguenther@suse.de>
20141
20142 * tree-flow-inline.h (function_ann): Remove.
20143 (get_function_ann): Likewise.
20144 * tree-dfa.c (create_function_ann): Remove.
20145 * tree-flow.h (struct static_var_ann_d): Remove.
20146 (struct function_ann_d): Likewise.
20147 (union tree_ann_d): Remove fdecl member.
20148 (function_ann_t): Remove.
20149 (function_ann, get_function_ann, create_function_ann): Remove
20150 declarations.
20151
20152 2009-04-27 Uros Bizjak <ubizjak@gmail.com>
20153
20154 * config/alpha/alpha.c (code_for_builtin): Declare as enum insn_code.
20155
20156 2009-04-27 Jan Hubicka <jh@suse.cz>
20157
20158 * ipa-pure-const.c (struct funct_state_d): New fields
20159 state_previously_known, looping_previously_known; remove
20160 state_set_in_source.
20161 (analyze_function): Use new fields.
20162 (propagate): Avoid assumption that state_set_in_source imply
20163 nonlooping.
20164
20165 * tree-ssa-loop-niter.c (finite_loop_p): New function.
20166 * tree-ssa-loop-ivcanon.c (empty_loop_p): Use it.
20167 * cfgloop.h (finite_loop_p): Declare.
20168
20169 2009-04-26 Michael Matz <matz@suse.de>
20170
20171 * tree-flow.h (tree_ann_common_d): Remove aux and value_handle members.
20172
20173 2009-04-26 Michael Matz <matz@suse.de>
20174
20175 * tree-pass.h (pass_del_ssa, pass_mark_used_blocks,
20176 pass_free_cfg_annotations, pass_free_datastructures): Remove decls.
20177 * gimple-low.c (mark_blocks_with_used_vars, mark_used_blocks,
20178 pass_mark_used_blocks): Remove.
20179 * tree-optimize.c (pass_free_datastructures,
20180 execute_free_cfg_annotations, pass_free_cfg_annotations): Remove.
20181 * passes.c (init_optimization_passes): Don't call
20182 pass_mark_used_blocks, remove dead code.
20183
20184 2009-04-26 H.J. Lu <hongjiu.lu@intel.com>
20185
20186 * tree-outof-ssa.c (rewrite_trees): Add ATTRIBUTE_UNUSED.
20187 * tree-ssa-live.h (register_ssa_partition): Likewise.
20188
20189 2009-04-26 Michael Matz <matz@suse.de>
20190
20191 Expand from SSA.
20192 * builtins.c (fold_builtin_next_arg): Handle SSA names.
20193 * tree-ssa-copyrename.c (rename_ssa_copies): Use ssa_name() directly.
20194 * tree-ssa-coalesce.c (create_outofssa_var_map): Mark only useful
20195 SSA names.
20196 (compare_pairs): Swap cost comparison.
20197 (coalesce_ssa_name): Don't use change_partition_var.
20198 * tree-nrv.c (struct nrv_data): Add modified member.
20199 (finalize_nrv_r): Set it.
20200 (tree_nrv): Use it to update statements.
20201 (pass_nrv): Require PROP_ssa.
20202 * tree-mudflap.c (mf_decl_cache_locals,
20203 mf_build_check_statement_for): Use make_rename_temp.
20204 (pass_mudflap_2): Require PROP_ssa, run ssa update at finish.
20205 * alias.c (find_base_decl): Handle SSA names.
20206 * emit-rtl (set_reg_attrs_for_parm): Make non-static.
20207 (component_ref_for_mem_expr): Don't leak SSA names into RTL.
20208 * rtl.h (set_reg_attrs_for_parm): Declare.
20209 * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Rename
20210 to "optimized", remove unused locals at finish.
20211 (execute_free_datastructures): Make global, call
20212 delete_tree_cfg_annotations.
20213 (execute_free_cfg_annotations): Don't call
20214 delete_tree_cfg_annotations.
20215
20216 * ssaexpand.h: New file.
20217 * expr.c (toplevel): Include ssaexpand.h.
20218 (expand_assignment): Handle SSA names the same as register variables.
20219 (expand_expr_real_1): Expand SSA names.
20220 * cfgexpand.c (toplevel): Include ssaexpand.h.
20221 (SA): New global variable.
20222 (gimple_cond_pred_to_tree): Fold TERed comparisons into predicates.
20223 (SSAVAR): New macro.
20224 (set_rtl): New helper function.
20225 (add_stack_var): Deal with SSA names, use set_rtl.
20226 (expand_one_stack_var_at): Likewise.
20227 (expand_one_stack_var): Deal with SSA names.
20228 (stack_var_size_cmp): Use code (SSA_NAME / DECL) as tie breaker
20229 before unique numbers.
20230 (expand_stack_vars): Use set_rtl.
20231 (expand_one_var): Accept SSA names, add asserts for them, feed them
20232 to above subroutines.
20233 (expand_used_vars): Expand all partitions (without default defs),
20234 then only the local decls (ignoring those expanded already).
20235 (expand_gimple_cond): Remove edges when jumpif() expands an
20236 unconditional jump.
20237 (expand_gimple_basic_block): Don't clear EDGE_EXECUTABLE here,
20238 or remove abnormal edges. Ignore insns setting the LHS of a TERed
20239 SSA name.
20240 (gimple_expand_cfg): Call into rewrite_out_of_ssa, initialize
20241 members of SA; deal with PARM_DECL partitions here; expand
20242 all PHI nodes, free tree datastructures and SA. Commit instructions
20243 on edges, clear EDGE_EXECUTABLE and remove abnormal edges here.
20244 (pass_expand): Require and destroy PROP_ssa, verify SSA form, flow
20245 info and statements at start, collect garbage at finish.
20246 * tree-ssa-live.h (struct _var_map): Remove partition_to_var member.
20247 (VAR_ANN_PARTITION) Remove.
20248 (change_partition_var): Don't declare.
20249 (partition_to_var): Always return SSA names.
20250 (var_to_partition): Only accept SSA names.
20251 (register_ssa_partition): Only check argument.
20252 * tree-ssa-live.c (init_var_map): Don't allocate partition_to_var
20253 member.
20254 (delete_var_map): Don't free it.
20255 (var_union): Only accept SSA names, simplify.
20256 (partition_view_init): Mark only useful SSA names as used.
20257 (partition_view_fini): Only deal with SSA names.
20258 (change_partition_var): Remove.
20259 (dump_var_map): Use ssa_name instead of partition_to_var member.
20260 * tree-ssa.c (delete_tree_ssa): Don't remove PHI nodes on RTL
20261 basic blocks.
20262 * tree-outof-ssa.c (toplevel): Include ssaexpand.h and expr.h.
20263 (struct _elim_graph): New member const_dests; nodes member vector of
20264 ints.
20265 (set_location_for_edge): New static helper.
20266 (create_temp): Remove.
20267 (insert_partition_copy_on_edge, insert_part_to_rtx_on_edge,
20268 insert_value_copy_on_edge, insert_rtx_to_part_on_edge): New functions.
20269 (new_elim_graph): Allocate const_dests member.
20270 (clean_elim_graph): Truncate const_dests member.
20271 (delete_elim_graph): Free const_dests member.
20272 (elim_graph_size): Adapt to new type of nodes member.
20273 (elim_graph_add_node): Likewise.
20274 (eliminate_name): Likewise.
20275 (eliminate_build): Don't take basic block argument, deal only with
20276 partition numbers, not variables.
20277 (get_temp_reg): New static helper.
20278 (elim_create): Use it, deal with RTL temporaries instead of trees.
20279 (eliminate_phi): Adjust all calls to new signature.
20280 (assign_vars, replace_use_variable, replace_def_variable): Remove.
20281 (rewrite_trees): Only do checking.
20282 (edge_leader, stmt_list, leader_has_match, leader_match): Remove.
20283 (same_stmt_list_p, identical_copies_p, identical_stmt_lists_p,
20284 init_analyze_edges_for_bb, fini_analyze_edges_for_bb,
20285 contains_tree_r, MAX_STMTS_IN_LATCH,
20286 process_single_block_loop_latch, analyze_edges_for_bb,
20287 perform_edge_inserts): Remove.
20288 (expand_phi_nodes): New global function.
20289 (remove_ssa_form): Take ssaexpand parameter. Don't call removed
20290 functions, initialize new parameter, remember partitions having a
20291 default def.
20292 (finish_out_of_ssa): New global function.
20293 (rewrite_out_of_ssa): Make global. Adjust call to remove_ssa_form,
20294 don't reset in_ssa_p here, don't disable TER when mudflap.
20295 (pass_del_ssa): Remove.
20296 * tree-flow.h (struct var_ann_d): Remove out_of_ssa_tag and
20297 partition members.
20298 (execute_free_datastructures): Declare.
20299 * Makefile.in (SSAEXPAND_H): New variable.
20300 (tree-outof-ssa.o, expr.o, cfgexpand.o): Depend on SSAEXPAND_H.
20301 * basic-block.h (commit_one_edge_insertion): Declare.
20302 * passes.c (init_optimization_passes): Move pass_nrv and
20303 pass_mudflap2 before pass_cleanup_cfg_post_optimizing, remove
20304 pass_del_ssa, pass_free_datastructures, pass_free_cfg_annotations.
20305 * cfgrtl.c (commit_one_edge_insertion): Make global, don't declare.
20306 (redirect_branch_edge): Deal with super block when expanding, split
20307 out jump patching itself into ...
20308 (patch_jump_insn): ... here, new static helper.
20309
20310 2009-04-26 Michael Matz <matz@suse.de>
20311
20312 * tree-ssa-copyrename.c (rename_ssa_copies): Don't iterate
20313 beyond num_ssa_names.
20314 * tree-ssa-ter.c (free_temp_expr_table): Likewise.
20315 * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
20316
20317 2009-04-26 Jakub Jelinek <jakub@redhat.com>
20318
20319 PR inline-asm/39543
20320 * fwprop.c (forward_propagate_asm): New function.
20321 (forward_propagate_and_simplify): Propagate also into __asm, if it
20322 doesn't increase the number of referenced registers.
20323
20324 PR c/39889
20325 * stmt.c (warn_if_unused_value): Look through NON_LVALUE_EXPR.
20326
20327 2009-04-26 Jakub Jelinek <jakub@redhat.com>
20328
20329 * tree-nested.c (get_nonlocal_vla_type): If not optimizing, call
20330 note_nonlocal_vla_type for nonlocal VLAs.
20331 (note_nonlocal_vla_type, note_nonlocal_block_vlas,
20332 contains_remapped_vars, remap_vla_decls): New functions.
20333 (convert_nonlocal_reference_stmt): If not optimizing, call
20334 note_nonlocal_block_vlas on GIMPLE_BIND block vars.
20335 (nesting_copy_decl): Return {VAR,PARM,RESULT}_DECL unmodified
20336 if it wasn't found in var_map.
20337 (finalize_nesting_tree_1): Call remap_vla_decls. If outermost
20338 GIMPLE_BIND doesn't have gimple_bind_block, chain debug_var_chain
20339 to BLOCK_VARS (DECL_INITIAL (root->context)) instead of calling
20340 declare_vars.
20341 * gimplify.c (nonlocal_vlas): New variable.
20342 (gimplify_var_or_parm_decl): Add debug VAR_DECLs for non-local
20343 referenced VLAs.
20344 (gimplify_body): Create and destroy nonlocal_vlas.
20345
20346 * dwarf2out.c (loc_descr_plus_const): New function.
20347 (build_cfa_aligned_loc, tls_mem_loc_descriptor,
20348 mem_loc_descriptor, loc_descriptor_from_tree_1,
20349 descr_info_loc, gen_variable_die): Use it.
20350
20351 * tree.h (DECL_BY_REFERENCE): Note that it is also valid for
20352 !TREE_STATIC VAR_DECLs.
20353 * dwarf2out.c (loc_by_reference, gen_decl_die): Handle
20354 DECL_BY_REFERENCE on !TREE_STATIC VAR_DECLs.
20355 (gen_variable_die): Likewise. Don't look at TREE_PRIVATE if
20356 DECL_BY_REFERENCE is valid.
20357 * dbxout.c (DECL_ACCESSIBILITY_CHAR): Don't look at TREE_PRIVATE
20358 for PARM_DECLs, RESULT_DECLs or !TREE_STATIC VAR_DECLs.
20359 * tree-nested.c (get_nonlocal_debug_decl, get_local_debug_decl):
20360 Copy DECL_BY_REFERENCE.
20361 (struct nesting_copy_body_data): New type.
20362 (nesting_copy_decl): New function.
20363 (finalize_nesting_tree_1): Remap types of debug_var_chain variables,
20364 if they have variable length.
20365
20366 2009-04-26 Michael Matz <matz@suse.de>
20367
20368 * tree-sra.c (sra_build_assignment): Don't use into_ssa mode,
20369 mark new temporaries for renaming.
20370
20371 2009-04-26 Joseph Myers <joseph@codesourcery.com>
20372
20373 PR c/39581
20374 * c-decl.c (global_bindings_p): Return negative value.
20375 (c_variable_size): New. Based on variable_size from
20376 stor-layout.c.
20377 (grokdeclarator): Call c_variable_size not variable_size.
20378
20379 2009-04-26 Uros Bizjak <ubizjak@gmail.com>
20380
20381 * config/i386/i386.c (print_operand) ['z']: Fix typo.
20382
20383 2009-04-26 Kai Tietz <kai.tietz@onevision.com>
20384
20385 * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR):
20386 Redefine it to just use mingw/include.
20387 (ASM_SPEC): Rules for -m32 and -m64.
20388 (LINK_SPEC): Use Likewise.
20389 (SPEC_32): New define.
20390 (SPEC_64): Likewise.
20391 (SUB_LINK_SPEC): Likewise.
20392 (MULTILIB_DEFAULTS): New define.
20393 * config/i386/t-mingw-w64 (MULTILIB_OPTIONS):
20394 Add multilib options.
20395 (MULTILIB_DIRNAMES): Likewise.
20396 (MULTILIB_OSDIRNAMES): Likewise.
20397 (LIBGCC): Likewise.
20398 (INSTALL_LIBGCC): Likewise.
20399
20400 2009-04-26 Joseph Myers <joseph@codesourcery.com>
20401
20402 PR c/39556
20403 * c-tree.h (enum c_inline_static_type): New.
20404 (record_inline_static): Declare.
20405 * c-decl.c (struct c_inline_static, c_inline_statics,
20406 record_inline_static, check_inline_statics): New.
20407 (pop_file_scope): Call check_inline_statics.
20408 (start_decl): Call record_inline_static instead of pedwarning
20409 directly for static in inline function.
20410 * c-typeck.c (build_external_ref): Call record_inline_static
20411 instead of pedwarning directly for static referenced in inline
20412 function.
20413
20414 2009-04-26 Steven Bosscher <steven@gcc.gnu.org>
20415
20416 * df-scan.c (df_insn_rescan): Salvage insn's LUID if the insn is
20417 not new but only being rescanned.
20418 * gcse.c (uid_cuid, max_uid, INSN_CUID, max_cuid, struct reg_set,
20419 reg_set_table, REG_SET_TABLE_SLOP, reg_set_in_block,
20420 alloc_reg_set_mem, free_reg_set_mem, record_one_set,
20421 record_set_info, compute_set, grealloc): Remove.
20422 (recompute_all_luids): New function.
20423 (gcse_main): Don't compute sets, and don't do related memory
20424 allocations/free-ing. If something changed before the end of the
20425 pass, update LUIDs using recompute_all_luids.
20426 (alloc_gcse_mem): Don't compute LUIDs. Don't allocate reg_set memory.
20427 (free_gcse_mem): Don't free it either.
20428 (oprs_unchanged_p, load_killed_in_block, record_last_reg_set_info):
20429 Use the df insn LUIDs.
20430 (load_killed_in_block): Likewise.
20431 (compute_hash_table_work): Don't compute reg_set_in_block.
20432 (compute_transp): Use DF_REG_DEF_CHAINs.
20433 (local_cprop_pass): Don't use compute_sets and related functions.
20434 (one_cprop_pass, pre_gcse, one_pre_gcse_pass, one_code_hoisting_pass):
20435 Use get_max_uid() instead of max_cuid.
20436 (insert_insn_end_basic_block, pre_insert_copy_insn,
20437 update_ld_motion_stores): Don't try to
20438 keep reg_set tables up to date.
20439 (pre_insert_copies): Use df insn LUIDs.
20440 (sbitmap pre_redundant_insns): Replace with uses of INSN_DELETED_P.
20441 (reg_set_info): Don't use extra bitmap argument.
20442 (compute_store_table): Don't compute reg_set_in_block. Use DF scan
20443 information to compute regs_set_in_block.
20444 (free_store_memory, store_motion): Don't nullify reg_set_in_block.
20445 (bypass_jumps): Don't use compute_sets and friends.
20446
20447 2009-04-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20448
20449 PR testsuite/39710
20450 * opts.c (undocumented_msg): Do not leave blank even with
20451 ENABLE_CHECKING.
20452
20453 2009-04-25 Joseph Myers <joseph@codesourcery.com>
20454
20455 * c-decl.c (build_enumerator): Allow values folding to integer
20456 constants but not integer constant expressions with a pedwarn if
20457 pedantic.
20458
20459 2009-04-25 Joseph Myers <joseph@codesourcery.com>
20460
20461 PR c/39582
20462 * c-typeck.c (c_expr_sizeof_type): Create a C_MAYBE_CONST_EXPR
20463 with non-null C_MAYBE_CONST_EXPR_PRE if size of a variable-length
20464 type is an integer constant.
20465
20466 2009-04-25 Uros Bizjak <ubizjak@gmail.com>
20467
20468 PR target/39897
20469 * config/i386/i386.c (print_operand) ['z']: Revert handling of
20470 HImode operands.
20471
20472 2009-04-25 Joseph Myers <joseph@codesourcery.com>
20473
20474 PR c/39564
20475 * c-decl.c (grokdeclarator): Diagnose declarations of functions
20476 with variably modified return type and no storage class
20477 specifiers, except for the case of nested functions. Distinguish
20478 extern declarations of functions with variably modified return
20479 types from those of objects with variably modified types.
20480
20481 2009-04-25 Jan Hubicka <jh@suse.cz>
20482
20483 * tree.c (list_equal_p): New function.
20484 * tree.h (list_equal_p): Declare.
20485 * coretypes.h (edge_def, edge, const_edge, basic_block_def
20486 basic_block_def, basic_block, const_basic_block): New.
20487 * tree-eh.c (make_eh_edge): EH edges are not abnormal.
20488 (redirect_eh_edge): New function.
20489 (make_eh_edge_update_phi): EH edges are not abnormal.
20490 * except.c: Include tree-flow.h.
20491 (list_match): New function.
20492 (eh_region_replaceable_by_p): New function.
20493 (replace_region): New function.
20494 (hash_type_list): New function.
20495 (hash_eh_region): New function.
20496 (eh_regions_equal_p): New function.
20497 (merge_peers): New function.
20498 (remove_unreachable_regions): Verify EH tree when checking;
20499 merge peers.
20500 (copy_eh_region_1): New function.
20501 (copy_eh_region): New function.
20502 (push_reachable_handler): New function.
20503 (build_post_landing_pads, dw2_build_landing_pads): Be ready for
20504 regions without label but with live RESX.
20505 * except.h (redirect_eh_edge_to_label): New.
20506 * tree-flow.h (redirect_eh_edge): New.
20507 * coretypes.h (edge_def, edge, const_edge, basic_block_def
20508 basic_block_def, basic_block, const_basic_block): Remove.
20509 * Makefile.in (except.o): Add dependency on tree-flow.h
20510 * tree-cfg.c (gimple_redirect_edge_and_branch): Handle EH edges.
20511 * basic-block.h (edge, const_edge, basic_block, const_basic_block):
20512 Remove.
20513
20514 2009-04-25 Eric Botcazou <ebotcazou@adacore.com>
20515
20516 PR bootstrap/39645
20517 * config/sparc/sparc.c (sparc_gimplify_va_arg): Set TREE_ADDRESSABLE
20518 on the destination of memcpy.
20519
20520 2009-04-25 Paolo Bonzini <bonzini@gnu.org>
20521
20522 * doc/tm.texi (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
20523 REGNO_MODE_OK_FOR_REG_BASE_P, REGNO_MODE_CODE_OK_FOR_BASE_P,
20524 REGNO_OK_FOR_INDEX_P): Mention strict/nonstrict difference.
20525
20526 2009-04-25 Jan Hubicka <jh@suse.cz>
20527
20528 * tree-eh.c (tree_remove_unreachable_handlers): Handle shared labels.
20529 (tree_empty_eh_handler_p): Allow non-EH predecestors; allow region
20530 to be reached by different label than left.
20531 (update_eh_edges): Update comment; remove edge_to_remove if possible
20532 and return true if suceeded.
20533 (cleanup_empty_eh): Accept sharing map; handle shared regions.
20534 (cleanup_eh): Compute sharing map.
20535 * except.c (remove_eh_handler_and_replace): Add argument if we should
20536 update regions.
20537 (remove_unreachable_regions): Update for label sharing.
20538 (label_to_region_map): Likewise.
20539 (get_next_region_sharing_label): New function.
20540 (remove_eh_handler_and_replace): Add update_catch_try parameter; update
20541 prev_try pointers.
20542 (remove_eh_handler): Update.
20543 (remove_eh_region_and_replace_by_outer_of): New function.
20544 * except.h (struct eh_region): Add next_region_sharing_label.
20545 (remove_eh_region_and_replace_by_outer_of,
20546 get_next_region_sharing_label): Declare.
20547 * tree-cfgcleanup.c (tree_forwarder_block_p): Simplify.
20548
20549 2009-04-25 Jan Hubicka <jh@suse.cz>
20550
20551 * tree-cfg.c (split_critical_edges): Split also edges where we can't
20552 insert code even if they are not critical.
20553
20554 2009-04-25 Jan Hubicka <jh@suse.cz>
20555
20556 * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
20557 (gimple_can_remove_branch_p): EH edges won't remove branch by
20558 redirection.
20559 * tree-inline.c (update_ssa_across_abnormal_edges): Do handle
20560 updating of non-abnormal EH edges.
20561 * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
20562 (gimple_can_remove_branch_p): EH edges are unremovable by redirection.
20563 (split_critical_edges): Split also edges where emitting code on them
20564 will lead to splitting later.
20565
20566 2009-04-25 Uros Bizjak <ubizjak@gmail.com>
20567 H.J. Lu <hongjiu.lu@intel.com>
20568
20569 PR target/39590
20570 * configure.ac (HAVE_AS_IX86_FILDQ): On x86 targets check whether
20571 the configured assembler supports fildq and fistpq mnemonics.
20572 (HAVE_AS_IX86_FILDS): Rename from HAVE_GAS_FILDS_FISTS.
20573 * configure: Regenerated.
20574 * config.in: Ditto.
20575
20576 * config/i386/i386.c (print_operand): Handle 'Z'.
20577 ['z']: Remove handling of special fild/fist suffixes.
20578 (output_fix_trunc): Use '%Z' to output suffix of fist{,p,tp} insn.
20579 * config/i386/i386.md (*floathi<mode>2_i387): Use '%Z' to output
20580 suffix of fild insn.
20581 (*floatsi<mode>2_vector_mixed): Ditto.
20582 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Ditto.
20583 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Ditto.
20584 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
20585 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387): Ditto.
20586 * config/i386/gas.h (GAS_MNEMONICS): Remove.
20587
20588 2009-04-25 Ben Elliston <bje@au.ibm.com>
20589
20590 * genrecog.c (validate_pattern): Do not warn for VOIDmode CALLs as
20591 the source of a set operation.
20592
20593 2009-04-25 Anatoly Sokolov <aesok@post.ru>
20594
20595 * target.h (struct gcc_target): Add case_values_threshold field.
20596 * target-def.h (TARGET_CASE_VALUES_THRESHOLD): New.
20597 (TARGET_INITIALIZER): Use TARGET_CASE_VALUES_THRESHOLD.
20598 * targhooks.c (default_case_values_threshold): New function.
20599 * targhooks.h (default_case_values_threshold): Declare function.
20600 * stmt.c (expand_case): Use case_values_threshold target hook.
20601 * expr.h (case_values_threshold): Remove declartation.
20602 * expr.c (case_values_threshold): Remove function.
20603 * doc/tm.texi (CASE_VALUES_THRESHOLD): Revise documentation.
20604
20605 * config/avr/avr.h (CASE_VALUES_THRESHOLD): Remove macro.
20606 * config/avr/avr.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
20607 (avr_case_values_threshold): Declare as static.
20608 * config/avr/avr-protos.h (avr_case_values_threshold): Remove.
20609
20610 * config/avr/mn10300.h (CASE_VALUES_THRESHOLD): Remove macro.
20611 * config/avr/mn10300.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
20612 (mn10300_case_values_threshold): New function.
20613
20614 2009-04-24 H.J. Lu <hongjiu.lu@intel.com>
20615
20616 * ira.c (setup_cover_and_important_classes): Add enum cast.
20617
20618 2009-04-24 Vladimir Makarov <vmakarov@redhat.com>
20619
20620 * genpreds.c (write_enum_constraint_num): Output definition of
20621 CONSTRAINT_NUM_DEFINED_P macro.
20622 * ira.c (setup_cover_and_important_classes): Use
20623 CONSTRAINT_NUM_DEFINED_P instead of CONSTRAINT__LIMIT in #ifdef.
20624
20625 2009-04-24 DJ Delorie <dj@redhat.com>
20626
20627 * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Test
20628 __SH2A_SINGLE_ONLY__ also.
20629
20630 2009-04-24 Steve Ellcey <sje@cup.hp.com>
20631
20632 * config/ia64/ia64.md (movfs_internal): Allow flt constants.
20633 (movdf_internal): Ditto.
20634 * config/ia64/ia64.c (ia64_legitimate_constant_p): Allow
20635 SFmode and DFmode constants.
20636 (ia64_print_operand): Add 'G' format for printing
20637 floating point constants.
20638
20639 2009-04-24 Richard Guenther <rguenther@suse.de>
20640
20641 * tree-vrp.c (extract_range_from_binary_expr): Handle overflow
20642 from unsigned additions.
20643
20644 2009-04-24 Joseph Myers <joseph@codesourcery.com>
20645
20646 * c-typeck.c (set_init_index): Allow array designators that are
20647 not integer constant expressions with a pedwarn if pedantic.
20648
20649 2009-04-24 Bernd Schmidt <bernd.schmidt@analog.com>
20650
20651 * simplify-rtx.c (simplify_binary_operation_1, case AND): Result is
20652 zero if no overlap in nonzero bits between the operands.
20653
20654 2009-04-24 Ian Lance Taylor <iant@google.com>
20655
20656 * combine.c (record_value_for_reg): Change 0 to VOIDmode, twice.
20657 (record_dead_and_set_regs): Likewise.
20658 * df.h (struct df_mw_hardreg): Change flags field to int.
20659 (struct df_base_ref): Likewise.
20660 (struct df): Change changeable_flags field to int.
20661 * df-scan.c (df_defs_record): Change clobber_flags to int.
20662 * dwarf2.h (enum dwarf_tag): Make lo_user and hi_user values enum
20663 constants rather than #define macros.
20664 (enum dwarf_attribute, enum dwarf_location_atom): Likewise.
20665 (enum dwarf_type, enum dwarf_endianity_encoding): Likewise.
20666 (enum dwarf_calling_convention): Likewise.
20667 (enum dwarf_line_number_x_ops): Likewise.
20668 (enum dwarf_call_frame_info): Likewise.
20669 (enum dwarf_source_language): Likewise.
20670 * dwarf2out.c (int_loc_descriptor): Add cast to enum type.
20671 (add_calling_convention_attribute): Likewise.
20672 * fold-const.c (fold_undefer_overflow_warnings): Add cast to enum type.
20673 (combine_comparisons): Change compcode to int. Add cast to enum type.
20674 * genrecog.c (maybe_both_true_2): Change c to int.
20675 (write_switch): Likewise. Add cast to enum type.
20676 * gimplify.c (gimplify_omp_for): Handle return values from
20677 gimplify_expr using MIN rather than bitwise or.
20678 (gimplify_expr): Add cast to enum type.
20679 * ipa-prop.c (update_jump_functions_after_inlining): Change
20680 IPA_BOTTOM to IPA_JF_UNKNOWN.
20681 * ira.c (setup_class_subset_and_memory_move_costs): Change mode to int.
20682 Add casts to enum type.
20683 (setup_cover_and_important_classes): Change cl to int. Add casts
20684 to enum type.
20685 (setup_class_translate): Change cl and mode to int.
20686 (ira_init_once): Change mode to int.
20687 (free_register_move_costs): Likewise.
20688 (setup_prohibited_mode_move_regs): Add casts to enum type.
20689 * langhooks.c (add_builtin_function_common): Rework assertion that
20690 value fits bitfield.
20691 * mcf.c (add_fixup_edge): Change type parameter to edge_type.
20692 * omega.c (omega_do_elimination): Avoid math on enum types.
20693 * optabs.c (expand_vec_shift_expr): Remove casts to int.
20694 * opts.c (set_debug_level): Change 2 to enum constant. Use new
20695 int local to handle integral_argment value.
20696 * regmove.c (try_auto_increment): Change PUT_MODE to
20697 PUT_REG_NOTE_KIND.
20698 * reload.c (push_secondary_reload): Add casts to enum type.
20699 (secondary_reload_class, find_valid_class): Likewise.
20700 * reload1.c (emit_input_reload_insns): Likewise.
20701 * rtl.h (NOTE_VAR_LOCATION_STATUS): Likewise.
20702 * sel-sched.c (init_hard_regs_data): Change cur_mode to int.
20703 * sel-sched-ir.c (hash_with_unspec_callback): Change 0 to enum
20704 constant.
20705 * tree.c (build_common_builtin_nodes): Add casts to enum type.
20706 * tree-complex.c (complex_lattice_t): Typedef to int rather than
20707 enum type.
20708 (expand_complex_libcall): Add casts to enum type.
20709 * tree-into-ssa.c (get_ssa_name_ann): Change 0 to enum constant.
20710 * tree-vect-loop.c (vect_model_reduction_cost): Compare reduc_code
20711 with ERROR_MARK, not NUM_TREE_CODES.
20712 (vect_create_epilog_for_reduction): Likewise.
20713 (vectorizable_reduction): Don't initialize epiloc_reduc_code.
20714 When not using it, set it to ERROR_MARK rather than NUM_TREE_CODES.
20715 * tree-vect-patterns.c (vect_pattern_recog_1): Change vec_mode to
20716 enum machine_mode.
20717 * tree-vect-stmts.c (new_stmt_vec_info): Change 0 to
20718 vect_unused_in_loop. Change 0 to loop_vect.
20719 * tree-vectorizer.c (vect_set_verbosity_level): Add casts to enum type.
20720 * var-tracking.c (get_init_value): Change return type to enum
20721 var_init_status.
20722 * vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
20723 * config/arm/arm.c (fp_model_for_fpu): Change to array to enum
20724 arm_fp_model.
20725 (arm_override_options): Add casts to enum type.
20726 (arm_emit_tls_decoration): Likewise.
20727 * config/i386/i386.c (ix86_function_specific_restore): Add casts
20728 to enum type.
20729 * config/i386/i386-c.c (ix86_pragma_target_parse): Likewise.
20730 * config/ia64/ia64.c (ia64_expand_compare): Change magic to int.
20731 * config/rs6000/rs6000.c (rs6000_override_options): Add casts to
20732 enum type.
20733 * config/s390/s390.c (code_for_builtin_64): Change to array of
20734 enum insn_code.
20735 (code_for_builtin_31): Likewise.
20736 (s390_expand_builtin): Change code_for_builtin to enum insn_code
20737 const *.
20738 * config/sparc/sparc.c (sparc_override_options): Change value
20739 field in struct code_model to enum cmodel. In initializer change
20740 0 to NULL and add cast to enum type.
20741
20742 * c-typeck.c (build_modify_expr): Add lhs_origtype parameter.
20743 Change all callers. Issue a -Wc++-compat warning using
20744 lhs_origtype if necessary.
20745 (convert_for_assignment): Issue -Wc++-compat warnings about
20746 invalid conversions to enum type on assignment.
20747 * c-common.h (build_modify_expr): Update declaration.
20748
20749 2009-04-24 Nick Clifton <nickc@redhat.com>
20750
20751 * config/iq2000/iq2000.c (function_arg): Handle TImode values.
20752 (function_arg_advance): Likewise.
20753 * config/iq2000/iq2000.md (movsi_internal2): Fix the length of the
20754 5th alternative.
20755
20756 2009-04-24 Andreas Krebbel <krebbel1@de.ibm.com>
20757
20758 * config/s390/constraints.md ('I', 'J'): Fix condition.
20759
20760 2009-04-24 Diego Novillo <dnovillo@google.com>
20761
20762 * gengtype-parse.c (parse_error): Add newline after message.
20763
20764 2009-04-24 H.J. Lu <hongjiu.lu@intel.com>
20765
20766 * config/i386/sse.md (avxmodesuffixs): Removed.
20767 (*avx_pinsr<avxmodesuffixs>): Renamed to ...
20768 (*avx_pinsr<ssevecsize>): This.
20769
20770 2009-04-24 Bernd Schmidt <bernd.schmidt@analog.com>
20771
20772 * loop-iv.c (replace_single_def_regs): Look for REG_EQUAL notes;
20773 follow chains of regs with a single definition, and allow expressions
20774 that are function_invariant_p.
20775 (simple_rhs_p): Allow expressions that are function_invariant_p.
20776
20777 2009-04-24 Paolo Bonzini <bonzini@gnu.org>
20778
20779 PR middle-end/39867
20780 * fold-const.c (fold_cond_expr_with_comparison): When folding
20781 > and >= to MAX, make sure the MAX uses the same type as the
20782 comparison's operands.
20783
20784 2009-04-24 Nick Clifton <nickc@redhat.com>
20785
20786 * config/frv/frv.c (frv_frame_access): Do not use reg+reg
20787 addressing for DImode accesses.
20788 (frv_print_operand_address): Handle PLUS case.
20789 * config/frv/frv.h (FIXED_REGISTERS): Mark link register as fixed.
20790
20791 2009-04-24 Jakub Jelinek <jakub@redhat.com>
20792
20793 PR rtl-optimization/39794
20794 * alias.c (canon_true_dependence): Add x_addr argument.
20795 * rtl.h (canon_true_dependence): Adjust prototype.
20796 * cse.c (check_dependence): Adjust canon_true_dependence callers.
20797 * cselib.c (cselib_invalidate_mem): Likewise.
20798 * gcse.c (compute_transp): Likewise.
20799 * dse.c (scan_reads_nospill): Likewise.
20800 (record_store, check_mem_read_rtx): Likewise. For non-const-or-frame
20801 addresses pass base->val_rtx as mem_addr, for const-or-frame addresses
20802 canon_base_addr of the group, plus optional offset.
20803 (struct group_info): Rename canon_base_mem to
20804 canon_base_addr.
20805 (get_group_info): Set canon_base_addr to canon_rtx of base, not
20806 canon_rtx of base_mem.
20807
20808 2009-04-23 Paolo Bonzini <bonzini@gnu.org>
20809
20810 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
20811 Use memory_address_p instead of GO_IF_LEGITIMATE_ADDRESS.
20812
20813 2009-04-23 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20814
20815 * config/spu/spu-builtins.h: Delete file.
20816
20817 * config/spu/spu.h (enum spu_builtin_type): Move here from
20818 spu-builtins.h.
20819 (struct spu_builtin_description): Likewise. Add GTY marker.
20820 Do not use enum spu_function_code or enum insn_code.
20821 (spu_builtins): Add extern declaration.
20822
20823 * config/spu/spu.c: Do not include "spu-builtins.h".
20824 (enum spu_function_code, enum spu_builtin_type_index,
20825 V16QI_type_node, V8HI_type_node, V4SI_type_node, V2DI_type_node,
20826 V4SF_type_node, V2DF_type_node, unsigned_V16QI_type_node,
20827 unsigned_V8HI_type_node, unsigned_V4SI_type_node,
20828 unsigned_V2DI_type_node): Move here from spu-builtins.h.
20829 (spu_builtin_types): Make static. Add GTY marker.
20830 (spu_builtins): Add extern declaration with GTY marker.
20831 Include "gt-spu.h".
20832
20833 * config/spu/spu-c.c: Do not include "spu-builtins.h".
20834 (spu_resolve_overloaded_builtin): Do not use spu_function_code.
20835 Check programmatically whether all parameters are scalar.
20836
20837 * config/spu/t-spu-elf (spu.o, spu-c.o): Update dependencies.
20838
20839 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
20840
20841 * gimplify.c (gimplify_modify_expr_rhs) <VAR_DECL>: Do not do a direct
20842 assignment from the constructor either if the target is volatile.
20843
20844 2009-04-23 Daniel Jacobowitz <dan@codesourcery.com>
20845
20846 * config/arm/arm.md (insv): Do not share operands[0].
20847
20848 2009-04-23 Nathan Sidwell <nathan@codesourcery.com>
20849
20850 * config/vxlib-tls.c (active_tls_threads): Delete.
20851 (delete_hook_installed): New.
20852 (tls_delete_hook): Don't delete the delete hook.
20853 (tls_destructor): Delete it here.
20854 (__gthread_set_specific): Adjust installing the delete hook.
20855 (tls_delete_hook): Use __gthread_enter_tsd_dtor_context and
20856 __gthread_leave_tsd_dtor_context.
20857
20858 2009-04-23 Rafael Avila de Espindola <espindola@google.com>
20859
20860 * c-format.c (gcc_tdiag_char_table): Add support for %E.
20861
20862 2009-04-23 Uros Bizjak <ubizjak@gmail.com>
20863
20864 * config/alpha/alpha.c (alpha_legitimize_reload_address): Add cast to
20865 enum type.
20866 (alpha_rtx_costs): Ditto.
20867 (emit_unlikely_jump): Use add_reg_note.
20868 (emit_frame_store_1): Ditto.
20869 (alpha_expand_prologue): Ditto.
20870 (alpha_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
20871 * config/alpha/alpha.c (Unicos/Mk address splitter): Use add_reg_note.
20872
20873 2009-04-23 Nick Clifton <nickc@redhat.com>
20874
20875 * config/v850/v850.md (epilogue): Remove suppressed code.
20876 (return): Rename to return_simple and remove test of frame size.
20877 * config/v850/v850.c (expand_epilogue): Rename call to gen_return
20878 to gen_return_simple.
20879
20880 2009-04-22 Jing Yu <jingyu@google.com>
20881
20882 PR testsuite/39781
20883 * config/arm/arm.h: Define HANDLE_PRAGMA_PACK_PUSH_POP.
20884
20885 2009-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
20886
20887 PR C/31499
20888 * c-typeck.c (process_init_element): Treat VECTOR_TYPE like ARRAY_TYPE
20889 and RECORD_TYPE/UNION_TYPE. When outputing the actual element and the
20890 value is a VECTOR_CST, the element type is the element type of the
20891 vector.
20892
20893 2009-04-22 DJ Delorie <dj@redhat.com>
20894
20895 * config/m32c/m32c.h: Update GTY annotations to new syntax.
20896
20897 2009-04-22 Jakub Jelinek <jakub@redhat.com>
20898
20899 * alias.c (find_base_term): Move around LO_SUM case, so that
20900 CONST falls through into PLUS/MINUS handling.
20901
20902 PR c/39855
20903 * fold-const.c (fold_binary) <case LSHIFT_EXPR>: When optimizing
20904 into 0, use omit_one_operand.
20905
20906 2009-04-23 Ben Elliston <bje@au.ibm.com>
20907
20908 * config/rs6000/linux-unwind.h (get_regs): Remove type
20909 puns. Change the type of `pc' to an array of unsigned ints and
20910 update all users. Constify frame24.
20911
20912 2009-04-22 DJ Delorie <dj@redhat.com>
20913
20914 * config/m32c/m32c.c (m32c_special_page_vector_p): Move
20915 declarations before code.
20916 (current_function_special_page_vector): Likewise.
20917 (m32c_expand_insv): Silence a warning.
20918
20919 2009-04-21 Taras Glek <tglek@mozilla.com>
20920
20921 * alias.c: Update GTY annotations to new syntax.
20922 * basic-block.h: Likewise.
20923 * bitmap.h: Likewise.
20924 * c-common.h: Likewise.
20925 * c-decl.c: Likewise.
20926 * c-parser.c: Likewise.
20927 * c-pragma.c: Likewise.
20928 * c-tree.h: Likewise.
20929 * cfgloop.h: Likewise.
20930 * cgraph.h: Likewise.
20931 * config/alpha/alpha.c: Likewise.
20932 * config/arm/arm.h: Likewise.
20933 * config/avr/avr.h: Likewise.
20934 * config/bfin/bfin.c: Likewise.
20935 * config/cris/cris.c: Likewise.
20936 * config/darwin.c: Likewise.
20937 * config/frv/frv.c: Likewise.
20938 * config/i386/i386.c: Likewise.
20939 * config/i386/i386.h: Likewise.
20940 * config/i386/winnt.c: Likewise.
20941 * config/ia64/ia64.h: Likewise.
20942 * config/iq2000/iq2000.c: Likewise.
20943 * config/mips/mips.c: Likewise.
20944 * config/mmix/mmix.h: Likewise.
20945 * config/pa/pa.c: Likewise.
20946 * config/pa/pa.h: Likewise.
20947 * config/rs6000/rs6000.c: Likewise.
20948 * config/s390/s390.c: Likewise.
20949 * config/sparc/sparc.c: Likewise.
20950 * config/xtensa/xtensa.c: Likewise.
20951 * cselib.h: Likewise.
20952 * dbxout.c: Likewise.
20953 * dwarf2out.c: Likewise.
20954 * except.c: Likewise.
20955 * except.h: Likewise.
20956 * fixed-value.h: Likewise.
20957 * function.c: Likewise.
20958 * function.h: Likewise.
20959 * gimple.h: Likewise.
20960 * integrate.c: Likewise.
20961 * optabs.c: Likewise.
20962 * output.h: Likewise.
20963 * real.h: Likewise.
20964 * rtl.h: Likewise.
20965 * stringpool.c: Likewise.
20966 * tree-data-ref.c: Likewise.
20967 * tree-flow.h: Likewise.
20968 * tree-scalar-evolution.c: Likewise.
20969 * tree-ssa-address.c: Likewise.
20970 * tree-ssa-alias.h: Likewise.
20971 * tree-ssa-operands.h: Likewise.
20972 * tree.c: Likewise.
20973 * tree.h: Likewise.
20974 * varasm.c: Likewise.
20975 * varray.h: Likewise.
20976 * vec.h: Likewise.
20977 * coretypes.h: Do not define GTY macro if it is already defined.
20978 * doc/gty.texi: Update GTY documentation to new syntax.
20979 * gengtype-lex.l: Enforce attribute-like syntax for GTY
20980 annotations on structs.
20981 * gengtype-parse.c: Likewise.
20982
20983 2009-04-22 Mark Heffernan <meheff@google.com>
20984
20985 * gcc.c (LINK_COMMAND_SPEC): Link with gcov with -fprofile-generate=.
20986
20987 2009-04-22 Kazu Hirata <kazu@codesourcery.com>
20988
20989 * config/arm/arm.c (arm_rtx_costs_1): Use power_of_two_operand
20990 where appropriate.
20991
20992 2009-04-22 Kazu Hirata <kazu@codesourcery.com>
20993
20994 * config/arm/arm.c (arm_size_rtx_costs): Treat a PLUS with a shift
20995 the same as a PLUS without a shift. Increase the cost of a
20996 CONST_INT in MULT.
20997
20998 2009-04-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
20999
21000 * Makefile.in: Update dependencies.
21001 * errors.c (warning): Remove unused parameter 'opt'. Returns 'void'.
21002 * errors.h: Remove bogus comment about compatibility.
21003 (warning): Update declaration.
21004 * genautomata.c: Update all calls to warning.
21005 * gimple.c: Do not include errors.h. Include toplev.h.
21006 * tree-ssa-structalias.c: Do not include errors.h.
21007 * omega.c: Likewise.
21008 * tree-ssa-reassoc.c: Likewise.
21009 * config/spu/spu-c.c: Likewise.
21010 * config/spu/t-spu-elf: Update dependencies.
21011
21012 2009-04-22 Richard Guenther <rguenther@suse.de>
21013
21014 PR tree-optimization/39824
21015 * tree-ssa-ccp.c (fold_const_aggregate_ref): For INDIRECT_REFs
21016 make sure the types are compatible.
21017
21018 2009-04-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
21019
21020 PR c++/14875
21021 * c-common.c (c_parse_error): Take a token_flags parameter.
21022 Use token_type for the token type instead.
21023 Pass token_flags to cpp_type2name.
21024 * c-common.h (c_parse_error): Update declaration.
21025 * c-parser.c (c_parser_error): Pass 0 as token flags.
21026
21027 2009-04-22 Andrey Belevantsev <abel@ispras.ru>
21028
21029 PR rtl-optimization/39580
21030 * sel-sched-ir.c (insert_in_history_vect): Remove incorrect gcc_assert.
21031
21032 2009-04-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21033
21034 * function.c (expand_function_end): Do not emit a jump to the "naked"
21035 return label for fall-through returns.
21036 * except.c (sjlj_emit_function_exit): Always place the call to the
21037 unregister function at the location installed by expand_function_end.
21038
21039 2009-04-22 Richard Guenther <rguenther@suse.de>
21040
21041 PR tree-optimization/39845
21042 * tree-switch-conversion.c (build_arrays): Add new referenced vars.
21043 (gen_inbound_check): Likewise.
21044
21045 2009-04-22 Nathan Sidwell <nathan@codesourcery.com>
21046
21047 * gthr-vxworks.h (struct __gthread_once_t): Add alignment and
21048 padding for PPC.
21049 (__GTHREAD_ONCE_INIT): Adjust ppc initializer.
21050 * config/vxlib.c (__gthread_once): Add race guard for PPC.
21051
21052 2009-04-22 Paolo Bonzini <bonzini@gnu.org>
21053
21054 * config/sh/sh.c (shift_insns_rtx, shiftcosts, gen_shifty_op,
21055 sh_dynamicalize_shift_p, shl_and_scr_length): Truncate
21056 shift counts to avoid out-of-bounds array accesses.
21057
21058 2009-04-22 Paolo Bonzini <bonzini@gnu.org>
21059
21060 * config/sparc/sparc.h (POINTER_SIZE): Fix comment.
21061 (Pmode): Move above.
21062
21063 2009-04-22 Uros Bizjak <ubizjak@gmail.com>
21064
21065 * config/alpha/alpha.c: Use REG_P, MEM_P, CONST_INT_P, JUMP_P,
21066 NONJUMP_INSN_P, CALL_P, LABEL_P and NOTE_P predicates instead of
21067 GET_CODE macro. Use IN_RANGE macro where appropriate.
21068 * config/alpha/alpha.h: Ditto.
21069 * config/alpha/alpha.md: Ditto.
21070 * config/alpha/constraints.md: Ditto.
21071 * config/alpha/predicates.md: Ditto.
21072
21073 2009-04-22 Paolo Bonzini <bonzini@gnu.org>
21074
21075 * defaults.h (GO_IF_MODE_DEPENDENT_ADDRESS): Provide empty default.
21076 * config/frv/frv.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21077 * config/s390/s390.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21078 * config/m32c/m32c.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21079 * config/spu/spu.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21080 * config/i386/i386.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21081 * config/sh/sh.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21082 * config/pdp11/pdp11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21083 * config/avr/avr.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21084 * config/crx/crx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21085 * config/fr30/fr30.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21086 * config/m68hc11/m68hc11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21087 * config/cris/cris.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21088 * config/iq2000/iq2000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21089 * config/mn10300/mn10300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21090 * config/ia64/ia64.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21091 * config/m68k/m68k.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21092 * config/picochip/picochip.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21093 * config/arc/arc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21094 * config/mcore/mcore.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21095 * config/score/score.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21096 * config/arm/arm.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21097 * config/pa/pa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21098 * config/mips/mips.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21099 * config/v850/v850.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21100 * config/mmix/mmix.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21101 * config/bfin/bfin.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21102
21103 2009-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
21104
21105 * cfghooks.c (tidy_fallthru_edges): Remove find_basic_blocks
21106 references from comments.
21107 * cfgbuild.c: (count_basic_blocks): Delete.
21108 (find_basic_blocks_1): Delete.
21109 (find_basic_blocks): Delete.
21110 * except.c (finish_eh_generation): Make static. Move comment from
21111 except.h here. Remove find_basic_blocks references from comments.
21112 * except.h (finish_eh_generation): Delete.
21113 * basic-block.h (find_basic_blocks): Delete.
21114 * config/sh/sh.c (sh_output_mi_thunk): Delete a "#if 0" block.
21115
21116 2009-04-22 Dave Korn <dave.korn.cygwin@gmail.com>
21117
21118 * sdbout.c (sdbout_symbol): Pass VOIDmode to eliminate_regs.
21119 (sdbout_parms): Likewise.
21120
21121 2009-04-21 Kaz Kojima <kkojima@gcc.gnu.org>
21122
21123 * config/sh/sh.c (prepare_cbranch_operands): Use
21124 LAST_AND_UNUSED_RTX_CODE instead of CODE_FOR_nothing.
21125 (expand_cbranchdi4): Likewise.
21126 (from_compare): Add cast to enum type.
21127 (expand_cbranchsi4): Use add_reg_note.
21128 (output_stack_adjust, push, pop, sh_expand_prologue): Likewise.
21129 (sh_insn_length_adjustment): Use sh_cpu_attr instead of sh_cpu.
21130 (sh_initialize_trampoline): Change 0 to LCT_NORMAL in function call.
21131 (sh_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
21132 * config/sh/sh.md (cbranchsi4): Use LAST_AND_UNUSED_RTX_CODE
21133 instead of CODE_FOR_nothing.
21134 (cbranchdi4): Likewise. Fix the order of arguments for
21135 gen_rtx_fmt_ee.
21136 (push_fpscr): Use add_reg_note.
21137 (pop_fpscr, movdf_i4+1, reload_outdf__RnFRm+3, reload_outdf__RnFRm+4,
21138 reload_outdf__RnFRm+5, fpu_switch+1, fpu_switch+2): Likewise.
21139
21140 2009-04-21 Joseph Myers <joseph@codesourcery.com>
21141
21142 * ABOUT-GCC-NLS, ChangeLog, ChangeLog-1997, ChangeLog-1998,
21143 ChangeLog-1999, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
21144 ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
21145 ChangeLog-2007, ChangeLog-2008, ChangeLog.dataflow, ChangeLog.lib,
21146 ChangeLog.ptr, ChangeLog.tree-ssa, ChangeLog.tuples, FSFChangeLog,
21147 FSFChangeLog.10, FSFChangeLog.11, LANGUAGES, ONEWS, acinclude.m4,
21148 config/alpha/gnu.h, config/alpha/libgcc-alpha-ldbl.ver,
21149 config/alpha/t-osf4, config/alpha/t-vms, config/alpha/va_list.h,
21150 config/alpha/x-vms, config/arc/t-arc,
21151 config/arm/README-interworking, config/arm/arm-c.c,
21152 config/arm/gentune.sh, config/arm/libgcc-bpabi.ver,
21153 config/arm/t-arm, config/arm/t-arm-elf, config/arm/t-arm-softfp,
21154 config/arm/t-bpabi, config/arm/t-linux, config/arm/t-linux-eabi,
21155 config/arm/t-netbsd, config/arm/t-pe, config/arm/t-strongarm-elf,
21156 config/arm/t-symbian, config/arm/t-vxworks, config/arm/t-wince-pe,
21157 config/avr/t-avr, config/bfin/elf.h, config/bfin/libgcc-bfin.ver,
21158 config/bfin/linux.h, config/bfin/t-bfin, config/bfin/t-bfin-elf,
21159 config/bfin/t-bfin-linux, config/bfin/t-bfin-uclinux,
21160 config/bfin/uclinux.h, config/cris/mulsi3.asm, config/cris/t-cris,
21161 config/cris/t-elfmulti, config/crx/t-crx,
21162 config/darwin-ppc-ldouble-patch.def, config/darwin-sections.def,
21163 config/divmod.c, config/fr30/t-fr30, config/frv/libgcc-frv.ver,
21164 config/frv/t-frv, config/frv/t-linux, config/h8300/genmova.sh,
21165 config/h8300/t-h8300, config/i386/athlon.md,
21166 config/i386/darwin-libgcc.10.4.ver,
21167 config/i386/darwin-libgcc.10.5.ver, config/i386/libgcc-glibc.ver,
21168 config/i386/mach.h, config/i386/netbsd.h, config/i386/t-crtpc,
21169 config/i386/t-cygming, config/i386/t-cygwin, config/i386/t-i386,
21170 config/i386/t-linux64, config/i386/t-nwld,
21171 config/i386/t-rtems-i386, config/i386/t-sol2-10,
21172 config/i386/x-mingw32, config/ia64/div.md, config/ia64/elf.h,
21173 config/ia64/ia64.opt, config/ia64/libgcc-glibc.ver,
21174 config/ia64/libgcc-ia64.ver, config/ia64/linux.h,
21175 config/ia64/sysv4.h, config/ia64/t-hpux, config/ia64/t-ia64,
21176 config/iq2000/abi, config/iq2000/lib2extra-funcs.c,
21177 config/iq2000/t-iq2000, config/libgcc-glibc.ver,
21178 config/m32r/libgcc-glibc.ver, config/m32r/t-linux,
21179 config/m32r/t-m32r, config/m68hc11/t-m68hc11,
21180 config/m68k/t-floatlib, config/m68k/t-linux, config/m68k/t-mlibs,
21181 config/m68k/t-uclinux, config/mcore/t-mcore,
21182 config/mcore/t-mcore-pe, config/mips/20kc.md, config/mips/4130.md,
21183 config/mips/5400.md, config/mips/5500.md, config/mips/crti.asm,
21184 config/mips/crtn.asm, config/mips/irix-crti.asm,
21185 config/mips/irix-crtn.asm, config/mips/libgcc-mips16.ver,
21186 config/mips/mips-dsp.md, config/mips/mips-dspr2.md,
21187 config/mips/mips-fixed.md, config/mips/sb1.md,
21188 config/mips/sr71k.md, config/mips/t-elf, config/mips/t-gofast,
21189 config/mips/t-iris6, config/mips/t-isa3264,
21190 config/mips/t-libgcc-mips16, config/mips/t-linux64,
21191 config/mips/t-mips, config/mips/t-r3900, config/mips/t-rtems,
21192 config/mips/t-sb1, config/mips/t-sde, config/mips/t-sdemtk,
21193 config/mips/t-slibgcc-irix, config/mips/t-sr71k, config/mips/t-st,
21194 config/mips/t-vr, config/mips/t-vxworks, config/mmix/t-mmix,
21195 config/mn10300/t-linux, config/mn10300/t-mn10300,
21196 config/pa/pa32-regs.h, config/pa/t-hpux-shlib, config/pa/t-linux,
21197 config/pa/t-linux64, config/pa/t-pa64, config/pdp11/t-pdp11,
21198 config/picochip/libgccExtras/clzsi2.asm,
21199 config/picochip/t-picochip, config/rs6000/darwin-ldouble-format,
21200 config/rs6000/darwin-libgcc.10.4.ver,
21201 config/rs6000/darwin-libgcc.10.5.ver,
21202 config/rs6000/libgcc-ppc-glibc.ver, config/rs6000/ppc-asm.h,
21203 config/rs6000/t-aix43, config/rs6000/t-aix52,
21204 config/rs6000/t-darwin, config/rs6000/t-fprules,
21205 config/rs6000/t-fprules-fpbit, config/rs6000/t-linux64,
21206 config/rs6000/t-lynx, config/rs6000/t-netbsd,
21207 config/rs6000/t-ppccomm, config/rs6000/t-ppcendian,
21208 config/rs6000/t-ppcgas, config/rs6000/t-rs6000,
21209 config/rs6000/t-rtems, config/rs6000/t-spe,
21210 config/rs6000/t-vxworks, config/s390/libgcc-glibc.ver,
21211 config/score/t-score-elf, config/sh/divcost-analysis,
21212 config/sh/libgcc-glibc.ver, config/sh/t-netbsd, config/sh/t-sh,
21213 config/sh/t-sh64, config/sh/t-superh, config/sh/t-symbian,
21214 config/sparc/libgcc-sparc-glibc.ver, config/sparc/sol2-bi.h,
21215 config/sparc/sol2-gas.h, config/sparc/sol2-gld-bi.h,
21216 config/sparc/t-elf, config/sparc/t-linux64, config/sparc/t-sol2,
21217 config/stormy16/stormy-abi, config/stormy16/t-stormy16,
21218 config/t-darwin, config/t-libunwind, config/t-libunwind-elf,
21219 config/t-linux, config/t-lynx, config/t-slibgcc-elf-ver,
21220 config/t-slibgcc-sld, config/t-sol2, config/t-vxworks,
21221 config/udivmod.c, config/udivmodsi4.c, config/v850/t-v850,
21222 config/v850/t-v850e, config/xtensa/t-xtensa, diagnostic.def,
21223 gdbinit.in, glimits.h, gstab.h, gsyms.h, java/ChangeLog,
21224 java/ChangeLog.ptr, java/ChangeLog.tree-ssa, libgcc-std.ver,
21225 limitx.h, version.c, xcoff.h: Add copyright and license notices.
21226 * config/h8300/genmova.sh: Include copyright and license notices
21227 in generated output.
21228 * config/h8300/mova.md: Regenerate.
21229 * doc/install.texi2html: Include word "Copyright" in copyright
21230 notice and use name "Free Software Foundation, Inc.".
21231 * ChangeLog, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
21232 ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
21233 ChangeLog-2007, ChangeLog-2008: Correct dates.
21234
21235 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
21236
21237 * c-common.c (c_common_truthvalue_conversion): Use LOCATION to build
21238 NE_EXPR operations as well.
21239 * c-parser.c (c_parser_condition): Do not set location information on
21240 the condition.
21241 (c_parser_conditional_expression): Likewise.
21242 (c_parser_binary_expression): Set location information on operators.
21243 * c-typeck.c (build_unary_op) <TRUTH_NOT_EXPR>: Reset the location if
21244 TRUTH_NOT_EXPR has been folded.
21245 * fold-const.c (fold_truth_not_expr): Copy location information from
21246 the incoming expression to the outgoing one.
21247 * gimplify.c (shortcut_cond_r): Add locus parameter. Pass it to
21248 recursive calls on the LHS of the operator but pass that of the
21249 operator to recursive calls on the RHS of the operator. Set it
21250 on the COND_EXPR.
21251 (shortcut_cond_expr): Set the locus of the operator on the second
21252 COND_EXPR and that of the expression on the first in degenerate cases.
21253 Pass the locus of the expression to calls to shortcut_cond_r.
21254 Set the locus of the 'then' block on the associated jump, if any.
21255 (gimplify_boolean_expr): Add locus parameter. Set it on the COND_EXPR.
21256 (gimplify_expr) <TRUTH_ANDIF_EXPR>: Pass the locus of the outer
21257 expression to call to gimplify_boolean_expr.
21258
21259 2009-04-21 Kai Tietz <kai.tietz@onevision.com>
21260
21261 * config.gcc: Add additional configuration for
21262 i686-w64-mingw* and x86_64-w64-mingw* triplet.
21263 * config/i386/mingw-w64.h: New mingw-w64 specific header.
21264 (CPP_SPEC): Redefine for allowing -municode option.
21265 (STARTFILE_SPEC): Likewise.
21266 * config/i386/t-mingw-w64: New.
21267 * config/i386/mingw-w64.opt: New.
21268 (municode): Add new target option.
21269 * doc/invoke.texi (municode): Add documentation for new option.
21270
21271 2009-04-21 Ian Lance Taylor <iant@google.com>
21272
21273 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
21274 Correct test for number of arguments.
21275 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
21276
21277 2009-04-21 Andreas Schwab <schwab@linux-m68k.org>
21278
21279 * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Use enum for second
21280 argument of emit_library_call.
21281
21282 2009-04-21 Richard Guenther <rguenther@suse.de>
21283
21284 PR middle-end/39829
21285 * gimple.c (walk_stmt_load_store_addr_ops): Catch addresses
21286 inside VIEW_CONVERT_EXPRs.
21287
21288 2009-04-21 Martin Jambor <mjambor@suse.cz>
21289
21290 * tree-switch-conversion.c (build_constructors): Split a long line.
21291 (constructor_contains_same_values_p): New function.
21292 (build_one_array): Create assigns of constants if possible, do not
21293 call mark_sym_for_renaming, call update_stmt.
21294 (build_arrays): Call make_ssa_name (create_tmp_var ()) instead of
21295 make_rename_temp. Do not call mark_symbols_for_renaming, call
21296 update_stmt.
21297 (gen_def_assigns): Do not call mark_symbols_for_renaming or
21298 find_new_referenced_vars, call update_stmt.
21299 (gen_inbound_check): Use create_tmp_var and create ssa names manually
21300 instead of calling make_rename_temp. Do not call
21301 find_new_referenced_vars or mark_symbols_for_renaming, call
21302 update_stmt.
21303
21304 2009-04-21 Richard Guenther <rguenther@suse.de>
21305
21306 PR tree-optimization/39827
21307 * tree-ssa-phiprop.c (propagate_with_phi): Check SSA_NAME is in range.
21308 (tree_ssa_phiprop): Pass the correct array size.
21309
21310 2009-04-21 Uros Bizjak <ubizjak@gmail.com>
21311
21312 * config/alpha/alpha.md (tune): Add cast to enum attr_tune.
21313
21314 2009-04-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
21315
21316 PR 16202
21317 * c-typeck.c (lvalue_p): Move declaration ...
21318 * c-common.h (lvalue_p): ... to here.
21319 * c-common.c (candidate_equal_p): New.
21320 (add_tlist): Use it.
21321 (merge_tlist): Use it.
21322 (warn_for_collisions_1): Likewise.
21323 (warning_candidate_p): Accept more candidates.
21324 (verify_tree): A warning candidate can be an expression. Use
21325 candidate_equal_p.
21326
21327 2009-04-21 Ben Elliston <bje@au.ibm.com>
21328
21329 PR target/5267
21330 * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
21331 for -mcall-eabi, -mcall-aixdesc, -mcall-freebsd and -mcall-openbsd
21332 options. Remove -mcall-solaris documentation.
21333
21334 2009-04-21 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
21335
21336 PR c++/13358
21337 * doc/invoke.texi (-Wlong-long): Update description.
21338 * c-lex (interpret_integer): Only warn if there was no previous
21339 overflow and -Wlong-long is enabled.
21340 * c-decl.c (declspecs_add_type): Drop redundant flags.
21341 * c.opt (Wlong-long): Init to -1.
21342 * c-opts.c (sanitize_cpp_opts): Synchronize cpp's warn_long_long
21343 and front-end warn_long_long. Wlong-long only depends on other
21344 flags if it is uninitialized.
21345 * c-parser.c (disable_extension_diagnostics): warn_long_long is
21346 the same for CPP and FE.
21347 (restore_extension_diagnostics): Likewise.
21348
21349 2009-04-20 Ian Lance Taylor <iant@google.com>
21350
21351 Fix enum conversions which are invalid in C++:
21352 * auto-inc-dec.c (attempt_change): Change 0 to SET in function call.
21353 * calls.c (store_one_arg): Change 0 to EXPAND_NORMAL in function call.
21354 * cse.c (hash_rtx_cb): Change 0 to VOIDmode in function call.
21355 * dbgcnt.c (dbg_cnt_set_limit_by_name): Add cast to enum type.
21356 * dbxout.c (dbxout_symbol): Change 0 to VOIDmode in function call.
21357 (dbxout_parms): Likewise.
21358 * df-core.c (df_set_flags): Change changeable_flags parameter to int.
21359 (df_clear_flags): Likewise.
21360 * df-problems.c (df_rd_bb_local_compute_process_def): Change
21361 top_flag parameter to int.
21362 (df_chain_create_bb_process_use): Likewise.
21363 (df_chain_add_problem): Change chain_flags parameter to unsigned int.
21364 Remove cast.
21365 * df-scan.c (df_ref_create): Change ref_flags parameter to int.
21366 (df_ref_create_structure, df_def_record_1): Likewise.
21367 (df_defs_record, df_uses_record, df_get_call_refs): Likewise.
21368 (df_notes_rescan): Change 0 to VOIDmode in function call.
21369 (df_get_call_refs, df_insn_refs_collect): Likewise.
21370 (df_bb_regs_collect): Likewise.
21371 (df_entry_block_defs_collect): Likewise.
21372 (df_exit_block_uses_collect): Likewise.
21373 * df.h: Update declarations.
21374 * double-int.c (double_int_divmod): Add cast to enum type.
21375 * dse.c (replace_inc_dec): Reverse parameters to gen_int_mode.
21376 * dwarf2out.c (new_reg_loc_descr): Add casts to enum type.
21377 (based_loc_descr): Likewise.
21378 (loc_descriptor_from_tree_1): Change first_op and second_op to
21379 enum dwarf_location_atom. Add cast to enum type.
21380 * expmed.c (init_expmed): Change 0 to SET in function call.
21381 * expr.c (init_expr_target): Change 0 to VOIDmode in function call.
21382 (expand_expr_real_1): Change 0 to EXPAND_NORMAL in function call.
21383 (do_store_flag): Likewise.
21384 * fixed-value.h (struct fixed_value): Change mode to enum
21385 machine_mode.
21386 * function.c (assign_parms): Change 0 to VOIDmode in function call.
21387 * genautomata.c (insert_automaton_decl): Change 1 to INSERT in
21388 function call.
21389 (insert_insn_decl, insert_decl, insert_state): Likewise.
21390 (automata_list_finish): Likewise.
21391 * genrecog.c (process_define_predicate): Add cast to enum type.
21392 * gensupport.c (init_predicate_table): Add cast to enum type.
21393 * gimple.c (gimple_build_return): Change 0 to ERROR_MARK in
21394 function call.
21395 (gimple_build_call_1, gimple_build_label): Likewise.
21396 (gimple_build_goto, gimple_build_asm_1): Likewise.
21397 (gimple_build_switch_1, gimple_build_cdt): Likewise.
21398 * gimple.h (GIMPLE_CHECK): Change 0 to ERROR_MARK in function call.
21399 (enum fallback): Rename from enum fallback_t.
21400 (fallback_t): Typedef as int.
21401 * gimple-low.c (lower_builtin_setjmp): Change TSI_SAME_STMT to
21402 GSI_SAME_STMT in function call.
21403 * ira.c (setup_class_subset_and_memory_move_costs): Add casts to
21404 enum type.
21405 (setup_reg_class_relations): Likewise.
21406 (setup_reg_class_nregs): Change cl to int. Add casts to enum type.
21407 (setup_prohibited_class_mode_regs): Add cast to enum type.
21408 (setup_prohibited_mode_move_regs): Likewise.
21409 * ira-costs.c (record_reg_classes): Change rclass to enum reg_class.
21410 (record_address_regs): Change i to enum reg_class.
21411 * lists.c (alloc_EXPR_LIST): Add cast to enum type.
21412 * machmode.h (GET_MODE_CLASS): Cast value to enum mode_class.
21413 (GET_MODE_WIDER_MODE): Cast value to enum machine_mode.
21414 (GET_MODE_2XWIDER_MODE): Likewise.
21415 (GET_CLASS_NARROWEST_MODE): Likewise.
21416 * omp-low.c (expand_omp_for): Add cast to enum type.
21417 * optabs.c (debug_optab_libfuncs): Add casts to enum type.
21418 * opts.c (enable_warning_as_error): Change kind to diagostic_t.
21419 * postreload.c (reload_cse_simplify_operands): Change rclass local
21420 to enum reg_class.
21421 * predict.c (combine_predictions_for_insn): Change best_predictor
21422 and predictor to enum br_predictor.
21423 (combine_predictions_for_bb): Likewise.
21424 (build_predict_expr): Change assignment to PREDICT_EXPR_OUTCOME to
21425 use SET_PREDICT_EXPR_OUTCOME.
21426 * real.c (real_arithmetic): Change icode to code in function call.
21427 * reginfo.c (init_move_cost): Add casts to enum type.
21428 (init_reg_sets_1, init_fake_stack_mems): Likewise.
21429 * regmove.c (regclass_compatible_p): Change class0 and class1 to
21430 enum reg_class.
21431 * reload.c (find_valid_class): Add casts to enum type.
21432 (push_reload): Change 0 to NO_REGS in function call.
21433 (find_reloads): Change this_alternative to array of enum
21434 reg_class. Remove some now-unnecessary casts.
21435 (make_memloc): Change 0 to VOIDmode in function call.
21436 * reload1.c (reload): Change 0 to VOIDmode in function call.
21437 (eliminate_regs_1, elimination_effects): Likewise.
21438 (eliminate_regs_in_insn): Likewise.
21439 (emit_input_reload_insns): Add cast to enum type.
21440 (delete_output_reload): Change 0 to VOIDmode in function call.
21441 * reorg.c (insn_sets_resource_p): Convert include_delayed_effects
21442 to enum type in function call.
21443 * tree.h (PREDICT_EXPR_OUTCOME): Add cast to enum type.
21444 (SET_PREDICT_EXPR_OUTCOME): Define.
21445 * tree-dump.c (get_dump_file_info): Change phase parameter to int.
21446 (get_dump_file_name, dump_begin, dump_enabled_p): Likewise.
21447 (dump_initialized_p, dump_flag_name, dump_end): Likewise.
21448 (dump_function): Likewise.
21449 * tree-dump.h: Update declarations.
21450 * tree-pass.h: Update declarations.
21451 * varasm.c (assemble_integer): Change mclass to enum mode_class.
21452 * config/arm/arm.c (thumb_legitimize_reload_address): Add cast to
21453 enum type.
21454 (arm_rtx_costs_1): Correct parenthesization.
21455 (arm_rtx_costs): Add casts to enum type.
21456 (adjacent_mem_locations): Reverse arguments to const_ok_for_op.
21457 (vfp_emit_fstmd): Use add_rg_note.
21458 (emit_multi_reg_push, emit_sfm): Likewise.
21459 (thumb_set_frame_pointer): Likewise.
21460 (arm_expand_prologue): Likewise.
21461 (arm_regno_class): Change return type to enum reg_class.
21462 (thumb1_expand_prologue): Use add_reg_note.
21463 * config/arm/arm-protos.h (arm_regno_class): Update declaration.
21464 * config/arm/arm.h (INITIALIZE_TRAMPOLINE): Change 0 to LCT_NORMAL
21465 in function call.
21466 * config/arm/gentune.sh: Add cast to enum type.
21467 * config/arm/arm-tune.md: Rebuild.
21468 * config/i386/i386.c (ix86_expand_prologue): Use add_reg_note.
21469 (ix86_split_fp_branch, predict_jump): Likewise.
21470 (ix86_expand_multi_arg_builtin): Change sub_code from enum
21471 insn_code to enum rtx_code.
21472 (ix86_builtin_vectorized_function): Add cast to enum type.
21473 * config/i386/i386.md (truncdfsf2): Change slot to enum
21474 ix86_stack_slot.
21475 (truncxf<mode>2, isinf<mode>2): Likewise.
21476 * config/i386/i386-c.c (ix86_pragma_target_parse): Add cast to
21477 enum type.
21478 * config/ia64/ia64.c (ia64_split_tmode_move): Use add_reg_note.
21479 (spill_restore_mem, do_spill, ia64_expand_prologue): Likewise.
21480 (insert_bundle_state): Change 1 to INSERT in function call.
21481 (ia64_add_bundle_selector_before): Likewise.
21482 * config/ia64/ia64.md (cpu attr): Add cast to enum type.
21483 (save_stack_nonlocal): Change 0 to LCT_NORMAL in function call.
21484 (restore_stack_nonlocal): Likewise.
21485 * config/mips/mips.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL in
21486 function call.
21487 * config/mips/mips.c (mips_binary_cost): Change 0 to SET in
21488 function call.
21489 (mips_rtx_costs): Likewise.
21490 (mips_override_options): Add casts to enum type.
21491 * config/mips/sdemtk.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL
21492 in function call.
21493 * config/pa/pa.c (legitimize_pic_address): Use add_reg_note.
21494 (store_reg, set_reg_plus_d): Likewise.
21495 (hppa_expand_prologue, hppa_profile_hook): Likewise.
21496 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
21497 cast to enum type.
21498 (altivec_expand_vec_set_builtin): Change 0 to EXPAND_NORMAL in
21499 function call.
21500 (emit_unlikely_jump): Use add_reg_note.
21501 (rs6000_emit_allocate_stack): Likewise.
21502 (rs6000_frame_related, rs6000_emit_prologue): Likewise.
21503 (output_toc): Change 1 to INSERT in function call.
21504 (output_profile_hook): Change 0 to LCT_NORMAL in function call.
21505 (rs6000_initialize_trampoline): Likewise.
21506 (rs6000_init_dwarf_reg_sizes_extra): Change 0 to EXPAND_NORMAL in
21507 function call.
21508 * config/s390/s390.c (s390_rtx_costs): Add cast to enum type.
21509 (s390_expand_movmem): Change 0 to OPTAB_DIRECT in function call.
21510 (s390_expand_setmem, s390_expand_cmpmem): Likewise.
21511 (save_gprs): Use add_reg_note.
21512 (s390_emit_prologue): Likewise.
21513 (s390_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
21514 * config/sparc/sparc.c (sparc_expand_prologue): Use add_reg_note.
21515 (sparc_fold_builtin): Add cast to enum type.
21516 * config/spu/spu.c (spu_emit_branch_or_set): Change ior_code to
21517 enum insn_code.
21518 (spu_expand_prologue): Use add_reg_note.
21519 (expand_builtin_args): Change 0 to EXPAND_NORMAL in function call.
21520
21521 2009-04-20 Ian Lance Taylor <iant@google.com>
21522
21523 * c-parser.c (c_parser_attributes): Change VEC back to tree list.
21524 (c_parser_postfix_expression_after_primary): Get VEC for list of
21525 arguments. Get original types of arguments. Call
21526 build_function_call_vec.
21527 (cached_expr_list_1, cached_expr_list_2): New static variables.
21528 (c_parser_expr_list): Change return type to VEC *. Add
21529 p_orig_types parameter. Change all callers.
21530 (c_parser_release_expr): New static function.
21531 (c_parser_vec_to_tree_list): New static function.
21532 * c-typeck.c (build_function_call): Rewrite to build a VEC and
21533 call build_function_call_vec.
21534 (build_function_call_vec): New function, based on old
21535 build_function_call.
21536 (convert_arguments): Remove nargs and argarray parameters. Change
21537 values to a VEC. Add origtypes parameter.
21538 (build_modify_expr): Add rhs_origtype parameter. Change all callers.
21539 (convert_for_assignment): Add origtype parameter. Change all
21540 callers. If warn_cxx_compat, check for conversion to an enum
21541 type when calling a function.
21542 (store_init_value): Add origtype parameter. Change all callers.
21543 (digest_init): Likewise.
21544 (struct init_node): Add origtype field.
21545 (add_pending_init): Add origtype parameter. Change all callers.
21546 (output_init_element): Likewise.
21547 (output_pending_init_elements): Pass origtype from init_node to
21548 output_init_element.
21549 (process_init_element): Pass origtype from c_expr to
21550 output_init_element.
21551 (c_finish_return): Add origtype parameter. Change all callers.
21552 * c-common.c (sync_resolve_size): Change params to VEC *. Change
21553 caller.
21554 (sync_resolve_params): Likewise.
21555 (sync_resolve_return): Change params to first_param. Change caller.
21556 (resolve_overloaded_builtins): Change params to VEC *. Change
21557 callers. Save first parameter around call to build_function_call_vec.
21558 * c-decl.c (finish_decl): Add origtype parameter. Change all
21559 callers. Call build_function_call_vec rather than
21560 build_function_call for cleanup.
21561 * c-tree.h: Update declarations.
21562 * c-common.h: Update declarations.
21563 * stub-objc.c (objc_rewrite_function_call): Change parameter from
21564 params to first_param.
21565 * target.h (struct gcc_target): Change resolve_overloaded_builtin
21566 params parameter from tree to void *.
21567 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
21568 Change arglist parameter to have type void *, and to be a pointer
21569 to a VEC.
21570 * config/rs6000/rs6000-protos.h
21571 (altivec_resolve_overloaded_builtin): Update declaration.
21572 * config/spu/spu-c.c (spu_resolved_overloaded_builtin): Change
21573 fnargs parameter to have type void *, and to be a pointer to a
21574 VEC. Call build_function_call_vec instead of
21575 build_function_call.
21576 * config/spu/spu-protos.h (spu_expand_builtin): Update declaration.
21577
21578 2009-04-20 Joey Ye <joey.ye@intel.com>
21579 Xuepeng Guo <xuepeng.guo@intel.com>
21580 H.J. Lu <hongjiu.lu@intel.com>
21581
21582 * config/i386/atom.md: Add bypasses with ix86_dep_by_shift_count.
21583
21584 * config/i386/i386.c (LEA_SEARCH_THRESHOLD): New macro.
21585 (IX86_LEA_PRIORITY): Likewise.
21586 (distance_non_agu_define): New function.
21587 (distance_agu_use): Likewise.
21588 (ix86_lea_for_add_ok): Likewise.
21589 (ix86_dep_by_shift_count): Likewise.
21590
21591 * config/i386/i386.md: Call ix86_lea_for_add_ok to decide we
21592 should split for LEA.
21593
21594 * config/i386/i386-protos.h (ix86_lea_for_add_ok): Declare new
21595 function.
21596 (ix86_dep_by_shift_count): Likewise.
21597
21598 2009-04-20 Richard Guenther <rguenther@suse.de>
21599
21600 * expr.c (handled_component_p): Move ...
21601 * tree.h (handled_component_p): ... here.
21602 * tree.def: Re-order BIT_FIELD_REF, COMPONENT_REF,
21603 ARRAY_REF, ARRAY_RANGE_REF, VIEW_CONVERT_EXPR, IMAGPART_EXPR
21604 and REALPART_EXPR to be in one group.
21605
21606 2009-04-20 Richard Guenther <rguenther@suse.de>
21607
21608 * basic-block.h (get_all_dominated_blocks): Declare.
21609 * dominance.c (get_all_dominated_blocks): New function.
21610 * tree-cfg.c (get_all_dominated_blocks): Remove.
21611 (remove_edge_and_dominated_blocks): Adjust.
21612 * tree-ssa-phiprop.c (tree_ssa_phiprop_1): Fold in ...
21613 (tree_ssa_phiprop): ... here. Use get_all_dominated_blocks
21614 instead of recursing.
21615
21616 2009-04-20 Doug Kwan <dougkwan@google.com>
21617
21618 * cgraph.h (cgraph_node_ptr): New type for vector functions.
21619 (struct cgraph_node_set_def): New type.
21620 (cgraph_node_set) New type. Also declare vector functions.
21621 (struct cgraph_node_set_element_def): New type.
21622 (cgraph_node_set_element): Ditto.
21623 (cgraph_node_set_iterator): New iterator type.
21624 (cgraph_node_set_new, cgraph_node_set_find, cgraph_node_set_add,
21625 cgraph_node_set_remove, dump_cgraph_node_set,
21626 debug_cgraph_node_set): New prototypes.
21627 (csi_end_p, csi_next, csi_node, csi_start, cgraph_node_in_set_p,
21628 cgraph_node_set_size): New inlines.
21629 * tree-pass.h (struct cgraph_node_set_def): New decl to avoid
21630 including cgraph.h.
21631 (struct ipa_opt_pass): Add struct cgraph_node_set_def
21632 argument to function 'write_summary'.
21633 * ipa.c: Include ggc.h.
21634 (hash_cgraph_node_set_element,
21635 eq_cgraph_node_set_element, cgraph_node_set_new,
21636 cgraph_node_set_add, cgraph_node_set_remove,
21637 cgraph_node_set_find, dump_cgraph_node_set,
21638 debug_cgraph_node_set): New functions.
21639 * Makefile.in (ipa.o): Add dependency on GGC_H.
21640
21641 2009-04-20 Ira Rosen <irar@il.ibm.com>
21642
21643 PR tree-optimization/39675
21644 * tree-vect-loop.c (vect_transform_loop): Remove currently redundant
21645 check of the return code of vect_schedule_slp. Check that
21646 stmt_vec_info still exists for the statement, before checking its
21647 vectorization type.
21648
21649 2009-04-20 Michael Matz <matz@suse.de>
21650
21651 * Makefile.in (generated_files): Take out $(simple_generated_c).
21652
21653 2009-04-19 Dave Korn <dave.korn.cygwin@gmail.com>
21654
21655 * config/i386/cygwin-stdint.h (INTPTR_TYPE): Remove "long".
21656 (UINTPTR_TYPE): Likewise.
21657
21658 2009-04-19 Joseph Myers <joseph@codesourcery.com>
21659
21660 PR c/37481
21661 * c-typeck.c (digest_init): Check for initializing an array with a
21662 string literal.
21663
21664 2009-04-19 Joseph Myers <joseph@codesourcery.com>
21665
21666 PR c/19771
21667 * c-semantics.c (pop_stmt_list): Propagate
21668 STATEMENT_LIST_HAS_LABEL to parent statement list.
21669
21670 2009-04-19 Adam Nemet <anemet@caviumnetworks.com>
21671
21672 * config/mips/mips.h (mips_tune_attr): New macro.
21673 * config/mips/mips.md (cpu): Use it.
21674
21675 2009-04-19 Joseph Myers <joseph@codesourcery.com>
21676
21677 PR c/38243
21678 * c-decl.c (shadow_tag_warned): Diagnose use of restrict when
21679 declaring a tag.
21680
21681 2009-04-19 Diego Novillo <dnovillo@google.com>
21682
21683 * toplev.c (compile_file): Move call to coverage_finish ...
21684 * cgraphunit.c (ipa_passes): ... here.
21685 Call cgraph_process_new_functions.
21686 * ipa-utils.c (get_base_var): Handle CONSTRUCTOR.
21687 * Makefile.in (cgraphunit.o): Add dependency on COVERAGE_H.
21688
21689 2009-04-19 Jan Hubicka <jh@suse.cz>
21690
21691 * cgraph.c (cgraph_create_edge, cgraph_set_call_stmt): Set proper
21692 cfun.
21693 (dump_cgraph_node): Dump can throw external flag.
21694 * ipa-pure-const.c (propagate): Fix propagation of nothrow flags.
21695
21696 2009-04-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
21697
21698 PR c/32061
21699 PR c++/36954
21700 * doc/invoke.texi: Add -Wlogical-op to -Wextra.
21701 * common.opt (Wlogical-op): Move from here...
21702 * c.opt (Wlogical-op): ... to here.
21703 * c-typeck.c (parser_build_binary_op): Update call to
21704 warn_logical_operator.
21705 * c-opts.c (c_common_post_options): Enable warn_logical_op with
21706 extra_warnings.
21707 * c-common.c (warn_logical_op): Update.
21708 * c-common.h (warn_logical_op): Update declaration.
21709
21710 2009-04-19 Eric Botcazou <ebotcazou@adacore.com>
21711
21712 * tree.c (protected_set_expr_location): Fix formatting.
21713
21714 2009-04-18 Joseph Myers <joseph@codesourcery.com>
21715
21716 PR c/27676
21717 * c-typeck.c (readonly_warning): new.
21718 (build_unary_op, build_modify_expr): Use readonly_warning for
21719 storing into something readonly but not const-qualified.
21720
21721 2009-04-18 Joseph Myers <joseph@codesourcery.com>
21722
21723 PR c/22367
21724 * c-typeck.c (build_unary_op): Check for taking address of
21725 expression of type void.
21726
21727 2009-04-18 Joseph Myers <joseph@codesourcery.com>
21728
21729 PR c/35210
21730 * c-typeck.c (build_function_call): Check for calling a function
21731 with qualified void return types. Call require_complete_type when
21732 generating a trap.
21733
21734 2009-04-18 Jan Hubicka <jh@suse.cz>
21735
21736 * cgraph.c (cgraph_make_edge, dump_cgraph_node, cgraph_set_call_stmt):
21737 Set nothrow flag.
21738 * cgraph.h (struct function): Reduce loop_nest to 30 bits; add
21739 can_throw_external flag.
21740 * ipa-reference.c (ipa_utils_reduced_inorder): Update call.
21741 * ipa-pure-const.c (ignore_edge): New function.
21742 (propagate): Compute order for NOTHROW computation; set NOTHROWs
21743 only over can_throw_external edges.
21744 (local_pure_const): Add nothrow flag.
21745 * ipa-utils.c (searchc): Add ignore_edge callback.
21746 (ipa_utils_reduced_inorder): Add ignore_edge callback.
21747 * ipa-utils.h (ipa_utils_reduced_inorder): Update prototype.
21748 (set_nothrow_function_flags): Update cgraph.
21749 * tree-cfg.c (verify_stmt): Relax nothrow checking when in IPA mode.
21750
21751 2009-04-18 Richard Guenther <rguenther@suse.de>
21752
21753 PR middle-end/39804
21754 * tree-ssa-ccp.c (fold_stmt_1): New function factored from ...
21755 (fold_stmt): ... this and ...
21756 (fold_stmt_inplace): ... this.
21757 (fold_stmt_1): Fold references in calls and asms.
21758 * tree-cfg.c (remove_useless_stmts_cond): Use fold_stmt.
21759
21760 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
21761
21762 * tree-vrp.c (ssa_name_nonzero_p): Remove.
21763 * tree.h: Remove the prototype for ssa_name_nonzero_p.
21764
21765 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
21766
21767 * tree.c (function_args_count): Remove.
21768 * tree.h: Remove the prototype for function_args_count.
21769
21770 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
21771
21772 * tree-iterator.c (expr_only): Remove.
21773 * tree.h: Remove the prototype for expr_only.
21774
21775 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
21776
21777 * reginfo.c (cannot_change_mode_set_regs): Remove.
21778 * rtl.h: Remove the prototype for cannot_change_mode_set_regs.
21779
21780 2009-04-08 Anatoly Sokolov <aesok@post.ru>
21781
21782 * config/avr/avr.md (*rotlsi3_8, *rotlsi3_16, *rotlsi3_24 ): Check
21783 whether operands 0 and 1 overlaps.
21784
21785 2009-04-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
21786
21787 PR middle-end/36902
21788 * tree-vrp.c (check_array_ref): Pass a location_t instead of a
21789 pointer. Use warning_at instead of warning.
21790 (search_for_addr_array): Likewise.
21791 (check_array_bounds): Likewise.
21792 (check_all_array_refs): Check that the incoming edge is not in the
21793 list of edges to be removed.
21794 (check_all_array_refs): Avoid the temporal pointer.
21795 (vrp_visit_cond_stmt): Fix typo.
21796 (simplify_switch_using_ranges): Handle the case where the switch
21797 index is an integer constant.
21798
21799 2009-04-18 Adam Nemet <anemet@caviumnetworks.com>
21800
21801 * config/mips/mips.c (mips_final_postscan_insn): Make it static.
21802
21803 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
21804
21805 * doc/extend.texi, doc/invoke.texi: Fix typos.
21806
21807 2009-04-17 Cary Coutant <ccoutant@google.com>
21808
21809 * tree-flow-inline.h (get_lineno): Fix inverted test.
21810
21811 2009-04-17 Diego Novillo <dnovillo@google.com>
21812
21813 * tree-ssa-pre.c (create_expression_by_pieces): Remove
21814 assertion for AVAIL_OUT.
21815
21816 2009-04-17 Mike Frysinger <vapier@gentoo.org>
21817
21818 PR target/38627
21819 * config/sh/lib1funcs.asm [__ELF__ && __linux__]: Add .note.GNU-stack.
21820 * config/sh/linux-atomic.asm: Likewise.
21821
21822 2009-04-17 Diego Novillo <dnovillo@google.com>
21823
21824 * except.c (debug_eh_tree): New.
21825 (struct eh_region, struct eh_status): Move ...
21826 * except.h: ... here.
21827 (add_type_for_runtime): Declare extern.
21828 (lookup_type_for_runtime): Likewise.
21829 (debug_eh_tree): Declare.
21830 * Makefile.in (GTFILES): List except.h before except.c
21831
21832 2009-04-17 Diego Novillo <dnovillo@google.com>
21833
21834 * omp-low.c (create_omp_child_function): Set DECL_CONTEXT for DECL.
21835 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
21836 * tree-dfa.c (find_referenced_vars_in): Factor out of ...
21837 (find_vars_r): ... here.
21838 * tree-flow.h (find_referenced_vars_in): Declare.
21839 * tree-ssa-pre.c (create_expression_by_pieces): Assert
21840 that AVAIL_OUT exists for BLOCK.
21841 * Makefile.in (CGRAPH_H): Add dependency on cif-code.def
21842 (tree-loop-distribution.o): Fix dependency on TREE_VECTORIZER_H.
21843 (tree-parloops.o): Likewise.
21844
21845 2009-04-17 Simon Baldwin <simonb@google.com>
21846
21847 * toplev.c (default_tree_printer): Add handling for %E format.
21848
21849 2009-04-17 Diego Novillo <dnovillo@google.com>
21850
21851 * tree-pretty-print.c (dump_generic_node): Add break after
21852 TREE_BINFO handler. Handle COMPLEX_TYPE, REAL_TYPE and
21853 FIXED_POINT_TYPE. Handle NULL TREE_TYPEs. Handle METHOD_TYPE and
21854 FUNCTION_TYPE together. Call print_struct_decl when printing
21855 structures and TDF_SLIM is not given.
21856 (print_struct_decl): Fix logic for detecting recursion.
21857
21858 2009-04-17 Rafael Avila de Espindola <espindola@google.com>
21859
21860 PR 31567
21861 * gcc.c (create_at_file): New.
21862 (compile_input_file_p): New.
21863 (do_spec_1): Use @args files for %i. Use create_at_file for %o.
21864 * main.c (main): Update call to toplev_main.
21865 * toplev.c (toplev_main): Change signature. Call expandargv.
21866 * toplev.h (toplev_main): Change signature.
21867
21868 2009-04-17 Eric Botcazou <ebotcazou@adacore.com>
21869
21870 * dwarf2out.c (field_byte_offset): Use the type size as the field size
21871 if the latter is not constant.
21872
21873 2009-04-17 David Edelsohn <edelsohn@gnu.org>
21874
21875 * dbxout.c (xcoff_debug_hooks): Add set_name_debug_nothing.
21876
21877 2009-04-17 Eric Botcazou <ebotcazou@adacore.com>
21878
21879 * dbxout.c (dbxout_block): Reinstate test on TREE_USED.
21880 * tree-ssa-live.c (remove_unused_scope_block_p): Update TREE_USED bit.
21881
21882 2009-04-17 Richard Guenther <rguenther@suse.de>
21883
21884 * tree-ssa-structalias.c (get_constraint_for_component_ref):
21885 Handle component references view-converting an invariant address.
21886
21887 2009-04-17 Adam Nemet <anemet@caviumnetworks.com>
21888
21889 * doc/tm.texi (TARGET_DEFAULT_TARGET_FLAGS,
21890 TARGET_MIN_ANCHOR_OFFSET, TARGET_MAX_ANCHOR_OFFSET,
21891 TARGET_HAVE_SRODATA_SECTION, TARGET_HAVE_TLS,
21892 TARGET_UNWIND_TABLES_DEFAULT, TARGET_TERMINATE_DW2_EH_FRAME_INFO):
21893 Use @deftypevr rather than @deftypevar.
21894
21895 2009-04-17 Richard Guenther <rguenther@suse.de>
21896
21897 * tree-ssa-forwprop.c (get_prop_dest_stmt): Clean up tuplification.
21898 (get_prop_source_stmt): Likewise.
21899 (can_propagate_from): Likewise.
21900
21901 2009-04-17 Andrew Stubbs <ams@codesourcery.com>
21902
21903 * configure.ac: Add new AC_SUBST for TM_ENDIAN_CONFIG,
21904 TM_MULTILIB_CONFIG and TM_MULTILIB_EXCEPTIONS_CONFIG.
21905 (--with-multilib-list): Add default value.
21906 * configure: Regenerate.
21907 * Makefile.in (TM_ENDIAN_CONFIG): Define.
21908 (TM_MULTILIB_CONFIG, TM_MULTILIB_EXCEPTIONS_CONFIG): Define.
21909 * config.gcc (sh-*-*): Switch to using TM_ENDIAN_CONFIG,
21910 TM_MULTILIB_CONFIG, and TM_MULTILIB_EXCEPTIONS_CONFIG.
21911 Don't add default cpu to multilib list unnecessarily, but do enable
21912 the relevant compiler option..
21913 Add support for --with-multilib-list=<blank> and
21914 --with-multilib-list=!<somelib> to supress unwanted multilibs.
21915 * config/sh/t-sh (DEFAULT_ENDIAN, OTHER_ENDIAN): New variables.
21916 (MULTILIB_ENDIAN, MULTILIB_CPUS): Delete variables.
21917 (MULTILIB_OPTIONS): Redefine using OTHER_ENDIAN and
21918 TM_MULTILIB_CONFIG.
21919 (MULTILIB_EXCEPTIONS): Add TM_MULTILIB_EXCEPTIONS_CONFIG.
21920 (MULTILIB_OSDIRNAMES): New variable.
21921 * config/sh/t-1e: Delete file.
21922 * config/sh/t-mlib-sh1: Delete file.
21923 * config/sh/t-mlib-sh2: Delete file.
21924 * config/sh/t-mlib-sh2a: Delete file.
21925 * config/sh/t-mlib-sh2a-nofpu: Delete file.
21926 * config/sh/t-mlib-sh2a-single: Delete file.
21927 * config/sh/t-mlib-sh2a-single-only: Delete file.
21928 * config/sh/t-mlib-sh2e: Delete file.
21929 * config/sh/t-mlib-sh3e: Delete file.
21930 * config/sh/t-mlib-sh4: Delete file.
21931 * config/sh/t-mlib-sh4-nofpu: Delete file.
21932 * config/sh/t-mlib-sh4-single: Delete file.
21933 * config/sh/t-mlib-sh4-single-only: Delete file.
21934 * config/sh/t-mlib-sh4a: Delete file.
21935 * config/sh/t-mlib-sh4a-nofpu: Delete file.
21936 * config/sh/t-mlib-sh4a-single: Delete file.
21937 * config/sh/t-mlib-sh4a-single-only: Delete file.
21938 * config/sh/t-mlib-sh4al: Delete file.
21939 * config/sh/t-mlib-sh5-32media: Delete file.
21940 * config/sh/t-mlib-sh5-32media-nofpu: Delete file.
21941 * config/sh/t-mlib-sh5-64media: Delete file.
21942 * config/sh/t-mlib-sh5-64media-nofpu: Delete file.
21943 * config/sh/t-mlib-sh5-compact: Delete file.
21944 * config/sh/t-mlib-sh5-compact-nofpu: Delete file.
21945 * config/sh/t-linux: Don't override MULTILIB_EXCEPTIONS.
21946 * doc/install.texi (Options specification): Add
21947 --with-multilib-list and --with-endian.
21948
21949 2009-04-17 Rafael Avila de Espindola <espindola@google.com>
21950
21951 * Makefile.in (REVISION_s): Always include quotes. Change ifdef to use
21952 REVISION_c.
21953 (OBJS-common): Add plugin-version.o.
21954 (plugin-version.o): New.
21955 * gcc-plugin.h (plugin_gcc_version): New.
21956 (plugin_default_version_check): New.
21957 (plugin_init_func, plugin_init): Add version argument.
21958 * plugin-version.c: New.
21959 * plugin.c (str_plugin_gcc_version_name): New.
21960 (try_init_one_plugin): Read plugin_gcc_version from the plugin and
21961 pass it to the init function.
21962 (plugin_default_version_check): New.
21963
21964 2009-04-17 Richard Guenther <rguenther@suse.de>
21965
21966 * tree-ssa-alias.c (refs_may_alias_p_1): Do not use TBAA
21967 for decl-vs-decl disambiguation.
21968
21969 2009-04-17 Andreas Krebbel <krebbel1@de.ibm.com>
21970
21971 * config/s390/s390.h (s390_tune_attr): New macro definition.
21972 * config/s390/s390.md (cpu attribute): Map to s390_tune_attr.
21973
21974 2009-04-17 Richard Guenther <rguenther@suse.de>
21975
21976 * tree-ssa-ccp.c (struct fold_stmt_r_data): Remove.
21977 (fold_stmt_r): Likewise.
21978 (maybe_fold_reference): New function.
21979 (fold_gimple_assign): Handle cases fold_stmt_r did.
21980 (fold_stmt): Do not use fold_stmt_r.
21981 (fold_stmt_inplace): Likewise.
21982
21983 2009-04-17 Richard Guenther <rguenther@suse.de>
21984
21985 * tree-ssa-dom.c (gimple_assign_unary_useless_conversion_p): Remove.
21986 (record_equivalences_from_stmt): Remove useless checks and
21987 simplifications.
21988 * tree-ssa-pre.c (eliminate): Avoid converting a constant if
21989 the type is already suitable.
21990
21991 2009-04-17 Paolo Bonzini <bonzini@gnu.org>
21992
21993 * config/sh/sh.h (FUNCTION_VALUE): Fix call to sh_promote_prototypes.
21994
21995 2009-04-17 Uros Bizjak <ubizjak@gmail.com>
21996
21997 * config/arm/sfp-machine.h (__gcc_CMPtype): New typedef.
21998 (CMPtype): Define as __gcc_CMPtype.
21999
22000 2009-04-17 Aurelien Jarno <aurelien@aurel32.net>
22001
22002 * config.gcc: Add soft-fp/t-softfp and i386/t-linux to tmake_file
22003 for i[34567]86-*-kfreebsd*-gnu*, x86_64-*-kfreebsd*-gnu*.
22004
22005 2009-04-17 Richard Guenther <rguenther@suse.de>
22006
22007 PR tree-optimization/39746
22008 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Remove
22009 special-casing for builtins and static variable use/def.
22010 (call_may_clobber_ref_p_1): Likewise.
22011
22012 2009-04-16 Ian Lance Taylor <iant@google.com>
22013
22014 * df.h: Include "timevar.h".
22015 (struct df_problem): Change tv_id field to timevar_id_t.
22016 * tree-pass.h: Include "timevar.h".
22017 (struct opt_pass): Change tv_id field to timevar_id_t.
22018 * timevar.h (timevar_id_t): Define TV_NONE.
22019 * passes.c (execute_one_ipa_transform_pass): Check for tv_id !=
22020 TV_NONE rather than tv_id != 0.
22021 (execute_one_pass): Likewise.
22022 * Makefile.in (DF_H): Add $(TIMEVAR_H).
22023 (TREE_PASS_H): Define. Change all instances of tree-pass.h in
22024 dependencies to $(TREE_PASS_H).
22025 * bt-load.c (pass_branch_target_load_optimize1): Set tv_id field
22026 to TV_NONE.
22027 (pass_branch_target_load_optimize2): Likewise.
22028 * cfglayout.c (pass_into_cfg_layout_mode): Likewise.
22029 (pass_outof_cfg_layout_mode): Likewise.
22030 * cgraphbuild.c (pass_remove_cgraph_callee_edges): Likewise.
22031 (pass_rebuild_cgraph_edges): Likewise.
22032 (pass_remove_cgraph_callee_edges): Likewise.
22033 * df-core.c (pass_df_initialize_opt): Likewise.
22034 (pass_df_initialize_no_opt): Likewise.
22035 (pass_df_finish): Likewise.
22036 * emit-rtl.c (pass_unshare_all_rtl): Likewise.
22037 * except.c (pass_set_nothrow_function_flags): Likewise.
22038 (pass_convert_to_eh_region_ranges): Likewise.
22039 * final.c (pass_compute_alignments): Likewise.
22040 * function.c (pass_instantiate_virtual_regs): Likewise.
22041 (pass_init_function): Likewise.
22042 (pass_leaf_regs): Likewise.
22043 (pass_match_asm_constraints): Likewise.
22044 * gimple-low.c (pass_lower_cf): Likewise.
22045 (pass_mark_used_blocks): Likewise.
22046 * init-regs.c (pass_initialize_regs): Likewise.
22047 * integrate.c (pass_initial_value_sets): Likewise.
22048 * ira.c (pass_ira): Likewise.
22049 * jump.c (pass_cleanup_barriers): Likewise.
22050 * omp-low.c (pass_expand_omp): Likewise.
22051 (pass_lower_omp): Likewise.
22052 * matrix-reorg.c (pass_ipa_matrix_reorg): Likewise.
22053 * recog.c (pass_split_all_insns): Likewise.
22054 (pass_split_after_reload): Likewise.
22055 (pass_split_before_regstack): Likewise.
22056 (pass_split_before_sched2): Likewise.
22057 (pass_split_for_shorten_branches): Likewise.
22058 * reginfo.c (pass_reginfo_init): Likewise.
22059 (pass_subregs_of_mode_init): Likewise.
22060 (pass_subregs_of_mode_finish): Likewise.
22061 * passes.c (pass_postreload): Likewise.
22062 * stack-ptr-mod.c (pass_stack_ptr_mod): Likewise.
22063 * tree-cfg.c (pass_remove_useless_stmts): Likewise.
22064 (pass_warn_function_return): Likewise.
22065 (pass_warn_function_noreturn): Likewise.
22066 * tree-complex.c (pass_lower_complex): Likewise.
22067 (pass_lower_complex_O0): Likewise.
22068 * tree-if-conv.c (pass_if_conversion): Likewise.
22069 * tree-into-ssa.c (pass_build_ssa): Likewise.
22070 * tree-mudflap.c (pass_mudflap_1): Likewise.
22071 (pass_mudflap_2): Likewise.
22072 * tree-nomudflap.c (pass_mudflap_1): Likewise.
22073 (pass_mudflap_2): Likewise.
22074 * tree-nrv.c (pass_return_slot): Likewise.
22075 * tree-object-size.c (pass_object_sizes): Likewise.
22076 * tree-optimize.c (pass_all_optimizations): Likewise.
22077 (pass_early_local_passes): Likewise.
22078 (pass_all_early_optimizations): Likewise.
22079 (pass_cleanup_cfg): Likewise.
22080 (pass_cleanup_cfg_post_optimizing): Likewise.
22081 (pass_free_datastructures): Likewise.
22082 (pass_free_cfg_annotations): Likewise.
22083 (pass_fixup_cfg): Likewise.
22084 (pass_init_datastructures): Likewise.
22085 * tree-ssa.c (pass_early_warn_uninitialized): Likewise.
22086 (pass_late_warn_uninitialized): Likewise.
22087 (pass_update_address_taken): Likewise.
22088 * tree-ssa-ccp.c (pass_fold_builtins): Likewise.
22089 * tree-ssa-math-opts.c (pass_cse_reciprocals): Likewise.
22090 (pass_cse_sincos): Likewise.
22091 (pass_convert_to_rsqrt): Likewise.
22092 * tree-ssa-structalias.c (pass_build_alias): Likewise.
22093 * tree-stdarg.c (pass_stdarg): Likewise.
22094 * tree-tailcall.c (pass_tail_recursion): Likewise.
22095 (pass_tail_calls): Likewise.
22096 * tree-vect-generic.c (pass_lower_vector): Likewise.
22097 (pass_lower_vector_ssa): Likewise.
22098 * tree-vectorizer.c (pass_ipa_increase_alignment): Likewise.
22099
22100 2009-04-16 Joseph Myers <joseph@codesourcery.com>
22101
22102 * config/mips/mips.c (mips_rtx_cost_data): Use SOFT_FP_COSTS in
22103 XLR entry.
22104 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC):
22105 Handle -march=xlr.
22106 * config/mips/xlr.md (ir_xlr_alu): Also accept insn types move,
22107 logical and signext.
22108
22109 2009-04-16 Kaz Kojima <kkojima@gcc.gnu.org>
22110
22111 PR target/39767
22112 * config/sh/predicates.md (arith_operand): Check if the operand
22113 of TRUNCATE is a REG.
22114
22115 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
22116
22117 * cfgrtl.c (delete_insn_chain_and_edges): Remove.
22118 * rtl.h: Remove the prototype for delete_insn_chain_and_edges.
22119
22120 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
22121
22122 * tree-iterator.c (tsi_split_statement_list_after,
22123 tsi_split_statement_list_before): Remove.
22124 * tree-iterator.h: Remove the prototypes for
22125 tsi_split_statement_list_after and tsi_split_statement_list_before.
22126
22127 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
22128
22129 * tree-ssa-propagate.c (stmt_makes_single_load): Remove.
22130 * tree-ssa-propagate.h: Remove the prototype for
22131 stmt_makes_single_load.
22132
22133 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
22134
22135 * emit-rtl.c (set_mem_attrs_from_reg): Remove.
22136 * rtl.h: Remove the prototype for set_mem_attrs_from_reg.
22137
22138 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
22139
22140 * tree-iterator.c (EXPR_LAST_BODY): Remove.
22141
22142 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
22143
22144 * except.c (eh_region_outer_p): Remove.
22145 * except.h: Remove the prototype for eh_region_outer_p.
22146
22147 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
22148
22149 * function.c (current_function_assembler_name): Remove.
22150 * function.h: Remove the prototype for
22151 current_function_assembler_name.
22152
22153 2009-04-16 Ian Lance Taylor <iant@google.com>
22154
22155 * rtlanal.c (alloc_reg_note): New function, broken out of add_reg_note.
22156 (add_reg_note): Call alloc_reg_note.
22157 * rtl.h (alloc_reg_note): Declare.
22158 * combine.c (try_combine): Use alloc_reg_note.
22159 (recog_for_combine, move_deaths): Likewise.
22160 (distribute_notes): Use alloc_reg_note and add_reg_note.
22161 * haifa-sched.c (sched_create_recovery_edges): Use add_reg_note.
22162 * combine-stack-adj.c (adjust_frame_related_expr): Likewise.
22163 * reload1.c (eliminate_regs_1): Use alloc_reg_note.
22164
22165 2009-04-16 Vladimir Makarov <vmakarov@redhat.com>
22166
22167 PR rtl-optimization/39762
22168 * ira-int.h (ira_register_move_cost, ira_may_move_in_cost,
22169 ira_may_move_out_cost): Add comments about way of their usage.
22170 (ira_get_register_move_cost, ira_get_may_move_cost): New functions.
22171
22172 * ira-conflicts.c (process_regs_for_copy): Use function
22173 ira_get_register_move_cost instead of global
22174 ira_register_move_cost.
22175
22176 * ira-color.c (update_copy_costs, calculate_allocno_spill_cost,
22177 color_pass, move_spill_restore, update_curr_costs): Ditto.
22178
22179 * ira-lives.c (process_single_reg_class_operands): Ditto.
22180
22181 * ira-emit.c (emit_move_list): Ditto.
22182
22183 * ira-costs.c (copy_cost): Don't call ira_init_register_move_cost.
22184 (record_reg_classes): Ditto. Use functions
22185 ira_get_register_move_cost and ira_get_may_move_cost instead of
22186 global vars ira_register_move_cost, ira_may_move_out_cost and
22187 ira_may_move_in_cost.
22188 (record_address_regs): Don't call ira_init_register_move_cost.
22189 Use function ira_get_may_move_cost instead of global
22190 ira_may_move_in_cost.
22191 (process_bb_node_for_hard_reg_moves): Use function
22192 ira_get_register_move_cost instead of global ira_register_move_cost.
22193 (ira_costs): Don't call ira_init_register_move_cost.
22194
22195 2009-04-16 Richard Guenther <rguenther@suse.de>
22196
22197 * tree-cfg.c (verify_gimple_assign_binary):
22198 Allow POINTER_PLUS_EXPR-like PLUS_EXPR for vectors.
22199 * ipa-struct-reorg.c (gen_size): Fold the built expressions.
22200 (create_general_new_stmt): Note that this function is broken.
22201
22202 2009-04-16 Rafael Avila de Espindola <espindola@google.com>
22203
22204 * common.opt (fhelp): Add Var(help_flag).
22205 * gcc-plugin.h (plugin_info): Add help.
22206 * plugin.c (plugin_name_args): Add help.
22207 (register_plugin_info): Set plugin->help.
22208 (print_help_one_plugin): New.
22209 (print_plugins_help): New.
22210 * plugin.h (print_plugins_help): New.
22211 * toplev.c (toplev_main): Call print_plugins_help if needed.
22212
22213 2009-04-16 Richard Guenther <rguenther@suse.de>
22214
22215 * gimple.c (gimple_copy): Do not clear addresses_taken bitmap.
22216 (gimple_ior_addresses_taken_1): New function.
22217 (gimple_ior_addresses_taken): Likewise.
22218 * gimple.h (struct gimple_statement_with_ops_base): Remove
22219 addresses_taken member.
22220 (gimple_ior_addresses_taken): Declare.
22221 (gimple_addresses_taken, gimple_addresses_taken_ptr,
22222 gimple_set_addresses_taken): Remove.
22223 * ipa-reference.c (mark_address): New function.
22224 (scan_stmt_for_static_refs): Use it for marking addresses taken.
22225 * tree-ssa-operands.c (add_to_addressable_set): Rename to ...
22226 (mark_address_taken): ... this. Just set TREE_ADDRESSABLE.
22227 (gimple_add_to_addresses_taken): Remove.
22228 (get_tmr_operands): Call mark_address_taken.
22229 (get_asm_expr_operands): Likewise.
22230 (get_expr_operands): Likewise.
22231 (build_ssa_operands): Do not clear the addresses_taken bitmap.
22232 (free_stmt_operands): Do not free it.
22233 * tree-ssa.c (delete_tree_ssa): Likewise.
22234 (execute_update_addresses_taken): Use gimple_ior_addresses_taken.
22235
22236 2009-04-16 Richard Guenther <rguenther@suse.de>
22237
22238 * gimple.h (walk_stmt_load_store_addr_ops): Declare.
22239 (walk_stmt_load_store_ops): Likewise.
22240 * gimple.c (get_base_loadstore): New function.
22241 (walk_stmt_load_store_addr_ops): Likewise.
22242 (walk_stmt_load_store_ops): Likewise.
22243 * ipa-pure-const.c (check_op): Simplify.
22244 (check_load, check_store): New functions.
22245 (check_stmt): Use walk_stmt_load_store_ops.
22246 * ipa-reference.c (mark_load): Adjust signature.
22247 (mark_store): Likewise.
22248 (scan_stmt_for_static_refs): Use walk_stmt_load_store_addr_ops.
22249
22250 2009-04-16 Rafael Avila de Espindola <espindola@google.com>
22251
22252 * gcc-plugin.h (plugin_event): Add PLUGIN_INFO.
22253 (plugin_info): New.
22254 * opts.c (common_handle_option): Don't call print_version.
22255 * plugin.c (plugin_name_args): Add version.
22256 (register_plugin_info): New.
22257 (register_callback): Handle PLUGIN_INFO.
22258 (try_init_one_plugin): New.
22259 (init_one_plugin): Use try_init_one_plugin. Only free plugin_name_args
22260 if failed to init.
22261 (finalize_one_plugin): New.
22262 (finalize_plugins): New.
22263 (print_one_plugin): New.
22264 (print_plugins_versions): New.
22265 * plugin.h (print_plugins_versions): New.
22266 (finalize_plugins): New.
22267 * toplev.c (compile_file): Don't call initialize_plugins.
22268 (print_version): Call print_plugins_versions.
22269 (toplev_main): Call initialize_plugins. Print version if needed.
22270 Call finalize_plugins.
22271
22272 2009-04-16 Rafael Avila de Espindola <espindola@google.com>
22273
22274 * common.opt (fversion): New.
22275 * gcc.c (print_version): New.
22276 (process_command): Don't print the version. Just set print_version.
22277 (main): Print version. Call subprocesses if print_version and
22278 verbose_flag are set.
22279 * opts.c (common_handle_option): Handle OPT_fversion.
22280
22281 2009-04-16 Richard Guenther <rguenther@suse.de>
22282 Ira Rosen <irar@il.ibm.com>
22283
22284 PR tree-optimization/39698
22285 * tree-vect-loop.c (get_initial_def_for_reduction): Use the
22286 type of the reduction variable. Only generate the def if
22287 it is needed.
22288
22289 * omp-low.c (expand_omp_for_generic): When converting to a pointer
22290 make sure to first convert to an integer of the same precision.
22291 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Retain
22292 the type of the evolution correctly in computing the new
22293 induction variable base.
22294
22295 2009-04-16 Richard Guenther <rguenther@suse.de>
22296
22297 PR middle-end/39625
22298 * tree-cfg.c (make_blocks): Split statements with to-be
22299 abnormal SSA names on the lhs.
22300
22301 2009-04-16 Paolo Bonzini <bonzini@gnu.org>
22302
22303 * c-common.c (vector_targets_convertible_p, vector_types_convertible_p):
22304 Use TYPE_VECTOR_OPAQUE instead of targetm.vector_opaque_p.
22305 * c-typeck.c (really_start_incremental_init): Likewise.
22306 * target-def.h (TARGET_VECTOR_OPAQUE_P): Remove.
22307 (TARGET_INITIALIZER): Remove it.
22308 * target.h (struct target): Remove vector_opaque_p.
22309 * tree.c (build_opaque_vector_type): New.
22310 * tree.h (TYPE_VECTOR_OPAQUE): New.
22311 (build_opaque_vector_type): Declare.
22312 * doc/tm.texi (TARGET_VECTOR_OPAQUE_P): Remove.
22313 * config/rs6000/rs6000.c (build_opaque_vector_type,
22314 rs6000_is_vector_type, TARGET_VECTOR_OPAQUE_P): Remove.
22315 (rs6000_init_builtins): Use build_opaque_vector_type for
22316 opaque_V4SI_type_node.
22317
22318 2009-04-15 Catherine Moore <clm@codesourcery.com>
22319
22320 * debug.h (set_name): Declare.
22321 * dwarf2out.c (dwarf2out_set_name): Declare.
22322 (dwarf2_debug_hooks): Add set_name.
22323 (find_AT_string): New.
22324 (add_AT_string): Call find_AT_string.
22325 (dwarf2out_set_name): New.
22326 * cp/decl.c (grokdeclarator): Call set_name.
22327 * vmsdbgout.c (vmsdbg_debug_hooks): Add set_name_debug_nothing.
22328 * debug.c (do_nothing_debug_hooks): Likewise.
22329 * dbxout.c (dbx_debug_hooks): Likewise.
22330 * sdbout.c (sdb_debug_hooks): Likewise.
22331
22332 2009-04-15 Michael Eager <eager@eagercon.com>
22333
22334 * config/rs6000/rs6000.c (rs6000_function_value): Set function return
22335 reg for single-precision FPU.
22336 * config/rs6000/rs6000.md (movsi_internal1): Only for
22337 !TARGET_SINGLE_FPU.
22338 (movsi_internal1_single): New. Add pattern to move SI values to/from
22339 single-precision FP regs.
22340
22341 2009-04-15 Richard Guenther <rguenther@suse.de>
22342
22343 * omp-low.c (lower_rec_input_clauses): Build correct address
22344 expressions.
22345 (expand_omp_for_generic): Fix multiplication type.
22346 * tree-loop-distribution.c (build_size_arg): Build a size_t argument.
22347 (generate_memset_zero): Fix types.
22348 * tree-profile.c (prepare_instrumented_value): Correctly
22349 widen a pointer.
22350
22351 2009-04-15 Ian Lance Taylor <iant@google.com>
22352
22353 * c.opt (Wenum-compare): Enable for C and Objc. Initialize to -1.
22354 * c-opts.c (c_common_handle_option): For C, set warn_enum_compare
22355 for -Wall and for -Wc++-compat.
22356 (c_common_post_options): For C++, set warn_enum_compare if not
22357 already set.
22358 * c-tree.h (struct c_expr): Add field original_type.
22359 (build_external_ref): Update declaration.
22360 * c-parser.c (c_parser_braced_init): Set original_type.
22361 (c_parser_initelt): Likewise.
22362 (c_parser_expr_no_commas): Likewise.
22363 (c_parser_conditional_expression): Likewise.
22364 (c_parser_cast_expression): Likewise.
22365 (c_parser_unary_expression): Likewise. Pull setting of
22366 original_code to top of function.
22367 (c_parser_sizeof_expression): Set original_type.
22368 (c_parser_alignof_expression): Likewise.
22369 (c_parser_postfix_expression): Likewise. Pull setting of
22370 original_code to top of function.
22371 (c_parser_postfix_expression_after_paren_type): Set original_type.
22372 (c_parser_postfix_expression_after_primary): Likewise.
22373 (c_parser_expression): Likewise.
22374 * c-typeck.c (build_external_ref): Add type parameter. Change all
22375 callers.
22376 (c_expr_sizeof_expr): Set original_type field.
22377 (parser_build_unary_op): Likewise.
22378 (parser_build_binary_op): Likewise. Optionally warn about
22379 comparisons of enums of different types.
22380 (digest_init): Set original_type field.
22381 (really_start_incremental_init): Likewise.
22382 (push_init_level, pop_init_level): Likewise.
22383 * doc/invoke.texi (Warning Options): -Wenum-compare now
22384 supported in C.
22385
22386 2009-04-15 Richard Guenther <rguenther@suse.de>
22387
22388 * tree-ssa-pre.c (eliminate): When replacing a PHI node carry
22389 out a necessary conversion.
22390 * tree-ssa-sccvn.c (run_scc_vn): Also assign value-ids to
22391 names we didn't value number.
22392 * tree-mudflap.c (mf_build_check_statement_for): Use correct types.
22393
22394 2009-04-15 Richard Guenther <rguenther@suse.de>
22395
22396 PR tree-optimization/39764
22397 * tree-ssa-ccp.c (get_value): Canonicalize value with
22398 canonicalize_float_value.
22399
22400 2009-04-15 Jan Hubicka <jh@suse.cz>
22401
22402 * builtins.def (va_start, va_end, va_copy): Fix my previous commit.
22403 Wrong version of patch.
22404
22405 2009-04-15 Jan Hubicka <jh@suse.cz>
22406
22407 * builtins.def (va_start, va_end, va_copy): Mark nothrow.
22408
22409 2009-04-15 Nathan Sidwell <nathan@codesourcery.com>
22410
22411 * config/rs6000/rs6000.c (rs6000_init_builtins): Set TYPE_NAME of
22412 our distinct integral and vector types.
22413
22414 2009-04-15 Rafael Avila de Espindola <espindola@google.com>
22415
22416 * class.c (build_vtbl_ref_1): Remove call to assemble_external.
22417 * init.c (build_vtbl_address): Remove call to assemble_external.
22418
22419 2009-04-14 Daniel Jacobowitz <dan@codesourcery.com>
22420
22421 * config/rs6000/rs6000.c (rs6000_dwarf_register_span): Fix debug
22422 output for other floating point modes.
22423
22424 2009-04-14 Diego Novillo <dnovillo@google.com>
22425
22426 * diagnostic.c (diagnostic_report_diagnostic): Do not
22427 warn about loaded plugins for DK_ERROR and DK_WARNING.
22428 * c-decl.c (declspecs_add_type): Move call to
22429 invoke_plugin_callbacks ...
22430 * c-parser.c (c_parser_declspecs): ... here.
22431 * plugin.c (dump_active_plugins): Tidy output.
22432
22433 2009-04-14 Diego Novillo <dnovillo@google.com>
22434 Le-Chun Wu <lcwu@google.com>
22435
22436 * configure.ac: Add --enable-plugin support.
22437 Define ENABLE_PLUGIN and PLUGINLIBS when specified.
22438 * Makefile.in (PLUGIN_H): Define.
22439 Export ENABLE_PLUGIN and GMPINC to site.exp.
22440 Add PLUGINLIBS to link command.
22441 Add/modify dependencies for plugin.o and files including plugin.h.
22442 (plugin.o): New.
22443 * config.in: Regenerate.
22444
22445 * opts.c (common_handle_option): Handle OPT_fplugin_ and
22446 OPT_fplugin_arg_.
22447
22448 2009-04-14 Le-Chun Wu <lcwu@google.com>
22449
22450 * tree-pass.h (register_one_dump_file): Add a prototype for
22451 register_one_dump_file.
22452 * toplev.c (compile_file): Call initialize_plugins.
22453 (do_compile): Call invoke_plugin_callbacks.
22454 (toplev_main): Call invoke_plugin_callbacks.
22455 * common.opt: Add -fplugin= and -fplugin-arg-.
22456 * gcc-plugin.h: New public header file for plugins to include.
22457 * plugin.c: New source file.
22458 * plugin.h: New internal header file.
22459 * passes.c (register_one_dump_file): Make it external.
22460
22461 * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks.
22462
22463 2009-04-14 Diego Novillo <dnovillo@google.com>
22464
22465 * doc/plugins.texi: New.
22466 * doc/gccint.texi: Add reference to Plugins chapter.
22467 * doc/invoke.texi: Document -fplugin and -fplugin-arg
22468 * diagnostic.c (diagnostic_report_diagnostic): Warn about
22469 loaded plugins, if any.
22470 * timevar.def (TV_PLUGIN_INIT): Define.
22471 (TV_PLUGIN_RUN): Define.
22472 * plugin.c: Include timevar.h
22473 (plugins_active_p): New.
22474 (dump_active_plugins): New.
22475 (debug_active_plugins): New.
22476
22477 2009-04-14 Joseph Myers <joseph@codesourcery.com>
22478
22479 * config/sol2.h (LINK_ARCH32_SPEC_BASE): Use %R with absolute
22480 library paths.
22481 * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Likewise.
22482
22483 2009-04-14 Kazu Hirata <kazu@codesourcery.com>
22484
22485 * config/arm/arm.c (arm_rtx_costs_1): Treat a minus with a shift
22486 the same as a minus without a shift.
22487
22488 2009-04-14 Nick Clifton <nickc@redhat.com>
22489
22490 * config/stormy16/stormy16.md (ineqbranch_1): Do not assume that
22491 comparisons with small integers will always produce a short
22492 branch.
22493
22494 2009-04-14 Rafael Avila de Espindola <espindola@google.com>
22495
22496 Merge:
22497 2008-12-19 Diego Novillo <dnovillo@google.com>
22498
22499 * cgraph.c (dump_cgraph_node): Show memory address of NODE.
22500
22501 2009-04-14 Richard Guenther <rguenther@suse.de>
22502
22503 * tree-cfg.c (verify_gimple_assign_unary): Adjust vector code
22504 verification.
22505 (verify_gimple_assign_binary): Likewise. Handle shifts and
22506 rotates correctly.
22507 (verify_gimple_phi): Print the mismatched argument position.
22508 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
22509 Fix types.
22510 (vect_update_init_of_dr): Likewise.
22511 * matrix-reorg.c (transform_access_sites): Do what the
22512 comment suggests.
22513 * omp-low.c (expand_omp_atomic_pipeline): Use the correct types.
22514
22515 2009-04-13 Michael Eager <eager@eagercon.com>
22516
22517 * config/rs6000/rs6000-c.c: generate defines if rs6000_xilinx_fpu:
22518 _XFPU, _XFPU_SP_LITE, _XFPU_SP_FULL, _XFPU_DP_LITE, _XFPU_DP_FULL
22519 * config/rs6000/xilinx.h: New. Spec for powerpc-xilinx-eabi
22520 * config.gcc (powerpc-xilinx-eabi): add xilinx.h to tm_file,
22521 remove duplicate config
22522
22523 2009-04-13 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
22524
22525 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Dump
22526 file_name:line_number type locator of the call site.
22527
22528 2009-04-13 Vladimir Makarov <vmakarov@redhat.com>
22529
22530 * genautomata.c: Put blank after comma.
22531 (automaton_decls): New.
22532 (struct unit_usage): Add comments to member next.
22533 (store_alt_unit_usage): Keep the list ordered.
22534 (unit_present_on_list_p, equal_alternatives_p): New.
22535 (check_regexp_units_distribution): Check units distribution
22536 correctness correctly.
22537 (main): Don't write automata if error is found. Return correct
22538 exit code.
22539
22540 * config/m68k/cf.md (cfv4_ds): Remove.
22541 (cfv4_pOEP1, cfv4_sOEP1, cfv4_pOEP2,cfv4_sOEP2, cfv4_pOEP3,
22542 cfv4_sOEP3): Assign to cfv4_oep instead of cfv4_ds.
22543
22544 * config/rs6000/power4.md (lsuq_power4, iq_power4, fpq_power4,
22545 power4-load-ext, power4-store, power4-store-update,
22546 power4-fpstore, power4-fpstore-update, power4-two, power4-three,
22547 power4-insert, power4-compare, power4-lmul-cmp, power4-imul-cmp,
22548 power4-lmul, , power4-imul, power4-imul3, power4-sdiv,
22549 power4-sqrt, power4-isync): Modify reservation to make correct
22550 unit distribution to automata.
22551
22552 * config/rs6000/power5.md (iq_power5, fpq_power5, power5-store,
22553 power5-store-update, power5-two, power5-three, power5-lmul,
22554 power5-imul, power5-imul3, power5-sdiv, power5-sqrt): Ditto.
22555
22556 2009-04-13 Adam Nemet <anemet@caviumnetworks.com>
22557
22558 * except.c (pass_set_nothrow_function_flags): Set name and add
22559 TODO_dump_func.
22560 (set_nothrow_function_flags): Mention in the dump file when
22561 changing a function to nothrow.
22562
22563 2009-04-13 Ozkan Sezer <sezeroz@gmail.com>
22564
22565 PR/39066
22566 * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Use __SIZE_TYPE__
22567 instead of unsigned long.
22568
22569 2009-04-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22570
22571 * config/arm/arm.c (return_used_this_function): Remove.
22572 (arm_output_function_prologue): Remove use of
22573 return_used_this_function.
22574 (output_return_instruction): Replace use of
22575 return_used_this_function
22576 by cfun->machine->return_used_this_function.
22577 (arm_output_epilogue): Likewise.
22578 (arm_output_function_epilogue): Likewise.
22579 (thumb_unexpanded_epilogue): Likewise.
22580 * config/arm/arm.h (struct machine_function):
22581 New member return_used_this_function.
22582
22583 2009-04-12 Mark Mitchell <mark@codesourcery.com>
22584
22585 * doc/install.texi: Correct description of default directory for
22586 --with-gxx-include-dir.
22587
22588 2009-04-12 Eric Botcazou <ebotcazou@adacore.com>
22589
22590 * fold-const.c (build_range_check): Properly deal with enumeral and
22591 boolean base types.
22592
22593 2009-04-12 Steven Bosscher <steven@gcc.gnu.org>
22594
22595 * doc/invoke.texi (max_gcse_passes): Remove documentation.
22596 * params.def (PARAM_MAX_GCSE_PASSES): Remove.
22597 * params.h (MAX_GCSE_PASSES): Remove.
22598 * gcse.c (gcse_main): Run CPROP1, PRE or HOIST, and CPROP2
22599 in sequence. Remove ability to run multiple passes.
22600 (bypass_jumps): Report run as third CPROP pass.
22601
22602 2009-04-12 Adam Nemet <anemet@caviumnetworks.com>
22603
22604 PR middle-end/39651
22605 * except.c (can_throw_external): Look at each insn in a SEQUENCE
22606 when deciding whether the whole SEQUENCE can throw.
22607
22608 2009-04-12 Uros Bizjak <ubizjak@gmail.com>
22609
22610 PR target/39740
22611 * config/alpha/predicates.md (local_symbolic_operand): Return 1 for
22612 offseted label references.
22613
22614 2009-04-11 Jan Hubicka <jh@suse.cz>
22615
22616 * tree-ssa-pre.c (eliminate): Fix call of update_stmt.
22617
22618 2009-04-11 Richard Guenther <rguenther@suse.de>
22619
22620 PR middle-end/39732
22621 * tree-inline.c (declare_return_variable): Mark DECL_BY_REFERENCE
22622 return variables as TREE_ADDRESSABLE.
22623
22624 2009-04-11 Richard Guenther <rguenther@suse.de>
22625
22626 PR tree-optimization/39713
22627 * tree-ssa-sccvn.c (vn_get_expr_for): Make sure built
22628 reference trees have SSA_NAME operands.
22629
22630 2009-04-11 Richard Guenther <rguenther@suse.de>
22631
22632 PR c/39712
22633 * c-gimplify.c (c_gimplify_expr): Adjust check for mismatched
22634 address expressions.
22635
22636 2009-04-11 Dave Korn <dave.korn.cygwin@gmail.com>
22637
22638 * config/i386/cygwin-stdint.h (INT_LEAST32_TYPE): Update to
22639 match changes in Cygwin 1.7
22640 (UINT_LEAST32_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE,
22641 UINT_FAST16_TYPE, UINT_FAST32_TYPE): Likewise.
22642
22643 2009-04-10 Paolo Bonzini <bonzini@gnu.org>
22644
22645 PR tree-optimization/39701
22646 * doc/invoke.texi (Optimization Options): Document change in
22647 meaning and initialization of -fdelete-null-pointer-checks.
22648
22649 2009-04-10 H.J. Lu <hongjiu.lu@intel.com>
22650
22651 PR middle-end/39701
22652 * common.opt (-fdelete-null-pointer-checks): Initialize to 1.
22653
22654 * opts.c (decode_options): Don't set flag_delete_null_pointer_checks
22655 here.
22656
22657 * doc/invoke.texi: Update -fdelete-null-pointer-checks.
22658
22659 2009-04-10 Chao-ying Fu <fu@mips.com>
22660
22661 * doc/tm.texi (Instruction Output): Document
22662 TARGET_ASM_FINAL_POSTSCAN_INSN.
22663 * target.h (final_postscan_insn): New field in asm_out.
22664 * target-def.h (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
22665 (TARGET_ASM_OUT): Add TARGET_ASM_FINAL_POSTSCAN_INSN.
22666 * final.c (final_scan_insn): Call
22667 targetm.asm_out.final_postscan_insn after outputting
22668 an asm macro and a normal instruction.
22669
22670 * config/mips/mips.h (FINAL_PRESCAN_INSN): New define.
22671 * config/mips/mips-protos.h (mips_final_prescan_insn): Declare.
22672 * config/mips/mips.c (mips_at_reg_p): New for_each_rtx callback.
22673 (mips_final_prescan_insn, mips_final_postscan_insn): New functions.
22674 (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
22675
22676 2009-04-10 Paolo Bonzini <bonzini@gnu.org>
22677
22678 PR middle-end/39701
22679 * fold-const.c (tree_single_nonzero_warnv_p): Pass non-static
22680 variables as non-NULL even with -fdelete-null-pointer-checks.
22681
22682 2009-04-10 H.J. Lu <hongjiu.lu@intel.com>
22683
22684 * config/rs6000/darwin-vecsave.asm: Remove extra "*/".
22685
22686 2009-04-09 H.J. Lu <hongjiu.lu@intel.com>
22687
22688 PR target/39678
22689 * config/i386/i386.c (classify_argument): Handle SCmode with
22690 (bit_offset % 64) != 0.
22691
22692 2009-04-09 Sandra Loosemore <sandra@codesourcery.com>
22693
22694 * doc/invoke.texi (Optimize Options): Add cross-reference to
22695 -Q --help=optimizers examples.
22696
22697 2009-04-10 Ben Elliston <bje@au.ibm.com>
22698
22699 PR target/36800
22700 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Do not set
22701 regalign for the reg == fpr and TDmode case.
22702
22703 2009-04-09 David Ayers <ayers@fsfe.org>
22704
22705 PR objc/29200
22706 * objc/objc-act.c (warn_with_method): Remove helper function.
22707 (check_duplicates): Call warning and inform directly.
22708 (really_start_method): Likewise.
22709
22710 2009-04-09 Paolo Bonzini <bonzini@gnu.org>
22711
22712 * expmed.c (expand_divmod): Always use a comparison for a division
22713 by a large unsigned integer.
22714
22715 * fold-const.c (tree_single_nonzero_warnv_p): Always treat decls
22716 for things others than variables or functions as nonzero.
22717
22718 2009-04-09 Nick Clifton <nickc@redhat.com>
22719
22720 * unwind-compat.c: Change copyright header to refer to version
22721 3 of the GNU General Public License with version 3.1 of the
22722 GCC Runtime Library Exception and to point readers at the
22723 COPYING3 and COPYING3.RUNTIME files and the FSF's license web page.
22724 * config/alpha/crtfastmath.c: Likewise.
22725 * config/alpha/linux-unwind.h: Likewise.
22726 * config/alpha/qrnnd.asm: Likewise.
22727 * config/alpha/vms-crt0-64.c: Likewise.
22728 * config/alpha/vms-crt0.c: Likewise.
22729 * config/alpha/vms-dwarf2.asm: Likewise.
22730 * config/alpha/vms-dwarf2eh.asm: Likewise.
22731 * config/alpha/vms-psxcrt0-64.c: Likewise.
22732 * config/alpha/vms-psxcrt0.c: Likewise.
22733 * config/alpha/vms_tramp.asm: Likewise.
22734 * config/arc/initfini.c: Likewise.
22735 * config/arc/lib1funcs.asm: Likewise.
22736 * config/arm/bpabi-v6m.S: Likewise.
22737 * config/arm/bpabi.S: Likewise.
22738 * config/arm/bpabi.c: Likewise.
22739 * config/arm/crti.asm: Likewise.
22740 * config/arm/crtn.asm: Likewise.
22741 * config/arm/ieee754-df.S: Likewise.
22742 * config/arm/ieee754-sf.S: Likewise.
22743 * config/arm/lib1funcs.asm: Likewise.
22744 * config/arm/libunwind.S: Likewise.
22745 * config/arm/linux-atomic.c: Likewise.
22746 * config/arm/mmintrin.h: Likewise.
22747 * config/arm/pr-support.c: Likewise.
22748 * config/arm/unaligned-funcs.c: Likewise.
22749 * config/arm/unwind-arm.c: Likewise.
22750 * config/arm/unwind-arm.h: Likewise.
22751 * config/avr/libgcc.S: Likewise.
22752 * config/bfin/crti.s: Likewise.
22753 * config/bfin/crtlibid.s: Likewise.
22754 * config/bfin/crtn.s: Likewise.
22755 * config/bfin/lib1funcs.asm: Likewise.
22756 * config/bfin/linux-unwind.h: Likewise.
22757 * config/cris/arit.c: Likewise.
22758 * config/cris/cris_abi_symbol.c: Likewise.
22759 * config/darwin-64.c: Likewise.
22760 * config/darwin-crt2.c: Likewise.
22761 * config/darwin-crt3.c: Likewise.
22762 * config/darwin.h: Likewise.
22763 * config/dbxelf.h: Likewise.
22764 * config/dfp-bit.c: Likewise.
22765 * config/dfp-bit.h: Likewise.
22766 * config/elfos.h: Likewise.
22767 * config/fixed-bit.c: Likewise.
22768 * config/fixed-bit.h: Likewise.
22769 * config/fp-bit.c: Likewise.
22770 * config/fp-bit.h: Likewise.
22771 * config/fr30/crti.asm: Likewise.
22772 * config/fr30/crtn.asm: Likewise.
22773 * config/fr30/lib1funcs.asm: Likewise.
22774 * config/freebsd-spec.h: Likewise.
22775 * config/frv/cmovd.c: Likewise.
22776 * config/frv/cmovh.c: Likewise.
22777 * config/frv/cmovw.c: Likewise.
22778 * config/frv/frvbegin.c: Likewise.
22779 * config/frv/frvend.c: Likewise.
22780 * config/frv/lib1funcs.asm: Likewise.
22781 * config/glibc-stdint.h: Likewise.
22782 * config/h8300/clzhi2.c: Likewise.
22783 * config/h8300/crti.asm: Likewise.
22784 * config/h8300/crtn.asm: Likewise.
22785 * config/h8300/ctzhi2.c: Likewise.
22786 * config/h8300/fixunssfsi.c: Likewise.
22787 * config/h8300/lib1funcs.asm: Likewise.
22788 * config/h8300/parityhi2.c: Likewise.
22789 * config/h8300/popcounthi2.c: Likewise.
22790 * config/i386/ammintrin.h: Likewise.
22791 * config/i386/att.h: Likewise.
22792 * config/i386/avxintrin.h: Likewise.
22793 * config/i386/biarch64.h: Likewise.
22794 * config/i386/bmmintrin.h: Likewise.
22795 * config/i386/cpuid.h: Likewise.
22796 * config/i386/cross-stdarg.h: Likewise.
22797 * config/i386/crtfastmath.c: Likewise.
22798 * config/i386/crtprec.c: Likewise.
22799 * config/i386/cygming-crtbegin.c: Likewise.
22800 * config/i386/cygming-crtend.c: Likewise.
22801 * config/i386/cygwin.asm: Likewise.
22802 * config/i386/emmintrin.h: Likewise.
22803 * config/i386/gmm_malloc.h: Likewise.
22804 * config/i386/gthr-win32.c: Likewise.
22805 * config/i386/i386.h: Likewise.
22806 * config/i386/immintrin.h: Likewise.
22807 * config/i386/linux-unwind.h: Likewise.
22808 * config/i386/linux64.h: Likewise.
22809 * config/i386/mm3dnow.h: Likewise.
22810 * config/i386/mmintrin-common.h: Likewise.
22811 * config/i386/mmintrin.h: Likewise.
22812 * config/i386/nmmintrin.h: Likewise.
22813 * config/i386/pmm_malloc.h: Likewise.
22814 * config/i386/pmmintrin.h: Likewise.
22815 * config/i386/smmintrin.h: Likewise.
22816 * config/i386/sol2-c1.asm: Likewise.
22817 * config/i386/sol2-ci.asm: Likewise.
22818 * config/i386/sol2-cn.asm: Likewise.
22819 * config/i386/sol2-gc1.asm: Likewise.
22820 * config/i386/tmmintrin.h: Likewise.
22821 * config/i386/unix.h: Likewise.
22822 * config/i386/w32-unwind.h: Likewise.
22823 * config/i386/wmmintrin.h: Likewise.
22824 * config/i386/x86-64.h: Likewise.
22825 * config/i386/x86intrin.h: Likewise.
22826 * config/i386/xmmintrin.h: Likewise.
22827 * config/ia64/crtbegin.asm: Likewise.
22828 * config/ia64/crtend.asm: Likewise.
22829 * config/ia64/crtfastmath.c: Likewise.
22830 * config/ia64/crti.asm: Likewise.
22831 * config/ia64/crtn.asm: Likewise.
22832 * config/ia64/fde-glibc.c: Likewise.
22833 * config/ia64/lib1funcs.asm: Likewise.
22834 * config/ia64/linux-unwind.h: Likewise.
22835 * config/ia64/quadlib.c: Likewise.
22836 * config/ia64/unwind-ia64.c: Likewise.
22837 * config/linux.h: Likewise.
22838 * config/m32c/m32c-lib1.S: Likewise.
22839 * config/m32c/m32c-lib2-trapv.c: Likewise.
22840 * config/m32c/m32c-lib2.c: Likewise.
22841 * config/m32r/initfini.c: Likewise.
22842 * config/m68hc11/larith.asm: Likewise.
22843 * config/m68hc11/m68hc11-crt0.S: Likewise.
22844 * config/m68k/cf.md: Likewise.
22845 * config/m68k/crti.s: Likewise.
22846 * config/m68k/crtn.s: Likewise.
22847 * config/m68k/lb1sf68.asm: Likewise.
22848 * config/m68k/linux-unwind.h: Likewise.
22849 * config/mcore/crti.asm: Likewise.
22850 * config/mcore/crtn.asm: Likewise.
22851 * config/mcore/lib1.asm: Likewise.
22852 * config/mips/linux-unwind.h: Likewise.
22853 * config/mips/loongson.h: Likewise.
22854 * config/mips/mips16.S: Likewise.
22855 * config/mmix/crti.asm: Likewise.
22856 * config/mmix/crtn.asm: Likewise.
22857 * config/pa/fptr.c: Likewise.
22858 * config/pa/hpux-unwind.h: Likewise.
22859 * config/pa/lib2funcs.asm: Likewise.
22860 * config/pa/linux-atomic.c: Likewise.
22861 * config/pa/linux-unwind.h: Likewise.
22862 * config/pa/milli64.S: Likewise.
22863 * config/pa/quadlib.c: Likewise.
22864 * config/pa/stublib.c: Likewise.
22865 * config/picochip/libgccExtras/adddi3.asm: Likewise.
22866 * config/picochip/libgccExtras/ashlsi3.asm: Likewise.
22867 * config/picochip/libgccExtras/ashlsi3.c: Likewise.
22868 * config/picochip/libgccExtras/ashrsi3.asm: Likewise.
22869 * config/picochip/libgccExtras/ashrsi3.c: Likewise.
22870 * config/picochip/libgccExtras/cmpsi2.asm: Likewise.
22871 * config/picochip/libgccExtras/divmod15.asm: Likewise.
22872 * config/picochip/libgccExtras/divmodhi4.asm: Likewise.
22873 * config/picochip/libgccExtras/divmodsi4.asm: Likewise.
22874 * config/picochip/libgccExtras/longjmp.asm: Likewise.
22875 * config/picochip/libgccExtras/lshrsi3.asm: Likewise.
22876 * config/picochip/libgccExtras/lshrsi3.c: Likewise.
22877 * config/picochip/libgccExtras/parityhi2.asm: Likewise.
22878 * config/picochip/libgccExtras/popcounthi2.asm: Likewise.
22879 * config/picochip/libgccExtras/setjmp.asm: Likewise.
22880 * config/picochip/libgccExtras/subdi3.asm: Likewise.
22881 * config/picochip/libgccExtras/ucmpsi2.asm: Likewise.
22882 * config/picochip/libgccExtras/udivmodhi4.asm: Likewise.
22883 * config/picochip/libgccExtras/udivmodsi4.asm: Likewise.
22884 * config/rs6000/750cl.h: Likewise.
22885 * config/rs6000/altivec.h: Likewise.
22886 * config/rs6000/biarch64.h: Likewise.
22887 * config/rs6000/crtresfpr.asm: Likewise.
22888 * config/rs6000/crtresgpr.asm: Likewise.
22889 * config/rs6000/crtresxfpr.asm: Likewise.
22890 * config/rs6000/crtresxgpr.asm: Likewise.
22891 * config/rs6000/crtsavfpr.asm: Likewise.
22892 * config/rs6000/crtsavgpr.asm: Likewise.
22893 * config/rs6000/darwin-asm.h: Likewise.
22894 * config/rs6000/darwin-fallback.c: Likewise.
22895 * config/rs6000/darwin-fpsave.asm: Likewise.
22896 * config/rs6000/darwin-ldouble.c: Likewise.
22897 * config/rs6000/darwin-tramp.asm: Likewise.
22898 * config/rs6000/darwin-unwind.h: Likewise.
22899 * config/rs6000/darwin-vecsave.asm: Likewise.
22900 * config/rs6000/darwin-world.asm: Likewise.
22901 * config/rs6000/e500crtres32gpr.asm: Likewise.
22902 * config/rs6000/e500crtres64gpr.asm: Likewise.
22903 * config/rs6000/e500crtres64gprctr.asm: Likewise.
22904 * config/rs6000/e500crtrest32gpr.asm: Likewise.
22905 * config/rs6000/e500crtrest64gpr.asm: Likewise.
22906 * config/rs6000/e500crtresx32gpr.asm: Likewise.
22907 * config/rs6000/e500crtresx64gpr.asm: Likewise.
22908 * config/rs6000/e500crtsav32gpr.asm: Likewise.
22909 * config/rs6000/e500crtsav64gpr.asm: Likewise.
22910 * config/rs6000/e500crtsav64gprctr.asm: Likewise.
22911 * config/rs6000/e500crtsavg32gpr.asm: Likewise.
22912 * config/rs6000/e500crtsavg64gpr.asm: Likewise.
22913 * config/rs6000/e500crtsavg64gprctr.asm: Likewise.
22914 * config/rs6000/eabi-ci.asm: Likewise.
22915 * config/rs6000/eabi-cn.asm: Likewise.
22916 * config/rs6000/eabi.asm: Likewise.
22917 * config/rs6000/linux-unwind.h: Likewise.
22918 * config/rs6000/linux64.h: Likewise.
22919 * config/rs6000/paired.h: Likewise.
22920 * config/rs6000/paired.md: Likewise.
22921 * config/rs6000/ppc64-fp.c: Likewise.
22922 * config/rs6000/ppu_intrinsics.h: Likewise.
22923 * config/rs6000/rs6000.h: Likewise.
22924 * config/rs6000/si2vmx.h: Likewise.
22925 * config/rs6000/sol-ci.asm: Likewise.
22926 * config/rs6000/sol-cn.asm: Likewise.
22927 * config/rs6000/spe.h: Likewise.
22928 * config/rs6000/spu2vmx.h: Likewise.
22929 * config/rs6000/sysv4.h: Likewise.
22930 * config/rs6000/tramp.asm: Likewise.
22931 * config/rs6000/vec_types.h: Likewise.
22932 * config/s390/linux-unwind.h: Likewise.
22933 * config/s390/tpf-unwind.h: Likewise.
22934 * config/score/crti.asm: Likewise.
22935 * config/score/crtn.asm: Likewise.
22936 * config/sh/crt1.asm: Likewise.
22937 * config/sh/crti.asm: Likewise.
22938 * config/sh/crtn.asm: Likewise.
22939 * config/sh/divtab-sh4-300.c: Likewise.
22940 * config/sh/divtab-sh4.c: Likewise.
22941 * config/sh/divtab.c: Likewise.
22942 * config/sh/lib1funcs-4-300.asm: Likewise.
22943 * config/sh/lib1funcs-Os-4-200.asm: Likewise.
22944 * config/sh/lib1funcs.asm: Likewise.
22945 * config/sh/lib1funcs.h: Likewise.
22946 * config/sh/linux-atomic.asm: Likewise.
22947 * config/sh/linux-unwind.h: Likewise.
22948 * config/sh/shmedia.h: Likewise.
22949 * config/sh/sshmedia.h: Likewise.
22950 * config/sh/ushmedia.h: Likewise.
22951 * config/sparc/crtfastmath.c: Likewise.
22952 * config/sparc/linux-unwind.h: Likewise.
22953 * config/sparc/sol2-c1.asm: Likewise.
22954 * config/sparc/sol2-ci.asm: Likewise.
22955 * config/sparc/sol2-cn.asm: Likewise.
22956 * config/spu/divmodti4.c: Likewise.
22957 * config/spu/divv2df3.c: Likewise.
22958 * config/spu/float_disf.c: Likewise.
22959 * config/spu/float_unsdidf.c: Likewise.
22960 * config/spu/float_unsdisf.c: Likewise.
22961 * config/spu/float_unssidf.c: Likewise.
22962 * config/spu/mfc_multi_tag_release.c: Likewise.
22963 * config/spu/mfc_multi_tag_reserve.c: Likewise.
22964 * config/spu/mfc_tag_release.c: Likewise.
22965 * config/spu/mfc_tag_reserve.c: Likewise.
22966 * config/spu/mfc_tag_table.c: Likewise.
22967 * config/spu/multi3.c: Likewise.
22968 * config/spu/spu_internals.h: Likewise.
22969 * config/spu/spu_intrinsics.h: Likewise.
22970 * config/spu/spu_mfcio.h: Likewise.
22971 * config/spu/vec_types.h: Likewise.
22972 * config/spu/vmx2spu.h: Likewise.
22973 * config/stormy16/stormy16-lib2.c: Likewise.
22974 * config/svr4.h: Likewise.
22975 * config/sync.c: Likewise.
22976 * config/v850/lib1funcs.asm: Likewise.
22977 * config/vxlib-tls.c: Likewise.
22978 * config/vxlib.c: Likewise.
22979 * config/vxworks-dummy.h: Likewise.
22980 * config/xtensa/crti.asm: Likewise.
22981 * config/xtensa/crtn.asm: Likewise.
22982 * config/xtensa/ieee754-df.S: Likewise.
22983 * config/xtensa/ieee754-sf.S: Likewise.
22984 * config/xtensa/lib1funcs.asm: Likewise.
22985 * config/xtensa/lib2funcs.S: Likewise.
22986 * config/xtensa/linux-unwind.h: Likewise.
22987 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
22988 * config/xtensa/unwind-dw2-xtensa.h: Likewise.
22989 * coretypes.h: Likewise.
22990 * crtstuff.c: Likewise.
22991 * defaults.h: Likewise.
22992 * dwarf2.h: Likewise.
22993 * emutls.c: Likewise.
22994 * gbl-ctors.h: Likewise.
22995 * gcov-io.h: Likewise.
22996 * ginclude/float.h: Likewise.
22997 * ginclude/iso646.h: Likewise.
22998 * ginclude/stdarg.h: Likewise.
22999 * ginclude/stdbool.h: Likewise.
23000 * ginclude/stddef.h: Likewise.
23001 * ginclude/stdfix.h: Likewise.
23002 * ginclude/stdint-gcc.h: Likewise.
23003 * ginclude/tgmath.h: Likewise.
23004 * gthr-aix.h: Likewise.
23005 * gthr-dce.h: Likewise.
23006 * gthr-gnat.c: Likewise.
23007 * gthr-gnat.h: Likewise.
23008 * gthr-lynx.h: Likewise.
23009 * gthr-mipssde.h: Likewise.
23010 * gthr-nks.h: Likewise.
23011 * gthr-posix.c: Likewise.
23012 * gthr-posix.h: Likewise.
23013 * gthr-posix95.h: Likewise.
23014 * gthr-rtems.h: Likewise.
23015 * gthr-single.h: Likewise.
23016 * gthr-solaris.h: Likewise.
23017 * gthr-tpf.h: Likewise.
23018 * gthr-vxworks.h: Likewise.
23019 * gthr-win32.h: Likewise.
23020 * gthr.h: Likewise.
23021 * libgcc2.c: Likewise.
23022 * libgcc2.h: Likewise.
23023 * libgcov.c: Likewise.
23024 * tsystem.h: Likewise.
23025 * typeclass.h: Likewise.
23026 * unwind-c.c: Likewise.
23027 * unwind-compat.h: Likewise.
23028 * unwind-dw2-fde-compat.c: Likewise.
23029 * unwind-dw2-fde-darwin.c: Likewise.
23030 * unwind-dw2-fde-glibc.c: Likewise.
23031 * unwind-dw2-fde.c: Likewise.
23032 * unwind-dw2-fde.h: Likewise.
23033 * unwind-dw2.c: Likewise.
23034 * unwind-dw2.h: Likewise.
23035 * unwind-generic.h: Likewise.
23036 * unwind-pe.h: Likewise.
23037 * unwind-sjlj.c: Likewise.
23038 * unwind.inc: Likewise.
23039 * config/arm/neon-gen.ml: Change generated copyright header to
23040 refer to version 3 of the GNU General Public License with
23041 version 3.1 of the GCC Runtime Library Exception and to point
23042 readers at the COPYING3 and COPYING3.RUNTIME files and the
23043 FSF's license web page.
23044 * config/arm/arm_neon.h: Regenerate.
23045
23046 2009-04-09 Jakub Jelinek <jakub@redhat.com>
23047
23048 * config/cris/cris.md: Change copyright header to refer to version
23049 3 of the GNU General Public License.
23050 * doc/install.texi2html: Change copyright header to refer to version
23051 3 of the GNU General Public License and to point readers at the
23052 COPYING3 file and the FSF's license web page.
23053 * config/vax/linux.h: Likewise.
23054
23055 2009-04-09 Paolo Bonzini <bonzini@gnu.org>
23056
23057 * config/i386/i386.md (cmpcc): New.
23058 * config/i386/sync.md (sync_compare_and_swap*): Set FLAGS_REG.
23059 (sync_compare_and_swap_cc*): Delete.
23060
23061 * config/s390/s390.c (s390_compare_emitted): Remove.
23062 (s390_emit_compare): Handle MODE_CC s390_compare_op0 like
23063 s390_compare_emitted used to be handled. Assert that modes match.
23064 (s390_emit_compare_and_swap): Use s390_emit_compare, do not
23065 refer to sync_compare_and_swap_ccsi.
23066 * config/s390/s390.h (s390_compare_emitted): Remove.
23067 * config/s390/s390.md (seq): Look for MODE_CC s390_compare_op0
23068 instead of s390_compare_emitted.
23069 (stack_protect_test, sync_compare_and_swap_cc): Set s390_compare_op0
23070 instead of s390_compare_emitted.
23071 * config/s390/s390.md (cmpcc): New.
23072 (sync_compare_and_swapqi, sync_compare_and_swaphi): Clobber
23073 CC_REGNUM, do not pretend it's set.
23074 (sync_compare_and_swap_cc*): Delete.
23075 * config/s390/predicates.md (cc_reg_operand): New.
23076
23077 * expr.c (sync_compare_and_swap_cc): Delete.
23078 * optabs.h (sync_compare_and_swap_cc): Delete.
23079 * optabs.c (prepare_cmp_insn): Ignore which specific CCmode
23080 is being used with can_compare_p.
23081 (emit_cmp_and_jump_insn_1): Likewise when looking in the optab.
23082 (find_cc_set): New.
23083 (expand_bool_compare_and_swap): Do not use sync_compare_and_swap_cc,
23084 look for a MODE_CC set instead. Use emit_store_flag.
23085 (expand_compare_and_swap_loop): Likewise, with some additional
23086 complication to avoid a force_reg when useless. Use
23087 emit_cmp_and_jump_insns.
23088 * genopinit.c (optabs): Delete sync_compare_and_swap_cc.
23089 * doc/md.texi (sync_compare_and_swap_cc): Merge with
23090 sync_compare_and_swap documentation.
23091
23092 2009-04-09 Jan Hubicka <jh@suse.cz>
23093
23094 * except.c (find_prev_try): Break out from ....
23095 (duplicate_eh_regions): ... here; properly update prev_try pointers
23096 when duplication part of tree.
23097 (dump_eh_tree): Improve dumping.
23098 (verify_eh_region): New.
23099 (verify_eh_tree): Use it.
23100
23101 2009-04-06 Richard Guenther <rguenther@suse.de>
23102
23103 * c-gimplify.c (c_gimplify_expr): Fix the invalid GENERIC
23104 &ARRAY addresses by adjusting their types and prepending
23105 a conversion.
23106 * tree-cfg.c (verify_gimple_assign_single): Verify that
23107 addresses are correct.
23108
23109 2009-04-09 Richard Guenther <rguenther@suse.de>
23110
23111 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Move non-constant
23112 indices into an array reference if possible.
23113 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
23114 Fold POINTER_PLUS_EXPR statements with invariant address.
23115
23116 2009-04-09 Alan Modra <amodra@bigpond.net.au>
23117
23118 PR target/39634
23119 * config.gcc (powerpc64-*-linux*): Always build biarch.
23120
23121 2009-04-09 Joseph Myers <joseph@codesourcery.com>
23122
23123 PR c/39613
23124 * c-typeck.c (do_case): If case label is not an INTEGER_CST, fold
23125 it and pedwarn if this results in an INTEGER_CST.
23126
23127 2009-04-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
23128
23129 * doc/install.texi: Update minimum GMP version. Remove obsolete
23130 text in MPFR section.
23131
23132 2009-04-08 Jakub Jelinek <jakub@redhat.com>
23133
23134 * dwarf2out.c (class_scope_p): New static inline.
23135 (class_or_namespace_scope_p): Use it.
23136 (gen_variable_die): Use DW_TAG_member tag for static data member
23137 declarations instead of DW_TAG_variable.
23138
23139 PR middle-end/39573
23140 * omp-low.c (expand_omp_taskreg): Finalize taskreg static local_decls
23141 variables.
23142
23143 2009-04-08 Richard Guenther <rguenther@suse.de>
23144
23145 * tree-ssa-sccvn.c (valueize_refs): Do not continue to
23146 valueize random data.
23147
23148 2009-04-08 David Edelsohn <edelsohn@gnu.org>
23149
23150 * config.gcc (aix tm_file): Add aix-stdint.h.
23151 (aix tm clause use_gcc_stdint): Set to wrap.
23152 * config/rs6000/aix-stdint.h: New file.
23153
23154 2009-04-08 Richard Guenther <rguenther@suse.de>
23155
23156 PR middle-end/36291
23157 * tree-dfa.c (add_referenced_var): Do not recurse into
23158 global initializers.
23159 * tree-ssa-ccp.c (get_symbol_constant_value): Add newly
23160 exposed variables.
23161 (fold_const_aggregate_ref): Likewise.
23162
23163 2009-04-08 Paolo Bonzini <bonzini@gnu.org>
23164
23165 * recog.c (ordered_comparison_operator): New.
23166 * gensupport.c (std_preds): Add it.
23167 * doc/md.texi (Machine-Independent Predicates): Document it.
23168
23169 2009-04-08 Jan Hubicka <jh@suse.cz>
23170
23171 * tree-eh.c (cleanup_eh): When not optimizing, do not try EH merging.
23172 * function.h (rtl_eh): Remove exception_handler_label_map.
23173 * except.c (ehl_hash, ehl_eq, add_ehl_entry,
23174 remove_exception_handler_label, for_each_eh_label_1): Remove.
23175 (rtl_remove_unreachable_regions): Remove.
23176 (convert_from_eh_region_ranges): Do not remove unreachable regions.
23177 (find_exception_handler_labels): Don't build the hashtable.
23178 (maybe_remove_eh_handler): Remove.
23179 (for_each_eh_label): Rewrite to walk the tree.
23180 (rest_of_handle_eh): Do not cleanup cfg prior EH construction.
23181 * except.h (maybe_remove_eh_handler): Remove.
23182 * passes.c (init_optimization_passes): Schedule second EH cleanup
23183 before out-of-ssa.
23184 * cfgrtl.c (rtl_delete_block, rtl_merge_blocks,
23185 cfg_layout_merge_blocks): Do not call maybe_remove_eh_handler.
23186
23187 2009-04-08 Paolo Bonzini <bonzini@gnu.org>
23188
23189 * genoutput.c (validate_optab_operands): New.
23190 (gen_insn, gen_expand): Call it.
23191
23192 * genflags.c (gen_insn): Detect misused iterators.
23193 (main): Pass line_no to gen_insn, exit with status 1 on error.
23194
23195 * genextract.c (line_no): Make global.
23196 (VEC_safe_set_locstr): Change assertion to error message.
23197 (main): Exit with status 1 on error.
23198
23199 2009-04-08 Joseph Myers <joseph@codesourcery.com>
23200
23201 PR c/39614
23202 PR c/39673
23203 * c-common.h (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
23204 C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
23205 EXPR_INT_CONST_OPERANDS): Remove duplicate definitions.
23206 * c-convert.c (convert): Do not call fold on results of conversion
23207 functions when the result is a C_MAYBE_CONST_EXPR.
23208 * c-parser.c (c_parser_postfix_expression): Do not fold condition
23209 of __builtin_choose_expr.
23210 * c-typeck.c (remove_c_maybe_const_expr): New.
23211 (build_unary_op, build_conditional_expr, build_compound_expr,
23212 build_binary_op, c_objc_common_truthvalue_conversion): Call
23213 remove_c_maybe_const_expr on any input C_MAYBE_CONST_EXPR with
23214 integer operands.
23215
23216 2009-04-08 Bingfeng Mei <bmei@broadcom.com>
23217
23218 * fold-const.c (const_binop): Combine two VECTOR_CST under operation
23219 CODE to produce a new one. Add a prototype to use fold_convert_const
23220
23221 2009-04-08 Danny Smith <dannysmith@users.sourceforge.net>
23222
23223 PR bootstrap/39660
23224 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): Don't
23225 mix declarations and code.
23226
23227 2009-04-08 Ben Elliston <bje@au.ibm.com>
23228
23229 * gcc.c: Replace `CC' with `GCC' throughout.
23230
23231 2009-04-07 H.J. Lu <hongjiu.lu@intel.com>
23232
23233 * doc/invoke.texi: Document Atom support.
23234
23235 2009-04-07 Jason Merrill <jason@redhat.com>
23236
23237 PR c++/25185
23238 * c-common.h, c-common.c: Add flag_pretty_templates.
23239 * c-opts.c (c_common_handle_option): Set it.
23240 * c.opt: Add -fno-pretty-templates.
23241 * doc/invoke.texi (C++ Dialect Options): Likewise.
23242
23243 2009-04-07 Uros Bizjak <ubizjak@gmail.com>
23244
23245 * config/ia64/ia64.c (ia64_builtins): Add IA64_BUILTIN_HUGE_VALQ.
23246 (ia64_init_builtins): Handle IA64_BUILTIN_HUGE_VALQ.
23247 (ia64_expand_builtin): Likewise.
23248
23249 2009-04-07 Martin Jambor <mjambor@suse.cz>
23250
23251 * tree-ssa-alias.c (refs_may_alias_p_1): Check for
23252 is_gimple_min_invariant rather than CONSTANT_CLASS_P so that invariant
23253 ADDR_EXPRS are include too.
23254
23255 2009-04-07 Richard Guenther <rguenther@suse.de>
23256
23257 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Non-aliased
23258 decls are only used if passes as parameters or if they are
23259 local statics and the call is not to a builtin.
23260 (call_may_clobber_ref_p_1): Likewise.
23261
23262 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
23263
23264 * expr.c (do_store_flag): Remove last argument. Simplify code
23265 to avoid duplication of tests already done by can_compare_p.
23266 (expand_expr_real_1): Adjust caller.
23267
23268 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
23269
23270 * optabs.c (can_compare_p): Test the predicate of a
23271 cbranch and cstore pattern.
23272
23273 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
23274
23275 * expr.c (convert_move): Use emit_store_flag instead of
23276 "emulating" it.
23277
23278 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
23279
23280 * config/i386/i386.c (ix86_compare_emitted): Remove.
23281 (ix86_expand_compare, ix86_expand_branch): Handle MODE_CC
23282 ix86_compare_op0 like ix86_compare_emitted used to be handled.
23283 * config/i386/i386.h (ix86_compare_emitted): Remove.
23284 * config/i386/i386.md (stack_protect_test): Set ix86_compare_op0
23285 instead of ix86_compare_emitted.
23286 * config/i386/sync.md (sync_compare_and_swap_cc): Likewise.
23287
23288 2009-04-07 Andrew Stubbs <ams@codesourcery.com>
23289
23290 * config.gcc (sh-*-*): Add sysroot-suffix.h to tm_file.
23291 Add t-sysroot-suffix to tmake_file.
23292 * config/print-sysroot-suffix.sh: New file.
23293 * config/t-sysroot-suffix: New file.
23294
23295 2009-04-07 Ben Elliston <bje@au.ibm.com>
23296
23297 * libgcc2.c (INFINITY): Use __builtin_huge_val, not __builtin_inf,
23298 as the latter produces a warning when the target does not support
23299 infinity.
23300
23301 2009-04-07 Ben Elliston <bje@au.ibm.com>
23302
23303 * dfp.c: Replace type punning assignments with memcpy throughout.
23304 * Makefile.in (dfp.o-warn): Remove.
23305
23306 2009-04-07 Alan Modra <amodra@bigpond.net.au>
23307
23308 PR target/39634
23309 * config.gcc: Merge powerpc-*-linux* and powerpc64-*-linux*.
23310 Include soft-fp/t-softfp after rs6000/t-linux64.
23311
23312 2009-04-06 Eric Botcazou <ebotcazou@adacore.com>
23313
23314 * stor-layout.c (set_sizetype): Use the full precision of their
23315 machine mode for bitsize types.
23316
23317 2009-04-06 H.J. Lu <hongjiu.lu@intel.com>
23318
23319 * config/i386/i386.md: Revert 2 accidental checkins.
23320
23321 2009-04-06 Joey Ye <joey.ye@intel.com>
23322 Xuepeng Guo <xuepeng.guo@intel.com>
23323 H.J. Lu <hongjiu.lu@intel.com>
23324
23325 Atom pipeline model, tuning and insn selection.
23326 * config.gcc (atom): Add atom config options and target.
23327
23328 * config/i386/atom.md: New.
23329
23330 * config/i386/i386.c (atom_cost): New cost.
23331 (m_ATOM): New macro flag.
23332 (initial_ix86_tune_features): Set m_ATOM.
23333 (x86_accumulate_outgoing_args): Likewise.
23334 (x86_arch_always_fancy_math_387): Likewise.
23335 (processor_target): Add Atom cost.
23336 (cpu_names): Add Atom cpu name.
23337 (override_options): Set Atom ISA.
23338 (ix86_issue_rate): New case PROCESSOR_ATOM.
23339 (ix86_adjust_cost): Likewise.
23340
23341 * config/i386/i386.h (TARGET_ATOM): New target macro.
23342 (ix86_tune_indices): Add X86_TUNE_OPT_AGU.
23343 (TARGET_OPT_AGU): New target option.
23344 (target_cpu_default): Add TARGET_CPU_DEFAULT_atom.
23345 (processor_type): Add PROCESSOR_ATOM.
23346
23347 * config/i386/i386.md (cpu): Add new value "atom".
23348 (use_carry, movu): New attr.
23349 (atom.md): Include atom.md.
23350 (adddi3_carry_rex64): Set attr "use_carry".
23351 (addqi3_carry): Likewise.
23352 (addhi3_carry): Likewise.
23353 (addsi3_carry): Likewise.
23354 (*addsi3_carry_zext): Likewise.
23355 (subdi3_carry_rex64): Likewise.
23356 (subqi3_carry): Likewise.
23357 (subhi3_carry): Likewise.
23358 (subsi3_carry): Likewise.
23359 (x86_movdicc_0_m1_rex64): Likewise.
23360 (*x86_movdicc_0_m1_se): Likewise.
23361 (x86_movsicc_0_m1): Likewise.
23362 (*x86_movsicc_0_m1_se): Likewise.
23363 (*adddi_1_rex64): Emit add insn as much as possible.
23364 (*addsi_1): Likewise.
23365 (return_internal): Set atom_unit.
23366 (return_internal_long): Likewise.
23367 (return_pop_internal): Likewise.
23368 (*rcpsf2_sse): Set atom_sse_attr attr.
23369 (*qrt<mode>2_sse): Likewise.
23370 (*prefetch_sse): Likewise.
23371
23372 * config/i386/i386-c.c (ix86_target_macros_internal): New case
23373 PROCESSOR_ATOM.
23374 (ix86_target_macros_internal): Likewise.
23375
23376 * config/i386/sse.md (cpu): Set attr "atom_sse_attr".
23377 (*prefetch_sse_rex): Likewise.
23378 (sse_rcpv4sf2): Likewise.
23379 (sse_vmrcpv4sf2): Likewise.
23380 (sse_sqrtv4sf2): Likewise.
23381 (<sse>_vmsqrt<mode>2): Likewise.
23382 (sse_ldmxcsr): Likewise.
23383 (sse_stmxcsr): Likewise.
23384 (*sse_sfence): Likewise.
23385 (sse2_clflush): Likewise.
23386 (*sse2_mfence): Likewise.
23387 (*sse2_lfence): Likewise.
23388 (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Set attr "movu".
23389 (<sse>_movup<ssemodesuffixf2c>): Likewise.
23390 (avx_movdqu<avxmodesuffix>): Likewise.
23391 (avx_lddqu<avxmodesuffix>): Likewise.
23392 (sse2_movntv2di): Change attr "type" to "ssemov".
23393 (sse2_movntsi): Likewise.
23394 (rsqrtv8sf2): Change attr "type" to "sseadd".
23395 (sse3_addsubv2df3): Set attr "atom_unit".
23396 (sse3_h<plusminus_insn>v4sf3): Likewise.
23397 (*sse2_pmaddwd): Likewise.
23398 (*vec_extractv2di_1_rex64): Likewise.
23399 (*vec_extractv2di_1_avx): Likewise.
23400 (sse2_psadbw): Likewise.
23401 (ssse3_phaddwv8hi3): Likewise.
23402 (ssse3_phaddwv4hi3): Likewise.
23403 (ssse3_phadddv4si3): Likewise.
23404 (ssse3_phadddv2si3): Likewise.
23405 (ssse3_phaddswv8hi3): Likewise.
23406 (ssse3_phaddswv4hi3): Likewise.
23407 (ssse3_phsubwv8hi3): Likewise.
23408 (ssse3_phsubwv4hi3): Likewise.
23409 (ssse3_phsubdv4si3): Likewise.
23410 (ssse3_phsubdv2si3): Likewise.
23411 (ssse3_phsubswv8hi3): Likewise.
23412 (ssse3_phsubswv4hi3): Likewise.
23413 (ssse3_pmaddubsw128): Likewise.
23414 (sse3_pmaddubsw: Likewise.
23415 (ssse3_palignrti): Likewise.
23416 (ssse3_palignrdi): Likewise.
23417
23418 2009-04-06 Gerald Pfeifer <gerald@pfeifer.com>
23419
23420 * doc/install.texi (Specific): Fix two cross-references to MinGW.
23421
23422 2009-04-06 Richard Guenther <rguenther@suse.de>
23423
23424 PR tree-optimization/28868
23425 * tree-ssa-pre.c (inserted_phi_names): New bitmap to keep track
23426 of which PHI results we inserted.
23427 (insert_into_preds_of_block): Record inserted PHIs.
23428 (eliminate): Eliminate redundant PHI nodes.
23429 (init_pre): Init inserted_phi_names.
23430
23431 2009-04-06 Richard Guenther <rguenther@suse.de>
23432
23433 PR tree-optimization/39643
23434 * tree-ssa-ccp.c (ccp_fold): Fold REALPART_EXPRs and
23435 IMAGPART_EXPRs of complex constants.
23436 (execute_fold_all_builtins): If we folded a call queue
23437 TODO_update_address_taken.
23438
23439 2009-04-06 Jan Hubicka <jh@suse.cz>
23440
23441 PR middle-end/39659
23442 * except.c (remove_unreachable_regions): Propagate may_contain_throw
23443 flag.
23444
23445 2009-04-06 Andrew Stubbs <ams@codesourcery.com>
23446
23447 * config/sh/lib1funcs.asm (ic_invalidate): Move ICBI out of the
23448 delay slot.
23449 (ic_invalidate_array): Likewise.
23450
23451 2009-04-06 Hariharan Sandanagobalane <hariharan@picochip.com>
23452
23453 * calls.c (emit_library_call_value_1): Fix a problem with parameter
23454 alignment for library calls.
23455
23456 2009-04-06 Danny Smith <dannysmith@users.sourceforge.net>
23457
23458 * config.gcc (mingw32 tm_file): Add mingw-stdint.h.
23459 (mingw32 tm clause use_gcc_stdint): Set to wrap.
23460 * config/i386/mingw-stdint.h: New file.
23461
23462 2009-04-05 Richard Guenther <rguenther@suse.de>
23463
23464 PR tree-optimization/39648
23465 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Work around
23466 our &A vs. &A[0] IL deficiencies.
23467
23468 2009-04-04 Jan Hubicka <jh@suse.cz>
23469
23470 * except.c (sjlj_find_directly_reachable_regions): Be ready for
23471 removed toplevel regions.
23472 (sjlj_mark_call_sites): Likewise.
23473
23474 2009-04-04 Dave Korn <dave.korn.cygwin@gmail.com>
23475
23476 * config.gcc (cygwin tm_file): Add cygwin-stdint.h.
23477 (cygwin tm clause use_gcc_stdint): Set to wrap.
23478 * config/i386/cygwin-stdint.h: New file.
23479
23480 2009-04-04 Richard Guenther <rguenther@suse.de>
23481
23482 * Makefile.in (tree-ssa-copy.o): Add $(CFGLOOP_H) dependency.
23483 * tree-ssa-copy.c (init_copy_prop): Do not propagate through
23484 single-argument PHIs if we are in loop-closed SSA form.
23485 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Pass extra guards
23486 for the pre-condition.
23487 (slpeel_tree_peel_loop_to_edge): Likewise.
23488 (vect_build_loop_niters): Take an optional sequence to append stmts.
23489 (vect_generate_tmps_on_preheader): Likewise.
23490 (vect_do_peeling_for_loop_bound): Take extra guards for the
23491 pre-condition.
23492 (vect_do_peeling_for_alignment): Adjust. Unconditionally apply
23493 the cost model check.
23494 (vect_loop_versioning): Take stmt and stmt list to put pre-condition
23495 guards if we are going to peel. Do not apply versioning in that case.
23496 * tree-vectorizer.h (vect_loop_versioning): Adjust declaration.
23497 (vect_do_peeling_for_loop_bound): Likewise.
23498 * tree-vect-loop.c (vect_transform_loop): If we are peeling for
23499 loop bound only record extra pre-conditions, do not apply loop
23500 versioning.
23501
23502 2009-04-04 Richard Guenther <rguenther@suse.de>
23503
23504 * tree-ssa-operands.c (pop_stmt_changes): Remove automatic
23505 renaming code.
23506
23507 2009-04-04 Jan Hubicka <jh@suse.cz>
23508
23509 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
23510 last_basic_block for size of bb->index indexed array.
23511 * bt-load.c (compute_defs_uses_and_gen, compute_kill,
23512 compute_out, link_btr_uses, build_btr_def_use_webs,
23513 build_btr_def_use_webs, migrate_btr_defs): Likewise.
23514
23515 2009-04-04 Jan Hubicka <jh@suse.cz>
23516
23517 * except.c (remove_eh_handler_and_replace): Break out from ...
23518 (remove_eh_handler): ... here.
23519 (bring_to_root): New function.
23520 (remove_unreachable_regions): Collect MUST_NOT_THROW, unify runtime
23521 handled ones, bring others to root of tree.
23522
23523 2009-04-04 Jan Hubicka <jh@suse.cz>
23524
23525 * tree-eh.c (tree_empty_eh_handler_p): Pattern match more curefully.
23526 (all_phis_safe_to_merge): New function.
23527 (update_info): New structure.
23528 (make_eh_edge_and_update_phi, update_eh_edges): New functions.
23529 (cleanup_empty_eh): Update SSA if possible.
23530
23531 2009-04-04 Richard Guenther <rguenther@suse.de>
23532
23533 * tree-ssa.c (verify_ssa): With -O0 we do not need VOPs.
23534 * tree-ssa-operands.c (append_vdef): Do not append VOPs at -O0.
23535 (append_vuse): Likewise.
23536
23537 2009-04-04 Jakub Jelinek <jakub@redhat.com>
23538
23539 * unwind-dw2.h (_Unwind_FrameState): Add REG_UNDEFINED enum value.
23540 * unwind-dw2.c (execute_cfa_program): Set how to REG_UNDEFINED
23541 instead of REG_UNSAVED for DW_CFA_undefined.
23542 (uw_update_context_1): Handle REG_UNDEFINED the same as REG_UNSAVED.
23543 (uw_update_context): If RA column is REG_UNDEFINED, mark it as
23544 outermost frame.
23545
23546 2009-04-04 Richard Earnshaw <rearnsha@arm.com>
23547
23548 PR target/39501
23549 * arm.md (movsfcc): Disable if not TARGET_HARD_FLOAT.
23550
23551 2009-04-04 Richard Guenther <rguenther@suse.de>
23552
23553 PR tree-optimization/8781
23554 PR tree-optimization/37892
23555 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Declare.
23556 * tree-ssa-sccvn.c (vn_reference_fold_indirect): New function.
23557 (valueize_refs): Call it for *& valueizations.
23558 (shared_reference_ops_from_ref): Rename to ...
23559 (valueize_shared_reference_ops_from_ref): ... this and valueize.
23560 (shared_reference_ops_from_call): Rename to ...
23561 (valueize_shared_reference_ops_from_call): ... this and valueize.
23562 (vn_reference_lookup): Update.
23563 (visit_reference_op_call): Likewise.
23564 * tree-ssa-pre.c (phi_translate_1): Fold *&.
23565 (eliminate): Value-replace the call address in call statements.
23566
23567 2009-04-04 Richard Guenther <rguenther@suse.de>
23568
23569 PR tree-optimization/39636
23570 * tree-ssa-forwprop.c
23571 (forward_propagate_addr_into_variable_array_index): Check for
23572 GIMPLE_ASSIGN before accessing the rhs code.
23573
23574 2009-04-03 Jason Merrill <jason@redhat.com>
23575
23576 * stor-layout.c (set_sizetype): Set TYPE_CANONICAL.
23577
23578 2009-04-03 Steve Ellcey <sje@cup.hp.com>
23579
23580 * config/ia64/ia64.md (extendsfdf2, extendsfxf2, extenddfxf2,
23581 truncdfsf2, truncxfsf2, truncxfdf2, floatdixf2, fix_truncsfdi2,
23582 fix_truncdfdi2, fix_truncxfdi2, fix_truncxfdi2_alts, floatunsdisf2,
23583 floatunsdidf2, floatunsdixf2, fixuns_truncsfdi2, fixuns_truncdfdi2,
23584 fixuns_truncxfdi2, fixuns_truncxfdi2_alts, divsi3_internal,
23585 smuldi3_highpart, umuldi3_highpart, ctzdi2, *getf_exp_xf,
23586 divdi3_internal_lat, divdi3_internal_thr, mulditi3, *mulditi3_internal,
23587 umulditi3, *umulditi3_internal, addsf3, mulsf3, abssf2, negsf2,
23588 *nabssf2, sminsf3, smaxsf3, *maddsf4, *msubsf4, *nmulsf3, *nmaddsf4,
23589 *nmaddsf4_alts, divsf3, *sqrt_approx, sqrtsf2, sqrtsf2_internal_thr,
23590 adddf3, *adddf3_trunc, muldf3, *muldf3_trunc, absdf2, negdf2, *nabsdf2,
23591 smindf3, smaxdf3, *madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc,
23592 *nmuldf3, *nmuldf3_trunc, *nmadddf4, *nmadddf4_alts, *nmadddf4_truncsf,
23593 *nmadddf4_truncsf_alts, divdf3, sqrtdf2, sqrtdf2_internal_thr, divxf3,
23594 sqrtxf2, sqrtxf2_internal_thr, *recip_approx):
23595 Use fr_reg_or_fp01_operand instead of fr_register_operand
23596
23597 * config/ia64/div.md (extend<mode>rf2, truncrf<mode>2,
23598 recip_approx_rf, divsf3_internal_thr, divsf3_internal_lat,
23599 divdf3_internal_thr, divdf3_internal_lat divxf3_internal): Ditto.
23600
23601 2009-04-03 Vladimir Makarov <vmakarov@redhat.com>
23602
23603 PR rtl-optimization/39607
23604 PR rtl-optimization/39631
23605
23606 Revert:
23607
23608 2009-03-30 Vladimir Makarov <vmakarov@redhat.com>
23609 * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
23610 instead of DF_LR_OUT.
23611 * ira-lives.c (process_bb_node_lives): Ditto.
23612 * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
23613 instead of DF_LR_{OUT,IN}.
23614 * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
23615 * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
23616
23617 2009-04-03 Steven Bosscher <steven@gcc.gnu.org>
23618
23619 * omp-low.c (pass_expand_omp): Don't claim to provide PROP_gimple_lomp.
23620 (execute_lower_omp): Always run but take the short way out if -fopenmp
23621 is not given.
23622 (gate_lower_omp): Remove, forcing the pass manager to always run the
23623 pass and always set PROP_gimple_lomp.
23624 (pass_lower_omp): Remove gate function.
23625 * matrix-reorg.c (pass_ipa_matrix_reorg): Don't claim to provide
23626 PROP_trees. Instead, require it.
23627 * ipa-cp.c (pass_ipa_cp): Likewise.
23628 * ipa-inline.c (pass_early_inline): Don't claim to provide PROP_cfg.
23629 (pass_ipa_early_inline, pass_inline_parameters, pass_ipa_inline): Idem.
23630 * tree-profile.c (pass_tree_profile): Don't claim to provide PROP_cfg
23631 and PROP_gimple_leh.
23632
23633 2009-04-03 Richard Guenther <rguenther@suse.de>
23634
23635 PR middle-end/13146
23636 PR tree-optimization/23940
23637 PR tree-optimization/33237
23638 PR middle-end/33974
23639 PR middle-end/34093
23640 PR tree-optimization/36201
23641 PR tree-optimization/36230
23642 PR tree-optimization/38049
23643 PR tree-optimization/38207
23644 PR tree-optimization/38230
23645 PR tree-optimization/38301
23646 PR tree-optimization/38585
23647 PR middle-end/38895
23648 PR tree-optimization/38985
23649 PR tree-optimization/39299
23650 * tree-ssa-structalias.h: Remove.
23651 * tree-ssa-operands.h (NULL_USE_OPERAND_P): Make of type use_operand_p.
23652 (NULL_DEF_OPERAND_P): Make of type def_operand_p.
23653 (struct vuse_element_d): Remove.
23654 (struct vuse_vec_d): Likewise.
23655 (VUSE_VECT_NUM_ELEM, VUSE_VECT_ELEMENT_NC, VUSE_ELEMENT_PTR_NC,
23656 VUSE_ELEMENT_VAR_NC, VUSE_VECT_ELEMENT, VUSE_ELEMENT_PTR,
23657 SET_VUSE_VECT_ELEMENT, SET_VUSE_ELEMENT_VAR, SET_VUSE_ELEMENT_PTR,
23658 VUSE_ELEMENT_VAR): Likewise.
23659 (struct voptype_d): Likewise.
23660 (NUM_VOP_FREE_BUCKETS): Likewise.
23661 (struct ssa_operands): Remove vop_free_buckets and mpt_table fields.
23662 (struct stmt_operands_d): Remove.
23663 (VUSE_OP_PTR, VUSE_OP, SET_VUSE_OP, VUSE_NUM, VUSE_VECT,
23664 VDEF_RESULT_PTR, VDEF_RESULT, VDEF_OP_PTR, VDEF_OP, SET_VDEF_OP,
23665 VDEF_NUM, VDEF_VECT): Likewise.
23666 (copy_virtual_operands): Remove.
23667 (operand_build_cmp): Likewise.
23668 (create_ssa_artificial_load_stmt): Likewise.
23669 (enum ssa_op_iter_type): Remove ssa_op_iter_vdef.
23670 (struct ssa_operand_iterator_d): Remove vuses, vdefs, mayusesm
23671 vuse_index and mayuse_index members. Pack and move done and iter_type
23672 members to the front.
23673 (SSA_OP_VMAYUSE): Remove.
23674 (SSA_OP_VIRTUAL_USES): Adjust.
23675 (FOR_EACH_SSA_VDEF_OPERAND): Remove.
23676 (unlink_stmt_vdef): Declare.
23677 (add_to_addressable_set): Remove.
23678 * tree-vrp.c (stmt_interesting_for_vrp): Adjust.
23679 (vrp_visit_stmt): Likewise.
23680 * doc/tree-ssa.texi (Alias analysis): Update.
23681 * doc/invoke.texi (max-aliased-vops): Remove docs.
23682 (avg-aliased-vops): Likewise.
23683 * tree-into-ssa.c (syms_to_rename): Remove.
23684 (need_to_update_vops_p): Likewise.
23685 (need_to_initialize_update_ssa_p): Rename to ...
23686 (update_ssa_initialized_fn): ... this. Track function we are
23687 initialized for.
23688 (symbol_marked_for_renaming): Simplify.
23689 (add_new_name_mapping): Do not set need_to_update_vops_p.
23690 (dump_currdefs): Use SYMS_TO_RENAME.
23691 (rewrite_update_stmt): Always walk all uses/defs.
23692 (dump_update_ssa): Adjust.
23693 (init_update_ssa): Take function argument. Track what we are
23694 initialized for.
23695 (delete_update_ssa): Reset SYMS_TO_RENAME and update_ssa_initialized_fn.
23696 (create_new_def_for): Initialize for cfun, assert we are initialized
23697 for cfun.
23698 (mark_sym_for_renaming): Simplify.
23699 (mark_set_for_renaming): Do not initialize update-ssa.
23700 (need_ssa_update_p): Simplify. Take function argument.
23701 (name_mappings_registered_p): Assert we ask for the correct function.
23702 (name_registered_for_update_p): Likewise.
23703 (ssa_names_to_replace): Likewise.
23704 (release_ssa_name_after_update_ssa): Likewise.
23705 (update_ssa): Likewise. Use SYMS_TO_RENAME.
23706 (dump_decl_set): Do not print a newline.
23707 (debug_decl_set): Do it here.
23708 (dump_update_ssa): And here.
23709 * tree-ssa-loop-im.c (move_computations): Adjust.
23710 (movement_possibility): Likewise.
23711 (determine_max_movement): Likewise.
23712 (gather_mem_refs_stmt): Likewise.
23713 * tree-dump.c (dequeue_and_dump): Do not handle SYMBOL_MEMORY_TAG
23714 or NAME_MEMORY_TAG.
23715 * tree-complex.c (update_all_vops): Remove.
23716 (expand_complex_move): Adjust.
23717 * tree-ssa-loop-niter.c (chain_of_csts_start): Use NULL_TREE.
23718 Simplify test for memory referencing statement. Exclude
23719 non-invariant ADDR_EXPRs.
23720 * tree-pretty-print.c (dump_generic_node): Do not handle memory tags.
23721 * tree-loop-distribution.c (generate_memset_zero): Adjust.
23722 (rdg_flag_uses): Likewise.
23723 * tree-tailcall.c (suitable_for_tail_opt_p): Remove memory-tag
23724 related code.
23725 (tree_optimize_tail_calls_1): Also split the
23726 edge from the entry block if we have degenerate PHI nodes in
23727 the first basic block.
23728 * tree.c (init_ttree): Remove memory-tag related code.
23729 (tree_code_size): Likewise.
23730 (tree_node_structure): Likewise.
23731 (build7_stat): Re-write to be build6_stat.
23732 * tree.h (MTAG_P, TREE_MEMORY_TAG_CHECK, TMR_TAG): Remove.
23733 (SSA_VAR_P): Adjust.
23734 (struct tree_memory_tag): Remove.
23735 (struct tree_memory_partition_tag): Likewise.
23736 (union tree_node): Adjust.
23737 (build7): Re-write to be build6.
23738 * tree-pass.h (pass_reset_cc_flags): Remove.
23739 (TODO_update_address_taken): New flag.
23740 (pass_simple_dse): Remove.
23741 * ipa-cp.c (ipcp_update_callgraph): Update SSA form.
23742 * params.h (MAX_ALIASED_VOPS): Remove.
23743 (AVG_ALIASED_VOPS): Likewise.
23744 * omp-low.c (expand_omp_taskreg): Update SSA form.
23745 * tree-ssa-dse.c (dse_optimize_stmt): Properly query if the rhs
23746 aliases the lhs in a copy stmt.
23747 * tree-ssa-dse.c (struct address_walk_data): Remove.
23748 (memory_ssa_name_same): Likewise.
23749 (memory_address_same): Likewise.
23750 (get_kill_of_stmt_lhs): Likewise.
23751 (dse_possible_dead_store_p): Simplify, use the oracle. Handle
23752 unused stores. Look through PHI nodes into post-dominated regions.
23753 (dse_optimize_stmt): Simplify. Properly remove stores.
23754 (tree_ssa_dse): Compute dominators.
23755 (execute_simple_dse): Remove.
23756 (pass_simple_dse): Likewise.
23757 * ipa-reference.c (scan_stmt_for_static_refs): Open-code
23758 gimple_loaded_syms and gimple_stored_syms computation.
23759 * toplev.c (dump_memory_report): Dump alias and pta stats.
23760 * tree-ssa-sccvn.c (vn_reference_compute_hash): Simplify.
23761 (vn_reference_eq): Likewise.
23762 (vuses_to_vec, copy_vuses_from_stmt, vdefs_to_vec,
23763 copy_vdefs_from_stmt, shared_lookup_vops, shared_vuses_from_stmt,
23764 valueize_vuses): Remove.
23765 (get_def_ref_stmt_vuses): Simplify. Rename to ...
23766 (get_def_ref_stmt_vuse): ... this.
23767 (vn_reference_lookup_2): New function.
23768 (vn_reference_lookup_pieces): Use walk_non_aliased_vuses for
23769 walking equivalent vuses. Simplify.
23770 (vn_reference_lookup): Likewise.
23771 (vn_reference_insert): Likewise.
23772 (vn_reference_insert_pieces): Likewise.
23773 (visit_reference_op_call): Simplify.
23774 (visit_reference_op_load): Likewise.
23775 (visit_reference_op_store): Likewise.
23776 (init_scc_vn): Remove shared_lookup_vuses initialization.
23777 (free_scc_vn): Remove shared_lookup_vuses freeing.
23778 (sort_vuses, sort_vuses_heap): Remove.
23779 (get_ref_from_reference_ops): Export.
23780 * tree-ssa-sccvn.h (struct vn_reference_s): Replace vuses
23781 vector with single vuse pointer.
23782 (vn_reference_lookup_pieces, vn_reference_lookup,
23783 vn_reference_insert, vn_reference_insert_pieces): Adjust prototypes.
23784 (shared_vuses_from_stmt): Remove.
23785 (get_ref_from_reference_ops): Declare.
23786 * tree-ssa-loop-manip.c (slpeel_can_duplicate_loop_p): Adjust.
23787 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
23788 memory-tag related code.
23789 * tree-ssa-ccp.c (get_symbol_constant_value): Remove memory-tag code.
23790 (likely_value): Add comment, skip static-chain of call statements.
23791 (surely_varying_stmt_p): Adjust.
23792 (gimplify_and_update_call_from_tree): Likewise.
23793 (execute_fold_all_builtins): Do not rebuild alias info.
23794 (gimplify_and_update_call_from_tree): Properly update VOPs.
23795 * tree-ssa-loop-ivopts.c (get_ref_tag): Remove.
23796 (copy_ref_info): Remove memory-tag related code.
23797 * tree-call-cdce.c (tree_call_cdce): Rename the VOP.
23798 * ipa-pure-const.c (check_decl): Remove memory-tag related code.
23799 (check_stmt): Open-code gimple_loaded_syms and gimple_stored_syms
23800 computation.
23801 * tree-ssa-dom.c (gimple_p): Remove typedef.
23802 (eliminate_redundant_computations): Adjust.
23803 (record_equivalences_from_stmt): Likewise.
23804 (avail_expr_hash): Likewise.
23805 (avail_expr_eq): Likewise.
23806 * tree-ssa-propagate.c (update_call_from_tree): Properly update VOPs.
23807 (stmt_makes_single_load): Likewise.
23808 (stmt_makes_single_store): Likewise.
23809 * tree-ssa-alias.c: Rewrite completely.
23810 (debug_memory_partitions, dump_mem_ref_stats, debug_mem_ref_stats,
23811 debug_mem_sym_stats, dump_mem_sym_stats_for_var,
23812 debug_all_mem_sym_stats, debug_mp_info, update_mem_sym_stats_from_stmt,
23813 delete_mem_ref_stats, create_tag_raw, dump_points_to_info,
23814 dump_may_aliases_for, debug_may_aliases_for, new_type_alias):
23815 Remove public functions.
23816 (pass_reset_cc_flags): Remove.
23817 (pass_build_alias): Move ...
23818 * tree-ssa-structalias.c (pass_build_alias): ... here.
23819 * tree-ssa-alias.c (may_be_aliased): Move ...
23820 * tree-flow-inline.h (may_be_aliased): ... here.
23821 tree-ssa-alias.c (struct count_ptr_d, count_ptr_derefs,
23822 count_uses_and_derefs): Move ...
23823 * gimple.c: ... here.
23824 * gimple.h (count_uses_and_derefs): Declare.
23825 * tree-ssa-alias.c (dump_alias_stats, ptr_deref_may_alias_global_p,
23826 ptr_deref_may_alias_decl_p, ptr_derefs_may_alias_p,
23827 same_type_for_tbaa, nonaliasing_component_refs_p, decl_refs_may_alias_p,
23828 indirect_ref_may_alias_decl_p, indirect_refs_may_alias_p,
23829 ref_maybe_used_by_call_p, ref_maybe_used_by_stmt_p,
23830 call_may_clobber_ref_p, stmt_may_clobber_ref_p, maybe_skip_until,
23831 get_continuation_for_phi, walk_non_aliased_vuses, walk_aliased_vdefs):
23832 New functions.
23833 * tree-dfa.c (refs_may_alias_p): Move ...
23834 * tree-ssa-alias.c (refs_may_alias_p): ... here. Extend.
23835 * tree-ssa-alias.h: New file.
23836 * tree-ssa-sink.c (is_hidden_global_store): Adjust.
23837 (statement_sink_location): Likewise.
23838 * opts.c (decode_options): Do not adjust max-aliased-vops or
23839 avg-aliased-vops values.
23840 * timevar.def (TV_TREE_MAY_ALIAS): Remove.
23841 (TV_CALL_CLOBBER): Likewise.
23842 (TV_FLOW_SENSITIVE): Likewise.
23843 (TV_FLOW_INSENSITIVE): Likewise.
23844 (TV_MEMORY_PARTITIONING): Likewise.
23845 (TV_ALIAS_STMT_WALK): New timevar.
23846 * tree-ssa-loop-ivcanon.c (empty_loop_p): Adjust.
23847 * tree-ssa-address.c (create_mem_ref_raw): Use build6.
23848 (get_address_description): Remove memory-tag related code.
23849 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Adjust.
23850 * treestruct.def (TS_MEMORY_TAG, TS_MEMORY_PARTITION_TAG): Remove.
23851 * tree-eh.c (cleanup_empty_eh): Do not leave stale SSA_NAMEs
23852 and immediate uses in statements. Document.
23853 * gimple-pretty-print.c (dump_gimple_mem_ops): Adjust.
23854 (dump_symbols): Remove.
23855 (dump_gimple_mem_ops): Do not dump loaded or stored syms.
23856 * alias.c (get_deref_alias_set): New function split out from ...
23857 (get_alias_set): ... here.
23858 * alias.h (get_deref_alias_set): Declare.
23859 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove unused
23860 type parameter. Remove restrict pointer handling. Create a
23861 ref-all pointer in case type-based alias sets do not conflict.
23862 (vect_analyze_data_refs): Remove SMT related code.
23863 * tree-vect-stmts.c (vectorizable_store): Re-instantiate TBAA assert.
23864 (vectorizable_load): Likewise.
23865 * tree-data-ref.h (struct dr_alias): Remove symbol_tag field.
23866 (DR_SYMBOL_TAG, DR_VOPS): Remove.
23867 * tree-data-ref.c (dr_may_alias_p): Use the alias-oracle.
23868 Ignore vops and SMTs.
23869 (dr_analyze_alias): Likewise..
23870 (free_data_ref): Likewise.
23871 (create_data_ref): Likewise.
23872 (analyze_all_data_dependences): Likewise.
23873 (get_references_in_stmt): Adjust.
23874 * tree-flow-inline.h (gimple_aliases_computed_p,
23875 gimple_addressable_vars, gimple_call_clobbered_vars,
23876 gimple_call_used_vars, gimple_global_var, may_aliases, memory_partition,
23877 factoring_name_p, mark_call_clobbered, clear_call_clobbered,
23878 compare_ssa_operands_equal, symbol_mem_tag, set_symbol_mem_tag,
23879 gimple_mem_ref_stats): Remove.
23880 (gimple_vop): New function.
23881 (op_iter_next_use): Remove vuses and mayuses cases.
23882 (op_iter_next_def): Remove vdefs case.
23883 (op_iter_next_tree): Remove vuses, mayuses and vdefs cases.
23884 (clear_and_done_ssa_iter): Do not set removed fields.
23885 (op_iter_init): Likewise. Skip vuse and/or vdef if requested.
23886 Assert we are not iterating over vuses or vdefs if not also
23887 iterating over uses or defs.
23888 (op_iter_init_use): Likewise.
23889 (op_iter_init_def): Likewise.
23890 (op_iter_next_vdef): Remove.
23891 (op_iter_next_mustdef): Likewise.
23892 (op_iter_init_vdef): Likewise.
23893 (compare_ssa_operands_equal): Likewise.
23894 (link_use_stmts_after): Handle vuse operand.
23895 (is_call_used): Use is_call_clobbered.
23896 (is_call_clobbered): Global variables are always call clobbered,
23897 query the call-clobbers bitmap.
23898 (mark_call_clobbered): Ignore global variables.
23899 (clear_call_clobbered): Likewise.
23900 * tree-ssa-coalesce.c (create_outofssa_var_map): Adjust
23901 virtual operands sanity check.
23902 * tree.def (NAME_MEMORY_TAG, SYMBOL_MEMORY_TAG, MEMORY_PARTITION_TAG):
23903 Remove.
23904 (TARGET_MEM_REF): Remove TMR_TAG operand.
23905 * tree-dfa.c (add_referenced_var): Initialize call-clobber state.
23906 Remove call-clobber related code.
23907 (remove_referenced_var): Likewise. Do not clear mpt or symbol_mem_tag.
23908 (dump_variable): Do not dump SMTs, memory stats, may-aliases or
23909 partitions or escape reason.
23910 (get_single_def_stmt, get_single_def_stmt_from_phi,
23911 get_single_def_stmt_with_phi): Remove.
23912 (dump_referenced_vars): Tidy.
23913 (get_ref_base_and_extent): Allow bare decls.
23914 (collect_dfa_stats): Adjust.
23915 * graphite.c (rename_variables_in_stmt): Adjust.
23916 (graphite_copy_stmts_from_block): Likewise.
23917 (translate_clast): Likewise.
23918 * tree-ssa-pre.c (struct bb_bitmap_sets): Add expr_dies bitmap.
23919 (EXPR_DIES): New.
23920 (translate_vuse_through_block): Use the oracle.
23921 (phi_translate_1): Adjust.
23922 (value_dies_in_block_x): Use the oracle. Cache the outcome
23923 in EXPR_DIES.
23924 (valid_in_sets): Check if the VUSE for
23925 a REFERENCE is available.
23926 (eliminate): Do not remove stmts during elimination,
23927 instead queue and remove them afterwards.
23928 (do_pre): Do not rebuild alias info.
23929 (pass_pre): Run TODO_rebuild_alias before PRE.
23930 * tree-ssa-live.c (remove_unused_locals): Remove memory-tag code.
23931 * tree-sra.c (sra_walk_function): Use gimple_references_memory_p.
23932 (mark_all_v_defs_stmt): Remove.
23933 (mark_all_v_defs_seq): Adjust.
23934 (sra_replace): Likewise.
23935 (scalarize_use): Likewise.
23936 (scalarize_copy): Likewise.
23937 (scalarize_init): Likewise.
23938 (scalarize_ldst): Likewise.
23939 (todoflags): Remove.
23940 (tree_sra): Do not rebuild alias info.
23941 (tree_sra_early): Adjust.
23942 (pass_sra): Run TODO_update_address_taken before SRA.
23943 * tree-predcom.c (set_alias_info): Remove.
23944 (prepare_initializers_chain): Do not call it.
23945 (mark_virtual_ops_for_renaming): Adjust.
23946 (mark_virtual_ops_for_renaming_list): Remove.
23947 (initialize_root_vars): Adjust.
23948 (initialize_root_vars_lm): Likewise.
23949 (prepare_initializers_chain): Likewise.
23950 * tree-ssa-copy.c (may_propagate_copy): Remove memory-tag related code.
23951 (may_propagate_copy_into_stmt): Likewise.
23952 (merge_alias_info): Do nothing for now.
23953 (propagate_tree_value_into_stmt): Adjust.
23954 (stmt_may_generate_copy): Likewise.
23955 * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr): Do
23956 not mark symbols for renaming.
23957 (forward_propagate_addr_expr): Match up push/pop_stmt_changes
23958 with the same statement, make sure to update the new pointed-to one.
23959 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not copy
23960 call statements, do not mark symbols for renaming.
23961 (mark_operand_necessary): Dump something.
23962 (ref_may_be_aliased): New function.
23963 (mark_aliased_reaching_defs_necessary_1): New helper function.
23964 (mark_aliased_reaching_defs_necessary): Likewise.
23965 (mark_all_reaching_defs_necessary_1): Likewise.
23966 (mark_all_reaching_defs_necessary): Likewise.
23967 (propagate_necessity): Do not process virtual PHIs. For
23968 non-aliased loads mark all reaching definitions as necessary.
23969 For aliased loads and stores mark the immediate dominating
23970 aliased clobbers as necessary.
23971 (visited): New global static.
23972 (perform_tree_ssa_dce): Free visited bitmap after propagating
23973 necessity.
23974 (remove_dead_phis): Perform simple dead virtual PHI removal.
23975 (remove_dead_stmt): Properly unlink virtual operands when
23976 removing stores.
23977 (eliminate_unnecessary_stmts): Schedule PHI removal after
23978 stmt removal.
23979 * tree-ssa-ter.c (is_replaceable_p): Adjust.
23980 (process_replaceable): Likewise.
23981 (find_replaceable_in_bb): Likewise.
23982 * tree-ssa.c (verify_ssa_name): Verify all VOPs are
23983 based on the single gimple vop.
23984 (verify_flow_insensitive_alias_info): Remove.
23985 (verify_flow_sensitive_alias_info): Likewise.
23986 (verify_call_clobbering): Likewise.
23987 (verify_memory_partitions): Likewise.
23988 (verify_alias_info): Likewise.
23989 (verify_ssa): Adjust..
23990 (execute_update_addresses_taken): Export. Update SSA
23991 manually. Optimize only when optimizing. Use a local bitmap.
23992 (pass_update_address_taken): Remove TODO_update_ssa, add
23993 TODO_dump_func.
23994 (pass_update_address_taken): Just use TODO_update_address_taken.
23995 (init_tree_ssa): Do not initialize addressable_vars.
23996 (verify_ssa): Verify new VUSE / VDEF properties.
23997 Verify that all stmts definitions have the stmt as SSA_NAME_DEF_STMT.
23998 Do not call verify_alias_info.
23999 (delete_tree_ssa): Clear the VUSE, VDEF operands.
24000 Do not free the loaded and stored syms bitmaps. Reset the escaped
24001 and callused solutions. Do not free addressable_vars.
24002 Remove memory-tag related code.
24003 (warn_uninitialized_var): Aliases are always available.
24004 * tree-ssa-loop-prefetch.c (gather_memory_references): Adjust.
24005 * lambda-code.c (can_put_in_inner_loop): Adjust.
24006 (can_put_after_inner_loop): Likewise.
24007 (perfect_nestify): Likewise.
24008 * tree-vect-stmts.c (vect_stmt_relevant_p): Adjust.
24009 (vect_gen_widened_results_half): Remove CALL_EXPR handling.
24010 (vectorizable_conversion): Do not mark symbols for renaming.
24011 * tree-inline.c (remap_gimple_stmt): Clear VUSE/VDEF.
24012 (expand_call_inline): Unlink the calls virtual operands before
24013 replacing it.
24014 (tree_function_versioning): Do not call update_ssa if we are not
24015 updating clones. Simplify.
24016 * tree-ssa-phiprop.c (phivn_valid_p): Adjust.
24017 (propagate_with_phi): Likewise..
24018 * tree-outof-ssa.c (create_temp): Remove memory tag and call
24019 clobber code. Assert we are not aliased or global.
24020 * tree-flow.h: Include tree-ssa-alias.h
24021 (enum escape_type): Remove.
24022 (struct mem_sym_stats_d): Likewise.
24023 (struct mem_ref_stats_d): Likewise.
24024 (struct gimple_df): Add vop member. Remove global_var,
24025 call_clobbered_vars, call_used_vars, addressable_vars,
24026 aliases_compted_p and mem_ref_stats members. Add syms_to_rename,
24027 escaped and callused members.
24028 (struct ptr_info_def): Remove all members, add points-to solution
24029 member pt.
24030 (struct var_ann_d): Remove in_vuse_list, in_vdef_list,
24031 call_clobbered, escape_mask, mpt and symbol_mem_tag members.
24032 * Makefile.in (TREE_FLOW_H): Add tree-ssa-alias.h.
24033 (tree-ssa-structalias.o): Remove tree-ssa-structalias.h.
24034 (tree-ssa-alias.o): Likewise.
24035 (toplev.o): Add tree-ssa-alias.h
24036 (GTFILES): Remove tree-ssa-structalias.h, add tree-ssa-alias.h.
24037 * gimple.c (gimple_set_bb): Fix off-by-one error.
24038 (is_gimple_reg): Do not handle memory tags.
24039 (gimple_copy): Also copy virtual operands.
24040 Delay updating the statement. Do not reset loaded and stored syms.
24041 (gimple_set_stored_syms): Remove.
24042 (gimple_set_loaded_syms): Likewise.
24043 (gimple_call_copy_skip_args): Copy the virtual operands
24044 and mark the new statement modified.
24045 * tree-ssa-structalias.c (may_alias_p): Remove.
24046 (set_uids_in_ptset): Take the alias set to prune with as
24047 parameter. Fold in the alias test of may_alias_p.
24048 (compute_points_to_sets): Compute whether a ptr is dereferenced
24049 in a local sbitmap.
24050 (process_constraint): Deal with &ANYTHING on the lhs, reject all
24051 other ADDRESSOF constraints on the lhs.
24052 (get_constraint_for_component_ref): Assert that we don't get
24053 ADDRESSOF constraints from the base of the reference.
24054 Properly generate UNKNOWN_OFFSET for DEREF if needed.
24055 (struct variable_info): Remove collapsed_to member.
24056 (get_varinfo_fc): Remove.
24057 (new_var_info): Do not set collapsed_to.
24058 (dump_constraint): Do not follow cycles.
24059 (dump_constraint_graph): Likewise.
24060 (build_pred_graph): Likewise.
24061 (build_succ_graph): Likewise.
24062 (rewrite_constraints): Likewise.
24063 (do_simple_structure_copy): Remove.
24064 (do_rhs_deref_structure_copy): Remove.
24065 (do_lhs_deref_structure_copy): Remove.
24066 (collapse_rest_of_var): Remove.
24067 (do_structure_copy): Re-implement.
24068 (pta_stats): New global variable.
24069 (dump_pta_stats): New function.
24070 (struct constraint_expr): Make offset signed.
24071 (UNKNOWN_OFFSET): Define special value.
24072 (dump_constraint): Dump UNKNOWN_OFFSET as UNKNOWN.
24073 (solution_set_expand): New helper function split out from ...
24074 (do_sd_constraint): ... here.
24075 (solution_set_add): Handle UNKNOWN_OFFSET. Handle negative offsets.
24076 (do_ds_constraint): Likewise.
24077 (do_sd_constraint): Likewise. Do not special-case ESCAPED = *ESCAPED
24078 and CALLUSED = *CALLUSED.
24079 (set_union_with_increment): Make inc argument signed.
24080 (type_safe): Remove.
24081 (get_constraint_for_ptr_offset): Handle unknown and negative
24082 constant offsets.
24083 (first_vi_for_offset): Handle offsets before start. Bail
24084 out early for offsets beyond the variable extent.
24085 (first_or_preceding_vi_for_offset): New function.
24086 (init_base_vars): Add ESCAPED = ESCAPED + UNKNOWN_OFFSET constraint.
24087 Together with ESCAPED = *ESCAPED this properly computes reachability.
24088 (find_what_var_points_to): New function.
24089 (find_what_p_points_to): Implement in terms of find_what_var_points_to.
24090 (pt_solution_reset, pt_solution_empty_p, pt_solution_includes_global,
24091 pt_solution_includes_1, pt_solution_includes, pt_solutions_intersect_1,
24092 pt_solutions_intersect): New functions.
24093 (compute_call_used_vars): Remove.
24094 (compute_may_aliases): New main entry into PTA computation.
24095 * gimple.h (gimple_p): New typedef.
24096 (struct gimple_statement_base): Remove references_memory_p.
24097 (struct gimple_statement_with_memory_ops_base): Remove
24098 vdef_ops, vuse_ops, stores and loads members. Add vdef and vuse
24099 members.
24100 (gimple_vuse_ops, gimple_set_vuse_ops, gimple_vdef_ops,
24101 gimple_set_vdef_ops, gimple_loaded_syms, gimple_stored_syms,
24102 gimple_set_references_memory): Remove.
24103 (gimple_vuse_op, gimple_vdef_op, gimple_vuse, gimple_vdef,
24104 gimple_vuse_ptr, gimple_vdef_ptri, gimple_set_vuse, gimple_set_vdef):
24105 New functions.
24106 * tree-cfg.c (move_block_to_fn): Fix off-by-one error.
24107 (verify_expr): Allow RESULT_DECL.
24108 (gimple_duplicate_bb): Do not copy virtual operands.
24109 (gimple_duplicate_sese_region): Adjust.
24110 (gimple_duplicate_sese_tail): Likewise.
24111 (mark_virtual_ops_in_region): Remove.
24112 (move_sese_region_to_fn): Do not call it.
24113 * passes.c (init_optimization_passes): Remove pass_reset_cc_flags
24114 and pass_simple_dse.
24115 (execute_function_todo): Handle TODO_update_address_taken,
24116 call execute_update_addresses_taken for TODO_rebuild_alias.
24117 (execute_todo): Adjust.
24118 (execute_one_pass): Init dump files early.
24119 * ipa-struct-reorg.c (finalize_var_creation): Do not mark vars
24120 call-clobbered.
24121 (create_general_new_stmt): Clear vops.
24122 * tree-ssa-reassoc.c (get_rank): Adjust.
24123 * tree-vect-slp.c (vect_create_mask_and_perm): Do not mark
24124 symbols for renaming.
24125 * params.def (PARAM_MAX_ALIASED_VOPS): Remove.
24126 (PARAM_AVG_ALIASED_VOPS): Likewise.
24127 * tree-ssanames.c (init_ssanames): Allocate SYMS_TO_RENAME.
24128 (duplicate_ssa_name_ptr_info): No need to copy the shared bitmaps.
24129 * tree-ssa-operands.c: Simplify for new virtual operand representation.
24130 (operand_build_cmp, copy_virtual_operands,
24131 create_ssa_artificial_load_stmt, add_to_addressable_set,
24132 gimple_add_to_addresses_taken): Remove public functions.
24133 (unlink_stmt_vdef): New function.
24134
24135 2009-04-03 Alan Modra <amodra@bigpond.net.au>
24136
24137 * config.gcc (powerpc-*-linux*): Merge variants.
24138
24139 2009-04-02 Chao-ying Fu <fu@mips.com>
24140 James Grosbach <james.grosbach@microchip.com>
24141
24142 * config/mips/mips.c (mips_frame_info): Add acc_mask, num_acc,
24143 num_cop0_regs, acc_save_offset, cop0_save_offset, acc_sp_offset,
24144 cop0_sp_offset.
24145 (machine_function): Add interrupt_handler_p, use_shadow_register_set_p,
24146 keep_interrupts_masked_p, use_debug_exception_return_p.
24147 (mips_attribute_table): Add interrupt, use_shadow_register_set,
24148 keep_interrupts_masked, use_debug_exception_return.
24149 (mips_interrupt_type_p, mips_use_shadow_register_set_p,
24150 mips_keep_interrupts_masked_p, mips_use_debug_exception_return_p):
24151 New functions.
24152 (mips_function_ok_for_sibcall): Return false for interrupt handlers.
24153 (mips_print_operand): Process COP0 registers to print $0 .. $31
24154 correctly for GAS to process.
24155 (mips_interrupt_extra_call_saved_reg_p): New function.
24156 (mips_cfun_call_saved_reg_p): For interrupt handlers, we need to check
24157 extra registers.
24158 (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
24159 (mips_compute_frame_info): Add supports for interrupt context that
24160 includes doubleword accumulators and COP0 registers.
24161 (mips_for_each_saved_acc): New function.
24162 (mips_for_each_saved_gpr_and_fpr): Change the function name from
24163 mips_for_each_saved_reg.
24164 (mips_save_reg): Save accumulators.
24165 (mips_kernel_reg_p): A new for_each_rtx callback.
24166 (mips_expand_prologue): Support interrupt handlers.
24167 (mips_restore_reg): Restore accumulators.
24168 (mips_expand_epilogue): Support interrupt handlers.
24169 (mips_can_use_return_insn): Return false for interrupt handlers.
24170 (mips_epilogue_uses): New function.
24171 * config/mips/mips.md (UNSPEC_ERET, UNSPEC_DERET, UNSPEC_DI,
24172 UNSPEC_EHB, UNSPEC_RDPGPR, UNSPEC_COP0): New UNSPEC.
24173 (mips_eret, mips_deret, mips_di, mips_ehb, mips_rdpgpr,
24174 cop0_move): New instructions.
24175 * config/mips/mips-protos.h (mips_epilogue_uses): Declare.
24176 * config/mips/mips.h (K0_REG_NUM, K1_REG_NUM, KERNEL_REG_P): New
24177 defines.
24178 (COP0_STATUS_REG_NUM, COP0_CAUSE_REG_NUM, COP0_EPC_REG_NUM):
24179 New defines.
24180 (CAUSE_IPL, SR_IPL, SR_EXL, SR_IE): New defines.
24181 (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): For
24182 interrupt handlers, we use K0 as the temporary register.
24183 (EPILOGUE_USES): Change to a function call.
24184 * config/mips/sde.h (MIPS_EPILOGUE_TEMP_REGNUM): For interrupt
24185 handlers, we use K0 as the temporary register.
24186
24187 * doc/extend.texi (Function Attributes): Document interrupt,
24188 use_shadow_register_set, keep_interrupts_masked,
24189 use_debug_exception_return for MIPS attributes.
24190
24191 2009-04-03 Alan Modra <amodra@bigpond.net.au>
24192
24193 * config.gcc (powerpc64-*-gnu*): Add rs6000/default64.h to tm_file.
24194 Remove a number of t-files from tmake_file.
24195 * config/rs6000/sysv4.opt (mprototype): Name variable target_prototype.
24196 * config/rs6000/sysv4.h (TARGET_PROTOTYPE): Define.
24197 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
24198 target_prototype, not TARGET_PROTOTYPE.
24199 (LINK_OS_GNU_SPEC): Define.
24200 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Delete tramp.S
24201 and darwin-ldoubdle.c.
24202
24203 2009-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
24204
24205 PR driver/39293
24206 * gcc.c (save_temps_flag): Add support for -save-temps=obj.
24207 (cpp_options): Ditto.
24208 (default_compilers): Ditto.
24209 (display_help): Ditto.
24210 (process_command): Ditto.
24211 (do_spec_1): Ditto.
24212 (set_input): Use lbasename instead of duplicate code.
24213 (save_temps_prefix): New static for -save-temps=obj.
24214 (save_temps_length): Ditto.
24215
24216 * doc/invoke.texi (-save-temps=obj): Document new variant to
24217 -save-temps switch.
24218
24219 2009-04-02 Jeff Law <law@redhat.com>
24220
24221 * reload1.c (fixup_eh_region_notes): Remove write-only "trap_count"
24222 variable.
24223
24224 2009-04-02 H.J. Lu <hongjiu.lu@intel.com>
24225
24226 * configure.ac: Support -Bstatic/-Bdynamic for linker version > 2.
24227 * configure: Regenerated.
24228
24229 2009-04-02 Rafael Avila de Espindola <espindola@google.com>
24230
24231 * c-decl.c (merge_decls): Make sure newdecl and olddecl don't
24232 share the argument list.
24233
24234 2009-04-02 Rafael Avila de Espindola <espindola@google.com>
24235
24236 Merge
24237
24238 2009-02-12 Diego Novillo <dnovillo@google.com>
24239
24240 * varpool.c (debug_varpool): New.
24241 * cgraph.h (debug_varpool): Declare.
24242
24243 2009-04-02 Jan Hubicka <jh@suse.cz>
24244
24245 * passes.c (init_optimization_passes): Remove two copies of ehcleanup
24246 pass.
24247
24248 2009-04-02 H.J. Lu <hongjiu.lu@intel.com>
24249
24250 * config/i386/i386.c (ix86_abi): Move initialization to ...
24251 (override_options): Here.
24252
24253 2009-04-02 Christian Bruel <christian.bruel@st.com>
24254
24255 * config/sh/sh.c (sh_dwarf_register_span): New function.
24256 (TARGET_DWARF_REGISTER_SPAN): Define.
24257 * config/sh/sh-protos.h (sh_dwarf_register_span): Declare.
24258
24259 2009-04-02 Ira Rosen <irar@il.ibm.com>
24260
24261 PR tree-optimization/39595
24262 * tree-vect-slp.c (vect_build_slp_tree): Check that the size of
24263 interleaved loads group is not greater than the SLP group size.
24264
24265 2009-04-02 Rafael Avila de Espindola <espindola@google.com>
24266
24267 * builtins.c (is_builtin_name): New.
24268 (called_as_built_in): Use is_builtin_name.
24269 * tree.h (is_builtin_name): New.
24270 * varasm.c (incorporeal_function_p): Use is_builtin_name
24271
24272 2009-04-02 Andrew Stubbs <ams@codesourcery.com>
24273
24274 * config/sh/linux-unwind.h: Disable when inhibit_libc is defined.
24275
24276 2009-04-02 Dodji Seketeli <dodji@redhat.com>
24277
24278 PR c++/26693
24279 * c-decl.c (clone_underlying_type): Move this ...
24280 * c-common.c (set_underlying_type): ... here.
24281 Also, make sure the function properly sets TYPE_STUB_DECL() on
24282 the newly created typedef variant type.
24283 * c-common.h (is_typedef_decl, set_underlying_type): Declare ...
24284 * c-common.c (is_typedef_decl, set_underlying_type): ... new entry
24285 points.
24286
24287 2009-04-02 Richard Guenther <rguenther@suse.de>
24288
24289 PR tree-optimization/37221
24290 * tree-flow.h (degenerate_phi_result): Declare.
24291 * tree-ssa-dom.c (degenerate_phi_result): Export.
24292 * tree-scalar-evolution.c (analyze_initial_condition): If
24293 the initial condition is defined by a degenerate PHI node
24294 use the degenerate value.
24295
24296 2009-04-01 Eric Botcazou <ebotcazou@adacore.com>
24297
24298 PR rtl-optimization/39588
24299 * combine.c (merge_outer_ops): Do not set the constant when this
24300 is not necessary.
24301 (simplify_shift_const_1): Do not modify it either in this case.
24302
24303 2009-04-01 Steven Bosscher <steven@gcc.gnu.org>
24304
24305 * config/ia64/ia64.c (ia64_handle_option): Inform user that Itanium1
24306 tuning is deprecated if -mtune value is set to an Itanium1 variant.
24307
24308 2009-04-01 Janis Johnson <janis187@us.ibm.com>
24309
24310 PR c/29027
24311 * c-lex.c (interpret_float): Default (no suffix) is double.
24312
24313 2009-04-1 Xinliang David Li <davidxl@google.com>
24314
24315 * config/i386/i386.c (legitimate_constant_p): Recognize
24316 all one vector constant.
24317
24318 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
24319
24320 * config/vax/vax.c: Add #includes to silence warnings.
24321 Change #include order to silence two warnings.
24322
24323 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
24324
24325 * config/vax/linux.h (TARGET_DEFAULT): Add the MASK_QMATH flag bit.
24326 (ASM_SPEC): Pass -k to the assembler for PIC code.
24327
24328 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
24329
24330 * config.gcc: Add vax-*-linux* to the switch.
24331 * config/vax/linux.h: New file. (TARGET_VERSION,
24332 TARGET_OS_CPP_BUILTINS, TARGET_DEFAULT, CPP_SPEC, LINK_SPEC): Define.
24333
24334 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
24335
24336 * config/vax/vax.c (vax_output_int_move, adjacent_operands_p):
24337 Use predicate macros instead of GET_CODE() == foo.
24338 * config/vax/vax.md (movsi_2, movstrictqi, and<mode>3, ashrsi3,
24339 ashlsi3, rotrsi3, <unnamed>): Likewise.
24340
24341 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
24342
24343 * config/vax/builtins.md (jbbssiqi, jbbssihi, jbbssisi, jbbcciqi,
24344 jbbccihi, jbbccisi): Remova trailing whitespace.
24345 * config/vax/constraints.md: Likewise.
24346 * config/vax/elf.h: (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
24347 * config/vax/openbsd1.h (OBSD_OLD_GAS): Likewise.
24348 * config/vax/predicates.md: Likewise.
24349 * config/vax/vax.c (print_operand_address, vax_output_int_move,
24350 vax_expand_addsub_di_operands, adjacent_operands_p): Likewise.
24351 * config/vax/vax.h: Likewise.
24352 * config/vax/vax.md (nonlocal_goto): Likewise.
24353
24354 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
24355
24356 * config/vax/vax.c (vax_float_literal, vax_output_int_move)
24357 (indirectable_address_p, adjacent_operands_p): Add spaces around
24358 braces.
24359 * config/vax/vax-protos.h (adjacent_operands_p): Likewise.
24360
24361 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
24362
24363 * config/vax/vax.c (legitimate_constant_address_p,
24364 legitimate_constant_p, indirectable_address_p, nonindexed_address_p,
24365 index_term_p, reg_plus_index_p, legitimate_address_p,
24366 vax_mode_dependent_address_p): Update comments to match functions
24367 modified by the recent int->bool conversion.
24368
24369 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
24370
24371 * config/vax/builtins.md: Update copyright message.
24372 * config/vax/constraints.md: Likewise.
24373 * config/vax/netbsd-elf.h: Likewise.
24374 * config/vax/predicates.md: Likewise.
24375 * config/vax/vax-protos.h: Likewise.
24376 * config/vax/vax.c: Likewise.
24377 * config/vax/vax.h: Likewise.
24378 * config/vax/vax.md: Likewise.
24379 * config/vax/vax.opt: Likewise.
24380
24381 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
24382
24383 * config/vax/builtins.md (ffssi2, ffssi2_internal,
24384 sync_lock_test_and_set<mode>, sync_lock_release<mode>): Fix indention.
24385 * config/vax/constraints.md (B, R): Likewise.
24386 * config/vax/predicates.md (external_memory_operand,
24387 nonimmediate_addsub_di_operand): Likewise.
24388 * config/vax/vax.c (vax_output_int_add): Likewise.
24389 * config/vax/vax.md (movsi, movsi_2, mov<mode>, call_value,
24390 untyped_call): Likewise.
24391
24392 2009-04-01 Matt Thomas <matt@3am-software.com>
24393
24394 * config/vax/predicates.md: New file.
24395 (symbolic_operand, local_symbolic_operand, external_symbolic_operand,
24396 external_const_operand, nonsymbolic_operand, external_memory_operand,
24397 indirect_memory_operand, indexed_memory_operand,
24398 illegal_blk_memory_operand, illegal_addsub_di_memory_operand,
24399 nonimmediate_addsub_di_operand, general_addsub_di_operand): New
24400 predicate.
24401 * config/vax/constraints.md: New file.
24402 (Z0, U06, U08, U16, CN6, S08, S16, I, J, K, L, M, N, O, G, Q, B, R, T):
24403 New constraint.
24404 * config/vax/builtins.md: New file.
24405 (ffssi2, ffssi2_internal, sync_lock_test_and_set<mode>, jbbssiqi,
24406 jbbssihi, jbbssisi, sync_lock_release<mode>, jbbcciqi, jbbccihi,
24407 jbbccisi): Define.
24408 * config/vax/vax.opt (mqmath): Add option.
24409 * config/vax/vax.md (isfx): Extend with DI.
24410 (VAXintQH, VAXintQHSD): Define.
24411 (tst<mode>, cmp<mode>, *bit<mode>, movmemhi1, truncsiqi2, truncsihi2,
24412 mulsidi3, add<mode>3, sub<mode>, mul<mode>3, div<mode>3, and<mode>,
24413 and<mode>_const_int, ior<mode>3, xor<mode>3, neg<mode>2,
24414 one_cmpl<mode>2, ashlsi3, lshrsi3, rotlsi3): Update constraints.
24415 (movdi): Update constraints and use vax_output_int_move().
24416 (movsi, movsi_2, pushlclsymreg, pushextsymreg, movlclsymreg,
24417 movextsymreg, adddi3, adcdi3, subdi3, sbcdi3, pushextsym, movextsym,
24418 pushlclsym, movlclsym, movaddr<mode>, pushaddr<mode>,
24419 nonlocal_goto): New.
24420 (mov<mode>): Extend accepted operand types.
24421 (subdi3_old): Rename from subdi3, change update constraints and use
24422 a new implementation.
24423 * config/vax/vax.h (PCC_BITFIELD_TYPE_MATTERS): Add space.
24424 (FRAME_POINTER_CFA_OFFSET, IRA_COVER_CLASSES, CLASS_MAX_NREGS,
24425 MOVE_RATIO, CLEAR_RATIO): Define.
24426 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P,
24427 CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
24428 (PRINT_OPERAND): Redefine using a function instead of inlined code.
24429 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
24430 (split_quadword_operands): Make static and really allow variable
24431 splitting.
24432 (print_operand_address): Update for PIC generation.
24433 (print_operand, vax_builtin_setjmp_frame_value, vax_output_int_subtract,
24434 indexable_address_p, fixup_mathdi_operand,
24435 vax_expand_addsub_di_operands, adjacent_operands_p): New.
24436 (vax_float_literal, legitimate_constant_p,
24437 indirectable_constant_address_p, index_term_p,
24438 reg_plus_index_p): Return bool instead of int.
24439 (vax_rtx_costs): Fix cost for CONST_INT, indent and use HOST_WIDE_INT
24440 where needed.
24441 (vax_output_int_move, vax_output_int_add): Extend to allow PIC
24442 generation.
24443 (vax_output_conditional_branch): Indent.
24444 (legitimate_constant_address_p, indirectable_constant_address_p,
24445 indirectable_address_p, nonindexed_address_p, legitimate_address_p,
24446 vax_mode_dependent_address_p): Return bool instead of int, update for
24447 PIC generation.
24448 * config/vax/vax-protos.h (legitimate_constant_address_p,
24449 legitimate_constant_p, legitimate_address_p,
24450 vax_mode_dependent_address_p): Change declaration to bool.
24451 (legitimate_pic_operand_p, adjacent_operands_p, print_operand,
24452 vax_expand_addsub_di_operands, vax_output_int_subtract,
24453 vax_output_movmemsi): Declare.
24454 (split_quadword_operands, vax_float_literal): Delete declaration.
24455 * config/vax/netbsd-elf.h (CC1_SPEC, CC1PLUS_SPEC) Define.
24456 * config/vax/elf.h (NO_EXTERNAL_INDIRECT_ADDRESS,
24457 VAX_CC1_AND_CC1PLUS_SPEC, ASM_PREFERRED_EH_DATA_FORMAT,
24458 ASM_OUTPUT_DWARF_PCREL): Define.
24459 (ASM_SPEC): Change definition to allow PIC generation.
24460
24461 2009-04-01 Steve Ellcey <sje@cup.hp.com>
24462
24463 * doc/sourcebuild.texi: Update front-end requirements.
24464
24465 2009-04-01 Jakub Jelinek <jakub@redhat.com>
24466
24467 PR target/39226
24468 * config/rs6000/rs6000.md (andsi3_internal5_nomc,
24469 anddi3_internal2_nomc, anddi3_internal3_nomc): Removed.
24470 (booldi3_internal3): Use boolean_or_operator instead of
24471 boolean_operator.
24472
24473 2009-04-01 Joseph Myers <joseph@codesourcery.com>
24474
24475 PR c/39605
24476 * c-decl.c (grokdeclarator): Pedwarn for file-scope array
24477 declarator whose size is not an integer constant expression but
24478 folds to an integer constant, then treat it as a constant
24479 subsequently.
24480
24481 2009-04-01 Richard Guenther <rguenther@suse.de>
24482
24483 * fold-const.c (fold_plusminus_mult_expr): Do not fold
24484 i * 4 + 2 to (i * 2 + 1) * 2.
24485
24486 2009-04-01 Jakub Jelinek <jakub@redhat.com>
24487
24488 PR c/37772
24489 * c-parser.c (c_parser_asm_statement): Skip until close paren and
24490 return if c_parser_asm_string_literal returned NULL.
24491
24492 2009-04-01 Nick Clifton <nickc@redhat.com>
24493
24494 * config/m32c/m32c.h (LIBGCC2_UNITS_PER_WORD): Define if not
24495 already defined.
24496 * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Add m32c-lib2-trapv.c.
24497 * config/m32c/m32c-lib2.c: Remove unused typedefs. Rename the
24498 other typedefs to avoid conflicts with libgcc2.c. Define labels
24499 to gain 16-bit bit-manipulation functions from libgcc2.c and then
24500 include it.
24501 * config/m32c/m32c-lib2-trapv.c: New file. Define labels
24502 to gain 16-bit trapping arithmetic functions from libgcc2.c and
24503 then include it.
24504
24505 2009-04-01 Rafael Avila de Espindola <espindola@google.com>
24506
24507 * varasm.c (default_function_rodata_section): Declare DOT as
24508 const char*.
24509
24510 2009-04-01 Kai Tietz <kai.tietz@onevision.com>
24511 Andrey Galkin <agalkin@hypercom.com>
24512
24513 PR/39492
24514 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
24515 Make object_name unique for each process.
24516
24517 2009-04-01 Jakub Jelinek <jakub@redhat.com>
24518
24519 PR other/39591
24520 * omp-low.c (remove_exit_barrier): Don't optimize if there are any
24521 addressable variables in the parallel that could go out of scope while
24522 running queued tasks.
24523
24524 2009-04-01 Anatoly Sokolov <aesok@post.ru>
24525
24526 * config/avr/avr.h (avr_case_values_threshold): Remove declaration.
24527 (CASE_VALUES_THRESHOLD): Redefine.
24528 * config/avr/avr.c (avr_override_options): Remove initialization of
24529 avr_case_values_threshold variable.
24530 (avr_case_values_threshold): Remove variable. Add new function.
24531 * config/avr/avr-protos.h (avr_case_values_threshold): Declare.
24532 * config/avr/avr.opt (mno-tablejump): Remove option.
24533 * doc/invoke.texi (AVR Options): Remove -mno-tablejump.
24534
24535 2009-04-01 DJ Delorie <dj@redhat.com>
24536
24537 * varasm.c (default_function_rodata_section): Don't assume
24538 anything about where the first '.' in the section name is.
24539
24540 2009-04-01 Alan Modra <amodra@bigpond.net.au>
24541
24542 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete redundant
24543 rs6000_emit_stack_tie.
24544
24545 2009-03-31 Ian Lance Taylor <iant@google.com>
24546
24547 * tree-eh.c (tree_remove_unreachable_handlers): Compare
24548 gimple_code with GIMPLE_RESX, not RESX.
24549
24550 2009-03-31 Joseph Myers <joseph@codesourcery.com>
24551
24552 * c-common.c (c_get_ident): New.
24553 (c_common_nodes_and_builtins): Call it for type names that may be NULL.
24554
24555 2009-04-01 Ben Elliston <bje@au.ibm.com>
24556
24557 * config/rs6000/sysv4.opt (msdata): Improve option description.
24558
24559 2009-03-31 Steve Ellcey <sje@cup.hp.com>
24560
24561 * config/ia64/ia64.md (divsf3_internal_lat): Remove.
24562 (divdf3_internal_lat): Remove.
24563 (divxf3_internal_lat): Remove.
24564 (divxf3_internal_thr): Remove.
24565 (divxf): Use divxf3_internal.
24566 * config/ia64/div.md (divsf3_internal_lat): New.
24567 (divdf3_internal_lat): New.
24568 (divxf3_internal): New.
24569
24570 2009-03-31 Joseph Myers <joseph@codesourcery.com>
24571
24572 PR c/448
24573 * Makefile.in (USE_GCC_STDINT): Define.
24574 (stmp-int-hdrs): Install stdint.h if applicable.
24575 * c-common.c (CHAR16_TYPE): Define in terms of UINT_LEAST16_TYPE
24576 if known.
24577 (CHAR32_TYPE): Define in terms of UINT_LEAST32_TYPE if known.
24578 (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE,
24579 UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
24580 INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
24581 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
24582 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
24583 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
24584 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
24585 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
24586 (c_common_nodes_and_builtins): Initialize
24587 underlying_wchar_type_node. Do not initialize
24588 signed_wchar_type_node or unsigned_wchar_type_node. Initialize
24589 nodes for new types.
24590 (c_stddef_cpp_builtins): Define macros for new types.
24591 * c-common.h (CTI_SIGNED_WCHAR_TYPE, CTI_UNSIGNED_WCHAR_TYPE):
24592 Remove.
24593 (CTI_UNDERLYING_WCHAR_TYPE, CTI_SIG_ATOMIC_TYPE, CTI_INT8_TYPE,
24594 CTI_INT16_TYPE, CTI_INT32_TYPE, CTI_INT64_TYPE, CTI_UINT8_TYPE,
24595 CTI_UINT16_TYPE, CTI_UINT32_TYPE, CTI_UINT64_TYPE,
24596 CTI_INT_LEAST8_TYPE, CTI_INT_LEAST16_TYPE, CTI_INT_LEAST32_TYPE,
24597 CTI_INT_LEAST64_TYPE, CTI_UINT_LEAST8_TYPE, CTI_UINT_LEAST16_TYPE,
24598 CTI_UINT_LEAST32_TYPE, CTI_UINT_LEAST64_TYPE, CTI_INT_FAST8_TYPE,
24599 CTI_INT_FAST16_TYPE, CTI_INT_FAST32_TYPE, CTI_INT_FAST64_TYPE,
24600 CTI_UINT_FAST8_TYPE, CTI_UINT_FAST16_TYPE, CTI_UINT_FAST32_TYPE,
24601 CTI_UINT_FAST64_TYPE, CTI_INTPTR_TYPE, CTI_UINTPTR_TYPE): Define.
24602 (signed_wchar_type_node, unsigned_wchar_type_node): Remove.
24603 (underlying_wchar_type_node, sig_atomic_type_node, int8_type_node,
24604 int16_type_node, int32_type_node, int64_type_node,
24605 uint8_type_node, uint16_type_node, c_uint32_type_node,
24606 c_uint64_type_node, int_least8_type_node, int_least16_type_node,
24607 int_least32_type_node, int_least64_type_node,
24608 uint_least8_type_node, uint_least16_type_node,
24609 uint_least32_type_node, uint_least64_type_node,
24610 int_fast8_type_node, int_fast16_type_node, int_fast32_type_node,
24611 int_fast64_type_node, uint_fast8_type_node, uint_fast16_type_node,
24612 uint_fast32_type_node, uint_fast64_type_node, intptr_type_node,
24613 uintptr_type_node): Define.
24614 * c-cppbuiltin.c (builtin_define_constants,
24615 builtin_define_type_minmax): New.
24616 (builtin_define_stdint_macros): Define more macros.
24617 (c_cpp_builtins): Define more limit macros.
24618 (type_suffix): New.
24619 (builtin_define_type_max): Define in terms of
24620 builtin_define_type_minmax. Remove is_long parameter. All
24621 callers changed.
24622 * config.gcc (use_gcc_stdint): Define.
24623 (tm_file): Add glibc-stdint.h for targets using glibc or uClibc.
24624 Add newlib-stdint.h for generic targets.
24625 * config/glibc-stdint.h, config/newlib-stdint.h,
24626 ginclude/stdint-gcc.h, ginclude/stdint-wrap.h: New.
24627 * config/m32c/m32c.h (UINTPTR_TYPE): Define.
24628 * config/score/score.h (UINTPTR_TYPE): Define.
24629 * config/sol2.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
24630 INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
24631 UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
24632 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
24633 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
24634 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
24635 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
24636 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
24637 * config/spu/spu.h (STDINT_LONG32): Define.
24638 * configure.ac (use_gcc_stdint): Substitute.
24639 * configure: Regenerate.
24640 * doc/cpp.texi (__SIG_ATOMIC_TYPE__, __INT8_TYPE__,
24641 __INT16_TYPE__, __INT32_TYPE__, __INT64_TYPE__, __UINT8_TYPE__,
24642 __UINT16_TYPE__, __UINT32_TYPE__, __UINT64_TYPE__,
24643 __INT_LEAST8_TYPE__, __INT_LEAST16_TYPE__, __INT_LEAST32_TYPE__,
24644 __INT_LEAST64_TYPE__, __UINT_LEAST8_TYPE__, __UINT_LEAST16_TYPE__,
24645 __UINT_LEAST32_TYPE_, __UINT_LEAST64_TYPE__, __INT_FAST8_TYPE__,
24646 __INT_FAST16_TYPE__, __INT_FAST32_TYPE__, __INT_FAST64_TYPE__,
24647 __UINT_FAST8_TYPE__, __UINT_FAST16_TYPE__, __UINT_FAST32_TYPE__,
24648 __UINT_FAST64_TYPE__, __INTPTR_TYPE__, __UINTPTR_TYPE__,
24649 __WINT_MAX__, __SIZE_MAX__, __PTRDIFF_MAX__, __UINTMAX_MAX__,
24650 __SIG_ATOMIC_MAX__, __INT8_MAX__, __INT16_MAX__, __INT32_MAX__,
24651 __INT64_MAX__, __UINT8_MAX__, __UINT16_MAX__, __UINT32_MAX__,
24652 __UINT64_MAX__, __INT_LEAST8_MAX__, __INT_LEAST16_MAX__,
24653 __INT_LEAST32_MAX__, __INT_LEAST64_MAX__, __UINT_LEAST8_MAX__,
24654 __UINT_LEAST16_MAX__, __UINT_LEAST32_MAX__, __UINT_LEAST64_MAX__,
24655 __INT_FAST8_MAX__, __INT_FAST16_MAX__, __INT_FAST32_MAX__,
24656 __INT_FAST64_MAX__, __UINT_FAST8_MAX__, __UINT_FAST16_MAX__,
24657 __UINT_FAST32_MAX__, __UINT_FAST64_MAX__, __INTPTR_MAX__,
24658 __UINTPTR_MAX__, __WCHAR_MIN__, __WINT_MIN__, __SIG_ATOMIC_MIN__,
24659 __INT8_C, __INT16_C, __INT32_C, __INT64_C, __UINT8_C, __UINT16_C,
24660 __UINT32_C, __UINT64_C, __INTMAX_C, __UINTMAX_C): Document.
24661 * doc/tm.texi (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE,
24662 INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
24663 INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
24664 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
24665 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
24666 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
24667 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
24668 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Document.
24669
24670 2009-03-31 Bernd Schmidt <bernd.schmidt@analog.com>
24671
24672 * loop-iv.c (suitable_set_for_replacement): Renamed from
24673 simplify_using_assignment; changed to return bool and to accept new
24674 args DEST and SRC. Return true iff we find a source/destination pair
24675 that can be used to make a replacement, and fill SRC and DEST if so.
24676 Remove arg ALTERED. Don't deal with altered regs here. All callers
24677 changed.
24678 (simplify_using_initial_values): Deal with altered regs here and track
24679 more precisely the effect they have on the validity of our expression.
24680
24681 * loop-iv.c (simplify_using_condition): A condition of the form
24682 (EQ REG CONST) can be used to simply make a substitution.
24683 (simplify_using_initial_values): Keep track of conditions we have seen
24684 and keep using them to simplify new expressions, while applying the
24685 same substitutions to them as to the expression.
24686
24687 * simplify-rtx.c (simplify_relational_operation_1): Simplify
24688 (LTU (PLUS a C) C) or (LTU (PLUS a C) a) to (GEU a -C); likewise with
24689 GEU/LTU reversed.
24690
24691 * loop-iv.c (determine_max_iter): New arg OLD_NITER. All callers
24692 changed. Use this when trying to improve the upper bound.
24693 Generate the comparison by using simplify_gen_relational.
24694
24695 * loop-iv.c (simple_rhs_p): Allow more kinds of expressions.
24696
24697 * loop-iv.c (replace_single_def_regs, replace_in_expr): New static
24698 functions.
24699 (simplify_using_assignment, simplify_using_initial_values): Call
24700 replace_in_expr to make replacements. Call replace_single_def_regs
24701 once on the initial version of the expression.
24702
24703 2009-03-31 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24704
24705 PR target/27237
24706 * doc/invoke.texi (ARM Options): Update documentation for -mthumb.
24707
24708 2009-03-31 Richard Guenther <rguenther@suse.de>
24709
24710 PR middle-end/31029
24711 * fold-const.c (fold_binary): Fold X +- Y CMP X to Y CMP 0 for
24712 equality comparisons. Fold C - X CMP X if C % 2 == 1.
24713
24714 2009-03-31 Richard Guenther <rguenther@suse.de>
24715
24716 * tree.h (div_if_zero_remainder): Declare.
24717 * fold-const.c (div_if_zero_remainder): Export.
24718 * tree-ssa-forwprop.c
24719 (forward_propagate_addr_into_variable_array_index): Handle
24720 constant array index addition outside of the variable index.
24721
24722 2009-03-31 Joseph Myers <joseph@codesourcery.com>
24723
24724 PR target/39592
24725 * config/i386/i386.md (*floatunssi<mode>2_1, two unnamed
24726 define_splits, floatunssi<mode>2): Require x87 conversions from
24727 DImode to be permitted.
24728
24729 2009-03-31 Joseph Myers <joseph@codesourcery.com>
24730
24731 PR preprocessor/15638
24732 * c-common.c (c_cpp_error): Handle CPP_DL_FATAL.
24733
24734 2009-03-31 Richard Guenther <rguenther@suse.de>
24735
24736 PR middle-end/23401
24737 PR middle-end/27810
24738 * tree.h (DECL_GIMPLE_FORMAL_TEMP_P): Remove.
24739 (struct tree_decl_with_vis): Remove gimple_formal_temp member.
24740 * tree-eh.c (lower_eh_constructs_2): Move LHS assignment to
24741 a separate statement.
24742 * gimplify.c (pop_gimplify_context): Remove formal temp handling.
24743 (lookup_tmp_var): Likewise.
24744 (is_gimple_formal_tmp_or_call_rhs): Remove.
24745 (is_gimple_reg_or_call_rhs): Rename to ...
24746 (is_gimple_reg_rhs_or_call): ... this.
24747 (is_gimple_mem_or_call_rhs): Rename to ...
24748 (is_gimple_mem_rhs_or_call): ... this.
24749 (internal_get_tmp_var): Use is_gimple_reg_rhs_or_call. Set
24750 DECL_GIMPLE_REG_P only if is_formal is true.
24751 (gimplify_compound_lval): Use is_gimple_reg. Remove workaround
24752 for non-proper post-modify expression gimplification.
24753 (gimplify_self_mod_expr): For post-modify expressions gimplify
24754 the lvalue to a minimal lvalue.
24755 (rhs_predicate_for): Remove formal temp case.
24756 (gimplify_modify_expr_rhs): Likewise.
24757 (gimplify_addr_expr): Use is_gimple_reg.
24758 (gimplify_expr): Remove formal temp cases.
24759 (gimple_regimplify_operands): Likewise.
24760 * tree-ssa-pre.c (get_or_alloc_expr_for): Treat EXC_PTR_EXPR
24761 and FILTER_EXPR like constants.
24762 * gimple.c (walk_gimple_op): Fix val_only initialization, use
24763 is_gimple_reg.
24764 (is_gimple_formal_tmp_rhs): Remove.
24765 (is_gimple_reg_rhs): Remove special casing.
24766 (is_gimple_mem_rhs): Fix.
24767 (is_gimple_reg): Move DECL_GIMPLE_REG_P handling earlier.
24768 (is_gimple_formal_tmp_var): Remove.
24769 (is_gimple_formal_tmp_reg): Likewise.
24770 (is_gimple_min_lval): Allow invariant component ref parts.
24771 * gimple.h (is_gimple_formal_tmp_rhs, is_gimple_formal_tmp_var,
24772 is_gimple_formal_tmp_reg): Remove declarations.
24773 * tree-cfg.c (verify_expr): Verify that variables with address
24774 taken do not have DECL_GIMPLE_REG_P set.
24775 * tree-mudflap.c (mf_build_check_statement_for): Use
24776 force_gimple_operand instead of gimplify_expr.
24777
24778 2009-03-31 Ayal Zaks <zaks@il.ibm.com>
24779
24780 * modulo-sched.c (sms_schedule_by_order): Pass the actual
24781 schedulable rows to compute_split_row.
24782
24783 2009-03-31 Ben Elliston <bje@au.ibm.com>
24784
24785 PR target/31635
24786 * config/rs6000/rs6000.c (rs6000_handle_option): Handle
24787 OPT_mvrsave.
24788
24789 2009-03-31 Alan Modra <amodra@bigpond.net.au>
24790
24791 * doc/invoke.texi (RS/6000 and PowerPC Options):Document mtls-markers.
24792 * configure.ac (HAVE_AS_TLS_MARKERS): New gas feature check.
24793 * configure: Regenerate.
24794 * config.in: Regenerate.
24795 * config/rs6000/rs6000.opt (mtls-markers): Add.
24796 * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Define.
24797 * config/rs6000/rs6000.md (tls_gd_aix, tls_gd_sysv): Add splitter.
24798 (tls_ld_aix, tls_ld_sysv): Likewise.
24799 (tls_gd, tls_gd_call_aix, tls_gd_call_sysv): New insns.
24800 (tls_ld, tls_ld_call_aix, tls_ld_call_sysv): Likewise.
24801
24802 2009-03-31 Alan Modra <amodra@bigpond.net.au>
24803
24804 * config/spu/spu.c (spu_expand_prologue): Delete redundant code.
24805
24806 2009-03-30 Jan Hubicka <jh@suse.cz>
24807
24808 * tree-eh.c (make_eh_edges): Set probability 100% to first edge
24809 out of RESX.
24810 (tree_remove_unreachable_handlers): Cleanup EH predecestor
24811 detection and label handling.
24812
24813 2009-03-30 Vladimir Makarov <vmakarov@redhat.com>
24814
24815 * ira-int.h (ira_allocno): Rename left_conflicts_num to
24816 left_conflicts_size.
24817 (ALLOCNO_LEFT_CONFLICTS_NUM): Rename to
24818 ALLOCNO_LEFT_CONFLICTS_SIZE.
24819
24820 * ira-color.c (allocno_spill_priority, push_allocno_to_stack,
24821 remove_allocno_from_bucket_and_push,
24822 allocno_spill_priority_compare, push_allocnos_to_stack,
24823 setup_allocno_available_regs_num): Use ALLOCNO_LEFT_CONFLICTS_SIZE
24824 instead of ALLOCNO_LEFT_CONFLICTS_NUM.
24825 (setup_allocno_left_conflicts_num): Ditto. Rename to
24826 setup_allocno_left_conflicts_size.
24827 (put_allocno_into_bucket): Use ALLOCNO_LEFT_CONFLICTS_SIZE
24828 instead of ALLOCNO_LEFT_CONFLICTS_NUM and
24829 setup_allocno_left_conflicts_size instead of
24830 setup_allocno_left_conflicts_num.
24831
24832 * ira-build.c (ira_create_allocno): Use
24833 ALLOCNO_LEFT_CONFLICTS_SIZE instead of
24834 ALLOCNO_LEFT_CONFLICTS_NUM.
24835
24836 2009-03-30 Vladimir Makarov <vmakarov@redhat.com>
24837
24838 * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
24839 instead of DF_LR_OUT.
24840
24841 * ira-lives.c (process_bb_node_lives): Ditto.
24842
24843 * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
24844 instead of DF_LR_{OUT,IN}.
24845
24846 * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
24847
24848 * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
24849
24850 2009-03-30 Jan Hubicka <jh@suse.cz>
24851
24852 * except.c (label_to_region_map): Fix thinko.
24853
24854 2009-03-30 Steve Ellcey <sje@cup.hp.com>
24855
24856 PR middle-end/38237
24857 * tree.h (tree_find_value): New declaration.
24858 * tree.c (tree_find_value): New function.
24859 * varasm.c (assemble_external): Avoid duplicate entries on lists.
24860
24861 2009-03-30 Jakub Jelinek <jakub@redhat.com>
24862
24863 PR debug/39563
24864 * c-decl.c (struct c_binding): Add locus field.
24865 (bind): Add locus argument, set locus field from it.
24866 (pop_scope): For b->nested VAR_DECL or FUNCTION_DECL,
24867 add a DECL_EXTERNAL copy of b->decl to current BLOCK_VARS.
24868 (push_file_scope, pushtag, pushdecl, pushdecl_top_level,
24869 implicitly_declare, undeclared_variable, lookup_label,
24870 declare_label, c_make_fname_decl, c_builtin_function,
24871 c_builtin_function_ext_scope, store_parm_decls_newstyle): Adjust
24872 bind callers.
24873
24874 2009-03-30 H.J. Lu <hongjiu.lu@intel.com>
24875
24876 PR target/38781
24877 * config/i386/i386.c (classify_argument): Check total size of
24878 structure.
24879
24880 2009-03-30 Martin Jambor <mjambor@suse.cz>
24881
24882 * ipa-prop.h (jump_func_type): Rename IPA_UNKNOWN, IPA_CONST,
24883 IPA_CONST_MEMBER_PTR, and IPA_PASS_THROUGH to IPA_JF_UNKNOWN,
24884 IPA_JF_CONST, IPA_JF_CONST_MEMBER_PTR, and IPA_JF_PASS_THROUGH
24885 respectively.
24886
24887 * tree-dfa.c (get_ref_base_and_extent): Return -1 maxsize if
24888 seen_variable_array_ref while also traversing a union.
24889
24890 * tree-inline.c (optimize_inline_calls): Do not call
24891 cgraph_node_remove_callees.
24892 * cgraphbuild.c (remove_cgraph_callee_edges): New function.
24893 (pass_remove_cgraph_callee_edges): New variable.
24894 * passes.c (init_optimization_passes): Add
24895 pass_remove_cgraph_callee_edges after early inlining and before all
24896 late intraprocedural passes.
24897
24898 * omp-low.c (expand_omp_taskreg): Always set current_function_decl.
24899
24900 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
24901
24902 * config/sparc/sparc.md (*nand<V64mode>_vis, *nand<V32mode>_vis):
24903 Fix typos in names.
24904
24905 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
24906
24907 * combine.c (simplify_comparison): Use have_insn_for.
24908 * dojump.c (do_jump): Likewise.
24909
24910 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
24911
24912 * config/sparc/sparc.c (sparc_compare_emitted): Remove.
24913 (gen_compare_reg, emit_v9_brxx_insn): Handle MODE_CC
24914 sparc_compare_op0 like sparc_compare_emitted used to be handled.
24915 (sparc_expand_compare_and_swap_12): Set sparc_compare_op0
24916 instead of sparc_compare_emitted.
24917 * config/sparc/sparc.h (sparc_compare_emitted): Remove.
24918 * config/sparc/sparc.md (stack_protect_test): Set sparc_compare_op0
24919 instead of sparc_compare_emitted.
24920
24921 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
24922
24923 * bb-reorder.c (partition_hot_cold_basic_blocks): Do not
24924 enter/exit cfglayout mode.
24925 (pass_partition_block): Require it.
24926 * combine.c (find_single_use, reg_dead_at_p): Use CFG.
24927 (combine_instructions): Track basic blocks instead of labels.
24928 (update_cfg_for_uncondjump): New.
24929 (try_combine): Use it. Update jumps after rescanning.
24930 (pass_combine): Require PROP_cfglayout.
24931 * passes.c (pass_outof_cfg_layout_mode): Move after regmove.
24932
24933 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
24934
24935 * cfglayout.c (pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode):
24936 Provide/destroy PROP_cfglayout respectively.
24937 * gcse.c (pass_jump_bypass, pass_gcse): Require it.
24938 * tree-pass.h (PROP_cfglayout): New.
24939
24940 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
24941
24942 * fold-const.c (const_binop, fold_convert_const_real_from_fixed,
24943 fold_convert_const_fixed_from_fixed,
24944 fold_convert_const_fixed_from_int,
24945 fold_convert_const_fixed_from_real, fold_negate_const): Do not
24946 set TREE_CONSTANT_OVERFLOW.
24947 * tree.def: Remove mention of TREE_CONSTANT_OVERFLOW.
24948 * tree.h (TREE_CONSTANT_OVERFLOW): Delete.
24949
24950 2009-03-30 Ira Rosen <irar@il.ibm.com>
24951
24952 * tree-vect-loop-manip.c: New file.
24953 * tree-vectorizer.c: Update documentation and included files.
24954 (vect_loop_location): Make extern.
24955 (rename_use_op): Move to tree-vect-loop-manip.c
24956 (rename_variables_in_bb, rename_variables_in_loop,
24957 slpeel_update_phis_for_duplicate_loop,
24958 slpeel_update_phi_nodes_for_guard1,
24959 slpeel_update_phi_nodes_for_guard2, slpeel_make_loop_iterate_ntimes,
24960 slpeel_tree_duplicate_loop_to_edge_cfg, slpeel_add_loop_guard,
24961 slpeel_can_duplicate_loop_p, slpeel_verify_cfg_after_peeling,
24962 set_prologue_iterations, slpeel_tree_peel_loop_to_edge,
24963 find_loop_location): Likewise.
24964 (new_stmt_vec_info): Move to tree-vect-stmts.c.
24965 (init_stmt_vec_info_vec, free_stmt_vec_info_vec, free_stmt_vec_info,
24966 get_vectype_for_scalar_type, vect_is_simple_use,
24967 supportable_widening_operation, supportable_narrowing_operation):
24968 Likewise.
24969 (bb_in_loop_p): Move to tree-vect-loop.c.
24970 (new_loop_vec_info, destroy_loop_vec_info,
24971 reduction_code_for_scalar_code, report_vect_op,
24972 vect_is_simple_reduction, vect_is_simple_iv_evolution): Likewise.
24973 (vect_can_force_dr_alignment_p): Move to tree-vect-data-refs.c.
24974 (vect_supportable_dr_alignment): Likewise.
24975 * tree-vectorizer.h (tree-data-ref.h): Include.
24976 (vect_loop_location): Declare.
24977 Reorganize function declarations according to the new file structure.
24978 * tree-vect-loop.c: New file.
24979 * tree-vect-analyze.c: Remove. Move functions to tree-vect-data-refs.c,
24980 tree-vect-stmts.c, tree-vect-slp.c, tree-vect-loop.c.
24981 * tree-vect-data-refs.c: New file.
24982 * tree-vect-patterns.c (timevar.h): Don't include.
24983 * tree-vect-stmts.c: New file.
24984 * tree-vect-transform.c: Remove. Move functions to tree-vect-stmts.c,
24985 tree-vect-slp.c, tree-vect-loop.c.
24986 * Makefile.in (OBJS-common): Remove tree-vect-analyze.o and
24987 tree-vect-transform.o. Add tree-vect-data-refs.o, tree-vect-stmts.o,
24988 tree-vect-loop.o, tree-vect-loop-manip.o, tree-vect-slp.o.
24989 (tree-vect-analyze.o): Remove.
24990 (tree-vect-transform.o): Likewise.
24991 (tree-vect-data-refs.o): Add rule.
24992 (tree-vect-stmts.o, tree-vect-loop.o, tree-vect-loop-manip.o,
24993 tree-vect-slp.o): Likewise.
24994 (tree-vect-patterns.o): Remove redundant dependencies.
24995 (tree-vectorizer.o): Likewise.
24996 * tree-vect-slp.c: New file.
24997
24998 2009-03-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24999
25000 * optc-gen.awk: Warn if an option flag has multiple different
25001 help strings.
25002
25003 2009-03-30 Sebastian Pop <sebastian.pop@amd.com>
25004
25005 * doc/invoke.texi (-floop-interchange, -floop-strip-mine,
25006 -floop-block): Document dependences on PPL, CLooG and Graphite.
25007
25008 2009-03-30 Joseph Myers <joseph@codesourcery.com>
25009
25010 PR rtl-optimization/323
25011 * c-common.c (c_fully_fold, convert_and_check,
25012 c_common_truthvalue_conversion): Handle EXCESS_PRECISION_EXPR.
25013 (c_fully_fold_internal): Disallow EXCESS_PRECISION_EXPR.
25014 * c-common.def (EXCESS_PRECISION_EXPR): New.
25015 * c-cppbuiltin.c (builtin_define_float_constants): Define
25016 constants with enough digits for long double.
25017 * c-lex.c (interpret_float): Interpret constant with excess
25018 precision where appropriate.
25019 * c-opts.c (c_common_post_options): Set
25020 flag_excess_precision_cmdline. Give an error for
25021 -fexcess-precision=standard for C++ for processors where the
25022 option is significant.
25023 * c-parser.c (c_parser_conditional_expression): Handle excess
25024 precision in condition.
25025 * c-typeck.c (convert_arguments): Handle arguments with excess
25026 precision.
25027 (build_unary_op): Move excess precision outside operation.
25028 (build_conditional_expr): Likewise.
25029 (build_compound_expr): Likewise.
25030 (build_c_cast): Do cast on operand of EXCESS_PRECISION_EXPR.
25031 (build_modify_expr): Handle excess precision in RHS.
25032 (convert_for_assignment): Handle excess precision in converted
25033 value.
25034 (digest_init, output_init_element, process_init_element): Handle
25035 excess precision in initializer.
25036 (c_finish_return): Handle excess precision in return value.
25037 (build_binary_op): Handle excess precision in operands and add
25038 excess precision as needed for operation.
25039 * common.opt (-fexcess-precision=): New option.
25040 * config/i386/i386.h (X87_ENABLE_ARITH, X87_ENABLE_FLOAT): New.
25041 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
25042 For standard excess precision, output explicit conversion to and
25043 truncation from XFmode.
25044 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1,
25045 *float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp,
25046 *float<SSEMODEI24:mode><X87MODEF:mode>2_i387, two unnamed
25047 define_splits, floatdi<X87MODEF:mode>2_i387_with_xmm, two unnamed
25048 define_splits, *floatunssi<mode>2_1, two unnamed define_splits,
25049 floatunssi<mode>2, add<mode>3, sub<mode>3, mul<mode>3, divdf3,
25050 divsf3, *fop_<mode>_comm_i387, *fop_<mode>_1_i387,
25051 *fop_<MODEF:mode>_2_i387, *fop_<MODEF:mode>_3_i387,
25052 *fop_df_4_i387, *fop_df_5_i387, *fop_df_6_i387, two unnamed
25053 define_splits, sqrt<mode>2): Disable where appropriate for
25054 standard excess precision.
25055 * convert.c (convert_to_real): Do not shorten arithmetic to type
25056 for which excess precision would be used.
25057 * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Define.
25058 * doc/invoke.texi (-fexcess-precision=): Document option.
25059 (-mfpmath=): Correct index entry.
25060 * flags.h (enum excess_precision, flag_excess_precision_cmdline,
25061 flag_excess_precision): New.
25062 * langhooks.c (lhd_post_options): Set
25063 flag_excess_precision_cmdline.
25064 * opts.c (common_handle_option): Handle -fexcess-precision=.
25065 * toplev.c (flag_excess_precision_cmdline, flag_excess_precision,
25066 init_excess_precision): New.
25067 (lang_dependent_init_target): Call init_excess_precision.
25068 * tree.c (excess_precision_type): New.
25069 * tree.h (excess_precision_type): Declare.
25070
25071 2009-03-30 Joseph Myers <joseph@codesourcery.com>
25072
25073 PR c/35235
25074 * c-typeck.c (build_component_ref): Do not copy qualifiers from
25075 non-lvalue to component.
25076
25077 2009-03-29 Joseph Myers <joseph@codesourcery.com>
25078
25079 PR preprocessor/34695
25080 * Makefile.in (c-opts.o): Depend on c-tree.h.
25081 * c-common.c: Move down include of diagnostic.h.
25082 (done_lexing, c_cpp_error): New.
25083 * c-common.h (done_lexing): Declare.
25084 * c-decl.c (c_write_global_declarations): Don't check cpp_errors
25085 (parse_in).
25086 * c-opts.c: Include c-tree.h.
25087 (c_common_init_options): Set preprocessor error callback.
25088 (c_common_handle_option): Do not set preprocessor
25089 inhibit_warnings, warnings_are_errors, warn_system_headers,
25090 pedantic_errors or inhibit_warnings flags.
25091 (c_common_post_options): Do not check cpp_errors (parse_in).
25092 (c_common_finish): Do not output dependencies if there were
25093 errors. Do not check return value of cpp_finish.
25094 * c-ppoutput.c (pp_file_change): Set input_location.
25095 * c-tree.h (c_cpp_error): Declare.
25096 * diagnostic.c (diagnostic_set_info_translated): Also initialize
25097 override_column.
25098 (diagnostic_build_prefix): Check override_column.
25099 * diagnostic.h (diagnostic_info): Add override_column field.
25100 (diagnostic_override_column): Define.
25101
25102 2009-03-28 Paolo Bonzini <bonzini@gnu.org>
25103
25104 * c-common.c (c_expand_expr, c_staticp): Remove.
25105 * c-common.def (COMPOUND_LITERAL_EXPR): Delete.
25106 * c-common.h (emit_local_var, c_staticp, COMPOUND_LITERAL_EXPR_DECL,
25107 COMPOUND_LITERAL_EXPR_DECL_EXPR): Remove.
25108 * c-gimplify.c (gimplify_compound_literal_expr,
25109 optimize_compound_literals_in_ctor): Remove.
25110 (c_gimplify_expr): Remove COMPOUND_LITERAL_EXPR handling.
25111 * c-objc-common.h (LANG_HOOKS_STATICP): Remove.
25112 * c-semantics.c (emit_local_var): Remove.
25113
25114 * langhooks-def.h (lhd_expand_expr): Remove.
25115 * langhooks.c (lhd_expand_expr): Remove.
25116 * langhooks.h (LANG_HOOKS_DEF): Remove LANG_HOOKS_EXPAND_EXPR.
25117
25118 * expr.c (expand_expr_real_1): Move COMPOUND_LITERAL_EXPR
25119 handling from c-semantics.c; don't call into langhook.
25120 (expand_expr_addr_expr_1): Check that we don't get non-GENERIC trees.
25121 * gimplify.c (gimplify_compound_literal_expr,
25122 optimize_compound_literals_in_ctor): Move from c-gimplify.c.
25123 (gimplify_init_constructor): Call optimize_compound_literals_in_ctor.
25124 (gimplify_modify_expr_rhs, gimplify_expr): Handle COMPOUND_LITERAL_EXPR
25125 as was done in c-gimplify.c.
25126 * tree.c (staticp): Move COMPOUND_LITERAL_EXPR handling from c_staticp.
25127 * tree.h (COMPOUND_LITERAL_EXPR_DECL, COMPOUND_LITERAL_EXPR_DECL_EXPR):
25128 Move from c-common.h.
25129 * tree.def (COMPOUND_LITERAL_EXPR): Move from c-common.def.
25130
25131 * tree.c (staticp): Do not call langhook.
25132 * langhooks.c (lhd_staticp): Delete.
25133 * langhooks-def.h (lhd_staticp): Delete prototype.
25134 (LANG_HOOKS_STATICP): Delete.
25135 (LANG_HOOKS_INITIALIZER): Delete LANG_HOOKS_STATICP.
25136
25137 * doc/c-tree.texi (Expression nodes): Refer to DECL_EXPRs
25138 instead of DECL_STMTs.
25139
25140 2009-03-29 Joseph Myers <joseph@codesourcery.com>
25141
25142 PR c/456
25143 PR c/5675
25144 PR c/19976
25145 PR c/29116
25146 PR c/31871
25147 PR c/35198
25148 * builtins.c (fold_builtin_sincos): Build COMPOUND_EXPR in
25149 void_type_node.
25150 (fold_call_expr): Return a NOP_EXPR from folding rather than the
25151 contained expression.
25152 * c-common.c (c_fully_fold, c_fully_fold_internal, c_save_expr): New.
25153 (c_common_truthvalue_conversion): Use c_save_expr. Do not fold
25154 conditional expressions for C.
25155 (decl_constant_value_for_optimization): Move from
25156 decl_constant_value_for_broken_optimization in c-typeck.c. Check
25157 whether optimizing and that the expression is a VAR_DECL not of
25158 array type instead of doing such checks in the caller. Do not
25159 check pedantic. Call gcc_unreachable for C++.
25160 * c-common.def (C_MAYBE_CONST_EXPR): New.
25161 * c-common.h (c_fully_fold, c_save_expr,
25162 decl_constant_value_for_optimization): New prototypes.
25163 (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
25164 C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
25165 EXPR_INT_CONST_OPERANDS): Define.
25166 * c-convert.c (convert): Strip nops from expression.
25167 * c-decl.c (groktypename): Take extra parameters expr and
25168 expr_const_operands. Update call to grokdeclarator.
25169 (start_decl): Update call to grokdeclarator. Add statement for
25170 expressions used in type of decl.
25171 (grokparm): Update call to grokdeclarator.
25172 (push_parm_decl): Update call to grokdeclarator.
25173 (build_compound_literal): Add parameter non_const and build a
25174 C_MAYBE_COSNT_EXPR if applicable.
25175 (grokdeclarator): Take extra parameters expr and
25176 expr_const_operands. Track expressions used in declaration
25177 specifiers and declarators. Fold array sizes and track whether
25178 they are constant expressions and whether they are integer
25179 constant expressions.
25180 (parser_xref_tag): Set expr and expr_const_operands fields in
25181 return value.
25182 (grokfield): Update call to grokdeclarator.
25183 (start_function): Update call to grokdeclarator.
25184 (build_null_declspecs): Set expr and expr_const_operands fields in
25185 return value.
25186 (declspecs_add_type): Handle expressions in typeof specifiers.
25187 * c-parser.c (c_parser_declspecs): Set expr and
25188 expr_const_operands fields for declaration specifiers.
25189 (c_parser_enum_specifier): Likewise.
25190 (c_parser_struct_or_union_specifier): Likewise.
25191 (c_parser_typeof_specifier): Likewise. Update call to
25192 groktypename. Fold expression as needed. Return expressions with
25193 type instead of adding statements.
25194 (c_parser_attributes): Update calls to c_parser_expr_list.
25195 (c_parser_statement_after_labels): Fold expression before passing
25196 to objc_build_throw_stmt.
25197 (c_parser_condition): Fold expression.
25198 (c_parser_asm_operands): Fold expression.
25199 (c_parser_conditional_expression): Use c_save_expr. Update call
25200 to build_conditional_expr.
25201 (c_parser_alignof_expression): Update call to groktypename.
25202 (c_parser_postfix_expression): Preserve C_MAYBE_CONST_EXPR as
25203 original_code. Fold expression argument of va_arg. Create
25204 C_MAYBE_CONST_EXPR to preserve side effects of expressions in type
25205 argument to va_arg. Update calls to groktypename. Fold array
25206 index for offsetof. Verify that first argument to
25207 __builtin_choose_expr has integer type.
25208 (c_parser_postfix_expression_after_paren_type): Update calls to
25209 groktypename and build_compound_literal. Handle expressions with
25210 side effects in type name.
25211 (c_parser_postfix_expression_after_primary): Update call to
25212 c_parser_expr_list. Set original_code for calls to
25213 __builtin_constant_p.
25214 (c_parser_expr_list): Take extra parameter fold_p. Fold
25215 expressions if requested.
25216 (c_parser_objc_type_name): Update call to groktypename.
25217 (c_parser_objc_synchronized_statement): Fold expression.
25218 (c_parser_objc_receiver): Fold expression.
25219 (c_parser_objc_keywordexpr): Update call to c_parser_expr_list.
25220 (c_parser_omp_clause_num_threads, c_parser_omp_clause_schedule,
25221 c_parser_omp_atomic, c_parser_omp_for_loop): Fold expressions.
25222 * c-tree.h (CONSTRUCTOR_NON_CONST): Define.
25223 (struct c_typespec): Add elements expr and expr_const_operands.
25224 (struct c_declspecs): Add elements expr and expr_const_operands.
25225 (groktypename, build_conditional_expr, build_compound_literal):
25226 Update prototypes.
25227 (in_late_binary_op): Declare.
25228 * c-typeck.c (note_integer_operands): New function.
25229 (in_late_binary_op): New variable.
25230 (decl_constant_value_for_broken_optimization): Move to c-common.c
25231 and rename to decl_constant_value_for_optimization.
25232 (default_function_array_conversion): Do not strip nops.
25233 (default_conversion): Do not call
25234 decl_constant_value_for_broken_optimization.
25235 (build_array_ref): Do not fold result.
25236 (c_expr_sizeof_expr): Fold operand. Use C_MAYBE_CONST_EXPR for
25237 result when operand is a VLA.
25238 (c_expr_sizeof_type): Update call to groktypename. Handle
25239 expressions included in type name. Use C_MAYBE_CONST_EXPR for
25240 result when operand names a VLA type.
25241 (build_function_call): Update call to build_compound_literal.
25242 Only fold result for calls to __builtin_* functions. Strip
25243 NOP_EXPR from INTEGER_CST returned from such functions. Fold
25244 the function designator.
25245 (convert_arguments): Fold arguments. Update call to
25246 convert_for_assignment.
25247 (build_unary_op): Handle increment and decrement of
25248 C_MAYBE_CONST_EXPR. Move lvalue checks for increment and
25249 decrement earlier. Fold operand of increment and decrement.
25250 Handle address of C_MAYBE_CONST_EXPR. Only fold expression being
25251 built for integer operand. Wrap returns that are INTEGER_CSTs
25252 without being integer constant expressions or that have integer
25253 constant operands without being INTEGER_CSTs.
25254 (lvalue_p): Handle C_MAYBE_CONST_EXPR.
25255 (build_conditional_expr): Add operand ifexp_bcp. Track whether
25256 result is an integer constant expression or can be used in
25257 unevaluated parts of one and avoid folding and wrap as
25258 appropriate. Fold operands before possibly doing -Wsign-compare
25259 warnings.
25260 (build_compound_expr): Wrap result for C99 if operands can be used
25261 in integer constant expressions.
25262 (build_c_cast): Update call to digest_init. Do not ignore
25263 overflow from casting floating-point constants to integers. Wrap
25264 results that could be confused with integer constant expressions,
25265 null pointer constants or floating-point constants.
25266 (c_cast_expr): Update call to groktypename. Handle expressions
25267 included in type name.
25268 (build_modify_expr): Handle modifying a C_MAYBE_CONST_EXPR. Fold
25269 lhs inside possible SAVE_EXPR. Fold RHS before assignment.
25270 Update calls to convert_for_assignment.
25271 (convert_for_assignment): Take new parameter
25272 null_pointer_constant. Do not strip nops or call
25273 decl_constant_value_for_broken_optimization. Set
25274 in_late_binary_op for conversions to boolean.
25275 (store_init_value): Update call to digest_init.
25276 (digest_init): Take new parameter null_pointer_constant. Do not
25277 call decl_constant_value_for_broken_optimization. pedwarn for
25278 initializers not constant expressions. Update calls to
25279 convert_for_assignment.
25280 (constructor_nonconst): New.
25281 (struct constructor_stack): Add nonconst element.
25282 (really_start_incremental_init, push_init_level, pop_init_level):
25283 Handle constructor_nonconst and nonconst element.
25284 (set_init_index): Call constant_expression_warning for array
25285 designators.
25286 (output_init_element): Fold value. Set constructor_nonconst as
25287 applicable. pedwarn for initializers not constant expressions.
25288 Update call to digest_init. Call constant_expression_warning
25289 where constant initializers are required.
25290 (process_init_element): Use c_save_expr.
25291 (c_finish_goto_ptr): Fold expression.
25292 (c_finish_return): Fold return value. Update call to
25293 convert_for_assignment.
25294 (c_start_case): Fold switch expression.
25295 (c_process_expr_stmt): Fold expression.
25296 (c_finish_stmt_expr): Create C_MAYBE_CONST_EXPR as needed to
25297 ensure statement expression is not evaluated in constant expression.
25298 (build_binary_op): Track whether results are integer constant
25299 expressions or may occur in such, disable folding and wrap results
25300 as applicable. Fold operands for -Wsign-compare warnings unless
25301 in_late_binary_op.
25302 (c_objc_common_truthvalue_conversion): Handle results folded to
25303 integer constants that are not integer constant expressions.
25304 * doc/extend.texi: Document when typeof operands are evaluated,
25305 that condition of __builtin_choose_expr is an integer constant
25306 expression, and more about use of __builtin_constant_p in
25307 initializers.
25308
25309 2009-03-29 Richard Guenther <rguenther@suse.de>
25310
25311 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
25312 propagate addresses of array references.
25313
25314 2009-03-29 Steven Bosscher <steven@gcc.gnu.org>
25315
25316 * regmove.c (perhaps_ends_bb_p): Remove.
25317 (optimize_reg_copy_1): Don't call perhaps_ends_bb_p. Get basic block
25318 from INSN and check that the main loop stays within that basic block.
25319 (optimize_reg_copy_1, optimize_reg_copy_3, fixup_match_2): Likewise.
25320 (regmove_forward_pass): Split out from regmove_optimize. Use
25321 FOR_EACH_BB and FOR_BB_INSNS instead of traversing the insns stream.
25322 (regmove_backward_pass): Split out from regmove_optimize. Use
25323 FOR_EACH_BB_REVERSE and FOR_BB_INSNS_REVERS_SAFE.
25324 (regmove_optimize): Simplify.
25325
25326 2009-03-29 H.J. Lu <hongjiu.lu@intel.com>
25327
25328 PR target/39545
25329 * config/i386/i386.c (classify_argument): Ignore flexible array
25330 member in struct and warn ABI change.
25331
25332 2009-03-29 H.J. Lu <hongjiu.lu@intel.com>
25333
25334 * config/i386/i386-protos.h (ix86_agi_dependent): New.
25335
25336 * config/i386/i386.c (ix86_agi_dependent): Rewrite.
25337 (ix86_adjust_cost): Updated.
25338
25339 2009-03-29 Jan Hubicka <jh@suse.cz>
25340
25341 PR middle-end/28850
25342 * tree-pass.h (pass_cleanup_eh): New function.
25343 (remove_unreachable_regions): Break code handling RTL
25344 to rtl_remove_unreachable_regions; remove ERT_MUST_NOT_THROW
25345 that can not be reached by runtime.
25346 (can_be_reached_by_runtime): New function.
25347 (label_to_region_map): New function.
25348 (num_eh_regions): New function.
25349 (rtl_remove_unreachable_regions): New function.
25350 (convert_from_eh_region_ranges): Call rtl_remove_unreachable_regions.
25351 (remove_eh_region): New function.
25352 * except.h: Include sbitmap and vecprim.
25353 (remove_eh_region, remove_unreachable_regions, label_to_region_map,
25354 num_eh_regions): Declare.
25355 * passes.c (init_optimization_passes): Schedule cleanup_eh.
25356 * Makefile.in (EXCEPT_H): New; replace all uses of except.h by it.
25357 * tree-eh.c (tree_remove_unreachable_handlers): New function.
25358 (tree_empty_eh_handler_p): New function.
25359 (cleanup_empty_eh): New function.
25360 (cleanup_eh): New function.
25361 (pass_cleanup_eh): New function.
25362
25363 2009-03-29 Jan Hubicka <jh@suse.cz>
25364
25365 * except.c (verify_eh_tree): Fix handling of fun!=cfun; be ready
25366 for removed regions.
25367
25368 2009-03-29 Jan Hubicka <jh@suse.cz>
25369
25370 * except.c (dump_eh_tree): Dump all datastructures.
25371
25372 2009-03-29 Jan Hubicka <jh@suse.cz>
25373
25374 * except.c (duplicate_eh_regions_0): Handle AKA bitmap.
25375 (duplicate_eh_regions_1): Likewise.
25376 (duplicate_eh_regions): Likewise; cleanup code gorwing the region
25377 vector; call EH verification.
25378 (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
25379 Be ready for region being removed.
25380
25381 2009-03-29 Jan Hubicka <jh@suse.cz>
25382
25383 * bitmap.c (bitmap_last_set_bit): New function.
25384 * bitmap.h (bitmap_last_set_bit): Declare.
25385
25386 2009-03-29 David Ayers <ayers@fsfe.org>
25387
25388 PR objc/27377
25389 * c-typeck.c (build_conditional_expr): Emit ObjC warnings
25390 by calling objc_compare_types and surpress warnings about
25391 incompatible C pointers that are compatible ObjC pointers.
25392
25393 2009-03-29 Adam Nemet <anemet@caviumnetworks.com>
25394
25395 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Don't
25396 call initialize_inline_failed.
25397 (initialize_inline_failed): Move it from here ...
25398 * cgraph.c (initialize_inline_failed): ... to here.
25399 (cgraph_create_edge): Call initialize_inline_failed rather than
25400 setting inline_failed directly.
25401
25402 2009-03-29 Ben Elliston <bje@au.ibm.com>
25403
25404 PR target/32542
25405 * sysv4.opt (msdata): Improve comment.
25406 * linux64.h (ASM_SPEC32): Do not pass -memb when -msdata is given.
25407 * sysv4.h (SVR4_ASM_SPEC): Likewise.
25408
25409 2009-03-29 Ben Elliston <bje@au.ibm.com>
25410
25411 PR target/30451
25412 * config/rs6000/rs6000.md (*movti_ppc64): Correct the order of
25413 load and store attributes.
25414
25415 2009-03-29 Ben Elliston <bje@au.ibm.com>
25416
25417 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_HUGE_VALQ.
25418 (ix86_init_builtins): Add built-in function __builtin_huge_valq.
25419 (ix86_expand_builtin): Handle IX86_BUILTIN_HUGE_VALQ.
25420 * doc/extend.texi (X86 Built-in Functions): Add index entries for
25421 __builtin_infq and __builtin_huge_valq.
25422
25423 2009-03-28 Anatoly Sokolov <aesok@post.ru>
25424
25425 * config/avr/avr.c (avr_mcu_t): Add atmega8c1, atmega16c1 and
25426 atmega8m1 devices.
25427 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
25428 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.)
25429
25430 2009-03-28 Xinliang David Li <davidxl@google.com>
25431
25432 * tree-ssa-ccp.c (ccp_finalize): Add dbg_count support.
25433 (do_dbg_cnt): New function.
25434
25435 2009-03-28 Jan Hubicka <jh@suse.cz>
25436
25437 Merge from pretty-ipa:
25438
25439 2009-03-27 Jan Hubicka <jh@suse.cz>
25440
25441 * cgraph.c (dump_cgraph_node): Add replace output flag by process.
25442 * tree-pass.h (function_called_by_processed_nodes_p): Declare.
25443 * passes.c (function_called_by_processed_nodes_p): New.
25444 * ipa-pure-const.c (check_call): Fix handling of operands.
25445 (analyze_function): Dump debug output for skipped bodies.
25446 (local_pure_const): Use function_called_by_processed_nodes_p.
25447 * dwarf2out.c (reference_to_unused): Use output.
25448 * passes.c (do_per_function_toporder): Likewise.
25449
25450 2008-11-12 Jan Hubicka <jh@suse.cz>
25451
25452 * tree-pass.h (pass_fixup_cfg, pass_local_pure_const): Declare.
25453 * ipa-pure-const.c (funct_state_d): Add can throw field; make
25454 state_set_in_source enum
25455 (check_decl): Ignore memory tags; do not set fake looping flags;
25456 dump diagnostics.
25457 (check_operand, check_tree, check_rhs_var, check_lhs_var,
25458 get_asm_expr_operands, scan_function_op, scan_function_stmt): Remove.
25459 (check_call, analyze_function): Rewrite.
25460 (check_stmt): New.
25461 (add_new_function): Update call of analyze_function.
25462 (generate_summary): Add call of analyze_function.
25463 (propagate): Propagate can_throw; handle state_set_in_source correctly.
25464 (local_pure_const): New function.
25465 (pass_local_pure_const): New pass.
25466 * ipa-inline.c (inline_transform): Set after_inlining.
25467 * tree-eh.c (stmt_can_throw_external): New.
25468 * tree-optimize.c (execute_fixup_cfg): Do not set after_inlining;
25469 work with aliasing built.
25470 * tree-flow.h (stmt_can_throw_external): New.
25471 * passes.c (init_optimization_passes): Schedule fixup_cfg pass early;
25472 and local pure/const pass in early and late optimization queue.
25473
25474 2009-03-28 Martin Jambor <mjambor@suse.cz>
25475
25476 * fold-const.c (get_pointer_modulus_and_residue): New parameter
25477 allow_func_align.
25478 (fold_binary): Allow function decl aligment consideration is the
25479 second argument is integer constant one.
25480 * tree-ssa-forwprop.c (simplify_bitwise_and): New function.
25481 (tree_ssa_forward_propagate_single_use_vars): Handle assing statements
25482 with BIT_AND_EXPR on the RHS by calling simplify_bitwise_and.
25483
25484 2009-03-28 Jan Hubicka <jh@suse.cz>
25485
25486 * dwarf2out.c (dwarf2out_begin_prologue): Use crtl->nothrow
25487 * tree-eh.c (stmt_could_throw_p): Remove check for WEAK decls.
25488 * function.h (rtl_data): Add nothrow flag.
25489 * except.c (set_nothrow_function_flags): Use crtl->nothrow;
25490 set DECL_NOTHROW for AVAILABLE functions.
25491
25492 2009-03-28 Jakub Jelinek <jakub@redhat.com>
25493
25494 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If macro
25495 following vector keyword has expansion starting with pixel or bool
25496 keyword, expand vector to __vector and pixel or bool to __pixel or
25497 __bool.
25498
25499 PR c++/39554
25500 * opts.c (warning_disallowed_functions, warn_disallowed_functions,
25501 warn_if_disallowed_function_p): Removed.
25502 (common_handle_option): Don't handle OPT_Wdisallowed_function_list_.
25503 * c-parser.c (c_parser_postfix_expression_after_primary): Don't call
25504 warning_if_disallowed_function_p.
25505 * flags.h (warn_if_disallowed_function_p,
25506 warn_disallowed_functions): Removed.
25507 * common.opt (Wdisallowed-function-list=): Removed.
25508 * doc/invoke.texi (-Wdisallowed-function-list=): Removed.
25509
25510 2009-03-28 Richard Guenther <rguenther@suse.de>
25511
25512 PR tree-optimization/38723
25513 * tree-ssa-pre.c (compute_avail): Add all default definitions to
25514 the entry block.
25515
25516 2009-03-28 Jan Hubicka <jh@suse.cz>
25517
25518 * tree-ssa-structalias.c (ipa_pta_execute): Fix bogus node->analyzed
25519 test introduced by my previous patch.
25520
25521 2009-03-28 Richard Guenther <rguenther@suse.de>
25522
25523 * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not leave
25524 the PHIs value undefined.
25525
25526 2009-03-28 Jan Hubicka <jh@suse.cz>
25527
25528 * tree-pass.h (pass_fixup_cfg): New pass.
25529 * ipa-inline.c (inline_transform): Set
25530 always_inline_functions_inlined/after_inlining.
25531 * tree-optimize.c (execute_fixup_cfg): Do not set them here.
25532 (pass_fixup_cfg): New pass.
25533 * passes.c (init_optimization_passes): Add fixup_cfg.
25534
25535 2009-03-28 Richard Guenther <rguenther@suse.de>
25536
25537 PR tree-optimization/38458
25538 * tree-ssa-copy.c (copy_prop_visit_phi_node): For the first
25539 argument use the arguments copy-of value.
25540
25541 2009-03-28 Richard Guenther <rguenther@suse.de>
25542
25543 PR tree-optimization/38180
25544 * tree-ssa-ccp.c (get_default_value): Simplify.
25545 (likely_value): Likewise.
25546 (surely_varying_stmt_p): Properly handle VOP case.
25547 (ccp_initialize): Likewise.
25548 (ccp_fold): Handle propagating through *&.
25549 (fold_const_aggregate_ref): Also handle decls.
25550
25551 2009-03-28 Jan Hubicka <jh@suse.cz>
25552
25553 * cgraph.c (dump_cgraph_node): Add replace output flag by process.
25554 * cgraph.h (cgraph_node): Likewise.
25555 * cgraphunit.c (cgraph_process_new_functions): Set process flag.
25556 (cgraph_reset_node): Use process flag.
25557 (cgraph_mark_functions_to_output): Likewise.
25558 (cgraph_expand_function): Likewise.
25559 (cgraph_expand_all_functions): Likewise.
25560 (cgraph_output_in_order): Likewise.
25561 * dwarf2out.c (reference_to_unused): Likewise.
25562 * passes.c do_per_function_toporder): Likewise.
25563
25564 2009-03-28 Jan Hubicka <jh@suse.cz>
25565
25566 Bring from lto-branch:
25567
25568 2008-09-03 Doug Kwan <dougkwan@google.com>
25569
25570 * cgraphbuild.c (initialize_inline_failed): Use cgraph_inline_failed_t
25571 enums instead of reason strings.
25572 * cgraph.c (cgraph_create_edge): Same.
25573 (cgraph_inline_failed_string): New function.
25574 * cgraph.h (cgraph_inline_failed_t): New enum type.
25575 (cgraph_inline_failed_string): New prototype.
25576 (struct cgraph_edge): Change type of INLINED_FAILED from constant
25577 char pointer to cgraph_inline_failed_t.
25578 (cgraph_inline_p): Adjust prototype to use cgraph_inline_failed_t.
25579 (cgraph_default_inline_p): Ditto.
25580 * cgraphunit.c (cgraph_inline_p): Change type of parameter REASON
25581 to cgraph_inline_failed_t pointer.
25582 * cif-code.def: New file.
25583 * ipa-inline.c (cgraph_mark_inline_edge): Use an enum instead of a
25584 reason string.
25585 (cgraph_check_inline_limits): Change type of REASON to pointer to
25586 cgraph_inline_failed_t. Replace reason strings with enums.
25587 (cgraph_default_inline_p): Ditto.
25588 (cgraph_recursive_inlining_p): Ditto.
25589 (update_caller_keys): Change type of FAILED_REASON to
25590 cgraph_inline_failed_t.
25591 (cgraph_set_inline_failed): Change type of REASON to pointer to
25592 cgraph_inline_failed_t. Call cgraph_inline_failed_string to
25593 convert enums to strings for text output.
25594 (cgraph_decide_inlining_of_small_function): Change FAILED_REASON
25595 to be of type cgraph_inline_failed_t. Replace reason strings with
25596 enums. Call cgraph_inline_failed_string to covert enums
25597 to strings for text output.
25598 (cgraph_decide_inlining): Replace reason strings with enums.
25599 (cgraph_decide_inlining_incrementally): Change type of FAILED_REASON
25600 to cgraph_inline_failed_t type. Call cgraph_inline_failed_string
25601 for text output.
25602 * tree-inline.c (expand_call_inline): Change type of REASON
25603 to cgraph_inline_failed_t. Replace reason strings with enums.
25604 Call cgraph_inline_failed_string for text output.
25605 * Makefile.in (CGRAPH_H): Add cif-code.def to dependencies.
25606 (cgraph.o): Ditto.
25607
25608 2009-03-28 Jan Hubicka <jh@suse.cz>
25609
25610 * cgraph.c (cgraph_node, cgraph_remove_node, dump_cgraph_node,
25611 cgraph_clone_node): Remove master clone handling.
25612 (cgraph_is_master_clone, cgraph_master_clone): Remove.
25613 * cgraph.h (master_clone): Remove.
25614 (cgraph_is_master_clone, cgraph_master_clone): Remove.
25615 * ipa-type-escape.c (type_escape_execute): Remove use of master clone.
25616 (tree-ssa-structalias.c (ipa_pta_execute): Likewise.
25617
25618 2009-03-28 Jan Hubicka <jh@suse.cz>
25619
25620 * cgraph.c (cgraph_function_body_availability): Functions declared
25621 inline are always safe to assume that it is not going to be replaced.
25622
25623 2009-03-28 Richard Guenther <rguenther@suse.de>
25624
25625 PR tree-optimization/38513
25626 * tree-ssa-pre.c (eliminate): Remove redundant stores.
25627 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
25628 EXC_PTR_EXPR and FILTER_EXPR.
25629 (get_ref_from_reference_ops): Likewise.
25630
25631 2009-03-28 Richard Guenther <rguenther@suse.de>
25632
25633 PR tree-optimization/38968
25634 * tree-vect-analyze.c (vect_compute_data_ref_alignment):
25635 Use FLOOR_MOD_EXPR to compute misalignment.
25636
25637 2009-03-28 Richard Guenther <rguenther@suse.de>
25638
25639 PR tree-optimization/37795
25640 * tree.h (combine_comparisons): Declare.
25641 * fold-const.c (combine_comparisons): Export.
25642 * tree-ssa-ifcombine.c (ifcombine_ifandif): Optimize two successive
25643 comparisons.
25644 (ifcombine_iforif): Use combine_comparisons.
25645
25646 2009-03-28 Jan Hubicka <jh@suse.cz>
25647
25648 * tree-eh.c (inlinable_call_p): New function.
25649 (make_eh_edges): Use it.
25650 (verify_eh_edges): Use it.
25651 (stmt_can_throw_external, stmt_can_throw_internal): Use it.
25652 * except.c (reachable_next_level): Add inlinable_function argument
25653 (sjlj_find_directly_reachable_regions): Update.
25654 (add_reachable_handler): Do not set saw_any_handlers.
25655 (reachable_next_level): Handle MUST_NOT_THROW more curefully.
25656 (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
25657 Add new inlinable call parameter.
25658 (can_throw_internal, can_throw_external): Update.
25659 * except.h (can_throw_internal_1, can_throw_external_1,
25660 foreach_reachable_handler): Update declaration.
25661
25662 2009-03-28 Joseph Myers <joseph@codesourcery.com>
25663
25664 * config/arm/t-arm-coff, config/h8300/coff.h,
25665 config/i386/i386-aout.h, config/i386/i386-coff.h,
25666 config/libgloss.h, config/m68k/coff.h, config/m68k/m68k-aout.h,
25667 config/pdp11/2bsd.h, config/rs6000/aix41.h,
25668 config/rs6000/aix41.opt, config/rs6000/t-newas, config/sh/coff.h,
25669 fix-header.c, fixproto, gen-protos.c, protoize.c, scan-decls.c,
25670 scan-types.sh, scan.c, scan.h, sort-protos, sys-protos.h,
25671 sys-types.h: Remove.
25672 * Makefile.in: Remove protoize and fixproto support and references
25673 in comments.
25674 (SYSCALLS.c.X-warn, TARGET_GETGROUPS_T, STMP_FIXPROTO,
25675 PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, FIXPROTO_DEFINES):
25676 Remove.
25677 (ALL_HOST_OBJS): Remove $(PROTO_OBJS).
25678 (MOSTLYCLEANFILES): Remove protoize$(exeext) and
25679 unprotoize$(exeext).
25680 (rest.encap): Don't depend on $(STMP_FIXPROTO)
25681 (.PHONY): Don't depend on proto.
25682 (libgcc-support): Don't depend on $(STMP_FIXPROTO).
25683 (proto, PROTO_OBJS, protoize$(exeext), unprotoize$(exeext),
25684 protoize.o, unprotoize.o, SYSCALLS.c.X, test-protoize-simple,
25685 deduced.h, GEN_PROTOS_OBJS, build/gen-protos$(build_exeext),
25686 build/gen-protos.o, build/scan.o, xsys-protos.h,
25687 build/fix-header$(build_exeext), build/fix-header.o,
25688 build/scan-decls.o, fixhdr.ready, stmp-fixproto,
25689 stmp-install-fixproto): Remove.
25690 (mostlyclean): Don't remove xsys-protos.hT, SYSCALLS.c.X,
25691 SYSCALLS.c or fixproto files.
25692 (install-common): Don't install protoize.
25693 (install-headers-tar, install-headers-cpio, install-headers-cp):
25694 Don't depend on $(STMP_FIXPROTO).
25695 (install-mkheaders): Don't depend on $(STMP_FIXPROTO). Don't
25696 install fixproto files or write out fixproto settings.
25697 (uninstall): Don't uninstall protoize.
25698 * config.gcc (use_fixproto): Remove.
25699 (arm-*-coff*, armel-*-coff*, h8300-*-*, i[34567]86-*-aout*,
25700 i[34567]86-*-coff*, m68k-*-aout*, m68k-*-coff*, pdp11-*-bsd,
25701 rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*, sh-*-*): Remove.
25702 * config/m32r/t-linux (STMP_FIXPROTO): Remove.
25703 * config/m68k/m68k.c: Remove M68K_TARGET_COFF-conditional code.
25704 * config/mips/t-iris (FIXPROTO_DEFINES): Remove.
25705 * config/pa/t-pa-hpux (FIXPROTO_DEFINES): Remove.
25706 * config/pdp11/pdp11.c: Remove TWO_BSD-conditional code.
25707 * config/t-svr4 (FIXPROTO_DEFINES): Remove.
25708 * config/t-vxworks (STMP_FIXPROTO): Remove.
25709 * configure.ac (AC_TYPE_GETGROUPS, TARGET_GETGROUPS_T,
25710 STMP_FIXPROTO): Remove.
25711 * config.in, configure: Regenerate.
25712 * crtstuff.c (gid_t, uid_t): Don't undefine.
25713 * doc/install.texi: Change m68k-coff to m68k-elf in example.
25714 (arm-*-coff, arm-*-aout: Remove target entries.
25715 (*-ibm-aix*): Mention removal of support for AIX 4.2 and older.
25716 Remove mention of AIX 4.1.
25717 (m68k-*-*): Remove mention of m68k-*-aout and m68k-*-coff*.
25718 * doc/invoke.texi (Running Protoize): Remove.
25719 * doc/trouble.texi (Actual Bugs): Remove mention of fixproto.
25720 (Protoize Caveats): Remove.
25721 * tsystem.h: Update comments on headers assumed to exist.
25722
25723 2009-03-27 Vladimir Makarov <vmakarov@redhat.com>
25724
25725 * genautomata.c: Add a new year to the copyright. Add a new
25726 reference.
25727 (struct insn_reserv_decl): Add comments for member bypass_list.
25728 (find_bypass): Remove.
25729 (insert_bypass): New.
25730 (process_decls): Use insert_bypass.
25731 (output_internal_insn_latency_func): Output all bypasses with the
25732 same input insn in one switch case.
25733
25734 * rtl.def (define_bypass): Describe bypass choice.
25735 * doc/md.texi (define_bypass): Ditto.
25736
25737 2009-03-27 Richard Guenther <rguenther@suse.de>
25738
25739 * gimplify.c (mark_addressable): Export.
25740 * tree-flow.h (mark_addressable): Declare.
25741 * tree-ssa-loop-manip.c (create_iv): Mark the base addressable.
25742 * tree-ssa.c (verify_phi_args): Verify that address taken
25743 variables have TREE_ADDRESSABLE set.
25744
25745 2009-03-27 Richard Guenther <rguenther@suse.de>
25746
25747 * fold-const.c (build_fold_addr_expr_with_type_1): Rename back to ...
25748 (build_fold_addr_expr_with_type): ... this. Remove in_fold handling.
25749 Do not mark decls TREE_ADDRESSABLE.
25750 (build_fold_addr_expr): Adjust.
25751 (fold_addr_expr): Remove.
25752 (fold_unary): Use build_fold_addr_expr.
25753 (fold_comparison): Likewise.
25754 (split_address_to_core_and_offset): Likewise.
25755 * coverage.c (tree_coverage_counter_addr): Mark the array decl
25756 TREE_ADDRESSABLE.
25757 * gimplify.c (mark_addressable): Do not exclude RESULT_DECLs.
25758 (gimplify_modify_expr_to_memcpy): Mark source and destination
25759 addressable.
25760 * omp-low.c (create_omp_child_function): Mark the object decl
25761 TREE_ADDRESSABLE.
25762 (lower_rec_input_clauses): Mark the var we take the address of
25763 TREE_ADDRESSABLE.
25764 (lower_omp_taskreg): Mark the sender decl TREE_ADDRESSABLE.
25765
25766 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
25767
25768 PR middle-end/39315
25769 * cfgexpand.c (expand_one_stack_var_at): Change alignment
25770 limit to MAX_SUPPORTED_STACK_ALIGNMENT.
25771
25772 2009-03-27 Richard Guenther <rguenther@suse.de>
25773
25774 PR tree-optimization/39120
25775 * tree-ssa-structalias.c (handle_rhs_call): Fill out return
25776 constraints.
25777 (handle_lhs_call): Process return constraints. Add escape
25778 constraints if necessary.
25779 (handle_const_call): Fill out return constraints. Make nested
25780 case more precise. Avoid consttmp if possible.
25781 (handle_pure_call): Fill out return constraints. Avoid
25782 callused if possible.
25783 (find_func_aliases): Simplify call handling.
25784
25785 2009-03-27 Richard Guenther <rguenther@suse.de>
25786
25787 PR tree-optimization/39120
25788 * tree-ssa-structalias.c (do_sd_constraint): Do not use CALLUSED
25789 as a representative.
25790 (solve_graph): Do propagate CALLUSED.
25791 (handle_pure_call): Use a scalar constraint from CALLUSED for
25792 the return value.
25793 (find_what_p_points_to): CALLUSED shall not appear in poins-to
25794 solutions.
25795
25796 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
25797
25798 PR c/39323
25799 * c-common.c (handle_aligned_attribute): Properly check alignment
25800 overflow. Use (1U << i) instead of (1 << i).
25801
25802 * emit-rtl.c (get_mem_align_offset): Use "unsigned int" for align.
25803
25804 * expr.h (get_mem_align_offset): Updated.
25805
25806 * tree.h (tree_decl_common): Change align to "unsigned int" and
25807 move it before pointer_alias_set.
25808
25809 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
25810 Jakub Jelinek <jakub@redhat.com>
25811
25812 PR target/38034
25813 * config/ia64/sync.md (cmpxchg_rel_<mode>): Replace input
25814 gr_register_operand with gr_reg_or_0_operand.
25815 (cmpxchg_rel_di): Likewise.
25816 (sync_lock_test_and_set<mode>): Likewise.
25817
25818 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
25819
25820 * jump.c (rtx_renumbered_equal_p): Use subreg_get_info.
25821 (true_regnum): Likewise.
25822
25823 * rtlanal.c (subreg_info): Moved to ...
25824 * rtl.h (subreg_info): Here. New.
25825 (subreg_get_info): New.
25826
25827 * rtlanal.c (subreg_get_info): Make it extern.
25828
25829 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
25830
25831 PR target/39472
25832 * config/i386/i386.c (ix86_abi): New.
25833 (override_options): Handle -mabi=.
25834 (ix86_function_arg_regno_p): Replace DEFAULT_ABI with ix86_abi.
25835 (ix86_call_abi_override): Likewise.
25836 (init_cumulative_args): Likewise.
25837 (function_arg_advance): Likewise.
25838 (function_arg_64): Likewise.
25839 (function_arg): Likewise.
25840 (ix86_pass_by_reference): Likewise.
25841 (ix86_function_value_regno_p): Likewise.
25842 (ix86_build_builtin_va_list_abi): Likewise.
25843 (setup_incoming_varargs_64): Likewise.
25844 (is_va_list_char_pointer): Likewise.
25845 (ix86_init_machine_status): Likewise.
25846 (ix86_reg_parm_stack_space): Use enum calling_abi on call_abi.
25847 (ix86_function_type_abi): Return enum calling_abi. Rewrite
25848 for 64bit. Replace DEFAULT_ABI with ix86_abi.
25849 (ix86_function_abi): Make it static and return enum calling_abi.
25850 (ix86_cfun_abi): Return enum calling_abi. Replace DEFAULT_ABI
25851 with ix86_abi.
25852 (ix86_fn_abi_va_list): Updated.
25853
25854 * config/i386/i386.h (ix86_abi): New.
25855 (STACK_BOUNDARY): Replace DEFAULT_ABI with ix86_abi.
25856 (CONDITIONAL_REGISTER_USAGE): Likewise.
25857 (CUMULATIVE_ARGS): Change call_abi type to enum calling_abi.
25858 (machine_function): Likewise.
25859
25860 * config/i386/i386.md (untyped_call): Replace DEFAULT_ABI
25861 with ix86_abi.
25862 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Likewise.
25863 (STACK_BOUNDARY): Likewise.
25864 * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Likewise.
25865
25866 * config/i386/i386.opt (mabi=): New.
25867
25868 * config/i386/i386-protos.h (ix86_cfun_abi): Changed to
25869 return enum calling_abi.
25870 (ix86_function_type_abi): Likewise.
25871 (ix86_function_abi): Removed.
25872
25873 * doc/invoke.texi: Document -mabi= option for x86.
25874
25875 2009-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
25876
25877 * builtins.c (real_dconstp): Delete.
25878 (fold_builtin_logarithm): Remove inaccurate log(e) special case.
25879
25880 2009-03-27 Dodji Seketeli <dodji@redhat.com>
25881 Jakub Jelinek <jakub@redhat.com>
25882
25883 PR debug/37959
25884 * dwarf2out.c (dwarf_attr_name): Handle DW_AT_explicit attribute.
25885 (gen_subprogram_die): When a function is explicit, generate the
25886 DW_AT_explicit attribute.
25887 * langhooks.h (struct lang_hooks_for_decls): Add
25888 function_decl_explicit_p langhook.
25889 * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Define.
25890 (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P.
25891
25892 2009-03-27 Jakub Jelinek <jakub@redhat.com>
25893
25894 * builtins.c (fold_builtin_memory_op): Optimize memmove
25895 into memcpy if we can prove source and destination don't overlap.
25896
25897 * tree-inline.c: Include gt-tree-inline.h.
25898 (clone_fn_id_num): New variable.
25899 (clone_function_name): New function.
25900 (tree_function_versioning): Use it.
25901 * Makefile.in (GTFILES): Add tree-inline.c.
25902
25903 2009-03-27 Mark Mitchell <mark@codesourcery.com>
25904
25905 * BASE-VER: Change to 4.5.0.
25906
25907 2009-03-27 Xinliang David Li <davidxl@google.com>
25908
25909 PR tree-optimization/39557
25910 * tree-ssa.c (warn_uninitialized_vars): free postdom info.
25911
25912 2009-03-27 Xinliang David Li <davidxl@google.com>
25913
25914 PR tree-optimization/39548
25915 * tree-ssa-copy.c (copy_prop_visit_phi_node): Add copy
25916 candidate check.
25917
25918 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
25919
25920 * c-common.c (pointer_int_sum): Use %wd on return from
25921 tree_low_cst.
25922
25923 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
25924
25925 * c-common.c (pointer_int_sum): Use HOST_WIDE_INT_PRINT_DEC
25926 on return from tree_low_cst.
25927
25928 2009-03-27 Andrew Pinski <andrew_pinski@playstation.sony.com>
25929
25930 PR c++/36799
25931 * ginclude/stdarg.h (va_copy): Define also for
25932 __GXX_EXPERIMENTAL_CXX0X__.
25933
25934 2009-03-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
25935
25936 PR c++/35652
25937 * builtins.h (c_strlen): Do not warn here.
25938 * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
25939 * c-common.c (pointer_int_sum): Take an explicit location.
25940 Warn about offsets out of bounds.
25941 * c-common.h (pointer_int_sum): Adjust declaration.
25942
25943 2009-03-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25944
25945 * doc/invoke.texi (i386 and x86-64 Windows Options): Fix texinfo
25946 markup glitch.
25947
25948 2009-03-26 Jakub Jelinek <jakub@redhat.com>
25949
25950 PR c++/39554
25951 * opts.c (warn_if_disallowed_function_p): Don't assume
25952 get_callee_fndecl must return non-NULL.
25953
25954 2009-03-26 Vladimir Makarov <vmakarov@redhat.com>
25955
25956 PR rtl-optimization/39522
25957 * reload1.c (reload_as_needed): Invalidate reg_last_reload_reg too
25958 when reg_reloaded_valid is set.
25959
25960 2009-03-26 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
25961
25962 * config/spu/divv2df3.c: New file.
25963 * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add it.
25964 (DPBIT_FUNCS): Filter out _div_df.
25965
25966 2009-03-26 Bernd Schmidt <bernd.schmidt@analog.com>
25967
25968 * config/bfin/bfin.c (bfin_optimize_loop): If the LSETUP goes before
25969 a jump insn, count that jump in the distance to the loop start.
25970
25971 2009-03-25 Kaz Kojima <kkojima@gcc.gnu.org>
25972
25973 PR target/39523
25974 * config/sh/sh.c (calc_live_regs): Fix condition for global
25975 registers except PIC_OFFSET_TABLE_REGNUM.
25976
25977 2009-03-25 Kai Tietz <kai.tietz@onevision.com>
25978
25979 PR/39518
25980 * doc/invoke.texi (-mconsole): New.
25981 (-mcygwin): New.
25982 (-mno-cygwin): New.
25983 (-mdll): New.
25984 (-mnop-fun-dllimport): New.
25985 (-mthread): New.
25986 (-mwin32): New.
25987 (-mwindows): New.
25988 (sub section "i386 and x86-64 Windows Options"): New.
25989
25990 2009-03-25 Ralf Corsépius <ralf.corsepius@rtems.org>
25991
25992 * config/arm/rtems-elf.h: Remove LINK_GCC_C_SEQUENCE_SPEC.
25993 * config/rs6000/t-rtems: Remove MULTILIB_EXTRA_OPTS.
25994
25995 2009-03-25 Richard Guenther <rguenther@suse.de>
25996
25997 PR middle-end/39497
25998 * Makefile.in (dfp.o-warn): Use -fno-strict-aliasing instead
25999 of -Wno-error.
26000
26001 2009-03-25 Andrey Belevantsev <abel@ispras.ru>
26002
26003 * config/ia64/ia64.c (ia64_set_sched_flags): Zero spec_info->mask when
26004 neither of haifa/selective schedulers are working.
26005
26006 2009-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26007
26008 * doc/invoke.texi (Debugging Options): Fix description of
26009 -fno-merge-debug-strings.
26010
26011 2009-03-24 Hans-Peter Nilsson <hp@axis.com>
26012
26013 * config/cris/libgcc.ver: New version-script.
26014 * config/cris/t-linux (SHLIB_MAPFILES): Use it.
26015
26016 * configure.ac <GAS features, nop mnemonic>: Add pattern
26017 crisv32-*-* for "nop".
26018 <GAS features, Thread-local storage>: Add item for CRIS and CRIS v32.
26019 * configure: Regenerate.
26020
26021 2009-03-24 Ira Rosen <irar@il.ibm.com>
26022
26023 PR tree-optimization/39529
26024 * tree-vect-transform.c (vect_create_data_ref_ptr): Call
26025 mark_sym_for_renaming for the tag copied to the new vector
26026 pointer.
26027
26028 2009-03-24 Arthur Loiret <aloiret@debian.org>
26029
26030 * config.host (alpha*-*-linux*): Use driver-alpha.o and alpha/x-alpha.
26031 * config/alpha/linux.h (host_detect_local_cpu): Declare, add to
26032 EXTRA_SPEC_FUNCTIONS.
26033 (MCPU_MTUNE_NATIVE_SPECS, DRIVER_SELF_SPECS): New macros.
26034 * config/alpha/driver-alpha.c, config/alpha/x-alpha: New.
26035 * doc/invoke.texi (DEC Alpha Options): Document 'native' value for
26036 -march and -mtune options.
26037
26038 2009-03-24 Ralf Corsépius <ralf.corsepius@rtems.org>
26039
26040 * config/m68k/t-rtems: Add m5329 multilib.
26041
26042 2009-03-24 Dodji Seketeli <dodji@redhat.com>
26043 Jakub Jelinek <jakub@redhat.com>
26044
26045 PR debug/39524
26046 * dwarf2out.c (gen_variable_die): Avoid adding duplicate declaration
26047 nodes.
26048
26049 2009-03-23 Jakub Jelinek <jakub@redhat.com>
26050
26051 PR c/39495
26052 * c-parser.c (c_parser_omp_for_loop): Call c_parser_binary_expression
26053 instead of c_parser_expression_conv, if original_code isn't one of the
26054 4 allowed comparison codes, fail.
26055
26056 2009-03-23 Richard Guenther <rguenther@suse.de>
26057
26058 * cgraph.h (struct cgraph_node): Reorder fields for 64-bit hosts.
26059 * tree.h (struct tree_type): Likewise.
26060 * reload.h (struct insn_chain): Likewise.
26061 * dwarf2out.c (struct dw_loc_descr_struct): Likewise.
26062 * function.h (struct function): Likewise.
26063 * tree-ssa-structalias.c (struct equiv_class_label): Likewise.
26064
26065 2009-03-23 Jakub Jelinek <jakub@redhat.com>
26066
26067 PR tree-optimization/39516
26068 * lambda-code.c (perfect_nestify): Fix type of the uboundvar variable.
26069
26070 2009-03-23 Bingfeng Mei <bmei@broadcom.com>
26071
26072 * config.gcc (need_64bit_hwint): Make clear that need_64bit_hwint
26073 should be set true if BITS_PER_WORD of target is bigger than 32
26074
26075 2009-03-22 Hans-Peter Nilsson <hp@axis.com>
26076
26077 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC):
26078 Translate -B-options to -rpath-link. Correct existing
26079 rpath-link and conditionalize on !nostdlib.
26080
26081 2009-03-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26082
26083 * doc/extend.texi (Function Attributes, Variable Attributes):
26084 Fix typos.
26085 * doc/invoke.texi (Debugging Options, Optimize Options)
26086 (i386 and x86-64 Options, MCore Options): Likewise.
26087
26088 2009-03-20 Jakub Jelinek <jakub@redhat.com>
26089
26090 PR debug/37890
26091 * dwarf2out.c (gen_namespace_die): Add context_die argument and use
26092 it for block local namespace aliases.
26093 (gen_decl_die): Pass context_die to gen_namespace_die.
26094
26095 2009-03-19 Jakub Jelinek <jakub@redhat.com>
26096
26097 PR c/39495
26098 * c-omp.c (c_finish_omp_for): Allow NE_EXPR with TREE_TYPE (decl)'s
26099 minimum or maximum value.
26100
26101 2009-03-19 Alexandre Oliva <aoliva@redhat.com>
26102
26103 * reginfo.c (globalize_reg): Recompute derived reg sets.
26104
26105 2009-03-19 Ozkan Sezer <sezeroz@gmail.com>
26106
26107 PR target/39063
26108 * libgcc2.c (mprotect): Do not use signed arguments for
26109 VirtualProtect, use DWORD arguments. Also fix the 'may
26110 be used uninitialized' warning for the np variable.
26111
26112 2009-03-19 Jakub Jelinek <jakub@redhat.com>
26113
26114 PR target/39496
26115 * config/i386/i386.c (ix86_function_regparm): Don't optimize local
26116 functions using regparm calling conventions when not optimizing.
26117 (ix86_function_sseregparm): Similarly for sseregparm calling
26118 conventions.
26119
26120 2009-03-19 Li Feng <nemokingdom@gmail.com>
26121
26122 PR middle-end/39500
26123 * tree-data-ref.c (analyze_subscript_affine_affine): There is no
26124 dependence if the first conflict is after niter iterations.
26125
26126 2009-03-19 Hans-Peter Nilsson <hp@axis.com>
26127
26128 PR middle-end/38609
26129 * config/cris/cris.h (FRAME_POINTER_REQUIRED): Force for all
26130 functions with dynamic stack-pointer adjustments.
26131
26132 2009-03-19 Ben Elliston <bje@au.ibm.com>
26133
26134 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix -msdata-data
26135 option; change to -msdata=data.
26136
26137 2009-03-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26138
26139 * c.opt: Unify help texts for -Wdeprecated, -Wsystem-headers,
26140 and -fopenmp.
26141
26142 2009-03-18 Eric Botcazou <ebotcazou@adacore.com>
26143
26144 PR target/35180
26145 * config/sparc/sparc.md (do_builtin_setjmp_setup): Prettify asm output.
26146
26147 2009-03-18 Sandra Loosemore <sandra@codesourcery.com>
26148
26149 * doc/invoke.texi (Code Gen Options): Expand discussion of
26150 -fno-common.
26151
26152 2009-03-18 Jakub Jelinek <jakub@redhat.com>
26153
26154 * dse.c (struct group_info): Reorder fields for 64-bit hosts.
26155 * matrix-reorg.c (struct matrix_info): Likewise.
26156 * tree-ssa-loop-ivopts.c (struct ivopts_data): Likewise.
26157 * rtl.h (struct mem_attrs): Likewise.
26158 * df.h (struct df): Likewise.
26159 * tree-data-ref.h (struct data_dependence_relation): Likewise.
26160 * ira-int.h (struct ira_allocno): Likewise.
26161 * df-scan.c (struct df_collection_rec): Likewise.
26162 * ira.c (struct equivalence): Likewise.
26163 * function.c (struct temp_slot): Likewise.
26164 * cfgloop.h (struct loop): Likewise.
26165
26166 PR debug/39485
26167 * function.c (use_register_for_decl): When not optimizing, disregard
26168 register keyword for variables with types containing methods.
26169
26170 2009-03-18 Sebastian Pop <sebastian.pop@amd.com>
26171
26172 PR middle-end/39447
26173 * graphite.c (exclude_component_ref): Renamed contains_component_ref_p.
26174 (is_simple_operand): Call contains_component_ref_p before calling data
26175 reference analysis that would fail on COMPONENT_REFs.
26176
26177 * tree-vrp.c (search_for_addr_array): Fix formatting.
26178
26179 2009-03-18 Richard Guenther <rguenther@suse.de>
26180
26181 * tree-vect-transform.c (vect_loop_versioning): Fold the
26182 generated comparisons.
26183 * tree-vectorizer.c (set_prologue_iterations): Likewise.
26184 (slpeel_tree_peel_loop_to_edge): Likewise.
26185
26186 2009-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26187
26188 PR middle-end/37805
26189 * opts.c (print_specific_help): In addition to `undocumented',
26190 accept `separate' and `joined' flags if passed alone. Describe
26191 output by the first matched one of those.
26192 (common_handle_option): Skip over empty strings.
26193 * gcc.c (display_help): Fix help string for `--help='.
26194 * doc/invoke.texi (Option Summary, Overall Options): With
26195 `--help=', classes and qualifiers can both be repeated, but
26196 only the latter can be negated. One should not pass only
26197 negated qualifiers. Fix markup and examples.
26198
26199 Revert
26200 2008-10-14 Jakub Jelinek <jakub@redhat.com>
26201 PR middle-end/37805
26202 * opts.c (common_handle_option): Don't ICE on -fhelp=joined
26203 and -fhelp=separate.
26204
26205 2009-03-17 Jing Yu <jingyu@google.com>
26206
26207 PR middle-end/39378
26208 * function.h (struct rtl_data): Move is_thunk from here...
26209 (struct function): ...to here.
26210 * cp/method.c (use_thunk): Change is_thunk from crtl to cfun.
26211 * varasm.c (assemble_start_function): Change is_thunk from crtl to
26212 cfun.
26213 * config/alpha/alpha.c (alpha_sa_mask): Change is_thunk from crtl to
26214 cfun.
26215 (alpha_does_function_need_gp, alpha_start_function): Likewise.
26216 (alpha_output_function_end_prologue): Likewise.
26217 (alpha_end_function, alpha_output_mi_thunk_osf): Likewise.
26218 * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likewise.
26219 (rs6000_output_function_epilogue): Likewise.
26220 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Likewise.
26221
26222 2009-03-17 Uros Bizjak <ubizjak@gmail.com>
26223
26224 PR target/39482
26225 * config/i386/i386.md (*truncdfsf_mixed): Avoid combining registers
26226 from different units in a single alternative.
26227 (*truncdfsf_i387): Ditto.
26228 (*truncxfsf2_mixed): Ditto.
26229 (*truncxfdf2_mixed): Ditto.
26230
26231 2009-03-17 Jakub Jelinek <jakub@redhat.com>
26232
26233 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Allow
26234 non-NAMESPACE_DECL IMPORTED_DECL_ASSOCIATED_DECL.
26235
26236 PR debug/39474
26237 * tree-ssa-live.c (remove_unused_locals): Don't remove local
26238 unused non-artificial variables when not optimizing.
26239
26240 PR debug/39471
26241 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Emit
26242 DW_TAG_imported_module even if decl is IMPORTED_DECL with
26243 NAMESPACE_DECL in its DECL_INITIAL.
26244
26245 PR middle-end/39443
26246 * optabs.c (set_user_assembler_libfunc): New function.
26247 * expr.h (set_user_assembler_libfunc): New prototype.
26248 * c-common.c: Include libfuncs.h.
26249 (set_builtin_user_assembler_name): Call set_user_assembler_libfunc
26250 for memcmp, memset, memcpy, memmove and abort.
26251 * Makefile.in (c-common.o): Depend on libfuncs.h.
26252
26253 PR debug/39412
26254 * dwarf2out.c (gen_inlined_enumeration_type_die,
26255 gen_inlined_structure_type_die, gen_inlined_union_type_die,
26256 gen_tagged_type_instantiation_die): Removed.
26257 (gen_decl_die): For TYPE_DECL_IS_STUB with non-NULL decl_origin
26258 do nothing.
26259
26260 2009-03-17 Janis Johnson <janis187@us.ibm.com>
26261
26262 PR testsuite/38526
26263 * Makefile.in (site.exp): Rename TEST_GCC_EXEC_PREFIX and comment
26264 its use.
26265 (check-%): Don't set GCC_EXEC_PREFIX when invoking runtest.
26266 (check-parallel-%): Ditto.
26267 (check-consistency): Ditto.
26268
26269 2009-03-17 Kai Tietz <kai.tietz@onevision.com>
26270
26271 * ipa-struct-reorg.c (create_general_new_stmt): Initialize
26272 local variable rhs by NULL_TREE.
26273
26274 2009-03-17 H.J. Lu <hongjiu.lu@intel.com>
26275
26276 PR target/39477
26277 * doc/extend.texi: Correct register behavior for regparm on Intel 386.
26278
26279 2009-03-17 H.J. Lu <hongjiu.lu@intel.com>
26280
26281 PR target/39476
26282 * config/i386/i386.c (ix86_function_regparm): Rewrite for 64bit.
26283
26284 2009-03-17 H.J. Lu <hongjiu.lu@intel.com>
26285
26286 PR target/39473
26287 * config/i386/i386.c (ix86_expand_call): Check extra clobbers
26288 for ms->sysv ABI calls only in 64bit mode.
26289
26290 * config/i386/i386.md (untyped_call): Support 32bit.
26291
26292 2009-03-16 H.J. Lu <hongjiu.lu@intel.com>
26293
26294 * doc/extend.texi: Replace x86_65 with x86_64.
26295
26296 2009-03-16 Jakub Jelinek <jakub@redhat.com>
26297
26298 PR tree-optimization/39455
26299 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Fix types
26300 mismatches for POINTER_TYPE_P (type).
26301 (number_of_iterations_le): Likewise.
26302
26303 2009-03-16 Hariharan Sandanagobalane <hariharan@picochip.com>
26304
26305 * config/picochip/picochip.c: Removed profiling support.
26306 * config/picochip/picochip.md: Removed profiling instruction.
26307 * config/picochip/picochip.h: Removed profiling builtin.
26308
26309 2009-03-16 Joseph Myers <joseph@codesourcery.com>
26310
26311 * doc/install.texi (--with-host-libstdcxx): Document.
26312
26313 2009-03-14 Anatoly Sokolov <aesok@post.ru>
26314
26315 PR target/34299
26316 * config/avr/avr.c (avr_handle_fndecl_attribute): Move code for
26317 generate a warning if the function name does not begin with
26318 "__vector" and the function has either the 'signal' or 'interrupt'
26319 attribute, from here to ...
26320 (avr_declare_function_name): ...here. New function.
26321 * config/avr/avr.h (ASM_DECLARE_FUNCTION_NAME): Redefine.
26322 * config/avr/avr-protos.h (avr_declare_function_name): Declare.
26323
26324 2009-03-14 Jakub Jelinek <jakub@redhat.com>
26325
26326 PR bootstrap/39454
26327 * cse.c (fold_rtx): Don't modify original const_arg1 when
26328 canonicalizing SHIFT_COUNT_TRUNCATED shift count, do it on a
26329 separate variable instead.
26330 * rtlanal.c (nonzero_bits1) <case ASHIFTRT>: Don't assume anything
26331 from out of range shift counts.
26332 (num_sign_bit_copies1) <case ASHIFTRT, case ASHIFT>: Similarly.
26333
26334 2009-03-13 Catherine Moore <clm@codesourcery.com>
26335
26336 * config/i386/x-mingw32 (host-mingw32.o): Replace
26337 diagnostic.h with $(DIAGNOSTIC_H).
26338
26339 2009-03-12 Jakub Jelinek <jakub@redhat.com>
26340
26341 PR target/39431
26342 * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): New
26343 predicate.
26344 * config/i386/sync.md (sync_compare_and_swap<mode>,
26345 sync_compare_and_swap_cc<mode>): For DImode with -m32 -fpic check
26346 if operands[1] is cmpxchg8b_pic_memory_operand, if not force address
26347 into a register.
26348 (sync_double_compare_and_swapdi_pic,
26349 sync_double_compare_and_swap_ccdi_pic): Require operand 1 to be
26350 cmpxchg8b_pic_memory_operand instead of just memory_operand.
26351
26352 2009-03-12 H.J. Lu <hongjiu.lu@intel.com>
26353
26354 PR target/39445
26355 * config/i386/i386.c (ix86_expand_push): Don't set memory alignment.
26356
26357 2009-03-12 H.J. Lu <hongjiu.lu@intel.com>
26358
26359 PR target/39327
26360 * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
26361 (avx_addsubv4df3): Likewise.
26362 (*avx_addsubv4sf3): Likewise.
26363 (sse3_addsubv4sf3): Likewise.
26364
26365 2009-03-12 H.J. Lu <hongjiu.lu@intel.com>
26366
26367 PR target/38824
26368 * config/i386/i386.md: Compare REGNO on the new peephole2 patterns.
26369
26370 2009-03-12 Vladimir Makarov <vmakarov@redhat.com>
26371
26372 PR debug/39432
26373 * ira-int.h (struct allocno): Fix comment for calls_crossed_num.
26374 * ira-conflicts.c (ira_build_conflicts): Prohibit call used
26375 registers for allocnos created from user-defined variables.
26376
26377 2009-03-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26378
26379 PR target/39181
26380 * config/spu/spu.c (spu_expand_mov): Handle invalid subregs
26381 of non-integer mode as well.
26382
26383 2009-03-11 Adam Nemet <anemet@caviumnetworks.com>
26384
26385 * gimplify.c (gimplify_call_expr): Don't set CALL_CANNOT_INLINE_P
26386 for functions for which the parameter types are unknown.
26387
26388 2009-03-11 Jakub Jelinek <jakub@redhat.com>
26389
26390 PR target/39137
26391 * cfgexpand.c (get_decl_align_unit): Use LOCAL_DECL_ALIGNMENT macro.
26392 * defaults.h (LOCAL_DECL_ALIGNMENT): Define if not yet defined.
26393 * config/i386/i386.h (LOCAL_DECL_ALIGNMENT): Define.
26394 * config/i386/i386.c (ix86_local_alignment): For
26395 -m32 -mpreferred-stack-boundary=2 use 32-bit alignment for
26396 long long variables on the stack to avoid dynamic realignment.
26397 Allow the first argument to be a decl rather than type.
26398 * doc/tm.texi (LOCAL_DECL_ALIGNMENT): Document.
26399
26400 2009-03-11 Nick Clifton <nickc@redhat.com>
26401
26402 PR target/5362
26403 * config/mcore/mcore.opt: Remove deprecated m4align and m8align
26404 options.
26405 Add description to mno-lsim option.
26406 * config/mcore/mcore.h: Remove comment about deprecated m4align
26407 option.
26408 (TARGET_DEFAULT): Remove deprecated MASK_M8ALIGN.
26409 * doc/invoke.texi: Add description of mno-lsim and
26410 mstack-increment options.
26411
26412 * config/fr30/fr30.opt: Document the -mno-lsim option.
26413 * doc/invoke.texi: Add descriptions of the FR30's -msmall-model
26414 and -mno-lsim options.
26415
26416 2009-03-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26417
26418 * fold-const.c (fold_comparison): Only call fold_inf_compare
26419 if the mode supports infinities.
26420
26421 2009-03-11 Jason Merrill <jason@redhat.com>
26422
26423 PR debug/39086
26424 * tree-nrv.c (tree_nrv): Don't do this optimization if the front
26425 end already did. Notice GIMPLE_CALL modifications of the result.
26426 Don't copy debug information from an ignored decl or a decl from
26427 another function.
26428
26429 2009-03-10 Richard Guenther <rguenther@suse.de>
26430 Nathan Froyd <froydnj@codesourcery.com>
26431
26432 PR middle-end/37850
26433 * libgcc2.c (__mulMODE3): Use explicit assignments to form the result.
26434 (__divMODE3): Likewise.
26435
26436 2009-03-09 Jakub Jelinek <jakub@redhat.com>
26437
26438 PR tree-optimization/39394
26439 * gimplify.c (gimplify_type_sizes): Gimplify DECL_SIZE and
26440 DECL_SIZE_UNIT of variable length FIELD_DECLs.
26441
26442 2009-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26443
26444 * recog.c (verfiy_changes): Disallow renaming of hard regs in
26445 inline asms for register asm ("") declarations.
26446
26447 2009-03-09 Eric Botcazou <ebotcazou@adacore.com>
26448
26449 * fold-const.c (fold_unary): Fix comment.
26450
26451 2009-03-07 Jan Hubicka <jh@suse.cz>
26452
26453 PR target/39361
26454 * tree-inline.c (setup_one_parameter): Do replacement of const
26455 argument by constant in SSA form.
26456
26457 2009-03-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26458
26459 PR middle-end/38028
26460 * function.c (assign_parm_setup_stack): Use STACK_SLOT_ALIGNMENT to
26461 determine alignment passed to assign_stack_local.
26462 (assign_parms_unsplit_complex): Likewise.
26463 * except.c (sjlj_build_landing_pads): Likewise.
26464
26465 2009-03-06 Jakub Jelinek <jakub@redhat.com>
26466
26467 PR middle-end/39360
26468 * tree-flow.h (add_referenced_var): Return bool instead of void.
26469 * tree-dfa.c (add_referenced_var): Return result of
26470 referenced_var_check_and_insert call.
26471 * tree-inline.c (expand_call_inline): Call add_referenced_var instead
26472 of referenced_var_check_and_insert.
26473
26474 PR debug/39372
26475 * dwarf2out.c (add_abstract_origin_attribute): Return origin_die.
26476 (gen_variable_die): Emit DW_AT_location on abstract static variable's
26477 DIE, don't emit it if abstract origin already has it.
26478 * tree-cfg.c (remove_useless_stmts_bind): GIMPLE_BINDs with any
26479 BLOCK_NONLOCALIZED_VARS in its gimple_bind_block aren't useless.
26480
26481 2009-03-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
26482
26483 * genpreds.c (needs_variable): Fix parentheses at variable name
26484 detection.
26485 (write_tm_constrs_h): Indent generated code.
26486
26487 2009-03-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26488
26489 * doc/extend.texi (Function Attributes): Add documentation
26490 for isr attributes.
26491
26492 2009-03-06 Jakub Jelinek <jakub@redhat.com>
26493
26494 PR debug/39387
26495 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): For IMPORTED_DECL
26496 take locus from its DECL_SOURCE_LOCATION instead of input_location.
26497
26498 2009-03-05 Bernd Schmidt <bernd.schmidt@analog.com>
26499
26500 * config/bfin/bfin.c (bfin_discover_loop): When retrying fails, mark
26501 the loop as bad.
26502
26503 2009-03-05 Jakub Jelinek <jakub@redhat.com>
26504
26505 PR debug/39379
26506 * tree-cfg.c (remove_useless_stmts_bind): Don't remove GIMPLE_BINDs
26507 with blocks containing IMPORTED_DECLs in BLOCK_VARS.
26508
26509 2009-03-05 Uros Bizjak <ubizjak@gmail.com>
26510
26511 * config/i386/i386.md (R8_REG, R9_REG): New constants.
26512 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Use named
26513 constants instead of magic numbers.
26514 (HARD_REGNO_CALLER_SAVE_MODE): Ditto.
26515 (QI_REG_P): Ditto.
26516 * config/i386/i386.c (x86_64_int_parameter_registers): Ditto.
26517 (x86_64_ms_abi_int_parameter_registers): Ditto.
26518 (x86_64_int_return_registers): Ditto.
26519 (ix86_maybe_switch_abi): Ditto.
26520 (ix86_expand_call): Ditto for clobbered_registers array.
26521 (ix86_hard_regno_mode_ok): Ditto.
26522 (x86_extended_QIreg_mentioned_p): Ditto.
26523
26524 2009-03-05 J"orn Rennecke <joern.rennecke@arc.com>
26525
26526 PR tree-optimization/39349
26527 * cse.c (cse_insn): Fix loop to stop at VOIDmode.
26528
26529 * combine.c (gen_lowpart_for_combine): Use omode when generating
26530 clobber.
26531
26532 2009-03-04 J"orn Rennecke <joern.rennecke@arc.com>
26533
26534 PR rtl-optimization/39235
26535 * loop-iv.c (get_simple_loop_desc): Use XCNEW.
26536
26537 2009-03-04 Zdenek Dvorak <ook@ucw.cz>
26538
26539 * graphite.c (nb_reductions_in_loop): Update simple_iv arguments.
26540
26541 2009-03-04 Richard Guenther <rguenther@suse.de>
26542
26543 PR tree-optimization/39362
26544 * tree-ssa-sccvn.c (visit_use): Stores and copies from SSA_NAMEs
26545 that occur in abnormal PHIs should be varying.
26546
26547 2009-03-04 Zdenek Dvorak <ook@ucw.cz>
26548
26549 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop):
26550 Extend comments.
26551 (simple_iv): Take loop as an argument instead of statement.
26552 * tree-scalar-evolution.h (simple_iv): Declaration changed.
26553 * tree-ssa-loop-niter.c (number_of_iterations_exit): Update calls
26554 to simple_iv.
26555 * tree-ssa-loop-ivopts.c (determine_biv_step, find_givs_in_stmt_scev):
26556 Ditto.
26557 * tree-parloops.c (loop_parallel_p, canonicalize_loop_ivs): Ditto.
26558 * matrix-reorg.c (analyze_transpose): Ditto.
26559 * tree-data-ref.c (dr_analyze_innermost): Ditto.
26560 * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
26561 * tree-predcom.c (ref_at_iteration): Ditto.
26562 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Ditto.
26563
26564 2009-03-04 Richard Guenther <rguenther@suse.de>
26565
26566 PR tree-optimization/39358
26567 * tree-ssa-structalias.c (do_sd_constraint): Fix check for
26568 escaped_id and callused_id.
26569 (solve_graph): Likewise.
26570
26571 2009-03-04 Richard Guenther <rguenther@suse.de>
26572
26573 PR tree-optimization/39339
26574 * tree-sra.c (try_instantiate_multiple_fields): Make it
26575 no longer ICE on the above.
26576
26577 2009-03-03 Joseph Myers <joseph@codesourcery.com>
26578
26579 * emit-rtl.c (adjust_address_1): Reduce offset to a signed value
26580 that fits within Pmode.
26581
26582 2009-03-03 Steve Ellcey <sje@cup.hp.com>
26583
26584 PR middle-end/10109
26585 * tm.texi (LIBCALL_VALUE): Update description.
26586
26587 2009-03-03 Steve Ellcey <sje@cup.hp.com>
26588
26589 PR middle-end/34443
26590 * doc/extend.texi (section): Update description.
26591
26592 2009-03-03 H.J. Lu <hongjiu.lu@intel.com>
26593
26594 PR middle-end/39345
26595 * tree-inline.c (remapped_type): New.
26596 (can_be_nonlocal): Call remapped_type instead of remap_type.
26597
26598 2009-03-03 Jakub Jelinek <jakub@redhat.com>
26599
26600 PR fortran/39354
26601 * gimplify.c (goa_stabilize_expr): Handle tcc_comparison,
26602 TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR.
26603
26604 2009-03-03 Richard Guenther <rguenther@suse.de>
26605
26606 PR middle-end/39272
26607 * tree.c (tree_nonartificial_location): New function.
26608 * tree.h (tree_nonartificial_location): Declare.
26609 * builtins.c (expand_builtin_memory_chk): Provide location
26610 of the call location for artificial function pieces.
26611 (maybe_emit_chk_warning): Likewise.
26612 (maybe_emit_sprintf_chk_warning): Likewise.
26613 (maybe_emit_free_warning): Likewise.
26614 * expr.c (expand_expr_real_1): Likewise.
26615
26616 2009-03-03 Jakub Jelinek <jakub@redhat.com>
26617
26618 PR tree-optimization/39343
26619 * tree-ssa-ccp.c (maybe_fold_offset_to_address): Don't check if
26620 COMPONENT_REF t has ARRAY_TYPE.
26621
26622 2009-03-02 Sebastian Pop <sebastian.pop@amd.com>
26623
26624 PR middle-end/39335
26625 * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
26626 when the type precision of the induction variable should be
26627 larger than the type precision of nit.
26628 (gen_parallel_loop): Update use of canonicalize_loop_ivs.
26629 * graphite.c (graphite_loop_normal_form): Same.
26630 * tree-flow.h (canonicalize_loop_ivs): Update declaration.
26631
26632 2009-03-02 Uros Bizjak <ubizjak@gmail.com>
26633
26634 * config/i386/i386.md (ST?_REG, MM?_REG): New constants.
26635 (*call_1_rex64_ms_sysv): Use named constants instead of magic
26636 numbers to describe clobbered registers.
26637 (*call_value_0_rex64_ms_sysv): Ditto.
26638 * config/i386/mmx.md (mmx_emms): Ditto.
26639 (mmx_femms): Ditto.
26640
26641 2009-03-02 Richard Sandiford <rdsandiford@googlemail.com>
26642
26643 * config/mips/mips.c (mips_mdebug_abi_name): Fix the handling
26644 of ABI_64.
26645
26646 2009-03-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26647
26648 * config/spu/spu.c (TARGET_SECTION_TYPE_FLAGS): Define.
26649 (spu_section_type_flags): New function.
26650
26651 2009-03-02 Uros Bizjak <ubizjak@gmail.com>
26652
26653 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not copy
26654 reg_class_contents of FLOAT_REGS into a temporary.
26655
26656 2009-03-02 Richard Guenther <rguenther@suse.de>
26657 Ira Rosen <irar@il.ibm.com>
26658
26659 PR tree-optimization/39318
26660 * tree-vect-transform.c (vectorizable_call): Transfer the EH region
26661 information to the vectorized statement.
26662
26663 2009-03-01 Uros Bizjak <ubizjak@gmail.com>
26664
26665 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not shadow "i"
26666 variable. Use defined names instead of magic constants for REX SSE
26667 registers.
26668
26669 2009-03-01 Richard Guenther <rguenther@suse.de>
26670
26671 PR tree-optimization/39331
26672 * omp-low.c (lower_send_shared_vars): Do not receive new
26673 values for the reference of DECL_BY_REFERENCE parms or results.
26674
26675 2009-03-01 Jan Hubicka <jh@suse.cz>
26676
26677 PR debug/39267
26678 * tree.h (BLOCK_NONLOCALIZED_VARS, BLOCK_NUM_NONLOCALIZED_VARS,
26679 BLOCK_NONLOCALIZED_VAR): New macros.
26680 (tree_block): Add nonlocalized_vars.
26681 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die,
26682 gen_decl_die): Add origin argument. Allow generation of die with
26683 origin at hand only.
26684 (gen_member_die, gen_type_die_with_usage, force_decl_die,
26685 declare_in_namespace, gen_namescpace_die, dwarf2out_decl): Update use
26686 of gen_*.
26687 (gen_block_die): Fix checking for unused blocks.
26688 (process_scope_var): Break out from .... ; work with origins only.
26689 (decls_for_scope) ... here; process nonlocalized list.
26690 (dwarf2out_ignore_block): Look for nonlocalized vars.
26691 * tree-ssa-live.c (remove_unused_scope_block_p): Look for nonlocalized
26692 vars.
26693 (dump_scope_block): Dump them.
26694 * tree-inline.c (remap_decls): Handle nonlocalized vars.
26695 (remap_block): Likewise.
26696 (can_be_nonlocal): New predicate.
26697 (copy_bind_expr, copy_gimple_bind): Update use of remap_block.
26698
26699 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26700
26701 * configure: Regenerate.
26702
26703 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26704
26705 * optc-gen.awk: No need to duplicate option flags twice.
26706 Reuse help texts for duplicate options which do not have any.
26707
26708 * gcc.c (display_help): Document --version.
26709
26710 * gcc.c (main): If print_help_list and verbose_flag, ensure
26711 driver output comes before subprocess output.
26712
26713 * optc-gen.awk: Assign all remaining fields to help string,
26714 space-separated, for multi-line help in *.opt.
26715
26716 * doc/invoke.texi (Warning Options): -Wsync-nand is C/C++ only.
26717 -Wno-pedantic-ms-format is for MinGW targets only.
26718
26719 * doc/options.texi (Option file format): Fix bad indentation,
26720 restoring dropped sentence.
26721
26722 2009-02-28 Jan Hubicka <jh@suse.cz>
26723
26724 * tree-inline.c (tree_function_versioning): Output debug info.
26725
26726 2009-02-28 Jan Hubicka <jh@suse.cz>
26727
26728 PR debug/39267
26729 * tree-inline.c (setup_one_parameter): Do not copy propagate
26730 arguments when not optimizing.
26731
26732 2009-02-28 H.J. Lu <hongjiu.lu@intel.com>
26733
26734 PR target/39327
26735 * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
26736 (avx_addsubv4df3): Likewise.
26737 (*avx_addsubv4sf3): Likewise.
26738 (sse3_addsubv4sf3): Likewise.
26739 (*avx_addsubv2df3): Likewise.
26740 (sse3_addsubv2df3): Likewise.
26741 (avx_unpckhps256): Correct item selectors.
26742 (avx_unpcklps256): Likewise.
26743 (avx_unpckhpd256): Likewise.
26744 (avx_unpcklpd256): Likewise.
26745
26746 2009-02-28 Jan Hubicka <jh@suse.cz>
26747
26748 * tree-inline.c (expand_call_inline): Avoid duplicate declarations of
26749 static vars.
26750 (copy_arguments_for_versioning): If var is declared don't declare it.
26751 (tree_function_versioning): First setup substitutions and then copy
26752 args.
26753
26754 2009-02-27 Jan Hubicka <jh@suse.cz>
26755
26756 PR debug/39267
26757 * cgraph.h (varpool_output_debug_info): Remove.
26758 * cgraphunit.c (varpool_output_debug_info): Remove.
26759 * dwarf2out.c (deferred_locations_struct): New struct
26760 (deferred_locations): New type.
26761 (deferred_locations_list): New static var.
26762 (deffer_location): New function.
26763 (gen_variable_die): Use it.
26764 (decls_for_scope): Output info on local static vars.
26765 (dwarf2out_finish): Process deferred locations.
26766 * varpool.c (varpool_output_debug_info): Remove.
26767
26768 2009-02-27 Jan Hubicka <jh@suse.cz>
26769
26770 PR debug/39267
26771 * tree.h (TREE_PROTECTED): Fix comment.
26772 (BLOCK_HANDLER_BLOCK): Remove.
26773 (struct tree_block): Remove handler_block add body_block.
26774 (inlined_function_outer_scope_p): New.
26775 (is_body_block): Remove.
26776 * dbxout.c (dbxout_block): Remove BLOCK_HANDLER_BLOCK.
26777 * dwarf2out.c (is_inlined_entry_point): Remove.
26778 (add_high_low_attributes): Use inlined_function_outer_scope_p.
26779 (gen_block_die): Use is_inlined_entry_point check. Remove body block
26780 code.
26781 * langhooks.h (struct lang_hooks): Remove no_bodu_blocks.
26782 * gimplify.c (gimplify_expr): Gimplify body blocks.
26783 * tree-ssa-live.c (remove_unused_scope_block_p): Allow removing wrapper
26784 block with multiple subblocks.
26785 (dump_scope_block): Prettier output; dump more flags and info.
26786 (dump_scope_blocks): New.
26787 (remove_unused_locals): Use dump_scope_blocks.
26788 * tree-flow.h (dump_scope_blocks): Declare.
26789 * tree-cfg.c (execute_build_cfg): Dump scope blocks.
26790 * stmt.c (is_body_block): Remove.
26791 * tree-inline.c (remap_block): Copy BODY_BLOCK info.
26792 * langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): Remove.
26793
26794 2009-02-27 Sebastian Pop <sebastian.pop@amd.com>
26795
26796 PR middle-end/39308
26797 * graphite.c (graphite_loop_normal_form): Do not call
26798 number_of_iterations_exit from a gcc_assert.
26799
26800 2009-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26801
26802 * config/s390/s390.c (s390_swap_cmp): Look for conditional
26803 jumps if COND is NULL.
26804 (find_cond_jump): New function.
26805 (s390_z10_optimize_cmp): Handling for reg-reg compares added.
26806 * config/s390/s390.md: Remove z10_cobra attribute value.
26807
26808 2009-02-26 Uros Bizjak <ubizjak@gmail.com>
26809
26810 * config/alpha/alpha.h (alpha_expand_mov): Return false if
26811 force_const_mem returns NULL_RTX.
26812
26813 2009-02-26 Jan Hubicka <jh@suse.cz>
26814
26815 PR debug/39267
26816 * cgraph.h (varpool_output_debug_info): Remove.
26817 * cgraphunit.c (varpool_output_debug_info): Remove.
26818 * dwarf2out.c (deferred_locations_struct): New struct
26819 (deferred_locations): New type.
26820 (deferred_locations_list): New static var.
26821 (deffer_location): New function.
26822 (gen_variable_die): Use it.
26823 (decls_for_scope): Output info on local static vars.
26824 (dwarf2out_finish): Process deferred locations.
26825 * varpool.c (varpool_output_debug_info): Remove.
26826
26827 2009-02-25 H.J. Lu <hongjiu.lu@intel.com>
26828
26829 PR rtl-optimization/39241
26830 * jump.c (rtx_renumbered_equal_p): Remove 2 superfluous calls
26831 to subreg_offset_representable_p.
26832
26833 2009-02-25 Paolo Bonzini <bonzini@gnu.org>
26834
26835 * regmove.c (regmove_optimize): Conform to struct rtl_opt_pass
26836 execute function prototype. Get f and nregs from max_reg_num
26837 and get_insns. Remove the first backward pass as it's dead,
26838 guard the forward pass by flag_expensive_optimizations.
26839 (rest_of_handle_regmove): Delete.
26840 (pass_regmove): Replace it with regmove_optimize.
26841
26842 2009-02-25 Martin Jambor <mjambor@suse.cz>
26843
26844 PR tree-optimization/39259
26845 * tree-inline.c (initialize_cfun): Remove asserts for calls_setjmp and
26846 calls_alloca function flags.
26847 (copy_bb): Set calls_setjmp and alls_alloca function flags if such
26848 calls are detected.
26849
26850 2009-02-25 Paolo Bonzini <bonzini@gnu.org>
26851
26852 * regmove.c (discover_flags_reg, flags_set_1, mark_flags_life_zones,
26853 flags_set_1_rtx, flags_set_1_set): Delete.
26854 (regmove_optimize): Do not call mark_flags_life_zones.
26855
26856 2009-02-24 Julian Brown <julian@codesourcery.com>
26857
26858 PR target/35965
26859 * config/arm/arm.c (require_pic_register): Only set
26860 cfun->machine->pic_reg once per function.
26861
26862 2009-02-24 Sandra Loosemore <sandra@codesourcery.com>
26863
26864 * doc/invoke.texi (Link Options): Document an easier way to pass
26865 options that take arguments to the GNU linker using -Xlinker and -Wl.
26866
26867 2009-02-24 Steve Ellcey <sje@cup.hp.com>
26868
26869 PR target/33785
26870 * doc/tm.texi (TARGET_C99_FUNCTIONS): Fix description.
26871
26872 2009-02-24 Richard Guenther <rguenther@suse.de>
26873
26874 PR debug/39285
26875 * dwarf2out.c (gen_enumeration_type_die): Handle CONST_DECLs.
26876
26877 2009-02-24 Richard Guenther <rguenther@suse.de>
26878 Zdenek Dvorak <ook@ucw.cz>
26879
26880 PR tree-optimization/39233
26881 * tree-ssa-loop-ivopts.c (add_candidate_1): Do not except pointers
26882 from converting them to a generic type.
26883
26884 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
26885
26886 PR tree-optimization/39260
26887 * graphite.c (harmful_stmt_in_bb): Stop a SCoP when the basic block
26888 contains a condition with a real type.
26889 (build_scop_conditions_1): Conditions are always last_stmt of a bb.
26890
26891 2009-02-23 Jason Merrill <jason@redhat.com>
26892
26893 PR c++/38880
26894 * varasm.c (initializer_constant_valid_p) [PLUS_EXPR]: Check
26895 narrowing_initializer_constant_valid_p.
26896 (narrowing_initializer_constant_valid_p): Don't return
26897 null_pointer_node for adding a pointer to itself.
26898
26899 2009-02-23 Jan Hubicka <jh@suse.cz>
26900
26901 PR c/12245
26902 * ggc.h (htab_create_ggc): Use ggc_free to free hashtable when
26903 resizing.
26904
26905 2009-02-23 Jan Hubicka <jh@suse.cz>
26906
26907 PR tree-optimization/37709
26908 * tree.c (block_ultimate_origin): Move here from dwarf2out.
26909 * tree.h (block_ultimate_origin): Declare.
26910 * dwarf2out.c (block_ultimate_origin): Move to tree.c
26911 * tree-ssa-live.c (remove_unused_scope_block_p):
26912 Eliminate blocks containig no instructions nor live variables nor
26913 nested blocks.
26914 (dump_scope_block): New function.
26915 (remove_unused_locals): Enable removal of dead blocks by default;
26916 enable dumping at TDF_DETAILS.
26917
26918 2009-02-21 H.J. Lu <hongjiu.lu@intel.com>
26919
26920 * config/i386/i386.c (classify_argument): Don't allow COImode
26921 and OImode.
26922 (function_arg_advance_32): Don't allow OImode.
26923 (function_arg_32): Likewise.
26924 (function_value_32): Likewise.
26925 (return_in_memory_32): Likewise.
26926 (function_arg_64): Remove OImode comment.
26927
26928 2009-02-21 H.J. Lu <hongjiu.lu@intel.com>
26929
26930 PR target/39261
26931 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
26932 ix86_expand_vector_set for V4DImode in 64bit mode only.
26933 (ix86_expand_vector_init_one_var): Likewise.
26934
26935 2009-02-21 Sebastian Pop <sebastian.pop@amd.com>
26936
26937 * graphite.c (graphite_trans_loop_block): Adjust tile size to 51.
26938
26939 2009-02-21 Richard Sandiford <rdsandiford@googlemail.com>
26940
26941 PR bootstrap/39257
26942 * loop-iv.c: Revert last change.
26943 * emit-rtl.c: Likewise.
26944
26945 2009-02-21 H.J. Lu <hongjiu.lu@intel.com>
26946
26947 PR target/39256
26948 * config/i386/i386.c (type_natural_mode): Remove an extra
26949 space in the warning message.
26950 (function_value_32): Handle 32-byte vector modes.
26951 (return_in_memory_32): Likewise.
26952
26953 2009-02-21 Richard Sandiford <rdsandiford@googlemail.com>
26954
26955 * loop-iv.c (truncate_value): New function.
26956 (iv_subreg, get_iv_value, iv_number_of_iterations): Use it instead
26957 of lowpart_subreg.
26958 (lowpart_subreg): Move to...
26959 * emit-rtl.c: ...here.
26960
26961 2009-02-21 Danny Smith <dannysmith@users.sourceforge.net>
26962
26963 * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Revert
26964 accidental and undocumented change at revision 140860.
26965
26966 2009-02-21 Joseph Myers <joseph@codesourcery.com>
26967
26968 * config/arm/arm.c (arm_gimplify_va_arg_expr): Update prototype to
26969 take gimple_seq * arguments.
26970 (arm_mangle_type): Use CONST_CAST_TREE on type argument passed to
26971 types_compatible_p langhook.
26972
26973 2009-02-20 Mark Mitchell <mark@codesourcery.com>
26974 Joseph Myers <joseph@codesourcery.com>
26975
26976 * config/arm/arm.c (arm_builtin_va_list): New function.
26977 (arm_expand_builtin_va_start): Likewise.
26978 (arm_gimplify_va_arg_expr): Likewise.
26979 (TARGET_BUILD_BUILTIN_VA_LIST): Define.
26980 (TARGET_BUILD_BUILTIN_VA_START): Likewise.
26981 (TARGET_BUILD_BUILTIN_VA_ARG_EXPR): Likewise.
26982 (va_list_type): New variable.
26983 (arm_mangle_type): Mangle va_list_type appropriately.
26984
26985 2009-02-20 Jakub Jelinek <jakub@redhat.com>
26986
26987 PR middle-end/39157
26988 * Makefile.in (loop-invariant.o): Depend on $(PARAMS_H).
26989 * params.h (LOOP_INVARIANT_MAX_BBS_IN_LOOP): Define.
26990 * params.def (loop-invariant-max-bbs-in-loop): New parameter.
26991 * opts.c (decode_options): Set loop-invariant-max-bbs-in-loop
26992 parameter to 1000 for -O1 by default.
26993 * doc/invoke.texi (loop-invariant-max-bbs-in-loop): Document new
26994 parameter.
26995 * loop-invariant.c: Include params.h.
26996 (move_loop_invariants): Don't call move_single_loop_invariants on
26997 very large loops.
26998
26999 2009-02-20 Jaka Mocnik <jaka@xlab.si>
27000
27001 * calls.c (emit_library_call_value_1): Use slot_offset instead of
27002 offset when calculating bounds for indexing stack_usage_map. Fixes
27003 a buffer overflow with certain target setups.
27004
27005 2009-02-20 Jakub Jelinek <jakub@redhat.com>
27006
27007 PR target/39240
27008 * calls.c (expand_call): Clear try_tail_call if caller and callee
27009 disagree in promotion of function return value.
27010
27011 2009-02-19 Jakub Jelinek <jakub@redhat.com>
27012
27013 PR target/39175
27014 * c-common.c (c_determine_visibility): If visibility changed and
27015 DECL_RTL has been already set, call make_decl_rtl to update symbol
27016 flags.
27017
27018 2009-02-19 H.J. Lu <hongjiu.lu@intel.com>
27019
27020 PR c++/39188
27021 * varasm.c (assemble_variable): Don't check DECL_NAME when
27022 globalizing a variable.
27023
27024 2009-02-19 Joseph Myers <joseph@codesourcery.com>
27025
27026 PR c/38483
27027 * builtins.c (gimplify_va_arg_expr): Evaluate the va_list
27028 expression before any __builtin_trap call.
27029 * c-typeck.c (build_function_call): Convert and check function
27030 arguments before generating a call to a trap. Evaluate the
27031 function arguments before the trap.
27032
27033 2009-02-19 Uros Bizjak <ubizjak@gmail.com>
27034
27035 PR target/39228
27036 * config/i386/i386.md (isinfxf2): Split from isinf<mode>2.
27037 (UNSPEC_FXAM_MEM): New unspec.
27038 (fxam<mode>2_i387_with_temp): New insn and split pattern.
27039 (isinf<mode>2): Use MODEF mode iterator. Force operand[1] through
27040 memory using fxam<mode>2_i387_with_temp to remove excess precision.
27041
27042 2009-02-19 Richard Guenther <rguenther@suse.de>
27043
27044 PR tree-optimization/39207
27045 PR tree-optimization/39074
27046 * tree-ssa-structalias.c (storedanything_id, var_storedanything,
27047 storedanything_tree): New.
27048 (do_ds_constraint): Simplify ANYTHING shortcutting. Update
27049 the STOREDANYTHING solution if the lhs solution contains ANYTHING.
27050 (build_succ_graph): Add edges from STOREDANYTHING to all
27051 non-direct nodes.
27052 (init_base_vars): Initialize STOREDANYTHING.
27053 (compute_points_to_sets): Free substitution info after
27054 building the succ graph.
27055 (ipa_pta_execute): Likewise.
27056
27057 * tree-ssa-structalias.c (struct variable_info): Add may_have_pointers
27058 field.
27059 (do_ds_constraint): Do not add to special var or non-pointer
27060 field solutions.
27061 (type_could_have_pointers): Split out from ...
27062 (could_have_pointers): ... here. For arrays use the element type.
27063 (create_variable_info_for): Initialize may_have_pointers.
27064 (new_var_info): Likewise.
27065 (handle_lhs_call): Make the HEAP variable unknown-sized.
27066 (intra_create_variable_infos): Use a type with pointers for
27067 PARM_NOALIAS, make it unknown-sized.
27068
27069 2009-02-18 H.J. Lu <hongjiu.lu@intel.com>
27070
27071 PR target/39224
27072 * config/i386/i386.c (ix86_return_in_memory): Properly check ABI.
27073
27074 2009-02-18 Jason Merrill <jason@redhat.com>
27075
27076 PR target/39179
27077 * tree-ssa-ccp.c (get_symbol_constant_value): Don't assume zero
27078 value if DECL_EXTERNAL.
27079 * tree-sra.c (sra_walk_gimple_assign): Likewise.
27080 * target.h (gcc_target::binds_local_p): Clarify "module".
27081 * tree.h (TREE_PUBLIC): Clarify "module".
27082
27083 2009-02-17 Xuepeng Guo <xuepeng.guo@intel.com>
27084
27085 PR target/38891
27086 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move the hunk of
27087 initialization for MS_ABI prior to the hunk of !TARGET_MMX.
27088
27089 2009-02-17 H.J. Lu <hongjiu.lu@intel.com>
27090
27091 PR target/39082
27092 * c.opt (Wabi): Support C and ObjC.
27093 (Wpsabi): New.
27094
27095 * c-opts.c (c_common_handle_option): Handle OPT_Wabi.
27096
27097 * config/i386/i386.c (classify_argument): Warn once about the ABI
27098 change when passing union with long double.
27099
27100 * doc/invoke.texi: Update -Wabi for warning psABI changes.
27101
27102 2009-02-18 Joseph Myers <joseph@codesourcery.com>
27103
27104 PR c/35447
27105 * c-parser.c (c_parser_compound_statement): Always enter and leave
27106 a scope.
27107
27108 2009-02-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
27109
27110 PR target/34587
27111 * config/darwin.h (SUPPORTS_INIT_PRIORITY): Define.
27112
27113 2009-02-18 Jakub Jelinek <jakub@redhat.com>
27114
27115 PR tree-optimization/36922
27116 * tree-data-ref.c (initialize_matrix_A): Handle BIT_NOT_EXPR.
27117 * tree-scalar-evolution.c (interpret_rhs_expr, instantiate_scev_1):
27118 Likewise.
27119
27120 2009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
27121
27122 * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
27123 to 0 for EABI64.
27124
27125 2009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
27126
27127 * config/mips/mips.md (type): Reclassify lui_movf as "unknown".
27128
27129 2009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
27130
27131 * config/mips/mips.c (mips_gimplify_va_arg_expr): Fix invalid
27132 tree sharing.
27133
27134 2009-02-17 Ruan Beihong <ruanbeihong@gmail.com>
27135 Richard Sandiford <rdsandiford@googlemail.com>
27136
27137 * config/mips/mips.c (CODE_FOR_loongson_biadd): Delete.
27138 * config/mips/loongson.md (reduc_uplus_<mode>): Rename to...
27139 (loongson_biadd): ...this.
27140
27141 2009-02-17 Richard Guenther <rguenther@suse.de>
27142
27143 PR tree-optimization/39202
27144 * tree-ssa-structalias.c (do_structure_copy): Before collapsing
27145 a var make sure to follow existing collapses.
27146
27147 2009-02-17 Richard Guenther <rguenther@suse.de>
27148
27149 PR middle-end/39214
27150 * langhooks.c (lhd_print_error_function): Check for NULL block.
27151
27152 2009-02-17 Richard Guenther <rguenther@suse.de>
27153
27154 PR tree-optimization/39204
27155 * tree-ssa-pre.c (phi_translate_1): Lookup the value-number
27156 of the PHI arg.
27157
27158 2009-02-17 Uros Bizjak <ubizjak@gmail.com>
27159
27160 * config/soft-fp/double.h: Update from glibc CVS.
27161
27162 2009-02-17 Richard Guenther <rguenther@suse.de>
27163
27164 PR tree-optimization/39207
27165 * tree-ssa-structalias.c (find_what_p_points_to): Do not emit
27166 strict-aliasing warnings for pointers pointing to NULL.
27167
27168 2009-02-16 Joseph Myers <joseph@codesourcery.com>
27169
27170 PR c/35446
27171 * c-parser.c (c_parser_braced_init): Call pop_init_level when
27172 skipping until next close brace.
27173
27174 2009-02-16 H.J. Lu <hongjiu.lu@intel.com>
27175
27176 PR target/37049
27177 * config/i386/i386.c (ix86_expand_push): Set memory alignment
27178 to function argument boundary.
27179
27180 2009-02-16 Hariharan Sandanagobalane <hariharan@picochip.com>
27181
27182 * config/picochip/picochip.md (lea_add): Allow any nonimmediate
27183 in the lea_add. Reload eventually constraints it properly.
27184 * config/picochip/constraints.md: Remove the target constraint
27185 "b", since it is not needed anymore.
27186
27187 2009-02-16 Jakub Jelinek <jakub@redhat.com>
27188
27189 * gthr-dce.h: Uglify function parameter and local variable names.
27190 * gthr-gnat.h: Likewise.
27191 * gthr-mipssde.h: Likewise.
27192 * gthr-nks.h: Likewise.
27193 * gthr-posix95.h: Likewise.
27194 * gthr-posix.h: Likewise.
27195 * gthr-rtems.h: Likewise.
27196 * gthr-single.h: Likewise.
27197 * gthr-solaris.h: Likewise.
27198 * gthr-tpf.h: Likewise.
27199 * gthr-vxworks.h: Likewise.
27200 * gthr-win32.h: Likewise.
27201
27202 2009-02-15 H.J. Lu <hongjiu.lu@intel.com>
27203
27204 PR target/39196
27205 * config/i386/i386.md: Restrict the new peephole2 to move
27206 between MMX/SSE registers.
27207
27208 2009-02-15 Richard Guenther <rguenther@suse.de>
27209
27210 Revert
27211 2009-02-13 Richard Guenther <rguenther@suse.de>
27212
27213 * configure.ac: Enable LFS.
27214 * configure: Re-generate.
27215 * config.in: Likewise.
27216
27217 2009-02-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27218
27219 * config/spu/spu_internals.h (spu_sr, spu_sra, spu_srqw,
27220 spu_srqwbyte, spu_srqwbytebc): Define.
27221 * config/spu/spu-builtins.def (spu_sr, spu_sra, spu_srqw,
27222 spu_srqwbyte, spu_srqwbytebc): New overloaded builtins.
27223 * config/spu/spu.md ("shrqbybi_<mode>", "shrqbi_<mode>",
27224 "shrqby_<mode>"): New insn-and-split patterns.
27225 * config/spu/spu.c (expand_builtin_args): Determine and return
27226 number of operands using spu_builtin_description data.
27227 (spu_expand_builtin_1): Use it.
27228
27229 2009-02-13 Steve Ellcey <sje@cup.hp.com>
27230
27231 PR target/38056
27232 * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Check
27233 TARGET_CONST_GP.
27234
27235 2009-02-13 H.J. Lu <hongjiu.lu@intel.com>
27236
27237 PR target/39149
27238 * config/i386/i386.c (override_options): Correct warning
27239 messages for -malign-loops, -malign-jumps and -malign-functions.
27240
27241 2009-02-13 H.J. Lu <hongjiu.lu@intel.com>
27242
27243 PR target/39152
27244 * config/i386/i386.md: Restrict the new peephole2 to move
27245 between the general purpose registers.
27246
27247 2009-02-13 H.J. Lu <hongjiu.lu@intel.com>
27248
27249 PR target/39162
27250 * config/i386/i386.c (type_natural_mode): Add a new argument.
27251 Return the original mode and warn ABI change if vector size is 32byte.
27252 (function_arg_advance): Updated.
27253 (function_arg): Likewise.
27254 (ix86_function_value): Likewise.
27255 (ix86_return_in_memory): Likewise.
27256 (ix86_sol10_return_in_memory): Likewise.
27257 (ix86_gimplify_va_arg): Likewise.
27258 (function_arg_32): Don't warn ABX ABI change here.
27259 (function_arg_64): Likewise.
27260
27261 2009-02-13 Bernd Schmidt <bernd.schmidt@analog.com>
27262
27263 * loop-iv.c (implies_p): In the final case, test that operands 0
27264 of the two comparisons match.
27265
27266 * config/bfin/bfin.c (find_prev_insn_start): New function.
27267 (bfin_optimize_loop): Use it in some cases instead of PREV_INSN.
27268 (find_next_insn_start): Move.
27269
27270 2009-02-13 Richard Guenther <rguenther@suse.de>
27271
27272 * configure.ac: Enable LFS.
27273 * configure: Re-generate.
27274 * config.in: Likewise.
27275
27276 2009-02-13 Joseph Myers <joseph@codesourcery.com>
27277
27278 PR c/35444
27279 * c-parser.c (c_parser_parms_list_declarator): Discard pending
27280 sizes on syntax error after some arguments have been parsed.
27281
27282 2009-02-12 Jakub Jelinek <jakub@redhat.com>
27283
27284 * doc/invoke.texi (-fira): Remove.
27285
27286 2009-02-12 H.J. Lu <hongjiu.lu@intel.com>
27287
27288 * caller-save.c: Replace regclass.c with reginfo.c in comments.
27289 * recog.c: Likewise.
27290 * rtl.h: Likewise.
27291
27292 2009-02-12 Uros Bizjak <ubizjak@gmail.com>
27293
27294 * longlong.h (sub_ddmmss): New for ia64. Ported from GMP 4.2.
27295 (umul_ppmm): Likewise.
27296 (count_leading_zeros): Likewise.
27297 (count_trailing_zeros): Likewise.
27298 (UMUL_TIME): Likewise.
27299
27300 2009-02-12 H.J. Lu <hongjiu.lu@intel.com>
27301
27302 * config.gcc (ia64*-*-linux*): Add ia64/t-fprules-softfp and
27303 soft-fp/t-softfp to tmake_file.
27304
27305 * config/ia64/ia64.c (ia64_soft_fp_init_libfuncs): New.
27306 (ia64_expand_compare): Use HPUX library for TFmode only for HPUX.
27307 (ia64_builtins) [IA64_BUILTIN_COPYSIGNQ, IA64_BUILTIN_FABSQ,
27308 IA64_BUILTIN_INFQ]: New.
27309 (ia64_init_builtins): Initialize __builtin_infq,
27310 __builtin_fabsq and __builtin_copysignq if not HPUX.
27311 (ia64_expand_builtin): Handle IA64_BUILTIN_COPYSIGNQ,
27312 IA64_BUILTIN_FABSQ and IA64_BUILTIN_INFQ.
27313
27314 * config/ia64/lib1funcs.asm (__divtf3): Define only if
27315 SHARED is defined.
27316 (__fixtfti): Likewise.
27317 (__fixunstfti): Likewise.
27318 (__floattitf): Likewise.
27319
27320 * config/ia64/libgcc-glibc.ver: New.
27321 * config/ia64/t-fprules-softfp: Likewise.
27322 * config/ia64/sfp-machine.h: Likewise.
27323
27324 * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): New.
27325 (LIBGCC2_TF_CEXT): Likewise.
27326 (TF_SIZE): Likewise.
27327 (TARGET_INIT_LIBFUNCS): Likewise.
27328
27329 * config/ia64/t-glibc (SHLINB_MAPFILES):
27330 Add $(srcdir)/config/ia64/libgcc-glibc.ver.
27331
27332 2009-02-12 H.J. Lu <hongjiu.lu@intel.com>
27333
27334 * config/i386/i386.c (construct_container): Rewrite processing
27335 BLKmode with X86_64_SSE_CLASS.
27336
27337 2009-02-12 Paolo Bonzini <bonzini@gnu.org>
27338
27339 PR target/39152
27340 * config/i386/i386.md: Replace simplify_replace_rtx with
27341 replace_rtx in the new peephole2.
27342
27343 2009-02-12 Nathan Sidwell <nathan@codesourcery.com>
27344
27345 * doc/invoke.texi (Optimize Options): Stop claiming inlining and
27346 loop unrolling do not happen at -O2.
27347
27348 2009-02-12 Michael Matz <matz@suse.de>
27349
27350 * gcc.c (ASM_DEBUG_SPEC): Check for -g0.
27351
27352 2009-02-12 Jakub Jelinek <jakub@redhat.com>
27353
27354 * dwarf2out.c (dwarf2out_finish): Force output of comp_unit_die
27355 for -g3.
27356
27357 2009-02-12 Ben Elliston <bje@au.ibm.com>
27358
27359 * config/rs6000/rs6000.md (allocate_stack): Use _stack form of
27360 patterns when updating the back chain. Missed in the 2009-02-10
27361 change.
27362
27363 2009-02-11 Janis Johnson <janis187@us.ibm.com>
27364
27365 * doc/extend.texi (Decimal Floating Types): Update identifier of
27366 draft TR and list of missing support.
27367
27368 2009-02-11 Jakub Jelinek <jakub@redhat.com>
27369
27370 PR middle-end/39154
27371 * gimplify.c (omp_notice_variable): If adding GOVD_SEEN
27372 bit to variable length decl's flags, add it also to its
27373 pointer replacement variable.
27374
27375 2009-02-11 Uros Bizjak <ubizjak@gmail.com>
27376 Jakub Jelinek <jakub@redhat.com>
27377
27378 PR target/39118
27379 * config/i386/i386.md (UNSPEC_MEMORY_BLOCKAGE): New constant.
27380 (memory_blockage): New expander.
27381 (*memory_blockage): New insn pattern.
27382 * config/i386/i386.c (ix86_expand_prologue): Use memory_blockage
27383 instead of general blockage at the end of function prologue when
27384 frame pointer is used to access red zone area. Do not emit blockage
27385 when profiling, it is emitted in generic code.
27386 (ix86_expand_epilogue): Emit memory_blockage at the beginning of
27387 function epilogue when frame pointer is used to access red zone area.
27388
27389 2009-02-11 Paolo Bonzini <bonzini@gnu.org>
27390
27391 PR target/38824
27392 * config/i386/i386.md: Add two new peephole2 to avoid mov followed
27393 by arithmetic with memory operands.
27394 * config/i386/predicates.md (commutative_operator): New.
27395
27396 2009-02-10 Janis Johnson <janis187@us.ibm.com>
27397
27398 * doc/extend.texi (Fixed-Point Types): Break long paragraphs into
27399 bulleted lists.
27400
27401 2009-02-10 Eric Botcazou <ebotcazou@adacore.com>
27402
27403 * alias.h (record_alias_subset): Declare.
27404 * alias.c (record_alias_subset): Make global.
27405
27406 2009-02-10 Nick Clifton <nickc@redhat.com>
27407
27408 * tree-parloops.c: Change license to GPLv3.
27409 * ipa-struct-reorg.c: Change license to GPLv3.
27410 * ipa-struct-reorg.h: Change license to GPLv3.
27411
27412 2009-02-10 Steve Ellcey <sje@cup.hp.com>
27413
27414 PR c/39084
27415 * c-decl.c (start_struct): Return NULL on error.
27416
27417 2009-02-10 Jakub Jelinek <jakub@redhat.com>
27418
27419 PR middle-end/39124
27420 * cfgloopmanip.c (remove_path): Call remove_bbs after
27421 cancel_loop_tree, not before it.
27422
27423 PR target/39139
27424 * function.h (struct function): Add has_local_explicit_reg_vars bit.
27425 * gimplify.c (gimplify_bind_expr): Set it if local DECL_HARD_REGISTER
27426 VAR_DECLs were seen.
27427 * tree-ssa-live.c (remove_unused_locals): Recompute
27428 cfun->has_local_explicit_reg_vars.
27429 * tree-ssa-sink.c (statement_sink_location): Don't sink BLKmode
27430 copies or clearings if cfun->has_local_explicit_reg_vars.
27431
27432 2009-02-10 Uros Bizjak <ubizjak@gmail.com>
27433
27434 PR target/39118
27435 * config/i386/i386.c (expand_prologue): Emit blockage at the end
27436 of function prologue when frame pointer is used to access
27437 red zone area.
27438
27439 2009-02-10 Richard Guenther <rguenther@suse.de>
27440
27441 PR middle-end/39127
27442 * gimplify.c (gimple_regimplify_operands): Always look if
27443 we need to create a temporary.
27444
27445 2009-02-10 Richard Guenther <rguenther@suse.de>
27446
27447 PR tree-optimization/39132
27448 * tree-loop-distribution.c (todo): New global var.
27449 (generate_memset_zero): Trigger TODO_rebuild_alias.
27450 (tree_loop_distribution): Return todo.
27451
27452 2009-02-10 H.J. Lu <hongjiu.lu@intel.com>
27453
27454 PR target/39119
27455 * config/i386/i386.c (x86_64_reg_class): Remove X86_64_AVX_CLASS.
27456 (x86_64_reg_class_name): Removed.
27457 (classify_argument): Return 0 if bytes > 32. Return 0 if the
27458 first one isn't X86_64_SSE_CLASS or any other ones aren't
27459 X86_64_SSEUP_CLASS when size > 16bytes. Don't turn
27460 X86_64_SSEUP_CLASS into X86_64_SSE_CLASS if the preceded one
27461 is X86_64_SSEUP_CLASS. Set AVX modes to 1 X86_64_SSE_CLASS
27462 and 3 X86_64_SSEUP_CLASS.
27463 (construct_container): Remove X86_64_AVX_CLASS. Handle 4
27464 registers with 1 X86_64_SSE_CLASS and 3 X86_64_SSEUP_CLASS.
27465
27466 2009-02-10 Ben Elliston <bje@au.ibm.com>
27467
27468 * config/rs6000/rs6000.md (allocate_stack): Always use an update
27469 form instruction to update the stack back chain word, even if the
27470 user has disabled the generation of update instructions.
27471 (movdi_<mode>_update_stack): New.
27472 (movsi_update_stack): Likewise.
27473 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Likewise,
27474 always use an update form instruction to update the stack back
27475 chain word.
27476
27477 2009-02-09 Sebastian Pop <sebastian.pop@amd.com>
27478
27479 PR middle-end/38953
27480 * graphite.c (if_region_set_false_region): After moving a region in
27481 the false branch of a condition, remove the empty dummy basic block.
27482 (gloog): Remove wrong fix for PR38953.
27483
27484 2009-02-09 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27485
27486 * config/spu/spu.c (array_to_constant): Fix (latent) wrong-code
27487 generation due to implicit sign extension.
27488
27489 2009-02-09 Eric Botcazou <ebotcazou@adacore.com>
27490
27491 PR middle-end/38981
27492 * tree-ssa-coalesce.c (add_coalesce): Cap the costs of coalesce pairs
27493 at MUST_COALESCE_COST-1 instead of MUST_COALESCE_COST.
27494
27495 2009-02-09 Richard Guenther <rguenther@suse.de>
27496
27497 PR middle-end/35202
27498 * convert.c (convert_to_real): Disable (float)fn((double)x)
27499 to fnf(x) conversion if errno differences may occur and
27500 -fmath-errno is set.
27501
27502 2009-02-07 Anatoly Sokolov <aesok@post.ru>
27503
27504 * config/avr/avr.c (avr_mcu_t): Add ata6289 device.
27505 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
27506 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
27507
27508 2009-02-06 Joseph Myers <joseph@codesourcery.com>
27509
27510 PR c/35434
27511 * c-common.c (handle_alias_attribute): Disallow attribute for
27512 anything not a FUNCTION_DECL or VAR_DECL.
27513
27514 2009-02-06 Janis Johnson <janis187@us.ibm.com>
27515
27516 PR c/39035
27517 * real.c (do_compare): Special-case compare of zero against
27518 decimal float value.
27519
27520 2009-02-06 Joseph Myers <joseph@codesourcery.com>
27521
27522 PR c/36432
27523 * c-decl.c (grokdeclarator): Don't treat [] declarators in fields
27524 as indicating flexible array members unless the field itself is
27525 being declarared as the incomplete array.
27526
27527 2009-02-06 Jan Hubicka <jh@suse.cz>
27528
27529 PR tree-optimization/38844
27530 * ipa-inline.c (try_inline): Stop inlining recursion when edge
27531 is already inlined.
27532
27533 2009-02-06 Richard Guenther <rguenther@suse.de>
27534
27535 PR middle-end/38977
27536 * tree-cfg.c (need_fake_edge_p): Force a fake edge for
27537 fork because we may expand it as __gcov_fork.
27538
27539 2009-02-06 Nick Clifton <nickc@redhat.com>
27540
27541 * config/m32c/m32c.h (PCC_BITFIELD_TYPE_MATTERS): Define to zero.
27542
27543 2009-02-06 Paolo Bonzini <bonzini@gnu.org>
27544
27545 PR tree-optimization/35659
27546 * tree-ssa-sccvn.c (vn_constant_eq, vn_reference_eq, vn_nary_op_eq
27547 vn_phi_eq): Shortcut if hashcode does not match.
27548 (vn_reference_op_compute_hash): Do not call iterative_hash_expr for
27549 NULL operands.
27550 * tree-ssa-pre.c (pre_expr_hash): Look at hashcode if available,
27551 and avoid iterative_hash_expr.
27552 (FOR_EACH_VALUE_ID_IN_SET): New.
27553 (value_id_compare): Remove.
27554 (sorted_array_from_bitmap_set): Use FOR_EACH_VALUE_ID_IN_SET to
27555 sort expressions by value id.
27556
27557 2009-02-05 Kaz Kojima <kkojima@gcc.gnu.org>
27558
27559 PR target/38991
27560 * config/sh/predicates.md (general_movsrc_operand): Don't check
27561 the subreg of system registers here.
27562
27563 2009-02-05 Jakub Jelinek <jakub@redhat.com>
27564
27565 PR c++/39106
27566 * cgraphunit.c (cgraph_function_versioning): Clear also DECL_VIRTUAL_P
27567 on the copied decl.
27568
27569 2009-02-05 Paolo Bonzini <bonzini@gnu.org>
27570
27571 PR rtl-optimization/39110
27572 * rtlanal.c (rtx_addr_can_trap_p_1): Shortcut unaligned
27573 addresses, not aligned ones.
27574
27575 2009-02-05 Daniel Berlin <dberlin@dberlin.org>
27576 Richard Guenther <rguenther@suse.de>
27577
27578 PR tree-optimization/39100
27579 * tree-ssa-structalias.c (do_ds_constraint): Actually do what the
27580 comment says and add edges.
27581
27582 2009-02-05 Joseph Myers <joseph@codesourcery.com>
27583
27584 PR c/35435
27585 * c-common.c (handle_tls_model_attribute): Ignore attribute for
27586 non-VAR_DECLs without checking DECL_THREAD_LOCAL_P.
27587
27588 2009-02-04 Tobias Grosser <grosser@fim.uni-passau.de>
27589
27590 * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use,
27591 sese_build_livein_liveouts_bb, sese_build_livein_liveouts,
27592 register_bb_in_sese, new_sese, free_sese): Moved.
27593 (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains,
27594 outermost_loop_in_scop, build_scop_iteration_domain,
27595 expand_scalar_variables_ssa_name, get_vdef_before_scop,
27596 limit_scops): Use bb_in_sese_p instead of bb_in_scop_p.
27597 Use loop_in_sese_p instead of loop_in_scop_p.
27598 (new_graphite_bb, gloog): Do not initialize SCOP_BBS_B.
27599 (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP and SCOP_BBS_B.
27600 (scopdet_basic_block_info): Fix bug in scop detection.
27601 (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
27602 eq_loop_to_cloog_loop): Remove.
27603 (nb_loops_around_loop_in_scop, nb_loop
27604 ref_nb_loops): Moved here...
27605 * graphite.h (ref_nb_loops): ... from here.
27606 (struct scop): Remove bbs_b bitmap and loop2cloog_loop.
27607 (loop_domain_dim, loop_iteration_vector_dim): Remove.
27608 (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed.
27609
27610 2009-02-04 Paolo Bonzini <bonzini@gnu.org>
27611 Hans-Peter Nilsson <hp@axis.com>
27612
27613 PR rtl-optimization/37889
27614 * rtlanal.c (rtx_addr_can_trap_p_1): Add offset and size arguments.
27615 Move offset handling from PLUS to before the switch. Use new
27616 arguments when considering SYMBOL_REFs too.
27617 (rtx_addr_can_trap_p): Pass dummy offset and size.
27618 (enum may_trap_p_flags): Remove.
27619 (may_trap_p_1): Pass size from MEM_SIZE.
27620
27621 PR rtl-optimization/38921
27622 * loop-invariant.c (find_invariant_insn): Use may_trap_or_fault_p.
27623 * rtl.h (may_trap_after_code_motion_p): Delete prototype.
27624 * rtlanal.c (may_trap_after_code_motion_p): Delete.
27625 (may_trap_p, may_trap_or_fault_p): Pass 0/1 as flags.
27626
27627 2009-02-04 H.J. Lu <hongjiu.lu@intel.com>
27628
27629 AVX Programming Reference (January, 2009)
27630 * config/i386/sse.md (*vpclmulqdq): New.
27631
27632 2009-02-04 Jakub Jelinek <jakub@redhat.com>
27633
27634 PR tree-optimization/38977
27635 PR gcov-profile/38292
27636 * calls.c (special_function_p): Disregard __builtin_ prefix.
27637
27638 2009-02-04 Hariharan Sandanagobalane <hariharan@picochip.com>
27639
27640 * config/picochip/picochip.c (GO_IF_LEGITIMATE_ADDRESS): Disallow
27641 non-indexable addresses even before reload.
27642
27643 2009-02-03 Joseph Myers <joseph@codesourcery.com>
27644
27645 PR c/29129
27646 * c-decl.c (grokdeclarator): Mark [*] arrays in field declarators
27647 as having variable size. Do not give an error for unnamed
27648 parameters with [*] declarators. Give a warning for type names
27649 with [*] declarators and mark them as variable size.
27650 * c-parser.c (c_parser_sizeof_expression): Do not give an error
27651 for sizeof applied to [*] type names.
27652
27653 2009-02-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
27654
27655 PR C++/36607
27656 * convert.c (convert_to_integer): Treat OFFSET_TYPE like INTEGER_TYPE.
27657
27658 2009-02-03 Jakub Jelinek <jakub@redhat.com>
27659
27660 * gcc.c (process_command): Update copyright notice dates.
27661 * gcov.c (print_version): Likewise.
27662 * gcov-dump.c (print_version): Likewise.
27663 * mips-tfile.c (main): Likewise.
27664 * mips-tdump.c (main): Likewise.
27665
27666 2009-02-03 Joseph Myers <joseph@codesourcery.com>
27667
27668 PR c/35433
27669 * c-typeck.c (composite_type): Set TYPE_SIZE and TYPE_SIZE_UNIT
27670 for composite type involving a zero-length array type.
27671
27672 2009-02-03 Jakub Jelinek <jakub@redhat.com>
27673
27674 PR target/35318
27675 * function.c (match_asm_constraints_1): Skip over
27676 initial optional % in the constraint.
27677
27678 PR inline-asm/39059
27679 * c-parser.c (c_parser_postfix_expression): If fixed point is not
27680 supported, don't accept FIXED_CSTs.
27681 * c-decl.c (finish_declspecs): Error if fixed point is not supported
27682 and _Sat is used without _Fract/_Accum. Set specs->type to
27683 integer_type_node for cts_fract/cts_accum if fixed point is not
27684 supported.
27685
27686 2009-02-02 Catherine Moore <clm@codesourcery.com>
27687
27688 * sde.h (SUBTARGET_ARM_SPEC): Don't assemble -fpic code as -mabicalls.
27689
27690 2009-02-02 Richard Sandiford <rdsandiford@googlemail.com>
27691
27692 * config/mips/mips.h (FILE_HAS_64BIT_SYMBOLS): New macro.
27693 (ABI_HAS_64BIT_SYMBOLS): Use it.
27694 (DWARF2_ADDR_SIZE): Use it instead of ABI_HAS_64BIT_SYMBOLS.
27695
27696 2009-02-02 Paul Brook <paul@codesourcery.com>
27697
27698 * config/arm/arm.md (arm_addsi3): Add r/r/k alternative.
27699
27700 2009-02-02 Jakub Jelinek <jakub@redhat.com>
27701
27702 PR inline-asm/39058
27703 * recog.h (asm_operand_ok): Add constraints argument.
27704 * recog.c (asm_operand_ok): Likewise. If it is set, for digits
27705 recurse on matching constraint.
27706 (check_asm_operands): Pass constraints as 3rd argument to
27707 asm_operand_ok. Don't look up matching constraint here.
27708 * stmt.c (expand_asm_operands): Pass NULL as 3rd argument
27709 to asm_operand_ok.
27710
27711 2009-02-02 Ben Elliston <bje@au.ibm.com>
27712
27713 * doc/tm.texi (Storage Layout): Fix TARGET_ALIGN_ANON_BITFIELD and
27714 TARGET_NARROW_VOLATILE_BITFIELD macro names.
27715
27716 2009-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
27717
27718 * doc/install.texi (hppa*-hp-hpux*): Update binutils and linker
27719 information. Remove some obsolete information. Reorganize.
27720
27721 * config/pa/fptr.c: Revert license to GPL 2.
27722 * config/pa/milli64.S: Likewise.
27723
27724 2009-01-31 Dave Korn <dave.korn.cygwin@gmail.com>
27725
27726 PR target/38904
27727 * mkmap-flat.awk (END): Use pe_dll command-line arg to pass
27728 LIBRARY name in, instead of hard-coding it.
27729 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add an
27730 extra target make frag to tmake_files according to EH model.
27731 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
27732 * config/i386/t-dw2-eh, config/i386/t-sjlj-eh: Add new target
27733 frags that define makefile variable EH_MODEL appropriately.
27734 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Add comment.
27735 * config/i386/cygwin.h (LIBGCC_EH_EXTN): Define to nothing or
27736 to "-sjlj" according to type of EH configured.
27737 (LIBGCC_SONAME): Concatenate it to shared library base name.
27738 * config/i386/mingw32.h (LIBGCC_EH_EXTN): Define to "_dw2" or
27739 to "_sjlj" according to type of EH configured.
27740 (LIBGCC_SONAME): Concatenate it to shared library base name.
27741 * config/i386/t-cygming (SHLIB_SONAME): Use EH_MODEL.
27742 (SHLIB_LINK): Add missing semicolon to if-else construct.
27743 (SHLIB_MKMAP_OPTS): Pass library name to mkmap-flat.awk as
27744 string value of "pe_dll" command-line option.
27745 * config/i386/t-cygwin (SHLIB_EH_EXTENSION): New helper.
27746 (SHLIB_SONAME): Use it when overriding t-cygming default.
27747 (SHLIB_IMPLIB): Override t-cygming default.
27748 (SHLIB_MKMAP_OPTS): Pass library name to mkmap-flat.awk as
27749 string value of "pe_dll" command-line option.
27750
27751 2009-01-31 Dave Korn <dave.korn.cygwin@gmail.com>
27752
27753 PR target/38952
27754 * config/i386/i386.c (ix86_builtin_setjmp_frame_value): New.
27755 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Override default to point at it.
27756
27757 2009-01-31 Richard Guenther <rguenther@suse.de>
27758
27759 PR tree-optimization/38937
27760 * tree-ssa-structalias.c (do_sd_constraint): Do not shortcut
27761 computing the transitive closure.
27762
27763 2009-01-30 Richard Guenther <rguenther@suse.de>
27764
27765 PR tree-optimization/39041
27766 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
27767 Propagate variable indices only if the types match for this stmt.
27768
27769 2009-01-30 Jakub Jelinek <jakub@redhat.com>
27770
27771 PR target/39013
27772 * c-decl.c (pop_scope): Set DECL_EXTERNAL for functions declared
27773 inline but never defined.
27774
27775 2009-01-30 Wolfgang Gellerich <gellerich@de.ibm.com>
27776
27777 * config/s390/s390.md (*insv<mode>_reg_extimm): Removed.
27778 (*insv_h_di_reg_extimm): New insn.
27779 (*insv_l<mode>_reg_extimm): New insn.
27780
27781 2009-01-30 Hariharan Sandanagobalane <hariharan@picochip.com>
27782
27783 * config/picochip/picochip.c (flag_conserve_stack): set
27784 PARAM_LARGE_STACK_FRAME and PARAM_STACK_FRAME_GROWTH to zero under
27785 fconserve-stack. Reduce call-overhead used by inliner.
27786
27787 2009-01-30 Hariharan Sandanagobalane <hariharan@picochip.com>
27788
27789 PR/38157
27790 * common.opt (flag_conserve_stack): Initialised to zero.
27791
27792 2009-01-30 Kai Tietz <kai.tietz@onevision.com>
27793
27794 PR/39002
27795 * config/i386/i386.c (ix86_can_use_return_insn_p): Check for nsseregs.
27796 (ix86_expand_epilogue): Take nsseregs in account to use proper restore
27797 method.
27798
27799 2009-01-29 H.J. Lu <hongjiu.lu@intel.com>
27800
27801 * ira-color.c (allocno_reload_assign): Update comments.
27802 * regmove.c (regmove_optimize): Likewise.
27803
27804 * ra.h: Removed.
27805
27806 2009-01-29 Robert Millan <rmh@aybabtu.com>
27807
27808 * config.gcc: Recognize GNU/kOpenSolaris (*-*-kopensolaris*-gnu).
27809 * config/i386/kopensolaris-gnu.h: New file. Undefine
27810 `MD_UNWIND_SUPPORT'.
27811 * config/kopensolaris-gnu.h: New file (based on kfreebsd-gnu.h).
27812
27813 2009-01-29 Kazu Hirata <kazu@codesourcery.com>
27814
27815 PR tree-optimization/39007
27816 * tree-loop-distribution.c (generate_builtin): Use
27817 recompute_dominator to compute the immediate dominator of the
27818 basic block just after the loop.
27819
27820 2009-01-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
27821
27822 * config/i386/sol2-10.h [!HAVE_AS_IX86_DIFF_SECT_DELTA]
27823 (ASM_OUTPUT_DWARF_PCREL): Define.
27824
27825 2009-01-29 Vladimir Makarov <vmakarov@redhat.com>
27826
27827 * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Modify description.
27828 * doc/passes.texi: Remove entries about regclass, local-alloc, and
27829 global. Modify entries about regmove and IRA.
27830
27831 * ra-conflict.c: Remove the file.
27832
27833 * reload.c (push_reload, find_dummy_reload): Remove flag_ira.
27834
27835 * tree-pass.h (pass_local_alloc, pass_global_alloc): Remove.
27836 (pass_regclass_init): Rename to pass_reginfo_init.
27837
27838 * cfgloopanal.c (estimate_reg_pressure_cost): Remove flag_ira.
27839
27840 * toplev.h (flag_ira): Remove.
27841
27842 * caller-save.c (setup_save_areas): Remove flag_ira.
27843
27844 * ira-color.c (ira_reuse_stack_slot, ira_mark_new_stack_slot): Ditto.
27845
27846 * global.c: Remove the file.
27847
27848 * opts.c (decode_options): Remove flag_ira.
27849
27850 * hard-reg-set.h (losing_caller_save_reg_set): Remove.
27851
27852 * regmove.c: Modify file description.
27853 (find_use_as_address, try_auto_increment): Define them only if
27854 AUTO_INC_DEC is defined.
27855 (replacement_quality, replace_in_call_usage, fixup_match_1,
27856 stable_and_no_regs_but_for_p): Remove.
27857 (reg_set_in_bb): Make it static.
27858 (regmove_optimize): Remove flag_ira and code which worked for
27859 !flag_ira.
27860
27861 * local-alloc.c: Remove the file.
27862
27863 * common.opt (fira): Remove.
27864
27865 * ira.c: Include except.h.
27866 (eliminable_regset): Move from global.c.
27867 (mark_elimination): Ditto. Remove flag_ira.
27868 (reg_renumber, struct equivalence, reg_equiv, equiv_mem,
27869 equiv_mem_modified, validate_equiv_mem_from_store,
27870 validate_equiv_mem, equiv_init_varies_p, equiv_init_movable_p,
27871 contains_replace_regs, memref_referenced_p, memref_used_between_p,
27872 no_equiv, recorded_label_ref): Move from local-alloc.c.
27873 (update_equiv_regs): Ditto. Make it static.
27874 (print_insn_chain, print_insn_chains): Move it from global.c.
27875 (pseudo_for_reload_consideration_p): Ditto. Remove flag_ira.
27876 (build_insn_chain): Ditto. Make it static.
27877 (ra_init_live_subregs): Move from ra-conflict.c. Make it static.
27878 Rename to init_live_subregs.
27879 (gate_ira): Remove flag_ira.
27880
27881 * regclass.c: Rename reginfo.c. Change file description.
27882 (FORBIDDEN_INC_DEC_CLASSES): Remove.
27883 (reg_class_superclasses, forbidden_inc_dec_class, in_inc_dec): Remove.
27884 (init_reg_sets_1): Remove code for evaluation of
27885 reg_class_superclasses and losing_caller_save_reg_set.
27886 (init_regs): Remove init_reg_autoinc.
27887 (struct costs, costs, init_cost, ok_for_index_p_nonstrict,
27888 ok_for_base_p_nonstrict): Remove.
27889 (regclass_init): Rename to reginfo_init. Don't initialize init_cost.
27890 (pass_regclass_init): Rename to pass_reginfo_init. Modify
27891 corresponding entries.
27892 (dump_regclass, record_operand_costs, scan_one_insn,
27893 init_reg_autoinc, regclass, record_reg_classes, copy_cost,
27894 record_address_regs, auto_inc_dec_reg_p): Remove.
27895 (gt-regclass.h): Rename to gt-reginfo.h.
27896
27897 * rtl.h (dump_global_regs, retry_global_alloc,
27898 build_insn_chain, dump_local_alloc, update_equiv_regs): Remove.
27899
27900 * Makefile.in (RA_H): Remove.
27901 (OBJS-common): Remove global.o, local-alloc.o, and ra-conflict.o.
27902 Rename regclass.o to reginfo.o.
27903 (regclass.o): Rename to reginfo.o. Rename gt-regclass.h to
27904 gt-reginfo.h.
27905 (global.o, local-alloc.o, ra-conflict.o): Remove entries.
27906 (GTFILES): Rename regclass.c to reginfo.c.
27907
27908 * passes.c (init_optimization_passes): Remove pass_local_alloc and
27909 pass_global_alloc. Rename pass_regclass_init to pass_reginfo_init.
27910
27911 * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
27912 count_spilled_pseudo, find_reg, alter_reg, delete_output_reload):
27913 Remove flag_ira.
27914 (finish_spills): Ditto. Remove code for !flag_ira.
27915
27916 2009-01-29 Kenneth Zadeck <zadeck@naturalbridge.com>
27917
27918 PR middle-end/35854
27919 * doc/invoke.texi (rtl debug options): Complete rewrite.
27920 * auto-inc-dec.c (pass_inc_dec): Rename pass from "auto-inc-dec"
27921 to auto_inc_dec".
27922 * mode-switching.c (pass_mode_switching): Rename pass from
27923 "mode-sw" to "mode_sw".
27924 * except.c (pass_convert_to_eh_ranges): Rename pass from
27925 "eh-ranges" to "eh_ranges".
27926 * lower-subreg.c (pass_lower_subreg): Renamed pass from "subreg"
27927 to "subreg1".
27928
27929
27930 2009-01-29 Andrey Belevantsev <abel@ispras.ru>
27931 Alexander Monakov <amonakov@ispras.ru>
27932
27933 PR middle-end/38857
27934 * sel-sched.c (count_occurrences_1): Check that *cur_rtx is a hard
27935 register.
27936 (move_exprs_to_boundary): Change return type and pass through
27937 should_move from move_op. Relax assert. Update usage ...
27938 (schedule_expr_on_boundary): ... here. Use should_move instead of
27939 cant_move.
27940 (move_op_orig_expr_found): Indicate that insn was disconnected from
27941 stream.
27942 (code_motion_process_successors): Do not call after_merge_succs
27943 callback if original expression was not found when traversing any of
27944 the branches.
27945 (code_motion_path_driver): Change return type. Update prototype.
27946 (move_op): Update comment. Add a new parameter (should_move). Update
27947 prototype. Set *should_move based on indication provided by
27948 move_op_orig_expr_found.
27949
27950 2009-01-28 Pat Haugen <pthaugen@us.ibm.com>
27951
27952 * doc/invoke.texi (avoid-indexed-addresses): Document new option.
27953 * config/rs6000/rs6000-protos.h (avoiding_indexed_address_p): Declare.
27954 * config/rs6000/rs6000.opt (avoid-indexed-addresses): New option.
27955 * config/rs6000/rs6000.c (rs6000_override_options): Default
27956 avoid-indexed-addresses on for Power6, off for everything else.
27957 (avoiding_indexed_address_p): New function.
27958 (rs6000_legitimize_address): Use it.
27959 (rs6000_legitimate_address): Likewise.
27960 * config/rs6000/rs6000.md (movXX_updateX): Likewise
27961
27962 2009-01-28 Kazu Hirata <kazu@codesourcery.com>
27963
27964 PR tree-optimization/38997
27965 * tree-loop-distribution.c (generate_memset_zero): Use
27966 POINTER_PLUS_EXPR for a pointer addition.
27967
27968 2009-01-28 Andreas Krebbel <krebbel1@de.ibm.com>
27969
27970 * config/s390/s390.md (bswap<mode>2): New pattern added.
27971
27972 2009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
27973
27974 * config/s390/s390.md (*tls_load_31): Added type attribute.
27975
27976 2009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
27977
27978 * config/s390/s390.md: Fix a few comments.
27979
27980 2009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
27981
27982 * config/s390/s390.md (*tmsi_reg): Fixed z10prop attribute.
27983 (*tm<mode>_full): Fixed z10prop attribute.
27984 (*tst<mode>_extimm): Fixed z10prop attribute.
27985 (*tst<mode>_cconly_extimm): Fixed z10prop attribute.
27986 (*tstqiCCT_cconly): Fixed z10prop attribute.
27987 (*cmpsi_ccu_zerohi_rlsi): Fixed z10prop attribute.
27988 (*movsi_larl): Fixed z10prop attribute.
27989 (*movsi_zarch): Fixed z10prop attribute.
27990 (*movsi_eas): Fixed z10prop attribute.
27991 (*movhi): Fixed z10prop attribute.
27992 (*movqi): Fixed z10prop attribute.
27993 (*movstrictqi): Fixed z10prop attribute.
27994 (*mov<mode>): Fixed z10prop attribute.
27995 (*movcc): Fixed z10prop attribute.
27996 (*sethighpartdi_64): Fixed z10prop attribute.
27997 (*zero_extendhi<mode>2_z10): Fixed z10prop attribute.
27998 (*negdi2_sign_cc): Fixed z10prop attribute.
27999 (*negdi2_sign): Fixed z10prop attribute.
28000 (*absdi2_sign_cc): Fixed z10prop attribute.
28001 (*absdi2_sign): Fixed z10prop attribute.
28002 (*negabsdi2_sign_cc): Fixed z10prop attribute.
28003 (*negabsdi2_sign): Fixed z10prop attribute.
28004 (*cmp_and_trap_signed_int<mode>): Fixed z10prop attribute.
28005 (*cmp_and_trap_unsigned_int<mode>): Fixed z10prop attribute.
28006 (doloop_si64): Fixed z10prop attribute.
28007 (doloop_si31): Fixed z10prop attribute.
28008 (doloop_long): Fixed z10prop attribute.
28009 (indirect_jump): Fixed z10prop attribute.
28010 (nop): Fixed z10prop attribute.
28011 (main_base_64): Fixed z10prop attribute.
28012 (reload_base_64): Fixed z10prop attribute.
28013
28014 2009-01-28 Jakub Jelinek <jakub@redhat.com>
28015
28016 PR rtl-optimization/38740
28017 * reorg.c (gate_handle_delay_slots): Avoid dbr scheduling
28018 if !optimize.
28019 * config/mips/mips.c (mips_reorg): Likewise.
28020
28021 2009-01-28 Richard Guenther <rguenther@suse.de>
28022
28023 PR tree-optimization/38926
28024 * tree-ssa-pre.c (add_to_value): Assert we add only expressions
28025 with the correct value id to a value.
28026 (do_regular_insertion): Use the value number of edoubleprime
28027 for the value number of the expr.
28028
28029 Revert
28030 2008-08-21 Richard Guenther <rguenther@suse.de>
28031
28032 * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
28033 a PHI ask VN if it is already available.
28034 * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
28035 * tree-ssa-sccvn.c (vn_phi_lookup): Export.
28036
28037 2009-01-28 Jakub Jelinek <jakub@redhat.com>
28038
28039 PR middle-end/38934
28040 * tree-vrp.c (extract_range_from_assert): For LE_EXPR and LT_EXPR
28041 set to varying whenever max has TREE_OVERFLOW set, similarly
28042 for GE_EXPR and GT_EXPR and TREE_OVERFLOW min.
28043
28044 2009-01-28 Richard Guenther <rguenther@suse.de>
28045
28046 PR middle-end/38908
28047 * tree-ssa.c (warn_uninitialized_var): Do not warn for seemingly
28048 uninitialized aggregate uses in call arguments.
28049
28050 2009-01-28 Paolo Bonzini <bonzini@gnu.org>
28051
28052 PR tree-optimization/38984
28053 * tree-ssa-structalias.c (get_constraints_for_1): Do not use
28054 the nothing_id variable if -fno-delete-null-pointer-checks.
28055
28056 2009-01-28 Uros Bizjak <ubizjak@gmail.com>
28057
28058 PR target/38988
28059 * config/i386/i386.md (set_rip_rex64): Wrap operand 1 in label_ref.
28060 (set_got_offset_rex64): Ditto.
28061
28062 2009-01-27 H.J. Lu <hongjiu.lu@intel.com>
28063
28064 PR target/38941
28065 * doc/extend.texi: Improve local variable with asm reg.
28066
28067 2009-01-27 Adam Nemet <anemet@caviumnetworks.com>
28068
28069 * c.opt (Wpacked-bitfield-compat): Change init value to -1.
28070 * c-opts.c (c_common_post_options): If -W*packed-bitfield-compat
28071 was not supplied then set warn_packed_bitfield_compat to the
28072 default value of 1.
28073 * stor-layout.c (place_field): Check warn_packed_bitfield_compat
28074 against 1.
28075
28076 2009-01-27 Richard Guenther <rguenther@suse.de>
28077
28078 PR tree-optimization/38503
28079 * cfgexpand.c (expand_gimple_basic_block): Ignore
28080 GIMPLE_CHANGE_DYNAMIC_TYPE during expansion.
28081 * tree-ssa-structalias.c (set_uids_in_ptset): Do not prune
28082 variables that cannot have TBAA applied.
28083 (compute_points_to_sets): Do not remove GIMPLE_CHANGE_DYNAMIC_TYPE
28084 statements.
28085
28086 2009-01-27 Uros Bizjak <ubizjak@gmail.com>
28087
28088 PR middle-end/38969
28089 * calls.c (initialize_argument_information): Do not wrap complex
28090 arguments in SAVE_EXPR.
28091
28092 2009-01-26 Andreas Tobler <a.tobler@schweiz.org>
28093
28094 * config/t-vxworks (LIBGCC2_INCLUDES): Fix typo.
28095 (INSTALL_LIBGCC): Revert typo commit.
28096
28097 2009-01-26 Richard Guenther <rguenther@suse.de>
28098
28099 PR tree-optimization/38745
28100 * tree-ssa-alias.c (update_alias_info_1): Exclude RESULT_DECL
28101 from special handling.
28102
28103 2009-01-26 Richard Guenther <rguenther@suse.de>
28104
28105 PR tree-optimization/38745
28106 * tree-ssa.c (execute_update_addresses_taken): Do not include
28107 variables that cannot possibly be a register in not_reg_needs.
28108 Do not clear TREE_ADDRESSABLE on vars that may not become
28109 registers.
28110 * tree-ssa.c (update_alias_info_1): Include those in the set
28111 of addressable vars.
28112
28113 2009-01-26 Richard Guenther <rguenther@suse.de>
28114
28115 PR middle-end/38851
28116 * Makefile.in (tree-ssa-dse.o): Add langhooks.h.
28117 * tree-ssa-dse.c: Include langhooks.h
28118 (execute_simple_dse): Remove stores with zero size.
28119
28120 2009-01-24 Jakub Jelinek <jakub@redhat.com>
28121
28122 PR c/38957
28123 * c-typeck.c (c_finish_return): Handle POINTER_PLUS_EXPR the same way
28124 as PLUS_EXPR.
28125
28126 2009-01-24 Julian Brown <julian@codesourcery.com>
28127
28128 * config/arm/t-linux-eabi (LIB2FUNCS_STATIC_EXTRA): Add
28129 config/arm/linux-atomic.c.
28130 * config/arm/linux-atomic.c: New.
28131
28132 2009-01-24 Eric Botcazou <ebotcazou@adacore.com>
28133
28134 * config/sparc/linux.h (DBX_REGISTER_NUMBER): Delete.
28135 * config/sparc/linux64.h (DBX_REGISTER_NUMBER): Likewise.
28136 * config/sparc/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
28137
28138 2009-01-24 H.J. Lu <hongjiu.lu@intel.com>
28139
28140 PR c/38938
28141 * c-opts.c (c_common_handle_option): Update warn_pointer_sign
28142 properly.
28143
28144 2009-01-24 Sebastian Pop <sebastian.pop@amd.com>
28145
28146 PR tree-optimization/38953
28147 * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa.
28148 (scop_adjust_phis_for_liveouts): Initialize false_i to zero.
28149 (gloog): Split the exit of the scop when the scop exit is a loop exit.
28150 (graphite_transform_loops): Only call cleanup_tree_cfg if gloog
28151 changed the CFG.
28152
28153 2009-01-24 Paul Brook <paul@codesourcery.com>
28154
28155 * config/arm/neon.md (neon_type): Move to arm.md.
28156 (neon_mov<VSTRUCT>): Add neon_type attribute.
28157 * config/arm/arm.md (neon_type): Move to here.
28158 (conds): Add "unconditioal" and use as default for NEON insns.
28159
28160 2009-01-24 Ben Elliston <bje@au.ibm.com>
28161
28162 * bitmap.h (BITMAP_FREE): Eliminate `implicit conversion from
28163 void *' warning from -Wc++-compat.
28164 * Makefile.in (dominance.o-warn): Remove.
28165
28166 2009-01-23 Paolo Bonzini <bonzini@gnu.org>
28167
28168 PR tree-optimization/38932
28169 * fold-const.c (fold_unary_ignore_overflow): New.
28170 * tree.h (fold_unary_ignore_overflow): Declare.
28171 * tree-ssa-ccp.c (ccp_fold): Use fold_unary_ignore_overflow.
28172 * tree-ssa-sccvn.c (visit_reference_op_load,
28173 simplify_unary_expression): Likewise.
28174
28175 2009-01-22 Adam Nemet <anemet@caviumnetworks.com>
28176
28177 * c-decl.c (finish_struct): Move code to set DECL_PACKED after
28178 DECL_BIT_FIELD is alreay known. Also inherit packed for bitfields
28179 regardless of their type.
28180 * c-common.c (handle_packed_attribute): Don't ignore packed on
28181 bitfields.
28182 * c.opt (Wpacked-bitfield-compat): New warning option.
28183 * stor-layout.c (place_field): Warn if offset of a field changed.
28184 * doc/extend.texi (packed): Mention the ABI change.
28185 * doc/invoke.texi (-Wpacked-bitfield-compat): Document.
28186 (Warning Options): Add it to the list.
28187
28188 2009-01-22 H.J. Lu <hongjiu.lu@intel.com>
28189
28190 * c-opts.c (c_common_post_options): Fix a typo in comments.
28191
28192 2009-01-22 Steve Ellcey <sje@cup.hp.com>
28193
28194 PR middle-end/38615
28195 * gimplify.c (gimplify_init_constructor): Fix promotion of const
28196 variables to static.
28197 * doc/invoke.texi (-fmerge-all-constants): Update description.
28198
28199 2009-01-22 Uros Bizjak <ubizjak@gmail.com>
28200
28201 PR target/38931
28202 * config/i386/i386.md (*movsi_1): Use type "mmx" for alternative 2.
28203 (*movdi_1_rex64): Use type "mmx" for alternative 5.
28204
28205 2009-01-22 Richard Earnshaw <rearnsha@arm.com>
28206
28207 * arm.h (DATA_ALIGNMENT): Align structures, unions and arrays to
28208 a word boundary.
28209 (LOCAL_ALIGNMENT): Similarly.
28210
28211 2009-01-22 Mark Shinwell <shinwell@codesourcery.com>
28212 Joseph Myers <joseph@codesourcery.com>
28213
28214 * config/arm/arm.c (all_architectures): Add iWMMXt2 entry.
28215 * config/arm/arm-cores.def: New ARM_CORE entry for iWMMXt2.
28216 * config/arm/arm-tune.md: Regenerate.
28217 * doc/invoke.texi (ARM Options): Document -mcpu=iwmmxt2 and
28218 -march=iwmmxt2.
28219
28220 2009-01-22 Mark Shinwell <shinwell@codesourcery.com>
28221
28222 * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Bump EABI
28223 version number to five.
28224
28225 2009-01-22 Dodji Seketeli <dodji@redhat.com>
28226
28227 PR c++/38930
28228 * c-decl.c (clone_underlying_type): Revert PR c++/26693 changes.
28229 * c-common.c (set_underlying_type): Likewise.
28230 (is_typedef_decl ): Likewise
28231 * tree.h: Likewise
28232 (set_underlying_type): Likewise.
28233 (is_typedef_type): Likewise.
28234
28235 2009-01-21 Vladimir Makarov <vmakarov@redhat.com>
28236
28237 PR middle-end/38587
28238 * ira-color.c (coalesce_spill_slots): Don't coalesce allocnos
28239 crossing setjmps.
28240
28241 2009-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
28242
28243 PR bootstrap/37660
28244 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): New helper macro.
28245 (LIBGCC_SPEC): Don't define.
28246 (REAL_LIBGCC_SPEC): Define instead, using SHARED_LIBGCC_SPEC.
28247
28248 2009-01-21 Uros Bizjak <ubizjak@gmail.com>
28249
28250 PR rtl-optimization/38879
28251 * alias.c (base_alias_check): Unaligned access via AND address can
28252 alias all surrounding object types except those with sizes equal
28253 or wider than the size of unaligned access.
28254
28255 2009-01-21 Dodji Seketeli <dodji@redhat.com>
28256
28257 PR c++/26693
28258 * c-decl.c (clone_underlying_type): Move this ...
28259 * c-common.c (set_underlying_type): ... here.
28260 Also, make sure the function properly sets TYPE_STUB_DECL() on
28261 the newly created typedef variant type.
28262 (is_typedef_decl ): New entry point.
28263 * tree.h: Added a new member member_types_needing_access_check to
28264 struct tree_decl_non_common.
28265 (set_underlying_type): New entry point.
28266 (is_typedef_type): Likewise.
28267
28268 2009-01-21 Bingfeng Mei <bmei@broadcom.com>
28269
28270 * alias.c (walk_mems_1, walk_mems_2, insn_alias_sets_conflict_p):
28271 Check whether two instructions have memory references that
28272 belong to conflicting alias sets. walk_mems_1 and walk_mems_2
28273 are helper functions for traversing.
28274 * alias.h (insn_alias_sets_confilict_p): New prototypes.
28275 * ddg.c (add_inter_loop_mem_dep): Call insn_alias_sets_conflict_p
28276 not to draw dependency edge for instructions with non-conflicting
28277 alias sets.
28278
28279 2009-01-20 Joseph Myers <joseph@codesourcery.com>
28280
28281 PR other/38758
28282 * longlong.h: Update copyright years. Use soft-fp license notice.
28283 Sync __clz_tab declaration with glibc.
28284
28285 2009-01-20 Steve Ellcey <sje@cup.hp.com>
28286
28287 PR target/30687
28288 * doc/extend.texi (syscall_linkage): New.
28289 (version_id): Modify.
28290
28291 2009-01-20 Andrew Pinski <andrew_pinski@playstation.sony.com>
28292 Richard Guenther <rguenther@suse.de>
28293
28294 PR tree-optimization/38747
28295 PR tree-optimization/38748
28296 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Disable the VCE
28297 conversion if the base address is an indirect reference and the
28298 aliasing sets could cause issues.
28299
28300 2009-01-20 Sebastian Pop <sebastian.pop@amd.com>
28301
28302 * common.opt (fgraphite, fgraphite-identity): Add comment for
28303 explaining why these options are not documented.
28304
28305 2009-01-20 Sebastian Pop <sebastian.pop@amd.com>
28306
28307 * graphite.c (stmt_simple_for_scop_p): Also handle cases when
28308 gimple_call_lhs is NULL.
28309
28310 2009-01-20 Paolo Bonzini <bonzini@gnu.org>
28311
28312 PR target/38868
28313 * emit-rtl.c (adjust_address_1): Make sure memref is never
28314 overwritten.
28315
28316 2009-01-20 Ben Elliston <bje@au.ibm.com>
28317
28318 * libgcov.c (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
28319 const qualifier from arg parameter. Remove unnecessary cast to char *.
28320 * gcov-io.h (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
28321 const qualifier from arg 2.
28322
28323 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
28324
28325 * config/darwin.h: Add static-libgfortran to LINK_SPEC.
28326
28327 2009-01-19 Vladimir Makarov <vmakarov@redhat.com>
28328
28329 PR c/38869
28330 * rtl.h (reinit_regs): New prototype.
28331 * regclass.c: Include ira.h.
28332 (reinit_regs): New.
28333 * Makefile.in (regclass.o): Add ira.h.
28334 * config/i386/i386.c (ix86_maybe_switch_abi): Use reinit_regs.
28335
28336 2009-01-18 H.J. Lu <hongjiu.lu@intel.com>
28337
28338 PR target/38736
28339 * c-common.c (handle_aligned_attribute): Use
28340 ATTRIBUTE_ALIGNED_VALUE instead of BIGGEST_ALIGNMENT for
28341 default alignment value.
28342
28343 * c-cppbuiltin.c (c_cpp_builtins): Define __BIGGEST_ALIGNMENT__.
28344
28345 * defaults.h (ATTRIBUTE_ALIGNED_VALUE): New.
28346 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Likewise.
28347
28348 * doc/extend.texi: Update __attribute__ ((aligned)). Document
28349 __BIGGEST_ALIGNMENT__.
28350
28351 * doc/tm.texi: Document ATTRIBUTE_ALIGNED_VALUE.
28352
28353 2009-01-18 Richard Guenther <rguenther@suse.de>
28354
28355 PR tree-optimization/38819
28356 * tree-flow.h (operation_could_trap_helper_p): Declare.
28357 * tree-eh.c (operation_could_trap_helper_p): Export.
28358 * tree-ssa-sccvn.h (vn_nary_may_trap): Declare.
28359 * tree-ssa-sccvn.c (vn_nary_may_trap): New function.
28360 * tree-ssa-pre.c (insert_into_preds_of_block): Check if we
28361 are about to insert a possibly trapping instruction and fail
28362 in this case.
28363
28364 2009-01-18 Andreas Schwab <schwab@suse.de>
28365
28366 * doc/install.texi (Configuration): Remove obsolete paragraph
28367 about use of --with-gnu-ld with --with-gnu-as.
28368
28369 2009-01-18 Kazu Hirata <kazu@codesourcery.com>
28370
28371 * doc/extend.texi, doc/gimple.texi, doc/invoke.texi,
28372 doc/md.texi, doc/sourcebuild.texi, doc/tm.texi: Fix typos.
28373 Follow spelling conventions.
28374
28375 2009-01-18 Ben Elliston <bje@au.ibm.com>
28376
28377 * bitmap.c (bitmap_obstack_alloc_stat): Adjust cast to eliminate
28378 C++ warning about implicit conversion from void * to struct
28379 bitmap_head_def *.
28380 (bitmap_obstack_free): Likewise for bitmap_element *.
28381 * Makefile.in (bitmap.o-warn): Remove.
28382
28383 2009-01-17 Dave Korn <dave.korn.cygwin@gmail.com>
28384
28385 * Makefile.in (BACKENDLIBS): Reorder to match dependencies.
28386
28387 2009-01-17 Sebastian Pop <sebastian.pop@amd.com>
28388 Tobias Grosser <tobi.grosser@amd.com>
28389
28390 * graphite.c (graphite_trans_scop_block): Do not block single
28391 nested loops.
28392
28393 2009-01-16 Alexandre Oliva <aoliva@redhat.com>
28394
28395 * ebitmap.h (ebitmap_iter_init): Initialize all fields.
28396 * ipa-struct-reorg.c (gen_struct_type): Replace known-true
28397 test with assertion.
28398
28399 2009-01-16 Richard Guenther <rguenther@suse.de>
28400
28401 PR tree-optimization/38835
28402 PR middle-end/36227
28403 * fold-const.c (fold_binary): Remove PTR + INT -> (INT)(PTR p+ INT)
28404 and INT + PTR -> (INT)(PTR p+ INT) folding.
28405 * tree-ssa-address.c (create_mem_ref): Properly use POINTER_PLUS_EXPR.
28406
28407 2009-01-16 Adam Nemet <anemet@caviumnetworks.com>
28408
28409 PR target/38554
28410 * expmed.c (expand_shift): With SHIFT_COUNT_TRUNCATED, don't lift
28411 the subreg from a lowpart subreg if it is also casting the value.
28412
28413 2009-01-16 Sebastian Pop <sebastian.pop@amd.com>
28414 Tobias Grosser <tobi.grosser@amd.com>
28415
28416 * graphite.c (compare_prefix_loops): New.
28417 (build_scop_canonical_schedules): Rewritten.
28418 (graphite_transform_loops): Move build_scop_canonical_schedules
28419 after build_scop_iteration_domain.
28420
28421 2009-01-16 Sebastian Pop <sebastian.pop@amd.com>
28422 Tobias Grosser <tobi.grosser@amd.com>
28423
28424 * graphite.c (add_conditions_to_domain): Add the loops to
28425 the dimension of the iteration domain. Do copy the domain
28426 only when it exists.
28427 (build_scop_conditions_1): Do not call add_conditions_to_domain.
28428 (add_conditions_to_constraints): New.
28429 (can_generate_code_stmt, can_generate_code): Removed.
28430 (gloog): Do not call can_generate_code.
28431 (graphite_transform_loops): Call add_conditions_to_constraints
28432 after building the iteration domain.
28433
28434 2009-01-16 Jakub Jelinek <jakub@redhat.com>
28435
28436 PR tree-optimization/38789
28437 * tree-ssa-threadedge.c
28438 (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
28439 __builtin_constant_p.
28440
28441 2009-01-16 Kenneth Zadeck <zadeck@naturalbridge.com>
28442
28443 * dce.c (delete_unmarked_insns): Reversed the order that insns are
28444 examined before deleting them.
28445
28446 2009-01-16 Richard Earnshaw <rearnsha@arm.com>
28447
28448 * function.c (aggregate_value_p): Correctly extract the function
28449 type from CALL_EXPR_FN lookup.
28450
28451 2009-01-16 Hariharan Sandanagobalane <hariharan@picochip.com>
28452
28453 * config/picochip/picochip.c (picochip_override_options): Revert
28454 CFI asm flag disable commited previously.
28455
28456 2009-01-15 Sebastian Pop <sebastian.pop@amd.com>
28457 Tobias Grosser <tobi.grosser@amd.com>
28458 Jan Sjodin <jan.sjodin@amd.com>
28459
28460 * graphite.c (scan_tree_for_params): On substractions negate
28461 all the coefficients of the term.
28462 (clast_to_gcc_expression_red): New. Handle reduction expressions
28463 of more than two operands.
28464 (clast_to_gcc_expression): Call clast_to_gcc_expression_red.
28465 (get_vdef_before_scop): Handle also the case of default definitions.
28466
28467 2009-01-15 Richard Sandiford <rdsandiford@googlemail.com>
28468
28469 * caller-save.c (add_used_regs_1, add_used_regs): New functions.
28470 (insert_one_insn): Use them instead of REG_DEAD and REG_INC notes.
28471 Also use them when walking CALL_INSN_FUNCTION_USAGE.
28472
28473 2009-01-15 H.J. Lu <hongjiu.lu@intel.com>
28474 Joey Ye <joey.ye@intel.com>
28475
28476 PR middle-end/37843
28477 * cfgexpand.c (expand_stack_alignment): Don't update stack
28478 boundary nor check incoming stack boundary here.
28479 (gimple_expand_cfg): Update stack boundary and check incoming
28480 stack boundary here.
28481
28482 2009-01-15 Kenneth Zadeck <zadeck@naturalbridge.com>
28483
28484 * dce.c (find_call_stack_args, delete_unmarked_insns): Fixed comments.
28485
28486 2009-01-14 Jakub Jelinek <jakub@redhat.com>
28487
28488 PR rtl-optimization/38245
28489 * calls.c (expand_call): Add stack arguments to
28490 CALL_INSN_FUNCTION_USAGE even for pure calls (when
28491 ACCUMULATE_OUTGOING_ARGS) and even for args partially passed
28492 in regs and partially in memory or BLKmode arguments.
28493 (emit_library_call_value_1): Add stack arguments to
28494 CALL_INSN_FUNCTION_USAGE even for pure calls (when
28495 ACCUMULATE_OUTGOING_ARGS).
28496 * dce.c: Include tm_p.h.
28497 (find_call_stack_args): New function.
28498 (deletable_insn_p): Call it for CALL_P insns. Add ARG_STORES
28499 argument.
28500 (mark_insn): Call find_call_stack_args for CALL_Ps.
28501 (prescan_insns_for_dce): Walk insns backwards in bb rather than
28502 forwards. Allocate and free arg_stores bitmap if needed, pass it
28503 down to deletable_insn_p, don't mark stores set in arg_stores
28504 bitmap, clear the bitmap at the beginning of each bb.
28505 * Makefile.in (dce.o): Depend on $(TM_P_H).
28506
28507 2009-01-14 Michael Meissner <gnu@the-meissners.org>
28508
28509 PR target/22599
28510 * config/i386/i386.c (print_operand): Add tests for 'D', 'C', 'F', 'f'
28511 to make sure the insn is a conditional test (bug 22599). Reformat a
28512 few long lines.
28513
28514 2009-01-14 Sebastian Pop <sebastian.pop@amd.com>
28515
28516 PR middle-end/38431
28517 * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New.
28518 (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi.
28519 (gloog): Do not call cleanup_tree_cfg.
28520 (graphite_transform_loops): Call cleanup_tree_cfg after all
28521 scops have been code generated.
28522
28523 2009-01-14 Basile Starynkevitch <basile@starynkevitch.net>
28524 * doc/gty.texi (Invoking the garbage collector): Added new node
28525 and section documenting ggc_collect.
28526
28527 2009-01-14 Richard Guenther <rguenther@suse.de>
28528
28529 PR tree-optimization/38826
28530 PR middle-end/38477
28531 * tree-ssa-structalias.c (emit_alias_warning): Emit the pointer
28532 initialization notes only if we actually emitted a warning.
28533 (intra_create_variable_infos): Add constraints for a result decl
28534 that is passed by hidden reference.
28535 (build_pred_graph): Mark all related variables non-direct on
28536 address-taking.
28537
28538 2009-01-14 Nick Clifton <nickc@redhat.com>
28539
28540 * ira-conflicts.c: Include addresses.h for the definition of
28541 base_reg_class.
28542 (ira_build_conflicts): Use base_reg_class instead of BASE_REG_CLASS.
28543 * Makefile.in: Add a dependency of ira-conflicts.o on addresses.h.
28544
28545 2009-01-13 Vladimir Makarov <vmakarov@redhat.com>
28546
28547 PR target/38811
28548 * Makefile.in (ira-lives.o): Add except.h.
28549
28550 * ira-lives.c: Include except.h.
28551 (process_bb_node_lives): Process can_throw_internal.
28552
28553 2009-01-13 Jakub Jelinek <jakub@redhat.com>
28554
28555 PR rtl-optimization/38774
28556 * combine.c (simplify_set): When undoing cc_use change, don't do
28557 PUT_CODE on the newly created comparison, but instead put back the
28558 old comparison.
28559
28560 2009-01-13 Joseph Myers <joseph@codesourcery.com>
28561
28562 * doc/invoke.texi (ARM Options): Update lists of -mcpu and -march
28563 values. Remove duplicate arm8 entry.
28564
28565 2009-01-13 Sebastian Pop <sebastian.pop@amd.com>
28566
28567 PR tree-optimization/38786
28568 * graphite.c (expand_scalar_variables_ssa_name): New, outlined from
28569 the SSA_NAME case of expand_scalar_variables_expr.
28570 Set the type of an expression to the type of its assign statement.
28571 (expand_scalar_variables_expr): Also gather the scalar computation
28572 used to index the memory access. Do not pass loop_p.
28573 Fix comment. Stop recursion on tcc_constant or tcc_declaration.
28574 (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr
28575 the gimple_stmt_iterator where it inserts new code.
28576 Do not pass loop_p.
28577 (copy_bb_and_scalar_dependences): Do not pass loop_p.
28578 (translate_clast): Update call to copy_bb_and_scalar_dependences.
28579
28580 2009-01-13 Sebastian Pop <sebastian.pop@amd.com>
28581
28582 * graphite.h (debug_value): Removed.
28583 * graphite.c (debug_value): Removed.
28584
28585 2009-01-13 Richard Earnshaw <rearnsha@arm.com>
28586
28587 * config/arm/arm.c (output_move_double): Don't synthesize thumb-2
28588 ldrd/strd with two 32-bit instructions.
28589
28590 2009-01-13 Richard Earnshaw <rearnsha@arm.com>
28591
28592 * config/arm/arm.c (struct processors): Pass for speed down into
28593 cost helper functions.
28594 (const_ok_for_op): Handle COMPARE and inequality nodes.
28595 (arm_rtx_costs_1): Rewrite.
28596 (arm_size_rtx_costs): Update prototype.
28597 (arm_rtx_costs): Pass speed down to helper functions.
28598 (arm_slowmul_rtx_costs): Rework cost calculations.
28599 (arm_fastmul_rtx_costs, arm_xscale_rtx_costs): Likewise.
28600 (arm_9e_rtx_costs): Likewise.
28601
28602 2009-01-13 Uros Bizjak <ubizjak@gmail.com>
28603
28604 * config/alpha/alpha.c (alpha_legitimate_address_p): Explicit
28605 relocations of local symbols wider than UNITS_PER_WORD are not valid.
28606 (alpha_legitimize_address): Do not split local symbols wider than
28607 UNITS_PER_WORD into HIGH/LO_SUM parts.
28608
28609 2009-01-13 Danny Smith <dannysmith@users.sourceforge.net>
28610
28611 PR bootstrap/38580
28612 * gcc.c (process_command): Replace call to execvp with calls
28613 to pex_one and exit.
28614
28615 2009-01-03 Anatoly Sokolov <aesok@post.ru>
28616
28617 PR target/29141
28618 * config/avr/t-avr (LIB1ASMFUNCS): Add _tablejump_elpm.
28619 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Add
28620 variant for devices with 3-byte PC.
28621 (__tablejump_elpm__): New.
28622
28623 2009-01-12 Jakub Jelinek <jakub@redhat.com>
28624
28625 PR c/32041
28626 * c-parser.c (c_parser_postfix_expression): Allow `->' in
28627 offsetof member-designator, handle it as `[0].'.
28628
28629 2009-01-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
28630
28631 * pa.c (pa_asm_output_mi_thunk): Use pc-relative branch to thunk
28632 function when not using named sections on targets with named sections
28633 if branch distance is less than 262132.
28634
28635 2009-01-12 Richard Earnshaw <rearnsha@arm.com>
28636
28637 * combine.c (combine_instructions): Recompute
28638 optimize_this_for_speed_p for each BB in the main combine loop.
28639
28640 2009-01-12 Tomas Bily <tbily@suse.cz>
28641
28642 PR middlend/38385
28643 * tree-loop-distribution.c (prop_phis): New function.
28644 (generate_builtin): Call prop_phis.
28645
28646 2009-01-12 Jakub Jelinek <jakub@redhat.com>
28647
28648 PR tree-optimization/38807
28649 * tree-ssa-reassoc.c (remove_visited_stmt_chain): Don't look at
28650 gimple_visited_p unless stmt is GIMPLE_ASSIGN.
28651
28652 2009-01-11 Adam Nemet <anemet@caviumnetworks.com>
28653
28654 * expmed.c (store_bit_field_1): Properly truncate the paradoxical
28655 subreg of op0 to the original op0.
28656
28657 2009-01-11 Laurent GUERBY <laurent@guerby.net>
28658
28659 * doc/sourcebuild.texi (Source Tree): Move up intl and fixinc.
28660
28661 2009-01-11 Markus Schoepflin <markus.schoepflin@comsoft.de>
28662
28663 PR debug/7055
28664 * mips-tfile.c (parse_def): Fix parsing of def strings
28665 starting with digits.
28666
28667 2009-01-10 Jakub Jelinek <jakub@redhat.com>
28668
28669 PR target/38695
28670 * config/arm/arm.c (arm_is_long_call_p): Don't call
28671 arm_function_in_section_p if decl isn't a FUNCTION_DECL.
28672
28673 2009-01-09 Steven Bosscher <steven@gcc.gnu.org>
28674
28675 * regrename.c (regrename_optimize): Fix dumping.
28676 (find_oldest_value_reg): Preserve REG_POINTER.
28677 (copy_hardreg_forward_1): Likewise.
28678
28679 2009-01-09 Diego Novillo <dnovillo@google.com>
28680
28681 * gimple.h (struct gimple_statement_base) <uid>: Document
28682 the restrictions on its use.
28683 (gimple_uid): Tidy.
28684 (gimple_set_uid): Tidy.
28685
28686 2009-01-09 Jakub Jelinek <jakub@redhat.com>
28687
28688 * config/i386/i386.c (ix86_expand_movmem, ix86_expand_setmem): Add
28689 zero guard even if align_bytes != 0 and count is smaller than
28690 size_needed.
28691
28692 2009-01-09 Vladimir Makarov <vmakarov@redhat.com>
28693
28694 PR rtl-optimization/38495
28695 * ira-emit.c (print_move_list, ira_debug_move_list): New functions.
28696 (add_range_and_copies_from_move_list): Print all added ranges.
28697 Add ranges to memory optimized destination.
28698
28699 2009-01-09 Jakub Jelinek <jakub@redhat.com>
28700
28701 PR target/38686
28702 PR target/38708
28703 * config/i386/i386.c (override_options): Reject
28704 -mstringop-strategy=rep_8byte with -m32.
28705 (ix86_expand_movmem): For size_needed == 1 set epilogue_size_needed
28706 to 1. Do count comparison against epilogue_size_needed at compile
28707 time even when count_exp was constant forced into register. For
28708 size_needed don't jump to epilogue, instead just avoid aligning
28709 and invoke the body algorithm. If need_zero_guard, add zero guard
28710 even if count is non-zero, but smaller than size_needed + number of
28711 bytes that could be stored for alignment.
28712 (ix86_expand_setmem): For size_needed == 1 set epilogue_size_needed
28713 to 1. If need_zero_guard, add zero guard even if count is non-zero,
28714 but smaller than size_needed + number of bytes that could be stored
28715 for alignment. Compare size_needed with epilogue_size_needed instead
28716 of desired_align - align, don't adjust size_needed, pass
28717 epilogue_size_needed to the epilogue expanders.
28718
28719 PR c/35742
28720 * c-pretty-print.c (pp_c_expression): Handle GOTO_EXPR like BIND_EXPR.
28721
28722 2009-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
28723
28724 * pa.c (last_address): Change to unsigned.
28725 (update_total_code_bytes): Change argument to unsigned. Don't
28726 check if insn addresses are set.
28727 (pa_output_function_epilogue): Set last_address to UINT_MAX if insn
28728 addresses are not set.
28729 (pa_asm_output_mi_thunk): Handle wrap when updating last_address.
28730
28731 2009-01-09 Nick Clifton <nickc@redhat.com>
28732
28733 * config/sh/symbian.c: Replace uses of DECL_INLINE with
28734 DECL_DECLARED_INLINE_P.
28735
28736 2009-01-09 Jakub Jelinek <jakub@redhat.com>
28737
28738 PR middle-end/38347
28739 * dojump.c (do_jump_by_parts_zero_rtx): Use mode instead of
28740 GET_MODE (op0) in operand_subword_force calls.
28741
28742 PR middle-end/38771
28743 * fold-const.c (fold_unary): For COMPOUND_EXPR and COND_EXPR,
28744 fold_convert arg0 operands to TREE_TYPE (op0) first.
28745
28746 2009-01-08 Vladimir Makarov <vmakarov@redhat.com>
28747
28748 * params.def (ira-max-conflict-table-size): Decrease default value
28749 to 1000.
28750
28751 2009-01-08 Jakub Jelinek <jakub@redhat.com>
28752
28753 PR tree-optimization/37031
28754 * lambda-code.c (lambda_collect_parameters): Call pointer_set_destroy
28755 on parameter_set.
28756 (build_access_matrix): Reserve correct size for AM_MATRIX vector,
28757 allocate it using gc instead of heap, use VEC_quick_push instead of
28758 VEC_safe_push.
28759 * graphite.c (build_access_matrix): Allocate AM_MATRIX vector using gc
28760 instead of heap, use VEC_quick_push instead of VEC_safe_push.
28761 * tree-data-ref.h (struct access_matrix): Change matrix to gc
28762 allocated vector from heap allocated.
28763 * lambda.h: Add DEF_VEC_ALLOC_P for gc allocated lambda_vector.
28764 * tree-loop-linear.c (linear_transform_loops): Allocate nest
28765 vector only after perfect_loop_nest_depth call.
28766
28767 2009-01-08 Sebastian Pop <sebastian.pop@amd.com>
28768 Jan Sjodin <jan.sjodin@amd.com>
28769
28770 PR tree-optimization/38559
28771 * graphite.c (debug_value, copy_constraint,
28772 swap_constraint_variables, scale_constraint_variable, ): New.
28773 (get_lower_bound, get_upper_bound): Removed.
28774 (graphite_trans_bb_strip_mine): Clean up this code that works
28775 only for constant number of iterations. Fully copy upper and
28776 lower bound constraints, not only the constant part of them.
28777 * graphite.h (debug_value): Declared.
28778
28779 2009-01-08 Ira Rosen <irar@il.ibm.com>
28780
28781 PR tree-optimization/37194
28782 * tree-vect-transform.c (vect_estimate_min_profitable_iters):
28783 Don't add the cost of cost model guard in prologue to scalar
28784 outside cost in case of known number of iterations.
28785
28786 2009-01-07 Nathan Froyd <froydnj@codesourcery.com>
28787 Alan Modra <amodra@bigpond.net.au>
28788
28789 * config/rs6000/rs6000.c (rs6000_legitimize_address): Check for
28790 non-word-aligned REG+CONST addressing.
28791
28792 2009-01-07 Uros Bizjak <ubizjak@gmail.com>
28793
28794 PR target/38706
28795 * config/alpha/alpha.c (alpha_end_function): For TARGET_ABI_OSF, call
28796 free_after_compilation when outputting a thunk.
28797 (alpha_output_mi_thunk_osf): Assert that we are processing a thunk.
28798 Do not call free_after_compilation here.
28799
28800 2009-01-07 Uros Bizjak <ubizjak@gmail.com>
28801
28802 * config/i386/i386.c (ix86_target_string): Use ARRAY_SIZE.
28803 (ix86_valid_target_attribute_inner_p): Ditto.
28804
28805 2009-01-07 Jan Sjodin <jan.sjodin@amd.com>
28806
28807 PR tree-optimization/38492
28808 PR tree-optimization/38498
28809 * tree-check.c (operator_is_linear, scev_is_linear_expression): New.
28810 * tree-chrec.h (scev_is_linear_expression): Declared.
28811 * graphite.c (graphite_cannot_represent_loop_niter): New.
28812 (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter.
28813 (graphite_loop_normal_form): Use gcc_assert.
28814 (scan_tree_for_params): Use CASE_CONVERT.
28815 (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New.
28816 (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes.
28817 Use gcc_assert. Discard scops that contain unhandled cases.
28818 (build_scop_conditions): Return a boolean status for unhandled cases.
28819 (strip_mine_profitable_p): Print the loop number, not its depth.
28820 (is_interchange_valid): Pass the depth of the loop nest, don't
28821 recompute it wrongly.
28822 (graphite_trans_bb_block): Same.
28823 (graphite_trans_bb_block): Print tentative of loop blocking.
28824 (graphite_trans_scop_block): Do not print that the loop has been
28825 blocked.
28826 (graphite_transform_loops): Do not handle scops that contain condition
28827 scalar phi nodes.
28828
28829 2009-01-07 H.J. Lu <hongjiu.lu@intel.com>
28830
28831 AVX Programming Reference (December, 2008)
28832 * config/i386/avxintrin.h (_mm256_stream_si256): New.
28833 (_mm256_stream_pd): Likewise.
28834 (_mm256_stream_ps): Likewise.
28835
28836 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVNTDQ256,
28837 IX86_BUILTIN_MOVNTPD256 and IX86_BUILTIN_MOVNTPS256.
28838 (ix86_special_builtin_type): Add VOID_FTYPE_PV4DI_V4DI.
28839 (bdesc_special_args): Add __builtin_ia32_movntdq256,
28840 __builtin_ia32_movntpd256 and __builtin_ia32_movntps256.
28841 (ix86_init_mmx_sse_builtins): Handle VOID_FTYPE_PV4DI_V4DI.
28842 (ix86_expand_special_args_builtin): Likewise.
28843
28844 * config/i386/sse.md (AVXMODEDI): New.
28845 (avx_movnt<mode>): Likewise.
28846 (avx_movnt<mode>): Likewise.
28847 (<sse>_movnt<mode>): Remove AVX support.
28848 (sse2_movntv2di): Likewise.
28849
28850 2009-01-07 Richard Guenther <rguenther@suse.de>
28851
28852 PR middle-end/38751
28853 * fold-const.c (extract_muldiv): Remove obsolete comment.
28854 (fold_plusminus_mult_expr): Undo MINUS_EXPR
28855 to PLUS_EXPR canonicalization for the canonicalization.
28856
28857 2009-01-07 Gerald Pfeifer <gerald@pfeifer.com>
28858
28859 * doc/install.texi (alpha*-dec-osf*): Remove note on 32-bit
28860 hosted cross-compilers generating less efficient code.
28861
28862 2009-01-06 Richard Sandiford <rdsandiford@googlemail.com>
28863
28864 * function.h (rtl_data): Add a dbr_scheduled_p field.
28865 * reorg.c (dbr_schedule): Set it.
28866 (gate_handle_delay_slots): Check it.
28867 * config/mips/mips.c (mips_base_delayed_branch): Delete.
28868 (mips_reorg): Check flag_delayed_branch instead of
28869 mips_base_delayed_branch.
28870 (mips_override_options): Don't set mips_base_delayed_branch
28871 or flag_delayed_branch.
28872
28873 2009-01-06 Richard Sandiford <rdsandiford@googlemail.com>
28874
28875 PR rtl-optimization/38426.
28876 * ira.c (ira): Set current_function_is_leaf earlier.
28877
28878 2009-01-06 Jakub Jelinek <jakub@redhat.com>
28879
28880 PR rtl-optimization/38722
28881 * combine.c (try_combine): Don't modify PATTERN (i3) and notes
28882 too early, only set a flag and modify after last possible
28883 undo_all point.
28884
28885 2009-01-06 Janis Johnson <janis187@us.ibm.com>
28886
28887 PR c/34252
28888 * ginclude/float.h: Rename DECnn_DEN to DECnn_SUBNORMAL_MIN.
28889 * real.c (decimal_single_format): Correct values of emin and emax.
28890 (decimal_double_format): Ditto.
28891 (decimal_quad_format): Ditto.
28892 * c-cppbuiltin.c (builtin_define_decimal_float_constants): Adjust
28893 computation of DECnn_MIN and DECnn_MAX for corrected values of
28894 emin and emax. Define __DECnn_SUBNORMAL_MIN__ instead of
28895 __DECnn_MIN__, and adjust its computation for the corrected value
28896 of emin.
28897
28898 2009-01-06 Jan Hubicka <jh@suse.cz>
28899
28900 PR target/38744
28901 * config/i386/i386.c (ix86_expand_call): Use ARRAY_SIZE.
28902
28903 2009-01-06 Gerald Pfeifer <gerald@pfeifer.com>
28904
28905 * doc/contrib.texi (Contributors): Slightly adjust the end note.
28906 Add Robert Clark to the list of testers.
28907
28908 2009-01-06 Jan Hubicka <jh@suse.cz>
28909 Kai Tietz <kai.tietz@onevision.com>
28910
28911 * config/i386/i386.md (*msabi_syvabi): Add SSE regs clobbers.
28912 * config/i386/i386.c (ix86_expand_call): Add clobbers.
28913
28914 2009-01-06 Jan Hubicka <jh@suse.cz>
28915 Kai Tietz <kai.tietz@onevision.com>
28916
28917 * config/i386/i386.h (CONDITIONAL_CALL_USAGE): SSE regs are not used
28918 for w64 ABI.
28919 * config/i386/i386.c (struct ix86_frame): Add padding0 and nsseregs.
28920 (ix86_nsaved_regs): Count only general purpose regs.
28921 (ix86_nsaved_sseregs): New.
28922 (ix86_compute_frame_layout): Update nsseregs; set preferred alignment
28923 to 16 for w64; compute padding and size of sse reg save area.
28924 (ix86_emit_save_regs, ix86_emit_save_regs_using_mov): Save only
28925 general purpose regs.
28926 (ix86_emit_save_sse_regs_using_mov): New.
28927 (ix86_expand_prologue): Save SSE regs if needed.
28928 (ix86_emit_restore_regs_using_mov): Use only general purpose regs.
28929 (ix86_emit_restore_sse_regs_using_mov): New.
28930 (ix86_expand_epilogue): Save SSE regs if needed.
28931
28932 2009-01-06 Jan Hubicka <jh@suse.cz>
28933 Kai Tietz <kai.tietz@onevision.com>
28934
28935 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Enable for MSABI
28936 * config/i386/i386.c (init_cumulative_args): Disallow calls of MSABI
28937 functions when accumulate outgoing args is off.
28938
28939 2009-01-06 H.J. Lu <hongjiu.lu@intel.com>
28940
28941 PR bootstrap/38742
28942 * ira-color.c (ira_reuse_stack_slot): Check ENABLE_IRA_CHECKING
28943 before using pseudos_have_intersected_live_ranges_p.
28944
28945 * ira-int.h (ira_assert): Always define.
28946
28947 2009-01-06 H.J. Lu <hongjiu.lu@intel.com>
28948
28949 AVX Programming Reference (December, 2008)
28950 * config/i386/avxintrin.h (_mm_permute2_pd): Removed.
28951 (_mm256_permute2_pd): Likewise.
28952 (_mm_permute2_ps): Likewise.
28953 (_mm256_permute2_ps): Likewise.
28954 * config/i386/i386.md (UNSPEC_VPERMIL2): Likewise.
28955 * config/i386/sse.md (avx_vpermil2<mode>3): Likewise.
28956
28957 * config/i386/i386.c (ix86_builtins): Remove
28958 IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
28959 IX86_BUILTIN_VPERMIL2PD256 and IX86_BUILTIN_VPERMIL2PS256.
28960 (ix86_builtin_type): Remove V8SF_FTYPE_V8SF_V8SF_V8SI_INT,
28961 V4DF_FTYPE_V4DF_V4DF_V4DI_INT, V4SF_FTYPE_V4SF_V4SF_V4SI_INT
28962 and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
28963 (bdesc_args): Remove __builtin_ia32_vpermil2pd,
28964 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256 and
28965 __builtin_ia32_vpermil2ps256.
28966 (ix86_init_mmx_sse_builtins): Updated.
28967 (ix86_expand_args_builtin): Likewise.
28968
28969 2009-01-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
28970
28971 * pa.c (output_call): Relocate non-jump insns in the delay slot of
28972 long absolute calls when generating PA 2.0 code.
28973
28974 2009-01-05 Vladimir Makarov <vmakarov@redhat.com>
28975
28976 PR rtl-optimization/38583
28977 * params.h (IRA_MAX_CONFLICT_TABLE_SIZE): New macro.
28978
28979 * params.def (ira-max-conflict-table-size): New.
28980
28981 * doc/invoke.texi (ira-max-conflict-table-size): Decribe.
28982
28983 * ira.h (ira_conflicts_p): New external definition.
28984
28985 * ira-conflicts.c (build_conflict_bit_table): Do not build too big
28986 table. Report this. Return result of building.
28987 (ira_build_conflicts): Use ira_conflicts_p. Check result of
28988 building conflict table.
28989
28990 * ira-color.c (fast_allocation): Use num instead of ira_allocnos_num.
28991 (ira_color): Use ira_conflicts_p.
28992
28993 * global.c: Include ira.h.
28994 (pseudo_for_reload_consideration_p, build_insn_chain): Use
28995 ira_conflicts_p.
28996
28997 * Makefile.in (global.o): Add ira.h.
28998
28999 * ira-build.c (mark_all_loops_for_removal,
29000 propagate_some_info_from_allocno): New.
29001 (remove_unnecessary_allocnos): Call
29002 propagate_some_info_from_allocno.
29003 (remove_low_level_allocnos): New.
29004 (remove_unnecessary_regions): Add parameter. Call
29005 mark_all_loops_for_removal and remove_low_level_allocnos. Pass
29006 parameter to remove_unnecessary_regions.
29007 (ira_build): Remove all regions but root if the conflict table was
29008 not built. Update conflict hard regs for allocnos crossing calls.
29009
29010 * ira.c (ira_conflicts_p): New global.
29011 (ira): Define and use ira_conflicts_p.
29012
29013 * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
29014 count_spilled_pseudo, find_reg, alter_reg, finish_spills,
29015 emit_input_reload_insns, delete_output_reload): Use ira_conflicts_p.
29016
29017 2009-01-06 Ben Elliston <bje@au.ibm.com>
29018
29019 * gengtype-lex.l (YY_NO_INPUT): Define.
29020
29021 2009-01-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
29022
29023 PR c/34911
29024 * c-common.c (handle_vector_size_attribute): Also reject
29025 BOOLEAN_TYPE types.
29026
29027 2009-01-05 Sebastian Pop <sebastian.pop@amd.com>
29028
29029 PR tree-optimization/38492
29030 * graphite.c (rename_map_elt, debug_rename_elt,
29031 debug_rename_map_1, debug_rename_map, new_rename_map_elt,
29032 rename_map_elt_info, eq_rename_map_elts,
29033 get_new_name_from_old_name, bb_in_sese_p): Moved around.
29034 (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use.
29035 (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb.
29036 (sese_build_livein_liveouts): New.
29037 (new_sese, free_sese): New.
29038 (new_scop): Call new_sese.
29039 (free_scop): Call free_sese.
29040 (rename_variables_from_edge, rename_phis_end_scop): Removed.
29041 (register_old_new_names): Renamed register_old_and_new_names.
29042 (register_scop_liveout_renames, add_loop_exit_phis,
29043 insert_loop_close_phis, struct igp,
29044 default_liveout_before_guard, add_guard_exit_phis,
29045 insert_guard_phis, copy_renames): New.
29046 (translate_clast): Call insert_loop_close_phis and insert_guard_phis.
29047 (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge.
29048 (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts.
29049 (scop_adjust_phis_for_liveouts): New.
29050 (gloog): Call scop_adjust_phis_for_liveouts.
29051
29052 * graphite.h (struct sese): Documented. Added fields liveout,
29053 num_ver and livein.
29054 (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New.
29055 (new_sese, free_sese, sese_build_livein_liveouts): Declared.
29056 (struct scop): Added field liveout_renames.
29057 (SCOP_LIVEOUT_RENAMES): New.
29058
29059 2009-01-05 Harsha Jagasia <harsha.jagasia@amd.com>
29060
29061 PR tree-optimization/38510
29062 * graphite.c (recompute_all_dominators): Call mark_irreducible_loops.
29063 (translate_clast): Call recompute_all_dominators before
29064 graphite_verify.
29065 (gloog): Call recompute_all_dominators before graphite_verify.
29066
29067 2009-01-05 Harsha Jagasia <harsha.jagasia@amd.com>
29068 Jan Sjodin <jan.sjodin@amd.com>
29069
29070 PR tree-optimization/38500
29071 * graphite.c (create_sese_edges): Call fix_loop_structure after
29072 splitting blocks.
29073
29074 2009-01-05 Joel Sherrill <joel.sherrill@oarcorp.com>
29075
29076 * config.gcc: Add m32r*-*-rtems*.
29077 * config/m32r/rtems.h: New file.
29078
29079 2009-01-05 Ben Elliston <bje@au.ibm.com>
29080
29081 * Makefile.in (.po.gmo): Use mkinstalldirs, not test -d || mkdir.
29082 (.po.pox): Likewise.
29083 (po/gcc.pot): Likewise.
29084
29085 2009-01-04 David S. Miller <davem@davemloft.net>
29086
29087 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED_RTX): Delete.
29088 (STARTING_FRAME_OFFSET): Always set to zero.
29089
29090 2009-01-04 Richard Sandiford <rdsandiford@googlemail.com>
29091
29092 * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Add commentary.
29093 * tree-cfg.c (verify_gimple_assign_binary): Allow shifts of
29094 fixed-point types, and vectors of the same.
29095
29096 2009-01-04 Richard Sandiford <rdsandiford@googlemail.com>
29097
29098 * config/mips/sync.md (*mb_barrier): Rename to...
29099 (*memory_barrier): ...this.
29100
29101 2009-01-04 Jonathan Wakely <jwakely.gcc@gmail.com>
29102
29103 * doc/extend.texi (Function Attributes): Move @cindex after @item
29104 for 'artificial' and 'flatten'. Fix grammar for 'externally_visible'
29105 and put in alphabetical order. Fix 'target' name and put in order.
29106 * doc/invoke.texi (-Wstrict-null-sentinel, -fipa-matrix-reorg): Fix
29107 typos.
29108
29109 2009-01-04 Uros Bizjak <ubizjak@gmail.com>
29110
29111 * config/s390/s390.md (UNSPEC_MB): Rename from UNSPECV_MB.
29112 (memory_barrier): Expand as unspec instead of unspec_volatile.
29113 Remove mem:BLK from insn operands. Use Pmode scratch register.
29114 (*memory_barrier): Define as unspec instead of unspec_volatile.
29115 Use (match_dup 0) as input operand.
29116
29117 * config/sparc/sparc.md (UNSPEC_MEMBAR): Rename from UNSPECV_MEMBAR.
29118 * config/sparc/sync.md (memory_barrier): Expand as unspec instead of
29119 unspec_volatile. Remove mem:BLK from insn operands. Use Pmode
29120 scratch register. Remove operand 1.
29121 (*stbar): Define as unspec instead of unspec_volatile.
29122 Use (match_dup 0) as input operand, remove (const_int 8).
29123 (*membar): Define as unspec instead of unspec_volatile.
29124 Use (match_dup 0) as input operand, remove input operand 2.
29125
29126 * config/xtensa/xtensa.md (UNSPEC_MEMW): Rename from UNSPECV_MEMW.
29127 (memory_barrier): Expand as unspec instead of unspec_volatile.
29128 Remove mem:BLK from insn operands. Use Pmode scratch register.
29129 (*memory_barrier): Define as unspec instead of unspec_volatile.
29130 Use (match_dup 0) as input operand.
29131
29132 * config/ia64/sync.md (memory_barrier): Redefine as expander pattern.
29133 Remove mem:BLK from insn operands. Use Pmode scratch register.
29134 Set volatile flag on operand 0.
29135 (*memory_barrier): New insn pattern.
29136
29137 * config/rs6000/sync.md (memory_barrier): Remove mem:BLK from
29138 insn operands.
29139 (*memory_barrier): Use (match_dup 0) as input operand.
29140
29141 * config/mips/sync.md (memory_barrier): Redefine as expander pattern.
29142 Remove mem:BLK from insn operands. Use Pmode scratch register.
29143 Set volatile flag on operand 0.
29144 (*mb_internal): New insn pattern.
29145
29146 * config/alpha/sync.md (*memory_barrier): Rename from *mb_internal.
29147
29148 2009-01-04 Steven Bosscher <steven@gcc.gnu.org>
29149
29150 PR middle-end/38586
29151 * function.c (struct temp_slot): Move to the section of the file
29152 that deals with temp slots. Remove field 'address'.
29153 (temp_slot_address_table): New hash table of address -> temp slot.
29154 (struct temp_slot_address_entry): New struct, items for the table.
29155 (temp_slot_address_compute_hash, temp_slot_address_hash,
29156 temp_slot_address_eq, insert_temp_slot_address): Support functions
29157 for the new table.
29158 (find_temp_slot_from_address): Rewrite to use the new hash table.
29159 (remove_unused_temp_slot_addresses): Remove addresses of temp
29160 slots that have been made available.
29161 (remove_unused_temp_slot_addresses_1): Call-back for htab_traverse,
29162 worker function for remove_unused_temp_slot_addresses.
29163 (assign_stack_temp_for_type): Don't clear the temp slot address list.
29164 Add the temp slot address to the address -> temp slot map.
29165 (update_temp_slot_address): Update via insert_temp_slot_address.
29166 (free_temp_slots): Call remove_unused_temp_slot_addresses.
29167 (pop_temp_slots): Likewise.
29168 (init_temp_slots): Allocate the address -> temp slot map, or empty
29169 the map if it is already allocated.
29170 (prepare_function_start): Initialize temp slot processing.
29171
29172 2009-01-04 Steven Bosscher <steven@gcc.gnu.org>
29173
29174 PR middle-end/38584
29175 * cfgexpand.c (estimate_stack_frame_size): Simplify the estimate:
29176 Calculate the size of all stack vars assuming no packing of stack
29177 vars will happen, replacing a quadratic algorithm with a linear one.
29178
29179 2009-01-03 Jakub Jelinek <jakub@redhat.com>
29180
29181 PR target/38707
29182 * expmed.c (store_bit_field_1): Don't modify op0 if movstrict insn
29183 can't be used.
29184
29185 2009-01-03 Diego Novillo <dnovillo@google.com>
29186
29187 * doc/contrib.texi: Update contributions.
29188
29189 2009-01-03 Jakub Jelinek <jakub@redhat.com>
29190
29191 PR c++/38705
29192 * builtins.c (fold_builtin_memory_op): Give up if either operand
29193 is volatile. Set srctype or desttype to non-qualified version
29194 of the other type.
29195
29196 PR c/38700
29197 * builtins.c (fold_builtin_expect): Only check DECL_WEAK for VAR_DECLs
29198 and FUNCTION_DECLs.
29199
29200 2009-01-02 Kenneth Zadeck <zadeck@naturalbridge.com>
29201
29202 PR rtl-optimization/35805
29203 * df-problems.c (df_lr_finalize): Add recursive call to resolve lr
29204 problem if fast dce is able to remove any instructions.
29205 * dce.c (dce_process_block): Fix dump message.
29206
29207 2009-01-02 Mark Mitchell <mark@codesourcery.com>
29208
29209 PR 33649
29210 * tree-ssa-pre.c (compute_antic): Correct loop bounds.
29211
29212 2009-01-02 Jakub Jelinek <jakub@redhat.com>
29213
29214 PR middle-end/38690
29215 * tree-flow.h (op_code_prio, op_prio): New prototypes.
29216 * tree-pretty-print.c (op_code_prio): New function.
29217 (op_prio): No longer static. Use op_code_prio.
29218 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs):
29219 Use op_prio and op_code_prio to determine if () should be
29220 printed around operand(s) or not.
29221
29222 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
29223 dump_gimple_call, dump_gimple_switch, dump_gimple_cond,
29224 dump_gimple_label, dump_gimple_try, dump_symbols, dump_gimple_phi,
29225 dump_gimple_mem_ops, dump_bb_header, dump_bb_end, pp_cfg_jump): Use
29226 pp_character instead of pp_string for single letter printing.
29227
29228 2009-01-02 Richard Sandiford <rdsandiford@googlemail.com>
29229
29230 * doc/extend.texi: Fix '#pragma GCC option' typo.
29231
29232 2009-01-02 Richard Guenther <rguenther@suse.de>
29233
29234 * doc/install.texi (--enable-checking): Mention different
29235 default for stage1.
29236 (--enable-stage1-checking): Document.
29237
29238 2009-01-01 Andrew Pinski <pinskia@gmail.com>
29239
29240 PR middle-end/30142
29241 * tree-cfg.c (verify_expr): Add INDIRECT_REF case. Change MODIFY_EXPR
29242 case to be an error.
29243
29244 2009-01-02 Ben Elliston <bje@au.ibm.com>
29245
29246 * config/fp-bit.h (pack_d): Constify argument.
29247 * config/fp-bit.c (makenan): Constify return type. Remove casts.
29248 (isnan): Constify argument.
29249 (isinf): Likewise.
29250 (iszero): Likewise.
29251 (pack_d): Likewise.
29252 (_fpadd_parts): Constify return type.
29253 (_fpmul_parts): Likewise.
29254 (_fpdiv_parts): Likewise.
29255
29256 2009-01-01 Jakub Jelinek <jakub@redhat.com>
29257
29258 PR c/36489
29259 * c-typeck.c (add_pending_init): Add IMPLICIT argument. Only
29260 warn about overwriting initializer with side-effects or
29261 -Woverride-init if !IMPLICIT.
29262 (output_init_element): Likewise. Pass IMPLICIT down to
29263 add_pending_init.
29264 (process_init_element): Add IMPLICIT argument. Pass it down
29265 to output_init_element.
29266 (push_init_element, pop_init_level, set_designator): Adjust
29267 process_init_element callers.
29268 (set_nonincremental_init, set_nonincremental_init_from_string):
29269 Adjust add_pending_init callers.
29270 (output_pending_init_elements): Adjust output_init_element callers.
29271 * c-tree.h (process_init_element): Adjust prototype.
29272 * c-parser.c (c_parser_initelt, c_parser_initval): Adjust
29273 process_init_element callers.
29274
29275 \f
29276 Copyright (C) 2009 Free Software Foundation, Inc.
29277
29278 Copying and distribution of this file, with or without modification,
29279 are permitted in any medium without royalty provided the copyright
29280 notice and this notice are preserved.