1 2009-10-19 Joseph Myers <joseph@codesourcery.com>
3 * config/arm/arm.c (output_move_neon): Use DImode in call to
6 2009-10-19 Matthias Klose <doko@ubuntu.com>
9 * config.gcc (arm*-*-linux-*eabi): Use config/t-slibgcc-libgcc.
11 2009-10-19 Jakub Jelinek <jakub@redhat.com>
13 * cfgexpand.c (expand_debug_expr): Fail if bitpos < 0 for non-MEM
16 2009-10-17 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
19 * optabs.c (expand_binop): Make mode of shift count expression mode
20 of shift count not target.
23 2009-10-17 Eric Botcazou <ebotcazou@adacore.com>
25 * tree-nested.c (convert_nonlocal_reference_stmt) <GIMPLE_COND>: New
26 case. Force using values to replace references within the statement.
27 (convert_local_reference_stmt): Likewise.
29 2009-10-17 Eric Botcazou <ebotcazou@adacore.com>
31 * gimple-low.c (lower_stmt) <GIMPLE_CALL>: If the call is noreturn,
32 remove a subsequent GOTO or RETURN statement.
34 2009-10-17 Andy Hutchinson <hutchinsonandy@aim.com>
36 * config/avr.md (*movqi): Add zero as equally preferable constraint
40 2009-10-17 Eric Botcazou <ebotcazou@adacore.com>
42 * print-tree.c (print_node): Fix string for DECL_STRUCT_FUNCTION.
44 2009-10-17 Richard Guenther <rguenther@suse.de>
46 * lto-streamer-in.c (lto_input_location): Try to reuse
49 2009-10-17 Richard Guenther <rguenther@suse.de>
51 * lto-streamer-in.c (input_gimple_stmt): Fixup FIELD_DECL
52 operands in COMPONENT_REFs.
54 2009-10-17 Anatoly Sokolov <aesok@post.ru>
56 * targhooks.c (default_libcall_value): Don't use LIBCALL_VALUE macro
57 if not defined. Change type of second argument to const_rtx.
58 (default_function_value): Call gcc_unreachable if FUNCTION_VALUE
60 * targhooks.h (default_libcall_value): Update prototype.
61 * target.h (struct gcc_target): Change type of second argument of
62 libcall_value to const_rtx.
63 * config/arm/arm.c (arm_libcall_value): Change type of second argument
65 (arm_libcall_uses_aapcs_base): Change type of argument to const_rtx.
66 * doc/tm.texi (TARGET_LIBCALL_VALUE): Revise documentation.
68 2009-10-17 Jakub Jelinek <jakub@redhat.com>
71 * debug.h (struct gcc_debug_hooks): Add assembly_start hook.
72 * cgraphunit.c (cgraph_optimize): Call it.
73 * dwarf2out.c (dwarf2out_init): Move .cfi_sections printing into...
74 (dwarf2out_assembly_start): ... here. New hook.
75 (dwarf2out_debug_hooks): Add dwarf2out_assembly_start.
76 * debug.c (do_nothing_debug_hooks): Do nothing for assembly_start
78 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
79 * sdbout.c (sdb_debug_hooks): Likewise.
80 * vmsdbgout.c (vmsdbg_debug_hooks): Add vmsdbgout_assembly_start.
81 (vmsdbgout_assembly_start): New hook.
83 2009-10-17 Alexandre Oliva <aoliva@redhat.com>
85 * rtl.h (RTL_LOCATION): Fix typo.
87 2009-10-17 Alexandre Oliva <aoliva@redhat.com>
89 * print-rtl.c (print_rtx): Print locators in asm_operands
92 2009-10-17 Alexandre Oliva <aoliva@redhat.com>
95 * sched-deps.c (depl_on_debug_p): New.
96 (attach_dep_link): Reject debug deps before nondebug deps.
97 (add_to_deps_list): Insert debug deps after nondebug deps.
98 (sd_lists_empty_p): Stop at first nonempty list. Disregard debug
100 (sd_add_dep): Do not reject debug deps.
101 (add_insn_mem_dependence): Don't count debug deps.
102 (remove_from_deps): Likewise.
103 (sched_analyze_2): Set up mem deps on debug insns.
104 (sched_analyze_insn): Record reg uses for deps on debug insns.
105 * haifa-sched.c (schedule_insn): Reset deferred debug insn. Don't
106 try_ready nondebug insn after debug insn.
107 * ddg.c (create_ddg_dep_from_intra_loop_link,
108 create_ddg_dep_no_link): Don't reject debug deps.
110 2009-10-16 Richard Guenther <rguenther@suse.de>
112 * lto-symtab.c (merge_incomplete_and_complete_type): Remove.
113 (maybe_merge_incomplete_and_complete_type): Likewise.
114 (lto_symtab_merge): Do not call them. Do not warn for
115 complete vs. incomplete compatible types.
116 (lto_symtab_merge_decls_2): Simplify.
117 * gimple.c (gimple_force_type_merge): Remove.
118 (gimple_types_compatible_p): Make it static.
119 * gimple.h (gimple_force_type_merge): Remove.
120 (gimple_types_compatible_p): Likewise.
122 2009-10-16 Jakub Jelinek <jakub@redhat.com>
124 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Cast
125 DWARF2_ADDR_SIZE to int to avoid signed vs. unsigned warnings.
127 2009-10-16 Richard Guenther <rguenther@suse.de>
129 PR tree-optimization/41728
130 * tree-ssa-dom.c (optimize_stmt): Mark the stmt modified
131 if fold_stmt did anything.
133 2009-10-16 Richard Guenther <rguenther@suse.de>
136 * lto-streamer-in.c (lto_input_tree_ref): Revert last change.
137 (maybe_fixup_handled_component): New function.
138 (input_gimple_stmt): Fixup mismatched decl replacements.
140 2009-10-16 Richard Guenther <rguenther@suse.de>
143 * lto-streamer-out.c (lto_output_tree_ref): Handle DEBUG_EXPR_DECL
144 the same as VAR_DECL.
146 2009-10-16 Richard Guenther <rguenther@suse.de>
148 * gimple.c (iterative_hash_gimple_type): For integer types
149 also hash their minimum and maximum values and the string flag.
150 For array types hash their domain and the string flag.
152 2009-10-16 Richard Guenther <rguenther@suse.de>
154 * gimple.c (gimple_types_compatible_p): Restrict completing
155 types to record or unions. Simplify completion.
156 Do not merge records or unions with different
157 TYPE_STRUCTURAL_EQUALITY_P tag.
158 (iterative_hash_gimple_type): Restrict non-recursing into
159 pointer targets for records and unions.
161 2009-10-15 Jakub Jelinek <jakub@redhat.com>
164 * cfgexpand.c (expand_debug_expr): Handle CONJ_EXPR.
165 * dwarf2out.c (mem_loc_descriptor): Don't handle
166 POST_INT/POST_DEC/POST_MODIFY like SUBREG. For SUBREG
167 punt if it is not lowpart subreg or if inner mode isn't
170 2009-10-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
172 * config/s390/s390.c (s390_z10_optimize_cmp): Skip notes when
173 investigating previous or next insns.
175 2009-10-16 Eric Botcazou <ebotcazou@adacore.com>
177 * tree-sra.c (build_ref_for_offset_1): Update comment.
179 2009-10-16 Wolfgang Gellerich <gellerich@de.ibm.com>
181 * config/s390/s390.md (atype): Added missing values.
183 2009-10-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
186 * pa.md (casesi): Use sign extended index in call to
188 (casesi64p): Update pattern to reflect above.
190 2009-10-15 Steve Ellcey <sje@cup.hp.com>
192 PR rtl-optimization/41697
193 * sel-sched-ir.h (_eligible_successor_edge_p): Check successor count.
195 2009-10-15 Michael Meissner <meissner@linux.vnet.ibm.com>
198 * config/rs6000/predicates.md: Update copyright year.
199 * config/rs6000/altivec.md: Ditto.
201 * config/rs6000/t-rs6000 (TM_H): Add rs6000-builtin.def.
202 (MD_INCLUDES): Add a2.md.
204 * config/rs6000/rs6000.c (rs6000_builtin_decls): Change
205 RS6000_BUILTIN_COUNT to MAX_RS6000_BUILTINS.
206 (builtin_classify): New static vector to classify various builtins
207 to get the tree attributes correct.
208 (def_builtin): Set the attributes of builtins based on what the
209 builtin does (i.e. memory operation, floating point, saturation
210 need special attributes, others are pure functions).
212 * config/rs6000/rs6000.h (enum rs6000_btc): New enum to classify
214 (enum rs6000_builtins): Include rs6000-builtin.def to define the
215 builtins. Change the end marker to MAX_RS6000_BUILTINS from
216 RS6000_BUILTIN_COUNT.
217 (rs6000_builtin_decls): Change RS6000_BUILTIN_COUNT to
220 * config/rs6000/rs6000-builtin.def: New file that combines the
221 builtin enumeration name and attributes.
223 2009-10-15 H.J. Lu <hongjiu.lu@intel.com>
225 * config/i386/linux.h (ASM_SPEC): Add --32.
227 2009-10-15 Jakub Jelinek <jakub@redhat.com>
229 * dwarf2out.c (dwarf_tag_name): Handle DW_TAG_rvalue_reference_type
230 and DW_TAG_template_alias.
231 (dwarf_attr_name): Handle DW_AT_main_subprogram,
232 DW_AT_data_bit_offset, DW_AT_const_expr, DW_AT_enum_class,
233 DW_AT_linkage_name, DW_AT_GNU_guarded_by, DW_AT_GNU_pt_guarded_by,
234 DW_AT_GNU_guarded, DW_AT_GNU_pt_guarded, DW_AT_GNU_locks_excluded,
235 DW_AT_GNU_exclusive_locks_required, DW_AT_GNU_shared_locks_required
236 and DW_AT_GNU_odr_signature.
237 (dwarf_form_name): Handle DW_FORM_sec_offset, DW_FORM_exprloc,
238 DW_FORM_flag_present and DW_FORM_ref_sig8.
239 (output_signature): Only print name on the first byte.
240 (output_die): Likewise for dw_val_class_data8.
242 2009-10-15 Alexander Monakov <amonakov@ispras.ru>
244 * doc/invoke.texi: Clarify that most optimizations are not enabled
247 2009-10-15 Richard Guenther <rguenther@suse.de>
250 * gimple.c (compare_type_names_p): Handle anonymous names
251 differently based on new mode argument.
252 (gimple_types_compatible_p): For structs also compare the tags.
253 (iterative_hash_type_name): Rename to ...
254 (iterative_hash_name): ... this. Hash all names.
255 (iterative_hash_gimple_type): Fix hashing the struct tag of
256 pointer targets. Hash field decl names.
258 2009-10-15 Richard Guenther <rguenther@suse.de>
261 * gimple.c (gimple_get_alias_set): Avoid recursing on
262 invalid type topology.
264 2009-10-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
266 * config/spu/spu.c (get_branch_target): Use extract_asm_operands.
268 2009-10-15 Richard Guenther <rguenther@suse.de>
270 * tree.c (free_lang_data_in_decl): Free DECL_FCONTEXT.
272 2009-10-15 Jakub Jelinek <jakub@redhat.com>
274 * config/rs6000/option-defaults.h (OPTION_DEFAULT_SPECS): Don't
275 add --with-tune{,-32,-64} configured default for -mtune if explicit
278 2009-10-14 Daniel Gutson <dgutson@codesourcery.com>
280 * config/arm/neon.md (neon_vshll_n<mode>): Checking Bounds
283 2009-10-14 DJ Delorie <dj@redhat.com>
285 * config/h8300/h8300.c (F): New.
287 (h8300_emit_stack_adjustment): Call them.
289 (h8300_push_pop): Likewise.
290 (h8300_expand_prologue): Likewise.
291 * config/h8300/h8300.h (DWARF2_DEBUGGING_INFO): Define.
292 (MUST_USE_SJLJ_EXCEPTIONS): Define.
293 (INCOMING_RETURN_ADDR_RTX): Define.
294 (INCOMING_FRAME_SP_OFFSET): Define.
295 (DWARF_CIE_DATA_ALIGNMENT): Define.
297 2009-10-14 Jakub Jelinek <jakub@redhat.com>
299 * stor-layout.c (place_field): Don't emit -Wpadded warnings for
300 fields in builtin structs.
301 (finalize_record_size): Likewise.
303 2009-10-14 Richard Guenther <rguenther@suse.de>
305 * gimple.c (gtc_ob): New global.
306 (struct type_pair_d): Replace pointers with type UIDs.
307 (type_pair_hash): Adjust.
308 (type_pair_eq): Likewise.
309 (lookup_type_pair): Likewise. Allocate from an obstack.
310 (gimple_force_type_merge): Adjust.
311 (gimple_types_compatible_p): Likewise.
312 (free_gimple_type_tables): Free the obstack.
314 2009-10-14 Jakub Jelinek <jakub@redhat.com>
316 * tree-parloops.c (separate_decls_in_region_debug_bind): Drop debug
317 stmts setting DEBUG_EXPR_DECLs.
319 * cfgexpand.c (expand_debug_expr): Ignore zero-length bitfields.
320 Don't crash if mode1 is VOIDmode.
322 2009-09-26 Vladimir Makarov <vmakarov@redhat.com>
324 * params.def (PARAM_IRA_LOOP_RESERVED_REGS): New.
325 * params.h (IRA_LOOP_RESERVED_REGS): New
326 * tree-pass.h (pass_subregs_of_mode_init,
327 pass_subregs_of_mode_finish): Remove.
328 * passes.c (pass_subregs_of_mode_init,
329 pass_subregs_of_mode_finish): Remove.
330 (pass_reginfo_init): Move before loop optimizations.
331 * config/i386/i386.h (STACK_REG_COVER_CLASS): Define.
332 * common.opt (fira-loop-pressure): New.
333 * toplev.h (flag_ira_loop_pressure): New.
334 * rtl.h (init_subregs_of_mode, finish_subregs_of_mode): New
336 * reginfo.c (init_subregs_of_mode, finish_subregs_of_mode):
337 Make external and void type functions.
338 (gate_subregs_of_mode_init, pass_subregs_of_mode_init,
339 pass_subregs_of_mode_finish): Remove.
340 * ira-costs.c (init_costs): Call init_subregs_of_mode.
341 * regmove.c: Include ira.h.
342 (regmove_optimize): Call ira_set_pseudo_classes after IRA based
343 register pressure calculation in loops.
344 * loop-invariant.c: Include REGS_H and ira.h.
345 (struct loop_data): New members max_reg_pressure, regs_ref, and
347 (struct invariant): New member orig_regno.
348 (curr_loop): New variable.
349 (find_exits): Initialize regs_ref and regs_live.
350 (create_new_invariant): Initialize orig_regno.
351 (get_cover_class_and_nregs): New.
352 (get_inv_cost): Make aregs_needed an array. Use regs_needed as an
353 array. Add code for flag_ira_loop_pressure.
354 (gain_for_invariant): Make new_regs an array. Add code for
355 flag_ira_loop_pressure.
356 (best_gain_for_invariant): Ditto.
357 (set_move_mark): New parameter gain. Use it for debugging output.
358 (find_invariants_to_move): Make regs_needed and new_regs an array.
359 Add code for flag_ira_loop_pressure.
360 (move_invariant_reg): Set up orig_regno.
361 (move_invariants): Set up reg classes for pseudos for
362 flag_ira_loop_pressure.
363 (free_loop_data): Clear regs_ref and regs_live.
364 (curr_regs_live, curr_reg_pressure, regs_set, n_regs_set,
365 get_regno_cover_class, change_pressure, mark_regno_live,
366 mark_regno_death, mark_reg_store, mark_reg_clobber,
367 mark_reg_death, mark_ref_regs, calculate_loop_reg_pressure): New.
368 (move_loop_invariants): Calculate pressure. Initialize curr_loop.
369 * ira.c (ira): Call ira_set_pseudo_classes after IRA based
370 register pressure calculation in loops if new regs were added.
371 Call finish_subregs_of_mode.
372 * opts.c (decode_options): Set up flag_ira_loop_pressure.
373 * Makefile.in (loop-invariant.o): Add ira.h.
375 * doc/invoke.texi (-fira-loop-pressure, ira-loop-reserved-regs):
377 * doc/tm.texi (STACK_REG_COVER_CLASS): Describe.
379 2009-10-14 Richard Guenther <rguenther@suse.de>
381 * lto-symtab.c (lto_symtab_compatible): Fold in ...
382 (lto_symtab_merge): ... here. Rewrite both to take the
383 prevailing and a to-be-merged entry and to queue diagnostics
385 (lto_symtab_resolve_replaceable_p): New predicate for
387 (lto_symtab_resolve_can_prevail_p): Likewise.
388 (lto_symtab_resolve_symbols): Rewrite. Fold in code that
389 handles merging commons by choosing the largest decl. Fold
390 in code that gives ODR errors.
391 (lto_symtab_merge_decls_2): Simplify a lot. Emit queued
393 (lto_symtab_merge_decls_1): Re-structure. Deal with the
394 case of no prevailing decl here. Diagnose mismatches
395 in object types here. Drop all but the prevailing decls.
396 (lto_symtab_prevailing_decl): Return the single prevailing decl.
397 * lto-streamer-in.c (lto_input_tree_ref): Deal with
398 VIEW_CONVERT_EXPRs in decl slots. Unshare the tree in this case.
400 2009-10-14 Richard Guenther <rguenther@suse.de>
403 * lto-streamer-in.c (input_bb): Replace debug stmts with
404 nops instead of dropping them.
406 2009-10-14 Nick Clifton <nickc@redhat.com>
408 * gcc/doc/extended.texi: Replace the dash character with
409 @minus{} in situations where it is being used as a minus
411 * gcc/doc/tm.texi: Likewise.
412 * gcc/doc/md.texi: Likewise.
414 2009-10-14 Jakub Jelinek <jakub@redhat.com>
416 PR preprocessor/41543
417 * input.h (BUILTINS_LOCATION): Change to 1 from 2.
418 Assert BUILTINS_LOCATION < RESERVED_LOCATION_COUNT.
419 * tree.c: Include intl.h.
420 (expand_location): Handle BUILTINS_LOCATION.
421 * Makefile.in (tree.o): Depend on intl.h.
424 * dwarf2out.c (dwarf2out_var_location): Always clear
425 last_postcall_label when changing last_label.
427 2009-10-14 Pascal Obry <obry@adacore.com>
429 * gcc.c (DEFAULT_SWITCH_CURTAILS_COMPILATION): Add -E.
430 (process_command): Handle -E as done with -c and -S. Do not add
431 the target executable suffix to the output file when -E is used.
432 (main): Adjust error message accordingly.
434 2009-10-14 Alexandre Oliva <aoliva@redhat.com>
440 * tree.c (tree_node_structure_for_code): DEBUG_EXPR_DECL uses
442 (tree_code_size): Likewise.
444 2009-10-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
446 * builtins.c (fold_builtin_1): Support complex "arc" functions.
447 * real.h (HAVE_mpc_arc): Define.
449 2009-10-14 Kaz Kojima <kkojima@gcc.gnu.org>
451 * config/sh/sh.c (TARGET_BUILTIN_DECL): Define.
452 (struct builtin_description): Add fndecl field.
453 (bdesc): Remove const qualifier. Update initializer.
454 (sh_media_init_builtins): Remove const qualifier for d. Record
455 the result of add_builtin_function to the fndecl field.
456 (sh_builtin_decl): New.
457 (sh_media_builtin_decl): New.
459 2009-10-14 Hans-Peter Nilsson <hp@axis.com>
462 * config/cris/cris.h (SECONDARY_RELOAD_CLASS): Handle reload
463 requests between special registers.
465 2009-10-13 Eric Botcazou <ebotcazou@adacore.com>
467 * dwarf2out.c (mem_loc_descriptor): Accept UNGT as well.
469 2009-10-13 Richard Henderson <rth@redhat.com>
471 PR tree-optimization/41377
472 * tree-eh.c (unsplit_eh): Propagate degenerate PHIs.
473 (cleanup_empty_eh_merge_phis): New change_region parameter;
474 pass it on to redirect_eh_edge_1. Update callers.
475 (cleanup_empty_eh_unsplit): Don't require an existing EH label
476 at the destination block.
478 2009-10-13 Basile Starynkevitch <basile@starynkevitch.net>
480 * passes.c (register_pass): Replaced gcc_unreachable by
481 fatal_error on failure. Mentions plugins in comments & messages.
483 2009-10-13 Jakub Jelinek <jakub@redhat.com>
486 * rtl.h (DEBUG_EXPR_TREE_DECL): Define.
487 * sched-vis.c (print_value): Use it.
488 * cselib.c (cselib_hash_rtx): Likewise.
489 * print-rtl.c (print_rtx): Likewise.
490 * cfgexpand.c (expand_debug_rtx): Likewise.
491 * var-tracking.c (vt_expand_loc_callback): Likewise.
493 2009-10-13 Richard Guenther <rguenther@suse.de>
496 * opts.c (handle_option): Split out code to handle setting
497 the options flag var ...
498 (set_option): ... here.
499 * opts.h (set_option): Declare.
500 * lto-opts.c (register_user_option_p): Include -fexceptions
501 and all position independent code variants.
502 (handle_common_option): Remove.
503 (lto_reissue_options): Use set_option.
505 2009-10-13 Martin Jambor <mjambor@suse.cz>
507 PR tree-optimization/41661
508 * ipa-prop.c (compute_complex_pass_through): Allow only operations
509 that are tcc_comparisons or do not change the type in any
511 * ipa-cp.c (ipcp_lattice_from_jfunc): Request boolean type when
512 folding tcc_comparison operations.
514 2009-10-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
516 * config/s390/s390.c (s390_encode_section_info): Handle BLKmode
519 2009-10-12 Alexandre Oliva <aoliva@redhat.com>
525 * tree.def (DEBUG_EXPR_DECL): New.
526 * rtl.def (DEBUG_EXPR): New.
527 * gengtype.c (adjust_field_rtx_def): Handle it.
528 * tree-ssa.c (propagate_var_def_into_debug_stmts): Rename to...
529 (insert_debug_temp_for_var_def): ... this. Drop support for
530 moving. Take iterator for def stmt; insert debug stmt before it.
531 Scan early for use count and kind in debug stmts.
532 (propagate_defs_into_debug_stmts): Rename to...
533 (insert_debug_temps_for_defs): ... this. Likewise.
534 * tree.h (DEBUG_TEMP_UID): New.
535 * tree.c (next_debug_decl_uid): New.
536 (make_node_stat): Count debug decls separately.
537 (copy_node_stat): Likewise.
538 * cfgexpand.c (expand_debug_expr): Handle DEBUG_EXPR_DECL.
539 * var-tracking.c (dv_is_decl_p): Recognize it.
540 (VALUE_RECURSED_INTO): Apply to DEBUG_EXPRs too.
541 (track_expr_p): Track expanded DEBUG_EXPR_DECLs.
542 (vt_expand_loc_callback): Expand DEBUG_EXPRs.
543 (emit_note_insn_var_location): Don't emit notes for DEBUG_EXPR_DECLs.
544 * cselib.c (rtx_equal_for_cselib_p): Handle DEBUG_EXPR.
545 (cselib_hash_rtx): Likewise.
546 (cselib_expand_value_rtx_1): Use callback for DEBUG_EXPR.
547 * tree-ssa-operands.c (get_expr_operands): Skip DEBUG_EXPR_DECLs in
549 * emit-rtl.c (verify_rtx_sharing): Handle DEBUG_EXPR and VALUE.
550 (copy_rtx_if_shared_1, reset_used_flags, set_used_flags): Likewise.
551 * rtl.c (copy_rtx): Likewise.
552 (rtx_equal_p_cb, rtx_equal_p): Handle DEBUG_EXPR.
553 * print-rtl.c (print_rtx): Likewise.
554 * sched-vis.c (print_value): Likewise.
555 (print_insn): Handle DEBUG_EXPR_DECL.
556 * tree-dump.c (dequeue_and_dump): Likewise.
557 * tree-pretty-print.c (dump_decl_name, dump_generic_node): Likewise.
558 * gimple-iterator (gsi_replace): Check for same lhs.
559 (gsi_remove): Insert debug temps.
560 * tree-ssa-loop-im.c (rewrite_reciprocal): Replace with same lhs.
561 (move_computations_stmt): Drop explicit propagation into debug stmts.
562 (rewrite_bittest): Likewise. Use gsi_remove for propagation.
563 * tree-ssa-reassoc.c (rewrite_expr_tree, linearize_expr): Likewise.
564 * tree-ssa-sink.c (statement_sink_location): Likewise.
565 * tree-ssa-forwprop (forward_propagate_addr_expr): Likewise.
566 * tree-ssanames.c (release_ssa_name): Adjust for rename.
567 * tree-flow.h: Likewise.
568 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Don't mark
569 debug temps without values.
570 (eliminate_unnecessary_stmts): Don't discard just-inserted
573 2009-10-12 Hans-Peter Nilsson <hp@axis.com>
576 * config/cris/cris.md (andu): Check that operand 1 is one of the
577 general registers. Fix typo in head comment.
579 2009-10-12 Stefan Dösinger <stefan@codeweavers.com>
581 * config/i386/i386.md (vswapmov): New.
582 * config/i386/i386.c (ix86_handle_fndecl_attribute): New.
583 (ix86_function_ms_hook_prologue): New.
584 (ix86_expand_prologue): Handle ms_hook_prologue attribute.
585 * configure.ac: Test for swap suffix support in as.
586 * configure: Rebuild.
588 2009-10-12 Jakub Jelinek <jakub@redhat.com>
591 * config/i386/i386.md (split after *testqi_ext_3_rex64): Only narrow
592 paradoxical subregs to prevent partial register stalls if the inner
593 mode is integer mode.
595 2009-10-12 Uros Bizjak <ubizjak@gmail.com>
597 * config/i386/i386.md (*setcc_<mode>_2): Remove insn pattern.
599 2009-10-12 Dodji Seketeli <dodji@redhat.com>
602 * gcc/dwarf2out.c (template_parameter_pack_die,
603 gen_formal_parameter_pack_die): Use add_name_and_src_coords_attributes.
605 2009-10-12 Alexandre Oliva <aoliva@redhat.com>
608 * tree-into-ssa.c (insert_phi_nodes_for): Build debug bind stmts
610 (maybe_register_def): Likewise. Take stmt iterator.
611 (rewrite_update_stmt): Take stmt iterator and pass it on.
612 (rewrite_update_enter_block): Pass stmt iterator.
614 2009-10-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
616 * config/spu/spu.c (TARGET_BUILTIN_DECL): Define.
617 (spu_builtin_decl): New function.
619 2009-10-12 Uros Bizjak <ubizjak@gmail.com>
621 * config/i386/i386.md (SWIM): New mode iterator.
622 (mov<mode>cc): Macroize expander from mov{qi,hi,si,di}cc patterns
623 using SWIM mode iterator.
624 (x86_mov<mode>cc_0_m1): Macroize insn from x86_mov{si,di}cc_0_m1
625 patterns using SWI48 mode iterator.
626 (*x86_mov<mode>cc_0_m1_se): Macroize insn from
627 *x86_mov{si,di}cc_0_m1_se patterns using SWI48 mode iterator.
628 (*x86_mov<mode>cc_0_m1_neg): New insn pattern.
629 (*mov<mode>cc_noc): Macroize insn from *mov{hi,si,di}cc_noc
630 patterns using SWI248 mode iterator.
631 * config/i386/i386.c (ix86_expand_int_movcc): Update the call to
632 gen_x86_movdicc_0_m1_rex64 for renamed function
634 2009-10-11 Jose Ruiz <ruiz@adacore.com>
635 Eric Botcazou <ebotcazou@adacore.com>
638 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Define.
639 * config/sparc/sol2-unwind.h: New file.
641 2009-10-11 Olivier Hainque <hainque@adacore.com>
642 Eric Botcazou <ebotcazou@adacore.com>
645 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Define.
646 * config/i386/sol2-unwind.h: New file.
648 2009-10-11 H.J. Lu <hongjiu.lu@intel.com>
651 * config/i386/i386.md (addsi_1_zext): Get the proper second
654 2009-10-11 Richard Sandiford <rdsandiford@googlemail.com>
656 * simplify-rtx.c (simplify_replace_rtx): Use rtx_equal_p for
657 all OLD_RTXes, not just REGs. Use copy_rtx to create the
660 2009-10-11 Richard Guenther <rguenther@suse.de>
662 * gimple.c (iterative_hash_type_name): Do not handle special
665 2009-10-11 Uros Bizjak <ubizjak@gmail.com>
667 * config/i386/i386.md (*setcc_di_1): New insn_and_split pattern.
668 (*setcc_si_1_and): Ditto.
669 (*setcc_si_1_movzbl): Ditto.
670 (*setcc_<mode>_2): Ditto.
671 (*setcc_qi): Rename from *setcc_1.
672 (*setcc_qi_slp): Rename from *setcc_2.
674 (*zero_extendqihi2_movzbw_and splitter): Use ix86_expand_clear.
675 (*zero_extendqisi2_movzbw_and splitter): Ditto.
677 * config/i386/i386.c (ix86_expand_clear): Remove reload_completed from
678 "if" condition, there is already assert with reload_completed present.
680 2009-10-11 Gerald Pfeifer <gerald@pfeifer.com>
682 * plugin.c (try_init_one_plugin): Improve constness of variable err.
684 2009-10-10 Gerald Pfeifer <gerald@pfeifer.com>
686 * doc/install.texi (Final install): Refer to
687 http://gcc.gnu.org/bugs/ for bug reporting.
689 2009-10-10 Peter Bergner <bergner@vnet.ibm.com>
691 * configure.ac: Add test for dci instruction.
692 * configure: Regenerate.
693 * config.in: Likewise.
694 * config.gcc: Handle --with-cpu=476 and --with-cpu=476fp.
695 * doc/invoke.texi: Add cpu_type 476 and 476fp.
696 (-mmulhw): Add 476 to description.
698 * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=476.
699 * config/rs6000/rs6000.c (processor_costs): Add ppc476_cost.
700 (processor_target_table): Add 476 and 476fp entries.
701 (rs6000_override_options): Use ppc476_cost for PROCESSOR_PPC476.
702 (rs6000_issue_rate): Add CPU_PPC476.
703 * config/rs6000/rs6000.h (ASM_CPU_476_SPEC): Define.
704 (ASM_CPU_SPEC): Pass %(asm_cpu_476) for -mcpu=476 and -mcpu=476fp.
705 (processor_type): Add PROCESSOR_PPC476.
706 (EXTRA_SPECS): Add asm_cpu_476 string.
707 * config/rs6000/rs6000.md: (define_attr "type"): Add isel attribute.
708 (define_attr "cpu"): Add ppc476.
710 Update comments for 476.
711 (isel_signed, isel_unsigned): Change to use "isel" type attribute.
712 * config/rs6000/vxworks.h (CPP_SPEC): Handle 464 and 476.
713 Update copyright year.
714 * config/rs6000/476.md: New file.
715 * config/rs6000/40x.md: Add description for "isel" attribute.
716 Update copyright year.
717 * config/rs6000/440.md: Likewise.
718 * config/rs6000/603.md: Likewise.
719 * config/rs6000/6xx.md: Likewise.
720 * config/rs6000/7450.md: Likewise.
721 * config/rs6000/7xx.md: Likewise.
722 * config/rs6000/8540.md: Likewise.
723 * config/rs6000/cell.md: Likewise.
724 * config/rs6000/e300c2c3.md: Likewise.
725 * config/rs6000/e500mc.md: Likewise.
726 * config/rs6000/mpc.md: Likewise.
727 * config/rs6000/power4.md: Likewise.
728 * config/rs6000/power5.md: Likewise.
729 * config/rs6000/power6.md: Likewise.
730 * config/rs6000/power7.md: Likewise.
731 * config/rs6000/rios1.md: Likewise.
732 * config/rs6000/rios2.md: Likewise.
733 * config/rs6000/rs64.md: Likewise.
735 2009-10-10 Richard Guenther <rguenther@suse.de>
737 PR tree-optimization/41654
738 * tree-ssa-ifcombine.c (ifcombine_ifandif): Properly canonicalize
739 a cond expr before calling gimple_cond_set_condition_from_tree.
740 (ifcombine_iforif): Likewise.
742 2009-10-09 Ian Lance Taylor <iant@google.com>
744 * configure.ac: Use AC_SEARCH_LIBS to find dlopen.
745 * configure: Rebuild.
747 2009-10-09 Neil Vachharajani <nvachhar@google.com>
749 * doc/cpp.texi (Other Directives): Do not list #ident and #sccs as
752 2009-10-09 Richard Guenther <rguenther@suse.de>
755 * target-def.h (TARGET_BUILTIN_DECL): Define.
756 (TARGET_INITIALIZER): Add TARGET_BUILTIN_DECL.
757 * target.h (struct gcc_target): Add builtin_decl target hook.
758 * doc/tm.texi (TARGET_BUILTIN_DECL): Document.
759 * lto-streamer-in.c (lto_get_builtin_tree): Fix handling of
761 * lto-streamer-out.c (lto_output_tree_pointers): Use sorry,
763 (lto_output_builtin_tree): Sorry if the target does not support
764 streaming target builtins.
765 * config/rs6000/rs6000.c (TARGET_BUILTIN_DECL): Define.
766 (rs6000_builtin_decl): New function.
767 * config/i386/i386.c (TARGET_BUILTIN_DECL): Define.
768 (ix86_builtin_decl): New function.
770 2009-10-09 Jakub Jelinek <jakub@redhat.com>
772 PR preprocessor/41445
773 * c-ppoutput.c (do_line_change): New function.
774 (cb_line_change): Use it.
775 (scan_translation_unit): Call do_line_change if
776 avoid_paste or PREV_WHITE and token location is on a different line
780 * dwarf2out.c (dwarf2out_init): Test whether
781 HAVE_GAS_CFI_SECTIONS_DIRECTIVE is non-zero instead of checking
784 PR rtl-optimization/41646
785 * calls.c (expand_call): For BLKmode types returned in registers
786 avoid likely spilled hard regs in copy_blkmode_from_reg generated
789 2009-10-09 Richard Guenther <rguenther@suse.de>
791 PR tree-optimization/41634
792 * tree-ssa-dom.c (remove_local_expressions_from_table): Assert
793 we remove the correct elements.
794 (optimize_stmt): Make sure to update stmt operands before
795 optimizing redundancies.
797 2009-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
799 * config/s390/s390.md ("prefetch"): Remove stcmh for prefetching.
801 2009-10-09 Richard Guenther <rguenther@suse.de>
804 * lto-wrapper.c (ltrans_output_file, flto_out, args_name): New
806 (lto_wrapper_exit): New function.
808 (fatal_perror): Likewise.
809 (fork_execute): Use global args_name, do not free it.
810 (run_gcc): Use global ltrans_output_file, flto_out, do not free them.
811 * lto-streamer.h: Remove duplicate prototypes.
813 2009-10-09 Richard Guenther <rguenther@suse.de>
815 * cgraph.c (cgraph_create_edge): Check for NULL call_stmt
816 before calling stmt_can_throw_external.
818 2009-10-09 Eric Botcazou <ebotcazou@adacore.com>
820 PR tree-optimization/40071
821 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Build a ref-all
822 pointer if the original data reference doesn't conflict with the
823 created vector data reference. Fix long line.
825 2009-10-09 Uros Bizjak <ubizjak@gmail.com>
827 * config/i386/i386.md (any_div): New code iterator.
828 (u): Handle div and udiv.
830 (<u>divqi3): Macroize insn from {,u}divqi3 using any_div
832 (lfloor<MODEF:mode><SWI48:mode>2): Macroize insn from
833 lfloor<mode>{si,di}2 patterns using SWI48 mode iterator.
834 (lceil<MODEF:mode><SWI48:mode>2): Macroize insn from
835 lceil<mode>{si,di}2 patterns using SWI48 mode iterator.
837 2009-10-08 Joseph Myers <joseph@codesourcery.com>
839 * gcc.c (main): Remove trailing "." from diagnostics.
841 2009-10-08 Cary Coutant <ccoutant@google.com>
843 Add support for debugging with ICF (Identical Code Folding).
844 * calls.c (debug.h): New #include.
845 (emit_call_1): Call virtual_call_token debug hook.
846 * common.opt (-fenable-icf-debug): New option.
847 * dwarf2out.c (dwarf2_debug_hooks): Add entries for new hooks (two
848 locations in the source).
849 (poc_label_num): New variable.
850 (dcall_entry, vcall_entry): New typedefs.
851 (dcall_table, vcall_table): New variables.
852 (struct vcall_insn): New type.
853 (vcall_insn_table): New variable.
854 (DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION): New macros.
855 (size_of_dcall_table): New function.
856 (output_dcall_table): New function.
857 (size_of_vcall_table): New function.
858 (output_vcall_table): New function.
859 (dwarf2out_direct_call): New function.
860 (vcall_insn_table_hash): New function.
861 (vcall_insn_table_eq): New function.
862 (dwarf2out_virtual_call_token): New function.
863 (dwarf2out_virtual_call): New function.
864 (dwarf2out_init): Allocate new tables and sections.
865 (prune_unused_types): Mark DIEs referenced from direct call table.
866 (dwarf2out_finish): Output direct and virtual call tables.
867 * final.c (final_scan_insn): Call direct_call and virtual_call
869 * debug.h (struct gcc_debug_hooks): Add direct_call,
870 virtual_call_token, virtual_call hooks.
871 (debug_nothing_uid): New function.
872 * debug.c (do_nothing_debug_hooks): Add dummy entries for new hooks.
873 (debug_nothing_uid): New function.
874 * dbxout.c (dbx_debug_hooks): Add dummy entries for new hooks.
875 (xcoff_debug_hooks): Likewise.
876 * sdbout.c (sdb_debug_hooks): Likewise.
877 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
878 * doc/invoke.texi (-fenable-icf-debug): New option.
880 2009-10-08 Alexandre Oliva <aoliva@redhat.com>
883 * regmove.c (regmove_backward_pass): Replace src with dst in the
884 debug insn, and check for dst before rather than after.
886 2009-10-08 Janis Johnson <janis187@us.ibm.com>
888 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Remove.
889 (TARGET_DELEGITIMIZE_ADDRESS): Likewise.
891 2009-10-08 Jan Hubicka <jh@suse.cz>
894 * cgraphbuild.c (record_reference): When parameter DATA is NULL,
895 do not mark cgraph nodes as needed.
896 (record_references_in_initializer): Add new only_vars parameter.
897 * cgraph.h (record_references_in_initializer): New parameter.
898 * varasm.c (assemble_variable): Update call.
899 * varpool.c (varpool_analyze_pending_decls): Always look for
902 2009-10-08 Anatoly Sokolov <aesok@post.ru>
904 * config/avr/avr.c (last_insn_address) Remove variable.
905 (expand_prologue): Don't initialise last_insn_address variable.
906 (final_prescan_insn): Don't output insn size.
907 * config/avr/avr.opt (msize): Remove switch.
908 * doc/invoke.texi (AVR Options): Remove documentation of -msize
911 2009-10-08 Adam Nemet <anemet@caviumnetworks.com>
913 * combine.c (label_tick_ebb_start): Fix comment.
914 (combine_instructions): Set label_tick and label_tick_ebb_start before
915 calling setup_incoming_promotions. Start them from 1. Increment
916 label_tick instead of deriving it from the BB index. Rather than
917 comparing ticks use the block from the previous iteration to decide
918 whether to start a new EBB. Remove empty lines before function.
920 2009-10-08 Michael Matz <matz@suse.de>
923 * builtins.c (fold_builtin_isascii): Use fold_build2.
924 (fold_builtin_isdigit): Ditto.
925 * except.c (duplicate_eh_regions_1): Tolerate NULL labels.
926 * tree-cfg.c (struct rus_data, remove_useless_stmts_warn_notreached,
927 remove_useless_stmts_cond, remove_useless_stmts_tf,
928 remove_useless_stmts_tc, remove_useless_stmts_bind,
929 remove_useless_stmts_goto, remove_useless_stmts_label,
930 remove_useless_stmts_1, remove_useless_stmts,
931 pass_remove_useless_stmts): Remove.
932 * tree-pass.h (pass_remove_useless_stmts): Don't declare.
933 * passes.c (init_optimization_passes): Don't add
934 pass_remove_useless_stmts.
935 * tree-eh.c (lower_eh_constructs_2): Handle empty cleanups.
936 * tree.c (free_lang_data_in_decl): Don't clear DECL_INITIAL of
938 * lto-symtab.c (lto_symtab_register_decl): Accepts DECL_INITIAL
939 for static constants.
940 * lto-streamer-out.c (output_gimple_stmt): Handle GIMPLE_NOP.
941 * lto-streamer-in.c (input_gimple_stmt): Handle GIMPLE_NOP.
943 2009-10-08 Richard Guenther <rguenther@suse.de>
945 * gimple.c (free_gimple_type_tables): New function.
946 * gimple.h (free_gimple_type_tables): Declare.
948 2009-10-07 Mark Heffernan <meheff@google.com>
950 * ipa-prop.c (ipa_print_node_params) Only print
951 names of named arguments.
953 2009-10-08 Rafael Avila de Espindola <espindola@google.com>
955 * gcc.c (LINK_COMMAND_SPEC): Pass libc with -pass-through if it is
956 being statically linked.
958 2009-10-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
960 * collect2.c (add_lto_object): Only define if OBJECT_FORMAT_NONE.
962 2009-10-08 Jan Hubicka <jh@suse.cz>
965 * ipa.c (cgraph_externally_visible_p,
966 function_and_variable_visibility,
967 whole_program_function_and_variable_visibility): Skip non-finalized
970 2009-10-08 Nick Clifton <nickc@redhat.com>
972 * config/mn10300/mn10300.h (CONSTANT_ADDRESS_P): Do not allow
975 2009-10-08 Andreas Tobler <a.tobler@schweiz.org>
978 * config.host: Use config/x-cflags-O1 for powerpc FreeBSD.
980 2009-10-07 Joseph Myers <joseph@codesourcery.com>
983 * c-common.c (c_fully_fold_internal): Strip nops from the result
984 of recursive calls to c_fully_fold_internal.
985 (c_wrap_maybe_const): New.
986 (c_save_expr): Use c_wrap_maybe_const.
987 * c-common.h (c_wrap_maybe_const): Declare.
988 * c-typeck.c (build_conditional_expr, c_finish_stmt_expr,
989 build_binary_op): Use c_wrap_maybe_const.
991 2009-10-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
993 * real.c: Fix comment to reflect actual exponent size.
995 2009-10-08 Ben Elliston <bje@au.ibm.com>
997 * config/rs6000/a2.md: Add FSF comment header.
999 2009-10-07 Uros Bizjak <ubizjak@gmail.com>
1001 * config/i386/i386.md (any_extend): New code iterator.
1002 (u, s): New code attributes.
1004 (DWIH): Rewrite as code iterator for SI and DI modes.
1005 (DWI): Rewrite as mode attribute.
1006 (dwi): New mode attribute.
1007 (di): Depend on SI mode and DI mode.
1008 (doubleint_general_operand): Remove mode attribute.
1010 (*lea_1): Macroize insn from *lea_1_rex64 and *lea_1 patterns using
1013 (*add<mode>3_doubleword): Use DWIH as the base mode iterator.
1014 (*sub<mode>3_doubleword): Ditto.
1016 (mul<mode>3): Macroize expander from mul{hi,si,di}3 patterns
1017 using SWIM248 mode iterator.
1018 (*mul<mode>3_1): Macroize insn from mul{si,di}3_1 patterns
1019 using SWI48 mode iterator.
1020 (<u>mul<mode><dwi>3): Macroize expander from {,u}mul{sidi,diti}3
1021 patterns using DWIH mode iterator and any_extend code iterator.
1022 (<u>mulqihi3): Macroize expander from {,u}mulqihi3 patterns
1023 using any_extend code iterator.
1024 (*<u>mul<mode><dwi>3_1): Macroize insn from {,u}mul{sidi,diti}3_1
1025 patterns using DWIH mode iterator and any_extend code iterator.
1026 (*<u>mulqihi3_1): Macroize insn from {,u}mulqihi3_1 patterns
1027 using any_extend code iterator.
1028 (<s>mul<mode>3_highpart): Macroize expander from
1029 {s,u}mul{si,di}3_highpart patterns using DWIH mode iterator
1030 and any_extend code iterator.
1031 (*<s>muldi3_highpart_1): Macroize insn from
1032 *{s,u}muldi3_highpart_rex64 patterns using any_extend code iterator.
1033 (*<s>mulsi3_highpart_1): Macroize insn from *{s,u}mulsi3_highpart_1
1034 patterns using any_extend code iterator.
1035 (*<s>mulsi3_highpart_zext): Macroize insn from
1036 *{s,u}mulsi3_highpart_zext patterns using any_extend code iterator.
1038 2009-10-07 Jakub Jelinek <jakub@redhat.com>
1040 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Don't add
1041 DW_AT_const_value if VAR_DIE already has DW_AT_abstract_origin
1042 refering to a DIE with DW_AT_const_value.
1044 2009-10-07 Vladimir Makarov <vmakarov@redhat.com>
1047 * ira-lives.c (check_and_make_def_conflict): Process all operands.
1049 2009-10-06 Jan Hubicka <jh@suse.cz>
1051 * cgraph.c (cgraph_node_can_be_local): Handle externally visible nodes
1054 2009-10-06 Uros Bizjak <ubizjak@gmail.com>
1056 * config/i386/i386.md (*lea_1_rex64, *lea_1, *lea_1_zext,
1057 *lea_2_rex64): Move before *add<mode>_1 pattern.
1059 2009-10-07 Jan Hubicka <jh@suse.cz>
1061 * collect2.c (main): Add -fno-whole-program.
1062 * gcc.c (set_collect_gcc_options): Do not remove whole program here.
1064 2009-10-07 Jan Hubicka <jh@suse.cz>
1066 * lto-symtab.c (lto_cgraph_replace_node): Assert that inline clones
1067 has no address taken.
1068 * cgraph.c (cgraph_mark_needed_node): Assert that inline clones are
1070 (cgraph_clone_node): Clear externally_visible flag for clones.
1071 * cgraph.h (cgraph_only_called_directly_p,
1072 cgraph_can_remove_if_no_direct_calls_p): New predicates.
1073 * tree-pass.h (pass_ipa_whole_program_visibility): Declare.
1074 * ipa-cp.c (ipcp_cloning_candidate_p): Use new predicate.
1075 (ipcp_initialize_node_lattices, ipcp_estimate_growth,
1076 ipcp_insert_stage): Likwise.
1077 * cgraphunit.c (cgraph_decide_is_function_needed): Do not compute
1078 externally_visible flag.
1079 (verify_cgraph_node): Verify that inline clones look right.
1080 (process_function_and_variable_attributes): Do not set
1081 externally_visible flags.
1082 (ipa_passes): Avoid executing small_ipa_passes at LTO stage; they've
1084 * lto-cgraph.c (lto_output_node): Assert that inline clones are not
1086 * ipa-inline.c (cgraph_clone_inlined_nodes): Use new predicates;
1087 clear externally_visible when turning into inline clones
1088 (cgraph_mark_inline_edge): Use new predicates.
1089 (cgraph_estimate_growth): Likewise.
1090 (cgraph_decide_inlining): Likewise.
1091 * ipa.c (cgraph_postorder): Likewise.
1092 (cgraph_remove_unreachable_nodes): Likewise; sanity check
1093 that inline clones are not needed.
1094 (cgraph_externally_visible_p): New predicate.
1095 (function_and_variable_visibility): Add whole_program parameter;
1096 always set externally_visible flag; handle COMDAT function
1098 (local_function_and_variable_visibility): New function.
1099 (gate_whole_program_function_and_variable_visibility): New function.
1100 (whole_program_function_and_variable_visibility): New function.
1101 (pass_ipa_whole_program_visibility): New function.
1102 * passes.c (init_optimization_passes): Add whole program visibility
1104 (do_per_function_toporder, function_called_by_processed_nodes_p): Do
1105 not care about needed/reachable flags.
1106 * varpool.c: Include flags.h
1107 (decide_is_variable_needed): When doing LTO assume whole-program mode.
1108 (varpool_finalize_decl): When we are in LTO read-back, all variables
1110 (varpool_analyze_pending_decls): Skip analyzis of analyzed vars.
1112 2009-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1114 * config/s390/tpf.h (TARGET_DEFAULT): Remove MASK_HARD_FLOAT and
1117 2009-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1119 * config.gcc: Don't include the makefile fragments intended for
1121 * config/s390/fixdfdi.h: File removed.
1122 * config/s390/libgcc-glibc.ver: File removed.
1123 * config/s390/s390.h: Remove the fixdfdi.h hack.
1124 * config/s390/t-crtstuff: File moved to libgcc dir.
1125 * config/s390/t-linux: Likewise.
1126 * config/s390/t-tpf: libgcc specific parts removed.
1127 * config/s390/t-linux64: Likewise.
1129 2009-10-06 Jerry Quinn <jlquinn@optonline.net>
1131 * Makefile.in (lto-wrapper): Use COMPILER and ALL_COMPILERFLAGS.
1132 (lto-compress.o): Likewise.
1134 2009-10-07 Danny Smith <dannysmith@users.sourceforge.net>
1137 * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't propagate
1138 dllexport to class members here.
1139 (i386_pe_determine_dllimport_p): Only check static class data for
1141 (i386_pe_encode_section_info): Don't recheck DECL_DLLIMPORT_P.
1142 * config/i386/winnt-cxx.c (i386_pe_type_dllimport_p): Only check
1143 functions for vague linkage.
1144 (i386_pe_type_dllexport_p): Fix formatting.
1145 (maybe_add_dllexport) New function.
1146 (i386_pe_adjust_class_at_definition): Use it to propagate dllexport
1149 2009-10-07 Ben Elliston <bje@au.ibm.com>
1151 * config/rs6000/a2.md: Remove duplicated lines.
1153 2009-10-07 Ben Elliston <bje@au.ibm.com>
1155 * config.gcc (powerpc*-*-*): Handle a2.
1156 * config/rs6000/rs6000.md (cpu): Add ppca2. Include "a2.md".
1157 * config/rs6000/a2.md: New file.
1158 * config/rs6000/rs6000.opt (mno-update): New.
1159 (mupdate): Return to using a mask, not a var.
1160 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for a2.
1161 (enum processor_type): Add PROCESSOR_PPCA2.
1162 * config/rs6000/rs6000.c (ppca2_cost): New costs.
1163 (rs6000_override_options): Add "a2" to processor_target_table.
1164 Update rs6000_always_hint logic. Correctly set rs6000_cost for a2.
1165 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=a2.
1167 2009-10-06 Uros Bizjak <ubizjak@gmail.com>
1169 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
1170 Use explicit gen_truncxfsf2 and gen_truncxfdf2 references to avoid
1171 reference to nonexistent gen_truncxfxf2 function.
1173 2009-10-06 Uros Bizjak <ubizjak@gmail.com>
1175 * config/i386/i386.md (SWI48, SDWIM, DWI): New mode iterators.
1176 (DWIH, g, di, doubleint_general_operand): New mode attributes.
1177 (general_operand): Handle TI mode.
1178 (add<mode>3): Macroize expander from add{qi,hi,si,di,ti}3 patterns
1179 using SDWIM mode iterator.
1180 (*add<mode>3_doubleword): New insn_and_split pattern. Macroize
1181 pattern from *add{di,ti}3_1 patterns and corresponding splitters
1182 using DWI mode iterator.
1183 (add<mode>3_carry): Macroize insn from add{qi,hi,si,di}3_carry
1184 patterns using SWI mode iterator.
1185 (*add<mode>3_cc): Macroize insn from add{si,di}3_cc patterns
1186 using SWI48 mode iterator.
1187 (*add<mode>_1): Ditto from add{si,di}_1 patterns.
1188 (*add<mode>_2): Ditto from add{si,di}_2 patterns.
1189 (*add<mode>_3): Ditto from add{si,di}_3 patterns.
1190 (*add<mode>_5): Ditto from add{si,di}_5 patterns.
1191 (sub<mode>3): Macroize expander from sub{qi,hi,si,di,ti}3 patterns
1192 using SDWIM mode iterator.
1193 (*sub<mode>3_doubleword): New insn_and_split pattern. Macroize
1194 pattern from *sub{di,ti}3_1 patterns and corresponding splitters
1195 using DWI mode iterator.
1196 (sub<mode>3_carry): Macroize insn from sub{qi,hi,si,di}3_carry
1197 patterns using SWI mode iterator.
1198 (*sub<mode>_1): Ditto from from sub{qi,hi,si,di}_1 patterns.
1199 (*sub<mode>_2): Ditto from sub{qi,hi,si,di}_2 patterns.
1200 (*sub<mode>_3): Ditto from sub{qi,hi,si,di}_3 patterns.
1201 (<plusminus_insn>xf3): Macroize expander from addxf3 and subxf3
1202 patterns using plusminus code iterator.
1203 (<plusminus_insn><mode>3): Macroize expander from add<mode>3 and
1204 sub<mode>3 patterns using plusminus code iterator.
1205 * config/i386/i386.c (override_options): Update the call to
1206 gen_subdi_carry_rex64 for renamed function.
1207 (ix86_expand_int_addcc): Update calls to gen_subdi3_carry_rex64
1208 and gen_adddi3_carry_rex64 for renamed functions. Use indirect
1209 calls to instruction expanders.
1211 2009-10-06 Martin Jambor <mjambor@suse.cz>
1214 * opts.c (decode_options): Run IPA-SRA at -O2.
1216 2009-10-06 Richard Guenther <rguenther@suse.de>
1218 * lto-symtab.c (lto_symtab_entry_hash): Hash strings, not pointers.
1220 2009-10-06 Tobias Burnus <burnus@net-b.de>
1223 * doc/invoke.texi (-flto,-fwhole-program): Make clear that the
1224 -flto and -fwhole-program flags can be combined.
1226 2009-10-06 Ryan Mansfield <rmansfield@qnx.com>
1229 * gcc.c (process_command): Check that -o argument was specified.
1231 2009-10-06 Jerry Quinn <jlquinn@optonline.net>
1233 * gimple.c (gimple_type_hash): Use CONST_CAST_TREE to fix compilation.
1235 2009-10-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1237 * c.opt (Wjump-misses-init): Fix typo to enable for ObjC.
1238 * doc/invoke.texi (Warning Options): Annotate allowed languages
1239 for -Wunsuffixed-float-constants.
1241 2009-10-05 Jakub Jelinek <jakub@redhat.com>
1243 * dwarf2out.c (modified_type_die): Don't add DW_AT_name to
1244 DW_TAG_{const,volatile}_type if its DW_AT_type already has the
1245 same name and isn't the main variant.
1248 * dwarf2out.c (loc_by_reference): Removed.
1249 (dw_loc_list_1): New function.
1250 (dw_loc_list): Remove toplev argument, add want_address argument.
1251 Don't look at decl_by_reference_p at all. Use dw_loc_list_1.
1252 (loc_list_from_tree) <case VAR_DECL>: Pass want_address rather than
1253 want_address == 2 to dw_loc_list. For successful dw_loc_list
1254 set have_address to 1 only if want_address is not 0.
1256 2009-10-05 Richard Sandiford <rdsandiford@googlemail.com>
1258 * config/mips/mips-protos.h (mips_trampoline_code_size): Declare.
1259 * config/mips/mips.h (TRAMPOLINE_SIZE): Redefine as the size of
1260 a code block followed by two pointers.
1261 (TRAMPOLINE_ALIGNMENT): Define to 64 for 32-bit targets too.
1262 * config/mips/mips.c (MIPS_LOAD_PTR): New macro.
1263 (MIPS_MOVE): Likewise.
1264 (MIPS_LUI): Likewise.
1265 (MIPS_JR): Likewise.
1266 (MIPS_BAL): Likewise.
1267 (MIPS_NOP): Likewise.
1268 (mips_asm_trampoline_template): Delete.
1269 (mips_trampoline_code_size): New function.
1270 (mips_trampoline_init): Add shorter sequences for all cases
1271 except Pmode == DImoe && !TARGET_USE_PIC_FN_ADDR_REG.
1272 Calculate the opcodes directly, rather than copying from a template.
1273 Only flush the code part of the trampoline.
1274 (TARGET_ASM_TRAMPOLINE_TEMPLATE): Delete.
1276 2009-10-05 Richard Sandiford <rdsandiford@googlemail.com>
1278 * config/mips/mips.h (DWARF_FRAME_RETURN_COLUMN): Replace
1279 GP_REG_FIRST + 31 with RETURN_ADDR_REGNUM.
1280 (INCOMING_RETURN_ADDR_RTX): Likewise.
1281 (FUNCTION_PROFILER): Likewise. Replace GP_REG_FIRST + 1
1283 * config/mips/sdemtk.h (FUNCTION_PROFILER): Replace GP_REG_FIRST + 31
1284 with RETURN_ADDR_REGNUM.
1285 (MIPS_SAVE_REG_FOR_PROFILING_P): Likewise.
1286 * config/mips/mips.c (mips16_build_call_stub): Replace
1287 GP_REG_FIRST + 31 with RETURN_ADDR_REGNUM, GP_REG_FIRST + 1
1288 with AT_REGNUM and 31 with RETURN_ADDR_REGNUM.
1289 (mips_print_operand_punctuation): Likewise.
1290 (mips_frame_set): Likewise.
1291 (mips16e_output_save_restore): Likewise.
1292 (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
1293 (mips_save_reg_p): Likewise.
1294 (mips_return_addr): Likewise.
1295 (mips_set_return_address): Likewise.
1296 (mips_direct_save_slot_move_p): Likewise.
1297 (mips_output_function_prologue): Likewise.
1298 (mips_restore_reg): Likewise.
1299 (mips_expand_epilogue): Likewise.
1300 (mips_epilogue_uses): Likewise.
1301 * config/mips/mips.md (RETURN_ADD_REGNUM): Define.
1302 (*mov<mode>_ra): Use it instead of a hard-coded 31.
1303 (clear_hazard_<mode>): Likewise.
1304 (call_internal): Likewise.
1305 (call_internal_direct): Likewise.
1306 (call_direct_split): Likewise.
1307 (call_value_internal): Likewise.
1308 (call_value_split): Likewise.
1309 (call_value_internal_direct): Likewise.
1310 (call_value_direct_split): Likewise.
1311 (call_value_multiple_internal): Likewise.
1312 (call_value_multiple_split): Likewise.
1314 2009-10-05 Eric Botcazou <ebotcazou@adacore.com>
1315 Jakub Jelinek <jakub@redhat.com>
1317 PR rtl-optimization/41511
1318 * combine.c (record_value_for_reg): Pass explicit values as argument
1319 to get_last_value_validate.
1320 (get_last_value_validate): Document INSN parameter.
1321 For non-readonly MEMs, assume they might have been modified if INSN
1322 was in another basic block.
1323 (get_last_value): Minor reformatting.
1325 2009-10-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
1328 * final.c (asm_str_count): Split out from asm_insn_count.
1329 * rtl.h (asm_str_count): New prototype.
1330 * tree-inline (estimate_num_insns) <case GIMPLE_ASM>: Call
1333 2009-10-05 Sriraman Tallam <tmsriram@google.com>
1335 * doc/plugins.texi: Change plugin_pass to register_pass_info.
1337 2009-10-05 Basile Starynkevitch <basile@starynkevitch.net>
1338 Rafael Espindola <espindola@google.com>
1340 * gengtype.c (write_types): Moved call to write_func_for_structure
1341 into seperate loops.
1343 2009-10-05 Richard Guenther <rguenther@suse.de>
1346 * lto-cgraph.c (output_cgraph): Output toplevel asms.
1347 (input_cgraph_1): Input toplevel asms.
1349 2009-10-05 Richard Guenther <rguenther@suse.de>
1352 * lto-symtab.c (lto_compatible_attributes_p): Remove.
1353 (external_aggregate_decl_p): Likewise.
1354 (lto_symtab_compatible): Re-structure. Remove dead code.
1355 For variables ignore toplevel qualifiers when comparing types.
1356 Issue warnings, not errors for mismatched user-alignment.
1358 2009-10-05 Richard Guenther <rguenther@suse.de>
1362 * lto-symtab.c (struct lto_symtab_base_def): Remove.
1363 (struct lto_symtab_identifier_def): Likewise.
1364 (struct lto_symtab_decl_def): Likewise.
1365 (struct lto_symtab_entry_def): New.
1366 (lto_symtab_identifier_t): Rename to ...
1367 (lto_symtab_entry_t): ... this.
1368 (lto_symtab_decls): Remove.
1369 (lto_symtab_base_hash): Rename to ...
1370 (lto_symtab_entry_hash): ... this.
1371 (lto_symtab_base_eq): Rename to ...
1372 (lto_symtab_entry_eq): ... this.
1373 (lto_symtab_base_marked_p): Rename to ...
1374 (lto_symtab_entry_marked_p): ... this.
1375 (lto_symtab_identifier_marked_p): Remove.
1376 (lto_symtab_decl_marked_p): Likewise.
1377 (lto_symtab_maybe_init_hash_tables): Rename to ...
1378 (lto_symtab_maybe_init_hash_table): ... this.
1379 (lto_symtab_set_resolution_and_file_data): Remove.
1380 (lto_symtab_register_decl): New function.
1381 (lto_symtab_get_identifier): Remove.
1382 (lto_symtab_get): New function.
1383 (lto_symtab_get_resolution): Adjust.
1384 (lto_symtab_get_identifier_decl): Remove.
1385 (lto_symtab_set_identifier_decl): Likewise.
1386 (lto_symtab_merge_decl): Rename to ...
1387 (lto_symtab_merge): ... this. Rewrite.
1388 (lto_symtab_merge_var): Remove.
1389 (lto_symtab_merge_fn): Likewise.
1390 (lto_symtab_prevailing_decl): Adjust.
1391 (lto_cgraph_replace_node): New function.
1392 (lto_symtab_merge_decls_2): Likewise.
1393 (lto_symtab_merge_decls_1): Likewise.
1394 (lto_symtab_fixup_var_decls): Likewise.
1395 (lto_symtab_resolve_symbols): Likewise.
1396 (lto_symtab_merge_decls): Likewise.
1397 (lto_symtab_prevailing_decl): Adjust.
1398 (lto_symtab_get_symtab_def): Remove.
1399 (lto_symtab_get_file_data): Likewise.
1400 (lto_symtab_clear_resolution): Adjust.
1401 (lto_symtab_clear_resolution): Likewise.
1402 * lto-cgraph.c (input_edge): Do not merge cgraph nodes here.
1403 (input_cgraph_1): Likewise.
1404 * lto-streamer-in.c (get_resolution): Do not provide fake
1405 symbol resolutions here.
1406 (deferred_global_decls): Remove.
1407 (lto_register_deferred_decls_in_symtab): Likewise.
1408 (lto_register_var_decl_in_symtab): Change signature, register
1409 variable via lto_symtab_register_decl.
1410 (lto_register_function_decl_in_symtab): Likewise.
1411 (lto_read_tree): Adjust.
1412 * lto-streamer.h (lto_register_deferred_decls_in_symtab): Remove.
1413 (lto_symtab_merge_var): Likewise.
1414 (lto_symtab_merge_fn): Likewise.
1415 (lto_symtab_register_decl): Declare.
1416 (lto_symtab_merge_decls): Likewise.
1418 2009-10-05 Richard Guenther <rguenther@suse.de>
1420 PR tree-optimization/23821
1421 * tree-vrp.c (vrp_finalize): Do not perform copy propagation.
1422 * tree-ssa-dom.c (cprop_operand): Do not propagate copies into
1423 simple IV increments.
1425 2009-10-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1427 * config/arm/arm.c (arm_override_options): Really initialize
1428 flag_dwarf2_cfi_asm to 0.
1430 2009-10-05 Doug Kwan <dougkwan@google.com>
1432 PR rtl-optimization/41574
1433 * combine.c (distribute_and_simplify_rtx): Quit if RTX mode is
1434 floating point and we are not doing unsafe math optimizations.
1436 2009-10-03 Simon Baldwin <simonb@google.com>
1437 Cary Coutant <ccoutant@google.com>
1438 Rafael Espindola <espindola@google.com>
1439 Richard Guenther <rguenther@suse.de>
1440 Jan Hubicka <jh@suse.cz>
1441 Doug Kwan <dougkwan@google.com>
1442 H.J. Lu <hongjiu.lu@intel.com>
1443 Bill Maddox <maddox@google.com>
1444 Ryan Mansfield <rmansfield@qnx.com>
1445 Diego Novillo <dnovillo@google.com>
1446 Ollie Wild <aaw@google.com>
1447 Kenneth Zadeck <zadeck@naturalbridge.com>
1449 * lto-cgraph.c: New file.
1450 * lto-compress.c: New file.
1451 * lto-compress.h: New file.
1452 * lto-opts.c: New file.
1453 * lto-section-in.c: New file.
1454 * lto-section-out.c: New file.
1455 * lto-streamer-in.c: New file.
1456 * lto-streamer-out.c: New file.
1457 * lto-streamer.c: New file.
1458 * lto-streamer.h: New file.
1459 * lto-symtab.c: New file.
1460 * lto-wpa-fixup.c: New file.
1461 * lto-wrapper.c: New file.
1463 2009-10-03 Simon Baldwin <baldwin@google.com>
1464 Ben Elliston <bje@au.ibm.com>
1465 Rafael Espindola <espindola@google.com>
1466 Nathan Froyd <froydnj@codesourcery.com>
1467 Jan Hubicka <jh@suse.cz>
1468 Doug Kwan <dougkwan@google.com>
1469 Diego Novillo <dnovillo@google.com>
1470 Kenneth Zadeck <zadeck@naturalbridge.com>
1472 * Makefile.in (enable_lto): New.
1473 (site.exp): If @enable_lto@ is set to 'yes' define ENABLE_LTO.
1474 (LINKER_PLUGIN_API_H): Define.
1475 (LTO_SYMTAB_H): Define.
1476 (LTO_STREAMER_H): Define.
1477 (TREE_VECTORIZER_H): Define.
1478 (INCLUDES): Add LIBELFINC.
1479 (OBJS-common): Add lto-cgraph.o, lto-streamer-in.o,
1480 lto-streamer-out.o, lto-section-in.o, lto-section-out.o, lto-symtab.o,
1481 lto-opts.o, lto-streamer.o, lto-wpa-fixup.o, lto-compress.o.
1482 (MOSTLYCLEANFILES): Add lto-wrapper$(exeext)
1483 (native): Add lto-wrapper$(exeext)
1484 (lto-compress.o, lto-cgraph.o, lto-streamer-in.o,
1485 lto-streamer-out.o, lto-section-in.o, lto-section-out.o,
1486 lto-symtab.o, lto-opts.o, lto-streamer.o, lto-wpa-fixup.o): New rules.
1487 (gimple.o): Add dependency on LTO_HEADER_H and LTO_SECTION_OUT_H.
1488 (varasm.o): Add dependency on tree-iterator.h.
1489 (cgraph.o): Add dependency on cif-code.def.
1490 (ipa-reference.o): Add dependency on LTO_STREAMER_H.
1491 (ipa-pure-const.o): Likewise.
1492 (GTFILES): Add lto-symtab.c.
1493 (install-lto-wrapper): New.
1494 * configure.ac: If 'lto' is in enable_languages, define ENABLE_LTO
1495 and enable_lto. If LIBELFLIBS is set, define HAVE_libelf.
1496 * config.in: Regenerate.
1498 2009-10-03 Rafael Espindola <espindola@google.com>
1499 Diego Novillo <dnovillo@google.com>
1501 * cgraphunit.c (ipa_passes): Prevent lto1 from calling
1502 ipa_write_summaries.
1503 Call execute_ipa_summary_passes for all_regular_ipa_passes and
1505 (cgraph_optimize): Make extern.
1507 2009-10-03 Nathan Froyd <froydnj@codesourcery.com>
1508 Kenneth Zadeck <zadeck@naturalbridge.com>
1510 * toplev.c (in_lto_p): Declare.
1511 * collect2.c (scan_prog_file): Read all the output when reading
1512 information for LTO.
1513 (enum lto_mode_d): Declare.
1515 2009-10-03 Richard Guenther <rguenther@suse.de>
1516 Diego Novillo <dnovillo@google.com>
1518 * gimple.c: Include target.h and alias.h.
1519 (gimple_types): Declare.
1520 (type_hash_cache): Declare.
1521 (gimple_alloc_stat): Make extern.
1522 (gimple_build_eh_must_not_throw): Call
1523 gimple_eh_must_not_throw_set_fndecl.
1524 (struct type_pair_d): Declare.
1525 (type_pair_t): Declare.
1526 (type_pair_hash): New.
1527 (type_pair_eq): New.
1528 (lookup_type_pair): New.
1529 (gimple_force_type_merge): New.
1530 (compare_type_names_p): New.
1531 (compare_field_offset): New.
1532 (gimple_types_compatible_p): New.
1533 (struct sccs): Declare.
1534 (next_dfs_num): Declare.
1535 (iterative_hash_gimple_type): New.
1537 (iterative_hash_type_name): New.
1538 (iterative_hash_gimple_type): New.
1539 (gimple_type_hash): New.
1540 (gimple_type_eq): New.
1541 (gimple_register_type): New.
1542 (print_gimple_types_stats): New.
1543 (gimple_signed_or_unsigned_type): New.
1544 (gimple_unsigned_type): New.
1545 (gimple_signed_type): New.
1546 (gimple_get_alias_set): New.
1547 (gimple_decl_printable_name): Do not use DMGL_TYPES.
1548 * gimple.h (gimple_alloc, gimple_alloc_stat): Declare.
1549 (gimple_force_type_merge): Declare.
1550 (gimple_types_compatible_p): Declare.
1551 (gimple_register_type): Declare.
1552 (print_gimple_types_stats): Declare.
1553 (gimple_unsigned_type): Declare.
1554 (gimple_signed_type): Declare.
1555 (gimple_get_alias_set): Declare.
1556 (gimple_eh_must_not_throw_set_fndecl): New.
1558 2009-10-03 Jan Hubicka <jh@suse.cz>
1559 Kenneth Zadeck <zadeck@naturalbridge.com>
1561 * ipa-pure-const.c: Include lto-streamer.h.
1562 (register_hooks): Factor out of ...
1563 (generate_summary): ... here.
1564 (pure_const_write_summary): New.
1565 (pure_const_read_summary): New.
1566 (pass_ipa_pure_const): Add pure_const_write_summary and
1567 pure_const_read_summary.
1568 * ipa-reference.c: Include lto-streamer.h.
1569 (add_new_function): New.
1570 (remove_node_data): New.
1571 (duplicate_node_data): New.
1572 (ipa_init): Guard against multiple calls.
1573 Move hook setup from analyze_function.
1574 (write_node_summary_p): New.
1575 (ipa_reference_write_summary): New.
1576 (ipa_reference_read_summary): New.
1577 (pass_ipa_reference): Add ipa_reference_write_summary and
1578 ipa_reference_read_summary.
1579 * cgraph.h (cgraph_local_info): Add field lto_file_data.
1580 (struct cgraph_edge): Add fields lto_stmt_uid and
1581 call_stmt_cannot_inline_p.
1582 (cgraph_optimize): Declare.
1583 (cgraph_decide_is_function_needed): Declare.
1584 (reset_inline_failed): Declare.
1585 (enum LTO_cgraph_tags): Declare.
1586 (LTO_cgraph_tag_names): Declare.
1587 (LCC_NOT_FOUND): Define.
1589 2009-10-03 Doug Kwan <dougkwan@google.com>
1590 Rafael Espindola <espindola@google.com>
1591 Jan Hubicka <jh@suse.cz>
1592 Diego Novillo <dnovillo@google.com>
1593 Kenneth Zadeck <zadeck@naturalbridge.com>
1595 * passes.c (all_regular_ipa_passes): New.
1596 (all_ipa_passes): Rename to all_small_ipa_passes.
1597 (init_optimization_passes): Init all_regular_ipa_passes.
1598 * tree-pass.h (all_regular_ipa_passes): New.
1599 (all_ipa_passes): Rename to all_small_ipa_passes.
1600 * passes.c (all_lto_gen_passes): New.
1601 (init_optimization_passes): Initialize all_lto_gen_passes.
1602 (execute_ipa_summary_passes): Make non-static.
1603 (ipa_write_summaries_1): New.
1604 (ipa_write_summaries_2): New.
1605 (ipa_write_summaries): New.
1606 (ipa_write_summaries_of_cgraph_node_set): New.
1607 (ipa_read_summaries_1): New.
1608 (ipa_read_summaries): New.
1609 (execute_ipa_pass_list): Call cgraph_process_new_functions.
1610 (execute_regular_ipa_pass_list): Remove.
1611 (init_optimization_passes): Schedule
1612 pass_rebuild_cgraph_edges and pass_early_inline outside
1613 of pass_all_early_optimizations. Document reason.
1614 (pass_ipa_lto_gimple_out, pass_ipa_lto_wpa_fixup,
1615 pass_ipa_lto_finish_out): New pass.
1616 (pass_ipa_summary_passes): Start and stop timers if the pass has them.
1617 (execute_all_ipa_transforms): New.
1618 (execute_one_pass): Don't call execute_one_ipa_transform_pass.
1619 (dump_properties, debug_properties): New.
1620 * tree-optimize.c (gate_all_early_local_passes): Return
1621 false if we are in lto1.
1622 (tree_rest_of_compilation): Call execute_all_ipa_transforms.
1623 * tree-pass.h (execute_all_ipa_transforms): Declare.
1624 (pass_ipa_function_and_variable_visibility): Declare.
1625 (pass_ipa_early_inline): Declare.
1626 (pass_ipa_lto_gimple_out): Declare.
1627 (pass_ipa_lto_wpa_fixup): Declare.
1628 (pass_ipa_lto_finish_out): Declare.
1629 (all_small_ipa_passes, all_regular_ipa_passes,
1630 all_lto_gen_passes): Declare.
1631 (execute_ipa_summary_passes): Declare.
1632 (execute_all_ipa_transforms): Declare.
1633 (ipa_write_summaries): Declare
1634 (ipa_write_summaries_of_cgraph_node_set): Declare.
1635 (ipa_read_summaries): Declare.
1637 2009-10-03 Doug Kwan <dougkwan@google.com>
1638 Ollie Wild <aaw@google.com>
1640 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do nothing in WPA.
1642 * collect2.c (LTO_MODE_NONE, LTO_MODE_LTO, LTO_MODE_WPA): New enums.
1643 (lto_mode): New variable.
1644 (maybe_run_lto_and_relink): Handle the -fwpa option.
1645 (main): Handle the -fwpa option.
1646 (maybe_unlink_list): New function.
1647 * gcc.c (link_lto_options): Replace -flto with -fwpa.
1648 * common.opt (flto): New flag.
1649 * toplev.c (flag_generate_lto): Declare.
1651 2009-10-03 Simon Baldwin <simonb@google.com>
1653 * common.opt (flto-compression-level): New flag.
1655 * opts.c: Include lto-opts.h.
1656 (handle_option): Call lto_register_user_option for each
1657 valid option handled.
1658 (decode_options): Clear registered options before the options
1661 2009-10-03 Cary Coutant <ccoutant@google.com>
1663 * collect2.c (is_elf): New function.
1664 (scan_prog_file): Require LTO object to be in ELF format.
1666 2009-10-03 Rafael Espindola <espindola@google.com>
1668 * gcc.c (LINK_COMMAND_SPEC): Use the -pass-through option to pass
1669 libgcc to the linker.
1671 * ipa-cp.c (cgraph_gate_cp): Return false if LTRANS is running.
1673 * collect2.c (maybe_run_lto_and_relink): Execute lto-wrapper.
1674 (collect_execute): Add flags argument. Pass flags to pex_run. Update
1676 * collect2.h (collect_execute): Add flags argument.
1677 * tlink.c (tlink_execute): Update call to collect_execute.
1678 * gcc.c (main): Set the COLLECT_LTO_WRAPPER environment variable.
1679 (use_linker_plugin): New.
1680 (use_linker_plugin_spec_function): New.
1681 (LINK_COMMAND_SPEC): Pass plugin options to the linker.
1682 (linker_plugin_file_spec): New.
1683 (lto_wrapper_spec): New.
1684 (lto_gcc_spec): New.
1685 (static_specs): Add linker_plugin_file, lto_wrapper and lto_gcc.
1686 (static_spec_functions): Add use-linker-plugin.
1687 (process_command): Handle -use-linker-plugin.
1688 (main): Use lto_wrapper_spec instead of lto_wrapper. Set
1689 linker_plugin_file_spec and lto_gcc_spec.
1690 (use_linker_plugin_spec_function): New.
1692 2009-10-03 Richard Guenther <rguenther@suse.de>
1696 * tree.h (is_lang_specific): Include LANG_TYPE.
1697 * tree.c (find_decls_types_r): Manually add interesting parts
1698 of TYPE_FIELDS. Walk BINFO_VIRTUALS. Do not walk TYPE_METHODS.
1700 * gimple.c (type_pair_hash): Make symmetric.
1701 (type_pair_eq): Likewise.
1702 (lookup_type_pair): Increase initial hashtable size.
1703 (gimple_force_type_merge): Rely on type-pair symmetry.
1704 (visit): Remove excessive checking code.
1705 (iterative_hash_type_name): Do not hash TYPE_NAME of anonymous unions.
1706 (gimple_register_type): Remove getenv calls, shrink initial
1710 * cgraphunit.c (ipa_passes): Do not remove bodies of extern
1711 inline functions if not generating lto output.
1714 * toplev.c (finalize): In WPA mode remove the asm file.
1716 2009-10-03 Doug Kwan <dougkwan@google.com>
1718 * ipa-inline.c (cgraph_mark_inline): Check
1719 edge->call_stmt_cannot_inline_p instead of calling
1720 gimple_call_cannot_inline_p.
1721 (cgraph_decide_inlining): Do nothing in WPA and LTRANS.
1722 (cgraph_gate_ipa_early_inlining): Return false if in_lto_p is set.
1723 (inline_generate_summary): Do nothing in LTRANS.
1724 * cgraph.c (initialize_inline_failed): Make sure e->call_stmt
1725 exists before calling gimple_call_cannot_inline_p.
1726 (cgraph_create_edge): Set edge->call_stmt_cannot_inline_p.
1727 (cgraph_clone_edge): Add argument STMT_UID. Modify all callers.
1728 Update new_edge->lto_stmt_uid.
1729 * cgraphbuild.c (reset_inline_failed): New.
1731 * common.opt (fwpa): New flag.
1732 (fltrans): New option.
1733 * gcc.c (gcc_lto_option_t): New type.
1734 (current_lto_option): New variable.
1735 (lto_single_spec_function): Remove and is replaced by ..
1736 (lto_option_spec_function): New function.
1737 (LINK_COMMAND_SPEC): Use link_lto_option spec instead of just
1738 passing the -flto flag.
1739 (cc1_options): Separate non-LTO related parts into ..
1740 (cc1_non_lto_options): Non-LTO related options shared by all FEs.
1741 (lto1_options): New spec for lto FE.
1742 (link_lto_options): New spec for handling LTO flags in linker.
1743 (invoke_lto_single): Re-format to fit in 80 column. Replace
1744 lto-single with lto-option.
1745 (static_specs): Add cc1_non_lto_options, lto1_options and
1747 (static_spec_function): Replace lto-single with lto-option.
1748 (process_command): Handle -flto, -fwpa and -fltran by setting
1749 current_lto_option and not passing it to subprocess unconditionally.
1751 2009-10-03 Bill Maddox <maddox@google.com>
1753 Add `gcc' driver support for link-time code generation (LTO).
1755 * collect2.c (enum pass): Add new literal PASS_LTOINFO.
1756 (lto_flag, lto_objects, lto_o_file): New variables.
1757 (struct lto_object, struct lto_object_list): New structures.
1758 (collect_exit, handler): Remove LTO temporary output file on exit.
1759 (add_lto_object): New function.
1760 (maybe_run_lto_and_relink): New function. Perform link time code
1761 generation and relinking for object files containing LTO information.
1762 (main): Invoke maybe_run_lto_and_relink().
1763 (dump_argv): New function. For debugging, currently disabled.
1764 (scan_prog_file): Add LTO information pass.
1765 * gcc.c (LINK_COMMAND_SPEC): Pass `-flto' switch to linker, i.e.,
1767 * toplev.c (compile_file): Emit assembler directive to create
1768 the `gnu_lto_v1' marker symbol when compiling with `-flto'.
1770 2009-10-03 Diego Novillo <dnovillo@google.com>
1772 * c.opt: Add LTO to warn_abi and warn_psabi.
1774 * tree.c (fld_worklist_push): Rename from PUSH. Convert to static
1775 inline function. Ignore language-specific nodes. Update all users.
1776 (find_decls_types_r): Do not traverse the subtrees of
1777 language-specific nodes. Do not traverse DECL_INITIAL for TYPE_DECLs.
1778 * tree.h (is_lang_specific): New.
1779 * langhooks.h (struct lang_hooks_for_decls): Remove
1780 may_need_assembler_name_p. Update all users.
1782 * c-common.c (set_builtin_user_assembler_name): Move ...
1783 * builtins.c (set_builtin_user_assembler_name): ... here.
1784 (is_builtin_name): Add comment
1785 (is_builtin_fn): New.
1786 * except.c (output_ttype): Only call
1787 lookup_type_for_runtime if TYPE is not a runtime type.
1789 * passes.c (register_pass): Call position_pass on
1790 all_small_ipa_passes, all_regular_ipa_passes and all_lto_gen_passes.
1791 * timevar.def (TV_IPA_LTO_GIMPLE_IO): Define.
1792 (TV_IPA_LTO_DECL_IO): Define.
1793 (TV_IPA_LTO_CGRAPH_IO): Define.
1795 (TV_WHOPR_WPA): Define.
1796 (TV_WHOPR_WPA_IO): Define.
1797 (TV_WHOPR_LTRANS): Define.
1798 (TV_WHOPR_WPA_FIXUP): Define.
1799 (TV_WHOPR_WPA_LTRANS_EXEC): Define.
1800 * tree-cfg.c (tree_node_can_be_shared): Make extern.
1801 * tree-flow.h (tree_node_can_be_shared): Declare.
1802 * tree-inline.c (tree_can_inline_p): Check that E has a
1803 statement associated with it.
1804 * tree.c (free_lang_data_in_binf): Factor out of ...
1805 (free_lang_data_in_type): ... here.
1806 Call RECORD_OR_UNION_TYPE_P.
1807 (need_assembler_name_p): Ignore DECL if it does not have TREE_PUBLIC
1808 set. Call lang_hooks.decls.may_need_assembler_name_p if set.
1809 (free_lang_data_in_decl): Do not clear DECL_CONTEXT for CONST_DECLs.
1810 (free_lang_data): Set debug_info_level to DINFO_LEVEL_NONE. Set
1811 write_symbols to NO_DEBUG. Set debug_hooks to do_nothing_debug_hooks.
1812 (gate_free_lang_data): Return true if flag_generate_lto is set.
1813 (walk_tree_1): Call RECORD_OR_UNION_TYPE_P.
1814 * c-common.h (set_builtin_user_assembler_name): Move ...
1815 * tree.h (set_builtin_user_assembler_name): ... here.
1817 * common.opt (flto-report): New flag.
1818 * opts.c (complain_wrong_lang): Do not complain if running lto1.
1819 * collect2.c (scan_prog_file): Send the error output of
1820 'nm' to HOST_BIT_BUCKET.
1822 2009-10-03 Ollie Wild <aaw@google.com>
1824 * langhooks-def.h (lhd_begin_section): New function declaration.
1825 (lhd_write_section): New function declaration.
1826 (lhd_end_section): New function declaration.
1827 (LANG_HOOKS_BEGIN_SECTION): New macro.
1828 (LANG_HOOKS_WRITE_SECTION_DATA): New macro.
1829 (LANG_HOOKS_END_SECTION): New macro.
1830 (LANG_HOOKS_LTO): New macro.
1831 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_LTO.
1832 * langhooks.c (output.h): Add include.
1833 (saved_section): New static variable.
1834 (lhd_begin_section): New function.
1835 (lhd_write_section_data): New function.
1836 (lhd_end_section): New function.
1837 * langhooks.h (struct lang_hooks_for_lto): New structure.
1838 (struct lang_hooks): Add member lto.
1839 * Makefile.in (langhooks.o): Add dependency on output.h.
1841 * c-opts.c (c_common_post_options): Handle -flto and -fwhopr.
1843 2009-10-03 Richard Guenther <rguenther@suse.de>
1845 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
1848 2009-10-03 Simon Baldwin <simonb@google.com>
1849 Richard Guenther <rguenther@suse.de>
1850 Janis Johnson <janis187@us.ibm.com>
1851 Doug Kwan <dougkwan@google.com>
1852 Diego Novillo <dnovillo@google.com>
1853 Ramana Radhakrishnan <ramana.r@gmail.com>
1854 Ollie Wild <aaw@google.com>
1856 * doc/install.texi: Add documentation for libelf and --enable-lto.
1857 * doc/invoke.texi: Document -fwpa, -flto, -fwhopr, -fltrans,
1858 -flto-report, -flto-compression-level and -use-linker-plugin.
1859 * doc/sourcebuild.texi: Document use of zlib. Document lto-plugin.
1860 Add section for LTO Testing.
1862 2009-10-02 Cary Coutant <ccoutant@google.com>
1864 Add support for comdat type sections for DWARF v4.
1865 Merge from dwarf4 branch.
1867 * dwarf2out.c (DWARF_TYPE_SIGNATURE_SIZE): New constant.
1868 (dw_die_ref): Define vector type.
1869 (enum dw_val_class): Add dw_val_class_data8.
1870 (struct dw_val_struct): Add v.val_data8.
1871 (comdat_type_node_ref): New type.
1872 (struct die_struct): Move die_symbol into a union; add new field
1873 die_type_node. Change all uses.
1874 (comdat_type_node): New type.
1875 (skeleton_chain_node): New type.
1876 (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): New constant.
1877 (comdat_type_list): New variable.
1878 (dwarf_tag_name): Add DW_TAG_type_unit.
1879 (dwarf_attr_name): Add DW_AT_signature.
1880 (add_AT_data8): New function.
1881 (replace_child): New function.
1882 (move_all_children): New function.
1883 (print_signature): New function.
1884 (print_die): Print signature information; add dw_val_class_data8.
1885 (attr_checksum): Support dw_val_class_data8.
1886 (CHECKSUM_STRING): Redefine for DWARF-4 to include trailing NULL byte.
1887 (CHECKSUM_SLEB128, CHECKSUM_ULEB128): New macros.
1888 (checksum_sleb128, checksum_uleb128): New functions.
1889 (checksum_die_context): New function.
1890 (loc_checksum_ordered): New function.
1891 (attr_checksum_ordered): New function.
1892 (struct checksum_attributes): New structure.
1893 (collect_checksum_attributes): New function.
1894 (die_checksum_ordered): New function.
1895 (generate_type_signature): New function.
1896 (same_dw_val_p): Add dw_val_class_data8.
1897 (is_symbol_die): Use new is_declaration_die function.
1898 (is_declaration_die): New function.
1899 (should_move_die_to_comdat): New function.
1900 (clone_die): New function.
1901 (clone_tree): New function.
1902 (clone_as_declaration): New function.
1903 (copy_declaration_context): New function.
1904 (generate_skeleton_ancestor_tree): New function.
1905 (generate_skeleton_bottom_up): New function.
1906 (generate_skeleton): New function.
1907 (remove_child_or_replace_with_skeleton): New function.
1908 (break_out_comdat_types): New function.
1909 (struct decl_table_entry): New type.
1910 (htab_decl_hash): New function.
1911 (htab_decl_eq): New function.
1912 (htab_decl_del): New function.
1913 (copy_ancestor_tree): New function.
1914 (copy_decls_walk): New function.
1915 (copy_decls_for_unworthy_types): New function.
1916 (build_abbrev_table): Don't assert on missing die_symbol when doing
1917 comdat type sections.
1918 (size_of_die): Use DW_FORM_sig8 for external references. Add
1920 (unmark_dies): Don't assert for unmarked dies when doing comdat
1922 (value_format): Support DW_FORM_sig8 and dw_val_class_data8.
1923 (output_signature): New function.
1924 (output_die): Likewise.
1925 (output_compilation_unit_header): Mark output as DWARF version 3
1926 even if generating DWARF 4.
1927 (output_comdat_type_unit): New function.
1928 (output_line_info): Mark output as DWARF version 3 even if generating
1930 (dwarf2out_start_source_file): Don't do eliminate_dwarf2_dups with
1932 (dwarf2out_end_source_file): Likewise.
1933 (prune_unused_types_walk_attribs): Don't follow references into
1934 comdat type sections.
1935 (prune_unused_types_mark): When generating type units, do not mark
1936 children of non-defining declarations of types; do mark children of
1938 (prune_unused_types): Process comdat type sections.
1939 (htab_ct_hash): New function.
1940 (htab_ct_eq): New function.
1941 (dwarf2out_finish): Move types to comdat sections when using DWARF-4.
1942 Add a pointer to the line table from type unit entries so
1943 DW_AT_decl_file has meaning.
1944 * varasm.c (default_elf_asm_named_section): Use identifier name as
1945 comdat key instead of lang hook.
1947 2009-10-02 Neil Vachharajani <nvachhar@google.com>
1949 * gcov-io.c (gcov_open): Open files read-only when MODE < 0.
1951 2009-10-02 Uros Bizjak <ubizjak@gmail.com>
1953 * config/i386/i386.md (SWIM248): New mode iterator.
1954 (divmod<mode>4) Macroize expander from divmoddi4, divmodsi4 and
1955 divmodhi4 patterns using SWIM248 macro.
1956 (*divmod<mode>4): Macroize insn_and_split pattern from
1957 *divmoddi4_cltd_rex64, *divmodsi4_cltd and divmodhi4 insn patterns
1958 and their corresponding splitters usign SWIM248 macro. Split SImode
1959 insn to generate cltd and DImode insn to generate cqto instead of
1960 move+shift when optimizing for size or TARGET_USE_CLTD is in effect.
1961 (*divmoddi4_nocltd_rex64, *divmodsi4_nocltd): Remove insn patterns.
1962 (*divmod<mode>4_noext): Macroize insn from *divmoddi_noext_rex64 and
1963 *divmodsi_noext patterns using SWIM248 macro.
1964 (udivmod<mode>4): Macroize expander from udivmoddi4, udivmodsi4 and
1965 udivmodhi4 patterns using SWIM248 macro.
1966 (*udivmod<mode>4): Macroize insn_and_split pattern from
1967 *udivmoddi4, udivmodsi4 and udivmodhi4 patterns and their
1968 corresponding splitters using SWIM248 macro.
1969 (*udivmod<mode>4_noext): Macroize insn from *udivmoddi4_noext,
1970 *udivmodsi4_noext and *udivmodhi_noext patterns using SWIM248 macro.
1972 2009-10-02 Eric Botcazou <ebotcazou@adacore.com>
1974 * stor-layout.c (layout_type) <ARRAY_TYPE>: Make sure that an array
1975 of zero-sized element is zero-sized regardless of its extent.
1977 2009-10-02 Jakub Jelinek <jakub@redhat.com>
1980 * configure.ac (HAVE_GAS_CFI_SECTIONS_DIRECTIVE): New test.
1981 * configure: Regenerated.
1982 * config.in: Regenerated.
1983 * dwarf2out.c (dwarf2out_do_cfi_asm): Return false if
1984 !HAVE_GAS_CFI_SECTIONS_DIRECTIVE and not emitting .eh_frame.
1985 (dwarf2out_init): If HAVE_GAS_CFI_SECTIONS_DIRECTIVE and
1986 not emitting .eh_frame, emit .cfi_sections .debug_frame
1991 * cfgexpand.c (expand_debug_expr) <case STRING_CST>: Don't create
1992 CONST_STRING if STRING_CST contains embedded '\0's or doesn't end
1994 (expand_debug_expr) <case VAR_DECL>: For TREE_STATIC !DECL_EXTERNAL
1995 vars use DECL_RTL with resetting it back to NULL afterwards.
1996 * dwarf2out.c (same_dw_val_p): For dw_val_class_addr compare with
1997 rtx_equal_p instead of asserting it is a SYMBOL_REF.
1998 (value_format): For dw_val_class_addr only use DW_FORM_addr if
1999 the attribute type allows it, otherwise use DW_FORM_dataN.
2000 (mem_loc_descriptor): Handle CONST_STRING.
2001 (add_const_value_attribute): Handle CONST_STRING using add_AT_addr.
2002 Handle MEM with CONST_STRING address using add_AT_string.
2003 (rtl_for_decl_init): Return MEM with CONST_STRING address instead of
2004 CONST_STRING for const arrays initialized with a string literal.
2005 (resolve_one_addr, resolve_addr_in_expr, resolve_addr): New functions.
2006 (dwarf2out_finish): Call resolve_addr.
2008 2009-10-02 Andreas Schwab <schwab@linux-m68k.org>
2009 Maxim Kuvyrkov <maxim@codesourcery.com>
2011 * config/m68k/lb1sf68.asm (PICCALL): Use variable sized branch.
2013 2009-10-02 Nick Clifton <nickc@redhat.com>
2015 * config/mn10300/mn10300.h (USER_LABEL_PREFIX): Define.
2016 (ASM_OUTPUT_LABELREF): Use asm_fprintf and %U.
2018 2009-10-01 Jan Hubicka <jh@suse.cz>
2020 * cgraph.c (cgraph_clone_node): Add redirect_callers parameter.
2021 (cgraph_create_virtual_clone): Just pass redirect_callers
2023 * cgraph.h (cgraph_clone_node): Update prototype.
2024 * ipa-pure-const.c (self_recursive_p): New function.
2025 (propagate): Use it.
2026 * ipa-inline.c (cgraph_clone_inlined_nodes,
2027 cgraph_decide_recursive_inlining): Update.
2029 2009-10-01 David Daney <ddaney@caviumnetworks.com>
2031 * gcc/config/mips/mips.c (mips_process_sync_loop) Emit syncw
2032 instructions for TARGET_OCTEON.
2034 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2036 * config/arm/arm.c (arm_override_options): Turn off
2037 flag_dwarf2_cfi_asm for AAPCS variants.
2039 2009-10-01 Martin Jambor <mjambor@suse.cz>
2042 * tree-sra.c (convert_callers): Do not call
2043 compute_inline_parameters on one caller more than once.
2045 2009-10-01 Nick Clifton <nickc@redhat.com>
2047 * config/vax/netbsd-elf.h (NETBSD_CC1_AND_CC1PLUS_SPEC): Define as
2048 an empty string if not already defined.
2050 2009-10-01 Martin Jambor <mjambor@suse.cz>
2053 * tree-sra.c (is_va_list_type): New function.
2054 (find_var_candidates): Call is_va_list_type.
2055 (find_param_candidates): Check that the type or the type pointed
2056 to are not va_list types.
2058 2009-10-01 Martin Jambor <mjambor@suse.cz>
2061 * cp/pt.c (function_parameter_expanded_from_pack_p): Return false if
2062 DECL_ARTIFICIAL (param_decl) is true.
2064 2009-09-30 Gabriel Dos Reis <gdr@cs.tamu.edu>
2066 * tree.h (tree_decl_common::lang_flag_8): New.
2067 * c-common.c (c_common_reswords): Include "constexpr" as C++0x
2069 * c-common.h (RID_CONSTEXPR): New.
2071 2009-09-30 Uros Bizjak <ubizjak@gmail.com>
2073 * config/alpha/alpha.c (alpha_gimplify_va_arg_1):
2074 Use ref-all pointers.
2075 (alpha_gimplify_va_arg): Ditto.
2077 2009-09-30 Jakub Jelinek <jakub@redhat.com>
2080 * cfgloopanal.c (num_loop_insns): Don't increment ninsns for each bb
2081 before insn counting loop now that BB_END (bb) is counted. Ensure
2082 the return value isn't zero.
2084 2009-09-30 Nick Clifton <nickc@redhat.com>
2086 * config.gcc (sh-symbianelf): Replace definition of extra_objs
2087 with separate definitions of c_target_objs and cxx_target_objs.
2088 * config/sh/t-sh: Add rules to build symbian-cxx.o, symbian-c.o
2090 * config/sh/sh.c (TARGET_CXX_INPUT_EXPORT_CLASS): Use
2091 sh_symbian_import_export_class.
2092 * config/sh/sh-protos.h: Fix names of exported symbian functions.
2093 * config/sh/symbian.c: Delete, moving code into...
2094 * config/sh/symbian-base.c: ... here
2095 * config/sh/symbian-c.c: ... and here
2096 * config/sh/symbian-cxx.c: ... and here.
2098 2009-09-30 Uros Bizjak <ubizjak@gmail.com>
2101 * config/alpha/alpha.md (unaligned_storehi_be): Force operand
2102 of plus RTX into register.
2104 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2106 * doc/install.texi: Linguistic and markup fixes.
2107 (Configuration) <--disable-cpp>: Remove description.
2108 <--enable-maintainer-mode>: Autotools files are affected, too.
2109 <--with-sysroot>: Improve description.
2110 (Building): Bump required GNU make version.
2112 2009-09-29 Harsha Jagasia <harsha.jagasia@amd.com>
2114 * config.gcc (i[34567]86-*-*): Include fma4intrin.h.
2115 (x86_64-*-*): Ditto.
2117 * config/i386/fma4intrin.h: New file, provide common x86 compiler
2118 intrinisics for FMA4.
2119 * config/i386/cpuid.h (bit_FMA4): Define FMA4 bit.
2120 * config/i386/x86intrin.h: Fix typo to SSE4A instead of SSE4a.
2121 Add FMA4 check and fma4intrin.h.
2122 * config/i386/i386-c.c(ix86_target_macros_internal): Check
2124 * config/i386/i386.h(TARGET_FMA4): New macro for FMA4.
2125 * config/i386/i386.md (UNSPEC_FMA4_INTRINSIC): Add new UNSPEC
2126 constant for FMA4 support.
2127 (UNSPEC_FMA4_FMADDSUB): Ditto.
2128 (UNSPEC_FMA4_FMSUBADD): Ditto.
2129 * config/i386/i386.opt (-mfma4): New switch for FMA4 support.
2130 * config/i386/i386-protos.h (ix86_fma4_valid_op_p): Add declaration.
2131 (ix86_expand_fma4_multiple_memory): Ditto.
2132 * config/i386/i386.c (OPTION_MASK_ISA_FMA4_SET): New.
2133 (OPTION_MASK_ISA_FMA4_UNSET): New.
2134 (OPTION_MASK_ISA_SSE4A_UNSET): Change definition to depend on FMA4.
2135 (OPTION_MASK_ISA_AVX_UNSET): Change definition to depend on FMA4.
2136 (ix86_handle_option): Handle -mfma4.
2137 (isa_opts): Handle -mfma4.
2138 (enum pta_flags): Add PTA_FMA4.
2139 (override_options): Add FMA4 support.
2140 (IX86_BUILTIN_VFMADDSS): New for FMA4 intrinsic.
2141 (IX86_BUILTIN_VFMADDSD): Ditto.
2142 (IX86_BUILTIN_VFMADDPS): Ditto.
2143 (IX86_BUILTIN_VFMADDPD): Ditto.
2144 (IX86_BUILTIN_VFMSUBSS): Ditto.
2145 (IX86_BUILTIN_VFMSUBSD): Ditto.
2146 (IX86_BUILTIN_VFMSUBPS): Ditto.
2147 (IX86_BUILTIN_VFMSUBPD): Ditto.
2148 (IX86_BUILTIN_VFMADDSUBPS): Ditto.
2149 (IX86_BUILTIN_VFMADDSUBPD): Ditto.
2150 (IX86_BUILTIN_VFMSUBADDPS): Ditto.
2151 (IX86_BUILTIN_VFMSUBADDPD): Ditto.
2152 (IX86_BUILTIN_VFNMADDSS): Ditto.
2153 (IX86_BUILTIN_VFNMADDSD): Ditto.
2154 (IX86_BUILTIN_VFNMADDPS): Ditto.
2155 (IX86_BUILTIN_VFNMADDPD): Ditto.
2156 (IX86_BUILTIN_VFNMSUBSS): Ditto.
2157 (IX86_BUILTIN_VFNMSUBSD): Ditto.
2158 (IX86_BUILTIN_VFNMSUBPS): Ditto.
2159 (IX86_BUILTIN_VFNMSUBPD): Ditto.
2160 (IX86_BUILTIN_VFMADDPS256): Ditto.
2161 (IX86_BUILTIN_VFMADDPD256): Ditto.
2162 (IX86_BUILTIN_VFMSUBPS256): Ditto.
2163 (IX86_BUILTIN_VFMSUBPD256): Ditto.
2164 (IX86_BUILTIN_VFMADDSUBPS256): Ditto.
2165 (IX86_BUILTIN_VFMADDSUBPD256): Ditto.
2166 (IX86_BUILTIN_VFMSUBADDPS256): Ditto.
2167 (IX86_BUILTIN_VFMSUBADDPD256): Ditto.
2168 (IX86_BUILTIN_VFNMADDPS256): Ditto.
2169 (IX86_BUILTIN_VFNMADDPD256): Ditto.
2170 (IX86_BUILTIN_VFNMSUBPS256): Ditto.
2171 (IX86_BUILTIN_VFNMSUBPD256): Ditto.
2172 (enum multi_arg_type): New enum for describing the various FMA4
2173 intrinsic argument types.
2174 (bdesc_multi_arg): New table for FMA4 intrinsics.
2175 (ix86_init_mmx_sse_builtins): Add FMA4 intrinsic support.
2176 (ix86_expand_multi_arg_builtin): New function for creating FMA4
2178 (ix86_expand_builtin): Add FMA4 intrinsic support.
2179 (ix86_fma4_valid_op_p): New function to validate FMA4 3 and 4
2180 operand instructions.
2181 (ix86_expand_fma4_multiple_memory): New function to split the
2182 second memory reference from FMA4 instructions.
2183 * config/i386/sse.md (ssemodesuffixf4): New mode attribute for FMA4.
2184 (ssemodesuffixf2s): Ditto.
2185 (fma4_fmadd<mode>4): Add FMA4 floating point multiply/add
2187 (fma4_fmsub<mode>4): Ditto.
2188 (fma4_fnmadd<mode>4): Ditto.
2189 (fma4_fnmsub<mode>4): Ditto.
2190 (fma4_vmfmadd<mode>4): Ditto.
2191 (fma4_vmfmsub<mode>4): Ditto.
2192 (fma4_vmfnmadd<mode>4): Ditto.
2193 (fma4_vmfnmsub<mode>4): Ditto.
2194 (fma4_fmadd<mode>4256): Ditto.
2195 (fma4_fmsub<mode>4256): Ditto.
2196 (fma4_fnmadd<mode>4256): Ditto.
2197 (fma4_fnmsub<mode>4256): Ditto.
2198 (fma4_fmaddsubv8sf4): Ditto.
2199 (fma4_fmaddsubv4sf4): Ditto.
2200 (fma4_fmaddsubv4df4): Ditto.
2201 (fma4_fmaddsubv2df4): Ditto.
2202 (fma4_fmsubaddv8sf4): Ditto.
2203 (fma4_fmsubaddv4sf4): Ditto.
2204 (fma4_fmsubaddv4df4): Ditto.
2205 (fma4_fmsubaddv2df4): Ditto.
2206 (fma4i_fmadd<mode>4): Add FMA4 floating point multiply/add
2207 instructions for intrinsics.
2208 (fma4i_fmsub<mode>4): Ditto.
2209 (fma4i_fnmadd<mode>4): Ditto.
2210 (fma4i_fnmsub<mode>4): Ditto.
2211 (fma4i_vmfmadd<mode>4): Ditto.
2212 (fma4i_vmfmsub<mode>4): Ditto.
2213 (fma4i_vmfnmadd<mode>4): Ditto.
2214 (fma4i_vmfnmsub<mode>4): Ditto.
2215 (fma4i_fmadd<mode>4256): Ditto.
2216 (fma4i_fmsub<mode>4256): Ditto.
2217 (fma4i_fnmadd<mode>4256): Ditto.
2218 (fma4i_fnmsub<mode>4256): Ditto.
2219 (fma4i_fmaddsubv8sf4): Ditto.
2220 (fma4i_fmaddsubv4sf4): Ditto.
2221 (fma4i_fmaddsubv4df4): Ditto.
2222 (fma4i_fmaddsubv2df4): Ditto.
2223 (fma4i_fmsubaddv8sf4): Ditto.
2224 (fma4i_fmsubaddv4sf4): Ditto.
2225 (fma4i_fmsubaddv4df4): Ditto.
2226 (fma4i_fmsubaddv2df4): Ditto.
2228 * doc/invoke.texi (-mfma4): Add documentation.
2229 * doc/extend.texi (x86 intrinsics): Add FMA4 intrinsics.
2231 2009-09-29 Richard Henderson <rth@redhat.com>
2233 * tree-eh.c (unsplit_eh): Do not unsplit if there's already
2234 an edge to the new destination block.
2236 2009-09-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2239 * pa.c (hppa_profile_hook): Use
2240 make_reg_eh_region_note_nothrow_nononlocal to add REG_EH_REGION note.
2242 2009-09-29 Steve Ellcey <sje@cup.hp.com>
2243 Alexander Monakov <amonakov@ispras.ru>
2246 * config/ia64/predicates.md (not_postinc_destination_operand): New.
2247 (not_postinc_memory_operand): New.
2248 (not_postinc_move_operand): New.
2249 * config/ia64/ia64.md (*cmovdi_internal): Disallow autoincrement.
2250 (*cmovsi_internal): Ditto.
2252 2009-09-29 Pat Haugen <pthaugen@us.ibm.com>
2254 * config/rs6000/rs6000.c (rs6000_issue_rate): Don't artificially
2255 restrict issue_rate in first pass when scheduling for register
2258 2009-09-29 Basile Starynkevitch <basile@starynkevitch.net>
2259 Rafael Avila de Espindola <espindola@google.com>
2261 * gengtype.c (plugin_output): New.
2262 (get_output_file_with_visibility): Return plugin_output for plugins.
2263 (main): Parse and use the -P option.
2264 * gty.texi: Update the command line format.
2266 2009-09-29 Jakub Jelinek <jakub@redhat.com>
2269 * dwarf2out.c (const_ok_for_output_1, const_ok_for_output): New
2271 (mem_loc_descriptor, loc_descriptor, add_const_value_attribute): Bail
2272 out if !const_ok_for_output.
2275 * dwarf2out.c (mem_loc_descriptor) <case CONCAT, case CONCATN,
2276 case VAR_LOCATION>: Remove gcc_unreachable ().
2278 2009-09-29 Harsha Jagasia <harsha.jagasia@amd.com>
2280 * config.gcc (i[34567]86-*-*): Remove mmintrin-common.h.
2281 (x86_64-*-*): Ditto.
2282 * config/i386/smmintrin.h: Move instructions in mmintrin-common.h
2283 back to smmintrin.h.
2284 * config/i386/cpuid.h: (bit_SSE5): Remove SSE5 bit.
2285 * config/i386/x86intrin.h: Remove SSE5.
2286 * config/i386/mmintrin-common.h: Delete file.
2287 * doc/extend.texi (x86 intrinsics): Remove SSE5 flags and builtins.
2289 2009-09-29 Richard Guenther <rguenther@suse.de>
2291 * alias.c (ao_ref_from_mem): Properly deal with off decl accesses
2292 resulting from stack temporaries on STRICT_ALIGNMENT targets.
2294 2009-09-29 Nick Clifton <nickc@redhat.com>
2296 * function.c (current_function_name): If there is no current
2297 function just return "<none>".
2299 2009-09-28 Sriraman Tallam <tmsriram@google.com>
2301 * tree-pass.h (register_pass_info): New structure.
2302 (pass_positioning_ops): Move enum from gcc-plugin.h.
2303 (register_pass): New function.
2304 * gcc-plugin.h (plugin_pass): Delete structure.
2305 (pass_positioning_ops): Delete enum.
2306 * plugin.c (regsiter_pass): Delete function.
2307 (position_pass): Delete function.
2308 (added_pass_nodes): Delete variable.
2309 (prev_added_pass_nodes): Delete variable.
2310 (pass_list_node): Delete structure.
2311 * passes.c (make_pass_instance): New function.
2312 (next_pass_1): Change to call make_pass_instance.
2313 (pass_list_node): Move structure from gcc-plugin.h.
2314 (added_pass_nodes): Move variable from plugin.c.
2315 (prev_added_pass_nodes): Move variable from plugin.c.
2316 (position_pass): New function.
2317 (register_pass): New function.
2319 2009-09-28 Easwaran Raman <eraman@google.com>
2321 * ifcvt.c (noce_try_abs): Recognize pattern and call
2322 expand_one_cmpl_abs_nojump.
2323 * optabs.c (expand_one_cmpl_abs_nojump): New function.
2324 * optabs.h (expand_one_cmpl_abs_nojump): Declare.
2326 2009-09-28 Ian Lance Taylor <iant@google.com>
2329 * c-opts.c (c_common_handle_option): Don't set
2330 warn_jump_misses_init for -Wall.
2331 * doc/invoke.texi (Warning Options): Update documentation.
2333 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2335 * Makefile.in ($(out_object_file)): Depend on
2336 gt-$(basename $(notdir $(out_file))).h.
2338 2009-09-28 Richard Henderson <rth@redhat.com>
2340 * except.h (struct eh_region_d): Add use_cxa_end_cleanup.
2341 * except.c (gen_eh_region): Set it.
2342 (duplicate_eh_regions_1): Copy it.
2343 * tree-eh.c (lower_resx): Use it to determine which function
2346 * langhooks.h (struct lang_hooks): Add eh_use_cxa_end_cleanup.
2347 * langhooks-def.h (LANG_HOOKS_EH_USE_CXA_END_CLEANUP): New.
2348 * builtins.def (BUILT_IN_CXA_END_CLEANUP): New.
2349 * tree.c (build_common_builtin_nodes): Remove parameter. Build
2350 BUILT_IN_CXA_END_CLEANUP if necessary.
2352 * c-common.c (c_define_builtins): Update call to
2353 build_common_builtin_nodes.
2355 2009-09-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
2357 * spu.c (get_branch_target): Return NULL for ASM_OPERANDS patterns.
2359 2009-09-28 Michael Matz <matz@suse.de>
2361 * builtins.c (interclass_mathfn_icode): New helper.
2362 (expand_builtin_interclass_mathfn): Use it here, and split folding
2364 (fold_builtin_interclass_mathfn): ... this new folder.
2365 (build_call_nofold_loc): New static helper.
2366 (build_call_nofold): New wrapper macro for above.
2367 (expand_builtin_int_roundingfn): Use it instead of build_call_expr.
2368 (expand_builtin_pow): Ditto.
2369 (expand_builtin_memset_args): Ditto.
2370 (expand_builtin_printf): Ditto.
2371 (expand_builtin_fprintf): Ditto.
2372 (expand_builtin_sprintf): Ditto.
2373 (expand_builtin_memory_chk): Ditto.
2374 (expand_builtin_mempcpy_args): Ditto and don't call folders.
2375 (expand_builtin_stpcpy): Ditto.
2376 (expand_builtin_strcmp): Ditto.
2377 (expand_builtin_strncmp): Ditto.
2378 (expand_builtin_strcpy): Remove FNDECL and MODE arguments.
2379 (expand_builtin_strcpy_args): Don't call folders.
2380 (expand_builtin_memcmp): Ditto.
2381 (expand_builtin_strncpy): Ditto, and use target.
2382 (expand_builtin_memcpy): Ditto.
2383 (expand_builtin_strstr, expand_builtin_strchr, expand_builtin_strrchr,
2384 expand_builtin_strpbrk, expand_builtin_memmove,
2385 expand_builtin_memmove_args, expand_builtin_bcopy,
2386 expand_builtin_memchr, expand_builtin_strcat, expand_builtin_strncat,
2387 expand_builtin_strspn, expand_builtin_strcspn,
2388 expand_builtin_fputs): Remove these.
2389 (expand_builtin): Don't call the above, change calls to other
2390 expanders that changed prototype.
2391 (fold_builtin_stpcpy): New folder split out from expand_builtin_stpcpy.
2392 (fold_builtin_1 <ISFINITE, ISINF, ISNORMAL>): Call
2393 fold_builtin_interclass_mathfn.
2394 (fold_builtin_2 <STPCPY>): Call fold_builtin_stpcpy.
2395 (fold_builtin_strcat): Add folding split from expand_builtin_strcat.
2397 * fold-const.c (fold_binary_loc <NE_EXPR>): Add !exp != 0 -> !exp.
2398 * passes.c (init_optimization_passes): Move pass_fold_builtins
2399 after last phiopt pass.
2400 * tree-inline.c (fold_marked_statements): When folding builtins
2401 iterate over all instruction potentially generated.
2402 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Declare
2404 (fold_gimple_call): Use it to always fold calls (into potentially
2405 multiple instructions).
2406 * tree-ssa-dom.c (optimize_stmt): Resolve __builtin_constant_p
2407 calls into zero at this time.
2408 * tree-ssa-propagate.c (substitute_and_fold): Ignore multiple
2409 statements generated by builtin folding.
2411 2009-09-28 Nick Clifton <nickc@redhat.com>
2413 * config/m32r/m32r.c (m32r_is_insn): Return false for debugging insns.
2415 2009-09-28 Duncan Sands <baldrick@free.fr>
2417 * gcc-plugin.h (PLUGIN_REGISTER_GGC_CACHES): New event.
2418 * plugin.c (plugin_event_name): Add PLUGIN_REGISTER_GGC_CACHES.
2419 (register_callback): Dispatch it.
2420 (invoke_plugin_callbacks): Incorporate in sanity check.
2421 * ggc.h (ggc_register_cache_tab): Add declaration.
2422 * ggc-common.c (ggc_register_root_tab): Simplify.
2423 (const_ggc_cache_tab_t): New typedef.
2424 (extra_cache_vec): New vector of dynamically added cache tables.
2425 (ggc_register_cache_tab): New function.
2426 (ggc_scan_cache_tab): New function.
2427 (ggc_mark_roots): Simplify dynamic roots. Handle dynamic caches.
2428 * doc/plugins.texi: Document PLUGIN_REGISTER_GGC_CACHES.
2430 2009-09-27 Richard Henderson <rth@redhat.com>
2432 * tree-ssa-ccp.c (optimize_stack_restore): Relax the conditions under
2433 which we remove __builtin_stack_restore.
2435 2009-09-27 Bernd Schmidt <bernd.schmidt@analog.com>
2437 * loop-iv.c (iv_analyze_op): Use function_invariant_p, not CONSTANT_P,
2438 to test for GRD_INVARIANT.
2439 (simple_rhs_p): Anything that's function_invariant_p is fine.
2441 2009-09-27 Rafael Avila de Espindola <espindola@google.com>
2443 * gengtype.c (main): Use plunge_files instead of plugin_output.
2445 2009-09-27 Basile Starynkevitch <basile@starynkevitch.net>
2446 Rafael Avila de Espindola <espindola@google.com>
2448 * gengtype.c (write_root, write_roots): Add a emit_pch argument.
2449 Don't print pch related info if it is false.
2450 (main): Don't print pch info in plugin mode.
2452 2009-09-27 Eric Botcazou <ebotcazou@adacore.com>
2454 * dwarf2out.c (enum dw_val_class): Replace dw_val_class_long_long
2455 with dw_val_class_const_double.
2456 (struct dw_val_struct): Replace val_long_long with val_double and
2457 adjust for above change.
2458 (output_loc_operands): Likewise.
2459 (add_AT_long_long): Rename into...
2460 (add_AT_double): ...this.
2461 (print_die): Replace dw_val_class_long_long with
2462 dw_val_class_const_double and adjust.
2463 (attr_checksum): Likewise.
2464 (same_dw_val_p): Likewise.
2465 (size_of_die): Likewise.
2466 (value_format): Likewise.
2467 (output_die): Likewise.
2468 (loc_descriptor) <CONST_DOUBLE>: Likewise.
2469 (add_const_value_attribute) <CONST_DOUBLE>: Call add_AT_double
2470 instead of add_AT_long_long.
2471 (add_bound_info) <INTEGER_CST>: Generate the bound as an unsigned
2472 value with the precision of its type.
2474 2009-09-27 Andreas Schwab <schwab@linux-m68k.org>
2477 * c-typeck.c (build_conditional_expr): Use the readonly and
2478 volatile flags of the operand types, not of the operands itself.
2480 2009-09-27 Peter O'Gorman <pogma@thewrittenword.com>
2482 * collect2.c (main): Look for -brtl before adding libraries.
2484 2009-09-27 Jonathan Gray <jsg@openbsd.org>
2486 * config.gcc: Update OpenBSD targets.
2487 * config/openbsd-stdint.h: New file.
2488 * config/openbsd-libpthread.h: New file.
2489 * config/openbsd.h: Update and break out LIB_SPEC definition.
2490 * config/alpha/openbsd.h: Overhaul to reflect ELF migration.
2491 * config/i386/openbsdelf.h: Correct types.
2492 * config/m68k/openbsd.h: Likewise.
2493 * config/mips/openbsd.h: Likewise.
2494 * config/vax/openbsd.h: Likewise.
2496 2009-09-27 Eric Botcazou <ebotcazou@adacore.com>
2498 * fold-const.c (maybe_lvalue_p): Return false for M(IN|AX)_EXPR.
2499 (extract_muldiv_1) <MINUS_EXPR>: Swap operands if necessary.
2500 * stor-layout.c (layout_type) <ARRAY_TYPE>: Do not take the maximum
2501 of the length and zero.
2503 2009-09-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2505 * Makefile.in (TOPLEV_H): Use $(INPUT_H) not input.h.
2506 (FLAGS_H): Add options.h $(REAL_H).
2507 (SEL_SCHED_IR_H): Add $(BITMAP_H) vecprim.h $(CFGLOOP_H).
2508 (TREE_VECTORIZER_H): New.
2509 (EBITMAP_H): Renamed from EBIMAP_H.
2510 (c-decl.o, c-objc-common.o, c-pretty-print.o, attribs.o, c-omp.o)
2511 (gtype-desc.o, ggc-common.o, ggc-page.o, ggc-zone.o, langhooks.o)
2512 (tree.o, tree-ssa-structalias.o, tree-ssa-ter.o, tree-ssanames.o)
2513 (tree-phinodes.o, tree-ssa-loop.o, tree-ssa-math-opts.o)
2514 (gimple-low.o, omp-low.o, sese.o, graphite-blocking.o)
2515 (graphite-clast-to-gimple.o, graphite-dependences.o)
2516 (graphite-interchange.o, graphite-poly.o, graphite-scop-detection.o)
2517 (graphite-sese-to-poly.o, tree-vect-loop.o, tree-vect-loop-manip.o)
2518 (tree-vect-patterns.o, tree-vect-slp.o, tree-vect-stmts.o)
2519 (tree-vect-data-refs.o, tree-vectorizer.o, gimple.o, tree-mudflap.o)
2520 (targhooks.o, stmt.o, emit-rtl.o, ipa.o, matrix-reorg.o, ipa-inline.o)
2521 (gcse.o, tree-ssa-ccp.o, df-byte-scan.o, vec.o, caller-save.o)
2522 (ira-build.o, ira-costs.o, ira-color.o, ira-emit.o, ira.o)
2523 (haifa-sched.o, sched-rgn.o, sel-sched.o, sel-sched-dump.o)
2524 (sel-sched-ir.o, final.o, $(out_object_file)): Dependencies
2525 updated and fixed as per above changes and per
2526 check_makefile_deps.sh output.
2529 * configure.ac: Use $LIBS for '-ldl', not $LDFLAGS.
2530 * configure: Regenerate.
2532 2009-09-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2534 * doc/install.texi: Update minimum MPC version to 0.7.
2536 2009-09-26 Gerald Pfeifer <gerald@pfeifer.com>
2538 * doc/install.texi (Binaries): Remove reference to the binary
2539 distribution CD-ROM from the FSF.
2541 2009-09-26 Michael Matz <matz@suse.de>
2545 * tree-ssa-coalesce.c (coalesce_ssa_name): Add only SSA names
2546 that are mentioned in the body.
2548 2009-09-26 Michael Matz <matz@suse.de>
2550 PR tree-optimization/41454
2551 * tree-ssa-dom (stmts_to_rescan): Remove variable.
2552 (tree_ssa_dominator_optimize): Don't allocate and free it.
2553 (dom_opt_leave_block): Don't iterate over it.
2554 (eliminate_redundant_computations): Don't return a value.
2555 (cprop_operand, cprop_into_stmt): Ditto.
2556 (optimize_stmt): Don't defer updating stmts.
2558 2009-09-25 Dodji Seketeli <dodji@redhat.com>
2560 * dwarf2out.c (dwarf_tag_name, gen_generic_params_dies,
2561 generic_parameter_die, template_parameter_pack_die,
2562 gen_formal_parameter_die, gen_subprogram_die): Adjust after
2563 renaming DW_TAG_formal_parameter_pack and
2564 DW_TAG_template_parameter_pack into DW_TAG_GNU_formal_parameter_pack
2565 and DW_TAG_GNU_template_parameter_pack.
2567 2009-09-25 Anatoly Sokolov <aesok@post.ru>
2569 * config/v850/v850.h (FUNCTION_VALUE): Remove.
2570 * config/v850/v850.c (v850_function_value): New function.
2571 (TARGET_FUNCTION_VALUE): Define.
2573 2009-09-25 Jakub Jelinek <jakub@redhat.com>
2575 * tree-vect-stmts.c (vectorizable_call): Call
2576 mark_symbols_for_renaming after vect_finish_stmt_generation.
2578 * dwarf2out.c (tls_mem_loc_descriptor): Pass 1 instead of 2
2579 to loc_descriptor_from_tree.
2580 (add_location_or_const_value_attribute): Pass 0 instead of 2
2581 for decl_by_reference_p decls.
2583 2009-09-25 Richard Guenther <rguenther@suse.de>
2586 * tree-dfa.c (get_ref_base_and_extent): Fix issue with trailing
2589 2009-09-25 Ben Elliston <bje@au.ibm.com>
2591 * doc/invoke.texi (RS/6000 and PowerPC Options): Add missing comma
2594 2009-09-25 Alan Modra <amodra@bigpond.net.au>
2596 * config/rs6000/rs6000.md (load_toc_v4_PIC_3c): Correct POWER
2597 form of instruction.
2599 2009-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2602 * fold-const.c (const_binop): Handle complex int division.
2603 * tree-complex.c (expand_complex_div_straight,
2604 expand_complex_div_wide): Update comments.
2606 2009-09-24 DJ Delorie <dj@redhat.com>
2609 * config/m32c/m32c.h (REG_CLASS_CONTENTS): Add R13.
2610 (reg_class): Likewise.
2611 (REG_CLASS_NAMES): Likewise.
2612 * config/m32c/m32c.c (m32c_reg_class_from_constraint): Likewise.
2613 (m32c_override_options): Disable -fivopts for M32C.
2615 2009-09-24 Michael Meissner <meissner@linux.vnet.ibm.com>
2617 * config/rs6000/predicates.md (indexed_or_indirect_operand):
2618 Delete VSX load/store with update support.
2619 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Ditto.
2620 * config/rs6000/vsx.md (vsx_mov<mode>): Ditto.
2624 (VStype_load_update): Ditto.
2625 (VStype_store_update): Ditto.
2626 (vsx_load<VSX_U:mode>_update_<P:mptrsize>): Ditto.
2627 (vsx_store<VSX_U:mode>_update_<P:mptrsize>): Ditto.
2629 * config/rs6000/rs6000.h (enum rs6000_builtins): Delete VSX
2630 load/store with update builtins.
2632 2009-09-24 Kai Tietz <kai.tietz@onevision.com>
2634 * libgcc2.c (L_trampoline): Prototype for getpagesize
2635 and mprotect in WINNT case.
2637 2009-09-24 Anatoly Sokolov <aesok@post.ru>
2639 * config/rs6000/rs6000.h (FUNCTION_VALUE): Remove macro.
2640 * config/rs6000/rs6000-protos.h (rs6000_function_value): Remove.
2641 * config/rs6000/rs6000.c (rs6000_function_value): Make static, add
2642 'outgoing' argument.
2643 (TARGET_FUNCTION_VALUE): Define.
2645 2009-09-24 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
2647 * config/darwin.h (DWARF2_DEBUGGING_INFO): Define as 1.
2649 2009-09-24 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
2652 * common.opt: Initialize dwarf_strict to -1.
2653 * toplev.c (process_options): Catch unset dwarf_strict
2654 and set to 0 for all targets not overriding.
2655 * config/darwin.c (darwin_override_options): Catch unset
2656 dwarf_strict and override to 1.
2658 2009-09-24 Jeff Law <law@redhat.com>
2660 * tree-into-ssa.c (rewrite_into_ssa): Free interesting_blocks.
2662 2009-09-24 Richard Guenther <rguenther@suse.de>
2664 PR tree-optimization/36143
2665 PR tree-optimization/38747
2666 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Only
2667 create VIEW_CONVERT_EXPRs for TBAA compatible accesses.
2669 2009-09-24 Jakub Jelinek <jakub@redhat.com>
2672 * dwarf2out.c (add_const_value_attribute): For HIGH and CONST_FIXED,
2673 return false instead of gcc_unreachable (). For CONST return the
2674 value returned by recursive call instead of always returning true.
2675 (tree_add_const_value_attribute): Return the value returned by
2676 add_const_value_attribute instead of always returning true if rtl
2679 2009-09-23 Justin Seyster <jrseys@gmail.com>
2681 * Makefile.in (PLUGIN_HEADERS): Include real.h.
2683 2009-09-24 Jakub Jelinek <jakub@redhat.com>
2685 * cgraphunit.c (cgraph_lower_function): Revert last change.
2686 * targhooks.c (default_static_chain): Use !DECL_STATIC_CHAIN
2687 instead of DECL_NO_STATIC_CHAIN.
2688 * tree-cfg.c (verify_gimple_call): Likewise.
2689 * tree-nested.c (get_chain_decl, get_chain_field,
2690 convert_tramp_reference_op, convert_gimple_call): Likewise.
2691 (convert_all_function_calls): Likewise. Always set or clear
2692 DECL_STATIC_CHAIN initially, for !n->outer clear it.
2693 (lower_nested_functions): Remove DECL_NO_STATIC_CHAIN checking code.
2694 * c-parser.c (c_parser_declaration_or_fndef): Set DECL_STATIC_CHAIN
2696 * print-tree.c (print_node): Handle DECL_STATIC_CHAIN instead of
2697 DECL_NO_STATIC_CHAIN.
2698 * config/i386/i386.c (ix86_static_chain): Use !DECL_STATIC_CHAIN
2699 instead of DECL_NO_STATIC_CHAIN.
2700 (ix86_function_regparm, find_drap_reg): Likewise. Don't test
2701 decl_function_context.
2702 * varasm.c (initializer_constant_valid_p): Likewise.
2703 * tree.h (DECL_NO_STATIC_CHAIN): Renamed to ...
2704 (DECL_STATIC_CHAIN): ... this.
2705 * config/moxie/moxie.c (moxie_static_chain): Use !DECL_STATIC_CHAIN
2706 instead of DECL_NO_STATIC_CHAIN.
2708 2009-09-23 Basile Starynkevitch <basile@starynkevitch.net>
2709 Rafael Avila de Espindola <espindola@google.com>
2711 * gengtype.c (nb_plugin_files): Make it unsigned to match
2712 num_gt_files. Adjust other variables to avoid warnings.
2713 (main): Allocate an all zero lang_bitmap before each plugin file name
2714 to match regular file names.
2716 2009-09-23 Richard Henderson <rth@redhat.com>
2718 * doc/tm.texi (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
2719 (TARGET_STATIC_CHAIN): Mention that this hook must be used for
2720 static chain passed in memory.
2721 * system.h (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Poison.
2722 * targhooks.c (default_static_chain): Don't handle STATIC_CHAIN,
2723 STATIC_CHAIN_INCOMING. Issue a sorry if there's no
2724 STATIC_CHAIN_REGNUM defined.
2726 * config/picochip/picochip-protos.h: s/class/klass/.
2727 * config/picochip/picochip.c (TARGET_STATIC_CHAIN): New.
2728 (picochip_static_chain): New.
2729 * config/picochip/picochip.h (STATIC_CHAIN): Remove.
2730 (STATIC_CHAIN_INCOMING): Remove.
2732 * config/xtensa/xtensa.c (TARGET_STATIC_CHAIN): New.
2733 (xtensa_static_chain): New.
2734 * config/xtensa/xtensa.h (STATIC_CHAIN): Remove.
2735 (STATIC_CHAIN_INCOMING): Remove.
2737 2009-09-23 Anatoly Sokolov <aesok@post.ru>
2739 * config/pa/pa.h (FUNCTION_VALUE): Remove macro.
2740 * config/pa/pa-protos.h (function_value): Remove.
2741 * config/pa/pa.c (pa_function_value): Rename from function_value.
2742 Make static, add 'outgoing' argument.
2743 (TARGET_FUNCTION_VALUE): Define.
2745 2009-09-23 Anatoly Sokolov <aesok@post.ru>
2747 * config/avr/avr.c (avr_regs_to_save): Use current_function_is_leaf
2748 instead of cfun->machine->is_leaf.
2749 * config/avr/avr.h (machine_function): Remove is_leaf field.
2751 2009-09-23 Jakub Jelinek <jakub@redhat.com>
2754 * dwarf2out.c (address_of_int_loc_descriptor): Don't emit
2755 DW_OP_piece after DW_OP_stack_value, adjust size calculations
2756 for it, when DW_OP_stack_value and DW_OP_implicit_value has
2757 the same size, prefer DW_OP_stack_value.
2758 (loc_descriptor, loc_list_for_address_of_addr_expr_of_indirect_ref,
2759 loc_list_from_tree): Don't emit DW_OP_piece after DW_OP_stack_value.
2761 2009-09-23 Alexandre Oliva <aoliva@redhat.com>
2764 * var-tracking.c (add_with_sets): Sort MO_VAL_LOC last among uses.
2766 2009-09-23 Alexandre Oliva <aoliva@redhat.com>
2769 * cfgexpand.c (convert_debug_memory_address): New.
2770 (expand_debug_expr): Convert base address and offset to the same
2771 mode. Use it to convert addresses to other modes. Accept
2774 2009-09-23 Richard Guenther <rguenther@suse.de>
2776 * alias.c (ao_ref_from_mem): Correct for negative MEM_OFFSET
2777 produced for bigendian targets with promoted subregs.
2779 2009-09-23 Richard Guenther <rguenther@suse.de>
2781 * value-prof.c (gimple_ic): Purge old EH edges only after building
2784 2009-09-23 Nick Clifton <nickc@redhat.com>
2786 * config/arc/arc.c (arc_trampoline_init): Fix typo.
2788 2009-09-23 Jakub Jelinek <jakub@redhat.com>
2791 * doc/invoke.texi: Document -gstrict-dwarf and -gno-strict-dwarf.
2794 * cgraphunit.c (cgraph_lower_function): Set DECL_NO_STATIC_CHAIN
2795 on non-nested functions.
2797 2009-09-23 Jakub Jelinek <jakub@redhat.com>
2798 Jan Hubicka <jh@suse.cz>
2800 * dwarf2out.c (loc_list_plus_const): Only define if
2801 DWARF2_DEBUGGING_INFO.
2802 (address_of_int_loc_descriptor): Likewise.
2805 * dwarf2out.c (mem_loc_descriptor): Handle HIGH.
2807 2009-09-23 Uros Bizjak <ubizjak@gmail.com>
2810 * c-typeck.c (build_binary_op) <short_shift>: Check that integer
2811 constant is more than zero.
2813 2009-09-23 Alan Modra <amodra@bigpond.net.au>
2816 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
2817 call final to emit non-scheduled prologue, instead insert at entry.
2819 2009-09-22 Loren J. Rittle <ljrittle@acm.org>
2820 Joseph S. Myers <joseph@codesourcery.com>
2822 * doc/install.texi (*-*-freebsd*): Add proper format codes.
2824 2009-09-22 Basile Starynkevitch <basile@starynkevitch.net>
2825 Rafael Avila de Espindola <espindola@google.com>
2827 * gengtype.c (is_file_equal): New function.
2828 (close_output_files): Use is_file_equal. Free of->buf.
2830 2009-09-22 Basile Starynkevitch <basile@starynkevitch.net>
2831 Rafael Avila de Espindola <espindola@google.com>
2833 * gengtype.c (write_types, write_local): Add the output_header
2834 argument. Update all callers.
2836 2009-09-22 Dodji Seketeli <dodji@redhat.com>
2838 * dwarf2out.c (template_parameter_pack_die,
2839 gen_formal_parameter_pack_die ): New functions.
2840 (make_ith_pack_parameter_name): Remove this function.
2841 (dwarf_tag_name): Support printing DW_TAG_template_parameter_pack and
2842 DW_TAG_formal_parameter_pack.
2843 (gen_generic_params_dies): Represent each template parameter pack
2844 by a DW_TAG_template_parameter_pack DIE. Argument pack elements are
2845 represented by usual DW_TAG_template_*_parameter DIEs that are
2846 children of the DW_TAG_template_parameter_pack element DIE.
2847 (generic_parameter_die): This doesn't deal with parameter pack
2848 names anymore. Don't generate DW_AT_name for some DIEs, e.g. children
2849 of parameter pack DIEs.
2850 (gen_formal_parameter_die): Add a flag to not emit DW_AT_name
2851 in certain cases, e.g. for pack elements.
2852 (gen_formal_types_die, gen_decl_die): Adjust usage of
2853 gen_formal_parameter_die.
2854 (gen_subprogram_die): Represent each function parameter pack by a
2855 DW_TAG_formal_parameter_pack DIE. Arguments of of the pack are
2856 represented by usual DW_TAG_formal_parameter DIEs that are children
2857 of the DW_TAG_formal_parameter_pack DIE. Remove references to
2858 ____builtin_va_alist decls as no part of the compiler uses those
2860 * langhooks.h (struct lang_hooks_for_decls): Add
2861 function_parm_expanded_from_pack_p, get_generic_function_decl
2862 and function_parameter_pack_p hooks. Fix comment for
2863 get_innermost_generic_parms hook.
2864 * langhooks-def.h (LANG_HOOKS_FUNCTION_PARAMETER_PACK_P,
2865 LANG_HOOKS_FUNCTION_PARM_EXPANDED_FROM_PACK_P ): Declare new hook
2866 macros and use them to initialize lang_hook.
2868 2009-09-22 Richard Henderson <rth@redhat.com>
2870 * system.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE): Poison.
2871 (TRAMPOLINE_ADJUST_ADDRESS): Poison.
2872 * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): Don't conditionalize
2873 on TRAMPOLINE_TEMPLATE.
2874 (TARGET_TRAMPOLINE_ADJUST_ADDRESS): Don't conditionalize on
2875 TRAMPOLINE_ADJUST_ADDRESS.
2876 * targhooks.c (default_asm_trampoline_template): Remove.
2877 (default_trampoline_adjust_address): Remove.
2878 (default_trampoline_init): Don't handle INITIALIZE_TRAMPOLINE.
2879 * targhooks.h: Update decls.
2881 2009-09-22 Dave Korn <dave.korn.cygwin@gmail.com>
2883 * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Enable.
2884 * config/i386/cygwin.h (LIBGCJ_SONAME): Define.
2885 * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
2887 2009-09-22 Alexandre Oliva <aoliva@redhat.com>
2890 * reload1.c (reload): Reset debug insns with pseudos without
2893 2009-09-22 Janis Johnson <janis187@us.ibm.com>
2895 * config/i386/i386.c (ix86_scalar_mode_supported_p): Don't return
2896 unconditional true for decimal float modes.
2897 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Ditto.
2898 * config/s390/s390.c (s390_scalar_mode_supported_p): Ditto.
2900 2009-09-22 Loren J. Rittle <ljrittle@acm.org>
2902 * unwind-dw2-fde-glibc.c: Define and use USE_PT_GNU_EH_FRAME.
2903 Enable a new case for __FreeBSD__ >= 7.
2904 * crtstuff.c: Define USE_PT_GNU_EH_FRAME for __FreeBSD__ >= 7.
2905 * config/t-freebsd: Define LIB2ADDEH and LIB2ADDEHDEP.
2906 * config/freebsd-spec.h: Conditionally define LINK_EH_SPEC
2907 and USE_LD_AS_NEEDED.
2909 * doc/install.texi (*-*-freebsd*): Update target information.
2911 2009-09-22 Richard Guenther <rguenther@suse.de>
2914 * tree-dfa.c (get_ref_base_and_extent): Handle trailing
2915 arrays really properly.
2917 2009-09-22 Richard Henderson <rth@redhat.com>
2920 * target.h (struct gcc_target): Add asm_out.trampoline_template,
2921 calls.static_chain, calls.trampoline_init,
2922 calls.trampoline_adjust_address.
2923 * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
2924 (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New.
2925 (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
2926 * builtins.c (expand_builtin_setjmp_receiver): Use
2927 targetm.calls.static_chain; only clobber registers.
2928 (expand_builtin_init_trampoline): Use targetm.calls.trampoline_init;
2929 set up memory attributes properly for the trampoline block.
2930 (expand_builtin_adjust_trampoline): Use
2931 targetm.calls.trampoline_adjust_address.
2932 * calls.c (prepare_call_address): Add fndecl argument. Use
2933 targetm.calls.static_chain.
2934 * df-scan.c (df_need_static_chain_reg): Remove.
2935 (df_get_entry_block_def_set): Use targetm.calls.static_chain;
2936 consolodate static chain handling.
2937 * doc/tm.texi: Document new hooks.
2938 * emit-rtl.c (static_chain_rtx, static_chain_incoming_rtx): Remove.
2939 (init_emit_regs): Don't initialize them.
2940 * expr.h (prepare_call_address): Update decl.
2941 * final.c (profile_function): Use targetm.calls.static_chain.
2942 * function.c (expand_function_start): Likewise.
2943 * rtl.h (static_chain_rtx, static_chain_incoming_rtx): Remove.
2944 * stmt.c (expand_nl_goto_receiver): Use targetm.calls.static_chain;
2945 only clobber registers.
2946 * targhooks.c (default_static_chain): New.
2947 (default_asm_trampoline_template, default_trampoline_init): New.
2948 (default_trampoline_adjust_address): New.
2949 * targhooks.h: Declare them.
2950 * varasm.c (assemble_trampoline_template): Use
2951 targetm.asm_out.trampoline_template. Make the memory block const
2954 * config/alpha/alpha.c (alpha_trampoline_init): Rename from
2955 alpha_initialize_trampoline. Make static. Merge VMS parameter
2956 differences into the TARGET_ABI_OPEN_VMS code block.
2957 (TARGET_TRAMPOLINE_INIT): New.
2958 * config/alpha/alpha.h (TRAMPOLINE_TEMPLATE): Remove.
2959 (TRAMPOLINE_SECTION, INITIALIZE_TRAMPOLINE): Remove.
2960 * config/alpha/vms.h (TRAMPOLINE_SIZE, TRAMPOLINE_ALIGNMENT): Remove.
2961 (INITIALIZE_TRAMPOLINE): Remove.
2963 * config/arc/arc.h (TRAMPOLINE_ALIGNMENT): New.
2964 (TRAMPOLINE_TEMPLATE): Merge with ...
2965 (INITIALIZE_TRAMPOLINE): ... this and move ...
2966 * config/arc/arc.c (arc_trampoline_init): ... here.
2967 (TARGET_TRAMPOLINE_INIT): New.
2969 * config/arm/arm.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
2970 (TARGET_TRAMPOLINE_INIT, TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
2971 (arm_asm_trampoline_template): New.
2972 (arm_trampoline_init, arm_trampoline_adjust_address): New.
2973 * config/arm/arm.h (TRAMPOLINE_TEMPLATE, ARM_TRAMPOLINE_TEMPLATE,
2974 THUMB2_TRAMPOLINE_TEMPLATE, THUMB1_TRAMPOLINE_TEMPLATE): Move all
2975 code to arm_asm_trampoline_template.
2976 (TRAMPOLINE_ADJUST_ADDRESS): Move code to
2977 arm_trampoline_adjust_address.
2978 (INITIALIZE_TRAMPOLINE): Move code to arm_trampoline_init;
2979 adjust for target hook parameters.
2981 * config/avr/avr.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE):
2984 * config/bfin/bfin-protos.h (initialize_trampoline): Remove.
2985 * config/bfin/bfin.c (bfin_asm_trampoline_template): New.
2986 (bfin_trampoline_init): Rename from initialize_trampoline;
2987 make static; update for target hook parameters.
2988 (TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New.
2989 * config/bfin/bfin.h (TRAMPOLINE_TEMPLATE): Move code to
2990 bfin_asm_trampoline_template.
2991 (INITIALIZE_TRAMPOLINE): Remove.
2993 * config/cris/cris.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
2994 TARGET_TRAMPOLINE_INIT, cris_asm_trampoline_template,
2995 cris_trampoline_init): New.
2996 * config/cris/cris.h (TRAMPOLINE_TEMPLATE): Move code to
2997 cris_asm_trampoline_template.
2998 (INITIALIZE_TRAMPOLINE): Move code to cris_trampoline_init;
2999 adjust for target hook parameters.
3001 * config/crx/crx.h (INITIALIZE_TRAMPOLINE): Remove.
3003 * config/fr30/fr30.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
3004 TARGET_TRAMPOLINE_INIT, fr30_asm_trampoline_template,
3005 fr30_trampoline_init): New.
3006 * config/fr30/fr30.h (TRAMPOLINE_TEMPLATE): Move code to
3007 fr30_asm_trampoline_template.
3008 (INITIALIZE_TRAMPOLINE): Move code to fr30_trampoline_init;
3009 adjust for target hook parameters.
3011 * config/frv/frv.c (TARGET_TRAMPOLINE_INIT): New.
3012 (frv_trampoline_init): Rename from frv_initialize_trampoline;
3013 make static, adjust arguments for TARGET_TRAMPOLINE_INIT hook.
3014 * config/frv/frv.h (INITIALIZE_TRAMPOLINE): Remove.
3015 * config/frv/frv-protos.h (frv_initialize_trampoline): Remove.
3017 * config/h8300/h8300.c (h8300_trampoline_init): New.
3018 (TARGET_TRAMPOLINE_INIT): New.
3019 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Move code
3020 to h8300_trampoline_init and adjust for hook parameters.
3022 * config/ia64/ia64-protos.h (ia64_initialize_trampoline): Remove.
3023 * config/ia64/ia64.c (TARGET_TRAMPOLINE_INIT): New.
3024 (ia64_trampoline_init): Rename from ia64_initialize_trampoline;
3025 make static; adjust for hook parameters.
3026 * config/ia64/ia64.h (INITIALIZE_TRAMPOLINE): Remove.
3028 * config/iq2000/iq2000.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
3029 (TARGET_TRAMPOLINE_INIT): New.
3030 (iq2000_asm_trampoline_template, iq2000_trampoline_init): New.
3031 * config/iq2000/iq2000.h (TRAMPOLINE_TEMPLATE): Move code to
3032 iq2000_asm_trampoline_template.
3033 (INITIALIZE_TRAMPOLINE): Move code to iq2000_trampoline_init.
3034 (TRAMPOLINE_CODE_SIZE): New.
3035 (TRAMPOLINE_SIZE): Use it.
3036 (TRAMPOLINE_ALIGNMENT): Follow Pmode.
3038 * config/m32c/m32c-protos.h (m32c_initialize_trampoline): Remove.
3039 * config/m32c/m32c.c (TARGET_TRAMPOLINE_INIT): New.
3040 (m32c_trampoline_init): Rename from m32c_initialize_trampoline;
3041 adjust for hook parameters.
3042 * config/m32c/m32c.h (INITIALIZE_TRAMPOLINE): Remove.
3044 * config/m32r/m32r.c (TARGET_TRAMPOLINE_INIT): New.
3045 (m32r_trampoline_init): New.
3046 * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Move code to
3047 m32r_trampoline_init.
3049 * config/m68hc11/m68hc11.c (TARGET_TRAMPOLINE_INIT): New.
3050 (m68hc11_trampoline_init): Rename from m68hc11_initialize_trampoline;
3051 make static; update for hook parameters.
3052 * config/m68hc11/m68hc11-protos.h: Update.
3053 * config/m68hc11/m68hc11.h (INITIALIZE_TRAMPOLINE): Remove.
3055 * config/mcore/mcore.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
3056 (TARGET_TRAMPOLINE_INIT): New.
3057 (mcore_function_value): Fix typo.
3058 (mcore_asm_trampoline_template, mcore_trampoline_init): New.
3059 * config/mcore/mcore.h (TRAMPOLINE_TEMPLATE): Move code
3060 to mcore_asm_trampoline_template.
3061 (INITIALIZE_TRAMPOLINE): Move code to mcore_trampoline_init.
3063 * config/mep/mep.h (INITIALIZE_TRAMPOLINE): Remove.
3064 * config/mep/mep.c (TARGET_TRAMPOLINE_INIT): New.
3065 (mep_trampoline_init): Rename from mep_init_trampoline; make static;
3066 update for hook parameters.
3067 * config/mep/mep-protos.h (mep_init_trampoline): Remove.
3069 * config/mips/mips.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
3070 mips_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
3071 mips_trampoline_init): New.
3072 * config/mips/mips.h (TRAMPOLINE_TEMPLATE): Move code to
3073 mips_asm_trampoline_template.
3074 (INITIALIZE_TRAMPOLINE): Move code to mips_trampoline_init;
3075 update for hook parameters.
3077 * gcc/config/mmix/mmix.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
3078 (TARGET_TRAMPOLINE_INIT): New.
3079 (mmix_trampoline_size): Remove.
3080 (mmix_asm_trampoline_template): Rename from mmix_trampoline_template;
3081 make static. Remove out-of-date tetra vs octa comment.
3082 (mmix_trampoline_init): Rename from mmix_initialize_trampoline;
3083 make static; update for hook parameters.
3084 * config/mmix/mmix.h (TRAMPOLINE_TEMPLATE): Remove.
3085 (INITIALIZE_TRAMPOLINE): Remove.
3086 (TRAMPOLINE_SIZE): Use a constant instead of mmix_trampoline_size.
3087 (TRAMPOLINE_ALIGNMENT): New.
3088 * gcc/config/mmix/mmix-protos.h: Update.
3090 * config/mn10300/mn10300.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
3091 mn10300_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
3092 mn10300_trampoline_init): New.
3093 * config/mn10300/mn10300.h (TRAMPOLINE_TEMPLATE): Move code to
3094 mn10300_asm_trampoline_template.
3095 (INITIALIZE_TRAMPOLINE): Move code to mn10300_trampoline_init.
3097 * config/moxie/moxie.c (moxie_static_chain,
3098 moxie_asm_trampoline_template, moxie_trampoline_init,
3099 TARGET_STATIC_CHAIN, TARGET_ASM_TRAMPOLINE_TEMPLATE,
3100 TARGET_TRAMPOLINE_INIT): New.
3101 * config/moxie/moxie.h (INITIALIZE_TRAMPOLINE): Move code to
3102 moxie_trampoline_init.
3103 (TRAMPOLINE_TEMPLATE): Move code to moxie_asm_trampoline_template.
3104 (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
3106 * gcc/config/pa/pa.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
3107 pa_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
3108 pa_trampoline_init, TARGET_TRAMPOLINE_ADJUST_ADDRESS,
3109 pa_trampoline_adjust_address): New.
3110 * config/pa/pa.h (TRAMPOLINE_TEMPLATE): Move code to
3111 pa_asm_trampoline_template.
3112 (TRAMPOLINE_ALIGNMENT): New.
3113 (TRAMPOLINE_CODE_SIZE): Move to pa.c.
3114 (INITIALIZE_TRAMPOLINE): Move code to pa_trampoline_init;
3115 adjust for hook parameters.
3116 (TRAMPOLINE_ADJUST_ADDRESS): Move code to pa_trampoline_adjust_address.
3118 * config/pdp11/pdp11.c (pdp11_trampoline_init): New.
3119 (TARGET_TRAMPOLINE_INIT): New.
3120 * config/pdp11/pdp11.h (TRAMPOLINE_TEMPLATE): Remove.
3121 (INITIALIZE_TRAMPOLINE): Move code to pdp11_trampoline_init.
3123 * config/picochip/picochip.h (INITIALIZE_TRAMPOLINE): Remove.
3125 * config/rs6000/rs6000-protos.h (rs6000_initialize_trampoline): Remove.
3126 * config/rs6000/rs6000.c (TARGET_TRAMPOLINE_INIT): New.
3127 (rs6000_trampoline_init): Rename from rs6000_initialize_trampoline;
3128 make static; adjust parameters for the hook.
3129 * config/rs6000/rs6000.h (INITIALIZE_TRAMPOLINE): Remove.
3131 * config/s390/s390.c (s390_asm_trampoline_template): Rename from
3132 s390_trampoline_template; make static.
3133 (s390_trampoline_init): Rename from s390_initialize_trampoline;
3134 make static; adjust for target hook.
3135 (TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New.
3136 * config/s390/s390-protos.h: Remove trampoline decls.
3137 * config/s390/s390.h (INITIALIZE_TRAMPOLINE): Remove.
3138 (TRAMPOLINE_TEMPLATE): Remove.
3139 (TRAMPOLINE_ALIGNMENT): New.
3141 * config/score/score-protos.h (score_initialize_trampoline): Remove.
3142 * config/score/score.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
3143 (TARGET_TRAMPOLINE_INIT): New.
3144 (score_asm_trampoline_template): New.
3145 (score_trampoline_init): Rename from score_initialize_trampoline;
3146 make static; adjust for hook parameters.
3147 * config/score/score.h (TRAMPOLINE_TEMPLATE): Move code to
3148 score[37]_asm_trampoline_template.
3149 (INITIALIZE_TRAMPOLINE): Remove.
3150 * config/score/score3.c (score3_asm_trampoline_template): New.
3151 (score3_trampoline_init): Rename from score3_initialize_trampoline;
3152 adjust for target hook.
3153 * config/score/score7.c (score7_asm_trampoline_template): New.
3154 (score7_trampoline_init): Rename from score7_initialize_trampoline;
3155 adjust for target hook.
3156 * config/score/score3.h, config/score/score7.h: Update.
3158 * config/sh/sh-protos.h (sh_initialize_trampoline): Remove.
3159 * config/sh/sh.c (TARGET_TRAMPOLINE_INIT): New.
3160 (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
3161 (sh_trampoline_init): Rename from sh_initialize_trampoline;
3162 make static; adjust for target hook parameters.
3163 (sh_trampoline_adjust_address): New.
3164 * config/sh/sh.h (INITIALIZE_TRAMPOLINE): New.
3165 (TRAMPOLINE_ADJUST_ADDRESS): Move code to sh_trampoline_adjust_address.
3167 * config/sparc/sparc.c (TARGET_TRAMPOLINE_INIT): New.
3168 (sparc32_initialize_trampoline): Rename from
3169 sparc_initialize_trampoline; make static; replace tramp parameter
3170 with m_tramp and update memory accesses.
3171 (sparc64_initialize_trampoline): Similarly.
3172 (sparc_trampoline_init): New.
3173 * config/sparc/sparc-protos.h: Remove trampoline decls.
3174 * config/sparc/sparc.h (INITIALIZE_TRAMPOLINE): Remove.
3175 * config/sparc/sparc.md (nonlocal_goto): Don't use static_chain_rtx.
3177 * config/spu/spu.c (TARGET_TRAMPOLINE_INIT): New.
3178 (array_to_constant): Make ARR parameter const.
3179 (spu_trampoline_init): Rename from spu_initialize_trampoline;
3180 make static; update for hook parameters.
3181 * config/spu/spu-protos.h: Update decls.
3182 * config/spu/spu.h (INITIALIZE_TRAMPOLINE): Remove.
3184 * config/stormy16/stormy16.c (xstormy16_trampoline_init): Rename
3185 from xstormy16_initialize_trampoline; make static; update for
3187 (TARGET_TRAMPOLINE_INIT): New.
3188 * config/stormy16/stormy16.h (INITIALIZE_TRAMPOLINE): Remove.
3190 * config/v850/v850.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
3191 (TARGET_TRAMPOLINE_INIT): New.
3192 (v850_can_eliminate): Make static.
3193 (v850_asm_trampoline_template, v850_trampoline_init): New.
3194 * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Move code to
3195 v850_asm_trampoline_template.
3196 (INITIALIZE_TRAMPOLINE): Move code to v850_trampoline_init
3197 and adjust for target hook parameters.
3199 * config/vax/vax.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
3200 (TARGET_TRAMPOLINE_INIT): New.
3201 (vax_asm_trampoline_template, vax_trampoline_init): New.
3202 * config/vax/vax.h (TRAMPOLINE_TEMPLATE): Move code to
3203 vax_asm_trampoline_template.
3204 (INITIALIZE_TRAMPOLINE): Move code to vax_trampoline_init.
3206 * config/xtensa/xtensa.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
3207 (TARGET_TRAMPOLINE_INIT): New.
3208 (xtensa_asm_trampoline_template): Rename from
3209 xtensa_trampoline_template; make static.
3210 (xtensa_trampoline_init): Rename from xtensa_initialize_trampoline;
3211 make static; update for hook parameters.
3212 * config/xtensa/xtensa-protos.h: Remove trampoline decls.
3213 * config/xtensa/xtensa.h (TRAMPOLINE_TEMPLATE): Remove.
3214 (INITIALIZE_TRAMPOLINE): Remove.
3216 * config/i386/i386.c (ix86_function_regparm): Do not issue an
3217 error for nested functions with regparm=3.
3218 (ix86_compute_frame_layout): Adjust frame pointer offset for
3219 ix86_static_chain_on_stack.
3220 (ix86_expand_prologue): Handle ix86_static_chain_on_stack.
3221 (ix86_emit_restore_reg_using_pop): Increment ix86_cfa_state->offset,
3222 don't reset to UNITS_PER_WORD.
3223 (ix86_emit_leave): Adjust ix86_cfa_state.
3224 (ix86_expand_epilogue): Handle ix86_static_chain_on_stack.
3225 (ix86_static_chain): New.
3226 (ix86_trampoline_init): Rename from x86_initialize_trampoline;
3227 make static; update for target hook parameters; use ix86_static_chain.
3228 (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New.
3229 * config/i386/i386.h (STATIC_CHAIN_REGNUM): Remove.
3230 (INITIALIZE_TRAMPOLINE): Remove.
3231 (TRAMPOLINE_SIZE): Use 24 for 64-bit.
3232 (struct machine_function): Use BOOL_BITFIELD; rearrange bitfields
3233 to the end. Add static_chain_on_stack.
3234 (ix86_static_chain_on_stack): New.
3236 * config/m68k/m68k.c (TARGET_TRAMPOLINE_INIT): New.
3237 (m68k_output_mi_thunk): Don't use static_chain_rtx.
3238 (m68k_trampoline_init): New.
3239 * config/m68k/m68k.h (INITIALIZE_TRAMPOLINE): Move code to
3240 m68k_trampoline_init and adjust for hook parameters.
3241 * config/m68k/netbsd-elf.h (TRAMPOLINE_TEMPLATE): Remove.
3242 (TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE): Remove.
3244 2009-09-22 Jakub Jelinek <jakub@redhat.com>
3246 * config/rs6000/rs6000.c (bdesc_2arg): Fix CODE_FOR_vector_gt* codes
3247 for __builtin_altivec_vcmpgt{sb,uh,sh,uw}.
3249 * reload1.c (reload): Call wrap_constant when substituting
3250 reg for equiv inside of DEBUG_INSNs.
3253 * dwarf2out.c (base_type_die, record_type_tag, gen_subprogram_die,
3254 add_call_src_coords_attributes, add_high_low_attributes,
3255 gen_compile_unit_die, gen_type_die_with_usage force_decl_die,
3256 gen_decl_die, dwarf2out_imported_module_or_decl_1, dwarf2out_finish,
3257 dwarf2out_imported_module_or_decl): Avoid using DWARF3 additions
3258 when -gdwarf-2 -gstrict-dwarf.
3259 (loc_list_from_tree): Likewise. Avoid using DWARF4 additions when
3260 -gdwarf-[23] -gstrict-dwarf.
3261 (address_of_int_loc_descriptor, loc_descriptor,
3262 loc_list_for_address_of_addr_expr_of_indirect_ref): Avoid using
3263 DWARF4 additions when -gdwarf-[23] -gstrict-dwarf.
3264 * common.opt (gno-strict-dwarf, gstrict-dwarf): New options.
3266 2009-09-22 Richard Guenther <rguenther@suse.de>
3268 PR tree-optimization/41428
3269 * tree-ssa-ccp.c (ccp_fold_stmt): New function.
3270 (ccp_finalize): Pass it to substitute_and_fold.
3272 2009-09-22 Richard Guenther <rguenther@suse.de>
3274 * tree-ssa-propagate.h (ssa_prop_fold_stmt_fn): Declare.
3275 (substitute_and_fold): Adjust prototype.
3276 * tree-vrp.c (vrp_evaluate_conditional): Make static.
3277 (simplify_stmt_using_ranges): Likewise.
3278 (fold_predicate_in): Move here from tree-ssa-propagate.c.
3279 (vrp_fold_stmt): New function.
3280 (vrp_finalize): Pass it to substitute_and_fold.
3281 * tree-flow.h (vrp_evaluate_conditional): Remove.
3282 (simplify_stmt_using_ranges): Likewise.
3283 * tree-ssa-ccp.c (ccp_finalize): Adjust call to substitute_and_fold.
3284 * tree-ssa-copy.c (fini_copy_prop): Likewise.
3285 * tree-ssa-propagate.c (struct prop_stats_d): Rename num_pred_folded
3287 (fold_predicate_in): Move to tree-vrp.c.
3288 (substitute_and_fold): Use the callback instead of calling into
3289 tree-vrp.c functions directly.
3291 2009-09-22 Jakub Jelinek <jakub@redhat.com>
3293 * dwarf2out.c (address_of_int_loc_descriptor): Avoid signed/unsigned
3294 comparison warning on rs6000.
3297 * tree-cfg.c (remove_useless_stmts_tc): Call gsi_next (gsi) even for
3298 GIMPLE_EH_MUST_NOT_THROW cleanup.
3299 (verify_types_in_gimple_stmt): Handle GIMPLE_EH_MUST_NOT_THROW.
3301 2009-09-22 Jack Howarth <howarth@bromo.med.uc.edu>
3304 * gcc/config.gcc: Use darwin9.h and darwin10.h on darwin10 and later.
3305 * gcc/config/darwin10.h: Add file to pass -no_compact_unwind on
3306 LIB_SPEC for darwin10 and later since it always uses the unwinder in
3307 libSystem which is derived from the gcc 4.2.1 unwinder.
3309 2009-09-22 Dave Korn <dave.korn.cygwin@gmail.com>
3312 * varasm.c (default_encode_section_info): Copy TLS model into
3313 sym_ref flags regardless of backend support for TLS, for all
3314 model types except TLS_MODEL_EMULATED.
3316 2009-09-22 Dave Korn <dave.korn.cygwin@gmail.com>
3319 * dwarf2out.c (mem_loc_descriptor): Punt on CONST_STRING until
3320 we can handle it correctly.
3322 2009-09-21 Gerald Pfeifer <gerald@pfeifer.com>
3324 * doc/install.texi (os2): Remove section.
3326 2009-09-21 Gerald Pfeifer <gerald@pfeifer.com>
3328 * doc/standards.texi (Objective-C): Adjust two URLs.
3330 2009-09-21 Giuseppe Scrivano <gscrivano@gnu.org>
3332 * tree-tailcall.c (process_assignment): Don't check if a
3333 multiplication or an addition are already present.
3334 (find_tail_calls): Combine multiple additions and multiplications.
3335 (adjust_accumulator_values): Emit accumulators.
3337 2009-09-21 Kai Tietz <kai.tietz@onevision.com>
3339 * config/i386/i386.c (ix86_expand_epilogue): Adjust offset for
3340 xmm register restore.
3342 2009-09-21 Jan Hubicka <jh@suse.cz>
3344 * dwarf2out.c (decl_loc_table_eq): Allow decl_loc_table to be NULL.
3345 (dwarf2out_abstract_function): NULLify decl_loc_table at begginig and
3348 2009-09-21 Eric Botcazou <ebotcazou@adacore.com>
3350 * stor-layout.c (layout_type): Remove obsolete code.
3352 2009-09-20 H.J. Lu <hongjiu.lu@intel.com>
3355 * opts.c (decode_options): Don't turn on flag_ipa_sra for opt2.
3357 2009-09-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3360 * builtins.c (do_mpc_arg2): Accept DO_NONFINITE parameter.
3361 (do_mpc_ckconv): Accept FORCE_CONVERT parameter.
3362 (fold_builtin_2, do_mpc_arg1): Update accordingly.
3363 * fold-const.c (const_binop): Likewise.
3364 * real.h (do_mpc_arg2): Update prototype.
3366 2009-09-20 Jan Hubicka <jh@suse.cz>
3368 * dwarf2out.c (add_const_value_attribute): Return true if successful.
3369 (add_location_or_const_value_attribute): Rewrite using
3371 (tree_add_const_value_attribute): Return true if successful.
3372 (tree_add_const_value_attribute_for_decl): Likewise.
3374 * dwarf2out.c (address_of_int_loc_descriptor): Break out from ...
3375 (loc_descriptor): ... here;
3376 (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
3377 (cst_pool_loc_descr): Break out from ...; do not reffer constant
3378 pool items that was not marked for output.
3379 (loc_list_from_tree): ... here; handle special cases of ADDR_EXPR;
3380 (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
3381 (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
3382 handle ALIGN_INDIRECT_REF, MISALIGNED_INDIRECT_REF, REALPART_EXPR,
3383 IMAGPART_EXPR; handle address of INTEGER_CST; improve handling of
3384 CONSTRUCTOR; handle REAL_CST, STRING_CST, COMPLEX_CST; use
3385 DW_OP_stack_value to get address of items that are not available
3387 (dw_loc_list): Handle single element lists correctly.
3389 2009-09-20 Kai Tietz <kai.tietz@onevision.com>
3390 Pascal Obry <obry@adacore.com>
3392 * unwind-dw2-fde.c (classify_object_over_fdes):
3393 Cast the constant 1 to _Unwind_Ptr.
3394 (add_fdes): Likewise.
3395 (linear_search_fdes): Likewise.
3397 2009-09-20 Eric Botcazou <ebotcazou@adacore.com>
3399 * stor-layout.c (set_sizetype): Avoid useless type copy.
3401 2009-09-20 Richard Sandiford <rdsandiford@googlemail.com>
3403 * configure.ac (gcc_cv_ld_mips_personality_relaxation): New
3405 (HAVE_LD_PERSONALITY_RELAXATION): New macro definition.
3406 * configure, config.in: Regenerate.
3407 * dwarf2asm.c (eh_data_format_name): Handle DW_EH_PE_indirect |
3409 * config/mips/mips.h (TARGET_WRITABLE_EH_FRAME): New macro.
3410 (ASM_PREFERRED_EH_DATA_FORMAT): Define. Use MIPS_EH_INDIRECT
3411 for global data if the output could be used in a shared library.
3412 * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm