1 2009-10-01 Jan Hubicka <jh@suse.cz>
3 * cgraph.c (cgraph_clone_node): Add redirect_callers parameter.
4 (cgraph_create_virtual_clone): Just pass redirect_callers
6 * cgraph.h (cgraph_clone_node): Update prototype.
7 * ipa-pure-const.c (self_recursive_p): New function.
9 * ipa-inline.c (cgraph_clone_inlined_nodes,
10 cgraph_decide_recursive_inlining): Update.
12 2009-10-01 David Daney <ddaney@caviumnetworks.com>
14 * gcc/config/mips/mips.c (mips_process_sync_loop) Emit syncw
15 instructions for TARGET_OCTEON.
17 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19 * config/arm/arm.c (arm_override_options): Turn off
20 flag_dwarf2_cfi_asm for AAPCS variants.
22 2009-10-01 Martin Jambor <mjambor@suse.cz>
25 * tree-sra.c (convert_callers): Do not call
26 compute_inline_parameters on one caller more than once.
28 2009-10-01 Nick Clifton <nickc@redhat.com>
30 * config/vax/netbsd-elf.h (NETBSD_CC1_AND_CC1PLUS_SPEC): Define as
31 an empty string if not already defined.
33 2009-10-01 Martin Jambor <mjambor@suse.cz>
36 * tree-sra.c (is_va_list_type): New function.
37 (find_var_candidates): Call is_va_list_type.
38 (find_param_candidates): Check that the type or the type pointed
39 to are not va_list types.
41 2009-10-01 Martin Jambor <mjambor@suse.cz>
44 * cp/pt.c (function_parameter_expanded_from_pack_p): Return false if
45 DECL_ARTIFICIAL (param_decl) is true.
47 2009-09-30 Gabriel Dos Reis <gdr@cs.tamu.edu>
49 * tree.h (tree_decl_common::lang_flag_8): New.
50 * c-common.c (c_common_reswords): Include "constexpr" as C++0x
52 * c-common.h (RID_CONSTEXPR): New.
54 2009-09-30 Uros Bizjak <ubizjak@gmail.com>
56 * config/alpha/alpha.c (alpha_gimplify_va_arg_1):
58 (alpha_gimplify_va_arg): Ditto.
60 2009-09-30 Jakub Jelinek <jakub@redhat.com>
63 * cfgloopanal.c (num_loop_insns): Don't increment ninsns for each bb
64 before insn counting loop now that BB_END (bb) is counted. Ensure
65 the return value isn't zero.
67 2009-09-30 Nick Clifton <nickc@redhat.com>
69 * config.gcc (sh-symbianelf): Replace definition of extra_objs
70 with separate definitions of c_target_objs and cxx_target_objs.
71 * config/sh/t-sh: Add rules to build symbian-cxx.o, symbian-c.o
73 * config/sh/sh.c (TARGET_CXX_INPUT_EXPORT_CLASS): Use
74 sh_symbian_import_export_class.
75 * config/sh/sh-protos.h: Fix names of exported symbian functions.
76 * config/sh/symbian.c: Delete, moving code into...
77 * config/sh/symbian-base.c: ... here
78 * config/sh/symbian-c.c: ... and here
79 * config/sh/symbian-cxx.c: ... and here.
81 2009-09-30 Uros Bizjak <ubizjak@gmail.com>
84 * config/alpha/alpha.md (unaligned_storehi_be): Force operand
85 of plus RTX into register.
87 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
89 * doc/install.texi: Linguistic and markup fixes.
90 (Configuration) <--disable-cpp>: Remove description.
91 <--enable-maintainer-mode>: Autotools files are affected, too.
92 <--with-sysroot>: Improve description.
93 (Building): Bump required GNU make version.
95 2009-09-29 Harsha Jagasia <harsha.jagasia@amd.com>
97 * config.gcc (i[34567]86-*-*): Include fma4intrin.h.
100 * config/i386/fma4intrin.h: New file, provide common x86 compiler
101 intrinisics for FMA4.
102 * config/i386/cpuid.h (bit_FMA4): Define FMA4 bit.
103 * config/i386/x86intrin.h: Fix typo to SSE4A instead of SSE4a.
104 Add FMA4 check and fma4intrin.h.
105 * config/i386/i386-c.c(ix86_target_macros_internal): Check
107 * config/i386/i386.h(TARGET_FMA4): New macro for FMA4.
108 * config/i386/i386.md (UNSPEC_FMA4_INTRINSIC): Add new UNSPEC
109 constant for FMA4 support.
110 (UNSPEC_FMA4_FMADDSUB): Ditto.
111 (UNSPEC_FMA4_FMSUBADD): Ditto.
112 * config/i386/i386.opt (-mfma4): New switch for FMA4 support.
113 * config/i386/i386-protos.h (ix86_fma4_valid_op_p): Add declaration.
114 (ix86_expand_fma4_multiple_memory): Ditto.
115 * config/i386/i386.c (OPTION_MASK_ISA_FMA4_SET): New.
116 (OPTION_MASK_ISA_FMA4_UNSET): New.
117 (OPTION_MASK_ISA_SSE4A_UNSET): Change definition to depend on FMA4.
118 (OPTION_MASK_ISA_AVX_UNSET): Change definition to depend on FMA4.
119 (ix86_handle_option): Handle -mfma4.
120 (isa_opts): Handle -mfma4.
121 (enum pta_flags): Add PTA_FMA4.
122 (override_options): Add FMA4 support.
123 (IX86_BUILTIN_VFMADDSS): New for FMA4 intrinsic.
124 (IX86_BUILTIN_VFMADDSD): Ditto.
125 (IX86_BUILTIN_VFMADDPS): Ditto.
126 (IX86_BUILTIN_VFMADDPD): Ditto.
127 (IX86_BUILTIN_VFMSUBSS): Ditto.
128 (IX86_BUILTIN_VFMSUBSD): Ditto.
129 (IX86_BUILTIN_VFMSUBPS): Ditto.
130 (IX86_BUILTIN_VFMSUBPD): Ditto.
131 (IX86_BUILTIN_VFMADDSUBPS): Ditto.
132 (IX86_BUILTIN_VFMADDSUBPD): Ditto.
133 (IX86_BUILTIN_VFMSUBADDPS): Ditto.
134 (IX86_BUILTIN_VFMSUBADDPD): Ditto.
135 (IX86_BUILTIN_VFNMADDSS): Ditto.
136 (IX86_BUILTIN_VFNMADDSD): Ditto.
137 (IX86_BUILTIN_VFNMADDPS): Ditto.
138 (IX86_BUILTIN_VFNMADDPD): Ditto.
139 (IX86_BUILTIN_VFNMSUBSS): Ditto.
140 (IX86_BUILTIN_VFNMSUBSD): Ditto.
141 (IX86_BUILTIN_VFNMSUBPS): Ditto.
142 (IX86_BUILTIN_VFNMSUBPD): Ditto.
143 (IX86_BUILTIN_VFMADDPS256): Ditto.
144 (IX86_BUILTIN_VFMADDPD256): Ditto.
145 (IX86_BUILTIN_VFMSUBPS256): Ditto.
146 (IX86_BUILTIN_VFMSUBPD256): Ditto.
147 (IX86_BUILTIN_VFMADDSUBPS256): Ditto.
148 (IX86_BUILTIN_VFMADDSUBPD256): Ditto.
149 (IX86_BUILTIN_VFMSUBADDPS256): Ditto.
150 (IX86_BUILTIN_VFMSUBADDPD256): Ditto.
151 (IX86_BUILTIN_VFNMADDPS256): Ditto.
152 (IX86_BUILTIN_VFNMADDPD256): Ditto.
153 (IX86_BUILTIN_VFNMSUBPS256): Ditto.
154 (IX86_BUILTIN_VFNMSUBPD256): Ditto.
155 (enum multi_arg_type): New enum for describing the various FMA4
156 intrinsic argument types.
157 (bdesc_multi_arg): New table for FMA4 intrinsics.
158 (ix86_init_mmx_sse_builtins): Add FMA4 intrinsic support.
159 (ix86_expand_multi_arg_builtin): New function for creating FMA4
161 (ix86_expand_builtin): Add FMA4 intrinsic support.
162 (ix86_fma4_valid_op_p): New function to validate FMA4 3 and 4
163 operand instructions.
164 (ix86_expand_fma4_multiple_memory): New function to split the
165 second memory reference from FMA4 instructions.
166 * config/i386/sse.md (ssemodesuffixf4): New mode attribute for FMA4.
167 (ssemodesuffixf2s): Ditto.
168 (fma4_fmadd<mode>4): Add FMA4 floating point multiply/add
170 (fma4_fmsub<mode>4): Ditto.
171 (fma4_fnmadd<mode>4): Ditto.
172 (fma4_fnmsub<mode>4): Ditto.
173 (fma4_vmfmadd<mode>4): Ditto.
174 (fma4_vmfmsub<mode>4): Ditto.
175 (fma4_vmfnmadd<mode>4): Ditto.
176 (fma4_vmfnmsub<mode>4): Ditto.
177 (fma4_fmadd<mode>4256): Ditto.
178 (fma4_fmsub<mode>4256): Ditto.
179 (fma4_fnmadd<mode>4256): Ditto.
180 (fma4_fnmsub<mode>4256): Ditto.
181 (fma4_fmaddsubv8sf4): Ditto.
182 (fma4_fmaddsubv4sf4): Ditto.
183 (fma4_fmaddsubv4df4): Ditto.
184 (fma4_fmaddsubv2df4): Ditto.
185 (fma4_fmsubaddv8sf4): Ditto.
186 (fma4_fmsubaddv4sf4): Ditto.
187 (fma4_fmsubaddv4df4): Ditto.
188 (fma4_fmsubaddv2df4): Ditto.
189 (fma4i_fmadd<mode>4): Add FMA4 floating point multiply/add
190 instructions for intrinsics.
191 (fma4i_fmsub<mode>4): Ditto.
192 (fma4i_fnmadd<mode>4): Ditto.
193 (fma4i_fnmsub<mode>4): Ditto.
194 (fma4i_vmfmadd<mode>4): Ditto.
195 (fma4i_vmfmsub<mode>4): Ditto.
196 (fma4i_vmfnmadd<mode>4): Ditto.
197 (fma4i_vmfnmsub<mode>4): Ditto.
198 (fma4i_fmadd<mode>4256): Ditto.
199 (fma4i_fmsub<mode>4256): Ditto.
200 (fma4i_fnmadd<mode>4256): Ditto.
201 (fma4i_fnmsub<mode>4256): Ditto.
202 (fma4i_fmaddsubv8sf4): Ditto.
203 (fma4i_fmaddsubv4sf4): Ditto.
204 (fma4i_fmaddsubv4df4): Ditto.
205 (fma4i_fmaddsubv2df4): Ditto.
206 (fma4i_fmsubaddv8sf4): Ditto.
207 (fma4i_fmsubaddv4sf4): Ditto.
208 (fma4i_fmsubaddv4df4): Ditto.
209 (fma4i_fmsubaddv2df4): Ditto.
211 * doc/invoke.texi (-mfma4): Add documentation.
212 * doc/extend.texi (x86 intrinsics): Add FMA4 intrinsics.
214 2009-09-29 Richard Henderson <rth@redhat.com>
216 * tree-eh.c (unsplit_eh): Do not unsplit if there's already
217 an edge to the new destination block.
219 2009-09-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
222 * pa.c (hppa_profile_hook): Use
223 make_reg_eh_region_note_nothrow_nononlocal to add REG_EH_REGION note.
225 2009-09-29 Steve Ellcey <sje@cup.hp.com>
226 Alexander Monakov <amonakov@ispras.ru>
229 * config/ia64/predicates.md (not_postinc_destination_operand): New.
230 (not_postinc_memory_operand): New.
231 (not_postinc_move_operand): New.
232 * config/ia64/ia64.md (*cmovdi_internal): Disallow autoincrement.
233 (*cmovsi_internal): Ditto.
235 2009-09-29 Pat Haugen <pthaugen@us.ibm.com>
237 * config/rs6000/rs6000.c (rs6000_issue_rate): Don't artificially
238 restrict issue_rate in first pass when scheduling for register
241 2009-09-29 Basile Starynkevitch <basile@starynkevitch.net>
242 Rafael Avila de Espindola <espindola@google.com>
244 * gengtype.c (plugin_output): New.
245 (get_output_file_with_visibility): Return plugin_output for plugins.
246 (main): Parse and use the -P option.
247 * gty.texi: Update the command line format.
249 2009-09-29 Jakub Jelinek <jakub@redhat.com>
252 * dwarf2out.c (const_ok_for_output_1, const_ok_for_output): New
254 (mem_loc_descriptor, loc_descriptor, add_const_value_attribute): Bail
255 out if !const_ok_for_output.
258 * dwarf2out.c (mem_loc_descriptor) <case CONCAT, case CONCATN,
259 case VAR_LOCATION>: Remove gcc_unreachable ().
261 2009-09-29 Harsha Jagasia <harsha.jagasia@amd.com>
263 * config.gcc (i[34567]86-*-*): Remove mmintrin-common.h.
265 * config/i386/smmintrin.h: Move instructions in mmintrin-common.h
267 * config/i386/cpuid.h: (bit_SSE5): Remove SSE5 bit.
268 * config/i386/x86intrin.h: Remove SSE5.
269 * config/i386/mmintrin-common.h: Delete file.
270 * doc/extend.texi (x86 intrinsics): Remove SSE5 flags and builtins.
272 2009-09-29 Richard Guenther <rguenther@suse.de>
274 * alias.c (ao_ref_from_mem): Properly deal with off decl accesses
275 resulting from stack temporaries on STRICT_ALIGNMENT targets.
277 2009-09-29 Nick Clifton <nickc@redhat.com>
279 * function.c (current_function_name): If there is no current
280 function just return "<none>".
282 2009-09-28 Sriraman Tallam <tmsriram@google.com>
284 * tree-pass.h (register_pass_info): New structure.
285 (pass_positioning_ops): Move enum from gcc-plugin.h.
286 (register_pass): New function.
287 * gcc-plugin.h (plugin_pass): Delete structure.
288 (pass_positioning_ops): Delete enum.
289 * plugin.c (regsiter_pass): Delete function.
290 (position_pass): Delete function.
291 (added_pass_nodes): Delete variable.
292 (prev_added_pass_nodes): Delete variable.
293 (pass_list_node): Delete structure.
294 * passes.c (make_pass_instance): New function.
295 (next_pass_1): Change to call make_pass_instance.
296 (pass_list_node): Move structure from gcc-plugin.h.
297 (added_pass_nodes): Move variable from plugin.c.
298 (prev_added_pass_nodes): Move variable from plugin.c.
299 (position_pass): New function.
300 (register_pass): New function.
302 2009-09-28 Easwaran Raman <eraman@google.com>
304 * ifcvt.c (noce_try_abs): Recognize pattern and call
305 expand_one_cmpl_abs_nojump.
306 * optabs.c (expand_one_cmpl_abs_nojump): New function.
307 * optabs.h (expand_one_cmpl_abs_nojump): Declare.
309 2009-09-28 Ian Lance Taylor <iant@google.com>
312 * c-opts.c (c_common_handle_option): Don't set
313 warn_jump_misses_init for -Wall.
314 * doc/invoke.texi (Warning Options): Update documentation.
316 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
318 * Makefile.in ($(out_object_file)): Depend on
319 gt-$(basename $(notdir $(out_file))).h.
321 2009-09-28 Richard Henderson <rth@redhat.com>
323 * except.h (struct eh_region_d): Add use_cxa_end_cleanup.
324 * except.c (gen_eh_region): Set it.
325 (duplicate_eh_regions_1): Copy it.
326 * tree-eh.c (lower_resx): Use it to determine which function
329 * langhooks.h (struct lang_hooks): Add eh_use_cxa_end_cleanup.
330 * langhooks-def.h (LANG_HOOKS_EH_USE_CXA_END_CLEANUP): New.
331 * builtins.def (BUILT_IN_CXA_END_CLEANUP): New.
332 * tree.c (build_common_builtin_nodes): Remove parameter. Build
333 BUILT_IN_CXA_END_CLEANUP if necessary.
335 * c-common.c (c_define_builtins): Update call to
336 build_common_builtin_nodes.
338 2009-09-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
340 * spu.c (get_branch_target): Return NULL for ASM_OPERANDS patterns.
342 2009-09-28 Michael Matz <matz@suse.de>
344 * builtins.c (interclass_mathfn_icode): New helper.
345 (expand_builtin_interclass_mathfn): Use it here, and split folding
347 (fold_builtin_interclass_mathfn): ... this new folder.
348 (build_call_nofold_loc): New static helper.
349 (build_call_nofold): New wrapper macro for above.
350 (expand_builtin_int_roundingfn): Use it instead of build_call_expr.
351 (expand_builtin_pow): Ditto.
352 (expand_builtin_memset_args): Ditto.
353 (expand_builtin_printf): Ditto.
354 (expand_builtin_fprintf): Ditto.
355 (expand_builtin_sprintf): Ditto.
356 (expand_builtin_memory_chk): Ditto.
357 (expand_builtin_mempcpy_args): Ditto and don't call folders.
358 (expand_builtin_stpcpy): Ditto.
359 (expand_builtin_strcmp): Ditto.
360 (expand_builtin_strncmp): Ditto.
361 (expand_builtin_strcpy): Remove FNDECL and MODE arguments.
362 (expand_builtin_strcpy_args): Don't call folders.
363 (expand_builtin_memcmp): Ditto.
364 (expand_builtin_strncpy): Ditto, and use target.
365 (expand_builtin_memcpy): Ditto.
366 (expand_builtin_strstr, expand_builtin_strchr, expand_builtin_strrchr,
367 expand_builtin_strpbrk, expand_builtin_memmove,
368 expand_builtin_memmove_args, expand_builtin_bcopy,
369 expand_builtin_memchr, expand_builtin_strcat, expand_builtin_strncat,
370 expand_builtin_strspn, expand_builtin_strcspn,
371 expand_builtin_fputs): Remove these.
372 (expand_builtin): Don't call the above, change calls to other
373 expanders that changed prototype.
374 (fold_builtin_stpcpy): New folder split out from expand_builtin_stpcpy.
375 (fold_builtin_1 <ISFINITE, ISINF, ISNORMAL>): Call
376 fold_builtin_interclass_mathfn.
377 (fold_builtin_2 <STPCPY>): Call fold_builtin_stpcpy.
378 (fold_builtin_strcat): Add folding split from expand_builtin_strcat.
380 * fold-const.c (fold_binary_loc <NE_EXPR>): Add !exp != 0 -> !exp.
381 * passes.c (init_optimization_passes): Move pass_fold_builtins
382 after last phiopt pass.
383 * tree-inline.c (fold_marked_statements): When folding builtins
384 iterate over all instruction potentially generated.
385 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Declare
387 (fold_gimple_call): Use it to always fold calls (into potentially
388 multiple instructions).
389 * tree-ssa-dom.c (optimize_stmt): Resolve __builtin_constant_p
390 calls into zero at this time.
391 * tree-ssa-propagate.c (substitute_and_fold): Ignore multiple
392 statements generated by builtin folding.
394 2009-09-28 Nick Clifton <nickc@redhat.com>
396 * config/m32r/m32r.c (m32r_is_insn): Return false for debugging
399 2009-09-28 Duncan Sands <baldrick@free.fr>
401 * gcc-plugin.h (PLUGIN_REGISTER_GGC_CACHES): New event.
402 * plugin.c (plugin_event_name): Add PLUGIN_REGISTER_GGC_CACHES.
403 (register_callback): Dispatch it.
404 (invoke_plugin_callbacks): Incorporate in sanity check.
405 * ggc.h (ggc_register_cache_tab): Add declaration.
406 * ggc-common.c (ggc_register_root_tab): Simplify.
407 (const_ggc_cache_tab_t): New typedef.
408 (extra_cache_vec): New vector of dynamically added cache tables.
409 (ggc_register_cache_tab): New function.
410 (ggc_scan_cache_tab): New function.
411 (ggc_mark_roots): Simplify dynamic roots. Handle dynamic caches.
412 * doc/plugins.texi: Document PLUGIN_REGISTER_GGC_CACHES.
414 2009-09-27 Richard Henderson <rth@redhat.com>
416 * tree-ssa-ccp.c (optimize_stack_restore): Relax the conditions under
417 which we remove __builtin_stack_restore.
419 2009-09-27 Bernd Schmidt <bernd.schmidt@analog.com>
421 * loop-iv.c (iv_analyze_op): Use function_invariant_p, not CONSTANT_P,
422 to test for GRD_INVARIANT.
423 (simple_rhs_p): Anything that's function_invariant_p is fine.
425 2009-09-27 Rafael Avila de Espindola <espindola@google.com>
427 * gengtype.c (main): Use plunge_files instead of plugin_output.
429 2009-09-27 Basile Starynkevitch <basile@starynkevitch.net>
430 Rafael Avila de Espindola <espindola@google.com>
432 * gengtype.c (write_root, write_roots): Add a emit_pch argument.
433 Don't print pch related info if it is false.
434 (main): Don't print pch info in plugin mode.
436 2009-09-27 Eric Botcazou <ebotcazou@adacore.com>
438 * dwarf2out.c (enum dw_val_class): Replace dw_val_class_long_long
439 with dw_val_class_const_double.
440 (struct dw_val_struct): Replace val_long_long with val_double and
441 adjust for above change.
442 (output_loc_operands): Likewise.
443 (add_AT_long_long): Rename into...
444 (add_AT_double): ...this.
445 (print_die): Replace dw_val_class_long_long with
446 dw_val_class_const_double and adjust.
447 (attr_checksum): Likewise.
448 (same_dw_val_p): Likewise.
449 (size_of_die): Likewise.
450 (value_format): Likewise.
451 (output_die): Likewise.
452 (loc_descriptor) <CONST_DOUBLE>: Likewise.
453 (add_const_value_attribute) <CONST_DOUBLE>: Call add_AT_double
454 instead of add_AT_long_long.
455 (add_bound_info) <INTEGER_CST>: Generate the bound as an unsigned
456 value with the precision of its type.
458 2009-09-27 Andreas Schwab <schwab@linux-m68k.org>
461 * c-typeck.c (build_conditional_expr): Use the readonly and
462 volatile flags of the operand types, not of the operands itself.
464 2009-09-27 Peter O'Gorman <pogma@thewrittenword.com>
466 collect2.c (main): Look for -brtl before adding libraries.
468 2009-09-27 Jonathan Gray <jsg@openbsd.org>
470 * config.gcc: Update OpenBSD targets.
471 * config/openbsd-stdint.h: New file.
472 * config/openbsd-libpthread.h: New file.
473 * config/openbsd.h: Update and break out LIB_SPEC definition.
474 * config/alpha/openbsd.h: Overhaul to reflect ELF migration.
475 * config/i386/openbsdelf.h: Correct types.
476 * config/m68k/openbsd.h: Likewise.
477 * config/mips/openbsd.h: Likewise.
478 * config/vax/openbsd.h: Likewise.
480 2009-09-27 Eric Botcazou <ebotcazou@adacore.com>
482 * fold-const.c (maybe_lvalue_p): Return false for M(IN|AX)_EXPR.
483 (extract_muldiv_1) <MINUS_EXPR>: Swap operands if necessary.
484 * stor-layout.c (layout_type) <ARRAY_TYPE>: Do not take the maximum
485 of the length and zero.
487 2009-09-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
489 * Makefile.in (TOPLEV_H): Use $(INPUT_H) not input.h.
490 (FLAGS_H): Add options.h $(REAL_H).
491 (SEL_SCHED_IR_H): Add $(BITMAP_H) vecprim.h $(CFGLOOP_H).
492 (TREE_VECTORIZER_H): New.
493 (EBITMAP_H): Renamed from EBIMAP_H.
494 (c-decl.o, c-objc-common.o, c-pretty-print.o, attribs.o, c-omp.o)
495 (gtype-desc.o, ggc-common.o, ggc-page.o, ggc-zone.o, langhooks.o)
496 (tree.o, tree-ssa-structalias.o, tree-ssa-ter.o, tree-ssanames.o)
497 (tree-phinodes.o, tree-ssa-loop.o, tree-ssa-math-opts.o)
498 (gimple-low.o, omp-low.o, sese.o, graphite-blocking.o)
499 (graphite-clast-to-gimple.o, graphite-dependences.o)
500 (graphite-interchange.o, graphite-poly.o, graphite-scop-detection.o)
501 (graphite-sese-to-poly.o, tree-vect-loop.o, tree-vect-loop-manip.o)
502 (tree-vect-patterns.o, tree-vect-slp.o, tree-vect-stmts.o)
503 (tree-vect-data-refs.o, tree-vectorizer.o, gimple.o, tree-mudflap.o)
504 (targhooks.o, stmt.o, emit-rtl.o, ipa.o, matrix-reorg.o, ipa-inline.o)
505 (gcse.o, tree-ssa-ccp.o, df-byte-scan.o, vec.o, caller-save.o)
506 (ira-build.o, ira-costs.o, ira-color.o, ira-emit.o, ira.o)
507 (haifa-sched.o, sched-rgn.o, sel-sched.o, sel-sched-dump.o)
508 (sel-sched-ir.o, final.o, $(out_object_file)): Dependencies
509 updated and fixed as per above changes and per
510 check_makefile_deps.sh output.
513 * configure.ac: Use $LIBS for '-ldl', not $LDFLAGS.
514 * configure: Regenerate.
516 2009-09-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
518 * doc/install.texi: Update minimum MPC version to 0.7.
520 2009-09-26 Gerald Pfeifer <gerald@pfeifer.com>
522 * doc/install.texi (Binaries): Remove reference to the binary
523 distribution CD-ROM from the FSF.
525 2009-09-26 Michael Matz <matz@suse.de>
529 * tree-ssa-coalesce.c (coalesce_ssa_name): Add only SSA names
530 that are mentioned in the body.
532 2009-09-26 Michael Matz <matz@suse.de>
534 PR tree-optimization/41454
535 * tree-ssa-dom (stmts_to_rescan): Remove variable.
536 (tree_ssa_dominator_optimize): Don't allocate and free it.
537 (dom_opt_leave_block): Don't iterate over it.
538 (eliminate_redundant_computations): Don't return a value.
539 (cprop_operand, cprop_into_stmt): Ditto.
540 (optimize_stmt): Don't defer updating stmts.
542 2009-09-25 Dodji Seketeli <dodji@redhat.com>
544 * dwarf2out.c (dwarf_tag_name, gen_generic_params_dies,
545 generic_parameter_die, template_parameter_pack_die,
546 gen_formal_parameter_die, gen_subprogram_die): Adjust after renaming
547 DW_TAG_formal_parameter_pack and DW_TAG_template_parameter_pack into
548 DW_TAG_GNU_formal_parameter_pack and DW_TAG_GNU_template_parameter_pack.
550 2009-09-25 Anatoly Sokolov <aesok@post.ru>
552 * config/v850/v850.h (FUNCTION_VALUE): Remove.
553 * config/v850/v850.c (v850_function_value): New function.
554 (TARGET_FUNCTION_VALUE): Define.
556 2009-09-25 Jakub Jelinek <jakub@redhat.com>
558 * tree-vect-stmts.c (vectorizable_call): Call
559 mark_symbols_for_renaming after vect_finish_stmt_generation.
561 * dwarf2out.c (tls_mem_loc_descriptor): Pass 1 instead of 2
562 to loc_descriptor_from_tree.
563 (add_location_or_const_value_attribute): Pass 0 instead of 2
564 for decl_by_reference_p decls.
566 2009-09-25 Richard Guenther <rguenther@suse.de>
569 * tree-dfa.c (get_ref_base_and_extent): Fix issue with trailing
572 2009-09-25 Ben Elliston <bje@au.ibm.com>
574 * doc/invoke.texi (RS/6000 and PowerPC Options): Add missing comma
577 2009-09-25 Alan Modra <amodra@bigpond.net.au>
579 * config/rs6000/rs6000.md (load_toc_v4_PIC_3c): Correct POWER
582 2009-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
585 * fold-const.c (const_binop): Handle complex int division.
586 * tree-complex.c (expand_complex_div_straight,
587 expand_complex_div_wide): Update comments.
589 2009-09-24 DJ Delorie <dj@redhat.com>
592 * config/m32c/m32c.h (REG_CLASS_CONTENTS): Add R13.
593 (reg_class): Likewise.
594 (REG_CLASS_NAMES): Likewise.
595 * config/m32c/m32c.c (m32c_reg_class_from_constraint): Likewise.
597 * config/m32c/m32c.c (m32c_override_options): Disable -fivopts for
600 2009-09-24 Michael Meissner <meissner@linux.vnet.ibm.com>
602 * config/rs6000/predicates.md (indexed_or_indirect_operand):
603 Delete VSX load/store with update support.
604 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Ditto.
605 * config/rs6000/vsx.md (vsx_mov<mode>): Ditto.
609 (VStype_load_update): Ditto.
610 (VStype_store_update): Ditto.
611 (vsx_load<VSX_U:mode>_update_<P:mptrsize>): Ditto.
612 (vsx_store<VSX_U:mode>_update_<P:mptrsize>): Ditto.
614 * config/rs6000/rs6000.h (enum rs6000_builtins): Delete VSX
615 load/store with update builtins.
617 2009-09-24 Kai Tietz <kai.tietz@onevision.com>
619 * libgcc2.c (L_trampoline): Prototype for getpagesize
620 and mprotect in WINNT case.
622 2009-09-24 Anatoly Sokolov <aesok@post.ru>
624 * config/rs6000/rs6000.h (FUNCTION_VALUE): Remove macro.
625 * config/rs6000/rs6000-protos.h (rs6000_function_value): Remove.
626 * config/rs6000/rs6000.c (rs6000_function_value): Make static, add
628 (TARGET_FUNCTION_VALUE): Define.
630 2009-09-24 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
632 * config/darwin.h (DWARF2_DEBUGGING_INFO): Define as 1.
634 2009-09-24 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
637 * common.opt: Initialize dwarf_strict to -1.
638 * toplev.c (process_options): Catch unset dwarf_strict
639 and set to 0 for all targets not overriding.
640 * config/darwin.c (darwin_override_options): Catch unset
641 dwarf_strict and override to 1.
643 2009-09-24 Jeff Law <law@redhat.com>
645 * tree-into-ssa.c (rewrite_into_ssa): Free interesting_blocks.
647 2009-09-24 Richard Guenther <rguenther@suse.de>
649 PR tree-optimization/36143
650 PR tree-optimization/38747
651 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Only
652 create VIEW_CONVERT_EXPRs for TBAA compatible accesses.
654 2009-09-24 Jakub Jelinek <jakub@redhat.com>
657 * dwarf2out.c (add_const_value_attribute): For HIGH and CONST_FIXED,
658 return false instead of gcc_unreachable (). For CONST return the
659 value returned by recursive call instead of always returning true.
660 (tree_add_const_value_attribute): Return the value returned by
661 add_const_value_attribute instead of always returning true if rtl
664 2009-09-23 Justin Seyster <jrseys@gmail.com>
666 * Makefile.in (PLUGIN_HEADERS): Include real.h.
668 2009-09-24 Jakub Jelinek <jakub@redhat.com>
670 * cgraphunit.c (cgraph_lower_function): Revert last change.
671 * targhooks.c (default_static_chain): Use !DECL_STATIC_CHAIN
672 instead of DECL_NO_STATIC_CHAIN.
673 * tree-cfg.c (verify_gimple_call): Likewise.
674 * tree-nested.c (get_chain_decl, get_chain_field,
675 convert_tramp_reference_op, convert_gimple_call): Likewise.
676 (convert_all_function_calls): Likewise. Always set or clear
677 DECL_STATIC_CHAIN initially, for !n->outer clear it.
678 (lower_nested_functions): Remove DECL_NO_STATIC_CHAIN checking code.
679 * c-parser.c (c_parser_declaration_or_fndef): Set DECL_STATIC_CHAIN
681 * print-tree.c (print_node): Handle DECL_STATIC_CHAIN instead of
682 DECL_NO_STATIC_CHAIN.
683 * config/i386/i386.c (ix86_static_chain): Use !DECL_STATIC_CHAIN
684 instead of DECL_NO_STATIC_CHAIN.
685 (ix86_function_regparm, find_drap_reg): Likewise. Don't test
686 decl_function_context.
687 * varasm.c (initializer_constant_valid_p): Likewise.
688 * tree.h (DECL_NO_STATIC_CHAIN): Renamed to ...
689 (DECL_STATIC_CHAIN): ... this.
690 * config/moxie/moxie.c (moxie_static_chain): Use !DECL_STATIC_CHAIN
691 instead of DECL_NO_STATIC_CHAIN.
693 2009-09-23 Basile Starynkevitch <basile@starynkevitch.net>
694 Rafael Avila de Espindola <espindola@google.com>
696 * gengtype.c (nb_plugin_files): Make it unsigned to match
697 num_gt_files. Adjust other variables to avoid warnings.
698 (main): Allocate an all zero lang_bitmap before each plugin file name
699 to match regular file names.
701 2009-09-23 Richard Henderson <rth@redhat.com>
703 * doc/tm.texi (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
704 (TARGET_STATIC_CHAIN): Mention that this hook must be used for
705 static chain passed in memory.
706 * system.h (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Poison.
707 * targhooks.c (default_static_chain): Don't handle STATIC_CHAIN,
708 STATIC_CHAIN_INCOMING. Issue a sorry if there's no
709 STATIC_CHAIN_REGNUM defined.
711 * config/picochip/picochip-protos.h: s/class/klass/.
712 * config/picochip/picochip.c (TARGET_STATIC_CHAIN): New.
713 (picochip_static_chain): New.
714 * config/picochip/picochip.h (STATIC_CHAIN): Remove.
715 (STATIC_CHAIN_INCOMING): Remove.
717 * config/xtensa/xtensa.c (TARGET_STATIC_CHAIN): New.
718 (xtensa_static_chain): New.
719 * config/xtensa/xtensa.h (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
721 2009-09-23 Anatoly Sokolov <aesok@post.ru>
723 * config/pa/pa.h (FUNCTION_VALUE): Remove macro.
724 * config/pa/pa-protos.h (function_value): Remove.
725 * config/pa/pa.c (pa_function_value): Rename from function_value.
726 Make static, add 'outgoing' argument.
727 (TARGET_FUNCTION_VALUE): Define.
729 2009-09-23 Anatoly Sokolov <aesok@post.ru>
731 * config/avr/avr.c (avr_regs_to_save): Use current_function_is_leaf
732 instead of cfun->machine->is_leaf.
733 * config/avr/avr.h (machine_function): Remove is_leaf field.
735 2009-09-23 Jakub Jelinek <jakub@redhat.com>
738 * dwarf2out.c (address_of_int_loc_descriptor): Don't emit
739 DW_OP_piece after DW_OP_stack_value, adjust size calculations
740 for it, when DW_OP_stack_value and DW_OP_implicit_value has
741 the same size, prefer DW_OP_stack_value.
742 (loc_descriptor, loc_list_for_address_of_addr_expr_of_indirect_ref,
743 loc_list_from_tree): Don't emit DW_OP_piece after DW_OP_stack_value.
745 2009-09-23 Alexandre Oliva <aoliva@redhat.com>
748 * var-tracking.c (add_with_sets): Sort MO_VAL_LOC last among uses.
750 2009-09-23 Alexandre Oliva <aoliva@redhat.com>
753 * cfgexpand.c (convert_debug_memory_address): New.
754 (expand_debug_expr): Convert base address and offset to the same
755 mode. Use it to convert addresses to other modes. Accept
758 2009-09-23 Richard Guenther <rguenther@suse.de>
760 * alias.c (ao_ref_from_mem): Correct for negative MEM_OFFSET
761 produced for bigendian targets with promoted subregs.
763 2009-09-23 Richard Guenther <rguenther@suse.de>
765 * value-prof.c (gimple_ic): Purge old EH edges only after building
768 2009-09-23 Nick Clifton <nickc@redhat.com>
770 * config/arc/arc.c (arc_trampoline_init): Fix typo.
772 2009-09-23 Jakub Jelinek <jakub@redhat.com>
775 * doc/invoke.texi: Document -gstrict-dwarf and -gno-strict-dwarf.
778 * cgraphunit.c (cgraph_lower_function): Set DECL_NO_STATIC_CHAIN
779 on non-nested functions.
781 2009-09-23 Jakub Jelinek <jakub@redhat.com>
782 Jan Hubicka <jh@suse.cz>
784 * dwarf2out.c (loc_list_plus_const): Only define if
785 DWARF2_DEBUGGING_INFO.
786 (address_of_int_loc_descriptor): Likewise.
789 * dwarf2out.c (mem_loc_descriptor): Handle HIGH.
791 2009-09-23 Uros Bizjak <ubizjak@gmail.com>
794 * c-typeck.c (build_binary_op) <short_shift>: Check that integer
795 constant is more than zero.
797 2009-09-23 Alan Modra <amodra@bigpond.net.au>
800 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
801 call final to emit non-scheduled prologue, instead insert at entry.
803 2009-09-22 Loren J. Rittle <ljrittle@acm.org>
804 Joseph S. Myers <joseph@codesourcery.com>
806 * doc/install.texi (*-*-freebsd*): Add proper format codes.
808 2009-09-22 Basile Starynkevitch <basile@starynkevitch.net>
809 Rafael Avila de Espindola <espindola@google.com>
811 * gengtype.c (is_file_equal): New function.
812 (close_output_files): Use is_file_equal. Free of->buf.
814 2009-09-22 Basile Starynkevitch <basile@starynkevitch.net>
815 Rafael Avila de Espindola <espindola@google.com>
817 * gengtype.c (write_types, write_local): Add the output_header
818 argument. Update all callers.
820 2009-09-22 Dodji Seketeli <dodji@redhat.com>
822 * dwarf2out.c (template_parameter_pack_die,
823 gen_formal_parameter_pack_die ): New functions.
824 (make_ith_pack_parameter_name): Remove this function.
825 (dwarf_tag_name): Support printing DW_TAG_template_parameter_pack and
826 DW_TAG_formal_parameter_pack.
827 (gen_generic_params_dies): Represent each template parameter pack
828 by a DW_TAG_template_parameter_pack DIE. Argument pack elements are
829 represented by usual DW_TAG_template_*_parameter DIEs that are
830 children of the DW_TAG_template_parameter_pack element DIE.
831 (generic_parameter_die): This doesn't deal with parameter pack
832 names anymore. Don't generate DW_AT_name for some DIEs, e.g. children
833 of parameter pack DIEs.
834 (gen_formal_parameter_die): Add a flag to not emit DW_AT_name
835 in certain cases, e.g. for pack elements.
836 (gen_formal_types_die, gen_decl_die): Adjust usage of
837 gen_formal_parameter_die.
838 (gen_subprogram_die): Represent each function parameter pack by a
839 DW_TAG_formal_parameter_pack DIE. Arguments of of the pack are
840 represented by usual DW_TAG_formal_parameter DIEs that are children
841 of the DW_TAG_formal_parameter_pack DIE. Remove references to
842 ____builtin_va_alist decls as no part of the compiler uses those
844 * langhooks.h (struct lang_hooks_for_decls): Add
845 function_parm_expanded_from_pack_p, get_generic_function_decl
846 and function_parameter_pack_p hooks. Fix comment for
847 get_innermost_generic_parms hook.
848 * langhooks-def.h (LANG_HOOKS_FUNCTION_PARAMETER_PACK_P,
849 LANG_HOOKS_FUNCTION_PARM_EXPANDED_FROM_PACK_P ): Declare new hook
850 macros and use them to initialize lang_hook.
852 2009-09-22 Richard Henderson <rth@redhat.com>
854 * system.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE): Poison.
855 (TRAMPOLINE_ADJUST_ADDRESS): Poison.
856 * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): Don't conditionalize
857 on TRAMPOLINE_TEMPLATE.
858 (TARGET_TRAMPOLINE_ADJUST_ADDRESS): Don't conditionalize on
859 TRAMPOLINE_ADJUST_ADDRESS.
860 * targhooks.c (default_asm_trampoline_template): Remove.
861 (default_trampoline_adjust_address): Remove.
862 (default_trampoline_init): Don't handle INITIALIZE_TRAMPOLINE.
863 * targhooks.h: Update decls.
865 2009-09-22 Dave Korn <dave.korn.cygwin@gmail.com>
867 * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Enable.
868 * config/i386/cygwin.h (LIBGCJ_SONAME): Define.
869 * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
871 2009-09-22 Alexandre Oliva <aoliva@redhat.com>
874 * reload1.c (reload): Reset debug insns with pseudos without
877 2009-09-22 Janis Johnson <janis187@us.ibm.com>
879 * config/i386/i386.c (ix86_scalar_mode_supported_p): Don't return
880 unconditional true for decimal float modes.
881 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Ditto.
882 * config/s390/s390.c (s390_scalar_mode_supported_p): Ditto.
884 2009-09-22 Loren J. Rittle <ljrittle@acm.org>
886 * unwind-dw2-fde-glibc.c: Define and use USE_PT_GNU_EH_FRAME.
887 Enable a new case for __FreeBSD__ >= 7.
888 * crtstuff.c: Define USE_PT_GNU_EH_FRAME for __FreeBSD__ >= 7.
889 * config/t-freebsd: Define LIB2ADDEH and LIB2ADDEHDEP.
890 * config/freebsd-spec.h: Conditionally define LINK_EH_SPEC
891 and USE_LD_AS_NEEDED.
893 * doc/install.texi (*-*-freebsd*): Update target information.
895 2009-09-22 Richard Guenther <rguenther@suse.de>
898 * tree-dfa.c (get_ref_base_and_extent): Handle trailing
899 arrays really properly.
901 2009-09-22 Richard Henderson <rth@redhat.com>
904 * target.h (struct gcc_target): Add asm_out.trampoline_template,
905 calls.static_chain, calls.trampoline_init,
906 calls.trampoline_adjust_address.
907 * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
908 (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New.
909 (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
910 * builtins.c (expand_builtin_setjmp_receiver): Use
911 targetm.calls.static_chain; only clobber registers.
912 (expand_builtin_init_trampoline): Use targetm.calls.trampoline_init;
913 set up memory attributes properly for the trampoline block.
914 (expand_builtin_adjust_trampoline): Use
915 targetm.calls.trampoline_adjust_address.
916 * calls.c (prepare_call_address): Add fndecl argument. Use
917 targetm.calls.static_chain.
918 * df-scan.c (df_need_static_chain_reg): Remove.
919 (df_get_entry_block_def_set): Use targetm.calls.static_chain;
920 consolodate static chain handling.
921 * doc/tm.texi: Document new hooks.
922 * emit-rtl.c (static_chain_rtx, static_chain_incoming_rtx): Remove.
923 (init_emit_regs): Don't initialize them.
924 * expr.h (prepare_call_address): Update decl.
925 * final.c (profile_function): Use targetm.calls.static_chain.
926 * function.c (expand_function_start): Likewise.
927 * rtl.h (static_chain_rtx, static_chain_incoming_rtx): Remove.
928 * stmt.c (expand_nl_goto_receiver): Use targetm.calls.static_chain;
929 only clobber registers.
930 * targhooks.c (default_static_chain): New.
931 (default_asm_trampoline_template, default_trampoline_init): New.
932 (default_trampoline_adjust_address): New.
933 * targhooks.h: Declare them.
934 * varasm.c (assemble_trampoline_template): Use
935 targetm.asm_out.trampoline_template. Make the memory block const
938 * config/alpha/alpha.c (alpha_trampoline_init): Rename from
939 alpha_initialize_trampoline. Make static. Merge VMS parameter
940 differences into the TARGET_ABI_OPEN_VMS code block.
941 (TARGET_TRAMPOLINE_INIT): New.
942 * config/alpha/alpha.h (TRAMPOLINE_TEMPLATE): Remove.
943 (TRAMPOLINE_SECTION, INITIALIZE_TRAMPOLINE): Remove.
944 * config/alpha/vms.h (TRAMPOLINE_SIZE, TRAMPOLINE_ALIGNMENT): Remove.
945 (INITIALIZE_TRAMPOLINE): Remove.
947 * config/arc/arc.h (TRAMPOLINE_ALIGNMENT): New.
948 (TRAMPOLINE_TEMPLATE): Merge with ...
949 (INITIALIZE_TRAMPOLINE): ... this and move ...
950 * config/arc/arc.c (arc_trampoline_init): ... here.
951 (TARGET_TRAMPOLINE_INIT): New.
953 * config/arm/arm.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
954 (TARGET_TRAMPOLINE_INIT, TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
955 (arm_asm_trampoline_template): New.
956 (arm_trampoline_init, arm_trampoline_adjust_address): New.
957 * config/arm/arm.h (TRAMPOLINE_TEMPLATE, ARM_TRAMPOLINE_TEMPLATE,
958 THUMB2_TRAMPOLINE_TEMPLATE, THUMB1_TRAMPOLINE_TEMPLATE): Move all
959 code to arm_asm_trampoline_template.
960 (TRAMPOLINE_ADJUST_ADDRESS): Move code to
961 arm_trampoline_adjust_address.
962 (INITIALIZE_TRAMPOLINE): Move code to arm_trampoline_init;
963 adjust for target hook parameters.
965 * config/avr/avr.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE):
968 * config/bfin/bfin-protos.h (initialize_trampoline): Remove.
969 * config/bfin/bfin.c (bfin_asm_trampoline_template): New.
970 (bfin_trampoline_init): Rename from initialize_trampoline;
971 make static; update for target hook parameters.
972 (TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New.
973 * config/bfin/bfin.h (TRAMPOLINE_TEMPLATE): Move code to
974 bfin_asm_trampoline_template.
975 (INITIALIZE_TRAMPOLINE): Remove.
977 * config/cris/cris.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
978 TARGET_TRAMPOLINE_INIT, cris_asm_trampoline_template,
979 cris_trampoline_init): New.
980 * config/cris/cris.h (TRAMPOLINE_TEMPLATE): Move code to
981 cris_asm_trampoline_template.
982 (INITIALIZE_TRAMPOLINE): Move code to cris_trampoline_init;
983 adjust for target hook parameters.
985 * config/crx/crx.h (INITIALIZE_TRAMPOLINE): Remove.
987 * config/fr30/fr30.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
988 TARGET_TRAMPOLINE_INIT, fr30_asm_trampoline_template,
989 fr30_trampoline_init): New.
990 * config/fr30/fr30.h (TRAMPOLINE_TEMPLATE): Move code to
991 fr30_asm_trampoline_template.
992 (INITIALIZE_TRAMPOLINE): Move code to fr30_trampoline_init;
993 adjust for target hook parameters.
995 * config/frv/frv.c (TARGET_TRAMPOLINE_INIT): New.
996 (frv_trampoline_init): Rename from frv_initialize_trampoline;
997 make static, adjust arguments for TARGET_TRAMPOLINE_INIT hook.
998 * config/frv/frv.h (INITIALIZE_TRAMPOLINE): Remove.
999 * config/frv/frv-protos.h (frv_initialize_trampoline): Remove.
1001 * config/h8300/h8300.c (h8300_trampoline_init): New.
1002 (TARGET_TRAMPOLINE_INIT): New.
1003 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Move code
1004 to h8300_trampoline_init and adjust for hook parameters.
1006 * config/ia64/ia64-protos.h (ia64_initialize_trampoline): Remove.
1007 * config/ia64/ia64.c (TARGET_TRAMPOLINE_INIT): New.
1008 (ia64_trampoline_init): Rename from ia64_initialize_trampoline;
1009 make static; adjust for hook parameters.
1010 * config/ia64/ia64.h (INITIALIZE_TRAMPOLINE): Remove.
1012 * config/iq2000/iq2000.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
1013 (TARGET_TRAMPOLINE_INIT): New.
1014 (iq2000_asm_trampoline_template, iq2000_trampoline_init): New.
1015 * config/iq2000/iq2000.h (TRAMPOLINE_TEMPLATE): Move code to
1016 iq2000_asm_trampoline_template.
1017 (INITIALIZE_TRAMPOLINE): Move code to iq2000_trampoline_init.
1018 (TRAMPOLINE_CODE_SIZE): New.
1019 (TRAMPOLINE_SIZE): Use it.
1020 (TRAMPOLINE_ALIGNMENT): Follow Pmode.
1022 * config/m32c/m32c-protos.h (m32c_initialize_trampoline): Remove.
1023 * config/m32c/m32c.c (TARGET_TRAMPOLINE_INIT): New.
1024 (m32c_trampoline_init): Rename from m32c_initialize_trampoline;
1025 adjust for hook parameters.
1026 * config/m32c/m32c.h (INITIALIZE_TRAMPOLINE): Remove.
1028 * config/m32r/m32r.c (TARGET_TRAMPOLINE_INIT): New.
1029 (m32r_trampoline_init): New.
1030 * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Move code to
1031 m32r_trampoline_init.
1033 * config/m68hc11/m68hc11.c (TARGET_TRAMPOLINE_INIT): New.
1034 (m68hc11_trampoline_init): Rename from m68hc11_initialize_trampoline;
1035 make static; update for hook parameters.
1036 * config/m68hc11/m68hc11-protos.h: Update.
1037 * config/m68hc11/m68hc11.h (INITIALIZE_TRAMPOLINE): Remove.
1039 * config/mcore/mcore.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
1040 (TARGET_TRAMPOLINE_INIT): New.
1041 (mcore_function_value): Fix typo.
1042 (mcore_asm_trampoline_template, mcore_trampoline_init): New.
1043 * config/mcore/mcore.h (TRAMPOLINE_TEMPLATE): Move code
1044 to mcore_asm_trampoline_template.
1045 (INITIALIZE_TRAMPOLINE): Move code to mcore_trampoline_init.
1047 * config/mep/mep.h (INITIALIZE_TRAMPOLINE): Remove.
1048 * config/mep/mep.c (TARGET_TRAMPOLINE_INIT): New.
1049 (mep_trampoline_init): Rename from mep_init_trampoline; make static;
1050 update for hook parameters.
1051 * config/mep/mep-protos.h (mep_init_trampoline): Remove.
1053 * config/mips/mips.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
1054 mips_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
1055 mips_trampoline_init): New.
1056 * config/mips/mips.h (TRAMPOLINE_TEMPLATE): Move code to
1057 mips_asm_trampoline_template.
1058 (INITIALIZE_TRAMPOLINE): Move code to mips_trampoline_init;
1059 update for hook parameters.
1061 * gcc/config/mmix/mmix.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
1062 (TARGET_TRAMPOLINE_INIT): New.
1063 (mmix_trampoline_size): Remove.
1064 (mmix_asm_trampoline_template): Rename from mmix_trampoline_template;
1065 make static. Remove out-of-date tetra vs octa comment.
1066 (mmix_trampoline_init): Rename from mmix_initialize_trampoline;
1067 make static; update for hook parameters.
1068 * config/mmix/mmix.h (TRAMPOLINE_TEMPLATE): Remove.
1069 (INITIALIZE_TRAMPOLINE): Remove.
1070 (TRAMPOLINE_SIZE): Use a constant instead of mmix_trampoline_size.
1071 (TRAMPOLINE_ALIGNMENT): New.
1072 * gcc/config/mmix/mmix-protos.h: Update.
1074 * config/mn10300/mn10300.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
1075 mn10300_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
1076 mn10300_trampoline_init): New.
1077 * config/mn10300/mn10300.h (TRAMPOLINE_TEMPLATE): Move code to
1078 mn10300_asm_trampoline_template.
1079 (INITIALIZE_TRAMPOLINE): Move code to mn10300_trampoline_init.
1081 * config/moxie/moxie.c (moxie_static_chain,
1082 moxie_asm_trampoline_template, moxie_trampoline_init,
1083 TARGET_STATIC_CHAIN, TARGET_ASM_TRAMPOLINE_TEMPLATE,
1084 TARGET_TRAMPOLINE_INIT): New.
1085 * config/moxie/moxie.h (INITIALIZE_TRAMPOLINE): Move code to
1086 moxie_trampoline_init.
1087 (TRAMPOLINE_TEMPLATE): Move code to moxie_asm_trampoline_template.
1088 (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
1090 * gcc/config/pa/pa.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
1091 pa_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
1092 pa_trampoline_init, TARGET_TRAMPOLINE_ADJUST_ADDRESS,
1093 pa_trampoline_adjust_address): New.
1094 * config/pa/pa.h (TRAMPOLINE_TEMPLATE): Move code to
1095 pa_asm_trampoline_template.
1096 (TRAMPOLINE_ALIGNMENT): New.
1097 (TRAMPOLINE_CODE_SIZE): Move to pa.c.
1098 (INITIALIZE_TRAMPOLINE): Move code to pa_trampoline_init;
1099 adjust for hook parameters.
1100 (TRAMPOLINE_ADJUST_ADDRESS): Move code to pa_trampoline_adjust_address.
1102 * config/pdp11/pdp11.c (pdp11_trampoline_init): New.
1103 (TARGET_TRAMPOLINE_INIT): New.
1104 * config/pdp11/pdp11.h (TRAMPOLINE_TEMPLATE): Remove.
1105 (INITIALIZE_TRAMPOLINE): Move code to pdp11_trampoline_init.
1107 * config/picochip/picochip.h (INITIALIZE_TRAMPOLINE): Remove.
1109 * config/rs6000/rs6000-protos.h (rs6000_initialize_trampoline): Remove.
1110 * config/rs6000/rs6000.c (TARGET_TRAMPOLINE_INIT): New.
1111 (rs6000_trampoline_init): Rename from rs6000_initialize_trampoline;
1112 make static; adjust parameters for the hook.
1113 * config/rs6000/rs6000.h (INITIALIZE_TRAMPOLINE): Remove.
1115 * config/s390/s390.c (s390_asm_trampoline_template): Rename from
1116 s390_trampoline_template; make static.
1117 (s390_trampoline_init): Rename from s390_initialize_trampoline;
1118 make static; adjust for target hook.
1119 (TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New.
1120 * config/s390/s390-protos.h: Remove trampoline decls.
1121 * config/s390/s390.h (INITIALIZE_TRAMPOLINE): Remove.
1122 (TRAMPOLINE_TEMPLATE): Remove.
1123 (TRAMPOLINE_ALIGNMENT): New.
1125 * config/score/score-protos.h (score_initialize_trampoline): Remove.
1126 * config/score/score.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
1127 (TARGET_TRAMPOLINE_INIT): New.
1128 (score_asm_trampoline_template): New.
1129 (score_trampoline_init): Rename from score_initialize_trampoline;
1130 make static; adjust for hook parameters.
1131 * config/score/score.h (TRAMPOLINE_TEMPLATE): Move code to
1132 score[37]_asm_trampoline_template.
1133 (INITIALIZE_TRAMPOLINE): Remove.
1134 * config/score/score3.c (score3_asm_trampoline_template): New.
1135 (score3_trampoline_init): Rename from score3_initialize_trampoline;
1136 adjust for target hook.
1137 * config/score/score7.c (score7_asm_trampoline_template): New.
1138 (score7_trampoline_init): Rename from score7_initialize_trampoline;
1139 adjust for target hook.
1140 * config/score/score3.h, config/score/score7.h: Update.
1142 * config/sh/sh-protos.h (sh_initialize_trampoline): Remove.
1143 * config/sh/sh.c (TARGET_TRAMPOLINE_INIT): New.
1144 (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
1145 (sh_trampoline_init): Rename from sh_initialize_trampoline;
1146 make static; adjust for target hook parameters.
1147 (sh_trampoline_adjust_address): New.
1148 * config/sh/sh.h (INITIALIZE_TRAMPOLINE): New.
1149 (TRAMPOLINE_ADJUST_ADDRESS): Move code to sh_trampoline_adjust_address.
1151 * config/sparc/sparc.c (TARGET_TRAMPOLINE_INIT): New.
1152 (sparc32_initialize_trampoline): Rename from
1153 sparc_initialize_trampoline; make static; replace tramp parameter
1154 with m_tramp and update memory accesses.
1155 (sparc64_initialize_trampoline): Similarly.
1156 (sparc_trampoline_init): New.
1157 * config/sparc/sparc-protos.h: Remove trampoline decls.
1158 * config/sparc/sparc.h (INITIALIZE_TRAMPOLINE): Remove.
1159 * config/sparc/sparc.md (nonlocal_goto): Don't use static_chain_rtx.
1161 * config/spu/spu.c (TARGET_TRAMPOLINE_INIT): New.
1162 (array_to_constant): Make ARR parameter const.
1163 (spu_trampoline_init): Rename from spu_initialize_trampoline;
1164 make static; update for hook parameters.
1165 * config/spu/spu-protos.h: Update decls.
1166 * config/spu/spu.h (INITIALIZE_TRAMPOLINE): Remove.
1168 * config/stormy16/stormy16.c (xstormy16_trampoline_init): Rename
1169 from xstormy16_initialize_trampoline; make static; update for
1171 (TARGET_TRAMPOLINE_INIT): New.
1172 * config/stormy16/stormy16.h (INITIALIZE_TRAMPOLINE): Remove.
1174 * config/v850/v850.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
1175 (TARGET_TRAMPOLINE_INIT): New.
1176 (v850_can_eliminate): Make static.
1177 (v850_asm_trampoline_template, v850_trampoline_init): New.
1178 * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Move code to
1179 v850_asm_trampoline_template.
1180 (INITIALIZE_TRAMPOLINE): Move code to v850_trampoline_init
1181 and adjust for target hook parameters.
1183 * config/vax/vax.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
1184 (TARGET_TRAMPOLINE_INIT): New.
1185 (vax_asm_trampoline_template, vax_trampoline_init): New.
1186 * config/vax/vax.h (TRAMPOLINE_TEMPLATE): Move code to
1187 vax_asm_trampoline_template.
1188 (INITIALIZE_TRAMPOLINE): Move code to vax_trampoline_init.
1190 * config/xtensa/xtensa.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
1191 (TARGET_TRAMPOLINE_INIT): New.
1192 (xtensa_asm_trampoline_template): Rename from
1193 xtensa_trampoline_template; make static.
1194 (xtensa_trampoline_init): Rename from xtensa_initialize_trampoline;
1195 make static; update for hook parameters.
1196 * config/xtensa/xtensa-protos.h: Remove trampoline decls.
1197 * config/xtensa/xtensa.h (TRAMPOLINE_TEMPLATE): Remove.
1198 (INITIALIZE_TRAMPOLINE): Remove.
1200 * config/i386/i386.c (ix86_function_regparm): Do not issue an
1201 error for nested functions with regparm=3.
1202 (ix86_compute_frame_layout): Adjust frame pointer offset for
1203 ix86_static_chain_on_stack.
1204 (ix86_expand_prologue): Handle ix86_static_chain_on_stack.
1205 (ix86_emit_restore_reg_using_pop): Increment ix86_cfa_state->offset,
1206 don't reset to UNITS_PER_WORD.
1207 (ix86_emit_leave): Adjust ix86_cfa_state.
1208 (ix86_expand_epilogue): Handle ix86_static_chain_on_stack.
1209 (ix86_static_chain): New.
1210 (ix86_trampoline_init): Rename from x86_initialize_trampoline;
1211 make static; update for target hook parameters; use ix86_static_chain.
1212 (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New.
1213 * config/i386/i386.h (STATIC_CHAIN_REGNUM): Remove.
1214 (INITIALIZE_TRAMPOLINE): Remove.
1215 (TRAMPOLINE_SIZE): Use 24 for 64-bit.
1216 (struct machine_function): Use BOOL_BITFIELD; rearrange bitfields
1217 to the end. Add static_chain_on_stack.
1218 (ix86_static_chain_on_stack): New.
1220 * config/m68k/m68k.c (TARGET_TRAMPOLINE_INIT): New.
1221 (m68k_output_mi_thunk): Don't use static_chain_rtx.
1222 (m68k_trampoline_init): New.
1223 * config/m68k/m68k.h (INITIALIZE_TRAMPOLINE): Move code to
1224 m68k_trampoline_init and adjust for hook parameters.
1225 * config/m68k/netbsd-elf.h (TRAMPOLINE_TEMPLATE): Remove.
1226 (TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE): Remove.
1228 2009-09-22 Jakub Jelinek <jakub@redhat.com>
1230 * config/rs6000/rs6000.c (bdesc_2arg): Fix CODE_FOR_vector_gt* codes
1231 for __builtin_altivec_vcmpgt{sb,uh,sh,uw}.
1233 * reload1.c (reload): Call wrap_constant when substituting
1234 reg for equiv inside of DEBUG_INSNs.
1237 * dwarf2out.c (base_type_die, record_type_tag, gen_subprogram_die,
1238 add_call_src_coords_attributes, add_high_low_attributes,
1239 gen_compile_unit_die, gen_type_die_with_usage force_decl_die,
1240 gen_decl_die, dwarf2out_imported_module_or_decl_1, dwarf2out_finish,
1241 dwarf2out_imported_module_or_decl): Avoid using DWARF3 additions
1242 when -gdwarf-2 -gstrict-dwarf.
1243 (loc_list_from_tree): Likewise. Avoid using DWARF4 additions when
1244 -gdwarf-[23] -gstrict-dwarf.
1245 (address_of_int_loc_descriptor, loc_descriptor,
1246 loc_list_for_address_of_addr_expr_of_indirect_ref): Avoid using
1247 DWARF4 additions when -gdwarf-[23] -gstrict-dwarf.
1248 * common.opt (gno-strict-dwarf, gstrict-dwarf): New options.
1250 2009-09-22 Richard Guenther <rguenther@suse.de>
1252 PR tree-optimization/41428
1253 * tree-ssa-ccp.c (ccp_fold_stmt): New function.
1254 (ccp_finalize): Pass it to substitute_and_fold.
1256 2009-09-22 Richard Guenther <rguenther@suse.de>
1258 * tree-ssa-propagate.h (ssa_prop_fold_stmt_fn): Declare.
1259 (substitute_and_fold): Adjust prototype.
1260 * tree-vrp.c (vrp_evaluate_conditional): Make static.
1261 (simplify_stmt_using_ranges): Likewise.
1262 (fold_predicate_in): Move here from tree-ssa-propagate.c.
1263 (vrp_fold_stmt): New function.
1264 (vrp_finalize): Pass it to substitute_and_fold.
1265 * tree-flow.h (vrp_evaluate_conditional): Remove.
1266 (simplify_stmt_using_ranges): Likewise.
1267 * tree-ssa-ccp.c (ccp_finalize): Adjust call to substitute_and_fold.
1268 * tree-ssa-copy.c (fini_copy_prop): Likewise.
1269 * tree-ssa-propagate.c (struct prop_stats_d): Rename num_pred_folded
1271 (fold_predicate_in): Move to tree-vrp.c.
1272 (substitute_and_fold): Use the callback instead of calling into
1273 tree-vrp.c functions directly.
1275 2009-09-22 Jakub Jelinek <jakub@redhat.com>
1277 * dwarf2out.c (address_of_int_loc_descriptor): Avoid signed/unsigned
1278 comparison warning on rs6000.
1281 * tree-cfg.c (remove_useless_stmts_tc): Call gsi_next (gsi) even for
1282 GIMPLE_EH_MUST_NOT_THROW cleanup.
1283 (verify_types_in_gimple_stmt): Handle GIMPLE_EH_MUST_NOT_THROW.
1285 2009-09-22 Jack Howarth <howarth@bromo.med.uc.edu>
1288 * gcc/config.gcc: Use darwin9.h and darwin10.h on darwin10 and later.
1289 * gcc/config/darwin10.h: Add file to pass -no_compact_unwind on
1290 LIB_SPEC for darwin10 and later since it always uses the unwinder in
1291 libSystem which is derived from the gcc 4.2.1 unwinder.
1293 2009-09-22 Dave Korn <dave.korn.cygwin@gmail.com>
1296 * varasm.c (default_encode_section_info): Copy TLS model into
1297 sym_ref flags regardless of backend support for TLS, for all
1298 model types except TLS_MODEL_EMULATED.
1300 2009-09-22 Dave Korn <dave.korn.cygwin@gmail.com>
1303 * dwarf2out.c (mem_loc_descriptor): Punt on CONST_STRING until
1304 we can handle it correctly.
1306 2009-09-21 Gerald Pfeifer <gerald@pfeifer.com>
1308 * doc/install.texi (os2): Remove section.
1310 2009-09-21 Gerald Pfeifer <gerald@pfeifer.com>
1312 * doc/standards.texi (Objective-C): Adjust two URLs.
1314 2009-09-21 Giuseppe Scrivano <gscrivano@gnu.org>
1316 * tree-tailcall.c (process_assignment): Don't check if a
1317 multiplication or an addition are already present.
1318 (find_tail_calls): Combine multiple additions and multiplications.
1319 (adjust_accumulator_values): Emit accumulators.
1321 2009-09-21 Kai Tietz <kai.tietz@onevision.com>
1323 * config/i386/i386.c (ix86_expand_epilogue): Adjust offset for
1324 xmm register restore.
1326 2009-09-21 Jan Hubicka <jh@suse.cz>
1328 * dwarf2out.c (decl_loc_table_eq): Allow decl_loc_table to be NULL.
1329 (dwarf2out_abstract_function): NULLify decl_loc_table at begginig and
1332 2009-09-21 Eric Botcazou <ebotcazou@adacore.com>
1334 * stor-layout.c (layout_type): Remove obsolete code.
1336 2009-09-20 H.J. Lu <hongjiu.lu@intel.com>
1339 * opts.c (decode_options): Don't turn on flag_ipa_sra for opt2.
1341 2009-09-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1344 * builtins.c (do_mpc_arg2): Accept DO_NONFINITE parameter.
1345 (do_mpc_ckconv): Accept FORCE_CONVERT parameter.
1346 (fold_builtin_2, do_mpc_arg1): Update accordingly.
1347 * fold-const.c (const_binop): Likewise.
1348 * real.h (do_mpc_arg2): Update prototype.
1350 2009-09-20 Jan Hubicka <jh@suse.cz>
1352 * dwarf2out.c (add_const_value_attribute): Return true if successful.
1353 (add_location_or_const_value_attribute): Rewrite using
1355 (tree_add_const_value_attribute): Return true if successful.
1356 (tree_add_const_value_attribute_for_decl): Likewise.
1358 * dwarf2out.c (address_of_int_loc_descriptor): Break out from ...
1359 (loc_descriptor): ... here;
1360 (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
1361 (cst_pool_loc_descr): Break out from ...; do not reffer constant
1362 pool items that was not marked for output.
1363 (loc_list_from_tree): ... here; handle special cases of ADDR_EXPR;
1364 (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
1365 (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
1366 handle ALIGN_INDIRECT_REF, MISALIGNED_INDIRECT_REF, REALPART_EXPR,
1367 IMAGPART_EXPR; handle address of INTEGER_CST; improve handling of
1368 CONSTRUCTOR; handle REAL_CST, STRING_CST, COMPLEX_CST; use
1369 DW_OP_stack_value to get address of items that are not available
1371 (dw_loc_list): Handle single element lists correctly.
1373 2009-09-20 Kai Tietz <kai.tietz@onevision.com>
1374 Pascal Obry <obry@adacore.com>
1376 * unwind-dw2-fde.c (classify_object_over_fdes):
1377 Cast the constant 1 to _Unwind_Ptr.
1378 (add_fdes): Likewise.
1379 (linear_search_fdes): Likewise.
1381 2009-09-20 Eric Botcazou <ebotcazou@adacore.com>
1383 * stor-layout.c (set_sizetype): Avoid useless type copy.
1385 2009-09-20 Richard Sandiford <rdsandiford@googlemail.com>
1387 * configure.ac (gcc_cv_ld_mips_personality_relaxation): New
1389 (HAVE_LD_PERSONALITY_RELAXATION): New macro definition.
1390 * configure, config.in: Regenerate.
1391 * dwarf2asm.c (eh_data_format_name): Handle DW_EH_PE_indirect |
1393 * config/mips/mips.h (TARGET_WRITABLE_EH_FRAME): New macro.
1394 (ASM_PREFERRED_EH_DATA_FORMAT): Define. Use MIPS_EH_INDIRECT
1395 for global data if the output could be used in a shared library.
1396 * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
1397 to 0 if TARGET_WRITABLE_EH_FRAME.
1399 2009-09-20 Paolo Bonzini <bonzini@gnu.org>
1401 PR rtl-optimization/39886
1402 * combine.c (update_cfg_for_uncondjump): Set EDGE_FALLTHRU
1403 just when insn is equal to BB_END (bb).
1405 2009-09-19 Adam Nemet <anemet@caviumnetworks.com>
1407 * config/mips/mips.opt (mrelax-pic-calls): New option.
1408 * config/mips/mips.c (mips_strip_unspec_address): Move it up in
1410 (mips_unspec_call): Change "unspec_call" expander into this.
1411 (mips_strip_unspec_call): New function.
1412 (mips_got_load): Call mips_unspec_call instead of
1413 gen_unspec_call<mode>.
1414 (mips16_build_call_stub): Fix comment for fp_code. Adjust call to
1416 (mips_cfg_in_reorg): New function.
1417 (mips16_lay_out_constants): Use it to decide whether to call
1418 CFG-aware insn splitting.
1419 (r10k_insert_cache_barriers): Move CFG set-up code from here to
1420 mips_reorg. Move DF set-up code from here ...
1421 (mips_df_reorg): ... to here. Call r10k_insert_cache_barriers
1423 (mips_reorg): Call mips_df_reorg instead of
1424 r10k_insert_cache_barriers. Move CFG set-up code here from
1425 r10k_insert_cache_barriers.
1426 (mips_call_expr_from_insn): New function.
1427 (mips_pic_call_symbol_from_set): Likewise.
1428 (mips_find_pic_call_symbol): Likewise.
1429 (mips_annotate_pic_call_expr): Likewise.
1430 (mips_get_pic_call_symbol): Likewise.
1431 (mips_annotate_pic_calls): Likewise.
1432 (mips_override_options): Disable -mrelax-pic-calls unless PIC
1434 (mips_set_mips16_mode): Disable -mrelax-pic-calls for MIPS16.
1435 * config/mips/mips-protos.h (mips_get_pic_call_symbol): Declare it.
1436 * config/mips/mips.h (MIPS_CALL): Use it to print the .reloc
1438 * config/mips/mips.md (UNSPEC_CALL_ATTR): New unspec.
1439 (unspec_call<mode>): Remove it.
1440 (sibcall_internal, sibcall_value_internal,
1441 sibcall_value_multiple_internal, call_internal, call_split,
1442 call_value_internal, call_value_split,
1443 call_value_multiple_internal, call_value_multiple_split): Pass
1444 SIZE_OPNO to MIPS_CALL.
1445 (call_internal_direct, call_direct_split,
1446 call_value_internal_direct, call_value_direct_split): Pass -1 as
1447 SIZE_OPNO to MIPS_CALL.
1448 * configure.ac <mips*-*-*>: Add test for .reloc R_MIPS_JALR.
1449 * configure: Regenerate.
1450 * doc/invoke.texi (Option Summary): Add -mrelax-pic-calls
1451 and -mno-relax-pic-calls.
1452 (MIPS Options): Document -mrelax-pic-calls and -mno-relax-pic-calls.
1454 2009-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1457 * Makefile.in (stmp-fixinc): Ensure `include-fixed' is created
1458 in the directory this rule is called from, rather than the
1459 toplevel 'gcc' directory, to fix in-tree build.
1461 2009-09-19 Chris Demetriou <cgd@google.com>
1463 PR preprocessor/28435:
1464 * c-opts.c (c_common_handle_option): For -MD and -MMD, indicate
1465 to cpplib that the preprocessor output is needed.
1467 2009-09-19 Jakub Jelinek <jakub@redhat.com>
1469 * config/rs6000/rs6000.md (*save_gpregs_<mode>, *save_fpregs_<mode>,
1470 *restore_gpregs_<mode>, *return_and_restore_gpregs_<mode>,
1471 *return_and_restore_fpregs_<mode>,
1472 *return_and_restore_fpregs_aix_<mode>): Remove 'z' operand modifier.
1475 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Recurse
1476 instead of assuming it has always a REG inside of it.
1478 2009-09-18 Gerald Pfeifer <gerald@pfeifer.com>
1480 * config/freebsd.h: Update comment on types.
1481 (WINT_TYPE): Define.
1483 2009-09-18 Jason Merrill <jason@redhat.com>
1485 * c.opt: Add -fno-deduce-init-list.
1487 2009-09-18 Neil Vachharajani <nvachhar@google.com>
1489 * value-prof.c (interesting_stringop_to_profile_p): Added output
1490 argument to indicate which parameter is the size parameter.
1491 * value-prof.c (gimple_stringop_fixed_value): Use
1492 INTERESTING_STRINGOP_TO_PROFILE_P to find size argument.
1493 * value-prof.c (gimple_stringops_transform): Update call sites to
1494 INTERESTING_STRINGOP_TO_PROFILE_P to reflect parameter change.
1496 2009-09-18 Uros Bizjak <ubizjak@gmail.com>
1499 From David Binderman <dcb314@hotmail.com>:
1500 * gcc/config/i386/i386.c (ix86_function_regparm): Remove useless
1501 local variable f. Remove stale comments.
1502 (ix86_compute_frame_layout): Remove useless local variable total_size.
1503 Remove #if 0'd code.
1504 (legitimate_address_p): Remove useless local variables
1505 reason_rtx and reason.
1506 (ix86_split_copysign_const): Remove useless local variable op1.
1507 (scale_counter): Remove useless local variable piece_size_mask.
1509 2009-09-18 Jakub Jelinek <jakub@redhat.com>
1511 * stmt.c (expand_asm_operands): Set REG_ATTRS on the temporary from
1514 2009-09-17 Michael Haubenwallner <michael.haubenwallner@salomon.at>
1517 * config/pa/t-hpux-shlib: Set soname in libgcc_s.sl.
1519 2009-09-17 Jakub Jelinek <jakub@redhat.com>
1521 * c-decl.c (finish_struct): Adjust DECL_SOURCE_LOCATION of
1524 2009-09-17 Alexandre Oliva <aoliva@redhat.com>
1526 * dwarf2out.c (loc_descriptor): Emit DW_OP_stack_value and
1527 DW_OP_implicit_value even without dwarf_version 4.
1529 2009-09-17 Jan Hubicka <jh@suse.cz>
1531 * dwarf2out.c: Include tree-pass.h and gimple.h.
1532 (loc_list_plus_const): New function.
1533 (loc_descriptor_from_tree_1): Rename to ...
1534 (loc_descriptor_from_tree): ... remove original.
1535 (loc_list_from_tree): New function.
1536 (add_AT_location_description): Accept location list.
1537 (tls_mem_loc_descriptor): Update call of loc_descriptor_from_tree.
1538 (concatn_mem_loc_descriptor): Remove.
1539 (mem_loc_descriptor): Handle CONCAT/CONCATN and VAR_LOCATION by
1541 (secname_for_decl): Move up.
1542 (hidden_reference_p): New function; break out from ...
1543 (loc_by_refernece): ... here; move up.
1544 (dw_loc_list): New function.
1545 (single_element_loc_list): New function.
1546 (single_element_loc_list_p): New function.
1547 (add_loc_descr_to_each): New function.
1548 (add_loc_list): New function.
1549 (loc_descr_from_tree): Make wraper of loc_list_from_tree.
1550 (loc_list_from_tree): Reroganized from loc_descr_from_tree;
1551 add diagnostics why expansion failed.
1552 (add_location_or_const_value_attribute): Support location lists.
1553 (add_bound_info): Likewise.
1554 (descr_info_loc): Update call of loc_descriptor_from_tree.
1555 (gen_variable_die): Work on location lists.
1556 * final.c (pass_final): Add dump file.
1557 * Makefile.in (dwarf2out.o): Add new dependencies.
1559 2009-09-17 Janis Johnson <janis187@us.ibm.com>
1562 * real.c decimal_from_integer, decimal_integer_string): New.
1563 (real_from_integer): Use them as special case for decimal float.
1564 * config/dfp-bit.c (_si_to_sd, _usi_to_sd): Use default rounding.
1565 (_di_to_sd, _di_to_dd, _di_to_td, _udi_to_sd, _udi_to_dd, _udi_to_td):
1566 Do not append zero after the decimal point in string to convert.
1568 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
1570 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only
1571 for ARRAY_REFs. Use array_ref_{low,up}_bound to determine bounds.
1573 2009-09-17 Martin Jambor <mjambor@suse.cz>
1575 * common.opt (fipa-sra): New switch.
1576 * opts.c (decode_options): Turn flag_ipa_sra on for opt2.
1577 * timevar.def (TV_IPA_SRA): New timevar.
1578 * params.def (ipa-sra-ptr-growth-factor): New parameter.
1579 * doc/invoke.texi: Document -fipa-sra and ipa-sra-ptr-growth-factor.
1580 * tree-sra.c: Include cgraph.c.
1581 (enum sra_mode): Added SRA_MODE_EARLY_IPA.
1582 (struct access): Added fields stmt, grp_maybe_modified, grp_scalar_ptr
1583 and grp_not_necessarilly_dereferenced.
1584 (func_param_count): New variable.
1585 (encountered_apply_args): New variable.
1586 (bb_dereferences): New variable.
1587 (final_bbs): New variable.
1588 (no_accesses_representant): New variable.
1589 (no_accesses_p): New function.
1590 (dump_access): Dump the new fields.
1591 (sra_initialize): Set encountered_apply_args to false.
1592 (get_ssa_base_param): New function.
1593 (mark_parm_dereference): New function.
1594 (create_access): Caring for INIDRECT_REFs and different handling of
1595 varialble length accesses in early IPA SRA. Store the stmt - a new
1596 parameter - to the new access.
1597 (build_access_from_expr_1): New parameter stmt, passed to
1598 create_access. Handle INDIRECT_REFs.
1599 (build_access_from_expr): Pass the current statement to
1600 build_access_from_expr_1.
1601 (disqualify_ops_if_throwing_stmt): Trigger only in intraprocedural
1603 (build_accesses_from_assign): Pass the current statement to
1604 build_access_from_expr_1. Do not create assign links in IPA-SRA.
1605 (scan_function): Call handle_ssa_defs on phi nodes. Set bits in
1606 final_bbs when necessary. Check for calls to __builtin_apply_args.
1607 Fixup EH info if anythng was changed.
1608 (is_unused_scalar_param): New function.
1609 (ptr_parm_has_direct_uses): New function.
1610 (find_param_candidates): New function.
1611 (mark_maybe_modified): New function.
1612 (analyze_modified_params): New function.
1613 (propagate_dereference_distances): New function.
1614 (dump_dereferences_table): New function.
1615 (analyze_caller_dereference_legality): New function.
1616 (unmodified_by_ref_scalar_representative): New function.
1617 (splice_param_accesses): New function.
1618 (decide_one_param_reduction): New function.
1619 (enum ipa_splicing_result): New type.
1620 (splice_all_param_accesses): New function.
1621 (get_param_index): New function.
1622 (turn_representatives_into_adjustments): New function.
1623 (analyze_all_param_acesses): New function.
1624 (get_replaced_param_substitute): New function.
1625 (get_adjustment_for_base): New function.
1626 (replace_removed_params_ssa_names): New function.
1627 (sra_ipa_reset_debug_stmts): New function.
1628 (sra_ipa_modify_expr): New function.
1629 (sra_ipa_modify_assign): New function.
1630 (convert_callers): New function.
1631 (modify_function): New function.
1632 (ipa_sra_preliminary_function_checks): New function.
1633 (ipa_early_sra): New function.
1634 (ipa_early_sra_gate): New function.
1635 (pass_early_ipa_sra): New variable.
1636 * Makefile.in (tree-sra.o): Add cgraph.h to dependencies.
1638 2009-09-17 Michael Matz <matz@suse.de>
1641 * tree.c (build_type_attribute_qual_variant): Export.
1642 * tree.h (build_type_attribute_qual_variant): Declare.
1643 * tree-inline.c (remap_type_1): Use it to build variants with
1644 the original qualifiers and attributes.
1646 2009-09-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1648 * cfglayout.c (fixup_reorder_chain): Accept conditional jumps
1649 without a fallthrough edge.
1651 2009-09-16 DJ Delorie <dj@redhat.com>
1653 * config/m32c/m32c.c (m32c_emit_epilogue): Check for R8C or M16C
1654 chip and ignore the "fast_interrupt" attribute if so.
1656 2009-09-16 Richard Henderson <rth@redhat.com>
1659 * cfgbuild.c (find_bb_boundaries): Really re-instate 2009-09-02
1662 2009-09-16 Richard Henderson <rth@redhat.com>
1665 * tree-cfg.c (verify_gimple_call): Validate that gimple_call_chain
1666 is set only if DECL_NO_STATIC_CHAIN is unset.
1667 * tree-nested.c (iter_nestinfo_start, iter_nestinfo_next): New.
1668 (FOR_EACH_NEST_INFO): New.
1669 (walk_all_functions): Use it.
1670 (finalize_nesting_tree): Likewise.
1671 (unnest_nesting_tree): Likewise.
1672 (free_nesting_tree): Use iter_nestinfo_start, iter_nestinfo_next.
1673 (get_chain_decl, get_chain_field): Reset DECL_NO_STATIC_CHAIN.
1674 (convert_gimple_call): Early out if gimple_call_chain already set.
1675 (convert_all_function_calls): Iterate until no new functions
1676 require a static chain.
1677 (finalize_nesting_tree_1): Assert DECL_NO_STATIC_CHAIN is unset
1678 when building a trampoline. Use dump_function_to_file instead
1680 (lower_nested_functions): Open dump_file. Validate that decls
1681 that have DECL_NO_STATIC_CHAIN from the front end don't have that
1682 bit reset by this pass.
1684 2009-09-16 Michael Matz <matz@suse.de>
1687 * tree.h (struct tree_decl_common): Add decl_restricted_flag,
1688 shorten decl_common_unused.
1689 (DECL_RESTRICTED_P): New accessor.
1690 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Use it
1691 to disambiguate marked decls and restrict pointers.
1693 2009-09-16 Richard Henderson <rth@redhat.com>
1696 * cfgbuild.c (find_bb_boundaries): Re-instate 2009-09-02 barrier fix.
1698 2009-09-16 Jakub Jelinek <jakub@redhat.com>
1700 * integrate.c (set_block_abstract_flags): Call
1701 set_decl_abstract_flags also on BLOCK_NONLOCALIZED_VARs.
1703 2009-09-16 Richard Guenther <rguenther@suse.de>
1706 * tree-flow-inline.h (may_be_aliased): Compute readonly variables
1709 2009-09-16 DJ Delorie <dj@redhat.com>
1710 Kaz Kojima <kkojima@gcc.gnu.org>
1712 * config/sh/sh.c (output_stack_adjust): Add new argument frame_p.
1713 (sh_expand_prologue): Update calls to output_stack_adjust.
1714 (sh_expand_epilogue): Likewise.
1716 2009-09-15 Adam Nemet <anemet@caviumnetworks.com>
1719 * reorg.c (redundant_insn): Don't count notes or DEBUG_INSNs when
1720 trying to limit the extent of searches in the insn stream.
1722 2009-09-15 Nathan Froyd <froydnj@codesourcery.com>
1723 Jakub Jelinek <jakub@redhat.com>
1727 * config/rs6000/rs6000.c (no_global_regs_above): Fix precedence
1729 (SAVRES_NOINLINE_GPRS_SAVES_LR, SAVRES_NOINLINE_FPRS_SAVES_LR,
1730 SAVRES_NOINLINE_FPRS_DOESNT_RESTORE_LR): New strategy bits.
1731 (rs6000_savres_strategy): Always save FP registers inline if the
1732 target doesn't support hardware double-precision. Set the above
1733 bits in return value when needed.
1734 (rs6000_savres_routine_sym): Fix computation for cache selector.
1735 Mark the generated symbol as a function. Rename exitp argument to
1736 lr. Move code for determining the name of the symbol...
1737 (rs6000_savres_routine_name): ...here. New function. Add cases for
1738 getting the names right on AIX and 64-bit Linux.
1739 (savres_routine_name): New variable.
1740 (rs6000_make_savres_rtx): Rename exitp argument to lr. Don't assert
1741 lr isn't set when savep. Use r12 resp. r1 instead of r11 depending
1742 on what the target routine uses as a base register. If savep && lr
1743 describe saving of r0 into memory slot.
1744 (rs6000_emit_prologue): Correct use of call_used_regs. Fix out of
1745 line calls for AIX ABI.
1746 (rs6000_output_function_prologue): Use rs6000_savres_routine_name to
1747 determine FP save/restore functions.
1748 (rs6000_emit_stack_reset): Handle savres if sp_offset != 0 and
1749 frame_reg_rtx != sp_reg_rtx. Use gen_add3_insn instead of
1751 (rs6000_emit_epilogue): Adjust computation of restore_lr.
1752 Duplicate restoration of LR and execute the appropriate one
1753 depending on whether GPRs are being restored inline. Set r11 from
1754 offsetted frame_reg_rtx instead of sp_reg_rtx; if frame_reg_rtx is
1755 r11, adjust sp_offset. Use gen_add3_insn instead of gen_addsi3.
1756 Fix out of line calls for AIX ABI.
1757 * config/rs6000/rs6000.md (*return_and_restore_fpregs_aix_<mode>):
1759 * config/rs6000/spe.md (*save_gpregs_spe): Use explicit match for
1761 (*restore_gpregs_spe): Likewise.
1762 (*return_and_restore_gpregs_spe): Likewise.
1763 * config/rs6000/linux64.h (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX):
1764 Define to empty string unconditionally.
1765 * config/rs6000/sysv4.h (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX):
1766 Define to empty string unconditionally.
1767 (GP_SAVE_INLINE, FP_SAVE_INLINE): Handle TARGET_64BIT the same as
1770 2009-09-15 Jan Hubicka <jh@suse.cz>
1772 * doc/invoke.texi (inline-insns-auto): Drop from 60 to 50.
1773 * params.def (inline-insns-auto): Likewise.
1775 2009-09-15 Martin Jambor <mjambor@suse.cz>
1777 * ipa-inline.c (estimate_function_body_sizes): Dump info about
1778 individual statements only at TDF_DETAILS dump level. Format
1779 source for 80 characters per line.
1781 2009-09-15 Christian Bruel <christian.bruel@st.com>
1783 * regrename.c (do_replace): Update REG_DEAD notes.
1785 2009-09-15 Revital Eres <eres@il.ibm.com>
1787 * doc/tm.texi (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Document.
1788 * targhooks.c (default_builtin_support_vector_misalignment):
1789 New builtin function.
1790 * targhooks.h (default_builtin_support_vector_misalignment):
1792 * target.h (builtin_support_vector_misalignment):
1793 New field in struct gcc_target.
1794 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Call
1795 new builtin function.
1796 * target-def.h (TARGET_SUPPORT_VECTOR_MISALIGNMENT):
1798 * config/rs6000/rs6000.c
1799 (rs6000_builtin_support_vector_misalignment): New function.
1800 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Define.
1802 2009-09-15 Jie Zhang <jie.zhang@analog.com>
1804 * config/bfin/bfin.c (length_for_loop): Use NONDEBUG_INSN_P
1806 (bfin_optimize_loop): Likewise.
1807 (bfin_gen_bundles): Likewise.
1808 (workaround_speculation): Likewise.
1809 (find_load): Return NULL_RTX for debug_insn.
1811 2009-09-15 Uros Bizjak <ubizjak@gmail.com>
1813 * config/alpha/alpha.md (smaxsf3): Disable for IEEE mode.
1816 2009-09-14 DJ Delorie <dj@redhat.com>
1818 * config/mep/mep.h (JUMP_TABLES_IN_TEXT_SECTION): Define.
1819 * config/mep/mep.c (mep_emit_cbranch): Don't use BEQZ/BNEI in
1822 2009-09-14 Richard Henderson <rth@redhat.com>
1823 Jakub Jelinek <jakub@redhat.com>
1825 * builtins.c (expand_builtin_synchronize): Use gimple_build_asm_vec.
1826 * cfgbuild.c (make_edges): Handle asm goto.
1827 * cfglayout.c (fixup_reorder_chain): Likewise.
1828 * cfgrtl.c (patch_jump_insn): Likewise.
1829 * gimple-pretty-print.c (dump_gimple_asm): Likewise.
1830 * gimple.c (gimple_build_asm_1): Add and use nlabels parameter.
1831 (gimple_build_asm_vec): Add and use labels parameter.
1832 (gimple_build_asm): Remove.
1833 (walk_gimple_asm): Walk labels too.
1834 * gimple.def (GIMPLE_ASM): Update docs.
1835 * gimple.h: Update decls.
1836 (struct gimple_statement_asm): Change nc to use unsigned char;
1838 (gimple_asm_nlabels): New.
1839 (gimple_asm_label_op, gimple_asm_set_label_op): New.
1840 * gimplify.c (gimplify_asm_expr): Copy labels from ASM_EXPR
1841 into gimple_build_asm_vec.
1842 * jump.c (mark_jump_label_asm): New.
1843 (mark_jump_label): Use it.
1844 (redirect_jump_1): Handle asm goto.
1845 (invert_jump_1): Soft fail if X is null.
1846 * recog.c (extract_asm_operands): New.
1847 (asm_noperands): Use it; handle asm labels.
1848 (decode_asm_operands): Use extract_asm_operands.
1849 (asm_operand_ok): Properly handle empty string.
1850 * reg-stack.c (get_asm_operands_in_out): Rename from
1851 get_asm_operand_n_inputs; use extract_asm_operands; return both
1852 inputs and outputs by reference; update all callers.
1853 * rtl.def (ASM_OPERANDS): Add label vector as operand 6.
1854 * rtl.h (ASM_OPERANDS_LABEL_VEC): New.
1855 (ASM_OPERANDS_LABEL_LENGTH, ASM_OPERANDS_LABEL): New.
1856 (ASM_OPERANDS_SOURCE_LOCATION): Renumber.
1857 (extract_asm_operands): Declare.
1858 * stmt.c (expand_asm_operands): Add and use labels parameter.
1859 (check_unique_operand_names): Likewise.
1860 (resolve_asm_operand_names, resolve_operand_name_1): Likewise.
1861 (expand_asm_stmt): Handle asm labels.
1862 * tree-cfg.c (make_gimple_asm_edges): New.
1863 (make_edges): Use it.
1864 (cleanup_dead_labels): Handle asm labels.
1865 (is_ctrl_altering_stmt): Likewise.
1866 (gimple_redirect_edge_and_branch): Likewise.
1867 * tree.def (ASM_EXPR): Add 5th operand.
1868 * tree.h (ASM_LABELS): New.
1869 (resolve_asm_operand_names): Update decl.
1871 * c-parser.c (c_parser_asm_statement): Parse asm goto.
1872 (c_parser_asm_goto_operands): New.
1873 * c-tree.h (build_asm_expr): Update decl.
1874 * c-typeck.c (build_asm_expr): Add and use labels parameter.
1875 * doc/extend.texi: Document asm goto.
1877 2009-09-14 Richard Henderson <rth@redhat.com>
1879 * except.h: Update declarations.
1880 (struct pointer_map_t): Forward declare.
1881 (ERT_UNKNOWN, ERT_THROW, ERT_CATCH): Remove.
1882 (struct eh_landing_pad_d, eh_landing_pad): New.
1883 (struct eh_catch_d, eh_catch): New.
1884 (struct eh_region_d): Remove next_region_sharing_label, aka,
1885 label, tree_label, landing_pad, post_landing_pad, resume,
1886 may_contain_throw. Rename region_number to index. Remove
1887 u.eh_catch, u.eh_throw. Rename u.eh_try.eh_catch to first_catch.
1888 Add u.must_not_throw, landing_pads, exc_ptr_reg, filter_reg.
1889 (VEC(eh_landing_pad,gc)): New.
1890 (struct eh_status): Remove last_region_number. Add lp_array,
1891 throw_stmt_table, ttype_data, ehspec_data.
1892 (ehr_next, FOR_ALL_EH_REGION_AT): New.
1893 (FOR_ALL_EH_REGION_FN, FOR_ALL_EH_REGION): New.
1894 * except.c (lang_protect_cleanup_actions): Return tree.
1895 (struct ehl_map_entry): Remove.
1896 (init_eh_for_function): Push zero entries for region and lp_array.
1897 (gen_eh_region): Add to region_array immediately.
1898 (gen_eh_region_catch): Operate on eh_catch objects.
1899 (gen_eh_landing_pad): New.
1900 (get_eh_region_may_contain_throw, get_eh_region_tree_label): Remove.
1901 (get_eh_region_no_tree_label, set_eh_region_tree_label): Remove.
1902 (get_eh_region_from_number, get_eh_region_from_number_fn): New.
1903 (get_eh_landing_pad_from_number_fn): New.
1904 (get_eh_landing_pad_from_number): New.
1905 (get_eh_region_from_lp_number_fn): New.
1906 (get_eh_region_from_lp_number): New.
1907 (expand_resx_stmt, note_eh_region_may_contain_throw): Remove.
1908 (get_exception_pointer, get_exception_filter): Remove.
1909 (collect_eh_region_array, can_be_reached_by_runtime): Remove.
1910 (current_function_has_exception_handlers): Simplify.
1911 (bring_to_root, eh_region_replaceable_by_p): Remove.
1912 (replace_region, hash_type_list, hash_eh_region): Remove.
1913 (eh_regions_equal_p, merge_peers, remove_unreachable_regions): Remove.
1914 (label_to_region_map, num_eh_regions): Remove.
1915 (get_next_region_sharing_label, must_not_throw_labels): Remove.
1916 (find_exception_handler_labels): Remove.
1917 (duplicate_eh_regions_0, find_prev_try): Remove.
1918 (struct duplicate_eh_regions_data): New.
1919 (duplicate_eh_regions_1): Rewrite.
1920 (duplicate_eh_regions): Return a pointer map instead of an
1922 (copy_eh_region_1, copy_eh_region, push_reachable_handler): Remove.
1923 (redirect_eh_edge_to_label): Remove.
1924 (eh_region_outermost): Rewrite using eh_region pointers
1925 instead of integers.
1926 (add_ttypes_entry): Update for ttype_data move to eh_status.
1927 (add_ehspec_entry): Rewrite with VEC instead of varray.
1928 (assign_filter_values): Likewise. Export.
1929 (build_post_landing_pads, connect_post_landing_pads): Remove.
1930 (dw2_build_landing_pads): Rewrite to use lp_array.
1931 (struct sjlj_lp_info, sjlj_find_directly_reachable_regions): Remove.
1932 (sjlj_assign_call_site_values): Rewrite to use lp_array.
1933 (sjlj_emit_dispatch_table, sjlj_build_landing_pads): Likewise.
1934 (sjlj_mark_call_sites): Update for landing pad numbers.
1935 (finish_eh_generation): Rewrite.
1936 (gate_handle_eh): Do nothing for no eh tree.
1937 (pass_rtl_eh): Move up near finish_eh_generation.
1938 (remove_eh_landing_pad): New.
1939 (remove_eh_handler): Export.
1940 (remove_eh_region, remove_eh_handler_and_replace): Remove.
1941 (for_each_eh_label): Rewrite to use lp_array.
1942 (make_reg_eh_region_note): New.
1943 (make_reg_eh_region_note_nothrow_nononlocal): New.
1944 (insn_could_throw_p): New.
1945 (copy_reg_eh_region_note_forward): New.
1946 (copy_reg_eh_region_note_backward): New.
1947 (check_handled, add_reachable_handler): Remove.
1948 (reachable_next_level, foreach_reachable_handler): Remove.
1949 (arh_to_landing_pad, arh_to_label, reachable_handlers): Remove.
1950 (get_eh_region_and_lp_from_rtx): New.
1951 (get_eh_region_from_rtx): New.
1952 (can_throw_internal_1, can_throw_external_1): Remove.
1953 (can_throw_internal): Use get_eh_region_from_rtx.
1954 (can_throw_external): Use get_eh_region_and_lp_from_rtx.
1955 (insn_nothrow_p, can_nonlocal_goto): New.
1956 (expand_builtin_eh_common, expand_builtin_eh_pointer): New.
1957 (expand_builtin_eh_filter, expand_builtin_eh_copy_values): New.
1958 (add_action_record): Use VEC not varray.
1959 (collect_one_action_chain): Update for eh_region changes.
1960 (convert_to_eh_region_ranges): Make static. Use VEC not varray.
1961 Use get_eh_region_and_lp_from_rtx.
1962 (gate_convert_to_eh_region_ranges): New.
1963 (pass_convert_to_eh_region_ranges): Use it.
1964 (push_uleb128, push_sleb128): Use VEC not varray.
1965 (output_one_function_exception_table): Likewise.
1966 (dump_eh_tree): Update for eh_region changes.
1967 (verify_eh_tree): Likewise.
1968 (verify_eh_region, default_init_unwind_resume_libfunc): Remove.
1969 * tree-eh.c: Include target.h.
1970 (add_stmt_to_eh_lp_fn): Rename from add_stmt_to_eh_region_fn.
1971 Don't disallow GIMPLE_RESX; adjust argument check.
1972 (add_stmt_to_eh_lp): Rename from add_stmt_to_eh_region.
1973 (record_stmt_eh_region): Update for landing pad numbers;
1974 generate a landing pad if necessary.
1975 (remove_stmt_from_eh_lp): Rename from remove_stmt_from_eh_region.
1976 (remove_stmt_from_eh_lp_fn): Similarly.
1977 (lookup_stmt_eh_lp_fn): Rename from lookup_stmt_eh_region_fn.
1978 Update for lp numbers; don't special case missing throw_stmt_table.
1979 (lookup_expr_eh_lp): Similarly.
1980 (lookup_stmt_eh_lp): Rename from lookup_stmt_eh_region.
1981 (eh_seq, eh_region_may_contain_throw): New.
1982 (struct leh_state): Add ehp_region.
1983 (struct leh_tf_state): Remove eh_label.
1984 (emit_post_landing_pad): New.
1985 (emit_resx, emit_eh_dispatch): New.
1986 (note_eh_region_may_contain_throw): New.
1987 (frob_into_branch_around): Take eh_region not eh label;
1988 emit eh code into eh_seq.
1989 (honor_protect_cleanup_actions): Early exit for no actions. Don't
1990 handle EXC_PTR_EXPR, FILTER_EXPR. Use gimple_build_eh_must_not_throw,
1991 lower_eh_must_not_throw. Emit code to eh_seq.
1992 (lower_try_finally_nofallthru): Emit eh code to eh_seq.
1993 (lower_try_finally_onedest): Likewise.
1994 (lower_try_finally_copy): Likewise.
1995 (lower_try_finally_switch): Likewise.
1996 (lower_try_finally): Initialize ehp_region.
1997 (lower_catch): Update for eh_catch objects.
1998 (lower_eh_filter): Don't handle must_not_throw.
1999 (lower_eh_must_not_throw): New.
2000 (lower_cleanup): Don't set eh_label.
2001 (lower_eh_constructs_2): Resolve eh builtins.
2002 Handle GIMPLE_EH_MUST_NOT_THROW.
2003 (lower_eh_constructs): Initialize eh_region_may_contain_throw.
2004 Add eh_seq to the end of the function body.
2005 (make_eh_dispatch_edges): New.
2006 (make_eh_edge): Remove.
2007 (make_eh_edges): Simplify for landing pads.
2008 (redirect_eh_edge_1): New.
2009 (redirect_eh_edge): Use it.
2010 (redirect_eh_dispatch_edge): New.
2011 (stmt_could_throw_p): Use a switch. Allow RESX.
2012 (stmt_can_throw_external): Use lookup_stmt_eh_lp.
2013 (stmt_can_throw_internal): Likewise.
2014 (maybe_clean_eh_stmt_fn, maybe_clean_eh_stmt): New.
2015 (maybe_clean_or_replace_eh_stmt): Update for landing pads.
2016 (maybe_duplicate_eh_stmt_fn, maybe_duplicate_eh_stmt): New.
2017 (gate_refactor_eh): New.
2018 (pass_refactor_eh): Use it.
2019 (lower_resx, execute_lower_resx, pass_lower_resx): New.
2020 (lower_eh_dispatch, execute_lower_eh_dispatch): New.
2021 (gate_lower_ehcontrol, pass_lower_eh_dispatch): New.
2022 (remove_unreachable_handlers): Rename from
2023 tree_remove_unreachable_handlers; rewrite for landing pads;
2024 call remove_eh_handler directly.
2025 (remove_unreachable_handlers_no_lp): New.
2026 (unsplit_eh, unsplit_all_eh): New.
2027 (tree_empty_eh_handler_p, all_phis_safe_to_merge): Remove.
2028 (cleanup_empty_eh_merge_phis, cleanup_empty_eh_move_lp): New.
2029 (cleanup_empty_eh_unsplit): New.
2030 (cleanup_empty_eh): Rewrite.
2031 (cleanup_all_empty_eh): New.
2032 (execute_cleanup_eh): Rename from cleanup_eh. Remove unreachable
2033 handlers first. Use unsplit_all_eh, cleanup_all_empty_eh.
2034 (gate_cleanup_eh): New.
2035 (pass_cleanup_eh): Use it.
2036 (verify_eh_edges): Move later in file. Expect one EH edge.
2037 (verify_eh_dispatch_edge): New.
2039 * Makefile.in (FUNCTION_H): Use vecprim.h, not varray.h.
2040 (gtype-desc.o): Add TARGET_H.
2041 (tree.o): Use EXCEPT_H, not except.h.
2042 (cfgbuild.o): Add EXPR_H.
2043 (GTFILES): Add vecprim.h.
2044 * builtins.c (expand_builtin): Handle BUILT_IN_EH_POINTER,
2045 BUILT_IN_EH_FILTER, BUILT_IN_EH_COPY_VALUES.
2046 * builtins.def (BUILT_IN_UNWIND_RESUME, BUILT_IN_EH_POINTER,
2047 BUILT_IN_EH_FILTER, BUILT_IN_EH_COPY_VALUES): New.
2048 * calls.c (emit_call_1): Use make_reg_eh_region_note.
2049 * cfgbuild.c (control_flow_insn_p): Use can_nonlocal_goto; tidy
2050 calls to can_throw_internal.
2051 (rtl_make_eh_edge): Use get_eh_landing_pad_from_rtx.
2052 (make_edges): Don't handle RESX; use can_nonlocal_goto.
2053 * cfgexpand.c (expand_gimple_stmt_1): Don't handle RESX.
2054 (expand_gimple_stmt): Use make_reg_eh_region_note.
2055 (expand_debug_expr): Don't handle EXC_PTR_EXPR and FILTER_EXPR.
2056 (gimple_expand_cfg): Don't call convert_from_eh_region_ranges,
2057 or find_exception_handler_labels.
2058 * cfgrtl.c (rtl_verify_flow_info_1): Don't handle RESX. Assert
2059 there is exacly one EH edge. Use can_nonlocal_goto and
2061 * cgraphunit.c (update_call_expr): Use maybe_clean_eh_stmt_fn.
2062 (cgraph_materialize_all_clones): Use maybe_clean_or_replace_eh_stmt.
2063 * combine.c (can_combine_p, try_combine): Use insn_nothrow_p.
2064 * cse.c (count_reg_usage, insn_live_p): Use insn_could_throw_p.
2065 * dce.c (deletable_insn_p_1): Don't test may_trap_p.
2066 (deletable_insn_p): Use insn_nothrow_p; reorder nonjump insn test.
2067 * dse.c (scan_insn): Use insn_could_throw_p.
2068 * emit-rtl.c (try_split): Use copy_reg_eh_region_note_backward.
2069 * expr.c (expand_expr_real): Use make_reg_eh_region_note.
2070 (expand_expr_real_1): Don't handle RESX, EXC_PTR, or FILTER_EXPR.
2071 * fold-const.c (tree_expr_nonnegative_warnv_p): Don't handle
2072 EXC_PTR_EXPR or FILTER_EXPR.
2073 (tree_expr_nonzero_warnv_p): Likewise.
2074 * function.h: Include vecprim.h, not varray.h
2075 (struct rtl_eh): Remove filter, exc_ptr, built_landing_pad members;
2076 move ttype_data and ehspec_data members to struct eh_status; change
2077 action_record_data member to a VEC.
2078 * gcse.c (hash_scan_set): Use can_throw_internal.
2079 * gengtype.c (open_base_files): Add target.h to gtype-desc.c.
2080 * gimple-iterator.c (gsi_replace): Use maybe_clean_or_replace_eh_stmt.
2081 * gimple-low.c (lower_stmt): Handle GIMPLE_EH_MUST_NOT_THROW.
2082 (block_may_fallthru): Don't handle RESX_EXPR.
2083 * gimple-pretty-print.c (dump_gimple_label): Dump EH_LANDING_PAD_NR.
2084 (dump_gimple_eh_must_not_throw, dump_gimple_eh_dispatch): New.
2085 (dump_gimple_stmt): Dump landing pad information with TDF_EH;
2086 handle GIMPLE_EH_MUST_NOT_THROW, GIMPLE_EH_DISPATCH.
2087 * gimple.c (gss_for_code): Handle GIMPLE_EH_MUST_NOT_THROW,
2088 GIMPLE_EH_DISPATCH, GIMPLE_RESX.
2089 (gimple_size): Likewise.
2090 (gimple_build_eh_dispatch, gimple_build_eh_must_not_throw): New.
2091 (gimple_build_resx): Use gimple_build_with_ops.
2092 (DEFTREECODE): Don't handle EXC_PTR_EXPR, FILTER_EXPR.
2093 (is_gimple_val): Likewise.
2094 (is_gimple_stmt): Remove RESX_EXPR.
2095 * gimple.def (GIMPLE_EH_MUST_NOT_THROW, GIMPLE_EH_DISPATCH): New.
2096 (GIMPLE_RESX): Reorder with other EH constructs.
2097 * gimple.h (struct gimple_statement_eh_mnt): New.
2098 (struct gimple_statement_eh_ctrl): Rename from gimple_statement_resx.
2099 (gimple_eh_filter_must_not_throw): Remove.
2100 (gimple_eh_filter_set_must_not_throw): Remove.
2101 (gimple_eh_must_not_throw_fndecl): New.
2102 (gimple_eh_dispatch_region, gimple_eh_dispatch_set_region): New.
2103 (is_gimple_resx): New.
2104 * gimplify.c (gimplify_expr): Don't handle EXC_PTR_EXPR, RESX_EXPR.
2105 Don't copy EH_FILTER_MUST_NOT_THROW.
2106 * gsstruct.def (GSS_EH_MNT, GSS_EHCONTROL): New.
2107 * ipa-inline.c (estimate_function_body_sizes): Don't try to
2108 handle must_not_throw_labels specially.
2109 * ipa-pure-const.c (check_call): Update debug statement for LP.
2110 * ipa-type-escape.c (check_operand): Don't handle EXC_PTR or FILTER.
2111 * ipa-utils.c (get_base_var): Likewise.
2112 * libfunc.h (LTI_unwind_resume, unwind_resume_libfunc): Remove.
2113 * lower-subreg.c (move_eh_region_note): Remove.
2114 (resolve_simple_move): Use copy_reg_eh_region_note_forward.
2115 * omp-low.c (new_omp_context): Update for eh_lp_nr.
2116 (create_task_copyfn): Likewise.
2117 (maybe_catch_exception): Use gimple_build_eh_filter.
2118 * optabs.c (emit_libcall_block): Update test for no-nonlocal-goto
2119 REG_EH_REGION. Use make_reg_eh_region_note_nothrow_nononlocal.
2120 * passes.c (init_optimization_passes): Add pass_lower_eh_dispatch
2121 and pass_lower_resx.
2122 * print-tree.c (print_node): Dump EH_LANDING_PAD_NR.
2123 * recog.c (peephole2_optimize): Use copy_reg_eh_region_note_backward,
2124 can_throw_internal, can_nonlocal_goto.
2125 * reload1.c (fixup_eh_region_note): Use insn_could_throw_p,
2126 copy_reg_eh_region_note_forward.
2127 (emit_input_reload_insns): Use copy_reg_eh_region_note_forward.
2128 (emit_output_reload_insns): Likewise.
2129 (copy_eh_notes): Remove.
2130 * rtl.def (RESX): Remove.
2131 * rtl.h: Update declarations.
2132 * sese.c (graphite_copy_stmts_from_block): Use maybe_duplicate_eh_stmt.
2133 * tree-cfg.c (make_edges): Handle GIMPLE_EH_DISPATCH.
2134 (update_eh_label): Remove.
2135 (cleanup_dead_labels_eh): New.
2136 (cleanup_deal_labels): Use it instead of update_eh_label.
2137 (gimple_merge_blocks): Update landing pad data structure when
2138 removing a landing pad label.
2139 (remove_useless_stmts_tc): Remove gimple_eh_filter_must_not_throw
2140 test; handle GIMPLE_EH_MUST_NOT_THROW.
2141 (is_ctrl_altering_stmt): Handle GIMPLE_EH_DISPATCH.
2142 (verify_gimple_assign_single): Don't handle EXC_PTR or FILTER_EXPR.
2143 (verify_types_in_gimple_stmt): Handle GIMPLE_EH_DISPATCH.
2144 (verify_stmt): Likewise. Verify landing pads.
2145 (gimple_redirect_edge_and_branch): Handle GIMPLE_EH_DISPATCH.
2146 (gimple_duplicate_bb): Use maybe_duplicate_eh_stmt.
2147 (struct move_stmt_d): Add eh_map.
2148 (move_stmt_eh_region_nr, move_stmt_eh_region_tree_nr): New.
2149 (move_stmt_r): Remap eh region numbers in builtin calls,
2150 resx and eh_dispatch.
2151 (move_block_to_fn): Remove eh_offset parameter. Use
2152 maybe_duplicate_eh_stmt_fn.
2153 (find_outermost_region_in_block): Operate on eh_region pointers
2154 instead of region numbers.
2155 (move_sese_region_to_fn): Expect eh_map instead of eh_offset from
2156 duplicate_eh_regions.
2157 * tree-cfgcleanup.c (tree_forwarder_block_p): Move entry block edge
2158 test earlier. Disallow EH landing pads.
2159 * tree-cfa.c (create_tree_common_ann): Don't set ann->rn.
2160 * tree-flow.h: Update declarations.
2161 (struct tree_ann_common_d): Replace rn with lp_nr.
2162 * tree-inline.c (copy_tree_body_r): Don't handle RESX_EXPR.
2163 (remap_eh_region_nr, remap_eh_region_tree_nr): New.
2164 (remap_gimple_stmt): Remap eh region numbers in builtin calls,
2165 resx and eh_dispatch.
2166 (copy_bb): Use maybe_duplicate_eh_stmt_fn.
2167 (copy_edges_for_bb): Use make_eh_dispatch_edges.
2168 (copy_cfg_body): Expect eh_map instead of eh_region_offset
2169 from duplicate_eh_regions.
2170 (estimate_num_insns): Don't handle EXC_PTR_EXPR or FILTER_EXPR;
2171 update RESX; handle EH_DISPATCH.
2172 (expand_call_inline): Set eh_lp_nr, not eh_region.
2173 (maybe_inline_call_in_expr): Likewise.
2174 * tree-inline.h (struct copy_body_data): Replace eh_region with
2175 eh_lp_nr, eh_region_offset with eh_map.
2176 * tree-optimize.c (execute_fixup_cfg): Use maybe_clean_eh_stmt.
2177 * tree-pass.h (pass_lower_eh_dispatch, pass_lower_resx): New.
2178 * tree-pretty-print.c (dump_generic_node): Don't handle
2179 EXC_PTR_EXPR, FILTER_EXPR, RESX_EXPR.
2180 * tree-sra.c (scan_function): Use maybe_clean_eh_stmt.
2181 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Don't handle
2182 EXC_PTR_EXPR, FILTER_EXPR.
2183 * tree-ssa-operands.c (get_expr_operands): Likewise.
2184 * tree-ssa-propagate.c (valid_gimple_rhs_p): Likewise.
2185 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
2186 (ao_ref_init_from_vn_reference): Likewise.
2187 * tree-ssa-sink.c (statement_sink_location): Likewise.
2188 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
2189 (mark_virtual_phi_result_for_renaming): Export. Tidy.
2190 * tree-ssa-pre.c (get_or_alloc_expr_for): Don't handle
2191 EXC_PTR_EXPR, FILTER_EXPR.
2192 (is_exception_related): Remove.
2193 (compute_avail): Don't call it.
2194 * tree-ssa-structalias.c: Remove VEC definitions for int and unsigned.
2195 * tree.c (find_decls_types_in_eh_region): Update for eh_region changes.
2196 (find_decls_types_in_node): Use FOR_ALL_EH_REGION_FN.
2197 (build_common_builtin_nodes): Add enable_cxa_end_cleanup parameter.
2199 (build_resx): Remove.
2200 * tree.def (EXC_PTR_EXPR, FILTER_EXPR, RESX_EXPR): Remove.
2201 * tree.h: Update declarations.
2202 (EH_FILTER_MUST_NOT_THROW): Remove.
2203 (struct tree_label_decl): Add eh_landing_pad_nr.
2204 (EH_LANDING_PAD_NR): New.
2205 * value-prof.c (gimple_ic): Tidy variable names. Update for
2206 landing pad numbers.
2207 (gimple_stringop_fixed_value): Tidy variable names. Assert
2208 that neither call stmt can throw.
2209 * vecprim.h (uchar): New.
2210 (VEC(uchar,heap), VEC(uchar,gc)): New.
2212 * c-common.c (c_define_builtins): Update call to
2213 build_common_builtin_nodes.
2214 * c-parser.c (c_parse_file): Don't call
2215 default_init_unwind_resume_libfunc.
2217 2009-09-14 Richard Sandiford <rdsandiford@googlemail.com>
2219 * config/mips/mips-protos.h (mips_cfun_has_cprestore_slot_p): Declare.
2220 (mips_cprestore_address_p): Likewise.
2221 (mips_save_gp_to_cprestore_slot): Likewise.
2222 (mips_restore_gp): Rename to...
2223 (mips_restore_gp_from_cprestore_slot): ...this.
2224 (mips_must_initialize_gp_p): Declare.
2225 (mips_emit_save_slot_move): Likewise.
2226 (mips_output_load_label): Return nothing.
2227 (mips_eh_uses): Declare.
2228 * config/mips/mips.h (TARGET_SPLIT_CALLS): Require epilogue_completed.
2229 (TARGET_CPRESTORE_DIRECTIVE): New macro.
2230 (TARGET_ABSOLUTE_JUMPS): Likewise.
2231 (EH_USES): Likewise.
2232 (FIRST_PSEUDO_REGISTER): Update comment.
2233 (MIPS_ABSOLUTE_JUMP): New macro, extracted from...
2234 (MIPS_CALL): ...here.
2235 (REGISTER_NAMES): Add $cprestore.
2236 * config/mips/mips.c (machine_function): Remove has_gp_insn_p.
2237 Add load_label_length, has_inflexible_gp_insn_p,
2238 has_flexible_gp_insn_p, must_initialize_gp_p and
2239 must_restore_gp_when_clobbered_p.
2240 (mips_expand_call): Don't generate split instructions here.
2241 (mips_split_call): Update the call to mips_restore_gp after
2242 the above name change.
2243 (mips16_cfun_returns_in_fpr_p): Move earlier in file.
2244 (mips_find_gp_ref): New function.
2245 (mips_insn_has_inflexible_gp_ref_p): Likewise.
2246 (mips_cfun_has_inflexible_gp_ref_p): Likewise.
2247 (mips_insn_has_flexible_gp_ref_p): Likewise.
2248 (mips_cfun_has_flexible_gp_ref_p): Likewise.
2249 (mips_function_has_gp_insn): Delete.
2250 (mips_global_pointer): Drop the df_regs_ever_live_p check.
2251 Use the new functions above. Only return INVALID_REGNUM
2252 for TARGET_ABSOLUTE_JUMPS.
2253 (mips_must_initialize_gp_p): New function.
2254 (mips_get_cprestore_base_and_offset): New function, extracted from...
2255 (mips_cprestore_slot): ...here. Take a bool parameter.
2256 (mips_cfun_has_cprestore_slot_p): New function.
2257 (mips_cprestore_address_p): Likewise.
2258 (mips_save_gp_to_cprestore_slot): Likewise.
2259 (mips_restore_gp): Rename to...
2260 (mips_restore_gp_from_cprestore_slot): ...this. Assert
2261 epilogue_completed. Update the call to mips_cprestore_slot.
2262 Test cfun->machine->must_restore_gp_when_clobbered_p.
2263 (mips_direct_save_slot_move_p): New function.
2264 (mips_emit_save_slot_move): Likewise.
2265 (mips_output_cplocal): Test mips_must_initialize_gp_p () instead
2266 of cfun->machine->global_pointer.
2267 (mips_output_function_prologue): Check mips_must_initialize_gp_p ().
2268 (mips_save_reg): Use mips_emit_save_slot_move.
2269 (mips_expand_prologue): Set must_initialize_gp_p.
2270 Use mips_cfun_has_cprestore_slot_p. Use gen_potential_cprestore
2271 for all cprestore saves. Emit a use_cprestore instruction after
2272 setting up the cprestore slot.
2273 (mips_restore_reg): Use mips_emit_save_slot_move.
2274 (mips_process_load_label): New function.
2275 (mips_load_label_length): Likewise.
2276 (mips_output_load_label): Don't return asm: output it here instead.
2277 Use mips_process_load_label.
2278 (mips_adjust_insn_length): Adjust the length of branch instructions
2279 that have length MAX_PIC_BRANCH_LENGTH.
2280 (mips_output_conditional_branch): Update the call to
2281 mips_output_load_label. Assume the branch target is OPERANDS[0]
2282 rather than OPERANDS[1]. Use MIPS_ABSOLUTE_JUMP for absolute jumps.
2283 (mips_output_order_conditional_branch): Swap the meaning of
2284 OPERANDS[0] and OPERANDS[1].
2285 (mips_variable_issue): Don't count ghost instructions.
2286 (mips_expand_ghost_gp_insns): New function.
2287 (mips_reorg): Rerun mips_reorg_process_insns if it returns true.
2288 (mips_output_mi_thunk): Set must_initialize_gp_p.
2289 (mips_eh_uses): New function.
2290 * config/mips/predicates.md (cprestore_save_slot_operand)
2291 (cprestore_load_slot_operand): New predicates.
2292 * config/mips/mips.md (UNSPEC_POTENTIAL_CPRESTORE): New unspec.
2293 (UNSPEC_MOVE_GP): Likewise.
2294 (UNSPEC_CPRESTORE, UNSPEC_RESTORE_GP, UNSPEC_EH_RETURN)
2295 (UNSPEC_CONSTTABLE_INT, UNSPEC_CONSTTABLE_FLOAT): Bump to make room.
2296 (CPRESTORE_SLOT_REGNUM): New register.
2297 (MAX_PIC_BRANCH_LENGTH): New constant.
2298 (jal_macro): Use MIPS_ABSOLUTE_JUMPS.
2299 (length): Use MAX_PIC_BRANCH_LENGTH as a placeholder for PIC long
2300 branches. Fix commentary.
2301 (loadgp_newabi_<mode>): Change from unspec_volatile to unspec.
2302 Only split if mips_must_initialize_gp_p; expand to nothing otherwise.
2303 Change type to "ghost".
2304 (loadgp_absolute_<mode>): Likewise.
2305 (loadgp_rtp_<mode>): Likewise.
2306 (copygp_mips16): Likewise.
2307 (loadgp_blockage): Remove redundant mode attribute.
2308 (potential_cprestore): New instruction.
2309 (cprestore): Turn into an unspec set.
2310 (use_cprestore): New instruction.
2311 (*branch_fp): Swap operands 0 and 1. Remove redundant mode attribute.
2312 (*branch_fp_inverted): Likewise.
2313 (*branch_order<mode>): Likewise.
2314 (*branch_order<mode>_inverted): Likewise.
2315 (*branch_equality<mode>): Likewise.
2316 (*branch_equality<mode>_inverted): Likewise.
2317 (*branch_bit<bbv><mode>): Likewise.
2318 (*branch_bit<bbv><mode>_inverted): Likewise.
2319 (*branch_equality<mode>_mips16): Remove redundant mode.
2320 (jump): Turn into a define_expand.
2321 (*jump_absolute): New instruction.
2322 (*jump_pic): Likewise.
2323 (*jump_mips16): Rename previously-unnamed pattern. Remove
2324 redundant mode attribute.
2325 (restore_gp): Split on epilogue_completed rather than
2326 reload_completed. Change type to "ghost".
2327 (move_gp<mode>): New instruction.
2328 * config/mips/mips-dsp.md (mips_bposge): Swap operands 0 and 1.
2329 Remove redundant mode attribute.
2330 * config/mips/mips-ps-3d.md (bc1any4t): Likewise.
2331 (bc1any4f, bc1any2t, bc1any2f): Likewise.
2332 (*branch_upper_lower, *branch_upper_lower_inverted): Likewise.
2334 2009-09-14 Michael Meissner <meissner@linux.vnet.ibm.com>
2337 * config/rs6000/rs6000.c (rs6000_function_value): V2DF and V2DI
2338 are returned in the same register (vs34 or v2) that Altivec vector
2339 types are returned in.
2340 (rs6000_libcall_value): Ditto.
2343 * config/rs6000/rs6000.c (rs6000_emit_move): Use gen_add3_insn
2344 instead of explicit addsi3/adddi3 calls.
2345 (rs6000_split_multireg_move): Ditto.
2346 (rs6000_emit_allocate_stack): Ditto.
2347 (rs6000_emit_prologue): Ditto.
2348 (rs6000_output_mi_thunk): Ditto.
2350 * config/rs6000/rs6000.md (bswapdi*): Don't assume the pointer
2351 size is 64 bits if we can use 64-bit registers.
2353 2009-09-14 Bernd Schmidt <bernd.schmidt@analog.com>
2355 * config/bfin/bfin.c (bfin_longcall_p): Don't use short calls for weak
2358 From Jie Zhang <jie.zhang@analog.com>:
2359 * config/bfin/bfin.c (bfin_expand_prologue): Ask do_link to
2360 save FP and RETS with saveall attribute.
2361 (bfin_expand_epilogue): Ask do_unlink to restore FP and RETS
2362 with saveall attribute.
2364 * config/bfin/bfin.c (bfin_expand_builtin,
2365 case BFIN_BUILTIN_MULT_1X32X32): Force constants to registers for the
2368 From Jie Zhang <jie.zhang@analog.com>:
2369 * config/bfin/bfin.c (bfin_expand_builtin): Initialize icodes
2370 before use in two places.
2371 * config/bfin/bfin.md (AREG): Define mode iterator.
2372 (reload_in, reload_out): Use mode iterator AREG.
2374 2009-09-14 Richard Guenther <rguenther@suse.de>
2377 * dwarf2out.c (dwarf2out_begin_prologue): Adjust non-CFI asm
2378 EH personality path.
2380 2009-09-13 Richard Guenther <rguenther@suse.de>
2381 Rafael Avila de Espindola <espindola@google.com>
2383 * langhooks-def.h (LANG_HOOKS_EH_RUNTIME_TYPE): Define.
2384 (LANG_HOOKS_EH_PERSONALITY): Likewise.
2385 (LANG_HOOKS_INITIALIZER): Adjust.
2386 (lhd_pass_through_t): Declare.
2387 * langhooks.h (struct lang_hooks): Add eh_runtime_type and
2389 * langhooks.c (lhd_pass_through_t): New function.
2390 * dwarf2out.c (output_call_frame_info, dwarf2out_do_cfi_startproc,
2391 dwarf2out_begin_prologue): Use personality from current_function_decl.
2392 * expr.h (get_personality_function): Declare.
2393 * expr.c (get_personality_function): New function.
2394 (build_personality_function): Likewise.
2395 * libfuncs.h (libfunc_index): Remove LTI_eh_personality.
2396 (eh_personality_libfunc): Remove.
2397 * optabs.c (build_libfunc_function): New function split out from ...
2398 (init_one_libfunc): ... here.
2399 * tree.h (DECL_FUNCTION_PERSONALITY): New.
2400 (tree_function_decl): Add personality.
2401 (lhd_gcc_personality): Declare.
2402 (build_personality_function): Likewise.
2403 * tree.c (gcc_eh_personality_decl): New.
2404 (lhd_gcc_personality): New function.
2405 * except.h (lang_eh_runtime_type): Remove.
2406 (enum eh_personality_kind): New.
2407 (build_personality_function): Declare.
2408 (function_needs_eh_personality): Declare.
2409 * except.c (lang_eh_runtime_type): Remove.
2410 (function_needs_eh_personality): New function.
2411 (add_type_for_runtime): Call lang_hooks.type_for_runtime instead.
2412 (sjlj_emit_function_enter, output_function_exception_table):
2413 Use personality from current_function_decl.
2414 * tree-eh.c (lower_eh_constructs): Set DECL_FUNCTION_PERSONALITY.
2415 * tree-inline.c (tree_can_inline_p): Do not inline across different
2417 (expand_call_inline): Likewise. Adjust the callers EH personality.
2418 (tree_function_versioning): Copy DECL_FUNCTION_PERSONALITY.
2419 * cgraph.c (cgraph_add_new_function): Set DECL_FUNCTION_PERSONALITY.
2420 * Makefile.in (cgraph.o): Add $(EXCEPT_H) dependency.
2421 (c-parser.o): Likewise
2422 * c-tree.h (c_eh_initialized_p): Remove.
2423 (c_maybe_initialize_eh): Likewise.
2424 * c-decl.c (finish_decl): Don't call c_maybe_initialize_eh.
2425 (finish_decl): Don't call c_maybe_initialize_eh.
2426 (c_eh_initialized_p): Remove.
2427 (c_maybe_initialize_eh): Likewise.
2428 * c-parser.c (c_parser_omp_construct): Likewise.
2429 (c_parse_file): Initialize exception handling.
2431 2009-09-13 Kai Tietz <kai.tietz@onevision.com>
2433 * config.gcc (tm_file): Remove i386/biarch32.h
2434 for i?86-w64-mingw* case.
2435 (i?86-*-mingw* andx86_64-*-mingw*): Add multilib
2437 * config.host: Set for x64 mingw the option
2438 use_long_long_for_widest_fast_int to yes.
2440 2009-09-13 Eric Botcazou <ebotcazou@adacore.com>
2442 * tree.h (DECL_IGNORED_P): Document further effect for FUNCTION_DECL.
2443 * dbxout.c (dbxout_function_end): Do not test DECL_IGNORED_P.
2444 (dbxout_begin_function): Likewise.
2445 * final.c (dwarf2_debug_info_emitted_p): New predicate.
2446 (final_start_function): Do not emit debug info if DECL_IGNORED_P is
2447 set on the function.
2448 (final_end_function): Likewise.
2449 (final_scan_insn): Likewise.
2450 (rest_of_handle_final): Likewise.
2451 * varasm.c (assemble_start_function): Likewise.
2452 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
2454 2009-09-12 Jason Merrill <jason@redhat.com>
2456 * dbgcnt.c (dbg_cnt_process_single_pair): constify.
2457 * opts.c (common_handle_option): constify.
2459 2009-09-12 Gerald Pfeifer <gerald@pfeifer.com>
2461 * doc/install.texi (avr): Remove obsolete reference site.
2463 2009-09-12 Gerald Pfeifer <gerald@pfeifer.com>
2465 * doc/install.texi (Binaries): Adjust AIX link.
2467 2009-09-12 Akim Demaille <demaille@gostai.com>
2469 * doc/invoke.texi (-fstrict-aliasing): Correct two examples.
2470 Use an imperative sentence.
2472 2009-09-11 Richard Henderson <rth@redhat.com>
2474 * gsstruct.def (DEFGSSTRUCT): Remove printable-name argument; add
2475 structure-name and has-tree-operands arguments; update all entries.
2476 * gimple.def (DEFGSCODE): Replace 3rd argument with GSS_symbol;
2478 * gimple.c (gimple_ops_offset_): Use HAS_TREE_OP argument.
2479 (gsstruct_code_size): New.
2480 (gss_for_code_): New.
2481 (gss_for_code): Remove.
2482 (gimple_size): Rewrite using gsstruct_code_size.
2483 (gimple_statement_structure): Move to gimple.h.
2484 * gimple.h (gimple_ops_offset_, gss_for_code_): Declare.
2485 (gss_for_code, gimple_statement_structure): New.
2486 (gimple_ops): Use new arrays; tidy.
2488 2009-09-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2490 * config/pa/predicates.md (symbolic_operand): Require a CONST symbolic
2491 operand to be a PLUS expression.
2492 * config/pa/pa.c (pa_secondary_reload): Likewise.
2494 2009-09-11 Jakub Jelinek <jakub@redhat.com>
2496 * combine.c (propagate_for_debug_subst): Call wrap_constant on top.
2498 * print-rtl.c (print_rtx): Use JUMP_LABEL (in_rtx) instead of
2501 2009-09-11 Bernd Schmidt <bernd.schmidt@analog.com>
2503 From Jie Zhang <jie.zhang@analog.com>:
2504 * doc/extend.texi (node Function Attributes): Document l2
2506 (node Blackfin Variable Attributes): Document l2 variable attributes.
2508 2009-09-11 Loren J. Rittle <ljrittle@acm.org>
2510 * config.gcc (*-*-freebsd*): Enable default_use_cxa_atexit
2511 to match the system compiler's configuration at inflection point.
2512 Add comment to remark a remaining difference with system compiler.
2514 * configure.ac (*-*-freebsd*): Enable check for __stack_chk_fail.
2515 * configure: Regenerate.
2517 2009-09-11 Bernd Schmidt <bernd.schmidt@analog.com>
2519 From Jie Zhang <jie.zhang@analog.com>:
2520 * config/bfin/bfin.c (bfin_expand_call): Handle L2 functions.
2521 (bfin_handle_l2_attribute): New.
2522 (bfin_attribute_table): Add l2 attribute.
2524 2009-09-11 Michael Matz <matz@suse.de>
2527 * tree-inline.c (remap_decls): Don't put DECL_EXTERNAL decls
2528 on the local_decls list.
2530 2009-09-11 Alexandre Oliva <aoliva@redhat.com>
2534 * cselib.c (cselib_expand_value_rtx_cb): Document callback
2536 (cselib_expand_value_rtx_1): Use callback for SUBREGs. Adjust
2537 for VALUEs, to implement the documented interface.
2538 * var-tracking.c (vt_expand_loc_callback): Handle SUBREGs.
2539 Adjust for VALUEs and anything else, to implement the
2540 documented interface.
2542 2009-09-10 Nathan Froyd <froydnj@codesourcery.com>
2544 * config/rs6000/rs6000.h (DATA_ALIGNMENT): Check that we are dealing
2545 with actual SPE/paired vector modes before using 64-bit alignment.
2546 Check that TYPE is a REAL_TYPE for TARGET_E500_DOUBLE.
2548 2009-09-10 DJ Delorie <dj@redhat.com>
2550 * config/mep/mep.md (eh_epilogue): Defer until after epilogue is
2553 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): New.
2554 * config/mep/mep.c (mep_legitimate_constant_p): New.
2555 * config/mep/mep-protos.h: Prototype it.
2557 2009-09-10 Richard Henderson <rth@redhat.com>
2559 * print-rtl.c (print_rtx): Fix JUMP_LABEL index.
2561 2009-09-10 Jason Merrill <jason@redhat.com>
2563 * tree.c (chain_index): New fn.
2564 * tree.h: Declare it.
2566 2009-09-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2568 * config/sol2-c.c (cmn_err_length_specs): Initialize
2569 scalar_identity_flag.
2571 2009-09-10 Richard Henderson <rth@redhat.com>
2573 * tree.h (struct tree_decl_common): Move align member earlier;
2574 move label_decl_uid member ...
2575 (struct tree_label_decl): ... here.
2576 (LABEL_DECL_UID): Update to match.
2578 * tree-cfg.c (dump_function_to_file): Dump eh tree with TDF_EH,
2581 * tree-cfg.c (gimple_redirect_edge_and_branch): Do
2582 gimple_try_redirect_by_replacing_jump test after no-op and EH tests.
2584 * tree-cfg.c (split_edge_bb_loc): Don't disallow placement at
2585 dest_prev if the edge is complex.
2587 * tree-cfg.c (is_ctrl_stmt): Use a switch.
2589 * tree-cfg.c (gimple_can_merge_blocks_p): Move label and
2590 loop latch tests earlier.
2592 * gimple-iterator.c (gimple_find_edge_insert_loc): Insert
2593 before GIMPLE_RETURN, not after its predecessor; insert
2596 * gimple-iterator.c (gimple_find_edge_insert_loc): Use
2597 gimple_seq_empty_p to test for no PHI nodes.
2598 * tree-cfg.c (split_critical_edges): Likewise.
2600 * c-common.h (c_dialect_cxx, c_dialect_objc): Boolify.
2602 2009-09-10 Hariharan Sandanagobalane <hariharan@picochip.com>
2604 * final.c (shorten_branches) : Ignore DEBUG_INSN_P instructions
2605 introduced by the VTA branch merge.
2607 2009-09-10 Uros Bizjak <ubizjak@gmail.com>
2609 * ira-conflicts.c: Use fputs or putc instead of fprintf
2613 * tree-switch-conversion.c: Ditto.
2615 2009-09-10 Hariharan Sandanagobalane <hariharan@picochip.com>
2617 * config/picochip/picochip.c : Ignore DEBUG_INSN_P instructions
2618 introduced by the VTA branch merge.
2620 2009-09-10 Uros Bizjak <ubizjak@gmail.com>
2623 2009-09-09 Uros Bizjak <ubizjak@gmail.com>
2625 PR rtl-optimization/39779
2626 * expr.c (convert_modes): Return when mode == oldmode after
2627 CONST_INTs are processed.
2629 2009-09-10 Nick Clifton <nickc@redhat.com>
2631 * config/mep/mep.c (mep_encode_section_info): Copy weakness
2632 attribute and referring decl when creating renamed symbol.
2634 2009-09-10 Richard Guenther <rguenther@suse.de>
2637 * cgraphunit.c (cgraph_emit_thunks): Emit thunks only for
2639 (cgraph_finalize_compilation_unit): Compute reachability
2640 before emitting thunks. Properly process aliases before
2641 possibly removing unreachable nodes.
2643 2009-09-10 Richard Guenther <rguenther@suse.de>
2646 * tree.c (struct free_lang_data_d): Add worklist member.
2647 (find_decls_types_r): Push onto the worklist instead of recursing.
2648 Handle TREE_BINFOs properly.
2649 (find_decls_types): New function wrapped around find_decls_types_r
2650 to process the worklist.
2651 (find_decls_types_in_eh_region): Use it.
2652 (find_decls_types_in_node): Likewise.
2653 (find_decls_types_in_var): Likewise.
2654 (free_lang_data_in_cgraph): Likewise. Free the worklist.
2655 * tree.h (RECORD_OR_UNION_TYPE_P): New.
2656 (AGGREGATE_TYPE_P): Adjust.
2658 2009-09-09 Jason Merrill <jason@redhat.com>
2660 * configure.ac: Check glibc version even if we have an in-tree
2663 2009-09-09 Anthony Green <green@moxielogic.com>
2665 * config/moxie/moxie.md (*movsi, *movhi, *movqi): Use xor to load
2666 the constant 0 when appropriate.
2667 * config/moxie/constraints.md: Add constraint O.
2669 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Adjust
2670 to pass up to 6 32-bit argument values in registers.
2671 (moxie_function_arg): Ditto.
2672 (moxie_arg_partial_bytes): Ditto.
2673 * config/moxie/moxie.h (FUNCTION_ARG_ADVANCE): Ditto.
2674 (REG_PARM_STACK_SPACE): Ditto.
2675 (FUNCTION_ARG_REGNO_P): Ditto.
2677 * config/moxie/moxie.c (moxie_expand_prologue): Use dec
2678 instruction to allocate stack space.
2680 2009-09-09 Segher Boessenkool <segher@kernel.crashing.org>
2682 * config/rs6000/rs6000.md (bswapdi2_64bit): Fix
2683 unnecessarily stringent constraints. Fix address
2684 calculation in the splitters.
2686 2009-09-09 Uros Bizjak <ubizjak@gmail.com>
2688 PR rtl-optimization/39779
2689 * expr.c (convert_modes): Return when mode == oldmode after
2690 CONST_INTs are processed.
2692 2009-09-09 Kai Tietz <kai.tietz@onevision.com>
2695 * config/i386.c (ix86_can_use_return_insn_p): Check for padding0, too.
2696 (ix86_expand_prologue): Take frame.padding0 into logic of
2698 (ix86_expand_epilogue): Likewise.
2700 2009-09-09 Jakub Jelinek <jakub@redhat.com>
2702 * config/t-slibgcc-elf-ver (SHLIB_MAKE_SOLINK, SHLIB_INSTALL_SOLINK):
2704 (SHLIB_LINK, SHLIB_INSTALL): Use them.
2705 * config/t-slibgcc-libgcc: New file.
2706 * config.gcc (powerpc*-*-linux*, powerpc*-*-gnu*): Use it.
2708 2009-09-09 Martin Jambor <mjambor@suse.cz>
2710 PR tree-optimization/41089
2711 * tree-sra.c (find_var_candidates): Do not consider va_lists in
2714 2009-09-09 Richard Henderson <rth@redhat.com>
2716 * gimple.h (CASE_GIMPLE_OMP): New.
2717 (is_gimple_omp): Use it.
2718 * tree-cfg.c (is_ctrl_altering_stmt): Likewise.
2719 (verify_gimple_debug): Likewise.
2721 2009-09-09 Richard Guenther <rguenther@suse.de>
2723 PR tree-optimization/41101
2724 * tree-ssa-pre.c (maximal_set): Remove.
2725 (compute_antic_aux): Treat the maximal set as implicitly all ones.
2726 Defer all blocks we didn't visit at least one successor.
2727 (add_to_exp_gen): Do not add to the maximal set.
2728 (make_values_for_phi): Likewise.
2729 (compute_avail): Likewise.
2730 (init_pre): Do not allocate the maximal set.
2731 (execute_pre): Do not dump it.
2733 2009-09-09 Martin Jambor <mjambor@suse.cz>
2735 * tree-cfg.c (verify_gimple_phi): Check that gimple_phi_result is
2736 an SSA_NAME rather than a is_gimple_variable.
2738 2009-09-09 Richard Guenther <rguenther@suse.de>
2741 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Remove
2742 code dealing with plain pointer bases.
2743 (maybe_fold_offset_to_reference): Likewise.
2744 (maybe_fold_stmt_addition): Adjust.
2746 2009-09-09 Richard Guenther <rguenther@suse.de>
2748 * tree.c (free_lang_data_in_type): Do not free the type variant
2750 (free_lang_data): Merge char_type_node with its properly signed
2752 (pass_ipa_free): Collect after freeing language specific data.
2754 2009-09-09 Michael Matz <matz@suse.de>
2757 * cfgexpand.c (expand_gimple_stmt_1): Use an int for storing
2758 SUBREG_PROMOTED_UNSIGNED_P, instead of a bool.
2759 * rtl.h (struct rtx, SUBREG_PROMOTED_UNSIGNED_P): Update comments
2762 2009-09-08 DJ Delorie <dj@redhat.com>
2764 * config/mep/mep.c (conversions[]): Add "ml" pattern.
2766 2009-09-04 Jason Merrill <jason@redhat.com>
2768 * tree.c (tree_find_value): Remove.
2769 * tree.h: Remove prototype.
2770 * varasm.c (assemble_external): Use value_member instead.
2772 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
2774 * toplev.c (process_options): Choose default debugging type when
2775 gtoggle enables debug info and type is unset.
2777 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
2781 * cselib.c (cselib_expand_value_rtx_1): Don't return copy of
2784 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
2786 * configure: Rebuilt with modified libtool.m4.
2788 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
2793 * tree-ssa.c (execute_update_addresses_taken): Update debug insns.
2795 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
2797 * tree-ssa-loop-ivopts.c (get_phi_with_result): Remove.
2798 (remove_statement): Likewise.
2799 (rewrite_use_nonlinear_expr): Adjust.
2800 (remove_unused_ivs): Collect SSA NAMEs to remove and call...
2801 * tree-ssa.c (release_defs_bitset): ... this. New.
2802 * tree-flow.h (release_defs_bitset): Declare.
2804 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
2807 * tree-ssa-phiopt.c (minmax_replacement): Skip debug stmts
2808 in the middle block.
2810 2009-09-08 Kai Tietz <kai.tietz@onevision.com>
2812 * tree-ssa-reassoc.c (find_operand_rank): Cast pointer
2813 via intptr_t to long type.
2814 (insert_operand_rank): Cast long type via intptr_t to
2816 * genattrtab.c (RTL_HASH): Use intptr_t to cast from
2818 * c-pretty-print.c (pp_c_tree_decl_identifier): Cast
2819 from pointer to unsigned via uintptr_t.
2821 * configure.ac (GCC_STDINT_TYPES): Initialize intptr_t,
2822 uintptr_t, HAVE_INTTYPES_H, HAVE_STDINT_H, HAVE_UINTPTR_T,
2824 * configure: Regenerated.
2825 * config.in: Regenerated
2826 * system.h (stdint.h): Add include.
2827 (inttypes.h): Likewise.
2828 * Makefile.in (aclocal): Add config/stdint.m4.
2829 * aclocal.m4: Regenerated.
2831 2009-09-08 Bernd Schmidt <bernd.schmidt@analog.com>
2833 * config/bfin/bfin.c (np_check_regno, np_after_branch): New static
2835 (note_np_check_stores): New function.
2836 (harmless_null_pointer_p): New function.
2837 (trapping_loads_p): New args NP_REG and AFTER_NP_BRANCH. Callers
2838 changed. Take into account whether we're in the shadow of a condjump
2839 that tested NP_REG for NULL.
2840 Lose all code that tested for SEQUENCEs.
2841 (workaround_speculation): Avoid inserting NOPs for loads that are
2842 either always executed or a NULL pointer.
2844 2009-09-08 Jan Hubicka <jh@suse.cz>
2846 * doc/invoke.texi (early-inlining-insns): Reduce from 12 to 8.
2847 * params.def (early-inlining-insns): Likewise.
2849 2009-09-08 Jakub Jelinek <jakub@redhat.com>
2851 PR rtl-optimization/41239
2852 * sched-int.h (struct deps): Add last_function_call_may_noreturn field.
2853 * sched-rgn.c (deps_join): Join also last_function_call_may_noreturn
2855 * sched-deps.c (sched_analyze_insn): Prevent moving trapping insns
2856 across calls, as the calls might not always return normally.
2857 (call_may_noreturn_p): New function.
2858 (deps_analyze_insn): Update last_function_call_may_noreturn list.
2859 (init_deps): Initialize it.
2860 (remove_from_deps): Also remove calls from
2861 last_function_call_may_noreturn list.
2863 2009-09-07 Richard Henderson <rth@redhat.com>
2865 * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't assume there are
2866 more VR->OPERANDS than LHS operands. Free LHS before returning.
2868 2009-09-07 Bernd Schmidt <bernd.schmidt@analog.com>
2870 * config/bfin/bfin.md (UNSPEC_VOLATILE_STALL): New constant.
2871 (attr "addrtype"): New member "spreg".
2872 Use it if mem_spfp_address_operand is true for the address.
2873 (attr "type"): New entry "stall".
2874 (cpu_unit "load"): New.
2875 (insn_reservations "load32", "loadp", "loadi"): Add reservation of
2877 (insn_reservation "loadsp"): New.
2878 (insn_reservation "load_stall1"): New.
2879 (insn_reservation "load_stall3"): New.
2881 * config/bfin/predicates.md (const1_operand, const3_operand): New.
2882 (mem_p_address_operand): Exclude stack and frame pointer based
2884 (mem_spfp_address_operand): New; match them here.
2885 * config/bfin/bfin.c (add_sched_insns_for_speculation): New function.
2886 (bfin_reorg): Call it if scheduling insns.
2887 (bfin_gen_bundles): Remove dummy insns created by
2888 add_sched_insns_for_speculation.
2890 From Jie Zhang <jie.zhang@analog.com>:
2891 * config/bfin/bfin-protos.h (enum bfin_cpu_type, bfin_cpu_type,
2892 bfin_si_revision, bfin_workarounds): Move these ...
2893 * config/bfin/bfin.h: ... here.
2895 From Mike Frysinger <michael.frysinger@analog.com>
2896 * config/bfin/bfin-protos.h (bfin_cpu_type): Add BFIN_CPU_BF542M,
2897 BFIN_CPU_BF544M, BFIN_CPU_BF547M, BFIN_CPU_BF548M, and BFIN_CPU_BF549M.
2898 * config/bfin/bfin.c (bfin_cpus[]): Add 0.3 for bf542m, bf544m,
2899 bf547m, bf548m, and bf549m.
2900 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define __ADSPBF542M__
2901 for BFIN_CPU_BF542M, __ADSPBF544M__ for BFIN_CPU_BF544M,
2902 __ADSPBF547M__ for BFIN_CPU_BF547M, __ADSPBF548M__ for
2903 BFIN_CPU_BF548M, and __ADSPBF549M__ for BFIN_CPU_BF549M.
2904 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
2905 bf542m-none, bf544m-none, bf547m-none, bf548m-none, and bf549m-none.
2906 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
2907 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
2908 * doc/invoke.texi (Blackfin Options): Document that -mcpu now accepts
2909 bf542m, bf544m, bf547m, bf548m, and bf549m.
2911 From Jie Zhang <jie.zhang@analog.com>:
2912 * config/bfin/predicates.md (p_register_operand): New predicate.
2913 (dp_register_operand): New predicate.
2914 * config/bfin/bfin-protos.h (WA_05000074): Define.
2915 (ENABLE_WA_05000074): Define.
2916 * config/bfin/bfin.c (bfin_cpus[]): Add WA_05000074 for all cpus.
2917 (bfin_gen_bundles): Put dsp32shiftimm instruction in slot[0].
2918 * config/bfin/bfin.md (define_attr type): Add dsp32shiftimm.
2919 (define_attr addrtype): Allow load/store register to be P register.
2920 (define_attr storereg): New.
2921 (define_cpu_unit anomaly_05000074): New.
2922 (define_insn_reservation dsp32shiftimm): New.
2923 (define_insn_reservation dsp32shiftimm_anomaly_05000074): New.
2924 (define_insn_reservation loadp): Cannot use slot2.
2925 (define_insn_reservation loadsp): Cannot use slot2.
2926 (define_insn_reservation storep): Cannot use slot2. Does not
2927 apply when working around 05000074.
2928 (define_insn_reservation storep_anomaly_05000074): New.
2929 (define_insn_reservation storei): Does not apply when working
2931 (define_insn_reservation storei_anomaly_05000074): New.
2932 (define_attr length): Add dsp32shiftimm case.
2933 (define_insn movsi_insn32, movsi_insv, ashlsi3_insn, ashrsi3,
2934 ror_one, rol_one, lshrsi3, lshrpdi3, ashrpdi3, movhiv2hi_low,
2935 movhiv2hi_high, composev2hi, packv2hi, movv2hi_hi,
2936 ssashiftv2hi3, ssashifthi3, ssashiftsi3, lshiftv2hi3, lshifthi3):
2937 Set type as dsp32shiftimm for dsp32shiftimm alternatives.
2939 2009-09-07 Martin Jambor <mjambor@suse.cz>
2942 * tree-sra.c (create_artificial_child_access): Return NULL if
2943 build_ref_for_offset fails.
2944 (propagate_subacesses_accross_link): Allow build_ref_for_offset
2945 and create_artificial_child_access to fail.
2947 2009-09-06 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
2950 * unwind-dw2.c (uw_init_context_1): Mark noinline.
2951 * config/ia64/unwind-ia64.c (uw_init_context_1): Likewise.
2952 * config/xtensa/unwind-dw2-xtensa.c (uw_init_context_1): Likewise.
2954 2009-09-07 Bernd Schmidt <bernd.schmidt@analog.com>
2956 * config/bfin/bfin.c (bfin_optimize_loop): When creating a new basic
2957 block, ensure it has an exit edge. Emit a barrier after a jump.
2959 2009-09-07 Nick Clifton <nickc@redhat.com>
2961 * gcc.c (this_is_linker_script): New variable. Like
2962 this_is_library_file but for the %T constructor.
2963 (end_going_arg): If this_is_linker_script is set then locate the
2964 script and insert a --script switch before it
2965 (do_spec_2): Initialise this_is_linker_script.
2966 (do_spec_1): Likewise. Handle %T construct.
2967 (eval_spec_function): Preserve this_is_linker_script.
2968 * doc/invoke.texi: Document %T construct in spec files.
2969 * config/m32c/m32c.h (LIB_SPEC): Use it.
2971 2009-09-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2973 * rtl.h (PREFETCH_SCHEDULE_BARRIER_P): New macro.
2974 * sched-deps.c (sched_analyze_2): Make prefetches a hard barrier
2975 when volatile flag is set.
2976 * doc/rtl.texi (PREFETCH_SCHEDULE_BARRIER_P): Add documentation pieces.
2978 2009-09-06 Eric Botcazou <ebotcazou@adacore.com>
2981 * combine-stack-adj.c (try_apply_stack_adjustment): Handle stores.
2982 (combine_stack_adjustments_for_block): Allow insns between stack
2983 adjustments and stores with corresponding pre-(dec|inc)rement or
2984 pre-modify operation.
2986 2009-09-06 Jakub Jelinek <jakub@redhat.com>
2989 * combine-stack-adj.c (struct csa_memlist): Rename to...
2990 (struct csa_reflist): ... this. Rename mem field to ref.
2991 (free_csa_memlist): Rename to...
2992 (free_csa_reflist): ... this.
2993 (record_one_stack_memref): Rename to...
2994 (record_one_stack_ref): ... this. Handle also REG_P.
2995 (try_apply_stack_adjustment): Handle also REG_P.
2996 (struct record_stack_memrefs_data): Rename to...
2997 (struct record_stack_refs_data): ... this. Rename memlist field to
2999 (record_stack_memrefs): Rename to...
3000 (record_stack_refs): ... this. For DEBUG_INSNs keep traversing
3001 subexpressions instead of failing when a MEM contains SP references.
3002 For SP itself in DEBUG_INSNs queue it also onto reflist chain.
3003 (combine_stack_adjustments_for_block): Adjust for mem to ref renaming.
3005 2009-09-06 Richard Guenther <rguenther@suse.de>
3008 * tree.c (build_array_type): Do not record types marked
3009 with structural equality in the canonical type hashtable.
3011 2009-09-06 Richard Guenther <rguenther@suse.de>
3014 * tree-ssa-alias.c (refs_may_alias_p_1): Bail out for function decls.
3016 2009-09-05 Richard Guenther <rguenther@suse.de>
3019 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Use the correct type.
3021 2009-09-05 Richard Guenther <rguenther@suse.de>
3024 * tree-ssa-operands.c (get_tmr_operands): Pass through opf_no_vops.
3026 2009-09-05 Richard Guenther <rguenther@suse.de>
3029 * tree-ssa.c (useless_type_conversion_p): Drop qualifiers
3030 before comparing function argument types.
3032 2009-09-05 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3035 * config/i386/mingw-w64.h (ASM_SPEC): Pass -v instead of -V to
3038 2009-09-04 Uros Bizjak <ubizjak@gmail.com>
3041 2009-08-18 Uros Bizjak <ubizjak@gmail.com>
3043 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn
3044 locators before emit_insn is called.
3046 2009-09-04 Vladimir Makarov <vmakarov@redhat.com>
3049 * ira.c (update_equiv_reg): Revert my previous patch for the PR.
3050 * reginfo.c (resize_reg_info): Call allocate_reg_info if necessary.
3051 (reginfo_init): Don't call allocate_reg_info.
3053 2009-09-04 Uros Bizjak <ubizjak@gmail.com>
3056 * config/alpha/alpha.c (alpha_does_function_need_gp): Use
3057 NONDEBUG_INSN_P instead of INSN_P.
3059 2009-09-04 Alexandre Oliva <aoliva@redhat.com>
3062 * tree-vect-stmts.c (vect_stmt_relevant_p): Skip debug uses.
3064 2009-09-04 Alexandre Oliva <aoliva@redhat.com>
3067 * config/arm/vfp.md (*cmpdf_split_vfp): Fix src mode in the second
3068 pattern of the split.
3070 2009-09-04 Alexandre Oliva <aoliva@redhat.com>
3072 * toplev.c (process_options): Move setter of flag_var_tracking
3073 before other tests that depend on it. Move down setter of
3074 flag_rename_registers. Don't enable var-tracking-assignments
3075 by default if selective scheduling is enabled. Warn if both
3078 2009-09-04 Alexandre Oliva <aoliva@redhat.com>
3080 * var-tracking.c (dv_is_decl_p): Adjust NULL behavior to match
3081 comment. Use switch statement to catch overlaps between rtx
3082 and tree codes. Accept FUNCTION_DECLs in addition to those in...
3083 (IS_DECL_CODE): ... here. Remove.
3084 (check_value_is_not_decl): Remove.
3085 (dv_from_decl, dv_from_value): Check after conversion.
3087 2009-09-04 Richard Guenther <rguenther@suse.de>
3090 * (cgraph_finalize_compilation_unit): Move finalizing aliases
3091 after emitting tunks. Move emitting thunks and ctors from ...
3092 (cgraph_optimize): ... here. Remove redundant
3093 cgraph_analyze_functions.
3094 * varasm.c (find_decl_and_mark_needed): Remove no longer
3096 (finish_aliases_1): Adjust check for thunk aliases.
3098 2009-09-04 Daniel Gutson <dgutson@codesourcery.com>
3100 * config/arm/arm.md (ctzsi2): Added braces
3101 to avoid warning that broke booststrap.
3103 2009-09-04 Martin Jambor <mjambor@suse.cz>
3105 PR tree-optimization/41112
3106 * tree-sra.c (build_ref_for_offset_1): Signal that we cannot
3107 handle variable-bounded arrays.
3108 (expr_with_var_bounded_array_refs_p): New function.
3109 (analyze_access_subtree): Call expr_with_var_bounded_array_refs_p.
3111 2009-09-04 Wolfgang Gellerich <gellerich@de.ibm.com>
3113 * config/s390/2097.md: Removed two incorrect bypasses.
3114 (z10_fsimpdf): Fixed latency.
3115 (z10_fhex): New insn_reservation.
3116 (z10_floaddf): Fixed latency.
3117 (z10_floadsf): Fixed latency.
3118 (z10_ftrunctf): Fixed latency.
3119 (z10_ftruncdf): Fixed latency.
3120 * config/s390/s390.c (z10_cost): Fixed values.
3121 (s390_adjust_priority): Added z10 path.
3122 * config/s390/s390.md (type): Added fhex.
3123 (*mov<mode>_64dfp): Updated type attribute.
3124 (*mov<mode>_64): Updated type attribute.
3125 (*mov<mode>_31): Updated type attribute.
3126 (*mov<mode>"): Likewise.
3127 * config/s390/2084.md (x_fsimpdf): Updated condition.
3129 2009-09-04 Andreas Krebbel <krebbel1@de.ibm.com>
3131 * config/s390/s390.md ("*fmadd<mode>", "*fmsub<mode>"): Enable mem
3132 RTXs in the predicate for operand 1.
3134 2009-09-03 Daniel Gutson <dgutson@codesourcery.com>
3136 * config/arm/arm.md (UNSPEC_RBIT): New constant.
3137 (rbitsi2): New insn.
3138 (ctzsi2): New expand.
3139 * config/arm/arm.h (CTZ_DEFINED_VALUE_AT_ZERO): New macro.
3141 2009-09-03 Martin Jambor <mjambor@suse.cz>
3143 * tree-sra.c (duplicate_expr_for_different_base): Removed.
3144 (create_artificial_child_access): Use build_ref_for_offset instead
3145 of duplicate_expr_for_different_base.
3146 (propagate_subacesses_accross_link): Likewise.
3148 2009-09-03 Richard Sandiford <rdsandiford@googlemail.com>
3150 * config/mips/mips.c (USEFUL_INSN_P): Use NONDEBUG_INSN_P instead
3152 (mips16e_collect_argument_saves): Skip debug instructions.
3153 (mips_74k_agen_init): Use CALL_P || JUMP_P instead of !NONJUMP_INSN_P.
3154 (mips16_lay_out_constants): Use USEFUL_INSN_P instead of INSN_P.
3155 (r10k_insert_cache_barriers): Likewise.
3156 (mips_reorg_process_insns): Likewise.
3158 2009-09-03 Vladimir Makarov <vmakarov@redhat.com>
3161 * ira.c (update_equiv_reg): Remove check on class likely spill.
3163 2009-09-03 Jakub Jelinek <jakub@redhat.com>
3166 * dwarf2out.c (loc_descriptor): Don't use SUBREG_REG macro on
3167 SIGN_EXTEND or ZERO_EXTEND. Don't assume there is a REG inside of
3171 * function.c (assign_parm_find_stack_rtl): Don't set mem attributes on
3172 the stack slot if it is passed by invisible reference.
3173 * var-tracking.c (vt_add_function_parameters): Handle arguments passed
3174 by invisible reference.
3176 2009-09-03 Bernd Schmidt <bernd.schmidt@analog.com>
3178 * config/bfin/linux.h (TARGET_SUPPORTS_SYNC_CALLS): Define to 1.
3179 * config/bfin/uclinux.h (TARGET_SUPPORTS_SYNC_CALLS): Define to 1.
3180 * config/bfin/bfin.h (TARGET_SUPPORTS_SYNC_CALLS): Provide default of
3182 * config/bfin/sync.md: New file.
3183 * config/bfin/bfin.md: Include it.
3184 (UNSPEC_ATOMIC): New.
3185 (UNSPEC_ONES): Provide a unique number.
3187 From Jie Zhang <jie.zhang@analog.com>:
3188 * config/bfin/bfin.c (ret_regs): New.
3189 (must_save_fp_p): Don't return true because of frame_pointer_needed.
3190 (must_save_rets_p): New.
3191 (n_regs_saved_by_prologue): Use must_save_rets_p instead of
3192 current_function_is_leaf.
3193 (do_link): Likewise.
3194 (do_unlink): Likewise.
3195 (expand_interrupt_handler_prologue): Use ret_regs array.
3196 (expand_interrupt_handler_epilogue): Use ret_regs array and
3197 pass return register to gen_return_internal.
3198 (bfin_expand_epilogue): Pass return register to
3199 gen_return_internal.
3200 (bfin_expand_call): Explicitly clobber RETS.
3201 * config/bfin/bfin.h (FUNCTION_RETURN_REGISTERS): Define.
3202 * config/bfin/bfin.md (call_symbol_fdpic, call_value_symbol_fdpic,
3203 call_insn_fdpic, call_value_insn_fdpic, call_symbol,
3204 call_value_symbol, call_insn, call_value_insn): Explicitly clobber
3206 (return_internal): Take a reg rtx rather than the register number.
3208 2009-09-03 H.J. Lu <hongjiu.lu@intel.com>
3210 * tree-parloops.c (parallelize_loops): Cast to HOST_WIDE_INT
3211 when comparing against estimated_loop_iterations_int return.
3213 2009-09-03 Richard Guenther <rguenther@suse.de>
3215 * dwarf2out.c (dwarf2out_do_cfi_asm): Remove check of
3216 eh_personality_libfunc.
3218 2009-09-03 Razya Ladelsky <razya@il.ibm.com>
3220 * tree-parloops.c (separate_decls_in_region): Add space.
3222 2009-09-03 Razya Ladelsky <razya@il.ibm.com>
3224 * tree-parloops.c (separate_decls_in_region): Change the condition
3225 checking if there are reductions in the loop.
3227 2009-09-03 Razya Ladelsky <razya@il.ibm.com>
3229 PR tree-optimization/38275
3230 * tree-parloops.c (parallelize_loops): Replace profitability condition
3231 for expected number of iterations.
3233 2009-09-03 Alexandre Oliva <aoliva@redhat.com>
3235 * doc/invoke.texi (BUILD_CONFIG): Document --with-build-config.
3236 (bootstrap-debug): Explain conditions in which it becomes default.
3237 (bootstrap-debug-big): Rather than duplicate bootstrap-debug,
3240 2009-09-03 Namhyung Kim <namhyung@gmail.com>
3242 * doc/invoke.texi (Optimize Options): Move
3243 -finline-small-functions to the -O2 list.
3245 2009-09-03 Alexandre Oliva <aoliva@redhat.com>
3247 * toplev.c (process_options): Enable var-tracking-assignments
3248 by default if var-tracking is enabled.
3250 2009-09-02 David Daney <ddaney@caviumnetworks.com>
3252 * cfgbuild.c (find_bb_boundaries): Split blocks containing a
3254 * emit-rtl.c (prev_nonnote_insn_bb): New function.
3255 * rtl.h (prev_nonnote_insn_bb): Declare it.
3257 2009-09-03 Diego Novillo <dnovillo@google.com>
3259 * cgraph.c (cgraph_node_for_decl): New.
3260 * cgraph.h (cgraph_node_for_decl): Declare.
3261 * tree.c (host_integerp): Return 0 if T is NULL.
3263 2009-09-03 Diego Novillo <dnovillo@google.com>
3265 * tree.h (struct alias_pair): Move from varasm.c.
3266 (alias_pairs): Likewise.
3267 (TYPE_MAXVAL): Define.
3268 (TYPE_MINVAL): Define.
3269 (iterative_hash_host_wide_int): Declare.
3270 (remove_unreachable_alias_pairs): Declare.
3271 * tree-pass.h (pass_ipa_free_lang_data): Declare.
3272 * diagnostic.c (default_diagnostic_starter): Make extern.
3273 (default_diagnostic_finalizer): Make extern.
3274 * diagnostic.h (default_diagnostic_starter): Declare.
3275 (default_diagnostic_finalizer): Declare.
3276 (default_tree_printer): Declare.
3277 * toplev.c (default_tree_printer): Make extern.
3279 2009-09-03 Richard Guenther <rguenther@suse.de>
3280 Diego Novillo <dnovillo@google.com>
3282 * cgraph.c (cgraph_add_new_function): Remove gimplification.
3283 * cgraphunit.c (cgraph_expand_function): Do not emit
3284 associated thunks from here.
3285 (cgraph_emit_thunks): New.
3286 (cgraph_optimize): Call it.
3287 Return if any IPA pass finds an error.
3288 * varasm.c (finish_aliases_1): Ignore errorneous aliases used
3291 2009-09-03 Simon Baldwin <simonb@google.com>
3292 Rafael Espindola <espindola@google.com>
3293 Richard Guenther <rguenther@suse.de>
3294 Doug Kwan <dougkwan@google.com>
3295 Diego Novillo <dnovillo@google.com>
3297 * tree.c: Include tree-pass.h, langhooks-def.h,
3298 diagnostic.h, cgraph.h, timevar.h, except.h and debug.h.
3299 (free_lang_data_in_type): New.
3300 (need_assembler_name_p): New.
3301 (free_lang_data_in_block): New.
3302 (free_lang_data_in_decl): New.
3303 (struct free_lang_data_d): New.
3304 (add_tree_to_fld_list): New.
3305 (find_decls_types_r): New.
3306 (get_eh_types_for_runtime): New.
3307 (find_decls_types_in_eh_region): New.
3308 (find_decls_types_in_node): New.
3309 (find_decls_types_in_var): New.
3310 (free_lang_data_in_cgraph): New.
3311 (free_lang_data): New.
3312 (gate_free_lang_data): New.
3313 (pass_ipa_free_lang_data): New.
3315 2009-09-03 Diego Novillo <dnovillo@google.com>
3317 * timevar.def (TV_IPA_FREE_LANG_DATA): Define.
3318 * langhooks.h (struct lang_hooks): Add field free_lang_data.
3319 (lang_hooks): Remove const qualifier.
3320 * ipa.c (cgraph_remove_unreachable_nodes): Call
3321 remove_unreachable_alias_pairs.
3322 * except.c (add_type_for_runtime): Check if TYPE has
3323 already been converted.
3324 (lookup_type_for_runtime): Likewise.
3325 (check_handled): Handle converted types.
3326 * varasm.c (remove_unreachable_alias_pairs): New.
3327 * gimple.c: Include demangle.h.
3328 (gimple_decl_printable_name): New.
3329 (gimple_fold_obj_type_ref): New.
3330 * gimple.h (gimple_decl_printable_name): Declare.
3331 (gimple_fold_obj_type_ref): Declare.
3332 * passes.c (init_optimization_passes): Add pass
3333 pass_ipa_free_lang_data.
3334 * langhooks-def.h (LANG_HOOKS_FREE_LANG_DATA): Define.
3335 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_FREE_LANG_DATA.
3337 2009-09-03 Diego Novillo <dnovillo@google.com>
3339 * c-lang.c (lang_hooks): Remove const qualifier.
3341 2009-09-02 Loren James Rittle <ljrittle@acm.org>
3343 * doc/install.texi (*-*-freebsd*): Update target information.
3345 2009-09-02 Anatoly Sokolov <aesok@post.ru>
3347 * hard-reg-set.h (call_fixed_regs): Remove.
3348 * reginfo.c (call_fixed_regs): Remove.
3349 (init_reg_sets_1): Remove initialization of call_fixed_regs.
3350 (globalize_reg): Don't use call_fixed_regs.
3351 * caller-save.c (init_caller_save): Use call_fixed_reg_set instead of
3354 2009-09-01 Michael Matz <matz@suse.de>
3356 * expr.h (emit_storent_insn, expand_expr_real_1,
3357 expand_expr_real_2): Declare.
3358 * expr.c (emit_storent_insn, expand_expr_real_1,
3359 expand_expr_real_2): Export.
3360 (store_expr): Setting and evaluating dont_return_target is useless.
3361 (expand_expr_real_1, <case GOTO_EXPR, RETURN_EXPR, SWITCH_EXPR,
3362 LABEL_EXPR and ASM_EXPR>): Move to gcc_unreachable.
3363 * except.c (expand_resx_expr): Rename to ...
3364 (expand_resx_stmt): ... this. Rewrite to take gimple statement.
3365 * except.h (expand_resx_stmt): Declare.
3366 * stmt.c: Add include gimple.h
3367 (expand_asm_expr): Rename to ...
3368 (expand_asm_stmt): ... this. Rewrite to take gimple statement.
3369 (expand_case): Rewrite to take gimple statement.
3370 * tree.h (expand_asm_stmt): Declare.
3371 (expand_case): Change prototype.
3372 * Makefile.in (stmt.o): Depend on gimple.h.
3373 * builtins.c (expand_builtin_synchronize): Build gimple asm
3374 statement, not an ASM_EXPR.
3375 * cfgexpand.c (gimple_cond_pred_to_tree, set_expr_location_r,
3376 gimple_to_tree, release_stmt_tree): Remove.
3377 (expand_gimple_cond): Don't call gimple_cond_pred_to_tree or
3378 ggc_free, but hold comparison code and operands separately.
3379 Call jumpif_1 and jumpifnot_1 instead of jumpif and jumpifnot.
3380 (expand_call_stmt, expand_gimple_stmt_1,
3381 expand_gimple_stmt): New helpers.
3382 (expand_gimple_tailcall): Don't call gimple_to_tree, expand_expr_stmt,
3383 release_stmt_tree. Call expand_gimple_stmt instead.
3384 (expand_gimple_basic_block): Ditto.
3386 * calls.c (emit_call_1): Don't look at EH regions here, make
3387 fntree parameter useless.
3388 (expand_call): New local rettype for TREE_TYPE(exp), use it
3389 throughout. Remove local p, use addr instead.
3390 Don't look at EH regions here.
3392 2009-09-02 Vladimir Makarov <vmakarov@redhat.com>
3394 * doc/invoke.texi (-fsched-pressure): Document it.
3395 (-fsched-reg-pressure-heuristic): Remove it.
3397 * reload.c (ira.h): Include.
3398 (find_reloads): Add choosing reload on number of small spilled
3401 * haifa-sched.c (ira.h): Include.
3402 (sched_pressure_p, sched_regno_cover_class, curr_reg_pressure,
3403 saved_reg_pressure, curr_reg_live, saved_reg_live,
3404 region_ref_regs): New variables.
3405 (sched_init_region_reg_pressure_info, mark_regno_birth_or_death,
3406 initiate_reg_pressure_info, setup_ref_regs,
3407 initiate_bb_reg_pressure_info, save_reg_pressure,
3408 restore_reg_pressure, dying_use_p, print_curr_reg_pressure): New
3410 (setup_insn_reg_pressure_info): New function.
3411 (rank_for_schedule): Add pressure checking and insn issue time.
3412 Remove comparison of insn reg weights.
3413 (ready_sort): Set insn reg pressure info.
3414 (update_register_pressure, setup_insn_max_reg_pressure,
3415 update_reg_and_insn_max_reg_pressure,
3416 sched_setup_bb_reg_pressure_info): New functions.
3417 (schedule_insn): Add code for printing and updating reg pressure info.
3418 (find_set_reg_weight, find_insn_reg_weight): Remove.
3419 (ok_for_early_queue_removal): Do nothing if pressure_only_p.
3420 (debug_ready_list): Print reg pressure info.
3421 (schedule_block): Ditto. Check insn issue time.
3422 (sched_init): Set up sched_pressure_p. Allocate and set up some
3423 reg pressure related info.
3424 (sched_finish): Free some reg pressure related info.
3425 (fix_tick_ready): Make insn always ready if pressure_p.
3426 (init_h_i_d): Don't call find_insn_reg_weight.
3427 (haifa_finish_h_i_d): Free insn reg pressure info.
3429 * ira-int.h (ira_hard_regno_cover_class, ira_reg_class_nregs,
3430 ira_memory_move_cost, ira_class_hard_regs,
3431 ira_class_hard_regs_num, ira_no_alloc_regs,
3432 ira_available_class_regs, ira_reg_class_cover_size,
3433 ira_reg_class_cover, ira_class_translate): Move to ira.h.
3435 * ira-lives.c (single_reg_class): Check mode to find how many
3436 registers are necessary for operand.
3437 (ira_implicitly_set_insn_hard_regs): New.
3439 * common.opt (fsched-pressure): New options.
3440 (fsched-reg-pressure-heuristic): Remove.
3442 * ira.c (setup_eliminable_regset): Rename to
3443 ira_setup_eliminable_regset. Make it external.
3444 (expand_reg_info): Pass cover class to setup_reg_classes.
3445 (ira): Call resize_reg_info instead of allocate_reg_info.
3447 * sched-deps.c: Include ira.h.
3448 (implicit_reg_pending_clobbers, implicit_reg_pending_uses): New.
3449 (create_insn_reg_use, create_insn_reg_set, setup_insn_reg_uses,
3450 reg_pressure_info, insn_use_p, mark_insn_pseudo_birth,
3451 mark_insn_hard_regno_birth, mark_insn_reg_birth,
3452 mark_pseudo_death, mark_hard_regno_death, mark_reg_death,
3453 mark_insn_reg_store, mark_insn_reg_clobber,
3454 setup_insn_reg_pressure_info): New.
3455 (sched_analyze_1): Update implicit_reg_pending_uses.
3456 (sched_analyze_insn): Find implicit sets, uses, clobbers of regs.
3457 Use them to create dependencies. Set insn reg uses and pressure
3458 info. Process reg_pending_uses in one place.
3459 (free_deps): Free implicit sets.
3460 (remove_from_deps): Remove implicit sets if necessary. Check
3461 implicit sets when clearing reg_last_in_use.
3462 (init_deps_global): Clear implicit_reg_pending_clobbers and
3463 implicit_reg_pending_uses.
3465 * ira.h (ira_hard_regno_cover_class, ira_reg_class_nregs,
3466 ira_memory_move_cost, ira_class_hard_regs,
3467 ira_class_hard_regs_num, ira_no_alloc_regs,
3468 ira_available_class_regs, ira_reg_class_cover_size,
3469 ira_reg_class_cover, ira_class_translate): Move from ira-int.h.
3470 (ira_setup_eliminable_regset, ira_set_pseudo_classes,
3471 ira_implicitly_set_insn_hard_regs): New prototypes.
3473 * ira-costs.c (pseudo_classes_defined_p, allocno_p,
3474 cost_elements_num): New variables.
3475 (allocno_costs, total_costs): Rename to costs and
3476 total_allocno_costs.
3477 (COSTS_OF_ALLOCNO): Rename to COSTS.
3478 (allocno_pref): Rename to pref.
3479 (allocno_pref_buffer): Rename to pref_buffer.
3480 (common_classes): Rename to regno_cover_class.
3482 (record_reg_classes): Set allocno attributes only if allocno_p.
3483 (record_address_regs): Ditto. Use COST_INDEX instead of ALLOCNO_NUM.
3484 (scan_one_insn): Use COST_INDEX and COSTS instead of ALLOCNO_NUM
3485 and COSTS_OF_ALLOCNO.
3486 (print_costs): Rename to print_allocno_costs.
3487 (print_pseudo_costs): New.
3488 (process_bb_node_for_costs): Split into 2 functions with new
3489 function process_bb_for_costs. Pass BB to process_bb_for_costs.
3490 (find_allocno_class_costs): Rename to find_costs_and_classes. Add
3491 new parameter dump_file. Use cost_elements_num instead of
3492 ira_allocnos_num. Make one iteration if preferred classes were
3493 already calculated for scheduler. Make 2 versions of code
3494 depending on allocno_p.
3495 (setup_allocno_cover_class_and_costs): Check allocno_p. Use
3496 regno_cover_class and COSTS instead of common_classes and
3498 (init_costs, finish_costs): New.
3499 (ira_costs): Set up allocno_p and cost_elements_num. Call
3500 init_costs and finish_costs.
3501 (ira_set_pseudo_classes): New.
3503 * rtl.h (allocate_reg_info): Remove.
3504 (resize_reg_info): Change return type.
3505 (reg_cover_class): New.
3506 (setup_reg_classes): Add new parameter.
3508 * sched-int.h (struct deps_reg): New member implicit_sets.
3509 (sched_pressure_p, sched_regno_cover_class): New external definitions.
3510 (INCREASE_BITS): New macro.
3511 (struct reg_pressure_data, struct reg_use_data): New.
3512 (struct _haifa_insn_data): Remove reg_weight. Add members
3513 reg_pressure, reg_use_list, reg_set_list, and
3514 reg_pressure_excess_cost_change.
3515 (struct deps): New member implicit_sets.
3516 (pressure_p): New variable.
3517 (COVER_CLASS_BITS, INCREASE_BITS): New macros.
3518 (struct reg_pressure_data, struct reg_use_data): New.
3519 (INSN_REG_WEIGHT): Remove.
3520 (INSN_REG_PRESSURE, INSN_MAX_REG_PRESSURE, INSN_REG_USE_LIST,
3521 INSN_REG_SET_LIST, INSN_REG_PRESSURE_EXCESS_COST_CHANGE): New macros.
3522 (sched_init_region_reg_pressure_info,
3523 sched_setup_bb_reg_pressure_info): New prototypes.
3525 * reginfo.c (struct reg_pref): New member coverclass.
3526 (reg_cover_class): New function.
3527 (reginfo_init, pass_reginfo_init): Move after free_reg_info.
3528 (reg_info_size): New variable.
3529 (allocate_reg_info): Make static. Setup reg_info_size.
3530 (resize_reg_info): Use reg_info_size. Return flag of resizing.
3531 (setup_reg_classes): Add a new parameter. Setup cover class too.
3533 * Makefile.in (reload.o, haifa-sched.o, sched-deps.o): Add ira.h to
3536 * sched-rgn.c (deps_join): Set up implicit_sets.
3537 (schedule_region): Set up region and basic blocks pressure
3540 * passes.c (init_optimization_passes): Move
3541 pass_subregs_of_mode_init before pass_sched.
3543 2009-09-02 Martin Jambor <mjambor@suse.cz>
3545 * tree-sra.c (struct access): New field grp_hint.
3546 (dump_access): Dump grp_hint.
3547 (sort_and_splice_var_accesses): Set grp_hint if a group is read
3549 (analyze_access_subtree): Only scalarize accesses with grp_hint set or
3550 those which have been specifically read and somehow written to.
3551 (propagate_subacesses_accross_link): Set grp_hint of right child and
3552 also possibly of the left child.
3554 2009-09-02 Jakub Jelinek <jakub@redhat.com>
3556 * tree-object-size.c (addr_object_size): Always use object_size_type
3557 0 or 2 when determining the pointer pointed object size.
3559 2009-09-02 Richard Guenther <rguenther@suse.de>
3562 2009-08-31 Richard Guenther <rguenther@suse.de>
3564 * builtins.c (fold_builtin_memory_op): Use the alias oracle
3565 to query if the memory regions for memmove overlap.
3566 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Relax the
3567 asserts on pointers, instead deal with odd trees.
3568 (ptr_derefs_may_alias_p): Likewise.
3569 (refs_may_alias_p_1): Constructor bases also never alias.
3571 2009-08-01 Christian Bruel <christian.bruel@st.com>
3574 2009-07-31 Christian Bruel <christian.bruel@st.com>
3575 * gcc/config.gcc (sh*-*-elf): test with_libgloss.
3577 2009-09-01 Alexandre Oliva <aoliva@redhat.com>
3579 * doc/invoke.texi (-fvar-tracking-assignments): New.
3580 (-fvar-tracking-assignments-toggle): New.
3581 (-fdump-final-insns=file): Mark filename as optional.
3582 (--param min-nondebug-insn-uid): New.
3583 (-gdwarf-@{version}): Mention version 4.
3584 * opts.c (common_handle_option): Accept it.
3585 * tree-vrp.c (find_assert_locations_1): Skip debug stmts.
3586 * regrename.c (regrename_optimize): Drop last. Don't count debug
3587 insns as uses. Don't reject change because of debug insn.
3588 (do_replace): Reject DEBUG_INSN as chain starter. Take base_regno
3589 from the chain starter, and check for inexact matches in DEBUG_INSNS.
3590 (scan_rtx_reg): Accept inexact matches in DEBUG_INSNs.
3591 (build_def_use): Simplify and fix the marking of DEBUG_INSNs.
3592 * sched-ebb.c (schedule_ebbs): Skip boundary debug insns.
3593 * fwprop.c (forward_propagate_and_simplify): ...into debug insns.
3594 * doc/gimple.texi (is_gimple_debug): New.
3595 (gimple_debug_bind_p): New.
3596 (is_gimple_call, gimple_assign_cast_p): End sentence with period.
3597 * doc/install.texi (bootstrap-debug): More details.
3598 (bootstrap-debug-big, bootstrap-debug-lean): Document.
3599 (bootstrap-debug-lib): More details.
3600 (bootstrap-debug-ckovw): Update.
3601 (bootstrap-time): New.
3602 * tree-into-ssa.c (mark_def_sites): Skip debug stmts.
3603 (insert_phi_nodes_for): Insert debug stmts.
3604 (rewrite_stmt): Take iterator. Insert debug stmts.
3605 (rewrite_enter_block): Adjust.
3606 (maybe_replace_use_in_debug_stmt): New.
3607 (rewrite_update_stmt): Use it.
3608 (mark_use_interesting): Return early for debug stmts.
3609 * tree-ssa-loop-im.c (rewrite_bittest): Propagate DEFs into debug
3610 stmts before replacing stmt.
3611 (move_computations_stmt): Likewise.
3612 * ira-conflicts.c (add_copies): Skip debug insns.
3613 * regstat.c (regstat_init_n_sets_and_refs): Discount debug insns.
3614 (regstat_bb_compute_ri): Skip debug insns.
3615 * tree-ssa-threadupdate.c (redirection_block_p): Skip debug stmts.
3616 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt,
3617 check_loop_closed_ssa_stmt): Skip debug stmts.
3618 * tree-tailcall.c (find_tail_calls): Likewise.
3619 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
3620 * tree.h (MAY_HAVE_DEBUG_STMTS): New.
3621 (build_var_debug_value_stat): Declare.
3622 (build_var_debug_value): Define.
3623 (target_for_debug_bind): Declare.
3624 * reload.c (find_equiv_reg): Skip debug insns.
3625 * rtlanal.c (reg_used_between_p): Skip debug insns.
3626 (side_effects_p): Likewise.
3627 (canonicalize_condition): Likewise.
3628 * ddg.c (create_ddg_dep_from_intra_loop_link): Check that non-debug
3629 insns never depend on debug insns.
3630 (create_ddg_dep_no_link): Likewise.
3631 (add_cross_iteration_register_deps): Use ANTI_DEP for debug insns.
3632 Don't add inter-loop dependencies for debug insns.
3633 (build_intra_loop_deps): Likewise.
3634 (create_ddg): Count debug insns.
3635 * ddg.h (struct ddg::num_debug): New.
3636 (num_backargs): Pair up with previous int field.
3637 * diagnostic.c (diagnostic_report_diagnostic): Skip notes on
3638 -fcompare-debug-second.
3639 * final.c (get_attr_length_1): Skip debug insns.
3640 (rest_of_clean-state): Don't dump CFA_RESTORE_STATE.
3641 * gcc.c (invoke_as): Call compare-debug-dump-opt.
3642 (driver_self_specs): Map -fdump-final-insns to
3643 -fdump-final-insns=..
3644 (get_local_tick): New.
3645 (compare_debug_dump_opt_spec_function): Test for . argument and
3646 compute output name. Compute temp output spec without flag name.
3647 Compute -frandom-seed.
3648 (OPT): Undef after use.
3649 * cfgloopanal.c (num_loop_insns): Skip debug insns.
3650 (average_num_loop_insns): Likewise.
3651 * params.h (MIN_NONDEBUG_INSN_UID): New.
3652 * gimple.def (GIMPLE_DEBUG): New.
3653 * ipa-reference.c (scan_stmt_for_static_refs): Skip debug stmts.
3654 * auto-inc-dec.c (merge_in_block): Skip debug insns.
3655 (merge_in_block): Fix whitespace.
3656 * toplev.c (flag_var_tracking): Update comment.
3657 (flag_var_tracking_assignments): New.
3658 (flag_var_tracking_assignments_toggle): New.
3659 (process_options): Don't open final insns dump file if we're not
3660 going to write to it. Compute defaults for var_tracking.
3661 * df-scan.c (df_insn_rescan_debug_internal): New.
3662 (df_uses_record): Handle debug insns.
3663 * haifa-sched.c (ready): Initialize n_debug.
3664 (contributes_to_priority): Skip debug insns.
3665 (dep_list_size): New.
3667 (rank_for_schedule): Likewise. Schedule debug insns as soon as
3668 they're ready. Disregard previous debug insns to make decisions.
3669 (queue_insn): Never queue debug insns.
3670 (ready_add, ready_remove_first, ready_remove): Count debug insns.
3671 (schedule_insn): Don't reject debug insns because of issue rate.
3672 (get_ebb_head_tail, no_real_insns_p): Skip boundary debug insns.
3673 (queue_to_ready): Skip and discount debug insns.
3674 (choose_ready): Let debug insns through.
3675 (schedule_block): Check boundary debug insns. Discount debug
3676 insns, schedule them early. Adjust whitespace.
3677 (set_priorities): Check for boundary debug insns.
3678 (add_jump_dependencies): Use dep_list_size.
3679 (prev_non_location_insn): New.
3680 (check_cfg): Use it.
3681 * tree-ssa-loop-ivopts.c (find-interesting_users): Skip debug
3683 (remove_unused_ivs): Reset debug stmts.
3684 * modulo-sched.c (const_iteration_count): Skip debug insns.
3685 (res_MII): Discount debug insns.
3686 (loop_single_full_bb_p): Skip debug insns.
3687 (sms_schedule): Likewise.
3688 (sms_schedule_by_order): Likewise.
3689 (ps_has_conflicts): Likewise.
3690 * caller-save.c (refmarker_fn): New.
3691 (save_call_clobbered_regs): Replace regs with saved mem in
3693 (mark_referenced_regs): Take pointer, mark and arg. Adjust.
3694 Call refmarker_fn mark for hardregnos.
3695 (mark_reg_as_referenced): New.
3696 (replace_reg_with_saved_mem): New.
3697 * ipa-pure-const.c (check_stmt): Skip debug stmts.
3698 * cse.c (cse_insn): Canonicalize debug insns. Skip them when
3700 (cse_extended_basic_block): Skip debug insns.
3701 (count_reg_usage): Likewise.
3702 (is_dead_reg): New, split out of...
3703 (set_live_p): ... here.
3704 (insn_live_p): Use it for debug insns.
3705 * tree-stdarg.c (check_all_va_list_escapes): Skip debug stmts.
3706 (execute_optimize_stdarg): Likewise.
3707 * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
3708 * tree-ssa-propagate.c (substitute_and_fold): Don't regard
3709 changes in debug stmts as changes.
3710 * sel-sched.c (moving_insn_creates_bookkeeping_block_p): New.
3711 (moveup_expr): Don't move across debug insns. Don't move
3712 debug insn if it would create a bookkeeping block.
3713 (moveup_expr_cached): Don't use cache for debug insns that
3714 are heads of blocks.
3715 (compute_av_set_inside_bb): Skip debug insns.
3716 (sel_rank_for_schedule): Schedule debug insns first. Remove
3718 (block_valid_for_bookkeeping_p); Support lax searches.
3719 (create_block_for_bookkeeping): Adjust block numbers when
3720 encountering debug-only blocks.
3721 (find_place_for_bookkeeping): Deal with debug-only blocks.
3722 (generate_bookkeeping_insn): Accept no place to insert.
3723 (remove_temp_moveop_nops): New argument full_tidying.
3724 (prepare_place_to_insert): Deal with debug insns.
3725 (advance_state_on_fence): Debug insns don't start cycles.
3726 (update_boundaries): Take fence as argument. Deal with
3728 (schedule_expr_on_boundary): No full_tidying on debug insns.
3729 (fill_insns): Deal with debug insns.
3730 (track_scheduled_insns_and_blocks): Don't count debug insns.
3731 (need_nop_to_preserve_insn_bb): New, split out of...
3732 (remove_insn_from_stream): ... this.
3733 (fur_orig_expr_not_found): Skip debug insns.
3734 * rtl.def (VALUE): Move up.
3736 * tree-ssa-sink.c (all_immediate_uses_same_place): Skip debug stmts.
3737 (nearest_common_dominator_of_uses): Take debug_stmts argument.
3738 Set it if debug stmts are found.
3739 (statement_sink_location): Skip debug stmts. Propagate
3740 moving defs into debug stmts.
3741 * ifcvt.c (first_active_insn): Skip debug insns.
3742 (last_active_insns): Likewise.
3743 (cond_exec_process_insns): Likewise.
3744 (noce_process_if_block): Likewise.
3745 (check_cond_move_block): Likewise.
3746 (cond_move_convert_if_block): Likewise.
3747 (block_jumps_and_fallthru_p): Likewise.
3748 (dead_or_predicable): Likewise.
3749 * dwarf2out.c (debug_str_hash_forced): New.
3750 (find_AT_string): Add comment.
3751 (gen_label_for_indirect_string): New.
3752 (get_debug_string_label): New.
3753 (AT_string_form): Use it.
3754 (mem_loc_descriptor): Handle non-TLS symbols. Handle MINUS , DIV,
3755 MOD, AND, IOR, XOR, NOT, ABS, NEG, and CONST_STRING. Accept but
3756 discard COMPARE, IF_THEN_ELSE, ROTATE, ROTATERT, TRUNCATE and
3757 several operations that cannot be represented with DWARF opcodes.
3758 (loc_descriptor): Ignore SIGN_EXTEND and ZERO_EXTEND. Require
3759 dwarf_version 4 for DW_OP_implicit_value and DW_OP_stack_value.
3760 (dwarf2out_var_location): Take during-call mark into account.
3761 (output_indirect_string): Update comment. Output if there are
3762 label and references.
3763 (prune_indirect_string): New.
3764 (prune_unused_types): Call it if debug_str_hash_forced.
3765 More in dwarf2out.c, from Jakub Jelinek <jakub@redhat.com>:
3766 (dw_long_long_const): Remove.
3767 (struct dw_val_struct): Change val_long_long type to rtx.
3768 (print_die, attr_checksum, same_dw_val_p, loc_descriptor): Adjust for
3769 val_long_long change to CONST_DOUBLE rtx from a long hi/lo pair.
3770 (output_die): Likewise. Use HOST_BITS_PER_WIDE_INT size of each
3771 component instead of HOST_BITS_PER_LONG.
3772 (output_loc_operands): Likewise. For const8* assert
3773 HOST_BITS_PER_WIDE_INT rather than HOST_BITS_PER_LONG is >= 64.
3774 (output_loc_operands_raw): For const8* assert HOST_BITS_PER_WIDE_INT
3775 rather than HOST_BITS_PER_LONG is >= 64.
3776 (add_AT_long_long): Remove val_hi and val_lo arguments, add
3778 (size_of_die): Use HOST_BITS_PER_WIDE_INT size multiplier instead of
3779 HOST_BITS_PER_LONG for dw_val_class_long_long.
3780 (add_const_value_attribute): Adjust add_AT_long_long caller. Don't
3781 handle TLS SYMBOL_REFs. If CONST wraps a constant, tail recurse.
3782 (dwarf_stack_op_name): Handle DW_OP_implicit_value and
3784 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
3785 Handle DW_OP_implicit_value.
3786 (extract_int): Move prototype earlier.
3787 (mem_loc_descriptor): For SUBREG punt if inner
3788 mode size is wider than DWARF2_ADDR_SIZE. Handle SIGN_EXTEND
3789 and ZERO_EXTEND by DW_OP_shl and DW_OP_shr{a,}. Handle
3790 EQ, NE, GT, GE, LT, LE, GTU, GEU, LTU, LEU, SMIN, SMAX, UMIN,
3791 UMAX, SIGN_EXTRACT, ZERO_EXTRACT.
3792 (loc_descriptor): Compare mode size with DWARF2_ADDR_SIZE
3793 instead of Pmode size.
3794 (loc_descriptor): Add MODE argument. Handle CONST_INT, CONST_DOUBLE,
3795 CONST_VECTOR, CONST, LABEL_REF and SYMBOL_REF if mode != VOIDmode,
3796 attempt to handle other expressions. Don't handle TLS SYMBOL_REFs.
3797 (concat_loc_descriptor, concatn_loc_descriptor,
3798 loc_descriptor_from_tree_1): Adjust loc_descriptor callers.
3799 (add_location_or_const_value_attribute): Likewise. For single
3800 location loc_lists attempt to use add_const_value_attribute
3801 for constant decls. Add DW_AT_const_value even if
3802 NOTE_VAR_LOCATION is VAR_LOCATION with CONSTANT_P or CONST_STRING
3804 * cfgbuild.c (inside_basic_block_p): Handle debug insns.
3805 (control_flow_insn_p): Likewise.
3806 * tree-parloops.c (eliminate_local_variables_stmt): Handle debug stmt.
3807 (separate_decls_in_region_debug_bind): New.
3808 (separate_decls_in_region): Process debug bind stmts afterwards.
3809 * recog.c (verify_changes): Handle debug insns.
3810 (extract_insn): Likewise.
3811 (peephole2_optimize): Skip debug insns.
3812 * dse.c (scan_insn): Skip debug insns.
3813 * sel-sched-ir.c (return_nop_to_pool): Take full_tidying argument.
3815 (setup_id_for_insn): Handle debug insns.
3816 (maybe_tidy_empty_bb): Adjust whitespace.
3817 (tidy_control_flow): Skip debug insns.
3818 (sel_remove_insn): Adjust for debug insns.
3819 (sel_estimate_number_of_insns): Skip debug insns.
3820 (create_insn_rtx_from_pattern): Handle debug insns.
3821 (create_copy_of_insn_rtx): Likewise.
3822 * sel-sched-.h (sel_bb_end): Declare.
3823 (sel_bb_empty_or_nop_p): New.
3824 (get_all_loop_exits): Use it.
3825 (_eligible_successor_edge_p): Likewise.
3826 (return_nop_to_pool): Adjust.
3827 * tree-eh.c (tre_empty_eh_handler_p): Skip debug stmts.
3828 * ira-lives.c (process_bb_node_lives): Skip debug insns.
3829 * gimple-pretty-print.c (dump_gimple_debug): New.
3830 (dump_gimple_stmt): Use it.
3831 (dump_bb_header): Skip gimple debug stmts.
3832 * regmove.c (optimize_reg_copy_1): Discount debug insns.
3833 (fixup_match_2): Likewise.
3834 (regmove_backward_pass): Likewise. Simplify combined
3835 replacement. Handle debug insns.
3836 * function.c (instantiate_virtual_regs): Handle debug insns.
3837 * function.h (struct emit_status): Add x_cur_debug_insn_uid.
3838 * print-rtl.h: Include cselib.h.
3839 (print_rtx): Print VALUEs. Split out and recurse for VAR_LOCATIONs.
3840 * df.h (df_inns_rescan_debug_internal): Declare.
3841 * gcse.c (alloc_hash_table): Estimate n_insns.
3842 (cprop_insn): Don't regard debug insns as changes.
3843 (bypass_conditional_jumps): Skip debug insns.
3844 (one_pre_gcse_pass): Adjust.
3845 (one_code_hoisting_pass): Likewise.
3846 (compute_ld_motion_mems): Skip debug insns.
3847 (one_cprop_pass): Adjust.
3848 * tree-if-conv.c (tree_if_convert_stmt): Reset debug stmts.
3849 (if_convertible_stmt_p): Handle debug stmts.
3850 * init-regs.c (initialize_uninitialized_regs): Skip debug insns.
3851 * tree-vect-loop.c (vect_is_simple_reduction): Skip debug stmts.
3852 * ira-build.c (create_bb_allocnos): Skip debug insns.
3853 * tree-flow-inline.h (has_zero_uses): Discount debug stmts.
3854 (has_single_use): Likewise.
3855 (single_imm_use): Likewise.
3856 (num_imm_uses): Likewise.
3857 * tree-ssa-phiopt.c (empty_block_p): Skip debug stmts.
3858 * tree-ssa-coalesce.c (build_ssa_conflict_graph): Skip debug stmts.
3859 (create_outofssa_var_map): Likewise.
3860 * lower-subreg.c (adjust_decomposed_uses): New.
3861 (resolve_debug): New.
3862 (decompose_multiword_subregs): Use it.
3863 * tree-dfa.c (find_referenced_vars): Skip debug stmts.
3864 * emit-rtl.c: Include params.h.
3865 (cur_debug_insn_uid): Define.
3866 (set_new_first_and_last_insn): Set cur_debug_insn_uid too.
3867 (copy_rtx_if_shared_1): Handle debug insns.
3868 (reset_used_flags): Likewise.
3869 (set_used_flags): LIkewise.
3870 (get_max_insn_count): New.
3871 (next_nondebug_insn): New.
3872 (prev_nondebug_insn): New.
3873 (make_debug_insn_raw): New.
3874 (emit_insn_before_noloc): Handle debug insns.
3875 (emit_jump_insn_before_noloc): Likewise.
3876 (emit_call_insn_before_noloc): Likewise.
3877 (emit_debug_insn_before_noloc): New.
3878 (emit_insn_after_noloc): Handle debug insns.
3879 (emit_jump_insn_after_noloc): Likewise.
3880 (emit_call_insn_after_noloc): Likewise.
3881 (emit_debug_insn_after_noloc): Likewise.
3882 (emit_insn_after): Take loc from earlier non-debug insn.
3883 (emit_jump_insn_after): Likewise.
3884 (emit_call_insn_after): Likewise.
3885 (emit_debug_insn_after_setloc): New.
3886 (emit_debug_insn_after): New.
3887 (emit_insn_before): Take loc from later non-debug insn.
3888 (emit_jump_insn_before): Likewise.
3889 (emit_call_insn_before): Likewise.
3890 (emit_debug_insn_before_setloc): New.
3891 (emit_debug_insn_before): New.
3892 (emit_insn): Handle debug insns.
3893 (emit_debug_insn): New.
3894 (emit_jump_insn): Handle debug insns.
3895 (emit_call_insn): Likewise.
3897 (init_emit): Take min-nondebug-insn-uid into account.
3898 Initialize cur_debug_insn_uid.
3899 (emit_copy_of_insn_after): Handle debug insns.
3900 * cfgexpand.c (gimple_assign_rhs_to_tree): Do not overwrite
3901 location of single rhs in place.
3902 (maybe_dump_rtl_for_gimple_stmt): Dump lineno.
3903 (floor_sdiv_adjust): New.
3904 (cell_sdiv_adjust): New.
3905 (cell_udiv_adjust): New.
3906 (round_sdiv_adjust): New.
3907 (round_udiv_adjust): New.
3908 (wrap_constant): Moved from cselib.
3909 (unwrap_constant): New.
3910 (expand_debug_expr): New.
3911 (expand_debug_locations): New.
3912 (expand_gimple_basic_block): Drop hiding redeclaration. Expand
3914 (gimple_expand_cfg): Expand debug locations.
3915 * cselib.c: Include tree-pass.h.
3916 (struct expand_value_data): New.
3917 (cselib_record_sets_hook): New.
3918 (PRESERVED_VALUE_P, LONG_TERM_PRESERVED_VALUE_P): New.
3919 (cselib_clear_table): Move, and implemnet in terms of...
3920 (cselib_reset_table_with_next_value): ... this.
3921 (cselib_get_next_unknown_value): New.
3922 (discard_useless_locs): Don't discard preserved values.
3923 (cselib_preserve_value): New.
3924 (cselib_preserved_value_p): New.
3925 (cselib_preserve_definitely): New.
3926 (cselib_clear_preserve): New.
3927 (cselib_preserve_only_values): New.
3928 (new_cselib_val): Take rtx argument. Dump it in details.
3929 (cselib_lookup_mem): Adjust.
3930 (expand_loc): Take regs_active in struct. Adjust. Silence
3931 dumps unless details are requested.
3932 (cselib_expand_value_rtx_cb): New.
3933 (cselib_expand_value_rtx): Rename and reimplment in terms of...
3934 (cselib_expand_value_rtx_1): ... this. Adjust. Silence dumps
3935 without details. Copy more subregs. Try to resolve values
3936 using a callback. Wrap constants.
3937 (cselib_subst_to_values): Adjust.
3938 (cselib_log_lookup): New.
3939 (cselib_lookup): Call it.
3940 (cselib_invalidate_regno): Don't count preserved values as useless.
3941 (cselib_invalidate_mem): Likewise.
3942 (cselib_record_set): Likewise.
3943 (struct set): Renamed to cselib_set, moved to cselib.h.
3944 (cselib_record_sets): Adjust. Call hook.
3945 (cselib_process_insn): Reset table when it would be cleared.
3946 (dump_cselib_val): New.
3947 (dump_cselib_table): New.
3948 * tree-cfgcleanup.c (tree_forwarded_block_p): Skip debug stmts.
3949 (remove_forwarder_block): Support moving debug stmts.
3950 * cselib.h (cselib_record_sets_hook): Declare.
3951 (cselib_expand_callback): New type.
3952 (cselib_expand_value_rtx_cb): Declare.
3953 (cselib_reset_table_with_next_value): Declare.
3954 (cselib_get_next_unknown_value): Declare.
3955 (cselib_preserve_value): Declare.
3956 (cselib_preserved_value_p): Declare.
3957 (cselib_preserve_only_values): Declare.
3958 (dump_cselib_table): Declare.
3959 * cfgcleanup.c (flow_find_cross_jump): Skip debug insns.
3960 (try_crossjump_to_edge): Likewise.
3961 (delete_unreachable_blocks): Remove dominant GIMPLE blocks after
3962 dominated blocks when debug stmts are present.
3963 * simplify-rtx.c (delegitimize_mem_from_attrs): New.
3964 * tree-ssa-live.c (remove_unused_locals): Skip debug stmts.
3965 (set_var_live_on_entry): Likewise.
3966 * loop-invariant.c (find_invariants_bb): Skip debug insns.
3967 * cfglayout.c (curr_location, last_location): Make static.
3968 (set_curr_insn_source_location): Don't avoid bouncing.
3969 (get_curr_insn_source_location): New.
3970 (get_curr_insn_block): New.
3971 (duplicate_insn_chain): Handle debug insns.
3972 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Propagate
3974 * common.opt (fcompare-debug): Move to sort order.
3975 (fdump-unnumbered-links): Likewise.
3976 (fvar-tracking-assignments): New.
3977 (fvar-tracking-assignments-toggle): New.
3978 * tree-ssa-dce.c (mark_stmt_necessary): Don't mark blocks
3979 because of debug stmts.
3980 (mark_stmt_if_obviously_necessary): Mark debug stmts.
3981 (eliminate_unnecessary_stmts): Walk dominated blocks before
3983 * tree-ssa-ter.c (find_replaceable_in_bb): Skip debug stmts.
3984 * ira.c (memref_used_between_p): Skip debug insns.
3985 (update_equiv_regs): Likewise.
3986 * sched-deps.c (sd_lists_size): Accept empty list.
3987 (sd_init_insn): Mark debug insns.
3988 (sd_finish_insn): Unmark them.
3989 (sd_add_dep): Reject non-debug deps on debug insns.
3990 (fixup_sched_groups): Give debug insns group treatment.
3992 (sched_analyze_reg): Don't mark debug insns for sched before call.
3993 (sched_analyze_2): Handle debug insns.
3994 (sched_analyze_insn): Compute next non-debug insn. Handle debug
3996 (deps_analyze_insn): Handle debug insns.
3997 (deps_start_bb): Skip debug insns.
3998 (init_deps): Initialize last_debug_insn.
3999 * tree-ssa.c (target_for_debug_bind): New.
4000 (find_released_ssa_name): New.
4001 (propagate_var_def_into_debug_stmts): New.
4002 (propagate_defs_into_debug_stmts): New.
4003 (verify_ssa): Skip debug bind stmts without values.
4004 (warn_uninialized_vars): Skip debug stmts.
4005 * target-def.h (TARGET_DELEGITIMIZE_ADDRESS): Set default.
4006 * rtl.c (rtx_equal_p_cb): Handle VALUEs.
4007 (rtx_equal_p): Likewise.
4008 * ira-costs.c (scan_one_insn): Skip debug insns.
4009 (process_bb_node_for_hard_reg_moves): Likewise.
4010 * rtl.h (DEBUG_INSN_P): New.
4011 (NONDEBUG_INSN_P): New.
4012 (MAY_HAVE_DEBUG_INSNS): New.
4013 (INSN_P): Accept debug insns.
4014 (RTX_FRAME_RELATED_P): Likewise.
4015 (INSN_DELETED_P): Likewise
4016 (PAT_VAR_LOCATION_DECL): New.
4017 (PAT_VAR_LOCATION_LOC): New.
4018 (PAT_VAR_OCATION_STATUS): New.
4019 (NOTE_VAR_LOCATION_DECL): Reimplement.
4020 (NOTE_VAR_LOCATION_LOC): Likewise.
4021 (NOTE_VAR_LOCATION_STATUS): Likewise.
4022 (INSN_VAR_LOCATION): New.
4023 (INSN_VAR_LOCATION_DECL): New.
4024 (INSN_VAR_LOCATION_LOC): New.
4025 (INSN_VAR_LOCATION_STATUS): New.
4026 (gen_rtx_UNKNOWN_VAR_LOC): New.
4027 (VAR_LOC_UNKNOWN_P): New.
4028 (NOTE_DURING_CALL_P): New.
4029 (SCHED_GROUP_P): Accept debug insns.
4030 (emit_debug_insn_before): Declare.
4031 (emit_debug_insn_before_noloc): Declare.
4032 (emit_debug_insn_beore_setloc): Declare.
4033 (emit_debug_insn_after): Declare.
4034 (emit_debug_insn_after_noloc): Declare.
4035 (emit_debug_insn_after_setloc): Declare.
4036 (emit_debug_insn): Declare.
4037 (make_debug_insn_raw): Declare.
4038 (prev_nondebug_insn): Declare.
4039 (next_nondebug_insn): Declare.
4040 (delegitimize_mem_from_attrs): Declare.
4041 (get_max_insn_count): Declare.
4042 (wrap_constant): Declare.
4043 (unwrap_constant): Declare.
4044 (get_curr_insn_source_location): Declare.
4045 (get_curr_insn_block): Declare.
4046 * tree-inline.c (insert_debug_decl_map): New.
4047 (processing_debug_stmt): New.
4048 (remap_decl): Don't create new mappings in debug stmts.
4049 (remap_gimple_op_r): Don't add references in debug stmts.
4050 (copy_tree_body_r): Likewise.
4051 (remap_gimple_stmt): Handle debug bind stmts.
4052 (copy_bb): Skip debug stmts.
4053 (copy_edges_for_bb): Likewise.
4054 (copy_debug_stmt): New.
4055 (copy_debug_stmts): New.
4056 (copy_body): Copy debug stmts at the end.
4057 (insert_init_debug_bind): New.
4058 (insert_init_stmt): Take id. Skip and emit debug stmts.
4059 (setup_one_parameter): Remap variable earlier, register debug mapping.
4060 (estimate_num_insns): Skip debug stmts.
4061 (expand_call_inline): Preserve debug_map.
4062 (optimize_inline_calls): Check for no debug_stmts left-overs.
4063 (unsave_expr_now): Preserve debug_map.
4064 (copy_gimple_seq_and_replace_locals): Likewise.
4065 (tree_function_versioning): Check for no debug_stmts left-overs.
4066 Init and destroy debug_map as needed. Split edges unconditionally.
4067 (build_duplicate_type): Init and destroy debug_map as needed.
4068 * tree-inline.h: Include gimple.h instead of pointer-set.h.
4069 (struct copy_body_data): Add debug_stmts and debug_map.
4070 * sched-int.h (struct ready_list): Add n_debug.
4071 (struct deps): Add last_debug_insn.
4072 (DEBUG_INSN_SCHED_P): New.
4073 (BOUNDARY_DEBUG_INSN_P): New.
4074 (SCHEDULE_DEBUG_INSN_P): New.
4075 (sd_iterator_cond): Accept empty list.
4076 * combine.c (create_log_links): Skip debug insns.
4077 (combine_instructions): Likewise.
4078 (cleanup_auto_inc_dec): New. From Jakub Jelinek: Make sure the
4079 return value is always unshared.
4080 (struct rtx_subst_pair): New.
4081 (auto_adjust_pair): New.
4082 (propagate_for_debug_subst): New.
4083 (propagate_for_debug): New.
4084 (try_combine): Skip debug insns. Propagate removed defs into
4086 (next_nonnote_nondebug_insn): New.
4087 (distribute_notes): Use it. Skip debug insns.
4088 (distribute_links): Skip debug insns.
4089 * tree-outof-ssa.c (set_location_for_edge): Likewise.
4090 * resource.c (mark_target_live_regs): Likewise.
4091 * var-tracking.c: Include cselib.h and target.h.
4092 (enum micro_operation_type): Add MO_VAL_USE, MO_VAL_LOC, and
4094 (micro_operation_type_name): New.
4095 (enum emit_note_where): Add EMIT_NOTE_AFTER_CALL_INSN.
4096 (struct micro_operation_def): Update comments.
4097 (decl_or_value): New type. Use instead of decls.
4098 (struct emit_note_data_def): Add vars.
4099 (struct attrs_def): Use decl_or_value.
4100 (struct variable_tracking_info_def): Add permp, flooded.
4101 (struct location_chain_def): Update comment.
4102 (struct variable_part_def): Use decl_or_value.
4103 (struct variable_def): Make var_part a variable length array.
4105 (scratch_regs): New.
4106 (cselib_hook_called): New.
4107 (dv_is_decl_p): New.
4108 (dv_is_value_p): New.
4111 (dv_as_opaque): New.
4112 (dv_onepart_p): New.
4114 (IS_DECL_CODE): New.
4115 (check_value_is_not_decl): New.
4116 (dv_from_decl): New.
4117 (dv_from_value): New.
4118 (dv_htab_hash): New.
4119 (variable_htab_hash): Use it.
4120 (variable_htab_eq): Support values.
4121 (variable_htab_free): Free from the right pool.
4122 (attrs_list_member, attrs_list_insert): Use decl_or_value.
4123 (attrs_list_union): Adjust.
4124 (attrs_list_mpdv_union): New.
4125 (tie_break_pointers): New.
4126 (canon_value_cmp): New.
4127 (unshare_variable): Return possibly-modified slot.
4128 (vars_copy_1): Adjust.
4129 (var_reg_decl_set): Adjust. Split out of...
4130 (var_reg_set): ... this.
4131 (get_init_value): Adjust.
4132 (var_reg_delete_and_set): Adjust.
4133 (var_reg_delete): Adjust.
4134 (var_regno_delete): Adjust.
4135 (var_mem_decl_set): Split out of...
4136 (var_mem_set): ... this.
4137 (var_mem_delete_and_set): Adjust.
4138 (var_mem_delete): Adjust.
4142 (variable_union): Adjust. Speed up merge of 1-part vars.
4143 (variable_canonicalize): Use unshared slot.
4144 (VALUED_RECURSED_INTO): New.
4145 (find_loc_in_1pdv): New.
4146 (struct dfset_merge): New.
4147 (insert_into_intersection): New.
4148 (intersect_loc_chains): New.
4150 (canonicalize_loc_order_check): New.
4151 (canonicalize_values_mark): New.
4152 (canonicalize_values_star): New.
4153 (variable_merge_over_cur): New.
4154 (variable_merge_over_src): New.
4155 (dataflow_set_merge): New.
4156 (dataflow_set_equiv_regs): New.
4157 (remove_duplicate_values): New.
4158 (struct dfset_post_merge): New.
4159 (variable_post_merge_new_vals): New.
4160 (variable_post_merge_perm_vals): New.
4161 (dataflow_post_merge_adjust): New.
4162 (find_mem_expr_in_1pdv): New.
4163 (dataflow_set_preserve_mem_locs): New.
4164 (dataflow_set_remove_mem_locs): New.
4165 (dataflow_set_clear_at_call): New.
4166 (onepart_variable_different_p): New.
4167 (variable_different_p): Use it.
4168 (dataflow_set_different_1): Adjust. Make detailed dump more verbose.
4169 (track_expr_p): Add need_rtl parameter. Don't generate rtl
4171 (track_loc_p): Pass it true.
4172 (struct count_use_info): New.
4173 (find_use_val): New.
4174 (replace_expr_with_values): New.
4176 (use_type): New, partially split out of...
4177 (count_uses): ... this. Count new micro-ops.
4178 (count_uses_1): Adjust.
4179 (count_stores): Adjust.
4180 (count_with_sets): New.
4181 (VAL_NEEDS_RESOLUTION): New.
4182 (VAL_HOLDS_TRACK_EXPR): New.
4183 (VAL_EXPR_IS_COPIED): New.
4184 (VAL_EXPR_IS_CLOBBERED): New.
4185 (add_uses): Adjust. Generate new micro-ops.
4186 (add_uses_1): Adjust.
4187 (add_stores): Generate new micro-ops.
4188 (add_with_sets): New.
4189 (find_src_status): Adjust.
4190 (find_src_set_src): Adjust.
4191 (compute_bb_dataflow): Use dataflow_set_clear_at_call.
4192 Handle new micro-ops. Canonicalize value equivalances.
4193 (vt_find_locations): Compute total size of hash tables for
4194 dumping. Perform merge for var-tracking-assignments. Don't
4195 disregard single-block loops.
4196 (dump_attrs_list): Handle decl_or_value.
4197 (dump_variable): Take variable. Deal with decl_or_value.
4198 (dump_variable_slot): New.
4199 (dump_vars): Use it.
4200 (dump_dataflow_sets): Adjust.
4201 (set_slot_part): New, extended to support one-part variables
4202 after splitting out of...
4203 (set_variable_part): ... this.
4204 (clobber_slot_part): New, split out of...
4205 (clobber_variable_part): ... this.
4206 (delete_slot_part): New, split out of...
4207 (delete_variable_part): .... this.
4208 (check_wrap_constant): New.
4209 (vt_expand_loc_callback): New.
4210 (vt_expand_loc): New.
4211 (emit_note_insn_var_location): Adjust. Handle values. Handle
4212 EMIT_NOTE_AFTER_CALL_INSN.
4213 (emit_notes_for_differences_1): Adjust. Handle values.
4214 (emit_notes_for_differences_2): Likewise.
4215 (emit_notes_for_differences): Adjust.
4216 (emit_notes_in_bb): Take pointer to set. Emit AFTER_CALL_INSN notes.
4217 Adjust. Handle new micro-ops.
4218 (vt_add_function_parameters): Adjust. Create and bind values.
4219 (vt_initialize): Adjust. Initialize scratch_regs and
4220 valvar_pool, flooded and perm.. Initialize and use cselib. Log
4221 operations. Move some code to count_with_sets and add_with_sets.
4222 (delete_debug_insns): New.
4223 (vt_debug_insns_local): New.
4224 (vt_finalize): Release permp, valvar_pool, scratch_regs. Finish
4226 (var_tracking_main): If var-tracking-assignments is enabled
4227 but var-tracking isn't, delete debug insns and leave. Likewise
4228 if we exceed limits or fail the stack adjustments tests, and
4229 after all var-tracking processing.
4230 More in var-tracking, from Jakub Jelinek <jakub@redhat.com>:
4231 (dataflow_set): Add traversed_vars.
4232 (value_chain, const_value_chain): New typedefs.
4233 (value_chain_pool, value_chains): New variables.
4234 (value_chain_htab_hash, value_chain_htab_eq, add_value_chain,
4235 add_value_chains, add_cselib_value_chains, remove_value_chain,
4236 remove_value_chains, remove_cselib_value_chains): New functions.
4237 (shared_hash_find_slot_unshare_1, shared_hash_find_slot_1,
4238 shared_hash_find_slot_noinsert_1, shared_hash_find_1): New
4240 (shared_hash_find_slot_unshare, shared_hash_find_slot,
4241 shared_hash_find_slot_noinsert, shared_hash_find): Update.
4242 (dst_can_be_shared): New variable.
4243 (unshare_variable): Unshare set->vars if shared, use shared_hash_*.
4244 Clear dst_can_be_shared. If set->traversed_vars is non-NULL and
4245 different from set->vars, look up slot again instead of using the
4247 (dataflow_set_init): Initialize traversed_vars.
4248 (variable_union): Use shared_hash_*. Use initially NO_INSERT
4249 lookup if set->vars is shared. Don't keep slot cleared before
4250 calling unshare_variable. Unshare set->vars if needed. Adjust
4251 unshare_variable callers. Clear dst_can_be_shared if needed.
4252 Even ->refcount == 1 vars must be unshared if set->vars is shared
4253 and var needs to be modified.
4254 (dataflow_set_union): Set traversed_vars during canonicalization.
4255 (VALUE_CHANGED, DECL_CHANGED): Define.
4256 (set_dv_changed, dv_changed_p): New static inlines.
4257 (track_expr_p): Clear DECL_CHANGED.
4258 (dump_dataflow_sets): Set it.
4259 (variable_was_changed): Call set_dv_changed.
4260 (emit_note_insn_var_location): Likewise.
4261 (changed_variables_stack): New variable.
4262 (check_changed_vars_1, check_changed_vars_2): New functions.
4263 (emit_notes_for_changes): Do nothing if changed_variables is
4264 empty. Traverse changed_variables with check_changed_vars_1,
4265 call check_changed_vars_2 on each changed_variables_stack entry.
4266 (emit_notes_in_bb): Add SET argument. Just clear it at the
4267 beginning, use it instead of local &set, don't destroy it at the end.
4268 (vt_emit_notes): Call dataflow_set_clear early on all
4269 VTI(bb)->out sets, never use them, instead use emit_notes_in_bb
4270 computed set, dataflow_set_clear also VTI(bb)->in when we are
4271 done with the basic block. Initialize changed_variables_stack,
4272 free it afterwards. If ENABLE_CHECKING verify that after noting
4273 differences to an empty set value_chains hash table is empty.
4274 (vt_initialize): Initialize value_chains and value_chain_pool.
4275 (vt_finalize): Delete value_chains htab, free value_chain_pool.
4276 (variable_tracking_main): Call dump_dataflow_sets before calling
4277 vt_emit_notes, not after it.
4278 * tree-flow.h (propagate_defs_into_debug_stmts): Declare.
4279 (propagate_var_def_into_debug_stmts): Declare.
4280 * df-problems.c (df_lr_bb_local_compute): Skip debug insns.
4281 (df_set_note): Reject debug insns.
4282 (df_whole_mw_reg_dead_p): Take added_notes_p argument. Don't
4283 add notes to debug insns.
4284 (df_note_bb_compute): Adjust. Likewise.
4285 (df_simulate_uses): Skip debug insns.
4286 (df_simulate_initialize_backwards): Likewise.
4287 * reg-stack.c (subst_stack_regs_in_debug_insn): New.
4288 (subst_stack_regs_pat): Reject debug insns.
4289 (convert_regs_1): Handle debug insns.
4290 * Makefile.in (TREE_INLINE_H): Take pointer-set.h from GIMPLE_H.
4291 (print-rtl.o): Depend on cselib.h.
4292 (cselib.o): Depend on TREE_PASS_H.
4293 (var-tracking.o): Depend on cselib.h and TARGET_H.
4294 * sched-rgn.c (rgn_estimate_number_of_insns): Discount debug insns.
4295 (init_ready_list): Skip boundary debug insns.
4296 (add_branch_dependences): Skip debug insns.
4297 (free_block_dependencies): Check for blocks with only debug insns.
4298 (compute_priorities): Likewise.
4299 * gimple.c (gss_for_code): Handle GIMPLE_DEBUG.
4300 (gimple_build_with_ops_stat): Take subcode as unsigned. Adjust
4302 (gimple_build_debug_bind_stat): New.
4303 (empty_body_p): Skip debug stmts.
4304 (gimple_has_side_effects): Likewise.
4305 (gimple_rhs_has_side_effects): Likewise.
4306 * gimple.h (enum gimple_debug_subcode, GIMPLE_DEBUG_BIND): New.
4307 (gimple_build_debug_bind_stat): Declare.
4308 (gimple_build_debug_bind): Define.
4309 (is_gimple_debug): New.
4310 (gimple_debug_bind_p): New.
4311 (gimple_debug_bind_get_var): New.
4312 (gimple_debug_bind_get_value): New.
4313 (gimple_debug_bind_get_value_ptr): New.
4314 (gimple_debug_bind_set_var): New.
4315 (gimple_debug_bind_set_value): New.
4316 (GIMPLE_DEBUG_BIND_NOVALUE): New internal temporary macro.
4317 (gimple_debug_bind_reset_value): New.
4318 (gimple_debug_bind_has_value_p): New.
4319 (gsi_next_nondebug): New.
4320 (gsi_prev_nondebug): New.
4321 (gsi_start_nondebug_bb): New.
4322 (gsi_last_nondebug_bb): New.
4323 * sched-vis.c (print_pattern): Handle VAR_LOCATION.
4324 (print_insn): Handle DEBUG_INSN.
4325 * tree-cfg.c (remove_bb): Walk stmts backwards. Let loc
4326 of first insn prevail.
4327 (first_stmt): Skip debug stmts.
4328 (first_non_label_stmt): Likewise.
4329 (last_stmt): Likewise.
4330 (has_zero_uses_1): New.
4331 (single_imm_use_1): New.
4332 (verify_gimple_debug): New.
4333 (verify_types_in_gimple_stmt): Handle debug stmts.
4334 (verify_stmt): Likewise.
4335 (debug_loop_num): Skip debug stmts.
4336 (remove_edge_and_dominated_blocks): Remove dominators last.
4337 * tree-ssa-reasssoc.c (rewrite_expr_tree): Propagate into debug stmts.
4338 (linearize_expr): Likewise.
4339 * config/i386/i386.c (ix86_delegitimize_address): Call
4340 default implementation.
4341 * config/ia64/ia64.c (ia64_safe_itanium_class): Handle debug insns.
4342 (group_barrier_needed): Skip debug insns.
4343 (emit_insn_group_barriers): Likewise.
4344 (emit_all_insn_group_barriers): Likewise.
4345 (ia64_variable_issue): Handle debug insns.
4346 (ia64_dfa_new_cycle): Likewise.
4347 (final_emit_insn_group_barriers): Skip debug insns.
4348 (ia64_dwarf2out_def_steady_cfa): Take frame argument. Don't
4349 def cfa without frame.
4350 (process_set): Likewise.
4351 (process_for_unwind_directive): Pass frame on.
4352 * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
4353 (rs6000_delegitimize_address): New.
4354 (rs6000_debug_adjust_cost): Handle debug insns.
4355 (is_microcoded_insn): Likewise.
4356 (is_cracked_insn): Likewise.
4357 (is_nonpipeline_insn): Likewise.
4358 (insn_must_be_first_in_group): Likewise.
4359 (insn_must_be_last_in_group): Likewise.
4360 (force_new_group): Likewise.
4361 * cfgrtl.c (rtl_split_block): Emit INSN_DELETED note if block
4362 contains only debug insns.
4363 (rtl_merge_blocks): Skip debug insns.
4364 (purge_dead_edges): Likewise.
4365 (rtl_block_ends_with_call_p): Skip debug insns.
4366 * dce.c (deletable_insn_p): Handle VAR_LOCATION.
4367 (mark_reg_dependencies): Skip debug insns.
4368 * params.def (PARAM_MIN_NONDEBUG_INSN_UID): New.
4369 * tree-ssanames.c (release_ssa_name): Propagate def into debug stmts.
4370 * tree-ssa-threadedge.c
4371 (record_temporary_equivalences_from_stmts): Skip debug stmts.
4372 * regcprop.c (replace_oldest_value_addr): Skip debug insns.
4373 (replace_oldest_value_mem): Use ALL_REGS for debug insns.
4374 (copyprop_hardreg_forward_1): Handle debug insns.
4375 * reload1.c (reload): Skip debug insns. Replace unassigned
4376 pseudos in debug insns with their equivalences.
4377 (eliminate_regs_in_insn): Skip debug insns.
4378 (emit_input_reload_insns): Skip debug insns at first, adjust
4380 * tree-ssa-operands.c (add_virtual_operand): Reject debug stmts.
4381 (get_indirect_ref_operands): Pass opf_no_vops on.
4382 (get_expr_operands): Likewise. Skip debug stmts.
4383 (parse_ssa_operands): Scan debug insns with opf_no_vops.
4385 2009-09-01 Richard Henderson <rth@redhat.com>
4387 * tree-ssa-ccp.c (ccp_initialize): Make sure to simulate
4388 stmt_ends_pp_p statements at least once.
4389 * tree-vrp.c (vrp_initialize): Likewise.
4390 (vrp_visit_stmt): Be prepared for non-interesting stmts.
4392 2009-09-01 Dodji Seketeli <dodji@redhat.com>
4395 Fix AIX bootstrap after PR debug/30161
4396 * dwarf2out.c (make_ith_pack_parameter_name): Don't used strnlen
4397 that is a GNU extension.
4398 (tmpl_value_parm_die_table): Move the definition of this global
4399 outside #ifdef DWARF2_DEBUGGING_INFO region.
4401 2009-09-01 Richard Guenther <rguenther@suse.de>
4403 * tree.c (tree_expr_size): New function.
4404 * tree.h (tree_expr_size): Declare.
4405 * rtlanal.c (rtx_addr_can_trap_p_1): Adjust comment.
4406 * builtins.c (fold_builtin_memory_op): Use tree_expr_size.
4407 * langhooks.c (lhd_expr_size): Remove.
4408 * langhooks.h (struct lang_hooks): Remove expr_size.
4409 * explow.c (expr_size): Use tree_expr_size.
4410 (int_expr_size): Likewise.
4411 * langhooks-def.h (lhd_expr_size): Remove.
4412 (LANG_HOOKS_EXPR_SIZE): Likewise.
4413 (LANG_HOOKS_INITIALIZER): Adjust.
4415 2009-09-01 Richard Guenther <rguenther@suse.de>
4417 * tree-flow.h (mark_addressable): Move declaration ...
4418 * tree.h (mark_addressable): ... here.
4419 * stmt.c (expand_asm_operands): Use mark_addressable, not
4420 lang_hooks.mark_addressable.
4421 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Remove
4422 LANG_HOOKS_MARK_ADDRESSABLE.
4423 * langhooks.h (struct lang_hooks): Remove mark_addressable langhook.
4424 * c-objc-common.h (LANG_HOOKS_MARK_ADDRESSABLE): Remove.
4426 2009-08-31 Chris Demetriou <cgd@google.com>
4428 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Never
4429 vectorize if not TARGET_SSE2.
4431 2009-08-31 DJ Delorie <dj@redhat.com>
4433 * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Exclude coprocessor
4434 registers if no coprocessor is enabled.
4436 2009-08-31 Dodji Seketeli <dodji@redhat.com>
4439 * cgraph.h (cgraph_get_node): Declare ...
4440 * cgraph.c (cgraph_get_node): ... new function.
4441 * dwarf2out.c (gen_generic_params_dies,
4442 generic_parameter_die, tree_add_const_value_attribute_for_decl,
4443 make_ith_pack_parameter_name,
4444 append_entry_to_tmpl_value_parm_die_table,
4445 gen_remaining_tmpl_value_param_die_attribute): New functions.
4446 (gen_subprogram_die): Generate debug info for template parameters
4447 if debug info level is higher than DINFO_LEVEL_TERSE.
4448 Use tree_add_const_value_attribute_for_decl instead of
4449 tree_add_const_value_attribute.
4450 (gen_const_die): Use tree_add_const_value_attribute_for_decl
4451 instead of tree_add_const_value_attribute.
4452 (gen_struct_or_union_type_die): Generate debug
4453 info for template parameters if debug info level is higher than
4455 (tree_add_const_value_attribute): Handle integral and pointer
4456 constants. Update comment.
4457 (dwarf_tag_name): Support DW_TAG_GNU_template_template_param.
4458 (dwarf_attr_name): Support DW_AT_GNU_template_name.
4459 (reference_to_unused): Fix thinko. Remove redundant predicates from
4461 (tree_add_const_value_attribute): Make this work for constant
4463 tree_add_const_value_attribute_for_decl is to be used for variable
4465 (add_location_or_const_value_attribute): Use
4466 tree_add_const_value_attribute_for_decl now.
4467 (dwarf2out_finish): Emit the DW_AT_const_value attribute of
4468 DW_TAG_template_value_param DIEs after function DIEs have been
4470 * langhooks.h (lang_hooks_for_types): Add
4471 get_argument_pack_elems.
4472 (lang_hooks_for_decls): Add generic_generic_parameter_decl_p.
4473 (lang_hooks): Added get_innermost_generic_parms,
4474 get_innermost_generic_args.
4475 * langhooks-def.h (LANG_HOOKS_GET_INNERMOST_GENERIC_PARMS,
4476 LANG_HOOKS_GET_INNERMOST_GENERIC_ARGS,
4477 LANG_HOOKS_GET_ARGUMENT_PACK_ELEMS,
4478 LANG_HOOKS_GENERIC_GENERIC_PARAMETER_DECL_P): New language hooks.
4480 2009-08-31 DJ Delorie <dj@redhat.com>
4482 * config/mep/mep.c (machine_function): Add frame_locked flag. Set
4483 it once we start generating the prologue or epilogue.
4484 (mep_call_saves_register): If the frame is locked, re-use
4486 (mep_assign_save_slots): New, broken out from mep_expand_prologue.
4487 (mep_expand_prologue): Call it.
4488 (mep_expand_epilogue): Likewise.
4489 (mep_start_function): Use the same logic as mep_expand_prologue.
4490 (mep_pass_by_reference): Make logic more readable.
4491 (mep_return_in_memory): Zero-sized objects are passed in memory.
4492 (mep_reorg_noframe): Make sure we have accurate REG_DEAD notes.
4494 2009-08-31 Richard Guenther <rguenther@suse.de>
4496 * builtins.c (fold_builtin_memory_op): Use the alias oracle
4497 to query if the memory regions for memmove overlap.
4498 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Relax the
4499 asserts on pointers, instead deal with odd trees.
4500 (ptr_derefs_may_alias_p): Likewise.
4501 (refs_may_alias_p_1): Constructor bases also never alias.
4503 2009-08-31 Gerald Pfeifer <gerald@pfeifer.com>
4505 * doc/install.texi (Final install): Adjust reference on where to
4506 order printed manuals.
4508 2009-08-30 Olivier Hainque <hainque@adacore.com>
4510 * dwarf2out.c (switch_to_frame_table_section): Move
4511 definition prior to first use.
4513 2009-08-30 Richard Guenther <rguenther@suse.de>
4515 PR tree-optimization/41186
4516 * tree-ssa-alias.c (ptr_deref_may_alias_ref_p): Remove.
4517 (ao_ref_init_from_ptr_and_size): New function.
4518 (ref_maybe_used_by_call_p_1): Be more precise tracking
4519 used ranges for builtin functions.
4520 (ref_maybe_used_by_call_p): Adjust.
4521 (call_may_clobber_ref_p_1): Be more precise tracking clobbered
4522 ranges for builtin functions.
4523 * tree-ssa-alias.h (ao_ref_init_from_ptr_and_size): Declare.
4525 2009-08-30 Alan Modra <amodra@bigpond.net.au>
4528 * fwprop.c (get_reg_use_in): Delete.
4529 (free_load_extend): New function.
4530 (forward_propagate_subreg): Use it.
4532 2009-08-29 Kaz Kojima <kkojima@gcc.gnu.org>
4534 * config.gcc (sh*-*-elf): Add superh stuff only for sh*-superh-elf.
4536 2009-08-29 Kai Tietz<kai.tietz@onevision.com>
4539 * config/i386.c (ix86_expand_epilogue): Correct stack adjustment for
4542 2009-08-29 Douglas B Rupp <rupp@gnat.com>
4544 * crtstuff.c (__do_global_dtors_aux): Use atexit if no
4545 fini or fini_array section.
4547 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
4549 * graphite-dependences.c (graphite_legal_transform_bb): Call
4550 pbb_remove_duplicate_pdrs.
4551 * graphite-poly.c (can_collapse_pdr): Removed.
4552 (pdr_find_duplicate): Removed.
4553 (can_collapse_pdrs): New.
4554 (pbb_remove_duplicate_pdrs): New.
4555 (new_poly_dr): Do not look for duplicates.
4556 * graphite-poly.h (struct poly_bb): New field pdr_duplicates_removed.
4557 (PBB_PDR_DUPLICATES_REMOVED): New.
4558 (pbb_remove_duplicate_pdrs): Declared.
4560 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
4562 * graphite-interchange.c (pbb_interchange_profitable_p): Adjust
4563 the strides by multiplying by PDR_NB_REFS.
4564 * graphite-poly.c (can_collapse_pdr): New.
4565 (pdr_find_duplicate): New.
4566 (new_poly_dr): Call pdr_find_duplicate. Collapse duplicate PDRs.
4567 Initialize PDR_NB_REFS.
4568 * graphite-poly.h (struct poly_dr): Add field nb_refs.
4570 (new_poly_dr): Number of subscripts is a graphite_dim_t.
4572 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
4575 * graphite-poly.c (apply_poly_transforms): Remove legality test before
4578 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
4580 * graphite-dependences.c (pddr_original_scattering): Return NULL
4581 for read-read dependence relations.
4582 * graphite-poly.h (enum poly_dr_type): Fix comment.
4585 (pdr_may_write_p): New.
4587 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
4589 * graphite-poly.h (enum POLY_DR_TYPE): Renamed poly_dr_type.
4590 (struct poly_dr): Same.
4591 (new_poly_dr): Same.
4592 * graphite-poly.c (new_poly_dr): Same.
4593 * graphite-dependences.c (dot_deps): Disable call to system.
4595 2009-08-28 Cary Coutant <ccoutant@google.com>
4598 * dwarf2out.c (gen_type_die_with_usage): Use proper context for
4599 struct/union/enum types local to a function.
4601 2009-08-28 Konrad Trifunovic <konrad.trifunovic@gmail.com>
4602 Sebastian Pop <sebastian.pop@amd.com>
4604 * graphite-blocking.c (pbb_strip_mine_loop_depth): Renamed
4605 pbb_strip_mine_time_depth. Changed the implementation so that
4606 transformation is expressed as a transformation on
4607 time (scatttering) dimensions. Also, ensures that the 2d+1
4608 scheduling format is preserved.
4609 (pbb_strip_mine_profitable_p): Profitability is based on the
4610 iteration number of a given time (scattering) dimension,
4611 and not on a original loop depth dimension.
4612 (pbb_strip_mine): Call pbb_number_of_iterations_at_time.
4613 (pbb_do_strip_mine): Call psct_dynamic_dim.
4614 * graphite-poly.c (pbb_number_of_iterations_at_time): New.
4615 * graphite-poly.h (pbb_number_of_iterations_at_time): Declared.
4616 (pbb_nb_dynamic_scattering_transform): New.
4617 (psct_dynamic_dim): New.
4619 2009-08-28 Konrad Trifunovic <konrad.trifunovic@gmail.com>
4621 * graphite-ppl.c (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
4622 * graphite-ppl.h (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
4623 * graphite-poly.c (pbb_number_of_iterations): Rename ppl_max_for_le.
4624 * graphite-interchange.c (build_linearized_memory_access): Same.
4625 (memory_stride_in_loop): Same.
4627 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
4629 * graphite-dependences.c (pddr_original_scattering): New.
4630 (graphite_legal_transform_dr): Call pddr_original_scattering.
4633 * graphite-dependences.h (dot_deps): Declared.
4634 * graphite-poly.c (new_poly_dr): Initialize PDR_ID.
4635 (print_pdr): Print PDR_ID.
4636 * graphite-poly.h (struct poly_dr): Add field id.
4639 * graphite-scop-detection.c (dot_all_scops_1): Cleanup comment.
4641 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
4643 * graphite-dependences.c (graphite_carried_dependence_level_k): Do
4644 not delete the original dependence relation.
4646 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
4648 * graphite-dependences.c (new_poly_dr_pair): Renamed new_poly_ddr.
4649 (eq_poly_dr_pair_p): Renamed eq_poly_ddr_p.
4650 (hash_poly_dr_pair_p): Renamed hash_poly_ddr_p.
4651 (free_poly_ddr): New.
4652 (pddr_is_empty): New.
4653 (dependence_polyhedron_1): Now returns a poly_ddr_p.
4654 (dependence_polyhedron): Same. Remove useless gcc_assert.
4656 (graphite_legal_transform_dr): Call pddr_is_empty and free_poly_ddr.
4657 (graphite_carried_dependence_level_k): Call pddr_is_empty.
4658 * graphite-dependences.h (enum poly_dependence_kind): New.
4659 (poly_dr_pair): Renamed poly_ddr. Added a field kind.
4660 (PDRP_SOURCE): Renamed PDDR_SOURCE.
4661 (PDRP_SINK): Renamed PDDR_SINK.
4662 (PDRP_DDP): Renamed PDDR_DDP.
4664 (free_poly_ddr): Declared.
4665 * graphite-poly.c (new_scop): Use the new hash function names.
4666 * graphite-poly.h (struct scop): Renamed field original_pdr_pairs
4667 into original_pddrs.
4668 (SCOP_ORIGINAL_PDR_PAIRS): Renamed SCOP_ORIGINAL_PDDRS.
4670 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
4672 * cfgloopmanip.c (create_empty_loop_on_edge): Generate upper
4673 bounds with LT_EXPR to make niter analysis more precise on code
4674 generated by Graphite.
4676 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
4678 * graphite-dependences.c (graphite_legal_transform_dr): Fix formatting.
4679 (graphite_legal_transform_bb): Same.
4680 (poly_drs_may_alias_p): Same.
4682 2009-08-28 Richard Guenther <rguenther@suse.de>
4684 * tree.def: Remove note about obsolete TYPE_NONCOPIED_PARTS.
4686 2009-08-28 Jan Beulich <jbeulich@novell.com>
4688 * config/i386/netware.c: Include langhooks.h.
4689 (i386_nlm_encode_section_info): Simplify.
4690 (netware_override_options): Delete.
4691 * config/i386/netware.h (netware_override_options): Delete
4693 (OVERRIDE_OPTIONS): Delete definition.
4694 (SUBTARGET_OVERRIDE_OPTIONS): Define.
4695 (ASM_COMMENT_START): Define.
4696 * config/i386/nwld.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Define.
4698 2009-08-28 Jan Beulich <jbeulich@novell.com>
4700 * configure.ac: For in-tree ld, do a plain version check to
4701 determine whether comdat groups are supported.
4702 * configure: Regenerate.
4704 2009-08-28 Olivier Hainque <hainque@adacore.com>
4706 * collect2.c (DO_COLLECT_EXPORT_LIST): New internal macro,
4707 always defined. Reflect definition or absence of such for
4708 COLLECT_EXPORT_LIST. Readability helper.
4709 (scanfilter): New enum, to help control what symbols
4710 are to be considered or ignored by scan_prog_file.
4711 (enum pass): Rename as "scanpass", moved together with scanfilter
4712 prior to scan_prog_file's prototype.
4713 (scan_prog_file): Accept and honor scanpass and scanfilter arguments.
4714 Group prototype with the scanpass/scanfilter definitions, factorize
4715 head comments for the several implementations at the prototype.
4716 (main): Reorganize the first pass link control to let AIX
4717 drag only the needed frame tables in executables. Prevent
4718 frame tables collection during the scan aimed at static ctors.
4719 Pre-link and scan for frame tables later to compensate.
4720 * doc/tm.texi (ASM_OUTPUT_DWARF_TABLE_REF): New macro.
4721 A C statement to issue assembly directives that create a reference
4722 to the given DWARF table identifier label from the current function
4724 * dwarf2out.c (switch_to_eh_frame_section): Add a BACK argument
4725 to differentiate first time section entry. Only emit a .data
4726 tables start identifier label the first time around.
4727 (switch_to_frame_table_section): New function. Helper for
4728 output_call_frame_info to switch possibly BACK into the eh_frame
4729 or the debug_frame section depending on FOR_EH.
4730 (output_call_frame_info): Use helper to first enter the proper
4732 (output_fde): Use ASM_OUTPUT_DWARF_TABLE_REF when defined to
4733 emit a link to the frame table start label from each function
4735 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_table_ref):
4736 New function. Implementation of ASM_OUTPUT_DWARF_TABLE_REF.
4737 * config/rs6000/rs6000-protos.h: Declare it.
4738 * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Define.
4740 2009-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
4742 * config/sh/sh.c (split_branches): Check the result of
4745 2009-08-27 Steve Ellcey <sje@cup.hp.com>
4747 * config/ia64/hpux.h (LIB_SPEC): Add -lrt for when
4748 using -pthread -fopenmp
4750 2009-08-27 Gerald Pfeifer <gerald@pfeifer.com>
4752 * doc/service.texi (service directory): Update URL.
4754 2009-08-27 Uros Bizjak <ubizjak@gmail.com>
4756 PR rtl-optimization/40861
4757 * simplify-rtx.c (simplify_subreg): Do not call simplify_gen_subreg to
4758 extract word from a multi-word subreg for negative byte positions.
4760 2009-08-27 Tristan Gingold <gingold@adacore.com>
4761 Douglas B Rupp <rupp@gnat.com>
4763 * config/ia64/ia64.c (ia64_attribute_table): Add "common_object" entry.
4764 (SECTION_VMS_OVERLAY): Define.
4765 (ia64_vms_common_object_attribute): Added. Handle the "common_object"
4767 (ia64_vms_elf_asm_named_section): Added. Generate .section pseudo-op
4769 (ia64_vms_output_aligned_decl_common): Added. Generate pseudo-op for
4770 common_object declarations.
4771 (ia64_section_type_flags): Set section flag for common_object.
4772 * config/ia64/ia64-protos.h
4773 (ia64_vms_output_aligned_decl_common): Declare.
4774 (ia64_vms_elf_asm_named_section): Declare.
4776 2009-08-27 Michael Matz <matz@suse.de>
4778 * expr.c (expand_expr_real_2): New function taking exploded
4779 unary or binary expression, split out from ...
4780 (expand_expr_real_1): ... here. Move over all unary/binary
4781 switch parts to above function, in particular these codes:
4782 PAREN_EXPR, NOP_EXPR, CONVERT_EXPR, POINTER_PLUS_EXPR, PLUS_EXPR,
4783 MINUS_EXPR, MULT_EXPR, TRUNC_DIV_EXPR, FLOOR_DIV_EXPR, CEIL_DIV_EXPR,
4784 ROUND_DIV_EXPR, EXACT_DIV_EXPR, RDIV_EXPR, TRUNC_MOD_EXPR,
4785 FLOOR_MOD_EXPR, CEIL_MOD_EXPR, ROUND_MOD_EXPR, FIXED_CONVERT_EXPR,
4786 FIX_TRUNC_EXPR, FLOAT_EXPR, NEGATE_EXPR, ABS_EXPR, MAX_EXPR, MIN_EXPR,
4787 BIT_NOT_EXPR, TRUTH_AND_EXPR, BIT_AND_EXPR, TRUTH_OR_EXPR,
4788 BIT_IOR_EXPR, TRUTH_XOR_EXPR, BIT_XOR_EXPR, LROTATE_EXPR, RROTATE_EXPR,
4789 LSHIFT_EXPR, RSHIFT_EXPR, LT_EXPR, LE_EXPR, GT_EXPR, GE_EXPR, EQ_EXPR,
4790 NE_EXPR, UNORDERED_EXPR, ORDERED_EXPR, UNLT_EXPR, UNLE_EXPR, UNGT_EXPR,
4791 UNGE_EXPR, UNEQ_EXPR, LTGT_EXPR, TRUTH_NOT_EXPR, COMPLEX_EXPR,
4792 WIDEN_SUM_EXPR, REDUC_MAX_EXPR, REDUC_MIN_EXPR, REDUC_PLUS_EXPR,
4793 VEC_EXTRACT_EVEN_EXPR, VEC_EXTRACT_ODD_EXPR, VEC_INTERLEAVE_HIGH_EXPR,
4794 VEC_INTERLEAVE_LOW_EXPR, VEC_LSHIFT_EXPR, VEC_RSHIFT_EXPR,
4795 VEC_UNPACK_HI_EXPR, VEC_UNPACK_LO_EXPR, VEC_UNPACK_FLOAT_HI_EXPR,
4796 VEC_UNPACK_FLOAT_LO_EXPR, VEC_WIDEN_MULT_HI_EXPR,
4797 VEC_WIDEN_MULT_LO_EXPR, VEC_PACK_TRUNC_EXPR, VEC_PACK_SAT_EXPR,
4798 VEC_PACK_FIX_TRUNC_EXPR.
4799 (<case PAREN_EXPR>): Call set_mem_attributes() with type, not the
4802 2009-08-27 Richard Guenther <rguenther@suse.de>
4804 * gengtype.c (main): Handle uint64_t.
4805 * ipa-utils.c (get_base_var): Indent properly.
4806 * tree-ssa-live.c (debug_scope_block): New function.
4807 * tree-flow.h (debug_scope_block): Declare.
4808 * tree-ssa-copy.c (replace_exp_1): Add vertical space.
4809 * basic-block.h (enum profile_status): Rename to
4810 enum profile_status_d.
4811 (x_profile_status): Adjust type.
4813 2009-08-27 Dodji Seketeli <dodji@redhat.com>
4816 * dwarf2out.c (get_context_die): Declare this static function.
4817 (gen_type_die_with_usage): Make sure a DIE is a generated for
4818 the context of a typedef.
4820 2009-08-26 Anatoly Sokolov <aesok@post.ru>
4822 * doc/invoke.texi (AVR Options): Remove documentation of -minit-stack
4825 2009-08-26 Richard Sandiford <rdsandiford@googlemail.com>
4827 * config/mips/mips-protos.h (mips_output_sync): Declare.
4828 (mips_sync_loop_insns): Likewise.
4829 (mips_output_sync_loop): Replace first two parameters with an rtx.
4830 * config/mips/mips.c (mips_multi_member): New structure.
4831 (mips_multi_members): New variable.
4832 (mips_multi_start): New function.
4833 (mips_multi_add): Likewise.
4834 (mips_multi_add_insn): Likewise.
4835 (mips_multi_add_label): Likewise.
4836 (mips_multi_last_index): Likewise.
4837 (mips_multi_copy_insn): Likewise.
4838 (mips_multi_set_operand): Likewise.
4839 (mips_multi_write): Likewise.
4840 (mips_print_operand_punctuation): Remove '%|' and '%-'.
4841 (mips_init_print_operand_punct): Update accordingly.
4842 (mips_start_ll_sc_sync_block): New function.
4843 (mips_end_ll_sc_sync_block): Likewise.
4844 (mips_output_sync): Likewise.
4845 (mips_sync_insn1_template): Likewise.
4846 (mips_sync_insn2_template): Likewise.
4847 (mips_get_sync_operand): Likewise.
4848 (mips_process_sync_loop): Likewise.
4849 (mips_output_sync_loop): Use mips_process_sync_loop.
4850 (mips_sync_loop_insns): New function.
4851 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Delete.
4852 (MIPS_COMPARE_AND_SWAP_12): Likewise.
4853 (MIPS_COMPARE_AND_SWAP_12_ZERO_OP): Likewise.
4854 (MIPS_COMPARE_AND_SWAP_12_NONZERO_OP): Likewise.
4855 (MIPS_SYNC_OP, MIPS_SYNC_OP_12): Likewise.
4856 (MIPS_SYNC_OP_12_AND, MIPS_SYNC_OP_12_XOR): Likewise.
4857 (MIPS_SYNC_OLD_OP_12): Likewise.
4858 (MIPS_SYNC_OLD_OP_12_AND, MIPS_SYNC_OLD_OP_12_XOR): Likewise.
4859 (MIPS_SYNC_NEW_OP_12): Likewise.
4860 (MIPS_SYNC_NEW_OP_12_AND, MIPS_SYNC_NEW_OP_12_XOR): Likewise.
4861 (MIPS_SYNC_OLD_OP, MIPS_SYNC_NEW_OP): Likewise.
4862 (MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND, MIPS_SYNC_NEW_NAND): Likewise.
4863 (MIPS_SYNC_EXCHANGE, MIPS_SYNC_EXCHANGE_12): Likewise.
4864 (MIPS_SYNC_EXCHANGE_12_ZERO_OP): Likewise.
4865 (MIPS_SYNC_EXCHANGE_12_NONZER_OP): Likewise.
4866 * config/mips/mips.md (sync_mem): New attribute.
4867 (sync_oldval, sync_newval, sync_inclusive_mask): Likewise.
4868 (sync_exclusive_mask, sync_required_oldval): Likewise.
4869 (sync_insn1_op2, sync_insn1, sync_insn2): Likewise.
4870 (sync_release_barrier): Likewise.
4871 (length): Handle sync loops.
4872 (sync): Use mips_output_sync.
4873 * config/mips/sync.md (*memory_barrier): Use mips_output_sync.
4874 (sync_compare_and_swap<mode>): Set the new sync_* attributes
4875 and use mips_output_sync_loop.
4876 (compare_and_swap_12, sync_add<mode>, sync_<optab>_12): Likewise.
4877 (sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12): Likewise.
4878 (sync_old_nand_12, sync_new_nand_12, sync_sub<mode>): Likewise.
4879 (sync_old_add<mode>, sync_old_sub<mode>): Likewise.
4880 (sync_new_add<mode>, sync_new_sub<mode>): Likewise.
4881 (sync_<optab><mode>, sync_old_<optab><mode>): Likewise.
4882 (sync_new_<optab><mode>, sync_nand<mode>): Likewise.
4883 (sync_old_nand<mode>, sync_new_nand<mode>): Likewise.
4884 (sync_lock_test_and_set<mode>, test_and_set_12): Likewise.
4886 2009-08-26 Richard Guenther <rguenther@suse.de>
4889 * gimplify.c (gimplify_addr_expr): Canonicalize ADDR_EXPRs if
4890 the types to not match.
4891 * tree-cfg.c (verify_gimple_assign_single): Adjust ADDR_EXPR
4893 * tree-ssa.c (useless_type_conversion_p): Conversions to
4894 pointers to unprototyped functions are useless.
4896 2009-08-26 Richard Guenther <rguenther@suse.de>
4898 * tree-ssa-structalias.c (create_variable_info_for): Remove strange
4899 whole-program condition, prepare to be called for non-globals.
4900 (intra_create_variable_infos): For restrict qualified DECL_BY_REFERENCE
4901 params build a representative with known type and track its fields.
4903 2009-08-26 Uros Bizjak <ubizjak@gmail.com>
4905 * config/alpha/sync.md: Update comment about unpredictable LL/SC lock
4906 clearing by a taken branch.
4907 (sync_<fetchop_name><mode>): Split when epilogue_completed is set,
4908 effectively after bbro pass.
4909 (sync_nand<mode>): Ditto.
4910 (sync_old_<fetchop_name><mode>): Ditto.
4911 (sync_old_nand<mode>): Ditto.
4912 (sync_new_<fetchop_name><mode>): Dito.
4913 (sync_new_nand<mode>): Ditto.
4914 (sync_compare_and_swap<mode>_1): Ditto.
4915 (*sync_compare_and_swap<mode>): Ditto.
4916 (sync_lock_test_and_set<mode>_1): Ditto.
4917 ("sync_lock_test_and_set<mode>): Ditto.
4919 2009-08-25 Douglas B Rupp <rupp@gnat.com>
4921 * hwint.h (HOST_LONG_FORMAT): New macro
4922 * bitmap.c, c-decl.c, mips-tfile.c, print-rtl.c, print-tree.c:
4923 Use HOST_PTR_PRINTF.
4924 * system.h (HOST_PTR_PRINTF): Resurrect old macro
4925 * doc/hostconfig.texi (HOST_LONG_FORMAT): Document.
4926 (HOST_PTR_PRINTF): Document.
4928 2009-08-25 Jan Hubicka <jh@suse.cz>
4930 * config/i386/bmmintrin.h: Replace by #error.
4933 Michael Meissner <michael.meissner@amd.com>
4934 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
4935 Tony Linthicum <tony.linthicum@amd.com>
4937 * config/i386/i386.h (TARGET_SSE5): New macro for SSE5.
4938 (TARGET_ROUND): New macro for the round/ptest instructions which
4939 are shared between SSE4.1 and SSE5.
4940 (OPTION_MASK_ISA_ROUND): Ditto.
4941 (OPTION_ISA_ROUND): Ditto.
4942 (TARGET_FUSED_MADD): New macro for -mfused-madd swtich.
4943 (TARGET_CPU_CPP_BUILTINS): Add SSE5 support.
4945 * config/i386/i386.opt (-msse5): New switch for SSE5 support.
4946 (-mfused-madd): New switch to give users control over whether the
4947 compiler optimizes to use the multiply/add SSE5 instructions.
4949 * config/i386/i386.c (enum pta_flags): Add PTA_SSE5.
4950 (ix86_handle_option): Turn off 3dnow if -msse5.
4951 (override_options): Add SSE5 support.
4952 (print_operand): %Y prints comparison codes for SSE5 com/pcom
4954 (ix86_expand_sse_movcc): Add SSE5 support.
4955 (ix86_expand_sse5_unpack): New function to use pperm to unpack a
4956 vector type to the next largest size.
4957 (ix86_expand_sse5_pack): New function to use pperm to pack a
4958 vector type to the next smallest size.
4959 (IX86_BUILTIN_FMADDSS): New for SSE5 intrinsic.
4960 (IX86_BUILTIN_FMADDSD): Ditto.
4961 (IX86_BUILTIN_FMADDPS): Ditto.
4962 (IX86_BUILTIN_FMADDPD): Ditto.
4963 (IX86_BUILTIN_FMSUBSS): Ditto.
4964 (IX86_BUILTIN_FMSUBSD): Ditto.
4965 (IX86_BUILTIN_FMSUBPS): Ditto.
4966 (IX86_BUILTIN_FMSUBPD): Ditto.
4967 (IX86_BUILTIN_FNMADDSS): Ditto.
4968 (IX86_BUILTIN_FNMADDSD): Ditto.
4969 (IX86_BUILTIN_FNMADDPS): Ditto.
4970 (IX86_BUILTIN_FNMADDPD): Ditto.
4971 (IX86_BUILTIN_FNMSUBSS): Ditto.
4972 (IX86_BUILTIN_FNMSUBSD): Ditto.
4973 (IX86_BUILTIN_FNMSUBPS): Ditto.
4974 (IX86_BUILTIN_FNMSUBPD): Ditto.
4975 (IX86_BUILTIN_PCMOV_V2DI): Ditto.
4976 (IX86_BUILTIN_PCMOV_V4SI): Ditto.
4977 (IX86_BUILTIN_PCMOV_V8HI): Ditto.
4978 (IX86_BUILTIN_PCMOV_V16QI): Ditto.
4979 (IX86_BUILTIN_PCMOV_V4SF): Ditto.
4980 (IX86_BUILTIN_PCMOV_V2DF): Ditto.
4981 (IX86_BUILTIN_PPERM): Ditto.
4982 (IX86_BUILTIN_PERMPS): Ditto.
4983 (IX86_BUILTIN_PERMPD): Ditto.
4984 (IX86_BUILTIN_PMACSSWW): Ditto.
4985 (IX86_BUILTIN_PMACSWW): Ditto.
4986 (IX86_BUILTIN_PMACSSWD): Ditto.
4987 (IX86_BUILTIN_PMACSWD): Ditto.
4988 (IX86_BUILTIN_PMACSSDD): Ditto.
4989 (IX86_BUILTIN_PMACSDD): Ditto.
4990 (IX86_BUILTIN_PMACSSDQL): Ditto.
4991 (IX86_BUILTIN_PMACSSDQH): Ditto.
4992 (IX86_BUILTIN_PMACSDQL): Ditto.
4993 (IX86_BUILTIN_PMACSDQH): Ditto.
4994 (IX86_BUILTIN_PMADCSSWD): Ditto.
4995 (IX86_BUILTIN_PMADCSWD): Ditto.
4996 (IX86_BUILTIN_PHADDBW): Ditto.
4997 (IX86_BUILTIN_PHADDBD): Ditto.
4998 (IX86_BUILTIN_PHADDBQ): Ditto.
4999 (IX86_BUILTIN_PHADDWD): Ditto.
5000 (IX86_BUILTIN_PHADDWQ): Ditto.
5001 (IX86_BUILTIN_PHADDDQ): Ditto.
5002 (IX86_BUILTIN_PHADDUBW): Ditto.
5003 (IX86_BUILTIN_PHADDUBD): Ditto.
5004 (IX86_BUILTIN_PHADDUBQ): Ditto.
5005 (IX86_BUILTIN_PHADDUWD): Ditto.
5006 (IX86_BUILTIN_PHADDUWQ): Ditto.
5007 (IX86_BUILTIN_PHADDUDQ): Ditto.
5008 (IX86_BUILTIN_PHSUBBW): Ditto.
5009 (IX86_BUILTIN_PHSUBWD): Ditto.
5010 (IX86_BUILTIN_PHSUBDQ): Ditto.
5011 (IX86_BUILTIN_PROTB): Ditto.
5012 (IX86_BUILTIN_PROTW): Ditto.
5013 (IX86_BUILTIN_PROTD): Ditto.
5014 (IX86_BUILTIN_PROTQ): Ditto.
5015 (IX86_BUILTIN_PROTB_IMM): Ditto.
5016 (IX86_BUILTIN_PROTW_IMM): Ditto.
5017 (IX86_BUILTIN_PROTD_IMM): Ditto.
5018 (IX86_BUILTIN_PROTQ_IMM): Ditto.
5019 (IX86_BUILTIN_PSHLB): Ditto.
5020 (IX86_BUILTIN_PSHLW): Ditto.
5021 (IX86_BUILTIN_PSHLD): Ditto.
5022 (IX86_BUILTIN_PSHLQ): Ditto.
5023 (IX86_BUILTIN_PSHAB): Ditto.
5024 (IX86_BUILTIN_PSHAW): Ditto.
5025 (IX86_BUILTIN_PSHAD): Ditto.
5026 (IX86_BUILTIN_PSHAQ): Ditto.
5027 (IX86_BUILTIN_FRCZSS): Ditto.
5028 (IX86_BUILTIN_FRCZSD): Ditto.
5029 (IX86_BUILTIN_FRCZPS): Ditto.
5030 (IX86_BUILTIN_FRCZPD): Ditto.
5031 (IX86_BUILTIN_CVTPH2PS): Ditto.
5032 (IX86_BUILTIN_CVTPS2PH): Ditto.
5033 (IX86_BUILTIN_COMEQSS): Ditto.
5034 (IX86_BUILTIN_COMNESS): Ditto.
5035 (IX86_BUILTIN_COMLTSS): Ditto.
5036 (IX86_BUILTIN_COMLESS): Ditto.
5037 (IX86_BUILTIN_COMGTSS): Ditto.
5038 (IX86_BUILTIN_COMGESS): Ditto.
5039 (IX86_BUILTIN_COMUEQSS): Ditto.
5040 (IX86_BUILTIN_COMUNESS): Ditto.
5041 (IX86_BUILTIN_COMULTSS): Ditto.
5042 (IX86_BUILTIN_COMULESS): Ditto.
5043 (IX86_BUILTIN_COMUGTSS): Ditto.
5044 (IX86_BUILTIN_COMUGESS): Ditto.
5045 (IX86_BUILTIN_COMORDSS): Ditto.
5046 (IX86_BUILTIN_COMUNORDSS): Ditto.
5047 (IX86_BUILTIN_COMFALSESS): Ditto.
5048 (IX86_BUILTIN_COMTRUESS): Ditto.
5049 (IX86_BUILTIN_COMEQSD): Ditto.
5050 (IX86_BUILTIN_COMNESD): Ditto.
5051 (IX86_BUILTIN_COMLTSD): Ditto.
5052 (IX86_BUILTIN_COMLESD): Ditto.
5053 (IX86_BUILTIN_COMGTSD): Ditto.
5054 (IX86_BUILTIN_COMGESD): Ditto.
5055 (IX86_BUILTIN_COMUEQSD): Ditto.
5056 (IX86_BUILTIN_COMUNESD): Ditto.
5057 (IX86_BUILTIN_COMULTSD): Ditto.
5058 (IX86_BUILTIN_COMULESD): Ditto.
5059 (IX86_BUILTIN_COMUGTSD): Ditto.
5060 (IX86_BUILTIN_COMUGESD): Ditto.
5061 (IX86_BUILTIN_COMORDSD): Ditto.
5062 (IX86_BUILTIN_COMUNORDSD): Ditto.
5063 (IX86_BUILTIN_COMFALSESD): Ditto.
5064 (IX86_BUILTIN_COMTRUESD): Ditto.
5065 (IX86_BUILTIN_COMEQPS): Ditto.
5066 (IX86_BUILTIN_COMNEPS): Ditto.
5067 (IX86_BUILTIN_COMLTPS): Ditto.
5068 (IX86_BUILTIN_COMLEPS): Ditto.
5069 (IX86_BUILTIN_COMGTPS): Ditto.
5070 (IX86_BUILTIN_COMGEPS): Ditto.
5071 (IX86_BUILTIN_COMUEQPS): Ditto.
5072 (IX86_BUILTIN_COMUNEPS): Ditto.
5073 (IX86_BUILTIN_COMULTPS): Ditto.
5074 (IX86_BUILTIN_COMULEPS): Ditto.
5075 (IX86_BUILTIN_COMUGTPS): Ditto.
5076 (IX86_BUILTIN_COMUGEPS): Ditto.
5077 (IX86_BUILTIN_COMORDPS): Ditto.
5078 (IX86_BUILTIN_COMUNORDPS): Ditto.
5079 (IX86_BUILTIN_COMFALSEPS): Ditto.
5080 (IX86_BUILTIN_COMTRUEPS): Ditto.
5081 (IX86_BUILTIN_COMEQPD): Ditto.
5082 (IX86_BUILTIN_COMNEPD): Ditto.
5083 (IX86_BUILTIN_COMLTPD): Ditto.
5084 (IX86_BUILTIN_COMLEPD): Ditto.
5085 (IX86_BUILTIN_COMGTPD): Ditto.
5086 (IX86_BUILTIN_COMGEPD): Ditto.
5087 (IX86_BUILTIN_COMUEQPD): Ditto.
5088 (IX86_BUILTIN_COMUNEPD): Ditto.
5089 (IX86_BUILTIN_COMULTPD): Ditto.
5090 (IX86_BUILTIN_COMULEPD): Ditto.
5091 (IX86_BUILTIN_COMUGTPD): Ditto.
5092 (IX86_BUILTIN_COMUGEPD): Ditto.
5093 (IX86_BUILTIN_COMORDPD): Ditto.
5094 (IX86_BUILTIN_COMUNORDPD): Ditto.
5095 (IX86_BUILTIN_COMFALSEPD): Ditto.
5096 (IX86_BUILTIN_COMTRUEPD): Ditto.
5097 (IX86_BUILTIN_PCOMEQUB): Ditto.
5098 (IX86_BUILTIN_PCOMNEUB): Ditto.
5099 (IX86_BUILTIN_PCOMLTUB): Ditto.
5100 (IX86_BUILTIN_PCOMLEUB): Ditto.
5101 (IX86_BUILTIN_PCOMGTUB): Ditto.
5102 (IX86_BUILTIN_PCOMGEUB): Ditto.
5103 (IX86_BUILTIN_PCOMFALSEUB): Ditto.
5104 (IX86_BUILTIN_PCOMTRUEUB): Ditto.
5105 (IX86_BUILTIN_PCOMEQUW): Ditto.
5106 (IX86_BUILTIN_PCOMNEUW): Ditto.
5107 (IX86_BUILTIN_PCOMLTUW): Ditto.
5108 (IX86_BUILTIN_PCOMLEUW): Ditto.
5109 (IX86_BUILTIN_PCOMGTUW): Ditto.
5110 (IX86_BUILTIN_PCOMGEUW): Ditto.
5111 (IX86_BUILTIN_PCOMFALSEUW): Ditto.
5112 (IX86_BUILTIN_PCOMTRUEUW): Ditto.
5113 (IX86_BUILTIN_PCOMEQUD): Ditto.
5114 (IX86_BUILTIN_PCOMNEUD): Ditto.
5115 (IX86_BUILTIN_PCOMLTUD): Ditto.
5116 (IX86_BUILTIN_PCOMLEUD): Ditto.
5117 (IX86_BUILTIN_PCOMGTUD): Ditto.
5118 (IX86_BUILTIN_PCOMGEUD): Ditto.
5119 (IX86_BUILTIN_PCOMFALSEUD): Ditto.
5120 (IX86_BUILTIN_PCOMTRUEUD): Ditto.
5121 (IX86_BUILTIN_PCOMEQUQ): Ditto.
5122 (IX86_BUILTIN_PCOMNEUQ): Ditto.
5123 (IX86_BUILTIN_PCOMLTUQ): Ditto.
5124 (IX86_BUILTIN_PCOMLEUQ): Ditto.
5125 (IX86_BUILTIN_PCOMGTUQ): Ditto.
5126 (IX86_BUILTIN_PCOMGEUQ): Ditto.
5127 (IX86_BUILTIN_PCOMFALSEUQ): Ditto.
5128 (IX86_BUILTIN_PCOMTRUEUQ): Ditto.
5129 (IX86_BUILTIN_PCOMEQB): Ditto.
5130 (IX86_BUILTIN_PCOMNEB): Ditto.
5131 (IX86_BUILTIN_PCOMLTB): Ditto.
5132 (IX86_BUILTIN_PCOMLEB): Ditto.
5133 (IX86_BUILTIN_PCOMGTB): Ditto.
5134 (IX86_BUILTIN_PCOMGEB): Ditto.
5135 (IX86_BUILTIN_PCOMFALSEB): Ditto.
5136 (IX86_BUILTIN_PCOMTRUEB): Ditto.
5137 (IX86_BUILTIN_PCOMEQW): Ditto.
5138 (IX86_BUILTIN_PCOMNEW): Ditto.
5139 (IX86_BUILTIN_PCOMLTW): Ditto.
5140 (IX86_BUILTIN_PCOMLEW): Ditto.
5141 (IX86_BUILTIN_PCOMGTW): Ditto.
5142 (IX86_BUILTIN_PCOMGEW): Ditto.
5143 (IX86_BUILTIN_PCOMFALSEW): Ditto.
5144 (IX86_BUILTIN_PCOMTRUEW): Ditto.
5145 (IX86_BUILTIN_PCOMEQD): Ditto.
5146 (IX86_BUILTIN_PCOMNED): Ditto.
5147 (IX86_BUILTIN_PCOMLTD): Ditto.
5148 (IX86_BUILTIN_PCOMLED): Ditto.
5149 (IX86_BUILTIN_PCOMGTD): Ditto.
5150 (IX86_BUILTIN_PCOMGED): Ditto.
5151 (IX86_BUILTIN_PCOMFALSED): Ditto.
5152 (IX86_BUILTIN_PCOMTRUED): Ditto.
5153 (IX86_BUILTIN_PCOMEQQ): Ditto.
5154 (IX86_BUILTIN_PCOMNEQ): Ditto.
5155 (IX86_BUILTIN_PCOMLTQ): Ditto.
5156 (IX86_BUILTIN_PCOMLEQ): Ditto.
5157 (IX86_BUILTIN_PCOMGTQ): Ditto.
5158 (IX86_BUILTIN_PCOMGEQ): Ditto.
5159 (IX86_BUILTIN_PCOMFALSEQ): Ditto.
5160 (IX86_BUILTIN_PCOMTRUEQ): Ditto.
5161 (enum multi_arg_type): New enum for describing the various SSE5
5162 intrinsic argument types.
5163 (bdesc_multi_arg): New table for SSE5 intrinsics.
5164 (ix86_init_mmx_sse_builtins): Add SSE5 intrinsic support.
5165 (ix86_expand_multi_arg_builtin): New function for creating SSE5
5167 (ix86_expand_builtin): Add SSE5 intrinsic support.
5168 (ix86_sse5_valid_op_p): New function to validate SSE5 3 and 4
5169 operand instructions.
5170 (ix86_expand_sse5_multiple_memory): New function to split the
5171 second memory reference from SSE5 instructions.
5172 (type_has_variadic_args_p): Delete in favor of stdarg_p.
5173 (ix86_return_pops_args): Use stdarg_p to determine if the function
5174 has variable arguments.
5175 (ix86_setup_incoming_varargs): Ditto.
5176 (x86_this_parameter): Ditto.
5178 * config/i386/i386-protos.h (ix86_expand_sse5_unpack): Add
5180 (ix86_expand_sse5_pack): Ditto.
5181 (ix86_sse5_valid_op_p): Ditto.
5182 (ix86_expand_sse5_multiple_memory): Ditto.
5184 * config/i386/i386.md (UNSPEC_SSE5_INTRINSIC): Add new UNSPEC
5185 constant for SSE5 support.
5186 (UNSPEC_SSE5_UNSIGNED_CMP): Ditto.
5187 (UNSPEC_SSE5_TRUEFALSE): Ditto.
5188 (UNSPEC_SSE5_PERMUTE): Ditto.
5189 (UNSPEC_SSE5_ASHIFT): Ditto.
5190 (UNSPEC_SSE5_LSHIFT): Ditto.
5191 (UNSPEC_FRCZ): Ditto.
5192 (UNSPEC_CVTPH2PS): Ditto.
5193 (UNSPEC_CVTPS2PH): Ditto.
5194 (PCOM_FALSE): Add new constant for true/false SSE5 comparisons.
5196 (COM_FALSE_S): Ditto.
5197 (COM_FALSE_P): Ditto.
5198 (COM_TRUE_S): Ditto.
5199 (COM_TRUE_P): Ditto.
5200 (type attribute): Add ssemuladd, sseiadd1, ssecvt1, sse4arg types.
5201 (unit attribute): Add support for ssemuladd, ssecvt1, sseiadd1 sse4arg
5203 (memory attribute): Ditto.
5204 (sse4_1_round<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
5205 Use SSE4_1_ROUND_* constants instead of hard coded numbers.
5206 (rint<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
5207 (floor<mode>2): Ditto.
5208 (ceil<mode>2): Ditto.
5209 (btrunc<mode>2): Ditto.
5210 (nearbyintdf2): Ditto.
5211 (nearbyintsf2): Ditto.
5212 (sse_setccsf): Disable if SSE5.
5213 (sse_setccdf): Ditto.
5214 (sse5_setcc<mode>): New support for SSE5 conditional move.
5215 (sse5_pcmov_<mode>): Ditto.
5217 * config/i386/sse.md (SSEMODE1248): New mode iterator for SSE5.
5219 (SSEMODEF2P): Ditto.
5220 (ssemodesuffixf4): New mode attribute for SSE5.
5221 (ssemodesuffixf2s): Ditto.
5222 (ssemodesuffixf2c): Ditto.
5223 (sserotatemax): Ditto.
5224 (ssescalarmode): Ditto.
5225 (sse_maskcmpv4sf3): Disable if SSE5.
5226 (sse_maskcmpv2df3): Ditto.
5227 (sse_vmmaskcmpv4sf3): Ditto.
5228 (sse5_fmadd<mode>4): Add SSE5 floating point multiply/add instructions.
5229 (sse5_vmfmadd<mode>4): Ditto.
5230 (sse5_fmsub<mode>4): Ditto.
5231 (sse5_vmfmsub<mode>4): Ditto.
5232 (sse5_fnmadd<mode>4): Ditto.
5233 (sse5_vmfnmadd<mode>4): Ditto.
5234 (sse5_fnmsub<mode>4): Ditto.
5235 (sse5_vmfnmsub<mode>4): Ditto.
5236 (sse5i_fmadd<mode>4): Ditto.
5237 (sse5i_fmsub<mode>4): Ditto.
5238 (sse5i_fnmadd<mode>4): Ditto.
5239 (sse5i_fnmsub<mode>4): Ditto.
5240 (sse5i_vmfmadd<mode>4): Ditto.
5241 (sse5i_vmfmsub<mode>4): Ditto.
5242 (sse5i_vmfnmadd<mode>4): Ditto.
5243 (sse5i_vmfnmsub<mode>4): Ditto.
5244 (mulv16qi3): Add SSE5 support.
5246 (sse5_mulv4si3): New insn for 32-bit multiply support on SSE5.
5247 (sse2_mulv4si3): Disable if SSE5.
5248 (sse4_1_roundpd): Use TARGET_ROUND instead of TARGET_SSE4_1.
5249 (sse4_1_roundps): Ditto.
5250 (sse4_1_roundsd): Ditto.
5251 (sse4_1_roundss): Ditto.
5252 (sse_maskcmpv4sf3): Disable if SSE5 so the SSE5 instruction will
5254 (sse_maskcmpsf3): Ditto.
5255 (sse_vmmaskcmpv4sf3): Ditto.
5256 (sse2_maskcmpv2df3): Ditto.
5257 (sse2_maskcmpdf3): Ditto.
5258 (sse2_vmmaskcmpv2df3): Ditto.
5259 (sse2_eq<mode>3): Ditto.
5260 (sse2_gt<mode>3): Ditto.
5261 (sse5_pcmov_<mode>): Add SSE5 support.
5262 (vec_unpacku_hi_v16qi): Ditto.
5263 (vec_unpacks_hi_v16qi): Ditto.
5264 (vec_unpacku_lo_v16qi): Ditto.
5265 (vec_unpacks_lo_v16qi): Ditto.
5266 (vec_unpacku_hi_v8hi): Ditto.
5267 (vec_unpacks_hi_v8hi): Ditto.
5268 (vec_unpacku_lo_v8hi): Ditto.
5269 (vec_unpacks_lo_v8hi): Ditto.
5270 (vec_unpacku_hi_v4si): Ditto.
5271 (vec_unpacks_hi_v4si): Ditto.
5272 (vec_unpacku_lo_v4si): Ditto.
5273 (vec_unpacks_lo_v4si): Ditto.
5274 (sse5_pmacsww): New SSE5 intrinsic insn.
5275 (sse5_pmacssww): Ditto.
5276 (sse5_pmacsdd): Ditto.
5277 (sse5_pmacssdd): Ditto.
5278 (sse5_pmacssdql): Ditto.
5279 (sse5_pmacssdqh): Ditto.
5280 (sse5_pmacsdqh): Ditto.
5281 (sse5_pmacsswd): Ditto.
5282 (sse5_pmacswd): Ditto.
5283 (sse5_pmadcsswd): Ditto.
5284 (sse5_pmadcswd): Ditto.
5285 (sse5_pcmov_<move>): Conditional move support on SSE5.
5286 (sse5_phaddbw): New SSE5 intrinsic insn.
5287 (sse5_phaddbd): Ditto.
5288 (sse5_phaddbq): Ditto.
5289 (sse5_phaddwd): Ditto.
5290 (sse5_phaddwq): Ditto.
5291 (sse5_phadddq): Ditto.
5292 (sse5_phaddubw): Ditto.
5293 (sse5_phaddubd): Ditto.
5294 (sse5_phaddubq): Ditto.
5295 (sse5_phadduwd): Ditto.
5296 (sse5_phadduwq): Ditto.
5297 (sse5_phaddudq): Ditto.
5298 (sse5_phsubbw): Ditto.
5299 (sse5_phsubwd): Ditto.
5300 (sse5_phsubdq): Ditto.
5301 (sse5_pperm): Ditto.
5302 (sse5_pperm_sign_v16qi_v8hi): New insns for pack/unpack with SSE5.
5303 (sse5_pperm_zero_v16qi_v8hi): Ditto.
5304 (sse5_pperm_sign_v8hi_v4si): Ditto.
5305 (sse5_pperm_zero_v8hi_v4si): Ditto.
5306 (sse5_pperm_sign_v4si_v2di): Ditto.
5307 (sse5_pperm_sign_v4si_v2di): Ditto.
5308 (sse5_pperm_pack_v2di_v4si): Ditto.
5309 (sse5_pperm_pack_v4si_v8hi): Ditto.
5310 (sse5_pperm_pack_v8hi_v16qi): Ditto.
5311 (sse5_perm<mode>): New SSE5 intrinsic insn.
5312 (rotl<mode>3): Ditto.
5313 (sse5_rotl<mode>3): Ditto.
5314 (sse5_ashl<mode>3): Ditto.
5315 (sse5_lshl<mode>3): Ditto.
5316 (sse5_frcz<mode>2): Ditto.
5317 (sse5s_frcz<mode>2): Ditto.
5318 (sse5_cvtph2ps): Ditto.
5319 (sse5_cvtps2ph): Ditto.
5320 (sse5_vmmaskcmp<mode>3): Ditto.
5321 (sse5_com_tf<mode>3): Ditto.
5322 (sse5_maskcmp<mode>3): Ditto.
5323 (sse5_maskcmp_uns<mode>3): Ditto.
5324 (sse5_maskcmp_uns2<mode>3): Ditto.
5325 (sse5_pcom_tf<mode>3): Ditto.
5327 * config/i386/predicates.md (sse5_comparison_float_operator):
5328 New predicate to match the comparison operators supported by
5329 the SSE5 com instruction.
5330 (ix86_comparison_int_operator): New predicate to match just the
5331 signed int comparisons.
5332 (ix86_comparison_uns_operator): New predicate to match just the
5333 unsigned int comparisons.
5335 * doc/invoke.texi (-msse5): Add documentation.
5336 (-mfused-madd): Ditto.
5338 * doc/extend.texi (x86 intrinsics): Document new SSE5 intrinsics.
5340 * config.gcc (i[34567]86-*-*): Include bmmintrin.h and
5342 (x86_64-*-*): Ditto.
5344 * config/i386/cpuid.h (bit_SSE5): Define SSE5 bit.
5346 * config/i386/bmmintrin.h: New file, provide common x86 compiler
5347 intrinisics for SSE5.
5349 * config/i386/smmintrin.h: Move instructions shared with SSE5 to
5352 * config/i386/mmintrin-common.h: New file, to contain common
5353 instructions between SSE4.1 and SSE5.
5355 * config/i386/netware.c (gen_stdcall_or_fastcall_decoration): Use
5356 FOREACH_FUNCTION_ARGS to iterate over the argument list.
5357 (gen_regparm_prefix): Ditto.
5359 * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix): Use
5360 FOREACH_FUNCTION_ARGS to iterate over the argument list. Use
5361 prototype_p to determine if a function is prototyped.
5363 2009-08-25 Ville Voutilainen <ville.voutilainen@gmail.com>
5365 * c-common.c (c_common_reswords) add the alignof keyword,
5366 with same RID as __alignof and __alignof__
5368 2009-08-25 Anatoly Sokolov <aesok@post.ru>
5370 * hooks.h (hook_bool_const_int_const_int_true): Declare.
5371 * hooks.c (hook_bool_const_int_const_int_true): New function.
5372 * target.h (struct gcc_target): Add can_eliminate field.
5373 * target-def.h (TARGET_CAN_ELIMINATE): Define.
5374 (TARGET_INITIALIZER): Use TARGET_CAN_ELIMINATE.
5375 * ira.c (setup_eliminable_regset): Use can_eliminate target hook.
5376 * reload1.c (update_eliminables, init_elim_table): (Ditto.).
5377 (elim_table): Revise comment.
5378 * system.h (CAN_ELIMINATE): Poison.
5379 * defaults.h (CAN_ELIMINATE): Remove.
5380 * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
5382 * config/alpha/vms.h (CAN_ELIMINATE): Remove macro.
5383 * config/alpha/alpha.c (TARGET_CAN_ELIMINATE) [TARGET_ABI_OPEN_VMS]:
5385 (alpha_vms_can_eliminate): Declare as static, change return type to
5387 * config/alpha/alpha-protos.h (alpha_vms_can_eliminate): Remove.
5389 * config/arm/arm.h (CAN_ELIMINATE): Remove macro.
5390 * config/arm/arm.c (TARGET_CAN_ELIMINATE): Define macro.
5391 (arm_can_eliminate): New function.
5393 * config/avr/avr.h (CAN_ELIMINATE): Remove macro.
5394 * config/avr/avr.c (TARGET_CAN_ELIMINATE): Define macro.
5395 (avr_can_eliminate): Declare as static.
5396 * config/avr/avr-protos.h (avr_can_eliminate): Remove.
5398 * config/bfin/bfin.h (CAN_ELIMINATE): Remove macro.
5399 * config/bfin/bfin.c (TARGET_CAN_ELIMINATE): Define macro.
5400 (bfin_can_eliminate): New function.
5402 * config/crx/crx.h (CAN_ELIMINATE): Remove macro.
5403 * config/crx/crx.c (TARGET_CAN_ELIMINATE): Define macro.
5404 (crx_can_eliminate): New function.
5406 * config/fr30/fr30.h (CAN_ELIMINATE): Remove macro.
5407 * config/fr30/fr30.c (TARGET_CAN_ELIMINATE): Define macro.
5408 (fr30_can_eliminate): New function.
5410 * config/frv/frv.h (CAN_ELIMINATE): Remove macro.
5411 * config/frv/frv.c (TARGET_CAN_ELIMINATE): Define macro.
5412 (frv_can_eliminate): New function.
5414 * config/h8300/h8300.h (CAN_ELIMINATE): Remove macro.
5415 * config/h8300/h8300.c (TARGET_CAN_ELIMINATE): Define macro.
5416 (h8300_can_eliminate): New function.
5418 * config/i386/i386.h (CAN_ELIMINATE): Remove macro.
5419 * config/i386/i386.c (TARGET_CAN_ELIMINATE): Define macro.
5420 (i386_can_eliminate): Declare as static, change return type to bool.
5421 * config/i386/i386-protos.h (i386_can_eliminate): Remove.
5423 * config/ia64/ia64.h (CAN_ELIMINATE): Remove macro.
5424 * config/ia64/ia64.c (TARGET_CAN_ELIMINATE): Define macro.
5425 (ia64_can_eliminate): New function.
5427 * config/iq2000/iq2000.h (CAN_ELIMINATE): Remove macro.
5428 * config/iq2000/iq2000.c (TARGET_CAN_ELIMINATE): Define macro.
5429 (iq2000_can_eliminate): New function.
5431 * config/m32r/m32r.h (CAN_ELIMINATE): Remove macro.
5432 * config/m32r/m32r.c (TARGET_CAN_ELIMINATE): Define macro.
5433 (m32r_can_eliminate): New function.
5435 * config/m68hc11/m68hc11.h (CAN_ELIMINATE): Remove macro.
5436 * config/m68hc11/m68hc11.c (TARGET_CAN_ELIMINATE): Define macro.
5437 (m68hc11_can_eliminate): New function.
5439 * config/m68k/m68k.h (CAN_ELIMINATE): Remove macro.
5440 * config/m68k/m68k.c (TARGET_CAN_ELIMINATE): Define macro.
5441 (m68k_can_eliminate): New function.
5443 * config/mep/mep.h (CAN_ELIMINATE): Remove macro.
5444 * config/mep/mep.c (TARGET_CAN_ELIMINATE): Define macro.
5445 (mep_can_eliminate): New function.
5447 * config/mips/mips.h (CAN_ELIMINATE): Remove macro.
5448 * config/mips/mips.c (TARGET_CAN_ELIMINATE): Define macro.
5449 (mips_can_eliminate): New function.
5451 * config/rs6000/rs6000.h (CAN_ELIMINATE): Remove macro.
5452 * config/rs6000/rs6000.c (TARGET_CAN_ELIMINATE): Define macro.
5453 (rs6000_can_eliminate): New function.
5455 * config/s390/s390.h (CAN_ELIMINATE): Remove macro.
5456 * config/s390/s390.c (TARGET_CAN_ELIMINATE): Define macro.
5457 (s390_can_eliminate): Declare as static.
5458 * config/s390/s390-protos.h (sparc_can_eliminate): Remove.
5460 * config/score/score.h (CAN_ELIMINATE): Remove macro.
5461 * config/score/score.c (TARGET_CAN_ELIMINATE): Define macro.
5462 (score_can_eliminate): New function.
5464 * config/sparc/sparc.h (CAN_ELIMINATE): Remove macro.
5465 * config/sparc/sparc.c (TARGET_CAN_ELIMINATE): Define macro.
5466 (sparc_can_eliminate): Declare as static.
5467 * config/sparc/sparc-protos.h (sparc_can_eliminate): Remove.
5469 * config/stormy16/stormy16.h (CAN_ELIMINATE): Remove macro.
5470 * config/stormy16/stormy16.c (TARGET_CAN_ELIMINATE): Define macro.
5471 (xstormy16_can_eliminate): New function.
5473 * config/v850/v850.h (CAN_ELIMINATE): Remove macro.
5474 * config/v850/v850.c (TARGET_CAN_ELIMINATE): Define macro.
5475 (v850_can_eliminate): New function.
5477 2009-08-25 Uros Bizjak <ubizjak@gmail.com>
5479 * config/alpha/alpha.md (*cmpdf_ieee_ext[123]): Remove.
5480 (*cmpdf_internal): Enable for all ALPHA_FPTM levels.
5481 (*movdfcc_ext[1234]): Disable for IEEE mode.
5483 2009-08-25 Eric Botcazou <ebotcazou@adacore.com>
5485 * gimplify.c (prepare_gimple_addressable): New static function.
5486 (gimplify_modify_expr_to_memcpy): Invoke it on the RHS before marking
5488 (gimplify_addr_expr): Invoke it similarly on the operand instead of
5489 manually fiddling with it.
5491 2009-08-25 Michael Matz <matz@suse.de>
5493 * expr.h (jumpifnot_1, jumpif_1, do_jump_1): Declare.
5494 * dojump.c (do_jump_by_parts_greater): Take two operands instead of
5496 (do_jump_by_parts_equality, do_compare_and_jump): Ditto.
5497 (jumpifnot_1, jumpif_1): New wrappers for do_jump_1.
5498 (do_jump): Split out code for simple binary comparisons into ...
5499 (do_jump_1): ... this, taking the individual operands and code.
5500 Change callers to helper function above accordingly.
5501 * expr.c (expand_expr_real_1): Use jumpifnot_1 for simple binary
5504 2009-08-25 Michael Matz <matz@suse.de>
5506 * expr.h (struct separate_ops, sepops): New type for passing
5507 around an exploded simple expression.
5508 * optabs.c (expand_widen_pattern_expr, expand_vec_shift_expr):
5509 Use this structure instead of expression tree.
5510 (get_vcond_icode, expand_vec_cond_expr_p): Don't take whole
5511 expression, only its type.
5512 (expand_vec_cond_expr): Take type and individual operands instead
5514 * optabs.h (expand_widen_pattern_expr, expand_vec_cond_expr,
5515 expand_vec_shift_expr): Change prototype accordingly.
5516 * tree-vect-stmts.c (vectorizable_condition): Change call of
5517 expand_vec_cond_expr_p to pass only type.
5518 * expr.c (do_store_flags): Change prototype and implementation
5519 to take an exploded expression.
5520 (expand_expr_real_1): New local ops initialized with details
5521 of the full expression. Use it instead of full
5522 expression in calls to do_store_flags, expand_vec_cond_expr,
5523 expand_widen_pattern_expr and expand_vec_shift_expr.
5525 2009-08-25 Michael Matz <matz@suse.de>
5527 * expr.c (expand_expr_real_1): New local treeop0, treeop1,
5528 treeop2 initialized with first three operands of the full expression.
5529 Substitute all TREE_OPERAND (exp, [012]) calls with them.
5531 2009-08-25 Kai Tietz <kai.tietz@onevision.com>
5533 * gcc/gthr-win32.h (__UNUSED_PARAM): Define, if not already present.
5534 (__gthread_objc_condition_allocate): Mark arguments as unused.
5535 (__gthread_objc_condition_deallocate): Likewise.
5536 (__gthread_objc_condition_wait): Likewise.
5537 (__gthread_objc_condition_broadcast): Likewise.
5538 (__gthread_objc_condition_signal): Likewise.
5539 (__gthread_objc_thread_detach): Cast via INT_PTR to pointer.
5540 (__gthread_objc_thread_id): Likewise.
5542 2009-08-25 Janus Weil <janus@gcc.gnu.org>
5545 * tree-pretty-print.c (print_call_name): Print the correct call name
5546 for procedure pointer components.
5548 2009-08-24 Steve Ellcey <sje@cup.hp.com>
5550 * config/ia64/ia64.c (ia64_promote_function_mode): Call
5551 default_promote_function_mode when not VMS.
5553 2009-08-24 Olivier Hainque <hainque@adacore.com>
5555 * convert.c (convert_to_integer): Don't assume an input pointer is
5556 POINTER_SIZE wide. Fetch from the type instead.
5558 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5560 * configure.ac (AC_PREREQ): Bump to 2.64.
5562 2009-08-24 Rafael Avila de Espindola <espindola@google.com>
5564 * gcc.c (standard_exec_prefix_1,standard_exec_prefix_2): Remove.
5565 (process_command): Don't search standard_exec_prefix_1 and
5566 standard_exec_prefix_2.
5568 2009-08-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5570 * config/arm/arm.c (output_return_instruction): Handle for
5573 2009-08-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5575 * config/arm/arm.c (arm_select_cc_mode): Handle subreg.
5577 2009-08-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5579 * config/arm/vfp.md (*arm_movdi_vfp): Mark as predicable.
5580 (*arm_movdf_vfp): Likewise.
5582 2009-08-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5584 * config/arm/neon.md (vashl<mode>3): Rename from ashl<mode>3.
5585 (vashr<mode>3): Rename from ashr<mode>3.
5586 (vlshr<mode>3): Rename from lshr<mode>3.
5588 2009-08-24 Kai Tietz <kai.tietz@onevision.com>
5591 * c-format.c (format_wanted_type): Add new member scalar_identity_flag.
5592 (check_format_info_main): Use scalar_identify_flag.
5593 (check_format_types): Check for scalar size identity if
5594 scalar_identify_flag is set.
5595 (printf_length_specs): Extend by new field.
5596 (asm_fprintf_length_specs): Likewise.
5597 (gcc_diag_length_specs): Likewise.
5598 (scanf_length_specs): Likewise.
5599 (strfmon_length_specs): Likewise.
5600 (gcc_gfc_length_specs): Likewise.
5601 * config/i386/msformat-c.c (ms_printf_length_specs): Likewise.
5602 (ms_printf_flag_specs): Likewise.
5603 * c-format.h (format_length_info): Add new member scalar_identity_flag.
5605 2009-08-23 Uros Bizjak <ubizjak@gmail.com>
5608 * config/i386/i386.c (*call_pop_1): Disable for sibling calls.
5609 (*call_value_pop_1): Ditto.
5610 (*sibcall_pop_1): New insn pattern.
5611 (*sibcall_value_pop_1): Ditto.
5613 2009-08-23 Alan Modra <amodra@bigpond.net.au>
5616 * config/rs6000/rs6000.md (rotlsi3_64, ashlsi3_64, lshrsi3_64,
5619 2009-08-23 Alan Modra <amodra@bigpond.net.au>
5622 * fwprop.c (try_fwprop_subst): Allow multiple sets.
5623 (get_reg_use_in): New function.
5624 (forward_propagate_subreg): Propagate through subreg of zero_extend
5627 2009-08-22 Kaz Kojima <kkojima@gcc.gnu.org>
5629 * config/sh/t-sh (TARGET_LIBGCC2_CFLAGS): Define.
5630 * config/sh/t-netbsd (TARGET_LIBGCC2_CFLAGS): Add -mieee.
5632 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5634 * configure.ac: Remove --with-datarootdir, --with-docdir,
5635 --with-htmldir switches. No need to call AC_SUBST for
5636 datarootdir, docdir, htmldir any more.
5637 * configure: Regenerate.
5638 * doc/install.texi (Configuration): Document --datarootdir,
5639 --docdir, --htmldir, --pdfdir; update documentation for
5640 --infodir, --mandir.
5641 (Prerequisites): Bump Autoconf version to 2.64, Automake to 1.11,
5644 * aclocal.m4: Regenerate.
5645 * config.in: Regenerate.
5646 * configure: Regenerate.
5648 2009-08-21 Douglas B Rupp <rupp@gnat.com>
5649 Olivier Hainque <hainque@adacore.com>
5651 * config/ia64/ia64.c: Include libfuncs.h.
5652 (TARGET_PROMOTE_FUNCITON_MODE): Define target macro.
5653 (ia64_expand_call): Use reg 25 on VMS.
5654 (ia64_initialize_trampoline): Fix for VMS ABI.
5655 (ia64_function_arg_offset): Always returns 0 when TARGET_ABI_OPEN_VMS.
5656 (ia64_function_arg): Initialize reg 25 on VMS.
5657 Fix OpenVMS ABI issues for varargs.
5658 For OpenVMS, emit the Argument Information register set in the
5659 incoming/sibcall case as well.
5660 (ia64_arg_type): New function.
5661 (ia64_function_arg_advance): Keep track of cum->words.
5662 Fix OpenVMS ABI issues for varargs.
5663 (ia64_function_value): On VMS, promote mode of non-aggregate types.
5664 (ia64_override_options): Set flag_no_common on VMS.
5665 (ia64_init_builtins): Disable FWRITE builtin.
5666 (ia64_asm_output_external): Call DO_CRTL_NAMES.
5667 (ia64_vms_init_libfuncs): Add decc$ routines.
5668 (ia64_vms_valid_pointer_mode): New function.
5669 (ia64_struct_value_rtx): Allways NULL_RTX on VMS.
5670 (ia64_promote_function_mode): New function
5671 * config/ia64/ia64.h (TARGET_ABI_OPEN_VMS): Define as 0 for default.
5672 (LONG_DOUBLE_TYPE_SIZE): Force to 64 on VMS.
5673 (LIBCGC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
5674 (INIT_CUMULATIVE_ARGS): Add atypes for VMS.
5675 (INIT_CUMULATIVE_INCOMING_ARGS): Likewise.
5676 (ASM_OUTPUT_DEF): Use ISDIGIT instead of isdigit.
5677 Suppress trailing '#' if VALUE is numeric.
5678 * config/ia64/vms.h (PROMOTE_FUNCTION_MODE): Remove, code moved to
5679 ia64_promote_function_mode.
5680 (TARGET_VALID_POINTER_MODE): Define.
5682 2009-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
5685 * config/rs6000/rs6000.c (rs6000_override_options): Use
5686 TARGET_64BIT instead of TARGET_POWERPC64 to set the size of pointers.
5689 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Fix
5690 reporting of vector + decimal/boolean/complex error.
5692 2009-08-21 Jakub Jelinek <jakub@redhat.com>
5694 * config/rs6000/rs6000.c (rs6000_init_builtins): Fix type of
5695 __vector double TYPE_DECL.
5697 2009-08-21 Richard Earnshaw <rearnsha@arm.com>
5699 * arm.h (MACHMODE): New define. Include insn-modes.h if available.
5700 (CUMULATIVE_ARGS): Use MACHMODE for declaration of aapcs_vfp_mode.
5701 * arm.c (aapcs_vfp_is_call_or_return_candidate): Change base_mode
5702 to pointer to enum machine_mode. Update all callers as needed.
5704 2009-08-21 Uros Bizjak <ubizjak@gmail.com>
5706 * config/alpha/alpha.md (exception_receiver): Emit alternative
5707 GP load sequence if flag_reorder_blocks_and_partition is set.
5708 (*exception_receiver_2): Also enable when
5709 flag_reorder_blocks_and_partition is set.
5711 2009-08-20 Matt Rice <ratmice@gmail.com>
5712 Diego Novillo <dnovillo@google.com>
5714 * Makefile.in (PLUGIN_HEADERS): Include incpath.h and
5717 2009-08-20 Richard Guenther <rguenther@suse.de>
5719 * c-objc-common.h (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Do not define.
5720 * c-tree.h (c_dup_lang_specific_decl): Remove.
5721 (struct lang_decl, struct lang_type): Move definitions ...
5722 * c-lang.h: ... here. New file.
5723 * c-decl.c: Include c-lang.h.
5724 (c_dup_lang_specific_decl): Remove.
5725 * c-typeck.c: Include c-lang.h.
5726 * Makefile.in (c-decl.o): Add c-lang.h dependency.
5727 (c-typeck.o): Likewise.
5728 * c-config-lang.in (gtfiles): Add c-lang.h.
5729 * gengtype.c (get_output_file_with_visibility): Handle c-lang.h
5732 2009-08-20 Uros Bizjak <ubizjak@gmail.com>
5734 * config/alpha/alpha.c (alpha_end_function): Do not clear
5735 crtl->emit structure and free insn locators if cfun->is_thunk is true,
5736 this is now handled in generic code.
5738 2009-08-20 Andreas Krebbel <krebbel1@de.ibm.com>
5740 * config/s390/s390.c (Z10_PREDICT_DISTANCE): New macro.
5741 (s390_z10_fix_long_loop_prediction): New function.
5742 (s390_z10_optimize_cmp): INSN walk moved to callee - s390_reorg.
5743 (s390_reorg): Walk over the INSNs and invoke
5744 s390_z10_fix_long_loop_prediction and s390_z10_optimize_cmp.
5746 2009-08-20 Andreas Krebbel <krebbel1@de.ibm.com>
5748 * config/s390/s390.md ("*brx_stage1_<GPR:mode>", "*brxg_64bit",
5749 "*brx_64bit", "*brx_31bit"): New patterns.
5750 * config/s390/s390.c ('E'): New output modifier.
5752 2009-08-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5753 Richard Earnshaw <richard.earnshaw@arm.com>
5755 * config/arm/arm.c (arm_emit_movpair): Handle CONST_INT.
5756 * config/arm/arm.md (*arm_movtas_ze): New pattern for movt.
5758 2009-08-19 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5760 * pa.md (reload_inhi, reload_outhi, reload_inqi, reload_outqi): New
5762 * pa.c (emit_move_sequence): Check if address of operand1 is valid
5763 for mode mode of operand0 when doing secondary reload for SAR.
5765 2009-08-19 Jakub Jelinek <jakub@redhat.com>
5768 * expr.c (expand_expr_real_1) <normal_inner_ref>: Handle all kinds
5769 of CONCAT, not just bitpos 0 bitsize size of the whole CONCAT.
5771 2009-08-19 Jason Merrill <jason@redhat.com>
5773 * doc/invoke.texi (C++ Dialect Options): Note change of minimum
5774 supported template depth in C++0x.
5776 2009-08-19 Jakub Jelinek <jakub@redhat.com>
5778 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Don't call
5779 free_after_compilation.
5780 * config/score/score7.c (score7_output_mi_thunk): Likewise.
5781 * config/score/score3.c (score3_output_mi_thunk): Likewise.
5782 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
5783 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
5784 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
5785 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
5786 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
5788 2009-08-19 Ian Lance Taylor <iant@google.com>
5790 * doc/md.texi (Insn Canonicalizations): Correct canonicalization
5791 of (plus (mult (neg B) C) A).
5793 2009-08-18 Michael Matz <matz@suse.de>
5795 * omp-low.c (optimize_omp_library_calls): Use types_compatible_p
5796 instead of comparing TYPE_MAIN_VARIANT for equality.
5797 * tree-vect-patterns.c (vect_recog_dot_prod_pattern,
5798 vect_recog_widen_mult_pattern, vect_recog_widen_sum_pattern): Ditto.
5799 * tree-vect-loop.c (vect_is_simple_reduction): Ditto.
5800 * gimplify.c (goa_lhs_expr_p): Ditto and use
5801 STRIP_USELESS_TYPE_CONVERSION.
5803 2009-08-18 Michael Matz <matz@suse.de>
5805 * tree-ssa-structalias.c (create_variable_info_for): Also mark
5806 first field in a struct.
5807 (intra_create_variable_infos): Don't deal with flag_argument_noalias.
5809 2009-08-18 Uros Bizjak <ubizjak@gmail.com>
5811 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn
5812 locators before emit_insn is called. Remove assert that
5814 (alpha_end_function): Clear crtl->emit structure and free insn
5815 locators if cfun->is_thunk is true.
5817 2009-08-18 Jason Merrill <jason@redhat.com>
5819 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
5821 * configure.ac: Test for it.
5822 * configure, config.in: Regenerate.
5823 * doc/install.texi: Document --enable-gnu-unique-object.
5825 2009-08-18 Richard Guenther <rguenther@suse.de>
5828 * builtins.c (fold_builtin_pow): Fold pow(pow(x,y),z) to
5829 pow(x,y*z) only if x is nonnegative.
5831 2009-08-18 Jakub Jelinek <jakub@redhat.com>
5833 * bb-reorder.c (fix_up_fall_thru_edges): Only call invert_jump
5837 * config/rs6000/rs6000.c (rs6000_legitimize_address): For
5838 [DT][FDI]mode ensure the offset isn't 4/8/12 bytes below 0x8000.
5840 2009-08-17 DJ Delorie <dj@redhat.com>
5842 * config/m32c/m32c.md (UNS_FSETB, UNS_FREIT): New.
5843 * config/m32c/prologue.md (epilogue_freit): New.
5845 * config/m32c/m32c.c (m32c_function_needs_enter): Add prototype.
5846 (bank_switch_p): Likewise.
5847 (fast_interrupt_p): Likewise.
5848 (interrupt_p): Likewise.
5849 (m32c_conditional_register_usage): Round memregs size up.
5850 (need_to_save): We only need to save $a0 when we use ENTER.
5851 (interrupt_p): Check for fast_interrupt too.
5852 (bank_switch_p): New.
5853 (fast_interrupt_p): New.
5854 (m32c_attribute_table): Add bank_switch and fast_interrupt.
5855 (m32c_emit_prolog): Support bank switching and fast interrupts.
5856 * doc/extend.texi (Function Attributes): Add bank_switch and
5859 2009-08-17 Douglas B Rupp <rupp@gnat.com>
5861 * config/alpha/alpha.c (vms_valid_pointer_mode): New function.
5862 * config/alpha/vms.h (TARGET_VALID_POINTER_MODE): Define.
5864 2009-08-16 Douglas B Rupp <rupp@gnat.com>
5866 * doc/invoke.texi (Target options): Add new option list for IA-64/VMS.
5867 (menu): Add IA-64/VMS Options.
5868 (IA-64/VMS Options): Likewise.
5870 2009-08-16 Richard Sandiford <rdsandiford@googlemail.com>
5873 * config/mips/mips.md (*lwxs): Use :P for pointer values.
5875 2009-08-16 Richard Sandiford <rdsandiford@googlemail.com>
5877 * config/mips/mips-protos.h (mips_push_asm_switch): New function.
5878 (mips_pop_asm_switch): Likewise.
5879 * config/mips/mips.c (set_noreorder, set_nomacro, set_noat): Replace
5881 (mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
5882 (mips_push_asm_switch_1, mips_pop_asm_switch_1): New functions.
5883 (mips_push_asm_switch, mips_pop_asm_switch): Likewise.
5884 (mips_print_operand_punctuation): Use them. Check mips_noreorder
5885 instead of set_noreorder.
5886 (mips_output_function_prologue): Use the new functions.
5887 (mips_output_function_epilogue): Likewise.
5888 (mips_need_noat_wrapper_p): New function, split out from...
5889 (mips_final_prescan_insn, mips_final_postscan_insn): ...here.
5890 Use mips_push_asm_switch and mips_pop_asm_switch.
5891 * config/mips/mips.h (FUNCTION_PROFILER): Use mips_push_asm_switch
5892 and mips_pop_asm_switch.
5893 (ASM_OUTPUT_REG_POP): Likewise.
5894 (DBR_OUTPUT_SEQEND): Remove boilerplate comment.
5895 Use mips_pop_asm_switch.
5896 (mips_asm_switch): New structure.
5897 (set_noreorder, set_nomacro): Replace with...
5898 (mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
5899 * config/mips/mips.md (fix_truncdfsi2_macro): Use mips_nomacro
5900 instead of set_nomacro.
5901 (fix_truncsfsi2_macro): Likewise.
5902 (cprestore): Likewise.
5903 (hazard): Use mips_noreorder instead of set_noreorder.
5904 * config/mips/sdemtk.h (FUNCTION_PROFILER): As for mips.h.
5906 2009-08-16 Uros Bizjak <ubizjak@gmail.com>
5908 * config/alpha/alpha.c (alpha_end_function): Handle NULL_RTX returned
5909 from prev_active_insn.
5911 2009-08-16 Anatoly Sokolov <aesok@post.ru>
5913 * config/avr/avr.h (AVR_HAVE_8BIT_SP): New macros.
5914 * config/avr/avr.c (avr_override_options): Initialize
5915 avr_current_arch variable.
5916 (avr_cpu_cpp_builtins): Define __AVR_HAVE_8BIT_SP__ or
5917 __AVR_HAVE_16BIT_SP__ according to the device type.
5918 (expand_prologue, output_movhi): Use AVR_HAVE_8BIT_SP instead of
5920 (expand_epilogue): Use correct QI mode frame pointer for tiny stack.
5921 Use AVR_HAVE_8BIT_SP instead of TARGET_TINY_STACK.
5923 2009-08-16 Dodji Seketeli <dodji@redhat.com>
5926 * gcc/dwarf2out.c (gen_inlined_subroutine_die): Concentrate on
5927 generating inlined subroutine die only. We shouldn't be
5928 called for anything else.
5929 (gen_block_die): Don't generate inline subroutine debug info for
5932 2009-08-15 Sebastian Pop <sebastian.pop@amd.com>
5934 * graphite-poly.c (print_pbb): Print PBB index.
5936 2009-08-15 Sebastian Pop <sebastian.pop@amd.com>
5939 * graphite-interchange.c (ppl_max_for_le): Moved...
5940 * graphite-poly.c (pbb_number_of_iterations): Call ppl_max_for_le.
5941 * graphite-ppl.c (ppl_max_for_le): ... here. Correct the use of
5942 ppl_Pointset_Powerset_C_Polyhedron_maximize.
5943 * graphite-ppl.h (ppl_max_for_le): Declared.
5945 2009-08-14 Olatunji Ruwase <tjruwase@google.com>
5947 * doc/extend.texi (Symbol-Renaming Pragmas): redefine_extname is
5948 supported on all platforms.
5949 * target.h (struct gcc_target): Remove handle_pragma_redefine_extname.
5950 * c-cppbuiltin.c: Remove use of targetm.handle_pragma_redefine_extname.
5951 * c-pragma.c: Likewise.
5952 * target-def.h (TARGET_INITIALIZER): Remove
5953 TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
5954 * config/sol2.h: Remove use of TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
5956 2009-08-14 Douglas B Rupp <rupp@gnat.com>
5958 * config/ia64/fde-vms.c: New file.
5959 * config/ia64/fde-glibc.c (_Unwind_FindTableEntry): Add dummy arg.
5960 * config/ia64/unwind-ia64.c (UNW_ accessors): Move to unwind-ia64.h
5961 (MD_UNW_COMPATIBLE_PERSONALITY_P): Provide default.
5962 (uw_frame_state_for): Only register a personality routine if it is
5963 known to be compatible with our expectations.
5964 (_Unwind_FindEnclosingFunction, uw_frame_state_for):
5965 Declare unw_table_entry stack variable and
5966 mod all calls to _Unwind_FindTableEntry to add arg.
5967 * config/ia64/unwind-ia64.h (UNW_ accessors): Move here.
5968 (_Unwind_FindTableEntry): Add arg to prototype.
5970 2009-08-14 Eric Botcazou <ebotcazou@adacore.com>
5972 * config/ia64/unwind-ia64.c (struct _Unwind_Context): Add new
5973 field 'signal_pfs_loc'.
5974 (uw_frame_state_for): Remove duplicate code dealing with leaf
5975 procedures without unwind info.
5976 If in the frame after unwinding through a signal handler, restore
5977 the AR.PFS register instead of the CFM if AR.PFS has not been saved.
5978 * config/ia64/linux-unwind.h (ia64_fallback_frame_state): Do not set
5979 'pfs_loc' to the AR.PFS location in the signal context; instead
5980 set 'signal_pfs_loc'.
5981 Manually generate the unwind info for the AR.PFS register.
5982 (ABI_MARKER_OLD_LINUX_SIGTRAMP, ABI_MARKER_OLD_LINUX_INTERRUPT,
5983 ABI_MARKER_LINUX_SIGTRAMP, ABI_MARKER_LINUX_INTERRUPT): Define.
5984 (ia64_handle_unwabi): Test 'fs->unwabi' against them.
5985 Do not set 'pfs_loc' to the AR.PFS location in the signal context;
5986 instead set 'signal_pfs_loc'.
5987 Remove code preventing the AR.PFS register from being restored
5988 from the signal context.
5990 2009-08-14 Douglas B Rupp <rupp@gnat.com>
5991 Tristan Gingold <gingold@adacore.com>
5993 * config.gcc (ia64-hp-*vms*): Insert ia64/t-ia64 in tmake_file.
5994 * config/ia64/t-vms: New file.
5995 * config/ia64/vms64.h: New file.
5996 * config/ia64/vms.h: New file.
5997 * config/ia64/vms-crtinit.asm: New file.
5998 * config/ia64/vms_symvec_libgcc_s.opt: New file.
5999 * config/ia64/vms-unwind.h: New file.
6001 2009-08-14 Uros Bizjak <ubizjak@gmail.com>
6003 * config/alpha/alpha.c (alpha_emit_conditional_move): Handle
6006 2009-08-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6009 * builtins.c (do_mpc_arg2): Make extern, define for any MPC version.
6011 * real.h (do_mpc_arg2): ... here.
6012 * fold-const.c (const_binop): Use MPC for complex MULT_EXPR
6015 2009-08-14 Rafael Avila de Espindola <espindola@google.com>
6017 * final.c (add_debug_prefix_map): Don't use GC memory for
6018 old_prefix and new_prefix.
6020 2009-08-14 Richard Guenther <rguenther@suse.de>
6022 * ipa-prop.c (compute_complex_pass_through): If we cannot
6023 compute a non-varying offset for IPA_JF_ANCESTOR punt.
6025 2009-08-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6027 * c-lex.c (c_lex_with_flags): Increase size of local variable
6028 to avoid memory clobber.
6030 2009-08-14 Paolo Bonzini <bonzini@gnu.org>
6033 * config/i386/i386.c (ix86_fp_comparison_strategy):
6034 Only enable/disable sahf at function granularity.
6036 2009-08-14 Hans-Peter Nilsson <hp@axis.com>
6038 PR rtl-optimization/41064
6039 * reload1.c (reload_as_needed): Don't call extract_insn
6040 for known invalid replacements after calling
6041 validate_replace_rtx_group and verify_changes.
6043 2009-08-14 Uros Bizjak <ubizjak@gmail.com>
6046 * config/i386/sse.md (SSEMODE124C8): New mode iterator.
6047 (vcond<SSEMODEF2P:mode>): Assert that operation is supported by
6048 ix86_expand_fp_vcond.
6049 (vcond<SSEMODE124C8:mode>): Use SSEMODE124C8 instead of SSEMODE124.
6050 Assert that operation is supported by ix86_expand_int_vcond.
6051 (vcondu<SSEMODE124C8:mode>): Ditto.
6053 2009-08-13 DJ Delorie <dj@redhat.com>
6055 * config/i386/djgpp-stdint.h: New.
6056 * config.gcc (djgpp): Use it.
6058 2009-08-13 Kaz Kojima <kkojima@gcc.gnu.org>
6060 * config/sh/sh.c (sh_override_options): When flag_exceptions or
6061 flag_unwind_tables is on, turn flag_reorder_blocks_and_partition off.
6063 2009-08-13 Ghassan Shobaki <ghassan.shobaki@amd.com>
6065 * tree-ssa-loop-prefetch.c
6066 (prune_ref_by_group_reuse): Enhance probabilistic analysis
6067 for long-stride pruning.
6068 (compute_miss_rate): New function to compute the probability
6069 that two memory references access different cache lines.
6071 2009-08-13 Dave Korn <dave.korn.cygwin@gmail.com>
6073 * gcc/config/i386/cygwin.h (LINK_SPEC): Add --enable-auto-image-base.
6075 2009-08-13 Richard Guenther <rguenther@suse.de>
6078 * tree-ssa-ccp.c (ccp_fold): When folding pointer additions
6079 use the constant pointer type.
6080 * gimplify.c (canonicalize_addr_expr): Canonicalize independent
6081 of CV qualifiers on the target pointer type.
6082 * tree-ssa.c (useless_type_conversion_p): Move incomplete pointer
6083 conversion check before restrict check.
6085 2009-08-12 Kaz Kojima <kkojima@gcc.gnu.org>
6088 * config/sh/sh.md (reload_outdf__RnFRm+4): Fix thinko.
6090 2009-08-12 Kaz Kojima <kkojima@gcc.gnu.org>
6092 * config/sh/sh.c (sh_promote_function_mode): Add ATTRIBUTE_UNUSED.
6094 2009-08-12 Richard Guenther <rguenther@suse.de>
6096 PR tree-optimization/41011
6097 * ipa-cp.c (ipcp_lattice_from_jfunc): Deal with failing fold
6098 and reference constructing.
6100 2009-08-12 Xinliang David Li <davidxl@google.com>
6102 PR tree-optimization/41012
6103 * tree-flow.h : New external interface.
6104 * gimple-low.c (check_call_arg): Change to public function.
6105 Remove argument mismatch check in lowering.
6106 * tree-inline.h (tree_can_inline_p): Interface change.
6107 * tree-inline.c (tree_can_inline_p): Fold argument mismatch check
6109 * ipa-inline.c (cgraph_decide_inlining_of_small_functions):
6110 Call change to tree_can_inline_p function.
6111 (cgraph_decide_inlining_incrementally): Ditto.
6113 2009-08-12 Richard Sandiford <rdsandiford@googlemail.com>
6115 PR tree-optimization/41031
6116 * tree-outof-ssa.c (insert_value_copy_on_edge): Use promote_decl_mode
6117 on the partition variable rather than promote_mode on the source
6118 type. Assert that the partition variable's type has the same
6119 mode as the source value's.
6121 2009-08-12 Paolo Bonzini <bonzini@gnu.org>
6123 * doc/tm.texi (TARGET_PROMOTE_FUNCTION_MODE): Add documentation
6124 for for_return == 2.
6125 * function.c (assign_parm_setup_reg): Use for_return == 2, improve
6127 * calls.c (expand_call): Fix typo.
6128 * explow.c (promote_decl_mode): Use for_return == 2 for RESULT_DECL
6130 * stmt.c (expand_value_return): Use promote_function_mode to copy out
6132 * targhooks.c (default_promote_function_mode): Handle for_return == 2.
6133 * config/cris/cris.c (cris_promote_function_mode): Likewise.
6134 * config/mmix/mmix.c (mmix_promote_function_mode): Likewise.
6135 * config/pa/pa.c (pa_promote_function_mode): Likewise.
6137 2009-08-12 Andrew Haley <aph@redhat.com>
6139 * config/arm/arm.c (arm_init_libfuncs): Add __sync_synchronize.
6141 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
6144 * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
6146 2009-08-12 Richard Guenther <rguenther@suse.de>
6148 * alias.c (get_alias_set): Honor TYPE_STRUCTURAL_EQUALITY_P.
6149 * gimplify.c (gimplify_modify_expr): Do not use
6150 lang_hooks.types_compatible_p.
6151 * tree-ssa.c (useless_type_conversion_p): For aggregates
6152 just return false if the canonical types differ.
6154 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
6157 * sese.c (convert_for_phi_arg): New.
6158 (add_guard_exit_phis): Use convert_for_phi_arg.
6160 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
6162 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Dont add
6163 unknown subscript upper bounds.
6165 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
6166 Pranav Garg <pranav.garg2107@gmail.com>
6168 * graphite-interchange.c (gather_access_strides): Removed.
6169 (ppl_max_for_le): New.
6170 (build_linearized_memory_access): New.
6171 (memory_stride_in_loop): New.
6172 (pbb_interchange_profitable_p): Reimplemented.
6173 * graphite-ppl.h (ppl_new_id_map): New.
6174 (ppl_interchange): New.
6176 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
6178 * graphite-interchange.c (compute_subscript): Removed.
6179 (compute_array_size_cstr): Removed.
6180 (compute_array_size_poly): Removed.
6181 (compute_array_size): Removed.
6182 (gather_access_strides_poly): Removed.
6183 (gather_access_strides): Empty.
6185 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
6187 * graphite-dependences.c (dependence_polyhedron_1): Replace
6188 pdr_nb_subscripts with PDR_NB_SUBSCRIPTS.
6189 (graphite_legal_transform_dr): Same.
6190 (graphite_carried_dependence_level_k): Same.
6191 * graphite-poly.c (new_poly_dr): Add a parameter nb_subscripts.
6192 Initialize PDR_NB_SUBSCRIPTS.
6193 (print_pdr_access_layout): Replace pdr_nb_subscripts with
6195 * graphite-poly.h (struct poly_dr): Add nb_subscripts field.
6196 (PDR_NB_SUBSCRIPTS): New.
6197 (pdr_nb_subscripts): Removed.
6198 (pdr_dim): Simplified.
6199 * graphite-sese-to-poly.c (build_poly_dr): Replace pdr_nb_subscripts
6200 with PDR_NB_SUBSCRIPTS.
6202 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
6204 * graphite-interchange.c (compute_array_size): Remove use of
6206 * graphite-poly.c (new_poly_dr): Remove argument data_container.
6207 Do not initialize PDR_DATA_CONTAINER.
6208 (print_pdr): Do not print PDR_DATA_CONTAINER.
6209 * graphite-poly.h (struct poly_dr): Remove data_container field.
6210 (PDR_DATA_CONTAINER): Removed.
6211 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Remove use of
6213 (build_poly_dr): Same.
6215 2009-08-12 Konrad Trifunovic <konrad.trifunovic@gmail.com>
6216 Sebastian Pop <sebastian.pop@amd.com>
6218 * graphite-dependences.c (graphite_legal_transform_dr): Work on a
6219 copy of the dependence polyhedron. Free the temporary objects.
6220 (graphite_carried_dependence_level_k): Free unused objects before
6223 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
6225 * graphite-blocking.c (scop_do_strip_mine): Call store_scattering.
6226 Early return without analyzing the data dependences if no
6227 transform has been done. Call restore_scattering if the transform
6229 (graphite-interchange.c): Same.
6230 * graphite-poly.c (print_scattering_function): Test for
6232 (graphite_read_transforms): Initialize PBB_TRANSFORMED.
6233 (apply_poly_transforms): Do not gcc_assert that
6234 the transform is legal.
6235 (new_poly_bb): Initialize PBB_TRANSFORMED, PBB_SAVED and PBB_ORIGINAL.
6236 Do not initialize PBB_NB_SCATTERING_TRANSFORM, PBB_NB_LOCAL_VARIABLES,
6237 PBB_TRANSFORMED_SCATTERING, and PBB_ORIGINAL_SCATTERING.
6238 (free_poly_dr): Free PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL.
6239 * graphite-poly.h (struct poly_scattering): New.
6240 (struct poly_bb): Add original, transformed, and saved fields.
6241 Remove transformed_scattering, original_scattering,
6242 nb_local_variables and nb_scattering_transform fields.
6243 (PBB_ORIGINAL, PBB_TRANSFORMED, PBB_SAVED): New.
6244 (poly_scattering_new): New.
6245 (poly_scattering_free): New.
6246 (poly_scattering_copy): New.
6247 (store_scattering_pbb): New.
6248 (store_scattering): New.
6249 (restore_scattering_pbb): New.
6250 (restore_scattering): New.
6251 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
6252 Initialize PBB_TRANSFORMED and PBB_ORIGINAL.
6254 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
6256 * graphite-poly.c (print_pbb): Add parentheses in the pretty print.
6259 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
6261 * Makefile.in (graphite.o): Depends on PREDICT_H.
6262 * graphite.c: Include predict.h.
6263 (graphite_finalize): Call tree_estimate_probability.
6264 * predict.c (predict_loops): Do not call scev_initialize and
6266 (tree_estimate_probability_bb): New.
6267 (tree_estimate_probability): Do not initialize loops: move that
6268 code to the driver. Call tree_estimate_probability_bb.
6269 (tree_estimate_probability_driver): New.
6270 (pass_profile): Use tree_estimate_probability_driver.
6271 * predict.h (tree_estimate_probability): Declared.
6273 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
6275 * graphite-clast-to-gimple.c (gloog): Add time to TV_GRAPHITE_CODE_GEN.
6276 * graphite-dependences.c (graphite_legal_transform): Add time to
6277 TV_GRAPHITE_DATA_DEPS.
6278 (dependency_between_pbbs_p): Same.
6279 * timevar.def (TV_GRAPHITE_DATA_DEPS, TV_GRAPHITE_CODE_GEN): New.
6281 2009-08-12 Andrey Belevantsev <abel@ispras.ru>
6283 PR rtl-optimization/41033
6284 * alias.c (nonoverlapping_component_refs_p): Punt when strict
6285 aliasing is disabled.
6287 2009-08-11 Adam Nemet <anemet@caviumnetworks.com>
6289 * config/mips/predicates.md (qi_mask_operand, hi_mask_operand,
6290 si_mask_operand, and_load_operand, low_bitmask_operand,
6291 and_reg_operand, and_operand): New predicates.
6292 * config/mips/constraints.md (Yb, Yh, Yw, Yz): New constraints.
6293 * config/mips/mips.c (and_operands_ok): New function.
6294 * config/mips/mips-protos.h (and_operands_ok): Declare it.
6295 * config/mips/mips.md (move_type): Add ext_ins and logical.
6296 (type): Handle them.
6297 (and<mode>3): Use and_reg_operand as the second operand's predicate.
6298 (*and<mode>3): Add alternatives for lbu, lhu, lwu, <d>ext and
6299 shift_shift. Remove commutative constraint modifier.
6300 (*and<mode>3_mips16): Add alternatives for lbu, lhu, lwu and
6302 (*clear_upper32_dext): Remove define_insn_and_split.
6303 (*clear_upper32): Turn this define_insn_and_split ...
6304 (splitter for ANDing register with 0xffff_ffff): .. into this.
6306 2009-08-11 Adam Nemet <anemet@caviumnetworks.com>
6308 * combine.c (try_widen_shift_mode): Factor out code to check if an
6309 integer constant is a low-order bitmask from here ...
6310 * rtlanal.c (low_bitmask_len): ... to here.
6311 * rtl.h (low_bitmask_len): Declare.
6313 2009-08-11 Uros Bizjak <ubizjak@gmail.com>
6316 * config/alpha/alpha.md (addsi3): Remove expander.
6317 (addsi3): Rename from *addsi3_internal insn pattern.
6318 (subsi3): Remove expander.
6319 (subsi3): Rename from *subsi3_internal insn pattern.
6321 2009-08-11 Douglas B Rupp <rupp@gnat.com>
6323 * config/alpha/alpha.c (alpha_init_builtins): Nullify FWRITE and
6326 2009-08-11 Vasiliy Fofanov <fofanov@adacore.com>
6327 Eric Botcazou <botcazou@adacore.com>
6328 Douglas B Rupp <rupp@gnat.com>
6330 * config/alpha/alpha.c (alpha_return_in_memory): On VMS, ensure
6331 that records that fit in 64 bits are returned by immediate value,
6332 as required by OpenVMS Calling Standard.
6333 (function_value): Adjust for above modification.
6334 (alpha_va_start) <TARGET_ABI_OPEN_VMS>: Use
6335 virtual_incoming_args_rtx as base object, not next_arg.
6336 * config/alpha/vms.h: (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
6338 2009-08-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6340 * reload.c (find_reloads_subreg_address): Check the original
6341 req_equiv_mem address to detect the case where an address is
6342 not valid in the outer mode.
6344 2009-08-11 Richard Guenther <rguenther@suse.de>
6347 * builtins.c (gimplify_va_arg_expr): Do not call SET_EXPR_LOCATION.
6349 2009-08-10 Douglas B Rupp <rupp@gnat.com>
6351 * config/alpha/vms.h (OPTIMIZATION_OPTIONS): Remove
6352 (OVERRIDE_OPTIONS): Incorporate removed OPTIMIZATION_OPTIONS.
6354 2009-08-10 Olivier Hainque <hainqueu@adacore.com>
6355 Douglas B Rupp <rupp@gnat.com>
6357 * config/alpha/alpha.c (alpha_sa_size): Force procedure type to
6358 PT_STACK when frame_pointer_needed on OpenVMS.
6359 (alpha_pv_save_size, alpha_using_fp): Remove.
6360 (alpha_vms_can_eliminate): New function. Support for CAN_ELIMINATE
6361 with proper processing for PT_NULL.
6362 (alpha_vms_initial_elimination_offset): New function. Support for
6363 INITIAL_ELIMINATION_OFFSET with proper processing for PT_NULL.
6364 (alpha_sa_size): Force procedure type to PT_STACK when
6365 frame_pointer_needed on OpenVMS.
6366 * config/alpha/alpha-protos.h (alpha_pv_save_size): Remove prototype.
6367 (alpha_using_fp): Likewise.
6368 (alpha_vms_can_eliminate): Add prototype.
6369 (alpha_vms_initial_elimination_offset): Likewise.
6370 * config/alpha/vms.h (CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET):
6371 Call alpha_vms_can_eliminate and alpha_vms_initial_elimination_offset.
6373 2009-08-10 Eric Botcazou <botcazou@adacore.com>
6374 Douglas B Rupp <rupp@gnat.com>
6376 * config/alpha/alpha.c (common_object_handler): New function.
6377 (vms_attribute_table): Declare a single attribute "common_object".
6378 (vms_output_aligned_decl_common): New global function.
6379 (SECTION_VMS_OVERLAY): Delete.
6380 (SECTION_VMS_GLOBAL): Likewise.
6381 (SECTION_VMS_INITIALIZE): Likewise.
6382 (vms_asm_named_section): Remove support for above flags.
6383 (vms_section_type_flags): Delete.
6384 (TARGET_SECTION_TYPE_FLAGS): Likewise.
6385 * config/alpha/alpha-protos.h (vms_output_aligned_decl_common): New.
6386 * config/alpha/vms.h (ASM_OUTPUT_ALIGNED_COMMON): Delete.
6387 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New macro.
6389 2009-08-10 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
6392 * longlong.h [__sh__] (udiv_qrnnd): Add T register to clobber list.
6393 (sub_ddmmss): Likewise.
6395 2009-08-10 Andreas Tobler <a.tobler@schweiz.org>
6398 * config/rs6000/freebsd.h: Define SVR4_ASM_SPEC. Adjust copyright
6401 2009-08-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6404 * reload1.c (reload_as_needed): Use cancel_changes to completely
6405 undo a failed replacement attempt.
6407 2009-08-10 Richard Guenther <rguenther@suse.de>
6410 * tree-ssa.c (useless_type_conversion_p_1): Fold into ...
6411 (useless_type_conversion_p): ... here. Require pointer targets
6414 2009-08-10 Dodji Seketeli <dodji@redhat.com>
6417 * tree-inline.c (copy_statement_list): The resulting copy shouldn't
6418 loose the original type of the statement list.
6420 2009-08-09 Douglas B Rupp <rupp@gnat.com>
6422 * config/alpha/alpha.c: Include libfuncs.h
6423 (avms_asm_output_extern): New function.
6424 (alpha_init_libfuncs): Init some decc libfuncs.
6425 * config/alpha/alpha-protos.h (avms_asm_output_external): Declare.
6426 * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Define.
6427 (DO_CRTL_NAMES): Define.
6429 * config/alpha/vms64.h: (POINTERS_EXTEND_UNSIGNED): Remove undef.
6430 (LONG_TYPE_SIZE): Define.
6431 (TARGET_OS_CPP_BUILTINS): Define with __LONG_POINTERS=1
6432 (SUBTARGET_SWITCHES): Define malloc64 switch.
6433 (TARGET_DEFAULT): Default MASK_MALLOC64 set.
6434 (MASK_RETURN_ADDR): Define.
6435 doc/invoke.texi (mmalloc64): Document switch.
6437 2009-08-09 Olivier Hainque <hainque@adacore.com>
6438 Douglas B Rupp <rupp@gnat.com>
6440 * config/alpha/alpha.c (struct machine_function): New flag for VMS,
6441 uses_condition_handler.
6442 (alpha_expand_builtin_establish_vms_condition_handler): New expander.
6443 (alpha_expand_builtin_revert_vms_condition_handler): New expander.
6444 (enum alpha_builtin): New ALPHA_BUILTIN_REVERT_VMS_CONDITION_HANDLER
6445 and ALPHA_BUILTIN_ESTABLISH_VMS_CONDITION_HANDLER values.
6446 (code_for_builtin): New insn codes for the new alpha_builtins.
6447 (alpha_init_builtins): Register the new functions as BUILT_IN_MD.
6448 (alpha_sa_size): Account for uses_condition_handler.
6449 (alpha_expand_prologue): Likewise.
6450 (alpha_start_function): Likewise.
6451 (alpha_expand_epilogue): Likewise.
6452 * config/alpha/alpha-protos.h: Prototype the new alpha.c builtin
6453 establish/revert expanders.
6454 * config/alpha/alpha.h (DWARF_FRAME_REGNUM): Define.
6455 * config/alpha/alpha.md (builtin_establish_vms_condition_handler):
6456 New expander, resorting to the alpha.c associated function.
6457 (builtin_revert_vms_condition_handler): Likewise.
6458 * config/alpha/vms-gcc_shell_handler.c: New file. Implements
6459 __gcc_shell_handler, the static VMS condition handler used as
6460 an indirection wrapper to the current dynamically established
6462 * config/alpha/vms-unwind.h: Complete rewrite.
6463 * config/alpha/t-vms (LIB2FUNCS_EXTRA): Add vms-gcc_shell_handler.c
6464 * config/alpha/vms.h (MD_UNWIND_SUPPORT):
6466 2009-08-09 Eric Botcazou <botcazou@adacore.com>
6467 Douglas B Rupp <rupp@gnat.com>
6469 * config/alpha/alpha.c (alpha_links): Add 'target' field.
6470 (alpha_need_linkage): Handle aliases. Return function symbol.
6471 (alpha_use_linkage): Rename 'linkage' argument to 'func'.
6472 Use ultimate alias target for the linkage name.
6473 * config/alpha/alpha.md (movmemdi): Use the symbol returned
6474 by alpha_need_linkage for the function symbol.
6475 (setmemdi): Likewise.
6477 2009-08-09 Douglas B Rupp <rupp@gnat.com>
6479 * config/alpha/alpha.c (TARGET_ASM_UNALIGNED_*_OP): Define if on VMS.
6480 * config/alpha/vms.h (OBJECT_FORMAT_ELF): Define.
6481 (ASM_WEAKEN_LABEL): Define.
6482 (CRT_CALL_STATIC_FUNCTION): Define.
6483 (STARTFILE_SPEC): Add crtbegin.o crtbeginS.o.
6484 (ENDFILE_SPEC): Define.
6485 (INIT_SECTION_ASM_OP): Define.
6486 * config/alpha/vms-dwarf2eh.asm (__EH_FRAME_BEGIN__): Remove.
6487 * config/alpha/t-vms (EXTRA_PARTS): Add crtbegin.o crtbeginS.o
6489 (MULTILIB_OSDIRNAMES): Define.
6490 (shlib_version): Define.
6491 (SHLIB_EXT): Define.
6492 (SHLIB_OBJS): Define.
6493 (SHLIB_NAME): Define.
6494 (SHLIB_MULTILIB): Define.
6495 (SHLIB_INSTALL): Define.
6496 (SHLIB_SYMVEC): Define.
6497 (SHLIB_SYMVECX2): Define.
6498 (SHLIB_LINK): Define.
6500 2009-08-09 Douglas B Rupp <rupp@gnat.com>
6502 * config/alpha/alpha.c (alpha_initialize_trampoline):
6503 Initialize VMS trampoline IAW ABI for bounded procedure calls.
6504 (alpha_start_function): Emit transfer address on nested functions
6505 for VMS trampoline call.
6506 * config/alpha/t-vms (LIB2FUNCS_EXTRA): Remove vms_tramp.asm
6507 since no longer used.
6508 * config/alpha/vms-tramp.asm: Remove.
6509 * config/alpha/vms.h (TRAMPOLINE_TEMPLATE): Leave undefined
6510 since now only data initialized at runtime.
6512 2009-08-09 Douglas B Rupp <rupp@gnat.com>
6514 * config/alpha/vms.h (HANDLE_SYSV_PRAGMA): Define.
6515 (LINK_GCC_C_SEQUENCE_SPEC): Define.
6516 (MD_EXEC_PREFIX): Remove, no longer used.
6517 (MD_STARTFILE_PREFIX): Likewise.
6518 (INCLUDE_DEFAULTS): Likewise.
6519 * config/alpha/t-vms:
6520 (vms-dwarf2.o, vms-dwarf2eh.o): Use GCC_FOR_TARGET to compile.
6522 2009-08-09 Richard Guenther <rguenther@suse.de>
6524 PR tree-optimization/41016
6525 * tree-ssa-ifcombine.c (get_name_for_bit_test): Fix tuplification bug.
6526 (operand_precision): Remove.
6527 (integral_operand_p): Likewise.
6528 (recognize_single_bit_test): Adjust.
6530 2009-08-09 Richard Sandiford <rdsandiford@googlemail.com>
6532 * c-common.c (c_fully_fold_internal): Issue a warning if a binary
6533 operation overflows. Likewise non-cast unary arithmetic.
6534 If one arm of a conditional expression is always taken,
6535 inhibit evaluation warnings for the other arm. Likewise inhibit
6536 evaluation warnings for the second && or || operand if the first
6537 operand is enough to determine the result.
6538 * c-typeck.c (build_conditional_expr): Apply the same inhibition
6540 (build_binary_op): Prevent duplicate evaluation warnings.
6542 2009-08-09 Richard Sandiford <rdsandiford@googlemail.com>
6544 * tree-out-of-ssa.c (insert_value_copy_on_edge): If the source
6545 and destination have different modes, Use promote_mode to
6546 determine the signedness of the conversion. Assert that the
6547 promoted source mode matches the destination mode. Don't pass
6548 the destination and destination mode to expand_expr if the source
6549 mode is different. Simplify conversion logic.
6551 2009-08-09 Ira Rosen <irar@il.ibm.com>
6553 PR tree-optimization/41008
6554 * tree-vect-loop.c (vect_is_simple_reduction): Get operands
6555 from condition only in case it's a comparison. Adjust checks.
6557 2009-08-09 Bernd Schmidt <bernd.schmidt@analog.com>
6559 * tree-dfa.c (renumber_gimple_stmt_uids_in_blocks): New function.
6560 * tree-flow.h (renumber_gimple_stmt_uids_in_blocks): Declare it.
6561 * tree-ssa-loop-ivopts.c (comp_cost): Make COST an integer.
6562 (enum iv_position): Add IP_AFTER_USE and IP_BEFORE_USE.
6563 (dump_cand): Handle them.
6564 (struct iv_cand): New members COST_STEP and AINC_USE.
6565 (stmt_after_increment): Likewise.
6566 (stmt_after_inc_pos): Renamed from stmt_after_ip_original_pos. All
6567 callers changed. Use gimple_uid comparison instead of scanning.
6568 (add_candidate_1): When looking for identical candidates, take
6569 AINC_USE into account. Set it for new candidates.
6570 (force_expr_to_var_cost): Cast target_spill_cost to int.
6571 (get_address_cost): New arguments STMT_AFTER_INC and MAY_AUTOINC.
6572 All callers changed. Check for availability of autoinc addressing
6573 modes, both in general for a given mode, and in the specific use case.
6574 (get_computation_cost_at): New argument CAN_AUTOINC. All callers
6576 (get_computation_cost): Likewise.
6577 (autoinc_possible_for_pair, set_autoinc_for_original_candidates,
6578 add_autoinc_candidates): New static functions.
6579 (add_candidate): Call add_autoinc_candidates for candidates based on
6581 (find_iv_candidates): Call set_autoinc_for_original_candidates.
6582 (determine_use_iv_cost_address): If we have an autoinc candidate at
6583 the matching use, verify autoinc is possible and subtract the cost
6584 of the candidate's step from the cost.
6585 (determine_iv_cost): Record the cost of the increment in the COST_STEP
6586 member of the candidate.
6587 (tree_ssa_iv_optimize_loop): Swap the calls to determine_iv_costs and
6588 determine_use_iv_costs. Call renumber_gimple_stmt_uids_in_blocks.
6590 2009-08-09 Douglas B Rupp <rupp@gnat.com>
6592 * config.build (ia64-hp-*vms*): New target.
6593 (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
6595 * config.gcc (ia64-hp-*vms*): New target.
6596 (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
6598 * config.host (ia64-hp-*vms*): New target.
6599 (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
6602 2009-08-08 Richard Guenther <rguenther@suse.de>
6604 PR tree-optimization/40991
6605 * tree-ssa-pre.c (eliminate): Delay purging EH edges.
6607 2009-08-08 Richard Sandiford <rdsandiford@googlemail.com>
6609 * combine.c (gen_lowpart_or_truncate): Exclude CONST_INTs from
6610 mode check. Do truncations in an integer mode.
6611 (force_to_mode): Handle subregs for all mode types. Only do
6612 arithmetic simplifications on integer modes.
6614 2009-08-07 Richard Guenther <rguenther@suse.de>
6616 PR tree-optimization/40999
6617 * tree-ssa-ccp.c (get_symbol_constant_value): Handle CONST_DECLs.
6618 (maybe_fold_reference): Lookup constant initializers.
6619 (fold_gimple_assign): Likewise.
6621 2009-08-07 Richard Guenther <rguenther@suse.de>
6623 * tree-ssa.c (useless_type_conversion_p_1): Only for types
6624 that require structural equality defer to the langhook.
6626 2009-08-07 Martin Jambor <mjambor@suse.cz>
6628 * ipa-prop.h (enum jump_func_type): New value IPA_JF_ANCESTOR, changed
6630 (struct ipa_pass_through_data): New type.
6631 (struct ipa_ancestor_jf_data): New type.
6632 (union jump_func_value): Removed field formal_id, added fields
6633 pass_through and ancestor.
6634 (struct ipa_param_call_note): Changed type of formal_id to int from
6636 * ipa-prop.c (ipa_print_node_jump_functions): Print pass through with
6637 operations jump functions and ancestor jump functions.
6638 (compute_complex_pass_through): New function.
6639 (compute_scalar_jump_functions): Call compute_complex_pass_through,
6640 reflect changes in the jump function strucutre.
6641 (update_jump_functions_after_inlining): Ignore complex pass-through
6642 and ancestor jump functions.
6643 * ipa-cp.c (ipcp_lattice_from_jfunc): Added support for ancestor and
6644 polynomial pass-through with operation jump functions.
6646 2009-08-07 Jakub Jelinek <jakub@redhat.com>
6648 * dwarf2out.c (output_fde): When doing hot/cold partitioning, use
6649 fde->dw_fde_begin as begin label instead of hot/cold label.
6650 Use LLSDAC label instead of LLSDA for second section lsda.
6651 (dwarf2out_do_cfi_startproc): Add SECOND argument. Use LLSDAC
6652 label instead of LLSDA if it is true.
6653 (dwarf2out_begin_prologue, dwarf2out_switch_text_section): Adjust
6655 * except.c (add_call_site, dw2_size_of_call_site_table): Add
6656 SECTION argument. Use it as index into crtl->eh.call_site_record
6658 (dw2_output_call_site_table): Likewise. Add CS_FORMAT argument,
6659 use it to determine how to print table entries instead of using
6660 #ifdef HAVE_AS_LEB128. For SECTION > 0 use hot resp. cold
6661 label instead of normal begin label as base.
6662 (sjlj_assign_call_site_values): Adjust add_call_site caller.
6663 (convert_to_eh_region_ranges): When doing hot/cold partitioning,
6664 ensure no EH range spans between sections and that landing pads
6665 are always in the corresponding section.
6666 (sjlj_size_of_call_site_table, sjlj_output_call_site_table): Adjust
6667 for crtl->eh.call_site_record being an array rather than scalar.
6668 (output_one_function_exception_table): New function, copied
6669 from output_function_exception_table. Adjust
6670 dw2_size_of_call_site_table, dw2_output_call_site_table
6671 callers. For SECOND section use *C suffixed labels.
6672 (output_function_exception_table): Call
6673 output_one_function_exception_table and, when doing hot/cold
6674 partitioning, also another time for the second section.
6675 * opts.c: Include except.h.
6676 (decode_options): Allow -freorder-blocks-and-partition with
6677 exceptions, unless SJLJ or TARGET_UNWIND_INFO.
6678 * Makefile.in (opts.o): Depend on $(EXCEPT_H).
6679 * function.h (struct rtl_eh): Change call_site_record from
6680 scalar into array of 2 elements.
6682 2009-08-07 Martin Jambor <mjambor@suse.cz>
6684 * ipa-prop.c (count_formal_params_1): New function.
6685 (ipa_get_vector_of_formal_parms): New function.
6686 (get_vector_of_formal_parm_types): New function.
6687 (ipa_modify_formal_parameters): New function.
6688 (ipa_modify_call_arguments): New function.
6689 (index_in_adjustments_multiple_times_p): New function.
6690 (ipa_combine_adjustments): New function.
6691 (ipa_dump_param_adjustments): New function.
6692 * ipa-prop.h (struct ipa_parm_adjustment): New type.
6693 (ipa_get_vector_of_formal_parms): Declare.
6694 (ipa_modify_formal_parameters): Declare.
6695 (ipa_modify_call_arguments): Declare.
6696 (ipa_combine_adjustments): Declare.
6697 (ipa_dump_param_adjustments): Declare.
6698 (build_ref_for_offset): Declare.
6699 * Makefile.in (tree-sra.o): Add ipa-prop.h to dependencies.
6700 * tree-sra.c: Include ipa-prop.c.
6701 (build_ref_for_offset): Make public.
6703 2009-08-06 Neil Vachharajani <nvachhar@gmail.com>
6705 * value-prof.c (init_pid_map): Replace xmalloc with XCNEWVEC.
6707 2009-08-06 Thomas Schwinge <tschwinge@gnu.org>
6709 * gcc/doc/extend.texi (__builtin_extract_return_address)
6710 (__builtin_frob_return_address): Document.
6712 2009-08-06 Paul Brook <paul@codesourcery.com>
6714 * config/arm/lib1funcs.asm (ARM_DIV_BODY): Add Thumb-2 implementation.
6715 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Only use Thumb-1
6716 implementation on ARMv6-M.
6718 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
6720 * doc/extend.texi (pcs): Document new attribute for ARM.
6722 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
6724 * arm.c (pcs_attribute_args): Comment out unsupported attribute
6727 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
6729 * arm.c (arm_handle_pcs_attribute): Pass the entire name object to
6732 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
6734 * arm.c (arm_handle_pcs_attribute): Use %qE in warning.
6736 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
6738 Merge ARM/hard_vfp_branch to trunk.
6740 2009-08-04 Richard Earnshaw <rearnsha@arm.com>
6742 * arm.c (libcall_eq): New function.
6743 (libcall_hash): New function.
6744 (add_libcall): New function.
6745 (arm_libcall_uses_aapcs_base): New function.
6746 (arm_libcall_value): Use arm_libcall_uses_aapcs_base to check for
6747 libcalls using the base PCS.
6748 (arm_init_cumulative_args): Likewise.
6750 2009-07-20 Joseph Myers <joseph@codesourcery.com>
6752 * config/arm/arm.c (arm_libcall_value, arm_init_cumulative_args):
6753 Use base ABI for conversion libfuncs between HFmode and SFmode.
6755 2009-05-12 Joseph Myers <joseph@codesourcery.com>
6757 * config/arm/arm.c (aapcs_vfp_sub_candidate): Use V2SImode and
6758 V4SImode as representatives of all 64-bit and 128-bit vector
6759 types. Allow vector types without vector modes.
6760 (aapcs_vfp_is_call_or_return_candidate): Handle vector types
6761 without vector modes like BLKmode.
6762 (aapcs_vfp_allocate): Handle TImode for non-TARGET_NEON like
6763 BLKmode. Avoid unsupported vector modes or TImode moves for
6765 (aapcs_vfp_allocate_return_reg): Likewise.
6766 (arm_vector_mode_supported_p): Only support V2SImode, V4HImode and
6767 V8QImode if TARGET_NEON || TARGET_IWMMXT.
6769 2009-05-12 Joseph Myers <joseph@codesourcery.com>
6771 * config/arm/arm.c (arm_handle_pcs_attribute): New.
6772 (arm_get_pcs_model): Pass attribute arguments to
6773 arm_pcs_from_attribute.
6774 (arm_init_cumulative_args): Use base AAPCS for conversions from
6775 floating-point types to DImode.
6776 (arm_attribute_table): Add pcs attribute.
6777 (arm_handle_pcs_attribute): New.
6778 * config/arm/bpabi.h (DECLARE_LIBRARY_RENAMES): When renaming
6779 conversions from floating-point types to DImode, also declare them
6780 to use base AAPCS and declare functions they call to use base
6781 AAPCS and their RTABI names.
6783 2009-05-12 Joseph Myers <joseph@codesourcery.com>
6785 * doc/invoke.texi (-mfloat-abi=@var{name}): Remove statement about
6786 -mfloat-abi=hard not being supported for VFP.
6788 2009-05-11 Kazu Hirata <kazu@codesourcery.com>
6790 * config/sparc/sparc.c (sparc_emit_float_lib_cmp): Pass a libcall
6791 SYMBOL_REF to hard_libcall_value.
6793 2009-03-05 Joseph Myers <joseph@codesourcery.com>
6794 Richard Earnshaw <rearnsha@arm.com>
6796 * config/arm/arm.c (aapcs_layout_arg): Once a co-processor argument
6797 has been put on the stack, all remaining co-processory arguments for
6798 that co-processor also go on the stack.
6800 2009-03-05 Joseph Myers <joseph@codesourcery.com>
6802 * config/arm/arm.c (arm_return_in_memory): Handle returning
6803 vectors of suitable size in registers also for AAPCS case.
6805 2009-01-13 Richard Earnshaw <rearnsha@arm.com>
6807 * doc/tm.texi (TARGET_LIBCALL_VALUE): Add missing end statement.
6809 2008-12-09 Richard Earnshaw <rearnsha@arm.com>
6811 ARM Hard-VFP calling convention
6812 * target-def.h (TARGET_LIBCALL_VALUE): New hook.
6813 * target.h (gcc_target): Add libcall_value to table of call hooks.
6814 * targhooks.h (default_libcall_value): Default implementation.
6815 * targhooks.c (default_libcall_value): Likewise.
6816 * doc/tm.texi (TARGET_LIBCALL_VALUE): Document it.
6817 * optabs.c (expand_unop): Use it.
6818 * expr.h (hard_libcall_value): Pass the function RTX through.
6819 * calls.c (emit_library_call_value_1): Update call to
6821 * explow.c (hard_libcall_value): Use new target hook.
6822 * testsuite/lib/target-supports.exp
6823 (check_effective_target_arm_hard_vfp_ok): New hook.
6824 (check_effective_target_arm_neon_ok): Improve test for neon
6826 * testsuite/gcc.target/arm/eabi1.c: Only run test in base variant.
6827 * config/arm/arm.c: Include cgraph.h
6828 (TARGET_FUNCTION_VALUE): Override default hook.
6829 (arm_pcs_default): New variable.
6830 (arm_override_options): Don't fault hard calling convention with VFP.
6831 Add support for AAPCS variants.
6832 (arm_function_value): Make static. Handle AAPCS variants.
6833 (arm_libcall_value): New function.
6834 (arm_apply_result_size): Handle VFP registers in results.
6835 (arm_return_in_memory): Rework all AAPCS variants; handle hard-vfp
6837 (pcs_attribute_args): New variable.
6838 (arm_pcs_from_attribute): New function.
6839 (arm_get_pcs_model): New function.
6840 (aapcs_vfp_cum_init): New function.
6841 (aapcs_vfp_sub_candidate): New function.
6842 (aapcs_vfp_is_return_candidate): New function.
6843 (aapcs_vfp_is_call_candidate): New function.
6844 (aapcs_vfp_allocate): New function.
6845 (aapcs_vfp_allocate_return_reg): New function.
6846 (aapcs_vfp_advance): New function.
6847 (aapcs_cp_arg_layout): New variable.
6848 (aapcs_select_call_coproc): New function.
6849 (aapcs_select_return_coproc): New function.
6850 (aapcs_allocate_return_reg): New function.
6851 (aapcs_libcall_value): New function.
6852 (aapcs_layout_arg): New function.
6853 (arm_init_cumulative_args): Initialize AAPCS args data.
6854 (arm_function_arg): Handle AAPCS variants using new interface.
6855 (arm_arg_parital_bytes): Likewise.
6856 (arm_function_arg_advance): New function.
6857 (arm_function_ok_for_sibcall): Ensure that sibling calls agree on
6858 calling conventions.
6859 (arm_setup_incoming_varargs): Handle new AAPCS args data.
6860 * arm.h (NUM_VFP_ARG_REGS): Define.
6861 (LIBCALL_VALUE): Update.
6862 (FUNCTION_VALUE): Delete.
6863 (FUNCTION_VALUE_REGNO_P): Add VFP regs.
6864 (arm_pcs): New enum.
6865 (CUMULATIVE_ARGS): New data to support AAPCS argument marshalling.
6866 (FUNCTION_ARG_ADVANCE): Call arm_function_arg_advance.
6867 (FUNCTION_ARG_REGNO_P): Add VFP regs.
6868 * arm-protos.h (arm_function_arg_advance): Add.
6869 (aapcs_libcall_value): Add.
6870 (arm_function_value): Delete.
6872 2009-08-06 Uros Bizjak <ubizjak@gmail.com>
6873 H.J. Lu <hongjiu.lu@intel.com>
6876 * config/i386/i386.c (standard_sse_mode_p): Remove.
6877 (standard_sse_constant_p): Return 2 for integer mode
6878 vector_all_ones_operand when SSE2 is enabled.
6879 (standard_sse_constant_opcode)<case 2>: Always return [v]pcmpeqd.
6880 (ix86_expand_vector_move): Do not check for negative values from
6881 standard_sse_constant_p.
6883 2009-08-06 Richard Guenther <rguenther@suse.de>
6885 * tree-ssa.c (useless_type_conversion_p_1): Make function and
6886 array type comparisons frontend independent.
6887 * Makefile.in (tree-ssa.o): Add $(TARGET_H) dependency.
6888 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Always fill
6889 out array reference lower bound and element size operands.
6890 (ao_ref_init_from_vn_reference): Properly compute the offset
6891 for ARRAY_RANGE_REF.
6892 (vn_reference_fold_indirect): Fill out array reference lower
6893 bound and element size operands.
6894 * tree-ssa-pre.c (phi_translate_1): Fail if we have to translate
6895 a non gimple valued reference operand which can happen for
6896 array reference lower bound or element size.
6897 (create_component_ref_by_pieces_1): Properly generate the
6898 element size operand for array references.
6900 2009-08-06 Richard Guenther <rguenther@suse.de>
6902 PR tree-optimization/40964
6903 * tree.c (iterative_hash_host_wide_int): Export.
6904 * tree.h (iterative_hash_host_wide_int): Declare.
6905 * tree-ssa-structalias.c (heapvar_map): New struct.
6906 (heapvar_map_eq): New function.
6907 (heapvar_map_hash): Likewise.
6908 (heapvar_lookup): Adjust.
6909 (heapvar_insert): Likewise.
6910 (make_constraint_from_heapvar): Allow multiple heap variables
6911 per decl at different offsets.
6912 (init_alias_heapvars): Adjust.
6914 2009-08-04 David Daney <ddaney@caviumnetworks.com>
6916 * config/mips/mips.h (TARGET_SYNC_AFTER_SC): New macro.
6917 * mips_output_sync_loop (mips_output_sync_loop): Only emit
6918 trailing sync if TARGET_SYNC_AFTER_SC.
6920 2009-08-05 David Daney <ddaney@caviumnetworks.com>
6922 * gcc/config/mips/sync.md (sync_compare_and_swap<mode>,
6923 compare_and_swap_12, sync_add<mode>, sync_<optab>_12,
6924 sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12,
6925 sync_old_nand_12, sync_new_nand_12, sync_sub<mode>,
6926 sync_old_add<mode>, sync_old_sub<mode>, sync_new_add<mode>,
6927 sync_new_sub<mode>, sync_<optab><mode>, sync_old_<optab><mode>,
6928 sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
6929 sync_new_nand<mode>, sync_lock_test_and_set<mode>,
6930 test_and_set_12): Rewrite calls to mips_output_sync_loop.
6931 * gcc/config/mips/mips-protos.h (mips_output_sync_loop): Make
6932 the prototype declaration match the definition.
6933 * gcc/config/mips/mips.c (mips_output_sync_loop): Emit sync
6934 instructions explicitly. Add barrier_before and operands
6936 * gcc/config/mips/mips.h (MIPS_COMPARE_AND_SWAP,
6937 MIPS_COMPARE_AND_SWAP_12, MIPS_SYNC_OP, MIPS_SYNC_OP_12,
6938 MIPS_SYNC_OLD_OP_12, MIPS_SYNC_NEW_OP_12, MIPS_SYNC_OLD_OP,
6939 MIPS_SYNC_NEW_OP, MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND,
6940 MIPS_SYNC_NEW_NAND, MIPS_SYNC_EXCHANGE,
6941 MIPS_SYNC_EXCHANGE_12): Remove sync instructions.
6943 2009-08-05 Andrew Pinski <pinskia@gmail.com>
6945 * tree-ssa-alias.c: Fix intervals to use [) syntax.
6947 2009-08-05 Uros Bizjak <ubizjak@gmail.com>
6948 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
6951 * config/i386/i386.c (ix86_split_long_move): Fix push of multi-part
6954 2009-08-05 Jakub Jelinek <jakub@redhat.com>
6956 PR rtl-optimization/40924
6957 * dse.c (canon_address): Before calling cselib_expand_value_rtx
6958 make sure canon_rtx (mem_address) isn't simpler than
6959 canon_rtx (expanded_mem_address).
6961 2009-08-05 Li Feng <nemokingdom@gmail.com>
6963 * graphite-sese-to-poly.c (build_pbb_drs): Remove build alias set
6965 (build_scop_drs): Build alias set for each SCoP.
6967 2009-08-04 Sandra Loosemore <sandra@codesourcery.com>
6969 * doc/invoke.texi (MIPS Options): Document new 1004K -march options.
6970 * config/mips/mips.c (mips_cpu_info_table): Add 1004K cores.
6971 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Add pattern for 1004K.
6972 (MIPS_ARCH_FLOAT_SPEC): Likewise.
6973 (BASE_DRIVER_SELF_SPECS): Likewise.
6975 2009-08-04 Andrew Pinski <pinskia@gmail.com>
6977 * tree-ssa-alias.c: Fix some comment typos.
6979 2009-08-04 Kaz Kojima <kkojima@gcc.gnu.org>
6981 * config/sh/linux-atomic.asm (ATOMIC_BOOL_COMPARE_AND_SWAP,
6982 ATOMIC_OP_AND_FETCH, ATOMIC_COMBOP_AND_FETCH): Define.
6984 2009-08-03 Janis Johnson <janis187@us.ibm.com>
6987 * simplify-rtx.c (simplify_binary_operation_1): Disable
6988 simplifications for decimal float operations.
6990 2009-08-03 Jakub Jelinek <jakub@redhat.com>
6993 * tree-ssa.c (warn_uninitialized_var): Even on LHS warn for
6994 operand of INDIRECT_REF.
6996 2009-08-03 Uros Bizjak <ubizjak@gmail.com>
6998 * config/alpha/alpha.c (alpha_legitimate_constant_p): Reject CONST
6999 constants referencing TLS symbols.
7001 2009-08-03 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
7003 * config/sh/linux-atomic.asm (ATOMIC_COMPARE_AND_SWAP): Rename
7004 __sync_compare_and_swap_* to __sync_val_compare_and_swap_*.
7006 2009-08-03 Richard Guenther <rguenther@suse.de>
7008 * tree.c (make_vector_type): Build a main variant first,
7009 get the canonical one and then build the variant.
7010 * tree-ssa.c (useless_type_conversion_p_1): Handle
7012 (useless_type_conversion_p): Conversions to pointers to
7013 incomplete record types are useless.
7015 2009-08-03 Richard Guenther <rguenther@suse.de>
7017 * tree-cfg.c (pass_warn_unused_result): Mark name that no dump
7018 file will be created.
7019 * omp-low.c (pass_diagnose_omp_blocks): Likewise.
7020 * toplev.c (compile_file): Adjust comment.
7022 2009-08-03 Kaz Kojima <kkojima@gcc.gnu.org>
7024 * config/sh/sh-protos.h (sh_promote_function_mode): Remove.
7025 * config/sh/sh.c (sh_promote_function_mode): Wrap long lines.
7026 (TARGET_PROMOTE_FUNCTION_MODE): Define.
7027 (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
7028 (sh_promote_function_mode): Fix typo.
7030 2009-08-03 Andreas Krebbel <krebbel1@de.ibm.com>
7032 * explow.c (promote_mode): Mark TYPE and PUNSIGNEDP as possibly unused.
7034 2009-08-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7036 * pa.c (pa_promote_function_mode): Remove ATTRIBUTE_UNUSED from
7037 declaration arguments.
7039 2009-08-02 Uros Bizjak <ubizjak@gmail.com>
7041 * config/i386/i386.c (ix86_expand_fp_compare): Use const0_rtx instead
7042 of GEN_INT (0x00) and const1_rtx instead of GEN_INT (0x01).
7043 (ix86_split_ashl): Ditto.
7044 (ix86_expand_vector_init_one_nonzero): Ditto.
7045 (ix86_expand_vector_set): Ditto.
7046 (ix86_expand_reduc_v4sf): Ditto.
7048 2009-08-02 Paolo Bonzini <bonzini@gnu.org>
7050 * explow.c (promote_function_mode): Remove assert.
7051 * config/sh/sh.c (sh_promote_function_mode): Declare.
7053 2009-08-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7055 * config/pa/pa.c (pa_promote_function_mode): Declare.
7056 Change to static. Fix promote_mode call.
7058 * gthr-dce.h (CONST_CAST2): Define if not defined.
7059 (__gthread_setspecific): Use CONST_CAST2 to fix warning.
7061 * config.gcc (hppa[12]*-*-hpux10*): Add stdint support.
7063 2009-08-01 Paolo Bonzini <bonzini@gnu.org>
7065 * expr.c (store_constructor): Use promote_decl_mode. Remove
7066 now write-only variable unsignedp.
7067 (expand_expr_real_1): Use promote_decl_mode.
7068 * expr.h (promote_function_mode, promote_decl_mode): New.
7069 (promote_mode): Remove last argument.
7070 * function.c (assign_temp): Drop last argument of promote_mode.
7071 (assign_parm_find_data_types): Use promote_function_mode.
7072 (assign_parm_setup_reg): Likewise.
7073 (expand_function_end): Use promote_function_mode.
7074 * calls.c (initialize_argument_information): Use promote_function_mode.
7075 (precompute_arguments): Use promote_mode instead of checking if
7076 only PROMOTE_FUNCTION_MODE is defined.
7077 (expand_call): When making sibcall decisions, use promote_function_mode.
7078 Below, remove an if for targetm.calls.promote_function_return and
7079 and use promote_function_mode.
7080 (emit_library_call_value_1): Use promote_function_mode, fix bug
7081 where promote_mode was passed FOR_CALL == 0 for a return value in an
7083 * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
7084 * explow.c (promote_function_mode, promote_decl_mode): New.
7085 (promote_mode): Keep only the FOR_CALL == 0 case.
7086 * combine.c (setup_incoming_promotion): Remove test of
7087 promote_function_args. Use promote_function_mode.
7088 * stmt.c (expand_value_return): Use promote_decl_mode.
7089 (expand_decl): Use promote_decl_mode.
7091 * expr.c (store_constructor): Use promote_decl_mode. Remove
7092 now write-only variable unsignedp.
7093 (expand_expr_real_1): Use promote_decl_mode.
7094 * expr.h (promote_function_mode, promote_decl_mode): New.
7095 (promote_mode): Remove last argument.
7096 * function.c (assign_temp): Drop last argument of promote_mode.
7097 (assign_parm_find_data_types): Use promote_function_mode.
7098 (assign_parm_setup_reg): Likewise.
7099 (expand_function_end): Use promote_function_mode.
7100 * calls.c (initialize_argument_information): Use promote_function_mode.
7101 (precompute_arguments): Use promote_mode instead of checking if
7102 only PROMOTE_FUNCTION_MODE is defined.
7103 (expand_call): When making sibcall decisions, use promote_function_mode.
7104 Below, remove an if for targetm.calls.promote_function_return and
7105 and use promote_function_mode.
7106 (emit_library_call_value_1): Use promote_function_mode, fix bug
7107 where promote_mode was passed FOR_CALL == 0 for a return value in an
7109 * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
7110 * explow.c (promote_function_mode, promote_decl_mode): New.
7111 (promote_mode): Keep only the FOR_CALL == 0 case.
7112 * combine.c (setup_incoming_promotion): Remove test of
7113 promote_function_args. Use promote_function_mode.
7114 * stmt.c (expand_value_return): Use promote_decl_mode.
7115 (expand_decl): Use promote_decl_mode.
7117 * explow.c (promote_function_mode): Just call the target hook.
7118 * targhooks.c (default_promote_function_mode,
7119 default_promote_function_mode_always_promote): New.
7120 * targhooks.h (default_promote_function_mode,
7121 default_promote_function_mode_always_promote): Declare.
7122 * target.h (promote_function_args, promote_function_return): Remove.
7123 (promote_function_mode): New.
7124 * target-def.h (TARGET_PROMOTE_FUNCTION_ARGS,
7125 TARGET_PROMOTE_FUNCTION_RETURN): Remove.
7126 (TARGET_PROMOTE_FUNCTION_MODE): New.
7127 (TARGET_CALLS): Adjust.
7128 * system.h (TARGET_PROMOTE_FUNCTION_ARGS,
7129 TARGET_PROMOTE_FUNCTION_RETURN, PROMOTE_FUNCTION_MODE): Poison.
7131 * config/s390/s390.h (PROMOTE_FUNCTION_MODE): Move...
7132 * config/s390/s390.c (s390_promote_function_mode): ... here,
7133 with pointer handling.
7134 (TARGET_PROMOTE_FUNCTION_MODE): Define.
7135 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
7137 * config/sparc/sparc.h (PROMOTE_FUNCTION_MODE): Move...
7138 * config/sparc/sparc.c (sparc_promote_function_mode): ... here,
7139 with pointer handling.
7140 (TARGET_PROMOTE_FUNCTION_MODE): Define.
7141 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
7143 * config/sh/sh-protos.h (sh_promote_function_mode): New.
7144 * config/sh/sh.c (sh_promote_function_mode): New.
7145 (TARGET_PROMOTE_FUNCTION_MODE): Define.
7146 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
7148 * config/cris/cris.h (PROMOTE_FUNCTION_MODE): Move...
7149 * config/cris/cris.c (cris_promote_function_mode): ... here.
7150 (TARGET_PROMOTE_FUNCTION_MODE): Define.
7151 (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
7153 * config/mmix/mmix.h (PROMOTE_FUNCTION_MODE): Move...
7154 * config/mmix/mmix.c (mmix_promote_function_mode): ... here.
7155 (TARGET_PROMOTE_FUNCTION_MODE): Define.
7156 (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
7158 * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Move...
7159 * config/arm/arm.c (arm_promote_function_mode): ... here, without
7160 complex type handling.
7161 (TARGET_PROMOTE_FUNCTION_MODE): Define.
7162 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
7164 * config/pa/pa.c (pa_promote_function_mode): New.
7165 (TARGET_PROMOTE_FUNCTION_MODE): Define.
7166 (TARGET_PROMOTE_FUNCTION_RETURN): Remove.
7168 * config/alpha/alpha.c (TARGET_PROMOTE_FUNCTION_ARGS,
7169 TARGET_PROMOTE_FUNCTION_RETURN): Remove.
7170 (TARGET_PROMOTE_FUNCTION_MODE): Define equivalently.
7171 * config/xtensa/xtensa.c: Likewise.
7172 * config/stormy16/stormy16.c: Likewise.
7173 * config/iq2000/iq2000.c: Likewise.
7174 * config/rs6000/rs6000.c: Likewise.
7175 * config/picochip/picochip.c: Likewise.
7176 * config/arc/arc.c: Likewise.
7177 * config/mcore/mcore.c: Likewise.
7178 * config/score/score.c: Likewise.
7179 * config/mips/mips.c: Likewise.
7180 * config/bfin/bfin.c: Likewise.
7181 * config/ia64/ia64.c: Likewise (disabled though).
7183 * config/frv/frv.h: Remove pointless remark.
7185 * doc/tm.texi (PROMOTE_FUNCTION_MODE,
7186 TARGET_PROMOTE_FUNCTION_ARGS,
7187 TARGET_PROMOTE_FUNCTION_RETURN): Consolidate into...
7188 (TARGET_PROMOTE_FUNCTION_MODE): ... this.
7190 2009-08-01 Sebastian Pop <sebastian.pop@amd.com>
7192 * doc/invoke.texi (-fgraphite-force-parallel): Renamed
7193 -floop-parallelize-all.
7194 * toplev.c (process_options): Rename flag_graphite_force_parallel to
7195 flag_loop_parallelize_all.
7196 * tree-ssa-loop.c (gate_graphite_transforms): Same.
7197 * graphite.c (graphite_transform_loops): Same.
7199 * graphite-poly.c (apply_poly_transforms): Same.
7201 2009-07-31 Richard Earnshaw <rearnsha@arm.com>
7203 PR tree-optimization/40914
7204 * ipa-prop.c (ipa_get_ptr_load_param): New argument use_delta,
7205 if set, then check the delta field of the PMF record.
7206 (ipa_get_stmt_member_ptr_load_param): Propagate new param use_delta.
7207 (ipa_analyze_call_uses): Handle machines where the vbit for a PMF
7208 call is stored in the delta.
7210 2009-07-31 Adam Nemet <anemet@caviumnetworks.com>
7212 * config/mips/mips.md (*clear_upper32_dext): New pattern.
7214 2009-07-31 Uros Bizjak <ubizjak@gmail.com>
7216 * config/i386/bsd.h (ASM_BYTE): New define.
7217 * config/i386/darwin.h (ASM_BYTE): Rename from ASM_BYTE_OP.
7218 * config/i386/att.h (ASM_BYTE): New define. Use ASM_BYTE instead of
7219 .byte. Use fputs or putc instead of fprintf where appropriate.
7220 * config/i386/i386-interix.h: Use ASM_BYTE instead of .byte. Use
7221 fputs or putc instead of fprintf where appropriate.
7222 * config/i386/i386elf.h: Ditto.
7223 * config/i386/sysv4.h: Ditto.
7225 * config/i386/i386.c (TARGET_ASM_BYTE_OP): New define.
7226 * config/i386/i386.md (x86_sahf_1): Use ASM_BYTE instead of .byte.
7227 (*tls_global_dynamic_64): Ditto.
7229 2009-07-31 Christian Bruel <christian.bruel@st.com>
7231 * gcc/config.gcc (sh*-*-elf): test with_libgloss.
7233 2009-07-31 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7235 * config/arm/arm.c (arm_arm_address_cost): Fix typo.
7236 Remove dead code for MINUS.
7238 2009-07-31 Anthony Green <green@moxielogic.com>
7240 * config/moxie/moxie.c (moxie_expand_prologue): Use $r5 instead of
7242 (moxie_expand_epilogue): Ditto for epilogue.
7243 (moxie_setup_incoming_varargs): ABI change. Use 5 registers for
7245 (moxie_function_arg): Ditto.
7246 (moxie_pass_by_reference): Ditto.
7247 (moxie_arg_partial_bytes): Ditto.
7248 * config/moxie/moxie.h (CALL_USED_REGISTERS): Ditto.
7249 (FUNCTION_ARG_ADVANCE) Ditto.
7250 (REG_PARM_STACK_SPACE) Ditto.
7251 (FUNCTION_ARG_REGNO_P) Dito.
7253 * config.gcc: Add moxie linux config support.
7254 * gcc/config/moxie/uclinux.h: New file.
7256 2009-07-31 DJ Delorie <dj@redhat.com>
7258 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
7259 (UNSPECV_SP_SWITCH_E): New.
7260 (sp_switch_1): Change to an unspec.
7261 (sp_switch_2): Change to an unspec. Don't use post-inc when we
7263 * config/sh/sh.c (sh_expand_prologue): Use the constant pool to
7264 reference the new stack's address
7266 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
7268 * Makefile.in (OBJS-common): Added dependence on graphite-blocking.o,
7269 graphite-clast-to-gimple.o, graphite-dependences.o,
7270 graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
7271 graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o.
7272 (graphite-blocking.o,
7273 graphite-clast-to-gimple.o, graphite-dependences.o,
7274 graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
7275 graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o): New.
7276 * cfgloop.c (alloc_loop): Set loop->can_be_parallel to false.
7277 * cfgloop.h (struct loop): Add can_be_parallel field.
7278 * common.opt (fgraphite-identity): Moved up.
7279 (fgraphite-force-parallel): New flag.
7280 * graphite.c: Rewrite.
7281 * graphite.h: Rewrite.
7282 * passes.c (init_optimization_passes): Schedule a pass of DCE and LIM
7284 * toplev.c (graphite_out_file): New file descriptor.
7285 (graphite_in_file): New.
7286 (process_options): flag_graphite_force_parallel cannot be used without
7288 * tree-ssa-loop.c: Include toplev.h.
7289 (gate_graphite_transforms): Enable flag_graphite for
7290 flag_graphite_force_parallel.
7292 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
7294 * ChangeLog.graphite: New.
7295 * graphite-blocking.c: New.
7296 * graphite-clast-to-gimple.c: New.
7297 * graphite-clast-to-gimple.h: New.
7298 * graphite-dependences.c: New.
7299 * graphite-dependences.h: New.
7300 * graphite-interchange.c: New.
7301 * graphite-poly.c: New.
7302 * graphite-poly.h: New.
7303 * graphite-ppl.c: New.
7304 * graphite-ppl.h: New.
7305 * graphite-scop-detection.c: New.
7306 * graphite-scop-detection.h: New.
7307 * graphite-sese-to-poly.c: New.
7308 * graphite-sese-to-poly.h: New.
7312 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
7314 * tree-chrec.c (evolution_function_right_is_integer_cst): New.
7315 * tree-chrec.h (evolution_function_right_is_integer_cst): Declared.
7317 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
7319 * tree-chrec.c (operator_is_linear): Handle BIT_NOT_EXPR.
7320 (scev_is_linear_expression): Return false if the evolution is not
7321 affine multivariate.
7323 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
7325 * tree-data-ref.c (graphite_find_data_references_in_stmt): New.
7326 * tree-data-ref.h (graphite_find_data_references_in_stmt): Declared.
7328 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
7330 * tree-data-ref.c (debug_data_references): New.
7331 (debug_data_reference): New.
7332 * tree-data-ref.h (debug_data_references): Declared.
7333 (debug_data_reference): Declared.
7335 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
7337 * tree-data-ref.c (stmt_simple_memref_p: Removed.
7338 * tree-data-ref.h (scop_p): Removed.
7339 (struct data_reference): Remove field scop.
7341 (stmt_simple_memref_p): Removed.
7343 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
7345 * cfgloop.h (create_empty_loop_on_edge): Pass an extra argument.
7346 * cfgloopmanip.c (create_empty_loop_on_edge): Leave the loop_latch
7349 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
7351 * doc/invoke.texi (-fgraphite-force-parallel): Documented.
7353 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
7355 * doc/invoke.texi (-fgraphite-identity): Documented.
7357 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
7359 * tree-scalar-evolution.c: Fix comment.
7360 (instantiate_scev_1): Return unknow from scev instantiation if the
7361 result is not above instantiate_below.
7363 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
7365 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop): Not
7366 static anymore. Instantiate the symbols that may have been introduced
7368 * tree-scalar-evolution.h (compute_overall_effect_of_inner_loop):
7371 2009-07-30 DJ Delorie <dj@redhat.com>
7373 * config/mep/mep.c (mep_asm_init_sections): Add section flags and
7374 .vliw directive to VLIW sections.
7376 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7378 * Makefile.in (AUTOCONF, ACLOCAL, ACLOCAL_AMFLAGS, aclocal_deps):
7380 ($(srcdir)/configure, $(srcdir)/aclocal.m4): New rules.
7381 (AUTOHEADER): New variable.
7382 ($(srcdir)/cstamp-h.in): Use it.
7384 2009-07-30 Michael Meissner <meissner@linux.vnet.ibm.com>
7385 Pat Haugen <pthaugen@us.ibm.com>
7386 Revital Eres <ERES@il.ibm.com>
7388 * config/rs6000/vector.md (VEC_F): Add VSX support.
7392 (vector_load_<mode>): Ditto.
7393 (vector_store_<mode>): Ditto.
7394 (vector GPR move split): Ditto.
7395 (vec_reload_and_plus_<mptrsize>): Ditto.
7396 (vec_reload_and_reg_<mptrsize>): Ditto.
7397 (add<mode>3): Ditto.
7398 (sub<mode>3): Ditto.
7399 (mul<mode>3): Ditto.
7400 (neg<mode>2): Ditto.
7401 (abs<mode>2): Ditto.
7402 (smin<mode>3): Ditto.
7403 (smax<mode>3): Ditto.
7404 (vector_eq<mode>): Ditto.
7405 (vector_gt<mode>): Ditto.
7406 (vector_ge<mode>): Ditto.
7407 (vector_gtu<mode>): Ditto.
7408 (vector_select_<mode>_uns): Ditto.
7409 (vector_eq_<mode>_p): Ditto.
7410 (vector_gt_<mode>_p): Ditto.
7411 (vector_ge_<mode>_p): Ditto.
7412 (vector_gtu_<mode>_p): Ditto.
7413 (cr6_test_for_zero): Ditto.
7414 (cr6_test_for_zero_reverse): Ditto.
7415 (cr6_test_for_lt): Ditto.
7416 (cr6_test_for_lt_reverse): Ditto.
7417 (xor<mode>3): Ditto.
7418 (ior<mode>3): Ditto.
7419 (and<mode>3): Ditto.
7420 (one_cmpl<mode>2): Ditto.
7421 (nor<mode>2): Ditto.
7422 (andc<mode>2): Ditto.
7423 (float<VEC_int<mode>2): Ditto.
7424 (unsigned_float<VEC_int><mode>2): Ditto.
7425 (fix_trunc<mode><VEC_int>2): Ditto.
7426 (fixuns_trunc<mode><VEC_int>2): Ditto.
7428 (vec_set<mode>): Ditto.
7429 (vec_extract<mode>): Ditto.
7430 (vec_interleave_highv4sf): Ditto.
7431 (vec_interleave_lowv4sf): Ditto.
7432 (vec_realign_load_<mode>): Ditto.
7433 (vec_shl_<mode>): Ditto.
7434 (vec_shr_<mode>): Ditto.
7435 (div<mode>3): New patterns for VSX.
7436 (vec_interleave_highv2df): Ditto.
7437 (vec_interleave_lowv2df): Ditto.
7438 (vec_pack_trunc_v2df): Ditto.
7439 (vec_pack_sfix_trunc_v2df): Ditto.
7440 (vec_pack_ufix_trunc_v2df): Ditto.
7441 (vec_unpacks_hi_v4sf): Ditto.
7442 (vec_unpacks_lo_v4sf): Ditto.
7443 (vec_unpacks_float_hi_v4si): Ditto.
7444 (vec_unpacks_float_lo_v4si): Ditto.
7445 (vec_unpacku_float_hi_v4si): Ditto.
7446 (vec_unpacku_float_lo_v4si): Ditto.
7447 (movmisalign<mode>): Ditto.
7448 (vector_ceil<mode>2): New patterns for vectorizing math library.
7449 (vector_floor<mode>2): Ditto.
7450 (vector_btrunc<mode>2): Ditto.
7451 (vector_copysign<mode>3): Ditto.
7453 * config/rs6000/predicates.md (easy_vector_constant_msb): New
7454 predicate for setting the high bit in each word, used for copysign.
7456 * config/rs6000/ppc-asm.h (f19): Whitespace.
7457 (f32-f63): Define if VSX.
7458 (v0-v31): Define if Altivec.
7459 (vs0-vs63): Define if VSX.
7461 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power7.md and vsx.md.
7463 * config/rs6000/power7.md: New file, provide tuning parameters for
7466 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): Add VSX support.
7467 (rs6000_cpu_cpp_builtins): Ditto.
7468 (altivec_overloaded_builtins): Ditto.
7469 (altivec_resolve_overloaded_builtin): Ditto.
7471 * config/rs6000/rs6000.opt (-mno-vectorize-builtins): Add new
7472 debug switch to disable vectorizing simple math builtin
7475 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
7476 Vectorize simple math builtin functions.
7477 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
7478 hook to vectorize math builtins.
7479 (rs6000_override_options): Enable -mvsx on -mcpu=power7.
7480 (rs6000_builtin_conversion): Add VSX/power7 support.
7481 (rs6000_builtin_vec_perm): Ditto.
7482 (vsplits_constant): Add support for loading up a vector constant
7483 with just the high bit set in each part.
7484 (rs6000_expand_vector_init): Add VSX/power7 support.
7485 (rs6000_expand_vector_set): Ditto.
7486 (rs6000_expand_vector_extract): Ditto.
7487 (rs6000_emit_move): Ditto.
7488 (bdesc_3arg): Ditto.
7489 (bdesc_2arg): Ditto.
7490 (bdesc_1arg): Ditto.
7491 (rs6000_expand_ternop_builtin): Ditto.
7492 (altivec_expand_builtin): Ditto.
7493 (rs6000_expand_unop_builtin): Ditto.
7494 (rs6000_init_builtins): Ditto.
7495 (altivec_init_builtins): Ditto.
7496 (builtin_function_type): Ditto.
7497 (rs6000_common_init_builtins): Ditto.
7498 (rs6000_handle_altivec_attribute); Ditto.
7499 (rs6000_mangle_type): Ditto.
7500 (rs6000_vector_mode_supported_p): Ditto.
7501 (rs6000_mode_dependent_address): Altivec addresses with AND -16
7504 * config/rs6000/vsx.md: New file for VSX support.
7506 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): New macro for
7507 identifing values with just the most significant bit set.
7508 (enum rs6000_builtins): Add builtins for VSX. Add simple math
7509 vectorized builtins.
7511 * config/rs6000/altivec.md (UNSPEC_VRFIP): Delete.
7512 (UNSPEC_VRFIM): Delete.
7513 (splitter for loading up vector with most significant bit): New
7514 splitter for vectorizing copysign.
7515 (altivec_vrfiz): Rename from altivec_fturncv4sf2. Add support for
7516 vectorizing simple math functions.
7517 (altivec_vrfip): Add support for vectorizing simple math functions.
7518 (altivec_vrfim): Ditto.
7519 (altivec_copysign_v4sf3): New insn for Altivec copysign support.
7521 * config/rs6000/rs6000.md (UNSPEC_BPERM): New constant.
7522 (power7.md, vsx.md): Include for power7 support.
7523 (copysigndf3): Use VSX instructions if -mvsx.
7524 (negdf2_fpr): Ditto.
7525 (absdf2_fpr): Ditto.
7526 (nabsdf2_fpr): Ditto.
7527 (adddf3_fpr): Ditto.
7528 (subdf3_fpr): Ditto.
7529 (muldf3_fpr): Ditto.
7530 (divdf3_fpr): Ditto.
7531 (fix_truncdfdi2_fpr): Ditto.
7532 (cmpdf_internal1): Ditto.
7533 (fred, fred_fpr): Convert into expander/insn to add VSX support.
7534 (btruncdf2, btruncdf2_fpr): Ditto.
7535 (ceildf2, ceildf2_fpr): Ditto.
7536 (floordf2, floordf2_fpr): Ditto.
7537 (floatdidf2, floatdidf2_fpr): Ditto.
7538 (fmadddf4_fpr): Name insn. Use VSX instructions if -mvsx.
7539 (fmsubdf4_fpr): Ditto.
7540 (fnmadddf4_fpr_1): Ditto.
7541 (fnmadddf4_fpr_2): Ditto.
7542 (fnmsubdf4_fpr_1): Ditto.
7543 (fnmsubdf4_fpr_2): Ditto.
7544 (fixuns_truncdfdi2): Add expander for VSX support.
7545 (fix_truncdfdi2): Ditto.
7546 (fix_truncdfsi2): Ditto.
7548 (btruncsf2): Whitespace.
7549 (movdf_hardfloat32): Add support for VSX registers.
7550 (movdf_softfloat32): Ditto.
7551 (movdf_hardfloat64): Ditto.
7552 (movdf_hardfloat64_mfpgpr): Ditto.
7553 (movdf_softfloat64): Ditto.
7554 (movti splitters): Add check for vector registers supporting
7555 TImode in the future.
7556 (bpermd): Add power7 bpermd instruction.
7558 * config/rs6000/altivec.h (vec_div): Define if VSX.
7562 (vec_nearbyint): Ditto.
7565 (all predicates): Use the generic builtin function, and not the V4SF
7566 specific function so that the predicates will work with VSX's V2DF.
7570 * doc/extend.texi (PowerPC Altivec/VSX Built-in Functions):
7571 Document new VSX functions and types.
7573 * doc/invoke.texi (PowerPc options): Document -mpopcntd, -mvsx
7576 * doc/md.texi (PowerPC constraints): Document "wd", "wf", "ws",
7577 "wa", and "j" constraints. Modify "v" to talk about Altivec
7578 instead of just vector.
7580 2009-07-30 Andrew MacLeod <amacleod@redhat.com>
7583 * tree-into-ssa.c (insert_phi_nodes_for, rewrite_add_phi_arguments): Set
7584 location for phi arguments.
7585 (rewrite_update_phi_arguments): Find locations for reaching defs.
7586 * tree-ssa-threadupdate.c (create_edge_and_update_destination_phis):
7587 Add location to add_phi_arg calls.
7588 * tree-loop-districbution.c (update_phis_for_loop_copy): Add locations.
7589 * tree-ssa-loop-manip.c (create_iv, add_exit_phis_edge,
7590 split_loop_exit_edge, tree_transform_and_unroll_loop): Add locations.
7591 * tree-tailcall.c (add_successor_phi_arg, eliminate_tail_call,
7592 create_tailcall_accumulator, tree_optimize_tail_calls_1): Add locations.
7593 * tree.h (struct phi_arg_d): Add location_t to PHI arguments.
7594 * tree-phinodes.c (make_phi_node): Initialize location.
7595 (resize_phi_node): Initialize location to UNKNOWN_LOCATION.
7596 (add_phi_arg): Add location parameter.
7597 (remove_phi_arg_num): Move location when moving phi argument.
7598 * omp-low.c (expand_parallel_call, expand_omp_for_static_chunk): Set
7600 * tree-vect-loop-manip.c (slpeel_update_phis_for_duplicate_loop,
7601 slpeel_update_phi_nodes_for_guard1,
7602 slpeel_update_phi_nodes_for_guard2,
7603 slpeel_tree_duplicate_loop_to_edge_cfg, set_prologue_iterations,
7604 vect_loop_versioning): Set locations.
7605 * tree-parloops.c (create_phi_for_local_result,
7606 transform_to_exit_first_loop, create_parallel_loop): Add locations.
7607 * gimple-pretty-print.c (dump_gimple_phi): Dump lineno's if present.
7608 * tree-vect-loop.c (get_initial_def_for_induction,
7609 vect_create_epilog_for_reduction, vect_finalize_reduction): Add
7611 * tree-flow-inline.h (gimple_phi_arg_location): New. Return locus.
7612 (gimple_phi_arg_location_from_edge): New. Return locus from an edge.
7613 (gimple_phi_arg_set_location): New. Set locus.
7614 (gimple_phi_arg_has_location): New. Check for locus.
7615 (redirect_edge_var_map_location): New. Return locus from var_map.
7616 * tree-vect-data-refs.c (vect_setup_realignment): Set location.
7617 * tree-ssa-phiopt.c (conditional_replacement): Set locus when
7618 combining PHI arguments.
7619 (cond_store_replacement): Set location.
7620 * cfgexpand.c (gimple_assign_rhs_to_tree): Transfer locus if possible.
7621 * grpahite.c (add_loop_exit_phis, add_guard_exit_phis,
7622 scop_add_exit_phis_edge): Add locations.
7623 * tree-cfgcleanup.c (remove_forwarder_block,
7624 remove_forwarder_block_with_phi): Add locations.
7625 * tree-ssa-pre.c (insert_into_preds_of_block): Add locations.
7626 * tree-predcom.c (initialize_root_vars, initialize_root_vars_lm): Add
7628 * tree-ssa-dce.c (forward_edge_to_pdom): Add locations.
7629 * tree-ssa.c (redirect_edge_var_map_add, ssa_redirect_edge,
7630 flush_pending_stmts): Add source location.
7631 * lambda-code.c (perfect_nestify): Maintain location stack with argument
7632 stack to preserve locations.
7633 * tree-vect-stmts.c (vectorizable_load): Add location.
7634 * tree-inline.c (copy_phis_for_bb): Copy locus.
7635 (setup_one_parameter): Add call locus to inlined parameter stmts.
7636 (initialize_inlined_parameters): Pass in call location as parameter
7638 (tree_function_versioning): Pass location to setup_one_parameter.
7639 * tree-ssa-phiprop.c (phiprop_insert_phi): Set locations.
7640 * tree-outof-ssa.c (struct _elim_graph): Add source_location vecs for
7641 copy and edge lists.
7642 (insert_partition_copy_on_edge, insert_value_copy_on_edge,
7643 insert_rtx_to_part_on_edge, insert_part_to_rtx_on_edge): Provide a
7644 locus parameter and override the stmt default if provided.
7645 (new_elim_graph, clear_elim_graph, delete_elim_graph,
7646 elim_graph_add_edge, elim_graph_remove_succ_edge,
7647 FOR_EACH_ELIM_GRAPH_SUCC, FOR_EACH_ELIM_GRAPH_PRED, eliminate_build,
7648 elim_forward, elim_unvisited_predecessor, elim_backward, elim_create,
7649 eliminate_phi): Add locus info in elimination graph for each edge and
7651 (insert_backedge_copies): Copy locus if present.
7652 * tree-flow.h (struct _edge_var_map): Add locus field.
7653 * tree-switch_conversions.c (fix_phi_nodes): Add locations.
7654 * tree-cfg.c (reinstall_phi_args, gimple_make_forwarder_block,
7655 add_phi_args_after_copy_edge, gimple_lv_adjust_loop_header_phi): Add
7657 * ipa-struct-reorg.c (make_edge_and_fix_phis_of_dest): Add locations.
7659 2009-07-30 Martin Jambor <mjambor@suse.cz>
7661 PR tree-optimization/40570
7662 * ipa-inline.c (cgraph_decide_inlining): Watch out for dead single
7665 2009-07-30 Razya Ladelsky <razya@il.ibm.com>
7667 * ssa-loop-manip.c: Include langhooks.h.
7668 (rewrite_phi_with_iv): New.
7669 (rewrite_all_phi_nodes_with_iv): New.
7670 (canonicalize_loop_ivs): Move here from tree-parloops.c.
7671 Remove reduction_list argument. Use rewrite_all_phi_nodes_with_iv.
7672 * tree-parloops.c (loop_parallel_p): Move out all conditions
7673 except dependency check.
7674 (canonicalize_loop_ivs): Move to tree-ssa-loop-manip.c.
7675 (gen_parallel_loop): Call canonicalize_loop_ivs without
7676 reduction_list argument.
7677 (build_new_reduction): New.
7678 (gather_scalar_reductions): New.
7679 (try_get_loop_niter): New.
7680 (try_create_reduction_list): New.
7681 (parallleize_loops): Change the parallel conditions check.
7682 * tree-flow.h (canonicalize_loop_ivs): Remove one argument.
7683 * Makefile.in (tree-ssa-loop-manip.o): Add langhooks.h dependency.
7685 2009-07-30 Dave Korn <dave.korn.cygwin@gmail.com>
7687 * opt-functions.awk (opt_args): Allow argument to be enclosed in
7689 * doc/options.texi (Option properties): Mention new quoting syntax.
7691 2009-07-29 Douglas B Rupp <rupp@gnat.com>
7693 * config/alpha/alpha.c (alpha_start_function):
7694 Handle VMS_DEBUG_MAIN_POINTER
7695 * config/alpha/vms.h (VMS_DEBUG_MAIN_POINTER): Define new macro.
7696 * doc/invoke.texi: Document -mdebug-main switch.
7698 2009-07-29 Richard Henderson <rth@redhat.com>
7700 * cgraph.c (cgraph_set_call_stmt_including_clones): Tidy.
7701 (cgraph_create_edge_including_clones): Likewise.
7702 * tree-inline.c (copy_bb): Operate on the correct edges
7703 when updating the callgraph.
7705 2009-07-29 Douglas B Rupp <rupp@gnat.com>
7707 * config/alpha/vms-cc.c: Deleted.
7708 * config/alpha/vms-ld.c: Deleted.
7709 * config/alpha/t-vms64: Moved to config/vms
7710 * config/alpha/vms-crt0-64.c: Moved to config/vms
7711 * config/alpha/vms-crt0.c: Moved to config/vms
7712 * config/alpha/vms-psxcrt0-64.c: Moved to config/vms
7713 * config/alpha/vms-psxcrt0.c: Moved to config/vms
7714 * config/alpha/xm-vms.h: Moved to config/vms
7715 * config/alpha/x-vms: Moved to config/vms
7716 * config/alpha/t-vms (vcrt0.o, pcrt0.o): Move rules to new file
7718 * config/vms/t-vms: Moved here from config/alpha. Alpha specific
7719 parts removed. (STMP_FIXPROTO, STMP_FIXINC, LIMITS_H_TEST): Set.
7721 * config/vms/t-vms64: Moved here from config/alpha
7722 * config/vms/vms-crt0-64.c: Moved here from config/alpha.
7723 (argc,argv,envp): Enforce 32bit malloc'ing.
7724 * config/vms/vms-psxcrt0-64.c: Likewise.
7725 * config/vms/vms-crt0.c: Moved here from config/alpha.
7726 * config/vms/vms-psxcrt0.c: Likewise.
7727 * config/vms/vms-crtl-64.h: New file.
7728 * config/vms/vms-crtl.h: New file.
7729 * config/vms/vms.opt: New file.
7730 * config/vms/xm-vms64.h: New file.
7731 * config/vms/xm-vms.h: Moved here from config/alpha.
7732 (STANARD_EXEC_PREFIX, STANDARD_STARTFILE_PREFIX, STANDARD_INCLUDE_DIR):
7734 * config/vms/x-vms: Moved here from config/alpha.
7735 (version, VMS_EXTRA_PARTS): Moved to t-vms.
7736 (vms-ld.o, vms-cc.o): Removed.
7737 (LN, LN_S, USE_COLLECT2, POD2MAN): Set.
7739 2009-07-29 Douglas B Rupp <rupp@gnat.com>
7741 * dwarf2out.c (add_name_and_src_coords_attributes): Push on the
7742 correct stack (obvious VMS fix).
7744 2009-07-29 Douglas B Rupp <rupp@gnat.com>
7746 * dwarf2out.c (output_file_names): Output VMS style file name, size,
7747 date, version info if VMS_DEBUGGING_INFO defined.
7748 * vmsdgbout.c (vms_file_stats_name): New functon. VMS style file name,
7749 size, date calculating code moved here.
7751 2009-07-29 Paul Brook <paul@codesourcery.com>
7753 * config/arm/lib1funcs.asm (clear_cache): Use ARM_FUNC_START and
7756 2009-07-29 Uros Bizjak <ubizjak@gmail.com>
7759 * config/alpha/alpha.c (alpha_expand_unaligned_store): Convert src
7760 to DImode when generating insq_le insn.
7762 2009-07-28 Douglas B Rupp <rupp@gnat.com>
7764 * dwarf2out.c (DWARF2_INDIRECT_STRING_SUPPORT_MISSING_ON_TARGET):
7765 New macro set for VMS_DEBUGGGING_INFO.
7766 (AT_string_form): Use it.
7768 2009-07-28 DJ Delorie <dj@redhat.com>
7770 * config/mep/mep.c (vtext_section): New.
7771 (vftext_section): New.
7772 (ftext_section): New.
7773 (mep_select_section): Add support for functions.
7774 (mep_unique_section): Likewise.
7775 (mep_asm_init_sections): Likewise.
7776 (mep_encode_section_info): Remove it from here.
7778 * config/mep/mep.h (USE_SELECT_SECTION_FOR_FUNCTIONS): Define.
7780 2009-07-28 Paolo Bonzini <bonzinI@gnu.org>
7782 * tree.h (TREE_DEPRECATED): Document it is used for types too.
7783 (TYPE_VECTOR_OPAQUE): Use default_def_flag
7785 2009-07-28 Douglas B Rupp <rupp@gnat.com>
7787 * dwarf2out.c (output_file_names): Test new macro
7788 DWARF2_DIR_SHOULD_END_WITH_SEPARATOR.
7789 (add_comp_dir_attribute): Likewise.
7791 2009-07-28 Kai Tietz <kai.tietz@onevision.com>
7793 * config/i386/mingw-w64.h (LINK_SPEC): Add
7794 separating space between commands.
7796 2009-07-28 Jan Hubicka <jh@suse.cz>
7798 PR tree-optimization/40759
7799 * tree-ssa-dce.c (mark_virtual_phi_result_for_renaming): Mark all uses
7802 2009-07-27 DJ Delorie <dj@redhat.com>
7804 * config/mep/mep.c (mep_expand_builtin_saveregs): Make sure 64-bit
7805 types are dword-aligned.
7806 (mep_expand_va_start): Likewise.
7808 2009-07-27 Olivier Hainque <hainque@adacore.com>
7809 Douglas B Rupp <rupp@gnat.com>
7811 * convert.c (convert_to_pointer): Don't assume the target
7812 pointer type is POINTER_SIZE long. Fetch its precision instead.
7814 2009-07-27 Douglas B Rupp <rupp@gnat.com>
7816 * system.h (fopen): Undefine if macro.
7818 2009-07-27 Jakub Jelinek <jakub@redhat.com>
7820 * dwarf2out.c (output_cfi_p): Removed.
7821 (output_cfis): New function.
7822 (output_fde): New function, split from output_call_frame_info.
7823 (output_call_frame_info): Use it.
7824 (dwarf2out_switch_text_section): Use output_cfis.
7826 2009-07-24 Kai Tietz <kai.tietz@onevision.com>
7828 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Error build when
7829 TARGET_BI_ARCH is specified without enabling SJLJ.
7830 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Define MD_UNWIND_SUPPORT,
7831 if TARGET_64BIT and TARGET_BI_ARCH aren't defined.
7833 2009-07-26 Mikael Pettersson <mikpe@it.uu.se>
7835 * arm.md (negdi2): Use DImode if forcing a value into a register.
7837 2009-07-26 Ira Rosen <irar@il.ibm.com>
7839 PR tree-optimization/40801
7840 * tree-vect-stmts.c (vectorizable_call): Get previous copy
7841 of vector operand from the previous copy of vector statement.
7842 Pass the correct definition type value to
7843 vect_get_vec_def_for_stmt_copy().
7845 2009-07-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7847 * collect2.c (scan_libraries): Use CONST_CAST2 to perform char ** to
7848 const char ** conversion.
7850 2009-07-25 David Daney <ddaney@caviumnetworks.com>
7852 * system.h (gcc_assert): Invoke __builtin_unreachable() instead of
7853 fancy_abort() if !ENABLE_ASSERT_CHECKING.
7854 (gcc_unreachable): Invoke __builtin_unreachable() if
7855 !ENABLE_ASSERT_CHECKING.
7857 2009-07-25 David Daney <ddaney@caviumnetworks.com>
7859 PR rtl-optimization/40445
7860 * emit-rtl.c (next_nonnote_insn_bb): New function.
7861 * rtl.h (next_nonnote_insn_bb): Declare new function.
7862 * cfgcleanup.c (try_optimize_cfg): Don't remove an empty block
7863 with no successors that is the successor of the ENTRY_BLOCK.
7864 Continue from the top after removing an empty fallthrough block.
7865 * cfgrtl.c (get_last_bb_insn): Call next_nonnote_insn_bb instead
7866 of next_nonnote_insn.
7868 2009-07-25 David Daney <ddaney@caviumnetworks.com>
7870 * cfgcleanup.c (old_insns_match_p): Handle the case of empty blocks.
7872 2009-07-25 Martin Jambor <mjambor@suse.cz>
7874 * c-common.c (c_common_attribute_table): New element for noclone.
7875 (handle_noclone_attribute): New function. Forward-declare.
7876 * tree-inline.c (tree_versionable_function_p): Check for noclone
7878 * doc/extend.texi (Labels as Values): Document need for noclone.
7879 (Function Attributes): Document noclone attribute.
7881 2009-07-25 Jakub Jelinek <jakub@redhat.com>
7883 PR rtl-optimization/34999
7884 * dwarf2out.c (struct dw_fde_struct): Add dw_fde_switch_cfi
7885 and dw_fde_switched_cold_to_hot fields.
7886 (output_cfi_p): New function.
7887 (output_call_frame_info): If fde->dw_fde_switched_sections,
7888 output 2 FDEs instead of one with corrupted header.
7889 (dwarf2out_do_cfi_startproc): New function.
7890 (dwarf2out_begin_prologue): Use it. Initialize fde->dw_fde_switch_cfi
7891 and fde->dw_fde_switched_cold_to_hot.
7892 (dwarf2out_switch_text_section): Compute
7893 fde->dw_fde_switched_cold_to_hot. Switch to new text section here.
7894 If dwarf2out_do_cfi_asm, emit .cfi_endproc before it and call
7895 dwarf2out_do_cfi_startproc plus emit again currently active CFI insns.
7896 Otherwise, compute fde->dw_fde_switch_cfi.
7898 2009-07-24 Cary Coutant <ccoutant@google.com>
7900 * tree-cfg.c (assign_discriminator): Add explicit parentheses.
7902 2009-07-24 Cary Coutant <ccoutant@google.com>
7904 * cfghooks.c (split_block): Copy discriminator to new block.
7905 * tree-cfg.c (assign_discriminator): Check location of last
7906 instruction in block as well as first.
7908 2009-07-24 Uros Bizjak <ubizjak@gmail.com>
7910 * config/i386/linux.c: Use fputs or putc instead of fprintf
7912 * config/i386/gas.h: Ditto.
7913 * config/i386/x86-64.h: Ditto.
7914 * config/i386/att.h: Ditto.
7916 2009-07-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7918 * expmed.c (emit_store_flag): Use a recursive call to optimize the
7921 2009-07-24 Martin Jambor <mjambor@suse.cz>
7923 * ipa-prop.h (struct ipa_node_params): New flag node_enqued.
7924 (ipa_push_func_to_list_1): Declare.
7925 (ipa_push_func_to_list): New function.
7927 * ipa-prop.c (ipa_push_func_to_list_1): New function.
7928 (ipa_init_func_list): Call ipa_push_func_to_list_1.
7929 (ipa_push_func_to_list): Removed.
7930 (ipa_pop_func_from_list): Clear node_enqueued flag.
7932 2009-07-24 Andreas Krebbel <krebbel1@de.ibm.com>
7934 * config/s390/s390.c (override_options): Default
7935 max-unrolled-insns to 100 for z10 tuning.
7937 2009-07-24 Tobias Grosser <grosser@fim.uni-passau.de>
7939 * Makefile.in (TREE_DATA_REF_H, tree-vrp.o, tree-cfg.o, tree-if-conv.o
7940 tree-ssa-loop.o, tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o,
7941 tree-ssa-loop-prefetch.o, tree-predcom.o, tree-affine.o,
7942 tree-scalar-evolution.o, tree-data-ref.o, tree-vect-loop.o,
7943 tree-vect-data-refs.o, tree-loop-linear.o, tree-loop-distribution.o
7944 tree-parloops.o, tree-pretty-printer.o, fold-const.o, tree-ssa-dce.o,
7945 lambda-code.o, params.o): Cleanup use of SCEV_H and TREE_DATA_REF_H.
7947 2009-07-24 Kai Tietz <kai.tietz@onevision.com>
7949 * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR): Remove and
7950 use default set in mingw32.h header.
7951 * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Use for 32-bit and
7952 64-bit /mingw/include path.
7953 (STANDARD_STARTFILE_PREFIX_1): Use for 32-bit and 64-bit /mingw/lib
7956 2009-07-23 Neil Vachharajani <nvachhar@google.com>
7958 PR rtl-optimization/40209
7959 * loop-iv.c (iv_analysis_loop_init): Call df_note_add_problem.
7961 2009-07-23 Uros Bizjak <ubizjak@gmail.com>
7963 * config/i386/i386.c: Use ASM_LONG instead of .long. Concatenate
7964 ASM_LONG, LPREFIX, MCOUNT_NAME and PROFILE_COUNT_REGISTER strings
7965 with the rest of string where appropriate. Use fputs or putc
7966 instead of fprintf where appropriate.
7968 2009-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
7969 Pat Haugen <pthaugen@us.ibm.com>
7970 Revital Eres <ERES@il.ibm.com>
7972 * config/rs6000/vector.md: New file. Move most of the vector
7973 expander support here from altivec.md to allow for the VSX vector
7974 unit in the future. Add support for secondary_reload patterns.
7975 Rewrite the patterns for vector comparison, and vector comparison
7976 predicate instructions so that the RTL expresses the desired
7977 behavior, instead of using unspec.
7979 * config/rs6000/constraints.md ("f" constraint): Use
7980 rs6000_constraints to hold the precalculated register class.
7981 ("d" constraint): Ditto.
7982 ("wd" constraint): New constraint for VSX.
7983 ("wf" constraint): Ditto.
7984 ("ws" constraint): Ditto.
7985 ("wa" constraint): Ditto.
7986 ("wZ" constraint): Ditto.
7987 ("j" constraint): Ditto.
7989 * config/rs6000/predicates.md (vsx_register_operand): New
7991 (vfloat_operand): New predicate for vector.md.
7992 (vint_operand): Ditto.
7993 (vlogical_operand): Ditto.
7994 (easy_fp_constant): If VSX, 0.0 is an easy constant.
7995 (easy_vector_constant): Add VSX support.
7996 (altivec_indexed_or_indirect_operand): New predicate for
7997 recognizing Altivec style memory references with AND -16.
7999 * config/rs6000/rs6000.c (rs6000_vector_reload): New static global
8000 for vector secondary reload support.
8001 (rs6000_vector_reg_class): Delete, replacing it with
8003 (rs6000_vsx_reg_class): Ditto.
8004 (rs6000_constraints): New array to hold the register classes of
8005 each of the register constraints that can vary at runtime.
8006 (builtin_mode_to_type): New static array for builtin function type
8008 (builtin_hash_table): New static hash table for builtin function
8010 (TARGET_SECONDARY_RELOAD): Define target hook.
8011 (TARGET_IRA_COVER_CLASSES): Ditto.
8012 (rs6000_hard_regno_nregs_internal): If -mvsx, floating point
8013 registers are 128 bits if VSX memory reference instructions are used.
8014 (rs6000_hard_regno_mode_ok): For VSX, only check if the VSX memory
8016 (rs6000_debug_vector_unit): Move into rs6000_debug_reg_global.
8017 (rs6000_debug_reg_global): Move -mdebug=reg statements here.
8018 Print several of the scheduling related parameters.
8019 (rs6000_init_hard_regno_mode_ok): Switch to putting constraints in
8020 rs6000_constraints instead of rs6000_vector_reg_class. Move
8021 -mdebug=reg code to rs6000_debug_reg_global. Add support for
8022 -mvsx-align-128 debug switch. Drop testing float_p if VSX or
8023 Altivec. Add VSX support. Setup for secondary reload support on
8024 Altivec/VSX registers.
8025 (rs6000_override_options): Make power7 set the scheduling groups
8026 like the power5. Add support for new debug switches to override
8027 the scheduling defaults. Temporarily disable -mcpu=power7 from
8028 setting -mvsx. Add support for debug switches -malways-hint,
8029 -msched-groups, and -malign-branch-targets.
8030 (rs6000_buitlin_conversion): Add support for returning unsigned
8031 vector conversion functions to fix regressions due to stricter
8033 (rs6000_builtin_mul_widen_even): Ditto.
8034 (rs6000_builtin_mul_widen_odd): Ditto.
8035 (rs6000_builtin_vec_perm): Ditto.
8036 (rs6000_vec_const_move): On VSX, use xxlxor to clear register.
8037 (rs6000_expand_vector_init): Initial VSX support for using xxlxor
8039 (rs6000_emit_move): Fixup invalid const symbol_ref+reg that is
8041 (bdesc_3arg): Add builtins for unsigned types. Add builtins for
8042 VSX types for bit operations. Changes to accomidate vector.md.
8043 (bdesc_2arg): Ditto.
8044 (bdesc_1arg): Ditto.
8045 (struct builtin_description_predicates): Rewrite predicate
8046 handling so that RTL describes the operation, instead of passing
8047 the instruction to be used as a string argument.
8048 (bdesc_altivec_preds): Ditto.
8049 (altivec_expand_predicate_builtin): Ditto.
8050 (altivec_expand_builtin): Ditto.
8051 (rs6000_expand_ternop_builtin): Use a switch instead of an if
8052 statement for vsldoi support.
8053 (altivec_expand_ld_builtin): Change to use new names from vector.md.
8054 (altivec_expand_st_builtin): Ditto.
8055 (paired_expand_builtin): Whitespace changes.
8056 (rs6000_init_builtins): Add V2DF/V2DI types. Initialize the
8057 builtin_mode_to_type table for secondary reload. Call
8058 builtin_function_type to build random builtin functions.
8059 (altivec_init_builtins): Change to use builtin_function_type to
8060 create builtin function types dynamically as we need them.
8061 (builtin_hash_function): New support for hashing the tree types
8062 for builtin function as we need it, rather than trying to build
8063 all of the trees that we need. Add initial preliminary VSX support.
8064 (builtin_function_type): Ditto.
8065 (builtin_function_eq): Ditto.
8066 (builtin_hash_struct): Ditto.
8067 (rs6000_init_builtins): Ditto.
8068 (rs6000_common_init_builtins): Ditto.
8069 (altivec_init_builtins): Ditto.
8070 (rs6000_common_init_builtins): Ditto.
8071 (enum reload_reg_type): New enum for simplifing reg classes.
8072 (rs6000_reload_register_type): Simplify register classes into GPR,
8073 Vector, and other registers. Altivec and VSX addresses in reload.
8074 (rs6000_secondary_reload_inner): Ditto.
8075 (rs6000_ira_cover_classes): New target hook, that returns the
8076 appropriate cover classes, based on -mvsx being used or not.
8077 (rs6000_secondary_reload_class): Add VSX support.
8078 (get_vec_cmp_insn): Delete, rewrite vector conditionals.
8079 (get_vsel_insn): Ditto.
8080 (rs6000_emit_vector_compare): Rewrite vector conditional support
8081 so that where we can, we use RTL operators, instead of blindly use
8083 (rs6000_emit_vector_select): Ditto.
8084 (rs6000_emit_vector_cond_expr): Ditto.
8085 (rs6000_emit_minmax): Directly generate min/max under altivec, vsx.
8086 (create_TOC_reference): Add -mdebug=addr support.
8087 (emit_frame_save): VSX loads/stores need register indexed addressing.
8089 * config/rs6000/rs6000.md: Include vector.md.
8091 * config/rs6000/t-rs6000 (MD_INCLUDES): Add vector.md.
8093 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
8094 support for V2DI, V2DF in logical, permute, select operations.
8096 * config/rs6000/rs6000.opt (-mvsx-scalar-double): Add new debug
8097 switch for vsx/power7.
8098 (-mvsx-scalar-memory): Ditto.
8099 (-mvsx-align-128): Ditto.
8100 (-mallow-movmisalign): Ditto.
8101 (-mallow-df-permute): Ditto.
8102 (-msched-groups): Ditto.
8103 (-malways-hint): Ditto.
8104 (-malign-branch-targets): Ditto.
8106 * config/rs6000/rs6000.h (IRA_COVER_CLASSES): Delete, use target
8108 (IRA_COVER_CLASSES_PRE_VSX): Cover classes if not -mvsx.
8109 (IRA_COVER_CLASSES_VSX): Cover classes if -mvsx.
8110 (rs6000_vector_reg_class): Delete.
8111 (rs6000_vsx_reg_class): Ditto.
8112 (enum rs6000_reg_class_enum): New enum for the constraints that
8113 vary based on target switches.
8114 (rs6000_constraints): New array to hold the register class for all
8115 of the register constraints that vary based on the switches used.
8116 (ALTIVEC_BUILTIN_*_UNS): Add unsigned builtin functions.
8117 (enum rs6000_builtins): Add unsigned varients for the builtin
8118 declarations returned by target hooks for expanding multiplies,
8119 select, and permute operations. Add VSX builtins.
8120 (enum rs6000_builtin_type_index): Add entries for VSX.
8121 (V2DI_type_node): Ditto.
8122 (V2DF_type_node): Ditto.
8123 (unsigned_V2DI_type_node): Ditto.
8124 (bool_long_type_node): Ditto.
8125 (intDI_type_internal_node): Ditto.
8126 (uintDI_type_internal_node): Ditto.
8127 (double_type_internal_node): Ditto.
8129 * config/rs6000/altivec.md (whole file): Move all expanders to
8130 vector.md from altivec.md. Rename insn matching functions to be
8132 (UNSPEC_VCMP*): Delete, rewrite vector comparisons.
8133 (altivec_vcmp*): Ditto.
8134 (UNSPEC_VPERM_UNS): New, add for unsigned types using vperm.
8135 (VM): New iterator for moves that includes the VSX types.
8136 (altivec_vperm_<mode>): Add VSX types. Add unsigned types.
8137 (altivec_vperm_<mode>_uns): New, for unsigned types.
8138 (altivec_vsel_*): Rewrite vector comparisons and predicate builtins.
8139 (altivec_eq<mode>): Ditto.
8140 (altivec_gt<mode>): Ditto.
8141 (altivec_gtu<mode>): Ditto.
8142 (altivec_eqv4sf): Ditto.
8143 (altivec_gev4sf): Ditto.
8144 (altivec_gtv4sf): Ditto.
8145 (altivec_vcmpbfp_p): Ditto.
8147 2009-07-23 Richard Earnshaw <rearnsha@arm.com>
8149 * arm.md (split for ior/xor with shift and zero-extend): Cast op3 to
8152 2009-07-23 Uros Bizjak <ubizjak@gmail.com>
8155 * config/i386/i386.c (output_387_ffreep): Rewrite to use
8156 ASM_SHORT instead of .word.
8157 * config/i386/i386.md (*tls_global_dynamic_64): Use ASM_SHORT
8158 instead of .word in asm template.
8160 2009-07-22 Vladimir Makarov <vmakarov@redhat.com>
8163 * ira-lives.c (bb_has_abnormal_call_pred): New function.
8164 (process_bb_node_lives): Use it.
8166 * ira.c (setup_cover_and_important_classes): Don't setup
8167 ira_important_class_nums. Add cover classes to the end of
8169 (cover_class_order, comp_reg_classes_func, reorder_important_classes):
8171 (find_reg_class_closure): Use reorder_important_classes.
8173 * config/i386/i386.h (IRA_COVER_CLASSES): Remove.
8175 * config/i386/i386.c (i386_ira_cover_classes): New function.
8176 (TARGET_IRA_COVER_CLASSES): Redefine.
8178 * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Add a comment about
8179 importance of order of cover classes in the array.
8181 2009-07-22 Diego Novillo <dnovillo@google.com>
8183 * tree-pass.h (TDF_EH): Define.
8184 * gimple-pretty-print.c (dump_gimple_stmt): If FLAGS
8185 contains TDF_EH, print the EH region number holding GS.
8186 * tree-dump.c (dump_options): Add "eh".
8187 * doc/invoke.texi: Document it.
8189 2009-07-22 Doug Kwan <dougkwan@google.com>
8191 * config/arm/arm.md (subdi3) Copy non-reg values to DImode registers.
8193 2009-07-22 Michael Matz <matz@suse.de>
8195 PR tree-optimization/35229
8196 PR tree-optimization/39300
8198 * tree-ssa-pre.c (includes): Include tree-scalar-evolution.h.
8199 (inhibit_phi_insertion): New function.
8200 (insert_into_preds_of_block): Call it for REFERENCEs.
8201 (init_pre): Initialize and finalize scalar evolutions.
8202 * Makefile.in (tree-ssa-pre.o): Depend on tree-scalar-evolution.h .
8204 2009-07-22 Uros Bizjak <ubizjak@gmail.com>
8206 * config/i386/predicates.md (zero_extended_scalar_load_operand):
8207 Use CONST_VECTOR_NUNITS to determine number of elements.
8209 2009-07-22 Andreas Krebbel <krebbel1@de.ibm.com>
8211 * config/s390/constraints.md (ZQ, ZR, ZS, ZT): New constraints.
8212 (U, W): Constraints are now deprecated and will be removed if we
8214 * config/s390/s390.md (U, W): Replaced with ZQZR, ZSZT throughout
8216 ("prefetch"): Add the stcmh instruction for prefetching.
8217 * config/s390/s390.c (s390_symref_operand_p): Function moved. No
8219 (s390_short_displacement): Return always true if compiling for
8220 machines not providing the long displacement facility.
8221 (s390_mem_constraint): Support the new constraint letter Z.
8222 (s390_check_qrst_address): New function.
8224 2009-07-21 DJ Delorie <dj@redhat.com>
8226 * config/mep/mep.c (mep_legitimize_arg): Leave control registers
8229 2009-07-21 Jason Merrill <jason@redhat.com>
8231 * c-common.c (max_tinst_depth): Increase default to 1024.
8233 2009-07-21 Uros Bizjak <ubizjak@gmail.com>
8235 * config/i386/sse.md (vec_unpacku_float_hi_v4si): New expander.
8236 (vec_unpacku_float_lo_v4si): Ditto.
8238 2009-07-21 Uros Bizjak <ubizjak@gmail.com>
8241 * config/i386/sse.md (sse2_cvtudq2ps): New expander.
8242 (enum ix86_builtins): Add IX86_BUILTIN_CVTUDQ2PS.
8243 (builtin_description): Add __builtin_ia32_cvtudq2ps.
8244 (ix86_vectorize_builtin_conversion): Handle IX86_BUILTIN_CVTUDQ2PS.
8246 2009-07-21 Jakub Jelinek <jakub@redhat.com>
8248 PR tree-optimization/40813
8249 * tree-inline.c (copy_bb): Regimplify RHS after last stmt, not before
8252 2009-07-21 Kaz Kojima <kkojima@gcc.gnu.org>
8254 * config/sh/sh.c (sh_gimplify_va_arg_expr): Wrap the result
8255 with a NOP_EXPR if needed.
8257 2009-07-21 Paul Brook <paul@codesourcery.com>
8259 * tree-vectorizer.c (increase_alignment): Handle nested arrays.
8260 Terminate debug dump with newline.
8262 2009-07-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8264 * pa.c (compute_zdepwi_operands): Limit deposit length to 32 - lsb.
8265 Cast "1" to unsigned HOST_WIDE_INT.
8266 (compute_zdepdi_operands): Limit maximum length to 64 bits. Limit
8267 deposit length to the maximum length - lsb. Extend length if
8268 HOST_BITS_PER_WIDE_INT is 32.
8270 2009-07-20 Olatunji Ruwase <tjruwase@google.com>
8272 * cgraph.h (constant_pool_htab): New function.
8273 (constant_descriptor_tree): Move from varasm.c.
8274 * varasm.c (constant_pool_htab): New function.
8275 (constant_descriptor_tree): Move to cgraph.h.
8277 2009-07-20 Olatunji Ruwase <tjruwase@google.com>
8279 * toplev.c: Invoke FINISH_UNIT callbacks before call to finalize().
8281 2009-07-20 Shujing Zhao <pearly.zhao@oracle.com>
8283 * Makefile.in (TREE_INLINE_H, tree-inline.o, cgraph.o): Remove
8286 2009-07-20 Xinliang David Li <davidxl@google.com>
8288 * dbgcnt.c (dbg_cnt_set_limit_by_name): Add length check.
8290 2009-07-20 Adam Nemet <anemet@caviumnetworks.com>
8292 * config/mips/mips.md (move_type): Add arith.
8293 (type): Handle arith.
8294 (zero_extendsidi2): Rename this into ...
8295 (*zero_extendsidi2): ... this. Don't match if ISA_HAS_EXT_INS.
8296 (zero_extendsidi2): New expander.
8297 (*zero_extendsidi2_dext): New pattern.
8299 2009-07-20 Nick Clifton <nickc@redhat.com>
8301 * config.gcc (mips64-*-*): Add definition of tm_defines in order
8302 to set MIPS_ABI_DEFAULT.
8303 * config/mips/vr.h (MIPS_ABI_DEFAULT): Remove definition.
8305 2009-07-20 Jakub Jelinek <jakub@redhat.com>
8307 * tree-object-size.c (addr_object_size): Handle unions with
8308 array in it as last field of structs in __bos (, 1) as __bos (, 0).
8310 PR tree-optimization/40792
8311 * tree.c (build_function_type_skip_args): Remove bogus assert.
8313 2009-07-20 Jan Hubicka <jh@suse.cz>
8314 Martin Jambor <mjambor@suse.cz>
8316 * cgraph.h (combined_args_to_skip): New field.
8317 * cgraph.c (cgraph_create_virtual_clone): Properly handle
8318 combined_args_to_skip and args_to_skip.
8319 * tree-inline.c (update_clone_info): New function.
8320 (tree_function_versioning): Call update_clone_info.
8321 * cgraphunit.c: (cgraph_materialize_clone): Dump materialized
8323 (cgraph_materialize_all_clones): More extensive dumping, working
8324 with combined_args_to_skip rather than args_to_skip.
8326 2009-07-20 Ira Rosen <irar@il.ibm.com>
8328 * tree-vectorizer.h (vectorizable_condition): Add parameters.
8329 * tree-vect-loop.c (vect_is_simple_reduction): Support COND_EXPR.
8330 (get_initial_def_for_reduction): Likewise.
8331 (vectorizable_reduction): Skip the check of first operand in case
8332 of COND_EXPR. Add check that it is outer loop vectorization if
8333 nested cycle was detected. Call vectorizable_condition() for
8334 COND_EXPR. If reduction epilogue cannot be created do not fail for
8335 nested cycles (if it is not double reduction). Assert that there
8336 is only one type in the loop in case of COND_EXPR. Call
8337 vectorizable_condition() to vectorize COND_EXPR.
8338 * tree-vect-stmts.c (vectorizable_condition): Update comment.
8339 Add parameters. Allow nested cycles if called from
8340 vectorizable_reduction(). Use reduction vector variable if provided.
8341 (vect_analyze_stmt): Call vectorizable_reduction() before
8342 vectorizable_condition().
8343 (vect_transform_stmt): Update call to vectorizable_condition().
8345 2009-07-20 Christian Bruel <christian.bruel@st.com>
8347 * config/sh/sh.opt (-mfmovd): Resurrect and document.
8348 * doc/invoke.texi (-mfmovd): Likewise.
8349 * config/sh/sh.h (TARGET_FMOVD, MASK_FMOVD): Remove default setting.
8351 2009-07-20 Jan Hubicka <jh@suse.cz>
8353 * tree-ssa-dce.c (remove_dead_phis): Only look for abnormal PHIs
8354 when handling SSA name.
8356 2009-07-19 Jan Hubicka <jh@suse.cz>
8358 PR tree-optimization/40676
8359 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do renaming on all
8360 virtual PHIs in empty BBs.
8362 2009-07-18 Adam Nemet <anemet@caviumnetworks.com>
8364 * combine.c (make_compound_operation) <SUBREG>: If force_to_mode
8365 re-expanded the compound use gen_lowpart instead to convert to the
8368 2009-07-18 Adam Nemet <anemet@caviumnetworks.com>
8370 * combine.c (try_widen_shift_mode): Add COUNT, OUTER_CODE and
8371 OUTER_CONST arguments.
8372 <LSHIFTRT>: Use them to allow widening if the bits shifted in from
8373 the new wider mode will be masked off.
8374 (simplify_shift_const_1): Adjust calls to try_widen_shift_mode.
8376 2009-07-18 Adam Nemet <anemet@caviumnetworks.com>
8378 * combine.c (try_widen_shift_mode) <LSHIFTRT>: Allow widening if the
8379 high-order bits are zero.
8381 2009-07-18 Adam Nemet <anemet@caviumnetworks.com>
8383 * combine.c (simplify_shift_const_1): Split code to determine
8385 (try_widen_shift_mode): ... here. Allow widening for ASHIFTRT if the
8386 new bits shifted in are identical to the old sign bit.
8388 2009-07-18 Richard Guenther <rguenther@suse.de>
8391 * gimplify.c (gimplify_call_expr): Reject code using results from
8392 functions returning void.
8394 2009-07-18 Richard Sandiford <r.sandiford@uk.ibm.com>
8396 * doc/md.texi: Document the new PowerPC "es" constraint.
8397 Document that "m" can include automodified addresses on this target,
8398 and explain how %U must be used. Extend the "Q" and "Z" documentation
8399 to suggest "es" as well as "m".
8400 * config/rs6000/constraints.md (es): New memory constraint.
8401 (Q, Z): Update strings to match new documentation.
8403 2009-07-18 Richard Sandiford <r.sandiford@uk.ibm.com>
8405 * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Allow any
8406 offset from virtual_stack_vars_rtx and arg_pointer_rtx.
8407 * config/rs6000/predicates.md (volatile_mem_operand): Use
8408 offsettable_nonstrict_memref_p.
8409 * config/rs6000/rs6000.md (*floatsidf2_internal): Remove split check.
8410 (*floatunssidf2_internal): Likewise.
8411 (*fix_truncdfsi2_internal): Likewise.
8412 (*fix_trunctfsi2_internal): Likewise.
8414 2009-07-17 Anatoly Sokolov <aesok@post.ru>
8416 * config/avr/avr-devices.c (avr_mcu_t): Add atmega8u2, atmega16u2 and
8418 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
8420 2009-07-17 Richard Guenther <rguenther@suse.de>
8423 * tree-pass.h (pass_diagnose_omp_blocks): Declare.
8424 (pass_warn_unused_result): Likewise.
8425 (TODO_set_props): Remove.
8426 * omp-low.c (diagnose_omp_structured_block_errors): Change to
8428 (pass_diagnose_omp_blocks): Define.
8429 * c-decl.c (pop_file_scope): Do not finalize the CU here.
8430 (c_gimple_diagnostics_recursively): Remove.
8431 (finish_function): Do not call it.
8432 (c_write_global_declarations): Continue after errors.
8433 Finalize the CU here.
8434 * c-gimplify.c (c_genericize): Do not gimplify here.
8435 * c-common.c (c_warn_unused_result): Move ...
8436 * tree-cfg.c (do_warn_unused_result): ... here.
8437 (run_warn_unused_result): New function.
8438 (gate_warn_unused_result): New function.
8439 (pass_warn_unused_result): New pass.
8440 * c-common.h (c_warn_unused_result): Remove.
8441 * flags.h (flag_warn_unused_result): Declare.
8442 * c-opts.c (c_common_init_options): Enable flag_warn_unused_result.
8443 * opts.c (flag_warn_unused_result): Initialize to false.
8444 * toplev.c (compile_file): Add comment.
8445 * omp-low.c (create_omp_child_function): Do not register
8446 the function with the frontend.
8447 (diagnose_omp_structured_block_errors): Prepare to be
8448 called as optimization pass.
8449 (gate_diagnose_omp_blocks): New function.
8450 (pass_diagnose_omp_blocks): New pass.
8451 * cgraph.h (cgraph_optimize): Remove.
8452 (cgraph_analyze_function): Likewise.
8453 * cgraph.c (cgraph_add_new_function): Gimplify C++ thunks.
8454 * cgraphunit.c (cgraph_lower_function): Lower nested functions
8455 before their parents here.
8456 (cgraph_finalize_function): Not here.
8457 (cgraph_analyze_function): Gimplify functions here.
8458 (cgraph_finalize_compilation_unit): Continue after errors.
8459 Optimize the callgraph from here.
8460 (cgraph_optimize): Make static.
8461 * langhooks.c (write_global_declarations): Finalize the CU.
8462 * gimplify.c (gimplify_asm_expr): Do not emit ASMs with errors.
8463 (gimplify_function_tree): Assert we gimplify only once.
8464 Set PROP_gimple_any property.
8465 * tree-nested.c (gimplify_all_functions): New function.
8466 (lower_nested_functions): Gimplify all nested functions.
8467 * gimple.h (diagnose_omp_structured_block_errors): Remove.
8468 * passes.c (init_optimization_passes): Add pass_warn_unused_result
8469 and pass_diagnose_omp_blocks after gimplification. Do not
8470 set TODO_set_props on all_lowering_passes.
8471 (execute_one_pass): Do not handle TODO_set_props.
8472 * Makefile.in (cgraphunit.o): Add $(TREE_DUMP_H) dependency.
8473 (gimplify.o): Add tree-pass.h dependency.
8474 * tree-inline.c (copy_statement_list): Properly copy STATEMENT_LIST.
8475 (copy_tree_body_r): Properly handle TARGET_EXPR like SAVE_EXPR.
8476 (unsave_r): Likewise.
8477 * c-omp.c (c_finish_omp_atomic): Set DECL_CONTEXT on the
8480 2009-07-17 Sandra Loosemore <sandra@codesourcery.com>
8482 * doc/service.texi (Service): Restore previously removed link,
8483 which isn't broken after all.
8485 2009-07-17 Richard Guenther <rguenther@suse.de>
8487 PR tree-optimization/40321
8488 * tree-ssa-pre.c (add_to_exp_gen): Also add names defined by
8489 PHI nodes to the maximal set.
8490 (make_values_for_phi): Add PHI arguments to the maximal set.
8491 (execute_pre): Dump PHI_GEN and the maximal set.
8493 2009-07-17 Jakub Jelinek <jakub@redhat.com>
8496 * gimplify.c (gimplify_conversion): Don't change non-conversions into
8499 2009-07-16 Sandra Loosemore <sandra@codesourcery.com>
8501 * doc/extend.texi (Nested Functions): Replace broken link with
8503 * doc/service.texi (Service): Remove broken link.
8505 2009-07-16 H.J. Lu <hongjiu.lu@intel.com>
8508 * builtins.c (expand_builtin_memcmp): Use loc instead of
8509 EXPR_LOCATION (exp).
8510 (expand_builtin_strncmp): Likewise.
8512 2009-07-17 Aldy Hernandez <aldyh@redhat.com>
8513 Manuel López-Ibáñez <manu@gcc.gnu.org>
8516 * tree-complex.c, tree-loop-distribution.c, tree.c, tree.h,
8517 builtins.c, fold-const.c, omp-low.c, cgraphunit.c, tree-ssa-ccp.c,
8518 tree-ssa-dom.c, gimple-low.c, expr.c, tree-ssa-ifcombine.c,
8519 c-decl.c, stor-layout.c, tree-if-conv.c, c-typeck.c, gimplify.c,
8520 calls.c, tree-sra.c, tree-mudflap.c, tree-ssa-copy.c,
8521 tree-ssa-forwprop.c, c-convert.c, c-omp.c, varasm.c,
8522 tree-inline.c, c-common.c, c-common.h, gimple.c,
8523 tree-switch-conversion.c, gimple.h, tree-cfg.c, c-parser.c,
8524 convert.c: Add location argument to fold_{unary,binary,ternary},
8525 fold_build[123], build_call_expr, build_size_arg,
8526 build_fold_addr_expr, build_call_array, non_lvalue, size_diffop,
8527 fold_build1_initializer, fold_build2_initializer,
8528 fold_build3_initializer, fold_build_call_array,
8529 fold_build_call_array_initializer, fold_single_bit_test,
8530 omit_one_operand, omit_two_operands, invert_truthvalue,
8531 fold_truth_not_expr, build_fold_indirect_ref, fold_indirect_ref,
8532 combine_comparisons, fold_builtin_*, fold_call_expr,
8533 build_range_check, maybe_fold_offset_to_address, round_up,
8536 2009-07-16 Jason Merrill <jason@redhat.com>
8539 * c-common.c (c_common_reswords): Add __is_standard_layout
8541 * c-common.h (enum rid): Add RID_IS_STD_LAYOUT and RID_IS_TRIVIAL.
8542 * doc/implement-cxx.texi: New.
8543 * doc/gcc.texi: Include it.
8545 2009-07-16 DJ Delorie <dj@redhat.com>
8547 * config/m32c/m32c.c (m32c_compare_redundant): Avoid removing
8548 compares that may be indirectly affected by previous instructions.
8550 2009-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8552 * builtins.c (do_mpc_arg2): New.
8553 (fold_builtin_2): Fold builtin cpow.
8554 * real.h (HAVE_mpc_pow): New.
8556 2009-07-16 Bingfeng Mei <bmei@broadcom.com>
8558 * modulo-sched.c (sms_schedule): stage_count <= 1 as correct
8559 comparison to skip unprofitable schedule
8561 2009-07-16 Simon Baldwin <simonb@google.com>
8563 * gcc.c (option_map): New flag -no-canonical-prefixes.
8564 * (display_help): Print help text for new flag.
8565 * (process_command): Move options translation and language specifics
8566 and handle new flag early. Use it to set a function pointer to a
8567 prefix builder. Replace make_relative_prefix calls with calls to
8568 the function pointed to. Ignore new flag in regular options handling.
8569 * doc/invoke.texi (Overall Options): Documented -no-canonical-prefixes.
8571 2009-07-15 DJ Delorie <dj@redhat.com>
8573 * config/mep/mep.md (sibcall_internal): Change register to avoid
8575 (sibcall_value_internal): Likewise.
8577 2009-07-15 Eric Botcazou <ebotcazou@adacore.com>
8579 PR rtl-optimization/40710
8580 * resource.c (mark_target_live_regs): Reset DF problem to LR.
8582 2009-07-15 Adam Nemet <anemet@caviumnetworks.com>
8584 * config/mips/mips.md (*extenddi_truncate<mode>,
8585 *extendsi_truncate<mode>): Change type attribute to move_type
8586 with shift_shift. Split out code handling exts from here ...
8587 (*extend<GPR:mode>_truncate<SHORT:mode>_exts): ... to this new
8589 (*extendhi_truncateqi): Change type attribute to move_type with
8590 shift_shift. Split out code handling exts from here ...
8591 (*extendhi_truncateqi_exts): ... to this new pattern.
8593 2009-07-15 Uros Bizjak <ubizjak@gmail.com>
8595 * config/i386/sse.md (copysign<mode>3): Use "and-not" SSE instruction
8596 instead of "and" with inverted sign bit mask value. Use
8597 "nonimmediate_operand" for operand 1 and operand 2 predicate.
8598 Allocate registers only for operand 4 and operand 5.
8600 2009-07-15 Jakub Jelinek <jakub@redhat.com>
8603 * fold-const.c (fold_cond_expr_with_comparison): When folding
8604 < and <= to MIN, make sure the MIN uses the same type as the
8605 comparison's operands.
8607 2009-07-15 Richard Earnshaw <rearnsha@arm.com>
8609 * arm.md (ior_xor): New code iterator.
8610 (split for ior/xor with shift and zero-extend): New split pattern.
8611 * arm/predicates.md (subreg_lowpart_operator): New special predicate.
8613 2009-07-15 Richard Guenther <rguenther@suse.de>
8615 * tree-ssa-structalias.c (make_constraint_from_heapvar): Initialize
8618 2009-07-15 Richard Guenther <rguenther@suse.de>
8621 * alias.c (ao_ref_from_mem): Reject FUNCTION_DECL and LABEL_DECL bases.
8623 2009-07-15 Maxim Kuvyrkov <maxim@codesourcery.com>
8625 * config/m68k/linux-unwind.h (m68k_fallback_frame_state): Update to
8626 handle 2.6.30 kernel.
8628 2009-07-15 DJ Delorie <dj@redhat.com>
8630 * config/mep/mep.md (sibcall_internal): Change register to allow
8631 for 24-bit addresses.
8632 (sibcall_value_internal): Likewise.
8634 2009-07-14 Ghassan Shobaki <ghassan.shobaki@amd.com>
8636 * doc/invoke.texi: Added descriptions of the scheduling heuristics
8637 that are enabled/disabled by the flags introduced by a previous patch.
8639 2009-07-14 DJ Delorie <dj@redhat.com>
8641 * config/mep/mep.md (sibcall_internal): Include non-toggling
8643 (sibcall_value_internal): Likewise.
8645 2009-07-14 Taras Glek <tglek@mozilla.com>
8646 Rafael Espindola <espindola@google.com>
8648 * doc/sourcebuild.texi: Document install-plugin target.
8649 * configure.ac: Added install-plugin target to language makefiles.
8650 * configure: Regenerate.
8651 * Makefile.in: (install-plugin): Install more headers,
8652 depend on lang.install-plugin.
8654 2009-07-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
8656 * tree-vrp.c (vrp_evaluate_conditional): Mark strings for
8659 2009-07-14 DJ Delorie <dj@redhat.com>
8661 * config/mep/mep.c (mep_vliw_jmp_match): New function.
8662 * config/mep/mep-protos.h (mep_vliw_jmp_match): Prototype it.
8663 * config/mep/mep.md (sibcall_internal): Change test from
8664 mep_vliw_mode_match to mep_vliw_jmp_match.
8665 (sibcall_value_internal): Likewise.
8667 2009-07-14 Uros Bizjak <ubizjak@gmail.com>
8669 * config/i386/sse.md (copysign<mode>3): New expander.
8670 * config/i386/i386-protos.h (ix86_build_signbit_mask): New prototype.
8671 * config/i386/i386.c (ix86_build_signbit_mask): Make public.
8672 Use ix86_build_const_vector.
8673 (enum ix86_builtins): Add IX86_BUILTIN_CPYSGNPS and
8674 IX86_BUILTIN_CPYSGNPD.
8675 (builtin_description): Add __builtin_ia32_copysignps and
8676 __builtin_ia32_copysignpd.
8677 (ix86_builtin_vectorized_function): Handle BUILT_IN_COPYSIGN
8678 and BUILT_IN_COPYSIGNF.
8680 2009-07-13 Jason Merrill <jason@redhat.com>
8682 * builtins.c (can_trust_pointer_alignment): New fn.
8683 (get_pointer_alignment): Factor it out from here.
8684 * tree.h: Declare it.
8686 2009-07-14 David Edelsohn <edelsohn@gnu.org>
8688 * config/rs6000/predicates.md (offsettable_mem_operand): Test
8691 2009-07-14 Dodji Seketeli <dodji@redhat.com>
8695 * dwarf2.out.c (gen_type_die_with_usage): Added comment.
8697 2009-07-14 Richard Guenther <rguenther@suse.de>
8698 Andrey Belevantsev <abel@ispras.ru>
8701 * cfgexpand.c (partition_stack_vars): Do not bother to update
8702 alias information when not optimizing.
8704 2009-07-14 Richard Guenther <rguenther@suse.de>
8705 Andrey Belevantsev <abel@ispras.ru>
8707 * tree-ssa-alias.h (refs_may_alias_p_1): Declare.
8708 (pt_solution_set): Likewise.
8709 * tree-ssa-alias.c (refs_may_alias_p_1): Export.
8710 * tree-ssa-structalias.c (pt_solution_set): New function.
8711 * final.c (rest_of_clean_state): Free SSA data structures.
8712 * print-rtl.c (print_decl_name): Remove.
8713 (print_mem_expr): Implement in terms of print_generic_expr.
8714 * alias.c (ao_ref_from_mem): New function.
8715 (rtx_refs_may_alias_p): Likewise.
8716 (true_dependence): Query alias-export info.
8717 (canon_true_dependence): Likewise.
8718 (write_dependence_p): Likewise.
8719 * tree-dfa.c (get_ref_base_and_extent): For void types leave
8721 * emit-rtl.c (component_ref_for_mem_expr): Remove.
8722 (mem_expr_equal_p): Use operand_equal_p.
8723 (set_mem_attributes_minus_bitpos): Do not use
8724 component_ref_for_mem_expr.
8725 * cfgexpand.c (add_partitioned_vars_to_ptset): New function.
8726 (update_alias_info_with_stack_vars): Likewise.
8727 (partition_stack_vars): Call update_alias_info_with_stack_vars.
8728 * tree-ssa.c (delete_tree_ssa): Do not release SSA names
8729 explicitly nor clear stmt operands.
8730 Free the decl-to-pointer map.
8731 * tree-optimize.c (execute_free_datastructures): Do not free
8732 SSA data structures here.
8733 * tree-flow.h (struct gimple_df): Add decls_to_pointers member.
8734 * Makefile.in (emit-rtl.o): Add pointer-set.h dependency.
8735 (alias.o): Add tree-ssa-alias.h, pointer-set.h and $(TREE_FLOW_H)
8737 (print-rtl.o): Add $(DIAGNOSTIC_H) dependency.
8739 2009-07-13 DJ Delorie <dj@redhat.com>
8741 * config/mep/mep.h (CC1_SPEC): Tweak parameters to trigger
8742 unrolling at the right iteration count.
8744 * config/mep/mep.c (mep_expand_prologue): Fix frame pointer
8747 2009-07-13 Ghassan Shobaki <ghassan.shobaki@amd.com>
8749 * haifa-sched.c (rank_for_schedule): Introduced flags to
8750 enable/disable individual scheduling heuristics.
8751 * common.opt: Introduced flags to enable/disable individual
8752 heuristics in the scheduler.
8753 * doc/invoke.texi: Introduced flags to enable/disable individual
8754 heuristics in the scheduler.
8756 2009-07-13 Kai Tietz <kai.tietz@onevision.com>
8758 * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Remove file
8759 config/i386/mingw-tls.c.
8760 * config/i386/mingw-tls.c: Removed.
8762 2009-07-13 Ira Rosen <irar@il.ibm.com>
8764 * tree-vect-loop.c (get_initial_def_for_reduction): Ensure that the
8765 checks access only relevant statements.
8766 (vectorizable_reduction): Likewise.
8768 2009-07-12 Kai Tietz <kai.tietz@onevision.com>
8770 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Define _X86_
8771 just for 32-bit case.
8773 2009-07-12 Jan Hubicka <jh@suse.cz>
8775 PR tree-optimization/40585
8776 * except.c (expand_resx_expr): When there already is resume
8777 instruction, produce linked list.
8778 (build_post_landing_pads): Assert that resume is empty.
8779 (connect_post_landing_pads): Handle resume lists.
8780 (dump_eh_tree): Dump resume list.
8782 2009-07-12 Ira Rosen <irar@il.ibm.com>
8784 * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
8785 with additional argument.
8786 * tree-vectorizer.h (enum vect_def_type): Add
8787 vect_double_reduction_def.
8788 (vect_is_simple_reduction): Add argument.
8789 * tree-vect-loop.c (vect_determine_vectorization_factor): Fix
8791 (vect_analyze_scalar_cycles_1): Detect double reduction. Call
8792 vect_is_simple_reduction with additional argument.
8793 (vect_analyze_loop_operations): Handle exit phi nodes in case of
8795 (reduction_code_for_scalar_code): Handle additional codes by
8796 returning ERROR_MARK for them. Fix comment and indentation.
8797 (vect_is_simple_reduction): Fix comment, add argument to specify
8798 double reduction. Detect double reduction.
8799 (get_initial_def_for_induction): Fix indentation.
8800 (get_initial_def_for_reduction): Fix comment and indentation.
8801 Handle double reduction. Create initial definitions that do not
8802 require adjustment if ADJUSTMENT_DEF is NULL. Handle additional cases.
8803 (vect_create_epilog_for_reduction): Fix comment, add argument to
8804 handle double reduction. Use PLUS_EXPR in case of MINUS_EXPR in
8805 epilogue result extraction. Create double reduction phi node and
8806 replace relevant uses.
8807 (vectorizable_reduction): Call vect_is_simple_reduction with
8808 additional argument. Fix indentation. Update epilogue code treatment
8809 according to the changes in reduction_code_for_scalar_code. Check
8810 for double reduction. Call vect_create_epilog_for_reduction with
8811 additional argument.
8812 * tree-vect-stmts.c (process_use): Handle double reduction, update
8814 (vect_mark_stmts_to_be_vectorized): Handle double reduction.
8815 (vect_get_vec_def_for_operand): Likewise.
8817 2009-07-12 Danny Smith <dansmister@gmail.com>
8819 * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't
8820 dllexport if !TREE_PUBLIC.
8821 (i386_pe_maybe_record_exported_symbol): Assert TREE_PUBLIC.
8823 2009-07-11 Anatoly Sokolov <aesok@post.ru>
8825 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Redefine.
8826 (avr_extra_arch_macro) Remove declatation.
8827 * config/avr/avr.c (avr_cpu_cpp_builtins): New function.
8828 (avr_extra_arch_macro) Declare as static.
8829 * config/avr/avr-protos.h (avr_cpu_cpp_builtins): Dclare.
8831 2009-07-11 Jan Hubicka <jh@suse.cz>
8834 * except.c (can_be_reached_by_runtime): Test for NULL aka bitmap.
8836 2009-07-11 Jakub Jelinek <jakub@redhat.com>
8839 * dwarf2out.c (dw_fde_struct): Add in_std_section and
8840 cold_in_std_section bits.
8841 (dwarf2out_begin_prologue): Initialize them.
8842 (dwarf2out_finish): Don't emit FDE range into .debug_ranges
8843 if already covered by text_section or cold_text_section range.
8845 PR rtl-optimization/40667
8846 * defaults.h (MINIMUM_ALIGNMENT): Define if not defined.
8847 * doc/tm.texi (MINIMUM_ALIGNMENT): Document it.
8848 * config/i386/i386.h (MINIMUM_ALIGNMENT): Define.
8849 * config/i386/i386.c (ix86_minimum_alignment): New function.
8850 * config/i386/i386-protos.h (ix86_minimum_alignment): New prototype.
8851 * cfgexpand.c (expand_one_var): Use MINIMIM_ALIGNMENT.
8852 * emit-rtl.c (gen_reg_rtx): Likewise.
8853 * function.c (assign_parms): Likewise. If nominal_type needs
8854 bigger alignment than FUNCTION_ARG_BOUNDARY, use its alignment
8855 rather than passed_type's alignment.
8858 * function.c (assign_parm_setup_stack): Adjust
8859 MEM_OFFSET (data->stack_parm) if promoted_mode is different
8860 from nominal_mode on big endian.
8862 2009-07-11 Paolo Bonzini <bonzini@gnu.org>
8864 * expmed.c (emit_store_flag_1): Fix choice of zero vs. sign extension.
8866 2009-07-10 DJ Delorie <dj@redhat.com>
8868 * config/mep/mep.c (mep_can_inline_p): Correct logic, and simplify.
8870 2009-07-10 Mark Mitchell <mark@codesourcery.com>
8872 * config/arm/thumb2.md (thumb2_cbz): Correct computation of length
8874 (thumb2_cbnz): Likewise.
8876 2009-07-10 David Daney <ddaney@caviumnetworks.com>
8879 * config.gcc (supported_defaults): Add synci.
8880 (with_synci): Add validation.
8881 (all_defaults): Add synci.
8882 * config/mips/mips.md (clear_cache): Use TARGET_SYNCI instead of
8885 * config/mips/mips.opt (msynci): New option.
8886 * config/mips/mips.c (mips_override_options): Warn on use of
8887 -msynci for targets that do now support it.
8888 * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
8890 * gcc/doc/invoke.texi (-msynci): Document the new option.
8891 * doc/install.texi (--with-synci): Document the new option.
8893 2009-07-10 Richard Guenther <rguenther@suse.de>
8895 PR tree-optimization/40496
8896 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Create
8897 the PHI result with a compatible type.
8899 2009-07-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
8903 * c.opt (Wunused-result): New.
8904 * doc/invoke.texi: Document it.
8905 * c-common.c (c_warn_unused_result): Use it.
8907 2009-07-09 DJ Delorie <dj@redhat.com>
8909 * targhooks.c (default_target_can_inline_p): Rename from
8910 default_target_option_can_inline_p.
8911 * targhooks.h (default_target_can_inline_p): Likewise.
8912 * target-def.h (TARGET_CAN_INLINE_P): Rename from
8913 TARGET_OPTION_CAN_INLINE_P.
8914 * config/i386/i386.c (TARGET_CAN_INLINE_P): Likewise.
8915 * config/mep/mep.c (TARGET_CAN_INLINE_P): Likewise.
8916 (mep_target_can_inline_p): Rename from
8917 mep_target_option_can_inline_p.
8920 * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Add coprocessor
8921 registers used to pass vectors.
8923 * config/mep/mep.c (mep_option_can_inline_p): Remove error call.
8925 2009-07-09 Tom Tromey <tromey@redhat.com>
8927 * unwind-dw2-fde-darwin.c: Include dwarf2.h.
8928 * config/mmix/mmix.c: Include dwarf2.h.
8929 * config/rs6000/darwin-fallback.c: Include dwarf2.h.
8930 * config/xtensa/unwind-dw2-xtensa.c: Include dwarf2.h.
8931 * config/sh/sh.c: Include dwarf2.h.
8932 * config/i386/i386.c: Include dwarf2.h.
8933 * Makefile.in (DWARF2_H): Remove 'elf'.
8934 * except.c: Include dwarf2.h.
8935 * unwind-dw2.c: Include dwarf2.h.
8936 * dwarf2out.c: Include dwarf2.h.
8937 * unwind-dw2-fde-glibc.c: Include dwarf2.h.
8938 * unwind-dw2-fde.c: Include dwarf2.h.
8939 * dwarf2asm.c: Include dwarf2.h.
8941 2009-07-09 Maxim Kuvyrkov <maxim@codesourcery.com>
8943 * haifa-sched.c (insn_finishes_cycle_p): New static function.
8944 (max_issue): Use it.
8945 * sched-int.h (struct sched_info: insn_finishes_block_p): New
8947 * sched-rgn.c (rgn_insn_finishes_block_p): Implement it.
8948 (region_sched_info): Update.
8949 * sched-ebb.c (ebb_sched_info): Update.
8950 * modulo-sched.c (sms_sched_info): Update.
8951 * sel-sched-ir.c (sched_sel_haifa_sched_info): Update.
8953 2009-07-09 Maxim Kuvyrkov <maxim@codesourcery.com>
8955 * varasm.c (build_constant_desc): Don't share RTL in pool entries.
8957 2009-07-09 Basile Starynkevitch <basile@starynkevitch.net>
8959 * plugin.c (try_init_one_plugin): passes RTLD_GLOBAL to dlopen.
8961 2009-07-09 Jakub Jelinek <jakub@redhat.com>
8964 * fold-const.c (fold_cond_expr_with_comparison): Don't replace
8965 arg1 with arg01 if arg1 is already INTEGER_CST.
8967 2009-07-08 Adam Nemet <anemet@caviumnetworks.com>
8969 * simplify-rtx.c (simplify_binary_operation_1) <AND>:
8970 Transform (and (truncate)) into (truncate (and)).
8972 2009-07-08 Adam Nemet <anemet@caviumnetworks.com>
8974 * combine.c (make_extraction): Check TRULY_NOOP_TRUNCATION before
8975 creating LHS paradoxical subregs. Fix surrounding returns to
8976 use NULL_RTX rather than 0.
8978 2009-07-08 DJ Delorie <dj@redhat.com>
8980 * config/mep/mep.c: (mep_option_can_inline_p): New.
8981 (TARGET_OPTION_CAN_INLINE_P): Define.
8983 2009-07-08 Mark Wielaard <mjw@redhat.com>
8986 * dwarf2out.c (add_data_member_location_attribute): When we have
8987 only a constant offset don't emit a new location description using
8988 DW_OP_plus_uconst, but just add the constant with add_AT_int, when
8991 2009-07-08 Richard Henderson <rth@redhat.com>
8994 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move to i386.c.
8995 (enum reg_class): Add CLOBBERED_REGS.
8996 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Likewise.
8997 * config/i386/i386.c (ix86_conditional_register_usage): Moved
8998 from CONDITIONAL_REGISTER_USAGE; build CLOBBERED_REGS for 64-bit.
8999 (ix86_function_ok_for_sibcall): Tidy. Disallow MS->SYSV sibcalls.
9000 (ix86_expand_call): Use sibcall_insn_operand when needed. Don't
9001 force 64-bit sibcalls into R11.
9002 * config/i386/constraints.md (U): New constraint.
9003 * config/i386/i386.md (sibcall_1, sibcall_value_1): Use it.
9004 (sibcall_1_rex64, sibcall_value_1_rex64): Likewise.
9005 (sibcall_1_rex64_v, sibcall_value_1_rex64_v): Remove.
9007 2009-07-08 Shujing Zhao <pearly.zhao@oracle.com>
9009 * basic-block.h (dump_regset, debug_regset): Remove duplicate
9011 * c-objc-common.h (c_initialize_diagnostics): Ditto.
9012 * ebitmap.h (dump_ebitmap): Ditto.
9013 * optabs.h (optab_libfunc): Ditto.
9014 * tree.h (tree_expr_nonzero_warnv_p): Ditto.
9015 * tree-flow.h (vect_can_force_dr_alignment_p,
9016 get_vectype_for_scalar_type): Ditto.
9017 (vectorize_loops): Move prototype to ...
9018 * tree-vectorizer.h: ... here. Also, adjust comment.
9019 (vect_set_verbosity_level): Remove duplicate prototype.
9020 * tree-ssa-loop.c: Include tree-vectorizer.h.
9021 * Makefile.in (tree-ssa-loop.o): Depend on tree-vectorizer.h.
9023 2009-07-08 Nick Clifton <nickc@redhat.com>
9025 * config/i386/unix.h (ASM_COMMENT_START): Add a space after the
9028 2009-07-08 DJ Delorie <dj@redhat.com>
9030 * config/mep/mep-ivc2.cpu (cpmovtocsar0_C3, cpmovtocsar1_C3,
9031 cpmovtocc_C3, cpmovtocsar0_P0S_P1, cpmovtocsar1_P0S_P1,
9032 cpmovtocc_P0S_P1): Mark volatile. Note which registers are
9034 * config/mep/intrinsics.md: Regenerated.
9035 * config/mep/mep.c (mep_interrupt_saved_reg): Save IVC2 control
9036 registers when asm() or calls are detected.
9038 2009-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
9041 * gimplify.c (gimplify_expr): Propagate no_warning flag when
9043 * gimple (gimple_build_call_from_tree): Likewise.
9044 * tree-cfg.c (remove_useless_stmts_warn_notreached): Check
9045 no_warning flag before warning.
9047 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
9049 * tree.c (set_expr_locus): Remove.
9050 * tree.h (EXPR_LOCUS,SET_EXPR_LOCUS,set_expr_locus): Remove.
9051 * c-typeck.c (c_finish_stmt_expr): Replace EXPR_LOCUS by
9053 * gimplify.c (internal_get_tmp_var): Likewise.
9054 (gimplify_call_expr): Likewise.
9055 (gimplify_one_sizepos): Likewise.
9057 2009-07-07 Eric Botcazou <ebotcazou@adacore.com>
9060 * dbxout.c (dbxout_symbol) <PARM_DECL>: Deal with parameters pointing
9061 to variables for debugging purposes.
9063 2009-06-23 Mark Loeser <mark@halcy0n.com>
9066 * Makefile.in (gcc.pod): Depend on gcc-vers.texi.
9068 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
9070 * pretty-print.c (pp_base_format): Remove %J.
9071 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
9072 gcc_cxxdiag_char_table): Likewise.
9073 (init_dynamic_diag_info): Likewise.
9075 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
9077 * pretty-print.c (pp_base_format): Remove %H.
9078 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
9079 gcc_cxxdiag_char_table): Likewise.
9080 (init_dynamic_diag_info): Likewise.
9081 * config/mep/mep.c (mep_select_section): Likewise.
9083 2009-07-07 Duncan Sands <baldrick@free.fr>
9085 * final.c (pass_clean_state): Give the pass a name.
9086 * passes.c (pass_rest_of_compilation): Likewise.
9087 * tree-optimize.c (pass_all_optimizations): Likewise.
9089 2009-07-07 H.J. Lu <hongjiu.lu@intel.com>
9091 * config/ia64/ia64.c (ia64_handle_model_attribute): Remove
9092 an extra 'decl' for error_at.
9094 2009-07-07 Jakub Jelinek <jakub@redhat.com>
9097 * tree-tailcall.c (adjust_return_value_with_ops,
9098 create_tailcall_accumulator): Set DECL_GIMPLE_REG_P on the temporary
9099 if it has complex or vector type.
9101 2009-07-07 Olivier Hainque <hainque@adacore.com>
9103 * config/alpha/t-osf4 (SHLIB_LINK): Do not hide the dummy weak
9106 2009-07-07 Basile Starynkevitch <basile@starynkevitch.net>
9108 * Makefile.in: added more lists of includes to PLUGIN_HEADERS.
9110 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
9112 * cgraphunit.c: Replace %J by an explicit location. Update all calls.
9113 * c-decl.c: Likewise.
9114 * function.c: Likewise.
9115 * varasm.c: Likewise.
9116 * tree-ssa.c: Likewise.
9117 * c-common.c: Likewise.
9118 * tree-cfg.c: Likewise.
9119 * config/spu/spu.c: Likewise.
9120 * config/ia64/ia64.c: Likewise.
9121 * config/v850/v850.c: Likewise.
9123 2009-07-06 DJ Delorie <dj@redhat.com>
9125 * config/mep/mep-core.cpu (fsft, ssarb): Mark as VOLATILE.
9126 * config/mep/mep-ivc2.cpu (many): Add VOLATILE to more insns that make
9127 unspecified accesses to control registers.
9128 * config/mep/intrinsics.md: Regenerate.
9129 * config/mep/intrinsics.h: Regenerate.
9130 * config/mep/mep-intrin.h: Regenerate.
9132 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
9134 * c-lex.c: Replace %H by an explicit location. Update all calls.
9135 * c-common.c: Likewise.
9136 * c-decl.c: Likewise.
9137 * c-typeck.c: Likewise.
9138 * fold-const.c: Likewise.
9139 * gimplify.c: Likewise.
9141 * tree-cfg.c: Likewise.
9142 * tree-ssa-loop-niter.c: Likewise.
9143 * tree-vrp.c: Likewise.
9144 * value-prof.c: Likewise.
9146 2009-07-06 Diego Novillo <dnovillo@google.com>
9148 * tree-dfa.c (dump_variable): Write DECL_INITIAL for VAR
9149 if it has one. Handle cases where VAR does not have an
9150 annotation or cfun is NULL.
9152 2009-07-06 Diego Novillo <dnovillo@google.com>
9154 * tree.c: Include debug.h.
9155 (initialize_tree_contains_struct): New.
9156 (init_ttree): Call it.
9157 (tree_node_structure_for_code): Factor out of ...
9158 (tree_node_structure): ... here.
9159 * treestruct.def (TS_PHI_NODE): Remove.
9160 (TS_GIMPLE_STATEMENT): Remove.
9162 2009-07-06 Diego Novillo <dnovillo@google.com>
9164 * tree-pretty-print.c (dump_generic_node): Protect against NULL op0.
9165 (debug_tree_chain): Handle cycles.
9167 2009-07-06 Nick Clifton <nickc@redhat.com>
9168 DJ Delorie <dj@redhat.com>
9170 * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
9171 __FMOVD_ENABLED__ is defined.
9173 (TARGET_FMOVD): Provide a default definition.
9174 (MASK_FMOVD): Likewise.
9175 (TARGET_CPU_CPP_BUILTINS): Define
9176 __FMOVD_ENABLED__ if TARGET_FMOVD is true.
9177 * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
9178 two fmov instructions depending upon whether TARGET_FMOVD is enabled.
9179 (split for DF load from memory into register): Also handle
9180 MEMs which consist of REG+DISP addressing.
9181 (split for DF store from register to memory): Likewise.
9182 (movsf_ie): Always use single fp_mode.
9183 * config/sh/sh.c (sh_override_options): Do not automatically
9184 enable TARGET_MOVD for the SH2A when supporting doubles - leave
9185 that to the -mfmovd command line switch.
9186 (broken_move): Do not restrict fldi test to only the SH4 and SH4A.
9187 (fldi_ok): Always allow.
9188 * config/sh/sh.opt (mfmovd): Remove this switch.
9189 * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
9191 2009-07-06 J"orn Rennecke <joern.rennecke@arc.com>
9192 Kaz Kojima <kkojima@gcc.gnu.org>
9194 PR rtl-optimization/30807
9195 * postreload.c (reload_combine): For every new use of REG_SUM,
9196 record the use of BASE.
9198 2009-07-06 Jan Hubicka <jh@suse.cz>
9200 * params.def: Revert my accidental commit at 2009-06-30.
9202 2009-07-04 Ian Lance Taylor <iant@google.com>
9205 * config/i386/msformat-c.c (mingw_format_attributes): Declare as
9207 (mingw_format_attribute_overrides): Likewise.
9209 2009-07-04 Jakub Jelinek <jakub@redhat.com>
9212 * dwarf2out.c (based_loc_descr): For crtl->stack_realign_tried
9213 don't check cfa.reg. Instead of cfa.indirect use
9214 fde && fde->drap_reg != INVALID_REGNUM test.
9216 2009-07-04 Eric Botcazou <ebotcazou@adacore.com>
9218 * postreload.c (reload_combine): Replace CONST_REG with INDEX_REG.
9220 2009-07-03 Vladimir Makarov <vmakarov@redhat.com>
9223 * ira.c (build_insn_chain): Use DF_LR_OUT instead of df_get_live_out.
9225 2009-07-03 Richard Guenther <rguenther@suse.de>
9227 PR tree-optimization/40640
9228 * tree-switch-conversion.c (build_arrays): Perform arithmetic
9231 2009-07-03 Jan Hubicka <jh@suse.cz>
9233 * ipa-inline.c (cgraph_decide_inlining_incrementally): When optimizing
9234 for size, reduce amount of inlining.
9236 2009-07-03 Richard Guenther <rguenther@suse.de>
9239 * tree-chrec.c (chrec_convert_1): Fold (T2)(t +- x) to (T2)t +- (T2)x
9240 if t +- x is known to not overflow and the conversion widens the
9242 * Makefile.in (tree-chrec.o): Add $(FLAGS_H) dependency.
9244 2009-07-03 Jan Hubicka <jh@suse.cz>
9246 * ipa-pure-const.c (analyze): Update loop optimizer init.
9247 * tree-ssa-loop-iv-canon.c (empty_loop_p, remove_empty_loop,
9248 try_remove_empty_loop, remove_empty_loops): Remove.
9249 * tree-ssa-loop.c (tree_ssa_empty_loop, pass_empty_loop): Remove.
9250 * tree-ssa-dce.c (find_obviously_necessary_stmts): Use finiteness info
9251 to mark regular loops as neccesary.
9252 (degenerate_phi_p): New function.
9253 (propagate_necessity, remove_dead_phis): Use it.
9254 (forward_edge_to_pdom): Likewise.
9255 (eliminate_unnecessary_stmts): Take care to remove uses of results of
9256 virtual PHI nodes that became unreachable.
9257 (perform_tree_ssa_dce): Initialize/deinitialize loop optimizer.
9258 * tree-flow.h (remove_empty_loops): Remove.
9259 * passes.c (init_optimization_passes): Remove.
9261 2009-07-03 Uros Bizjak <ubizjak@gmail.com>
9263 * config/i386/i386.md (fix_trunc<mode>_fisttp_i387_1): Use
9264 can_create_pseudo_p.
9265 (*fix_trunc<mode>_i387_1): Ditto.
9266 (*floathi<mode>2_1): Ditto.
9267 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): Ditto.
9268 (*fistdi2_1): Ditto.
9269 (*fist<mode>2_1): Ditto.
9270 (frndintxf2_floor): Ditto.
9271 (*fist<mode>2_floor_1): Ditto.
9272 (frndintxf2_ceil): Ditto.
9273 (*fist<mode>2_ceil_1): Ditto.
9274 (frndintxf2_trunc): Ditto.
9275 (frndintxf2_mask_pm): Ditto.
9276 (fxam<mode>2_i387_with_temp): Ditto.
9277 * config/i386/sse.md (mulv16qi3): Ditto.
9278 (*sse2_mulv4si3): Ditto.
9280 (sse4_2_pcmpestr): Ditto.
9281 (sse4_2_pcmpistr): Ditto.
9283 2009-07-03 Jan Hubicka <jh@suse.cz>
9285 * tree-ssa-dce.c (bb_contains_live_stmts): New bitmap.
9286 (mark_stmt_necessary): Set it.
9287 (mark_operand_necessary): Set it.
9288 (mark_control_dependent_edges_necessary): Set it.
9289 (mark_virtual_phi_result_for_renaming): New function.
9290 (get_live_post_dom): New function.
9291 (forward_edge_to_pdom): New function.
9292 (remove_dead_stmt): Fix handling of control dependences.
9293 (tree_dce_init): Init new bitmap.
9294 (tree_dce_done): Free it.
9296 2009-07-02 Richard Guenther <rguenther@suse.de>
9299 * tree-ssa-structalias.c (new_var_info): Initialize
9302 2009-07-02 Jan Hubicka <jh@suse.cz>
9304 * ipa-pure-const.c (check_op): Use PTA info to see if indirect_ref is
9307 2009-07-02 Paolo Bonzini <bonzini@gnu.org>
9309 * expmed.c (emit_cstore, emit_store_flag_1): Accept target_mode
9310 instead of recomputing it. Adjust calls.
9311 (emit_store_flag): Adjust recursive calls.
9313 2009-07-02 Richard Guenther <rguenther@suse.de>
9315 * tree-ssa-live.c (remove_unused_locals): Do not remove
9317 * tree-ssa-structalias.c (handle_lhs_call): Delay setting
9318 of DECL_EXTERNAL for HEAP variables.
9319 (compute_points_to_sets): Set DECL_EXTERNAL for escaped
9320 HEAP variables. Do not adjust RESTRICT vars.
9321 (find_what_var_points_to): Nobody cares if something
9324 2009-07-02 Ben Elliston <bje@au.ibm.com>
9326 * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Move
9327 pc_low and pc_high declarations to the top of the function.
9329 2009-07-01 DJ Delorie <dj@redhat.com>
9331 * config/mep/mep.c (mep_handle_option): Leave IVC2 control
9333 (mep_interrupt_saved_reg): Save appropriate IVC2 control registers.
9334 * config/mep/mep-ivc2.cpu: Add VOLATILE to insns that make
9335 unspecified accesses to control registers.
9336 * config/mep/intrinsics.md: Regenerate.
9337 * config/mep/intrinsics.h: Regenerate.
9338 * config/mep/mep-intrin.h: Regenerate.
9340 2009-07-01 Anthony Green <green@moxielogic.com>
9342 * config/moxie/moxie.c (moxie_expand_prologue): Use dec
9343 instruction when possible.
9344 (moxie_expand_prologue): Ditto. Also, save an instruction and
9345 some complexity by popping off of $r12 instead of $sp.
9346 * config/moxie/moxie.md (movsi_pop): Don't assume $sp. Take two
9349 2009-07-01 Richard Henderson <rth@redhat.com>
9352 * function.c (reposition_prologue_and_epilogue_notes): If epilogue
9353 contained no insns, reposition note before last insn.
9355 2009-07-01 Richard Henderson <rth@redhat.com>
9358 * dwarf2out.c (def_cfa_1): Revert 2009-06-11 change for
9359 DW_CFA_def_cfa_offset and DW_CFA_def_cfa.
9361 2009-07-01 Michael Meissner <meissner@linux.vnet.ibm.com>
9364 * config/rs6000/rs6000.c (print_operand): Undo change that breaks
9365 darwin9 for printing reg addresses with %y.
9367 2009-07-01 Adam Nemet <anemet@caviumnetworks.com>
9369 * combine.c (force_to_mode): Handle TRUNCATE. Factor out
9370 truncation from operands in binary operations.
9372 2009-07-01 Adam Nemet <anemet@caviumnetworks.com>
9375 2009-01-11 Adam Nemet <anemet@caviumnetworks.com>
9376 * expmed.c (store_bit_field_1): Properly truncate the paradoxical
9377 subreg of op0 to the original op0.
9379 * expmed.c (store_bit_field_1): Use a temporary as the destination
9380 instead of a paradoxical subreg when we need to truncate the result.
9382 2009-07-01 DJ Delorie <dj@redhat.com>
9384 * config/mep/mep-ivc2.cpu (cmov, cmovc, cmovh): Add intrinsic
9385 names to VLIW variants.
9386 (ivc2rm, ivc2crn): Make data type consistent with non-VLIW variants.
9387 * config/mep/intrinsics.md: Regenerate.
9388 * config/mep/intrinsics.h: Regenerate.
9389 * config/mep/mep-intrin.h: Regenerate.
9391 2009-07-01 Jakub Jelinek <jakub@redhat.com>
9394 * jump.c (returnjump_p): Revert last patch.
9395 * dwarf2out.c (dwarf2out_begin_epilogue): Handle SEQUENCEs.
9397 2009-07-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9400 * pa.md (casesi32p): Use jump table label to determine the offset
9402 (casesi64p): Likewise.
9404 * pa.c (forward_branch_p): Return bool type. Use instruction
9405 addresses when available. Assert that INSN has a jump label.
9406 (pa_adjust_insn_length): Don't call forward_branch_p if INSN doesn't
9409 2009-07-01 Richard Guenther <rguenther@suse.de>
9411 PR tree-optimization/19831
9412 * tree-ssa-dce.c (propagate_necessity): Calls to functions
9413 that only act as barriers do not make any previous stores necessary.
9414 * tree-ssa-structalias.c (handle_lhs_call): Delay making
9415 HEAP variables global, do not add a constraint from nonlocal.
9416 (find_func_aliases): Handle escapes through return statements.
9417 (compute_points_to_sets): Make escaped HEAP variables global.
9419 2009-07-01 Paolo Bonzini <bonzini@gnu.org>
9422 * expmed.c (emit_store_flag): Perform a conversion if necessary,
9423 after reducing a DImode cstore to SImode.
9425 2009-07-01 Paolo Bonzini <bonzini@gnu.org>
9427 * expr.c (expand_expr_real_1): Reinstate fallthrough to
9428 TRUTH_ANDIF_EXPR if do_store_flag returns NULL.
9430 2009-07-01 Maciej W. Rozycki <macro@linux-mips.org>
9432 * config/vax/vax.h (TARGET_BSD_DIVMOD): New macro. Set to 1.
9433 * config/vax/linux.h (TARGET_BSD_DIVMOD): New macro. Redefine the
9435 * config/vax/vax.c (vax_init_libfuncs): Only redefine udiv_optab
9436 and umod_optab if TARGET_BSD_DIVMOD.
9437 * config/vax/lib1funcs.asm: New file.
9438 * config/vax/t-linux: New file.
9439 * config.gcc (vax-*-linux*): Set tmake_file to vax/t-linux.
9441 2009-06-30 Jakub Jelinek <jakub@redhat.com>
9444 * convert.c (convert_to_integer) <case COND_EXPR>: Don't convert
9445 to type arguments that have void type.
9448 * dwarf2out.c (gen_formal_parameter_die): Call
9449 equate_decl_number_to_die if node is different from origin.
9451 2009-06-30 Anthony Green <green@moxielogic.com>
9453 Clean up moxie port for --enable-build-with-cxx.
9454 * config/moxie/moxie.c (moxie_function_value): First two
9455 parameters are const_tree, not tree.
9456 * config/moxie/moxie.h (enum reg_class): Rename CC_REG to CC_REGS.
9457 (REG_CLASS_NAMES): Ditto.
9458 (REGNO_REG_CLASS): Ditto.
9459 * config/moxie/moxie-protos.h (moxie_override_options): Declare.
9460 (moxie_function_value): Fix constyness of arguments.
9462 2009-06-30 Eric Botcazou <ebotcazou@adacore.com>
9464 * cgraphunit.c (cgraph_finalize_compilation_unit): Call
9465 finalize_size_functions before further processing.
9466 * stor-layout.c: Include cgraph.h, tree-inline.h and tree-dump.h.
9467 (variable_size): Call self_referential_size on size expressions
9468 that contain a PLACEHOLDER_EXPR.
9469 (size_functions): New static variable.
9470 (copy_self_referential_tree_r): New static function.
9471 (self_referential_size): Likewise.
9472 (finalize_size_functions): New global function.
9473 * tree.c: Include tree-inline.h.
9474 (push_without_duplicates): New static function.
9475 (find_placeholder_in_expr): New global function.
9476 (substitute_in_expr) <tcc_declaration>: Return the replacement object
9478 <tcc_expression>: Likewise.
9479 <tcc_vl_exp>: If the replacement object is a constant, try to inline
9480 the call in the expression.
9481 * tree.h (finalize_size_functions): Declare.
9482 (find_placeholder_in_expr): Likewise.
9483 (FIND_PLACEHOLDER_IN_EXPR): New macro.
9484 (substitute_placeholder_in_expr): Update comment.
9485 * tree-inline.c (remap_decl): Do not unshare trees if do_not_unshare
9487 (copy_tree_body_r): Likewise.
9488 (copy_tree_body): New static function.
9489 (maybe_inline_call_in_expr): New global function.
9490 * tree-inline.h (struct copy_body_data): Add do_not_unshare field.
9491 (maybe_inline_call_in_expr): Declare.
9492 * Makefile.in (tree.o): Depend on TREE_INLINE_H.
9493 (stor-layout.o): Depend on CGRAPH_H, TREE_INLINE_H, TREE_DUMP_H and
9496 2009-06-30 Richard Guenther <rguenther@suse.de>
9498 * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Always
9500 (propagate_necessity): Do not mark reaching defs of stores
9503 2009-06-30 Jan Hubicka <jh@suse.cz>
9505 * cfgloopanal.c (check_irred): Move into ...
9506 (mark_irreducible_loops): ... here; return true if ireducible
9508 * ipa-pure-const.c: Include cfgloop.h and tree-scalar-evolution.h
9509 (analyze_function): Try to prove loop finiteness.
9510 * cfgloop.h (mark_irreducible_loops): Update prototype.
9511 * Makefile.in (ipa-pure-const.o): Add dependency on SCEV and CFGLOOP.
9513 2009-06-30 Basile Starynkevitch <basile@starynkevitch.net>
9515 * Makefile.in (PLUGIN_HEADERS): added ggc, tree-dump, pretty-print.
9517 2009-06-30 Ira Rosen <irar@il.ibm.com>
9519 PR tree-optimization/40542
9520 * tree-vect-stmts.c (vect_analyze_stmt): Don't vectorize volatile
9523 2009-06-30 Martin Jambor <mjambor@suse.cz>
9525 PR tree-optimization/40582
9526 * tree-sra.c (build_ref_for_offset_1): Use types_compatible_p rather
9527 than useless_type_conversion_p.
9528 (generate_subtree_copies): Increment sra_stats.subtree_copies at a
9531 2009-06-30 Martin Jambor <mjambor@suse.cz>
9534 * tree-sra.c (sra_modify_expr): Add access->offset to start_offset.
9536 2009-06-30 Richard Guenther <rguenther@suse.de>
9538 * tree-ssa-alias.c (walk_aliased_vdefs_1): Change interface to
9539 use ao_ref references.
9540 (walk_aliased_vdefs): Likewise.
9541 * tree-ssa-alias.h (walk_aliased_vdefs): Adjust prototype.
9542 * tree-ssa-dce.c (struct ref_data): Remove.
9543 (mark_aliased_reaching_defs_necessary_1): Use the ao_ref argument.
9544 (mark_aliased_reaching_defs_necessary): Adjust.
9545 (mark_all_reaching_defs_necessary_1): Likewise.
9547 2009-06-30 Paolo Bonzini <bonzini@gnu.org>
9550 * expmed.c (emit_cstore): New name of emit_store_flag_1.
9551 (emit_store_flag_1): Extract from emit_store_flag, adjust
9552 calls to (what now is) emit_cstore.
9553 (emit_store_flag): Call emit_store_flag_1 and also use it
9554 for what used to be recursive calls.
9556 2009-06-30 Wei Guozhi <carrot@google.com>
9559 * tree-ssa-sink.c (statement_sink_location): Stop sinking expression
9560 if the target bb post dominates from bb.
9561 * config/i386/i386.c (memory_address_length): Check existence of base
9562 register before using it.
9564 2009-06-30 Nick Clifton <nickc@redhat.com>
9565 DJ Delorie <dj@redhat.com>
9567 * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
9568 __FMOVD_ENABLED__ is defined.
9570 (TARGET_FMOVD): Provide a default definition.
9571 (MASK_FMOVD): Likewise.
9572 (TARGET_CPU_CPP_BUILTINS): Define
9573 __FMOVD_ENABLED__ if TARGET_FMOVD is true.
9574 * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
9575 two fmov instructions depending upon whether TARGET_FMOVD is
9577 (split for DF load from memory into register): Also handle
9578 MEMs which consist of REG+DISP addressing.
9579 (split for DF store from register to memory): Likewise.
9580 * config/sh/sh.opt (mfmovd): Remove this switch.
9581 * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
9582 * config/sh/sh.c (sh_override_options): Do not automatically
9583 enable TARGET_MOVD for the SH2A when supporting doubles - leave
9584 that to the -mfmovd command line switch.
9586 * config/sh/sh.c (broken_move): Do not restrict fldi test to only
9588 (fldi_ok): Always allow.
9589 * config/sh/sh.md (movsf_ie): Always use single fp_mode.
9591 2009-06-29 DJ Delorie <dj@redhat.com>
9593 * doc/install.texi (mep-x-elf): Correct chip's full name.
9595 2009-06-29 H.J. Lu <hongjiu.lu@intel.com>
9597 * doc/extend.texi: Fix typo.
9599 2009-06-29 Tom Tromey <tromey@redhat.com>
9602 * Makefile.in (DWARF2_H): New variable.
9604 (dwarf2out.o): Likewise.
9605 (dwarf2asm.o): Likewise.
9606 * config/i386/t-i386: Use DWARF2_H.
9607 * except.c: Include elf/dwarf2.h.
9608 * unwind-dw2.c: Include elf/dwarf2.h.
9609 * dwarf2out.c: Include elf/dwarf2.h.
9610 (dw_loc_descr_struct) <dw_loc_opc>: Now a bitfield.
9611 <dtprel>: New field.
9612 (dwarf_stack_op_name): Don't handle INTERNAL_DW_OP_tls_addr.
9613 (size_of_loc_descr): Likewise.
9614 (output_loc_operands_raw): Likewise.
9615 (output_loc_operands): Handle new dtprel field.
9616 (loc_checksum): Update.
9617 (loc_descriptor_from_tree_1) <VAR_DDECL>: Set dtprel field.
9618 * unwind-dw2-fde-glibc.c: Include elf/dwarf2.h.
9619 * unwind-dw2-fde.c: Include elf/dwarf2.h.
9620 * dwarf2asm.c: Include elf/dwarf2.h.
9621 * unwind-dw2-fde-darwin.c: Include elf/dwarf2.h.
9622 * config/mmix/mmix.c: Include elf/dwarf2.h.
9623 * config/rs6000/darwin-fallback.c: Include elf/dwarf2.h.
9624 * config/xtensa/unwind-dw2-xtensa.c: Include elf/dwarf2.h.
9625 * config/sh/sh.c: Include elf/dwarf2.h.
9626 * config/i386/i386.c: Include elf/dwarf2.h.
9628 2009-06-29 DJ Delorie <dj@redhat.com>
9630 * config/mep/mep.h (CPP_SPEC): Remove __cop macro.
9632 * doc/extend.texi: Add MeP attributes and pragmas.
9633 * doc/invoke.text: Add MeP Options.
9634 * doc/contrib.texi: Add MeP contribution.
9635 * doc/md.texi: Add MeP constraints.
9636 * doc/install.texi: Add MeP target.
9638 2009-06-30 Anatoly Sokolov <aesok@post.ru>
9640 * target.h (struct gcc_target): Add frame_pointer_required field.
9641 * target-def.h (TARGET_FRAME_POINTER_REQUIRED): New.
9642 (TARGET_INITIALIZER): Use TARGET_FRAME_POINTER_REQUIRED.
9643 * ira.c (setup_eliminable_regset): Use frame_pointer_required target
9645 * reload1.c (update_eliminables): (Ditto.).
9646 * gcc/system.h (FRAME_POINTER_REQUIRED): Poison.
9647 * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
9648 (INITIAL_FRAME_POINTER_OFFSET): (Ditto.).
9650 * config/arc/arc.h (FRAME_POINTER_REQUIRED): Remove macro.
9652 * config/arm/arm.h (FRAME_POINTER_REQUIRED): Remove macro.
9653 * config/arm/arm.c (TARGET_FRAME_POINTER_REQUIRED): Define.
9654 (arm_frame_pointer_required): New function.
9656 * config/avr/avr.h (FRAME_POINTER_REQUIRED): Remove macro.
9657 * config/avr/avr.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
9658 (avr_frame_pointer_required_p): Declare as static.
9659 * config/avr/avr-protos.h (avr_frame_pointer_required_p): Remove.
9661 * config/bfin/bfin.h (FRAME_POINTER_REQUIRED): Remove macro.
9662 * config/bfin/bfin.c (TARGET_FRAME_POINTER_REQUIRED): Define.
9663 (bfin_frame_pointer_required): Make as static, change return type
9665 * config/bfin/bfin-protos.h (bfin_frame_pointer_required): Remove.
9667 * config/cris/cris.h (FRAME_POINTER_REQUIRED): Remove macro.
9668 * config/cris/cris.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
9669 (cris_frame_pointer_required): New function.
9671 * config/crx/crx.h (FRAME_POINTER_REQUIRED): Remove macro.
9673 * config/fr30/fr30.h (FRAME_POINTER_REQUIRED): Remove macro.
9674 * config/fr30/fr30.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
9675 (fr30_frame_pointer_required): New function.
9677 * config/frv/frv.h (FRAME_POINTER_REQUIRED): Remove macro.
9678 * config/frv/frv.c (TARGET_FRAME_POINTER_REQUIRED): Define.
9679 (frv_frame_pointer_required): Make as static, change return type
9681 * config/bfin/bfin-protos.h (frv_frame_pointer_required): Remove.
9683 * config/i386/i386.h (FRAME_POINTER_REQUIRED): Remove macro.
9684 * config/i386/i386.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
9685 (ix86_frame_pointer_required): Make as static, change return type to
9687 * config/i386/i386-protos.h (ix86_frame_pointer_required): Remove.
9689 * config/m32c/m32c.h (FRAME_POINTER_REQUIRED): Remove macro.
9690 * config/m32c/m32c.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
9692 * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Remove macro.
9694 * config/mcore/mcore.h (CAN_ELIMINATE): Remove macro.
9696 * config/mep/mep.h (FRAME_POINTER_REQUIRED): Remove macro.
9698 * config/mips/mips.h (FRAME_POINTER_REQUIRED): Remove macro.
9699 * config/mips/mips.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
9700 (mips_frame_pointer_required): Make as static.
9701 * config/mips/mips-protos.h (mips_frame_pointer_required): Remove.
9703 * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Remove macro.
9704 * config/mmix/mmix.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
9705 (mmix_frame_pointer_required): Mew function.
9707 * config/moxie/moxie.h (FRAME_POINTER_REQUIRED): Remove macro.
9708 * config/moxie/moxie.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
9710 * config/pa/pa.h (FRAME_POINTER_REQUIRED): Remove macro.
9712 * config/score/score.h (FRAME_POINTER_REQUIRED): Remove macro.
9714 * config/sh/sh.h (CAN_ELIMINATE): Remove macro.
9716 * config/sparc/sparc.h (FRAME_POINTER_REQUIRED): Remove macro.
9717 (CAN_ELIMINATE): Redefine.
9718 * config/sparc/sparc.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
9719 (sparc_frame_pointer_required): New function.
9720 (sparc_can_eliminate): New function.
9721 * config/sparc/sparc-protos.h (sparc_can_eliminate): Declare.
9723 * config/vax/vax.h (FRAME_POINTER_REQUIRED): Remove macro.
9724 * config/vax/vax.c (TARGET_FRAME_POINTER_REQUIRED): Define.
9726 * config/xtensa/xtensa.h (FRAME_POINTER_REQUIRED): Remove macro.
9727 * config/xtensa/xtensa.c (TARGET_FRAME_POINTER_REQUIRED): Define.
9728 (xtensa_frame_pointer_required): Make as static, change return type
9730 * config/xtensa/xtensa-protos.h (xtensa_frame_pointer_required):
9733 2009-06-29 Olatunji Ruwase <tjruwase@google.com>
9735 * doc/plugins.texi: Document PLUGIN_START_UNIT.
9736 * toplev.c (compile_file): Call PLUGIN_START_UNIT.
9737 * gcc-plugin.h (PLUGIN_START_UNIT): Added new event.
9738 * plugin.c (plugin_event_name): Added PLUGIN_START_UNIT.
9739 (register_callback): Handle PLUGIN_START_UNIT.
9740 (invoke_plugin_callbacks): Handle PLUGIN_START_UNIT.
9742 2009-06-29 Eric Botcazou <ebotcazou@adacore.com>
9744 * tree.c (process_call_operands): Propagate TREE_READONLY from the
9746 (PROCESS_ARG): Do not clear TREE_READONLY if CONSTANT_CLASS_P.
9747 (build3_stat): Propagate TREE_READONLY for COND_EXPR.
9749 2009-06-29 Daniel Jacobowitz <dan@codesourcery.com>
9751 * config/arm/arm.h (REGISTER_MOVE_COST): Increase VFP register
9754 2009-06-29 Uros Bizjak <ubizjak@gmail.com>
9756 * doc/extend.texi (Additional Floating Types): __float128 is also
9757 supported on i386 targets.
9759 2009-06-29 Richard Guenther <rguenther@suse.de>
9762 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
9764 (pt_solutions_same_restrict_base): Declare.
9765 * tree-ssa-structalias.c (struct variable_info): Add is_restrict_var
9767 (new_var_info): Initialize is_global_var properly for SSA_NAMEs.
9768 (make_constraint_from, make_copy_constraint): Move earlier.
9769 (make_constraint_from_heapvar): New function.
9770 (make_constraint_from_restrict): Likewise.
9771 (handle_lhs_call): Use it.
9772 (find_func_aliases): Use it to track conversions to restrict
9774 (struct fieldoff): Add only_restrict_pointers flag.
9775 (push_fields_onto_fieldstack): Initialize it.
9776 (create_variable_info_for): Track global restrict qualified pointers.
9777 (intra_create_variable_infos): Use make_constraint_from_heapvar.
9778 Track restrict qualified pointer arguments.
9779 (set_uids_in_ptset): Use varinfo is_global_var flag.
9780 (find_what_var_points_to): Set the vars_contains_restrict flag.
9781 Always create the points-to solution for sets including restrict tags.
9782 (pt_solutions_same_restrict_base): New function.
9783 * tree-ssa-alias.c (ptr_derefs_may_alias_p): For two restrict
9784 qualified pointers use pt_solutions_same_restrict_base as
9785 additional source for disambiguation.
9787 2009-06-29 Richard Guenther <rguenther@suse.de>
9790 * alias.c (find_base_decl): Remove.
9791 (get_deref_alias_set_1): Remove restrict handling.
9792 * c-common.c (c_apply_type_quals_to_decl): Do not set
9793 DECL_POINTER_ALIAS_SET.
9794 * gimplify.c (find_single_pointer_decl_1): Remove.
9795 (find_single_pointer_decl): Likewise.
9796 (internal_get_tmp_var): Remove restrict handling.
9797 (gimple_regimplify_operands): Likewise.
9798 * omp-low.c (expand_omp_atomic_pipeline): Do not set
9799 DECL_POINTER_ALIAS_SET. Use ref-all pointers.
9800 * print-tree.c (print_node): Do not print DECL_POINTER_ALIAS_SET.
9801 * tree.c (restrict_base_for_decl): Remove.
9802 (init_ttree): Do not allocate it.
9803 (make_node_stat): Do not set DECL_POINTER_ALIAS_SET. Set
9804 LABEL_DECL_UID for label decls.
9805 (copy_node_stat): Do not copy restrict information.
9806 (decl_restrict_base_lookup): Remove.
9807 (decl_restrict_base_insert): Likewise.
9808 (print_restrict_base_statistics): Likewise.
9809 (dump_tree_statistics): Do not call print_restrict_base_statistics.
9810 * tree.h (DECL_POINTER_ALIAS_SET): Remove.
9811 (DECL_POINTER_ALIAS_SET_KNOWN_P): Likewise.
9812 (struct tree_decl_common): Rename pointer_alias_set to label_decl_uid.
9813 (LABEL_DECL_UID): Adjust.
9814 (DECL_BASED_ON_RESTRICT_P): Remove.
9815 (DECL_GET_RESTRICT_BASE): Likewise.
9816 (SET_DECL_RESTRICT_BASE): Likewise.
9817 (struct tree_decl_with_vis): Remove based_on_restrict_p flag.
9819 * config/i386/i386.c (ix86_gimplify_va_arg): Use ref-all pointers
9820 instead of DECL_POINTER_ALIAS_SET.
9821 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
9822 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
9823 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
9825 2009-06-29 Richard Guenther <rguenther@suse.de>
9827 PR tree-optimization/40579
9828 * tree-vrp.c (vrp_evaluate_conditional): Bail out early if
9829 the IL to simplify has constants that overflowed.
9831 2009-06-28 Uros Bizjak <ubizjak@gmail.com>
9833 PR tree-optimization/40550
9834 * tree-vect-generic.c (expand_vector_operations_1): Compute in
9835 vector_compute_type only when the size of vector_compute_type is
9836 less than the size of type.
9838 2009-06-28 Eric Botcazou <ebotcazou@adacore.com>
9840 * fold-const.c (contains_label_1): Fix comments.
9841 (contains_label_p): Do not walk trees multiple time.
9843 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
9845 * config/i386/i386.h (enum ix86_fpcmp_strategy): New.
9846 * config/i386/i386.md (cbranchxf4, cstorexf4, cbranch<MODEF>4,
9847 cstore<MODEF>4, mov<X87MODEF>cc): Change predicate to
9848 ix86_fp_comparison_operator.
9849 (*fp_jcc_1_mixed, *fp_jcc_1_sse, *fp_jcc_1_387, *fp_jcc_2_mixed,
9850 *fp_jcc_2_sse, *fp_jcc_2_387): Delete
9851 (*fp_jcc_3_387, *fp_jcc_4_387, *fp_jcc_5_387, *fp_jcc_6_387,
9852 *fp_jcc_7_387, *fp_jcc_8<MODEF>_387): Eliminate call to
9853 !ix86_use_fcomi_compare, change ix86_fp_jump_nontrivial_p call
9854 to !TARGET_CMOVE, change predicate to ix86_fp_comparison_operator.
9855 (related splits): Change predicate to ix86_fp_comparison_operator.
9856 * config/i386/predicates.md: Use ix86_trivial_fp_comparison_operator
9857 instead of ix86_fp_comparison_codes.
9858 (ix86_trivial_fp_comparison_operator,
9859 ix86_fp_comparison_operator): New.
9860 * config/i386/i386-protos.h (ix86_fp_comparison_strategy): New.
9861 (ix86_expand_compare): Eliminate last two parameters.
9862 (ix86_fp_jump_nontrivial_p): Kill.
9863 * config/i386/i386.c (put_condition_code): Eliminate call to
9864 ix86_fp_comparison_codes and subsequent assertion.
9865 (ix86_fp_comparison_codes): Eliminate.
9866 (ix86_fp_swap_condition): New.
9867 (ix86_fp_comparison_arithmetics_cost, ix86_fp_comparison_fcomi_cost,
9868 ix86_fp_comparison_sahf_cost, ix86_use_fcomi_compare): Consolidate
9869 into ix86_fp_comparison_cost and ix86_fp_comparison_strategy.
9870 (ix86_prepare_fp_compare_args): Use ix86_fp_comparison_strategy
9871 and ix86_fp_swap_condition.
9872 (ix86_expand_fp_compare): Eliminate code for second jump/bypass jump.
9873 Use ix86_fp_comparison_strategy.
9874 (ix86_expand_compare): Likewise. Eliminate last two arguments.
9875 (ix86_fp_jump_nontrivial_p): Eliminate.
9876 (ix86_expand_branch): Treat SFmode/DFmode/XFmode as simple. Adjust
9877 call to ix86_expand_compare.
9878 (ix86_split_fp_branch, ix86_expand_setcc,
9879 ix86_expand_carry_flag_compare, ix86_expand_int_movcc,
9880 ix86_expand_fp_movcc): Eliminate code for second jump/bypass jump.
9882 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
9884 * config/arm/arm.c (arm_final_prescan_ins): Eliminate code
9885 related to jump_clobbers.
9886 * config/arm/arm.md (conds): Remove jump_clob case.
9887 (addsi3_cbranch, addsi3_cbranch_scratch, subsi3_cbranch, two
9888 splits): Change comparison_operator to arm_comparison_operator.
9889 (*arm_buneq, *arm_bltgt, *arm_buneq_reversed, *arm_bltgt_reversed):
9892 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
9894 * dojump.c (do_compare_rtx_and_jump): Try swapping the
9895 condition for floating point modes.
9896 * expmed.c (emit_store_flag_1): Move here a bigger part
9898 (emit_store_flag): Try swapping the condition for floating point
9900 * optabs.c (emit_cmp_and_jump_insns): Cope with constant op0 better.
9902 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
9904 * expr.c (expand_expr_real_1): Just use do_store_flag.
9905 (do_store_flag): Drop support for TRUTH_NOT_EXPR. Use
9906 emit_store_flag_force.
9907 * expmed.c (emit_store_flag_force): Copy here trick
9908 previously in expand_expr_real_1. Try reversing the comparison.
9909 (emit_store_flag_1): Work if target is NULL.
9910 (emit_store_flag): Work if target is NULL, using the result mode
9911 from the comparison. Use split_comparison, restructure final part
9912 to simplify conditionals.
9914 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
9916 * builtins.c (expand_errno_check): Use do_compare_rtx_and_jump.
9917 * dojump.c (do_jump): Change handling of floating-point
9918 ops to use just do_compare_and_jump.
9919 (split_comparison): New.
9920 (do_compare_rtx_and_jump): Add here logic coming previously
9921 in do_jump, using split_comparison.
9923 2009-06-27 H.J. Lu <hongjiu.lu@intel.com>
9926 * config/ia64/ia64.c (ia64_reorg): Check NULL insn.
9928 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
9930 * tree-ssa-alias.c: Fix unintentional commit.
9932 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
9934 * passes.c (execute_one_pass): Fix unintentional commit.
9936 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
9938 * df-problems.c (df_set_seen, df_unset_seen): Delete.
9939 (df_rd_local_compute, df_md_local_compute): Inline them.
9941 (df_md_scratch): New.
9942 (df_md_alloc, df_md_free): Allocate/free it.
9943 (df_md_local_compute): Only include live registers in init.
9944 (df_md_transfer_function): Prune the in-set computed by
9945 the confluence function, and the gen-set too.
9947 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
9949 PR rtl-optimization/26854
9950 * timevar.def: Remove TV_DF_RU, add TV_DF_MD.
9951 * df-problems.c (df_rd_add_problem): Fix comment.
9952 (df_md_set_bb_info, df_md_free_bb_info, df_md_alloc,
9953 df_md_simulate_artificial_defs_at_top,
9954 df_md_simulate_one_insn, df_md_bb_local_compute_process_def,
9955 df_md_bb_local_compute, df_md_local_compute, df_md_reset,
9956 df_md_transfer_function, df_md_init, df_md_confluence_0,
9957 df_md_confluence_n, df_md_free, df_md_top_dump, df_md_bottom_dump,
9958 problem_MD, df_md_add_problem): New.
9959 * df.h (DF_MD, DF_MD_BB_INFO, struct df_md_bb_info, df_md,
9960 df_md_get_bb_info): New.
9961 (DF_LAST_PROBLEM_PLUS1): Adjust.
9963 * Makefile.in (fwprop.o): Include domwalk.h.
9964 * fwprop.c: Include domwalk.h.
9965 (reg_defs, reg_defs_stack): New.
9966 (bitmap_only_bit_between): Remove.
9967 (process_defs): New.
9968 (process_uses): Use reg_defs and local_md instead of
9969 bitmap_only_bit_between and local_rd.
9970 (single_def_use_enter_block): New, from build_single_def_use_links.
9971 (single_def_use_leave_block): New.
9972 (build_single_def_use_links): Remove code moved to
9973 single_def_use_enter_block, invoke domwalk.
9974 (use_killed_between): Adjust comment.
9976 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
9978 * bitmap.h (bitmap_ior_and_into): New.
9979 * bitmap.c (bitmap_ior_and_into): New.
9981 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
9983 * domwalk.h (struct dom_walk_data): Remove all callbacks except
9984 before_dom_children_before_stmts and after_dom_children_after_stmts.
9985 Rename the two remaining callbacks to just before_dom_children and
9986 after_dom_children. Remove other GIMPLE statement walking bits.
9987 * domwalk.c (walk_dominator_tree): Remove now unsupported features.
9988 * graphite.c: Do not include domwalk.h.
9989 * tree-into-ssa.c (interesting_blocks): New global.
9990 (struct mark_def_sites_global_data): Remove it and names_to_rename.
9991 (mark_def_sites, rewrite_stmt, rewrite_add_phi_arguments,
9992 rewrite_update_stmt, rewrite_update_phi_arguments): Simplify
9993 now that they're not domwalk callbacks.
9994 (rewrite_initialize_block): Rename to...
9995 (rewrite_enter_block): ... this, place after called functions. Test
9996 interesting_blocks, call rewrite_stmt and rewrite_add_phi_arguments.
9997 (rewrite_finalize_block): Rename to...
9998 (rewrite_leave_block): ... this, place after called functions.
9999 (rewrite_update_init_block): Rename to...
10000 (rewrite_update_enter_block): ... this, place after called functions.
10001 Test interesting_blocks, call rewrite_update_stmt and
10002 rewrite_update_phi_arguments.
10003 (rewrite_update_fini_block): Rename to...
10004 (rewrite_leave_block): ... this, place after called functions.
10005 (rewrite_blocks): Remove last argument, simplify initialization of
10007 (mark_def_sites_initialize_block): Rename to...
10008 (mark_def_sites_block): ... this, call mark_def_sites.
10009 (mark_def_sites_blocks): Remove argument, simplify initialization of
10011 (rewrite_into_ssa): Adjust for interesting_blocks_being a global.
10012 (update_ssa): Likewise.
10013 * tree-ssa-dom.c (optimize_stmt): Simplify now that it's not a domwalk
10015 (tree_ssa_dominator_optimize): Simplify initialization of walk_data.
10016 (dom_opt_initialize_block): Rename to...
10017 (dom_opt_enter_block): ... this, place after called functions. Walk
10018 statements here, inline propagate_to_outgoing_edges.
10019 (dom_opt_finalize_block): Rename to...
10020 (dom_opt_leave_block): ... this, place after called functions.
10021 * tree-ssa-dse.c (dse_optimize_stmt): Simplify now that it's not a
10023 (dse_enter_block, dse_record_phi): New.
10024 (dse_record_phis): Delete.
10025 (dse_finalize_block): Rename to...
10026 (dse_leave_block): ... this.
10027 (tree_ssa_dse): Simplify initialization of walk_data.
10028 * tree-ssa-loop-im.c (determine_invariantness, move_computations):
10029 Adjust initialization of walk_data.
10030 * tree-ssa-loop-unswitch.c: Do not include domwalk.h.
10031 * tree-ssa-loop-phiopt.c (get_non_trapping):
10032 Adjust initialization of walk_data.
10033 * tree-ssa-loop-threadedge.c: Do not include domwalk.h.
10034 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Simplify now that
10035 it's not a domwalk callback.
10036 (uncprop_initialize_block): Rename to...
10037 (dse_enter_block): ... this, call uncprop_into_successor_phis.
10038 (dse_finalize_block): Rename to...
10039 (dse_leave_block): ... this.
10040 (tree_ssa_uncprop): Simplify initialization of walk_data.
10041 * Makefile.in: Adjust dependencies.
10043 2009-06-27 Richard Earnshaw <rearnsha@arm.com>
10045 * arm.md (casesi): Fix test for Thumb1.
10046 (thumb1_casesi_internal_pic): Likewise.
10047 (thumb1_casesi_dispatch): Likewise.
10049 2009-06-26 Daniel Gutson <dgutson@codesourcery.com>
10051 * config/arm/arm-cores.def: Added core cortex-m0.
10052 * config/arm/arm-tune.md: Regenerated.
10053 * doc/invoke.texi: Added entry for cpu ARM Cortex-M0.
10055 2009-06-26 DJ Delorie <dj@redhat.com>
10057 * config/mep/mep.opt (mfar): Remove -mfar as it doesn't do anything.
10059 * config/mep/mep.c (mep_bundle_insns): Account for the fact that
10060 the scheduler doesn't tag jump insns.
10062 2009-06-26 H.J. Lu <hongjiu.lu@intel.com>
10064 * c-decl.c (merge_decls): Re-indent.
10066 2009-06-26 Janis Johnson <janis187@us.ibm.com>
10069 * tree.c (real_zerop, real_onep, real_twop, real_minus_onep):
10070 Special-case decimal float constants.
10072 2009-06-26 Richard Henderson <rth@redhat.com>
10074 * function.h (struct function): Add cannot_be_copied_reason,
10075 and cannot_be_copied_set.
10076 * tree-inline.c (has_label_address_in_static_1): Rename from
10077 inline_forbidden_p_2; don't set inline_forbidden_reason here.
10078 (cannot_copy_type_1): Rename from inline_forbidden_p_op; likewise
10079 don't set inline_forbidden_reason.
10080 (copy_forbidden): New function, split out of inline_forbidden_p.
10081 (inline_forbidden_p_stmt): Don't check for nonlocal labels here.
10082 (inline_forbidden_p): Use copy_forbidden.
10083 (tree_versionable_function_p): Likewise.
10084 (inlinable_function_p): Merge into tree_inlinable_function_p.
10085 (tree_function_versioning): Remap cfun->nonlocal_goto_save_area.
10086 * ipa-cp.c (ipcp_versionable_function_p): New function.
10087 (ipcp_cloning_candidate_p): Use it.
10088 (ipcp_node_modifiable_p): Likewise.
10090 2009-06-26 Olatunji Ruwase <tjruwase@google.com>
10092 * builtins.c (expand_builtin_alloca): Handle builtin alloca
10093 that is marked not to be inlined. Remove flag_mudflap use.
10094 * tree-mudflap.c: Rename mf_xform_derefs to mf_xfrom_statements.
10095 (mf_xform_statements): Mark builtin alloca calls as un-inlineable.
10097 2009-06-26 Steve Ellcey <sje@cup.hp.com>
10100 * config/pa/t-pa-hpux10 (TARGET_LIBGCC2_CFLAGS): Add -frandom-seed.
10101 * config/pa/t-pa-hpux11 (TARGET_LIBGCC2_CFLAGS): Ditto.
10103 2009-06-26 Kai Tietz <kai.tietz@onevision.com>
10105 * config/i386/mingw-tls.c (__mingwthr_key_dtor): Remove for none
10107 (__mingwthr_remove_key_dtor): Likewise.
10109 2009-06-26 Richard Guenther <rguenther@suse.de>
10111 * tree-ssa-structalias.c (do_ds_constraint): Simplify escape handling.
10113 2009-06-26 Steven Bosscher <steven@gcc.gnu.org>
10115 PR middle-end/40525
10116 * ifcvt.c (dead_or_predicable): If predicating MERGE_BB fails,
10117 try the non-cond_exec path also.
10119 2009-06-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10122 * pa.c (branch_to_delay_slot_p, branch_needs_nop_p): New functions.
10123 (output_cbranch): Use new functions.
10124 (output_lbranch, output_bb, output_bvb, output_dbra, output_movb):
10127 2009-06-25 Michael Meissner <meissner@linux.vnet.ibm.com>
10128 Pat Haugen <pthaugen@us.ibm.com>
10129 Revital Eres <ERES@il.ibm.com>
10131 * config/rs6000/rs6000.c (print_operand): Correct lossage message
10132 for %c error. Add %x support to print VSX registers as a unified
10133 register set, instead of separate float and altivec registers.
10134 Switch to use VECTOR_MEM_ALTIVEC_P instead of TARGET_ALTIVEC for
10135 %y case, and add support for VSX pre-modify addresses.
10136 (output_toc): Add assert for CONST containing an integer constant
10138 (rs6000_adjust_cost): Add POWER7 support.
10139 (insn_must_be_first_in_group): Ditto.
10140 (insn_must_be_last_in_group): Ditto.
10141 (rs6000_emit_popcount): Ditto.
10142 (rs6000_vector_mode_supported_p): Ditto.
10144 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_class):
10145 Change some of the functions called by macros to being called
10146 through a pointer, so debug functions can be inserted if
10147 -mdebug=addr or -mdebug=cost.
10148 (rs6000_preferred_reload_class_ptr): Ditto.
10149 (rs6000_secondary_reload_class_ptr): Ditto.
10150 (rs6000_secondary_memory_needed_ptr): Ditto.
10151 (rs6000_cannot_change_mode_class_ptr): Ditto.
10152 (rs6000_secondary_reload_inner): Ditto.
10153 (rs6000_legitimize_reload_address): Ditto.
10154 (rs6000_legitimize_reload_address_ptr): Ditto.
10155 (rs6000_mode_dependent_address): Ditto.
10156 (rs6000_mode_dependent_address_ptr): Ditto.
10158 * config/rs6000/rs6000.c (reg_offset_addressing_ok_p): New
10159 function to return true if the mode allows reg + integer
10161 (virtual_stack_registers_memory_p): New function to return true if
10162 the address refers to a virtual stack register.
10163 (rs6000_legitimate_offset_address_p): Move code to say whether a
10164 mode supports reg+int addressing to reg_offset_addressing_ok_p and
10166 (rs6000_legitimate_address_p): Add checks for modes that only can
10167 do reg+reg addressing. Start adding VSX support.
10168 (rs6000_legitimize_reload_address): Ditto.
10169 (rs6000_legitimize_address): Ditto.
10170 (rs6000_debug_legitimate_address_p): New debug functions for
10171 -mdebug=addr and -mdebug=cost.
10172 (rs6000_debug_rtx_costs): Ditto.
10173 (rs6000_debug_address_costs): Ditto.
10174 (rs6000_debug_adjust_cost): Ditto.
10175 (rs6000_debug_legitimize_address): Ditto.
10176 (rs6000_legitimize_reload_address_ptr): Point to call normal
10177 function or debug function. Make functions called via pointer
10179 (rs6000_mode_dependent_address_ptr): Ditto.
10180 (rs6000_secondary_reload_class_ptr): Ditto.
10181 (rs6000_hard_regno_mode_ok): Add preliminary VSX support.
10182 (rs6000_emit_move): Add -mdebug=addr support. Change an abort
10183 into a friendlier error.
10184 (rs6000_init_builtins): Add initial VSX support.
10185 (rs6000_adjust_cost): Fix some spacing issues.
10187 * config/rs6000/rs6000.h (enum reg_class): Add VSX_REGS.
10188 (REG_CLASS_NAMES): Ditto.
10189 (REG_CLASS_CONTENTS): Ditto.
10190 (PREFERRED_RELOAD_CLASS): Move from a macro to calling through a
10191 pointer, to add -mdebug=addr support.
10192 (CANNOT_CHANGE_MODE_CLASS): Ditto.
10193 (SECONDARY_RELOAD_CLASS): Call through a pointer to add
10194 -mdebug=addr support.
10195 (LEGITIMIZE_RELOAD_ADDRESS): Ditto.
10196 (GO_IF_MODE_DEPENDENT_ADDRESS): Ditto.
10197 (enum rs6000_builtins): Add RS6000_BUILTIN_BSWAP_HI.
10199 * config/rs6000/rs6000.md (bswaphi*): Add support for swapping
10201 (bswapsi*): Set attribute types for load/store. Add combiner
10202 patterns to eliminate zero extend on 64-bit.
10203 (bswapdi*): Add support for swapping 64-bit values. Use ldbrx and
10204 stdbrx if the hardware supports those instructions.
10206 2009-06-25 Ian Lance Taylor <iant@google.com>
10208 * doc/invoke.texi (Option Summary): Mention -static-libstdc++.
10209 (Link Options): Document -static-libstdc++.
10211 2009-06-25 Andrew Pinski <andrew_pinski@playstation.sony.com>
10214 * config/rs6000/rs6000.c (LOCAL_ALIGNMENT): Redefine to just use
10215 DATA_ALIGNMENT instead.
10217 2009-06-25 Richard Guenther <rguenther@suse.de>
10219 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Disambiguate
10220 indirect references against the callused/escaped solutions.
10221 (call_may_clobber_ref_p_1): Likewise.
10223 2009-06-25 Martin Jambor <mjambor@suse.cz>
10225 PR tree-optimization/40493
10226 * tree-sra.c (sra_modify_expr): Correct BIT_FIELD_REF argument numbers.
10227 (enum unscalarized_data_handling): New type.
10228 (handle_unscalarized_data_in_subtree): Return what has been done.
10229 (load_assign_lhs_subreplacements): Handle left flushes differently.
10230 (sra_modify_assign): Use unscalarized_data_handling, simplified
10231 condition determining whether to remove the statement.
10233 2009-06-25 Basile Starynkevitch <basile@starynkevitch.net>
10235 * doc/plugins.texi (Building GCC plugins): Correct typo in Makefile
10236 excerpt - @ should be doubled for texinfo.
10238 2009-06-24 Ian Lance Taylor <iant@google.com>
10240 * config/arc/arc.c: Include "df.h".
10241 (arc_attribute_table): Make static. Move higher in file.
10242 (arc_address_cost): Call SMALL_INT on INTVAL, not rtx.
10243 (output_shift): Initialize n later to avoid warning.
10244 * config/arm/arm.c (arm_attribute_table): Make static. Move
10246 * config/avr/avr.c (avr_attribute_table): Make static. Move
10248 (reg_class_tab): Change array type from int to enum reg_class.
10249 (avr_jump_mode): Change GET_MODE to GET_CODE when checking for
10251 (out_tsthi, ashlhi3_out): Don't use AS2 with "or" or "and".
10252 (lshrhi3_out): Likewise.
10253 (class_likely_spilled_p): Change return type to bool.
10254 (avr_rtx_costs): Use local code variable with enum type.
10255 * config/avr/avr.md (movmemhi): Use add_reg_note.
10256 (andhi3, andsi3): Don't use AS2 with "and".
10257 (iorhi3, iorsi3): Don't use AS2 with "or".
10258 * config/avr/avr-protos.h (class_likely_spilled_p): Update declaration.
10259 * config/crx/crx.c: Include "df.h".
10260 (crx_attribute_table): Make static.
10261 * config/m32r/m32r.c: Include "df.h".
10262 (m32r_attribute_table): Make static. Move higher in file.
10263 (pop): Use add_reg_note.
10264 (block_move_call): Change 0 to LCT_NORMAL in function call.
10265 * config/m32r/m32r.md (movsi_insn): Remove unused local value.
10266 * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Likewise.
10267 * config/m32r/m32r-protos.h (m32r_compute_function_type): Always
10268 declare, not just when TREE_CODE is defined.
10269 * config/m68hc11/m68hc11.c: Include "expr.h".
10270 (m68hc11_attribute_table): Make static. Move higher in file.
10271 (m68hc11_small_indexed_indirect_p): Change 0 to VOIDmode in
10273 (m68hc11_register_indirect_p): Likewise.
10274 (m68hc11_function_arg_padding): Change return type to enum
10276 (emit_move_after_reload): Use add_reg_note.
10277 (m68hc11_emit_logical): Change code parameter to enum rtx_code.
10278 (m68hc11_split_logical): Likewise.
10279 (m68hc11_rtx_costs): Add local code_and outer_code variables with
10281 * config/m68hc11/predicates.md (reg_or_some_mem_operand): Change 0
10282 to VOIDmode in function call.
10283 * config/m68hc11/m68hc11-protos.h: Don't check TREE_CODE to see if
10285 (m68hc11_split_logical): Update declaration.
10286 (m68hc11_function_arg_padding): Update declaration.
10287 * config/mcore/mcore.c (regno_reg_class): Change form array of int
10288 to array of enum reg_class.
10289 (mcore_attribute_table): Make static. Move higher in file.
10290 (mcore_rtx_costs): Add cast to enum type.
10291 * config/mcore/mcore.h (regno_reg_class): Update declaration.
10292 (GO_IF_LEGITIMATE_INDEX): Add cast to avoid warning.
10293 * config/sh/sh.c (sh_attribute_table): Make static. Move higher
10295 * config/sh/predicates.md (trapping_target_operand): Rename and to
10297 * config/sparc/sparc.c (sparc_attribute_table): Make static. Move
10299 * config/spu/spu.c (spu_attribute_table): Make static. Move
10301 * config/v850/v850.c (v850_attribute_table): Make static. Move
10303 (v850_rtx_costs): Use local code with enum type.
10304 (expand_epilogue): Add cast.
10305 * config/v850/v850-c.c (ghs_pragma_section): Initialize repeat.
10307 2009-06-23 Takashi YOSHII <yoshii.takashi@renesas.com>
10310 * doc/invoke.texi (SH Options): Document -m2a, -m2a-single,
10311 -m2a-single-only and -m2a-nofpu.
10312 * config/sh/sh.opt: Document m2a generates FPU code.
10314 2009-06-24 Anatoly Sokolov <aesok@post.ru>
10316 * defaults.h (CAN_ELIMINATE): Provide default.
10317 * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
10318 * config/alpha/alpha.h (CAN_ELIMINATE): Delete.
10319 * config/m32c/m32c.h (CAN_ELIMINATE): Delete.
10320 * config/spu/spu.h (CAN_ELIMINATE): Delete.
10321 * config/xtensa/xtensa.h (CAN_ELIMINATE): Delete.
10322 * config/moxie/moxie.h (CAN_ELIMINATE): Delete.
10323 * config/cris/cris.h (CAN_ELIMINATE): Delete.
10324 * config/mn10300/mn10300.h (CAN_ELIMINATE): Delete.
10325 * config/pa/pa64-linux.h (CAN_ELIMINATE): Delete.
10326 * config/mmix/mmix.h (CAN_ELIMINATE): Delete.
10328 2009-06-24 DJ Delorie <dj@redhat.com>
10330 * mep-ext-cop.cpu: Fix copyright notice.
10331 * mep-default: Fix copyright notice.
10332 * mep-core: Fix copyright notice.
10333 * mep: Fix copyright notice.
10334 * mep-ivc2: Fix copyright notice.
10335 * mep-c5: Fix copyright notice.
10337 2009-06-24 Denis Chertykov <chertykov@gmail.com>
10339 * doc/contrib.texi (Contributors):
10341 2009-06-24 Andreas Krebbel <krebbel1@de.ibm.com>
10343 PR middle-end/40501
10344 * tree-ssa-math-opts.c (execute_optimize_bswap): Convert the bswap
10345 src and dst operands if necessary.
10347 2009-06-23 DJ Delorie <dj@redhat.com>
10350 * config.gcc: Add mep support.
10351 * recog.c: Resurrect validate_replace_rtx_subexp().
10352 * recog.h: Likewise.
10353 * config/mep/: Add new port:
10354 * config/mep/constraints.md: New file.
10355 * config/mep/default.h: New file.
10356 * config/mep/intrinsics.h: New file.
10357 * config/mep/intrinsics.md: New file.
10358 * config/mep/ivc2-template.h: New file.
10359 * config/mep/mep-c5.cpu: New file.
10360 * config/mep/mep-core.cpu: New file.
10361 * config/mep/mep-default.cpu: New file.
10362 * config/mep/mep-ext-cop.cpu: New file.
10363 * config/mep/mep-intrin.h: New file.
10364 * config/mep/mep-ivc2.cpu: New file.
10365 * config/mep/mep-lib1.asm: New file.
10366 * config/mep/mep-lib2.c: New file.
10367 * config/mep/mep-pragma.c: New file.
10368 * config/mep/mep-protos.h: New file.
10369 * config/mep/mep-tramp.c: New file.
10370 * config/mep/mep.c: New file.
10371 * config/mep/mep.cpu: New file.
10372 * config/mep/mep.h: New file.
10373 * config/mep/mep.md: New file.
10374 * config/mep/mep.opt: New file.
10375 * config/mep/predicates.md: New file.
10376 * config/mep/t-mep: New file.
10378 2009-06-23 Ian Lance Taylor <iant@google.com>
10380 * configure.ac: Invoke AC_PROG_CXX. Separate C specific warnings
10381 from loose_warn into c_loose_warn and from strict_warn into
10382 c_strict_warn. Set and substitute warn_cxxflags. Check for
10383 --enable-build-with-cxx. Set and substitute
10384 ENABLE_BUILD_WITH_CXX. Set and substitute HOST_LIBS.
10385 * Makefile.in (CXXFLAGS): New variable.
10386 (C_LOOSE_WARN, C_STRICT_WARN): New variables.
10387 (GCC_WARN_CFLAGS): Add $(C_LOOSE_WARN). Add $(C_STRICT_WARN) if
10388 the default is the same as $(STRICT_WARN).
10389 (GCC_WARN_CXXFLAGS, WARN_CXXFLAGS): New variables.
10390 (CXX): New variable.
10391 (COMPILER): New value if ENABLE_BUILD_WITH_CXX.
10392 (COMPILER_FLAGS, LINKER, LINKER_FLAGS): Likewise.
10393 (ALL_COMPILERFLAGS, ALL_LINKERFLAGS): Likewise.
10394 (HOST_LIBS): New variable.
10395 (GCC_CFLAGS): Add $(C_LOOSE_WARN).
10396 (ALL_CXXFLAGS): New variable.
10397 (LIBS, BACKENDLIBS): Add $(HOST_LIBS).
10398 * doc/install.texi (Configuration): Document
10399 --enable-build-with-cxx, --with-stage1-ldflags,
10400 --with-stage1-libs, --with-boot-ldflags, --with-boot-libs.
10401 * configure: Rebuild.
10403 2009-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10405 * config/arm/arm.c (arm_override_options): Fix braces and formatting
10406 from previous commit.
10408 2009-06-23 Ian Lance Taylor <iant@google.com>
10410 * Makefile.in ($(out_object_file)): Depend upon $(DF_H).
10412 2009-06-23 Ian Lance Taylor <iant@google.com>
10414 * reload.c (alternative_allows_const_pool_ref): Mark mem parameter
10415 with ATTRIBUTE_UNUSED.
10417 2009-06-23 Michael Meissner <meissner@linux.vnet.ibm.com>
10418 Pat Haugen <pthaugen@us.ibm.com>
10419 Revital Eres <eres@il.ibm.com>
10421 * config.in (HAVE_AS_POPCNTD): Add default definition.
10422 (HAVE_AS_LWSYNC): Ditto.
10424 * configure.ac (gcc_cv_as_powerpc_mfpgpr): Provide real binutils
10426 (gcc_cv_as_powerpc_cmpb): Ditto.
10427 (gcc_cv_as_powerpc_dfp): Ditto.
10428 (gcc_cv_as_powerpc_vsx): Ditto.
10429 (gcc_cv_as_powerpc_popcntd): Add feature test for assembler
10430 supporting the popcntd/lwsync instructions.
10431 (gcc_cv_as_powerpc_lwsync): Ditto.
10432 * configure: Regenerate.
10434 * config/rs6000/aix53.h (ASM_CPU_SPEC): Add support for
10435 -mcpu=native and -mcpu=power7.
10436 * config/rs6000/aix61.h (ASM_CPU_SPEC): Ditto.
10438 * config/rs6000/linux64.opt (-mprofile-kernel): Move switch to be
10439 a variable instead of a mask to reduce the number of mask bits.
10440 * config/rs6000/sysv4.opt (-mbit-align): Ditto.
10441 (-mbit-word): Ditto.
10442 (-mregnames): Ditto.
10443 * config/rs6000/rs6000.opt (-mupdate): Ditto.
10444 (-mfused-madd): Ditto.
10446 * config/rs6000/rs6000.opt (-mpopcntd): New switch for non-VSX ISA
10448 (-mvsx): New switch for VSX instructions.
10449 (-misel): Move from a variable to a mask to allow it to be set by
10452 * config/rs6000/rs6000-protos.h (rs6000_hard_regno_nregs): Change
10453 function declaration to an array declaration.
10454 (rs6000_hard_regno_nregs): New external array declaration.
10456 * config/rs6000/t-rs6000 (MD_INCLUDES): Define, add all of the .md
10457 files included by rs6000.md.
10459 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
10460 SET_PROFILE_KERNEL macro to reset the -mprofile-kernel switch.
10462 * config/rs6000/rs6000.c (rs6000_isel): Delete, -misel moved to be
10464 (rs6000_debug_reg): New -mdebug= variables.
10465 (rs6000_debug_addr): Ditto.
10466 (rs6000_debug_cost): Ditto.
10467 (rs6000_pmode): New variable to hold Pmode.
10468 (rs6000_pointer_size): New variable to hold POINTER_SIZE.
10469 (rs6000_class_max_nregs): New array to hold CLASS_MAX_NREGS
10470 calculated at compiler start.
10471 (rs6000_hard_regno_nregs): Change function to an array which holds
10472 HARD_REGNO_NREGS calculated at compiler start.
10473 (rs6000_explicit_options): Delete isel field.
10474 (rs6000_vector_unit): New array to hold which vector unit
10475 supports arithmetic options for a given type.
10476 (rs6000_vector_mem): New array to hold which vector unit supports
10477 memory reference operations for a given type.
10478 (rs6000_vector_align): New array to given the alignment of each
10480 (power7_cost): New basic costs for power7.
10481 (SET_PROFILE_KERNEL): New macro for resetting -mprofile-kernel.
10482 (rs6000_hard_regno_nregs_internal): New function, moved from
10483 HARD_REGNO_NREGS, to calculate the number of registers each hard
10484 register takes for each type.
10485 (rs6000_debug_reg_print): New function for -mdebug=reg support.
10486 (rs6000_debug_vector_unit): New array, map rs6000_vector to string.
10487 (+rs6000_init_hard_regno_mode_ok): New function, move calculation
10488 of HARD_REGNO_NREGS, CLASS_MAX_NREGS, REGNO_REG_CLASS, and vector
10489 unit information here so it is calculated once at compiler startup
10491 (rs6000_override_options): Make -misel a target mask. Add more
10492 power7 target masks. Setup Pmode and POINTER_SIZE. Add initial
10493 VSX support. Add support for -mdebug=reg, -mdebug=addr, and
10495 (POWERPC_MASKS): Add MASK_POPCNTD, MASK_VSX, and MASK_ISEL.
10496 (rs6000_handle_option): Move -misel from variable to target mask.
10497 (rs6000_builtin_mask_for_load): Add VSX support.
10498 (rs6000_conditional_register_usage): Ditto.
10499 (USE_ALTIVEC_FOR_ARG_P): Ditto.
10500 (function_arg_boundary): Ditto.
10501 (rs6000_expand_builtin): Ditto.
10502 (def_builtin): Make abort message a little friendlier.
10503 (rs6000_emit_int_cmove): Add support for 64-bit isel.
10505 * config/rs6000/rs6000.h (ASM_CPU_POWER7_SPEC): Depend on the
10506 assembler support the popcntd instruction instead of a vsx
10507 instruction to enable power7 support.
10508 (ASM_CPU_SPEC): Add support for -mcpu=native and -mcpu=power7.
10509 (EXTRA_SPECS): Add ASM_CPU_NATIVE_SPEC to allow passing the right
10510 option to the assembler if -mcpu=native.
10511 (ASM_CPU_NATIVE_SPEC): Ditto.
10512 (TARGET_POPCNTD): If assembler doesn't support popcntd, turn off
10514 (TARGET_LWSYNC_INSTRUCTION): Define whether it is safe to issue
10515 the lwsync instruction.
10516 (enum processor_type): Add PROCESSOR_POWER7.
10517 (rs6000_debug_reg): New -mdebug= options.
10518 (rs6000_debug_addr): Ditto.
10519 (rs6000_debug_cost): Ditto.
10520 (rs6000_isel): Delete.
10521 (enum rs6000_vector): New enum to say what vector unit we have.
10522 (VECTOR_UNIT_*): New macros to say which vector unit has
10523 arithmetic operations for a given type.
10524 (VECTOR_MEM_*): New macros to say which vector unit has memory
10525 operations for a given type.
10526 (TARGET_LDBRX): Whether the machine supports the ldbrx
10528 (TARGET_ISEL): Delete, -misel moved to be a mask.
10529 (TARGET_ISEL64): New macro for 64-bit isel support.
10530 (UNITS_PER_VSX_WORD): New macro.
10531 (POINTER_SIZE): Move to be an external variable, rather than
10532 calculating whether we are generating 32 ot 64-bit code.
10534 (STACK_BOUNDARY): Add VSX support.
10535 (LOCAL_ALIGNMENT): Ditto.
10536 (SLOW_UNALIGNED_ACCESS): Ditto.
10537 (VSX_REGNO_P): New macro for VSX support.
10538 (VFLOAT_REGNO_P): Ditto.
10539 (VINT_REGNO_P): Ditto.
10540 (VLOGICAL_REGNO_P): Ditto.
10541 (VSX_VECTOR_MODE): Ditto.
10542 (VSX_SCALAR_MODE): Ditto.
10544 (VSX_MOVE_MODE): Ditto.
10545 (VSX_REG_CLASS_P): Ditto.
10546 (HARD_REGNO_NREGS): Instead of calling a function, use an array
10548 (UNITS_PER_SIMD_WORD): Add VSX support.
10549 (MODES_TIEABLE_P): Ditto.
10550 (STARTING_FRAME_OFFSET): Ditto.
10551 (STACK_DYNAMIC_OFFSET): Ditto.
10552 (EPILOGUE_USES): Ditto.
10553 (REGNO_REG_CLASS): Move to array lookup.
10554 (CLASS_MAX_NREGS): Ditto.
10555 (rs6000_vector_reg_class): Add declaration.
10556 (ADDITIONAL_REGISTER_NAMES): Add VSX names for the registers that
10557 overlap with the floating point and Altivec registers.
10559 * config/rs6000/e500.h (CHECK_E500_OPTIONS): Disallow -mvsx.
10561 * config/rs6000/driver-rs6000.c (asm_names): New static array to
10562 give the appropriate asm switches if -mcpu=native.
10563 (host_detect_local_cpu): Add support for "asm".
10564 (host_detect_local_cpu): Follow GNU code guidelines for name.
10566 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Move
10567 -mbit-word to a variable instead of being a target mask.
10569 * config/rs6000/sync.md (lwsync): If the assembler supports it,
10570 emit the lwsync instruction instead of emitting the instruction as
10571 an integer constant.
10573 * config/rs6000/spe.md (spe_fixuns_truncdfsi2): Rename from
10574 fixuns_trundfsi2, move expander into rs6000.md.
10576 * config/rs6000/rs6000.md (cpu): Add power7.
10577 (sel, *ptrsize): New mode attributes for 32/64-bit isel.
10578 (logical predicate patterns): Change the single instruction
10579 primitives that set CR0 to be fast_compare instead of compare.
10581 (popcntwsi2): Add support for ISA 2.06 popcount instructions.
10582 (popcntddi2): Ditto.
10583 (popcount<mode>): Ditto.
10584 (floating multiply/add insns): Name the floating point
10585 multiply/add insns.
10586 (isel_signed_<mode>): Add support for -misel on 64-bit systems.
10587 (isel_unsigned_<mode>): Ditto.
10588 (fixuns_trundfsi2): Move expander here from spe.md.
10589 (smindi3): Define if we have -misel on 64-bit systems.
10594 2009-06-23 Anatoly Sokolov <aesok@post.ru>
10596 * config.gcc (avr-*-rtems*, avr-*-*): Set extra_gcc_objs and
10598 * config/avr/avr.c (avr_current_device): New variable.
10599 (avr_arch_types, avr_mcu_types): Move to avr-deveces.c.
10600 (avr_arch, mcu_type_s): Move to avr.h.
10601 * config/avr/avr.h (base_arch_s). Add reserved2, arch_name and
10602 default_data_section_start fields.
10603 (avr_arch): Moved from avr.c.
10604 (mcu_type_s): Moved from avr.c. Add short_sp, data_section_start and
10605 library_name fields.
10606 (avr_current_device, avr_mcu_types, avr_arch_types,
10607 avr_device_to_arch, avr_device_to_data_start,
10608 avr_device_to_startfiles, avr_device_to_devicelib): Declare.
10609 (EXTRA_SPEC_FUNCTIONS): Define.
10610 (LINK_SPEC): Remove device name to '-m ...' and '-Tdata ...' linker
10611 options mapping. Use device_to_arch and device_to_data_start insted.
10612 (STARTFILE_SPEC): Use device_to_startfile instead of crt_binutils.
10613 (CRT_BINUTILS_SPECS, EXTRA_SPECS): Remove.
10614 * config/avr/t-avr (driver-avr.o, avr-devices.o): New rules.
10615 * config/avr/driver-avr.c: New file.
10616 * config/avr/avr-devices.c: New file.
10618 2009-06-23 Jakub Jelinek <jakub@redhat.com>
10620 * var-tracking.c (unshare_variable): Force initialized to
10621 be VAR_INIT_STATUS_INITIALIZED unless flag_var_tracking_uninit.
10622 (set_variable_part): Likewise.
10623 (struct variable_union_info): Remove pos_src field.
10624 (vui_vec, vui_allocated): New variables.
10625 (variable_union): Pass VAR_INIT_STATUS_UNKNOWN to unshare_variable
10626 unconditionally. Avoid XCVECNEW/free for every sorting, for dst_l
10627 == 1 use a simpler sorting algorithm. Compute pos field right
10628 away, don't fill in pos_src. For dst_l == 2 avoid qsort.
10629 Avoid quadratic comparison if !flag_var_tracking_uninit.
10630 (variable_canonicalize): Pass VAR_INIT_STATUS_UNKNOWN to
10631 unshare_variable unconditionally.
10632 (dataflow_set_different_2): Removed.
10633 (dataflow_set_different): Don't traverse second hash table.
10634 (compute_bb_dataflow): Pass VAR_INIT_STATUS_UNINITIALIZED
10635 unconditionally to var_reg_set or var_mem_set.
10636 (emit_notes_in_bb): Likewise.
10637 (delete_variable_part): Pass VAR_INIT_STATUS_UNKNOWN to
10639 (emit_note_insn_var_location): Don't set initialized to
10640 VAR_INIT_STATUS_INITIALIZED early.
10641 (vt_finalize): Free vui_vec if needed, clear vui_vec and
10643 * rtl.c (rtx_equal_p): Don't implement on top of rtx_equal_p_cb.
10645 * tree-object-size.c (addr_object_size): Instead of checking
10646 for non-NULL TREE_CHAIN of the FIELD_DECL check that there
10647 are no FIELD_DECLs following it.
10649 2009-06-23 Andreas Krebbel <krebbel1@de.ibm.com>
10651 * tree-ssa-math-opts.c (find_bswap): Increase the search depth in
10652 order to match bswaps with signed source operands.
10654 2009-06-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10656 * sdbout.c (sdbout_one_type): Fix braces in switch.
10658 2009-06-23 Richard Guenther <rguenther@suse.de>
10660 * tree-ssa-structalias.c (struct variable_info): Add is_global_var
10662 (var_anything, anything_tree, var_nothing, nothing_tree, var_readonly,
10663 readonly_tree, var_escaped, escaped_tree, var_nonlocal, nonlocal_tree,
10664 var_callused, callused_tree, var_storedanything, storedanything_tree,
10665 var_integer, integer_tree): Remove global variables.
10666 (new_var_info): Do not pass new id, append the new var to the
10667 global variable vector.
10668 (do_ds_constraint): Use is_global_var member of the variable-info.
10669 (new_scalar_tmp_constraint_exp): Adjust.
10670 (create_function_info_for): Likewise.
10671 (create_variable_info_for): Likewise.
10672 (find_what_var_points_to): Remove dead code.
10673 (init_base_vars): Simplify.
10674 (compute_points_to_sets): Adjust.
10676 2009-06-22 Adam Nemet <anemet@caviumnetworks.com>
10678 * combine.c (try_combine): Dump information about the insns we're
10681 2009-06-22 Adam Nemet <anemet@caviumnetworks.com>
10683 * combine.c (combine_simplify_rtx): Remove TRULY_NOOP_TRUNCATION
10684 check when calling force_to_mode on TRUNCATE's operand.
10686 2009-06-22 Ian Lance Taylor <iant@google.com>
10688 * config/rs6000/rs6000.opt: Move msched-epilog before msched-prolog.
10690 2009-06-22 Steven Bosscher <steven@gcc.gnu.org>
10692 * config/arm/arm.md (prologue_use): Set length of fake insn to 0.
10694 2009-06-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10696 * doc/invoke.texi (Link Options): -nodefaultlibs and -nostdlib
10697 override library linkage flags such as -static-libgcc or
10700 2009-06-22 Maxim Kuvyrkov <maxim@codesourcery.com>
10702 * config/m68k/m68k-devices.def: Add line for MCF5221x.
10704 2009-06-22 Ian Lance Taylor <iant@google.com>
10706 * config/linux.opt: Put mglibc ahead of muclibc.
10708 * c-decl.c (diagnose_mismatched_decls): Add -Wc++-compat warning
10709 for duplicate decls.
10711 2009-06-22 Matthias Klose <doko@ubuntu.com>
10713 * Makefile.in (install-plugin): Remove extra `/' after $(DESTDIR).
10715 2009-06-22 Steven Bosscher <steven@gcc.gnu.org>
10718 * c-parser.c (c_parser_objc_message_args): Return error_mark_node
10719 instead of NULL if a parser error occurs.
10721 2009-06-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10723 * dwarf2out.c (dwarf2_debug_hooks): Initialize
10724 non-DWARF2_DEBUGGING_INFO version.
10726 2009-06-22 Kai Tietz <kai.tietz@onevision.com>
10728 * config.gcc (i[34567]86-*-mingw*, x86_64-*-mingw*): Add
10729 i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
10731 * config/i386/mingw32.h (LIBGCC2_HAS_TF_MODE): Define.
10732 (LIBGCC2_TF_CEXT): Define.
10735 2009-06-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10738 * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Fix definition.
10740 2009-06-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10742 * config/arm/arm.c (arm_override_options): Disable
10743 -mcaller-super-interworking and -mcallee-super-interworking.
10744 * doc/invoke.texi (ARM Options): Document this.
10746 2009-06-22 Nathan Sidwell <nathan@codesourcery.com>
10748 * config/arm/arm.c (arm_print_operand): Deal with HIGH.
10749 * config/arm/constraints.md (j): New constraint for movw operands.
10750 (N): Remove thumb2 meaning.
10751 * config/arm/arm.md (*arm_movw): Delete.
10752 (*arm_movsi_insn): Use j constraint for movw instead of N constraint.
10753 * config/arm/vfp.md (*arm_movsi_vfp, *thumb2_movsi_vfp): Likewise.
10754 * config/arm/thumb2.md (*thumb2_movsi_insn): Likewise.
10756 2009-06-22 Martin Jambor <mjambor@suse.cz>
10758 PR tree-optimization/40492
10759 * tree-sra.c (sra_modify_assign): Pass zero offsets to
10760 build_ref_for_offset.
10762 2009-06-22 Shujing Zhao <pearly.zhao@oracle.com>
10764 * alias.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P, CALL_P, NOTE_P and
10765 JUMP_TABLE_DATA_P predicates where applicable.
10766 * auto-inc-dec.c: Ditto.
10767 * builtins.c: Ditto.
10768 * caller-save.c: Ditto.
10770 * cfgcleanup.c: Ditto.
10771 * cfglayout.c: Ditto.
10773 * combine.c: Ditto.
10774 * combine-stack-adj.c: Ditto.
10778 * df-scan.c: Ditto.
10780 * dwarf2asm.c: Ditto.
10781 * dwarf2out.c: Ditto.
10782 * emit-rtl.c: Ditto.
10788 * function.c: Ditto.
10791 * genpreds.c: Ditto.
10792 * genrecog.c: Ditto.
10794 * ira-costs.c: Ditto.
10795 * ira-lives.c: Ditto.
10797 * loop-iv.c: Ditto.
10798 * lower-subreg.c: Ditto.
10799 * modulo-sched.c: Ditto.
10801 * postreload.c: Ditto.
10802 * print-rtl.c: Ditto.
10804 * reginfo.c: Ditto.
10805 * regmove.c: Ditto.
10806 * reload1.c: Ditto.
10809 * rtlanal.c: Ditto.
10811 * sched-vis.c: Ditto.
10813 * sel-sched-ir.c: Ditto.
10814 * simplify-rtx.c: Ditto.
10815 * targhooks.c: Ditto.
10816 * var-tracking.c: Ditto.
10817 * vmsdbgout.c: Ditto.
10819 2009-06-22 Matthias Klose <doko@ubuntu.com>
10821 * Makefile.in (install-plugin): Always use DESTDIR.
10823 2009-06-22 Olivier Hainque <hainque@adacore.com>
10825 * config/pa/pa.c (output_call): Don't optimize post call jumps
10826 into return address adjustments if the call may throw.
10828 2009-06-21 Richard Earnshaw <rearnsha@arm.com>
10830 * arm.c (thumb1_output_casesi): New function.
10831 * arm.h (CASE_VECTOR_PC_RELATIVE): Thumb-1 code is also relative if
10832 optimizing for size or PIC.
10833 (CASE_VECTOR_SHORTEN_MODE): Handle thumb-1.
10834 * arm.md (UNSPEC_THUMB1_CASESI): New constant.
10835 (casesi): Handle Thumb-1 when optimizing for size or PIC.
10836 (thumb1_casesi_internal_pic): New expand rule.
10837 (thumb1_casesi_dispatch): New pattern.
10838 * aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use shortened vectors for
10840 * coff.h (JUMP_TABLES_IN_TEXT_SECTION): Thumb-1 jump tables are now
10841 in the text seciton when PIC or optimizing for size.
10842 * elf.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
10843 * lib1funcs.asm ([__ARM_EABI__]): Add an attribute describing stack
10844 preservation properties of code.
10845 (__gnu_thumb1_case_sqi, __gnu_thumb1_case_uqi): New functions.
10846 (__gnu_thumb1_case_shi, __gnu_thumb1_case_uhi): New functions.
10847 (__gnu_thumb1_case_si): New function.
10848 * t-arm (LIB1ASMSRC): Define here.
10849 (LIB1ASMFUNCS): Add some common functions.
10850 * t-arm-elf (LIB1ASMSRC): Delete.
10851 (LIB1ASMFUNCS): Append to existing set.
10852 * t-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
10853 * t-strongarm-elf (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
10854 * t-symbian (LIB1ASMFUNCS): Likewise.
10855 * t-vxworks (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
10856 * t-wince-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
10858 2009-06-21 Richard Guenther <rguenther@suse.de>
10860 PR tree-optimization/38729
10861 * tree-ssa-loop-niter.c (find_loop_niter_by_eval): Restrict
10862 to loops with a single exit if -fno-expensive-optimizations.
10864 2009-06-21 Jakub Jelinek <jakub@redhat.com>
10866 * var-tracking.c (struct shared_hash_def, shared_hash): New types.
10867 (dataflow_set): Change vars type from htab_t to shared_hash.
10868 (shared_hash_pool, empty_shared_hash): New variables.
10869 (vars_clear): Removed.
10870 (shared_hash_shared, shared_hash_htab, shared_hash_copy,
10871 shared_hash_find_slot_unshare, shared_hash_find_slot,
10872 shared_hash_find_slot_noinsert, shared_hash_find): New
10874 (shared_hash_unshare, shared_hash_destroy): New functions.
10875 (unshare_variable): Unshare set->vars if shared, use
10877 (vars_copy): Use htab_traverse_noresize instead of htab_traverse.
10878 (get_init_value, find_src_set_src, dump_dataflow_set,
10879 clobber_variable_part, emit_notes_for_differences): Use
10881 (dataflow_set_init): Remove second argument, set vars to
10882 empty_shared_hash instead of creating a new htab.
10883 (dataflow_set_clear): Call shared_hash_destroy and set vars
10884 to empty_shared_hash instead of calling vars_clear.
10885 (dataflow_set_copy): Don't call vars_copy, instead just share
10886 the src htab with dst.
10887 (variable_union): Use shared_hash_*, use initially NO_INSERT
10888 lookup if set->vars is shared. Don't keep slot cleared before
10889 calling unshare_variable. Unshare set->vars if needed.
10890 Even ->refcount == 1 vars must be unshared if set->vars is shared
10891 and var needs to be modified.
10892 (variable_canonicalize): New function.
10893 (dataflow_set_union): If dst->vars is empty, just share src->vars
10894 with dst->vars and traverse with variable_canonicalize to canonicalize
10895 and unshare what is needed.
10896 (dataflow_set_different): If old_set and new_set use the same shared
10897 htab, they aren't different. If number of htab elements is different,
10898 htabs are different. Use shared_hash_*.
10899 (dataflow_set_destroy): Call shared_hash_destroy instead of
10901 (compute_bb_dataflow, emit_notes_in_bb, vt_emit_notes): Don't pass
10902 second argument to dataflow_set_init.
10903 (vt_initialize): Likewise. Initialize shared_hash_pool and
10904 empty_shared_hash, move bb in/out initialization afterwards.
10905 Use variable_htab_free instead of NULL as changed_variables del hook.
10906 (variable_was_changed): Change type of second argument to pointer to
10907 dataflow_set. When inserting var into changed_variables, bump
10908 refcount. Unshare set->vars if set is shared htab and slot needs to
10910 (set_variable_part): Use shared_hash_*, use initially NO_INSERT
10911 lookup if set->vars is shared. Unshare set->vars if needed.
10912 Even ->refcount == 1 vars must be unshared if set->vars is shared
10913 and var needs to be modified. Adjust variable_was_changed caller.
10914 (delete_variable_part): Use shared_hash_*. Even ->refcount == 1
10915 vars must be unshared if set->vars is shared and var needs to be
10916 modified. Adjust variable_was_changed caller.
10917 (emit_note_insn_var_location): Don't pool_free var.
10918 (emit_notes_for_differences_1): Initialize empty_var->refcount to 0
10920 (vt_finalize): Call htab_delete on empty_shared_hash->htab and
10921 free_alloc_pool on shared_hash_pool.
10923 2009-06-20 Anthony Green <green@moxielogic.com>
10925 * config/moxie/sfp-machine.h (__gcc_CMPtype, CMPtype): Define.
10926 * config/moxie/moxie.h (LOAD_EXTEND_OP): Define.
10928 2009-06-20 Richard Guenther <rguenther@suse.de>
10930 * tree-ssa-structalias.c (find_func_aliases): For memset use
10931 a constraint from NULL if we memset to zero.
10932 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Add builtins
10933 we explicitly handle that do not read from memory.
10934 (call_may_clobber_ref_p_1): Properly handle builtins that may
10937 2009-06-20 Richard Guenther <rguenther@suse.de>
10939 PR tree-optimization/40495
10940 * tree-ssa-structalias.c (get_constraint_exp_for_temp): Remove.
10941 (new_scalar_tmp_constraint_exp): New function.
10942 (process_constraint): Do not create temporary decls.
10943 (process_all_all_constraints): Likewise.
10944 (handle_const_call): Likewise.
10945 (create_function_info_for): Do not set decl.
10947 2009-06-19 Ian Lance Taylor <iant@google.com>
10949 * config/rs6000/rs6000.c (rs6000_explicit_options): Make static.
10950 (rs6000_attribute_table): Make static; move before use.
10952 2009-06-19 Eric Botcazou <ebotcazou@adacore.com>
10954 * tree.c (substitute_in_expr) <COMPONENT_REF>: Tweak and reformat.
10955 <tcc_vl_exp>: Call process_call_operands on the new CALL_EXPR.
10956 Propagate the TREE_READONLY flag without overwriting it.
10957 (substitute_placeholder_in_expr) <tcc_vl_exp>: Likewise.
10958 Propagate the TREE_READONLY flag onto the result.
10959 (process_call_operands): Move around. Use correct constant value.
10961 2009-06-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10964 * config/arm/arm.c (thumb_shiftable_const): Truncate val to 32 bits.
10965 * config/arm/arm.md: Likewise.
10967 2009-06-19 Ian Lance Taylor <iant@google.com>
10969 * tree-cfg.c (gimple_redirect_edge_and_branch): Change ERROR_MARK
10970 to GIMPLE_ERROR_MARK.
10972 * c-typeck.c (build_conditional_expr): Add op1_original_type and
10973 op2_original_type parameters. Warn about using different enum types.
10974 * c-parser.c (c_parser_conditional_expression): Pass original
10975 types to build_conditional_expr.
10976 * c-tree.h (build_conditional_expr): Update declaration.
10978 2009-06-19 Ian Lance Taylor <iant@google.com>
10980 * config/i386/i386.c (ix86_function_specific_save): Test that
10981 fields match values, rather than testing the values are in a
10984 2009-06-19 Richard Guenther <rguenther@suse.de>
10986 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
10987 ADDR_EXPR pointers.
10988 (ptr_derefs_may_alias_p): Likewise.
10989 (ptr_deref_may_alias_ref_p_1): New function.
10990 (ptr_deref_may_alias_ref_p): Likewise.
10991 (ref_maybe_used_by_call_p_1): Handle builtins that are not
10992 covered by looking at the ESCAPED solution.
10993 (call_may_clobber_ref_p_1): Likewise.
10994 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
10995 Handle NULL_TREE offset. Do not produce redundant constraints.
10996 (process_all_all_constraints): New helper function.
10997 (do_structure_copy): Use it.
10998 (handle_lhs_call): Likewise.
10999 (find_func_aliases): Handle some builtins with pointer arguments
11000 and/or return values explicitly.
11002 2009-06-19 Ian Lance Taylor <iant@google.com>
11004 * varasm.c (const_rtx_hash_1): Remove const qualifier from shift.
11006 2009-06-19 Ian Lance Taylor <iant@google.com>
11008 * rtl.h (SUBREG_PROMOTED_UNSIGNED_P): Add cast to int.
11010 2009-06-19 Ian Lance Taylor <iant@google.com>
11012 * ggc-page.c (ggc_pch_write_object): Initialize emptyBytes.
11013 * sdbout.c (sdb_debug_hooks): Initialize non-SDB_DEBUGGING_INFO
11016 * c-decl.c (finish_decl): If -Wc++-compat, warn about
11017 uninitialized const.
11019 2009-06-19 Ian Lance Taylor <iant@google.com>
11021 * dse.c (struct store_info): Rename bitmap field to bmap. Change
11024 * c-decl.c (in_struct, struct_types): Remove.
11025 (struct c_binding): Add in_struct field.
11026 (c_binding_ptr): Define type, along with VEC.
11027 (struct c_struct_parse_info): Define.
11028 (struct_parse_info): New static variable.
11029 (bind): Initialize in_struct field.
11030 (start_struct): Remove enclosing_in_struct and
11031 enclosing_struct_types parameters. Add
11032 enclosing_struct_parse_info parameter. Change all callers. Set
11033 struct_parse_info rather than in_struct and struct_types.
11034 (grokfield): If -Wc++-compat and there is a symbol binding for the
11035 field name, set the in_struct flag and push it on the
11036 struct_parse_info->fields vector.
11037 (warn_cxx_compat_finish_struct): New static function.
11038 (finish_struct): Remove enclosing_in_struct and
11039 enclosing_struct_types parameters. Add
11040 enclosing_struct_parse_info parameter. Change all callers. Don't
11041 set C_TYPE_DEFINED_IN_STRUCT here. Call
11042 warn_cxx_compat_finish_struct. Free struct_parse_info and set to
11043 parameter. Only push on struct_types if warn_cxx_compat.
11044 (finish_enum): Only push on struct_types if warn_cxx_compat.
11045 (declspecs_add_type): Add loc parameter. Change all callers.
11046 Change all error calls to error_at. Pass loc, not input_location,
11047 to pedwarn calls. Warn if -Wc++-compat and a typedef name is
11048 defined in a struct. If -Wc++-compat and parsing a struct, record
11049 that a typedef name was used.
11050 * c-parser.c (c_parser_declspecs): Get location to pass to
11051 declspecs_add_type.
11052 (c_parser_struct_or_union_specifier): Update calls to start_struct
11054 * c-tree.h (struct c_struct_parse_info): Declare.
11055 (finish_struct, start_struct): Update declarations.
11056 (declspecs_add_type): Update declaration.
11058 2009-06-19 Ian Lance Taylor <iant@google.com>
11060 * c-decl.c (grokdeclarator): If -Wc++-compat, warn about a global
11061 variable with an anonymous type.
11063 2009-06-19 Uros Bizjak <ubizjak@gmail.com>
11065 * see.c: Remove for real.
11067 2009-06-19 Uros Bizjak <ubizjak@gmail.com>
11069 * optabs.h (enum optab_index): Add new OTI_significand.
11070 (significand_optab): Define corresponding macro.
11071 * optabs.c (init_optabs): Initialize significand_optab.
11072 * genopinit.c (optabs): Implement significand_optab using
11073 significand?f2 patterns.
11074 * builtins.c (expand_builtin_mathfn): Handle
11075 BUILT_IN_SIGNIFICAND{,F,L}.
11076 (expand_builtin): Expand BUILT_IN_SIGNIFICAND{,F,L} using
11077 expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
11079 * config/i386/i386.md (significandxf2, significand<mode>2): New
11080 expanders to implement significandf, significand and significandl
11081 built-ins as inline x87 intrinsics.
11083 2009-06-18 Anatoly Sokolov <aesok@post.ru>
11085 * config/avr/avr.c (avr_override_options): Remove setting value of
11086 PARAM_INLINE_CALL_COST.
11088 2009-06-18 Richard Henderson <rth@redhat.com>
11091 * tree-pass.h (TDF_ASMNAME): New.
11092 * tree-dump.c (dump_options): Add asmname.
11093 * doc/invoke.texi: Document it.
11095 * tree-pretty-print.c (maybe_dump_asm_name): Merge into...
11096 (dump_decl_name): ...here.
11097 (dump_function_name): New flags arg; mind TDF_ASMNAME.
11098 (dump_generic_node): Update dump_function_name calls.
11099 (print_call_name): New flags arg; update all dump calls.
11100 * diagnostic.h (print_call_name): Update.
11101 * gimple-pretty-print.c (dump_gimple_call): Update.
11103 2009-06-18 H.J. Lu <hongjiu.lu@intel.com>
11106 * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Add SSE_FIRST_REG.
11108 2009-06-18 Diego Novillo <dnovillo@google.com>
11110 * doc/plugins.texi: Document plugin_is_GPL_compatible.
11111 * plugin.c (str_license): Declare.
11112 (try_init_one_plugin): Assert that the symbol
11113 'plugin_is_GPL_compatible' exists.
11115 2009-06-18 Sergei Dyshel <sergeid@il.ibm.com>
11118 * Makefile.in (OBJS-common): Remove see.o.
11120 * common.opt (fsee): Mark as preserved for backward compatibility.
11121 * opts.c (common_handle_option): Add OPT_fsee to the backward
11122 compatibility section.
11123 * passes.c (init_optimization_passes, pass_see): Remove pass.
11124 * timevar.def (TV_SEE): Remove.
11125 * tree-pass.h (pass_see): Remove declaration.
11126 * doc/invoke.texi (-fsee): Remove documentation.
11128 2009-06-18 Martin Jambor <mjambor@suse.cz>
11130 * tree-sra.c: Include statistics.h
11131 (sra_stats): New variable.
11132 (sra_initialize): Clear sra_stats.
11133 (create_access_replacement): Increment sra_stats.replacements.
11134 (get_access_replacement): Do not return twice.
11135 (analyze_all_variable_accesses): Increment statistics counter by the
11136 number of scalarized aggregates.
11137 (generate_subtree_copies): Increment sra_stats.subtree_copies.
11138 (sra_modify_expr): Increment sra_stats.exprs.
11139 (load_assign_lhs_subreplacements): Increment sra_stats.subreplacements.
11140 (sra_modify_assign): Increment sra_stats.exprs,
11141 sra_stats.separate_lhs_rhs_handling and sra_stats.deleted.
11142 (perform_intra_sra): Update statistics counters.
11143 * Makefile.in (tree-sra.o): Add statistics.h to dependencies.
11145 2009-06-18 Sandra Loosemore <sandra@codesourcery.com>
11147 * config/arm/arm.c (TARGET_SCALAR_MODE_SUPPORTED_P): Redefine.
11148 (arm_scalar_mode_supported_p): New function.
11150 2009-06-18 Paul Brook <paul@codesourcery.com>
11151 Sandra Loosemore <sandra@codesourcery.com>
11153 * config/arm/sfp-machine.h (_FP_NANFRAC_H, _FP_NANSIGN_H): Define.
11154 (__extendhfsf2, __truncsfhf2): Define.
11155 * config/arm/fp16.c: New file.
11156 * config/arm/t-bpabi (LIB2FUNCS_STATIC_EXTRA): Add fp16.c.
11157 * config/arm/t-symbian (LIB2FUNCS_STATIC_EXTRA): Add fp16.c.
11159 2009-06-18 Sandra Loosemore <sandra@codesourcery.com>
11161 * doc/extend.texi (Half-Precision): New section.
11162 * doc/invoke.texi (Option Summary): List -mfp16-format.
11163 (ARM Options): List neon-fp16 as -mfpu value. Document -mfp16-format.
11164 * config/arm/arm.opt (mfp16-format=): New.
11165 * config/arm/arm.c: Include intl.h.
11166 (TARGET_INVALID_PARAMETER_TYPE): Redefine.
11167 (TARGET_INVALID_RETURN_TYPE): Redefine.
11168 (TARGET_PROMOTED_TYPE): Redefine.
11169 (TARGET_CONVERT_TO_TYPE): Redefine.
11170 (arm_fp16_format): Define.
11171 (all_fpus): Add entry for neon-fp16.
11172 (fp_model_for_fpu): Likewise.
11173 (struct fp16_format): Declare.
11174 (all_fp16_formats): Define.
11175 (arm_init_libfuncs): Add entries for HFmode conversions and arithmetic
11177 (arm_override_options): Set arm_fp16_format. Call sorry for fp16
11179 (arm_legitimate_index_p): Treat HFmode like HImode.
11180 (thumb1_legitimate_address_p): Make it recognize HFmode constants.
11181 (coproc_secondary_reload_class): Special-case HFmode.
11182 (arm_print_operand): Add 'z' specifier for vld1.16/vst1.16.
11183 (arm_hard_regno_mode_ok): Allow HFmode values in VFP registers.
11184 (arm_init_fp16_builtins): New.
11185 (arm_init_builtins): Call it.
11186 (arm_invalid_parameter_type): New.
11187 (arm_invalid_return_type): New.
11188 (arm_promoted_type): New.
11189 (arm_convert_to_type).
11190 (arm_file_start): Deal with neon-fp16 as fpu_name. Emit tag for fp16
11192 (arm_emit_fp16_const): New function.
11193 (arm_mangle_type): Mangle __fp16 as "Dh".
11194 * config/arm/arm.h (TARGET_VFPD32): Make it know about
11196 (TARGET_NEON_FP16): New.
11197 (TARGET_NEON): Make it know about FPUTYPE_NEON_FP16.
11198 (enum fputype): Add FPUTYPE_NEON_FP16.
11199 (enum arm_fp16_format_type): Declare.
11200 (arm_fp16_format): Declare.
11201 (LARGEST_EXPONENT_IS_NORMAL): Define.
11202 * config/arm/arm-protos.h (arm_emit_fp16_const): Declare.
11203 * config/arm/arm-modes.def (HFmode): Define.
11204 * config/arm/vfp.md: (*movhf_vfp): New.
11205 (extendhfsf2): New.
11207 * config/arm/arm.md: (fpu): Add neon_fp16.
11208 (floatsihf2, floatdihf2): New.
11209 (fix_trunchfsi2, fix_trunchfdi2): New.
11211 (extendhfdf2): New.
11213 (*arm32_movhf): New.
11214 (*thumb1_movhf): New.
11215 (consttable_2): Add check for HFmode constants.
11216 (consttable_4): Handle HFmode constants.
11218 2009-06-18 Uros Bizjak <ubizjak@gmail.com>
11220 * convert.c (convert_to_integer): Convert (int)logb() into ilogb().
11222 2009-06-17 Olivier Hainque <hainque@adacore.com>
11224 * collect2.c (main): Use CONST_CAST2 to perform char ** to
11225 const char ** conversion in AIX specific section.
11227 2009-06-17 H.J. Lu <hongjiu.lu@intel.com>
11229 * config/i386/i386.c (ix86_special_builtin_type): Remove
11230 UINT64_FTYPE_PINT. Add UINT64_FTYPE_PUNSIGNED.
11231 (bdesc_special_args): Updated.
11232 (ix86_init_mmx_sse_builtins): Likewise.
11233 (ix86_expand_special_args_builtin): Likewise.
11235 2009-06-17 Richard Henderson <rth@redhat.com>
11237 * tree-pretty-print.c (maybe_dump_asm_name): New.
11238 (dump_decl_name): Use it.
11239 (PRINT_FUNCTION_NAME): Merge into...
11240 (dump_function_name): ... here. Use maybe_dump_asm_name.
11242 2009-06-17 Cary Coutant <ccoutant@google.com>
11244 * dbxout.c (dbxout_source_line): Add is_stmt parameter.
11246 * debug.c (struct gcc_debug_hooks): Change placeholder for
11248 (debug_nothing_int_charstar_int): Replaced by...
11249 (debug_nothing_int_charstar_int_bool): ...this.
11250 * debug.h (struct gcc_debug_hooks): Add is_stmt parameter to
11251 source_line prototype.
11252 (debug_nothing_int_charstar_int): Replaced by...
11253 (debug_nothing_int_charstar_int_bool): ...this.
11254 * defaults.h (SUPPORTS_DISCRIMINATOR): New constant.
11255 * dwarf2out.c (dwarf2out_source_line): Add is_stmt parameter.
11256 Output is_stmt operand when necessary.
11257 * final.c (final_scan_insn): Pass is_stmt to source_line debug hook.
11258 (notice_source_line): Add is_stmt parameter.
11259 * sdbout.c (sdbout_source_line): Add is_stmt parameter.
11260 * vmsdbgout.c (vmsdbgout_source_line): Add is_stmt parameter.
11262 * xcoffout.c (xcoffout_source_line): Add is_stmt parameter.
11263 * xcoffout.h (xcoffout_source_line): Add is_stmt parameter.
11265 2009-06-17 Ian Lance Taylor <iant@google.com>
11267 * expr.c (struct move_by_pieces_d): Rename from move_by_pieces.
11269 (struct store_by_pieces_d): Rename from store_by_pieces. Change
11272 2009-06-17 Adam Nemet <anemet@caviumnetworks.com>
11274 * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS,
11275 STRIP_USELESS_TYPE_CONVERSION): Use tree_strip_nop_conversions,
11276 tree_strip_sign_nop_conversions and
11277 tree_ssa_strip_useless_type_conversions rather than stripping
11278 the operations here.
11279 (tree_strip_nop_conversions, tree_strip_sign_nop_conversions):
11281 * gimple.h (tree_ssa_strip_useless_type_conversions): Declare it.
11282 * tree-ssa.c (tree_ssa_strip_useless_type_conversions): New function.
11283 * tree.c (tree_nop_conversion, tree_sign_nop_conversion,
11284 tree_strip_nop_conversions, tree_strip_sign_nop_conversions): New
11287 2009-06-17 Michael Eager <eager@eagercon.com>
11289 * config/rs6000/constraints.md (register_constraint "d"): New.
11290 * config/rs6000/dfp.md (movsd_store, extendsddd2, extendsdtd2,
11291 truncddsd2, *negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
11292 *movdd_hardfloat32, *movdd_hardfloat64_mfpgpr, *movdd_hardfloat64,
11293 *negtd2_fp, *abstd2_fpr, *nabstd2_fpr, *movtd_internal, extendddtd2,
11294 trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
11295 divtd3, *cmpdd_internal1, *cmptd_internal1, floatditd2, ftruncdd2,
11296 fixdddi2, ftrunctd2, fixtddi2): replace 'f' constraint with 'd'
11297 * config/rs6000/ppu_intrinsics.h (__mffs, __mtfsf, __mtfsfi, __fabs,
11298 __fnabs, __fmadd, __fmsub, __fnmadd, __fnmsub, __fsel, __frsqrte,
11299 __fsqrt, __fmul, __fmuls, __frsp, __fcfid, __fctid, __fctidz, __fctiw,
11301 * config/rs6000/rs6000.md (*extendsfdf2_fpr, *truncdfsf2_fpr,
11302 *fseldfsf4, *negdf2_fpr, *absdf2_fpr, *nabsdf2_fpr, *adddf3_fpr,
11303 *subdf3_fpr, *muldf3_fpr, *divdf3_fpr, recipdf3, fred, sqrtdf2,
11304 *fseldfdf4, *fselsfdf4, *floatsidf2_internal, *floatunssidf2_internal,
11305 *fix_truncdfsi2_internal, fix_truncdfsi2_internal_gfxopt,
11306 fix_truncdfsi2_mfpgpr, fctiwz, btruncdf2, ceildf2, floordf2, rounddf2,
11307 stfiwx, floatdidf2, fix_truncdfdi2, floatdisf2_internal1,
11308 *movdf_hardfloat32, *movdf_hardfloat64_mfpgpr, *movdf_hardfloat64,
11309 *movtf_internal, *extenddftf2_internal, trunctfdf2_internal1,
11310 trunctfdf2_internal2, trunctfsf2_fprs, fix_trunc_helper,
11311 *fix_trunctfsi2_internal, negtf2_internal, *movdi_internal32,
11312 *movdi_mfpgpr, *movdi_internal64, *movdf_update1, *movdf_update2,
11313 *cmpdf_internal1, *cmptf_internal1, *cmptf_internal2): Same.
11314 * doc/md.texi: Describe PowerPC 'd' constraint, update 'f' constraint.
11316 2009-06-16 Ian Lance Taylor <iant@google.com>
11318 * profile.c (total_num_never_executed): Don't define.
11319 (compute_branch_probabilities): Don't count or print
11320 num_never_executed.
11321 (init_branch_prob): Don't set total_num_never_executed.
11322 (end_branch_prob): Don't print total_num_never_executed.
11324 2009-06-17 David Daney <ddaney@caviumnetworks.com>
11326 * jump.c (cleanup_barriers): Handle case of no insns before a barrier.
11328 2009-06-17 David Edelsohn <edelsohn@gnu.org>
11330 * config/rs6000/dfp.md (nabsdd2_fpr): Correct mode.
11331 (nabstd2_fpr): Same.
11333 2009-06-17 Steve Ellcey <sje@cup.hp.com>
11335 * expr.c (expand_assignment): Change complex type check.
11337 2009-06-17 Basile Starynkevitch <basile@starynkevitch.net>
11339 * doc/plugins.texi (Building GCC plugins): Added new section.
11341 2009-06-17 Ian Lance Taylor <iant@google.com>
11343 * c-pch.c (get_ident): Don't set size of templ array.
11344 (pch_init): Don't set size of partial_pch array.
11346 * c-typeck.c (digest_init): If -Wc++-compat, warn about using a
11347 string constant to intialize an array whose size is the length of
11350 2009-06-17 Richard Guenther <rguenther@suse.de>
11352 PR tree-optimization/40389
11353 * tree-ssa-structalias.c (handle_rhs_call): Restrict NRV case
11354 to addressable types.
11355 * gimple.c (walk_stmt_load_store_addr_ops): Likewise.
11357 2009-06-17 Richard Guenther <rguenther@suse.de>
11359 PR middle-end/40460
11360 * tree-chrec.h (build_polynomial_chrec): If we cannot determine
11361 if there is no evolution of left in the loop bail out.
11362 * tree-chrec.c (chrec_fold_multiply_poly_poly): CSE one
11363 chrec_fold_multiply.
11365 2009-06-16 J"orn Rennecke <joern.rennecke@arc.com>
11366 Janis Johnson <janis187@us.ibm.com>
11369 * config/rs6000/rs6000.c (rs6000_emit_move): Don't emit a USE
11370 for the symbol ref of a constant that is the source of a move
11371 - nor for any other not-obvious-label-ref constants.
11373 2009-06-16 Olatunji Ruwase <tjruwase@google.com>
11375 * plugin.c (position_pass): Skip newly inserted pass during list
11376 traversal to avoid repeated insertion.
11378 2009-06-16 Ian Lance Taylor <iant@google.com>
11380 * vec.h (VEC_stack_alloc): Define different version if
11381 GATHER_STATISTICS is defined, to accept and ignore MEM_STAT.
11382 (DEF_VEC_ALLOC_FUNC_P_STACK): Remove MEM_STAT_DECL.
11383 (DEF_VEC_ALLOC_FUNC_O_STACK): Likewise.
11384 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
11386 2009-06-16 H.J. Lu <hongjiu.lu@intel.com>
11388 * config.gcc (extra_headers): Add ia32intrin.h for x86.
11390 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_BSRSI,
11391 IX86_BUILTIN_BSRDI. IX86_BUILTIN_RDPMC, IX86_BUILTIN_RDTSC.
11392 IX86_BUILTIN_RDTSCP. IX86_BUILTIN_ROLQI, IX86_BUILTIN_ROLHI,
11393 IX86_BUILTIN_RORQI and IX86_BUILTIN_RORHI.
11394 (ix86_special_builtin_type): Add UINT64_FTYPE_VOID,
11395 UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
11396 INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
11397 (bdesc_special_args): Add __builtin_ia32_rdtsc and
11398 __builtin_ia32_rdtscp.
11399 (bdesc_args): Add __builtin_ia32_bsrsi, __builtin_ia32_bsrdi,
11400 __builtin_ia32_rolqi, __builtin_ia32_rolhi, __builtin_ia32_rorqi
11401 and __builtin_ia32_rorhi.
11402 (ix86_init_mmx_sse_builtins): Handle UINT64_FTYPE_VOID,
11403 UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
11404 INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
11405 (ix86_expand_args_builtin): Likewise.
11406 (ix86_expand_special_args_builtin): Likewise.
11408 * config/i386/i386.md (UNSPECV_RDTSCP): New.
11409 (UNSPECV_RDTSC): Likewise.
11410 (UNSPECV_RDPMC): Likewise.
11411 (*bsr): Renamed to ...
11413 (*bsr_rex64): Renamed to ...
11416 (*rdpmc): Likewise.
11417 (*rdpmc_rex64): Likewise.
11419 (*rdtsc): Likewise.
11420 (*rdtsc_rex64): Likewise.
11421 (rdtscp): Likewise.
11422 (*rdtscp): Likewise.
11423 (*rdtscp_rex64): Likewise.
11425 * config/i386/ia32intrin.h: New.
11427 * config/i386/x86intrin.h: Include <ia32intrin.h>.
11429 2009-06-16 Ian Lance Taylor <iant@google.com>
11431 * ira-build.c (copy_info_to_removed_store_destinations):
11432 Initialize parent_a.
11434 2009-06-16 Ian Lance Taylor <iant@google.com>
11436 * c-decl.c (grokdeclarator): Change size_varies to bool.
11438 2009-06-16 Ian Lance Taylor <iant@google.com>
11440 * sel-sched.c: Make forward declarations of move_op_hooks and
11441 fur_hooks explicitly extern.
11443 2009-06-16 Ian Lance Taylor <iant@google.com>
11445 * df-problems.c (df_byte_lr_alloc): Don't set problem_data to itself.
11446 * vec.c (vec_gc_o_reserve_1): Don't set alloc to itself.
11448 2009-06-16 Ian Lance Taylor <iant@google.com>
11450 * resource.c (mark_referenced_resources): Change
11451 include_delayed_effects parameter to bool. Change all callers.
11452 (mark_end_of_function_resources): Likewise.
11453 * reorg.c (insn_references_resource_p): Likewise.
11454 (insn_sets_resource_p): Likewise.
11455 * resource.h (mark_referenced_resources): Update declaration.
11456 (mark_end_of_function_resources): Update declaration.
11458 2009-06-16 David Edelsohn <edelsohn@gnu.org>
11460 * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove -lstdc++.
11462 2009-06-16 David Edelsohn <edelsohn@gnu.org>
11464 * doc/install.texi (*-*-aix): Update explanation of XLC bootstrap.
11465 GCC can bootstrap on AIX with GNU Binutils 2.20.
11467 2009-06-16 Ian Lance Taylor <iant@google.com>
11469 * Makefile.in (tree-vect-stmts.o): Depend upon $(TOPLEV_H).
11471 2009-06-16 Ian Lance Taylor <iant@google.com>
11473 * toplev.h (floor_log2): If GCC_VERSION >= 3004, declare as static
11474 inline, not extern inline.
11475 (exact_log2): Likewise.
11476 * toplev.c (floor_log2): Only define if GCC_VERSION < 3004. Don't
11478 (exact_log2): Likewise, but don't test CTZ_HWI.
11480 2009-06-16 Ian Lance Taylor <iant@google.com>
11482 * bitmap.c (bitmap_clear): Don't declare as inline.
11483 * gimple.c (gimplify_assign): Likewise.
11484 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
11485 * haifa-sched.c (insn_cost): Don't declare with HAIFA_INLINE.
11486 (sched_scan_info): Remove duplicate definition.
11488 2009-06-16 Ian Lance Taylor <iant@google.com>
11490 * c-common.c (skip_evaluation): Don't define.
11491 (c_inhibit_evaluation_warnings): Define global variable.
11492 (overflow_warning): Check c_inhibit_evaluation_warnings rather
11493 than skip_evaluation.
11494 (convert_and_check, warn_for_div_by_zero): Likewise.
11495 * c-common.h (skip_evaluation): Don't declare.
11496 (c_inhibit_evaluation_warnings): Declare.
11497 * c-parser.c (c_parser_typeof_specifier): Set
11498 c_inhibit_evaluation_warnings rather than skip_evaluation.
11499 (c_parser_conditional_expression): Likewise.
11500 (c_parser_binary_expression): Likewise.
11501 (c_parser_sizeof_expression): Likewise.
11502 (c_parser_alignof_expression): Likewise.
11503 * c-typeck.c (build_indirect_ref): Check
11504 c_inhibit_evaluation_warnings rather than skip_evaluation.
11505 (build_conditional_expr, build_binary_op): Likewise.
11507 2009-06-16 Richard Guenther <rguenther@suse.de>
11509 * tree-ssa-alias.c (is_escape_site): Remove.
11510 * tree-ssa-alias.h (enum escape_type): Remove.
11511 (is_escape_site): Likewise.
11512 * tree-ssa-structalias.c (find_func_aliases): Handle escapes
11513 via casts and asms without deferring to is_escape_site.
11515 2009-06-16 Jakub Jelinek <jakub@redhat.com>
11517 PR middle-end/40446
11518 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: Don't
11519 use gen_lowpart if op0 has complex mode.
11521 2009-06-16 Richard Guenther <rguenther@suse.de>
11523 * tree-ssa-structalias.c (do_ds_constraint): Stores in global
11524 variables add them to ESCAPED.
11525 (find_func_aliases): Do not make all indirectly stored values escaped.
11527 2009-06-16 Rafael Avila de Espindola <espindola@google.com>
11529 * config/i386/winnt.c (i386_pe_encode_section_info): Update call to
11530 make_decl_one_only.
11532 2009-06-16 Martin Jambor <mjambor@suse.cz>
11534 PR tree-optimization/40432
11535 * tree-sra.c (sra_modify_assign): When creating VIEW_CONVERT_EXPR,
11536 check whether we need to force gimple register operand.
11538 2009-06-16 Martin Jambor <mjambor@suse.cz>
11540 PR tree-optimization/40413
11541 * tree-sra.c (load_assign_lhs_subreplacements): Pass offset to
11542 build_ref_for_offset.
11543 (propagate_subacesses_accross_link): Fix a typo in a comment.
11545 2009-06-16 Ira Rosen <irar@il.ibm.com>
11547 * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
11548 with additional parameter.
11549 * tree-vectorizer.h (enum vect_def_type): Add new value
11551 (enum vect_relevant): Add comments.
11552 (vect_is_simple_reduction): Add new argument.
11553 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Add comments.
11554 Detect nested cycles.
11555 (vect_is_simple_reduction): Update documentation, add an argument to
11556 distinguish inner-loop reduction from nested cycle, detect nested
11557 cycles, fix printings and indentation, don't swap operands in case
11559 (get_initial_def_for_reduction): Handle subtraction.
11560 (vect_create_epilog_for_reduction): Add new argument to specify
11561 reduction variable.
11562 (vect_finalize_reduction): Handle subtraction, fix comments.
11563 (vectorizable_reduction): Handle nested cycles. In case of nested
11564 cycle keep track of the reduction variable position. Call
11565 vect_is_simple_reduction with additional parameter. Use original
11566 statement code in reduction epilogue for nested cycle. Call
11567 vect_create_epilog_for_reduction with additional parameter.
11568 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Assert
11569 inner-loop vectorization.
11570 (vect_recog_widen_sum_pattern): Likewise.
11571 * tree-vect-stmts.c (process_use): Distinguish between nested cycles
11573 (vect_mark_stmts_to_be_vectorized): Likewise.
11574 (vect_get_vec_def_for_operand): Handle nested cycles.
11576 2009-06-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11578 * doc/invoke.texi (Debugging Options): Fix option index entries
11579 for -fdump-statistics, -frandom-seed add entries for
11580 -fdump-tree-original, -fdump-tree-optimized, -frandom-seed.
11581 (FRV Options): Fix entries for -mTLS, -mtls.
11582 (HPPA Options): Fix entries for -mgnu-ld, -mhp-ld.
11583 (i386 and x86-64 Options): Fix entry for -mno-red-zone.
11584 (M68hc1x Options): Fix @itemx for -mnominmax.
11585 (MCore Options): Fix entry for -mno-lsim.
11586 (MMIX Options): Fix entry for -mabi=mmixware.
11587 (PDP-11 Options): Fix entry for -mbcopy-builtin.
11589 2009-06-16 Basile Starynkevitch <basile@starynkevitch.net>
11591 * doc/plugins.texi (Interacting with the GCC Garbage Collector):
11592 Mention the plugin mode of gengtype.
11593 * doc/gty.texi (Source Files Containing Type Information): Likewise.
11594 * gengtype.c: Updated copyright.
11595 (plugin_files, nb_plugin_files) Added new static variables.
11596 (measure_input_list) Care about plugin_files.
11597 (write_rtx_next): Added early return in plugin mode.
11598 (create_file): Updated copyright year in generated file. Added
11600 (oprintf): Added early return if NULL outf.
11601 (get_output_file_with_visibility): Care of plugin_files.
11602 (get_output_file_name): May return null.
11603 (write_local): Added early return.
11604 (put_mangled_filename): Ditto.
11605 (finish_root_table): Added check for base_files.
11606 (write_roots): Care about null when plugins.
11607 (main): Added plugin mode.
11609 2009-06-15 Ian Lance Taylor <iant@google.com>
11611 * df-problems.c (df_simulate_one_insn_forwards): Fix braces in switch.
11612 * gcov.c (read_count_file): Add braces around variables declared
11615 * c.opt (Wjump-misses-init): New warning.
11616 * c-opts.c (c_common_handle_option): Set warn_jump_misses_init for
11617 -Wall and -Wc++-compat if not already set.
11618 (c_common_post_options): Clear warn_jump_misses_init if it was not
11620 * c-decl.c (struct c_binding): Change type field to a union with
11621 new label field. Make it the first field in the struct. Update
11622 references to type to use u.type instead.
11623 (struct c_spot_bindings): Define.
11624 (struct c_goto_bindings): Define.
11625 (c_goto_bindings_p): Define, along with VECs.
11626 (struct c_label_vars): Define.
11627 (struct c_scope): Add has_label_bindings field.
11628 (bind_label, set_spot_bindings): New static functions.
11629 (decl_jump_unsafe, update_spot_bindings): New static functions.
11630 (update_label_decls): New static function.
11631 (pop_scope): Call update_label_decls. Don't call c_end_vm_scope.
11632 Update binding u.label field to shadowed field.
11633 (c_binding_start_stmt_expr): New function.
11634 (c_binding_end_stmt_expr): New function.
11635 (pushdecl): Don't call c_begin_vm_scope.
11636 (make_label): Add defining and p_label_vars parameters. Change
11638 (lookup_label): Correct test for whether a label has not yet been
11639 defined. Call bind_label rather than bind.
11640 (warn_about_goto): New static function.
11641 (lookup_label_for_goto): New function.
11642 (declare_label): Call bind_label rather than bind.
11643 (check_earlier_gotos): New static function.
11644 (define_label): Don't give errors about jumping into statement
11645 expressions or scopes of variably modified types. Call
11646 set_spot_bindings and check_earlier_gotos. Call bind_label
11647 instead of bind. Don't set label_context_stack_se or
11648 label_context_stack_vm.
11649 (c_get_switch_bindings): New function.
11650 (c_release_switch_bindings): New function.
11651 (c_check_switch_jump_warnings): New function.
11652 (start_function): Don't set label_context_stack_se or
11653 label_context_stack_vm.
11654 (finish_function): Likewise.
11655 * c-typeck.c (label_context_stack_se): Don't define.
11656 (label_context_stack_vm): Don't define.
11657 (c_finish_goto_label): Call lookup_label_for_goto rather than
11658 lookup_label. Don't give errors about jumping into a statement
11659 expression or the scope of a variably modified type. Don't set
11660 label_context_stack_se or label_context_stack_vm.
11661 (struct c_switch): Remove blocked_stmt_expr and blocked_vm
11662 fields. Add bindings field.
11663 (c_start_case): Don't set deleted fields. Set bindings field.
11664 (do_case): Rework order of tests. Don't check blocked_stmt_expr
11665 or blocked_vm. Call c_check_switch_jump_warnings.
11666 (c_finish_case): Don't test blocked_stmt_expr field. Call
11667 c_release_switch_bindings.
11668 (c_begin_stmt_expr): Don't increment blocked_stmt_expr in
11669 c_switch_stack. Don't walk label_context_stack_se labels. Don't
11670 set label_context_stack_se. Call c_bindings_start_stmt_expr.
11671 (c_finish_stmt_expr): Don't decrement blocked_stmt_expr in
11672 c_switch_stack. Don't walk label_context_stack_se labels. Don't
11673 set label_context_stack_se. Call c_bindings_end_stmt_expr.
11674 (c_begin_vm_scope, c_end_vm_scope): Don't define.
11675 * c-tree.h (C_DECL_UNJUMPABLE_STMT_EXPR): Don't define.
11676 (C_DECL_UNDEFINABLE_STMT_EXPR): Don't define.
11677 (C_DECL_UNJUMPABLE_VM): Don't define.
11678 (C_DECL_UNDEFINABLE_VM): Don't define.
11679 (struct c_label_list): Don't define.
11680 (struct c_label_context_se): Don't define.
11681 (struct c_label_context_vm): Don't define.
11682 (struct c_spot_bindings): Declare.
11683 (c_bindings_start_stmt_expr): Declare.
11684 (c_bindings_end_stmt_expr): Declare.
11685 (lookup_label_for_goto): Declare.
11686 (c_get_switch_bindings, c_release_switch_bindings): Declare.
11687 (c_check_switch_jump_warnings): Declare.
11688 (label_context_stack_se, label_context_stack_vm): Don't declare.
11689 (c_finish_goto_label): Update declaration.
11690 (c_begin_vm_scope, c_end_vm_scope): Don't declare.
11691 * doc/invoke.texi (Option Summary): Mention -Wjump-misses-init.
11692 (Warning Options): Document -Wjump-misses-init.
11694 2009-06-15 Jakub Jelinek <jakub@redhat.com>
11696 * tree-object-size.c (addr_object_size): Fix a pasto in the last
11699 2009-06-15 Rafael Avila de Espindola <espindola@google.com>
11701 * cgraph.c (cgraph_make_node_local): Use DECL_COMDAT_GROUP.
11703 2009-06-15 Aldy Hernandez <aldyh@redhat.com>
11705 * except.c (init_eh): Use BUILTINS_LOCATION when calling build_decl.
11707 2009-06-15 Aldy Hernandez <aldyh@redhat.com>
11709 * tree-eh.c (lower_try_finally_switch): Initialize tf_loc.
11711 2009-06-15 Rafael Avila de Espindola <espindola@google.com>
11713 * cgraphunit.c (cgraph_function_versioning,save_inline_function_body):
11714 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
11715 * cgraph.c (cgraph_create_virtual_clone): Use DECL_COMDAT_GROUP.
11716 * config/i386/i386.c (ix86_file_end): Compute DECL_COMDAT_GROUP.
11717 * dwarf2asm.c (dw2_force_const_mem): Update call to
11718 make_decl_one_only.
11719 * langhooks-def.h (lhd_comdat_group, LANG_HOOKS_COMDAT_GROUP): Remove.
11720 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_COMDAT_GROUP.
11721 * langhooks.c (lhd_comdat_group): Remove.
11722 * langhooks.h (lang_hooks_for_decls): Remove comdat_group.
11723 * tree.h (DECL_COMDAT_GROUP): New.
11724 (DECL_ONE_ONLY): Use DECL_COMDAT_GROUP.
11725 (tree_decl_with_vis): Add comdat_group. Remove one_only.
11726 (make_decl_one_only): Change signature.
11727 * varasm.c (get_emutls_init_templ_addr, emutls_decl): Update call to
11728 make_decl_one_only.
11729 (make_decl_one_only): Change signature.
11730 (default_elf_asm_named_section): Use DECL_COMDAT_GROUP.
11732 2009-06-15 Richard Guenther <rguenther@suse.de>
11734 PR middle-end/40439
11735 * tree.c (widest_int_cst_value): Fix bootstrap on 32bit HWI hosts.
11737 2009-06-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11739 * tree-ssa-math-opts.c: Remove extra divide.
11741 2009-06-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11743 * config/s390/s390.md ("bswap<mode>2"): Only available on z900.
11745 2009-06-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11747 * passes.c: Add bswap pass.
11748 * tree-pass.h: Add pass_optimize_bswap declaration.
11749 * tree-ssa-math-opts.c: Include diagnostics.h for print_gimple_stmt.
11750 Include rtl.h, expr.h and optabs.h for optab_handler check.
11751 (struct symbolic_number, pass_optimize_bswap): New definition.
11752 (do_shift_rotate, verify_symbolic_number_p): New functions.
11753 (find_bswap_1, find_bswap, execute_optimize_bswap): New functions.
11754 (gate_optimize_bswap): New function.
11755 * tree.c (widest_int_cst_value): New function.
11756 * tree.h (widest_int_cst_value): Prototype added.
11758 2009-06-14 Steven Bosscher <steven@gcc.gnu.org>
11760 * cfgcleanup.c (old_insns_match_p): Remove code to substitute
11761 REG_EQUAL/REG_EQUIV notes.
11763 2009-06-14 Richard Guenther <rguenther@suse.de>
11765 PR middle-end/40389
11766 * gimple.c (walk_stmt_load_store_addr_ops): The LHS of a call
11767 has its address taken if NRV was applied and it is addressable.
11768 * tree-ssa-structalias.c (get_constraint_for_address_of): New
11769 function split out from ...
11770 (get_constraint_for_1): ... here.
11771 (handle_rhs_call): Use it to mark the return slot escaped if
11772 it is addressable and NRV was applied.
11774 2009-06-13 Aldy Hernandez <aldyh@redhat.com>
11776 * config/rs6000/rs6000-protos.h (altivec_resolve_overloaded_builtin):
11777 Change first argument type to location_t.
11778 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Same.
11779 Do not set input_location.
11780 Use loc instead of input_location throughout.
11782 2009-06-13 Richard Guenther <rguenther@suse.de>
11784 PR tree-optimization/40421
11785 * tree-predcom.c (should_unroll_loop_p): Remove.
11786 (tree_predictive_commoning_loop): Use can_unroll_loop_p.
11788 2009-06-13 Michael Meissner <meissner@linux.vnet.ibm.com>
11790 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
11791 Add location argument.
11793 2009-06-13 Aldy Hernandez <aldyh@redhat.com>
11795 * config/alpha/alpha.c (alpha_build_builtin_va_list): Pass location to
11797 * config/s390/s390.c (s390_build_builtin_va_list): Same.
11798 (s390_gimplify_va_arg): Pass location to create_artificial_label.
11799 * config/spu/spu-protos.h: Add location to
11800 spu_resolve_overloaded_builtin.
11801 * config/spu/spu.c (spu_build_builtin_va_list): Pass location to
11802 spu_build_builtin_va_list.
11803 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Add location
11804 argument. Pass location to build_function_call_vec.
11805 * config/sh/sh.c (sh_build_builtin_va_list): Pass location to
11807 (emit_fpu_switch): Same.
11808 (sh_gimplify_va_arg_expr): Pass location to create_artificial_label.
11809 * config/xtensa/xtensa.c (xtensa_build_builtin_va_list): Pass location
11810 to build_decl and create_artificial_label.
11811 (xtensa_gimplify_va_arg_expr): Same.
11812 * config/stormy16/stormy16.c (xstormy16_build_builtin_va_list): Same.
11813 (xstormy16_gimplify_va_arg_expr): Same.
11814 * config/iq2000/iq2000.c (iq2000_expand_prologue): Same.
11815 * config/arm/arm.c (arm_build_builtin_va_list): Same.
11816 * config/mips/mips.c (mips_build_builtin_va_list): Same.
11817 (mips16_build_function_stub): Same.
11818 (mips16_build_call_stub): Same.
11820 2009-06-13 Richard Earnshaw <rearnsha@arm.com>
11823 * arm/constraints.md (Pa, Pb): New constraints.
11824 * arm/arm.md (thumb1_addsi3): Support more complex additions. Add a
11825 split pattern to deal with them.
11827 2009-06-13 Joerg Sonnenberger <joerg@britannica.bec.de>
11829 * doc/invoke.texi: Add missing option -Wp,OPTION in list,
11830 fix index entry for -Xpreprocessor.
11832 2009-06-12 Aldy Hernandez <aldyh@redhat.com>
11834 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
11835 Add location argument to build_decl call.
11836 * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Same.
11837 (rs6000_init_builtins): Same.
11838 (spe_init_builtins): Same.
11839 (rs6000_gimplify_va_arg): Add location argument to
11840 create_artificial_label call.
11842 2009-06-12 Steven Bosscher <steven@gcc.gnu.org>
11844 * timevar.def (TV_COMBINE_STACK_ADJUST): New timevar.
11845 * combine-stack-adj.c (pass_stack_adjustments): Use it.
11846 * Makefile.in: Fix GGC dependency for gcse.o.
11848 2009-06-12 Aldy Hernandez <aldyh@redhat.com>
11850 * tree-pretty-print.c (dump_generic_node): Dump column numbers.
11851 * gimple-pretty-print.c (dump_gimple_stmt): Same.
11852 * gimplify.c (gimplify_modify_expr): Set location for GIMPLE_ASSIGNs
11854 * c-parser.c (c_parser_binary_expression): Use current column while
11855 building binary operations.
11856 * common.opt (fshow-column): Enable by default.
11857 * tree-vrp.c (check_array_ref): Use warning_at.
11858 (check_array_bounds): Use location from call back if expr has no
11860 * tree.h: Add location argument to maybe_fold_*.
11861 * tree-ssa-ccp.c (ccp_fold): Pass location to maybe_fold_*.
11862 (maybe_fold_offset_to_array_ref): Add location argument and use it.
11863 (maybe_fold_offset_to_component_ref): Same.
11864 (maybe_fold_offset_to_reference): Same.
11865 (maybe_fold_offset_to_address): Same.
11866 (maybe_fold_stmt_indirect): Same.
11867 (maybe_fold_stmt_addition): Same.
11868 (fold_stmt_r): Pass location to maybe_fold_*.
11869 (fold_gimple_assign): Same.
11870 * c-tree.h: Add location argument to finish_decl,
11871 default_function_array_conversion, store_init_value.
11872 * c-decl.c (define_label): Use error_at.
11873 (c_make_fname_decl): Pass location to finish_decl.
11874 (finish_decl): New location argument.
11875 (build_compound_literal): Pass location to store_init_value.
11876 (grokdeclarator): Pass location to finish_decl.
11878 * c-typeck.c (array_to_pointer_conversion): New location argument.
11879 (function_to_pointer_conversion): Same.
11880 (default_function_array_conversion): Same.
11881 (parser_build_unary_op): Pass location to overflow_warning.
11882 (parser_build_binary_op): Same. Use warning_at.
11883 (build_unary_op): Pass location to array_to_pointer_conversion.
11884 (build_c_cast): Pass location to digest_init.
11885 (build_modify_expr): New location argument.
11886 (convert_for_assignment): Same.
11887 (store_init_value): Same.
11888 (digest_init): Same.
11889 (output_init_element): Pass location to digest_init and
11890 array_to_pointer_conversion.
11891 (c_finish_return): Pass location to convert_for_assignment.
11892 * gimplify.c (gimplify_conversion): Pass location to
11893 maybe_fold_offset_to_address.
11894 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Pass location
11895 to maybe_fold_stmt_addition.
11896 * c-omp.c (c_finish_omp_atomic): Pass new location to
11898 (c_finish_omp_for): Same.
11899 * c-common.c (overflow_warning): New argument.
11900 * c-common.h: New argument to build_modify_expr, overflow_warning.
11901 * c-parser.c (c_parser_declaration_or_fndef): Pass location to
11903 (c_parser_initializer): Pass location to
11904 default_function_array_conversion.
11905 (c_parser_initelt): Same.
11906 (c_parser_initval): Same.
11907 (c_parser_asm_operands): Same.
11908 (c_parser_expr_no_commas): Same. Pass location to build_modify_expr.
11909 (c_parser_conditional_expression): Same.
11910 (c_parser_binary_expression): Add location info to stack. Use it.
11911 (c_parser_unary_expression): Pass location to
11912 default_function_array_conversion, parser_build_unary_op,
11913 build_indirect_ref, c_parser_postfix_expression_after_primary.
11914 (c_parser_postfix_expression_after_primary): New location argument.
11916 (c_parser_expression_conv): Pass location to
11917 default_function_array_conversion.
11918 (c_parser_expr_list): Same.
11919 (c_parser_omp_atomic): Same.
11920 (c_parser_omp_for_loop): Same.
11921 * c-tree.h: (struct c_declarator): Add comment to id_loc.
11922 (build_array_declarator): New argument.
11923 * c-decl.c (build_array_declarator): Add location argument.
11924 (grokdeclarator): Set id_loc for cdk_array.
11925 * c-parser.c (c_parser_direct_declarator_inner): Pass location to
11926 build_array_declarator.
11927 * tree.c (build_omp_clause): Add location argument.
11928 * tree.h (OMP_CLAUSE_HAS_LOCATION): New macro.
11929 (OMP_CLAUSE_LOCATION): New macro.
11930 (struct tree_omp_clause): Add location field.
11931 (build_omp_clause): Add argument.
11932 * testsuite/gcc.dg/gomp/for-1.c: Fix column.
11933 * cp/pt.c (tsubst_omp_for_iterator): Pass location to
11935 * cp/parser.c (cp_parser_omp_var_list_no_open): Same.
11936 (cp_parser_omp_clause_collapse): Same.
11937 (cp_parser_omp_clause_default): Same.
11938 (cp_parser_omp_clause_if): Same.
11939 (cp_parser_omp_clause_nowait): Same.
11940 (cp_parser_omp_clause_num_threads): Same.
11941 (cp_parser_omp_clause_ordered): Same.
11942 (cp_parser_omp_clause_schedule): Same.
11943 (cp_parser_omp_clause_untied): Same.
11944 (cp_parser_omp_for_loop): Same.
11945 (cp_parser_omp_parallel): Pass location to c_split_parallel_clauses.
11946 * c-tree.h (c_start_case): Add location argument.
11947 (c_process_expr_stmt): Same.
11948 (c_finish_goto_*): Same.
11949 * tree-parloops.c (initialize_reductions): Pass location to
11951 (create_parallel_loop): Same.
11952 * fortran/trans-openmp.c (gfc_trans_omp_variable_list): Same.
11953 (gfc_trans_omp_reduction_list): Same.
11954 (gfc_trans_omp_clauses): Same.
11955 (gfc_trans_omp_do): Same.
11956 * c-typeck.c (c_finish_goto_label): Same.
11957 (c_finish_goto_ptr): New location argument.
11958 (c_start_case): Same.
11959 (emit_side_effect_warnings): Same.
11960 (c_process_expr_stmt): Same.
11961 (c_finish_stmt_expr): Same.
11962 (c_finish_omp_clauses): Use error_at instead of error.
11963 * gimplify.c (gimplify_adjust_omp_clauses_1): Pass location to
11965 * c-omp.c (c_split_parallel_clauses): New location argument.
11966 * tree-nested.c (convert_nonlocal_reference_stmt): Pass location
11967 to build_omp_clause.
11968 (convert_local_reference_stmt): Same.
11969 (convert_gimple_call): Same.
11970 * c-common.h (c_split_parallel_clauses): New argument.
11971 * c-parser.c (c_parser_statement_after_labels): Pass location to
11972 c_finish_goto_label.
11973 (c_parser_switch_statement): Pass location to c_start_case.
11974 (c_parser_for_statement): Pass location to c_finish_expr_stmt,
11975 and c_process_expr_stmt.
11976 (c_parser_omp_variable_list): Add location argument.
11977 (c_parser_omp_clause_collapse): Pass location to build_omp_clause.
11978 (c_parser_omp_clause_default): Same.
11979 (c_parser_omp_clause_if): Same.
11980 (c_parser_omp_clause_num_threads): Same.
11981 (-c_parser_omp_clause_ordered): Same.
11982 (c_parser_omp_clause_reduction): Pass location to
11983 c_parser_omp_variable_list.
11984 (c_parser_omp_clause_schedule): Pass location to build_omp_clause.
11985 (c_parser_omp_clause_untied): Same.
11986 (c_parser_omp_for_loop): Pass location to c_process_expr_stmt.
11987 (c_parser_omp_parallel): Pass location to c_split_parallel_clauses.
11989 * c-tree.h (check_for_loop_decls, undeclared_variable,
11990 build_component_ref, build_array_ref, build_external_ref,
11991 c_expr_sizeof_expr, c_expr_sizeof_type, parser_build_unary_op,
11992 build_conditional_expr, build_compound_expr, c_cast_expr,
11993 build_c_cast, build_asm_expr, c_end_compound_stmt, c_finish_stmt_expr,
11994 c_finish_return, c_finish_omp_parallel, c_finish_omp_task): New
11996 * c-semantics.c (build_stmt): Same.
11997 (build_case_label): Same.
11998 * c-decl.c (c_finish_incomplete_decl): Pass location on down.
11999 (undeclared_variable): New argument.
12000 (make_label): Same.
12001 (lookup_label): Pass location on down.
12002 (define_label): Same.
12003 (finish_decl): Same.
12004 (build_compound_literal): Same.
12005 (finish_struct): Same.
12006 (finish_function): Do not set location here.
12007 (check_for_loop_decls): New argument.
12008 * tree.c (save_expr): Set location.
12009 (build_empty_stmt): New argument.
12010 * tree.h (build_empty_stmt): New argument to build_empty_stmt.
12011 (CAN_HAVE_LOCATION_P): Make sure we have a non empty node.
12012 * builtins.c (gimplify_va_arg_expr): Use locations.
12013 (expand_builtin_sync_operation): Same.
12014 * c-typeck.c (build_component_ref): New argument.
12015 (build_array_ref): Same.
12016 (build_external_ref): Same.
12017 (c_expr_sizeof_expr): Same.
12018 (c_expr_sizeof_type): Same.
12019 (parser_build_unary_op): Same.
12020 (build_conditional_expr): Same.
12021 (build_compound_expr): Pass location on down.
12022 (build_compound_expr): New argument.
12023 (build_c_cast): Same.
12024 (c_cast_expr): Same.
12025 (build_asm_expr): Same.
12026 (c_finish_return): Same.
12027 (c_process_expr_stmt): Pass location on down.
12028 (c_finish_stmt_expr): New argument.
12029 (push_clenaup): Same.
12030 (c_finish_omp_parallel): Same.
12031 (c_finish_omp_task): Same.
12032 * gimplify.c (gimplify_call_expr): Pass location on down.
12033 * c-omp.c (c_finish_omp_master): New argument.
12034 (c_finish_omp_critical): Same.
12035 (c_finish_omp_ordered): Same.
12036 (c_finish_omp_barrier): Same.
12037 (-c_finish_omp_taskwait): Same.
12038 (c_finish_omp_atomic): Same.
12039 (c_finish_omp_flush): Same.
12040 * tree-inline.c (copy_tree_body_r): Pass location on down.
12041 (inline_forbidden_p): Remove use of input_location.
12042 * c-gimplify.c (c_build_bind_expr): New argument.
12043 * c-common.c (c_common_truthvalue_conversion): Pass location on down.
12044 (c_sizeof_or_alignof_type): New argument.
12045 (c_alignof_expr): Same.
12046 (build_va_arg): Same.
12047 (c_add_case_label): Same.
12048 * c-common.h (c_sizeof_or_alignof_type, c_alignof_expr,
12049 c_sizeof, c_alignof, build_va_arg, build_stmt, build_case_label,
12050 c_build_bind_expr, objc_build_selector_expr, objc_build_throw_stmt,
12051 c_finish_omp_master, c_finish_omp_critical, c_finish_omp_ordered,
12052 c_finish_omp_barrier, c_finish_omp_atomic, c_finish_omp_flush,
12053 c_finish_omp_taskwait, c_finish_omp_for, c_split_parallel_clauses):
12055 * stub-objc.c (objc_build_selector_expr): Same.
12056 (objc_build_throw_stmt): Same.
12057 * c-parser.c (c_parser_declaration_or_fndef): Pass location on down.
12058 (c_parser_initelt): Same.
12059 (c_parser_compound_statement): Same.
12060 (c_parser_compound_statement_nostart): Same.
12061 (c_parser_label): Same.
12062 (c_parser_statement_after_labels): Same.
12063 (c_parser_if_body): Same.
12064 (c_parser_else_body): Same.
12065 (c_parser_if_statement): Same.
12066 (c_parser_switch_statement): Same.
12067 (c_parser_while_statement): Same.
12068 (c_parser_do_statement): Same.
12069 (c_parser_for_statement): Same.
12070 (c_parser_asm_statement): Same.
12071 (c_parser_conditional_expression): Same.
12072 (c_parser_binary_expression): Same.
12073 (c_parser_cast_expression): Same.
12074 (c_parser_unary_expression): Same.
12075 (c_parser_sizeof_expression): Same.
12076 (c_parser_alignof_expression): Same.
12077 (c_parser_postfix_expression): Same.
12078 (c_parser_expression): Same.
12079 (c_parser_objc_receiver): Same.
12080 (c_parser_omp_variable_list): Same.
12081 (c_parser_omp_structured_block): Same.
12082 (c_parser_omp_atomic): New argument.
12083 (c_parser_omp_barrier): Same.
12084 (c_parser_omp_critical): Same.
12085 (c_parser_omp_flush): Pass location on down.
12086 (c_parser_omp_for_loop): New argument.
12087 (c_parser_omp_for): Same.
12088 (c_parser_omp_master): Same.
12089 (c_parser_omp_ordered): Same.
12090 (c_parser_omp_sections_scope): Same.
12091 (c_parser_omp_sections): Same.
12092 (c_parser_omp_parallel): Same.
12093 (c_parser_omp_single): Same.
12094 (c_parser_omp_task): Same.
12095 (c_parser_omp_taskwait): Pass location on down.
12096 (c_parser_omp_construct): Same.
12097 (c_parser_omp_threadprivate): Same.
12098 * dwarf2asm.c, targhooks.c, optabs.c, tree.c, tree.h, target.h,
12099 builtins.c, omp-low.c, cgraphunit.c, tree-call-cdce.c,
12100 tree-ssa-alias.c, gimple-low.c, c-tree.h, expr.c, tree-parloops.c,
12101 c-decl.c, tree-eh.c, langhooks.c, function.c, stor-layout.c,
12102 c-typeck.c, gimplify.c, c-pragma.c, expmed.c, except.c, coverage.c,
12103 emit-rtl.c, cfgexpand.c, tree-mudflap.c, varasm.c, tree-nested.c,
12104 rtl.h, tree-inline.c, tree-profile.c, c-common.c, c-common.h,
12105 tree-switch-conversion.c, tree-cfg.c, ipa-struct-reorg.c, c-parser.c,
12106 config/i386/i386.c, stmt.c:
12107 Add location argument to the following function definitions and/or
12108 function calls: build_decl, objcp_start_struct, objcp_finish_struct,
12109 start_struct, finish_struct, PUSH_FIELD, create_artificial_label,
12110 cp_make_fname_decl, pushtag, implicitly_declare, c_make_fname_decl,
12111 build_compound_literal, parser_xref_tag, resolve_overloaded_builtin,
12112 do_case, c_finish_bc_stmt, build_compound_literal,
12113 build_function_call.
12114 * c-decl.c (build_compound_literal): Add location argument.
12115 Make all diagnostic calls use location.
12116 (start_struct): Same.
12117 (finish_struct): Same.
12118 (start_enum): Same.
12119 (build_enumerator): Same.
12120 (start_function): Same.
12121 (grokdeclarator): Make all diagnostic calls use location.
12122 (store_parm_decls_oldstyle): Same.
12123 * c-typeck.c (build_function_call): Add location argument.
12124 Make all diagnostic calls use location.
12126 (c_finish_bc_stmt): Same.
12127 * tree-nested.c (get_trampoline_type): Add argument.
12128 Pass location to build_decl.
12129 (lookup_tramp_for_decl): Pass location to get_trampoline_type.
12130 * rtl.h (RTL_LOCATION): New.
12131 * c-common.c (c_add_case_label): Add location argument.
12132 Make all diagnostic calls use location.
12133 * c-common.h: Add location argument to make_fname_decl, do_case,
12134 c_add_case_label, build_function_call, resolve_overloaded_builtin.
12135 * c-parser.c (c_parser_enum_specifier): Rename ident_loc to enum_loc.
12136 Set it appropriately for every case. Pass enum_loc to start_enum
12137 call. Pass value_loc first to build_enumerator. Pass enum_loc to
12139 (c_parser_struct_or_union_specifier): Save location. Use it for
12140 start_struct, finish_struct, and parser_xref_tag.
12142 2009-06-12 Ian Lance Taylor <iant@google.com>
12144 * fold-const.c (fold_unary): Rename local variable and to and_expr.
12146 * c-opts.c (c_common_handle_option): For -Wc++-compat set
12147 cpp_opts->warn_cxx_operator_names.
12149 2009-06-12 Andrew Pinski <andrew_pinski@playstation.sony.com>
12152 * tree-ssa-sccvn.c (visit_reference_op_load): If vn_reference_lookup
12153 is returns NULL and OP is a VCE, look through the VCE.
12155 2009-06-12 Ian Lance Taylor <iant@google.com>
12158 * collect2.c (main): Use CONST_CAST2 in code inside #if
12159 LINK_ELIMINATE_DUPLICATE_LDIRECTORIES.
12161 2009-06-12 Joey Ye <joey.ye@intel.com>
12163 PR middle-end/39146
12164 * cfgexpand.c (get_decl_align_unit): Update
12165 max_used_stack_slot_alignment with align instead of
12166 stack_alignment_needed.
12168 * function.c (assign_stack_local_1): Update
12169 max_used_stack_slot_alignment with alignment_in_bits instead
12170 of stack_alignment_needed.
12171 (locate_and_pad_parm): Don't update max_used_stack_slot_alignment
12174 2009-06-12 Jakub Jelinek <jakub@redhat.com>
12176 * dwarf2out.c (last_var_location_insn): New variable.
12177 (dwarf2out_end_epilogue): Clear last_var_location_insn.
12178 (dwarf2out_var_location): Don't record anything after last real
12179 insn. Only change labels if there were any real instructions
12180 in between last note and this one, or if changed sections.
12182 2009-06-11 Richard Henderson <rth@redhat.com>
12184 * alpha.c (alpha_expand_prologue): Add a REF_CFA_REGISTER
12185 note when storing the frame pointer in a register.
12186 (FRP): Don't redefine to nothing for epilogue.
12187 (alpha_expand_epilogue): Mark register and sp restores.
12188 (unicosmk_gen_dsib): Don't mark weird frame pointer adjust.
12190 * config/alpha/alpha.c (alpha_emit_setcc): Fix test for
12191 when gen_lowpart is needed.
12193 2009-06-11 Richard Henderson <rth@redhat.com>
12195 * dwarf2out.c (def_cfa_1): Likewise for DW_CFA_cfa_offset.
12197 * dwarf2out.c (need_data_align_sf_opcode): New.
12198 (div_data_align): Move earlier.
12199 (def_cfa_1, reg_save): Use it.
12201 2009-06-11 H.J. Lu <hongjiu.lu@intel.com>
12203 * config/i386/i386.c (OPTION_MASK_ISA_CRC32_SET): New.
12204 (OPTION_MASK_ISA_CRC32_UNSET): Likewise.
12205 (ix86_handle_option): Handle OPT_mcrc32.
12206 (ix86_target_string): Add -mcrc32.
12207 (bdesc_args): Enable crc32 builtins with OPTION_MASK_ISA_CRC32.
12209 * config/i386/i386.h (TARGET_CRC32): New.
12211 * config/i386/i386.md (sse4_2_crc32<mode>): Also check TARGET_CRC32.
12212 (sse4_2_crc32di): Likewise.
12214 * config/i386/i386.opt (mcrc32): New.
12216 * doc/invoke.texi: Document -mcrc32.
12218 2009-06-11 Richard Henderson <rth@redhat.com>
12220 * common.opt (gdwarf-): Accept a version number.
12221 * doc/invoke.texi (gdwarf-): Update docs.
12222 * opth-gen.awk: Special case -gdwarf+ to OPT_gdwarfplus.
12223 * opts.c (common_handle_option) [OPT_gdwarf_]: Verify dwarf
12224 version level, and record it.
12226 * dwarf2.h (DW_CIE_VERSION): Remove.
12227 * dwarf2out.c (DWARF_VERSION): Remove.
12228 (add_fde_cfi): Skip DW_CFA_set_loc addition for dwarf3.
12229 (output_call_frame_info): Use CIE version 3 for dwarf3,
12230 or if the return register column is out of range for version 1.
12231 (dwarf_stack_op_name): Add all dwarf3 values.
12232 (DEBUG_PUBTYPES_SECTION): New.
12233 (size_of_die) [dw_val_class_die_ref]: Handle DW_FORM_ref_addr
12234 encoding change for dwarf3.
12235 (output_die) [dw_val_class_die_ref]: Likewise.
12236 (output_compilation_unit_header): Emit correct version for dwarf3.
12237 (output_line_info): Likewise.
12238 (output_pubnames): Update for DWARF_VERSION removal.
12239 (output_aranges): Likewise.
12240 (gen_subprogram_die): Emit DW_OP_call_frame_cfa if emitting dwarf3.
12241 (dwarf2out_init): Don't ifdef DEBUG_PUBTYPES_SECTION.
12242 (dwarf2out_finish): Likewise.
12244 2009-06-11 David Daney <ddaney@caviumnetworks.com>
12246 * system.h (gcc_assert, gcc_unreachable): Revert accidental commit
12249 2009-06-11 David Daney <ddaney@caviumnetworks.com>
12252 * doc/extend.texi ( __builtin_unreachable): Document new builtin.
12253 * builtins.c (expand_builtin_unreachable): New function.
12254 (expand_builtin): Handle BUILT_IN_UNREACHABLE case.
12255 * builtins.def (BUILT_IN_UNREACHABLE): Add new builtin.
12256 * cfgcleanup.c (try_optimize_cfg): Delete empty blocks with no
12258 * cfgrtl.c (rtl_verify_flow_info): Handle empty blocks when
12259 searching for missing barriers.
12261 2009-06-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
12263 * config/darwin.h (LINK_COMMAND_SPEC): Adjust spec to link libcov
12264 when -fprofile-generate* was passed.
12265 * config/darwin9.h (LINK_COMMAND_SPEC): Likewise.
12267 2009-06-11 Anthony Green <green@moxielogic.com>
12269 * config/moxie/moxie.md: Define length attribute for all instructions.
12271 (*b<cond:code>): Support limited branch ranges for new PC-relative
12272 branch instructions.
12273 * config/moxie/moxie.h (HAS_LONG_UNCOND_BRANCH): Define.
12275 2009-06-11 Jakub Jelinek <jakub@redhat.com>
12277 * config/i386/i386.c (min_insn_size): Use get_attr_length
12278 for normal insns other than TYPE_MULTI, TYPE_OTHER and TYPE_FCMP.
12279 For __asm return 0.
12281 * config/i386/i386.c (ix86_pad_returns): Use emit_jump_insn_before
12282 instead of emit_insn_before.
12284 2009-06-10 Ian Lance Taylor <iant@google.com>
12287 * graphite.c (add_conditions_to_domain): Change SWITCH_EXPR to
12290 2009-06-10 Revital Eres <eres@il.ibm.com>
12292 * passes.c (init_optimization_passes): Reschedule
12293 predictive-commoning pass before complete unroll pass.
12295 2009-06-10 Martin Jambor <mjambor@suse.cz>
12297 * cgraph.c (cgraph_node_can_be_local_p): New function.
12298 (cgraph_make_node_local): New function.
12299 * cgraph.h (cgraph_node_can_be_local_p): Declare.
12300 (cgraph_make_node_local): Declare.
12302 2009-06-10 Nathan Froyd <froydnj@codesourcery.com>
12304 * tree.h (tree_base): Add packed_flag and user_align fields.
12305 Decrease size of spare field.
12306 (TYPE_USER_ALIGN): Use user_align from tree_base.
12307 (DECL_USER_ALIGN): Likewise.
12308 (TYPE_PACKED): Use packed_flag from tree_base.
12309 (DECL_PACKED): Likewise.
12310 (tree_type): Delete packed_flag and user_align fields. Widen
12311 precision field. Widen mode field and shuffle fields to align
12312 mode on an 8-bit boundary.
12313 (tree_decl_common): Delete decl_flag_1 and user_align fields.
12314 Renumber decl_flag_* fields. Fix comments. Widen
12315 decl_common_unused field.
12316 (DECL_HAS_VALUE_EXPR_P): Adjust for renumbering of decl_flag_* fields.
12317 (DECL_EXTERNAL): Likewise.
12318 (DECL_BIT_FIELD): Likewise.
12319 (DECL_NONADDRESSABLE_P): Likewise.
12320 (TYPE_DECL_SUPRESS_DEBUG): Likewise.
12321 * config/arm/arm-modes.def (XImode): Make it an INT_MODE.
12323 2009-06-10 Ian Lance Taylor <iant@google.com>
12325 * vec.h (DEF_VEC_ALLOC_I): Use DEF_VEC_NONALLOC_FUNCS_I.
12326 (DEF_VEC_ALLOC_P): Use DEF_VEC_NONALLOC_FUNCS_P.
12327 (DEF_VEC_ALLOC_O): Use DEF_VEC_NONALLOC_FUNCS_O.
12328 (DEF_VEC_ALLOC_FUNC_P): Only define VEC_OP (T,A,alloc).
12329 (DEF_VEC_NONALLOC_FUNCS_P): New macro, broken out of old
12330 DEF_VEC_ALLOC_FUNC_P.
12331 (DEF_VEC_ALLOC_FUNC_O): Only define VEC_OP (T,A,alloc).
12332 (DEF_VEC_NONALLOC_FUNCS_O): New macro, broken out of old
12333 DEF_VEC_ALLOC_FUNC_O.
12334 (DEF_VEC_ALLOC_FUNC_I): Only define VEC_OP (T,A,alloc).
12335 (DEF_VEC_NONALLOC_FUNCS_I): New macro, broken out of old
12336 DEF_VEC_ALLOC_FUNC_I.
12337 (vec_stack_p_reserve, vec_stack_p_reserve_exact): Declare.
12338 (vec_stack_p_reserve_exact_1): Declare.
12339 (vec_stack_o_reserve, vec_stack_o_reserve_exact): Declare.
12340 (vec_stack_free): Declare.
12341 (VEC_stack_alloc): Define.
12342 (DEF_VEC_ALLOC_P_STACK, DEF_VEC_ALLOC_FUNC_P_STACK): Define.
12343 (DEF_VEC_ALLOC_O_STACK, DEF_VEC_ALLOC_FUNC_O_STACK): Define.
12344 (DEF_VEC_ALLOC_I_STACK, DEF_VEC_ALLOC_FUNC_I_STACK): Define.
12345 * vec.c (void_p): New type. Call DEF_VEC_P and DEF_VEC_ALLOC_P
12347 (stack_vecs): New static variable.
12348 (vec_stack_p_reserve_exact_1): New function.
12349 (vec_stack_o_reserve_1): New static function.
12350 (vec_stack_p_reserve, vec_stack_p_reserve_exact): New functions.
12351 (vec_stack_o_reserve, vec_stack_o_reserve_exact): New functions.
12352 (vec_stack_free): New function.
12353 * df-scan.c (df_ref): Use DEF_VEC_P and DEF_VEC_ALLOC_P_STACK.
12354 (VEC_df_ref_stack_alloc): Define.
12355 (df_mw_hardreg_ptr): New type. Use DEF_VEC_P and
12356 DEF_VEC_ALLOC_P_STACK.
12357 (VEC_df_mw_hardreg_ptr_stack_alloc): Define.
12358 (struct df_collection_rec): Change _vec fields to VEC. Remove
12360 (df_free_collection_rec): Adjust for new fields.
12361 (df_insn_rescan): Use new df_collection_rec fields.
12362 (df_notes_rescan, df_canonize_collection_rec): Likewise.
12363 (df_ref_create_structure, df_ref_record): Likewise.
12364 (df_get_conditional_uses, df_get_call_refs): Likewise.
12365 (df_insn_refs_collect, df_bb_refs_collect): Likewise.
12366 (df_bb_refs_record, df_record_entry_block_defs): Likewise.
12367 (df_record_exit_block_uses, df_bb_verify): Likewise.
12368 (df_swap_refs): Change ref_vec parameter to VEC. Change all callers.
12369 (df_sort_and_compress_refs): Change ref_vec parameter to VEC.
12370 Remove count parameter. Change return type to void. Change all
12372 (df_sort_and_compress_mws): Change mw_vec parameter to VEC.
12373 Remove count parameter. Change return type to void. Change all
12375 (df_install_refs): Change old_vec parameter to VEC. Remove count
12376 parameter. Change all callers.
12377 (df_install_mws): Change old_vec parameter to VEC. Remove count
12378 parameter. Change all callers.
12379 (df_refs_verify): Change new_rec parameter to VEC. Change call
12381 (df_mws_verify): Likewise.
12383 2009-06-10 Alexandre Oliva <aoliva@redhat.com>
12385 * gcc.c (compare_files): Cast munmap argumento to caddr_t.
12387 2009-06-10 H.J. Lu <hongjiu.lu@intel.com>
12389 * doc/extend.texi: Add description for __builtin_ia32_crc32di.
12391 2009-06-10 Anthony Green <green@moxielogic.com>
12393 * config/moxie/crti.asm: New file.
12394 * config/moxie/crtn.asm: New file.
12395 * config/moxie/moxie.c: New file.
12396 * config/moxie/moxie.h: New file.
12397 * config/moxie/sfp-machine.h: New file.
12398 * config/moxie/moxie-protos.h: New file.
12399 * config/moxie/t-moxie: Created.
12400 * config/moxie/t-moxie-softfp: Created.
12401 * config/moxie/moxie.md: Created.
12402 * config/moxie/constraints.md: Created.
12403 * config.gcc: Add moxie support.
12404 * doc/md.texi (Machine Constraints): Add moxie constraints.
12405 * doc/contrib.texi (Contributors): Mention moxie port.
12406 * doc/install.texi (Specific): Mention the moxie port.
12408 2009-06-09 Ian Lance Taylor <iant@google.com>
12410 * system.h (HAVE_DESIGNATED_INITIALIZERS): Don't define if
12411 compiling with C++.
12412 * optabs.c (optab_table): Only use designated initializers if
12413 HAVE_DESIGNATED_INITIALIZERS is defined.
12414 (convert_optab_table): Likewise.
12415 (init_optabs): Always call init_insn_codes if
12416 HAVE_DESIGNATED_INITIALIZERS is not defined.
12418 2009-06-09 Ian Lance Taylor <iant@google.com>
12420 * targhooks.c (default_builtin_vectorized_function): Change fn
12421 parameter to unsigned int.
12422 (default_builtin_vectorized_conversion): Change code parameter to
12424 (default_builtin_reciprocal): Change fn parameter to unsigned int.
12425 * targhooks.h: Update declarations.
12426 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Change code
12427 parameter to unsigned int.
12429 * c-typeck.c (comptypes_check_enum_int): New static function.
12430 (comptypes_internal): Add enum_and_int_p parameter. Change all
12432 (comp_target_types): Add location parameter. Change all callers.
12433 (tagged_types_tu_compatible_p): Add enum_and_int_p parameter.
12434 Change all callers.
12435 (function_types_compatible_p, type_lists_compatible_p): Likewise.
12436 (build_conditional_expr): Add colon_loc parameter. Change all
12438 (convert_for_assignment): Add location parameter. Change all callers.
12439 * c-parser.c (c_parser_conditional_expression): Pass location of
12440 colon to build_conditional_expr.
12441 * c-tree.h (build_conditional_expr): Update declaration.
12443 2009-06-09 Sebastian Pop <sebastian.pop@amd.com>
12445 * graphite.c: Revert previous patch.
12447 2009-06-09 Sebastian Pop <sebastian.pop@amd.com>
12450 * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
12452 2009-06-09 Ghassan Shobaki <ghassan.shobaki@amd.com>
12454 * tree-ssa-loop-prefetch.c
12455 (loop_prefetch_arrays): Fixed a portability problem in printf format
12458 2009-06-09 Martin Jambor <mjambor@suse.cz>
12460 PR tree-optimization/40351
12461 * tree-sra.c (propagate_subacesses_accross_link): Check that a
12462 refrence to a potential artifical subaccess can be constructed.
12464 2009-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
12466 * config/sh/sh-protos.h (sh_optimization_options): Declare.
12467 (sh_override_options): Likewise.
12468 * config/sh/sh.c: Include params.h.
12469 (sh_optimization_options): New.
12470 (sh_override_options): Likewise.
12471 * config/sh/sh.c (OPTIMIZATION_OPTIONS): Use sh_optimization_options.
12472 (OVERRIDE_OPTIONS): Use sh_override_options.
12474 2009-06-08 Jakub Jelinek <jakub@redhat.com>
12476 * dwarf2out.c (emit_cfa_remember): New variable.
12477 (add_fde_cfi): If emit_cfa_remember, recurse to add
12478 DW_CFA_remember_state first.
12479 (dwarf2out_begin_epilogue): Don't add_fde_cfi DW_CFA_remember_state,
12480 instead just set emit_cfa_remember.
12482 2009-06-08 Jan Hubicka <jh@suse.cz>
12485 * dwarf2out.c (dwarf2out_abstract_function): Free decl_loc_table.
12487 2009-06-08 Jan Hubicka <jh@suse.cz>
12489 PR middle-end/39834
12490 * cgraphunit.c (save_inline_function_body): Do not copy transform
12491 hooks for saved inline bodies.
12492 * ipa-passes.c (do_per_function): Do not add the hoks multiple times
12493 for given function.
12495 2009-06-08 Adam Nemet <anemet@caviumnetworks.com>
12497 * jump.c (returnjump_p): Handle delayed branches. Add missing
12500 2009-06-08 Jan Hubicka <jh@suse.cz>
12502 PR middle-end/40102
12503 * cgraph.c (cgraph_create_edge_including_clones): Also asume that the
12504 original node might've been modified.
12505 * tree-inline.c (copy_bb): Do not assume that all clones are the same.
12507 2009-06-08 Jakub Jelinek <jakub@redhat.com>
12509 * tree-object-size.c (addr_object_size): Add OSI argument.
12510 Handle also INDIRECT_REF with SSA_NAME inside of it as base address.
12511 (compute_builtin_object_size, expr_object_size): Adjust callers.
12512 (plus_stmt_object_size): Call addr_object_size instead of
12513 compute_builtin_object_size.
12515 2009-06-08 Ghassan Shobaki <ghassan.shobaki@amd.com>
12516 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
12518 * tree-ssa-loop-prefetch.c
12519 (gather_memory_references): Introduced a counter for the number of
12521 (anything_to_prefetch_p): Introduced a counter for the number of
12523 (is_loop_prefetching_profitable): New function with a cost model
12525 (loop_prefetch_arrays): Use the new cost model to determine if
12526 prefetching is profitable.
12527 * params.def (MIN_INSN_TO_PREFETCH_RATIO,
12528 PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
12529 * params.h (MIN_INSN_TO_PREFETCH_RATIO,
12530 PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
12531 * doc/invoke.texi (MIN_INSN_TO_PREFETCT_RATIO,
12532 PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
12534 2009-06-08 Michael Matz <matz@suse.de>
12537 * cfgexpand.c (set_rtl): Store place also in DECL_RTL, if all
12538 partitions use the same.
12539 (expand_one_var): Deal with DECL_RTL sometimes begin set also
12540 for basevars of SSA_NAMEs.
12541 (expand_used_vars): Reset TREE_USED for basevars of SSA_NAMEs,
12542 to not expand them twice.
12543 (gimple_expand_cfg): Clear DECL_RTL for those decls that have
12546 2009-06-08 Alexandre Oliva <aoliva@redhat.com>
12548 * common.opt (fcompare-debug=, fcompare-debug-second): New.
12549 (fdump-final-insns=, gtoggle): New.
12550 * doc/invoke.texi: Document them.
12551 * final.c (rest_of_clean_state): Dump final insn stream.
12552 * gcc.c (invoke_as): Hook in -fcompare-debug.
12553 (static_spec_functions): Add compare-debug-dump-opt,
12554 compare-debug-self-opt and compare-debug-auxbase-opt.
12555 (compare_debug, compare_debug_second, compare_debug_opt): New.
12556 (switches_debug_check, n_switches_debug_check): New.
12557 (debug_auxbase_opt, debug_check_temp_file): New.
12558 (process_command): Handle -fno-compare-debug, -fcompare-debug and
12560 (do_self_spec): Handle arguments after switches.
12561 (do_spec_1): Add .gk extension to temp file basenames for compare.
12562 (check_live_switch): Take SWITCH_IGNORE into account, and earlier.
12563 (cc1_options): Use it instead of normal auxbase computation for
12564 the second compare-debug compilation.
12565 (compare_files): New.
12566 (main): Set up and implement compare debug mode.
12567 (compare_debug_dump_opt_spec_function): New.
12568 (compare_debug_self_opt_spec_function): New.
12569 (compare_debug_auxbase_opt_spec_function): New.
12570 * toplev.c (process_options): Handle flag_gtoggle,
12571 flag_dump_final_insns.
12572 * coverage.c (coverage_begin_output): Don't overwrite .gcno file
12573 during -fcompare-debug-second compilation.
12575 2009-06-07 Ian Lance Taylor <iant@google.com>
12577 * dwarf2.h (enum dwarf_location_atom): Add INTERNAL_DW_OP_tls_addr.
12578 * dwarf2out.c (INTERNAL_DW_OP_tls_addr): Don't #define.
12580 * c-common.c (c_do_switch_warnings): Don't exit early for -Wswitch
12581 with no default node. Change warning with %H to warning_at.
12582 Don't clear warn_switch around case checking.
12583 * doc/invoke.texi (Warning Options): Clarify distinction between
12584 -Wswitch and -Wswitch-enum.
12586 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
12588 * tree-pass.h (TODO_update_ssa_any): Document internal use only.
12590 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
12592 * gbl-ctors.h: Add header guard.
12594 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
12596 * tree-flow.h (make_value_handle, set_value_handle, sort_vuses,
12597 sort_vuses_heap, vn_lookup_or_add, vn_lookup_or_add_with_stmt,
12598 vn_lookup_or_add_with_vuses, vn_add, vn_add_with_vuses,
12599 vn_lookup_with_stmt, vn_lookup, vn_lookup_with_vuses): Remove
12600 prototypes for removed functions.
12601 (expressions_equal_p): Move to ...
12602 * tree-ssa-sccvn.h: ... here and ...
12603 * matrix-reorg.c: ... adjust includes.
12605 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
12607 * ipa-struct-reorg.c (do_reorg_1): Fix whitespace in dump output.
12609 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
12611 * c-decl.c (finish_decl): Use bool for variable was_incomplete.
12612 (finish_function): Remove erroneous whitespace.
12614 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
12616 * tree-cfg.c (gimple_merge_blocks): Commentary typo fix.
12617 (verify_stmts): Print statement who's gimple_bb is set to a wrong BB
12619 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
12621 * errors.c (internal_error): Commentary typo fix.
12622 * gimple-iterator.c (gsi_insert_seq_on_edge): Ditto.
12623 * tree-ssa-pre.c: Ditto.
12625 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
12627 * basic-block.h (ENTRY_BLOCK, EXIT_BLOCK): Document that neither of
12628 them is supposed to hold actual statements.
12630 2009-06-06 Ian Lance Taylor <iant@google.com>
12632 * doc/extend.texi (Attribute Syntax): Document that C++ labels on
12633 empty statements can now have attributes.
12635 2009-06-05 Shujing Zhao <pearly.zhao@oracle.com>
12637 * config/mips/mips.c: Use REG_P and CONST_INT_P where applicable.
12638 * config/mips/mips.md: Ditto.
12640 2009-06-05 Nathan Froyd <froydnj@codesourcery.com>
12642 * config/rs6000/eabi.asm (__eabi_convert): Don't define if
12644 (__eabi_uconvert): Likewise.
12646 2009-06-05 Nathan Froyd <froydnj@codesourcery.com>
12648 * config/rs6000/ppc-asm.h: Protect auto-host.h inclusion and
12649 CFI_* definitions with IN_GCC.
12651 2009-06-05 David Edelsohn <edelsohn@gnu.org>
12653 * xcoffout.h (xcoffout_source_line): Update prototype.
12655 2009-06-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12657 * builtins.c (do_mpc_ckconv, do_mpc_arg1): Use
12658 mpc_realref/mpc_imagref instead of MPC_RE/MPC_IM.
12660 2009-06-05 Jakub Jelinek <jakub@redhat.com>
12662 PR middle-end/40340
12663 * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
12664 inlined_function_outer_scope_p blocks for artificial inlines
12666 * tree.c (tree_nonartificial_location): Rewrite using
12667 block_nonartificial_location.
12669 2009-06-05 Revital Eres <eres@il.ibm.com>
12670 Leehod Baruch <leehod@il.ibm.com>
12672 * expr.c (expand_assignment): Expand MISALIGNED_INDIRECT_REF.
12673 (expand_expr_real_1): Remove comment.
12674 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
12675 Vectorize misaligned access when the target supports it.
12676 (vect_supportable_dr_alignment): Check for unaligned access support.
12677 * tree-vect-stmts.c (vectorizable_store): Generate misaligned store
12680 2009-06-05 Julian Brown <julian@codesourcery.com>
12682 * config/arm/ieee754-df.S (cmpdf2): Avoid writing below SP.
12683 * config/arm/ieee754-sf.S (cmpsf2): Likewise.
12685 2009-06-05 Richard Guenther <rguenther@suse.de>
12688 * dwarf2out.c (dwarf2out_begin_function): Mark discriminator
12689 as possibly unused.
12691 2009-06-05 Jakub Jelinek <jakub@redhat.com>
12693 * config/s390/s390.c (global_not_special_regno_p): New static inline.
12694 (save_gprs): Don't tell unwinder when a global register is saved.
12695 (s390_emit_epilogue): Emit needed epilogue unwind info.
12697 2009-06-05 Alexandre Oliva <aoliva@redhat.com>
12699 * dwarf2out.c (deferred_asm_name): New.
12700 (add_name_and_src_coords_attributes): Defer creation of
12701 DW_AT_MIPS_linkage_name attribute if DECL_ASSEMBLER_NAME was not
12703 (move_linkage_attr): New.
12704 (dwarf2out_finish): Revisit deferrals and emit attributes at the
12707 2009-06-05 Alexandre Oliva <aoliva@redhat.com>
12709 * tree-nested.c (finalize_nesting_tree_1): Declare the
12710 frame_decl in the binding tree.
12712 2009-06-04 Cary Coutant <ccoutant@google.com>
12714 * basic-block.h (struct basic_block_def): Add discriminator field.
12715 * dbxout.c (dbxout_source_line): Add new parameter. Change all
12717 * debug.c (do_nothing_debug_hooks): Add additional entry.
12718 (debug_nothing_int_charstar_int): New function.
12719 * debug.h (struct gcc_debug_hooks): Add parameter to source_line hook.
12720 (debug_nothing_int_charstar_int): New declaration.
12721 * dwarf2out.c (dwarf2out_source_line): Add new parameter. Write
12722 discriminator value in .loc directive.
12723 * final.c (last_discriminator): New variable.
12724 (discriminator): New variable.
12725 (final_start_function): Initialize above variables, pass current
12726 discriminator to debug hook.
12727 (notice_source_line): Check for discriminator change.
12728 * gimple-pretty-print.c (dump_bb_header): Print discriminator value.
12729 * sdbout.c (sdbout_source_line): New parameter.
12730 * tree-cfg.c (struct locus_discrim_map): New structure type.
12731 (discriminator_per_locus): New hash table.
12732 (build_gimple_cfg): Allocate and free discriminator hash table.
12733 (make_edges): Call assign_discriminator.
12734 (locus_map_hash): New function.
12735 (locus_map_eq): New function.
12736 (next_discriminator_for_locus): New function.
12737 (same_line_p): New function.
12738 (assign_discriminator): New function.
12739 (make_cond_expr_edges): Call assign_discriminator.
12740 (make_gimple_switch_edges): Likewise.
12741 (first_non_label_stmt): New function.
12742 * vmsdbgout.c (vmsdbgout_source_line): Add new parameter. Change
12744 * xcoffout.c (xcoffout_source_line): Add new parameter.
12746 * configure.ac (gcc_cv_as_discriminator): New configury check for
12747 gas support for discriminator.
12748 * configure: Regenerate.
12749 * config.in: Regenerate.
12751 2009-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12753 * config/arm/arm.c (thumb2_legitimate_index_p): Initialize
12754 val after checking for integers.
12756 2009-06-04 Uros Bizjak <ubizjak@gmail.com>
12758 * config/i386/i386.h (X86_64_MS_REGPARM_MAX): Rename from
12760 (REGPARM_MAX): Use X86_64_MS_REGPARM_MAX.
12761 (X86_64_MS_SSE_REGPARM_MAX): Rename from X64_SSE_REGPARM_MAX.
12762 (SSE_REGPARM_MAX): Use X86_64_MS_SSE_REGPARM_MAX.
12763 * config/i386/i386.c: Use X86_64_MS_REGPARM_MAX instead of
12764 X64_REGPARM_MAX. Use X86_64_MS_SSE_REGPARM_MAX instead of
12765 X64_SSE_REGPARM_MAX.
12766 * config/i386/i386.md: Use X86_64_MS_SSE_REGPARM_MAX instead of
12767 X64_SSE_REGPARM_MAX.
12769 2009-06-04 Alexandre Oliva <aoliva@redhat.com>
12771 * gcc.c (report_times_to_file): New.
12772 (execute): Implement it.
12773 (process_command): Support -time=.
12774 * doc/invoke.texi: Document it.
12776 2009-06-04 Alexandre Oliva <aoliva@redhat.com>
12778 * tree-ssa-live.c (remove_unused_scope_block_p): Keep variables
12779 that have value exprs.
12781 2009-06-04 Alexandre Oliva <aoliva@redhat.com>
12783 * dwarf2asm.c (dw2_force_const_mem): Defer creation of
12784 declarations for constants until...
12785 (dw2_output_indirect_constant_1): ... this point.
12787 2009-06-04 Richard Earnshaw <rearnsha@arm.com>
12790 * arm.md (arm_addsi3): Don't try to split an add with an
12791 eliminable register until after reload has completed.
12793 2009-06-03 Ian Lance Taylor <iant@google.com>
12795 * dummy-checksum.c (executable_checksum): Use EXPORTED_CONST.
12796 * genattrtab.c (write_length_unit_log): Likewise.
12797 * genchecksum.c (dosum): Likewise.
12798 * gengtype.c (write_rtx_next): Likewise.
12799 (finish_root_table, write_roots): Likewise.
12800 * gimple.c (gimple_ops_offset_): Likewise.
12801 * tree-nomudflap.c (gt_ggc_r_gt_tree_mudflap_h): Likewise.
12802 * config/arc/arc.c (arc_attribute_table): Likewise.
12803 * config/arm/arm.c (arm_attribute_table): Likewise.
12804 * config/avr/avr.c (avr_attribute_table): Likewise.
12805 * config/crx/crx.c (crx_attribute_table): Likewise.
12806 * config/m32r/m32r.c (m32r_attribute_table): Likewise.
12807 * config/m68hc11/m68hc11.c (m68hc11_attribute_table): Likewise.
12808 * config/mcore/mcore.c (mcore_attribute_table): Likewise.
12809 * config/rs6000/rs6000.c (rs6000_attribute_table): Likewise.
12810 * config/sh/sh.c (sh_attribute_table): Likewise.
12811 * config/sparc/sparc.c (sparc_attribute_table): Likewise.
12812 * config/spu/spu.c (spu_attribute_table): Likewise.
12813 * config/v850/v850.c (v850_attribute_table): Likewise.
12815 * config/alpha/alpha.c (vms_attribute_table): Make static.
12816 * config/bfin/bfin.c (bfin_attribute_table): Likewise.
12817 * config/h8300/h8300.c (h8300_attribute_table): Likewise.
12818 * config/mips/mips.c (mips_attribute_table): Likewise.
12820 * Makefile.in (dummy-checksum.o): Depend upon $(CONFIG_H) and
12822 (cc1-checksum.o): Likewise.
12824 2009-06-03 Steve Ellcey <sje@cup.hp.com>
12826 * config/ia64/vect.md (*movv2sf_internal): Handle big endian case.
12828 2009-06-03 Jakub Jelinek <jakub@redhat.com>
12830 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Return generated
12831 insn if it is changing sp. Use gen_add3_insn instead of
12832 conditionally gen_addsi3 and gen_adddi3.
12833 (offset_below_red_zone_p): New static inline function.
12834 (rs6000_emit_epilogue): Emit needed epilogue unwind info.
12835 Use gen_add3_insn instead of conditionally gen_addsi3 and gen_adddi3.
12836 * config/rs6000/ppc-asm.h: Include auto-host.h.
12837 (CFI_STARTPROC, CFI_ENDPROC, CFI_DEF_CFA_REGISTER, CFI_OFFSET,
12838 CFI_RESTORE): Define.
12839 * config/rs6000/crtresxgpr.asm: Add unwind info.
12840 * config/rs6000/crtresxfpr.asm: Likewise.
12841 * config/rs6000/crtresgpr.asm: Likewise.
12842 * config/rs6000/crtresfpr.asm: Likewise.
12843 * config/rs6000/crtsavgpr.asm: Likewise.
12844 * config/rs6000/crtsavfpr.asm: Likewise.
12846 * dwarf2out.c (output_cfi_directive): Pass 1 instead of 0 to second
12847 argument of DWARF2_FRAME_REG_OUT macros.
12849 2009-06-03 Julian Brown <julian@codesourcery.com>
12851 * config/arm/arm.c (arm_hard_regno_mode_ok): Permit values of four
12852 words or less (including TImode) in core registers.
12854 2009-06-03 Richard Guenther <rguenther@suse.de>
12856 PR middle-end/40328
12857 * fold-const.c (fold_convert): Fold the build COMPLEX_EXPR.
12859 2009-06-03 Andrey Belevantsev <abel@ispras.ru>
12861 * statistics.c (statistics_counter_event): Do not record event
12862 in pass dump if its number == -1.
12863 (curr_statistics_hash): Add assert that we never get passes
12864 with static number == -1.
12866 2009-06-03 Richard Guenther <rguenther@suse.de>
12867 Andrey Belevantsev <abel@ispras.ru>
12869 * cfgexpand.c (discover_nonconstant_array_refs_r): Make only
12870 non-BLKmode arrays addressable.
12872 2009-06-03 Maxim Kuvyrkov <maxim@codesourcery.com>
12874 * config/m68k/linux.h (HAVE_GAS_BALIGN_AND_P2ALIGN): Move to ...
12875 * config/m68k/m68k.h: ... here.
12877 2009-06-03 Martin Jambor <mjambor@suse.cz>
12879 PR tree-optimization/40323
12880 * ipa-prop.c (get_ssa_def_if_simple_copy): Break if not single
12883 2009-06-03 Richard Guenther <rguenther@suse.de>
12885 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
12888 2009-06-03 Shujing Zhao <pearly.zhao@oracle.com>
12890 * config/sh/predicates.md: Use REG_P, MEM_P, CONST_INT_P, LABEL_P,
12891 JUMP_P, CALL_P, NONJUMP_INSN_P, NOTE_P, BARRIER_P and
12892 JUMP_TABLE_DATA_P where applicable.
12893 * config/sh/sh.c: Ditto.
12894 * config/sh/sh.h: Ditto.
12895 * config/sh/sh.md: Ditto.
12896 * config/sh/symbian.c: Ditto.
12898 2009-06-03 Uros Bizjak <ubizjak@gmail.com>
12900 * config/i386/driver-i386.c (describe_cache): Optimize
12901 concatenation of strings. Use snprintf instead of sprintf.
12902 (host_detect_local_cpu): Ditto. Ignore -march and -mtune for native
12903 target when not compiling with GCC.
12905 2009-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
12907 * config/sh/sh.c: Revert last change.
12908 (sh_expand_epilogue): Emit a blockage insn before the frame
12909 pointer adjustment unconditionally.
12911 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
12913 * config/pa/pa-hpux.h (LINK_SPEC): Remove "%<fwhole-program".
12914 * config/pa/pa-hpux10.h (LINK_SPEC): Likewise.
12915 * config/pa/pa-hpux11.h (LINK_SPEC): Likewise.
12916 * gcc.c (set_collect_gcc_options): Don't add -fwhole-program
12917 to COLLECT_GCC_OPTIONS.
12919 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
12921 * collect2.c (target_system_root): New variable.
12922 (main): Handle --sysroot=.
12923 (ignore_library): Strip the sysroot from the library path.
12925 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
12927 * Makefile.in (COLLECT2_OBJS): Add collect2-aix.o.
12928 (collect2.o): Depend on collect2-aix.h.
12929 (collect2-aix.o): New rule.
12930 * collect2-aix.h: New file.
12931 * collect2-aix.c: Likewise.
12932 * collect2.c: Include collect2-aix.h. Don't undefine
12933 OBJECT_FORMAT_COFF if CROSS_AIX_SUPPORT is defined.
12934 Guard native includes with #ifndef CROSS_DIRECTORY_STRUCTURE.
12935 Use TARGET_AIX_VERSION instead of _AIX51.
12936 * config/rs6000/aix43.h (TARGET_AIX_VERSION): Define.
12937 * config/rs6000/aix51.h (TARGET_AIX_VERSION): Likewise.
12938 * config/rs6000/aix52.h (TARGET_AIX_VERSION): Likewise.
12939 * config/rs6000/aix53.h (TARGET_AIX_VERSION): Likewise.
12940 * config/rs6000/aix61.h (TARGET_AIX_VERSION): Likewise.
12942 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
12944 * collect2.c (ignore_library): Avoid premature post-increment
12945 and null deference.
12947 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
12949 * Makefile.in (libgcc.mvars): Add TARGET_SYSTEM_ROOT.
12950 * config/rs6000/aix.h (LINK_SYSCALLS_SPEC): Add %R to the
12951 !CROSS_DIRECTORY_STRUCTURE alternative and use it for
12952 CROSS_DIRECTORY_STRUCTURE too.
12953 (LINK_LIBG_SPEC): Likewise.
12954 (LIB_SPEC): Add %R to sysroot paths.
12955 * config/rs6000/aix43.h (CPP_SPEC): Add %R to sysroot paths.
12956 (CPLUSPLUS_CPP_SPEC, LIB_SPEC): Likewise.
12957 * config/rs6000/aix51.h: As for aix43.h.
12958 * config/rs6000/aix52.h: Likewise.
12959 * config/rs6000/aix53.h: Likewise.
12960 * config/rs6000/aix61.h: Likewise.
12961 * config/rs6000/t-aix52 (SHLIB_LINK): Add $(TARGET_SYSTEM_ROOT)
12962 to the beginning of sysroot paths.
12964 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
12966 * print_rtl (print_rtx): Don't print modes in EXPR_LISTs and
12967 INSN_LISTs that are out of the REG_NOTE range.
12969 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
12971 * loop-unroll.c (struct iv_to_split): Add pointer to next.
12972 (struct var_to_expand): Likewise.
12973 (struct opt_info): Add head and tail for linked lists of the above.
12974 (analyze_insn_to_expand_var): Initialize next.
12975 (analyze_iv_to_split_insn): Likewise.
12976 (analyze_insns_in_loop): Create linked lists.
12977 (allocate_basic_variable): Simplify for use without hash table.
12978 (insert_var_expansion_initialization): Likewise, make it type-safer.
12979 (combine_var_copies_in_loop_exit): Likewise.
12980 (apply_opt_in_copies): Walk lists rather than hash tables.
12981 (release_var_copies): Simplified and inlined by hand into...
12982 (free_opt_info): ... this function.
12984 2009-06-02 Richard Guenther <rguenther@suse.de>
12986 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
12989 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
12991 * cfgexpand.c (gimple_expand_cfg): Discard the source location
12992 only for builtins that are not overridden.
12994 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
12996 * gengtype.c (adjust_field_rtx_def): Add NOTE_INSN_DELETED_LABEL's
12999 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
13001 * df-core.c (df_ref_debug): Honor -fdump-noaddr.
13003 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
13005 * combine.c (move_deaths): Compare LUIDs within the same BB only.
13007 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
13009 * common.opt (fdump-unnumbered-links): New.
13010 * doc/invoke.texi (-fdump-unnumbered-links): Document it.
13011 * print-rtl.c (flag_dump_unnumbered_links): New.
13012 (print_rtx): Test it.
13014 2009-06-02 Richard Earnshaw <rearnsha@arm.com>
13016 * arm.c (arm_get_frame_offsets): Prefer using r3 for padding a
13017 push/pop multiple to 8-byte alignment.
13019 2009-06-01 Jakub Jelinek <jakub@redhat.com>
13021 * config/i386/i386.c (queued_cfa_restores): New static variable.
13022 (ix86_add_cfa_restore_note, ix86_add_queued_cfa_restore_notes): New
13024 (pro_epilogue_adjust_stack): Call ix86_add_queued_cfa_restore_notes.
13025 (ix86_emit_restore_reg_using_pop): Add RED_OFFSET argument.
13026 Set RTX_FRAME_RELATED_P immediately after adding a REG_CFA_* note.
13027 Call ix86_add_cfa_restore_note instead of adding REG_CFA_OFFSET
13028 note unconditionally.
13029 (ix86_emit_restore_regs_using_mov): Likewise.
13030 (ix86_emit_restore_sse_regs_using_mov): Likewise.
13031 (ix86_emit_restore_regs_using_pop): Add RED_OFFSET argument, pass
13032 it through to ix86_emit_restore_reg_using_pop.
13033 (ix86_emit_leave): Add RED_OFFSET argument. Call
13034 ix86_add_queued_cfa_restore_notes. Call ix86_add_cfa_restore_note
13035 instead of adding REG_CFA_OFFSET note unconditionally.
13036 (ix86_expand_epilogue): Compute RED_OFFSET, pass it down to
13037 the above functions. Call ix86_add_queued_cfa_restore_notes when
13040 * dwarf2out.c (dwarf2out_cfi_label): Add FORCE argument, if true,
13041 force output of the label even for dwarf2out_do_cfi_asm.
13042 (add_fde_cfi): If -g2 and above and cfi might change CFA,
13043 force creation of CFI label and chain DW_CFA_set_loc jumping to it
13044 for convert_cfa_to_fb_loc_list. Adjust other dwarf2out_cfi_label
13046 (dwarf2out_stack_adjust, dwarf2out_frame_debug,
13047 dwarf2out_begin_epilogue, dwarf2out_frame_debug_restore_state): Adjust
13048 dwarf2out_cfi_label callers.
13049 * tree.h (dwarf2out_cfi_label): Adjust prototype.
13050 * config/arm/arm.c (thumb_pushpop, thumb1_output_function_prologue):
13051 Adjust dwarf2out_cfi_label callers.
13052 * config/vax/vax.c (vax_output_function_prologue): Likewise.
13054 * config/i386/i386.h (struct machine_cfa_state,
13055 struct machine_function): Guard with ifndef USED_FOR_TARGET
13056 instead of not IN_LIBGCC2 and not in IN_TARGET_LIBS.
13059 * emutls.c (__emutls_get_address): Change arr->size to mean number
13060 of allocated arr->data entries instead of # of slots + 1.
13062 PR middle-end/40316
13063 * recog.c (peep2_reinit_state): New function.
13064 (peephole2_init_state): Use it at the end of a basic block and also
13065 when seeing a RTX_FRAME_RELATED_P insn.
13067 2009-06-01 Steve Ellcey <sje@cup.hp.com>
13069 * ia64.md (floatdirf2, fix_truncrfdi, floatunsdirf,
13070 fixuns_truncrfdi2): New.
13071 (fix_truncxfdi2_alts, fixuns_truncxfdi2_alts,
13072 *nmaddsf4_alts, *nmadddf4_alts, *nmadddf4_truncsf_alts,
13073 *mulxf3_alts, *mulxf3_truncsf_alts, *mulxf3_truncdf_alts,
13074 *maddxf4_alts, *maddxf4_alts_truncsf, *maddxf4_alts_truncdf,
13075 *nmaddxf4_alts, *nmaddxf4_truncsf_alts, *nmaddxf4_truncdf_alts,
13076 *recip_approx): Remove.
13077 (divsi3 modsi3, udivsi3, umodsi3, divsi3_internal, divdi3,
13078 moddi3, udivdi3, umoddi3, divdi3_internal_lat, divdi3_internal_thr,
13079 divsf3, sqrtsf2, divdf3, sqrtdf2, divxf3, sqrtxf2): Modify and
13081 * div.md (fix_truncrfdi2_alts, fixuns_truncrfdi2_alt,
13084 2009-06-01 Ian Lance Taylor <iant@google.com>
13086 * attribs.c (register_attribute): Use CONST_CAST.
13087 * collect2.c (main): Use CONST_CAST2.
13088 (scan_prog_file): Likewise.
13089 * gcc.c (process_command, main): Likewise.
13090 * toplev.c (toplev_main): Likewise.
13092 * c-typeck.c (handle_warn_cast_qual): New static function,
13093 partially broken out of build_c_cast.
13094 (build_c_cast): Call handle_warn_cast_qual.
13095 * doc/invoke.texi (Warning Options): Document new effect of
13098 2009-06-01 Aldy Hernandez <aldyh@redhat.com>
13100 * diagnostic.c (diagnostic_build_prefix): Always print columns.
13101 (diagnostic_report_current_module): Print columns.
13102 * common.opt (flag_show_column): Enable by default.
13104 2009-06-01 Luis Machado <luisgpm@br.ibm.com>
13106 * alias.c (find_base_term): Check for NULL term before returning.
13108 2009-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
13110 Revert due to PR40320:
13111 2009-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
13112 * calls.c (emit_library_call_value_1): Don't force_operand for move
13115 2009-06-01 Olivier Hainque <hainque@adacore.com>
13116 Eric Botcazou <ebotcazou@adacore.com>
13118 * tree.h (CONSTRUCTOR_BITFIELD_P): True if NODE, a FIELD_DECL, is
13119 to be processed as a bitfield for constructor output purposes.
13120 * output.h (initializer_constant_valid_for_bitfield_p): Declare
13122 * varasm.c (oc_local_state): New type, output_constructor
13123 local state to support communication with helpers.
13124 (oc_outer_state): New type, output_constructor outer state of
13125 relevance in recursive calls.
13126 (output_constructor_array_range): New output_constructor helper,
13127 extracted code for an array range element.
13128 (output_constructor_regular_field): New output_constructor helper,
13129 extracted code for an element that is not a bitfield.
13130 (output_constructor_bitfield): New output_constructor helper,
13131 extracted code for a bitfield element. Accept an OUTER state
13132 argument for recursive processing. Recurse on record or array
13133 CONSTRUCTOR values, possibly past noop conversions.
13134 (initializer_constant_valid_for_bitfield_p): New predicate. Whether
13135 VALUE is a valid constant-valued expression for use in a static
13136 bit-field initializer.
13137 (output_constructor): Rework to use helpers. Accept and honor an
13138 OUTER state argument for recursive calls. Return total size. Be
13139 prepared for nested constructors initializing bitfields.
13140 (output_constant): Feed OUTER in calls to output_constructor.
13142 2009-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
13144 * calls.c (emit_library_call_value_1): Don't force_operand for move
13147 2009-06-01 Nick Clifton <nickc@redhat.com>
13149 * doc/invoke.texi (IA-64 Options): Fix typo.
13151 2009-06-01 Ira Rosen <irar@il.ibm.com>
13153 PR tree-optimization/39129
13154 * tree-vect-loop-manip.c (conservative_cost_threshold): Change the
13156 (vect_do_peeling_for_loop_bound): Use
13157 LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
13158 LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
13159 (vect_loop_versioning): Likewise.
13160 (vect_create_cond_for_alias_checks): Fix indentation.
13161 * tree-vectorizer.h (struct _loop_vec_info): Fix indentation of the
13163 (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT): Define.
13164 (LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Likewise.
13165 * tree-vect-loop.c (vect_analyze_loop_form): Change "too many BBs" to
13166 "control flow in loop".
13167 (vect_estimate_min_profitable_iters): Use
13168 LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
13169 LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
13170 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
13171 (vect_create_data_ref_ptr): Don't mention array dimension in printing.
13172 * tree-vect-stmts.c (vectorizable_store): Replace the check that the
13173 statement belongs to a group of strided accesses with the exact code
13175 (vectorizable_load): Likewise.
13176 * tree-vect-slp.c (vect_analyze_slp_instance): Spell out "basic block".
13177 (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
13179 2009-06-01 Gerald Pfeifer <gerald@pfeifer.com>
13181 * config/freebsd-stdint.h: New file.
13182 * config.gcc (*-*-freebsd): Set use_gcc_stdint=wrap.
13183 Add freebsd-stdint.h to tm_file.
13185 2009-06-01 Richard Earnshaw <rearnsha@arm.com>
13187 * arm/thumb2.md (thumb2_zero_extendhidi2): New insn and split.
13188 (thumb2_extendhidi2): Likewise.
13190 2009-05-31 Ian Lance Taylor <iant@google.com>
13192 * regstat.c (regstat_n_sets_and_refs): Remove duplicate definition.
13194 2009-05-31 Ian Lance Taylor <iant@google.com>
13196 * Makefile.in (except.o): Depend upon gt-except.h, not gt-$(EXCEPT_H).
13197 (ipa-cp.o): Depend upon $(FIBHEAP_H) and $(PARAMS_H).
13198 (ipa-reference.o): Depend upon gt-ipa-reference.h.
13200 2009-05-31 Jason Merrill <jason@redhat.com>
13202 * tree-pretty-print.c (print_call_name): Take the callee, not the
13203 call itself. Make non-static. Use dump_function_name for functions.
13204 (dump_generic_node): Adjust.
13205 * diagnostic.h: Declare print_call_name.
13206 * gimple-pretty-print.c (dump_gimple_call): Use it.
13208 2009-05-31 Kaz Kojima <kkojima@gcc.gnu.org>
13210 * config/sh/sh.md (ashldi3_std): New define_expand.
13213 2009-05-31 Kaz Kojima <kkojima@gcc.gnu.org>
13216 * config/sh/sh.c: Include debug.h.
13217 (sh_expand_epilogue): Emit a blockage insn before the frame
13218 pointer adjustment also when dwarf2out_do_frame returns true.
13220 2009-05-31 Richard Earnshaw <rearnsha@arm.com>
13222 * arm/thumb2.md (thumb2_extendsidi2): Add a split sub-pattern.
13223 (thumb2_extendqidi2): New pattern.
13225 2009-05-31 Ira Rosen <irar@il.ibm.com>
13227 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
13228 mark phis for renaming.
13229 * tree-vectorizer.c (vect_memsyms_to_rename): Remove.
13230 (vectorize_loops): Don't allocate and free vect_memsyms_to_rename.
13231 Call mark_sym_for_renaming.
13232 * tree-vectorizer.h (vect_memsyms_to_rename): Remove.
13233 * tree-vect-loop.c (vect_transform_loop): Remove
13234 vect_memsyms_to_rename initialization and a call to
13235 mark_set_for_renaming.
13237 2009-05-31 Jakub Jelinek <jakub@redhat.com>
13239 PR middle-end/40304
13240 * config/i386/i386.c (pro_epilogue_adjust_stack): Mark insns
13241 frame related even if !set_cfa && style < 0.
13243 2009-05-30 Kai Tietz <kai.tietz@onevision.com>
13245 * config/i386/mingw-tls.c: New file.
13246 * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Add mingw-tls.c file.
13247 * gthr-win32.h (MINGW32_SUPPORTS_MT_EH): Define it for targets
13248 defining _WIN32 but not __CYGWIN__.
13250 2009-05-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13252 * configure.ac: Add MPC support.
13254 * config.in, configure: Regenerate.
13256 2009-05-29 Richard Henderson <rth@redhat.com>
13258 * cfgcleanup.c (try_crossjump_to_edge): Only skip past
13259 NOTE_INSN_BASIC_BLOCK.
13260 * cfglayout.c (duplicate_insn_chain): Copy epilogue insn marks.
13261 Duplicate NOTE_INSN_EPILOGUE_BEG notes.
13262 * cfgrtl.c (can_delete_note_p): Allow NOTE_INSN_EPILOGUE_BEG
13264 * dwarf2out.c (struct cfa_loc): Change indirect field to bitfield,
13266 (add_cfi): Disable check redefining cfa away from drap.
13267 (lookup_cfa_1): Add remember argument; handle remember/restore.
13268 (lookup_cfa): Pass remember argument.
13269 (cfa_remember): New.
13270 (compute_barrier_args_size_1): Remove sibcall check.
13271 (dwarf2out_frame_debug_def_cfa): New.
13272 (dwarf2out_frame_debug_adjust_cfa): New.
13273 (dwarf2out_frame_debug_cfa_offset): New.
13274 (dwarf2out_frame_debug_cfa_register): New.
13275 (dwarf2out_frame_debug_cfa_restore): New.
13276 (dwarf2out_frame_debug): Handle REG_CFA_* notes.
13277 (dwarf2out_begin_epilogue): New.
13278 (dwarf2out_frame_debug_restore_state): New.
13279 (dw_cfi_oprnd1_desc): Handle DW_CFA_remember_state,
13280 DW_CFA_restore_state.
13281 (output_cfi_directive): Likewise.
13282 (convert_cfa_to_fb_loc_list): Likewise.
13283 (dw_cfi_oprnd1_desc): Handle DW_CFA_restore.
13284 * dwarf2out.h: Update.
13285 * emit-rtl.c (try_split): Don't split RTX_FRAME_RELATED_P.
13286 (copy_insn_1): Early out for null.
13287 * final.c (final_scan_insn): Call dwarf2out_begin_epilogue
13288 and dwarf2out_frame_debug_restore_state.
13289 * function.c (prologue, epilogue, sibcall_epilogue): Remove.
13290 (prologue_insn_hash, epilogue_insn_hash): New.
13291 (free_after_compilation): Adjust freeing accordingly.
13292 (record_insns): Create hash table if needed; push insns into
13293 hash instead of array.
13294 (maybe_copy_epilogue_insn): New.
13295 (contains): Search hash table instead of array.
13296 (sibcall_epilogue_contains): Remove.
13297 (thread_prologue_and_epilogue_insns): Split eh_return insns
13298 and mark them as epilogues.
13299 (reposition_prologue_and_epilogue_notes): Rewrite epilogue
13300 scanning in terms of basic blocks.
13301 * insn-notes.def (CFA_RESTORE_STATE): New.
13302 * jump.c (returnjump_p_1): Accept EH_RETURN.
13303 (eh_returnjump_p_1, eh_returnjump_p): New.
13304 * reg-notes.def (CFA_DEF_CFA, CFA_ADJUST_CFA, CFA_OFFSET,
13305 CFA_REGISTER, CFA_RESTORE): New.
13306 * rtl.def (EH_RETURN): New.
13307 * rtl.h (eh_returnjump_p, maybe_copy_epilogue_insn): Declare.
13309 * config/bfin/bfin.md (UNSPEC_VOLATILE_EH_RETURN): Remove.
13310 (eh_return_internal): Use eh_return rtx; split w/ epilogue.
13312 * config/i386/i386.c (gen_push): Update cfa state.
13313 (pro_epilogue_adjust_stack): Add set_cfa argument. When true,
13314 add a CFA_ADJUST_CFA note.
13315 (ix86_dwarf_handle_frame_unspec): Remove.
13316 (ix86_expand_prologue): Update cfa state.
13317 (ix86_emit_restore_reg_using_pop): New.
13318 (ix86_emit_restore_regs_using_pop): New.
13319 (ix86_emit_leave): New.
13320 (ix86_emit_restore_regs_using_mov): Add CFA_RESTORE notes.
13321 (ix86_expand_epilogue): Add notes for unwinding the epilogue.
13322 * config/i386/i386.h (struct machine_cfa_state): New.
13323 (ix86_cfa_state): New.
13324 * config/i386/i386.md (UNSPEC_EH_RETURN): Remove.
13325 (eh_return_internal): Merge from eh_return_<mode>,
13326 use eh_return rtx, split w/ epilogue.
13328 2009-05-29 Ian Lance Taylor <iant@google.com>
13330 * builtins.c (validate_gimple_arglist): Don't use va_arg with
13332 * calls.c (emit_library_call_value_1): Likewise.
13334 * c-typeck.c (c_build_va_arg): New function.
13335 * c-tree.h (c_build_va_arg): Declare.
13336 * c-parser.c (c_parser_postfix_expression): Call c_build_va_arg
13337 instead of build_va_arg.
13339 2009-05-29 Eric Botcazou <ebotcazou@adacore.com>
13341 * tree-ssa-loop-ivopts.c (strip_offset_1) <MULT_EXPR>: New case.
13342 (force_expr_to_var_cost) <NEGATE_EXPR>: Likewise.
13343 (ptr_difference_cost): Use affine combinations to compute it.
13344 (difference_cost): Likewise.
13345 (get_computation_cost_at): Compute more accurate cost for addresses
13346 if the ratio is a multiplier allowed in addresses.
13347 For non-addresses, consider that an additional offset or symbol is
13350 2009-05-29 Jakub Jelinek <jakub@redhat.com>
13352 * config/i386/i386.c (ix86_decompose_address): Avoid useless
13353 0 displacement. Add 0 displacement if base is %[er]bp or %r13.
13355 * config/i386/i386.md (prefix_data16, prefix_rep): Set to 0 for
13356 TYPE_SSE{MULADD,4ARG,IADD1,CVT1} by default.
13357 (prefix_rex): For UNIT_MMX don't imply the prefix by default
13359 (prefix_extra): Default to 2 for TYPE_SSE{MULADD,4ARG} and
13360 to 1 for TYPE_SSE{IADD1,CVT1}.
13361 (prefix_vex_imm8): Removed.
13362 (length_vex): Only pass 1 as second argument to
13363 ix86_attr_length_vex_default if prefix_extra is 0.
13364 (modrm): For TYPE_INCDEC only set to 0 if not TARGET_64BIT.
13365 (length): For prefix vex computation use length_immediate
13366 attribute instead of prefix_vex_imm8.
13367 (cmpqi_ext_3_insn, cmpqi_ext_3_insn_rex64,
13368 addqi_ext_1, addqi_ext_1_rex64, *testqi_ext_0, andqi_ext_0,
13369 *andqi_ext_0_cc, *iorqi_ext_0, *xorqi_ext_0, *xorqi_cc_ext_1,
13370 *xorqi_cc_ext_1_rex64): Override modrm attribute to 1.
13371 (extendsidi2_rex64, extendhidi2, extendqidi2, extendhisi2,
13372 *extendhisi2_zext, extendqihi2, extendqisi2, *extendqisi2_zext): Emit
13373 a space in between the operands.
13374 (*anddi_1_rex64, *andsi_1): Likewise. Override prefix_rex to 1
13375 if one operand is 0xff and the other one si, di, bp or sp.
13376 (*andhi_1): Override prefix_rex to 1 if one operand is 0xff and the
13377 other one si, di, bp or sp.
13378 (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Add mode attribute.
13379 (*ffssi_1, *ffsdi_1, ctzsi2, ctzdi2): Add
13380 type and mode attributes.
13381 (*bsr, *bsr_rex64, *bsrhi): Add type attribute.
13382 (*cmpfp_i_mixed, *cmpfp_iu_mixed): For TYPE_SSECOMI, clear
13383 prefix_rep attribute and set prefix_data16 attribute iff MODE_DF.
13384 (*cmpfp_i_sse, *cmpfp_iu_sse): Clear prefix_rep attribute and set
13385 prefix_data16 attribute iff MODE_DF.
13386 (*movsi_1): For TYPE_SSEMOV MODE_SI set prefix_data16 attribute.
13387 (fix_trunc<mode>di_sse): Set prefix_rex attribute.
13388 (*adddi_4_rex64, *addsi_4): Use const128_operand instead of
13389 constm128_operand in length_immediate computation.
13390 (*addhi_4): Likewise. Fix mode attribute to MODE_HI.
13391 (anddi_1_rex64): Use movzbl/movzwl instead of movzbq/movzwq.
13392 (*avx_ashlti3, sse2_ashlti3, *avx_lshrti3, sse2_lshrti3): Set
13393 length_immediate attribute to 1.
13394 (x86_fnstsw_1, x86_fnstcw_1, x86_fldcw_1): Fix length attribute.
13395 (*movdi_1_rex64): Override prefix_rex or prefix_data16 attributes
13396 for certain alternatives.
13397 (*movdf_nointeger, *movdf_integer_rex64, *movdf_integer): Override
13398 prefix_data16 attribute if MODE_V1DF.
13399 (*avx_setcc<mode>, *sse_setcc<mode>, *sse5_setcc<mode>): Set
13400 length_immediate to 1.
13401 (set_got_rex64, set_rip_rex64): Remove length attribute, set
13402 length_address to 4, set mode attribute to MODE_DI.
13403 (set_got_offset_rex64): Likewise. Set length_immediate to 0.
13404 (fxam<mode>2_i387): Set length attribute to 4.
13405 (*prefetch_sse, *prefetch_sse_rex, *prefetch_3dnow,
13406 *prefetch_3dnow_rex): Override length_address attribute.
13407 (sse4_2_crc32<mode>): Override prefix_data16 and prefix_rex
13409 * config/i386/predicates.md (ext_QIreg_nomode_operand): New predicate.
13410 (constm128_operand): Removed.
13411 * config/i386/i386.c (memory_address_length): For
13412 disp && !index && !base in 64-bit mode account for SIB byte if
13413 print_operand_address can't optimize disp32 into disp32(%rip)
13414 and UNSPEC doesn't imply (%rip) addressing. Add 1 to length
13415 for fs: or gs: segment.
13416 (ix86_attr_length_immediate_default): When checking if shortform
13417 is possible, truncate immediate to the length of the non-shortened
13419 (ix86_attr_length_address_default): Ignore MEM_P operands
13421 (ix86_attr_length_vex_default): Only check for DImode on
13422 GENERAL_REG_P operands.
13423 * config/i386/sse.md (<sse>_comi, <sse>_ucomi): Clear
13424 prefix_rep attribute, set prefix_data16 attribute iff MODE_DF.
13425 (sse_cvttps2pi): Clear prefix_rep attribute.
13426 (sse2_cvttps2dq, *sse2_cvtpd2dq, sse2_cvtps2pd): Clear prefix_data16
13428 (*sse2_cvttpd2dq): Don't clear prefix_rep attribute.
13429 (*avx_ashr<mode>3, ashr<mode>3, *avx_lshr<mode>3, lshr<mode>3,
13430 *avx_ashl<mode>3, ashl<mode>3): Set length_immediate attribute to 1
13431 iff operand 2 is const_int_operand.
13432 (*vec_dupv4si, avx_shufpd256_1, *avx_shufpd_<mode>,
13433 sse2_shufpd_<mode>): Set length_immediate attribute to 1.
13434 (sse2_pshufd_1): Likewise. Set prefix attribute to maybe_vex
13436 (sse2_pshuflw_1, sse2_pshufhw_1): Set length_immediate to 1 and clear
13438 (sse2_unpckhpd, sse2_unpcklpd, sse2_storehpd, *vec_concatv2df): Set
13439 prefix_data16 attribute for movlpd and movhpd instructions.
13440 (sse2_loadhpd, sse2_loadlpd, sse2_movsd): Likewise. Override
13441 length_immediate for shufpd instruction.
13442 (sse2_movntsi, sse3_lddqu): Clear prefix_data16 attribute.
13443 (avx_cmpp<avxmodesuffixf2c><mode>3,
13444 avx_cmps<ssemodesuffixf2c><mode>3, *avx_maskcmp<mode>3,
13445 <sse>_maskcmp<mode>3, <sse>_vmmaskcmp<mode>3,
13446 avx_shufps256_1, *avx_shufps_<mode>, sse_shufps_<mode>,
13447 *vec_dupv4sf_avx, *vec_dupv4sf): Set length_immediate attribute to 1.
13448 (*avx_cvtsi2ssq, *avx_cvtsi2sdq): Set length_vex attribute to 4.
13449 (sse_cvtsi2ssq, sse2_cvtsi2sdq): Set prefix_rex attribute to 1.
13450 (sse2_cvtpi2pd, sse_loadlps, sse2_storelpd): Override
13451 prefix_data16 attribute for the first alternative to 1.
13452 (*avx_loadlps): Override length_immediate for the first alternative.
13453 (*vec_concatv2sf_avx): Override length_immediate and prefix_extra
13454 attributes for second alternative.
13455 (*vec_concatv2sf_sse4_1): Override length_immediate and
13456 prefix_data16 attributes for second alternative.
13457 (*vec_setv4sf_avx, *avx_insertps, vec_extract_lo_<mode>,
13458 vec_extract_hi_<mode>, vec_extract_lo_v16hi,
13459 vec_extract_hi_v16hi, vec_extract_lo_v32qi,
13460 vec_extract_hi_v32qi): Set prefix_extra and length_immediate to 1.
13461 (*vec_setv4sf_sse4_1, sse4_1_insertps, *sse4_1_extractps): Set
13462 prefix_data16 and length_immediate to 1.
13463 (*avx_mulv2siv2di3, *avx_mulv4si3, sse4_2_gtv2di3): Set prefix_extra
13465 (*avx_<code><mode>3, *avx_eq<mode>3, *avx_gt<mode>3): Set
13466 prefix_extra attribute for variants that don't have 0f prefix alone.
13467 (*avx_pinsr<ssevecsize>): Likewise. Set length_immediate to 1.
13468 (*sse4_1_pinsrb, *sse2_pinsrw, *sse4_1_pinsrd, *sse4_1_pextrb,
13469 *sse4_1_pextrb_memory, *sse2_pextrw, *sse4_1_pextrw_memory,
13470 *sse4_1_pextrd): Set length_immediate to 1.
13471 (*sse4_1_pinsrd): Likewise. Set prefix_extra to 1.
13472 (*sse4_1_pinsrq, *sse4_1_pextrq): Set prefix_rex and length_immediate
13474 (*vec_extractv2di_1_rex64_avx, *vec_extractv2di_1_rex64,
13475 *vec_extractv2di_1_avx, *vec_extractv2di_1_sse2): Override
13476 length_immediate to 1 for second alternative.
13477 (*vec_concatv2si_avx, *vec_concatv2di_rex64_avx): Override
13478 prefix_extra and length_immediate attributes for the first
13480 (vec_concatv2si_sse4_1): Override length_immediate to 1 for the
13482 (*vec_concatv2di_rex64_sse4_1): Likewise. Override prefix_rex
13483 to 1 for the first and third alternative.
13484 (*vec_concatv2di_rex64_sse): Override prefix_rex to 1 for the second
13486 (*sse2_maskmovdqu, *sse2_maskmovdqu_rex64): Override length_vex
13488 (*sse_sfence, sse2_mfence, sse2_lfence): Override length_address
13490 (*avx_phaddwv8hi3, *avx_phadddv4si3, *avx_phaddswv8hi3,
13491 *avx_phsubwv8hi3, *avx_phsubdv4si3, *avx_phsubswv8hi,
13492 *avx_pmaddubsw128, *avx_pmulhrswv8hi3, *avx_pshufbv16qi3,
13493 *avx_psign<mode>3): Set prefix_extra attribute to 1.
13494 (ssse3_phaddwv4hi3, ssse3_phadddv2si3, ssse3_phaddswv4hi3,
13495 ssse3_phsubwv4hi3, ssse3_phsubdv2si3, ssse3_phsubswv4hi3,
13496 ssse3_pmaddubsw, *ssse3_pmulhrswv4hi, ssse3_pshufbv8qi3,
13497 ssse3_psign<mode>3): Override prefix_rex attribute.
13498 (*avx_palignrti): Override prefix_extra and length_immediate to 1.
13499 (ssse3_palignrti): Override length_immediate to 1.
13500 (ssse3_palignrdi): Override length_immediate to 1, override
13501 prefix_rex attribute.
13502 (abs<mode>2): Override prefix_rep to 0, override prefix_rex attribute.
13503 (sse4a_extrqi): Override length_immediate to 2.
13504 (sse4a_insertqi): Likewise. Override prefix_data16 to 0.
13505 (sse4a_insertq): Override prefix_data16 to 0.
13506 (avx_blendp<avxmodesuffixf2c><avxmodesuffix>,
13507 avx_blendvp<avxmodesuffixf2c><avxmodesuffix>,
13508 avx_dpp<avxmodesuffixf2c><avxmodesuffix>, *avx_mpsadbw,
13509 *avx_pblendvb, *avx_pblendw, avx_roundp<avxmodesuffixf2c>256,
13510 avx_rounds<avxmodesuffixf2c>256): Override prefix_extra
13511 and length_immediate to 1.
13512 (sse4_1_blendp<ssemodesuffixf2c>, sse4_1_dpp<ssemodesuffixf2c>,
13513 sse4_2_pcmpestr, sse4_2_pcmpestri, sse4_2_pcmpestrm,
13514 sse4_2_pcmpestr_cconly, sse4_2_pcmpistr, sse4_2_pcmpistri,
13515 sse4_2_pcmpistrm, sse4_2_pcmpistr_cconly): Override prefix_data16
13516 and length_immediate to 1.
13517 (sse4_1_blendvp<ssemodesuffixf2c>): Override prefix_data16 to 1.
13518 (sse4_1_mpsadbw, sse4_1_pblendw): Override length_immediate to 1.
13519 (*avx_packusdw, avx_vtestp<avxmodesuffixf2c><avxmodesuffix>,
13520 avx_ptest256): Override prefix_extra to 1.
13521 (sse4_1_roundp<ssemodesuffixf2c>, sse4_1_rounds<ssemodesuffixf2c>):
13522 Override prefix_data16 and length_immediate to 1.
13523 (sse5_pperm_zero_v16qi_v8hi, sse5_pperm_sign_v16qi_v8hi,
13524 sse5_pperm_zero_v8hi_v4si, sse5_pperm_sign_v8hi_v4si,
13525 sse5_pperm_zero_v4si_v2di, sse5_pperm_sign_v4si_v2di,
13526 sse5_vrotl<mode>3, sse5_ashl<mode>3, sse5_lshl<mode>3): Override
13527 prefix_data16 to 0 and prefix_extra to 2.
13528 (sse5_rotl<mode>3, sse5_rotr<mode>3): Override length_immediate to 1.
13529 (sse5_frcz<mode>2, sse5_vmfrcz<mode>2): Don't override prefix_extra
13531 (*sse5_vmmaskcmp<mode>3, sse5_com_tf<mode>3,
13532 sse5_maskcmp<mode>3, sse5_maskcmp<mode>3, sse5_maskcmp_uns<mode>3):
13533 Override prefix_data16 and prefix_rep to 0, length_immediate to 1
13534 and prefix_extra to 2.
13535 (sse5_maskcmp_uns2<mode>3, sse5_pcom_tf<mode>3): Override
13536 prefix_data16 to 0, length_immediate to 1 and prefix_extra to 2.
13537 (*avx_aesenc, *avx_aesenclast, *avx_aesdec, *avx_aesdeclast,
13538 avx_vpermilvar<mode>3,
13539 avx_vbroadcasts<avxmodesuffixf2c><avxmodesuffix>,
13540 avx_vbroadcastss256, avx_vbroadcastf128_p<avxmodesuffixf2c>256,
13541 avx_maskloadp<avxmodesuffixf2c><avxmodesuffix>,
13542 avx_maskstorep<avxmodesuffixf2c><avxmodesuffix>):
13543 Override prefix_extra to 1.
13544 (aeskeygenassist, pclmulqdq): Override length_immediate to 1.
13545 (*vpclmulqdq, avx_vpermil<mode>, avx_vperm2f128<mode>3,
13546 vec_set_lo_<mode>, vec_set_hi_<mode>, vec_set_lo_v16hi,
13547 vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Override
13548 prefix_extra and length_immediate to 1.
13549 (*avx_vzeroall, avx_vzeroupper, avx_vzeroupper_rex64): Override
13551 (*vec_concat<mode>_avx): Override prefix_extra and length_immediate
13552 to 1 for the first alternative.
13553 * config/i386/mmx.md (*mov<mode>_internal_rex64): Override
13554 prefix_rep, prefix_data16 and/or prefix_rex attributes in certain
13556 (*mov<mode>_internal_avx, *movv2sf_internal_rex64,
13557 *movv2sf_internal_avx, *movv2sf_internal): Override
13558 prefix_rep attribute for certain alternatives.
13559 (*mov<mode>_internal): Override prefix_rep or prefix_data16
13560 attributes for certain alternatives.
13561 (*movv2sf_internal_rex64_avx): Override prefix_rep and length_vex
13562 attributes for certain alternatives.
13563 (*mmx_addv2sf3, *mmx_subv2sf3, *mmx_mulv2sf3,
13564 *mmx_<code>v2sf3_finite, *mmx_<code>v2sf3, mmx_rcpv2sf2,
13565 mmx_rcpit1v2sf3, mmx_rcpit2v2sf3, mmx_rsqrtv2sf2, mmx_rsqit1v2sf3,
13566 mmx_haddv2sf3, mmx_hsubv2sf3, mmx_addsubv2sf3,
13567 *mmx_eqv2sf3, mmx_gtv2sf3, mmx_gev2sf3, mmx_pf2id, mmx_pf2iw,
13568 mmx_pi2fw, mmx_floatv2si2, mmx_pswapdv2sf2, *mmx_pmulhrwv4hi3,
13569 mmx_pswapdv2si2): Set prefix_extra attribute to 1.
13570 (mmx_ashr<mode>3, mmx_lshr<mode>3, mmx_ashl<mode>3): Set
13571 length_immediate to 1 if operand 2 is const_int_operand.
13572 (*mmx_pinsrw, mmx_pextrw, mmx_pshufw_1, *vec_dupv4hi,
13573 *vec_extractv2si_1): Set length_immediate attribute to 1.
13574 (*mmx_uavgv8qi3): Override prefix_extra attribute to 1 if
13575 using old 3DNOW insn rather than SSE/3DNOW_A.
13576 (mmx_emms, mmx_femms): Clear modrm attribute.
13578 2009-05-29 Martin Jambor <mjambor@suse.cz>
13580 * tree-sra.c: New implementation of SRA.
13582 * params.def (PARAM_SRA_MAX_STRUCTURE_SIZE): Removed.
13583 (PARAM_SRA_MAX_STRUCTURE_COUNT): Removed.
13584 (PARAM_SRA_FIELD_STRUCTURE_RATIO): Removed.
13585 * params.h (SRA_MAX_STRUCTURE_SIZE): Removed.
13586 (SRA_MAX_STRUCTURE_COUNT): Removed.
13587 (SRA_FIELD_STRUCTURE_RATIO): Removed.
13588 * doc/invoke.texi (sra-max-structure-size): Removed.
13589 (sra-field-structure-ratio): Removed.
13591 2009-05-29 Jakub Jelinek <jakub@redhat.com>
13593 PR middle-end/40291
13594 * builtins.c (expand_builtin_memcmp): Convert len to sizetype
13597 2009-05-29 Andrey Belevantsev <abel@ispras.ru>
13599 PR rtl-optimization/40101
13600 * sel-sched-ir.c (get_seqno_by_preds): Allow returning negative
13601 seqno. Adjust comment.
13602 * sel-sched.c (find_seqno_for_bookkeeping): Assert that when
13603 inserting bookkeeping before a jump, the jump is not scheduled.
13604 When no positive seqno found, provide a value. Add comment.
13606 2009-05-29 Richard Guenther <rguenther@suse.de>
13608 * tree-ssa-alias.c (nonaliasing_component_refs_p): Remove
13609 short-cutting on the first component.
13611 2009-05-29 Jakub Jelinek <jakub@redhat.com>
13613 PR middle-end/39958
13614 * omp-low.c (scan_omp_1_op): Call remap_type on TREE_TYPE
13615 for trees other than decls/types.
13617 2009-05-29 Richard Guenther <rguenther@suse.de>
13619 * tree-ssa-operands.c (get_expr_operands): Do not handle
13620 INDIRECT_REFs in the handled-component case. Remove
13621 unused get_ref_base_and_extent case.
13622 * tree-dfa.c (get_ref_base_and_extent): Avoid calling
13623 tree_low_cst and host_integerp where possible.
13624 * tree-ssa-structalias.c (equiv_class_label_eq): Check hash
13625 codes for equivalence.
13626 * dce.c (find_call_stack_args): Avoid redundant bitmap queries.
13628 2009-05-29 David Billinghurst <billingd@gcc.gnu.org>
13630 * config.gcc: Add i386/t-fprules-softfp and soft-fp/t-softfp
13631 to tmake_file for i[34567]86-*-cygwin*.
13633 2009-05-29 Jakub Jelinek <jakub@redhat.com>
13636 * config/rs6000/rs6000-c.c (_Bool_keyword): New variable.
13637 (altivec_categorize_keyword, init_vector_keywords,
13638 rs6000_cpu_cpp_builtins): Define _Bool as conditional macro
13641 2009-05-29 Kai Tietz <kai.tietz@onevision.com>
13643 * tree.c (handle_dll_attribute): Check if node is
13644 of kind FUNCTION_DECL for DECL_DECLARED_INLINE_P check.
13646 2009-05-29 Richard Earnshaw <rearnsha@arm.com>
13648 * config/arm/thumb2.md (thumb2_zero_extendsidi2): Add a split
13650 (thumb2_zero_extendqidi2): Likewise.
13652 2009-05-28 Kaz Kojima <kkojima@gcc.gnu.org>
13654 * config/sh/sh.c (sh_expand_t_scc): Use gen_xorsi3_movrt
13655 instead of gen_movrt.
13656 * config/sh/sh.md (movrt): Remove.
13658 2009-05-28 Steve Ellcey <sje@cup.hp.com>
13660 * doc/invoke.texi (IA-64 Options):
13661 Add -msdata, -mfused-madd, -mno-inline-float-divide,
13662 -mno-inline-int-divide, -mno-inline-sqrt, -msched-spec-ldc,
13663 -msched-spec-control-ldc, -msched-prefer-non-data-spec-insns,
13664 -msched-prefer-non-control-spec-insns,
13665 -msched-stop-bits-after-every-cycle,
13666 -msched-count-spec-in-critical-path,
13667 -msel-sched-dont-check-control-spec, -msched-fp-mem-deps-zero-cost
13668 -msched-max-memory-insns-hard-limit, -msched-max-memory-insns.
13669 Remove -mt, -pthread, -msched-ldc, -mno-sched-control-ldc,
13670 and -msched-spec-verbose.
13672 2009-05-28 Joseph Myers <joseph@codesourcery.com>
13674 * config/arm/lib1funcs.asm (__clear_cache): Define if L_clear_cache.
13675 * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Define to give an
13677 * config/arm/t-linux-eabi (LIB1ASMFUNCS): Add _clear_cache.
13679 2009-05-28 Richard Guenther <rguenther@suse.de>
13681 * tree-ssa-alias.c (ao_ref_init): New function.
13682 (ao_ref_base): Likewise.
13683 (ao_ref_base_alias_set): Likewise.
13684 (ao_ref_alias_set): Likewise.
13685 (refs_may_alias_p_1): Change signature.
13686 (refs_may_alias_p): Adjust.
13687 (refs_anti_dependent_p): Likewise.
13688 (refs_output_dependent_p): Likewise.
13689 (call_may_clobber_ref_p_1): Change signature.
13690 (call_may_clobber_ref_p): Adjust.
13691 (stmt_may_clobber_ref_p_1): New function split out from ...
13692 (stmt_may_clobber_ref_p): ... here.
13693 (maybe_skip_until): Adjust signature.
13694 (get_continuation_for_phi): Likewise.
13695 (walk_non_aliased_vuses): Likewise.
13696 * tree-ssa-alias.h (struct ao_ref_s): New structure type.
13697 (ao_ref_init): Declare.
13698 (ao_ref_base): Likewise.
13699 (ao_ref_alias_set): Likewise.
13700 (stmt_may_clobber_ref_p_1): Likewise.
13701 (walk_non_aliased_vuses): Adjust.
13702 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): New function.
13703 (get_ref_from_reference_ops): remove.
13704 (vn_reference_lookup_2): Adjust signature.
13705 (vn_reference_lookup_3): Do not re-build trees. Handle unions.
13706 (vn_reference_lookup_pieces): Adjust signature, do not re-build trees.
13707 (vn_reference_lookup): Adjust.
13708 (vn_reference_insert): Likewise.
13709 (vn_reference_insert_pieces): Adjust signature.
13710 (visit_reference_op_call): Adjust.
13711 * tree-ssa-pre.c (get_expr_type): Simplify.
13712 (phi_translate_1): Adjust.
13713 (compute_avail): Likewise.
13714 (translate_vuse_through_block): Do not re-build trees.
13715 (value_dies_in_block_x): Likewise.
13716 * tree-ssa-sccvn.h (struct vn_reference_s): Add type and alias-set
13718 (vn_reference_lookup_pieces): Adjust declaration.
13719 (vn_reference_insert_pieces): Likewise.
13721 2009-05-28 Benjamin Kosnik <bkoz@redhat.com>
13723 * tree-ssa-copy.c (replace_exp_1): Move op for warning-free use
13724 with checking disabled.
13726 2009-05-28 Dave Korn <dave.korn.cygwin@gmail.com>
13730 * configure.ac (HAVE_GAS_ALIGNED_COMM): Add autoconf test and
13731 macro definition for support of three-operand format aligned
13732 .comm directive in assembler on cygwin/pe/mingw target OS.
13733 * configure: Regenerate.
13734 * config.h: Regenerate.
13736 * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Use
13737 aligned form of .comm directive if -mpe-aligned-commons is in effect.
13738 * config/i386/cygming.opt (-mpe-aligned-commons): Add new option.
13740 * doc/invoke.texi (-mpe-aligned-commons): Document new target option.
13741 * doc/tm.texi (ASM_OUTPUT_COMMON): Document zero size commons.
13743 2009-05-28 Ira Rosen <irar@il.ibm.com>
13745 PR tree-optimization/40254
13746 * tree-data-ref.c (dr_analyze_innermost): Take POFFSET into account
13747 in analysis of basic blocks.
13749 2009-05-28 Adam Nemet <anemet@caviumnetworks.com>
13751 PR middle-end/33699
13752 * target.h (struct gcc_target): Fix indentation. Add const_anchor.
13753 * target-def.h (TARGET_CONST_ANCHOR): New macro.
13754 (TARGET_INITIALIZER): Use it.
13755 * cse.c (CHEAPER): Move it up to the other macros.
13756 (insert): Rename this ...
13757 (insert_with_costs): ... to this. Add cost parameters. Update
13759 (insert): New function. Call insert_with_costs.
13760 (compute_const_anchors, insert_const_anchor, insert_const_anchors,
13761 find_reg_offset_for_const, try_const_anchors): New functions.
13762 (cse_insn): Call try_const_anchors. Adjust cost of src_related
13763 when using a const-anchor. Call insert_const_anchors.
13764 * config/mips/mips.c (mips_set_mips16_mode): Set targetm.const_anchor.
13765 * doc/tm.texi (Misc): Document TARGET_CONST_ANCHOR.
13767 2009-05-28 Alexandre Oliva <aoliva@redhat.com>
13769 * tree-inline.c (remap_decls): Enable nonlocalized variables
13770 when not optimizing.
13772 2009-05-28 Alexandre Oliva <aoliva@redhat.com>
13774 * tree-ssa-live.c (remove_unused_locals): Skip when not optimizing.
13775 Simplify other tests involving optimize.
13777 2009-05-27 Tom Tromey <tromey@redhat.com>
13779 * unwind-dw2.c (_Unwind_DebugHook): New function.
13780 (uw_install_context): Call _Unwind_DebugHook.
13782 2009-05-27 Tom Tromey <tromey@redhat.com>
13784 * system.h (CONST_CAST2): Use C++ const_cast when compiled as C++
13786 2009-05-27 Ian Lance Taylor <iant@google.com>
13788 * Makefile.in (LINKER, LINKER_FLAGS): Define.
13789 (LINKER_FOR_BUILD, BUILD_LINKERFLAGS): Define.
13790 (ALL_LINKERFLAGS): Define.
13791 (xgcc$(exeext)): Change $(COMPILER) to $(LINKER).
13792 (cpp$(exeext), cc1-dummy$(exeext), cc1$(exeext)): Likewise.
13793 (collect2$(exeext), mips-tfile, mips-tdump): Likewise.
13794 (gcov$(exeext), gcov-dump$(exeext)): Likewise.
13795 (build/gen%$(build_exeext)): Change $(COMPILER_FOR_BUILD) to
13796 $(LINKER_FOR_BUILD).
13797 (build/gcov-iov$(build_exeext)): Likewise.
13799 2009-05-27 Julian Brown <julian@codesourcery.com>
13801 * gcse.c (target.h): Include.
13802 (can_assign_to_reg_without_clobbers_p): Check that the target allows
13803 copy of argument to a pseudo register.
13805 2009-05-27 Diego Novillo <dnovillo@google.com>
13807 * tree-ssa-live.c (dump_scope_block): Document arguments.
13808 (dump_scope_blocks): Document.
13809 (debug_scope_blocks): New.
13810 * tree-flow.h (debug_scope_blocks): Declare.
13812 2009-05-21 Denis Chertykov <denisc@overta.ru>
13814 * doc/contrib.texi (Contributors): Add myself to the list.
13816 2009-05-27 Olivier Hainque <hainque@adacore.com>
13818 * expr.c (target_align): New function. Alignment the TARGET of an
13819 assignment may be assume to have.
13820 (highest_pow2_factor_for_target): Use it instead of relying on
13821 immediate tree attributes of TARGET, not necessarily honored when
13822 intermediate bitfields are involved.
13824 2009-05-27 H.J. Lu <hongjiu.lu@intel.com>
13827 * config/i386/driver-i386.c (host_detect_local_cpu): Support
13828 AVX, SSE4, AES, PCLMUL and POPCNT.
13830 2009-05-27 Diego Novillo <dnovillo@google.com>
13832 * tree-pretty-print.c (dump_location): New.
13833 (dump_generic_node): Call it.
13834 Factor code to handle BLOCK nodes ...
13835 (dump_block_node): ... here.
13837 2009-05-27 Rafael Avila de Espindola <espindola@google.com>
13839 * Makefile.in (GCC_PLUGIN_H): New. Replace all uses of gcc-plugin.h
13841 * doc/plugins.texi: Document that gcc-plugin.h must be the first to be
13843 * gcc-plugin.h: Include config.h and system.h.
13844 (IN_GCC): Define if not defined.
13846 2009-05-27 Hans-Peter Nilsson <hp@axis.com>
13848 PR middle-end/40249
13849 * Makefile.in (CRTSTUFF_CFLAGS): Replace -fno-inline-functions
13852 2009-05-27 Shujing Zhao <pearly.zhao@oracle.com>
13854 * config/m32r/m32r.c: Use REG_P, MEM_P and CONST_INT_P where
13856 * config/m32r/m32r.h: Ditto.
13857 * config/m32r/m32r.md: Ditto.
13858 * config/m32r/predicates.md: Ditto.
13860 2009-05-27 Alexandre Oliva <aoliva@redhat.com>
13862 * cgraph.c (dump_cgraph_node): Honor -fdump-noaddr.
13864 2009-05-26 Basile Starynkevitch <basile@starynkevitch.net>
13867 (Loading plugins): typo.
13868 (Plugin callbacks): Documented PLUGIN_INFO, PLUGIN_GGC_START,
13869 PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
13870 (Interacting with the GCC Garbage Collector): Added new section.
13871 (Giving information about a plugin): Added new section for
13873 * ggc.h (ggc_register_root_tab): Added declaration.
13874 * gcc-plugin.h (PLUGIN_GGC_START, PLUGIN_GGC_MARKING)
13875 (PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS): Added new events.
13876 (register_callback): Improved comment in declaration.
13877 * ggc-common.c (const_ggc_root_tab_t) Added new typedef for vectors.
13878 (extra_root_vec) Added static variable for dynamic roots registration.
13879 (ggc_register_root_tab) Added new routine.
13880 (ggc_mark_roots) Added iteration inside extra_root_vec, and invoke
13881 PLUGIN_GGC_MARKING event.
13882 * ggc-zone.c: Include plugin.h.
13883 (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
13884 * ggc-page.c: Include plugin.h.
13885 (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
13886 * plugin.c (plugin_event_name): added names of PLUGIN_GGC_START,
13887 PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS
13888 (register_callback): check lack of callbacks for
13889 pseudo-events. Added handling of PLUGIN_REGISTER_GGC_ROOTS,
13890 PLUGIN_GGC_START, PLUGIN_GGC_MARKING, PLUGIN_GGC_END.
13891 (invoke_plugin_callbacks): Handle PLUGIN_GGC_START,
13892 PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
13893 * Makefile.in (ggc-common.o, ggc-zone.o, ggc-page.o): Added
13894 dependency on plugin.h.
13895 (plugin.o): Added dependency on ggc.h...
13897 2009-05-26 Richard Guenther <rguenther@suse.de>
13899 PR middle-end/40248
13901 * expr.c (expand_expr_real_1): Avoid calling do_store_flag
13902 with mismatched comparison modes.
13904 * expr.c (expand_expr_real_1): Expand the operand of a
13905 VIEW_CONVERT_EXPR in its natural mode.
13907 2009-05-26 Ian Lance Taylor <iant@google.com>
13909 * Makefile.in (COMPILER, COMPILER_FLAGS): Define.
13910 (COMPILER_FOR_BUILD, BUILD_COMPILERFLAGS): Define.
13911 (ALL_COMPILERFLAGS): Define.
13912 (.c.o, xgcc$(exeext), cpp$(exeext)): Use $(COMPILER).
13913 (cc1-dummy$(exeext), cc1$(exeext)): Likewise.
13914 (collect2$(exeext), collect2.o): Likewise.
13915 (c-opts.o, c-cppbuiltin.o, c-pch.o, gcc.o, gccspec.o): Likewise.
13916 (gcc-options.o, version.o, prefix.o, toplev.o): Likewise.
13917 ($(out_object_file), mips-tfile, mips-tdump): Likewise.
13918 (libbackend.o, intl.o, cppdefault.o): Likewise.
13919 (gcov$(exeext), gcov-dump$(exeext)): Likewise.
13920 (build/%.o): Use $(COMPILER_FOR_BUILD).
13921 (build/gen%$(build_exeext)): Likewise.
13922 (build/gcov-iov$(build_exeext)): LIkewise.
13923 * config/t-darwin (darwin.o): Use $(COMPILER).
13924 (darwin-c.o, darwin-f.o, darwin-driver.o): Likewise.
13925 * config/t-sol2 (sol2-c.o): Likewise.
13926 (sol2.o): Likewise.
13927 * config/t-vxworks (vxworks.o): Likewise.
13928 * config/x-darwin (host-darwin.o): Likewise.
13929 * config/x-hpux (host-hpux.o): Likewise.
13930 * config/x-linux (host-linux.o): Likewise.
13931 * config/x-solaris (host-solaris.o): Likewise.
13932 * config/alpha/x-alpha (driver-alpha.o): Likewise.
13933 * config/arm/t-arm (arm-c.o): Likewise.
13934 * config/arm/t-pe (pe.o): Likewise.
13935 * config/arm/t-wince-pe (pe.o): Likewise.
13936 * config/i386/t-cygming (winnt.o): Likewise.
13937 (winnt-cxx.o, winnt-stubs.o, msformat-c.o): Likewise.
13938 * config/i386/t-cygwin (cygwin1.o): Likewise.
13939 (cygwin2.o): Likewise.
13940 * config/i386/t-i386 (i386-c.o): Likewise.
13941 * config/i386/t-interix (winnt.o): Likewise.
13942 * config/i386/t-netware (netware.o): Likewise.
13943 * config/i386/t-nwld (nwld.o): Likewise.
13944 * config/i386/x-darwin (host-i386-darwin.o): Likewise.
13945 * config/i386/x-i386 (driver-i386.o): Likewise.
13946 * config/i386/x-cygwin (host-cygwin.o): Likewise.
13947 * config/i386/x-mingw32 (host-mingw32.o): Likewise.
13948 * config/ia64/t-ia64 (ia64-c.o): Likewise.
13949 * config/m32c/t-m32c (m32c-pragma.o): Likewise.
13950 * config/mips/x-native (driver-native.o): Likewise.
13951 * config/rs6000/t-rs6000 (rs6000-c.o): Likewise.
13952 * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
13953 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
13954 * config/rs6000/x-rs6000 (driver-rs6000.o): Likewise.
13955 * config/score/t-score-elf (score7.o): Likewise.
13956 (score3.o): Likewise.
13957 * config/sh/t-sh (sh-c.o): Likewise.
13958 * config/sh/t-symbian (sh-c.o): Likewise.
13959 (symbian.o): Likewise.
13960 * config/spu/t-spu-elf (spu-c.o): Likewise.
13961 * config/v850/t-v850 (v850-c.o): Likewise.
13962 * config/v850/t-v850e (v850-c.o): Likewise.
13964 2009-05-26 Richard Guenther <rguenther@suse.de>
13966 PR tree-optimization/40122
13967 * tree-ssa-ccp.c (ccp_fold): Fold vector CONSTRUCTORs to
13968 VECTOR_CSTs if possible.
13969 (fold_gimple_assign): Likewise.
13971 2009-05-26 Richard Guenther <rguenther@suse.de>
13973 PR middle-end/40252
13974 * fold-const.c (fold_binary): Use the correct types for building
13977 2009-05-26 Richard Guenther <rguenther@suse.de>
13979 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove
13980 redundant calls to merge_alias_info.
13981 (bump_vector_ptr): Likewise.
13982 * tree-ssa-copy.c (merge_alias_info): Remove.
13983 (replace_exp_1): Remove call to merge_alias_info.
13984 (propagate_tree_value): Likewise.
13985 (fini_copy_prop): Propagate points-to info.
13986 * tree-flow.h (merge_alias_info): Remove.
13988 2009-05-07 Hariharan Sandanagobalane <hariharan@picochip.com>
13990 * config/picochip/picochip.C (PARAM_INLINE_CALL_COST): Remove.
13992 2009-05-25 Jan Hubicka <jh@suse.cz>
13994 * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
13995 * cgraph.h (struct inline_summary): New filed self_wize,
13996 size_inlining_benefit, self_time and time_inlining_benefit.
13997 (struct cgraph_global_info): Replace insns by time ans size fields.
13998 * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
13999 (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
14000 (ipcp_update_callgraph): Do not touch function bodies.
14001 * ipa-inline.c: Include except.h
14002 (MAX_TIME): New constant.
14003 (overall_insns): Remove.
14004 (leaf_node_p): New.
14005 (overall_size, max_benefit): New static variables.
14006 (cgraph_estimate_time_after_inlining): New function.
14007 (cgraph_estimate_size_after_inlining): Rewrite using benefits.
14008 (cgraph_clone_inlined_nodes): Update size.
14009 (cgraph_mark_inline_edge): Update size.
14010 (cgraph_estimate_growth): Use size info.
14011 (cgraph_check_inline_limits): Check size.
14012 (cgraph_default_inline_p): Likewise.
14013 (cgraph_edge_badness): Compute badness based on benefit and size cost.
14014 (cgraph_decide_recursive_inlining): Check size.
14015 (cgraph_decide_inlining_of_small_function): Update size; dump sizes
14017 (cgraph_decide_inlining): Likewise.
14018 (cgraph_decide_inlining_incrementally): Likewise; honor
14019 PARAM_EARLY_INLINING_INSNS.
14020 (likely_eliminated_by_inlining_p): New predicate.
14021 (estimate_function_body_sizes): New function.
14022 (compute_inline_parameters): Use it.
14023 * except.c (must_not_throw_labels): New function.
14024 * except.h (must_not_throw_labels): Declare.
14025 * tree-inline.c (init_inline_once): Kill inlining_weigths
14026 * tree-ssa-structalias.c: Avoid uninitialized warning.
14027 * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
14028 (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
14029 (PARAM_INLINE_CALL_COST): Remove.
14030 (PARAM_EARLY_INLINING_INSNS): New.
14032 2009-05-25 Richard Guenther <rguenther@suse.de>
14034 PR tree-optimization/36327
14035 * tree-ssa-alias.c (walk_non_aliased_vuses): Add second walker
14036 callback for reference translation or lookup at the point of may-defs.
14037 * tree-ssa-alias.h (walk_non_aliased_vuses): Adjust prototype.
14038 * tree-ssa-sccvn.c (get_ref_from_reference_ops): Bail out
14039 for union COMPONENT_REFs.
14040 (vn_reference_lookup_3): New callback. Lookup from memset
14041 and CONSTRUCTOR assignment, translate through struct copies.
14042 (vn_reference_lookup_pieces): Make sure to not free the
14043 passed operands array. Adjust walk_non_aliased_vuses call.
14044 (vn_reference_lookup): Adjust walk_non_aliased_vuses call,
14045 make sure we do not leak memory.
14047 2009-05-25 Richard Guenther <rguenther@suse.de>
14049 * tree-ssa-alias.h (dump_points_to_solution): Declare.
14050 * tree-inline.c (expand_call_inline): Reset the escaped and
14051 callused solutions.
14052 * tree-ssa-structalias.c (pass_build_ealias): New.
14053 * tree-pass.h (pass_build_ealias): Declare.
14054 * passes.c (init_optimization_passes): Add PTA during
14055 early optimizations.
14056 * tree-ssa-alias.c (dump_alias_info): Dump the ESCAPED
14057 and CALLUSED solutions.
14058 (dump_points_to_solution): New function, split out from ...
14059 (dump_points_to_info_for): ... here.
14060 * tree-parloops.c (parallelize_loops): Reset the escaped and
14061 callused solutions.
14063 2009-05-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
14066 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Only define if missing.
14067 * config/i386/sol2.h [!TARGET_GNU_LD] (USE_HIDDEN_LINKONCE): Define.
14069 2009-05-25 Ira Rosen <irar@il.ibm.com>
14071 PR tree-optimization/40238
14072 * tree-vect-stmts.c (vect_init_vector): Insert initialization
14073 statements after basic block's labels.
14074 * tree-vect-slp.c (vect_slp_transform_bb): Call destroy_bb_vec_info()
14075 to free the allocated memory.
14077 2009-05-24 Kaz Kojima <kkojima@gcc.gnu.org>
14079 * gcc/config/sh/sh.c (sh_set_return_address): Mark store of
14080 return address with a USE.
14082 2009-05-24 Richard Guenther <rguenther@suse.de>
14084 PR middle-end/40233
14085 * tree.c (make_vector_type): Build the TYPE_DEBUG_REPRESENTATION_TYPEs
14086 array type from the main variant of the inner type.
14088 2009-05-24 Jan-Benedict Glaw <jbglaw@lug-owl.de>
14090 * config/vax/vax-protos.h (legitimate_constant_address_p): Change
14091 definition to bool (from int) to un-break build.
14092 (legitimate_constant_p, vax_mode_dependent_address_p): Likewise.
14094 2009-05-24 Paolo Bonzini <bonzini@gnu.org>
14096 * tree-ssa-operands.h (push_stmt_changes, pop_stmt_changes,
14097 discard_stmt_changes): Delete.
14098 * tree-ssa-operands.c (scb_stack): Delete.
14099 (init_ssa_operands): Do not initialize it.
14100 (fini_ssa_operands): Do not free it.
14101 (push_stmt_changes, pop_stmt_changes, discard_stmt_changes): Delete.
14103 * tree-cfg.c (replace_uses_by): Replace pop_stmt_changes with
14104 update_stmt, remove the others. Fix comments.
14105 * tree-dfa.c (optimize_stack_restore): Likewise.
14106 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Likewise.
14107 * tree-ssa-loop-ivopts.c (rewrite_use): Likewise.
14108 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
14109 * tree-ssa-ccp.c (optimize_stack_restore, execute_fold_all_builtins):
14111 * tree-ssa-propagate.c (substitute_and_fold): Likewise.
14112 * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
14113 (dom_opt_finalize_block): Likewise, adjusting access to
14115 (optimize_stmt): Likewise, adjusting access to stmts_to_rescan.
14116 (stmts_to_rescan): Change item type to gimple.
14117 (tree_ssa_dominator_optimize): Change type of stmts_to_rescan.
14119 2009-05-24 Ira Rosen <irar@il.ibm.com>
14121 * doc/passes.texi (Tree-SSA passes): Document SLP pass.
14122 * tree-pass.h (pass_slp_vectorize): New pass.
14123 * params.h (SLP_MAX_INSNS_IN_BB): Define.
14124 * timevar.def (TV_TREE_SLP_VECTORIZATION): Define.
14125 * tree-vectorizer.c (timevar.h): Include.
14126 (user_vect_verbosity_level): Declare.
14127 (vect_location): Fix comment.
14128 (vect_set_verbosity_level): Update user_vect_verbosity_level
14129 instead of vect_verbosity_level.
14130 (vect_set_dump_settings): Add an argument. Ignore user defined
14131 verbosity if dump flags require higher level of verbosity. Print to
14132 stderr only for loop vectorization.
14133 (vectorize_loops): Update call to vect_set_dump_settings.
14134 (execute_vect_slp): New function.
14135 (gate_vect_slp): Likewise.
14136 (struct gimple_opt_pass pass_slp_vectorize): New.
14137 * tree-vectorizer.h (struct _bb_vec_info): Define along macros to
14138 access its members.
14139 (vec_info_for_bb): New function.
14140 (struct _stmt_vec_info): Add bb_vinfo and a macro for its access.
14141 (VECTORIZATION_ENABLED): New macro.
14142 (SLP_ENABLED, SLP_DISABLED): Likewise.
14143 (vect_is_simple_use): Add bb_vec_info argument.
14144 (new_stmt_vec_info, vect_analyze_data_ref_dependences,
14145 vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
14146 vect_analyze_data_ref_accesses, vect_analyze_data_refs,
14147 vect_schedule_slp, vect_analyze_slp): Likewise.
14148 (vect_analyze_stmt): Add slp_tree argument.
14149 (find_bb_location): Declare.
14150 (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
14151 * tree-vect-loop.c (new_loop_vec_info): Adjust function calls.
14152 (vect_analyze_loop_operations, vect_analyze_loop,
14153 get_initial_def_for_induction, vect_create_epilog_for_reduction,
14154 vect_finalize_reduction, vectorizable_reduction,
14155 vectorizable_live_operation, vect_transform_loop): Likewise.
14156 * tree-data-ref.c (dr_analyze_innermost): Update comment,
14157 skip evolution analysis if analyzing a basic block.
14158 (dr_analyze_indices): Likewise.
14159 (initialize_data_dependence_relation): Skip the test whether the
14160 object is invariant for basic blocks.
14161 (compute_all_dependences): Skip dependence analysis for data
14162 references in basic blocks.
14163 (find_data_references_in_stmt): Don't fail in case of invariant
14164 access in basic block.
14165 (find_data_references_in_bb): New function.
14166 (find_data_references_in_loop): Move code to
14167 find_data_references_in_bb and add a call to it.
14168 (compute_data_dependences_for_bb): New function.
14169 * tree-data-ref.h (compute_data_dependences_for_bb): Declare.
14170 * tree-vect-data-refs.c (vect_check_interleaving): Adjust to the case
14172 (vect_analyze_data_ref_dependence): Check for interleaving in case of
14173 unknown dependence in basic block and fail in case of dependence in
14175 (vect_analyze_data_ref_dependences): Add bb_vinfo argument, get data
14176 dependence instances from either loop or basic block vectorization
14178 (vect_compute_data_ref_alignment): Check if it is loop vectorization
14179 before calling nested_in_vect_loop_p.
14180 (vect_compute_data_refs_alignment): Add bb_vinfo argument, get data
14181 dependence instances from either loop or basic block vectorization
14183 (vect_verify_datarefs_alignment): Likewise.
14184 (vect_enhance_data_refs_alignment): Adjust function calls.
14185 (vect_analyze_data_refs_alignment): Likewise.
14186 (vect_analyze_group_access): Fix printing. Skip different checks if
14187 DR_STEP is 0. Keep strided stores either in loop or basic block
14188 vectorization data structure. Fix indentation.
14189 (vect_analyze_data_ref_access): Fix comments, allow zero step in
14191 (vect_analyze_data_ref_accesses): Add bb_vinfo argument, get data
14192 dependence instances from either loop or basic block vectorization
14194 (vect_analyze_data_refs): Update comment. Call
14195 compute_data_dependences_for_bb to analyze basic blocks.
14196 (vect_create_addr_base_for_vector_ref): Check for outer loop only in
14197 case of loop vectorization. In case of basic block vectorization use
14198 data-ref itself as a base.
14199 (vect_create_data_ref_ptr): In case of basic block vectorization:
14200 don't advance the pointer, add new statements before the current
14201 statement. Adjust function calls.
14202 (vect_supportable_dr_alignment): Support only aligned accesses in
14203 basic block vectorization.
14204 * common.opt (ftree-slp-vectorize): New flag.
14205 * tree-vect-patterns.c (widened_name_p): Adjust function calls.
14206 (vect_pattern_recog_1): Likewise.
14207 * tree-vect-stmts.c (process_use): Likewise.
14208 (vect_init_vector): Add new statements in the beginning of the basic
14209 block in case of basic block SLP.
14210 (vect_get_vec_def_for_operand): Adjust function calls.
14211 (vect_finish_stmt_generation): Likewise.
14212 (vectorizable_call): Add assert that it is loop vectorization, adjust
14214 (vectorizable_conversion, vectorizable_assignment): Likewise.
14215 (vectorizable_operation): In case of basic block SLP, take
14216 vectorization factor from statement's type and skip the relevance
14217 check. Adjust function calls.
14218 (vectorizable_type_demotion): Add assert that it is loop
14219 vectorization, adjust function calls.
14220 (vectorizable_type_promotion): Likewise.
14221 (vectorizable_store): Check for outer loop only in case of loop
14222 vectorization. Adjust function calls. For basic blocks, skip the
14223 relevance check and don't advance pointers.
14224 (vectorizable_load): Likewise.
14225 (vectorizable_condition): Add assert that it is loop vectorization,
14226 adjust function calls.
14227 (vect_analyze_stmt): Add argument. In case of basic block SLP, check
14228 that it is not reduction, get vector type, call only supported
14229 functions, skip loop specific parts.
14230 (vect_transform_stmt): Check for outer loop only in case of loop
14232 (new_stmt_vec_info): Add new argument and initialize bb_vinfo.
14233 (vect_is_simple_use): Fix comment, add new argument, fix conditions
14234 for external definition.
14235 * passes.c (pass_slp_vectorize): New pass.
14236 * tree-vect-slp.c (find_bb_location): New function.
14237 (vect_get_and_check_slp_defs): Add argument, adjust function calls,
14238 check for patterns only in loops.
14239 (vect_build_slp_tree): Add argument, adjust function calls, fail in
14240 case of multiple types in basic block SLP.
14241 (vect_mark_slp_stmts_relevant): New function.
14242 (vect_supported_load_permutation_p): Fix comment.
14243 (vect_analyze_slp_instance): Add argument. In case of basic block
14244 SLP, take vectorization factor from statement's type, check that
14245 unrolling factor is 1. Adjust function call. Save SLP instance in
14246 either loop or basic block vectorization structure. Return FALSE,
14248 (vect_analyze_slp): Add argument. Get strided stores groups from
14249 either loop or basic block vectorization structure. Return FALSE
14250 if basic block SLP failed.
14251 (new_bb_vec_info): New function.
14252 (destroy_bb_vec_info, vect_slp_analyze_node_operations,
14253 vect_slp_analyze_operations, vect_slp_analyze_bb): Likewise.
14254 (vect_schedule_slp): Add argument. Get SLP instances from either
14255 loop or basic block vectorization structure. Set vectorization factor
14256 to be 1 for basic block SLP.
14257 (vect_slp_transform_bb): New function.
14258 * params.def (PARAM_SLP_MAX_INSNS_IN_BB): Define.
14260 2009-05-23 Mark Mitchell <mark@codesourcery.com>
14262 * final.c (shorten_branches): Do not align labels for jump tables.
14263 (final_scan_insn): Use JUMP_TABLE_DATA_P.
14265 2009-05-23 Eric Botcazou <ebotcazou@adacore.com>
14267 * doc/passes.texi: Standardize spelling of RTL, Tree and Tree SSA.
14268 Remove outdated reference to flow.c and fix nits.
14269 * doc/gccint.texi: Tweak RTL description.
14270 * doc/rtl.texi: Likewise.
14272 2009-05-23 Denis Chertykov <chertykov@gmail.com>
14274 * config/avr/avr.c: Change my email address.
14275 * config/avr/avr.h: Likewise.
14276 * config/avr/avr.md: Likewise.
14277 * config/avr/avr-protos.h: Likewise.
14278 * config/avr/libgcc.S: Likewise.
14280 2009-05-22 Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
14282 * config/spu/spu-protos.h (aligned_mem_p, spu_valid_mov): Remove.
14283 (spu_split_load, spu_split_store): Change return type to int.
14284 (spu_split_convert): Declare.
14285 * config/spu/predicates.md (spu_mem_operand): Remove.
14286 (spu_mov_operand): Update.
14287 (spu_dest_operand, shiftrt_operator, extend_operator): Define.
14288 * config/spu/spu.c (regno_aligned_for_load): Remove.
14289 (reg_aligned_for_addr, spu_expand_load): Define.
14290 (spu_expand_extv): Reimplement and handle MEM.
14291 (spu_expand_insv): Handle MEM.
14292 (spu_sched_reorder): Handle insn's with length 0.
14293 (spu_legitimate_address_p): Reimplement.
14294 (store_with_one_insn_p): Return TRUE for any mode with size
14295 larger than 16 bytes.
14296 (address_needs_split): Define.
14297 (spu_expand_mov): Call spu_split_load and spu_split_store for MEM
14299 (spu_convert_move): Define.
14300 (spu_split_load): Use spu_expand_load and change all MEM's to TImode.
14301 (spu_split_store): Change all MEM's to TImode.
14302 (spu_init_expanders): Preallocate registers that correspond to
14303 LAST_VIRTUAL_REG+1 and LAST_VIRTUAL_REG+2 and set them with
14305 (spu_split_convert): Define.
14306 * config/spu/spu.md (QHSI, QHSDI): New mode iterators.
14307 (_move<mode>, _movdi, _movti): Update predicate and condition.
14308 (load, store): Change to define_split.
14309 (extendqiti2, extendhiti2, extendsiti2, extendditi2): Simplify to
14311 (zero_extendqiti2, zero_extendhiti2, <v>lshr<mode>3_imm): Define.
14312 (lshr<mode>3, lshr<mode>3_imm, lshr<mode>3_re): Simplify to one
14313 define_insn_and_split of lshr<mode>3.
14314 (shrqbybi_<mode>, shrqby_<mode>): Simplify to define_expand.
14315 (<v>ashr<mode>3_imm): Define.
14316 (extv, extzv, insv): Allow MEM operands.
14317 (trunc_shr_ti<mode>, trunc_shr_tidi, shl_ext_<mode>ti,
14318 shl_ext_diti, sext_trunc_lshr_tiqisi, zext_trunc_lshr_tiqisi,
14319 sext_trunc_lshr_tihisi, zext_trunc_lshr_tihisi): Define for combine.
14320 (_spu_convert2): Change to define_insn_and_split and remove the
14321 corresponding define_peephole2.
14322 (stack_protect_set, stack_protect_test, stack_protect_test_si):
14323 Change predicates to memory_operand.
14325 2009-05-22 Mark Mitchell <mark@codesourcery.com>
14327 * config/arm/thumb2.md: Add 16-bit multiply instructions.
14329 2009-05-21 Michael Meissner <meissner@linux.vnet.ibm.com>
14331 PR tree-optimization/40219
14332 * tree.c (iterative_hash_expr): Make sure the builtin function is
14333 a normal builtin function and not a front end or back end builtin
14334 before indexing into the built_in_decls array.
14336 2009-05-22 Richard Guenther <rguenther@suse.de>
14338 PR middle-end/38964
14339 * alias.c (write_dependence_p): Do not use TBAA for answering
14340 anti-dependence or output-dependence.
14341 * tree-ssa-structalias.c (set_uids_in_ptset): Remove TBAA pruning code.
14342 (emit_pointer_definition): Remove.
14343 (emit_alias_warning): Likewise.
14344 (find_what_var_points_to): Remove TBAA pruning code.
14345 (find_what_p_points_to): Likewise. Do not warn about strict-aliasing
14347 (compute_points_to_sets): Remove code computing the set of
14348 dereferenced pointers.
14349 * tree-data-ref.c (dr_may_alias_p): Properly use the split
14350 oracle for querying anti and output dependencies.
14351 * tree-ssa-alias.c (refs_may_alias_p_1): Add argument specifying
14352 if TBAA may be applied.
14353 (refs_anti_dependent_p): New function.
14354 (refs_output_dependent_p): Likewise.
14355 * tree-ssa-alias.h (refs_anti_dependent_p): Declare.
14356 (refs_output_dependent_p): Likewise.
14357 * doc/tree-ssa.texi (Memory model): New section.
14358 * doc/c-tree.texi (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
14359 * doc/gimple.texi (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
14360 * cfgexpand.c (expand_gimple_basic_block): Do not handle
14361 GIMPLE_CHANGE_DYNAMIC_TYPE or CHANGE_DYNAMIC_TYPE_EXPR.
14362 * expr.c (expand_expr_real_1): Likewise.
14363 * gimple-low.c (lower_stmt): Likewise.
14364 * gimple-pretty-print.c (dump_gimple_stmt): Likewise.
14365 (dump_gimple_cdt): Remove.
14366 * gimple.c (gss_for_code): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
14367 (gimple_size): Likewise.
14368 (walk_gimple_op): Likewise.
14369 (is_gimple_stmt): Likewise.
14370 (walk_stmt_load_store_addr_ops): Likewise.
14371 (gimple_build_cdt): Remove.
14372 * gimple.def (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
14373 * gimple.h (gimple_cdt_new_type): Remove.
14374 (gimple_cdt_new_type_ptr): Likewise.
14375 (gimple_cdt_set_new_type): Likewise.
14376 (gimple_cdt_location): Likewise.
14377 (gimple_cdt_location_ptr): Likewise.
14378 (gimple_cdt_set_location): Likewise.
14379 * gimplify.c (gimplify_expr): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
14380 * tree-cfg.c (remove_useless_stmts_1): Do not handle
14381 GIMPLE_CHANGE_DYNAMIC_TYPE.
14382 (verify_types_in_gimple_stmt): Likewise.
14383 * tree-inline.c (estimate_num_insns): Likewise.
14384 (expand_call_inline): Do not copy DECL_NO_TBAA_P.
14385 (copy_decl_to_var): Likewise.
14386 (copy_result_decl_to_var): Likewise.
14387 * tree-pretty-print.c (dump_generic_node): Do not handle
14388 CHANGE_DYNAMIC_TYPE_EXPR.
14389 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
14390 * tree-ssa-operands.c (get_expr_operands): Likewise.
14391 * tree-ssa-structalias.c (struct variable_info): Remove
14392 no_tbaa_pruning member.
14393 (new_var_info): Do not set it based on DECL_NO_TBAA_P.
14394 (unify_nodes): Do not copy it.
14395 (find_func_aliases): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
14396 (dump_solution_for_var): Do not dump no_tbaa_pruning state.
14397 (set_uids_in_ptset): Do not check it.
14398 (find_what_var_points_to): Likewise.
14399 (compute_tbaa_pruning): Remove.
14400 (compute_points_to_sets): Do not call it.
14401 * tree.c (walk_tree_1): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
14402 * tree.def (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
14403 * tree.h (CHANGE_DYNAMIC_TYPE_NEW_TYPE): Remove.
14404 (CHANGE_DYNAMIC_TYPE_LOCATION): Likewise.
14405 (DECL_NO_TBAA_P): Likewise.
14406 (struct tree_decl_common): Move no_tbaa_flag to unused flags section.
14407 * omp-low.c (copy_var_decl): Do not copy DECL_NO_TBAA_P.
14408 (expand_omp_atomic_pipeline): Do not set it.
14409 * print-tree.c (print_node): Do not dump it.
14410 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
14413 2009-05-22 Vladimir Makarov <vmakarov@redhat.com>
14416 * reg-stack.c (subst_stack_regs_pat): Remove gcc_assert for note
14419 2009-05-22 Mark Mitchell <mark@codesourcery.com>
14421 * tree.c (handle_dll_attribute): Mark dllexport'd inlines as
14424 2009-05-22 Ben Elliston <bje@au.ibm.com>
14426 * Makefile.in (bversion.h, s-bversion): New targets.
14427 (TOPLEV_H): Add bversion.h.
14428 * toplev.h: Include "bversion.h".
14429 (ATTRIBUTE_GCC_DIAG): When building with checking disabled, use
14430 the __format__ attribute only if compiling with the same version
14431 of GCC as the sources (the "build version").
14433 2009-05-22 Ben Elliston <bje@au.ibm.com>
14435 * c-format.c (handle_format_attribute): Fix comment typo.
14437 2009-05-21 Steve Ellcey <sje@cup.hp.com>
14440 * config/ia64/ia64.opt (mfused-madd): New.
14441 * config/ia64/ia64.h (TARGET_DEFAULT): Set MASK_FUSED_MADD.
14442 * config/ia64/hpux.h (TARGET_DEFAULT): Ditto.
14443 * config/ia64/ia64.md (maddsf4, msubsf4, nmaddsf4,
14444 madddf4, madddf4_trunc, msubdf4, msubdf4_trunc, nmadddf4,
14445 nmadddf4_truncsf, maddxf4, maddxf4_truncsf, maddxf4_truncdf,
14446 msubxf4, msubxf4_truncsf msubxf4_truncdf, nmaddxf4,
14447 nmaddxf4_truncsf, nmaddxf4_truncdf): Check TARGET_FUSED_MADD.
14448 * config/ia64/vect.md (addv2sf3, subv2sf3): Force fpma/fpms
14449 instruction if !TARGET_FUSED_MADD.
14450 (fpma, fpms): Remove colon from name.
14452 2009-05-22 Richard Guenther <rguenther@suse.de>
14454 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record
14455 TMR_ORIGINAL. Always either record TMR_SYMBOL or TMR_BASE.
14456 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
14458 (create_expression_by_pieces): Only convert if necessary.
14459 * gimplify.c (gimplify_expr): Handle TARGET_MEM_REF.
14460 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle INTEGER_CST.
14462 2009-05-21 Adam Nemet <anemet@caviumnetworks.com>
14464 * config/mips/mips.md (*extzv_trunc<mode>_exts): Turn into a
14465 regular pattern from a template and rename it ...
14466 (*extzv_truncsi_exts): ... to this.
14468 2009-05-21 Richard Guenther <rguenther@suse.de>
14470 * cgraph.h (struct cgraph_node): Remove inline_decl member.
14471 * ipa-inline.c (cgraph_mark_inline_edge): Do not check it.
14472 (cgraph_default_inline_p): Likewise.
14473 (cgraph_decide_inlining_incrementally): Likewise.
14475 2009-05-21 H.J. Lu <hongjiu.lu@intel.com>
14476 Uros Bizjak <ubizjak@gmail.com>
14478 * config/i386/cpuid.h (bit_MOVBE): New.
14480 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
14482 * config/i386/i386.c (OPTION_MASK_ISA_MOVBE_SET): New.
14483 (OPTION_MASK_ISA_MOVBE_UNSET): Likewise.
14484 (ix86_handle_option): Handle OPT_mmovbe.
14485 (ix86_target_string): Add -mmovbe.
14486 (pta_flags): Add PTA_MOVBE.
14487 (processor_alias_table): Add PTA_MOVBE to "atom".
14488 (override_options): Handle PTA_MOVBE.
14490 * config/i386/i386.h (TARGET_MOVBE): New.
14492 * config/i386/i386.md (bswapsi2): Check TARGET_MOVBE.
14493 (*bswapsi_movbe): New.
14494 (*bswapdi_movbe): Likewise.
14495 (bswapdi2): Renamed to ...
14496 (*bswapdi_1): This.
14497 (bswapdi2): New expander.
14499 * config/i386/i386.opt (mmovbe): New.
14501 * doc/invoke.texi: Document -mmovbe.
14503 2009-05-21 Taras Glek <tglek@mozilla.com>
14505 * plugin.c (try_init_one_plugin): Updated to new plugin_init API.
14506 * gcc-plugin.h (plugin_init): Updated signature.
14507 * gcc-plugin.h (plugin_name_args): Moved to this header.
14508 * doc/plugins.texi (plugin_init): Updated documention to reflect
14510 * doc/plugins.texi (plugin_name_args): Added to documention.
14512 2009-05-21 Mark Mitchell <mark@codesourcery.com>
14514 * config/arm/neon.md (*mul<mode>3add<mode>_neon): New pattern.
14515 (*mul<mode>3neg<mode>add<mode>_neon): Likewise.
14517 2009-05-21 Shujing Zhao <pearly.zhao@oracle.com>
14519 * config/i386/i386.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P and
14520 JUMP_TABLE_DATA_P predicates where applicable.
14521 * config/i386/predicates.md: Ditto.
14522 * config/i386/sse.md: Ditto.
14524 2009-05-21 Jakub Jelinek <jakub@redhat.com>
14526 * config/i386/i386.md (adddi_4_rex64, addsi_4, addhi_4): For
14527 operand2 -128 override length_immediate attribute to 1.
14528 * config/i386/predicates.md (constm128_operand): New predicate.
14530 * config/i386/i386.c (memory_address_length): Handle %r12
14531 the same as %rsp and %r13 the same as %rbp. For %rsp and %rbp
14533 (ix86_attr_length_address_default): For MODE_SI lea in 64-bit
14534 mode look through optional ZERO_EXTEND and SUBREG.
14535 * config/i386/i386.md (R12_REG): New define_constant.
14536 (prefix_data16): For sse unit set also for MODE_TI insns.
14537 (prefix_rex): For -m32 always return 0. For TYPE_IMOVX
14538 insns set if operand 1 is ext_QIreg_operand.
14539 (modrm): For TYPE_IMOV clear only if not MODE_DI. For
14540 TYPE_{ALU{,1},ICMP,TEST} insn clear if there is non-shortened
14542 (*movdi_extzv_1, zero_extendhidi2, zero_extendqidi2): Change
14543 mode from MODE_DI to MODE_SI.
14544 (movdi_1_rex64): Override modrm and length_immediate attributes
14545 only for movabs (TYPE_IMOV, alternative 2).
14546 (zero_extendsidi2_rex64): Clear prefix_0f attribute if TYPE_IMOVX.
14547 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
14548 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
14549 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
14550 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Set
14551 prefix_rex attribute if DImode.
14552 (*adddi_1_rex64, *adddi_2_rex64, *adddi_3_rex64, *adddi_5_rex64,
14553 *addsi_1, *addsi_1_zext, *addsi_2, *addsi_2_zext, *addsi_3,
14554 *addsi_3_zext, *addsi_5, *addhi_1_lea, *addhi_1, *addhi_2, *addhi_3,
14555 *addhi_5, *addqi_1_lea, *addqi_1): Override length_immediate
14556 attribute to 1 if TYPE_ALU and operand 2 is const128_operand.
14557 (pro_epilogue_adjust_stack_1, pro_epilogue_adjust_stack_rex64):
14558 Likewise. For TYPE_IMOV clear length_immediate attribute.
14559 (*ashldi3_1_rex64, *ashldi3_cmp_rex64, *ashldi3_cconly_rex64,
14560 *ashlsi3_1, *ashlsi3_1_zext, *ashlsi3_cmp, **ashlsi3_cconly,
14561 *ashlsi3_cmp_zext, *ashlhi3_1_lea, *ashlhi3_1, *ashlhi3_cmp,
14562 *ashlhi3_cconly, *ashlqi3_1_lea, *ashlqi3_1, *ashlqi3_cmp,
14563 *ashlqi3_cconly): Override length_immediate attribute to 0 if TYPE_ALU
14564 or one operand TYPE_ISHIFT.
14565 (*ashrdi3_1_one_bit_rex64, *ashrdi3_one_bit_cmp_rex64,
14566 *ashrdi3_one_bit_cconly_rex64, *ashrsi3_1_one_bit,
14567 *ashrsi3_1_one_bit_zext, *ashrsi3_one_bit_cmp,
14568 *ashrsi3_one_bit_cconly, *ashrsi3_one_bit_cmp_zext,
14569 *ashrhi3_1_one_bit, *ashrhi3_one_bit_cmp, *ashrhi3_one_bit_cconly,
14570 *ashrqi3_1_one_bit, *ashrqi3_1_one_bit_slp, *ashrqi3_one_bit_cmp,
14571 *ashrqi3_one_bit_cconly, *lshrdi3_1_one_bit_rex64,
14572 *lshrdi3_cmp_one_bit_rex64, *lshrdi3_cconly_one_bit_rex64,
14573 *lshrsi3_1_one_bit, *lshrsi3_1_one_bit_zext, *lshrsi3_one_bit_cmp,
14574 *lshrsi3_one_bit_cconly, *lshrsi3_cmp_one_bit_zext,
14575 *lshrhi3_1_one_bit, *lshrhi3_one_bit_cmp, *lshrhi3_one_bit_cconly,
14576 *lshrqi3_1_one_bit, *lshrqi3_1_one_bit_slp, *lshrqi2_one_bit_cmp,
14577 *lshrqi2_one_bit_cconly, *rotlsi3_1_one_bit_rex64, *rotlsi3_1_one_bit,
14578 *rotlsi3_1_one_bit_zext, *rotlhi3_1_one_bit, *rotlqi3_1_one_bit_slp,
14579 *rotlqi3_1_one_bit, *rotrdi3_1_one_bit_rex64, *rotrsi3_1_one_bit,
14580 *rotrsi3_1_one_bit_zext, *rotrhi3_one_bit, *rotrqi3_1_one_bit,
14581 *rotrqi3_1_one_bit_slp): Override length_immediate attribute to 0,
14582 set mode attribute, don't override length attribute.
14583 (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Set prefix_0f attribute
14585 (return_internal_long): Set length attribute to 2 instead of 1.
14586 (*strmovqi_rex_1, *strsetqi_rex_1, *rep_stosqi_rex64,
14587 *cmpstrnqi_nz_rex_1, *cmpstrnqi_rex_1, *strlenqi_rex_1): Clear
14588 prefix_rex attribute.
14589 * config/i386/predicates.md (ext_QIreg_operand, const128_operand):
14591 (memory_displacement_only_operand): Always return 0 for TARGET_64BIT.
14593 2009-05-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14595 * config/arm/thumb2.md (orsi_notsi_si): Fix typo in pattern.
14597 2009-05-20 Ian Lance Taylor <iant@google.com>
14599 * tree.c (build_tree_list_vec_stat): New function.
14600 (ctor_to_vec): New function.
14601 (build_nt_call_vec): New function.
14602 (build_call_array): Change args to be a const pointer.
14603 (build_call_vec): New function.
14604 * tree.h (build_nt_call_vec): Declare.
14605 (build_tree_list_vec_stat): Declare.
14606 (build_tree_list_vec): Define.
14607 (build_call_array): Update declaration.
14608 (build_call_vec): Declare.
14609 (ctor_to_vec): Declare.
14610 * c-common.c (tree_vector_cache): New static variable.
14611 (make_tree_vector): New function.
14612 (release_tree_vector): New function.
14613 (make_tree_vector_single): New function.
14614 (make_tree_vector_copy): New function.
14615 * c-common.h (tree_vector_cache, make_tree_vector): Declare.
14616 (make_tree_vector_single, make_tree_vector_copy): Declare.
14617 * c-parser.c (cached_expr_list_1, cached_expr_list_2): Remove.
14618 (c_parser_expr_list): Don't manage cache here, instead call
14620 (c_parser_release_expr_list): Remove static function.
14621 (c_parser_vec_to_tree_list): Remove static function.
14622 (c_parser_attributes): Call build_tree_list_vec instead of
14623 c_parser_vec_to_tree_list. Call release_tree_vector instead of
14624 c_parser_release_expr_list.
14625 (c_parser_postfix_expression_after_primary): Likewise.
14626 (c_parser_objc_keywordexpr): Likewise.
14628 2009-05-20 Sandra Loosemore <sandra@codesourcery.com>
14630 * doc/tm.texi (Misc): Document TARGET_INVALID_PARAMETER_TYPE,
14631 TARGET_INVALID_RETURN_TYPE, TARGET_PROMOTED_TYPE, and
14632 TARGET_CONVERT_TO_TYPE.
14633 * hooks.c (hook_tree_const_tree_null): Define.
14634 * hooks.h (hook_tree_const_tree_null): Declare.
14635 * target.h (struct gcc_target): Add invalid_parameter_type,
14636 invalid_return_type, promoted_type, and convert_to_type fields.
14637 * target-def.h: (TARGET_INVALID_PARAMETER_TYPE): Define.
14638 (TARGET_INVALID_RETURN_TYPE): Define.
14639 (TARGET_PROMOTED_TYPE): Define.
14640 (TARGET_CONVERT_TO_TYPE): Define.
14641 (TARGET_INITIALIZER): Update for new fields.
14642 * c-decl.c (grokdeclarator): Check targetm.invalid_return_type.
14643 (grokparms): Check targetm.invalid_parameter_type.
14644 * c-typeck.c (default_conversion): Check targetm.promoted_type.
14645 * c-convert.c (convert): Check targetm.convert_to_type.
14647 2009-05-20 Adam Nemet <anemet@caviumnetworks.com>
14649 * config/mips/mips.md (*extenddi_truncate<mode>,
14650 *extendsi_truncate<mode>): Emit exts if supported. Add attribute
14652 (*extendhi_truncateqi): New define_insn_and_sptit.
14654 2009-05-20 Jakub Jelinek <jakub@redhat.com>
14656 PR middle-end/40204
14657 * fold-const.c (fold_binary) <case BIT_AND_EXPR>: Avoid infinite
14658 recursion if build_int_cst_type returns the same INTEGER_CST as arg1.
14660 2009-05-20 Eric Botcazou <ebotcazou@adacore.com>
14662 * fold-const.c (build_fold_addr_expr_with_type): Take the address of
14663 the operand of VIEW_CONVERT_EXPR.
14665 2009-05-20 H.J. Lu <hongjiu.lu@intel.com>
14667 * config/i386/driver-i386.c (host_detect_local_cpu): Check
14668 extended family and model for Intel processors. Support Intel Atom.
14670 2009-05-20 Olivier Hainque <hainque@adacore.com>
14672 * gstab.h (stab_code_type): Define, to be used instead of the
14673 __stab_debug_code enum, made anonymous. Add 2009 to the copyright
14675 * dbxout.c (STAB_CODE_TYPE): Remove #define and replace use
14676 occurrences by stab_code_type.
14677 * mips-tfile.c (STAB_CODE_TYPE): Remove #define, unused.
14679 2009-05-20 Martin Jambor <mjambor@suse.cz>
14681 * tree-flow.h (insert_edge_copies_seq): Undeclare.
14682 (sra_insert_before): Likewise.
14683 (sra_insert_after): Likewise.
14684 (sra_init_cache): Likewise.
14685 (sra_type_can_be_decomposed_p): Likewise.
14686 * tree-mudflap.c (insert_edge_copies_seq): Copied here from tree-sra.c
14687 * tree-sra.c (sra_type_can_be_decomposed_p): Made static.
14688 (sra_insert_before): Likewise.
14689 (sra_insert_after): Likewise.
14690 (sra_init_cache): Likewise.
14691 (insert_edge_copies_seq): Made static and moved upwards.
14693 * tree-complex.c (extract_component): Added VIEW_CONVERT_EXPR switch
14696 * tree-flow-inline.h (contains_view_convert_expr_p): New function.
14698 * ipa-prop.c (get_ssa_def_if_simple_copy): New function.
14699 (determine_cst_member_ptr): Call get_ssa_def_if_simple_copy to skip
14702 2009-05-20 Richard Guenther <rguenther@suse.de>
14704 * expr.c (expand_expr_real_1): Avoid calling do_store_flag
14705 with mismatched comparison modes.
14707 2009-05-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14709 * config/arm/arm.md (*arm_iorsi3): Refactored for only ARM.
14710 (peephole ior (reg, int) -> mov, ior): Refactored for only ARM.
14711 * config/arm/thumb2.md (*thumb_andsi_not_shiftsi_si): Allow bic
14712 with shifts for Thumb2.
14713 (orsi_notsi): New for orn.
14714 (*thumb_orsi_notshiftsi_si): Allow orn with shifts.
14715 (*thumb2_iorsi3): Rewrite support for iorsi for Thumb2.
14716 * config/arm/arm.c (const_ok_for_op): Split case for IOR for Thumb2.
14717 (arm_gen_constant): Set can_invert for IOR and Thumb2, Add comments.
14718 Don't invert remainder for IOR.
14720 2009-05-19 Zdenek Dvorak <ook@ucw.cz>
14722 PR tree-optimization/40087
14723 * tree-ssa-loop-niter.c (number_of_iterations_ne_max,
14724 number_of_iterations_ne): Rename never_infinite argument.
14725 (number_of_iterations_lt_to_ne, number_of_iterations_lt,
14726 number_of_iterations_le): Handle pointer-type ivs when
14727 exit_must_be_taken is false.
14728 (number_of_iterations_cond): Do not always assume that
14729 exit_must_be_taken if the control variable is a pointer.
14731 2009-05-19 Andrew Pinski <andrew_pinski@playstation.sony.com>
14733 * c-typeck.c (build_binary_op): Allow % on integal vectors.
14734 * doc/extend.texi (Vector Extension): Document that % is allowed too.
14736 2009-05-19 H.J. Lu <hongjiu.lu@intel.com>
14738 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Check
14739 ASM_OUTPUT_MAX_SKIP_PAD instead of ASM_OUTPUT_MAX_SKIP_ALIGN.
14741 2009-05-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
14744 * c.opt (Wlogical-op): Disabled by default.
14745 * c-opt (c_common_post_options): Do not enable Wlogical-op with
14747 * doc/invoke.texi (Wlogical-op): Likewise.
14749 2009-05-19 Eric Botcazou <ebotcazou@adacore.com>
14751 * tree-scalar-evolution.c (follow_ssa_edge_expr) <NOP_EXPR>: Turn
14753 <PLUS_EXPR>: Strip useless type conversions instead of type nops.
14754 Propagate the type of the first operand.
14755 <ASSERT_EXPR>: Simplify.
14756 (follow_ssa_edge_in_rhs): Use gimple_expr_type to get the type.
14757 Rewrite using the RHS code as discriminant.
14758 <NOP_EXPR>: Turn into CASE_CONVERT.
14759 <PLUS_EXPR>: Propagate the type of the first operand.
14761 2009-05-19 Steve Ellcey <sje@cup.hp.com>
14763 * config/ia64/ia64-protos.h (ia64_dconst_0_5): New.
14764 (ia64_dconst_0_375): New.
14765 * config/ia64/ia64.c (ia64_override_options): Remove
14766 -minline-sqrt-min-latency warning.
14767 (ia64_dconst_0_5_rtx, ia64_dconst_0_5): New.
14768 (ia64_dconst_0_375_rtx, ia64_dconst_0_375): New
14769 * config/ia64/ia64.md (*sqrt_approx): Remove.
14770 (sqrtsf2): Remove #if 0.
14771 (sqrtsf2_internal_thr): Rewrite and move to div.md.
14772 (sqrtdf): Remove assert.
14773 (sqrtdf2_internal_thr): Rewrite and move to div.md.
14774 (sqrtxf2): Remove #if 0.
14775 (sqrtxf2_internal_thr): Rewrite and move to div.md.
14776 * div.md (sqrt_approx_rf): New.
14777 (sqrtsf2_internal_thr): New implementation.
14778 (sqrtsf2_internal_lat): New.
14779 (sqrtdf2_internal_thr: New implementation.
14780 (sqrtxf2_internal): New implementation.
14782 2009-05-19 Francois-Xavier Coudert <fxcoudert@gmail.com>
14783 Hans-Peter Nilsson <hp@axis.com>
14785 * defaults.h (UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE)
14786 (WCHAR_TYPE, MODIFIED_WCHAR_TYPE, PTRDIFF_TYPE, WINT_TYPE)
14787 (INTMAX_TYPE, UINTMAX_TYPE, SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE)
14788 (INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE)
14789 (UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE)
14790 (INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE)
14791 (UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE)
14792 (INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE)
14793 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE)
14794 (SIZE_TYPE, PID_TYPE, CHAR16_TYPE, CHAR32_TYPE): Move defaults here...
14795 * c-common.c: ...from here.
14797 2009-05-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
14799 * c-common.c (warn_logical_operator): Remove unnecessary conditionals.
14801 2009-05-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14803 * builtins.c (do_mpc_arg1): Separate MPFR/MPC C rounding types.
14805 2009-05-19 Ben Elliston <bje@au.ibm.com>
14807 * unwind-dw2-fde.c (fde_unencoded_compare): Replace type punning
14808 assignments with memcpy calls.
14809 (add_fdes): Likewise.
14810 (binary_search_unencoded_fdes): Likewise.
14811 (linear_search_fdes): Eliminate type puns.
14813 2009-05-19 Richard Guenther <rguenther@suse.de>
14815 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do
14816 not falsely claim to have propagated into all uses.
14818 2009-05-19 Ben Elliston <bje@au.ibm.com>
14820 * doc/invoke.texi (C Dialect Options): Update OpenMP specification
14823 2009-05-18 Kaz Kojima <kkojima@gcc.gnu.org>
14825 * config/sh/sh-protos.h (sh_legitimate_address_p): Remove.
14826 * config/sh/sh.c (sh_legitimate_address_p): Make static.
14827 (TARGET_LEGITIMATE_ADDRESS_P): New.
14828 * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
14829 * config/sh/sh.md: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
14831 2009-05-18 Dodji Seketeli <dodji@redhat.com>
14834 * dwarf2out.c (gen_type_die_with_usage): Generate the DIE as a
14835 child of the containing namespace's DIE.
14837 2009-05-18 Adam Nemet <anemet@caviumnetworks.com>
14839 * config/mips/mips.md (*zero_extend<GPR:mode>_trunc<SHORT:mode>,
14840 *zero_extendhi_truncqi): Move after the zero_extend patterns.
14841 (*extenddi_truncate<mode>, *extendsi_truncate<mode>): Move after the
14844 2009-05-18 H.J. Lu <hongjiu.lu@intel.com>
14847 * config/i386/i386.c (ix86_avoid_jump_misspredicts): Replace
14848 gen_align with gen_pad.
14849 (ix86_reorg): Check ASM_OUTPUT_MAX_SKIP_PAD instead of
14850 #ifdef ASM_OUTPUT_MAX_SKIP_ALIGN.
14852 * config/i386/i386.h (ASM_OUTPUT_MAX_SKIP_PAD): New.
14853 * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_PAD): Likewise.
14855 * config/i386/i386.md (align): Renamed to ...
14856 (pad): This. Replace ASM_OUTPUT_MAX_SKIP_ALIGN with
14857 ASM_OUTPUT_MAX_SKIP_PAD.
14859 2009-05-18 Andreas Schwab <schwab@linux-m68k.org>
14861 * config.gcc: Fix variable syntax.
14864 * config/m68k/m68k.c (output_andsi3): Mask off sign bit copies
14865 before calling exact_log2.
14866 (output_iorsi3): Likewise.
14867 (output_xorsi3): Likewise.
14869 2009-05-18 Kaz Kojima <kkojima@gcc.gnu.org>
14871 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register
14872 for the none zero constant operand except for EQ and NE
14873 comprisons even when the first operand is R0.
14875 2009-05-18 Andreas Krebbel <krebbel1@de.ibm.com>
14877 * config/s390/2064.md: Remove trailing whitespaces.
14878 * config/s390/2084.md: Likewise.
14879 * config/s390/constraints.md: Likewise.
14880 * config/s390/fixdfdi.h: Likewise.
14881 * config/s390/libgcc-glibc.ver: Likewise.
14882 * config/s390/s390-modes.def: Likewise.
14883 * config/s390/s390-protos.h: Likewise.
14884 * config/s390/s390.c: Likewise.
14885 * config/s390/s390.h: Likewise.
14886 * config/s390/s390.md: Likewise.
14887 * config/s390/tpf-unwind.h: Likewise.
14889 2009-05-18 Maxim Kuvyrkov <maxim@codesourcery.com>
14891 * config/m68k/m68k.c (m68k_legitimize_address): Fix typo in signature.
14893 2009-05-18 Maxim Kuvyrkov <maxim@codesourcery.com>
14896 * configure.ac (m68k-*-*): Check if binutils support TLS.
14897 * configure: Regenerate.
14898 * config/m68k/predicates.md (symbolic_operand): Extend comment.
14899 * config/m68k/constraints.md (Cu): New constraint.
14900 * config/m68k/m68k.md (UNSPEC_GOTOFF): Remove.
14901 (UNSPEC_RELOC16, UNSPEC_RELOC32): New constants.
14902 (movsi): Handle TLS symbols.
14903 (addsi3_5200): Handle XTLS symbols, indent.
14904 * config/m68k/m68k-protos.h (m68k_legitimize_tls_address): Declare.
14905 (m68k_tls_reference_p): Declare.
14906 (m68k_legitimize_address): Declare.
14907 (m68k_unwrap_symbol): Declare.
14908 * config/m68k/m68k.opt (mxtls): New option.
14909 * config/m68k/m68k.c (ggc.h): Include.
14910 (m68k_output_dwarf_dtprel): Implement hook.
14911 (TARGET_HAVE_TLS, TARGET_ASM_OUTPUT_DWARF_DTPREL): Define.
14912 (m68k_expand_prologue): Load GOT pointer when function needs it.
14913 (m68k_illegitimate_symbolic_constant_p): Handle TLS symbols.
14914 (m68k_legitimate_constant_address_p): Same.
14915 (m68k_decompose_address): Handle TLS references.
14916 (m68k_get_gp): New static function.
14917 (enum m68k_reloc): New contants.
14918 (TLS_RELOC_P): New macro.
14919 (m68k_wrap_symbol): New static function.
14920 (m68k_unwrap_symbol): New function.
14921 (m68k_final_prescan_insn_1): New static function.
14922 (m68k_final_prescan_insn): New function.
14923 (m68k_move_to_reg, m68k_wrap_symbol_into_got_ref): New static
14925 (legitimize_pic_address): Handle TLS references..
14926 (m68k_tls_get_addr, m68k_get_tls_get_addr)
14927 (m68k_libcall_value_in_a0_p)
14928 (m68k_call_tls_get_addr, m68k_read_tp, m68k_get_m68k_read_tp)
14929 (m68k_call_m68k_read_tp): Helper variables and functions for ...
14930 (m68k_legitimize_tls_address): Handle TLS references.
14931 (m68k_tls_symbol_p, m68k_tls_reference_p_1, m68k_tls_reference_p):
14933 (m68k_legitimize_address): Handle TLS symbols.
14934 (m68k_get_reloc_decoration): New static function.
14935 (m68k_output_addr_const_extra): Handle UNSPEC_RELOC16 and
14937 (m68k_output_dwarf_dtprel): Implement hook.
14938 (print_operand_address): Handle UNSPEC_RELOC16 adn UNSPEC_RELOC32.
14939 (m68k_libcall_value): Return result in A0 instead of D0 when asked by
14940 m68k_call_* routines.
14941 (sched_attr_op_type): Handle TLS symbols.
14942 (gt-m68k.h): Include.
14943 * config/m68k/m68k.h (FINAL_PRESCAN_INSN): Define.
14944 (LEGITIMATE_PIC_OPERAND_P): Support TLS.
14946 2009-05-18 Martin Jambor <mjambor@suse.cz>
14948 * ipa-prop.c (ipa_check_stmt_modifications): Removed.
14949 (visit_store_addr_for_mod_analysis): New function.
14950 (ipa_detect_param_modifications): Use walk_stmt_load_store_addr_ops.
14951 (determine_cst_member_ptr): Use gimple_assign_single_p.
14952 (ipa_get_stmt_member_ptr_load_param): Use gimple_assign_single_p.
14953 (ipa_analyze_call_uses): Use !gimple_assign_rhs2 rather than number of
14954 operands. Don't check number of operands of a NOP_EXPR.
14956 2009-05-18 Eric Fisher <joefoxreal@gmail.com>
14958 * doc/tree-ssa.texi (SSA Operands): Fix a mistake.
14960 2009-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
14963 * c-common.c (warn_logical_operator): Don't warn if one of
14964 expression isn't always true or false.
14966 2009-05-17 Kai Tietz <kai.tietz@onevision.com>
14968 * config/i386/biarch32.h: New file.
14969 * config.gcc: Add for target i386-w64-* the biarch32.h to tm_file.
14971 2009-05-17 Adam Nemet <anemet@caviumnetworks.com>
14973 * config/mips/mips.md (*zero_extend<mode>_trunchi,
14974 *zero_extend<mode>_truncqi): Merge these into ...
14975 (*zero_extend<GPR:mode>_trunc<SHORT:mode>): ... this new pattern.
14976 Name the pattern following this as *zero_extendhi_truncqi.
14978 2009-05-16 Brad Lucier <lucier@math.purdue.edu>
14980 PR middle-end/39301
14981 * hwint.h: Add macro HOST_WIDEST_INT_PRINT.
14982 * bitmap.c (bitmap_descriptor): Make fields HOST_WIDEST_INT.
14983 (output_info): Make field HOST_WIDEST_INT.
14984 (print_statistics): Use HOST_WIDEST_INT_PRINT.
14985 (dump_bitmat_statistics): Same.
14987 2009-05-16 Francois-Xavier Coudert <fxcoudert@gmail.com>
14989 * config.gcc (use_gcc_stdint): Set to wrap.
14990 * config/darwin.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
14991 INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
14992 UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
14993 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
14994 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
14995 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
14996 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
14997 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
14999 2009-05-16 Joseph Myers <joseph@codesourcery.com>
15001 * config.gcc (mips*-*-*): Support arch_32, arch_64, tune_32 and
15003 * config/mips/mips.h (MIPS_ABI_DEFAULT, MULTILIB_ABI_DEFAULT):
15004 Move definitions earlier.
15005 (OPT_ARCH64, OPT_ARCH32): Define.
15006 (OPTION_DEFAULT_SPECS): Add entries for arch_32, arch_64, tune_32
15009 2009-05-16 Richard Earnshaw <rearnsha@arm.com>
15012 * arm.md (cstoresi_nltu_thumb1): Use a neg of ltu as the pattern name
15015 2009-05-16 Richard Earnshaw <rearnsha@arm.com>
15017 * arm.md (movdi2): Copy non-reg values to DImode registers.
15019 2009-05-16 Jakub Jelinek <jakub@redhat.com>
15022 * final.c (label_to_max_skip): New function.
15023 (label_to_alignment): Only use LABEL_TO_ALIGNMENT if
15024 CODE_LABEL_NUMBER <= max_labelno.
15025 * output.h (label_to_max_skip): New prototype.
15026 * config/i386/i386.c (ix86_avoid_jump_misspredicts): Renamed to...
15027 (ix86_avoid_jump_mispredicts): ... this. Don't define if
15028 ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined. Update comment.
15029 Handle CODE_LABELs with >= 16 byte alignment or with
15030 max_skip == (1 << align) - 1.
15031 (ix86_reorg): Don't call ix86_avoid_jump_mispredicts if
15032 ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined.
15035 * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Don't emit second
15036 .p2align 3 if MAX_SKIP is smaller than 7.
15037 * config/i386/linux.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
15039 2009-05-15 Ian Lance Taylor <iant@google.com>
15041 * alias.c (struct alias_set_entry_d): Rename from struct
15042 alias_set_entry. Change all uses.
15043 * except.c (struct call_site_record_d): Rename from struct
15044 call_site_record. Change all uses.
15045 * except.h (struct eh_region_d): Rename from struct eh_region.
15047 * gcse.c (struct hash_table_d): Rename from struct hash_table.
15049 * graphite.c (struct ivtype_map_elt_d): Rename fromstruct
15050 ivtype_map_elt. Change all uses.
15051 (struct rename_map_elt_d): Rename fromstruct rename_map_elt.
15053 (struct ifsese_d): Rename fromstruct ifsese. Change all uses.
15054 * graphite.h (struct name_tree_d): Rename from struct name_tree.
15056 (struct sese_d): Rename from struct sese. Change all uses.
15057 * omega.h (struct eqn_d): Rename from struct eqn. Change all uses.
15058 (struct omega_pb_d): Rename from struct omega_pb. Change all uses.
15059 * optabs.h (struct optab_d): Rename from struct optab. Change all
15061 (struct convert_optab_d): Rename from struct convert_optab.
15063 * tree-pass.h (struct ipa_opt_pass_d): Rename fromstruct
15064 ipa_opt_pass. Change all uses.
15065 * tree-predcom.c (struct dref_d): Rename from struct dref. Change
15068 * c-decl.c (pushtag): If -Wc++-compat, warn if the tag is already
15069 defined as a typedef.
15070 (grokdeclarator): If -Wc++-compat, warn if a typedef is already
15073 2009-05-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
15076 * fold-const.c (make_range,build_range_check,merge_ranges): Move
15078 (merge_ranges): Returns bool.
15079 * tree.h (make_range): .. to here.
15080 (build_range_check): Likewise.
15081 (merge_ranges): Likewise. Renamed from merge_ranges.
15082 * c-typeck.c (parser_build_binary_op): Update calls to
15083 warn_logical_operator.
15084 * c-common.c (warn_logical_operator): Add new warning.
15085 * c-common.h (warn_logical_operator): Update declaration.
15087 2009-05-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
15089 * ira-conflicts.c (add_insn_allocno_copies): Fix wrong conditional.
15091 2009-05-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15093 * doc/install.texi: Document MPC requirements, flags etc.
15095 * builtins.c (do_mpc_arg1, fold_builtin_ccos): New.
15096 (fold_builtin_cexp): Ensure we get a complex REAL_TYPE.
15097 Evaluate constant arguments.
15098 (fold_builtin_carg): Ensure we get a complex REAL_TYPE.
15099 (fold_builtin_1): Likewise, also evaluate constant arguments.
15100 Remove superfluous break.
15101 (do_mpc_ckconv): New.
15102 * real.h: Include mpc.h.
15103 * toplev.c (print_version): Output MPC version info if available.
15105 2009-05-15 Sandra Loosemore <sandra@codesourcery.com>
15107 * fold-const.c (fold_convert_const_real_from_real): Check for overflow.
15109 2009-05-15 H.J. Lu <hongjiu.lu@intel.com>
15111 * config/i386/i386.c (ix86_reorg): Call optimize_function_for_speed_p
15114 2009-05-15 Jan Hubicka <jh@suse.cz>
15116 * doc/invoke.texi (max-early-inliner-iterations): New flag.
15117 * ipa-inline.c (enum inlining_mode): New INLINE_SIZE_NORECURSIVE.
15118 (try_inline): Fix return value.
15119 (cgraph_decide_inlining_incrementally): Honor new value.
15120 (cgraph_early_inlining): Handle indirect inlining.
15121 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): New.
15123 2009-05-15 Jan Hubicka <jh@suse.cz>
15125 * cgraph.h (struct cgraph_node): Add finalized_by_frotnend flag.
15126 * cgraphunit.c (cgraph_finalize_function): Set it.
15127 (cgraph_expand_function): Use it.
15129 2009-05-15 Sandra Loosemore <sandra@codesourcery.com>
15131 * real.c (encode_ieee_half): Define.
15132 (decode_ieee_half): Define.
15133 (ieee_half_format): Define.
15134 (arm_half_format): Define.
15135 * real.h (ieee_half_format): Declare.
15136 (arm_half_format): Declare.
15138 2009-05-15 Sandra Loosemore <sandra@codesourcery.com>
15140 * optabs.c (prepare_float_lib_cmp): Test that the comparison,
15141 swapped, and reversed optabs exist before trying to use them.
15143 2009-05-15 Paul Brook <paul@codesourcery.com>
15144 Sandra Loosemore <sandra@codesourcery.com>
15146 * config/arm/arm.c (neon_vector_mem_operand): Handle element/structure
15147 loads. Allow PRE_DEC.
15148 (output_move_neon): Handle PRE_DEC.
15149 (arm_print_operand): Add 'A' for neon structure loads.
15150 * config/arm/arm-protos.h (neon_vector_mem_operand): Update prototype.
15151 * config/arm/neon.md (neon_mov): Update comment.
15152 * config/arm/constraints.md (Un, Us): Update neon_vector_mem_operand
15154 (Um): New constraint.
15156 2009-05-15 Jan Hubicka <jh@suse.cz>
15158 Revert the following patch until testsuite fallout is fixed:
15159 * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
15160 * cgraph.h (struct inline_summary): New filed self_wize,
15161 size_inlining_benefit, self_time and time_inlining_benefit.
15162 (struct cgraph_global_info): Replace insns by time ans size fields.
15163 * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
15164 (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
15165 (ipcp_update_callgraph): Do not touch function bodies.
15166 * ipa-inline.c: Include except.h
15167 (MAX_TIME): New constant.
15168 (overall_insns): Remove
15169 (overall_size, max_benefit): New static variables.
15170 (cgraph_estimate_time_after_inlining): New function.
15171 (cgraph_estimate_size_after_inlining): Rewrite using benefits.
15172 (cgraph_clone_inlined_nodes): Update size.
15173 (cgraph_mark_inline_edge): Update size.
15174 (cgraph_estimate_growth): Use size info.
15175 (cgraph_check_inline_limits): Check size.
15176 (cgraph_default_inline_p): Likewise.
15177 (cgraph_edge_badness): Compute badness based on benefit and size cost.
15178 (cgraph_decide_recursive_inlining): Check size.
15179 (cgraph_decide_inlining_of_small_function): Update size; dump sizes
15181 (cgraph_decide_inlining): Likewise.
15182 (cgraph_decide_inlining_incrementally): Likewise; honor
15183 PARAM_EARLY_INLINING_INSNS.
15184 (likely_eliminated_by_inlining_p): New predicate.
15185 (estimate_function_body_sizes): New function.
15186 (compute_inline_parameters): Use it.
15187 * except.c (must_not_throw_labels): New function.
15188 * except.h (must_not_throw_labels): Declare.
15189 * tree-inline.c (init_inline_once): Kill inlining_weigths
15190 * tree-ssa-structalias.c: Avoid uninitialized warning.
15191 * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
15192 (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
15193 (PARAM_INLINE_CALL_COST): Remove.
15194 (PARAM_EARLY_INLINING_INSNS): New.
15196 2009-05-15 Richard Guenther <rguenther@suse.de>
15198 * tree-ssa-pre.c (eliminate): Use TODO_update_ssa_only_virtuals,
15199 not TODO_update_ssa.
15201 2009-05-15 Richard Guenther <rguenther@suse.de>
15203 PR tree-optimization/39999
15204 * gimple.h (gimple_expr_type): Use the expression type looking
15205 through useless conversions.
15206 * tree-ssa-sccvn.c (vn_nary_op_lookup_stmt): Use gimple_expr_type.
15207 (vn_nary_op_insert_stmt): Likewise.
15208 (simplify_binary_expression): Likewise.
15210 2009-05-15 Richard Guenther <rguenther@suse.de>
15212 * common.opt (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
15213 New options, enabled by default.
15214 * doc/invoke.texi (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
15216 * tree-ssa-forwprop.c (gate_forwprop): Use flag_tree_forwprop.
15217 * tree-ssa-phiprop.c (gate_phiprop): Use flag_tree_phiprop.
15218 * tree-ssa-structalias.c (gate_tree_pta): New function.
15219 (pass_build_alias): Use it.
15221 2009-05-15 Joseph Myers <joseph@codesourcery.com>
15223 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
15224 recurse on an invariant address if a conversion from a pointer
15225 type to a wider integer type is involved.
15227 2009-05-15 Jan Hubicka <jh@suse.cz>
15229 * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
15230 * cgraph.h (struct inline_summary): New filed self_wize,
15231 size_inlining_benefit, self_time and time_inlining_benefit.
15232 (struct cgraph_global_info): Replace insns by time ans size fields.
15233 * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
15234 (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
15235 (ipcp_update_callgraph): Do not touch function bodies.
15236 * ipa-inline.c: Include except.h
15237 (MAX_TIME): New constant.
15238 (overall_insns): Remove
15239 (overall_size, max_benefit): New static variables.
15240 (cgraph_estimate_time_after_inlining): New function.
15241 (cgraph_estimate_size_after_inlining): Rewrite using benefits.
15242 (cgraph_clone_inlined_nodes): Update size.
15243 (cgraph_mark_inline_edge): Update size.
15244 (cgraph_estimate_growth): Use size info.
15245 (cgraph_check_inline_limits): Check size.
15246 (cgraph_default_inline_p): Likewise.
15247 (cgraph_edge_badness): Compute badness based on benefit and size cost.
15248 (cgraph_decide_recursive_inlining): Check size.
15249 (cgraph_decide_inlining_of_small_function): Update size; dump sizes
15251 (cgraph_decide_inlining): Likewise.
15252 (cgraph_decide_inlining_incrementally): Likewise; honor
15253 PARAM_EARLY_INLINING_INSNS.
15254 (likely_eliminated_by_inlining_p): New predicate.
15255 (estimate_function_body_sizes): New function.
15256 (compute_inline_parameters): Use it.
15257 * except.c (must_not_throw_labels): New function.
15258 * except.h (must_not_throw_labels): Declare.
15259 * tree-inline.c (init_inline_once): Kill inlining_weigths
15260 * tree-ssa-structalias.c: Avoid uninitialized warning.
15261 * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
15262 (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
15263 (PARAM_INLINE_CALL_COST): Remove.
15264 (PARAM_EARLY_INLINING_INSNS): New.
15265 doc/invoke.texi (max-inline-insns-auto, early-inlining-insns): Update.
15266 (inline-call-cost): Remove.
15267 (early-inlining-insns): New.
15269 2009-05-15 Eric Botcazou <ebotcazou@adacore.com>
15271 * dbxout.c (dbxout_range_type): Add LOW and HIGH parameters. Use them
15273 (print_int_cst_bounds_in_octal_p): Likewise.
15274 (dbxout_type): Adjust calls to above functions. Be prepared to deal
15276 * dwarf2out.c (base_type_die): Likewise.
15277 (is_subrange_type): Delete.
15278 (subrange_type_die): Add LOW and HIGH parameters. Use them for bounds.
15279 (modified_type_die): Call subrange_type_for_debug_p on subtypes.
15280 * fold-const.c (fold_truth_not_expr) <CONVERT_EXPR>: Do not strip it
15281 if the destination type is boolean.
15282 (build_range_check): Do not special-case subtypes.
15283 (fold_sign_changed_comparison): Likewise.
15284 (fold_unary): Likewise.
15285 * langhooks-def.h (LANG_HOOKS_GET_SUBRANGE_BOUNDS): Define.
15286 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_GET_SUBRANGE_BOUNDS.
15287 * langhooks.h (lang_hooks_for_types): Add get_subrange_bounds.
15288 * tree.c (subrange_type_for_debug_p): New predicate based on the
15289 former is_subrange_type.
15290 * tree.h (subrange_type_for_debug_p): Declare.
15291 * tree-chrec.c (avoid_arithmetics_in_type_p): Delete.
15292 (convert_affine_scev): Remove call to above function.
15293 (chrec_convert_aggressive): Likewise.
15294 * tree-ssa.c (useless_type_conversion_p_1): Do not specifically return
15295 false for conversions involving subtypes.
15296 * tree-vrp.c (vrp_val_max): Do not special-case subtypes.
15297 (vrp_val_min): Likewise.
15298 (needs_overflow_infinity): Likewise.
15299 (extract_range_from_unary_expr): Likewise.
15301 2009-05-15 Paolo Bonzini <bonzini@gnu.org>
15303 * config/frv/frv.h: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
15304 * config/frv/frv.c: Likewise.
15305 * config/s390/s390.c: Likewise.
15306 * config/sparc/sparc.h: Likewise.
15307 * config/i386/i386.h: Likewise.
15308 * config/i386/i386.c: Likewise.
15309 * config/crx/crx.c: Likewise.
15310 * config/m68hc11/m68hc11.h: Likewise.
15311 * config/iq2000/iq2000.c: Likewise.
15312 * config/mn10300/mn10300.h: Likewise.
15313 * config/mn10300/mn10300.c: Likewise.
15314 * config/m68k/m68k.c: Likewise.
15315 * config/rs6000/rs6000.c: Likewise.
15316 * config/rs6000/xcoff.h: Likewise.
15317 * config/rs6000/linux64.h: Likewise.
15318 * config/rs6000/sysv4.h: Likewise.
15319 * config/score/score3.c: Likewise.
15320 * config/score/score7.c: Likewise.
15321 * config/score/score.c: Likewise.
15322 * config/arm/arm.md: Likewise.
15323 * config/mips/mips.c: Likewise.
15324 * config/mips/mips.md: Likewise.
15325 * config/bfin/bfin.h: Likewise.
15326 * config/pa/pa.c: Likewise.
15327 * config/pa/constraints.md: Likewise.
15329 * config/pdp11/pdp11-protos.h (legitimate_address_p): Delete.
15330 * config/pdp11/pdp11.c (legitimate_address_p): Delete.
15331 * config/pdp11/pdp11.h: Use memory_address_p instead.
15333 2009-05-14 Ian Lance Taylor <iant@google.com>
15335 * passes.c (finish_optimization_passes): Change i to int.
15336 * plugin.c (plugins_active_p): Change event to int.
15337 (dump_active_plugins): Likewise.
15338 * reginfo.c (invalid_mode_change_p): Change to to unsigned int.
15340 * tree.c (tree_range_check_failed): Change c to unsigned int.
15341 (omp_clause_range_check_failed): Likewise.
15342 (build_common_builtin_nodes): Change mode to int. Add cast.
15343 * config/ia64/ia64.c (is_emitted): Change r to unsigned int.
15344 (ia64_hard_regno_rename_ok, ia64_eh_uses): Likewise.
15346 * c-typeck.c (build_unary_op): If -Wc++-compat, warn about using
15347 ++ or -- with a variable of enum type.
15349 2009-05-14 Steven Bosscher <steven@gcc.gnu.org>
15352 * opts.c (common_handle_option): Add OPT_fcse_skip_blocks as a no-op.
15354 2009-05-14 Steven Bosscher <steven@gcc.gnu.org>
15356 * store-motion.c: Do not include params.h
15357 * Makefile.in: Fix dependencies for various files.
15359 2009-05-14 Steven Bosscher <steven@gcc.gnu.org>
15361 * auto-inc-dec.c: Fix pass description, remove apparent
15362 accidental duplication.
15364 2009-05-14 H.J. Lu <hongjiu.lu@intel.com>
15366 PR middle-end/40147
15367 * ipa-utils.h (memory_identifier_string): Moved to ...
15368 * tree.h (memory_identifier_string): Here. Add GTY(()).
15370 2009-05-14 Paolo Bonzini <bonzini@gnu.org>
15372 * doc/tm.texi (TARGET_LEGITIMATE_ADDRESS_P): Refer mainly to this
15373 in the former documentation of...
15374 (GO_IF_LEGITIMATE_ADDRESS): ... this.
15375 * ira-conflicts.c (get_dup_num): Use address_operand.
15376 * targhooks.c (default_legitimate_address_p): New.
15377 * targhooks.h (default_legitimate_address_p): New.
15378 * reload.c (strict_memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]:
15380 * recog.c (memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]: Call hook.
15381 * target.h (struct target): Add legitimate_address_p.
15382 * target-def.h (TARGET_LEGITIMATE_ADDRESS_P): New.
15383 (TARGET_INITIALIZER): Include it.
15385 * config/alpha/alpha.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
15386 * config/alpha/alpha-protos.h (alpha_legitimate_address_p): Remove.
15387 * config/alpha/alpha.c (alpha_legitimate_address_p): Make static.
15388 (TARGET_LEGITIMATE_ADDRESS_P): New.
15390 * config/frv/frv.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
15391 (REG_OK_STRICT_P): Delete.
15392 * config/frv/frv-protos.h (frv_legitimate_address_p): Rename to...
15393 (frv_legitimate_address_p_1): ... this.
15394 * config/frv/frv.c (frv_legitimate_address_p): Forward to...
15395 (frv_legitimate_address_p_1): ... the renamed old
15396 frv_legitimate_address_p.
15397 * config/frv/predicates.md: Adjust calls to frv_legitimate_address_p.
15398 (TARGET_LEGITIMATE_ADDRESS_P): New.
15400 * config/s390/s390.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
15401 * config/s390/s390-protos.h (legitimate_address_p): Remove.
15402 * config/s390/s390.c (legitimate_address_p): Rename to...
15403 (s390_legitimate_address_p): ... this, make static.
15404 (legitimize_address): Adjust call.
15405 (TARGET_LEGITIMATE_ADDRESS_P): New.
15406 * config/s390/constraints.md ("e"): Call strict_memory_address_p.
15408 * config/m32c/m32c.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
15409 * config/m32c/m32c-protos.h (m32c_legitimate_address_p): Remove.
15410 * config/m32c/m32c.c (m32c_legitimate_address_p): Make static.
15411 (TARGET_LEGITIMATE_ADDRESS_P): New.
15413 * config/spu/spu.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
15414 * config/spu/spu-protos.h (spu_legitimate_address): Remove.
15415 * config/spu/spu.c (spu_legitimate_address): Rename to...
15416 (spu_legitimate_address_p): ... this, make static.
15417 (TARGET_LEGITIMATE_ADDRESS_P): New.
15419 * config/sparc/sparc.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
15420 * config/sparc/sparc-protos.h (legitimate_address_p): Remove.
15421 * config/sparc/sparc.c (legitimate_address_p): Rename to...
15422 (sparc_legitimate_address_p): ... this, make static and return bool.
15423 (legitimize_address): Adjust call.
15424 (TARGET_LEGITIMATE_ADDRESS_P): New.
15426 * config/i386/i386.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
15427 * config/i386/i386-protos.h (legitimate_address_p): Remove.
15428 * config/i386/i386.c (legitimate_address_p): Rename to...
15429 (ix86_legitimate_address_p): ... this, make static.
15430 (constant_address_p): Move after it, adjust call.
15431 (TARGET_LEGITIMATE_ADDRESS_P): New.
15433 * config/avr/avr.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
15434 * config/avr/avr-protos.h (legitimate_address_p): Remove.
15435 * config/avr/avr.c (legitimate_address_p): Rename to...
15436 (avr_legitimate_address_p): ... this, make static.
15437 (legitimize_address): Adjust call.
15438 (TARGET_LEGITIMATE_ADDRESS_P): New.
15440 * config/crx/crx.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
15441 * config/crx/crx-protos.h (crx_legitimate_address_p): Remove.
15442 * config/crx/crx.c (crx_legitimate_address_p): Make static.
15443 (TARGET_LEGITIMATE_ADDRESS_P): New.
15445 * config/xtensa/xtensa.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
15446 * config/xtensa/xtensa-protos.h (xtensa_legitimate_address_p): Remove.
15447 * config/xtensa/xtensa.c (xtensa_legitimate_address_p): Make static.
15448 (TARGET_LEGITIMATE_ADDRESS_P): New.
15450 * config/stormy16/stormy16.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
15451 * config/stormy16/stormy16-protos.h (xstormy16_legitimate_address_p):
15453 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
15455 (TARGET_LEGITIMATE_ADDRESS_P): New.
15457 * config/m68hc11/m68hc11.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
15458 * config/m68hc11/m68hc11-protos.h (m68hc11_go_if_legitimate_address):
15460 * config/m68hc11/m68hc11.c (m68hc11_go_if_legitimate_address):
15462 (m68hc11_legitimate_address_p): ... this, make static.
15463 (go_if_legitimate_address_internal): Rename to...
15464 (m68hc11_legitimate_address_p_1): ... this.
15465 (legitimize_address): Adjust call.
15466 (TARGET_LEGITIMATE_ADDRESS_P): New.
15468 * config/iq2000/iq2000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
15469 * config/iq2000/iq2000-protos.h (iq2000_legitimate_address_p): Remove.
15470 * config/iq2000/iq2000.c (iq2000_legitimate_address_p): Make static.
15471 (TARGET_LEGITIMATE_ADDRESS_P): New.
15473 * config/mn10300/mn10300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
15474 * config/mn10300/mn10300-protos.h (legitimate_address_p): Remove.
15475 * config/mn10300/mn10300.c (legitimate_address_p): Rename to...
15476 (mn10300_legitimate_address_p): ... this, make static.
15477 (TARGET_LEGITIMATE_ADDRESS_P): New.
15479 * config/m68k/m68k.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
15480 * config/m68k/m68k-protos.h (m68k_legitimate_address_p): Remove.
15481 * config/m68k/m68k.c (m68k_legitimate_address_p): Make static.
15482 (TARGET_LEGITIMATE_ADDRESS_P): New.
15484 * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
15485 (REG_OK_STRICT_FLAG, REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Delete.
15486 (INT_REG_OK_FOR_BASE_P, INT_REG_OK_FOR_INDEX_P): Move above.
15487 * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
15488 * config/rs6000/rs6000-protos.h (rs6000_legitimate_address): Remove.
15489 * config/rs6000/rs6000.c (rs6000_legitimate_address): Rename to...
15490 (rs6000_legitimate_address_p): ... this, make static.
15491 (TARGET_LEGITIMATE_ADDRESS_P): New.
15492 (REG_MODE_OK_FOR_BASE_P): Delete.
15493 (rs6000_legitimize_reload_address): Use INT_REG_OK_FOR_BASE_P.
15495 * config/picochip/picochip.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
15496 * config/picochip/picochip-protos.h (picochip_legitimate_address_p):
15498 * config/picochip/picochip.c (picochip_legitimate_address_p): Make
15499 static, adjust types.
15500 (TARGET_LEGITIMATE_ADDRESS_P): New.
15502 * config/score/score.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
15503 * config/score/score.c (score_address_p): Rename to...
15504 (score_legitimate_address_p): ... this.
15505 (TARGET_LEGITIMATE_ADDRESS_P): New.
15506 * config/score/score3.c (score3_address_p): Rename to...
15507 (score3_legitimate_address_p): ... this.
15508 * config/score/score7.c (score7_address_p): Rename to...
15509 (score7_legitimate_address_p): ... this.
15511 * config/arm/arm.h (ARM_GO_IF_LEGITIMATE_ADDRESS,
15512 THUMB2_GO_IF_LEGITIMATE_ADDRESS, THUMB1_GO_IF_LEGITIMATE_ADDRESS,
15513 GO_IF_LEGITIMATE_ADDRESS): Delete.
15514 * config/arm/arm-protos.h (thumb1_legitimate_address_p,
15515 thumb2_legitimate_address_p): Delete.
15516 (arm_legitimate_address_p): Rename to...
15517 (arm_legitimate_address_outer_p): ... this.
15518 * config/arm/constraints.md ("Uq"): Adjust call.
15519 * config/arm/predicates.md (arm_extendqisi_mem_op): Likewise.
15520 * config/arm/arm.c (arm_legitimate_address_p): New, rename old one
15522 (arm_legitimate_address_outer_p): ... this.
15523 (thumb1_legitimate_address_p, thumb2_legitimate_address_p): Make
15525 (TARGET_LEGITIMATE_ADDRESS_P): New.
15527 * config/mips/mips.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
15528 * config/mips/mips-protos.h (mips_legitimate_address_p): Remove.
15529 * config/mips/mips.c (mips_legitimate_address_p): ... Make static.
15530 (TARGET_LEGITIMATE_ADDRESS_P): New.
15532 * config/vax/vax.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
15533 * config/vax/vax-protos.h (legitimate_address_p): Remove.
15534 * config/vax/vax.c (legitimate_address_p): Rename to...
15535 (vax_legitimate_address_p): ... this, make static.
15536 (TARGET_LEGITIMATE_ADDRESS_P): New.
15538 * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
15539 * config/h8300/h8300-protos.h (h8300_legitimate_address_p): Remove.
15540 * config/h8300/h8300.c (h8300_legitimate_address_p): ... Make static.
15541 (TARGET_LEGITIMATE_ADDRESS_P): New.
15543 * config/mmix/mmix.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
15544 * config/mmix/mmix-protos.h (mmix_legitimize_address): Remove.
15545 * config/mmix/mmix.c (mmix_legitimate_address): Rename to...
15546 (mmix_legitimate_address_p): ... this, make static.
15547 (TARGET_LEGITIMATE_ADDRESS_P): New.
15549 * config/bfin/bfin.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
15550 * config/bfin/bfin-protos.h (bfin_legitimate_address_p): Remove.
15551 * config/bfin/bfin.c (bfin_legitimate_address_p): ... Make static.
15552 (TARGET_LEGITIMATE_ADDRESS_P): New.
15554 2009-05-14 Paolo Bonzini <bonzini@gnu.org>
15556 * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Remove handling
15557 of MODE_COMPLEX_INT.
15559 2009-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
15561 * config/alpha/alpha.c (alpha_initialize_trampoline): Change 0 to
15562 LCT_NORMAL in function call.
15563 * mips-tdump.c (print_file_desc): Add cast to enum type.
15564 * mips-tfile.c (add_ext_symbol): Add casts to enum types.
15565 (mark_stabs): Add casts to enum types.
15566 (parse_stabs_common): Add casts to enum types.
15568 2009-05-13 Adam Nemet <anemet@caviumnetworks.com>
15570 * config/mips/mips.c (mips_print_operand) <REG, MEM, default>:
15571 Check for invalid values of LETTER.
15573 2009-05-13 Taras Glek <tglek@mozilla.com>
15575 * attribs.c (register_attribute): moved out attribute registration
15576 into register_attribute.
15577 * doc/plugins.texi: Documented register_attribute and
15579 * gcc-plugin.h: Added forward decl for register_attribute.
15580 * gcc-plugin.h (plugins_event): Added PLUGIN_ATTRIBUTES.
15581 * plugin.c (register_callback, invoke_plugin_callbacks): Added
15582 PLUGIN_ATTRIBUTES boilerplate.
15584 2009-05-14 Dave Korn <dave.korn.cygwin@gmail.com>
15586 * config/i386/msformat-c.c (ms_printf_length_specs): Use enumeration
15587 values even in sentinel and empty entries.
15588 (ms_printf_flag_specs): Likewise.
15589 (ms_scanf_flag_specs): Likewise.
15590 (ms_strftime_flag_specs): Likewise.
15591 (ms_print_char_table): Likewise.
15592 (ms_scan_char_table): Likewise.
15593 (ms_time_char_table): Likewise.
15595 2009-05-13 Doug Kwan <dougkwan@google.com>
15597 * tree-ssa-sccvn.c (compare_ops): Stabilize qsort.
15599 2009-05-13 Adam Nemet <anemet@caviumnetworks.com>
15601 * config/mips/mips.md (store): Add attributes for QI and HI.
15603 (truncdisi2, truncdihi2, truncdiqi2): Merge these into ...
15604 (truncdi<mode>2): ... this new pattern.
15606 2009-05-13 Brad Hards <bradh@kde.org>
15608 * Makefile.in (TEXI_GCCINT_FILES): Add plugins.texi.
15610 2009-05-14 Jakub Jelinek <jakub@redhat.com>
15611 Ben Elliston <bje@au.ibm.com>
15613 PR middle-end/40035
15614 * dse.c (check_mem_read_rtx): Guard against width == -1.
15616 2009-05-13 Michael Matz <matz@suse.de>
15618 PR middle-end/39976
15619 * tree-outof-ssa.c (maybe_renumber_stmts_bb): New function.
15620 (trivially_conflicts_p): New function.
15621 (insert_backedge_copies): Use it.
15623 2009-05-13 Janis Johnson <janis187@us.ibm.com>
15625 * c-pragma.c (enum pragma_switch_t): Prefix constants with PRAGMA_.
15626 (handle_stdc_pragma): Use new enum constant names.
15627 (handle_pragma_float_const_decimal64): Ditto.
15629 2009-05-13 Ian Lance Taylor <iant@google.com>
15631 * Makefile.in (build/gencheck.o): Depend upon all-tree.def, not
15634 2009-05-13 Nathan Sidwell <nathan@codesourcery.com>
15636 * config/m68k/t-uclinux (M68K_MLIB_CPU): Check for FL_UCLINUX.
15637 * config/m68k/m68k-devices.def: Add FL_UCLINUX to 68020 and 54455
15639 * config/m68k/m68k.h (FL_UCLINUX): Define.
15641 2009-05-13 Jan Hubicka <jh@suse.cz>
15643 * options.c (gfc_post_options): -fwhole-program imply -fwhole-file.
15645 2009-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
15647 * config/sh/sh.h (OVERRIDE_OPTIONS): Clear flag_schedule_insns
15648 unless -fschedule-insns is specified.
15650 2009-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
15653 * config/sh/sh.h (OPTIMIZATION_OPTIONS): Don't set
15654 TARGET_EXPAND_CBRANCHDI4.
15655 * config/sh/sh.md (cbranchdi4): Don't check TARGET_EXPAND_CBRANCHDI4.
15656 * config/sh/sh.opt (mexpand-cbranchdi): Remove.
15657 (cmpeqdi): Fix comment.
15659 2009-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
15661 * config/sh/sh-protos.h (sh_legitimate_index_p): Declare.
15662 (sh_legitimate_address_p): Likewise.
15663 * config/sh/sh.c (sh_legitimate_index_p): New.
15664 (sh_legitimate_address_p): Likewise.
15665 * config/sh/sh.h (REG_OK_FOR_BASE_P): Add STRICT parameter.
15666 (REG_OK_FOR_INDEX_P, SUBREG_OK_FOR_INDEX_P): Likewise.
15667 (MODE_DISP_OK_4, MODE_DISP_OK_8): Remove.
15668 (MAYBE_BASE_REGISTER_RTX_P): New macro.
15669 (MAYBE_INDEX_REGISTER_RTX_P): Likewise.
15670 (BASE_REGISTER_RTX_P): Use MAYBE_BASE_REGISTER_RTX_P.
15671 (INDEX_REGISTER_RTX_P): Use MAYBE_INDEX_REGISTER_RTX_P.
15672 (GO_IF_LEGITIMATE_INDEX): Use sh_legitimate_index_p.
15673 (GO_IF_LEGITIMATE_ADDRESS): Use sh_legitimate_address_p.
15675 2009-05-12 Jan Hubicka <jh@suse.cz>
15677 * tree-inline.c (estimate_operator_cost): Add operands;
15678 when division happens by constant, it is cheap.
15679 (estimate_num_insns): Loads and stores are not having cost of 0;
15680 EH magic stuff is cheap; when computing runtime cost of switch,
15681 use log2 base of amount of its cases; builtin_expect has cost of 0;
15682 compute cost for moving return value of call.
15683 (init_inline_once): Initialize time_based flags.
15684 * tree-inline.h (eni_weights_d): Add time_based flag.
15686 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
15688 * df-core.c: Update head documentation.
15690 2009-05-12 Michael Meissner <meissner@linux.vnet.ibm.com>
15693 * rs6000.c (rs6000_generate_compare): Use op1b instead of
15694 shadowing exisiting variable op1.
15696 2009-05-12 Uros Bizjak <ubizjak@gmail.com>
15699 * config/i386/driver-i386.c (processor_signatures): New enum.
15700 (SIG_GEODE): Move from vendor_signatures to processor_signatures.
15701 (host_detect_local_cpu): For SIG_AMD vendor, check for SIG_GEODE
15702 processor signature to detect geode processor.
15704 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
15708 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
15710 * optabs.c (prepare_cmp_insn): Temporarily disable test that
15711 causes spurious differences between trunk and cond-optab branch.
15713 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
15715 * dojump.c (compare_from_rtx): Delete.
15716 * expmed.c (emit_store_flag): Only try cstore_optab. Canonicalize
15717 any MODE_CC mode to the cstorecc4 pattern. Use prepare_operand, fail
15718 if the comparison does not satisfy the predicate; test predicates for
15719 operands 2 and 3 of a cstore pattern. Don't try cstore optab
15720 further if one existing pattern fails.
15721 * expr.h (compare_from_rtx): Delete.
15722 (prepare_operand): Declare it.
15723 * optabs.c: Change "lib call" to "libcall" throughout.
15724 (bcc_gen_fctn, setcc_gen_code, trap_rtx,
15725 HAVE_conditional_trap, emit_cmp_insn): Delete.
15726 (can_compare_p): Delete cmp_optab case.
15727 (prepare_float_lib_cmp): Return an rtx and a machine mode.
15728 Accept other parameters by value.
15729 (prepare_operand): Make non-static.
15730 (prepare_cmp_insn): Return an rtx and a machine mode. Accept
15731 other parameters by value. Try to widen operands here based on
15732 an optab_methods argument and looking at cbranch_optab.
15733 (emit_cmp_and_jump_insn_1): Accept test and mode, remove widening
15734 loop. Use cbranch_optab directly.
15735 (emit_cmp_and_jump_insns): Fix comment. Adjust call to
15736 prepare_cmp_insn and emit_cmp_and_jump_insn_1, remove obsolete
15738 (emit_conditional_move, emit_conditional_add): Inline what's needed
15739 of compare_from_rtx, using new prepare_cmp_insn for the rest.
15740 (init_optabs): Init cmp_optab with UNKNOWN, cbranch_optab
15741 with COMPARE. Move cmov_optab and cstore_optab above
15742 with cbranch_optab, move cmp_optab down with ucmp_optab,
15743 remove tst_otpab. Do not initialize trap_rtx.
15744 (gen_cond_trap): Do it here. Use ctrap_optab. Test predicate
15745 for trap code. Do not check HAVE_conditional_trap. Use
15746 prepare_cmp_insn. Accept no predicate for operand 3.
15747 * optabs.h (OTI_cmp): Mark as used only for libcalls.
15748 (OTI_ctrap, ctrap_optab): New.
15749 (tst_optab): Delete.
15750 (bcc_gen_fctn, setcc_gen_code, emit_cmp_insn): Delete.
15751 * ifcvt.c (find_if_header): Replace HAVE_conditional_trap
15752 with lookup of ctrap_optab.
15753 * genopinit.c (cmp_optab, tst_optab, bcc_gen_fctn, setcc_gen_code):
15755 (ctrap_optab): New.
15757 * combine.c (combine_simplify_rtx, simplify_set): Do not
15758 special case comparing against zero for cc0 machines.
15759 * simplify-rtx.c (simplify_binary_operation_1): Never remove
15760 COMPARE on cc0 machines.
15761 (simplify_relational_operation): Return a new expression when
15762 a COMPARE could be removed.
15763 * final.c (final_scan_insn): Compare cc_status values
15764 against LHS of a (compare FOO (const_int 0)) cc0 source.
15765 Also check if cc_status.value is the full compare.
15767 * doc/md.texi (bCC, sCC, tstMM, cmpMM): Delete.
15768 (cstoreMM4): Document.
15769 (conditional_trap): Document ctrapMM4 instead.
15770 (sync_compare_and_swapMM): Refer to cbranchcc4.
15771 (Dependent Patterns): Eliminate obsolete information referring to
15772 the old jump optimization phase.
15773 (Canonicalization): Include cbranchcc4 case, omit canonicalization
15774 of compares with 0 on cc0 machines.
15775 (Jump Patterns): Refer to MODE_CC jump patterns preferably,
15776 avoiding references to cc0. Remove text about storing operands
15778 * doc/tm.texi (Condition Codes): Include blurb on different
15779 condition code representations, separate into subsections for
15780 CC0, MODE_CC and conditional execution.
15782 * config/alpha/alpha-protos.h (alpha_emit_conditional_branch,
15783 alpha_emit_setcc): Accept operands and a machine mode.
15784 * config/alpha/alpha.c (alpha_emit_conditional_branch):
15785 Get code/op0/op1 from operands, use machine mode argument
15786 instead of alpha_compare.fp_p. Emit the branch here.
15787 (alpha_emit_setcc): Likewise, and return boolean.
15788 (alpha_emit_conditional_move): Likewise. Assert that
15789 cmp_op_mode == cmp_mode, and simplify accordingly.
15790 * config/alpha/alpha.h (struct alpha_compare, alpha_compare): Delete.
15791 * config/alpha/alpha.md (cmpdf, cmptf, cmpdi, bCC, sCC): Delete.
15792 (cbranchdf4, cbranchtf4, cbranchdi4, cstoredf4, cstoretf4,cstoredi4):
15794 (stack probe test): Use cbranchdi4.
15795 * config/alpha/predicates.md (alpha_cbranch_operator): New.
15797 * config/arc/arc.c (gen_compare_reg): Do not emit cmp.
15798 * config/arc/arc.h (movsicc, movsfcc): Use it.
15799 (movdicc, *movdicc_insn, movdfcc, *movdfcc_insn): Remove.
15800 (cbranchsi4, cstoresi4): New.
15801 (cmpsi, bCC and sCC expanders): Remove.
15803 * config/arm/arm.c (arm_compare_op0, arm_compare_op1): Delete.
15804 * config/arm/arm.h (arm_compare_op0, arm_compare_op1): Delete.
15805 * config/arm/predicates.md (arm_comparison_operator): Only include
15806 floating-point operators if there is a hardware floating-point unit.
15807 * config/arm/arm.md (cbranchsi4, cstoresi4): Enable for TARGET_32BIT,
15808 deferring to cbranch_cc and cstore_cc respectively.
15809 (cbranchsf4, cbranchdf4, cbranchdi4, cstoresf4, cstoredf4, cstoredi4,
15810 cbranch_cc, cstore_cc): New.
15811 (movsicc, movsfcc, movdfcc): Do not use arm_compare_op0 and
15813 (bCC, sCC, cmpsi, cmpsf, cmpdf, cmpdi): Delete.
15815 * config/avr/avr-protos.h (out_tstsi, out_tsthi): Adjust prototype.
15816 * config/avr/avr.c (out_tstsi, out_tsthi): Get the tested operand
15818 (adjust_insn_length): Adjust calls.
15819 (avr_reorg): Handle (compare (foo) (const_int 0)).
15820 * config/avr/avr.md (tstqi, tsthi, tstsi): Remove.
15821 (*negated_tstqi, *negated_tsthi, *negated_tstsi): Unmacroize.
15822 (*reversed_tsthi, *reversed_tstsi): Add a scratch for simplicity.
15823 (cmpqi, cmphi, cmpsi): Prepend asterisk, fuse tst[qhs]i here.
15825 (cbranchqi4, cbranchhi4, cbranchsi4): New.
15826 (tst -> sbrc/sbrs peephole2, cpse peephole): Wrap RHS with COMPARE.
15828 * config/bfin/bfin.md (cmpbi, cmpsi, bCC, sCC): Delete.
15829 (cbranchsi4, cstorebi4, cstoresi4): New.
15830 (movbisi): This insn is duplicate, split it to zero_extend.
15831 * config/bfin/bfin.c (bfin_compare_op0, bfin_compare_op1): Delete
15832 (bfin_gen_compare): Do not use them. Emit VOIDmode SET, not BImode.
15833 (bfin_optimize_loop): Use cbranch expander.
15834 * config/bfin/bfin.h (bfin_compare_op0, bfin_compare_op1): Delete.
15835 * config/bfin/predicates.md (bfin_cbranch_operator): Rename to...
15836 (bfin_bimode_comparison_operator): ... this.
15837 (bfin_direct_comparison_operator): New.
15839 * config/cris/cris.c (cris_normal_notice_update_cc): Look
15840 inside (compare FOO (const_int 0)).
15841 (cris_rtx_costs): Handle ZERO_EXTRACT.
15842 * config/cris/cris.md (tstdi, tst<mode>, cmpdi): Delete.
15843 (*tstdi_non_v32): Fold in *cmpdi_non_v32.
15844 (*tstdi_v32): Delete.
15845 (*cmpdi_non_v32): Add M alternative for operand 1.
15846 (cmpsi, cmp<mode>): Make private.
15847 (*tstsi, *tst<mode>_cmp, *tst<mode>_non_cmp, *btst): Wrap LHS
15849 (cbranch<mode>4, cbranchdi4, cstore<mode>4): New.
15851 * config/crx/crx.md (cstore<mode>4, cbranchcc4): New.
15852 (cmp<mode>, bCOND_internal, b<code>, s<code>): Delete.
15853 (cbranch<mode>4, sCOND_internal): Use ordered_comparison_operator.
15854 (cc_reg_operand): New.
15855 (any_cond): Delete.
15856 * config/crx/crx.c (crx_compare_op0, crx_compare_op1,
15857 crx_expand_compare, crx_expand_branch, crx_expand_scond): Delete.
15858 * config/crx/crx.h (crx_compare_op0, crx_compare_op1): Delete.
15859 * config/crx/crx-protos.h (crx_expand_compare, crx_expand_branch,
15860 crx_expand_scond): Delete.
15862 * config/fr30/fr30.md (cmp<mode>, bCC): Delete.
15864 * config/fr30/fr30.c (fr30_compare_op0, fr30_compare_op1): Delete
15865 * config/fr30/fr30.h (fr30_compare_op0, fr30_compare_op1): Delete.
15867 * config/frv/frv.md (cbranchsi4, cbranchsf4, cbranchdf4,
15868 cstoresi4, cstoresf4, cstoredf4): New.
15869 (cmpdi, cmpsi, cmpsf, cmpdf, bCC, sCC): Remove.
15870 * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
15871 Receive the entire operands array.
15872 * config/frv/frv.h (frv_compare_op0, frv_compare_op1): Delete.
15873 * config/frv/frv.c (frv_compare_op0, frv_compare_op1): Delete.
15874 * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
15875 Get test/op0/op1 from the operands array.
15876 (frv_emit_cond_move): Get test/op0/op1 from the test_rtx.
15878 * config/h8300/h8300-protos.h (h8300_expand_branch): Accept operands.
15879 (h8300_expand_store): New.
15880 * config/h8300/h8300.c (h8300_rtx_costs): Handle (compare FOO
15882 (h8300_expand_branch): Emit compare here. Adjust for new arguments.
15883 (h8300_expand_store): New.
15884 * config/h8300/h8300.md (btst combine patterns): Wrap with COMPARE
15885 or do not try to produce (set (cc0) REG).
15886 (peepholes): Wrap arguments with COMPARE. Add a peephole to
15887 change a compare into a move to a scratch register. Disable some
15888 peepholes when comparing with zero.
15889 (tstsi, tsthi, tstsi, cmpqi): Make private.
15891 (bCC, sCC): Delete.
15892 (cbranchqi4, cbranchhi4, cbranchsi4, cstoreqi4, cstorehi4,
15895 * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_int_addcc,
15896 ix86_expand_fp_movcc): Set ix86_compare_op0 and ix86_compare_op1.
15897 (ix86_emit_i387_log1p): Use gen_cbranchxf4.
15898 (ix86_emit_i387_log1p): Use cbranchxf2.
15899 (ix86_expand_setcc): Return void.
15900 * config/i386/i386-protos.h (ix86_expand_setcc): Return void.
15901 * config/i386/i386.md (cmpti, cmpdi, cmpsi, cmphi, cmpqi, cmpxf,
15902 cmp<MODEF>, cmpcc): Remove.
15903 (cbranchti4, cbranchdi4, cbranchsi4, cbranchhi4, cbranchqi4,
15904 cbranchxf4, cbranch<MODEF>4, cbranchcc4, cstoredi4, cstoresi4,
15905 cstorehi4, cstoreqi4, cstorexf4, cstore<MODEF>4, cstorecc): New.
15906 (sCC and bCC expanders): Remove.
15907 (stack_protect_test): Use cbranchcc4.
15909 * config/ia64/ia64-protos.h (ia64_compare_op0, ia64_compare_op1):
15911 (ia64_expand_compare): Accept three rtx by reference and return void.
15912 * config/ia64/ia64.c (ia64_compare_op0, ia64_compare_op1): Delete.
15913 (ia64_expand_compare): Replace op0/op1 with *op0/*op1. Get code
15914 from *expr. Update *expr with the BImode comparison to do.
15915 * config/ia64/ia64.md (cmpbi, cmpsi, cmpdi, cmpsf, cmpdf, cmpxf,
15916 cmptf, bCC, sCC, conditional_trap): Delete.
15917 (cbranchbi4, cbranchsi4, cbranchdi4, cbranchsf4, cbranchdf4,
15918 cbranchxf4, cbranchtf4, cstorebi4, cstoresi4, cstoredi4, cstoresf4,
15919 cstoredf4, cstorexf4, cstoretf4, ctrapbi4, ctrapsi4, ctrapdi4,
15920 ctrapsf4, ctrapdf4, ctrapxf4, ctraptf4): New.
15921 * config/ia64/predicates.md (ia64_cbranch_operator): New.
15923 * config/iq2000/iq2000-protos.h (gen_conditional_branch): Change
15924 type of last argument.
15925 * config/iq2000/iq2000.c (branch_cmp, branch_type): Remove.
15926 (gen_conditional_branch): Get code/cmp0/cmp1 from operands,
15927 use machine mode argument instead of branch_type. Remove dead
15928 code for floating-point comparisons.
15929 * config/iq2000/iq2000.h (branch_cmp, branch_type): Remove.
15930 * config/iq2000/iq2000.md (cmpsi, cmpdi, cmpsf, cmpdf, tstsi, bCC):
15932 (cbranchsi4, cstoresi4): New.
15933 * config/iq2000/predicates.md (reg_or_const_operand): New.
15935 * config/m32c/m32c.md (cbranch splitter): Use match_op_dup.
15936 * config/m32c/m32c.md (any_cond, gl_cond): Delete.
15937 (b<code>_op): Rewrite to...
15938 (bcc_op): ... this, using match_operator.
15939 (s<code>_op): Rewrite to...
15940 (scc_op): ... this, using match_operator.
15941 (s<code>_24_op): Rewrite to...
15942 (scc_op_24): ... this, using match_operator.
15943 (s<code>_<mode>): Rewrite to...
15944 (cstore<mode>4): ... this, using match_operator.
15945 (s<code>_<mode>_24): Rewrite to...
15946 (cstore<mode>4_24): ... this, using match_operator.
15947 * config/m32c/m32c-protos.h (m32c_cmp_flg_0, m32c_pend_compare,
15948 m32c_unpend_compare, m32c_expand_scc): Delete.
15949 * config/m32c/m32c.c (compare_op0, compare_op1, m32c_cmp_flg_0,
15950 m32c_pend_compare, m32c_unpend_compare, m32c_expand_scc): Delete.
15951 (m32c_expand_movcc): Change NE to EQ if necessary.
15952 (m32c_init_libfuncs): Modify cstore optab instead of setcc_gen_code.
15954 * config/m32r/m32r-protos.h (gen_cond_store): New.
15955 * config/m32r/m32r.c (m32r_compare_op0, m32r_compare_op1): Delete.
15956 (gen_cond_store): New, from sCC patterns.
15957 (m32r_expand_block_move): Use cbranchsi4.
15958 * config/m32r/m32r.h (m32r_compare_op0, m32r_compare_op1): Delete.
15959 * config/m32r/m32r.md (cmpsi, bCC, sCC): Delete.
15960 (cbranchsi4, cstoresi4): New.
15962 * config/m68hc11/m68hc11.c (m68hc11_compare_op0, m68hc11_compare_op1):
15964 (m68hc11_rtx_costs_1, m68hc11_rtx_costs): Handle ZERO_EXTRACT.
15965 (m68hc11_notice_update_cc): Look into a compare with 0.
15966 * config/m68hc11/m68hc11.h (m68hc11_compare_op0, m68hc11_compare_op1):
15968 * config/m68hc11/m68hc11.md (tstsi, tsthi, tstqi, cmpsi,
15969 cmphi, cmpqi, bCC): Delete.
15970 (cbranchsi4, cbranchhi4, cbranchqi4): New.
15971 (tstqi_1, tstqi_z_used, tstqi_1, bitcmpqi, bitcmpqi_z_used,
15972 bitcmpqi_12, bitcmphi, various splits and peephole2s): Wrap cc0<-reg
15975 * config/m68k/predicates.md (m68k_cstore_comparison_operator,
15976 const0_operand, const1_operand, m68k_subword_comparison_operand): New.
15977 * config/m68k/constraints.md (H): New.
15978 * config/m68k/m68k.md (tstdi): Remove define_expand, use name for
15979 the define_insn below.
15980 (tstsi, tsthi, tst<FP:mode>, cmphi, cmpqi, cmp<FP:mode>): Delete.
15981 (*tstsi_internal_68020_cf, *tstsi_internal, *tsthi_internal,
15982 *tstqi_internal, tst<mode>_6881, tst<mode>_cf, many unnamed
15983 patterns): Wrap RHS with COMPARE.
15984 (tst<FP>_68881, tst<FP>_cf): Use const0_operand.
15985 (*cmpdi_internal): Name this pattern.
15986 (cmpdi): Change to define_insn.
15987 (cbranchdi4, cstoredi4, cbranchsi4, cstoresi4, cbranchhi4, cstorehi4,
15988 cbranchqi4, cstoreqi4, cbranch<FP:mode>4, cstore<FP:mode>4): New.
15989 (scc0_di, scc0_di_5200, scc_di): Use the ordered_comparison_operator
15991 (seq, sne, sgt, sgtu, slt, sltu, sge, sgeu, sle, sleu, sordered,
15992 sunordered, suneq, sunge, sungt, sunle, sunlt, sltgt): Delete
15993 (conditional_trap): Change to...
15994 (ctrapdi4, ctrapsi4, ctraphi4, ctrapqi4): ... these.
15995 (*conditional_trap): Use the ordered_comparison_operator and
15996 const1_operand predicates.
15997 * config/m68k/m68k.c (m68k_last_compare_had_fp_operands): Delete.
15998 (m68k_expand_prologue): Use ctrapsi4 instead of cmpsi+conditional_trap.
15999 (m68k_rtx_costs): Look for ZERO_EXTRACT in a COMPARE.
16000 * config/m68k/m68k.h (m68k_last_compare_had_fp_operands): Delete.
16002 * config/mcore/mcore-protos.h (arch_compare_op0, arch_compare_op1,
16003 mcore_modify_comparison, mcore_gen_compare_reg): Remove.
16004 (mcore_gen_compare): New.
16005 * config/mcore/mcore.c (arch_compare_op0, arch_compare_op1): Delete.
16006 (mcore_modify_comparison, mcore_gen_compare_reg): Fold into...
16007 (mcore_gen_compare): ... this.
16008 * config/mcore/mcore.md (cmpsi, bCC, sCC): Remove.
16009 (cbranchsi4, cstoresi4): New, using mcore_gen_compare.
16010 (stack probe pattern): Use cbranchsi4.
16012 * config/mips/predicates.md (mips_cstore_operator): New.
16013 * config/mips/mips-ps-3d.md (movv2sfcc): Do not use cmp_operands.
16014 * config/mips/mips.md (any_cond): Delete.
16015 (conditional_trap): Rename to ctrap<GPR:mode>4. Adjust predicates,
16017 (fixuns_truncdfsi2, fixuns_truncdfdi2, fixuns_truncsfsi2,
16018 fixuns_truncsfdi2): Use cbranch patterns.
16019 (cmp<GPR:mode>, cmp<SCALARF:mode>): Delete.
16020 (b<code>): Change to cbranch<GPR:mode>4 and cbranch<SCALARF:mode>4.
16021 Adjust call to mips_expand_conditional_branch.
16022 (seq, sne, slt<u>, sle<u>, sgt<u>, sge<u>): Change to
16024 * config/mips/mips-protos.h (mips_expand_conditional_branch,
16025 mips_expand_scc, mips_expand_conditional_trap): Adjust prototypes.
16026 * config/mips/mips.c (cmp_operands): Delete.
16027 (mips_emit_compare): Get comparison operands from *op0/*op1.
16028 (mips_expand_scc): Get code/op0/op1/target from operands. Assert
16029 that it succeeds. Use op0/op1 instead of cmp_operands.
16030 (mips_expand_conditional_branch, mips_expand_conditional_move,
16031 mips_expand_conditional_trap): Likewise.
16032 (mips_block_move_loop): Use cbranch patterns.
16033 * config/mips/mips.h (cmp_operands): Delete.
16035 * config/mmix/mmix.c (mmix_valid_comparison): Delete.
16036 (mmix_gen_compare_reg): Just return a register in the right CC mode.
16037 * config/mmix/mmix.h (mmix_compare_op0, mmix_compare_op1): New.
16038 * config/mmix/mmix.md (cmpdi, cmpdf): Remove.
16039 (*cmpcc_folded): Rename to...
16040 (*cmpdi_folded): this.
16041 (*cmpcc): Rename to...
16043 (movdfcc, movdicc): Adjust for new semantics of mmix_gen_compare_reg.
16046 (cbranchdf4): New. Handle invalid comparisons here.
16047 * config/mmix/predicates.md (float_comparison_operator): New.
16049 * config/mn10300/mn10300.c (mn10300_rtx_costs): Consider 0 and
16050 zero_extract to be cheap in (compare (zero_extract) (const_int 0).
16051 * config/mn10300/mn10300.md (tst): Delete.
16052 (*tst_extqisi_am33, *tst_extqisi, *tst_exthisi_am33, *tst_exthisi):
16053 Name these patterns and wrap RHS in a compare.
16054 (*cmpsi): Make this pattern private. Include tst.
16055 (*cmpsf): Make this pattern private.
16056 (and and zero_extract cc0 set): Wrap RHS in a COMPARE.
16057 (compare with zero peepholes): Likewise.
16059 (cbranchsi4, cbranchsf4): New.
16060 (casesi): Use cbranchsi4.
16062 * config/pa/pa.c (hppa_compare_op0, hppa_compare_op1,
16063 hppa_branch_type): Delete.
16064 (return_addr_rtx): Use cbranchsi4.
16065 (emit_bcond_fp): Accept all operands. Replace CODE with NE.
16066 Emit CCFPmode comparison here.
16067 (gen_cmp_fp): Delete, now part of emit_bcond_fp.
16068 * config/pa/pa.h (enum cmp_type, hppa_compare_op0, hppa_compare_op1,
16069 hppa_branch_type): Delete.
16070 * config/pa/pa.md (cmpdi, cmpsi, cmpsf, cmpdf, sCC, bCC): Delete.
16071 (movsicc, movdicc): Remove references to hppa_compare_op0,
16072 hppa_compare_op1 and compare_from_rtx.
16073 (cbranchdi4, cbranchsi4, cbranchsf4, cbranchdf4, cstoresi4): New.
16074 (casesi): Use cbranchsi4.
16076 * config/pdp11/pdp11-protos.h (output_jump): Change prototype.
16077 * config/pdp11/pdp11.c (output_jump): Embed opcodes here.
16078 * config/pdp11/pdp11.md (register_or_const0_operand): New.
16079 (cmpdf, cmphi, cmpqi): Make private. Add tst alternatives.
16080 (cmpsi, tstsi, tstdf, tsthi, tstqi): Delete.
16082 (cbranchdf4, cbranchhi4, cbranchqi4): New.
16083 (*branch, *branch_inverted): New.
16085 * config/picochip/picochip.md (cbranchhi4): Use
16086 ordered_comparison_operator.
16087 (cmphi, bCC): Remove.
16089 * config/rs6000/predicates.md (rs6000_cbranch_operator): New.
16090 (trap_comparison_operator): Delete.
16091 * config/rs6000/rs6000-protos.h (rs6000_emit_sCOND,
16092 rs6000_emit_cbranch): Accept mode and operands.
16093 * config/rs6000/rs6000.c (rs6000_compare_op0, rs6000_compare_op1,
16094 rs6000_compare_fp_p): Delete.
16095 (rs6000_generate_compare): Accept mode and comparison. Extract code
16096 and op0/op1 from there. Replace references to rs6000_compare_op0
16097 and rs6000_compare_op1.
16098 (rs6000_emit_sCOND): Adjust call to rs6000_generate_compare and
16099 extract result from passed operands.
16100 (rs6000_emit_cbranch): Adjust call to rs6000_generate_compare and
16101 extract loc from passed operands.
16102 (rs6000_emit_cmove): Likewise.
16103 * config/rs6000/rs6000.h (rs6000_compare_op0, rs6000_compare_op1,
16104 rs6000_compare_fp_p): Delete.
16105 * config/rs6000/rs6000.md (cmp<GPR>, cmp<FP>, bCC, sCC): Delete.
16106 (cbranch<GPR>4, cbranch<FP>4): New.
16107 (cstore<mode>4): New. Consolidate here all choices about when to use
16108 portable or specialized sCC sequences.
16109 (stack_protect_test): Use cbranchsi4.
16110 (conditional_trap): Replace with ctrap<GPR>4.
16111 (conditional trap insn): Replace trap_comparison_operator with
16112 ordered_comparison_operator.
16114 * config/s390/s390.c (s390_compare_op0, s390_compare_op1): Delete.
16115 (s390_emit_prologue): Use ctrap.
16116 * config/s390/s390.h (s390_compare_op0, s390_compare_op1): Delete.
16117 * config/s390/predicates.md (s390_eqne_operator, s390_scond_operator):
16118 New predicates replacing...
16119 * config/s390/s390.md (COMPARE, SCOND): ... these iterators.
16120 (cmp<GPR>, cmp<FP>, cmpcc): Delete.
16121 (trunc patterns): Use emit_cmp_and_jump_insns instead of cmp/branch.
16122 (add<mode>cc): Do not use s390_compare_op0/op1.
16123 (s<code>): Change to...
16124 (cstore<mode>4): ... this. Do not use s390_compare_op0/op1.
16125 (seq): Change to...
16126 (cstorecc4): ... this. Handle EQ or NE equally.
16127 (*sne): Un-privatize for use in cstorecc4.
16128 (b<code>): Change to...
16129 (cbranch<GPR>4, cbranch<FP>4, cbranchcc4): ... these.
16130 (conditional_trap): Replace with...
16131 (ctrap<GPR>4, ctrap<FP>4): ... these.
16132 (stack_protect): Use cbranchcc4.
16134 * config/score/score-conv.h (cmp_op0, cmp_op1): Delete.
16135 * config/score/score-protos.h (score_gen_cmp): Delete.
16136 * config/score/score.c (cmp_op0, cmp_op1, score_gen_cmp): Delete.
16137 (score_block_move-loop): Use cbranchsi4.
16138 * config/score/score.md (cbranchsi4): New.
16139 (cmpsi, bCC): Delete.
16140 * config/score/score3.c (cmp_op0, cmp_op1, score3_gen_cmp): Delete.
16141 (score3_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
16142 * config/score/score7.c (cmp_op0, cmp_op1, score7_gen_cmp): Delete.
16143 (score7_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
16144 * config/score/score3.h (score3_gen_cmp): Delete.
16145 * config/score/score7.h (score7_gen_cmp): Delete.
16147 * config/sh/sh-protos.h (prepare_scc_operands): Rename to...
16148 (sh_emit_scc_to_t): ... this. Return void.
16149 (from_compare): Rename to...
16150 (sh_emit_compare_and_branch): ... this.
16151 (sh_emit_compare_and_set): New.
16152 (sh_expand_t_scc): Accept operands.
16153 * config/sh/predicates.md (sh_float_comparison_operator): New.
16154 * config/sh/sh.c (sh_compare_op0, sh_compare_op1): Delete.
16155 (prepare_scc_operands): Rename to...
16156 (sh_emit_scc_to_t): ... this. Return void. Get op0/op1 from
16158 (sh_emit_cheap_store_flag): New.
16159 (sh_emit_set_t_insn): New.
16160 (from_compare): Rename to...
16161 (sh_emit_compare_and_branch): ... this. Accept mode. Rewrite
16162 handling of TARGET_SH2E floating point to avoid recursive call.
16163 Generate branch here.
16164 (sh_emit_compare_and_set): New.
16165 (sh_expand_t_scc): Get op0/op1 from arguments.
16166 (sh_emit_cheap_store_flag): New.
16167 * config/sh/sh.md (cbranchdi4, cbranchsi4): Include -mno-cbranchdi
16169 (cbranchdi4_i): Use an "I08" constraint instead of an "i" constraint.
16170 (cmpsi, cmpdi, cmpsf, cmpdf): Delete.
16171 (movsicc, movdicc): Do nothing when it recreated operands from
16172 sh_compare_*. Use sh_emit_cheap_store_flag. Adjust call to
16173 prepare_scc_operands (now sh_emit_scc_to_t).
16174 (udivdi3): Use cstoresi4.
16175 (beq_media, bne_media, bge_media, bgtu_media, bgeu_media, beq,
16176 bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu, bunordered): Delete.
16177 (cbranchint4_media, cbranchfp4_media): New.
16178 (casesi): Use cbranchdi4.
16179 (seq, slt, sle, sgt, sge, sgtu, sltu, sgeu, sne, sleu, sunordered):
16181 (cstore4_media, cstoresi4, cstoredi4, cstoresf4, cstoredf4): New.
16182 (movnegt): Remove second operand.
16183 (cbranchsf4, cbranchdf4): New.
16184 (stack_protect): Use cbranchdi4/cbranchsi4.
16186 * config/sparc/sparc.c (sparc_compare_op0, sparc_compare_op1): Delete.
16187 (gen_compare_reg): Accept comparison, extract part of it to...
16188 (gen_compare_reg_1): ... this.
16189 (gen_compare_operator): Delete.
16190 (gen_v9_scc): Accept separate destination, comparison code and arms.
16191 Do not use sparc_compare_op0/sparc_compare_op1.
16192 (emit_scc_insn, emit_conditional_branch_insn): New.
16193 (emit_v9_brxx): Make static. Remove useless assertion.
16194 (sparc_emit_float_lib_cmp): Return RTL instead of calling
16196 (sparc_expand_compare_and_swap_12): Use gen_compare_reg_1+cbranchcc4.
16197 * config/sparc/sparc-protos.h (gen_compare_reg,
16198 sparc_emit_float_lib_cmp): Adjust prototype.
16199 (emit_scc_insn, emit_conditional_branch_insn): New.
16200 (gen_v9_scc, emit_v9_brxx_insn, gen_compare_operator): Delete.
16201 * config/sparc/sparc.h (sparc_compare_op0, sparc_compare_op1): Delete.
16202 * config/sparc/sparc.md (P, I, F, V32, V32I, V64, V64I): Move all
16203 iterators to the top.
16204 (cmpsi, cmpdi, cmpsf, cmpdf, cmptf, seqsi_special_extend,
16205 snesi_special_extend, sCC, bCC, seqdi_special_trunc,
16206 snedi_special_trunc): Delete.
16207 (seqdi_special, snedi_special): Use expansion of seqdi_special_trunc
16208 and snedi_special_trunc.
16209 (cstoresi4, cstoredi4, cstore<F:mode>4, cbranchcc4, cbranchsi4,
16210 cbranchdi4, cbranch<F:mode>4): New.
16211 (mov<I:mode>cc, mov<F:mode>cc): Handle sparc_emit_float_lib_cmp
16212 here. Use gen_compare_reg instead of gen_compare_operator.
16213 (conditional_trap): Replace with...
16214 (ctrapsi4, ctrapdi4): ... this.
16215 (stack_protect_test): Use cbranchcc4.
16217 * config/spu/spu-protos.h (spu_emit_branch_or_set): Change second
16219 * config/spu/spu.c (spu_compare_op0, spu_compare_op1): Remove.
16220 (spu_emit_branch_or_set): Get code/op0/op1 from second argument.
16221 Change spu_compare_op0/op1 to op0/op1 throughout. Get target
16222 from operands[0] or operands[3] depending on is_set.
16223 * config/spu/spu.h (spu_compare_op0, spu_compare_op1): Remove.
16224 * config/spu/spu.md (cmp<mode:VQHSI>, cmp<mode:DTI>, cmp<mode:VSF>,
16225 cmpdf, bCC), sCC: Remove.
16226 (cbranch<mode:VQHSI>4, cbranch<mode:DTI>, cbranch<mode:VSF>4,
16227 cbranchdf4, cstore<mode:VQHSI>4, cstore<mode:DTI>, cstore<mode:VSF>4,
16229 (mov<mode>cc): Accept ordered_comparison_operator, adjust call to
16230 spu_emit_branch_or_set.
16232 * config/stormy16/stormy16-protos.h (xstormy16_emit_cbranch):
16234 * config/stormy16/stormy16.h (xstormy16_compare_op0,
16235 xstormy16_compare_op1): Delete.
16236 * config/stormy16/stormy16.c (xstormy16_compare_op0,
16237 xstormy16_compare_op1): Delete.
16238 (xstormy16_emit_cbranch): Get op0/op1 from the new arguments.
16240 * config/stormy16/stormy16.md (cbranchsi4, cbranchhi4): New.
16241 (cmphi, cmpsi, bCC): Remove.
16243 * config/v850/v850.md (tstsi, cmpsi): Fold into...
16244 (*cmpsi): ... this one.
16245 (cbranchsi4, cstoresi4): New.
16246 (bCC expanders): Delete.
16247 (sCC insns): Fold into...
16248 (*setcc): ... this one.
16249 (casesi): Do not use gen_cmpsi and gen_bgtu.
16250 (various splits): Wrap "naked" RHS of a cc0 set with COMPARE.
16251 (movsicc): Simplify.
16252 * config/v850/v850.c (v850_rtx_costs): Handle ZERO_EXTRACT in COMPARE.
16254 * config/vax/vax-protos.h (cond_name): New.
16255 (vax_output_conditional_branch): Remove.
16256 * config/vax/vax.c (cond_name): New.
16257 (vax_output_conditional_branch): Remove.
16258 * config/vax/vax.h (PRINT_OPERAND): Dispatch %c to cond_name.
16259 * config/vax/vax.md (tst<VAXint>, tst<VAXfp>): Remove.
16260 (cmp<VAXint>, cmp<VAXfp>): Privatize. Add constraints for tst.
16261 (bit<VAXint>): Wrap source with (compare).
16262 (b<code> and following unnamed pattern): Rename to *branch and
16263 *branch_reversed. Change macroization to match_operator.
16264 (cbranch<VAXint>4, cbranch<VAXfp>4): New.
16266 * config/xtensa/predicates.md (xtensa_cstoresi_operator): New.
16267 * config/xtensa/xtensa-protos.h (xtensa_expand_conditional_branch):
16268 Change last argument to machine_mode.
16269 (xtensa_expand_scc): Add machine_mode argument.
16270 * config/xtensa/xtensa.c (branch_cmp, branch_type): Remove.
16271 (gen_conditional_move, xtensa_expand_conditional_branch,
16272 xtensa_expand_scc, xtensa_expand_conditional_move): Use mode
16273 instead of branch_type, fetch cmp0/cmp1/test_code from operands[].
16274 Adjust operand numbers.
16275 * config/xtensa/xtensa.h (enum cmp_type, branch_cmp, branch_type):
16277 * config/xtensa/xtensa.md (any_cond, any_scc): Delete.
16278 (cmpsi, cmpsf, b<code>, s<code>): Delete.
16279 (cbranchsi4, cbranchsf4, cstoresi4, cstoresf4): New.
16281 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
16283 * optabs.c (prepare_cmp_insn): Temporarily disable test that
16284 causes spurious differences between trunk and cond-optab branch.
16286 2009-05-12 Alexandre Oliva <aoliva@redhat.com>
16289 * doc/install.texi (STAGE1_TFLAGS, BUILD_CONFIG): Document.
16291 2009-05-12 Alexandre Oliva <aoliva@redhat.com>
16293 * tree.c (iterative_hash_pointer): Delete.
16294 (iterative_hash_expr): Short-circuit handling of NULL pointer.
16295 Hash UIDs and versions of SSA names. Don't special-case built-in
16296 function declarations.
16298 2009-05-11 Ian Lance Taylor <iant@google.com>
16301 * graphite.c: Force -Wc++-compat to only be a warning before
16302 #including "cloog/cloog.h".
16304 2009-05-11 Martin Jambor <mjambor@suse.cz>
16306 * ipa-cp.c (ipcp_cloning_candidate_p): Add missing return false.
16308 2009-05-11 Jan Hubicka <jh@suse.cz>
16310 * tree-ssa-loop-ivcanon.c: Include target.h
16311 (struct loop_size): new structure.
16312 (constant_after_peeling): New predicate.
16313 (tree_estimate_loop_size): New function.
16314 (estimated_unrolled_size): Rewrite for new estimates.
16315 (try_unroll_loop_completely): Use new estimates.
16316 * Makefile.in (tree-ssa-loop-ivcanon.o): Add dependenc on target.h
16318 2009-05-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
16320 * config/spu/spu-c.c (spu_categorize_keyword): Update for recent
16321 libcpp interface change.
16322 (spu_macro_to_expand): Likewise.
16324 2009-05-11 Paolo Bonzini <bonzini@gnu.org>
16326 PR tree-optimization/40026
16327 * gimplify.c (gimplify_init_constructor): Change initial conditional
16328 to assertion. Rewrite TREE_OPERAND (*expr_p, 1) after
16329 optimize_compound_literals_in_ctor.
16331 2009-05-11 Nathan Sidwell <nathan@codesourcery.com>
16333 * config/m68k/m68k-devices.def (52274, 52277, 5301x, 5225x, 51xx):
16335 * doc/invoke.texi (M680x0 Options): Document new coldfire cpus.
16337 2009-05-11 H.J. Lu <hongjiu.lu@intel.com>
16339 * tree-vect-data-refs.c (vect_analyze_group_access): Use
16340 HOST_WIDE_INT for gap.
16342 2009-05-11 Ira Rosen <irar@il.ibm.com>
16344 PR tree-optimization/40074
16345 * tree-vect-data-refs.c (vect_analyze_group_access): Take gaps into
16346 account in group size and step comparison.
16348 2009-05-11 Richard Guenther <rguenther@suse.de>
16350 * passes.c (init_optimization_passes): Strip now incorrect comment.
16351 (execute_function_todo): Do not set PROP_alias.
16352 * tree-pass.h (PROP_alias): Remove.
16353 * tree-ssa-structalias.c (pass_build_alias): Do not provide PROP_alias.
16354 * tree-if-conv.c (pass_if_conversion): Do not require PROP_alias.
16355 * tree-nrv.c (pass_return_slot): Likewise.
16356 * tree-object-size.c (pass_object_sizes): Likewise.
16357 * tree-ssa-dom.c (pass_dominator): Likewise.
16358 (pass_phi_only_cprop): Likewise.
16359 * tree-ssa-dse.c (pass_dse): Likewise.
16360 * tree-ssa-phiopt.c (pass_phiopt): Likewise.
16361 (pass_cselim): Likewise.
16362 * tree-ssa-pre.c (pass_pre): Likewise.
16363 (pass_fre): Likewise.
16364 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
16365 * tree-ssa-sink.c (pass_sink_code): Likewise.
16366 * tree-stdarg.c (pass_stdarg): Likewise.
16367 * tree-tailcall.c (pass_tail_calls): Likewise.
16368 * tree-vrp.c (pass_vrp): Likewise.
16370 2009-05-10 Ian Lance Taylor <iant@google.com>
16372 * basic-block.h (enum profile_status): Break out of struct
16373 control_flow_graph.
16374 * cgraph.h (struct inline_summary): Break out of struct
16376 * cgraphunit.c (enum cgraph_order_sort_kind): New enum, broken out
16377 of struct cgraph_order_sort.
16378 * combine.c (enum undo_kind): New enum, broken out of struct undo.
16379 * cse.c (struct branch_path): Break out of struct
16380 cse_basic_block_data.
16381 * except.h (enum eh_region_type): Break out of struct eh_region.
16382 * gcc.c (enum add_del): Break out of struct modify_target.
16383 * genrecog.c (enum decision_type): Break out of struct decision_test.
16384 * ggc-page.c (struct ggc_pch_ondisk): Break out of struct
16386 * matrix-reorg.c (struct free_info): Break out of struct matrix_info.
16387 * regmove.c (enum match_use): New enum, broken out of struct match.
16388 * sched-int.h (enum post_call_group): New enum, broken out of
16390 (struct deps_reg): Break out of struct deps.
16391 * target.h (struct asm_int_op): Break out of struct gcc_target.
16392 * tree-eh.c (struct goto_queue_node): Break out of struct
16394 * tree-inline.h (enum copy_body_cge_which): Break out of
16396 * tree-pass.h (enum opt_pass_type): Break out of struct opt_pass.
16398 * c-decl.c (in_struct, struct_types): New static variables.
16399 (pushtag): Add loc parameter. Change all callers.
16400 (lookup_tag): Add ploc parameter. Change all callers.
16401 (check_compound_literal_type): New function.
16402 (parser_xref_tag): Add loc parameter. Change all callers. If
16403 -Wc++-compat, warn about struct/union/enum types defined within a
16405 (start_struct): Add enclosing_in_struct, enclosing_struct_types,
16406 and loc parameters. Change all callers. Change error calls to
16407 error_at, using loc. For a redefinition, if the location of the
16408 original definition is known, report it. Set in_struct and
16409 struct_types. If -Wc++-compat warn if in sizeof, typeof, or alignof.
16410 (finish_struct): Add new parameters enclosing_in_struct and
16411 enclosing_struct_types. Change all callers. Set
16412 C_TYPE_DEFINED_IN_STRUCT for all struct/union/enum types defined
16413 in the struct. If in a struct, add this struct to struct_types.
16414 (start_enum): Add loc parameter. Change all callers. Use
16415 error_at for errors, using loc. For a redefinition, if the
16416 location of the original definition is known, report it. If in a
16417 struct, add this enum type to struct_types. If -Wc++-compat warn
16418 if in sizeof, typeof, or alignof.
16419 * c-parser.c (disable_extension_diagnostics): Disable -Wc++-compat.
16420 (enable_extension_diagnostics): Reenable -Wc++-compat if appropriate.
16421 (c_parser_enum_specifier): Get enum location for start_enum.
16422 (c_parser_struct_or_union_specifier): Get struct location for
16423 start_struct. Save in_struct and struct_types status between
16424 start_struct and finish_struct.
16425 (c_parser_cast_expression): Get location of cast.
16426 (c_parser_alignof_expression): Get location of type.
16427 (c_parser_postfix_expression): Likewise.
16428 (c_parser_postfix_expression_after_paren_type): Add type_loc
16429 parameter. Change all callers. Call check_compound_literal_type.
16430 Use type_loc for error about variable size type.
16431 * c-typeck.c (build_external_ref): If -Wc++-compat, warn about a use
16432 of an enum constant from an enum type defined in a struct or union.
16433 (c_cast_expr): Add loc parameter. Change all callers. If
16434 -Wc++-compat, warn about defining a type in a cast.
16435 * c-tree.h (C_TYPE_DEFINED_IN_STRUCT): Define.
16436 (start_enum, start_struct, finish_struct): Update declarations.
16437 (parser_xref_tag, c_cast_expr): Update declarations.
16438 (check_compound_literal_type): Declare.
16440 2009-05-11 Ben Elliston <bje@au.ibm.com>
16442 * config/rs6000/rs6000-c.c (altivec_categorize_keyword): Update
16443 for recent libcpp interface change.
16444 (rs6000_macro_to_expand): Likewise.
16446 2009-05-10 Michael Matz <matz@suse.de>
16449 * config/arm/arm.c (require_pic_register): Emit on entry edge,
16450 not at entry of function.
16452 2009-05-10 Richard Guenther <rguenther@suse.de>
16454 PR tree-optimization/40081
16456 * tree-sra.c (instantiate_element): Instantiate scalar replacements
16457 using the main variant of the element type. Do not fiddle with
16458 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
16460 * tree-sra.c (sra_type_can_be_decomposed_p): Do not decompose
16461 structs with volatile fields.
16463 2009-05-10 Jan Hubicka <jh@suse.cz>
16465 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Declare.
16466 (estimate_move_cost): Assert that it does not get called for
16468 (estimate_num_insns): Skip VOID types in argument handling.
16469 (optimize_inline_calls): Delete unreachable blocks and verify that
16470 callgraph is valid.
16472 2009-05-10 Jan Hubicka <jh@suse.cz>
16474 * cgraphbuild.c (record_reference): Use cgraph_mark_address_taken_node.
16475 * cgraph.c (cgraph_mark_address_taken_node): New function.
16476 (dump_cgraph_node): Dump new flag.
16477 * cgraph.h (struct cgraph_node): Add address_taken.
16478 (cgraph_mark_address_taken_node): New function.
16479 * ipa.c (cgraph_postorder): Prioritize functions with address taken
16480 since new direct calls can be born.
16482 2009-05-10 Joseph Myers <joseph@codesourcery.com>
16484 * c-lex.c (c_lex_with_flags): Expect cpp_hashnode in
16485 tok->val.node.node.
16487 2009-05-10 Jan Hubicka <jh@suse.cz>
16489 PR middle-end/40084
16490 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Take old_call
16492 (cgraph_update_edges_for_call_stmt): Take old_decl argument.
16493 * cgraph.h (cgraph_update_edges_for_call_stmt): Update prototype.
16494 * tree-inline.c (copy_bb): Set frequency correctly.
16495 (fold_marked_statements): Update call to
16496 cgraph_update_edges_for_call_stmt.
16498 2009-05-10 Joseph Myers <joseph@codesourcery.com>
16500 * config/arc/arc.c (arc_handle_interrupt_attribute): Use %qE for
16501 identifiers in diagnostics.
16502 * config/arm/arm.c (arm_handle_fndecl_attribute,
16503 arm_handle_isr_attribute): Likewise.
16504 * config/avr/avr.c (avr_handle_progmem_attribute,
16505 avr_handle_fndecl_attribute, avr_handle_fntype_attribute): Likewise.
16506 * config/bfin/bfin.c (handle_int_attribute,
16507 bfin_handle_longcall_attribute, bfin_handle_l1_text_attribute,
16508 bfin_handle_l1_data_attribute, bfin_handle_longcall_attribute,
16509 bfin_handle_l1_text_attribute, bfin_handle_l1_data_attribute):
16511 * config/darwin.c (darwin_handle_kext_attribute,
16512 darwin_handle_weak_import_attribute): Likewise.
16513 * config/h8300/h8300.c (h8300_handle_fndecl_attribute,
16514 h8300_handle_eightbit_data_attribute,
16515 h8300_handle_tiny_data_attribute): Likewise.
16516 * config/i386/i386.c (ix86_handle_cconv_attribute,
16517 ix86_handle_abi_attribute, ix86_handle_struct_attribute): Likewise.
16518 * config/i386/winnt.c (ix86_handle_shared_attribute,
16519 ix86_handle_selectany_attribute): Likewise.
16520 * config/ia64/ia64.c (ia64_handle_model_attribute): Likewise.
16521 * config/m32c/m32c.c (function_vector_handler): Likewise.
16522 * config/m68hc11/m68hc11.c (m68hc11_handle_page0_attribute,
16523 m68hc11_handle_fntype_attribute): Likewise.
16524 * config/m68k/m68k.c (m68k_handle_fndecl_attribute): Likewise.
16525 * config/mcore/mcore.c (mcore_handle_naked_attribute): Likewise.
16526 * config/mips/mips.c (mips_insert_attributes,
16527 mips_merge_decl_attributes, mips_expand_builtin): Likewise.
16528 * config/rs6000/rs6000.c (rs6000_handle_longcall_attribute,
16529 rs6000_handle_struct_attribute): Likewise.
16530 * config/sh/sh.c (sh_insert_attributes,
16531 sh_handle_resbank_handler_attribute,
16532 sh_handle_interrupt_handler_attribute,
16533 sh2a_handle_function_vector_handler_attribute,
16534 sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
16536 * config/sh/symbian.c (sh_symbian_mark_dllimport): Likewise.
16537 * config/spu/spu.c (spu_handle_fndecl_attribute,
16538 spu_handle_vector_attribute): Likewise.
16539 * config/stormy16/stormy16.c
16540 (xstormy16_handle_interrupt_attribute): Likewise.
16541 * config/v850/v850-c.c (ghs_pragma_section): Likewise.
16542 * config/v850/v850.c (v850_handle_interrupt_attribute): Likewise.
16544 2009-05-10 Joseph Myers <joseph@codesourcery.com>
16546 * pretty-print.h (struct pretty_print_info): Add translate_identifiers.
16547 (pp_translate_identifiers): New.
16548 (pp_identifier): Only conditionally translate identifier to locale
16550 * pretty-print.c (pp_construct): Set pp_translate_identifiers.
16551 (pp_base_tree_identifier): Only conditionally translate identifier
16552 to locale character set.
16553 * c-pretty-print.c (M_): Define.
16554 (pp_c_type_specifier, pp_c_primary_expression): Mark English
16555 fragments for conditional translation with M_.
16556 * tree-pretty-print.c (maybe_init_pretty_print): Disable
16557 identifier translation.
16559 2009-05-10 Richard Guenther <rguenther@suse.de>
16561 PR tree-optimization/40081
16562 * tree-sra.c (instantiate_element): Instantiate scalar replacements
16563 using the main variant of the element type. Do not fiddle with
16564 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
16566 2009-05-09 Jan Hubicka <jh@suse.cz>
16568 PR middle-end/40080
16569 * cgraphunit.c (cgraph_materialize_all_clones): Do not redirect
16570 indirect calls; verify cgraph afterwards.
16572 2009-05-09 Jan Hubicka <jh@suse.cz>
16575 * ipa.c (update_inlined_to_pointer): New function.
16576 (cgraph_remove_unreachable_nodes): Use it.
16578 2009-05-09 Jan Hubicka <jh@suse.cz>
16580 * tree-eh.c (struct leh_state): Remove prev_try.
16581 (lower_try_finally, lower_catch, lower_eh_filter, lower_cleanup): Do
16582 not track prev_try.
16583 * except.c (gen_eh_region_cleanup, duplicate_eh_regions,
16584 copy_eh_region_1, copy_eh_region, redirect_eh_edge_to_label,
16585 remove_eh_handler_and_replace, foreach_reachable_handler,
16586 verify_eh_region, verify_eh_tree): Remove tracking of prev_try pointer.
16587 * except.h (struct eh_region): Remove eh_region_u_cleanup.
16588 (gen_eh_region_cleanup): Update prototype.
16590 2009-05-09 Jan Hubicka <jh@suse.cz>
16592 PR middle-end/40043
16593 * except.c (copy_eh_region): Always set prev_try.
16594 (redirect_eh_edge_to_label): Find outer try.
16595 (foreach_reachable_handler): When looking for prev try
16596 handle case where previous try is not going to be taken.
16598 2009-05-07 Michael Meissner <meissner@linux.vnet.ibm.com>
16600 PR tree-optimization/40049
16601 * tree-vect-stmts.c (vectorizable_operation): If the machine has
16602 only vector/vector shifts, convert the type of the constant to the
16603 appropriate type to avoid building incorrect trees, which
16604 eventually have problems with garbage collection.
16606 2009-05-08 Joseph Myers <joseph@codesourcery.com>
16608 * fold-const.c (fold_binary): Do not fold multiplication by 1 or
16609 -1 for complex floating-point types if honoring signed zeros.
16611 2009-05-08 Jan Hubicka <jh@suse.cz>
16613 * cgraphbuild.c (compute_call_stmt_bb_frequency): Accept function
16614 argument; handle correctly when profile is absent.
16615 (build_cgraph_edges): Update.
16616 (rebuild_cgraph_edges): Update.
16617 * cgraph.c: Do not include varray.h.
16618 (cgraph_set_call_stmt_including_clones): New function.
16619 (cgraph_create_edge_including_clones): Likewise
16620 (cgraph_update_edges_for_call_stmt_node): New static cfunction.
16621 (cgraph_update_edges_for_call_stmt): Handle clones.
16622 (cgraph_remove_node): Handle clone tree.
16623 (cgraph_remove_node_and_inline_clones): New function.
16624 (dump_cgraph_node): Dump clone tree.
16625 (cgraph_clone_node): Handle clone tree.
16626 (clone_function_name): Bring here from tree-inline.c.
16627 (cgraph_create_virtual_clone): New function.
16628 * cgraph.h (ipa_replace_map): Move here from ipa.h.
16629 (cgraph_clone_info): New function.
16630 (strut cgraph_node): Add clone_info and new clone tree pointers.
16631 (cgraph_remove_node_and_inline_clones,
16632 cgraph_set_call_stmt_including_clones,
16633 cgraph_create_edge_including_clones,
16634 cgraph_create_virtual_clone): Declare.
16635 (cgraph_function_versioning): Use VEC argument.
16636 (compute_call_stmt_bb_frequency): Update prototype.
16637 (cgraph_materialize_all_clones): New function.
16638 * ipa-cp.c (ipcp_update_cloned_node): Remove.
16639 (ipcp_create_replace_map): Update to VECtors.
16640 (ipcp_update_callgraph): Use virtual clones.
16641 (ipcp_update_bb_counts, ipcp_update_edges_counts): Remove.
16642 (ipcp_update_profiling): Do not update local profiling.
16643 (ipcp_insert_stage): Use VECtors and virtual clones.
16644 * cgraphunit.c (verify_cgraph_node): Verify clone tree.
16645 (clone_of_p): New function.
16646 (cgraph_preserve_function_body_p): Use clone tree.
16647 (cgraph_optimize): Materialize clones.
16648 (cgraph_function_versioning): Update for VECtors.
16649 (save_inline_function_body): Use clone tree.
16650 (cgraph_materialize_clone): New function.
16651 (cgraph_materialize_all_clones): Likewise.
16652 * ipa-inline.c (cgraph_default_inline_p): Use analyzed flags.
16653 * ipa.c: Include gimple.h.
16654 (cgraph_remove_unreachable_nodes): Use clone tree.
16655 * ipa-prop.c (ipa_note_param_call): Update call to
16656 compute_call_stmt_bb_frequencycall.
16657 * ipa-prop.h (ipa_replace_map): Move to cgraph.h.
16658 * tree-inline.c: Do not include varray.h or gt-tree-inline.h.
16659 (copy_bb): Handle updating of clone tree; add new edge when new call
16661 (expand_call_inline): Be strict about every call having edge.
16662 (clone_fn_id_num, clone_function_name): Move to cgraph.c.
16663 (delete_unreachable_blocks_update_callgraph): New function.
16664 (tree_function_versioning): Use VECtors; always remove unreachable
16665 blocks and fold conditionals.
16666 * tree-inline.h: Do not include varray.h.
16667 (tree_function_versioning): Remove.
16668 * Makefile.in (GTFILES): Remove tree-inline.c
16669 * passes.c (do_per_function): Do only functions having body.
16670 * ipa-struct-reorg.c (do_reorg_1, collect_data_accesses): Handle clone
16673 2009-05-08 H.J. Lu <hongjiu.lu@intel.com>
16674 Andrew Morrow <acm@google.com>
16677 * c-common.c (c_common_attribute_table): Permit deprecated
16678 attribute to take an optional argument.
16679 (handle_deprecated_attribute): If the optional argument to
16680 __attribute__((deprecated)) is not a string ignore the attribute
16681 and emit a warning.
16683 * c-decl.c (grokdeclarator): Updated warn_deprecated_use call.
16684 * c-typeck.c (build_component_ref): Likewise.
16685 (build_external_ref): Likewise.
16687 * toplev.c (warn_deprecated_use): Add an attribute argument.
16688 Emit the message associated with __attribute__((deprecated)).
16690 * toplev.h (warn_deprecated_use): Updated.
16692 * doc/extend.texi: Document new optional parameter to
16693 __attribute__((deprecated))
16695 2009-05-08 Michael Eager <eager@eagercon.com>
16697 * config/rs6000/rs6000.md (*movdf_softfloat32): replace
16698 !TARGET_DOUBLE_FLOAT with TARGET_SINGLE_FLOAT.
16700 2009-05-08 Richard Guenther <rguenther@suse.de>
16702 PR tree-optimization/40062
16703 * tree-scalar-evolution.c (follow_ssa_edge_in_condition_phi):
16704 Avoid exponential behavior.
16706 2009-05-08 Paolo Bonzini <bonzini@gnu.org>
16708 PR rtl-optimization/33928
16710 * fwprop.c (use_def_ref, get_def_for_use, bitmap_only_bit_bitween,
16711 process_uses, build_single_def_use_links): New.
16712 (update_df): Update use_def_ref.
16713 (forward_propagate_into): Use get_def_for_use instead of use-def
16715 (fwprop_init): Call build_single_def_use_links and let it initialize
16717 (fwprop_done): Free use_def_ref.
16718 (fwprop_addr): Eliminate duplicate call to df_set_flags.
16719 * df-problems.c (df_rd_simulate_artificial_defs_at_top,
16720 df_rd_simulate_one_insn): New.
16721 (df_rd_bb_local_compute_process_def): Update head comment.
16722 (df_chain_create_bb): Use the new RD simulation functions.
16723 * df.h (df_rd_simulate_artificial_defs_at_top,
16724 df_rd_simulate_one_insn): New.
16725 * opts.c (decode_options): Enable fwprop at -O1.
16726 * doc/invoke.texi (-fforward-propagate): Document this.
16728 2009-05-08 Joseph Myers <joseph@codesourcery.com>
16731 * c-typeck.c (build_binary_op): Handle arithmetic between one real
16732 and one complex operand specially.
16733 * tree-complex.c (some_nonzerop): Do not identify a real value as
16734 zero if flag_signed_zeros.
16736 2009-05-08 Paolo Bonzini <bonzini@gnu.org>
16738 PR rtl-optimization/33928
16739 * loop-invariant.c (record_use): Fix && vs. || mishap.
16741 2009-05-08 Paolo Bonzini <bonzini@gnu.org>
16743 PR rtl-optimization/33928
16744 * loop-invariant.c (struct use): Add addr_use_p.
16745 (struct def): Add n_addr_uses.
16746 (struct invariant): Add cheap_address.
16747 (create_new_invariant): Set cheap_address.
16748 (record_use): Accept df_ref. Set addr_use_p and update n_addr_uses.
16749 (record_uses): Pass df_ref to record_use.
16750 (get_inv_cost): Do not add inv->cost to comp_cost for cheap addresses
16753 2009-05-08 Kaz Kojima <kkojima@gcc.gnu.org>
16755 * config/sh/sh.c: Do not include c-pragma.h.
16757 2009-05-07 Andrew Pinski <andrew_pinski@playstation.sony.com>
16759 * config/spu/spu.c: Remove include of c-common.h.
16761 2009-05-07 Janis Johnson <janis187@us.ibm.com>
16764 * c-common.h (mark_valid_location_for_stdc_pragma,
16765 valid_location_for_stdc_pragma_p, set_float_const_decimal64,
16766 clear_float_const_decimal64, float_const_decimal64_p): New.
16767 * c.opt (Wunsuffixed-float-constants): New.
16768 * c-lex.c (interpret_float): Use pragma FLOAT_CONST_DECIMAL64 for
16769 unsuffixed float constant, handle new warning.
16770 * c-cppbuiltin.c (c_cpp_builtins): Use cast for double constants.
16771 * c-decl.c (c_scope): New flag float_const_decimal64.
16772 (set_float_const_decimal64, clear_float_const_decimal64,
16773 float_const_decimal64_p): New.
16774 (push_scope): Set new flag.
16775 * c-parser.c (c_parser_translation_unit): Mark when it's valid
16776 to use STDC pragmas.
16777 (c_parser_external_declaration): Ditto.
16778 (c_parser_compound_statement_nostart): Ditto.
16779 * c-pragma.c (valid_location_for_stdc_pragma,
16780 mark_valid_location_for_stdc_pragma,
16781 valid_location_for_stdc_pragma_p, handle_stdc_pragma,
16782 handle_pragma_float_const_decimal64): New.
16783 (init_pragma): Register new pragma FLOAT_CONST_DECIMAL64.
16784 * cp/semantics.c (valid_location_for_stdc_pragma_p,
16785 set_float_const_decimal64, clear_float_const_decimal64,
16786 float_const_decimal64_p): New dummy functions.
16787 * doc/extend.texi (Decimal Float): Remove statement that the
16788 pragma, and suffix for double constants, are not supported.
16789 * doc/invoke.texi (Warning Options): List new option.
16790 (-Wunsuffixed-float-constants): New.
16792 2009-05-08 Steven Bosscher <steven@gcc.gnu.org>
16794 * config/i386/i386.c: Do not include c-common.h.
16796 2009-05-07 Mark Heffernan <meheff@google.com>
16798 * doc/invoke.texi (Debugging Options): Document change of debugging
16800 * opts.c (decode_options): Make dump_base_name relative to
16801 aux_base_name directory.
16803 2009-05-07 Hariharan Sandanagobalane <hariharan@picochip.com>
16805 * config/picochip/picochip.h (NO_DOLLAR_IN_LABEL): Added.
16806 * config/picochip/libgccExtras/divmod15.asm : Removed redefiniton.
16808 2009-05-07 Rafael Avila de Espindola <espindola@google.com>
16810 * Makefile.in (install-plugin): Simplify a bit.
16812 2009-05-07 Paolo Bonzini <bonzini@gnu.org>
16814 * Makefile.in (OBJS-common): Add regcprop.o.
16816 * timevar.def (TV_CPROP_REGISTERS): New.
16817 * regrename.c (regrename_optimize): Return 0.
16818 (rest_of_handle_regrename): Delete.
16819 (pass_rename_registers): Point to regrename_optimize.
16820 (struct value_data_entry, struct value_data,
16821 kill_value_one_regno, kill_value_regno, kill_value,
16822 set_value_regno, init_value_data, kill_clobbered_value,
16823 kill_set_value, kill_autoinc_value, copy_value,
16824 mode_change_ok, maybe_mode_change, find_oldest_value_reg,
16825 replace_oldest_value_reg, replace_oldest_value_addr,
16826 replace_oldest_value_mem, copyprop_hardreg_forward_1,
16827 debug_value_data, validate_value_data): Move...
16828 * regcprop.c: ... here.
16829 (rest_of_handle_cprop): Delete.
16830 (pass_cprop_hardreg): Point to copyprop_hardreg_forward.
16832 2009-05-07 Jakub Jelinek <jakub@redhat.com>
16834 PR middle-end/40057
16835 * dojump.c (prefer_and_bit_test): Use immed_double_const instead of
16836 GEN_INT for 1 << bitnum.
16837 (do_jump) <case BIT_AND_EXPR>: Use build_int_cst_wide_type instead of
16838 build_int_cst_type.
16840 2009-05-07 Uros Bizjak <ubizjak@gmail.com>
16842 * doc/md.texi (Standard Pattern Names For Generation) [sync_nand]:
16843 Remove wrong description of "nand" operation.
16845 2009-05-06 Richard Guenther <rguenther@suse.de>
16846 Adam Nemet <anemet@caviumnetworks.com>
16848 * gimple.def (GIMPLE_ASSIGN): Fix incorrect information in the
16849 comment. Add that if LHS is not a gimple register, then RHS1 has
16850 to be a single object (GIMPLE_SINGLE_RHS).
16852 2009-05-06 Adam Nemet <anemet@caviumnetworks.com>
16854 * expr.c (get_def_for_expr): Move it up in the file.
16855 (store_field): When expanding a bit-field store, look at the
16856 defining gimple stmt for the masking conversion.
16858 2009-05-06 Janis Johnson <janis187@us.ibm.com>
16860 PR middle-end/39986
16861 * dfp.c (encode_decimal32, decode_decimal32, encode_decimal64,
16862 decode_decimal64, encode_decimal128, decode_decimal128): Avoid
16863 32-bit memcpy into long.
16865 2009-05-06 Jakub Jelinek <jakub@redhat.com>
16867 * dwarf2out.c (new_reg_loc_descr): Don't ever create DW_OP_regX.
16868 (one_reg_loc_descriptor): Create DW_OP_regX here instead of calling
16870 (loc_by_reference): If loc is DW_OP_regX, change it into DW_OP_bregX 0
16871 instead of appending DW_OP_deref*.
16873 2009-05-06 Michael Matz <matz@suse.de>
16875 PR middle-end/40021
16876 * cfgexpand.c (maybe_cleanup_end_of_block): New static function.
16877 (expand_gimple_cond): Use it to cleanup CFG and superfluous jumps.
16879 2009-05-06 Rafael Avila de Espindola <espindola@google.com>
16881 * Makefile.in (install-plugin): Fix srcdir handling.
16883 2009-05-06 Andrey Belevantsev <abel@ispras.ru>
16885 * tree-ssa.c (execute_update_address_taken): Handle TARGET_MEM_REF
16886 when processing for not_regs_needed bitmap.
16887 * gimple.c (walk_stmt_load_store_addr_ops): When visiting address,
16888 handle TARGET_MEM_REF in lhs. Check TMR_BASE for NULL while
16889 handling it for rhs.
16891 2009-05-06 H.J. Lu <hongjiu.lu@intel.com>
16893 * config/i386/i386.md (unnamed inc/dec peephole): Use
16894 optimize_insn_for_size_p instead of optimize_size.
16895 * config/i386/predicates.md (incdec_operand): Likewise.
16896 (aligned_operand): Likewise.
16897 * config/i386/sse.md (divv8sf3): Likewise.
16898 (sqrtv8sf2): Likewise.
16900 2009-05-06 H.J. Lu <hongjiu.lu@intel.com>
16902 * config/i386/i386.c (ix86_build_signbit_mask): Make it static.
16904 * config/i386/i386-protos.h (ix86_build_signbit_mask): Removed.
16906 2009-05-06 H.J. Lu <hongjiu.lu@intel.com>
16908 * config/i386/i386.md (*avx_<code><mode>3_finite): Replace
16909 ssemodesuffixf2c with avxmodesuffixf2c.
16911 2009-05-06 Joseph Myers <joseph@codesourcery.com>
16914 * c-decl.c (grokdeclarator): Handle incomplete type of unnamed field.
16916 2009-05-05 Jakub Jelinek <jakub@redhat.com>
16918 * tree.h: Remove DECL_BY_REFERENCE from private_flag comment.
16919 (struct tree_base): Adjust spacing for 8 bit boundaries.
16920 (struct tree_decl_common): Add decl_by_reference_flag bit.
16921 (DECL_BY_REFERENCE): Adjust.
16922 * print-tree.c (print_node): For VAR_DECL, PARM_DECL or RESULT_DECL,
16923 print DECL_BY_REFERENCE bit.
16924 * dbxout.c (DECL_ACCESSIBILITY_CHAR): Revert last change.
16925 * dwarf2out.c (loc_by_reference, gen_decl_die): Check
16926 DECL_BY_REFERENCE for all VAR_DECLs, not just non-static ones.
16927 (gen_variable_die): Likewise. Check TREE_PRIVATE/TREE_PROTECTED
16930 PR middle-end/39666
16931 * gimplify.c (gimplify_switch_expr): If case labels cover the whole
16932 range of the type, but default label is missing, add it with one
16933 of the existing labels instead of adding a new label for it.
16935 2009-05-05 Joseph Myers <joseph@codesourcery.com>
16939 2009-05-05 Rafael Avila de Espindola <espindola@google.com>
16941 * Makefile.in (enable_plugin, plugin_includedir): New.
16942 (install): Depend on install-plugin.
16943 (PLUGIN_HEADERS): New.
16944 (install-plugin): New.
16945 * config.gcc: Add vxworks-dummy.h to tm_file for x86 and x86-64.
16947 2009-05-05 Richard Guenther <rguenther@suse.de>
16949 PR tree-optimization/40022
16950 * tree-ssa-phiprop.c (struct phiprop_d): Exchange vop_stmt for
16952 (phivn_valid_p): Fix tuplification error, simplify.
16953 (phiprop_insert_phi): Add dumps.
16954 (propagate_with_phi): Simplify.
16956 2009-05-05 Richard Guenther <rguenther@suse.de>
16958 PR middle-end/40023
16959 * builtins.c (gimplify_va_arg_expr): Properly build the address.
16961 2009-05-05 Shujing Zhao <pearly.zhao@oracle.com>
16963 * tree.h (strip_float_extensions): Remove duplicate declaration.
16964 (build_low_bits_mask, debug_fold_checksum, expand_function_end,
16965 expand_function_start, stack_protect_prologue, stack_protect_epilogue,
16966 block_ultimate_origin): Rearrange the declarations line to match the
16967 comment that indicates the .c file which the functions are defined.
16968 (dwarf2out_*, set_decl_rtl): Add comment.
16969 (get_base_address): Adjust comment.
16970 (change_decl_assembler_name, maybe_fold_*, build_addr): Rearrange the
16971 declarations line and add comment.
16972 (is_builtin_name): Add blank after function name, for clarity.
16974 2009-05-04 Joseph Myers <joseph@codesourcery.com>
16976 * attribs.c (decl_attributes): Use %qE for identifiers in
16978 * cgraphunit.c (verify_cgraph_node): Translate function names to
16979 locale character set in diagnostics.
16980 * coverage.c (get_coverage_counts): Use %qE for identifiers in
16982 * doc/invoke.texi (-finstrument-functions-exclude-function-list):
16983 Document that functions are named in UTF-8.
16984 * expr.c (expand_expr_real_1): Translate function names to locale
16985 character set in diagnostics.
16986 * gimplify.c (omp_notice_variable, omp_is_private,
16987 gimplify_scan_omp_clauses): Use %qE for identifiers in
16989 * langhooks.c (lhd_print_error_function): Translate function names
16990 to locale character set.
16991 * langhooks.h (decl_printable_name): Document that return value is
16992 in internal character set.
16993 * stmt.c: Include pretty-print.h
16994 (tree_conflicts_with_clobbers_p): Use %qE for identifiers in
16996 (resolve_operand_name_1): Translate named operand name to locale
16998 * stor-layout.c (finalize_record_size): Use %qE for identifiers in
17000 * toplev.c (announce_function): Translate function names to locale
17002 (warn_deprecated_use): Use %qE for identifiers in diagnostics.
17003 (default_tree_printer): Use pp_identifier or translate identifiers
17004 to locale character set. Mark "<anonymous>" for translation.
17005 * tree-mudflap.c (mx_register_decls, mudflap_finish_file): Use %qE
17006 for identifiers in diagnostics.
17007 * tree.c (handle_dll_attribute): Use %qE for identifiers in
17009 * varasm.c (output_constructor): Use %qE for identifiers in
17012 2009-05-04 Rafael Avila de Espindola <espindola@google.com>
17014 * configure.ac: use ` ` instead of $()
17015 * configure: Regenerate.
17017 2009-05-05 Ben Elliston <bje@au.ibm.com>
17019 * config/pa/linux-atomic.c: Eliminate conditional include of
17020 errno.h on non-LP64 systems to simplify build requirements.
17022 2009-05-04 Joseph Myers <joseph@codesourcery.com>
17024 * c-common.c (handle_mode_attribute): Use %qE for identifiers in
17026 * c-decl.c (check_bitfield_type_and_width): Make orig_name a tree
17027 and pass value to identifier_to_locale.
17028 (warn_variable_length_array): Make name a tree.
17029 (grokdeclarator): Separate diagnostic texts for named and unnamed
17030 declarators. Use %qE for named declarators.
17031 * c-parser.c (c_lex_one_token): Use %qE for identifiers in
17033 * c-pragma.c (pop_alignment, handle_pragma_pack): Use %qE for
17034 identifiers in diagnostics.
17035 * c-typeck.c (push_member_name, start_init): Pass identifiers to
17036 identifier_to_locale. Mark "anonymous" strings for translation.
17038 2009-05-04 Michael Eager <eager@eagercon.com>
17040 * config/rs6000/rs6000.c (rs6000_legitimate_address): Allow
17041 address for DImode/DFmode only if double-precision FP regs.
17043 2009-05-04 Michael Eager <eager@eagercon.com>
17045 * config/rs6000/rs6000.c (rs6000_libcall_value): Add
17046 TARGET_SINGLE_FLOAT check.
17048 2009-05-04 Michael Eager <eager@eagercon.com>
17050 * config/rs6000/xilinx.h: Add CPP_SPEC for -mxilinx-fpu options.
17052 2009-05-04 Michael Eager <eager@eagercon.com>
17054 * gcc/config.gcc: (powerpc-xilinx-eabi*): Add tm t-xilinx
17055 * config/rs6000/t-xilinx: New
17057 2009-05-04 Paolo Bonzini <bonzini@gnu.org>
17059 * doc/tm.texi (LEGITIMIZE_ADDRESS): Revise documentation.
17060 * gcc/defaults.h (LEGITIMIZE_ADDRESS): Delete.
17061 * gcc/explow.c (memory_address): Use target hook.
17062 * gcc/targhooks.c (default_legitimize_address): New.
17063 * gcc/targhooks.h (default_legitimize_address): New.
17064 * gcc/target.h (legitimize_address): New.
17065 * gcc/target-def.h (TARGET_LEGITIMIZE_ADDRESS): New.
17066 (TARGET_INITIALIZER): Include it.
17067 * gcc/system.h (LEGITIMIZE_ADDRESS): Poison.
17069 * config/bfin/bfin-protos.h (legitimize_address): Remove.
17070 * config/bfin/bfin.c (legitimize_address): Remove.
17071 * config/bfin/bfin.h (LEGITIMIZE_ADDRESS): Remove.
17072 * config/m68hc11/m68hc11-protos.h (m68hc11_legitimize_address):
17074 * config/m68hc11/m68hc11.c (m68hc11_legitimize_address): Remove.
17075 * config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Remove.
17077 * gcc/config/arm/arm.h (LEGITIMIZE_ADDRESS, ARM_LEGITIMIZE_ADDRESS,
17078 THUMB_LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS): Delete.
17079 * gcc/config/s390/s390.h (LEGITIMIZE_ADDRESS): Delete.
17080 * gcc/config/m32c/m32c.h (LEGITIMIZE_ADDRESS): Delete.
17081 * gcc/config/sparc/sparc.h (LEGITIMIZE_ADDRESS): Delete.
17082 * gcc/config/m32r/m32r.h (LEGITIMIZE_ADDRESS): Delete.
17083 * gcc/config/i386/i386.h (LEGITIMIZE_ADDRESS): Delete.
17084 * gcc/config/sh/sh.h (LEGITIMIZE_ADDRESS): Delete.
17085 * gcc/config/avr/avr.h (LEGITIMIZE_ADDRESS): Delete.
17086 * gcc/config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Delete.
17087 * gcc/config/iq2000/iq2000.h (LEGITIMIZE_ADDRESS): Delete.
17088 * gcc/config/mn10300/mn10300.h (LEGITIMIZE_ADDRESS): Delete.
17089 * gcc/config/m68k/m68k.h (LEGITIMIZE_ADDRESS): Delete.
17090 * gcc/config/score/score.h (LEGITIMIZE_ADDRESS): Delete.
17091 * gcc/config/pa/pa.h (LEGITIMIZE_ADDRESS): Delete.
17092 * gcc/config/mips/mips.h (LEGITIMIZE_ADDRESS): Delete.
17093 * gcc/config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Delete.
17094 * gcc/config/frv/frv.h (LEGITIMIZE_ADDRESS): Delete.
17095 * gcc/config/spu/spu.h (LEGITIMIZE_ADDRESS): Delete.
17096 * gcc/config/xtensa/xtensa.h (LEGITIMIZE_ADDRESS): Delete.
17097 * gcc/config/cris/cris.h (LEGITIMIZE_ADDRESS): Delete.
17098 * gcc/config/rs6000/rs6000.h (LEGITIMIZE_ADDRESS): Delete.
17099 * gcc/config/picochip/picochip.h (LEGITIMIZE_ADDRESS): Delete.
17101 * gcc/config/s390/s390-protos.h (legitimize_address): Delete.
17102 * gcc/config/m32c/m32c-protos.h (m32c_legitimize_address): Delete.
17103 * gcc/config/sparc/sparc-protos.h (legitimize_address): Delete.
17104 * gcc/config/i386/i386-protos.h (legitimize_address): Delete.
17105 * gcc/config/avr/avr-protos.h (legitimize_address): Delete.
17106 * gcc/config/mn10300/mn10300-protos.h (legitimize_address): Delete.
17107 * gcc/config/score/score-protos.h (score_legitimize_address): Delete.
17108 * gcc/config/arm/arm-protos.h (arm_legitimize_address,
17109 (thumb_legitimize_address): Delete.
17110 * gcc/config/pa/pa-protos.h (hppa_legitimize_address): Delete.
17111 * gcc/config/mips/mips-protos.h (mips_legitimize_address): Delete.
17112 * gcc/config/alpha/alpha-protos.h (alpha_legitimize_address): Delete.
17113 * gcc/config/frv/frv-protos.h (frv_legitimize_address): Delete.
17114 * gcc/config/spu/spu-protos.h (spu_legitimize_address): Delete.
17115 * gcc/config/xtensa/xtensa-protos.h (xtensa_legitimize_address):
17117 * gcc/config/rs6000/rs6000-protos.h (rs6000_legitimize_address):
17120 * config/arm/arm.c (arm_legitimize_address): Maybe call Thumb version.
17121 * config/m32c/m32c.c (m32c_legitimize_address): Standardize.
17122 * config/m32r/m32r.c (m32r_legitimize_address): New.
17123 * config/m68k/m68k.c (m68k_legitimize_address): New.
17124 * config/score/score.c (score_legitimize_address): Standardize.
17125 * config/score/score3.c (score3_legitimize_address): Standardize.
17126 * config/score/score3.h (score3_legitimize_address): Adjust.
17127 * config/score/score7.c (score7_legitimize_address): Standardize.
17128 * config/score/score7.h (score7_legitimize_address): Adjust.
17129 * config/sh/sh.c (sh_legitimize_address): New.
17130 * config/iq2000/iq2000.c (iq2000_legitimize_address): New.
17132 * gcc/config/s390/s390.c (legitimize_address): Rename to...
17133 (s390_legitimize_address): ... this.
17134 * gcc/config/sparc/sparc.c (legitimize_address): Rename to...
17135 (sparc_legitimize_address): ... this.
17136 * gcc/config/i386/i386.c (legitimize_address): Rename to...
17137 (ix86_legitimize_address): ... this.
17138 * gcc/config/avr/avr.c (legitimize_address): Rename to...
17139 (avr_legitimize_address): ... this.
17140 * gcc/config/mn10300/mn10300.c (legitimize_address): Rename to...
17141 (mn10300_legitimize_address): ... this.
17142 * config/alpha/alpha.c (alpha_legitimize_address): Wrap...
17143 (alpha_legitimize_address_1): ... the old alpha_legitimize_address.
17144 (alpha_expand_mov): Adjust call.
17146 * config/frv/frv.c (frv_legitimize_address): Return x on failure.
17147 * config/spu/spu.c (spu_legitimize_address): Likewise.
17148 * config/xtensa/xtensa.c (xtensa_legitimize_address): Likewise.
17149 * config/rs6000/rs6000.c (rs6000_legitimize_address): Likewise.
17151 2009-05-04 Joseph Myers <joseph@codesourcery.com>
17153 * intl.c (locale_encoding, locale_utf8): New.
17154 (gcc_init_libintl): Initialize locale_encoding and locale_utf8.
17155 * intl.h (locale_encoding, locale_utf8): Declare.
17156 * pretty-print.c: Include ggc.h. Include iconv.h if HAVE_ICONV.
17157 (pp_base_tree_identifier, decode_utf8_char, identifier_to_locale):
17159 * pretty-print.h (pp_identifier): Call identifier_to_locale on ID
17161 (pp_tree_identifier): Define to call pp_base_tree_identifier.
17162 (pp_base_tree_identifier): Declare as function.
17163 (identifier_to_locale): Declare.
17164 * Makefile.in (pretty-print.o): Update dependencies.
17165 * varasm.c (finish_aliases_1): Use %qE for identifiers in diagnostics.
17167 2009-05-04 Richard Guenther <rguenther@suse.de>
17169 PR middle-end/40015
17170 * builtins.c (fold_builtin_memory_op): Do not decay to element
17171 type if the size matches the whole array.
17173 2009-05-04 Kazu Hirata <kazu@codesourcery.com>
17175 * expmed.c (synth_mult): When trying out a shift, pass the result
17178 2009-05-04 Kazu Hirata <kazu@codesourcery.com>
17180 * expmed.c (shiftsub_cost): Rename to shiftsub0_cost.
17181 (shiftsub1_cost): New.
17182 (init_expmed): Compute shiftsub1_cost.
17183 (synth_mult): Optimize multiplications by constants of the form
17184 -(2^^m-1) for some constant positive integer m.
17186 2009-05-03 Richard Guenther <rguenther@suse.de>
17189 * c-typeck.c (array_to_pointer_conversion): Do not built
17190 ADDR_EXPRs of arrays of pointer-to-element type.
17191 * c-gimplify.c (c_gimplify_expr): Revert change fixing
17192 up wrong ADDR_EXPRs after-the-fact.
17193 * c-common.c (strict_aliasing_warning): Strip pointer
17194 conversions for obtaining the original type.
17195 * builtins.c (fold_builtin_memset): Handle array types.
17196 (fold_builtin_memory_op): Handle folded POINTER_PLUS_EXPRs
17199 2009-05-03 Richard Guenther <rguenther@suse.de>
17201 PR middle-end/23329
17202 * tree-ssa.c (useless_type_conversion_p_1): Use get_deref_alias_set.
17203 Do not lose casts from array types with unknown extent to array
17204 types with known extent.
17205 * tree-ssa-copy.c (may_propagate_copy): Remove hack checking for
17206 alias set compatibility.
17208 2009-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
17210 * flags.h (extra_warnings): Delete.
17211 * toplev.c (process_options): Handle Wuninitialized here.
17212 * opts.c (extra_warnings): Delete.
17213 (set_Wextra): Delete.
17214 (common_handle_option): -Wextra can be handled automatically.
17215 * c-opts.c (c_common_handle_option): Delete obsolete code.
17216 (c_common_post_options): Simplify comment.
17217 * common.opt (W): Add Var.
17219 (Wuninitialized): Initialize to -1.
17221 2009-05-03 Adam Nemet <anemet@caviumnetworks.com>
17222 Richard Guenther <rguenther@suse.de>
17224 * expr.c (get_def_for_expr): New function.
17225 (expand_expr_real_1) <PLUS_EXPR, MINUS_EXPR>: Adjust to work with
17226 SSA rather than trees.
17227 <MULT_EXPR>: Likewise. Use subexp0 and subexp1 instead of
17228 TREE_OPERAND (exp, 0) and TREE_OPERAND (exp, 1).
17230 2009-05-03 Joseph Myers <joseph@codesourcery.com>
17232 * c-common.c (reswords): Add _Imaginary.
17233 * c-common.c (enum rid): Add RID_IMAGINARY.
17235 2009-05-03 Paolo Bonzini <bonzini@gnu.org>
17237 * tree.h (TYPE_VECTOR_OPAQUE): Fix documentation.
17238 Patch by Richard Guenther.
17240 2009-05-03 Anatoly Sokolov <aesok@post.ru>
17242 * defaults.h (FRAME_POINTER_REQUIRED): Provide default.
17243 * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
17244 * config/alpha/alpha.h (FRAME_POINTER_REQUIRED): Delete.
17245 * config/s390/s390.h (FRAME_POINTER_REQUIRED): Delete.
17246 * config/spu/spu.h (FRAME_POINTER_REQUIRED): Delete.
17247 * config/sh/sh.h (FRAME_POINTER_REQUIRED): Delete.
17248 * config/pdp11/pdp11.h (FRAME_POINTER_REQUIRED): Delete.
17249 * config/stormy16/stormy16.h (FRAME_POINTER_REQUIRED): Delete.
17250 * config/m68hc11/m68hc11.h (FRAME_POINTER_REQUIRED): Delete.
17251 * config/iq2000/iq2000.h (FRAME_POINTER_REQUIRED): Delete.
17252 * config/mn10300/mn10300.h (FRAME_POINTER_REQUIRED): Delete.
17253 * config/ia64/ia64.h (FRAME_POINTER_REQUIRED): Delete.
17254 * config/m68k/m68k.h (FRAME_POINTER_REQUIRED): Delete.
17255 * config/rs6000/rs6000.h (FRAME_POINTER_REQUIRED): Delete.
17256 * config/picochip/picochip.h (FRAME_POINTER_REQUIRED): Delete.
17257 * config/mcore/mcore.h (FRAME_POINTER_REQUIRED): Delete.
17258 * config/h8300/h8300.h (FRAME_POINTER_REQUIRED): Delete.
17259 * config/v850/v850.h (FRAME_POINTER_REQUIRED): Delete.
17261 2009-05-02 Richard Guenther <rguenther@suse.de>
17263 PR tree-optimization/39940
17264 * tree-ssa-pre.c (eliminate): Make sure we may propagate before
17267 2009-05-02 Richard Guenther <rguenther@suse.de>
17269 PR middle-end/40001
17270 * tree-ssa.c (execute_update_addresses_taken): Properly check
17271 if we can mark a variable DECL_GIMPLE_REG_P.
17272 * gimple.c (is_gimple_reg): Re-order check for DECL_GIMPLE_REG_P
17273 back to the end of the function.
17274 (is_gimple_reg_type): Remove complex type special casing.
17275 * gimplify.c (gimplify_bind_expr): Do not set DECL_GIMPLE_REG_P
17278 2009-05-02 Ben Elliston <bje@au.ibm.com>
17280 * doc/collect2.texi (Collect2): Document search path behaviour
17281 when configured with --with-ld.
17283 2009-05-02 Jan Hubicka <jh@suse.cz>
17285 * tree-ssa-coalesce.c (coalesce_cost): Do not take ciritical
17286 parameter; update callers.
17287 (coalesce_cost_edge): EH edges are costier because they needs
17288 splitting even if not critical and even more costier when there are
17289 multiple EH predecestors.
17291 2009-05-02 Jan Hubicka <jh@suse.cz>
17293 * except.c (remove_eh_handler_and_replace): Handle updating after
17294 removing TRY blocks.
17296 2009-05-02 Eric Botcazou <ebotcazou@adacore.com>
17298 * store-motion.c (compute_store_table): Add ENABLE_CHECKING guard.
17300 2009-05-02 Steven Bosscher <steven@gcc.gnu.org>
17302 * varasm.c: Do not include c-pragma.h.
17303 * attribs.c: Do not incude c-common.h.
17305 2009-05-01 Michael Matz <matz@suse.de>
17307 * calls.c (initialize_argument_information): Handle SSA names like
17308 decls with a non MEM_P DECL_RTL.
17310 2009-05-01 Steven Bosscher <steven@gcc.gnu.org>
17312 * ipa-reference.c: Do not include c-common.h, include splay-tree.h.
17313 * ipa-utils.c: Likewise.
17314 * ipa-type-escape.c: Likewise.
17315 * cgraphunit.c Do not include c-common.h.
17316 * ipa-pure-const.c: Likewise.
17317 * tree-if-conv.c: Likewise.
17318 * matrix-reorg.c: Do not include c-common.h and c-tree.h.
17319 * ipa-struct-reorg.c: Likewise.
17320 * tree-nomudflap.c: Likewise.
17321 * tree-ssa-structalias.c: Likewise.
17323 2009-05-01 Steven Bosscher <steven@gcc.gnu.org>
17325 * store-motion.c: Many cleanups to make this pass a first-class
17326 citizen instead of an appendix to gcse load motion. Add TODO list
17327 to make this pass faster/cleaner/better.
17329 (struct ls_expr): Post gcse.c-split cleanups.
17330 Rename to st_expr. Rename "loads" field to "antic_stores". Rename
17331 "stores" field to "avail_stores".
17332 (pre_ldst_mems): Rename to store_motion_mems.
17333 (pre_ldst_table): Rename to store_motion_mems_table.
17334 (pre_ldst_expr_hash): Rename to pre_st_expr_hash, update users.
17335 (pre_ldst_expr_eq): Rename to pre_st_expr_eq, update users.
17336 (ldst_entry): Rename to st_expr_entry, update users.
17337 (free_ldst_entry): Rename to free_st_expr_entry, update users.
17338 (free_ldst_mems): Rename to free_store_motion_mems, update users.
17339 (enumerate_ldsts): Rename to enumerate_store_motion_mems,
17341 (first_ls_expr): Rename to first_st_expr, update users.
17342 (next_ls_expr): Rename to next_st_expr, update users.
17343 (print_ldst_list): Rename to print_store_motion_mems. Print names of
17344 fields properly for store motion instead of names inherited from load
17346 (ANTIC_STORE_LIST, AVAIL_STORE_LIST): Remove.
17347 (LAST_AVAIL_CHECK_FAILURE): Explain what this is. Undefine when we
17350 (ae_kill): Rename to st_kill, update users.
17351 (ae_gen): Rename to st_avloc, update users.
17352 (transp): Rename to st_transp, update users.
17353 (pre_insert_map): Rename to st_insert_map, update users.
17354 (pre_delete_map): Rename to st_delete_map, update users.
17355 (insert_store, build_store_vectors, free_store_memory,
17356 one_store_motion_pass): Update for abovementioned changes.
17358 (gcse_subst_count, gcse_create_count): Remove.
17359 (one_store_motion_pass): New statistics counters "n_stores_deleted"
17360 and "n_stores_created", local variables.
17362 (extract_mentioned_regs, extract_mentioned_regs_1): Rewrite to
17365 (regvec, compute_store_table_current_insn): Remove.
17366 (reg_set_info, reg_clear_last_set): Remove.
17367 (compute_store_table): Use DF caches instead of local dataflow
17370 2009-05-01 Joseph Myers <joseph@codesourcery.com>
17372 * c-objc-common.c (c_tree_printer): Print identifiers with
17373 pp_identifier, not pp_string. Mark "({anonymous})" for
17375 * c-pretty-print.c (pp_c_ws_string): New.
17376 (pp_c_cv_qualifier, pp_c_type_specifier,
17377 pp_c_specifier_qualifier_list, pp_c_parameter_type_list,
17378 pp_c_storage_class_specifier, pp_c_function_specifier,
17379 pp_c_attributes, pp_c_bool_constant, pp_c_constant,
17380 pp_c_primary_expression, pp_c_postfix_expression,
17381 pp_c_unary_expression, pp_c_shift_expression,
17382 pp_c_relational_expression, pp_c_equality_expression,
17383 pp_c_logical_and_expression, pp_c_logical_or_expression): Mostly
17384 use pp_string and pp_c_ws_string in place of pp_identifier and
17385 pp_c_identifier for non-identifiers. Mark English strings for
17387 * c-pretty-print.h (pp_c_ws_string): Declare.
17389 2009-04-30 Paul Pluzhnikov <ppluzhnikov@google.com>
17390 Roland McGrath <roland@redhat.com>
17392 * configure.ac (HAVE_LD_BUILDID): New check for ld --build-id support.
17393 (ENABLE_LD_BUILDID): New configuration option.
17394 * gcc.c [HAVE_LD_BUILDID and ENABLE_LD_BUILDID]
17395 (LINK_BUILDID_SPEC): New macro.
17396 (init_spec): If defined, prepend it between LINK_EH_SPEC and
17398 * doc/install.texi: Document --enable-linker-build-id option.
17399 * configure: Rebuild.
17400 * config.in: Rebuild.
17402 2009-04-30 Adam Nemet <anemet@caviumnetworks.com>
17404 * config/mips/mips.h (FRAME_GROWS_DOWNWARD,
17405 MIPS_GP_SAVE_AREA_SIZE): Define new macros.
17406 (STARTING_FRAME_OFFSET): Return 0 if FRAME_GROWS_DOWNWARD. Use
17407 MIPS_GP_SAVE_AREA_SIZE.
17408 * config/mips/mips.c (struct mips_frame_info): Update comment
17409 before arg_pointer_offset and hard_frame_pointer_offset.
17410 (mips_compute_frame_info): Update diagram before function: to
17411 correctly use stack_pointer_rtx for fp_sp_offset and gp_sp_offset, to
17412 indicate the position of frame_pointer_rtx with -fstack-protector and
17413 to show args_size. Don't allocate cprestore area for leaf functions
17414 if FRAME_GROWS_DOWNWARD. Use MIPS_GP_SAVE_AREA_SIZE to set
17416 (mips_initial_elimination_offset): Update for FRAME_GROWS_DOWNWARD.
17418 2009-04-30 Michael Matz <matz@suse.de>
17420 PR tree-optimization/39955
17421 * config/rs6000/rs6000.c (rs6000_check_sdmode): Also check SSA_NAMEs.
17423 2009-04-30 Dave Korn <dave.korn.cygwin@gmail.com>
17425 * ira.c (setup_cover_and_important_classes): Use safe macro
17426 REG_CLASS_FOR_CONSTRAINT instead of calling regclass_for_constraint
17428 * genpreds.c (write_tm_preds_h): Output suitable definition of
17429 REG_CLASS_FOR_CONSTRAINT.
17431 2009-04-30 Rafael Avila de Espindola <espindola@google.com>
17433 * alloc-pool.c (alloc_pool_descriptor): Use an insert_opion value
17435 * bitmap.c (bitmap_descriptor): Likewise.
17436 * ggc-common.c (loc_descriptor): Likewise.
17437 * varray.c (varray_descriptor): Likewise.
17438 * vec.c (vec_descriptor): Likewise.
17440 2009-04-30 Eric Botcazou <ebotcazou@adacore.com>
17442 * Makefile.in (dce.o): Add $(EXCEPT_H).
17443 * dce.c: Include except.h and delete redundant vector definitions.
17444 (deletable_insn_p): Return false for non-call insns that can throw
17447 2009-04-30 Steven Bosscher <steven@gcc.gnu.org>
17449 * gcse.c (ae_gen): Remove.
17450 (can_assign_to_reg_p): Rename to can_assign_to_reg_without_clobbers_p
17451 and make non-static function to make it available in store-motion.c.
17452 Update call sites with search-and-replace.
17453 (enumerate_ldsts, reg_set_info, reg_clear_last_set, store_ops_ok,
17454 extract_mentioned_regs, extract_mentioned_regs_helper,
17455 find_moveable_store, compute_store_table, load_kills_store, find_loads,
17456 store_killed_in_insn, store_killed_after, store_killed_before,
17457 build_store_vectors, insert_insn_start_basic_block, insert-store,
17458 remove_reachable_equiv_notes, replace_store_insn, delete_store,
17459 free_store_memory, one_store_motion_pass, gate_rtl_store_motion,
17460 execute_rtl_store_motion, pass_rtl_store_motion): Move to...
17461 * store-motion.c: ...new file. Also copy data structures from gcse.c
17462 and clean up to remove parts not used by store motion.
17463 * rtl.h (can_assign_to_reg_without_clobbers_p): Add prototype.
17464 * Makefile.in (store-motion.o): New rule. Add to OBJS-common.
17466 2009-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17469 * config/arm/arm.h (FUNCTION_BOUNDARY): Set to 16 for thumb
17470 when optimizing for size.
17472 2009-04-30 Hans-Peter Nilsson <hp@axis.com>
17474 * gcse.c (gcse_constant_p): Fix typo in last change.
17476 2009-04-30 Rafael Avila de Espindola <espindola@google.com>
17478 * plugin.c: Include plugin-version.h only if ENABLE_PLUGIN is defined.
17480 2009-04-30 Andreas Krebbel <krebbel1@de.ibm.com>
17482 * gcse.c (gcse_constant_p): Make sure the constant is sharable.
17484 2009-04-29 James E. Wilson <wilson@codesourcery.com>
17486 * config/mips/mips.c (mips_add_offset): Use gen_int_mode for
17487 CONST_HIGH_PART result.
17489 2009-04-29 Anatoly Sokolov <aesok@post.ru>
17491 * config/avr/avr.c (initial_elimination_offset): Rename to
17492 avr_initial_elimination_offset.
17493 (frame_pointer_required_p): Rename to avr_frame_pointer_required_p,
17494 change return type to bool.
17495 (avr_can_eliminate): New function.
17496 * config/avr/avr.h (CAN_ELIMINATE): Use avr_can_eliminate.
17497 (FRAME_POINTER_REQUIRED): Use avr_frame_pointer_required_p.
17498 (INITIAL_ELIMINATION_OFFSET): Use avr_initial_elimination_offset.
17499 * config/avr/avr-protos.h (initial_elimination_offset): Rename to
17500 avr_initial_elimination_offset.
17501 (frame_pointer_required_p): Rename to avr_frame_pointer_required_p.
17502 (avr_initial_elimination_offset): Define.
17504 2009-04-29 Eric Botcazou <ebotcazou@adacore.com>
17505 Steven Bosscher <steven@gcc.gnu.org>
17507 PR rtl-optimization/39938
17508 * Makefile.in (cfgrtl.o): Add $(INSN_ATTR_H).
17509 * cfgrtl.c: Include insn-attr.h.
17510 (rest_of_pass_free_cfg): New function.
17511 (pass_free_cfg): Use rest_of_pass_free_cfg as execute function.
17512 * resource.c (init_resource_info): Remove call to df_analyze.
17514 2009-04-29 Richard Guenther <rguenther@suse.de>
17517 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Only
17518 allow conversion to signed integers.
17520 2009-04-29 Richard Guenther <rguenther@suse.de>
17522 * tree-cfg.c (verify_gimple_assign_binary): Allow vector
17523 shifts of floating point vectors if the shift amount is
17524 a constant multiple of the element size.
17526 2009-04-29 Andreas Krebbel <krebbel1@de.ibm.com>
17527 Michael Matz <matz@suse.de>
17529 PR middle-end/39927
17531 * tree-outof-ssa.c (emit_partition_copy): New function.
17532 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
17533 insert_part_to_rtx_on_edge): Perform the partition base var
17534 copy using emit_partition_copy.
17535 (insert_value_copy_on_edge): Convert constants to the right mode.
17536 (insert_rtx_to_part_on_edge): Add UNSIGNEDSRCP parameter.
17537 (elim_create): Pass the sign of the src to insert_rtx_to_part_on_edge.
17539 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
17541 * config/bfin/bfin.c (bfin_optimize_loop): If we need a scratch reg,
17542 scan backwards to try to find a constant to initialize it.
17544 * config/bfin/bfin.c (bfin_optimize_loop): When looking for the last
17545 insn before the loop_end instruction, don't look past labels.
17547 2009-04-29 Richard Guenther <rguenther@suse.de>
17549 PR middle-end/39937
17550 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do not
17551 loose type conversions.
17552 (forward_propagate_addr_expr): Fix tuplification bug. Remove
17553 stmts only if there are no uses of its definition.
17555 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
17557 * config/bfin/bfin.h (splitting_loops): Declare.
17558 * config/bfin/bfin-protos.h (WA_05000257, WA_05000283, WA_05000315):
17559 Reorder bit definitions to be ascending.
17560 (WA_LOAD_LCREGS, ENABLE_WA_LOAD_LCREGS): New macros.
17561 * config/bfin/bfin.c (splitting_loops): New variable.
17562 (bfin_cpus): Add WA_LOAD_LCREGS as needed.
17563 (struct loop_info): Remove members INIT and LOOP_INIT.
17564 (bfin_optimize_loop): Don't set them. Reorder the code that generates
17565 the LSETUP sequence. Allow LC to be loaded from any register, but
17566 also add a case to push/pop a PREG scratch if ENABLE_WA_LOAD_LCREGS.
17567 (bfin_reorg_loops): When done, split all BB_ENDs with splitting_loops
17569 * config/bfin/bfin.md (loop_end splitter): Use splitting_loops instead
17570 of reload_completed.
17573 * config/bfin/bfin.md (movsi_insn): Refine constraints.
17575 2009-04-29 Rafael Avila de Espindola <espindola@google.com>
17577 * Makefile.in (PLUGIN_VERSION_H): New.
17578 (OBJS-common): Remove plugin-version.o.
17579 (plugin.o): Depend on (PLUGIN_VERSION_H).
17580 (plugin-version.o): Remove.
17581 * configure: Regenerate
17582 * configure.ac: Create plugin-version.h.
17583 * gcc-plugin.h (plugin_gcc_version): Remove.
17584 (plugin_default_version_check): Change signature.
17585 * plugin-version.c: Remove.
17586 * plugin.c: Include plugin-version.h.
17587 (str_plugin_gcc_version_name): Remove.
17588 (try_init_one_plugin): Pass gcc version to plugin_init.
17589 (plugin_default_version_check): Both gcc and plugin versions are now
17592 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
17594 * config/bfin/bfin.c (bfin_optimize_loop): Unify handling of
17595 problematic last insns. Test for TYPE_CALL rather than CALL_P.
17596 Remove special case testing for last insn of inner loops. Don't fail
17597 if the loop ends with a jump, emit an extra nop instead.
17599 * config/bfin/bfin.c (bfin_register_move_cost): Test for subsets of
17600 DREGS rather than comparing directly. Remove code that tries to
17601 account for latencies.
17603 2009-04-29 Richard Guenther <rguenther@suse.de>
17605 PR tree-optimization/39941
17606 * tree-ssa-pre.c (eliminate): Schedule update-ssa after
17607 eliminating an indirect call.
17609 2009-04-29 Richard Guenther <rguenther@suse.de>
17611 * tree-cfg.c (verify_types_in_gimple_reference): Add require_lvalue
17612 parameter. Allow invariants as base if !require_lvalue.
17613 (verify_gimple_assign_single): Adjust.
17615 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
17617 * config/bfin/bfin.md (sp_or_sm, spm_string, spm_name): New macro.
17618 (ss<spm_name>hi3, ss<spm_name>hi3_parts, ss<spm_name>hi3_low_parts,
17619 ss<spm_name_hi3_high_parts): New patterns, replacing ssaddhi3,
17620 ssubhi3, ssaddhi3_parts and sssubhi3_parts.
17621 (flag_mulhi3_parts): Produce a HImode output rather than trying to set
17623 * config/bfin/bfin.c (bfin_expand_builtin,
17624 case BFIN_BUILTIN_CPLX_SQU): Adjust accordingly.
17626 2009-04-28 Richard Guenther <rguenther@suse.de>
17628 * tree-vect-loop.c (get_initial_def_for_induction): Use
17629 correct types for pointer increment.
17631 2009-04-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17633 * toplev.c (print_version): Update GMP version string calculation.
17635 2009-04-28 Eric Botcazou <ebotcazou@adacore.com>
17637 PR rtl-optimization/39938
17638 * resource.c (init_resource_info): Add call to df_analyze.
17640 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
17642 * config/alpha/alpha.md (usegp): Cast the result of
17643 alpha_find_lo_sum_using_gp to enum attr_usegp.
17644 * config/alpha/alpha.c (override_options): Remove end-of-structure
17645 marker element from cpu_table. Use array size of cpu_table to handle
17646 -mcpu and -mtune options.
17647 (tls_symbolic_operand_type): Change 0 to TLS_MODEL_NONE.
17649 2009-04-28 Joseph Myers <joseph@codesourcery.com>
17651 * config.gcc (powerpc*-*-* | rs6000-*-*): Add
17652 rs6000/option-defaults.h to tm_file. Support cpu_32, cpu_64,
17653 tune_32 and tune_64.
17654 * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
17655 support on PowerPC.
17656 * config/rs6000/rs6000.h (OPTION_DEFAULT_SPECS): Move to ...
17657 * config/rs6000/option-defaults.h: ... here. New file.
17658 (OPT_64, OPT_32): Define.
17659 (MASK_64BIT): Define to 0 if not already defined.
17660 (OPT_ARCH64, OPT_ARCH32): Define.
17661 (OPTION_DEFAULT_SPECS): Add entries for cpu_32, cpu_64, tune_32
17664 2009-04-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17666 * config/arm/arm.c (arm_override_options): Emit error on using
17669 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
17671 PR rtl-optimization/39914
17672 * ira-conflicts.c (ira_build_conflicts): Prohibit call used
17673 registers for allocnos created from user-defined variables only
17674 when not optimizing.
17676 2009-04-28 Richard Guenther <rguenther@suse.de>
17678 PR middle-end/39937
17679 * fold-const.c (fold_binary): Use distribute_real_division only
17682 2009-04-28 Steve Ellcey <sje@cup.hp.com>
17684 * config.gcc (hppa*64*-*-hpux11*): Set use_gcc_stdint and
17685 add hpux-stdint.h to tm_file.
17686 (hppa[12]*-*-hpux11*): Ditto.
17687 (ia64*-*-hpux*): Ditto.
17688 * config/hpux-stdint.h: New.
17689 * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Set
17690 __STDC_EXT__ for all compiles.
17691 * config/pa/pa-hpux.h: Ditto.
17692 * config/pa/pa-hpux10.h: Ditto.
17693 * config/pa/pa-hpux11.h: Ditto.
17695 2009-04-28 Catherine Moore <clm@codesourcery.com>
17697 * debug.h (set_name): Add comment.
17699 2009-04-28 Andrew Pinski <pinskia@gmail.com>
17702 * config/darwin.c (machopic_gen_offset): Check
17703 currently_expanding_to_rtl if current_ir_type returns IR_GIMPLE.
17704 * config/arm/arm.c (require_pic_register): Likewise.
17706 2009-04-28 Paolo Bonzini <bonzini@gnu.org>
17708 * config/m32c/m32c.c (TARGET_PROMOTE_FUNCTION_RETURN,
17709 m32c_promote_function_return, TARGET_PROMOTE_PROTOTYPES,
17710 m32c_promote_prototypes): Delete.
17712 2009-04-28 Michael Matz <matz@suse.de>
17714 PR middle-end/39922
17715 * tree-outof-ssa.c (insert_value_copy_on_edge): Don't convert
17718 2009-04-28 Richard Guenther <rguenther@suse.de>
17720 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Fix type error.
17722 2009-04-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17724 * config/arm/arm-cores.def: Add support for arm1156t2f-s.
17725 * doc/invoke.texi (ARM Options): Document support for arm1156t2f-s.
17726 * config/arm/arm-tune.md: Regenerate.
17728 2009-04-28 Alexander Monakov <amonakov@ispras.ru>
17730 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not attempt to delete a
17731 block if there are complex incoming edges.
17732 (sel_merge_blocks): Remove useless assert.
17733 (sel_redirect_edge_and_branch): Check that edge was redirected.
17734 * sel-sched-ir.h (_eligible_successor_edge_p): Remove assert.
17735 (sel_find_rgns): Delete declaration.
17736 * sel-sched.c (purge_empty_blocks): Attempt to remove first block of
17737 the region when it is not a preheader.
17739 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
17742 * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Sync with elfos.h
17744 2009-04-28 Richard Guenther <rguenther@suse.de>
17746 * tree.h (SSA_NAME_VALUE): Remove.
17747 (struct tree_ssa_name): Remove value_handle member.
17748 * tree-vrp.c (execute_vrp): Initialize/free the value-handle
17749 array for jump threading.
17750 * tree-ssa-propagate.c (ssa_prop_init): Do not initialize
17752 * print-tree.c (print_node): Do not dump SSA_NAME_VALUEs.
17753 * tree-flow.h (threadedge_initialize_values): Declare.
17754 (threadedge_finalize_values): Likewise.
17755 * tree-ssa-threadedge.c (ssa_name_values): New global variable.
17756 (SSA_NAME_VALUE): Define.
17757 (threadedge_initialize_values): New function.
17758 (threadedge_finalize_values): Likewise.
17759 * tree-ssa-dom.c (ssa_name_values): New global variable.
17760 (SSA_NAME_VALUE): Define.
17761 (tree_ssa_dominator_optimize): Initialize/free the value-handle array.
17763 2009-04-28 Ira Rosen <irar@il.ibm.com>
17765 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
17766 Use REPORT_VECTORIZED_LOCATIONS instead
17767 REPORT_VECTORIZED_LOOPS.
17768 * tree-vectorizer.c (vect_verbosity_level): Make static.
17769 (vect_loop_location): Rename to vect_location.
17770 (vect_set_verbosity_level): Update comment.
17771 (vect_set_dump_settings): Use REPORT_VECTORIZED_LOCATIONS
17773 (vectorize_loops): Fix comment. Use REPORT_VECTORIZED_LOCATIONS
17774 and vect_location. Use REPORT_UNVECTORIZED_LOCATIONS
17775 instead REPORT_UNVECTORIZED_LOOPS.
17776 * tree-vectorizer.h (enum vect_def_type): Rename vect_invariant_def
17777 and vect_loop_def to vect_external_def and vect_internal_def.
17778 (enum verbosity_levels): Rename REPORT_VECTORIZED_LOOPS
17779 and REPORT_UNVECTORIZED_LOOPS to REPORT_VECTORIZED_LOCATIONS and
17780 REPORT_UNVECTORIZED_LOCATIONS.
17781 (enum vect_relevant): Update comment. Rename vect_unused_in_loop
17782 and vect_used_in_loop and to vect_unused_in_scope and
17783 vect_used_in_scope.
17784 (STMT_VINFO_RELEVANT_P): Use vect_unused_in_scope.
17785 (vect_verbosity_level): Remove declaration.
17786 (vect_analyze_operations): Likewise.
17787 (vect_analyze_stmt): Declare.
17788 * tree-vect-loop.c (vect_determine_vectorization_factor): Use
17789 REPORT_UNVECTORIZED_LOCATIONS.
17790 (vect_get_loop_niters): Fix indentation.
17791 (vect_analyze_loop_form): Use REPORT_UNVECTORIZED_LOCATIONS.
17792 (vect_analyze_loop_operations): New function.
17793 (vect_analyze_loop): Call vect_analyze_loop_operations instead of
17794 vect_analyze_operations.
17795 (vect_is_simple_reduction): Use new names.
17796 (vectorizable_live_operation, vect_transform_loop): Likewise.
17797 * tree-vect-data-refs.c (vect_check_interleaving): Add a return value
17798 to specify whether the data references can be a part of interleaving
17800 (vect_analyze_data_ref_dependence): Use new names.
17801 (vect_analyze_data_refs_alignment, vect_analyze_data_refs): Likewise.
17802 (vect_create_addr_base_for_vector_ref): Remove redundant code.
17803 * tree-vect-patterns.c (widened_name_p): Use new names.
17804 (vect_recog_dot_prod_pattern): Likewise.
17805 * tree-vect-stmts.c (vect_stmt_relevant_p): Use new names.
17806 (process_use, vect_mark_stmts_to_be_vectorized,
17807 vect_model_simple_cost, vect_model_store_cost,
17808 vect_get_vec_def_for_operand, vect_get_vec_def_for_stmt_copy,
17809 vectorizable_call, vectorizable_conversion, vectorizable_assignment,
17810 vectorizable_operation, vectorizable_type_demotion,
17811 vectorizable_type_promotion, vectorizable_store, vectorizable_load,
17812 vectorizable_condition): Likewise.
17813 (vect_analyze_operations): Split into vect_analyze_loop_operations
17815 (vect_analyze_stmt): ... new function.
17816 (new_stmt_vec_info): Use new names.
17817 (vect_is_simple_use): Use new names and fix comment.
17818 * tree-vect-slp.c (vect_get_and_check_slp_defs): Use new names.
17819 (vect_build_slp_tree, vect_analyze_slp, vect_schedule_slp): Likewise.
17821 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
17824 * config/i386/i386.c (print_operand) ['Z']: Handle floating point
17825 and integer modes for x87 operands. Do not ICE for unsupported size,
17826 generate error instead. Generate error for unsupported operand types.
17827 ['z']: Do not handle HImode memory operands specially. Warning
17828 for floating-point operands. Fallthru to 'Z' for unsupported operand
17829 types. Do not ICE for unsupported size, generate error instead.
17830 (output_387_binary_op): Use %Z to output operands.
17831 (output_fp_compare): Ditto.
17832 (output_387_reg_move): Ditto.
17834 2009-04-28 Ben Elliston <bje@au.ibm.com>
17839 2009-03-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
17841 * builtins.c (c_strlen): Do not warn here.
17842 * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
17843 * c-common.c (pointer_int_sum): Take an explicit location.
17844 Warn about offsets out of bounds.
17845 * c-common.h (pointer_int_sum): Adjust declaration.
17847 2009-04-27 Ian Lance Taylor <iant@google.com>
17849 * collect2.c (is_ctor_dtor): Change type of ret field in struct
17851 * dce.c (run_fast_df_dce): Change type of old_flags to int.
17852 * df-core.c (df_set_flags): Change return type to int. Change
17853 type of old_flags to int.
17854 (df_clear_flags): Likewise.
17855 * df-scan.c (df_def_record_1): Change 0 to VOIDmode.
17856 (df_get_conditional_uses): Likewise.
17857 * df.h (df_set_flags, df_clear_flags): Update declarations.
17858 * dwarf2out.c (struct indirect_string_node): Change type of form
17859 field to enum dwarf_form.
17860 (AT_string_form): Change return type to enum dwarf_form.
17861 * fixed-value.c (fixed_compare): Add cast to enum type.
17862 * fwprop.c (update_df): Change 0 to VOIDmode.
17863 * gensupport.c: Change 0 to UNKNOWN.
17864 * gimple.h (gimple_cond_code): Add cast to enum type.
17865 * haifa-sched.c (reemit_notes): Add cast to enum type.
17866 * hooks.c (hook_int_void_no_regs): Remove function.
17867 * hooks.h (hook_int_void_no_regs): Remove declaration.
17868 * optabs.c (expand_widen_pattern_expr): Change 0 to VOIDmode.
17869 * predict.c (combine_predictions_for_insn): Add casts to enum type.
17870 * real.c (real_arithmetic): Add cast to enum type.
17871 (real_compare): Likewise.
17872 * target.h (struct gcc_target): Change return type of
17873 branch_target_register_class to enum reg_class.
17874 * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Define as
17875 default_branch_target_register_class.
17876 * targhooks.c (default_branch_target_register_class): New function.
17877 * targhooks.h (default_branch_target_register_class): Declare.
17878 * tree-data-ref.c (print_direction_vector): Add cast to enum type.
17879 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Remove
17881 * tree-vect-loop.c (vect_create_epilog_for_reduction): Change 0 to
17883 * tree-vect-slp.c (vect_build_slp_tree): Change 0 to
17884 vect_uninitialized_def. Change 0 to ERROR_MARK.
17885 * tree-vect-stmts.c (supportable_widening_operation): Don't
17886 initialize icode1 and icode2.
17887 * tree-vectorizer.h (enum vect_def_type): Add vect_uninitialized_def.
17888 * config/sol2-c.c (cmn_err_length_specs): Change 0 to FMT_LEN_none
17890 (cmn_err_flag_specs): Change 0 to STD_C89.
17891 (cmn_err_char_table): Likewise.
17892 * config/arm/arm.c (get_arm_condition_code): Change type of code
17893 to enum arm_cond_code.
17894 (IWMMXT_BUILTIN): Change 0 to UNKNOWN.
17895 (IWMMXT_BUILTIN2): Likewise.
17896 (neon_builtin_type_bits): Don't define typedef.
17897 (neon_builtin_datum): Change type of bits field to int.
17898 (arm_expand_neon_args): Add cast to enum type.
17899 * config/ia64/ia64.c (tls_symbolic_operand_type): Change 0 to
17901 * config/i386/i386.c (bdesc_multi_arg): Change 0 to UNKNOWN. Add
17902 casts to enum type.
17903 * config/mips/mips.c (LOONGSON_BUILTIN_ALIAS): Change 0 to
17905 * config/mips/mips.md (jal_macro): Return enum constant.
17906 (single_insn): Likewise.
17907 * config/rs6000/rs6000.c (bdesc_altivec_preds): Change 0 to
17909 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
17910 casts to enum type.
17911 * config/s390/s390.c (s390_tune_flags): Change type to int.
17912 (s390_arch_flags): Likewise.
17913 (s390_handle_arch_option): Change flags field of struct pta to int.
17914 * config/s390/s390.h (s390_tune_flags): Update declaration.
17915 (s390_arch_flags): Likewise.
17916 * config/sh/sh.c (prepare_move_operands): Compare
17917 tls_symbolic_operand result with enum constant.
17918 (sh_reorg): Change PUT_MODE to PUT_REG_NOTE_KIND.
17919 (sh_expand_prologue): Add cast to enum type.
17920 (sh_expand_epilogue): Likewise.
17921 (tls_symbolic_operand): Change return type to enum tls_model.
17922 (fpscr_set_from_mem): Add cast to enum type.
17923 (legitimize_pic_address): Compare tls_symbolic_operand result with
17925 (sh_target_reg_class): Change return type to enum reg_class.
17926 * config/sh/sh.h (OVERRIDE_OPTIONS): Change CPU_xxx to
17928 * config/sh/sh-protos.h (tls_symbolic_operand): Update declaration.
17929 * config/sparc/sparc.c (sparc_override_options): Add cast to enum type.
17930 * config/sparc/sparc.md (empty_delay_slot): Return enum constant.
17931 (pic, calls_alloca, calls_eh_return, leaf_function): Likewise.
17932 (delayed_branch, tls_call_delay): Likewise.
17933 (eligible_for_sibcall_delay): Likewise.
17934 (eligible_for_return_delay): Likewise.
17935 * config/spu/spu.c (expand_builtin_args): Add cast to enum type.
17936 (spu_expand_builtin_1): Likewise.
17938 * c-typeck.c (convert_for_assignment): Issue -Wc++-compat warnings
17939 for all types of conversions.
17940 (output_init_element): Issue -Wc++-compat warning if needed when
17941 initializing a bitfield with enum type.
17942 * c-parser.c (c_parser_expression): Set original_type to
17943 original_type of right hand operand of comma operator.
17945 2009-04-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17947 * doc/c-tree.texi (Types, Functions, Expression trees): Fix
17949 * doc/cfg.texi (Maintaining the CFG, Liveness information): Likewise.
17950 * doc/cpp.texi (Standard Predefined Macros)
17951 (Implementation-defined behavior): Likewise.
17952 * doc/extend.texi (Function Attributes, Type Attributes): Likewise.
17953 * doc/gimple.texi (GIMPLE Exception Handling)
17954 (@code{GIMPLE_ASSIGN}): Likewise.
17955 * doc/install.texi (Prerequisites, Configuration, Specific): Likewise.
17956 * doc/invoke.texi (Warning Options, Optimize Options)
17957 (AVR Options, Darwin Options): Likewise.
17958 (Optimize Options): Reformulate -fwhole-program description.
17959 * doc/loop.texi (Lambda): Likewise.
17960 * doc/md.texi (Output Template, Define Constraints)
17961 (Standard Names, Insn Splitting): Likewise.
17962 * doc/options.texi (Option properties): Likewise.
17963 * doc/passes.texi (Tree-SSA passes): Likewise.
17964 * doc/rtl.texi (Side Effects, Assembler, Insns): Likewise.
17965 * doc/tm.texi (Register Classes, Old Constraints, Scalar Return)
17966 (File Names and DBX): Likewise.
17967 * doc/trouble.texi (Incompatibilities): Likewise.
17969 2009-04-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
17971 * spu.c (spu_machine_dependent_reorg): Make sure branch label on hint
17972 instruction is correct.
17974 2009-04-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
17976 Allow non-constant arguments to conversion intrinsics.
17977 * spu-protos.h (exp2_immediate_p, spu_gen_exp2): Declare.
17978 * predicates.md (spu_inv_exp2_operand, spu_exp2_operand): New.
17979 * spu.c (print_operand): Handle 'v' and 'w'.
17980 (exp2_immediate_p, spu_gen_exp2): Define.
17981 * spu-builtins.def (spu_convts, spu_convtu, spu_convtf_0,
17982 spu_convtf_1): Update parameter descriptions.
17983 * spu-builtins.md (spu_csflt, spu_cuflt, spu_cflts, spu_cfltu): Update.
17984 * constraints.md ('v', 'w'): New.
17985 * spu.md (UNSPEC_CSFLT, UNSPEC_CFLTS, UNSPEC_CUFLT, UNSPEC_CFLTU):
17987 (i2f, I2F): New define_mode_attr.
17988 (floatsisf2, floatv4siv4sf2, fix_truncsfsi2, fix_truncv4sfv4si2,
17989 floatunssisf2, floatunsv4siv4sf2, fixuns_truncsfsi2,
17990 fixuns_truncv4sfv4si2): Update to use mode attribute.
17991 (float<mode><i2f>2_mul, float<mode><i2f>2_div,
17992 fix_trunc<mode><f2i>2_mul, floatuns<mode><i2f>2_mul,
17993 floatuns<mode><i2f>2_div, fixuns_trunc<mode><f2i>2_mul): New
17994 patterns for combine.
17996 2009-04-27 Steven Bosscher <steven@gcc.gnu.org>
17998 * dbgcnt.def (cprop1, cprop2, gcse, jump_bypass): Remove
17999 (cprop, hoist, pre, store_motion): New debug counters.
18000 * tree-pass.h (pass_tracer): Move to list of gimple passes, it
18001 is not an RTL pass anymore.
18002 (pass_profiling): Remove extern decl for pass removed in 2005.
18003 (pass_gcse, pass_jump_bypass): Remove.
18004 * final.c (rest_of_clean_state): Set flag_rerun_cse_after_global_opts
18005 to 0 for clean state.
18006 * toplev.h (flag_rerun_cse_after_global_opts): Add extern declaration.
18007 * cse.c (gate_handle_cse_after_global_opts,
18008 rest_of_handle_cse_after_global_opts): New functions.
18009 (pass_cse_after_global_opts): New pass, does local CSE.
18010 * timevar.def (TV_GCSE, TV_CPROP1, TV_CPROP2, TV_BYPASS): Remove.
18011 (TV_CPROP): New timevar.
18012 * gcse.c (flag_rerun_cse_after_global_opts): New global variable.
18013 (run_jump_opt_after_gcse, max_gcse_regno): Remove global vars.
18014 (gcse_main, recompute_all_luids): Remove.
18015 (compute_hash_table_work): Call max_reg_num instead of reading
18017 (cprop_jump): Don't set run_jump_opt_after_gcse.
18018 (constprop_register): Always allow to alter jumps.
18019 (cprop_insn): Likewise.
18020 (do_local_cprop): Likewise.
18021 (local_cprop_pass): Likewise. Return non-zero if something changed.
18022 (cprop): Remove function, fold interesting bits into one_cprop_pass.
18023 (find_implicit_sets): Add note about missed optimization opportunity.
18024 (one_cprop_pass): Rewrite to be "the" CPROP pass, called from the
18025 pass_rtl_cprop execute function.
18026 Don't bother tracking the pass number, each pass gets its own dumpfile
18028 Always allow to alter jumpsand bypass jumps.
18029 (bypass_block): Don't ignore regno >= max_gcse_regno, find_bypass_set
18030 will just find no suitable set.
18031 (pre_edge_insert): Fix dumping, this function is for PRE only.
18032 (one_pre_gcse_pass): Rewrite to be "the" PRE pass, called from the
18033 pass_rtl_pre execute function.
18034 (hoist_code): Return non-zero if something changed. Keep track of
18035 substitutions and insertions for statistics gathering similar to PRE.
18036 (one_code_hoisting_pass): Rewrite to be "the" code hoisting pass,
18037 called from the pass_rtl_hoist execute function. Show pass statistics.
18038 (compute_store_table): Use max_reg_num directly instead of using the
18039 formerly global max_gcse_regno.
18040 (build_store_vectors): Likewise.
18041 (replace_store_insn): Fix dumping.
18042 (store_motion): Rename to ...
18043 (one_store_motion_pass): ... this. Rewrite to be "the" STORE_MOTION
18044 pass, called from the pass_rtl_store_motion execute function. Keep
18045 track of substitutions and insertions for statistics gathering similar
18047 (bypass_jumps): Remove, fold interesting bits into ...
18048 (one_cprop_pass): ... this. Rewrite to be "the" CPROP pass, called
18049 from the pass_rtl_cprop execute function.
18050 (gate_handle_jump_bypass, rest_of_handle_jump_bypass,
18051 pass_jump_bypass): Remove.
18052 (gate_handle_gcse, rest_of_handle_gcse): Remove.
18053 (gate_rtl_cprop, execute_rtl_cprop, pass_rtl_cprop): New.
18054 (gate_rtl_pre, execute_rtl_pre, pass_rtl_pre): New.
18055 (gate_rtl_hoist, execute_rtl_hoist, pass_rtl_hoist): New.
18056 (gate_rtl_store_motion, execute_rtl_store_motion,
18057 pass_rtl_store_motion): New.
18058 * common.opt: Remove flag_cse_skip_blocks, adjust documentation to
18059 make it clear that -fcse-skip-blocks is a no-op for backward compat.
18060 * passes.c (init_optimization_passes): Remove pass_gcse and
18061 pass_jump_bypass. Schedule cprop, pre, hoist, cprop, store_motion,
18062 and cse_after_global_opts in place of pass_gcse. Schedule cprop
18063 instead of pass_jump_bypass.
18065 2009-04-27 Richard Guenther <rguenther@suse.de>
18067 PR middle-end/39928
18068 * gimplify.c (gimplify_expr): If we are required to create
18069 a temporary make sure it ends up as register.
18071 2009-04-27 H.J. Lu <hongjiu.lu@intel.com>
18074 * config/i386/i386.c (construct_container): Don't call
18075 gen_reg_or_parallel with BLKmode on X86_64_SSE_CLASS,
18076 X86_64_SSESF_CLASS and X86_64_SSEDF_CLASS.
18078 2009-04-27 Michael Matz <matz@suse.de>
18080 * ssaexpand.h (struct ssaexpand): Member 'values' is a bitmap.
18081 (get_gimple_for_ssa_name): Adjust, lookup using SSA_NAME_DEF_STMT.
18082 * tree-ssa-live.h: (find_replaceable_exprs): Return a bitmap.
18083 (dump_replaceable_exprs): Take a bitmap.
18084 * cfgexpand.c (gimple_cond_pred_to_tree): Handle bitmap instead of
18086 (expand_gimple_basic_block): Likewise.
18087 * tree-ssa-ter.c (struct temp_expr_table_d): Make
18088 replaceable_expressions member a bitmap.
18089 (free_temp_expr_table): Pass back and deal with bitmap, not gimple*.
18090 (mark_replaceable): Likewise.
18091 (find_replaceable_in_bb, dump_replaceable_exprs): Likewise.
18092 * tree-outof-ssa.c (remove_ssa_form): 'values' is a bitmap.
18094 2009-04-27 Richard Guenther <rguenther@suse.de>
18096 * tree-cfg.c (remove_useless_stmts): Verify stmts afterwards.
18097 (verify_stmts): Dispatch to gimple/type verification code.
18098 * tree-inline.c (remap_gimple_op_r): Work around C++ FE
18099 issue with call argument types.
18101 2009-04-27 Michael Matz <matz@suse.de>
18103 * tree-into-ssa.c (regs_to_rename, mem_syms_to_rename): Remove.
18104 (init_update_ssa, delete_update_ssa, update_ssa): Remove references
18107 2009-04-27 Richard Sandiford <rdsandiford@googlemail.com>
18108 Eric Botcazou <ebotcazou@adacore.com>
18110 * resource.c (find_basic_block): Use BLOCK_FOR_INSN to look up
18111 a label's basic block.
18112 (mark_target_live_regs): Tidy and rework obsolete comments.
18113 Change back DF problem to LIVE. If a label starts a basic block,
18114 assume that all registers that used to be live then still are.
18115 (init_resource_info): If a label starts a basic block, set its
18116 BLOCK_FOR_INSN accordingly.
18117 (fini_resource_info): Undo the setting of BLOCK_FOR_INSN.
18119 2009-04-27 Richard Guenther <rguenther@suse.de>
18121 * tree-flow-inline.h (function_ann): Remove.
18122 (get_function_ann): Likewise.
18123 * tree-dfa.c (create_function_ann): Remove.
18124 * tree-flow.h (struct static_var_ann_d): Remove.
18125 (struct function_ann_d): Likewise.
18126 (union tree_ann_d): Remove fdecl member.
18127 (function_ann_t): Remove.
18128 (function_ann, get_function_ann, create_function_ann): Remove
18131 2009-04-27 Uros Bizjak <ubizjak@gmail.com>
18133 * config/alpha/alpha.c (code_for_builtin): Declare as enum insn_code.
18135 2009-04-27 Jan Hubicka <jh@suse.cz>
18137 * ipa-pure-const.c (struct funct_state_d): New fields
18138 state_previously_known, looping_previously_known; remove
18139 state_set_in_source.
18140 (analyze_function): Use new fields.
18141 (propagate): Avoid assumption that state_set_in_source imply
18144 * tree-ssa-loop-niter.c (finite_loop_p): New function.
18145 * tree-ssa-loop-ivcanon.c (empty_loop_p): Use it.
18146 * cfgloop.h (finite_loop_p): Declare.
18148 2009-04-26 Michael Matz <matz@suse.de>
18150 * tree-flow.h (tree_ann_common_d): Remove aux and value_handle members.
18152 2009-04-26 Michael Matz <matz@suse.de>
18154 * tree-pass.h (pass_del_ssa, pass_mark_used_blocks,
18155 pass_free_cfg_annotations, pass_free_datastructures): Remove decls.
18156 * gimple-low.c (mark_blocks_with_used_vars, mark_used_blocks,
18157 pass_mark_used_blocks): Remove.
18158 * tree-optimize.c (pass_free_datastructures,
18159 execute_free_cfg_annotations, pass_free_cfg_annotations): Remove.
18160 * passes.c (init_optimization_passes): Don't call
18161 pass_mark_used_blocks, remove dead code.
18163 2009-04-26 H.J. Lu <hongjiu.lu@intel.com>
18165 * tree-outof-ssa.c (rewrite_trees): Add ATTRIBUTE_UNUSED.
18166 * tree-ssa-live.h (register_ssa_partition): Likewise.
18168 2009-04-26 Michael Matz <matz@suse.de>
18171 * builtins.c (fold_builtin_next_arg): Handle SSA names.
18172 * tree-ssa-copyrename.c (rename_ssa_copies): Use ssa_name() directly.
18173 * tree-ssa-coalesce.c (create_outofssa_var_map): Mark only useful
18175 (compare_pairs): Swap cost comparison.
18176 (coalesce_ssa_name): Don't use change_partition_var.
18177 * tree-nrv.c (struct nrv_data): Add modified member.
18178 (finalize_nrv_r): Set it.
18179 (tree_nrv): Use it to update statements.
18180 (pass_nrv): Require PROP_ssa.
18181 * tree-mudflap.c (mf_decl_cache_locals,
18182 mf_build_check_statement_for): Use make_rename_temp.
18183 (pass_mudflap_2): Require PROP_ssa, run ssa update at finish.
18184 * alias.c (find_base_decl): Handle SSA names.
18185 * emit-rtl (set_reg_attrs_for_parm): Make non-static.
18186 (component_ref_for_mem_expr): Don't leak SSA names into RTL.
18187 * rtl.h (set_reg_attrs_for_parm): Declare.
18188 * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Rename
18189 to "optimized", remove unused locals at finish.
18190 (execute_free_datastructures): Make global, call
18191 delete_tree_cfg_annotations.
18192 (execute_free_cfg_annotations): Don't call
18193 delete_tree_cfg_annotations.
18195 * ssaexpand.h: New file.
18196 * expr.c (toplevel): Include ssaexpand.h.
18197 (expand_assignment): Handle SSA names the same as register variables.
18198 (expand_expr_real_1): Expand SSA names.
18199 * cfgexpand.c (toplevel): Include ssaexpand.h.
18200 (SA): New global variable.
18201 (gimple_cond_pred_to_tree): Fold TERed comparisons into predicates.
18202 (SSAVAR): New macro.
18203 (set_rtl): New helper function.
18204 (add_stack_var): Deal with SSA names, use set_rtl.
18205 (expand_one_stack_var_at): Likewise.
18206 (expand_one_stack_var): Deal with SSA names.
18207 (stack_var_size_cmp): Use code (SSA_NAME / DECL) as tie breaker
18208 before unique numbers.
18209 (expand_stack_vars): Use set_rtl.
18210 (expand_one_var): Accept SSA names, add asserts for them, feed them
18211 to above subroutines.
18212 (expand_used_vars): Expand all partitions (without default defs),
18213 then only the local decls (ignoring those expanded already).
18214 (expand_gimple_cond): Remove edges when jumpif() expands an
18215 unconditional jump.
18216 (expand_gimple_basic_block): Don't clear EDGE_EXECUTABLE here,
18217 or remove abnormal edges. Ignore insns setting the LHS of a TERed
18219 (gimple_expand_cfg): Call into rewrite_out_of_ssa, initialize
18220 members of SA; deal with PARM_DECL partitions here; expand
18221 all PHI nodes, free tree datastructures and SA. Commit instructions
18222 on edges, clear EDGE_EXECUTABLE and remove abnormal edges here.
18223 (pass_expand): Require and destroy PROP_ssa, verify SSA form, flow
18224 info and statements at start, collect garbage at finish.
18225 * tree-ssa-live.h (struct _var_map): Remove partition_to_var member.
18226 (VAR_ANN_PARTITION) Remove.
18227 (change_partition_var): Don't declare.
18228 (partition_to_var): Always return SSA names.
18229 (var_to_partition): Only accept SSA names.
18230 (register_ssa_partition): Only check argument.
18231 * tree-ssa-live.c (init_var_map): Don't allocate partition_to_var
18233 (delete_var_map): Don't free it.
18234 (var_union): Only accept SSA names, simplify.
18235 (partition_view_init): Mark only useful SSA names as used.
18236 (partition_view_fini): Only deal with SSA names.
18237 (change_partition_var): Remove.
18238 (dump_var_map): Use ssa_name instead of partition_to_var member.
18239 * tree-ssa.c (delete_tree_ssa): Don't remove PHI nodes on RTL
18241 * tree-outof-ssa.c (toplevel): Include ssaexpand.h and expr.h.
18242 (struct _elim_graph): New member const_dests; nodes member vector of
18244 (set_location_for_edge): New static helper.
18245 (create_temp): Remove.
18246 (insert_partition_copy_on_edge, insert_part_to_rtx_on_edge,
18247 insert_value_copy_on_edge, insert_rtx_to_part_on_edge): New functions.
18248 (new_elim_graph): Allocate const_dests member.
18249 (clean_elim_graph): Truncate const_dests member.
18250 (delete_elim_graph): Free const_dests member.
18251 (elim_graph_size): Adapt to new type of nodes member.
18252 (elim_graph_add_node): Likewise.
18253 (eliminate_name): Likewise.
18254 (eliminate_build): Don't take basic block argument, deal only with
18255 partition numbers, not variables.
18256 (get_temp_reg): New static helper.
18257 (elim_create): Use it, deal with RTL temporaries instead of trees.
18258 (eliminate_phi): Adjust all calls to new signature.
18259 (assign_vars, replace_use_variable, replace_def_variable): Remove.
18260 (rewrite_trees): Only do checking.
18261 (edge_leader, stmt_list, leader_has_match, leader_match): Remove.
18262 (same_stmt_list_p, identical_copies_p, identical_stmt_lists_p,
18263 init_analyze_edges_for_bb, fini_analyze_edges_for_bb,
18264 contains_tree_r, MAX_STMTS_IN_LATCH,
18265 process_single_block_loop_latch, analyze_edges_for_bb,
18266 perform_edge_inserts): Remove.
18267 (expand_phi_nodes): New global function.
18268 (remove_ssa_form): Take ssaexpand parameter. Don't call removed
18269 functions, initialize new parameter, remember partitions having a
18271 (finish_out_of_ssa): New global function.
18272 (rewrite_out_of_ssa): Make global. Adjust call to remove_ssa_form,
18273 don't reset in_ssa_p here, don't disable TER when mudflap.
18274 (pass_del_ssa): Remove.
18275 * tree-flow.h (struct var_ann_d): Remove out_of_ssa_tag and
18277 (execute_free_datastructures): Declare.
18278 * Makefile.in (SSAEXPAND_H): New variable.
18279 (tree-outof-ssa.o, expr.o, cfgexpand.o): Depend on SSAEXPAND_H.
18280 * basic-block.h (commit_one_edge_insertion): Declare.
18281 * passes.c (init_optimization_passes): Move pass_nrv and
18282 pass_mudflap2 before pass_cleanup_cfg_post_optimizing, remove
18283 pass_del_ssa, pass_free_datastructures, pass_free_cfg_annotations.
18284 * cfgrtl.c (commit_one_edge_insertion): Make global, don't declare.
18285 (redirect_branch_edge): Deal with super block when expanding, split
18286 out jump patching itself into ...
18287 (patch_jump_insn): ... here, new static helper.
18289 2009-04-26 Michael Matz <matz@suse.de>
18291 * tree-ssa-copyrename.c (rename_ssa_copies): Don't iterate
18292 beyond num_ssa_names.
18293 * tree-ssa-ter.c (free_temp_expr_table): Likewise.
18294 * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
18296 2009-04-26 Jakub Jelinek <jakub@redhat.com>
18298 PR inline-asm/39543
18299 * fwprop.c (forward_propagate_asm): New function.
18300 (forward_propagate_and_simplify): Propagate also into __asm, if it
18301 doesn't increase the number of referenced registers.
18304 * stmt.c (warn_if_unused_value): Look through NON_LVALUE_EXPR.
18306 2009-04-26 Jakub Jelinek <jakub@redhat.com>
18308 * tree-nested.c (get_nonlocal_vla_type): If not optimizing, call
18309 note_nonlocal_vla_type for nonlocal VLAs.
18310 (note_nonlocal_vla_type, note_nonlocal_block_vlas,
18311 contains_remapped_vars, remap_vla_decls): New functions.
18312 (convert_nonlocal_reference_stmt): If not optimizing, call
18313 note_nonlocal_block_vlas on GIMPLE_BIND block vars.
18314 (nesting_copy_decl): Return {VAR,PARM,RESULT}_DECL unmodified
18315 if it wasn't found in var_map.
18316 (finalize_nesting_tree_1): Call remap_vla_decls. If outermost
18317 GIMPLE_BIND doesn't have gimple_bind_block, chain debug_var_chain
18318 to BLOCK_VARS (DECL_INITIAL (root->context)) instead of calling
18320 * gimplify.c (nonlocal_vlas): New variable.
18321 (gimplify_var_or_parm_decl): Add debug VAR_DECLs for non-local
18323 (gimplify_body): Create and destroy nonlocal_vlas.
18325 * dwarf2out.c (loc_descr_plus_const): New function.
18326 (build_cfa_aligned_loc, tls_mem_loc_descriptor,
18327 mem_loc_descriptor, loc_descriptor_from_tree_1,
18328 descr_info_loc, gen_variable_die): Use it.
18330 * tree.h (DECL_BY_REFERENCE): Note that it is also valid for
18331 !TREE_STATIC VAR_DECLs.
18332 * dwarf2out.c (loc_by_reference, gen_decl_die): Handle
18333 DECL_BY_REFERENCE on !TREE_STATIC VAR_DECLs.
18334 (gen_variable_die): Likewise. Don't look at TREE_PRIVATE if
18335 DECL_BY_REFERENCE is valid.
18336 * dbxout.c (DECL_ACCESSIBILITY_CHAR): Don't look at TREE_PRIVATE
18337 for PARM_DECLs, RESULT_DECLs or !TREE_STATIC VAR_DECLs.
18338 * tree-nested.c (get_nonlocal_debug_decl, get_local_debug_decl):
18339 Copy DECL_BY_REFERENCE.
18340 (struct nesting_copy_body_data): New type.
18341 (nesting_copy_decl): New function.
18342 (finalize_nesting_tree_1): Remap types of debug_var_chain variables,
18343 if they have variable length.
18345 2009-04-26 Michael Matz <matz@suse.de>
18347 * tree-sra.c (sra_build_assignment): Don't use into_ssa mode,
18348 mark new temporaries for renaming.
18350 2009-04-26 Joseph Myers <joseph@codesourcery.com>
18353 * c-decl.c (global_bindings_p): Return negative value.
18354 (c_variable_size): New. Based on variable_size from
18356 (grokdeclarator): Call c_variable_size not variable_size.
18358 2009-04-26 Uros Bizjak <ubizjak@gmail.com>
18360 * config/i386/i386.c (print_operand) ['z']: Fix typo.
18362 2009-04-26 Kai Tietz <kai.tietz@onevision.com>
18364 * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR):
18365 Redefine it to just use mingw/include.
18366 (ASM_SPEC): Rules for -m32 and -m64.
18367 (LINK_SPEC): Use Likewise.
18368 (SPEC_32): New define.
18369 (SPEC_64): Likewise.
18370 (SUB_LINK_SPEC): Likewise.
18371 (MULTILIB_DEFAULTS): New define.
18372 * config/i386/t-mingw-w64 (MULTILIB_OPTIONS):
18373 Add multilib options.
18374 (MULTILIB_DIRNAMES): Likewise.
18375 (MULTILIB_OSDIRNAMES): Likewise.
18376 (LIBGCC): Likewise.
18377 (INSTALL_LIBGCC): Likewise.
18379 2009-04-26 Joseph Myers <joseph@codesourcery.com>
18382 * c-tree.h (enum c_inline_static_type): New.
18383 (record_inline_static): Declare.
18384 * c-decl.c (struct c_inline_static, c_inline_statics,
18385 record_inline_static, check_inline_statics): New.
18386 (pop_file_scope): Call check_inline_statics.
18387 (start_decl): Call record_inline_static instead of pedwarning
18388 directly for static in inline function.
18389 * c-typeck.c (build_external_ref): Call record_inline_static
18390 instead of pedwarning directly for static referenced in inline
18393 2009-04-26 Steven Bosscher <steven@gcc.gnu.org>
18395 * df-scan.c (df_insn_rescan): Salvage insn's LUID if the insn is
18396 not new but only being rescanned.
18397 * gcse.c (uid_cuid, max_uid, INSN_CUID, max_cuid, struct reg_set,
18398 reg_set_table, REG_SET_TABLE_SLOP, reg_set_in_block,
18399 alloc_reg_set_mem, free_reg_set_mem, record_one_set,
18400 record_set_info, compute_set, grealloc): Remove.
18401 (recompute_all_luids): New function.
18402 (gcse_main): Don't compute sets, and don't do related memory
18403 allocations/free-ing. If something changed before the end of the
18404 pass, update LUIDs using recompute_all_luids.
18405 (alloc_gcse_mem): Don't compute LUIDs. Don't allocate reg_set memory.
18406 (free_gcse_mem): Don't free it either.
18407 (oprs_unchanged_p, load_killed_in_block, record_last_reg_set_info):
18408 Use the df insn LUIDs.
18409 (load_killed_in_block): Likewise.
18410 (compute_hash_table_work): Don't compute reg_set_in_block.
18411 (compute_transp): Use DF_REG_DEF_CHAINs.
18412 (local_cprop_pass): Don't use compute_sets and related functions.
18413 (one_cprop_pass, pre_gcse, one_pre_gcse_pass, one_code_hoisting_pass):
18414 Use get_max_uid() instead of max_cuid.
18415 (insert_insn_end_basic_block, pre_insert_copy_insn,
18416 update_ld_motion_stores): Don't try to
18417 keep reg_set tables up to date.
18418 (pre_insert_copies): Use df insn LUIDs.
18419 (sbitmap pre_redundant_insns): Replace with uses of INSN_DELETED_P.
18420 (reg_set_info): Don't use extra bitmap argument.
18421 (compute_store_table): Don't compute reg_set_in_block. Use DF scan
18422 information to compute regs_set_in_block.
18423 (free_store_memory, store_motion): Don't nullify reg_set_in_block.
18424 (bypass_jumps): Don't use compute_sets and friends.
18426 2009-04-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18429 * opts.c (undocumented_msg): Do not leave blank even with
18432 2009-04-25 Joseph Myers <joseph@codesourcery.com>
18434 * c-decl.c (build_enumerator): Allow values folding to integer
18435 constants but not integer constant expressions with a pedwarn if
18438 2009-04-25 Joseph Myers <joseph@codesourcery.com>
18441 * c-typeck.c (c_expr_sizeof_type): Create a C_MAYBE_CONST_EXPR
18442 with non-null C_MAYBE_CONST_EXPR_PRE if size of a variable-length
18443 type is an integer constant.
18445 2009-04-25 Uros Bizjak <ubizjak@gmail.com>
18448 * config/i386/i386.c (print_operand) ['z']: Revert handling of
18451 2009-04-25 Joseph Myers <joseph@codesourcery.com>
18454 * c-decl.c (grokdeclarator): Diagnose declarations of functions
18455 with variably modified return type and no storage class
18456 specifiers, except for the case of nested functions. Distinguish
18457 extern declarations of functions with variably modified return
18458 types from those of objects with variably modified types.
18460 2009-04-25 Jan Hubicka <jh@suse.cz>
18462 * tree.c (list_equal_p): New function.
18463 * tree.h (list_equal_p): Declare.
18464 * coretypes.h (edge_def, edge, const_edge, basic_block_def
18465 basic_block_def, basic_block, const_basic_block): New.
18466 * tree-eh.c (make_eh_edge): EH edges are not abnormal.
18467 (redirect_eh_edge): New function.
18468 (make_eh_edge_update_phi): EH edges are not abnormal.
18469 * except.c: Include tree-flow.h.
18470 (list_match): New function.
18471 (eh_region_replaceable_by_p): New function.
18472 (replace_region): New function.
18473 (hash_type_list): New function.
18474 (hash_eh_region): New function.
18475 (eh_regions_equal_p): New function.
18476 (merge_peers): New function.
18477 (remove_unreachable_regions): Verify EH tree when checking;
18479 (copy_eh_region_1): New function.
18480 (copy_eh_region): New function.
18481 (push_reachable_handler): New function.
18482 (build_post_landing_pads, dw2_build_landing_pads): Be ready for
18483 regions without label but with live RESX.
18484 * except.h (redirect_eh_edge_to_label): New.
18485 * tree-flow.h (redirect_eh_edge): New.
18486 * coretypes.h (edge_def, edge, const_edge, basic_block_def
18487 basic_block_def, basic_block, const_basic_block): Remove.
18488 * Makefile.in (except.o): Add dependency on tree-flow.h
18489 * tree-cfg.c (gimple_redirect_edge_and_branch): Handle EH edges.
18490 * basic-block.h (edge, const_edge, basic_block, const_basic_block):
18493 2009-04-25 Eric Botcazou <ebotcazou@adacore.com>
18496 * config/sparc/sparc.c (sparc_gimplify_va_arg): Set TREE_ADDRESSABLE
18497 on the destination of memcpy.
18499 2009-04-25 Paolo Bonzini <bonzini@gnu.org>
18501 * doc/tm.texi (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
18502 REGNO_MODE_OK_FOR_REG_BASE_P, REGNO_MODE_CODE_OK_FOR_BASE_P,
18503 REGNO_OK_FOR_INDEX_P): Mention strict/nonstrict difference.
18505 2009-04-25 Jan Hubicka <jh@suse.cz>
18507 * tree-eh.c (tree_remove_unreachable_handlers): Handle shared labels.
18508 (tree_empty_eh_handler_p): Allow non-EH predecestors; allow region
18509 to be reached by different label than left.
18510 (update_eh_edges): Update comment; remove edge_to_remove if possible
18511 and return true if suceeded.
18512 (cleanup_empty_eh): Accept sharing map; handle shared regions.
18513 (cleanup_eh): Compute sharing map.
18514 * except.c (remove_eh_handler_and_replace): Add argument if we should
18516 (remove_unreachable_regions): Update for label sharing.
18517 (label_to_region_map): Likewise.
18518 (get_next_region_sharing_label): New function.
18519 (remove_eh_handler_and_replace): Add update_catch_try parameter; update
18521 (remove_eh_handler): Update.
18522 (remove_eh_region_and_replace_by_outer_of): New function.
18523 * except.h (struct eh_region): Add next_region_sharing_label.
18524 (remove_eh_region_and_replace_by_outer_of,
18525 get_next_region_sharing_label): Declare.
18526 * tree-cfgcleanup.c (tree_forwarder_block_p): Simplify.
18528 2009-04-25 Jan Hubicka <jh@suse.cz>
18530 * tree-cfg.c (split_critical_edges): Split also edges where we can't
18531 insert code even if they are not critical.
18533 2009-04-25 Jan Hubicka <jh@suse.cz>
18535 * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
18536 (gimple_can_remove_branch_p): EH edges won't remove branch by
18538 * tree-inline.c (update_ssa_across_abnormal_edges): Do handle
18539 updating of non-abnormal EH edges.
18540 * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
18541 (gimple_can_remove_branch_p): EH edges are unremovable by redirection.
18542 (split_critical_edges): Split also edges where emitting code on them
18543 will lead to splitting later.
18545 2009-04-25 Uros Bizjak <ubizjak@gmail.com>
18546 H.J. Lu <hongjiu.lu@intel.com>
18549 * configure.ac (HAVE_AS_IX86_FILDQ): On x86 targets check whether
18550 the configured assembler supports fildq and fistpq mnemonics.
18551 (HAVE_AS_IX86_FILDS): Rename from HAVE_GAS_FILDS_FISTS.
18552 * configure: Regenerated.
18553 * config.in: Ditto.
18555 * config/i386/i386.c (print_operand): Handle 'Z'.
18556 ['z']: Remove handling of special fild/fist suffixes.
18557 (output_fix_trunc): Use '%Z' to output suffix of fist{,p,tp} insn.
18558 * config/i386/i386.md (*floathi<mode>2_i387): Use '%Z' to output
18559 suffix of fild insn.
18560 (*floatsi<mode>2_vector_mixed): Ditto.
18561 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Ditto.
18562 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Ditto.
18563 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
18564 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387): Ditto.
18565 * config/i386/gas.h (GAS_MNEMONICS): Remove.
18567 2009-04-25 Ben Elliston <bje@au.ibm.com>
18569 * genrecog.c (validate_pattern): Do not warn for VOIDmode CALLs as
18570 the source of a set operation.
18572 2009-04-25 Anatoly Sokolov <aesok@post.ru>
18574 * target.h (struct gcc_target): Add case_values_threshold field.
18575 * target-def.h (TARGET_CASE_VALUES_THRESHOLD): New.
18576 (TARGET_INITIALIZER): Use TARGET_CASE_VALUES_THRESHOLD.
18577 * targhooks.c (default_case_values_threshold): New function.
18578 * targhooks.h (default_case_values_threshold): Declare function.
18579 * stmt.c (expand_case): Use case_values_threshold target hook.
18580 * expr.h (case_values_threshold): Remove declartation.
18581 * expr.c (case_values_threshold): Remove function.
18582 * doc/tm.texi (CASE_VALUES_THRESHOLD): Revise documentation.
18584 * config/avr/avr.h (CASE_VALUES_THRESHOLD): Remove macro.
18585 * config/avr/avr.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
18586 (avr_case_values_threshold): Declare as static.
18587 * config/avr/avr-protos.h (avr_case_values_threshold): Remove.
18589 * config/avr/mn10300.h (CASE_VALUES_THRESHOLD): Remove macro.
18590 * config/avr/mn10300.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
18591 (mn10300_case_values_threshold): New function.
18593 2009-04-24 H.J. Lu <hongjiu.lu@intel.com>
18595 * ira.c (setup_cover_and_important_classes): Add enum cast.
18597 2009-04-24 Vladimir Makarov <vmakarov@redhat.com>
18599 * genpreds.c (write_enum_constraint_num): Output definition of
18600 CONSTRAINT_NUM_DEFINED_P macro.
18601 * ira.c (setup_cover_and_important_classes): Use
18602 CONSTRAINT_NUM_DEFINED_P instead of CONSTRAINT__LIMIT in #ifdef.
18604 2009-04-24 DJ Delorie <dj@redhat.com>
18606 * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Test
18607 __SH2A_SINGLE_ONLY__ also.
18609 2009-04-24 Steve Ellcey <sje@cup.hp.com>
18611 * config/ia64/ia64.md (movfs_internal): Allow flt constants.
18612 (movdf_internal): Ditto.
18613 * config/ia64/ia64.c (ia64_legitimate_constant_p): Allow
18614 SFmode and DFmode constants.
18615 (ia64_print_operand): Add 'G' format for printing
18616 floating point constants.
18618 2009-04-24 Richard Guenther <rguenther@suse.de>
18620 * tree-vrp.c (extract_range_from_binary_expr): Handle overflow
18621 from unsigned additions.
18623 2009-04-24 Joseph Myers <joseph@codesourcery.com>
18625 * c-typeck.c (set_init_index): Allow array designators that are
18626 not integer constant expressions with a pedwarn if pedantic.
18628 2009-04-24 Bernd Schmidt <bernd.schmidt@analog.com>
18630 * simplify-rtx.c (simplify_binary_operation_1, case AND): Result is
18631 zero if no overlap in nonzero bits between the operands.
18633 2009-04-24 Ian Lance Taylor <iant@google.com>
18635 * combine.c (record_value_for_reg): Change 0 to VOIDmode, twice.
18636 (record_dead_and_set_regs): Likewise.
18637 * df.h (struct df_mw_hardreg): Change flags field to int.
18638 (struct df_base_ref): Likewise.
18639 (struct df): Change changeable_flags field to int.
18640 * df-scan.c (df_defs_record): Change clobber_flags to int.
18641 * dwarf2.h (enum dwarf_tag): Make lo_user and hi_user values enum
18642 constants rather than #define macros.
18643 (enum dwarf_attribute, enum dwarf_location_atom): Likewise.
18644 (enum dwarf_type, enum dwarf_endianity_encoding): Likewise.
18645 (enum dwarf_calling_convention): Likewise.
18646 (enum dwarf_line_number_x_ops): Likewise.
18647 (enum dwarf_call_frame_info): Likewise.
18648 (enum dwarf_source_language): Likewise.
18649 * dwarf2out.c (int_loc_descriptor): Add cast to enum type.
18650 (add_calling_convention_attribute): Likewise.
18651 * fold-const.c (fold_undefer_overflow_warnings): Add cast to enum type.
18652 (combine_comparisons): Change compcode to int. Add cast to enum type.
18653 * genrecog.c (maybe_both_true_2): Change c to int.
18654 (write_switch): Likewise. Add cast to enum type.
18655 * gimplify.c (gimplify_omp_for): Handle return values from
18656 gimplify_expr using MIN rather than bitwise or.
18657 (gimplify_expr): Add cast to enum type.
18658 * ipa-prop.c (update_jump_functions_after_inlining): Change
18659 IPA_BOTTOM to IPA_JF_UNKNOWN.
18660 * ira.c (setup_class_subset_and_memory_move_costs): Change mode to int.
18661 Add casts to enum type.
18662 (setup_cover_and_important_classes): Change cl to int. Add casts
18664 (setup_class_translate): Change cl and mode to int.
18665 (ira_init_once): Change mode to int.
18666 (free_register_move_costs): Likewise.
18667 (setup_prohibited_mode_move_regs): Add casts to enum type.
18668 * langhooks.c (add_builtin_function_common): Rework assertion that
18669 value fits bitfield.
18670 * mcf.c (add_fixup_edge): Change type parameter to edge_type.
18671 * omega.c (omega_do_elimination): Avoid math on enum types.
18672 * optabs.c (expand_vec_shift_expr): Remove casts to int.
18673 * opts.c (set_debug_level): Change 2 to enum constant. Use new
18674 int local to handle integral_argment value.
18675 * regmove.c (try_auto_increment): Change PUT_MODE to
18677 * reload.c (push_secondary_reload): Add casts to enum type.
18678 (secondary_reload_class, find_valid_class): Likewise.
18679 * reload1.c (emit_input_reload_insns): Likewise.
18680 * rtl.h (NOTE_VAR_LOCATION_STATUS): Likewise.
18681 * sel-sched.c (init_hard_regs_data): Change cur_mode to int.
18682 * sel-sched-ir.c (hash_with_unspec_callback): Change 0 to enum
18684 * tree.c (build_common_builtin_nodes): Add casts to enum type.
18685 * tree-complex.c (complex_lattice_t): Typedef to int rather than
18687 (expand_complex_libcall): Add casts to enum type.
18688 * tree-into-ssa.c (get_ssa_name_ann): Change 0 to enum constant.
18689 * tree-vect-loop.c (vect_model_reduction_cost): Compare reduc_code
18690 with ERROR_MARK, not NUM_TREE_CODES.
18691 (vect_create_epilog_for_reduction): Likewise.
18692 (vectorizable_reduction): Don't initialize epiloc_reduc_code.
18693 When not using it, set it to ERROR_MARK rather than NUM_TREE_CODES.
18694 * tree-vect-patterns.c (vect_pattern_recog_1): Change vec_mode to
18696 * tree-vect-stmts.c (new_stmt_vec_info): Change 0 to
18697 vect_unused_in_loop. Change 0 to loop_vect.
18698 * tree-vectorizer.c (vect_set_verbosity_level): Add casts to enum type.
18699 * var-tracking.c (get_init_value): Change return type to enum
18701 * vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
18702 * config/arm/arm.c (fp_model_for_fpu): Change to array to enum
18704 (arm_override_options): Add casts to enum type.
18705 (arm_emit_tls_decoration): Likewise.
18706 * config/i386/i386.c (ix86_function_specific_restore): Add casts
18708 * config/i386/i386-c.c (ix86_pragma_target_parse): Likewise.
18709 * config/ia64/ia64.c (ia64_expand_compare): Change magic to int.
18710 * config/rs6000/rs6000.c (rs6000_override_options): Add casts to
18712 * config/s390/s390.c (code_for_builtin_64): Change to array of
18714 (code_for_builtin_31): Likewise.
18715 (s390_expand_builtin): Change code_for_builtin to enum insn_code
18717 * config/sparc/sparc.c (sparc_override_options): Change value
18718 field in struct code_model to enum cmodel. In initializer change
18719 0 to NULL and add cast to enum type.
18721 * c-typeck.c (build_modify_expr): Add lhs_origtype parameter.
18722 Change all callers. Issue a -Wc++-compat warning using
18723 lhs_origtype if necessary.
18724 (convert_for_assignment): Issue -Wc++-compat warnings about
18725 invalid conversions to enum type on assignment.
18726 * c-common.h (build_modify_expr): Update declaration.
18728 2009-04-24 Nick Clifton <nickc@redhat.com>
18730 * config/iq2000/iq2000.c (function_arg): Handle TImode values.
18731 (function_arg_advance): Likewise.
18732 * config/iq2000/iq2000.md (movsi_internal2): Fix the length of the
18735 2009-04-24 Andreas Krebbel <krebbel1@de.ibm.com>
18737 * config/s390/constraints.md ('I', 'J'): Fix condition.
18739 2009-04-24 Diego Novillo <dnovillo@google.com>
18741 * gengtype-parse.c (parse_error): Add newline after message.
18743 2009-04-24 H.J. Lu <hongjiu.lu@intel.com>
18745 * config/i386/sse.md (avxmodesuffixs): Removed.
18746 (*avx_pinsr<avxmodesuffixs>): Renamed to ...
18747 (*avx_pinsr<ssevecsize>): This.
18749 2009-04-24 Bernd Schmidt <bernd.schmidt@analog.com>
18751 * loop-iv.c (replace_single_def_regs): Look for REG_EQUAL notes;
18752 follow chains of regs with a single definition, and allow expressions
18753 that are function_invariant_p.
18754 (simple_rhs_p): Allow expressions that are function_invariant_p.
18756 2009-04-24 Paolo Bonzini <bonzini@gnu.org>
18758 PR middle-end/39867
18759 * fold-const.c (fold_cond_expr_with_comparison): When folding
18760 > and >= to MAX, make sure the MAX uses the same type as the
18761 comparison's operands.
18763 2009-04-24 Nick Clifton <nickc@redhat.com>
18765 * config/frv/frv.c (frv_frame_access): Do not use reg+reg
18766 addressing for DImode accesses.
18767 (frv_print_operand_address): Handle PLUS case.
18768 * config/frv/frv.h (FIXED_REGISTERS): Mark link register as fixed.
18770 2009-04-24 Jakub Jelinek <jakub@redhat.com>
18772 PR rtl-optimization/39794
18773 * alias.c (canon_true_dependence): Add x_addr argument.
18774 * rtl.h (canon_true_dependence): Adjust prototype.
18775 * cse.c (check_dependence): Adjust canon_true_dependence callers.
18776 * cselib.c (cselib_invalidate_mem): Likewise.
18777 * gcse.c (compute_transp): Likewise.
18778 * dse.c (scan_reads_nospill): Likewise.
18779 (record_store, check_mem_read_rtx): Likewise. For non-const-or-frame
18780 addresses pass base->val_rtx as mem_addr, for const-or-frame addresses
18781 canon_base_addr of the group, plus optional offset.
18782 (struct group_info): Rename canon_base_mem to
18784 (get_group_info): Set canon_base_addr to canon_rtx of base, not
18785 canon_rtx of base_mem.
18787 2009-04-23 Paolo Bonzini <bonzini@gnu.org>
18789 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
18790 Use memory_address_p instead of GO_IF_LEGITIMATE_ADDRESS.
18792 2009-04-23 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18794 * config/spu/spu-builtins.h: Delete file.
18796 * config/spu/spu.h (enum spu_builtin_type): Move here from
18798 (struct spu_builtin_description): Likewise. Add GTY marker.
18799 Do not use enum spu_function_code or enum insn_code.
18800 (spu_builtins): Add extern declaration.
18802 * config/spu/spu.c: Do not include "spu-builtins.h".
18803 (enum spu_function_code, enum spu_builtin_type_index,
18804 V16QI_type_node, V8HI_type_node, V4SI_type_node, V2DI_type_node,
18805 V4SF_type_node, V2DF_type_node, unsigned_V16QI_type_node,
18806 unsigned_V8HI_type_node, unsigned_V4SI_type_node,
18807 unsigned_V2DI_type_node): Move here from spu-builtins.h.
18808 (spu_builtin_types): Make static. Add GTY marker.
18809 (spu_builtins): Add extern declaration with GTY marker.
18810 Include "gt-spu.h".
18812 * config/spu/spu-c.c: Do not include "spu-builtins.h".
18813 (spu_resolve_overloaded_builtin): Do not use spu_function_code.
18814 Check programmatically whether all parameters are scalar.
18816 * config/spu/t-spu-elf (spu.o, spu-c.o): Update dependencies.
18818 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
18820 * gimplify.c (gimplify_modify_expr_rhs) <VAR_DECL>: Do not do a direct
18821 assignment from the constructor either if the target is volatile.
18823 2009-04-23 Daniel Jacobowitz <dan@codesourcery.com>
18825 * config/arm/arm.md (insv): Do not share operands[0].
18827 2009-04-23 Nathan Sidwell <nathan@codesourcery.com>
18829 * config/vxlib-tls.c (active_tls_threads): Delete.
18830 (delete_hook_installed): New.
18831 (tls_delete_hook): Don't delete the delete hook.
18832 (tls_destructor): Delete it here.
18833 (__gthread_set_specific): Adjust installing the delete hook.
18834 (tls_delete_hook): Use __gthread_enter_tsd_dtor_context and
18835 __gthread_leave_tsd_dtor_context.
18837 2009-04-23 Rafael Avila de Espindola <espindola@google.com>
18839 * c-format.c (gcc_tdiag_char_table): Add support for %E.
18841 2009-04-23 Uros Bizjak <ubizjak@gmail.com>
18843 * config/alpha/alpha.c (alpha_legitimize_reload_address): Add cast to
18845 (alpha_rtx_costs): Ditto.
18846 (emit_unlikely_jump): Use add_reg_note.
18847 (emit_frame_store_1): Ditto.
18848 (alpha_expand_prologue): Ditto.
18849 (alpha_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
18850 * config/alpha/alpha.c (Unicos/Mk address splitter): Use add_reg_note.
18852 2009-04-23 Nick Clifton <nickc@redhat.com>
18854 * config/v850/v850.md (epilogue): Remove suppressed code.
18855 (return): Rename to return_simple and remove test of frame size.
18856 * config/v850/v850.c (expand_epilogue): Rename call to gen_return
18857 to gen_return_simple.
18859 2009-04-22 Jing Yu <jingyu@google.com>
18862 * config/arm/arm.h: Define HANDLE_PRAGMA_PACK_PUSH_POP.
18864 2009-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
18867 * c-typeck.c (process_init_element): Treat VECTOR_TYPE like ARRAY_TYPE
18868 and RECORD_TYPE/UNION_TYPE. When outputing the actual element and the
18869 value is a VECTOR_CST, the element type is the element type of the
18872 2009-04-22 DJ Delorie <dj@redhat.com>
18874 * config/m32c/m32c.h: Update GTY annotations to new syntax.
18876 2009-04-22 Jakub Jelinek <jakub@redhat.com>
18878 * alias.c (find_base_term): Move around LO_SUM case, so that
18879 CONST falls through into PLUS/MINUS handling.
18882 * fold-const.c (fold_binary) <case LSHIFT_EXPR>: When optimizing
18883 into 0, use omit_one_operand.
18885 2009-04-23 Ben Elliston <bje@au.ibm.com>
18887 * config/rs6000/linux-unwind.h (get_regs): Remove type
18888 puns. Change the type of `pc' to an array of unsigned ints and
18889 update all users. Constify frame24.
18891 2009-04-22 DJ Delorie <dj@redhat.com>
18893 * config/m32c/m32c.c (m32c_special_page_vector_p): Move
18894 declarations before code.
18895 (current_function_special_page_vector): Likewise.
18896 (m32c_expand_insv): Silence a warning.
18898 2009-04-21 Taras Glek <tglek@mozilla.com>
18900 * alias.c: Update GTY annotations to new syntax.
18901 * basic-block.h: Likewise.
18902 * bitmap.h: Likewise.
18903 * c-common.h: Likewise.
18904 * c-decl.c: Likewise.
18905 * c-parser.c: Likewise.
18906 * c-pragma.c: Likewise.
18907 * c-tree.h: Likewise.
18908 * cfgloop.h: Likewise.
18909 * cgraph.h: Likewise.
18910 * config/alpha/alpha.c: Likewise.
18911 * config/arm/arm.h: Likewise.
18912 * config/avr/avr.h: Likewise.
18913 * config/bfin/bfin.c: Likewise.
18914 * config/cris/cris.c: Likewise.
18915 * config/darwin.c: Likewise.
18916 * config/frv/frv.c: Likewise.
18917 * config/i386/i386.c: Likewise.
18918 * config/i386/i386.h: Likewise.
18919 * config/i386/winnt.c: Likewise.
18920 * config/ia64/ia64.h: Likewise.
18921 * config/iq2000/iq2000.c: Likewise.
18922 * config/mips/mips.c: Likewise.
18923 * config/mmix/mmix.h: Likewise.
18924 * config/pa/pa.c: Likewise.
18925 * config/pa/pa.h: Likewise.
18926 * config/rs6000/rs6000.c: Likewise.
18927 * config/s390/s390.c: Likewise.
18928 * config/sparc/sparc.c: Likewise.
18929 * config/xtensa/xtensa.c: Likewise.
18930 * cselib.h: Likewise.
18931 * dbxout.c: Likewise.
18932 * dwarf2out.c: Likewise.
18933 * except.c: Likewise.
18934 * except.h: Likewise.
18935 * fixed-value.h: Likewise.
18936 * function.c: Likewise.
18937 * function.h: Likewise.
18938 * gimple.h: Likewise.
18939 * integrate.c: Likewise.
18940 * optabs.c: Likewise.
18941 * output.h: Likewise.
18942 * real.h: Likewise.
18944 * stringpool.c: Likewise.
18945 * tree-data-ref.c: Likewise.
18946 * tree-flow.h: Likewise.
18947 * tree-scalar-evolution.c: Likewise.
18948 * tree-ssa-address.c: Likewise.
18949 * tree-ssa-alias.h: Likewise.
18950 * tree-ssa-operands.h: Likewise.
18951 * tree.c: Likewise.
18952 * tree.h: Likewise.
18953 * varasm.c: Likewise.
18954 * varray.h: Likewise.
18956 * coretypes.h: Do not define GTY macro if it is already defined.
18957 * doc/gty.texi: Update GTY documentation to new syntax.
18958 * gengtype-lex.l: Enforce attribute-like syntax for GTY
18959 annotations on structs.
18960 * gengtype-parse.c: Likewise.
18962 2009-04-22 Mark Heffernan <meheff@google.com>
18964 * gcc.c (LINK_COMMAND_SPEC): Link with gcov with -fprofile-generate=.
18966 2009-04-22 Kazu Hirata <kazu@codesourcery.com>
18968 * config/arm/arm.c (arm_rtx_costs_1): Use power_of_two_operand
18971 2009-04-22 Kazu Hirata <kazu@codesourcery.com>
18973 * config/arm/arm.c (arm_size_rtx_costs): Treat a PLUS with a shift
18974 the same as a PLUS without a shift. Increase the cost of a
18977 2009-04-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
18979 * Makefile.in: Update dependencies.
18980 * errors.c (warning): Remove unused parameter 'opt'. Returns 'void'.
18981 * errors.h: Remove bogus comment about compatibility.
18982 (warning): Update declaration.
18983 * genautomata.c: Update all calls to warning.
18984 * gimple.c: Do not include errors.h. Include toplev.h.
18985 * tree-ssa-structalias.c: Do not include errors.h.
18986 * omega.c: Likewise.
18987 * tree-ssa-reassoc.c: Likewise.
18988 * config/spu/spu-c.c: Likewise.
18989 * config/spu/t-spu-elf: Update dependencies.
18991 2009-04-22 Richard Guenther <rguenther@suse.de>
18993 PR tree-optimization/39824
18994 * tree-ssa-ccp.c (fold_const_aggregate_ref): For INDIRECT_REFs
18995 make sure the types are compatible.
18997 2009-04-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
19000 * c-common.c (c_parse_error): Take a token_flags parameter.
19001 Use token_type for the token type instead.
19002 Pass token_flags to cpp_type2name.
19003 * c-common.h (c_parse_error): Update declaration.
19004 * c-parser.c (c_parser_error): Pass 0 as token flags.
19006 2009-04-22 Andrey Belevantsev <abel@ispras.ru>
19008 PR rtl-optimization/39580
19009 * sel-sched-ir.c (insert_in_history_vect): Remove incorrect gcc_assert.
19011 2009-04-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19013 * function.c (expand_function_end): Do not emit a jump to the "naked"
19014 return label for fall-through returns.
19015 * except.c (sjlj_emit_function_exit): Always place the call to the
19016 unregister function at the location installed by expand_function_end.
19018 2009-04-22 Richard Guenther <rguenther@suse.de>
19020 PR tree-optimization/39845
19021 * tree-switch-conversion.c (build_arrays): Add new referenced vars.
19022 (gen_inbound_check): Likewise.
19024 2009-04-22 Nathan Sidwell <nathan@codesourcery.com>
19026 * gthr-vxworks.h (struct __gthread_once_t): Add alignment and
19028 (__GTHREAD_ONCE_INIT): Adjust ppc initializer.
19029 * config/vxlib.c (__gthread_once): Add race guard for PPC.
19031 2009-04-22 Paolo Bonzini <bonzini@gnu.org>
19033 * config/sh/sh.c (shift_insns_rtx, shiftcosts, gen_shifty_op,
19034 sh_dynamicalize_shift_p, shl_and_scr_length): Truncate
19035 shift counts to avoid out-of-bounds array accesses.
19037 2009-04-22 Paolo Bonzini <bonzini@gnu.org>
19039 * config/sparc/sparc.h (POINTER_SIZE): Fix comment.
19040 (Pmode): Move above.
19042 2009-04-22 Uros Bizjak <ubizjak@gmail.com>
19044 * config/alpha/alpha.c: Use REG_P, MEM_P, CONST_INT_P, JUMP_P,
19045 NONJUMP_INSN_P, CALL_P, LABEL_P and NOTE_P predicates instead of
19046 GET_CODE macro. Use IN_RANGE macro where appropriate.
19047 * config/alpha/alpha.h: Ditto.
19048 * config/alpha/alpha.md: Ditto.
19049 * config/alpha/constraints.md: Ditto.
19050 * config/alpha/predicates.md: Ditto.
19052 2009-04-22 Paolo Bonzini <bonzini@gnu.org>
19054 * defaults.h (GO_IF_MODE_DEPENDENT_ADDRESS): Provide empty default.
19055 * config/frv/frv.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
19056 * config/s390/s390.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
19057 * config/m32c/m32c.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
19058 * config/spu/spu.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
19059 * config/i386/i386.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
19060 * config/sh/sh.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
19061 * config/pdp11/pdp11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
19062 * config/avr/avr.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
19063 * config/crx/crx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
19064 * config/fr30/fr30.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
19065 * config/m68hc11/m68hc11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
19066 * config/cris/cris.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
19067 * config/iq2000/iq2000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
19068 * config/mn10300/mn10300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
19069 * config/ia64/ia64.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
19070 * config/m68k/m68k.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
19071 * config/picochip/picochip.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
19072 * config/arc/arc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
19073 * config/mcore/mcore.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
19074 * config/score/score.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
19075 * config/arm/arm.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
19076 * config/pa/pa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
19077 * config/mips/mips.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
19078 * config/v850/v850.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
19079 * config/mmix/mmix.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
19080 * config/bfin/bfin.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
19082 2009-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
19084 * cfghooks.c (tidy_fallthru_edges): Remove find_basic_blocks
19085 references from comments.
19086 * cfgbuild.c: (count_basic_blocks): Delete.
19087 (find_basic_blocks_1): Delete.
19088 (find_basic_blocks): Delete.
19089 * except.c (finish_eh_generation): Make static. Move comment from
19090 except.h here. Remove find_basic_blocks references from comments.
19091 * except.h (finish_eh_generation): Delete.
19092 * basic-block.h (find_basic_blocks): Delete.
19093 * config/sh/sh.c (sh_output_mi_thunk): Delete a "#if 0" block.
19095 2009-04-22 Dave Korn <dave.korn.cygwin@gmail.com>
19097 * sdbout.c (sdbout_symbol): Pass VOIDmode to eliminate_regs.
19098 (sdbout_parms): Likewise.
19100 2009-04-21 Kaz Kojima <kkojima@gcc.gnu.org>
19102 * config/sh/sh.c (prepare_cbranch_operands): Use
19103 LAST_AND_UNUSED_RTX_CODE instead of CODE_FOR_nothing.
19104 (expand_cbranchdi4): Likewise.
19105 (from_compare): Add cast to enum type.
19106 (expand_cbranchsi4): Use add_reg_note.
19107 (output_stack_adjust, push, pop, sh_expand_prologue): Likewise.
19108 (sh_insn_length_adjustment): Use sh_cpu_attr instead of sh_cpu.
19109 (sh_initialize_trampoline): Change 0 to LCT_NORMAL in function call.
19110 (sh_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
19111 * config/sh/sh.md (cbranchsi4): Use LAST_AND_UNUSED_RTX_CODE
19112 instead of CODE_FOR_nothing.
19113 (cbranchdi4): Likewise. Fix the order of arguments for
19115 (push_fpscr): Use add_reg_note.
19116 (pop_fpscr, movdf_i4+1, reload_outdf__RnFRm+3, reload_outdf__RnFRm+4,
19117 reload_outdf__RnFRm+5, fpu_switch+1, fpu_switch+2): Likewise.
19119 2009-04-21 Joseph Myers <joseph@codesourcery.com>
19121 * ABOUT-GCC-NLS, ChangeLog, ChangeLog-1997, ChangeLog-1998,
19122 ChangeLog-1999, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
19123 ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
19124 ChangeLog-2007, ChangeLog-2008, ChangeLog.dataflow, ChangeLog.lib,
19125 ChangeLog.ptr, ChangeLog.tree-ssa, ChangeLog.tuples, FSFChangeLog,
19126 FSFChangeLog.10, FSFChangeLog.11, LANGUAGES, ONEWS, acinclude.m4,
19127 config/alpha/gnu.h, config/alpha/libgcc-alpha-ldbl.ver,
19128 config/alpha/t-osf4, config/alpha/t-vms, config/alpha/va_list.h,
19129 config/alpha/x-vms, config/arc/t-arc,
19130 config/arm/README-interworking, config/arm/arm-c.c,
19131 config/arm/gentune.sh, config/arm/libgcc-bpabi.ver,
19132 config/arm/t-arm, config/arm/t-arm-elf, config/arm/t-arm-softfp,
19133 config/arm/t-bpabi, config/arm/t-linux, config/arm/t-linux-eabi,
19134 config/arm/t-netbsd, config/arm/t-pe, config/arm/t-strongarm-elf,
19135 config/arm/t-symbian, config/arm/t-vxworks, config/arm/t-wince-pe,
19136 config/avr/t-avr, config/bfin/elf.h, config/bfin/libgcc-bfin.ver,
19137 config/bfin/linux.h, config/bfin/t-bfin, config/bfin/t-bfin-elf,
19138 config/bfin/t-bfin-linux, config/bfin/t-bfin-uclinux,
19139 config/bfin/uclinux.h, config/cris/mulsi3.asm, config/cris/t-cris,
19140 config/cris/t-elfmulti, config/crx/t-crx,
19141 config/darwin-ppc-ldouble-patch.def, config/darwin-sections.def,
19142 config/divmod.c, config/fr30/t-fr30, config/frv/libgcc-frv.ver,
19143 config/frv/t-frv, config/frv/t-linux, config/h8300/genmova.sh,
19144 config/h8300/t-h8300, config/i386/athlon.md,
19145 config/i386/darwin-libgcc.10.4.ver,
19146 config/i386/darwin-libgcc.10.5.ver, config/i386/libgcc-glibc.ver,
19147 config/i386/mach.h, config/i386/netbsd.h, config/i386/t-crtpc,
19148 config/i386/t-cygming, config/i386/t-cygwin, config/i386/t-i386,
19149 config/i386/t-linux64, config/i386/t-nwld,
19150 config/i386/t-rtems-i386, config/i386/t-sol2-10,
19151 config/i386/x-mingw32, config/ia64/div.md, config/ia64/elf.h,
19152 config/ia64/ia64.opt, config/ia64/libgcc-glibc.ver,
19153 config/ia64/libgcc-ia64.ver, config/ia64/linux.h,
19154 config/ia64/sysv4.h, config/ia64/t-hpux, config/ia64/t-ia64,
19155 config/iq2000/abi, config/iq2000/lib2extra-funcs.c,
19156 config/iq2000/t-iq2000, config/libgcc-glibc.ver,
19157 config/m32r/libgcc-glibc.ver, config/m32r/t-linux,
19158 config/m32r/t-m32r, config/m68hc11/t-m68hc11,
19159 config/m68k/t-floatlib, config/m68k/t-linux, config/m68k/t-mlibs,
19160 config/m68k/t-uclinux, config/mcore/t-mcore,
19161 config/mcore/t-mcore-pe, config/mips/20kc.md, config/mips/4130.md,
19162 config/mips/5400.md, config/mips/5500.md, config/mips/crti.asm,
19163 config/mips/crtn.asm, config/mips/irix-crti.asm,
19164 config/mips/irix-crtn.asm, config/mips/libgcc-mips16.ver,
19165 config/mips/mips-dsp.md, config/mips/mips-dspr2.md,
19166 config/mips/mips-fixed.md, config/mips/sb1.md,
19167 config/mips/sr71k.md, config/mips/t-elf, config/mips/t-gofast,
19168 config/mips/t-iris6, config/mips/t-isa3264,
19169 config/mips/t-libgcc-mips16, config/mips/t-linux64,
19170 config/mips/t-mips, config/mips/t-r3900, config/mips/t-rtems,
19171 config/mips/t-sb1, config/mips/t-sde, config/mips/t-sdemtk,
19172 config/mips/t-slibgcc-irix, config/mips/t-sr71k, config/mips/t-st,
19173 config/mips/t-vr, config/mips/t-vxworks, config/mmix/t-mmix,
19174 config/mn10300/t-linux, config/mn10300/t-mn10300,
19175 config/pa/pa32-regs.h, config/pa/t-hpux-shlib, config/pa/t-linux,
19176 config/pa/t-linux64, config/pa/t-pa64, config/pdp11/t-pdp11,
19177 config/picochip/libgccExtras/clzsi2.asm,
19178 config/picochip/t-picochip, config/rs6000/darwin-ldouble-format,
19179 config/rs6000/darwin-libgcc.10.4.ver,
19180 config/rs6000/darwin-libgcc.10.5.ver,
19181 config/rs6000/libgcc-ppc-glibc.ver, config/rs6000/ppc-asm.h,
19182 config/rs6000/t-aix43, config/rs6000/t-aix52,
19183 config/rs6000/t-darwin, config/rs6000/t-fprules,
19184 config/rs6000/t-fprules-fpbit, config/rs6000/t-linux64,
19185 config/rs6000/t-lynx, config/rs6000/t-netbsd,
19186 config/rs6000/t-ppccomm, config/rs6000/t-ppcendian,
19187 config/rs6000/t-ppcgas, config/rs6000/t-rs6000,
19188 config/rs6000/t-rtems, config/rs6000/t-spe,
19189 config/rs6000/t-vxworks, config/s390/libgcc-glibc.ver,
19190 config/score/t-score-elf, config/sh/divcost-analysis,
19191 config/sh/libgcc-glibc.ver, config/sh/t-netbsd, config/sh/t-sh,
19192 config/sh/t-sh64, config/sh/t-superh, config/sh/t-symbian,
19193 config/sparc/libgcc-sparc-glibc.ver, config/sparc/sol2-bi.h,
19194 config/sparc/sol2-gas.h, config/sparc/sol2-gld-bi.h,
19195 config/sparc/t-elf, config/sparc/t-linux64, config/sparc/t-sol2,
19196 config/stormy16/stormy-abi, config/stormy16/t-stormy16,
19197 config/t-darwin, config/t-libunwind, config/t-libunwind-elf,
19198 config/t-linux, config/t-lynx, config/t-slibgcc-elf-ver,
19199 config/t-slibgcc-sld, config/t-sol2, config/t-vxworks,
19200 config/udivmod.c, config/udivmodsi4.c, config/v850/t-v850,
19201 config/v850/t-v850e, config/xtensa/t-xtensa, diagnostic.def,
19202 gdbinit.in, glimits.h, gstab.h, gsyms.h, java/ChangeLog,
19203 java/ChangeLog.ptr, java/ChangeLog.tree-ssa, libgcc-std.ver,
19204 limitx.h, version.c, xcoff.h: Add copyright and license notices.
19205 * config/h8300/genmova.sh: Include copyright and license notices
19206 in generated output.
19207 * config/h8300/mova.md: Regenerate.
19208 * doc/install.texi2html: Include word "Copyright" in copyright
19209 notice and use name "Free Software Foundation, Inc.".
19210 * ChangeLog, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
19211 ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
19212 ChangeLog-2007, ChangeLog-2008: Correct dates.
19214 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
19216 * c-common.c (c_common_truthvalue_conversion): Use LOCATION to build
19217 NE_EXPR operations as well.
19218 * c-parser.c (c_parser_condition): Do not set location information on
19220 (c_parser_conditional_expression): Likewise.
19221 (c_parser_binary_expression): Set location information on operators.
19222 * c-typeck.c (build_unary_op) <TRUTH_NOT_EXPR>: Reset the location if
19223 TRUTH_NOT_EXPR has been folded.
19224 * fold-const.c (fold_truth_not_expr): Copy location information from
19225 the incoming expression to the outgoing one.
19226 * gimplify.c (shortcut_cond_r): Add locus parameter. Pass it to
19227 recursive calls on the LHS of the operator but pass that of the
19228 operator to recursive calls on the RHS of the operator. Set it
19230 (shortcut_cond_expr): Set the locus of the operator on the second
19231 COND_EXPR and that of the expression on the first in degenerate cases.
19232 Pass the locus of the expression to calls to shortcut_cond_r.
19233 Set the locus of the 'then' block on the associated jump, if any.
19234 (gimplify_boolean_expr): Add locus parameter. Set it on the COND_EXPR.
19235 (gimplify_expr) <TRUTH_ANDIF_EXPR>: Pass the locus of the outer
19236 expression to call to gimplify_boolean_expr.
19238 2009-04-21 Kai Tietz <kai.tietz@onevision.com>
19240 * config.gcc: Add additional configuration for
19241 i686-w64-mingw* and x86_64-w64-mingw* triplet.
19242 * config/i386/mingw-w64.h: New mingw-w64 specific header.
19243 (CPP_SPEC): Redefine for allowing -municode option.
19244 (STARTFILE_SPEC): Likewise.
19245 * config/i386/t-mingw-w64: New.
19246 * config/i386/mingw-w64.opt: New.
19247 (municode): Add new target option.
19248 * doc/invoke.texi (municode): Add documentation for new option.
19250 2009-04-21 Ian Lance Taylor <iant@google.com>
19252 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
19253 Correct test for number of arguments.
19254 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
19256 2009-04-21 Andreas Schwab <schwab@linux-m68k.org>
19258 * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Use enum for second
19259 argument of emit_library_call.
19261 2009-04-21 Richard Guenther <rguenther@suse.de>
19263 PR middle-end/39829
19264 * gimple.c (walk_stmt_load_store_addr_ops): Catch addresses
19265 inside VIEW_CONVERT_EXPRs.
19267 2009-04-21 Martin Jambor <mjambor@suse.cz>
19269 * tree-switch-conversion.c (build_constructors): Split a long line.
19270 (constructor_contains_same_values_p): New function.
19271 (build_one_array): Create assigns of constants if possible, do not
19272 call mark_sym_for_renaming, call update_stmt.
19273 (build_arrays): Call make_ssa_name (create_tmp_var ()) instead of
19274 make_rename_temp. Do not call mark_symbols_for_renaming, call
19276 (gen_def_assigns): Do not call mark_symbols_for_renaming or
19277 find_new_referenced_vars, call update_stmt.
19278 (gen_inbound_check): Use create_tmp_var and create ssa names manually
19279 instead of calling make_rename_temp. Do not call
19280 find_new_referenced_vars or mark_symbols_for_renaming, call
19283 2009-04-21 Richard Guenther <rguenther@suse.de>
19285 PR tree-optimization/39827
19286 * tree-ssa-phiprop.c (propagate_with_phi): Check SSA_NAME is in range.
19287 (tree_ssa_phiprop): Pass the correct array size.
19289 2009-04-21 Uros Bizjak <ubizjak@gmail.com>
19291 * config/alpha/alpha.md (tune): Add cast to enum attr_tune.
19293 2009-04-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
19296 * c-typeck.c (lvalue_p): Move declaration ...
19297 * c-common.h (lvalue_p): ... to here.
19298 * c-common.c (candidate_equal_p): New.
19299 (add_tlist): Use it.
19300 (merge_tlist): Use it.
19301 (warn_for_collisions_1): Likewise.
19302 (warning_candidate_p): Accept more candidates.
19303 (verify_tree): A warning candidate can be an expression. Use
19306 2009-04-21 Ben Elliston <bje@au.ibm.com>
19309 * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
19310 for -mcall-eabi, -mcall-aixdesc, -mcall-freebsd and -mcall-openbsd
19311 options. Remove -mcall-solaris documentation.
19313 2009-04-21 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
19316 * doc/invoke.texi (-Wlong-long): Update description.
19317 * c-lex (interpret_integer): Only warn if there was no previous
19318 overflow and -Wlong-long is enabled.
19319 * c-decl.c (declspecs_add_type): Drop redundant flags.
19320 * c.opt (Wlong-long): Init to -1.
19321 * c-opts.c (sanitize_cpp_opts): Synchronize cpp's warn_long_long
19322 and front-end warn_long_long. Wlong-long only depends on other
19323 flags if it is uninitialized.
19324 * c-parser.c (disable_extension_diagnostics): warn_long_long is
19325 the same for CPP and FE.
19326 (restore_extension_diagnostics): Likewise.
19328 2009-04-20 Ian Lance Taylor <iant@google.com>
19330 Fix enum conversions which are invalid in C++:
19331 * auto-inc-dec.c (attempt_change): Change 0 to SET in function call.
19332 * calls.c (store_one_arg): Change 0 to EXPAND_NORMAL in function call.
19333 * cse.c (hash_rtx_cb): Change 0 to VOIDmode in function call.
19334 * dbgcnt.c (dbg_cnt_set_limit_by_name): Add cast to enum type.
19335 * dbxout.c (dbxout_symbol): Change 0 to VOIDmode in function call.
19336 (dbxout_parms): Likewise.
19337 * df-core.c (df_set_flags): Change changeable_flags parameter to int.
19338 (df_clear_flags): Likewise.
19339 * df-problems.c (df_rd_bb_local_compute_process_def): Change
19340 top_flag parameter to int.
19341 (df_chain_create_bb_process_use): Likewise.
19342 (df_chain_add_problem): Change chain_flags parameter to unsigned int.
19344 * df-scan.c (df_ref_create): Change ref_flags parameter to int.
19345 (df_ref_create_structure, df_def_record_1): Likewise.
19346 (df_defs_record, df_uses_record, df_get_call_refs): Likewise.
19347 (df_notes_rescan): Change 0 to VOIDmode in function call.
19348 (df_get_call_refs, df_insn_refs_collect): Likewise.
19349 (df_bb_regs_collect): Likewise.
19350 (df_entry_block_defs_collect): Likewise.
19351 (df_exit_block_uses_collect): Likewise.
19352 * df.h: Update declarations.
19353 * double-int.c (double_int_divmod): Add cast to enum type.
19354 * dse.c (replace_inc_dec): Reverse parameters to gen_int_mode.
19355 * dwarf2out.c (new_reg_loc_descr): Add casts to enum type.
19356 (based_loc_descr): Likewise.
19357 (loc_descriptor_from_tree_1): Change first_op and second_op to
19358 enum dwarf_location_atom. Add cast to enum type.
19359 * expmed.c (init_expmed): Change 0 to SET in function call.
19360 * expr.c (init_expr_target): Change 0 to VOIDmode in function call.
19361 (expand_expr_real_1): Change 0 to EXPAND_NORMAL in function call.
19362 (do_store_flag): Likewise.
19363 * fixed-value.h (struct fixed_value): Change mode to enum
19365 * function.c (assign_parms): Change 0 to VOIDmode in function call.
19366 * genautomata.c (insert_automaton_decl): Change 1 to INSERT in
19368 (insert_insn_decl, insert_decl, insert_state): Likewise.
19369 (automata_list_finish): Likewise.
19370 * genrecog.c (process_define_predicate): Add cast to enum type.
19371 * gensupport.c (init_predicate_table): Add cast to enum type.
19372 * gimple.c (gimple_build_return): Change 0 to ERROR_MARK in
19374 (gimple_build_call_1, gimple_build_label): Likewise.
19375 (gimple_build_goto, gimple_build_asm_1): Likewise.
19376 (gimple_build_switch_1, gimple_build_cdt): Likewise.
19377 * gimple.h (GIMPLE_CHECK): Change 0 to ERROR_MARK in function call.
19378 (enum fallback): Rename from enum fallback_t.
19379 (fallback_t): Typedef as int.
19380 * gimple-low.c (lower_builtin_setjmp): Change TSI_SAME_STMT to
19381 GSI_SAME_STMT in function call.
19382 * ira.c (setup_class_subset_and_memory_move_costs): Add casts to
19384 (setup_reg_class_relations): Likewise.
19385 (setup_reg_class_nregs): Change cl to int. Add casts to enum type.
19386 (setup_prohibited_class_mode_regs): Add cast to enum type.
19387 (setup_prohibited_mode_move_regs): Likewise.
19388 * ira-costs.c (record_reg_classes): Change rclass to enum reg_class.
19389 (record_address_regs): Change i to enum reg_class.
19390 * lists.c (alloc_EXPR_LIST): Add cast to enum type.
19391 * machmode.h (GET_MODE_CLASS): Cast value to enum mode_class.
19392 (GET_MODE_WIDER_MODE): Cast value to enum machine_mode.
19393 (GET_MODE_2XWIDER_MODE): Likewise.
19394 (GET_CLASS_NARROWEST_MODE): Likewise.
19395 * omp-low.c (expand_omp_for): Add cast to enum type.
19396 * optabs.c (debug_optab_libfuncs): Add casts to enum type.
19397 * opts.c (enable_warning_as_error): Change kind to diagostic_t.
19398 * postreload.c (reload_cse_simplify_operands): Change rclass local
19400 * predict.c (combine_predictions_for_insn): Change best_predictor
19401 and predictor to enum br_predictor.
19402 (combine_predictions_for_bb): Likewise.
19403 (build_predict_expr): Change assignment to PREDICT_EXPR_OUTCOME to
19404 use SET_PREDICT_EXPR_OUTCOME.
19405 * real.c (real_arithmetic): Change icode to code in function call.
19406 * reginfo.c (init_move_cost): Add casts to enum type.
19407 (init_reg_sets_1, init_fake_stack_mems): Likewise.
19408 * regmove.c (regclass_compatible_p): Change class0 and class1 to
19410 * reload.c (find_valid_class): Add casts to enum type.
19411 (push_reload): Change 0 to NO_REGS in function call.
19412 (find_reloads): Change this_alternative to array of enum
19413 reg_class. Remove some now-unnecessary casts.
19414 (make_memloc): Change 0 to VOIDmode in function call.
19415 * reload1.c (reload): Change 0 to VOIDmode in function call.
19416 (eliminate_regs_1, elimination_effects): Likewise.
19417 (eliminate_regs_in_insn): Likewise.
19418 (emit_input_reload_insns): Add cast to enum type.
19419 (delete_output_reload): Change 0 to VOIDmode in function call.
19420 * reorg.c (insn_sets_resource_p): Convert include_delayed_effects
19421 to enum type in function call.
19422 * tree.h (PREDICT_EXPR_OUTCOME): Add cast to enum type.
19423 (SET_PREDICT_EXPR_OUTCOME): Define.
19424 * tree-dump.c (get_dump_file_info): Change phase parameter to int.
19425 (get_dump_file_name, dump_begin, dump_enabled_p): Likewise.
19426 (dump_initialized_p, dump_flag_name, dump_end): Likewise.
19427 (dump_function): Likewise.
19428 * tree-dump.h: Update declarations.
19429 * tree-pass.h: Update declarations.
19430 * varasm.c (assemble_integer): Change mclass to enum mode_class.
19431 * config/arm/arm.c (thumb_legitimize_reload_address): Add cast to
19433 (arm_rtx_costs_1): Correct parenthesization.
19434 (arm_rtx_costs): Add casts to enum type.
19435 (adjacent_mem_locations): Reverse arguments to const_ok_for_op.
19436 (vfp_emit_fstmd): Use add_rg_note.
19437 (emit_multi_reg_push, emit_sfm): Likewise.
19438 (thumb_set_frame_pointer): Likewise.
19439 (arm_expand_prologue): Likewise.
19440 (arm_regno_class): Change return type to enum reg_class.
19441 (thumb1_expand_prologue): Use add_reg_note.
19442 * config/arm/arm-protos.h (arm_regno_class): Update declaration.
19443 * config/arm/arm.h (INITIALIZE_TRAMPOLINE): Change 0 to LCT_NORMAL
19445 * config/arm/gentune.sh: Add cast to enum type.
19446 * config/arm/arm-tune.md: Rebuild.
19447 * config/i386/i386.c (ix86_expand_prologue): Use add_reg_note.
19448 (ix86_split_fp_branch, predict_jump): Likewise.
19449 (ix86_expand_multi_arg_builtin): Change sub_code from enum
19450 insn_code to enum rtx_code.
19451 (ix86_builtin_vectorized_function): Add cast to enum type.
19452 * config/i386/i386.md (truncdfsf2): Change slot to enum
19454 (truncxf<mode>2, isinf<mode>2): Likewise.
19455 * config/i386/i386-c.c (ix86_pragma_target_parse): Add cast to
19457 * config/ia64/ia64.c (ia64_split_tmode_move): Use add_reg_note.
19458 (spill_restore_mem, do_spill, ia64_expand_prologue): Likewise.
19459 (insert_bundle_state): Change 1 to INSERT in function call.
19460 (ia64_add_bundle_selector_before): Likewise.
19461 * config/ia64/ia64.md (cpu attr): Add cast to enum type.
19462 (save_stack_nonlocal): Change 0 to LCT_NORMAL in function call.
19463 (restore_stack_nonlocal): Likewise.
19464 * config/mips/mips.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL in
19466 * config/mips/mips.c (mips_binary_cost): Change 0 to SET in
19468 (mips_rtx_costs): Likewise.
19469 (mips_override_options): Add casts to enum type.
19470 * config/mips/sdemtk.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL
19472 * config/pa/pa.c (legitimize_pic_address): Use add_reg_note.
19473 (store_reg, set_reg_plus_d): Likewise.
19474 (hppa_expand_prologue, hppa_profile_hook): Likewise.
19475 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
19477 (altivec_expand_vec_set_builtin): Change 0 to EXPAND_NORMAL in
19479 (emit_unlikely_jump): Use add_reg_note.
19480 (rs6000_emit_allocate_stack): Likewise.
19481 (rs6000_frame_related, rs6000_emit_prologue): Likewise.
19482 (output_toc): Change 1 to INSERT in function call.
19483 (output_profile_hook): Change 0 to LCT_NORMAL in function call.
19484 (rs6000_initialize_trampoline): Likewise.
19485 (rs6000_init_dwarf_reg_sizes_extra): Change 0 to EXPAND_NORMAL in
19487 * config/s390/s390.c (s390_rtx_costs): Add cast to enum type.
19488 (s390_expand_movmem): Change 0 to OPTAB_DIRECT in function call.
19489 (s390_expand_setmem, s390_expand_cmpmem): Likewise.
19490 (save_gprs): Use add_reg_note.
19491 (s390_emit_prologue): Likewise.
19492 (s390_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
19493 * config/sparc/sparc.c (sparc_expand_prologue): Use add_reg_note.
19494 (sparc_fold_builtin): Add cast to enum type.
19495 * config/spu/spu.c (spu_emit_branch_or_set): Change ior_code to
19497 (spu_expand_prologue): Use add_reg_note.
19498 (expand_builtin_args): Change 0 to EXPAND_NORMAL in function call.
19500 2009-04-20 Ian Lance Taylor <iant@google.com>
19502 * c-parser.c (c_parser_attributes): Change VEC back to tree list.
19503 (c_parser_postfix_expression_after_primary): Get VEC for list of
19504 arguments. Get original types of arguments. Call
19505 build_function_call_vec.
19506 (cached_expr_list_1, cached_expr_list_2): New static variables.
19507 (c_parser_expr_list): Change return type to VEC *. Add
19508 p_orig_types parameter. Change all callers.
19509 (c_parser_release_expr): New static function.
19510 (c_parser_vec_to_tree_list): New static function.
19511 * c-typeck.c (build_function_call): Rewrite to build a VEC and
19512 call build_function_call_vec.
19513 (build_function_call_vec): New function, based on old
19514 build_function_call.
19515 (convert_arguments): Remove nargs and argarray parameters. Change
19516 values to a VEC. Add origtypes parameter.
19517 (build_modify_expr): Add rhs_origtype parameter. Change all callers.
19518 (convert_for_assignment): Add origtype parameter. Change all
19519 callers. If warn_cxx_compat, check for conversion to an enum
19520 type when calling a function.
19521 (store_init_value): Add origtype parameter. Change all callers.
19522 (digest_init): Likewise.
19523 (struct init_node): Add origtype field.
19524 (add_pending_init): Add origtype parameter. Change all callers.
19525 (output_init_element): Likewise.
19526 (output_pending_init_elements): Pass origtype from init_node to
19527 output_init_element.
19528 (process_init_element): Pass origtype from c_expr to
19529 output_init_element.
19530 (c_finish_return): Add origtype parameter. Change all callers.
19531 * c-common.c (sync_resolve_size): Change params to VEC *. Change
19533 (sync_resolve_params): Likewise.
19534 (sync_resolve_return): Change params to first_param. Change caller.
19535 (resolve_overloaded_builtins): Change params to VEC *. Change
19536 callers. Save first parameter around call to build_function_call_vec.
19537 * c-decl.c (finish_decl): Add origtype parameter. Change all
19538 callers. Call build_function_call_vec rather than
19539 build_function_call for cleanup.
19540 * c-tree.h: Update declarations.
19541 * c-common.h: Update declarations.
19542 * stub-objc.c (objc_rewrite_function_call): Change parameter from
19543 params to first_param.
19544 * target.h (struct gcc_target): Change resolve_overloaded_builtin
19545 params parameter from tree to void *.
19546 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
19547 Change arglist parameter to have type void *, and to be a pointer
19549 * config/rs6000/rs6000-protos.h
19550 (altivec_resolve_overloaded_builtin): Update declaration.
19551 * config/spu/spu-c.c (spu_resolved_overloaded_builtin): Change
19552 fnargs parameter to have type void *, and to be a pointer to a
19553 VEC. Call build_function_call_vec instead of
19554 build_function_call.
19555 * config/spu/spu-protos.h (spu_expand_builtin): Update declaration.
19557 2009-04-20 Joey Ye <joey.ye@intel.com>
19558 Xuepeng Guo <xuepeng.guo@intel.com>
19559 H.J. Lu <hongjiu.lu@intel.com>
19561 * config/i386/atom.md: Add bypasses with ix86_dep_by_shift_count.
19563 * config/i386/i386.c (LEA_SEARCH_THRESHOLD): New macro.
19564 (IX86_LEA_PRIORITY): Likewise.
19565 (distance_non_agu_define): New function.
19566 (distance_agu_use): Likewise.
19567 (ix86_lea_for_add_ok): Likewise.
19568 (ix86_dep_by_shift_count): Likewise.
19570 * config/i386/i386.md: Call ix86_lea_for_add_ok to decide we
19571 should split for LEA.
19573 * config/i386/i386-protos.h (ix86_lea_for_add_ok): Declare new
19575 (ix86_dep_by_shift_count): Likewise.
19577 2009-04-20 Richard Guenther <rguenther@suse.de>
19579 * expr.c (handled_component_p): Move ...
19580 * tree.h (handled_component_p): ... here.
19581 * tree.def: Re-order BIT_FIELD_REF, COMPONENT_REF,
19582 ARRAY_REF, ARRAY_RANGE_REF, VIEW_CONVERT_EXPR, IMAGPART_EXPR
19583 and REALPART_EXPR to be in one group.
19585 2009-04-20 Richard Guenther <rguenther@suse.de>
19587 * basic-block.h (get_all_dominated_blocks): Declare.
19588 * dominance.c (get_all_dominated_blocks): New function.
19589 * tree-cfg.c (get_all_dominated_blocks): Remove.
19590 (remove_edge_and_dominated_blocks): Adjust.
19591 * tree-ssa-phiprop.c (tree_ssa_phiprop_1): Fold in ...
19592 (tree_ssa_phiprop): ... here. Use get_all_dominated_blocks
19593 instead of recursing.
19595 2009-04-20 Doug Kwan <dougkwan@google.com>
19597 * cgraph.h (cgraph_node_ptr): New type for vector functions.
19598 (struct cgraph_node_set_def): New type.
19599 (cgraph_node_set) New type. Also declare vector functions.
19600 (struct cgraph_node_set_element_def): New type.
19601 (cgraph_node_set_element): Ditto.
19602 (cgraph_node_set_iterator): New iterator type.
19603 (cgraph_node_set_new, cgraph_node_set_find, cgraph_node_set_add,
19604 cgraph_node_set_remove, dump_cgraph_node_set,
19605 debug_cgraph_node_set): New prototypes.
19606 (csi_end_p, csi_next, csi_node, csi_start, cgraph_node_in_set_p,
19607 cgraph_node_set_size): New inlines.
19608 * tree-pass.h (struct cgraph_node_set_def): New decl to avoid
19609 including cgraph.h.
19610 (struct ipa_opt_pass): Add struct cgraph_node_set_def
19611 argument to function 'write_summary'.
19612 * ipa.c: Include ggc.h.
19613 (hash_cgraph_node_set_element,
19614 eq_cgraph_node_set_element, cgraph_node_set_new,
19615 cgraph_node_set_add, cgraph_node_set_remove,
19616 cgraph_node_set_find, dump_cgraph_node_set,
19617 debug_cgraph_node_set): New functions.
19618 * Makefile.in (ipa.o): Add dependency on GGC_H.
19620 2009-04-20 Ira Rosen <irar@il.ibm.com>
19622 PR tree-optimization/39675
19623 * tree-vect-loop.c (vect_transform_loop): Remove currently redundant
19624 check of the return code of vect_schedule_slp. Check that
19625 stmt_vec_info still exists for the statement, before checking its
19626 vectorization type.
19628 2009-04-20 Michael Matz <matz@suse.de>
19630 * Makefile.in (generated_files): Take out $(simple_generated_c).
19632 2009-04-19 Dave Korn <dave.korn.cygwin@gmail.com>
19634 * config/i386/cygwin-stdint.h (INTPTR_TYPE): Remove "long".
19635 (UINTPTR_TYPE): Likewise.
19637 2009-04-19 Joseph Myers <joseph@codesourcery.com>
19640 * c-typeck.c (digest_init): Check for initializing an array with a
19643 2009-04-19 Joseph Myers <joseph@codesourcery.com>
19646 * c-semantics.c (pop_stmt_list): Propagate
19647 STATEMENT_LIST_HAS_LABEL to parent statement list.
19649 2009-04-19 Adam Nemet <anemet@caviumnetworks.com>
19651 * config/mips/mips.h (mips_tune_attr): New macro.
19652 * config/mips/mips.md (cpu): Use it.
19654 2009-04-19 Joseph Myers <joseph@codesourcery.com>
19657 * c-decl.c (shadow_tag_warned): Diagnose use of restrict when
19660 2009-04-19 Diego Novillo <dnovillo@google.com>
19662 * toplev.c (compile_file): Move call to coverage_finish ...
19663 * cgraphunit.c (ipa_passes): ... here.
19664 Call cgraph_process_new_functions.
19665 * ipa-utils.c (get_base_var): Handle CONSTRUCTOR.
19666 * Makefile.in (cgraphunit.o): Add dependency on COVERAGE_H.
19668 2009-04-19 Jan Hubicka <jh@suse.cz>
19670 * cgraph.c (cgraph_create_edge, cgraph_set_call_stmt): Set proper
19672 (dump_cgraph_node): Dump can throw external flag.
19673 * ipa-pure-const.c (propagate): Fix propagation of nothrow flags.
19675 2009-04-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
19679 * doc/invoke.texi: Add -Wlogical-op to -Wextra.
19680 * common.opt (Wlogical-op): Move from here...
19681 * c.opt (Wlogical-op): ... to here.
19682 * c-typeck.c (parser_build_binary_op): Update call to
19683 warn_logical_operator.
19684 * c-opts.c (c_common_post_options): Enable warn_logical_op with
19686 * c-common.c (warn_logical_op): Update.
19687 * c-common.h (warn_logical_op): Update declaration.
19689 2009-04-19 Eric Botcazou <ebotcazou@adacore.com>
19691 * tree.c (protected_set_expr_location): Fix formatting.
19693 2009-04-18 Joseph Myers <joseph@codesourcery.com>
19696 * c-typeck.c (readonly_warning): new.
19697 (build_unary_op, build_modify_expr): Use readonly_warning for
19698 storing into something readonly but not const-qualified.
19700 2009-04-18 Joseph Myers <joseph@codesourcery.com>
19703 * c-typeck.c (build_unary_op): Check for taking address of
19704 expression of type void.
19706 2009-04-18 Joseph Myers <joseph@codesourcery.com>
19709 * c-typeck.c (build_function_call): Check for calling a function
19710 with qualified void return types. Call require_complete_type when
19713 2009-04-18 Jan Hubicka <jh@suse.cz>
19715 * cgraph.c (cgraph_make_edge, dump_cgraph_node, cgraph_set_call_stmt):
19717 * cgraph.h (struct function): Reduce loop_nest to 30 bits; add
19718 can_throw_external flag.
19719 * ipa-reference.c (ipa_utils_reduced_inorder): Update call.
19720 * ipa-pure-const.c (ignore_edge): New function.
19721 (propagate): Compute order for NOTHROW computation; set NOTHROWs
19722 only over can_throw_external edges.
19723 (local_pure_const): Add nothrow flag.
19724 * ipa-utils.c (searchc): Add ignore_edge callback.
19725 (ipa_utils_reduced_inorder): Add ignore_edge callback.
19726 * ipa-utils.h (ipa_utils_reduced_inorder): Update prototype.
19727 (set_nothrow_function_flags): Update cgraph.
19728 * tree-cfg.c (verify_stmt): Relax nothrow checking when in IPA mode.
19730 2009-04-18 Richard Guenther <rguenther@suse.de>
19732 PR middle-end/39804
19733 * tree-ssa-ccp.c (fold_stmt_1): New function factored from ...
19734 (fold_stmt): ... this and ...
19735 (fold_stmt_inplace): ... this.
19736 (fold_stmt_1): Fold references in calls and asms.
19737 * tree-cfg.c (remove_useless_stmts_cond): Use fold_stmt.
19739 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
19741 * tree-vrp.c (ssa_name_nonzero_p): Remove.
19742 * tree.h: Remove the prototype for ssa_name_nonzero_p.
19744 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
19746 * tree.c (function_args_count): Remove.
19747 * tree.h: Remove the prototype for function_args_count.
19749 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
19751 * tree-iterator.c (expr_only): Remove.
19752 * tree.h: Remove the prototype for expr_only.
19754 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
19756 * reginfo.c (cannot_change_mode_set_regs): Remove.
19757 * rtl.h: Remove the prototype for cannot_change_mode_set_regs.
19759 2009-04-08 Anatoly Sokolov <aesok@post.ru>
19761 * config/avr/avr.md (*rotlsi3_8, *rotlsi3_16, *rotlsi3_24 ): Check
19762 whether operands 0 and 1 overlaps.
19764 2009-04-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
19766 PR middle-end/36902
19767 * tree-vrp.c (check_array_ref): Pass a location_t instead of a
19768 pointer. Use warning_at instead of warning.
19769 (search_for_addr_array): Likewise.
19770 (check_array_bounds): Likewise.
19771 (check_all_array_refs): Check that the incoming edge is not in the
19772 list of edges to be removed.
19773 (check_all_array_refs): Avoid the temporal pointer.
19774 (vrp_visit_cond_stmt): Fix typo.
19775 (simplify_switch_using_ranges): Handle the case where the switch
19776 index is an integer constant.
19778 2009-04-18 Adam Nemet <anemet@caviumnetworks.com>
19780 * config/mips/mips.c (mips_final_postscan_insn): Make it static.
19782 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
19784 * doc/extend.texi, doc/invoke.texi: Fix typos.
19786 2009-04-17 Cary Coutant <ccoutant@google.com>
19788 * tree-flow-inline.h (get_lineno): Fix inverted test.
19790 2009-04-17 Diego Novillo <dnovillo@google.com>
19792 * tree-ssa-pre.c (create_expression_by_pieces): Remove
19793 assertion for AVAIL_OUT.
19795 2009-04-17 Mike Frysinger <vapier@gentoo.org>
19798 * config/sh/lib1funcs.asm [__ELF__ && __linux__]: Add .note.GNU-stack.
19799 * config/sh/linux-atomic.asm: Likewise.
19801 2009-04-17 Diego Novillo <dnovillo@google.com>
19803 * except.c (debug_eh_tree): New.
19804 (struct eh_region, struct eh_status): Move ...
19805 * except.h: ... here.
19806 (add_type_for_runtime): Declare extern.
19807 (lookup_type_for_runtime): Likewise.
19808 (debug_eh_tree): Declare.
19809 * Makefile.in (GTFILES): List except.h before except.c
19811 2009-04-17 Diego Novillo <dnovillo@google.com>
19813 * omp-low.c (create_omp_child_function): Set DECL_CONTEXT for DECL.
19814 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
19815 * tree-dfa.c (find_referenced_vars_in): Factor out of ...
19816 (find_vars_r): ... here.
19817 * tree-flow.h (find_referenced_vars_in): Declare.
19818 * tree-ssa-pre.c (create_expression_by_pieces): Assert
19819 that AVAIL_OUT exists for BLOCK.
19820 * Makefile.in (CGRAPH_H): Add dependency on cif-code.def
19821 (tree-loop-distribution.o): Fix dependency on TREE_VECTORIZER_H.
19822 (tree-parloops.o): Likewise.
19824 2009-04-17 Simon Baldwin <simonb@google.com>
19826 * toplev.c (default_tree_printer): Add handling for %E format.
19828 2009-04-17 Diego Novillo <dnovillo@google.com>
19830 * tree-pretty-print.c (dump_generic_node): Add break after
19831 TREE_BINFO handler. Handle COMPLEX_TYPE, REAL_TYPE and
19832 FIXED_POINT_TYPE. Handle NULL TREE_TYPEs. Handle METHOD_TYPE and
19833 FUNCTION_TYPE together. Call print_struct_decl when printing
19834 structures and TDF_SLIM is not given.
19835 (print_struct_decl): Fix logic for detecting recursion.
19837 2009-04-17 Rafael Avila de Espindola <espindola@google.com>
19840 * gcc.c (create_at_file): New.
19841 (compile_input_file_p): New.
19842 (do_spec_1): Use @args files for %i. Use create_at_file for %o.
19843 * main.c (main): Update call to toplev_main.
19844 * toplev.c (toplev_main): Change signature. Call expandargv.
19845 * toplev.h (toplev_main): Change signature.
19847 2009-04-17 Eric Botcazou <ebotcazou@adacore.com>
19849 * dwarf2out.c (field_byte_offset): Use the type size as the field size
19850 if the latter is not constant.
19852 2009-04-17 David Edelsohn <edelsohn@gnu.org>
19854 * dbxout.c (xcoff_debug_hooks): Add set_name_debug_nothing.
19856 2009-04-17 Eric Botcazou <ebotcazou@adacore.com>
19858 * dbxout.c (dbxout_block): Reinstate test on TREE_USED.
19859 * tree-ssa-live.c (remove_unused_scope_block_p): Update TREE_USED bit.
19861 2009-04-17 Richard Guenther <rguenther@suse.de>
19863 * tree-ssa-structalias.c (get_constraint_for_component_ref):
19864 Handle component references view-converting an invariant address.
19866 2009-04-17 Adam Nemet <anemet@caviumnetworks.com>
19868 * doc/tm.texi (TARGET_DEFAULT_TARGET_FLAGS,
19869 TARGET_MIN_ANCHOR_OFFSET, TARGET_MAX_ANCHOR_OFFSET,
19870 TARGET_HAVE_SRODATA_SECTION, TARGET_HAVE_TLS,
19871 TARGET_UNWIND_TABLES_DEFAULT, TARGET_TERMINATE_DW2_EH_FRAME_INFO):
19872 Use @deftypevr rather than @deftypevar.
19874 2009-04-17 Richard Guenther <rguenther@suse.de>
19876 * tree-ssa-forwprop.c (get_prop_dest_stmt): Clean up tuplification.
19877 (get_prop_source_stmt): Likewise.
19878 (can_propagate_from): Likewise.
19880 2009-04-17 Andrew Stubbs <ams@codesourcery.com>
19882 * configure.ac: Add new AC_SUBST for TM_ENDIAN_CONFIG,
19883 TM_MULTILIB_CONFIG and TM_MULTILIB_EXCEPTIONS_CONFIG.
19884 (--with-multilib-list): Add default value.
19885 * configure: Regenerate.
19886 * Makefile.in (TM_ENDIAN_CONFIG): Define.
19887 (TM_MULTILIB_CONFIG, TM_MULTILIB_EXCEPTIONS_CONFIG): Define.
19888 * config.gcc (sh-*-*): Switch to using TM_ENDIAN_CONFIG,
19889 TM_MULTILIB_CONFIG, and TM_MULTILIB_EXCEPTIONS_CONFIG.
19890 Don't add default cpu to multilib list unnecessarily, but do enable
19891 the relevant compiler option..
19892 Add support for --with-multilib-list=<blank> and
19893 --with-multilib-list=!<somelib> to supress unwanted multilibs.
19894 * config/sh/t-sh (DEFAULT_ENDIAN, OTHER_ENDIAN): New variables.
19895 (MULTILIB_ENDIAN, MULTILIB_CPUS): Delete variables.
19896 (MULTILIB_OPTIONS): Redefine using OTHER_ENDIAN and
19897 TM_MULTILIB_CONFIG.
19898 (MULTILIB_EXCEPTIONS): Add TM_MULTILIB_EXCEPTIONS_CONFIG.
19899 (MULTILIB_OSDIRNAMES): New variable.
19900 * config/sh/t-1e: Delete file.
19901 * config/sh/t-mlib-sh1: Delete file.
19902 * config/sh/t-mlib-sh2: Delete file.
19903 * config/sh/t-mlib-sh2a: Delete file.
19904 * config/sh/t-mlib-sh2a-nofpu: Delete file.
19905 * config/sh/t-mlib-sh2a-single: Delete file.
19906 * config/sh/t-mlib-sh2a-single-only: Delete file.
19907 * config/sh/t-mlib-sh2e: Delete file.
19908 * config/sh/t-mlib-sh3e: Delete file.
19909 * config/sh/t-mlib-sh4: Delete file.
19910 * config/sh/t-mlib-sh4-nofpu: Delete file.
19911 * config/sh/t-mlib-sh4-single: Delete file.
19912 * config/sh/t-mlib-sh4-single-only: Delete file.
19913 * config/sh/t-mlib-sh4a: Delete file.
19914 * config/sh/t-mlib-sh4a-nofpu: Delete file.
19915 * config/sh/t-mlib-sh4a-single: Delete file.
19916 * config/sh/t-mlib-sh4a-single-only: Delete file.
19917 * config/sh/t-mlib-sh4al: Delete file.
19918 * config/sh/t-mlib-sh5-32media: Delete file.
19919 * config/sh/t-mlib-sh5-32media-nofpu: Delete file.
19920 * config/sh/t-mlib-sh5-64media: Delete file.
19921 * config/sh/t-mlib-sh5-64media-nofpu: Delete file.
19922 * config/sh/t-mlib-sh5-compact: Delete file.
19923 * config/sh/t-mlib-sh5-compact-nofpu: Delete file.
19924 * config/sh/t-linux: Don't override MULTILIB_EXCEPTIONS.
19925 * doc/install.texi (Options specification): Add
19926 --with-multilib-list and --with-endian.
19928 2009-04-17 Rafael Avila de Espindola <espindola@google.com>
19930 * Makefile.in (REVISION_s): Always include quotes. Change ifdef to use
19932 (OBJS-common): Add plugin-version.o.
19933 (plugin-version.o): New.
19934 * gcc-plugin.h (plugin_gcc_version): New.
19935 (plugin_default_version_check): New.
19936 (plugin_init_func, plugin_init): Add version argument.
19937 * plugin-version.c: New.
19938 * plugin.c (str_plugin_gcc_version_name): New.
19939 (try_init_one_plugin): Read plugin_gcc_version from the plugin and
19940 pass it to the init function.
19941 (plugin_default_version_check): New.
19943 2009-04-17 Richard Guenther <rguenther@suse.de>
19945 * tree-ssa-alias.c (refs_may_alias_p_1): Do not use TBAA
19946 for decl-vs-decl disambiguation.
19948 2009-04-17 Andreas Krebbel <krebbel1@de.ibm.com>
19950 * config/s390/s390.h (s390_tune_attr): New macro definition.
19951 * config/s390/s390.md (cpu attribute): Map to s390_tune_attr.
19953 2009-04-17 Richard Guenther <rguenther@suse.de>
19955 * tree-ssa-ccp.c (struct fold_stmt_r_data): Remove.
19956 (fold_stmt_r): Likewise.
19957 (maybe_fold_reference): New function.
19958 (fold_gimple_assign): Handle cases fold_stmt_r did.
19959 (fold_stmt): Do not use fold_stmt_r.
19960 (fold_stmt_inplace): Likewise.
19962 2009-04-17 Richard Guenther <rguenther@suse.de>
19964 * tree-ssa-dom.c (gimple_assign_unary_useless_conversion_p): Remove.
19965 (record_equivalences_from_stmt): Remove useless checks and
19967 * tree-ssa-pre.c (eliminate): Avoid converting a constant if
19968 the type is already suitable.
19970 2009-04-17 Paolo Bonzini <bonzini@gnu.org>
19972 * config/sh/sh.h (FUNCTION_VALUE): Fix call to sh_promote_prototypes.
19974 2009-04-17 Uros Bizjak <ubizjak@gmail.com>
19976 * config/arm/sfp-machine.h (__gcc_CMPtype): New typedef.
19977 (CMPtype): Define as __gcc_CMPtype.
19979 2009-04-17 Aurelien Jarno <aurelien@aurel32.net>
19981 * config.gcc: Add soft-fp/t-softfp and i386/t-linux to tmake_file
19982 for i[34567]86-*-kfreebsd*-gnu*, x86_64-*-kfreebsd*-gnu*.
19984 2009-04-17 Richard Guenther <rguenther@suse.de>
19986 PR tree-optimization/39746
19987 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Remove
19988 special-casing for builtins and static variable use/def.
19989 (call_may_clobber_ref_p_1): Likewise.
19991 2009-04-16 Ian Lance Taylor <iant@google.com>
19993 * df.h: Include "timevar.h".
19994 (struct df_problem): Change tv_id field to timevar_id_t.
19995 * tree-pass.h: Include "timevar.h".
19996 (struct opt_pass): Change tv_id field to timevar_id_t.
19997 * timevar.h (timevar_id_t): Define TV_NONE.
19998 * passes.c (execute_one_ipa_transform_pass): Check for tv_id !=
19999 TV_NONE rather than tv_id != 0.
20000 (execute_one_pass): Likewise.
20001 * Makefile.in (DF_H): Add $(TIMEVAR_H).
20002 (TREE_PASS_H): Define. Change all instances of tree-pass.h in
20003 dependencies to $(TREE_PASS_H).
20004 * bt-load.c (pass_branch_target_load_optimize1): Set tv_id field
20006 (pass_branch_target_load_optimize2): Likewise.
20007 * cfglayout.c (pass_into_cfg_layout_mode): Likewise.
20008 (pass_outof_cfg_layout_mode): Likewise.
20009 * cgraphbuild.c (pass_remove_cgraph_callee_edges): Likewise.
20010 (pass_rebuild_cgraph_edges): Likewise.
20011 (pass_remove_cgraph_callee_edges): Likewise.
20012 * df-core.c (pass_df_initialize_opt): Likewise.
20013 (pass_df_initialize_no_opt): Likewise.
20014 (pass_df_finish): Likewise.
20015 * emit-rtl.c (pass_unshare_all_rtl): Likewise.
20016 * except.c (pass_set_nothrow_function_flags): Likewise.
20017 (pass_convert_to_eh_region_ranges): Likewise.
20018 * final.c (pass_compute_alignments): Likewise.
20019 * function.c (pass_instantiate_virtual_regs): Likewise.
20020 (pass_init_function): Likewise.
20021 (pass_leaf_regs): Likewise.
20022 (pass_match_asm_constraints): Likewise.
20023 * gimple-low.c (pass_lower_cf): Likewise.
20024 (pass_mark_used_blocks): Likewise.
20025 * init-regs.c (pass_initialize_regs): Likewise.
20026 * integrate.c (pass_initial_value_sets): Likewise.
20027 * ira.c (pass_ira): Likewise.
20028 * jump.c (pass_cleanup_barriers): Likewise.
20029 * omp-low.c (pass_expand_omp): Likewise.
20030 (pass_lower_omp): Likewise.
20031 * matrix-reorg.c (pass_ipa_matrix_reorg): Likewise.
20032 * recog.c (pass_split_all_insns): Likewise.
20033 (pass_split_after_reload): Likewise.
20034 (pass_split_before_regstack): Likewise.
20035 (pass_split_before_sched2): Likewise.
20036 (pass_split_for_shorten_branches): Likewise.
20037 * reginfo.c (pass_reginfo_init): Likewise.
20038 (pass_subregs_of_mode_init): Likewise.
20039 (pass_subregs_of_mode_finish): Likewise.
20040 * passes.c (pass_postreload): Likewise.
20041 * stack-ptr-mod.c (pass_stack_ptr_mod): Likewise.
20042 * tree-cfg.c (pass_remove_useless_stmts): Likewise.
20043 (pass_warn_function_return): Likewise.
20044 (pass_warn_function_noreturn): Likewise.
20045 * tree-complex.c (pass_lower_complex): Likewise.
20046 (pass_lower_complex_O0): Likewise.
20047 * tree-if-conv.c (pass_if_conversion): Likewise.
20048 * tree-into-ssa.c (pass_build_ssa): Likewise.
20049 * tree-mudflap.c (pass_mudflap_1): Likewise.
20050 (pass_mudflap_2): Likewise.
20051 * tree-nomudflap.c (pass_mudflap_1): Likewise.
20052 (pass_mudflap_2): Likewise.
20053 * tree-nrv.c (pass_return_slot): Likewise.
20054 * tree-object-size.c (pass_object_sizes): Likewise.
20055 * tree-optimize.c (pass_all_optimizations): Likewise.
20056 (pass_early_local_passes): Likewise.
20057 (pass_all_early_optimizations): Likewise.
20058 (pass_cleanup_cfg): Likewise.
20059 (pass_cleanup_cfg_post_optimizing): Likewise.
20060 (pass_free_datastructures): Likewise.
20061 (pass_free_cfg_annotations): Likewise.
20062 (pass_fixup_cfg): Likewise.
20063 (pass_init_datastructures): Likewise.
20064 * tree-ssa.c (pass_early_warn_uninitialized): Likewise.
20065 (pass_late_warn_uninitialized): Likewise.
20066 (pass_update_address_taken): Likewise.
20067 * tree-ssa-ccp.c (pass_fold_builtins): Likewise.
20068 * tree-ssa-math-opts.c (pass_cse_reciprocals): Likewise.
20069 (pass_cse_sincos): Likewise.
20070 (pass_convert_to_rsqrt): Likewise.
20071 * tree-ssa-structalias.c (pass_build_alias): Likewise.
20072 * tree-stdarg.c (pass_stdarg): Likewise.
20073 * tree-tailcall.c (pass_tail_recursion): Likewise.
20074 (pass_tail_calls): Likewise.
20075 * tree-vect-generic.c (pass_lower_vector): Likewise.
20076 (pass_lower_vector_ssa): Likewise.
20077 * tree-vectorizer.c (pass_ipa_increase_alignment): Likewise.
20079 2009-04-16 Joseph Myers <joseph@codesourcery.com>
20081 * config/mips/mips.c (mips_rtx_cost_data): Use SOFT_FP_COSTS in
20083 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC):
20085 * config/mips/xlr.md (ir_xlr_alu): Also accept insn types move,
20086 logical and signext.
20088 2009-04-16 Kaz Kojima <kkojima@gcc.gnu.org>
20091 * config/sh/predicates.md (arith_operand): Check if the operand
20092 of TRUNCATE is a REG.
20094 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
20096 * cfgrtl.c (delete_insn_chain_and_edges): Remove.
20097 * rtl.h: Remove the prototype for delete_insn_chain_and_edges.
20099 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
20101 * tree-iterator.c (tsi_split_statement_list_after,
20102 tsi_split_statement_list_before): Remove.
20103 * tree-iterator.h: Remove the prototypes for
20104 tsi_split_statement_list_after and tsi_split_statement_list_before.
20106 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
20108 * tree-ssa-propagate.c (stmt_makes_single_load): Remove.
20109 * tree-ssa-propagate.h: Remove the prototype for
20110 stmt_makes_single_load.
20112 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
20114 * emit-rtl.c (set_mem_attrs_from_reg): Remove.
20115 * rtl.h: Remove the prototype for set_mem_attrs_from_reg.
20117 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
20119 * tree-iterator.c (EXPR_LAST_BODY): Remove.
20121 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
20123 * except.c (eh_region_outer_p): Remove.
20124 * except.h: Remove the prototype for eh_region_outer_p.
20126 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
20128 * function.c (current_function_assembler_name): Remove.
20129 * function.h: Remove the prototype for
20130 current_function_assembler_name.
20132 2009-04-16 Ian Lance Taylor <iant@google.com>
20134 * rtlanal.c (alloc_reg_note): New function, broken out of add_reg_note.
20135 (add_reg_note): Call alloc_reg_note.
20136 * rtl.h (alloc_reg_note): Declare.
20137 * combine.c (try_combine): Use alloc_reg_note.
20138 (recog_for_combine, move_deaths): Likewise.
20139 (distribute_notes): Use alloc_reg_note and add_reg_note.
20140 * haifa-sched.c (sched_create_recovery_edges): Use add_reg_note.
20141 * combine-stack-adj.c (adjust_frame_related_expr): Likewise.
20142 * reload1.c (eliminate_regs_1): Use alloc_reg_note.
20144 2009-04-16 Vladimir Makarov <vmakarov@redhat.com>
20146 PR rtl-optimization/39762
20147 * ira-int.h (ira_register_move_cost, ira_may_move_in_cost,
20148 ira_may_move_out_cost): Add comments about way of their usage.
20149 (ira_get_register_move_cost, ira_get_may_move_cost): New functions.
20151 * ira-conflicts.c (process_regs_for_copy): Use function
20152 ira_get_register_move_cost instead of global
20153 ira_register_move_cost.
20155 * ira-color.c (update_copy_costs, calculate_allocno_spill_cost,
20156 color_pass, move_spill_restore, update_curr_costs): Ditto.
20158 * ira-lives.c (process_single_reg_class_operands): Ditto.
20160 * ira-emit.c (emit_move_list): Ditto.
20162 * ira-costs.c (copy_cost): Don't call ira_init_register_move_cost.
20163 (record_reg_classes): Ditto. Use functions
20164 ira_get_register_move_cost and ira_get_may_move_cost instead of
20165 global vars ira_register_move_cost, ira_may_move_out_cost and
20166 ira_may_move_in_cost.
20167 (record_address_regs): Don't call ira_init_register_move_cost.
20168 Use function ira_get_may_move_cost instead of global
20169 ira_may_move_in_cost.
20170 (process_bb_node_for_hard_reg_moves): Use function
20171 ira_get_register_move_cost instead of global ira_register_move_cost.
20172 (ira_costs): Don't call ira_init_register_move_cost.
20174 2009-04-16 Richard Guenther <rguenther@suse.de>
20176 * tree-cfg.c (verify_gimple_assign_binary):
20177 Allow POINTER_PLUS_EXPR-like PLUS_EXPR for vectors.
20178 * ipa-struct-reorg.c (gen_size): Fold the built expressions.
20179 (create_general_new_stmt): Note that this function is broken.
20181 2009-04-16 Rafael Avila de Espindola <espindola@google.com>
20183 * common.opt (fhelp): Add Var(help_flag).
20184 * gcc-plugin.h (plugin_info): Add help.
20185 * plugin.c (plugin_name_args): Add help.
20186 (register_plugin_info): Set plugin->help.
20187 (print_help_one_plugin): New.
20188 (print_plugins_help): New.
20189 * plugin.h (print_plugins_help): New.
20190 * toplev.c (toplev_main): Call print_plugins_help if needed.
20192 2009-04-16 Richard Guenther <rguenther@suse.de>
20194 * gimple.c (gimple_copy): Do not clear addresses_taken bitmap.
20195 (gimple_ior_addresses_taken_1): New function.
20196 (gimple_ior_addresses_taken): Likewise.
20197 * gimple.h (struct gimple_statement_with_ops_base): Remove
20198 addresses_taken member.
20199 (gimple_ior_addresses_taken): Declare.
20200 (gimple_addresses_taken, gimple_addresses_taken_ptr,
20201 gimple_set_addresses_taken): Remove.
20202 * ipa-reference.c (mark_address): New function.
20203 (scan_stmt_for_static_refs): Use it for marking addresses taken.
20204 * tree-ssa-operands.c (add_to_addressable_set): Rename to ...
20205 (mark_address_taken): ... this. Just set TREE_ADDRESSABLE.
20206 (gimple_add_to_addresses_taken): Remove.
20207 (get_tmr_operands): Call mark_address_taken.
20208 (get_asm_expr_operands): Likewise.
20209 (get_expr_operands): Likewise.
20210 (build_ssa_operands): Do not clear the addresses_taken bitmap.
20211 (free_stmt_operands): Do not free it.
20212 * tree-ssa.c (delete_tree_ssa): Likewise.
20213 (execute_update_addresses_taken): Use gimple_ior_addresses_taken.
20215 2009-04-16 Richard Guenther <rguenther@suse.de>
20217 * gimple.h (walk_stmt_load_store_addr_ops): Declare.
20218 (walk_stmt_load_store_ops): Likewise.
20219 * gimple.c (get_base_loadstore): New function.
20220 (walk_stmt_load_store_addr_ops): Likewise.
20221 (walk_stmt_load_store_ops): Likewise.
20222 * ipa-pure-const.c (check_op): Simplify.
20223 (check_load, check_store): New functions.
20224 (check_stmt): Use walk_stmt_load_store_ops.
20225 * ipa-reference.c (mark_load): Adjust signature.
20226 (mark_store): Likewise.
20227 (scan_stmt_for_static_refs): Use walk_stmt_load_store_addr_ops.
20229 2009-04-16 Rafael Avila de Espindola <espindola@google.com>
20231 * gcc-plugin.h (plugin_event): Add PLUGIN_INFO.
20232 (plugin_info): New.
20233 * opts.c (common_handle_option): Don't call print_version.
20234 * plugin.c (plugin_name_args): Add version.
20235 (register_plugin_info): New.
20236 (register_callback): Handle PLUGIN_INFO.
20237 (try_init_one_plugin): New.
20238 (init_one_plugin): Use try_init_one_plugin. Only free plugin_name_args
20240 (finalize_one_plugin): New.
20241 (finalize_plugins): New.
20242 (print_one_plugin): New.
20243 (print_plugins_versions): New.
20244 * plugin.h (print_plugins_versions): New.
20245 (finalize_plugins): New.
20246 * toplev.c (compile_file): Don't call initialize_plugins.
20247 (print_version): Call print_plugins_versions.
20248 (toplev_main): Call initialize_plugins. Print version if needed.
20249 Call finalize_plugins.
20251 2009-04-16 Rafael Avila de Espindola <espindola@google.com>
20253 * common.opt (fversion): New.
20254 * gcc.c (print_version): New.
20255 (process_command): Don't print the version. Just set print_version.
20256 (main): Print version. Call subprocesses if print_version and
20257 verbose_flag are set.
20258 * opts.c (common_handle_option): Handle OPT_fversion.
20260 2009-04-16 Richard Guenther <rguenther@suse.de>
20261 Ira Rosen <irar@il.ibm.com>
20263 PR tree-optimization/39698
20264 * tree-vect-loop.c (get_initial_def_for_reduction): Use the
20265 type of the reduction variable. Only generate the def if
20268 * omp-low.c (expand_omp_for_generic): When converting to a pointer
20269 make sure to first convert to an integer of the same precision.
20270 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Retain
20271 the type of the evolution correctly in computing the new
20272 induction variable base.
20274 2009-04-16 Richard Guenther <rguenther@suse.de>
20276 PR middle-end/39625
20277 * tree-cfg.c (make_blocks): Split statements with to-be
20278 abnormal SSA names on the lhs.
20280 2009-04-16 Paolo Bonzini <bonzini@gnu.org>
20282 * c-common.c (vector_targets_convertible_p, vector_types_convertible_p):
20283 Use TYPE_VECTOR_OPAQUE instead of targetm.vector_opaque_p.
20284 * c-typeck.c (really_start_incremental_init): Likewise.
20285 * target-def.h (TARGET_VECTOR_OPAQUE_P): Remove.
20286 (TARGET_INITIALIZER): Remove it.
20287 * target.h (struct target): Remove vector_opaque_p.
20288 * tree.c (build_opaque_vector_type): New.
20289 * tree.h (TYPE_VECTOR_OPAQUE): New.
20290 (build_opaque_vector_type): Declare.
20291 * doc/tm.texi (TARGET_VECTOR_OPAQUE_P): Remove.
20292 * config/rs6000/rs6000.c (build_opaque_vector_type,
20293 rs6000_is_vector_type, TARGET_VECTOR_OPAQUE_P): Remove.
20294 (rs6000_init_builtins): Use build_opaque_vector_type for
20295 opaque_V4SI_type_node.
20297 2009-04-15 Catherine Moore <clm@codesourcery.com>
20299 * debug.h (set_name): Declare.
20300 * dwarf2out.c (dwarf2out_set_name): Declare.
20301 (dwarf2_debug_hooks): Add set_name.
20302 (find_AT_string): New.
20303 (add_AT_string): Call find_AT_string.
20304 (dwarf2out_set_name): New.
20305 * cp/decl.c (grokdeclarator): Call set_name.
20306 * vmsdbgout.c (vmsdbg_debug_hooks): Add set_name_debug_nothing.
20307 * debug.c (do_nothing_debug_hooks): Likewise.
20308 * dbxout.c (dbx_debug_hooks): Likewise.
20309 * sdbout.c (sdb_debug_hooks): Likewise.
20311 2009-04-15 Michael Eager <eager@eagercon.com>
20313 * config/rs6000/rs6000.c (rs6000_function_value): Set function return
20314 reg for single-precision FPU.
20315 * config/rs6000/rs6000.md (movsi_internal1): Only for
20316 !TARGET_SINGLE_FPU.
20317 (movsi_internal1_single): New. Add pattern to move SI values to/from
20318 single-precision FP regs.
20320 2009-04-15 Richard Guenther <rguenther@suse.de>
20322 * omp-low.c (lower_rec_input_clauses): Build correct address
20324 (expand_omp_for_generic): Fix multiplication type.
20325 * tree-loop-distribution.c (build_size_arg): Build a size_t argument.
20326 (generate_memset_zero): Fix types.
20327 * tree-profile.c (prepare_instrumented_value): Correctly
20330 2009-04-15 Ian Lance Taylor <iant@google.com>
20332 * c.opt (Wenum-compare): Enable for C and Objc. Initialize to -1.
20333 * c-opts.c (c_common_handle_option): For C, set warn_enum_compare
20334 for -Wall and for -Wc++-compat.
20335 (c_common_post_options): For C++, set warn_enum_compare if not
20337 * c-tree.h (struct c_expr): Add field original_type.
20338 (build_external_ref): Update declaration.
20339 * c-parser.c (c_parser_braced_init): Set original_type.
20340 (c_parser_initelt): Likewise.
20341 (c_parser_expr_no_commas): Likewise.
20342 (c_parser_conditional_expression): Likewise.
20343 (c_parser_cast_expression): Likewise.
20344 (c_parser_unary_expression): Likewise. Pull setting of
20345 original_code to top of function.
20346 (c_parser_sizeof_expression): Set original_type.
20347 (c_parser_alignof_expression): Likewise.
20348 (c_parser_postfix_expression): Likewise. Pull setting of
20349 original_code to top of function.
20350 (c_parser_postfix_expression_after_paren_type): Set original_type.
20351 (c_parser_postfix_expression_after_primary): Likewise.
20352 (c_parser_expression): Likewise.
20353 * c-typeck.c (build_external_ref): Add type parameter. Change all
20355 (c_expr_sizeof_expr): Set original_type field.
20356 (parser_build_unary_op): Likewise.
20357 (parser_build_binary_op): Likewise. Optionally warn about
20358 comparisons of enums of different types.
20359 (digest_init): Set original_type field.
20360 (really_start_incremental_init): Likewise.
20361 (push_init_level, pop_init_level): Likewise.
20362 * doc/invoke.texi (Warning Options): -Wenum-compare now
20365 2009-04-15 Richard Guenther <rguenther@suse.de>
20367 * tree-ssa-pre.c (eliminate): When replacing a PHI node carry
20368 out a necessary conversion.
20369 * tree-ssa-sccvn.c (run_scc_vn): Also assign value-ids to
20370 names we didn't value number.
20371 * tree-mudflap.c (mf_build_check_statement_for): Use correct types.
20373 2009-04-15 Richard Guenther <rguenther@suse.de>
20375 PR tree-optimization/39764
20376 * tree-ssa-ccp.c (get_value): Canonicalize value with
20377 canonicalize_float_value.
20379 2009-04-15 Jan Hubicka <jh@suse.cz>
20381 * builtins.def (va_start, va_end, va_copy): Fix my previous commit.
20382 Wrong version of patch.
20384 2009-04-15 Jan Hubicka <jh@suse.cz>
20386 * builtins.def (va_start, va_end, va_copy): Mark nothrow.
20388 2009-04-15 Nathan Sidwell <nathan@codesourcery.com>
20390 * config/rs6000/rs6000.c (rs6000_init_builtins): Set TYPE_NAME of
20391 our distinct integral and vector types.
20393 2009-04-15 Rafael Avila de Espindola <espindola@google.com>
20395 * class.c (build_vtbl_ref_1): Remove call to assemble_external.
20396 * init.c (build_vtbl_address): Remove call to assemble_external.
20398 2009-04-14 Daniel Jacobowitz <dan@codesourcery.com>
20400 * config/rs6000/rs6000.c (rs6000_dwarf_register_span): Fix debug
20401 output for other floating point modes.
20403 2009-04-14 Diego Novillo <dnovillo@google.com>
20405 * diagnostic.c (diagnostic_report_diagnostic): Do not
20406 warn about loaded plugins for DK_ERROR and DK_WARNING.
20407 * c-decl.c (declspecs_add_type): Move call to
20408 invoke_plugin_callbacks ...
20409 * c-parser.c (c_parser_declspecs): ... here.
20410 * plugin.c (dump_active_plugins): Tidy output.
20412 2009-04-14 Diego Novillo <dnovillo@google.com>
20413 Le-Chun Wu <lcwu@google.com>
20415 * configure.ac: Add --enable-plugin support.
20416 Define ENABLE_PLUGIN and PLUGINLIBS when specified.
20417 * Makefile.in (PLUGIN_H): Define.
20418 Export ENABLE_PLUGIN and GMPINC to site.exp.
20419 Add PLUGINLIBS to link command.
20420 Add/modify dependencies for plugin.o and files including plugin.h.
20422 * config.in: Regenerate.
20424 * opts.c (common_handle_option): Handle OPT_fplugin_ and
20427 2009-04-14 Le-Chun Wu <lcwu@google.com>
20429 * tree-pass.h (register_one_dump_file): Add a prototype for
20430 register_one_dump_file.
20431 * toplev.c (compile_file): Call initialize_plugins.
20432 (do_compile): Call invoke_plugin_callbacks.
20433 (toplev_main): Call invoke_plugin_callbacks.
20434 * common.opt: Add -fplugin= and -fplugin-arg-.
20435 * gcc-plugin.h: New public header file for plugins to include.
20436 * plugin.c: New source file.
20437 * plugin.h: New internal header file.
20438 * passes.c (register_one_dump_file): Make it external.
20440 * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks.
20442 2009-04-14 Diego Novillo <dnovillo@google.com>
20444 * doc/plugins.texi: New.
20445 * doc/gccint.texi: Add reference to Plugins chapter.
20446 * doc/invoke.texi: Document -fplugin and -fplugin-arg
20447 * diagnostic.c (diagnostic_report_diagnostic): Warn about
20448 loaded plugins, if any.
20449 * timevar.def (TV_PLUGIN_INIT): Define.
20450 (TV_PLUGIN_RUN): Define.
20451 * plugin.c: Include timevar.h
20452 (plugins_active_p): New.
20453 (dump_active_plugins): New.
20454 (debug_active_plugins): New.
20456 2009-04-14 Joseph Myers <joseph@codesourcery.com>
20458 * config/sol2.h (LINK_ARCH32_SPEC_BASE): Use %R with absolute
20460 * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Likewise.
20462 2009-04-14 Kazu Hirata <kazu@codesourcery.com>
20464 * config/arm/arm.c (arm_rtx_costs_1): Treat a minus with a shift
20465 the same as a minus without a shift.
20467 2009-04-14 Nick Clifton <nickc@redhat.com>
20469 * config/stormy16/stormy16.md (ineqbranch_1): Do not assume that
20470 comparisons with small integers will always produce a short
20473 2009-04-14 Rafael Avila de Espindola <espindola@google.com>
20476 2008-12-19 Diego Novillo <dnovillo@google.com>
20478 * cgraph.c (dump_cgraph_node): Show memory address of NODE.
20480 2009-04-14 Richard Guenther <rguenther@suse.de>
20482 * tree-cfg.c (verify_gimple_assign_unary): Adjust vector code
20484 (verify_gimple_assign_binary): Likewise. Handle shifts and
20486 (verify_gimple_phi): Print the mismatched argument position.
20487 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
20489 (vect_update_init_of_dr): Likewise.
20490 * matrix-reorg.c (transform_access_sites): Do what the
20492 * omp-low.c (expand_omp_atomic_pipeline): Use the correct types.
20494 2009-04-13 Michael Eager <eager@eagercon.com>
20496 * config/rs6000/rs6000-c.c: generate defines if rs6000_xilinx_fpu:
20497 _XFPU, _XFPU_SP_LITE, _XFPU_SP_FULL, _XFPU_DP_LITE, _XFPU_DP_FULL
20498 * config/rs6000/xilinx.h: New. Spec for powerpc-xilinx-eabi
20499 * config.gcc (powerpc-xilinx-eabi): add xilinx.h to tm_file,
20500 remove duplicate config
20502 2009-04-13 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
20504 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Dump
20505 file_name:line_number type locator of the call site.
20507 2009-04-13 Vladimir Makarov <vmakarov@redhat.com>
20509 * genautomata.c: Put blank after comma.
20510 (automaton_decls): New.
20511 (struct unit_usage): Add comments to member next.
20512 (store_alt_unit_usage): Keep the list ordered.
20513 (unit_present_on_list_p, equal_alternatives_p): New.
20514 (check_regexp_units_distribution): Check units distribution
20515 correctness correctly.
20516 (main): Don't write automata if error is found. Return correct
20519 * config/m68k/cf.md (cfv4_ds): Remove.
20520 (cfv4_pOEP1, cfv4_sOEP1, cfv4_pOEP2,cfv4_sOEP2, cfv4_pOEP3,
20521 cfv4_sOEP3): Assign to cfv4_oep instead of cfv4_ds.
20523 * config/rs6000/power4.md (lsuq_power4, iq_power4, fpq_power4,
20524 power4-load-ext, power4-store, power4-store-update,
20525 power4-fpstore, power4-fpstore-update, power4-two, power4-three,
20526 power4-insert, power4-compare, power4-lmul-cmp, power4-imul-cmp,
20527 power4-lmul, , power4-imul, power4-imul3, power4-sdiv,
20528 power4-sqrt, power4-isync): Modify reservation to make correct
20529 unit distribution to automata.
20531 * config/rs6000/power5.md (iq_power5, fpq_power5, power5-store,
20532 power5-store-update, power5-two, power5-three, power5-lmul,
20533 power5-imul, power5-imul3, power5-sdiv, power5-sqrt): Ditto.
20535 2009-04-13 Adam Nemet <anemet@caviumnetworks.com>
20537 * except.c (pass_set_nothrow_function_flags): Set name and add
20539 (set_nothrow_function_flags): Mention in the dump file when
20540 changing a function to nothrow.
20542 2009-04-13 Ozkan Sezer <sezeroz@gmail.com>
20545 * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Use __SIZE_TYPE__
20546 instead of unsigned long.
20548 2009-04-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20550 * config/arm/arm.c (return_used_this_function): Remove.
20551 (arm_output_function_prologue): Remove use of
20552 return_used_this_function.
20553 (output_return_instruction): Replace use of
20554 return_used_this_function
20555 by cfun->machine->return_used_this_function.
20556 (arm_output_epilogue): Likewise.
20557 (arm_output_function_epilogue): Likewise.
20558 (thumb_unexpanded_epilogue): Likewise.
20559 * config/arm/arm.h (struct machine_function):
20560 New member return_used_this_function.
20562 2009-04-12 Mark Mitchell <mark@codesourcery.com>
20564 * doc/install.texi: Correct description of default directory for
20565 --with-gxx-include-dir.
20567 2009-04-12 Eric Botcazou <ebotcazou@adacore.com>
20569 * fold-const.c (build_range_check): Properly deal with enumeral and
20570 boolean base types.
20572 2009-04-12 Steven Bosscher <steven@gcc.gnu.org>
20574 * doc/invoke.texi (max_gcse_passes): Remove documentation.
20575 * params.def (PARAM_MAX_GCSE_PASSES): Remove.
20576 * params.h (MAX_GCSE_PASSES): Remove.
20577 * gcse.c (gcse_main): Run CPROP1, PRE or HOIST, and CPROP2
20578 in sequence. Remove ability to run multiple passes.
20579 (bypass_jumps): Report run as third CPROP pass.
20581 2009-04-12 Adam Nemet <anemet@caviumnetworks.com>
20583 PR middle-end/39651
20584 * except.c (can_throw_external): Look at each insn in a SEQUENCE
20585 when deciding whether the whole SEQUENCE can throw.
20587 2009-04-12 Uros Bizjak <ubizjak@gmail.com>
20590 * config/alpha/predicates.md (local_symbolic_operand): Return 1 for
20591 offseted label references.
20593 2009-04-11 Jan Hubicka <jh@suse.cz>
20595 * tree-ssa-pre.c (eliminate): Fix call of update_stmt.
20597 2009-04-11 Richard Guenther <rguenther@suse.de>
20599 PR middle-end/39732
20600 * tree-inline.c (declare_return_variable): Mark DECL_BY_REFERENCE
20601 return variables as TREE_ADDRESSABLE.
20603 2009-04-11 Richard Guenther <rguenther@suse.de>
20605 PR tree-optimization/39713
20606 * tree-ssa-sccvn.c (vn_get_expr_for): Make sure built
20607 reference trees have SSA_NAME operands.
20609 2009-04-11 Richard Guenther <rguenther@suse.de>
20612 * c-gimplify.c (c_gimplify_expr): Adjust check for mismatched
20613 address expressions.
20615 2009-04-11 Dave Korn <dave.korn.cygwin@gmail.com>
20617 * config/i386/cygwin-stdint.h (INT_LEAST32_TYPE): Update to
20618 match changes in Cygwin 1.7
20619 (UINT_LEAST32_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE,
20620 UINT_FAST16_TYPE, UINT_FAST32_TYPE): Likewise.
20622 2009-04-10 Paolo Bonzini <bonzini@gnu.org>
20624 PR tree-optimization/39701
20625 * doc/invoke.texi (Optimization Options): Document change in
20626 meaning and initialization of -fdelete-null-pointer-checks.
20628 2009-04-10 H.J. Lu <hongjiu.lu@intel.com>
20630 PR middle-end/39701
20631 * common.opt (-fdelete-null-pointer-checks): Initialize to 1.
20633 * opts.c (decode_options): Don't set flag_delete_null_pointer_checks
20636 * doc/invoke.texi: Update -fdelete-null-pointer-checks.
20638 2009-04-10 Chao-ying Fu <fu@mips.com>
20640 * doc/tm.texi (Instruction Output): Document
20641 TARGET_ASM_FINAL_POSTSCAN_INSN.
20642 * target.h (final_postscan_insn): New field in asm_out.
20643 * target-def.h (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
20644 (TARGET_ASM_OUT): Add TARGET_ASM_FINAL_POSTSCAN_INSN.
20645 * final.c (final_scan_insn): Call
20646 targetm.asm_out.final_postscan_insn after outputting
20647 an asm macro and a normal instruction.
20649 * config/mips/mips.h (FINAL_PRESCAN_INSN): New define.
20650 * config/mips/mips-protos.h (mips_final_prescan_insn): Declare.
20651 * config/mips/mips.c (mips_at_reg_p): New for_each_rtx callback.
20652 (mips_final_prescan_insn, mips_final_postscan_insn): New functions.
20653 (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
20655 2009-04-10 Paolo Bonzini <bonzini@gnu.org>
20657 PR middle-end/39701
20658 * fold-const.c (tree_single_nonzero_warnv_p): Pass non-static
20659 variables as non-NULL even with -fdelete-null-pointer-checks.
20661 2009-04-10 H.J. Lu <hongjiu.lu@intel.com>
20663 * config/rs6000/darwin-vecsave.asm: Remove extra "*/".
20665 2009-04-09 H.J. Lu <hongjiu.lu@intel.com>
20668 * config/i386/i386.c (classify_argument): Handle SCmode with
20669 (bit_offset % 64) != 0.
20671 2009-04-09 Sandra Loosemore <sandra@codesourcery.com>
20673 * doc/invoke.texi (Optimize Options): Add cross-reference to
20674 -Q --help=optimizers examples.
20676 2009-04-10 Ben Elliston <bje@au.ibm.com>
20679 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Do not set
20680 regalign for the reg == fpr and TDmode case.
20682 2009-04-09 David Ayers <ayers@fsfe.org>
20685 * objc/objc-act.c (warn_with_method): Remove helper function.
20686 (check_duplicates): Call warning and inform directly.
20687 (really_start_method): Likewise.
20689 2009-04-09 Paolo Bonzini <bonzini@gnu.org>
20691 * expmed.c (expand_divmod): Always use a comparison for a division
20692 by a large unsigned integer.
20694 * fold-const.c (tree_single_nonzero_warnv_p): Always treat decls
20695 for things others than variables or functions as nonzero.
20697 2009-04-09 Nick Clifton <nickc@redhat.com>
20699 * unwind-compat.c: Change copyright header to refer to version
20700 3 of the GNU General Public License with version 3.1 of the
20701 GCC Runtime Library Exception and to point readers at the
20702 COPYING3 and COPYING3.RUNTIME files and the FSF's license web page.
20703 * config/alpha/crtfastmath.c: Likewise.
20704 * config/alpha/linux-unwind.h: Likewise.
20705 * config/alpha/qrnnd.asm: Likewise.
20706 * config/alpha/vms-crt0-64.c: Likewise.
20707 * config/alpha/vms-crt0.c: Likewise.
20708 * config/alpha/vms-dwarf2.asm: Likewise.
20709 * config/alpha/vms-dwarf2eh.asm: Likewise.
20710 * config/alpha/vms-psxcrt0-64.c: Likewise.
20711 * config/alpha/vms-psxcrt0.c: Likewise.
20712 * config/alpha/vms_tramp.asm: Likewise.
20713 * config/arc/initfini.c: Likewise.
20714 * config/arc/lib1funcs.asm: Likewise.
20715 * config/arm/bpabi-v6m.S: Likewise.
20716 * config/arm/bpabi.S: Likewise.
20717 * config/arm/bpabi.c: Likewise.
20718 * config/arm/crti.asm: Likewise.
20719 * config/arm/crtn.asm: Likewise.
20720 * config/arm/ieee754-df.S: Likewise.
20721 * config/arm/ieee754-sf.S: Likewise.
20722 * config/arm/lib1funcs.asm: Likewise.
20723 * config/arm/libunwind.S: Likewise.
20724 * config/arm/linux-atomic.c: Likewise.
20725 * config/arm/mmintrin.h: Likewise.
20726 * config/arm/pr-support.c: Likewise.
20727 * config/arm/unaligned-funcs.c: Likewise.
20728 * config/arm/unwind-arm.c: Likewise.
20729 * config/arm/unwind-arm.h: Likewise.
20730 * config/avr/libgcc.S: Likewise.
20731 * config/bfin/crti.s: Likewise.
20732 * config/bfin/crtlibid.s: Likewise.
20733 * config/bfin/crtn.s: Likewise.
20734 * config/bfin/lib1funcs.asm: Likewise.
20735 * config/bfin/linux-unwind.h: Likewise.
20736 * config/cris/arit.c: Likewise.
20737 * config/cris/cris_abi_symbol.c: Likewise.
20738 * config/darwin-64.c: Likewise.
20739 * config/darwin-crt2.c: Likewise.
20740 * config/darwin-crt3.c: Likewise.
20741 * config/darwin.h: Likewise.
20742 * config/dbxelf.h: Likewise.
20743 * config/dfp-bit.c: Likewise.
20744 * config/dfp-bit.h: Likewise.
20745 * config/elfos.h: Likewise.
20746 * config/fixed-bit.c: Likewise.
20747 * config/fixed-bit.h: Likewise.
20748 * config/fp-bit.c: Likewise.
20749 * config/fp-bit.h: Likewise.
20750 * config/fr30/crti.asm: Likewise.
20751 * config/fr30/crtn.asm: Likewise.
20752 * config/fr30/lib1funcs.asm: Likewise.
20753 * config/freebsd-spec.h: Likewise.
20754 * config/frv/cmovd.c: Likewise.
20755 * config/frv/cmovh.c: Likewise.
20756 * config/frv/cmovw.c: Likewise.
20757 * config/frv/frvbegin.c: Likewise.
20758 * config/frv/frvend.c: Likewise.
20759 * config/frv/lib1funcs.asm: Likewise.
20760 * config/glibc-stdint.h: Likewise.
20761 * config/h8300/clzhi2.c: Likewise.
20762 * config/h8300/crti.asm: Likewise.
20763 * config/h8300/crtn.asm: Likewise.
20764 * config/h8300/ctzhi2.c: Likewise.
20765 * config/h8300/fixunssfsi.c: Likewise.
20766 * config/h8300/lib1funcs.asm: Likewise.
20767 * config/h8300/parityhi2.c: Likewise.
20768 * config/h8300/popcounthi2.c: Likewise.
20769 * config/i386/ammintrin.h: Likewise.
20770 * config/i386/att.h: Likewise.
20771 * config/i386/avxintrin.h: Likewise.
20772 * config/i386/biarch64.h: Likewise.
20773 * config/i386/bmmintrin.h: Likewise.
20774 * config/i386/cpuid.h: Likewise.
20775 * config/i386/cross-stdarg.h: Likewise.
20776 * config/i386/crtfastmath.c: Likewise.
20777 * config/i386/crtprec.c: Likewise.
20778 * config/i386/cygming-crtbegin.c: Likewise.
20779 * config/i386/cygming-crtend.c: Likewise.
20780 * config/i386/cygwin.asm: Likewise.
20781 * config/i386/emmintrin.h: Likewise.
20782 * config/i386/gmm_malloc.h: Likewise.
20783 * config/i386/gthr-win32.c: Likewise.
20784 * config/i386/i386.h: Likewise.
20785 * config/i386/immintrin.h: Likewise.
20786 * config/i386/linux-unwind.h: Likewise.
20787 * config/i386/linux64.h: Likewise.
20788 * config/i386/mm3dnow.h: Likewise.
20789 * config/i386/mmintrin-common.h: Likewise.
20790 * config/i386/mmintrin.h: Likewise.
20791 * config/i386/nmmintrin.h: Likewise.
20792 * config/i386/pmm_malloc.h: Likewise.
20793 * config/i386/pmmintrin.h: Likewise.
20794 * config/i386/smmintrin.h: Likewise.
20795 * config/i386/sol2-c1.asm: Likewise.
20796 * config/i386/sol2-ci.asm: Likewise.
20797 * config/i386/sol2-cn.asm: Likewise.
20798 * config/i386/sol2-gc1.asm: Likewise.
20799 * config/i386/tmmintrin.h: Likewise.
20800 * config/i386/unix.h: Likewise.
20801 * config/i386/w32-unwind.h: Likewise.
20802 * config/i386/wmmintrin.h: Likewise.
20803 * config/i386/x86-64.h: Likewise.
20804 * config/i386/x86intrin.h: Likewise.
20805 * config/i386/xmmintrin.h: Likewise.
20806 * config/ia64/crtbegin.asm: Likewise.
20807 * config/ia64/crtend.asm: Likewise.
20808 * config/ia64/crtfastmath.c: Likewise.
20809 * config/ia64/crti.asm: Likewise.
20810 * config/ia64/crtn.asm: Likewise.
20811 * config/ia64/fde-glibc.c: Likewise.
20812 * config/ia64/lib1funcs.asm: Likewise.
20813 * config/ia64/linux-unwind.h: Likewise.
20814 * config/ia64/quadlib.c: Likewise.
20815 * config/ia64/unwind-ia64.c: Likewise.
20816 * config/linux.h: Likewise.
20817 * config/m32c/m32c-lib1.S: Likewise.
20818 * config/m32c/m32c-lib2-trapv.c: Likewise.
20819 * config/m32c/m32c-lib2.c: Likewise.
20820 * config/m32r/initfini.c: Likewise.
20821 * config/m68hc11/larith.asm: Likewise.
20822 * config/m68hc11/m68hc11-crt0.S: Likewise.
20823 * config/m68k/cf.md: Likewise.
20824 * config/m68k/crti.s: Likewise.
20825 * config/m68k/crtn.s: Likewise.
20826 * config/m68k/lb1sf68.asm: Likewise.
20827 * config/m68k/linux-unwind.h: Likewise.
20828 * config/mcore/crti.asm: Likewise.
20829 * config/mcore/crtn.asm: Likewise.
20830 * config/mcore/lib1.asm: Likewise.
20831 * config/mips/linux-unwind.h: Likewise.
20832 * config/mips/loongson.h: Likewise.
20833 * config/mips/mips16.S: Likewise.
20834 * config/mmix/crti.asm: Likewise.
20835 * config/mmix/crtn.asm: Likewise.
20836 * config/pa/fptr.c: Likewise.
20837 * config/pa/hpux-unwind.h: Likewise.
20838 * config/pa/lib2funcs.asm: Likewise.
20839 * config/pa/linux-atomic.c: Likewise.
20840 * config/pa/linux-unwind.h: Likewise.
20841 * config/pa/milli64.S: Likewise.
20842 * config/pa/quadlib.c: Likewise.
20843 * config/pa/stublib.c: Likewise.
20844 * config/picochip/libgccExtras/adddi3.asm: Likewise.
20845 * config/picochip/libgccExtras/ashlsi3.asm: Likewise.
20846 * config/picochip/libgccExtras/ashlsi3.c: Likewise.
20847 * config/picochip/libgccExtras/ashrsi3.asm: Likewise.
20848 * config/picochip/libgccExtras/ashrsi3.c: Likewise.
20849 * config/picochip/libgccExtras/cmpsi2.asm: Likewise.
20850 * config/picochip/libgccExtras/divmod15.asm: Likewise.
20851 * config/picochip/libgccExtras/divmodhi4.asm: Likewise.
20852 * config/picochip/libgccExtras/divmodsi4.asm: Likewise.
20853 * config/picochip/libgccExtras/longjmp.asm: Likewise.
20854 * config/picochip/libgccExtras/lshrsi3.asm: Likewise.
20855 * config/picochip/libgccExtras/lshrsi3.c: Likewise.
20856 * config/picochip/libgccExtras/parityhi2.asm: Likewise.
20857 * config/picochip/libgccExtras/popcounthi2.asm: Likewise.
20858 * config/picochip/libgccExtras/setjmp.asm: Likewise.
20859 * config/picochip/libgccExtras/subdi3.asm: Likewise.
20860 * config/picochip/libgccExtras/ucmpsi2.asm: Likewise.
20861 * config/picochip/libgccExtras/udivmodhi4.asm: Likewise.
20862 * config/picochip/libgccExtras/udivmodsi4.asm: Likewise.
20863 * config/rs6000/750cl.h: Likewise.
20864 * config/rs6000/altivec.h: Likewise.
20865 * config/rs6000/biarch64.h: Likewise.
20866 * config/rs6000/crtresfpr.asm: Likewise.
20867 * config/rs6000/crtresgpr.asm: Likewise.
20868 * config/rs6000/crtresxfpr.asm: Likewise.
20869 * config/rs6000/crtresxgpr.asm: Likewise.
20870 * config/rs6000/crtsavfpr.asm: Likewise.
20871 * config/rs6000/crtsavgpr.asm: Likewise.
20872 * config/rs6000/darwin-asm.h: Likewise.
20873 * config/rs6000/darwin-fallback.c: Likewise.
20874 * config/rs6000/darwin-fpsave.asm: Likewise.
20875 * config/rs6000/darwin-ldouble.c: Likewise.
20876 * config/rs6000/darwin-tramp.asm: Likewise.
20877 * config/rs6000/darwin-unwind.h: Likewise.
20878 * config/rs6000/darwin-vecsave.asm: Likewise.
20879 * config/rs6000/darwin-world.asm: Likewise.
20880 * config/rs6000/e500crtres32gpr.asm: Likewise.
20881 * config/rs6000/e500crtres64gpr.asm: Likewise.
20882 * config/rs6000/e500crtres64gprctr.asm: Likewise.
20883 * config/rs6000/e500crtrest32gpr.asm: Likewise.
20884 * config/rs6000/e500crtrest64gpr.asm: Likewise.
20885 * config/rs6000/e500crtresx32gpr.asm: Likewise.
20886 * config/rs6000/e500crtresx64gpr.asm: Likewise.
20887 * config/rs6000/e500crtsav32gpr.asm: Likewise.
20888 * config/rs6000/e500crtsav64gpr.asm: Likewise.
20889 * config/rs6000/e500crtsav64gprctr.asm: Likewise.
20890 * config/rs6000/e500crtsavg32gpr.asm: Likewise.
20891 * config/rs6000/e500crtsavg64gpr.asm: Likewise.
20892 * config/rs6000/e500crtsavg64gprctr.asm: Likewise.
20893 * config/rs6000/eabi-ci.asm: Likewise.
20894 * config/rs6000/eabi-cn.asm: Likewise.
20895 * config/rs6000/eabi.asm: Likewise.
20896 * config/rs6000/linux-unwind.h: Likewise.
20897 * config/rs6000/linux64.h: Likewise.
20898 * config/rs6000/paired.h: Likewise.
20899 * config/rs6000/paired.md: Likewise.
20900 * config/rs6000/ppc64-fp.c: Likewise.
20901 * config/rs6000/ppu_intrinsics.h: Likewise.
20902 * config/rs6000/rs6000.h: Likewise.
20903 * config/rs6000/si2vmx.h: Likewise.
20904 * config/rs6000/sol-ci.asm: Likewise.
20905 * config/rs6000/sol-cn.asm: Likewise.
20906 * config/rs6000/spe.h: Likewise.
20907 * config/rs6000/spu2vmx.h: Likewise.
20908 * config/rs6000/sysv4.h: Likewise.
20909 * config/rs6000/tramp.asm: Likewise.
20910 * config/rs6000/vec_types.h: Likewise.
20911 * config/s390/linux-unwind.h: Likewise.
20912 * config/s390/tpf-unwind.h: Likewise.
20913 * config/score/crti.asm: Likewise.
20914 * config/score/crtn.asm: Likewise.
20915 * config/sh/crt1.asm: Likewise.
20916 * config/sh/crti.asm: Likewise.
20917 * config/sh/crtn.asm: Likewise.
20918 * config/sh/divtab-sh4-300.c: Likewise.
20919 * config/sh/divtab-sh4.c: Likewise.
20920 * config/sh/divtab.c: Likewise.
20921 * config/sh/lib1funcs-4-300.asm: Likewise.
20922 * config/sh/lib1funcs-Os-4-200.asm: Likewise.
20923 * config/sh/lib1funcs.asm: Likewise.
20924 * config/sh/lib1funcs.h: Likewise.
20925 * config/sh/linux-atomic.asm: Likewise.
20926 * config/sh/linux-unwind.h: Likewise.
20927 * config/sh/shmedia.h: Likewise.
20928 * config/sh/sshmedia.h: Likewise.
20929 * config/sh/ushmedia.h: Likewise.
20930 * config/sparc/crtfastmath.c: Likewise.
20931 * config/sparc/linux-unwind.h: Likewise.
20932 * config/sparc/sol2-c1.asm: Likewise.
20933 * config/sparc/sol2-ci.asm: Likewise.
20934 * config/sparc/sol2-cn.asm: Likewise.
20935 * config/spu/divmodti4.c: Likewise.
20936 * config/spu/divv2df3.c: Likewise.
20937 * config/spu/float_disf.c: Likewise.
20938 * config/spu/float_unsdidf.c: Likewise.
20939 * config/spu/float_unsdisf.c: Likewise.
20940 * config/spu/float_unssidf.c: Likewise.
20941 * config/spu/mfc_multi_tag_release.c: Likewise.
20942 * config/spu/mfc_multi_tag_reserve.c: Likewise.
20943 * config/spu/mfc_tag_release.c: Likewise.
20944 * config/spu/mfc_tag_reserve.c: Likewise.
20945 * config/spu/mfc_tag_table.c: Likewise.
20946 * config/spu/multi3.c: Likewise.
20947 * config/spu/spu_internals.h: Likewise.
20948 * config/spu/spu_intrinsics.h: Likewise.
20949 * config/spu/spu_mfcio.h: Likewise.
20950 * config/spu/vec_types.h: Likewise.
20951 * config/spu/vmx2spu.h: Likewise.
20952 * config/stormy16/stormy16-lib2.c: Likewise.
20953 * config/svr4.h: Likewise.
20954 * config/sync.c: Likewise.
20955 * config/v850/lib1funcs.asm: Likewise.
20956 * config/vxlib-tls.c: Likewise.
20957 * config/vxlib.c: Likewise.
20958 * config/vxworks-dummy.h: Likewise.
20959 * config/xtensa/crti.asm: Likewise.
20960 * config/xtensa/crtn.asm: Likewise.
20961 * config/xtensa/ieee754-df.S: Likewise.
20962 * config/xtensa/ieee754-sf.S: Likewise.
20963 * config/xtensa/lib1funcs.asm: Likewise.
20964 * config/xtensa/lib2funcs.S: Likewise.
20965 * config/xtensa/linux-unwind.h: Likewise.
20966 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
20967 * config/xtensa/unwind-dw2-xtensa.h: Likewise.
20968 * coretypes.h: Likewise.
20969 * crtstuff.c: Likewise.
20970 * defaults.h: Likewise.
20971 * dwarf2.h: Likewise.
20972 * emutls.c: Likewise.
20973 * gbl-ctors.h: Likewise.
20974 * gcov-io.h: Likewise.
20975 * ginclude/float.h: Likewise.
20976 * ginclude/iso646.h: Likewise.
20977 * ginclude/stdarg.h: Likewise.
20978 * ginclude/stdbool.h: Likewise.
20979 * ginclude/stddef.h: Likewise.
20980 * ginclude/stdfix.h: Likewise.
20981 * ginclude/stdint-gcc.h: Likewise.
20982 * ginclude/tgmath.h: Likewise.
20983 * gthr-aix.h: Likewise.
20984 * gthr-dce.h: Likewise.
20985 * gthr-gnat.c: Likewise.
20986 * gthr-gnat.h: Likewise.
20987 * gthr-lynx.h: Likewise.
20988 * gthr-mipssde.h: Likewise.
20989 * gthr-nks.h: Likewise.
20990 * gthr-posix.c: Likewise.
20991 * gthr-posix.h: Likewise.
20992 * gthr-posix95.h: Likewise.
20993 * gthr-rtems.h: Likewise.
20994 * gthr-single.h: Likewise.
20995 * gthr-solaris.h: Likewise.
20996 * gthr-tpf.h: Likewise.
20997 * gthr-vxworks.h: Likewise.
20998 * gthr-win32.h: Likewise.
20999 * gthr.h: Likewise.
21000 * libgcc2.c: Likewise.
21001 * libgcc2.h: Likewise.
21002 * libgcov.c: Likewise.
21003 * tsystem.h: Likewise.
21004 * typeclass.h: Likewise.
21005 * unwind-c.c: Likewise.
21006 * unwind-compat.h: Likewise.
21007 * unwind-dw2-fde-compat.c: Likewise.
21008 * unwind-dw2-fde-darwin.c: Likewise.
21009 * unwind-dw2-fde-glibc.c: Likewise.
21010 * unwind-dw2-fde.c: Likewise.
21011 * unwind-dw2-fde.h: Likewise.
21012 * unwind-dw2.c: Likewise.
21013 * unwind-dw2.h: Likewise.
21014 * unwind-generic.h: Likewise.
21015 * unwind-pe.h: Likewise.
21016 * unwind-sjlj.c: Likewise.
21017 * unwind.inc: Likewise.
21018 * config/arm/neon-gen.ml: Change generated copyright header to
21019 refer to version 3 of the GNU General Public License with
21020 version 3.1 of the GCC Runtime Library Exception and to point
21021 readers at the COPYING3 and COPYING3.RUNTIME files and the
21022 FSF's license web page.
21023 * config/arm/arm_neon.h: Regenerate.
21025 2009-04-09 Jakub Jelinek <jakub@redhat.com>
21027 * config/cris/cris.md: Change copyright header to refer to version
21028 3 of the GNU General Public License.
21029 * doc/install.texi2html: Change copyright header to refer to version
21030 3 of the GNU General Public License and to point readers at the
21031 COPYING3 file and the FSF's license web page.
21032 * config/vax/linux.h: Likewise.
21034 2009-04-09 Paolo Bonzini <bonzini@gnu.org>
21036 * config/i386/i386.md (cmpcc): New.
21037 * config/i386/sync.md (sync_compare_and_swap*): Set FLAGS_REG.
21038 (sync_compare_and_swap_cc*): Delete.
21040 * config/s390/s390.c (s390_compare_emitted): Remove.
21041 (s390_emit_compare): Handle MODE_CC s390_compare_op0 like
21042 s390_compare_emitted used to be handled. Assert that modes match.
21043 (s390_emit_compare_and_swap): Use s390_emit_compare, do not
21044 refer to sync_compare_and_swap_ccsi.
21045 * config/s390/s390.h (s390_compare_emitted): Remove.
21046 * config/s390/s390.md (seq): Look for MODE_CC s390_compare_op0
21047 instead of s390_compare_emitted.
21048 (stack_protect_test, sync_compare_and_swap_cc): Set s390_compare_op0
21049 instead of s390_compare_emitted.
21050 * config/s390/s390.md (cmpcc): New.
21051 (sync_compare_and_swapqi, sync_compare_and_swaphi): Clobber
21052 CC_REGNUM, do not pretend it's set.
21053 (sync_compare_and_swap_cc*): Delete.
21054 * config/s390/predicates.md (cc_reg_operand): New.
21056 * expr.c (sync_compare_and_swap_cc): Delete.
21057 * optabs.h (sync_compare_and_swap_cc): Delete.
21058 * optabs.c (prepare_cmp_insn): Ignore which specific CCmode
21059 is being used with can_compare_p.
21060 (emit_cmp_and_jump_insn_1): Likewise when looking in the optab.
21061 (find_cc_set): New.
21062 (expand_bool_compare_and_swap): Do not use sync_compare_and_swap_cc,
21063 look for a MODE_CC set instead. Use emit_store_flag.
21064 (expand_compare_and_swap_loop): Likewise, with some additional
21065 complication to avoid a force_reg when useless. Use
21066 emit_cmp_and_jump_insns.
21067 * genopinit.c (optabs): Delete sync_compare_and_swap_cc.
21068 * doc/md.texi (sync_compare_and_swap_cc): Merge with
21069 sync_compare_and_swap documentation.
21071 2009-04-09 Jan Hubicka <jh@suse.cz>
21073 * except.c (find_prev_try): Break out from ....
21074 (duplicate_eh_regions): ... here; properly update prev_try pointers
21075 when duplication part of tree.
21076 (dump_eh_tree): Improve dumping.
21077 (verify_eh_region): New.
21078 (verify_eh_tree): Use it.
21080 2009-04-06 Richard Guenther <rguenther@suse.de>
21082 * c-gimplify.c (c_gimplify_expr): Fix the invalid GENERIC
21083 &ARRAY addresses by adjusting their types and prepending
21085 * tree-cfg.c (verify_gimple_assign_single): Verify that
21086 addresses are correct.
21088 2009-04-09 Richard Guenther <rguenther@suse.de>
21090 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Move non-constant
21091 indices into an array reference if possible.
21092 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
21093 Fold POINTER_PLUS_EXPR statements with invariant address.
21095 2009-04-09 Alan Modra <amodra@bigpond.net.au>
21098 * config.gcc (powerpc64-*-linux*): Always build biarch.
21100 2009-04-09 Joseph Myers <joseph@codesourcery.com>
21103 * c-typeck.c (do_case): If case label is not an INTEGER_CST, fold
21104 it and pedwarn if this results in an INTEGER_CST.
21106 2009-04-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21108 * doc/install.texi: Update minimum GMP version. Remove obsolete
21109 text in MPFR section.
21111 2009-04-08 Jakub Jelinek <jakub@redhat.com>
21113 * dwarf2out.c (class_scope_p): New static inline.
21114 (class_or_namespace_scope_p): Use it.
21115 (gen_variable_die): Use DW_TAG_member tag for static data member
21116 declarations instead of DW_TAG_variable.
21118 PR middle-end/39573
21119 * omp-low.c (expand_omp_taskreg): Finalize taskreg static local_decls
21122 2009-04-08 Richard Guenther <rguenther@suse.de>
21124 * tree-ssa-sccvn.c (valueize_refs): Do not continue to
21125 valueize random data.
21127 2009-04-08 David Edelsohn <edelsohn@gnu.org>
21129 * config.gcc (aix tm_file): Add aix-stdint.h.
21130 (aix tm clause use_gcc_stdint): Set to wrap.
21131 * config/rs6000/aix-stdint.h: New file.
21133 2009-04-08 Richard Guenther <rguenther@suse.de>
21135 PR middle-end/36291
21136 * tree-dfa.c (add_referenced_var): Do not recurse into
21137 global initializers.
21138 * tree-ssa-ccp.c (get_symbol_constant_value): Add newly
21140 (fold_const_aggregate_ref): Likewise.
21142 2009-04-08 Paolo Bonzini <bonzini@gnu.org>
21144 * recog.c (ordered_comparison_operator): New.
21145 * gensupport.c (std_preds): Add it.
21146 * doc/md.texi (Machine-Independent Predicates): Document it.
21148 2009-04-08 Jan Hubicka <jh@suse.cz>
21150 * tree-eh.c (cleanup_eh): When not optimizing, do not try EH merging.
21151 * function.h (rtl_eh): Remove exception_handler_label_map.
21152 * except.c (ehl_hash, ehl_eq, add_ehl_entry,
21153 remove_exception_handler_label, for_each_eh_label_1): Remove.
21154 (rtl_remove_unreachable_regions): Remove.
21155 (convert_from_eh_region_ranges): Do not remove unreachable regions.
21156 (find_exception_handler_labels): Don't build the hashtable.
21157 (maybe_remove_eh_handler): Remove.
21158 (for_each_eh_label): Rewrite to walk the tree.
21159 (rest_of_handle_eh): Do not cleanup cfg prior EH construction.
21160 * except.h (maybe_remove_eh_handler): Remove.
21161 * passes.c (init_optimization_passes): Schedule second EH cleanup
21163 * cfgrtl.c (rtl_delete_block, rtl_merge_blocks,
21164 cfg_layout_merge_blocks): Do not call maybe_remove_eh_handler.
21166 2009-04-08 Paolo Bonzini <bonzini@gnu.org>
21168 * genoutput.c (validate_optab_operands): New.
21169 (gen_insn, gen_expand): Call it.
21171 * genflags.c (gen_insn): Detect misused iterators.
21172 (main): Pass line_no to gen_insn, exit with status 1 on error.
21174 * genextract.c (line_no): Make global.
21175 (VEC_safe_set_locstr): Change assertion to error message.
21176 (main): Exit with status 1 on error.
21178 2009-04-08 Joseph Myers <joseph@codesourcery.com>
21182 * c-common.h (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
21183 C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
21184 EXPR_INT_CONST_OPERANDS): Remove duplicate definitions.
21185 * c-convert.c (convert): Do not call fold on results of conversion
21186 functions when the result is a C_MAYBE_CONST_EXPR.
21187 * c-parser.c (c_parser_postfix_expression): Do not fold condition
21188 of __builtin_choose_expr.
21189 * c-typeck.c (remove_c_maybe_const_expr): New.
21190 (build_unary_op, build_conditional_expr, build_compound_expr,
21191 build_binary_op, c_objc_common_truthvalue_conversion): Call
21192 remove_c_maybe_const_expr on any input C_MAYBE_CONST_EXPR with
21195 2009-04-08 Bingfeng Mei <bmei@broadcom.com>
21197 * fold-const.c (const_binop): Combine two VECTOR_CST under operation
21198 CODE to produce a new one. Add a prototype to use fold_convert_const
21200 2009-04-08 Danny Smith <dannysmith@users.sourceforge.net>
21203 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): Don't
21204 mix declarations and code.
21206 2009-04-08 Ben Elliston <bje@au.ibm.com>
21208 * gcc.c: Replace `CC' with `GCC' throughout.
21210 2009-04-07 H.J. Lu <hongjiu.lu@intel.com>
21212 * doc/invoke.texi: Document Atom support.
21214 2009-04-07 Jason Merrill <jason@redhat.com>
21217 * c-common.h, c-common.c: Add flag_pretty_templates.
21218 * c-opts.c (c_common_handle_option): Set it.
21219 * c.opt: Add -fno-pretty-templates.
21220 * doc/invoke.texi (C++ Dialect Options): Likewise.
21222 2009-04-07 Uros Bizjak <ubizjak@gmail.com>
21224 * config/ia64/ia64.c (ia64_builtins): Add IA64_BUILTIN_HUGE_VALQ.
21225 (ia64_init_builtins): Handle IA64_BUILTIN_HUGE_VALQ.
21226 (ia64_expand_builtin): Likewise.
21228 2009-04-07 Martin Jambor <mjambor@suse.cz>
21230 * tree-ssa-alias.c (refs_may_alias_p_1): Check for
21231 is_gimple_min_invariant rather than CONSTANT_CLASS_P so that invariant
21232 ADDR_EXPRS are include too.
21234 2009-04-07 Richard Guenther <rguenther@suse.de>
21236 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Non-aliased
21237 decls are only used if passes as parameters or if they are
21238 local statics and the call is not to a builtin.
21239 (call_may_clobber_ref_p_1): Likewise.
21241 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
21243 * expr.c (do_store_flag): Remove last argument. Simplify code
21244 to avoid duplication of tests already done by can_compare_p.
21245 (expand_expr_real_1): Adjust caller.
21247 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
21249 * optabs.c (can_compare_p): Test the predicate of a
21250 cbranch and cstore pattern.
21252 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
21254 * expr.c (convert_move): Use emit_store_flag instead of
21257 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
21259 * config/i386/i386.c (ix86_compare_emitted): Remove.
21260 (ix86_expand_compare, ix86_expand_branch): Handle MODE_CC
21261 ix86_compare_op0 like ix86_compare_emitted used to be handled.
21262 * config/i386/i386.h (ix86_compare_emitted): Remove.
21263 * config/i386/i386.md (stack_protect_test): Set ix86_compare_op0
21264 instead of ix86_compare_emitted.
21265 * config/i386/sync.md (sync_compare_and_swap_cc): Likewise.
21267 2009-04-07 Andrew Stubbs <ams@codesourcery.com>
21269 * config.gcc (sh-*-*): Add sysroot-suffix.h to tm_file.
21270 Add t-sysroot-suffix to tmake_file.
21271 * config/print-sysroot-suffix.sh: New file.
21272 * config/t-sysroot-suffix: New file.
21274 2009-04-07 Ben Elliston <bje@au.ibm.com>
21276 * libgcc2.c (INFINITY): Use __builtin_huge_val, not __builtin_inf,
21277 as the latter produces a warning when the target does not support
21280 2009-04-07 Ben Elliston <bje@au.ibm.com>
21282 * dfp.c: Replace type punning assignments with memcpy throughout.
21283 * Makefile.in (dfp.o-warn): Remove.
21285 2009-04-07 Alan Modra <amodra@bigpond.net.au>
21288 * config.gcc: Merge powerpc-*-linux* and powerpc64-*-linux*.
21289 Include soft-fp/t-softfp after rs6000/t-linux64.
21291 2009-04-06 Eric Botcazou <ebotcazou@adacore.com>
21293 * stor-layout.c (set_sizetype): Use the full precision of their
21294 machine mode for bitsize types.
21296 2009-04-06 H.J. Lu <hongjiu.lu@intel.com>
21298 * config/i386/i386.md: Revert 2 accidental checkins.
21300 2009-04-06 Joey Ye <joey.ye@intel.com>
21301 Xuepeng Guo <xuepeng.guo@intel.com>
21302 H.J. Lu <hongjiu.lu@intel.com>
21304 Atom pipeline model, tuning and insn selection.
21305 * config.gcc (atom): Add atom config options and target.
21307 * config/i386/atom.md: New.
21309 * config/i386/i386.c (atom_cost): New cost.
21310 (m_ATOM): New macro flag.
21311 (initial_ix86_tune_features): Set m_ATOM.
21312 (x86_accumulate_outgoing_args): Likewise.
21313 (x86_arch_always_fancy_math_387): Likewise.
21314 (processor_target): Add Atom cost.
21315 (cpu_names): Add Atom cpu name.
21316 (override_options): Set Atom ISA.
21317 (ix86_issue_rate): New case PROCESSOR_ATOM.
21318 (ix86_adjust_cost): Likewise.
21320 * config/i386/i386.h (TARGET_ATOM): New target macro.
21321 (ix86_tune_indices): Add X86_TUNE_OPT_AGU.
21322 (TARGET_OPT_AGU): New target option.
21323 (target_cpu_default): Add TARGET_CPU_DEFAULT_atom.
21324 (processor_type): Add PROCESSOR_ATOM.
21326 * config/i386/i386.md (cpu): Add new value "atom".
21327 (use_carry, movu): New attr.
21328 (atom.md): Include atom.md.
21329 (adddi3_carry_rex64): Set attr "use_carry".
21330 (addqi3_carry): Likewise.
21331 (addhi3_carry): Likewise.
21332 (addsi3_carry): Likewise.
21333 (*addsi3_carry_zext): Likewise.
21334 (subdi3_carry_rex64): Likewise.
21335 (subqi3_carry): Likewise.
21336 (subhi3_carry): Likewise.
21337 (subsi3_carry): Likewise.
21338 (x86_movdicc_0_m1_rex64): Likewise.
21339 (*x86_movdicc_0_m1_se): Likewise.
21340 (x86_movsicc_0_m1): Likewise.
21341 (*x86_movsicc_0_m1_se): Likewise.
21342 (*adddi_1_rex64): Emit add insn as much as possible.
21343 (*addsi_1): Likewise.
21344 (return_internal): Set atom_unit.
21345 (return_internal_long): Likewise.
21346 (return_pop_internal): Likewise.
21347 (*rcpsf2_sse): Set atom_sse_attr attr.
21348 (*qrt<mode>2_sse): Likewise.
21349 (*prefetch_sse): Likewise.
21351 * config/i386/i386-c.c (ix86_target_macros_internal): New case
21353 (ix86_target_macros_internal): Likewise.
21355 * config/i386/sse.md (cpu): Set attr "atom_sse_attr".
21356 (*prefetch_sse_rex): Likewise.
21357 (sse_rcpv4sf2): Likewise.
21358 (sse_vmrcpv4sf2): Likewise.
21359 (sse_sqrtv4sf2): Likewise.
21360 (<sse>_vmsqrt<mode>2): Likewise.
21361 (sse_ldmxcsr): Likewise.
21362 (sse_stmxcsr): Likewise.
21363 (*sse_sfence): Likewise.
21364 (sse2_clflush): Likewise.
21365 (*sse2_mfence): Likewise.
21366 (*sse2_lfence): Likewise.
21367 (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Set attr "movu".
21368 (<sse>_movup<ssemodesuffixf2c>): Likewise.
21369 (avx_movdqu<avxmodesuffix>): Likewise.
21370 (avx_lddqu<avxmodesuffix>): Likewise.
21371 (sse2_movntv2di): Change attr "type" to "ssemov".
21372 (sse2_movntsi): Likewise.
21373 (rsqrtv8sf2): Change attr "type" to "sseadd".
21374 (sse3_addsubv2df3): Set attr "atom_unit".
21375 (sse3_h<plusminus_insn>v4sf3): Likewise.
21376 (*sse2_pmaddwd): Likewise.
21377 (*vec_extractv2di_1_rex64): Likewise.
21378 (*vec_extractv2di_1_avx): Likewise.
21379 (sse2_psadbw): Likewise.
21380 (ssse3_phaddwv8hi3): Likewise.
21381 (ssse3_phaddwv4hi3): Likewise.
21382 (ssse3_phadddv4si3): Likewise.
21383 (ssse3_phadddv2si3): Likewise.
21384 (ssse3_phaddswv8hi3): Likewise.
21385 (ssse3_phaddswv4hi3): Likewise.
21386 (ssse3_phsubwv8hi3): Likewise.
21387 (ssse3_phsubwv4hi3): Likewise.
21388 (ssse3_phsubdv4si3): Likewise.
21389 (ssse3_phsubdv2si3): Likewise.
21390 (ssse3_phsubswv8hi3): Likewise.
21391 (ssse3_phsubswv4hi3): Likewise.
21392 (ssse3_pmaddubsw128): Likewise.
21393 (sse3_pmaddubsw: Likewise.
21394 (ssse3_palignrti): Likewise.
21395 (ssse3_palignrdi): Likewise.
21397 2009-04-06 Gerald Pfeifer <gerald@pfeifer.com>
21399 * doc/install.texi (Specific): Fix two cross-references to MinGW.
21401 2009-04-06 Richard Guenther <rguenther@suse.de>
21403 PR tree-optimization/28868
21404 * tree-ssa-pre.c (inserted_phi_names): New bitmap to keep track
21405 of which PHI results we inserted.
21406 (insert_into_preds_of_block): Record inserted PHIs.
21407 (eliminate): Eliminate redundant PHI nodes.
21408 (init_pre): Init inserted_phi_names.
21410 2009-04-06 Richard Guenther <rguenther@suse.de>
21412 PR tree-optimization/39643
21413 * tree-ssa-ccp.c (ccp_fold): Fold REALPART_EXPRs and
21414 IMAGPART_EXPRs of complex constants.
21415 (execute_fold_all_builtins): If we folded a call queue
21416 TODO_update_address_taken.
21418 2009-04-06 Jan Hubicka <jh@suse.cz>
21420 PR middle-end/39659
21421 * except.c (remove_unreachable_regions): Propagate may_contain_throw
21424 2009-04-06 Andrew Stubbs <ams@codesourcery.com>
21426 * config/sh/lib1funcs.asm (ic_invalidate): Move ICBI out of the
21428 (ic_invalidate_array): Likewise.
21430 2009-04-06 Hariharan Sandanagobalane <hariharan@picochip.com>
21432 * calls.c (emit_library_call_value_1): Fix a problem with parameter
21433 alignment for library calls.
21435 2009-04-06 Danny Smith <dannysmith@users.sourceforge.net>
21437 * config.gcc (mingw32 tm_file): Add mingw-stdint.h.
21438 (mingw32 tm clause use_gcc_stdint): Set to wrap.
21439 * config/i386/mingw-stdint.h: New file.
21441 2009-04-05 Richard Guenther <rguenther@suse.de>
21443 PR tree-optimization/39648
21444 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Work around
21445 our &A vs. &A[0] IL deficiencies.
21447 2009-04-04 Jan Hubicka <jh@suse.cz>
21449 * except.c (sjlj_find_directly_reachable_regions): Be ready for
21450 removed toplevel regions.
21451 (sjlj_mark_call_sites): Likewise.
21453 2009-04-04 Dave Korn <dave.korn.cygwin@gmail.com>
21455 * config.gcc (cygwin tm_file): Add cygwin-stdint.h.
21456 (cygwin tm clause use_gcc_stdint): Set to wrap.
21457 * config/i386/cygwin-stdint.h: New file.
21459 2009-04-04 Richard Guenther <rguenther@suse.de>
21461 * Makefile.in (tree-ssa-copy.o): Add $(CFGLOOP_H) dependency.
21462 * tree-ssa-copy.c (init_copy_prop): Do not propagate through
21463 single-argument PHIs if we are in loop-closed SSA form.
21464 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Pass extra guards
21465 for the pre-condition.
21466 (slpeel_tree_peel_loop_to_edge): Likewise.
21467 (vect_build_loop_niters): Take an optional sequence to append stmts.
21468 (vect_generate_tmps_on_preheader): Likewise.
21469 (vect_do_peeling_for_loop_bound): Take extra guards for the
21471 (vect_do_peeling_for_alignment): Adjust. Unconditionally apply
21472 the cost model check.
21473 (vect_loop_versioning): Take stmt and stmt list to put pre-condition
21474 guards if we are going to peel. Do not apply versioning in that case.
21475 * tree-vectorizer.h (vect_loop_versioning): Adjust declaration.
21476 (vect_do_peeling_for_loop_bound): Likewise.
21477 * tree-vect-loop.c (vect_transform_loop): If we are peeling for
21478 loop bound only record extra pre-conditions, do not apply loop
21481 2009-04-04 Richard Guenther <rguenther@suse.de>
21483 * tree-ssa-operands.c (pop_stmt_changes): Remove automatic
21486 2009-04-04 Jan Hubicka <jh@suse.cz>
21488 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
21489 last_basic_block for size of bb->index indexed array.
21490 * bt-load.c (compute_defs_uses_and_gen, compute_kill,
21491 compute_out, link_btr_uses, build_btr_def_use_webs,
21492 build_btr_def_use_webs, migrate_btr_defs): Likewise.
21494 2009-04-04 Jan Hubicka <jh@suse.cz>
21496 * except.c (remove_eh_handler_and_replace): Break out from ...
21497 (remove_eh_handler): ... here.
21498 (bring_to_root): New function.
21499 (remove_unreachable_regions): Collect MUST_NOT_THROW, unify runtime
21500 handled ones, bring others to root of tree.
21502 2009-04-04 Jan Hubicka <jh@suse.cz>
21504 * tree-eh.c (tree_empty_eh_handler_p): Pattern match more curefully.
21505 (all_phis_safe_to_merge): New function.
21506 (update_info): New structure.
21507 (make_eh_edge_and_update_phi, update_eh_edges): New functions.
21508 (cleanup_empty_eh): Update SSA if possible.
21510 2009-04-04 Richard Guenther <rguenther@suse.de>
21512 * tree-ssa.c (verify_ssa): With -O0 we do not need VOPs.
21513 * tree-ssa-operands.c (append_vdef): Do not append VOPs at -O0.
21514 (append_vuse): Likewise.
21516 2009-04-04 Jakub Jelinek <jakub@redhat.com>
21518 * unwind-dw2.h (_Unwind_FrameState): Add REG_UNDEFINED enum value.
21519 * unwind-dw2.c (execute_cfa_program): Set how to REG_UNDEFINED
21520 instead of REG_UNSAVED for DW_CFA_undefined.
21521 (uw_update_context_1): Handle REG_UNDEFINED the same as REG_UNSAVED.
21522 (uw_update_context): If RA column is REG_UNDEFINED, mark it as
21525 2009-04-04 Richard Earnshaw <rearnsha@arm.com>
21528 * arm.md (movsfcc): Disable if not TARGET_HARD_FLOAT.
21530 2009-04-04 Richard Guenther <rguenther@suse.de>
21532 PR tree-optimization/8781
21533 PR tree-optimization/37892
21534 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Declare.
21535 * tree-ssa-sccvn.c (vn_reference_fold_indirect): New function.
21536 (valueize_refs): Call it for *& valueizations.
21537 (shared_reference_ops_from_ref): Rename to ...
21538 (valueize_shared_reference_ops_from_ref): ... this and valueize.
21539 (shared_reference_ops_from_call): Rename to ...
21540 (valueize_shared_reference_ops_from_call): ... this and valueize.
21541 (vn_reference_lookup): Update.
21542 (visit_reference_op_call): Likewise.
21543 * tree-ssa-pre.c (phi_translate_1): Fold *&.
21544 (eliminate): Value-replace the call address in call statements.
21546 2009-04-04 Richard Guenther <rguenther@suse.de>
21548 PR tree-optimization/39636
21549 * tree-ssa-forwprop.c
21550 (forward_propagate_addr_into_variable_array_index): Check for
21551 GIMPLE_ASSIGN before accessing the rhs code.
21553 2009-04-03 Jason Merrill <jason@redhat.com>
21555 * stor-layout.c (set_sizetype): Set TYPE_CANONICAL.
21557 2009-04-03 Steve Ellcey <sje@cup.hp.com>
21559 * config/ia64/ia64.md (extendsfdf2, extendsfxf2, extenddfxf2,
21560 truncdfsf2, truncxfsf2, truncxfdf2, floatdixf2, fix_truncsfdi2,
21561 fix_truncdfdi2, fix_truncxfdi2, fix_truncxfdi2_alts, floatunsdisf2,
21562 floatunsdidf2, floatunsdixf2, fixuns_truncsfdi2, fixuns_truncdfdi2,
21563 fixuns_truncxfdi2, fixuns_truncxfdi2_alts, divsi3_internal,
21564 smuldi3_highpart, umuldi3_highpart, ctzdi2, *getf_exp_xf,
21565 divdi3_internal_lat, divdi3_internal_thr, mulditi3, *mulditi3_internal,
21566 umulditi3, *umulditi3_internal, addsf3, mulsf3, abssf2, negsf2,
21567 *nabssf2, sminsf3, smaxsf3, *maddsf4, *msubsf4, *nmulsf3, *nmaddsf4,
21568 *nmaddsf4_alts, divsf3, *sqrt_approx, sqrtsf2, sqrtsf2_internal_thr,
21569 adddf3, *adddf3_trunc, muldf3, *muldf3_trunc, absdf2, negdf2, *nabsdf2,
21570 smindf3, smaxdf3, *madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc,
21571 *nmuldf3, *nmuldf3_trunc, *nmadddf4, *nmadddf4_alts, *nmadddf4_truncsf,
21572 *nmadddf4_truncsf_alts, divdf3, sqrtdf2, sqrtdf2_internal_thr, divxf3,
21573 sqrtxf2, sqrtxf2_internal_thr, *recip_approx):
21574 Use fr_reg_or_fp01_operand instead of fr_register_operand
21576 * config/ia64/div.md (extend<mode>rf2, truncrf<mode>2,
21577 recip_approx_rf, divsf3_internal_thr, divsf3_internal_lat,
21578 divdf3_internal_thr, divdf3_internal_lat divxf3_internal): Ditto.
21580 2009-04-03 Vladimir Makarov <vmakarov@redhat.com>
21582 PR rtl-optimization/39607
21583 PR rtl-optimization/39631
21587 2009-03-30 Vladimir Makarov <vmakarov@redhat.com>
21588 * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
21589 instead of DF_LR_OUT.
21590 * ira-lives.c (process_bb_node_lives): Ditto.
21591 * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
21592 instead of DF_LR_{OUT,IN}.
21593 * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
21594 * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
21596 2009-04-03 Steven Bosscher <steven@gcc.gnu.org>
21598 * omp-low.c (pass_expand_omp): Don't claim to provide PROP_gimple_lomp.
21599 (execute_lower_omp): Always run but take the short way out if -fopenmp
21601 (gate_lower_omp): Remove, forcing the pass manager to always run the
21602 pass and always set PROP_gimple_lomp.
21603 (pass_lower_omp): Remove gate function.
21604 * matrix-reorg.c (pass_ipa_matrix_reorg): Don't claim to provide
21605 PROP_trees. Instead, require it.
21606 * ipa-cp.c (pass_ipa_cp): Likewise.
21607 * ipa-inline.c (pass_early_inline): Don't claim to provide PROP_cfg.
21608 (pass_ipa_early_inline, pass_inline_parameters, pass_ipa_inline): Idem.
21609 * tree-profile.c (pass_tree_profile): Don't claim to provide PROP_cfg
21610 and PROP_gimple_leh.
21612 2009-04-03 Richard Guenther <rguenther@suse.de>
21614 PR middle-end/13146
21615 PR tree-optimization/23940
21616 PR tree-optimization/33237
21617 PR middle-end/33974
21618 PR middle-end/34093
21619 PR tree-optimization/36201
21620 PR tree-optimization/36230
21621 PR tree-optimization/38049
21622 PR tree-optimization/38207
21623 PR tree-optimization/38230
21624 PR tree-optimization/38301
21625 PR tree-optimization/38585
21626 PR middle-end/38895
21627 PR tree-optimization/38985
21628 PR tree-optimization/39299
21629 * tree-ssa-structalias.h: Remove.
21630 * tree-ssa-operands.h (NULL_USE_OPERAND_P): Make of type use_operand_p.
21631 (NULL_DEF_OPERAND_P): Make of type def_operand_p.
21632 (struct vuse_element_d): Remove.
21633 (struct vuse_vec_d): Likewise.
21634 (VUSE_VECT_NUM_ELEM, VUSE_VECT_ELEMENT_NC, VUSE_ELEMENT_PTR_NC,
21635 VUSE_ELEMENT_VAR_NC, VUSE_VECT_ELEMENT, VUSE_ELEMENT_PTR,
21636 SET_VUSE_VECT_ELEMENT, SET_VUSE_ELEMENT_VAR, SET_VUSE_ELEMENT_PTR,
21637 VUSE_ELEMENT_VAR): Likewise.
21638 (struct voptype_d): Likewise.
21639 (NUM_VOP_FREE_BUCKETS): Likewise.
21640 (struct ssa_operands): Remove vop_free_buckets and mpt_table fields.
21641 (struct stmt_operands_d): Remove.
21642 (VUSE_OP_PTR, VUSE_OP, SET_VUSE_OP, VUSE_NUM, VUSE_VECT,
21643 VDEF_RESULT_PTR, VDEF_RESULT, VDEF_OP_PTR, VDEF_OP, SET_VDEF_OP,
21644 VDEF_NUM, VDEF_VECT): Likewise.
21645 (copy_virtual_operands): Remove.
21646 (operand_build_cmp): Likewise.
21647 (create_ssa_artificial_load_stmt): Likewise.
21648 (enum ssa_op_iter_type): Remove ssa_op_iter_vdef.
21649 (struct ssa_operand_iterator_d): Remove vuses, vdefs, mayusesm
21650 vuse_index and mayuse_index members. Pack and move done and iter_type
21651 members to the front.
21652 (SSA_OP_VMAYUSE): Remove.
21653 (SSA_OP_VIRTUAL_USES): Adjust.
21654 (FOR_EACH_SSA_VDEF_OPERAND): Remove.
21655 (unlink_stmt_vdef): Declare.
21656 (add_to_addressable_set): Remove.
21657 * tree-vrp.c (stmt_interesting_for_vrp): Adjust.
21658 (vrp_visit_stmt): Likewise.
21659 * doc/tree-ssa.texi (Alias analysis): Update.
21660 * doc/invoke.texi (max-aliased-vops): Remove docs.
21661 (avg-aliased-vops): Likewise.
21662 * tree-into-ssa.c (syms_to_rename): Remove.
21663 (need_to_update_vops_p): Likewise.
21664 (need_to_initialize_update_ssa_p): Rename to ...
21665 (update_ssa_initialized_fn): ... this. Track function we are
21667 (symbol_marked_for_renaming): Simplify.
21668 (add_new_name_mapping): Do not set need_to_update_vops_p.
21669 (dump_currdefs): Use SYMS_TO_RENAME.
21670 (rewrite_update_stmt): Always walk all uses/defs.
21671 (dump_update_ssa): Adjust.
21672 (init_update_ssa): Take function argument. Track what we are
21674 (delete_update_ssa): Reset SYMS_TO_RENAME and update_ssa_initialized_fn.
21675 (create_new_def_for): Initialize for cfun, assert we are initialized
21677 (mark_sym_for_renaming): Simplify.
21678 (mark_set_for_renaming): Do not initialize update-ssa.
21679 (need_ssa_update_p): Simplify. Take function argument.
21680 (name_mappings_registered_p): Assert we ask for the correct function.
21681 (name_registered_for_update_p): Likewise.
21682 (ssa_names_to_replace): Likewise.
21683 (release_ssa_name_after_update_ssa): Likewise.
21684 (update_ssa): Likewise. Use SYMS_TO_RENAME.
21685 (dump_decl_set): Do not print a newline.
21686 (debug_decl_set): Do it here.
21687 (dump_update_ssa): And here.
21688 * tree-ssa-loop-im.c (move_computations): Adjust.
21689 (movement_possibility): Likewise.
21690 (determine_max_movement): Likewise.
21691 (gather_mem_refs_stmt): Likewise.
21692 * tree-dump.c (dequeue_and_dump): Do not handle SYMBOL_MEMORY_TAG
21693 or NAME_MEMORY_TAG.
21694 * tree-complex.c (update_all_vops): Remove.
21695 (expand_complex_move): Adjust.
21696 * tree-ssa-loop-niter.c (chain_of_csts_start): Use NULL_TREE.
21697 Simplify test for memory referencing statement. Exclude
21698 non-invariant ADDR_EXPRs.
21699 * tree-pretty-print.c (dump_generic_node): Do not handle memory tags.
21700 * tree-loop-distribution.c (generate_memset_zero): Adjust.
21701 (rdg_flag_uses): Likewise.
21702 * tree-tailcall.c (suitable_for_tail_opt_p): Remove memory-tag
21704 (tree_optimize_tail_calls_1): Also split the
21705 edge from the entry block if we have degenerate PHI nodes in
21706 the first basic block.
21707 * tree.c (init_ttree): Remove memory-tag related code.
21708 (tree_code_size): Likewise.
21709 (tree_node_structure): Likewise.
21710 (build7_stat): Re-write to be build6_stat.
21711 * tree.h (MTAG_P, TREE_MEMORY_TAG_CHECK, TMR_TAG): Remove.
21712 (SSA_VAR_P): Adjust.
21713 (struct tree_memory_tag): Remove.
21714 (struct tree_memory_partition_tag): Likewise.
21715 (union tree_node): Adjust.
21716 (build7): Re-write to be build6.
21717 * tree-pass.h (pass_reset_cc_flags): Remove.
21718 (TODO_update_address_taken): New flag.
21719 (pass_simple_dse): Remove.
21720 * ipa-cp.c (ipcp_update_callgraph): Update SSA form.
21721 * params.h (MAX_ALIASED_VOPS): Remove.
21722 (AVG_ALIASED_VOPS): Likewise.
21723 * omp-low.c (expand_omp_taskreg): Update SSA form.
21724 * tree-ssa-dse.c (dse_optimize_stmt): Properly query if the rhs
21725 aliases the lhs in a copy stmt.
21726 * tree-ssa-dse.c (struct address_walk_data): Remove.
21727 (memory_ssa_name_same): Likewise.
21728 (memory_address_same): Likewise.
21729 (get_kill_of_stmt_lhs): Likewise.
21730 (dse_possible_dead_store_p): Simplify, use the oracle. Handle
21731 unused stores. Look through PHI nodes into post-dominated regions.
21732 (dse_optimize_stmt): Simplify. Properly remove stores.
21733 (tree_ssa_dse): Compute dominators.
21734 (execute_simple_dse): Remove.
21735 (pass_simple_dse): Likewise.
21736 * ipa-reference.c (scan_stmt_for_static_refs): Open-code
21737 gimple_loaded_syms and gimple_stored_syms computation.
21738 * toplev.c (dump_memory_report): Dump alias and pta stats.
21739 * tree-ssa-sccvn.c (vn_reference_compute_hash): Simplify.
21740 (vn_reference_eq): Likewise.
21741 (vuses_to_vec, copy_vuses_from_stmt, vdefs_to_vec,
21742 copy_vdefs_from_stmt, shared_lookup_vops, shared_vuses_from_stmt,
21743 valueize_vuses): Remove.
21744 (get_def_ref_stmt_vuses): Simplify. Rename to ...
21745 (get_def_ref_stmt_vuse): ... this.
21746 (vn_reference_lookup_2): New function.
21747 (vn_reference_lookup_pieces): Use walk_non_aliased_vuses for
21748 walking equivalent vuses. Simplify.
21749 (vn_reference_lookup): Likewise.
21750 (vn_reference_insert): Likewise.
21751 (vn_reference_insert_pieces): Likewise.
21752 (visit_reference_op_call): Simplify.
21753 (visit_reference_op_load): Likewise.
21754 (visit_reference_op_store): Likewise.
21755 (init_scc_vn): Remove shared_lookup_vuses initialization.
21756 (free_scc_vn): Remove shared_lookup_vuses freeing.
21757 (sort_vuses, sort_vuses_heap): Remove.
21758 (get_ref_from_reference_ops): Export.
21759 * tree-ssa-sccvn.h (struct vn_reference_s): Replace vuses
21760 vector with single vuse pointer.
21761 (vn_reference_lookup_pieces, vn_reference_lookup,
21762 vn_reference_insert, vn_reference_insert_pieces): Adjust prototypes.
21763 (shared_vuses_from_stmt): Remove.
21764 (get_ref_from_reference_ops): Declare.
21765 * tree-ssa-loop-manip.c (slpeel_can_duplicate_loop_p): Adjust.
21766 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
21767 memory-tag related code.
21768 * tree-ssa-ccp.c (get_symbol_constant_value): Remove memory-tag code.
21769 (likely_value): Add comment, skip static-chain of call statements.
21770 (surely_varying_stmt_p): Adjust.
21771 (gimplify_and_update_call_from_tree): Likewise.
21772 (execute_fold_all_builtins): Do not rebuild alias info.
21773 (gimplify_and_update_call_from_tree): Properly update VOPs.
21774 * tree-ssa-loop-ivopts.c (get_ref_tag): Remove.
21775 (copy_ref_info): Remove memory-tag related code.
21776 * tree-call-cdce.c (tree_call_cdce): Rename the VOP.
21777 * ipa-pure-const.c (check_decl): Remove memory-tag related code.
21778 (check_stmt): Open-code gimple_loaded_syms and gimple_stored_syms
21780 * tree-ssa-dom.c (gimple_p): Remove typedef.
21781 (eliminate_redundant_computations): Adjust.
21782 (record_equivalences_from_stmt): Likewise.
21783 (avail_expr_hash): Likewise.
21784 (avail_expr_eq): Likewise.
21785 * tree-ssa-propagate.c (update_call_from_tree): Properly update VOPs.
21786 (stmt_makes_single_load): Likewise.
21787 (stmt_makes_single_store): Likewise.
21788 * tree-ssa-alias.c: Rewrite completely.
21789 (debug_memory_partitions, dump_mem_ref_stats, debug_mem_ref_stats,
21790 debug_mem_sym_stats, dump_mem_sym_stats_for_var,
21791 debug_all_mem_sym_stats, debug_mp_info, update_mem_sym_stats_from_stmt,
21792 delete_mem_ref_stats, create_tag_raw, dump_points_to_info,
21793 dump_may_aliases_for, debug_may_aliases_for, new_type_alias):
21794 Remove public functions.
21795 (pass_reset_cc_flags): Remove.
21796 (pass_build_alias): Move ...
21797 * tree-ssa-structalias.c (pass_build_alias): ... here.
21798 * tree-ssa-alias.c (may_be_aliased): Move ...
21799 * tree-flow-inline.h (may_be_aliased): ... here.
21800 tree-ssa-alias.c (struct count_ptr_d, count_ptr_derefs,
21801 count_uses_and_derefs): Move ...
21802 * gimple.c: ... here.
21803 * gimple.h (count_uses_and_derefs): Declare.
21804 * tree-ssa-alias.c (dump_alias_stats, ptr_deref_may_alias_global_p,
21805 ptr_deref_may_alias_decl_p, ptr_derefs_may_alias_p,
21806 same_type_for_tbaa, nonaliasing_component_refs_p, decl_refs_may_alias_p,
21807 indirect_ref_may_alias_decl_p, indirect_refs_may_alias_p,
21808 ref_maybe_used_by_call_p, ref_maybe_used_by_stmt_p,
21809 call_may_clobber_ref_p, stmt_may_clobber_ref_p, maybe_skip_until,
21810 get_continuation_for_phi, walk_non_aliased_vuses, walk_aliased_vdefs):
21812 * tree-dfa.c (refs_may_alias_p): Move ...
21813 * tree-ssa-alias.c (refs_may_alias_p): ... here. Extend.
21814 * tree-ssa-alias.h: New file.
21815 * tree-ssa-sink.c (is_hidden_global_store): Adjust.
21816 (statement_sink_location): Likewise.
21817 * opts.c (decode_options): Do not adjust max-aliased-vops or
21818 avg-aliased-vops values.
21819 * timevar.def (TV_TREE_MAY_ALIAS): Remove.
21820 (TV_CALL_CLOBBER): Likewise.
21821 (TV_FLOW_SENSITIVE): Likewise.
21822 (TV_FLOW_INSENSITIVE): Likewise.
21823 (TV_MEMORY_PARTITIONING): Likewise.
21824 (TV_ALIAS_STMT_WALK): New timevar.
21825 * tree-ssa-loop-ivcanon.c (empty_loop_p): Adjust.
21826 * tree-ssa-address.c (create_mem_ref_raw): Use build6.
21827 (get_address_description): Remove memory-tag related code.
21828 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Adjust.
21829 * treestruct.def (TS_MEMORY_TAG, TS_MEMORY_PARTITION_TAG): Remove.
21830 * tree-eh.c (cleanup_empty_eh): Do not leave stale SSA_NAMEs
21831 and immediate uses in statements. Document.
21832 * gimple-pretty-print.c (dump_gimple_mem_ops): Adjust.
21833 (dump_symbols): Remove.
21834 (dump_gimple_mem_ops): Do not dump loaded or stored syms.
21835 * alias.c (get_deref_alias_set): New function split out from ...
21836 (get_alias_set): ... here.
21837 * alias.h (get_deref_alias_set): Declare.
21838 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove unused
21839 type parameter. Remove restrict pointer handling. Create a
21840 ref-all pointer in case type-based alias sets do not conflict.
21841 (vect_analyze_data_refs): Remove SMT related code.
21842 * tree-vect-stmts.c (vectorizable_store): Re-instantiate TBAA assert.
21843 (vectorizable_load): Likewise.
21844 * tree-data-ref.h (struct dr_alias): Remove symbol_tag field.
21845 (DR_SYMBOL_TAG, DR_VOPS): Remove.
21846 * tree-data-ref.c (dr_may_alias_p): Use the alias-oracle.
21847 Ignore vops and SMTs.
21848 (dr_analyze_alias): Likewise..
21849 (free_data_ref): Likewise.
21850 (create_data_ref): Likewise.
21851 (analyze_all_data_dependences): Likewise.
21852 (get_references_in_stmt): Adjust.
21853 * tree-flow-inline.h (gimple_aliases_computed_p,
21854 gimple_addressable_vars, gimple_call_clobbered_vars,
21855 gimple_call_used_vars, gimple_global_var, may_aliases, memory_partition,
21856 factoring_name_p, mark_call_clobbered, clear_call_clobbered,
21857 compare_ssa_operands_equal, symbol_mem_tag, set_symbol_mem_tag,
21858 gimple_mem_ref_stats): Remove.
21859 (gimple_vop): New function.
21860 (op_iter_next_use): Remove vuses and mayuses cases.
21861 (op_iter_next_def): Remove vdefs case.
21862 (op_iter_next_tree): Remove vuses, mayuses and vdefs cases.
21863 (clear_and_done_ssa_iter): Do not set removed fields.
21864 (op_iter_init): Likewise. Skip vuse and/or vdef if requested.
21865 Assert we are not iterating over vuses or vdefs if not also
21866 iterating over uses or defs.
21867 (op_iter_init_use): Likewise.
21868 (op_iter_init_def): Likewise.
21869 (op_iter_next_vdef): Remove.
21870 (op_iter_next_mustdef): Likewise.
21871 (op_iter_init_vdef): Likewise.
21872 (compare_ssa_operands_equal): Likewise.
21873 (link_use_stmts_after): Handle vuse operand.
21874 (is_call_used): Use is_call_clobbered.
21875 (is_call_clobbered): Global variables are always call clobbered,
21876 query the call-clobbers bitmap.
21877 (mark_call_clobbered): Ignore global variables.
21878 (clear_call_clobbered): Likewise.
21879 * tree-ssa-coalesce.c (create_outofssa_var_map): Adjust
21880 virtual operands sanity check.
21881 * tree.def (NAME_MEMORY_TAG, SYMBOL_MEMORY_TAG, MEMORY_PARTITION_TAG):
21883 (TARGET_MEM_REF): Remove TMR_TAG operand.
21884 * tree-dfa.c (add_referenced_var): Initialize call-clobber state.
21885 Remove call-clobber related code.
21886 (remove_referenced_var): Likewise. Do not clear mpt or symbol_mem_tag.
21887 (dump_variable): Do not dump SMTs, memory stats, may-aliases or
21888 partitions or escape reason.
21889 (get_single_def_stmt, get_single_def_stmt_from_phi,
21890 get_single_def_stmt_with_phi): Remove.
21891 (dump_referenced_vars): Tidy.
21892 (get_ref_base_and_extent): Allow bare decls.
21893 (collect_dfa_stats): Adjust.
21894 * graphite.c (rename_variables_in_stmt): Adjust.
21895 (graphite_copy_stmts_from_block): Likewise.
21896 (translate_clast): Likewise.
21897 * tree-ssa-pre.c (struct bb_bitmap_sets): Add expr_dies bitmap.
21899 (translate_vuse_through_block): Use the oracle.
21900 (phi_translate_1): Adjust.
21901 (value_dies_in_block_x): Use the oracle. Cache the outcome
21903 (valid_in_sets): Check if the VUSE for
21904 a REFERENCE is available.
21905 (eliminate): Do not remove stmts during elimination,
21906 instead queue and remove them afterwards.
21907 (do_pre): Do not rebuild alias info.
21908 (pass_pre): Run TODO_rebuild_alias before PRE.
21909 * tree-ssa-live.c (remove_unused_locals): Remove memory-tag code.
21910 * tree-sra.c (sra_walk_function): Use gimple_references_memory_p.
21911 (mark_all_v_defs_stmt): Remove.
21912 (mark_all_v_defs_seq): Adjust.
21913 (sra_replace): Likewise.
21914 (scalarize_use): Likewise.
21915 (scalarize_copy): Likewise.
21916 (scalarize_init): Likewise.
21917 (scalarize_ldst): Likewise.
21918 (todoflags): Remove.
21919 (tree_sra): Do not rebuild alias info.
21920 (tree_sra_early): Adjust.
21921 (pass_sra): Run TODO_update_address_taken before SRA.
21922 * tree-predcom.c (set_alias_info): Remove.
21923 (prepare_initializers_chain): Do not call it.
21924 (mark_virtual_ops_for_renaming): Adjust.
21925 (mark_virtual_ops_for_renaming_list): Remove.
21926 (initialize_root_vars): Adjust.
21927 (initialize_root_vars_lm): Likewise.
21928 (prepare_initializers_chain): Likewise.
21929 * tree-ssa-copy.c (may_propagate_copy): Remove memory-tag related code.
21930 (may_propagate_copy_into_stmt): Likewise.
21931 (merge_alias_info): Do nothing for now.
21932 (propagate_tree_value_into_stmt): Adjust.
21933 (stmt_may_generate_copy): Likewise.
21934 * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr): Do
21935 not mark symbols for renaming.
21936 (forward_propagate_addr_expr): Match up push/pop_stmt_changes
21937 with the same statement, make sure to update the new pointed-to one.
21938 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not copy
21939 call statements, do not mark symbols for renaming.
21940 (mark_operand_necessary): Dump something.
21941 (ref_may_be_aliased): New function.
21942 (mark_aliased_reaching_defs_necessary_1): New helper function.
21943 (mark_aliased_reaching_defs_necessary): Likewise.
21944 (mark_all_reaching_defs_necessary_1): Likewise.
21945 (mark_all_reaching_defs_necessary): Likewise.
21946 (propagate_necessity): Do not process virtual PHIs. For
21947 non-aliased loads mark all reaching definitions as necessary.
21948 For aliased loads and stores mark the immediate dominating
21949 aliased clobbers as necessary.
21950 (visited): New global static.
21951 (perform_tree_ssa_dce): Free visited bitmap after propagating
21953 (remove_dead_phis): Perform simple dead virtual PHI removal.
21954 (remove_dead_stmt): Properly unlink virtual operands when
21956 (eliminate_unnecessary_stmts): Schedule PHI removal after
21958 * tree-ssa-ter.c (is_replaceable_p): Adjust.
21959 (process_replaceable): Likewise.
21960 (find_replaceable_in_bb): Likewise.
21961 * tree-ssa.c (verify_ssa_name): Verify all VOPs are
21962 based on the single gimple vop.
21963 (verify_flow_insensitive_alias_info): Remove.
21964 (verify_flow_sensitive_alias_info): Likewise.
21965 (verify_call_clobbering): Likewise.
21966 (verify_memory_partitions): Likewise.
21967 (verify_alias_info): Likewise.
21968 (verify_ssa): Adjust..
21969 (execute_update_addresses_taken): Export. Update SSA
21970 manually. Optimize only when optimizing. Use a local bitmap.
21971 (pass_update_address_taken): Remove TODO_update_ssa, add
21973 (pass_update_address_taken): Just use TODO_update_address_taken.
21974 (init_tree_ssa): Do not initialize addressable_vars.
21975 (verify_ssa): Verify new VUSE / VDEF properties.
21976 Verify that all stmts definitions have the stmt as SSA_NAME_DEF_STMT.
21977 Do not call verify_alias_info.
21978 (delete_tree_ssa): Clear the VUSE, VDEF operands.
21979 Do not free the loaded and stored syms bitmaps. Reset the escaped
21980 and callused solutions. Do not free addressable_vars.
21981 Remove memory-tag related code.
21982 (warn_uninitialized_var): Aliases are always available.
21983 * tree-ssa-loop-prefetch.c (gather_memory_references): Adjust.
21984 * lambda-code.c (can_put_in_inner_loop): Adjust.
21985 (can_put_after_inner_loop): Likewise.
21986 (perfect_nestify): Likewise.
21987 * tree-vect-stmts.c (vect_stmt_relevant_p): Adjust.
21988 (vect_gen_widened_results_half): Remove CALL_EXPR handling.
21989 (vectorizable_conversion): Do not mark symbols for renaming.
21990 * tree-inline.c (remap_gimple_stmt): Clear VUSE/VDEF.
21991 (expand_call_inline): Unlink the calls virtual operands before
21993 (tree_function_versioning): Do not call update_ssa if we are not
21994 updating clones. Simplify.
21995 * tree-ssa-phiprop.c (phivn_valid_p): Adjust.
21996 (propagate_with_phi): Likewise..
21997 * tree-outof-ssa.c (create_temp): Remove memory tag and call
21998 clobber code. Assert we are not aliased or global.
21999 * tree-flow.h: Include tree-ssa-alias.h
22000 (enum escape_type): Remove.
22001 (struct mem_sym_stats_d): Likewise.
22002 (struct mem_ref_stats_d): Likewise.
22003 (struct gimple_df): Add vop member. Remove global_var,
22004 call_clobbered_vars, call_used_vars, addressable_vars,
22005 aliases_compted_p and mem_ref_stats members. Add syms_to_rename,
22006 escaped and callused members.
22007 (struct ptr_info_def): Remove all members, add points-to solution
22009 (struct var_ann_d): Remove in_vuse_list, in_vdef_list,
22010 call_clobbered, escape_mask, mpt and symbol_mem_tag members.
22011 * Makefile.in (TREE_FLOW_H): Add tree-ssa-alias.h.
22012 (tree-ssa-structalias.o): Remove tree-ssa-structalias.h.
22013 (tree-ssa-alias.o): Likewise.
22014 (toplev.o): Add tree-ssa-alias.h
22015 (GTFILES): Remove tree-ssa-structalias.h, add tree-ssa-alias.h.
22016 * gimple.c (gimple_set_bb): Fix off-by-one error.
22017 (is_gimple_reg): Do not handle memory tags.
22018 (gimple_copy): Also copy virtual operands.
22019 Delay updating the statement. Do not reset loaded and stored syms.
22020 (gimple_set_stored_syms): Remove.
22021 (gimple_set_loaded_syms): Likewise.
22022 (gimple_call_copy_skip_args): Copy the virtual operands
22023 and mark the new statement modified.
22024 * tree-ssa-structalias.c (may_alias_p): Remove.
22025 (set_uids_in_ptset): Take the alias set to prune with as
22026 parameter. Fold in the alias test of may_alias_p.
22027 (compute_points_to_sets): Compute whether a ptr is dereferenced
22028 in a local sbitmap.
22029 (process_constraint): Deal with &ANYTHING on the lhs, reject all
22030 other ADDRESSOF constraints on the lhs.
22031 (get_constraint_for_component_ref): Assert that we don't get
22032 ADDRESSOF constraints from the base of the reference.
22033 Properly generate UNKNOWN_OFFSET for DEREF if needed.
22034 (struct variable_info): Remove collapsed_to member.
22035 (get_varinfo_fc): Remove.
22036 (new_var_info): Do not set collapsed_to.
22037 (dump_constraint): Do not follow cycles.
22038 (dump_constraint_graph): Likewise.
22039 (build_pred_graph): Likewise.
22040 (build_succ_graph): Likewise.
22041 (rewrite_constraints): Likewise.
22042 (do_simple_structure_copy): Remove.
22043 (do_rhs_deref_structure_copy): Remove.
22044 (do_lhs_deref_structure_copy): Remove.
22045 (collapse_rest_of_var): Remove.
22046 (do_structure_copy): Re-implement.
22047 (pta_stats): New global variable.
22048 (dump_pta_stats): New function.
22049 (struct constraint_expr): Make offset signed.
22050 (UNKNOWN_OFFSET): Define special value.
22051 (dump_constraint): Dump UNKNOWN_OFFSET as UNKNOWN.
22052 (solution_set_expand): New helper function split out from ...
22053 (do_sd_constraint): ... here.
22054 (solution_set_add): Handle UNKNOWN_OFFSET. Handle negative offsets.
22055 (do_ds_constraint): Likewise.
22056 (do_sd_constraint): Likewise. Do not special-case ESCAPED = *ESCAPED
22057 and CALLUSED = *CALLUSED.
22058 (set_union_with_increment): Make inc argument signed.
22059 (type_safe): Remove.
22060 (get_constraint_for_ptr_offset): Handle unknown and negative
22062 (first_vi_for_offset): Handle offsets before start. Bail
22063 out early for offsets beyond the variable extent.
22064 (first_or_preceding_vi_for_offset): New function.
22065 (init_base_vars): Add ESCAPED = ESCAPED + UNKNOWN_OFFSET constraint.
22066 Together with ESCAPED = *ESCAPED this properly computes reachability.
22067 (find_what_var_points_to): New function.
22068 (find_what_p_points_to): Implement in terms of find_what_var_points_to.
22069 (pt_solution_reset, pt_solution_empty_p, pt_solution_includes_global,
22070 pt_solution_includes_1, pt_solution_includes, pt_solutions_intersect_1,
22071 pt_solutions_intersect): New functions.
22072 (compute_call_used_vars): Remove.
22073 (compute_may_aliases): New main entry into PTA computation.
22074 * gimple.h (gimple_p): New typedef.
22075 (struct gimple_statement_base): Remove references_memory_p.
22076 (struct gimple_statement_with_memory_ops_base): Remove
22077 vdef_ops, vuse_ops, stores and loads members. Add vdef and vuse
22079 (gimple_vuse_ops, gimple_set_vuse_ops, gimple_vdef_ops,
22080 gimple_set_vdef_ops, gimple_loaded_syms, gimple_stored_syms,
22081 gimple_set_references_memory): Remove.
22082 (gimple_vuse_op, gimple_vdef_op, gimple_vuse, gimple_vdef,
22083 gimple_vuse_ptr, gimple_vdef_ptri, gimple_set_vuse, gimple_set_vdef):
22085 * tree-cfg.c (move_block_to_fn): Fix off-by-one error.
22086 (verify_expr): Allow RESULT_DECL.
22087 (gimple_duplicate_bb): Do not copy virtual operands.
22088 (gimple_duplicate_sese_region): Adjust.
22089 (gimple_duplicate_sese_tail): Likewise.
22090 (mark_virtual_ops_in_region): Remove.
22091 (move_sese_region_to_fn): Do not call it.
22092 * passes.c (init_optimization_passes): Remove pass_reset_cc_flags
22093 and pass_simple_dse.
22094 (execute_function_todo): Handle TODO_update_address_taken,
22095 call execute_update_addresses_taken for TODO_rebuild_alias.
22096 (execute_todo): Adjust.
22097 (execute_one_pass): Init dump files early.
22098 * ipa-struct-reorg.c (finalize_var_creation): Do not mark vars
22100 (create_general_new_stmt): Clear vops.
22101 * tree-ssa-reassoc.c (get_rank): Adjust.
22102 * tree-vect-slp.c (vect_create_mask_and_perm): Do not mark
22103 symbols for renaming.
22104 * params.def (PARAM_MAX_ALIASED_VOPS): Remove.
22105 (PARAM_AVG_ALIASED_VOPS): Likewise.
22106 * tree-ssanames.c (init_ssanames): Allocate SYMS_TO_RENAME.
22107 (duplicate_ssa_name_ptr_info): No need to copy the shared bitmaps.
22108 * tree-ssa-operands.c: Simplify for new virtual operand representation.
22109 (operand_build_cmp, copy_virtual_operands,
22110 create_ssa_artificial_load_stmt, add_to_addressable_set,
22111 gimple_add_to_addresses_taken): Remove public functions.
22112 (unlink_stmt_vdef): New function.
22114 2009-04-03 Alan Modra <amodra@bigpond.net.au>
22116 * config.gcc (powerpc-*-linux*): Merge variants.
22118 2009-04-02 Chao-ying Fu <fu@mips.com>
22119 James Grosbach <james.grosbach@microchip.com>
22121 * config/mips/mips.c (mips_frame_info): Add acc_mask, num_acc,
22122 num_cop0_regs, acc_save_offset, cop0_save_offset, acc_sp_offset,
22124 (machine_function): Add interrupt_handler_p, use_shadow_register_set_p,
22125 keep_interrupts_masked_p, use_debug_exception_return_p.
22126 (mips_attribute_table): Add interrupt, use_shadow_register_set,
22127 keep_interrupts_masked, use_debug_exception_return.
22128 (mips_interrupt_type_p, mips_use_shadow_register_set_p,
22129 mips_keep_interrupts_masked_p, mips_use_debug_exception_return_p):
22131 (mips_function_ok_for_sibcall): Return false for interrupt handlers.
22132 (mips_print_operand): Process COP0 registers to print $0 .. $31
22133 correctly for GAS to process.
22134 (mips_interrupt_extra_call_saved_reg_p): New function.
22135 (mips_cfun_call_saved_reg_p): For interrupt handlers, we need to check
22137 (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
22138 (mips_compute_frame_info): Add supports for interrupt context that
22139 includes doubleword accumulators and COP0 registers.
22140 (mips_for_each_saved_acc): New function.
22141 (mips_for_each_saved_gpr_and_fpr): Change the function name from
22142 mips_for_each_saved_reg.
22143 (mips_save_reg): Save accumulators.
22144 (mips_kernel_reg_p): A new for_each_rtx callback.
22145 (mips_expand_prologue): Support interrupt handlers.
22146 (mips_restore_reg): Restore accumulators.
22147 (mips_expand_epilogue): Support interrupt handlers.
22148 (mips_can_use_return_insn): Return false for interrupt handlers.
22149 (mips_epilogue_uses): New function.
22150 * config/mips/mips.md (UNSPEC_ERET, UNSPEC_DERET, UNSPEC_DI,
22151 UNSPEC_EHB, UNSPEC_RDPGPR, UNSPEC_COP0): New UNSPEC.
22152 (mips_eret, mips_deret, mips_di, mips_ehb, mips_rdpgpr,
22153 cop0_move): New instructions.
22154 * config/mips/mips-protos.h (mips_epilogue_uses): Declare.
22155 * config/mips/mips.h (K0_REG_NUM, K1_REG_NUM, KERNEL_REG_P): New
22157 (COP0_STATUS_REG_NUM, COP0_CAUSE_REG_NUM, COP0_EPC_REG_NUM):
22159 (CAUSE_IPL, SR_IPL, SR_EXL, SR_IE): New defines.
22160 (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): For
22161 interrupt handlers, we use K0 as the temporary register.
22162 (EPILOGUE_USES): Change to a function call.
22163 * config/mips/sde.h (MIPS_EPILOGUE_TEMP_REGNUM): For interrupt
22164 handlers, we use K0 as the temporary register.
22166 * doc/extend.texi (Function Attributes): Document interrupt,
22167 use_shadow_register_set, keep_interrupts_masked,
22168 use_debug_exception_return for MIPS attributes.
22170 2009-04-03 Alan Modra <amodra@bigpond.net.au>
22172 * config.gcc (powerpc64-*-gnu*): Add rs6000/default64.h to tm_file.
22173 Remove a number of t-files from tmake_file.
22174 * config/rs6000/sysv4.opt (mprototype): Name variable target_prototype.
22175 * config/rs6000/sysv4.h (TARGET_PROTOTYPE): Define.
22176 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
22177 target_prototype, not TARGET_PROTOTYPE.
22178 (LINK_OS_GNU_SPEC): Define.
22179 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Delete tramp.S
22180 and darwin-ldoubdle.c.
22182 2009-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
22185 * gcc.c (save_temps_flag): Add support for -save-temps=obj.
22186 (cpp_options): Ditto.
22187 (default_compilers): Ditto.
22188 (display_help): Ditto.
22189 (process_command): Ditto.
22190 (do_spec_1): Ditto.
22191 (set_input): Use lbasename instead of duplicate code.
22192 (save_temps_prefix): New static for -save-temps=obj.
22193 (save_temps_length): Ditto.
22195 * doc/invoke.texi (-save-temps=obj): Document new variant to
22196 -save-temps switch.
22198 2009-04-02 Jeff Law <law@redhat.com>
22200 * reload1.c (fixup_eh_region_notes): Remove write-only "trap_count"
22203 2009-04-02 H.J. Lu <hongjiu.lu@intel.com>
22205 * configure.ac: Support -Bstatic/-Bdynamic for linker version > 2.
22206 * configure: Regenerated.
22208 2009-04-02 Rafael Avila de Espindola <espindola@google.com>
22210 * c-decl.c (merge_decls): Make sure newdecl and olddecl don't
22211 share the argument list.
22213 2009-04-02 Rafael Avila de Espindola <espindola@google.com>
22217 2009-02-12 Diego Novillo <dnovillo@google.com>
22219 * varpool.c (debug_varpool): New.
22220 * cgraph.h (debug_varpool): Declare.
22222 2009-04-02 Jan Hubicka <jh@suse.cz>
22224 * passes.c (init_optimization_passes): Remove two copies of ehcleanup
22227 2009-04-02 H.J. Lu <hongjiu.lu@intel.com>
22229 * config/i386/i386.c (ix86_abi): Move initialization to ...
22230 (override_options): Here.
22232 2009-04-02 Christian Bruel <christian.bruel@st.com>
22234 * config/sh/sh.c (sh_dwarf_register_span): New function.
22235 (TARGET_DWARF_REGISTER_SPAN): Define.
22236 * config/sh/sh-protos.h (sh_dwarf_register_span): Declare.
22238 2009-04-02 Ira Rosen <irar@il.ibm.com>
22240 PR tree-optimization/39595
22241 * tree-vect-slp.c (vect_build_slp_tree): Check that the size of
22242 interleaved loads group is not greater than the SLP group size.
22244 2009-04-02 Rafael Avila de Espindola <espindola@google.com>
22246 * builtins.c (is_builtin_name): New.
22247 (called_as_built_in): Use is_builtin_name.
22248 * tree.h (is_builtin_name): New.
22249 * varasm.c (incorporeal_function_p): Use is_builtin_name
22251 2009-04-02 Andrew Stubbs <ams@codesourcery.com>
22253 * config/sh/linux-unwind.h: Disable when inhibit_libc is defined.
22255 2009-04-02 Dodji Seketeli <dodji@redhat.com>
22258 * c-decl.c (clone_underlying_type): Move this ...
22259 * c-common.c (set_underlying_type): ... here.
22260 Also, make sure the function properly sets TYPE_STUB_DECL() on
22261 the newly created typedef variant type.
22262 * c-common.h (is_typedef_decl, set_underlying_type): Declare ...
22263 * c-common.c (is_typedef_decl, set_underlying_type): ... new entry
22266 2009-04-02 Richard Guenther <rguenther@suse.de>
22268 PR tree-optimization/37221
22269 * tree-flow.h (degenerate_phi_result): Declare.
22270 * tree-ssa-dom.c (degenerate_phi_result): Export.
22271 * tree-scalar-evolution.c (analyze_initial_condition): If
22272 the initial condition is defined by a degenerate PHI node
22273 use the degenerate value.
22275 2009-04-01 Eric Botcazou <ebotcazou@adacore.com>
22277 PR rtl-optimization/39588
22278 * combine.c (merge_outer_ops): Do not set the constant when this
22280 (simplify_shift_const_1): Do not modify it either in this case.
22282 2009-04-01 Steven Bosscher <steven@gcc.gnu.org>
22284 * config/ia64/ia64.c (ia64_handle_option): Inform user that Itanium1
22285 tuning is deprecated if -mtune value is set to an Itanium1 variant.
22287 2009-04-01 Janis Johnson <janis187@us.ibm.com>
22290 * c-lex.c (interpret_float): Default (no suffix) is double.
22292 2009-04-1 Xinliang David Li <davidxl@google.com>
22294 * config/i386/i386.c (legitimate_constant_p): Recognize
22295 all one vector constant.
22297 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
22299 * config/vax/vax.c: Add #includes to silence warnings.
22300 Change #include order to silence two warnings.
22302 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
22304 * config/vax/linux.h (TARGET_DEFAULT): Add the MASK_QMATH flag bit.
22305 (ASM_SPEC): Pass -k to the assembler for PIC code.
22307 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
22309 * config.gcc: Add vax-*-linux* to the switch.
22310 * config/vax/linux.h: New file. (TARGET_VERSION,
22311 TARGET_OS_CPP_BUILTINS, TARGET_DEFAULT, CPP_SPEC, LINK_SPEC): Define.
22313 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
22315 * config/vax/vax.c (vax_output_int_move, adjacent_operands_p):
22316 Use predicate macros instead of GET_CODE() == foo.
22317 * config/vax/vax.md (movsi_2, movstrictqi, and<mode>3, ashrsi3,
22318 ashlsi3, rotrsi3, <unnamed>): Likewise.
22320 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
22322 * config/vax/builtins.md (jbbssiqi, jbbssihi, jbbssisi, jbbcciqi,
22323 jbbccihi, jbbccisi): Remova trailing whitespace.
22324 * config/vax/constraints.md: Likewise.
22325 * config/vax/elf.h: (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
22326 * config/vax/openbsd1.h (OBSD_OLD_GAS): Likewise.
22327 * config/vax/predicates.md: Likewise.
22328 * config/vax/vax.c (print_operand_address, vax_output_int_move,
22329 vax_expand_addsub_di_operands, adjacent_operands_p): Likewise.
22330 * config/vax/vax.h: Likewise.
22331 * config/vax/vax.md (nonlocal_goto): Likewise.
22333 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
22335 * config/vax/vax.c (vax_float_literal, vax_output_int_move)
22336 (indirectable_address_p, adjacent_operands_p): Add spaces around
22338 * config/vax/vax-protos.h (adjacent_operands_p): Likewise.
22340 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
22342 * config/vax/vax.c (legitimate_constant_address_p,
22343 legitimate_constant_p, indirectable_address_p, nonindexed_address_p,
22344 index_term_p, reg_plus_index_p, legitimate_address_p,
22345 vax_mode_dependent_address_p): Update comments to match functions
22346 modified by the recent int->bool conversion.
22348 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
22350 * config/vax/builtins.md: Update copyright message.
22351 * config/vax/constraints.md: Likewise.
22352 * config/vax/netbsd-elf.h: Likewise.
22353 * config/vax/predicates.md: Likewise.
22354 * config/vax/vax-protos.h: Likewise.
22355 * config/vax/vax.c: Likewise.
22356 * config/vax/vax.h: Likewise.
22357 * config/vax/vax.md: Likewise.
22358 * config/vax/vax.opt: Likewise.
22360 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
22362 * config/vax/builtins.md (ffssi2, ffssi2_internal,
22363 sync_lock_test_and_set<mode>, sync_lock_release<mode>): Fix indention.
22364 * config/vax/constraints.md (B, R): Likewise.
22365 * config/vax/predicates.md (external_memory_operand,
22366 nonimmediate_addsub_di_operand): Likewise.
22367 * config/vax/vax.c (vax_output_int_add): Likewise.
22368 * config/vax/vax.md (movsi, movsi_2, mov<mode>, call_value,
22369 untyped_call): Likewise.
22371 2009-04-01 Matt Thomas <matt@3am-software.com>
22373 * config/vax/predicates.md: New file.
22374 (symbolic_operand, local_symbolic_operand, external_symbolic_operand,
22375 external_const_operand, nonsymbolic_operand, external_memory_operand,
22376 indirect_memory_operand, indexed_memory_operand,
22377 illegal_blk_memory_operand, illegal_addsub_di_memory_operand,
22378 nonimmediate_addsub_di_operand, general_addsub_di_operand): New
22380 * config/vax/constraints.md: New file.
22381 (Z0, U06, U08, U16, CN6, S08, S16, I, J, K, L, M, N, O, G, Q, B, R, T):
22383 * config/vax/builtins.md: New file.
22384 (ffssi2, ffssi2_internal, sync_lock_test_and_set<mode>, jbbssiqi,
22385 jbbssihi, jbbssisi, sync_lock_release<mode>, jbbcciqi, jbbccihi,
22387 * config/vax/vax.opt (mqmath): Add option.
22388 * config/vax/vax.md (isfx): Extend with DI.
22389 (VAXintQH, VAXintQHSD): Define.
22390 (tst<mode>, cmp<mode>, *bit<mode>, movmemhi1, truncsiqi2, truncsihi2,
22391 mulsidi3, add<mode>3, sub<mode>, mul<mode>3, div<mode>3, and<mode>,
22392 and<mode>_const_int, ior<mode>3, xor<mode>3, neg<mode>2,
22393 one_cmpl<mode>2, ashlsi3, lshrsi3, rotlsi3): Update constraints.
22394 (movdi): Update constraints and use vax_output_int_move().
22395 (movsi, movsi_2, pushlclsymreg, pushextsymreg, movlclsymreg,
22396 movextsymreg, adddi3, adcdi3, subdi3, sbcdi3, pushextsym, movextsym,
22397 pushlclsym, movlclsym, movaddr<mode>, pushaddr<mode>,
22398 nonlocal_goto): New.
22399 (mov<mode>): Extend accepted operand types.
22400 (subdi3_old): Rename from subdi3, change update constraints and use
22401 a new implementation.
22402 * config/vax/vax.h (PCC_BITFIELD_TYPE_MATTERS): Add space.
22403 (FRAME_POINTER_CFA_OFFSET, IRA_COVER_CLASSES, CLASS_MAX_NREGS,
22404 MOVE_RATIO, CLEAR_RATIO): Define.
22405 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P,
22406 CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
22407 (PRINT_OPERAND): Redefine using a function instead of inlined code.
22408 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
22409 (split_quadword_operands): Make static and really allow variable
22411 (print_operand_address): Update for PIC generation.
22412 (print_operand, vax_builtin_setjmp_frame_value, vax_output_int_subtract,
22413 indexable_address_p, fixup_mathdi_operand,
22414 vax_expand_addsub_di_operands, adjacent_operands_p): New.
22415 (vax_float_literal, legitimate_constant_p,
22416 indirectable_constant_address_p, index_term_p,
22417 reg_plus_index_p): Return bool instead of int.
22418 (vax_rtx_costs): Fix cost for CONST_INT, indent and use HOST_WIDE_INT
22420 (vax_output_int_move, vax_output_int_add): Extend to allow PIC
22422 (vax_output_conditional_branch): Indent.
22423 (legitimate_constant_address_p, indirectable_constant_address_p,
22424 indirectable_address_p, nonindexed_address_p, legitimate_address_p,
22425 vax_mode_dependent_address_p): Return bool instead of int, update for
22427 * config/vax/vax-protos.h (legitimate_constant_address_p,
22428 legitimate_constant_p, legitimate_address_p,
22429 vax_mode_dependent_address_p): Change declaration to bool.
22430 (legitimate_pic_operand_p, adjacent_operands_p, print_operand,
22431 vax_expand_addsub_di_operands, vax_output_int_subtract,
22432 vax_output_movmemsi): Declare.
22433 (split_quadword_operands, vax_float_literal): Delete declaration.
22434 * config/vax/netbsd-elf.h (CC1_SPEC, CC1PLUS_SPEC) Define.
22435 * config/vax/elf.h (NO_EXTERNAL_INDIRECT_ADDRESS,
22436 VAX_CC1_AND_CC1PLUS_SPEC, ASM_PREFERRED_EH_DATA_FORMAT,
22437 ASM_OUTPUT_DWARF_PCREL): Define.
22438 (ASM_SPEC): Change definition to allow PIC generation.
22440 2009-04-01 Steve Ellcey <sje@cup.hp.com>
22442 * doc/sourcebuild.texi: Update front-end requirements.
22444 2009-04-01 Jakub Jelinek <jakub@redhat.com>
22447 * config/rs6000/rs6000.md (andsi3_internal5_nomc,
22448 anddi3_internal2_nomc, anddi3_internal3_nomc): Removed.
22449 (booldi3_internal3): Use boolean_or_operator instead of
22452 2009-04-01 Joseph Myers <joseph@codesourcery.com>
22455 * c-decl.c (grokdeclarator): Pedwarn for file-scope array
22456 declarator whose size is not an integer constant expression but
22457 folds to an integer constant, then treat it as a constant
22460 2009-04-01 Richard Guenther <rguenther@suse.de>
22462 * fold-const.c (fold_plusminus_mult_expr): Do not fold
22463 i * 4 + 2 to (i * 2 + 1) * 2.
22465 2009-04-01 Jakub Jelinek <jakub@redhat.com>
22468 * c-parser.c (c_parser_asm_statement): Skip until close paren and
22469 return if c_parser_asm_string_literal returned NULL.
22471 2009-04-01 Nick Clifton <nickc@redhat.com>
22473 * config/m32c/m32c.h (LIBGCC2_UNITS_PER_WORD): Define if not
22475 * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Add m32c-lib2-trapv.c.
22476 * config/m32c/m32c-lib2.c: Remove unused typedefs. Rename the
22477 other typedefs to avoid conflicts with libgcc2.c. Define labels
22478 to gain 16-bit bit-manipulation functions from libgcc2.c and then
22480 * config/m32c/m32c-lib2-trapv.c: New file. Define labels
22481 to gain 16-bit trapping arithmetic functions from libgcc2.c and
22484 2009-04-01 Rafael Avila de Espindola <espindola@google.com>
22486 * varasm.c (default_function_rodata_section): Declare DOT as
22489 2009-04-01 Kai Tietz <kai.tietz@onevision.com>
22490 Andrey Galkin <agalkin@hypercom.com>
22493 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
22494 Make object_name unique for each process.
22496 2009-04-01 Jakub Jelinek <jakub@redhat.com>
22499 * omp-low.c (remove_exit_barrier): Don't optimize if there are any
22500 addressable variables in the parallel that could go out of scope while
22501 running queued tasks.
22503 2009-04-01 Anatoly Sokolov <aesok@post.ru>
22505 * config/avr/avr.h (avr_case_values_threshold): Remove declaration.
22506 (CASE_VALUES_THRESHOLD): Redefine.
22507 * config/avr/avr.c (avr_override_options): Remove initialization of
22508 avr_case_values_threshold variable.
22509 (avr_case_values_threshold): Remove variable. Add new function.
22510 * config/avr/avr-protos.h (avr_case_values_threshold): Declare.
22511 * config/avr/avr.opt (mno-tablejump): Remove option.
22512 * doc/invoke.texi (AVR Options): Remove -mno-tablejump.
22514 2009-04-01 DJ Delorie <dj@redhat.com>
22516 * varasm.c (default_function_rodata_section): Don't assume
22517 anything about where the first '.' in the section name is.
22519 2009-04-01 Alan Modra <amodra@bigpond.net.au>
22521 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete redundant
22522 rs6000_emit_stack_tie.
22524 2009-03-31 Ian Lance Taylor <iant@google.com>
22526 * tree-eh.c (tree_remove_unreachable_handlers): Compare
22527 gimple_code with GIMPLE_RESX, not RESX.
22529 2009-03-31 Joseph Myers <joseph@codesourcery.com>
22531 * c-common.c (c_get_ident): New.
22532 (c_common_nodes_and_builtins): Call it for type names that may be NULL.
22534 2009-04-01 Ben Elliston <bje@au.ibm.com>
22536 * config/rs6000/sysv4.opt (msdata): Improve option description.
22538 2009-03-31 Steve Ellcey <sje@cup.hp.com>
22540 * config/ia64/ia64.md (divsf3_internal_lat): Remove.
22541 (divdf3_internal_lat): Remove.
22542 (divxf3_internal_lat): Remove.
22543 (divxf3_internal_thr): Remove.
22544 (divxf): Use divxf3_internal.
22545 * config/ia64/div.md (divsf3_internal_lat): New.
22546 (divdf3_internal_lat): New.
22547 (divxf3_internal): New.
22549 2009-03-31 Joseph Myers <joseph@codesourcery.com>
22552 * Makefile.in (USE_GCC_STDINT): Define.
22553 (stmp-int-hdrs): Install stdint.h if applicable.
22554 * c-common.c (CHAR16_TYPE): Define in terms of UINT_LEAST16_TYPE
22556 (CHAR32_TYPE): Define in terms of UINT_LEAST32_TYPE if known.
22557 (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE,
22558 UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
22559 INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
22560 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
22561 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
22562 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
22563 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
22564 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
22565 (c_common_nodes_and_builtins): Initialize
22566 underlying_wchar_type_node. Do not initialize
22567 signed_wchar_type_node or unsigned_wchar_type_node. Initialize
22568 nodes for new types.
22569 (c_stddef_cpp_builtins): Define macros for new types.
22570 * c-common.h (CTI_SIGNED_WCHAR_TYPE, CTI_UNSIGNED_WCHAR_TYPE):
22572 (CTI_UNDERLYING_WCHAR_TYPE, CTI_SIG_ATOMIC_TYPE, CTI_INT8_TYPE,
22573 CTI_INT16_TYPE, CTI_INT32_TYPE, CTI_INT64_TYPE, CTI_UINT8_TYPE,
22574 CTI_UINT16_TYPE, CTI_UINT32_TYPE, CTI_UINT64_TYPE,
22575 CTI_INT_LEAST8_TYPE, CTI_INT_LEAST16_TYPE, CTI_INT_LEAST32_TYPE,
22576 CTI_INT_LEAST64_TYPE, CTI_UINT_LEAST8_TYPE, CTI_UINT_LEAST16_TYPE,
22577 CTI_UINT_LEAST32_TYPE, CTI_UINT_LEAST64_TYPE, CTI_INT_FAST8_TYPE,
22578 CTI_INT_FAST16_TYPE, CTI_INT_FAST32_TYPE, CTI_INT_FAST64_TYPE,
22579 CTI_UINT_FAST8_TYPE, CTI_UINT_FAST16_TYPE, CTI_UINT_FAST32_TYPE,
22580 CTI_UINT_FAST64_TYPE, CTI_INTPTR_TYPE, CTI_UINTPTR_TYPE): Define.
22581 (signed_wchar_type_node, unsigned_wchar_type_node): Remove.
22582 (underlying_wchar_type_node, sig_atomic_type_node, int8_type_node,
22583 int16_type_node, int32_type_node, int64_type_node,
22584 uint8_type_node, uint16_type_node, c_uint32_type_node,
22585 c_uint64_type_node, int_least8_type_node, int_least16_type_node,
22586 int_least32_type_node, int_least64_type_node,
22587 uint_least8_type_node, uint_least16_type_node,
22588 uint_least32_type_node, uint_least64_type_node,
22589 int_fast8_type_node, int_fast16_type_node, int_fast32_type_node,
22590 int_fast64_type_node, uint_fast8_type_node, uint_fast16_type_node,
22591 uint_fast32_type_node, uint_fast64_type_node, intptr_type_node,
22592 uintptr_type_node): Define.
22593 * c-cppbuiltin.c (builtin_define_constants,
22594 builtin_define_type_minmax): New.
22595 (builtin_define_stdint_macros): Define more macros.
22596 (c_cpp_builtins): Define more limit macros.
22597 (type_suffix): New.
22598 (builtin_define_type_max): Define in terms of
22599 builtin_define_type_minmax. Remove is_long parameter. All
22601 * config.gcc (use_gcc_stdint): Define.
22602 (tm_file): Add glibc-stdint.h for targets using glibc or uClibc.
22603 Add newlib-stdint.h for generic targets.
22604 * config/glibc-stdint.h, config/newlib-stdint.h,
22605 ginclude/stdint-gcc.h, ginclude/stdint-wrap.h: New.
22606 * config/m32c/m32c.h (UINTPTR_TYPE): Define.
22607 * config/score/score.h (UINTPTR_TYPE): Define.
22608 * config/sol2.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
22609 INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
22610 UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
22611 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
22612 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
22613 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
22614 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
22615 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
22616 * config/spu/spu.h (STDINT_LONG32): Define.
22617 * configure.ac (use_gcc_stdint): Substitute.
22618 * configure: Regenerate.
22619 * doc/cpp.texi (__SIG_ATOMIC_TYPE__, __INT8_TYPE__,
22620 __INT16_TYPE__, __INT32_TYPE__, __INT64_TYPE__, __UINT8_TYPE__,
22621 __UINT16_TYPE__, __UINT32_TYPE__, __UINT64_TYPE__,
22622 __INT_LEAST8_TYPE__, __INT_LEAST16_TYPE__, __INT_LEAST32_TYPE__,
22623 __INT_LEAST64_TYPE__, __UINT_LEAST8_TYPE__, __UINT_LEAST16_TYPE__,
22624 __UINT_LEAST32_TYPE_, __UINT_LEAST64_TYPE__, __INT_FAST8_TYPE__,
22625 __INT_FAST16_TYPE__, __INT_FAST32_TYPE__, __INT_FAST64_TYPE__,
22626 __UINT_FAST8_TYPE__, __UINT_FAST16_TYPE__, __UINT_FAST32_TYPE__,
22627 __UINT_FAST64_TYPE__, __INTPTR_TYPE__, __UINTPTR_TYPE__,
22628 __WINT_MAX__, __SIZE_MAX__, __PTRDIFF_MAX__, __UINTMAX_MAX__,
22629 __SIG_ATOMIC_MAX__, __INT8_MAX__, __INT16_MAX__, __INT32_MAX__,
22630 __INT64_MAX__, __UINT8_MAX__, __UINT16_MAX__, __UINT32_MAX__,
22631 __UINT64_MAX__, __INT_LEAST8_MAX__, __INT_LEAST16_MAX__,
22632 __INT_LEAST32_MAX__, __INT_LEAST64_MAX__, __UINT_LEAST8_MAX__,
22633 __UINT_LEAST16_MAX__, __UINT_LEAST32_MAX__, __UINT_LEAST64_MAX__,
22634 __INT_FAST8_MAX__, __INT_FAST16_MAX__, __INT_FAST32_MAX__,
22635 __INT_FAST64_MAX__, __UINT_FAST8_MAX__, __UINT_FAST16_MAX__,
22636 __UINT_FAST32_MAX__, __UINT_FAST64_MAX__, __INTPTR_MAX__,
22637 __UINTPTR_MAX__, __WCHAR_MIN__, __WINT_MIN__, __SIG_ATOMIC_MIN__,
22638 __INT8_C, __INT16_C, __INT32_C, __INT64_C, __UINT8_C, __UINT16_C,
22639 __UINT32_C, __UINT64_C, __INTMAX_C, __UINTMAX_C): Document.
22640 * doc/tm.texi (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE,
22641 INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
22642 INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
22643 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
22644 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
22645 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
22646 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
22647 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Document.
22649 2009-03-31 Bernd Schmidt <bernd.schmidt@analog.com>
22651 * loop-iv.c (suitable_set_for_replacement): Renamed from
22652 simplify_using_assignment; changed to return bool and to accept new
22653 args DEST and SRC. Return true iff we find a source/destination pair
22654 that can be used to make a replacement, and fill SRC and DEST if so.
22655 Remove arg ALTERED. Don't deal with altered regs here. All callers
22657 (simplify_using_initial_values): Deal with altered regs here and track
22658 more precisely the effect they have on the validity of our expression.
22660 * loop-iv.c (simplify_using_condition): A condition of the form
22661 (EQ REG CONST) can be used to simply make a substitution.
22662 (simplify_using_initial_values): Keep track of conditions we have seen
22663 and keep using them to simplify new expressions, while applying the
22664 same substitutions to them as to the expression.
22666 * simplify-rtx.c (simplify_relational_operation_1): Simplify
22667 (LTU (PLUS a C) C) or (LTU (PLUS a C) a) to (GEU a -C); likewise with
22670 * loop-iv.c (determine_max_iter): New arg OLD_NITER. All callers
22671 changed. Use this when trying to improve the upper bound.
22672 Generate the comparison by using simplify_gen_relational.
22674 * loop-iv.c (simple_rhs_p): Allow more kinds of expressions.
22676 * loop-iv.c (replace_single_def_regs, replace_in_expr): New static
22678 (simplify_using_assignment, simplify_using_initial_values): Call
22679 replace_in_expr to make replacements. Call replace_single_def_regs
22680 once on the initial version of the expression.
22682 2009-03-31 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22685 * doc/invoke.texi (ARM Options): Update documentation for -mthumb.
22687 2009-03-31 Richard Guenther <rguenther@suse.de>
22689 PR middle-end/31029
22690 * fold-const.c (fold_binary): Fold X +- Y CMP X to Y CMP 0 for
22691 equality comparisons. Fold C - X CMP X if C % 2 == 1.
22693 2009-03-31 Richard Guenther <rguenther@suse.de>
22695 * tree.h (div_if_zero_remainder): Declare.
22696 * fold-const.c (div_if_zero_remainder): Export.
22697 * tree-ssa-forwprop.c
22698 (forward_propagate_addr_into_variable_array_index): Handle
22699 constant array index addition outside of the variable index.
22701 2009-03-31 Joseph Myers <joseph@codesourcery.com>
22704 * config/i386/i386.md (*floatunssi<mode>2_1, two unnamed
22705 define_splits, floatunssi<mode>2): Require x87 conversions from
22706 DImode to be permitted.
22708 2009-03-31 Joseph Myers <joseph@codesourcery.com>
22710 PR preprocessor/15638
22711 * c-common.c (c_cpp_error): Handle CPP_DL_FATAL.
22713 2009-03-31 Richard Guenther <rguenther@suse.de>
22715 PR middle-end/23401
22716 PR middle-end/27810
22717 * tree.h (DECL_GIMPLE_FORMAL_TEMP_P): Remove.
22718 (struct tree_decl_with_vis): Remove gimple_formal_temp member.
22719 * tree-eh.c (lower_eh_constructs_2): Move LHS assignment to
22720 a separate statement.
22721 * gimplify.c (pop_gimplify_context): Remove formal temp handling.
22722 (lookup_tmp_var): Likewise.
22723 (is_gimple_formal_tmp_or_call_rhs): Remove.
22724 (is_gimple_reg_or_call_rhs): Rename to ...
22725 (is_gimple_reg_rhs_or_call): ... this.
22726 (is_gimple_mem_or_call_rhs): Rename to ...
22727 (is_gimple_mem_rhs_or_call): ... this.
22728 (internal_get_tmp_var): Use is_gimple_reg_rhs_or_call. Set
22729 DECL_GIMPLE_REG_P only if is_formal is true.
22730 (gimplify_compound_lval): Use is_gimple_reg. Remove workaround
22731 for non-proper post-modify expression gimplification.
22732 (gimplify_self_mod_expr): For post-modify expressions gimplify
22733 the lvalue to a minimal lvalue.
22734 (rhs_predicate_for): Remove formal temp case.
22735 (gimplify_modify_expr_rhs): Likewise.
22736 (gimplify_addr_expr): Use is_gimple_reg.
22737 (gimplify_expr): Remove formal temp cases.
22738 (gimple_regimplify_operands): Likewise.
22739 * tree-ssa-pre.c (get_or_alloc_expr_for): Treat EXC_PTR_EXPR
22740 and FILTER_EXPR like constants.
22741 * gimple.c (walk_gimple_op): Fix val_only initialization, use
22743 (is_gimple_formal_tmp_rhs): Remove.
22744 (is_gimple_reg_rhs): Remove special casing.
22745 (is_gimple_mem_rhs): Fix.
22746 (is_gimple_reg): Move DECL_GIMPLE_REG_P handling earlier.
22747 (is_gimple_formal_tmp_var): Remove.
22748 (is_gimple_formal_tmp_reg): Likewise.
22749 (is_gimple_min_lval): Allow invariant component ref parts.
22750 * gimple.h (is_gimple_formal_tmp_rhs, is_gimple_formal_tmp_var,
22751 is_gimple_formal_tmp_reg): Remove declarations.
22752 * tree-cfg.c (verify_expr): Verify that variables with address
22753 taken do not have DECL_GIMPLE_REG_P set.
22754 * tree-mudflap.c (mf_build_check_statement_for): Use
22755 force_gimple_operand instead of gimplify_expr.
22757 2009-03-31 Ayal Zaks <zaks@il.ibm.com>
22759 * modulo-sched.c (sms_schedule_by_order): Pass the actual
22760 schedulable rows to compute_split_row.
22762 2009-03-31 Ben Elliston <bje@au.ibm.com>
22765 * config/rs6000/rs6000.c (rs6000_handle_option): Handle
22768 2009-03-31 Alan Modra <amodra@bigpond.net.au>
22770 * doc/invoke.texi (RS/6000 and PowerPC Options):Document mtls-markers.
22771 * configure.ac (HAVE_AS_TLS_MARKERS): New gas feature check.
22772 * configure: Regenerate.
22773 * config.in: Regenerate.
22774 * config/rs6000/rs6000.opt (mtls-markers): Add.
22775 * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Define.
22776 * config/rs6000/rs6000.md (tls_gd_aix, tls_gd_sysv): Add splitter.
22777 (tls_ld_aix, tls_ld_sysv): Likewise.
22778 (tls_gd, tls_gd_call_aix, tls_gd_call_sysv): New insns.
22779 (tls_ld, tls_ld_call_aix, tls_ld_call_sysv): Likewise.
22781 2009-03-31 Alan Modra <amodra@bigpond.net.au>
22783 * config/spu/spu.c (spu_expand_prologue): Delete redundant code.
22785 2009-03-30 Jan Hubicka <jh@suse.cz>
22787 * tree-eh.c (make_eh_edges): Set probability 100% to first edge
22789 (tree_remove_unreachable_handlers): Cleanup EH predecestor
22790 detection and label handling.
22792 2009-03-30 Vladimir Makarov <vmakarov@redhat.com>
22794 * ira-int.h (ira_allocno): Rename left_conflicts_num to
22795 left_conflicts_size.
22796 (ALLOCNO_LEFT_CONFLICTS_NUM): Rename to
22797 ALLOCNO_LEFT_CONFLICTS_SIZE.
22799 * ira-color.c (allocno_spill_priority, push_allocno_to_stack,
22800 remove_allocno_from_bucket_and_push,
22801 allocno_spill_priority_compare, push_allocnos_to_stack,
22802 setup_allocno_available_regs_num): Use ALLOCNO_LEFT_CONFLICTS_SIZE
22803 instead of ALLOCNO_LEFT_CONFLICTS_NUM.
22804 (setup_allocno_left_conflicts_num): Ditto. Rename to
22805 setup_allocno_left_conflicts_size.
22806 (put_allocno_into_bucket): Use ALLOCNO_LEFT_CONFLICTS_SIZE
22807 instead of ALLOCNO_LEFT_CONFLICTS_NUM and
22808 setup_allocno_left_conflicts_size instead of
22809 setup_allocno_left_conflicts_num.
22811 * ira-build.c (ira_create_allocno): Use
22812 ALLOCNO_LEFT_CONFLICTS_SIZE instead of
22813 ALLOCNO_LEFT_CONFLICTS_NUM.
22815 2009-03-30 Vladimir Makarov <vmakarov@redhat.com>
22817 * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
22818 instead of DF_LR_OUT.
22820 * ira-lives.c (process_bb_node_lives): Ditto.
22822 * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
22823 instead of DF_LR_{OUT,IN}.
22825 * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
22827 * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
22829 2009-03-30 Jan Hubicka <jh@suse.cz>
22831 * except.c (label_to_region_map): Fix thinko.
22833 2009-03-30 Steve Ellcey <sje@cup.hp.com>
22835 PR middle-end/38237
22836 * tree.h (tree_find_value): New declaration.
22837 * tree.c (tree_find_value): New function.
22838 * varasm.c (assemble_external): Avoid duplicate entries on lists.
22840 2009-03-30 Jakub Jelinek <jakub@redhat.com>
22843 * c-decl.c (struct c_binding): Add locus field.
22844 (bind): Add locus argument, set locus field from it.
22845 (pop_scope): For b->nested VAR_DECL or FUNCTION_DECL,
22846 add a DECL_EXTERNAL copy of b->decl to current BLOCK_VARS.
22847 (push_file_scope, pushtag, pushdecl, pushdecl_top_level,
22848 implicitly_declare, undeclared_variable, lookup_label,
22849 declare_label, c_make_fname_decl, c_builtin_function,
22850 c_builtin_function_ext_scope, store_parm_decls_newstyle): Adjust
22853 2009-03-30 H.J. Lu <hongjiu.lu@intel.com>
22856 * config/i386/i386.c (classify_argument): Check total size of
22859 2009-03-30 Martin Jambor <mjambor@suse.cz>
22861 * ipa-prop.h (jump_func_type): Rename IPA_UNKNOWN, IPA_CONST,
22862 IPA_CONST_MEMBER_PTR, and IPA_PASS_THROUGH to IPA_JF_UNKNOWN,
22863 IPA_JF_CONST, IPA_JF_CONST_MEMBER_PTR, and IPA_JF_PASS_THROUGH
22866 * tree-dfa.c (get_ref_base_and_extent): Return -1 maxsize if
22867 seen_variable_array_ref while also traversing a union.
22869 * tree-inline.c (optimize_inline_calls): Do not call
22870 cgraph_node_remove_callees.
22871 * cgraphbuild.c (remove_cgraph_callee_edges): New function.
22872 (pass_remove_cgraph_callee_edges): New variable.
22873 * passes.c (init_optimization_passes): Add
22874 pass_remove_cgraph_callee_edges after early inlining and before all
22875 late intraprocedural passes.
22877 * omp-low.c (expand_omp_taskreg): Always set current_function_decl.
22879 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
22881 * config/sparc/sparc.md (*nand<V64mode>_vis, *nand<V32mode>_vis):
22882 Fix typos in names.
22884 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
22886 * combine.c (simplify_comparison): Use have_insn_for.
22887 * dojump.c (do_jump): Likewise.
22889 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
22891 * config/sparc/sparc.c (sparc_compare_emitted): Remove.
22892 (gen_compare_reg, emit_v9_brxx_insn): Handle MODE_CC
22893 sparc_compare_op0 like sparc_compare_emitted used to be handled.
22894 (sparc_expand_compare_and_swap_12): Set sparc_compare_op0
22895 instead of sparc_compare_emitted.
22896 * config/sparc/sparc.h (sparc_compare_emitted): Remove.
22897 * config/sparc/sparc.md (stack_protect_test): Set sparc_compare_op0
22898 instead of sparc_compare_emitted.
22900 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
22902 * bb-reorder.c (partition_hot_cold_basic_blocks): Do not
22903 enter/exit cfglayout mode.
22904 (pass_partition_block): Require it.
22905 * combine.c (find_single_use, reg_dead_at_p): Use CFG.
22906 (combine_instructions): Track basic blocks instead of labels.
22907 (update_cfg_for_uncondjump): New.
22908 (try_combine): Use it. Update jumps after rescanning.
22909 (pass_combine): Require PROP_cfglayout.
22910 * passes.c (pass_outof_cfg_layout_mode): Move after regmove.
22912 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
22914 * cfglayout.c (pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode):
22915 Provide/destroy PROP_cfglayout respectively.
22916 * gcse.c (pass_jump_bypass, pass_gcse): Require it.
22917 * tree-pass.h (PROP_cfglayout): New.
22919 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
22921 * fold-const.c (const_binop, fold_convert_const_real_from_fixed,
22922 fold_convert_const_fixed_from_fixed,
22923 fold_convert_const_fixed_from_int,
22924 fold_convert_const_fixed_from_real, fold_negate_const): Do not
22925 set TREE_CONSTANT_OVERFLOW.
22926 * tree.def: Remove mention of TREE_CONSTANT_OVERFLOW.
22927 * tree.h (TREE_CONSTANT_OVERFLOW): Delete.
22929 2009-03-30 Ira Rosen <irar@il.ibm.com>
22931 * tree-vect-loop-manip.c: New file.
22932 * tree-vectorizer.c: Update documentation and included files.
22933 (vect_loop_location): Make extern.
22934 (rename_use_op): Move to tree-vect-loop-manip.c
22935 (rename_variables_in_bb, rename_variables_in_loop,
22936 slpeel_update_phis_for_duplicate_loop,
22937 slpeel_update_phi_nodes_for_guard1,
22938 slpeel_update_phi_nodes_for_guard2, slpeel_make_loop_iterate_ntimes,
22939 slpeel_tree_duplicate_loop_to_edge_cfg, slpeel_add_loop_guard,
22940 slpeel_can_duplicate_loop_p, slpeel_verify_cfg_after_peeling,
22941 set_prologue_iterations, slpeel_tree_peel_loop_to_edge,
22942 find_loop_location): Likewise.
22943 (new_stmt_vec_info): Move to tree-vect-stmts.c.
22944 (init_stmt_vec_info_vec, free_stmt_vec_info_vec, free_stmt_vec_info,
22945 get_vectype_for_scalar_type, vect_is_simple_use,
22946 supportable_widening_operation, supportable_narrowing_operation):
22948 (bb_in_loop_p): Move to tree-vect-loop.c.
22949 (new_loop_vec_info, destroy_loop_vec_info,
22950 reduction_code_for_scalar_code, report_vect_op,
22951 vect_is_simple_reduction, vect_is_simple_iv_evolution): Likewise.
22952 (vect_can_force_dr_alignment_p): Move to tree-vect-data-refs.c.
22953 (vect_supportable_dr_alignment): Likewise.
22954 * tree-vectorizer.h (tree-data-ref.h): Include.
22955 (vect_loop_location): Declare.
22956 Reorganize function declarations according to the new file structure.
22957 * tree-vect-loop.c: New file.
22958 * tree-vect-analyze.c: Remove. Move functions to tree-vect-data-refs.c,
22959 tree-vect-stmts.c, tree-vect-slp.c, tree-vect-loop.c.
22960 * tree-vect-data-refs.c: New file.
22961 * tree-vect-patterns.c (timevar.h): Don't include.
22962 * tree-vect-stmts.c: New file.
22963 * tree-vect-transform.c: Remove. Move functions to tree-vect-stmts.c,
22964 tree-vect-slp.c, tree-vect-loop.c.
22965 * Makefile.in (OBJS-common): Remove tree-vect-analyze.o and
22966 tree-vect-transform.o. Add tree-vect-data-refs.o, tree-vect-stmts.o,
22967 tree-vect-loop.o, tree-vect-loop-manip.o, tree-vect-slp.o.
22968 (tree-vect-analyze.o): Remove.
22969 (tree-vect-transform.o): Likewise.
22970 (tree-vect-data-refs.o): Add rule.
22971 (tree-vect-stmts.o, tree-vect-loop.o, tree-vect-loop-manip.o,
22972 tree-vect-slp.o): Likewise.
22973 (tree-vect-patterns.o): Remove redundant dependencies.
22974 (tree-vectorizer.o): Likewise.
22975 * tree-vect-slp.c: New file.
22977 2009-03-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22979 * optc-gen.awk: Warn if an option flag has multiple different
22982 2009-03-30 Sebastian Pop <sebastian.pop@amd.com>
22984 * doc/invoke.texi (-floop-interchange, -floop-strip-mine,
22985 -floop-block): Document dependences on PPL, CLooG and Graphite.
22987 2009-03-30 Joseph Myers <joseph@codesourcery.com>
22989 PR rtl-optimization/323
22990 * c-common.c (c_fully_fold, convert_and_check,
22991 c_common_truthvalue_conversion): Handle EXCESS_PRECISION_EXPR.
22992 (c_fully_fold_internal): Disallow EXCESS_PRECISION_EXPR.
22993 * c-common.def (EXCESS_PRECISION_EXPR): New.
22994 * c-cppbuiltin.c (builtin_define_float_constants): Define
22995 constants with enough digits for long double.
22996 * c-lex.c (interpret_float): Interpret constant with excess
22997 precision where appropriate.
22998 * c-opts.c (c_common_post_options): Set
22999 flag_excess_precision_cmdline. Give an error for
23000 -fexcess-precision=standard for C++ for processors where the
23001 option is significant.
23002 * c-parser.c (c_parser_conditional_expression): Handle excess
23003 precision in condition.
23004 * c-typeck.c (convert_arguments): Handle arguments with excess
23006 (build_unary_op): Move excess precision outside operation.
23007 (build_conditional_expr): Likewise.
23008 (build_compound_expr): Likewise.
23009 (build_c_cast): Do cast on operand of EXCESS_PRECISION_EXPR.
23010 (build_modify_expr): Handle excess precision in RHS.
23011 (convert_for_assignment): Handle excess precision in converted
23013 (digest_init, output_init_element, process_init_element): Handle
23014 excess precision in initializer.
23015 (c_finish_return): Handle excess precision in return value.
23016 (build_binary_op): Handle excess precision in operands and add
23017 excess precision as needed for operation.
23018 * common.opt (-fexcess-precision=): New option.
23019 * config/i386/i386.h (X87_ENABLE_ARITH, X87_ENABLE_FLOAT): New.
23020 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
23021 For standard excess precision, output explicit conversion to and
23022 truncation from XFmode.
23023 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1,
23024 *float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp,
23025 *float<SSEMODEI24:mode><X87MODEF:mode>2_i387, two unnamed
23026 define_splits, floatdi<X87MODEF:mode>2_i387_with_xmm, two unnamed
23027 define_splits, *floatunssi<mode>2_1, two unnamed define_splits,
23028 floatunssi<mode>2, add<mode>3, sub<mode>3, mul<mode>3, divdf3,
23029 divsf3, *fop_<mode>_comm_i387, *fop_<mode>_1_i387,
23030 *fop_<MODEF:mode>_2_i387, *fop_<MODEF:mode>_3_i387,
23031 *fop_df_4_i387, *fop_df_5_i387, *fop_df_6_i387, two unnamed
23032 define_splits, sqrt<mode>2): Disable where appropriate for
23033 standard excess precision.
23034 * convert.c (convert_to_real): Do not shorten arithmetic to type
23035 for which excess precision would be used.
23036 * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Define.
23037 * doc/invoke.texi (-fexcess-precision=): Document option.
23038 (-mfpmath=): Correct index entry.
23039 * flags.h (enum excess_precision, flag_excess_precision_cmdline,
23040 flag_excess_precision): New.
23041 * langhooks.c (lhd_post_options): Set
23042 flag_excess_precision_cmdline.
23043 * opts.c (common_handle_option): Handle -fexcess-precision=.
23044 * toplev.c (flag_excess_precision_cmdline, flag_excess_precision,
23045 init_excess_precision): New.
23046 (lang_dependent_init_target): Call init_excess_precision.
23047 * tree.c (excess_precision_type): New.
23048 * tree.h (excess_precision_type): Declare.
23050 2009-03-30 Joseph Myers <joseph@codesourcery.com>
23053 * c-typeck.c (build_component_ref): Do not copy qualifiers from
23054 non-lvalue to component.
23056 2009-03-29 Joseph Myers <joseph@codesourcery.com>
23058 PR preprocessor/34695
23059 * Makefile.in (c-opts.o): Depend on c-tree.h.
23060 * c-common.c: Move down include of diagnostic.h.
23061 (done_lexing, c_cpp_error): New.
23062 * c-common.h (done_lexing): Declare.
23063 * c-decl.c (c_write_global_declarations): Don't check cpp_errors
23065 * c-opts.c: Include c-tree.h.
23066 (c_common_init_options): Set preprocessor error callback.
23067 (c_common_handle_option): Do not set preprocessor
23068 inhibit_warnings, warnings_are_errors, warn_system_headers,
23069 pedantic_errors or inhibit_warnings flags.
23070 (c_common_post_options): Do not check cpp_errors (parse_in).
23071 (c_common_finish): Do not output dependencies if there were
23072 errors. Do not check return value of cpp_finish.
23073 * c-ppoutput.c (pp_file_change): Set input_location.
23074 * c-tree.h (c_cpp_error): Declare.
23075 * diagnostic.c (diagnostic_set_info_translated): Also initialize
23077 (diagnostic_build_prefix): Check override_column.
23078 * diagnostic.h (diagnostic_info): Add override_column field.
23079 (diagnostic_override_column): Define.
23081 2009-03-28 Paolo Bonzini <bonzini@gnu.org>
23083 * c-common.c (c_expand_expr, c_staticp): Remove.
23084 * c-common.def (COMPOUND_LITERAL_EXPR): Delete.
23085 * c-common.h (emit_local_var, c_staticp, COMPOUND_LITERAL_EXPR_DECL,
23086 COMPOUND_LITERAL_EXPR_DECL_EXPR): Remove.
23087 * c-gimplify.c (gimplify_compound_literal_expr,
23088 optimize_compound_literals_in_ctor): Remove.
23089 (c_gimplify_expr): Remove COMPOUND_LITERAL_EXPR handling.
23090 * c-objc-common.h (LANG_HOOKS_STATICP): Remove.
23091 * c-semantics.c (emit_local_var): Remove.
23093 * langhooks-def.h (lhd_expand_expr): Remove.
23094 * langhooks.c (lhd_expand_expr): Remove.
23095 * langhooks.h (LANG_HOOKS_DEF): Remove LANG_HOOKS_EXPAND_EXPR.
23097 * expr.c (expand_expr_real_1): Move COMPOUND_LITERAL_EXPR
23098 handling from c-semantics.c; don't call into langhook.
23099 (expand_expr_addr_expr_1): Check that we don't get non-GENERIC trees.
23100 * gimplify.c (gimplify_compound_literal_expr,
23101 optimize_compound_literals_in_ctor): Move from c-gimplify.c.
23102 (gimplify_init_constructor): Call optimize_compound_literals_in_ctor.
23103 (gimplify_modify_expr_rhs, gimplify_expr): Handle COMPOUND_LITERAL_EXPR
23104 as was done in c-gimplify.c.
23105 * tree.c (staticp): Move COMPOUND_LITERAL_EXPR handling from c_staticp.
23106 * tree.h (COMPOUND_LITERAL_EXPR_DECL, COMPOUND_LITERAL_EXPR_DECL_EXPR):
23107 Move from c-common.h.
23108 * tree.def (COMPOUND_LITERAL_EXPR): Move from c-common.def.
23110 * tree.c (staticp): Do not call langhook.
23111 * langhooks.c (lhd_staticp): Delete.
23112 * langhooks-def.h (lhd_staticp): Delete prototype.
23113 (LANG_HOOKS_STATICP): Delete.
23114 (LANG_HOOKS_INITIALIZER): Delete LANG_HOOKS_STATICP.
23116 * doc/c-tree.texi (Expression nodes): Refer to DECL_EXPRs
23117 instead of DECL_STMTs.
23119 2009-03-29 Joseph Myers <joseph@codesourcery.com>
23127 * builtins.c (fold_builtin_sincos): Build COMPOUND_EXPR in
23129 (fold_call_expr): Return a NOP_EXPR from folding rather than the
23130 contained expression.
23131 * c-common.c (c_fully_fold, c_fully_fold_internal, c_save_expr): New.
23132 (c_common_truthvalue_conversion): Use c_save_expr. Do not fold
23133 conditional expressions for C.
23134 (decl_constant_value_for_optimization): Move from
23135 decl_constant_value_for_broken_optimization in c-typeck.c. Check
23136 whether optimizing and that the expression is a VAR_DECL not of
23137 array type instead of doing such checks in the caller. Do not
23138 check pedantic. Call gcc_unreachable for C++.
23139 * c-common.def (C_MAYBE_CONST_EXPR): New.
23140 * c-common.h (c_fully_fold, c_save_expr,
23141 decl_constant_value_for_optimization): New prototypes.
23142 (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
23143 C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
23144 EXPR_INT_CONST_OPERANDS): Define.
23145 * c-convert.c (convert): Strip nops from expression.
23146 * c-decl.c (groktypename): Take extra parameters expr and
23147 expr_const_operands. Update call to grokdeclarator.
23148 (start_decl): Update call to grokdeclarator. Add statement for
23149 expressions used in type of decl.
23150 (grokparm): Update call to grokdeclarator.
23151 (push_parm_decl): Update call to grokdeclarator.
23152 (build_compound_literal): Add parameter non_const and build a
23153 C_MAYBE_COSNT_EXPR if applicable.
23154 (grokdeclarator): Take extra parameters expr and
23155 expr_const_operands. Track expressions used in declaration
23156 specifiers and declarators. Fold array sizes and track whether
23157 they are constant expressions and whether they are integer
23158 constant expressions.
23159 (parser_xref_tag): Set expr and expr_const_operands fields in
23161 (grokfield): Update call to grokdeclarator.
23162 (start_function): Update call to grokdeclarator.
23163 (build_null_declspecs): Set expr and expr_const_operands fields in
23165 (declspecs_add_type): Handle expressions in typeof specifiers.
23166 * c-parser.c (c_parser_declspecs): Set expr and
23167 expr_const_operands fields for declaration specifiers.
23168 (c_parser_enum_specifier): Likewise.
23169 (c_parser_struct_or_union_specifier): Likewise.
23170 (c_parser_typeof_specifier): Likewise. Update call to
23171 groktypename. Fold expression as needed. Return expressions with
23172 type instead of adding statements.
23173 (c_parser_attributes): Update calls to c_parser_expr_list.
23174 (c_parser_statement_after_labels): Fold expression before passing
23175 to objc_build_throw_stmt.
23176 (c_parser_condition): Fold expression.
23177 (c_parser_asm_operands): Fold expression.
23178 (c_parser_conditional_expression): Use c_save_expr. Update call
23179 to build_conditional_expr.
23180 (c_parser_alignof_expression): Update call to groktypename.
23181 (c_parser_postfix_expression): Preserve C_MAYBE_CONST_EXPR as
23182 original_code. Fold expression argument of va_arg. Create
23183 C_MAYBE_CONST_EXPR to preserve side effects of expressions in type
23184 argument to va_arg. Update calls to groktypename. Fold array
23185 index for offsetof. Verify that first argument to
23186 __builtin_choose_expr has integer type.
23187 (c_parser_postfix_expression_after_paren_type): Update calls to
23188 groktypename and build_compound_literal. Handle expressions with
23189 side effects in type name.
23190 (c_parser_postfix_expression_after_primary): Update call to
23191 c_parser_expr_list. Set original_code for calls to
23192 __builtin_constant_p.
23193 (c_parser_expr_list): Take extra parameter fold_p. Fold
23194 expressions if requested.
23195 (c_parser_objc_type_name): Update call to groktypename.
23196 (c_parser_objc_synchronized_statement): Fold expression.
23197 (c_parser_objc_receiver): Fold expression.
23198 (c_parser_objc_keywordexpr): Update call to c_parser_expr_list.
23199 (c_parser_omp_clause_num_threads, c_parser_omp_clause_schedule,
23200 c_parser_omp_atomic, c_parser_omp_for_loop): Fold expressions.
23201 * c-tree.h (CONSTRUCTOR_NON_CONST): Define.
23202 (struct c_typespec): Add elements expr and expr_const_operands.
23203 (struct c_declspecs): Add elements expr and expr_const_operands.
23204 (groktypename, build_conditional_expr, build_compound_literal):
23206 (in_late_binary_op): Declare.
23207 * c-typeck.c (note_integer_operands): New function.
23208 (in_late_binary_op): New variable.
23209 (decl_constant_value_for_broken_optimization): Move to c-common.c
23210 and rename to decl_constant_value_for_optimization.
23211 (default_function_array_conversion): Do not strip nops.
23212 (default_conversion): Do not call
23213 decl_constant_value_for_broken_optimization.
23214 (build_array_ref): Do not fold result.
23215 (c_expr_sizeof_expr): Fold operand. Use C_MAYBE_CONST_EXPR for
23216 result when operand is a VLA.
23217 (c_expr_sizeof_type): Update call to groktypename. Handle
23218 expressions included in type name. Use C_MAYBE_CONST_EXPR for
23219 result when operand names a VLA type.
23220 (build_function_call): Update call to build_compound_literal.
23221 Only fold result for calls to __builtin_* functions. Strip
23222 NOP_EXPR from INTEGER_CST returned from such functions. Fold
23223 the function designator.
23224 (convert_arguments): Fold arguments. Update call to
23225 convert_for_assignment.
23226 (build_unary_op): Handle increment and decrement of
23227 C_MAYBE_CONST_EXPR. Move lvalue checks for increment and
23228 decrement earlier. Fold operand of increment and decrement.
23229 Handle address of C_MAYBE_CONST_EXPR. Only fold expression being
23230 built for integer operand. Wrap returns that are INTEGER_CSTs
23231 without being integer constant expressions or that have integer
23232 constant operands without being INTEGER_CSTs.
23233 (lvalue_p): Handle C_MAYBE_CONST_EXPR.
23234 (build_conditional_expr): Add operand ifexp_bcp. Track whether
23235 result is an integer constant expression or can be used in
23236 unevaluated parts of one and avoid folding and wrap as
23237 appropriate. Fold operands before possibly doing -Wsign-compare
23239 (build_compound_expr): Wrap result for C99 if operands can be used
23240 in integer constant expressions.
23241 (build_c_cast): Update call to digest_init. Do not ignore
23242 overflow from casting floating-point constants to integers. Wrap
23243 results that could be confused with integer constant expressions,
23244 null pointer constants or floating-point constants.
23245 (c_cast_expr): Update call to groktypename. Handle expressions
23246 included in type name.
23247 (build_modify_expr): Handle modifying a C_MAYBE_CONST_EXPR. Fold
23248 lhs inside possible SAVE_EXPR. Fold RHS before assignment.
23249 Update calls to convert_for_assignment.
23250 (convert_for_assignment): Take new parameter
23251 null_pointer_constant. Do not strip nops or call
23252 decl_constant_value_for_broken_optimization. Set
23253 in_late_binary_op for conversions to boolean.
23254 (store_init_value): Update call to digest_init.
23255 (digest_init): Take new parameter null_pointer_constant. Do not
23256 call decl_constant_value_for_broken_optimization. pedwarn for
23257 initializers not constant expressions. Update calls to
23258 convert_for_assignment.
23259 (constructor_nonconst): New.
23260 (struct constructor_stack): Add nonconst element.
23261 (really_start_incremental_init, push_init_level, pop_init_level):
23262 Handle constructor_nonconst and nonconst element.
23263 (set_init_index): Call constant_expression_warning for array
23265 (output_init_element): Fold value. Set constructor_nonconst as
23266 applicable. pedwarn for initializers not constant expressions.
23267 Update call to digest_init. Call constant_expression_warning
23268 where constant initializers are required.
23269 (process_init_element): Use c_save_expr.
23270 (c_finish_goto_ptr): Fold expression.
23271 (c_finish_return): Fold return value. Update call to
23272 convert_for_assignment.
23273 (c_start_case): Fold switch expression.
23274 (c_process_expr_stmt): Fold expression.
23275 (c_finish_stmt_expr): Create C_MAYBE_CONST_EXPR as needed to
23276 ensure statement expression is not evaluated in constant expression.
23277 (build_binary_op): Track whether results are integer constant
23278 expressions or may occur in such, disable folding and wrap results
23279 as applicable. Fold operands for -Wsign-compare warnings unless
23281 (c_objc_common_truthvalue_conversion): Handle results folded to
23282 integer constants that are not integer constant expressions.
23283 * doc/extend.texi: Document when typeof operands are evaluated,
23284 that condition of __builtin_choose_expr is an integer constant
23285 expression, and more about use of __builtin_constant_p in
23288 2009-03-29 Richard Guenther <rguenther@suse.de>
23290 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
23291 propagate addresses of array references.
23293 2009-03-29 Steven Bosscher <steven@gcc.gnu.org>
23295 * regmove.c (perhaps_ends_bb_p): Remove.
23296 (optimize_reg_copy_1): Don't call perhaps_ends_bb_p. Get basic block
23297 from INSN and check that the main loop stays within that basic block.
23298 (optimize_reg_copy_1, optimize_reg_copy_3, fixup_match_2): Likewise.
23299 (regmove_forward_pass): Split out from regmove_optimize. Use
23300 FOR_EACH_BB and FOR_BB_INSNS instead of traversing the insns stream.
23301 (regmove_backward_pass): Split out from regmove_optimize. Use
23302 FOR_EACH_BB_REVERSE and FOR_BB_INSNS_REVERS_SAFE.
23303 (regmove_optimize): Simplify.
23305 2009-03-29 H.J. Lu <hongjiu.lu@intel.com>
23308 * config/i386/i386.c (classify_argument): Ignore flexible array
23309 member in struct and warn ABI change.
23311 2009-03-29 H.J. Lu <hongjiu.lu@intel.com>
23313 * config/i386/i386-protos.h (ix86_agi_dependent): New.
23315 * config/i386/i386.c (ix86_agi_dependent): Rewrite.
23316 (ix86_adjust_cost): Updated.
23318 2009-03-29 Jan Hubicka <jh@suse.cz>
23320 PR middle-end/28850
23321 * tree-pass.h (pass_cleanup_eh): New function.
23322 (remove_unreachable_regions): Break code handling RTL
23323 to rtl_remove_unreachable_regions; remove ERT_MUST_NOT_THROW
23324 that can not be reached by runtime.
23325 (can_be_reached_by_runtime): New function.
23326 (label_to_region_map): New function.
23327 (num_eh_regions): New function.
23328 (rtl_remove_unreachable_regions): New function.
23329 (convert_from_eh_region_ranges): Call rtl_remove_unreachable_regions.
23330 (remove_eh_region): New function.
23331 * except.h: Include sbitmap and vecprim.
23332 (remove_eh_region, remove_unreachable_regions, label_to_region_map,
23333 num_eh_regions): Declare.
23334 * passes.c (init_optimization_passes): Schedule cleanup_eh.
23335 * Makefile.in (EXCEPT_H): New; replace all uses of except.h by it.
23336 * tree-eh.c (tree_remove_unreachable_handlers): New function.
23337 (tree_empty_eh_handler_p): New function.
23338 (cleanup_empty_eh): New function.
23339 (cleanup_eh): New function.
23340 (pass_cleanup_eh): New function.
23342 2009-03-29 Jan Hubicka <jh@suse.cz>
23344 * except.c (verify_eh_tree): Fix handling of fun!=cfun; be ready
23345 for removed regions.
23347 2009-03-29 Jan Hubicka <jh@suse.cz>
23349 * except.c (dump_eh_tree): Dump all datastructures.
23351 2009-03-29 Jan Hubicka <jh@suse.cz>
23353 * except.c (duplicate_eh_regions_0): Handle AKA bitmap.
23354 (duplicate_eh_regions_1): Likewise.
23355 (duplicate_eh_regions): Likewise; cleanup code gorwing the region
23356 vector; call EH verification.
23357 (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
23358 Be ready for region being removed.
23360 2009-03-29 Jan Hubicka <jh@suse.cz>
23362 * bitmap.c (bitmap_last_set_bit): New function.
23363 * bitmap.h (bitmap_last_set_bit): Declare.
23365 2009-03-29 David Ayers <ayers@fsfe.org>
23368 * c-typeck.c (build_conditional_expr): Emit ObjC warnings
23369 by calling objc_compare_types and surpress warnings about
23370 incompatible C pointers that are compatible ObjC pointers.
23372 2009-03-29 Adam Nemet <anemet@caviumnetworks.com>
23374 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Don't
23375 call initialize_inline_failed.
23376 (initialize_inline_failed): Move it from here ...
23377 * cgraph.c (initialize_inline_failed): ... to here.
23378 (cgraph_create_edge): Call initialize_inline_failed rather than
23379 setting inline_failed directly.
23381 2009-03-29 Ben Elliston <bje@au.ibm.com>
23384 * sysv4.opt (msdata): Improve comment.
23385 * linux64.h (ASM_SPEC32): Do not pass -memb when -msdata is given.
23386 * sysv4.h (SVR4_ASM_SPEC): Likewise.
23388 2009-03-29 Ben Elliston <bje@au.ibm.com>
23391 * config/rs6000/rs6000.md (*movti_ppc64): Correct the order of
23392 load and store attributes.
23394 2009-03-29 Ben Elliston <bje@au.ibm.com>
23396 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_HUGE_VALQ.
23397 (ix86_init_builtins): Add built-in function __builtin_huge_valq.
23398 (ix86_expand_builtin): Handle IX86_BUILTIN_HUGE_VALQ.
23399 * doc/extend.texi (X86 Built-in Functions): Add index entries for
23400 __builtin_infq and __builtin_huge_valq.
23402 2009-03-28 Anatoly Sokolov <aesok@post.ru>
23404 * config/avr/avr.c (avr_mcu_t): Add atmega8c1, atmega16c1 and
23406 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
23407 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.)
23409 2009-03-28 Xinliang David Li <davidxl@google.com>
23411 * tree-ssa-ccp.c (ccp_finalize): Add dbg_count support.
23412 (do_dbg_cnt): New function.
23414 2009-03-28 Jan Hubicka <jh@suse.cz>
23416 Merge from pretty-ipa:
23418 2009-03-27 Jan Hubicka <jh@suse.cz>
23420 * cgraph.c (dump_cgraph_node): Add replace output flag by process.
23421 * tree-pass.h (function_called_by_processed_nodes_p): Declare.
23422 * passes.c (function_called_by_processed_nodes_p): New.
23423 * ipa-pure-const.c (check_call): Fix handling of operands.
23424 (analyze_function): Dump debug output for skipped bodies.
23425 (local_pure_const): Use function_called_by_processed_nodes_p.
23426 * dwarf2out.c (reference_to_unused): Use output.
23427 * passes.c (do_per_function_toporder): Likewise.
23429 2008-11-12 Jan Hubicka <jh@suse.cz>
23431 * tree-pass.h (pass_fixup_cfg, pass_local_pure_const): Declare.
23432 * ipa-pure-const.c (funct_state_d): Add can throw field; make
23433 state_set_in_source enum
23434 (check_decl): Ignore memory tags; do not set fake looping flags;
23436 (check_operand, check_tree, check_rhs_var, check_lhs_var,
23437 get_asm_expr_operands, scan_function_op, scan_function_stmt): Remove.
23438 (check_call, analyze_function): Rewrite.
23440 (add_new_function): Update call of analyze_function.
23441 (generate_summary): Add call of analyze_function.
23442 (propagate): Propagate can_throw; handle state_set_in_source correctly.
23443 (local_pure_const): New function.
23444 (pass_local_pure_const): New pass.
23445 * ipa-inline.c (inline_transform): Set after_inlining.
23446 * tree-eh.c (stmt_can_throw_external): New.
23447 * tree-optimize.c (execute_fixup_cfg): Do not set after_inlining;
23448 work with aliasing built.
23449 * tree-flow.h (stmt_can_throw_external): New.
23450 * passes.c (init_optimization_passes): Schedule fixup_cfg pass early;
23451 and local pure/const pass in early and late optimization queue.
23453 2009-03-28 Martin Jambor <mjambor@suse.cz>
23455 * fold-const.c (get_pointer_modulus_and_residue): New parameter
23457 (fold_binary): Allow function decl aligment consideration is the
23458 second argument is integer constant one.
23459 * tree-ssa-forwprop.c (simplify_bitwise_and): New function.
23460 (tree_ssa_forward_propagate_single_use_vars): Handle assing statements
23461 with BIT_AND_EXPR on the RHS by calling simplify_bitwise_and.
23463 2009-03-28 Jan Hubicka <jh@suse.cz>
23465 * dwarf2out.c (dwarf2out_begin_prologue): Use crtl->nothrow
23466 * tree-eh.c (stmt_could_throw_p): Remove check for WEAK decls.
23467 * function.h (rtl_data): Add nothrow flag.
23468 * except.c (set_nothrow_function_flags): Use crtl->nothrow;
23469 set DECL_NOTHROW for AVAILABLE functions.
23471 2009-03-28 Jakub Jelinek <jakub@redhat.com>
23473 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If macro
23474 following vector keyword has expansion starting with pixel or bool
23475 keyword, expand vector to __vector and pixel or bool to __pixel or
23479 * opts.c (warning_disallowed_functions, warn_disallowed_functions,
23480 warn_if_disallowed_function_p): Removed.
23481 (common_handle_option): Don't handle OPT_Wdisallowed_function_list_.
23482 * c-parser.c (c_parser_postfix_expression_after_primary): Don't call
23483 warning_if_disallowed_function_p.
23484 * flags.h (warn_if_disallowed_function_p,
23485 warn_disallowed_functions): Removed.
23486 * common.opt (Wdisallowed-function-list=): Removed.
23487 * doc/invoke.texi (-Wdisallowed-function-list=): Removed.
23489 2009-03-28 Richard Guenther <rguenther@suse.de>
23491 PR tree-optimization/38723
23492 * tree-ssa-pre.c (compute_avail): Add all default definitions to
23495 2009-03-28 Jan Hubicka <jh@suse.cz>
23497 * tree-ssa-structalias.c (ipa_pta_execute): Fix bogus node->analyzed
23498 test introduced by my previous patch.
23500 2009-03-28 Richard Guenther <rguenther@suse.de>
23502 * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not leave
23503 the PHIs value undefined.
23505 2009-03-28 Jan Hubicka <jh@suse.cz>
23507 * tree-pass.h (pass_fixup_cfg): New pass.
23508 * ipa-inline.c (inline_transform): Set
23509 always_inline_functions_inlined/after_inlining.
23510 * tree-optimize.c (execute_fixup_cfg): Do not set them here.
23511 (pass_fixup_cfg): New pass.
23512 * passes.c (init_optimization_passes): Add fixup_cfg.
23514 2009-03-28 Richard Guenther <rguenther@suse.de>
23516 PR tree-optimization/38458
23517 * tree-ssa-copy.c (copy_prop_visit_phi_node): For the first
23518 argument use the arguments copy-of value.
23520 2009-03-28 Richard Guenther <rguenther@suse.de>
23522 PR tree-optimization/38180
23523 * tree-ssa-ccp.c (get_default_value): Simplify.
23524 (likely_value): Likewise.
23525 (surely_varying_stmt_p): Properly handle VOP case.
23526 (ccp_initialize): Likewise.
23527 (ccp_fold): Handle propagating through *&.
23528 (fold_const_aggregate_ref): Also handle decls.
23530 2009-03-28 Jan Hubicka <jh@suse.cz>
23532 * cgraph.c (dump_cgraph_node): Add replace output flag by process.
23533 * cgraph.h (cgraph_node): Likewise.
23534 * cgraphunit.c (cgraph_process_new_functions): Set process flag.
23535 (cgraph_reset_node): Use process flag.
23536 (cgraph_mark_functions_to_output): Likewise.
23537 (cgraph_expand_function): Likewise.
23538 (cgraph_expand_all_functions): Likewise.
23539 (cgraph_output_in_order): Likewise.
23540 * dwarf2out.c (reference_to_unused): Likewise.
23541 * passes.c do_per_function_toporder): Likewise.
23543 2009-03-28 Jan Hubicka <jh@suse.cz>
23545 Bring from lto-branch:
23547 2008-09-03 Doug Kwan <dougkwan@google.com>
23549 * cgraphbuild.c (initialize_inline_failed): Use cgraph_inline_failed_t
23550 enums instead of reason strings.
23551 * cgraph.c (cgraph_create_edge): Same.
23552 (cgraph_inline_failed_string): New function.
23553 * cgraph.h (cgraph_inline_failed_t): New enum type.
23554 (cgraph_inline_failed_string): New prototype.
23555 (struct cgraph_edge): Change type of INLINED_FAILED from constant
23556 char pointer to cgraph_inline_failed_t.
23557 (cgraph_inline_p): Adjust prototype to use cgraph_inline_failed_t.
23558 (cgraph_default_inline_p): Ditto.
23559 * cgraphunit.c (cgraph_inline_p): Change type of parameter REASON
23560 to cgraph_inline_failed_t pointer.
23561 * cif-code.def: New file.
23562 * ipa-inline.c (cgraph_mark_inline_edge): Use an enum instead of a
23564 (cgraph_check_inline_limits): Change type of REASON to pointer to
23565 cgraph_inline_failed_t. Replace reason strings with enums.
23566 (cgraph_default_inline_p): Ditto.
23567 (cgraph_recursive_inlining_p): Ditto.
23568 (update_caller_keys): Change type of FAILED_REASON to
23569 cgraph_inline_failed_t.
23570 (cgraph_set_inline_failed): Change type of REASON to pointer to
23571 cgraph_inline_failed_t. Call cgraph_inline_failed_string to
23572 convert enums to strings for text output.
23573 (cgraph_decide_inlining_of_small_function): Change FAILED_REASON
23574 to be of type cgraph_inline_failed_t. Replace reason strings with
23575 enums. Call cgraph_inline_failed_string to covert enums
23576 to strings for text output.
23577 (cgraph_decide_inlining): Replace reason strings with enums.
23578 (cgraph_decide_inlining_incrementally): Change type of FAILED_REASON
23579 to cgraph_inline_failed_t type. Call cgraph_inline_failed_string
23581 * tree-inline.c (expand_call_inline): Change type of REASON
23582 to cgraph_inline_failed_t. Replace reason strings with enums.
23583 Call cgraph_inline_failed_string for text output.
23584 * Makefile.in (CGRAPH_H): Add cif-code.def to dependencies.
23587 2009-03-28 Jan Hubicka <jh@suse.cz>
23589 * cgraph.c (cgraph_node, cgraph_remove_node, dump_cgraph_node,
23590 cgraph_clone_node): Remove master clone handling.
23591 (cgraph_is_master_clone, cgraph_master_clone): Remove.
23592 * cgraph.h (master_clone): Remove.
23593 (cgraph_is_master_clone, cgraph_master_clone): Remove.
23594 * ipa-type-escape.c (type_escape_execute): Remove use of master clone.
23595 (tree-ssa-structalias.c (ipa_pta_execute): Likewise.
23597 2009-03-28 Jan Hubicka <jh@suse.cz>
23599 * cgraph.c (cgraph_function_body_availability): Functions declared
23600 inline are always safe to assume that it is not going to be replaced.
23602 2009-03-28 Richard Guenther <rguenther@suse.de>
23604 PR tree-optimization/38513
23605 * tree-ssa-pre.c (eliminate): Remove redundant stores.
23606 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
23607 EXC_PTR_EXPR and FILTER_EXPR.
23608 (get_ref_from_reference_ops): Likewise.
23610 2009-03-28 Richard Guenther <rguenther@suse.de>
23612 PR tree-optimization/38968
23613 * tree-vect-analyze.c (vect_compute_data_ref_alignment):
23614 Use FLOOR_MOD_EXPR to compute misalignment.
23616 2009-03-28 Richard Guenther <rguenther@suse.de>
23618 PR tree-optimization/37795
23619 * tree.h (combine_comparisons): Declare.
23620 * fold-const.c (combine_comparisons): Export.
23621 * tree-ssa-ifcombine.c (ifcombine_ifandif): Optimize two successive
23623 (ifcombine_iforif): Use combine_comparisons.
23625 2009-03-28 Jan Hubicka <jh@suse.cz>
23627 * tree-eh.c (inlinable_call_p): New function.
23628 (make_eh_edges): Use it.
23629 (verify_eh_edges): Use it.
23630 (stmt_can_throw_external, stmt_can_throw_internal): Use it.
23631 * except.c (reachable_next_level): Add inlinable_function argument
23632 (sjlj_find_directly_reachable_regions): Update.
23633 (add_reachable_handler): Do not set saw_any_handlers.
23634 (reachable_next_level): Handle MUST_NOT_THROW more curefully.
23635 (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
23636 Add new inlinable call parameter.
23637 (can_throw_internal, can_throw_external): Update.
23638 * except.h (can_throw_internal_1, can_throw_external_1,
23639 foreach_reachable_handler): Update declaration.
23641 2009-03-28 Joseph Myers <joseph@codesourcery.com>
23643 * config/arm/t-arm-coff, config/h8300/coff.h,
23644 config/i386/i386-aout.h, config/i386/i386-coff.h,
23645 config/libgloss.h, config/m68k/coff.h, config/m68k/m68k-aout.h,
23646 config/pdp11/2bsd.h, config/rs6000/aix41.h,
23647 config/rs6000/aix41.opt, config/rs6000/t-newas, config/sh/coff.h,
23648 fix-header.c, fixproto, gen-protos.c, protoize.c, scan-decls.c,
23649 scan-types.sh, scan.c, scan.h, sort-protos, sys-protos.h,
23650 sys-types.h: Remove.
23651 * Makefile.in: Remove protoize and fixproto support and references
23653 (SYSCALLS.c.X-warn, TARGET_GETGROUPS_T, STMP_FIXPROTO,
23654 PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, FIXPROTO_DEFINES):
23656 (ALL_HOST_OBJS): Remove $(PROTO_OBJS).
23657 (MOSTLYCLEANFILES): Remove protoize$(exeext) and
23658 unprotoize$(exeext).
23659 (rest.encap): Don't depend on $(STMP_FIXPROTO)
23660 (.PHONY): Don't depend on proto.
23661 (libgcc-support): Don't depend on $(STMP_FIXPROTO).
23662 (proto, PROTO_OBJS, protoize$(exeext), unprotoize$(exeext),
23663 protoize.o, unprotoize.o, SYSCALLS.c.X, test-protoize-simple,
23664 deduced.h, GEN_PROTOS_OBJS, build/gen-protos$(build_exeext),
23665 build/gen-protos.o, build/scan.o, xsys-protos.h,
23666 build/fix-header$(build_exeext), build/fix-header.o,
23667 build/scan-decls.o, fixhdr.ready, stmp-fixproto,
23668 stmp-install-fixproto): Remove.
23669 (mostlyclean): Don't remove xsys-protos.hT, SYSCALLS.c.X,
23670 SYSCALLS.c or fixproto files.
23671 (install-common): Don't install protoize.
23672 (install-headers-tar, install-headers-cpio, install-headers-cp):
23673 Don't depend on $(STMP_FIXPROTO).
23674 (install-mkheaders): Don't depend on $(STMP_FIXPROTO). Don't
23675 install fixproto files or write out fixproto settings.
23676 (uninstall): Don't uninstall protoize.
23677 * config.gcc (use_fixproto): Remove.
23678 (arm-*-coff*, armel-*-coff*, h8300-*-*, i[34567]86-*-aout*,
23679 i[34567]86-*-coff*, m68k-*-aout*, m68k-*-coff*, pdp11-*-bsd,
23680 rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*, sh-*-*): Remove.
23681 * config/m32r/t-linux (STMP_FIXPROTO): Remove.
23682 * config/m68k/m68k.c: Remove M68K_TARGET_COFF-conditional code.
23683 * config/mips/t-iris (FIXPROTO_DEFINES): Remove.
23684 * config/pa/t-pa-hpux (FIXPROTO_DEFINES): Remove.
23685 * config/pdp11/pdp11.c: Remove TWO_BSD-conditional code.
23686 * config/t-svr4 (FIXPROTO_DEFINES): Remove.
23687 * config/t-vxworks (STMP_FIXPROTO): Remove.
23688 * configure.ac (AC_TYPE_GETGROUPS, TARGET_GETGROUPS_T,
23689 STMP_FIXPROTO): Remove.
23690 * config.in, configure: Regenerate.
23691 * crtstuff.c (gid_t, uid_t): Don't undefine.
23692 * doc/install.texi: Change m68k-coff to m68k-elf in example.
23693 (arm-*-coff, arm-*-aout: Remove target entries.
23694 (*-ibm-aix*): Mention removal of support for AIX 4.2 and older.
23695 Remove mention of AIX 4.1.
23696 (m68k-*-*): Remove mention of m68k-*-aout and m68k-*-coff*.
23697 * doc/invoke.texi (Running Protoize): Remove.
23698 * doc/trouble.texi (Actual Bugs): Remove mention of fixproto.
23699 (Protoize Caveats): Remove.
23700 * tsystem.h: Update comments on headers assumed to exist.
23702 2009-03-27 Vladimir Makarov <vmakarov@redhat.com>
23704 * genautomata.c: Add a new year to the copyright. Add a new
23706 (struct insn_reserv_decl): Add comments for member bypass_list.
23707 (find_bypass): Remove.
23708 (insert_bypass): New.
23709 (process_decls): Use insert_bypass.
23710 (output_internal_insn_latency_func): Output all bypasses with the
23711 same input insn in one switch case.
23713 * rtl.def (define_bypass): Describe bypass choice.
23714 * doc/md.texi (define_bypass): Ditto.
23716 2009-03-27 Richard Guenther <rguenther@suse.de>
23718 * gimplify.c (mark_addressable): Export.
23719 * tree-flow.h (mark_addressable): Declare.
23720 * tree-ssa-loop-manip.c (create_iv): Mark the base addressable.
23721 * tree-ssa.c (verify_phi_args): Verify that address taken
23722 variables have TREE_ADDRESSABLE set.
23724 2009-03-27 Richard Guenther <rguenther@suse.de>
23726 * fold-const.c (build_fold_addr_expr_with_type_1): Rename back to ...
23727 (build_fold_addr_expr_with_type): ... this. Remove in_fold handling.
23728 Do not mark decls TREE_ADDRESSABLE.
23729 (build_fold_addr_expr): Adjust.
23730 (fold_addr_expr): Remove.
23731 (fold_unary): Use build_fold_addr_expr.
23732 (fold_comparison): Likewise.
23733 (split_address_to_core_and_offset): Likewise.
23734 * coverage.c (tree_coverage_counter_addr): Mark the array decl
23736 * gimplify.c (mark_addressable): Do not exclude RESULT_DECLs.
23737 (gimplify_modify_expr_to_memcpy): Mark source and destination
23739 * omp-low.c (create_omp_child_function): Mark the object decl
23741 (lower_rec_input_clauses): Mark the var we take the address of
23743 (lower_omp_taskreg): Mark the sender decl TREE_ADDRESSABLE.
23745 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
23747 PR middle-end/39315
23748 * cfgexpand.c (expand_one_stack_var_at): Change alignment
23749 limit to MAX_SUPPORTED_STACK_ALIGNMENT.
23751 2009-03-27 Richard Guenther <rguenther@suse.de>
23753 PR tree-optimization/39120
23754 * tree-ssa-structalias.c (handle_rhs_call): Fill out return
23756 (handle_lhs_call): Process return constraints. Add escape
23757 constraints if necessary.
23758 (handle_const_call): Fill out return constraints. Make nested
23759 case more precise. Avoid consttmp if possible.
23760 (handle_pure_call): Fill out return constraints. Avoid
23761 callused if possible.
23762 (find_func_aliases): Simplify call handling.
23764 2009-03-27 Richard Guenther <rguenther@suse.de>
23766 PR tree-optimization/39120
23767 * tree-ssa-structalias.c (do_sd_constraint): Do not use CALLUSED
23768 as a representative.
23769 (solve_graph): Do propagate CALLUSED.
23770 (handle_pure_call): Use a scalar constraint from CALLUSED for
23772 (find_what_p_points_to): CALLUSED shall not appear in poins-to
23775 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
23778 * c-common.c (handle_aligned_attribute): Properly check alignment
23779 overflow. Use (1U << i) instead of (1 << i).
23781 * emit-rtl.c (get_mem_align_offset): Use "unsigned int" for align.
23783 * expr.h (get_mem_align_offset): Updated.
23785 * tree.h (tree_decl_common): Change align to "unsigned int" and
23786 move it before pointer_alias_set.
23788 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
23789 Jakub Jelinek <jakub@redhat.com>
23792 * config/ia64/sync.md (cmpxchg_rel_<mode>): Replace input
23793 gr_register_operand with gr_reg_or_0_operand.
23794 (cmpxchg_rel_di): Likewise.
23795 (sync_lock_test_and_set<mode>): Likewise.
23797 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
23799 * jump.c (rtx_renumbered_equal_p): Use subreg_get_info.
23800 (true_regnum): Likewise.
23802 * rtlanal.c (subreg_info): Moved to ...
23803 * rtl.h (subreg_info): Here. New.
23804 (subreg_get_info): New.
23806 * rtlanal.c (subreg_get_info): Make it extern.
23808 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
23811 * config/i386/i386.c (ix86_abi): New.
23812 (override_options): Handle -mabi=.
23813 (ix86_function_arg_regno_p): Replace DEFAULT_ABI with ix86_abi.
23814 (ix86_call_abi_override): Likewise.
23815 (init_cumulative_args): Likewise.
23816 (function_arg_advance): Likewise.
23817 (function_arg_64): Likewise.
23818 (function_arg): Likewise.
23819 (ix86_pass_by_reference): Likewise.
23820 (ix86_function_value_regno_p): Likewise.
23821 (ix86_build_builtin_va_list_abi): Likewise.
23822 (setup_incoming_varargs_64): Likewise.
23823 (is_va_list_char_pointer): Likewise.
23824 (ix86_init_machine_status): Likewise.
23825 (ix86_reg_parm_stack_space): Use enum calling_abi on call_abi.
23826 (ix86_function_type_abi): Return enum calling_abi. Rewrite
23827 for 64bit. Replace DEFAULT_ABI with ix86_abi.
23828 (ix86_function_abi): Make it static and return enum calling_abi.
23829 (ix86_cfun_abi): Return enum calling_abi. Replace DEFAULT_ABI
23831 (ix86_fn_abi_va_list): Updated.
23833 * config/i386/i386.h (ix86_abi): New.
23834 (STACK_BOUNDARY): Replace DEFAULT_ABI with ix86_abi.
23835 (CONDITIONAL_REGISTER_USAGE): Likewise.
23836 (CUMULATIVE_ARGS): Change call_abi type to enum calling_abi.
23837 (machine_function): Likewise.
23839 * config/i386/i386.md (untyped_call): Replace DEFAULT_ABI
23841 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Likewise.
23842 (STACK_BOUNDARY): Likewise.
23843 * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Likewise.
23845 * config/i386/i386.opt (mabi=): New.
23847 * config/i386/i386-protos.h (ix86_cfun_abi): Changed to
23848 return enum calling_abi.
23849 (ix86_function_type_abi): Likewise.
23850 (ix86_function_abi): Removed.
23852 * doc/invoke.texi: Document -mabi= option for x86.
23854 2009-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
23856 * builtins.c (real_dconstp): Delete.
23857 (fold_builtin_logarithm): Remove inaccurate log(e) special case.
23859 2009-03-27 Dodji Seketeli <dodji@redhat.com>
23860 Jakub Jelinek <jakub@redhat.com>
23863 * dwarf2out.c (dwarf_attr_name): Handle DW_AT_explicit attribute.
23864 (gen_subprogram_die): When a function is explicit, generate the
23865 DW_AT_explicit attribute.
23866 * langhooks.h (struct lang_hooks_for_decls): Add
23867 function_decl_explicit_p langhook.
23868 * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Define.
23869 (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P.
23871 2009-03-27 Jakub Jelinek <jakub@redhat.com>
23873 * builtins.c (fold_builtin_memory_op): Optimize memmove
23874 into memcpy if we can prove source and destination don't overlap.
23876 * tree-inline.c: Include gt-tree-inline.h.
23877 (clone_fn_id_num): New variable.
23878 (clone_function_name): New function.
23879 (tree_function_versioning): Use it.
23880 * Makefile.in (GTFILES): Add tree-inline.c.
23882 2009-03-27 Mark Mitchell <mark@codesourcery.com>
23884 * BASE-VER: Change to 4.5.0.
23886 2009-03-27 Xinliang David Li <davidxl@google.com>
23888 PR tree-optimization/39557
23889 * tree-ssa.c (warn_uninitialized_vars): free postdom info.
23891 2009-03-27 Xinliang David Li <davidxl@google.com>
23893 PR tree-optimization/39548
23894 * tree-ssa-copy.c (copy_prop_visit_phi_node): Add copy
23897 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
23899 * c-common.c (pointer_int_sum): Use %wd on return from
23902 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
23904 * c-common.c (pointer_int_sum): Use HOST_WIDE_INT_PRINT_DEC
23905 on return from tree_low_cst.
23907 2009-03-27 Andrew Pinski <andrew_pinski@playstation.sony.com>
23910 * ginclude/stdarg.h (va_copy): Define also for
23911 __GXX_EXPERIMENTAL_CXX0X__.
23913 2009-03-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
23916 * builtins.h (c_strlen): Do not warn here.
23917 * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
23918 * c-common.c (pointer_int_sum): Take an explicit location.
23919 Warn about offsets out of bounds.
23920 * c-common.h (pointer_int_sum): Adjust declaration.
23922 2009-03-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23924 * doc/invoke.texi (i386 and x86-64 Windows Options): Fix texinfo
23927 2009-03-26 Jakub Jelinek <jakub@redhat.com>
23930 * opts.c (warn_if_disallowed_function_p): Don't assume
23931 get_callee_fndecl must return non-NULL.
23933 2009-03-26 Vladimir Makarov <vmakarov@redhat.com>
23935 PR rtl-optimization/39522
23936 * reload1.c (reload_as_needed): Invalidate reg_last_reload_reg too
23937 when reg_reloaded_valid is set.
23939 2009-03-26 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
23941 * config/spu/divv2df3.c: New file.
23942 * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add it.
23943 (DPBIT_FUNCS): Filter out _div_df.
23945 2009-03-26 Bernd Schmidt <bernd.schmidt@analog.com>
23947 * config/bfin/bfin.c (bfin_optimize_loop): If the LSETUP goes before
23948 a jump insn, count that jump in the distance to the loop start.
23950 2009-03-25 Kaz Kojima <kkojima@gcc.gnu.org>
23953 * config/sh/sh.c (calc_live_regs): Fix condition for global
23954 registers except PIC_OFFSET_TABLE_REGNUM.
23956 2009-03-25 Kai Tietz <kai.tietz@onevision.com>
23959 * doc/invoke.texi (-mconsole): New.
23961 (-mno-cygwin): New.
23963 (-mnop-fun-dllimport): New.
23967 (sub section "i386 and x86-64 Windows Options"): New.
23969 2009-03-25 Ralf Corsépius <ralf.corsepius@rtems.org>
23971 * config/arm/rtems-elf.h: Remove LINK_GCC_C_SEQUENCE_SPEC.
23972 * config/rs6000/t-rtems: Remove MULTILIB_EXTRA_OPTS.
23974 2009-03-25 Richard Guenther <rguenther@suse.de>
23976 PR middle-end/39497
23977 * Makefile.in (dfp.o-warn): Use -fno-strict-aliasing instead
23980 2009-03-25 Andrey Belevantsev <abel@ispras.ru>
23982 * config/ia64/ia64.c (ia64_set_sched_flags): Zero spec_info->mask when
23983 neither of haifa/selective schedulers are working.
23985 2009-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23987 * doc/invoke.texi (Debugging Options): Fix description of
23988 -fno-merge-debug-strings.
23990 2009-03-24 Hans-Peter Nilsson <hp@axis.com>
23992 * config/cris/libgcc.ver: New version-script.
23993 * config/cris/t-linux (SHLIB_MAPFILES): Use it.
23995 * configure.ac <GAS features, nop mnemonic>: Add pattern
23996 crisv32-*-* for "nop".
23997 <GAS features, Thread-local storage>: Add item for CRIS and CRIS v32.
23998 * configure: Regenerate.
24000 2009-03-24 Ira Rosen <irar@il.ibm.com>
24002 PR tree-optimization/39529
24003 * tree-vect-transform.c (vect_create_data_ref_ptr): Call
24004 mark_sym_for_renaming for the tag copied to the new vector
24007 2009-03-24 Arthur Loiret <aloiret@debian.org>
24009 * config.host (alpha*-*-linux*): Use driver-alpha.o and alpha/x-alpha.
24010 * config/alpha/linux.h (host_detect_local_cpu): Declare, add to
24011 EXTRA_SPEC_FUNCTIONS.
24012 (MCPU_MTUNE_NATIVE_SPECS, DRIVER_SELF_SPECS): New macros.
24013 * config/alpha/driver-alpha.c, config/alpha/x-alpha: New.
24014 * doc/invoke.texi (DEC Alpha Options): Document 'native' value for
24015 -march and -mtune options.
24017 2009-03-24 Ralf Corsépius <ralf.corsepius@rtems.org>
24019 * config/m68k/t-rtems: Add m5329 multilib.
24021 2009-03-24 Dodji Seketeli <dodji@redhat.com>
24022 Jakub Jelinek <jakub@redhat.com>
24025 * dwarf2out.c (gen_variable_die): Avoid adding duplicate declaration
24028 2009-03-23 Jakub Jelinek <jakub@redhat.com>
24031 * c-parser.c (c_parser_omp_for_loop): Call c_parser_binary_expression
24032 instead of c_parser_expression_conv, if original_code isn't one of the
24033 4 allowed comparison codes, fail.
24035 2009-03-23 Richard Guenther <rguenther@suse.de>
24037 * cgraph.h (struct cgraph_node): Reorder fields for 64-bit hosts.
24038 * tree.h (struct tree_type): Likewise.
24039 * reload.h (struct insn_chain): Likewise.
24040 * dwarf2out.c (struct dw_loc_descr_struct): Likewise.
24041 * function.h (struct function): Likewise.
24042 * tree-ssa-structalias.c (struct equiv_class_label): Likewise.
24044 2009-03-23 Jakub Jelinek <jakub@redhat.com>
24046 PR tree-optimization/39516
24047 * lambda-code.c (perfect_nestify): Fix type of the uboundvar variable.
24049 2009-03-23 Bingfeng Mei <bmei@broadcom.com>
24051 * config.gcc (need_64bit_hwint): Make clear that need_64bit_hwint
24052 should be set true if BITS_PER_WORD of target is bigger than 32
24054 2009-03-22 Hans-Peter Nilsson <hp@axis.com>
24056 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC):
24057 Translate -B-options to -rpath-link. Correct existing
24058 rpath-link and conditionalize on !nostdlib.
24060 2009-03-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24062 * doc/extend.texi (Function Attributes, Variable Attributes):
24064 * doc/invoke.texi (Debugging Options, Optimize Options)
24065 (i386 and x86-64 Options, MCore Options): Likewise.
24067 2009-03-20 Jakub Jelinek <jakub@redhat.com>
24070 * dwarf2out.c (gen_namespace_die): Add context_die argument and use
24071 it for block local namespace aliases.
24072 (gen_decl_die): Pass context_die to gen_namespace_die.
24074 2009-03-19 Jakub Jelinek <jakub@redhat.com>
24077 * c-omp.c (c_finish_omp_for): Allow NE_EXPR with TREE_TYPE (decl)'s
24078 minimum or maximum value.
24080 2009-03-19 Alexandre Oliva <aoliva@redhat.com>
24082 * reginfo.c (globalize_reg): Recompute derived reg sets.
24084 2009-03-19 Ozkan Sezer <sezeroz@gmail.com>
24087 * libgcc2.c (mprotect): Do not use signed arguments for
24088 VirtualProtect, use DWORD arguments. Also fix the 'may
24089 be used uninitialized' warning for the np variable.
24091 2009-03-19 Jakub Jelinek <jakub@redhat.com>
24094 * config/i386/i386.c (ix86_function_regparm): Don't optimize local
24095 functions using regparm calling conventions when not optimizing.
24096 (ix86_function_sseregparm): Similarly for sseregparm calling
24099 2009-03-19 Li Feng <nemokingdom@gmail.com>
24101 PR middle-end/39500
24102 * tree-data-ref.c (analyze_subscript_affine_affine): There is no
24103 dependence if the first conflict is after niter iterations.
24105 2009-03-19 Hans-Peter Nilsson <hp@axis.com>
24107 PR middle-end/38609
24108 * config/cris/cris.h (FRAME_POINTER_REQUIRED): Force for all
24109 functions with dynamic stack-pointer adjustments.
24111 2009-03-19 Ben Elliston <bje@au.ibm.com>
24113 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix -msdata-data
24114 option; change to -msdata=data.
24116 2009-03-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24118 * c.opt: Unify help texts for -Wdeprecated, -Wsystem-headers,
24121 2009-03-18 Eric Botcazou <ebotcazou@adacore.com>
24124 * config/sparc/sparc.md (do_builtin_setjmp_setup): Prettify asm output.
24126 2009-03-18 Sandra Loosemore <sandra@codesourcery.com>
24128 * doc/invoke.texi (Code Gen Options): Expand discussion of
24131 2009-03-18 Jakub Jelinek <jakub@redhat.com>
24133 * dse.c (struct group_info): Reorder fields for 64-bit hosts.
24134 * matrix-reorg.c (struct matrix_info): Likewise.
24135 * tree-ssa-loop-ivopts.c (struct ivopts_data): Likewise.
24136 * rtl.h (struct mem_attrs): Likewise.
24137 * df.h (struct df): Likewise.
24138 * tree-data-ref.h (struct data_dependence_relation): Likewise.
24139 * ira-int.h (struct ira_allocno): Likewise.
24140 * df-scan.c (struct df_collection_rec): Likewise.
24141 * ira.c (struct equivalence): Likewise.
24142 * function.c (struct temp_slot): Likewise.
24143 * cfgloop.h (struct loop): Likewise.
24146 * function.c (use_register_for_decl): When not optimizing, disregard
24147 register keyword for variables with types containing methods.
24149 2009-03-18 Sebastian Pop <sebastian.pop@amd.com>
24151 PR middle-end/39447
24152 * graphite.c (exclude_component_ref): Renamed contains_component_ref_p.
24153 (is_simple_operand): Call contains_component_ref_p before calling data
24154 reference analysis that would fail on COMPONENT_REFs.
24156 * tree-vrp.c (search_for_addr_array): Fix formatting.
24158 2009-03-18 Richard Guenther <rguenther@suse.de>
24160 * tree-vect-transform.c (vect_loop_versioning): Fold the
24161 generated comparisons.
24162 * tree-vectorizer.c (set_prologue_iterations): Likewise.
24163 (slpeel_tree_peel_loop_to_edge): Likewise.
24165 2009-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24167 PR middle-end/37805
24168 * opts.c (print_specific_help): In addition to `undocumented',
24169 accept `separate' and `joined' flags if passed alone. Describe
24170 output by the first matched one of those.
24171 (common_handle_option): Skip over empty strings.
24172 * gcc.c (display_help): Fix help string for `--help='.
24173 * doc/invoke.texi (Option Summary, Overall Options): With
24174 `--help=', classes and qualifiers can both be repeated, but
24175 only the latter can be negated. One should not pass only
24176 negated qualifiers. Fix markup and examples.
24179 2008-10-14 Jakub Jelinek <jakub@redhat.com>
24180 PR middle-end/37805
24181 * opts.c (common_handle_option): Don't ICE on -fhelp=joined
24182 and -fhelp=separate.
24184 2009-03-17 Jing Yu <jingyu@google.com>
24186 PR middle-end/39378
24187 * function.h (struct rtl_data): Move is_thunk from here...
24188 (struct function): ...to here.
24189 * cp/method.c (use_thunk): Change is_thunk from crtl to cfun.
24190 * varasm.c (assemble_start_function): Change is_thunk from crtl to
24192 * config/alpha/alpha.c (alpha_sa_mask): Change is_thunk from crtl to
24194 (alpha_does_function_need_gp, alpha_start_function): Likewise.
24195 (alpha_output_function_end_prologue): Likewise.
24196 (alpha_end_function, alpha_output_mi_thunk_osf): Likewise.
24197 * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likewise.
24198 (rs6000_output_function_epilogue): Likewise.
24199 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Likewise.
24201 2009-03-17 Uros Bizjak <ubizjak@gmail.com>
24204 * config/i386/i386.md (*truncdfsf_mixed): Avoid combining registers
24205 from different units in a single alternative.
24206 (*truncdfsf_i387): Ditto.
24207 (*truncxfsf2_mixed): Ditto.
24208 (*truncxfdf2_mixed): Ditto.
24210 2009-03-17 Jakub Jelinek <jakub@redhat.com>
24212 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Allow
24213 non-NAMESPACE_DECL IMPORTED_DECL_ASSOCIATED_DECL.
24216 * tree-ssa-live.c (remove_unused_locals): Don't remove local
24217 unused non-artificial variables when not optimizing.
24220 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Emit
24221 DW_TAG_imported_module even if decl is IMPORTED_DECL with
24222 NAMESPACE_DECL in its DECL_INITIAL.
24224 PR middle-end/39443
24225 * optabs.c (set_user_assembler_libfunc): New function.
24226 * expr.h (set_user_assembler_libfunc): New prototype.
24227 * c-common.c: Include libfuncs.h.
24228 (set_builtin_user_assembler_name): Call set_user_assembler_libfunc
24229 for memcmp, memset, memcpy, memmove and abort.
24230 * Makefile.in (c-common.o): Depend on libfuncs.h.
24233 * dwarf2out.c (gen_inlined_enumeration_type_die,
24234 gen_inlined_structure_type_die, gen_inlined_union_type_die,
24235 gen_tagged_type_instantiation_die): Removed.
24236 (gen_decl_die): For TYPE_DECL_IS_STUB with non-NULL decl_origin
24239 2009-03-17 Janis Johnson <janis187@us.ibm.com>
24242 * Makefile.in (site.exp): Rename TEST_GCC_EXEC_PREFIX and comment
24244 (check-%): Don't set GCC_EXEC_PREFIX when invoking runtest.
24245 (check-parallel-%): Ditto.
24246 (check-consistency): Ditto.
24248 2009-03-17 Kai Tietz <kai.tietz@onevision.com>
24250 * ipa-struct-reorg.c (create_general_new_stmt): Initialize
24251 local variable rhs by NULL_TREE.
24253 2009-03-17 H.J. Lu <hongjiu.lu@intel.com>
24256 * doc/extend.texi: Correct register behavior for regparm on Intel 386.
24258 2009-03-17 H.J. Lu <hongjiu.lu@intel.com>
24261 * config/i386/i386.c (ix86_function_regparm): Rewrite for 64bit.
24263 2009-03-17 H.J. Lu <hongjiu.lu@intel.com>
24266 * config/i386/i386.c (ix86_expand_call): Check extra clobbers
24267 for ms->sysv ABI calls only in 64bit mode.
24269 * config/i386/i386.md (untyped_call): Support 32bit.
24271 2009-03-16 H.J. Lu <hongjiu.lu@intel.com>
24273 * doc/extend.texi: Replace x86_65 with x86_64.
24275 2009-03-16 Jakub Jelinek <jakub@redhat.com>
24277 PR tree-optimization/39455
24278 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Fix types
24279 mismatches for POINTER_TYPE_P (type).
24280 (number_of_iterations_le): Likewise.
24282 2009-03-16 Hariharan Sandanagobalane <hariharan@picochip.com>
24284 * config/picochip/picochip.c: Removed profiling support.
24285 * config/picochip/picochip.md: Removed profiling instruction.
24286 * config/picochip/picochip.h: Removed profiling builtin.
24288 2009-03-16 Joseph Myers <joseph@codesourcery.com>
24290 * doc/install.texi (--with-host-libstdcxx): Document.
24292 2009-03-14 Anatoly Sokolov <aesok@post.ru>
24295 * config/avr/avr.c (avr_handle_fndecl_attribute): Move code for
24296 generate a warning if the function name does not begin with
24297 "__vector" and the function has either the 'signal' or 'interrupt'
24298 attribute, from here to ...
24299 (avr_declare_function_name): ...here. New function.
24300 * config/avr/avr.h (ASM_DECLARE_FUNCTION_NAME): Redefine.
24301 * config/avr/avr-protos.h (avr_declare_function_name): Declare.
24303 2009-03-14 Jakub Jelinek <jakub@redhat.com>
24306 * cse.c (fold_rtx): Don't modify original const_arg1 when
24307 canonicalizing SHIFT_COUNT_TRUNCATED shift count, do it on a
24308 separate variable instead.
24309 * rtlanal.c (nonzero_bits1) <case ASHIFTRT>: Don't assume anything
24310 from out of range shift counts.
24311 (num_sign_bit_copies1) <case ASHIFTRT, case ASHIFT>: Similarly.
24313 2009-03-13 Catherine Moore <clm@codesourcery.com>
24315 * config/i386/x-mingw32 (host-mingw32.o): Replace
24316 diagnostic.h with $(DIAGNOSTIC_H).
24318 2009-03-12 Jakub Jelinek <jakub@redhat.com>
24321 * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): New
24323 * config/i386/sync.md (sync_compare_and_swap<mode>,
24324 sync_compare_and_swap_cc<mode>): For DImode with -m32 -fpic check
24325 if operands[1] is cmpxchg8b_pic_memory_operand, if not force address
24327 (sync_double_compare_and_swapdi_pic,
24328 sync_double_compare_and_swap_ccdi_pic): Require operand 1 to be
24329 cmpxchg8b_pic_memory_operand instead of just memory_operand.
24331 2009-03-12 H.J. Lu <hongjiu.lu@intel.com>
24334 * config/i386/i386.c (ix86_expand_push): Don't set memory alignment.
24336 2009-03-12 H.J. Lu <hongjiu.lu@intel.com>
24339 * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
24340 (avx_addsubv4df3): Likewise.
24341 (*avx_addsubv4sf3): Likewise.
24342 (sse3_addsubv4sf3): Likewise.
24344 2009-03-12 H.J. Lu <hongjiu.lu@intel.com>
24347 * config/i386/i386.md: Compare REGNO on the new peephole2 patterns.
24349 2009-03-12 Vladimir Makarov <vmakarov@redhat.com>
24352 * ira-int.h (struct allocno): Fix comment for calls_crossed_num.
24353 * ira-conflicts.c (ira_build_conflicts): Prohibit call used
24354 registers for allocnos created from user-defined variables.
24356 2009-03-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
24359 * config/spu/spu.c (spu_expand_mov): Handle invalid subregs
24360 of non-integer mode as well.
24362 2009-03-11 Adam Nemet <anemet@caviumnetworks.com>
24364 * gimplify.c (gimplify_call_expr): Don't set CALL_CANNOT_INLINE_P
24365 for functions for which the parameter types are unknown.
24367 2009-03-11 Jakub Jelinek <jakub@redhat.com>
24370 * cfgexpand.c (get_decl_align_unit): Use LOCAL_DECL_ALIGNMENT macro.
24371 * defaults.h (LOCAL_DECL_ALIGNMENT): Define if not yet defined.
24372 * config/i386/i386.h (LOCAL_DECL_ALIGNMENT): Define.
24373 * config/i386/i386.c (ix86_local_alignment): For
24374 -m32 -mpreferred-stack-boundary=2 use 32-bit alignment for
24375 long long variables on the stack to avoid dynamic realignment.
24376 Allow the first argument to be a decl rather than type.
24377 * doc/tm.texi (LOCAL_DECL_ALIGNMENT): Document.
24379 2009-03-11 Nick Clifton <nickc@redhat.com>
24382 * config/mcore/mcore.opt: Remove deprecated m4align and m8align
24384 Add description to mno-lsim option.
24385 * config/mcore/mcore.h: Remove comment about deprecated m4align
24387 (TARGET_DEFAULT): Remove deprecated MASK_M8ALIGN.
24388 * doc/invoke.texi: Add description of mno-lsim and
24389 mstack-increment options.
24391 * config/fr30/fr30.opt: Document the -mno-lsim option.
24392 * doc/invoke.texi: Add descriptions of the FR30's -msmall-model
24393 and -mno-lsim options.
24395 2009-03-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
24397 * fold-const.c (fold_comparison): Only call fold_inf_compare
24398 if the mode supports infinities.
24400 2009-03-11 Jason Merrill <jason@redhat.com>
24403 * tree-nrv.c (tree_nrv): Don't do this optimization if the front
24404 end already did. Notice GIMPLE_CALL modifications of the result.
24405 Don't copy debug information from an ignored decl or a decl from
24408 2009-03-10 Richard Guenther <rguenther@suse.de>
24409 Nathan Froyd <froydnj@codesourcery.com>
24411 PR middle-end/37850
24412 * libgcc2.c (__mulMODE3): Use explicit assignments to form the result.
24413 (__divMODE3): Likewise.
24415 2009-03-09 Jakub Jelinek <jakub@redhat.com>
24417 PR tree-optimization/39394
24418 * gimplify.c (gimplify_type_sizes): Gimplify DECL_SIZE and
24419 DECL_SIZE_UNIT of variable length FIELD_DECLs.
24421 2009-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24423 * recog.c (verfiy_changes): Disallow renaming of hard regs in
24424 inline asms for register asm ("") declarations.
24426 2009-03-09 Eric Botcazou <ebotcazou@adacore.com>
24428 * fold-const.c (fold_unary): Fix comment.
24430 2009-03-07 Jan Hubicka <jh@suse.cz>
24433 * tree-inline.c (setup_one_parameter): Do replacement of const
24434 argument by constant in SSA form.
24436 2009-03-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
24438 PR middle-end/38028
24439 * function.c (assign_parm_setup_stack): Use STACK_SLOT_ALIGNMENT to
24440 determine alignment passed to assign_stack_local.
24441 (assign_parms_unsplit_complex): Likewise.
24442 * except.c (sjlj_build_landing_pads): Likewise.
24444 2009-03-06 Jakub Jelinek <jakub@redhat.com>
24446 PR middle-end/39360
24447 * tree-flow.h (add_referenced_var): Return bool instead of void.
24448 * tree-dfa.c (add_referenced_var): Return result of
24449 referenced_var_check_and_insert call.
24450 * tree-inline.c (expand_call_inline): Call add_referenced_var instead
24451 of referenced_var_check_and_insert.
24454 * dwarf2out.c (add_abstract_origin_attribute): Return origin_die.
24455 (gen_variable_die): Emit DW_AT_location on abstract static variable's
24456 DIE, don't emit it if abstract origin already has it.
24457 * tree-cfg.c (remove_useless_stmts_bind): GIMPLE_BINDs with any
24458 BLOCK_NONLOCALIZED_VARS in its gimple_bind_block aren't useless.
24460 2009-03-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
24462 * genpreds.c (needs_variable): Fix parentheses at variable name
24464 (write_tm_constrs_h): Indent generated code.
24466 2009-03-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24468 * doc/extend.texi (Function Attributes): Add documentation
24469 for isr attributes.
24471 2009-03-06 Jakub Jelinek <jakub@redhat.com>
24474 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): For IMPORTED_DECL
24475 take locus from its DECL_SOURCE_LOCATION instead of input_location.
24477 2009-03-05 Bernd Schmidt <bernd.schmidt@analog.com>
24479 * config/bfin/bfin.c (bfin_discover_loop): When retrying fails, mark
24482 2009-03-05 Jakub Jelinek <jakub@redhat.com>
24485 * tree-cfg.c (remove_useless_stmts_bind): Don't remove GIMPLE_BINDs
24486 with blocks containing IMPORTED_DECLs in BLOCK_VARS.
24488 2009-03-05 Uros Bizjak <ubizjak@gmail.com>
24490 * config/i386/i386.md (R8_REG, R9_REG): New constants.
24491 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Use named
24492 constants instead of magic numbers.
24493 (HARD_REGNO_CALLER_SAVE_MODE): Ditto.
24495 * config/i386/i386.c (x86_64_int_parameter_registers): Ditto.
24496 (x86_64_ms_abi_int_parameter_registers): Ditto.
24497 (x86_64_int_return_registers): Ditto.
24498 (ix86_maybe_switch_abi): Ditto.
24499 (ix86_expand_call): Ditto for clobbered_registers array.
24500 (ix86_hard_regno_mode_ok): Ditto.
24501 (x86_extended_QIreg_mentioned_p): Ditto.
24503 2009-03-05 J"orn Rennecke <joern.rennecke@arc.com>
24505 PR tree-optimization/39349
24506 * cse.c (cse_insn): Fix loop to stop at VOIDmode.
24508 * combine.c (gen_lowpart_for_combine): Use omode when generating
24511 2009-03-04 J"orn Rennecke <joern.rennecke@arc.com>
24513 PR rtl-optimization/39235
24514 * loop-iv.c (get_simple_loop_desc): Use XCNEW.
24516 2009-03-04 Zdenek Dvorak <ook@ucw.cz>
24518 * graphite.c (nb_reductions_in_loop): Update simple_iv arguments.
24520 2009-03-04 Richard Guenther <rguenther@suse.de>
24522 PR tree-optimization/39362
24523 * tree-ssa-sccvn.c (visit_use): Stores and copies from SSA_NAMEs
24524 that occur in abnormal PHIs should be varying.
24526 2009-03-04 Zdenek Dvorak <ook@ucw.cz>
24528 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop):
24530 (simple_iv): Take loop as an argument instead of statement.
24531 * tree-scalar-evolution.h (simple_iv): Declaration changed.
24532 * tree-ssa-loop-niter.c (number_of_iterations_exit): Update calls
24534 * tree-ssa-loop-ivopts.c (determine_biv_step, find_givs_in_stmt_scev):
24536 * tree-parloops.c (loop_parallel_p, canonicalize_loop_ivs): Ditto.
24537 * matrix-reorg.c (analyze_transpose): Ditto.
24538 * tree-data-ref.c (dr_analyze_innermost): Ditto.
24539 * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
24540 * tree-predcom.c (ref_at_iteration): Ditto.
24541 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Ditto.
24543 2009-03-04 Richard Guenther <rguenther@suse.de>
24545 PR tree-optimization/39358
24546 * tree-ssa-structalias.c (do_sd_constraint): Fix check for
24547 escaped_id and callused_id.
24548 (solve_graph): Likewise.
24550 2009-03-04 Richard Guenther <rguenther@suse.de>
24552 PR tree-optimization/39339
24553 * tree-sra.c (try_instantiate_multiple_fields): Make it
24554 no longer ICE on the above.
24556 2009-03-03 Joseph Myers <joseph@codesourcery.com>
24558 * emit-rtl.c (adjust_address_1): Reduce offset to a signed value
24559 that fits within Pmode.
24561 2009-03-03 Steve Ellcey <sje@cup.hp.com>
24563 PR middle-end/10109
24564 * tm.texi (LIBCALL_VALUE): Update description.
24566 2009-03-03 Steve Ellcey <sje@cup.hp.com>
24568 PR middle-end/34443
24569 * doc/extend.texi (section): Update description.
24571 2009-03-03 H.J. Lu <hongjiu.lu@intel.com>
24573 PR middle-end/39345
24574 * tree-inline.c (remapped_type): New.
24575 (can_be_nonlocal): Call remapped_type instead of remap_type.
24577 2009-03-03 Jakub Jelinek <jakub@redhat.com>
24580 * gimplify.c (goa_stabilize_expr): Handle tcc_comparison,
24581 TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR.
24583 2009-03-03 Richard Guenther <rguenther@suse.de>
24585 PR middle-end/39272
24586 * tree.c (tree_nonartificial_location): New function.
24587 * tree.h (tree_nonartificial_location): Declare.
24588 * builtins.c (expand_builtin_memory_chk): Provide location
24589 of the call location for artificial function pieces.
24590 (maybe_emit_chk_warning): Likewise.
24591 (maybe_emit_sprintf_chk_warning): Likewise.
24592 (maybe_emit_free_warning): Likewise.
24593 * expr.c (expand_expr_real_1): Likewise.
24595 2009-03-03 Jakub Jelinek <jakub@redhat.com>
24597 PR tree-optimization/39343
24598 * tree-ssa-ccp.c (maybe_fold_offset_to_address): Don't check if
24599 COMPONENT_REF t has ARRAY_TYPE.
24601 2009-03-02 Sebastian Pop <sebastian.pop@amd.com>
24603 PR middle-end/39335
24604 * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
24605 when the type precision of the induction variable should be
24606 larger than the type precision of nit.
24607 (gen_parallel_loop): Update use of canonicalize_loop_ivs.
24608 * graphite.c (graphite_loop_normal_form): Same.
24609 * tree-flow.h (canonicalize_loop_ivs): Update declaration.
24611 2009-03-02 Uros Bizjak <ubizjak@gmail.com>
24613 * config/i386/i386.md (ST?_REG, MM?_REG): New constants.
24614 (*call_1_rex64_ms_sysv): Use named constants instead of magic
24615 numbers to describe clobbered registers.
24616 (*call_value_0_rex64_ms_sysv): Ditto.
24617 * config/i386/mmx.md (mmx_emms): Ditto.
24618 (mmx_femms): Ditto.
24620 2009-03-02 Richard Sandiford <rdsandiford@googlemail.com>
24622 * config/mips/mips.c (mips_mdebug_abi_name): Fix the handling
24625 2009-03-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
24627 * config/spu/spu.c (TARGET_SECTION_TYPE_FLAGS): Define.
24628 (spu_section_type_flags): New function.
24630 2009-03-02 Uros Bizjak <ubizjak@gmail.com>
24632 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not copy
24633 reg_class_contents of FLOAT_REGS into a temporary.
24635 2009-03-02 Richard Guenther <rguenther@suse.de>
24636 Ira Rosen <irar@il.ibm.com>
24638 PR tree-optimization/39318
24639 * tree-vect-transform.c (vectorizable_call): Transfer the EH region
24640 information to the vectorized statement.
24642 2009-03-01 Uros Bizjak <ubizjak@gmail.com>
24644 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not shadow "i"
24645 variable. Use defined names instead of magic constants for REX SSE
24648 2009-03-01 Richard Guenther <rguenther@suse.de>
24650 PR tree-optimization/39331
24651 * omp-low.c (lower_send_shared_vars): Do not receive new
24652 values for the reference of DECL_BY_REFERENCE parms or results.
24654 2009-03-01 Jan Hubicka <jh@suse.cz>
24657 * tree.h (BLOCK_NONLOCALIZED_VARS, BLOCK_NUM_NONLOCALIZED_VARS,
24658 BLOCK_NONLOCALIZED_VAR): New macros.
24659 (tree_block): Add nonlocalized_vars.
24660 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die,
24661 gen_decl_die): Add origin argument. Allow generation of die with
24662 origin at hand only.
24663 (gen_member_die, gen_type_die_with_usage, force_decl_die,
24664 declare_in_namespace, gen_namescpace_die, dwarf2out_decl): Update use
24666 (gen_block_die): Fix checking for unused blocks.
24667 (process_scope_var): Break out from .... ; work with origins only.
24668 (decls_for_scope) ... here; process nonlocalized list.
24669 (dwarf2out_ignore_block): Look for nonlocalized vars.
24670 * tree-ssa-live.c (remove_unused_scope_block_p): Look for nonlocalized
24672 (dump_scope_block): Dump them.
24673 * tree-inline.c (remap_decls): Handle nonlocalized vars.
24674 (remap_block): Likewise.
24675 (can_be_nonlocal): New predicate.
24676 (copy_bind_expr, copy_gimple_bind): Update use of remap_block.
24678 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24680 * configure: Regenerate.
24682 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24684 * optc-gen.awk: No need to duplicate option flags twice.
24685 Reuse help texts for duplicate options which do not have any.
24687 * gcc.c (display_help): Document --version.
24689 * gcc.c (main): If print_help_list and verbose_flag, ensure
24690 driver output comes before subprocess output.
24692 * optc-gen.awk: Assign all remaining fields to help string,
24693 space-separated, for multi-line help in *.opt.
24695 * doc/invoke.texi (Warning Options): -Wsync-nand is C/C++ only.
24696 -Wno-pedantic-ms-format is for MinGW targets only.
24698 * doc/options.texi (Option file format): Fix bad indentation,
24699 restoring dropped sentence.
24701 2009-02-28 Jan Hubicka <jh@suse.cz>
24703 * tree-inline.c (tree_function_versioning): Output debug info.
24705 2009-02-28 Jan Hubicka <jh@suse.cz>
24708 * tree-inline.c (setup_one_parameter): Do not copy propagate
24709 arguments when not optimizing.
24711 2009-02-28 H.J. Lu <hongjiu.lu@intel.com>
24714 * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
24715 (avx_addsubv4df3): Likewise.
24716 (*avx_addsubv4sf3): Likewise.
24717 (sse3_addsubv4sf3): Likewise.
24718 (*avx_addsubv2df3): Likewise.
24719 (sse3_addsubv2df3): Likewise.
24720 (avx_unpckhps256): Correct item selectors.
24721 (avx_unpcklps256): Likewise.
24722 (avx_unpckhpd256): Likewise.
24723 (avx_unpcklpd256): Likewise.
24725 2009-02-28 Jan Hubicka <jh@suse.cz>
24727 * tree-inline.c (expand_call_inline): Avoid duplicate declarations of
24729 (copy_arguments_for_versioning): If var is declared don't declare it.
24730 (tree_function_versioning): First setup substitutions and then copy
24733 2009-02-27 Jan Hubicka <jh@suse.cz>
24736 * cgraph.h (varpool_output_debug_info): Remove.
24737 * cgraphunit.c (varpool_output_debug_info): Remove.
24738 * dwarf2out.c (deferred_locations_struct): New struct
24739 (deferred_locations): New type.
24740 (deferred_locations_list): New static var.
24741 (deffer_location): New function.
24742 (gen_variable_die): Use it.
24743 (decls_for_scope): Output info on local static vars.
24744 (dwarf2out_finish): Process deferred locations.
24745 * varpool.c (varpool_output_debug_info): Remove.
24747 2009-02-27 Jan Hubicka <jh@suse.cz>
24750 * tree.h (TREE_PROTECTED): Fix comment.
24751 (BLOCK_HANDLER_BLOCK): Remove.
24752 (struct tree_block): Remove handler_block add body_block.
24753 (inlined_function_outer_scope_p): New.
24754 (is_body_block): Remove.
24755 * dbxout.c (dbxout_block): Remove BLOCK_HANDLER_BLOCK.
24756 * dwarf2out.c (is_inlined_entry_point): Remove.
24757 (add_high_low_attributes): Use inlined_function_outer_scope_p.
24758 (gen_block_die): Use is_inlined_entry_point check. Remove body block
24760 * langhooks.h (struct lang_hooks): Remove no_bodu_blocks.
24761 * gimplify.c (gimplify_expr): Gimplify body blocks.
24762 * tree-ssa-live.c (remove_unused_scope_block_p): Allow removing wrapper
24763 block with multiple subblocks.
24764 (dump_scope_block): Prettier output; dump more flags and info.
24765 (dump_scope_blocks): New.
24766 (remove_unused_locals): Use dump_scope_blocks.
24767 * tree-flow.h (dump_scope_blocks): Declare.
24768 * tree-cfg.c (execute_build_cfg): Dump scope blocks.
24769 * stmt.c (is_body_block): Remove.
24770 * tree-inline.c (remap_block): Copy BODY_BLOCK info.
24771 * langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): Remove.
24773 2009-02-27 Sebastian Pop <sebastian.pop@amd.com>
24775 PR middle-end/39308
24776 * graphite.c (graphite_loop_normal_form): Do not call
24777 number_of_iterations_exit from a gcc_assert.
24779 2009-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24781 * config/s390/s390.c (s390_swap_cmp): Look for conditional
24782 jumps if COND is NULL.
24783 (find_cond_jump): New function.
24784 (s390_z10_optimize_cmp): Handling for reg-reg compares added.
24785 * config/s390/s390.md: Remove z10_cobra attribute value.
24787 2009-02-26 Uros Bizjak <ubizjak@gmail.com>
24789 * config/alpha/alpha.h (alpha_expand_mov): Return false if
24790 force_const_mem returns NULL_RTX.
24792 2009-02-26 Jan Hubicka <jh@suse.cz>
24795 * cgraph.h (varpool_output_debug_info): Remove.
24796 * cgraphunit.c (varpool_output_debug_info): Remove.
24797 * dwarf2out.c (deferred_locations_struct): New struct
24798 (deferred_locations): New type.
24799 (deferred_locations_list): New static var.
24800 (deffer_location): New function.
24801 (gen_variable_die): Use it.
24802 (decls_for_scope): Output info on local static vars.
24803 (dwarf2out_finish): Process deferred locations.
24804 * varpool.c (varpool_output_debug_info): Remove.
24806 2009-02-25 H.J. Lu <hongjiu.lu@intel.com>
24808 PR rtl-optimization/39241
24809 * jump.c (rtx_renumbered_equal_p): Remove 2 superfluous calls
24810 to subreg_offset_representable_p.
24812 2009-02-25 Paolo Bonzini <bonzini@gnu.org>
24814 * regmove.c (regmove_optimize): Conform to struct rtl_opt_pass
24815 execute function prototype. Get f and nregs from max_reg_num
24816 and get_insns. Remove the first backward pass as it's dead,
24817 guard the forward pass by flag_expensive_optimizations.
24818 (rest_of_handle_regmove): Delete.
24819 (pass_regmove): Replace it with regmove_optimize.
24821 2009-02-25 Martin Jambor <mjambor@suse.cz>
24823 PR tree-optimization/39259
24824 * tree-inline.c (initialize_cfun): Remove asserts for calls_setjmp and
24825 calls_alloca function flags.
24826 (copy_bb): Set calls_setjmp and alls_alloca function flags if such
24827 calls are detected.
24829 2009-02-25 Paolo Bonzini <bonzini@gnu.org>
24831 * regmove.c (discover_flags_reg, flags_set_1, mark_flags_life_zones,
24832 flags_set_1_rtx, flags_set_1_set): Delete.
24833 (regmove_optimize): Do not call mark_flags_life_zones.
24835 2009-02-24 Julian Brown <julian@codesourcery.com>
24838 * config/arm/arm.c (require_pic_register): Only set
24839 cfun->machine->pic_reg once per function.
24841 2009-02-24 Sandra Loosemore <sandra@codesourcery.com>
24843 * doc/invoke.texi (Link Options): Document an easier way to pass
24844 options that take arguments to the GNU linker using -Xlinker and -Wl.
24846 2009-02-24 Steve Ellcey <sje@cup.hp.com>
24849 * doc/tm.texi (TARGET_C99_FUNCTIONS): Fix description.
24851 2009-02-24 Richard Guenther <rguenther@suse.de>
24854 * dwarf2out.c (gen_enumeration_type_die): Handle CONST_DECLs.
24856 2009-02-24 Richard Guenther <rguenther@suse.de>
24857 Zdenek Dvorak <ook@ucw.cz>
24859 PR tree-optimization/39233
24860 * tree-ssa-loop-ivopts.c (add_candidate_1): Do not except pointers
24861 from converting them to a generic type.
24863 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
24865 PR tree-optimization/39260
24866 * graphite.c (harmful_stmt_in_bb): Stop a SCoP when the basic block
24867 contains a condition with a real type.
24868 (build_scop_conditions_1): Conditions are always last_stmt of a bb.
24870 2009-02-23 Jason Merrill <jason@redhat.com>
24873 * varasm.c (initializer_constant_valid_p) [PLUS_EXPR]: Check
24874 narrowing_initializer_constant_valid_p.
24875 (narrowing_initializer_constant_valid_p): Don't return
24876 null_pointer_node for adding a pointer to itself.
24878 2009-02-23 Jan Hubicka <jh@suse.cz>
24881 * ggc.h (htab_create_ggc): Use ggc_free to free hashtable when
24884 2009-02-23 Jan Hubicka <jh@suse.cz>
24886 PR tree-optimization/37709
24887 * tree.c (block_ultimate_origin): Move here from dwarf2out.
24888 * tree.h (block_ultimate_origin): Declare.
24889 * dwarf2out.c (block_ultimate_origin): Move to tree.c
24890 * tree-ssa-live.c (remove_unused_scope_block_p):
24891 Eliminate blocks containig no instructions nor live variables nor
24893 (dump_scope_block): New function.
24894 (remove_unused_locals): Enable removal of dead blocks by default;
24895 enable dumping at TDF_DETAILS.
24897 2009-02-21 H.J. Lu <hongjiu.lu@intel.com>
24899 * config/i386/i386.c (classify_argument): Don't allow COImode
24901 (function_arg_advance_32): Don't allow OImode.
24902 (function_arg_32): Likewise.
24903 (function_value_32): Likewise.
24904 (return_in_memory_32): Likewise.
24905 (function_arg_64): Remove OImode comment.
24907 2009-02-21 H.J. Lu <hongjiu.lu@intel.com>
24910 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
24911 ix86_expand_vector_set for V4DImode in 64bit mode only.
24912 (ix86_expand_vector_init_one_var): Likewise.
24914 2009-02-21 Sebastian Pop <sebastian.pop@amd.com>
24916 * graphite.c (graphite_trans_loop_block): Adjust tile size to 51.
24918 2009-02-21 Richard Sandiford <rdsandiford@googlemail.com>
24921 * loop-iv.c: Revert last change.
24922 * emit-rtl.c: Likewise.
24924 2009-02-21 H.J. Lu <hongjiu.lu@intel.com>
24927 * config/i386/i386.c (type_natural_mode): Remove an extra
24928 space in the warning message.
24929 (function_value_32): Handle 32-byte vector modes.
24930 (return_in_memory_32): Likewise.
24932 2009-02-21 Richard Sandiford <rdsandiford@googlemail.com>
24934 * loop-iv.c (truncate_value): New function.
24935 (iv_subreg, get_iv_value, iv_number_of_iterations): Use it instead
24937 (lowpart_subreg): Move to...
24938 * emit-rtl.c: ...here.
24940 2009-02-21 Danny Smith <dannysmith@users.sourceforge.net>
24942 * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Revert
24943 accidental and undocumented change at revision 140860.
24945 2009-02-21 Joseph Myers <joseph@codesourcery.com>
24947 * config/arm/arm.c (arm_gimplify_va_arg_expr): Update prototype to
24948 take gimple_seq * arguments.
24949 (arm_mangle_type): Use CONST_CAST_TREE on type argument passed to
24950 types_compatible_p langhook.
24952 2009-02-20 Mark Mitchell <mark@codesourcery.com>
24953 Joseph Myers <joseph@codesourcery.com>
24955 * config/arm/arm.c (arm_builtin_va_list): New function.
24956 (arm_expand_builtin_va_start): Likewise.
24957 (arm_gimplify_va_arg_expr): Likewise.
24958 (TARGET_BUILD_BUILTIN_VA_LIST): Define.
24959 (TARGET_BUILD_BUILTIN_VA_START): Likewise.
24960 (TARGET_BUILD_BUILTIN_VA_ARG_EXPR): Likewise.
24961 (va_list_type): New variable.
24962 (arm_mangle_type): Mangle va_list_type appropriately.
24964 2009-02-20 Jakub Jelinek <jakub@redhat.com>
24966 PR middle-end/39157
24967 * Makefile.in (loop-invariant.o): Depend on $(PARAMS_H).
24968 * params.h (LOOP_INVARIANT_MAX_BBS_IN_LOOP): Define.
24969 * params.def (loop-invariant-max-bbs-in-loop): New parameter.
24970 * opts.c (decode_options): Set loop-invariant-max-bbs-in-loop
24971 parameter to 1000 for -O1 by default.
24972 * doc/invoke.texi (loop-invariant-max-bbs-in-loop): Document new
24974 * loop-invariant.c: Include params.h.
24975 (move_loop_invariants): Don't call move_single_loop_invariants on
24978 2009-02-20 Jaka Mocnik <jaka@xlab.si>
24980 * calls.c (emit_library_call_value_1): Use slot_offset instead of
24981 offset when calculating bounds for indexing stack_usage_map. Fixes
24982 a buffer overflow with certain target setups.
24984 2009-02-20 Jakub Jelinek <jakub@redhat.com>
24987 * calls.c (expand_call): Clear try_tail_call if caller and callee
24988 disagree in promotion of function return value.
24990 2009-02-19 Jakub Jelinek <jakub@redhat.com>
24993 * c-common.c (c_determine_visibility): If visibility changed and
24994 DECL_RTL has been already set, call make_decl_rtl to update symbol
24997 2009-02-19 H.J. Lu <hongjiu.lu@intel.com>
25000 * varasm.c (assemble_variable): Don't check DECL_NAME when
25001 globalizing a variable.
25003 2009-02-19 Joseph Myers <joseph@codesourcery.com>
25006 * builtins.c (gimplify_va_arg_expr): Evaluate the va_list
25007 expression before any __builtin_trap call.
25008 * c-typeck.c (build_function_call): Convert and check function
25009 arguments before generating a call to a trap. Evaluate the
25010 function arguments before the trap.
25012 2009-02-19 Uros Bizjak <ubizjak@gmail.com>
25015 * config/i386/i386.md (isinfxf2): Split from isinf<mode>2.
25016 (UNSPEC_FXAM_MEM): New unspec.
25017 (fxam<mode>2_i387_with_temp): New insn and split pattern.
25018 (isinf<mode>2): Use MODEF mode iterator. Force operand[1] through
25019 memory using fxam<mode>2_i387_with_temp to remove excess precision.
25021 2009-02-19 Richard Guenther <rguenther@suse.de>
25023 PR tree-optimization/39207
25024 PR tree-optimization/39074
25025 * tree-ssa-structalias.c (storedanything_id, var_storedanything,
25026 storedanything_tree): New.
25027 (do_ds_constraint): Simplify ANYTHING shortcutting. Update
25028 the STOREDANYTHING solution if the lhs solution contains ANYTHING.
25029 (build_succ_graph): Add edges from STOREDANYTHING to all
25031 (init_base_vars): Initialize STOREDANYTHING.
25032 (compute_points_to_sets): Free substitution info after
25033 building the succ graph.
25034 (ipa_pta_execute): Likewise.
25036 * tree-ssa-structalias.c (struct variable_info): Add may_have_pointers
25038 (do_ds_constraint): Do not add to special var or non-pointer
25040 (type_could_have_pointers): Split out from ...
25041 (could_have_pointers): ... here. For arrays use the element type.
25042 (create_variable_info_for): Initialize may_have_pointers.
25043 (new_var_info): Likewise.
25044 (handle_lhs_call): Make the HEAP variable unknown-sized.
25045 (intra_create_variable_infos): Use a type with pointers for
25046 PARM_NOALIAS, make it unknown-sized.
25048 2009-02-18 H.J. Lu <hongjiu.lu@intel.com>
25051 * config/i386/i386.c (ix86_return_in_memory): Properly check ABI.
25053 2009-02-18 Jason Merrill <jason@redhat.com>
25056 * tree-ssa-ccp.c (get_symbol_constant_value): Don't assume zero
25057 value if DECL_EXTERNAL.
25058 * tree-sra.c (sra_walk_gimple_assign): Likewise.
25059 * target.h (gcc_target::binds_local_p): Clarify "module".
25060 * tree.h (TREE_PUBLIC): Clarify "module".
25062 2009-02-17 Xuepeng Guo <xuepeng.guo@intel.com>
25065 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move the hunk of
25066 initialization for MS_ABI prior to the hunk of !TARGET_MMX.
25068 2009-02-17 H.J. Lu <hongjiu.lu@intel.com>
25071 * c.opt (Wabi): Support C and ObjC.
25074 * c-opts.c (c_common_handle_option): Handle OPT_Wabi.
25076 * config/i386/i386.c (classify_argument): Warn once about the ABI
25077 change when passing union with long double.
25079 * doc/invoke.texi: Update -Wabi for warning psABI changes.
25081 2009-02-18 Joseph Myers <joseph@codesourcery.com>
25084 * c-parser.c (c_parser_compound_statement): Always enter and leave
25087 2009-02-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
25090 * config/darwin.h (SUPPORTS_INIT_PRIORITY): Define.
25092 2009-02-18 Jakub Jelinek <jakub@redhat.com>
25094 PR tree-optimization/36922
25095 * tree-data-ref.c (initialize_matrix_A): Handle BIT_NOT_EXPR.
25096 * tree-scalar-evolution.c (interpret_rhs_expr, instantiate_scev_1):
25099 2009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
25101 * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
25104 2009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
25106 * config/mips/mips.md (type): Reclassify lui_movf as "unknown".
25108 2009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
25110 * config/mips/mips.c (mips_gimplify_va_arg_expr): Fix invalid
25113 2009-02-17 Ruan Beihong <ruanbeihong@gmail.com>
25114 Richard Sandiford <rdsandiford@googlemail.com>
25116 * config/mips/mips.c (CODE_FOR_loongson_biadd): Delete.
25117 * config/mips/loongson.md (reduc_uplus_<mode>): Rename to...
25118 (loongson_biadd): ...this.
25120 2009-02-17 Richard Guenther <rguenther@suse.de>
25122 PR tree-optimization/39202
25123 * tree-ssa-structalias.c (do_structure_copy): Before collapsing
25124 a var make sure to follow existing collapses.
25126 2009-02-17 Richard Guenther <rguenther@suse.de>
25128 PR middle-end/39214
25129 * langhooks.c (lhd_print_error_function): Check for NULL block.
25131 2009-02-17 Richard Guenther <rguenther@suse.de>
25133 PR tree-optimization/39204
25134 * tree-ssa-pre.c (phi_translate_1): Lookup the value-number
25137 2009-02-17 Uros Bizjak <ubizjak@gmail.com>
25139 * config/soft-fp/double.h: Update from glibc CVS.
25141 2009-02-17 Richard Guenther <rguenther@suse.de>
25143 PR tree-optimization/39207
25144 * tree-ssa-structalias.c (find_what_p_points_to): Do not emit
25145 strict-aliasing warnings for pointers pointing to NULL.
25147 2009-02-16 Joseph Myers <joseph@codesourcery.com>
25150 * c-parser.c (c_parser_braced_init): Call pop_init_level when
25151 skipping until next close brace.
25153 2009-02-16 H.J. Lu <hongjiu.lu@intel.com>
25156 * config/i386/i386.c (ix86_expand_push): Set memory alignment
25157 to function argument boundary.
25159 2009-02-16 Hariharan Sandanagobalane <hariharan@picochip.com>
25161 * config/picochip/picochip.md (lea_add): Allow any nonimmediate
25162 in the lea_add. Reload eventually constraints it properly.
25163 * config/picochip/constraints.md: Remove the target constraint
25164 "b", since it is not needed anymore.
25166 2009-02-16 Jakub Jelinek <jakub@redhat.com>
25168 * gthr-dce.h: Uglify function parameter and local variable names.
25169 * gthr-gnat.h: Likewise.
25170 * gthr-mipssde.h: Likewise.
25171 * gthr-nks.h: Likewise.
25172 * gthr-posix95.h: Likewise.
25173 * gthr-posix.h: Likewise.
25174 * gthr-rtems.h: Likewise.
25175 * gthr-single.h: Likewise.
25176 * gthr-solaris.h: Likewise.
25177 * gthr-tpf.h: Likewise.
25178 * gthr-vxworks.h: Likewise.
25179 * gthr-win32.h: Likewise.
25181 2009-02-15 H.J. Lu <hongjiu.lu@intel.com>
25184 * config/i386/i386.md: Restrict the new peephole2 to move
25185 between MMX/SSE registers.
25187 2009-02-15 Richard Guenther <rguenther@suse.de>
25190 2009-02-13 Richard Guenther <rguenther@suse.de>
25192 * configure.ac: Enable LFS.
25193 * configure: Re-generate.
25194 * config.in: Likewise.
25196 2009-02-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
25198 * config/spu/spu_internals.h (spu_sr, spu_sra, spu_srqw,
25199 spu_srqwbyte, spu_srqwbytebc): Define.
25200 * config/spu/spu-builtins.def (spu_sr, spu_sra, spu_srqw,
25201 spu_srqwbyte, spu_srqwbytebc): New overloaded builtins.
25202 * config/spu/spu.md ("shrqbybi_<mode>", "shrqbi_<mode>",
25203 "shrqby_<mode>"): New insn-and-split patterns.
25204 * config/spu/spu.c (expand_builtin_args): Determine and return
25205 number of operands using spu_builtin_description data.
25206 (spu_expand_builtin_1): Use it.
25208 2009-02-13 Steve Ellcey <sje@cup.hp.com>
25211 * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Check
25214 2009-02-13 H.J. Lu <hongjiu.lu@intel.com>
25217 * config/i386/i386.c (override_options): Correct warning
25218 messages for -malign-loops, -malign-jumps and -malign-functions.
25220 2009-02-13 H.J. Lu <hongjiu.lu@intel.com>
25223 * config/i386/i386.md: Restrict the new peephole2 to move
25224 between the general purpose registers.
25226 2009-02-13 H.J. Lu <hongjiu.lu@intel.com>
25229 * config/i386/i386.c (type_natural_mode): Add a new argument.
25230 Return the original mode and warn ABI change if vector size is 32byte.
25231 (function_arg_advance): Updated.
25232 (function_arg): Likewise.
25233 (ix86_function_value): Likewise.
25234 (ix86_return_in_memory): Likewise.
25235 (ix86_sol10_return_in_memory): Likewise.
25236 (ix86_gimplify_va_arg): Likewise.
25237 (function_arg_32): Don't warn ABX ABI change here.
25238 (function_arg_64): Likewise.
25240 2009-02-13 Bernd Schmidt <bernd.schmidt@analog.com>
25242 * loop-iv.c (implies_p): In the final case, test that operands 0
25243 of the two comparisons match.
25245 * config/bfin/bfin.c (find_prev_insn_start): New function.
25246 (bfin_optimize_loop): Use it in some cases instead of PREV_INSN.
25247 (find_next_insn_start): Move.
25249 2009-02-13 Richard Guenther <rguenther@suse.de>
25251 * configure.ac: Enable LFS.
25252 * configure: Re-generate.
25253 * config.in: Likewise.
25255 2009-02-13 Joseph Myers <joseph@codesourcery.com>
25258 * c-parser.c (c_parser_parms_list_declarator): Discard pending
25259 sizes on syntax error after some arguments have been parsed.
25261 2009-02-12 Jakub Jelinek <jakub@redhat.com>
25263 * doc/invoke.texi (-fira): Remove.
25265 2009-02-12 H.J. Lu <hongjiu.lu@intel.com>
25267 * caller-save.c: Replace regclass.c with reginfo.c in comments.
25268 * recog.c: Likewise.
25271 2009-02-12 Uros Bizjak <ubizjak@gmail.com>
25273 * longlong.h (sub_ddmmss): New for ia64. Ported from GMP 4.2.
25274 (umul_ppmm): Likewise.
25275 (count_leading_zeros): Likewise.
25276 (count_trailing_zeros): Likewise.
25277 (UMUL_TIME): Likewise.
25279 2009-02-12 H.J. Lu <hongjiu.lu@intel.com>
25281 * config.gcc (ia64*-*-linux*): Add ia64/t-fprules-softfp and
25282 soft-fp/t-softfp to tmake_file.
25284 * config/ia64/ia64.c (ia64_soft_fp_init_libfuncs): New.
25285 (ia64_expand_compare): Use HPUX library for TFmode only for HPUX.
25286 (ia64_builtins) [IA64_BUILTIN_COPYSIGNQ, IA64_BUILTIN_FABSQ,
25287 IA64_BUILTIN_INFQ]: New.
25288 (ia64_init_builtins): Initialize __builtin_infq,
25289 __builtin_fabsq and __builtin_copysignq if not HPUX.
25290 (ia64_expand_builtin): Handle IA64_BUILTIN_COPYSIGNQ,
25291 IA64_BUILTIN_FABSQ and IA64_BUILTIN_INFQ.
25293 * config/ia64/lib1funcs.asm (__divtf3): Define only if
25295 (__fixtfti): Likewise.
25296 (__fixunstfti): Likewise.
25297 (__floattitf): Likewise.
25299 * config/ia64/libgcc-glibc.ver: New.
25300 * config/ia64/t-fprules-softfp: Likewise.
25301 * config/ia64/sfp-machine.h: Likewise.
25303 * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): New.
25304 (LIBGCC2_TF_CEXT): Likewise.
25305 (TF_SIZE): Likewise.
25306 (TARGET_INIT_LIBFUNCS): Likewise.
25308 * config/ia64/t-glibc (SHLINB_MAPFILES):
25309 Add $(srcdir)/config/ia64/libgcc-glibc.ver.
25311 2009-02-12 H.J. Lu <hongjiu.lu@intel.com>
25313 * config/i386/i386.c (construct_container): Rewrite processing
25314 BLKmode with X86_64_SSE_CLASS.
25316 2009-02-12 Paolo Bonzini <bonzini@gnu.org>
25319 * config/i386/i386.md: Replace simplify_replace_rtx with
25320 replace_rtx in the new peephole2.
25322 2009-02-12 Nathan Sidwell <nathan@codesourcery.com>
25324 * doc/invoke.texi (Optimize Options): Stop claiming inlining and
25325 loop unrolling do not happen at -O2.
25327 2009-02-12 Michael Matz <matz@suse.de>
25329 * gcc.c (ASM_DEBUG_SPEC): Check for -g0.
25331 2009-02-12 Jakub Jelinek <jakub@redhat.com>
25333 * dwarf2out.c (dwarf2out_finish): Force output of comp_unit_die
25336 2009-02-12 Ben Elliston <bje@au.ibm.com>
25338 * config/rs6000/rs6000.md (allocate_stack): Use _stack form of
25339 patterns when updating the back chain. Missed in the 2009-02-10
25342 2009-02-11 Janis Johnson <janis187@us.ibm.com>
25344 * doc/extend.texi (Decimal Floating Types): Update identifier of
25345 draft TR and list of missing support.
25347 2009-02-11 Jakub Jelinek <jakub@redhat.com>
25349 PR middle-end/39154
25350 * gimplify.c (omp_notice_variable): If adding GOVD_SEEN
25351 bit to variable length decl's flags, add it also to its
25352 pointer replacement variable.
25354 2009-02-11 Uros Bizjak <ubizjak@gmail.com>
25355 Jakub Jelinek <jakub@redhat.com>
25358 * config/i386/i386.md (UNSPEC_MEMORY_BLOCKAGE): New constant.
25359 (memory_blockage): New expander.
25360 (*memory_blockage): New insn pattern.
25361 * config/i386/i386.c (ix86_expand_prologue): Use memory_blockage
25362 instead of general blockage at the end of function prologue when
25363 frame pointer is used to access red zone area. Do not emit blockage
25364 when profiling, it is emitted in generic code.
25365 (ix86_expand_epilogue): Emit memory_blockage at the beginning of
25366 function epilogue when frame pointer is used to access red zone area.
25368 2009-02-11 Paolo Bonzini <bonzini@gnu.org>
25371 * config/i386/i386.md: Add two new peephole2 to avoid mov followed
25372 by arithmetic with memory operands.
25373 * config/i386/predicates.md (commutative_operator): New.
25375 2009-02-10 Janis Johnson <janis187@us.ibm.com>
25377 * doc/extend.texi (Fixed-Point Types): Break long paragraphs into
25380 2009-02-10 Eric Botcazou <ebotcazou@adacore.com>
25382 * alias.h (record_alias_subset): Declare.
25383 * alias.c (record_alias_subset): Make global.
25385 2009-02-10 Nick Clifton <nickc@redhat.com>
25387 * tree-parloops.c: Change license to GPLv3.
25388 * ipa-struct-reorg.c: Change license to GPLv3.
25389 * ipa-struct-reorg.h: Change license to GPLv3.
25391 2009-02-10 Steve Ellcey <sje@cup.hp.com>
25394 * c-decl.c (start_struct): Return NULL on error.
25396 2009-02-10 Jakub Jelinek <jakub@redhat.com>
25398 PR middle-end/39124
25399 * cfgloopmanip.c (remove_path): Call remove_bbs after
25400 cancel_loop_tree, not before it.
25403 * function.h (struct function): Add has_local_explicit_reg_vars bit.
25404 * gimplify.c (gimplify_bind_expr): Set it if local DECL_HARD_REGISTER
25405 VAR_DECLs were seen.
25406 * tree-ssa-live.c (remove_unused_locals): Recompute
25407 cfun->has_local_explicit_reg_vars.
25408 * tree-ssa-sink.c (statement_sink_location): Don't sink BLKmode
25409 copies or clearings if cfun->has_local_explicit_reg_vars.
25411 2009-02-10 Uros Bizjak <ubizjak@gmail.com>
25414 * config/i386/i386.c (expand_prologue): Emit blockage at the end
25415 of function prologue when frame pointer is used to access
25418 2009-02-10 Richard Guenther <rguenther@suse.de>
25420 PR middle-end/39127
25421 * gimplify.c (gimple_regimplify_operands): Always look if
25422 we need to create a temporary.
25424 2009-02-10 Richard Guenther <rguenther@suse.de>
25426 PR tree-optimization/39132
25427 * tree-loop-distribution.c (todo): New global var.
25428 (generate_memset_zero): Trigger TODO_rebuild_alias.
25429 (tree_loop_distribution): Return todo.
25431 2009-02-10 H.J. Lu <hongjiu.lu@intel.com>
25434 * config/i386/i386.c (x86_64_reg_class): Remove X86_64_AVX_CLASS.
25435 (x86_64_reg_class_name): Removed.
25436 (classify_argument): Return 0 if bytes > 32. Return 0 if the
25437 first one isn't X86_64_SSE_CLASS or any other ones aren't
25438 X86_64_SSEUP_CLASS when size > 16bytes. Don't turn
25439 X86_64_SSEUP_CLASS into X86_64_SSE_CLASS if the preceded one
25440 is X86_64_SSEUP_CLASS. Set AVX modes to 1 X86_64_SSE_CLASS
25441 and 3 X86_64_SSEUP_CLASS.
25442 (construct_container): Remove X86_64_AVX_CLASS. Handle 4
25443 registers with 1 X86_64_SSE_CLASS and 3 X86_64_SSEUP_CLASS.
25445 2009-02-10 Ben Elliston <bje@au.ibm.com>
25447 * config/rs6000/rs6000.md (allocate_stack): Always use an update
25448 form instruction to update the stack back chain word, even if the
25449 user has disabled the generation of update instructions.
25450 (movdi_<mode>_update_stack): New.
25451 (movsi_update_stack): Likewise.
25452 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Likewise,
25453 always use an update form instruction to update the stack back
25456 2009-02-09 Sebastian Pop <sebastian.pop@amd.com>
25458 PR middle-end/38953
25459 * graphite.c (if_region_set_false_region): After moving a region in
25460 the false branch of a condition, remove the empty dummy basic block.
25461 (gloog): Remove wrong fix for PR38953.
25463 2009-02-09 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
25465 * config/spu/spu.c (array_to_constant): Fix (latent) wrong-code
25466 generation due to implicit sign extension.
25468 2009-02-09 Eric Botcazou <ebotcazou@adacore.com>
25470 PR middle-end/38981
25471 * tree-ssa-coalesce.c (add_coalesce): Cap the costs of coalesce pairs
25472 at MUST_COALESCE_COST-1 instead of MUST_COALESCE_COST.
25474 2009-02-09 Richard Guenther <rguenther@suse.de>
25476 PR middle-end/35202
25477 * convert.c (convert_to_real): Disable (float)fn((double)x)
25478 to fnf(x) conversion if errno differences may occur and
25479 -fmath-errno is set.
25481 2009-02-07 Anatoly Sokolov <aesok@post.ru>
25483 * config/avr/avr.c (avr_mcu_t): Add ata6289 device.
25484 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
25485 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
25487 2009-02-06 Joseph Myers <joseph@codesourcery.com>
25490 * c-common.c (handle_alias_attribute): Disallow attribute for
25491 anything not a FUNCTION_DECL or VAR_DECL.
25493 2009-02-06 Janis Johnson <janis187@us.ibm.com>
25496 * real.c (do_compare): Special-case compare of zero against
25497 decimal float value.
25499 2009-02-06 Joseph Myers <joseph@codesourcery.com>
25502 * c-decl.c (grokdeclarator): Don't treat [] declarators in fields
25503 as indicating flexible array members unless the field itself is
25504 being declarared as the incomplete array.
25506 2009-02-06 Jan Hubicka <jh@suse.cz>
25508 PR tree-optimization/38844
25509 * ipa-inline.c (try_inline): Stop inlining recursion when edge
25510 is already inlined.
25512 2009-02-06 Richard Guenther <rguenther@suse.de>
25514 PR middle-end/38977
25515 * tree-cfg.c (need_fake_edge_p): Force a fake edge for
25516 fork because we may expand it as __gcov_fork.
25518 2009-02-06 Nick Clifton <nickc@redhat.com>
25520 * config/m32c/m32c.h (PCC_BITFIELD_TYPE_MATTERS): Define to zero.
25522 2009-02-06 Paolo Bonzini <bonzini@gnu.org>
25524 PR tree-optimization/35659
25525 * tree-ssa-sccvn.c (vn_constant_eq, vn_reference_eq, vn_nary_op_eq
25526 vn_phi_eq): Shortcut if hashcode does not match.
25527 (vn_reference_op_compute_hash): Do not call iterative_hash_expr for
25529 * tree-ssa-pre.c (pre_expr_hash): Look at hashcode if available,
25530 and avoid iterative_hash_expr.
25531 (FOR_EACH_VALUE_ID_IN_SET): New.
25532 (value_id_compare): Remove.
25533 (sorted_array_from_bitmap_set): Use FOR_EACH_VALUE_ID_IN_SET to
25534 sort expressions by value id.
25536 2009-02-05 Kaz Kojima <kkojima@gcc.gnu.org>
25539 * config/sh/predicates.md (general_movsrc_operand): Don't check
25540 the subreg of system registers here.
25542 2009-02-05 Jakub Jelinek <jakub@redhat.com>
25545 * cgraphunit.c (cgraph_function_versioning): Clear also DECL_VIRTUAL_P
25546 on the copied decl.
25548 2009-02-05 Paolo Bonzini <bonzini@gnu.org>
25550 PR rtl-optimization/39110
25551 * rtlanal.c (rtx_addr_can_trap_p_1): Shortcut unaligned
25552 addresses, not aligned ones.
25554 2009-02-05 Daniel Berlin <dberlin@dberlin.org>
25555 Richard Guenther <rguenther@suse.de>
25557 PR tree-optimization/39100
25558 * tree-ssa-structalias.c (do_ds_constraint): Actually do what the
25559 comment says and add edges.
25561 2009-02-05 Joseph Myers <joseph@codesourcery.com>
25564 * c-common.c (handle_tls_model_attribute): Ignore attribute for
25565 non-VAR_DECLs without checking DECL_THREAD_LOCAL_P.
25567 2009-02-04 Tobias Grosser <grosser@fim.uni-passau.de>
25569 * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use,
25570 sese_build_livein_liveouts_bb, sese_build_livein_liveouts,
25571 register_bb_in_sese, new_sese, free_sese): Moved.
25572 (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains,
25573 outermost_loop_in_scop, build_scop_iteration_domain,
25574 expand_scalar_variables_ssa_name, get_vdef_before_scop,
25575 limit_scops): Use bb_in_sese_p instead of bb_in_scop_p.
25576 Use loop_in_sese_p instead of loop_in_scop_p.
25577 (new_graphite_bb, gloog): Do not initialize SCOP_BBS_B.
25578 (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP and SCOP_BBS_B.
25579 (scopdet_basic_block_info): Fix bug in scop detection.
25580 (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
25581 eq_loop_to_cloog_loop): Remove.
25582 (nb_loops_around_loop_in_scop, nb_loop
25583 ref_nb_loops): Moved here...
25584 * graphite.h (ref_nb_loops): ... from here.
25585 (struct scop): Remove bbs_b bitmap and loop2cloog_loop.
25586 (loop_domain_dim, loop_iteration_vector_dim): Remove.
25587 (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed.
25589 2009-02-04 Paolo Bonzini <bonzini@gnu.org>
25590 Hans-Peter Nilsson <hp@axis.com>
25592 PR rtl-optimization/37889
25593 * rtlanal.c (rtx_addr_can_trap_p_1): Add offset and size arguments.
25594 Move offset handling from PLUS to before the switch. Use new
25595 arguments when considering SYMBOL_REFs too.
25596 (rtx_addr_can_trap_p): Pass dummy offset and size.
25597 (enum may_trap_p_flags): Remove.
25598 (may_trap_p_1): Pass size from MEM_SIZE.
25600 PR rtl-optimization/38921
25601 * loop-invariant.c (find_invariant_insn): Use may_trap_or_fault_p.
25602 * rtl.h (may_trap_after_code_motion_p): Delete prototype.
25603 * rtlanal.c (may_trap_after_code_motion_p): Delete.
25604 (may_trap_p, may_trap_or_fault_p): Pass 0/1 as flags.
25606 2009-02-04 H.J. Lu <hongjiu.lu@intel.com>
25608 AVX Programming Reference (January, 2009)
25609 * config/i386/sse.md (*vpclmulqdq): New.
25611 2009-02-04 Jakub Jelinek <jakub@redhat.com>
25613 PR tree-optimization/38977
25614 PR gcov-profile/38292
25615 * calls.c (special_function_p): Disregard __builtin_ prefix.
25617 2009-02-04 Hariharan Sandanagobalane <hariharan@picochip.com>
25619 * config/picochip/picochip.c (GO_IF_LEGITIMATE_ADDRESS): Disallow
25620 non-indexable addresses even before reload.
25622 2009-02-03 Joseph Myers <joseph@codesourcery.com>
25625 * c-decl.c (grokdeclarator): Mark [*] arrays in field declarators
25626 as having variable size. Do not give an error for unnamed
25627 parameters with [*] declarators. Give a warning for type names
25628 with [*] declarators and mark them as variable size.
25629 * c-parser.c (c_parser_sizeof_expression): Do not give an error
25630 for sizeof applied to [*] type names.
25632 2009-02-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
25635 * convert.c (convert_to_integer): Treat OFFSET_TYPE like INTEGER_TYPE.
25637 2009-02-03 Jakub Jelinek <jakub@redhat.com>
25639 * gcc.c (process_command): Update copyright notice dates.
25640 * gcov.c (print_version): Likewise.
25641 * gcov-dump.c (print_version): Likewise.
25642 * mips-tfile.c (main): Likewise.
25643 * mips-tdump.c (main): Likewise.
25645 2009-02-03 Joseph Myers <joseph@codesourcery.com>
25648 * c-typeck.c (composite_type): Set TYPE_SIZE and TYPE_SIZE_UNIT
25649 for composite type involving a zero-length array type.
25651 2009-02-03 Jakub Jelinek <jakub@redhat.com>
25654 * function.c (match_asm_constraints_1): Skip over
25655 initial optional % in the constraint.
25657 PR inline-asm/39059
25658 * c-parser.c (c_parser_postfix_expression): If fixed point is not
25659 supported, don't accept FIXED_CSTs.
25660 * c-decl.c (finish_declspecs): Error if fixed point is not supported
25661 and _Sat is used without _Fract/_Accum. Set specs->type to
25662 integer_type_node for cts_fract/cts_accum if fixed point is not
25665 2009-02-02 Catherine Moore <clm@codesourcery.com>
25667 * sde.h (SUBTARGET_ARM_SPEC): Don't assemble -fpic code as -mabicalls.
25669 2009-02-02 Richard Sandiford <rdsandiford@googlemail.com>
25671 * config/mips/mips.h (FILE_HAS_64BIT_SYMBOLS): New macro.
25672 (ABI_HAS_64BIT_SYMBOLS): Use it.
25673 (DWARF2_ADDR_SIZE): Use it instead of ABI_HAS_64BIT_SYMBOLS.
25675 2009-02-02 Paul Brook <paul@codesourcery.com>
25677 * config/arm/arm.md (arm_addsi3): Add r/r/k alternative.
25679 2009-02-02 Jakub Jelinek <jakub@redhat.com>
25681 PR inline-asm/39058
25682 * recog.h (asm_operand_ok): Add constraints argument.
25683 * recog.c (asm_operand_ok): Likewise. If it is set, for digits
25684 recurse on matching constraint.
25685 (check_asm_operands): Pass constraints as 3rd argument to
25686 asm_operand_ok. Don't look up matching constraint here.
25687 * stmt.c (expand_asm_operands): Pass NULL as 3rd argument
25690 2009-02-02 Ben Elliston <bje@au.ibm.com>
25692 * doc/tm.texi (Storage Layout): Fix TARGET_ALIGN_ANON_BITFIELD and
25693 TARGET_NARROW_VOLATILE_BITFIELD macro names.
25695 2009-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
25697 * doc/install.texi (hppa*-hp-hpux*): Update binutils and linker
25698 information. Remove some obsolete information. Reorganize.
25700 * config/pa/fptr.c: Revert license to GPL 2.
25701 * config/pa/milli64.S: Likewise.
25703 2009-01-31 Dave Korn <dave.korn.cygwin@gmail.com>
25706 * mkmap-flat.awk (END): Use pe_dll command-line arg to pass
25707 LIBRARY name in, instead of hard-coding it.
25708 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add an
25709 extra target make frag to tmake_files according to EH model.
25710 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
25711 * config/i386/t-dw2-eh, config/i386/t-sjlj-eh: Add new target
25712 frags that define makefile variable EH_MODEL appropriately.
25713 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Add comment.
25714 * config/i386/cygwin.h (LIBGCC_EH_EXTN): Define to nothing or
25715 to "-sjlj" according to type of EH configured.
25716 (LIBGCC_SONAME): Concatenate it to shared library base name.
25717 * config/i386/mingw32.h (LIBGCC_EH_EXTN): Define to "_dw2" or
25718 to "_sjlj" according to type of EH configured.
25719 (LIBGCC_SONAME): Concatenate it to shared library base name.
25720 * config/i386/t-cygming (SHLIB_SONAME): Use EH_MODEL.
25721 (SHLIB_LINK): Add missing semicolon to if-else construct.
25722 (SHLIB_MKMAP_OPTS): Pass library name to mkmap-flat.awk as
25723 string value of "pe_dll" command-line option.
25724 * config/i386/t-cygwin (SHLIB_EH_EXTENSION): New helper.
25725 (SHLIB_SONAME): Use it when overriding t-cygming default.
25726 (SHLIB_IMPLIB): Override t-cygming default.
25727 (SHLIB_MKMAP_OPTS): Pass library name to mkmap-flat.awk as
25728 string value of "pe_dll" command-line option.
25730 2009-01-31 Dave Korn <dave.korn.cygwin@gmail.com>
25733 * config/i386/i386.c (ix86_builtin_setjmp_frame_value): New.
25734 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Override default to point at it.
25736 2009-01-31 Richard Guenther <rguenther@suse.de>
25738 PR tree-optimization/38937
25739 * tree-ssa-structalias.c (do_sd_constraint): Do not shortcut
25740 computing the transitive closure.
25742 2009-01-30 Richard Guenther <rguenther@suse.de>
25744 PR tree-optimization/39041
25745 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
25746 Propagate variable indices only if the types match for this stmt.
25748 2009-01-30 Jakub Jelinek <jakub@redhat.com>
25751 * c-decl.c (pop_scope): Set DECL_EXTERNAL for functions declared
25752 inline but never defined.
25754 2009-01-30 Wolfgang Gellerich <gellerich@de.ibm.com>
25756 * config/s390/s390.md (*insv<mode>_reg_extimm): Removed.
25757 (*insv_h_di_reg_extimm): New insn.
25758 (*insv_l<mode>_reg_extimm): New insn.
25760 2009-01-30 Hariharan Sandanagobalane <hariharan@picochip.com>
25762 * config/picochip/picochip.c (flag_conserve_stack): set
25763 PARAM_LARGE_STACK_FRAME and PARAM_STACK_FRAME_GROWTH to zero under
25764 fconserve-stack. Reduce call-overhead used by inliner.
25766 2009-01-30 Hariharan Sandanagobalane <hariharan@picochip.com>
25769 * common.opt (flag_conserve_stack): Initialised to zero.
25771 2009-01-30 Kai Tietz <kai.tietz@onevision.com>
25774 * config/i386/i386.c (ix86_can_use_return_insn_p): Check for nsseregs.
25775 (ix86_expand_epilogue): Take nsseregs in account to use proper restore
25778 2009-01-29 H.J. Lu <hongjiu.lu@intel.com>
25780 * ira-color.c (allocno_reload_assign): Update comments.
25781 * regmove.c (regmove_optimize): Likewise.
25785 2009-01-29 Robert Millan <rmh@aybabtu.com>
25787 * config.gcc: Recognize GNU/kOpenSolaris (*-*-kopensolaris*-gnu).
25788 * config/i386/kopensolaris-gnu.h: New file. Undefine
25789 `MD_UNWIND_SUPPORT'.
25790 * config/kopensolaris-gnu.h: New file (based on kfreebsd-gnu.h).
25792 2009-01-29 Kazu Hirata <kazu@codesourcery.com>
25794 PR tree-optimization/39007
25795 * tree-loop-distribution.c (generate_builtin): Use
25796 recompute_dominator to compute the immediate dominator of the
25797 basic block just after the loop.
25799 2009-01-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
25801 * config/i386/sol2-10.h [!HAVE_AS_IX86_DIFF_SECT_DELTA]
25802 (ASM_OUTPUT_DWARF_PCREL): Define.
25804 2009-01-29 Vladimir Makarov <vmakarov@redhat.com>
25806 * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Modify description.
25807 * doc/passes.texi: Remove entries about regclass, local-alloc, and
25808 global. Modify entries about regmove and IRA.
25810 * ra-conflict.c: Remove the file.
25812 * reload.c (push_reload, find_dummy_reload): Remove flag_ira.
25814 * tree-pass.h (pass_local_alloc, pass_global_alloc): Remove.
25815 (pass_regclass_init): Rename to pass_reginfo_init.
25817 * cfgloopanal.c (estimate_reg_pressure_cost): Remove flag_ira.
25819 * toplev.h (flag_ira): Remove.
25821 * caller-save.c (setup_save_areas): Remove flag_ira.
25823 * ira-color.c (ira_reuse_stack_slot, ira_mark_new_stack_slot): Ditto.
25825 * global.c: Remove the file.
25827 * opts.c (decode_options): Remove flag_ira.
25829 * hard-reg-set.h (losing_caller_save_reg_set): Remove.
25831 * regmove.c: Modify file description.
25832 (find_use_as_address, try_auto_increment): Define them only if
25833 AUTO_INC_DEC is defined.
25834 (replacement_quality, replace_in_call_usage, fixup_match_1,
25835 stable_and_no_regs_but_for_p): Remove.
25836 (reg_set_in_bb): Make it static.
25837 (regmove_optimize): Remove flag_ira and code which worked for
25840 * local-alloc.c: Remove the file.
25842 * common.opt (fira): Remove.
25844 * ira.c: Include except.h.
25845 (eliminable_regset): Move from global.c.
25846 (mark_elimination): Ditto. Remove flag_ira.
25847 (reg_renumber, struct equivalence, reg_equiv, equiv_mem,
25848 equiv_mem_modified, validate_equiv_mem_from_store,
25849 validate_equiv_mem, equiv_init_varies_p, equiv_init_movable_p,
25850 contains_replace_regs, memref_referenced_p, memref_used_between_p,
25851 no_equiv, recorded_label_ref): Move from local-alloc.c.
25852 (update_equiv_regs): Ditto. Make it static.
25853 (print_insn_chain, print_insn_chains): Move it from global.c.
25854 (pseudo_for_reload_consideration_p): Ditto. Remove flag_ira.
25855 (build_insn_chain): Ditto. Make it static.
25856 (ra_init_live_subregs): Move from ra-conflict.c. Make it static.
25857 Rename to init_live_subregs.
25858 (gate_ira): Remove flag_ira.
25860 * regclass.c: Rename reginfo.c. Change file description.
25861 (FORBIDDEN_INC_DEC_CLASSES): Remove.
25862 (reg_class_superclasses, forbidden_inc_dec_class, in_inc_dec): Remove.
25863 (init_reg_sets_1): Remove code for evaluation of
25864 reg_class_superclasses and losing_caller_save_reg_set.
25865 (init_regs): Remove init_reg_autoinc.
25866 (struct costs, costs, init_cost, ok_for_index_p_nonstrict,
25867 ok_for_base_p_nonstrict): Remove.
25868 (regclass_init): Rename to reginfo_init. Don't initialize init_cost.
25869 (pass_regclass_init): Rename to pass_reginfo_init. Modify
25870 corresponding entries.
25871 (dump_regclass, record_operand_costs, scan_one_insn,
25872 init_reg_autoinc, regclass, record_reg_classes, copy_cost,
25873 record_address_regs, auto_inc_dec_reg_p): Remove.
25874 (gt-regclass.h): Rename to gt-reginfo.h.
25876 * rtl.h (dump_global_regs, retry_global_alloc,
25877 build_insn_chain, dump_local_alloc, update_equiv_regs): Remove.
25879 * Makefile.in (RA_H): Remove.
25880 (OBJS-common): Remove global.o, local-alloc.o, and ra-conflict.o.
25881 Rename regclass.o to reginfo.o.
25882 (regclass.o): Rename to reginfo.o. Rename gt-regclass.h to
25884 (global.o, local-alloc.o, ra-conflict.o): Remove entries.
25885 (GTFILES): Rename regclass.c to reginfo.c.
25887 * passes.c (init_optimization_passes): Remove pass_local_alloc and
25888 pass_global_alloc. Rename pass_regclass_init to pass_reginfo_init.
25890 * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
25891 count_spilled_pseudo, find_reg, alter_reg, delete_output_reload):
25893 (finish_spills): Ditto. Remove code for !flag_ira.
25895 2009-01-29 Kenneth Zadeck <zadeck@naturalbridge.com>
25897 PR middle-end/35854
25898 * doc/invoke.texi (rtl debug options): Complete rewrite.
25899 * auto-inc-dec.c (pass_inc_dec): Rename pass from "auto-inc-dec"
25901 * mode-switching.c (pass_mode_switching): Rename pass from
25902 "mode-sw" to "mode_sw".
25903 * except.c (pass_convert_to_eh_ranges): Rename pass from
25904 "eh-ranges" to "eh_ranges".
25905 * lower-subreg.c (pass_lower_subreg): Renamed pass from "subreg"
25909 2009-01-29 Andrey Belevantsev <abel@ispras.ru>
25910 Alexander Monakov <amonakov@ispras.ru>
25912 PR middle-end/38857
25913 * sel-sched.c (count_occurrences_1): Check that *cur_rtx is a hard
25915 (move_exprs_to_boundary): Change return type and pass through
25916 should_move from move_op. Relax assert. Update usage ...
25917 (schedule_expr_on_boundary): ... here. Use should_move instead of
25919 (move_op_orig_expr_found): Indicate that insn was disconnected from
25921 (code_motion_process_successors): Do not call after_merge_succs
25922 callback if original expression was not found when traversing any of
25924 (code_motion_path_driver): Change return type. Update prototype.
25925 (move_op): Update comment. Add a new parameter (should_move). Update
25926 prototype. Set *should_move based on indication provided by
25927 move_op_orig_expr_found.
25929 2009-01-28 Pat Haugen <pthaugen@us.ibm.com>
25931 * doc/invoke.texi (avoid-indexed-addresses): Document new option.
25932 * config/rs6000/rs6000-protos.h (avoiding_indexed_address_p): Declare.
25933 * config/rs6000/rs6000.opt (avoid-indexed-addresses): New option.
25934 * config/rs6000/rs6000.c (rs6000_override_options): Default
25935 avoid-indexed-addresses on for Power6, off for everything else.
25936 (avoiding_indexed_address_p): New function.
25937 (rs6000_legitimize_address): Use it.
25938 (rs6000_legitimate_address): Likewise.
25939 * config/rs6000/rs6000.md (movXX_updateX): Likewise
25941 2009-01-28 Kazu Hirata <kazu@codesourcery.com>
25943 PR tree-optimization/38997
25944 * tree-loop-distribution.c (generate_memset_zero): Use
25945 POINTER_PLUS_EXPR for a pointer addition.
25947 2009-01-28 Andreas Krebbel <krebbel1@de.ibm.com>
25949 * config/s390/s390.md (bswap<mode>2): New pattern added.
25951 2009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
25953 * config/s390/s390.md (*tls_load_31): Added type attribute.
25955 2009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
25957 * config/s390/s390.md: Fix a few comments.
25959 2009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
25961 * config/s390/s390.md (*tmsi_reg): Fixed z10prop attribute.
25962 (*tm<mode>_full): Fixed z10prop attribute.
25963 (*tst<mode>_extimm): Fixed z10prop attribute.
25964 (*tst<mode>_cconly_extimm): Fixed z10prop attribute.
25965 (*tstqiCCT_cconly): Fixed z10prop attribute.
25966 (*cmpsi_ccu_zerohi_rlsi): Fixed z10prop attribute.
25967 (*movsi_larl): Fixed z10prop attribute.
25968 (*movsi_zarch): Fixed z10prop attribute.
25969 (*movsi_eas): Fixed z10prop attribute.
25970 (*movhi): Fixed z10prop attribute.
25971 (*movqi): Fixed z10prop attribute.
25972 (*movstrictqi): Fixed z10prop attribute.
25973 (*mov<mode>): Fixed z10prop attribute.
25974 (*movcc): Fixed z10prop attribute.
25975 (*sethighpartdi_64): Fixed z10prop attribute.
25976 (*zero_extendhi<mode>2_z10): Fixed z10prop attribute.
25977 (*negdi2_sign_cc): Fixed z10prop attribute.
25978 (*negdi2_sign): Fixed z10prop attribute.
25979 (*absdi2_sign_cc): Fixed z10prop attribute.
25980 (*absdi2_sign): Fixed z10prop attribute.
25981 (*negabsdi2_sign_cc): Fixed z10prop attribute.
25982 (*negabsdi2_sign): Fixed z10prop attribute.
25983 (*cmp_and_trap_signed_int<mode>): Fixed z10prop attribute.
25984 (*cmp_and_trap_unsigned_int<mode>): Fixed z10prop attribute.
25985 (doloop_si64): Fixed z10prop attribute.
25986 (doloop_si31): Fixed z10prop attribute.
25987 (doloop_long): Fixed z10prop attribute.
25988 (indirect_jump): Fixed z10prop attribute.
25989 (nop): Fixed z10prop attribute.
25990 (main_base_64): Fixed z10prop attribute.
25991 (reload_base_64): Fixed z10prop attribute.
25993 2009-01-28 Jakub Jelinek <jakub@redhat.com>
25995 PR rtl-optimization/38740
25996 * reorg.c (gate_handle_delay_slots): Avoid dbr scheduling
25998 * config/mips/mips.c (mips_reorg): Likewise.
26000 2009-01-28 Richard Guenther <rguenther@suse.de>
26002 PR tree-optimization/38926
26003 * tree-ssa-pre.c (add_to_value): Assert we add only expressions
26004 with the correct value id to a value.
26005 (do_regular_insertion): Use the value number of edoubleprime
26006 for the value number of the expr.
26009 2008-08-21 Richard Guenther <rguenther@suse.de>
26011 * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
26012 a PHI ask VN if it is already available.
26013 * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
26014 * tree-ssa-sccvn.c (vn_phi_lookup): Export.
26016 2009-01-28 Jakub Jelinek <jakub@redhat.com>
26018 PR middle-end/38934
26019 * tree-vrp.c (extract_range_from_assert): For LE_EXPR and LT_EXPR
26020 set to varying whenever max has TREE_OVERFLOW set, similarly
26021 for GE_EXPR and GT_EXPR and TREE_OVERFLOW min.
26023 2009-01-28 Richard Guenther <rguenther@suse.de>
26025 PR middle-end/38908
26026 * tree-ssa.c (warn_uninitialized_var): Do not warn for seemingly
26027 uninitialized aggregate uses in call arguments.
26029 2009-01-28 Paolo Bonzini <bonzini@gnu.org>
26031 PR tree-optimization/38984
26032 * tree-ssa-structalias.c (get_constraints_for_1): Do not use
26033 the nothing_id variable if -fno-delete-null-pointer-checks.
26035 2009-01-28 Uros Bizjak <ubizjak@gmail.com>
26038 * config/i386/i386.md (set_rip_rex64): Wrap operand 1 in label_ref.
26039 (set_got_offset_rex64): Ditto.
26041 2009-01-27 H.J. Lu <hongjiu.lu@intel.com>
26044 * doc/extend.texi: Improve local variable with asm reg.
26046 2009-01-27 Adam Nemet <anemet@caviumnetworks.com>
26048 * c.opt (Wpacked-bitfield-compat): Change init value to -1.
26049 * c-opts.c (c_common_post_options): If -W*packed-bitfield-compat
26050 was not supplied then set warn_packed_bitfield_compat to the
26051 default value of 1.
26052 * stor-layout.c (place_field): Check warn_packed_bitfield_compat
26055 2009-01-27 Richard Guenther <rguenther@suse.de>
26057 PR tree-optimization/38503
26058 * cfgexpand.c (expand_gimple_basic_block): Ignore
26059 GIMPLE_CHANGE_DYNAMIC_TYPE during expansion.
26060 * tree-ssa-structalias.c (set_uids_in_ptset): Do not prune
26061 variables that cannot have TBAA applied.
26062 (compute_points_to_sets): Do not remove GIMPLE_CHANGE_DYNAMIC_TYPE
26065 2009-01-27 Uros Bizjak <ubizjak@gmail.com>
26067 PR middle-end/38969
26068 * calls.c (initialize_argument_information): Do not wrap complex
26069 arguments in SAVE_EXPR.
26071 2009-01-26 Andreas Tobler <a.tobler@schweiz.org>
26073 * config/t-vxworks (LIBGCC2_INCLUDES): Fix typo.
26074 (INSTALL_LIBGCC): Revert typo commit.
26076 2009-01-26 Richard Guenther <rguenther@suse.de>
26078 PR tree-optimization/38745
26079 * tree-ssa-alias.c (update_alias_info_1): Exclude RESULT_DECL
26080 from special handling.
26082 2009-01-26 Richard Guenther <rguenther@suse.de>
26084 PR tree-optimization/38745
26085 * tree-ssa.c (execute_update_addresses_taken): Do not include
26086 variables that cannot possibly be a register in not_reg_needs.
26087 Do not clear TREE_ADDRESSABLE on vars that may not become
26089 * tree-ssa.c (update_alias_info_1): Include those in the set
26090 of addressable vars.
26092 2009-01-26 Richard Guenther <rguenther@suse.de>
26094 PR middle-end/38851
26095 * Makefile.in (tree-ssa-dse.o): Add langhooks.h.
26096 * tree-ssa-dse.c: Include langhooks.h
26097 (execute_simple_dse): Remove stores with zero size.
26099 2009-01-24 Jakub Jelinek <jakub@redhat.com>
26102 * c-typeck.c (c_finish_return): Handle POINTER_PLUS_EXPR the same way
26105 2009-01-24 Julian Brown <julian@codesourcery.com>
26107 * config/arm/t-linux-eabi (LIB2FUNCS_STATIC_EXTRA): Add
26108 config/arm/linux-atomic.c.
26109 * config/arm/linux-atomic.c: New.
26111 2009-01-24 Eric Botcazou <ebotcazou@adacore.com>
26113 * config/sparc/linux.h (DBX_REGISTER_NUMBER): Delete.
26114 * config/sparc/linux64.h (DBX_REGISTER_NUMBER): Likewise.
26115 * config/sparc/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
26117 2009-01-24 H.J. Lu <hongjiu.lu@intel.com>
26120 * c-opts.c (c_common_handle_option): Update warn_pointer_sign
26123 2009-01-24 Sebastian Pop <sebastian.pop@amd.com>
26125 PR tree-optimization/38953
26126 * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa.
26127 (scop_adjust_phis_for_liveouts): Initialize false_i to zero.
26128 (gloog): Split the exit of the scop when the scop exit is a loop exit.
26129 (graphite_transform_loops): Only call cleanup_tree_cfg if gloog
26132 2009-01-24 Paul Brook <paul@codesourcery.com>
26134 * config/arm/neon.md (neon_type): Move to arm.md.
26135 (neon_mov<VSTRUCT>): Add neon_type attribute.
26136 * config/arm/arm.md (neon_type): Move to here.
26137 (conds): Add "unconditioal" and use as default for NEON insns.
26139 2009-01-24 Ben Elliston <bje@au.ibm.com>
26141 * bitmap.h (BITMAP_FREE): Eliminate `implicit conversion from
26142 void *' warning from -Wc++-compat.
26143 * Makefile.in (dominance.o-warn): Remove.
26145 2009-01-23 Paolo Bonzini <bonzini@gnu.org>
26147 PR tree-optimization/38932
26148 * fold-const.c (fold_unary_ignore_overflow): New.
26149 * tree.h (fold_unary_ignore_overflow): Declare.
26150 * tree-ssa-ccp.c (ccp_fold): Use fold_unary_ignore_overflow.
26151 * tree-ssa-sccvn.c (visit_reference_op_load,
26152 simplify_unary_expression): Likewise.
26154 2009-01-22 Adam Nemet <anemet@caviumnetworks.com>
26156 * c-decl.c (finish_struct): Move code to set DECL_PACKED after
26157 DECL_BIT_FIELD is alreay known. Also inherit packed for bitfields
26158 regardless of their type.
26159 * c-common.c (handle_packed_attribute): Don't ignore packed on
26161 * c.opt (Wpacked-bitfield-compat): New warning option.
26162 * stor-layout.c (place_field): Warn if offset of a field changed.
26163 * doc/extend.texi (packed): Mention the ABI change.
26164 * doc/invoke.texi (-Wpacked-bitfield-compat): Document.
26165 (Warning Options): Add it to the list.
26167 2009-01-22 H.J. Lu <hongjiu.lu@intel.com>
26169 * c-opts.c (c_common_post_options): Fix a typo in comments.
26171 2009-01-22 Steve Ellcey <sje@cup.hp.com>
26173 PR middle-end/38615
26174 * gimplify.c (gimplify_init_constructor): Fix promotion of const
26175 variables to static.
26176 * doc/invoke.texi (-fmerge-all-constants): Update description.
26178 2009-01-22 Uros Bizjak <ubizjak@gmail.com>
26181 * config/i386/i386.md (*movsi_1): Use type "mmx" for alternative 2.
26182 (*movdi_1_rex64): Use type "mmx" for alternative 5.
26184 2009-01-22 Richard Earnshaw <rearnsha@arm.com>
26186 * arm.h (DATA_ALIGNMENT): Align structures, unions and arrays to
26188 (LOCAL_ALIGNMENT): Similarly.
26190 2009-01-22 Mark Shinwell <shinwell@codesourcery.com>
26191 Joseph Myers <joseph@codesourcery.com>
26193 * config/arm/arm.c (all_architectures): Add iWMMXt2 entry.
26194 * config/arm/arm-cores.def: New ARM_CORE entry for iWMMXt2.
26195 * config/arm/arm-tune.md: Regenerate.
26196 * doc/invoke.texi (ARM Options): Document -mcpu=iwmmxt2 and
26199 2009-01-22 Mark Shinwell <shinwell@codesourcery.com>
26201 * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Bump EABI
26202 version number to five.
26204 2009-01-22 Dodji Seketeli <dodji@redhat.com>
26207 * c-decl.c (clone_underlying_type): Revert PR c++/26693 changes.
26208 * c-common.c (set_underlying_type): Likewise.
26209 (is_typedef_decl ): Likewise
26211 (set_underlying_type): Likewise.
26212 (is_typedef_type): Likewise.
26214 2009-01-21 Vladimir Makarov <vmakarov@redhat.com>
26216 PR middle-end/38587
26217 * ira-color.c (coalesce_spill_slots): Don't coalesce allocnos
26220 2009-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
26223 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): New helper macro.
26224 (LIBGCC_SPEC): Don't define.
26225 (REAL_LIBGCC_SPEC): Define instead, using SHARED_LIBGCC_SPEC.
26227 2009-01-21 Uros Bizjak <ubizjak@gmail.com>
26229 PR rtl-optimization/38879
26230 * alias.c (base_alias_check): Unaligned access via AND address can
26231 alias all surrounding object types except those with sizes equal
26232 or wider than the size of unaligned access.
26234 2009-01-21 Dodji Seketeli <dodji@redhat.com>
26237 * c-decl.c (clone_underlying_type): Move this ...
26238 * c-common.c (set_underlying_type): ... here.
26239 Also, make sure the function properly sets TYPE_STUB_DECL() on
26240 the newly created typedef variant type.
26241 (is_typedef_decl ): New entry point.
26242 * tree.h: Added a new member member_types_needing_access_check to
26243 struct tree_decl_non_common.
26244 (set_underlying_type): New entry point.
26245 (is_typedef_type): Likewise.
26247 2009-01-21 Bingfeng Mei <bmei@broadcom.com>
26249 * alias.c (walk_mems_1, walk_mems_2, insn_alias_sets_conflict_p):
26250 Check whether two instructions have memory references that
26251 belong to conflicting alias sets. walk_mems_1 and walk_mems_2
26252 are helper functions for traversing.
26253 * alias.h (insn_alias_sets_confilict_p): New prototypes.
26254 * ddg.c (add_inter_loop_mem_dep): Call insn_alias_sets_conflict_p
26255 not to draw dependency edge for instructions with non-conflicting
26258 2009-01-20 Joseph Myers <joseph@codesourcery.com>
26261 * longlong.h: Update copyright years. Use soft-fp license notice.
26262 Sync __clz_tab declaration with glibc.
26264 2009-01-20 Steve Ellcey <sje@cup.hp.com>
26267 * doc/extend.texi (syscall_linkage): New.
26268 (version_id): Modify.
26270 2009-01-20 Andrew Pinski <andrew_pinski@playstation.sony.com>
26271 Richard Guenther <rguenther@suse.de>
26273 PR tree-optimization/38747
26274 PR tree-optimization/38748
26275 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Disable the VCE
26276 conversion if the base address is an indirect reference and the
26277 aliasing sets could cause issues.
26279 2009-01-20 Sebastian Pop <sebastian.pop@amd.com>
26281 * common.opt (fgraphite, fgraphite-identity): Add comment for
26282 explaining why these options are not documented.
26284 2009-01-20 Sebastian Pop <sebastian.pop@amd.com>
26286 * graphite.c (stmt_simple_for_scop_p): Also handle cases when
26287 gimple_call_lhs is NULL.
26289 2009-01-20 Paolo Bonzini <bonzini@gnu.org>
26292 * emit-rtl.c (adjust_address_1): Make sure memref is never
26295 2009-01-20 Ben Elliston <bje@au.ibm.com>
26297 * libgcov.c (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
26298 const qualifier from arg parameter. Remove unnecessary cast to char *.
26299 * gcov-io.h (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
26300 const qualifier from arg 2.
26302 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
26304 * config/darwin.h: Add static-libgfortran to LINK_SPEC.
26306 2009-01-19 Vladimir Makarov <vmakarov@redhat.com>
26309 * rtl.h (reinit_regs): New prototype.
26310 * regclass.c: Include ira.h.
26311 (reinit_regs): New.
26312 * Makefile.in (regclass.o): Add ira.h.
26313 * config/i386/i386.c (ix86_maybe_switch_abi): Use reinit_regs.
26315 2009-01-18 H.J. Lu <hongjiu.lu@intel.com>
26318 * c-common.c (handle_aligned_attribute): Use
26319 ATTRIBUTE_ALIGNED_VALUE instead of BIGGEST_ALIGNMENT for
26320 default alignment value.
26322 * c-cppbuiltin.c (c_cpp_builtins): Define __BIGGEST_ALIGNMENT__.
26324 * defaults.h (ATTRIBUTE_ALIGNED_VALUE): New.
26325 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Likewise.
26327 * doc/extend.texi: Update __attribute__ ((aligned)). Document
26328 __BIGGEST_ALIGNMENT__.
26330 * doc/tm.texi: Document ATTRIBUTE_ALIGNED_VALUE.
26332 2009-01-18 Richard Guenther <rguenther@suse.de>
26334 PR tree-optimization/38819
26335 * tree-flow.h (operation_could_trap_helper_p): Declare.
26336 * tree-eh.c (operation_could_trap_helper_p): Export.
26337 * tree-ssa-sccvn.h (vn_nary_may_trap): Declare.
26338 * tree-ssa-sccvn.c (vn_nary_may_trap): New function.
26339 * tree-ssa-pre.c (insert_into_preds_of_block): Check if we
26340 are about to insert a possibly trapping instruction and fail
26343 2009-01-18 Andreas Schwab <schwab@suse.de>
26345 * doc/install.texi (Configuration): Remove obsolete paragraph
26346 about use of --with-gnu-ld with --with-gnu-as.
26348 2009-01-18 Kazu Hirata <kazu@codesourcery.com>
26350 * doc/extend.texi, doc/gimple.texi, doc/invoke.texi,
26351 doc/md.texi, doc/sourcebuild.texi, doc/tm.texi: Fix typos.
26352 Follow spelling conventions.
26354 2009-01-18 Ben Elliston <bje@au.ibm.com>
26356 * bitmap.c (bitmap_obstack_alloc_stat): Adjust cast to eliminate
26357 C++ warning about implicit conversion from void * to struct
26359 (bitmap_obstack_free): Likewise for bitmap_element *.
26360 * Makefile.in (bitmap.o-warn): Remove.
26362 2009-01-17 Dave Korn <dave.korn.cygwin@gmail.com>
26364 * Makefile.in (BACKENDLIBS): Reorder to match dependencies.
26366 2009-01-17 Sebastian Pop <sebastian.pop@amd.com>
26367 Tobias Grosser <tobi.grosser@amd.com>
26369 * graphite.c (graphite_trans_scop_block): Do not block single
26372 2009-01-16 Alexandre Oliva <aoliva@redhat.com>
26374 * ebitmap.h (ebitmap_iter_init): Initialize all fields.
26375 * ipa-struct-reorg.c (gen_struct_type): Replace known-true
26376 test with assertion.
26378 2009-01-16 Richard Guenther <rguenther@suse.de>
26380 PR tree-optimization/38835
26381 PR middle-end/36227
26382 * fold-const.c (fold_binary): Remove PTR + INT -> (INT)(PTR p+ INT)
26383 and INT + PTR -> (INT)(PTR p+ INT) folding.
26384 * tree-ssa-address.c (create_mem_ref): Properly use POINTER_PLUS_EXPR.
26386 2009-01-16 Adam Nemet <anemet@caviumnetworks.com>
26389 * expmed.c (expand_shift): With SHIFT_COUNT_TRUNCATED, don't lift
26390 the subreg from a lowpart subreg if it is also casting the value.
26392 2009-01-16 Sebastian Pop <sebastian.pop@amd.com>
26393 Tobias Grosser <tobi.grosser@amd.com>
26395 * graphite.c (compare_prefix_loops): New.
26396 (build_scop_canonical_schedules): Rewritten.
26397 (graphite_transform_loops): Move build_scop_canonical_schedules
26398 after build_scop_iteration_domain.
26400 2009-01-16 Sebastian Pop <sebastian.pop@amd.com>
26401 Tobias Grosser <tobi.grosser@amd.com>
26403 * graphite.c (add_conditions_to_domain): Add the loops to
26404 the dimension of the iteration domain. Do copy the domain
26405 only when it exists.
26406 (build_scop_conditions_1): Do not call add_conditions_to_domain.
26407 (add_conditions_to_constraints): New.
26408 (can_generate_code_stmt, can_generate_code): Removed.
26409 (gloog): Do not call can_generate_code.
26410 (graphite_transform_loops): Call add_conditions_to_constraints
26411 after building the iteration domain.
26413 2009-01-16 Jakub Jelinek <jakub@redhat.com>
26415 PR tree-optimization/38789
26416 * tree-ssa-threadedge.c
26417 (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
26418 __builtin_constant_p.
26420 2009-01-16 Kenneth Zadeck <zadeck@naturalbridge.com>
26422 * dce.c (delete_unmarked_insns): Reversed the order that insns are
26423 examined before deleting them.
26425 2009-01-16 Richard Earnshaw <rearnsha@arm.com>
26427 * function.c (aggregate_value_p): Correctly extract the function
26428 type from CALL_EXPR_FN lookup.
26430 2009-01-16 Hariharan Sandanagobalane <hariharan@picochip.com>
26432 * config/picochip/picochip.c (picochip_override_options): Revert
26433 CFI asm flag disable commited previously.
26435 2009-01-15 Sebastian Pop <sebastian.pop@amd.com>
26436 Tobias Grosser <tobi.grosser@amd.com>
26437 Jan Sjodin <jan.sjodin@amd.com>
26439 * graphite.c (scan_tree_for_params): On substractions negate
26440 all the coefficients of the term.
26441 (clast_to_gcc_expression_red): New. Handle reduction expressions
26442 of more than two operands.
26443 (clast_to_gcc_expression): Call clast_to_gcc_expression_red.
26444 (get_vdef_before_scop): Handle also the case of default definitions.
26446 2009-01-15 Richard Sandiford <rdsandiford@googlemail.com>
26448 * caller-save.c (add_used_regs_1, add_used_regs): New functions.
26449 (insert_one_insn): Use them instead of REG_DEAD and REG_INC notes.
26450 Also use them when walking CALL_INSN_FUNCTION_USAGE.
26452 2009-01-15 H.J. Lu <hongjiu.lu@intel.com>
26453 Joey Ye <joey.ye@intel.com>
26455 PR middle-end/37843
26456 * cfgexpand.c (expand_stack_alignment): Don't update stack
26457 boundary nor check incoming stack boundary here.
26458 (gimple_expand_cfg): Update stack boundary and check incoming
26459 stack boundary here.
26461 2009-01-15 Kenneth Zadeck <zadeck@naturalbridge.com>
26463 * dce.c (find_call_stack_args, delete_unmarked_insns): Fixed comments.
26465 2009-01-14 Jakub Jelinek <jakub@redhat.com>
26467 PR rtl-optimization/38245
26468 * calls.c (expand_call): Add stack arguments to
26469 CALL_INSN_FUNCTION_USAGE even for pure calls (when
26470 ACCUMULATE_OUTGOING_ARGS) and even for args partially passed
26471 in regs and partially in memory or BLKmode arguments.
26472 (emit_library_call_value_1): Add stack arguments to
26473 CALL_INSN_FUNCTION_USAGE even for pure calls (when
26474 ACCUMULATE_OUTGOING_ARGS).
26475 * dce.c: Include tm_p.h.
26476 (find_call_stack_args): New function.
26477 (deletable_insn_p): Call it for CALL_P insns. Add ARG_STORES
26479 (mark_insn): Call find_call_stack_args for CALL_Ps.
26480 (prescan_insns_for_dce): Walk insns backwards in bb rather than
26481 forwards. Allocate and free arg_stores bitmap if needed, pass it
26482 down to deletable_insn_p, don't mark stores set in arg_stores
26483 bitmap, clear the bitmap at the beginning of each bb.
26484 * Makefile.in (dce.o): Depend on $(TM_P_H).
26486 2009-01-14 Michael Meissner <gnu@the-meissners.org>
26489 * config/i386/i386.c (print_operand): Add tests for 'D', 'C', 'F', 'f'
26490 to make sure the insn is a conditional test (bug 22599). Reformat a
26493 2009-01-14 Sebastian Pop <sebastian.pop@amd.com>
26495 PR middle-end/38431
26496 * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New.
26497 (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi.
26498 (gloog): Do not call cleanup_tree_cfg.
26499 (graphite_transform_loops): Call cleanup_tree_cfg after all
26500 scops have been code generated.
26502 2009-01-14 Basile Starynkevitch <basile@starynkevitch.net>
26503 * doc/gty.texi (Invoking the garbage collector): Added new node
26504 and section documenting ggc_collect.
26506 2009-01-14 Richard Guenther <rguenther@suse.de>
26508 PR tree-optimization/38826
26509 PR middle-end/38477
26510 * tree-ssa-structalias.c (emit_alias_warning): Emit the pointer
26511 initialization notes only if we actually emitted a warning.
26512 (intra_create_variable_infos): Add constraints for a result decl
26513 that is passed by hidden reference.
26514 (build_pred_graph): Mark all related variables non-direct on
26517 2009-01-14 Nick Clifton <nickc@redhat.com>
26519 * ira-conflicts.c: Include addresses.h for the definition of
26521 (ira_build_conflicts): Use base_reg_class instead of BASE_REG_CLASS.
26522 * Makefile.in: Add a dependency of ira-conflicts.o on addresses.h.
26524 2009-01-13 Vladimir Makarov <vmakarov@redhat.com>
26527 * Makefile.in (ira-lives.o): Add except.h.
26529 * ira-lives.c: Include except.h.
26530 (process_bb_node_lives): Process can_throw_internal.
26532 2009-01-13 Jakub Jelinek <jakub@redhat.com>
26534 PR rtl-optimization/38774
26535 * combine.c (simplify_set): When undoing cc_use change, don't do
26536 PUT_CODE on the newly created comparison, but instead put back the
26539 2009-01-13 Joseph Myers <joseph@codesourcery.com>
26541 * doc/invoke.texi (ARM Options): Update lists of -mcpu and -march
26542 values. Remove duplicate arm8 entry.
26544 2009-01-13 Sebastian Pop <sebastian.pop@amd.com>
26546 PR tree-optimization/38786
26547 * graphite.c (expand_scalar_variables_ssa_name): New, outlined from
26548 the SSA_NAME case of expand_scalar_variables_expr.
26549 Set the type of an expression to the type of its assign statement.
26550 (expand_scalar_variables_expr): Also gather the scalar computation
26551 used to index the memory access. Do not pass loop_p.
26552 Fix comment. Stop recursion on tcc_constant or tcc_declaration.
26553 (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr
26554 the gimple_stmt_iterator where it inserts new code.
26555 Do not pass loop_p.
26556 (copy_bb_and_scalar_dependences): Do not pass loop_p.
26557 (translate_clast): Update call to copy_bb_and_scalar_dependences.
26559 2009-01-13 Sebastian Pop <sebastian.pop@amd.com>
26561 * graphite.h (debug_value): Removed.
26562 * graphite.c (debug_value): Removed.
26564 2009-01-13 Richard Earnshaw <rearnsha@arm.com>
26566 * config/arm/arm.c (output_move_double): Don't synthesize thumb-2
26567 ldrd/strd with two 32-bit instructions.
26569 2009-01-13 Richard Earnshaw <rearnsha@arm.com>
26571 * config/arm/arm.c (struct processors): Pass for speed down into
26572 cost helper functions.
26573 (const_ok_for_op): Handle COMPARE and inequality nodes.
26574 (arm_rtx_costs_1): Rewrite.
26575 (arm_size_rtx_costs): Update prototype.
26576 (arm_rtx_costs): Pass speed down to helper functions.
26577 (arm_slowmul_rtx_costs): Rework cost calculations.
26578 (arm_fastmul_rtx_costs, arm_xscale_rtx_costs): Likewise.
26579 (arm_9e_rtx_costs): Likewise.
26581 2009-01-13 Uros Bizjak <ubizjak@gmail.com>
26583 * config/alpha/alpha.c (alpha_legitimate_address_p): Explicit
26584 relocations of local symbols wider than UNITS_PER_WORD are not valid.
26585 (alpha_legitimize_address): Do not split local symbols wider than
26586 UNITS_PER_WORD into HIGH/LO_SUM parts.
26588 2009-01-13 Danny Smith <dannysmith@users.sourceforge.net>
26591 * gcc.c (process_command): Replace call to execvp with calls
26592 to pex_one and exit.
26594 2009-01-03 Anatoly Sokolov <aesok@post.ru>
26597 * config/avr/t-avr (LIB1ASMFUNCS): Add _tablejump_elpm.
26598 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Add
26599 variant for devices with 3-byte PC.
26600 (__tablejump_elpm__): New.
26602 2009-01-12 Jakub Jelinek <jakub@redhat.com>
26605 * c-parser.c (c_parser_postfix_expression): Allow `->' in
26606 offsetof member-designator, handle it as `[0].'.
26608 2009-01-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
26610 * pa.c (pa_asm_output_mi_thunk): Use pc-relative branch to thunk
26611 function when not using named sections on targets with named sections
26612 if branch distance is less than 262132.
26614 2009-01-12 Richard Earnshaw <rearnsha@arm.com>
26616 * combine.c (combine_instructions): Recompute
26617 optimize_this_for_speed_p for each BB in the main combine loop.
26619 2009-01-12 Tomas Bily <tbily@suse.cz>
26622 * tree-loop-distribution.c (prop_phis): New function.
26623 (generate_builtin): Call prop_phis.
26625 2009-01-12 Jakub Jelinek <jakub@redhat.com>
26627 PR tree-optimization/38807
26628 * tree-ssa-reassoc.c (remove_visited_stmt_chain): Don't look at
26629 gimple_visited_p unless stmt is GIMPLE_ASSIGN.
26631 2009-01-11 Adam Nemet <anemet@caviumnetworks.com>
26633 * expmed.c (store_bit_field_1): Properly truncate the paradoxical
26634 subreg of op0 to the original op0.
26636 2009-01-11 Laurent GUERBY <laurent@guerby.net>
26638 * doc/sourcebuild.texi (Source Tree): Move up intl and fixinc.
26640 2009-01-11 Markus Schoepflin <markus.schoepflin@comsoft.de>
26643 * mips-tfile.c (parse_def): Fix parsing of def strings
26644 starting with digits.
26646 2009-01-10 Jakub Jelinek <jakub@redhat.com>
26649 * config/arm/arm.c (arm_is_long_call_p): Don't call
26650 arm_function_in_section_p if decl isn't a FUNCTION_DECL.
26652 2009-01-09 Steven Bosscher <steven@gcc.gnu.org>
26654 * regrename.c (regrename_optimize): Fix dumping.
26655 (find_oldest_value_reg): Preserve REG_POINTER.
26656 (copy_hardreg_forward_1): Likewise.
26658 2009-01-09 Diego Novillo <dnovillo@google.com>
26660 * gimple.h (struct gimple_statement_base) <uid>: Document
26661 the restrictions on its use.
26662 (gimple_uid): Tidy.
26663 (gimple_set_uid): Tidy.
26665 2009-01-09 Jakub Jelinek <jakub@redhat.com>
26667 * config/i386/i386.c (ix86_expand_movmem, ix86_expand_setmem): Add
26668 zero guard even if align_bytes != 0 and count is smaller than
26671 2009-01-09 Vladimir Makarov <vmakarov@redhat.com>
26673 PR rtl-optimization/38495
26674 * ira-emit.c (print_move_list, ira_debug_move_list): New functions.
26675 (add_range_and_copies_from_move_list): Print all added ranges.
26676 Add ranges to memory optimized destination.
26678 2009-01-09 Jakub Jelinek <jakub@redhat.com>
26682 * config/i386/i386.c (override_options): Reject
26683 -mstringop-strategy=rep_8byte with -m32.
26684 (ix86_expand_movmem): For size_needed == 1 set epilogue_size_needed
26685 to 1. Do count comparison against epilogue_size_needed at compile
26686 time even when count_exp was constant forced into register. For
26687 size_needed don't jump to epilogue, instead just avoid aligning
26688 and invoke the body algorithm. If need_zero_guard, add zero guard
26689 even if count is non-zero, but smaller than size_needed + number of
26690 bytes that could be stored for alignment.
26691 (ix86_expand_setmem): For size_needed == 1 set epilogue_size_needed
26692 to 1. If need_zero_guard, add zero guard even if count is non-zero,
26693 but smaller than size_needed + number of bytes that could be stored
26694 for alignment. Compare size_needed with epilogue_size_needed instead
26695 of desired_align - align, don't adjust size_needed, pass
26696 epilogue_size_needed to the epilogue expanders.
26699 * c-pretty-print.c (pp_c_expression): Handle GOTO_EXPR like BIND_EXPR.
26701 2009-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
26703 * pa.c (last_address): Change to unsigned.
26704 (update_total_code_bytes): Change argument to unsigned. Don't
26705 check if insn addresses are set.
26706 (pa_output_function_epilogue): Set last_address to UINT_MAX if insn
26707 addresses are not set.
26708 (pa_asm_output_mi_thunk): Handle wrap when updating last_address.
26710 2009-01-09 Nick Clifton <nickc@redhat.com>
26712 * config/sh/symbian.c: Replace uses of DECL_INLINE with
26713 DECL_DECLARED_INLINE_P.
26715 2009-01-09 Jakub Jelinek <jakub@redhat.com>
26717 PR middle-end/38347
26718 * dojump.c (do_jump_by_parts_zero_rtx): Use mode instead of
26719 GET_MODE (op0) in operand_subword_force calls.
26721 PR middle-end/38771
26722 * fold-const.c (fold_unary): For COMPOUND_EXPR and COND_EXPR,
26723 fold_convert arg0 operands to TREE_TYPE (op0) first.
26725 2009-01-08 Vladimir Makarov <vmakarov@redhat.com>
26727 * params.def (ira-max-conflict-table-size): Decrease default value
26730 2009-01-08 Jakub Jelinek <jakub@redhat.com>
26732 PR tree-optimization/37031
26733 * lambda-code.c (lambda_collect_parameters): Call pointer_set_destroy
26735 (build_access_matrix): Reserve correct size for AM_MATRIX vector,
26736 allocate it using gc instead of heap, use VEC_quick_push instead of
26738 * graphite.c (build_access_matrix): Allocate AM_MATRIX vector using gc
26739 instead of heap, use VEC_quick_push instead of VEC_safe_push.
26740 * tree-data-ref.h (struct access_matrix): Change matrix to gc
26741 allocated vector from heap allocated.
26742 * lambda.h: Add DEF_VEC_ALLOC_P for gc allocated lambda_vector.
26743 * tree-loop-linear.c (linear_transform_loops): Allocate nest
26744 vector only after perfect_loop_nest_depth call.
26746 2009-01-08 Sebastian Pop <sebastian.pop@amd.com>
26747 Jan Sjodin <jan.sjodin@amd.com>
26749 PR tree-optimization/38559
26750 * graphite.c (debug_value, copy_constraint,
26751 swap_constraint_variables, scale_constraint_variable, ): New.
26752 (get_lower_bound, get_upper_bound): Removed.
26753 (graphite_trans_bb_strip_mine): Clean up this code that works
26754 only for constant number of iterations. Fully copy upper and
26755 lower bound constraints, not only the constant part of them.
26756 * graphite.h (debug_value): Declared.
26758 2009-01-08 Ira Rosen <irar@il.ibm.com>
26760 PR tree-optimization/37194
26761 * tree-vect-transform.c (vect_estimate_min_profitable_iters):
26762 Don't add the cost of cost model guard in prologue to scalar
26763 outside cost in case of known number of iterations.
26765 2009-01-07 Nathan Froyd <froydnj@codesourcery.com>
26766 Alan Modra <amodra@bigpond.net.au>
26768 * config/rs6000/rs6000.c (rs6000_legitimize_address): Check for
26769 non-word-aligned REG+CONST addressing.
26771 2009-01-07 Uros Bizjak <ubizjak@gmail.com>
26774 * config/alpha/alpha.c (alpha_end_function): For TARGET_ABI_OSF, call
26775 free_after_compilation when outputting a thunk.
26776 (alpha_output_mi_thunk_osf): Assert that we are processing a thunk.
26777 Do not call free_after_compilation here.
26779 2009-01-07 Uros Bizjak <ubizjak@gmail.com>
26781 * config/i386/i386.c (ix86_target_string): Use ARRAY_SIZE.
26782 (ix86_valid_target_attribute_inner_p): Ditto.
26784 2009-01-07 Jan Sjodin <jan.sjodin@amd.com>
26786 PR tree-optimization/38492
26787 PR tree-optimization/38498
26788 * tree-check.c (operator_is_linear, scev_is_linear_expression): New.
26789 * tree-chrec.h (scev_is_linear_expression): Declared.
26790 * graphite.c (graphite_cannot_represent_loop_niter): New.
26791 (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter.
26792 (graphite_loop_normal_form): Use gcc_assert.
26793 (scan_tree_for_params): Use CASE_CONVERT.
26794 (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New.
26795 (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes.
26796 Use gcc_assert. Discard scops that contain unhandled cases.
26797 (build_scop_conditions): Return a boolean status for unhandled cases.
26798 (strip_mine_profitable_p): Print the loop number, not its depth.
26799 (is_interchange_valid): Pass the depth of the loop nest, don't
26800 recompute it wrongly.
26801 (graphite_trans_bb_block): Same.
26802 (graphite_trans_bb_block): Print tentative of loop blocking.
26803 (graphite_trans_scop_block): Do not print that the loop has been
26805 (graphite_transform_loops): Do not handle scops that contain condition
26808 2009-01-07 H.J. Lu <hongjiu.lu@intel.com>
26810 AVX Programming Reference (December, 2008)
26811 * config/i386/avxintrin.h (_mm256_stream_si256): New.
26812 (_mm256_stream_pd): Likewise.
26813 (_mm256_stream_ps): Likewise.
26815 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVNTDQ256,
26816 IX86_BUILTIN_MOVNTPD256 and IX86_BUILTIN_MOVNTPS256.
26817 (ix86_special_builtin_type): Add VOID_FTYPE_PV4DI_V4DI.
26818 (bdesc_special_args): Add __builtin_ia32_movntdq256,
26819 __builtin_ia32_movntpd256 and __builtin_ia32_movntps256.
26820 (ix86_init_mmx_sse_builtins): Handle VOID_FTYPE_PV4DI_V4DI.
26821 (ix86_expand_special_args_builtin): Likewise.
26823 * config/i386/sse.md (AVXMODEDI): New.
26824 (avx_movnt<mode>): Likewise.
26825 (avx_movnt<mode>): Likewise.
26826 (<sse>_movnt<mode>): Remove AVX support.
26827 (sse2_movntv2di): Likewise.
26829 2009-01-07 Richard Guenther <rguenther@suse.de>
26831 PR middle-end/38751
26832 * fold-const.c (extract_muldiv): Remove obsolete comment.
26833 (fold_plusminus_mult_expr): Undo MINUS_EXPR
26834 to PLUS_EXPR canonicalization for the canonicalization.
26836 2009-01-07 Gerald Pfeifer <gerald@pfeifer.com>
26838 * doc/install.texi (alpha*-dec-osf*): Remove note on 32-bit
26839 hosted cross-compilers generating less efficient code.
26841 2009-01-06 Richard Sandiford <rdsandiford@googlemail.com>
26843 * function.h (rtl_data): Add a dbr_scheduled_p field.
26844 * reorg.c (dbr_schedule): Set it.
26845 (gate_handle_delay_slots): Check it.
26846 * config/mips/mips.c (mips_base_delayed_branch): Delete.
26847 (mips_reorg): Check flag_delayed_branch instead of
26848 mips_base_delayed_branch.
26849 (mips_override_options): Don't set mips_base_delayed_branch
26850 or flag_delayed_branch.
26852 2009-01-06 Richard Sandiford <rdsandiford@googlemail.com>
26854 PR rtl-optimization/38426.
26855 * ira.c (ira): Set current_function_is_leaf earlier.
26857 2009-01-06 Jakub Jelinek <jakub@redhat.com>
26859 PR rtl-optimization/38722
26860 * combine.c (try_combine): Don't modify PATTERN (i3) and notes
26861 too early, only set a flag and modify after last possible
26864 2009-01-06 Janis Johnson <janis187@us.ibm.com>
26867 * ginclude/float.h: Rename DECnn_DEN to DECnn_SUBNORMAL_MIN.
26868 * real.c (decimal_single_format): Correct values of emin and emax.
26869 (decimal_double_format): Ditto.
26870 (decimal_quad_format): Ditto.
26871 * c-cppbuiltin.c (builtin_define_decimal_float_constants): Adjust
26872 computation of DECnn_MIN and DECnn_MAX for corrected values of
26873 emin and emax. Define __DECnn_SUBNORMAL_MIN__ instead of
26874 __DECnn_MIN__, and adjust its computation for the corrected value
26877 2009-01-06 Jan Hubicka <jh@suse.cz>
26880 * config/i386/i386.c (ix86_expand_call): Use ARRAY_SIZE.
26882 2009-01-06 Gerald Pfeifer <gerald@pfeifer.com>
26884 * doc/contrib.texi (Contributors): Slightly adjust the end note.
26885 Add Robert Clark to the list of testers.
26887 2009-01-06 Jan Hubicka <jh@suse.cz>
26888 Kai Tietz <kai.tietz@onevision.com>
26890 * config/i386/i386.md (*msabi_syvabi): Add SSE regs clobbers.
26891 * config/i386/i386.c (ix86_expand_call): Add clobbers.
26893 2009-01-06 Jan Hubicka <jh@suse.cz>
26894 Kai Tietz <kai.tietz@onevision.com>
26896 * config/i386/i386.h (CONDITIONAL_CALL_USAGE): SSE regs are not used
26898 * config/i386/i386.c (struct ix86_frame): Add padding0 and nsseregs.
26899 (ix86_nsaved_regs): Count only general purpose regs.
26900 (ix86_nsaved_sseregs): New.
26901 (ix86_compute_frame_layout): Update nsseregs; set preferred alignment
26902 to 16 for w64; compute padding and size of sse reg save area.
26903 (ix86_emit_save_regs, ix86_emit_save_regs_using_mov): Save only
26904 general purpose regs.
26905 (ix86_emit_save_sse_regs_using_mov): New.
26906 (ix86_expand_prologue): Save SSE regs if needed.
26907 (ix86_emit_restore_regs_using_mov): Use only general purpose regs.
26908 (ix86_emit_restore_sse_regs_using_mov): New.
26909 (ix86_expand_epilogue): Save SSE regs if needed.
26911 2009-01-06 Jan Hubicka <jh@suse.cz>
26912 Kai Tietz <kai.tietz@onevision.com>
26914 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Enable for MSABI
26915 * config/i386/i386.c (init_cumulative_args): Disallow calls of MSABI
26916 functions when accumulate outgoing args is off.
26918 2009-01-06 H.J. Lu <hongjiu.lu@intel.com>
26921 * ira-color.c (ira_reuse_stack_slot): Check ENABLE_IRA_CHECKING
26922 before using pseudos_have_intersected_live_ranges_p.
26924 * ira-int.h (ira_assert): Always define.
26926 2009-01-06 H.J. Lu <hongjiu.lu@intel.com>
26928 AVX Programming Reference (December, 2008)
26929 * config/i386/avxintrin.h (_mm_permute2_pd): Removed.
26930 (_mm256_permute2_pd): Likewise.
26931 (_mm_permute2_ps): Likewise.
26932 (_mm256_permute2_ps): Likewise.
26933 * config/i386/i386.md (UNSPEC_VPERMIL2): Likewise.
26934 * config/i386/sse.md (avx_vpermil2<mode>3): Likewise.
26936 * config/i386/i386.c (ix86_builtins): Remove
26937 IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
26938 IX86_BUILTIN_VPERMIL2PD256 and IX86_BUILTIN_VPERMIL2PS256.
26939 (ix86_builtin_type): Remove V8SF_FTYPE_V8SF_V8SF_V8SI_INT,
26940 V4DF_FTYPE_V4DF_V4DF_V4DI_INT, V4SF_FTYPE_V4SF_V4SF_V4SI_INT
26941 and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
26942 (bdesc_args): Remove __builtin_ia32_vpermil2pd,
26943 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256 and
26944 __builtin_ia32_vpermil2ps256.
26945 (ix86_init_mmx_sse_builtins): Updated.
26946 (ix86_expand_args_builtin): Likewise.
26948 2009-01-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
26950 * pa.c (output_call): Relocate non-jump insns in the delay slot of
26951 long absolute calls when generating PA 2.0 code.
26953 2009-01-05 Vladimir Makarov <vmakarov@redhat.com>
26955 PR rtl-optimization/38583
26956 * params.h (IRA_MAX_CONFLICT_TABLE_SIZE): New macro.
26958 * params.def (ira-max-conflict-table-size): New.
26960 * doc/invoke.texi (ira-max-conflict-table-size): Decribe.
26962 * ira.h (ira_conflicts_p): New external definition.
26964 * ira-conflicts.c (build_conflict_bit_table): Do not build too big
26965 table. Report this. Return result of building.
26966 (ira_build_conflicts): Use ira_conflicts_p. Check result of
26967 building conflict table.
26969 * ira-color.c (fast_allocation): Use num instead of ira_allocnos_num.
26970 (ira_color): Use ira_conflicts_p.
26972 * global.c: Include ira.h.
26973 (pseudo_for_reload_consideration_p, build_insn_chain): Use
26976 * Makefile.in (global.o): Add ira.h.
26978 * ira-build.c (mark_all_loops_for_removal,
26979 propagate_some_info_from_allocno): New.
26980 (remove_unnecessary_allocnos): Call
26981 propagate_some_info_from_allocno.
26982 (remove_low_level_allocnos): New.
26983 (remove_unnecessary_regions): Add parameter. Call
26984 mark_all_loops_for_removal and remove_low_level_allocnos. Pass
26985 parameter to remove_unnecessary_regions.
26986 (ira_build): Remove all regions but root if the conflict table was
26987 not built. Update conflict hard regs for allocnos crossing calls.
26989 * ira.c (ira_conflicts_p): New global.
26990 (ira): Define and use ira_conflicts_p.
26992 * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
26993 count_spilled_pseudo, find_reg, alter_reg, finish_spills,
26994 emit_input_reload_insns, delete_output_reload): Use ira_conflicts_p.
26996 2009-01-06 Ben Elliston <bje@au.ibm.com>
26998 * gengtype-lex.l (YY_NO_INPUT): Define.
27000 2009-01-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
27003 * c-common.c (handle_vector_size_attribute): Also reject
27004 BOOLEAN_TYPE types.
27006 2009-01-05 Sebastian Pop <sebastian.pop@amd.com>
27008 PR tree-optimization/38492
27009 * graphite.c (rename_map_elt, debug_rename_elt,
27010 debug_rename_map_1, debug_rename_map, new_rename_map_elt,
27011 rename_map_elt_info, eq_rename_map_elts,
27012 get_new_name_from_old_name, bb_in_sese_p): Moved around.
27013 (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use.
27014 (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb.
27015 (sese_build_livein_liveouts): New.
27016 (new_sese, free_sese): New.
27017 (new_scop): Call new_sese.
27018 (free_scop): Call free_sese.
27019 (rename_variables_from_edge, rename_phis_end_scop): Removed.
27020 (register_old_new_names): Renamed register_old_and_new_names.
27021 (register_scop_liveout_renames, add_loop_exit_phis,
27022 insert_loop_close_phis, struct igp,
27023 default_liveout_before_guard, add_guard_exit_phis,
27024 insert_guard_phis, copy_renames): New.
27025 (translate_clast): Call insert_loop_close_phis and insert_guard_phis.
27026 (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge.
27027 (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts.
27028 (scop_adjust_phis_for_liveouts): New.
27029 (gloog): Call scop_adjust_phis_for_liveouts.
27031 * graphite.h (struct sese): Documented. Added fields liveout,
27032 num_ver and livein.
27033 (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New.
27034 (new_sese, free_sese, sese_build_livein_liveouts): Declared.
27035 (struct scop): Added field liveout_renames.
27036 (SCOP_LIVEOUT_RENAMES): New.
27038 2009-01-05 Harsha Jagasia <harsha.jagasia@amd.com>
27040 PR tree-optimization/38510
27041 * graphite.c (recompute_all_dominators): Call mark_irreducible_loops.
27042 (translate_clast): Call recompute_all_dominators before
27044 (gloog): Call recompute_all_dominators before graphite_verify.
27046 2009-01-05 Harsha Jagasia <harsha.jagasia@amd.com>
27047 Jan Sjodin <jan.sjodin@amd.com>
27049 PR tree-optimization/38500
27050 * graphite.c (create_sese_edges): Call fix_loop_structure after
27053 2009-01-05 Joel Sherrill <joel.sherrill@oarcorp.com>
27055 * config.gcc: Add m32r*-*-rtems*.
27056 * config/m32r/rtems.h: New file.
27058 2009-01-05 Ben Elliston <bje@au.ibm.com>
27060 * Makefile.in (.po.gmo): Use mkinstalldirs, not test -d || mkdir.
27061 (.po.pox): Likewise.
27062 (po/gcc.pot): Likewise.
27064 2009-01-04 David S. Miller <davem@davemloft.net>
27066 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED_RTX): Delete.
27067 (STARTING_FRAME_OFFSET): Always set to zero.
27069 2009-01-04 Richard Sandiford <rdsandiford@googlemail.com>
27071 * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Add commentary.
27072 * tree-cfg.c (verify_gimple_assign_binary): Allow shifts of
27073 fixed-point types, and vectors of the same.
27075 2009-01-04 Richard Sandiford <rdsandiford@googlemail.com>
27077 * config/mips/sync.md (*mb_barrier): Rename to...
27078 (*memory_barrier): ...this.
27080 2009-01-04 Jonathan Wakely <jwakely.gcc@gmail.com>
27082 * doc/extend.texi (Function Attributes): Move @cindex after @item
27083 for 'artificial' and 'flatten'. Fix grammar for 'externally_visible'
27084 and put in alphabetical order. Fix 'target' name and put in order.
27085 * doc/invoke.texi (-Wstrict-null-sentinel, -fipa-matrix-reorg): Fix
27088 2009-01-04 Uros Bizjak <ubizjak@gmail.com>
27090 * config/s390/s390.md (UNSPEC_MB): Rename from UNSPECV_MB.
27091 (memory_barrier): Expand as unspec instead of unspec_volatile.
27092 Remove mem:BLK from insn operands. Use Pmode scratch register.
27093 (*memory_barrier): Define as unspec instead of unspec_volatile.
27094 Use (match_dup 0) as input operand.
27096 * config/sparc/sparc.md (UNSPEC_MEMBAR): Rename from UNSPECV_MEMBAR.
27097 * config/sparc/sync.md (memory_barrier): Expand as unspec instead of
27098 unspec_volatile. Remove mem:BLK from insn operands. Use Pmode
27099 scratch register. Remove operand 1.
27100 (*stbar): Define as unspec instead of unspec_volatile.
27101 Use (match_dup 0) as input operand, remove (const_int 8).
27102 (*membar): Define as unspec instead of unspec_volatile.
27103 Use (match_dup 0) as input operand, remove input operand 2.
27105 * config/xtensa/xtensa.md (UNSPEC_MEMW): Rename from UNSPECV_MEMW.
27106 (memory_barrier): Expand as unspec instead of unspec_volatile.
27107 Remove mem:BLK from insn operands. Use Pmode scratch register.
27108 (*memory_barrier): Define as unspec instead of unspec_volatile.
27109 Use (match_dup 0) as input operand.
27111 * config/ia64/sync.md (memory_barrier): Redefine as expander pattern.
27112 Remove mem:BLK from insn operands. Use Pmode scratch register.
27113 Set volatile flag on operand 0.
27114 (*memory_barrier): New insn pattern.
27116 * config/rs6000/sync.md (memory_barrier): Remove mem:BLK from
27118 (*memory_barrier): Use (match_dup 0) as input operand.
27120 * config/mips/sync.md (memory_barrier): Redefine as expander pattern.
27121 Remove mem:BLK from insn operands. Use Pmode scratch register.
27122 Set volatile flag on operand 0.
27123 (*mb_internal): New insn pattern.
27125 * config/alpha/sync.md (*memory_barrier): Rename from *mb_internal.
27127 2009-01-04 Steven Bosscher <steven@gcc.gnu.org>
27129 PR middle-end/38586
27130 * function.c (struct temp_slot): Move to the section of the file
27131 that deals with temp slots. Remove field 'address'.
27132 (temp_slot_address_table): New hash table of address -> temp slot.
27133 (struct temp_slot_address_entry): New struct, items for the table.
27134 (temp_slot_address_compute_hash, temp_slot_address_hash,
27135 temp_slot_address_eq, insert_temp_slot_address): Support functions
27137 (find_temp_slot_from_address): Rewrite to use the new hash table.
27138 (remove_unused_temp_slot_addresses): Remove addresses of temp
27139 slots that have been made available.
27140 (remove_unused_temp_slot_addresses_1): Call-back for htab_traverse,
27141 worker function for remove_unused_temp_slot_addresses.
27142 (assign_stack_temp_for_type): Don't clear the temp slot address list.
27143 Add the temp slot address to the address -> temp slot map.
27144 (update_temp_slot_address): Update via insert_temp_slot_address.
27145 (free_temp_slots): Call remove_unused_temp_slot_addresses.
27146 (pop_temp_slots): Likewise.
27147 (init_temp_slots): Allocate the address -> temp slot map, or empty
27148 the map if it is already allocated.
27149 (prepare_function_start): Initialize temp slot processing.
27151 2009-01-04 Steven Bosscher <steven@gcc.gnu.org>
27153 PR middle-end/38584
27154 * cfgexpand.c (estimate_stack_frame_size): Simplify the estimate:
27155 Calculate the size of all stack vars assuming no packing of stack
27156 vars will happen, replacing a quadratic algorithm with a linear one.
27158 2009-01-03 Jakub Jelinek <jakub@redhat.com>
27161 * expmed.c (store_bit_field_1): Don't modify op0 if movstrict insn
27164 2009-01-03 Diego Novillo <dnovillo@google.com>
27166 * doc/contrib.texi: Update contributions.
27168 2009-01-03 Jakub Jelinek <jakub@redhat.com>
27171 * builtins.c (fold_builtin_memory_op): Give up if either operand
27172 is volatile. Set srctype or desttype to non-qualified version
27176 * builtins.c (fold_builtin_expect): Only check DECL_WEAK for VAR_DECLs
27177 and FUNCTION_DECLs.
27179 2009-01-02 Kenneth Zadeck <zadeck@naturalbridge.com>
27181 PR rtl-optimization/35805
27182 * df-problems.c (df_lr_finalize): Add recursive call to resolve lr
27183 problem if fast dce is able to remove any instructions.
27184 * dce.c (dce_process_block): Fix dump message.
27186 2009-01-02 Mark Mitchell <mark@codesourcery.com>
27189 * tree-ssa-pre.c (compute_antic): Correct loop bounds.
27191 2009-01-02 Jakub Jelinek <jakub@redhat.com>
27193 PR middle-end/38690
27194 * tree-flow.h (op_code_prio, op_prio): New prototypes.
27195 * tree-pretty-print.c (op_code_prio): New function.
27196 (op_prio): No longer static. Use op_code_prio.
27197 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs):
27198 Use op_prio and op_code_prio to determine if () should be
27199 printed around operand(s) or not.
27201 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
27202 dump_gimple_call, dump_gimple_switch, dump_gimple_cond,
27203 dump_gimple_label, dump_gimple_try, dump_symbols, dump_gimple_phi,
27204 dump_gimple_mem_ops, dump_bb_header, dump_bb_end, pp_cfg_jump): Use
27205 pp_character instead of pp_string for single letter printing.
27207 2009-01-02 Richard Sandiford <rdsandiford@googlemail.com>
27209 * doc/extend.texi: Fix '#pragma GCC option' typo.
27211 2009-01-02 Richard Guenther <rguenther@suse.de>
27213 * doc/install.texi (--enable-checking): Mention different
27214 default for stage1.
27215 (--enable-stage1-checking): Document.
27217 2009-01-01 Andrew Pinski <pinskia@gmail.com>
27219 PR middle-end/30142
27220 * tree-cfg.c (verify_expr): Add INDIRECT_REF case. Change MODIFY_EXPR
27221 case to be an error.
27223 2009-01-02 Ben Elliston <bje@au.ibm.com>
27225 * config/fp-bit.h (pack_d): Constify argument.
27226 * config/fp-bit.c (makenan): Constify return type. Remove casts.
27227 (isnan): Constify argument.
27229 (iszero): Likewise.
27230 (pack_d): Likewise.
27231 (_fpadd_parts): Constify return type.
27232 (_fpmul_parts): Likewise.
27233 (_fpdiv_parts): Likewise.
27235 2009-01-01 Jakub Jelinek <jakub@redhat.com>
27238 * c-typeck.c (add_pending_init): Add IMPLICIT argument. Only
27239 warn about overwriting initializer with side-effects or
27240 -Woverride-init if !IMPLICIT.
27241 (output_init_element): Likewise. Pass IMPLICIT down to
27243 (process_init_element): Add IMPLICIT argument. Pass it down
27244 to output_init_element.
27245 (push_init_element, pop_init_level, set_designator): Adjust
27246 process_init_element callers.
27247 (set_nonincremental_init, set_nonincremental_init_from_string):
27248 Adjust add_pending_init callers.
27249 (output_pending_init_elements): Adjust output_init_element callers.
27250 * c-tree.h (process_init_element): Adjust prototype.
27251 * c-parser.c (c_parser_initelt, c_parser_initval): Adjust
27252 process_init_element callers.
27255 Copyright (C) 2009 Free Software Foundation, Inc.
27257 Copying and distribution of this file, with or without modification,
27258 are permitted in any medium without royalty provided the copyright
27259 notice and this notice are preserved.