1 2009-10-23 Joseph Myers <joseph@codesourcery.com>
4 * c-typeck.c (c_finish_stmt_expr): Do not wrap error_mark_node in
7 2009-10-23 Michael Meissner <meissner@linux.vnet.ibm.com>
10 * config/rs6000/rs6000.c (struct machine_function): Add
11 vsx_or_altivec_used_p to record if vector types are used.
12 (rs6000_expand_to_rtl_hook): Rename from
13 rs6000_alloc_sdmode_stack_slot. If VSX, check to see if there are
14 any vector operations, so if there are, we can set VRSAVE to
15 non-zero when only floating point vector registers are used.
16 (TARGET_EXPAND_TO_RTL_HOOK): Use rs6000_expand_to_rtl_hook.
17 (rs6000_check_vector_mode): Inner function to check if vector
18 types are used in the code.
19 (compute_vrsave_mask): If VSX, make sure VRSAVE is non-zero if
20 vector instructions are used.
22 * config/rs6000/rs6000.h (HARD_REGNO_CALL_PART_CLOBBERED):
23 Indicate that VSX registers which overlap floating point
24 registers, can't be used across a call, since the ABI only states
25 the scalar part of the register will be saved and restored.
27 2009-10-23 Joseph Myers <joseph@codesourcery.com>
30 * alias.c (get_alias_set): Call langhook before returning 0 for
31 types with structural equality.
32 * c-common.c (c_common_get_alias_set): Use alias set of element
33 type for arrays with structural comparison.
35 2009-10-23 Richard Guenther <rguenther@suse.de>
38 * cfgexpand.c (expand_call_stmt): Use gimple_has_side_effects and
39 gimple_call_nothrow_p.
41 2009-10-23 Richard Guenther <rguenther@suse.de>
43 PR tree-optimization/41778
44 * tree-ssa-pre.c (do_regular_insertion): Only insert if a
45 redundancy along a path in the CFG we want to optimize for speed
46 is going to be removed.
47 (execute_pre): Do partial-PRE only if the function is to be
49 (gate_pre): Do not turn off all of PRE when not optimizing a
52 2009-10-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
54 * builtins.c (fold_builtin_cabs): Use validate_arg().
55 (fold_builtin_cexp): Fix if-logic.
56 (fold_builtin_1): Check subtype for BUILT_IN_CIMAG.
58 2009-10-22 Jeff Law <law@redhat.com>
60 * ira-lives.c (process_single_reg_class_operands): Update the
61 hard reg costs for all the hard registers desired by the
62 single reg class operand.
64 2009-10-22 Richard Sandiford <rdsandiford@googlemail.com>
66 * simplify-rtx.c (simplify_replace_fn_rtx): Add a fallback case
67 for rtxes that aren't handled specially.
69 2009-10-22 Richard Sandiford <rdsandiford@googlemail.com>
71 * rtl.h (shallow_copy_rtvec): Declare.
72 * rtl.c (shallow_copy_rtvec): New function.
73 * cselib.c (cselib_subst_to_values): Use it. Only modify an
74 rtx field if the subrtx has changed.
76 2009-10-22 Anatoly Sokolov <aesok@post.ru>
78 * config/m32c/m32c.c (m32c_function_value_regno_p): New function.
79 (m32c_function_value): Make static, add new 'outgoing' argument.
80 (m32c_libcall_value): Make static, add new 'fun' argument.
81 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
82 * config/m32c/m32c.h: (FUNCTION_VALUE, LIBCALL_VALUE): Remove.
83 (FUNCTION_VALUE_REGNO_P): Redefine, use m32c_function_value_regno_p.
84 * config/m32c/m32c-protos.h (m32c_function_value_regno_p): Declare.
85 (m32c_function_value, m32c_libcall_value): Delete declaration.
87 2009-10-22 Diego Novillo <dnovillo@google.com>
89 * Makefile.in (PLUGIN_HEADERS): Add output.h and IPA_UTILS_H.
91 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
93 * testsuite/gcc.dg/autopar/outer-4.c: Adjust scan.
94 * testsuite/gcc.dg/autopar/outer-5.c: Adjust scan.
95 * testsuite/gcc.dg/autopar/outer-5.c: Add scan optimized.
96 * tree-cfg.c (gimple_duplicate_sese_tail): Fix typos/indentation/white
99 2009-10-22 Richard Guenther <rguenther@suse.de>
101 * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Declare.
102 * lto-symtab.c (struct lto_symtab_entry_def): Add node member.
103 (lto_symtab_merge): Do not merge cgraph nodes here.
104 (lto_symtab_resolve_can_prevail_p): Simplify.
105 (lto_symtab_resolve_symbols): Store cgraph node.
106 (lto_symtab_merge_decls_1): Simplify. Do not drop non-prevailing
107 functions from the symtab.
108 (lto_symtab_merge_cgraph_nodes_1): New function.
109 (lto_symtab_merge_cgraph_nodes): Likewise.
111 2009-10-22 Richard Guenther <rguenther@suse.de>
114 * lto-streamer-out.c (lto_output_location): Stream the
116 * lto-streamer-in.c (lto_input_location): Likewise.
118 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
120 * cfgloopmanip.c (duplicate_subloops): Export.
121 * tree-parloops.c (loop_parallel_p): Dump if loop is innermost.
122 (transform_to_exit_first_loop): Duplicate bbs starting from
123 header up to loop->latch instead of exit->src.
124 Initialize control variable to the correct number of iterations.
125 (gather_scalar_reductions): Do not register double reductions.
126 (parallelize_loops): Dump which loop is tested.
127 Indicate whether the parallelized loop is inner or not.
128 Remove the innermost-loop requirement.
129 * cfgloop.h (duplicate_subloops): Export.
130 * tree-cfg.c (add_phi_args_after_redirect): New function.
131 (gimple_duplicate_sese_tail): Remove the no-subloops constraint.
132 Call duplicate_subloops.
133 Update number of iterations at the exit condition.
134 Don't redirect nexits always to the loop exit.
135 Redirect copied edges from latch to the loop exit.
136 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
137 * testsuite/gcc.dg/autopar/outer-1.c: New testcase.
138 * testsuite/gcc.dg/autopar/outer-2.c: New testcase.
139 * testsuite/gcc.dg/autopar/outer-3.c: New testcase.
140 * testsuite/gcc.dg/autopar/outer-4.c: New testcase.
141 * testsuite/gcc.dg/autopar/outer-5.c: New testcase.
142 * testsuite/gcc.dg/autopar/outer-6.c: New testcase.
144 2009-10-22 Jan Hubicka <jh@suse.cz>
146 * ipa-cp.c (ipcp_read_summary): Remove now invalid FIXME and
148 * ipa-inline.c (cgraph_mark_inline_edge,
149 cgraph_decide_inlining_of_small_function,
150 cgraph_decide_inlining, inline_read_summary): Disable indirect inlining
151 for WPA for time being.
153 PR tree-optimize/40556
154 * ipa-inline.c (cgraph_early_inlining): Fix iterations condition.
156 2009-10-22 Richard Guenther <rguenther@suse.de>
158 * lto-streamer.h (lto_symtab_clear_resolution): Remove.
159 * lto-symtab.c (lto_symtab_clear_resolution): Likewise.
161 2009-10-22 Jan Hubicka <jh@suse.cz>
164 * ipa-reference.c (has_proper_scope_for_analysis): Add fixme about
166 (check_call): Handle only indirect calls.
167 (propagate_bits): Update comment.
168 (write_node_summary_p): Turn bogus check to assert.
169 (ipa_reference_write_summary): Stream calls_read_all properly.
170 (ipa_reference_read_summary): Stream in calls_read_all properly.
171 (read_write_all_from_decl): New function.
172 (propagate): Handle OVERWRITABLE nodes and external calls here.
173 * ipa-pre-const.c (check_call): In IPA mode handle indirect calls
175 (analyze_function): Do not check visibility here.
176 (add_new_function): We summary OVERWRITABLE too.
177 (generate_summary): Stream OVERWRITABLE nodes too.
178 (propagate): Handle external calls and OVERWRITABLE nodes here.
179 (local_pure_const): Check visibility here.
181 2009-10-22 Jan Hubicka <jh@suse.cz>
183 * ipa-cp.c (ipcp_write_summary, ipcp_read_summary): New functions.
184 (pass_ipa_cp): Register them.
185 (ipcp_init_stage): Analyze all functions for whopr/lto.
186 (ipcp_propagate_stage): Skip external calls.
187 (ipcp_iterate_stage): Call ipa_update_after_lto_read if needed.
188 * ipa-reference.c (write_node_summary_p): Fix thinko about availability.
189 * cgraphunit.c (ipa_passes): When in lto, ne er produce new summaries;
190 when in ltrans, skip executing of ipa passes since everything should've
192 * ipa-inline.c (cgraph_decide_inlining): Remove FIXMEs.
193 (inline_generate_summary): Likewise.
194 (inline_read_summary): New function.
195 (inline_write_summary): New function.
196 (pass_ipa_inline): Register new hooks.
197 * ipa-prop.c: Inlcude lto-streamer.h
198 (ipa_edge_args_vector): Update declaration.
199 (ipa_count_arguments, ipa_compute_jump_functions,
200 ipa_free_edge_args_substructures): Move ipa_edge_args_vector into ggc.
201 (ipa_write_jump_function, ipa_read_jump_function, ipa_write_node_info,
202 ipa_read_node_info): New static functions.
203 (ipa_prop_write_jump_functions, ipa_prop_read_jump_functions): Update.
204 (duplicate_array): Use xmalloc.
205 (duplicate_ggc_array): New.
206 (ipa_edge_duplication_hook): Use it.
207 (ipa_update_after_lto_read): New function.
208 * ipa-prop.h (ipa_prop_write_jump_functions,
209 ipa_prop_read_jump_functions): Declare.
210 (ipa_pass_through_data, ipa_ancestor_jf_data, ipa_member_ptr_cst,
211 jump_func_value, ipa_member_ptr_cst, ipa_edge_args): Add GTY markers.
212 (ipa_edge_args_vector): Move into GGC.
213 (ipa_check_create_edge_args): Update.
214 (ipa_update_after_lto_read): New.
215 * passes.c (ipa_write_summaries_1): When in wpa, do not write summaries.
216 (ipa_read_summaries): When in ltrans, so not read summaries.
217 * lto-streamer.c (lto_get_section_name): Add LTO_section_jump_functions.
218 * lto-streamer.h (LTO_section_jump_functions): New section.
219 (produce_asm): Declare.
220 * lto-cgraph.c (output_cgraph): Output edges in reverse order.
221 * lto-streamer-out.c (produce_asm): Export.
222 * lto-streamer-in.c: Include tree-pass.h
223 (input_function): Free dominance info when done.
224 (lto_read_body): Push ipa_inline in ltrans stage.
225 * gengtype.c (open_base_files): Add ipa-prop.h into includes.
226 * Makefile.in (GTFILES): Add ipa-prop.h
228 2009-10-22 Matthias Klose <doko@ubuntu.com>
230 * doc/install.texi: Document --enable-browser-plugin.
232 2009-10-21 Vladimir Makarov <vmakarov@redhat.com>
234 * doc/invoke.texi (fira-loop-pressure): Update default value.
235 * opts.c (decode_options): Remove default value setting for
236 flag_ira_loop_pressure.
237 * config/ia64/ia64.c (ia64_override_options): Set
238 flag_ira_loop_pressure up for -O3.
239 * config/rs6000/rs6000.c (rs6000_override_options): Ditto.
241 2009-10-21 Sebastian Pop <sebastian.pop@amd.com>
243 PR tree-optimization/41497
244 * tree-scalar-evolution.c (analyze_evolution_in_loop): Return
245 chrec_dont_know if the evolution function returned by follow_ssa_edge
246 is constant in the analyzed loop and is not compatible with the
247 initial value before the loop.
248 * tree-chrec.h (no_evolution_in_loop_p): Call STRIP_NOPS.
250 2009-10-21 Joseph Myers <joseph@codesourcery.com>
252 * config/sh/sh.c (nonpic_symbol_mentioned_p): Allow UNSPEC_TPOFF.
254 2009-10-21 Jakub Jelinek <jakub@redhat.com>
257 * doc/invoke.texi: Document -print-multi-os-directory.
259 2009-10-21 Jack Howarth <howarth@bromo.med.uc.edu>
262 * gcc/config/darwin10.h: Use default_emit_unwind_label.
263 * gcc/config/darwin.c: Disable -freorder-blocks-and-partition
264 when darwin_emit_unwind_label is used.
266 2009-10-21 Eric Botcazou <ebotcazou@adacore.com>
268 * tree-vect-stmts.c (exist_non_indexing_operands_for_use_p): Tweak
271 2009-10-20 Richard Henderson <rth@redhat.com>
273 * tree-eh.c (lower_try_finally_copy): Do lower_eh_constructs_1
274 before emit_post_landing_pad.
276 2009-10-20 Adam Nemet <anemet@caviumnetworks.com>
278 * config/mips/mips.c (mips_binary_cost): Add new argument speed.
279 Use when calling rtx_costs.
280 (mips_rtx_costs): Fix formatting. Use argument speed rather than the
281 global optimize_size. Pass speed to mips_binary_cost.
283 2009-10-20 Jakub Jelinek <jakub@redhat.com>
285 * config/rs6000/rs6000.c (def_builtin): Set TREE_READONLY instead
288 2009-10-20 Richard Sandiford <rdsandiford@googlemail.com>
290 * rtl.h (simplify_replace_fn_rtx): Declare.
291 (wrap_constant, unwrap_constant): Delete.
292 * cfgexpand.c (unwrap_constant, wrap_constant): Delete.
293 (expand_debug_expr): Don't call wrap_constant.
294 * combine.c (rtx_subst_pair): Only define for AUTO_INC_DEC.
295 (auto_adjust_pair): Fold into...
296 (propagate_for_debug_subst): ...here. Only define for AUTO_INC_DEC.
297 Just return a new value.
298 (propagate_for_debug): Use simplify_replace_fn_rtx for AUTO_INC_DEC,
299 otherwise use simplify_replace_rtx.
300 * cselib.c (wrap_constant): Reinstate old definition.
301 (cselib_expand_value_rtx_1): Don't wrap constants.
302 * gcse.c (try_replace_reg): Don't use copy_rtx in the call to
303 simplify_replace_rtx.
304 (bypass_block): Fix formatting in calls to simplify_replace_rtx.
305 * reload1.c (reload): Skip all uses for an insn before adjusting it.
306 Use simplify_replace_rtx.
307 * simplify-rtx.c (simplify_replace_fn_rtx): New function,
309 (simplify_replace_rtx): ...here. Turn into a wrapper for
310 simplify_replace_fn_rtx.
311 (simplify_unary_operation): Don't unwrap CONSTs.
312 * var-tracking.c (check_wrap_constant): Delete.
313 (vt_expand_loc_callback): Don't call it.
314 (vt_expand_loc): Likewise.
316 2009-10-20 Pascal Obry <obry@adacore.com>
317 Eric Botcazou <ebotcazou@adacore.com>
319 * config/i386/cygming.h (DWARF_FRAME_REGNUM): Add enclosing parens.
321 2009-10-20 Michael Matz <matz@suse.de>
323 * loop-invariant.c (create_new_invariant): Use different magic number.
325 2009-10-20 Richard Earnshaw <rearnsha@arm.com>
328 * arm.c (arm_override_options): Forcibly disable hot/cold block
331 2009-10-20 Alexandre Oliva <aoliva@redhat.com>
334 * haifa-sched.c (try_ready): Skip debug deps updating speculation
337 2009-10-20 Richard Guenther <rguenther@suse.de>
339 * ggc-page.c: Include cfgloop.h.
340 (struct max_alignment): Drop long double, add void *.
341 (extra_order_size_table): Add low non-power-of-two multiples
342 of MAX_ALIGNMENT. Drop small type-based entries, add
343 tree_type, cgraph_node and loop.
344 * alloc-pool.c (struct allocation_object_def): Drop long double
347 2009-10-20 Jakub Jelinek <jakub@redhat.com>
350 * loop-invariant.c (calculate_loop_reg_pressure): Don't count regs
351 referenced just in DEBUG_INSNs.
353 2009-10-20 Richard Guenther <rguenther@suse.de>
356 * gimple.c (gimple_register_type): Make sure we register
357 the types main variant first.
359 2009-10-20 Richard Guenther <rguenther@suse.de>
361 * gimple.c (gimple_types_compatible_p): Simplify. Move
362 cheap checks before hashtable queries. Add checks for
363 TYPE_NONALIASED_COMPONENT and DECL_NONADDRESSABLE_P.
365 2009-10-20 Eric Botcazou <ebotcazou@adacore.com>
367 * tree-sra.c (build_ref_for_offset_1) <RECORD_TYPE>: Skip fields
368 without size or with size that can't be represented as a host integer.
370 2009-10-20 Alexandre Oliva <aoliva@redhat.com>
372 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't regard
373 the removal of a debug stmt as a significant change.
375 2009-10-20 Wolfgang Gellerich <gellerich@de.ibm.com>
377 * config/s390/s390.md: Added agen condition to operand
379 Added bypass for early address generation use of int results.
382 2009-10-20 Stefan Dösinger <stefan@codeweavers.com>
384 * config/i386/i386.c: Remove signal.h #include.
386 2009-10-20 Jie Zhang <jie.zhang@analog.com>
388 * simplify-rtx.c (simplify_const_unary_operation): Handle SS_ABS.
389 * doc/rtl.texi: Document ss_abs.
391 2009-10-19 Jakub Jelinek <jakub@redhat.com>
393 * c-common.c (c_parse_error): Handle CPP_UTF8STRING.
394 * c-lex.c (c_lex_with_flags): Likewise. Test C_LEX_STRING_NO_JOIN
395 instead of C_LEX_RAW_STRINGS.
396 (lex_string): Handle CPP_UTF8STRING.
397 * c-parser.c (c_parser_postfix_expression): Likewise.
398 * c-pragma.h (C_LEX_RAW_STRINGS): Rename to ...
399 (C_LEX_STRING_NO_JOIN): ... this.
401 2009-10-19 Anatoly Sokolov <aesok@post.ru>
403 * config/cris/cris.c (cris_function_value, cris_libcall_value,
404 cris_function_value_regno_p): New functions.
405 (cris_promote_function_mode): Update comment.
406 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
407 * config/cris/cris.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove.
408 (FUNCTION_VALUE_REGNO_P): Redefine, use cris_function_value_regno_p.
409 * config/cris/cris-protos.h (cris_function_value_regno_p): Declare.
411 2009-10-19 Jakub Jelinek <jakub@redhat.com>
413 * unwind-dw2.c (execute_stack_op): Fix operand order for
414 DW_OP_le, DW_OP_ge, DW_OP_lt and DW_OP_gt.
416 2009-10-19 Eric Botcazou <ebotcazou@adacore.com>
418 * gimple-low.c (struct lower_data): Add cannot_fallthru field.
419 (lower_stmt) <GIMPLE_BIND>: Add comment.
420 <GIMPLE_COND, GIMPLE_GOTO, GIMPLE_SWITCH>: Set cannot_fallthru to true
422 <GIMPLE_RETURN>: Remove the statement if cannot_fallthru is set.
423 Otherwise lower it and set cannot_fallthru to true.
424 <GIMPLE_TRY>: Update cannot_fallthru for GIMPLE_TRY_FINALLY and return.
425 <GIMPLE_CATCH, GIMPLE_EH_FILTER>: Set cannot_fallthru to false.
426 <GIMPLE_CALL>: Set cannot_fallthru to false for BUILT_IN_SETJMP and
427 to true for a noreturn call. Do not remove statements.
428 <GIMPLE_OMP_PARALLEL, GIMPLE_OMP_TASK>: Set cannot_fallthru to false.
429 Set cannot_fallthru to false on function exit.
430 (gimple_stmt_may_fallthru) <GIMPLE_SWITCH>: Really return false.
431 <GIMPLE_ASSIGN>: Remove.
433 2009-10-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
435 * config/s390/s390.c (s390_z10_optimize_cmp): Don't touch FP compares.
437 2009-10-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
439 * config/s390/s390.c (s390_z10_optimize_cmp): Use
440 next/prev_active_insn to skip DEBUG_INSNs as well.
442 2009-10-19 Joseph Myers <joseph@codesourcery.com>
444 * config/arm/arm.c (output_move_neon): Use DImode in call to
447 2009-10-19 Matthias Klose <doko@ubuntu.com>
450 * config.gcc (arm*-*-linux-*eabi): Use config/t-slibgcc-libgcc.
452 2009-10-19 Jakub Jelinek <jakub@redhat.com>
454 * cfgexpand.c (expand_debug_expr): Fail if bitpos < 0 for non-MEM op0.
456 2009-10-17 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
459 * optabs.c (expand_binop): Make mode of shift count expression mode
460 of shift count not target.
463 2009-10-17 Eric Botcazou <ebotcazou@adacore.com>
465 * tree-nested.c (convert_nonlocal_reference_stmt) <GIMPLE_COND>: New
466 case. Force using values to replace references within the statement.
467 (convert_local_reference_stmt): Likewise.
469 2009-10-17 Eric Botcazou <ebotcazou@adacore.com>
471 * gimple-low.c (lower_stmt) <GIMPLE_CALL>: If the call is noreturn,
472 remove a subsequent GOTO or RETURN statement.
474 2009-10-17 Andy Hutchinson <hutchinsonandy@aim.com>
476 * config/avr.md (*movqi): Add zero as equally preferable constraint
480 2009-10-17 Eric Botcazou <ebotcazou@adacore.com>
482 * print-tree.c (print_node): Fix string for DECL_STRUCT_FUNCTION.
484 2009-10-17 Richard Guenther <rguenther@suse.de>
486 * lto-streamer-in.c (lto_input_location): Try to reuse previous maps.
488 2009-10-17 Richard Guenther <rguenther@suse.de>
490 * lto-streamer-in.c (input_gimple_stmt): Fixup FIELD_DECL
491 operands in COMPONENT_REFs.
493 2009-10-17 Anatoly Sokolov <aesok@post.ru>
495 * targhooks.c (default_libcall_value): Don't use LIBCALL_VALUE macro
496 if not defined. Change type of second argument to const_rtx.
497 (default_function_value): Call gcc_unreachable if FUNCTION_VALUE
499 * targhooks.h (default_libcall_value): Update prototype.
500 * target.h (struct gcc_target): Change type of second argument of
501 libcall_value to const_rtx.
502 * config/arm/arm.c (arm_libcall_value): Change type of second argument
504 (arm_libcall_uses_aapcs_base): Change type of argument to const_rtx.
505 * doc/tm.texi (TARGET_LIBCALL_VALUE): Revise documentation.
507 2009-10-17 Jakub Jelinek <jakub@redhat.com>
510 * debug.h (struct gcc_debug_hooks): Add assembly_start hook.
511 * cgraphunit.c (cgraph_optimize): Call it.
512 * dwarf2out.c (dwarf2out_init): Move .cfi_sections printing into...
513 (dwarf2out_assembly_start): ... here. New hook.
514 (dwarf2out_debug_hooks): Add dwarf2out_assembly_start.
515 * debug.c (do_nothing_debug_hooks): Do nothing for assembly_start
517 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
518 * sdbout.c (sdb_debug_hooks): Likewise.
519 * vmsdbgout.c (vmsdbg_debug_hooks): Add vmsdbgout_assembly_start.
520 (vmsdbgout_assembly_start): New hook.
522 2009-10-17 Alexandre Oliva <aoliva@redhat.com>
524 * rtl.h (RTL_LOCATION): Fix typo.
526 2009-10-17 Alexandre Oliva <aoliva@redhat.com>
528 * print-rtl.c (print_rtx): Print locators in asm_operands
531 2009-10-17 Alexandre Oliva <aoliva@redhat.com>
534 * sched-deps.c (depl_on_debug_p): New.
535 (attach_dep_link): Reject debug deps before nondebug deps.
536 (add_to_deps_list): Insert debug deps after nondebug deps.
537 (sd_lists_empty_p): Stop at first nonempty list. Disregard debug
539 (sd_add_dep): Do not reject debug deps.
540 (add_insn_mem_dependence): Don't count debug deps.
541 (remove_from_deps): Likewise.
542 (sched_analyze_2): Set up mem deps on debug insns.
543 (sched_analyze_insn): Record reg uses for deps on debug insns.
544 * haifa-sched.c (schedule_insn): Reset deferred debug insn. Don't
545 try_ready nondebug insn after debug insn.
546 * ddg.c (create_ddg_dep_from_intra_loop_link,
547 create_ddg_dep_no_link): Don't reject debug deps.
549 2009-10-16 Richard Guenther <rguenther@suse.de>
551 * lto-symtab.c (merge_incomplete_and_complete_type): Remove.
552 (maybe_merge_incomplete_and_complete_type): Likewise.
553 (lto_symtab_merge): Do not call them. Do not warn for
554 complete vs. incomplete compatible types.
555 (lto_symtab_merge_decls_2): Simplify.
556 * gimple.c (gimple_force_type_merge): Remove.
557 (gimple_types_compatible_p): Make it static.
558 * gimple.h (gimple_force_type_merge): Remove.
559 (gimple_types_compatible_p): Likewise.
561 2009-10-16 Jakub Jelinek <jakub@redhat.com>
563 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Cast
564 DWARF2_ADDR_SIZE to int to avoid signed vs. unsigned warnings.
566 2009-10-16 Richard Guenther <rguenther@suse.de>
568 PR tree-optimization/41728
569 * tree-ssa-dom.c (optimize_stmt): Mark the stmt modified
570 if fold_stmt did anything.
572 2009-10-16 Richard Guenther <rguenther@suse.de>
575 * lto-streamer-in.c (lto_input_tree_ref): Revert last change.
576 (maybe_fixup_handled_component): New function.
577 (input_gimple_stmt): Fixup mismatched decl replacements.
579 2009-10-16 Richard Guenther <rguenther@suse.de>
582 * lto-streamer-out.c (lto_output_tree_ref): Handle DEBUG_EXPR_DECL
583 the same as VAR_DECL.
585 2009-10-16 Richard Guenther <rguenther@suse.de>
587 * gimple.c (iterative_hash_gimple_type): For integer types
588 also hash their minimum and maximum values and the string flag.
589 For array types hash their domain and the string flag.
591 2009-10-16 Richard Guenther <rguenther@suse.de>
593 * gimple.c (gimple_types_compatible_p): Restrict completing
594 types to record or unions. Simplify completion.
595 Do not merge records or unions with different
596 TYPE_STRUCTURAL_EQUALITY_P tag.
597 (iterative_hash_gimple_type): Restrict non-recursing into
598 pointer targets for records and unions.
600 2009-10-15 Jakub Jelinek <jakub@redhat.com>
603 * cfgexpand.c (expand_debug_expr): Handle CONJ_EXPR.
604 * dwarf2out.c (mem_loc_descriptor): Don't handle
605 POST_INT/POST_DEC/POST_MODIFY like SUBREG. For SUBREG
606 punt if it is not lowpart subreg or if inner mode isn't
609 2009-10-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
611 * config/s390/s390.c (s390_z10_optimize_cmp): Skip notes when
612 investigating previous or next insns.
614 2009-10-16 Eric Botcazou <ebotcazou@adacore.com>
616 * tree-sra.c (build_ref_for_offset_1): Update comment.
618 2009-10-16 Wolfgang Gellerich <gellerich@de.ibm.com>
620 * config/s390/s390.md (atype): Added missing values.
622 2009-10-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
625 * pa.md (casesi): Use sign extended index in call to gen_casesi64p.
626 (casesi64p): Update pattern to reflect above.
628 2009-10-15 Steve Ellcey <sje@cup.hp.com>
630 PR rtl-optimization/41697
631 * sel-sched-ir.h (_eligible_successor_edge_p): Check successor count.
633 2009-10-15 Michael Meissner <meissner@linux.vnet.ibm.com>
636 * config/rs6000/predicates.md: Update copyright year.
637 * config/rs6000/altivec.md: Ditto.
639 * config/rs6000/t-rs6000 (TM_H): Add rs6000-builtin.def.
640 (MD_INCLUDES): Add a2.md.
642 * config/rs6000/rs6000.c (rs6000_builtin_decls): Change
643 RS6000_BUILTIN_COUNT to MAX_RS6000_BUILTINS.
644 (builtin_classify): New static vector to classify various builtins
645 to get the tree attributes correct.
646 (def_builtin): Set the attributes of builtins based on what the
647 builtin does (i.e. memory operation, floating point, saturation
648 need special attributes, others are pure functions).
650 * config/rs6000/rs6000.h (enum rs6000_btc): New enum to classify
652 (enum rs6000_builtins): Include rs6000-builtin.def to define the
653 builtins. Change the end marker to MAX_RS6000_BUILTINS from
654 RS6000_BUILTIN_COUNT.
655 (rs6000_builtin_decls): Change RS6000_BUILTIN_COUNT to
658 * config/rs6000/rs6000-builtin.def: New file that combines the
659 builtin enumeration name and attributes.
661 2009-10-15 H.J. Lu <hongjiu.lu@intel.com>
663 * config/i386/linux.h (ASM_SPEC): Add --32.
665 2009-10-15 Jakub Jelinek <jakub@redhat.com>
667 * dwarf2out.c (dwarf_tag_name): Handle DW_TAG_rvalue_reference_type
668 and DW_TAG_template_alias.
669 (dwarf_attr_name): Handle DW_AT_main_subprogram,
670 DW_AT_data_bit_offset, DW_AT_const_expr, DW_AT_enum_class,
671 DW_AT_linkage_name, DW_AT_GNU_guarded_by, DW_AT_GNU_pt_guarded_by,
672 DW_AT_GNU_guarded, DW_AT_GNU_pt_guarded, DW_AT_GNU_locks_excluded,
673 DW_AT_GNU_exclusive_locks_required, DW_AT_GNU_shared_locks_required
674 and DW_AT_GNU_odr_signature.
675 (dwarf_form_name): Handle DW_FORM_sec_offset, DW_FORM_exprloc,
676 DW_FORM_flag_present and DW_FORM_ref_sig8.
677 (output_signature): Only print name on the first byte.
678 (output_die): Likewise for dw_val_class_data8.
680 2009-10-15 Alexander Monakov <amonakov@ispras.ru>
682 * doc/invoke.texi: Clarify that most optimizations are not enabled
685 2009-10-15 Richard Guenther <rguenther@suse.de>
688 * gimple.c (compare_type_names_p): Handle anonymous names
689 differently based on new mode argument.
690 (gimple_types_compatible_p): For structs also compare the tags.
691 (iterative_hash_type_name): Rename to ...
692 (iterative_hash_name): ... this. Hash all names.
693 (iterative_hash_gimple_type): Fix hashing the struct tag of
694 pointer targets. Hash field decl names.
696 2009-10-15 Richard Guenther <rguenther@suse.de>
699 * gimple.c (gimple_get_alias_set): Avoid recursing on
700 invalid type topology.
702 2009-10-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
704 * config/spu/spu.c (get_branch_target): Use extract_asm_operands.
706 2009-10-15 Richard Guenther <rguenther@suse.de>
708 * tree.c (free_lang_data_in_decl): Free DECL_FCONTEXT.
710 2009-10-15 Jakub Jelinek <jakub@redhat.com>
712 * config/rs6000/option-defaults.h (OPTION_DEFAULT_SPECS): Don't
713 add --with-tune{,-32,-64} configured default for -mtune if explicit
716 2009-10-14 Daniel Gutson <dgutson@codesourcery.com>
718 * config/arm/neon.md (neon_vshll_n<mode>): Checking Bounds fixed.
720 2009-10-14 DJ Delorie <dj@redhat.com>
722 * config/h8300/h8300.c (F): New.
724 (h8300_emit_stack_adjustment): Call them.
726 (h8300_push_pop): Likewise.
727 (h8300_expand_prologue): Likewise.
728 * config/h8300/h8300.h (DWARF2_DEBUGGING_INFO): Define.
729 (MUST_USE_SJLJ_EXCEPTIONS): Define.
730 (INCOMING_RETURN_ADDR_RTX): Define.
731 (INCOMING_FRAME_SP_OFFSET): Define.
732 (DWARF_CIE_DATA_ALIGNMENT): Define.
734 2009-10-14 Jakub Jelinek <jakub@redhat.com>
736 * stor-layout.c (place_field): Don't emit -Wpadded warnings for
737 fields in builtin structs.
738 (finalize_record_size): Likewise.
740 2009-10-14 Richard Guenther <rguenther@suse.de>
742 * gimple.c (gtc_ob): New global.
743 (struct type_pair_d): Replace pointers with type UIDs.
744 (type_pair_hash): Adjust.
745 (type_pair_eq): Likewise.
746 (lookup_type_pair): Likewise. Allocate from an obstack.
747 (gimple_force_type_merge): Adjust.
748 (gimple_types_compatible_p): Likewise.
749 (free_gimple_type_tables): Free the obstack.
751 2009-10-14 Jakub Jelinek <jakub@redhat.com>
753 * tree-parloops.c (separate_decls_in_region_debug_bind): Drop debug
754 stmts setting DEBUG_EXPR_DECLs.
756 * cfgexpand.c (expand_debug_expr): Ignore zero-length bitfields.
757 Don't crash if mode1 is VOIDmode.
759 2009-09-26 Vladimir Makarov <vmakarov@redhat.com>
761 * params.def (PARAM_IRA_LOOP_RESERVED_REGS): New.
762 * params.h (IRA_LOOP_RESERVED_REGS): New.
763 * tree-pass.h (pass_subregs_of_mode_init,
764 pass_subregs_of_mode_finish): Remove.
765 * passes.c (pass_subregs_of_mode_init,
766 pass_subregs_of_mode_finish): Remove.
767 (pass_reginfo_init): Move before loop optimizations.
768 * config/i386/i386.h (STACK_REG_COVER_CLASS): Define.
769 * common.opt (fira-loop-pressure): New.
770 * toplev.h (flag_ira_loop_pressure): New.
771 * rtl.h (init_subregs_of_mode, finish_subregs_of_mode): New externals.
772 * reginfo.c (init_subregs_of_mode, finish_subregs_of_mode):
773 Make external and void type functions.
774 (gate_subregs_of_mode_init, pass_subregs_of_mode_init,
775 pass_subregs_of_mode_finish): Remove.
776 * ira-costs.c (init_costs): Call init_subregs_of_mode.
777 * regmove.c: Include ira.h.
778 (regmove_optimize): Call ira_set_pseudo_classes after IRA based
779 register pressure calculation in loops.
780 * loop-invariant.c: Include REGS_H and ira.h.
781 (struct loop_data): New members max_reg_pressure, regs_ref, and
783 (struct invariant): New member orig_regno.
784 (curr_loop): New variable.
785 (find_exits): Initialize regs_ref and regs_live.
786 (create_new_invariant): Initialize orig_regno.
787 (get_cover_class_and_nregs): New.
788 (get_inv_cost): Make aregs_needed an array. Use regs_needed as an
789 array. Add code for flag_ira_loop_pressure.
790 (gain_for_invariant): Make new_regs an array. Add code for
791 flag_ira_loop_pressure.
792 (best_gain_for_invariant): Ditto.
793 (set_move_mark): New parameter gain. Use it for debugging output.
794 (find_invariants_to_move): Make regs_needed and new_regs an array.
795 Add code for flag_ira_loop_pressure.
796 (move_invariant_reg): Set up orig_regno.
797 (move_invariants): Set up reg classes for pseudos for
798 flag_ira_loop_pressure.
799 (free_loop_data): Clear regs_ref and regs_live.
800 (curr_regs_live, curr_reg_pressure, regs_set, n_regs_set,
801 get_regno_cover_class, change_pressure, mark_regno_live,
802 mark_regno_death, mark_reg_store, mark_reg_clobber,
803 mark_reg_death, mark_ref_regs, calculate_loop_reg_pressure): New.
804 (move_loop_invariants): Calculate pressure. Initialize curr_loop.
805 * ira.c (ira): Call ira_set_pseudo_classes after IRA based
806 register pressure calculation in loops if new regs were added.
807 Call finish_subregs_of_mode.
808 * opts.c (decode_options): Set up flag_ira_loop_pressure.
809 * Makefile.in (loop-invariant.o): Add ira.h.
811 * doc/invoke.texi (-fira-loop-pressure, ira-loop-reserved-regs):
813 * doc/tm.texi (STACK_REG_COVER_CLASS): Describe.
815 2009-10-14 Richard Guenther <rguenther@suse.de>
817 * lto-symtab.c (lto_symtab_compatible): Fold in ...
818 (lto_symtab_merge): ... here. Rewrite both to take the
819 prevailing and a to-be-merged entry and to queue diagnostics properly.
820 (lto_symtab_resolve_replaceable_p): New predicate for
822 (lto_symtab_resolve_can_prevail_p): Likewise.
823 (lto_symtab_resolve_symbols): Rewrite. Fold in code that
824 handles merging commons by choosing the largest decl. Fold
825 in code that gives ODR errors.
826 (lto_symtab_merge_decls_2): Simplify a lot. Emit queued
828 (lto_symtab_merge_decls_1): Re-structure. Deal with the
829 case of no prevailing decl here. Diagnose mismatches
830 in object types here. Drop all but the prevailing decls.
831 (lto_symtab_prevailing_decl): Return the single prevailing decl.
832 * lto-streamer-in.c (lto_input_tree_ref): Deal with
833 VIEW_CONVERT_EXPRs in decl slots. Unshare the tree in this case.
835 2009-10-14 Richard Guenther <rguenther@suse.de>
838 * lto-streamer-in.c (input_bb): Replace debug stmts with
839 nops instead of dropping them.
841 2009-10-14 Nick Clifton <nickc@redhat.com>
843 * gcc/doc/extended.texi: Replace the dash character with @minus{}
844 in situations where it is being used as a minus symbol.
845 * gcc/doc/tm.texi: Likewise.
846 * gcc/doc/md.texi: Likewise.
848 2009-10-14 Jakub Jelinek <jakub@redhat.com>
850 PR preprocessor/41543
851 * input.h (BUILTINS_LOCATION): Change to 1 from 2.
852 Assert BUILTINS_LOCATION < RESERVED_LOCATION_COUNT.
853 * tree.c: Include intl.h.
854 (expand_location): Handle BUILTINS_LOCATION.
855 * Makefile.in (tree.o): Depend on intl.h.
858 * dwarf2out.c (dwarf2out_var_location): Always clear
859 last_postcall_label when changing last_label.
861 2009-10-14 Pascal Obry <obry@adacore.com>
863 * gcc.c (DEFAULT_SWITCH_CURTAILS_COMPILATION): Add -E.
864 (process_command): Handle -E as done with -c and -S. Do not add
865 the target executable suffix to the output file when -E is used.
866 (main): Adjust error message accordingly.
868 2009-10-14 Alexandre Oliva <aoliva@redhat.com>
874 * tree.c (tree_node_structure_for_code): DEBUG_EXPR_DECL uses
876 (tree_code_size): Likewise.
878 2009-10-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
880 * builtins.c (fold_builtin_1): Support complex "arc" functions.
881 * real.h (HAVE_mpc_arc): Define.
883 2009-10-14 Kaz Kojima <kkojima@gcc.gnu.org>
885 * config/sh/sh.c (TARGET_BUILTIN_DECL): Define.
886 (struct builtin_description): Add fndecl field.
887 (bdesc): Remove const qualifier. Update initializer.
888 (sh_media_init_builtins): Remove const qualifier for d. Record
889 the result of add_builtin_function to the fndecl field.
890 (sh_builtin_decl): New.
891 (sh_media_builtin_decl): New.
893 2009-10-14 Hans-Peter Nilsson <hp@axis.com>
896 * config/cris/cris.h (SECONDARY_RELOAD_CLASS): Handle reload
897 requests between special registers.
899 2009-10-13 Eric Botcazou <ebotcazou@adacore.com>
901 * dwarf2out.c (mem_loc_descriptor): Accept UNGT as well.
903 2009-10-13 Richard Henderson <rth@redhat.com>
905 PR tree-optimization/41377
906 * tree-eh.c (unsplit_eh): Propagate degenerate PHIs.
907 (cleanup_empty_eh_merge_phis): New change_region parameter;
908 pass it on to redirect_eh_edge_1. Update callers.
909 (cleanup_empty_eh_unsplit): Don't require an existing EH label
910 at the destination block.
912 2009-10-13 Basile Starynkevitch <basile@starynkevitch.net>
914 * passes.c (register_pass): Replaced gcc_unreachable by
915 fatal_error on failure. Mentions plugins in comments & messages.
917 2009-10-13 Jakub Jelinek <jakub@redhat.com>
920 * rtl.h (DEBUG_EXPR_TREE_DECL): Define.
921 * sched-vis.c (print_value): Use it.
922 * cselib.c (cselib_hash_rtx): Likewise.
923 * print-rtl.c (print_rtx): Likewise.
924 * cfgexpand.c (expand_debug_rtx): Likewise.
925 * var-tracking.c (vt_expand_loc_callback): Likewise.
927 2009-10-13 Richard Guenther <rguenther@suse.de>
930 * opts.c (handle_option): Split out code to handle setting
931 the options flag var ...
932 (set_option): ... here.
933 * opts.h (set_option): Declare.
934 * lto-opts.c (register_user_option_p): Include -fexceptions
935 and all position independent code variants.
936 (handle_common_option): Remove.
937 (lto_reissue_options): Use set_option.
939 2009-10-13 Martin Jambor <mjambor@suse.cz>
941 PR tree-optimization/41661
942 * ipa-prop.c (compute_complex_pass_through): Allow only operations
943 that are tcc_comparisons or do not change the type in any
945 * ipa-cp.c (ipcp_lattice_from_jfunc): Request boolean type when
946 folding tcc_comparison operations.
948 2009-10-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
950 * config/s390/s390.c (s390_encode_section_info): Handle BLKmode
953 2009-10-12 Alexandre Oliva <aoliva@redhat.com>
959 * tree.def (DEBUG_EXPR_DECL): New.
960 * rtl.def (DEBUG_EXPR): New.
961 * gengtype.c (adjust_field_rtx_def): Handle it.
962 * tree-ssa.c (propagate_var_def_into_debug_stmts): Rename to...
963 (insert_debug_temp_for_var_def): ... this. Drop support for
964 moving. Take iterator for def stmt; insert debug stmt before it.
965 Scan early for use count and kind in debug stmts.
966 (propagate_defs_into_debug_stmts): Rename to...
967 (insert_debug_temps_for_defs): ... this. Likewise.
968 * tree.h (DEBUG_TEMP_UID): New.
969 * tree.c (next_debug_decl_uid): New.
970 (make_node_stat): Count debug decls separately.
971 (copy_node_stat): Likewise.
972 * cfgexpand.c (expand_debug_expr): Handle DEBUG_EXPR_DECL.
973 * var-tracking.c (dv_is_decl_p): Recognize it.
974 (VALUE_RECURSED_INTO): Apply to DEBUG_EXPRs too.
975 (track_expr_p): Track expanded DEBUG_EXPR_DECLs.
976 (vt_expand_loc_callback): Expand DEBUG_EXPRs.
977 (emit_note_insn_var_location): Don't emit notes for DEBUG_EXPR_DECLs.
978 * cselib.c (rtx_equal_for_cselib_p): Handle DEBUG_EXPR.
979 (cselib_hash_rtx): Likewise.
980 (cselib_expand_value_rtx_1): Use callback for DEBUG_EXPR.
981 * tree-ssa-operands.c (get_expr_operands): Skip DEBUG_EXPR_DECLs in
983 * emit-rtl.c (verify_rtx_sharing): Handle DEBUG_EXPR and VALUE.
984 (copy_rtx_if_shared_1, reset_used_flags, set_used_flags): Likewise.
985 * rtl.c (copy_rtx): Likewise.
986 (rtx_equal_p_cb, rtx_equal_p): Handle DEBUG_EXPR.
987 * print-rtl.c (print_rtx): Likewise.
988 * sched-vis.c (print_value): Likewise.
989 (print_insn): Handle DEBUG_EXPR_DECL.
990 * tree-dump.c (dequeue_and_dump): Likewise.
991 * tree-pretty-print.c (dump_decl_name, dump_generic_node): Likewise.
992 * gimple-iterator (gsi_replace): Check for same lhs.
993 (gsi_remove): Insert debug temps.
994 * tree-ssa-loop-im.c (rewrite_reciprocal): Replace with same lhs.
995 (move_computations_stmt): Drop explicit propagation into debug stmts.
996 (rewrite_bittest): Likewise. Use gsi_remove for propagation.
997 * tree-ssa-reassoc.c (rewrite_expr_tree, linearize_expr): Likewise.
998 * tree-ssa-sink.c (statement_sink_location): Likewise.
999 * tree-ssa-forwprop (forward_propagate_addr_expr): Likewise.
1000 * tree-ssanames.c (release_ssa_name): Adjust for rename.
1001 * tree-flow.h: Likewise.
1002 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Don't mark
1003 debug temps without values.
1004 (eliminate_unnecessary_stmts): Don't discard just-inserted
1007 2009-10-12 Hans-Peter Nilsson <hp@axis.com>
1010 * config/cris/cris.md (andu): Check that operand 1 is one of the
1011 general registers. Fix typo in head comment.
1013 2009-10-12 Stefan Dösinger <stefan@codeweavers.com>
1015 * config/i386/i386.md (vswapmov): New.
1016 * config/i386/i386.c (ix86_handle_fndecl_attribute): New.
1017 (ix86_function_ms_hook_prologue): New.
1018 (ix86_expand_prologue): Handle ms_hook_prologue attribute.
1019 * configure.ac: Test for swap suffix support in as.
1020 * configure: Rebuild.
1022 2009-10-12 Jakub Jelinek <jakub@redhat.com>
1025 * config/i386/i386.md (split after *testqi_ext_3_rex64): Only narrow
1026 paradoxical subregs to prevent partial register stalls if the inner
1027 mode is integer mode.
1029 2009-10-12 Uros Bizjak <ubizjak@gmail.com>
1031 * config/i386/i386.md (*setcc_<mode>_2): Remove insn pattern.
1033 2009-10-12 Dodji Seketeli <dodji@redhat.com>
1036 * gcc/dwarf2out.c (template_parameter_pack_die,
1037 gen_formal_parameter_pack_die): Use add_name_and_src_coords_attributes.
1039 2009-10-12 Alexandre Oliva <aoliva@redhat.com>
1042 * tree-into-ssa.c (insert_phi_nodes_for): Build debug bind stmts
1044 (maybe_register_def): Likewise. Take stmt iterator.
1045 (rewrite_update_stmt): Take stmt iterator and pass it on.
1046 (rewrite_update_enter_block): Pass stmt iterator.
1048 2009-10-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
1050 * config/spu/spu.c (TARGET_BUILTIN_DECL): Define.
1051 (spu_builtin_decl): New function.
1053 2009-10-12 Uros Bizjak <ubizjak@gmail.com>
1055 * config/i386/i386.md (SWIM): New mode iterator.
1056 (mov<mode>cc): Macroize expander from mov{qi,hi,si,di}cc patterns
1057 using SWIM mode iterator.
1058 (x86_mov<mode>cc_0_m1): Macroize insn from x86_mov{si,di}cc_0_m1
1059 patterns using SWI48 mode iterator.
1060 (*x86_mov<mode>cc_0_m1_se): Macroize insn from
1061 *x86_mov{si,di}cc_0_m1_se patterns using SWI48 mode iterator.
1062 (*x86_mov<mode>cc_0_m1_neg): New insn pattern.
1063 (*mov<mode>cc_noc): Macroize insn from *mov{hi,si,di}cc_noc
1064 patterns using SWI248 mode iterator.
1065 * config/i386/i386.c (ix86_expand_int_movcc): Update the call to
1066 gen_x86_movdicc_0_m1_rex64 for renamed function
1068 2009-10-11 Jose Ruiz <ruiz@adacore.com>
1069 Eric Botcazou <ebotcazou@adacore.com>
1072 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Define.
1073 * config/sparc/sol2-unwind.h: New file.
1075 2009-10-11 Olivier Hainque <hainque@adacore.com>
1076 Eric Botcazou <ebotcazou@adacore.com>
1079 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Define.
1080 * config/i386/sol2-unwind.h: New file.
1082 2009-10-11 H.J. Lu <hongjiu.lu@intel.com>
1085 * config/i386/i386.md (addsi_1_zext): Get the proper second
1088 2009-10-11 Richard Sandiford <rdsandiford@googlemail.com>
1090 * simplify-rtx.c (simplify_replace_rtx): Use rtx_equal_p for
1091 all OLD_RTXes, not just REGs. Use copy_rtx to create the
1094 2009-10-11 Richard Guenther <rguenther@suse.de>
1096 * gimple.c (iterative_hash_type_name): Do not handle special
1099 2009-10-11 Uros Bizjak <ubizjak@gmail.com>
1101 * config/i386/i386.md (*setcc_di_1): New insn_and_split pattern.
1102 (*setcc_si_1_and): Ditto.
1103 (*setcc_si_1_movzbl): Ditto.
1104 (*setcc_<mode>_2): Ditto.
1105 (*setcc_qi): Rename from *setcc_1.
1106 (*setcc_qi_slp): Rename from *setcc_2.
1108 (*zero_extendqihi2_movzbw_and splitter): Use ix86_expand_clear.
1109 (*zero_extendqisi2_movzbw_and splitter): Ditto.
1111 * config/i386/i386.c (ix86_expand_clear): Remove reload_completed from
1112 "if" condition, there is already assert with reload_completed present.
1114 2009-10-11 Gerald Pfeifer <gerald@pfeifer.com>
1116 * plugin.c (try_init_one_plugin): Improve constness of variable err.
1118 2009-10-10 Gerald Pfeifer <gerald@pfeifer.com>
1120 * doc/install.texi (Final install): Refer to
1121 http://gcc.gnu.org/bugs/ for bug reporting.
1123 2009-10-10 Peter Bergner <bergner@vnet.ibm.com>
1125 * configure.ac: Add test for dci instruction.
1126 * configure: Regenerate.
1127 * config.in: Likewise.
1128 * config.gcc: Handle --with-cpu=476 and --with-cpu=476fp.
1129 * doc/invoke.texi: Add cpu_type 476 and 476fp.
1130 (-mmulhw): Add 476 to description.
1131 (-mdlmzb): Likewise.
1132 * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=476.
1133 * config/rs6000/rs6000.c (processor_costs): Add ppc476_cost.
1134 (processor_target_table): Add 476 and 476fp entries.
1135 (rs6000_override_options): Use ppc476_cost for PROCESSOR_PPC476.
1136 (rs6000_issue_rate): Add CPU_PPC476.
1137 * config/rs6000/rs6000.h (ASM_CPU_476_SPEC): Define.
1138 (ASM_CPU_SPEC): Pass %(asm_cpu_476) for -mcpu=476 and -mcpu=476fp.
1139 (processor_type): Add PROCESSOR_PPC476.
1140 (EXTRA_SPECS): Add asm_cpu_476 string.
1141 * config/rs6000/rs6000.md (define_attr "type"): Add isel attribute.
1142 (define_attr "cpu"): Add ppc476.
1144 Update comments for 476.
1145 (isel_signed, isel_unsigned): Change to use "isel" type attribute.
1146 * config/rs6000/vxworks.h (CPP_SPEC): Handle 464 and 476.
1147 Update copyright year.
1148 * config/rs6000/476.md: New file.
1149 * config/rs6000/40x.md: Add description for "isel" attribute.
1150 Update copyright year.
1151 * config/rs6000/440.md: Likewise.
1152 * config/rs6000/603.md: Likewise.
1153 * config/rs6000/6xx.md: Likewise.
1154 * config/rs6000/7450.md: Likewise.
1155 * config/rs6000/7xx.md: Likewise.
1156 * config/rs6000/8540.md: Likewise.
1157 * config/rs6000/cell.md: Likewise.
1158 * config/rs6000/e300c2c3.md: Likewise.
1159 * config/rs6000/e500mc.md: Likewise.
1160 * config/rs6000/mpc.md: Likewise.
1161 * config/rs6000/power4.md: Likewise.
1162 * config/rs6000/power5.md: Likewise.
1163 * config/rs6000/power6.md: Likewise.
1164 * config/rs6000/power7.md: Likewise.
1165 * config/rs6000/rios1.md: Likewise.
1166 * config/rs6000/rios2.md: Likewise.
1167 * config/rs6000/rs64.md: Likewise.
1169 2009-10-10 Richard Guenther <rguenther@suse.de>
1171 PR tree-optimization/41654
1172 * tree-ssa-ifcombine.c (ifcombine_ifandif): Properly canonicalize
1173 a cond expr before calling gimple_cond_set_condition_from_tree.
1174 (ifcombine_iforif): Likewise.
1176 2009-10-09 Ian Lance Taylor <iant@google.com>
1178 * configure.ac: Use AC_SEARCH_LIBS to find dlopen.
1179 * configure: Rebuild.
1181 2009-10-09 Neil Vachharajani <nvachhar@google.com>
1183 * doc/cpp.texi (Other Directives): Do not list #ident and #sccs as
1186 2009-10-09 Richard Guenther <rguenther@suse.de>
1189 * target-def.h (TARGET_BUILTIN_DECL): Define.
1190 (TARGET_INITIALIZER): Add TARGET_BUILTIN_DECL.
1191 * target.h (struct gcc_target): Add builtin_decl target hook.
1192 * doc/tm.texi (TARGET_BUILTIN_DECL): Document.
1193 * lto-streamer-in.c (lto_get_builtin_tree): Fix handling of
1195 * lto-streamer-out.c (lto_output_tree_pointers): Use sorry,
1196 not gcc_unreachable.
1197 (lto_output_builtin_tree): Sorry if the target does not support
1198 streaming target builtins.
1199 * config/rs6000/rs6000.c (TARGET_BUILTIN_DECL): Define.
1200 (rs6000_builtin_decl): New function.
1201 * config/i386/i386.c (TARGET_BUILTIN_DECL): Define.
1202 (ix86_builtin_decl): New function.
1204 2009-10-09 Jakub Jelinek <jakub@redhat.com>
1206 PR preprocessor/41445
1207 * c-ppoutput.c (do_line_change): New function.
1208 (cb_line_change): Use it.
1209 (scan_translation_unit): Call do_line_change if
1210 avoid_paste or PREV_WHITE and token location is on a different line
1211 than print.src_line.
1214 * dwarf2out.c (dwarf2out_init): Test whether
1215 HAVE_GAS_CFI_SECTIONS_DIRECTIVE is non-zero instead of checking
1218 PR rtl-optimization/41646
1219 * calls.c (expand_call): For BLKmode types returned in registers
1220 avoid likely spilled hard regs in copy_blkmode_from_reg generated
1223 2009-10-09 Richard Guenther <rguenther@suse.de>
1225 PR tree-optimization/41634
1226 * tree-ssa-dom.c (remove_local_expressions_from_table): Assert
1227 we remove the correct elements.
1228 (optimize_stmt): Make sure to update stmt operands before
1229 optimizing redundancies.
1231 2009-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1233 * config/s390/s390.md ("prefetch"): Remove stcmh for prefetching.
1235 2009-10-09 Richard Guenther <rguenther@suse.de>
1238 * lto-wrapper.c (ltrans_output_file, flto_out, args_name): New
1240 (lto_wrapper_exit): New function.
1242 (fatal_perror): Likewise.
1243 (fork_execute): Use global args_name, do not free it.
1244 (run_gcc): Use global ltrans_output_file, flto_out, do not free them.
1245 * lto-streamer.h: Remove duplicate prototypes.
1247 2009-10-09 Richard Guenther <rguenther@suse.de>
1249 * cgraph.c (cgraph_create_edge): Check for NULL call_stmt
1250 before calling stmt_can_throw_external.
1252 2009-10-09 Eric Botcazou <ebotcazou@adacore.com>
1254 PR tree-optimization/40071
1255 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Build a ref-all
1256 pointer if the original data reference doesn't conflict with the
1257 created vector data reference. Fix long line.
1259 2009-10-09 Uros Bizjak <ubizjak@gmail.com>
1261 * config/i386/i386.md (any_div): New code iterator.
1262 (u): Handle div and udiv.
1264 (<u>divqi3): Macroize insn from {,u}divqi3 using any_div
1266 (lfloor<MODEF:mode><SWI48:mode>2): Macroize insn from
1267 lfloor<mode>{si,di}2 patterns using SWI48 mode iterator.
1268 (lceil<MODEF:mode><SWI48:mode>2): Macroize insn from
1269 lceil<mode>{si,di}2 patterns using SWI48 mode iterator.
1271 2009-10-08 Joseph Myers <joseph@codesourcery.com>
1273 * gcc.c (main): Remove trailing "." from diagnostics.
1275 2009-10-08 Cary Coutant <ccoutant@google.com>
1277 Add support for debugging with ICF (Identical Code Folding).
1278 * calls.c (debug.h): New #include.
1279 (emit_call_1): Call virtual_call_token debug hook.
1280 * common.opt (-fenable-icf-debug): New option.
1281 * dwarf2out.c (dwarf2_debug_hooks): Add entries for new hooks (two
1282 locations in the source).
1283 (poc_label_num): New variable.
1284 (dcall_entry, vcall_entry): New typedefs.
1285 (dcall_table, vcall_table): New variables.
1286 (struct vcall_insn): New type.
1287 (vcall_insn_table): New variable.
1288 (DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION): New macros.
1289 (size_of_dcall_table): New function.
1290 (output_dcall_table): New function.
1291 (size_of_vcall_table): New function.
1292 (output_vcall_table): New function.
1293 (dwarf2out_direct_call): New function.
1294 (vcall_insn_table_hash): New function.
1295 (vcall_insn_table_eq): New function.
1296 (dwarf2out_virtual_call_token): New function.
1297 (dwarf2out_virtual_call): New function.
1298 (dwarf2out_init): Allocate new tables and sections.
1299 (prune_unused_types): Mark DIEs referenced from direct call table.
1300 (dwarf2out_finish): Output direct and virtual call tables.
1301 * final.c (final_scan_insn): Call direct_call and virtual_call
1303 * debug.h (struct gcc_debug_hooks): Add direct_call,
1304 virtual_call_token, virtual_call hooks.
1305 (debug_nothing_uid): New function.
1306 * debug.c (do_nothing_debug_hooks): Add dummy entries for new hooks.
1307 (debug_nothing_uid): New function.
1308 * dbxout.c (dbx_debug_hooks): Add dummy entries for new hooks.
1309 (xcoff_debug_hooks): Likewise.
1310 * sdbout.c (sdb_debug_hooks): Likewise.
1311 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
1312 * doc/invoke.texi (-fenable-icf-debug): New option.
1314 2009-10-08 Alexandre Oliva <aoliva@redhat.com>
1317 * regmove.c (regmove_backward_pass): Replace src with dst in the
1318 debug insn, and check for dst before rather than after.
1320 2009-10-08 Janis Johnson <janis187@us.ibm.com>
1322 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Remove.
1323 (TARGET_DELEGITIMIZE_ADDRESS): Likewise.
1325 2009-10-08 Jan Hubicka <jh@suse.cz>
1328 * cgraphbuild.c (record_reference): When parameter DATA is NULL,
1329 do not mark cgraph nodes as needed.
1330 (record_references_in_initializer): Add new only_vars parameter.
1331 * cgraph.h (record_references_in_initializer): New parameter.
1332 * varasm.c (assemble_variable): Update call.
1333 * varpool.c (varpool_analyze_pending_decls): Always look for
1336 2009-10-08 Anatoly Sokolov <aesok@post.ru>
1338 * config/avr/avr.c (last_insn_address) Remove variable.
1339 (expand_prologue): Don't initialise last_insn_address variable.
1340 (final_prescan_insn): Don't output insn size.
1341 * config/avr/avr.opt (msize): Remove switch.
1342 * doc/invoke.texi (AVR Options): Remove documentation of -msize
1345 2009-10-08 Adam Nemet <anemet@caviumnetworks.com>
1347 * combine.c (label_tick_ebb_start): Fix comment.
1348 (combine_instructions): Set label_tick and label_tick_ebb_start before
1349 calling setup_incoming_promotions. Start them from 1. Increment
1350 label_tick instead of deriving it from the BB index. Rather than
1351 comparing ticks use the block from the previous iteration to decide
1352 whether to start a new EBB. Remove empty lines before function.
1354 2009-10-08 Michael Matz <matz@suse.de>
1357 * builtins.c (fold_builtin_isascii): Use fold_build2.
1358 (fold_builtin_isdigit): Ditto.
1359 * except.c (duplicate_eh_regions_1): Tolerate NULL labels.
1360 * tree-cfg.c (struct rus_data, remove_useless_stmts_warn_notreached,
1361 remove_useless_stmts_cond, remove_useless_stmts_tf,
1362 remove_useless_stmts_tc, remove_useless_stmts_bind,
1363 remove_useless_stmts_goto, remove_useless_stmts_label,
1364 remove_useless_stmts_1, remove_useless_stmts,
1365 pass_remove_useless_stmts): Remove.
1366 * tree-pass.h (pass_remove_useless_stmts): Don't declare.
1367 * passes.c (init_optimization_passes): Don't add
1368 pass_remove_useless_stmts.
1369 * tree-eh.c (lower_eh_constructs_2): Handle empty cleanups.
1370 * tree.c (free_lang_data_in_decl): Don't clear DECL_INITIAL of
1372 * lto-symtab.c (lto_symtab_register_decl): Accepts DECL_INITIAL
1373 for static constants.
1374 * lto-streamer-out.c (output_gimple_stmt): Handle GIMPLE_NOP.
1375 * lto-streamer-in.c (input_gimple_stmt): Handle GIMPLE_NOP.
1377 2009-10-08 Richard Guenther <rguenther@suse.de>
1379 * gimple.c (free_gimple_type_tables): New function.
1380 * gimple.h (free_gimple_type_tables): Declare.
1382 2009-10-07 Mark Heffernan <meheff@google.com>
1384 * ipa-prop.c (ipa_print_node_params) Only print
1385 names of named arguments.
1387 2009-10-08 Rafael Avila de Espindola <espindola@google.com>
1389 * gcc.c (LINK_COMMAND_SPEC): Pass libc with -pass-through if it is
1390 being statically linked.
1392 2009-10-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1394 * collect2.c (add_lto_object): Only define if OBJECT_FORMAT_NONE.
1396 2009-10-08 Jan Hubicka <jh@suse.cz>
1399 * ipa.c (cgraph_externally_visible_p,
1400 function_and_variable_visibility,
1401 whole_program_function_and_variable_visibility): Skip non-finalized
1404 2009-10-08 Nick Clifton <nickc@redhat.com>
1406 * config/mn10300/mn10300.h (CONSTANT_ADDRESS_P): Do not allow
1409 2009-10-08 Andreas Tobler <a.tobler@schweiz.org>
1412 * config.host: Use config/x-cflags-O1 for powerpc FreeBSD.
1414 2009-10-07 Joseph Myers <joseph@codesourcery.com>
1417 * c-common.c (c_fully_fold_internal): Strip nops from the result
1418 of recursive calls to c_fully_fold_internal.
1419 (c_wrap_maybe_const): New.
1420 (c_save_expr): Use c_wrap_maybe_const.
1421 * c-common.h (c_wrap_maybe_const): Declare.
1422 * c-typeck.c (build_conditional_expr, c_finish_stmt_expr,
1423 build_binary_op): Use c_wrap_maybe_const.
1425 2009-10-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1427 * real.c: Fix comment to reflect actual exponent size.
1429 2009-10-08 Ben Elliston <bje@au.ibm.com>
1431 * config/rs6000/a2.md: Add FSF comment header.
1433 2009-10-07 Uros Bizjak <ubizjak@gmail.com>
1435 * config/i386/i386.md (any_extend): New code iterator.
1436 (u, s): New code attributes.
1438 (DWIH): Rewrite as code iterator for SI and DI modes.
1439 (DWI): Rewrite as mode attribute.
1440 (dwi): New mode attribute.
1441 (di): Depend on SI mode and DI mode.
1442 (doubleint_general_operand): Remove mode attribute.
1444 (*lea_1): Macroize insn from *lea_1_rex64 and *lea_1 patterns using
1447 (*add<mode>3_doubleword): Use DWIH as the base mode iterator.
1448 (*sub<mode>3_doubleword): Ditto.
1450 (mul<mode>3): Macroize expander from mul{hi,si,di}3 patterns
1451 using SWIM248 mode iterator.
1452 (*mul<mode>3_1): Macroize insn from mul{si,di}3_1 patterns
1453 using SWI48 mode iterator.
1454 (<u>mul<mode><dwi>3): Macroize expander from {,u}mul{sidi,diti}3
1455 patterns using DWIH mode iterator and any_extend code iterator.
1456 (<u>mulqihi3): Macroize expander from {,u}mulqihi3 patterns
1457 using any_extend code iterator.
1458 (*<u>mul<mode><dwi>3_1): Macroize insn from {,u}mul{sidi,diti}3_1
1459 patterns using DWIH mode iterator and any_extend code iterator.
1460 (*<u>mulqihi3_1): Macroize insn from {,u}mulqihi3_1 patterns
1461 using any_extend code iterator.
1462 (<s>mul<mode>3_highpart): Macroize expander from
1463 {s,u}mul{si,di}3_highpart patterns using DWIH mode iterator
1464 and any_extend code iterator.
1465 (*<s>muldi3_highpart_1): Macroize insn from
1466 *{s,u}muldi3_highpart_rex64 patterns using any_extend code iterator.
1467 (*<s>mulsi3_highpart_1): Macroize insn from *{s,u}mulsi3_highpart_1
1468 patterns using any_extend code iterator.
1469 (*<s>mulsi3_highpart_zext): Macroize insn from
1470 *{s,u}mulsi3_highpart_zext patterns using any_extend code iterator.
1472 2009-10-07 Jakub Jelinek <jakub@redhat.com>
1474 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Don't add
1475 DW_AT_const_value if VAR_DIE already has DW_AT_abstract_origin
1476 refering to a DIE with DW_AT_const_value.
1478 2009-10-07 Vladimir Makarov <vmakarov@redhat.com>
1481 * ira-lives.c (check_and_make_def_conflict): Process all operands.
1483 2009-10-06 Jan Hubicka <jh@suse.cz>
1485 * cgraph.c (cgraph_node_can_be_local): Handle externally visible nodes
1488 2009-10-06 Uros Bizjak <ubizjak@gmail.com>
1490 * config/i386/i386.md (*lea_1_rex64, *lea_1, *lea_1_zext,
1491 *lea_2_rex64): Move before *add<mode>_1 pattern.
1493 2009-10-07 Jan Hubicka <jh@suse.cz>
1495 * collect2.c (main): Add -fno-whole-program.
1496 * gcc.c (set_collect_gcc_options): Do not remove whole program here.
1498 2009-10-07 Jan Hubicka <jh@suse.cz>
1500 * lto-symtab.c (lto_cgraph_replace_node): Assert that inline clones
1501 has no address taken.
1502 * cgraph.c (cgraph_mark_needed_node): Assert that inline clones are
1504 (cgraph_clone_node): Clear externally_visible flag for clones.
1505 * cgraph.h (cgraph_only_called_directly_p,
1506 cgraph_can_remove_if_no_direct_calls_p): New predicates.
1507 * tree-pass.h (pass_ipa_whole_program_visibility): Declare.
1508 * ipa-cp.c (ipcp_cloning_candidate_p): Use new predicate.
1509 (ipcp_initialize_node_lattices, ipcp_estimate_growth,
1510 ipcp_insert_stage): Likwise.
1511 * cgraphunit.c (cgraph_decide_is_function_needed): Do not compute
1512 externally_visible flag.
1513 (verify_cgraph_node): Verify that inline clones look right.
1514 (process_function_and_variable_attributes): Do not set
1515 externally_visible flags.
1516 (ipa_passes): Avoid executing small_ipa_passes at LTO stage; they've
1518 * lto-cgraph.c (lto_output_node): Assert that inline clones are not
1520 * ipa-inline.c (cgraph_clone_inlined_nodes): Use new predicates;
1521 clear externally_visible when turning into inline clones
1522 (cgraph_mark_inline_edge): Use new predicates.
1523 (cgraph_estimate_growth): Likewise.
1524 (cgraph_decide_inlining): Likewise.
1525 * ipa.c (cgraph_postorder): Likewise.
1526 (cgraph_remove_unreachable_nodes): Likewise; sanity check
1527 that inline clones are not needed.
1528 (cgraph_externally_visible_p): New predicate.
1529 (function_and_variable_visibility): Add whole_program parameter;
1530 always set externally_visible flag; handle COMDAT function
1532 (local_function_and_variable_visibility): New function.
1533 (gate_whole_program_function_and_variable_visibility): New function.
1534 (whole_program_function_and_variable_visibility): New function.
1535 (pass_ipa_whole_program_visibility): New function.
1536 * passes.c (init_optimization_passes): Add whole program visibility
1538 (do_per_function_toporder, function_called_by_processed_nodes_p): Do
1539 not care about needed/reachable flags.
1540 * varpool.c: Include flags.h
1541 (decide_is_variable_needed): When doing LTO assume whole-program mode.
1542 (varpool_finalize_decl): When we are in LTO read-back, all variables
1544 (varpool_analyze_pending_decls): Skip analyzis of analyzed vars.
1546 2009-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1548 * config/s390/tpf.h (TARGET_DEFAULT): Remove MASK_HARD_FLOAT and
1551 2009-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1553 * config.gcc: Don't include the makefile fragments intended for
1555 * config/s390/fixdfdi.h: File removed.
1556 * config/s390/libgcc-glibc.ver: File removed.
1557 * config/s390/s390.h: Remove the fixdfdi.h hack.
1558 * config/s390/t-crtstuff: File moved to libgcc dir.
1559 * config/s390/t-linux: Likewise.
1560 * config/s390/t-tpf: libgcc specific parts removed.
1561 * config/s390/t-linux64: Likewise.
1563 2009-10-06 Jerry Quinn <jlquinn@optonline.net>
1565 * Makefile.in (lto-wrapper): Use COMPILER and ALL_COMPILERFLAGS.
1566 (lto-compress.o): Likewise.
1568 2009-10-07 Danny Smith <dannysmith@users.sourceforge.net>
1571 * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't propagate
1572 dllexport to class members here.
1573 (i386_pe_determine_dllimport_p): Only check static class data for
1575 (i386_pe_encode_section_info): Don't recheck DECL_DLLIMPORT_P.
1576 * config/i386/winnt-cxx.c (i386_pe_type_dllimport_p): Only check
1577 functions for vague linkage.
1578 (i386_pe_type_dllexport_p): Fix formatting.
1579 (maybe_add_dllexport) New function.
1580 (i386_pe_adjust_class_at_definition): Use it to propagate dllexport
1583 2009-10-07 Ben Elliston <bje@au.ibm.com>
1585 * config/rs6000/a2.md: Remove duplicated lines.
1587 2009-10-07 Ben Elliston <bje@au.ibm.com>
1589 * config.gcc (powerpc*-*-*): Handle a2.
1590 * config/rs6000/rs6000.md (cpu): Add ppca2. Include "a2.md".
1591 * config/rs6000/a2.md: New file.
1592 * config/rs6000/rs6000.opt (mno-update): New.
1593 (mupdate): Return to using a mask, not a var.
1594 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for a2.
1595 (enum processor_type): Add PROCESSOR_PPCA2.
1596 * config/rs6000/rs6000.c (ppca2_cost): New costs.
1597 (rs6000_override_options): Add "a2" to processor_target_table.
1598 Update rs6000_always_hint logic. Correctly set rs6000_cost for a2.
1599 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=a2.
1601 2009-10-06 Uros Bizjak <ubizjak@gmail.com>
1603 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
1604 Use explicit gen_truncxfsf2 and gen_truncxfdf2 references to avoid
1605 reference to nonexistent gen_truncxfxf2 function.
1607 2009-10-06 Uros Bizjak <ubizjak@gmail.com>
1609 * config/i386/i386.md (SWI48, SDWIM, DWI): New mode iterators.
1610 (DWIH, g, di, doubleint_general_operand): New mode attributes.
1611 (general_operand): Handle TI mode.
1612 (add<mode>3): Macroize expander from add{qi,hi,si,di,ti}3 patterns
1613 using SDWIM mode iterator.
1614 (*add<mode>3_doubleword): New insn_and_split pattern. Macroize
1615 pattern from *add{di,ti}3_1 patterns and corresponding splitters
1616 using DWI mode iterator.
1617 (add<mode>3_carry): Macroize insn from add{qi,hi,si,di}3_carry
1618 patterns using SWI mode iterator.
1619 (*add<mode>3_cc): Macroize insn from add{si,di}3_cc patterns
1620 using SWI48 mode iterator.
1621 (*add<mode>_1): Ditto from add{si,di}_1 patterns.
1622 (*add<mode>_2): Ditto from add{si,di}_2 patterns.
1623 (*add<mode>_3): Ditto from add{si,di}_3 patterns.
1624 (*add<mode>_5): Ditto from add{si,di}_5 patterns.
1625 (sub<mode>3): Macroize expander from sub{qi,hi,si,di,ti}3 patterns
1626 using SDWIM mode iterator.
1627 (*sub<mode>3_doubleword): New insn_and_split pattern. Macroize
1628 pattern from *sub{di,ti}3_1 patterns and corresponding splitters
1629 using DWI mode iterator.
1630 (sub<mode>3_carry): Macroize insn from sub{qi,hi,si,di}3_carry
1631 patterns using SWI mode iterator.
1632 (*sub<mode>_1): Ditto from from sub{qi,hi,si,di}_1 patterns.
1633 (*sub<mode>_2): Ditto from sub{qi,hi,si,di}_2 patterns.
1634 (*sub<mode>_3): Ditto from sub{qi,hi,si,di}_3 patterns.
1635 (<plusminus_insn>xf3): Macroize expander from addxf3 and subxf3
1636 patterns using plusminus code iterator.
1637 (<plusminus_insn><mode>3): Macroize expander from add<mode>3 and
1638 sub<mode>3 patterns using plusminus code iterator.
1639 * config/i386/i386.c (override_options): Update the call to
1640 gen_subdi_carry_rex64 for renamed function.
1641 (ix86_expand_int_addcc): Update calls to gen_subdi3_carry_rex64
1642 and gen_adddi3_carry_rex64 for renamed functions. Use indirect
1643 calls to instruction expanders.
1645 2009-10-06 Martin Jambor <mjambor@suse.cz>
1648 * opts.c (decode_options): Run IPA-SRA at -O2.
1650 2009-10-06 Richard Guenther <rguenther@suse.de>
1652 * lto-symtab.c (lto_symtab_entry_hash): Hash strings, not pointers.
1654 2009-10-06 Tobias Burnus <burnus@net-b.de>
1657 * doc/invoke.texi (-flto,-fwhole-program): Make clear that the
1658 -flto and -fwhole-program flags can be combined.
1660 2009-10-06 Ryan Mansfield <rmansfield@qnx.com>
1663 * gcc.c (process_command): Check that -o argument was specified.
1665 2009-10-06 Jerry Quinn <jlquinn@optonline.net>
1667 * gimple.c (gimple_type_hash): Use CONST_CAST_TREE to fix compilation.
1669 2009-10-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1671 * c.opt (Wjump-misses-init): Fix typo to enable for ObjC.
1672 * doc/invoke.texi (Warning Options): Annotate allowed languages
1673 for -Wunsuffixed-float-constants.
1675 2009-10-05 Jakub Jelinek <jakub@redhat.com>
1677 * dwarf2out.c (modified_type_die): Don't add DW_AT_name to
1678 DW_TAG_{const,volatile}_type if its DW_AT_type already has the
1679 same name and isn't the main variant.
1682 * dwarf2out.c (loc_by_reference): Removed.
1683 (dw_loc_list_1): New function.
1684 (dw_loc_list): Remove toplev argument, add want_address argument.
1685 Don't look at decl_by_reference_p at all. Use dw_loc_list_1.
1686 (loc_list_from_tree) <case VAR_DECL>: Pass want_address rather than
1687 want_address == 2 to dw_loc_list. For successful dw_loc_list
1688 set have_address to 1 only if want_address is not 0.
1690 2009-10-05 Richard Sandiford <rdsandiford@googlemail.com>
1692 * config/mips/mips-protos.h (mips_trampoline_code_size): Declare.
1693 * config/mips/mips.h (TRAMPOLINE_SIZE): Redefine as the size of
1694 a code block followed by two pointers.
1695 (TRAMPOLINE_ALIGNMENT): Define to 64 for 32-bit targets too.
1696 * config/mips/mips.c (MIPS_LOAD_PTR): New macro.
1697 (MIPS_MOVE): Likewise.
1698 (MIPS_LUI): Likewise.
1699 (MIPS_JR): Likewise.
1700 (MIPS_BAL): Likewise.
1701 (MIPS_NOP): Likewise.
1702 (mips_asm_trampoline_template): Delete.
1703 (mips_trampoline_code_size): New function.
1704 (mips_trampoline_init): Add shorter sequences for all cases
1705 except Pmode == DImoe && !TARGET_USE_PIC_FN_ADDR_REG.
1706 Calculate the opcodes directly, rather than copying from a template.
1707 Only flush the code part of the trampoline.
1708 (TARGET_ASM_TRAMPOLINE_TEMPLATE): Delete.
1710 2009-10-05 Richard Sandiford <rdsandiford@googlemail.com>
1712 * config/mips/mips.h (DWARF_FRAME_RETURN_COLUMN): Replace
1713 GP_REG_FIRST + 31 with RETURN_ADDR_REGNUM.
1714 (INCOMING_RETURN_ADDR_RTX): Likewise.
1715 (FUNCTION_PROFILER): Likewise. Replace GP_REG_FIRST + 1
1717 * config/mips/sdemtk.h (FUNCTION_PROFILER): Replace GP_REG_FIRST + 31
1718 with RETURN_ADDR_REGNUM.
1719 (MIPS_SAVE_REG_FOR_PROFILING_P): Likewise.
1720 * config/mips/mips.c (mips16_build_call_stub): Replace
1721 GP_REG_FIRST + 31 with RETURN_ADDR_REGNUM, GP_REG_FIRST + 1
1722 with AT_REGNUM and 31 with RETURN_ADDR_REGNUM.
1723 (mips_print_operand_punctuation): Likewise.
1724 (mips_frame_set): Likewise.
1725 (mips16e_output_save_restore): Likewise.
1726 (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
1727 (mips_save_reg_p): Likewise.
1728 (mips_return_addr): Likewise.
1729 (mips_set_return_address): Likewise.
1730 (mips_direct_save_slot_move_p): Likewise.
1731 (mips_output_function_prologue): Likewise.
1732 (mips_restore_reg): Likewise.
1733 (mips_expand_epilogue): Likewise.
1734 (mips_epilogue_uses): Likewise.
1735 * config/mips/mips.md (RETURN_ADD_REGNUM): Define.
1736 (*mov<mode>_ra): Use it instead of a hard-coded 31.
1737 (clear_hazard_<mode>): Likewise.
1738 (call_internal): Likewise.
1739 (call_internal_direct): Likewise.
1740 (call_direct_split): Likewise.
1741 (call_value_internal): Likewise.
1742 (call_value_split): Likewise.
1743 (call_value_internal_direct): Likewise.
1744 (call_value_direct_split): Likewise.
1745 (call_value_multiple_internal): Likewise.
1746 (call_value_multiple_split): Likewise.
1748 2009-10-05 Eric Botcazou <ebotcazou@adacore.com>
1749 Jakub Jelinek <jakub@redhat.com>
1751 PR rtl-optimization/41511
1752 * combine.c (record_value_for_reg): Pass explicit values as argument
1753 to get_last_value_validate.
1754 (get_last_value_validate): Document INSN parameter.
1755 For non-readonly MEMs, assume they might have been modified if INSN
1756 was in another basic block.
1757 (get_last_value): Minor reformatting.
1759 2009-10-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
1762 * final.c (asm_str_count): Split out from asm_insn_count.
1763 * rtl.h (asm_str_count): New prototype.
1764 * tree-inline (estimate_num_insns) <case GIMPLE_ASM>: Call
1767 2009-10-05 Sriraman Tallam <tmsriram@google.com>
1769 * doc/plugins.texi: Change plugin_pass to register_pass_info.
1771 2009-10-05 Basile Starynkevitch <basile@starynkevitch.net>
1772 Rafael Espindola <espindola@google.com>
1774 * gengtype.c (write_types): Moved call to write_func_for_structure
1775 into seperate loops.
1777 2009-10-05 Richard Guenther <rguenther@suse.de>
1780 * lto-cgraph.c (output_cgraph): Output toplevel asms.
1781 (input_cgraph_1): Input toplevel asms.
1783 2009-10-05 Richard Guenther <rguenther@suse.de>
1786 * lto-symtab.c (lto_compatible_attributes_p): Remove.
1787 (external_aggregate_decl_p): Likewise.
1788 (lto_symtab_compatible): Re-structure. Remove dead code.
1789 For variables ignore toplevel qualifiers when comparing types.
1790 Issue warnings, not errors for mismatched user-alignment.
1792 2009-10-05 Richard Guenther <rguenther@suse.de>
1796 * lto-symtab.c (struct lto_symtab_base_def): Remove.
1797 (struct lto_symtab_identifier_def): Likewise.
1798 (struct lto_symtab_decl_def): Likewise.
1799 (struct lto_symtab_entry_def): New.
1800 (lto_symtab_identifier_t): Rename to ...
1801 (lto_symtab_entry_t): ... this.
1802 (lto_symtab_decls): Remove.
1803 (lto_symtab_base_hash): Rename to ...
1804 (lto_symtab_entry_hash): ... this.
1805 (lto_symtab_base_eq): Rename to ...
1806 (lto_symtab_entry_eq): ... this.
1807 (lto_symtab_base_marked_p): Rename to ...
1808 (lto_symtab_entry_marked_p): ... this.
1809 (lto_symtab_identifier_marked_p): Remove.
1810 (lto_symtab_decl_marked_p): Likewise.
1811 (lto_symtab_maybe_init_hash_tables): Rename to ...
1812 (lto_symtab_maybe_init_hash_table): ... this.
1813 (lto_symtab_set_resolution_and_file_data): Remove.
1814 (lto_symtab_register_decl): New function.
1815 (lto_symtab_get_identifier): Remove.
1816 (lto_symtab_get): New function.
1817 (lto_symtab_get_resolution): Adjust.
1818 (lto_symtab_get_identifier_decl): Remove.
1819 (lto_symtab_set_identifier_decl): Likewise.
1820 (lto_symtab_merge_decl): Rename to ...
1821 (lto_symtab_merge): ... this. Rewrite.
1822 (lto_symtab_merge_var): Remove.
1823 (lto_symtab_merge_fn): Likewise.
1824 (lto_symtab_prevailing_decl): Adjust.
1825 (lto_cgraph_replace_node): New function.
1826 (lto_symtab_merge_decls_2): Likewise.
1827 (lto_symtab_merge_decls_1): Likewise.
1828 (lto_symtab_fixup_var_decls): Likewise.
1829 (lto_symtab_resolve_symbols): Likewise.
1830 (lto_symtab_merge_decls): Likewise.
1831 (lto_symtab_prevailing_decl): Adjust.
1832 (lto_symtab_get_symtab_def): Remove.
1833 (lto_symtab_get_file_data): Likewise.
1834 (lto_symtab_clear_resolution): Adjust.
1835 (lto_symtab_clear_resolution): Likewise.
1836 * lto-cgraph.c (input_edge): Do not merge cgraph nodes here.
1837 (input_cgraph_1): Likewise.
1838 * lto-streamer-in.c (get_resolution): Do not provide fake
1839 symbol resolutions here.
1840 (deferred_global_decls): Remove.
1841 (lto_register_deferred_decls_in_symtab): Likewise.
1842 (lto_register_var_decl_in_symtab): Change signature, register
1843 variable via lto_symtab_register_decl.
1844 (lto_register_function_decl_in_symtab): Likewise.
1845 (lto_read_tree): Adjust.
1846 * lto-streamer.h (lto_register_deferred_decls_in_symtab): Remove.
1847 (lto_symtab_merge_var): Likewise.
1848 (lto_symtab_merge_fn): Likewise.
1849 (lto_symtab_register_decl): Declare.
1850 (lto_symtab_merge_decls): Likewise.
1852 2009-10-05 Richard Guenther <rguenther@suse.de>
1854 PR tree-optimization/23821
1855 * tree-vrp.c (vrp_finalize): Do not perform copy propagation.
1856 * tree-ssa-dom.c (cprop_operand): Do not propagate copies into
1857 simple IV increments.
1859 2009-10-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1861 * config/arm/arm.c (arm_override_options): Really initialize
1862 flag_dwarf2_cfi_asm to 0.
1864 2009-10-05 Doug Kwan <dougkwan@google.com>
1866 PR rtl-optimization/41574
1867 * combine.c (distribute_and_simplify_rtx): Quit if RTX mode is
1868 floating point and we are not doing unsafe math optimizations.
1870 2009-10-03 Simon Baldwin <simonb@google.com>
1871 Cary Coutant <ccoutant@google.com>
1872 Rafael Espindola <espindola@google.com>
1873 Richard Guenther <rguenther@suse.de>
1874 Jan Hubicka <jh@suse.cz>
1875 Doug Kwan <dougkwan@google.com>
1876 H.J. Lu <hongjiu.lu@intel.com>
1877 Bill Maddox <maddox@google.com>
1878 Ryan Mansfield <rmansfield@qnx.com>
1879 Diego Novillo <dnovillo@google.com>
1880 Ollie Wild <aaw@google.com>
1881 Kenneth Zadeck <zadeck@naturalbridge.com>
1883 * lto-cgraph.c: New file.
1884 * lto-compress.c: New file.
1885 * lto-compress.h: New file.
1886 * lto-opts.c: New file.
1887 * lto-section-in.c: New file.
1888 * lto-section-out.c: New file.
1889 * lto-streamer-in.c: New file.
1890 * lto-streamer-out.c: New file.
1891 * lto-streamer.c: New file.
1892 * lto-streamer.h: New file.
1893 * lto-symtab.c: New file.
1894 * lto-wpa-fixup.c: New file.
1895 * lto-wrapper.c: New file.
1897 2009-10-03 Simon Baldwin <baldwin@google.com>
1898 Ben Elliston <bje@au.ibm.com>
1899 Rafael Espindola <espindola@google.com>
1900 Nathan Froyd <froydnj@codesourcery.com>
1901 Jan Hubicka <jh@suse.cz>
1902 Doug Kwan <dougkwan@google.com>
1903 Diego Novillo <dnovillo@google.com>
1904 Kenneth Zadeck <zadeck@naturalbridge.com>
1906 * Makefile.in (enable_lto): New.
1907 (site.exp): If @enable_lto@ is set to 'yes' define ENABLE_LTO.
1908 (LINKER_PLUGIN_API_H): Define.
1909 (LTO_SYMTAB_H): Define.
1910 (LTO_STREAMER_H): Define.
1911 (TREE_VECTORIZER_H): Define.
1912 (INCLUDES): Add LIBELFINC.
1913 (OBJS-common): Add lto-cgraph.o, lto-streamer-in.o,
1914 lto-streamer-out.o, lto-section-in.o, lto-section-out.o, lto-symtab.o,
1915 lto-opts.o, lto-streamer.o, lto-wpa-fixup.o, lto-compress.o.
1916 (MOSTLYCLEANFILES): Add lto-wrapper$(exeext)
1917 (native): Add lto-wrapper$(exeext)
1918 (lto-compress.o, lto-cgraph.o, lto-streamer-in.o,
1919 lto-streamer-out.o, lto-section-in.o, lto-section-out.o,
1920 lto-symtab.o, lto-opts.o, lto-streamer.o, lto-wpa-fixup.o): New rules.
1921 (gimple.o): Add dependency on LTO_HEADER_H and LTO_SECTION_OUT_H.
1922 (varasm.o): Add dependency on tree-iterator.h.
1923 (cgraph.o): Add dependency on cif-code.def.
1924 (ipa-reference.o): Add dependency on LTO_STREAMER_H.
1925 (ipa-pure-const.o): Likewise.
1926 (GTFILES): Add lto-symtab.c.
1927 (install-lto-wrapper): New.
1928 * configure.ac: If 'lto' is in enable_languages, define ENABLE_LTO
1929 and enable_lto. If LIBELFLIBS is set, define HAVE_libelf.
1930 * config.in: Regenerate.
1932 2009-10-03 Rafael Espindola <espindola@google.com>
1933 Diego Novillo <dnovillo@google.com>
1935 * cgraphunit.c (ipa_passes): Prevent lto1 from calling
1936 ipa_write_summaries.
1937 Call execute_ipa_summary_passes for all_regular_ipa_passes and
1939 (cgraph_optimize): Make extern.
1941 2009-10-03 Nathan Froyd <froydnj@codesourcery.com>
1942 Kenneth Zadeck <zadeck@naturalbridge.com>
1944 * toplev.c (in_lto_p): Declare.
1945 * collect2.c (scan_prog_file): Read all the output when reading
1946 information for LTO.
1947 (enum lto_mode_d): Declare.
1949 2009-10-03 Richard Guenther <rguenther@suse.de>
1950 Diego Novillo <dnovillo@google.com>
1952 * gimple.c: Include target.h and alias.h.
1953 (gimple_types): Declare.
1954 (type_hash_cache): Declare.
1955 (gimple_alloc_stat): Make extern.
1956 (gimple_build_eh_must_not_throw): Call
1957 gimple_eh_must_not_throw_set_fndecl.
1958 (struct type_pair_d): Declare.
1959 (type_pair_t): Declare.
1960 (type_pair_hash): New.
1961 (type_pair_eq): New.
1962 (lookup_type_pair): New.
1963 (gimple_force_type_merge): New.
1964 (compare_type_names_p): New.
1965 (compare_field_offset): New.
1966 (gimple_types_compatible_p): New.
1967 (struct sccs): Declare.
1968 (next_dfs_num): Declare.
1969 (iterative_hash_gimple_type): New.
1971 (iterative_hash_type_name): New.
1972 (iterative_hash_gimple_type): New.
1973 (gimple_type_hash): New.
1974 (gimple_type_eq): New.
1975 (gimple_register_type): New.
1976 (print_gimple_types_stats): New.
1977 (gimple_signed_or_unsigned_type): New.
1978 (gimple_unsigned_type): New.
1979 (gimple_signed_type): New.
1980 (gimple_get_alias_set): New.
1981 (gimple_decl_printable_name): Do not use DMGL_TYPES.
1982 * gimple.h (gimple_alloc, gimple_alloc_stat): Declare.
1983 (gimple_force_type_merge): Declare.
1984 (gimple_types_compatible_p): Declare.
1985 (gimple_register_type): Declare.
1986 (print_gimple_types_stats): Declare.
1987 (gimple_unsigned_type): Declare.
1988 (gimple_signed_type): Declare.
1989 (gimple_get_alias_set): Declare.
1990 (gimple_eh_must_not_throw_set_fndecl): New.
1992 2009-10-03 Jan Hubicka <jh@suse.cz>
1993 Kenneth Zadeck <zadeck@naturalbridge.com>
1995 * ipa-pure-const.c: Include lto-streamer.h.
1996 (register_hooks): Factor out of ...
1997 (generate_summary): ... here.
1998 (pure_const_write_summary): New.
1999 (pure_const_read_summary): New.
2000 (pass_ipa_pure_const): Add pure_const_write_summary and
2001 pure_const_read_summary.
2002 * ipa-reference.c: Include lto-streamer.h.
2003 (add_new_function): New.
2004 (remove_node_data): New.
2005 (duplicate_node_data): New.
2006 (ipa_init): Guard against multiple calls.
2007 Move hook setup from analyze_function.
2008 (write_node_summary_p): New.
2009 (ipa_reference_write_summary): New.
2010 (ipa_reference_read_summary): New.
2011 (pass_ipa_reference): Add ipa_reference_write_summary and
2012 ipa_reference_read_summary.
2013 * cgraph.h (cgraph_local_info): Add field lto_file_data.
2014 (struct cgraph_edge): Add fields lto_stmt_uid and
2015 call_stmt_cannot_inline_p.
2016 (cgraph_optimize): Declare.
2017 (cgraph_decide_is_function_needed): Declare.
2018 (reset_inline_failed): Declare.
2019 (enum LTO_cgraph_tags): Declare.
2020 (LTO_cgraph_tag_names): Declare.
2021 (LCC_NOT_FOUND): Define.
2023 2009-10-03 Doug Kwan <dougkwan@google.com>
2024 Rafael Espindola <espindola@google.com>
2025 Jan Hubicka <jh@suse.cz>
2026 Diego Novillo <dnovillo@google.com>
2027 Kenneth Zadeck <zadeck@naturalbridge.com>
2029 * passes.c (all_regular_ipa_passes): New.
2030 (all_ipa_passes): Rename to all_small_ipa_passes.
2031 (init_optimization_passes): Init all_regular_ipa_passes.
2032 * tree-pass.h (all_regular_ipa_passes): New.
2033 (all_ipa_passes): Rename to all_small_ipa_passes.
2034 * passes.c (all_lto_gen_passes): New.
2035 (init_optimization_passes): Initialize all_lto_gen_passes.
2036 (execute_ipa_summary_passes): Make non-static.
2037 (ipa_write_summaries_1): New.
2038 (ipa_write_summaries_2): New.
2039 (ipa_write_summaries): New.
2040 (ipa_write_summaries_of_cgraph_node_set): New.
2041 (ipa_read_summaries_1): New.
2042 (ipa_read_summaries): New.
2043 (execute_ipa_pass_list): Call cgraph_process_new_functions.
2044 (execute_regular_ipa_pass_list): Remove.
2045 (init_optimization_passes): Schedule
2046 pass_rebuild_cgraph_edges and pass_early_inline outside
2047 of pass_all_early_optimizations. Document reason.
2048 (pass_ipa_lto_gimple_out, pass_ipa_lto_wpa_fixup,
2049 pass_ipa_lto_finish_out): New pass.
2050 (pass_ipa_summary_passes): Start and stop timers if the pass has them.
2051 (execute_all_ipa_transforms): New.
2052 (execute_one_pass): Don't call execute_one_ipa_transform_pass.
2053 (dump_properties, debug_properties): New.
2054 * tree-optimize.c (gate_all_early_local_passes): Return
2055 false if we are in lto1.
2056 (tree_rest_of_compilation): Call execute_all_ipa_transforms.
2057 * tree-pass.h (execute_all_ipa_transforms): Declare.
2058 (pass_ipa_function_and_variable_visibility): Declare.
2059 (pass_ipa_early_inline): Declare.
2060 (pass_ipa_lto_gimple_out): Declare.
2061 (pass_ipa_lto_wpa_fixup): Declare.
2062 (pass_ipa_lto_finish_out): Declare.
2063 (all_small_ipa_passes, all_regular_ipa_passes,
2064 all_lto_gen_passes): Declare.
2065 (execute_ipa_summary_passes): Declare.
2066 (execute_all_ipa_transforms): Declare.
2067 (ipa_write_summaries): Declare
2068 (ipa_write_summaries_of_cgraph_node_set): Declare.
2069 (ipa_read_summaries): Declare.
2071 2009-10-03 Doug Kwan <dougkwan@google.com>
2072 Ollie Wild <aaw@google.com>
2074 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do nothing in WPA.
2076 * collect2.c (LTO_MODE_NONE, LTO_MODE_LTO, LTO_MODE_WPA): New enums.
2077 (lto_mode): New variable.
2078 (maybe_run_lto_and_relink): Handle the -fwpa option.
2079 (main): Handle the -fwpa option.
2080 (maybe_unlink_list): New function.
2081 * gcc.c (link_lto_options): Replace -flto with -fwpa.
2082 * common.opt (flto): New flag.
2083 * toplev.c (flag_generate_lto): Declare.
2085 2009-10-03 Simon Baldwin <simonb@google.com>
2087 * common.opt (flto-compression-level): New flag.
2089 * opts.c: Include lto-opts.h.
2090 (handle_option): Call lto_register_user_option for each
2091 valid option handled.
2092 (decode_options): Clear registered options before the options
2095 2009-10-03 Cary Coutant <ccoutant@google.com>
2097 * collect2.c (is_elf): New function.
2098 (scan_prog_file): Require LTO object to be in ELF format.
2100 2009-10-03 Rafael Espindola <espindola@google.com>
2102 * gcc.c (LINK_COMMAND_SPEC): Use the -pass-through option to pass
2103 libgcc to the linker.
2105 * ipa-cp.c (cgraph_gate_cp): Return false if LTRANS is running.
2107 * collect2.c (maybe_run_lto_and_relink): Execute lto-wrapper.
2108 (collect_execute): Add flags argument. Pass flags to pex_run. Update
2110 * collect2.h (collect_execute): Add flags argument.
2111 * tlink.c (tlink_execute): Update call to collect_execute.
2112 * gcc.c (main): Set the COLLECT_LTO_WRAPPER environment variable.
2113 (use_linker_plugin): New.
2114 (use_linker_plugin_spec_function): New.
2115 (LINK_COMMAND_SPEC): Pass plugin options to the linker.
2116 (linker_plugin_file_spec): New.
2117 (lto_wrapper_spec): New.
2118 (lto_gcc_spec): New.
2119 (static_specs): Add linker_plugin_file, lto_wrapper and lto_gcc.
2120 (static_spec_functions): Add use-linker-plugin.
2121 (process_command): Handle -use-linker-plugin.
2122 (main): Use lto_wrapper_spec instead of lto_wrapper. Set
2123 linker_plugin_file_spec and lto_gcc_spec.
2124 (use_linker_plugin_spec_function): New.
2126 2009-10-03 Richard Guenther <rguenther@suse.de>
2130 * tree.h (is_lang_specific): Include LANG_TYPE.
2131 * tree.c (find_decls_types_r): Manually add interesting parts
2132 of TYPE_FIELDS. Walk BINFO_VIRTUALS. Do not walk TYPE_METHODS.
2134 * gimple.c (type_pair_hash): Make symmetric.
2135 (type_pair_eq): Likewise.
2136 (lookup_type_pair): Increase initial hashtable size.
2137 (gimple_force_type_merge): Rely on type-pair symmetry.
2138 (visit): Remove excessive checking code.
2139 (iterative_hash_type_name): Do not hash TYPE_NAME of anonymous unions.
2140 (gimple_register_type): Remove getenv calls, shrink initial
2144 * cgraphunit.c (ipa_passes): Do not remove bodies of extern
2145 inline functions if not generating lto output.
2148 * toplev.c (finalize): In WPA mode remove the asm file.
2150 2009-10-03 Doug Kwan <dougkwan@google.com>
2152 * ipa-inline.c (cgraph_mark_inline): Check
2153 edge->call_stmt_cannot_inline_p instead of calling
2154 gimple_call_cannot_inline_p.
2155 (cgraph_decide_inlining): Do nothing in WPA and LTRANS.
2156 (cgraph_gate_ipa_early_inlining): Return false if in_lto_p is set.
2157 (inline_generate_summary): Do nothing in LTRANS.
2158 * cgraph.c (initialize_inline_failed): Make sure e->call_stmt
2159 exists before calling gimple_call_cannot_inline_p.
2160 (cgraph_create_edge): Set edge->call_stmt_cannot_inline_p.
2161 (cgraph_clone_edge): Add argument STMT_UID. Modify all callers.
2162 Update new_edge->lto_stmt_uid.
2163 * cgraphbuild.c (reset_inline_failed): New.
2165 * common.opt (fwpa): New flag.
2166 (fltrans): New option.
2167 * gcc.c (gcc_lto_option_t): New type.
2168 (current_lto_option): New variable.
2169 (lto_single_spec_function): Remove and is replaced by ..
2170 (lto_option_spec_function): New function.
2171 (LINK_COMMAND_SPEC): Use link_lto_option spec instead of just
2172 passing the -flto flag.
2173 (cc1_options): Separate non-LTO related parts into ..
2174 (cc1_non_lto_options): Non-LTO related options shared by all FEs.
2175 (lto1_options): New spec for lto FE.
2176 (link_lto_options): New spec for handling LTO flags in linker.
2177 (invoke_lto_single): Re-format to fit in 80 column. Replace
2178 lto-single with lto-option.
2179 (static_specs): Add cc1_non_lto_options, lto1_options and
2181 (static_spec_function): Replace lto-single with lto-option.
2182 (process_command): Handle -flto, -fwpa and -fltran by setting
2183 current_lto_option and not passing it to subprocess unconditionally.
2185 2009-10-03 Bill Maddox <maddox@google.com>
2187 Add `gcc' driver support for link-time code generation (LTO).
2189 * collect2.c (enum pass): Add new literal PASS_LTOINFO.
2190 (lto_flag, lto_objects, lto_o_file): New variables.
2191 (struct lto_object, struct lto_object_list): New structures.
2192 (collect_exit, handler): Remove LTO temporary output file on exit.
2193 (add_lto_object): New function.
2194 (maybe_run_lto_and_relink): New function. Perform link time code
2195 generation and relinking for object files containing LTO information.
2196 (main): Invoke maybe_run_lto_and_relink().
2197 (dump_argv): New function. For debugging, currently disabled.
2198 (scan_prog_file): Add LTO information pass.
2199 * gcc.c (LINK_COMMAND_SPEC): Pass `-flto' switch to linker, i.e.,
2201 * toplev.c (compile_file): Emit assembler directive to create
2202 the `gnu_lto_v1' marker symbol when compiling with `-flto'.
2204 2009-10-03 Diego Novillo <dnovillo@google.com>
2206 * c.opt: Add LTO to warn_abi and warn_psabi.
2208 * tree.c (fld_worklist_push): Rename from PUSH. Convert to static
2209 inline function. Ignore language-specific nodes. Update all users.
2210 (find_decls_types_r): Do not traverse the subtrees of
2211 language-specific nodes. Do not traverse DECL_INITIAL for TYPE_DECLs.
2212 * tree.h (is_lang_specific): New.
2213 * langhooks.h (struct lang_hooks_for_decls): Remove
2214 may_need_assembler_name_p. Update all users.
2216 * c-common.c (set_builtin_user_assembler_name): Move ...
2217 * builtins.c (set_builtin_user_assembler_name): ... here.
2218 (is_builtin_name): Add comment
2219 (is_builtin_fn): New.
2220 * except.c (output_ttype): Only call
2221 lookup_type_for_runtime if TYPE is not a runtime type.
2223 * passes.c (register_pass): Call position_pass on
2224 all_small_ipa_passes, all_regular_ipa_passes and all_lto_gen_passes.
2225 * timevar.def (TV_IPA_LTO_GIMPLE_IO): Define.
2226 (TV_IPA_LTO_DECL_IO): Define.
2227 (TV_IPA_LTO_CGRAPH_IO): Define.
2229 (TV_WHOPR_WPA): Define.
2230 (TV_WHOPR_WPA_IO): Define.
2231 (TV_WHOPR_LTRANS): Define.
2232 (TV_WHOPR_WPA_FIXUP): Define.
2233 (TV_WHOPR_WPA_LTRANS_EXEC): Define.
2234 * tree-cfg.c (tree_node_can_be_shared): Make extern.
2235 * tree-flow.h (tree_node_can_be_shared): Declare.
2236 * tree-inline.c (tree_can_inline_p): Check that E has a
2237 statement associated with it.
2238 * tree.c (free_lang_data_in_binf): Factor out of ...
2239 (free_lang_data_in_type): ... here.
2240 Call RECORD_OR_UNION_TYPE_P.
2241 (need_assembler_name_p): Ignore DECL if it does not have TREE_PUBLIC
2242 set. Call lang_hooks.decls.may_need_assembler_name_p if set.
2243 (free_lang_data_in_decl): Do not clear DECL_CONTEXT for CONST_DECLs.
2244 (free_lang_data): Set debug_info_level to DINFO_LEVEL_NONE. Set
2245 write_symbols to NO_DEBUG. Set debug_hooks to do_nothing_debug_hooks.
2246 (gate_free_lang_data): Return true if flag_generate_lto is set.
2247 (walk_tree_1): Call RECORD_OR_UNION_TYPE_P.
2248 * c-common.h (set_builtin_user_assembler_name): Move ...
2249 * tree.h (set_builtin_user_assembler_name): ... here.
2251 * common.opt (flto-report): New flag.
2252 * opts.c (complain_wrong_lang): Do not complain if running lto1.
2253 * collect2.c (scan_prog_file): Send the error output of
2254 'nm' to HOST_BIT_BUCKET.
2256 2009-10-03 Ollie Wild <aaw@google.com>
2258 * langhooks-def.h (lhd_begin_section): New function declaration.
2259 (lhd_write_section): New function declaration.
2260 (lhd_end_section): New function declaration.
2261 (LANG_HOOKS_BEGIN_SECTION): New macro.
2262 (LANG_HOOKS_WRITE_SECTION_DATA): New macro.
2263 (LANG_HOOKS_END_SECTION): New macro.
2264 (LANG_HOOKS_LTO): New macro.
2265 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_LTO.
2266 * langhooks.c (output.h): Add include.
2267 (saved_section): New static variable.
2268 (lhd_begin_section): New function.
2269 (lhd_write_section_data): New function.
2270 (lhd_end_section): New function.
2271 * langhooks.h (struct lang_hooks_for_lto): New structure.
2272 (struct lang_hooks): Add member lto.
2273 * Makefile.in (langhooks.o): Add dependency on output.h.
2275 * c-opts.c (c_common_post_options): Handle -flto and -fwhopr.
2277 2009-10-03 Richard Guenther <rguenther@suse.de>
2279 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
2282 2009-10-03 Simon Baldwin <simonb@google.com>
2283 Richard Guenther <rguenther@suse.de>
2284 Janis Johnson <janis187@us.ibm.com>
2285 Doug Kwan <dougkwan@google.com>
2286 Diego Novillo <dnovillo@google.com>
2287 Ramana Radhakrishnan <ramana.r@gmail.com>
2288 Ollie Wild <aaw@google.com>
2290 * doc/install.texi: Add documentation for libelf and --enable-lto.
2291 * doc/invoke.texi: Document -fwpa, -flto, -fwhopr, -fltrans,
2292 -flto-report, -flto-compression-level and -use-linker-plugin.
2293 * doc/sourcebuild.texi: Document use of zlib. Document lto-plugin.
2294 Add section for LTO Testing.
2296 2009-10-02 Cary Coutant <ccoutant@google.com>
2298 Add support for comdat type sections for DWARF v4.
2299 Merge from dwarf4 branch.
2301 * dwarf2out.c (DWARF_TYPE_SIGNATURE_SIZE): New constant.
2302 (dw_die_ref): Define vector type.
2303 (enum dw_val_class): Add dw_val_class_data8.
2304 (struct dw_val_struct): Add v.val_data8.
2305 (comdat_type_node_ref): New type.
2306 (struct die_struct): Move die_symbol into a union; add new field
2307 die_type_node. Change all uses.
2308 (comdat_type_node): New type.
2309 (skeleton_chain_node): New type.
2310 (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): New constant.
2311 (comdat_type_list): New variable.
2312 (dwarf_tag_name): Add DW_TAG_type_unit.
2313 (dwarf_attr_name): Add DW_AT_signature.
2314 (add_AT_data8): New function.
2315 (replace_child): New function.
2316 (move_all_children): New function.
2317 (print_signature): New function.
2318 (print_die): Print signature information; add dw_val_class_data8.
2319 (attr_checksum): Support dw_val_class_data8.
2320 (CHECKSUM_STRING): Redefine for DWARF-4 to include trailing NULL byte.
2321 (CHECKSUM_SLEB128, CHECKSUM_ULEB128): New macros.
2322 (checksum_sleb128, checksum_uleb128): New functions.
2323 (checksum_die_context): New function.
2324 (loc_checksum_ordered): New function.
2325 (attr_checksum_ordered): New function.
2326 (struct checksum_attributes): New structure.
2327 (collect_checksum_attributes): New function.
2328 (die_checksum_ordered): New function.
2329 (generate_type_signature): New function.
2330 (same_dw_val_p): Add dw_val_class_data8.
2331 (is_symbol_die): Use new is_declaration_die function.
2332 (is_declaration_die): New function.
2333 (should_move_die_to_comdat): New function.
2334 (clone_die): New function.
2335 (clone_tree): New function.
2336 (clone_as_declaration): New function.
2337 (copy_declaration_context): New function.
2338 (generate_skeleton_ancestor_tree): New function.
2339 (generate_skeleton_bottom_up): New function.
2340 (generate_skeleton): New function.
2341 (remove_child_or_replace_with_skeleton): New function.
2342 (break_out_comdat_types): New function.
2343 (struct decl_table_entry): New type.
2344 (htab_decl_hash): New function.
2345 (htab_decl_eq): New function.
2346 (htab_decl_del): New function.
2347 (copy_ancestor_tree): New function.
2348 (copy_decls_walk): New function.
2349 (copy_decls_for_unworthy_types): New function.
2350 (build_abbrev_table): Don't assert on missing die_symbol when doing
2351 comdat type sections.
2352 (size_of_die): Use DW_FORM_sig8 for external references. Add
2354 (unmark_dies): Don't assert for unmarked dies when doing comdat
2356 (value_format): Support DW_FORM_sig8 and dw_val_class_data8.
2357 (output_signature): New function.
2358 (output_die): Likewise.
2359 (output_compilation_unit_header): Mark output as DWARF version 3
2360 even if generating DWARF 4.
2361 (output_comdat_type_unit): New function.
2362 (output_line_info): Mark output as DWARF version 3 even if generating
2364 (dwarf2out_start_source_file): Don't do eliminate_dwarf2_dups with
2366 (dwarf2out_end_source_file): Likewise.
2367 (prune_unused_types_walk_attribs): Don't follow references into
2368 comdat type sections.
2369 (prune_unused_types_mark): When generating type units, do not mark
2370 children of non-defining declarations of types; do mark children of
2372 (prune_unused_types): Process comdat type sections.
2373 (htab_ct_hash): New function.
2374 (htab_ct_eq): New function.
2375 (dwarf2out_finish): Move types to comdat sections when using DWARF-4.
2376 Add a pointer to the line table from type unit entries so
2377 DW_AT_decl_file has meaning.
2378 * varasm.c (default_elf_asm_named_section): Use identifier name as
2379 comdat key instead of lang hook.
2381 2009-10-02 Neil Vachharajani <nvachhar@google.com>
2383 * gcov-io.c (gcov_open): Open files read-only when MODE < 0.
2385 2009-10-02 Uros Bizjak <ubizjak@gmail.com>
2387 * config/i386/i386.md (SWIM248): New mode iterator.
2388 (divmod<mode>4) Macroize expander from divmoddi4, divmodsi4 and
2389 divmodhi4 patterns using SWIM248 macro.
2390 (*divmod<mode>4): Macroize insn_and_split pattern from
2391 *divmoddi4_cltd_rex64, *divmodsi4_cltd and divmodhi4 insn patterns
2392 and their corresponding splitters usign SWIM248 macro. Split SImode
2393 insn to generate cltd and DImode insn to generate cqto instead of
2394 move+shift when optimizing for size or TARGET_USE_CLTD is in effect.
2395 (*divmoddi4_nocltd_rex64, *divmodsi4_nocltd): Remove insn patterns.
2396 (*divmod<mode>4_noext): Macroize insn from *divmoddi_noext_rex64 and
2397 *divmodsi_noext patterns using SWIM248 macro.
2398 (udivmod<mode>4): Macroize expander from udivmoddi4, udivmodsi4 and
2399 udivmodhi4 patterns using SWIM248 macro.
2400 (*udivmod<mode>4): Macroize insn_and_split pattern from
2401 *udivmoddi4, udivmodsi4 and udivmodhi4 patterns and their
2402 corresponding splitters using SWIM248 macro.
2403 (*udivmod<mode>4_noext): Macroize insn from *udivmoddi4_noext,
2404 *udivmodsi4_noext and *udivmodhi_noext patterns using SWIM248 macro.
2406 2009-10-02 Eric Botcazou <ebotcazou@adacore.com>
2408 * stor-layout.c (layout_type) <ARRAY_TYPE>: Make sure that an array
2409 of zero-sized element is zero-sized regardless of its extent.
2411 2009-10-02 Jakub Jelinek <jakub@redhat.com>
2414 * configure.ac (HAVE_GAS_CFI_SECTIONS_DIRECTIVE): New test.
2415 * configure: Regenerated.
2416 * config.in: Regenerated.
2417 * dwarf2out.c (dwarf2out_do_cfi_asm): Return false if
2418 !HAVE_GAS_CFI_SECTIONS_DIRECTIVE and not emitting .eh_frame.
2419 (dwarf2out_init): If HAVE_GAS_CFI_SECTIONS_DIRECTIVE and
2420 not emitting .eh_frame, emit .cfi_sections .debug_frame
2425 * cfgexpand.c (expand_debug_expr) <case STRING_CST>: Don't create
2426 CONST_STRING if STRING_CST contains embedded '\0's or doesn't end
2428 (expand_debug_expr) <case VAR_DECL>: For TREE_STATIC !DECL_EXTERNAL
2429 vars use DECL_RTL with resetting it back to NULL afterwards.
2430 * dwarf2out.c (same_dw_val_p): For dw_val_class_addr compare with
2431 rtx_equal_p instead of asserting it is a SYMBOL_REF.
2432 (value_format): For dw_val_class_addr only use DW_FORM_addr if
2433 the attribute type allows it, otherwise use DW_FORM_dataN.
2434 (mem_loc_descriptor): Handle CONST_STRING.
2435 (add_const_value_attribute): Handle CONST_STRING using add_AT_addr.
2436 Handle MEM with CONST_STRING address using add_AT_string.
2437 (rtl_for_decl_init): Return MEM with CONST_STRING address instead of
2438 CONST_STRING for const arrays initialized with a string literal.
2439 (resolve_one_addr, resolve_addr_in_expr, resolve_addr): New functions.
2440 (dwarf2out_finish): Call resolve_addr.
2442 2009-10-02 Andreas Schwab <schwab@linux-m68k.org>
2443 Maxim Kuvyrkov <maxim@codesourcery.com>
2445 * config/m68k/lb1sf68.asm (PICCALL): Use variable sized branch.
2447 2009-10-02 Nick Clifton <nickc@redhat.com>
2449 * config/mn10300/mn10300.h (USER_LABEL_PREFIX): Define.
2450 (ASM_OUTPUT_LABELREF): Use asm_fprintf and %U.
2452 2009-10-01 Jan Hubicka <jh@suse.cz>
2454 * cgraph.c (cgraph_clone_node): Add redirect_callers parameter.
2455 (cgraph_create_virtual_clone): Just pass redirect_callers
2457 * cgraph.h (cgraph_clone_node): Update prototype.
2458 * ipa-pure-const.c (self_recursive_p): New function.
2459 (propagate): Use it.
2460 * ipa-inline.c (cgraph_clone_inlined_nodes,
2461 cgraph_decide_recursive_inlining): Update.
2463 2009-10-01 David Daney <ddaney@caviumnetworks.com>
2465 * gcc/config/mips/mips.c (mips_process_sync_loop) Emit syncw
2466 instructions for TARGET_OCTEON.
2468 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2470 * config/arm/arm.c (arm_override_options): Turn off
2471 flag_dwarf2_cfi_asm for AAPCS variants.
2473 2009-10-01 Martin Jambor <mjambor@suse.cz>
2476 * tree-sra.c (convert_callers): Do not call
2477 compute_inline_parameters on one caller more than once.
2479 2009-10-01 Nick Clifton <nickc@redhat.com>
2481 * config/vax/netbsd-elf.h (NETBSD_CC1_AND_CC1PLUS_SPEC): Define as
2482 an empty string if not already defined.
2484 2009-10-01 Martin Jambor <mjambor@suse.cz>
2487 * tree-sra.c (is_va_list_type): New function.
2488 (find_var_candidates): Call is_va_list_type.
2489 (find_param_candidates): Check that the type or the type pointed
2490 to are not va_list types.
2492 2009-10-01 Martin Jambor <mjambor@suse.cz>
2495 * cp/pt.c (function_parameter_expanded_from_pack_p): Return false if
2496 DECL_ARTIFICIAL (param_decl) is true.
2498 2009-09-30 Gabriel Dos Reis <gdr@cs.tamu.edu>
2500 * tree.h (tree_decl_common::lang_flag_8): New.
2501 * c-common.c (c_common_reswords): Include "constexpr" as C++0x
2503 * c-common.h (RID_CONSTEXPR): New.
2505 2009-09-30 Uros Bizjak <ubizjak@gmail.com>
2507 * config/alpha/alpha.c (alpha_gimplify_va_arg_1):
2508 Use ref-all pointers.
2509 (alpha_gimplify_va_arg): Ditto.
2511 2009-09-30 Jakub Jelinek <jakub@redhat.com>
2514 * cfgloopanal.c (num_loop_insns): Don't increment ninsns for each bb
2515 before insn counting loop now that BB_END (bb) is counted. Ensure
2516 the return value isn't zero.
2518 2009-09-30 Nick Clifton <nickc@redhat.com>
2520 * config.gcc (sh-symbianelf): Replace definition of extra_objs
2521 with separate definitions of c_target_objs and cxx_target_objs.
2522 * config/sh/t-sh: Add rules to build symbian-cxx.o, symbian-c.o
2524 * config/sh/sh.c (TARGET_CXX_INPUT_EXPORT_CLASS): Use
2525 sh_symbian_import_export_class.
2526 * config/sh/sh-protos.h: Fix names of exported symbian functions.
2527 * config/sh/symbian.c: Delete, moving code into...
2528 * config/sh/symbian-base.c: ... here
2529 * config/sh/symbian-c.c: ... and here
2530 * config/sh/symbian-cxx.c: ... and here.
2532 2009-09-30 Uros Bizjak <ubizjak@gmail.com>
2535 * config/alpha/alpha.md (unaligned_storehi_be): Force operand
2536 of plus RTX into register.
2538 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2540 * doc/install.texi: Linguistic and markup fixes.
2541 (Configuration) <--disable-cpp>: Remove description.
2542 <--enable-maintainer-mode>: Autotools files are affected, too.
2543 <--with-sysroot>: Improve description.
2544 (Building): Bump required GNU make version.
2546 2009-09-29 Harsha Jagasia <harsha.jagasia@amd.com>
2548 * config.gcc (i[34567]86-*-*): Include fma4intrin.h.
2549 (x86_64-*-*): Ditto.
2551 * config/i386/fma4intrin.h: New file, provide common x86 compiler
2552 intrinisics for FMA4.
2553 * config/i386/cpuid.h (bit_FMA4): Define FMA4 bit.
2554 * config/i386/x86intrin.h: Fix typo to SSE4A instead of SSE4a.
2555 Add FMA4 check and fma4intrin.h.
2556 * config/i386/i386-c.c(ix86_target_macros_internal): Check
2558 * config/i386/i386.h(TARGET_FMA4): New macro for FMA4.
2559 * config/i386/i386.md (UNSPEC_FMA4_INTRINSIC): Add new UNSPEC
2560 constant for FMA4 support.
2561 (UNSPEC_FMA4_FMADDSUB): Ditto.
2562 (UNSPEC_FMA4_FMSUBADD): Ditto.
2563 * config/i386/i386.opt (-mfma4): New switch for FMA4 support.
2564 * config/i386/i386-protos.h (ix86_fma4_valid_op_p): Add declaration.
2565 (ix86_expand_fma4_multiple_memory): Ditto.
2566 * config/i386/i386.c (OPTION_MASK_ISA_FMA4_SET): New.
2567 (OPTION_MASK_ISA_FMA4_UNSET): New.
2568 (OPTION_MASK_ISA_SSE4A_UNSET): Change definition to depend on FMA4.
2569 (OPTION_MASK_ISA_AVX_UNSET): Change definition to depend on FMA4.
2570 (ix86_handle_option): Handle -mfma4.
2571 (isa_opts): Handle -mfma4.
2572 (enum pta_flags): Add PTA_FMA4.
2573 (override_options): Add FMA4 support.
2574 (IX86_BUILTIN_VFMADDSS): New for FMA4 intrinsic.
2575 (IX86_BUILTIN_VFMADDSD): Ditto.
2576 (IX86_BUILTIN_VFMADDPS): Ditto.
2577 (IX86_BUILTIN_VFMADDPD): Ditto.
2578 (IX86_BUILTIN_VFMSUBSS): Ditto.
2579 (IX86_BUILTIN_VFMSUBSD): Ditto.
2580 (IX86_BUILTIN_VFMSUBPS): Ditto.
2581 (IX86_BUILTIN_VFMSUBPD): Ditto.
2582 (IX86_BUILTIN_VFMADDSUBPS): Ditto.
2583 (IX86_BUILTIN_VFMADDSUBPD): Ditto.
2584 (IX86_BUILTIN_VFMSUBADDPS): Ditto.
2585 (IX86_BUILTIN_VFMSUBADDPD): Ditto.
2586 (IX86_BUILTIN_VFNMADDSS): Ditto.
2587 (IX86_BUILTIN_VFNMADDSD): Ditto.
2588 (IX86_BUILTIN_VFNMADDPS): Ditto.
2589 (IX86_BUILTIN_VFNMADDPD): Ditto.
2590 (IX86_BUILTIN_VFNMSUBSS): Ditto.
2591 (IX86_BUILTIN_VFNMSUBSD): Ditto.
2592 (IX86_BUILTIN_VFNMSUBPS): Ditto.
2593 (IX86_BUILTIN_VFNMSUBPD): Ditto.
2594 (IX86_BUILTIN_VFMADDPS256): Ditto.
2595 (IX86_BUILTIN_VFMADDPD256): Ditto.
2596 (IX86_BUILTIN_VFMSUBPS256): Ditto.
2597 (IX86_BUILTIN_VFMSUBPD256): Ditto.
2598 (IX86_BUILTIN_VFMADDSUBPS256): Ditto.
2599 (IX86_BUILTIN_VFMADDSUBPD256): Ditto.
2600 (IX86_BUILTIN_VFMSUBADDPS256): Ditto.
2601 (IX86_BUILTIN_VFMSUBADDPD256): Ditto.
2602 (IX86_BUILTIN_VFNMADDPS256): Ditto.
2603 (IX86_BUILTIN_VFNMADDPD256): Ditto.
2604 (IX86_BUILTIN_VFNMSUBPS256): Ditto.
2605 (IX86_BUILTIN_VFNMSUBPD256): Ditto.
2606 (enum multi_arg_type): New enum for describing the various FMA4
2607 intrinsic argument types.
2608 (bdesc_multi_arg): New table for FMA4 intrinsics.
2609 (ix86_init_mmx_sse_builtins): Add FMA4 intrinsic support.
2610 (ix86_expand_multi_arg_builtin): New function for creating FMA4
2612 (ix86_expand_builtin): Add FMA4 intrinsic support.
2613 (ix86_fma4_valid_op_p): New function to validate FMA4 3 and 4
2614 operand instructions.
2615 (ix86_expand_fma4_multiple_memory): New function to split the
2616 second memory reference from FMA4 instructions.
2617 * config/i386/sse.md (ssemodesuffixf4): New mode attribute for FMA4.
2618 (ssemodesuffixf2s): Ditto.
2619 (fma4_fmadd<mode>4): Add FMA4 floating point multiply/add
2621 (fma4_fmsub<mode>4): Ditto.
2622 (fma4_fnmadd<mode>4): Ditto.
2623 (fma4_fnmsub<mode>4): Ditto.
2624 (fma4_vmfmadd<mode>4): Ditto.
2625 (fma4_vmfmsub<mode>4): Ditto.
2626 (fma4_vmfnmadd<mode>4): Ditto.
2627 (fma4_vmfnmsub<mode>4): Ditto.
2628 (fma4_fmadd<mode>4256): Ditto.
2629 (fma4_fmsub<mode>4256): Ditto.
2630 (fma4_fnmadd<mode>4256): Ditto.
2631 (fma4_fnmsub<mode>4256): Ditto.
2632 (fma4_fmaddsubv8sf4): Ditto.
2633 (fma4_fmaddsubv4sf4): Ditto.
2634 (fma4_fmaddsubv4df4): Ditto.
2635 (fma4_fmaddsubv2df4): Ditto.
2636 (fma4_fmsubaddv8sf4): Ditto.
2637 (fma4_fmsubaddv4sf4): Ditto.
2638 (fma4_fmsubaddv4df4): Ditto.
2639 (fma4_fmsubaddv2df4): Ditto.
2640 (fma4i_fmadd<mode>4): Add FMA4 floating point multiply/add
2641 instructions for intrinsics.
2642 (fma4i_fmsub<mode>4): Ditto.
2643 (fma4i_fnmadd<mode>4): Ditto.
2644 (fma4i_fnmsub<mode>4): Ditto.
2645 (fma4i_vmfmadd<mode>4): Ditto.
2646 (fma4i_vmfmsub<mode>4): Ditto.
2647 (fma4i_vmfnmadd<mode>4): Ditto.
2648 (fma4i_vmfnmsub<mode>4): Ditto.
2649 (fma4i_fmadd<mode>4256): Ditto.
2650 (fma4i_fmsub<mode>4256): Ditto.
2651 (fma4i_fnmadd<mode>4256): Ditto.
2652 (fma4i_fnmsub<mode>4256): Ditto.
2653 (fma4i_fmaddsubv8sf4): Ditto.
2654 (fma4i_fmaddsubv4sf4): Ditto.
2655 (fma4i_fmaddsubv4df4): Ditto.
2656 (fma4i_fmaddsubv2df4): Ditto.
2657 (fma4i_fmsubaddv8sf4): Ditto.
2658 (fma4i_fmsubaddv4sf4): Ditto.
2659 (fma4i_fmsubaddv4df4): Ditto.
2660 (fma4i_fmsubaddv2df4): Ditto.
2662 * doc/invoke.texi (-mfma4): Add documentation.
2663 * doc/extend.texi (x86 intrinsics): Add FMA4 intrinsics.
2665 2009-09-29 Richard Henderson <rth@redhat.com>
2667 * tree-eh.c (unsplit_eh): Do not unsplit if there's already
2668 an edge to the new destination block.
2670 2009-09-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2673 * pa.c (hppa_profile_hook): Use
2674 make_reg_eh_region_note_nothrow_nononlocal to add REG_EH_REGION note.
2676 2009-09-29 Steve Ellcey <sje@cup.hp.com>
2677 Alexander Monakov <amonakov@ispras.ru>
2680 * config/ia64/predicates.md (not_postinc_destination_operand): New.
2681 (not_postinc_memory_operand): New.
2682 (not_postinc_move_operand): New.
2683 * config/ia64/ia64.md (*cmovdi_internal): Disallow autoincrement.
2684 (*cmovsi_internal): Ditto.
2686 2009-09-29 Pat Haugen <pthaugen@us.ibm.com>
2688 * config/rs6000/rs6000.c (rs6000_issue_rate): Don't artificially
2689 restrict issue_rate in first pass when scheduling for register
2692 2009-09-29 Basile Starynkevitch <basile@starynkevitch.net>
2693 Rafael Avila de Espindola <espindola@google.com>
2695 * gengtype.c (plugin_output): New.
2696 (get_output_file_with_visibility): Return plugin_output for plugins.
2697 (main): Parse and use the -P option.
2698 * gty.texi: Update the command line format.
2700 2009-09-29 Jakub Jelinek <jakub@redhat.com>
2703 * dwarf2out.c (const_ok_for_output_1, const_ok_for_output): New
2705 (mem_loc_descriptor, loc_descriptor, add_const_value_attribute): Bail
2706 out if !const_ok_for_output.
2709 * dwarf2out.c (mem_loc_descriptor) <case CONCAT, case CONCATN,
2710 case VAR_LOCATION>: Remove gcc_unreachable ().
2712 2009-09-29 Harsha Jagasia <harsha.jagasia@amd.com>
2714 * config.gcc (i[34567]86-*-*): Remove mmintrin-common.h.
2715 (x86_64-*-*): Ditto.
2716 * config/i386/smmintrin.h: Move instructions in mmintrin-common.h
2717 back to smmintrin.h.
2718 * config/i386/cpuid.h (bit_SSE5): Remove SSE5 bit.
2719 * config/i386/x86intrin.h: Remove SSE5.
2720 * config/i386/mmintrin-common.h: Delete file.
2721 * doc/extend.texi (x86 intrinsics): Remove SSE5 flags and builtins.
2723 2009-09-29 Richard Guenther <rguenther@suse.de>
2725 * alias.c (ao_ref_from_mem): Properly deal with off decl accesses
2726 resulting from stack temporaries on STRICT_ALIGNMENT targets.
2728 2009-09-29 Nick Clifton <nickc@redhat.com>
2730 * function.c (current_function_name): If there is no current
2731 function just return "<none>".
2733 2009-09-28 Sriraman Tallam <tmsriram@google.com>
2735 * tree-pass.h (register_pass_info): New structure.
2736 (pass_positioning_ops): Move enum from gcc-plugin.h.
2737 (register_pass): New function.
2738 * gcc-plugin.h (plugin_pass): Delete structure.
2739 (pass_positioning_ops): Delete enum.
2740 * plugin.c (regsiter_pass): Delete function.
2741 (position_pass): Delete function.
2742 (added_pass_nodes): Delete variable.
2743 (prev_added_pass_nodes): Delete variable.
2744 (pass_list_node): Delete structure.
2745 * passes.c (make_pass_instance): New function.
2746 (next_pass_1): Change to call make_pass_instance.
2747 (pass_list_node): Move structure from gcc-plugin.h.
2748 (added_pass_nodes): Move variable from plugin.c.
2749 (prev_added_pass_nodes): Move variable from plugin.c.
2750 (position_pass): New function.
2751 (register_pass): New function.
2753 2009-09-28 Easwaran Raman <eraman@google.com>
2755 * ifcvt.c (noce_try_abs): Recognize pattern and call
2756 expand_one_cmpl_abs_nojump.
2757 * optabs.c (expand_one_cmpl_abs_nojump): New function.
2758 * optabs.h (expand_one_cmpl_abs_nojump): Declare.
2760 2009-09-28 Ian Lance Taylor <iant@google.com>
2763 * c-opts.c (c_common_handle_option): Don't set
2764 warn_jump_misses_init for -Wall.
2765 * doc/invoke.texi (Warning Options): Update documentation.
2767 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2769 * Makefile.in ($(out_object_file)): Depend on
2770 gt-$(basename $(notdir $(out_file))).h.
2772 2009-09-28 Richard Henderson <rth@redhat.com>
2774 * except.h (struct eh_region_d): Add use_cxa_end_cleanup.
2775 * except.c (gen_eh_region): Set it.
2776 (duplicate_eh_regions_1): Copy it.
2777 * tree-eh.c (lower_resx): Use it to determine which function
2780 * langhooks.h (struct lang_hooks): Add eh_use_cxa_end_cleanup.
2781 * langhooks-def.h (LANG_HOOKS_EH_USE_CXA_END_CLEANUP): New.
2782 * builtins.def (BUILT_IN_CXA_END_CLEANUP): New.
2783 * tree.c (build_common_builtin_nodes): Remove parameter. Build
2784 BUILT_IN_CXA_END_CLEANUP if necessary.
2786 * c-common.c (c_define_builtins): Update call to
2787 build_common_builtin_nodes.
2789 2009-09-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
2791 * spu.c (get_branch_target): Return NULL for ASM_OPERANDS patterns.
2793 2009-09-28 Michael Matz <matz@suse.de>
2795 * builtins.c (interclass_mathfn_icode): New helper.
2796 (expand_builtin_interclass_mathfn): Use it here, and split folding
2798 (fold_builtin_interclass_mathfn): ... this new folder.
2799 (build_call_nofold_loc): New static helper.
2800 (build_call_nofold): New wrapper macro for above.
2801 (expand_builtin_int_roundingfn): Use it instead of build_call_expr.
2802 (expand_builtin_pow): Ditto.
2803 (expand_builtin_memset_args): Ditto.
2804 (expand_builtin_printf): Ditto.
2805 (expand_builtin_fprintf): Ditto.
2806 (expand_builtin_sprintf): Ditto.
2807 (expand_builtin_memory_chk): Ditto.
2808 (expand_builtin_mempcpy_args): Ditto and don't call folders.
2809 (expand_builtin_stpcpy): Ditto.
2810 (expand_builtin_strcmp): Ditto.
2811 (expand_builtin_strncmp): Ditto.
2812 (expand_builtin_strcpy): Remove FNDECL and MODE arguments.
2813 (expand_builtin_strcpy_args): Don't call folders.
2814 (expand_builtin_memcmp): Ditto.
2815 (expand_builtin_strncpy): Ditto, and use target.
2816 (expand_builtin_memcpy): Ditto.
2817 (expand_builtin_strstr, expand_builtin_strchr, expand_builtin_strrchr,
2818 expand_builtin_strpbrk, expand_builtin_memmove,
2819 expand_builtin_memmove_args, expand_builtin_bcopy,
2820 expand_builtin_memchr, expand_builtin_strcat, expand_builtin_strncat,
2821 expand_builtin_strspn, expand_builtin_strcspn,
2822 expand_builtin_fputs): Remove these.
2823 (expand_builtin): Don't call the above, change calls to other
2824 expanders that changed prototype.
2825 (fold_builtin_stpcpy): New folder split out from expand_builtin_stpcpy.
2826 (fold_builtin_1 <ISFINITE, ISINF, ISNORMAL>): Call
2827 fold_builtin_interclass_mathfn.
2828 (fold_builtin_2 <STPCPY>): Call fold_builtin_stpcpy.
2829 (fold_builtin_strcat): Add folding split from expand_builtin_strcat.
2831 * fold-const.c (fold_binary_loc <NE_EXPR>): Add !exp != 0 -> !exp.
2832 * passes.c (init_optimization_passes): Move pass_fold_builtins
2833 after last phiopt pass.
2834 * tree-inline.c (fold_marked_statements): When folding builtins
2835 iterate over all instruction potentially generated.
2836 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Declare
2838 (fold_gimple_call): Use it to always fold calls (into potentially
2839 multiple instructions).
2840 * tree-ssa-dom.c (optimize_stmt): Resolve __builtin_constant_p
2841 calls into zero at this time.
2842 * tree-ssa-propagate.c (substitute_and_fold): Ignore multiple
2843 statements generated by builtin folding.
2845 2009-09-28 Nick Clifton <nickc@redhat.com>
2847 * config/m32r/m32r.c (m32r_is_insn): Return false for debugging insns.
2849 2009-09-28 Duncan Sands <baldrick@free.fr>
2851 * gcc-plugin.h (PLUGIN_REGISTER_GGC_CACHES): New event.
2852 * plugin.c (plugin_event_name): Add PLUGIN_REGISTER_GGC_CACHES.
2853 (register_callback): Dispatch it.
2854 (invoke_plugin_callbacks): Incorporate in sanity check.
2855 * ggc.h (ggc_register_cache_tab): Add declaration.
2856 * ggc-common.c (ggc_register_root_tab): Simplify.
2857 (const_ggc_cache_tab_t): New typedef.
2858 (extra_cache_vec): New vector of dynamically added cache tables.
2859 (ggc_register_cache_tab): New function.
2860 (ggc_scan_cache_tab): New function.
2861 (ggc_mark_roots): Simplify dynamic roots. Handle dynamic caches.
2862 * doc/plugins.texi: Document PLUGIN_REGISTER_GGC_CACHES.
2864 2009-09-27 Richard Henderson <rth@redhat.com>
2866 * tree-ssa-ccp.c (optimize_stack_restore): Relax the conditions under
2867 which we remove __builtin_stack_restore.
2869 2009-09-27 Bernd Schmidt <bernd.schmidt@analog.com>
2871 * loop-iv.c (iv_analyze_op): Use function_invariant_p, not CONSTANT_P,
2872 to test for GRD_INVARIANT.
2873 (simple_rhs_p): Anything that's function_invariant_p is fine.
2875 2009-09-27 Rafael Avila de Espindola <espindola@google.com>
2877 * gengtype.c (main): Use plunge_files instead of plugin_output.
2879 2009-09-27 Basile Starynkevitch <basile@starynkevitch.net>
2880 Rafael Avila de Espindola <espindola@google.com>
2882 * gengtype.c (write_root, write_roots): Add a emit_pch argument.
2883 Don't print pch related info if it is false.
2884 (main): Don't print pch info in plugin mode.
2886 2009-09-27 Eric Botcazou <ebotcazou@adacore.com>
2888 * dwarf2out.c (enum dw_val_class): Replace dw_val_class_long_long
2889 with dw_val_class_const_double.
2890 (struct dw_val_struct): Replace val_long_long with val_double and
2891 adjust for above change.
2892 (output_loc_operands): Likewise.
2893 (add_AT_long_long): Rename into...
2894 (add_AT_double): ...this.
2895 (print_die): Replace dw_val_class_long_long with
2896 dw_val_class_const_double and adjust.
2897 (attr_checksum): Likewise.
2898 (same_dw_val_p): Likewise.
2899 (size_of_die): Likewise.
2900 (value_format): Likewise.
2901 (output_die): Likewise.
2902 (loc_descriptor) <CONST_DOUBLE>: Likewise.
2903 (add_const_value_attribute) <CONST_DOUBLE>: Call add_AT_double
2904 instead of add_AT_long_long.
2905 (add_bound_info) <INTEGER_CST>: Generate the bound as an unsigned
2906 value with the precision of its type.
2908 2009-09-27 Andreas Schwab <schwab@linux-m68k.org>
2911 * c-typeck.c (build_conditional_expr): Use the readonly and
2912 volatile flags of the operand types, not of the operands itself.
2914 2009-09-27 Peter O'Gorman <pogma@thewrittenword.com>
2916 * collect2.c (main): Look for -brtl before adding libraries.
2918 2009-09-27 Jonathan Gray <jsg@openbsd.org>
2920 * config.gcc: Update OpenBSD targets.
2921 * config/openbsd-stdint.h: New file.
2922 * config/openbsd-libpthread.h: New file.
2923 * config/openbsd.h: Update and break out LIB_SPEC definition.
2924 * config/alpha/openbsd.h: Overhaul to reflect ELF migration.
2925 * config/i386/openbsdelf.h: Correct types.
2926 * config/m68k/openbsd.h: Likewise.
2927 * config/mips/openbsd.h: Likewise.
2928 * config/vax/openbsd.h: Likewise.
2930 2009-09-27 Eric Botcazou <ebotcazou@adacore.com>
2932 * fold-const.c (maybe_lvalue_p): Return false for M(IN|AX)_EXPR.
2933 (extract_muldiv_1) <MINUS_EXPR>: Swap operands if necessary.
2934 * stor-layout.c (layout_type) <ARRAY_TYPE>: Do not take the maximum
2935 of the length and zero.
2937 2009-09-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2939 * Makefile.in (TOPLEV_H): Use $(INPUT_H) not input.h.
2940 (FLAGS_H): Add options.h $(REAL_H).
2941 (SEL_SCHED_IR_H): Add $(BITMAP_H) vecprim.h $(CFGLOOP_H).
2942 (TREE_VECTORIZER_H): New.
2943 (EBITMAP_H): Renamed from EBIMAP_H.
2944 (c-decl.o, c-objc-common.o, c-pretty-print.o, attribs.o, c-omp.o)
2945 (gtype-desc.o, ggc-common.o, ggc-page.o, ggc-zone.o, langhooks.o)
2946 (tree.o, tree-ssa-structalias.o, tree-ssa-ter.o, tree-ssanames.o)
2947 (tree-phinodes.o, tree-ssa-loop.o, tree-ssa-math-opts.o)
2948 (gimple-low.o, omp-low.o, sese.o, graphite-blocking.o)
2949 (graphite-clast-to-gimple.o, graphite-dependences.o)
2950 (graphite-interchange.o, graphite-poly.o, graphite-scop-detection.o)
2951 (graphite-sese-to-poly.o, tree-vect-loop.o, tree-vect-loop-manip.o)
2952 (tree-vect-patterns.o, tree-vect-slp.o, tree-vect-stmts.o)
2953 (tree-vect-data-refs.o, tree-vectorizer.o, gimple.o, tree-mudflap.o)
2954 (targhooks.o, stmt.o, emit-rtl.o, ipa.o, matrix-reorg.o, ipa-inline.o)
2955 (gcse.o, tree-ssa-ccp.o, df-byte-scan.o, vec.o, caller-save.o)
2956 (ira-build.o, ira-costs.o, ira-color.o, ira-emit.o, ira.o)
2957 (haifa-sched.o, sched-rgn.o, sel-sched.o, sel-sched-dump.o)
2958 (sel-sched-ir.o, final.o, $(out_object_file)): Dependencies
2959 updated and fixed as per above changes and per
2960 check_makefile_deps.sh output.
2963 * configure.ac: Use $LIBS for '-ldl', not $LDFLAGS.
2964 * configure: Regenerate.
2966 2009-09-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2968 * doc/install.texi: Update minimum MPC version to 0.7.
2970 2009-09-26 Gerald Pfeifer <gerald@pfeifer.com>
2972 * doc/install.texi (Binaries): Remove reference to the binary
2973 distribution CD-ROM from the FSF.
2975 2009-09-26 Michael Matz <matz@suse.de>
2979 * tree-ssa-coalesce.c (coalesce_ssa_name): Add only SSA names
2980 that are mentioned in the body.
2982 2009-09-26 Michael Matz <matz@suse.de>
2984 PR tree-optimization/41454
2985 * tree-ssa-dom (stmts_to_rescan): Remove variable.
2986 (tree_ssa_dominator_optimize): Don't allocate and free it.
2987 (dom_opt_leave_block): Don't iterate over it.
2988 (eliminate_redundant_computations): Don't return a value.
2989 (cprop_operand, cprop_into_stmt): Ditto.
2990 (optimize_stmt): Don't defer updating stmts.
2992 2009-09-25 Dodji Seketeli <dodji@redhat.com>
2994 * dwarf2out.c (dwarf_tag_name, gen_generic_params_dies,
2995 generic_parameter_die, template_parameter_pack_die,
2996 gen_formal_parameter_die, gen_subprogram_die): Adjust after
2997 renaming DW_TAG_formal_parameter_pack and
2998 DW_TAG_template_parameter_pack into DW_TAG_GNU_formal_parameter_pack
2999 and DW_TAG_GNU_template_parameter_pack.
3001 2009-09-25 Anatoly Sokolov <aesok@post.ru>
3003 * config/v850/v850.h (FUNCTION_VALUE): Remove.
3004 * config/v850/v850.c (v850_function_value): New function.
3005 (TARGET_FUNCTION_VALUE): Define.
3007 2009-09-25 Jakub Jelinek <jakub@redhat.com>
3009 * tree-vect-stmts.c (vectorizable_call): Call
3010 mark_symbols_for_renaming after vect_finish_stmt_generation.
3012 * dwarf2out.c (tls_mem_loc_descriptor): Pass 1 instead of 2
3013 to loc_descriptor_from_tree.
3014 (add_location_or_const_value_attribute): Pass 0 instead of 2
3015 for decl_by_reference_p decls.
3017 2009-09-25 Richard Guenther <rguenther@suse.de>
3020 * tree-dfa.c (get_ref_base_and_extent): Fix issue with trailing
3023 2009-09-25 Ben Elliston <bje@au.ibm.com>
3025 * doc/invoke.texi (RS/6000 and PowerPC Options): Add missing comma
3028 2009-09-25 Alan Modra <amodra@bigpond.net.au>
3030 * config/rs6000/rs6000.md (load_toc_v4_PIC_3c): Correct POWER
3031 form of instruction.
3033 2009-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3036 * fold-const.c (const_binop): Handle complex int division.
3037 * tree-complex.c (expand_complex_div_straight,
3038 expand_complex_div_wide): Update comments.
3040 2009-09-24 DJ Delorie <dj@redhat.com>
3043 * config/m32c/m32c.h (REG_CLASS_CONTENTS): Add R13.
3044 (reg_class): Likewise.
3045 (REG_CLASS_NAMES): Likewise.
3046 * config/m32c/m32c.c (m32c_reg_class_from_constraint): Likewise.
3047 (m32c_override_options): Disable -fivopts for M32C.
3049 2009-09-24 Michael Meissner <meissner@linux.vnet.ibm.com>
3051 * config/rs6000/predicates.md (indexed_or_indirect_operand):
3052 Delete VSX load/store with update support.
3053 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Ditto.
3054 * config/rs6000/vsx.md (vsx_mov<mode>): Ditto.
3058 (VStype_load_update): Ditto.
3059 (VStype_store_update): Ditto.
3060 (vsx_load<VSX_U:mode>_update_<P:mptrsize>): Ditto.
3061 (vsx_store<VSX_U:mode>_update_<P:mptrsize>): Ditto.
3063 * config/rs6000/rs6000.h (enum rs6000_builtins): Delete VSX
3064 load/store with update builtins.
3066 2009-09-24 Kai Tietz <kai.tietz@onevision.com>
3068 * libgcc2.c (L_trampoline): Prototype for getpagesize
3069 and mprotect in WINNT case.
3071 2009-09-24 Anatoly Sokolov <aesok@post.ru>
3073 * config/rs6000/rs6000.h (FUNCTION_VALUE): Remove macro.
3074 * config/rs6000/rs6000-protos.h (rs6000_function_value): Remove.
3075 * config/rs6000/rs6000.c (rs6000_function_value): Make static, add
3076 'outgoing' argument.
3077 (TARGET_FUNCTION_VALUE): Define.
3079 2009-09-24 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
3081 * config/darwin.h (DWARF2_DEBUGGING_INFO): Define as 1.
3083 2009-09-24 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
3086 * common.opt: Initialize dwarf_strict to -1.
3087 * toplev.c (process_options): Catch unset dwarf_strict
3088 and set to 0 for all targets not overriding.
3089 * config/darwin.c (darwin_override_options): Catch unset
3090 dwarf_strict and override to 1.
3092 2009-09-24 Jeff Law <law@redhat.com>
3094 * tree-into-ssa.c (rewrite_into_ssa): Free interesting_blocks.
3096 2009-09-24 Richard Guenther <rguenther@suse.de>
3098 PR tree-optimization/36143
3099 PR tree-optimization/38747
3100 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Only
3101 create VIEW_CONVERT_EXPRs for TBAA compatible accesses.
3103 2009-09-24 Jakub Jelinek <jakub@redhat.com>
3106 * dwarf2out.c (add_const_value_attribute): For HIGH and CONST_FIXED,
3107 return false instead of gcc_unreachable (). For CONST return the
3108 value returned by recursive call instead of always returning true.
3109 (tree_add_const_value_attribute): Return the value returned by
3110 add_const_value_attribute instead of always returning true if rtl
3113 2009-09-23 Justin Seyster <jrseys@gmail.com>
3115 * Makefile.in (PLUGIN_HEADERS): Include real.h.
3117 2009-09-24 Jakub Jelinek <jakub@redhat.com>
3119 * cgraphunit.c (cgraph_lower_function): Revert last change.
3120 * targhooks.c (default_static_chain): Use !DECL_STATIC_CHAIN
3121 instead of DECL_NO_STATIC_CHAIN.
3122 * tree-cfg.c (verify_gimple_call): Likewise.
3123 * tree-nested.c (get_chain_decl, get_chain_field,
3124 convert_tramp_reference_op, convert_gimple_call): Likewise.
3125 (convert_all_function_calls): Likewise. Always set or clear
3126 DECL_STATIC_CHAIN initially, for !n->outer clear it.
3127 (lower_nested_functions): Remove DECL_NO_STATIC_CHAIN checking code.
3128 * c-parser.c (c_parser_declaration_or_fndef): Set DECL_STATIC_CHAIN
3130 * print-tree.c (print_node): Handle DECL_STATIC_CHAIN instead of
3131 DECL_NO_STATIC_CHAIN.
3132 * config/i386/i386.c (ix86_static_chain): Use !DECL_STATIC_CHAIN
3133 instead of DECL_NO_STATIC_CHAIN.
3134 (ix86_function_regparm, find_drap_reg): Likewise. Don't test
3135 decl_function_context.
3136 * varasm.c (initializer_constant_valid_p): Likewise.
3137 * tree.h (DECL_NO_STATIC_CHAIN): Renamed to ...
3138 (DECL_STATIC_CHAIN): ... this.
3139 * config/moxie/moxie.c (moxie_static_chain): Use !DECL_STATIC_CHAIN
3140 instead of DECL_NO_STATIC_CHAIN.
3142 2009-09-23 Basile Starynkevitch <basile@starynkevitch.net>
3143 Rafael Avila de Espindola <espindola@google.com>
3145 * gengtype.c (nb_plugin_files): Make it unsigned to match
3146 num_gt_files. Adjust other variables to avoid warnings.
3147 (main): Allocate an all zero lang_bitmap before each plugin file name
3148 to match regular file names.
3150 2009-09-23 Richard Henderson <rth@redhat.com>
3152 * doc/tm.texi (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
3153 (TARGET_STATIC_CHAIN): Mention that this hook must be used for
3154 static chain passed in memory.
3155 * system.h (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Poison.
3156 * targhooks.c (default_static_chain): Don't handle STATIC_CHAIN,
3157 STATIC_CHAIN_INCOMING. Issue a sorry if there's no
3158 STATIC_CHAIN_REGNUM defined.
3160 * config/picochip/picochip-protos.h: s/class/klass/.
3161 * config/picochip/picochip.c (TARGET_STATIC_CHAIN): New.
3162 (picochip_static_chain): New.
3163 * config/picochip/picochip.h (STATIC_CHAIN): Remove.
3164 (STATIC_CHAIN_INCOMING): Remove.
3166 * config/xtensa/xtensa.c (TARGET_STATIC_CHAIN): New.
3167 (xtensa_static_chain): New.
3168 * config/xtensa/xtensa.h (STATIC_CHAIN): Remove.
3169 (STATIC_CHAIN_INCOMING): Remove.
3171 2009-09-23 Anatoly Sokolov <aesok@post.ru>
3173 * config/pa/pa.h (FUNCTION_VALUE): Remove macro.
3174 * config/pa/pa-protos.h (function_value): Remove.
3175 * config/pa/pa.c (pa_function_value): Rename from function_value.
3176 Make static, add 'outgoing' argument.
3177 (TARGET_FUNCTION_VALUE): Define.
3179 2009-09-23 Anatoly Sokolov <aesok@post.ru>
3181 * config/avr/avr.c (avr_regs_to_save): Use current_function_is_leaf
3182 instead of cfun->machine->is_leaf.
3183 * config/avr/avr.h (machine_function): Remove is_leaf field.
3185 2009-09-23 Jakub Jelinek <jakub@redhat.com>
3188 * dwarf2out.c (address_of_int_loc_descriptor): Don't emit
3189 DW_OP_piece after DW_OP_stack_value, adjust size calculations
3190 for it, when DW_OP_stack_value and DW_OP_implicit_value has
3191 the same size, prefer DW_OP_stack_value.
3192 (loc_descriptor, loc_list_for_address_of_addr_expr_of_indirect_ref,
3193 loc_list_from_tree): Don't emit DW_OP_piece after DW_OP_stack_value.
3195 2009-09-23 Alexandre Oliva <aoliva@redhat.com>
3198 * var-tracking.c (add_with_sets): Sort MO_VAL_LOC last among uses.
3200 2009-09-23 Alexandre Oliva <aoliva@redhat.com>
3203 * cfgexpand.c (convert_debug_memory_address): New.
3204 (expand_debug_expr): Convert base address and offset to the same
3205 mode. Use it to convert addresses to other modes. Accept
3208 2009-09-23 Richard Guenther <rguenther@suse.de>
3210 * alias.c (ao_ref_from_mem): Correct for negative MEM_OFFSET
3211 produced for bigendian targets with promoted subregs.
3213 2009-09-23 Richard Guenther <rguenther@suse.de>
3215 * value-prof.c (gimple_ic): Purge old EH edges only after building
3218 2009-09-23 Nick Clifton <nickc@redhat.com>
3220 * config/arc/arc.c (arc_trampoline_init): Fix typo.
3222 2009-09-23 Jakub Jelinek <jakub@redhat.com>
3225 * doc/invoke.texi: Document -gstrict-dwarf and -gno-strict-dwarf.
3228 * cgraphunit.c (cgraph_lower_function): Set DECL_NO_STATIC_CHAIN
3229 on non-nested functions.
3231 2009-09-23 Jakub Jelinek <jakub@redhat.com>
3232 Jan Hubicka <jh@suse.cz>
3234 * dwarf2out.c (loc_list_plus_const): Only define if
3235 DWARF2_DEBUGGING_INFO.
3236 (address_of_int_loc_descriptor): Likewise.
3239 * dwarf2out.c (mem_loc_descriptor): Handle HIGH.
3241 2009-09-23 Uros Bizjak <ubizjak@gmail.com>
3244 * c-typeck.c (build_binary_op) <short_shift>: Check that integer
3245 constant is more than zero.
3247 2009-09-23 Alan Modra <amodra@bigpond.net.au>
3250 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
3251 call final to emit non-scheduled prologue, instead insert at entry.
3253 2009-09-22 Loren J. Rittle <ljrittle@acm.org>
3254 Joseph S. Myers <joseph@codesourcery.com>
3256 * doc/install.texi (*-*-freebsd*): Add proper format codes.
3258 2009-09-22 Basile Starynkevitch <basile@starynkevitch.net>
3259 Rafael Avila de Espindola <espindola@google.com>
3261 * gengtype.c (is_file_equal): New function.
3262 (close_output_files): Use is_file_equal. Free of->buf.
3264 2009-09-22 Basile Starynkevitch <basile@starynkevitch.net>
3265 Rafael Avila de Espindola <espindola@google.com>
3267 * gengtype.c (write_types, write_local): Add the output_header
3268 argument. Update all callers.
3270 2009-09-22 Dodji Seketeli <dodji@redhat.com>
3272 * dwarf2out.c (template_parameter_pack_die,
3273 gen_formal_parameter_pack_die ): New functions.
3274 (make_ith_pack_parameter_name): Remove this function.
3275 (dwarf_tag_name): Support printing DW_TAG_template_parameter_pack and
3276 DW_TAG_formal_parameter_pack.
3277 (gen_generic_params_dies): Represent each template parameter pack
3278 by a DW_TAG_template_parameter_pack DIE. Argument pack elements are
3279 represented by usual DW_TAG_template_*_parameter DIEs that are
3280 children of the DW_TAG_template_parameter_pack element DIE.
3281 (generic_parameter_die): This doesn't deal with parameter pack
3282 names anymore. Don't generate DW_AT_name for some DIEs, e.g. children
3283 of parameter pack DIEs.
3284 (gen_formal_parameter_die): Add a flag to not emit DW_AT_name
3285 in certain cases, e.g. for pack elements.
3286 (gen_formal_types_die, gen_decl_die): Adjust usage of
3287 gen_formal_parameter_die.
3288 (gen_subprogram_die): Represent each function parameter pack by a
3289 DW_TAG_formal_parameter_pack DIE. Arguments of of the pack are
3290 represented by usual DW_TAG_formal_parameter DIEs that are children
3291 of the DW_TAG_formal_parameter_pack DIE. Remove references to
3292 ____builtin_va_alist decls as no part of the compiler uses those
3294 * langhooks.h (struct lang_hooks_for_decls): Add
3295 function_parm_expanded_from_pack_p, get_generic_function_decl
3296 and function_parameter_pack_p hooks. Fix comment for
3297 get_innermost_generic_parms hook.
3298 * langhooks-def.h (LANG_HOOKS_FUNCTION_PARAMETER_PACK_P,
3299 LANG_HOOKS_FUNCTION_PARM_EXPANDED_FROM_PACK_P ): Declare new hook
3300 macros and use them to initialize lang_hook.
3302 2009-09-22 Richard Henderson <rth@redhat.com>
3304 * system.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE): Poison.
3305 (TRAMPOLINE_ADJUST_ADDRESS): Poison.
3306 * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): Don't conditionalize
3307 on TRAMPOLINE_TEMPLATE.
3308 (TARGET_TRAMPOLINE_ADJUST_ADDRESS): Don't conditionalize on
3309 TRAMPOLINE_ADJUST_ADDRESS.
3310 * targhooks.c (default_asm_trampoline_template): Remove.
3311 (default_trampoline_adjust_address): Remove.
3312 (default_trampoline_init): Don't handle INITIALIZE_TRAMPOLINE.
3313 * targhooks.h: Update decls.
3315 2009-09-22 Dave Korn <dave.korn.cygwin@gmail.com>
3317 * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Enable.
3318 * config/i386/cygwin.h (LIBGCJ_SONAME): Define.
3319 * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
3321 2009-09-22 Alexandre Oliva <aoliva@redhat.com>
3324 * reload1.c (reload): Reset debug insns with pseudos without
3327 2009-09-22 Janis Johnson <janis187@us.ibm.com>
3329 * config/i386/i386.c (ix86_scalar_mode_supported_p): Don't return
3330 unconditional true for decimal float modes.
3331 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Ditto.
3332 * config/s390/s390.c (s390_scalar_mode_supported_p): Ditto.
3334 2009-09-22 Loren J. Rittle <ljrittle@acm.org>
3336 * unwind-dw2-fde-glibc.c: Define and use USE_PT_GNU_EH_FRAME.
3337 Enable a new case for __FreeBSD__ >= 7.
3338 * crtstuff.c: Define USE_PT_GNU_EH_FRAME for __FreeBSD__ >= 7.
3339 * config/t-freebsd: Define LIB2ADDEH and LIB2ADDEHDEP.
3340 * config/freebsd-spec.h: Conditionally define LINK_EH_SPEC
3341 and USE_LD_AS_NEEDED.
3343 * doc/install.texi (*-*-freebsd*): Update target information.
3345 2009-09-22 Richard Guenther <rguenther@suse.de>
3348 * tree-dfa.c (get_ref_base_and_extent): Handle trailing
3349 arrays really properly.
3351 2009-09-22 Richard Henderson <rth@redhat.com>
3354 * target.h (struct gcc_target): Add asm_out.trampoline_template,
3355 calls.static_chain, calls.trampoline_init,
3356 calls.trampoline_adjust_address.
3357 * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
3358 (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New.
3359 (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
3360 * builtins.c (expand_builtin_setjmp_receiver): Use
3361 targetm.calls.static_chain; only clobber registers.
3362 (expand_builtin_init_trampoline): Use targetm.calls.trampoline_init;
3363 set up memory attributes properly for the trampoline block.
3364 (expand_builtin_adjust_trampoline): Use
3365 targetm.calls.trampoline_adjust_address.
3366 * calls.c (prepare_call_address): Add fndecl argument. Use
3367 targetm.calls.static_chain.
3368 * df-scan.c (df_need_static_chain_reg): Remove.
3369 (df_get_entry_block_def_set): Use targetm.calls.static_chain;
3370 consolodate static chain handling.
3371 * doc/tm.texi: Document new hooks.
3372 * emit-rtl.c (static_chain_rtx, static_chain_incoming_rtx): Remove.
3373 (init_emit_regs): Don't initialize them.
3374 * expr.h (prepare_call_address): Update decl.
3375 * final.c (profile_function): Use targetm.calls.static_chain.
3376 * function.c (expand_function_start): Likewise.
3377 * rtl.h (static_chain_rtx, static_chain_incoming_rtx): Remove.
3378 * stmt.c (expand_nl_goto_receiver): Use targetm.calls.static_chain;
3379 only clobber registers.
3380 * targhooks.c (default_static_chain): New.
3381 (default_asm_trampoline_template, default_trampoline_init): New.
3382 (default_trampoline_adjust_address): New.
3383 * targhooks.h: Declare them.
3384 * varasm.c (assemble_trampoline_template): Use
3385 targetm.asm_out.trampoline_template. Make the memory block const
3388 * config/alpha/alpha.c (alpha_trampoline_init): Rename from
3389 alpha_initialize_trampoline. Make static. Merge VMS parameter
3390 differences into the TARGET_ABI_OPEN_VMS code block.
3391 (TARGET_TRAMPOLINE_INIT): New.
3392 * config/alpha/alpha.h (TRAMPOLINE_TEMPLATE): Remove.
3393 (TRAMPOLINE_SECTION, INITIALIZE_TRAMPOLINE): Remove.
3394 * config/alpha/vms.h (TRAMPOLINE_SIZE, TRAMPOLINE_ALIGNMENT): Remove.
3395 (INITIALIZE_TRAMPOLINE): Remove.
3397 * config/arc/arc.h (TRAMPOLINE_ALIGNMENT): New.
3398 (TRAMPOLINE_TEMPLATE): Merge with ...
3399 (INITIALIZE_TRAMPOLINE): ... this and move ...
3400 * config/arc/arc.c (arc_trampoline_init): ... here.
3401 (TARGET_TRAMPOLINE_INIT): New.
3403 * config/arm/arm.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
3404 (TARGET_TRAMPOLINE_INIT, TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
3405 (arm_asm_trampoline_template): New.
3406 (arm_trampoline_init, arm_trampoline_adjust_address): New.
3407 * config/arm/arm.h (TRAMPOLINE_TEMPLATE, ARM_TRAMPOLINE_TEMPLATE,
3408 THUMB2_TRAMPOLINE_TEMPLATE, THUMB1_TRAMPOLINE_TEMPLATE): Move all
3409 code to arm_asm_trampoline_template.
3410 (TRAMPOLINE_ADJUST_ADDRESS): Move code to
3411 arm_trampoline_adjust_address.
3412 (INITIALIZE_TRAMPOLINE): Move code to arm_trampoline_init;
3413 adjust for target hook parameters.
3415 * config/avr/avr.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE):