1 2009-10-01 Nick Clifton <nickc@redhat.com>
3 * config/vax/netbsd-elf.h (NETBSD_CC1_AND_CC1PLUS_SPEC): Define as
4 an empty string if not already defined.
6 2009-10-01 Martin Jambor <mjambor@suse.cz>
9 * tree-sra.c (is_va_list_type): New function.
10 (find_var_candidates): Call is_va_list_type.
11 (find_param_candidates): Check that the type or the type pointed
12 to are not va_list types.
14 2009-10-01 Martin Jambor <mjambor@suse.cz>
17 * cp/pt.c (function_parameter_expanded_from_pack_p): Return false if
18 DECL_ARTIFICIAL (param_decl) is true.
20 2009-09-30 Gabriel Dos Reis <gdr@cs.tamu.edu>
22 * tree.h (tree_decl_common::lang_flag_8): New.
23 * c-common.c (c_common_reswords): Include "constexpr" as C++0x
25 * c-common.h (RID_CONSTEXPR): New.
27 2009-09-30 Uros Bizjak <ubizjak@gmail.com>
29 * config/alpha/alpha.c (alpha_gimplify_va_arg_1):
31 (alpha_gimplify_va_arg): Ditto.
33 2009-09-30 Jakub Jelinek <jakub@redhat.com>
36 * cfgloopanal.c (num_loop_insns): Don't increment ninsns for each bb
37 before insn counting loop now that BB_END (bb) is counted. Ensure
38 the return value isn't zero.
40 2009-09-30 Nick Clifton <nickc@redhat.com>
42 * config.gcc (sh-symbianelf): Replace definition of extra_objs
43 with separate definitions of c_target_objs and cxx_target_objs.
44 * config/sh/t-sh: Add rules to build symbian-cxx.o, symbian-c.o
46 * config/sh/sh.c (TARGET_CXX_INPUT_EXPORT_CLASS): Use
47 sh_symbian_import_export_class.
48 * config/sh/sh-protos.h: Fix names of exported symbian functions.
49 * config/sh/symbian.c: Delete, moving code into...
50 * config/sh/symbian-base.c: ... here
51 * config/sh/symbian-c.c: ... and here
52 * config/sh/symbian-cxx.c: ... and here.
54 2009-09-30 Uros Bizjak <ubizjak@gmail.com>
57 * config/alpha/alpha.md (unaligned_storehi_be): Force operand
58 of plus RTX into register.
60 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
62 * doc/install.texi: Linguistic and markup fixes.
63 (Configuration) <--disable-cpp>: Remove description.
64 <--enable-maintainer-mode>: Autotools files are affected, too.
65 <--with-sysroot>: Improve description.
66 (Building): Bump required GNU make version.
68 2009-09-29 Harsha Jagasia <harsha.jagasia@amd.com>
70 * config.gcc (i[34567]86-*-*): Include fma4intrin.h.
73 * config/i386/fma4intrin.h: New file, provide common x86 compiler
75 * config/i386/cpuid.h (bit_FMA4): Define FMA4 bit.
76 * config/i386/x86intrin.h: Fix typo to SSE4A instead of SSE4a.
77 Add FMA4 check and fma4intrin.h.
78 * config/i386/i386-c.c(ix86_target_macros_internal): Check
80 * config/i386/i386.h(TARGET_FMA4): New macro for FMA4.
81 * config/i386/i386.md (UNSPEC_FMA4_INTRINSIC): Add new UNSPEC
82 constant for FMA4 support.
83 (UNSPEC_FMA4_FMADDSUB): Ditto.
84 (UNSPEC_FMA4_FMSUBADD): Ditto.
85 * config/i386/i386.opt (-mfma4): New switch for FMA4 support.
86 * config/i386/i386-protos.h (ix86_fma4_valid_op_p): Add declaration.
87 (ix86_expand_fma4_multiple_memory): Ditto.
88 * config/i386/i386.c (OPTION_MASK_ISA_FMA4_SET): New.
89 (OPTION_MASK_ISA_FMA4_UNSET): New.
90 (OPTION_MASK_ISA_SSE4A_UNSET): Change definition to depend on FMA4.
91 (OPTION_MASK_ISA_AVX_UNSET): Change definition to depend on FMA4.
92 (ix86_handle_option): Handle -mfma4.
93 (isa_opts): Handle -mfma4.
94 (enum pta_flags): Add PTA_FMA4.
95 (override_options): Add FMA4 support.
96 (IX86_BUILTIN_VFMADDSS): New for FMA4 intrinsic.
97 (IX86_BUILTIN_VFMADDSD): Ditto.
98 (IX86_BUILTIN_VFMADDPS): Ditto.
99 (IX86_BUILTIN_VFMADDPD): Ditto.
100 (IX86_BUILTIN_VFMSUBSS): Ditto.
101 (IX86_BUILTIN_VFMSUBSD): Ditto.
102 (IX86_BUILTIN_VFMSUBPS): Ditto.
103 (IX86_BUILTIN_VFMSUBPD): Ditto.
104 (IX86_BUILTIN_VFMADDSUBPS): Ditto.
105 (IX86_BUILTIN_VFMADDSUBPD): Ditto.
106 (IX86_BUILTIN_VFMSUBADDPS): Ditto.
107 (IX86_BUILTIN_VFMSUBADDPD): Ditto.
108 (IX86_BUILTIN_VFNMADDSS): Ditto.
109 (IX86_BUILTIN_VFNMADDSD): Ditto.
110 (IX86_BUILTIN_VFNMADDPS): Ditto.
111 (IX86_BUILTIN_VFNMADDPD): Ditto.
112 (IX86_BUILTIN_VFNMSUBSS): Ditto.
113 (IX86_BUILTIN_VFNMSUBSD): Ditto.
114 (IX86_BUILTIN_VFNMSUBPS): Ditto.
115 (IX86_BUILTIN_VFNMSUBPD): Ditto.
116 (IX86_BUILTIN_VFMADDPS256): Ditto.
117 (IX86_BUILTIN_VFMADDPD256): Ditto.
118 (IX86_BUILTIN_VFMSUBPS256): Ditto.
119 (IX86_BUILTIN_VFMSUBPD256): Ditto.
120 (IX86_BUILTIN_VFMADDSUBPS256): Ditto.
121 (IX86_BUILTIN_VFMADDSUBPD256): Ditto.
122 (IX86_BUILTIN_VFMSUBADDPS256): Ditto.
123 (IX86_BUILTIN_VFMSUBADDPD256): Ditto.
124 (IX86_BUILTIN_VFNMADDPS256): Ditto.
125 (IX86_BUILTIN_VFNMADDPD256): Ditto.
126 (IX86_BUILTIN_VFNMSUBPS256): Ditto.
127 (IX86_BUILTIN_VFNMSUBPD256): Ditto.
128 (enum multi_arg_type): New enum for describing the various FMA4
129 intrinsic argument types.
130 (bdesc_multi_arg): New table for FMA4 intrinsics.
131 (ix86_init_mmx_sse_builtins): Add FMA4 intrinsic support.
132 (ix86_expand_multi_arg_builtin): New function for creating FMA4
134 (ix86_expand_builtin): Add FMA4 intrinsic support.
135 (ix86_fma4_valid_op_p): New function to validate FMA4 3 and 4
136 operand instructions.
137 (ix86_expand_fma4_multiple_memory): New function to split the
138 second memory reference from FMA4 instructions.
139 * config/i386/sse.md (ssemodesuffixf4): New mode attribute for FMA4.
140 (ssemodesuffixf2s): Ditto.
141 (fma4_fmadd<mode>4): Add FMA4 floating point multiply/add
143 (fma4_fmsub<mode>4): Ditto.
144 (fma4_fnmadd<mode>4): Ditto.
145 (fma4_fnmsub<mode>4): Ditto.
146 (fma4_vmfmadd<mode>4): Ditto.
147 (fma4_vmfmsub<mode>4): Ditto.
148 (fma4_vmfnmadd<mode>4): Ditto.
149 (fma4_vmfnmsub<mode>4): Ditto.
150 (fma4_fmadd<mode>4256): Ditto.
151 (fma4_fmsub<mode>4256): Ditto.
152 (fma4_fnmadd<mode>4256): Ditto.
153 (fma4_fnmsub<mode>4256): Ditto.
154 (fma4_fmaddsubv8sf4): Ditto.
155 (fma4_fmaddsubv4sf4): Ditto.
156 (fma4_fmaddsubv4df4): Ditto.
157 (fma4_fmaddsubv2df4): Ditto.
158 (fma4_fmsubaddv8sf4): Ditto.
159 (fma4_fmsubaddv4sf4): Ditto.
160 (fma4_fmsubaddv4df4): Ditto.
161 (fma4_fmsubaddv2df4): Ditto.
162 (fma4i_fmadd<mode>4): Add FMA4 floating point multiply/add
163 instructions for intrinsics.
164 (fma4i_fmsub<mode>4): Ditto.
165 (fma4i_fnmadd<mode>4): Ditto.
166 (fma4i_fnmsub<mode>4): Ditto.
167 (fma4i_vmfmadd<mode>4): Ditto.
168 (fma4i_vmfmsub<mode>4): Ditto.
169 (fma4i_vmfnmadd<mode>4): Ditto.
170 (fma4i_vmfnmsub<mode>4): Ditto.
171 (fma4i_fmadd<mode>4256): Ditto.
172 (fma4i_fmsub<mode>4256): Ditto.
173 (fma4i_fnmadd<mode>4256): Ditto.
174 (fma4i_fnmsub<mode>4256): Ditto.
175 (fma4i_fmaddsubv8sf4): Ditto.
176 (fma4i_fmaddsubv4sf4): Ditto.
177 (fma4i_fmaddsubv4df4): Ditto.
178 (fma4i_fmaddsubv2df4): Ditto.
179 (fma4i_fmsubaddv8sf4): Ditto.
180 (fma4i_fmsubaddv4sf4): Ditto.
181 (fma4i_fmsubaddv4df4): Ditto.
182 (fma4i_fmsubaddv2df4): Ditto.
184 * doc/invoke.texi (-mfma4): Add documentation.
185 * doc/extend.texi (x86 intrinsics): Add FMA4 intrinsics.
187 2009-09-29 Richard Henderson <rth@redhat.com>
189 * tree-eh.c (unsplit_eh): Do not unsplit if there's already
190 an edge to the new destination block.
192 2009-09-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
195 * pa.c (hppa_profile_hook): Use
196 make_reg_eh_region_note_nothrow_nononlocal to add REG_EH_REGION note.
198 2009-09-29 Steve Ellcey <sje@cup.hp.com>
199 Alexander Monakov <amonakov@ispras.ru>
202 * config/ia64/predicates.md (not_postinc_destination_operand): New.
203 (not_postinc_memory_operand): New.
204 (not_postinc_move_operand): New.
205 * config/ia64/ia64.md (*cmovdi_internal): Disallow autoincrement.
206 (*cmovsi_internal): Ditto.
208 2009-09-29 Pat Haugen <pthaugen@us.ibm.com>
210 * config/rs6000/rs6000.c (rs6000_issue_rate): Don't artificially
211 restrict issue_rate in first pass when scheduling for register
214 2009-09-29 Basile Starynkevitch <basile@starynkevitch.net>
215 Rafael Avila de Espindola <espindola@google.com>
217 * gengtype.c (plugin_output): New.
218 (get_output_file_with_visibility): Return plugin_output for plugins.
219 (main): Parse and use the -P option.
220 * gty.texi: Update the command line format.
222 2009-09-29 Jakub Jelinek <jakub@redhat.com>
225 * dwarf2out.c (const_ok_for_output_1, const_ok_for_output): New
227 (mem_loc_descriptor, loc_descriptor, add_const_value_attribute): Bail
228 out if !const_ok_for_output.
231 * dwarf2out.c (mem_loc_descriptor) <case CONCAT, case CONCATN,
232 case VAR_LOCATION>: Remove gcc_unreachable ().
234 2009-09-29 Harsha Jagasia <harsha.jagasia@amd.com>
236 * config.gcc (i[34567]86-*-*): Remove mmintrin-common.h.
238 * config/i386/smmintrin.h: Move instructions in mmintrin-common.h
240 * config/i386/cpuid.h: (bit_SSE5): Remove SSE5 bit.
241 * config/i386/x86intrin.h: Remove SSE5.
242 * config/i386/mmintrin-common.h: Delete file.
243 * doc/extend.texi (x86 intrinsics): Remove SSE5 flags and builtins.
245 2009-09-29 Richard Guenther <rguenther@suse.de>
247 * alias.c (ao_ref_from_mem): Properly deal with off decl accesses
248 resulting from stack temporaries on STRICT_ALIGNMENT targets.
250 2009-09-29 Nick Clifton <nickc@redhat.com>
252 * function.c (current_function_name): If there is no current
253 function just return "<none>".
255 2009-09-28 Sriraman Tallam <tmsriram@google.com>
257 * tree-pass.h (register_pass_info): New structure.
258 (pass_positioning_ops): Move enum from gcc-plugin.h.
259 (register_pass): New function.
260 * gcc-plugin.h (plugin_pass): Delete structure.
261 (pass_positioning_ops): Delete enum.
262 * plugin.c (regsiter_pass): Delete function.
263 (position_pass): Delete function.
264 (added_pass_nodes): Delete variable.
265 (prev_added_pass_nodes): Delete variable.
266 (pass_list_node): Delete structure.
267 * passes.c (make_pass_instance): New function.
268 (next_pass_1): Change to call make_pass_instance.
269 (pass_list_node): Move structure from gcc-plugin.h.
270 (added_pass_nodes): Move variable from plugin.c.
271 (prev_added_pass_nodes): Move variable from plugin.c.
272 (position_pass): New function.
273 (register_pass): New function.
275 2009-09-28 Easwaran Raman <eraman@google.com>
277 * ifcvt.c (noce_try_abs): Recognize pattern and call
278 expand_one_cmpl_abs_nojump.
279 * optabs.c (expand_one_cmpl_abs_nojump): New function.
280 * optabs.h (expand_one_cmpl_abs_nojump): Declare.
282 2009-09-28 Ian Lance Taylor <iant@google.com>
285 * c-opts.c (c_common_handle_option): Don't set
286 warn_jump_misses_init for -Wall.
287 * doc/invoke.texi (Warning Options): Update documentation.
289 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
291 * Makefile.in ($(out_object_file)): Depend on
292 gt-$(basename $(notdir $(out_file))).h.
294 2009-09-28 Richard Henderson <rth@redhat.com>
296 * except.h (struct eh_region_d): Add use_cxa_end_cleanup.
297 * except.c (gen_eh_region): Set it.
298 (duplicate_eh_regions_1): Copy it.
299 * tree-eh.c (lower_resx): Use it to determine which function
302 * langhooks.h (struct lang_hooks): Add eh_use_cxa_end_cleanup.
303 * langhooks-def.h (LANG_HOOKS_EH_USE_CXA_END_CLEANUP): New.
304 * builtins.def (BUILT_IN_CXA_END_CLEANUP): New.
305 * tree.c (build_common_builtin_nodes): Remove parameter. Build
306 BUILT_IN_CXA_END_CLEANUP if necessary.
308 * c-common.c (c_define_builtins): Update call to
309 build_common_builtin_nodes.
311 2009-09-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
313 * spu.c (get_branch_target): Return NULL for ASM_OPERANDS patterns.
315 2009-09-28 Michael Matz <matz@suse.de>
317 * builtins.c (interclass_mathfn_icode): New helper.
318 (expand_builtin_interclass_mathfn): Use it here, and split folding
320 (fold_builtin_interclass_mathfn): ... this new folder.
321 (build_call_nofold_loc): New static helper.
322 (build_call_nofold): New wrapper macro for above.
323 (expand_builtin_int_roundingfn): Use it instead of build_call_expr.
324 (expand_builtin_pow): Ditto.
325 (expand_builtin_memset_args): Ditto.
326 (expand_builtin_printf): Ditto.
327 (expand_builtin_fprintf): Ditto.
328 (expand_builtin_sprintf): Ditto.
329 (expand_builtin_memory_chk): Ditto.
330 (expand_builtin_mempcpy_args): Ditto and don't call folders.
331 (expand_builtin_stpcpy): Ditto.
332 (expand_builtin_strcmp): Ditto.
333 (expand_builtin_strncmp): Ditto.
334 (expand_builtin_strcpy): Remove FNDECL and MODE arguments.
335 (expand_builtin_strcpy_args): Don't call folders.
336 (expand_builtin_memcmp): Ditto.
337 (expand_builtin_strncpy): Ditto, and use target.
338 (expand_builtin_memcpy): Ditto.
339 (expand_builtin_strstr, expand_builtin_strchr, expand_builtin_strrchr,
340 expand_builtin_strpbrk, expand_builtin_memmove,
341 expand_builtin_memmove_args, expand_builtin_bcopy,
342 expand_builtin_memchr, expand_builtin_strcat, expand_builtin_strncat,
343 expand_builtin_strspn, expand_builtin_strcspn,
344 expand_builtin_fputs): Remove these.
345 (expand_builtin): Don't call the above, change calls to other
346 expanders that changed prototype.
347 (fold_builtin_stpcpy): New folder split out from expand_builtin_stpcpy.
348 (fold_builtin_1 <ISFINITE, ISINF, ISNORMAL>): Call
349 fold_builtin_interclass_mathfn.
350 (fold_builtin_2 <STPCPY>): Call fold_builtin_stpcpy.
351 (fold_builtin_strcat): Add folding split from expand_builtin_strcat.
353 * fold-const.c (fold_binary_loc <NE_EXPR>): Add !exp != 0 -> !exp.
354 * passes.c (init_optimization_passes): Move pass_fold_builtins
355 after last phiopt pass.
356 * tree-inline.c (fold_marked_statements): When folding builtins
357 iterate over all instruction potentially generated.
358 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Declare
360 (fold_gimple_call): Use it to always fold calls (into potentially
361 multiple instructions).
362 * tree-ssa-dom.c (optimize_stmt): Resolve __builtin_constant_p
363 calls into zero at this time.
364 * tree-ssa-propagate.c (substitute_and_fold): Ignore multiple
365 statements generated by builtin folding.
367 2009-09-28 Nick Clifton <nickc@redhat.com>
369 * config/m32r/m32r.c (m32r_is_insn): Return false for debugging
372 2009-09-28 Duncan Sands <baldrick@free.fr>
374 * gcc-plugin.h (PLUGIN_REGISTER_GGC_CACHES): New event.
375 * plugin.c (plugin_event_name): Add PLUGIN_REGISTER_GGC_CACHES.
376 (register_callback): Dispatch it.
377 (invoke_plugin_callbacks): Incorporate in sanity check.
378 * ggc.h (ggc_register_cache_tab): Add declaration.
379 * ggc-common.c (ggc_register_root_tab): Simplify.
380 (const_ggc_cache_tab_t): New typedef.
381 (extra_cache_vec): New vector of dynamically added cache tables.
382 (ggc_register_cache_tab): New function.
383 (ggc_scan_cache_tab): New function.
384 (ggc_mark_roots): Simplify dynamic roots. Handle dynamic caches.
385 * doc/plugins.texi: Document PLUGIN_REGISTER_GGC_CACHES.
387 2009-09-27 Richard Henderson <rth@redhat.com>
389 * tree-ssa-ccp.c (optimize_stack_restore): Relax the conditions under
390 which we remove __builtin_stack_restore.
392 2009-09-27 Bernd Schmidt <bernd.schmidt@analog.com>
394 * loop-iv.c (iv_analyze_op): Use function_invariant_p, not CONSTANT_P,
395 to test for GRD_INVARIANT.
396 (simple_rhs_p): Anything that's function_invariant_p is fine.
398 2009-09-27 Rafael Avila de Espindola <espindola@google.com>
400 * gengtype.c (main): Use plunge_files instead of plugin_output.
402 2009-09-27 Basile Starynkevitch <basile@starynkevitch.net>
403 Rafael Avila de Espindola <espindola@google.com>
405 * gengtype.c (write_root, write_roots): Add a emit_pch argument.
406 Don't print pch related info if it is false.
407 (main): Don't print pch info in plugin mode.
409 2009-09-27 Eric Botcazou <ebotcazou@adacore.com>
411 * dwarf2out.c (enum dw_val_class): Replace dw_val_class_long_long
412 with dw_val_class_const_double.
413 (struct dw_val_struct): Replace val_long_long with val_double and
414 adjust for above change.
415 (output_loc_operands): Likewise.
416 (add_AT_long_long): Rename into...
417 (add_AT_double): ...this.
418 (print_die): Replace dw_val_class_long_long with
419 dw_val_class_const_double and adjust.
420 (attr_checksum): Likewise.
421 (same_dw_val_p): Likewise.
422 (size_of_die): Likewise.
423 (value_format): Likewise.
424 (output_die): Likewise.
425 (loc_descriptor) <CONST_DOUBLE>: Likewise.
426 (add_const_value_attribute) <CONST_DOUBLE>: Call add_AT_double
427 instead of add_AT_long_long.
428 (add_bound_info) <INTEGER_CST>: Generate the bound as an unsigned
429 value with the precision of its type.
431 2009-09-27 Andreas Schwab <schwab@linux-m68k.org>
434 * c-typeck.c (build_conditional_expr): Use the readonly and
435 volatile flags of the operand types, not of the operands itself.
437 2009-09-27 Peter O'Gorman <pogma@thewrittenword.com>
439 collect2.c (main): Look for -brtl before adding libraries.
441 2009-09-27 Jonathan Gray <jsg@openbsd.org>
443 * config.gcc: Update OpenBSD targets.
444 * config/openbsd-stdint.h: New file.
445 * config/openbsd-libpthread.h: New file.
446 * config/openbsd.h: Update and break out LIB_SPEC definition.
447 * config/alpha/openbsd.h: Overhaul to reflect ELF migration.
448 * config/i386/openbsdelf.h: Correct types.
449 * config/m68k/openbsd.h: Likewise.
450 * config/mips/openbsd.h: Likewise.
451 * config/vax/openbsd.h: Likewise.
453 2009-09-27 Eric Botcazou <ebotcazou@adacore.com>
455 * fold-const.c (maybe_lvalue_p): Return false for M(IN|AX)_EXPR.
456 (extract_muldiv_1) <MINUS_EXPR>: Swap operands if necessary.
457 * stor-layout.c (layout_type) <ARRAY_TYPE>: Do not take the maximum
458 of the length and zero.
460 2009-09-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
462 * Makefile.in (TOPLEV_H): Use $(INPUT_H) not input.h.
463 (FLAGS_H): Add options.h $(REAL_H).
464 (SEL_SCHED_IR_H): Add $(BITMAP_H) vecprim.h $(CFGLOOP_H).
465 (TREE_VECTORIZER_H): New.
466 (EBITMAP_H): Renamed from EBIMAP_H.
467 (c-decl.o, c-objc-common.o, c-pretty-print.o, attribs.o, c-omp.o)
468 (gtype-desc.o, ggc-common.o, ggc-page.o, ggc-zone.o, langhooks.o)
469 (tree.o, tree-ssa-structalias.o, tree-ssa-ter.o, tree-ssanames.o)
470 (tree-phinodes.o, tree-ssa-loop.o, tree-ssa-math-opts.o)
471 (gimple-low.o, omp-low.o, sese.o, graphite-blocking.o)
472 (graphite-clast-to-gimple.o, graphite-dependences.o)
473 (graphite-interchange.o, graphite-poly.o, graphite-scop-detection.o)
474 (graphite-sese-to-poly.o, tree-vect-loop.o, tree-vect-loop-manip.o)
475 (tree-vect-patterns.o, tree-vect-slp.o, tree-vect-stmts.o)
476 (tree-vect-data-refs.o, tree-vectorizer.o, gimple.o, tree-mudflap.o)
477 (targhooks.o, stmt.o, emit-rtl.o, ipa.o, matrix-reorg.o, ipa-inline.o)
478 (gcse.o, tree-ssa-ccp.o, df-byte-scan.o, vec.o, caller-save.o)
479 (ira-build.o, ira-costs.o, ira-color.o, ira-emit.o, ira.o)
480 (haifa-sched.o, sched-rgn.o, sel-sched.o, sel-sched-dump.o)
481 (sel-sched-ir.o, final.o, $(out_object_file)): Dependencies
482 updated and fixed as per above changes and per
483 check_makefile_deps.sh output.
486 * configure.ac: Use $LIBS for '-ldl', not $LDFLAGS.
487 * configure: Regenerate.
489 2009-09-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
491 * doc/install.texi: Update minimum MPC version to 0.7.
493 2009-09-26 Gerald Pfeifer <gerald@pfeifer.com>
495 * doc/install.texi (Binaries): Remove reference to the binary
496 distribution CD-ROM from the FSF.
498 2009-09-26 Michael Matz <matz@suse.de>
502 * tree-ssa-coalesce.c (coalesce_ssa_name): Add only SSA names
503 that are mentioned in the body.
505 2009-09-26 Michael Matz <matz@suse.de>
507 PR tree-optimization/41454
508 * tree-ssa-dom (stmts_to_rescan): Remove variable.
509 (tree_ssa_dominator_optimize): Don't allocate and free it.
510 (dom_opt_leave_block): Don't iterate over it.
511 (eliminate_redundant_computations): Don't return a value.
512 (cprop_operand, cprop_into_stmt): Ditto.
513 (optimize_stmt): Don't defer updating stmts.
515 2009-09-25 Dodji Seketeli <dodji@redhat.com>
517 * dwarf2out.c (dwarf_tag_name, gen_generic_params_dies,
518 generic_parameter_die, template_parameter_pack_die,
519 gen_formal_parameter_die, gen_subprogram_die): Adjust after renaming
520 DW_TAG_formal_parameter_pack and DW_TAG_template_parameter_pack into
521 DW_TAG_GNU_formal_parameter_pack and DW_TAG_GNU_template_parameter_pack.
523 2009-09-25 Anatoly Sokolov <aesok@post.ru>
525 * config/v850/v850.h (FUNCTION_VALUE): Remove.
526 * config/v850/v850.c (v850_function_value): New function.
527 (TARGET_FUNCTION_VALUE): Define.
529 2009-09-25 Jakub Jelinek <jakub@redhat.com>
531 * tree-vect-stmts.c (vectorizable_call): Call
532 mark_symbols_for_renaming after vect_finish_stmt_generation.
534 * dwarf2out.c (tls_mem_loc_descriptor): Pass 1 instead of 2
535 to loc_descriptor_from_tree.
536 (add_location_or_const_value_attribute): Pass 0 instead of 2
537 for decl_by_reference_p decls.
539 2009-09-25 Richard Guenther <rguenther@suse.de>
542 * tree-dfa.c (get_ref_base_and_extent): Fix issue with trailing
545 2009-09-25 Ben Elliston <bje@au.ibm.com>
547 * doc/invoke.texi (RS/6000 and PowerPC Options): Add missing comma
550 2009-09-25 Alan Modra <amodra@bigpond.net.au>
552 * config/rs6000/rs6000.md (load_toc_v4_PIC_3c): Correct POWER
555 2009-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
558 * fold-const.c (const_binop): Handle complex int division.
559 * tree-complex.c (expand_complex_div_straight,
560 expand_complex_div_wide): Update comments.
562 2009-09-24 DJ Delorie <dj@redhat.com>
565 * config/m32c/m32c.h (REG_CLASS_CONTENTS): Add R13.
566 (reg_class): Likewise.
567 (REG_CLASS_NAMES): Likewise.
568 * config/m32c/m32c.c (m32c_reg_class_from_constraint): Likewise.
570 * config/m32c/m32c.c (m32c_override_options): Disable -fivopts for
573 2009-09-24 Michael Meissner <meissner@linux.vnet.ibm.com>
575 * config/rs6000/predicates.md (indexed_or_indirect_operand):
576 Delete VSX load/store with update support.
577 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Ditto.
578 * config/rs6000/vsx.md (vsx_mov<mode>): Ditto.
582 (VStype_load_update): Ditto.
583 (VStype_store_update): Ditto.
584 (vsx_load<VSX_U:mode>_update_<P:mptrsize>): Ditto.
585 (vsx_store<VSX_U:mode>_update_<P:mptrsize>): Ditto.
587 * config/rs6000/rs6000.h (enum rs6000_builtins): Delete VSX
588 load/store with update builtins.
590 2009-09-24 Kai Tietz <kai.tietz@onevision.com>
592 * libgcc2.c (L_trampoline): Prototype for getpagesize
593 and mprotect in WINNT case.
595 2009-09-24 Anatoly Sokolov <aesok@post.ru>
597 * config/rs6000/rs6000.h (FUNCTION_VALUE): Remove macro.
598 * config/rs6000/rs6000-protos.h (rs6000_function_value): Remove.
599 * config/rs6000/rs6000.c (rs6000_function_value): Make static, add
601 (TARGET_FUNCTION_VALUE): Define.
603 2009-09-24 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
605 * config/darwin.h (DWARF2_DEBUGGING_INFO): Define as 1.
607 2009-09-24 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
610 * common.opt: Initialize dwarf_strict to -1.
611 * toplev.c (process_options): Catch unset dwarf_strict
612 and set to 0 for all targets not overriding.
613 * config/darwin.c (darwin_override_options): Catch unset
614 dwarf_strict and override to 1.
616 2009-09-24 Jeff Law <law@redhat.com>
618 * tree-into-ssa.c (rewrite_into_ssa): Free interesting_blocks.
620 2009-09-24 Richard Guenther <rguenther@suse.de>
622 PR tree-optimization/36143
623 PR tree-optimization/38747
624 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Only
625 create VIEW_CONVERT_EXPRs for TBAA compatible accesses.
627 2009-09-24 Jakub Jelinek <jakub@redhat.com>
630 * dwarf2out.c (add_const_value_attribute): For HIGH and CONST_FIXED,
631 return false instead of gcc_unreachable (). For CONST return the
632 value returned by recursive call instead of always returning true.
633 (tree_add_const_value_attribute): Return the value returned by
634 add_const_value_attribute instead of always returning true if rtl
637 2009-09-23 Justin Seyster <jrseys@gmail.com>
639 * Makefile.in (PLUGIN_HEADERS): Include real.h.
641 2009-09-24 Jakub Jelinek <jakub@redhat.com>
643 * cgraphunit.c (cgraph_lower_function): Revert last change.
644 * targhooks.c (default_static_chain): Use !DECL_STATIC_CHAIN
645 instead of DECL_NO_STATIC_CHAIN.
646 * tree-cfg.c (verify_gimple_call): Likewise.
647 * tree-nested.c (get_chain_decl, get_chain_field,
648 convert_tramp_reference_op, convert_gimple_call): Likewise.
649 (convert_all_function_calls): Likewise. Always set or clear
650 DECL_STATIC_CHAIN initially, for !n->outer clear it.
651 (lower_nested_functions): Remove DECL_NO_STATIC_CHAIN checking code.
652 * c-parser.c (c_parser_declaration_or_fndef): Set DECL_STATIC_CHAIN
654 * print-tree.c (print_node): Handle DECL_STATIC_CHAIN instead of
655 DECL_NO_STATIC_CHAIN.
656 * config/i386/i386.c (ix86_static_chain): Use !DECL_STATIC_CHAIN
657 instead of DECL_NO_STATIC_CHAIN.
658 (ix86_function_regparm, find_drap_reg): Likewise. Don't test
659 decl_function_context.
660 * varasm.c (initializer_constant_valid_p): Likewise.
661 * tree.h (DECL_NO_STATIC_CHAIN): Renamed to ...
662 (DECL_STATIC_CHAIN): ... this.
663 * config/moxie/moxie.c (moxie_static_chain): Use !DECL_STATIC_CHAIN
664 instead of DECL_NO_STATIC_CHAIN.
666 2009-09-23 Basile Starynkevitch <basile@starynkevitch.net>
667 Rafael Avila de Espindola <espindola@google.com>
669 * gengtype.c (nb_plugin_files): Make it unsigned to match
670 num_gt_files. Adjust other variables to avoid warnings.
671 (main): Allocate an all zero lang_bitmap before each plugin file name
672 to match regular file names.
674 2009-09-23 Richard Henderson <rth@redhat.com>
676 * doc/tm.texi (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
677 (TARGET_STATIC_CHAIN): Mention that this hook must be used for
678 static chain passed in memory.
679 * system.h (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Poison.
680 * targhooks.c (default_static_chain): Don't handle STATIC_CHAIN,
681 STATIC_CHAIN_INCOMING. Issue a sorry if there's no
682 STATIC_CHAIN_REGNUM defined.
684 * config/picochip/picochip-protos.h: s/class/klass/.
685 * config/picochip/picochip.c (TARGET_STATIC_CHAIN): New.
686 (picochip_static_chain): New.
687 * config/picochip/picochip.h (STATIC_CHAIN): Remove.
688 (STATIC_CHAIN_INCOMING): Remove.
690 * config/xtensa/xtensa.c (TARGET_STATIC_CHAIN): New.
691 (xtensa_static_chain): New.
692 * config/xtensa/xtensa.h (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
694 2009-09-23 Anatoly Sokolov <aesok@post.ru>
696 * config/pa/pa.h (FUNCTION_VALUE): Remove macro.
697 * config/pa/pa-protos.h (function_value): Remove.
698 * config/pa/pa.c (pa_function_value): Rename from function_value.
699 Make static, add 'outgoing' argument.
700 (TARGET_FUNCTION_VALUE): Define.
702 2009-09-23 Anatoly Sokolov <aesok@post.ru>
704 * config/avr/avr.c (avr_regs_to_save): Use current_function_is_leaf
705 instead of cfun->machine->is_leaf.
706 * config/avr/avr.h (machine_function): Remove is_leaf field.
708 2009-09-23 Jakub Jelinek <jakub@redhat.com>
711 * dwarf2out.c (address_of_int_loc_descriptor): Don't emit
712 DW_OP_piece after DW_OP_stack_value, adjust size calculations
713 for it, when DW_OP_stack_value and DW_OP_implicit_value has
714 the same size, prefer DW_OP_stack_value.
715 (loc_descriptor, loc_list_for_address_of_addr_expr_of_indirect_ref,
716 loc_list_from_tree): Don't emit DW_OP_piece after DW_OP_stack_value.
718 2009-09-23 Alexandre Oliva <aoliva@redhat.com>
721 * var-tracking.c (add_with_sets): Sort MO_VAL_LOC last among uses.
723 2009-09-23 Alexandre Oliva <aoliva@redhat.com>
726 * cfgexpand.c (convert_debug_memory_address): New.
727 (expand_debug_expr): Convert base address and offset to the same
728 mode. Use it to convert addresses to other modes. Accept
731 2009-09-23 Richard Guenther <rguenther@suse.de>
733 * alias.c (ao_ref_from_mem): Correct for negative MEM_OFFSET
734 produced for bigendian targets with promoted subregs.
736 2009-09-23 Richard Guenther <rguenther@suse.de>
738 * value-prof.c (gimple_ic): Purge old EH edges only after building
741 2009-09-23 Nick Clifton <nickc@redhat.com>
743 * config/arc/arc.c (arc_trampoline_init): Fix typo.
745 2009-09-23 Jakub Jelinek <jakub@redhat.com>
748 * doc/invoke.texi: Document -gstrict-dwarf and -gno-strict-dwarf.
751 * cgraphunit.c (cgraph_lower_function): Set DECL_NO_STATIC_CHAIN
752 on non-nested functions.
754 2009-09-23 Jakub Jelinek <jakub@redhat.com>
755 Jan Hubicka <jh@suse.cz>
757 * dwarf2out.c (loc_list_plus_const): Only define if
758 DWARF2_DEBUGGING_INFO.
759 (address_of_int_loc_descriptor): Likewise.
762 * dwarf2out.c (mem_loc_descriptor): Handle HIGH.
764 2009-09-23 Uros Bizjak <ubizjak@gmail.com>
767 * c-typeck.c (build_binary_op) <short_shift>: Check that integer
768 constant is more than zero.
770 2009-09-23 Alan Modra <amodra@bigpond.net.au>
773 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
774 call final to emit non-scheduled prologue, instead insert at entry.
776 2009-09-22 Loren J. Rittle <ljrittle@acm.org>
777 Joseph S. Myers <joseph@codesourcery.com>
779 * doc/install.texi (*-*-freebsd*): Add proper format codes.
781 2009-09-22 Basile Starynkevitch <basile@starynkevitch.net>
782 Rafael Avila de Espindola <espindola@google.com>
784 * gengtype.c (is_file_equal): New function.
785 (close_output_files): Use is_file_equal. Free of->buf.
787 2009-09-22 Basile Starynkevitch <basile@starynkevitch.net>
788 Rafael Avila de Espindola <espindola@google.com>
790 * gengtype.c (write_types, write_local): Add the output_header
791 argument. Update all callers.
793 2009-09-22 Dodji Seketeli <dodji@redhat.com>
795 * dwarf2out.c (template_parameter_pack_die,
796 gen_formal_parameter_pack_die ): New functions.
797 (make_ith_pack_parameter_name): Remove this function.
798 (dwarf_tag_name): Support printing DW_TAG_template_parameter_pack and
799 DW_TAG_formal_parameter_pack.
800 (gen_generic_params_dies): Represent each template parameter pack
801 by a DW_TAG_template_parameter_pack DIE. Argument pack elements are
802 represented by usual DW_TAG_template_*_parameter DIEs that are
803 children of the DW_TAG_template_parameter_pack element DIE.
804 (generic_parameter_die): This doesn't deal with parameter pack
805 names anymore. Don't generate DW_AT_name for some DIEs, e.g. children
806 of parameter pack DIEs.
807 (gen_formal_parameter_die): Add a flag to not emit DW_AT_name
808 in certain cases, e.g. for pack elements.
809 (gen_formal_types_die, gen_decl_die): Adjust usage of
810 gen_formal_parameter_die.
811 (gen_subprogram_die): Represent each function parameter pack by a
812 DW_TAG_formal_parameter_pack DIE. Arguments of of the pack are
813 represented by usual DW_TAG_formal_parameter DIEs that are children
814 of the DW_TAG_formal_parameter_pack DIE. Remove references to
815 ____builtin_va_alist decls as no part of the compiler uses those
817 * langhooks.h (struct lang_hooks_for_decls): Add
818 function_parm_expanded_from_pack_p, get_generic_function_decl
819 and function_parameter_pack_p hooks. Fix comment for
820 get_innermost_generic_parms hook.
821 * langhooks-def.h (LANG_HOOKS_FUNCTION_PARAMETER_PACK_P,
822 LANG_HOOKS_FUNCTION_PARM_EXPANDED_FROM_PACK_P ): Declare new hook
823 macros and use them to initialize lang_hook.
825 2009-09-22 Richard Henderson <rth@redhat.com>
827 * system.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE): Poison.
828 (TRAMPOLINE_ADJUST_ADDRESS): Poison.
829 * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): Don't conditionalize
830 on TRAMPOLINE_TEMPLATE.
831 (TARGET_TRAMPOLINE_ADJUST_ADDRESS): Don't conditionalize on
832 TRAMPOLINE_ADJUST_ADDRESS.
833 * targhooks.c (default_asm_trampoline_template): Remove.
834 (default_trampoline_adjust_address): Remove.
835 (default_trampoline_init): Don't handle INITIALIZE_TRAMPOLINE.
836 * targhooks.h: Update decls.
838 2009-09-22 Dave Korn <dave.korn.cygwin@gmail.com>
840 * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Enable.
841 * config/i386/cygwin.h (LIBGCJ_SONAME): Define.
842 * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
844 2009-09-22 Alexandre Oliva <aoliva@redhat.com>
847 * reload1.c (reload): Reset debug insns with pseudos without
850 2009-09-22 Janis Johnson <janis187@us.ibm.com>
852 * config/i386/i386.c (ix86_scalar_mode_supported_p): Don't return
853 unconditional true for decimal float modes.
854 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Ditto.
855 * config/s390/s390.c (s390_scalar_mode_supported_p): Ditto.
857 2009-09-22 Loren J. Rittle <ljrittle@acm.org>
859 * unwind-dw2-fde-glibc.c: Define and use USE_PT_GNU_EH_FRAME.
860 Enable a new case for __FreeBSD__ >= 7.
861 * crtstuff.c: Define USE_PT_GNU_EH_FRAME for __FreeBSD__ >= 7.
862 * config/t-freebsd: Define LIB2ADDEH and LIB2ADDEHDEP.
863 * config/freebsd-spec.h: Conditionally define LINK_EH_SPEC
864 and USE_LD_AS_NEEDED.
866 * doc/install.texi (*-*-freebsd*): Update target information.
868 2009-09-22 Richard Guenther <rguenther@suse.de>
871 * tree-dfa.c (get_ref_base_and_extent): Handle trailing
872 arrays really properly.
874 2009-09-22 Richard Henderson <rth@redhat.com>
877 * target.h (struct gcc_target): Add asm_out.trampoline_template,
878 calls.static_chain, calls.trampoline_init,
879 calls.trampoline_adjust_address.
880 * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
881 (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New.
882 (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
883 * builtins.c (expand_builtin_setjmp_receiver): Use
884 targetm.calls.static_chain; only clobber registers.
885 (expand_builtin_init_trampoline): Use targetm.calls.trampoline_init;
886 set up memory attributes properly for the trampoline block.
887 (expand_builtin_adjust_trampoline): Use
888 targetm.calls.trampoline_adjust_address.
889 * calls.c (prepare_call_address): Add fndecl argument. Use
890 targetm.calls.static_chain.
891 * df-scan.c (df_need_static_chain_reg): Remove.
892 (df_get_entry_block_def_set): Use targetm.calls.static_chain;
893 consolodate static chain handling.
894 * doc/tm.texi: Document new hooks.
895 * emit-rtl.c (static_chain_rtx, static_chain_incoming_rtx): Remove.
896 (init_emit_regs): Don't initialize them.
897 * expr.h (prepare_call_address): Update decl.
898 * final.c (profile_function): Use targetm.calls.static_chain.
899 * function.c (expand_function_start): Likewise.
900 * rtl.h (static_chain_rtx, static_chain_incoming_rtx): Remove.
901 * stmt.c (expand_nl_goto_receiver): Use targetm.calls.static_chain;
902 only clobber registers.
903 * targhooks.c (default_static_chain): New.
904 (default_asm_trampoline_template, default_trampoline_init): New.
905 (default_trampoline_adjust_address): New.
906 * targhooks.h: Declare them.
907 * varasm.c (assemble_trampoline_template): Use
908 targetm.asm_out.trampoline_template. Make the memory block const
911 * config/alpha/alpha.c (alpha_trampoline_init): Rename from
912 alpha_initialize_trampoline. Make static. Merge VMS parameter
913 differences into the TARGET_ABI_OPEN_VMS code block.
914 (TARGET_TRAMPOLINE_INIT): New.
915 * config/alpha/alpha.h (TRAMPOLINE_TEMPLATE): Remove.
916 (TRAMPOLINE_SECTION, INITIALIZE_TRAMPOLINE): Remove.
917 * config/alpha/vms.h (TRAMPOLINE_SIZE, TRAMPOLINE_ALIGNMENT): Remove.
918 (INITIALIZE_TRAMPOLINE): Remove.
920 * config/arc/arc.h (TRAMPOLINE_ALIGNMENT): New.
921 (TRAMPOLINE_TEMPLATE): Merge with ...
922 (INITIALIZE_TRAMPOLINE): ... this and move ...
923 * config/arc/arc.c (arc_trampoline_init): ... here.
924 (TARGET_TRAMPOLINE_INIT): New.
926 * config/arm/arm.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
927 (TARGET_TRAMPOLINE_INIT, TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
928 (arm_asm_trampoline_template): New.
929 (arm_trampoline_init, arm_trampoline_adjust_address): New.
930 * config/arm/arm.h (TRAMPOLINE_TEMPLATE, ARM_TRAMPOLINE_TEMPLATE,
931 THUMB2_TRAMPOLINE_TEMPLATE, THUMB1_TRAMPOLINE_TEMPLATE): Move all
932 code to arm_asm_trampoline_template.
933 (TRAMPOLINE_ADJUST_ADDRESS): Move code to
934 arm_trampoline_adjust_address.
935 (INITIALIZE_TRAMPOLINE): Move code to arm_trampoline_init;
936 adjust for target hook parameters.
938 * config/avr/avr.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE):
941 * config/bfin/bfin-protos.h (initialize_trampoline): Remove.
942 * config/bfin/bfin.c (bfin_asm_trampoline_template): New.
943 (bfin_trampoline_init): Rename from initialize_trampoline;
944 make static; update for target hook parameters.
945 (TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New.
946 * config/bfin/bfin.h (TRAMPOLINE_TEMPLATE): Move code to
947 bfin_asm_trampoline_template.
948 (INITIALIZE_TRAMPOLINE): Remove.
950 * config/cris/cris.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
951 TARGET_TRAMPOLINE_INIT, cris_asm_trampoline_template,
952 cris_trampoline_init): New.
953 * config/cris/cris.h (TRAMPOLINE_TEMPLATE): Move code to
954 cris_asm_trampoline_template.
955 (INITIALIZE_TRAMPOLINE): Move code to cris_trampoline_init;
956 adjust for target hook parameters.
958 * config/crx/crx.h (INITIALIZE_TRAMPOLINE): Remove.
960 * config/fr30/fr30.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
961 TARGET_TRAMPOLINE_INIT, fr30_asm_trampoline_template,
962 fr30_trampoline_init): New.
963 * config/fr30/fr30.h (TRAMPOLINE_TEMPLATE): Move code to
964 fr30_asm_trampoline_template.
965 (INITIALIZE_TRAMPOLINE): Move code to fr30_trampoline_init;
966 adjust for target hook parameters.
968 * config/frv/frv.c (TARGET_TRAMPOLINE_INIT): New.
969 (frv_trampoline_init): Rename from frv_initialize_trampoline;
970 make static, adjust arguments for TARGET_TRAMPOLINE_INIT hook.
971 * config/frv/frv.h (INITIALIZE_TRAMPOLINE): Remove.
972 * config/frv/frv-protos.h (frv_initialize_trampoline): Remove.
974 * config/h8300/h8300.c (h8300_trampoline_init): New.
975 (TARGET_TRAMPOLINE_INIT): New.
976 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Move code
977 to h8300_trampoline_init and adjust for hook parameters.
979 * config/ia64/ia64-protos.h (ia64_initialize_trampoline): Remove.
980 * config/ia64/ia64.c (TARGET_TRAMPOLINE_INIT): New.
981 (ia64_trampoline_init): Rename from ia64_initialize_trampoline;
982 make static; adjust for hook parameters.
983 * config/ia64/ia64.h (INITIALIZE_TRAMPOLINE): Remove.
985 * config/iq2000/iq2000.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
986 (TARGET_TRAMPOLINE_INIT): New.
987 (iq2000_asm_trampoline_template, iq2000_trampoline_init): New.
988 * config/iq2000/iq2000.h (TRAMPOLINE_TEMPLATE): Move code to
989 iq2000_asm_trampoline_template.
990 (INITIALIZE_TRAMPOLINE): Move code to iq2000_trampoline_init.
991 (TRAMPOLINE_CODE_SIZE): New.
992 (TRAMPOLINE_SIZE): Use it.
993 (TRAMPOLINE_ALIGNMENT): Follow Pmode.
995 * config/m32c/m32c-protos.h (m32c_initialize_trampoline): Remove.
996 * config/m32c/m32c.c (TARGET_TRAMPOLINE_INIT): New.
997 (m32c_trampoline_init): Rename from m32c_initialize_trampoline;
998 adjust for hook parameters.
999 * config/m32c/m32c.h (INITIALIZE_TRAMPOLINE): Remove.
1001 * config/m32r/m32r.c (TARGET_TRAMPOLINE_INIT): New.
1002 (m32r_trampoline_init): New.
1003 * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Move code to
1004 m32r_trampoline_init.
1006 * config/m68hc11/m68hc11.c (TARGET_TRAMPOLINE_INIT): New.
1007 (m68hc11_trampoline_init): Rename from m68hc11_initialize_trampoline;
1008 make static; update for hook parameters.
1009 * config/m68hc11/m68hc11-protos.h: Update.
1010 * config/m68hc11/m68hc11.h (INITIALIZE_TRAMPOLINE): Remove.
1012 * config/mcore/mcore.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
1013 (TARGET_TRAMPOLINE_INIT): New.
1014 (mcore_function_value): Fix typo.
1015 (mcore_asm_trampoline_template, mcore_trampoline_init): New.
1016 * config/mcore/mcore.h (TRAMPOLINE_TEMPLATE): Move code
1017 to mcore_asm_trampoline_template.
1018 (INITIALIZE_TRAMPOLINE): Move code to mcore_trampoline_init.
1020 * config/mep/mep.h (INITIALIZE_TRAMPOLINE): Remove.
1021 * config/mep/mep.c (TARGET_TRAMPOLINE_INIT): New.
1022 (mep_trampoline_init): Rename from mep_init_trampoline; make static;
1023 update for hook parameters.
1024 * config/mep/mep-protos.h (mep_init_trampoline): Remove.
1026 * config/mips/mips.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
1027 mips_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
1028 mips_trampoline_init): New.
1029 * config/mips/mips.h (TRAMPOLINE_TEMPLATE): Move code to
1030 mips_asm_trampoline_template.
1031 (INITIALIZE_TRAMPOLINE): Move code to mips_trampoline_init;
1032 update for hook parameters.
1034 * gcc/config/mmix/mmix.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
1035 (TARGET_TRAMPOLINE_INIT): New.
1036 (mmix_trampoline_size): Remove.
1037 (mmix_asm_trampoline_template): Rename from mmix_trampoline_template;
1038 make static. Remove out-of-date tetra vs octa comment.
1039 (mmix_trampoline_init): Rename from mmix_initialize_trampoline;
1040 make static; update for hook parameters.
1041 * config/mmix/mmix.h (TRAMPOLINE_TEMPLATE): Remove.
1042 (INITIALIZE_TRAMPOLINE): Remove.
1043 (TRAMPOLINE_SIZE): Use a constant instead of mmix_trampoline_size.
1044 (TRAMPOLINE_ALIGNMENT): New.
1045 * gcc/config/mmix/mmix-protos.h: Update.
1047 * config/mn10300/mn10300.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
1048 mn10300_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
1049 mn10300_trampoline_init): New.
1050 * config/mn10300/mn10300.h (TRAMPOLINE_TEMPLATE): Move code to
1051 mn10300_asm_trampoline_template.
1052 (INITIALIZE_TRAMPOLINE): Move code to mn10300_trampoline_init.
1054 * config/moxie/moxie.c (moxie_static_chain,
1055 moxie_asm_trampoline_template, moxie_trampoline_init,
1056 TARGET_STATIC_CHAIN, TARGET_ASM_TRAMPOLINE_TEMPLATE,
1057 TARGET_TRAMPOLINE_INIT): New.
1058 * config/moxie/moxie.h (INITIALIZE_TRAMPOLINE): Move code to
1059 moxie_trampoline_init.
1060 (TRAMPOLINE_TEMPLATE): Move code to moxie_asm_trampoline_template.
1061 (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
1063 * gcc/config/pa/pa.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
1064 pa_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
1065 pa_trampoline_init, TARGET_TRAMPOLINE_ADJUST_ADDRESS,
1066 pa_trampoline_adjust_address): New.
1067 * config/pa/pa.h (TRAMPOLINE_TEMPLATE): Move code to
1068 pa_asm_trampoline_template.
1069 (TRAMPOLINE_ALIGNMENT): New.
1070 (TRAMPOLINE_CODE_SIZE): Move to pa.c.
1071 (INITIALIZE_TRAMPOLINE): Move code to pa_trampoline_init;
1072 adjust for hook parameters.
1073 (TRAMPOLINE_ADJUST_ADDRESS): Move code to pa_trampoline_adjust_address.
1075 * config/pdp11/pdp11.c (pdp11_trampoline_init): New.
1076 (TARGET_TRAMPOLINE_INIT): New.
1077 * config/pdp11/pdp11.h (TRAMPOLINE_TEMPLATE): Remove.
1078 (INITIALIZE_TRAMPOLINE): Move code to pdp11_trampoline_init.
1080 * config/picochip/picochip.h (INITIALIZE_TRAMPOLINE): Remove.
1082 * config/rs6000/rs6000-protos.h (rs6000_initialize_trampoline): Remove.
1083 * config/rs6000/rs6000.c (TARGET_TRAMPOLINE_INIT): New.
1084 (rs6000_trampoline_init): Rename from rs6000_initialize_trampoline;
1085 make static; adjust parameters for the hook.
1086 * config/rs6000/rs6000.h (INITIALIZE_TRAMPOLINE): Remove.
1088 * config/s390/s390.c (s390_asm_trampoline_template): Rename from
1089 s390_trampoline_template; make static.
1090 (s390_trampoline_init): Rename from s390_initialize_trampoline;
1091 make static; adjust for target hook.
1092 (TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New.
1093 * config/s390/s390-protos.h: Remove trampoline decls.
1094 * config/s390/s390.h (INITIALIZE_TRAMPOLINE): Remove.
1095 (TRAMPOLINE_TEMPLATE): Remove.
1096 (TRAMPOLINE_ALIGNMENT): New.
1098 * config/score/score-protos.h (score_initialize_trampoline): Remove.
1099 * config/score/score.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
1100 (TARGET_TRAMPOLINE_INIT): New.
1101 (score_asm_trampoline_template): New.
1102 (score_trampoline_init): Rename from score_initialize_trampoline;
1103 make static; adjust for hook parameters.
1104 * config/score/score.h (TRAMPOLINE_TEMPLATE): Move code to
1105 score[37]_asm_trampoline_template.
1106 (INITIALIZE_TRAMPOLINE): Remove.
1107 * config/score/score3.c (score3_asm_trampoline_template): New.
1108 (score3_trampoline_init): Rename from score3_initialize_trampoline;
1109 adjust for target hook.
1110 * config/score/score7.c (score7_asm_trampoline_template): New.
1111 (score7_trampoline_init): Rename from score7_initialize_trampoline;
1112 adjust for target hook.
1113 * config/score/score3.h, config/score/score7.h: Update.
1115 * config/sh/sh-protos.h (sh_initialize_trampoline): Remove.
1116 * config/sh/sh.c (TARGET_TRAMPOLINE_INIT): New.
1117 (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
1118 (sh_trampoline_init): Rename from sh_initialize_trampoline;
1119 make static; adjust for target hook parameters.
1120 (sh_trampoline_adjust_address): New.
1121 * config/sh/sh.h (INITIALIZE_TRAMPOLINE): New.
1122 (TRAMPOLINE_ADJUST_ADDRESS): Move code to sh_trampoline_adjust_address.
1124 * config/sparc/sparc.c (TARGET_TRAMPOLINE_INIT): New.
1125 (sparc32_initialize_trampoline): Rename from
1126 sparc_initialize_trampoline; make static; replace tramp parameter
1127 with m_tramp and update memory accesses.
1128 (sparc64_initialize_trampoline): Similarly.
1129 (sparc_trampoline_init): New.
1130 * config/sparc/sparc-protos.h: Remove trampoline decls.
1131 * config/sparc/sparc.h (INITIALIZE_TRAMPOLINE): Remove.
1132 * config/sparc/sparc.md (nonlocal_goto): Don't use static_chain_rtx.
1134 * config/spu/spu.c (TARGET_TRAMPOLINE_INIT): New.
1135 (array_to_constant): Make ARR parameter const.
1136 (spu_trampoline_init): Rename from spu_initialize_trampoline;
1137 make static; update for hook parameters.
1138 * config/spu/spu-protos.h: Update decls.
1139 * config/spu/spu.h (INITIALIZE_TRAMPOLINE): Remove.
1141 * config/stormy16/stormy16.c (xstormy16_trampoline_init): Rename
1142 from xstormy16_initialize_trampoline; make static; update for
1144 (TARGET_TRAMPOLINE_INIT): New.
1145 * config/stormy16/stormy16.h (INITIALIZE_TRAMPOLINE): Remove.
1147 * config/v850/v850.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
1148 (TARGET_TRAMPOLINE_INIT): New.
1149 (v850_can_eliminate): Make static.
1150 (v850_asm_trampoline_template, v850_trampoline_init): New.
1151 * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Move code to
1152 v850_asm_trampoline_template.
1153 (INITIALIZE_TRAMPOLINE): Move code to v850_trampoline_init
1154 and adjust for target hook parameters.
1156 * config/vax/vax.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
1157 (TARGET_TRAMPOLINE_INIT): New.
1158 (vax_asm_trampoline_template, vax_trampoline_init): New.
1159 * config/vax/vax.h (TRAMPOLINE_TEMPLATE): Move code to
1160 vax_asm_trampoline_template.
1161 (INITIALIZE_TRAMPOLINE): Move code to vax_trampoline_init.
1163 * config/xtensa/xtensa.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
1164 (TARGET_TRAMPOLINE_INIT): New.
1165 (xtensa_asm_trampoline_template): Rename from
1166 xtensa_trampoline_template; make static.
1167 (xtensa_trampoline_init): Rename from xtensa_initialize_trampoline;
1168 make static; update for hook parameters.
1169 * config/xtensa/xtensa-protos.h: Remove trampoline decls.
1170 * config/xtensa/xtensa.h (TRAMPOLINE_TEMPLATE): Remove.
1171 (INITIALIZE_TRAMPOLINE): Remove.
1173 * config/i386/i386.c (ix86_function_regparm): Do not issue an
1174 error for nested functions with regparm=3.
1175 (ix86_compute_frame_layout): Adjust frame pointer offset for
1176 ix86_static_chain_on_stack.
1177 (ix86_expand_prologue): Handle ix86_static_chain_on_stack.
1178 (ix86_emit_restore_reg_using_pop): Increment ix86_cfa_state->offset,
1179 don't reset to UNITS_PER_WORD.
1180 (ix86_emit_leave): Adjust ix86_cfa_state.
1181 (ix86_expand_epilogue): Handle ix86_static_chain_on_stack.
1182 (ix86_static_chain): New.
1183 (ix86_trampoline_init): Rename from x86_initialize_trampoline;
1184 make static; update for target hook parameters; use ix86_static_chain.
1185 (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New.
1186 * config/i386/i386.h (STATIC_CHAIN_REGNUM): Remove.
1187 (INITIALIZE_TRAMPOLINE): Remove.
1188 (TRAMPOLINE_SIZE): Use 24 for 64-bit.
1189 (struct machine_function): Use BOOL_BITFIELD; rearrange bitfields
1190 to the end. Add static_chain_on_stack.
1191 (ix86_static_chain_on_stack): New.
1193 * config/m68k/m68k.c (TARGET_TRAMPOLINE_INIT): New.
1194 (m68k_output_mi_thunk): Don't use static_chain_rtx.
1195 (m68k_trampoline_init): New.
1196 * config/m68k/m68k.h (INITIALIZE_TRAMPOLINE): Move code to
1197 m68k_trampoline_init and adjust for hook parameters.
1198 * config/m68k/netbsd-elf.h (TRAMPOLINE_TEMPLATE): Remove.
1199 (TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE): Remove.
1201 2009-09-22 Jakub Jelinek <jakub@redhat.com>
1203 * config/rs6000/rs6000.c (bdesc_2arg): Fix CODE_FOR_vector_gt* codes
1204 for __builtin_altivec_vcmpgt{sb,uh,sh,uw}.
1206 * reload1.c (reload): Call wrap_constant when substituting
1207 reg for equiv inside of DEBUG_INSNs.
1210 * dwarf2out.c (base_type_die, record_type_tag, gen_subprogram_die,
1211 add_call_src_coords_attributes, add_high_low_attributes,
1212 gen_compile_unit_die, gen_type_die_with_usage force_decl_die,
1213 gen_decl_die, dwarf2out_imported_module_or_decl_1, dwarf2out_finish,
1214 dwarf2out_imported_module_or_decl): Avoid using DWARF3 additions
1215 when -gdwarf-2 -gstrict-dwarf.
1216 (loc_list_from_tree): Likewise. Avoid using DWARF4 additions when
1217 -gdwarf-[23] -gstrict-dwarf.
1218 (address_of_int_loc_descriptor, loc_descriptor,
1219 loc_list_for_address_of_addr_expr_of_indirect_ref): Avoid using
1220 DWARF4 additions when -gdwarf-[23] -gstrict-dwarf.
1221 * common.opt (gno-strict-dwarf, gstrict-dwarf): New options.
1223 2009-09-22 Richard Guenther <rguenther@suse.de>
1225 PR tree-optimization/41428
1226 * tree-ssa-ccp.c (ccp_fold_stmt): New function.
1227 (ccp_finalize): Pass it to substitute_and_fold.
1229 2009-09-22 Richard Guenther <rguenther@suse.de>
1231 * tree-ssa-propagate.h (ssa_prop_fold_stmt_fn): Declare.
1232 (substitute_and_fold): Adjust prototype.
1233 * tree-vrp.c (vrp_evaluate_conditional): Make static.
1234 (simplify_stmt_using_ranges): Likewise.
1235 (fold_predicate_in): Move here from tree-ssa-propagate.c.
1236 (vrp_fold_stmt): New function.
1237 (vrp_finalize): Pass it to substitute_and_fold.
1238 * tree-flow.h (vrp_evaluate_conditional): Remove.
1239 (simplify_stmt_using_ranges): Likewise.
1240 * tree-ssa-ccp.c (ccp_finalize): Adjust call to substitute_and_fold.
1241 * tree-ssa-copy.c (fini_copy_prop): Likewise.
1242 * tree-ssa-propagate.c (struct prop_stats_d): Rename num_pred_folded
1244 (fold_predicate_in): Move to tree-vrp.c.
1245 (substitute_and_fold): Use the callback instead of calling into
1246 tree-vrp.c functions directly.
1248 2009-09-22 Jakub Jelinek <jakub@redhat.com>
1250 * dwarf2out.c (address_of_int_loc_descriptor): Avoid signed/unsigned
1251 comparison warning on rs6000.
1254 * tree-cfg.c (remove_useless_stmts_tc): Call gsi_next (gsi) even for
1255 GIMPLE_EH_MUST_NOT_THROW cleanup.
1256 (verify_types_in_gimple_stmt): Handle GIMPLE_EH_MUST_NOT_THROW.
1258 2009-09-22 Jack Howarth <howarth@bromo.med.uc.edu>
1261 * gcc/config.gcc: Use darwin9.h and darwin10.h on darwin10 and later.
1262 * gcc/config/darwin10.h: Add file to pass -no_compact_unwind on
1263 LIB_SPEC for darwin10 and later since it always uses the unwinder in
1264 libSystem which is derived from the gcc 4.2.1 unwinder.
1266 2009-09-22 Dave Korn <dave.korn.cygwin@gmail.com>
1269 * varasm.c (default_encode_section_info): Copy TLS model into
1270 sym_ref flags regardless of backend support for TLS, for all
1271 model types except TLS_MODEL_EMULATED.
1273 2009-09-22 Dave Korn <dave.korn.cygwin@gmail.com>
1276 * dwarf2out.c (mem_loc_descriptor): Punt on CONST_STRING until
1277 we can handle it correctly.
1279 2009-09-21 Gerald Pfeifer <gerald@pfeifer.com>
1281 * doc/install.texi (os2): Remove section.
1283 2009-09-21 Gerald Pfeifer <gerald@pfeifer.com>
1285 * doc/standards.texi (Objective-C): Adjust two URLs.
1287 2009-09-21 Giuseppe Scrivano <gscrivano@gnu.org>
1289 * tree-tailcall.c (process_assignment): Don't check if a
1290 multiplication or an addition are already present.
1291 (find_tail_calls): Combine multiple additions and multiplications.
1292 (adjust_accumulator_values): Emit accumulators.
1294 2009-09-21 Kai Tietz <kai.tietz@onevision.com>
1296 * config/i386/i386.c (ix86_expand_epilogue): Adjust offset for
1297 xmm register restore.
1299 2009-09-21 Jan Hubicka <jh@suse.cz>
1301 * dwarf2out.c (decl_loc_table_eq): Allow decl_loc_table to be NULL.
1302 (dwarf2out_abstract_function): NULLify decl_loc_table at begginig and
1305 2009-09-21 Eric Botcazou <ebotcazou@adacore.com>
1307 * stor-layout.c (layout_type): Remove obsolete code.
1309 2009-09-20 H.J. Lu <hongjiu.lu@intel.com>
1312 * opts.c (decode_options): Don't turn on flag_ipa_sra for opt2.
1314 2009-09-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1317 * builtins.c (do_mpc_arg2): Accept DO_NONFINITE parameter.
1318 (do_mpc_ckconv): Accept FORCE_CONVERT parameter.
1319 (fold_builtin_2, do_mpc_arg1): Update accordingly.
1320 * fold-const.c (const_binop): Likewise.
1321 * real.h (do_mpc_arg2): Update prototype.
1323 2009-09-20 Jan Hubicka <jh@suse.cz>
1325 * dwarf2out.c (add_const_value_attribute): Return true if successful.
1326 (add_location_or_const_value_attribute): Rewrite using
1328 (tree_add_const_value_attribute): Return true if successful.
1329 (tree_add_const_value_attribute_for_decl): Likewise.
1331 * dwarf2out.c (address_of_int_loc_descriptor): Break out from ...
1332 (loc_descriptor): ... here;
1333 (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
1334 (cst_pool_loc_descr): Break out from ...; do not reffer constant
1335 pool items that was not marked for output.
1336 (loc_list_from_tree): ... here; handle special cases of ADDR_EXPR;
1337 (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
1338 (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
1339 handle ALIGN_INDIRECT_REF, MISALIGNED_INDIRECT_REF, REALPART_EXPR,
1340 IMAGPART_EXPR; handle address of INTEGER_CST; improve handling of
1341 CONSTRUCTOR; handle REAL_CST, STRING_CST, COMPLEX_CST; use
1342 DW_OP_stack_value to get address of items that are not available
1344 (dw_loc_list): Handle single element lists correctly.
1346 2009-09-20 Kai Tietz <kai.tietz@onevision.com>
1347 Pascal Obry <obry@adacore.com>
1349 * unwind-dw2-fde.c (classify_object_over_fdes):
1350 Cast the constant 1 to _Unwind_Ptr.
1351 (add_fdes): Likewise.
1352 (linear_search_fdes): Likewise.
1354 2009-09-20 Eric Botcazou <ebotcazou@adacore.com>
1356 * stor-layout.c (set_sizetype): Avoid useless type copy.
1358 2009-09-20 Richard Sandiford <rdsandiford@googlemail.com>
1360 * configure.ac (gcc_cv_ld_mips_personality_relaxation): New
1362 (HAVE_LD_PERSONALITY_RELAXATION): New macro definition.
1363 * configure, config.in: Regenerate.
1364 * dwarf2asm.c (eh_data_format_name): Handle DW_EH_PE_indirect |
1366 * config/mips/mips.h (TARGET_WRITABLE_EH_FRAME): New macro.
1367 (ASM_PREFERRED_EH_DATA_FORMAT): Define. Use MIPS_EH_INDIRECT
1368 for global data if the output could be used in a shared library.
1369 * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
1370 to 0 if TARGET_WRITABLE_EH_FRAME.
1372 2009-09-20 Paolo Bonzini <bonzini@gnu.org>
1374 PR rtl-optimization/39886
1375 * combine.c (update_cfg_for_uncondjump): Set EDGE_FALLTHRU
1376 just when insn is equal to BB_END (bb).
1378 2009-09-19 Adam Nemet <anemet@caviumnetworks.com>
1380 * config/mips/mips.opt (mrelax-pic-calls): New option.
1381 * config/mips/mips.c (mips_strip_unspec_address): Move it up in
1383 (mips_unspec_call): Change "unspec_call" expander into this.
1384 (mips_strip_unspec_call): New function.
1385 (mips_got_load): Call mips_unspec_call instead of
1386 gen_unspec_call<mode>.
1387 (mips16_build_call_stub): Fix comment for fp_code. Adjust call to
1389 (mips_cfg_in_reorg): New function.
1390 (mips16_lay_out_constants): Use it to decide whether to call
1391 CFG-aware insn splitting.
1392 (r10k_insert_cache_barriers): Move CFG set-up code from here to
1393 mips_reorg. Move DF set-up code from here ...
1394 (mips_df_reorg): ... to here. Call r10k_insert_cache_barriers
1396 (mips_reorg): Call mips_df_reorg instead of
1397 r10k_insert_cache_barriers. Move CFG set-up code here from
1398 r10k_insert_cache_barriers.
1399 (mips_call_expr_from_insn): New function.
1400 (mips_pic_call_symbol_from_set): Likewise.
1401 (mips_find_pic_call_symbol): Likewise.
1402 (mips_annotate_pic_call_expr): Likewise.
1403 (mips_get_pic_call_symbol): Likewise.
1404 (mips_annotate_pic_calls): Likewise.
1405 (mips_override_options): Disable -mrelax-pic-calls unless PIC
1407 (mips_set_mips16_mode): Disable -mrelax-pic-calls for MIPS16.
1408 * config/mips/mips-protos.h (mips_get_pic_call_symbol): Declare it.
1409 * config/mips/mips.h (MIPS_CALL): Use it to print the .reloc
1411 * config/mips/mips.md (UNSPEC_CALL_ATTR): New unspec.
1412 (unspec_call<mode>): Remove it.
1413 (sibcall_internal, sibcall_value_internal,
1414 sibcall_value_multiple_internal, call_internal, call_split,
1415 call_value_internal, call_value_split,
1416 call_value_multiple_internal, call_value_multiple_split): Pass
1417 SIZE_OPNO to MIPS_CALL.
1418 (call_internal_direct, call_direct_split,
1419 call_value_internal_direct, call_value_direct_split): Pass -1 as
1420 SIZE_OPNO to MIPS_CALL.
1421 * configure.ac <mips*-*-*>: Add test for .reloc R_MIPS_JALR.
1422 * configure: Regenerate.
1423 * doc/invoke.texi (Option Summary): Add -mrelax-pic-calls
1424 and -mno-relax-pic-calls.
1425 (MIPS Options): Document -mrelax-pic-calls and -mno-relax-pic-calls.
1427 2009-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1430 * Makefile.in (stmp-fixinc): Ensure `include-fixed' is created
1431 in the directory this rule is called from, rather than the
1432 toplevel 'gcc' directory, to fix in-tree build.
1434 2009-09-19 Chris Demetriou <cgd@google.com>
1436 PR preprocessor/28435:
1437 * c-opts.c (c_common_handle_option): For -MD and -MMD, indicate
1438 to cpplib that the preprocessor output is needed.
1440 2009-09-19 Jakub Jelinek <jakub@redhat.com>
1442 * config/rs6000/rs6000.md (*save_gpregs_<mode>, *save_fpregs_<mode>,
1443 *restore_gpregs_<mode>, *return_and_restore_gpregs_<mode>,
1444 *return_and_restore_fpregs_<mode>,
1445 *return_and_restore_fpregs_aix_<mode>): Remove 'z' operand modifier.
1448 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Recurse
1449 instead of assuming it has always a REG inside of it.
1451 2009-09-18 Gerald Pfeifer <gerald@pfeifer.com>
1453 * config/freebsd.h: Update comment on types.
1454 (WINT_TYPE): Define.
1456 2009-09-18 Jason Merrill <jason@redhat.com>
1458 * c.opt: Add -fno-deduce-init-list.
1460 2009-09-18 Neil Vachharajani <nvachhar@google.com>
1462 * value-prof.c (interesting_stringop_to_profile_p): Added output
1463 argument to indicate which parameter is the size parameter.
1464 * value-prof.c (gimple_stringop_fixed_value): Use
1465 INTERESTING_STRINGOP_TO_PROFILE_P to find size argument.
1466 * value-prof.c (gimple_stringops_transform): Update call sites to
1467 INTERESTING_STRINGOP_TO_PROFILE_P to reflect parameter change.
1469 2009-09-18 Uros Bizjak <ubizjak@gmail.com>
1472 From David Binderman <dcb314@hotmail.com>:
1473 * gcc/config/i386/i386.c (ix86_function_regparm): Remove useless
1474 local variable f. Remove stale comments.
1475 (ix86_compute_frame_layout): Remove useless local variable total_size.
1476 Remove #if 0'd code.
1477 (legitimate_address_p): Remove useless local variables
1478 reason_rtx and reason.
1479 (ix86_split_copysign_const): Remove useless local variable op1.
1480 (scale_counter): Remove useless local variable piece_size_mask.
1482 2009-09-18 Jakub Jelinek <jakub@redhat.com>
1484 * stmt.c (expand_asm_operands): Set REG_ATTRS on the temporary from
1487 2009-09-17 Michael Haubenwallner <michael.haubenwallner@salomon.at>
1490 * config/pa/t-hpux-shlib: Set soname in libgcc_s.sl.
1492 2009-09-17 Jakub Jelinek <jakub@redhat.com>
1494 * c-decl.c (finish_struct): Adjust DECL_SOURCE_LOCATION of
1497 2009-09-17 Alexandre Oliva <aoliva@redhat.com>
1499 * dwarf2out.c (loc_descriptor): Emit DW_OP_stack_value and
1500 DW_OP_implicit_value even without dwarf_version 4.
1502 2009-09-17 Jan Hubicka <jh@suse.cz>
1504 * dwarf2out.c: Include tree-pass.h and gimple.h.
1505 (loc_list_plus_const): New function.
1506 (loc_descriptor_from_tree_1): Rename to ...
1507 (loc_descriptor_from_tree): ... remove original.
1508 (loc_list_from_tree): New function.
1509 (add_AT_location_description): Accept location list.
1510 (tls_mem_loc_descriptor): Update call of loc_descriptor_from_tree.
1511 (concatn_mem_loc_descriptor): Remove.
1512 (mem_loc_descriptor): Handle CONCAT/CONCATN and VAR_LOCATION by
1514 (secname_for_decl): Move up.
1515 (hidden_reference_p): New function; break out from ...
1516 (loc_by_refernece): ... here; move up.
1517 (dw_loc_list): New function.
1518 (single_element_loc_list): New function.
1519 (single_element_loc_list_p): New function.
1520 (add_loc_descr_to_each): New function.
1521 (add_loc_list): New function.
1522 (loc_descr_from_tree): Make wraper of loc_list_from_tree.
1523 (loc_list_from_tree): Reroganized from loc_descr_from_tree;
1524 add diagnostics why expansion failed.
1525 (add_location_or_const_value_attribute): Support location lists.
1526 (add_bound_info): Likewise.
1527 (descr_info_loc): Update call of loc_descriptor_from_tree.
1528 (gen_variable_die): Work on location lists.
1529 * final.c (pass_final): Add dump file.
1530 * Makefile.in (dwarf2out.o): Add new dependencies.
1532 2009-09-17 Janis Johnson <janis187@us.ibm.com>
1535 * real.c decimal_from_integer, decimal_integer_string): New.
1536 (real_from_integer): Use them as special case for decimal float.
1537 * config/dfp-bit.c (_si_to_sd, _usi_to_sd): Use default rounding.
1538 (_di_to_sd, _di_to_dd, _di_to_td, _udi_to_sd, _udi_to_dd, _udi_to_td):
1539 Do not append zero after the decimal point in string to convert.
1541 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
1543 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only
1544 for ARRAY_REFs. Use array_ref_{low,up}_bound to determine bounds.
1546 2009-09-17 Martin Jambor <mjambor@suse.cz>
1548 * common.opt (fipa-sra): New switch.
1549 * opts.c (decode_options): Turn flag_ipa_sra on for opt2.
1550 * timevar.def (TV_IPA_SRA): New timevar.
1551 * params.def (ipa-sra-ptr-growth-factor): New parameter.
1552 * doc/invoke.texi: Document -fipa-sra and ipa-sra-ptr-growth-factor.
1553 * tree-sra.c: Include cgraph.c.
1554 (enum sra_mode): Added SRA_MODE_EARLY_IPA.
1555 (struct access): Added fields stmt, grp_maybe_modified, grp_scalar_ptr
1556 and grp_not_necessarilly_dereferenced.
1557 (func_param_count): New variable.
1558 (encountered_apply_args): New variable.
1559 (bb_dereferences): New variable.
1560 (final_bbs): New variable.
1561 (no_accesses_representant): New variable.
1562 (no_accesses_p): New function.
1563 (dump_access): Dump the new fields.
1564 (sra_initialize): Set encountered_apply_args to false.
1565 (get_ssa_base_param): New function.
1566 (mark_parm_dereference): New function.
1567 (create_access): Caring for INIDRECT_REFs and different handling of
1568 varialble length accesses in early IPA SRA. Store the stmt - a new
1569 parameter - to the new access.
1570 (build_access_from_expr_1): New parameter stmt, passed to
1571 create_access. Handle INDIRECT_REFs.
1572 (build_access_from_expr): Pass the current statement to
1573 build_access_from_expr_1.
1574 (disqualify_ops_if_throwing_stmt): Trigger only in intraprocedural
1576 (build_accesses_from_assign): Pass the current statement to
1577 build_access_from_expr_1. Do not create assign links in IPA-SRA.
1578 (scan_function): Call handle_ssa_defs on phi nodes. Set bits in
1579 final_bbs when necessary. Check for calls to __builtin_apply_args.
1580 Fixup EH info if anythng was changed.
1581 (is_unused_scalar_param): New function.
1582 (ptr_parm_has_direct_uses): New function.
1583 (find_param_candidates): New function.
1584 (mark_maybe_modified): New function.
1585 (analyze_modified_params): New function.
1586 (propagate_dereference_distances): New function.
1587 (dump_dereferences_table): New function.
1588 (analyze_caller_dereference_legality): New function.
1589 (unmodified_by_ref_scalar_representative): New function.
1590 (splice_param_accesses): New function.
1591 (decide_one_param_reduction): New function.
1592 (enum ipa_splicing_result): New type.
1593 (splice_all_param_accesses): New function.
1594 (get_param_index): New function.
1595 (turn_representatives_into_adjustments): New function.
1596 (analyze_all_param_acesses): New function.
1597 (get_replaced_param_substitute): New function.
1598 (get_adjustment_for_base): New function.
1599 (replace_removed_params_ssa_names): New function.
1600 (sra_ipa_reset_debug_stmts): New function.
1601 (sra_ipa_modify_expr): New function.
1602 (sra_ipa_modify_assign): New function.
1603 (convert_callers): New function.
1604 (modify_function): New function.
1605 (ipa_sra_preliminary_function_checks): New function.
1606 (ipa_early_sra): New function.
1607 (ipa_early_sra_gate): New function.
1608 (pass_early_ipa_sra): New variable.
1609 * Makefile.in (tree-sra.o): Add cgraph.h to dependencies.
1611 2009-09-17 Michael Matz <matz@suse.de>
1614 * tree.c (build_type_attribute_qual_variant): Export.
1615 * tree.h (build_type_attribute_qual_variant): Declare.
1616 * tree-inline.c (remap_type_1): Use it to build variants with
1617 the original qualifiers and attributes.
1619 2009-09-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1621 * cfglayout.c (fixup_reorder_chain): Accept conditional jumps
1622 without a fallthrough edge.
1624 2009-09-16 DJ Delorie <dj@redhat.com>
1626 * config/m32c/m32c.c (m32c_emit_epilogue): Check for R8C or M16C
1627 chip and ignore the "fast_interrupt" attribute if so.
1629 2009-09-16 Richard Henderson <rth@redhat.com>
1632 * cfgbuild.c (find_bb_boundaries): Really re-instate 2009-09-02
1635 2009-09-16 Richard Henderson <rth@redhat.com>
1638 * tree-cfg.c (verify_gimple_call): Validate that gimple_call_chain
1639 is set only if DECL_NO_STATIC_CHAIN is unset.
1640 * tree-nested.c (iter_nestinfo_start, iter_nestinfo_next): New.
1641 (FOR_EACH_NEST_INFO): New.
1642 (walk_all_functions): Use it.
1643 (finalize_nesting_tree): Likewise.
1644 (unnest_nesting_tree): Likewise.
1645 (free_nesting_tree): Use iter_nestinfo_start, iter_nestinfo_next.
1646 (get_chain_decl, get_chain_field): Reset DECL_NO_STATIC_CHAIN.
1647 (convert_gimple_call): Early out if gimple_call_chain already set.
1648 (convert_all_function_calls): Iterate until no new functions
1649 require a static chain.
1650 (finalize_nesting_tree_1): Assert DECL_NO_STATIC_CHAIN is unset
1651 when building a trampoline. Use dump_function_to_file instead
1653 (lower_nested_functions): Open dump_file. Validate that decls
1654 that have DECL_NO_STATIC_CHAIN from the front end don't have that
1655 bit reset by this pass.
1657 2009-09-16 Michael Matz <matz@suse.de>
1660 * tree.h (struct tree_decl_common): Add decl_restricted_flag,
1661 shorten decl_common_unused.
1662 (DECL_RESTRICTED_P): New accessor.
1663 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Use it
1664 to disambiguate marked decls and restrict pointers.
1666 2009-09-16 Richard Henderson <rth@redhat.com>
1669 * cfgbuild.c (find_bb_boundaries): Re-instate 2009-09-02 barrier fix.
1671 2009-09-16 Jakub Jelinek <jakub@redhat.com>
1673 * integrate.c (set_block_abstract_flags): Call
1674 set_decl_abstract_flags also on BLOCK_NONLOCALIZED_VARs.
1676 2009-09-16 Richard Guenther <rguenther@suse.de>
1679 * tree-flow-inline.h (may_be_aliased): Compute readonly variables
1682 2009-09-16 DJ Delorie <dj@redhat.com>
1683 Kaz Kojima <kkojima@gcc.gnu.org>
1685 * config/sh/sh.c (output_stack_adjust): Add new argument frame_p.
1686 (sh_expand_prologue): Update calls to output_stack_adjust.
1687 (sh_expand_epilogue): Likewise.
1689 2009-09-15 Adam Nemet <anemet@caviumnetworks.com>
1692 * reorg.c (redundant_insn): Don't count notes or DEBUG_INSNs when
1693 trying to limit the extent of searches in the insn stream.
1695 2009-09-15 Nathan Froyd <froydnj@codesourcery.com>
1696 Jakub Jelinek <jakub@redhat.com>
1700 * config/rs6000/rs6000.c (no_global_regs_above): Fix precedence
1702 (SAVRES_NOINLINE_GPRS_SAVES_LR, SAVRES_NOINLINE_FPRS_SAVES_LR,
1703 SAVRES_NOINLINE_FPRS_DOESNT_RESTORE_LR): New strategy bits.
1704 (rs6000_savres_strategy): Always save FP registers inline if the
1705 target doesn't support hardware double-precision. Set the above
1706 bits in return value when needed.
1707 (rs6000_savres_routine_sym): Fix computation for cache selector.
1708 Mark the generated symbol as a function. Rename exitp argument to
1709 lr. Move code for determining the name of the symbol...
1710 (rs6000_savres_routine_name): ...here. New function. Add cases for
1711 getting the names right on AIX and 64-bit Linux.
1712 (savres_routine_name): New variable.
1713 (rs6000_make_savres_rtx): Rename exitp argument to lr. Don't assert
1714 lr isn't set when savep. Use r12 resp. r1 instead of r11 depending
1715 on what the target routine uses as a base register. If savep && lr
1716 describe saving of r0 into memory slot.
1717 (rs6000_emit_prologue): Correct use of call_used_regs. Fix out of
1718 line calls for AIX ABI.
1719 (rs6000_output_function_prologue): Use rs6000_savres_routine_name to
1720 determine FP save/restore functions.
1721 (rs6000_emit_stack_reset): Handle savres if sp_offset != 0 and
1722 frame_reg_rtx != sp_reg_rtx. Use gen_add3_insn instead of
1724 (rs6000_emit_epilogue): Adjust computation of restore_lr.
1725 Duplicate restoration of LR and execute the appropriate one
1726 depending on whether GPRs are being restored inline. Set r11 from
1727 offsetted frame_reg_rtx instead of sp_reg_rtx; if frame_reg_rtx is
1728 r11, adjust sp_offset. Use gen_add3_insn instead of gen_addsi3.
1729 Fix out of line calls for AIX ABI.
1730 * config/rs6000/rs6000.md (*return_and_restore_fpregs_aix_<mode>):
1732 * config/rs6000/spe.md (*save_gpregs_spe): Use explicit match for
1734 (*restore_gpregs_spe): Likewise.
1735 (*return_and_restore_gpregs_spe): Likewise.
1736 * config/rs6000/linux64.h (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX):
1737 Define to empty string unconditionally.
1738 * config/rs6000/sysv4.h (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX):
1739 Define to empty string unconditionally.
1740 (GP_SAVE_INLINE, FP_SAVE_INLINE): Handle TARGET_64BIT the same as
1743 2009-09-15 Jan Hubicka <jh@suse.cz>
1745 * doc/invoke.texi (inline-insns-auto): Drop from 60 to 50.
1746 * params.def (inline-insns-auto): Likewise.
1748 2009-09-15 Martin Jambor <mjambor@suse.cz>
1750 * ipa-inline.c (estimate_function_body_sizes): Dump info about
1751 individual statements only at TDF_DETAILS dump level. Format
1752 source for 80 characters per line.
1754 2009-09-15 Christian Bruel <christian.bruel@st.com>
1756 * regrename.c (do_replace): Update REG_DEAD notes.
1758 2009-09-15 Revital Eres <eres@il.ibm.com>
1760 * doc/tm.texi (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Document.
1761 * targhooks.c (default_builtin_support_vector_misalignment):
1762 New builtin function.
1763 * targhooks.h (default_builtin_support_vector_misalignment):
1765 * target.h (builtin_support_vector_misalignment):
1766 New field in struct gcc_target.
1767 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Call
1768 new builtin function.
1769 * target-def.h (TARGET_SUPPORT_VECTOR_MISALIGNMENT):
1771 * config/rs6000/rs6000.c
1772 (rs6000_builtin_support_vector_misalignment): New function.
1773 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Define.
1775 2009-09-15 Jie Zhang <jie.zhang@analog.com>
1777 * config/bfin/bfin.c (length_for_loop): Use NONDEBUG_INSN_P
1779 (bfin_optimize_loop): Likewise.
1780 (bfin_gen_bundles): Likewise.
1781 (workaround_speculation): Likewise.
1782 (find_load): Return NULL_RTX for debug_insn.
1784 2009-09-15 Uros Bizjak <ubizjak@gmail.com>
1786 * config/alpha/alpha.md (smaxsf3): Disable for IEEE mode.
1789 2009-09-14 DJ Delorie <dj@redhat.com>
1791 * config/mep/mep.h (JUMP_TABLES_IN_TEXT_SECTION): Define.
1792 * config/mep/mep.c (mep_emit_cbranch): Don't use BEQZ/BNEI in
1795 2009-09-14 Richard Henderson <rth@redhat.com>
1796 Jakub Jelinek <jakub@redhat.com>
1798 * builtins.c (expand_builtin_synchronize): Use gimple_build_asm_vec.
1799 * cfgbuild.c (make_edges): Handle asm goto.
1800 * cfglayout.c (fixup_reorder_chain): Likewise.
1801 * cfgrtl.c (patch_jump_insn): Likewise.
1802 * gimple-pretty-print.c (dump_gimple_asm): Likewise.
1803 * gimple.c (gimple_build_asm_1): Add and use nlabels parameter.
1804 (gimple_build_asm_vec): Add and use labels parameter.
1805 (gimple_build_asm): Remove.
1806 (walk_gimple_asm): Walk labels too.
1807 * gimple.def (GIMPLE_ASM): Update docs.
1808 * gimple.h: Update decls.
1809 (struct gimple_statement_asm): Change nc to use unsigned char;
1811 (gimple_asm_nlabels): New.
1812 (gimple_asm_label_op, gimple_asm_set_label_op): New.
1813 * gimplify.c (gimplify_asm_expr): Copy labels from ASM_EXPR
1814 into gimple_build_asm_vec.
1815 * jump.c (mark_jump_label_asm): New.
1816 (mark_jump_label): Use it.
1817 (redirect_jump_1): Handle asm goto.
1818 (invert_jump_1): Soft fail if X is null.
1819 * recog.c (extract_asm_operands): New.
1820 (asm_noperands): Use it; handle asm labels.
1821 (decode_asm_operands): Use extract_asm_operands.
1822 (asm_operand_ok): Properly handle empty string.
1823 * reg-stack.c (get_asm_operands_in_out): Rename from
1824 get_asm_operand_n_inputs; use extract_asm_operands; return both
1825 inputs and outputs by reference; update all callers.
1826 * rtl.def (ASM_OPERANDS): Add label vector as operand 6.
1827 * rtl.h (ASM_OPERANDS_LABEL_VEC): New.
1828 (ASM_OPERANDS_LABEL_LENGTH, ASM_OPERANDS_LABEL): New.
1829 (ASM_OPERANDS_SOURCE_LOCATION): Renumber.
1830 (extract_asm_operands): Declare.
1831 * stmt.c (expand_asm_operands): Add and use labels parameter.
1832 (check_unique_operand_names): Likewise.
1833 (resolve_asm_operand_names, resolve_operand_name_1): Likewise.
1834 (expand_asm_stmt): Handle asm labels.
1835 * tree-cfg.c (make_gimple_asm_edges): New.
1836 (make_edges): Use it.
1837 (cleanup_dead_labels): Handle asm labels.
1838 (is_ctrl_altering_stmt): Likewise.
1839 (gimple_redirect_edge_and_branch): Likewise.
1840 * tree.def (ASM_EXPR): Add 5th operand.
1841 * tree.h (ASM_LABELS): New.
1842 (resolve_asm_operand_names): Update decl.
1844 * c-parser.c (c_parser_asm_statement): Parse asm goto.
1845 (c_parser_asm_goto_operands): New.
1846 * c-tree.h (build_asm_expr): Update decl.
1847 * c-typeck.c (build_asm_expr): Add and use labels parameter.
1848 * doc/extend.texi: Document asm goto.
1850 2009-09-14 Richard Henderson <rth@redhat.com>
1852 * except.h: Update declarations.
1853 (struct pointer_map_t): Forward declare.
1854 (ERT_UNKNOWN, ERT_THROW, ERT_CATCH): Remove.
1855 (struct eh_landing_pad_d, eh_landing_pad): New.
1856 (struct eh_catch_d, eh_catch): New.
1857 (struct eh_region_d): Remove next_region_sharing_label, aka,
1858 label, tree_label, landing_pad, post_landing_pad, resume,
1859 may_contain_throw. Rename region_number to index. Remove
1860 u.eh_catch, u.eh_throw. Rename u.eh_try.eh_catch to first_catch.
1861 Add u.must_not_throw, landing_pads, exc_ptr_reg, filter_reg.
1862 (VEC(eh_landing_pad,gc)): New.
1863 (struct eh_status): Remove last_region_number. Add lp_array,
1864 throw_stmt_table, ttype_data, ehspec_data.
1865 (ehr_next, FOR_ALL_EH_REGION_AT): New.
1866 (FOR_ALL_EH_REGION_FN, FOR_ALL_EH_REGION): New.
1867 * except.c (lang_protect_cleanup_actions): Return tree.
1868 (struct ehl_map_entry): Remove.
1869 (init_eh_for_function): Push zero entries for region and lp_array.
1870 (gen_eh_region): Add to region_array immediately.
1871 (gen_eh_region_catch): Operate on eh_catch objects.
1872 (gen_eh_landing_pad): New.
1873 (get_eh_region_may_contain_throw, get_eh_region_tree_label): Remove.
1874 (get_eh_region_no_tree_label, set_eh_region_tree_label): Remove.
1875 (get_eh_region_from_number, get_eh_region_from_number_fn): New.
1876 (get_eh_landing_pad_from_number_fn): New.
1877 (get_eh_landing_pad_from_number): New.
1878 (get_eh_region_from_lp_number_fn): New.
1879 (get_eh_region_from_lp_number): New.
1880 (expand_resx_stmt, note_eh_region_may_contain_throw): Remove.
1881 (get_exception_pointer, get_exception_filter): Remove.
1882 (collect_eh_region_array, can_be_reached_by_runtime): Remove.
1883 (current_function_has_exception_handlers): Simplify.
1884 (bring_to_root, eh_region_replaceable_by_p): Remove.
1885 (replace_region, hash_type_list, hash_eh_region): Remove.
1886 (eh_regions_equal_p, merge_peers, remove_unreachable_regions): Remove.
1887 (label_to_region_map, num_eh_regions): Remove.
1888 (get_next_region_sharing_label, must_not_throw_labels): Remove.
1889 (find_exception_handler_labels): Remove.
1890 (duplicate_eh_regions_0, find_prev_try): Remove.
1891 (struct duplicate_eh_regions_data): New.
1892 (duplicate_eh_regions_1): Rewrite.
1893 (duplicate_eh_regions): Return a pointer map instead of an
1895 (copy_eh_region_1, copy_eh_region, push_reachable_handler): Remove.
1896 (redirect_eh_edge_to_label): Remove.
1897 (eh_region_outermost): Rewrite using eh_region pointers
1898 instead of integers.
1899 (add_ttypes_entry): Update for ttype_data move to eh_status.
1900 (add_ehspec_entry): Rewrite with VEC instead of varray.
1901 (assign_filter_values): Likewise. Export.
1902 (build_post_landing_pads, connect_post_landing_pads): Remove.
1903 (dw2_build_landing_pads): Rewrite to use lp_array.
1904 (struct sjlj_lp_info, sjlj_find_directly_reachable_regions): Remove.
1905 (sjlj_assign_call_site_values): Rewrite to use lp_array.
1906 (sjlj_emit_dispatch_table, sjlj_build_landing_pads): Likewise.
1907 (sjlj_mark_call_sites): Update for landing pad numbers.
1908 (finish_eh_generation): Rewrite.
1909 (gate_handle_eh): Do nothing for no eh tree.
1910 (pass_rtl_eh): Move up near finish_eh_generation.
1911 (remove_eh_landing_pad): New.
1912 (remove_eh_handler): Export.
1913 (remove_eh_region, remove_eh_handler_and_replace): Remove.
1914 (for_each_eh_label): Rewrite to use lp_array.
1915 (make_reg_eh_region_note): New.
1916 (make_reg_eh_region_note_nothrow_nononlocal): New.
1917 (insn_could_throw_p): New.
1918 (copy_reg_eh_region_note_forward): New.
1919 (copy_reg_eh_region_note_backward): New.
1920 (check_handled, add_reachable_handler): Remove.
1921 (reachable_next_level, foreach_reachable_handler): Remove.
1922 (arh_to_landing_pad, arh_to_label, reachable_handlers): Remove.
1923 (get_eh_region_and_lp_from_rtx): New.
1924 (get_eh_region_from_rtx): New.
1925 (can_throw_internal_1, can_throw_external_1): Remove.
1926 (can_throw_internal): Use get_eh_region_from_rtx.
1927 (can_throw_external): Use get_eh_region_and_lp_from_rtx.
1928 (insn_nothrow_p, can_nonlocal_goto): New.
1929 (expand_builtin_eh_common, expand_builtin_eh_pointer): New.
1930 (expand_builtin_eh_filter, expand_builtin_eh_copy_values): New.
1931 (add_action_record): Use VEC not varray.
1932 (collect_one_action_chain): Update for eh_region changes.
1933 (convert_to_eh_region_ranges): Make static. Use VEC not varray.
1934 Use get_eh_region_and_lp_from_rtx.
1935 (gate_convert_to_eh_region_ranges): New.
1936 (pass_convert_to_eh_region_ranges): Use it.
1937 (push_uleb128, push_sleb128): Use VEC not varray.
1938 (output_one_function_exception_table): Likewise.
1939 (dump_eh_tree): Update for eh_region changes.
1940 (verify_eh_tree): Likewise.
1941 (verify_eh_region, default_init_unwind_resume_libfunc): Remove.
1942 * tree-eh.c: Include target.h.
1943 (add_stmt_to_eh_lp_fn): Rename from add_stmt_to_eh_region_fn.
1944 Don't disallow GIMPLE_RESX; adjust argument check.
1945 (add_stmt_to_eh_lp): Rename from add_stmt_to_eh_region.
1946 (record_stmt_eh_region): Update for landing pad numbers;
1947 generate a landing pad if necessary.
1948 (remove_stmt_from_eh_lp): Rename from remove_stmt_from_eh_region.
1949 (remove_stmt_from_eh_lp_fn): Similarly.
1950 (lookup_stmt_eh_lp_fn): Rename from lookup_stmt_eh_region_fn.
1951 Update for lp numbers; don't special case missing throw_stmt_table.
1952 (lookup_expr_eh_lp): Similarly.
1953 (lookup_stmt_eh_lp): Rename from lookup_stmt_eh_region.
1954 (eh_seq, eh_region_may_contain_throw): New.
1955 (struct leh_state): Add ehp_region.
1956 (struct leh_tf_state): Remove eh_label.
1957 (emit_post_landing_pad): New.
1958 (emit_resx, emit_eh_dispatch): New.
1959 (note_eh_region_may_contain_throw): New.
1960 (frob_into_branch_around): Take eh_region not eh label;
1961 emit eh code into eh_seq.
1962 (honor_protect_cleanup_actions): Early exit for no actions. Don't
1963 handle EXC_PTR_EXPR, FILTER_EXPR. Use gimple_build_eh_must_not_throw,
1964 lower_eh_must_not_throw. Emit code to eh_seq.
1965 (lower_try_finally_nofallthru): Emit eh code to eh_seq.
1966 (lower_try_finally_onedest): Likewise.
1967 (lower_try_finally_copy): Likewise.
1968 (lower_try_finally_switch): Likewise.
1969 (lower_try_finally): Initialize ehp_region.
1970 (lower_catch): Update for eh_catch objects.
1971 (lower_eh_filter): Don't handle must_not_throw.
1972 (lower_eh_must_not_throw): New.
1973 (lower_cleanup): Don't set eh_label.
1974 (lower_eh_constructs_2): Resolve eh builtins.
1975 Handle GIMPLE_EH_MUST_NOT_THROW.
1976 (lower_eh_constructs): Initialize eh_region_may_contain_throw.
1977 Add eh_seq to the end of the function body.
1978 (make_eh_dispatch_edges): New.
1979 (make_eh_edge): Remove.
1980 (make_eh_edges): Simplify for landing pads.
1981 (redirect_eh_edge_1): New.
1982 (redirect_eh_edge): Use it.
1983 (redirect_eh_dispatch_edge): New.
1984 (stmt_could_throw_p): Use a switch. Allow RESX.
1985 (stmt_can_throw_external): Use lookup_stmt_eh_lp.
1986 (stmt_can_throw_internal): Likewise.
1987 (maybe_clean_eh_stmt_fn, maybe_clean_eh_stmt): New.
1988 (maybe_clean_or_replace_eh_stmt): Update for landing pads.
1989 (maybe_duplicate_eh_stmt_fn, maybe_duplicate_eh_stmt): New.
1990 (gate_refactor_eh): New.
1991 (pass_refactor_eh): Use it.
1992 (lower_resx, execute_lower_resx, pass_lower_resx): New.
1993 (lower_eh_dispatch, execute_lower_eh_dispatch): New.
1994 (gate_lower_ehcontrol, pass_lower_eh_dispatch): New.
1995 (remove_unreachable_handlers): Rename from
1996 tree_remove_unreachable_handlers; rewrite for landing pads;
1997 call remove_eh_handler directly.
1998 (remove_unreachable_handlers_no_lp): New.
1999 (unsplit_eh, unsplit_all_eh): New.
2000 (tree_empty_eh_handler_p, all_phis_safe_to_merge): Remove.
2001 (cleanup_empty_eh_merge_phis, cleanup_empty_eh_move_lp): New.
2002 (cleanup_empty_eh_unsplit): New.
2003 (cleanup_empty_eh): Rewrite.
2004 (cleanup_all_empty_eh): New.
2005 (execute_cleanup_eh): Rename from cleanup_eh. Remove unreachable
2006 handlers first. Use unsplit_all_eh, cleanup_all_empty_eh.
2007 (gate_cleanup_eh): New.
2008 (pass_cleanup_eh): Use it.
2009 (verify_eh_edges): Move later in file. Expect one EH edge.
2010 (verify_eh_dispatch_edge): New.
2012 * Makefile.in (FUNCTION_H): Use vecprim.h, not varray.h.
2013 (gtype-desc.o): Add TARGET_H.
2014 (tree.o): Use EXCEPT_H, not except.h.
2015 (cfgbuild.o): Add EXPR_H.
2016 (GTFILES): Add vecprim.h.
2017 * builtins.c (expand_builtin): Handle BUILT_IN_EH_POINTER,
2018 BUILT_IN_EH_FILTER, BUILT_IN_EH_COPY_VALUES.
2019 * builtins.def (BUILT_IN_UNWIND_RESUME, BUILT_IN_EH_POINTER,
2020 BUILT_IN_EH_FILTER, BUILT_IN_EH_COPY_VALUES): New.
2021 * calls.c (emit_call_1): Use make_reg_eh_region_note.
2022 * cfgbuild.c (control_flow_insn_p): Use can_nonlocal_goto; tidy
2023 calls to can_throw_internal.
2024 (rtl_make_eh_edge): Use get_eh_landing_pad_from_rtx.
2025 (make_edges): Don't handle RESX; use can_nonlocal_goto.
2026 * cfgexpand.c (expand_gimple_stmt_1): Don't handle RESX.
2027 (expand_gimple_stmt): Use make_reg_eh_region_note.
2028 (expand_debug_expr): Don't handle EXC_PTR_EXPR and FILTER_EXPR.
2029 (gimple_expand_cfg): Don't call convert_from_eh_region_ranges,
2030 or find_exception_handler_labels.
2031 * cfgrtl.c (rtl_verify_flow_info_1): Don't handle RESX. Assert
2032 there is exacly one EH edge. Use can_nonlocal_goto and
2034 * cgraphunit.c (update_call_expr): Use maybe_clean_eh_stmt_fn.
2035 (cgraph_materialize_all_clones): Use maybe_clean_or_replace_eh_stmt.
2036 * combine.c (can_combine_p, try_combine): Use insn_nothrow_p.
2037 * cse.c (count_reg_usage, insn_live_p): Use insn_could_throw_p.
2038 * dce.c (deletable_insn_p_1): Don't test may_trap_p.
2039 (deletable_insn_p): Use insn_nothrow_p; reorder nonjump insn test.
2040 * dse.c (scan_insn): Use insn_could_throw_p.
2041 * emit-rtl.c (try_split): Use copy_reg_eh_region_note_backward.
2042 * expr.c (expand_expr_real): Use make_reg_eh_region_note.
2043 (expand_expr_real_1): Don't handle RESX, EXC_PTR, or FILTER_EXPR.
2044 * fold-const.c (tree_expr_nonnegative_warnv_p): Don't handle
2045 EXC_PTR_EXPR or FILTER_EXPR.
2046 (tree_expr_nonzero_warnv_p): Likewise.
2047 * function.h: Include vecprim.h, not varray.h
2048 (struct rtl_eh): Remove filter, exc_ptr, built_landing_pad members;
2049 move ttype_data and ehspec_data members to struct eh_status; change
2050 action_record_data member to a VEC.
2051 * gcse.c (hash_scan_set): Use can_throw_internal.
2052 * gengtype.c (open_base_files): Add target.h to gtype-desc.c.
2053 * gimple-iterator.c (gsi_replace): Use maybe_clean_or_replace_eh_stmt.
2054 * gimple-low.c (lower_stmt): Handle GIMPLE_EH_MUST_NOT_THROW.
2055 (block_may_fallthru): Don't handle RESX_EXPR.
2056 * gimple-pretty-print.c (dump_gimple_label): Dump EH_LANDING_PAD_NR.
2057 (dump_gimple_eh_must_not_throw, dump_gimple_eh_dispatch): New.
2058 (dump_gimple_stmt): Dump landing pad information with TDF_EH;
2059 handle GIMPLE_EH_MUST_NOT_THROW, GIMPLE_EH_DISPATCH.
2060 * gimple.c (gss_for_code): Handle GIMPLE_EH_MUST_NOT_THROW,
2061 GIMPLE_EH_DISPATCH, GIMPLE_RESX.
2062 (gimple_size): Likewise.
2063 (gimple_build_eh_dispatch, gimple_build_eh_must_not_throw): New.
2064 (gimple_build_resx): Use gimple_build_with_ops.
2065 (DEFTREECODE): Don't handle EXC_PTR_EXPR, FILTER_EXPR.
2066 (is_gimple_val): Likewise.
2067 (is_gimple_stmt): Remove RESX_EXPR.
2068 * gimple.def (GIMPLE_EH_MUST_NOT_THROW, GIMPLE_EH_DISPATCH): New.
2069 (GIMPLE_RESX): Reorder with other EH constructs.
2070 * gimple.h (struct gimple_statement_eh_mnt): New.
2071 (struct gimple_statement_eh_ctrl): Rename from gimple_statement_resx.
2072 (gimple_eh_filter_must_not_throw): Remove.
2073 (gimple_eh_filter_set_must_not_throw): Remove.
2074 (gimple_eh_must_not_throw_fndecl): New.
2075 (gimple_eh_dispatch_region, gimple_eh_dispatch_set_region): New.
2076 (is_gimple_resx): New.
2077 * gimplify.c (gimplify_expr): Don't handle EXC_PTR_EXPR, RESX_EXPR.
2078 Don't copy EH_FILTER_MUST_NOT_THROW.
2079 * gsstruct.def (GSS_EH_MNT, GSS_EHCONTROL): New.
2080 * ipa-inline.c (estimate_function_body_sizes): Don't try to
2081 handle must_not_throw_labels specially.
2082 * ipa-pure-const.c (check_call): Update debug statement for LP.
2083 * ipa-type-escape.c (check_operand): Don't handle EXC_PTR or FILTER.
2084 * ipa-utils.c (get_base_var): Likewise.
2085 * libfunc.h (LTI_unwind_resume, unwind_resume_libfunc): Remove.
2086 * lower-subreg.c (move_eh_region_note): Remove.
2087 (resolve_simple_move): Use copy_reg_eh_region_note_forward.
2088 * omp-low.c (new_omp_context): Update for eh_lp_nr.
2089 (create_task_copyfn): Likewise.
2090 (maybe_catch_exception): Use gimple_build_eh_filter.
2091 * optabs.c (emit_libcall_block): Update test for no-nonlocal-goto
2092 REG_EH_REGION. Use make_reg_eh_region_note_nothrow_nononlocal.
2093 * passes.c (init_optimization_passes): Add pass_lower_eh_dispatch
2094 and pass_lower_resx.
2095 * print-tree.c (print_node): Dump EH_LANDING_PAD_NR.
2096 * recog.c (peephole2_optimize): Use copy_reg_eh_region_note_backward,
2097 can_throw_internal, can_nonlocal_goto.
2098 * reload1.c (fixup_eh_region_note): Use insn_could_throw_p,
2099 copy_reg_eh_region_note_forward.
2100 (emit_input_reload_insns): Use copy_reg_eh_region_note_forward.
2101 (emit_output_reload_insns): Likewise.
2102 (copy_eh_notes): Remove.
2103 * rtl.def (RESX): Remove.
2104 * rtl.h: Update declarations.
2105 * sese.c (graphite_copy_stmts_from_block): Use maybe_duplicate_eh_stmt.
2106 * tree-cfg.c (make_edges): Handle GIMPLE_EH_DISPATCH.
2107 (update_eh_label): Remove.
2108 (cleanup_dead_labels_eh): New.
2109 (cleanup_deal_labels): Use it instead of update_eh_label.
2110 (gimple_merge_blocks): Update landing pad data structure when
2111 removing a landing pad label.
2112 (remove_useless_stmts_tc): Remove gimple_eh_filter_must_not_throw
2113 test; handle GIMPLE_EH_MUST_NOT_THROW.
2114 (is_ctrl_altering_stmt): Handle GIMPLE_EH_DISPATCH.
2115 (verify_gimple_assign_single): Don't handle EXC_PTR or FILTER_EXPR.
2116 (verify_types_in_gimple_stmt): Handle GIMPLE_EH_DISPATCH.
2117 (verify_stmt): Likewise. Verify landing pads.
2118 (gimple_redirect_edge_and_branch): Handle GIMPLE_EH_DISPATCH.
2119 (gimple_duplicate_bb): Use maybe_duplicate_eh_stmt.
2120 (struct move_stmt_d): Add eh_map.
2121 (move_stmt_eh_region_nr, move_stmt_eh_region_tree_nr): New.
2122 (move_stmt_r): Remap eh region numbers in builtin calls,
2123 resx and eh_dispatch.
2124 (move_block_to_fn): Remove eh_offset parameter. Use
2125 maybe_duplicate_eh_stmt_fn.
2126 (find_outermost_region_in_block): Operate on eh_region pointers
2127 instead of region numbers.
2128 (move_sese_region_to_fn): Expect eh_map instead of eh_offset from
2129 duplicate_eh_regions.
2130 * tree-cfgcleanup.c (tree_forwarder_block_p): Move entry block edge
2131 test earlier. Disallow EH landing pads.
2132 * tree-cfa.c (create_tree_common_ann): Don't set ann->rn.
2133 * tree-flow.h: Update declarations.
2134 (struct tree_ann_common_d): Replace rn with lp_nr.
2135 * tree-inline.c (copy_tree_body_r): Don't handle RESX_EXPR.
2136 (remap_eh_region_nr, remap_eh_region_tree_nr): New.
2137 (remap_gimple_stmt): Remap eh region numbers in builtin calls,
2138 resx and eh_dispatch.
2139 (copy_bb): Use maybe_duplicate_eh_stmt_fn.
2140 (copy_edges_for_bb): Use make_eh_dispatch_edges.
2141 (copy_cfg_body): Expect eh_map instead of eh_region_offset
2142 from duplicate_eh_regions.
2143 (estimate_num_insns): Don't handle EXC_PTR_EXPR or FILTER_EXPR;
2144 update RESX; handle EH_DISPATCH.
2145 (expand_call_inline): Set eh_lp_nr, not eh_region.
2146 (maybe_inline_call_in_expr): Likewise.
2147 * tree-inline.h (struct copy_body_data): Replace eh_region with
2148 eh_lp_nr, eh_region_offset with eh_map.
2149 * tree-optimize.c (execute_fixup_cfg): Use maybe_clean_eh_stmt.
2150 * tree-pass.h (pass_lower_eh_dispatch, pass_lower_resx): New.
2151 * tree-pretty-print.c (dump_generic_node): Don't handle
2152 EXC_PTR_EXPR, FILTER_EXPR, RESX_EXPR.
2153 * tree-sra.c (scan_function): Use maybe_clean_eh_stmt.
2154 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Don't handle
2155 EXC_PTR_EXPR, FILTER_EXPR.
2156 * tree-ssa-operands.c (get_expr_operands): Likewise.
2157 * tree-ssa-propagate.c (valid_gimple_rhs_p): Likewise.
2158 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
2159 (ao_ref_init_from_vn_reference): Likewise.
2160 * tree-ssa-sink.c (statement_sink_location): Likewise.
2161 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
2162 (mark_virtual_phi_result_for_renaming): Export. Tidy.
2163 * tree-ssa-pre.c (get_or_alloc_expr_for): Don't handle
2164 EXC_PTR_EXPR, FILTER_EXPR.
2165 (is_exception_related): Remove.
2166 (compute_avail): Don't call it.
2167 * tree-ssa-structalias.c: Remove VEC definitions for int and unsigned.
2168 * tree.c (find_decls_types_in_eh_region): Update for eh_region changes.
2169 (find_decls_types_in_node): Use FOR_ALL_EH_REGION_FN.
2170 (build_common_builtin_nodes): Add enable_cxa_end_cleanup parameter.
2172 (build_resx): Remove.
2173 * tree.def (EXC_PTR_EXPR, FILTER_EXPR, RESX_EXPR): Remove.
2174 * tree.h: Update declarations.
2175 (EH_FILTER_MUST_NOT_THROW): Remove.
2176 (struct tree_label_decl): Add eh_landing_pad_nr.
2177 (EH_LANDING_PAD_NR): New.
2178 * value-prof.c (gimple_ic): Tidy variable names. Update for
2179 landing pad numbers.
2180 (gimple_stringop_fixed_value): Tidy variable names. Assert
2181 that neither call stmt can throw.
2182 * vecprim.h (uchar): New.
2183 (VEC(uchar,heap), VEC(uchar,gc)): New.
2185 * c-common.c (c_define_builtins): Update call to
2186 build_common_builtin_nodes.
2187 * c-parser.c (c_parse_file): Don't call
2188 default_init_unwind_resume_libfunc.
2190 2009-09-14 Richard Sandiford <rdsandiford@googlemail.com>
2192 * config/mips/mips-protos.h (mips_cfun_has_cprestore_slot_p): Declare.
2193 (mips_cprestore_address_p): Likewise.
2194 (mips_save_gp_to_cprestore_slot): Likewise.
2195 (mips_restore_gp): Rename to...
2196 (mips_restore_gp_from_cprestore_slot): ...this.
2197 (mips_must_initialize_gp_p): Declare.
2198 (mips_emit_save_slot_move): Likewise.
2199 (mips_output_load_label): Return nothing.
2200 (mips_eh_uses): Declare.
2201 * config/mips/mips.h (TARGET_SPLIT_CALLS): Require epilogue_completed.
2202 (TARGET_CPRESTORE_DIRECTIVE): New macro.
2203 (TARGET_ABSOLUTE_JUMPS): Likewise.
2204 (EH_USES): Likewise.
2205 (FIRST_PSEUDO_REGISTER): Update comment.
2206 (MIPS_ABSOLUTE_JUMP): New macro, extracted from...
2207 (MIPS_CALL): ...here.
2208 (REGISTER_NAMES): Add $cprestore.
2209 * config/mips/mips.c (machine_function): Remove has_gp_insn_p.
2210 Add load_label_length, has_inflexible_gp_insn_p,
2211 has_flexible_gp_insn_p, must_initialize_gp_p and
2212 must_restore_gp_when_clobbered_p.
2213 (mips_expand_call): Don't generate split instructions here.
2214 (mips_split_call): Update the call to mips_restore_gp after
2215 the above name change.
2216 (mips16_cfun_returns_in_fpr_p): Move earlier in file.
2217 (mips_find_gp_ref): New function.
2218 (mips_insn_has_inflexible_gp_ref_p): Likewise.
2219 (mips_cfun_has_inflexible_gp_ref_p): Likewise.
2220 (mips_insn_has_flexible_gp_ref_p): Likewise.
2221 (mips_cfun_has_flexible_gp_ref_p): Likewise.
2222 (mips_function_has_gp_insn): Delete.
2223 (mips_global_pointer): Drop the df_regs_ever_live_p check.
2224 Use the new functions above. Only return INVALID_REGNUM
2225 for TARGET_ABSOLUTE_JUMPS.
2226 (mips_must_initialize_gp_p): New function.
2227 (mips_get_cprestore_base_and_offset): New function, extracted from...
2228 (mips_cprestore_slot): ...here. Take a bool parameter.
2229 (mips_cfun_has_cprestore_slot_p): New function.
2230 (mips_cprestore_address_p): Likewise.
2231 (mips_save_gp_to_cprestore_slot): Likewise.
2232 (mips_restore_gp): Rename to...
2233 (mips_restore_gp_from_cprestore_slot): ...this. Assert
2234 epilogue_completed. Update the call to mips_cprestore_slot.
2235 Test cfun->machine->must_restore_gp_when_clobbered_p.
2236 (mips_direct_save_slot_move_p): New function.
2237 (mips_emit_save_slot_move): Likewise.
2238 (mips_output_cplocal): Test mips_must_initialize_gp_p () instead
2239 of cfun->machine->global_pointer.
2240 (mips_output_function_prologue): Check mips_must_initialize_gp_p ().
2241 (mips_save_reg): Use mips_emit_save_slot_move.
2242 (mips_expand_prologue): Set must_initialize_gp_p.
2243 Use mips_cfun_has_cprestore_slot_p. Use gen_potential_cprestore
2244 for all cprestore saves. Emit a use_cprestore instruction after
2245 setting up the cprestore slot.
2246 (mips_restore_reg): Use mips_emit_save_slot_move.
2247 (mips_process_load_label): New function.
2248 (mips_load_label_length): Likewise.
2249 (mips_output_load_label): Don't return asm: output it here instead.
2250 Use mips_process_load_label.
2251 (mips_adjust_insn_length): Adjust the length of branch instructions
2252 that have length MAX_PIC_BRANCH_LENGTH.
2253 (mips_output_conditional_branch): Update the call to
2254 mips_output_load_label. Assume the branch target is OPERANDS[0]
2255 rather than OPERANDS[1]. Use MIPS_ABSOLUTE_JUMP for absolute jumps.
2256 (mips_output_order_conditional_branch): Swap the meaning of
2257 OPERANDS[0] and OPERANDS[1].
2258 (mips_variable_issue): Don't count ghost instructions.
2259 (mips_expand_ghost_gp_insns): New function.
2260 (mips_reorg): Rerun mips_reorg_process_insns if it returns true.
2261 (mips_output_mi_thunk): Set must_initialize_gp_p.
2262 (mips_eh_uses): New function.
2263 * config/mips/predicates.md (cprestore_save_slot_operand)
2264 (cprestore_load_slot_operand): New predicates.
2265 * config/mips/mips.md (UNSPEC_POTENTIAL_CPRESTORE): New unspec.
2266 (UNSPEC_MOVE_GP): Likewise.
2267 (UNSPEC_CPRESTORE, UNSPEC_RESTORE_GP, UNSPEC_EH_RETURN)
2268 (UNSPEC_CONSTTABLE_INT, UNSPEC_CONSTTABLE_FLOAT): Bump to make room.
2269 (CPRESTORE_SLOT_REGNUM): New register.
2270 (MAX_PIC_BRANCH_LENGTH): New constant.
2271 (jal_macro): Use MIPS_ABSOLUTE_JUMPS.
2272 (length): Use MAX_PIC_BRANCH_LENGTH as a placeholder for PIC long
2273 branches. Fix commentary.
2274 (loadgp_newabi_<mode>): Change from unspec_volatile to unspec.
2275 Only split if mips_must_initialize_gp_p; expand to nothing otherwise.
2276 Change type to "ghost".
2277 (loadgp_absolute_<mode>): Likewise.
2278 (loadgp_rtp_<mode>): Likewise.
2279 (copygp_mips16): Likewise.
2280 (loadgp_blockage): Remove redundant mode attribute.
2281 (potential_cprestore): New instruction.
2282 (cprestore): Turn into an unspec set.
2283 (use_cprestore): New instruction.
2284 (*branch_fp): Swap operands 0 and 1. Remove redundant mode attribute.
2285 (*branch_fp_inverted): Likewise.
2286 (*branch_order<mode>): Likewise.
2287 (*branch_order<mode>_inverted): Likewise.
2288 (*branch_equality<mode>): Likewise.
2289 (*branch_equality<mode>_inverted): Likewise.
2290 (*branch_bit<bbv><mode>): Likewise.
2291 (*branch_bit<bbv><mode>_inverted): Likewise.
2292 (*branch_equality<mode>_mips16): Remove redundant mode.
2293 (jump): Turn into a define_expand.
2294 (*jump_absolute): New instruction.
2295 (*jump_pic): Likewise.
2296 (*jump_mips16): Rename previously-unnamed pattern. Remove
2297 redundant mode attribute.
2298 (restore_gp): Split on epilogue_completed rather than
2299 reload_completed. Change type to "ghost".
2300 (move_gp<mode>): New instruction.
2301 * config/mips/mips-dsp.md (mips_bposge): Swap operands 0 and 1.
2302 Remove redundant mode attribute.
2303 * config/mips/mips-ps-3d.md (bc1any4t): Likewise.
2304 (bc1any4f, bc1any2t, bc1any2f): Likewise.
2305 (*branch_upper_lower, *branch_upper_lower_inverted): Likewise.
2307 2009-09-14 Michael Meissner <meissner@linux.vnet.ibm.com>
2310 * config/rs6000/rs6000.c (rs6000_function_value): V2DF and V2DI
2311 are returned in the same register (vs34 or v2) that Altivec vector
2312 types are returned in.
2313 (rs6000_libcall_value): Ditto.
2316 * config/rs6000/rs6000.c (rs6000_emit_move): Use gen_add3_insn
2317 instead of explicit addsi3/adddi3 calls.
2318 (rs6000_split_multireg_move): Ditto.
2319 (rs6000_emit_allocate_stack): Ditto.
2320 (rs6000_emit_prologue): Ditto.
2321 (rs6000_output_mi_thunk): Ditto.
2323 * config/rs6000/rs6000.md (bswapdi*): Don't assume the pointer
2324 size is 64 bits if we can use 64-bit registers.
2326 2009-09-14 Bernd Schmidt <bernd.schmidt@analog.com>
2328 * config/bfin/bfin.c (bfin_longcall_p): Don't use short calls for weak
2331 From Jie Zhang <jie.zhang@analog.com>:
2332 * config/bfin/bfin.c (bfin_expand_prologue): Ask do_link to
2333 save FP and RETS with saveall attribute.
2334 (bfin_expand_epilogue): Ask do_unlink to restore FP and RETS
2335 with saveall attribute.
2337 * config/bfin/bfin.c (bfin_expand_builtin,
2338 case BFIN_BUILTIN_MULT_1X32X32): Force constants to registers for the
2341 From Jie Zhang <jie.zhang@analog.com>:
2342 * config/bfin/bfin.c (bfin_expand_builtin): Initialize icodes
2343 before use in two places.
2344 * config/bfin/bfin.md (AREG): Define mode iterator.
2345 (reload_in, reload_out): Use mode iterator AREG.
2347 2009-09-14 Richard Guenther <rguenther@suse.de>
2350 * dwarf2out.c (dwarf2out_begin_prologue): Adjust non-CFI asm
2351 EH personality path.
2353 2009-09-13 Richard Guenther <rguenther@suse.de>
2354 Rafael Avila de Espindola <espindola@google.com>
2356 * langhooks-def.h (LANG_HOOKS_EH_RUNTIME_TYPE): Define.
2357 (LANG_HOOKS_EH_PERSONALITY): Likewise.
2358 (LANG_HOOKS_INITIALIZER): Adjust.
2359 (lhd_pass_through_t): Declare.
2360 * langhooks.h (struct lang_hooks): Add eh_runtime_type and
2362 * langhooks.c (lhd_pass_through_t): New function.
2363 * dwarf2out.c (output_call_frame_info, dwarf2out_do_cfi_startproc,
2364 dwarf2out_begin_prologue): Use personality from current_function_decl.
2365 * expr.h (get_personality_function): Declare.
2366 * expr.c (get_personality_function): New function.
2367 (build_personality_function): Likewise.
2368 * libfuncs.h (libfunc_index): Remove LTI_eh_personality.
2369 (eh_personality_libfunc): Remove.
2370 * optabs.c (build_libfunc_function): New function split out from ...
2371 (init_one_libfunc): ... here.
2372 * tree.h (DECL_FUNCTION_PERSONALITY): New.
2373 (tree_function_decl): Add personality.
2374 (lhd_gcc_personality): Declare.
2375 (build_personality_function): Likewise.
2376 * tree.c (gcc_eh_personality_decl): New.
2377 (lhd_gcc_personality): New function.
2378 * except.h (lang_eh_runtime_type): Remove.
2379 (enum eh_personality_kind): New.
2380 (build_personality_function): Declare.
2381 (function_needs_eh_personality): Declare.
2382 * except.c (lang_eh_runtime_type): Remove.
2383 (function_needs_eh_personality): New function.
2384 (add_type_for_runtime): Call lang_hooks.type_for_runtime instead.
2385 (sjlj_emit_function_enter, output_function_exception_table):
2386 Use personality from current_function_decl.
2387 * tree-eh.c (lower_eh_constructs): Set DECL_FUNCTION_PERSONALITY.
2388 * tree-inline.c (tree_can_inline_p): Do not inline across different
2390 (expand_call_inline): Likewise. Adjust the callers EH personality.
2391 (tree_function_versioning): Copy DECL_FUNCTION_PERSONALITY.
2392 * cgraph.c (cgraph_add_new_function): Set DECL_FUNCTION_PERSONALITY.
2393 * Makefile.in (cgraph.o): Add $(EXCEPT_H) dependency.
2394 (c-parser.o): Likewise
2395 * c-tree.h (c_eh_initialized_p): Remove.
2396 (c_maybe_initialize_eh): Likewise.
2397 * c-decl.c (finish_decl): Don't call c_maybe_initialize_eh.
2398 (finish_decl): Don't call c_maybe_initialize_eh.
2399 (c_eh_initialized_p): Remove.
2400 (c_maybe_initialize_eh): Likewise.
2401 * c-parser.c (c_parser_omp_construct): Likewise.
2402 (c_parse_file): Initialize exception handling.
2404 2009-09-13 Kai Tietz <kai.tietz@onevision.com>
2406 * config.gcc (tm_file): Remove i386/biarch32.h
2407 for i?86-w64-mingw* case.
2408 (i?86-*-mingw* andx86_64-*-mingw*): Add multilib
2410 * config.host: Set for x64 mingw the option
2411 use_long_long_for_widest_fast_int to yes.
2413 2009-09-13 Eric Botcazou <ebotcazou@adacore.com>
2415 * tree.h (DECL_IGNORED_P): Document further effect for FUNCTION_DECL.
2416 * dbxout.c (dbxout_function_end): Do not test DECL_IGNORED_P.
2417 (dbxout_begin_function): Likewise.
2418 * final.c (dwarf2_debug_info_emitted_p): New predicate.
2419 (final_start_function): Do not emit debug info if DECL_IGNORED_P is
2420 set on the function.
2421 (final_end_function): Likewise.
2422 (final_scan_insn): Likewise.
2423 (rest_of_handle_final): Likewise.
2424 * varasm.c (assemble_start_function): Likewise.
2425 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
2427 2009-09-12 Jason Merrill <jason@redhat.com>
2429 * dbgcnt.c (dbg_cnt_process_single_pair): constify.
2430 * opts.c (common_handle_option): constify.
2432 2009-09-12 Gerald Pfeifer <gerald@pfeifer.com>
2434 * doc/install.texi (avr): Remove obsolete reference site.
2436 2009-09-12 Gerald Pfeifer <gerald@pfeifer.com>
2438 * doc/install.texi (Binaries): Adjust AIX link.
2440 2009-09-12 Akim Demaille <demaille@gostai.com>
2442 * doc/invoke.texi (-fstrict-aliasing): Correct two examples.
2443 Use an imperative sentence.
2445 2009-09-11 Richard Henderson <rth@redhat.com>
2447 * gsstruct.def (DEFGSSTRUCT): Remove printable-name argument; add
2448 structure-name and has-tree-operands arguments; update all entries.
2449 * gimple.def (DEFGSCODE): Replace 3rd argument with GSS_symbol;
2451 * gimple.c (gimple_ops_offset_): Use HAS_TREE_OP argument.
2452 (gsstruct_code_size): New.
2453 (gss_for_code_): New.
2454 (gss_for_code): Remove.
2455 (gimple_size): Rewrite using gsstruct_code_size.
2456 (gimple_statement_structure): Move to gimple.h.
2457 * gimple.h (gimple_ops_offset_, gss_for_code_): Declare.
2458 (gss_for_code, gimple_statement_structure): New.
2459 (gimple_ops): Use new arrays; tidy.
2461 2009-09-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2463 * config/pa/predicates.md (symbolic_operand): Require a CONST symbolic
2464 operand to be a PLUS expression.
2465 * config/pa/pa.c (pa_secondary_reload): Likewise.
2467 2009-09-11 Jakub Jelinek <jakub@redhat.com>
2469 * combine.c (propagate_for_debug_subst): Call wrap_constant on top.
2471 * print-rtl.c (print_rtx): Use JUMP_LABEL (in_rtx) instead of
2474 2009-09-11 Bernd Schmidt <bernd.schmidt@analog.com>
2476 From Jie Zhang <jie.zhang@analog.com>:
2477 * doc/extend.texi (node Function Attributes): Document l2
2479 (node Blackfin Variable Attributes): Document l2 variable attributes.
2481 2009-09-11 Loren J. Rittle <ljrittle@acm.org>
2483 * config.gcc (*-*-freebsd*): Enable default_use_cxa_atexit
2484 to match the system compiler's configuration at inflection point.
2485 Add comment to remark a remaining difference with system compiler.
2487 * configure.ac (*-*-freebsd*): Enable check for __stack_chk_fail.
2488 * configure: Regenerate.
2490 2009-09-11 Bernd Schmidt <bernd.schmidt@analog.com>
2492 From Jie Zhang <jie.zhang@analog.com>:
2493 * config/bfin/bfin.c (bfin_expand_call): Handle L2 functions.
2494 (bfin_handle_l2_attribute): New.
2495 (bfin_attribute_table): Add l2 attribute.
2497 2009-09-11 Michael Matz <matz@suse.de>
2500 * tree-inline.c (remap_decls): Don't put DECL_EXTERNAL decls
2501 on the local_decls list.
2503 2009-09-11 Alexandre Oliva <aoliva@redhat.com>
2507 * cselib.c (cselib_expand_value_rtx_cb): Document callback
2509 (cselib_expand_value_rtx_1): Use callback for SUBREGs. Adjust
2510 for VALUEs, to implement the documented interface.
2511 * var-tracking.c (vt_expand_loc_callback): Handle SUBREGs.
2512 Adjust for VALUEs and anything else, to implement the
2513 documented interface.
2515 2009-09-10 Nathan Froyd <froydnj@codesourcery.com>
2517 * config/rs6000/rs6000.h (DATA_ALIGNMENT): Check that we are dealing
2518 with actual SPE/paired vector modes before using 64-bit alignment.
2519 Check that TYPE is a REAL_TYPE for TARGET_E500_DOUBLE.
2521 2009-09-10 DJ Delorie <dj@redhat.com>
2523 * config/mep/mep.md (eh_epilogue): Defer until after epilogue is
2526 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): New.
2527 * config/mep/mep.c (mep_legitimate_constant_p): New.
2528 * config/mep/mep-protos.h: Prototype it.
2530 2009-09-10 Richard Henderson <rth@redhat.com>
2532 * print-rtl.c (print_rtx): Fix JUMP_LABEL index.
2534 2009-09-10 Jason Merrill <jason@redhat.com>
2536 * tree.c (chain_index): New fn.
2537 * tree.h: Declare it.
2539 2009-09-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2541 * config/sol2-c.c (cmn_err_length_specs): Initialize
2542 scalar_identity_flag.
2544 2009-09-10 Richard Henderson <rth@redhat.com>
2546 * tree.h (struct tree_decl_common): Move align member earlier;
2547 move label_decl_uid member ...
2548 (struct tree_label_decl): ... here.
2549 (LABEL_DECL_UID): Update to match.
2551 * tree-cfg.c (dump_function_to_file): Dump eh tree with TDF_EH,
2554 * tree-cfg.c (gimple_redirect_edge_and_branch): Do
2555 gimple_try_redirect_by_replacing_jump test after no-op and EH tests.
2557 * tree-cfg.c (split_edge_bb_loc): Don't disallow placement at
2558 dest_prev if the edge is complex.
2560 * tree-cfg.c (is_ctrl_stmt): Use a switch.
2562 * tree-cfg.c (gimple_can_merge_blocks_p): Move label and
2563 loop latch tests earlier.
2565 * gimple-iterator.c (gimple_find_edge_insert_loc): Insert
2566 before GIMPLE_RETURN, not after its predecessor; insert
2569 * gimple-iterator.c (gimple_find_edge_insert_loc): Use
2570 gimple_seq_empty_p to test for no PHI nodes.
2571 * tree-cfg.c (split_critical_edges): Likewise.
2573 * c-common.h (c_dialect_cxx, c_dialect_objc): Boolify.
2575 2009-09-10 Hariharan Sandanagobalane <hariharan@picochip.com>
2577 * final.c (shorten_branches) : Ignore DEBUG_INSN_P instructions
2578 introduced by the VTA branch merge.
2580 2009-09-10 Uros Bizjak <ubizjak@gmail.com>
2582 * ira-conflicts.c: Use fputs or putc instead of fprintf
2586 * tree-switch-conversion.c: Ditto.
2588 2009-09-10 Hariharan Sandanagobalane <hariharan@picochip.com>
2590 * config/picochip/picochip.c : Ignore DEBUG_INSN_P instructions
2591 introduced by the VTA branch merge.
2593 2009-09-10 Uros Bizjak <ubizjak@gmail.com>
2596 2009-09-09 Uros Bizjak <ubizjak@gmail.com>
2598 PR rtl-optimization/39779
2599 * expr.c (convert_modes): Return when mode == oldmode after
2600 CONST_INTs are processed.
2602 2009-09-10 Nick Clifton <nickc@redhat.com>
2604 * config/mep/mep.c (mep_encode_section_info): Copy weakness
2605 attribute and referring decl when creating renamed symbol.
2607 2009-09-10 Richard Guenther <rguenther@suse.de>
2610 * cgraphunit.c (cgraph_emit_thunks): Emit thunks only for
2612 (cgraph_finalize_compilation_unit): Compute reachability
2613 before emitting thunks. Properly process aliases before
2614 possibly removing unreachable nodes.
2616 2009-09-10 Richard Guenther <rguenther@suse.de>
2619 * tree.c (struct free_lang_data_d): Add worklist member.
2620 (find_decls_types_r): Push onto the worklist instead of recursing.
2621 Handle TREE_BINFOs properly.
2622 (find_decls_types): New function wrapped around find_decls_types_r
2623 to process the worklist.
2624 (find_decls_types_in_eh_region): Use it.
2625 (find_decls_types_in_node): Likewise.
2626 (find_decls_types_in_var): Likewise.
2627 (free_lang_data_in_cgraph): Likewise. Free the worklist.
2628 * tree.h (RECORD_OR_UNION_TYPE_P): New.
2629 (AGGREGATE_TYPE_P): Adjust.
2631 2009-09-09 Jason Merrill <jason@redhat.com>
2633 * configure.ac: Check glibc version even if we have an in-tree
2636 2009-09-09 Anthony Green <green@moxielogic.com>
2638 * config/moxie/moxie.md (*movsi, *movhi, *movqi): Use xor to load
2639 the constant 0 when appropriate.
2640 * config/moxie/constraints.md: Add constraint O.
2642 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Adjust
2643 to pass up to 6 32-bit argument values in registers.
2644 (moxie_function_arg): Ditto.
2645 (moxie_arg_partial_bytes): Ditto.
2646 * config/moxie/moxie.h (FUNCTION_ARG_ADVANCE): Ditto.
2647 (REG_PARM_STACK_SPACE): Ditto.
2648 (FUNCTION_ARG_REGNO_P): Ditto.
2650 * config/moxie/moxie.c (moxie_expand_prologue): Use dec
2651 instruction to allocate stack space.
2653 2009-09-09 Segher Boessenkool <segher@kernel.crashing.org>
2655 * config/rs6000/rs6000.md (bswapdi2_64bit): Fix
2656 unnecessarily stringent constraints. Fix address
2657 calculation in the splitters.
2659 2009-09-09 Uros Bizjak <ubizjak@gmail.com>
2661 PR rtl-optimization/39779
2662 * expr.c (convert_modes): Return when mode == oldmode after
2663 CONST_INTs are processed.
2665 2009-09-09 Kai Tietz <kai.tietz@onevision.com>
2668 * config/i386.c (ix86_can_use_return_insn_p): Check for padding0, too.
2669 (ix86_expand_prologue): Take frame.padding0 into logic of
2671 (ix86_expand_epilogue): Likewise.
2673 2009-09-09 Jakub Jelinek <jakub@redhat.com>
2675 * config/t-slibgcc-elf-ver (SHLIB_MAKE_SOLINK, SHLIB_INSTALL_SOLINK):
2677 (SHLIB_LINK, SHLIB_INSTALL): Use them.
2678 * config/t-slibgcc-libgcc: New file.
2679 * config.gcc (powerpc*-*-linux*, powerpc*-*-gnu*): Use it.
2681 2009-09-09 Martin Jambor <mjambor@suse.cz>
2683 PR tree-optimization/41089
2684 * tree-sra.c (find_var_candidates): Do not consider va_lists in
2687 2009-09-09 Richard Henderson <rth@redhat.com>
2689 * gimple.h (CASE_GIMPLE_OMP): New.
2690 (is_gimple_omp): Use it.
2691 * tree-cfg.c (is_ctrl_altering_stmt): Likewise.
2692 (verify_gimple_debug): Likewise.
2694 2009-09-09 Richard Guenther <rguenther@suse.de>
2696 PR tree-optimization/41101
2697 * tree-ssa-pre.c (maximal_set): Remove.
2698 (compute_antic_aux): Treat the maximal set as implicitly all ones.
2699 Defer all blocks we didn't visit at least one successor.
2700 (add_to_exp_gen): Do not add to the maximal set.
2701 (make_values_for_phi): Likewise.
2702 (compute_avail): Likewise.
2703 (init_pre): Do not allocate the maximal set.
2704 (execute_pre): Do not dump it.
2706 2009-09-09 Martin Jambor <mjambor@suse.cz>
2708 * tree-cfg.c (verify_gimple_phi): Check that gimple_phi_result is
2709 an SSA_NAME rather than a is_gimple_variable.
2711 2009-09-09 Richard Guenther <rguenther@suse.de>
2714 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Remove
2715 code dealing with plain pointer bases.
2716 (maybe_fold_offset_to_reference): Likewise.
2717 (maybe_fold_stmt_addition): Adjust.
2719 2009-09-09 Richard Guenther <rguenther@suse.de>
2721 * tree.c (free_lang_data_in_type): Do not free the type variant
2723 (free_lang_data): Merge char_type_node with its properly signed
2725 (pass_ipa_free): Collect after freeing language specific data.
2727 2009-09-09 Michael Matz <matz@suse.de>
2730 * cfgexpand.c (expand_gimple_stmt_1): Use an int for storing
2731 SUBREG_PROMOTED_UNSIGNED_P, instead of a bool.
2732 * rtl.h (struct rtx, SUBREG_PROMOTED_UNSIGNED_P): Update comments
2735 2009-09-08 DJ Delorie <dj@redhat.com>
2737 * config/mep/mep.c (conversions[]): Add "ml" pattern.
2739 2009-09-04 Jason Merrill <jason@redhat.com>
2741 * tree.c (tree_find_value): Remove.
2742 * tree.h: Remove prototype.
2743 * varasm.c (assemble_external): Use value_member instead.
2745 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
2747 * toplev.c (process_options): Choose default debugging type when
2748 gtoggle enables debug info and type is unset.
2750 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
2754 * cselib.c (cselib_expand_value_rtx_1): Don't return copy of
2757 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
2759 * configure: Rebuilt with modified libtool.m4.
2761 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
2766 * tree-ssa.c (execute_update_addresses_taken): Update debug insns.
2768 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
2770 * tree-ssa-loop-ivopts.c (get_phi_with_result): Remove.
2771 (remove_statement): Likewise.
2772 (rewrite_use_nonlinear_expr): Adjust.
2773 (remove_unused_ivs): Collect SSA NAMEs to remove and call...
2774 * tree-ssa.c (release_defs_bitset): ... this. New.
2775 * tree-flow.h (release_defs_bitset): Declare.
2777 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
2780 * tree-ssa-phiopt.c (minmax_replacement): Skip debug stmts
2781 in the middle block.
2783 2009-09-08 Kai Tietz <kai.tietz@onevision.com>
2785 * tree-ssa-reassoc.c (find_operand_rank): Cast pointer
2786 via intptr_t to long type.
2787 (insert_operand_rank): Cast long type via intptr_t to
2789 * genattrtab.c (RTL_HASH): Use intptr_t to cast from
2791 * c-pretty-print.c (pp_c_tree_decl_identifier): Cast
2792 from pointer to unsigned via uintptr_t.
2794 * configure.ac (GCC_STDINT_TYPES): Initialize intptr_t,
2795 uintptr_t, HAVE_INTTYPES_H, HAVE_STDINT_H, HAVE_UINTPTR_T,
2797 * configure: Regenerated.
2798 * config.in: Regenerated
2799 * system.h (stdint.h): Add include.
2800 (inttypes.h): Likewise.
2801 * Makefile.in (aclocal): Add config/stdint.m4.
2802 * aclocal.m4: Regenerated.
2804 2009-09-08 Bernd Schmidt <bernd.schmidt@analog.com>
2806 * config/bfin/bfin.c (np_check_regno, np_after_branch): New static
2808 (note_np_check_stores): New function.
2809 (harmless_null_pointer_p): New function.
2810 (trapping_loads_p): New args NP_REG and AFTER_NP_BRANCH. Callers
2811 changed. Take into account whether we're in the shadow of a condjump
2812 that tested NP_REG for NULL.
2813 Lose all code that tested for SEQUENCEs.
2814 (workaround_speculation): Avoid inserting NOPs for loads that are
2815 either always executed or a NULL pointer.
2817 2009-09-08 Jan Hubicka <jh@suse.cz>
2819 * doc/invoke.texi (early-inlining-insns): Reduce from 12 to 8.
2820 * params.def (early-inlining-insns): Likewise.
2822 2009-09-08 Jakub Jelinek <jakub@redhat.com>
2824 PR rtl-optimization/41239
2825 * sched-int.h (struct deps): Add last_function_call_may_noreturn field.
2826 * sched-rgn.c (deps_join): Join also last_function_call_may_noreturn
2828 * sched-deps.c (sched_analyze_insn): Prevent moving trapping insns
2829 across calls, as the calls might not always return normally.
2830 (call_may_noreturn_p): New function.
2831 (deps_analyze_insn): Update last_function_call_may_noreturn list.
2832 (init_deps): Initialize it.
2833 (remove_from_deps): Also remove calls from
2834 last_function_call_may_noreturn list.
2836 2009-09-07 Richard Henderson <rth@redhat.com>
2838 * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't assume there are
2839 more VR->OPERANDS than LHS operands. Free LHS before returning.
2841 2009-09-07 Bernd Schmidt <bernd.schmidt@analog.com>
2843 * config/bfin/bfin.md (UNSPEC_VOLATILE_STALL): New constant.
2844 (attr "addrtype"): New member "spreg".
2845 Use it if mem_spfp_address_operand is true for the address.
2846 (attr "type"): New entry "stall".
2847 (cpu_unit "load"): New.
2848 (insn_reservations "load32", "loadp", "loadi"): Add reservation of
2850 (insn_reservation "loadsp"): New.
2851 (insn_reservation "load_stall1"): New.
2852 (insn_reservation "load_stall3"): New.
2854 * config/bfin/predicates.md (const1_operand, const3_operand): New.
2855 (mem_p_address_operand): Exclude stack and frame pointer based
2857 (mem_spfp_address_operand): New; match them here.
2858 * config/bfin/bfin.c (add_sched_insns_for_speculation): New function.
2859 (bfin_reorg): Call it if scheduling insns.
2860 (bfin_gen_bundles): Remove dummy insns created by
2861 add_sched_insns_for_speculation.
2863 From Jie Zhang <jie.zhang@analog.com>:
2864 * config/bfin/bfin-protos.h (enum bfin_cpu_type, bfin_cpu_type,
2865 bfin_si_revision, bfin_workarounds): Move these ...
2866 * config/bfin/bfin.h: ... here.
2868 From Mike Frysinger <michael.frysinger@analog.com>
2869 * config/bfin/bfin-protos.h (bfin_cpu_type): Add BFIN_CPU_BF542M,
2870 BFIN_CPU_BF544M, BFIN_CPU_BF547M, BFIN_CPU_BF548M, and BFIN_CPU_BF549M.
2871 * config/bfin/bfin.c (bfin_cpus[]): Add 0.3 for bf542m, bf544m,
2872 bf547m, bf548m, and bf549m.
2873 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define __ADSPBF542M__
2874 for BFIN_CPU_BF542M, __ADSPBF544M__ for BFIN_CPU_BF544M,
2875 __ADSPBF547M__ for BFIN_CPU_BF547M, __ADSPBF548M__ for
2876 BFIN_CPU_BF548M, and __ADSPBF549M__ for BFIN_CPU_BF549M.
2877 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
2878 bf542m-none, bf544m-none, bf547m-none, bf548m-none, and bf549m-none.
2879 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
2880 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
2881 * doc/invoke.texi (Blackfin Options): Document that -mcpu now accepts
2882 bf542m, bf544m, bf547m, bf548m, and bf549m.
2884 From Jie Zhang <jie.zhang@analog.com>:
2885 * config/bfin/predicates.md (p_register_operand): New predicate.
2886 (dp_register_operand): New predicate.
2887 * config/bfin/bfin-protos.h (WA_05000074): Define.
2888 (ENABLE_WA_05000074): Define.
2889 * config/bfin/bfin.c (bfin_cpus[]): Add WA_05000074 for all cpus.
2890 (bfin_gen_bundles): Put dsp32shiftimm instruction in slot[0].
2891 * config/bfin/bfin.md (define_attr type): Add dsp32shiftimm.
2892 (define_attr addrtype): Allow load/store register to be P register.
2893 (define_attr storereg): New.
2894 (define_cpu_unit anomaly_05000074): New.
2895 (define_insn_reservation dsp32shiftimm): New.
2896 (define_insn_reservation dsp32shiftimm_anomaly_05000074): New.
2897 (define_insn_reservation loadp): Cannot use slot2.
2898 (define_insn_reservation loadsp): Cannot use slot2.
2899 (define_insn_reservation storep): Cannot use slot2. Does not
2900 apply when working around 05000074.
2901 (define_insn_reservation storep_anomaly_05000074): New.
2902 (define_insn_reservation storei): Does not apply when working
2904 (define_insn_reservation storei_anomaly_05000074): New.
2905 (define_attr length): Add dsp32shiftimm case.
2906 (define_insn movsi_insn32, movsi_insv, ashlsi3_insn, ashrsi3,
2907 ror_one, rol_one, lshrsi3, lshrpdi3, ashrpdi3, movhiv2hi_low,
2908 movhiv2hi_high, composev2hi, packv2hi, movv2hi_hi,
2909 ssashiftv2hi3, ssashifthi3, ssashiftsi3, lshiftv2hi3, lshifthi3):
2910 Set type as dsp32shiftimm for dsp32shiftimm alternatives.
2912 2009-09-07 Martin Jambor <mjambor@suse.cz>
2915 * tree-sra.c (create_artificial_child_access): Return NULL if
2916 build_ref_for_offset fails.
2917 (propagate_subacesses_accross_link): Allow build_ref_for_offset
2918 and create_artificial_child_access to fail.
2920 2009-09-06 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
2923 * unwind-dw2.c (uw_init_context_1): Mark noinline.
2924 * config/ia64/unwind-ia64.c (uw_init_context_1): Likewise.
2925 * config/xtensa/unwind-dw2-xtensa.c (uw_init_context_1): Likewise.
2927 2009-09-07 Bernd Schmidt <bernd.schmidt@analog.com>
2929 * config/bfin/bfin.c (bfin_optimize_loop): When creating a new basic
2930 block, ensure it has an exit edge. Emit a barrier after a jump.
2932 2009-09-07 Nick Clifton <nickc@redhat.com>
2934 * gcc.c (this_is_linker_script): New variable. Like
2935 this_is_library_file but for the %T constructor.
2936 (end_going_arg): If this_is_linker_script is set then locate the
2937 script and insert a --script switch before it
2938 (do_spec_2): Initialise this_is_linker_script.
2939 (do_spec_1): Likewise. Handle %T construct.
2940 (eval_spec_function): Preserve this_is_linker_script.
2941 * doc/invoke.texi: Document %T construct in spec files.
2942 * config/m32c/m32c.h (LIB_SPEC): Use it.
2944 2009-09-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2946 * rtl.h (PREFETCH_SCHEDULE_BARRIER_P): New macro.
2947 * sched-deps.c (sched_analyze_2): Make prefetches a hard barrier
2948 when volatile flag is set.
2949 * doc/rtl.texi (PREFETCH_SCHEDULE_BARRIER_P): Add documentation pieces.
2951 2009-09-06 Eric Botcazou <ebotcazou@adacore.com>
2954 * combine-stack-adj.c (try_apply_stack_adjustment): Handle stores.
2955 (combine_stack_adjustments_for_block): Allow insns between stack
2956 adjustments and stores with corresponding pre-(dec|inc)rement or
2957 pre-modify operation.
2959 2009-09-06 Jakub Jelinek <jakub@redhat.com>
2962 * combine-stack-adj.c (struct csa_memlist): Rename to...
2963 (struct csa_reflist): ... this. Rename mem field to ref.
2964 (free_csa_memlist): Rename to...
2965 (free_csa_reflist): ... this.
2966 (record_one_stack_memref): Rename to...
2967 (record_one_stack_ref): ... this. Handle also REG_P.
2968 (try_apply_stack_adjustment): Handle also REG_P.
2969 (struct record_stack_memrefs_data): Rename to...
2970 (struct record_stack_refs_data): ... this. Rename memlist field to
2972 (record_stack_memrefs): Rename to...
2973 (record_stack_refs): ... this. For DEBUG_INSNs keep traversing
2974 subexpressions instead of failing when a MEM contains SP references.
2975 For SP itself in DEBUG_INSNs queue it also onto reflist chain.
2976 (combine_stack_adjustments_for_block): Adjust for mem to ref renaming.
2978 2009-09-06 Richard Guenther <rguenther@suse.de>
2981 * tree.c (build_array_type): Do not record types marked
2982 with structural equality in the canonical type hashtable.
2984 2009-09-06 Richard Guenther <rguenther@suse.de>
2987 * tree-ssa-alias.c (refs_may_alias_p_1): Bail out for function decls.
2989 2009-09-05 Richard Guenther <rguenther@suse.de>
2992 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Use the correct type.
2994 2009-09-05 Richard Guenther <rguenther@suse.de>
2997 * tree-ssa-operands.c (get_tmr_operands): Pass through opf_no_vops.
2999 2009-09-05 Richard Guenther <rguenther@suse.de>
3002 * tree-ssa.c (useless_type_conversion_p): Drop qualifiers
3003 before comparing function argument types.
3005 2009-09-05 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3008 * config/i386/mingw-w64.h (ASM_SPEC): Pass -v instead of -V to
3011 2009-09-04 Uros Bizjak <ubizjak@gmail.com>
3014 2009-08-18 Uros Bizjak <ubizjak@gmail.com>
3016 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn
3017 locators before emit_insn is called.
3019 2009-09-04 Vladimir Makarov <vmakarov@redhat.com>
3022 * ira.c (update_equiv_reg): Revert my previous patch for the PR.
3023 * reginfo.c (resize_reg_info): Call allocate_reg_info if necessary.
3024 (reginfo_init): Don't call allocate_reg_info.
3026 2009-09-04 Uros Bizjak <ubizjak@gmail.com>
3029 * config/alpha/alpha.c (alpha_does_function_need_gp): Use
3030 NONDEBUG_INSN_P instead of INSN_P.
3032 2009-09-04 Alexandre Oliva <aoliva@redhat.com>
3035 * tree-vect-stmts.c (vect_stmt_relevant_p): Skip debug uses.
3037 2009-09-04 Alexandre Oliva <aoliva@redhat.com>
3040 * config/arm/vfp.md (*cmpdf_split_vfp): Fix src mode in the second
3041 pattern of the split.
3043 2009-09-04 Alexandre Oliva <aoliva@redhat.com>
3045 * toplev.c (process_options): Move setter of flag_var_tracking
3046 before other tests that depend on it. Move down setter of
3047 flag_rename_registers. Don't enable var-tracking-assignments
3048 by default if selective scheduling is enabled. Warn if both
3051 2009-09-04 Alexandre Oliva <aoliva@redhat.com>
3053 * var-tracking.c (dv_is_decl_p): Adjust NULL behavior to match
3054 comment. Use switch statement to catch overlaps between rtx
3055 and tree codes. Accept FUNCTION_DECLs in addition to those in...
3056 (IS_DECL_CODE): ... here. Remove.
3057 (check_value_is_not_decl): Remove.
3058 (dv_from_decl, dv_from_value): Check after conversion.
3060 2009-09-04 Richard Guenther <rguenther@suse.de>
3063 * (cgraph_finalize_compilation_unit): Move finalizing aliases
3064 after emitting tunks. Move emitting thunks and ctors from ...
3065 (cgraph_optimize): ... here. Remove redundant
3066 cgraph_analyze_functions.
3067 * varasm.c (find_decl_and_mark_needed): Remove no longer
3069 (finish_aliases_1): Adjust check for thunk aliases.
3071 2009-09-04 Daniel Gutson <dgutson@codesourcery.com>
3073 * config/arm/arm.md (ctzsi2): Added braces
3074 to avoid warning that broke booststrap.
3076 2009-09-04 Martin Jambor <mjambor@suse.cz>
3078 PR tree-optimization/41112
3079 * tree-sra.c (build_ref_for_offset_1): Signal that we cannot
3080 handle variable-bounded arrays.
3081 (expr_with_var_bounded_array_refs_p): New function.
3082 (analyze_access_subtree): Call expr_with_var_bounded_array_refs_p.
3084 2009-09-04 Wolfgang Gellerich <gellerich@de.ibm.com>
3086 * config/s390/2097.md: Removed two incorrect bypasses.
3087 (z10_fsimpdf): Fixed latency.
3088 (z10_fhex): New insn_reservation.
3089 (z10_floaddf): Fixed latency.
3090 (z10_floadsf): Fixed latency.
3091 (z10_ftrunctf): Fixed latency.
3092 (z10_ftruncdf): Fixed latency.
3093 * config/s390/s390.c (z10_cost): Fixed values.
3094 (s390_adjust_priority): Added z10 path.
3095 * config/s390/s390.md (type): Added fhex.
3096 (*mov<mode>_64dfp): Updated type attribute.
3097 (*mov<mode>_64): Updated type attribute.
3098 (*mov<mode>_31): Updated type attribute.
3099 (*mov<mode>"): Likewise.
3100 * config/s390/2084.md (x_fsimpdf): Updated condition.
3102 2009-09-04 Andreas Krebbel <krebbel1@de.ibm.com>
3104 * config/s390/s390.md ("*fmadd<mode>", "*fmsub<mode>"): Enable mem
3105 RTXs in the predicate for operand 1.
3107 2009-09-03 Daniel Gutson <dgutson@codesourcery.com>
3109 * config/arm/arm.md (UNSPEC_RBIT): New constant.
3110 (rbitsi2): New insn.
3111 (ctzsi2): New expand.
3112 * config/arm/arm.h (CTZ_DEFINED_VALUE_AT_ZERO): New macro.
3114 2009-09-03 Martin Jambor <mjambor@suse.cz>
3116 * tree-sra.c (duplicate_expr_for_different_base): Removed.
3117 (create_artificial_child_access): Use build_ref_for_offset instead
3118 of duplicate_expr_for_different_base.
3119 (propagate_subacesses_accross_link): Likewise.
3121 2009-09-03 Richard Sandiford <rdsandiford@googlemail.com>
3123 * config/mips/mips.c (USEFUL_INSN_P): Use NONDEBUG_INSN_P instead
3125 (mips16e_collect_argument_saves): Skip debug instructions.
3126 (mips_74k_agen_init): Use CALL_P || JUMP_P instead of !NONJUMP_INSN_P.
3127 (mips16_lay_out_constants): Use USEFUL_INSN_P instead of INSN_P.
3128 (r10k_insert_cache_barriers): Likewise.
3129 (mips_reorg_process_insns): Likewise.
3131 2009-09-03 Vladimir Makarov <vmakarov@redhat.com>
3134 * ira.c (update_equiv_reg): Remove check on class likely spill.
3136 2009-09-03 Jakub Jelinek <jakub@redhat.com>
3139 * dwarf2out.c (loc_descriptor): Don't use SUBREG_REG macro on
3140 SIGN_EXTEND or ZERO_EXTEND. Don't assume there is a REG inside of
3144 * function.c (assign_parm_find_stack_rtl): Don't set mem attributes on
3145 the stack slot if it is passed by invisible reference.
3146 * var-tracking.c (vt_add_function_parameters): Handle arguments passed
3147 by invisible reference.
3149 2009-09-03 Bernd Schmidt <bernd.schmidt@analog.com>
3151 * config/bfin/linux.h (TARGET_SUPPORTS_SYNC_CALLS): Define to 1.
3152 * config/bfin/uclinux.h (TARGET_SUPPORTS_SYNC_CALLS): Define to 1.
3153 * config/bfin/bfin.h (TARGET_SUPPORTS_SYNC_CALLS): Provide default of
3155 * config/bfin/sync.md: New file.
3156 * config/bfin/bfin.md: Include it.
3157 (UNSPEC_ATOMIC): New.
3158 (UNSPEC_ONES): Provide a unique number.
3160 From Jie Zhang <jie.zhang@analog.com>:
3161 * config/bfin/bfin.c (ret_regs): New.
3162 (must_save_fp_p): Don't return true because of frame_pointer_needed.
3163 (must_save_rets_p): New.
3164 (n_regs_saved_by_prologue): Use must_save_rets_p instead of
3165 current_function_is_leaf.
3166 (do_link): Likewise.
3167 (do_unlink): Likewise.
3168 (expand_interrupt_handler_prologue): Use ret_regs array.
3169 (expand_interrupt_handler_epilogue): Use ret_regs array and
3170 pass return register to gen_return_internal.
3171 (bfin_expand_epilogue): Pass return register to
3172 gen_return_internal.
3173 (bfin_expand_call): Explicitly clobber RETS.
3174 * config/bfin/bfin.h (FUNCTION_RETURN_REGISTERS): Define.
3175 * config/bfin/bfin.md (call_symbol_fdpic, call_value_symbol_fdpic,
3176 call_insn_fdpic, call_value_insn_fdpic, call_symbol,
3177 call_value_symbol, call_insn, call_value_insn): Explicitly clobber
3179 (return_internal): Take a reg rtx rather than the register number.
3181 2009-09-03 H.J. Lu <hongjiu.lu@intel.com>
3183 * tree-parloops.c (parallelize_loops): Cast to HOST_WIDE_INT
3184 when comparing against estimated_loop_iterations_int return.
3186 2009-09-03 Richard Guenther <rguenther@suse.de>
3188 * dwarf2out.c (dwarf2out_do_cfi_asm): Remove check of
3189 eh_personality_libfunc.
3191 2009-09-03 Razya Ladelsky <razya@il.ibm.com>
3193 * tree-parloops.c (separate_decls_in_region): Add space.
3195 2009-09-03 Razya Ladelsky <razya@il.ibm.com>
3197 * tree-parloops.c (separate_decls_in_region): Change the condition
3198 checking if there are reductions in the loop.
3200 2009-09-03 Razya Ladelsky <razya@il.ibm.com>
3202 PR tree-optimization/38275
3203 * tree-parloops.c (parallelize_loops): Replace profitability condition
3204 for expected number of iterations.
3206 2009-09-03 Alexandre Oliva <aoliva@redhat.com>
3208 * doc/invoke.texi (BUILD_CONFIG): Document --with-build-config.
3209 (bootstrap-debug): Explain conditions in which it becomes default.
3210 (bootstrap-debug-big): Rather than duplicate bootstrap-debug,
3213 2009-09-03 Namhyung Kim <namhyung@gmail.com>
3215 * doc/invoke.texi (Optimize Options): Move
3216 -finline-small-functions to the -O2 list.
3218 2009-09-03 Alexandre Oliva <aoliva@redhat.com>
3220 * toplev.c (process_options): Enable var-tracking-assignments
3221 by default if var-tracking is enabled.
3223 2009-09-02 David Daney <ddaney@caviumnetworks.com>
3225 * cfgbuild.c (find_bb_boundaries): Split blocks containing a
3227 * emit-rtl.c (prev_nonnote_insn_bb): New function.
3228 * rtl.h (prev_nonnote_insn_bb): Declare it.
3230 2009-09-03 Diego Novillo <dnovillo@google.com>
3232 * cgraph.c (cgraph_node_for_decl): New.
3233 * cgraph.h (cgraph_node_for_decl): Declare.
3234 * tree.c (host_integerp): Return 0 if T is NULL.
3236 2009-09-03 Diego Novillo <dnovillo@google.com>
3238 * tree.h (struct alias_pair): Move from varasm.c.
3239 (alias_pairs): Likewise.
3240 (TYPE_MAXVAL): Define.
3241 (TYPE_MINVAL): Define.
3242 (iterative_hash_host_wide_int): Declare.
3243 (remove_unreachable_alias_pairs): Declare.
3244 * tree-pass.h (pass_ipa_free_lang_data): Declare.
3245 * diagnostic.c (default_diagnostic_starter): Make extern.
3246 (default_diagnostic_finalizer): Make extern.
3247 * diagnostic.h (default_diagnostic_starter): Declare.
3248 (default_diagnostic_finalizer): Declare.
3249 (default_tree_printer): Declare.
3250 * toplev.c (default_tree_printer): Make extern.
3252 2009-09-03 Richard Guenther <rguenther@suse.de>
3253 Diego Novillo <dnovillo@google.com>
3255 * cgraph.c (cgraph_add_new_function): Remove gimplification.
3256 * cgraphunit.c (cgraph_expand_function): Do not emit
3257 associated thunks from here.
3258 (cgraph_emit_thunks): New.
3259 (cgraph_optimize): Call it.
3260 Return if any IPA pass finds an error.
3261 * varasm.c (finish_aliases_1): Ignore errorneous aliases used
3264 2009-09-03 Simon Baldwin <simonb@google.com>
3265 Rafael Espindola <espindola@google.com>
3266 Richard Guenther <rguenther@suse.de>
3267 Doug Kwan <dougkwan@google.com>
3268 Diego Novillo <dnovillo@google.com>
3270 * tree.c: Include tree-pass.h, langhooks-def.h,
3271 diagnostic.h, cgraph.h, timevar.h, except.h and debug.h.
3272 (free_lang_data_in_type): New.
3273 (need_assembler_name_p): New.
3274 (free_lang_data_in_block): New.
3275 (free_lang_data_in_decl): New.
3276 (struct free_lang_data_d): New.
3277 (add_tree_to_fld_list): New.
3278 (find_decls_types_r): New.
3279 (get_eh_types_for_runtime): New.
3280 (find_decls_types_in_eh_region): New.
3281 (find_decls_types_in_node): New.
3282 (find_decls_types_in_var): New.
3283 (free_lang_data_in_cgraph): New.
3284 (free_lang_data): New.
3285 (gate_free_lang_data): New.
3286 (pass_ipa_free_lang_data): New.
3288 2009-09-03 Diego Novillo <dnovillo@google.com>
3290 * timevar.def (TV_IPA_FREE_LANG_DATA): Define.
3291 * langhooks.h (struct lang_hooks): Add field free_lang_data.
3292 (lang_hooks): Remove const qualifier.
3293 * ipa.c (cgraph_remove_unreachable_nodes): Call
3294 remove_unreachable_alias_pairs.
3295 * except.c (add_type_for_runtime): Check if TYPE has
3296 already been converted.
3297 (lookup_type_for_runtime): Likewise.
3298 (check_handled): Handle converted types.
3299 * varasm.c (remove_unreachable_alias_pairs): New.
3300 * gimple.c: Include demangle.h.
3301 (gimple_decl_printable_name): New.
3302 (gimple_fold_obj_type_ref): New.
3303 * gimple.h (gimple_decl_printable_name): Declare.
3304 (gimple_fold_obj_type_ref): Declare.
3305 * passes.c (init_optimization_passes): Add pass
3306 pass_ipa_free_lang_data.
3307 * langhooks-def.h (LANG_HOOKS_FREE_LANG_DATA): Define.
3308 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_FREE_LANG_DATA.
3310 2009-09-03 Diego Novillo <dnovillo@google.com>
3312 * c-lang.c (lang_hooks): Remove const qualifier.
3314 2009-09-02 Loren James Rittle <ljrittle@acm.org>
3316 * doc/install.texi (*-*-freebsd*): Update target information.
3318 2009-09-02 Anatoly Sokolov <aesok@post.ru>
3320 * hard-reg-set.h (call_fixed_regs): Remove.
3321 * reginfo.c (call_fixed_regs): Remove.
3322 (init_reg_sets_1): Remove initialization of call_fixed_regs.
3323 (globalize_reg): Don't use call_fixed_regs.
3324 * caller-save.c (init_caller_save): Use call_fixed_reg_set instead of
3327 2009-09-01 Michael Matz <matz@suse.de>
3329 * expr.h (emit_storent_insn, expand_expr_real_1,
3330 expand_expr_real_2): Declare.
3331 * expr.c (emit_storent_insn, expand_expr_real_1,
3332 expand_expr_real_2): Export.
3333 (store_expr): Setting and evaluating dont_return_target is useless.
3334 (expand_expr_real_1, <case GOTO_EXPR, RETURN_EXPR, SWITCH_EXPR,
3335 LABEL_EXPR and ASM_EXPR>): Move to gcc_unreachable.
3336 * except.c (expand_resx_expr): Rename to ...
3337 (expand_resx_stmt): ... this. Rewrite to take gimple statement.
3338 * except.h (expand_resx_stmt): Declare.
3339 * stmt.c: Add include gimple.h
3340 (expand_asm_expr): Rename to ...
3341 (expand_asm_stmt): ... this. Rewrite to take gimple statement.
3342 (expand_case): Rewrite to take gimple statement.
3343 * tree.h (expand_asm_stmt): Declare.
3344 (expand_case): Change prototype.
3345 * Makefile.in (stmt.o): Depend on gimple.h.
3346 * builtins.c (expand_builtin_synchronize): Build gimple asm
3347 statement, not an ASM_EXPR.
3348 * cfgexpand.c (gimple_cond_pred_to_tree, set_expr_location_r,
3349 gimple_to_tree, release_stmt_tree): Remove.
3350 (expand_gimple_cond): Don't call gimple_cond_pred_to_tree or
3351 ggc_free, but hold comparison code and operands separately.
3352 Call jumpif_1 and jumpifnot_1 instead of jumpif and jumpifnot.
3353 (expand_call_stmt, expand_gimple_stmt_1,
3354 expand_gimple_stmt): New helpers.
3355 (expand_gimple_tailcall): Don't call gimple_to_tree, expand_expr_stmt,
3356 release_stmt_tree. Call expand_gimple_stmt instead.
3357 (expand_gimple_basic_block): Ditto.
3359 * calls.c (emit_call_1): Don't look at EH regions here, make
3360 fntree parameter useless.
3361 (expand_call): New local rettype for TREE_TYPE(exp), use it
3362 throughout. Remove local p, use addr instead.
3363 Don't look at EH regions here.
3365 2009-09-02 Vladimir Makarov <vmakarov@redhat.com>
3367 * doc/invoke.texi (-fsched-pressure): Document it.
3368 (-fsched-reg-pressure-heuristic): Remove it.
3370 * reload.c (ira.h): Include.
3371 (find_reloads): Add choosing reload on number of small spilled
3374 * haifa-sched.c (ira.h): Include.
3375 (sched_pressure_p, sched_regno_cover_class, curr_reg_pressure,
3376 saved_reg_pressure, curr_reg_live, saved_reg_live,
3377 region_ref_regs): New variables.
3378 (sched_init_region_reg_pressure_info, mark_regno_birth_or_death,
3379 initiate_reg_pressure_info, setup_ref_regs,
3380 initiate_bb_reg_pressure_info, save_reg_pressure,
3381 restore_reg_pressure, dying_use_p, print_curr_reg_pressure): New
3383 (setup_insn_reg_pressure_info): New function.
3384 (rank_for_schedule): Add pressure checking and insn issue time.
3385 Remove comparison of insn reg weights.
3386 (ready_sort): Set insn reg pressure info.
3387 (update_register_pressure, setup_insn_max_reg_pressure,
3388 update_reg_and_insn_max_reg_pressure,
3389 sched_setup_bb_reg_pressure_info): New functions.
3390 (schedule_insn): Add code for printing and updating reg pressure info.
3391 (find_set_reg_weight, find_insn_reg_weight): Remove.
3392 (ok_for_early_queue_removal): Do nothing if pressure_only_p.
3393 (debug_ready_list): Print reg pressure info.
3394 (schedule_block): Ditto. Check insn issue time.
3395 (sched_init): Set up sched_pressure_p. Allocate and set up some