1 2009-10-01 Jan Hubicka <jh@suse.cz>
3 * cgraph.c (cgraph_clone_node): Add redirect_callers parameter.
4 (cgraph_create_virtual_clone): Just pass redirect_callers
6 * cgraph.h (cgraph_clone_node): Update prototype.
7 * ipa-pure-const.c (self_recursive_p): New function.
9 * ipa-inline.c (cgraph_clone_inlined_nodes,
10 cgraph_decide_recursive_inlining): Update.
12 2009-10-01 David Daney <ddaney@caviumnetworks.com>
14 * gcc/config/mips/mips.c (mips_process_sync_loop) Emit syncw
15 instructions for TARGET_OCTEON.
17 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19 * config/arm/arm.c (arm_override_options): Turn off
20 flag_dwarf2_cfi_asm for AAPCS variants.
22 2009-10-01 Martin Jambor <mjambor@suse.cz>
25 * tree-sra.c (convert_callers): Do not call
26 compute_inline_parameters on one caller more than once.
28 2009-10-01 Nick Clifton <nickc@redhat.com>
30 * config/vax/netbsd-elf.h (NETBSD_CC1_AND_CC1PLUS_SPEC): Define as
31 an empty string if not already defined.
33 2009-10-01 Martin Jambor <mjambor@suse.cz>
36 * tree-sra.c (is_va_list_type): New function.
37 (find_var_candidates): Call is_va_list_type.
38 (find_param_candidates): Check that the type or the type pointed
39 to are not va_list types.
41 2009-10-01 Martin Jambor <mjambor@suse.cz>
44 * cp/pt.c (function_parameter_expanded_from_pack_p): Return false if
45 DECL_ARTIFICIAL (param_decl) is true.
47 2009-09-30 Gabriel Dos Reis <gdr@cs.tamu.edu>
49 * tree.h (tree_decl_common::lang_flag_8): New.
50 * c-common.c (c_common_reswords): Include "constexpr" as C++0x
52 * c-common.h (RID_CONSTEXPR): New.
54 2009-09-30 Uros Bizjak <ubizjak@gmail.com>
56 * config/alpha/alpha.c (alpha_gimplify_va_arg_1):
58 (alpha_gimplify_va_arg): Ditto.
60 2009-09-30 Jakub Jelinek <jakub@redhat.com>
63 * cfgloopanal.c (num_loop_insns): Don't increment ninsns for each bb
64 before insn counting loop now that BB_END (bb) is counted. Ensure
65 the return value isn't zero.
67 2009-09-30 Nick Clifton <nickc@redhat.com>
69 * config.gcc (sh-symbianelf): Replace definition of extra_objs
70 with separate definitions of c_target_objs and cxx_target_objs.
71 * config/sh/t-sh: Add rules to build symbian-cxx.o, symbian-c.o
73 * config/sh/sh.c (TARGET_CXX_INPUT_EXPORT_CLASS): Use
74 sh_symbian_import_export_class.
75 * config/sh/sh-protos.h: Fix names of exported symbian functions.
76 * config/sh/symbian.c: Delete, moving code into...
77 * config/sh/symbian-base.c: ... here
78 * config/sh/symbian-c.c: ... and here
79 * config/sh/symbian-cxx.c: ... and here.
81 2009-09-30 Uros Bizjak <ubizjak@gmail.com>
84 * config/alpha/alpha.md (unaligned_storehi_be): Force operand
85 of plus RTX into register.
87 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
89 * doc/install.texi: Linguistic and markup fixes.
90 (Configuration) <--disable-cpp>: Remove description.
91 <--enable-maintainer-mode>: Autotools files are affected, too.
92 <--with-sysroot>: Improve description.
93 (Building): Bump required GNU make version.
95 2009-09-29 Harsha Jagasia <harsha.jagasia@amd.com>
97 * config.gcc (i[34567]86-*-*): Include fma4intrin.h.
100 * config/i386/fma4intrin.h: New file, provide common x86 compiler
101 intrinisics for FMA4.
102 * config/i386/cpuid.h (bit_FMA4): Define FMA4 bit.
103 * config/i386/x86intrin.h: Fix typo to SSE4A instead of SSE4a.
104 Add FMA4 check and fma4intrin.h.
105 * config/i386/i386-c.c(ix86_target_macros_internal): Check
107 * config/i386/i386.h(TARGET_FMA4): New macro for FMA4.
108 * config/i386/i386.md (UNSPEC_FMA4_INTRINSIC): Add new UNSPEC
109 constant for FMA4 support.
110 (UNSPEC_FMA4_FMADDSUB): Ditto.
111 (UNSPEC_FMA4_FMSUBADD): Ditto.
112 * config/i386/i386.opt (-mfma4): New switch for FMA4 support.
113 * config/i386/i386-protos.h (ix86_fma4_valid_op_p): Add declaration.
114 (ix86_expand_fma4_multiple_memory): Ditto.
115 * config/i386/i386.c (OPTION_MASK_ISA_FMA4_SET): New.
116 (OPTION_MASK_ISA_FMA4_UNSET): New.
117 (OPTION_MASK_ISA_SSE4A_UNSET): Change definition to depend on FMA4.
118 (OPTION_MASK_ISA_AVX_UNSET): Change definition to depend on FMA4.
119 (ix86_handle_option): Handle -mfma4.
120 (isa_opts): Handle -mfma4.
121 (enum pta_flags): Add PTA_FMA4.
122 (override_options): Add FMA4 support.
123 (IX86_BUILTIN_VFMADDSS): New for FMA4 intrinsic.
124 (IX86_BUILTIN_VFMADDSD): Ditto.
125 (IX86_BUILTIN_VFMADDPS): Ditto.
126 (IX86_BUILTIN_VFMADDPD): Ditto.
127 (IX86_BUILTIN_VFMSUBSS): Ditto.
128 (IX86_BUILTIN_VFMSUBSD): Ditto.
129 (IX86_BUILTIN_VFMSUBPS): Ditto.
130 (IX86_BUILTIN_VFMSUBPD): Ditto.
131 (IX86_BUILTIN_VFMADDSUBPS): Ditto.
132 (IX86_BUILTIN_VFMADDSUBPD): Ditto.
133 (IX86_BUILTIN_VFMSUBADDPS): Ditto.
134 (IX86_BUILTIN_VFMSUBADDPD): Ditto.
135 (IX86_BUILTIN_VFNMADDSS): Ditto.
136 (IX86_BUILTIN_VFNMADDSD): Ditto.
137 (IX86_BUILTIN_VFNMADDPS): Ditto.
138 (IX86_BUILTIN_VFNMADDPD): Ditto.
139 (IX86_BUILTIN_VFNMSUBSS): Ditto.
140 (IX86_BUILTIN_VFNMSUBSD): Ditto.
141 (IX86_BUILTIN_VFNMSUBPS): Ditto.
142 (IX86_BUILTIN_VFNMSUBPD): Ditto.
143 (IX86_BUILTIN_VFMADDPS256): Ditto.
144 (IX86_BUILTIN_VFMADDPD256): Ditto.
145 (IX86_BUILTIN_VFMSUBPS256): Ditto.
146 (IX86_BUILTIN_VFMSUBPD256): Ditto.
147 (IX86_BUILTIN_VFMADDSUBPS256): Ditto.
148 (IX86_BUILTIN_VFMADDSUBPD256): Ditto.
149 (IX86_BUILTIN_VFMSUBADDPS256): Ditto.
150 (IX86_BUILTIN_VFMSUBADDPD256): Ditto.
151 (IX86_BUILTIN_VFNMADDPS256): Ditto.
152 (IX86_BUILTIN_VFNMADDPD256): Ditto.
153 (IX86_BUILTIN_VFNMSUBPS256): Ditto.
154 (IX86_BUILTIN_VFNMSUBPD256): Ditto.
155 (enum multi_arg_type): New enum for describing the various FMA4
156 intrinsic argument types.
157 (bdesc_multi_arg): New table for FMA4 intrinsics.
158 (ix86_init_mmx_sse_builtins): Add FMA4 intrinsic support.
159 (ix86_expand_multi_arg_builtin): New function for creating FMA4
161 (ix86_expand_builtin): Add FMA4 intrinsic support.
162 (ix86_fma4_valid_op_p): New function to validate FMA4 3 and 4
163 operand instructions.
164 (ix86_expand_fma4_multiple_memory): New function to split the
165 second memory reference from FMA4 instructions.
166 * config/i386/sse.md (ssemodesuffixf4): New mode attribute for FMA4.
167 (ssemodesuffixf2s): Ditto.
168 (fma4_fmadd<mode>4): Add FMA4 floating point multiply/add
170 (fma4_fmsub<mode>4): Ditto.
171 (fma4_fnmadd<mode>4): Ditto.
172 (fma4_fnmsub<mode>4): Ditto.
173 (fma4_vmfmadd<mode>4): Ditto.
174 (fma4_vmfmsub<mode>4): Ditto.
175 (fma4_vmfnmadd<mode>4): Ditto.
176 (fma4_vmfnmsub<mode>4): Ditto.
177 (fma4_fmadd<mode>4256): Ditto.
178 (fma4_fmsub<mode>4256): Ditto.
179 (fma4_fnmadd<mode>4256): Ditto.
180 (fma4_fnmsub<mode>4256): Ditto.
181 (fma4_fmaddsubv8sf4): Ditto.
182 (fma4_fmaddsubv4sf4): Ditto.
183 (fma4_fmaddsubv4df4): Ditto.
184 (fma4_fmaddsubv2df4): Ditto.
185 (fma4_fmsubaddv8sf4): Ditto.
186 (fma4_fmsubaddv4sf4): Ditto.
187 (fma4_fmsubaddv4df4): Ditto.
188 (fma4_fmsubaddv2df4): Ditto.
189 (fma4i_fmadd<mode>4): Add FMA4 floating point multiply/add
190 instructions for intrinsics.
191 (fma4i_fmsub<mode>4): Ditto.
192 (fma4i_fnmadd<mode>4): Ditto.
193 (fma4i_fnmsub<mode>4): Ditto.
194 (fma4i_vmfmadd<mode>4): Ditto.
195 (fma4i_vmfmsub<mode>4): Ditto.
196 (fma4i_vmfnmadd<mode>4): Ditto.
197 (fma4i_vmfnmsub<mode>4): Ditto.
198 (fma4i_fmadd<mode>4256): Ditto.
199 (fma4i_fmsub<mode>4256): Ditto.
200 (fma4i_fnmadd<mode>4256): Ditto.
201 (fma4i_fnmsub<mode>4256): Ditto.
202 (fma4i_fmaddsubv8sf4): Ditto.
203 (fma4i_fmaddsubv4sf4): Ditto.
204 (fma4i_fmaddsubv4df4): Ditto.
205 (fma4i_fmaddsubv2df4): Ditto.
206 (fma4i_fmsubaddv8sf4): Ditto.
207 (fma4i_fmsubaddv4sf4): Ditto.
208 (fma4i_fmsubaddv4df4): Ditto.
209 (fma4i_fmsubaddv2df4): Ditto.
211 * doc/invoke.texi (-mfma4): Add documentation.
212 * doc/extend.texi (x86 intrinsics): Add FMA4 intrinsics.
214 2009-09-29 Richard Henderson <rth@redhat.com>
216 * tree-eh.c (unsplit_eh): Do not unsplit if there's already
217 an edge to the new destination block.
219 2009-09-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
222 * pa.c (hppa_profile_hook): Use
223 make_reg_eh_region_note_nothrow_nononlocal to add REG_EH_REGION note.
225 2009-09-29 Steve Ellcey <sje@cup.hp.com>
226 Alexander Monakov <amonakov@ispras.ru>
229 * config/ia64/predicates.md (not_postinc_destination_operand): New.
230 (not_postinc_memory_operand): New.
231 (not_postinc_move_operand): New.
232 * config/ia64/ia64.md (*cmovdi_internal): Disallow autoincrement.
233 (*cmovsi_internal): Ditto.
235 2009-09-29 Pat Haugen <pthaugen@us.ibm.com>
237 * config/rs6000/rs6000.c (rs6000_issue_rate): Don't artificially
238 restrict issue_rate in first pass when scheduling for register
241 2009-09-29 Basile Starynkevitch <basile@starynkevitch.net>
242 Rafael Avila de Espindola <espindola@google.com>
244 * gengtype.c (plugin_output): New.
245 (get_output_file_with_visibility): Return plugin_output for plugins.
246 (main): Parse and use the -P option.
247 * gty.texi: Update the command line format.
249 2009-09-29 Jakub Jelinek <jakub@redhat.com>
252 * dwarf2out.c (const_ok_for_output_1, const_ok_for_output): New
254 (mem_loc_descriptor, loc_descriptor, add_const_value_attribute): Bail
255 out if !const_ok_for_output.
258 * dwarf2out.c (mem_loc_descriptor) <case CONCAT, case CONCATN,
259 case VAR_LOCATION>: Remove gcc_unreachable ().
261 2009-09-29 Harsha Jagasia <harsha.jagasia@amd.com>
263 * config.gcc (i[34567]86-*-*): Remove mmintrin-common.h.
265 * config/i386/smmintrin.h: Move instructions in mmintrin-common.h
267 * config/i386/cpuid.h: (bit_SSE5): Remove SSE5 bit.
268 * config/i386/x86intrin.h: Remove SSE5.
269 * config/i386/mmintrin-common.h: Delete file.
270 * doc/extend.texi (x86 intrinsics): Remove SSE5 flags and builtins.
272 2009-09-29 Richard Guenther <rguenther@suse.de>
274 * alias.c (ao_ref_from_mem): Properly deal with off decl accesses
275 resulting from stack temporaries on STRICT_ALIGNMENT targets.
277 2009-09-29 Nick Clifton <nickc@redhat.com>
279 * function.c (current_function_name): If there is no current
280 function just return "<none>".
282 2009-09-28 Sriraman Tallam <tmsriram@google.com>
284 * tree-pass.h (register_pass_info): New structure.
285 (pass_positioning_ops): Move enum from gcc-plugin.h.
286 (register_pass): New function.
287 * gcc-plugin.h (plugin_pass): Delete structure.
288 (pass_positioning_ops): Delete enum.
289 * plugin.c (regsiter_pass): Delete function.
290 (position_pass): Delete function.
291 (added_pass_nodes): Delete variable.
292 (prev_added_pass_nodes): Delete variable.
293 (pass_list_node): Delete structure.
294 * passes.c (make_pass_instance): New function.
295 (next_pass_1): Change to call make_pass_instance.
296 (pass_list_node): Move structure from gcc-plugin.h.
297 (added_pass_nodes): Move variable from plugin.c.
298 (prev_added_pass_nodes): Move variable from plugin.c.
299 (position_pass): New function.
300 (register_pass): New function.
302 2009-09-28 Easwaran Raman <eraman@google.com>
304 * ifcvt.c (noce_try_abs): Recognize pattern and call
305 expand_one_cmpl_abs_nojump.
306 * optabs.c (expand_one_cmpl_abs_nojump): New function.
307 * optabs.h (expand_one_cmpl_abs_nojump): Declare.
309 2009-09-28 Ian Lance Taylor <iant@google.com>
312 * c-opts.c (c_common_handle_option): Don't set
313 warn_jump_misses_init for -Wall.
314 * doc/invoke.texi (Warning Options): Update documentation.
316 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
318 * Makefile.in ($(out_object_file)): Depend on
319 gt-$(basename $(notdir $(out_file))).h.
321 2009-09-28 Richard Henderson <rth@redhat.com>
323 * except.h (struct eh_region_d): Add use_cxa_end_cleanup.
324 * except.c (gen_eh_region): Set it.
325 (duplicate_eh_regions_1): Copy it.
326 * tree-eh.c (lower_resx): Use it to determine which function
329 * langhooks.h (struct lang_hooks): Add eh_use_cxa_end_cleanup.
330 * langhooks-def.h (LANG_HOOKS_EH_USE_CXA_END_CLEANUP): New.
331 * builtins.def (BUILT_IN_CXA_END_CLEANUP): New.
332 * tree.c (build_common_builtin_nodes): Remove parameter. Build
333 BUILT_IN_CXA_END_CLEANUP if necessary.
335 * c-common.c (c_define_builtins): Update call to
336 build_common_builtin_nodes.
338 2009-09-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
340 * spu.c (get_branch_target): Return NULL for ASM_OPERANDS patterns.
342 2009-09-28 Michael Matz <matz@suse.de>
344 * builtins.c (interclass_mathfn_icode): New helper.
345 (expand_builtin_interclass_mathfn): Use it here, and split folding
347 (fold_builtin_interclass_mathfn): ... this new folder.
348 (build_call_nofold_loc): New static helper.
349 (build_call_nofold): New wrapper macro for above.
350 (expand_builtin_int_roundingfn): Use it instead of build_call_expr.
351 (expand_builtin_pow): Ditto.
352 (expand_builtin_memset_args): Ditto.
353 (expand_builtin_printf): Ditto.
354 (expand_builtin_fprintf): Ditto.
355 (expand_builtin_sprintf): Ditto.
356 (expand_builtin_memory_chk): Ditto.
357 (expand_builtin_mempcpy_args): Ditto and don't call folders.
358 (expand_builtin_stpcpy): Ditto.
359 (expand_builtin_strcmp): Ditto.
360 (expand_builtin_strncmp): Ditto.
361 (expand_builtin_strcpy): Remove FNDECL and MODE arguments.
362 (expand_builtin_strcpy_args): Don't call folders.
363 (expand_builtin_memcmp): Ditto.
364 (expand_builtin_strncpy): Ditto, and use target.
365 (expand_builtin_memcpy): Ditto.
366 (expand_builtin_strstr, expand_builtin_strchr, expand_builtin_strrchr,
367 expand_builtin_strpbrk, expand_builtin_memmove,
368 expand_builtin_memmove_args, expand_builtin_bcopy,
369 expand_builtin_memchr, expand_builtin_strcat, expand_builtin_strncat,
370 expand_builtin_strspn, expand_builtin_strcspn,
371 expand_builtin_fputs): Remove these.
372 (expand_builtin): Don't call the above, change calls to other
373 expanders that changed prototype.
374 (fold_builtin_stpcpy): New folder split out from expand_builtin_stpcpy.
375 (fold_builtin_1 <ISFINITE, ISINF, ISNORMAL>): Call
376 fold_builtin_interclass_mathfn.
377 (fold_builtin_2 <STPCPY>): Call fold_builtin_stpcpy.
378 (fold_builtin_strcat): Add folding split from expand_builtin_strcat.
380 * fold-const.c (fold_binary_loc <NE_EXPR>): Add !exp != 0 -> !exp.
381 * passes.c (init_optimization_passes): Move pass_fold_builtins
382 after last phiopt pass.
383 * tree-inline.c (fold_marked_statements): When folding builtins
384 iterate over all instruction potentially generated.
385 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Declare
387 (fold_gimple_call): Use it to always fold calls (into potentially
388 multiple instructions).
389 * tree-ssa-dom.c (optimize_stmt): Resolve __builtin_constant_p
390 calls into zero at this time.
391 * tree-ssa-propagate.c (substitute_and_fold): Ignore multiple
392 statements generated by builtin folding.
394 2009-09-28 Nick Clifton <nickc@redhat.com>
396 * config/m32r/m32r.c (m32r_is_insn): Return false for debugging
399 2009-09-28 Duncan Sands <baldrick@free.fr>
401 * gcc-plugin.h (PLUGIN_REGISTER_GGC_CACHES): New event.
402 * plugin.c (plugin_event_name): Add PLUGIN_REGISTER_GGC_CACHES.
403 (register_callback): Dispatch it.
404 (invoke_plugin_callbacks): Incorporate in sanity check.
405 * ggc.h (ggc_register_cache_tab): Add declaration.
406 * ggc-common.c (ggc_register_root_tab): Simplify.
407 (const_ggc_cache_tab_t): New typedef.
408 (extra_cache_vec): New vector of dynamically added cache tables.
409 (ggc_register_cache_tab): New function.
410 (ggc_scan_cache_tab): New function.
411 (ggc_mark_roots): Simplify dynamic roots. Handle dynamic caches.
412 * doc/plugins.texi: Document PLUGIN_REGISTER_GGC_CACHES.
414 2009-09-27 Richard Henderson <rth@redhat.com>
416 * tree-ssa-ccp.c (optimize_stack_restore): Relax the conditions under
417 which we remove __builtin_stack_restore.
419 2009-09-27 Bernd Schmidt <bernd.schmidt@analog.com>
421 * loop-iv.c (iv_analyze_op): Use function_invariant_p, not CONSTANT_P,
422 to test for GRD_INVARIANT.
423 (simple_rhs_p): Anything that's function_invariant_p is fine.
425 2009-09-27 Rafael Avila de Espindola <espindola@google.com>
427 * gengtype.c (main): Use plunge_files instead of plugin_output.
429 2009-09-27 Basile Starynkevitch <basile@starynkevitch.net>
430 Rafael Avila de Espindola <espindola@google.com>
432 * gengtype.c (write_root, write_roots): Add a emit_pch argument.
433 Don't print pch related info if it is false.
434 (main): Don't print pch info in plugin mode.
436 2009-09-27 Eric Botcazou <ebotcazou@adacore.com>
438 * dwarf2out.c (enum dw_val_class): Replace dw_val_class_long_long
439 with dw_val_class_const_double.
440 (struct dw_val_struct): Replace val_long_long with val_double and
441 adjust for above change.
442 (output_loc_operands): Likewise.
443 (add_AT_long_long): Rename into...
444 (add_AT_double): ...this.
445 (print_die): Replace dw_val_class_long_long with
446 dw_val_class_const_double and adjust.
447 (attr_checksum): Likewise.
448 (same_dw_val_p): Likewise.
449 (size_of_die): Likewise.
450 (value_format): Likewise.
451 (output_die): Likewise.
452 (loc_descriptor) <CONST_DOUBLE>: Likewise.
453 (add_const_value_attribute) <CONST_DOUBLE>: Call add_AT_double
454 instead of add_AT_long_long.
455 (add_bound_info) <INTEGER_CST>: Generate the bound as an unsigned
456 value with the precision of its type.
458 2009-09-27 Andreas Schwab <schwab@linux-m68k.org>
461 * c-typeck.c (build_conditional_expr): Use the readonly and
462 volatile flags of the operand types, not of the operands itself.
464 2009-09-27 Peter O'Gorman <pogma@thewrittenword.com>
466 collect2.c (main): Look for -brtl before adding libraries.
468 2009-09-27 Jonathan Gray <jsg@openbsd.org>
470 * config.gcc: Update OpenBSD targets.
471 * config/openbsd-stdint.h: New file.
472 * config/openbsd-libpthread.h: New file.
473 * config/openbsd.h: Update and break out LIB_SPEC definition.
474 * config/alpha/openbsd.h: Overhaul to reflect ELF migration.
475 * config/i386/openbsdelf.h: Correct types.
476 * config/m68k/openbsd.h: Likewise.
477 * config/mips/openbsd.h: Likewise.
478 * config/vax/openbsd.h: Likewise.
480 2009-09-27 Eric Botcazou <ebotcazou@adacore.com>
482 * fold-const.c (maybe_lvalue_p): Return false for M(IN|AX)_EXPR.
483 (extract_muldiv_1) <MINUS_EXPR>: Swap operands if necessary.
484 * stor-layout.c (layout_type) <ARRAY_TYPE>: Do not take the maximum
485 of the length and zero.
487 2009-09-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
489 * Makefile.in (TOPLEV_H): Use $(INPUT_H) not input.h.
490 (FLAGS_H): Add options.h $(REAL_H).
491 (SEL_SCHED_IR_H): Add $(BITMAP_H) vecprim.h $(CFGLOOP_H).
492 (TREE_VECTORIZER_H): New.
493 (EBITMAP_H): Renamed from EBIMAP_H.
494 (c-decl.o, c-objc-common.o, c-pretty-print.o, attribs.o, c-omp.o)
495 (gtype-desc.o, ggc-common.o, ggc-page.o, ggc-zone.o, langhooks.o)
496 (tree.o, tree-ssa-structalias.o, tree-ssa-ter.o, tree-ssanames.o)
497 (tree-phinodes.o, tree-ssa-loop.o, tree-ssa-math-opts.o)
498 (gimple-low.o, omp-low.o, sese.o, graphite-blocking.o)
499 (graphite-clast-to-gimple.o, graphite-dependences.o)
500 (graphite-interchange.o, graphite-poly.o, graphite-scop-detection.o)
501 (graphite-sese-to-poly.o, tree-vect-loop.o, tree-vect-loop-manip.o)
502 (tree-vect-patterns.o, tree-vect-slp.o, tree-vect-stmts.o)
503 (tree-vect-data-refs.o, tree-vectorizer.o, gimple.o, tree-mudflap.o)
504 (targhooks.o, stmt.o, emit-rtl.o, ipa.o, matrix-reorg.o, ipa-inline.o)
505 (gcse.o, tree-ssa-ccp.o, df-byte-scan.o, vec.o, caller-save.o)
506 (ira-build.o, ira-costs.o, ira-color.o, ira-emit.o, ira.o)
507 (haifa-sched.o, sched-rgn.o, sel-sched.o, sel-sched-dump.o)
508 (sel-sched-ir.o, final.o, $(out_object_file)): Dependencies
509 updated and fixed as per above changes and per
510 check_makefile_deps.sh output.
513 * configure.ac: Use $LIBS for '-ldl', not $LDFLAGS.
514 * configure: Regenerate.
516 2009-09-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
518 * doc/install.texi: Update minimum MPC version to 0.7.
520 2009-09-26 Gerald Pfeifer <gerald@pfeifer.com>
522 * doc/install.texi (Binaries): Remove reference to the binary
523 distribution CD-ROM from the FSF.
525 2009-09-26 Michael Matz <matz@suse.de>
529 * tree-ssa-coalesce.c (coalesce_ssa_name): Add only SSA names
530 that are mentioned in the body.
532 2009-09-26 Michael Matz <matz@suse.de>
534 PR tree-optimization/41454
535 * tree-ssa-dom (stmts_to_rescan): Remove variable.
536 (tree_ssa_dominator_optimize): Don't allocate and free it.
537 (dom_opt_leave_block): Don't iterate over it.
538 (eliminate_redundant_computations): Don't return a value.
539 (cprop_operand, cprop_into_stmt): Ditto.
540 (optimize_stmt): Don't defer updating stmts.
542 2009-09-25 Dodji Seketeli <dodji@redhat.com>
544 * dwarf2out.c (dwarf_tag_name, gen_generic_params_dies,
545 generic_parameter_die, template_parameter_pack_die,
546 gen_formal_parameter_die, gen_subprogram_die): Adjust after renaming
547 DW_TAG_formal_parameter_pack and DW_TAG_template_parameter_pack into
548 DW_TAG_GNU_formal_parameter_pack and DW_TAG_GNU_template_parameter_pack.
550 2009-09-25 Anatoly Sokolov <aesok@post.ru>
552 * config/v850/v850.h (FUNCTION_VALUE): Remove.
553 * config/v850/v850.c (v850_function_value): New function.
554 (TARGET_FUNCTION_VALUE): Define.
556 2009-09-25 Jakub Jelinek <jakub@redhat.com>
558 * tree-vect-stmts.c (vectorizable_call): Call
559 mark_symbols_for_renaming after vect_finish_stmt_generation.
561 * dwarf2out.c (tls_mem_loc_descriptor): Pass 1 instead of 2
562 to loc_descriptor_from_tree.
563 (add_location_or_const_value_attribute): Pass 0 instead of 2
564 for decl_by_reference_p decls.
566 2009-09-25 Richard Guenther <rguenther@suse.de>
569 * tree-dfa.c (get_ref_base_and_extent): Fix issue with trailing
572 2009-09-25 Ben Elliston <bje@au.ibm.com>
574 * doc/invoke.texi (RS/6000 and PowerPC Options): Add missing comma
577 2009-09-25 Alan Modra <amodra@bigpond.net.au>
579 * config/rs6000/rs6000.md (load_toc_v4_PIC_3c): Correct POWER
582 2009-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
585 * fold-const.c (const_binop): Handle complex int division.
586 * tree-complex.c (expand_complex_div_straight,
587 expand_complex_div_wide): Update comments.
589 2009-09-24 DJ Delorie <dj@redhat.com>
592 * config/m32c/m32c.h (REG_CLASS_CONTENTS): Add R13.
593 (reg_class): Likewise.
594 (REG_CLASS_NAMES): Likewise.
595 * config/m32c/m32c.c (m32c_reg_class_from_constraint): Likewise.
597 * config/m32c/m32c.c (m32c_override_options): Disable -fivopts for
600 2009-09-24 Michael Meissner <meissner@linux.vnet.ibm.com>
602 * config/rs6000/predicates.md (indexed_or_indirect_operand):
603 Delete VSX load/store with update support.
604 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Ditto.
605 * config/rs6000/vsx.md (vsx_mov<mode>): Ditto.
609 (VStype_load_update): Ditto.
610 (VStype_store_update): Ditto.
611 (vsx_load<VSX_U:mode>_update_<P:mptrsize>): Ditto.
612 (vsx_store<VSX_U:mode>_update_<P:mptrsize>): Ditto.
614 * config/rs6000/rs6000.h (enum rs6000_builtins): Delete VSX
615 load/store with update builtins.
617 2009-09-24 Kai Tietz <kai.tietz@onevision.com>
619 * libgcc2.c (L_trampoline): Prototype for getpagesize
620 and mprotect in WINNT case.
622 2009-09-24 Anatoly Sokolov <aesok@post.ru>
624 * config/rs6000/rs6000.h (FUNCTION_VALUE): Remove macro.
625 * config/rs6000/rs6000-protos.h (rs6000_function_value): Remove.
626 * config/rs6000/rs6000.c (rs6000_function_value): Make static, add
628 (TARGET_FUNCTION_VALUE): Define.
630 2009-09-24 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
632 * config/darwin.h (DWARF2_DEBUGGING_INFO): Define as 1.
634 2009-09-24 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
637 * common.opt: Initialize dwarf_strict to -1.
638 * toplev.c (process_options): Catch unset dwarf_strict
639 and set to 0 for all targets not overriding.
640 * config/darwin.c (darwin_override_options): Catch unset
641 dwarf_strict and override to 1.
643 2009-09-24 Jeff Law <law@redhat.com>
645 * tree-into-ssa.c (rewrite_into_ssa): Free interesting_blocks.
647 2009-09-24 Richard Guenther <rguenther@suse.de>
649 PR tree-optimization/36143
650 PR tree-optimization/38747
651 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Only
652 create VIEW_CONVERT_EXPRs for TBAA compatible accesses.
654 2009-09-24 Jakub Jelinek <jakub@redhat.com>
657 * dwarf2out.c (add_const_value_attribute): For HIGH and CONST_FIXED,
658 return false instead of gcc_unreachable (). For CONST return the
659 value returned by recursive call instead of always returning true.
660 (tree_add_const_value_attribute): Return the value returned by
661 add_const_value_attribute instead of always returning true if rtl
664 2009-09-23 Justin Seyster <jrseys@gmail.com>
666 * Makefile.in (PLUGIN_HEADERS): Include real.h.
668 2009-09-24 Jakub Jelinek <jakub@redhat.com>
670 * cgraphunit.c (cgraph_lower_function): Revert last change.
671 * targhooks.c (default_static_chain): Use !DECL_STATIC_CHAIN
672 instead of DECL_NO_STATIC_CHAIN.
673 * tree-cfg.c (verify_gimple_call): Likewise.
674 * tree-nested.c (get_chain_decl, get_chain_field,
675 convert_tramp_reference_op, convert_gimple_call): Likewise.
676 (convert_all_function_calls): Likewise. Always set or clear
677 DECL_STATIC_CHAIN initially, for !n->outer clear it.
678 (lower_nested_functions): Remove DECL_NO_STATIC_CHAIN checking code.
679 * c-parser.c (c_parser_declaration_or_fndef): Set DECL_STATIC_CHAIN
681 * print-tree.c (print_node): Handle DECL_STATIC_CHAIN instead of
682 DECL_NO_STATIC_CHAIN.
683 * config/i386/i386.c (ix86_static_chain): Use !DECL_STATIC_CHAIN
684 instead of DECL_NO_STATIC_CHAIN.
685 (ix86_function_regparm, find_drap_reg): Likewise. Don't test
686 decl_function_context.
687 * varasm.c (initializer_constant_valid_p): Likewise.
688 * tree.h (DECL_NO_STATIC_CHAIN): Renamed to ...
689 (DECL_STATIC_CHAIN): ... this.
690 * config/moxie/moxie.c (moxie_static_chain): Use !DECL_STATIC_CHAIN
691 instead of DECL_NO_STATIC_CHAIN.
693 2009-09-23 Basile Starynkevitch <basile@starynkevitch.net>
694 Rafael Avila de Espindola <espindola@google.com>
696 * gengtype.c (nb_plugin_files): Make it unsigned to match
697 num_gt_files. Adjust other variables to avoid warnings.
698 (main): Allocate an all zero lang_bitmap before each plugin file name
699 to match regular file names.
701 2009-09-23 Richard Henderson <rth@redhat.com>
703 * doc/tm.texi (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
704 (TARGET_STATIC_CHAIN): Mention that this hook must be used for
705 static chain passed in memory.
706 * system.h (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Poison.
707 * targhooks.c (default_static_chain): Don't handle STATIC_CHAIN,
708 STATIC_CHAIN_INCOMING. Issue a sorry if there's no
709 STATIC_CHAIN_REGNUM defined.
711 * config/picochip/picochip-protos.h: s/class/klass/.
712 * config/picochip/picochip.c (TARGET_STATIC_CHAIN): New.
713 (picochip_static_chain): New.
714 * config/picochip/picochip.h (STATIC_CHAIN): Remove.
715 (STATIC_CHAIN_INCOMING): Remove.
717 * config/xtensa/xtensa.c (TARGET_STATIC_CHAIN): New.
718 (xtensa_static_chain): New.
719 * config/xtensa/xtensa.h (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
721 2009-09-23 Anatoly Sokolov <aesok@post.ru>
723 * config/pa/pa.h (FUNCTION_VALUE): Remove macro.
724 * config/pa/pa-protos.h (function_value): Remove.
725 * config/pa/pa.c (pa_function_value): Rename from function_value.
726 Make static, add 'outgoing' argument.
727 (TARGET_FUNCTION_VALUE): Define.
729 2009-09-23 Anatoly Sokolov <aesok@post.ru>
731 * config/avr/avr.c (avr_regs_to_save): Use current_function_is_leaf
732 instead of cfun->machine->is_leaf.
733 * config/avr/avr.h (machine_function): Remove is_leaf field.
735 2009-09-23 Jakub Jelinek <jakub@redhat.com>
738 * dwarf2out.c (address_of_int_loc_descriptor): Don't emit
739 DW_OP_piece after DW_OP_stack_value, adjust size calculations
740 for it, when DW_OP_stack_value and DW_OP_implicit_value has
741 the same size, prefer DW_OP_stack_value.
742 (loc_descriptor, loc_list_for_address_of_addr_expr_of_indirect_ref,
743 loc_list_from_tree): Don't emit DW_OP_piece after DW_OP_stack_value.
745 2009-09-23 Alexandre Oliva <aoliva@redhat.com>
748 * var-tracking.c (add_with_sets): Sort MO_VAL_LOC last among uses.
750 2009-09-23 Alexandre Oliva <aoliva@redhat.com>
753 * cfgexpand.c (convert_debug_memory_address): New.
754 (expand_debug_expr): Convert base address and offset to the same
755 mode. Use it to convert addresses to other modes. Accept
758 2009-09-23 Richard Guenther <rguenther@suse.de>
760 * alias.c (ao_ref_from_mem): Correct for negative MEM_OFFSET
761 produced for bigendian targets with promoted subregs.
763 2009-09-23 Richard Guenther <rguenther@suse.de>
765 * value-prof.c (gimple_ic): Purge old EH edges only after building
768 2009-09-23 Nick Clifton <nickc@redhat.com>
770 * config/arc/arc.c (arc_trampoline_init): Fix typo.
772 2009-09-23 Jakub Jelinek <jakub@redhat.com>
775 * doc/invoke.texi: Document -gstrict-dwarf and -gno-strict-dwarf.
778 * cgraphunit.c (cgraph_lower_function): Set DECL_NO_STATIC_CHAIN
779 on non-nested functions.
781 2009-09-23 Jakub Jelinek <jakub@redhat.com>
782 Jan Hubicka <jh@suse.cz>
784 * dwarf2out.c (loc_list_plus_const): Only define if
785 DWARF2_DEBUGGING_INFO.
786 (address_of_int_loc_descriptor): Likewise.
789 * dwarf2out.c (mem_loc_descriptor): Handle HIGH.
791 2009-09-23 Uros Bizjak <ubizjak@gmail.com>
794 * c-typeck.c (build_binary_op) <short_shift>: Check that integer
795 constant is more than zero.
797 2009-09-23 Alan Modra <amodra@bigpond.net.au>
800 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
801 call final to emit non-scheduled prologue, instead insert at entry.
803 2009-09-22 Loren J. Rittle <ljrittle@acm.org>
804 Joseph S. Myers <joseph@codesourcery.com>
806 * doc/install.texi (*-*-freebsd*): Add proper format codes.
808 2009-09-22 Basile Starynkevitch <basile@starynkevitch.net>
809 Rafael Avila de Espindola <espindola@google.com>
811 * gengtype.c (is_file_equal): New function.
812 (close_output_files): Use is_file_equal. Free of->buf.
814 2009-09-22 Basile Starynkevitch <basile@starynkevitch.net>
815 Rafael Avila de Espindola <espindola@google.com>
817 * gengtype.c (write_types, write_local): Add the output_header
818 argument. Update all callers.
820 2009-09-22 Dodji Seketeli <dodji@redhat.com>
822 * dwarf2out.c (template_parameter_pack_die,
823 gen_formal_parameter_pack_die ): New functions.
824 (make_ith_pack_parameter_name): Remove this function.
825 (dwarf_tag_name): Support printing DW_TAG_template_parameter_pack and
826 DW_TAG_formal_parameter_pack.
827 (gen_generic_params_dies): Represent each template parameter pack
828 by a DW_TAG_template_parameter_pack DIE. Argument pack elements are
829 represented by usual DW_TAG_template_*_parameter DIEs that are
830 children of the DW_TAG_template_parameter_pack element DIE.
831 (generic_parameter_die): This doesn't deal with parameter pack
832 names anymore. Don't generate DW_AT_name for some DIEs, e.g. children
833 of parameter pack DIEs.
834 (gen_formal_parameter_die): Add a flag to not emit DW_AT_name
835 in certain cases, e.g. for pack elements.
836 (gen_formal_types_die, gen_decl_die): Adjust usage of
837 gen_formal_parameter_die.
838 (gen_subprogram_die): Represent each function parameter pack by a
839 DW_TAG_formal_parameter_pack DIE. Arguments of of the pack are
840 represented by usual DW_TAG_formal_parameter DIEs that are children
841 of the DW_TAG_formal_parameter_pack DIE. Remove references to
842 ____builtin_va_alist decls as no part of the compiler uses those
844 * langhooks.h (struct lang_hooks_for_decls): Add
845 function_parm_expanded_from_pack_p, get_generic_function_decl
846 and function_parameter_pack_p hooks. Fix comment for
847 get_innermost_generic_parms hook.
848 * langhooks-def.h (LANG_HOOKS_FUNCTION_PARAMETER_PACK_P,
849 LANG_HOOKS_FUNCTION_PARM_EXPANDED_FROM_PACK_P ): Declare new hook
850 macros and use them to initialize lang_hook.
852 2009-09-22 Richard Henderson <rth@redhat.com>
854 * system.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE): Poison.
855 (TRAMPOLINE_ADJUST_ADDRESS): Poison.
856 * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): Don't conditionalize
857 on TRAMPOLINE_TEMPLATE.
858 (TARGET_TRAMPOLINE_ADJUST_ADDRESS): Don't conditionalize on
859 TRAMPOLINE_ADJUST_ADDRESS.
860 * targhooks.c (default_asm_trampoline_template): Remove.
861 (default_trampoline_adjust_address): Remove.
862 (default_trampoline_init): Don't handle INITIALIZE_TRAMPOLINE.
863 * targhooks.h: Update decls.
865 2009-09-22 Dave Korn <dave.korn.cygwin@gmail.com>
867 * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Enable.
868 * config/i386/cygwin.h (LIBGCJ_SONAME): Define.
869 * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
871 2009-09-22 Alexandre Oliva <aoliva@redhat.com>
874 * reload1.c (reload): Reset debug insns with pseudos without
877 2009-09-22 Janis Johnson <janis187@us.ibm.com>
879 * config/i386/i386.c (ix86_scalar_mode_supported_p): Don't return
880 unconditional true for decimal float modes.
881 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Ditto.
882 * config/s390/s390.c (s390_scalar_mode_supported_p): Ditto.
884 2009-09-22 Loren J. Rittle <ljrittle@acm.org>
886 * unwind-dw2-fde-glibc.c: Define and use USE_PT_GNU_EH_FRAME.
887 Enable a new case for __FreeBSD__ >= 7.
888 * crtstuff.c: Define USE_PT_GNU_EH_FRAME for __FreeBSD__ >= 7.
889 * config/t-freebsd: Define LIB2ADDEH and LIB2ADDEHDEP.
890 * config/freebsd-spec.h: Conditionally define LINK_EH_SPEC
891 and USE_LD_AS_NEEDED.
893 * doc/install.texi (*-*-freebsd*): Update target information.
895 2009-09-22 Richard Guenther <rguenther@suse.de>
898 * tree-dfa.c (get_ref_base_and_extent): Handle trailing
899 arrays really properly.
901 2009-09-22 Richard Henderson <rth@redhat.com>
904 * target.h (struct gcc_target): Add asm_out.trampoline_template,
905 calls.static_chain, calls.trampoline_init,
906 calls.trampoline_adjust_address.
907 * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
908 (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New.
909 (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
910 * builtins.c (expand_builtin_setjmp_receiver): Use
911 targetm.calls.static_chain; only clobber registers.
912 (expand_builtin_init_trampoline): Use targetm.calls.trampoline_init;
913 set up memory attributes properly for the trampoline block.
914 (expand_builtin_adjust_trampoline): Use
915 targetm.calls.trampoline_adjust_address.
916 * calls.c (prepare_call_address): Add fndecl argument. Use
917 targetm.calls.static_chain.
918 * df-scan.c (df_need_static_chain_reg): Remove.
919 (df_get_entry_block_def_set): Use targetm.calls.static_chain;
920 consolodate static chain handling.
921 * doc/tm.texi: Document new hooks.
922 * emit-rtl.c (static_chain_rtx, static_chain_incoming_rtx): Remove.
923 (init_emit_regs): Don't initialize them.
924 * expr.h (prepare_call_address): Update decl.
925 * final.c (profile_function): Use targetm.calls.static_chain.
926 * function.c (expand_function_start): Likewise.
927 * rtl.h (static_chain_rtx, static_chain_incoming_rtx): Remove.
928 * stmt.c (expand_nl_goto_receiver): Use targetm.calls.static_chain;
929 only clobber registers.
930 * targhooks.c (default_static_chain): New.
931 (default_asm_trampoline_template, default_trampoline_init): New.
932 (default_trampoline_adjust_address): New.
933 * targhooks.h: Declare them.
934 * varasm.c (assemble_trampoline_template): Use
935 targetm.asm_out.trampoline_template. Make the memory block const
938 * config/alpha/alpha.c (alpha_trampoline_init): Rename from
939 alpha_initialize_trampoline. Make static. Merge VMS parameter
940 differences into the TARGET_ABI_OPEN_VMS code block.
941 (TARGET_TRAMPOLINE_INIT): New.
942 * config/alpha/alpha.h (TRAMPOLINE_TEMPLATE): Remove.
943 (TRAMPOLINE_SECTION, INITIALIZE_TRAMPOLINE): Remove.
944 * config/alpha/vms.h (TRAMPOLINE_SIZE, TRAMPOLINE_ALIGNMENT): Remove.
945 (INITIALIZE_TRAMPOLINE): Remove.
947 * config/arc/arc.h (TRAMPOLINE_ALIGNMENT): New.
948 (TRAMPOLINE_TEMPLATE): Merge with ...
949 (INITIALIZE_TRAMPOLINE): ... this and move ...
950 * config/arc/arc.c (arc_trampoline_init): ... here.
951 (TARGET_TRAMPOLINE_INIT): New.
953 * config/arm/arm.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
954 (TARGET_TRAMPOLINE_INIT, TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
955 (arm_asm_trampoline_template): New.
956 (arm_trampoline_init, arm_trampoline_adjust_address): New.
957 * config/arm/arm.h (TRAMPOLINE_TEMPLATE, ARM_TRAMPOLINE_TEMPLATE,
958 THUMB2_TRAMPOLINE_TEMPLATE, THUMB1_TRAMPOLINE_TEMPLATE): Move all
959 code to arm_asm_trampoline_template.
960 (TRAMPOLINE_ADJUST_ADDRESS): Move code to
961 arm_trampoline_adjust_address.
962 (INITIALIZE_TRAMPOLINE): Move code to arm_trampoline_init;
963 adjust for target hook parameters.
965 * config/avr/avr.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE):
968 * config/bfin/bfin-protos.h (initialize_trampoline): Remove.
969 * config/bfin/bfin.c (bfin_asm_trampoline_template): New.
970 (bfin_trampoline_init): Rename from initialize_trampoline;
971 make static; update for target hook parameters.
972 (TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New.
973 * config/bfin/bfin.h (TRAMPOLINE_TEMPLATE): Move code to
974 bfin_asm_trampoline_template.
975 (INITIALIZE_TRAMPOLINE): Remove.
977 * config/cris/cris.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
978 TARGET_TRAMPOLINE_INIT, cris_asm_trampoline_template,
979 cris_trampoline_init): New.
980 * config/cris/cris.h (TRAMPOLINE_TEMPLATE): Move code to
981 cris_asm_trampoline_template.
982 (INITIALIZE_TRAMPOLINE): Move code to cris_trampoline_init;
983 adjust for target hook parameters.
985 * config/crx/crx.h (INITIALIZE_TRAMPOLINE): Remove.
987 * config/fr30/fr30.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
988 TARGET_TRAMPOLINE_INIT, fr30_asm_trampoline_template,
989 fr30_trampoline_init): New.
990 * config/fr30/fr30.h (TRAMPOLINE_TEMPLATE): Move code to
991 fr30_asm_trampoline_template.
992 (INITIALIZE_TRAMPOLINE): Move code to fr30_trampoline_init;
993 adjust for target hook parameters.
995 * config/frv/frv.c (TARGET_TRAMPOLINE_INIT): New.
996 (frv_trampoline_init): Rename from frv_initialize_trampoline;
997 make static, adjust arguments for TARGET_TRAMPOLINE_INIT hook.
998 * config/frv/frv.h (INITIALIZE_TRAMPOLINE): Remove.
999 * config/frv/frv-protos.h (frv_initialize_trampoline): Remove.
1001 * config/h8300/h8300.c (h8300_trampoline_init): New.
1002 (TARGET_TRAMPOLINE_INIT): New.
1003 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Move code
1004 to h8300_trampoline_init and adjust for hook parameters.
1006 * config/ia64/ia64-protos.h (ia64_initialize_trampoline): Remove.
1007 * config/ia64/ia64.c (TARGET_TRAMPOLINE_INIT): New.
1008 (ia64_trampoline_init): Rename from ia64_initialize_trampoline;
1009 make static; adjust for hook parameters.
1010 * config/ia64/ia64.h (INITIALIZE_TRAMPOLINE): Remove.
1012 * config/iq2000/iq2000.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
1013 (TARGET_TRAMPOLINE_INIT): New.
1014 (iq2000_asm_trampoline_template, iq2000_trampoline_init): New.
1015 * config/iq2000/iq2000.h (TRAMPOLINE_TEMPLATE): Move code to
1016 iq2000_asm_trampoline_template.
1017 (INITIALIZE_TRAMPOLINE): Move code to iq2000_trampoline_init.
1018 (TRAMPOLINE_CODE_SIZE): New.
1019 (TRAMPOLINE_SIZE): Use it.
1020 (TRAMPOLINE_ALIGNMENT): Follow Pmode.
1022 * config/m32c/m32c-protos.h (m32c_initialize_trampoline): Remove.
1023 * config/m32c/m32c.c (TARGET_TRAMPOLINE_INIT): New.
1024 (m32c_trampoline_init): Rename from m32c_initialize_trampoline;
1025 adjust for hook parameters.
1026 * config/m32c/m32c.h (INITIALIZE_TRAMPOLINE): Remove.
1028 * config/m32r/m32r.c (TARGET_TRAMPOLINE_INIT): New.
1029 (m32r_trampoline_init): New.
1030 * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Move code to
1031 m32r_trampoline_init.
1033 * config/m68hc11/m68hc11.c (TARGET_TRAMPOLINE_INIT): New.
1034 (m68hc11_trampoline_init): Rename from m68hc11_initialize_trampoline;
1035 make static; update for hook parameters.
1036 * config/m68hc11/m68hc11-protos.h: Update.
1037 * config/m68hc11/m68hc11.h (INITIALIZE_TRAMPOLINE): Remove.
1039 * config/mcore/mcore.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
1040 (TARGET_TRAMPOLINE_INIT): New.
1041 (mcore_function_value): Fix typo.
1042 (mcore_asm_trampoline_template, mcore_trampoline_init): New.
1043 * config/mcore/mcore.h (TRAMPOLINE_TEMPLATE): Move code
1044 to mcore_asm_trampoline_template.
1045 (INITIALIZE_TRAMPOLINE): Move code to mcore_trampoline_init.
1047 * config/mep/mep.h (INITIALIZE_TRAMPOLINE): Remove.
1048 * config/mep/mep.c (TARGET_TRAMPOLINE_INIT): New.
1049 (mep_trampoline_init): Rename from mep_init_trampoline; make static;
1050 update for hook parameters.
1051 * config/mep/mep-protos.h (mep_init_trampoline): Remove.
1053 * config/mips/mips.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
1054 mips_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
1055 mips_trampoline_init): New.
1056 * config/mips/mips.h (TRAMPOLINE_TEMPLATE): Move code to
1057 mips_asm_trampoline_template.
1058 (INITIALIZE_TRAMPOLINE): Move code to mips_trampoline_init;
1059 update for hook parameters.
1061 * gcc/config/mmix/mmix.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
1062 (TARGET_TRAMPOLINE_INIT): New.
1063 (mmix_trampoline_size): Remove.
1064 (mmix_asm_trampoline_template): Rename from mmix_trampoline_template;
1065 make static. Remove out-of-date tetra vs octa comment.
1066 (mmix_trampoline_init): Rename from mmix_initialize_trampoline;
1067 make static; update for hook parameters.
1068 * config/mmix/mmix.h (TRAMPOLINE_TEMPLATE): Remove.
1069 (INITIALIZE_TRAMPOLINE): Remove.
1070 (TRAMPOLINE_SIZE): Use a constant instead of mmix_trampoline_size.
1071 (TRAMPOLINE_ALIGNMENT): New.
1072 * gcc/config/mmix/mmix-protos.h: Update.
1074 * config/mn10300/mn10300.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
1075 mn10300_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
1076 mn10300_trampoline_init): New.
1077 * config/mn10300/mn10300.h (TRAMPOLINE_TEMPLATE): Move code to
1078 mn10300_asm_trampoline_template.
1079 (INITIALIZE_TRAMPOLINE): Move code to mn10300_trampoline_init.
1081 * config/moxie/moxie.c (moxie_static_chain,
1082 moxie_asm_trampoline_template, moxie_trampoline_init,
1083 TARGET_STATIC_CHAIN, TARGET_ASM_TRAMPOLINE_TEMPLATE,
1084 TARGET_TRAMPOLINE_INIT): New.
1085 * config/moxie/moxie.h (INITIALIZE_TRAMPOLINE): Move code to
1086 moxie_trampoline_init.
1087 (TRAMPOLINE_TEMPLATE): Move code to moxie_asm_trampoline_template.
1088 (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
1090 * gcc/config/pa/pa.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
1091 pa_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
1092 pa_trampoline_init, TARGET_TRAMPOLINE_ADJUST_ADDRESS,
1093 pa_trampoline_adjust_address): New.
1094 * config/pa/pa.h (TRAMPOLINE_TEMPLATE): Move code to
1095 pa_asm_trampoline_template.
1096 (TRAMPOLINE_ALIGNMENT): New.
1097 (TRAMPOLINE_CODE_SIZE): Move to pa.c.
1098 (INITIALIZE_TRAMPOLINE): Move code to pa_trampoline_init;
1099 adjust for hook parameters.
1100 (TRAMPOLINE_ADJUST_ADDRESS): Move code to pa_trampoline_adjust_address.
1102 * config/pdp11/pdp11.c (pdp11_trampoline_init): New.
1103 (TARGET_TRAMPOLINE_INIT): New.
1104 * config/pdp11/pdp11.h (TRAMPOLINE_TEMPLATE): Remove.
1105 (INITIALIZE_TRAMPOLINE): Move code to pdp11_trampoline_init.
1107 * config/picochip/picochip.h (INITIALIZE_TRAMPOLINE): Remove.
1109 * config/rs6000/rs6000-protos.h (rs6000_initialize_trampoline): Remove.
1110 * config/rs6000/rs6000.c (TARGET_TRAMPOLINE_INIT): New.
1111 (rs6000_trampoline_init): Rename from rs6000_initialize_trampoline;
1112 make static; adjust parameters for the hook.
1113 * config/rs6000/rs6000.h (INITIALIZE_TRAMPOLINE): Remove.
1115 * config/s390/s390.c (s390_asm_trampoline_template): Rename from
1116 s390_trampoline_template; make static.
1117 (s390_trampoline_init): Rename from s390_initialize_trampoline;
1118 make static; adjust for target hook.
1119 (TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New.
1120 * config/s390/s390-protos.h: Remove trampoline decls.
1121 * config/s390/s390.h (INITIALIZE_TRAMPOLINE): Remove.
1122 (TRAMPOLINE_TEMPLATE): Remove.
1123 (TRAMPOLINE_ALIGNMENT): New.
1125 * config/score/score-protos.h (score_initialize_trampoline): Remove.
1126 * config/score/score.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
1127 (TARGET_TRAMPOLINE_INIT): New.
1128 (score_asm_trampoline_template): New.
1129 (score_trampoline_init): Rename from score_initialize_trampoline;
1130 make static; adjust for hook parameters.
1131 * config/score/score.h (TRAMPOLINE_TEMPLATE): Move code to
1132 score[37]_asm_trampoline_template.
1133 (INITIALIZE_TRAMPOLINE): Remove.
1134 * config/score/score3.c (score3_asm_trampoline_template): New.
1135 (score3_trampoline_init): Rename from score3_initialize_trampoline;
1136 adjust for target hook.
1137 * config/score/score7.c (score7_asm_trampoline_template): New.
1138 (score7_trampoline_init): Rename from score7_initialize_trampoline;
1139 adjust for target hook.
1140 * config/score/score3.h, config/score/score7.h: Update.
1142 * config/sh/sh-protos.h (sh_initialize_trampoline): Remove.
1143 * config/sh/sh.c (TARGET_TRAMPOLINE_INIT): New.
1144 (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
1145 (sh_trampoline_init): Rename from sh_initialize_trampoline;
1146 make static; adjust for target hook parameters.
1147 (sh_trampoline_adjust_address): New.
1148 * config/sh/sh.h (INITIALIZE_TRAMPOLINE): New.
1149 (TRAMPOLINE_ADJUST_ADDRESS): Move code to sh_trampoline_adjust_address.
1151 * config/sparc/sparc.c (TARGET_TRAMPOLINE_INIT): New.
1152 (sparc32_initialize_trampoline): Rename from
1153 sparc_initialize_trampoline; make static; replace tramp parameter
1154 with m_tramp and update memory accesses.
1155 (sparc64_initialize_trampoline): Similarly.
1156 (sparc_trampoline_init): New.
1157 * config/sparc/sparc-protos.h: Remove trampoline decls.
1158 * config/sparc/sparc.h (INITIALIZE_TRAMPOLINE): Remove.
1159 * config/sparc/sparc.md (nonlocal_goto): Don't use static_chain_rtx.
1161 * config/spu/spu.c (TARGET_TRAMPOLINE_INIT): New.
1162 (array_to_constant): Make ARR parameter const.
1163 (spu_trampoline_init): Rename from spu_initialize_trampoline;
1164 make static; update for hook parameters.
1165 * config/spu/spu-protos.h: Update decls.
1166 * config/spu/spu.h (INITIALIZE_TRAMPOLINE): Remove.
1168 * config/stormy16/stormy16.c (xstormy16_trampoline_init): Rename
1169 from xstormy16_initialize_trampoline; make static; update for
1171 (TARGET_TRAMPOLINE_INIT): New.
1172 * config/stormy16/stormy16.h (INITIALIZE_TRAMPOLINE): Remove.
1174 * config/v850/v850.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
1175 (TARGET_TRAMPOLINE_INIT): New.
1176 (v850_can_eliminate): Make static.
1177 (v850_asm_trampoline_template, v850_trampoline_init): New.
1178 * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Move code to
1179 v850_asm_trampoline_template.
1180 (INITIALIZE_TRAMPOLINE): Move code to v850_trampoline_init
1181 and adjust for target hook parameters.
1183 * config/vax/vax.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
1184 (TARGET_TRAMPOLINE_INIT): New.
1185 (vax_asm_trampoline_template, vax_trampoline_init): New.
1186 * config/vax/vax.h (TRAMPOLINE_TEMPLATE): Move code to
1187 vax_asm_trampoline_template.
1188 (INITIALIZE_TRAMPOLINE): Move code to vax_trampoline_init.
1190 * config/xtensa/xtensa.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
1191 (TARGET_TRAMPOLINE_INIT): New.
1192 (xtensa_asm_trampoline_template): Rename from
1193 xtensa_trampoline_template; make static.
1194 (xtensa_trampoline_init): Rename from xtensa_initialize_trampoline;
1195 make static; update for hook parameters.
1196 * config/xtensa/xtensa-protos.h: Remove trampoline decls.
1197 * config/xtensa/xtensa.h (TRAMPOLINE_TEMPLATE): Remove.
1198 (INITIALIZE_TRAMPOLINE): Remove.
1200 * config/i386/i386.c (ix86_function_regparm): Do not issue an
1201 error for nested functions with regparm=3.
1202 (ix86_compute_frame_layout): Adjust frame pointer offset for
1203 ix86_static_chain_on_stack.
1204 (ix86_expand_prologue): Handle ix86_static_chain_on_stack.
1205 (ix86_emit_restore_reg_using_pop): Increment ix86_cfa_state->offset,
1206 don't reset to UNITS_PER_WORD.
1207 (ix86_emit_leave): Adjust ix86_cfa_state.
1208 (ix86_expand_epilogue): Handle ix86_static_chain_on_stack.
1209 (ix86_static_chain): New.
1210 (ix86_trampoline_init): Rename from x86_initialize_trampoline;
1211 make static; update for target hook parameters; use ix86_static_chain.
1212 (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New.
1213 * config/i386/i386.h (STATIC_CHAIN_REGNUM): Remove.
1214 (INITIALIZE_TRAMPOLINE): Remove.
1215 (TRAMPOLINE_SIZE): Use 24 for 64-bit.
1216 (struct machine_function): Use BOOL_BITFIELD; rearrange bitfields
1217 to the end. Add static_chain_on_stack.
1218 (ix86_static_chain_on_stack): New.
1220 * config/m68k/m68k.c (TARGET_TRAMPOLINE_INIT): New.
1221 (m68k_output_mi_thunk): Don't use static_chain_rtx.
1222 (m68k_trampoline_init): New.
1223 * config/m68k/m68k.h (INITIALIZE_TRAMPOLINE): Move code to
1224 m68k_trampoline_init and adjust for hook parameters.
1225 * config/m68k/netbsd-elf.h (TRAMPOLINE_TEMPLATE): Remove.
1226 (TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE): Remove.
1228 2009-09-22 Jakub Jelinek <jakub@redhat.com>
1230 * config/rs6000/rs6000.c (bdesc_2arg): Fix CODE_FOR_vector_gt* codes
1231 for __builtin_altivec_vcmpgt{sb,uh,sh,uw}.
1233 * reload1.c (reload): Call wrap_constant when substituting
1234 reg for equiv inside of DEBUG_INSNs.
1237 * dwarf2out.c (base_type_die, record_type_tag, gen_subprogram_die,
1238 add_call_src_coords_attributes, add_high_low_attributes,
1239 gen_compile_unit_die, gen_type_die_with_usage force_decl_die,
1240 gen_decl_die, dwarf2out_imported_module_or_decl_1, dwarf2out_finish,
1241 dwarf2out_imported_module_or_decl): Avoid using DWARF3 additions
1242 when -gdwarf-2 -gstrict-dwarf.
1243 (loc_list_from_tree): Likewise. Avoid using DWARF4 additions when
1244 -gdwarf-[23] -gstrict-dwarf.
1245 (address_of_int_loc_descriptor, loc_descriptor,
1246 loc_list_for_address_of_addr_expr_of_indirect_ref): Avoid using
1247 DWARF4 additions when -gdwarf-[23] -gstrict-dwarf.
1248 * common.opt (gno-strict-dwarf, gstrict-dwarf): New options.
1250 2009-09-22 Richard Guenther <rguenther@suse.de>
1252 PR tree-optimization/41428
1253 * tree-ssa-ccp.c (ccp_fold_stmt): New function.
1254 (ccp_finalize): Pass it to substitute_and_fold.
1256 2009-09-22 Richard Guenther <rguenther@suse.de>
1258 * tree-ssa-propagate.h (ssa_prop_fold_stmt_fn): Declare.
1259 (substitute_and_fold): Adjust prototype.
1260 * tree-vrp.c (vrp_evaluate_conditional): Make static.
1261 (simplify_stmt_using_ranges): Likewise.
1262 (fold_predicate_in): Move here from tree-ssa-propagate.c.
1263 (vrp_fold_stmt): New function.
1264 (vrp_finalize): Pass it to substitute_and_fold.
1265 * tree-flow.h (vrp_evaluate_conditional): Remove.
1266 (simplify_stmt_using_ranges): Likewise.
1267 * tree-ssa-ccp.c (ccp_finalize): Adjust call to substitute_and_fold.
1268 * tree-ssa-copy.c (fini_copy_prop): Likewise.
1269 * tree-ssa-propagate.c (struct prop_stats_d): Rename num_pred_folded
1271 (fold_predicate_in): Move to tree-vrp.c.
1272 (substitute_and_fold): Use the callback instead of calling into
1273 tree-vrp.c functions directly.
1275 2009-09-22 Jakub Jelinek <jakub@redhat.com>
1277 * dwarf2out.c (address_of_int_loc_descriptor): Avoid signed/unsigned
1278 comparison warning on rs6000.
1281 * tree-cfg.c (remove_useless_stmts_tc): Call gsi_next (gsi) even for
1282 GIMPLE_EH_MUST_NOT_THROW cleanup.
1283 (verify_types_in_gimple_stmt): Handle GIMPLE_EH_MUST_NOT_THROW.
1285 2009-09-22 Jack Howarth <howarth@bromo.med.uc.edu>
1288 * gcc/config.gcc: Use darwin9.h and darwin10.h on darwin10 and later.
1289 * gcc/config/darwin10.h: Add file to pass -no_compact_unwind on
1290 LIB_SPEC for darwin10 and later since it always uses the unwinder in
1291 libSystem which is derived from the gcc 4.2.1 unwinder.
1293 2009-09-22 Dave Korn <dave.korn.cygwin@gmail.com>
1296 * varasm.c (default_encode_section_info): Copy TLS model into
1297 sym_ref flags regardless of backend support for TLS, for all
1298 model types except TLS_MODEL_EMULATED.
1300 2009-09-22 Dave Korn <dave.korn.cygwin@gmail.com>
1303 * dwarf2out.c (mem_loc_descriptor): Punt on CONST_STRING until
1304 we can handle it correctly.
1306 2009-09-21 Gerald Pfeifer <gerald@pfeifer.com>
1308 * doc/install.texi (os2): Remove section.
1310 2009-09-21 Gerald Pfeifer <gerald@pfeifer.com>
1312 * doc/standards.texi (Objective-C): Adjust two URLs.
1314 2009-09-21 Giuseppe Scrivano <gscrivano@gnu.org>
1316 * tree-tailcall.c (process_assignment): Don't check if a
1317 multiplication or an addition are already present.
1318 (find_tail_calls): Combine multiple additions and multiplications.
1319 (adjust_accumulator_values): Emit accumulators.
1321 2009-09-21 Kai Tietz <kai.tietz@onevision.com>
1323 * config/i386/i386.c (ix86_expand_epilogue): Adjust offset for
1324 xmm register restore.
1326 2009-09-21 Jan Hubicka <jh@suse.cz>
1328 * dwarf2out.c (decl_loc_table_eq): Allow decl_loc_table to be NULL.
1329 (dwarf2out_abstract_function): NULLify decl_loc_table at begginig and
1332 2009-09-21 Eric Botcazou <ebotcazou@adacore.com>
1334 * stor-layout.c (layout_type): Remove obsolete code.
1336 2009-09-20 H.J. Lu <hongjiu.lu@intel.com>
1339 * opts.c (decode_options): Don't turn on flag_ipa_sra for opt2.
1341 2009-09-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1344 * builtins.c (do_mpc_arg2): Accept DO_NONFINITE parameter.
1345 (do_mpc_ckconv): Accept FORCE_CONVERT parameter.
1346 (fold_builtin_2, do_mpc_arg1): Update accordingly.
1347 * fold-const.c (const_binop): Likewise.
1348 * real.h (do_mpc_arg2): Update prototype.
1350 2009-09-20 Jan Hubicka <jh@suse.cz>
1352 * dwarf2out.c (add_const_value_attribute): Return true if successful.
1353 (add_location_or_const_value_attribute): Rewrite using
1355 (tree_add_const_value_attribute): Return true if successful.
1356 (tree_add_const_value_attribute_for_decl): Likewise.
1358 * dwarf2out.c (address_of_int_loc_descriptor): Break out from ...
1359 (loc_descriptor): ... here;
1360 (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
1361 (cst_pool_loc_descr): Break out from ...; do not reffer constant
1362 pool items that was not marked for output.
1363 (loc_list_from_tree): ... here; handle special cases of ADDR_EXPR;
1364 (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
1365 (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
1366 handle ALIGN_INDIRECT_REF, MISALIGNED_INDIRECT_REF, REALPART_EXPR,
1367 IMAGPART_EXPR; handle address of INTEGER_CST; improve handling of
1368 CONSTRUCTOR; handle REAL_CST, STRING_CST, COMPLEX_CST; use
1369 DW_OP_stack_value to get address of items that are not available
1371 (dw_loc_list): Handle single element lists correctly.
1373 2009-09-20 Kai Tietz <kai.tietz@onevision.com>
1374 Pascal Obry <obry@adacore.com>
1376 * unwind-dw2-fde.c (classify_object_over_fdes):
1377 Cast the constant 1 to _Unwind_Ptr.
1378 (add_fdes): Likewise.
1379 (linear_search_fdes): Likewise.
1381 2009-09-20 Eric Botcazou <ebotcazou@adacore.com>
1383 * stor-layout.c (set_sizetype): Avoid useless type copy.
1385 2009-09-20 Richard Sandiford <rdsandiford@googlemail.com>
1387 * configure.ac (gcc_cv_ld_mips_personality_relaxation): New
1389 (HAVE_LD_PERSONALITY_RELAXATION): New macro definition.
1390 * configure, config.in: Regenerate.
1391 * dwarf2asm.c (eh_data_format_name): Handle DW_EH_PE_indirect |
1393 * config/mips/mips.h (TARGET_WRITABLE_EH_FRAME): New macro.
1394 (ASM_PREFERRED_EH_DATA_FORMAT): Define. Use MIPS_EH_INDIRECT
1395 for global data if the output could be used in a shared library.
1396 * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
1397 to 0 if TARGET_WRITABLE_EH_FRAME.
1399 2009-09-20 Paolo Bonzini <bonzini@gnu.org>
1401 PR rtl-optimization/39886
1402 * combine.c (update_cfg_for_uncondjump): Set EDGE_FALLTHRU
1403 just when insn is equal to BB_END (bb).
1405 2009-09-19 Adam Nemet <anemet@caviumnetworks.com>
1407 * config/mips/mips.opt (mrelax-pic-calls): New option.
1408 * config/mips/mips.c (mips_strip_unspec_address): Move it up in
1410 (mips_unspec_call): Change "unspec_call" expander into this.
1411 (mips_strip_unspec_call): New function.
1412 (mips_got_load): Call mips_unspec_call instead of
1413 gen_unspec_call<mode>.
1414 (mips16_build_call_stub): Fix comment for fp_code. Adjust call to
1416 (mips_cfg_in_reorg): New function.
1417 (mips16_lay_out_constants): Use it to decide whether to call
1418 CFG-aware insn splitting.
1419 (r10k_insert_cache_barriers): Move CFG set-up code from here to
1420 mips_reorg. Move DF set-up code from here ...
1421 (mips_df_reorg): ... to here. Call r10k_insert_cache_barriers
1423 (mips_reorg): Call mips_df_reorg instead of
1424 r10k_insert_cache_barriers. Move CFG set-up code here from
1425 r10k_insert_cache_barriers.
1426 (mips_call_expr_from_insn): New function.
1427 (mips_pic_call_symbol_from_set): Likewise.
1428 (mips_find_pic_call_symbol): Likewise.
1429 (mips_annotate_pic_call_expr): Likewise.
1430 (mips_get_pic_call_symbol): Likewise.
1431 (mips_annotate_pic_calls): Likewise.
1432 (mips_override_options): Disable -mrelax-pic-calls unless PIC
1434 (mips_set_mips16_mode): Disable -mrelax-pic-calls for MIPS16.
1435 * config/mips/mips-protos.h (mips_get_pic_call_symbol): Declare it.
1436 * config/mips/mips.h (MIPS_CALL): Use it to print the .reloc
1438 * config/mips/mips.md (UNSPEC_CALL_ATTR): New unspec.
1439 (unspec_call<mode>): Remove it.
1440 (sibcall_internal, sibcall_value_internal,
1441 sibcall_value_multiple_internal, call_internal, call_split,
1442 call_value_internal, call_value_split,
1443 call_value_multiple_internal, call_value_multiple_split): Pass
1444 SIZE_OPNO to MIPS_CALL.
1445 (call_internal_direct, call_direct_split,
1446 call_value_internal_direct, call_value_direct_split): Pass -1 as
1447 SIZE_OPNO to MIPS_CALL.
1448 * configure.ac <mips*-*-*>: Add test for .reloc R_MIPS_JALR.
1449 * configure: Regenerate.
1450 * doc/invoke.texi (Option Summary): Add -mrelax-pic-calls
1451 and -mno-relax-pic-calls.
1452 (MIPS Options): Document -mrelax-pic-calls and -mno-relax-pic-calls.
1454 2009-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1457 * Makefile.in (stmp-fixinc): Ensure `include-fixed' is created
1458 in the directory this rule is called from, rather than the
1459 toplevel 'gcc' directory, to fix in-tree build.
1461 2009-09-19 Chris Demetriou <cgd@google.com>
1463 PR preprocessor/28435:
1464 * c-opts.c (c_common_handle_option): For -MD and -MMD, indicate
1465 to cpplib that the preprocessor output is needed.
1467 2009-09-19 Jakub Jelinek <jakub@redhat.com>
1469 * config/rs6000/rs6000.md (*save_gpregs_<mode>, *save_fpregs_<mode>,
1470 *restore_gpregs_<mode>, *return_and_restore_gpregs_<mode>,
1471 *return_and_restore_fpregs_<mode>,
1472 *return_and_restore_fpregs_aix_<mode>): Remove 'z' operand modifier.
1475 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Recurse
1476 instead of assuming it has always a REG inside of it.
1478 2009-09-18 Gerald Pfeifer <gerald@pfeifer.com>
1480 * config/freebsd.h: Update comment on types.
1481 (WINT_TYPE): Define.
1483 2009-09-18 Jason Merrill <jason@redhat.com>
1485 * c.opt: Add -fno-deduce-init-list.
1487 2009-09-18 Neil Vachharajani <nvachhar@google.com>
1489 * value-prof.c (interesting_stringop_to_profile_p): Added output
1490 argument to indicate which parameter is the size parameter.
1491 * value-prof.c (gimple_stringop_fixed_value): Use
1492 INTERESTING_STRINGOP_TO_PROFILE_P to find size argument.
1493 * value-prof.c (gimple_stringops_transform): Update call sites to
1494 INTERESTING_STRINGOP_TO_PROFILE_P to reflect parameter change.
1496 2009-09-18 Uros Bizjak <ubizjak@gmail.com>
1499 From David Binderman <dcb314@hotmail.com>:
1500 * gcc/config/i386/i386.c (ix86_function_regparm): Remove useless
1501 local variable f. Remove stale comments.
1502 (ix86_compute_frame_layout): Remove useless local variable total_size.
1503 Remove #if 0'd code.
1504 (legitimate_address_p): Remove useless local variables
1505 reason_rtx and reason.
1506 (ix86_split_copysign_const): Remove useless local variable op1.
1507 (scale_counter): Remove useless local variable piece_size_mask.
1509 2009-09-18 Jakub Jelinek <jakub@redhat.com>
1511 * stmt.c (expand_asm_operands): Set REG_ATTRS on the temporary from
1514 2009-09-17 Michael Haubenwallner <michael.haubenwallner@salomon.at>
1517 * config/pa/t-hpux-shlib: Set soname in libgcc_s.sl.
1519 2009-09-17 Jakub Jelinek <jakub@redhat.com>
1521 * c-decl.c (finish_struct): Adjust DECL_SOURCE_LOCATION of
1524 2009-09-17 Alexandre Oliva <aoliva@redhat.com>
1526 * dwarf2out.c (loc_descriptor): Emit DW_OP_stack_value and
1527 DW_OP_implicit_value even without dwarf_version 4.
1529 2009-09-17 Jan Hubicka <jh@suse.cz>
1531 * dwarf2out.c: Include tree-pass.h and gimple.h.
1532 (loc_list_plus_const): New function.
1533 (loc_descriptor_from_tree_1): Rename to ...
1534 (loc_descriptor_from_tree): ... remove original.
1535 (loc_list_from_tree): New function.
1536 (add_AT_location_description): Accept location list.
1537 (tls_mem_loc_descriptor): Update call of loc_descriptor_from_tree.
1538 (concatn_mem_loc_descriptor): Remove.
1539 (mem_loc_descriptor): Handle CONCAT/CONCATN and VAR_LOCATION by
1541 (secname_for_decl): Move up.
1542 (hidden_reference_p): New function; break out from ...
1543 (loc_by_refernece): ... here; move up.
1544 (dw_loc_list): New function.
1545 (single_element_loc_list): New function.
1546 (single_element_loc_list_p): New function.
1547 (add_loc_descr_to_each): New function.
1548 (add_loc_list): New function.
1549 (loc_descr_from_tree): Make wraper of loc_list_from_tree.
1550 (loc_list_from_tree): Reroganized from loc_descr_from_tree;
1551 add diagnostics why expansion failed.
1552 (add_location_or_const_value_attribute): Support location lists.
1553 (add_bound_info): Likewise.
1554 (descr_info_loc): Update call of loc_descriptor_from_tree.
1555 (gen_variable_die): Work on location lists.
1556 * final.c (pass_final): Add dump file.
1557 * Makefile.in (dwarf2out.o): Add new dependencies.
1559 2009-09-17 Janis Johnson <janis187@us.ibm.com>
1562 * real.c decimal_from_integer, decimal_integer_string): New.
1563 (real_from_integer): Use them as special case for decimal float.
1564 * config/dfp-bit.c (_si_to_sd, _usi_to_sd): Use default rounding.
1565 (_di_to_sd, _di_to_dd, _di_to_td, _udi_to_sd, _udi_to_dd, _udi_to_td):
1566 Do not append zero after the decimal point in string to convert.
1568 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
1570 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only
1571 for ARRAY_REFs. Use array_ref_{low,up}_bound to determine bounds.
1573 2009-09-17 Martin Jambor <mjambor@suse.cz>
1575 * common.opt (fipa-sra): New switch.
1576 * opts.c (decode_options): Turn flag_ipa_sra on for opt2.
1577 * timevar.def (TV_IPA_SRA): New timevar.
1578 * params.def (ipa-sra-ptr-growth-factor): New parameter.
1579 * doc/invoke.texi: Document -fipa-sra and ipa-sra-ptr-growth-factor.
1580 * tree-sra.c: Include cgraph.c.
1581 (enum sra_mode): Added SRA_MODE_EARLY_IPA.
1582 (struct access): Added fields stmt, grp_maybe_modified, grp_scalar_ptr
1583 and grp_not_necessarilly_dereferenced.
1584 (func_param_count): New variable.
1585 (encountered_apply_args): New variable.
1586 (bb_dereferences): New variable.
1587 (final_bbs): New variable.
1588 (no_accesses_representant): New variable.
1589 (no_accesses_p): New function.
1590 (dump_access): Dump the new fields.
1591 (sra_initialize): Set encountered_apply_args to false.
1592 (get_ssa_base_param): New function.
1593 (mark_parm_dereference): New function.
1594 (create_access): Caring for INIDRECT_REFs and different handling of
1595 varialble length accesses in early IPA SRA. Store the stmt - a new
1596 parameter - to the new access.
1597 (build_access_from_expr_1): New parameter stmt, passed to
1598 create_access. Handle INDIRECT_REFs.
1599 (build_access_from_expr): Pass the current statement to
1600 build_access_from_expr_1.
1601 (disqualify_ops_if_throwing_stmt): Trigger only in intraprocedural
1603 (build_accesses_from_assign): Pass the current statement to
1604 build_access_from_expr_1. Do not create assign links in IPA-SRA.
1605 (scan_function): Call handle_ssa_defs on phi nodes. Set bits in
1606 final_bbs when necessary. Check for calls to __builtin_apply_args.
1607 Fixup EH info if anythng was changed.
1608 (is_unused_scalar_param): New function.
1609 (ptr_parm_has_direct_uses): New function.
1610 (find_param_candidates): New function.
1611 (mark_maybe_modified): New function.
1612 (analyze_modified_params): New function.
1613 (propagate_dereference_distances): New function.
1614 (dump_dereferences_table): New function.
1615 (analyze_caller_dereference_legality): New function.
1616 (unmodified_by_ref_scalar_representative): New function.
1617 (splice_param_accesses): New function.
1618 (decide_one_param_reduction): New function.
1619 (enum ipa_splicing_result): New type.
1620 (splice_all_param_accesses): New function.
1621 (get_param_index): New function.
1622 (turn_representatives_into_adjustments): New function.
1623 (analyze_all_param_acesses): New function.
1624 (get_replaced_param_substitute): New function.
1625 (get_adjustment_for_base): New function.
1626 (replace_removed_params_ssa_names): New function.
1627 (sra_ipa_reset_debug_stmts): New function.
1628 (sra_ipa_modify_expr): New function.
1629 (sra_ipa_modify_assign): New function.
1630 (convert_callers): New function.
1631 (modify_function): New function.
1632 (ipa_sra_preliminary_function_checks): New function.
1633 (ipa_early_sra): New function.
1634 (ipa_early_sra_gate): New function.
1635 (pass_early_ipa_sra): New variable.
1636 * Makefile.in (tree-sra.o): Add cgraph.h to dependencies.
1638 2009-09-17 Michael Matz <matz@suse.de>
1641 * tree.c (build_type_attribute_qual_variant): Export.
1642 * tree.h (build_type_attribute_qual_variant): Declare.
1643 * tree-inline.c (remap_type_1): Use it to build variants with
1644 the original qualifiers and attributes.
1646 2009-09-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1648 * cfglayout.c (fixup_reorder_chain): Accept conditional jumps
1649 without a fallthrough edge.
1651 2009-09-16 DJ Delorie <dj@redhat.com>
1653 * config/m32c/m32c.c (m32c_emit_epilogue): Check for R8C or M16C
1654 chip and ignore the "fast_interrupt" attribute if so.
1656 2009-09-16 Richard Henderson <rth@redhat.com>
1659 * cfgbuild.c (find_bb_boundaries): Really re-instate 2009-09-02
1662 2009-09-16 Richard Henderson <rth@redhat.com>
1665 * tree-cfg.c (verify_gimple_call): Validate that gimple_call_chain
1666 is set only if DECL_NO_STATIC_CHAIN is unset.
1667 * tree-nested.c (iter_nestinfo_start, iter_nestinfo_next): New.
1668 (FOR_EACH_NEST_INFO): New.
1669 (walk_all_functions): Use it.
1670 (finalize_nesting_tree): Likewise.
1671 (unnest_nesting_tree): Likewise.
1672 (free_nesting_tree): Use iter_nestinfo_start, iter_nestinfo_next.
1673 (get_chain_decl, get_chain_field): Reset DECL_NO_STATIC_CHAIN.
1674 (convert_gimple_call): Early out if gimple_call_chain already set.
1675 (convert_all_function_calls): Iterate until no new functions
1676 require a static chain.
1677 (finalize_nesting_tree_1): Assert DECL_NO_STATIC_CHAIN is unset
1678 when building a trampoline. Use dump_function_to_file instead
1680 (lower_nested_functions): Open dump_file. Validate that decls
1681 that have DECL_NO_STATIC_CHAIN from the front end don't have that
1682 bit reset by this pass.
1684 2009-09-16 Michael Matz <matz@suse.de>
1687 * tree.h (struct tree_decl_common): Add decl_restricted_flag,
1688 shorten decl_common_unused.
1689 (DECL_RESTRICTED_P): New accessor.
1690 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Use it
1691 to disambiguate marked decls and restrict pointers.
1693 2009-09-16 Richard Henderson <rth@redhat.com>
1696 * cfgbuild.c (find_bb_boundaries): Re-instate 2009-09-02 barrier fix.
1698 2009-09-16 Jakub Jelinek <jakub@redhat.com>
1700 * integrate.c (set_block_abstract_flags): Call
1701 set_decl_abstract_flags also on BLOCK_NONLOCALIZED_VARs.
1703 2009-09-16 Richard Guenther <rguenther@suse.de>
1706 * tree-flow-inline.h (may_be_aliased): Compute readonly variables
1709 2009-09-16 DJ Delorie <dj@redhat.com>
1710 Kaz Kojima <kkojima@gcc.gnu.org>
1712 * config/sh/sh.c (output_stack_adjust): Add new argument frame_p.
1713 (sh_expand_prologue): Update calls to output_stack_adjust.
1714 (sh_expand_epilogue): Likewise.
1716 2009-09-15 Adam Nemet <anemet@caviumnetworks.com>
1719 * reorg.c (redundant_insn): Don't count notes or DEBUG_INSNs when
1720 trying to limit the extent of searches in the insn stream.
1722 2009-09-15 Nathan Froyd <froydnj@codesourcery.com>
1723 Jakub Jelinek <jakub@redhat.com>
1727 * config/rs6000/rs6000.c (no_global_regs_above): Fix precedence
1729 (SAVRES_NOINLINE_GPRS_SAVES_LR, SAVRES_NOINLINE_FPRS_SAVES_LR,
1730 SAVRES_NOINLINE_FPRS_DOESNT_RESTORE_LR): New strategy bits.
1731 (rs6000_savres_strategy): Always save FP registers inline if the
1732 target doesn't support hardware double-precision. Set the above
1733 bits in return value when needed.
1734 (rs6000_savres_routine_sym): Fix computation for cache selector.
1735 Mark the generated symbol as a function. Rename exitp argument to
1736 lr. Move code for determining the name of the symbol...
1737 (rs6000_savres_routine_name): ...here. New function. Add cases for
1738 getting the names right on AIX and 64-bit Linux.
1739 (savres_routine_name): New variable.
1740 (rs6000_make_savres_rtx): Rename exitp argument to lr. Don't assert
1741 lr isn't set when savep. Use r12 resp. r1 instead of r11 depending
1742 on what the target routine uses as a base register. If savep && lr
1743 describe saving of r0 into memory slot.
1744 (rs6000_emit_prologue): Correct use of call_used_regs. Fix out of
1745 line calls for AIX ABI.
1746 (rs6000_output_function_prologue): Use rs6000_savres_routine_name to
1747 determine FP save/restore functions.
1748 (rs6000_emit_stack_reset): Handle savres if sp_offset != 0 and
1749 frame_reg_rtx != sp_reg_rtx. Use gen_add3_insn instead of
1751 (rs6000_emit_epilogue): Adjust computation of restore_lr.
1752 Duplicate restoration of LR and execute the appropriate one
1753 depending on whether GPRs are being restored inline. Set r11 from
1754 offsetted frame_reg_rtx instead of sp_reg_rtx; if frame_reg_rtx is
1755 r11, adjust sp_offset. Use gen_add3_insn instead of gen_addsi3.
1756 Fix out of line calls for AIX ABI.
1757 * config/rs6000/rs6000.md (*return_and_restore_fpregs_aix_<mode>):
1759 * config/rs6000/spe.md (*save_gpregs_spe): Use explicit match for
1761 (*restore_gpregs_spe): Likewise.
1762 (*return_and_restore_gpregs_spe): Likewise.
1763 * config/rs6000/linux64.h (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX):
1764 Define to empty string unconditionally.
1765 * config/rs6000/sysv4.h (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX):
1766 Define to empty string unconditionally.
1767 (GP_SAVE_INLINE, FP_SAVE_INLINE): Handle TARGET_64BIT the same as
1770 2009-09-15 Jan Hubicka <jh@suse.cz>
1772 * doc/invoke.texi (inline-insns-auto): Drop from 60 to 50.
1773 * params.def (inline-insns-auto): Likewise.
1775 2009-09-15 Martin Jambor <mjambor@suse.cz>
1777 * ipa-inline.c (estimate_function_body_sizes): Dump info about
1778 individual statements only at TDF_DETAILS dump level. Format
1779 source for 80 characters per line.
1781 2009-09-15 Christian Bruel <christian.bruel@st.com>
1783 * regrename.c (do_replace): Update REG_DEAD notes.
1785 2009-09-15 Revital Eres <eres@il.ibm.com>
1787 * doc/tm.texi (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Document.
1788 * targhooks.c (default_builtin_support_vector_misalignment):
1789 New builtin function.
1790 * targhooks.h (default_builtin_support_vector_misalignment):
1792 * target.h (builtin_support_vector_misalignment):
1793 New field in struct gcc_target.
1794 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Call
1795 new builtin function.
1796 * target-def.h (TARGET_SUPPORT_VECTOR_MISALIGNMENT):
1798 * config/rs6000/rs6000.c
1799 (rs6000_builtin_support_vector_misalignment): New function.
1800 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Define.
1802 2009-09-15 Jie Zhang <jie.zhang@analog.com>
1804 * config/bfin/bfin.c (length_for_loop): Use NONDEBUG_INSN_P
1806 (bfin_optimize_loop): Likewise.
1807 (bfin_gen_bundles): Likewise.
1808 (workaround_speculation): Likewise.
1809 (find_load): Return NULL_RTX for debug_insn.
1811 2009-09-15 Uros Bizjak <ubizjak@gmail.com>
1813 * config/alpha/alpha.md (smaxsf3): Disable for IEEE mode.
1816 2009-09-14 DJ Delorie <dj@redhat.com>
1818 * config/mep/mep.h (JUMP_TABLES_IN_TEXT_SECTION): Define.
1819 * config/mep/mep.c (mep_emit_cbranch): Don't use BEQZ/BNEI in
1822 2009-09-14 Richard Henderson <rth@redhat.com>
1823 Jakub Jelinek <jakub@redhat.com>
1825 * builtins.c (expand_builtin_synchronize): Use gimple_build_asm_vec.
1826 * cfgbuild.c (make_edges): Handle asm goto.
1827 * cfglayout.c (fixup_reorder_chain): Likewise.
1828 * cfgrtl.c (patch_jump_insn): Likewise.
1829 * gimple-pretty-print.c (dump_gimple_asm): Likewise.
1830 * gimple.c (gimple_build_asm_1): Add and use nlabels parameter.
1831 (gimple_build_asm_vec): Add and use labels parameter.
1832 (gimple_build_asm): Remove.
1833 (walk_gimple_asm): Walk labels too.
1834 * gimple.def (GIMPLE_ASM): Update docs.
1835 * gimple.h: Update decls.
1836 (struct gimple_statement_asm): Change nc to use unsigned char;
1838 (gimple_asm_nlabels): New.
1839 (gimple_asm_label_op, gimple_asm_set_label_op): New.
1840 * gimplify.c (gimplify_asm_expr): Copy labels from ASM_EXPR
1841 into gimple_build_asm_vec.
1842 * jump.c (mark_jump_label_asm): New.
1843 (mark_jump_label): Use it.
1844 (redirect_jump_1): Handle asm goto.
1845 (invert_jump_1): Soft fail if X is null.
1846 * recog.c (extract_asm_operands): New.
1847 (asm_noperands): Use it; handle asm labels.
1848 (decode_asm_operands): Use extract_asm_operands.
1849 (asm_operand_ok): Properly handle empty string.
1850 * reg-stack.c (get_asm_operands_in_out): Rename from
1851 get_asm_operand_n_inputs; use extract_asm_operands; return both
1852 inputs and outputs by reference; update all callers.
1853 * rtl.def (ASM_OPERANDS): Add label vector as operand 6.
1854 * rtl.h (ASM_OPERANDS_LABEL_VEC): New.
1855 (ASM_OPERANDS_LABEL_LENGTH, ASM_OPERANDS_LABEL): New.
1856 (ASM_OPERANDS_SOURCE_LOCATION): Renumber.
1857 (extract_asm_operands): Declare.
1858 * stmt.c (expand_asm_operands): Add and use labels parameter.
1859 (check_unique_operand_names): Likewise.
1860 (resolve_asm_operand_names, resolve_operand_name_1): Likewise.
1861 (expand_asm_stmt): Handle asm labels.
1862 * tree-cfg.c (make_gimple_asm_edges): New.
1863 (make_edges): Use it.
1864 (cleanup_dead_labels): Handle asm labels.
1865 (is_ctrl_altering_stmt): Likewise.
1866 (gimple_redirect_edge_and_branch): Likewise.
1867 * tree.def (ASM_EXPR): Add 5th operand.
1868 * tree.h (ASM_LABELS): New.
1869 (resolve_asm_operand_names): Update decl.
1871 * c-parser.c (c_parser_asm_statement): Parse asm goto.
1872 (c_parser_asm_goto_operands): New.
1873 * c-tree.h (build_asm_expr): Update decl.
1874 * c-typeck.c (build_asm_expr): Add and use labels parameter.
1875 * doc/extend.texi: Document asm goto.
1877 2009-09-14 Richard Henderson <rth@redhat.com>
1879 * except.h: Update declarations.
1880 (struct pointer_map_t): Forward declare.
1881 (ERT_UNKNOWN, ERT_THROW, ERT_CATCH): Remove.
1882 (struct eh_landing_pad_d, eh_landing_pad): New.
1883 (struct eh_catch_d, eh_catch): New.
1884 (struct eh_region_d): Remove next_region_sharing_label, aka,
1885 label, tree_label, landing_pad, post_landing_pad, resume,
1886 may_contain_throw. Rename region_number to index. Remove
1887 u.eh_catch, u.eh_throw. Rename u.eh_try.eh_catch to first_catch.
1888 Add u.must_not_throw, landing_pads, exc_ptr_reg, filter_reg.
1889 (VEC(eh_landing_pad,gc)): New.
1890 (struct eh_status): Remove last_region_number. Add lp_array,
1891 throw_stmt_table, ttype_data, ehspec_data.
1892 (ehr_next, FOR_ALL_EH_REGION_AT): New.
1893 (FOR_ALL_EH_REGION_FN, FOR_ALL_EH_REGION): New.
1894 * except.c (lang_protect_cleanup_actions): Return tree.
1895 (struct ehl_map_entry): Remove.
1896 (init_eh_for_function): Push zero entries for region and lp_array.
1897 (gen_eh_region): Add to region_array immediately.
1898 (gen_eh_region_catch): Operate on eh_catch objects.
1899 (gen_eh_landing_pad): New.
1900 (get_eh_region_may_contain_throw, get_eh_region_tree_label): Remove.
1901 (get_eh_region_no_tree_label, set_eh_region_tree_label): Remove.
1902 (get_eh_region_from_number, get_eh_region_from_number_fn): New.
1903 (get_eh_landing_pad_from_number_fn): New.
1904 (get_eh_landing_pad_from_number): New.
1905 (get_eh_region_from_lp_number_fn): New.
1906 (get_eh_region_from_lp_number): New.
1907 (expand_resx_stmt, note_eh_region_may_contain_throw): Remove.
1908 (get_exception_pointer, get_exception_filter): Remove.
1909 (collect_eh_region_array, can_be_reached_by_runtime): Remove.
1910 (current_function_has_exception_handlers): Simplify.
1911 (bring_to_root, eh_region_replaceable_by_p): Remove.
1912 (replace_region, hash_type_list, hash_eh_region): Remove.
1913 (eh_regions_equal_p, merge_peers, remove_unreachable_regions): Remove.
1914 (label_to_region_map, num_eh_regions): Remove.
1915 (get_next_region_sharing_label, must_not_throw_labels): Remove.
1916 (find_exception_handler_labels): Remove.
1917 (duplicate_eh_regions_0, find_prev_try): Remove.
1918 (struct duplicate_eh_regions_data): New.
1919 (duplicate_eh_regions_1): Rewrite.
1920 (duplicate_eh_regions): Return a pointer map instead of an
1922 (copy_eh_region_1, copy_eh_region, push_reachable_handler): Remove.
1923 (redirect_eh_edge_to_label): Remove.
1924 (eh_region_outermost): Rewrite using eh_region pointers
1925 instead of integers.
1926 (add_ttypes_entry): Update for ttype_data move to eh_status.
1927 (add_ehspec_entry): Rewrite with VEC instead of varray.
1928 (assign_filter_values): Likewise. Export.
1929 (build_post_landing_pads, connect_post_landing_pads): Remove.
1930 (dw2_build_landing_pads): Rewrite to use lp_array.
1931 (struct sjlj_lp_info, sjlj_find_directly_reachable_regions): Remove.
1932 (sjlj_assign_call_site_values): Rewrite to use lp_array.
1933 (sjlj_emit_dispatch_table, sjlj_build_landing_pads): Likewise.
1934 (sjlj_mark_call_sites): Update for landing pad numbers.
1935 (finish_eh_generation): Rewrite.
1936 (gate_handle_eh): Do nothing for no eh tree.
1937 (pass_rtl_eh): Move up near finish_eh_generation.
1938 (remove_eh_landing_pad): New.
1939 (remove_eh_handler): Export.
1940 (remove_eh_region, remove_eh_handler_and_replace): Remove.
1941 (for_each_eh_label): Rewrite to use lp_array.
1942 (make_reg_eh_region_note): New.
1943 (make_reg_eh_region_note_nothrow_nononlocal): New.
1944 (insn_could_throw_p): New.
1945 (copy_reg_eh_region_note_forward): New.
1946 (copy_reg_eh_region_note_backward): New.
1947 (check_handled, add_reachable_handler): Remove.
1948 (reachable_next_level, foreach_reachable_handler): Remove.
1949 (arh_to_landing_pad, arh_to_label, reachable_handlers): Remove.
1950 (get_eh_region_and_lp_from_rtx): New.
1951 (get_eh_region_from_rtx): New.
1952 (can_throw_internal_1, can_throw_external_1): Remove.
1953 (can_throw_internal): Use get_eh_region_from_rtx.
1954 (can_throw_external): Use get_eh_region_and_lp_from_rtx.
1955 (insn_nothrow_p, can_nonlocal_goto): New.
1956 (expand_builtin_eh_common, expand_builtin_eh_pointer): New.
1957 (expand_builtin_eh_filter, expand_builtin_eh_copy_values): New.
1958 (add_action_record): Use VEC not varray.
1959 (collect_one_action_chain): Update for eh_region changes.
1960 (convert_to_eh_region_ranges): Make static. Use VEC not varray.
1961 Use get_eh_region_and_lp_from_rtx.
1962 (gate_convert_to_eh_region_ranges): New.
1963 (pass_convert_to_eh_region_ranges): Use it.
1964 (push_uleb128, push_sleb128): Use VEC not varray.
1965 (output_one_function_exception_table): Likewise.
1966 (dump_eh_tree): Update for eh_region changes.
1967 (verify_eh_tree): Likewise.
1968 (verify_eh_region, default_init_unwind_resume_libfunc): Remove.
1969 * tree-eh.c: Include target.h.
1970 (add_stmt_to_eh_lp_fn): Rename from add_stmt_to_eh_region_fn.
1971 Don't disallow GIMPLE_RESX; adjust argument check.
1972 (add_stmt_to_eh_lp): Rename from add_stmt_to_eh_region.
1973 (record_stmt_eh_region): Update for landing pad numbers;
1974 generate a landing pad if necessary.
1975 (remove_stmt_from_eh_lp): Rename from remove_stmt_from_eh_region.
1976 (remove_stmt_from_eh_lp_fn): Similarly.
1977 (lookup_stmt_eh_lp_fn): Rename from lookup_stmt_eh_region_fn.
1978 Update for lp numbers; don't special case missing throw_stmt_table.
1979 (lookup_expr_eh_lp): Similarly.
1980 (lookup_stmt_eh_lp): Rename from lookup_stmt_eh_region.
1981 (eh_seq, eh_region_may_contain_throw): New.
1982 (struct leh_state): Add ehp_region.
1983 (struct leh_tf_state): Remove eh_label.
1984 (emit_post_landing_pad): New.
1985 (emit_resx, emit_eh_dispatch): New.
1986 (note_eh_region_may_contain_throw): New.
1987 (frob_into_branch_around): Take eh_region not eh label;
1988 emit eh code into eh_seq.
1989 (honor_protect_cleanup_actions): Early exit for no actions. Don't
1990 handle EXC_PTR_EXPR, FILTER_EXPR. Use gimple_build_eh_must_not_throw,
1991 lower_eh_must_not_throw. Emit code to eh_seq.
1992 (lower_try_finally_nofallthru): Emit eh code to eh_seq.
1993 (lower_try_finally_onedest): Likewise.
1994 (lower_try_finally_copy): Likewise.
1995 (lower_try_finally_switch): Likewise.
1996 (lower_try_finally): Initialize ehp_region.
1997 (lower_catch): Update for eh_catch objects.
1998 (lower_eh_filter): Don't handle must_not_throw.
1999 (lower_eh_must_not_throw): New.
2000 (lower_cleanup): Don't set eh_label.
2001 (lower_eh_constructs_2): Resolve eh builtins.
2002 Handle GIMPLE_EH_MUST_NOT_THROW.
2003 (lower_eh_constructs): Initialize eh_region_may_contain_throw.
2004 Add eh_seq to the end of the function body.
2005 (make_eh_dispatch_edges): New.
2006 (make_eh_edge): Remove.
2007 (make_eh_edges): Simplify for landing pads.
2008 (redirect_eh_edge_1): New.
2009 (redirect_eh_edge): Use it.
2010 (redirect_eh_dispatch_edge): New.
2011 (stmt_could_throw_p): Use a switch. Allow RESX.
2012 (stmt_can_throw_external): Use lookup_stmt_eh_lp.
2013 (stmt_can_throw_internal): Likewise.
2014 (maybe_clean_eh_stmt_fn, maybe_clean_eh_stmt): New.
2015 (maybe_clean_or_replace_eh_stmt): Update for landing pads.
2016 (maybe_duplicate_eh_stmt_fn, maybe_duplicate_eh_stmt): New.
2017 (gate_refactor_eh): New.
2018 (pass_refactor_eh): Use it.
2019 (lower_resx, execute_lower_resx, pass_lower_resx): New.
2020 (lower_eh_dispatch, execute_lower_eh_dispatch): New.
2021 (gate_lower_ehcontrol, pass_lower_eh_dispatch): New.
2022 (remove_unreachable_handlers): Rename from
2023 tree_remove_unreachable_handlers; rewrite for landing pads;
2024 call remove_eh_handler directly.
2025 (remove_unreachable_handlers_no_lp): New.
2026 (unsplit_eh, unsplit_all_eh): New.
2027 (tree_empty_eh_handler_p, all_phis_safe_to_merge): Remove.
2028 (cleanup_empty_eh_merge_phis, cleanup_empty_eh_move_lp): New.
2029 (cleanup_empty_eh_unsplit): New.
2030 (cleanup_empty_eh): Rewrite.
2031 (cleanup_all_empty_eh): New.
2032 (execute_cleanup_eh): Rename from cleanup_eh. Remove unreachable
2033 handlers first. Use unsplit_all_eh, cleanup_all_empty_eh.
2034 (gate_cleanup_eh): New.
2035 (pass_cleanup_eh): Use it.
2036 (verify_eh_edges): Move later in file. Expect one EH edge.
2037 (verify_eh_dispatch_edge): New.
2039 * Makefile.in (FUNCTION_H): Use vecprim.h, not varray.h.
2040 (gtype-desc.o): Add TARGET_H.
2041 (tree.o): Use EXCEPT_H, not except.h.
2042 (cfgbuild.o): Add EXPR_H.
2043 (GTFILES): Add vecprim.h.
2044 * builtins.c (expand_builtin): Handle BUILT_IN_EH_POINTER,
2045 BUILT_IN_EH_FILTER, BUILT_IN_EH_COPY_VALUES.
2046 * builtins.def (BUILT_IN_UNWIND_RESUME, BUILT_IN_EH_POINTER,
2047 BUILT_IN_EH_FILTER, BUILT_IN_EH_COPY_VALUES): New.
2048 * calls.c (emit_call_1): Use make_reg_eh_region_note.
2049 * cfgbuild.c (control_flow_insn_p): Use can_nonlocal_goto; tidy
2050 calls to can_throw_internal.
2051 (rtl_make_eh_edge): Use get_eh_landing_pad_from_rtx.
2052 (make_edges): Don't handle RESX; use can_nonlocal_goto.
2053 * cfgexpand.c (expand_gimple_stmt_1): Don't handle RESX.
2054 (expand_gimple_stmt): Use make_reg_eh_region_note.
2055 (expand_debug_expr): Don't handle EXC_PTR_EXPR and FILTER_EXPR.
2056 (gimple_expand_cfg): Don't call convert_from_eh_region_ranges,
2057 or find_exception_handler_labels.
2058 * cfgrtl.c (rtl_verify_flow_info_1): Don't handle RESX. Assert
2059 there is exacly one EH edge. Use can_nonlocal_goto and
2061 * cgraphunit.c (update_call_expr): Use maybe_clean_eh_stmt_fn.
2062 (cgraph_materialize_all_clones): Use maybe_clean_or_replace_eh_stmt.
2063 * combine.c (can_combine_p, try_combine): Use insn_nothrow_p.
2064 * cse.c (count_reg_usage, insn_live_p): Use insn_could_throw_p.
2065 * dce.c (deletable_insn_p_1): Don't test may_trap_p.
2066 (deletable_insn_p): Use insn_nothrow_p; reorder nonjump insn test.
2067 * dse.c (scan_insn): Use insn_could_throw_p.
2068 * emit-rtl.c (try_split): Use copy_reg_eh_region_note_backward.
2069 * expr.c (expand_expr_real): Use make_reg_eh_region_note.
2070 (expand_expr_real_1): Don't handle RESX, EXC_PTR, or FILTER_EXPR.
2071 * fold-const.c (tree_expr_nonnegative_warnv_p): Don't handle
2072 EXC_PTR_EXPR or FILTER_EXPR.
2073 (tree_expr_nonzero_warnv_p): Likewise.
2074 * function.h: Include vecprim.h, not varray.h
2075 (struct rtl_eh): Remove filter, exc_ptr, built_landing_pad members;
2076 move ttype_data and ehspec_data members to struct eh_status; change
2077 action_record_data member to a VEC.
2078 * gcse.c (hash_scan_set): Use can_throw_internal.
2079 * gengtype.c (open_base_files): Add target.h to gtype-desc.c.
2080 * gimple-iterator.c (gsi_replace): Use maybe_clean_or_replace_eh_stmt.
2081 * gimple-low.c (lower_stmt): Handle GIMPLE_EH_MUST_NOT_THROW.
2082 (block_may_fallthru): Don't handle RESX_EXPR.
2083 * gimple-pretty-print.c (dump_gimple_label): Dump EH_LANDING_PAD_NR.
2084 (dump_gimple_eh_must_not_throw, dump_gimple_eh_dispatch): New.
2085 (dump_gimple_stmt): Dump landing pad information with TDF_EH;
2086 handle GIMPLE_EH_MUST_NOT_THROW, GIMPLE_EH_DISPATCH.
2087 * gimple.c (gss_for_code): Handle GIMPLE_EH_MUST_NOT_THROW,
2088 GIMPLE_EH_DISPATCH, GIMPLE_RESX.
2089 (gimple_size): Likewise.
2090 (gimple_build_eh_dispatch, gimple_build_eh_must_not_throw): New.
2091 (gimple_build_resx): Use gimple_build_with_ops.
2092 (DEFTREECODE): Don't handle EXC_PTR_EXPR, FILTER_EXPR.
2093 (is_gimple_val): Likewise.
2094 (is_gimple_stmt): Remove RESX_EXPR.
2095 * gimple.def (GIMPLE_EH_MUST_NOT_THROW, GIMPLE_EH_DISPATCH): New.
2096 (GIMPLE_RESX): Reorder with other EH constructs.
2097 * gimple.h (struct gimple_statement_eh_mnt): New.
2098 (struct gimple_statement_eh_ctrl): Rename from gimple_statement_resx.
2099 (gimple_eh_filter_must_not_throw): Remove.
2100 (gimple_eh_filter_set_must_not_throw): Remove.
2101 (gimple_eh_must_not_throw_fndecl): New.
2102 (gimple_eh_dispatch_region, gimple_eh_dispatch_set_region): New.
2103 (is_gimple_resx): New.
2104 * gimplify.c (gimplify_expr): Don't handle EXC_PTR_EXPR, RESX_EXPR.
2105 Don't copy EH_FILTER_MUST_NOT_THROW.
2106 * gsstruct.def (GSS_EH_MNT, GSS_EHCONTROL): New.
2107 * ipa-inline.c (estimate_function_body_sizes): Don't try to
2108 handle must_not_throw_labels specially.
2109 * ipa-pure-const.c (check_call): Update debug statement for LP.
2110 * ipa-type-escape.c (check_operand): Don't handle EXC_PTR or FILTER.
2111 * ipa-utils.c (get_base_var): Likewise.
2112 * libfunc.h (LTI_unwind_resume, unwind_resume_libfunc): Remove.
2113 * lower-subreg.c (move_eh_region_note): Remove.
2114 (resolve_simple_move): Use copy_reg_eh_region_note_forward.
2115 * omp-low.c (new_omp_context): Update for eh_lp_nr.
2116 (create_task_copyfn): Likewise.
2117 (maybe_catch_exception): Use gimple_build_eh_filter.
2118 * optabs.c (emit_libcall_block): Update test for no-nonlocal-goto
2119 REG_EH_REGION. Use make_reg_eh_region_note_nothrow_nononlocal.
2120 * passes.c (init_optimization_passes): Add pass_lower_eh_dispatch
2121 and pass_lower_resx.
2122 * print-tree.c (print_node): Dump EH_LANDING_PAD_NR.
2123 * recog.c (peephole2_optimize): Use copy_reg_eh_region_note_backward,
2124 can_throw_internal, can_nonlocal_goto.
2125 * reload1.c (fixup_eh_region_note): Use insn_could_throw_p,
2126 copy_reg_eh_region_note_forward.
2127 (emit_input_reload_insns): Use copy_reg_eh_region_note_forward.
2128 (emit_output_reload_insns): Likewise.
2129 (copy_eh_notes): Remove.
2130 * rtl.def (RESX): Remove.
2131 * rtl.h: Update declarations.
2132 * sese.c (graphite_copy_stmts_from_block): Use maybe_duplicate_eh_stmt.
2133 * tree-cfg.c (make_edges): Handle GIMPLE_EH_DISPATCH.
2134 (update_eh_label): Remove.
2135 (cleanup_dead_labels_eh): New.
2136 (cleanup_deal_labels): Use it instead of update_eh_label.
2137 (gimple_merge_blocks): Update landing pad data structure when
2138 removing a landing pad label.
2139 (remove_useless_stmts_tc): Remove gimple_eh_filter_must_not_throw
2140 test; handle GIMPLE_EH_MUST_NOT_THROW.
2141 (is_ctrl_altering_stmt): Handle GIMPLE_EH_DISPATCH.
2142 (verify_gimple_assign_single): Don't handle EXC_PTR or FILTER_EXPR.
2143 (verify_types_in_gimple_stmt): Handle GIMPLE_EH_DISPATCH.
2144 (verify_stmt): Likewise. Verify landing pads.
2145 (gimple_redirect_edge_and_branch): Handle GIMPLE_EH_DISPATCH.
2146 (gimple_duplicate_bb): Use maybe_duplicate_eh_stmt.
2147 (struct move_stmt_d): Add eh_map.
2148 (move_stmt_eh_region_nr, move_stmt_eh_region_tree_nr): New.
2149 (move_stmt_r): Remap eh region numbers in builtin calls,
2150 resx and eh_dispatch.
2151 (move_block_to_fn): Remove eh_offset parameter. Use
2152 maybe_duplicate_eh_stmt_fn.
2153 (find_outermost_region_in_block): Operate on eh_region pointers
2154 instead of region numbers.
2155 (move_sese_region_to_fn): Expect eh_map instead of eh_offset from
2156 duplicate_eh_regions.
2157 * tree-cfgcleanup.c (tree_forwarder_block_p): Move entry block edge
2158 test earlier. Disallow EH landing pads.
2159 * tree-cfa.c (create_tree_common_ann): Don't set ann->rn.
2160 * tree-flow.h: Update declarations.
2161 (struct tree_ann_common_d): Replace rn with lp_nr.
2162 * tree-inline.c (copy_tree_body_r): Don't handle RESX_EXPR.
2163 (remap_eh_region_nr, remap_eh_region_tree_nr): New.
2164 (remap_gimple_stmt): Remap eh region numbers in builtin calls,
2165 resx and eh_dispatch.
2166 (copy_bb): Use maybe_duplicate_eh_stmt_fn.
2167 (copy_edges_for_bb): Use make_eh_dispatch_edges.
2168 (copy_cfg_body): Expect eh_map instead of eh_region_offset
2169 from duplicate_eh_regions.
2170 (estimate_num_insns): Don't handle EXC_PTR_EXPR or FILTER_EXPR;
2171 update RESX; handle EH_DISPATCH.
2172 (expand_call_inline): Set eh_lp_nr, not eh_region.
2173 (maybe_inline_call_in_expr): Likewise.
2174 * tree-inline.h (struct copy_body_data): Replace eh_region with
2175 eh_lp_nr, eh_region_offset with eh_map.
2176 * tree-optimize.c (execute_fixup_cfg): Use maybe_clean_eh_stmt.
2177 * tree-pass.h (pass_lower_eh_dispatch, pass_lower_resx): New.
2178 * tree-pretty-print.c (dump_generic_node): Don't handle
2179 EXC_PTR_EXPR, FILTER_EXPR, RESX_EXPR.
2180 * tree-sra.c (scan_function): Use maybe_clean_eh_stmt.
2181 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Don't handle
2182 EXC_PTR_EXPR, FILTER_EXPR.
2183 * tree-ssa-operands.c (get_expr_operands): Likewise.
2184 * tree-ssa-propagate.c (valid_gimple_rhs_p): Likewise.
2185 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
2186 (ao_ref_init_from_vn_reference): Likewise.
2187 * tree-ssa-sink.c (statement_sink_location): Likewise.
2188 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
2189 (mark_virtual_phi_result_for_renaming): Export. Tidy.
2190 * tree-ssa-pre.c (get_or_alloc_expr_for): Don't handle
2191 EXC_PTR_EXPR, FILTER_EXPR.
2192 (is_exception_related): Remove.
2193 (compute_avail): Don't call it.
2194 * tree-ssa-structalias.c: Remove VEC definitions for int and unsigned.
2195 * tree.c (find_decls_types_in_eh_region): Update for eh_region changes.
2196 (find_decls_types_in_node): Use FOR_ALL_EH_REGION_FN.
2197 (build_common_builtin_nodes): Add enable_cxa_end_cleanup parameter.
2199 (build_resx): Remove.
2200 * tree.def (EXC_PTR_EXPR, FILTER_EXPR, RESX_EXPR): Remove.
2201 * tree.h: Update declarations.
2202 (EH_FILTER_MUST_NOT_THROW): Remove.
2203 (struct tree_label_decl): Add eh_landing_pad_nr.
2204 (EH_LANDING_PAD_NR): New.
2205 * value-prof.c (gimple_ic): Tidy variable names. Update for
2206 landing pad numbers.
2207 (gimple_stringop_fixed_value): Tidy variable names. Assert
2208 that neither call stmt can throw.
2209 * vecprim.h (uchar): New.
2210 (VEC(uchar,heap), VEC(uchar,gc)): New.
2212 * c-common.c (c_define_builtins): Update call to
2213 build_common_builtin_nodes.
2214 * c-parser.c (c_parse_file): Don't call
2215 default_init_unwind_resume_libfunc.
2217 2009-09-14 Richard Sandiford <rdsandiford@googlemail.com>
2219 * config/mips/mips-protos.h (mips_cfun_has_cprestore_slot_p): Declare.
2220 (mips_cprestore_address_p): Likewise.
2221 (mips_save_gp_to_cprestore_slot): Likewise.
2222 (mips_restore_gp): Rename to...
2223 (mips_restore_gp_from_cprestore_slot): ...this.
2224 (mips_must_initialize_gp_p): Declare.
2225 (mips_emit_save_slot_move): Likewise.
2226 (mips_output_load_label): Return nothing.
2227 (mips_eh_uses): Declare.
2228 * config/mips/mips.h (TARGET_SPLIT_CALLS): Require epilogue_completed.
2229 (TARGET_CPRESTORE_DIRECTIVE): New macro.
2230 (TARGET_ABSOLUTE_JUMPS): Likewise.
2231 (EH_USES): Likewise.
2232 (FIRST_PSEUDO_REGISTER): Update comment.
2233 (MIPS_ABSOLUTE_JUMP): New macro, extracted from...
2234 (MIPS_CALL): ...here.
2235 (REGISTER_NAMES): Add $cprestore.
2236 * config/mips/mips.c (machine_function): Remove has_gp_insn_p.
2237 Add load_label_length, has_inflexible_gp_insn_p,
2238 has_flexible_gp_insn_p, must_initialize_gp_p and
2239 must_restore_gp_when_clobbered_p.
2240 (mips_expand_call): Don't generate split instructions here.
2241 (mips_split_call): Update the call to mips_restore_gp after
2242 the above name change.
2243 (mips16_cfun_returns_in_fpr_p): Move earlier in file.
2244 (mips_find_gp_ref): New function.
2245 (mips_insn_has_inflexible_gp_ref_p): Likewise.
2246 (mips_cfun_has_inflexible_gp_ref_p): Likewise.
2247 (mips_insn_has_flexible_gp_ref_p): Likewise.
2248 (mips_cfun_has_flexible_gp_ref_p): Likewise.
2249 (mips_function_has_gp_insn): Delete.
2250 (mips_global_pointer): Drop the df_regs_ever_live_p check.
2251 Use the new functions above. Only return INVALID_REGNUM
2252 for TARGET_ABSOLUTE_JUMPS.
2253 (mips_must_initialize_gp_p): New function.
2254 (mips_get_cprestore_base_and_offset): New function, extracted from...
2255 (mips_cprestore_slot): ...here. Take a bool parameter.
2256 (mips_cfun_has_cprestore_slot_p): New function.
2257 (mips_cprestore_address_p): Likewise.
2258 (mips_save_gp_to_cprestore_slot): Likewise.
2259 (mips_restore_gp): Rename to...
2260 (mips_restore_gp_from_cprestore_slot): ...this. Assert
2261 epilogue_completed. Update the call to mips_cprestore_slot.
2262 Test cfun->machine->must_restore_gp_when_clobbered_p.
2263 (mips_direct_save_slot_move_p): New function.
2264 (mips_emit_save_slot_move): Likewise.
2265 (mips_output_cplocal): Test mips_must_initialize_gp_p () instead
2266 of cfun->machine->global_pointer.
2267 (mips_output_function_prologue): Check mips_must_initialize_gp_p ().
2268 (mips_save_reg): Use mips_emit_save_slot_move.
2269 (mips_expand_prologue): Set must_initialize_gp_p.
2270 Use mips_cfun_has_cprestore_slot_p. Use gen_potential_cprestore
2271 for all cprestore saves. Emit a use_cprestore instruction after
2272 setting up the cprestore slot.
2273 (mips_restore_reg): Use mips_emit_save_slot_move.
2274 (mips_process_load_label): New function.
2275 (mips_load_label_length): Likewise.
2276 (mips_output_load_label): Don't return asm: output it here instead.
2277 Use mips_process_load_label.
2278 (mips_adjust_insn_length): Adjust the length of branch instructions
2279 that have length MAX_PIC_BRANCH_LENGTH.
2280 (mips_output_conditional_branch): Update the call to
2281 mips_output_load_label. Assume the branch target is OPERANDS[0]
2282 rather than OPERANDS[1]. Use MIPS_ABSOLUTE_JUMP for absolute jumps.
2283 (mips_output_order_conditional_branch): Swap the meaning of
2284 OPERANDS[0] and OPERANDS[1].
2285 (mips_variable_issue): Don't count ghost instructions.
2286 (mips_expand_ghost_gp_insns): New function.
2287 (mips_reorg): Rerun mips_reorg_process_insns if it returns true.
2288 (mips_output_mi_thunk): Set must_initialize_gp_p.
2289 (mips_eh_uses): New function.
2290 * config/mips/predicates.md (cprestore_save_slot_operand)
2291 (cprestore_load_slot_operand): New predicates.
2292 * config/mips/mips.md (UNSPEC_POTENTIAL_CPRESTORE): New unspec.
2293 (UNSPEC_MOVE_GP): Likewise.
2294 (UNSPEC_CPRESTORE, UNSPEC_RESTORE_GP, UNSPEC_EH_RETURN)
2295 (UNSPEC_CONSTTABLE_INT, UNSPEC_CONSTTABLE_FLOAT): Bump to make room.
2296 (CPRESTORE_SLOT_REGNUM): New register.
2297 (MAX_PIC_BRANCH_LENGTH): New constant.
2298 (jal_macro): Use MIPS_ABSOLUTE_JUMPS.
2299 (length): Use MAX_PIC_BRANCH_LENGTH as a placeholder for PIC long
2300 branches. Fix commentary.
2301 (loadgp_newabi_<mode>): Change from unspec_volatile to unspec.
2302 Only split if mips_must_initialize_gp_p; expand to nothing otherwise.
2303 Change type to "ghost".
2304 (loadgp_absolute_<mode>): Likewise.
2305 (loadgp_rtp_<mode>): Likewise.
2306 (copygp_mips16): Likewise.
2307 (loadgp_blockage): Remove redundant mode attribute.
2308 (potential_cprestore): New instruction.
2309 (cprestore): Turn into an unspec set.
2310 (use_cprestore): New instruction.
2311 (*branch_fp): Swap operands 0 and 1. Remove redundant mode attribute.
2312 (*branch_fp_inverted): Likewise.
2313 (*branch_order<mode>): Likewise.
2314 (*branch_order<mode>_inverted): Likewise.
2315 (*branch_equality<mode>): Likewise.
2316 (*branch_equality<mode>_inverted): Likewise.
2317 (*branch_bit<bbv><mode>): Likewise.
2318 (*branch_bit<bbv><mode>_inverted): Likewise.
2319 (*branch_equality<mode>_mips16): Remove redundant mode.
2320 (jump): Turn into a define_expand.
2321 (*jump_absolute): New instruction.
2322 (*jump_pic): Likewise.
2323 (*jump_mips16): Rename previously-unnamed pattern. Remove
2324 redundant mode attribute.
2325 (restore_gp): Split on epilogue_completed rather than
2326 reload_completed. Change type to "ghost".
2327 (move_gp<mode>): New instruction.
2328 * config/mips/mips-dsp.md (mips_bposge): Swap operands 0 and 1.
2329 Remove redundant mode attribute.
2330 * config/mips/mips-ps-3d.md (bc1any4t): Likewise.
2331 (bc1any4f, bc1any2t, bc1any2f): Likewise.
2332 (*branch_upper_lower, *branch_upper_lower_inverted): Likewise.
2334 2009-09-14 Michael Meissner <meissner@linux.vnet.ibm.com>
2337 * config/rs6000/rs6000.c (rs6000_function_value): V2DF and V2DI
2338 are returned in the same register (vs34 or v2) that Altivec vector
2339 types are returned in.
2340 (rs6000_libcall_value): Ditto.
2343 * config/rs6000/rs6000.c (rs6000_emit_move): Use gen_add3_insn
2344 instead of explicit addsi3/adddi3 calls.
2345 (rs6000_split_multireg_move): Ditto.
2346 (rs6000_emit_allocate_stack): Ditto.
2347 (rs6000_emit_prologue): Ditto.
2348 (rs6000_output_mi_thunk): Ditto.
2350 * config/rs6000/rs6000.md (bswapdi*): Don't assume the pointer
2351 size is 64 bits if we can use 64-bit registers.
2353 2009-09-14 Bernd Schmidt <bernd.schmidt@analog.com>
2355 * config/bfin/bfin.c (bfin_longcall_p): Don't use short calls for weak
2358 From Jie Zhang <jie.zhang@analog.com>:
2359 * config/bfin/bfin.c (bfin_expand_prologue): Ask do_link to
2360 save FP and RETS with saveall attribute.
2361 (bfin_expand_epilogue): Ask do_unlink to restore FP and RETS
2362 with saveall attribute.
2364 * config/bfin/bfin.c (bfin_expand_builtin,
2365 case BFIN_BUILTIN_MULT_1X32X32): Force constants to registers for the
2368 From Jie Zhang <jie.zhang@analog.com>:
2369 * config/bfin/bfin.c (bfin_expand_builtin): Initialize icodes
2370 before use in two places.
2371 * config/bfin/bfin.md (AREG): Define mode iterator.
2372 (reload_in, reload_out): Use mode iterator AREG.
2374 2009-09-14 Richard Guenther <rguenther@suse.de>
2377 * dwarf2out.c (dwarf2out_begin_prologue): Adjust non-CFI asm
2378 EH personality path.
2380 2009-09-13 Richard Guenther <rguenther@suse.de>
2381 Rafael Avila de Espindola <espindola@google.com>
2383 * langhooks-def.h (LANG_HOOKS_EH_RUNTIME_TYPE): Define.
2384 (LANG_HOOKS_EH_PERSONALITY): Likewise.
2385 (LANG_HOOKS_INITIALIZER): Adjust.
2386 (lhd_pass_through_t): Declare.
2387 * langhooks.h (struct lang_hooks): Add eh_runtime_type and
2389 * langhooks.c (lhd_pass_through_t): New function.
2390 * dwarf2out.c (output_call_frame_info, dwarf2out_do_cfi_startproc,
2391 dwarf2out_begin_prologue): Use personality from current_function_decl.
2392 * expr.h (get_personality_function): Declare.
2393 * expr.c (get_personality_function): New function.
2394 (build_personality_function): Likewise.
2395 * libfuncs.h (libfunc_index): Remove LTI_eh_personality.
2396 (eh_personality_libfunc): Remove.
2397 * optabs.c (build_libfunc_function): New function split out from ...
2398 (init_one_libfunc): ... here.
2399 * tree.h (DECL_FUNCTION_PERSONALITY): New.
2400 (tree_function_decl): Add personality.
2401 (lhd_gcc_personality): Declare.
2402 (build_personality_function): Likewise.
2403 * tree.c (gcc_eh_personality_decl): New.
2404 (lhd_gcc_personality): New function.
2405 * except.h (lang_eh_runtime_type): Remove.
2406 (enum eh_personality_kind): New.
2407 (build_personality_function): Declare.
2408 (function_needs_eh_personality): Declare.
2409 * except.c (lang_eh_runtime_type): Remove.
2410 (function_needs_eh_personality): New function.
2411 (add_type_for_runtime): Call lang_hooks.type_for_runtime instead.
2412 (sjlj_emit_function_enter, output_function_exception_table):
2413 Use personality from current_function_decl.
2414 * tree-eh.c (lower_eh_constructs): Set DECL_FUNCTION_PERSONALITY.
2415 * tree-inline.c (tree_can_inline_p): Do not inline across different
2417 (expand_call_inline): Likewise. Adjust the callers EH personality.
2418 (tree_function_versioning): Copy DECL_FUNCTION_PERSONALITY.
2419 * cgraph.c (cgraph_add_new_function): Set DECL_FUNCTION_PERSONALITY.
2420 * Makefile.in (cgraph.o): Add $(EXCEPT_H) dependency.
2421 (c-parser.o): Likewise
2422 * c-tree.h (c_eh_initialized_p): Remove.
2423 (c_maybe_initialize_eh): Likewise.
2424 * c-decl.c (finish_decl): Don't call c_maybe_initialize_eh.
2425 (finish_decl): Don't call c_maybe_initialize_eh.
2426 (c_eh_initialized_p): Remove.
2427 (c_maybe_initialize_eh): Likewise.
2428 * c-parser.c (c_parser_omp_construct): Likewise.
2429 (c_parse_file): Initialize exception handling.
2431 2009-09-13 Kai Tietz <kai.tietz@onevision.com>
2433 * config.gcc (tm_file): Remove i386/biarch32.h
2434 for i?86-w64-mingw* case.
2435 (i?86-*-mingw* andx86_64-*-mingw*): Add multilib
2437 * config.host: Set for x64 mingw the option
2438 use_long_long_for_widest_fast_int to yes.
2440 2009-09-13 Eric Botcazou <ebotcazou@adacore.com>
2442 * tree.h (DECL_IGNORED_P): Document further effect for FUNCTION_DECL.
2443 * dbxout.c (dbxout_function_end): Do not test DECL_IGNORED_P.
2444 (dbxout_begin_function): Likewise.
2445 * final.c (dwarf2_debug_info_emitted_p): New predicate.
2446 (final_start_function): Do not emit debug info if DECL_IGNORED_P is
2447 set on the function.
2448 (final_end_function): Likewise.
2449 (final_scan_insn): Likewise.
2450 (rest_of_handle_final): Likewise.
2451 * varasm.c (assemble_start_function): Likewise.
2452 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
2454 2009-09-12 Jason Merrill <jason@redhat.com>
2456 * dbgcnt.c (dbg_cnt_process_single_pair): constify.
2457 * opts.c (common_handle_option): constify.
2459 2009-09-12 Gerald Pfeifer <gerald@pfeifer.com>
2461 * doc/install.texi (avr): Remove obsolete reference site.
2463 2009-09-12 Gerald Pfeifer <gerald@pfeifer.com>
2465 * doc/install.texi (Binaries): Adjust AIX link.
2467 2009-09-12 Akim Demaille <demaille@gostai.com>
2469 * doc/invoke.texi (-fstrict-aliasing): Correct two examples.
2470 Use an imperative sentence.
2472 2009-09-11 Richard Henderson <rth@redhat.com>
2474 * gsstruct.def (DEFGSSTRUCT): Remove printable-name argument; add
2475 structure-name and has-tree-operands arguments; update all entries.
2476 * gimple.def (DEFGSCODE): Replace 3rd argument with GSS_symbol;
2478 * gimple.c (gimple_ops_offset_): Use HAS_TREE_OP argument.
2479 (gsstruct_code_size): New.
2480 (gss_for_code_): New.
2481 (gss_for_code): Remove.
2482 (gimple_size): Rewrite using gsstruct_code_size.
2483 (gimple_statement_structure): Move to gimple.h.
2484 * gimple.h (gimple_ops_offset_, gss_for_code_): Declare.
2485 (gss_for_code, gimple_statement_structure): New.
2486 (gimple_ops): Use new arrays; tidy.
2488 2009-09-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2490 * config/pa/predicates.md (symbolic_operand): Require a CONST symbolic
2491 operand to be a PLUS expression.
2492 * config/pa/pa.c (pa_secondary_reload): Likewise.
2494 2009-09-11 Jakub Jelinek <jakub@redhat.com>
2496 * combine.c (propagate_for_debug_subst): Call wrap_constant on top.
2498 * print-rtl.c (print_rtx): Use JUMP_LABEL (in_rtx) instead of
2501 2009-09-11 Bernd Schmidt <bernd.schmidt@analog.com>
2503 From Jie Zhang <jie.zhang@analog.com>:
2504 * doc/extend.texi (node Function Attributes): Document l2
2506 (node Blackfin Variable Attributes): Document l2 variable attributes.
2508 2009-09-11 Loren J. Rittle <ljrittle@acm.org>
2510 * config.gcc (*-*-freebsd*): Enable default_use_cxa_atexit
2511 to match the system compiler's configuration at inflection point.
2512 Add comment to remark a remaining difference with system compiler.
2514 * configure.ac (*-*-freebsd*): Enable check for __stack_chk_fail.
2515 * configure: Regenerate.
2517 2009-09-11 Bernd Schmidt <bernd.schmidt@analog.com>
2519 From Jie Zhang <jie.zhang@analog.com>:
2520 * config/bfin/bfin.c (bfin_expand_call): Handle L2 functions.
2521 (bfin_handle_l2_attribute): New.
2522 (bfin_attribute_table): Add l2 attribute.
2524 2009-09-11 Michael Matz <matz@suse.de>
2527 * tree-inline.c (remap_decls): Don't put DECL_EXTERNAL decls
2528 on the local_decls list.
2530 2009-09-11 Alexandre Oliva <aoliva@redhat.com>
2534 * cselib.c (cselib_expand_value_rtx_cb): Document callback
2536 (cselib_expand_value_rtx_1): Use callback for SUBREGs. Adjust
2537 for VALUEs, to implement the documented interface.
2538 * var-tracking.c (vt_expand_loc_callback): Handle SUBREGs.
2539 Adjust for VALUEs and anything else, to implement the
2540 documented interface.
2542 2009-09-10 Nathan Froyd <froydnj@codesourcery.com>
2544 * config/rs6000/rs6000.h (DATA_ALIGNMENT): Check that we are dealing
2545 with actual SPE/paired vector modes before using 64-bit alignment.
2546 Check that TYPE is a REAL_TYPE for TARGET_E500_DOUBLE.
2548 2009-09-10 DJ Delorie <dj@redhat.com>
2550 * config/mep/mep.md (eh_epilogue): Defer until after epilogue is
2553 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): New.
2554 * config/mep/mep.c (mep_legitimate_constant_p): New.
2555 * config/mep/mep-protos.h: Prototype it.
2557 2009-09-10 Richard Henderson <rth@redhat.com>
2559 * print-rtl.c (print_rtx): Fix JUMP_LABEL index.
2561 2009-09-10 Jason Merrill <jason@redhat.com>
2563 * tree.c (chain_index): New fn.
2564 * tree.h: Declare it.
2566 2009-09-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2568 * config/sol2-c.c (cmn_err_length_specs): Initialize
2569 scalar_identity_flag.
2571 2009-09-10 Richard Henderson <rth@redhat.com>
2573 * tree.h (struct tree_decl_common): Move align member earlier;
2574 move label_decl_uid member ...
2575 (struct tree_label_decl): ... here.
2576 (LABEL_DECL_UID): Update to match.
2578 * tree-cfg.c (dump_function_to_file): Dump eh tree with TDF_EH,
2581 * tree-cfg.c (gimple_redirect_edge_and_branch): Do
2582 gimple_try_redirect_by_replacing_jump test after no-op and EH tests.
2584 * tree-cfg.c (split_edge_bb_loc): Don't disallow placement at
2585 dest_prev if the edge is complex.
2587 * tree-cfg.c (is_ctrl_stmt): Use a switch.
2589 * tree-cfg.c (gimple_can_merge_blocks_p): Move label and
2590 loop latch tests earlier.
2592 * gimple-iterator.c (gimple_find_edge_insert_loc): Insert
2593 before GIMPLE_RETURN, not after its predecessor; insert
2596 * gimple-iterator.c (gimple_find_edge_insert_loc): Use
2597 gimple_seq_empty_p to test for no PHI nodes.
2598 * tree-cfg.c (split_critical_edges): Likewise.
2600 * c-common.h (c_dialect_cxx, c_dialect_objc): Boolify.
2602 2009-09-10 Hariharan Sandanagobalane <hariharan@picochip.com>
2604 * final.c (shorten_branches) : Ignore DEBUG_INSN_P instructions
2605 introduced by the VTA branch merge.
2607 2009-09-10 Uros Bizjak <ubizjak@gmail.com>
2609 * ira-conflicts.c: Use fputs or putc instead of fprintf
2613 * tree-switch-conversion.c: Ditto.
2615 2009-09-10 Hariharan Sandanagobalane <hariharan@picochip.com>
2617 * config/picochip/picochip.c : Ignore DEBUG_INSN_P instructions
2618 introduced by the VTA branch merge.
2620 2009-09-10 Uros Bizjak <ubizjak@gmail.com>
2623 2009-09-09 Uros Bizjak <ubizjak@gmail.com>
2625 PR rtl-optimization/39779
2626 * expr.c (convert_modes): Return when mode == oldmode after
2627 CONST_INTs are processed.
2629 2009-09-10 Nick Clifton <nickc@redhat.com>
2631 * config/mep/mep.c (mep_encode_section_info): Copy weakness
2632 attribute and referring decl when creating renamed symbol.
2634 2009-09-10 Richard Guenther <rguenther@suse.de>
2637 * cgraphunit.c (cgraph_emit_thunks): Emit thunks only for
2639 (cgraph_finalize_compilation_unit): Compute reachability
2640 before emitting thunks. Properly process aliases before
2641 possibly removing unreachable nodes.
2643 2009-09-10 Richard Guenther <rguenther@suse.de>
2646 * tree.c (struct free_lang_data_d): Add worklist member.
2647 (find_decls_types_r): Push onto the worklist instead of recursing.
2648 Handle TREE_BINFOs properly.
2649 (find_decls_types): New function wrapped around find_decls_types_r
2650 to process the worklist.
2651 (find_decls_types_in_eh_region): Use it.
2652 (find_decls_types_in_node): Likewise.
2653 (find_decls_types_in_var): Likewise.
2654 (free_lang_data_in_cgraph): Likewise. Free the worklist.
2655 * tree.h (RECORD_OR_UNION_TYPE_P): New.
2656 (AGGREGATE_TYPE_P): Adjust.
2658 2009-09-09 Jason Merrill <jason@redhat.com>
2660 * configure.ac: Check glibc version even if we have an in-tree
2663 2009-09-09 Anthony Green <green@moxielogic.com>
2665 * config/moxie/moxie.md (*movsi, *movhi, *movqi): Use xor to load
2666 the constant 0 when appropriate.
2667 * config/moxie/constraints.md: Add constraint O.
2669 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Adjust
2670 to pass up to 6 32-bit argument values in registers.
2671 (moxie_function_arg): Ditto.
2672 (moxie_arg_partial_bytes): Ditto.
2673 * config/moxie/moxie.h (FUNCTION_ARG_ADVANCE): Ditto.
2674 (REG_PARM_STACK_SPACE): Ditto.
2675 (FUNCTION_ARG_REGNO_P): Ditto.
2677 * config/moxie/moxie.c (moxie_expand_prologue): Use dec
2678 instruction to allocate stack space.
2680 2009-09-09 Segher Boessenkool <segher@kernel.crashing.org>
2682 * config/rs6000/rs6000.md (bswapdi2_64bit): Fix
2683 unnecessarily stringent constraints. Fix address
2684 calculation in the splitters.
2686 2009-09-09 Uros Bizjak <ubizjak@gmail.com>
2688 PR rtl-optimization/39779
2689 * expr.c (convert_modes): Return when mode == oldmode after
2690 CONST_INTs are processed.
2692 2009-09-09 Kai Tietz <kai.tietz@onevision.com>
2695 * config/i386.c (ix86_can_use_return_insn_p): Check for padding0, too.
2696 (ix86_expand_prologue): Take frame.padding0 into logic of
2698 (ix86_expand_epilogue): Likewise.
2700 2009-09-09 Jakub Jelinek <jakub@redhat.com>
2702 * config/t-slibgcc-elf-ver (SHLIB_MAKE_SOLINK, SHLIB_INSTALL_SOLINK):
2704 (SHLIB_LINK, SHLIB_INSTALL): Use them.
2705 * config/t-slibgcc-libgcc: New file.
2706 * config.gcc (powerpc*-*-linux*, powerpc*-*-gnu*): Use it.
2708 2009-09-09 Martin Jambor <mjambor@suse.cz>
2710 PR tree-optimization/41089
2711 * tree-sra.c (find_var_candidates): Do not consider va_lists in
2714 2009-09-09 Richard Henderson <rth@redhat.com>
2716 * gimple.h (CASE_GIMPLE_OMP): New.
2717 (is_gimple_omp): Use it.
2718 * tree-cfg.c (is_ctrl_altering_stmt): Likewise.
2719 (verify_gimple_debug): Likewise.
2721 2009-09-09 Richard Guenther <rguenther@suse.de>
2723 PR tree-optimization/41101
2724 * tree-ssa-pre.c (maximal_set): Remove.
2725 (compute_antic_aux): Treat the maximal set as implicitly all ones.
2726 Defer all blocks we didn't visit at least one successor.
2727 (add_to_exp_gen): Do not add to the maximal set.
2728 (make_values_for_phi): Likewise.
2729 (compute_avail): Likewise.
2730 (init_pre): Do not allocate the maximal set.
2731 (execute_pre): Do not dump it.
2733 2009-09-09 Martin Jambor <mjambor@suse.cz>
2735 * tree-cfg.c (verify_gimple_phi): Check that gimple_phi_result is
2736 an SSA_NAME rather than a is_gimple_variable.
2738 2009-09-09 Richard Guenther <rguenther@suse.de>
2741 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Remove
2742 code dealing with plain pointer bases.
2743 (maybe_fold_offset_to_reference): Likewise.
2744 (maybe_fold_stmt_addition): Adjust.
2746 2009-09-09 Richard Guenther <rguenther@suse.de>
2748 * tree.c (free_lang_data_in_type): Do not free the type variant
2750 (free_lang_data): Merge char_type_node with its properly signed
2752 (pass_ipa_free): Collect after freeing language specific data.
2754 2009-09-09 Michael Matz <matz@suse.de>
2757 * cfgexpand.c (expand_gimple_stmt_1): Use an int for storing
2758 SUBREG_PROMOTED_UNSIGNED_P, instead of a bool.
2759 * rtl.h (struct rtx, SUBREG_PROMOTED_UNSIGNED_P): Update comments
2762 2009-09-08 DJ Delorie <dj@redhat.com>
2764 * config/mep/mep.c (conversions[]): Add "ml" pattern.
2766 2009-09-04 Jason Merrill <jason@redhat.com>
2768 * tree.c (tree_find_value): Remove.
2769 * tree.h: Remove prototype.
2770 * varasm.c (assemble_external): Use value_member instead.
2772 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
2774 * toplev.c (process_options): Choose default debugging type when
2775 gtoggle enables debug info and type is unset.
2777 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
2781 * cselib.c (cselib_expand_value_rtx_1): Don't return copy of
2784 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
2786 * configure: Rebuilt with modified libtool.m4.
2788 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
2793 * tree-ssa.c (execute_update_addresses_taken): Update debug insns.
2795 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
2797 * tree-ssa-loop-ivopts.c (get_phi_with_result): Remove.
2798 (remove_statement): Likewise.
2799 (rewrite_use_nonlinear_expr): Adjust.
2800 (remove_unused_ivs): Collect SSA NAMEs to remove and call...
2801 * tree-ssa.c (release_defs_bitset): ... this. New.
2802 * tree-flow.h (release_defs_bitset): Declare.
2804 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
2807 * tree-ssa-phiopt.c (minmax_replacement): Skip debug stmts
2808 in the middle block.
2810 2009-09-08 Kai Tietz <kai.tietz@onevision.com>
2812 * tree-ssa-reassoc.c (find_operand_rank): Cast pointer
2813 via intptr_t to long type.
2814 (insert_operand_rank): Cast long type via intptr_t to
2816 * genattrtab.c (RTL_HASH): Use intptr_t to cast from
2818 * c-pretty-print.c (pp_c_tree_decl_identifier): Cast
2819 from pointer to unsigned via uintptr_t.
2821 * configure.ac (GCC_STDINT_TYPES): Initialize intptr_t,
2822 uintptr_t, HAVE_INTTYPES_H, HAVE_STDINT_H, HAVE_UINTPTR_T,
2824 * configure: Regenerated.
2825 * config.in: Regenerated
2826 * system.h (stdint.h): Add include.
2827 (inttypes.h): Likewise.
2828 * Makefile.in (aclocal): Add config/stdint.m4.
2829 * aclocal.m4: Regenerated.
2831 2009-09-08 Bernd Schmidt <bernd.schmidt@analog.com>
2833 * config/bfin/bfin.c (np_check_regno, np_after_branch): New static
2835 (note_np_check_stores): New function.
2836 (harmless_null_pointer_p): New function.
2837 (trapping_loads_p): New args NP_REG and AFTER_NP_BRANCH. Callers
2838 changed. Take into account whether we're in the shadow of a condjump
2839 that tested NP_REG for NULL.
2840 Lose all code that tested for SEQUENCEs.
2841 (workaround_speculation): Avoid inserting NOPs for loads that are
2842 either always executed or a NULL pointer.
2844 2009-09-08 Jan Hubicka <jh@suse.cz>
2846 * doc/invoke.texi (early-inlining-insns): Reduce from 12 to 8.
2847 * params.def (early-inlining-insns): Likewise.
2849 2009-09-08 Jakub Jelinek <jakub@redhat.com>
2851 PR rtl-optimization/41239
2852 * sched-int.h (struct deps): Add last_function_call_may_noreturn field.
2853 * sched-rgn.c (deps_join): Join also last_function_call_may_noreturn
2855 * sched-deps.c (sched_analyze_insn): Prevent moving trapping insns
2856 across calls, as the calls might not always return normally.
2857 (call_may_noreturn_p): New function.
2858 (deps_analyze_insn): Update last_function_call_may_noreturn list.
2859 (init_deps): Initialize it.
2860 (remove_from_deps): Also remove calls from
2861 last_function_call_may_noreturn list.
2863 2009-09-07 Richard Henderson <rth@redhat.com>
2865 * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't assume there are
2866 more VR->OPERANDS than LHS operands. Free LHS before returning.
2868 2009-09-07 Bernd Schmidt <bernd.schmidt@analog.com>
2870 * config/bfin/bfin.md (UNSPEC_VOLATILE_STALL): New constant.
2871 (attr "addrtype"): New member "spreg".
2872 Use it if mem_spfp_address_operand is true for the address.
2873 (attr "type"): New entry "stall".
2874 (cpu_unit "load"): New.
2875 (insn_reservations "load32", "loadp", "loadi"): Add reservation of
2877 (insn_reservation "loadsp"): New.
2878 (insn_reservation "load_stall1"): New.
2879 (insn_reservation "load_stall3"): New.
2881 * config/bfin/predicates.md (const1_operand, const3_operand): New.
2882 (mem_p_address_operand): Exclude stack and frame pointer based
2884 (mem_spfp_address_operand): New; match them here.
2885 * config/bfin/bfin.c (add_sched_insns_for_speculation): New function.
2886 (bfin_reorg): Call it if scheduling insns.
2887 (bfin_gen_bundles): Remove dummy insns created by
2888 add_sched_insns_for_speculation.
2890 From Jie Zhang <jie.zhang@analog.com>:
2891 * config/bfin/bfin-protos.h (enum bfin_cpu_type, bfin_cpu_type,
2892 bfin_si_revision, bfin_workarounds): Move these ...
2893 * config/bfin/bfin.h: ... here.
2895 From Mike Frysinger <michael.frysinger@analog.com>
2896 * config/bfin/bfin-protos.h (bfin_cpu_type): Add BFIN_CPU_BF542M,
2897 BFIN_CPU_BF544M, BFIN_CPU_BF547M, BFIN_CPU_BF548M, and BFIN_CPU_BF549M.
2898 * config/bfin/bfin.c (bfin_cpus[]): Add 0.3 for bf542m, bf544m,
2899 bf547m, bf548m, and bf549m.
2900 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define __ADSPBF542M__
2901 for BFIN_CPU_BF542M, __ADSPBF544M__ for BFIN_CPU_BF544M,
2902 __ADSPBF547M__ for BFIN_CPU_BF547M, __ADSPBF548M__ for
2903 BFIN_CPU_BF548M, and __ADSPBF549M__ for BFIN_CPU_BF549M.
2904 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
2905 bf542m-none, bf544m-none, bf547m-none, bf548m-none, and bf549m-none.
2906 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
2907 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
2908 * doc/invoke.texi (Blackfin Options): Document that -mcpu now accepts
2909 bf542m, bf544m, bf547m, bf548m, and bf549m.
2911 From Jie Zhang <jie.zhang@analog.com>:
2912 * config/bfin/predicates.md (p_register_operand): New predicate.
2913 (dp_register_operand): New predicate.
2914 * config/bfin/bfin-protos.h (WA_05000074): Define.
2915 (ENABLE_WA_05000074): Define.
2916 * config/bfin/bfin.c (bfin_cpus[]): Add WA_05000074 for all cpus.
2917 (bfin_gen_bundles): Put dsp32shiftimm instruction in slot[0].
2918 * config/bfin/bfin.md (define_attr type): Add dsp32shiftimm.
2919 (define_attr addrtype): Allow load/store register to be P register.
2920 (define_attr storereg): New.
2921 (define_cpu_unit anomaly_05000074): New.
2922 (define_insn_reservation dsp32shiftimm): New.
2923 (define_insn_reservation dsp32shiftimm_anomaly_05000074): New.
2924 (define_insn_reservation loadp): Cannot use slot2.
2925 (define_insn_reservation loadsp): Cannot use slot2.
2926 (define_insn_reservation storep): Cannot use slot2. Does not
2927 apply when working around 05000074.
2928 (define_insn_reservation storep_anomaly_05000074): New.
2929 (define_insn_reservation storei): Does not apply when working
2931 (define_insn_reservation storei_anomaly_05000074): New.
2932 (define_attr length): Add dsp32shiftimm case.
2933 (define_insn movsi_insn32, movsi_insv, ashlsi3_insn, ashrsi3,
2934 ror_one, rol_one, lshrsi3, lshrpdi3, ashrpdi3, movhiv2hi_low,
2935 movhiv2hi_high, composev2hi, packv2hi, movv2hi_hi,
2936 ssashiftv2hi3, ssashifthi3, ssashiftsi3, lshiftv2hi3, lshifthi3):
2937 Set type as dsp32shiftimm for dsp32shiftimm alternatives.
2939 2009-09-07 Martin Jambor <mjambor@suse.cz>
2942 * tree-sra.c (create_artificial_child_access): Return NULL if
2943 build_ref_for_offset fails.
2944 (propagate_subacesses_accross_link): Allow build_ref_for_offset
2945 and create_artificial_child_access to fail.
2947 2009-09-06 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
2950 * unwind-dw2.c (uw_init_context_1): Mark noinline.
2951 * config/ia64/unwind-ia64.c (uw_init_context_1): Likewise.
2952 * config/xtensa/unwind-dw2-xtensa.c (uw_init_context_1): Likewise.
2954 2009-09-07 Bernd Schmidt <bernd.schmidt@analog.com>
2956 * config/bfin/bfin.c (bfin_optimize_loop): When creating a new basic
2957 block, ensure it has an exit edge. Emit a barrier after a jump.
2959 2009-09-07 Nick Clifton <nickc@redhat.com>
2961 * gcc.c (this_is_linker_script): New variable. Like
2962 this_is_library_file but for the %T constructor.
2963 (end_going_arg): If this_is_linker_script is set then locate the
2964 script and insert a --script switch before it
2965 (do_spec_2): Initialise this_is_linker_script.
2966 (do_spec_1): Likewise. Handle %T construct.
2967 (eval_spec_function): Preserve this_is_linker_script.
2968 * doc/invoke.texi: Document %T construct in spec files.
2969 * config/m32c/m32c.h (LIB_SPEC): Use it.
2971 2009-09-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2973 * rtl.h (PREFETCH_SCHEDULE_BARRIER_P): New macro.
2974 * sched-deps.c (sched_analyze_2): Make prefetches a hard barrier
2975 when volatile flag is set.
2976 * doc/rtl.texi (PREFETCH_SCHEDULE_BARRIER_P): Add documentation pieces.
2978 2009-09-06 Eric Botcazou <ebotcazou@adacore.com>
2981 * combine-stack-adj.c (try_apply_stack_adjustment): Handle stores.
2982 (combine_stack_adjustments_for_block): Allow insns between stack
2983 adjustments and stores with corresponding pre-(dec|inc)rement or
2984 pre-modify operation.
2986 2009-09-06 Jakub Jelinek <jakub@redhat.com>
2989 * combine-stack-adj.c (struct csa_memlist): Rename to...
2990 (struct csa_reflist): ... this. Rename mem field to ref.
2991 (free_csa_memlist): Rename to...
2992 (free_csa_reflist): ... this.
2993 (record_one_stack_memref): Rename to...
2994 (record_one_stack_ref): ... this. Handle also REG_P.
2995 (try_apply_stack_adjustment): Handle also REG_P.
2996 (struct record_stack_memrefs_data): Rename to...
2997 (struct record_stack_refs_data): ... this. Rename memlist field to
2999 (record_stack_memrefs): Rename to...
3000 (record_stack_refs): ... this. For DEBUG_INSNs keep traversing
3001 subexpressions instead of failing when a MEM contains SP references.
3002 For SP itself in DEBUG_INSNs queue it also onto reflist chain.
3003 (combine_stack_adjustments_for_block): Adjust for mem to ref renaming.
3005 2009-09-06 Richard Guenther <rguenther@suse.de>
3008 * tree.c (build_array_type): Do not record types marked
3009 with structural equality in the canonical type hashtable.
3011 2009-09-06 Richard Guenther <rguenther@suse.de>
3014 * tree-ssa-alias.c (refs_may_alias_p_1): Bail out for function decls.
3016 2009-09-05 Richard Guenther <rguenther@suse.de>
3019 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Use the correct type.
3021 2009-09-05 Richard Guenther <rguenther@suse.de>
3024 * tree-ssa-operands.c (get_tmr_operands): Pass through opf_no_vops.
3026 2009-09-05 Richard Guenther <rguenther@suse.de>
3029 * tree-ssa.c (useless_type_conversion_p): Drop qualifiers
3030 before comparing function argument types.
3032 2009-09-05 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3035 * config/i386/mingw-w64.h (ASM_SPEC): Pass -v instead of -V to
3038 2009-09-04 Uros Bizjak <ubizjak@gmail.com>
3041 2009-08-18 Uros Bizjak <ubizjak@gmail.com>
3043 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn
3044 locators before emit_insn is called.
3046 2009-09-04 Vladimir Makarov <vmakarov@redhat.com>
3049 * ira.c (update_equiv_reg): Revert my previous patch for the PR.
3050 * reginfo.c (resize_reg_info): Call allocate_reg_info if necessary.
3051 (reginfo_init): Don't call allocate_reg_info.
3053 2009-09-04 Uros Bizjak <ubizjak@gmail.com>
3056 * config/alpha/alpha.c (alpha_does_function_need_gp): Use
3057 NONDEBUG_INSN_P instead of INSN_P.
3059 2009-09-04 Alexandre Oliva <aoliva@redhat.com>
3062 * tree-vect-stmts.c (vect_stmt_relevant_p): Skip debug uses.
3064 2009-09-04 Alexandre Oliva <aoliva@redhat.com>
3067 * config/arm/vfp.md (*cmpdf_split_vfp): Fix src mode in the second
3068 pattern of the split.
3070 2009-09-04 Alexandre Oliva <aoliva@redhat.com>
3072 * toplev.c (process_options): Move setter of flag_var_tracking
3073 before other tests that depend on it. Move down setter of
3074 flag_rename_registers. Don't enable var-tracking-assignments
3075 by default if selective scheduling is enabled. Warn if both
3078 2009-09-04 Alexandre Oliva <aoliva@redhat.com>
3080 * var-tracking.c (dv_is_decl_p): Adjust NULL behavior to match
3081 comment. Use switch statement to catch overlaps between rtx
3082 and tree codes. Accept FUNCTION_DECLs in addition to those in...
3083 (IS_DECL_CODE): ... here. Remove.
3084 (check_value_is_not_decl): Remove.
3085 (dv_from_decl, dv_from_value): Check after conversion.
3087 2009-09-04 Richard Guenther <rguenther@suse.de>
3090 * (cgraph_finalize_compilation_unit): Move finalizing aliases
3091 after emitting tunks. Move emitting thunks and ctors from ...
3092 (cgraph_optimize): ... here. Remove redundant
3093 cgraph_analyze_functions.
3094 * varasm.c (find_decl_and_mark_needed): Remove no longer
3096 (finish_aliases_1): Adjust check for thunk aliases.
3098 2009-09-04 Daniel Gutson <dgutson@codesourcery.com>
3100 * config/arm/arm.md (ctzsi2): Added braces
3101 to avoid warning that broke booststrap.
3103 2009-09-04 Martin Jambor <mjambor@suse.cz>
3105 PR tree-optimization/41112
3106 * tree-sra.c (build_ref_for_offset_1): Signal that we cannot
3107 handle variable-bounded arrays.
3108 (expr_with_var_bounded_array_refs_p): New function.
3109 (analyze_access_subtree): Call expr_with_var_bounded_array_refs_p.
3111 2009-09-04 Wolfgang Gellerich <gellerich@de.ibm.com>
3113 * config/s390/2097.md: Removed two incorrect bypasses.
3114 (z10_fsimpdf): Fixed latency.
3115 (z10_fhex): New insn_reservation.
3116 (z10_floaddf): Fixed latency.
3117 (z10_floadsf): Fixed latency.
3118 (z10_ftrunctf): Fixed latency.
3119 (z10_ftruncdf): Fixed latency.
3120 * config/s390/s390.c (z10_cost): Fixed values.
3121 (s390_adjust_priority): Added z10 path.
3122 * config/s390/s390.md (type): Added fhex.
3123 (*mov<mode>_64dfp): Updated type attribute.
3124 (*mov<mode>_64): Updated type attribute.
3125 (*mov<mode>_31): Updated type attribute.
3126 (*mov<mode>"): Likewise.
3127 * config/s390/2084.md (x_fsimpdf): Updated condition.
3129 2009-09-04 Andreas Krebbel <krebbel1@de.ibm.com>
3131 * config/s390/s390.md ("*fmadd<mode>", "*fmsub<mode>"): Enable mem
3132 RTXs in the predicate for operand 1.
3134 2009-09-03 Daniel Gutson <dgutson@codesourcery.com>
3136 * config/arm/arm.md (UNSPEC_RBIT): New constant.
3137 (rbitsi2): New insn.
3138 (ctzsi2): New expand.
3139 * config/arm/arm.h (CTZ_DEFINED_VALUE_AT_ZERO): New macro.
3141 2009-09-03 Martin Jambor <mjambor@suse.cz>
3143 * tree-sra.c (duplicate_expr_for_different_base): Removed.
3144 (create_artificial_child_access): Use build_ref_for_offset instead
3145 of duplicate_expr_for_different_base.
3146 (propagate_subacesses_accross_link): Likewise.
3148 2009-09-03 Richard Sandiford <rdsandiford@googlemail.com>
3150 * config/mips/mips.c (USEFUL_INSN_P): Use NONDEBUG_INSN_P instead
3152 (mips16e_collect_argument_saves): Skip debug instructions.
3153 (mips_74k_agen_init): Use CALL_P || JUMP_P instead of !NONJUMP_INSN_P.
3154 (mips16_lay_out_constants): Use USEFUL_INSN_P instead of INSN_P.
3155 (r10k_insert_cache_barriers): Likewise.
3156 (mips_reorg_process_insns): Likewise.
3158 2009-09-03 Vladimir Makarov <vmakarov@redhat.com>
3161 * ira.c (update_equiv_reg): Remove check on class likely spill.
3163 2009-09-03 Jakub Jelinek <jakub@redhat.com>
3166 * dwarf2out.c (loc_descriptor): Don't use SUBREG_REG macro on
3167 SIGN_EXTEND or ZERO_EXTEND. Don't assume there is a REG inside of
3171 * function.c (assign_parm_find_stack_rtl): Don't set mem attributes on
3172 the stack slot if it is passed by invisible reference.
3173 * var-tracking.c (vt_add_function_parameters): Handle arguments passed
3174 by invisible reference.
3176 2009-09-03 Bernd Schmidt <bernd.schmidt@analog.com>
3178 * config/bfin/linux.h (TARGET_SUPPORTS_SYNC_CALLS): Define to 1.
3179 * config/bfin/uclinux.h (TARGET_SUPPORTS_SYNC_CALLS): Define to 1.
3180 * config/bfin/bfin.h (TARGET_SUPPORTS_SYNC_CALLS): Provide default of
3182 * config/bfin/sync.md: New file.
3183 * config/bfin/bfin.md: Include it.
3184 (UNSPEC_ATOMIC): New.
3185 (UNSPEC_ONES): Provide a unique number.
3187 From Jie Zhang <jie.zhang@analog.com>:
3188 * config/bfin/bfin.c (ret_regs): New.
3189 (must_save_fp_p): Don't return true because of frame_pointer_needed.
3190 (must_save_rets_p): New.
3191 (n_regs_saved_by_prologue): Use must_save_rets_p instead of
3192 current_function_is_leaf.
3193 (do_link): Likewise.
3194 (do_unlink): Likewise.
3195 (expand_interrupt_handler_prologue): Use ret_regs array.
3196 (expand_interrupt_handler_epilogue): Use ret_regs array and
3197 pass return register to gen_return_internal.
3198 (bfin_expand_epilogue): Pass return register to
3199 gen_return_internal.
3200 (bfin_expand_call): Explicitly clobber RETS.
3201 * config/bfin/bfin.h (FUNCTION_RETURN_REGISTERS): Define.
3202 * config/bfin/bfin.md (call_symbol_fdpic, call_value_symbol_fdpic,
3203 call_insn_fdpic, call_value_insn_fdpic, call_symbol,
3204 call_value_symbol, call_insn, call_value_insn): Explicitly clobber
3206 (return_internal): Take a reg rtx rather than the register number.
3208 2009-09-03 H.J. Lu <hongjiu.lu@intel.com>
3210 * tree-parloops.c (parallelize_loops): Cast to HOST_WIDE_INT
3211 when comparing against estimated_loop_iterations_int return.
3213 2009-09-03 Richard Guenther <rguenther@suse.de>
3215 * dwarf2out.c (dwarf2out_do_cfi_asm): Remove check of
3216 eh_personality_libfunc.
3218 2009-09-03 Razya Ladelsky <razya@il.ibm.com>
3220 * tree-parloops.c (separate_decls_in_region): Add space.
3222 2009-09-03 Razya Ladelsky <razya@il.ibm.com>
3224 * tree-parloops.c (separate_decls_in_region): Change the condition
3225 checking if there are reductions in the loop.
3227 2009-09-03 Razya Ladelsky <razya@il.ibm.com>
3229 PR tree-optimization/38275
3230 * tree-parloops.c (parallelize_loops): Replace profitability condition
3231 for expected number of iterations.
3233 2009-09-03 Alexandre Oliva <aoliva@redhat.com>
3235 * doc/invoke.texi (BUILD_CONFIG): Document --with-build-config.
3236 (bootstrap-debug): Explain conditions in which it becomes default.
3237 (bootstrap-debug-big): Rather than duplicate bootstrap-debug,
3240 2009-09-03 Namhyung Kim <namhyung@gmail.com>
3242 * doc/invoke.texi (Optimize Options): Move
3243 -finline-small-functions to the -O2 list.
3245 2009-09-03 Alexandre Oliva <aoliva@redhat.com>
3247 * toplev.c (process_options): Enable var-tracking-assignments
3248 by default if var-tracking is enabled.
3250 2009-09-02 David Daney <ddaney@caviumnetworks.com>
3252 * cfgbuild.c (find_bb_boundaries): Split blocks containing a
3254 * emit-rtl.c (prev_nonnote_insn_bb): New function.
3255 * rtl.h (prev_nonnote_insn_bb): Declare it.
3257 2009-09-03 Diego Novillo <dnovillo@google.com>
3259 * cgraph.c (cgraph_node_for_decl): New.
3260 * cgraph.h (cgraph_node_for_decl): Declare.
3261 * tree.c (host_integerp): Return 0 if T is NULL.
3263 2009-09-03 Diego Novillo <dnovillo@google.com>
3265 * tree.h (struct alias_pair): Move from varasm.c.
3266 (alias_pairs): Likewise.
3267 (TYPE_MAXVAL): Define.
3268 (TYPE_MINVAL): Define.
3269 (iterative_hash_host_wide_int): Declare.
3270 (remove_unreachable_alias_pairs): Declare.
3271 * tree-pass.h (pass_ipa_free_lang_data): Declare.
3272 * diagnostic.c (default_diagnostic_starter): Make extern.
3273 (default_diagnostic_finalizer): Make extern.
3274 * diagnostic.h (default_diagnostic_starter): Declare.
3275 (default_diagnostic_finalizer): Declare.
3276 (default_tree_printer): Declare.
3277 * toplev.c (default_tree_printer): Make extern.
3279 2009-09-03 Richard Guenther <rguenther@suse.de>
3280 Diego Novillo <dnovillo@google.com>
3282 * cgraph.c (cgraph_add_new_function): Remove gimplification.
3283 * cgraphunit.c (cgraph_expand_function): Do not emit
3284 associated thunks from here.
3285 (cgraph_emit_thunks): New.
3286 (cgraph_optimize): Call it.
3287 Return if any IPA pass finds an error.
3288 * varasm.c (finish_aliases_1): Ignore errorneous aliases used
3291 2009-09-03 Simon Baldwin <simonb@google.com>
3292 Rafael Espindola <espindola@google.com>
3293 Richard Guenther <rguenther@suse.de>
3294 Doug Kwan <dougkwan@google.com>
3295 Diego Novillo <dnovillo@google.com>
3297 * tree.c: Include tree-pass.h, langhooks-def.h,
3298 diagnostic.h, cgraph.h, timevar.h, except.h and debug.h.
3299 (free_lang_data_in_type): New.
3300 (need_assembler_name_p): New.
3301 (free_lang_data_in_block): New.
3302 (free_lang_data_in_decl): New.
3303 (struct free_lang_data_d): New.
3304 (add_tree_to_fld_list): New.
3305 (find_decls_types_r): New.
3306 (get_eh_types_for_runtime): New.
3307 (find_decls_types_in_eh_region): New.
3308 (find_decls_types_in_node): New.
3309 (find_decls_types_in_var): New.
3310 (free_lang_data_in_cgraph): New.
3311 (free_lang_data): New.
3312 (gate_free_lang_data): New.
3313 (pass_ipa_free_lang_data): New.
3315 2009-09-03 Diego Novillo <dnovillo@google.com>
3317 * timevar.def (TV_IPA_FREE_LANG_DATA): Define.
3318 * langhooks.h (struct lang_hooks): Add field free_lang_data.
3319 (lang_hooks): Remove const qualifier.
3320 * ipa.c (cgraph_remove_unreachable_nodes): Call
3321 remove_unreachable_alias_pairs.
3322 * except.c (add_type_for_runtime): Check if TYPE has
3323 already been converted.
3324 (lookup_type_for_runtime): Likewise.
3325 (check_handled): Handle converted types.
3326 * varasm.c (remove_unreachable_alias_pairs): New.
3327 * gimple.c: Include demangle.h.
3328 (gimple_decl_printable_name): New.
3329 (gimple_fold_obj_type_ref): New.
3330 * gimple.h (gimple_decl_printable_name): Declare.
3331 (gimple_fold_obj_type_ref): Declare.
3332 * passes.c (init_optimization_passes): Add pass
3333 pass_ipa_free_lang_data.
3334 * langhooks-def.h (LANG_HOOKS_FREE_LANG_DATA): Define.
3335 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_FREE_LANG_DATA.
3337 2009-09-03 Diego Novillo <dnovillo@google.com>
3339 * c-lang.c (lang_hooks): Remove const qualifier.
3341 2009-09-02 Loren James Rittle <ljrittle@acm.org>
3343 * doc/install.texi (*-*-freebsd*): Update target information.
3345 2009-09-02 Anatoly Sokolov <aesok@post.ru>
3347 * hard-reg-set.h (call_fixed_regs): Remove.
3348 * reginfo.c (call_fixed_regs): Remove.
3349 (init_reg_sets_1): Remove initialization of call_fixed_regs.
3350 (globalize_reg): Don't use call_fixed_regs.
3351 * caller-save.c (init_caller_save): Use call_fixed_reg_set instead of
3354 2009-09-01 Michael Matz <matz@suse.de>
3356 * expr.h (emit_storent_insn, expand_expr_real_1,
3357 expand_expr_real_2): Declare.
3358 * expr.c (emit_storent_insn, expand_expr_real_1,
3359 expand_expr_real_2): Export.
3360 (store_expr): Setting and evaluating dont_return_target is useless.
3361 (expand_expr_real_1, <case GOTO_EXPR, RETURN_EXPR, SWITCH_EXPR,
3362 LABEL_EXPR and ASM_EXPR>): Move to gcc_unreachable.
3363 * except.c (expand_resx_expr): Rename to ...
3364 (expand_resx_stmt): ... this. Rewrite to take gimple statement.
3365 * except.h (expand_resx_stmt): Declare.
3366 * stmt.c: Add include gimple.h
3367 (expand_asm_expr): Rename to ...
3368 (expand_asm_stmt): ... this. Rewrite to take gimple statement.
3369 (expand_case): Rewrite to take gimple statement.
3370 * tree.h (expand_asm_stmt): Declare.
3371 (expand_case): Change prototype.
3372 * Makefile.in (stmt.o): Depend on gimple.h.
3373 * builtins.c (expand_builtin_synchronize): Build gimple asm
3374 statement, not an ASM_EXPR.
3375 * cfgexpand.c (gimple_cond_pred_to_tree, set_expr_location_r,
3376 gimple_to_tree, release_stmt_tree): Remove.
3377 (expand_gimple_cond): Don't call gimple_cond_pred_to_tree or
3378 ggc_free, but hold comparison code and operands separately.
3379 Call jumpif_1 and jumpifnot_1 instead of jumpif and jumpifnot.
3380 (expand_call_stmt, expand_gimple_stmt_1,
3381 expand_gimple_stmt): New helpers.
3382 (expand_gimple_tailcall): Don't call gimple_to_tree, expand_expr_stmt,
3383 release_stmt_tree. Call expand_gimple_stmt instead.
3384 (expand_gimple_basic_block): Ditto.
3386 * calls.c (emit_call_1): Don't look at EH regions here, make
3387 fntree parameter useless.
3388 (expand_call): New local rettype for TREE_TYPE(exp), use it
3389 throughout. Remove local p, use addr instead.
3390 Don't look at EH regions here.
3392 2009-09-02 Vladimir Makarov <vmakarov@redhat.com>
3394 * doc/invoke.texi (-fsched-pressure): Document it.
3395 (-fsched-reg-pressure-heuristic): Remove it.
3397 * reload.c (ira.h): Include.
3398 (find_reloads): Add choosing reload on number of small spilled
3401 * haifa-sched.c (ira.h): Include.
3402 (sched_pressure_p, sched_regno_cover_class, curr_reg_pressure,
3403 saved_reg_pressure, curr_reg_live, saved_reg_live,
3404 region_ref_regs): New variables.
3405 (sched_init_region_reg_pressure_info, mark_regno_birth_or_death,
3406 initiate_reg_pressure_info, setup_ref_regs,
3407 initiate_bb_reg_pressure_info, save_reg_pressure,
3408 restore_reg_pressure, dying_use_p, print_curr_reg_pressure): New
3410 (setup_insn_reg_pressure_info): New function.
3411 (rank_for_schedule): Add pressure checking and insn issue time.
3412 Remove comparison of insn reg weights.
3413 (ready_sort): Set insn reg pressure info.
3414 (update_register_pressure, setup_insn_max_reg_pressure,
3415 update_reg_and_insn_max_reg_pressure,
3416 sched_setup_bb_reg_pressure_info): New functions.
3417 (schedule_insn): Add code for printing and updating reg pressure info.
3418 (find_set_reg_weight, find_insn_reg_weight): Remove.
3419 (ok_for_early_queue_removal): Do nothing if pressure_only_p.
3420 (debug_ready_list): Print reg pressure info.
3421 (schedule_block): Ditto. Check insn issue time.
3422 (sched_init): Set up sched_pressure_p. Allocate and set up some
3423 reg pressure related info.
3424 (sched_finish): Free some reg pressure related info.
3425 (fix_tick_ready): Make insn always ready if pressure_p.
3426 (init_h_i_d): Don't call find_insn_reg_weight.
3427 (haifa_finish_h_i_d): Free insn reg pressure info.
3429 * ira-int.h (ira_hard_regno_cover_class, ira_reg_class_nregs,
3430 ira_memory_move_cost, ira_class_hard_regs,
3431 ira_class_hard_regs_num, ira_no_alloc_regs,
3432 ira_available_class_regs, ira_reg_class_cover_size,
3433 ira_reg_class_cover, ira_class_translate): Move to ira.h.
3435 * ira-lives.c (single_reg_class): Check mode to find how many
3436 registers are necessary for operand.
3437 (ira_implicitly_set_insn_hard_regs): New.
3439 * common.opt (fsched-pressure): New options.
3440 (fsched-reg-pressure-heuristic): Remove.
3442 * ira.c (setup_eliminable_regset): Rename to
3443 ira_setup_eliminable_regset. Make it external.
3444 (expand_reg_info): Pass cover class to setup_reg_classes.
3445 (ira): Call resize_reg_info instead of allocate_reg_info.
3447 * sched-deps.c: Include ira.h.
3448 (implicit_reg_pending_clobbers, implicit_reg_pending_uses): New.
3449 (create_insn_reg_use, create_insn_reg_set, setup_insn_reg_uses,
3450 reg_pressure_info, insn_use_p, mark_insn_pseudo_birth,
3451 mark_insn_hard_regno_birth, mark_insn_reg_birth,
3452 mark_pseudo_death, mark_hard_regno_death, mark_reg_death,
3453 mark_insn_reg_store, mark_insn_reg_clobber,
3454 setup_insn_reg_pressure_info): New.
3455 (sched_analyze_1): Update implicit_reg_pending_uses.
3456 (sched_analyze_insn): Find implicit sets, uses, clobbers of regs.
3457 Use them to create dependencies. Set insn reg uses and pressure
3458 info. Process reg_pending_uses in one place.
3459 (free_deps): Free implicit sets.
3460 (remove_from_deps): Remove implicit sets if necessary. Check
3461 implicit sets when clearing reg_last_in_use.
3462 (init_deps_global): Clear implicit_reg_pending_clobbers and
3463 implicit_reg_pending_uses.
3465 * ira.h (ira_hard_regno_cover_class, ira_reg_class_nregs,
3466 ira_memory_move_cost, ira_class_hard_regs,
3467 ira_class_hard_regs_num, ira_no_alloc_regs,
3468 ira_available_class_regs, ira_reg_class_cover_size,
3469 ira_reg_class_cover, ira_class_translate): Move from ira-int.h.
3470 (ira_setup_eliminable_regset, ira_set_pseudo_classes,
3471 ira_implicitly_set_insn_hard_regs): New prototypes.
3473 * ira-costs.c (pseudo_classes_defined_p, allocno_p,
3474 cost_elements_num): New variables.
3475 (allocno_costs, total_costs): Rename to costs and
3476 total_allocno_costs.
3477 (COSTS_OF_ALLOCNO): Rename to COSTS.
3478 (allocno_pref): Rename to pref.
3479 (allocno_pref_buffer): Rename to pref_buffer.
3480 (common_classes): Rename to regno_cover_class.
3482 (record_reg_classes): Set allocno attributes only if allocno_p.
3483 (record_address_regs): Ditto. Use COST_INDEX instead of ALLOCNO_NUM.
3484 (scan_one_insn): Use COST_INDEX and COSTS instead of ALLOCNO_NUM
3485 and COSTS_OF_ALLOCNO.
3486 (print_costs): Rename to print_allocno_costs.
3487 (print_pseudo_costs): New.
3488 (process_bb_node_for_costs): Split into 2 functions with new
3489 function process_bb_for_costs. Pass BB to process_bb_for_costs.
3490 (find_allocno_class_costs): Rename to find_costs_and_classes. Add
3491 new parameter dump_file. Use cost_elements_num instead of
3492 ira_allocnos_num. Make one iteration if preferred classes were
3493 already calculated for scheduler. Make 2 versions of code
3494 depending on allocno_p.
3495 (setup_allocno_cover_class_and_costs): Check allocno_p. Use
3496 regno_cover_class and COSTS instead of common_classes and
3498 (init_costs, finish_costs): New.
3499 (ira_costs): Set up allocno_p and cost_elements_num. Call
3500 init_costs and finish_costs.
3501 (ira_set_pseudo_classes): New.
3503 * rtl.h (allocate_reg_info): Remove.
3504 (resize_reg_info): Change return type.
3505 (reg_cover_class): New.
3506 (setup_reg_classes): Add new parameter.
3508 * sched-int.h (struct deps_reg): New member implicit_sets.
3509 (sched_pressure_p, sched_regno_cover_class): New external definitions.
3510 (INCREASE_BITS): New macro.
3511 (struct reg_pressure_data, struct reg_use_data): New.
3512 (struct _haifa_insn_data): Remove reg_weight. Add members
3513 reg_pressure, reg_use_list, reg_set_list, and
3514 reg_pressure_excess_cost_change.
3515 (struct deps): New member implicit_sets.
3516 (pressure_p): New variable.
3517 (COVER_CLASS_BITS, INCREASE_BITS): New macros.
3518 (struct reg_pressure_data, struct reg_use_data): New.
3519 (INSN_REG_WEIGHT): Remove.
3520 (INSN_REG_PRESSURE, INSN_MAX_REG_PRESSURE, INSN_REG_USE_LIST,
3521 INSN_REG_SET_LIST, INSN_REG_PRESSURE_EXCESS_COST_CHANGE): New macros.
3522 (sched_init_region_reg_pressure_info,
3523 sched_setup_bb_reg_pressure_info): New prototypes.
3525 * reginfo.c (struct reg_pref): New member coverclass.
3526 (reg_cover_class): New function.
3527 (reginfo_init, pass_reginfo_init): Move after free_reg_info.
3528 (reg_info_size): New variable.
3529 (allocate_reg_info): Make static. Setup reg_info_size.
3530 (resize_reg_info): Use reg_info_size. Return flag of resizing.
3531 (setup_reg_classes): Add a new parameter. Setup cover class too.
3533 * Makefile.in (reload.o, haifa-sched.o, sched-deps.o): Add ira.h to
3536 * sched-rgn.c (deps_join): Set up implicit_sets.
3537 (schedule_region): Set up region and basic blocks pressure
3540 * passes.c (init_optimization_passes): Move
3541 pass_subregs_of_mode_init before pass_sched.
3543 2009-09-02 Martin Jambor <mjambor@suse.cz>
3545 * tree-sra.c (struct access): New field grp_hint.
3546 (dump_access): Dump grp_hint.
3547 (sort_and_splice_var_accesses): Set grp_hint if a group is read
3549 (analyze_access_subtree): Only scalarize accesses with grp_hint set or
3550 those which have been specifically read and somehow written to.
3551 (propagate_subacesses_accross_link): Set grp_hint of right child and
3552 also possibly of the left child.
3554 2009-09-02 Jakub Jelinek <jakub@redhat.com>
3556 * tree-object-size.c (addr_object_size): Always use object_size_type
3557 0 or 2 when determining the pointer pointed object size.
3559 2009-09-02 Richard Guenther <rguenther@suse.de>
3562 2009-08-31 Richard Guenther <rguenther@suse.de>
3564 * builtins.c (fold_builtin_memory_op): Use the alias oracle
3565 to query if the memory regions for memmove overlap.
3566 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Relax the
3567 asserts on pointers, instead deal with odd trees.
3568 (ptr_derefs_may_alias_p): Likewise.
3569 (refs_may_alias_p_1): Constructor bases also never alias.
3571 2009-08-01 Christian Bruel <christian.bruel@st.com>
3574 2009-07-31 Christian Bruel <christian.bruel@st.com>
3575 * gcc/config.gcc (sh*-*-elf): test with_libgloss.
3577 2009-09-01 Alexandre Oliva <aoliva@redhat.com>
3579 * doc/invoke.texi (-fvar-tracking-assignments): New.
3580 (-fvar-tracking-assignments-toggle): New.
3581 (-fdump-final-insns=file): Mark filename as optional.
3582 (--param min-nondebug-insn-uid): New.
3583 (-gdwarf-@{version}): Mention version 4.
3584 * opts.c (common_handle_option): Accept it.
3585 * tree-vrp.c (find_assert_locations_1): Skip debug stmts.
3586 * regrename.c (regrename_optimize): Drop last. Don't count debug
3587 insns as uses. Don't reject change because of debug insn.
3588 (do_replace): Reject DEBUG_INSN as chain starter. Take base_regno
3589 from the chain starter, and check for inexact matches in DEBUG_INSNS.
3590 (scan_rtx_reg): Accept inexact matches in DEBUG_INSNs.
3591 (build_def_use): Simplify and fix the marking of DEBUG_INSNs.
3592 * sched-ebb.c (schedule_ebbs): Skip boundary debug insns.
3593 * fwprop.c (forward_propagate_and_simplify): ...into debug insns.
3594 * doc/gimple.texi (is_gimple_debug): New.
3595 (gimple_debug_bind_p): New.
3596 (is_gimple_call, gimple_assign_cast_p): End sentence with period.
3597 * doc/install.texi (bootstrap-debug): More details.
3598 (bootstrap-debug-big, bootstrap-debug-lean): Document.
3599 (bootstrap-debug-lib): More details.
3600 (bootstrap-debug-ckovw): Update.
3601 (bootstrap-time): New.
3602 * tree-into-ssa.c (mark_def_sites): Skip debug stmts.
3603 (insert_phi_nodes_for): Insert debug stmts.
3604 (rewrite_stmt): Take iterator. Insert debug stmts.
3605 (rewrite_enter_block): Adjust.
3606 (maybe_replace_use_in_debug_stmt): New.
3607 (rewrite_update_stmt): Use it.
3608 (mark_use_interesting): Return early for debug stmts.
3609 * tree-ssa-loop-im.c (rewrite_bittest): Propagate DEFs into debug
3610 stmts before replacing stmt.
3611 (move_computations_stmt): Likewise.
3612 * ira-conflicts.c (add_copies): Skip debug insns.
3613 * regstat.c (regstat_init_n_sets_and_refs): Discount debug insns.
3614 (regstat_bb_compute_ri): Skip debug insns.
3615 * tree-ssa-threadupdate.c (redirection_block_p): Skip debug stmts.
3616 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt,
3617 check_loop_closed_ssa_stmt): Skip debug stmts.
3618 * tree-tailcall.c (find_tail_calls): Likewise.
3619 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
3620 * tree.h (MAY_HAVE_DEBUG_STMTS): New.
3621 (build_var_debug_value_stat): Declare.
3622 (build_var_debug_value): Define.
3623 (target_for_debug_bind): Declare.
3624 * reload.c (find_equiv_reg): Skip debug insns.
3625 * rtlanal.c (reg_used_between_p): Skip debug insns.
3626 (side_effects_p): Likewise.
3627 (canonicalize_condition): Likewise.
3628 * ddg.c (create_ddg_dep_from_intra_loop_link): Check that non-debug
3629 insns never depend on debug insns.
3630 (create_ddg_dep_no_link): Likewise.
3631 (add_cross_iteration_register_deps): Use ANTI_DEP for debug insns.
3632 Don't add inter-loop dependencies for debug insns.
3633 (build_intra_loop_deps): Likewise.
3634 (create_ddg): Count debug insns.
3635 * ddg.h (struct ddg::num_debug): New.
3636 (num_backargs): Pair up with previous int field.
3637 * diagnostic.c (diagnostic_report_diagnostic): Skip notes on
3638 -fcompare-debug-second.
3639 * final.c (get_attr_length_1): Skip debug insns.
3640 (rest_of_clean-state): Don't dump CFA_RESTORE_STATE.
3641 * gcc.c (invoke_as): Call compare-debug-dump-opt.
3642 (driver_self_specs): Map -fdump-final-insns to
3643 -fdump-final-insns=..
3644 (get_local_tick): New.
3645 (compare_debug_dump_opt_spec_function): Test for . argument and
3646 compute output name. Compute temp output spec without flag name.
3647 Compute -frandom-seed.
3648 (OPT): Undef after use.
3649 * cfgloopanal.c (num_loop_insns): Skip debug insns.
3650 (average_num_loop_insns): Likewise.
3651 * params.h (MIN_NONDEBUG_INSN_UID): New.
3652 * gimple.def (GIMPLE_DEBUG): New.
3653 * ipa-reference.c (scan_stmt_for_static_refs): Skip debug stmts.
3654 * auto-inc-dec.c (merge_in_block): Skip debug insns.
3655 (merge_in_block): Fix whitespace.
3656 * toplev.c (flag_var_tracking): Update comment.
3657 (flag_var_tracking_assignments): New.
3658 (flag_var_tracking_assignments_toggle): New.
3659 (process_options): Don't open final insns dump file if we're not
3660 going to write to it. Compute defaults for var_tracking.
3661 * df-scan.c (df_insn_rescan_debug_internal): New.
3662 (df_uses_record): Handle debug insns.
3663 * haifa-sched.c (ready): Initialize n_debug.
3664 (contributes_to_priority): Skip debug insns.
3665 (dep_list_size): New.
3667 (rank_for_schedule): Likewise. Schedule debug insns as soon as
3668 they're ready. Disregard previous debug insns to make decisions.
3669 (queue_insn): Never queue debug insns.
3670 (ready_add, ready_remove_first, ready_remove): Count debug insns.
3671 (schedule_insn): Don't reject debug insns because of issue rate.
3672 (get_ebb_head_tail, no_real_insns_p): Skip boundary debug insns.
3673 (queue_to_ready): Skip and discount debug insns.
3674 (choose_ready): Let debug insns through.
3675 (schedule_block): Check boundary debug insns. Discount debug
3676 insns, schedule them early. Adjust whitespace.
3677 (set_priorities): Check for boundary debug insns.
3678 (add_jump_dependencies): Use dep_list_size.
3679 (prev_non_location_insn): New.
3680 (check_cfg): Use it.
3681 * tree-ssa-loop-ivopts.c (find-interesting_users): Skip debug
3683 (remove_unused_ivs): Reset debug stmts.
3684 * modulo-sched.c (const_iteration_count): Skip debug insns.
3685 (res_MII): Discount debug insns.
3686 (loop_single_full_bb_p): Skip debug insns.
3687 (sms_schedule): Likewise.
3688 (sms_schedule_by_order): Likewise.
3689 (ps_has_conflicts): Likewise.
3690 * caller-save.c (refmarker_fn): New.
3691 (save_call_clobbered_regs): Replace regs with saved mem in
3693 (mark_referenced_regs): Take pointer, mark and arg. Adjust.
3694 Call refmarker_fn mark for hardregnos.
3695 (mark_reg_as_referenced): New.
3696 (replace_reg_with_saved_mem): New.
3697 * ipa-pure-const.c (check_stmt): Skip debug stmts.
3698 * cse.c (cse_insn): Canonicalize debug insns. Skip them when
3700 (cse_extended_basic_block): Skip debug insns.
3701 (count_reg_usage): Likewise.
3702 (is_dead_reg): New, split out of...
3703 (set_live_p): ... here.
3704 (insn_live_p): Use it for debug insns.
3705 * tree-stdarg.c (check_all_va_list_escapes): Skip debug stmts.
3706 (execute_optimize_stdarg): Likewise.
3707 * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
3708 * tree-ssa-propagate.c (substitute_and_fold): Don't regard
3709 changes in debug stmts as changes.
3710 * sel-sched.c (moving_insn_creates_bookkeeping_block_p): New.
3711 (moveup_expr): Don't move across debug insns. Don't move
3712 debug insn if it would create a bookkeeping block.
3713 (moveup_expr_cached): Don't use cache for debug insns that
3714 are heads of blocks.
3715 (compute_av_set_inside_bb): Skip debug insns.
3716 (sel_rank_for_schedule): Schedule debug insns first. Remove
3718 (block_valid_for_bookkeeping_p); Support lax searches.
3719 (create_block_for_bookkeeping): Adjust block numbers when
3720 encountering debug-only blocks.
3721 (find_place_for_bookkeeping): Deal with debug-only blocks.
3722 (generate_bookkeeping_insn): Accept no place to insert.
3723 (remove_temp_moveop_nops): New argument full_tidying.
3724 (prepare_place_to_insert): Deal with debug insns.
3725 (advance_state_on_fence): Debug insns don't start cycles.
3726 (update_boundaries): Take fence as argument. Deal with
3728 (schedule_expr_on_boundary): No full_tidying on debug insns.
3729 (fill_insns): Deal with debug insns.
3730 (track_scheduled_insns_and_blocks): Don't count debug insns.
3731 (need_nop_to_preserve_insn_bb): New, split out of...
3732 (remove_insn_from_stream): ... this.
3733 (fur_orig_expr_not_found): Skip debug insns.
3734 * rtl.def (VALUE): Move up.
3736 * tree-ssa-sink.c (all_immediate_uses_same_place): Skip debug stmts.
3737 (nearest_common_dominator_of_uses): Take debug_stmts argument.
3738 Set it if debug stmts are found.
3739 (statement_sink_location): Skip debug stmts. Propagate
3740 moving defs into debug stmts.
3741 * ifcvt.c (first_active_insn): Skip debug insns.
3742 (last_active_insns): Likewise.
3743 (cond_exec_process_insns): Likewise.
3744 (noce_process_if_block): Likewise.
3745 (check_cond_move_block): Likewise.
3746 (cond_move_convert_if_block): Likewise.
3747 (block_jumps_and_fallthru_p): Likewise.
3748 (dead_or_predicable): Likewise.
3749 * dwarf2out.c (debug_str_hash_forced): New.
3750 (find_AT_string): Add comment.
3751 (gen_label_for_indirect_string): New.
3752 (get_debug_string_label): New.
3753 (AT_string_form): Use it.
3754 (mem_loc_descriptor): Handle non-TLS symbols. Handle MINUS , DIV,
3755 MOD, AND, IOR, XOR, NOT, ABS, NEG, and CONST_STRING. Accept but
3756 discard COMPARE, IF_THEN_ELSE, ROTATE, ROTATERT, TRUNCATE and
3757 several operations that cannot be represented with DWARF opcodes.
3758 (loc_descriptor): Ignore SIGN_EXTEND and ZERO_EXTEND. Require
3759 dwarf_version 4 for DW_OP_implicit_value and DW_OP_stack_value.
3760 (dwarf2out_var_location): Take during-call mark into account.
3761 (output_indirect_string): Update comment. Output if there are
3762 label and references.
3763 (prune_indirect_string): New.
3764 (prune_unused_types): Call it if debug_str_hash_forced.
3765 More in dwarf2out.c, from Jakub Jelinek <jakub@redhat.com>:
3766 (dw_long_long_const): Remove.
3767 (struct dw_val_struct): Change val_long_long type to rtx.
3768 (print_die, attr_checksum, same_dw_val_p, loc_descriptor): Adjust for
3769 val_long_long change to CONST_DOUBLE rtx from a long hi/lo pair.
3770 (output_die): Likewise. Use HOST_BITS_PER_WIDE_INT size of each
3771 component instead of HOST_BITS_PER_LONG.
3772 (output_loc_operands): Likewise. For const8* assert
3773 HOST_BITS_PER_WIDE_INT rather than HOST_BITS_PER_LONG is >= 64.
3774 (output_loc_operands_raw): For const8* assert HOST_BITS_PER_WIDE_INT
3775 rather than HOST_BITS_PER_LONG is >= 64.
3776 (add_AT_long_long): Remove val_hi and val_lo arguments, add
3778 (size_of_die): Use HOST_BITS_PER_WIDE_INT size multiplier instead of
3779 HOST_BITS_PER_LONG for dw_val_class_long_long.
3780 (add_const_value_attribute): Adjust add_AT_long_long caller. Don't
3781 handle TLS SYMBOL_REFs. If CONST wraps a constant, tail recurse.
3782 (dwarf_stack_op_name): Handle DW_OP_implicit_value and
3784 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
3785 Handle DW_OP_implicit_value.
3786 (extract_int): Move prototype earlier.
3787 (mem_loc_descriptor): For SUBREG punt if inner
3788 mode size is wider than DWARF2_ADDR_SIZE. Handle SIGN_EXTEND
3789 and ZERO_EXTEND by DW_OP_shl and DW_OP_shr{a,}. Handle
3790 EQ, NE, GT, GE, LT, LE, GTU, GEU, LTU, LEU, SMIN, SMAX, UMIN,
3791 UMAX, SIGN_EXTRACT, ZERO_EXTRACT.
3792 (loc_descriptor): Compare mode size with DWARF2_ADDR_SIZE
3793 instead of Pmode size.
3794 (loc_descriptor): Add MODE argument. Handle CONST_INT, CONST_DOUBLE,
3795 CONST_VECTOR, CONST, LABEL_REF and SYMBOL_REF if mode != VOIDmode,
3796 attempt to handle other expressions. Don't handle TLS SYMBOL_REFs.
3797 (concat_loc_descriptor, concatn_loc_descriptor,
3798 loc_descriptor_from_tree_1): Adjust loc_descriptor callers.
3799 (add_location_or_const_value_attribute): Likewise. For single
3800 location loc_lists attempt to use add_const_value_attribute
3801 for constant decls. Add DW_AT_const_value even if
3802 NOTE_VAR_LOCATION is VAR_LOCATION with CONSTANT_P or CONST_STRING
3804 * cfgbuild.c (inside_basic_block_p): Handle debug insns.
3805 (control_flow_insn_p): Likewise.
3806 * tree-parloops.c (eliminate_local_variables_stmt): Handle debug stmt.
3807 (separate_decls_in_region_debug_bind): New.
3808 (separate_decls_in_region): Process debug bind stmts afterwards.
3809 * recog.c (verify_changes): Handle debug insns.
3810 (extract_insn): Likewise.
3811 (peephole2_optimize): Skip debug insns.
3812 * dse.c (scan_insn): Skip debug insns.
3813 * sel-sched-ir.c (return_nop_to_pool): Take full_tidying argument.
3815 (setup_id_for_insn): Handle debug insns.
3816 (maybe_tidy_empty_bb): Adjust whitespace.
3817 (tidy_control_flow): Skip debug insns.
3818 (sel_remove_insn): Adjust for debug insns.
3819 (sel_estimate_number_of_insns): Skip debug insns.
3820 (create_insn_rtx_from_pattern): Handle debug insns.
3821 (create_copy_of_insn_rtx): Likewise.
3822 * sel-sched-.h (sel_bb_end): Declare.
3823 (sel_bb_empty_or_nop_p): New.
3824 (get_all_loop_exits): Use it.
3825 (_eligible_successor_edge_p): Likewise.
3826 (return_nop_to_pool): Adjust.
3827 * tree-eh.c (tre_empty_eh_handler_p): Skip debug stmts.
3828 * ira-lives.c (process_bb_node_lives): Skip debug insns.
3829 * gimple-pretty-print.c (dump_gimple_debug): New.
3830 (dump_gimple_stmt): Use it.
3831 (dump_bb_header): Skip gimple debug stmts.
3832 * regmove.c (optimize_reg_copy_1): Discount debug insns.
3833 (fixup_match_2): Likewise.
3834 (regmove_backward_pass): Likewise. Simplify combined
3835 replacement. Handle debug insns.
3836 * function.c (instantiate_virtual_regs): Handle debug insns.
3837 * function.h (struct emit_status): Add x_cur_debug_insn_uid.
3838 * print-rtl.h: Include cselib.h.
3839 (print_rtx): Print VALUEs. Split out and recurse for VAR_LOCATIONs.
3840 * df.h (df_inns_rescan_debug_internal): Declare.
3841 * gcse.c (alloc_hash_table): Estimate n_insns.
3842 (cprop_insn): Don't regard debug insns as changes.
3843 (bypass_conditional_jumps): Skip debug insns.
3844 (one_pre_gcse_pass): Adjust.
3845 (one_code_hoisting_pass): Likewise.
3846 (compute_ld_motion_mems): Skip debug insns.
3847 (one_cprop_pass): Adjust.
3848 * tree-if-conv.c (tree_if_convert_stmt): Reset debug stmts.
3849 (if_convertible_stmt_p): Handle debug stmts.
3850 * init-regs.c (initialize_uninitialized_regs): Skip debug insns.
3851 * tree-vect-loop.c (vect_is_simple_reduction): Skip debug stmts.
3852 * ira-build.c (create_bb_allocnos): Skip debug insns.
3853 * tree-flow-inline.h (has_zero_uses): Discount debug stmts.
3854 (has_single_use): Likewise.
3855 (single_imm_use): Likewise.
3856 (num_imm_uses): Likewise.
3857 * tree-ssa-phiopt.c (empty_block_p): Skip debug stmts.
3858 * tree-ssa-coalesce.c (build_ssa_conflict_graph): Skip debug stmts.
3859 (create_outofssa_var_map): Likewise.
3860 * lower-subreg.c (adjust_decomposed_uses): New.
3861 (resolve_debug): New.
3862 (decompose_multiword_subregs): Use it.
3863 * tree-dfa.c (find_referenced_vars): Skip debug stmts.
3864 * emit-rtl.c: Include params.h.
3865 (cur_debug_insn_uid): Define.
3866 (set_new_first_and_last_insn): Set cur_debug_insn_uid too.
3867 (copy_rtx_if_shared_1): Handle debug insns.
3868 (reset_used_flags): Likewise.
3869 (set_used_flags): LIkewise.
3870 (get_max_insn_count): New.
3871 (next_nondebug_insn): New.
3872 (prev_nondebug_insn): New.
3873 (make_debug_insn_raw): New.
3874 (emit_insn_before_noloc): Handle debug insns.
3875 (emit_jump_insn_before_noloc): Likewise.
3876 (emit_call_insn_before_noloc): Likewise.
3877 (emit_debug_insn_before_noloc): New.
3878 (emit_insn_after_noloc): Handle debug insns.
3879 (emit_jump_insn_after_noloc): Likewise.
3880 (emit_call_insn_after_noloc): Likewise.
3881 (emit_debug_insn_after_noloc): Likewise.
3882 (emit_insn_after): Take loc from earlier non-debug insn.
3883 (emit_jump_insn_after): Likewise.
3884 (emit_call_insn_after): Likewise.
3885 (emit_debug_insn_after_setloc): New.
3886 (emit_debug_insn_after): New.
3887 (emit_insn_before): Take loc from later non-debug insn.
3888 (emit_jump_insn_before): Likewise.
3889 (emit_call_insn_before): Likewise.
3890 (emit_debug_insn_before_setloc): New.
3891 (emit_debug_insn_before): New.
3892 (emit_insn): Handle debug insns.
3893 (emit_debug_insn): New.
3894 (emit_jump_insn): Handle debug insns.
3895 (emit_call_insn): Likewise.
3897 (init_emit): Take min-nondebug-insn-uid into account.
3898 Initialize cur_debug_insn_uid.
3899 (emit_copy_of_insn_after): Handle debug insns.
3900 * cfgexpand.c (gimple_assign_rhs_to_tree): Do not overwrite
3901 location of single rhs in place.
3902 (maybe_dump_rtl_for_gimple_stmt): Dump lineno.
3903 (floor_sdiv_adjust): New.
3904 (cell_sdiv_adjust): New.
3905 (cell_udiv_adjust): New.
3906 (round_sdiv_adjust): New.
3907 (round_udiv_adjust): New.
3908 (wrap_constant): Moved from cselib.
3909 (unwrap_constant): New.
3910 (expand_debug_expr): New.
3911 (expand_debug_locations): New.
3912 (expand_gimple_basic_block): Drop hiding redeclaration. Expand
3914 (gimple_expand_cfg): Expand debug locations.
3915 * cselib.c: Include tree-pass.h.
3916 (struct expand_value_data): New.
3917 (cselib_record_sets_hook): New.
3918 (PRESERVED_VALUE_P, LONG_TERM_PRESERVED_VALUE_P): New.
3919 (cselib_clear_table): Move, and implemnet in terms of...
3920 (cselib_reset_table_with_next_value): ... this.
3921 (cselib_get_next_unknown_value): New.
3922 (discard_useless_locs): Don't discard preserved values.
3923 (cselib_preserve_value): New.
3924 (cselib_preserved_value_p): New.
3925 (cselib_preserve_definitely): New.
3926 (cselib_clear_preserve): New.
3927 (cselib_preserve_only_values): New.
3928 (new_cselib_val): Take rtx argument. Dump it in details.
3929 (cselib_lookup_mem): Adjust.
3930 (expand_loc): Take regs_active in struct. Adjust. Silence
3931 dumps unless details are requested.
3932 (cselib_expand_value_rtx_cb): New.
3933 (cselib_expand_value_rtx): Rename and reimplment in terms of...
3934 (cselib_expand_value_rtx_1): ... this. Adjust. Silence dumps
3935 without details. Copy more subregs. Try to resolve values
3936 using a callback. Wrap constants.