1 2010-12-10 Dave Korn <dave.korn.cygwin@gmail.com>
5 * target.def (mangle_assembler_name): New target asm_out hook.
6 * targhooks.c (default_mangle_assembler_name): Add default hook
8 * targhooks.h (default_mangle_assembler_name): Add prototype.
9 * lto-symtab.c (lto_symtab_register_decl): Use new hook when
10 processing DECL_ASSEMBLER_NAMEs for lto symtabs.
11 (lto_symtab_get_resolution): Likewise.
12 (lto_cgraph_replace_node): Likewise.
13 (lto_symtab_prevailing_decl): Likewise.
14 * lto-streamer-out.c (write_symbol): Likewise.
15 * doc/tm.texi.in (TARGET_MANGLE_ASSEMBLER_NAME): Add @hook directive.
16 * doc/tm.texi: Regenerate.
17 * config/i386/cygming.h (TARGET_MANGLE_ASSEMBLER_NAME): Define to
18 point at i386_pe_mangle_assembler_name.
19 * config/i386/winnt.c (i386_pe_mangle_assembler_name): New function.
20 * config/i386/i386-protos.h (i386_pe_mangle_assembler_name): Add
23 2010-12-10 Nathan Froyd <froydnj@codesourcery.com>
25 * c-typeck.c (readonly_error): Delete.
27 2010-12-10 Jakub Jelinek <jakub@redhat.com>
29 PR rtl-optimization/46865
30 * rtl.c (rtx_equal_p_cb, rtx_equal_p): For last operand of
31 ASM_OPERANDS and ASM_INPUT if integers are different,
33 * jump.c (rtx_renumbered_equal_p): Likewise.
35 PR tree-optimization/46864
36 * tree-ssa-loop-im.c (loop_suitable_for_sm): Return false even
37 when there are EDGE_EH exit edges.
39 2010-12-10 Tobias Burnus <burnus@net-b.de>
42 * configure.ac: Handle --disable-libquadmath-support.
43 * doc/install.texi: Document --disable-libquadmath and
44 --disable-libquadmath-support
45 * configure: Regenerate.
46 * config.in: Regenerate.
48 2010-12-10 Jack Howarth <howarth@bromo.med.uc.edu>
49 Iain Sandoe <iains@gcc.gnu.org>
52 * config/darwin9.h (DSYMUTIL_SPEC): Add fortran source types.
54 2010-12-10 Iain Sandoe <iains@gcc.gnu.org>
56 * config/rs6000/rs6000.c
57 (rs6000_darwin64_record_arg_advance_recurse): Name register increment
58 explicitly. (rs6000_darwin64_record_arg_recurse): Make sure we split
59 long doubles when we run out of regs. Also flag that this requires
60 stack and therefore cannot be returned by value.
61 (rs6000_darwin64_record_arg): Update comment.
62 (rs6000_function_value): Likewise.
64 2010-12-10 Nicola Pero <nicola.pero@meta-innovation.com>
66 * c-parser.c (c_parser_objc_class_definition): Recognize
67 Objective-C 2.0 class extensions.
69 2010-12-10 Iain Sandoe <iains@gcc.gnu.org>
71 * config/darwin.c: Remove c-tree.h and c-lang.h
72 * config/t-darwin: Remove dependencies on c-tree.h and c-lang.h.
74 2010-12-10 Joern Rennecke <amylaar@spamcop.net>
77 * doc/tm.texi: Regenerate.
78 * target.def: Fix "preferred" spelling. Refer to rclass by its
80 * config/arm/arm.c (arm_preferred_rename_class): Rename parameter class
83 2010-12-09 Paul Koning <ni1d@arrl.net>
85 * config/pdp11/pdp11-protos.h (output_move_double,
86 output_move_quad): Delete.
87 (output_move_multiple, pdp11_expand_operands): New functions.
88 (pdp11_action, pdp11_partorder): New enums.
89 * config/pdp11/pdp11.md (movdi, movsi, movdf, movsf): Use
91 (adddi3, subdi3, negdi2): New patterns.
92 (addsi3, subsi3, negsi2): Use pdp11_expand_operands.
94 (neghi2, negqi2): Use PDPint iterator.
95 * config/pdp11/pdp11.c (find_addr_reg, output_move_double,
96 output_move_quad): Delete.
97 (pdp11_expand_operands, output_move_multiple): New functions.
99 2010-12-09 Joseph Myers <joseph@codesourcery.com>
101 * config/vax/linux.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
102 * config.gcc (vax-*-linux*): Don't use svr4.h.
104 2010-12-09 Nathan Froyd <froydnj@codesourcery.com>
106 * c-typeck.c (build_indirect_ref): Call invalid_indirection_error.
108 2010-12-09 Joseph Myers <joseph@codesourcery.com>
110 * doc/extend.texi (Attribute Syntax): Correct description of
111 attributes in pointer declarators.
113 2010-12-09 Joseph Myers <joseph@codesourcery.com>
115 * config/mips/vxworks.h (DBX_REGISTER_NUMBER): Undefine.
116 * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux*,
117 mips*-*-linux*, mips-wrs-vxworks): Don't use svr4.h.
119 2010-12-09 Joseph Myers <joseph@codesourcery.com>
121 * config/mep/mep.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
122 WCHAR_TYPE_SIZE): Define.
123 * config.gcc (mep-*-*): Don't use svr4.h.
125 2010-12-09 Joseph Myers <joseph@codesourcery.com>
127 * config/mcore/mcore.h (PTRDIFF_TYPE, WCHAR_TYPE,
128 WCHAR_TYPE_SIZE): Define.
129 * config/svr3.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
130 WCHAR_TYPE_SIZE): Don't define.
131 * config.gcc (mcore-*-elf): Don't use svr4.h.
133 2010-12-09 Joseph Myers <joseph@codesourcery.com>
135 * config.gcc (m32r-*-elf*, m32rle-*-elf*, m32r-*-rtems*,
136 m32r-*-linux*, m32rle-*-linux*): Don't use svr4.h.
138 2010-12-09 Joseph Myers <joseph@codesourcery.com>
140 * config/iq2000/iq2000.h (LINK_SPEC, SIZE_TYPE, PTRDIFF_TYPE,
141 WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
142 * config.gcc (iq2000*-*-elf*): Don't use svr4.h.
144 2010-12-09 Joseph Myers <joseph@codesourcery.com>
146 * config.gcc (ia64*-*-linux*, ia64*-*-hpux*): Don't use svr4.h.
148 2010-12-09 Joseph Myers <joseph@codesourcery.com>
150 * config/pa/pa32-linux.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
151 * config.gcc (hppa*64*-*-linux*, hppa*-*-linux*): Don't use
154 2010-12-09 Joseph Myers <joseph@codesourcery.com>
156 * config/moxie/moxie.h (LINK_SPEC, SIZE_TYPE, PTRDIFF_TYPE,
157 WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
158 * config/moxie/rtems.h (LINK_SPEC, SIZE_TYPE, PTRDIFF_TYPE,
159 WCHAR_TYPE, WCHAR_TYPE_SIZE): Undefine.
160 * config.gcc (moxie-*-elf, moxie-*-uclinux*): Don't use svr4.h.
162 2010-12-09 Joseph Myers <joseph@codesourcery.com>
164 * config/frv/frv.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
165 WCHAR_TYPE_SIZE): Define.
166 * config.gcc (frv-*-elf, frv-*-*linux*): Don't use svr4.h.
168 2010-12-09 Joseph Myers <joseph@codesourcery.com>
170 * config/fr30/fr30.h (LIB_SPEC, LINK_SPEC, SIZE_TYPE,
171 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
172 * config.gcc (fr30-*-elf): Don't use svr4.h.
174 2010-12-09 Joseph Myers <joseph@codesourcery.com>
176 * config/cris/linux.h (SIZE_TYPE, PTRDIFF_TYPE): Define.
177 * config.gcc (crisv32-*-linux* | cris-*-linux*): Don't use svr4.h.
179 2010-12-09 Richard Guenther <rguenther@suse.de>
182 * gimple-fold.c (canonicalize_constructor_val): Canonicalize
185 2010-12-09 Joseph Myers <joseph@codesourcery.com>
187 * config/i386/netware.h (TARGET_POSIX_IO): Define.
188 * config/i386/nto.h (TARGET_POSIX_IO): Define.
189 * config/ia64/hpux.h (TARGET_POSIX_IO): Define.
190 * config/moxie/moxie.h (TARGET_POSIX_IO): Don't undefine.
191 * config/openbsd.h (TARGET_POSIX_IO): Define.
192 * config/rtems.h (TARGET_POSIX_IO): Define.
193 * config/sh/embed-elf.h (TARGET_POSIX_IO): Don't undefine.
194 * config/sol2.h (TARGET_POSIX_IO): Define.
195 * config/svr4.h (TARGET_POSIX_IO): Don't define.
196 * config/vxworksae.h (TARGET_POSIX_IO): Define.
198 2010-12-09 Joseph Myers <joseph@codesourcery.com>
200 * config/i386/nto.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
201 * config/ia64/hpux.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
203 * config/linux.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Don't
205 * config/mips/linux.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Don't
207 * config/mips/netbsd.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
209 * config/rs6000/linux.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
211 * config/rs6000/linux64.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
213 * config/sol2.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
214 * config/sparc/netbsd-elf.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
216 * config/sparc/openbsd64.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
218 * config/sparc/sp64-elf.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
220 * config/svr4.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Don't
222 * config/xtensa/elf.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Don't
225 2010-12-09 Joseph Myers <joseph@codesourcery.com>
227 * config/ia64/hpux.h (AS_NEEDS_DASH_FOR_PIPED_INPUT): Define for
229 * config/m68k/netbsd-elf.h (AS_NEEDS_DASH_FOR_PIPED_INPUT):
231 * config/m68k/openbsd.h (AS_NEEDS_DASH_FOR_PIPED_INPUT): Remove.
232 * config/mips/openbsd.h (AS_NEEDS_DASH_FOR_PIPED_INPUT): Remove.
233 * config/sol2.h (AS_NEEDS_DASH_FOR_PIPED_INPUT): Define for
235 * config/sparc/sparc.h (AS_NEEDS_DASH_FOR_PIPED_INPUT): Remove.
236 * config/svr4.h (AS_NEEDS_DASH_FOR_PIPED_INPUT): Remove.
238 2010-12-09 Martin Jambor <mjambor@suse.cz>
240 * ipa-prop.c (compute_complex_ancestor_jump_func): Work also if the
241 zero is the first phi parameter.
243 2010-12-09 Martin Jambor <mjambor@suse.cz>
245 * ipa-prop.h (struct ipa_parm_adjustment): New field alias_ptr_type.
246 * ipa-prop.c (ipa_modify_call_arguments): Use it.
247 * tree-sra.c (splice_param_accesses): Test that all accesses have the
248 same alias reference type.
249 (turn_representatives_into_adjustments): Set alias_ptr_type of the
252 2010-12-09 Martin Jambor <mjambor@suse.cz>
255 * tree-sra.c (splice_param_accesses): Check that there are not
256 multiple ADDRESSABLE types.
258 2010-12-09 Joseph Myers <joseph@codesourcery.com>
260 * config/arc/arc.h (ASM_SPEC): Remove %{v}.
261 * config/bfin/bfin.h (ASM_SPEC): Remove %{v}.
262 * config/cris/cris.h (ASM_SPEC): Remove %{v:-v}.
263 * config/fr30/fr30.h (ASM_SPEC): Remove %{v}.
264 * config/frv/frv.h (ASM_SPEC): Remove %{v}.
265 * config/i386/linux.h (ASM_SPEC): Remove %{v}.
266 * config/i386/linux64.h (ASM_SPEC): Remove %{v}.
267 * config/i386/mingw-w64.h (ASM_SPEC): Remove %{v}.
268 * config/i386/sol2-10.h (ASM_SPEC): Remove %{v}.
269 * config/i386/vxworks.h (ASM_SPEC): Remove %{v}.
270 * config/i386/x86-64.h (ASM_SPEC): Remove %{v}.
271 * config/lm32/lm32.h (ASM_SPEC): Remove %{v}.
272 * config/m32r/m32r.h (ASM_SPEC): Remove %{v}.
273 * config/m68k/linux.h (ASM_SPEC): Remove %{v:-V}.
274 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{v}.
275 * config/mips/mips.h (ASM_SPEC): Remove %{v}.
276 * config/mips/vxworks.h (ASM_SPEC): Remove %{v}.
277 * config/pa/pa-linux.h (ASM_SPEC): Remove %{v:-V}.
278 * config/rs6000/freebsd.h (SVR4_ASM_SPEC): Remove %{v}.
279 * config/rs6000/linux64.h (ASM_SPEC): Remove %{v:-V}.
280 * config/rs6000/vxworks.h (ASM_SPEC): Remove %{v:-v}.
281 * config/sparc/openbsd64.h (ASM_SPEC): Remove %{v:-V}.
282 * config/svr4.h (SVR4_ASM_SPEC): Remove %{v:-V}.
283 * config/xtensa/elf.h (ASM_SPEC): Remove %{v}.
284 * config/xtensa/linux.h (ASM_SPEC): Remove %{v}.
286 2010-12-09 Joseph Myers <joseph@codesourcery.com>
288 * config/i386/openbsdelf.h (LINK_SPEC): Use %{r:} not %{r*:}.
289 * config/mips/openbsd.h (LINK_SPEC): Use %{r:} not %{r*:}.
290 * config/netbsd-aout.h (NETBSD_LINK_SPEC_AOUT): Use %{r:} not
292 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Use %{r:} not
294 * config/sparc/openbsd64.h (LINK_SPEC): Use %{r:} not %{r*:}.
295 * config/vax/netbsd-elf.h (LINK_SPEC): Use %{r:} not %{r*:}.
297 2010-12-09 Joseph Myers <joseph@codesourcery.com>
299 * config/alpha/freebsd.h (LINK_SPEC): Don't use
301 * config/alpha/linux-elf.h (LINK_SPEC): Likewise.
302 * config/arm/freebsd.h (LINK_SPEC): Likewise.
303 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Likewise.
304 * config/bfin/linux.h (LINK_SPEC): Likewise.
305 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Likewise.
306 * config/frv/linux.h (LINK_SPEC): Likewise.
307 * config/i386/freebsd.h (LINK_SPEC): Likewise.
308 * config/i386/freebsd64.h (LINK_SPEC): Likewise.
309 * config/i386/linux.h (LINK_SPEC): Likewise.
310 * config/i386/linux64.h (LINK_SPEC): Likewise.
311 * config/i386/openbsdelf.h (LINK_SPEC): Likewise.
312 * config/ia64/freebsd.h (LINK_SPEC): Likewise.
313 * config/ia64/linux.h (LINK_SPEC): Likewise.
314 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
315 * config/m32r/linux.h (LINK_SPEC): Likewise.
316 * config/m68k/linux.h (LINK_SPEC): Likewise.
317 * config/microblaze/linux.h (LINK_SPEC): Likewise.
318 * config/mips/linux.h (LINK_SPEC): Likewise.
319 * config/mips/linux64.h (LINK_SPEC): Likewise.
320 * config/mips/openbsd.h (LINK_SPEC): Likewise.
321 * config/mn10300/linux.h (LINK_SPEC): Likewise.
322 * config/netbsd-elf.h (LINK_SPEC): Likewise.
323 * config/pa/pa-linux.h (LINK_SPEC): Likewise.
324 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC32,
325 LINK_OS_LINUX_SPEC64): Likewise.
326 * config/rs6000/sysv4.h (LINK_OS_FREEBSD_SPEC,
327 LINK_OS_LINUX_SPEC, LINK_OS_GNU_SPEC, LINK_OS_NETBSD_SPEC):
329 * config/s390/linux.h (LINK_SPEC): Likewise.
330 * config/sh/linux.h (SUBTARGET_LINK_SPEC): Likewise.
331 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
332 * config/sparc/linux.h (LINK_SPEC): Likewise.
333 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
334 LINK_SPEC): Likewise.
335 * config/sparc/openbsd64.h (LINK_SPEC): Likewise.
336 * config/vax/linux.h (LINK_SPEC): Likewise.
337 * config/xtensa/linux.h (LINK_SPEC): Likewise.
339 2010-12-09 Joseph Myers <joseph@codesourcery.com>
341 * config/bfin/bfin.h (ASM_SPEC): Remove %{n} and %{T}.
342 * config/frv/frv.h (ASM_SPEC): Likewise.
343 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
344 * config/i386/sol2.h (ASM_SPEC): Likewise.
345 * config/m68k/linux.h (ASM_SPEC): Likewise.
346 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
347 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
348 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
349 * config/sol2.h (ASM_SPEC): Likewise.
350 * config/sparc/linux.h (ASM_SPEC): Likewise.
351 * config/sparc/linux64.h (ASM_SPEC): Likewise.
352 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
353 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
354 * config/svr4.h (SVR4_ASM_SPEC): Likewise.
356 2010-12-09 Richard Guenther <rguenther@suse.de>
358 * reginfo.c (struct subregs_of_mode_node): Remove.
359 (subregs_of_mode): Likewise.
360 (som_hash): Likewise.
362 (invalid_mode_changes): New bitmap.
363 (record_subregs_of_mode): Get subregs_of_mode argument.
364 Fill in invalid_mode_changes bitmap.
365 (find_subregs_of_mode): Get subregs_of_mode argument and pass
367 (init_subregs_of_mode): Adjust.
368 (finish_subregs_of_mode): Likewise.
369 (invalid_mode_change_p): Query invalid_mode_changes bitmap.
371 2010-12-09 Richard Guenther <rguenther@suse.de>
373 * ira.c (ira): Do not call finish_subregs_of_mode.
374 * ira-costs.c (finish_costs): Call finish_subregs_of_mode.
376 2010-12-09 Richard Guenther <rguenther@suse.de>
378 * rtl.h (invalid_mode_change_p): Adjust prototype.
379 * reginfo.c (invalid_mode_change_p): Remove from argument.
380 * ira-costs.c (print_allocno_costs): Adjust callers.
381 (find_costs_and_classes): Likewise.
383 2010-12-09 Jakub Jelinek <jakub@redhat.com>
385 * config/s390/s390.md (*mov<mode>cc): Change lgoc and stgoc to
386 locg and stocg even in comment.
387 (sync_old_<atomic><mode>): Give mode to UNSPEC_VOLATILE.
390 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Use stvx
392 (altivec_expand_stv_builtin): For op0 use mode of operand 1 instead
394 * config/rs6000/altivec.md (VI_scalar): New mode attr.
395 (altivec_stve<VI_char>x, *altivec_stvesfx): Use scalar instead of
396 vector mode for operand 0, put operand 1 into UNSPEC.
398 2010-12-09 Yao Qi <yao@codesourcery.com>
400 * config/arm/arm.c (arm_preferred_rename_class): Implement targethook
401 PREFERRED_RENAME_CLASS.
403 2010-12-08 Ian Lance Taylor <iant@google.com>
405 * doc/sourcebuild.texi (Front End): Remove reference to
406 snapshot-README and snapshot-index.html.
408 2010-12-08 Ian Lance Taylor <iant@google.com>
410 * doc/sourcebuild.texi (Texinfo Manuals): Change update_web_docs
411 to update_web_docs_svn.
412 (Front End): Likewise.
414 2010-12-08 Iain Sandoe <iains@gcc.gnu.org>
416 gcc/config.gcc (with_cpu): Default i[34567]86-*-darwin* and
417 x86_64-*-darwin* to with_cpu:-core2.
418 gcc/config/i386/mmx.md (*mov<mode>_internal_rex64): Replace movq
419 with movd for darwin assembler.
420 gcc/config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
421 (*vec_concatv2di_rex64_sse): Ditto.
423 2010-12-08 Richard Guenther <rguenther@suse.de>
424 Sebastian Pop <sebastian.pop@amd.com>
426 PR tree-optimization/45230
427 PR tree-optimization/45231
428 PR tree-optimization/45370
429 * sese.c (rename_uses): Returns a bool. Call
430 recompute_tree_invariant_for_addr_expr only on the RHS of a
432 (graphite_copy_stmts_from_block): Call fold_stmt_inplace when
433 rename_uses returns true.
434 * tree-ssa-copy.c (replace_exp): Add a comment about calling
435 fold_stmt_inplace after replace_exp.
437 2010-12-08 Mike Stump <mikestump@comcast.net>
440 * config/darwin.h (COLLECT_RUN_DSYMUTIL): Add.
441 (DSYMUTIL_SPEC): Use `linker' flags instead to handle lto better.
442 * config/darwin9.h (COLLECT_RUN_DSYMUTIL): Add.
443 (DSYMUTIL_SPEC): Use `linker' flags instead to handle lto better.
444 * collect2.c (post_ld_pass): Add.
446 (maybe_run_lto_and_relink): Call post_ld_pass after ld.
447 (main): Likewise. Call process_args.
449 2010-12-08 Jakub Jelinek <jakub@redhat.com>
452 * regrename.c (check_new_reg_p): Add ATTRIBUTE_UNUSED to reg
455 2010-12-08 Richard Earnshaw <rearnsha@arm.com>
458 * arm.c (thumb2_reorg): Also try to reduce <commutative_op> Rd, Rn, Rd
459 into a 16-bit instruction.
461 2010-12-08 Michael Meissner <meissner@linux.vnet.ibm.com>
464 * builtins.c (expand_builtin_pow_root): Don't optimize pow(x,y)
465 where y is 0.25, 1./6., or 0.75 if the target does not have a sqrt
466 instruction, but do optimize if y is 0.5 or 1./3. since that
467 changes an expensive call into a cheaper one.
469 2010-12-08 Richard Guenther <rguenther@suse.de>
471 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use a shift
472 instead of a division to divide by BITS_PER_UNIT.
474 2010-12-08 Richard Guenther <rguenther@suse.de>
476 * gimplify.c (gimple_tree_eq): Assert hashes are equal only
477 when checking is enabled.
479 2010-12-07 Andrey Belevantsev <abel@ispras.ru>
482 * haifa-sched.c (sched_create_recovery_edges): Update
484 * sel-sched-ir.c (maybe_tidy_empty_bb): Update dominator info
485 after deleting an empty block.
486 (tidy_control_flow): Also verify dominators.
487 (sel_remove_bb): Update dominator info after removing a block.
488 (sel_redirect_edge_and_branch_force): Assert that no unreachable
489 blocks will be created. Update dominator info.
490 (sel_redirect_edge_and_branch): Update dominator info when
491 basic blocks do not become unreachable.
492 (sel_remove_loop_preheader): Update dominator info.
494 2010-12-07 Richard Guenther <rguenther@suse.de>
496 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
497 Reset alignment information.
498 (bump_vector_ptr): Likewise.
500 2010-12-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
504 * config/pa/pa.c (pa_function_section): New function.
505 (TARGET_ASM_FUNCTION_SECTION): Define.
507 2010-12-07 Ian Lance Taylor <iant@google.com>
508 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
511 * configure.ac: Disable AC_MSG_ERROR while looking for the C++
513 * configure: Rebuild.
515 2010-12-07 Paul Koning <ni1d@arrl.net>
517 * config/pdp11/pdp11.c (output_addr_const_pdp11): Output negative
518 values with sign rather than as unsigned.
520 2010-12-07 Paul Koning <ni1d@arrl.net>
522 * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_SECTION): Define.
523 (pdp11_function_section): New function.
525 2010-12-07 Joseph Myers <joseph@codesourcery.com>
527 * config/mcore/mcore.c Don't include assert.h.
528 (layout_mcore_frame, handle_structs_in_regs): Use gcc_assert.
529 * config/spu/spu.c: Don't include assert.h.
530 (spu_sms_res_mii): Use gcc_assert.
532 2010-12-07 Sebastian Pop <sebastian.pop@amd.com>
534 PR tree-optimization/42327
535 * tree-data-ref.c (omega_setup_subscript): Call build_int_cst
536 instead of using integer_minus_one_node.
538 2010-12-07 Nathan Froyd <froydnj@codesourcery.com>
541 * params.def (CXX_MAX_NAMESPACES_FOR_DIAGNOSTIC_HELP): New parameter.
542 * doc/invoke.texi (cxx-max-namespaces-for-diagnostic-help): Document.
544 2010-12-07 Richard Guenther <rguenther@suse.de>
546 PR tree-optimization/46832
547 * tree-ssa-math-opts.c (execute_optimize_widening_mul): Check
548 that the call has a lhs.
550 2010-12-07 Yao Qi <yao@codesourcery.com>
552 * Makefile.in: Add $(TARGET_H) to the regrename.o rule.
553 * regrename.c (struct du_head): Add new element length.
554 (sort_du_head, get_element, merge, merge_sort_comparison):
555 New functions of merge sort implementation to du_head list.
556 (regrename_optimize): Sort du_head linked list by length.
557 Iterate registers in a preferred-register-first order.
558 Move some code to ...
559 (check_new_reg_p): here. New function.
560 (create_new_chain): Initialize length.
561 (scan_rtx_reg): Increase length for non-debug insns.
562 * target.def: New hook preferred_rename_class.
563 * targhook.c (default_preferred_rename_class): New.
564 * targhook.h: Declare it.
565 * doc/tm.texi.in: New hook TARGET_PREFERRED_RENAME_CLASS.
566 * doc/tm.texi: Regenerate.
568 2010-12-07 Jakub Jelinek <jakub@redhat.com>
571 * tree-parloops.c (separate_decls_in_region): Use UNKNOWN_LOCATION
572 instead of BUILTINS_LOCATION.
573 (create_loop_fn): Add LOC argument, pass it to build_decl instead of
575 (create_parallel_loop): Add LOC argument, use it for OMP clauses
576 and GIMPLE_*OMP* statements.
577 (gen_parallel_loop): Determine locus for the parallel loop, pass it
578 to create_loop_fn and create_parallel_loop.
579 * cfgexpand.c (gimple_expand_cfg): For builtin functions, call
580 set_curr_insn_source_location (UNKNOWN_LOCATION).
582 2010-12-07 Joern Rennecke <amylaar@spamcop.net>
583 Richard Guenther <rguenther@suse.de>
586 * config/bfin/bfin.c (BB_AUX_INDEX): Cast to intptr_t.
587 (bfin_reorder_loops): Change type of index to intptr_t.
589 2010-12-07 Richard Guenther <rguenther@suse.de>
591 PR tree-optimization/46726
592 * tree-inline.c (estimate_num_insns): Special case pow (x, 2.0).
594 2010-12-07 Richard Guenther <rguenther@suse.de>
596 * tree-ssa-math-opts.c (execute_optimize_widening_mul): Unlink
599 2010-12-07 Nicola Pero <nicola.pero@meta-innovation.com>
601 * c-parser.c (c_parser_typeof_specifier): Removed special
602 treatment of objc_volatilized attribute for Objective-C.
604 2010-12-06 Vladimir Makarov <vmakarov@redhat.com>
606 * ira.c (update_equiv_regs): Prohibit move insns if
607 pressure-sensitive scheduling was done.
609 2010-12-06 Nicola Pero <nicola.pero@meta-innovation.com>
611 * c-parser.c (c_parser_for_statement): Use c_fully_fold() instead
612 of c_process_expr_stmt() for the iterating and collection
613 expressions of an Objective-C fast enumeration loop.
615 2010-12-06 Jakub Jelinek <jakub@redhat.com>
618 * dwarf2out.c (modified_type_die): If both is_const_type and
619 is_volatile_type is set, start with DW_TAG_const_type or
620 DW_TAG_volatile_type depending on where we get qualified type
621 in the recursive call.
624 * config/ia64/ia64.c (rtx_needs_barrier): Handle asm CLOBBER
625 as a store into that register.
627 PR tree-optimization/46528
629 * profile.c (branch_prob): Make sure last is never set to a debug
633 * reginfo.c (init_subregs_of_mode): Don't call find_subregs_of_mode
636 PR rtl-optimization/46777
637 * cfglayout.c (duplicate_insn_chain): Avoid duplicating
638 also barrier after tablejump.
640 2010-12-06 Joern Rennecke <amylaar@spamcop.net>
641 Richard Henderson <rth@redhat.com>
644 * config/vax/vax.c (vax_output_int_move): Fold #if into if.
646 2010-12-06 Eric Botcazou <ebotcazou@adacore.com>
648 * config/sparc/sol2.h (PUSHSECTION_FORMAT): Redefine unconditionally.
649 * config/sparc/sol2-gas.h (PUSHSECTION_FORMAT): Redefine.
651 2010-12-06 Joern Rennecke <amylaar@spamcop.net>
654 * config/frv/predicates.md (gpr_or_int12_operand): Use IN_RANGE.
655 (gpr_fpr_or_int12_operand, gpr_or_int10_operand): Likewise.
656 (int12_operand, int_2word_operand, uint16_operand): Likewise.
657 (fpr_or_int6_operand, int6_operand, int5_operand): Likewise.
658 (uint5_operand, uint4_operand): Likewise.
659 * config/frv/frv.h (IN_RANGE_P): Delete.
660 (GPR_P, FPR_P, CC_P, ICC_P, FCC_P, CR_P, ICR_P, FCR_P): Use IN_RANGE.
661 (ACC_P, ACCG_P, SPR_P, CONST_OK_FOR_I, CONST_OK_FOR_J): Likewise.
662 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
663 (CONST_OK_FOR_P): Likewise.
664 * config/frv/frv.md (*movqicc_internal2_int): Likewise.
665 (*movqicc_internal2_float, *movhicc_internal2_int): Likewise.
666 (*movhicc_internal2_float, *movsicc_internal2_int): Likewise.
667 (*movsicc_internal2_float, casesi): Likewise.
668 * config/frv/frv.c (frv_frame_offset_rtx): Likewise.
669 (frv_asm_output_mi_thunk, frv_legitimate_address_p_1): Likewise.
670 (frv_emit_movsi, output_move_single, frv_emit_cond_move): Likewise.
671 (frv_split_cond_move, frv_rtx_costs): Likewise.
674 * config/mmix/mmix.c (mmix_intval): Split shift count.
676 2010-12-06 H.J. Lu <hongjiu.lu@intel.com>
678 * config/i386/i386.c (m_COREI7): New.
679 (initial_ix86_tune_features): Turn on
680 X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL and
681 X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL for Core i7.
683 2010-12-06 H.J. Lu <hongjiu.lu@intel.com>
685 * config.gcc: Allow corei7-avx for --with-arch/--with-cpu.
687 * config/i386/driver-i386.c (host_detect_local_cpu): Support
690 * config/i386/i386.c (override_options): Handle "corei7-avx".
692 * doc/invoke.texi: Document corei7-avx.
694 2010-12-06 Richard Guenther <rguenther@suse.de>
696 PR tree-optimization/46806
697 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do not
698 coalesce different types.
700 2010-12-06 Richard Guenther <rguenther@suse.de>
702 PR tree-optimization/46785
703 * tree-vect-loop.c (vect_is_simple_reduction_1): Also allow
704 call statements as operand definition.
706 2010-12-06 Mingjie Xing <mingjie.xing@gmail.com>
708 * doc/tm.texi.in: Fix typo.
709 * doc/tm.texi: Regenerate.
711 2010-12-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
713 * config.gcc [hppa[12]*-*-hpux10*, hppa[12]*-*-hpux11*]: Fix typo in
716 2010-12-06 Nicola Pero <nicola.pero@meta-innovation.com>
718 * c-family/c-common.h: Removed the declarations of all the objc_
719 callbacks, and moved them into c-objc.h. Removed
720 objc_ivar_visibility_kind and moved it into c-objc.h.
721 * c-family/c-objc.h: New file.
722 * c-family/c-common.c: Include c-objc.h.
723 * c-family/c-format.c: Same change.
724 * c-family/stub-objc.c: Same change.
725 * c-decl.c: Include c-family/c-objc.h.
726 * c-parser.c: Same change.
727 * c-typeck.c: Same change.
728 * c-config-lang.in (gtfiles): Added c-family/c-objc.h.
729 * Makefile.in (c-decl.o): Depend on c-family/c-objc.h.
730 (c-parser.o): same change.
731 (c-typeck.o): Same change.
732 (c-family/c-format.o): Same change.
733 (c-family/stub-objc.o): Same change.
734 (c-family/c-common.o): Same change.
735 (PLUGIN_HEADERS): Added c-family/c-objc.h.
737 2010-12-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
739 * config.gcc [hppa[12]*-*-hpux10*, hppa[12]*-*-hpux11*]: Ignore
740 --with-dwarf2 option.
742 2010-12-03 Jan Hubicka <jh@suse.cz>
744 * lto-streamer-in.c (input_cfg): Fix pasto.
746 2010-12-03 Jan Hubicka <jh@suse.cz>
748 * ipa.c (cgraph_externally_visible_p): Do not localize builtins
749 and functions with user asm defined names.
750 (varpool_externally_visible_p): Do not localize vars with user
753 2010-12-03 Jan Hubicka <jh@suse.cz>
755 * dwarf2asm.c (dw2_output_indirect_constant_1): Set DECL_ASSEMBLER_NAME
756 to prevent mangling with lto frontend.
758 2010-12-03 Jan Hubicka <jh@suse.cz>
760 * Makefile.in (LTO_STREAMER_H): Add GCOV_IO_H.
761 * lto-cgraph.c (merge_profile_summaries): Fix thinko.
763 2010-12-03 Jan Hubicka <jh@suse.cz>
765 PR tree-optimization/46760
766 * cgraph.c (cgraph_create_node): Initialize count_materialization_scale.
767 * cgraph.h (struct cgraph_node): Add count_materialization_scale.
768 * lto-cgraph.c (lto_output_edge): Fix assert.
769 (lto_output_node): Output count_materialization_scale.
770 (output_profile_summary): Output only runs and sum_max.
771 (input_node): Input count_materialization_scale.
772 (input_profile_summary): Read data into file specific gcov summary.
773 (merge_profile_summaries): New function.
774 (input_cgraph): Update call of input_profile_summary;
775 call merge_profile_summaries.
776 * lto-streamer-in.c (input_cfg): Add count_materialization_scale arg;
777 rescale counts at read in.
778 (intput_bb): Likewise.
779 (input_function): Update call of input_bb.
780 (lto_read_body): Update call of input_cfg.
781 * lto-streamer.h: Inlclude gcov-io.h
782 (lto_file_decl_data): Add gcov_ctr_summary.
784 2010-12-03 Dave Korn <dave.korn.cygwin@gmail.com>
786 * doc/tm.texi.in (Cond. Exec. Macros): Rename node from this ...
787 (Cond Exec Macros): ... to this.
788 * doc/tm.texi: Regenerate.
790 2010-12-03 Jason Merrill <jason@redhat.com>
793 * dwarf2out.c (gen_tagged_type_die): Don't put local types in
796 2010-12-03 Nathan Froyd <froydnj@codesourcery.com>
798 * config/arm/arm.c (arm_legitimate_index_p): Split
799 VALID_NEON_QREG_MODE and VALID_NEON_DREG_MODE cases. Permit
800 slightly larger constants in the latter case.
801 (thumb2_legitimate_index_p): Likewise.
803 2010-12-03 Joseph Myers <joseph@codesourcery.com>
805 * common.opt (N, Q, Qn, Qy, Z, n, r, s, t): New options.
806 * gcc.c (cc1_options): Add %{Qy:}.
808 2010-12-03 Joseph Myers <joseph@codesourcery.com>
810 * gcc.c (LINK_COMMAND_SPEC): Don't handle -A, -d or -m.
811 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
812 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
814 2010-12-03 Alexander Monakov <amonakov@ispras.ru>
816 PR rtl-optimization/45354
817 * sel-sched-ir.c (jump_leads_only_to_bb_p): Rename to ...
818 (bb_has_removable_jump_to_p): This. Update all callers. Make static.
819 Allow BBs ending with a conditional jump. Forbid EDGE_CROSSING jumps.
820 * sel-sched-ir.h (jump_leads_only_to_bb_p): Delete prototype.
822 2010-12-03 Laurynas Biveinis <laurynas.biveinis@gmail.com>
824 * basic-block.h (struct edge_prediction): Remove forward
826 * tree-flow.h (struct edge_prediction): Move from here...
827 * predict.c (struct edge_prediction): ...to here.
828 * cselib.h (struct elt_list): Move from here...
829 * cselib.c (struct elt_list): ...to here.
831 2010-12-02 Ian Lance Taylor <iant@google.com>
833 * gcc.c (default_compilers): Add entry for ".go".
834 * common.opt: Add -static-libgo as a driver option.
835 * doc/install.texi (Configuration): Mention libgo as an option for
836 --enable-shared. Mention go as an option for --enable-languages.
837 * doc/invoke.texi (Overall Options): Mention .go as a file name
838 suffix. Mention go as a -x option.
839 * doc/frontends.texi (G++ and GCC): Mention Go as a supported
841 * doc/sourcebuild.texi (Top Level): Mention libgo.
842 * doc/standards.texi (Standards): Add section on Go language.
843 Move references for other languages into their own section.
844 * doc/contrib.texi (Contributors): Mention that I contributed the
847 2010-12-03 Laurynas Biveinis <laurynas.biveinis@gmail.com>
849 * tree.h (struct call_expr_arg_iterator_d): Remove GTY tag.
850 (const_call_expr_arg_iterator_d): Likewise.
851 (expanded_location): Likewise.
852 * c-tree.h (struct c_arg_tag_d): Likewise.
853 * dwarf2out.c (struct cfa_loc): Likewise.
854 (struct skeleton_chain_struct): Likewise.
855 * except.c (struct ttypes_filter): Likewise.
856 * cselib.h (struct cselib_val_struct): Likewise.
857 (elt_loc_list): Likewise.
858 (elt_list): Likewise.
859 * varasm.c (struct addr_const): Likewise.
860 * tree-flow.h (struct edge_prediction): Likewise.
861 (struct int_tree_map): Likewise.
862 (struct _edge_var_map): Likewise.
864 2010-12-02 H.J. Lu <hongjiu.lu@intel.com>
867 * config/i386/i386.c (initial_ix86_tune_features): Turn on
868 X86_TUNE_INTER_UNIT_MOVES for Core 2 and Core i7.
870 2010-12-02 H.J. Lu <hongjiu.lu@intel.com>
872 * config.gcc: Allow corei7 for --with-arch=/--with-cpu=.
874 2010-12-02 Ian Lance Taylor <iant@google.com>
876 * configure.ac: AC_DEFINE ENABLE_BUILD_WITH_CXX. Check for C++
877 header files unordered_map, tr1/unordered_map, and ext/hash_map.
878 * configure, config.in: Rebuild.
880 2010-11-02 Eric Botcazou <ebotcazou@adacore.com>
883 * config/sparc/sparc.c (can_use_mov_pic_label_ref): New predicate.
884 (sparc_expand_move): Call it to decide whether to emit the special
885 mov{si,di}_pic_label_ref patterns.
886 (sparc_legitimize_pic_address): Call it to decide whether to emit
887 the regular PIC sequence for labels. Fix long line.
888 (sparc_file_end): Set is_thunk for the PIC helper.
890 2010-12-02 Eric Botcazou <ebotcazou@adacore.com>
892 * tree.c (build_range_type_1): Do not SET_TYPE_STRUCTURAL_EQUALITY
893 for a non-shared type.
895 2010-12-02 Sebastian Pop <sebastian.pop@amd.com>
898 * tree-scalar-evolution.c (interpret_rhs_expr): Handle ADDR_EXPR
899 with MEM_REFs as POINTER_PLUS_EXPR.
901 2010-12-02 Joseph Myers <joseph@codesourcery.com>
903 * config/i386/linux.h, config/m32r/linux.h, config/m68k/linux.h,
904 config/sparc/linux.h, config/sparc/linux64.h: Remove comments
907 2010-12-02 Joseph Myers <joseph@codesourcery.com>
909 * config/bfin/bfin.h (LINK_SPEC): Remove %{b}.
910 * config/frv/frv.h (LINK_SPEC): Remove %{b}.
911 * config/i386/netware.h (LINK_SPEC): Remove %{b}.
912 * config/i386/nto.h (LINK_SPEC): Remove %{b}.
913 * config/lm32/uclinux-elf.h (LINK_SPEC): Remove %{b}.
914 * config/sol2.h (LINK_SPEC): Remove %{b}.
915 * config/svr4.h (LINK_SPEC): Remove %{b}.
917 2010-12-02 Joseph Myers <joseph@codesourcery.com>
919 * config/i386/freebsd.h (LINK_SPEC): Cut long comment.
920 * config/i386/linux.h (LINK_SPEC): Cut long comment.
921 * config/i386/netware.h (LINK_SPEC): Remove %{V}.
922 * config/m32r/linux.h (LINK_SPEC): Cut long comment.
923 * config/m68k/linux.h (LINK_SPEC): Cut long comment.
924 * config/sparc/linux.h (LINK_SPEC): Cut long comment.
925 (ASM_SPEC): Remove %{V} and %{v:%{!V:-V}}.
926 * config/sparc/linux64.h (LINK_SPEC): Cut long comment.
927 (ASM_SPEC): Remove %{V} and %{v:%{!V:-V}}.
928 * config/sparc/netbsd-elf.h (ASM_SPEC): Remove %{V} and
931 2010-12-02 Joseph Myers <joseph@codesourcery.com>
933 * gcc.c (trad_capable_cpp, default_compilers): Don't handle
936 2010-12-02 Joseph Myers <joseph@codesourcery.com>
938 * config/alpha/freebsd.h (LINK_SPEC): Don't handle -Wl,.
939 * config/bfin/bfin.h (ASM_SPEC): Don't handle -Wa,.
940 * config/frv/frv.h (ASM_SPEC): Don't handle -Wa,.
941 * config/lm32/uclinux-elf.h (LINK_SPEC): Don't handle -Wl,.
942 * config/microblaze/microblaze.h (LINK_SPEC): Don't handle -Wl,.
943 * config/mn10300/linux.h (ASM_SPEC): Don't handle -Wa,.
944 * config/pa/pa-linux.h (ASM_SPEC): Don't handle -Wa,.
945 * config/rs6000/freebsd.h (SVR4_ASM_SPEC): Don't handle -Wa,.
946 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Don't handle -Wa,.
947 * config/rs6000/sysv4.h (LINK_SPEC): Don't handle -Wl,.
948 * config/rs6000/vxworks.h (ASM_SPEC): Don't handle -Wa,.
949 * config/sol2.h (ASM_SPEC): Don't handle -Wa,.
950 * config/sparc/linux.h (ASM_SPEC): Don't handle -Wa,.
951 * config/sparc/linux64.h (ASM_SPEC): Don't handle -Wa,.
952 * config/sparc/sp-elf.h (ASM_SPEC): Don't handle -Wa,.
953 * config/sparc/sysv4.h (ASM_SPEC): Don't handle -Wa,.
954 * config/svr4.h (SVR4_ASM_SPEC): Don't handle -Wa,.
955 * config/vxworks.h (VXWORKS_LINK_SPEC): Don't handle -Wl,.
957 2010-12-02 Paul Koning <ni1d@arrl.net>
959 * config/pdp11/pdp11.c (output_jump): Map unsigned to signed
960 opcodes if CC_NO_OVERFLOW is set.
961 (notice_update_cc_on_set): Correct setting of CC0 as a side
962 effect; set CC_NO_OVERFLOW for cases where C flag is not
965 2010-12-02 Ian Lance Taylor <iant@google.com>
967 * doc/install.texi (Configuration): Update default for
970 2010-12-02 Nathan Froyd <froydnj@codesourcery.com>
973 * c-decl.c (grokparms): Set arg_info->parms to NULL_TREE when
976 2010-12-02 Sebastian Pop <sebastian.pop@amd.com>
978 PR tree-optimization/45199
979 * tree-data-ref.c (mem_write_stride_of_same_size_as_unit_type_p): New.
980 (stores_zero_from_loop): Call
981 mem_write_stride_of_same_size_as_unit_type_p.
982 * tree-data-ref.h (stride_of_unit_type_p): New.
983 * tree-loop-distribution.c (generate_memset_zero): Simplified.
984 Call stride_of_unit_type_p.
985 (build_rdg_partition_for_component): Do not call
986 rdg_flag_similar_memory_accesses when
987 flag_tree_loop_distribute_patterns is set.
989 2010-12-02 Richard Guenther <rguenther@suse.de>
991 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Disregard
992 sign-changing conversions for induction detection.
994 2010-12-02 Richard Guenther <rguenther@suse.de>
996 PR tree-optimization/46723
997 * tree-vect-loop.c (get_initial_def_for_induction): Strip
998 conversions from the induction evolution and apply it to
1000 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Handle
1001 assigns for induction defs.
1003 2010-12-02 Richard Guenther <rguenther@suse.de>
1005 * value-prof.c (gimple_ic): Use stmt_ends_bb_p to detect
1006 the case we need to split the edge and not the block.
1008 2010-12-02 Bernd Schmidt <bernds@codesourcery.com>
1010 DFA model for Core 2 and Core i7 scheduling.
1012 * config/i386/core2.md: New DFA model for Core 2 and Core i7.
1013 * config/i386/i386.c (ix86_option_override_internal): Update entries
1014 for Core 2 and Core i7.
1015 (ix86_issue_rate): Set issue rate to 3 [be realistic].
1016 * config/i386/i386.md: Include "core2.md".
1017 (define_attr cpu): Add "corei7".
1019 2010-12-02 Maxim Kuvyrkov <maxim@codesourcery.com>
1021 Define tuning for Core 2 and Core i7.
1023 * config/i386/i386-c.c (ix86_target_macros_internal): Update.
1024 * config/i386/i386.c (core2_cost): Delete, use generic costs instead.
1025 (m_CORE2): Replace with m_CORE2_{32,64}.
1026 (m_CORE2I7{,_32,_64}): New macros.
1027 (m_GENERIC32, m_GENERIC64): Update.
1028 (initial_ix86_tune_features, x86_accumulate_outgoing_args,)
1029 (x86_arch_always_fancy_math_387): Set m_CORE2I7_32 iff m_GENERIC32 and
1030 set m_CORE2I7_64 iff m_GENERIC64.
1031 (processor_target_table): Use generic costs for Core 2 and Core i7.
1032 (ix86_option_override_internal): Update entries for Core 2 and Core i7.
1033 (ix86_issue_rate): Remove entry for Core 2.
1034 (ia32_multipass_dfa_lookahead, ix86_sched_init_global): Update.
1035 * config/i386/i386.h (TARGET_CORE2_32, TARGET_CORE2_64): New macros.
1036 (TARGET_CORE2): Update.
1037 (PROCESSOR_CORE2_32, PROCESSOR_CORE2_64): New constants.
1038 (PROCESSOR_CORE2): Remove.
1040 2010-12-02 Richard Guenther <rguenther@suse.de>
1042 * lto-streamer.h (LTO_major_version): Bump to 2.
1044 2010-12-02 Richard Guenther <rguenther@suse.de>
1047 * gimple.c (canonical_type_hash_cache): New hashtable.
1048 (gimple_type_hash): Make a wrapper around ...
1049 (gimple_type_hash_1): ... this. Take gtc_mode argument.
1050 (gimple_canonical_type_hash): Likewise.
1051 (gtc_visit): Take a gtc_mode argument.
1052 (gimple_types_compatible_p_1): Likewise. Do not compare struct
1053 tag names or field names when computing canonical types.
1054 (gimple_types_compatible_p): Adjust.
1055 (visit): Take a gtc_mode argument.
1056 (iterative_hash_gimple_type): Likewise. Do not hash struct tag
1057 names or field names when computing hashes of canonical types.
1058 (gimple_register_canonical_type): Use gimple_canonical_type_hash
1060 (print_gimple_types_stats): Dump stats of canonical_type_hash_cache.
1061 (free_gimple_type_tables): Free canonical_type_hash_cache.
1063 2010-12-02 Richard Guenther <rguenther@suse.de>
1064 Ira Rosen <irar@il.ibm.com>
1066 PR tree-optimization/46663
1067 * tree-vect-patterns.c (vect_recog_pow_pattern): Check that
1068 FUNCTION_DECL exists and that it's a builtin.
1070 2010-12-02 Jie Zhang <jie@codesourcery.com>
1073 * varasm.c (compute_visible_aliases): Handle user set
1076 2010-12-01 Michael Meissner <meissner@linux.vnet.ibm.com>
1078 * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix
1079 thinko regarding setting -mno-<xxx> debug switches.
1080 (rs6000_rtx_costs): Add FMA. Delete old rtl based FMA costs.
1082 2010-12-01 Joseph Myers <joseph@codesourcery.com>
1084 * intl.c: Don't include tm.h.
1085 * Makefile.in (intl.o): Don't depend on $(TM_H).
1087 2010-12-01 Sebastian Pop <sebastian.pop@amd.com>
1089 * graphite-sese-to-poly.c (analyze_drs_in_stmts): Fix set but
1091 (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
1093 2010-12-01 Sebastian Pop <sebastian.pop@amd.com>
1095 * graphite-sese-to-poly.c (analyze_drs): Removed.
1096 (build_scop_drs): Do not call analyze_drs.
1097 (analyze_drs_in_stmts): New.
1098 (insert_stmts): New.
1099 (insert_out_of_ssa_copy): Call analyze_drs_in_stmts.
1100 (insert_out_of_ssa_copy_on_edge): Same.
1101 (rewrite_close_phi_out_of_ssa): Call insert_stmts.
1102 (rewrite_phi_out_of_ssa): Same.
1103 (rewrite_cross_bb_scalar_dependence): Same.
1104 (split_reduction_stmt): Move data references in the new basic blocks.
1105 (translate_scalar_reduction_to_array_for_stmt): Call insert_stmts.
1107 2010-12-01 Sebastian Pop <sebastian.pop@amd.com>
1109 * sese.c (rename_uses): Do not handle ADDR_EXPR in LHS of assignments.
1111 2010-12-01 Sebastian Pop <sebastian.pop@amd.com>
1114 * graphite-poly.c (new_poly_bb): Returns a poly_bb_p. Do not take
1115 the reduction bool in parameter. Clear PBB_IS_REDUCTION. Set GBB_PBB.
1116 * graphite-poly.h (new_poly_bb): Update declaration.
1117 (gbb_from_bb): Moved here...
1119 * graphite-sese-to-poly.c (var_used_in_not_loop_header_phi_node):
1121 (graphite_stmt_p): Removed.
1122 (try_generate_gimple_bb): Returns a gimple_bb_p. Do not pass in
1123 sbitmap reductions. Always build a gimple_bb_p. Do not call
1125 (build_scop_bbs_1): Do not pass in sbitmap reductions.
1126 (build_scop_bbs): Same.
1127 (gbb_from_bb): ... from here.
1128 (add_conditions_to_constraints): Moved up.
1130 (build_scop_drs): Call analyze_drs. Remove all the PBBs that do
1131 not contain data references.
1132 (new_pbb_from_pbb): New.
1133 (insert_out_of_ssa_copy_on_edge): Call new_pbb_from_pbb after a
1135 (rewrite_close_phi_out_of_ssa): Update call to
1136 insert_out_of_ssa_copy_on_edge.
1137 (rewrite_reductions_out_of_ssa): Now static.
1138 (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
1140 (split_reduction_stmt): Call split_pbb.
1141 (translate_scalar_reduction_to_array): Pass in the scop, do not
1142 pass in the sbitmap reductions.
1143 (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
1144 (rewrite_commutative_reductions_out_of_ssa_loop): Same.
1145 (rewrite_commutative_reductions_out_of_ssa): Same.
1146 (build_poly_scop): Call build_scop_bbs,
1147 rewrite_commutative_reductions_out_of_ssa,
1148 rewrite_reductions_out_of_ssa, and
1149 rewrite_cross_bb_scalar_deps_out_of_ssa. Move build_scop_drs
1151 * graphite-sese-to-poly.h (rewrite_commutative_reductions_out_of_ssa):
1152 Removed declaration.
1153 (rewrite_reductions_out_of_ssa): Same.
1154 (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
1155 (build_scop_bbs): Same.
1156 * graphite.c (graphite_transform_loops): Do not initialize reductions.
1157 Do not call build_scop_bbs,
1158 rewrite_commutative_reductions_out_of_ssa,
1159 rewrite_reductions_out_of_ssa, and
1160 rewrite_cross_bb_scalar_deps_out_of_ssa.
1161 * sese.h (struct gimple_bb): Add field pbb.
1164 2010-12-01 Sebastian Pop <sebastian.pop@amd.com>
1166 * graphite-sese-to-poly.c (handle_scalar_deps_crossing_scop_limits):
1168 (rewrite_cross_bb_scalar_deps): Pass in the scop. Call
1169 handle_scalar_deps_crossing_scop_limits.
1170 (rewrite_cross_bb_scalar_deps_out_of_ssa): Create an empty BB
1171 after the scop. Update call to rewrite_cross_bb_scalar_deps.
1173 2010-12-01 Sebastian Pop <sebastian.pop@amd.com>
1175 * sese.c (rename_uses): Call recompute_tree_invariant_for_addr_expr
1176 when replacing a constant in an ADDR_EXPR.
1178 2010-12-01 Sebastian Pop <sebastian.pop@amd.com>
1180 * graphite-blocking.c (lst_do_strip_mine_loop): Extra parameter
1182 (lst_do_strip_mine): Same.
1183 (scop_do_strip_mine): Same.
1184 * graphite-poly.c (apply_poly_transforms): Update call to
1186 * graphite-poly.h (scop_do_strip_mine): Update declaration.
1188 2010-12-01 Jan Hubicka <jh@suse.cz>
1190 * tree.c (build_common_builtin_nodes): Do not initialize
1191 BUILT_IN_PROFILE_FUNC_ENTER and BUILT_IN_PROFILE_FUNC_EXIT.
1192 * builtins.c (expand_builtin_profile_func): Remove.
1193 (expand_builtin): Do not handle BUILT_IN_PROFILE_FUNC_ENTER and
1194 BUILT_IN_PROFILE_FUNC_EXIT.
1195 * builtins.def (profile_func_enter, profile_func_exit): Remove stubs.
1196 (__cyg_profile_func_enter, __cyg_profile_func_exit): New.
1197 * gimplify.c (gimplify_function_tree): Reorganize code calling
1198 profiling functions.
1200 2010-12-01 Joseph Myers <joseph@codesourcery.com>
1202 * opts.c: Expand comment on tm.h include.
1204 2010-12-01 Yao Qi <yao@codesourcery.com>
1206 * config/arm/predicates.md ("vfp_register_operand"): Return true for
1207 VFP_D0_D7_REGS classes.
1209 2010-12-01 Joseph Myers <joseph@codesourcery.com>
1211 * common.opt (flag_stack_check): New Variable entry.
1212 (fcompare-debug-second): Use Var.
1213 * flags.h (flag_compare_debug, flag_stack_check): Remove.
1214 * opts.c (flag_compare_debug): Remove.
1215 (common_handle_option): Don't handle OPT_fcompare_debug_second.
1216 Set opts->x_flag_stack_check for OPT_fstack_check_.
1217 * toplev.c (flag_stack_check): Remove.
1219 2010-12-01 Joseph Myers <joseph@codesourcery.com>
1221 * common.opt (main_input_filename, main_input_basename,
1222 main_input_baselength): New Variable entries. From toplev.c.
1223 * final.c (output_quoted_string): Move from toplev.c.
1224 * output.h (output_quoted_string): Move from toplev.h.
1225 * opts-global.c (read_cmdline_options): Use gcc_options pointer to
1226 access main_input_filename, main_input_baselength and
1227 main_input_basename.
1228 * targhooks.c: Include intl.h and opts.h.
1229 (option_affects_pch_p, default_get_pch_validity): Move from
1231 * targhooks.h (option_affects_pch_p, default_get_pch_validity):
1233 * toplev.c (main_input_filename, main_input_basename,
1234 main_input_baselength): Move to common.opt.
1235 (output_quoted_string): Move to final.c.
1236 (warn_deprecated_use): Move to tree.c.
1237 (option_affects_pch_p, default_get_pch_validity,
1238 pch_option_mismatch, default_pch_valid_p): Move to targhooks.c.
1239 * toplev.h (skip_leading_substring): Move to tree-dump.c.
1240 (warn_deprecated_use): Move to tree.h.
1241 (output_quoted_string): Move to output.h.
1242 (main_input_filename, main_input_basename, main_input_baselength):
1244 (default_get_pch_validity, default_pch_valid_p): Move to
1246 * tree-dump.c (skip_leading_substring): Move from toplev.h.
1247 * tree.c (warn_deprecated_use): Move from toplev.c.
1248 * tree.h (warn_deprecated_use): Move from toplev.h.
1249 * c-typeck.c, config/alpha/alpha.c, config/arc/arc.c,
1250 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
1251 config/cris/cris.c, config/crx/crx.c, config/fr30/fr30.c,
1252 config/frv/frv.c, config/h8300/h8300.c, config/ia64/ia64.c,
1253 config/iq2000/iq2000.c, config/lm32/lm32.c, config/m32c/m32c.c,
1254 config/m32r/m32r.c, config/m68hc11/m68hc11.c, config/m68k/m68k.c,
1255 config/mcore/mcore.c, config/mep/mep.c,
1256 config/microblaze/microblaze.c, config/mips/mips.c,
1257 config/mmix/mmix.c, config/mn10300/mn10300.c,
1258 config/moxie/moxie.c, config/pa/pa.c, config/pdp11/pdp11.c,
1259 config/picochip/picochip.c, config/s390/s390.c,
1260 config/score/score.c, config/sh/sh.c, config/sparc/sparc.c,
1261 config/spu/spu.c, config/stormy16/stormy16.c, config/v850/v850.c,
1262 config/vax/vax.c, config/xtensa/xtensa.c, gimple-low.c,
1263 graphite-sese-to-poly.c, plugin.c, tree-cfg.c, tree-inline.c,
1264 varasm.c, xcoffout.c: Don't include toplev.h.
1265 * Makefile.in (c-typeck.o, tree-inline.o, tree-cfg.o,
1266 gimple-low.o, graphite-sese-to-poly.o, targhooks.o, plugin.o,
1267 varasm.o, xcoffout.o): Update dependencies.
1268 * config/arm/t-arm (arm.o): Update dependencies.
1269 * config/spu/t-spu-elf (spu.o): Update dependencies.
1271 2010-12-01 Richard Guenther <rguenther@suse.de>
1273 PR tree-optimization/46730
1274 * value-prof.c (gimple_ic): Always generate a separate merge BB.
1276 2010-11-30 Ian Lance Taylor <iant@google.com>
1278 * config/i386/linux.h (ASM_SPEC): Pass -v as -v, not -V. Remove
1279 all of %{Qy:} %{!Qn:-Qy} %{n} %{T} %{Ym,*} %{Yd,*} %{Wa,*:%*}.
1280 * config/i386/linux64.h (ASM_SPEC): Likewise.
1281 * config/i386/mingw-w64.h (ASM_SPEC): Likewise.
1282 * config/i386/sol2-10.h (ASM_SPEC) [USE_GAS]: Likewise.
1283 * config/i386/vxworks.h (ASM_SPEC): Likewise.
1284 * config/i386/x86-64.h (ASM_SPEC): Likewise.
1285 * config/i386/sol2.h (ASM_SPEC): Remove %{Wa,*:%*}.
1286 * config/i386/sol2-10.h (ASM_SPEC) [!USE_GAS]: Likewise.
1288 2010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
1290 * c-decl.c (finish_function): Call objc_finish_function in
1292 * c-typeck.c (convert_for_assignment): Do not call
1293 objc_type_quals_match().
1295 2010-11-30 Richard Guenther <rguenther@suse.de>
1297 PR tree-optimization/46722
1298 * tree-ssa-math-opts.c (convert_mult_to_fma): Get multiplication
1299 operands as arguments.
1300 (execute_optimize_widening_mul): Also handle power of two as
1303 2010-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
1306 * cgraphunit.c (process_function_and_variable_attributes): Fix
1309 2010-11-30 Joseph Myers <joseph@codesourcery.com>
1311 * hwint.c: New. Extracted from toplev.c.
1312 * hwint.h (clz_hwi, ctz_hwi, ffs_hwi, exact_log2, floor_log2):
1314 * toplev.c (clz_hwi, ctz_hwi, ffs_hwi, exact_log2, floor_log2):
1316 * toplev.h (clz_hwi, ctz_hwi, ffs_hwi, exact_log2, floor_log2):
1318 * builtins.c, combine.c, config/i386/winnt.c, double-int.c,
1319 explow.c, expmed.c, fold-const.c, ggc-page.c, ggc-zone.c, ifcvt.c,
1320 ipa-struct-reorg.c, ira-color.c, matrix-reorg.c, omp-low.c,
1321 real.c, recog.c, reload.c, rtlanal.c, simplify-rtx.c,
1322 stor-layout.c, tree-dfa.c, tree-ssa-alias.c,
1323 tree-ssa-loop-niter.c, tree-vect-data-refs.c,
1324 tree-vect-loop-manip.c, tree-vect-loop.c, tree-vect-stmts.c,
1325 tree-vrp.c: Don't include toplev.h.
1326 * genattrtab.c, genconditions.c, genemit.c, genextract.c,
1327 genoutput.c, genpeep.c, genpreds.c, genrecog.c: Don't include
1328 toplev.h in generated output.
1329 * Makefile.in (OBJS-common): Add hwint.o.
1330 Dependencies for above files changed to remove toplev.h.
1332 (insn-attrtab.o, insn-emit.o, insn-extract.o, insn-output.o,
1333 insn-peep.o, insn-preds.o, insn-recog.o): Don't depend on
1335 * config/i386/t-cygming (winnt.o): Don't depend on toplev.h.
1336 * config/i386/t-interix (winnt.o): Don't depend on toplev.h.
1338 2010-11-30 Richard Guenther <rguenther@suse.de>
1340 PR tree-optimization/46717
1341 * value-prof.c (gimple_ic): Preserve EH edges of the indirect
1342 call. Manually create EH edges for the direct call and update
1345 2010-11-30 Joseph Myers <joseph@codesourcery.com>
1347 * diagnostic-core.h: Include bversion.h.
1348 * toplev.h: Don't include input.h or bversion.h.
1349 (parse_optimize_options): Don't declare here.
1350 * alias.c, auto-inc-dec.c, c-aux-info.c, c-convert.c, c-parser.c,
1351 caller-save.c, cfg.c, cfganal.c, cfgbuild.c, cfgcleanup.c,
1352 combine-stack-adj.c, config/arm/pe.c, config/darwin-c.c,
1353 config/host-darwin.c, config/i386/host-cygwin.c,
1354 config/i386/host-mingw32.c, config/i386/msformat-c.c,
1355 config/i386/netware.c, config/i386/nwld.c,
1356 config/i386/winnt-cxx.c, config/i386/winnt-stubs.c,
1357 config/ia64/ia64-c.c, config/m32c/m32c-pragma.c,
1358 config/mep/mep-pragma.c, config/microblaze/microblaze-c.c,
1359 config/rs6000/host-darwin.c, config/rs6000/rs6000-c.c,
1360 config/score/score3.c, config/score/score7.c,
1361 config/sh/symbian-base.c, config/sh/symbian-c.c,
1362 config/sh/symbian-cxx.c, config/sol2-c.c, config/sol2.c,
1363 config/v850/v850-c.c, config/vxworks.c, convert.c, cppbuiltin.c,
1364 cselib.c, dbgcnt.c, ddg.c, dfp.c, dominance.c, emit-rtl.c,
1365 fixed-value.c, fwprop.c, ggc-common.c, gimple.c, gimplify.c,
1366 graphite-blocking.c, graphite-clast-to-gimple.c,
1367 graphite-dependences.c, graphite-flattening.c,
1368 graphite-interchange.c, graphite-poly.c,
1369 graphite-scop-detection.c, graphite.c, haifa-sched.c,
1370 implicit-zee.c, integrate.c, ipa-pure-const.c, ipa-reference.c,
1371 ira-build.c, ira-conflicts.c, ira-costs.c, ira-lives.c, jump.c,
1372 lists.c, loop-doloop.c, loop-iv.c, lto-cgraph.c, lto-compress.c,
1373 lto-opts.c, lto-section-in.c, lto-section-out.c,
1374 lto-streamer-out.c, lto-symtab.c, modulo-sched.c, optabs.c,
1375 params.c, postreload-gcse.c, postreload.c, predict.c, profile.c,
1376 regcprop.c, reginfo.c, regmove.c, reorg.c, resource.c,
1377 sched-deps.c, sched-ebb.c, sched-rgn.c, sdbout.c,
1378 sel-sched-dump.c, sel-sched-ir.c, sese.c, stmt.c, targhooks.c,
1379 tree-cfgcleanup.c, tree-mudflap.c, tree-nomudflap.c,
1380 tree-object-size.c, tree-outof-ssa.c, tree-phinodes.c,
1381 tree-profile.c, tree-sra.c, tree-ssa-ccp.c, tree-ssa-coalesce.c,
1382 tree-ssa-live.c, tree-ssa-loop-prefetch.c, tree-ssa-loop.c,
1383 tree-ssa-operands.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
1384 tree-vect-patterns.c, value-prof.c, var-tracking.c, web.c: Don't
1386 * Makefile.in (TOPLEV_H): Remove. All uses changed to use
1387 toplev.h. Dependencies for above files and c-family files changed
1388 to remove $(TOPLEV_H) or toplev.h.
1389 (C_TREE_H): Don't include $(TOPLEV_H).
1390 (DIAGNOSTIC_CORE_H): Use $(INPUT_H) instead of input.h. Add
1392 * config/arm/t-pe, config/arm/t-wince-pe, config/i386/t-cygming,
1393 config/ia64/t-ia64, config/mep/t-mep, config/score/t-score-elf,
1394 config/t-darwin, config/t-sol2,
1395 config/t-vxworks, config/v850/t-v850, config/v850/t-v850e:
1396 Dependencies for above files changed to remove $(TOPLEV_H) or
1399 2010-11-30 Richard Guenther <rguenther@suse.de>
1402 * gcc.c (main): Use the first input with a compiler as infile
1403 for link spec processing.
1405 2010-11-30 Richard Guenther <rguenther@suse.de>
1408 * cgraphunit.c (ipa_passes): Stop after errors from
1411 2010-11-30 Mingjie Xing <mingjie.xing@gmail.com>
1413 * gcc-plugin.h: Include coretypes.h.
1414 * Makefile.in (FUNCTION_H): Add hard-reg-set.h.
1416 2010-11-30 Laurynas Biveinis <laurynas.biveinis@gmail.com>
1418 * ggc-zone.c (ggc_pch_read): Fix conditional compilation.
1419 * ggc-none.c (ggc_internal_alloc_zone_stat)
1420 (ggc_internal_cleared_alloc_zone_stat): New.
1422 2010-11-29 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
1424 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Check
1425 TARGET_SINGLE_PIC_BASE for RS6000_PIC_OFFSET_TABLE_REGNUM.
1426 (rs6000_emit_prologue): Don't set PIC register if
1427 TARGET_SINGLE_PIC_BASE.
1428 * config/rs6000/rs6000.opt (msingle-pic-base): New option.
1429 * doc/invoke.texi (msingle-pic-base): Document.
1431 2010-11-29 H.J. Lu <hongjiu.lu@intel.com>
1434 * exec-tool.in (id): New.
1435 Check and export LT_RCU_$id instead of LT_RCU.
1437 2010-11-29 Zdenek Dvorak <rakdver@kam.uniff.cz>
1439 PR tree-optimization/46675
1440 * tree-ssa-loop-niter.c (split_to_var_and_offset): Avoid overflow
1441 in offset calculation.
1443 2010-11-29 Jan Hubicka <jh@suse.cz>
1445 * collect2.c (main): Do not imply verbose output with
1446 LTO and linker plugin.
1448 2010-11-29 Dodji Seketeli <dodji@redhat.com>
1450 * dwarf2out.c (print_die): Print the address of the current DIE or
1451 of any DIE referenced by the current one.
1453 2010-11-29 Dodji Seketeli <dodji@redhat.com>
1456 * dwarf2out.c (lookup_type_die_strip_naming_typedef): New
1458 (scope_die_for, gen_type_die_for_member): Replace uses of
1459 lookup_type_die with use of lookup_type_die_strip_naming_typedef.
1461 2010-11-29 Iain Sandoe <iains@gcc.gnu.org>
1463 * config/darwin.c (darwin_mergeable_string_section): Remove blank line.
1464 (darwin_asm_declare_object_name): Correct spelling.
1465 (darwin_output_aligned_bss): Likewise.
1467 2010-11-29 Iain Sandoe <iains@gcc.gnu.org>
1468 Mike Stump <mrs@gcc.gnu.org>
1473 * config/i386/darwin.h (ASM_OUTPUT_COMMON): Remove
1474 (ASM_OUTPUT_LOCAL): Likewise.
1475 * config/darwin-protos.h (darwin_asm_declare_object_name): New.
1476 (darwin_output_aligned_bss): Likewise.
1477 (darwin_asm_output_aligned_decl_local): Likewise.
1478 (darwin_asm_output_aligned_decl_common): Likewise.
1479 (darwin_use_anchors_for_symbol_p): Likewise.
1480 * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Remove.
1481 (TARGET_ASM_OUTPUT_ANCHOR): Define.
1482 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Define.
1483 (DARWIN_SECTION_ANCHORS): Set to 1.
1484 * config/darwin.c (emit_aligned_common): New var.
1485 (darwin_init_sections): Check that the Darwin private zero-size section
1487 (darwin_text_section): Check for zero-sized objects.
1488 (darwin_mergeable_string_section): Likewise.
1489 (darwin_mergeable_constant_section): Likewise.
1490 (machopic_select_section): Adjust to check for zero-sized objects.
1491 Assert that OBJC meta data are non-zero sized.
1492 (darwin_asm_declare_object_name): New.
1493 (darwin_asm_declare_constant_name): Adjust for zero-sized
1495 (BYTES_ZFILL): Define.
1496 (darwin_emit_weak_or_comdat): New.
1497 (darwin_emit_local_bss): New.
1498 (darwin_emit_common): New.
1499 (darwin_output_aligned_bss): New.
1500 (darwin_asm_output_aligned_decl_common): New.
1501 (darwin_asm_output_aligned_decl_local): New.
1502 (darwin_file_end): Disable subsections_via_symbols when section
1503 anchoring is active.
1504 (darwin_asm_output_anchor): Re-enable.
1505 (darwin_use_anchors_for_symbol_p): New.
1506 (darwin_override_options): Check for versions that can emit
1507 aligned common. Update usage of flags to current.
1508 * config/darwin-sections.def: Update comments and flags for
1509 non-anchor sections. zobj_const_section, zobj_data_section,
1510 zobj_bss_section, zobj_const_data_section: New.
1511 * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Redefine.
1512 (ASM_OUTPUT_ALIGN): Make whitespace output consistent.
1513 (L2_MAX_OFILE_ALIGNMENT): Define.
1514 (ASM_OUTPUT_ALIGNED_BSS): Define.
1515 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
1516 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
1517 (SECTION_NO_ANCHOR): Define.
1518 (TARGET_ASM_OUTPUT_ANCHOR) Define with a default of NULL.
1519 (DARWIN_SECTION_ANCHORS): Define with a default of 0.
1521 2010-11-29 Joseph Myers <joseph@codesourcery.com>
1523 * system.h: Include "safe-ctype.h" instead of <safe-ctype.h>.
1524 Include <signal.h>, <sys/mman.h>, <sys/resource.h> and <sys/times.h>.
1525 (O_BINARY, SIGCHLD, MAP_FAILED, MAP_ANONYMOUS, kill):
1526 Conditionally define.
1527 (GET_ENVIRONMENT): Poison.
1528 * configure.ac: Don't test for mincore.
1529 * configure: Regenerate.
1530 * config.in: Regenerate.
1531 * collect2-aix.c: Don't include <sys/mman.h>.
1532 * collect2.c: Don't include <signal.h>.
1533 (SIGCHLD): Don't define.
1534 (prefix_from_env): Use getenv instead of GET_ENVIRONMENT.
1535 * config/alpha/alpha.c: Include "splay-tree.h" instead of
1537 * config/arm/arm.c (arm_target_help): Use getenv instead of
1539 * config/avr/driver-avr.c: Don't include <stdlib.h>.
1540 * config/frv/frv.c: Don't include <ctype.h>.
1541 * config/host-darwin.c: Don't include <sys/mman.h>.
1542 * config/host-hpux.c: Don't include <sys/mman.h> or <unistd.h>.
1543 (MAP_FAILED): Don't define.
1544 * config/host-linux.c: Don't include <sys/mman.h> or <limits.h>.
1545 * config/host-solaris.c: Don't include <sys/mman.h>.
1546 * config/i386/cygming.h: Don't include <stdio.h>.
1547 * config/i386/driver-i386.c: Don't include <stdlib.h>.
1548 * config/i386/host-cygwin.c: Don't include <sys/mman.h>.
1549 * config/iq2000/iq2000.c: Don't include <signal.h>.
1550 * config/m32c/m32c-pragma.c: Don't include <stdio.h>.
1551 * config/m68hc11/m68hc11.c: Don't include <stdio.h>.
1552 * config/mep/mep-pragma.c: Don't include <stdio.h>.
1553 * config/microblaze/microblaze.c: Don't include <signal.h>.
1554 * config/mips/mips.c: Don't include <signal.h>.
1555 * config/rs6000/host-darwin.c: Don't include <signal.h>.
1556 * cppdefault.c (cpp_relocated): Use getenv instead of GET_ENVIRONMENT.
1557 * defaults.h (GET_ENVIRONMENT): Don't define.
1558 * et-forest.h: Don't include <ansidecl.h> or <stddef.h>.
1559 * gcc.c: Don't include <signal.h>, <sys/mman.h> or <sys/types.h>.
1560 (SIGCHLD, MAP_FAILED, kill): Don't define.
1561 (process_command): Use getenv instead of GET_ENVIRONMENT.
1562 * genhooks.c: Don't include <string.h>.
1563 * ggc-common.c: Don't include <sys/resource.h>, <sys/mman.h> or
1565 (MAP_FAILED): Don't define.
1566 * ggc-page.c Don't include <sys/mman.h>.
1567 (MAP_ANONYMOUS, MAP_FAILED): Don't define.
1568 * ggc-zone.c: Don't include <sys/mman.h>.
1569 (MAP_ANONYMOUS, MAP_FAILED): Don't define.
1570 * graph.c: Include "config.h" instead of <config.h>.
1571 * incpath.c (add_env_var_paths): Use getenv instead of GET_ENVIRONMENT.
1572 * lto-wrapper.c: Don't include <errno.h>, <signal.h> or "libiberty.h".
1573 (SIGCHLD, kill): Don't define.
1574 * mips-tfile.c: Don't include <signal.h>.
1575 * opts.c: Don't include <signal.h> or <sys/resource.h>.
1576 (print_specific_help): Use getenv instead of GET_ENVIRONMENT.
1577 * passes.c: Don't include <signal.h>, <sys/resource.h> or
1579 * sparseset.h: Don't include <assert.h>.
1580 * timevar.c: Don't include <sys/times.h> or <sys/resource.h>.
1581 * tlink.c: Don't include "libiberty.h".
1582 * toplev.c: Don't include <signal.h> or <sys/times.h>.
1583 * tree-mudflap.c: Include "demangle.h" instead of <demangle.h>.
1584 * tree-switch-conversion.c: Don't include <signal.h>.
1585 * vmsdbgout.c: Don't include <errno.h> or <string.h>.
1587 2010-11-29 Nicola Pero <nicola.pero@meta-innovation.com>
1589 * c-parser.c (c_parser_objc_try_catch_statement): Renamed to
1590 c_parser_objc_try_catch_finally_statement for consistency with the
1591 C++ parser. Parse @catch(...) and pass NULL_TREE to
1592 objc_begin_catch_clause() in that case. Improved error recovery.
1593 Reorganized code to be almost identical to
1594 cp_parser_objc_try_catch_finally_statement.
1596 2010-11-29 Joern Rennecke <amylaar@spamcop.net>
1598 PR tree-optimization/46621
1599 * gimple.h: Don't include tm.h or hard-reg-set.h .
1600 * Makefile.in (GIMPLE_H): Remove $(TM_H).
1603 * cppbuiltin.c: Include target.h .
1604 (define_builtin_macros_for_type_sizes):
1605 Use targetm.float_words_big_endian.
1607 2010-11-27 Jan Hubicka <jh@suse.cz>
1609 * dwarf2out.c (dwarf2out_begin_function): Set cold_text_section
1610 and output cold_text_section_label.
1611 (dwarf2out_init): Don't do that there.
1612 (dwarf2out_finish): Handle cold section end label only if cold
1615 2010-11-27 Eric Botcazou <ebotcazou@adacore.com>
1617 * tree-nested.c (remap_vla_decls): Fully expand value expressions of
1620 2010-11-27 Richard Guenther <rguenther@suse.de>
1622 * gimple.c (gimple_assign_copy_p): Use gimple_assign_single_p.
1623 (gimple_assign_ssa_name_copy_p): Likewise.
1624 (gimple_assign_unary_nop_p): Use is_gimple_assign.
1625 (is_gimple_cast): Remove.
1626 (gimple_assign_single_p): Move ...
1627 * gimple.h (gimple_assign_single_p): ... here.
1628 (is_gimple_cast): Remove.
1629 (gimple_assign_rhs_code): Simplify.
1630 * gimple-fold.c (gimple_fold_builtin): Use CONVERT_EXPR_P
1631 instead of is_gimple_cast.
1632 * ipa-type-escape.c (look_for_casts): Likewise.
1634 2010-11-26 Joseph Myers <joseph@codesourcery.com>
1636 * doc/options.texi (Enum, EnumValue): Document new record types.
1637 (Enum): Document new option flag.
1639 * optc-gen.awk: Handle enumerated option arguments.
1640 * opth-gen.awk: Handle enumerated option arguments.
1641 * opts-common.c (enum_arg_ok_for_language, enum_arg_to_value,
1642 enum_value_to_arg): New.
1643 (decode_cmdline_option): Handle enumerated arguments.
1644 (read_cmdline_option): Handle CL_ERR_ENUM_ARG.
1645 (set_option, option_enabled, get_option_state): Handle CLVC_ENUM.
1646 * opts.c (print_filtered_help, print_specific_help): Take
1647 lang_mask arguments.
1648 (print_filtered_help): Handle printing values of enumerated
1649 options. Print possible arguments for enumerated options.
1650 (print_specific_help): Update call to print_filtered_help.
1651 (common_handle_option): Update calls to print_specific_help. Use
1652 value rather than arg for OPT_fdiagnostics_show_location_. Don't
1653 handle OPT_ffp_contract_, OPT_fexcess_precision_,
1654 OPT_fvisibility_, OPT_ftls_model_, OPT_fira_algorithm_ or
1655 OPT_fira_region_ here.
1656 * opts.h (enum cl_var_type): Add CLVC_ENUM.
1657 (struct cl_option): Add var_enum.
1658 (CL_ENUM_CANONICAL, CL_ENUM_DRIVER_ONLY, struct cl_enum_arg,
1659 struct cl_enum, cl_enums, cl_enums_count): New.
1660 (CL_ERR_ENUM_ARG): Define.
1661 (CL_ERR_NEGATIVE): Update value.
1662 (enum_value_to_arg): Declare.
1663 * common.opt (flag_ira_algorithm, flag_ira_region,
1664 flag_fp_contract_mode, flag_excess_precision_cmdline,
1665 default_visibility, flag_tls_default): Remove Variable entries.
1666 (help_enum_printed): New Variable.
1667 (fdiagnostics-show-location=): Use Enum. Add associated
1668 SourceInclude, Enum and EnumValue entries.
1669 (fexcess-precision=, ffp-contract=, fira-algorithm=, fira-region=,
1670 ftls-model=, fvisibility=): Use Enum, Var and Init. Add
1671 associated Enum and EnumValue entries.
1673 2010-11-26 Joern Rennecke <amylaar@spamcop.net>
1676 * config/microblaze/microblaze.c (microblaze_block_move_straight):
1678 (microblaze_option_override): Don't use C++ style comments.
1679 (save_restore_insns): Remove unused variable base_offset.
1680 (microblaze_expand_prologue): Remove unused variable insn.
1681 (microblaze_secondary_reload): Adjust type to match target.h .
1682 (microblaze_elf_in_small_data_p): Move declarations to start of block.
1683 (microblaze_expand_move): Likewise.
1684 * config/microblaze/microblaze.h (LARGE_INT):
1685 Avoid signed / unsigned comparisons.
1686 (ASM_OUTPUT_ALIGNED_COMMON, ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
1687 (ASM_FORMAT_PRIVATE_NAME): Make format specifier match printed data.
1688 (ASM_FINISH_DECLARE_OBJECT): Likewise. Constify name.
1690 2010-11-26 Michael Matz <matz@suse.de>
1692 * tree-ssa-copy.c (fini_copy_prop): Don't DCE when we have loops.
1694 * passes.c (init_optimization_passes): Remove superfluous
1697 2010-11-26 Richard Guenther <rguenther@suse.de>
1700 * gimple.c (gtc_visit): Do not return true for members of an
1701 SCC still being processed but the current lattice value of
1702 the member. Treat SCC members comparison state as lattice,
1703 starting at equal, eventually dropping to unequal.
1704 (gimple_types_compatible_p_1): Likewise.
1706 2010-11-26 Richard Guenther <rguenther@suse.de>
1709 * dwarf2out.c (dwarf2out_finish): Use comp_unit_die as root
1710 for location list processing.
1712 2010-11-26 Richard Guenther <rguenther@suse.de>
1715 * cgraph.c (cgraph_clone_edge): Clone call_stmt dependent
1718 2010-11-26 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1720 * config/s390/s390.c (print_operand_address): Replace assert with
1722 (print_operand): Replace assertions, gcc_unreachable and
1723 fatal_insn with error messages.
1725 2010-11-26 Richard Guenther <rguenther@suse.de>
1727 PR tree-optimization/46665
1728 * tree-ssa-structalias.c (pt_solution_set_var): Use DECL_PT_UID.
1730 2010-11-26 Ian Bolton <ian.bolton@arm.com>
1732 * config/arm/arm.c (arm_option_override): enable loop array
1733 prefetching at -O3 for suitable targets, and configure params.
1734 * config/arm/arm-protos.h (struct tune_params): Add fields for
1735 configuring loop array prefetching.
1737 2010-11-26 Christian Borntraeger <borntraeger@de.ibm.com>
1739 * config/s390/2817.md (z196_crack): Add z196_g3 as possible slot.
1741 2010-11-26 Richard Guenther <rguenther@suse.de>
1743 PR tree-optimization/46664
1744 * tree-affine.c (aff_combination_to_tree): Add rest last.
1746 2010-11-26 Michael Haubenwallner <michael.haubenwallner@salomon.at>
1749 * configure.ac: Accept extra arguments for AS_FOR_TARGET,
1750 LD_FOR_TARGET, NM_FOR_TARGET, OBJDUMP_FOR_TARGET.
1751 * configure: Regenerated.
1752 * exec-tool.in: Not quoting command, may have extra arguments.
1754 2010-11-26 Richard Guenther <rguenther@suse.de>
1756 PR tree-optimization/46528
1758 * profile.c (branch_prob): Do not split blocks based on locations
1759 from debug statements.
1761 2010-11-26 Jakub Jelinek <jakub@redhat.com>
1764 * builtins.c (fold_builtin_memset): Check c is INTEGER_CST instead
1765 of host_integerp check. Use TREE_INT_CST_LOW instead of tree_low_cst.
1768 * tree.h (build1_stat_loc, build2_stat_loc, build3_stat_loc,
1769 build4_stat_loc, build5_stat_loc, build6_stat_loc): New inlines.
1770 (build1_loc, build2_loc, build3_loc, build4_loc, build5_loc,
1771 build6_loc): Define.
1772 * fold-const.c (protected_set_expr_location_unshare): New inline.
1773 (fold_convert_loc, pedantic_non_lvalue_loc): Use it.
1774 (negate_expr, associate_trees, non_lvalue_loc, omit_one_operand_loc,
1775 pedantic_omit_one_operand_loc, omit_two_operands_loc,
1776 fold_truth_not_expr, invert_truthvalue_loc, make_bit_field_ref,
1777 optimize_bit_field_compare, make_range, fold_range_test, fold_truthop,
1778 build_fold_addr_expr_with_type_loc, fold_unary_loc, fold_binary_loc,
1779 fold_indirect_ref_1, build_fold_indirect_ref_loc): Use builN_loc
1780 instead of buildN followed by SET_EXPR_LOCATION or
1781 protected_set_expr_location.
1782 (fold_build1_stat_loc, fold_build2_stat_loc, fold_build3_stat_loc):
1783 Use buildN_stat_loc instead of buildN_stat followed by
1786 2010-11-26 Basile Starynkevitch <basile@starynkevitch.net>
1788 * Makefile.in (s-tm-texi): Remove spurous tab.
1790 2010-11-26 Alexandre Oliva <aoliva@redhat.com>
1793 * tree-cfg.c (replace_uses_by): Don't mark BBs as altered on
1796 2010-11-26 Alexandre Oliva <aoliva@redhat.com>
1798 * toplev.c (finalize): Add no_backend parameter. Don't finish
1799 passes when preprocessing only. Adjust...
1800 (do_compile): ... caller.
1802 2010-11-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1804 * config/pa/pa.md (negdf2): Condition on !flag_signed_zeros instead of
1805 flag_unsafe_math_optimizations.
1807 Move fnegabs related patterns together. Only use fmpynfadd instruction
1808 to negate a multiply if !flag_signed_zeros is true.
1810 2010-11-25 Uros Bizjak <ubizjak@gmail.com>
1812 * gengtype-state.c (read_state_structures): Initialize "previous".
1814 2010-11-25 Basile Starynkevitch <basile@starynkevitch.net>
1815 Jeremie Salvucci <jeremie.salvucci@free.fr>
1817 * gengtype-state.c: Add new file.
1819 * gengtype.c (type count): New variable.
1820 (new_structure, find_param_structure, create_pointer)
1821 (create_array): Use it to set state_number in types.
1822 (dump_everything): Improve comment.
1823 (main): Call read_state and write_state. Print type_count.
1825 * gengtype.h (type_lineloc): New function.
1826 (read_state, write_state): New declarations.
1828 * Makefile.in (GENGTYPE_FLAGS): New variable.
1829 (s-gtype): Run gengtype twice and generate gtype.state.
1830 (build/gengtype-state.o): New rule.
1831 (build/gengtype$(build_exeext)): Link gengtype-state.o.
1832 (mostlyclean): Update comment. Remove gtype.state.
1834 2010-11-25 Jakub Jelinek <jakub@redhat.com>
1837 * combine.c (try_combine): When substing i2dest for i2src, pass
1838 1 as last argument even if
1839 i0_feeds_i1_n && i1_feeds_i2_n && i0dest_in_i0src.
1841 2010-11-25 H.J. Lu <hongjiu.lu@intel.com>
1844 * builtins.c (target_char_cast): Check INTEGER_CST instead of
1845 host_integerp. Replace tree_low_cst with TREE_INT_CST_LOW.
1847 2010-11-25 Joseph Myers <joseph@codesourcery.com>
1849 * target.def (supports_split_stack, except_unwind_info): Take
1850 gcc_options parameters.
1851 * targhooks.c (default_except_unwind_info,
1852 dwarf2_except_unwind_info, sjlj_except_unwind_info): Take
1853 gcc_options parameters.
1854 * targhooks.h (default_except_unwind_info,
1855 dwarf2_except_unwind_info, sjlj_except_unwind_info): Update
1857 * doc/tm.texi.in (TARGET_IRA_COVER_CLASSES,
1858 TARGET_HAVE_NAMED_SECTIONS, TARGET_UNWIND_TABLES_DEFAULT):
1859 Document that hooks must not be modified.
1860 (TARGET_EXCEPT_UNWIND_INFO): Refer to opts argument.
1861 * doc/tm.texi: Regenerate.
1862 * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Pass
1863 &global_options to targetm.except_unwind_info.
1864 * dwarf2out.c (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
1865 dwarf2out_begin_prologue, dwarf2out_frame_init,
1866 dwarf2out_frame_finish, dwarf2out_assembly_start): Pass
1867 &global_options to targetm.except_unwind_info.
1868 * except.c (init_eh, finish_eh_generation,
1869 gate_convert_to_eh_region_ranges,
1870 output_one_function_exception_table): Pass &global_options to
1871 targetm.except_unwind_info.
1872 * expr.c (build_personality_function): Pass &global_options to
1873 targetm.except_unwind_info.
1874 * function.c (expand_function_end): Pass &global_options to
1875 targetm.except_unwind_info.
1876 * hooks.c (hook_bool_bool_gcc_optionsp_false): New.
1877 * hooks.h (hook_bool_bool_gcc_optionsp_false): Declare.
1878 * opts.c (finish_options): Pass opts to targetm.except_unwind_info
1879 and targetm.supports_split_stack. Remove assertions about opts
1881 (common_handle_option): Remove assertions about opts, opts_set and dc.
1882 * tree-tailcall.c (suitable_for_tail_call_opt_p): Pass
1883 &global_options to targetm.except_unwind_info.
1884 * tree.c (build_common_builtin_nodes: Pass &global_options to
1885 targetm.except_unwind_info.
1886 * config/arm/arm.c (arm_except_unwind_info): Add gcc_options parameter.
1887 (arm_compute_func_type, arm_expand_prologue, thumb_pushpop,
1888 thumb1_expand_prologue, thumb1_output_function_prologue,
1889 arm_unwind_emit, arm_output_fn_unwind): Update calls to
1890 arm_except_unwind_info.
1891 * config/i386/i386.c (ix86_supports_split_stack): Add gcc_options
1893 * config/ia64/ia64.c (ia64_except_unwind_info): Add gcc_options
1895 (ia64_output_function_prologue, ia64_add_bundle_selector_before,
1896 ia64_reorg, ia64_asm_unwind_emit): Update calls to
1897 ia64_except_unwind_info.
1898 * config/pa/pa.c (pa_option_override): Pass &global_options to
1899 targetm.except_unwind_info.
1900 * config/picochip/picochip-protos.h (picochip_except_unwind_info):
1903 2010-11-25 Kai Tietz <kai.tietz@onevision.com>
1905 * cgraphunit.c (process_function_and_variable_attributes):
1906 Mark dllexport-ed function/variables as needed.
1907 * ipa.c (cgraph_externally_visible_p): Make dllexport-ed
1908 as externally visible.
1910 2010-11-25 Alexander Monakov <amonakov@ispras.ru>
1912 PR rtl-optimization/46585
1913 * sel-sched-ir.c (return_regset_to_pool): Verify that RS is not NULL.
1914 (vinsn_init): Skip computation of dependencies for local NOPs.
1915 (vinsn_delete): Don't try to free regsets for local NOPs.
1916 (setup_nop_and_exit_insns): Change definition of nop_pattern.
1918 2010-11-25 Alexander Monakov <amonakov@ispras.ru>
1920 PR rtl-optimization/46602
1921 * sel-sched-ir.c (maybe_tidy_empty_bb): Move checking ...
1922 (tidy_control_flow): Here.
1924 2010-11-25 Joern Rennecke <amylaar@spamcop.net>
1925 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1928 * Makefile.in (s-tm-texi): Remove \r occurences from tmp-tm.texi.
1929 Fix target.def pathname in timestamp comparison.
1931 2010-11-24 Richard Henderson <rth@redhat.com>
1933 * config/ia64/predicates.md (pmpyshr_operand): New.
1934 * config/ia64/ia64.c (ia64_expand_unpack): New.
1935 (ia64_expand_widen_mul_v4hi): New.
1936 (ia64_expand_widen_sum): Update for pattern renames.
1937 (ia64_expand_dot_prod_v8qi): Likewise.
1938 * config/ia64/ia64-protos.h: Update.
1939 * config/ia64/vect.md (vecwider): New mode attribute.
1940 (vec_widen_umult_lo_v8qi, vec_widen_umult_hi_v8qi): New.
1941 (vec_widen_smult_lo_v8qi, vec_widen_smult_hi_v8qi): New.
1942 (pmpyshr2, pmpyshr2_u): New.
1943 (vec_widen_smult_lo_v4hi, vec_widen_smult_hi_v4hi): New.
1944 (vec_widen_umult_lo_v4hi, vec_widen_umult_hi_v4hi): New.
1946 (vec_pack_ssat_v4hi): Rename from pack2_sss.
1947 (vec_pack_usat_v4hi): Rename from *pack2_uss.
1948 (vec_pack_ssat_v2si): Rename from pack4_sss.
1949 (vec_interleave_lowv8qi): Rename from unpack1_l, use the correct
1950 vec_select operation.
1951 (vec_interleave_highv8qi): Similarly.
1952 (mux1_alt): Rename from *mux1_alt.
1953 (vec_extract_evenv8qi, vec_extract_oddv8qi): New.
1954 (vec_interleave_lowv4hi): Rename from unpack2_l.
1955 (vec_interleave_highv4hi): Rename from unpack2_h.
1956 (mix2_r): Rename from *mix2_r.
1957 (mix2_l): Similarly.
1958 (vec_extract_evenodd_helper): New.
1959 (vec_extract_evenv4hi, vec_extract_oddv4hi): New.
1960 (vec_interleave_lowv2si): Rename from *unpack4_l.
1961 (vec_interleave_highv2si): Rename from *unpack4_h.
1962 (vec_extract_evenv2si, vec_extract_oddv2si): New.
1963 (vec_interleave_lowv2sf): Rename from fmix_r.
1964 (vec_interleave_highv2sf): Rename from *fmix_l.
1965 (vec_extract_evenv2sf, vec_extract_oddv2sf): New.
1966 (vec_unpacku_lo_<VECINT12>, vec_unpacku_hi_<VECINT12>): New.
1967 (vec_unpacks_lo_<VECINT12>, vec_unpacks_hi_<VECINT12>): New.
1968 (vec_pack_trunc_v4hi, vec_pack_trunc_v2si): New.
1970 2010-11-24 Nathan Froyd <froydnj@codesourcery.com>
1972 * targhooks.c (default_except_unwind_info): Remove
1973 MUST_USE_SJLJ_EXCEPTIONS case.
1974 * config/h8300/h8300.h (MUST_USE_SJLJ_EXCEPTIONS): Delete.
1975 * config/h8300/h8300.c (TARGET_EXCEPT_UNWIND_INFO): Define.
1976 * doc/tm.texi.in (MUST_USE_SJLJ_EXCEPTIONS): Delete.
1977 * doc/tm.texi: Regenerate.
1978 * system.h (MUST_USE_SJLJ_EXCEPTIONS): Poison.
1980 2010-11-24 Nathan Froyd <froydnj@codesourcery.com>
1982 * cppbuiltin.c (define_builtin_macros_for_type_sizes): Define
1983 __FLOAT_WORD_ORDER__ according to FLOAT_WORDS_BIG_ENDIAN.
1984 * config/dfp-bit.h (LIBGCC2_FLOAT_WORDS_BIG_ENDIAN): Delete.
1985 * doc/cpp.texi (__FLOAT_WORD_ORDER__): Document.
1986 * system.h (LIBGCC2_FLOAT_WORDS_BIG_ENDIAN): Poison.
1988 2010-11-24 H.J. Lu <hongjiu.lu@intel.com>
1991 * config/i386/i386.c (ix86_expand_call): Don't check
1994 2010-11-24 H.J. Lu <hongjiu.lu@intel.com>
1997 * config/i386/i386.c (upper_128bits_state): New.
1998 (block_info_def): Remove upper_128bits_set and done. Add state,
1999 referenced, count, processed and rescanned.
2000 (check_avx256_stores): Updated.
2001 (move_or_delete_vzeroupper_2): Updated. Handle deleted BB_END.
2002 Call note_stores only if needed. Set referenced and count.
2003 (move_or_delete_vzeroupper_1): Updated. Set rescan_vzeroupper_p.
2004 (rescan_move_or_delete_vzeroupper): New.
2005 (move_or_delete_vzeroupper): Process and rescan all all basic
2006 blocks instead of predecessor blocks of all exit points.
2007 (ix86_option_override_internal): Enable vzeroupper optimization
2008 only for -fexpensive-optimizations and not optimizing for size.
2009 (use_avx256_p): Removed.
2010 (init_cumulative_args): Don't set use_avx256_p.
2011 (ix86_function_arg): Likewise.
2012 (ix86_expand_move): Likewise.
2013 (ix86_expand_vector_move_misalign): Likewise.
2014 (ix86_local_alignment): Likewise.
2015 (ix86_minimum_alignment): Likewise.
2016 (ix86_expand_epilogue): Don't check use_avx256_p when generating
2018 (ix86_expand_call): Likewise.
2020 * config/i386/i386.h (machine_function): Remove use_vzeroupper_p
2021 and use_avx256_p. Add rescan_vzeroupper_p.
2023 2010-11-24 Joseph Myers <joseph@codesourcery.com>
2025 * toplev.c: Include <signal.h>.
2027 2010-11-24 Richard Guenther <rguenther@suse.de>
2030 * lto-symtab.c (lto_cgraph_replace_node): Mark edges with
2031 conflicting function signatures as non-inlineable.
2033 2010-11-24 Jakub Jelinek <jakub@redhat.com>
2035 PR rtl-optimization/46614
2036 * sched-deps.c (NON_FLUSH_JUMP_KIND, NON_FLUSH_JUMP_P): Define.
2037 (deps_analyze_insn): Mark JUMP_INSNs in
2038 last_pending_memory_flush that weren't added through
2039 flush_pending_lists with NON_FLUSH_JUMP_KIND.
2040 (sched_analyze_2, sched_analyze_insn): Check NON_FLUSH_JUMP_P
2041 on INSN_LIST instead of JUMP_P check on its operand.
2042 * sched-rgn.c (concat_INSN_LIST): Copy over REG_NOTE_KIND.
2044 2010-11-24 Richard Guenther <rguenther@suse.de>
2046 * lto-streamer-in.c (input_gimple_stmt): Use types_compatible_p.
2048 2010-11-24 Richard Guenther <rguenther@suse.de>
2051 * lto-streamer-in.c (input_gimple_stmt): When we cannot find
2052 a FIELD_DECL that is type correct issue a warning and fixup
2053 with a VIEW_CONVERT_EXPR.
2055 2010-11-24 Basile Starynkevitch <basile@starynkevitch.net>
2057 * doc/invoke.texi (Options for Debugging Your Program or GCC):
2058 Explain static numbering of dump files.
2060 2010-11-24 Joseph Myers <joseph@codesourcery.com>
2062 * common.opt (user_vect_verbosity_level): New Variable entry.
2063 (ftree-vectorizer-verbose=): Mark as UInteger.
2064 * flag-types.h (enum vect_verbosity_levels): Move from enum
2065 verbosity_levels in tree-vectorizer.h.
2066 * opts.c: Don't include tree.h.
2067 (vect_set_verbosity_level): Move from tree-vectorizer.c. Use
2068 gcc_options parameter; take integer option argument.
2069 (common_handle_option): Update call to vect_set_verbosity_level.
2070 * tree-vectorizer.c (user_vect_verbosity_level): Remove.
2071 (vect_set_verbosity_level): Move to opts.c.
2072 (vect_verbosity_level, vect_print_dump_info): Update for change of
2074 * tree-vectorizer.h (enum verbosity_levels): Move to flag-types.h.
2075 (vect_print_dump_info): Update for change of enum name.
2076 * tree.h (vect_set_verbosity_level): Remove.
2077 * Makefile.in (opts.o): Update dependencies.
2079 2010-11-24 Jakub Jelinek <jakub@redhat.com>
2082 * cfgexpand.c (maybe_cleanup_end_of_block): Test NEXT_INSN (insn)
2083 instead of insn with any_condjump_p.
2085 2010-11-24 Mingjie Xing <mingjie.xing@gmail.com>
2087 * config/mips/loongson.md: Change the description comment of the file
2088 and update the copyright years.
2089 (define_insn "<u>div<mode>3): Add loongson3a support.
2090 (define_insn "<u>mod<mode>3"): Likewise.
2091 * config/mips/mips.md: Rename mul<mode>3_mul3_ls2ef to
2092 mul<mode>3_mul3_loongson.
2093 (define_expand "mul<mode>3"): Add TARGET_LOONGSON_3A.
2094 (define_insn "mul<mode>3_mul3_loongson"): Add loongson3a support.
2096 2010-11-23 Joseph Myers <joseph@codesourcery.com>
2098 * common.opt (initial_max_fld_align, flag_debug_asm,
2099 flag_dump_rtl_in_asm, flag_dump_all_passed, rtl_dump_and_exit,
2100 flag_print_asm_name, graph_dump_format, help_printed,
2101 help_columns, flag_opts_finished): New Variable entries.
2102 (fdbg-cnt-list, fdbg-cnt=, fdebug-prefix-map=, frandom-seed,
2103 frandom-seed=): Mark deferred.
2104 (fsched-verbose=): Use UInteger and Var.
2105 * flags.h (set_struct_debug_option, flag_print_asm_name,
2106 rtl_dump_and_exit, flag_debug_asm, flag_dump_rtl_in_asm,
2107 graph_dump_format): Don't declare here.
2108 * haifa-sched.c (sched_verbose_param, fix_sched_param): Remove.
2109 * opts-global.c: Include dbgcnt.h and debug.h.
2110 (decode_options): Pass location to finish_options.
2111 (handle_common_deferred_options): Check flag_dump_all_passed.
2112 Handle OPT_fdbg_cnt_, OPT_fdbg_cnt_list, OPT_fdebug_prefix_map_,
2113 OPT_frandom_seed and OPT_frandom_seed_. Don't assert on
2115 * opts.c: Don't include toplev.h, dbgcnt.h or debug.h.
2116 (set_struct_debug_option): Add location_t parameter. Update
2117 recursive call. Use error_at.
2118 (default_options_optimization): Use error_at.
2119 (finish_options): Add location_t parameter. Use
2120 opts->x_flag_opts_finished instead of first_time_p. Use
2121 opts->x_optimize instead of optimize. Use error_at. Pass
2123 (print_filtered_help): Use opts->x_help_printed to track what
2124 options have been printed.
2125 (print_specific_help): Use opts->x_help_columns to track number of
2127 (common_handle_option): Pass locations and gcc_options pointers to
2128 more functions. Use warning_at instead of fnotice and warning.
2129 Don't handle OPT_fdbg_cnt_, OPT_fdbg_cnt_list or
2130 OPT_fdebug_prefix_map_. Use error_at. Set
2131 opts->x_initial_max_fld_align; don't set maximum_field_alignment.
2132 Don't handle OPT_frandom_seed or OPT_frandom_seed_. Don't handle
2133 OPT_fsched_verbose_.
2134 (handle_param): Add location_r parameter. Use error_at.
2135 (set_debug_level): Add location_r parameter. Use error_at and
2137 (setup_core_dumping): Add diagnostic_context parameter.
2138 (decode_d_option): Add gcc_options, location_t and
2139 diagnostic_context parameters and use them instead of global
2140 state. Use warning_at.
2141 (enable_warning_as_error): Use error_at.
2142 * opts.h (finish_options): Update prototype.
2143 (set_struct_debug_option): Declare here.
2144 * rtl.h (fix_sched_param): Remove.
2145 * stor-layout.c (initial_max_fld_align): Remove.
2146 * toplev.c (rtl_dump_and_exit, flag_print_asm_name,
2147 graph_dump_format, flag_debug_asm, flag_dump_rtl_in_asm): Remove.
2148 (process_options): Set maximum_field_alignment.
2149 * tree.h (initial_max_fld_align) Don't declare here.
2150 * Makefile.in (opts.o, opts-global.o): Update dependencies.
2152 2010-11-23 Joseph Myers <joseph@codesourcery.com>
2154 * flag-types.h (struct visibility_flags): Don't declare here.
2155 * flags.h (strip_off_ending, fast_math_flags_set_p,
2156 fast_math_flags_struct_set_p): Declare here.
2157 (visibility_options): Don't declare here.
2158 * opts-common.c (option_enabled, get_option_state): Move from
2160 * opts-global.c: Include diagnostic.h instead of
2161 diagnostic-core.h. Include tree.h, langhooks.h, lto-streamer.h
2163 (const_char_p, ignored_options, in_fnames, num_in_fnames,
2164 write_langs, complain_wrong_lang, postpone_unknown_option_warning,
2165 print_ignored_options, unknown_option_callback,
2166 post_handling_callback, lang_handle_option, add_input_filename,
2167 read_cmdline_options, initial_lang_mask, init_options_once,
2168 decode_cmdline_options_to_array_default_mask,
2169 set_default_handlers, decode_options): Move from opts.c.
2170 (print_ignored_options): Use warning_at instead of saving and
2171 restoring input_location.
2172 * opts.c: Include <signal.h> and <sys/resource.h>. Include rtl.h
2173 instead of expr.h. Don't include langhooks.h, except.h or
2174 lto-streamer.h. Add more comments on includes.
2175 (strip_off_ending, setup_core_dumping, decode_d_option): Move from
2177 (visibility_options): Move to c-family/c-common.c.
2178 (const_char_p, ignored_options, in_fnames, num_in_fnames,
2179 write_langs, complain_wrong_lang, postpone_unknown_option_warning,
2180 print_ignored_options, unknown_option_callback,
2181 post_handling_callback, lang_handle_option, add_input_filename,
2182 read_cmdline_options, initial_lang_mask, init_options_once,
2183 decode_cmdline_options_to_array_default_mask,
2184 set_default_handlers, decode_options): Move to opts-global.c.
2185 (target_handle_option, default_options_optimization,
2186 finish_options, common_handle_option): Remove static.
2187 (option_enabled, get_option_state): Move to opts-common.c.
2188 * opts.h (common_handle_option, target_handle_option,
2189 finish_options, default_options_optimization): Declare.
2190 * toplev.c: Don't include <signal.h> or <sys/resource.h>.
2191 (setup_core_dumping, strip_off_ending, decode_d_option): Move to
2193 * toplev.h (strip_off_ending, decode_d_option,
2194 fast_math_flags_set_p, fast_math_flags_struct_set_p): Don't
2196 * Makefile.in (opts.o, opts-global.o): Update dependencies.
2198 2010-11-23 Dave Korn <dave.korn.cygwin@gmail.com>
2201 * gcc.c (LINK_COMMAND_SPEC): Remove hard-coded pass-through plugin
2202 options, replace by call of pass-through-libs spec function to process
2203 link_gcc_c_sequence spec.
2204 (lto_libgcc_spec): Delete variable.
2205 (static_specs[]): Remove related entry.
2206 (static_spec_functions[]): Add new entry for pass-through-libs.
2207 (main): Don't generate deleted lto_libgcc_spec.
2208 (pass_through_libs_spec_func): New function to implement the new
2209 pass-through-libs spec function.
2210 * doc/invoke.texi (pass-through-libs): Document new spec function.
2212 2010-11-23 Joseph Myers <joseph@codesourcery.com>
2214 * doc/options.texi (Warning, Optimization): Document.
2216 2010-11-23 Jan Hubicka <jh@suse.cz>
2218 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): New macro.
2219 (tree_decl_with_vis): Add implicit_section_name_p.
2220 * targhooks.h (default_function_section): Declare.
2221 * target.def (function_section): New hook.
2222 * defaults.h (HOT_TEXT_SECTION_NAME,
2223 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
2224 * predict.c (choose_function_section): Remove.
2225 (estimate_bb_frequencies): Do not use choose_function_section.
2226 * coretypes.h (enum node_frequency): Move here from cgraph.h
2227 * cgraph.h (enum node_frequency): Remove.
2228 * varasm.c (initialize_cold_section_name, unlikely_text_section,
2229 unlikely_text_section_p): Remove.
2230 (named_subsection_entry): New structure.
2231 (get_text_section): New function.
2232 (default_function_section): New function.
2233 (function_section_1): Break out from ...; handle profile info.
2234 (function_section): ... here.
2235 (unlikely_text_section): Remove.
2236 (unlikely_text_section_p): Use function_section_1.
2237 (assemble_start_function): Do not initialize cold section.
2238 (default_section_type_flags): Do not special case cold subsection.
2239 (switch_to_section): Likewise.
2240 * output.h (get_text_section): Define.
2241 * config/i386/winnt.c: Do not special case cold section.
2242 * config/darwin-protos.h (darwin_function_section): Declare.
2243 * config/microblaze/microblaze.h (HOT_TEXT_SECTION_NAME,
2244 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
2245 * config/ia64/hpux.h (HOT_TEXT_SECTION_NAME,
2246 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
2247 (TARGET_ASM_FUNCTION_SECTION): Define to ia64_hpux_function_section.
2248 * config/ia64/ia64.c (ia64_hpux_function_section): New function.
2249 * config/darwin.c (machopic_select_section): Use
2250 darwin_function_section.
2251 (darwin_function_section): New function.
2252 * config/darwin.h (HOT_TEXT_SECTION_NAME,
2253 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
2254 (TARGET_ASM_FUNCTION_SECTION): Define.
2255 * system.h (HOT_TEXT_SECTION_NAME,
2256 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Poison.
2258 2010-11-23 Iain Sandoe <iains@gcc.gnu.org>
2260 * config/darwin.h (LINK_COMMAND_SPEC_A): Use %(link_gcc_c_sequence).
2261 LINK_GCC_C_SEQUENCE_SPEC: Define new macro.
2263 2010-11-23 Jakub Jelinek <jakub@redhat.com>
2266 * cfgexpand.c (maybe_cleanup_end_of_block): Remove also BARRIERs
2267 following unconditional jumps.
2269 2010-11-23 Richard Guenther <rguenther@suse.de>
2271 * doc/md.texi (386 constraints): Clarify A constraint documentation.
2273 2010-11-23 Basile Starynkevitch <basile@starynkevitch.net>
2274 Jeremie Salvucci <jeremie.salvucci@free.fr>
2276 * gengtype.c (enum typekind, struct options)
2277 (struct nested_ptr_data, struct pair, NUM_PARAM)
2278 (enum gc_used_num, struct type, UNION_P, UNION_OR_STRUCT_P):
2280 (string_type, scalar_nonchar, scalar_nonchar, scalar_char):
2281 Remove static, add zero state_number.
2282 (typedefs, structures, param_structs, variables): Remove static.
2283 (create_option): Remove.
2284 (create_string_option, create_type_option, create_nested_option):
2286 (create_nested_ptr_option): Use create_nested_option.
2287 (note_variable, adjust_field_rtx_def, adjust_field_type): Call the
2288 new create*option functions.
2289 (process_gc_options): Adjust for discriminated option.
2290 (output_mangled_typename): Handle TYPE_NONE.
2291 (walk_type): Test option kinds.
2292 (write_types_process_field): Handle TYPE_NONE and TYPE_ARRAY.
2293 (write_func_for_structure, write_type, write_local, write_root)
2294 (write_roots, note_def_vec, dump_options): Adjust for
2295 discriminated option.
2297 * gengtype.h (typedefs, structures, param_structs, variables
2298 enum typekind): Move from gengtype.c
2299 (enum option_kind): New discriminating enumeration.
2300 (struct options): Becomes discriminated.
2301 (struct nested_ptr_data): Nove from gengtype.c
2302 (create_string_option, create_type_option, create_nested_option)
2303 (create_nested_ptr_option): New functions
2304 (struct pair, enum_gc_used_enum, NUM_PARAM, struct type, UNION_P)
2305 (UNION_OR_STRUCT_P): Move from gengtype.c
2307 * gengtype-parse.c (str_optvalue_opt, type_optvalue, option): Make
2308 discriminated options.
2310 2010-11-23 Richard Guenther <rguenther@suse.de>
2312 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid doing work
2313 twice. Avoid re-allocating the ops vector all the time.
2315 2010-11-23 Richard Guenther <rguenther@suse.de>
2317 * tree-ssa-alias.c (refs_may_alias_p_1): Avoid calls to
2318 is_gimple_min_invariant, group tree code checks to allow
2320 (stmt_may_clobber_ref_p_1): Check for SSA_NAME instead
2323 2010-11-23 Eric Botcazou <ebotcazou@adacore.com>
2325 * config.gcc (sparc*-*-*): Reorder.
2327 2010-11-23 Basile Starynkevitch <basile@starynkevitch.net>
2329 * gengtype.c (header_dot_h_frul, source_dot_c_frul):
2330 Remove ENABLE_CHECKING around DBGPRINTF.
2332 2010-11-22 Joseph Myers <joseph@codesourcery.com>
2334 * common.opt (exit_after_options, write_symbols, debug_info_level,
2335 use_gnu_debug_info_extensions): New Variable entries.
2336 (fprofile-dir=): Use Var.
2337 * flag-types.h (enum debug_info_level): Rename to enum
2339 * flags.h (write_symbols, debug_info_level,
2340 use_gnu_debug_info_extensions): Remove declarations.
2341 * opts.c (exit_after_options, write_symbols, debug_info_level): Remove.
2342 (set_struct_debug_option): Make static variables const.
2343 (use_gnu_debug_info_extensions): Remove.
2344 (set_debug_level, print_filtered_help, print_specific_help,
2345 fast_math_flags_set_p): Take gcc_options parameters and use them
2346 in place of global variables.
2347 (print_filtered_help): Make new_help non-static.
2348 (print_specific_help): Update call to print_filtered_help.
2349 (common_handle_option): Update calls to print_specific_help. Use
2350 gcc_options structure for more settings. Make --help table
2351 const. Don't handle OPT_fprofile_dir_ here. Update calls to
2353 * toplev.c (profile_data_prefix): Remove.
2354 * toplev.h (profile_data_prefix, exit_after_options): Remove
2356 (fast_math_flags_set_p): Update prototype.
2357 * cppbuiltin.c (define_builtin_macros_for_compilation_flags):
2358 Update call to fast_math_flags_set_p.
2360 2010-11-22 Richard Henderson <rth@redhat.com>
2363 * config/crx/crx.c (crx_addr_reg): Rename from crx_addr_reg_p;
2364 return the address register extracted.
2365 (crx_decompose_address): Update the extracted address register.
2367 2010-11-22 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
2370 * gcc.c (main): Don't crash when lto-wrapper program is not found.
2372 2010-11-22 Joern Rennecke <amylaar@spamcop.net>
2375 * config/picochip/picochip.c (picochip_secondary_reload): Make static.
2376 * config/picochip/picochip-protos.h: Don't include "target.h" .
2377 (picochip_secondary_reload): Don't declare.
2380 * config/m32c/m32c-protos.h (m32c_conditional_register_usage): Declare.
2381 * config/m32c/m32c.c (m32c_conditional_register_usage): No longer
2384 2010-11-22 H.J. Lu <hongjiu.lu@intel.com>
2387 * gengtype.c (header_dot_h_frul): Check ENABLE_CHECKING.
2388 (source_dot_c_frul): Likewise.
2390 2010-11-22 Basile Starynkevitch <basile@starynkevitch.net>
2392 * gimple-pretty-print.c (dump_bb_header): Add check for cfun.
2394 2010-11-22 Paolo Bonzini <bonzini@gnu.org>
2397 * Makefile.in (fwprop.o) Add sparseset.h.
2398 * fwprop.c: Include sparseset.h
2399 (struct find_occurrence_data, find_occurrence_callback,
2400 find_occurrence): Remove.
2401 (active_defs, active_defs_check, register_active_defs,
2402 update_df_init, update_uses): New.
2403 (update_df): Rewrite.
2404 (try_fwprop_subst, forward_propagate_asm): Add calls to
2405 update_df_init and update_df.
2406 (fwprop_init): Allocate active_defs and active_defs_check.
2407 (fwprop_done): Free them.
2408 (fwprop, fwprop_addr): Adjust comments.
2409 * df.h (df_uses_create): Declare.
2410 * df-scan.c (df_install_ref_incremental): Break out of df_ref_create.
2411 (df_ref_create): Return result of df_ref_create_structure directly.
2412 (df_ref_create_structure): Call df_install_ref_incremental when
2413 no collection_rec is passed.
2414 (df_ref_record): Do not create multiword hard reg info when no
2415 collection_rec is passed.
2416 (df_uses_create): New.
2418 2010-11-21 Uros Bizjak <ubizjak@gmail.com>
2421 * fold-const.c (pedantic_non_lvalue_loc): Unshare x before
2424 2010-11-22 Richard Guenther <rguenther@suse.de>
2426 * gimple-fold.c (maybe_fold_reference): When canonicalizing
2427 MEM_REFs, preserve volatileness.
2428 * cgraphbuild.c (mark_address): Properly check for FUNCTION_DECL
2431 2010-11-22 Richard Guenther <rguenther@suse.de>
2433 * tree-ssa-ccp.c (get_base_constructor): Remove superfluous breaks.
2435 2010-11-22 Alexander Monakov <amonakov@ispras.ru>
2437 PR rtl-optimization/45652
2438 * alias.c (get_reg_base_value): New.
2439 * rtl.h (get_reg_base_value): Add prototype.
2440 * sel-sched.c (init_regs_for_mode): Use it. Don't use registers with
2441 non-null REG_BASE_VALUE for renaming.
2443 2010-11-22 Jeremie Salvucci <jeremie.salvucci@free.fr>
2444 Basile Starynkevitch <basile@starynkevitch.net>
2446 * gengtype.c: Include xregex.h and obstack.h
2447 Added comments about role of get_output_file_with_visibility and
2448 our regexpr machinery.
2449 (frul_actionrout_t, struct file_rule_st): New.
2450 (hader_dot_h_frul, source_dot_c_frul): New functions.
2451 (NULL_REGEX, NULL_FRULACT): New.
2453 (matching_file_name_substitute): New function.
2454 (get_output_file_with_visibility): Updated comments and rewritten
2455 to use the new files_rules machinery.
2457 * Makefile.in (XREGEX_H): Added variable.
2458 (build/gengtype.o): Added dependencies for xregex.h and obstack.h
2460 2010-11-21 Nathan Froyd <froydnj@codesourcery.com>
2462 * system.h (FUNCTION_ARG_BOUNDARY): Really poison.
2464 2010-11-21 Nathan Froyd <froydnj@codesourcery.com>
2466 * target.def (conditional_register_usage): Define.
2467 * reginfo.c (init_reg_sets_1): Call
2468 targetm.conditional_register_usage.
2469 * system.h (CONDITIONAL_REGISTER_USAGE): Poison.
2470 * doc/tm.texi.in (CONDITIONAL_REGISTER_USAGE): Adjust language
2471 for making it a hook.
2472 * doc/tm.texi: Regenerate.
2473 * config/alpha/alpha.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2474 * config/alpha/alpha.c (alpha_conditional_register_usage): ...here.
2476 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2477 * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2478 * config/arc/arc.c (arc_conditional_register_usage): ...here.
2480 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2481 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2482 * config/arm/arm.c (arm_conditional_register_usage): ...here.
2484 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2485 * config/bfin/bfin.h (CONDITIONAL_REGISTER_USAGE): Delete.
2486 * config/bfin/bfin-protos.h (conditional_register_usage): Delete.
2487 * config/bfin/bfin.c (conditional_register_usage): Move code into...
2488 (bfin_conditional_register_usage): ...here. New function.
2489 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2490 * config/cris/cris.h (CONDITIONAL_REGISTER_USAGE): Delete.
2491 * config/cris/cris-protos.h (cris_conditional_register_usage): Delete.
2492 * config/cris/cris.c (cris_conditional_register_usage): Make static.
2493 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2494 * config/fr30/fr30.h (FIXED_REGISTERS): Adjust comment.
2495 * config/frv/frv.h (CONDITIONAL_REGISTER_USAGE): Delete.
2496 * config/frv/frv-protos.h (frv_conditional_register_usage): Delete.
2497 * config/frv/frv.c (frv_conditional_register_usage): Make static.
2498 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2499 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2500 * config/h8300/h8300.c (h8300_conditional_register_usage): ...here.
2502 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2503 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Delete.
2504 * config/i386/i386-protos.h (ix86_conditional_register_usage): Delete.
2505 * config/i386/i386.c (ix86_conditional_register_usage): Make static.
2506 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2507 * config/m32c/m32c.h (CONDITIONAL_REGISTER_USAGE): Delete.
2508 * config/m32c/m32c-protos.h (m32c_conditional_register_usage): Delete.
2509 * config/m32c/m32c.c (m32c_conditional_register_usage): Make static.
2510 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2511 * config/m32r/m32r.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2512 * config/m32r/m32r.c (m32r_conditional_register_usage): ...here.
2514 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2515 * config/m68hc11/m68hc11.h (CONDITIONAL_REGISTER_USAGE): Delete.
2516 * config/m68hc11/m68hc11-protos.h (m68hc11_conditional_register_usage):
2518 * config/m68hc11/m68hc11.c (m68hc11_conditional_register_usage): Make
2520 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2521 * config/mep/mep.h (CONDITIONAL_REGISTER_USAGE): Delete.
2522 * config/mep/mep-protos.h (mep_conditional_register_usage): Delete.
2523 * config/mep/mep.c (mep_conditional_register_usage): Make static.
2524 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2525 * config/mips/mips.h (CONDITIONAL_REGISTER_USAGE): Delete.
2526 * config/mips/mips-protos.h (mips_conditional_register_usage): Delete.
2527 * config/mips/mips.c (mips_conditional_register_usage): Make static.
2528 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2529 * config/mmix/mmix.h (CONDITIONAL_REGISTER_USAGE): Delete.
2530 * config/mmix/mmix-protos.h (mmix_conditional_register_usage): Delete.
2531 * config/mmix/mmix.c (mmix_conditional_register_usage): Make static.
2532 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2533 * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2534 * config/mn10300/mn10300.c (mn10300_conditional_register_usage):
2535 ...here. New function.
2536 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2537 * config/pa/pa32-regs.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2538 * config/pa/pa64-regs.h (CONDITIONAL_REGISTER_USAGE): ...with this...
2539 * config/pa/pa.c (pa_conditional_register_usage): ...here.
2541 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2542 * config/pdp11/pdp11.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2543 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): ...here.
2545 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2546 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Delete.
2547 * config/rs6000/rs6000-protos.h (rs6000_conditional_register_usage):
2549 * config/rs6000/rs6000.c (rs6000_conditional_register_usage): Make
2551 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2552 * config/rx/rx.h (CONDITIONAL_REGISTER_USAGE): Delete.
2553 * config/rx/rx-protos.h (rx_conditional_register_usage): Delete.
2554 * config/rx/rx.c (rx_conditional_register_usage): Make static.
2555 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2556 * config/s390/s390.h (CONDITIONAL_REGISTER_USAGE): Delete.
2557 * config/s390/s390-protos.h (s390_conditional_register_usage): Delete.
2558 * config/s390/s390.c (s390_conditional_register_usage): Make static.
2559 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2560 * config/score/score.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2561 * config/score/score.c (score_conditional_register_usage): ...here.
2563 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2564 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2565 * config/sh/sh.c (sh_conditional_register_usage): ...here.
2567 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2568 * config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2569 * config/sparc/sparc.c (sparc_conditional_register_usage): ...here.
2571 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2572 * config/spu/spu.h (CONDITIONAL_REGISTER_USAGE): Delete.
2573 * config/spu/spu-protos.h (spu_conditional_register_usage): Delete.
2574 * config/spu/spu.c (spu_conditional_register_usage): Make static.
2575 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2576 * config/v850/v850.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2577 * config/v850/v850.c (v850_conditional_register_usage): ...here.
2579 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2581 2010-11-21 Jan Hubicka <jh@suse.cz>
2582 Dominique d'Humieres <dominiq@lps.ens.ft>
2585 * tree-emutls.c (get_emutls_init_templ_addr, new_emutls_decl): Do not
2586 finalize external decls.
2588 2010-11-21 Joseph Myers <joseph@codesourcery.com>
2590 * system.h (strerror): Poison.
2592 2010-11-21 Richard Henderson <rth@redhat.com>
2594 * config/ia64/ia64.c (ia64_expand_builtin): Use the correct mode
2597 2010-11-21 Richard Henderson <rth@redhat.com>
2599 PR rtl-optimization/46571
2600 * gcse.c (hash_scan_set): Use next_nonnote_nondebug_insn.
2601 (compute_hash_table_work): Use NONDEBUG_INSN_P.
2603 2010-11-21 Paul Koning <ni1d@arrl.net>
2605 * config/mips/pdp11.md (negsi2): Fix wrong code.
2607 2010-11-21 Paul Koning <ni1d@arrl.net>
2609 * config/mips/pdp11.c (pdp11_legitimate_address_p): New function.
2610 * config/mips/pdp11.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
2612 2010-11-21 Eric Botcazou <ebotcazou@adacore.com>
2614 * config/mips/mips.c (machine_function): Rename load_label_length to
2615 load_label_num_insns.
2616 (mips_load_label_length): Rename to...
2617 (mips_load_label_num_insns): ...this. Adjust to first renaming.
2618 (mips_adjust_insn_length): Adjust to second renaming. Fix thinko.
2620 2010-11-21 Uros Bizjak <ubizjak@gmail.com>
2623 * config/alpha/predicates.md (direct_call_operand): Return false
2624 for !TARGET_SMALL_TEXT targets.
2626 2010-11-20 Joseph Myers <joseph@codesourcery.com>
2628 * doc/tm.texi.in (HANDLE_SYSV_PRAGMA,
2629 HANDLE_PRAGMA_PACK_PUSH_POP): Remove.
2630 (HANDLE_PRAGMA_PACK_WITH_EXPANSION): Don't refer to HANDLE_SYSV_PRAGMA.
2631 * doc/tm.texi: Regenerate.
2632 * system.h (HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_SYSV_PRAGMA,
2633 HANDLE_PRAGMA_WEAK): Poison.
2634 * config/alpha/elf.h (HANDLE_SYSV_PRAGMA): Don't define.
2635 * config/alpha/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2636 * config/alpha/osf5.h (HANDLE_SYSV_PRAGMA): Don't define.
2637 * config/alpha/vms.h (HANDLE_SYSV_PRAGMA): Don't define.
2638 * config/arm/arm.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2639 * config/arm/netbsd.h (HANDLE_SYSV_PRAGMA): Don't define.
2640 * config/cris/cris.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2641 * config/darwin.h (HANDLE_SYSV_PRAGMA): Don't define.
2642 (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2643 * config/elfos.h (HANDLE_SYSV_PRAGMA): Don't define.
2644 * config/freebsd.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2645 * config/frv/frv.h (HANDLE_SYSV_PRAGMA): Don't define.
2646 * config/i386/cygming.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2647 * config/i386/djgpp.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2648 * config/i386/i386-interix.h (HANDLE_SYSV_PRAGMA): Don't define.
2649 (HANDLE_PRAGMA_WEAK): Don't undefine.
2650 * config/i386/netware.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2651 * config/i386/vxworks.h (HANDLE_SYSV_PRAGMA): Don't define.
2652 * config/ia64/hpux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2653 * config/ia64/ia64.h (HANDLE_SYSV_PRAGMA): Don't define.
2654 * config/interix.h (HANDLE_SYSV_PRAGMA): Don't define.
2655 (HANDLE_PRAGMA_WEAK): Don't undefine.
2656 * config/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2657 * config/m32r/linux.h (HANDLE_SYSV_PRAGMA): Don't define.
2658 (HANDLE_PRAGMA_PACK): Don't undefine.
2659 * config/m32r/m32r.h (HANDLE_SYSV_PRAGMA): Don't undefine.
2660 * config/mep/mep.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2661 * config/mips/elf.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2662 * config/mips/sde.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2663 * config/mmix/mmix.h (HANDLE_SYSV_PRAGMA): Don't define.
2664 * config/netbsd.h (HANDLE_SYSV_PRAGMA): Don't define.
2665 (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2666 * config/openbsd.h (HANDLE_SYSV_PRAGMA): Don't define.
2667 * config/pa/pa-hpux.h (HANDLE_SYSV_PRAGMA): Don't define.
2668 (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2669 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Don't define.
2670 * config/rs6000/sysv4.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2671 * config/rx/rx.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2672 * config/score/elf.h (HANDLE_SYSV_PRAGMA): Don't define.
2673 * config/spu/spu.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2674 * config/stormy16/stormy16.h (HANDLE_SYSV_PRAGMA): Don't define.
2675 * config/xtensa/elf.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2677 2010-11-20 Eric Botcazou <ebotcazou@adacore.com>
2680 * config/sparc/sparc.h (ASM_OUTPUT_ALIGN_WITH_NOP): Move to...
2681 * config/sparc/sol2.h (ASM_OUTPUT_ALIGN_WITH_NOP): ...here.
2682 * config/sparc/sol2-gas.h (ASM_OUTPUT_ALIGN_WITH_NOP): Undefine.
2684 2010-11-20 Jan Hubicka <jh@suse.cz>
2686 * cgraph.c (ld_plugin_symbol_resolution_names): New.
2687 (dump_cgraph_node): Dump resolution.
2688 * cgraph.h (ld_plugin_symbol_resolution_names): Declare.
2689 (cgraph_comdat_can_be_unshared_p): Dclare.
2690 * lto-streamer-out.c (produce_symtab): Use
2691 cgraph_comdat_can_be_unshared_p.
2692 * ipa.c (cgraph_address_taken_from_non_vtable_p): New function.
2693 (cgraph_comdat_can_be_unshared_p): New function based on logic
2694 in cgraph_externally_visible_p.
2695 (cgraph_externally_visible_p): Use it.
2696 (varpool_externally_visible_p): Virtual tables can be unshared.
2697 * varpool.c (dump_varpool_node): Dump resolution.
2699 2010-11-20 Jan Hubicka <jh@suse.cz>
2701 * stmt.c (lshift_cheap_p): Support properly optimize_insn_for_speed_p.
2703 2010-11-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2706 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM): New variables.
2707 (AR_FOR_TARGET, RANLIB_FOR_TARGET, STRIP_FOR_TARGET): Fix
2709 (STRIP_FOR_TARGET): Look for in-tree strip under name strip-new.
2710 (install-strip): New target.
2711 (STRIPPROG): New variable, exported if STRIP is set.
2712 * doc/install.texi (Final install): Minor markup and code style
2713 fixes. Document install-strip target.
2715 2010-11-20 Paul Koning <ni1d@arrl.net>
2717 * config/pdp11/pdp11-protos.h (pdp11_initial_elimination_offset,
2718 pdp11_regno_reg_class): New functions.
2719 * config/pdp11/pdp11.md (define_constants): Add register numbers.
2720 * config/pdp11/pdp11.c (pdp11_regno_reg_class,
2721 pdp11_sp_frame_offset, pdp11_initial_elimination_offset): New
2723 * config/pdp11/pdp11.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Add
2724 frame pointer and argument pointer pseudo-registers.
2725 (ARG_POINTER_REGNUM): Define.
2726 (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Add frame pointer and
2728 (FIRST_PARM_OFFSET): Update for argument pointer.
2729 (INITIAL_FRAME_POINTER_OFFSET): Delete.
2730 (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET): New macros.
2731 (REGNO_OK_FOR_BASE_P, REGNO_OK_FOR_INDEX_P, REGISTER_NAMES): Add
2732 frame pointer and argument pointer.
2734 2010-11-20 Jakub Jelinek <jakub@redhat.com>
2737 * tree-parloops.c (try_create_redunction_list): Ignore debug stmts
2738 when looking for immediate uses.
2740 PR tree-optimization/45830
2741 * stmt.c (expand_switch_using_bit_tests_p): New function.
2742 (expand_case): Use it.
2743 * tree.h (expand_switch_using_bit_tests_p): New prototype.
2744 * tree-switch-conversion.c (struct switch_conv_info): Add
2745 bit_test_uniq, bit_test_count and bit_test_bb fields.
2746 (check_range): Fix a comment.
2747 (check_process_case): Compute bit_test_uniq and bit_test_count.
2748 (create_temp_arrays): Use XCNEWVEC, merge 3 arrays into one
2750 (free_temp_arrays): Use XDELETEVEC, adjust for the 3 arrays merging.
2751 (constructor_contains_same_values_p): Use FOR_EACH_VEC_ELT.
2752 (array_value_type): New function.
2753 (build_one_array): Use it, if it returned different type,
2754 fold_convert all constructor fields and convert back to the
2755 wider type in the generated code.
2756 (process_switch): Initialize bit_test_uniq, bit_test_count and
2757 bit_test_bb fields. Don't optimize if expand_switch_using_bit_tests_p
2760 2010-11-19 Michael Matz <matz@suse.de>
2762 PR tree-optimization/46077
2763 * tree-chrec.c (eq_evolutions_p): Accept some expressions.
2765 2010-11-19 Anatoly Sokolov <aesok@post.ru>
2767 * config/mn10300/mn10300.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
2768 * config/mn10300/mn10300.c (mn10300_asm_output_addr_const_extra): New
2770 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
2772 2010-11-19 Uros Bizjak <ubizjak@gmail.com>
2774 * mode-switching.c (optimize_mode_switching): Use
2775 FOR_BB_INSNS instead of open-coded loop.
2776 * cfgrtl.c (redirect_branch_edge): Ditto.
2778 2010-11-19 Joern Rennecke <amylaar@spamcop.net>
2781 * config/m68hc11/m68hc11.c (m68hc11_gen_highpart): Split shift count
2782 to accomodate 32 bit HOST_WIDE_INT.
2783 (m68hc11_emit_logical): Remove unused variable insn.
2784 (m68hc11_check_z_replacement) <CLOBBER>: Set this_insn_uses_ix and
2785 this_insn_uses_iy before use.
2788 * config/crx/crx.c (crx_expand_epilogue): Remove unused variable.
2790 2010-11-19 Joseph Myers <joseph@codesourcery.com>
2793 * c-tree.h (in_late_binary_op): Move to c-family/c-common.h.
2794 * c-typeck.c (in_late_binary_op): Move to c-family/c-common.c.
2796 2010-11-19 Michael Meissner <meissner@linux.vnet.ibm.com>
2798 * doc/extend.texi (Function attributes): Document PowerPC target
2799 attributes that are supported.
2800 (Pragmas): Document that PowerPC now supports target pragmas.
2802 * doc/options.texi (TargetVariable): Document TargetVariable,
2803 HeaderInclude, and SourceInclude.
2805 * doc/invoke.texi (-mfused-madd): Document that -mfused-madd is
2806 mapped to -ffp-contract=fast, and -mno-fused-madd is mapped to
2809 * optc-gen.awk: Add support for TargetVariable, HeaderInclude, and
2810 SourceInclude directives. Fix a cut+paste error with target save
2811 enum variables. Sort enums in the structures after ints and
2813 * opth-gen.awk: Ditto.
2815 * configure.ac: Add support for HeaderInclude and SourceInclude option
2816 directives to add the appropriate files to the dependency lists.
2817 * configure: Regenerate.
2818 * Makefile.in (OPTIONS_H_EXTRA): New variable for HeaderInclude.
2819 (OPTIONS_C_EXTRA): New variable for SourceInclude.
2820 (OPTIONS_H): Add $(OPTIONS_H_EXTRA).
2821 (options.o): Add $(OPTIONS_C_EXTRA) dependency.
2822 (gcc-options.o): Ditto.
2823 * opt-include.awk: New awk script to handle HeaderInclude and
2826 * config/rs6000/aix.opt (-mxl-compat): Mark option as Save so it
2827 gets saved in the target options.
2828 * config/rs6000/linux64.opt (-mprofile-kernel): Ditto.
2829 * config/rs6000/sysv4.opt (-mbit-align): Ditto.
2830 (-mprototype): Ditto.
2831 (-mbit-word): ditto.
2832 (-mregnames): Ditto.
2833 (-msecure-plt): Ditto.
2835 * config/rs6000/rs6000.opt (-mpowerpc-gpopt): Ditto.
2836 (-mpowerpc-gfxopt): Ditto.
2843 (-mhard-dfp): Ditto.
2846 (-mmultiple): Ditto.
2851 (-mno-update): Ditto.
2852 (-mavoid-indexed-addresses): Ditto.
2853 (-mtls-markers): Ditto.
2854 (-msched-epilog): Ditto.
2855 (-msched-prolog): Ditto.
2856 (-maix-struct-return): Ditto.
2857 (-msvr4-struct-return): Ditto.
2858 (-mxl-compat): Ditto.
2859 (-mrecip-precision): Ditto.
2860 (-mfp-in-toc): Ditto.
2861 (-msum-in-toc): Ditto.
2863 (-mblock-move-inline-limit=): Ditto.
2866 (-mlongcall): Ditto.
2867 (-mgen-cell-microcode): Ditto.
2868 (-mwarn-cell-microcode): Ditto.
2869 (-mwarn-altivec-long): Ditto.
2870 (-mprioritize-restricted-insns=): Ditto.
2871 (-msingle-float): Ditto.
2872 (-mdouble-float): Ditto.
2873 (-msimple-fpu): Ditto.
2874 (-mxilinx-fpu): Ditto.
2875 * config/rs6000/aix64.opt (-mpe): Ditto.
2877 * config/rs6000/rs6000.opt (HeaderInclude): Include rs6000-opts.h.
2878 (rs6000_cpu): Move variable to be a target variable. Rename
2879 cmodel to rs6000_current_cmodel because of macro conflict. Merge
2880 -mdebug=<xxx> variables into a single int.
2881 (rs6000_always_hint): Ditto.
2882 (rs6000_sched_groups): Ditto.
2883 (rs6000_align_branch_targets): Ditto.
2884 (rs6000_sched_costly_dep): Ditto.
2885 (rs6000_sched_insert_nops): Ditto.
2886 (rs6000_long_double_type_size): Ditto.
2887 (rs6000_ieeequad): Ditto.
2888 (rs6000_altivec_abi): Ditto.
2889 (rs6000_spe): Ditto.
2890 (rs6000_spe_abi): Ditto.
2891 (rs6000_float_gprs): Ditto.
2892 (rs6000_darwin64_abi): Ditto.
2893 (can_override_loop_align): Ditto.
2894 (rs6000_sdata): Ditto.
2895 (rs6000_tls_size): Ditto.
2896 (rs6000_current_abi): Ditto.
2897 (rs6000_traceback): Ditto.
2898 (rs6000_alignment_flags): Ditto.
2899 (rs6000_current_cmodel): Ditto.
2900 (rs6000_recip_control): Ditto.
2901 (rs6000_cpu_index): Ditto.
2902 (rs6000_tune_index): Ditto.
2903 (rs6000_debug): Ditto.
2904 (rs6000_target_flags_explict): Ditto.
2906 * config/rs6000/rs6000-protos.h (rs6000_pragma_target_parse): Add
2909 * config/rs6000/linux64.h (rs6000_current_cmode): Rename from
2910 cmodel. Change all uses.
2912 * config/rs6000/rs6000.c (rs6000_always_hint): Move to
2913 rs6000.opt. Combine -mdebug=<xxx> variables into a single int.
2914 Rename cmodel to rs6000_current_cmodel.
2915 (rs6000_sched_groups): Ditto.
2916 (rs6000_align_branch_targets): Ditto.
2917 (rs6000_sched_costly_dep): Ditto.
2918 (rs6000_sched_insert_nops): Ditto.
2919 (rs6000_long_double_type_size): Ditto.
2920 (rs6000_ieeequad): Ditto.
2921 (rs6000_altivec_abi): Ditto.
2922 (rs6000_spe): Ditto.
2923 (rs6000_spe_abi): Ditto.
2924 (rs6000_float_gprs): Ditto.
2925 (rs6000_darwin64_abi): Ditto.
2926 (can_override_loop_align): Ditto.
2927 (rs6000_sdata): Ditto.
2928 (rs6000_tls_size): Ditto.
2929 (rs6000_current_abi): Ditto.
2930 (rs6000_traceback): Ditto.
2931 (rs6000_alignment_flags): Ditto.
2932 (rs6000_current_cmodel): Ditto.
2933 (rs6000_recip_control): Ditto.
2934 (rs6000_cpu_index): Ditto.
2935 (rs6000_tune_index): Ditto.
2936 (rs6000_debug): Ditto.
2937 (rs6000_target_flags_explict): Ditto.
2938 (rs6000_sched_insert_nops_str): Make static.
2939 (rs6000_sched_costly_dep_str): Ditto.
2940 (rs6000_recip_name): Ditto.
2941 (rs6000_abi_name): Ditto.
2942 (rs6000_sdata_name): Ditto.
2943 (enum rs6000_traceback_name): Move to rs6000-opts.h.
2944 (rs6000_parse_tls_size_option): Delete.
2945 (rs6000_valid_attribute_p): New function for target attributes and
2947 (rs6000_function_specific_save): Ditto.
2948 (rs6000_function_specific_restore): Ditto.
2949 (rs6000_function_specific_print): Ditto.
2950 (rs6000_can_inline_p): Ditto.
2951 (rs6000_set_current_function): Ditto.
2952 (rs6000_inner_target_options): Ditto.
2953 (rs6000_debug_target_options): Ditto.
2954 (rs6000_pragma_target_parse): Ditto.
2955 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define target hooks for target
2956 attributes and pragmas.
2957 (TARGET_OPTION_SAVE): Ditto.
2958 (TARGET_OPTION_RESTORE): Ditto.
2959 (TARGET_OPTION_PRINT): Ditto.
2960 (TARGET_CAN_INLINE_P): Ditto.
2961 (TARGET_SET_CURRENT_FUNCTION): Ditto.
2962 (POWER_MASKS): Move to file level scope from the
2963 rs6000_option_override_internal function.
2964 (POWERPC_MASKS): Ditto.
2965 (ISA_*_MASKS): Ditto.
2966 (struct rs6000_ptt): Ditto.
2967 (processor_target_table): Ditto.
2968 (rs6000_cpu_name_lookup): Map cpu name to an index in
2969 processor_target_table.
2970 (rs6000_debug_reg_global): Print more information on processor
2971 options for -mdebug=reg.
2972 (rs6000_init_hard_regno_mode_ok): Add support for target
2973 attributes and pragmas. Merge all -mdebug=<xxx> fields into one.
2974 Allow -mdebug=val1,val2. Rename cmodel variable.
2975 (rs6000_option_override_internal): Ditto.
2976 (rs6000_option_override): Ditto.
2977 (rs6000_handle_option): Ditto.
2978 (rs6000_conditional_register_usage): Add debug trace message.
2979 (struct rs6000_opt_mask): New for target attribute/pragma support.
2980 (rs6000_opt_masks): Ditto.
2981 (struct rs6000_opt_var): Ditto.
2982 (rs6000_opt_vars): Ditto.
2983 (rs6000_previous_function): Ditto.
2985 * config/rs6000/rs6000.h (top level): Include rs6000-opts.h if it
2986 wasn't already included.
2987 (enum rs6000_cmodel): Move to rs6000-opts.h or rs6000.opt.
2988 (enum processor_type): Ditto.
2989 (rs6000_cpu): Ditto.
2990 (enum fpu_type_t): Ditto.
2992 (enum rs6000_dependence_cost): Ditto.
2993 (enum rs6000_nop_insertion): Ditto.
2994 (enum group_termination): Ditto.
2995 (rs6000_long_double_type_size): Ditto.
2996 (rs6000_ieeequad): Ditto.
2997 (rs6000_altivec_abi): Ditto.
2998 (rs6000_spe_abi): Ditto.
2999 (rs6000_spe): Ditto.
3000 (rs6000_float_gprs): Ditto.
3001 (rs6000_alignment_flags): Ditto.
3002 (rs6000_sched_insert_nops): Ditto.
3003 (enum rs6000_vector): Ditto.
3004 (enum rs6000_abi): Ditto.
3005 (rs6000_current_opt): Ditto.
3006 (rs6000_debug_*): Delete.
3007 (MASK_DEBUG*): Combine -mdebug=xxxx into one int.
3008 (TARGET_DEBUG*): Ditto.
3010 * config/rs6000/rs6000-opts.h: New header file to define the enums
3011 that are used in target variables that are now defined in rs6000.opt.
3013 * config/rs6000/sysv4.h (enum rs6000_sdata_type): Move to
3015 (rs6000_sdata): Ditto.
3016 (rs6000_abi_name): Delete.
3017 (rs6000_sdata_name): Ditto.
3018 (rs6000_tls_size_string): Ditto.
3020 2010-11-19 Joseph Myers <joseph@codesourcery.com>
3022 * common.opt (debug_struct_ordinary, debug_struct_generic): New
3024 * dwarf2out.c (matches_main_base, dump_struct_debug, DUMP_GSTRUCT,
3025 should_emit_struct_debug): Move from opts.c.
3026 * flag-types.h (enum debug_struct_file): Move from opts.c.
3027 * flags.h (should_emit_struct_debug): Remove.
3028 (base_of_path): Declare.
3029 (set_struct_debug_option): Add gcc_options parameter.
3030 * optc-gen.awk, opth-gen.awk: Handle array variables.
3031 * opts.c (enum debug_struct_file, debug_struct_ordinary,
3032 debug_struct_generic): Remove.
3033 (set_struct_debug_option): Add gcc_options parameter.
3034 (base_of_path): Remove static.
3035 (main_input_basename, main_input_baselength, matches_main_base,
3036 dump_struct_debug, DUMP_GSTRUCT, should_emit_struct_debug):
3038 * toplev.c (main_input_basename, main_input_baselength): Define
3040 * toplev.h (main_input_basename, main_input_baselength): Declare
3043 2010-11-19 Joseph Myers <joseph@codesourcery.com>
3045 * common.opt (flag_instrument_functions_exclude_functions,
3046 flag_instrument_functions_exclude_files): New Variable definitions.
3047 * flags.h (flag_instrument_functions_exclude_p): Don't declare.
3048 * gimplify.c (char_p): Declare type and vectors.
3049 (flag_instrument_functions_exclude_p): Moved from opts.c. Make static.
3050 * opts.c (flag_instrument_functions_exclude_functions,
3051 flag_instrument_functions_exclude_files): Remove.
3052 (add_comma_separated_to_vector): Take void **.
3053 (flag_instrument_functions_exclude_p): Move to gimplify.c.
3054 (common_handle_option): Use options structure for
3055 -finstrument-functions-exclude- options.
3057 2010-11-19 Joseph Myers <joseph@codesourcery.com>
3059 * doc/options.texi (Var): Document effects of Defer.
3061 * opt-functions.awk (var_type, var_set): Handle deferred options.
3062 * opts-common.c (set_option): Handle CLVC_DEFER.
3063 * common.opt (fcall-saved-, fcall-used-, fdump-, ffixed-,
3064 fplugin=, fplugin-arg-, fstack-limit, fstack-limit-register=,
3065 fstack-limit-symbol=): Mark as deferred.
3066 * opts.c: Don't include rtl.h, ggc.h, output.h, tree-pass.h or
3068 (print_filtered_help): Don't report state of CLVC_DEFER options.
3069 (common_handle_option): Move code for OPT_fcall_used_,
3070 OPT_fcall_saved_, OPT_fdump_, OPT_ffixed_, OPT_fplugin_,
3071 OPT_fplugin_arg_, OPT_fstack_limit, OPT_fstack_limit_register_ and
3072 OPT_fstack_limit_symbol_ to opts-global.c.
3073 (option_enabled, get_option_state): Handle CLVC_DEFER.
3074 * opts.h: Include vec.h.
3075 (enum cl_var_type): Add CLVC_DEFER.
3076 (cl_deferred_option): Define type and vectors.
3077 (handle_common_deferred_options): Declare.
3078 * opts-global.c: New.
3079 * toplev.c (toplev_main): Call handle_common_deferred_options
3080 * Makefile.in (OPTS_H): Include $(VEC_H).
3081 (OBJS-common): Include opts-global.o.
3082 (opts.o): Update dependencies.
3083 (opts-global.o): Add dependencies.
3085 2010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
3087 * c-parser.c (c_parser_objc_protocol_definition): Pass attributes
3088 to objc_declare_protocols.
3090 2010-11-19 Richard Guenther <rguenther@suse.de>
3093 * lto-streamer-out.c (lto_output_ts_common_tree_pointers): For
3094 IDENTIFIERs do not stream TREE_TYPE.
3095 * lto-streamer-in.c (lto_input_ts_common_tree_pointers): Likewise.
3097 2010-11-19 Christian Borntraeger <borntraeger@de.ibm.com>
3099 * config/s390/s390.c (s390_function_arg_integer): Handle NULLPTR_TYPE.
3101 2010-11-19 Jakub Jelinek <jakub@redhat.com>
3104 * dwarf2out.c (const_ok_for_output_1): Don't complain about
3105 non-delegitimized TLS UNSPECs.
3107 2010-11-18 Jack Howarth <howarth@bromo.med.uc.edu>
3108 Ian Lance Taylor <iant@google.com>
3110 * config/darwin-c.c (darwin_additional_format_types): Export.
3112 2010-11-18 Paul Koning <ni1d@arrl.net>
3114 * config/pdp11/pdp11.h (FIRST_PARM_OFFSET): Fix case of no frame
3117 2010-11-18 Paul Koning <ni1d@arrl.net>
3119 * config/pdp11/pdp11.md (abshi2): Delete TARGET_ABSHI_BUILTIN.
3120 * config/pdp11/pdp11.c (TARGET_DEFAULT_TARGET_FLAGS): Ditto.
3121 * config/pdp11/pdp11.opt (-mabshi): Delete.
3123 2010-11-19 Mingjie Xing <mingjie.xing@gmail.com>
3125 * resource.h (struct resources): Fix typo in the comment.
3127 2010-11-19 Uros Bizjak <ubizjak@gmail.com>
3130 * config/i386/i386.c (ix86_reorg): Call compute_bb_for_insn.
3132 2010-11-18 Richard Henderson <rth@redhat.com>
3135 * function.c (maybe_copy_prologue_epilogue_insn): Rename from
3136 maybe_copy_epilogue_insn; handle prologue insns as well.
3137 * rtl.h, cfglayout.c: Update for rename.
3138 * recog.c (peep2_attempt): Copy prologue/epilogue data for
3139 RTX_FRAME_RELATED_P insns.
3141 2010-11-18 Jakub Jelinek <jakub@redhat.com>
3144 * builtins.c (fold_builtin_printf): Don't copy and modify string
3145 before build_string_literal, instead modify what
3146 build_string_literal returned.
3148 2010-11-18 Nathan Froyd <froydnj@codesourcery.com>
3151 * c-typeck.c (build_unary_op): Call build_real_imag_expr for
3152 REALPART_EXPR and IMAGPART_EXPR.
3154 2010-11-18 Richard Guenther <rguenther@suse.de>
3156 PR tree-optimization/46172
3157 * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): New
3159 (slpeel_tree_peel_loop_to_edge): Call it.
3161 2010-11-18 Jeff Law <law@redhat.com>
3163 PR middle-end-optimization/46297
3164 * postreload.c (reload_combine_note_store): Deal with embedded
3165 side effects in MEM expressions.
3167 2010-11-18 Richard Guenther <rguenther@suse.de>
3170 * dwarf2out.c (add_AT_die_ref): Work around LTO losing types
3171 when checking is not enabled.
3173 2010-11-18 Richard Guenther <rguenther@suse.de>
3176 * gimple.c (gimple_register_type): Update TYPE_MAIN_VARIANT of
3178 (gimple_register_canonical_type): Also cache the canoncial type
3179 for non type leaders.
3181 2010-11-18 Richard Guenther <rguenther@suse.de>
3183 * lto-wrapper.c (run_gcc): Fix -flto=N parsing.
3185 2010-11-18 Alexander Monakov <amonakov@ispras.ru>
3188 * sel-sched-ir.c (init_expr): Use the correct type for
3190 * sel-sched.c (fill_vec_av_set): Use explicitly signed char type.
3192 2010-11-17 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
3194 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Support -fpic
3195 as well as -mrelocatable at the same time.
3197 2010-11-17 Quentin Neill <quentin.neill.gnu@gmail.com>
3200 * config/i386/bmiintrin.h (__lzcnt_u16, __lzcnt_u32, __lzcnt_u64):
3201 Call the clz builtin.
3203 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
3204 Steve Ellcey <sje@cup.hp.com>
3207 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
3208 if section attribute used.
3210 2010-11-17 Jan Hubicka <jh@suse.cz>
3212 * builtins.c (expand_builtin_mathfn_2, expand_builtin_mathfn): Do not
3213 expand errno setting variant when optimizing for size.
3215 2010-11-17 Eric Botcazou <ebotcazou@adacore.com>
3217 * postreload.c (reload_combine): Call control_flow_insn_p only once.
3218 Reverse backward loop. Fix formatting issues.
3220 2010-11-17 Paolo Bonzini <bonzini@gnu.org>
3222 * c-parser.c (c_token_is_qualifier,
3223 c_parser_next_token_is_qualifier): New.
3224 (c_parser_declaration_or_fndef, c_parser_struct_declaration):
3225 Improve error message on specs->tagdef_seen_p.
3226 (c_parser_struct_or_union_specifier): Improve error recovery.
3227 (c_parser_declspecs): Move exit condition on C_ID_ID early.
3228 Reorganize exit condition for C_ID_TYPENAME/C_ID_CLASSNAME
3229 using c_parser_next_token_is_qualifier; extend it to cover
3230 a ctsk_tagdef typespec and !typespec_ok in general.
3232 2010-11-17 Richard Guenther <rguenther@suse.de>
3234 * value-prof.c (gimple_divmod_fixed_value_transform): Update the stmt.
3235 (gimple_mod_pow2_value_transform): Likewise.
3236 (gimple_mod_subtract_transform): Likewise.
3238 2010-11-17 Richard Guenther <rguenther@suse.de>
3241 * gimple.c (gimple_register_canonical_type): Make sure to only
3242 make type leaders canonical types.
3244 2010-11-17 Michael Matz <matz@suse.de>
3246 * timevar.def (TV_IPA_OPT, TV_EARLY_LOCAL, TV_OPTIMIZE,
3247 TV_POSTRELOAD, TV_REMOVE_UNUSED, TV_ADDRESS_TAKEN, TV_TODO,
3248 TV_VERIFY_LOOP_CLOSED, TV_VERIFY_RTL_SHARING,
3249 TV_REBUILD_FREQUENCIES, TV_REPAIR_LOOPS): New.
3250 * tree-into-ssa.c (rewrite_into_ssa): Don't push/pop timevar here ...
3251 (pass_build_ssa): ... but here.
3252 * cgraphbuild.c (pass_rebuild_cgraph): Use timevar.
3253 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Use timevar.
3254 * tree-emutls.c (pass_ipa_lower_emutls): Ditto.
3255 * df-core.c (pass_df_initialize_opt, pass_df_initialize_no_opt): Ditto.
3256 * predict.c (rebuild_frequencies): Ditto.
3257 * tree-vectorizer.c (pass_ipa_increase_alignment): Ditto.
3258 * emit-rtl.c (verify_rtl_sharing): Ditto.
3259 * tree-cfgcleanup.c (repair_loop_structures): Ditto.
3260 * tree-ssa-live.c (remove_unused_locals): Ditto.
3261 * cfglayout.c (pass_into_cfg_layout, pass_outof_cfg_layout): Ditto.
3262 * tree-ssa.c (pass_early_warn_uninitialized,
3263 execute_update_addresses_taken, pass_update_address_taken): Ditto.
3264 * tree-optimize.c (pass_all_optimizations, pass_early_local_passes,
3265 pass_cleanup_cfg_post_optimizing, tree_rest_of_compilation): Ditto.
3266 * passes.c (pass_postreload, execute_todo): Ditto.
3267 * tree-ssanames.c (pass_release_ssa_names): Ditto.
3269 2010-11-17 Joseph Myers <joseph@codesourcery.com>
3271 * doc/invoke.texi (-dy): Remove.
3272 * langhooks-def.h (lhd_do_nothing_i): Don't declare.
3273 (LANG_HOOKS_PARSE_FILE): Define to lhd_do_nothing.
3274 * langhooks.c (lhd_do_nothing_i): Remove.
3275 * langhooks.h (lang_hooks.parse_file): Take no arguments.
3276 * toplev.c (set_yydebug): Remove.
3277 (compile_file): Update call to lang_hooks.parse_file.
3278 (decode_d_option): Don't handle -dy.
3280 2010-11-17 Jakub Jelinek <jakub@redhat.com>
3282 PR rtl-optimization/46440
3283 * combine.c (update_cfg_for_uncondjump): When changing
3284 an indirect jump into unconditional jump, remove BARRIERs
3287 2010-11-17 Joseph Myers <joseph@codesourcery.com>
3289 * opts.c (target_handle_option): Do not assert that loc ==
3292 2010-11-17 Jakub Jelinek <jakub@redhat.com>
3293 Richard Guenther <rguenther@suse.de>
3296 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
3297 call_may_clobber_ref_p_1): Return true for __sync_* and some
3298 OpenMP builtins that act as threading barriers.
3300 2010-11-17 Richard Guenther <rguenther@suse.de>
3302 PR tree-optimization/46498
3303 * tree-ssa-dce.c (perform_tree_ssa_dce): Compute dominator info.
3305 2010-11-16 Nathan Froyd <froydnj@codesourcery.com>
3307 * config/xtensa/xtensa.c (function_arg_boundary): Really rename to...
3308 (xtensa_function_arg_boundary): ...this.
3309 * config/picochip/pichochip.c (picochip_function_arg_boundary): Fix
3310 thinko in declaration.
3311 (picochip_function_arg, picochip_arg_partial_bytes): Pass proper
3312 number of parameters to picochip_function_arg_boundary.
3313 (picochip_arg_advance): Likewise.
3315 2010-11-16 Nathan Froyd <froydnj@codesourcery.com>
3318 * config/pa/pa.c (pa_function_arg_boundary): Move TYPE_SIZE accesses
3319 under check for type.
3321 2010-11-16 Eric Botcazou <ebotcazou@adacore.com>
3323 * ifcvt.c (dead_or_predicable): Fix typo.
3325 2010-11-16 Richard Henderson <rth@redhat.com>
3327 * config.gcc [s390*-*] (extra_options): Add fused-madd.opt.
3328 * config/s390/s390.opt (mfused-madd): Remove.
3329 * config/s390/s390.c (s390_rtx_costs): Handle FMA.
3330 (TARGET_DEFAULT_TARGET_FLAGS): Remove MASK_FUSED_MADD.
3331 * config/s390/s390.md (fma<DSF>4): Rename from *fmadd<DSF>; use FMA.
3332 (fms<DSF>4): Rename from *fmsub<DSF>; use FMA.
3334 2010-11-16 Richard Henderson <rth@redhat.com>
3336 * config.gcc [powerpc*, rs6000*] (extra_options): Add fused-madd.opt.
3337 * config/rs6000/rs6000.opt (mfused-madd): Remove.
3338 * config/rs6000/altivec.md (altivec_vmaddfp): Remove.
3339 (*altivec_vmaddfp_1): Remove.
3340 (*altivec_fmav4sf4): Rename from altivec_vmaddfp_2; use FMA.
3341 (altivec_mulv4sf3): Expand to FMA directly.
3342 (*altivec_vnmsubfp): Rename from altivec_vnmsubfp.
3343 (*altivec_vnmsubfp_1, *altivec_vnmsubfp_2): Remove.
3344 * config/rs6000/paired.md (paired_madds0): Use FMA.
3345 (paired_madds1): Likewise.
3346 (*paired_madd): Rename from paired_madd; use FMA.
3347 (*paired_msub, *paired_nmadd, *paired_nmsub): Similarly.
3348 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
3349 consider TARGET_FUSED_MADD wrt rs6000_recip_control.
3350 (bdesc_3arg): Update CODE_FOR_* for pattern renames.
3351 (rs6000_emit_madd): Use fma_optab.
3352 (rs6000_emit_msub): Use fms_optab.
3353 (rs6000_emit_nmsub): Expand the FMA pattern directly.
3354 * config/rs6000/rs6000.md (FMA_F): New mode iterator.
3355 (*fmasf4_fpr): Rename from fmasf4_fpr.
3356 (*nfmasf4_fpr): Rename from *fnmasf4_fpr.
3357 (*nfmssf4_fpr): Rename from *fnmssf4_fpr.
3358 (*fmaddsf4_powerpc, *fmaddsf4_power, *fmsubsf4_powerpc): Remove.
3359 (*fmsubsf4_power, *fnmaddsf4_powerpc_1, *fnmaddsf4_powerpc_2): Remove.
3360 (*fnmaddsf4_power_1, *fnmaddsf4_power_2, *fnmsubsf4_powerpc_1): Remove.
3361 (*fnmsubsf4_powerpc_2, *fnmsubsf4_power_1, *fnmsubsf4_power_2): Remove.
3362 (*fmadf4_fpr): Rename from fmadf4_fpr.
3363 (*nfmadf4_fpr): Rename from *fnmadf4_fpr.
3364 (*nfmsdf4_fpr): Rename from *fnmsdf4_fpr.
3365 (*fmadddf4_fpr, *fmsubdf4_fpr, *fnmadddf4_fpr_1): Remove.
3366 (*fnmadddf4_fpr_2, *fnmsubdf4_fpr_1, *fnmsubdf4_fpr_2): Remove.
3367 (fmasf4, fmadf4): Macroize into...
3368 (fma<FMA_F>4): ... here.
3369 (fms<FMA_F>4, fnma<FMA_F>4, fnms<FMA_F>4): New.
3370 (nfma<FMA_F>4, nfms<FMA_F>4): New.
3371 * config/rs6000/vector.md (mul<VEC_F>3): Do not depend on
3373 * config/rs6000/vsx.md (vsx_fmadd<VSX_B>4): Remove.
3374 (*vsx_fmadd<mode>4_1): Remove.
3375 (vsx_fmsub<mode>4, *vsx_fmsub<mode>4_1): Remove.
3376 (vsx_fnmadd<mode>4_1, vsx_fnmadd<mode>4_2): Remove.
3377 (vsx_fnmsub<mode>4_1, vsx_fnmsub<mode>4_2): Remove.
3378 (*vsx_fma<mode>4): Rename from vsx_fmadd<mode>4_2.
3379 (*vsx_fms<mode>4): Rename from vsx_fmsub<mode>4_2.
3380 (*vsx_nfma<mode>4): Rename from vsx_fnmadd<mode>4.
3381 (*vsx_nfms<mode>4): Rename from vsx_fnmsub<mode>4.
3383 2010-11-16 Richard Henderson <rth@redhat.com>
3385 * config/pa/pa.md (fmadf4): Rename from unnamed; use FMA.
3386 (fmasf4, fnmadf4, fnmasf4): Likewise.
3387 (unnamed plus+mult insns and splitters): Delete.
3389 2010-11-16 Richard Henderson <rth@redhat.com>
3391 * config/spu/spu.md (fma<VSF>4): Rename from fma_<VSF>.
3392 (fnma<VSF>4): Rename from fnms_<VSF>.
3393 (fms<VSF>4): Rename from fms_<VSF>.
3394 (fma<VDF>4): Rename from fma_<VDF>.
3395 (fms<VDF>4): Rename from fms_<VDF>.
3396 (nfma<VDF>4): Rename from fnma_<VDF>.
3397 (nfms<VDF>4): Rename from fnms_<VDF>.
3398 (fnma<VDF>4, fnms<VDF>4): New expanders.
3399 (floatunsdisf2): Update for the renames.
3400 (*div<VSF>3_fast, *div<VSF>3_adjusted): Likewise.
3401 * config/spu/spu-builtins.def: Update CODE_FOR_* for the renames.
3403 2010-11-16 Eric Botcazou <ebotcazou@adacore.com>
3405 PR rtl-optimization/46490
3406 * combine.c (expand_compound_operation): Fix thinko.
3408 2010-11-16 Richard Henderson <rth@redhat.com>
3411 * recog.c (peep2_attempt): Convert frame-related info when possible.
3412 (peep2_fill_buffer): Allow frame-related insns into the buffer.
3413 (peephole2_optimize): Allow peep2_attempt to fail.
3415 2010-11-16 Eric Botcazou <ebotcazou@adacore.com>
3417 PR rtl-optimization/46315
3418 * rtl.h (remove_reg_equal_equiv_notes_for_regno): Declare.
3419 * rtlanal.c (remove_reg_equal_equiv_notes_for_regno): New function
3421 * dce.c (delete_corresponding_reg_eq_notes): ...here. Rename into...
3422 (remove_reg_equal_equiv_notes_for_defs): ...this.
3423 (delete_unmarked_insns): Adjust to above renaming.
3424 * ifcvt.c (dead_or_predicable): Remove REG_EQUAL and REG_EQUIV notes
3425 referring to registers set in the insns being moved, if any.
3427 * df-core.c (df_ref_dump): New function extracted from...
3428 (df_refs_chain_dump): ...here. Call it.
3429 (df_regs_chain_dump): Likewise.
3430 * df-problems.c (df_chain_dump): Print 'e' for uses in notes.
3431 * df-scan.c (df_scan_start_dump): Likewise. Fix long line.
3433 2010-11-16 Andreas Schwab <schwab@linux-m68k.org>
3435 PR rtl-optimization/46395
3436 * postreload.c (reload_combine): Invalidate register use
3437 information on all control flow insns.
3439 * config/m68k/m68k.c (m68k_delegitimize_address): Also expect
3440 LABEL_REF in UNSPEC operand.
3442 2010-11-16 Jan Hubicka <jh@suse.cz>
3444 * cgraph.h (+varpool_can_remove_if_no_refs): Move here from ...;
3445 when !flag_toplevel_reorder do not remove unless variable is
3446 COMDAT or ARTIFICIAL.
3447 * ipa.c (varpool_can_remove_if_no_refs): ... here.
3448 (cgraph_remove_unreachable_nodes): Only analyzed nodes needs to stay.
3449 * cgraphunit.c (cgraph_analyze_functions): Dump varpool, too.
3450 * varpool.c (decide_is_variable_needed): Do not handle visibility
3452 (varpool_finalize_decl): Likewise.
3453 (varpool_remove_unreferenced_decls): Use varpool_mark_needed_node;
3454 update outdated comment on DECL_RTL_SET_P check.
3456 2010-11-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3458 * config/sol2.h (NM_FLAGS): Define.
3459 * doc/tm.texi.in (Macros for Initialization, NM_FLAGS): Document.
3460 * doc/tm.texi: Update.
3462 2010-11-16 Nick Clifton <nickc@redhat.com>
3464 * config/v850/v850.md (maddsf4): Rename to fmasf4 and use fma rtx_code.
3465 (msubsf4): Rename to fmssf4, and use fma.
3466 (nmaddsf4): Rename to fnmasf4 and use fma.
3467 (nmsubsf4): Rename to fnmssf4 and use fma.
3469 2010-11-16 Joern Rennecke <amylaar@spamcop.net>
3472 * config/score/score3.c (score3_return_in_memory): Constify arguments.
3473 (score3_in_small_data_p, score3_function_value): Likewise.
3474 (score3_trampoline_init): Use LCT_NORMAL.
3475 (score3_print_operand): Initialize code as UNKNOWN.
3476 * config/score/predicates.md (score_load_multiple_operation):
3477 Remove unused variable.
3478 (score_store_multiple_operation): Likewise.
3479 * config/score/score7.c (score7_return_in_memory): Constify arguments.
3480 (score7_in_small_data_p, score7_function_value): Likewise.
3481 (score7_trampoline_init): Use LCT_NORMAL.
3482 (score7_print_operand): Initialize code as UNKNOWN.
3483 * config/score/score3.h (score3_return_in_memory): Update prototype.
3484 (score3_in_small_data_p, score3_function_value): Likewise.
3485 * config/score/score-protos.h (score_function_value): Likewise.
3486 * config/score/score7.h (score7_return_in_memory): Update prototype.
3487 (score7_in_small_data_p, score7_function_value): Likewise.
3488 * config/score/score.c (TARGET_PROMOTE_PROTOTYPES): Constify.
3489 (score_return_in_memory, score_pass_by_reference): Constify arguments.
3490 (score_output_mi_thunk, score_function_prologue): Don't return a value.
3491 (score_function_epilogue, score_in_small_data_p): Likewise.
3492 (score_option_override, score_asm_trampoline_template): Likewise.
3493 (score_trampoline_init, score_print_operand): Likewise.
3494 (score_print_operand_address, score_prologue): Likewise.
3495 (score_epilogue, score_call, score_call_value): Likewise.
3496 (score_movsicc, score_movdi, score_zero_extract_andi): Likewise.
3497 (score_function_arg_advance): Likewise. Make static.
3498 (score_asm_file_end): Mark parameter value with ATTRIBUTE_UNUSED.
3499 (score_function_arg, score_legitimate_address_p): Make static.
3500 (score_function_value): Mark parameter func with ATTRIBUTE_UNUSED.
3501 * config/score/score.h (REGNO_REG_CLASS): Cast value to enum reg_class.
3502 * config/score/score-conv.h (UIMM_IN_RANGE, SIMM_IN_RANGE):
3503 Allow (W) == HOST_BITS_PER_WIDE_INT.
3506 * config/pdp11/t-pdp11 (java/constants.o-warn): Remove.
3507 * config/t-pnt16-warn (java/constants.o-warn): Likewise.
3509 2010-11-16 Nathan Froyd <froydnj@codesourcery.com>
3511 * config/arc/arc.c: Delete pasto.
3512 * config/pa/pa.c (pa_function_arg_boundary): Add missing comparison.
3514 2010-11-16 Anatoly Sokolov <aesok@post.ru>
3516 * config/mn10300/mn10300.h (PREFERRED_RELOAD_CLASS,
3517 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
3518 * config/mn10300/mn10300.c (TARGET_PREFERRED_RELOAD_CLASS,
3519 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
3520 (mn10300_preferred_reload_class,
3521 mn10300_preferred_output_reload_class): New functions.
3523 2010-11-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3525 * gensupport.c (MNEMONIC_ATTR_NAME, MNEMONIC_HTAB_SIZE): New macros.
3526 (htab_eq_string, add_mnemonic_string, gen_mnemonic_setattr)
3527 (mnemonic_htab_callback, gen_mnemonic_attr): New functions.
3528 (init_rtx_reader_args_cb): Invoke gen_mnemonic_attr.
3530 2010-11-16 Nathan Froyd <froydnj@codesourcery.com>
3532 * builtins.c (std_gimplify_va_arg_expr): Use
3533 targetm.calls.function_arg_boundary.
3534 * function.c (assign_parms, locate_and_pad_parm): Likewise.
3535 * calls.c (struct arg_data): Update comment.
3536 * defaults.h (FUNCTION_ARG_BOUNDARY): Delete.
3537 * target.def (function_arg_boundary): Define.
3538 * targhooks.h (default_function_arg_boundary): Declare.
3539 * targhooks.c (default_function_arg_boundary): Define.
3540 * doc/tm.texi.in (FUNCTION_ARG_PADDING): Use
3541 TARGET_FUNCTION_ARG_BOUNDARY.
3542 (FUNCTION_ARG_BOUNDARY): Delete.
3543 (TARGET_FUNCTION_ARG_BOUNDARY): New.
3544 * doc/tm.texi: Regenerate.
3545 * system.h (FUNCTION_ARG_BOUNDARY): Poison.
3546 * config/arc/arc.h (FUNCTION_ARG_BOUNDARY): Delete.
3547 * config/arc/arc.c (arc_function_arg_boundary): Define.
3548 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3549 * config/arm/arm.h (FUNCTION_ARG_BOUNDARY): Delete.
3550 * config/arm/arm-protos.h (arm_needs_doubleword_align): Delete.
3551 * config/arm/arm.c (arm_needs_doubleword_align): Make static.
3552 (arm_function_arg_boundary): Define.
3553 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3554 * config/frv/frv.h (FUNCTION_ARG_BOUNDARY): Delete.
3555 * config/frv/frv-protos.h (frv_function_arg_boundary): Delete.
3556 * config/frv/frv.c (frv_function_arg_boundary): Make static.
3557 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3558 * config/i386/i386.h (FUNCTION_ARG_BOUNDARY): Delete.
3559 * config/i386/i386-protos.h (ix86_function_arg_boundary): Delete.
3560 * config/i386/i386.c (ix86_function_arg_boundary): Make static.
3561 (ix86_compat_function_arg_boundary): Take and return unsigned int.
3562 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3563 * config/ia64/ia64.h (FUNCTION_ARG_BOUNDARY): Delete.
3564 * config/ia64/ia64-protos.h (ia64_function_arg_boundary): Delete.
3565 * config/ia64/ia64.c (ia64_function_arg_boundary): Make static.
3566 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3567 * config/m32c/m32c.h (FUNCTION_ARG_BOUNDARY): Delete.
3568 * config/m32c/m32c.c (m32c_function_arg_boundary): Define.
3569 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3570 * config/m32r/m32r.h (FUNCTION_ARG_BOUNDARY): Delete.
3571 * config/mcore/mcore.h (FUNCTION_ARG_BOUNDARY): Delete.
3572 * config/mcore/mcore.c (mcore_function_arg_boundary): Define.
3573 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3574 * config/mips/mips.h (FUNCTION_ARG_BOUNDARY): Delete.
3575 * config/mips/mips-protos.h (mips_function_arg_boundary): Delete.
3576 * config/mips/mips.c (mips_function_arg_boundary): Make static.
3577 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3578 * config/pa/pa.h (FUNCTION_ARG_BOUNDARY): Delete.
3579 * config/pa/pa.c (pa_function_arg_boundary): Define.
3580 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3581 * config/picochip/picochip.h (FUNCTION_ARG_BOUNDARY): Delete.
3582 * config/picochip/picochip-protos.h
3583 (picochip_get_function_arg_boundary): Delete.
3584 * config/picochip/picochip.c (picochip_get_function_arg_boundary):
3586 (picochip_function_arg_boundary): ...this. Make static.
3587 (picochip_function_arg, picochip_arg_partial_bytes): Adjust.
3588 (picochip_arg_advance): Adjust.
3589 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3590 * config/rs6000/rs6000.h (FUNCTION_ARG_BOUNDARY): Delete.
3591 * config/rs6000/rs6000-protos.h (function_arg_boundary): Delete.
3592 * config/rs6000/rs6000.c (function_arg_boundary): Rename to...
3593 (rs6000_function_arg_boundary): ...this. Make static.
3594 (rs6000_parm_start, rs6000_gimplify_va_arg): Adjust.
3595 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3596 * config/rx/rx.h (FUNCTION_ARG_BOUNDARY): Delete.
3597 * config/rx/rx.c (rx_function_arg_boundary): Define.
3598 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3599 * config/sparc/sparc.h (FUNCTION_ARG_BOUNDARY): Delete.
3600 * config/sparc/sparc.c (sparc_function_arg_boundary): Define.
3601 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3602 * config/xtensa/xtensa.h (FUNCTION_ARG_BOUNDARY): Delete.
3603 * config/xtensa/xtensa-protos.h (function_arg_boundary): Delete.
3604 * config/xtensa/xtensa.c (function_arg_boundary): Rename to...
3605 (xtensa_function_arg_boundary): ...this. Make static.
3606 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3608 2010-11-16 Nathan Froyd <froydnj@codesourcery.com>
3610 * expr.c (alignment_for_piecewise_move): New function.
3611 (widest_int_mode_for_size): New function.
3612 (move_by_pieces, move_by_pieces_ninsns): Call them.
3613 (can_store_by_pieces, store_by_pieces_1): Likewise.
3615 2010-11-16 Nathan Froyd <froydnj@codesourcery.com>
3617 * gcc.c (char_p): Define. Define a VEC of it.
3618 (n_linker_options, n_assembler_options, n_preprocessor_options):
3620 (linker_options, assembler_options, preprocessor_options): Convert
3622 (add_preprocessor_option): Adjust.
3623 (add_assembler_option): Adjust.
3624 (add_linker_option): Adjust.
3625 (do_specs_vec): New function.
3626 (do_spec_1): Call it. Adjust for new types.
3628 2010-11-16 Nathan Froyd <froydnj@codesourcery.com>
3630 * Makefile.in (bitmap.o, ebitmap.o, et-forest.o): Update dependencies.
3631 (sreal.o, statistics.o, stringpool.o): Likewise.
3633 2010-11-16 Richard Guenther <rguenther@suse.de>
3635 PR tree-optimization/44545
3636 * tree-ssa-reassoc.c (linearize_expr_tree): Possibly throwing
3637 statements are not reassociatable.
3638 (reassociate_bb): Likewise.
3640 2010-11-16 Nathan Froyd <froydnj@codesourcery.com>
3642 * bitmap.c: Delete unnecessary includes.
3643 * ebitmap.c: Likewise.
3644 * et-forest.c: Likewise.
3645 * sreal.c: Likewise.
3646 * statistics.c: Likewise.
3647 * stringpool.c: Likewise.
3648 * double-int.c: Add comment for inclusion of tm.h.
3650 2010-11-16 Richard Guenther <rguenther@suse.de>
3652 * tree-ssa-sccvn.c (visit_unary_op): Rename to ...
3653 (visit_nary_op): ... this.
3654 (visit_binary_op): Remove.
3655 (visit_use): Adjust and handle GIMPLE_TERNARY_RHS.
3657 2010-11-16 Richard Guenther <rguenther@suse.de>
3660 * tree-eh.c (cleanup_empty_eh_unsplit): Avoid creating duplicate edges.
3662 2010-11-16 Nick Clifton <nickc@redhat.com>
3664 * config/rx/rx.c (rx_is_ms_bitfield_layout): Return false if the
3667 2010-11-15 Richard Henderson <rth@redhat.com>
3669 * fold-const.c (operand_equal_for_comparison_p): Handle FMA_EXPR,
3670 WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR, VEC_COND_EXPR and
3673 2010-11-15 Richard Henderson <rth@redhat.com>
3675 * config/mn10300/mn10300.md (fmasf4, fmssf4, fnmasf4, fnmssf4): Rename
3676 from fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4 respectively. Use
3679 2010-11-15 Richard Henderson <rth@redhat.com>
3681 * config/frv/frv.md (fmasf4, fmssf4): Rename from *muladdsf4
3682 and *mulsubsf4 respectively. Use fma rtx_code.
3684 2010-11-15 Joseph Myers <joseph@codesourcery.com>
3686 * gcc.c: Include "vec.h".
3687 (argbuf): Make into a VEC.
3688 (argbuf_length, argbuf_index): Remove.
3689 (alloc_args, clear_args, store_arg, execute, insert_wrapper,
3690 do_spec, do_self_spec, do_spec_1, eval_spec_function, main,
3691 compare_debug_dump_opt_spec_function: Use VEC interfaces on argbuf.
3692 * Makefile.in (GCC_OBJS): Add vec.o and ggc-none.o.
3693 (gcc.o): Depend on $(VEC_H).
3695 2010-11-15 Richard Henderson <rth@redhat.com>
3697 * loop-unroll.c (analyze_insn_to_expand_var): Accept accumulation
3698 via FMA if unsafe math.
3699 (insert_var_expansion_initialization): Handle FMA.
3700 (combine_var_copies_in_loop_exit): Likewise.
3702 2010-11-15 Richard Henderson <rth@redhat.com>
3704 * config.gcc [ia64-*] (extra_options): Add fused-madd.opt.
3705 * config/ia64/ia64.opt: Remove mfused-madd.
3706 * config/ia64/ia64.c (ia64_rtx_costs): Handle FP MULT, PLUS, FMA.
3707 * config/ia64/vms.h (TARGET_DEFAULT): Remove MASK_FUSED_MADD.
3708 * config/ia64/vms64.h (TARGET_DEFAULT): Likewise.
3709 * config/ia64/ia64.h (TARGET_DEFAULT): Likewise.
3710 * config/ia64/hpux.h (TARGET_DEFAULT): Likewise.
3711 * config/ia64/vect.md (addv2sf3, subv2sf3): Generate FMA.
3712 (*addv2sf3_1, *addv2sf3_2, *subv2sf3_1, *subv2sf3_2): Remove.
3713 (fmav2sf4): Rename from fpma; use FMA code.
3714 (fmsv2sf4): Rename from fpms; use FMA code.
3715 (fnmav2sf4): Rename from *fpnma; use FMA code.
3716 * config/ia64/ia64.md (MODE_SDF): New iterator.
3717 (suffix): New mode attribute.
3718 (*maddsf4, *msubsf4, *nmaddsf4): Remove.
3719 (fmssf4): Rename from *fmssf4.
3720 (fnmasf4): Rename from *nfmasf4.
3721 (*madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc): Remove.
3722 (*nmadddf4, *nmadddf4_truncsf): Remove.
3723 (fmsdf4): Rename from *fmsdf4.
3724 (fnmadf4): Rename from *nfmadf4.
3725 (*fmadf_trunc_sf, *fmsdf_trunc_sf, *fnmadf_trunc_sf): New.
3726 (*maddxf4, *maddxf4_truncsf, *maddxf4_truncdf): Remove.
3727 (*msubxf4, *msubxf4_truncsf, *msubxf4_truncdf): Remove.
3728 (*nmaddxf4, *nmaddxf4_truncsf, *nmaddxf4_truncdf): Remove.
3729 (fmsxf4): Rename from *fmsxf4.
3730 (fnmaxf4): Rename from *nfmaxf4.
3731 (*fmaxf_trunc_<MODE_SDF>, *fmsxf_trunc_<MODE_SDF>): New.
3732 (*fnmaxf_trunc_<MODE_SDF>): New.
3734 2010-11-15 Jakub Jelinek <jakub@redhat.com>
3736 PR tree-optimization/46461
3737 * tree-ssa-forwprop.c (simplify_builtin_call): Ensure ptr1 is
3740 2010-11-15 Ian Lance Taylor <iant@google.com>
3742 * godump.c: New file.
3743 * common.opt (fdump-go-spec=): New option.
3744 * tree.h: Add comments for TYPE_SYMTAB_ADDRESS and friends.
3745 (TYPE_SYMTAB_IS_ADDRESS, TYPE_SYMTAB_IS_POINTER): Define.
3746 (TYPE_SYMTAB_IS_DIE): Define.
3747 (struct tree_type): Change GTY for symtab field to use
3748 TYPE_SYMTAB_IS_ADDRESS and friends and to use a debug_hooks field
3749 to pick the union field.
3750 * debug.h (struct gcc_debug_hooks): Add tree_type_symtab_field.
3751 (dump_go_spec_init): Declare.
3752 * toplev.c (process_options): Handle flag_dump_go_spec.
3753 * debug.c: Include "tree.h".
3754 (do_nothing_debug_hooks): Set tree_type_symtab_field.
3755 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
3756 * dbxout.c (dbx_debug_hooks): Likewise.
3757 (xcoff_debug_hooks): Likewise.
3758 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
3759 * sdbout.c (sdb_debug_hooks): Likewise. Do not define if
3760 SDB_DEBUGGING_INFO is not defined.
3761 * doc/invoke.texi (Option Summary): Mention -fdump-go-spec.
3762 (Overall Options): Document -fdump-go-spec.
3763 * Makefile.in (OBJS-common): Add godump.o.
3764 (debug.o): Add dependency on $(TREE_H).
3765 (godump.o): New target.
3766 (GTFILES): Add $(srcdir)/godump.c.
3768 2010-11-15 Jakub Jelinek <jakub@redhat.com>
3771 * config/i386/i386.c (pro_epilogue_adjust_stack): Instead of
3772 marking r11 set RTX_FRAME_RELATED_P if offset is too large for
3773 style < 0, add REG_FRAME_RELATED_EXPR.
3776 * rtl.h (vt_equate_reg_base_value): New prototype.
3777 * alias.c (vt_equate_reg_base_value): New function.
3778 * var-tracking.c (vt_init_cfa_base): Use it.
3780 2010-11-15 Jan Hubicka <jh@suse.cz>
3781 Diego Novillo <dnovillo@google.com>
3784 * doc/lto.texi: Add.
3785 * doc/gccint.texi: Add reference to lto.texi.
3786 * doc/invoke.texi: Update user documentation for LTO.
3787 Move internal flags to lto.texi
3789 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
3791 * c-typeck.c (build_unary_op): Use
3792 objc_build_incr_expr_for_property_ref to build the pre/post
3793 increment/decrement of an Objective-C property ref, and skip the
3794 lvalue_or_else check in that case.
3796 2010-11-15 Martin Jambor <mjambor@suse.cz>
3798 PR tree-optimization/46349
3799 * tree-sra.c (contains_bitfld_comp_ref_p): New function.
3800 (contains_vce_or_bfcref_p): Likewise.
3801 (sra_modify_assign): Use them.
3803 2010-11-15 Richard Guenther <rguenther@suse.de>
3805 PR tree-optimization/46467
3806 * tree-ssa-structalias.c (do_structure_copy): Properly treat
3807 variables without subvars.
3809 2010-11-15 Hariharan Sandanagobalane <hariharan@picochip.com>
3811 * config/picochip/picochip.c (file header): Picochip name change.
3812 * config/picochip/picochip.md (file header): Likewise.
3813 * config/picochip/predicates.md (file header): Likewise.
3814 * config/picochip/dfa_space.md (file header): Likewise.
3815 * config/picochip/dfa_speed.md (file header): Likewise.
3816 * config/picochip/picochip.h(file header): Likewise.
3817 * config/picochip/constraints.md (file header): Likewise.
3818 * config/picochip/picochip-protos.h (file header): Likewise.
3819 * config/picochip/libgccExtras/setjmp.asm (file header): Likewise.
3820 * config/picochip/libgccExtras/divmodsi4.asm (file header): Likewise.
3821 * config/picochip/libgccExtras/ashlsi3.asm (file header): Likewise.
3822 * config/picochip/libgccExtras/longjmp.asm (file header): Likewise.
3823 * config/picochip/libgccExtras/ashlsi3.c (file header): Likewise.
3824 * config/picochip/libgccExtras/popcounthi2.asm (file header): Likewise.
3825 * config/picochip/libgccExtras/parityhi2.asm (file header): Likewise.
3826 * config/picochip/libgccExtras/udivmodhi4.asm (file header): Likewise.
3827 * config/picochip/libgccExtras/ashrsi3.asm (file header): Likewise.
3828 * config/picochip/libgccExtras/ashrsi3.c (file header): Likewise.
3829 * config/picochip/libgccExtras/ucmpsi2.asm (file header): Likewise.
3830 * config/picochip/libgccExtras/divmodhi4.asm (file header): Likewise.
3831 * config/picochip/libgccExtras/lshrsi3.asm (file header): Likewise.
3832 * config/picochip/libgccExtras/subdi3.asm (file header): Likewise.
3834 2010-11-15 Richard Guenther <rguenther@suse.de>
3837 * tree-ssa-math-opts.c (convert_mult_to_fma): Disregard debug stmts.
3839 2010-11-15 Nick Clifton <nickc@redhat.com>
3841 * config/stormy16/stormy16.c (direct_return): Do not generate a
3842 direct return for interrupt handlers.
3844 2010-11-15 Joern Rennecke <amylaar@spamcop.net>
3846 * Makefile.in (tm.texi): Replace with rule for:
3847 ($(srcdir)/doc/tm.texi).
3848 (s-tm-texi): Depend on $(srcdir)/doc/../doc/tm.texi instead of on
3849 $(srcdir)/doc/tm.texi .
3850 (TEXI_GCCINT_FILES): Depend on $(srcdir)/doc/tm.texi instead of on
3854 * config/m32r/m32r.c: Remove unused variables frame_size and insn.
3857 * config/arm/arm.c (locate_neon_builtin_icode): Initialize key.
3858 (arm_output_asm_insn) Add ATTRIBUTE_PRINTF_4.
3861 * config/v850/v850.h (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Delete.
3863 2010-11-15 Richard Guenther <rguenther@suse.de>
3866 * lto-opts.c (lto_write_options): Write -fexceptions even if
3867 not set by the user.
3869 2010-11-13 Paolo Bonzini <bonzini@gnu.org>
3872 * c-decl.c (declspecs_add_type): Make variables with error types
3874 * c-parser.c (c_parser_next_tokens_start_declaration): Two IDs
3875 do not start a declaration before an Objective-C foreach.
3876 (c_parser_declaration_or_fndef): Improve recovery after unknown
3878 (c_parser_for_statement): Hoist entrance of "foreach context"
3879 before ifs, add corresponding reset where it was missing. Do
3880 not set objc_could_be_foreach_context for C.
3882 2010-11-14 Eric Botcazou <ebotcazou@adacore.com>
3884 PR tree-optimization/45722
3885 * tree-sra.c (build_ref_for_model): Always build a COMPONENT_REF if
3886 this is a reference to a component.
3887 * ipa-prop.c (ipa_get_member_ptr_load_param): Accept COMPONENT_REF.
3888 (ipa_note_param_call): Adjust comment.
3890 2010-11-14 Richard Sandiford <rdsandiford@googlemail.com>
3892 * config/mips/mips.c (machine_function): Remove
3893 initialized_mips16_gp_pseudo_p.
3894 (mips16_gp_pseudo_reg): Use cfun->machine->mips16_gp_pseudo_rtx to
3895 detect whether a pseudo has already been created. Unconditionally
3896 create a new one if not.
3897 (mips_pic_base_register): Only call mips16_gp_pseudo_reg when
3898 expanding to rtl. Create a new pseudo otherwise, if allowed.
3900 2010-11-13 Richard Earnshaw <rearnsha@arm.com>
3903 * tm.texi.in (OVERLAPPING_REGISTER_NAMES): Document new macro.
3904 * tm.texi: Regenerated.
3905 * output.h (decode_reg_name_and_count): Declare.
3906 * varasm.c (decode_reg_name_and_count): New function.
3907 (decode_reg_name): Reimplement using decode_reg_name_and_count.
3908 * reginfo.c (fix_register): Use decode_reg_name_and_count and
3909 iterate over all regs used.
3910 * stmt.c (expand_asm_operands): Likewise.
3911 * arm/aout.h (OVERLAPPING_REGISTER_NAMES): Define.
3912 (ADDITIONAL_REGISTER_NAMES): Remove aliases that overlap
3913 multiple machine registers.
3915 2010-11-13 Eric Botcazou <ebotcazou@adacore.com>
3917 * stor-layout.c (place_union_field): Do not put location information
3918 on offset expressions.
3919 (place_field): Likewise.
3920 (finalize_record_size): Likewise on size expressions.
3921 (finalize_type_size): Likewise.
3922 (layout_type): Likewise.
3924 2010-11-13 Alexandre Oliva <aoliva@redhat.com>
3927 * df-scan.c (df_insn_rescan): Don't mark BBs upon debug insns.
3928 * df-core.c (df_set_bb_dirty_nonrl): Remove.
3929 * df.h (df_set_bb_dirty_nonlr): Likewise.
3931 2010-11-13 Uros Bizjak <ubizjak@gmail.com>
3933 * config/mips/mips.md (call_internal): Pass curr_insn to
3935 (call_internal_direct): Ditto.
3936 (call_value_internal): Ditto.
3937 (call_value_internal_direct): Ditto.
3938 (call_value_multiple_internal): Ditto.
3939 * config/mips/mips.c (mips_split_call): Do not copy
3940 CALL_INSN_FUNCTION_USAGE here.
3942 2010-11-13 Mingming Sun <mingm.sun@gmail.com>
3944 * doc/invoke.texi (MIPS Options): Add loongson3a processor.
3945 * config/mips/mips.md (define_attr "cpu"): Add loongson_3a.
3946 (define_insn "prefetch"): Add TARGET_LOONGSON_3A.
3947 * config/mips/mips.h (TARGET_LOONGSON_3A): Define.
3948 (TUNE_LOONGSON_3A): Define.
3949 (TARGET_LOONGSON_VECTORS): Add TARGET_LOONGSON_3A.
3950 (MIPS_ISA_LEVEL_SPEC): Add loongson3a.
3951 * config/mips/mips.c (mips_cpu_info_table): Add loongson3a.
3952 (mips_issue_rate): Add PROCESSOR_LOONGSON_3A.
3953 (mips_rtx_cost_data): Add Loongson-3A.
3955 2010-11-13 Iain Sandoe <iains@gcc.gnu.org>
3957 * config/darwin.h (LINK_COMMAND_SPEC_A): Update for changes to lto
3960 2010-11-13 Iain Sandoe <iains@gcc.gnu.org>
3962 * dwarf2out.c (macinfo_entry): New struct.
3963 (output_comp_unit): Emit the section start label here and flag that we
3964 will emit an info section.
3965 (dwarf2out_start_source_file): Save data in a macinfo entry rather than
3967 (dwarf2out_end_source_file): Likewise.
3968 (dwarf2out_define): Likewise.
3969 (dwarf2out_undef): Likewise.
3970 (output_macinfo): New.
3971 (dwarf2out_init): Do not emit debug section switches here, allocate a
3972 vec for macinfo, when required.
3973 (dwarf2out_finish): First switch to debug_abbrev_section here.
3974 debug_line_section, debug_macinfo_section, Likewise.
3975 Check that the pubtypes table has at least one unpruned entry before
3978 2010-11-13 Paolo Bonzini <bonzini@gnu.org>
3981 * c-parser.c (c_parser_next_token_starts_declaration): Rename to...
3982 (c_parser_next_tokens_start_declaration): ... this. Handle 2nd
3984 (c_parser_compound_statement_nostart, c_parser_label,
3985 c_parser_for_statement, c_parser_omp_for_loop): Adjust calls.
3986 (c_parser_declaration_or_fndef): Detect the case now matched by
3987 c_parser_next_tokens_start_declaration, give error and correct it.
3989 2010-11-13 Paolo Bonzini <bonzini@gnu.org>
3991 * c-tree.h (enum c_typespec_kind): Add ctsk_none.
3992 (struct c_declspecs): Replace tagdef_seen_p and type_seen_p
3994 * c-decl.c (build_null_declspecs): Initialize typespec_kind.
3995 (shadow_tag_warned, check_compound_literal_type): Adjust
3996 uses of tag_defined_p.
3997 (declspecs_add_type): Set typespec_kind.
3998 * c-parser.c (c_parser_declaration_or_fndef,
3999 c_parser_declspecs, c_parser_struct_declaration,
4000 c_parser_parameter_declaration, c_parser_type_name,
4001 c_parser_objc_diagnose_bad_element_prefix): Adjust uses
4003 * c-typeck.c (c_cast_expr): Use typespec_kind instead of
4004 tag_defined_p, pass ctsk_firstref through.
4006 2010-11-13 Paolo Bonzini <bonzini@gnu.org>
4008 * c-format.c (enum format_specifier_kind, kind_descriptions): New.
4009 (struct format_wanted_type): Replace field "name" with "kind", add
4010 "format_start" and "format_length".
4011 (check_format_info_main): Fill in new fields. Fill in
4012 FORMAT_WANTED_TYPES even for missing arguments. Move checks
4013 after the final NUL outside the while loop. Do not include
4014 width and precision modifiers in the format_start/format_length
4016 (check_format_types): Remove FORMAT_START and FORMAT_LENGTH
4017 arguments. Compute WANTED_TYPE first so that format_type_warning
4018 can be called for missing arguments. Adjust calls to
4019 format_type_warning.
4020 (format_type_warning): Fetch as much information as possible
4021 from format_wanted_type. Adjust printing now that every
4022 warning has a "descr", as well as for missing argument warnings
4023 and to include % sign for format specifiers.
4025 2010-11-12 Alexander Monakov <amonakov@ispras.ru>
4027 PR rtl-optimization/46204
4028 * sel-sched-ir.c (maybe_tidy_empty_bb): Remove second argument.
4029 Update all callers. Do not recompute topological order. Adjust
4030 fallthrough edges following a degenerate conditional jump.
4032 2010-11-12 Joseph Myers <joseph@codesourcery.com>
4034 * opts-common.c (control_warning_option): New.
4035 * opts.c (set_default_handlers): New.
4036 (decode_options): Use set_default_handlers and
4037 control_warning_option.
4038 (common_handle_option): Update call to enable_warning_as_error.
4039 (enable_warning_as_error): Take gcc_options parameters. Use
4040 control_warning_option.
4041 * opts.h (set_default_handlers, control_warning_option): Declare.
4043 2010-11-12 Joseph Myers <joseph@codesourcery.com>
4045 * Makefile.in (OPTS_H): Define.
4046 (c-decl.o, c-family/c-common.o, c-family/c-opts.o,
4047 c-family/c-pch.o, c-family/c-pragma.o, gcc.o, gccspec.o,
4048 cppspec.o, options.o, gcc-options.o, lto-opts.o, opts.o,
4049 opts-common.o, toplev.o, passes.o, matrix-reorg.o,
4050 ipa-struct-reorg.o, PLUGIN_HEADERS): Use $(OPTS_H).
4051 * gcc.c (driver_handle_option): Take location_t parameter.
4052 (process_command, do_self_spec): Update calls to
4053 read_cmdline_option.
4054 * langhooks-def.h (lhd_handle_option): Take location_t parameter.
4055 * langhooks.c (lhd_handle_option): Take location_t parameter.
4056 * langhooks.h (handle_option): Take location_t parameter.
4057 * lto-opts.c (lto_reissue_options): Update call to set_option.
4058 * opts-common.c (handle_option): Make static. Take location_t
4059 parameter and pass it to other functions.
4060 (handle_generated_option): Take location_t parameter and pass it
4062 (read_cmdline_option): Take location_t parameter and pass it to
4063 other functions. Use warning_at and error_at.
4064 (set_option): Take location_t parameter and pass it to other
4066 * opts.c (common_handle_option): Take location_t parameter and
4067 pass it to other functions.
4068 (enable_warning_as_error): Make static. Take location_t parameter
4069 and pass it to other functions.
4070 (lang_handle_option): Take location_t parameter and pass it to
4072 (target_handle_option): Take location_t parameter.
4073 (read_cmdline_options, maybe_default_option,
4074 maybe_default_options, default_options_optimization,
4075 decode_options): Take location_t parameter and pass it to other
4077 * opts.h: Include input.h.
4078 (struct cl_option_handler_func, decode_options, set_option,
4079 handle_generated_option, read_cmdline_option): Take location_t
4081 (handle_option, enable_warning_as_error): Remove.
4082 * toplev.c (toplev_main): Update call to decode_options.
4084 2010-11-12 Tobias Grosser <grosser@fim.uni-passau.de>
4086 * graphite-cloog-util.c (oppose_constraint,
4087 cloog_matrix_to_ppl_constraint,
4088 new_Constraint_System_from_Cloog_Matrix): Explicitly cast to int as
4089 CLooG isl uses unsigned integers. This triggered a warning.
4091 2010-11-12 Joern Rennecke <amylaar@spamcop.net>
4094 * config/xtensa/xtensa.c (xtensa_expand_nonlocal_goto): Use LCT_NORMAL.
4095 (xtensa_setup_frame_addresses, xtensa_trampoline_init): Likewise.
4096 (xtensa_function_arg_1): De-constify cum.
4097 (xtensa_expand_prologue): Use add_reg_note.
4100 * config/cris/cris.c (saved_regs_mentioned): Delete.
4101 (cris_reload_address_legitimized): Cast itype to enum reload_type.
4102 Remove unused variable op0p.
4103 (cris_rtx_costs): Cast argument 2 to rtx_cost to enum rtx_code.
4104 (cris_emit_movem_store): Use add_reg_note.
4107 * cppbuiltin.c (define_builtin_macros_for_type_sizes): Split assert.
4109 2010-11-12 Eric Botcazou <ebotcazou@adacore.com>
4111 * function.c (expand_function_end): Set the locator of the prologue on
4112 the stack checking insns.
4114 2010-11-12 Richard Henderson <rth@redhat.com>
4116 * config.gcc [xtensa] (extra_options): Add fused-madd.opt.
4117 * config/xtensa/xtensa.opt (mfused-madd): Remove.
4118 * config/xtensa/xtensa.c (TARGET_DEFAULT_TARGET_FLAGS): Remove
4120 * config/xtensa/xtensa.md (fmasf4): Rename from muladdsf3; use fma.
4121 (fnmasf4): Rename from mulsubsf3; use fma.
4123 2010-11-12 Joern Rennecke <amylaar@spamcop.net>
4124 Richard Henderson <rth@redhat.com>
4127 * config/moxie/moxie.c (moxie_expand_prologue): Remove unused variables.
4128 * config/moxie/moxie.h (HARD_REGNO_OK_FOR_BASE_P): Use unsigned
4131 2010-11-12 Pat Haugen <pthaugen@us.ibm.com>
4133 * opts-common.c (decode_cmdline_option): Initialize separate_args.
4135 2010-11-12 Jan Hubicka <jh@suse.cz>
4137 * doc/invoke.texi (early-inlining-insns): Update default.
4138 * params.def (early-inlining-insns): Default to 10.
4140 2010-11-12 Olivier Hainque <hainque@adacore.com>
4142 * config/rs6000/aix.h: #undef TARGET_AIX_OS before #define.
4144 2010-11-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4146 * config/mips/iris6.h [!IRIX_USING_GNU_LD]
4147 (SUPPORTS_INIT_PRIORITY): Define.
4149 2010-11-12 Joern Rennecke <amylaar@spamcop.net>
4152 * config/avr/avr-protos.h (avr_return_addr_rtx): Update prototype.
4153 * config/avr/driver-avr.c (avr_device_to_arch): Always return value.
4154 (avr_device_to_data_start, avr_device_to_startfiles): Likewise.
4155 (avr_device_to_devicelib): Likewise.
4156 * config/avr/avr.md (zero_extendqihi2): Put variable declarations
4158 (zero_extendqisi2, zero_extendhisi2, zero_extendqidi2): Likewise.
4159 (zero_extendhidi2, zero_extendsidi2): Likewise.
4160 * config/avr/avr.c (avr_num_arg_regs): Constify type.
4161 (avr_return_addr_rtx): De-constify tem.
4162 (avr_rotate_bytes): Move declarations to start of block.
4163 Don't use variable length array. Put nested if/else into block.
4165 PR rtl-optimization/46433
4166 * var-tracking.c: Include tm_p.h .
4170 * doc/tm.texi.in (LOCAL_ALIGNMENT): State that the type, if any,
4172 (STACK_SLOT_ALIGNMENT, LOCAL_DECL_ALIGNMENT, PUSH_ROUNDING): Likewise.
4173 * doc/tm.texi: Regenerate.
4176 * config/bfin/bfin-protos.h (bfin_local_alignment): Update prototype.
4177 * config/bfin/bfin.c: Include sel-sched.h .
4178 (bfin_cpus): Use BFIN_CPU_UNKNOWN for last initializer element.
4179 (expand_interrupt_handler_prologue): Remove unused variable insn.
4180 (bfin_load_pic_reg): Likewise.
4181 (bfin_rtx_costs): Make code / outer_code variables of type
4182 enum rtx_code, copied from re-named parameters.
4183 (bfin_local_alignment): Change align argument and return type
4185 (bfin_adjust_cost): Remove unused variable insn_type.
4186 Declare variables at start of block.
4187 (struct loop_info): Rename to...
4188 (struct loop_info_d).
4189 (workaround_rts_anomaly): Change type of icode to int.
4190 (harmless_null_pointer_p): Cast REGNO (..) to int before comparison
4191 with int-typed variable.
4192 (note_np_check_stores): Likewise.
4193 (trapping_loads_p): Remove unused variable pat.
4194 (bfin_expand_binop_builtin): Use expand_normal.
4195 (bfin_expand_unop_builtin): Likewise.
4196 (bfin_expand_builtin): Likewise. Set tmode before use.
4199 * final.c (split_double): Don't use BITS_PER_WORD directly in
4203 * config/fr30/fr30.md (*movsf_constant_store): Remove duplicated
4207 * config/stormy16/stormy16.c (xstormy16_expand_prologue):
4209 (xstormy16_function_arg): Dereference cum.
4210 (xstormy16_expand_builtin): Use expand_normal.
4211 Change type of omode to enum machine_mode.
4212 (combine_bnp): Rename and to and_insn.
4215 * config/mcore/mcore.c (layout_mcore_frame): Remove unused variable
4218 2010-11-12 Eric Botcazou <ebotcazou@adacore.com>
4221 * emit-rtl.c (remove_insn): Do not mark BBs upon debug insns.
4223 2010-11-11 Rodrigo Rivas Costa <rodrigorivascosta@gmail.com>
4226 * lto-symtab.c (lto_symtab_resolve_replaceable_p): Use DECL_ONE_ONLY.
4228 2010-11-11 Nathan Froyd <froydnj@codesourcery.com>
4231 * common.opt (fmax-errors=): New option.
4232 * opts.c (common_handle_option) [OPT_fmax_errors_]: Handle it.
4233 * diagnostic.h (struct diagnostic_context): Add max_errors field.
4234 * diagnostic.c (diagnostic_initialize): Initialize it.
4235 (diagnostic_action_after_output): Exit if more than max_errors
4237 * doc/invoke.texi (Warning Options): Add -fmax-errors.
4238 (-fmax-errors): Document.
4240 2010-11-11 Richard Henderson <rth@redhat.com>
4242 * optabs.c (init_optabs): Init {fma,fms,fnma,fnms}_optab properly.
4244 2010-11-11 Richard Henderson <rth@redhat.com>
4246 * config/fused-madd.opt: New file.
4247 * config.gcc [i386-*, x86_64-*] (extra_options): Use it.
4248 * config/i386/i386.c (ix86_extra_costs): Handle FMA.
4249 (TARGET_DEFAULT_TARGET_FLAGS): Remove MASK_FUSED_MADD.
4250 * config/i386/i386.opt (mfused-madd): Remove.
4251 * config/i386/sse.md (split_fma): Remove.
4252 (split_fms, split_fnma, split_fnms): Remove.
4254 2010-11-12 Jakub Jelinek <jakub@redhat.com>
4257 * config/i386/i386.md (*ashl<mode>3_cconly,
4258 *<shiftrt_insn><mode>3_cconly): Don't use ix86_binary_operator_ok,
4259 change nonimmediate_operand predicate to register_operand.
4261 2010-11-11 Paolo Bonzini <bonzini@gnu.org>
4263 * Makefile.in (gengtype-lex.c): Include bconfig.h first.
4265 2010-11-11 Jan Hubicka <jh@suse.cz>
4267 * opts.c (finish_options): Do not error on -flto-partition alone.
4269 * doc/invoke.texi (-fwhopr): Merge into -flto section.
4270 (-flto-partition): Document none.
4271 * gcc.c (LINK_COMMAND_SPEC): Remove -fwhopr.
4272 * lto-wrapper.c: Update comment.
4273 (run_gcc): Update LTO option parsing.
4274 * opts.c (finish_options): add support -flto-partition=none
4275 (common_handle_option): Remove fwhopr.
4276 * common.opt: Turn fwhopr into flto.
4277 * collect2.c (main): Update option handling.
4278 * cgraphunit.c (cgraph_decide_is_function_needed): Remove flag_whopr.
4279 * ipa-split.c (execute_split_functions): Remove flag_whopr.
4280 * ipa.c (function_and_variable_visibility): Remove flag_whopr.
4281 * ipa-prop.c (ipa_compute_jump_functions): Remove flag_whopr.
4282 * varpool.c (decide_is_variable_needed): Remove flag_whopr.
4284 2010-11-11 Jan Hubicka <jh@suse.cz>
4286 PR tree-optimize/40436
4287 * ipa-inline.c (likely_eliminated_by_inlining_p): Rename to ...
4288 (eliminated_by_inlining_prob): ... this one; return 50% probability
4290 (estimate_function_body_sizes): Update use of
4291 eliminated_by_inlining_prob; estimate static function size
4294 2010-11-11 Joern Rennecke <amylaar@spamcop.net>
4297 * config/mep/mep-protos.h (mep_legitimize_reload_address): Always
4298 declare. Change type of argument four to type int.
4299 (mep_secondary_input_reload_class): Returns enum reg_class.
4300 (mep_secondary_output_reload_class): Likewise.
4301 (mep_function_value): Change types of arguments to cont_tree.
4302 * config/mep/mep.c (mep_legitimize_reload_address): Change type of
4303 argument four to type int.
4304 (mep_secondary_input_reload_class): Returns enum reg_class.
4305 (mep_secondary_output_reload_class): Likewise.
4306 (mep_function_value): Change types of arguments to cont_tree.
4307 * config/mep/mep.h (REGNO_REG_CLASS): Cast return value of
4308 mep_regno_reg_class to enum reg_class.
4310 2010-11-11 Richard Henderson <rth@redhat.com>
4312 * tree-ssa-math-opts.c (convert_mult_to_fma): Do not verify
4313 that the target has the exact fma operation that we matched.
4315 2010-11-11 Joseph Myers <joseph@codesourcery.com>
4317 * reginfo.c (fix_register): Avoid inserting English word in
4318 diagnostic sentence. Use %qs for quoting and %'.
4320 2010-11-11 H.J. Lu <hongjiu.lu@intel.com>
4322 * config/i386/driver-i386.c (host_detect_local_cpu): Support
4323 Intel processor family 6, model 0x2c.
4325 2010-11-11 Joseph Myers <joseph@codesourcery.com>
4327 * opts.c (warning_as_error_callback,
4328 register_warning_as_error_callback): Remove.
4329 (enable_warning_as_error): Don't use warning_as_error_callback.
4330 * opts.h (register_warning_as_error_callback): Remove.
4332 2010-11-11 Richard Henderson <rth@redhat.com>
4334 * tree-ssa-math-opts.c (convert_mult_to_fma): Handle a NEGATE_EXPR
4335 in between the MULT and the PLUS/MINUS.
4337 2010-11-11 Jakub Jelinek <jakub@redhat.com>
4340 * expr.c (expand_assignment): If to_rtx is a VOIDmode MEM, use
4341 BLKmode mode for it.
4342 (expand_expr_real_1): Similarly for op0.
4344 2010-11-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4346 * doc/sourcebuild.texi (LTO Testing, dg-suppress-ld-options):
4347 Document optional target selector.
4349 2010-11-11 Dave Korn <dave.korn.cygwin@gmail.com>
4351 * lto-streamer-out.c (write_symbol): Use int_size_in_bytes rather than
4352 assembling high and low parts of size if not using 32-bit HWINT; else
4353 use DECL_SIZE_UNITS, not DECL_SIZE.
4355 2010-11-11 Martin Jambor <mjambor@suse.cz>
4357 PR tree-optimization/46383
4358 * ipa-prop.c (compute_complex_assign_jump_func): Ignore negative
4360 (compute_complex_ancestor_jump_func): Likewise.
4361 * tree.c (get_binfo_at_offset): Return NULL_TREE if offset is negative.
4363 2010-11-11 Jakub Jelinek <jakub@redhat.com>
4366 * tree-ssa-loop-ivopts.c (htab_inv_expr_eq): Don't return
4367 true if expr1->hash != expr2->hash.
4369 2010-11-10 Joseph Myers <joseph@codesourcery.com>
4371 * cfgloop.c (verify_loop_structure): Use %' in diagnostics. Start
4372 diagnostics with lowercase letters.
4373 * cgraphunit.c (verify_cgraph_node): Start diagnostics with
4375 * collect2.c (maybe_run_lto_and_relink): Remove trailing '.' from
4377 * config/alpha/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
4378 * config/arm/arm.c (arm_get_pcs_model): Start diagnostics with
4380 * config/arm/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
4381 Remove trailing ' ' from diagnostic.
4382 * config/avr/avr.c (print_operand_address): Start diagnostic with
4383 a lowercase letter and remove trailing '.'.
4384 * config/avr/avr.opt (mpmem-wrap-around): Fix typo in help text.
4385 * config/bfin/bfin.c (bfin_option_override): Start diagnostics
4386 with lowercase letters. Use %' in diagnostics. Remove trailing
4387 '.' from diagnostics.
4388 (bfin_handle_longcall_attribute): Use %' in diagnostic.
4389 * config/cris/cris.c (cris_split_movdx,
4390 cris_expand_pic_call_address): Start diagnostics with lowercase
4392 (cris_asm_output_label_ref): Use %' in diagnostic.
4393 * config/cris/cris.h (ASM_SPEC): Start diagnostic with a lowercase
4395 * config/crx/crx.h (FUNCTION_PROFILER): Start diagnostic with a
4397 * config/darwin-c.c (version_as_macro): Start diagnostic with a
4399 * config/darwin-driver.c (darwin_default_min_version): Use %' in
4401 * config/host-darwin.c (darwin_gt_pch_use_address): Use %' in
4403 * config/i386/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
4404 * config/i386/host-cygwin.c (cygwin_gt_pch_get_address): Use %' in
4406 * config/i386/i386.c (ix86_option_override_internal): Write
4407 diagnostic as a single sentence without trailing '.'. Use %' in
4409 (ix86_function_sseregparm, classify_argument): Start diagnostics
4410 with lowercase letters.
4411 (ix86_expand_prologue): Use %' in diagnostic.
4412 * config/i386/i386.h (CC1_CPU_SPEC_1): Remove trailing '.' from
4414 * config/i386/nwld.h (LINK_SPEC): Start diagnostic with a
4416 * config/i386/winnt.c (i386_pe_determine_dllimport_p): Use %' in
4418 * config/ia64/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
4419 * config/ia64/ia64.opt (msched-max-memory-insns-hard-limit): Avoid
4421 * config/lm32/lm32.c (lm32_print_operand): Start diagnostic with a
4423 * config/mep/mep.c (mep_validate_vliw): Start diagnostics with
4425 * config/microblaze/microblaze.c (microblaze_handle_option):
4426 Remove trailing '.' from diagnostic.
4427 (print_operand): Start diagnostic with a lowercase letter.
4428 * config/pa/pa-hpux10.h (LINK_SPEC): Start diagnostics with
4429 lowercase letters. Avoid '`' in diagnostics.
4430 * config/pa/pa-hpux11.h (LINK_SPEC): Start diagnostics with
4431 lowercase letters. Avoid '`' in diagnostics.
4432 * config/pa/pa64-hpux.h (LINK_SPEC): Start diagnostics with
4433 lowercase letters. Avoid '`' in diagnostics.
4434 * config/picochip/picochip.c (picochip_option_override,
4435 picochip_emit_save_register, picochip_function_arg,
4436 picochip_output_label, picochip_output_internal_label,
4437 picochip_asm_output_opcode, picochip_output_cbranch,
4438 picochip_output_compare, picochip_output_branch,
4439 picochip_get_vliw_alu_id): Remove trailing '.' and '\n' from
4440 diagnostics. Start diagnostics with lowercase letters. Use %' in
4442 * config/rs6000/rs6000.c (rs6000_option_override_internal): Use
4443 "SPE" capitalization. Start diagnostic with a lowercase letter.
4444 (rs6000_handle_option): Start diagnostics with lowercase letters.
4445 (def_builtin): Remove trailing '.' from diagnostic.
4446 (rs6000_savres_routine_name): Start diagnostic with a lowercase
4448 * config/rs6000/sysv4.h (LINK_OS_FREEBSD_SPEC): Avoid '`' in
4450 * config/rx/rx.c (rx_handle_option): Start diagnostic with a
4452 * config/s390/s390.c (s390_option_override) Start diagnostics with
4453 lowercase letters. Use %' in diagnostic.
4454 * config/sh/sh.c (sh_output_mi_thunk): Start diagnostics with
4456 * config/sh/symbian-base.c (sh_symbian_mark_dllimport): Use %' in
4458 * config/sh/symbian-c.c (sh_symbian_is_dllimported): Use %' in
4460 * config/sh/symbian-cxx.c (sh_symbian_is_dllimported): Use %' in
4462 * config/sparc/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
4463 * config/spu/spu.c (spu_option_override): Start diagnostics with
4464 lowercase letters. Use %qs for quoting in diagnostics.
4465 (spu_check_builtin_parm): Remove trailing '.' from diagnostics.
4466 Use %wd instead of HOST_WIDE_INT_PRINT_DEC in diagnostic .
4467 * config/v850/v850.c (construct_save_jarl): Remove trailing '\n'
4469 * convert.c (convert_to_integer, convert_to_vector): Use %' in
4471 * dbgcnt.c (dbg_cnt_process_opt): Start diagnostic with lowercase
4472 letter and use "cannot" spelling.
4473 * expmed.c (extract_fixed_bit_field): Start diagnostic with
4474 lowercase letter and format as a single sentence without '.'.
4475 * ggc-common.c (write_pch_globals, gt_pch_save, gt_pch_restore):
4476 Use %' in diagnostics.
4477 * ggc-page.c (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read):
4478 Use %' in diagnostics.
4479 * ggc-zone.c (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read):
4480 Use %' in diagnostics.
4481 * graph.c (clean_graph_dump_file): Use %' in diagnostic.
4482 * graphite-poly.c (graphite_read_scop_file): Start diagnostics
4483 with lowercase letters and remove tailing '.' and '\n'.
4484 * lto-cgraph.c (input_profile_summary): Start diagnostic with
4485 lowercase letter and remove trailing '.'.
4486 (input_cgraph): Start diagnostics with lowercase letters and
4487 remove trailing '\n'.
4488 * opts.c (finish_options, common_handle_option): Start diagnostics
4489 with lowercase letters and remove trailing '.'. Fix typo in
4491 * passes.c (position_pass): Start diagnostic with lowercase letter.
4492 * plugin.c (add_new_plugin, parse_plugin_arg_opt,
4493 register_callback, try_init_one_plugin): Start diagnostics with
4495 * reload1.c (spill_failure): Use %' in diagnostic.
4496 (gen_reload): Start diagnostic with a lowercase letter.
4497 * stor-layout.c (place_field): Start diagnostic with a lowercase
4499 * toplev.c (open_auxiliary_file): Use %' in diagnostic.
4500 * tree-cfg.c (verify_expr, verify_types_in_gimple_reference,
4501 verify_gimple_call, verify_gimple_phi, verify_eh_throw_stmt_node):
4502 Start diagnostics with lowercase letters, remove trailing '.' and
4503 use %' in diagnostics.
4504 * tree-ssa.c (verify_def): Remove trailing '.' from diagnostic.
4505 (verify_ssa): Don't split diagnostic across two error calls.
4506 Spell out "number" and use %' in diagnostic.
4507 * value-prof.c (visit_hist, check_counter): Start diagnostics with
4510 2010-11-10 Uros Bizjak <ubizjak@gmail.com>
4513 * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Swap __hisi and __losi.
4514 (_mm_cvtpu16_ps): Ditto.
4516 2010-11-10 Joseph Myers <joseph@codesourcery.com>
4518 * common.opt (flag_excess_precision_cmdline, flag_generate_lto,
4519 warn_larger_than, larger_than_size, warn_frame_larger_than,
4520 frame_larger_than_size, flag_gen_aux_info, flag_shlib,
4521 default_visibility, flag_tls_default): New Variable declarations.
4522 (aux-info, auxbase, dumpbase, dumpdir, falign-functions=,
4523 falign-jumps=, falign-labels=, falign-loops=, o, v): Use Var.
4524 (v): Declare as Common and document here.
4525 * flags.h (default_visibility, flag_generate_lto,
4526 warn_larger_than, larger_than_size, warn_frame_larger_than,
4527 frame_larger_than_size, flag_gen_aux_info, flag_pedantic_errors,
4528 flag_shlib, flag_excess_precision_cmdline): Remove.
4529 (set_Wstrict_aliasing): Update prototype.
4530 * gcc.c (verbose_flag): Remove.
4531 (driver_handle_option): Add diagnostic_context parameter. Don't
4532 handle OPT_v explicitly here. Set verbose_flag to 1 rather than
4534 * opts-common.c (handle_option): Pass dc to handler.
4535 * opts.c (warn_larger_than, larger_than_size,
4536 warn_frame_larger_than, frame_larger_than_size,
4537 default_visibility): Remove.
4538 (common_handle_option): Add diagnostic_context parameter.
4539 (set_fast_math_flags, set_unsafe_math_optimizations_flags): Add
4540 gcc_options parameters.
4541 (lang_handle_option, target_handle_option, read_cmdline_options,
4542 decode_options): Add diagnostic_context parameters.
4543 (finish_options): Access option state through opts pointer where
4545 (common_handle_option): Access option state through opts pointer
4546 where possible. Do not set local static variable verbose. Do not
4547 explicitly handle OPT_v, OPT_Wstrict_aliasing_,
4548 OPT_Wstrict_overflow_, OPT_Wunused, OPT_auxbase, OPT_dumpbase,
4549 OPT_dumpdir, OPT_falign_functions_, OPT_falign_jumps_,
4550 OPT_falign_labels_, OPT_falign_loops_, OPT_fira_verbose_, OPT_o or
4551 OPT_fwhopr_. Do not explicitly set .opt file variables for
4552 OPT_aux_info or OPT_pedantic_errors. Use dc for diagnostic context.
4553 (set_Wstrict_aliasing): Add gcc_options parameter.
4554 * opts.h (struct cl_option_handler_func): Add diagnostic_context
4555 parameter to handler.
4556 (decode_options): Add diagnostic_context parameter.
4557 * toplev.c (dump_base_name, dump_dir_name, aux_base_name,
4558 asm_file_name, flag_generate_lto, flag_gen_aux_info,
4559 aux_info_file_name, flag_shlib, flag_tls_default,
4560 flag_excess_precision_cmdline, flag_pedantic_errors): Remove.
4561 (toplev_main): Pass global_dc to decode_options.
4562 * toplev.h (dump_base_name, dump_dir_name, aux_base_name,
4563 aux_info_file_name, asm_file_name): Remove.
4564 * tree.h (flag_tls_default): Remove.
4566 2010-11-10 Eric Botcazou <ebotcazou@adacore.com>
4569 * config/sparc/sparc.c (sparc_delegitimize_address): New function.
4570 (TARGET_DELEGITIMIZE_ADDRESS): Define to above.
4572 2010-11-10 Quentin Neill <quentin.neill.gnu@gmail.com>
4574 * config.gcc (i[34567]86-*-*): Include tbmintrin.h.
4575 (x86_64-*-*): Likewise.
4576 * config/i386/cpuid.h: Define TBM bit.
4577 * config/i386/driver-i386.c (host_detect_local_cpu): Define
4579 * config/i386/i386-c.c (ix86_target_macros_internal): Check
4581 * config/i386/i386.c (OPTION_MASK_ISA_TBM_SET): New.
4582 (OPTION_MASK_ISA_TBM_UNSET): New.
4583 (ix86_handle_option): Handle -mtbm.
4584 (isa_opts): Add -mtbm.
4585 (enum pta_flags): Add PTA_TBM.
4586 (ix86_option_override_internal): Add TBM support.
4587 (ix86_valid_target_attribute_inner_p): Handle -mtbm.
4588 (IX86_BUILTIN_BEXTRI32): New for TBM intrinsic.
4589 (IX86_BUILTIN_BEXTRI64): Likewise.
4590 (bdesc_args): Add TBM intrinsics.
4591 (ix86_expand_builtin): Add TBM specific case.
4592 * config/i386/i386.h (TARGET_TBM): New for TBM.
4593 * config/i386/i386.md (UNSPEC_BEXTRI): New for TBM.
4594 (tbm_bextri_<mode>): Likewise.
4595 (*tbm_blcfill_<mode>): Likewise.
4596 (*tbm_blci_<mode>): Likewise.
4597 (*tbm_blcic_<mode>): Likewise.
4598 (*tbm_blcmsk_<mode>): Likewise.
4599 (*tbm_blcs_<mode>): Likewise.
4600 (*tbm_blsfill_<mode>): Likewise.
4601 (*tbm_blsic_<mode>): Likewise.
4602 (*tbm_t1mskc_<mode>): Likewise.
4603 (*tbm_tzmsk_<mode>): Likewise.
4604 * config/i386/i386.opt: Add -mtbm.
4605 * config/i386/tbmintrin.h (__bextri_u32): New.
4606 (__blcfill_u32): Likewise.
4607 (__blci_u32): Likewise.
4608 (__blcic_u32): Likewise.
4609 (__blcmsk_u32): Likewise.
4610 (__blcs_u32): Likewise.
4611 (__blsfill_u32): Likewise.
4612 (__blsic_u32): Likewise.
4613 (__t1mskc_u32): Likewise.
4614 (__tzmsk_u32): Likewise.
4615 (__bextri_u64): Likewise.
4616 (__blcfill_u64): Likewise.
4617 (__blci_u64): Likewise.
4618 (__blcic_u64): Likewise.
4619 (__blcmsk_u64): Likewise.
4620 (__blcs_u64): Likewise.
4621 (__blsfill_u64): Likewise.
4622 (__blsic_u64): Likewise.
4623 (__t1mskc_u64): Likewise.
4624 (__tzmsk_u64): Likewise.
4625 * config/i386/x86intrin.h: Add TBM check and tbmintrin.h.
4626 * doc/invoke.texi: Document -mtbm.
4627 * doc/extend.texi: Document TBM built-in functions.
4629 2010-11-10 Quentin Neill <quentin.neill.gnu@gmail.com>
4631 * config.gcc (i[34567]86-*-*): Include bmiintrin.h.
4632 (x86_64-*-*): Likewise.
4633 * config/i386/cpuid.h: Define BMI bit.
4634 * config/i386/driver-i386.c (host_detect_local_cpu): Define
4636 * config/i386/i386-c.c (ix86_target_macros_internal): Check
4638 * config/i386/i386.c (OPTION_MASK_ISA_BMI_SET): New.
4639 (OPTION_MASK_ISA_BMI_UNSET): New.
4640 (ix86_handle_option): Handle -mbmi.
4641 (isa_opts): Add -mbmi.
4642 (enum pta_flags): Add PTA_BMI.
4643 (ix86_option_override_internal): Add BMI support.
4644 (ix86_valid_target_attribute_inner_p): Handle -mbmi.
4645 (IX86_BUILTIN_BEXTR32): New for BMI intrinsic.
4646 (IX86_BUILTIN_BEXTR64): Likewise.
4647 (IX86_BUILTIN_CTZS): Likewise.
4648 (bdesc_args): Add BMI intrinsics.
4649 (ix86_expand_args_builtin): Add BMI specific cases.
4650 * config/i386/i386.h (TARGET_BMI): New for BMI.
4651 (CTZ_DEFINED_VALUE_AT_ZERO): Likewise.
4652 (CLZ_DEFINED_VALUE_AT_ZERO): Likewise.
4653 * config/i386/i386.md (UNSPEC_BEXTR): New for BMI.
4654 (UNSPEC_TZCNT): Likewise.
4655 (ctz<mode>2): Add tzcnt, and handle 16 bit operands.
4656 (bmi_andn_<mode>): New for BMI.
4657 (bmi_bextr_<mode>): Likewise.
4658 (bmi_blsi_<mode>): Likewise.
4659 (bmi_blsmsk_<mode>): Likewise.
4660 (bmi_blsr_<mode>): Likewise.
4661 * config/i386/i386.opt: Add -mbmi.
4662 * config/i386/x86intrin.h: Add BMI check and bmiintrin.h.
4663 * config/i386/bmiintrin.h (__lzcnt_u16): New.
4664 (__tzcnt_u16): Likewise.
4665 (__andn_u32): Likewise.
4666 (__bextr_u32): Likewise.
4667 (__blsi_u32): Likewise.
4668 (__blsmsk_u32): Likewise.
4669 (__blsr_u32): Likewise.
4670 (__lzcnt_u32): Likewise.
4671 (__tzcnt_u32): Likewise.
4672 (__andn_u64): Likewise.
4673 (__bextr_u64): Likewise.
4674 (__blsi_u64): Likewise.
4675 (__blsmsk_u64): Likewise.
4676 (__blsr_u64): Likewise.
4677 (__lzcnt_u64): Likewise.
4678 (__tzcnt_u64): Likewise.
4679 * doc/invoke.texi: Document -mbmi and -mno-bmi.
4680 * doc/extend.texi: Document BMI built-in functions.
4682 2010-11-10 Jan Hubicka <jh@suse.cz>
4684 PR tree-optimize/46228
4685 * doc/invoke.texi (comdat-sharing-probability): Document.
4686 * ipa-inline.c (cgraph_estimate_growth): Handle COMDATs
4687 * params.def (PARAM_COMDAT_SHARING_PROBABILITY): New param.
4689 2010-11-10 Jan Hubicka <jh@suse.cz>
4691 PR tree-optimize/46228
4692 * cgraph.c (cgraph_propagate_frequency): Fix typo.
4694 2010-11-10 H.J. Lu <hongjiu.lu@intel.com>
4696 PR tree-optimization/46414
4697 * tree-inline.c (estimate_move_cost): Check preferred vector
4698 mode for vector type.
4700 2010-11-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4702 * config/alpha/osf5.h (ASM_SPEC): Remove -nocpp.
4704 2010-11-10 Sebastian Pop <sebastian.pop@amd.com>
4706 PR tree-optimization/45971
4707 * tree-if-conv.c (predicate_scalar_phi): Do not generate a COND_EXPR
4708 for phi nodes analyzable by scev.
4710 2010-11-10 Richard Guenther <rguenther@suse.de>
4712 PR tree-optimization/44964
4713 * ipa-inline.c (cgraph_flatten): Check that SSA form matches.
4715 2010-11-10 Martin Jambor <mjambor@suse.cz>
4717 PR tree-optimization/46351
4718 PR tree-optimization/46377
4719 * tree-sra.c (type_internals_preclude_sra_p): Disqualify types with
4720 aggregate bit-fields.
4722 2010-11-10 Joseph Myers <joseph@codesourcery.com>
4724 * doc/tm.texi.in (TARGET_OPTION_TRANSLATE_TABLE): Remove.
4725 * doc/tm.texi: Regenerate.
4726 * opts-common.c (tm.h): Don't include.
4727 (target_option_translations): Remove.
4728 (decode_cmdline_options_to_array): Don't handle translating options.
4729 * system.h (TARGET_OPTION_TRANSLATE_TABLE): Poison.
4730 * config/darwin-driver.c: Don't condition includes on
4731 CROSS_DIRECTORY_STRUCTURE.
4732 (darwin_default_min_version): Make static.
4733 (darwin_driver_init): New. Call darwin_default_min_version if not
4734 CROSS_DIRECTORY_STRUCTURE.
4735 * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Remove.
4736 (DRIVER_SELF_SPECS, DARWIN_CC1_SPEC): Define.
4737 (ASM_SPEC): Add %{static}.
4738 (darwin_default_min_version): Don't declare.
4739 (darwin_driver_init): Declare.
4740 (GCC_DRIVER_HOST_INITIALIZATION): Define to call
4741 darwin_driver_init, independent of CROSS_DIRECTORY_STRUCTURE.
4742 * config/darwin.opt (all_load, allowable_client,
4743 arch_errors_fatal, bind_at_load, bundle, bundle_loader,
4744 dead_strip, dependency-file, dylib_file, dynamic, dynamiclib,
4745 exported_symbols_list, filelist, findirect-virtual-calls,
4746 flat_namespace, force_cpusubtype_ALL, force_flat_namespace,
4747 framework, fterminated-vtables, gfull, gused, image_base, init,
4748 install_name, multi_module, multiply_defined,
4749 multiply_defined_unused, no_dead_strip_inits_and_terms,
4750 seg_addr_table, seg_addr_table_filename, segaddr,
4751 segs_read_only_addr, segs_read_write_addr, single_module,
4752 umbrella, unexported_symbols_list, weak_reference_mismatches,
4753 Zall_load, Zarch_errors_fatal, Zbind_at_load, Zbundle,
4754 Zdead_strip, Zdynamic, Zdynamiclib, Zflat_namespace,
4755 Zforce_cpusubtype_ALL, Zforce_flat_namespace, Zmulti_module,
4756 Zno_dead_strip_inits_and_terms, Zsingle_module): New.
4757 * config/i386/darwin.h (CC1_SPEC): Add DARWIN_CC1_SPEC.
4758 (ASM_SPEC): Add %{static}.
4759 (SUBTARGET_OPTION_TRANSLATE_TABLE): Remove.
4760 * config/mep/mep.h (TARGET_OPTION_TRANSLATE_TABLE): Remove.
4761 (DRIVER_SELF_SPECS): Handle options formerly in
4762 TARGET_OPTION_TRANSLATE_TABLE.
4763 * config/mep/mep.opt (mfar): New.
4764 * config/picochip/picochip.h (TARGET_OPTION_TRANSLATE_TABLE): Remove.
4765 (DRIVER_SELF_SPECS): Define. Handle options formerly in
4766 TARGET_OPTION_TRANSLATE_TABLE.
4767 * config/rs6000/darwin.h (CC1_SPEC): Handle -faltivec and -fno-altivec.
4768 (SUBTARGET_OPTION_TRANSLATE_TABLE): Remove.
4769 * config/rs6000/darwin.opt (Waltivec-long-deprecated, faltivec,
4770 ffix-and-continue, findirect-data): New.
4771 * config/rx/rx.h (TARGET_OPTION_TRANSLATE_TABLE): Remove.
4772 * config/rx/rx.opt (nofpu): Make into alias of mnofpu.
4773 (mnofpu): Define mask and use Report here.
4775 2010-11-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4777 * config/s390/s390.c (s390_emit_prologue): Report the stack
4778 size if -fstack-usage is used.
4780 2010-11-10 Richard Guenther <rguenther@suse.de>
4782 PR tree-optimization/46398
4783 * tree-ssa-sccvn.c (process_scc): Iterate for all PHIs.
4785 2010-11-10 Joern Rennecke <amylaar@spamcop.net>
4788 * config/iq2000/iq2000.h (REGISTER_NAMES): Remove trailing semicolon.
4789 (REGNO_MODE_OK_FOR_BASE_P): Cast REGNO to int before passing it to
4790 GP_REG_OR_PSEUDO_STRICT_P.
4791 * config/iq2000/iq2000.md (andsi3+1): Add gcc_unreachable for
4792 unexpected alternative.
4793 (*movsf_internal): Likewise.
4794 (indirect_jump): Replace call to non-existant function with call to
4796 (tablejump): Likewise.
4797 * config/iq2000/iq2000.c: Include df.h .
4798 (iq2000_function_arg_advance): Use CONST_CAST2.
4799 (compute_frame_size, iq2000_expand_prologue): Remove unused variables.
4800 (iq2000_can_eliminate): Call leaf_function_p instead of testing for
4801 a non-zero function address.
4802 (iq2000_initial_elimination_offset): Add gcc_unreachable for
4803 unexpected value of FROM.
4804 (symbolic_expression_p): Delete.
4805 (iq2000_function_value): Constify func.
4806 (expand_one_builtin): Use expand_normal.
4807 (iq2000_print_operand): Don't print VALUE if calculating it failed.
4809 PR rtl-optimization/44764
4810 * addresses.h (ok_for_base_p_1): Mark regno with ATTRIBUTE_UNUSED.
4813 * config/rx/rx.h (REGISTER_NAMES): Remove trailing semicolon.
4814 * config/rx/rx.c (rx_promote_function_mode): Mark punsignedp
4815 with ATTRIBUTE_UNUSED.
4816 (valid_psw_flag): Constify parameter which.
4817 (rx_memory_move_cost): Change type of parameter regclass to reg_class_t.
4820 * config/mmix/mmix-protos.h (mmix_local_alignment): Update prototype.
4821 (mmix_dbx_register_number): Likewise.
4822 * config/mmix/mmix.c: Include df.h .
4823 (mmix_local_alignment): Change argument basic_align and return type
4825 (mmix_dbx_register_number): Change argument and return type to
4827 (mmix_expand_prologue): Use add_reg_note.
4830 * config/spu/spu.c (spu_expand_insv): Remove unused variables.
4831 (spu_split_store): Use aform.
4832 (spu_function_profiler): Mark parameter labelno with ATTRIBUTE_UNUSED.
4834 2010-11-10 Laurynas Biveinis <laurynas.biveinis@gmail.com>
4837 * doc/gty.texi (GTY Options): Clarify that variable_size produces
4838 allocators taking size in bytes, compare with length option. Add
4839 size calculation example.
4840 (Invoking the garbage collector): Ensure that sentences are
4841 followed by two spaces. Describe that pointer fields must be
4842 initialized at ggc_collect call.
4843 (Troubleshooting): New section.
4845 2010-11-09 Jan Hubicka <jh@suse.cz>
4847 PR tree-optimization/40436
4848 * ipa-inline.c (leaf_node_p): Implement using is_inexpensive_builtin.
4849 * tree-inline.c (estimate_num_insns): Inexpensive builtins are like
4850 normal instructions; be sure bultin is not implemented in this file;
4851 compute non-zero return cost.
4852 (init_inline_once): Reduce builtin_call_cost to 1; set return cost.
4853 * tree-inline.h (eni_weights_d): Add return cost.
4855 2010-11-09 Joseph Myers <joseph@codesourcery.com>
4857 * c-parser.c (c_parser_struct_declaration): Handle declaration
4858 specifiers followed by CPP_CLOSE_BRACE.
4860 2010-11-09 Michael Meissner <meissner@linux.vnet.ibm.com>
4862 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Rewrite so
4863 split occurs before reload, and we allocate memory at the time of
4864 the split, not during expansion. Add attributes.
4865 (floatsi<mode>2_lfiwax_mem): Ditto.
4866 (floatunssi<mode>2_lfiwzx): Ditto.
4867 (floatunssi<mode>2_lfiwzx_mem): Ditto.
4868 (floatsidf2): Ditto.
4869 (floatunssisf2): Ditto.
4870 (floatunssidf2): Ditto.
4871 (fix_trunc<mode>si2): Ditto.
4872 (fix_trunc<mode>si2_stfiwx): Ditto.
4873 (fix_trunc<mode>si2_internal): Ditto.
4874 (fix_trunc<mode>si2): Ditto.
4875 (fix_trunc<mode>di2): Ditto.
4876 (fixuns_trunc<mode>si2_stfiwx): Ditto.
4877 (floatsisf2): Ditto.
4878 (floatdidf2_mem): Ditto.
4879 (floatunsdidf2_mem): Ditto.
4880 (floatunsdidf2): Ditto.
4881 (floatdisf2_internal1): Ditto.
4882 (floatdisf2_mem): Ditto.
4883 (floatunsdisf2_mem): Ditto.
4884 (floatsi<mode>2_lfiwax_mem2): Delete.
4885 (floatunssi<mode>2_lfiwzx_mem2): Ditto.
4886 (fix_trunc<mode>si2_mem): Ditto.
4887 (fixuns_trunc<mode>si2_mem): Ditto.
4888 (round32<mode>2_fprs): New combiner insn to combine (double)(int)
4889 type operations to reduce copying the values to multiple memory slots.
4890 (roundu32<mode>2_fprs): Ditto.
4892 * config/rs6000/rs6000.c (rs6000_address_for_fpconvert): Handle
4893 PRE_INC, PRE_DEC, PRE_MODIFY.
4894 (rs6000_expand_convert_si_to_sfdf): Delete, no longer used.
4896 * config/rs6000/rs6000-protos.h (rs6000_expand_convert_si_to_sfdf):
4899 2010-11-09 Jakub Jelinek <jakub@redhat.com>
4902 * cfgexpand.c (partition_stack_vars): Call
4903 update_alias_info_with_stack_vars unconditionally.
4904 (update_alias_info_with_stack_vars): Allow unused
4905 unreferenced vars when not optimizing.
4907 2010-11-09 Sebastian Pop <sebastian.pop@amd.com>
4909 PR tree-optimization/46036
4910 * tree-if-conv.c (predicate_bbs): Call unshare_expr before
4911 add_to_dst_predicate_list.
4913 2010-11-09 Jakub Jelinek <jakub@redhat.com>
4916 * df-problems.c (struct dead_debug_use, struct dead_debug): Move
4918 (df_set_unused_notes_for_mw, df_create_unused_note): Add DEBUG
4919 argument, call dead_debug_reset when adding REG_UNUSED note.
4920 (dead_debug_reset): New function.
4921 (df_note_bb_compute): Adjust df_set_unused_notes_for_mw and
4922 df_create_unused_note callers.
4924 2010-11-09 Anatoly Sokolov <aesok@post.ru>
4926 * config/fr30/fr30.c: Include "df.h".
4928 2010-11-09 Richard Guenther <rguenther@suse.de>
4930 PR tree-optimization/46355
4931 * tree-loop-distribution.c (tree_loop_distribution): Do not
4932 distribute loops without a single exit.
4934 2010-11-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4936 PR rtl-optimization/46237
4937 * ira-conflicts.c (ira_build_conflicts): Record conflicts for call
4938 saved hard regs if they might get partially clobbered.
4940 2010-11-09 Paul Koning <ni1d@arrl.net>
4942 * config/pdp11/pdp11.md (lshrsi3, lshrhi3): Use add for decrement.
4944 2010-11-09 Richard Guenther <rguenther@suse.de>
4946 PR tree-optimization/46177
4947 * tree-loop-distribution.c (prop_phis): Remove.
4948 (generate_builtin): Re-use the old loop exit edge to avoid
4949 needing to update PHI nodes.
4951 2010-11-09 Joern Rennecke <amylaar@spamcop.net>
4953 * config/i386/i386.c (ix86_expand_split_stack_prologue): Change
4954 type of args_size to unsigned HOST_WIDE_INT.
4957 * config.gcc (picochip-*): Add t-pnt16-warn to tmake_file.
4958 * config/t-pnt16-warn: New file.
4959 * config/picochip/picochip.c (picochip_emit_stack_allocate):
4961 (picochip_emit_save_register): Likewise.
4962 (picochip_emit_restore_register): Remove variable insn.
4963 (picochip_legitimize_address): Don't use C++ style comments.
4964 (picochip_legitimize_reload_address): Likewise.
4965 (reorder_var_tracking_notes): Remove variable vliw_start.
4966 (picochip_reorg): Cast first arguemnt to emit_note_after to
4968 (picochip_expand_builtin_2op): Use EXPAND_NORMAL.
4969 (picochip_expand_builtin_3op): Likewise.
4970 (picochip_expand_builtin_2opvoid): Likewise.
4971 (picochip_expand_array_get, picochip_expand_array_put): Likewise.
4972 (picochip_expand_array_testport): Likewise.
4973 (picochip_init_builtins): Remove unused variables.
4974 * config/picochip/picochip.h (ASM_FORMAT_PRIVATE_NAME): Cast LABELNO
4975 to unsigned long, and output it as such.
4976 (ASM_OUTPUT_SKIP): Use HOST_WIDE_INT_PRINT_UNSIGNED.
4977 * config/picochip/picochip.md (movhicc): Remove nonsense statement.
4978 (schedType): Cast result of picochip_schedule_type to
4979 enum attr_schedType.
4982 * config/mn10300/mn10300.c (SIZE_FMOV_LIMIT): Promote all arms of
4983 conditional to type of S.
4984 (mn10300_function_arg): Remove unused variable align.
4985 (mn10300_arg_partial_bytes): Likewise.
4986 * config/mn10300/mn10300.md (attribute cpu): Cast value to
4989 2010-11-09 H.J. Lu <hongjiu.lu@intel.com>
4992 * gengtype-parse.c (type): Call get_input_file_name to get file name.
4994 2010-11-09 Eric Botcazou <ebotcazou@adacore.com>
4996 * tree.h (contains_placeholder_p): Fix comment.
4997 (type_contains_placeholder_p): Adjust comment.
4998 * tree.c (contains_placeholder_p): Fix comment.
4999 (type_contains_placeholder_1): Do not recurse on pointed-to types and
5001 (type_contains_placeholder_p): Add comment.
5003 2010-11-09 Paul Koning <ni1d@arrl.net>
5005 * config/pdp11/pdp11.c (pdp11_assemble_integer): Clean up fix for
5006 output of byte values.
5008 2010-11-09 Jakub Jelinek <jakub@redhat.com>
5011 * tree-ssa-propagate.c (update_call_from_tree): Fix for use
5014 2010-11-09 Richard Guenther <rguenther@suse.de>
5017 * varasm.c (compute_visible_aliases): New function.
5018 (remove_unreachable_alias_pairs): Aliases make a target available
5019 even though we reclaimed the cgraph node.
5020 (finish_aliases_1): Likewise.
5021 * Makefile.in (varasm.o): Add pointer-set.h dependency.
5023 2010-11-09 Nick Clifton <nickc@redhat.com>
5025 * config/mn10300/mn10300-modes.def: New file.
5027 2010-11-09 Basile Starynkevitch <basile@starynkevitch.net>
5028 Jeremie Salvucci <jeremie.salvucci@free.fr>
5030 * gengtype.c (get_output_file_name): Declaration moved to gengtype.h.
5031 (plugin_files, get_file_basename, get_file_realbasename)
5032 (get_file_langdir, error_at_line, gt_files, this_file)
5033 (system_h_file, read_input_list, create_field_all)
5034 (get_file_srcdir_relative_path, get_file_basename)
5035 (get_file_langdir, get_file_gtfilename)
5036 (get_output_file_with_visibility, get_output_file_name)
5037 (struct flist, put_mangled_filename, walk_type)
5038 (put_mangled_filename, finish_root_table, write_roots): Use
5040 (lang_dir_names, num_lang_dirs): Remove static.
5041 (get_lang_bitmap, set_lang_bitmap): Moved to gengtype.h.
5042 (main): Use input_file-s.
5044 * gengtype.h: (struct input_file_st, input_file): New type.
5045 (struct fileloc): Use it.
5046 (gt_files, num_gt_files, this_file, system_h_file)
5047 (input_file_by_name, get_file_srcdir_relative_path): Use input_file.
5048 (get_input_file_name): New function.
5049 (get_lang_bitmap, set_lang_bitmap): Moved from gengtype.c and
5051 (lang_dir_names, num_lang_dirs, get_output_file_with_visibility)
5052 (get_output_file_name): Ditto.
5054 * gengtype-lex.l (yybegin): Use input_file.
5056 * gengtype-parse.c (parse_error): Use input_file.
5058 2010-11-08 Xinliang David Li <davidxl@google.com>
5060 PR tree-optimization/46316
5061 * tree-vrp.c (adjust_range_with_scev): Check double_int overflow.
5062 * double-int.h (double_int_mul_with_sign): New function.
5063 * double-int.c (double_int_mul_with_sign): New function.
5065 2010-11-08 Paul Koning <ni1d@arrl.net>
5067 * config/pdp11/pdp11.md (lshrsi3, lshrhi3): Fix wrong code.
5069 2010-11-08 Paul Koning <ni1d@arrl.net>
5071 * config/pdp11/pdp11.md (negsi2): Fix wrong code.
5073 2010-11-08 Paul Koning <ni1d@arrl.net>
5075 * config/pdp11/pdp11.c (pdp11_assemble_integer): Mask byte values
5078 2010-11-08 Michael Meissner <meissner@linux.vnet.ibm.com>
5081 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
5082 turn on ISA 2.04 rounding instructions for power5.
5084 * config/rs6000/rs6000.md (friz): Friz is an ISA 2.04 instruciton,
5088 * config/rs6000/darwin.md (movdi_low): Allow DImode values to be
5090 (movdi_low_st): Ditto.
5092 2010-11-08 Joern Rennecke <amylaar@spamcop.net>
5093 Richard Henderson <rth@redhat.com>
5096 * config/frv/frv.md (attribute cpu): Cast value to enum attr_cpu.
5097 (attribute acc_group): Cast value to enum attr_acc_group.
5098 (*movdi_nodouble+6): Use gen_int_mode.
5099 * config/frv/frv-protos.h (frv_trampoline_size): Declare no matter
5100 if RTX_CODE is defined or not.
5101 * config/frv/frv.c (enum frv_io_type): New enum, broken out of
5103 (frv_handle_option): Mark parameter value with ATTRIBUTE_UNUSED.
5104 (frv_frame_access, frv_expand_prologue): Remove unused variables.
5105 (frv_expand_block_clear): Likewise.
5106 (frv_trampoline_init): Use LCT_NORMAL.
5107 (struct frv_packet_group): New struct, broken out of type of
5109 (frv_start_packet, frv_reorder_packet): Initialize group to GROUP_I,
5110 use cast in loop counter increment.
5111 (frv_extract_membar): Cast HOST_WIDE_INT to enum frv_io_type before
5112 assigning to io->type.
5113 (bdesc_set): Use rtx_code UNKNOWN in initializer.
5114 (bdesc_1arg, bdesc_2arg, bdesc_int_void2arg): Likewise.
5115 (bdesc_prefetches, bdesc_cut, bdesc_2argimm, bdesc_void2arg): Likewise.
5116 (bdesc_void3arg, bdesc_voidacc, bdesc_loads, bdesc_stores): Likewise.
5117 (frv_read_argument): Use expand_normal.
5120 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Call
5121 lm32_legitimate_constant_p.
5122 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
5123 * config/lm32/lm32.c (gen_int_relational): Make new block for
5124 LE / LT / LEU / LTU case. Declare variables at start of block.
5125 (lm32_block_move_inline): Use XALLOCAVEC.
5127 2010-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5129 * config/i386/i386.c (ix86_function_arg_boundary): Fix warning message.
5131 2010-11-08 Basile Starynkevitch <basile@starynkevitch.net>
5133 * gengtype (get_output_file_for_structure): Ensure type is union
5135 (write_splay_tree_allocator_def): Use
5136 get_output_file_with_visibility.
5138 2010-11-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5140 * config/s390/s390.c (s390_handle_arch_option): Set type and flags
5141 to defined values in case of an error.
5142 (s390_option_override): Skip further processing if the -march
5143 parameter wasn't recognized.
5145 2010-11-08 Joern Rennecke <amylaar@spamcop.net>
5147 * caller-save.c (reg_save_code): After HARD_REGNO_MODE_OK check fails,
5148 assert that REG is a hard register number before using it as an index.
5151 * config/i386/i386.c (ix86_expand_split_stack_prologue):
5152 Avoid warnings when HOST_WIDE_INT is 32 bit.
5154 2010-11-08 Eric Botcazou <ebotcazou@adacore.com>
5157 * config/sparc/sparc.c (TARGET_PROMOTE_PROTOTYPES): Delete.
5158 (sparc_promote_prototypes): Likewise.
5159 (sparc_promote_function_mode): Promote in 32-bit mode as well.
5160 (sparc_return_in_memory): Remove superfluous parentheses.
5161 (sparc_struct_value_rtx): Fix long lines.
5162 (sparc_function_value_1): Promote in 32-bit mode as well.
5164 2010-11-08 Andrey Belevantsev <abel@ispras.ru>
5166 PR rtl-optimization/45352
5167 * sel-sched.c (find_best_expr): Do not set pneed_stall when
5168 the variable_issue hook is not implemented.
5169 (fill_insns): Remove dead variable stall_iterations.
5170 (init_seqno_1): Force EBB start for resetting sched cycles on any
5171 successor blocks of the rescheduled region.
5172 (sel_sched_region_1): Use bitmap_bit_p instead of bitmap_clear_bit.
5173 (reset_sched_cycles_in_current_ebb): Add debug printing.
5174 New variable issued_insns. Advance state when we have issued
5177 2010-11-08 Basile Starynkevitch <basile@starynkevitch.net>
5179 * gengtype (main): Get here's position using POS_HERE macro for
5182 2010-11-07 Ian Lance Taylor <iant@google.com>
5185 * config/i386/i386.c (split_stack_fn_large): New static variable.
5186 (ix86_expand_split_stack_prologue): Handle large model.
5188 2010-11-07 Andreas Schwab <schwab@linux-m68k.org>
5190 * config/m68k/m68k.c (m68k_delegitimize_address): Update to handle
5191 all possible addressing modes.
5193 2010-11-07 Uros Bizjak <ubizjak@gmail.com>
5195 PR tree-optimization/46346
5196 * tree-ssa-forwprop.c (rhs_to_tree): Handle GIMPLE_TERNARY_RHS.
5198 2010-11-07 Richard Sandiford <rdsandiford@googlemail.com>
5200 * config/mips/mips.c: Revert previous patch.
5201 * config/mips/mips.md: Likewise.
5203 2010-11-07 Richard Sandiford <rdsandiford@googlemail.com>
5205 * config/mips/mips.c (mips_rtx_costs): Handle FMA.
5206 * config/mips/mips.md (*madd4<mode>, *madd3<mode>, *msub4<mode>)
5207 (*msub3<mode>, *nmadd4<mode>_fastmath, *nmadd3<mode>_fastmath)
5208 (*nmsub4<mode>_fastmath, *nmsub3<mode>_fastmath): Delete.
5209 (*nmadd4<mode>, *nmadd3<mode>. *nmsub4<mode>, *nmsub3<mode>): Redefine
5211 (fma<mode>4, *fma<mode>4_madd3, *fma<mode>4_madd4): New patterns.
5212 (fms<mode>4, *fms<mode>4_msub3, *fms<mode>4_msub4): Likewise.
5213 (fnms<mode>4, *fnms<mode>4_nmadd3, *fnms<mode>4_nmadd4): Likewise.
5214 (fnma<mode>4, *fnma<mode>4_nmsub3, *fnma<mode>4_nmsub4): Likewise.
5216 2010-11-06 Simon Martin <simartin@users.sourceforge.net>
5219 * c-decl.c (lookup_label): Labels can only be referenced in a
5221 (store_parm_decls_oldstyle): Skip erroneous parameters.
5223 2010-11-06 Anatoly Sokolov <aesok@post.ru>
5225 * config/fr30/fr30.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
5226 LIBCALL_VALUE): Remove macros.
5227 * config/fr30/fr30.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
5228 TARGET_FUNCTION_VALUE_REGNO_P): Define.
5229 (fr30_function_value_regno_p, fr30_function_value,
5230 fr30_libcall_value): New functions.
5232 2010-11-06 Joern Rennecke <amylaar@spamcop.net>
5235 * target.def (generate_internal_label): New asm_out hook.
5236 * output.h (default_generate_internal_label): Declare.
5237 * varasm.c (default_generate_internal_label): Define.
5239 2010-11-06 Iain Sandoe <iains@gcc.gnu.org>
5242 * doc/extend.tex (format): Document NSString extension.
5243 (format_arg): Likewise.
5244 (Darwin Format Checks): New section.
5245 * doc/tm.texi: Document string object hooks (generated).
5246 * doc/tm.texi.in (TARGET_OBJC_CONSTRUCT_STRING_OBJECT) Rename.
5247 (TARGET_STRING_OBJECT_REF_TYPE_P): New.
5248 (TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): New.
5249 * target.def (objc_construct_string_object): Rename, amend
5251 (string_object_ref_type_p): New hook.
5252 (check_string_object_format_arg): New hook.
5253 * c-parser.c (c_parser_attributes): Allow objective-c class names as
5254 attribute identifiers.
5255 * config/darwin-c.c (darwin_cfstring_ref_p): New.
5256 (darwin_check_cfstring_format_arg): New.
5257 (darwin_additional_format_types): New.
5258 * config/darwin-protos.h (darwin_cfstring_ref_p) New.
5259 (darwin_check_cfstring_format_arg): New.
5260 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT) Renamed.
5261 (TARGET_STRING_OBJECT_REF_TYPE_P): New.
5262 (TARGET_N_FORMAT_TYPES): New.
5263 (TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): New.
5265 2010-11-06 Eric Botcazou <ebotcazou@adacore.com>
5266 Pascal Obry <obry@adacore.com>
5268 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Redefine. Use 33
5269 in 64-bit mode and 17 otherwise.
5271 2010-11-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5274 * var-tracking.c (emit_note_insn_var_location): Make sure that
5275 call related var location notes come before the normal ones.
5277 2010-11-05 H.J. Lu <hongjiu.lu@intel.com>
5280 * config/i386/i386.c (ix86_delegitimize_address): Fix a typo
5283 2010-11-05 Ian Lance Taylor <iant@google.com>
5285 * explow.c (allocate_dynamic_stack_space): Check MALLOC_ABI_ALIGNMENT.
5287 2010-11-05 Jakub Jelinek <jakub@redhat.com>
5290 * c-decl.c (warn_cxx_compat_finish_struct): Don't call
5291 pointer_set_contains if DECL_NAME is NULL.
5293 2010-11-05 Ian Lance Taylor <iant@google.com>
5296 * explow.c (allocate_dynamic_stack_space): If flag_split_stack,
5297 request enough additional space for alignment, and force alignment.
5299 2010-11-05 Kai Tietz <kai.tietz@onevision.com>
5301 * config/i386/i386.c (legitimate_pic_address_disp_p):
5302 Handle UNSPEC_PCREL.
5303 (ix86_legitimate_address_p): Likewise.
5304 (legitimize_pic_address): Likewise.
5305 (output_pic_addr_const): Likewise.
5306 (ix86_delegitimize_address): Likewise.
5307 (ix86_find_base_term): Likewise.
5308 (memory_address_length): Likewise.
5309 (x86_output_mi_thunk): Handle special case x64
5310 for non local binding.
5311 * config/i386/i386.md (UNSPEC_PCREL): New.
5312 * config/i386/winnt.c (i386_pe_binds_local_p):
5313 Allow weak symbol for x64 windows with non-local binding.
5315 2010-11-05 Jakub Jelinek <jakub@redhat.com>
5318 * expr.c (expand_expr_real_1) <case MEM_REF>: Use EXPAND_SUM
5319 instead of EXPAND_NORMAL for base expansion.
5321 2010-11-05 Uros Bizjak <ubizjak@gmail.com>
5323 * config.gcc: Support --with-fpmath=avx for x86.
5324 * config/i386/avxmath.h: New.
5325 * doc/install.texi (--with-fpmath=): Document --with-fpmath=avx.
5327 2010-11-05 Ian Lance Taylor <iant@google.com>
5329 * tree.h (struct tree_type): Don't use descbits in GTY annotation.
5330 * gengtype.c (walk_type): Don't recognize descbits option.
5332 2010-11-05 Joseph Myers <joseph@codesourcery.com>
5334 * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG,
5335 WORD_SWITCH_TAKES_ARG): Remove.
5336 * doc/options.texi (Args): Document.
5337 * doc/tm.texi.in (WORD_SWITCH_TAKES_ARG): Remove.
5338 * doc/tm.texi: Regenerate.
5339 * opt-functions.awk (switch_flags): Handle Args.
5340 * opts-common.c: Update comment on tm.h include.
5341 (decode_cmdline_option): Handle options with multiple arguments.
5342 Don't check WORD_SWITCH_TAKES_ARG for unknown options.
5343 * opts.h (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK): Define.
5344 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
5345 CL_COMMON): Update values.
5346 * system.h (WORD_SWITCH_TAKES_ARG): Poison.
5347 * config/darwin.h (WORD_SWITCH_TAKES_ARG): Remove.
5348 * config/darwin.opt (Zsegaddr, sectalign, sectcreate,
5349 sectobjectsymbols, sectorder, segcreate, segprot): New.
5351 2010-11-05 H.J. Lu <hongjiu.lu@intel.com>
5352 Uros Bizjak <ubizjak@gmail.com>
5354 * config/i386/i386.c (ix86_expand_move): Set use_avx256_p if
5355 256bit AVX register is used.
5356 (ix86_expand_vector_move_misalign): Likewise.
5357 (ix86_expand_vector_move): Replace use_avx256_p with
5358 VALID_AVX256_REG_MODE.
5360 2010-11-05 Joern Rennecke <amylaar@spamcop.net>
5363 * config/pdp11/t-pdp11 (dwarf2out.o, java/constants.o): Undo last
5364 change. Set $@-warn.o to -Wno-error.
5367 * expr.c (emit_push_insn): Cast value of PUSH_ROUNDING before
5368 comparing it to a signed value.
5371 * expr.c (can_store_by_pieces): Add ATTRIBUTE_UNUSED to cst.
5373 * haifa-sched.c (initiate_bb_reg_pressure_info): Add ATTRIBUTE_UNUSED
5377 * config/m32c/m32c.c (m32_function_arg): Rename declaration to...
5378 (m32c_function_arg). Add comma between arguments two and three.
5379 (m32c_promote_prototypes): Remove declaration.
5380 (current_function_special_page_vector): Likewise.
5381 (m32c_regno_reg_class): Change return type to enum reg_class.
5382 (m32c_pushm_popm): Use add_reg_note.
5383 (m32c_push_rounding): Change return type to unsigned int.
5384 (m32c_legitimize_reload_address): Cast argument 11 to push_reload to
5386 (m32c_insert_attributes): Constify variable name.
5387 (m32c_output_aligned_common): Add ATTRIBUTE_UNUSED to argument decl.
5388 (m32c_prepare_shift): Remove variable lref.
5389 (m32c_expand_movcc): Remove variable cmp.
5390 (m32c_expand_insv): Fix check of op0 rtx_code to use GET_CODE.
5391 (m32c_compare_redundant): Remove variable op2.
5392 * config/m32c/m32c-pragma.c ("c-family/c-common.h"): Include.
5393 (m32c_pragma_memregs): Assign the number to target_memregs.
5394 (m32c_pragma_address): Remove variable var_str.
5395 * config/m32c/m32c.h (REG_CLASS_FROM_CONSTRAINT): Case value to
5397 (LIMIT_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Likewise.
5398 * config/m32c/bitops.md (andsi3): Add default case to switch.
5399 (iorsi3, xorsi3): Likewise.
5400 * config/m32c/addsub.md (addsi3_1, subsi3_1): Likewise.
5401 * config/m32c/jump.md (call, call_value): Likewise.
5402 * config/m32c/m32c-protos.h (m32c_push_rounding): Update prototype.
5403 (m32c_regno_reg_class): Likewise.
5404 (current_function_special_page_vector): Declare.
5406 2010-11-05 Jakub Jelinek <jakub@redhat.com>
5408 * cfgexpand.c (expand_debug_expr): Handle MEM_REF with non-zero offset.
5410 PR tree-optimization/46099
5411 * tree-parloops.c (take_address_of): Add GSI argument. Return NULL
5412 if it is NULL and uid wasn't found in the hash table. Just fold the
5413 result if it is NULL otherwise. Insert other potentially needed
5414 stmts right before current stmt instead of on the entry edge.
5415 (struct elv_data): Add gsi and reset fields.
5416 (eliminate_local_variables_1): Adjust caller. If take_address_of
5417 failed for debug stmt, set dta->reset and return.
5418 (eliminate_local_variables_stmt): Change STMT argument for GSI,
5419 pass GSI through to the callback, handle resetting of debug stmts.
5420 (eliminate_local_variables): Adjust caller. Process debug stmts
5424 * gimplify.c (gimplify_asm_expr): If a "m" input is a
5425 {pre,post}{in,de}crement, fail.
5428 * tree-ssa-operands.c (get_expr_operands): Handle FMA_EXPR.
5429 * tree-pretty-print.c (dump_generic_node): Likewise.
5430 (op_code_prio): Likewise.
5431 * cfgexpand.c (expand_debug_expr): Likewise.
5433 2010-11-04 Paul Koning <ni1d@arrl.net>
5435 * doc/md.texi (Machine Constraints): Correct formatting in PDP-11
5438 2010-11-04 Chao-ying Fu <fu@mips.com>
5440 * configure.ac: Test assembler support for DSP Rev1 mult.
5441 * configure: Regenerate.
5442 * config.in: Regenerate.
5443 * config/mips/mips.h (ISA_HAS_DSP_MULT): New define.
5444 * config/mips/mips.c (CODE_FOR_mips_mult): New define.
5445 (CODE_FOR_mips_multu): New define.
5446 (mips_builtins): Move madd, maddu, msub, msubu, mult, multu from
5448 (mips_mulsidi3_gen_fn): Test (TARGET_FIX_R4000 && !ISA_HAS_DSP).
5449 Delete returns when ISA_HAS_DSPR2 because the old patterns are deleted.
5450 * config/mips/mips-dsp.md (mips_madd<u>, mips_msub<u>):
5451 New define_expand patterns.
5452 * config/mips/constraints.md (ka): Update the constraint to test
5453 ISA_HAS_DSP_MULT instead of ISA_HAS_DSPR2.
5454 * config/mips/mips-dspr2.md (mips_madd<u>, mips_msub<u>, mips_mult,
5455 mips_multu): Delete.
5456 * config/mips/mips.md (<u>mulsidi3_32bit): Add comments.
5457 Change target constraint to "ka".
5458 Use (!TARGET_FIX_R4000 || ISA_HAS_DSP), instead of
5459 (!TARGET_FIX_R4000 && !ISA_HAS_DSPR2).
5460 Emit the accumulator destination when ISA_HAS_DSP_MULT.
5461 (<u>msubsidi4): Add comments. Test ISA_HAS_DSP.
5462 Emit the accumulator destination when ISA_HAS_DSP_MULT.
5463 (<u>maddsidi4): Likewise.
5464 * doc/extend.texi (MIPS DSP Built-in Functions): Move madd, maddu,
5465 msub, msubu, mult, multu built-in functions from DSP r2 to DSP r1.
5467 2010-11-04 Paul Koning <ni1d@arrl.net>
5469 * doc/md.texi (Machine Constraints): Add PDP-11 constraints.
5471 2010-11-04 Paul Koning <ni1d@arrl.net>
5473 * doc/invoke.texi (PDP-11 Options): Delete -msplit, -mno-split.
5475 2010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
5477 Fixed using the Objective-C 2.0 dot-syntax with class names.
5478 * c-parser.c (c_parser_next_token_starts_declspecs): In
5479 Objective-C, detect Objective-C 2.0 dot-syntax with a class name.
5480 (c_parser_next_token_starts_declaration): Same.
5481 (c_parser_postfix_expression): Parse the Objective-C 2.0
5482 dot-syntax with a class name.
5484 2010-11-04 Pat Haugen <pthaugen@us.ibm.com>
5486 * final.c (compute_alignments): Compute/free loop info all the time.
5487 * config/rs6000/rs6000.h (LOOP_ALIGN): Define.
5488 * config/rs6000/rs6000-protos.h (rs6000_loop_align): Declare.
5489 * config/rs6000/t-rs6000 (rs6000.o): Add cfgloop.h.
5490 * config/rs6000/rs6000.c (cfgloop.h): Include.
5491 (can_override_loop_align): New.
5492 (rs6000_option_override_internal): Set it.
5493 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define target hook.
5494 (rs6000_loop_align): New function.
5495 (rs6000_loop_align_max_skip): Likewise.
5497 2010-11-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5500 * collect2.c (main): Print --help output to stdout. Do not
5501 exit right away, so ld --help is appended. Add empty lines
5502 to separate output suitably.
5504 2010-11-04 Jakub Jelinek <jakub@redhat.com>
5506 PR tree-optimization/46233
5507 * ipa-pure-const.c (local_pure_const): Do noreturn discovery
5508 after calling analyze_function, not before.
5511 * config/rs6000/rs6000.c (rs6000_va_start): Use build_simple_mem_ref
5512 instead of build_va_arg_indirect_ref.
5513 * config/spu/spu.c (spu_va_start): Likewise.
5514 * config/s390/s390.c (s390_va_start): Likewise.
5516 2010-11-03 Uros Bizjak <ubizjak@gmail.com>
5519 * lower-subreg.c (simplify_subreg_concatn): For VOIDmode elements,
5520 if the innermode is not vector mode, determine the mode of a subreg
5521 by using mode_for_size of inner_size.
5523 2010-11-04 Richard Guenther <rguenther@suse.de>
5525 PR rtl-optimization/46183
5526 * gcse.c (execute_rtl_cprop): Cleanup the CFG if something changed.
5527 (execute_rtl_pre): Likewise.
5528 (execute_rtl_hoist): Likewise.
5530 2010-11-04 Richard Guenther <rguenther@suse.de>
5532 PR tree-optimization/46068
5533 * ipa-split.c (consider_split): Remove gcc_unreachable.
5535 2010-11-04 Richard Guenther <rguenther@suse.de>
5537 * tree-nested.c (build_addr): Use build_fold_addr_expr.
5539 2010-11-04 Richard Guenther <rguenther@suse.de>
5541 PR tree-optimization/45991
5542 * gimplify.c (force_gimple_operand_1): Use the provded test
5543 function in the initial test.
5545 2010-11-04 Jeff Law <law@redhat.com>
5547 * ira.c (validate_equiv_mem): Remove code to avoid invalidation
5548 of readonly memory equivalances for const/pure calls.
5550 2010-11-04 Richard Guenther <rguenther@suse.de>
5552 PR tree-optimization/45733
5553 * tree-vect-stmts.c (reverse_vec_elements): Honor the
5554 permute builtins function return type.
5556 2010-11-04 Joern Rennecke <amylaar@spamcop.net>
5559 * emit-rtl.c (gen_rtx_REG): Before using PIC_OFFSET_TABLE_REGNUM
5560 as an index, check it is not INVALID_REGNUM.
5563 * ifcvt.c (noce_emit_cmove): Add ATTRIBUTE_UNUSED to target and
5565 * reload1.c (set_reload_reg): Add ATTRIBUTE_UNUSED to regno.
5568 * function.c (thread_prologue_and_epilogue_insns): Add
5569 ATTRIBUTE_UNUSED to seq, epilogue_end and entry_edge.
5572 * varasm.c (asm_output_bss): Add ATTRIBUTE_UNUSED to function.
5575 * config/pdp11/pdp11.c: (pdp11_secondary_reload): Now static.
5576 (pdp11_preferred_reload_class): Rename class to rclass.
5577 (pdp11_preferred_output_reload_class): Likewise.
5578 * config/pdp11/t-pdp11 (dwarf2out.o): Add -Wno-error=type-limits to
5580 (java/constants.o): Add -Wno-error to ALL_COMPILERFLAGS.
5583 * genopinit.c (main) [FIXUNS_TRUNC_LIKE_FIX_TRUNC]: Cast
5584 iteration variables to enum machine_mode.
5587 * config/h8300/h8300.c: Include df.h.
5588 (push, pop): Use add_reg_note.
5589 (compute_plussi_cc, compute_logical_op_cc): Return enum attr_c.
5590 (compute_a_shift_cc): Likewise.
5591 (expand_a_shift): Argument code has type enum rtx_code.
5592 (struct shift_insn): Member cc_valid has type enum attr_cc.
5593 (struct shift_info) <cc_inline, cc_special>: Likewise.
5595 * config/h8300/h8300-protos.h (compute_plussi_cc): Update prototype.
5596 (compute_a_shift_cc, compute_logical_op_cc, expand_a_shift): Likewise.
5598 2010-11-04 Ira Rosen <irar@il.ibm.com>
5600 PR tree-optimization/46213
5601 * tree-vect-loop.c (vect_is_simple_reduction_1): Handle
5602 MINUS_EXPR only if the first operand is reduction operand.
5604 2010-11-04 Richard Guenther <rguenther@suse.de>
5605 Richard Henderson <rth@redhat.com>
5607 * tree.def (FMA_EXPR): New tree code.
5608 * expr.c (expand_expr_real_2): Add FMA_EXPR expansion code.
5609 * gimple.c (gimple_rhs_class_table): FMA_EXPR is a GIMPLE_TERNARY_RHS.
5610 * tree-cfg.c (verify_gimple_assign_ternary): Verify FMA_EXPR types.
5611 * tree-inline.c (estimate_operator_cost): Handle FMA_EXPR.
5612 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
5613 * tree-ssa-math-opts.c (convert_mult_to_fma): New function.
5614 (execute_optimize_widening_mul): Call it. Reorganize to allow
5615 dead stmt removal. Move TODO flags ...
5616 (pass_optimize_widening_mul): ... here.
5617 * flag-types.h (enum fp_contract_mode): New enum.
5618 * common.opt (flag_fp_contract_mode): New variable.
5619 (-ffp-contract): New option.
5620 * opts.c (common_handle_option): Handle it.
5621 * doc/invoke.texi (-ffp-contract): Document.
5622 * tree.h (fold_fma): Declare.
5623 * builtins.c (fold_fma): New function.
5624 (fold_builtin_fma): Likewise.
5625 (fold_builtin_3): Call it for fma.
5626 * fold-const.c (fold_ternary_loc): Fold FMA_EXPR.
5627 * optabs.c (optab_for_tree_code): Handle FMA_EXPR.
5628 * config/i386/sse.md (fms<mode>4, fnma<mode>, fnms<mode>4):
5630 * doc/md.texi (fms<mode>4, fnma<mode>, fnms<mode>4): Document new
5632 * genopinit.c (optabs): Initialize fms_optab, fnma_optab and fnms_optab.
5633 * optabs.h (enum optab_index): Add OTI_fms, OTI_fnma and OTI_fnms.
5634 (fms_optab, fnma_optab, fnms_optab): New defines.
5635 * gimplify.c (gimplify_expr): Handle binary truth expressions
5636 explicitly. Handle FMA_EXPR.
5637 * tree-vect-stmts.c (vectorizable_operation): Handle ternary
5640 2010-11-04 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
5641 Richard Guenther <rguenther@suse.de>
5643 * passes.c (init_optimization_passes): Move veclower after SSA.
5644 * tree-vect-generic.c (uniform_vector_p): New function.
5645 (expand_vector_operations_1): Handle conversion.
5646 (pass_lower_vector): Update SSA form.
5648 2010-11-04 Iain Sandoe <iains@gcc.gnu.org>
5650 * configure.ac: Filter -mdynamic-no-pic from CFLAGS when testing for
5651 plugin capabilities.
5652 * configure: Regenerate.
5654 2010-11-03 Xinliang David Li <davidxl@google.com>
5657 * tree-ssa-loop-ivopts.c (get_computation_cost_at):
5658 Adjust cbase if the use stmt is after iv update.
5660 2010-11-03 Kaz Kojima <kkojima@gcc.gnu.org>
5662 * config.gcc (sh64*) <tm_file>: Add newlib-stdint.h for newlib targets.
5664 2010-11-03 Kaz Kojima <kkojima@gcc.gnu.org>
5666 * config/sh/sh.c (sh_expand_prologue): Remove unnecessary
5667 comment. Pass true to the last argument of output_stack_adjust.
5669 2010-11-03 H.J. Lu <hongjiu.lu@intel.com>
5672 * config/i386/i386.c (ix86_expand_vector_move): Set use_avx256_p
5673 if 256bit AVX register is used.
5675 2010-11-03 Michael Meissner <meissner@linux.vnet.ibm.com>
5677 * config/rs6000/rs6000.c (rs6000_emit_minmax): Add support to use
5678 xsmindp/xsmaxdp on VSX for single precision min/max.
5679 * config/rs6000/vsx.md (vsx_smaxsf3): Ditto.
5680 (vsx_sminsf3): Ditto.
5682 2010-11-03 Eric Botcazou <ebotcazou@adacore.com>
5684 * combine.c (try_combine): Fix formatting issues, improve comments and
5687 2010-11-03 Eric Botcazou <ebotcazou@adacore.com>
5689 * tree-tailcall.c (find_tail_calls): Convert the operands to the type
5690 of the result before building binary expressions.
5692 2010-11-03 H.J. Lu <hongjiu.lu@intel.com>
5694 PR rtl-optimization/45865
5695 * Makefile.in (df-problems.o): Revert revision 164552.
5696 * basic-block.h (enum bb_flags): Likewise.
5697 * cfgcleanup.c (block_was_dirty): Likewise.
5698 (try_forward_edges): Likewise.
5699 (try_crossjump_bb): Likewise.
5700 (try_head_merge_bb): Likewise.
5701 (try_optimize_cfg): Likewise.
5702 (cleanup_cfg): Likewise.
5703 * df-core.c (df_set_bb_dirty): Likewise.
5704 * df-problems.c: Likewise.
5705 (df_simulate_find_uses): Likewise.
5706 (MEMREF_NORMAL, MEMREF_VOLATILE): Likewise.
5707 (find_memory, find_memory_store): Likewise.
5708 (can_move_insns_across): Likewise.
5709 * df.h (can_move_insns_across): Likewise.
5710 * ifcvt.c (find_memory): Likewise.
5711 (dead_or_predicable): Likewise.
5713 2010-11-03 Richard Guenther <rguenther@suse.de>
5716 * predict.c (strip_predict_hints): Simply DCE builtin expect if
5717 the result is unused.
5719 2010-11-03 Jakub Jelinek <jakub@redhat.com>
5721 PR tree-optimization/46009
5722 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Call
5723 cond_if_else_store_replacement if bb1 and bb2 have the same
5725 (cond_store_replacement): Use gimple_assign_single_p, don't
5726 check if rhs is SSA_NAME or invariant. Call release_defs for
5728 (cond_if_else_store_replacement): New function.
5730 2010-11-03 Richard Guenther <rguenther@suse.de>
5732 * opts.c (finish_options): Properly check for all WHOPR
5733 flags before complaining about -flto-partition.
5735 2010-11-04 Alan Modra <amodra@gmail.com>
5737 * config/rs6000/rs6000.c (rs6000_pic_labelno): Make static.
5738 (rs6000_emit_load_toc_table): Don't use rs6000_pic_labelno when
5740 * config/rs6000/sysv4.h (rs6000_pic_labelno): Don't declare.
5741 * config/rs6000/rs6000.md (load_toc_v4_PIC_3b): Use "b" constraint
5742 on input, "r" on output.
5744 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
5746 Implemented -fobjc-std=objc1 flag.
5747 * doc/invoke.texi (Option Summary): Document -fobjc-std=objc1
5749 * doc/standards.texi (Standards): Updated the section on
5750 Objective-C; mention support for Objective-C 2.0 features and the
5751 new -fstd-objc=objc1 flag to disable them.
5753 2010-11-03 Richard Guenther <rguenther@suse.de>
5756 * dwarf2out.c (scope_die_for): Properly detect global scope.
5758 2010-11-03 Richard Guenther <rguenther@suse.de>
5760 PR tree-optimization/46190
5761 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
5762 Properly compute peel iterations.
5764 2010-11-03 Richard Guenther <rguenther@suse.de>
5766 PR tree-optimization/46286
5767 * tree-ssa-structalias.c (get_constraint_for_1): Avoid referencing
5768 re-allocated vector data.
5770 2010-11-03 H.J. Lu <hongjiu.lu@intel.com>
5773 * config/i386/i386.c (ix86_expand_call): Conditionally decorate
5774 calls with UNSPEC_CALL_NEEDS_VZEROUPPER unspec before reload
5777 2010-11-03 Richard Guenther <rguenther@suse.de>
5779 PR tree-optimization/46217
5780 * tree-ssa.c (non_rewritable_mem_ref_base): Check if volatile
5782 (execute_update_addresses_taken): Likewise.
5784 2010-11-03 Joern Rennecke <joern.rennecke@embecosm.com>
5787 * targhooks.c (targhook_words_big_endian): New function.
5788 (targhook_float_words_big_endian): Likewise.
5789 * targhooks.h (targhook_words_big_endian): Declare.
5790 (targhook_float_words_big_endian): Likewise.
5791 * target.def (words_big_endian, float_words_big_endian): New hooks.
5793 2010-11-03 Jakub Jelinek <jakub@redhat.com>
5795 PR tree-optimization/46165
5796 * tree-ssa-pre.c (eliminate): Return TODO_cleanup_cfg if changing
5797 a normal call into noreturn call.
5799 2010-11-03 Richard Guenther <rguenther@suse.de>
5802 * builtins.c (expand_builtin_sincos): Properly build MEM_REFs,
5805 2010-11-03 Jakub Jelinek <jakub@redhat.com>
5807 PR tree-optimization/46107
5808 * cfgloopmanip.c (loop_version): Set irred_flag back into entry->flags
5809 if cfg_hook_duplicate_loop_to_header_edge failed.
5811 2010-11-03 Ian Lance Taylor <iant@google.com>
5814 * config.gcc: Don't set lto_binary_reader.
5815 * doc/install.texi (Prerequisites): Remove libelf paragraphs.
5816 (Configuration): Mention --disable-lto. Remove --with-libelf
5819 2010-11-03 Jakub Jelinek <jakub@redhat.com>
5822 * reload1.c (delete_dead_insn): Use prev_active_insn instead of
5824 * gcse.c (insert_insn_end_basic_block): Likewise.
5826 PR rtl-optimization/46034
5827 PR rtl-optimization/46212
5828 PR rtl-optimization/46248
5829 * combine.c (try_combine): If added_sets_2 where i0dest_in_i0src
5830 and i0 feeds i1 and i1 feeds i2 or i0 feeds i2, make a copy of i1src
5831 before i0dest -> i0src substitution and pass 1 instead of 0 as last
5832 argument to subst on i2pat.
5834 2010-11-02 Ian Lance Taylor <iant@google.com>
5836 * configure.ac: Use AC_SYS_LARGEFILE.
5837 * configure: Rebuild.
5838 * config.in: Rebuild.
5840 2010-11-02 Nathan Froyd <froydnj@codesourcery.com>
5842 * builtins.c (fold_builtin_signbit): Use build_zero_cst instead of
5844 * c-typeck.c (build_function_call_vec): Likewise.
5845 * cfgexpand.c (expand_debug_expr): Likewise.
5846 * cgraphunit.c (assemble_thunk): Likewise.
5847 * config/sparc/sparc.c (sparc_fold_builtin): Likewise.
5848 * fold-const.c (fold_unary_loc, fold_mult_zconjz): Likewise.
5849 (fold_binary_loc, fold_ternary_loc): Likewise.
5850 * gimple-fold.c (get_symbol_constant_value): Likewise.
5851 * gimple-low.c (lower_builtin_setjmp): Likewise.
5852 * gimple.c (gimple_cond_get_ops_from_tree): Likewise.
5853 * gimplify.c (gimplify_init_constructor): Likewise.
5854 * lambda.h (build_linear_expr): Likewise.
5855 * omp-low.c (omp_reduction_init): Likewise.
5856 * tree-inline.c (remap_ssa_name): Likewise.
5857 * tree-object-size.c (compute_object_sizes): Likewise.
5858 * tree-sra.c (init_subtree_with_zero): Likewise.
5859 (sra_ipa_modify_assign): Likewise.
5860 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Likewise.
5861 * tree-ssa-reassoc.c (eliminate_duplicate_pair): Likewise.
5862 (eliminate_plus_minus_pair, eliminate_not_pairs): Likewise.
5863 (undistribute_ops_list): Likewise.
5864 * tree-ssa-sccvn.c (vn_reference_lookup_3): Likewise.
5865 * tree-vect-stmts.c (vectorizable_call): Likewise.
5866 * tree.c (build_vector_from_ctor, build_one_cst): Likewise.
5867 (build_zero_cst): Handle more cases directly. Update comment.
5869 2010-11-02 H.J. Lu <hongjiu.lu@intel.com>
5871 * config/i386/i386-protos.h (ix86_split_call_pop_vzeroupper): Removed.
5872 * config/i386/i386.c (ix86_split_call_pop_vzeroupper): Likewise.
5874 * config/i386/i386.md (*call_pop_0_vzeroupper): Use parallel
5875 and call ix86_split_call_vzeroupper instead of
5876 ix86_split_call_pop_vzeroupper.
5877 (*call_pop_1_vzeroupper): Likewise.
5878 (*sibcall_pop_1_vzeroupper): Likewise.
5879 (*call_value_pop_0_vzeroupper): Likewise.
5880 (*call_value_pop_1_vzeroupper): Likewise.
5881 (*sibcall_value_pop_1_vzeroupper): Likewise.
5883 2010-11-02 H.J. Lu <hongjiu.lu@intel.com>
5885 * config/i386/i386.md (*sibcall_1_rex64_vzeroupper): Fix a typo.
5887 2010-11-02 Eric Botcazou <ebotcazou@adacore.com>
5889 * basic-block.h (insert_insn_end_bb_new): Delete.
5890 * cfgrtl.c (insert_insn_end_bb_new): Likewise.
5892 2010-11-02 Uros Bizjak <ubizjak@gmail.com>
5893 H.J. Lu <hongjiu.lu@intel.com>
5895 * config/i386/i386-protos.h (ix86_split_call_vzeroupper): New.
5896 (ix86_split_call_pop_vzeroupper): Likewise.
5898 * config/i386/i386.c (move_or_delete_vzeroupper_2): Rewrite the loop.
5899 (ix86_expand_call): Conditionally decorate calls with
5900 UNSPEC_CALL_NEEDS_VZEROUPPER unspec.
5901 (ix86_split_call_vzeroupper): New.
5902 (ix86_split_call_pop_vzeroupper): Likewise.
5904 * config/i386/i386.md (UNSPEC_CALL_NEEDS_VZEROUPPER): New.
5905 (*call_pop_0_vzeroupper): New insn_and_split pattern.
5906 (*call_pop_1_vzeroupper): Likewise.
5907 (*sibcall_pop_1_vzeroupper): Likewise.
5908 (*call_0_vzeroupper): Likewise.
5909 (*call_1_vzeroupper): Likewise.
5910 (*sibcall_1_vzeroupper): Likewise.
5911 (*call_1_rex64_vzeroupper): Likewise.
5912 (*call_1_rex64_ms_sysv_vzeroupper): Likewise.
5913 (*call_1_rex64_large_vzeroupper): Likewise.
5914 (*sibcall_1_rex64_vzeroupper): Likewise.
5915 (*call_value_pop_0_vzeroupper): Likewise.
5916 (*call_value_pop_1_vzeroupper): Likewise.
5917 (*sibcall_value_pop_1_vzeroupper): Likewise.
5918 (*call_value_0_vzeroupper): Likewise.
5919 (*call_value_0_rex64_vzeroupper): Likewise.
5920 (*call_value_0_rex64_ms_sysv_vzeroupper): Likewise.
5921 (*call_value_1_vzeroupper): Likewise.
5922 (*sibcall_value_1_vzeroupper): Likewise.
5923 (*call_value_1_rex64_vzeroupper): Likewise.
5924 (*call_value_1_rex64_ms_sysv_vzeroupper): Likewise.
5925 (*call_value_1_rex64_large_vzeroupper): Likewise.
5926 (*sibcall_value_1_rex64_vzeroupper): Likewise.
5928 2010-11-02 Ian Lance Taylor <iant@google.com>
5931 * config.gcc: Revert last patch: set lto_binary_reader.
5933 2010-11-02 Richard Guenther <rguenther@suse.de>
5935 PR tree-optimization/46149
5936 * tree-ssa-structalias.c (get_constraint_fop_1): Properly handle
5937 non-indirect MEM_REF variants.
5939 2010-11-02 Richard Guenther <rguenther@suse.de>
5941 PR tree-optimization/46216
5942 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
5943 Check if we can propagate from a POINTER_PLUS_EXPR before doing so.
5945 2010-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5947 * configure.ac (*-*-irix6*): Disable set_have_as_tls.
5948 (*-*-osf*): Likewise.
5949 * configure: Regenerate.
5951 2010-11-02 H.J. Lu <hongjiu.lu@intel.com>
5953 * config/i386/driver-i386.c (host_detect_local_cpu): Updated
5954 for Intel Core 2 and Core i7.
5956 2010-11-02 Maxim Kuvyrkov <maxim@codesourcery.com>
5958 Model decoder of Core 2/i7 for multipass scheduling.
5960 * config/i386/i386-protos.h (struct ix86_first_cycle_multipass_data_):
5961 New type to hold target-specific data for multipass scheduling.
5962 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DATA_T): Define.
5963 * config/i386/i386.c (ia32_multipass_dfa_lookahead): Update for
5965 (core2i7_secondary_decoder_max_insn_size,)
5966 (core2i7_secondary_ifetch_block_size, core2i7_ifetch_block_max_insns):
5967 New static variables.
5968 ([const_]ix86_first_cycle_multipass_data_t): New typedefs.
5969 ([_]ix86_first_cycle_multipass_data): New static variable.
5970 (core2i7_first_cycle_multipass_init, core2i7_dfa_poast_advance_cycle):
5971 Implement targetm.sched hooks.
5972 (core2i7_first_cycle_multipass_filter_ready_try): New static subroutine
5974 (core2i7_first_cycle_multipass_{begin, issue, backtrack, end, fini}):
5975 Implement new targetm.sched hooks.
5976 (ix86_sched_init_global, TARGET_SCHED_INIT_GLOBAL): Define
5977 targetm.sched hook to install multipass scheduling hooks on demand.
5979 * doc/tm.texi.in: Document new targetm.sched hooks.
5980 * doc/tm.texi: Regenerate.
5982 * haifa-sched.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DATA_T): Define.
5983 (first_cycle_multipass_data_t): New typedef.
5984 (struct choice_entry: target_data): New field.
5985 (max_issue): Add first_cycle_insn_p parameter. Call new target hooks
5986 to allow target model restrictions not represented in DFA.
5987 (choose_ready, schedule_block): Update.
5988 (sched_extend_ready_list, sched_finish_ready_list): Call new target
5989 hooks to initialize target-specific data for multipass scheduling.
5990 * sched-int.h (max_issue): Update declaration.
5991 * sel-sched.c (choose_best_insn): Update.
5992 * target.def (first_cycle_multipass_{begin, issue, backtrack},)
5993 (first_cycle_multipass_{init, fini}): Define and document new
5994 targetm.sched hooks.
5996 2010-11-02 Richard Guenther <rguenther@suse.de>
5998 PR tree-optimization/46184
5999 * tree-vect-loop.c (vectorizable_reduction): Try to obtain the
6000 input vector type from the reduction operand as well.
6002 2010-11-02 Richard Guenther <rguenther@suse.de>
6004 PR tree-optimization/46177
6005 * tree-loop-distribution.c (prop_phis): Use
6006 mark_virtual_phi_result_for_renaming.
6008 2010-11-02 Martin Jambor <mjambor@suse.cz>
6011 * tree.c (get_binfo_at_offset): Bail out on artificial
6012 fields. Identify primary bases according to their offsets.
6014 2010-11-02 Martin Jambor <mjambor@suse.cz>
6016 PR tree-optimization/45875
6017 * gimple-fold.c (get_first_base_binfo_with_virtuals): Removed.
6018 (gimple_get_relevant_ref_binfo): Detect primary bases according to
6021 2010-11-02 Ian Lance Taylor <iant@google.com>
6023 * doc/install.texi (Configuration): Note in two places that Java
6024 is not enabled by default.
6026 2010-11-02 Ian Lance Taylor <iant@google.com>
6028 * doc/install.texi (Prerequisites): Remove libelf paragraphs.
6029 (Configuration): Mention --disable-lto. Remove --with-libelf
6032 2010-11-02 Ian Lance Taylor <iant@google.com>
6034 * configure.ac: Remove elf_getshdrstrndx test. Don't substitute
6035 LTO_BINARY_READER or LTO_USE_LIBELF. Remove LIBELFLIBS and
6036 LIBELFINC. Remove HAVE_libelf.
6037 * config.gcc: Don't set lto_binary_reader.
6038 * Makefile.in (LIBELFLIBS, LIBELFINC): Remove variables.
6039 (LTO_BINARY_READER, LTO_USE_LIBELF): Remove variables.
6040 (LIBS): Remove $(LIBELFLIBS).
6041 (INCLUDES): Remove $(LIBELFINC).
6042 * configure: Rebuild.
6043 * config.in: Rebuild.
6045 2010-11-02 Nathan Froyd <froydnj@codesourcery.com>
6047 * config/microblaze/microblaze-protos.h (function_arg): Delete.
6048 (function_arg_advance): Delete.
6049 * config/microblaze/microblaze.h (FUNCTION_ARG_ADVANCE): Delete.
6050 (FUNCTION_ARG): Delete.
6051 * config/microblaze/microblaze.c (function_arg_advance): Rename to...
6052 (microblaze_function_arg_advance): ...this. Make static. Take a
6053 const_tree and a bool.
6054 (function-arg): Rename to...
6055 (microblaze_function_arg): ...this. Make static. Take a const_tree
6057 (microblaze_expand_prologue): Call targetm.calls.function_arg and
6058 targetm.calls.function_arg_advance.
6059 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6061 2010-11-02 Iain Sandoe <iains@gcc.gnu.org>
6063 Merge from FSF "apple/trunk" branch.
6065 * config/rs6000/darwin.opt (mdynamic-no-pic): move from here ...
6066 * config/darwin.opt: .. to here.
6067 (matt-stubs): New option.
6068 * config/i386/darwin.opt: Delete.
6069 * config/i386/i386.h (MACHOPIC_ATT_STUB): New.
6070 (MACHO_DYNAMIC_NO_PIC_P): New.
6071 (MACHOPIC_INDIRECT): New.
6072 (MACHOPIC_PURE): New.
6073 * config/i386/darwin.h (DARWIN_X86) Define to 1.
6074 (MACHOPIC_ATT_STUB): New.
6075 (CC1_SPEC): Do not remove mdynamic-no-pic.
6076 Move HOT_TEXT_SECTION_NAME: move to config/darwin.h
6077 UNLIKELY_EXECUTED_TEXT_SECTION_NAME: Likewise.
6078 (FUNCTION_PROFILER): Correct over-length line.
6079 (SUBTARGET_OVERRIDE_OPTIONS): New.
6080 (MACHOPIC_NL_SYMBOL_PTR_SECTION): New.
6081 * config/i386/i386.c (config/i386/i386.c): Darwin has no PLT.
6082 (legitimate_constant_p): Handle mdynamic-no-pic.
6083 (ix86_legitimate_address_p): Likewise.
6084 (ix86_legitimize_address): Likewise.
6085 (ix86_expand_move): Likewise.
6086 (machopic_output_stub): Update for ATT-style stubs and
6088 * config/darwin-protos.h (machopic_symbol_defined_p): New.
6089 * config/rs6000/darwin.h (DARWIN_PPC): Define to 1.
6090 TARGET_DYNAMIC_NO_PIC: Remove.
6091 Move HOT_TEXT_SECTION_NAME: move to config/darwin.h
6092 UNLIKELY_EXECUTED_TEXT_SECTION_NAME: Likewise.
6093 * config/rs6000/rs6000.c (darwin_rs6000_override_options):
6094 Remove handling of mdynamic-no-pic.
6095 * config/darwin.c (HAVE_lo_sum, gen_macho_high, gen_macho_low):
6097 (machopic_symbol_defined_p): Do not try to use current_function_decl
6098 when generating _get_pc thunks within stubs.
6099 (machopic_indirect_data_reference): Rework for direct conditionals
6100 rather than #ifdefs, add x86 mdynamic-no-pic
6101 (machopic_legitimize_pic_address): Update to use HAVE_lo_sum with a
6103 (darwin_override_options): Handle mdynamic-no-pic here.
6104 * config/darwin-sections.def (machopic_lazy_symbol_ptr2_section): New.
6105 (machopic_lazy_symbol_ptr3_section): New.
6106 (machopic_picsymbol_stub2_section): New.
6107 (machopic_picsymbol_stub3_section): New.
6108 * config/darwin.h (DARWIN_X86, DARWIN_PPC): Define to 0.
6109 (MACHOPIC_NL_SYMBOL_PTR_SECTION): New.
6110 (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
6111 Moved common definition from x86 and rs6000.
6112 (MACHO_DYNAMIC_NO_PIC_P): Override value.
6113 (MACHOPIC_INDIRECT): Likewise.
6114 (MACHOPIC_PURE): Likewise.
6115 * config.gcc (x86-darwin-*): Remove darwin.opt.
6117 2010-11-02 Jakub Jelinek <jakub@redhat.com>
6120 * tree-cfg.c (gimple_flow_call_edges_add): Use gsi_last_nondebug_bb
6121 instead of gsi_last_bb.
6123 2010-11-02 Bernd Schmidt <bernds@codesourcery.com>
6124 Maxim Kuvyrkov <maxim@codesourcery.com>
6126 * config/i386/i386.c (cpu_names): Add "corei7".
6127 * config/i386/i386.h (enum target_cpu_default): Add entry for Core i7.
6129 2010-11-02 Bernd Schmidt <bernds@codesourcery.com>
6130 Maxim Kuvyrkov <maxim@codesourcery.com>
6132 Tune alignment for Intel Core i7
6134 * config/i386.h (TARGET_COREI7{_32,_64,}): New macros.
6135 (enum processor_type): Update comment. Add entries for Core i7.
6136 * config/i386-c.c (ix86_target_macros_internal): Update.
6137 * config/i386.c (m_COREI7{_32,_64}): New macros.
6138 (m_GENERIC32, m_GENERIC64): Use generic tuning for Core i7.
6139 (processor_target_table): Tune alignment for Core i7.
6140 (ix86_option_override_internal): Use PROCESSOR_COREI7_*.
6142 * doc/invoke.texi: Document "corei7" option value.
6144 2010-11-02 Bernd Schmidt <bernds@codesourcery.com>
6145 Maxim Kuvyrkov <maxim@codesourcery.com>
6146 H.J. Lu <hjl.tools@gmail.com>
6148 Basic support for Intel Core i7
6150 * i386.c (ix86_option_override_internal): Add entry for corei7, use
6151 generic tuning. Use generic32 when compiling for 32-bit ABI.
6153 2010-11-02 Iain Sandoe <iains@gcc.gnu.org>
6155 * config/darwin.c (darwin_asm_named_section): Check for __DWARF
6156 sections and call darwin_asm_dwarf_section() to handle them.
6157 (darwin_asm_dwarf_section): New.
6158 (darwin_file_start): Remove code emitting dwarf section symbols.
6160 2010-11-02 Chung-Lin Tang <cltang@codesourcery.com>
6162 * Makefile.in (LIBGCC2_CFLAGS): Add -fno-stack-protector, to
6163 explicitly disable stack protection when building libgcc.
6164 (CRTSTUFF_CFLAGS): Same, for crtbegin/end.
6166 2010-11-01 Jason Merrill <jason@redhat.com>
6168 * fold-const.c (fold_indirect_ref_1): Handle folding
6169 POINTER_PLUS_EXPR to ARRAY_REF.
6171 2010-11-01 Kaz Kojima <kkojima@gcc.gnu.org>
6173 * config/sh/sh.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
6174 (sh_delegitimize_address): New function.
6176 2010-11-01 Joseph Myers <joseph@codesourcery.com>
6178 * config/alpha/alpha.h (WORD_SWITCH_TAKES_ARG): Remove.
6179 * config/cris/cris.h (WORD_SWITCH_TAKES_ARG): Remove.
6180 (CC1_SPEC): Don't handle -target.
6181 * config/darwin.h (WORD_SWITCH_TAKES_ARG): Remove single-argument
6183 * config/darwin.opt (Zallowable_client, Zbundle_loader,
6184 Zdylib_file, Zexported_symbols_list, Zfn_seg_addr_table_filename,
6185 Zimage_base, Zinit, Zinstall_name, Zmultiply_defined,
6186 Zmultiplydefinedunused, Zseg_addr_table, Zsegs_read_only_addr,
6187 Zsegs_read_write_addr, Zumbrella, Zunexported_symbols_list,
6188 Zweak_reference_mismatches, client_name, compatibility_version,
6189 current_version, dylinker_install_name, pagezero_size,
6190 read_only_relocs, seg1addr, segs_read_only_addr,
6191 segs_read_write_addr, sub_library, sub_umbrella): New.
6192 * config/freebsd-spec.h (BSD_WORD_SWITCH_TAKES_ARG): Remove.
6193 * config/freebsd.h (WORD_SWITCH_TAKES_ARG): Remove.
6194 * config/freebsd.opt: New.
6195 * config/interix.h (WORD_SWITCH_TAKES_ARG): Remove.
6196 * config/mips/iris6.h (WORD_SWITCH_TAKES_ARG): Remove.
6197 * config/rpath.opt: New.
6198 * config.gcc (*-*-freebsd*): Use rpath.opt and freebsd.opt.
6199 (alpha*-dec-osf5.1*, i[34567]86-*-interix3*, mips-sgi-irix6.5*):
6202 2010-11-01 Joseph Myers <joseph@codesourcery.com>
6204 * common.opt (R, T, Tbss, Tdata, Ttext, h, z): New.
6205 * defaults.h (DEFAULT_SWITCH_TAKES_ARG, SWITCH_TAKES_ARG): Remove.
6206 (DEFAULT_WORD_SWITCH_TAKES_ARG): Define to 0.
6207 * doc/tm.texi.in (SWITCH_TAKES_ARG): Remove.
6208 (WORD_SWITCH_TAKES_ARG): Don't refer to SWITCH_TAKES_ARG.
6209 Document that options in .opt files do not need to be included.
6210 * doc/tm.texi: Regenerate.
6211 * gcc.c (LINK_COMMAND_SPEC): Don't include %{x}.
6212 * opts-common.c: Update comment on tm.h include.
6213 (decode_cmdline_option): Don't use SWITCH_TAKES_ARG.
6214 * system.h (SWITCH_TAKES_ARG): Poison.
6215 * config/alpha/alpha.h (SWITCH_TAKES_ARG): Remove.
6216 * config/darwin.h (WORD_SWITCH_TAKES_ARG): Remove options included
6218 (LINK_COMMAND_SPEC_A): Don't include %{x}.
6219 * config/fr30/fr30.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
6220 * config/freebsd-spec.h (FBSD_SWITCH_TAKES_ARG): Remove.
6221 * config/freebsd.h (SWITCH_TAKES_ARG): Remove.
6222 * config/frv/frv.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
6223 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Don't include %{x}.
6224 * config/ia64/ia64.h (SWITCH_TAKES_ARG): Remove.
6225 * config/interix.h (WORD_SWITCH_TAKES_ARG): Don't handle -T options.
6226 * config/lm32/lm32.h (SWITCH_TAKES_ARG): Remove.
6227 * config/m32r/m32r.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
6228 * config/microblaze/microblaze.h (SWITCH_TAKES_ARG): Remove.
6229 * config/mips/mips.h (SWITCH_TAKES_ARG): Remove.
6230 * config/mips/netbsd.h (SWITCH_TAKES_ARG): Remove.
6231 * config/mips/vxworks.h (SWITCH_TAKES_ARG): Remove.
6232 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove.
6233 * config/netbsd-elf.h (SWITCH_TAKES_ARG): Remove.
6234 * config/openbsd.h (SWITCH_TAKES_ARG): Remove.
6235 * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Remove.
6236 * config/score/score.h (SWITCH_TAKES_ARG): Remove.
6237 * config/sol2.h (SWITCH_TAKES_ARG): Remove.
6238 * config/sparc/sp-elf.h (SWITCH_TAKES_ARG): Remove.
6239 * config/sparc/sp64-elf.h (SWITCH_TAKES_ARG): Remove.
6240 * config/sparc/sparc.h (ASM_SPEC): Don't include %{R}.
6241 * config/svr4.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
6243 2010-11-01 Paul Koning <ni1d@arrl.net>
6245 * config/pdp11/pdp11.md: Use iterators.
6246 (addqi3, subqi3, iorsi3, xorsi3): Delete.
6248 2010-11-01 Steve Ellcey <sje@cup.hp.com>
6250 * defaults.h (TARGET_VTABLE_USES_DESCRIPTORS): Move under ifdef
6252 * libgcov.c (__gcov_indirect_call_profiler): Set
6253 VTABLE_USES_DESCRIPTORS if TARGET_VTABLE_USES_DESCRIPTORS is
6254 defined and use in place of TARGET_VTABLE_USES_DESCRIPTORS.
6256 2010-11-01 Nathan Froyd <froydnj@codesourcery.com>
6258 PR tree-optimization/46259
6261 2010-10-30 Nathan Froyd <froydnj@codesourcery.com>
6262 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
6263 build_vector_from_val.
6265 2010-11-01 DJ Delorie <dj@redhat.com>
6267 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add define for RX610
6268 as well as an assertion.
6270 2010-11-01 Paul Koning <ni1d@arrl.net>
6272 * config/pdp11/pdp11.c (pdp11_return_in_memory): Return vector and
6273 complex modes in memory.
6275 2010-11-01 Nathan Froyd <froydnj@codesourcery.com>
6277 * tree.c (build_vector_from_val): Use useless_type_conversion_p.
6279 2010-11-01 Jakub Jelinek <jakub@redhat.com>
6282 * var-tracking.c (cfa_base_rtx): Move definition earlier in the file.
6283 (cfa_base_offset): New variable.
6284 (compute_cfa_pointer): Use cfa_base_rtx and cfa_base_offset.
6285 (adjust_mems): Don't do any sp or hfp replacements if cfa_base_rtx
6287 (vt_init_cfa_base): Initialize cfa_base_offset.
6289 2010-11-01 Alan Modra <amodra@gmail.com>
6292 * config/rs6000/rs6000.c (struct rs6000_stack): Add reload_completed
6293 and savres_strategy.
6294 (stack_info): New file scope var.
6295 (rs6000_init_machine_status): Init stack_info.
6296 (SAVRES_INLINE_FPRS, SAVRES_INLINE_GPRS,
6297 SAVRES_NOINLINE_GPRS_SAVES_LR, SAVRES_NOINLINE_FPRS_SAVES_LR,
6298 SAVRES_NOINLINE_FPRS_DOESNT_RESTORE_LR): Replace with..
6299 (SAVE_INLINE_FPRS, SAVE_INLINE_GPRS, REST_INLINE_FPRS, REST_INLINE_GPRS,
6300 SAVE_NOINLINE_GPRS_SAVES_LR, SAVE_NOINLINE_FPRS_SAVES_LR
6301 REST_NOINLINE_FPRS_DOESNT_RESTORE_LR): ..this. Update all refs.
6302 (rs6000_savres_strategy): Rewrite.
6303 (rs6000_stack_info): Use "stack_info" in place of local "info".
6304 Return cached stack info when reload_completed unless ENABLE_CHECKING
6305 in which case confirm newly calculated stack info matches old info.
6306 Delay calculation of lr_save_p, set it for out of line gp save/restore
6307 as well as fp. Call rs6000_savres_strategy from here..
6308 (rs6000_emit_prologue, rs6000_emit_epilogue): ..rather than here.
6309 (rs6000_output_function_prologue): Use info->savres_strategy to
6310 determine whether fp save/restore externs need to be emitted.
6312 2010-10-31 Jason Merrill <jason@redhat.com>
6314 * tree.h (EXPR_LOC_OR_HERE): New macro.
6315 * builtins.c (c_strlen): Use it.
6316 * c-decl.c (build_enumerator): Likewise.
6317 * gimplify.c (internal_get_tmp_var): Likewise.
6318 (shortcut_cond_expr): Likewise.
6319 (gimplify_one_sizepos): Likewise.
6321 2010-10-31 Richard Henderson <rth@redhat.com>
6323 * config/i386/cygming.h (TARGET_SEH): New.
6324 (MAX_STACK_ALIGNMENT): New. Disable alignment for SEH.
6325 (TARGET_ASM_UNWIND_EMIT, TARGET_ASM_UNWIND_EMIT_BEFORE_INSN,
6326 TARGET_ASM_FUNCTION_END_PROLOGUE, SUBTARGET_ASM_UNWIND_INIT): New.
6327 (TARGET_OS_CPP_BUILTINS): Define __SEH__ as needed.
6328 (ASM_DECLARE_FUNCTION_NAME): Use i386_pe_start_function.
6329 (ASM_DECLARE_FUNCTION_SIZE): New.
6330 * config/i386/i386-protos.h: Update.
6331 * config/i386/i386.c (ix86_option_override_internal): Enable
6332 flag_unwind_tables with flag_asynchronous_unwind_tables immediately;
6333 restrict -mpreferred-stack-boundary for SEH; enable flag_fentry.
6334 (ix86_asm_output_function_label): Use SUBTARGET_ASM_UNWIND_INIT.
6335 (ix86_compute_frame_layout): For SEH, disable
6336 use_fast_prologue_epilogue, move frame pointer to the end of
6337 the frame. Initialize hfp_save_offset.
6338 (ix86_expand_prologue): Honor hfp_save_offset. Emit blockage
6339 at end of prologue for SEH.
6340 (ix86_expand_epilogue): For SEH, use pops, emit a nop if needed,
6341 emit blockage at beginning of epilogue.
6342 (ix86_expand_binary_operator): After reload, emit LEA if needed.
6343 (ix86_output_call_insn): New.
6344 * config/i386/i386.h (TARGET_SEH): New.
6345 (struct machine_function): Add member seh.
6346 * config/i386/i386.md (all call patterns): Use ix86_output_call_insn.
6347 * config/i386/winnt.c (struct seh_frame_state): New.
6348 (i386_pe_seh_init, i386_pe_seh_end_prologue, i386_pe_seh_fini,
6349 seh_emit_push, seh_emit_save, seh_emit_stackalloc, seh_cfa_adjust_cfa,
6350 seh_cfa_offset, seh_frame_related_expr, i386_pe_seh_unwind_emit,
6351 i386_pe_start_function, i386_pe_end_function): New.
6353 * dwarf2out.c (dwarf2out_frame_debug_expr): Accept CFA as well
6354 as CFA_STORE in rules 12 and 13.
6356 2010-10-31 Uros Bizjak <ubizjak@gmail.com>
6358 PR tree-optimization/46142
6359 * tree-vect-stmts.c (vectorizable_call): Enlarge dt array to
6360 accommodate third function argument.
6362 2010-10-30 Nathan Froyd <froydnj@codesourcery.com>
6364 * tree-ssa-loop-im.c (rewrite_reciprocal): Use build_one_cst.
6366 2010-10-30 Nathan Froyd <froydnj@codesourcery.com>
6368 * fold-const.c (build_zero_vector): Use build_vector_from_val.
6369 * tree-vect-loop.c (get_initial_def_for_induction): Likewise.
6370 (get_initial_def_for_reduction): Likewise.
6371 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
6372 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Likewise.
6373 * tree.c (build_one_cst): Likewise.
6374 (build_vector_from_val): Use types_compatible_p for assert.
6376 2010-10-30 Nathan Froyd <froydnj@codesourcery.com>
6378 * emit-rtl.c (mark_used_flags): New function.
6379 (set_used_flags, reset_used_flags): Call it.
6381 2010-10-30 Uros Bizjak <ubizjak@gmail.com>
6384 * lower-suberg.c (simplify_subreg_concatn): For VOIDmode elements,
6385 determine the mode of a subreg by GET_MODE_INNER of CONCATN RTX.
6387 2010-10-30 H.J. Lu <hongjiu.lu@intel.com>
6390 * config/i386/i386.c (contains_aligned_value_p): Renamed to ...
6391 (ix86_compat_aligned_value_p): This.
6392 (ix86_old_function_arg_boundary): Renamed to ...
6393 (ix86_compat_function_arg_boundary): This. Updated.
6394 (ix86_contains_aligned_value_p): New.
6395 (ix86_function_arg_boundary): Align long double parameters on
6396 stack to 4byte in 32bit.
6398 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
6400 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
6401 * c-parser.c (c_parser_objc_at_property_declaration): Removed
6402 parsing of RID_COPIES and RID_IVAR. Updated call to
6403 objc_add_property_declaration.
6404 * c-typecheck.c (build_component_ref): Call
6405 objc_maybe_build_component_ref instead of objc_build_setter_call.
6406 Use objc_is_property_ref to improve Objective-C checks.
6407 (cp_build_modify_expr): Call objc_maybe_build_modify_expr instead
6408 of objc_build_getter_call.
6410 2010-10-29 Paul Koning <ni1d@arrl.net>
6412 * doc/tm.texi.in (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
6413 REGNO_MODE_OK_FOR_REG_BASE, REGNO_MODE_CODE_OK_FOR_BASE_P,
6414 REGNO_OK_FOR_INDEX_P): Delete non-strict variant.
6415 (REG_OK_STRICT): Move description.
6417 2010-10-29 Paul Koning <ni1d@arrl.net>
6419 * config/pdp11/pdp11.md (*and<mode>): Rename to *bic<mode>.
6421 2010-10-29 Paul Koning <ni1d@arrl.net>
6423 * config/pdp11/pdp11.md (divhi3, modhi3, divmodhi3): Fix ICE.
6425 2010-10-29 Paul Koning <ni1d@arrl.net>
6428 * config/pdp11/pdp11.md (andhi3, andqi3): Fix wrong code error.
6430 2010-10-29 Richard Henderson <rth@redhat.com>
6433 * stmt.c (expand_asm_operands): Call do_pending_stack_adjust
6436 2010-10-29 Paul Koning <ni1d@arrl.net>
6438 * config/pdp11/pdp11.c (output_move_quad): Fix ICE for CPU
6439 register to register move.
6441 2010-10-29 Paul Koning <ni1d@arrl.net>
6443 * config/pdp11/pdp11.c (print_operand_address): Correct handling
6444 of integer constant addresses, delete vax-only logic.
6446 2010-10-11 Hariharan Sandanagobalane <hariharan@picochip.com>
6448 * config/picochip/picochip.c (picochip_is_short_branch): Simplify
6449 a conditional expression.
6451 2010-10-29 Paul Koning <ni1d@arrl.net>
6453 * config/pdp11/pdp11.c (pdp11_trampoline_init): Correct
6454 instruction encoding.
6456 2010-10-29 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
6457 Andrew Pinski <pinskia@gmail.com>
6459 * tree.h (build_vector_from_val): Declare.
6460 * tree.c (build_vector_from_val): New function.
6461 * c-typeck.c (build_binary_op): Handle vector shifting.
6462 * doc/extend.texi: Description of the vector shifting operation.
6464 2010-10-29 Paul Koning <pkoning@equallogic.com>
6466 * config/pdp11/pdp11-protos.h (pdp11_cannot_change_mode_class,
6467 pdp11_secondary_memory_needed): Declare.
6468 * config/pdp11/predicates.md (float_operand): New predicate.
6469 * config/pdp11/pdp11.md (RETVAL_REGNUM): New constant.
6470 (cbranchdf4, movdf): Change predicate.
6471 (movsf): Handle FPU register case.
6472 (truncdfsf2, extendsfdf2): Add FPU register case.
6473 * config/pdp11/pdp11.c (TARGET_SECONDARY_RELOAD,
6474 TARGET_REGISTER_MOVE_COST, TARGET_PREFERRED_RELOAD_CLASS,
6475 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
6476 (pdp11_register_move_cost): Update cost matrix.
6477 (pdp11_cannot_change_mode_class, pdp11_preferred_reload_class,
6478 pdp11_preferred_output_reload_class, pdp11_secondary_reload,
6479 pdp11_secondary_memory_needed): New function.
6480 (pdp11_return_in_memory): Add other float types.
6481 * config/pdp11/pdp11.h (HARD_REGNO_MODE_OK): Add other float types.
6482 (SECONDARY_MEMORY_NEEDED, CANNOT_CHANGE_MODE_CLASS): Define.
6483 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS,
6484 REGISTER_MOVE_COST): Delete.
6485 (BASE_RETURN_VALUE_REG): Add other float types.
6487 2010-10-29 Nick Clifton <nickc@redhat.com>
6489 * doc/invoke.texi: Document -mam34 and -mtune options.
6490 * config/mn10300/mn10300.c (mn10300_tune_string): New variable.
6491 (mn10300_tune_cpu): New variable.
6492 (mn10300_handle_option): Handle -mam34 and -mtune options.
6493 (mn10300_option_override): Convert tune string into tune cpu variable.
6494 (mn10300_legitimate_constant_p): Delete unused local variable.
6495 (is_load_insn): New function.
6496 (is_store_insn): New function.
6497 (mn10300_adjust_schedule_cost): New function.
6498 (TARGET_SCHED_ADJUST_COST): Define.
6499 * config/mn10300/mn10300.opt (mam34): New option.
6500 (mtune): New option.
6501 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add AM34 support.
6502 (enum processor_type): Add AM34.
6503 (TARGET_AM34): Define.
6504 * config/mn10300/mn10300.md (attr cpu): Add am34.
6505 Add pipeline description.
6506 (movqi, movhi, movsi, movsf, movdf, movdi): Fix predicates.
6507 Remove unneeded alternatives. Add timing attribute.
6508 (pop_pic_reg, am33_addsi3, mn10300_addsi3, am33_subsi3,
6509 mn10300_subsi3, mulsidi3, umulsidi3, am33_mulsi3,
6510 mn10300_mulsi3, udivmodsi4_am33, divmodsi4, am33_andsi3,
6511 mn10300_andsi3, am33_iorsi3, mn10300_iorsi3, am33_xorsi3,
6512 mn10300_xorsi3, byte_clear, byte_set, bit_clear1, bit_clear2,
6513 bit_set, am33_iorqi3, mn10300_iorqi3, test_byte_bitfield,
6514 bit_test, subreg_bit_test, cmpsi, am33_cmpsf, am33_subsi3,
6515 float_conditional_branch, jump, indirect_jump, tablejump,
6516 call_internal, call_value_internal, zero_extendqisi2_am33,
6517 zero_extendqisi2_mn10300, zero_extendhisi2_am33,
6518 zero_extendhisi2_mn10300, extendqisi2_am33, extendqisi2_mn10300,
6519 extendhisi2_am33, extendhisi2_mn10300, am33_ashlsi3,
6520 mn10300_ashlsi3, am33_lshrsi3, mn10300_lshrsi3, am33_ashrisi3,
6521 mn10300_ashrsi3, abssf2_am33_2, negsf2_am33_2, rsqrtsf2,
6522 addsf3_internal, subsf3_internal, mulsf3_internal, divsf3,
6523 fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4, return_internal,
6524 return_internal_regs, store_movm, return, call_next_insn):
6525 Add timing attribute.
6526 (am33_subsi3): Add missing clobber of CC_REG.
6527 (am33_andsi3, mn10300_andsi3): Fix compile time warnings.
6528 (udivmodsi4, udivmodsi4_insn, divmodsi4, test_byte_bitfield,
6529 subreg_bit_test, zero_extendqisi2, zero_extendhisi2,
6530 extendqisi2): Fix predicates.
6531 (call_internal, call_internal_value): Separate alternatives.
6532 * config/mn10300/t-mn10300: Add AM34 multilib.
6534 2010-10-29 Paolo Bonzini <bonzini@gnu.org>
6536 * config/sh/sh.c (sh_promote_function_mode): Use
6537 default_promote_function_mode if !sh_promote_prototypes.
6539 2010-10-28 Paolo Bonzini <bonzini@gnu.org>
6541 * recog.c (split_all_insns): Remove dead code.
6543 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
6545 * score.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
6547 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
6549 * config/cris/cris.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Delete.
6550 (FUNCTION_ARG_ADVANCE): Delete.
6551 * config/cris/cris.c (cris_function_arg_1, cris_function_arg): New
6553 (cris_function_incoming_arg, cris_function_arg_advance): New functions.
6554 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
6555 (TARGET_FUNCTION_ARG_ADVANCE): Define.
6557 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
6559 * config/lm32/lm32-protos.h (lm32_function_arg): Delete.
6560 * config/lm32/lm32.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
6561 * config/mcore/mcore.c (mcore_function_arg): Declare. Make static.
6562 Take a const_tree and a bool.
6563 (mcore_function_arg_advance): New function.
6564 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6566 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
6568 * config/mcore/mcore-protos.h (mcore_function_arg): Delete.
6569 * config/mcore/mcore.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
6570 * config/mcore/mcore.c (mcore_function_arg): Declare. Make static.
6571 Take a const_tree and a bool.
6572 (mcore_function_arg_advance): New function.
6573 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6575 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
6577 * config/h8300/h8300-protos.h (function_arg): Delete.
6578 * config/h8300/h8300.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
6579 * config/h8300/h8300.c (function_arg): Rename to...
6580 (h8300_function_arg): ...this. Make static. Take a const_tree and
6582 (h8300_function_arg_advance): New function.
6583 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6585 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
6587 * config/arc/arc.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Move code
6589 * config/arc/arc.c (arc_function_arg): ...here and...
6590 (arc_function_arg_advance): ...here. New functions.
6591 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6593 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
6595 * config/crx/crx-protos.h (crx_function_arg): Delete.
6596 (crx_function_arg_advance): Delete.
6597 * config/crx/crx.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
6598 * config/crx/crx.c (crx_function_arg): Make static. Take a
6599 const_tree and a bool.
6600 (crx_function_arg_advance): Make static. Take a const_tree and a bool.
6601 (enough_regs_for_param): Take a const_tree.
6602 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6604 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
6606 * config/m68hc11/m68hc11-protos.h (m68hc11_function_arg): Delete.
6607 (m68hc11_function_arg_advance): Delete.
6608 * config/m68hc11/m68hc11.h (FUNCTION_ARG): Delete.
6609 (FUNCTION_ARG_ADVANCE): Delete.
6610 * config/m68hc11/m68hc11.c (m68hc11_function_arg): Make static.
6611 Take a const_tree and a bool.
6612 (m68hc11_function_arg_advance): Likewise.
6613 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6615 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
6617 * config/stormy16/stormy16-protos.h (xstormy16_function_arg): Delete.
6618 (xstormy16_function_arg_advance): Delete.
6619 * config/stormy16/stormy16.h (FUNCTION_ARG): Delete.
6620 (FUNCTION_ARG_ADVANCE): Delete.
6621 * config/stormy16/stormy16.c (xstormy16_function_arg): Make static.
6622 Take a const_tree and a bool.
6623 (xstormy16_function_arg_advance): Likewise. Return void, updating
6624 the CUM parameter instead.
6625 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6627 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
6629 * config/moxie/moxie-protos.h (moxie_function_arg): Delete.
6630 * config/moxie/moxie.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
6631 (MOXIE_FUNCTION_ARG_SIZE): Move to...
6632 * config/moxie/moxie.c (MOXIE_FUNCTION_ARG_SIZE): ...here.
6633 (moxie_function_arg): Make static. Take a const_tree and a bool.
6634 (moxie_function_arg_advance): New function.
6635 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6637 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
6639 * config/mn10300/mn10300-protos.h (function_arg): Delete.
6640 * config/mn10300/mn10300.h (FUNCTION_ARG): Delete.
6641 (FUNCTION_ARG_ADVANCE): Delete.
6642 * config/mn10300/mn10300.c (function_arg): Rename to...
6643 (mn10300_function_arg): ...this. Make static. Take a const_tree
6645 (mn10300_function_arg_advance): New function.
6646 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6648 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
6650 * config/iq2000/iq2000-protos.h (function_arg): Delete.
6651 (function_arg_advance): Delete.
6652 * config/iq2000/iq2000.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
6653 * config/iq2000/iq2000.c (function_arg): Rename to...
6654 (iq2000_function_arg): ...this. Make static. Take a const_tree and
6656 (function_arg_advance): Rename to...
6657 (iq2000_function_arg_advance): ...this. Make static. Take a
6658 const_tree and a bool.
6659 (iq2000_expand_prologue): Call iq2000_function_arg_advance and
6660 iq2000_function_arg.
6661 (iq2000_pass_by_reference): Call iq2000_function_arg).
6662 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6664 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
6666 * config/fr30/fr30-protos.h (fr30_num_arg_regs): Delete.
6667 * config/fr30/fr30.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
6668 * config/fr30/fr30.c (fr30_num_arg_regs): Make static. Take a
6670 (fr30_function_arg): New function.
6671 (fr30_function_arg_advance): New function.
6672 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6674 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
6676 * config/frv/frv-protos.h (frv_function_arg): Delete.
6677 (frv_function_arg_advance): Delete.
6678 * config/frv/frv.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
6679 * config/frv/frv.c (frv_function_arg): Rename to...
6680 (frv_function_arg_1): Make static. Take const_tree and bool arguments.
6681 (frv_function_arg, frv_function_incoming_arg): New functions.
6682 (frv_function_arg_advance): Make static. Take a const_tree and a bool.
6683 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
6684 (TARGET_FUNCTION_ARG_ADVANCE): Define.
6686 2010-10-28 Uros Bizjak <ubizjak@gmail.com>
6689 * config/i386/sse.md (sse_movhlps_exp): Use destination
6690 returned from ix86_fixup_binary_operands to expand insn.
6691 (sse_movlhps_exp): Ditto.
6692 (sse_loadhps_exp): Ditto.
6693 (sse_loadlps_exp): Ditto.
6694 (sse2_loadhpd_exp): Ditto.
6695 (sse2_loadlpd_exp): Ditto.
6697 2010-10-28 Andrew Stubbs <ams@codesourcery.com>
6699 * config/arm/arm.c (const_ok_for_arm): Support 0xXY00XY00 pattern
6700 constants in thumb2.
6702 2010-10-28 Eric Botcazou <ebotcazou@adacore.com>
6704 * combine.c (set_nonzero_bits_and_sign_copies): Use unsigned
6705 arithmetics in masking operations.
6706 (contains_muldiv): Likewise.
6707 (try_combine): Likewise.
6708 (find_split_point): Likewise.
6709 (combine_simplify_rtx): Likewise.
6710 (simplify_if_then_else): Likewise.
6711 (simplify_set): Likewise.
6712 (expand_compound_operation): Likewise.
6713 (expand_field_assignment): Likewise.
6714 (make_extraction): Likewise.
6715 (extract_left_shift): Likewise.
6716 (make_compound_operation): Likewise.
6717 (force_to_mode): Likewise.
6718 (make_field_assignment): Likewise.
6719 (reg_nonzero_bits_for_combine): Likewise.
6720 (simplify_shift_const_1): Likewise.
6721 (simplify_comparison): Likewise.
6723 2010-10-27 Nathan Froyd <froydnj@codesourcery.com>
6725 * config/ia64/ia64-protos.h (ia64_function_arg): Delete.
6726 (ia64_function_arg_advance): Delete.
6727 * config/ia64/ia64.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Delete.
6728 (FUNCTION_ARG_ADVANCE): Delete.
6729 * config/ia64/ia64.c (ia64_function_arg): Rename to...
6730 (ia64_function_arg_1): ...this. Make static. Take const_tree and
6732 (ia64_function_arg, ia64_function_incoming_arg): New functions.
6733 (ia64_function_arg_advance): Make static. Take a const_tree and
6735 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
6736 (TARGET_FUNCTION_ARG_ADVANCE): Define.
6738 2010-10-27 Steve Ellcey <sje@cup.hp.com>
6740 * doc/tm.texi.in (TARGET_GET_RAW_RESULT_MODE): New.
6741 (TARGET_GET_RAW_ARG_MODE): New.
6742 * doc/tm.texi: Regenerate.
6743 * target.def (get_raw_result_mode): New.
6744 (get_raw_arg_mode): New.
6745 * targhooks.c (default_get_reg_raw_mode): New.
6746 * targhooks.h (default_get_reg_raw_mode): New.
6747 * builtins.c (apply_args_size): Use targetm.calls.get_raw_arg_mode.
6748 (apply_result_size): Ditto.
6749 * config/ia64/ia64.c (ia64_get_reg_raw_mode): New.
6750 (TARGET_GET_RAW_RESULT_MODE): Define.
6751 (TARGET_GET_RAW_ARG_MODE): Ditto.
6753 2010-10-27 Eric Botcazou <ebotcazou@adacore.com>
6755 * config/sparc/sol2-unwind.h (sparc64_fallback_frame_state): Adjust
6756 for newer Solaris 10 release.
6757 (sparc_fallback_frame_state): Likewise.
6759 2010-10-27 Jason Merrill <jason@redhat.com>
6761 * gimplify.c (gimplify_decl_expr): Handle anonymous artificial
6764 2010-10-27 Jie Zhang <jie@codesourcery.com>
6765 Maxim Kuvyrkov <maxim@codesourcery.com>
6767 * haifa-sched.c (ISSUE_POINTS): Remove.
6768 (max_issue): Don't issue more than issue_rate instructions.
6770 2010-10-27 Ian Lance Taylor <iant@google.com>
6773 * config/i386/i386.md (UNSPECV_SPLIT_STACK_RETURN): New.
6774 (split_stack_return): Replace UNSPEC_STACK_CHECK with
6775 UNSPECV_SPLIT_STACK_RETURN.
6777 2010-10-27 H.J. Lu <hongjiu.lu@intel.com>
6779 * config/i386/i386-protos.h (init_cumulative_args): Add an int.
6781 * config/i386/i386.c (block_info): New.
6782 (BLOCK_INFO): Likewise.
6783 (call_avx256_state): Likewise.
6784 (check_avx256_stores): Likewise.
6785 (move_or_delete_vzeroupper_2): Likewise.
6786 (move_or_delete_vzeroupper_1): Likewise.
6787 (move_or_delete_vzeroupper): Likewise.
6788 (use_avx256_p): Likewise.
6789 (function_pass_avx256_p): Likewise.
6790 (flag_opts): Add -mvzeroupper.
6791 (ix86_option_override_internal): Turn on MASK_VZEROUPPER by
6792 default for TARGET_AVX. Turn off MASK_VZEROUPPER if TARGET_AVX
6794 (ix86_function_ok_for_sibcall): Disable sibcall if we need to
6795 generate vzeroupper.
6796 (init_cumulative_args): Add an int to indicate caller. Set
6797 use_avx256_p, callee_return_avx256_p and caller_use_avx256_p
6798 based on return type.
6799 (ix86_function_arg): Set use_avx256_p, callee_pass_avx256_p and
6800 caller_pass_avx256_p based on argument type.
6801 (ix86_expand_epilogue): Emit vzeroupper if 256bit AVX register
6802 is used, but not returned by caller.
6803 (ix86_expand_call): Emit vzeroupper if 256bit AVX register is used.
6804 (ix86_local_alignment): Set use_avx256_p if 256bit AVX register
6806 (ix86_minimum_alignment): Likewise.
6807 (ix86_expand_special_args_builtin): Set target to
6808 GEN_INT (vzeroupper_intrinsic) for CODE_FOR_avx_vzeroupper.
6809 (ix86_reorg): Run the vzeroupper optimization if needed.
6811 * config/i386/i386.h (ix86_args): Add caller.
6812 (INIT_CUMULATIVE_ARGS): Updated.
6813 (machine_function): Add use_vzeroupper_p, use_avx256_p,
6814 caller_pass_avx256_p, caller_return_avx256_p,
6815 callee_pass_avx256_p and callee_return_avx256_p.
6817 * config/i386/i386.opt (-mvzeroupper): New.
6819 * config/i386/predicates.md (vzeroupper_operation): Removed.
6821 * config/i386/sse.md (avx_vzeroupper): Removed.
6822 (*avx_vzeroupper): Removed.
6823 (avx_vzeroupper): New.
6825 * doc/invoke.texi: Document -mvzeroupper.
6827 2010-10-27 Eric Botcazou <ebotcazou@adacore.com>
6829 * config/i386/t-mingw32 (SHLIB_LC): Add -lmingwthrd.
6830 * config/i386/t-mingw-w32 (SHLIB_LC): Likewise.
6831 * config/i386/t-mingw-w64 (SHLIB_LC): Likewise.
6833 2010-10-27 Eric Botcazou <ebotcazou@adacore.com>
6834 Olivier Hainque <hainque@adacore.com>
6836 * config/i386/w32-unwind.h (i386_w32_fallback_frame_state): Fix regnum
6837 of EBP. Do not restore reg #9. Remove +1 adjustment to EIP and set
6838 fs->signal_frame instead.
6840 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
6842 * c-parser.c (cp_parser_objc_at_property_declaration): Removed
6843 parsing of RID_COPIES and RID_IVAR.
6845 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
6847 * c-parser.c (c_parser_objc_at_property_declaration): Recognize
6848 RID_ASSIGN, RID_COPY, RID_RETAIN, RID_READWRITE and RID_NONATOMIC.
6849 Do not use objc_set_property_attr, but use local variables
6850 instead. Detect repeated usage of setter, getter and ivar
6851 attributes. Improved error processing when a setter name does not
6852 end in ':'. Do not check for CPP_CLOSE_PAREN after we determined
6853 that the token is a keyword. Updated call to
6854 objc_add_property_declaration.
6856 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
6858 * c-parser.c (c_parser_objc_at_property): Renamed to
6859 c_parser_objc_at_property_declaration. Updated calls to
6860 objc_add_property_variable, now objc_add_property_declaration.
6861 Code rewritten to be much more robust in recovering from syntax
6862 errors. Added comments.
6863 (c_parser_objc_property_attrlist): Removed.
6864 (c_parser_external_declaration): Updated calls to
6865 c_parser_objc_at_property, now
6866 c_parser_objc_at_property_declaration.
6867 (c_parser_objc_methodprotolist): Same change.
6869 2010-10-26 H.J. Lu <hongjiu.lu@intel.com>
6871 * config/i386/i386.md (split_stack_return): Put back unspec_volatile.
6873 2010-10-26 Jan Hubicka <jh@suse.cz>
6875 * ipa.c (process_references): Enqueue all referenced nodes;
6876 mark as reachable only non-external nodes.
6877 (cgraph_remove_unreachable_nodes): All referenced nodes should
6878 be enqueued; remove bogues node->needed check.
6880 2010-10-26 Jan Hubicka <jh@suse.cz>
6882 * cgraphbuild.c (build_cgraph_edges): Use ipa-reference
6885 2010-10-26 H.J. Lu <hongjiu.lu@intel.com>
6887 * config/i386/i386.md (split_stack_return): Replace
6888 unspec_volatile with unspec.
6890 2010-10-26 Jonathan Wakely <jwakely.gcc@gmail.com>
6892 * doc/install.texi: Fix typo in --with-sysroot description.
6894 2010-10-26 Jan Hubicka <jh@suse.cz>
6896 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
6897 Use info provided by linker plugin.
6899 2010-10-26 Jason Merrill <jason@redhat.com>
6901 * varasm.c (constructor_static_from_elts_p): Don't require a
6902 CONSTRUCTOR to have elements to be suitable for static
6903 initialization. Allow ARRAY_TYPE as well.
6905 2010-10-26 Jan Hubicka <jh@suse.cz>
6908 * cgraph.c (cgraph_set_readonly_flag): Rename to...
6909 (cgraph_set_const_flags) ... this one; get also looping argument;
6910 clear constructor/destructor flags.
6911 (cgraph_set_pure_flag): Likewise.
6912 (cgraph_set_looping_const_or_pure_flag): Remove.
6913 (cgraph_can_remove_if_no_direct_calls_and_refs): Do not try
6914 to optimize away static ctors/dtors; it does not work on inline clones;
6915 external functions can always be rmeoved.
6916 (cgraph_will_be_removed_from_program_if_no_direct_calls): Assert on
6917 inline clones; in LTO external functions always can go.
6918 (cgraph_used_from_object_file_p): Handle EXTERNAL functions correctly.
6919 (cgraph_mark_address_taken_node): Assert that we are not taking
6920 address of inline clone.
6921 (cgraph_can_remove_if_no_direct_calls_p): We always eventually remove
6923 * ipa-cp.c (ipcp_cloning_candidate_p): Do not clone functions with
6925 (ipcp_initialize_node_lattices): Only local functions can be
6926 handled without cloning.
6927 * cgraph.h (cgraph_set_readonly_flag,
6928 cgraph_set_looping_const_or_pure_flag): Remove.
6929 (cgraph_set_const_flag): Declare.
6930 (cgraph_set_pure_flag): Update.
6931 * ipa-pure-const (propagate_pure_const, local_pure_const): Update
6933 * ipa.c (cgraph_remove_unreachable_nodes): Fix formating; do not
6934 look at inline clones; fix handling of external definitions.
6935 (cgraph_postorder): Do not look at inline clones in the first pass.
6936 (function_and_variable_visibility): Drop constructors/destructor
6937 flags at pure and const functions.
6938 * tree-profile.c (tree_profiling): Update.
6939 * ipa-inline.c (cgraph_clone_inlined_nodes): Always clone functions with
6940 address taken; external functions do not account to whole program size.
6941 (cgraph_decide_inlining): Likewise; do not try to inline
6942 functions already inlined.
6944 2010-10-26 Jie Zhang <jie@codesourcery.com>
6946 * doc/invoke.texi: Improve documentation of
6947 -fstrict-volatile-bitfields.
6949 2010-10-26 Ira Rosen <irar@il.ibm.com>
6951 PR tree-optimization/46167
6952 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Check that there
6953 is basic block for the statement.
6955 2010-10-26 Paul Koning <ni1d@arrl.net>
6957 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Update to
6958 current definition of struct_real_format.
6960 2010-10-26 H.J. Lu <hongjiu.lu@intel.com>
6963 * config/i386/i386.c (ix86_old_function_arg_boundary): New.
6964 (ix86_function_arg_boundary): Always align parameters on stack
6965 in 64bit and align parameters with alignment >= 16byte on stack
6966 in 32bit. Warn alignment change.
6968 2010-10-26 Ian Lance Taylor <iant@google.com>
6971 * ipa-prop.c (ipa_modify_call_arguments): Correct type of MEM_REF
6974 2010-10-25 Rodrigo Rivas Costa <rodrigorivascosta@gmail.com>
6976 Implement opaque-enum-specifiesr for C++0x
6977 * tree.h (ENUM_IS_OPAQUE): New.
6978 * dwarf2out.c (gen_enumeration_type_die): Use ENUM_IS_OPAQUE.
6980 2010-10-26 Jie Zhang <jie@codesourcery.com>
6982 * stor-layout.c (layout_decl): Use the field's type to
6983 determine the mode and keep DECL_BIT_FIELD for a volatile bit-field.
6984 * config/arm/arm.c (arm_override_options): Default to
6985 -fstrict-volatile-bitfields.
6987 2010-10-25 Paul Koning <ni1d@arrl.net>
6989 * config/pdp11/pdp11.md: Add define_constants for register
6990 numbers, branch offset limits.
6991 * config/pdp11/pdp11.c: Use named constants instead of numbers.
6992 * config/pdp11.pdp11.h: Ditto.
6994 2010-10-25 Eric Botcazou <ebotcazou@adacore.com>
6996 * configure.ac: Use $cpu_type instead of $target to define the nop.
6997 * configure: Regenerate.
6999 2010-10-25 Jie Zhang <jie@codesourcery.com>
7001 * combine.c (try_combine): If insns need to be kept around, check that
7002 they can be copied in the merged instruction.
7004 2010-10-24 Eric Botcazou <ebotcazou@adacore.com>
7006 * reg-stack.c (convert_regs_1): Return boolean value, true if the CFG
7008 (convert_regs_2): Likewise. Adjust calls to convert_regs_1.
7009 (convert_regs): Adjust calls to convert_regs_2. Clean up the CFG if
7010 it has been modified.
7012 2010-10-24 Eric Botcazou <ebotcazou@adacore.com>
7014 * config/sparc/sparc.c (sparc_type_code) <NULLPTR_TYPE>: New case.
7016 2010-10-24 Paul Koning <ni1d@arrl.net>
7018 * config/pdp11/pdp11.md: Change length attribute to be in bytes.
7019 * config/pdp11/pdp11.c (output_jump): Ditto.
7021 2010-10-24 Ian Lance Taylor <iant@google.com>
7023 * config/i386/i386.c (ix86_va_start): Remove extraneous blank line.
7025 2010-10-24 Eric Botcazou <ebotcazou@adacore.com>
7027 * cfglayout.c (fixup_reorder_chain): When ensuring that there is at
7028 least one insn with a locus corresponding to an edge's goto_locus,
7029 disregard non-fallthru edges to the exit block and merge the blocks
7030 created for the same goto_locus.
7032 2010-10-23 Joseph Myers <joseph@codesourcery.com>
7034 * gcc.c (n_switches_alloc_debug_check): New.
7035 (set_option_handlers): New.
7036 (process_command): Use set_option_handlers.
7037 (do_self_spec): Pass spec-generated options through option handlers.
7038 (main): Also save and restore n_switches_alloc when swapping
7041 2010-10-23 Richard Henderson <rth@redhat.com>
7044 * config/i386/sse.md (*avx_absneg<AVXMODEF2P>2): New.
7045 (*sse_absneg<SSEMODEF2P>2): Rename from *absneg<VEC_FLOAT_MODE>2.
7046 Honor matching operands when splitting to XOR.
7048 2010-10-23 Ian Lance Taylor <iant@google.com>
7050 * tree-vrp.c (extract_range_from_binary_expr): If
7051 flag_non_call_exceptions don't eliminate division by zero.
7052 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
7054 2010-10-23 Nathan Froyd <froydnj@codesourcery.com>
7056 * cppbuiltin.c (define_builtin_macros_for_type_sizes): Define
7057 __BYTE_ORDER__, __ORDER_LITTLE_ENDIAN__, __ORDER_BIG_ENDIAN__, and
7058 __ORDER_PDP_ENDIAN__.
7059 * libgcc2.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
7060 (struct DWstruct): Define based on __BYTE_ORDER__.
7061 * config/fixed-bit.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
7062 (struct INTstruct): Define based on __BYTE_ORDER__.
7063 * config/dfp-bit.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
7064 (LIBGCC2_FLOAT_WORDS_BIG_ENDIAN): Test __BYTE_ORDER__.
7065 * system.h (LIBGCC2_WORDS_BIG_ENDIAN): Poison identifier.
7066 * config/arc/arc.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
7067 * config/arm/arm.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
7068 * config/ia64/ia64.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
7069 * config/iq2000/iq2000.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
7070 * config/lm32/lm32.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
7071 * config/m32r/m32r.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
7072 * config/mcore/mcore.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
7073 * config/mep/mep.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
7074 * config/mips/mips.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
7075 * config/rs6000/sysv4.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
7076 * config/rx/rx.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
7077 * config/score/score.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
7078 * config/sh/sh.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
7079 * config/sparc/sparc.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
7080 * config/xtensa/xtensa.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
7081 * doc/tm.texi.in (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
7082 * doc/tm.texi: Regenerate.
7083 * doc/cpp.texi (__BYTE_ORDER__, __ORDER_LITTLE_ENDIAN__): Document.
7084 (__ORDER_BIG_ENDIAN__, __ORDER_PDP_ENDIAN__): Likewise.
7086 2010-10-23 Jie Zhang <jie@codesourcery.com>
7088 PR rtl-optimization/37360
7089 * config/mips/mips.c (cached_can_issue_more): New local variable.
7090 (mips_sched_reorder_1): New.
7091 (mips_sched_reorder): Use mips_sched_reorder_1.
7092 (mips_sched_reorder2): New.
7093 (mips_variable_issue): Set cached_can_issue_more.
7094 (TARGET_SCHED_REORDER2): Define to mips_sched_reorder2
7095 instead of mips_sched_reorder.
7098 2008-09-09 Andrey Belevantsev <abel@ispras.ru>
7099 PR rtl-optimization/37360
7100 * haifa-sched.c (max_issue): Do not assert that we never issue more
7101 insns than issue_rate. Add comment.
7103 2010-10-22 Eric Botcazou <ebotcazou@adacore.com>
7105 * gimplify.c (gimplify_variable_sized_compare): Preserve the source
7106 location info of the expression.
7108 2010-10-22 DJ Delorie <dj@redhat.com>
7110 * doc/extend.texi (Named Address Spaces): Document the M32C named
7113 * config/m32c/m32c-pragma.c (m32c_register_pragmas): Register the
7114 __far address space.
7115 * config/m32c/m32c.h (ADDR_SPACE_FAR): New. Add support for
7116 "__far" address space for R8C and M16C processor variants.
7117 * config/m32c/m32c.c (m32c_addr_space_legitimate_address_p): New.
7118 (far_addr_space_p): New.
7119 (encode_pattern_1): Add sign and zero extend support.
7120 (m32c_hard_regno_nregs_1): Large pointers in A16 mode are SImode.
7121 (m32c_extra_constraint_p2): Add SF constraint.
7122 (m32c_legitimate_address_p): Support __far addresses.
7123 (m32c_addr_space_pointer_mode): New.
7124 (m32c_addr_space_address_mode): New.
7125 (m32c_addr_space_legitimate_address_p): New.
7126 (m32c_addr_space_legitimize_address): New.
7127 (m32c_addr_space_subset_p): New.
7128 (m32c_addr_space_convert): New.
7129 (conversions): Add __far operand patterns.
7130 (m32c_prepare_move): Force constants into registers for __far moves.
7131 (m32c_split_move): __far moves are always split.
7132 * config/m32c/addsub.md (addsi3_1): Support SImode symbols.
7133 * config/m32c/mov.md (mov<mode>_far_op1): New.
7134 (mov<mode>_far_op2): New.
7135 (movqi_op): Add __far (SF) support.
7136 (movhi_op): Likewise.
7137 (movsi_splittable): Split A1A0 also.
7139 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
7140 Andrew Pinski <pinskia@gmail.com>
7142 * c-typeck.c (build_array_ref): Handle subscripting of vectors.
7143 * doc/extend.texi: New paragraph
7145 2010-10-22 Paul Koning <ni1d@arrl.net>
7147 * config.pdp11/pdp11.h (DBX_DEBUGGING_INFO): Define.
7149 2010-10-22 DJ Delorie <dj@redhat.com>
7151 * config/m32c/m32c-lib1.S (m32c_jsri16): Make reentrant.
7153 2010-10-22 Paul Koning <ni1d@arrl.net>
7155 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Define.
7157 2010-10-22 Richard Henderson <rth@redhat.com>
7159 * config/i386/i386.c (ix86_builtin_vectorized_function): Add
7160 cases for __builtin_fma and __builtin_fmaf.
7162 2010-10-22 Richard Henderson <rth@redhat.com>
7164 * config/i386/i386.c (ix86_expand_fp_absneg_operator): Produce
7165 NEG+USE for vectors as well.
7166 * config/i386/i386.md (*absneg<VEC_FLOAT_MODE>2): New pattern
7169 2010-10-22 Joseph Myers <joseph@codesourcery.com>
7171 * gcc.c (DEFAULT_SWITCH_CURTAILS_COMPILATION,
7172 SWITCH_CURTAILS_COMPILATION): Remove.
7173 * doc/tm.texi.in (SWITCH_CURTAILS_COMPILATION): Remove documentation.
7174 * doc/tm.texi: Regenerate.
7175 * system.h (SWITCH_CURTAILS_COMPILATION): Poison.
7177 2010-10-22 Changpeng Fang <changpeng.fang@amd.com>
7179 * config/i386/bdver1.md: New file.
7180 * config/i386/i386.md (include "bdver1.md"): Invoke the
7181 pipeline description for bdver1.
7182 (x86_sahf_1): Add "bdver1_decode" attribute.
7183 (*cmpfp_i_mixed): Likewise.
7184 (*cmpfp_i_sse): Likewise.
7185 (*cmpfp_i_i387): Likewise.
7186 (*cmpfp_iu_mixed): Likewise.
7187 (*cmpfp_iu_sse): Likewise.
7188 (*cmpfp_iu_387): Likewise.
7189 (*swap<mode>,*swap<mode>_1): Likewise.
7190 (fixuns_trunc<mode>hi2): Likewise.
7191 (fix_trunc<mode>si_sse): Likewise.
7192 (x86_fnstcw_1): Likewise.
7193 (x86_fldcw_1): Likewise.
7194 (*floatsi<mode>2_vector_mixed_with_temp): Likewise.
7195 (*floatsi<mode>2_vector_mixed): Likewise.
7196 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Likewise.
7197 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Likewise.
7198 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Likewise.
7199 (*floatsi<mode>2_vector_sse_with_temp): Likewise.
7200 (*floatsi<mode>2_vector_sse): Likewise.
7201 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Likewise.
7202 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Likewise.
7203 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Likewise.
7204 (*mul<mode>3_1): Likewise.
7205 (*mulsi3_1_zext): Likewise.
7206 (*mulhi3_1): Likewise.
7207 (*mulqi3_1): Likewise.
7208 (*<u>mul<mode><dwi>3_1): Likewise.
7209 (*<u>mulqihi3_1): Likewise.
7210 (*<s>muldi3_highpart_1): Likewise.
7211 (*<s>mulsi3_highpart_1): Likewise.
7212 (*<s>mulsi3_highpart_zext): Likewise.
7213 (x86_64_shld): Likewise.
7214 (x86_shld): Likewise.
7215 (x86_64_shrd): Likewise.
7216 (x86_shrd): Likewise.
7217 (sqrtxf2): Likewise.
7218 (sqrt_extend<mode>xf2_i387): Likewise.
7219 (*sqrt<mode>2_sse): Likewise.
7220 * config/i386/sse.md (sse_cvtsi2ss): Add "bdver1_decode" attribute.
7221 (sse_cvtsi2ssq): Likewise.
7222 (sse_cvtss2si): Likewise.
7223 (sse_cvtss2si_2): Likewise.
7224 (sse_cvtss2siq): Likewise.
7225 (sse_cvtss2siq_2): Likewise.
7226 (sse_cvttss2si): Likewise.
7227 (sse_cvttss2siq): Likewise.
7228 (sse2_cvtpi2pd): Likewise.
7229 (sse2_cvttpd2pi): Likewise.
7230 (sse2_cvtsi2sd): Likewise.
7231 (sse2_cvtsi2sdq): Likewise.
7232 (sse2_cvtsd2si): Likewise.
7233 (sse2_cvtsd2si_2): Likewise.
7234 (sse2_cvtsd2siq): Likewise.
7235 (sse2_cvtsd2siq_2): Likewise.
7236 (sse2_cvttsd2si): Likewise.
7237 (sse2_cvttsd2siq): Likewise.
7238 (*sse2_cvtpd2dq): Likewise.
7239 (*sse2_cvttpd2dq): Likewise.
7240 (sse2_cvtsd2ss): Likewise.
7241 (sse2_cvtss2sd): Likewise.
7242 (*sse2_cvtpd2ps): Likewise.
7243 (sse2_cvtps2pd): Likewise.
7245 2010-10-22 Richard Guenther <rguenther@suse.de>
7248 * gimple-fold.c (gimplify_and_update_call_from_tree): Properly
7249 remove the virtual operands if they are not needed.
7251 2010-10-22 Changpeng Fang <changpeng.fang@amd.com>
7253 * config/i386/i386.c (processor_costs bdver1_cost): Update
7254 insn costs and architectural parameters for bdver1.
7256 2010-10-22 Richard Guenther <rguenther@suse.de>
7258 * gimple.h (gimple_register_canonical_type): Declare.
7259 * gimple.c (gimple_canonical_types): New global hashtable.
7260 (struct gimple_type_leader_entry_s): New type.
7261 (gimple_type_leader): New global cache.
7262 (gimple_lookup_type_leader): New function.
7263 (gtc_visit): Query the proper cache.
7264 (gimple_types_compatible_p): Likewise.
7265 (gimple_register_type): Use the new cache instead of TYPE_CANONICAL.
7266 (gimple_canonical_type_eq): New function.
7267 (gimple_register_canonical_type): Likewise.
7268 (print_gimple_types_stats): Adjust for gimple_canonical_types.
7269 (free_gimple_type_tables): Likewise. Free gimple_type_leader.
7270 * tree-ssa.c (useless_type_conversion_p): Do not dispatch to
7271 gimple_types_compatible_p for LTO.
7273 2010-10-22 Uros Bizjak <ubizjak@gmail.com>
7276 * config/i386/sse.md (*avx_movu<ssemodesuffix><avxmodesuffix>):
7277 Rename from avx_movu<ssemodesuffix><avxmodesuffix>.
7278 (avx_movu<ssemodesuffix><avxmodesuffix>): New expander.
7279 (*<sse>_movu<ssemodesuffix>): Rename from <sse>_movu<ssemodesuffix>.
7280 (<sse>_movu<ssemodesuffix>): New expander.
7281 (*avx_movdqu<avxmodesuffix>): Rename from avx_movdqu<avxmodesuffix>.
7282 (avx_movdqu<avxmodesuffix>): New expander.
7283 (*sse2_movdqu): Rename from sse2_movdqu.
7284 (sse2_movdqu): New expander.
7286 2010-10-22 Richard Guenther <rguenther@suse.de>
7288 PR tree-optimization/45720
7289 * tree-vect-data-refs.c (vect_update_misalignment_for_peel):
7290 Handle negative step.
7291 (vect_enhance_data_refs_alignment): Likewise.
7292 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Likewise.
7293 (vect_create_cond_for_align_checks): Likewise.
7294 (vect_create_cond_for_alias_checks): Likewise.
7296 2010-10-22 Ira Rosen <irar@il.ibm.com>
7298 PR tree-optimization/46126
7299 * tree-vect-stmts.c (vect_analyze_stmt): Pass NODE to
7300 vectorizable_shift in case of basic block vectorization.
7302 2010-10-22 Joseph Myers <joseph@codesourcery.com>
7304 * target.h (enum opt_levels, struct default_options): New.
7305 * target.def (handle_ofast): Remove hook.
7306 (target_option.optimization): Change to
7307 target_option.optimization_table.
7308 * doc/tm.texi.in (TARGET_OPTION_OPTIMIZATION): Change to
7309 TARGET_OPTION_OPTIMIZATION_TABLE.
7310 (CAN_DEBUG_WITHOUT_FP): Remove.
7311 * doc/tm.texi: Regenerate.
7312 * opts.c (maybe_default_option, maybe_default_options,
7313 default_options_table): New.
7314 (default_options_optimization): Take extra parameters. Don't
7315 assert that global_options and global_options_set are in use. Use
7316 maybe_default_options.
7317 (decode_options): Pass extra parameters to
7318 default_options_optimization.
7319 * common.opt (falign-loops): Use value 0 with Var.
7320 (frerun-cse-after-loop, ftree-ter): Remove Init.
7321 * system.h (CAN_DEBUG_WITHOUT_FP, TARGET_HANDLE_OFAST,
7322 TARGET_OPTION_OPTIMIZATION): Remove.
7323 * targhooks.c (empty_optimization_table): New.
7324 * targhooks.h (empty_optimization_table): Declare.
7325 * toplev.c (process_options): Don't set flag_rerun_cse_after_loop.
7326 * config/alpha/alpha.c (alpha_option_optimization_table,
7327 TARGET_OPTION_OPTIMIZATION_TABLE): New.
7328 * config/alpha/alpha.h (CAN_DEBUG_WITHOUT_FP): Remove.
7329 * config/arm/arm.c (arm_option_optimization: Change to
7330 arm_option_optimization_table.
7331 (TARGET_OPTION_OPTIMIZATION): Change to
7332 TARGET_OPTION_OPTIMIZATION_TABLE.
7333 * config/arm/arm.h (CAN_DEBUG_WITHOUT_FP): Remove.
7334 * config/avr/avr.c (avr_option_optimization_table,
7335 TARGET_OPTION_OPTIMIZATION_TABLE): New.
7336 * config/avr/avr.h (CAN_DEBUG_WITHOUT_FP): Remove.
7337 * config/cris/cris.c (cris_option_optimization): Change to
7338 cris_option_optimization_table.
7339 (TARGET_OPTION_OPTIMIZATION): Change to
7340 TARGET_OPTION_OPTIMIZATION_TABLE.
7341 * config/crx/crx.c (crx_option_optimization): Change to
7342 crx_option_optimization_table.
7343 (TARGET_OPTION_OPTIMIZATION): Change to
7344 TARGET_OPTION_OPTIMIZATION_TABLE.
7345 * config/crx/crx.h (CAN_DEBUG_WITHOUT_FP): Remove.
7346 * config/fr30/fr30.c (fr30_option_optimization_table,
7347 TARGET_OPTION_OPTIMIZATION_TABLE): New.
7348 * config/fr30/fr30.h (CAN_DEBUG_WITHOUT_FP): Remove.
7349 * config/frv/frv.c (frv_option_optimization_table,
7350 TARGET_OPTION_OPTIMIZATION_TABLE): New.
7351 * config/frv/frv.h (CAN_DEBUG_WITHOUT_FP): Remove.
7352 * config/h8300/h8300.c (h8300_option_optimization): Change to
7353 h8300_option_optimization_table.
7354 (TARGET_OPTION_OPTIMIZATION): Change to
7355 TARGET_OPTION_OPTIMIZATION_TABLE.
7356 * config/h8300/h8300.h (CAN_DEBUG_WITHOUT_FP): Remove.
7357 * config/i386/i386.c (ix86_option_optimization): Change to
7358 ix86_option_optimization_table.
7359 (TARGET_OPTION_OPTIMIZATION): Change to
7360 TARGET_OPTION_OPTIMIZATION_TABLE.
7361 * config/i386/sol2-10.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define
7363 * config/ia64/ia64.c (ia64_option_optimization): Change to
7364 ia64_option_optimization_table.
7365 (TARGET_OPTION_OPTIMIZATION): Change to
7366 TARGET_OPTION_OPTIMIZATION_TABLE.
7367 * config/ia64/ia64.h (CAN_DEBUG_WITHOUT_FP): Remove.
7368 * config/ia64/vms.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define as
7370 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
7371 TARGET_OPTION_OPTIMIZATION_TABLE): New.
7372 * config/iq2000/iq2000.h (CAN_DEBUG_WITHOUT_FP): Remove.
7373 * config/lm32/lm32.c (lm32_option_optimization_table,
7374 TARGET_OPTION_OPTIMIZATION_TABLE): New.
7375 * config/lm32/lm32.h (CAN_DEBUG_WITHOUT_FP): Remove.
7376 * config/m32r/m32r.c (m32r_option_optimization): Change to
7377 m32r_option_optimization_table.
7378 (TARGET_OPTION_OPTIMIZATION): Change to
7379 TARGET_OPTION_OPTIMIZATION_TABLE.
7380 * config/m32r/m32r.h (SUBTARGET_OPTIMIZATION_OPTIONS,
7381 CAN_DEBUG_WITHOUT_FP): Remove.
7382 * config/mcore/mcore.c (mcore_option_optimization): Change to
7383 mcore_option_optimization_table.
7384 (TARGET_OPTION_OPTIMIZATION): Change to
7385 TARGET_OPTION_OPTIMIZATION_TABLE.
7386 * config/mep/mep.c (mep_option_optimization): Change to
7387 mep_option_optimization_table.
7388 (TARGET_OPTION_OPTIMIZATION): Change to
7389 TARGET_OPTION_OPTIMIZATION_TABLE.
7390 * config/mep/mep.h (CAN_DEBUG_WITHOUT_FP): Remove.
7391 * config/microblaze/microblaze.c
7392 (microblaze_option_optimization_table,
7393 TARGET_OPTION_OPTIMIZATION_TABLE): New.
7394 * config/microblaze/microblaze.h (CAN_DEBUG_WITHOUT_FP): Remove.
7395 * config/mips/mips.c (mips_option_optimization_table,
7396 TARGET_OPTION_OPTIMIZATION_TABLE): New.
7397 * config/mips/mips.h (CAN_DEBUG_WITHOUT_FP): Remove.
7398 * config/mmix/mmix.c (mmix_option_optimization): Change to
7399 mmix_option_optimization_table.
7400 (TARGET_OPTION_OPTIMIZATION): Change to
7401 TARGET_OPTION_OPTIMIZATION_TABLE.
7402 * config/mmix/mmix.h (CAN_DEBUG_WITHOUT_FP): Remove.
7403 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
7404 TARGET_OPTION_OPTIMIZATION_TABLE): New.
7405 * config/mn10300/mn10300.h (CAN_DEBUG_WITHOUT_FP): Remove.
7406 * config/pa/pa.c (pa_option_optimization_table,
7407 TARGET_OPTION_OPTIMIZATION_TABLE): New.
7408 * config/pa/pa.h (CAN_DEBUG_WITHOUT_FP): Remove.
7409 * config/pdp11/pdp11.c (pdp11_option_optimization): Change to
7410 pdp11_option_optimization_table.
7411 (TARGET_OPTION_OPTIMIZATION): Change to
7412 TARGET_OPTION_OPTIMIZATION_TABLE.
7413 * config/picochip/picochip.c (picochip_option_optimization_table,
7414 TARGET_OPTION_OPTIMIZATION_TABLE): New.
7415 * config/picochip/picochip.h (CAN_DEBUG_WITHOUT_FP): Remove.
7416 * config/rs6000/rs6000.c (rs6000_option_optimization_table,
7417 TARGET_OPTION_OPTIMIZATION_TABLE): New.
7418 * config/rs6000/rs6000.h (CAN_DEBUG_WITHOUT_FP): Remove.
7419 * config/rx/rx.c (rx_option_optimization_table,
7420 TARGET_OPTION_OPTIMIZATION_TABLE): New.
7421 * config/rx/rx.h (CAN_DEBUG_WITHOUT_FP): Remove.
7422 * config/s390/s390.c (s390_option_optimization): Change to
7423 s390_option_optimization_table.
7424 (s390_option_override): Update comment.
7425 (TARGET_OPTION_OPTIMIZATION): Change to
7426 TARGET_OPTION_OPTIMIZATION_TABLE.
7427 * config/s390/s390.h (CAN_DEBUG_WITHOUT_FP): Remove.
7428 * config/score/score.c (score_option_optimization_table,
7429 TARGET_OPTION_OPTIMIZATION_TABLE): New.
7430 * config/score/score.h (CAN_DEBUG_WITHOUT_FP): Remove.
7431 * config/sh/sh.c (sh_option_optimization): Change to
7432 sh_option_optimization_table.
7433 (TARGET_OPTION_OPTIMIZATION): Change to
7434 TARGET_OPTION_OPTIMIZATION_TABLE.
7435 (sh_option_override): Set MASK_SAVE_ALL_TARGET_REGS here.
7436 (sh_option_override, expand_block_move, multcosts, find_barrier,
7437 barrier_align): Use optimize_size instead of TARGET_SMALLCODE.
7438 * config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Remove.
7439 (LOOP_ALIGN, TRAMPOLINE_ALIGNMENT, MOVE_BY_PIECES_P,
7440 STORE_BY_PIECES_P, SH_DYNAMIC_SHIFT_COST): Use optimize_size
7441 instead of TARGET_SMALLCODE.
7442 * config/sh/sh.opt (mspace): Make into an alias for -Os.
7443 * config/sparc/sparc.c (sparc_option_optimization_table,
7444 TARGET_OPTION_OPTIMIZATION_TABLE): New.
7445 * config/sparc/sparc.h (CAN_DEBUG_WITHOUT_FP): Remove.
7446 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
7447 TARGET_OPTION_OPTIMIZATION_TABLE): New.
7448 * config/stormy16/stormy16.h (CAN_DEBUG_WITHOUT_FP): Remove.
7449 * config/v850/v850.c (v850_option_optimization): Change to
7450 v850_option_optimization_table.
7451 (TARGET_OPTION_OPTIMIZATION): Change to
7452 TARGET_OPTION_OPTIMIZATION_TABLE.
7453 * config/v850/v850.h (CAN_DEBUG_WITHOUT_FP): Remove.
7454 * config/xtensa/xtensa.c (xtensa_option_optimization): Change to
7455 xtensa_option_optimization_table.
7456 (TARGET_OPTION_OPTIMIZATION): Change to
7457 TARGET_OPTION_OPTIMIZATION_TABLE.
7458 * config/xtensa/xtensa.h (CAN_DEBUG_WITHOUT_FP): Remove.
7460 2010-10-21 Iain Sandoe <iains@gcc.gnu.org>
7462 Based on the CFString implementation in FSF apple/trunk branch.
7464 * target.def (objc_construct_string): New Hook.
7465 * doc/tm.texi (objc_construct_string): Document.
7466 * doc/tm.texi.in (TARGET_OBJC_CONSTRUCT_STRING): New.
7467 * config/t-darwin: Amend build rules for darwin.o.
7468 * config/darwin.opt: Add cfstrings flags.
7469 * config/darwin-c.c: Define __CONSTANT_CFSTRINGS__.
7470 (darwin_objc_construct_string): New.
7471 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Define.
7472 * config/i386/i386.c (ix86_init_builtins): Add SUBTARGET_INIT_BUILTINS.
7473 * config/darwin-protos.h (darwin_init_cfstring_builtins): New prototype.
7474 (darwin_fold_builtin): Likewise.
7475 (darwin_build_constant_cfstring): Likewise.
7476 (darwin_objc_construct_string): Likewise.
7477 (darwin_cfstring_p): Likewise.
7478 (darwin_enter_string_into_cfstring_table): Likewise.
7479 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS) Update for CFString.
7480 * config/darwin.c (darwin_running_cxx): New var.
7481 (machopic_select_section): Return cfstring_constant_object_section.
7482 (darwin_override_options): Set darwin_running_cxx.
7483 (add_builtin_field_decl): New.
7484 (darwin_init_cfstring_builtins): New.
7485 (darwin_build_constant_cfstring): New.
7486 (darwin_fold_builtin): New.
7487 (cfstring_hash): New.
7489 (darwin_enter_string_into_cfstring_table): New.
7490 * config/darwin-sections.def (cfstring_constant_object_section): New.
7491 * config/darwin.h (TARGET_FOLD_BUILTIN): Define.
7492 (TARGET_OBJC_CONSTRUCT_STRING): Define.
7494 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
7496 * config/alpha/alpha.c (alpha_build_builtin_va_list): Use
7497 TYPE_STUB_DECL instead of TREE_CHAIN.
7498 * config/i386/i386.c (ix86_build_builtin_va_list_abi): Likewise.
7499 * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Likewise.
7500 * config/s390/s390.c (s390_build_builtin_va_list): Likewise.
7501 * config/sh/sh.c (sh_build_builtin_va_list): Likewise.
7502 * config/spu/spu.c (spu_build_builtin_va_list): Likewise.
7503 * config/stormy16/stormy16.c (xstormy16_build_builtin_va_list):
7505 * config/xtensa/xtensa.c (xtensa_build_builtin_va_list): Likewise.
7507 2010-10-22 Jie Zhang <jie@codesourcery.com>
7509 * expr.c (emit_group_load_1): Update calls to extract_bit_field.
7510 (copy_blkmode_from_reg): Likewise.
7511 (read_complex_part): Likewise.
7512 (expand_expr_real_1): Calculate packedp and pass it to
7514 * expr.h (extract_bit_field): Update declaration.
7515 * calls.c (store_unaligned_arguments_into_pseudos): Update call
7516 to extract_bit_field.
7517 * expmed.c (extract_fixed_bit_field): Update calls to
7518 extract_fixed_bit_field.
7519 (store_split_bit_field): Likewise.
7520 (extract_bit_field_1): Add new argument packedp.
7521 (extract_bit_field): Add new argument packedp.
7522 (extract_fixed_bit_field): Add new argument packedp and let
7523 packed attribute override volatile.
7524 * stmt.c (expand_return): Update call to extract_bit_field.
7526 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
7528 * config/spu/spu.c (spu_function_arg): Dereference CUM parameter.
7530 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
7532 * ddg.c (add_cross_iteration_register_deps): Call gcc_assert instead
7533 of gcc_checking_assert.
7534 * sel-sched.c (code_motion_process_successors): Likewise.
7536 2010-10-21 Eric Botcazou <ebotcazou@adacore.com>
7538 * cfgcleanup.c (try_forward_edges): Do not throw away previous steps
7539 when stopping because of a different locus on edge or insn.
7540 (try_optimize_cfg): Add comment.
7541 * cfgrtl.c (rtl_merge_blocks): Tweak log message. If the destination
7542 block is a forwarder block, propagate locus on the edge.
7543 (cfg_layout_merge_blocks): Likewise.
7545 2010-10-21 Uros Bizjak <ubizjak@gmail.com>
7548 * config/i386/i386.md (*pushti2): New insn pattern.
7549 (pushti2 splitter): New insn splitter.
7550 (*push<mode>2): Macroize insn pattern from *push{di,ti}2 using
7553 2010-10-21 Paul Koning <ni1d@arrl.net>
7555 * config/pdp11/pdp11-protos.md (arith_operand,
7556 const_immediate_operand, expand_shift_operand,
7557 immediate15_operand): Delete
7558 * config/pdp11/pdp11.c: Ditto.
7559 * config/pdp11/pdp11.h (REG_CLASS_FROM_LETTER,
7560 CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P,
7561 EXTRA_CONSTRAINT): Delete.
7562 * config/pdp11/pdp11.md (various): Use standard constraints
7563 instead of removed ones.
7564 * config/pdp11/constraints.md: New file.
7565 * config/pdp11/predicates.md: New file.
7567 2010-10-21 Bingfeng Mei <bmei@broadcom.com>
7570 * alias.c (true_dependence_1): Remove obsolete check for QImode.
7571 (may_alias_p): Ditto.
7573 2010-10-21 Martin Jambor <mjambor@suse.cz>
7575 PR tree-optimization/45875
7576 * tree.c (get_binfo_at_offset): Remove initial zero offset test.
7578 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
7580 * tree-into-ssa.c (rewrite_update_enter_block): Remove unused
7582 (create_new_def_for): Likewise.
7584 2010-10-21 Nick Clifton <nickc@redhat.com>
7586 * config/mn10300/mn10300.c: Fold code to 80-character width.
7587 Replace GET_CODE (foo) == REG with REG_P (foo). Likewise for
7588 MEM, CONST_INT and CONST_DOUBLE.
7589 (targetm): Move initialization to end of file.
7590 (print_operand): Rename to mn10300_print_operand.
7591 (print_operand_address): Rename to mn10300_print_operand_address.
7592 (can_use_return_insn): Rename to mn10300_can_use_return_insn.
7593 (expand_prologue): Rename to mn10300_expand_prologue.
7594 (expand_epilogue): Rename to mn10300_expand_epilogue.
7595 (initial_offset): Rename to mn10300_initial_offset.
7596 (function_arg): Rename to mn10300_function_arg.
7597 (mask_ok_for_mem_btst): Rename to mn10300_mask_ok_for_mem_btst.
7598 (symbolic_operand): Rename to mn10300_symbolic_operand.
7599 (legitimize_pic_address): Rename to mn10300_legitimize_pic_address.
7600 (legitimate_pic_operand_p): Rename to mn10300_legitimate_pic_operand_p.
7601 * config/mn10300/mn10300-protos.h: Update prototypes.
7602 * config/mn10300/mn10300.h: Fold code to 80-character width.
7603 Replace GET_CODE (foo) == REG with REG_P (foo). Likewise for
7604 MEM, CONST_INT and CONST_DOUBLE.
7605 (CPP_SPEC): Move to...
7606 (TARGET_CPU_CPP_BUILTINS): ... here.
7607 * config/mn10300/mn10300.md: Fold code to 80-character width.
7608 Replace GET_CODE (foo) == REG with REG_P (foo). Likewise for
7609 MEM, CONST_INT and CONST_DOUBLE.
7611 2010-10-21 Ira Rosen <irar@il.ibm.com>
7613 PR tree-optimization/46049
7614 PR tree-optimization/46052
7615 * tree-vectorizer.h (enum stmt_vec_info_type): Add new value for shift.
7616 (vect_get_slp_defs): Add arguments.
7617 * tree-vect-loop.c (vect_create_epilog_for_reduction): Pass scalar
7618 operands to vect_get_slp_defs.
7619 (vectorizable_reduction): Fix comment, pass scalar operands to
7621 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use operand's
7622 type to determine number of units in the created vector.
7623 (vect_get_vec_defs): Pass scalar operands to vect_get_slp_defs.
7624 (vectorizable_conversion): Fix comment.
7625 (vectorizable_shift): New function.
7626 (vectorizable_operation): Move code that handles shifts to
7628 (vectorizable_type_demotion): Fix comment, pass scalar operands to
7630 (vectorizable_type_promotion, vectorizable_store): Likewise.
7631 (vectorizable_condition): Fix comment.
7632 (vect_analyze_stmt): Call vectorizable_shift.
7633 (vect_transform_stmt): Likewise.
7634 * tree-vect-slp.c (vect_get_constant_vectors): Add new argument.
7635 Use it as the operand to create vectors for, except reduction
7636 initial definition and store. Use operands type.
7637 (vect_get_slp_defs): Add new arguments. Pass them to
7638 vect_get_constant_vectors.
7640 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
7642 * basic-block.h (single_succ_edge): Use gcc_checking_assert.
7643 (single_pred_edge, ei_container, ei_next, ei_prev): Likewise.
7644 * cfghooks.c (fixup_reorder_chain): Likewise.
7645 * cfgrtl.c (cfg_layout_merge_blocks): Likewise.
7646 * cgraph.c (cgraph_add_thunk): Likewise.
7647 (cgraph_create_edge_1): Likewise.
7648 (cgraph_create_virtual_clone): Likewise.
7649 * ddg.c (add_cross_iteration_register_deps): Likewise.
7650 * dwarf2out.c (modified_type_die): Likewise.
7651 * emit-rtl.c (set_mem_alias_set): Likewise.
7652 * ggc-zone.c (zone_allocate_marks): Likewise.
7653 * gimple-iterator.c (gsi_move_to_bb_end): Likewise.
7654 * gimple.c (iterative_hash_gimple_type): Likewise.
7655 * graphite-scop-detection.c (create_single_entry_edge): Likewise.
7656 (create_single_exit_edge): Likewise.
7657 * haifa-sched.c (choose_ready): Likewise.
7658 * lto-streamer-in.c (input_gimple_stmt): Likewise.
7659 * passes.c (execute_todo): Likewise.
7660 * sched-ebb.c (begin_schedule_ready): Likewise.
7661 * sel-sched.c (code_motion_process_successors): Likewise.
7662 * tree-call-cdce.c (gen_conditions_for_pow): Likewise.
7663 * tree-cfg-cleanup.c (tree_forwarder_block_p): Likewise.
7664 * tree-flow-inline.h (link_imm_use, move_use_after_head): Likewise.
7665 (phi_arg_index_from_use, phi_ssa_name_p): Likewise.
7666 * tree-into-ssa.c (insert_updated_phi_nodes_for): Likewise.
7667 * tree-ssa-coalesce.c (ssa_conflicts_test_p): Likewise.
7668 (ssa_conflicts_add): Likewise.
7669 * tree-ssa-copy.c (replace_exp): Likewise.
7670 * tree-ssa-dom.c (eliminate_redundant_computations): Likewise.
7671 * tree-ssa-forwprop.c (simple_gimple_switch): Likewise.
7672 * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
7673 * tree-ssa-pre.c (bitmap_value_insert_into_set): Likewise.
7674 (compute_antic): Likewise.
7675 * tree-ssa-ter.c (add_to_partition_kill_list): Likewise.
7676 (add_dependence): Likewise.
7677 (process_replaceable, kill_expr, find_replaceable_exprs): Likewise.
7678 * tree-vrp.c (supports_overflow_infinity): Likewise.
7679 (make_overflow_infinity, negative_overflow_infinity): Likewise.
7680 (avoid_overflow_infinity, register_new_assert_for): Likewise.
7681 (process_assert_insertions_for): Likewise.
7682 * var-tracking.c (dv_is_value_p, dv_as_decl, dv_from_decl): Likewise.
7683 (dv_from_value, variable_union, find_loc_in_1pdv): Likewise.
7684 (intersect_loc_chains, variable_merge_over_cur): Likewise.
7686 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
7688 * cfgloop.c (flow_loops_find): Call bb_has_abnormal_pred.
7689 * reload1.c (has_nonexceptional_receiver): Likewise.
7690 * tree-into-ssa.c (rewrite_update_enter_block): Likewise.
7691 (create_new_def_for): Likewise.
7692 * tree-cfgcleanup.c (remove_forwarder_block): Likewise.
7693 (merge_phi_nodes): Likewise.
7694 (has_abnormal_incoming_edge_p): Delete.
7696 2010-10-21 H.J. Lu <hongjiu.lu@intel.com>
7698 * config/i386/sse.md (ssescalarmodesuffix): Add V8SI and V4DI.
7700 2010-10-21 Richard Guenther <rguenther@suse.de>
7701 Michael Matz <matz@suse.de>
7703 PR tree-optimization/45764
7704 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
7705 Adjust initial misalignment for negative DR_STEP.
7706 (vect_find_same_alignment_drs): Two DRs with different DR_STEP
7707 do not have the same alignment over the whole iteration domain.
7709 2010-10-21 Richard Guenther <rguenther@suse.de>
7711 PR tree-optimization/46111
7712 * tree-parloops.c (take_address_of): Re-organize for MEM_REF.
7714 2010-10-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7716 * config/s390/s390.md (*xordi3_cc): Mark xgrk as z196 only.
7718 2010-10-21 Tristan Gingold <gingold@adacore.com>
7720 * config/vms/vms-crtl.h (CRTL_NAMES): Add new translations.
7721 * config/vms/vms-crtl-64.h (CRTL_NAMES): Ditto.
7723 2010-10-21 Tristan Gingold <gingold@adacore.com>
7725 * config/alpha/vms-unwind.h (alpha_vms_fallback_frame_state): Set
7727 * config/alpha/alpha.c (alpha_function_arg): Adjust call.
7729 2010-10-21 Tristan Gingold <gingold@adacore.com>
7731 * config/ia64/vms64.h (TARGET_DEFAULT): Add MASK_FUSED_MADD.
7732 * config/ia64/vms.h (TARGET_DEFAULT): Ditto.
7734 2010-10-20 Nathan Froyd <froydnj@codesourcery.com>
7736 * basic-block.h (find_fallthru_edge): Define.
7737 * cfgcleanup.c (merge_blocks_move): Use it.
7738 (try_crossjump_bb): Likewise.
7739 * cfglayout.c (fixup_reorder_chains): Likewise.
7740 (fixup_fallthru_exit_predecessor): Likewise.
7741 * cfgrtl.c (rtl_split_edge): Likewise.
7742 (rtl_verify_flow_info): Likewise.
7743 * function.c (thread_prologue_and_epilogue_insns): Likewise.
7744 * gimple-pretty-print.c (dump_implicit_edges): Likewise.
7745 * ifcvt.c (block_fallthru): Likewise.
7746 * reload1.c (fixup_abnormal_edges): Likewise.
7747 * sched-ebb.c (being_schedule_ready): Likewise.
7748 (schedule_ebb): Likwise.
7749 * sched-rgn.c (find_single_block_region): Likewise.
7750 * sel-sched-ir.c (bb_ends_ebb_p): Likewise.
7751 * tree-complex.c (expand_complex_move): Likewise.
7752 * sched-int.h (find_fallthru_edge): Rename to...
7753 (find_fallthru_edge_from): ...this.
7754 * haifa-sched.c (find_fallthru_edge): Rename to...
7755 (find_fallthru_edge_from): ...this. Use new find_fallthru_edge.
7756 (init_before_recovery): Call find_fallthru_edge_from.
7757 * sel-sched-ir.c (merge_fences): Likewise.
7758 * sel-sched.c (in_fallthru_bb_p): Likewise.
7759 (move_cond_jump): Likewise.
7761 2010-10-20 Paul Koning <ni1d@arrl.net>
7763 * config/pdp11/pdp11.md (various): Fix conditions on a number of
7764 insn to check for target 11/40 or higher.
7766 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
7768 * parser.c (c_parser_objc_method_type): Mark inline. Return a
7769 bool instead of a tree.
7770 (c_parser_objc_method_decl): Added bool argument. Updated call to
7771 objc_build_method_signature.
7772 (c_parser_objc_method_definition): Do not call
7773 objc_set_method_type. Updated calls to c_parser_objc_method_type,
7774 c_parser_objc_method_decl and objc_start_method_definition.
7775 (c_parser_objc_methodproto): Do not call objc_set_method_type.
7776 Updated calls to c_parser_objc_method_type,
7777 c_parser_objc_method_decl and objc_add_method_declaration.
7779 2010-10-20 Jakub Jelinek <jakub@redhat.com>
7781 PR tree-optimization/45919
7782 * tree-ssa-ccp.c (fold_nonarray_ctor_reference): Handle flexible
7785 PR tree-optimization/46066
7786 * tree-parloops.c (create_parallel_loop): Use gsi_last_nondebug_bb
7787 instead of gsi_last_bb.
7789 2010-10-20 DJ Delorie <dj@redhat.com>
7791 * config/m32c/m32c.c (m32c_option_override): Always disable
7792 function-cse in 16-bit mode. Indirect calls are always worse than
7793 direct calls as there is no 16-bit indirect call opcode.
7794 (m32c_override_options_after_change): New, likewise.
7796 2010-10-20 Nathan Froyd <froydnj@codesourcery.com>
7798 * ifcvt.c (noce_emit_cmove): If both of the values are SUBREGs, try
7799 emitting the conditional move in the inner mode of the SUBREG.
7801 2010-10-20 Anatoly Sokolov <aesok@post.ru>
7803 * config/ia64/ia64.h (PREFERRED_RELOAD_CLASS): Remove macros.
7804 * config/ia64/ia64-protos.h (ia64_preferred_reload_class): Remove.
7805 * config/ia64/ia64.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
7806 (ia64_preferred_reload_class): Make static. Change rclass argument
7807 and result types from enum reg_class to reg_class_t.
7809 2010-10-20 Pat Haugen <pthaugen@us.ibm.com>
7811 * tree-ssa-ter.c (find_replaceable_in_bb): Allow replacement over
7812 call for single operand expression.
7814 2010-10-20 Eric Botcazou <ebotcazou@adacore.com>
7816 * tree-optimize.c (execute_fixup_cfg): Purge dead abnormal call edges
7817 if there is a call statement to pure or const function in the block.
7819 2010-10-20 Paul Koning <pkoning@equallogic.com>
7821 Fix several build errors for pdp11 target.
7822 * config/pdp11/pdp11.md (*cmpdf): Fix tstd operands.
7823 (cbranchdf4): Conditional on TARGET_FPU.
7824 (movdf): Ditto; correct alternatives check.
7825 (movmemhi): Fix predicate and constraint.
7826 * config/pdp11/pdp11.h (HARD_REGNO_MODE_OK): Handle 64 bit mode.
7828 2010-10-20 Richard Guenther <rguenther@suse.de>
7831 * lto-streamer-out.c (output_gimple_stmt): Fix typo.
7832 * tree-cfg.c (verify_gimple_call): Properly get the call fndecl.
7833 (verify_gimple_assign_single): Disable ADDR_EXPR type check
7836 2010-10-20 Vladimir Makarov <vmakarov@redhat.com>
7839 * ira-emit.c (store_can_be_removed_p): Return false instead of
7842 2010-10-20 Dmitry Melnik <dm@ispras.ru>
7844 * fold-const.c (fold_binary_loc): New transformation.
7846 2010-10-20 H.J. Lu <hongjiu.lu@intel.com>
7849 * config/i386/sse.md (reduc_splus_v8sf): Updated.
7850 (reduc_splus_v4df): Likewise.
7852 2010-10-20 Richard Guenther <rguenther@suse.de>
7854 PR tree-optimization/45860
7855 * tree-ssa-phiopt.c (cond_store_replacement): Do not do
7856 conditional store replacement for non-register type stores.
7858 2010-10-20 Eric Botcazou <ebotcazou@adacore.com>
7860 * stor-layout.c (skip_simple_constant_arithmetic): New function.
7861 (self_referential_size): Use it instead of skip_simple_arithmetic.
7863 2010-10-20 Olivier Hainque <hainque@adacore.com>
7865 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p):
7866 If the current function calls eh_return, claim live all registers
7867 that we need to check for liveness otherwise.
7869 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
7871 * c-decl.c (c_write_global_declarations): Call
7872 objc_write_global_declarations when compiling Objective-C.
7873 * c-lang.c (finish_file): Removed.
7875 2010-10-19 DJ Delorie <dj@redhat.com>
7877 * doc/tm.texi.in (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): New.
7878 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Change to hook.
7879 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Likewise.
7880 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Likewise.
7881 * doc/tm.texi: Regenerate.
7882 * targhooks.h (default_label_align_after_barrier_max_skip,
7883 default_loop_align_max_skip, default_label_align_max_skip,
7884 default_jump_align_max_skip): Declare.
7885 * target.def (label_align_after_barrier_max_skip): New.
7886 (loop_align_max_skip): New.
7887 (label_align_max_skip): New.
7888 (jump_align_max_skip): New.
7889 * system.h (poison): Add those macros to the list.
7890 * final.c (LABEL_ALIGN_MAX_SKIP): Remove.
7891 (LOOP_ALIGN_MAX_SKIP): Remove.
7892 (LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Remove.
7893 (JUMP_ALIGN_MAX_SKIP): Remove.
7894 (default_label_align_after_barrier_max_skip): New.
7895 (default_loop_align_max_skip): New.
7896 (default_label_align_max_skip): New.
7897 (default_jump_align_max_skip): New.
7898 (compute_alignments): Use the new hooks.
7899 (shorten_branches): Likewise.
7901 2010-10-19 Richard Henderson <rth@redhat.com>
7903 * config/i386/i386.c (bdesc_multi_arg): Use fma4i_fmadd_<mode>.
7904 * config/i386/sse.md (fma<mode>4): Enable for FMA & SSE_MATH.
7905 (fma4i_fmadd_<mode>): New.
7906 (*split_fma, *split_fms, *split_fnma, *split_fnms): Rename from
7907 fma4_fm*_<mode> and adjust to be pre-reload splitters to the
7908 standard fma patterns.
7909 (fmaddsub_<mode>): Rename from fma4i_fmaddsub_<mode> and
7911 (*fma_fmadd_<mode>, *fma_fmsub_<mode>): New.
7912 (*fma_fmadd_<mode>, *fma_fmsub_<mode>): New.
7913 (*fma_fmaddsub_<mode>, *fma_fmsubadd_<mode>): New.
7915 2010-10-19 Paul Koning <pkoning@equallogic.com>
7917 * lower-subreg.c (resolve_shift_zext): Delete conditional code for
7918 WORDS_BIG_ENDIAN != BYTES_BIG_ENDIAN.
7920 2010-10-19 Richard Henderson <rth@redhat.com>
7922 * config/ia64/ia64.md (fmasf4, *fmssf4, *nfmasf4): New.
7923 (fmadf4, *fmsdf4, *nfmadf4): New.
7924 (fmaxf4, *fmsxf4, *nfmaxf4): New.
7926 2010-10-19 Michael Eager <eager@eagercon.com>
7928 * config/microblaze/microblaze.c (TARGET_EXCEPT_UNWIND_INFO):
7929 Use sjlj unwind info for exceptions.
7931 2010-10-19 Francois-Xavier Coudert<fxcoudert@gcc.gnu.org>
7934 * dwarf2out.c (add_calling_convention_attribute): Flag main
7935 Fortran subroutine with DW_AT_main_subprogram.
7937 2010-10-19 Nick Clifton <nickc@redhat.com>
7939 * config/rx/rx.c (rx_function_value): Small integer types are
7941 (rx_promote_function_mode): New function.
7942 (TARGET_PROMOTE_FUNCTION_MODE): Define.
7944 2010-10-19 Nick Clifton <nickc@redhat.com>
7946 * config/mep/mep.c (mep_print_operand): Use
7947 targetm.strip_name_encoding.
7948 (mep_output_aligned_common): Likewise.
7950 2010-10-19 Basile Starynkevitch <basile@starynkevitch.net>
7952 * gengtype.c (new_structure): Remove ad-hoc "location_s" processing.
7954 2010-10-18 Richard Henderson <rth@redhat.com>
7956 * simplify-rtx.c (simplify_ternary_operation) [FMA]: Simplify
7957 (fma (neg a) (neg b) c) and (fma a (neg b) c).
7959 2010-10-18 Richard Henderson <rth@redhat.com>
7961 * config/i386/i386.c (IX86_BUILTIN_VFMSUBSS, IX86_BUILTIN_VFMSUBSD,
7962 IX86_BUILTIN_VFMSUBPS, IX86_BUILTIN_VFMSUBPD,
7963 IX86_BUILTIN_VFMSUBADDPS, IX86_BUILTIN_VFMSUBADDPD,
7964 IX86_BUILTIN_VFNMADDSS, IX86_BUILTIN_VFNMADDSD,
7965 IX86_BUILTIN_VFNMADDPS, IX86_BUILTIN_VFNMADDPD,
7966 IX86_BUILTIN_VFNMSUBSS, IX86_BUILTIN_VFNMSUBSD,
7967 IX86_BUILTIN_VFNMSUBPS, IX86_BUILTIN_VFNMSUBPD,
7968 IX86_BUILTIN_VFMSUBADDPS256, IX86_BUILTIN_VFMSUBADDPD256,
7969 IX86_BUILTIN_VFNMADDPS256, IX86_BUILTIN_VFNMADDPD256,
7970 IX86_BUILTIN_VFNMSUBPS256, IX86_BUILTIN_VFNMSUBPD256): Remove.
7971 (bdesc_multi_arg): Remove the corresponding builtins.
7972 * config/i386/i386.md (UNSPEC_FMA4_INTRINSIC): Remove.
7973 (UNSPEC_FMA4_FMSUBADD): Remove.
7974 (UNSPEC_FMADDSUB): Rename from UNSPEC_FMA4_FMADDSUB.
7975 * config/i386/sse.md (FMA4MODEF4): Remove.
7977 (fma<mode>4): New expander.
7978 (*fma4i_fmadd_<mode>): Macroize from fma4i_fmadd<mode>4 patterns,
7979 and use FMA rtx code instead of UNSPEC_FMA4_INTRINSIC.
7980 (*fma4i_fmsub_<mode>): Similarly.
7981 (*fma4i_fnmadd_<mode>): Similarly.
7982 (*fma4i_fnmsub_<mode>): Similarly.
7983 (fma4i_vmfmadd_<mode>): Scalar patterns zero-extend, not merge
7984 with the first operand.
7985 (fma4i_fmaddsub_<mode>): Represent with UNSPEC_FMADDSUB instead
7986 of explicit arithmetic. Macroize with AVXMODEF2P.
7987 (*fma4i_fmsubadd_<mode>): Represent with UNSPEC_FMADDSUB + NEG.
7988 (xop_frcz<mode>2): Macroize with FMAMODE.
7989 (xop_vmfrcz<mode>2): Scalar patterns zero-extend, not merge with
7991 * config/i386/fma4intrin.h (_mm_msub_ps): Use vfmadd intrinsic with
7993 (_mm_msub_pd, _mm_msub_ss, _mm_msub_sd): Likewise.
7994 (_mm_nmacc_ps, _mm_nmacc_pd, _mm_nmacc_ss, _mm_nmacc_sd): Likewise.
7995 (_mm_nmsub_ps, _mm_nmsub_pd, _mm_nmsub_ss, _mm_nmsub_sd): Likewise.
7996 (_mm256_msub_ps, _mm256_msub_pd): Likewise.
7997 (_mm256_nmacc_ps, _mm256_nmacc_pd): Likewise.
7998 (_mm256_nmsub_ps, _mm256_nmsub_pd): Likewise.
7999 (_mm_msubadd_ps): Use vfmaddsub intrinsic with extra negation.
8000 (_mm_msubadd_pd, _mm256_msubadd_ps, _mm256_msubadd_pd): Likewise.
8002 2010-10-18 Bernd Schmidt <bernds@codesourcery.com>
8004 PR rtl-optimization/45966
8005 * combine.c (try_combine): If added_sets_2, deal with the case
8006 where i0 feeds i1 and i1 feeds i2.
8008 2010-10-18 Jan Hubicka <jh@suse.cz>
8010 * ipa.c (cgraph_externally_visible_p): Handle externally visible and
8011 preserve flags before trying to guess on visibility.
8012 (varpool_externally_visible_p): New function.
8013 (function_and_variable_visibility): Use it.
8015 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
8017 Implemented parsing @synthesize and @dynamic for Objective-C.
8018 * c-parser.c (c_parser_external_declaration): Recognize
8019 RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
8020 (c_parser_objc_at_synthesize_declaration): New.
8021 (c_parser_objc_at_dynamic_declaration): New.
8023 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
8025 * c-parser.c (c_parser_objc_class_declaration): After finding an
8026 error, parse the whole declaration then reset parser->error.
8028 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
8031 * tree.h (mode_has_fma): Delete, move to c-cppbuiltins.c.
8032 * builtins.c (mode_has_fma): Ditto.
8034 2010-10-18 Steve Ellcey <sje@cup.hp.com>
8038 * config/ia64/ia64.c (rws_access_regno): Remove predicate check.
8040 2010-10-18 Joseph Myers <joseph@codesourcery.com>
8042 * config/i386/i386.c (ix86_option_override_internal): Define and
8043 use USE_X86_64_FRAME_POINTER for 64-bit flag_omit_frame_pointer
8045 * config/i386/sol2-10.h (SUBTARGET_OVERRIDE_OPTIONS): Remove.
8046 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Define.
8048 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
8050 Merge from 'apple/trunk' branch on FSF servers.
8051 * c-parser.c (c_parser_objc_type_name): Adapted to new parser the
8052 following Objective-C change:
8054 2005-10-10 Fariborz Jahanian <fjahanian@apple.com>
8057 * c-parse.in (objc_quals): Build objc qualifier list same way
8060 2010-10-18 Jan Hubicka <jh@suse.cz>
8062 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p,
8063 function_and_variable_visibility): Revert accidental commit.
8065 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
8067 Merge from 'apple/trunk' branch on FSF servers.
8068 * c-parser.c (c_parser_typeof_specifier): Adapted to new parser
8069 the following Objective-C change:
8071 2005-10-07 Fariborz Jahanian <fjahanian@apple.com>
8074 * c-parse.in (typespec_nonreserved_nonattr): Remove volatile from
8075 'volatilized' type used in a typeof operator.
8077 2010-10-18 Eric Botcazou <ebotcazou@adacore.com>
8079 * tree-flow.h (gimple_purge_all_dead_abnormal_call_edges): Declare.
8080 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): Move around and
8081 rewrite modelled on gimple_purge_dead_eh_edges.
8082 (gimple_purge_all_dead_abnormal_call_edges): New function.
8083 * tree-inline.c (expand_call_inline): Call gimple_purge_dead_eh_edges
8084 directly instead of through gimple_purge_dead_abnormal_call_edges.
8085 * tree-ssa-pre.c (need_ab_cleanup): New static variable.
8086 (eliminate): Set bit in need_ab_cleanup for the basic block if we have
8087 removed AB side-effects from one of its statements.
8088 (init_pre): Initialize need_ab_cleanup.
8089 (fini_pre): Purge dead abnormal call edges and clean up the CFG if bits
8090 are set in need_ab_cleanup. Free need_ab_cleanup afterward.
8092 2010-10-18 Jakub Jelinek <jakub@redhat.com>
8095 * c-parser.c (c_parser_statement_after_labels): Call mark_exp_read
8096 on computed goto argument.
8098 2010-10-18 Richard Guenther <rguenther@suse.de>
8100 PR tree-optimization/45967
8101 * tree-ssa-structalias.c (type_could_have_pointers): Remove.
8102 (could_have_pointers): Likewise.
8103 (handle_rhs_call, handle_const_call, handle_pure_call,
8104 find_func_aliases, intra_create_variable_infos): Remove calls to them.
8105 (struct fieldoff): Add must_have_pointers field.
8106 (type_must_have_pointers): New function.
8107 (field_must_have_pointers): Likewise.
8108 (push_fields_onto_fieldstack): Remove must_have_pointers_p argument.
8109 Adjust field merging.
8110 (create_function_info_for): May-have-pointers of varinfo is
8112 (create_variable_info_for_1): Likewise.
8114 2010-10-18 Tejas Belagod <tejas.belagod@arm.com>
8116 * config/arm/neon.md (neon_move_hi_quad_<mode>): Fix the order
8117 of operands to vec_concat.
8119 2010-10-18 Richard Guenther <rguenther@suse.de>
8122 * tree.c (free_lang_data_in_decl): As we clear TYPE_METHODS
8123 also clear references to entries of it.
8125 2010-10-18 Andi Kleen <ak@linux.intel.com>
8128 * gccbug.in: Remove.
8129 * Makefile.in (GCCBUG_INSTALL_NAME, gccbug): Remove
8130 (doc, distclean, install-common): Remove reference to gccbug.
8131 * configure: Regenerate.
8132 * configure.ac (all_outputs): Remove gccbug.
8133 * doc/configfiles.texi: Remove references to gccbug.
8134 * doc/sourcebuild.texi: Dito.
8136 2010-10-18 Jakub Jelinek <jakub@redhat.com>
8139 * fold-const.c (fold_binary_loc): If integer_pow2p has
8140 TREE_INT_CST_LOW zero, look at TREE_INT_CST_HIGH.
8142 2010-10-18 Basile Starynkevitch <basile@starynkevitch.net>
8143 Jeremie Salvucci <jeremie.salvucci@free.fr>
8145 * gengtype.c (verbosity_level): Add variable.
8146 (set_gc_used): Count variables for verbosity.
8147 (close_output_files): Backing up files, counting written ones
8149 (write_types): Count emitted functions for verbosity. Added
8151 (write_enum_defn): Count structures for verbosity. Added debug
8153 (gengtype_long_options): Add "verbose" & "backupdir".
8154 (print_usage): Ditto.
8155 (main): Verbose display of parsed files.
8157 * gengtype.h (verbosity_level): Add declaration.
8159 2010-10-18 Basile Starynkevitch <basile@starynkevitch.net>
8161 * gengtype.c (parse_program_options): Add allocation of
8162 plugin_files, and correct test on nb_plugin_files.
8164 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
8166 Merge from 'apple/trunk' branch on FSF servers.
8168 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
8171 * c-decl.c (undeclared_variable): Issue diagnostic on
8172 private 'ivar' access.
8174 2010-10-17 Uros Bizjak <ubizjak@gmail.com>
8177 * config/i386/sse.md (vec_interleave_highv4df): Fix third RTX of
8178 generated sequence to match *avx_vperm2f128<mode>_nozero.
8179 (vec_interleave_lowv4df): Ditto.
8180 (vec_interleave_highv8sf): Ditto.
8181 (vec_interleave_lowv8sf): Ditto.
8183 2010-10-17 Kai Tietz <kai.tietz@onevision.com>
8185 * libgcov.c (create_file_directory): Enable it for win32 case.
8186 (gcov_exit): De-couple GCOV_PREFIX and GCOV_PREFIX_STRIP.
8187 * doc/gcov.texi (GCOV_PREFIX): Adjusted.
8188 (GCOV_PREFIX_SKIP): Likewise.
8190 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
8192 * doc/objc.texi (GNU Objective-C runtime API): New section.
8193 (Modern GNU Objective-C runtime API): New section.
8194 (Traditional GNU Objective-C runtime API): New section.
8195 (Executing code before main): Mention that this section is
8196 specific to the GNU Objective-C runtime.
8197 (Garbage Collection): Same.
8199 2010-10-17 Uros Bizjak <ubizjak@gmail.com>
8201 * c-parser.c (c_parser_for_statement): Move initialization of
8202 cond and incr before if.
8204 2010-10-17 Anatoly Sokolov <aesok@post.ru>
8206 * target.def (preferred_output_reload_class): New hook.
8207 * doc/tm.texi.in (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Document.
8208 * doc/tm.texi: Regenerate.
8209 * targhooks.c (default_preferred_output_reload_class): New function.
8210 * targhooks.h (default_preferred_output_reload_class): Declare.
8211 * reload.c (find_dummy_reload): Change rclass argument type from
8212 enum reg_class to reg_class_t. Change this_alternative array type
8213 from enum reg_class to reg_class_t.
8214 Use TARGET_PREFERRED_OUTPUT_RELOAD_CLASS target hook.
8215 (push_reload): Change preferred_class variable type to reg_class_t.
8216 Use TARGET_PREFERRED_OUTPUT_RELOAD_CLASS target hook.
8217 * recog.c (reg_fits_class_p): Change result type to bool. Change cl
8218 argument type from enum reg_class to reg_class_t. Use
8219 HARD_REGISTER_NUM_P predicate.
8220 * recog.h (reg_fits_class_p): Update prototype.
8222 * config/i386/i386.h (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
8223 * config/i386/i386-protos.h (ix86_preferred_output_reload_class):
8225 * config/i386/i386.c (ix86_preferred_output_reload_class): Make
8226 static. Change regclass argument and result types from enum reg_class
8228 (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
8230 2010-10-17 Iain Sandoe <iains@gcc.gnu.org>
8232 * c-parser.c (c_parser_objc_class_instance_variables): Update to use
8233 visibility enum, and handle @package.
8235 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
8237 * doc/objc.texi (What you can and what you cannot do in +load):
8238 Document that sending messages to constant string objects in +load
8239 is not guaranteed to work.
8241 2010-10-16 Jan Hubicka <jh@suse.cz>
8244 * ipa.c (cgraph_remove_unreachable_nodes): Cleanup; check
8245 existence of refrences before removing the function.
8247 2010-10-16 Jan Hubicka <jh@suse.cz>
8249 * cgraph.c (dump_cgraph_node): Dump same_comdat_group,
8250 only_called_at_startup and only_called_at_exit.
8251 (cgraph_propagate_frequency): Compute only_called_at_startup and
8252 only_called_at_exit.
8253 * cgraph.h (struct cgraph_node): New fileds only_called_at_startup and
8254 only_called_at_exit.
8255 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream the new
8257 * predict.c (compute_function_frequency): Initialize the new flags.
8259 2010-10-16 Eric Botcazou <ebotcazou@adacore.com>
8261 * gimplify.c (gimplify_type_sizes) <ARRAY_TYPE>: If the type is to be
8262 ignored for debug info purposes, do not clear the DECL_IGNORED_P flag
8263 on the bounds of its domain.
8264 * tree.h (DECL_IGNORED_P): Document effect on TYPE_DECL specifically.
8266 2010-10-16 Anatoly Sokolov <aesok@post.ru>
8268 * config/avr/avr.h (PREFERRED_RELOAD_CLASS): Remove.
8269 * config/avr/avr-protos.h (preferred_reload_class): Remove.
8270 * config/avr/avr.c (preferred_reload_class): Remove.
8271 * config/pa/pa.h (PREFERRED_RELOAD_CLASS): Remove.
8272 * config/pa/pa.c (emit_move_sequence): Update comment
8273 * config/arc/arc.h (PREFERRED_RELOAD_CLASS): Remove.
8274 * config/crx/crx.h (PREFERRED_RELOAD_CLASS): Remove.
8275 * config/fr30/fr30.h (PREFERRED_RELOAD_CLASS): Remove.
8276 * config/frv/frv.h (PREFERRED_RELOAD_CLASS): Remove.
8277 * config/h8300/h8300.h (PREFERRED_RELOAD_CLASS): Remove.
8278 * config/lm32/lm32.h (PREFERRED_RELOAD_CLASS): Remove.
8279 * config/m32r/m32r.h (PREFERRED_RELOAD_CLASS): Remove.
8280 * config/moxie/moxie.h (PREFERRED_RELOAD_CLASS): Remove.
8281 * config/picochip/picochip.h (PREFERRED_RELOAD_CLASS): Remove.
8282 * config/rx/rx.h (PREFERRED_RELOAD_CLASS): Remove.
8283 * config/spu/spu.h (PREFERRED_RELOAD_CLASS): Remove.
8284 * config/v850/v850.h (PREFERRED_RELOAD_CLASS): Remove.
8285 * config/vax/vax.h (PREFERRED_RELOAD_CLASS): Remove.
8287 2010-10-16 Joseph Myers <joseph@codesourcery.com>
8289 * opts.c (set_fast_math_flags,
8290 set_unsafe_math_optimizations_flags): Make static.
8291 * toplev.h (set_fast_math_flags,
8292 set_unsafe_math_optimizations_flags): Remove prototypes.
8294 2010-10-16 Joseph Myers <joseph@codesourcery.com>
8296 * config/arm/arm.c (arm_option_optimization): Set
8297 flag_section_anchors to 1 not 2.
8298 * config/i386/i386.c (ix86_option_override_internal): Check
8299 global_options_set.x_flag_zee and
8300 global_options_set.x_flag_omit_frame_pointer.
8301 (ix86_option_optimization): Don't set flag_omit_frame_pointer and
8303 * config/i386/sol2-10.h (SUBTARGET_OVERRIDE_OPTIONS): Check
8304 global_options_set.x_flag_omit_frame_pointer.
8305 * config/rs6000/rs6000.c (rs6000_option_init_struct): Set
8306 opts->x_flag_section_anchors to 1 not 2.
8307 * config/sh/sh.c (sh_option_optimization): Don't set
8308 flag_schedule_insns to 2.
8309 (sh_option_override): Check
8310 global_options_set.x_flag_schedule_insns.
8311 * opts.c (finish_options): Check opts_set->x_flag_section_anchors.
8313 2010-10-16 Kai Tietz <kai.tietz@onevision.com>
8315 * configure.ac: Make sure inhibit_libc remains false for mingw targets
8317 * configure: Regenerated.
8319 2010-10-15 Xinliang David Li <davidxl@google.com>
8321 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths): New
8323 (use_pred_not_overlap_with_undef_path_pred): Outline phi arg pruning
8324 into a recursive function.
8326 2010-10-15 Uros Bizjak <ubizjak@gmail.com>
8328 * config/i386/i386.md (*movdfcc_1_rex64): Correct mode attribute.
8329 (*movdfcc_1): ditto.
8331 2010-10-15 Joseph Myers <joseph@codesourcery.com>
8333 * target.def (target_option.init_struct): New hook.
8334 * doc/tm.texi.in (TARGET_OPTION_INIT_STRUCT): New @hook.
8335 * doc/tm.texi: Regenerate.
8336 * hooks.c (hook_void_gcc_optionsp): New.
8337 * hooks.h (hook_void_gcc_optionsp): Declare.
8338 * langhooks-def.h (lhd_init_options_struct): Remove.
8339 (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define to hook_void_gcc_optionsp.
8340 * langhooks.c (lhd_init_options_struct): Remove.
8341 * opts.c (init_options_struct): Also call
8342 targetm.target_option.init_struct.
8343 * config/i386/i386.c (ix86_option_init_struct,
8344 TARGET_OPTION_INIT_STRUCT): New.
8345 (ix86_option_optimization): Move some settings to
8346 ix86_option_init_struct.
8347 * config/pdp11/pdp11.c (pdp11_option_init_struct,
8348 TARGET_OPTION_INIT_STRUCT): New.
8349 (pdp11_option_optimization): Move some settings to
8350 pdp11_option_init_struct.
8351 * config/rs6000/rs6000.c (rs6000_option_optimization): Replace by
8352 rs6000_option_init_struct. Use options structure pointer.
8353 (TARGET_OPTION_OPTIMIZATION): Replace by TARGET_OPTION_INIT_STRUCT.
8354 * config/s390/s390.c (s390_option_init_struct,
8355 TARGET_OPTION_INIT_STRUCT): New.
8356 (s390_option_optimization): Don't set
8357 flag_asynchronous_unwind_tables here.
8358 * config/sh/sh.c (sh_option_init_struct,
8359 TARGET_OPTION_INIT_STRUCT): New.
8360 (sh_option_optimization): Don't set flag_finite_math_only here.
8361 * config/spu/spu.c (spu_option_optimization): Replace by
8362 spu_option_optimization. Use options structure pointer.
8363 (TARGET_OPTION_OPTIMIZATION): Replace by TARGET_OPTION_INIT_STRUCT.
8365 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
8367 * doc/md.texi (Standard Names): Add fma@var{m}4 documentation.
8369 * doc/rtl.texi (RTX_TERNARY): Document FMA is ternary. Add
8370 SIGN_EXTRACT and ZERO_EXTRACT which were missing.
8371 (Standard names): Document fma.
8373 * doc/cpp.texi (Common Predefined Macros): Document __FP_FAST_FMA,
8374 __FP_FAST_FMAF, __FP_FAST_FMAL.
8376 * builitns.c (expand_builtin_mathfn_ternary): New function for
8377 expanding ternary math functions, like fma.
8378 (expand_builtin): Call it for the fma builtins.
8380 * simplify-rtx.c (simplify_ternary_operation): Don't simplify FMA
8383 * tree-vect-stmts.c (vectorizable_call): Allow 3 argument
8384 vectorizable functions to support vectorizing fma.
8386 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
8387 Handle fma builtins.
8389 * config/rs6000/vsx.md (UNSPEC_VSX_MADD): Delete.
8390 (UNSPEC_VSX_MSUB): Ditto.
8391 (UNSPEC_VSX_NMADD): Ditto.
8392 (UNSPEC_VSX_NMSUB): Ditto.
8393 (vsx_fmadd<mode>4*): Rewrite to use FMA rtl in some cases instead
8394 of UNSPEC. Renumber combiner patterns.
8395 (vsx_fmsub<mode>4*): Ditto.
8396 (vsx_fnmadd<mode>4*): Ditto.
8397 (vsx_fnmsub<mode>4*): Ditto.
8399 * config/rs6000/altivec.md (UNSPEC_VNMSUBFP): Delete.
8400 (altivec_vmaddfp): Rewrite to use FMA rtl if no fused
8401 multiply/add. Rename combiner pattern, and add TARGET_FUSED_MADD test.
8402 (altivec_vmaddfp_1): Ditto.
8403 (altivec_vmaddfp_2): Ditto.
8404 (atlivec_mulv4sf3): Ditto.
8405 (altivec_vnmsubfp): Ditto.
8406 (altivec_vnmsubfp_1): Ditto.
8407 (altivec_vnmsubfp_2): Ditto.
8408 (altivec_vnmsubfp_3): Delete.
8410 * config/rs6000/rs6000.md (fmasf4): New insns for fma builtin support.
8411 (fmasf4_fpr): Ditto.
8412 (fmssf4_fpr): Ditto.
8413 (fnmasf4_fpr): Ditto.
8414 (fnmssf4_fpr): Ditto.
8416 (fmadf4_fpr): Ditto.
8417 (fmsdf4_fpr): Ditto.
8418 (fnmadf4_fpr): Ditto.
8419 (fnmsdf4_fpr): Ditto.
8421 * optabs.h (OTI_fma): Add fma optab.
8424 * genopinit.c (optabs): Set fma optab.
8426 * rtl.def (FMA): Add FMA rtl.
8428 * tree.h (mode_has_fma): New function to return if MODE supports a
8429 fast multiply and add instruction.
8430 * builtins.c (mode_has_fma): Ditto.
8432 2010-10-15 Jan Hubicka <jh@suse.cz>
8434 * lto-streamer-out.c (write_symbol): Use pointer set of seen
8435 objects instead of bitmap.
8436 (produce_symtab): Likewise; output defined symbols first.
8438 2010-10-15 Jie Zhang <jie@codesourcery.com>
8440 * doc/invoke.texi: Add -fstrict-volatile-bitfields to
8441 Option Summary and Index.
8443 2010-10-15 Richard Guenther <rguenther@suse.de>
8445 * tree.c (free_lang_data_in_decl): Clear DECL_INITIAL
8446 for automatic variables again.
8448 2010-10-15 Joseph Myers <joseph@codesourcery.com>
8450 * doc/extend.texi (Variable Length): Don't refer to VLAs not
8453 2010-10-15 Joseph Myers <joseph@codesourcery.com>
8455 * config/rx/rx.c (rx_option_optimization): Change to
8456 rx_override_options_after_change. Don't change
8457 flag_lto_compression_level. Don't check for changes to whether
8458 FPU instructions can be used. Check and set only
8459 flag_finite_math_only, not other fast-math flags.
8460 (rx_option_override): Call rx_override_options_after_change.
8461 (TARGET_OPTION_OPTIMIZATION): Remove.
8462 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
8464 2010-10-15 Joseph Myers <joseph@codesourcery.com>
8466 * config/rs6000/rs6000.c (rs6000_option_optimization): Don't
8467 disable section anchors for lang_hooks.name[4] != 'O'.
8469 2010-10-15 Joseph Myers <joseph@codesourcery.com>
8471 * config/frv/frv.c (frv_option_optimization,
8472 TARGET_OPTION_OPTIMIZATION): Remove.
8473 * config/frv/frv.h (RCSP_SOFTWARE_PIPELINING): Remove.
8475 2010-10-15 Michael Matz <matz@suse.de>
8477 * cgraphunit.c (clone_of_p): Define unconditionally.
8479 2010-10-15 Richard Guenther <rguenther@suse.de>
8482 * tree.c (free_lang_data_in_decl): Do not clear DECL_INITIAL of vars.
8484 2010-10-15 Chung-Lin Tang <cltang@codesourcery.com>
8486 * ifcvt.c (find_active_insn_before): New function.
8487 (find_active_insn_after): New function.
8488 (cond_exec_process_if_block): Use new functions to replace
8489 prev_active_insn() and next_active_insn().
8491 2010-10-14 Yao Qi <yao@codesourcery.com>
8494 * config/arm/arm.c (arm_build_builtin_va_list): Assign
8495 va_list_name to TYPE_STUB_DECL (va_list_type).
8497 2010-10-14 Jan Hubicka <jh@suse.cz>
8500 * cgraph.c (cgraph_update_edges_for_call_stmt_node): When new call is
8501 redirected to clone, be happy.
8502 * cgraph.h (cgraph node): Enable former_clone_of unconditinally.
8503 * cgraphunit.c (verify_cgraph_node, cgraph_materialize_clone): Handle
8504 former_clone_of unconditionally.
8506 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
8508 Merge from FSF apple 'trunk' branch.
8509 2006 Fariborz Jahanian <fjahanian@apple.com>
8511 Radars 4436866, 4505126, 4506903, 4517826
8512 * c-parser.c (c_parser, objc_property_attr_context) New flag.
8513 (c_lex_one_token): Handle property attributes.
8514 (c_parser_external_declaration): Handle @property.
8515 (c_parser_declaration_or_fndef): Warn on invalid attributes before
8516 @alias, @class, @end and @property objc keywords.
8517 (c_parser_objc_methodprotolist): Handle @property.
8518 (c_parser_objc_property_attrlist): New.
8519 (c_parser_objc_at_property): New.
8520 * c-typeck.c (build_component_ref): Handle CLASS.property syntax.
8521 (build_modify_expr): Likewise.
8523 2010-10-14 Jakub Jelinek <jakub@redhat.com>
8525 PR tree-optimization/46008
8526 * tree-if-conv.c (predicate_bbs): Try to canonicalize c2 if possible.
8528 2010-10-14 Richard Guenther <rguenther@suse.de>
8530 PR tree-optimization/44913
8531 * tree-data-ref.c (disjoint_objects_p): Remove.
8532 (dr_may_alias_p): Simplify. Only hand the base object to
8534 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
8535 some more trees, bail out instead of asserting.
8536 (ptr_derefs_may_alias_p): Likewise. Export.
8537 (refs_may_alias_p_1): Handle STRING_CSTs.
8538 * tree-ssa-alias.h (ptr_derefs_may_alias_p): Declare.
8540 2010-10-14 Joseph Myers <joseph@codesourcery.com>
8543 * c-typeck.c (build_binary_op): Don't try to compute a semantic
8544 type with excess precision for boolean operations.
8546 2010-10-14 Jeremie Salvucci <jeremie.salvucci@free.fr>
8547 Basile Starynkevitch <basile@starynkevitch.net>
8549 * gengtype.c: Include getopt.h and version.h.
8551 (lang_bitmap, struct outf, outf_p)
8552 (get_output_file_with_visibility, oprintf): Definitions moved to
8554 (output_files, header_file, srcdir, srcdir_len, this_file)
8555 (do_dump): No more static variables.
8557 (dbgprint_count_type_at): Added new function.
8558 (gengtype_long_options): New.
8559 (print_usage, print_version, parse_program_options): New.
8560 (main): Call parse_program_options, and removed old option
8561 handling code. Added some debug output.
8563 * gengtype.h: Updated copyright year.
8564 (lang_bitmap, struct outf, outf_p, header_file, oprintf)
8565 (get_output_file_with_visibility, srcdir, srcdir_len, do_dump):
8566 Moved from gengtype.c to here.
8567 (do_debug, read_state_filename, write_state_filename): New variables.
8568 (DBGPRINTF, DBGPRINT_COUNT_TYPE): New macros.
8571 (REVISION): Always defined.
8572 (version.o): Removed ifdef REVISION_c.
8573 (s-gtype): Pass arguments to build/gengtype program.
8574 (build/version.o): Added building rule.
8575 (build/gengtype$(build_exeext)): Added build/version.o.
8577 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
8579 Partial merge of 'ObjC GC' from FSF apple 'trunk' branch.
8580 * config/darwin-c.c (darwin_cpp_builtins): Define __weak and
8583 2010-10-14 Eric Botcazou <ebotcazou@adacore.com>
8585 * sched-deps.c (sched_insn_is_legitimate_for_speculation): Invoke
8586 may_trap_or_fault_p instead of may_trap_p predicate.
8587 * tree.c (substitute_in_expr): Propagate the TREE_THIS_NOTRAP flag.
8588 (substitute_placeholder_in_expr): Likewise.
8589 * tree-inline.c (remap_gimple_op_r): Propagate the TREE_THIS_NOTRAP
8590 flag on MEM_REF nodes.
8591 (copy_tree_body_r): Propagate the TREE_READONLY and TREE_THIS_NOTRAP
8592 flags on INDIRECT_REF nodes.
8594 2010-10-14 Nathan Froyd <froydnj@codesourcery.com>
8596 * config.gcc (arm*-*-linux-*eabi) <tm_file>: Add bpabi.h from libgcc.
8597 (arm*-*-uclinux*eabi) <tm_file>: Likewise.
8598 (arm*-*-eabi*) <tm_file>: Likewise.
8599 (frv-*-elf) <tm_file>: Add frv-abi.h from libgcc.
8600 (frv-*-*linux*) <tm_file>: Likewise.
8601 * config/arm/bpabi.h: Delete DECLARE_LIBRARY_RENAMES stanzas
8602 and associated helper macros.
8603 * config/frv/frv-abi.h: Delete.
8605 2010-10-14 Richard Guenther <rguenther@suse.de>
8608 * tree.def (NULLPTR_TYPE): New tree code.
8609 * dbxout.c (dbxout_type): Handle NULLPTR_TYPE.
8610 * dwarf2out.c (is_base_type): Likewise.
8611 (gen_type_die_with_usage): Likewise.
8612 * sdbout.c (plain_type_1): Likewise.
8613 * tree.c (build_int_cst_wide): Likewise.
8614 * gimple.c (gimple_types_compatible_p_1): NULLPTR_TYPE types are equal.
8616 2010-10-14 Joseph Myers <joseph@codesourcery.com>
8618 * params.c (params_finished): New.
8619 (add_params): Assert !params_finished.
8620 (finish_params): New.
8621 (set_param_value_internal): Take params and params_set
8622 parameters. Assert params_finished.
8623 (set_param_value, maybe_set_param_value): Take params and
8624 params_set parameters. Update calls to set_param_value_internal.
8625 (set_default_param_value): Assert !params_finished. Don't use
8626 set_param_value_internal.
8627 (default_param_value, init_param_values): New.
8628 * params.h (struct param_info): Change value to default_value.
8630 (set_param_value, maybe_set_param_value): Add params and
8631 params_set parameters.
8632 (PARAM_VALUE): Get parameters from global_options.
8633 (PARAM_SET_P): Remove.
8634 (finish_params, default_param_value, init_param_values): New.
8635 * common.opt (param_values): New Variable.
8636 * config/arm/arm.c (arm_option_override): Pass extra arguments to
8637 maybe_set_param_value.
8638 * config/i386/i386.c (ix86_option_override_internal): Pass extra
8639 arguments to maybe_set_param_value.
8640 * config/picochip/picochip.c (picochip_option_override): Pass
8641 extra arguments to maybe_set_param_value.
8642 * config/rs6000/rs6000.c (rs6000_option_override_internal): Pass
8643 extra arguments to maybe_set_param_value.
8644 * config/s390/s390.c (s390_option_override): Use
8645 maybe_set_param_value instead of set_param_value. Pass extra
8646 arguments to maybe_set_param_value.
8647 * config/sparc/sparc.c (sparc_option_override): Pass extra
8648 arguments to maybe_set_param_value.
8649 * config/spu/spu.c (spu_option_override): Pass extra arguments to
8650 maybe_set_param_value.
8651 * opts.c (handle_param): Take opts and opts_set parameters.
8652 Update call to set_param_value.
8653 (initial_min_crossjump_insns, initial_max_fields_for_field_sensitive,
8654 initial_loop_invariant_max_bbs_in_loop): Remove.
8655 (init_options_once): Don't set them.
8656 (init_options_struct): Initialize parameters structures.
8657 (default_options_optimization): Use default_param_value when
8658 restoring defaults. Update calls to maybe_set_param_value.
8659 (finish_options): Update calls to maybe_set_param_value.
8660 (common_handle_option): Update calls to handle_param and
8662 * toplev.c (DEFPARAM): Update definition for changes to param_info.
8663 (general_init): Call finish_params.
8665 2010-10-14 Nick Clifton <nickc@redhat.com>
8667 * config/mn10300/mn10300.h (CONSTANT_ALIGNMENT): Define.
8668 (DATA_ALIGNMENT, LOCAL_ALIGNMENT): Define.
8669 (FIRST_PSEUDO_REGISTER): Increase by one.
8670 (FIXED_REGISTERS, CALL_USED_REGISTERS): Update with CC_REG.
8671 (HARD_REGNO_MODE_OK): Call mn10300_hard_regno_mode_ok.
8672 (MODES_TIEABLE): Call mn10300_modes_tieable.
8673 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS): Add CC_REGS.
8674 (LEGITIMATE_CONSTANT_P): Call mn10300_legitimate_constant_p.
8675 (CC_OVERFLOW_UNUSABLE, CC_NO_CARRY, NOTICE_UPDATE_CC)
8676 (SELECT_CC_MODE, REVERSIBLE_CC_MODE): Delete.
8677 (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Add CC register.
8678 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Delete.
8679 (mn10300_cc_status_mdep): Delete.
8680 (CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Delete.
8681 * config/mn10300/mn10300 (mn10300_option_override): Stop disabling
8682 the combine-stack-adjust pass.
8683 (print_operand): Use the mode of the comparison operation to
8684 select the comparison suffix.
8685 (notice_update_cc): Delete.
8686 (mn10300_secondary_reload_class): Remove test for stack pointer
8688 (output_tst): Rename to mn10300_output_cmp.
8689 (impossible_plus_operand): Move into predicates.md.
8690 (mn10300_legitimize_address): Make static.
8691 (mn10300_legitimate_address_p): Make static. Only allow SI sized
8692 constant pic operands.
8693 (mn10300_legitimate_constant_p): New function.
8694 (mn10300_case_values_threshold): Make static.
8695 (mn10300_hard_regno_mode_ok): New function.
8696 (mn10300_modes_tieable): New function.
8697 (mn10300_select_cc_mode): New function.
8698 * config/mn10300/predicates.md (impossible_plus_operand): Define.
8699 * config/mn10300/mn10300-protos.h: Tidy.
8700 (mn10300_legitimate_constant_p, mn10300_modes_tieable)
8701 (mn10300_hard_regno_mode_ok, mn10300_select_cc_mode): Prototype.
8702 * config/mn10300/mn10300.md (cc attribute): Delete. Replace
8703 with clobbers or sets of CC_REG.
8705 (mov*): Remove use of CLR instruction.
8706 (cbranch_si4_<code>): New pattern/split.
8707 (integer_conditional_branch): New pattern.
8708 (cbranch_sf4_<code>): New pattern/split.
8709 (float_conditional_branch): New pattern.
8710 (casesi): Use addsi3 pattern instead of movsi pattern to add and
8711 move a value at the same time.
8712 (cc0 peepholes): Remove.
8714 2010-10-14 Andrey Belevantsev <abel@ispras.ru>
8716 * sel-sched-ir.c (init_global_and_expr_for_insn): Set CANT_MOVE
8717 on RTX_FRAME_RELATED_P insns and the insn to which
8718 NOTE_INSN_EPILOGUE_BEG is attached.
8719 * sched-vis.c (print_value): Allow NULL value.
8721 2010-10-14 Andrey Belevantsev <abel@ispras.ru>
8723 PR rtl-optimization/45570
8724 * sel-sched-ir.c (cfg_preds_1): When walking out of the region,
8725 assert that we are pipelining outer loops. Allow returning
8728 2010-10-14 Andrey Belevantsev <abel@ispras.ru>
8730 * sel-sched-ir.c (maybe_tidy_empty_bb): Simplify comment.
8731 (tidy_control_flow): Tidy vertical space.
8732 (sel_remove_bb): New variable idx. Use it to remember the basic
8733 block index before deleting the block.
8734 (sel_remove_empty_bb): Remove dead code, simplify and insert to ...
8735 (sel_merge_blocks): ... here.
8736 * sel-sched-ir.h (sel_remove_empty_bb): Remove prototype.
8738 2010-10-14 Jakub Jelinek <jakub@redhat.com>
8740 * cse.c (is_dead_reg): Change into inline function that is not
8741 called through for_each_rtx.
8742 (set_live_p): Adjust caller.
8743 (insn_live_p): Don't reset DEBUG_INSNs here.
8744 (struct dead_debug_insn_data): New data.
8745 (count_stores, is_dead_debug_insn, replace_dead_reg): New functions.
8746 (delete_trivially_dead_insns): If there is just one setter for the
8747 dead reg that is referenced by some DEBUG_INSNs, create a DEBUG_EXPR
8748 and add DEBUG_INSN for it right before the removed setter and
8749 use the DEBUG_EXPR instead of the dead pseudo.
8751 2010-10-14 Zdenek Dvorak <rakdver@kam.uniff.cz>
8753 * et-forest.c (et_nca): Return NULL immediately when
8754 the dominance forest has disjoint components.
8756 2010-10-13 Vladimir Makarov <vmakarov@redhat.com>
8758 * ira.c (setup_class_hard_regs): Fix typo in indexing
8759 ira_non_ordered_class_hard_regs and ira_class_hard_reg_index.
8761 2010-10-14 Tijs Wiebe Lefering <twlevo@gmail.com>
8763 * graph.c (inbb): New variable.
8764 (start_bb): Set inbb to 1 if output is inside of a building block.
8765 (end_bb): Check if output is inside of a building block.
8767 2010-10-13 Eric Botcazou <ebotcazou@adacore.com>
8769 PR rtl-optimization/45912
8770 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Test the
8771 regno of registers instead of their index to compute the alignment.
8773 2010-10-13 H.J. Lu <hongjiu.lu@intel.com>
8775 * config/i386/i386.c (ix86_build_const_vector): Check vector
8776 mode instead of scalar mode.
8777 (ix86_build_signbit_mask): Likewise.
8778 (ix86_expand_fp_absneg_operator): Updated.
8779 (ix86_expand_copysign): Likewise.
8780 (ix86_expand_int_vcond): Likewise.
8781 (ix86_emit_swdivsf): Likewise.
8782 (ix86_sse_copysign_to_positive): Likewise.
8783 (ix86_expand_sse_fabs): Likewise.
8784 * config/i386/i386.md (fixuns_trunc<mode>si2): Likewise.
8785 * config/i386/sse.md (copysign<mode>3): Likewise.
8786 (sse2_cvtudq2ps): Likewise.
8787 (vec_unpacku_float_hi_v4si): Likewise.
8788 (vec_unpacku_float_lo_v4si): Likewise.
8790 * config/i386/i386.c (ix86_builtins): Add
8791 IX86_BUILTIN_CPYSGNPS256 and IX86_BUILTIN_CPYSGNPD256.
8792 (bdesc_args): Likewise.
8793 (ix86_builtin_vectorized_function): Support
8794 IX86_BUILTIN_CPYSGNPS256, IX86_BUILTIN_CPYSGNPD256,
8795 IX86_BUILTIN_SQRTPD256, IX86_BUILTIN_SQRTPS_NR256,
8796 and IX86_BUILTIN_CVTPS2DQ256.
8797 (ix86_builtin_reciprocal): Support IX86_BUILTIN_SQRTPS_NR256.
8799 * config/i386/sse.md (STORENT_MODE): New.
8800 (VEC_FLOAT_MODE): Likewise.
8801 (VEC_EXTRACT_MODE): Likewise.
8802 (*avx_cvtdq2pd256_2): Likewise.
8803 (vec_pack_trunc_v4df): Likewise.
8804 (vec_interleave_highv8sf): Likewise.
8805 (vec_interleave_lowv8sf): Likewise.
8806 (storent<mode>): Macroized.
8807 (<code><mode>2: absneg): Likewise.
8808 (copysign<mode>3): Likewise.
8809 (vec_extract<mode>): Likewise.
8812 * config/i386/i386.c (expand_vec_perm_even_odd_1): Rewritten
8815 2010-10-13 Richard Guenther <rguenther@suse.de>
8816 H.J. Lu <hongjiu.lu@intel.com>
8818 * config/i386/sse.md (reduc_splus_v8sf): Add.
8819 (reduc_splus_v4df): Likewise.
8820 (vec_unpacks_hi_v8sf): Likewise.
8821 (vec_unpacks_lo_v8sf): Likewise.
8822 (*avx_cvtps2pd256_2): Likewise.
8823 (vec_unpacks_float_hi_v8si): Likewise.
8824 (vec_unpacks_float_lo_v8si): Likewise.
8825 (vec_interleave_highv4df): Likewise.
8826 (vec_interleave_lowv4df): Likewise.
8828 2010-10-13 Richard Guenther <rguenther@suse.de>
8831 * gimple-fold.c (gimple_fold_obj_type_ref): Leave OBJ_TYPE_REFs
8832 alone if there are no virtual methods.
8834 2010-10-13 Richard Henderson <rth@redhat.com>
8836 * expr.c (build_personality_function): Take parameter LANG instead
8837 of parameter NAME. Build the name based on the lang prefix and the
8838 unwind method in use.
8839 * tree.c (lhd_gcc_personality): Update call to
8840 build_personality_function.
8842 2010-10-13 Richard Guenther <rguenther@suse.de>
8845 * tree-ssa-ccpc (ccp_fold_stmt): Use gimple_fold_obj_type_ref.
8847 2010-10-13 Eric Botcazou <ebotcazou@adacore.com>
8849 * cse.c (cse_insn): Fix thinko in the canonicalization of USE insns.
8850 Canonicalize input operands of ASM_OPERANDS insns.
8852 2010-10-13 Richard Guenther <rguenther@suse.de>
8854 PR tree-optimization/45788
8855 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Delay
8856 EH update until fixup-cfg.
8858 2010-10-13 Julian Brown <julian@codesourcery.com>
8860 * config/arm/arm.h (REG_CLASS_CONTENTS): Remove soft frame pointer
8861 from CORE_REGS and GENERAL_REGS classes.
8862 * config/arm/arm.md (*thumb1_movsi_insn): Ignore all parts of
8863 final constraint for register preferencing.
8865 2010-10-13 Richard Guenther <rguenther@suse.de>
8867 PR tree-optimization/45970
8868 * tree-ssa-alias.h (stmt_kills_ref_p): Declare.
8869 * tree-ssa-alias.c (stmt_kills_ref_p_1): New function.
8870 (stmt_kills_ref_p): Likewise.
8871 * tree-ssa-dse.c (dse_optimize_stmt): Use it.
8873 2010-10-13 Richard Guenther <rguenther@suse.de>
8875 PR tree-optimization/45982
8876 * tree-ssa-structalias.c (make_constraints_to): New function.
8877 (make_constraint_to): Implement in terms of make_constraints_to.
8878 (find_func_aliases): Properly make return values of pure/const
8879 functions escape if they assign to sth that is not a pointer.
8881 2010-10-13 Richard Guenther <rguenther@suse.de>
8884 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee):
8885 Fixup the CFG when EH was fixed up.
8887 2010-10-13 Ira Rosen <irar@il.ibm.com>
8889 * tree-vect-slp.c (vect_get_constant_vectors): Fix comment.
8890 Use operand's type for POINTER_PLUS_EXPR.
8892 2010-10-13 Alexandre Oliva <aoliva@redhat.com>
8894 * c-parser.c (c_parser_for_statement): Initialize incr.
8896 2010-10-12 Xinliang David Li <davidxl@google.com>
8898 PR tree-optimization/45972
8899 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Skip phis
8900 with too many arguments.
8902 2010-10-12 Jakub Jelinek <jakub@redhat.com>
8905 * tree-ssa-forwprop.c: Include expr.h.
8906 (constant_pointer_difference, simplify_builtin_call): New functions.
8907 (tree_ssa_forward_propagate_single_use_vars): Call
8908 simplify_builtin_call on builtin calls.
8910 2010-10-12 Eric Botcazou <ebotcazou@adacore.com>
8912 * config/sparc/sparc.md (*adddi3_insn_sp32): Rename.
8913 (*adddi3_extend_sp32): Likewise.
8914 (*subdi3_insn_sp32): Likewise.
8915 (*subdi3_extend_sp32): Likewise.
8916 (*negdi2_sp32): Use negative test for consistency.
8918 2010-10-12 Nathan Froyd <froydnj@codesourcery.com>
8920 * libgcc2.h: Use __SIZEOF_DOUBLE__ instead of LIBGCC2_DOUBLE_TYPE_SIZE.
8921 (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
8922 * config/fixed-bit.h: Likewise.
8923 * config/rx/rx.h (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
8924 * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
8925 * system.h (LIBGCC2_DOUBLE_TYPE_SIZE): Poison.
8926 * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE): Use DOUBLE_TYPE_SIZE.
8927 (DF_SIZE): Likewise.
8928 * doc/tm.texi: Regenerate.
8930 2010-10-12 Nathan Froyd <froydnj@codesourcery.com>
8932 * config/rs6000/predicates.md (scc_rev_comparison_operator): New.
8933 * config/rs6000/rs6000.md (*isel_reversed_signed_<mode>): New.
8934 (*isel_reversed_unsigned_<mode>): New.
8935 * config/rs6000/rs6000.c (output_isel): Accept GE/GEU/LE/LEU/NE
8936 as valid comparisons and adjust operands and output appropriately.
8937 (rs6000_rtx_costs) <CONST_INT>: Accept NE as a cost-0 outer_code.
8939 2010-10-12 Chung-Lin Tang <cltang@codesourcery.com>
8941 * config/arm/arm.h (ARM_EXPAND_ALIGNMENT): Rename from
8942 DATA_ALIGNMENT and add COND parameter. Update comments above.
8943 (DATA_ALIGNMENT): Use ARM_EXPAND_ALIGNMENT, with !optimize_size.
8944 (LOCAL_ALIGNMENT): Use ARM_EXPAND_ALIGNMENT, with !flag_conserve_stack.
8946 2010-10-12 H.J. Lu <hongjiu.lu@intel.com>
8949 * exec-tool.in: Support '-plugin' as the second option to the linker.
8951 2010-10-12 Richard Henderson <rth@redhat.com>
8954 * cfgexpand.c (add_stack_var): Ensure every variable has 1 byte.
8955 (expand_stack_vars): Assert large base allocated when used.
8957 2010-10-12 Richard Guenther <rguenther@suse.de>
8959 * tree-ssa-structalias.c (get_constraint_for_1): Constants
8960 only point to nonlocal, not anything.
8962 2010-10-11 Hariharan Sandanagobalane <hariharan@picochip.com>
8964 * config/picochip/picochip.c (TARGET_EXCEPT_UNWIND_INFO): Use sjlj
8965 unwind info for exceptions.
8967 2010-10-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8970 * doc/sourcebuild.texi (LTO Testing, dg-extra-ld-options):
8971 Document optional target selector.
8973 2010-10-12 Joseph Myers <joseph@codesourcery.com>
8975 * flag-types.h: New.
8976 * Makefile.in (TH_H): Include $(OPTIONS_H) instead of $(FLAGS_H).
8977 (FLAGS_H): Include flag-types.h. Include $(OPTIONS_H) instead of
8979 (OPTIONS_H): Define.
8980 (c-family/c-opts.o, lto-opts.o, opts.o): Use $(OPTIONS_H) instead
8982 * configure.ac (tm_include_list): Include options.h not flags.h.
8983 * configure: Regenerate.
8984 * flags.h: Include flag-types.h. Include options.h at top of file
8986 (enum debug_info_type, enum debug_info_level, enum
8987 debug_info_usage, enum symbol_visibility, struct visibility_flags,
8988 enum ira_algorithm, enum ira_region, enum excess_precision, enum
8989 graph_dump_types, enum stack_check_type,
8990 enum warn_strict_overflow_code): Move to flag-types.h
8991 * opth-gen.awk: Include flag-types.h in options.h.
8993 2010-10-12 Jakub Jelinek <jakub@redhat.com>
8995 * expr.c (store_expr): Share code for STRING_CST and
8996 MEM_REF of &STRING_CST cases. Don't require BLKmode, instead
8997 check if target is a MEM.
8999 * rtl.h: Include hashtab.h.
9000 (iterative_hash_rtx): New prototype.
9001 * rtl.c (iterative_hash_rtx): New function.
9002 * dwarf2out.c (dw_loc_list_node): Add hash and emitted fields.
9003 (output_loc_list): Return immediately if emitted is set, set it.
9004 (hash_loc_operands, hash_locs, hash_loc_list,
9005 compare_loc_operands, compare_locs, loc_list_hash, loc_list_eq,
9006 optimize_location_lists_1, optimize_location_lists): New function.
9007 (dwarf2out_finish): Call optimize_location_lists.
9008 * Makefile.in (RTL_BASE_H): Depend on $(HASHTAB_H).
9010 2010-10-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9014 * Makefile.in ($(lang_checks_parallel))
9015 ($(lang_checks_parallelized)): Use single quotes for
9016 $(RUNTESTFLAGS), to allow passing quoted content.
9018 2010-10-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9020 * config/pa/linux-atomic.c (__sync_val_compare_and_swap_4): Return
9021 actual_oldval. Use __builtin_expect.
9022 (SUBWORD_VAL_CAS): Likewise.
9024 2010-10-11 Nathan Froyd <froydnj@codesourcery.com>
9026 * recog.c (nonmemory_operand): Call immediate_operand for
9027 CONSTANT_P operands.
9029 2010-10-11 Uros Bizjak <ubizjak@gmail.com>
9031 * config/i386/i386.md (movmem<mode>): Macroize expander from
9032 movmem{si,di} using SWI48 mode iterator.
9033 (*strmovsi_1): Macroize insn pattern from *strmovsi_1 and
9034 *strmovsi_rex_1 using P mode iterator.
9035 (*strmovhi_1): Ditto from *strmovhi_1 and *strmovhi_rex_1.
9036 (*strmovqi_1): Ditto from *strmovqi_1 and *strmovqi_rex_1.
9037 (*rep_movsi): Ditto from *rep_movsi and *rep_movsi_rex64.
9038 (*rep_movqi): Ditto from *rep_movqi and *rep_movqi_rex64.
9039 (setmem<mode>): Macroize expander from setmem{si,di} using
9040 SWI48 mode iterator.
9041 (*strsetsi_1): Macroize insn pattern from *strsetsi_1 and
9042 *strsetsi_rex_1 using P mode iterator.
9043 (*strsethi_1): Ditto from *strsethi_1 and *strsethi_rex_1.
9044 (*strsetqi_1): Ditto from *strsetqi_1 and *strsetqi_rex_1.
9045 (*rep_stossi): Ditto from *rep_stossi and *rep_stossi_rex64.
9046 (*rep_stosqi): Ditto from *rep_stosqi and *rep_stosqi_rex64.
9047 (*cmpstrnqi_nz_1): Ditto from *cmpstrnqi_nz_1 and *cmpstrnqi_nz_rex_1.
9048 (*cmpstrnqi_1): Ditto from *cmpstrnqi_1 and *cmpstrnqi_rex_1.
9049 (strlen<mode>): Macroize expander from strlen{si,di} using SWI48x
9051 (*strlenqi_1): Macroize insn pattern from *strlenqi_1 and
9052 *strlenqi_rex_1 using P mode iterator.
9054 2010-10-11 Bernd Schmidt <bernds@codesourcery.com>
9057 * ira-lives.c (mark_pseudo_reg_live, mark_pseudo_reg_dead): New
9059 (mark_ref_live, mark_ref_dead): Use them.
9060 (make_pseudo_conflict): New arg ORIG_DREG. All callers changed.
9061 Save the original reg, and use the new functions.
9062 (check_and_make_def_use_conflict): New arg ORIG_DREG. All callers
9064 (check_and_make_def_conflict): Save the original reg.
9066 2010-10-11 Martin Jambor <mjambor@suse.cz>
9069 * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Choose among
9072 2010-10-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9074 * Makefile.in ($(lang_checks_parallel))
9075 ($(lang_checks_parallelized)): Use single quotes for
9076 $(RUNTESTFLAGS), to allow passing quoted content.
9079 * opt-functions.awk (BEGIN): New section.
9080 (lower, upper, digit, alnum): New variables.
9081 (static_var, opt_sanitized_name): Use alnum instead of character
9082 classes, for non-C locale.
9083 * optc-gen.awk: Likewise.
9084 * opth-gen.awk: Likewise.
9086 2010-10-11 Anatoly Sokolov <aesok@post.ru>
9088 * target.def (preferred_reload_class): New hook.
9089 * doc/tm.texi.in (TARGET_PREFERRED_RELOAD_CLASS): Document.
9090 * doc/tm.texi: Regenerate.
9091 * targhooks.c (default_preferred_reload_class): New function.
9092 * targhooks.h (default_preferred_reload_class): Declare.
9093 * reload.c (find_dummy_reload): Change preferred_class variable type
9094 from enum reg_class to reg_class_t. Use TARGET_PREFERRED_RELOAD_CLASS
9096 (find_reloads): Change goal_alternative array type from int to
9097 reg_class_t. Use TARGET_PREFERRED_RELOAD_CLASS target hook.
9098 (push_reload, find_reloads_address_part): Use
9099 TARGET_PREFERRED_RELOAD_CLASS target hook.
9100 * reload1.c (emit_input_reload_insns): Ditto.
9101 * ira-costs.c (copy_cost): Use TARGET_PREFERRED_RELOAD_CLASS target
9102 hook. Change rclass argument and secondary_class variable types from
9103 'enum reg_class' to reg_class_t.
9105 * config/i386/i386.h (PREFERRED_RELOAD_CLASS): Remove.
9106 * config/i386/i386-protos (ix86_preferred_reload_class): Remove.
9107 * config/i386/i386.c (ix86_preferred_reload_class): Make static.
9108 Change regclass argument and result types from enum reg_class to
9110 (TARGET_PREFERRED_RELOAD_CLASS): Define.
9112 2010-10-11 Eric Botcazou <ebotcazou@adacore.com>
9114 * simplify-rtx.c (simplify_unary_operation_1): Use unsigned arithmetics
9115 in masking operations.
9116 (simplify_const_unary_operation): Likewise.
9117 (simplify_binary_operation_1): Likewise.
9118 (simplify_const_binary_operation): Likewise.
9119 (simplify_const_relational_operation): Likewise.
9120 (simplify_ternary_operation): Likewise.
9121 (simplify_immed_subreg): Likewise.
9123 2010-10-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9126 * doc/tm.texi.in (SUPPORTS_WEAK): Update.
9127 (TARGET_SUPPORTS_WEAK): New.
9128 * doc/tm.texi: Regenerate.
9129 * defaults.h (SUPPORTS_WEAK): Update comment.
9130 (TARGET_SUPPORTS_WEAK): New.
9131 * dwarf2asm.c (USE_LINKONCE_INDIRECT): Update define.
9132 * varasm.c (assemble_external): Use TARGET_SUPPORTS_WEAK instead of
9134 (merge_weak, declare_weak, do_assemble_alias, supports_one_only,
9135 make_decl_one_only): Likewise.
9136 * config/pa/som.h (SUPPORTS_WEAK): Rename defines to
9137 TARGET_SUPPORTS_WEAK.
9138 (SUPPORTS_ONE_ONLY, MAKE_DECL_ONE_ONLY): Use TARGET_SUPPORTS_WEAK
9139 instead of SUPPORTS_WEAK.
9141 2010-10-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9143 * config/sparc/gmon-sol2.c: Don't include coretypes.h, tm.h.
9145 2010-10-11 Nathan Froyd <froydnj@codesourcery.com>
9147 * vec.h (VEC_qsort): Define.
9148 * dbxout.c (output_used_types): Use it.
9149 * df-scan.c (df_sort_and_compress_refs): Likewise.
9150 (df_sort_and_compress_mws): Likewise.
9151 * genautomata.c (uniq_sort_alt_states): Likewise.
9152 (evaluate_equiv_classes): Likewise.
9153 (output_trans_table): Likewise.
9154 (output_state): Likewise.
9155 * gimplify.c (compare_case_labels): Likewise.
9156 * graphite-sese-to-poly.c (graphite_sort_dominated_info): Likewise.
9157 * ipa.c (build_cdtor_fns): Likewise.
9158 * lto.c (lto_wpa_write_files): Likewise.
9159 * sel-sched.c (fill_vec_av_set): Likewise.
9160 * tree-predcom.c (determine_roots_comp): Likewise.
9161 * tree-sra.c (sort_and_spliace_var_accesses): Likewise.
9162 (splice_param_accesses): Likewise.
9163 * tree-ssa-live.c (dump_enumerated_decls): Likewise.
9164 * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
9165 (reassociate_bb): Likewise.
9166 * tree-ssa-sccvn.c (sort_scc): Likewise.
9167 * tree-ssa-structalias.c (sort_fieldstack): Likewise.
9169 2010-10-11 Ian Lance Taylor <iant@google.com>
9171 * tree.h (TREE_THIS_NOTRAP): Use TREE_CHECK5.
9172 * emit-rtl.c (set_mem_attributes_minus_bitpos): Only check
9173 TREE_THIS_NOTRAP when appropriate.
9174 (get_spill_slot_decl): Don't set TREE_THIS_NOTRAP on the new VAR_DECL.
9175 * gimplify.c (gimplify_expr): Copy NOTRAP from INDIRECT_REF to
9176 newly created MEM_REF.
9178 2010-10-11 Hariharan Sandanagobalane <hariharan@picochip.com>
9180 Nathan Froyds patch to hooks FUNCTION_ARG etc.
9181 * config/picochip/picochip-protos.h (picochip_function_arg): Delete.
9182 (picochip_incoming_function_arg): Delete.
9183 (picochip_arg_advance): Delete.
9184 * config/picochip/picochip.h (FUNCTION_ARG): Delete.
9185 (FUNCTION_INCOMING_ARG): Delete.
9186 (FUNCTION_ARG_ADVANCE): Delete.
9187 * config/picochip/picochip.c (picochip_function_arg): Take a
9188 const_tree and a bool.
9189 (picochip_incoming_function_arg): Likewise.
9190 (picochip_arg_advance): Likewise.
9191 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
9192 (TARGET_FUNCTION_ARG_ADVANCE): Define.
9194 2010-10-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9197 * ipa.c (build_cdtor): Delete endless loop.
9199 2010-10-07 Andi Kleen <ak@linux.intel.com>
9201 * Makefile.in (MOSTLYCLEANFILES): Remove cc1*dummy, add
9203 (checksum-options): Add.
9204 (cc1-dummy): Remove.
9205 (cc1-checksum): Change to run checksum over object files
9207 * dummy-checksum.c: Remove.
9208 * genchecksum.c: Update copyright.
9209 (usage): Allow multiple arguments.
9211 (dosum): Change for incremental checksum. Remove C output.
9212 (main): Iterate over all argument files. Add C output.
9214 2010-10-11 Joseph Myers <joseph@codesourcery.com>
9216 * params.c (set_param_value_internal): New.
9217 (set_param_value): Use set_param_value_internal.
9218 (maybe_set_param_value, set_default_param_value): New.
9219 * params.h (PARAM_VALUE, PARAM_SET_P): Make into rvalues.
9220 (maybe_set_param_value, set_default_param_value): Declare.
9221 * config/arm/arm.c (arm_option_override): Use maybe_set_param_value.
9222 * config/i386/i386.c (ix86_option_override_internal): Use
9223 maybe_set_param_value.
9224 * config/ia64/ia64.c (ia64_option_default_params,
9225 TARGET_OPTION_DEFAULT_PARAMS): New.
9226 (ia64_option_optimization): Move some code to
9227 ia64_option_default_params.
9228 * config/picochip/picochip.c (picochip_option_override): Use
9229 maybe_set_param_value.
9230 * config/rs6000/rs6000.c (rs6000_option_default_params,
9231 TARGET_OPTION_DEFAULT_PARAMS): New.
9232 (rs6000_option_override_internal): Use maybe_set_param_value.
9233 (rs6000_option_optimization): Move some code to
9234 rs6000_option_default_params.
9235 * config/s390/s390.c (s390_option_override): Use maybe_set_param_value.
9236 * config/sh/sh.c (sh_option_default_params,
9237 TARGET_OPTION_DEFAULT_PARAMS): New.
9238 (sh_option_optimization): Move some code to sh_option_default_params.
9239 * config/sparc/sparc.c (sparc_option_override): Use
9240 maybe_set_param_value.
9241 * config/spu/spu.c (spu_option_default_params,
9242 TARGET_OPTION_DEFAULT_PARAMS): New.
9243 (spu_option_optimization): Move some code to spu_option_default_params.
9244 (spu_option_override): Use maybe_set_param_value.
9245 * doc/tm.texi.in (TARGET_OPTION_DEFAULT_PARAMS): New @hook.
9246 * doc/tm.texi: Regenerate.
9247 * ggc-common.c (init_ggc_heuristics): Use set_default_param_value.
9248 * opts.c (init_options_once): Use PARAM_VALUE not direct access to
9250 (default_options_optimization): Use maybe_set_param_value.
9251 (finish_options): Use maybe_set_param_value.
9252 * target.def (target_option.default_params): New hook.
9253 * toplev.c (general_init): Call targetm.target_option.default_params.
9255 2010-10-11 Ira Rosen <irar@il.ibm.com>
9257 PR tree-optimization/45902
9258 * tree-vect-slp.c (vect_get_constant_vectors): Use statement's
9259 vector type for constants, unless it's a pointer.
9261 2010-10-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9263 * config/s390/s390.md (*mov<mode>cc): lgoc -> locg and stgoc -> stocg.
9265 2010-10-11 Jakub Jelinek <jakub@redhat.com>
9268 * config/i386/i386.c (ix86_delegitimize_tls_address): New function.
9269 (ix86_delegitimize_address): Use it.
9271 2010-10-10 Eric Botcazou <ebotcazou@adacore.com>
9273 * opt-functions.awk (opt_sanitized_name): Remove gdwarf+ handling.
9275 2010-10-10 Uros Bizjak <ubizjak@gmail.com>
9277 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Pass pointer
9278 to cum struct in the call to function_arg_advance.
9279 (alpha_function_arg_advance): Mark named as unused.
9281 2010-10-10 Richard Sandiford <rdsandiford@googlemail.com>
9283 * config/mips/mips.c (mips_handle_option): Make "value" with
9286 2010-10-09 Richard Henderson <rth@redhat.com>
9289 * explow.c (allocate_dynamic_stack_space): Add REQUIRED_ALIGN parm,
9290 remove TARGET parm, convert KNOWN_ALIGN parm to SIZE_ALIGN. Honor
9291 required_align, tidy the code a bit. Emit split_stack code in the
9292 right place. Mark the return value with the alignment properly.
9293 * expr.h (allocate_dynamic_stack_space): Update decl.
9294 * builtins.c (expand_builtin_apply): Update call to
9295 allocate_dynamic_stack_space.
9296 (expand_builtin_alloca): Likewise. Remove TARGET parameter.
9297 * calls.c (initialize_argument_information): Update call to
9298 allocate_dynamic_stack_space.
9299 (expand_call): Likewise.
9301 * cfgexpand.c (get_decl_align_unit): Don't limit alignment.
9302 Don't update_stack_alignment here.
9303 (alloc_stack_frame_space): Make ALIGN unsigned.
9304 (stack_var_cmp): Sort by alignment too.
9305 (partition_stack_vars): Don't merge large and small alignment vars.
9306 (expand_one_stack_var_at): Add BASE and BASE_ALIGN parameters.
9307 Take care when BASE is not virtual_stack_vars_rtx.
9308 (expand_stack_vars): Allocate dynamic stack space for large
9309 alignment variables.
9310 (expand_one_stack_var): Update all to expand_one_stack_var_at.
9311 (defer_stack_allocation): True for large alignment vars.
9312 (update_stack_alignment): Merge into ...
9313 (expand_one_var): ... here.
9314 (gimple_expand_cfg): Place code from expand_stack_vars.
9316 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
9318 * config/pdp11/pdp11.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
9319 * config/pdp11/pdp11.c (pdp11_function_arg): New function.
9320 (pdp11_function_arg_advance): New function.
9321 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
9323 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
9325 * libgcc2.h: Use __SIZEOF_LONG_LONG__ instead of LONG_LONG_TYPE_SIZE.
9326 * libgcc2.c: Likewise.
9328 2010-10-09 Richard Guenther <rguenther@suse.de>
9331 * lto-streamer-in.c (lto_register_var_decl_in_symtab):
9332 Properly check if a decl is an automatic var.
9334 2010-10-09 Richard Guenther <rguenther@suse.de>
9337 * tree.c (free_lang_data_in_cgraph): Properly walk the varpool.
9339 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
9341 * config/mmix/mmix-protos.h (mmix_function_arg): Delete.
9342 * config/mmix/mmix.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
9343 * config/mmix/mmix.c (mmix_function_arg): Rename to...
9344 (mmix_function_arg_1): ...this. Make static. Take a const_tree and
9346 (mmix_function_arg): New function.
9347 (mmix_function_incoming_arg): New function.
9348 (mmix_function_arg_advance): New function.
9349 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
9350 (TARGET_FUNCTION_ARG_ADVANCE): Define.
9352 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
9354 * config/vax/vax.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
9355 * config/vax/vax.c (vax_function_arg): New function.
9356 (vax_function_arg_advance): New function.
9357 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
9359 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
9361 * config/pa/pa-protos.h (function_arg): Delete.
9362 * config/pa/pa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
9363 * config/pa/pa.c (function_arg): Rename to...
9364 (pa_function_arg): ...this. Make static. Take a const_tree and
9366 (pa_function_arg_advance): New function.
9367 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
9369 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
9371 * config/m68k/m68k.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
9372 * config/m68k/m68k.c (m68k_function_arg): New function.
9373 (m68k_function_arg_advance): New function.
9374 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
9376 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
9378 * config/avr/avr-protos.h (function_arg): Delete.
9379 (function_arg_advance): Delete.
9380 * config/avr/avr.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
9381 * config/avr/avr.c (function_arg): Rename to...
9382 (avr_function_arg): ...this. Make static. Take a const_tree and
9384 (function_arg_advance): Rename to...
9385 (avr_function_arg_advance): ...this. Make static. Take a
9386 const_tree and a bool.
9387 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
9389 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
9391 * config/alpha/alpha-protos.h (function_arg): Delete.
9392 * config/alpha/alpha.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
9393 * config/alpha/vms.h (FUNCTION_ARG_ADVANCE): Delete.
9394 * config/alpha/alpha.c (function_arg): Rename to...
9395 (alpha_function_arg): ...this. Make static. Take a const_tree and
9396 a bool. Delete TARGET_ABI_UNICOSMK code.
9397 (alpha_function_arg_advance): New function.
9398 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
9400 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
9402 * config/mep/mep-protos.h (mep_function_arg): Delete.
9403 (mep_function_arg_advance): Delete.
9404 * config/mep/mep.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
9405 * config/mep/mep.c (mep_function_arg): Make static. Take a
9406 const_tree and a bool.
9407 (mep_function_arg_advance): Likewise.
9408 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
9410 2010-10-09 Richard Guenther <rguenther@suse.de>
9412 PR tree-optimization/45945
9413 * tree-ssa.c (execute_update_addresses_taken): Fixup LHS scanning.
9415 2010-10-09 Eric Botcazou <ebotcazou@adacore.com>
9417 PR tree-optimization/45612
9418 * ipa-split.c (test_nonssa_use): Remove bogus ATTRIBUTE_UNUSED.
9419 Test LABEL_DECLs as well. Fix formatting issues.
9420 (verify_non_ssa_vars): Return false for a GIMPLE_LABEL statement
9421 whose label is present in NON_SSA_VARS.
9422 (mark_nonssa_use): Remove bogus ATTRIBUTE_UNUSED. Handle LABEL_DECLs
9423 as well. Fix formatting issues.
9424 (visit_bb): Fix typos and formatting issue.
9426 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
9428 PR tree-optimization/45950
9429 * tree-ssa-sccvn.c (init_vn_nary_op_from_pieces): Consult length
9430 before initializing vno->op.
9432 2010-10-09 Ralf Corsépius <ralf.corsepius@rtems.org>
9434 * config.gcc (bfin*-rtems*): Add newlib-stdint.h.
9435 * config.gcc (lm32*-rtems*): Add newlib-stdint.h.
9437 2010-10-08 H.J. Lu <hongjiu.lu@intel.com>
9440 * config/i386/i386.c (ix86_binary_operator_ok): Support
9441 "andhi/andsi/anddi" as a zero-extending move.
9443 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
9445 * builtins.c (fold_call_stmt): Don't copy gimple call arguments
9446 into a temporary array.
9448 2010-10-08 Jakub Jelinek <jakub@redhat.com>
9450 PR tree-optimization/45903
9451 * simplify-rtx.c (simplify_subreg): Optimize lowpart SUBREG
9452 of {A,L}SHIFTRT of MEM.
9454 2010-10-08 Richard Guenther <rguenther@suse.de>
9456 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
9457 Re-construct BLOCK_VARS.
9458 (lto_input_ts_block_tree_pointers): Do not stream BLOCK_VARS.
9459 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
9460 * tree.c (free_lang_data_in_block): Remove.
9461 (free_lang_data_in_decl): Do not touch DECL_CONTEXT of non-PARM_DECLs.
9462 Do not touch the BLOCK tree.
9463 * expr.c (expand_expr_real_1): Allow externals.
9465 2010-10-08 Richard Guenther <rguenther@suse.de>
9467 * lto-streamer-out.c (lto_output_ts_block_tree_pointers):
9468 Do not output BLOCK_SUBBLOCKS.
9469 * lto-streamer-in.c (lto_input_ts_block_tree_pointers):
9470 Reserve exact space needed for BLOCK_NONLOCALIZED_VARS.
9471 Re-construct BLOCK_SUBBLOCKS of parent block.
9472 (lto_input_ts_binfo_tree_pointers): Reserve exact space needed
9473 for BINFO_BASE_ACCESSES.
9475 2010-10-08 Joseph Myers <joseph@codesourcery.com>
9477 * Makefile.in (TM_H): Include $(FLAGS_H) instead of options.h.
9478 (TREE_H): Include $(FLAGS_H) instead of options.h.
9479 (opts-common.o): Depend on $(FLAGS_H) instead of options.h.
9480 * c-objc-common.h (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
9481 * common.opt (flag_complex_method, flag_evaluation_order,
9482 flag_ira_algorithm, flag_ira_region, flag_warn_unused_result): New
9483 Variable declarations.
9484 * configure.ac (tm_include_list): Include flags.h instead of options.h.
9485 * configure: Regenerate.
9486 * flags.h: Condition out contents for target libraries. Include
9487 options.h at end of file.
9488 (flag_complex_method, flag_ira_algorithm, flag_ira_region,
9489 flag_evaluation_order, flag_warn_unused_result): Remove.
9490 * gcc.c (main): Intialize global_options with global_options_init.
9491 * langhooks-def.h (lhd_init_options_struct): Declare.
9492 (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
9493 (LANG_HOOKS_INITIALIZER): Include LANG_HOOKS_INIT_OPTIONS_STRUCT.
9494 * langhooks.c (lhd_init_options_struct): New.
9495 * langhooks.h (struct lang_hooks): Add init_options_struct.
9496 Update comment on init_options.
9497 * optc-gen.awk: Generate initializer for global_options_init, not
9499 * opth-gen.awk: Condition out structure declarations for target
9500 libraries. Declare global_options_init.
9501 * opts-common.c: Include flags.h instead of options.h.
9502 * opts.c (flag_warn_unused_result): Remove.
9503 (read_cmdline_options): Take gcc_options parameters. Pass them to
9504 read_cmdline_option.
9505 (initial_lang_mask, initial_min_crossjump_insns,
9506 initial_max_fields_for_field_sensitive,
9507 initial_loop_invariant_max_bbs_in_loop): Define at file scope.
9508 (init_options_once): New. Split out of decode_options.
9509 (init_options_struct): New. Split out of decode_options.
9510 (decode_cmdline_options_to_array_default_mask): New.
9511 (default_options_optimization): New. Split out of decode_options.
9512 (decode_options): Move most code to other functions. Update call
9513 to read_cmdline_options.
9514 (finish_options): New. Split out of decode_options.
9515 * opts.h (decode_options): Add gcc_options parameters.
9516 (init_options_once, init_options_struct,
9517 decode_cmdline_options_to_array_default_mask): New.
9518 * toplev.c (flag_complex_method, flag_ira_algorithm,
9519 flag_ira_region, flag_evaluation_order): Remove.
9520 (general_init): Use global_options_init for initial flag values
9522 (toplev_main): Call init_options_once, init_options_struct,
9523 lang_hooks.init_options_struct,
9524 decode_cmdline_options_to_array_default_mask and
9525 lang_hooks.init_option before decode_options. Update arguments to
9527 * tree.h: Include flags.h instead of options.h.
9529 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
9531 * config/rx/rx.c (TARGET_EXCEPT_UNWIND_INFO): Define.
9533 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
9535 * config/sparc/sparc-protos.h (function_arg_advance, function-arg):
9537 * config/sparc/sparc.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
9538 (FUNCTION_INCOMING_ARG): Delete.
9539 * config/sparc/sparc.c (scan_record_type): Const-ify tree argument.
9540 (function_arg_slotno): Likewise. Take bool arguments.
9541 (sparc_arg_partial_bytes): Update call to it.
9542 (function_arg): Rename to...
9543 (sparc_function_arg_1): ...this. Take bool arguments.
9544 (sparc_function_arg, sparc_function_incoming_arg): New functions.
9545 (function_arg_advance): Rename to...
9546 (sparc_function_arg_advance): ...this. Take bool argument.
9547 (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG): Define.
9548 (TARGET_FUNCTION_INCOMING_ARG): Define.
9550 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
9552 * config/bfin/bfin-protos.h (function_arg, function_arg_advance):
9554 * config/bfin/bfin.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
9555 * config/bfin/bfin.c (function_arg_advance): Rename to...
9556 (bfin_function_arg_advance): ...this. Make static. Take const_tree
9558 (function_arg): Rename to...
9559 (bfin_function_arg): ...this. Make static. Take const_tree and bool
9561 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
9563 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
9565 * config/score/score-protos.h (score_function_arg): Delete.
9566 (score_function_arg_advance): Delete.
9567 * config/score/score3.h (score3_function_arg_advance): Take a
9568 const_tree and a bool.
9569 (score3_function_arg): Likewise.
9570 * config/score/score7.h (score7_function_arg_advance): Likewise.
9571 (score7_function_arg): Likewise.
9572 * config/score/score3.c (score3_classify_arg): Likewise.
9573 (score3_function_arg_advance, score3_function_arg): Likewise.
9574 * config/score/score7.c (score7_classify_arg): Likewise.
9575 (score7_function_arg_advance, score7_function_arg): Likewise.
9576 * config/score/score.c (score_function_arg_advance): Likewise.
9577 (score_function_arg): Likewise. De-const-ify `cum' argument.
9578 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
9580 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
9582 * config/s390/s390-protos.h (s390_function_arg_advance): Delete.
9583 (s390_function_arg): Delete.
9584 * config/s390/s390.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
9585 * config/s390/s390.c (s390_function_arg_float): Take a const_tree.
9586 (s390_function_arg_integer): Likewise.
9587 (s390_function_arg_advance): Make static. Take a const_tree and
9589 (s390_function_arg): Likewise.
9590 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
9592 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
9594 * config/spu/spu-protos.h (spu_function_arg): Delete.
9595 * config/spu/spu.h (FUNCTION_ARG): Delete.
9596 (FUNCTION_ARG_ADVANCE): Move code to ...
9597 * config/spu/spu.c (spu_function_arg_advance): New function.
9598 (spu_function_arg): Make static. Take a const_tree and a bool.
9599 (spu_setup_incoming_varargs): Call spu_function_arg_advance.
9600 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
9602 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
9604 * config/rx/rx.c (TARGET_EXCEPT_UNWIND_INFO): Define.
9606 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
9608 * tree-ssa-sccvn.c (init_vn_nary_op_from_pieces): New function.
9609 (init_vn_nary_op_from_op): New function.
9610 (init_vn_nary_op_from_stmt): New function.
9611 (vn_nary_op_lookup_1): New function.
9612 (sizeof_vn_nary_op): New function.
9613 (alloc_vn_nary_op_noinit): New function.
9614 (alloc_vn_nary_op): New function.
9615 (vn_nary_op_insert_into): New function.
9616 (vn_nary_op_lookup_pieces): Rewrite to use new helper functions.
9617 (vn_nary_op_lookup): Likewise.
9618 (vn_nary_op_lookup_stmt): Likewise.
9619 (vn_nary_op_insert_pieces): Likewise.
9620 (vn_nary_op_insert): Likewise.
9621 (vn_nary_op_insert_stmt): Likewise.
9622 (copy_nary): Likewise.
9623 (set_value_id_for_result): New function.
9624 (set_hashtable_value_ids): Call it.
9626 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
9628 * config/fr30/fr30.c (TARGET_EXCEPT_UNWIND_INFO): Define.
9629 * config/fr30/fr30.md (leave_func): Rewrite without post_inc.
9631 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
9633 * config/mcore/mcore.h (INCOMING_RETURN_ADDR_RTX): Define.
9634 * config/mcore/mcore.c (TARGET_EXCEPT_UNWIND_INFO): Define.
9636 2010-10-08 Alexandre Oliva <aoliva@redhat.com>
9639 * cse.c (cse_extended_basic_block): Preserve cc0 info across
9640 debug isnsn. Skip them when searching for cc0 setter.
9641 (set_live_p): Skip debug insns when searching for cc0 user.
9643 2010-10-08 Alexandre Oliva <aoliva@redhat.com>
9649 * tree-pretty-print.c (dump_generic_node): Explicitly dump the
9650 type of MEM_REFs to INTEGER_CSTs.
9652 2010-10-07 Nathan Froyd <froydnj@codesourcery.com>
9654 * config/m68hc11/m68hc11.c (m68hc11_print_operand): Call
9655 m68hc11_print_operand_address.
9657 2010-10-07 Nathan Froyd <froydnj@codesourcery.com>
9659 * builtins.c (rewrite_call_expr): Move code to...
9660 (rewrite_call_expr_valist): ...here. Call build_call_expr_loc_array.
9661 (rewrite_call_expr_array): New function.
9662 (fold_builtin_sprintf_chk_1): New function.
9663 (fold_builtin_sprintf_chk): Call it.
9664 (gimple_fold_builtin_sprintf_chk): Likewise.
9665 (fold_builtin_snprintf_chk_1): New function.
9666 (fold_builtin_snprintf_chk): Call it.
9667 (gimple_fold_builtin_snprintf_chk): Likewise.
9668 (gimple_rewrite_call_expr): Delete.
9670 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
9672 * config.host: Update copyright year.
9674 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
9676 * config.host (host_lto_plugin_soname): New shell variable.
9677 * configure.ac (LTOPLUGINSONAME): Add an AC_DEFINE for the above.
9678 * config.in: Regenerate.
9679 * configure: Regenerate.
9680 * gcc.c (main): Use LTOPLUGINSONAME instead of hard-coding name of
9681 LTO plugin shared library.
9683 2010-10-07 Richard Henderson <rth@redhat.com>
9685 * target.h (enum unwind_info_type): Move ...
9686 * coretypes.h: ... here.
9688 2010-10-07 Nicola Pero <nicola.pero@meta-innovation.com>
9690 * doc/objc.texi (Fast enumeration protocol): Mention that
9691 'unsigned int' can also be used instead of 'unsigned long' in
9692 countByEnumeratingWithState:objects:count:.
9694 2010-10-07 Martin Jambor <mjambor@suse.cz>
9696 * tree-sra.c (struct access): New field grp_assignment_write.
9697 (dump_access): Dump grp_assignment_write.
9698 (build_accesses_from_assign): Set grp_assignment_write.
9699 (sort_and_splice_var_accesses): Aggregate grp_assignment_write.
9700 (mark_read_status): Renamed to mark_rw_status, individual values
9702 (analyze_access_subtree): Changed type of mark_write to
9703 mark_read_status. Fixed propagating of mark_read and
9704 mark_write. Changed benefit estimate. Updated comment.
9706 2010-10-07 Tejas Belagod <tejas.belagod@arm.com>
9709 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Add NULL
9710 check for vectype_out returned by get_vectype_for_scalar_type().
9712 2010-10-07 Tejas Belagod <tejas.belagod@arm.com>
9715 * config/arm/neon.md (neon_unpack<US>_<mode>): Add 'w' to
9716 constraint, add register specifier in instruction template.
9717 (neon_vec_pack_trunc_<mode>): Likewise.
9718 (neon_vec_<US>mult_<mode>): Add register specifier to
9719 instruction template.
9721 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
9723 * config.gcc (c_target_objs)[i?86-*-pe|i?86-*-cygwin*]: Don't add
9725 (cxx_target_objs)[i?86-*-pe|i?86-*-cygwin*]: Likewise.
9726 (extra_gcc_objs)[i?86-*-pe|i?86-*-cygwin*]: Don't add cygwin1.o.
9727 * config/i386/t-cygwin (cygwin1.o): Delete build rule.
9728 (cygwin2.o): Likewise.
9729 * config/i386/cygwin1.c: Delete file.
9730 * config/i386/cygwin2.c: Likewise.
9731 * config/i386/cygwin.h (CPP_SPEC): Remove all %{mno-cygwin} specs and
9732 make all {%!mno-cygwin} ones unconditional.
9733 (STARTFILE_SPEC): Likewise.
9734 (REAL_LIBGCC_SPEC): Likewise.
9735 (LIB_SPEC): Likewise.
9736 (CXX_WRAP_SPEC): Likewise.
9737 (LINK_SPEC): Likewise.
9738 (CYGWIN_MINGW_SUBDIR): Delete now-unused macro definition.
9739 (CYGWIN_MINGW_SUBDIR_LEN): Likewise.
9740 (cygwin_gplusplus_include_dir): Delete now-unused array.
9741 (GPLUSPLUS_INCLUDE_DIR): Don't redefine to point to it.
9742 (cygwin_gplusplus_tool_include_dir): Delete now-unused array.
9743 (GPLUSPLUS_TOOL_INCLUDE_DIR): Don't redefine to point to it.
9744 (cygwin_gplusplus_backward_include_dir): Delete now-unused array.
9745 (GPLUSPLUS_BACKWARD_INCLUDE_DIR): Don't redefine to point to it.
9746 (cygwin_local_include_dir): Delete now-unused array.
9747 (LOCAL_INCLUDE_DIR): Don't redefine to point to it.
9748 (cygwin_cross_include_dir): Delete now-unused array.
9749 (CROSS_INCLUDE_DIR): Don't redefine to point to it.
9750 (cygwin_tool_include_dir): Delete now-unused array.
9751 (TOOL_INCLUDE_DIR): Don't redefine to point to it.
9752 (cygwin_standard_include_dir): Delete now-unused array.
9753 (STANDARD_INCLUDE_DIR): Don't redefine to point to it.
9754 (GEN_CVT_ARRAY): Delete now-unused macro definition.
9755 (cvt_to_mingw): Delete now-unused array.
9756 (mingw_scan): Remove prototype of deleted function.
9757 (GCC_DRIVER_HOST_INITIALIZATION): Don't define now-unused target macro.
9758 * config/i386/cygming.opt (mcygwin): Delete target-specific option.
9759 * doc/invoke.texi (-mcygwin): Don't document removed option.
9760 (-mno-cygwin): Likewise.
9762 2010-10-07 Richard Guenther <rguenther@suse.de>
9764 * machmode.h (mode_for_vector): Declare.
9765 * stor-layout.c (mode_for_vector): New function, split out from ...
9766 (layout_type): ... here.
9767 * tree-vectorizer.h (current_vector_size): Declare.
9768 * tree-vect-stmts.c (perm_mask_for_reverse): Check if the
9769 mask vector type is available.
9770 (get_vectype_for_scalar_type): Rename to ...
9771 (get_vectype_for_scalar_type_and_size): ... this. Get a vector
9773 (get_vectype_for_scalar_type): New wrapper around
9774 get_vectype_for_scalar_type_and_size using current_vector_size.
9775 (get_same_sized_vectype): Use get_vectype_for_scalar_type_and_size.
9776 * tree-vect-loop.c (vect_analyze_loop_2): Split out core part
9777 of vect_analyze_loop here.
9778 (vect_analyze_loop): Loop over vector sizes calling vect_analyze_loop_3.
9779 * tree-vect-slp.c (vect_slp_analyze_bb): Set current_vector_size
9781 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Fix
9782 V8SF to V8SI conversion builtin.
9784 2010-10-07 Richard Guenther <rguenther@suse.de>
9786 * target.def (autovectorize_vector_sizes): New target hook.
9787 * targhooks.c (default_autovectorize_vector_sizes): New function.
9788 * targhooks.h (default_autovectorize_vector_sizes): Declare.
9789 * doc/tm.texi.in (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES):
9791 * doc/tm.texi: Update.
9792 * config/i386/i386.c (ix86_autovectorize_vector_sizes): New function.
9793 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
9795 2010-10-07 Richard Guenther <rguenther@suse.de>
9797 * target.def (units_per_simd_word): Rename to ...
9798 (preferred_simd_mode): ... this. Return mode instead of size.
9799 * targhooks.c (default_units_per_simd_word): Rename to ...
9800 (default_preferred_simd_mode): ... this. Return word_mode.
9801 * targhooks.h (default_preferred_simd_mode): Declare.
9802 * config/arm/arm.c (arm_units_per_simd_word): Rename to ...
9803 (arm_preferred_simd_mode): ... this. Re-implement.
9804 * config/i386/i386.c (ix86_units_per_simd_word): Rename to ...
9805 (ix86_preferred_simd_mode): ... this. Re-implement.
9806 * config/sparc/sparc.c (sparc_units_per_simd_word): Rename to ...
9807 (sparc_preferred_simd_mode): ... this. Re-implement.
9808 * config/mips/mips.c (mips_units_per_simd_word): Rename to ...
9809 (mips_preferred_simd_mode): ... this. Re-implement.
9810 * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Rename to ...
9811 (rs6000_preferred_simd_mode): ... this. Re-implement.
9812 * tree-vect-stmts.c (get_vectype_for_scalar_type): Adjust.
9813 * doc/tm.texi.in (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Remove.
9814 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE): Document.
9815 * doc/tm.texi: Update.
9817 2010-10-07 Richard Guenther <rguenther@suse.de>
9820 * tree-cfg.c (verify_gimple_assign_binary): Allow vector shifts
9823 2010-10-07 Alan Modra <amodra@gmail.com>
9825 * config/rs6000/rs6000.c (rs6000_emit_prologue): Use gen_int_mode
9826 rather than sign extension by hand.
9828 2010-10-07 Jan Hubicka <jh@suse.cz>
9831 * ipa.c (cgraph_remove_unreachable_nodes): Revert my previous patch.
9833 2010-10-07 Richard Guenther <rguenther@suse.de>
9836 * configure.ac: Fix typo.
9837 * configure: Regenerated.
9839 2010-10-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
9841 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Don't use
9842 define_builtin_std where it's unnecessary.
9843 * config/i386/nto.h (TARGET_OS_CPP_BUILTINS): Likewise.
9845 2010-10-06 Anatoly Sokolov <aesok@post.ru>
9847 * doc/tm.texi.in (CLASS_LIKELY_SPILLED_P): Remove documentation.
9848 * doc/tm.texi.in: Regenerate.
9849 * system.h (CLASS_LIKELY_SPILLED_P): Poison.
9850 * targhooks.c (default_class_likely_spilled_p): Don't use the
9851 CLASS_LIKELY_SPILLED_P macro.
9853 * config/arm/arm.md: Update comment.
9855 2010-10-06 Jan Hubicka <jh@suse.cz>
9857 * ipa.c (cgraph_remove_unreachable_nodes): External references can
9859 (cgraph_externally_visible_p): We can not bring local comdats that
9860 are known to linker; fix handling of internal visibility.
9861 (function_and_variable_visibility): Likewise.
9863 2010-10-06 Eric Botcazou <ebotcazou@adacore.com>
9865 PR rtl-optimization/45394
9866 * combine.c (cleanup_auto_inc_dec): Remove AFTER parameter and adjust.
9867 (struct rtx_subst_pair): Remove AFTER field.
9868 (propagate_for_debug_subst): Adjust call to cleanup_auto_inc_dec.
9869 (propagate_for_debug): Remove MOVE parameter and adjust.
9870 (try_combine): In the special case where I2 is a PARALLEL, combine only
9871 destinations of SETs and set I2SRC to the I2 source.
9872 Adjust calls to propagate_for_debug throughout.
9873 * reload1.c (eliminate_regs_1) <ASM_OPERANDS>: Do not abort for debug
9876 2010-10-06 Olivier Hainque <hainque@adacore.com>
9878 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Rewrite
9879 switch on insn codes as sequence of ifs.
9881 2010-10-06 Hariharan Sandanagobalane <hariharan@picochip.com>
9883 * config/picochip/picochip.c (TARGET_EXCEPT_UNWIND_INFO): Define it to
9884 be UI_NONE for picochip.
9885 (picochip_option_override): Do not disable exception flags.
9886 * config/picochip/picochip-protos.h (picochip_except_unwind_info):
9889 2010-10-06 Richard Guenther <rguenther@suse.de>
9891 * Makefile.in (regmove.o): Depend on $(TARGET_H).
9893 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
9895 Implemented fast enumeration for Objective-C.
9896 * c-parser.c (objc_could_be_foreach_context): New.
9897 (c_lex_one_token): Recognize RID_IN keyword in a potential
9898 Objective-C foreach context.
9899 (c_parser_declaration_or_fndef): Added parameter. Accept
9900 Objective-C RID_IN keyword as terminating a declaration; in that
9901 case, return the declaration in the new parameter.
9902 (c_parser_extenral_declaration): Updated calls to
9903 c_parser_declaration_or_fndef.
9904 (c_parser_declaration_or_fndef): Same change.
9905 (c_parser_compound_statement_nostart): Same change.
9906 (c_parser_label): Same change.
9907 (c_parser_objc_methodprotolist): Same change.
9908 (c_parser_omp_for_loop): Same change.
9909 (c_parser_for_statement): Detect and parse Objective-C foreach
9911 (c_parser_omp_for_loop): Updated call to check_for_loop_decls().
9912 * c-decl.c (check_for_loop_decls): Added parameter to allow ObjC
9913 fast enumeration parsing code to turn off the c99 error but still
9914 perform checks on the loop declarations.
9915 * c-tree.h (check_for_loop_decls): Updated declaration.
9916 * doc/objc.texi: Document fast enumeration.
9918 2010-10-06 Nick Clifton <nickc@redhat.com>
9920 * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Increment by one.
9921 (MDR_REGNUM): Define.
9922 (FIXED_REGISTERS, CALL_USED_REGISTERS): Add MDR as a fixed register.
9923 (REG_CLASS_CONTENTS): Add MDR to ALL_REGS.
9924 (INCOMING_RETURN_ADDR_RTX): Define in terms of MDR.
9925 (REGISTER_NAMES): Add MDR.
9926 (DWARF2_DEBUGGING_INFO): Define to 1.
9927 * config/mn10300/mn10300.c (TARGET_EXCEPT_UNWIND_INFO): Define.
9928 (F): New function. Sets RTX_FRAME_RELATED_P.
9929 (mn10300_gen_multiple_store): Use F.
9930 (expand_prologue): Use F. Use gen_movsf() to push floating
9932 (expand_epilogue): Use gen_movsf() to pop floating point registers.
9933 (mn10300_option_override): Disable combine stack adjust pass.
9935 2010-10-06 Thomas Schwinge <thomas@schwinge.name>
9938 * config/alpha/gnu.h (TARGET_OS_CPP_BUILTINS): Refer to
9939 LINUX_TARGET_OS_CPP_BUILTINS instead of HURD_TARGET_OS_CPP_BUILTINS.
9941 2010-10-06 Jakub Jelinek <jakub@redhat.com>
9943 * builtins.def (BUILT_IN_CALLOC, BUILT_IN_REALLOC,
9944 BUILT_IN_ISALNUM, BUILT_IN_ISALPHA, BUILT_IN_ISASCII,
9945 BUILT_IN_ISBLANK, BUILT_IN_ISCNTRL, BUILT_IN_ISDIGIT,
9946 BUILT_IN_ISGRAPH, BUILT_IN_ISLOWER, BUILT_IN_ISPRINT,
9947 BUILT_IN_ISPUNCT, BUILT_IN_ISSPACE, BUILT_IN_ISUPPER,
9948 BUILT_IN_ISXDIGIT, BUILT_IN_TOASCII, BUILT_IN_TOLOWER,
9949 BUILT_IN_TOUPPER): Mark as leaf.
9952 * omp-builtins.def (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
9953 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
9954 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
9955 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
9956 BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_TASK,
9957 BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Use
9958 Revert back to ATTR_NOTHROW_LIST instead of ATTR_NOTHROW_LEAF_LIST.
9960 2010-10-05 Anatoly Sokolov <aesok@post.ru>
9962 * config/m68hc11/m68hc11.h (CLASS_LIKELY_SPILLED_P): Remove.
9963 * config/m68hc11/m68hc11.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
9964 (m68hc11_class_likely_spilled_p): New function.
9966 2010-10-05 Nicola Pero <nicola.pero@meta-innovation.com>
9968 * c-parser.c (c_parser_objc_method_definition): Updated comment.
9970 2010-10-05 Jan Hubicka <jh@suse.cz>
9972 * doc/invoke.texi (-flto-partition, lto-partitions, lto-minpartition):
9974 * opts.c (decode_options): Handle lto partitions.
9975 * common.opt (flto-partition=1to1, flto-partition=balanced): New.
9976 * params.def (PARAM_LTO_PARTITIONS, MIN_PARTITION_SIZE): New.
9978 2010-10-05 Jan Hubicka <jh@suse.cz>
9980 * cgraphunit.c (assemble_function): Output thunks and aliases before
9981 the function itself.
9983 2010-09-29 Hariharan Sandanagobalane <hariharan@picochip.com>
9985 * config/picochip/picochip.c (picochip_option_override): Disable
9986 exception flags for picochip.
9988 2010-10-05 Joseph Myers <joseph@codesourcery.com>
9990 * opts-common.c (handle_option, handle_generated_option,
9991 read_cmdline_option, set_option): Add diagnostic_context
9992 parameter. Update calls among these functions.
9993 (set_option): Don't use global_dc.
9994 * opts.c (read_cmdline_options): Pass global_dc to read_cmdline_option.
9995 (decode_options): Pass global_dc to enable_warning_as_error.
9996 (common_handle_option): Pass global_dc to enable_warning_as_error.
9997 (enable_warning_as_error): Add diagnostic_context parameter.
9998 Document parameters. Don't use global_dc. Pass
9999 diagnostic_context parameter to handle_generated_option.
10000 * opts.h (set_option, handle_option, handle_generated_option,
10001 read_cmdline_option, enable_warning_as_error): Add
10002 diagnostic_context parameter.
10003 * Makefile.in (lto-opts.o): Update dependencies.
10004 * coretypes.h (struct diagnostic_context, diagnostic_context):
10006 * diagnostic.h (diagnostic_context): Don't declare typedef here.
10007 * gcc.c (process_command): Pass global_dc to read_cmdline_option.
10008 * langhooks-def.h (struct diagnostic_context): Don't declare here.
10009 (lhd_print_error_function, lhd_initialize_diagnostics): Declare
10010 using diagnostic_context typedef.
10011 * langhooks.c (lhd_initialize_diagnostics): Declare using
10012 diagnostic_context typedef.
10013 * langhooks.h (struct diagnostic_context): Don't declare here.
10014 (initialize_diagnostics, print_error_function): Declare using
10015 diagnostic_context typedef.
10016 * lto-opts.c: Include diagnostic.h.
10017 (lto_reissue_options): Pass global_dc to set_option. Pass
10018 DK_UNSPECIFIED not 0.
10019 * plugin.c (plugins_internal_error_function): Declare using
10020 diagnostic_context typedef.
10021 * plugin.h (struct diagnostic_context): Don't declare here.
10022 (plugins_internal_error_function): Declare using
10023 diagnostic_context typedef.
10025 2010-10-05 Olivier Hainque <hainque@adacore.com>
10026 Nicolas Roche <roche@adacore.com>
10028 * config/vxworksae.h: Add missing VXWORKS_OS_CPP_BUILTINS.
10029 * config/rs6000/vxworks.h: Remove redundant CPP builtin definitions.
10031 2010-10-05 Ira Rosen <irar@il.ibm.com>
10033 PR tree-optimization/45752
10034 * tree-vect-slp.c (vect_get_mask_element): Remove static
10035 variables, make them function arguments.
10036 (vect_transform_slp_perm_load): Pass new arguments to
10037 vect_get_mask_element.
10039 2010-10-05 Richard Guenther <rguenther@suse.de>
10041 * value-prof.c (gimple_divmod_fixed_value): Work on SSA form.
10042 (gimple_mod_pow2): Likewise.
10043 (gimple_mod_subtract): Likewise.
10044 (gimple_ic): Likewise.
10045 (gimple_stringop_fixed_value): Likewise.
10046 * tree-profile.c (tree_init_edge_profiler): Mark profile
10047 functions nothrow and leaf.
10048 (add_abnormal_goto_call_edges): Remove.
10049 (tree_gen_edge_profiler): Work on SSA form.
10050 (tree_gen_ic_profiler): Likewise. Simplify.
10051 (do_tree_profiling): Update SSA form.
10052 (pass_tree_profile): Remove.
10053 (do_tree_profiling): Likewise.
10054 (gate_tree_profile_ipa): New function.
10055 (pass_ipa_tree_profile): New.
10056 (tree_profiling): Re-write as IPA pass. Properly drop const/pure
10057 state of instrumented functions.
10058 * passes.c (init_optimization_passes): Remove early non-SSA
10059 inlining. Move profiling after early optimizations.
10060 * ipa-inline.c (cgraph_gate_ipa_early_inlining): Remove.
10061 (pass_ipa_early_inline): Likewise.
10062 * tree-pass.h (pass_ipa_early_inline): Remove.
10063 (pass_tree_profile): Likewise.
10064 (pass_ipa_tree_profile): Declare.
10066 2010-10-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10067 Christian Borntraeger <Christian.Borntraeger@de.ibm.com>
10069 * config/s390/s390.c (z196_cost): New.
10070 (s390_handle_arch_option): Add -march=z196.
10071 (s390_option_override): Use the new cost function and use the z10
10072 defaults also for z196.
10073 (legitimate_reload_constant_p): Adjust comment.
10074 (legitimate_reload_fp_constant_p): New function.
10075 (s390_preferred_reload_class): Distingiush between FP and Int constants.
10076 (preferred_la_operand_p): Avoid la with index on z196.
10077 (s390_adjust_priority): Trigger also for z196.
10078 (s390_issue_rate): Issue rate for z196 is 3.
10079 (s390_z10_fix_long_loop_prediction): Rename to ...
10080 (s390_fix_long_loop_prediction): ... this.
10081 (s390_reorg): Apply the z10 adjustments also for z196.
10082 (s390_loop_unroll_adjust): Do this also for z196.
10083 * config/s390/s390.h (enum processor_type): Add PROCESSOR_2817_Z196.
10084 (enum processor_flags): Add PF_Z196.
10085 (TARGET_AVOID_CMP_AND_BRANCH): New macro.
10086 (TARGET_CPU_Z196, TARGET_Z196): New macros.
10087 * config.gcc: Enable z196 for --with-arch.
10088 * config/s390/2817.md: New file.
10089 * config/s390/2084.md: New type for multiply and add.
10090 * config/s390/2097.md: Likewise.
10091 * config/s390/s390.md (UNSPEC_POPCNT, UNSPEC_COPYSIGN)
10092 (UNSPECV_ATOMIC_OP): New constants.
10093 (fmadddf, fmaddsf): New values for type attribute.
10094 (z196prop): New insn attribute.
10095 (cpu, cpu_facility): Add z196.
10096 (ATOMIC_Z196): New code iterator.
10097 (noxa): New code attribute.
10098 (gk): New mode attribute.
10099 (*mov<mode>_64, *mov<mode>_31, *mov<mode>_64dfp, mov<mode>):
10100 Support load zero for fp constants.
10101 (fixuns_truncdddi2, fixuns_trunctddi2)
10102 (fixuns_trunc<BFP:mode><GPR:mode>2): Use the standard rtx pattern
10104 (fixuns_trunc<mode>si2, mov<mode>cc, popcountdi2, popcountsi2)
10105 (popcounthi2, popcountqi2): New expander.
10106 (*fixuns_trunc<FP:mode><GPR:mode>2_z196, floatsi<mode>2)
10107 (floatuns<GPR:mode><FP:mode>2, *mov<mode>cc, sync_<atomic><mode>)
10108 (sync_old_<atomic><mode>, *popcount<mode>, copysign<mode>3): New
10110 (add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry1_cconly)
10111 (*add<mode>3_carry2_cc, *add<mode>3_carry2_cconly, *add<mode>3_cc)
10112 (*add<mode>3_cconly, *add<mode>3_cconly2, *add<mode>3_imm_cc)
10113 (*sub<mode>3, *sub<mode>3_borrow_cc, *sub<mode>3_borrow_cconly)
10114 (*sub<mode>3_cc, *sub<mode>3_cc2, *sub<mode>3_cconly)
10115 (*sub<mode>3_cconly2, *anddi3_cc, *anddi3_cconly, *anddi3, *andsi3_cc)
10116 (*andsi3_cconly, *andsi3_zarch, *andsi3_esa, *andhi3_zarch
10117 (*andqi3_zarch, *iordi3_cc, *iordi3_cconly, *iordi3, *iorsi3_cc)
10118 (*iorsi3_cconly, *iorsi3_zarch, *iorhi3_zarch, *iorqi3_zarch)
10119 (*xordi3_cc, *xordi3_cconly, *xordi3, *xorsi3_cc, *xorsi3_cconly)
10120 (*xorsi3, *xorhi3, *xorqi3, *<shift><mode>3, *<shift><mode>3_and)
10121 (*ashr<mode>3_cc, *ashr<mode>3_cconly, *ashr<mode>3)
10122 (*ashr<mode>3_cc_and, *ashr<mode>3_cconly_and, *ashr<mode>3_and):
10123 Support new z196 instructions.
10125 2010-10-05 Richard Guenther <rguenther@suse.de>
10127 PR middle-end/45877
10128 * gimple-fold.c (gimplify_and_update_call_from_tree): Handle
10129 case where gimplification optimizes away the stmt.
10131 2010-10-04 Jakub Jelinek <jakub@redhat.com>
10134 * var-tracking.c (strip_pointer_flags): New function.
10135 (emit_note_insn_var_location): If rtx_equal_p check failed,
10136 retry on locations simplified with simplify_replace_fn_rtx
10137 and strip_pointer_flags as its callback.
10139 2010-10-04 Jan Hubicka <jh@suse.cz>
10141 * gimple-fold.c (static_object_in_other_unit_p): Rename to...
10142 (can_refer_decl_in_current_unit_p): ... this one; reverse return
10143 value; handle comdats too.
10144 (canonicalize_constructor_val): Use it; handle function_decls
10146 (gimple_fold_obj_type_ref_known_binfo): Likewise.
10147 * gimple.c (get_base_address): Accept all kinds of decls.
10149 2010-10-04 Joseph Myers <joseph@codesourcery.com>
10151 * flags.h (g_switch_value, g_switch_set): Remove.
10152 * opts.c (g_switch_value, g_switch_set): Remove.
10153 * config/g.opt (G): Add Var(g_switch_value).
10154 * config/alpha/alpha.c (alpha_handle_option): Don't handle -G here.
10155 (alpha_option_override): Check global_options_set.x_g_switch_value
10156 instead of g_switch_set.
10157 (alpha_in_small_data_p): Remove cast in comparison with
10159 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Cast
10160 g_switch_value to unsigned HOST_WIDE_INT.
10161 * config/frv/frv.c (frv_const_unspec_p): Remove cast in comparison
10162 with g_switch_value.
10163 (frv_handle_option): Don't handle -G here.
10164 (frv_option_override): Check global_options_set.x_g_switch_value
10165 instead of g_switch_set. Don't modify g_switch_set.
10166 (frv_in_small_data_p): Remove cast in comparison with g_switch_value.
10167 * config/frv/frv.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Cast
10168 g_switch_value to unsigned HOST_WIDE_INT.
10169 * config/ia64/ia64.c (ia64_handle_option): Don't handle -G here.
10170 (ia64_option_override): Check global_options_set.x_g_switch_value
10171 instead of g_switch_set.
10172 * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION):
10174 (lm32_in_small_data_p): Remove cast in comparison with
10176 * config/lm32/lm32.h (ASM_OUTPUT_ALIGNED_LOCAL,
10177 ASM_OUTPUT_ALIGNED_COMMON): Cast g_switch_value to unsigned
10179 * config/m32r/m32r.c (m32r_handle_option): Don't handle -G here.
10180 (m32r_init): Check global_options_set.x_g_switch_value instead of
10182 (m32r_in_small_data_p): Remove cast in comparison with
10184 (m32r_file_start): Format g_switch_value with %d.
10185 * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_COMMON,
10186 ASM_OUTPUT_ALIGNED_BSS): Cast g_switch_value to unsigned HOST_WIDE_INT.
10187 * config/microblaze/microblaze.c (microblaze_handle_option): Don't
10189 (microblaze_option_override): Check
10190 global_options_set.x_g_switch_value instead of g_switch_set.
10191 * config/mips/mips.c (mips_handle_option): Don't handle -G here.
10192 (mips_option_override): Check global_options_set.x_g_switch_value
10193 instead of g_switch_set.
10194 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle -G here.
10195 (rs6000_file_start): Format g_switch_value with %d.
10196 (small_data_operand, rs6000_elf_in_small_data_p): Remove casts in
10197 comparisons with g_switch_value.
10198 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Check
10199 global_options_set.x_g_switch_value instead of g_switch_set.
10200 * config/rs6000/vxworks.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
10201 global_options_set.x_g_switch_value instead of g_switch_set.
10202 * config/score/score.c (score_handle_option): Don't handle -G here.
10203 * config/score/score3.c (score3_option_override): Check
10204 global_options_set.x_g_switch_value instead of g_switch_set.
10205 * config/score/score7.c (score7_option_override): Check
10206 global_options_set.x_g_switch_value instead of g_switch_set.
10208 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
10210 * common.opt (fira-coalesce): Remove.
10212 * doc/invoke.texi (flag_ira_coalesce): Remove.
10214 * ira-color.c (allocno_coalesced_p): Move before
10215 copy_freq_compare_func.
10216 processed_coalesced_allocno_bitmap): Ditto.
10217 (update_conflict_hard_regno_costs): Don't use
10218 ALLOCNO_FIRST_COALESCED_ALLOCNO.
10219 (allocno_cost_compare_func, print_coalesced_allocno): Remove.
10220 (assign_hard_reg): Assume no coalesced allocnos.
10221 (get_coalesced_allocnos_attributes): Remove.
10222 (bucket_allocno_compare_func): Assume no coalesced allocnos.
10223 (push_allocno_to_stack): Ditto.
10224 (remove_allocno_from_bucket_and_push): Use
10225 ira_print_expanded_allocno instead of print_coalesced_allocno.
10226 (push_allocnos_to_stack): Assume uncoalesced allocnos.
10227 (all_conflicting_hard_regs_coalesced): Ditto. Rename to
10228 all_conflicting_hard_regs.
10229 (setup_allocno_available_regs_num): Assume uncoalesced allocnos.
10230 (setup_allocno_left_conflicts_size): Ditto.
10231 (put_allocno_into_bucket): Ditto.
10232 (copy_freq_compare_func): Remove.
10233 (copy_freq_compare_func, merge_allocnos): Move before
10234 coalesced_pseudo_reg_freq_compare.
10235 coalesced_allocno_conflict_p): Ditto.
10236 (coalesced_allocno_conflict_p, coalesce_allocnos): Ditto. Remove
10237 parameter. Assume it true.
10238 (color_allocnos): Assume uncoalesced allocnos. Use
10239 ira_print_expanded_allocno instead of print_coalesced_allocno.
10240 (ira_sort_regnos_for_alter_reg): Call coalesce_allocnos without
10243 * ira.c: Remove comment about coalescing.
10245 2010-10-04 Joseph Myers <joseph@codesourcery.com>
10247 * config/mips/mips.h (target_flags_explicit): Declare for
10250 2010-10-04 Andi Kleen <ak@linux.intel.com>
10252 * Makefile.in (xgcc, cpp, cc1, collect2, lto-wrapper, gcov,
10253 gcov-dump, cc1-dummy, genprog, build/gcov-iov): Add + to build rule.
10255 2010-10-04 Matthias Klose <doko@ubuntu.com>
10257 * config/sparc/t-linux64 (MULTILIB_OSDIRNAMES): Use ../lib32 as the
10258 multilib osdirname if it exists.
10259 * config/s390/t-linux64 (MULTILIB_OSDIRNAMES): Likewise.
10261 2010-10-04 Jakub Jelinek <jakub@redhat.com>
10263 PR middle-end/45876
10264 * fold-const.c (fold_binary_loc) <case BIT_AND_EXPR>: Use
10265 arg0's type or its unsigned counterpart as utype. Convert
10266 arg1 to utype unconditionally.
10268 2010-10-04 Julian Brown <julian@codesourcery.com>
10270 * expr.c (expand_assignment): Add assertion to prevent emitting
10271 null rtx for movmisalign pattern.
10272 (expand_expr_real_1): Likewise.
10273 * config/arm/arm.c (arm_builtin_support_vector_misalignment): New.
10274 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT): New. Use above.
10275 (arm_vector_alignment_reachable): New.
10276 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): New. Use above.
10277 (neon_vector_mem_operand): Disallow PRE_DEC for misaligned loads.
10278 (arm_print_operand): Include alignment qualifier in %A.
10279 * config/arm/neon.md (UNSPEC_MISALIGNED_ACCESS): New constant.
10280 (movmisalign<mode>): New expander.
10281 (movmisalign<mode>_neon_store, movmisalign<mode>_neon_load): New
10284 2010-10-04 Joseph Myers <joseph@codesourcery.com>
10286 * optc-gen.awk: Define global_options_set. Don't define
10287 target_flags_explicit.
10288 * opth-gen.awk: Declare global_options_set. Define
10289 target_flags_explicit as macro.
10290 * opts-common.c (handle_option): Take opts_set and generated_p
10292 (handle_generated_option, read_cmdline_option, set_option): Take
10293 opts_set parameter.
10294 (set_option): Use opts_set instead of hardcoding target_flags and
10295 target_flags_explicit.
10296 * opts.c (sel_sched_switch_set, profile_arc_flag_set,
10297 flag_profile_values_set, flag_unroll_loops_set, flag_tracer_set,
10298 flag_value_profile_transformations_set, flag_peel_loops_set,
10299 flag_branch_probabilities_set, flag_inline_functions_set,
10300 flag_ipa_cp_set, flag_ipa_cp_clone_set,
10301 flag_predictive_commoning_set, flag_unswitch_loops_set,
10302 flag_gcse_after_reload_set): Remove.
10303 (common_handle_option, lang_handle_option, target_handle_option):
10304 Take opts_set parameter. Assert that it is &global_options_set.
10305 (common_handle_option): Don't set _set variables. Check opts_set
10306 instead of such variables.
10307 (enable_warning_as_error): Pass &global_options_set to
10308 handle_generated_option.
10309 * opts.h (cl_option_handler_func.handler, set_option,
10310 handle_option, handle_generated_option, read_cmdline_option): Add
10311 opts_set parameters.
10312 (handle_option): Add generated_p parameter.
10313 * config/i386/i386.c (ix86_function_specific_save,
10314 ix86_function_specific_restore): Updat for renaming of
10315 target_flags_explicit field.
10316 * config/i386/i386.opt (target_flags_explicit): Rename to
10317 ix86_target_flags_explicit.
10318 * config/ia64/ia64.c (ia64_override_options_after_change): Check
10319 global_options_set.x_flag_selective_scheduling and
10320 global_options_set.x_flag_selective_scheduling2, not
10321 sel_sched_switch_set.
10322 * flags.h (sel_sched_switch_set,
10323 flag_speculative_prefetching_set): Remove.
10324 * gcc.c (driver_handle_option): Take opts_set parameter. Assert
10325 that it is &global_options_set.
10326 (process_command): Pass &global_options_set to read_cmdline_option.
10327 * lto-opts.c (lto_reissue_options): Pass &global_options_set to
10329 * toplev.c (target_flags_explicit): Remove.
10331 2010-10-04 Jan Hubicka <jh@suse.cz>
10333 PR middle-end/45871
10334 * tree-ssa-ccp.c (get_base_constructor): Take HOST_WIDE_INT offset;
10335 use get_ref_base_and_offset to handle references.
10336 (fold_const_aggregate_ref): Update.
10338 2010-10-04 Martin Jambor <mjambor@suse.cz>
10340 PR tree-optimization/45572
10341 * ipa-prop.c (ipa_make_edge_direct_to_target): Call
10342 ipa_check_create_node_params.
10343 * ipa-inline.c (add_new_edges_to_heap): Do not insert inlined edges.
10345 2010-10-04 Yao Qi <yao@codesourcery.com>
10347 * doc/passes.texi: Clean up.
10349 2010-10-03 Ian Lance Taylor <iant@google.com>
10351 * c-typeck.c (lookup_field): If -fplan9-extensions, permit
10352 referring to a field using a typedef name.
10353 (find_anonymous_field_with_type): New static function.
10354 (convert_to_anonymous_field): New static function.
10355 (convert_for_assignment): If -fplan9-extensions, permit converting
10356 pointer to struct to pointer to anonymous field.
10357 * c-decl.c (grokfield): If -fplan9-extensions, permit anonymous fields.
10358 (is_duplicate_field): New static function.
10359 (detect_field_duplicates_hash): If -fplan9-extensions, check for
10360 typedef names duplicating field names.
10361 (detect_field_duplicates): Likewise.
10362 * doc/invoke.texi (Option Summary): Mention -fplan9-extensions.
10363 (C Dialect Options): Document -fplan9-extensions.
10364 * doc/extend.texi (Unnamed Fields): Document -fplan9-extensions.
10366 2010-10-03 H.J. Lu <hongjiu.lu@intel.com>
10368 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Revert
10370 (vect_create_data_ref_ptr): Likewise.
10371 * tree-vect-stmts.c (vectorizable_store): Likewise.
10372 (perm_mask_for_reverse): Likewise.
10373 (reverse_vec_elements): Likewise.
10374 (vectorizable_load): Likewise.
10376 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
10378 * cppbuiltin.c: New file.
10379 * cppbuiltin.h: New file.
10380 * Makefile.in: Take into account cppbuiltin.{h,c}.
10382 2010-10-03 Andi Kleen <ak@linux.intel.com>
10384 * lto-cgraph.c (input_cgraph): Check for missing sections.
10386 2010-10-03 Uros Bizjak <ubizjak@gmail.com>
10388 * config/i386/i386.md (*ashl<mode>3_mask): Change operand 2 predicate
10389 to nonimmediate_operand. Force operand 2 to register when allowed.
10390 (*<shiftrt_insn><mode>3_mask): Ditto.
10391 (*<rotate_insn><mode>3_mask): Ditto.
10393 2010-10-02 H.J. Lu <hongjiu.lu@intel.com>
10395 PR tree-optimization/45720
10396 PR tree-optimization/45764
10397 * tree-vect-data-refs.c (vect_analyze_data_ref_access):
10398 Don't accept backwards consecutive accesses.
10399 (vect_create_data_ref_ptr): Disallow negative steps.
10401 * tree-vect-stmts.c (vectorizable_store): Allow negative steps.
10402 (perm_mask_for_reverse): Removed.
10403 (reverse_vec_elements): Likewise.
10404 (vectorizable_load): Don't handle negative steps.
10406 2010-10-02 Jan Hubicka <jh@suse.cz>
10408 * tree-ssa-ccp.c (ccp_fold_stmt): Fold away OBJ_TYPE_REF when
10409 call destination is known.
10411 2010-10-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10414 * config/pa/pa.c (pa_secondary_reload): Handle symbolic operands
10417 2010-10-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10419 * doc/install.texi (Configuration): Document build_configargs,
10420 host_configargs, target_configargs.
10422 2010-10-01 Uros Bizjak <ubizjak@gmail.com>
10424 * config/i386/i386.md (*ashl<mode>3_mask): New insn_and_split pattern.
10425 (*<shiftrt_insn><mode>3_mask): Ditto.
10426 (*<rotate_insn><mode>3_mask): Ditto.
10428 2010-10-01 Steve Ellcey <sje@cup.hp.com>
10430 PR tree-optimization/44716
10431 * config/ia64/hpux.h (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
10432 (HOT_TEXT_SECTION_NAME): Define.
10434 2010-10-01 Nick Clifton <nickc@redhat.com>
10436 * common.opt: Add -fcombine-stack-adjustments.
10437 * opts.c (decode_options): Enable -fcombine-stack-adjustments at -O1.
10438 * combine-stack-adj.c (gate_handle_stack_adjustments): Check
10439 flag_combine_stack_adjustments.
10440 * doc/invoke.texi: Document the new option.
10442 2010-10-01 Richard Guenther <rguenther@suse.de>
10444 PR tree-optimization/45854
10445 * tree-eh.c (cleanup_empty_eh): Avoid degenerate case.
10447 2010-10-01 Anthony Green <green@moxielogic.com>
10449 * config.gcc: Fix moxie-*-rtems* configuration.
10451 2010-10-01 Richard Guenther <rguenther@suse.de>
10453 * dwarf2out.c (gen_namespace_die): Use DECL_FILE_SCOPE_P.
10454 (gen_decl_die): Likewise.
10456 2010-10-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10458 * config/spu/spu.c (spu_init_builtins): No longer add END_BUILTINS
10459 to the function code for SPU MD builtins.
10460 (spu_expand_builtin): Update.
10461 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Update.
10463 2010-10-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10465 * config/spu/spu.c (TARGET_EXCEPT_UNWIND_INFO): Set to
10466 sjlj_except_unwind_info.
10468 2010-10-01 Tristan Gingold <gingold@adacore.com>
10470 * configure.ac: Define the nop insn for avr*-*-*
10471 * configure: Regenerate.
10473 2010-10-01 Alan Modra <amodra@gmail.com>
10476 * config/rs6000/rs6000.c (rs6000_emit_prologue): Properly sign
10477 extend toc_restore_insn.
10479 2010-09-30 Richard Guenther <rguenther@suse.de>
10481 PR tree-optimization/43959
10482 * function.c (gimplify_parameters): Use create_tmp_reg instead of
10485 2010-09-30 Kaz Kojima <kkojima@gcc.gnu.org>
10487 * config/sh/sh.c (sh_expand_prologue): Set
10488 current_function_static_stack_size.
10490 2010-09-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10492 * configure.ac: Check for Solaris 8 ld with .hidden support.
10493 * configure: Regenerate.
10495 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
10497 PR middle-end/45758
10498 * graphite.c (graphite_initialize): Call scev_reset.
10500 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
10502 * sese.h (scev_analyzable_p): Return false for real or floating
10503 point. Only handle INTEGRAL_TYPE_P and POINTER_TYPE_P.
10505 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
10507 * graphite-clast-to-gimple.c (compute_bounds_for_level): Free le
10509 * graphite-poly.c (pbb_number_of_iterations_at_time): Free le and
10511 * graphite-sese-to-poly.c (add_upper_bounds_from_estimated_nit):
10512 Do not allocate ub_expr, it is passed in initialized.
10514 2010-09-30 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
10516 * graphite-clast-to-gimple.c (init_cloog_input_file): New.
10517 (build_cloog_prog): Dump CLooG input file when
10518 flag_graphite_dump_cloog is set. This is disabled on trunk.
10519 * graphite-cloog-compat.h (cloog_program_dump_cloog): New.
10521 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
10523 * graphite-clast-to-gimple.c (graphite_verify): Remove call to
10524 verify_dominators for CDI_POST_DOMINATORS.
10525 * sese.h: Remove comment about CDI_POST_DOMINATORS.
10526 (recompute_all_dominators): Remove call to free_dominance_info
10527 for CDI_POST_DOMINATORS. Remove call to calculate_dominance_info
10528 for CDI_POST_DOMINATORS.
10530 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
10532 * graphite-poly.c (pbb_number_of_iterations_at_time): Only iterate
10533 over pbb_dim_iter_domain.
10535 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
10537 * graphite-flattening.c: Fix comments.
10539 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
10541 * Makefile.in (OBJS-common): Add graphite-flattening.o.
10542 (graphite-flattening.o): New rule.
10543 * common.opt (floop-flatten): New flag.
10544 * doc/invoke.texi (-floop-flatten): Documented.
10545 * graphite-flattening.c: New.
10546 * graphite-poly.c (apply_poly_transforms): Call flatten_all_loops.
10547 * graphite-poly.h (flatten_all_loops): Declared.
10548 (lst_remove_loop_and_inline_stmts_in_loop_father): New.
10549 * tree-ssa-loop.c (gate_graphite_transforms): When flag_loop_flatten
10550 is set, also set flag_graphite.
10552 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
10554 * graphite-poly.c (cloog_checksum): New.
10555 * graphite-poly.h (cloog_checksum): Declared.
10557 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
10559 * graphite-poly.c (pbb_number_of_iterations): Removed.
10560 (pbb_number_of_iterations_at_time): Correctly compute the number
10561 of iterations in the transformed loop.
10562 * graphite-poly.h (pbb_number_of_iterations): Removed.
10564 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
10566 * graphite-poly.h (lst_update_scattering_seq): Removed.
10567 (lst_update_scattering): Correctly handle outermost loop dewey
10570 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
10572 * graphite-blocking.c (pbb_strip_mine_profitable_p): Renamed
10573 lst_strip_mine_profitable_p. Call lst_niter_for_loop.
10574 * graphite-poly.h (lst_niter_for_loop): New.
10576 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
10578 * graphite-poly.c (apply_poly_transforms): Do not abort when the
10579 transform read from disk is not legal. Call fatal_error instead.
10581 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
10583 * graphite-poly.c (print_pbb_body): Add missing closing parenthesis.
10584 (print_scop_header): Removed. Inlined in the only call place...
10585 (print_scop): ... here.
10587 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
10589 * graphite-poly.h (lst_dewey_number): Use FOR_EACH_VEC_ELT.
10591 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
10593 * graphite-poly.c (graphite_read_scop_file): Fix uninitialize warning.
10595 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
10597 * graphite-dependences.c (dot_deps): Avoid set but not used warning.
10598 (dot_deps_stmt): Same.
10599 * graphite-poly.c (dot_lst): Same.
10601 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
10603 * graphite-blocking.c (scop_do_strip_mine): Do not call
10604 graphite_legal_transform.
10605 (scop_do_block): Same.
10607 2010-09-30 Vladimir Kargov <kargov@gmail.com>
10609 * graphite-scop-detection.c (graphite_can_represent_loop): Correct the
10612 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
10614 * tree-scalar-evolution.c (instantiate_array_ref): New.
10615 (instantiate_scev_r): Also handle ARRAY_REFs.
10617 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
10619 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
10620 Do not check for VAR_DECL, PARM_DECL, FUNCTION_DECL, LABEL_DECL,
10621 RESULT_DECL, and FIELD_DECL. Return false for an
10622 SSA_NAME_IS_DEFAULT_DEF.
10623 (compute_scalar_evolution_in_loop): Do not further analyze the
10624 scalar evolution when no_evolution_in_loop_p returns true.
10626 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
10628 * tree-chrec.h (evolution_function_is_affine_p): Do not check
10629 whether CHREC_LEFT is invariant. A function is affine when
10630 CHREC_RIGHT is invariant.
10632 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
10634 * graphite-sese-to-poly.c (reduction_phi_p): Remove check for
10636 (rewrite_degenerate_phi): Same.
10637 (rewrite_reductions_out_of_ssa): Add check for is_gimple_reg.
10639 2010-09-30 Vladimir Kargov <kargov@gmail.com>
10641 * graphite-scop-detection.c (graphite_can_represent_scev,
10642 graphite_can_represent_expr, stmt_has_simple_data_refs_p,
10643 graphite_can_represent_loop): Remove outermost_loop.
10645 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
10647 PR middle-end/45229
10648 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Do not
10649 handle GIMPLE_CALLs with no LHS.
10651 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
10653 * graphite-poly.c (init_graphite_out_file): New.
10654 (init_graphite_in_file): New.
10655 (apply_poly_transforms): Updated to enable reading and writing of
10656 multiple scop files.
10658 2010-09-30 Tobias Grosser <grosser@fim.uni-passau.de>
10660 * graphite-scop-detection.c (graphite_can_represent_scev): Remove
10663 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
10665 * graphite-clast-to-gimple.c (precision_for_value): Adjust
10666 computation of precision by 1.
10668 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
10670 * graphite-cloog-util.c (openscop_read_cloog_matrix): New.
10671 (openscop_read_polyhedron_matrix): New.
10672 * graphite-cloog-util.h (openscop_read_polyhedron_matrix): Declared.
10673 (openscop_read_N_int): Same.
10674 * graphite-poly.c (openscop_read_N_int): New.
10675 (openscop_read_one_int): New.
10676 (openscop_read_N_string): New.
10677 (openscop_read_one_string): New.
10678 (openscop_read_powerset_matrix): New.
10679 (graphite_read_transforms): Remove.
10680 (graphite_read_scatt): New.
10681 (graphite_read_scop_file): New.
10682 (apply_poly_transforms): Updated to call graphite_read_scop_file.
10684 2010-09-30 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
10686 * graphite-poly.c: Change include order.
10688 2010-09-30 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
10690 * graphite-cloog-compat.h (cloog_matrix_ncolumns): New.
10691 (cloog_matrix_nrows): New.
10693 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
10695 * graphite-cloog-util.c (openscop_print_cloog_matrix): Remove spaces
10697 * graphite-poly.c (openscop_print_scattering_function_1): Same.
10698 (print_scattering_function_1): Same.
10699 (openscop_print_pbb_domain): Same.
10700 (openscop_print_scop_context): Same.
10701 (print_scop_context): Same.
10703 2010-09-30 Riyadh Baghdad <baghdadi.mr@gmail.com>
10705 * graphite-poly.c (openscop_print_pdr_polyhedron): Fix indentation.
10706 (openscop_print_pdr_polyhedron): Print pph.
10708 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
10710 * graphite-clast-to-gimple.c (gcc_type_for_interval): Generate in
10711 priority signed types.
10713 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
10715 * graphite-clast-to-gimple.c (max_signed_precision_type): Remove
10716 the call to lang_hooks.types.type_for_size. Call
10717 build_nonstandard_integer_type.
10719 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
10721 * graphite-cloog-util.c (openscop_print_cloog_matrix): New.
10722 (openscop_print_polyhedron_matrix): New.
10723 * graphite-cloog-util.h (openscop_print_polyhedron_matrix): Declared.
10724 * graphite-poly.c (openscop_print_pdr_polyhedron): Same.
10725 (openscop_print_pdr_powerset): New.
10726 (openscop_print_powerset_matrix): New.
10727 (openscop_print_scattering_function_1): New.
10728 (print_scattering_function): Add support for scattering names and
10730 (graphite_write_transforms): Remove.
10731 (print_pdr_access_layout): Updated to support OpenScop format.
10733 (openscop_print_pbb_domain): New.
10734 (print_pbb_body): Added a parameter to allow indicating that pbb_body
10736 (print_pbb): Updated to call the new print_pbb_body.
10737 (openscop_print_scop_context): New.
10738 (print_scop_header): New.
10739 (print_scop): Updated to call print_scop_header.
10740 * graphite-poly.h: Document OpenScop format.
10742 2010-09-30 Anatoly Sokolov <aesok@post.ru>
10744 * config/cris/m32c.c (cris_memory_move_cost): New.
10745 (cris_register_move_cost): Make static. Change arguments type from
10746 enum reg_class to reg_class_t.
10747 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
10748 * config/cris/cris.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
10749 * config/cris/cris-protos.h (cris_register_move_cost): Remove.
10751 2010-09-30 Jakub Jelinek <jakub@redhat.com>
10754 * config/i386/i386.c (ix86_gimplify_va_arg): Use
10755 INTVAL (XEXP (slot, 1)) as prev_size.
10757 2010-09-30 Michael Meissner <meissner@linux.vnet.ibm.com>
10760 * config/rs6000/aix.h (TARGET_AIX_OS): Define to be 1.
10761 * config/rs6000/rs6000.h (TARGET_AIX_OS): Define to be 0 if not
10763 * config/rs6000/option-defaults.h (toplevel): Change #if
10764 TARGET_AIX to TARGET_AIX_OS to allow compiler to build after
10765 global option changes.
10767 2010-09-30 Jakub Jelinek <jakub@redhat.com>
10769 * dwarf2out.c (mem_loc_descriptor): Handle IF_THEN_ELSE.
10771 PR tree-optimization/31261
10772 * fold-const.c (fold_binary): Optimize ((A & N) + B) & M
10773 for constants M and N, M == (1LL << cst) - 1 && (N & M) == M.
10775 2010-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10778 * Makefile.in (build/gen%$(build_exeext)): Move rule after all
10779 special-casing for generators and turn into ...
10780 ((genprog:%=build/gen%$(build_exeext))): ... this static pattern
10781 rule, for better error messages in case of toplevel dependency errors.
10782 (genprog): Add hooks, rename to ...
10783 (genprogerr): ... this, and let genprog also contain check,
10785 ((genprog:%=build/gen%$(build_exeext))): Rename to ...
10786 ((genprogerr:%=build/gen%$(build_exeext))): ... this.
10787 (build/genhooks$(build_exeext)): Remove now-unneeded dependency.
10789 2010-09-30 Jonathan Wakely <jwakely.gcc@gmail.com>
10790 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10792 * doc/install.texi: Suggest using LD_LIBRARY_PATH to find libs
10793 for GMP, MPFR and MPC.
10795 2010-09-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10797 * config/sparc/sparc.opt (mimpure-text): Move ...
10798 * config/sol2.opt: ... here. Correct description.
10799 * config.gcc (*-*-solaris2*): Add sol2.opt to extra_options.
10800 * doc/invoke.texi (Option Summary, SPARC Options): Move
10801 -mimpure-text, -mno-impure-text, -threads, -pthreads, -pthread ...
10802 (Option Summary, Solaris 2 Options): ... here.
10803 (Submodel Options, Solaris 2 Options): New menu entry.
10804 (SPARC Options): Move -mimpure-text, -threads, -pthreads, -pthread ...
10805 (Solaris 2 Options): ... here.
10807 2010-09-30 Michael Eager <eager@eagercon.com>
10809 * extend.texi (interrupt_handler): Add MicroBlaze to list.
10810 (save_volatiles): Describe option for MicroBlaze.
10811 * invoke.texi: Add MicroBlaze Options.
10812 * contrib.texi: Add acknowledgment.
10813 * md.texi: Add MicroBlaze d and z constraints.
10814 * install.texi: Add microblaze-*-elf.
10815 * configure.ac: Add microblaze-*-* to target list.
10816 * configure: Regenerate.
10817 * config.gcc: Add microblaze*-*-*, microblaze*-linux*.
10818 * config/microblaze/microblaze-protos.h: New.
10819 * config/microblaze/crti.s: New.
10820 * config/microblaze/predicates.md: New.
10821 * config/microblaze/linux.h: New.
10822 * config/microblaze/microblaze.md: New.
10823 * config/microblaze/constraints.md: New.
10824 * config/microblaze/crtn.s: New.
10825 * config/microblaze/microblaze.opt: New.
10826 * config/microblaze/microblaze-c.c: New.
10827 * config/microblaze/t-microblaze: New.
10828 * config/microblaze/microblaze.c: New.
10829 * config/microblaze/microblaze.h: New.
10831 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
10833 * c-parser.c (c_parser_objc_methodprotolist): Amend preceding comment,
10834 parse @optional/@required and set the flags as appropriate.
10836 2010-09-30 Nathan Froyd <froydnj@codesourcery.com>
10838 * config/iq2000/t-iq2000 (TARGET_LIBGCC2_CFLAGS): Delete.
10840 2010-09-30 Joseph Myers <joseph@codesourcery.com>
10842 * opt-functions.awk (static_var): Update comment.
10843 (var_ref): Return offsetof expression or -1, not variable address.
10844 * optc-gen.awk: Generate structure field initializers instead of
10845 static variables. Expect -1 for missing variables instead of null
10846 pointer. Add gcc_options parameters to generated functions.
10847 * opth-gen.awk: Generate structure fields for static variables.
10848 Add gcc_options parameters to generated functions.
10849 * common.opt (optimize, optimize_size): Add variables.
10850 * config/i386/i386-c.c (ix86_pragma_target_parse): Pass
10851 &global_options to cl_target_option_restore.
10852 * config/i386/i386.c (ix86_valid_target_attribute_p): Pass
10853 &global_options to cl_optimization_restore, cl_target_option_save
10854 and cl_target_option_restore.
10855 (ix86_set_current_function): Pass &global_options to
10856 cl_target_option_restore.
10857 * config/pdp11/pdp11.h (optimize): Remove.
10858 * config/rs6000/rs6000.h (optimize): Remove.
10859 * config/sh/sh.h (optimize): Remove.
10860 * config/xtensa/xtensa.h (optimize): Remove.
10861 * coretypes.h (struct gcc_options): Declare.
10862 * diagnostic.c (diagnostic_initialize): Initialize
10863 context->option_state.
10864 (diagnostic_report_diagnostic): Pass option_state to
10865 option_enabled hook.
10866 * diagnostic.h (diagnostic_context.option_enabled): Add void *
10868 (diagnostic_context.option_state): New field.
10869 * final.c (final_start_function, final, final_scan_insn): Rename
10870 optimize parameter to optimize_p.
10871 * flags.h (optimize, optimize_size): Remove.
10872 * function.c (invoke_set_current_function_hook): Pass
10873 &global_options to cl_optimization_restore.
10874 * gcc.c (driver_handle_option): Take gcc_options parameter.
10875 Assert that it is &global_options.
10876 (process_command): Pass &global_options to read_cmdline_option.
10877 * ipa-pure-const.c (suggest_attribute): Pass &global_options to
10879 * lto-opts.c (lto_reissue_options): Use option_flag_var. Pass
10880 &global_options to set_option.
10881 * opts-common.c (handle_option, handle_generated_option,
10882 read_cmdline_option, set_option): Take explicit gcc_options
10883 parameters. Use option_flag_var.
10884 (option_flag_var): New.
10885 * opts.c (common_handle_option, lang_handle_option,
10886 target_handle_option): Take gcc_options parameter. Assert that it
10887 is &global_options.
10888 (read_cmdline_options): Pass &global_options to read_cmdline_option.
10889 (print_filtered_help): Use option_flag_var. Pass &global_options
10891 (common_handle_option): Use option_flag_var.
10892 (option_enabled): Take opts parameter. Use option_flag_var.
10893 (get_option_state): Take gcc_options parameter. Use
10894 option_flag_var. Pass gcc_options parameter to option_enabled.
10895 (enable_warning_as_error): Pass &global_options to
10896 handle_generated_option.
10897 * opts.h (struct cl_option): Change flag_var to flag_var_offset.
10898 (cl_option_handler_func.handler): Take gcc_options parameter.
10899 (option_enabled, get_option_state, set_option, handle_option,
10900 handle_generated_option, read_cmdline_option): Take gcc_options
10902 * toplev.c (optimize, optimize_size): Remove.
10903 (print_switch_values): Pass &global_options to option_enabled.
10904 (option_affects_pch_p): Use option_flag_var. Pass &global_options
10905 to get_option_state.
10906 (general_init): Initialize global_dc->option_state.
10907 * tree.c (build_optimization_node): Pass &global_options to
10908 cl_optimization_save.
10909 (build_target_option_node): Pass &global_options to
10910 cl_target_option_save.
10912 2010-09-30 Martin Jambor <mjambor@suse.cz>
10914 * tree-sra.c (type_consists_of_records_p): Do not check for trailing
10915 zero sized bit-fields.
10917 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
10919 * c-parser.c (c_lex_one_token): When finding a CPP_AT_NAME
10920 Objective-C token, map RID_CLASS to RID_AT_CLASS and similar.
10921 (c_parser_external_declaration): Use RID_AT_CLASS instead of RID_CLASS.
10922 (c_parser_objc_class_declaration): Same change.
10923 (c_parser_objc_try_catch_statement): Use RID_AT_TRY instead of
10924 RID_TRY and RID_AT_CATCH instead of RID_CATCH.
10925 (c_parser_objc_class_instance_variables): Use RID_AT_PRIVATE
10926 instead of RID_PRIVATE, RID_AT_PROTECTED instead of RID_PROTECTED
10927 and RID_AT_PUBLIC instead of RID_PUBLIC.
10928 (c_parser_statement_after_labels): Use RID_AT_TRY instead of
10929 RID_TRY and RID_AT_CATCH instead of RID_CATCH.
10931 2010-09-30 Tom G. Christensen <tgc@jupiterrise.com>
10933 * doc/install.texi (Binaries): Update link to HP-UX porting centre.
10934 Add links to current providers of packages for Solaris and IRIX.
10936 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
10938 Merge from 'apple/trunk' branch on FSF servers.
10939 * c-parser.c: Applied change originally in c-parse.in.
10941 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
10944 * c-decl.c (start_decl): Check for redeclaration of class name.
10945 * c-parse.in (after_type_declarator): Recognize CLASSNAME.
10947 2010-09-29 Steve Ellcey <sje@cup.hp.com>
10949 * config/ia64/ia64.c (ia64_builtin_decl): New.
10950 (TARGET_BUILTIN_DECL): Define.
10951 (ia64_builtins): New.
10952 (ia64_init_builtins): Save decls in ia64_builtins.
10954 2010-09-29 Bernd Schmidt <bernds@codesourcery.com>
10957 * postreload.c (move2add_use_add2_insn): Use full_costs for comparison.
10958 (move2add_use_add3_insn): Likewise.
10959 (reload_cse_move2add): Likewise.
10960 * rtlanal.c (get_full_rtx_cost): New function.
10961 * rtl.h (struct full_rtx_costs): New.
10962 (init_costs_to_max, init_costs_to_zero, costs_lt_p,
10963 costs_add_n_insns): New inline functions.
10964 (get_full_rtx_cost): Declare.
10967 * reload1.c (replace_pseudos_in): Use eliminate_regs_1, allowing
10968 invariants. Check for reg_equiv_invariant.
10969 (reload): Assert that spilled_pseudos is empty when returning.
10971 2010-09-29 Kai Tietz <kai.tietz@onevision.com>
10973 * config/i386/mingw32.h (TARGET_64BIT): replaced by
10974 TARGET_64BIT_DEFAULT in #if check.
10976 2010-09-29 Jack Howarth <howarth@bromo.med.uc.edu>
10978 * varasm.c (assemble_alias): Add error message for unsupported ifunc.
10980 2010-09-29 Mike Stump <mikestump@comcast.net>
10982 * config/darwin.h (flag_mkernel): Remove.
10983 (flag_apple_kext): Likewise.
10985 2010-09-29 Joseph Myers <joseph@codesourcery.com>
10986 Jack Howarth <howarth@bromo.med.uc.edu>
10988 * config/darwin.opt (undefined): Add.
10990 2010-09-29 Nathan Sidwell <nathan@codesourcery.com>
10993 * configure.ac: Add --enable-indirect-function option.
10994 * config.gcc: Add default_gnu_indirect_function.
10995 * config.in (HAVE_GAS_INDIRECT_FUNCTION): Rename to ...
10996 (HAVE_GNU_INDIRECT_FUNCTION): ... this.
10997 * varasm.c (do_assemble_alias): Adjust for macro name change.
10998 * configure: Rebuilt.
10999 * doc/install.texi: Document --enable-indirect-function.
11001 2010-09-29 Joseph Myers <joseph@codesourcery.com>
11003 * doc/options.texi (Variable, Var, Init): Update documentation
11004 without reference to VarExists.
11005 (VarExists): Remove.
11006 * common.opt, config/i386/i386.opt, config/linux.opt,
11007 config/rs6000/rs6000.opt, config/sh/sh.opt, config/spu/spu.opt:
11008 Don't use VarExists.
11010 2010-09-29 Joseph Myers <joseph@codesourcery.com>
11012 * optc-gen.awk: Generate global_options initializer instead of
11013 individual variables. Add x_ prefix to names of structure members.
11014 * opth-gen.awk: Generate gcc_options structure. Add x_ prefix to
11015 names of structure members.
11016 * doc/tm.texi.in (HARD_FRAME_POINTER_IS_FRAME_POINTER,
11017 HARD_FRAME_POINTER_IS_ARG_POINTER): Document.
11018 * doc/tm.texi: Regenerate.
11019 * alias.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
11020 * builtins.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
11021 * c-parser.c (disable_extension_diagnostics,
11022 restore_extension_diagnostics): Update names of cpp_options members.
11023 * combine.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
11024 * common.opt (fcompare-debug-second): Don't use Var.
11025 * config/alpha/alpha.h (target_flags): Remove.
11026 * config/arm/arm.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
11027 HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
11028 * config/bfin/bfin.h (target_flags): Remove.
11029 * config/cris/cris.h (target_flags): Remove.
11030 * config/i386/i386-c.c (ix86_pragma_target_parse): Update names of
11031 cl_target_option members.
11032 * config/i386/i386.c (ix86_force_align_arg_pointer): Remove.
11033 (ix86_function_specific_print, ix86_valid_target_attribute_tree,
11034 ix86_can_inline_p): Update names of cl_target_option members.
11035 * config/i386/i386.h (ix86_isa_flags): Remove.
11036 * config/lm32/lm32.h (target_flags): Remove.
11037 * config/mcore/mcore.h (mcore_stack_increment): Remove.
11038 * config/mcore/mcore.md (addsi3): Remove extern declaration of
11039 flag_omit_frame_pointer.
11040 * config/mep/mep.h (target_flags): Remove.
11041 * config/mips/mips.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
11042 HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
11043 * config/mmix/mmix.h (target_flags): Remove.
11044 * config/rs6000/rs6000.h (rs6000_xilinx_fpu, flag_pic,
11045 flag_expensive_optimizations): Remove.
11046 * config/s390/s390.h (flag_pic): Remove.
11047 * config/score/score-conv.h (target_flags): Remove.
11048 * config/sh/sh.h (sh_fixed_range_str): Remove.
11049 * config/spu/spu.h (target_flags, spu_fixed_range_string): Remove.
11050 * dbxout.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
11051 * df-scan.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
11052 * diagnostic.c (diagnostic_initialize): Update names of
11053 diagnostic_context members.
11054 * diagnostic.h (diagnostic_context): Rename inhibit_warnings and
11055 warn_system_headers.
11056 (diagnostic_report_warnings_p): Update for new names.
11057 * dwarf2out.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
11058 * emit-rtl.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER and
11059 HARD_FRAME_POINTER_IS_ARG_POINTER.
11060 * flags.h (flag_compare_debug): Declare.
11061 * ira.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
11062 * opts.c (flag_compare_debug): Define.
11063 (common_handle_option): Update names of diagnostic_context
11064 members. Handle -fcompare-debug-second.
11065 (fast_math_flags_struct_set_p): Update names of cl_optimization
11067 * reginfo.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
11068 * regrename.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
11069 * reload.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
11070 * reload1.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
11071 * resource.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
11072 * rtl.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
11073 HARD_FRAME_POINTER_IS_ARG_POINTER): Define and use.
11074 * sel-sched.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
11075 * stmt.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
11077 2010-09-29 Hariharan Sandanagobalane <hariharan@picochip.com>
11079 * config/picochip/picochip.c (picochip_output_internal_label):
11080 This function can now be called for debug CFI labels, which can come
11081 in the middle of a vliw instruction. Postpone until end of vliw.
11083 2010-09-29 Richard Guenther <rguenther@suse.de>
11085 * tree.h (SCOPE_FILE_SCOPE_P): New macro.
11086 (DECL_FILE_SCOPE_P): Use it.
11087 (TYPE_FILE_SCOPE_P): New macro.
11089 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
11091 * c-parser.c (c_lex_one_token): In Objective-C, when dealing with
11092 a CPP_NAME which is a reserved word, clearly separate cases for
11093 OBJC_IS_PQ_KEYWORD, OBJC_IS_AT_KEYWORD and OBJC_IS_CXX_KEYWORD.
11095 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
11097 * c-parser.c (c_lex_one_token): In Objective-C, do not replace
11098 token->value with the canonical spelling. Do exactly like C and
11099 C++ and leave it as it is.
11101 2010-09-28 Richard Henderson <rth@redhat.com>
11103 * config/alpha/alpha.c (alpha_builtins): New.
11104 (alpha_builtin_decl, TARGET_BUILTIN_DECL): New.
11105 (alpha_builtin_function): New.
11106 (alpha_add_builtins, alpha_init_builtins): Use it.
11108 2010-09-28 Nicola Pero <nicola.pero@meta-innovation.com>
11110 * doc/standards.texi (Standards): Expanded the section on
11111 Objective-C and Objective-C++.
11113 2010-09-28 DJ Delorie <dj@redhat.com>
11116 * config/m32c/m32c.c (m32c_subreg): Force adjustment of subregs of
11119 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
11121 * c-parser.c (c_parser_declaration_or_fndef): Diagnose incorrect prefix
11122 attributes on methods.
11123 (c_parser_objc_method_definition): Handle attributes.
11124 (c_parser_objc_methodproto): Likewise.
11125 (c_parser_objc_maybe_method_attributes): New.
11126 (c_parser_objc_method_decl): Handle attributes, add a diagnostic for a
11127 missing definition, similar to that in ObjC++.
11129 2010-09-28 Richard Henderson <rth@redhat.com>
11131 * defaults.h (DWARF2_UNWIND_INFO): Don't depend on TARGET_UNWIND_INFO.
11132 (MUST_USE_SJLJ_EXCEPTIONS): Remove.
11133 (CONFIG_SJLJ_EXCEPTIONS): Remove.
11134 (STACK_OLD_CHECK_PROTECT): Use targetm.except_unwind_info.
11135 (STACK_CHECK_PROTECT): Likewise.
11136 * dwarf2out.c (DWARF2_UNWIND_INFO, DWARF2_FRAME_INFO): Poison.
11137 (dwarf2out_do_frame): Use debug_unwind_info and except_unwind_info.
11138 (dwarf2out_do_cfi_asm, dwarf2out_begin_prologue): Likewise.
11139 (dwarf2out_frame_init, dwarf2out_frame_finish): Likewise.
11140 (dwarf2out_assembly_start): Likewise.
11141 * except.c (init_eh): Use targetm.except_unwind_info.
11142 (finish_eh_generation, gate_convert_to_eh_region_ranges): Likewise.
11143 (output_one_function_exception_table): Likewise.
11144 * final.c: Unconditionally include dwarf2out.h.
11145 (final_start_function): Unconditionally call dwarf2out routines.
11146 (final_end_function, final_scan_insn): Likewise.
11147 * function.c (expand_function_end): Use targetm.except_unwind_info.
11148 * opts.c (decode_options): Use targetm.except_unwind_info.
11149 * system.h (USING_SJLJ_EXCEPTIONS, TARGET_UNWIND_INFO): Poison.
11150 * target.def (debug_unwind_info, except_unwind_info): New.
11151 * target.h (enum unwind_info_type): New.
11152 * targhooks.c (default_debug_unwind_info): New.
11153 (default_except_unwind_info): New.
11154 (dwarf2_except_unwind_info, sjlj_except_unwind_info): New.
11155 * targhooks.h: Declare them.
11156 * tree-tailcall.c: Include "target.h"
11157 (suitable_for_tail_call_opt_p): Use targetm.except_unwind_info.
11158 * Makefile.in (tree-tailcall.o): Update.
11159 * tree.c (build_common_builtin_nodes): Use targetm.except_unwind_info.
11160 (lhd_gcc_personality): Likewise.
11162 * doc/tm.texi.in (TARGET_UNWIND_INFO): Remove.
11163 (TARGET_EXCEPT_UNWIND_INFO): New.
11164 (DWARF2_UNWIND_INFO): Update.
11165 (TARGET_DEBUG_UNWIND_INFO): New.
11166 * doc/tm.texi: Rebuild.
11168 * c-family/c-cppbuiltin.c (c_cpp_builtins): Use
11169 targetm.except_unwind_info.
11171 * config/arm/arm.c (TARGET_EXCEPT_UNWIND_INFO): New.
11172 (arm_except_unwind_info): New.
11173 (arm_compute_func_type): Use it.
11174 (arm_expand_prologue, thumb_pushpop): Likewise.
11175 (thumb1_expand_prologue, thumb1_output_function_prologue): Likewise.
11176 (arm_unwind_emit, arm_output_fn_unwind): Likewise.
11177 * config/arm/bpabi.h (ARM_UNWIND_INFO): Rename from TARGET_UNWIND_INFO.
11178 * config/arm/arm.h (ARM_UNWIND_INFO): Likewise.
11179 (DWARF2_UNWIND_INFO): Remove.
11180 (MUST_USE_SJLJ_EXCEPTIONS): Remove.
11181 (ARM_EABI_UNWIND_TABLES): Remove.
11183 * config/ia64/ia64.c (ia64_debug_unwind_info): New.
11184 (TARGET_DEBUG_UNWIND_INFO, TARGET_EXCEPT_UNWIND_INFO): New.
11185 (ia64_except_unwind_info): New.
11186 (ia64_output_function_prologue): Use it.
11187 (ia64_add_bundle_selector_before): Likewise.
11188 (ia64_reorg, ia64_asm_unwind_emit): Likewise.
11189 * config/ia64/ia64.h (DWARF2_FRAME_INFO): Remove.
11190 (TARGET_UNWIND_INFO): Remove.
11192 * config/pa/pa.c (pa_option_override): Use targetm.except_unwind_info.
11194 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
11196 * c-parser.c (c_parser_objc_class_definition): Adjust prototype.
11197 (c_parser_objc_protocol_definition): Likewise.
11198 (c_parser_external_declaration): Provide dummy attribute arguments.
11199 (c_parser_declaration_or_fndef): Parse prefix attributes for ObjC.
11200 (c_parser_objc_class_definition): Handle attributes.
11201 (c_parser_objc_protocol_definition): Likewise.
11203 2010-09-28 Tobias Burnus <burnus@net-b.de>
11207 * toplev.h (save_decoded_options, save_decoded_options_count):
11208 New global variables.
11209 * toplev.c (save_decoded_options, save_decoded_options_count):
11212 2010-09-28 Ian Lance Taylor <iant@google.com>
11214 * config/i386/i386.c (ix86_supports_split_stack): Test
11215 HAVE_GAS_CFI_PERSONALITY_DIRECTIVE rather than dwarf2out_do_cfi_asm.
11217 2010-09-28 Ian Lance Taylor <iant@google.com>
11220 * opts.c (decode_options): Don't test whether the target supports
11221 split stack if flag_split_stack == 0.
11223 2010-09-28 Jan Hubicka <jh@suse.cz>
11225 * builtin-attrs.def (ATTR_LEAF): New attribute.
11226 (ATTR_NOVOPS_LEAF_LIST, ATTR_LEAF_LIST, ATTR_NOTHROW_LEAF_LIST,
11227 ATTR_CONST_NOTHROW_LEAF_LIST, ATTR_PURE_NOTHROW_LEAF_LIST,
11228 ATTR_PURE_NOTHROW_NOVOPS_LEAF_LIST, ATTR_NORETURN_NOTHROW_LEAF_LIST,
11229 ATTR_MALLOC_NOTHROW_LEAF_LIST, ATTR_SENTINEL_NOTHROW_LEAF_LIST,
11230 ATTR_NOTHROW_NONNULL_LEAF, ATTR_CONST_NOTHROW_NONNULL_LEAF,
11231 ATTR_CONST_NOTHROW_TYPEGENERIC_LEAF, ATTR_PURE_NOTHROW_NONNULL_LEAF,
11232 ATTR_MALLOC_NOTHROW_NONNULL_LEAF): New attribute lists.
11233 * sync-builtins.def: Annotate all builtins by leaf.
11234 * omp-builtins.def: Annotate all builtins by leaf.
11235 * builtins.def: Annotate relevant builtins with leaf attribute.
11236 (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
11237 ATTR_MATHFN_FPROUNDING_ERRNO, ATTR_MATHFN_FPROUNDING_STORE): Make
11240 2010-09-28 Jan Hubicka <jh@suse.cz>
11242 * tree-ssa-ccp.c (fold_ctor_reference): New function.
11243 (fold_const_aggregate_ref): Use it.
11244 * fold-const.c (canonicalize_constructor_val): Check that we don't fold
11245 into external static.
11247 2010-09-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11250 * config/i386/i386.opt (mvect8-ret-in-mem): Define.
11251 * config/i386/i386.c (ix86_target_string): Handle -mvect8-ret-in-mem.
11252 (ix86_solaris_return_in_memory): Remove.
11253 * config/i386/i386-protos.h (ix86_solaris_return_in_memory): Remove.
11254 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
11255 (TARGET_SUBTARGET_DEFAULT): Redefine.
11256 * config/i386/sol2-10.h (TARGET_SUBTARGET_DEFAULT): Update comment.
11257 * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
11258 (TARGET_SUBTARGET_DEFAULT): Redefine.
11259 * doc/invoke.texi (Option Summary, i386 and x86-64 Options): Add
11260 -mvect8-ret-in-mem.
11261 (i386 and x86-64 Options): Document -mvect8-ret-in-mem.
11263 2010-09-29 Alan Modra <amodra@gmail.com>
11266 * config/rs6000/aix.h (SETUP_FRAME_ADDRESSES): Delete.
11267 * config/rs6000/linux64.h (SETUP_FRAME_ADDRESSES): Delete.
11268 * config/rs6000/rs6000-protos.h (rs6000_aix_emit_builtin_unwind_init):
11270 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init): Delete.
11271 (rs6000_emit_prologue): Don't just create frame save info for r2,
11274 2010-09-28 Richard Henderson <rth@redhat.com>
11276 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Output 8 bytes
11277 when 8 bytes are requested.
11279 2010-09-28 Tristan Gingold <gingold@adacore.com>
11281 * config/avr/avr.c (expand_prologue): Set
11282 current_function_static_stack_size.
11284 2010-09-28 Tristan Gingold <gingold@adacore.com>
11286 * config/alpha/alpha.md: Change the initial condition of the
11289 2010-09-28 Uros Bizjak <ubizjak@gmail.com>
11291 * config/i386/sse.md (*avx_<umaxmin:code><mode>3):
11292 Split from *avx_<maxmin:code><mode>3.
11293 (*avx_<smaxmin:code><mode>3): Ditto.
11294 * config/i386/i386.md (maxmin): Remove code iterator.
11296 2010-09-27 Ian Lance Taylor <iant@google.com>
11298 * config/i386/i386.c (ix86_supports_split_stack): -fsplit-stack
11299 requires assembler support for CFI directives.
11301 2010-09-27 Richard Henderson <rth@redhat.com>
11303 * dwarf2out.c (dwarf2out_cfi_label): Use ASM_OUTPUT_DEBUG_LABEL.
11305 2010-09-27 Hans-Peter Nilsson <hp@axis.com>
11307 * emit-rtl.c (reorder_insns_nobb) [ENABLE_CHECKING]: Sanity-check
11308 that AFTER is not in the range FROM..TO, inclusive.
11310 2010-09-27 Hans-Peter Nilsson <hp@axis.com>
11311 Bernd Schmidt <bernds@codesourcery.com>
11313 PR rtl-optimization/45792
11314 * cfgcleanup.c (try_head_merge_bb): New rtx vector nextptr.
11315 If not all insns are to be merged, for each edge, stash the
11316 next candidate after the to-be-merged insns before doing the
11317 merge, and use them for the retry at the new insertion point.
11318 Handle CC0 targets when retrying.
11320 2010-09-27 Ian Lance Taylor <iant@google.com>
11322 * common.opt (fsplit-stack): New option.
11323 * opts.c (decode_options): Set flag_split_stack to final value.
11324 * target.def (supports_split_stack): New hook.
11325 * gcc.c (STACK_SPLIT_SPEC): Define.
11326 (LINK_COMMAND_SPEC): Use STACK_SPLIT_SPEC.
11327 * doc/invoke.texi (Option Summary): Mention -fsplit-stack.
11328 (Code Gen Options): Document -fsplit-stack.
11329 * doc/extend.texi (Function Attributes): Mention no_split_stack.
11330 (Function Attributes): Document no_split_stack.
11331 * doc/tm.texi.in (Stack Smashing Protection): Add @hook
11332 TARGET_SUPPORTS_SPLIT_STACK.
11333 * doc/tm.texi: Rebuild.
11334 * function.c (thread_prologue_and_epilogue_insns): If
11335 flag_split_stack, add split stack prologue.
11336 * explow.c (allocate_dynamic_stack_space): Support -fsplit-stack.
11337 * varasm.c (saw_no_split_stack): New static variable.
11338 (assemble_start_function): Set saw_no_split_stack if the function
11339 has the no_split_stack attribute.
11340 (file_end_indicate_split_stack): New function.
11341 * output.h (file_end_indicate_split_stack): Declare.
11342 * libgcc-std.ver (GCC_4.6.0): Add -fsplit-stack support variables
11344 * doc/libgcc.texi (Miscellaneous routines): Document -fsplit-stack
11346 * config/i386/i386.c (ix86_option_override_internal): Don't set
11347 expand_builtin_va_start to NULL if -fsplit-stack.
11348 (ix86_function_regparm): Reduce local regparm by 1 for 32-bit
11350 (ix86_va_start): If -fsplit-stack, get overflow pointer from
11351 scratch register set by prologue.
11352 (ix86_code_end): If -fsplit-stack, call
11353 file_end_indicate_split_stack.
11354 (ix86_supports_split_stack): New static function.
11355 (SPLIT_STACK_AVAILABLE): Define.
11356 (split_stack_prologue_scratch_regno): New static function.
11357 (split_stack_fn): New static variable.
11358 (ix86_expand_split_stack_prologue): New function.
11359 (ix86_live_on_entry): New static function.
11360 (ix86_legitimate_address_p): Handle UNSPEC_STACK_CHECK.
11361 (output_pic_addr_const): Likewise.
11362 (i386_asm_output_addr_const_extra): Likewise.
11363 (ix86_expand_call): Change return type to rtx. Return the new
11365 (TARGET_SUPPORTS_SPLIT_STACK): Define.
11366 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
11367 * config/i386/i386.md (UNSPEC_STACK_CHECK): Define.
11368 (split_stack_prologue, split_stack_return): New insns.
11369 (split_stack_space_check): New insn.
11370 * config/i386/i386.h (struct machine_function): Add
11371 split_stack_varargs_pointer field.
11372 * config/i386/linux.h (TARGET_CAN_SPLIT_STACK): Define.
11373 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
11374 * config/i386/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
11375 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
11376 * config/i386/i386-protos.h (ix86_expand_split_stack_prologue):
11378 (ix86_expand_call): Update declaration.
11380 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
11382 * doc/objc.texi (Type encoding): Added the new 'long double' (D)
11383 code. Added byref, which was missing in the list of codes.
11384 Explain that enumeration values are encoded as the integer type
11385 that the compiler uses to store them. Explain and make examples
11386 of how 'const' interacts with pointers, and the complication of
11387 the encoding of 'const char *'.
11388 (Legacy type encoding): New subsection, explaining that GCC emits
11389 incorrect type encodings for the NeXT runtime for compatibility
11391 (@@encode): New subsection, explaining @encode and particularly
11392 that protocol qualifiers are not recognized inside an @encode()
11394 (Method signatures): New subsection, explaining how method
11395 signatures are encoded.
11397 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
11399 Merge from 'apple/trunk' branch on FSF servers. Removed small
11400 change in build_conditional_expr that had been added when fixing
11401 PR objc/27377 and which did the same check in a less complete way.
11403 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
11406 * c-typeck.c (build_conditional_expr): Call objc_have_common_type when
11407 looking for objective-c common pointer types.
11409 2005-06-22 Ziemowit Laski <zlaski@apple.com>
11412 * c-typeck.c (build_conditional_expr): For two ObjC pointer types,
11413 use their ObjC common type.
11415 2010-09-27 Richard Guenther <rguenther@suse.de>
11417 * dbxout.c (dbxout_symbol): Use DECL_FILE_SCOPE_P.
11419 2010-09-27 Jie Zhang <jie@codesourcery.com>
11421 * print-tree.c (print_node): Print in-constant-pool.
11423 2010-09-27 Uros Bizjak <ubizjak@gmail.com>
11425 * config/i386/i386.h (CLASS_MAX_NREGS): Also handle XCmode.
11426 (UNITS_PER_WORD): Define only when IN_LIBGCC2 is undefined.
11427 (MOVE_MAX_PIECES): Redefine using UNITS_PER_WORD.
11428 (ASM_OUTPUT_AVX_PREFIX): Simplify pointer addition.
11430 2010-09-26 Uros Bizjak <ubizjak@gmail.com>
11432 * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_add): Merge
11433 from pro_epilogue_adjust_stack_<mode>_{1,2}.
11434 (pro_epilogue_adjust_stack_<mode>_add): Rename from
11435 pro_epilogue_adjust_stack_<mode>_3.
11436 * config/i386/i386.c (pro_epilogue_adjust_stack): Update for
11437 renamed pro_epilogue_adjust_stack_{si,di}_add.
11438 (ix86_expand_prologue): Use indirect functions. Update for renamed
11439 pro_epilogue_adjust_stack_{si,di}_sub.
11441 2010-09-26 Uros Bizjak <ubizjak@gmail.com>
11443 * config/i386/i386.md (movmsk_df): New insn.
11444 (signbitdf): Split out of signbit<mode>2. Generate movmsk_df
11445 sequence for TARGET_SSE_MATH.
11447 2010-09-26 Richard Sandiford <rdsandiford@googlemail.com>
11449 * config/mips/mips.c (mips_builtin_decls): Declare.
11450 (mips_init_builtins): Store function declarations in
11451 mips_builtin_decls.
11452 (mips_builtin_decl): New function.
11453 (TARGET_BUILTIN_DECL): Define.
11455 2010-09-25 Kai Tietz <kai.tietz@onevision.com>
11456 Richard Henderson <rth@redhat.com>
11458 * config/i386/cygwin.asm: Include auto-host.h.
11459 (cfi_startproc, cfi_endproc, cfi_adjust_cfa_offset,
11460 cfi_def_cfa_register, cfi_register, cfi_push, cfi_pop): New macros.
11461 (__chkstk, __alloca): Annotate for dwarf2 unwind info. Drop
11462 alignment code from the 64-bit path. Use gas local labels.
11463 * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_2): Macroize
11464 from _di_2. Remove the useless constant integer argument.
11465 (pro_epilogue_adjust_stack_<mode>_3): New.
11466 (allocate_stack_worker_probe_<mode>): Macroize from
11467 allocate_stack_worker_{32,64}. Use __chkstk_ms. Update all users.
11468 * config/i386/i386.c (ix86_expand_prologue): Use __chkstk_ms;
11469 use gen_pro_epilogue_adjust_stack_*_3 and annotate it.
11470 (__chkstk_ms): New function.
11471 * config/i386/t-cygming (LIB1ASMFUNCS): Add _chkstk_ms.
11472 * config/i386/t-interix: Likewise.
11473 * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Export for target.
11474 (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Likewise.
11475 (HAVE_GAS_CFI_SECTIONS_DIRECTIVE): Likewise.
11476 * configure, config.in: Rebuild.
11478 2010-09-25 Eric Botcazou <ebotcazou@adacore.com>
11480 * tree-inline.c (copy_bb): Use GSI_CONTINUE_LINKING when inserting new
11481 statements because of the return slot optimization.
11483 2010-09-25 Anatoly Sokolov <aesok@post.ru>
11485 * config/avr/avr.h (CLASS_LIKELY_SPILLED_P): Remove.
11486 * config/avr/avr-protos.h (class_likely_spilled_p): Remove.
11487 * config/avr/avr.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
11488 (class_likely_spilled_p): Rename to...
11489 (avr_class_likely_spilled_p): ...this. Make static. Change argument
11490 type to reg_class_t.
11492 2010-09-24 Jan Hubicka <jh@suse.cz>
11494 * lto-symtab.c (lto_symtab_entry_def): Add guessed field.
11495 (lto_symtab_resolve_symbols): Set it.
11496 (lto_symtab_merge_decls_1): Do not compute used_from_object_file;
11497 store resolution field in cgraph/varpool.
11498 * cgraph.c (cgraph_same_body_alias, cgraph_add_thunk): Return node.
11499 (cgraph_get_node_or_alias, cgraph_get_node_or_alias): Constify.
11500 (cgraph_dump_node): Drop used_from_object_file.
11501 (cgraph_clone_node, cgraph_create_virtual_clone): Likewise.
11502 (cgraph_function_body_availability): Use decl_replaceable_p.
11503 (cgraph_make_node_local): Set resolution to LDPR_PREVAILING_DEF_IRONLY.
11504 (cgraph_can_remove_if_no_direct_calls_and_refs): Use
11505 cgraph_used_from_object_file_p.
11506 (cgraph_will_be_removed_from_program_if_no_direct_calls): Use
11507 cgraph_used_from_object_file_p.
11508 (resolution_used_from_other_file_p): New functoin.
11509 (cgraph_used_from_object_file_p): New predicate.
11510 * cgraph.h: Include plugin-api.h
11511 (struct cgraph_local_info): Remove used_from_object_file.
11512 (struct cgraph_node): Add resolution field.
11513 (struct varpool_node): Likewise; remove used_from_object_file;
11514 reove const_value_known.
11515 (cgraph_get_node, cgraph_get_node_or_alias, cgraph_node,
11516 cgraph_same_body_alias, cgraph_add_thunk): Update prototypes.
11517 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
11518 varpool_used_from_object_file_p): Declare.
11519 (varpool_get_node, varpool_extra_name_alias): Update prototype.
11520 * tree.h (DECL_REPLACEABLE_P): Remove.
11521 (decl_replaceable_p, decl_binds_to_current_def_p): Declare.
11522 * final.c (rest_of_clean_state): Use decl_binds_to_current_def_p.
11523 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
11524 input_overwrite_node, input_node, input_varpool_node): Stream
11526 * expr.c (expand_expr_real_1): Use const_value_known_p
11527 * ipa.c (ipa_discover_readonly_nonaddressable_var): Do not set
11529 (cgraph_externally_visible_p): Use cgraph_used_from_object_file_p.
11530 (function_and_variable_visibility): Set resolution for local vars
11531 and functions; use varpool_used_from_object_file_p.
11532 * varasm.c (resolution_to_local_definition_p, resolution_local_p): New
11534 (default_binds_local_p_1): Use resolutoin info.
11535 (decl_binds_to_current_def_p, decl_replaceable_p): New functions.
11536 * varpool.c (varpool_get_node): Constify.
11537 (const_value_known_p): Do not use vnode->const_value_known;
11538 use decl_replaceable_p.
11539 (varpool_finalize_decl): Do not set const_value_known.
11540 (cgraph_variable_initializer_availability): Use decl_replaceable_p
11541 (varpool_extra_name_alias): Return new node.
11542 (varpool_used_from_object_file_p): New function.
11544 2010-09-24 Richard Henderson <rth@redhat.com>
11546 * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): New.
11547 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): New.
11548 (do_spill): Use REG_CFA_OFFSET.
11549 (ia64_expand_prologue): Use REG_CFA_ADJUST_CFA and REG_CFA_REGISTER
11551 (ia64_expand_epilogue): Likewise.
11552 (process_set): Split into ...
11553 (process_cfa_adjust_cfa): this,
11554 (process_cfa_register): this,
11555 (process_cfa_offset): and this new function.
11556 (ia64_asm_unwind_emit): Use them. Expect REG_CFA_* notes
11557 instead of REG_FRAME_RELATED_EXPR.
11559 2010-09-24 Olivier Hainque <hainque@adacore.com>
11561 * config/i386/vx-common.h (DBX_REGISTER_NUMBER): Reinstate.
11563 2010-09-24 Jan Hubicka <jh@suse.cz>
11565 * doc/extend.texi: (attribute leaf): Document.
11566 * tree.c (local_define_builtin): Handle ECF_LEAF.
11567 (build_common_builtin_nodes): Set ECF_LEAF where needed.
11568 * tree.h (ECF_LEAF): New.
11569 * ipa-reference.c (propagate_bits): For leaf calls propagate ever
11570 overwrittable and unavailable functions.
11571 (ipa_init): Put all_module_statics into optimization_summary_obstack.
11572 (copy_global_bitmap): Do not copy all_module_statics.
11573 (read_write_all_from_decl): Use cgraph_node argument; handle ECF_LEAF.
11574 (propagate): Handle overwritable and unavailable leaf functions;
11575 initialize global info for overwritable and unavailable leaf functions;
11576 do not free all module statics.
11577 (ipa_reference_get_not_{read,written}_global): Leaf calls don't clobber
11579 * calls.c (flags_from_decl_or_type): Handle leaf.
11580 * tree-cfg.c (stmt_can_make_abnormal_goto): Leaf functions can't do
11583 2010-09-24 Basile Starynkevitch <basile@starynkevitch.net>
11585 * gengtype.c: Reindented.
11586 * gengtype.h: Reindented.
11587 * gengtype-parse.c: Reindented.
11589 2010-09-24 Jan Hubicka <jh@suse.cz>
11591 PR tree-optimization/45738
11592 PR tree-optimization/45741
11593 * expr.c (string_constant): Allow CONST_DECL too;
11594 check that DECL_INITIAL is set.
11595 * varpool.c (const_value_known_p): Only look into VAR_DECL
11598 2010-09-24 Joseph Myers <joseph@codesourcery.com>
11600 * common.opt (undef): New.
11602 2010-09-24 Jakub Jelinek <jakub@redhat.com>
11604 PR middle-end/45234
11605 * rtl.h (enum global_rtl_index): Add
11606 GR_VIRTUAL_PREFERRED_STACK_BOUNDARY.
11607 (LAST_VIRTUAL_POINTER_REGISTER): Define.
11608 (virtual_preferred_stack_boundary_rtx,
11609 VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM): Define.
11610 (LAST_VIRTUAL_REGISTER): Increase by one.
11611 (REGNO_PTR_FRAME_P): Use LAST_VIRTUAL_POINTER_REGISTER
11612 instead of LAST_VIRTUAL_REGISTER.
11613 * function.c (instantiate_new_reg): Handle
11614 virtual_preferred_stack_boundary_rtx.
11615 * emit-rtl.c (init_virtual_regs): Handle
11616 VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
11617 (init_emit_regs): Initialize virtual_preferred_stack_boundary_rtx.
11618 * explow.c (round_push): If crtl->preferred_stack_boundary
11619 is smaller than MAX_SUPPORTED_STACK_ALIGNMENT, use
11620 virtual_preferred_stack_boundary_rtx alignment instead of
11621 crtl->preferred_stack_boundary alignment.
11622 (allocate_dynamic_stack_space): Use CONST_INT_P and REG_P
11623 macros. Never decrease crtl->preferred_stack_boundary,
11624 use crtl->preferred_stack_boundary or MAX_SUPPORTED_STACK_ALIGNMENT
11625 instead of PREFERRED_STACK_BOUNDARY. Don't modify
11626 stack_pointer_delta in dynamic allocation, even when size
11628 (probe_stack_range, anti_adjust_stack_and_probe): Use CONST_INT_P
11630 * print-rtl.c (print_rtx): Handle
11631 VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
11632 * config/alpha/alpha.h (NONSTRICT_REG_OK_FP_BASE_P): Use
11633 LAST_VIRTUAL_POINTER_REGISTER instead of LAST_VIRTUAL_REGISTER.
11634 * config/frv/frv.c (frv_emit_movsi): Likewise.
11635 * config/arm/arm.c (thumb1_legitimate_address_p): Likewise.
11636 * config/rs6000/rs6000.c (virtual_stack_registers_memory_p):
11640 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
11642 PR middle-end/45234
11643 * calls.c (expand_call): Make sure that all variable sized
11644 adjustments are multiple of preferred stack boundary after
11647 2010-09-24 Iain Sandoe <iains@gcc.gnu.org>
11648 Dominique Dhumieres <dominiq@lps.ens.fr>
11651 * config/darwin-driver.c (darwin_default_min_version):
11652 Adjust size passed to memcpy in two places.
11654 2010-09-24 Richard Guenther <rguenther@suse.de>
11656 * c-decl.c (pop_scope): Always set file-scope DECL_CONTEXT.
11657 Make sure to not call set_type_context with error_mark_node.
11658 * langhooks.c (lhd_set_decl_assembler_name): Use DECL_FILE_SCOPE_P.
11660 2010-09-24 Richard Guenther <rguenther@suse.de>
11662 * Makefile.in (OBJS-onestep): Remove.
11663 (ALL_HOST_BACKEND_OBJS): Remove libbackend.o.
11664 (libbackend.a): Remove onestep support.
11665 (libbackend.o): Remove.
11666 * configure.ac (--enable-intermodule): Remove.
11667 * configure: Regenerate.
11669 2010-09-24 Bernd Schmidt <bernds@codesourcery.com>
11671 * cfgcleanup.c (flow_find_head_matching_sequence): Terminate when
11672 reaching the end of a block if it occurs at a DEBUG_INSN.
11674 2010-09-09 Tristan Gingold <gingold@adacore.com>
11677 * config/vms/vms-crt0-64.c: Removed.
11678 * config/vms/vms-crt0.c: Removed.
11679 * config/vms/vms-psxcrt0-64.c: Removed.
11680 * config/vms/vms-psxcrt0.c: Removed.
11681 * config/vms/vms-ucrt0.c: New file.
11682 * config/vms/t-vms64: Removed.
11683 * config/vms/t-vms (VMS_EXTRA_PARTS): Uncomment it. Remove DECC.
11684 Use $(GCC_FOR_TARGET) to build pcrt0.o and vcrt0.o
11685 * config.gcc (alpha-dec-vms): Use t-vms.
11687 2010-09-24 Nicola Pero <nicola.pero@meta-innovation.com>
11689 * doc/invoke.texi (-fno-nil-receivers): Tidied up line to remove
11690 underfull hbox in DVI output.
11691 (-fobjc-class-cxx-cdtors): Same change.
11692 (-fobjc-exceptions): Tidied up documentation. Explain what the
11693 option does, but moved the (lenghty) description of the exception
11694 syntax into objc.texi.
11695 (-fobjc-gc): Explain that the option is not useful with the GNU
11697 (-fzero-link): Explain that the GNU runtime always works in
11699 * doc/objc.texi: All sections: simplified @node declarations
11700 removing specification of next, previous, up node.
11701 (Objective-C): Updated introduction.
11702 (Garbage Collection): Updated. The bohem-gc library is now
11703 included in gcc itself. Mention that this section only applies to
11704 the GNU Objective-C runtime.
11705 (compatibility_alias): Small tidy up.
11706 (Exceptions): New section mostly containing text previously in the
11707 description of the -fobjc-exception command-line option.
11708 (Synchronization): Same.
11710 2010-09-24 Uros Bizjak <ubizjak@gmail.com>
11712 * config/i386/i386.md (ix86_code_end): Move the initialization of
11713 xops array near the consumer. Use AX_REG and SP_REG instead of
11714 numerical constants.
11716 2010-09-24 Nicola Pero <nicola.pero@meta-innovation.com>
11718 * c-typeck.c (convert_arguments): Use warning 'too many arguments to
11719 method [methodname]' for an Objective-C method instead of the less
11720 satisfactory 'too many arguments to function' (with no method name).
11722 2010-09-23 Eric Botcazou <ebotcazou@adacore.com>
11724 * tree-flow.h (execute_update_addresses_taken): Remove parameter.
11725 * tree-ssa.c (maybe_optimize_var): Tweak comment and dump messages.
11726 (execute_update_addresses_taken): Remove parameter. Execute the
11727 optimization unconditionally.
11728 * passes.c (execute_function_todo): Call execute_update_addresses_taken
11729 unconditionally if TODO_rebuild_alias is set, else only when optimizing
11730 if TODO_update_address_taken is set.
11732 2010-09-23 Anatoly Sokolov <aesok@post.ru>
11734 * config/arm/arm.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
11735 * config/arm/arm-protos.h (arm_output_addr_const_extra): Remove.
11736 * config/arm/arm.c (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
11737 (arm_output_addr_const_extra): Make static.
11739 2010-09-23 Uros Bizjak <ubizjak@gmail.com>
11741 * config/i386/i386.md (UNSPECV_NOPS): Rename from UNSPEC_NOPS and
11742 define as unspec_volatile.
11743 ("nops"): Define as unspec_volatile. Use fputs to write to
11744 asm_out_file directly. Output NOPs on separate lines using while loop.
11745 * config/i386/i386.c (ix86_code_end): Use fputs to write to
11746 asm_out_file directly. Output NOPs on separate lines using while loop.
11748 2010-09-23 Richard Guenther <rguenther@suse.de>
11750 PR tree-optimization/45565
11751 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee):
11752 Make sure to adjust the fndecl before replacing the stmt.
11754 2010-09-23 Richard Guenther <rguenther@suse.de>
11756 PR middle-end/45750
11757 * gimplify.c (gimplify_expr): Properly pass on GS_ERROR when
11758 gimplifying MEM_REF.
11760 2010-09-23 Alan Modra <amodra@gmail.com>
11762 * config/rs6000/rs6000.c (toc_relative_ok): Delete.
11763 (rs6000_emit_move): Use SYMBOL_REF_LOCAL_P instead.
11765 2010-09-23 Bernd Schmidt <bernds@codesourcery.com>
11767 PR rtl-optimization/44374
11768 * basic-block.h (enum bb_flags): Add BB_MODIFIED.
11769 * df-core.c (df_set_bb_dirty): Set it.
11770 * ifcvt.c (find_memory): Remove function.
11771 (dead_or_predicable): Use can_move_insns_across.
11772 * df.h (can_move_insns_across): Declare function.
11773 * cfgcleanup.c (block_was_dirty): New static variable.
11774 (try_crossjump_bb, try_forward_edges): Test BB_MODIFIED flag rather
11775 than df_get_bb_dirty.
11776 (try_head_merge_bb): New static function.
11777 (try_optimize_cfg): Call it. Call df_analyze if block_was_dirty
11779 * df-problems.c: Include "target.h"
11780 (df_simulate_find_uses): New static function.
11781 (MEMREF_NORMAL, MEMREF_VOLATILE): New macros.
11782 (find_memory, find_memory_store): New static functions.
11783 (can_move_insns_across): New function.
11784 * Makefile.in (df-problems.o): Update dependencies.
11786 2010-09-22 Eric Botcazou <ebotcazou@adacore.com>
11789 * config/sparc/linux.h (ASM_SPEC): Pass -K PIC if -findirect-dispatch
11790 is specified and the suffix of the file isn't ".c".
11791 * config/sparc/linux64.h (ASM_SPEC): Likewise.
11793 2010-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11795 * doc/contrib.texi (Contributors): Allow URL to wrap in PDF output.
11796 * doc/cppopts.texi: Fix markup of index entry.
11797 * doc/extend.texi (Constructing Calls): Fix markup of
11798 __builtin_va_arg_pack and __builtin_va_arg_pack_len definition.
11799 (Conditionals, C++ Comments, Pragmas, Unnamed Fields, Thread-Local)
11800 (Vague Linkage, C++ Attributes): Fix markup of index entries and
11802 * doc/invoke.texi (Option Summary): Fix spacing. Rewrap to
11804 (C Dialect Options, C++ Dialect Options, Warning Options)
11805 (Debugging Options, Spec Files, Darwin Options)
11806 (i386 and x86-64 Options, MIPS Options)
11807 (RS/6000 and PowerPC Options, Code Gen Options): Fix markup of
11808 index entries, avoid abbreviations, allow URLs to wrap, avoid
11809 long lines, avoid overlong pages from long @itemx lists.
11810 * doc/objc.texi (Garbage Collection): Allow URLs to wrap.
11811 * doc/standards.texi (Standards): Likewise.
11812 * doc/trouble.texi (Incompatibilities): Fix markup of index entry.
11814 2010-09-22 Joseph Myers <joseph@codesourcery.com>
11816 * opts-common.c (prune_options): Make static. Work with decoded
11818 (decode_cmdline_options_to_array): Call prune_options. Don't
11819 resize option array here.
11820 * opts.h (prune_options): Remove prototype.
11821 * gcc.c (process_command): Take decoded options; don't call
11822 decode_cmdline_options_to_array here. Use decoded options for argv[0].
11823 (main): Call decode_cmdline_options_to_array here instead of
11824 prune_options. Update call to process_command.
11825 * config/darwin-driver.c: Include opts.h.
11826 (darwin_default_min_version): Work with decoded options. Don't
11827 handle -b or -V here.
11828 * config/darwin.h (darwin_default_min_version): Update prototype.
11829 (GCC_DRIVER_HOST_INITIALIZATION): Update call to
11830 darwin_default_min_version.
11831 * config/i386/cygwin.h (mingw_scan): Update prototype.
11832 (GCC_DRIVER_HOST_INITIALIZATION): Update call to mingw_scan.
11833 * config/i386/cygwin1.c: Include opts.h.
11834 (mingw_scan): Work with decoded options.
11835 * config/i386/t-cygwin (cygwin1.o): Update dependencies.
11836 * config/t-darwin (darwin-driver.o): Update dependencies.
11838 2010-09-22 Joseph Myers <joseph@codesourcery.com>
11840 * common.opt (-assemble, -compile, -coverage, -debug, -dump,
11841 -dump=, -dumpbase, -dumpdir, -entry, -entry=, -extra-warnings,
11842 -for-assembler, -for-assembler=, -for-linker, -for-linker=,
11843 -force-link, -force-link=, -language, -language=,
11844 -library-directory, -library-directory=, -no-canonical-prefixes,
11845 -no-standard-libraries, -no-warnings, -optimize, -output,
11846 -output=, -pass-exit-codes, -pedantic, -pedantic-errors, -pie,
11847 -pipe, -prefix, -prefix=, -preprocess, -print-file-name,
11848 -print-file-name=, -print-libgcc-file-name,
11849 -print-multi-directory, -print-multi-lib,
11850 -print-multi-os-directory, -print-prog-name, -print-prog-name=,
11851 -print-search-dirs, -print-sysroot, -print-sysroot-headers-suffix,
11852 -profile, -save-temps, -shared, -specs, -specs=, -static,
11853 -symbolic, -time, -verbose, -param=, -sysroot, coverage, e, u,
11855 (fhelp, fhelp=, ftarget-help, fversion): Make into aliases.
11856 * gcc.c (A Short Introduction to Adding a Command-Line Option):
11858 (cc1_options): Correct specs for passing down --help,
11859 --target-help and --help=*. Add spec for passing down --version.
11860 (struct option_map, option_map, target_option_translations,
11861 translate_options): Remove.
11862 (driver_handle_option): Handle OPT__version, OPT__help, OPT__help_
11863 and OPT__target_help instead of OPT_fversion, OPT_fhelp,
11864 OPT_fhelp_ and OPT_ftarget_help.
11865 (process_command): Don't call translate_options. Call
11866 decode_cmdline_options_to_array before checking for
11867 -no-canonical-prefixes using decoded options.
11868 * opts-common.c (tm.h): Update comment on #include.
11869 (find_opt): Allow abbreviations of long options.
11870 (struct option_map, option_map): New.
11871 (decode_cmdline_option): Use them instead of hardcoding -Wno, -fno
11873 (target_option_translations): New.
11874 (decode_cmdline_options_to_array): Handle
11875 TARGET_OPTION_TRANSLATE_TABLE in driver.
11876 * opts.c (common_handle_option): Don't handle OPT_fhelp,
11877 OPT_ftarget_help, OPT_fhelp_ or OPT_fversion.
11879 2010-09-22 Richard Guenther <rguenther@suse.de>
11881 * tree-inline.c (optimize_inline_calls): Schedule cleanups
11882 only if we inlined something. Block compaction and conditional
11883 folding are done by cfg cleanup. Schedule update-address-taken.
11884 (tree_function_versioning): Remove redundant call to number_blocks.
11885 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Conditional
11886 folding is done by cfg cleanup.
11887 * passes.c (init_optimization_passes): Remove update-address-taken
11888 pass after IPA inlining.
11890 2010-09-22 Chung-Lin Tang <cltang@codesourcery.com>
11892 * postreload.c (move2add_note_store): Add reg_symbol_ref[] checks
11893 to update conditions. Fix reg_mode[] check.
11895 2010-09-22 Hariharan Sandanagobalane <hariharan@picochip.com>
11897 * config/picochip/picochip.md (movhicc): Use expand to check whether
11898 movhicc is available and split it after reload.
11900 2010-09-22 Richard Guenther <rguenther@suse.de>
11902 * tree-ssanames.c (release_dead_ssa_names): Do not remove
11904 * passes.c (init_optimization_passes): Remove early CFG cleanup.
11905 * tree-optimize.c (execute_cleanup_cfg_pre_ipa): Remove.
11906 (pass_cleanup_cfg): Likewise.
11907 (execute_fixup_cfg): Cleanup.
11908 * tree-pass.h (pass_cleanup_cfg): Remove.
11910 2010-09-22 Martin Jambor <mjambor@suse.cz>
11912 * gimple-fold.c (fold_gimple_call): New parameter inplace, do not fold
11913 builtins if it is true.
11914 (fold_stmt_1): Call, fold_gimple_call always, pass inplace as a
11917 2010-09-22 Martin Jambor <mjambor@suse.cz>
11919 * tree-sra.c (struct access): New field grp_no_warning.
11920 (create_access_replacement): Set TREE_NO_WARNING according to
11922 (create_artificial_child_access): Use build_ref_for_model and set
11923 grp_no_warning if build_user_friendly_ref_for_offset fails.
11924 (propagate_subaccesses_across_link): Likewise.
11926 2010-09-22 Eric Botcazou <ebotcazou@adacore.com>
11929 * config/sparc/constraints.md ('e'): Return NO_REGS if !TARGET_FPU.
11932 2010-09-22 Tristan Gingold <gingold@adacore.com>
11934 * config/alpha/alpha.c (alpha_use_linkage): Initialize target field.
11936 2010-09-22 Uros Bizjak <ubizjak@gmail.com>
11938 * config/i386/i386.h (MAX_STRINGOP_ALGS): Fix typo in the name.
11939 * config/i386/i386.c (decide_alg): Update for rename.
11941 2010-09-22 Jakub Jelinek <jakub@redhat.com>
11943 PR rtl-optimization/45739
11944 * simplify-rtx.c (simplify_binary_operation_1): Optimize even
11945 vector mode | CONST0_RTX (mode) and ^ CONST0_RTX (mode).
11947 2010-09-21 Anatoly Sokolov <aesok@post.ru>
11949 * config/rs6000/rs6000.h (OUTPUT_ADDR_CONST_EXTRA): Remove macros.
11950 * config/rs6000/rs6000-protos.h (rs6000_output_addr_const_extra):
11952 * config/rs6000/rs6000.c (rs6000_output_addr_const_extra): Make static.
11953 (TTARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
11955 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
11958 * c-parser.c (c_parser_objc_method_definition): Check the return
11959 value of objc_start_method_definition and if false is returned,
11960 parse the method definition but emit no code.
11962 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
11965 * c-decl.c (detect_field_duplicates): If compiling Objective-C,
11966 call objc_get_interface_ivars ().
11968 2010-09-21 Kai Tietz <kai.tietz@onevision.com>
11971 * config/i386/i386.c (ix86_expand_prologue): Save r10 in case that
11972 static chain-register is used for 64-bit.
11974 2010-09-21 Richard Guenther <rguenther@suse.de>
11976 * dwarf2out.c (is_cu_die): New function.
11977 (add_pubtype): Use it.
11978 (gen_subprogram_die): Likewise.
11979 (gen_struct_or_union_type_die): Likewise.
11980 (dwarf2out_finish): Likewise.
11981 (comp_unit_die): Rename to ...
11982 (single_comp_unit_die): ... this.
11983 (comp_unit_die): New function lazily constructing and
11984 returning single_comp_unit_die.
11985 (is_cxx, is_fortran, is_ada, debug_dwarf, break_out_comdat_types,
11986 base_type_die, subrange_type_die, modified_type_die,
11987 lower_bound_default, add_bound_info, add_prototyped_attribute,
11988 dwarf2out_vms_debug_main_pointer, scope_die_for, retry_incomplete_types,
11989 dwarf2out_abstract_function, gen_type_die_with_usage, get_context_die,
11990 force_decl_die, gen_namespace_die, dwarf2out_decl,
11991 dwarf2out_start_source_file, dwarf2out_end_source_file,
11992 prune_unused_types, dwarf2out_finish): Use it.
11993 (gen_compile_unit_die): For GNU GIMPLE derive DW_AT_language from
11994 the global list of translation-unit decls.
11995 (dwarf2out_init): Do not create single_comp_unit_die here.
11996 (force_decl_die): Handle TRANSLATION_UNIT_DECL.
11998 2010-09-21 Richard Guenther <rguenther@suse.de>
12000 * dwarf2out.c (dwarf2out_decl): Do not always generate a DIE
12003 2010-09-21 Bernd Schmidt <bernds@codesourcery.com>
12005 * config/arm/iterators.md (qhs_extenddi_op): New mode_attr.
12006 (qhs_extenddi_cstr): Likewise.
12007 * config/arm/arm.md (zero_extend<mode>di2, extend<mode>di2): Use
12008 them for the source operand.
12010 2010-09-21 Uros Bizjak <ubizjak@gmail.com>
12012 * config/i386/i386.c (ix86_split_ashl): Rename single_width variable
12013 to half_width. Use GET_MODE_BITSIZE to calculate mode size.
12014 (ix86_split_ashr): Ditto.
12015 (ix86_split_lshr): Ditto.
12017 2010-09-21 Richard Guenther <rguenther@suse.de>
12019 PR tree-optimization/45580
12020 * tree-ssa-propagate.c (substitute_and_fold): Always replace
12022 * gimple-fold.c (gimple_fold_obj_type_ref): For a BINFO without
12023 virtuals fold the call into a regular indirect one.
12025 2010-09-20 Eric Botcazou <ebotcazou@adacore.com>
12027 PR rtl-optimization/42775
12028 * cfgrtl.c (rest_of_pass_free_cfg): Recompute notes if delay slot
12029 scheduling is enabled.
12031 2010-09-20 Jakub Jelinek <jakub@redhat.com>
12033 PR rtl-optimization/45728
12034 * expr.c (expand_expr_real_1): If op0 isn't REG or MEM, try
12035 gen_lowpart_common first and if that fails, force_reg first
12036 before calling gen_lowpart.
12038 PR middle-end/45678
12039 * cfgexpand.c (expand_one_stack_var_at): Use
12040 crtl->max_used_stack_slot_alignment as max_align, instead
12041 of maximum of that and PREFERRED_STACK_BOUNDARY.
12042 Don't call update_stack_alignment.
12044 2010-09-20 Eric Botcazou <ebotcazou@adacore.com>
12046 * langhooks.h (struct lang_hooks_for_types): Remove hash_types field.
12047 * langhooks-def.h (LANG_HOOKS_HASH_TYPES): Delete.
12048 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Remove LANG_HOOKS_HASH_TYPES.
12049 * system.h (LANG_HOOKS_HASH_TYPES): Poison.
12050 * tree.c (type_hash_canon): Do not test lang_hooks.types.hash_types.
12051 (build_nonstandard_integer_type): Likewise.
12052 (build_range_type_1): New function, built from...
12053 (build_range_type): ...this. Call build_range_type_1.
12054 (build_nonshared_range_type): New function.
12055 (build_array_type_1): New function, built from...
12056 (build_array_type: ...this. Call build_array_type_1.
12057 (build_nonshared_array_type): New function.
12058 * tree.h (build_nonshared_range_type): Declare.
12059 (build_nonshared_array_type): Likewise.
12061 2010-09-20 Anatoly Sokolov <aesok@post.ru>
12063 * config/arm/arm.h (CLASS_LIKELY_SPILLED_P): Remove.
12064 * config/arm/arm.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
12065 (arm_class_likely_spilled_p): New function.
12067 2010-09-20 Uros Bizjak <ubizjak@gmail.com>
12069 * config/i386/i386.c (ix86_expand_ashl_const): Rewrite using
12070 indirect functions.
12071 (ix86_split_ashl): Ditto.
12072 (ix86_split_ashr): Ditto.
12073 (ix86_split_lshr): Ditto.
12074 (ix86_adjust_counter): Ditto.
12076 2010-09-20 Nicola Pero <nicola.pero@meta-innovation.com>
12078 * c-family/c-common.h (constant_string_class): Documented with
12079 comment identical to the one already in c-common.c.
12081 2010-09-20 Jakub Jelinek <jakub@redhat.com>
12083 * dwarf2out.c (any_cfis_emitted): New static variable.
12084 (add_fde_cfi): Set it.
12085 (dwarf2out_frame_debug): Clear it before processing,
12086 if it is set afterwards, flush any queued reg saves.
12089 * dwarf2out.c (add_accessibility_attribute): Assume
12090 DW_ACCESS_private as the default for dwarf_version > 2
12091 and DW_TAG_class_type parent.
12092 (gen_inheritance_die): Assume DW_ACCESS_public as the default
12093 for dwarf_version > 2 and parent other than DW_TAG_class_type.
12095 2010-09-20 Rafael Carre <rafael.carre@gmail.com>
12098 * arm.md (arm_movt): Only enable on machines with MOVT.
12100 2010-09-20 Jie Zhang <jie@codesourcery.com>
12102 * config/arm/arm.c (arm_address_offset_is_imm): New.
12103 (arm_early_store_addr_dep): New.
12104 (arm_early_load_addr_dep): New.
12105 * config/arm/arm-protos.h (arm_early_store_addr_dep): Declare.
12106 (arm_early_load_addr_dep): Declare.
12107 (arm_address_offset_is_imm): Declare.
12108 * config/arm/cortex-m4.md: New file.
12109 * config/arm/cortex-m4-fpu.md: New file.
12110 * config/arm/arm.md: Include cortex-m4.md and cortex-m4-fpu.md.
12111 (attr generic_sched): Exclude cortexm4.
12112 (attr generic_vfp): Exclude cortexm4.
12114 2010-09-20 Richard Guenther <rguenther@suse.de>
12116 PR middle-end/45704
12117 * gimplify.c (gimplify_modify_expr_rhs): Preserve volatileness.
12119 2010-09-20 Jan Hubicka <jh@suse.cz>
12121 PR tree-optimize/45605
12122 * cgraph.h (const_value_known_p): Declare.
12123 (varpool_decide_const_value_known): Remove.
12124 * tree-ssa-ccp.c (get_base_constructor): Use it.
12125 * lto-cgraph.c (compute_ltrans_boundary): Likewise.
12126 * expr.c (string_constant): Likewise.
12127 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
12128 * ipa.c (ipa_discover_readonly_nonaddressable_var,
12129 function_and_variable_visibility): Likewise.
12130 * gimplify.c (gimplify_call_expr): Likewise.
12131 * gimple-fold.c (get_symbol_constant_value): Likewise.
12132 * varpool.c (varpool_decide_const_value_known): Replace by...
12133 (const_value_known_p): ... this one; handle other kinds of DECLs
12134 too and work for automatic vars.
12135 (varpool_finalize_decl): Use const_value_known_p.
12137 2010-09-20 Rafael Carre <rafael.carre@gmail.com>
12140 * arm.md (arm_movtas_ze): Only enable on machine with MOVT.
12142 2010-09-20 Richard Guenther <rguenther@suse.de>
12144 PR tree-optimization/45705
12145 * tree-ssa-dom.c (optimize_stmt): Perform redundant store elimination.
12147 2010-09-20 Jakub Jelinek <jakub@redhat.com>
12149 PR rtl-optimization/45695
12150 * combine.c (try_combine): When splitting a two set pattern,
12151 make sure the pattern which will be put into i2 doesn't use REGs
12152 or MEMs set by insns in between i2 and i3.
12154 2010-09-19 Jan Hubicka <jh@suse.cz>
12157 * lto-cgraph.c (input_cgraph_1, input_varpool_1): Avoid
12158 processing same node twice.
12160 2010-09-19 Anatoly Sokolov <aesok@post.ru>
12162 * config/bfin/bfin.h (CLASS_LIKELY_SPILLED_P): Remove.
12163 * config/bfin/bfin.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
12164 (bfin_class_likely_spilled_p): New function
12166 2010-09-19 Ira Rosen <irar@il.ibm.com>
12168 PR tree-optimization/45714
12169 * tree-vect-stmts.c (vect_transform_stmt): Use a dummy statement
12170 created in vectorizable_call instead of the original statement in
12173 2010-09-19 Uros Bizjak <ubizjak@gmail.com>
12175 * config/i386/i386-protos.h (split_double_mode): New prototype.
12176 (split_di, split_ti): Remove prototypes.
12177 * config/i386/i386.c (split_double_mode): New function.
12178 (split_di, split_ti): Remove.
12179 (ix86_expand_branch): Use split_double_mode.
12180 (ix86_split_to_parts): Ditto.
12181 (ix86_split_ashl): Ditto.
12182 (ix86_split_ashr): Ditto.
12183 (ix86_split_lshr): Ditto.
12184 (ix86_force_to_memory): Ditto.
12185 * config/i386/i386.md: Use split_double_mode in double-mode splitters.
12187 2010-09-18 Jan Hubicka <jh@suse.cz>
12189 PR tree-optimization/45453
12190 * cgraphunit.c (cgraph_finalize_function): Consider comdat & external
12191 virtual functions are reachable.
12192 * ipa-inline.c (cgraph_clone_inlined_nodes): Likewise.
12193 * ipa.c (cgraph_remove_unreachable_nodes): Likewise.
12194 * ipa-prop.c (ipa_modify_formal_parameters): Clear DECL_VIRTUAL_P
12195 when modifying function.
12197 2010-09-18 Jan Hubicka <jh@suse.cz>
12199 PR tree-optimization/45605
12200 * cgraphunit.c (cgraph_analyze_functions): Allocate bitmap obstack.
12201 * gimple-fold.c (static_object_in_other_unit_p): New function.
12202 (canonicalize_constructor_val): Use it.
12203 (get_symbol_constant_value): Be reaqdy for canonicalize_constructor_val
12205 (gimple_fold_obj_type_ref_known_binfo): Use
12206 static_object_in_other_unit_p.
12208 2010-09-18 Richard Guenther <rguenther@suse.de>
12210 PR tree-optimization/45709
12211 * tree-inline.c (copy_phis_for_bb): Delay commit of edge
12212 insertions until after all PHI nodes of the block are processed.
12214 2010-09-18 Tijl Coosemans <tijl@coosemans.org>
12216 * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Add.
12218 2010-09-18 Kai Tietz <kai.tietz@onevision.com>
12220 * config.gcc (*-w64-mingw*): Correct typo about t-dfprules.
12222 2010-09-18 Richard Guenther <rguenther@suse.de>
12224 PR tree-optimization/45709
12225 * tree-inline.c (copy_phis_for_bb): Fixup new_edge when we splitted it.
12227 2010-09-17 Sebastian Pop <sebastian.pop@amd.com>
12229 * graphite-dependences.c (dot_deps): Add DEBUG_FUNCTION.
12230 (dot_deps_stmt): Same.
12231 * graphite-poly.c (dot_lst): Same.
12232 * graphite-scop-detection.c (dot_all_scops): Same.
12235 2010-09-17 Sebastian Pop <sebastian.pop@amd.com>
12238 2009-12-16 Ben Elliston <bje@au.ibm.com>
12240 * tree-data-ref.c (dot_rdg_1): Added back.
12241 (dot_rdg): Same. Added "#if 0" around system call.
12243 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
12244 Richard Henderson <rth@redhat.com>
12246 * config/i386/i386.c (initial_ix86_tune_features): Add
12247 X86_TUNE_PAD_SHORT_FUNCTION.
12248 (ix86_code_end): Pad with 8 NOPs for TARGET_PAD_SHORT_FUNCTION.
12249 (ix86_count_insn): New.
12250 (ix86_pad_short_function): Likewise.
12251 (ix86_reorg): Support TARGET_PAD_SHORT_FUNCTION.
12253 * config/i386/i386.h (ix86_tune_indices): Add
12254 X86_TUNE_PAD_SHORT_FUNCTION.
12255 (TARGET_PAD_SHORT_FUNCTION): New.
12257 * config/i386/i386.md (UNSPEC_NOPS): New.
12260 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
12262 PR middle-end/45234
12263 * calls.c (expand_call): Make sure that all variable sized
12264 adjustments are multiple of preferred stack boundary after
12267 2010-09-17 DJ Delorie <dj@redhat.com>
12269 * config/rx/rx.c (rx_print_operand): If __builtin_rx_setpsw() is
12270 passed an invalid value, print an error instead of ICEing.
12271 (valid_psw_flag): New.
12272 (rx_expand_builtin): Call it for setpsw/clrpsw.
12273 (rx_expand_builtin_mvtipl): Pass an integer to IN_RANGE, not an RTX.
12275 * config/rx/rx.md (bitclr): Don't mark the output as early-clobber.
12276 (bitclr_in_memory): Likewise.
12277 (clrspw, setpsw, mvfc, mvtc, mvtipl): Make volatile.
12279 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
12281 PR middle-end/45678
12282 * cfgexpand.c (update_stack_alignment): New.
12283 (get_decl_align_unit): Use it.
12284 (expand_one_stack_var_at): Call update_stack_alignment.
12286 2010-09-17 Richard Guenther <rguenther@suse.de>
12288 * lto-streamer-in.c (lto_input_ts_translation_unit_decl_tree_pointers):
12289 Properly copy the read string.
12291 2010-09-17 Joseph Myers <joseph@codesourcery.com>
12293 * doc/options.texi (Variable): Document.
12294 * optc-gen.awk, opth-gen.awk: Handle Variable records. Don't
12295 generate target_flags declarations explicitly. Don't define
12296 VarExists variables for the driver.
12297 * common.opt (target_flags): New Variable record.
12298 (flag_dump_unnumbered, flag_dump_unnumbered_links,
12299 flag_var_tracking, flag_var_tracking_assignments,
12300 flag_var_tracking_assignments_toggle): Don't mark variables with
12302 * config/i386/i386.c (ix86_isa_flags): Don't define here.
12303 * config/i386/i386.opt (ix86_isa_flags): Define here.
12304 * config/mcore/mcore.c (mcore_stack_increment): Don't define here.
12305 * config/mcore/mcore.opt (mcore_stack_increment): Don't mark with
12307 * flags.h (flag_dump_unnumbered, flag_var_tracking): Remove.
12308 * print-rtl.c (flag_dump_unnumbered, flag_dump_unnumbered_links):
12309 Only define for generator programs.
12310 * rtlanal.c (target_flags): Remove.
12311 * toplev.c (flag_var_tracking, flag_var_tracking_assignments,
12312 flag_var_tracking_assignments_toggle): Remove.
12314 2010-09-17 Michael Matz <matz@suse.de>
12316 PR tree-optimization/43432
12317 * tree-vect-data-refs.c (vect_analyze_data_ref_access):
12318 Accept backwards consecutive accesses.
12319 (vect_create_data_ref_ptr): If step is negative generate
12321 * tree-vect-stmts.c (vectorizable_store): Reject negative steps.
12322 (perm_mask_for_reverse, reverse_vec_elements): New functions.
12323 (vectorizable_load): Handle loads with negative steps when easily
12326 2010-09-03 Jan Hubicka <jh@suse.cz>
12328 * lto-cgraph.c (compute_ltrans_boundary): Use const_value_known.
12330 2010-09-03 Naveen H.S <naveen.S@kpitcummins.com>
12332 * config/v850/v850.c (v850_function_value_regno_p): Make static.
12333 Adjust comments. Declare.
12334 (TARGET_FUNCTION_VALUE_REGNO_P): Define.
12335 * config/v850/v850.h (FUNCTION_VALUE_REGNO_P): Delete.
12337 2010-09-17 Richard Guenther <rguenther@suse.de>
12339 * common.opt (combine): Remove.
12340 * gcc.c (default_compilers): Remove specs testing combine.
12341 The C compilers no longer can combine.
12342 (option_map): Remove -combine.
12343 (display_help): Remove -combine.
12344 (driver_handle_option): Remove OPT_combine handling.
12345 (compile_input_file_p): Remove.
12346 (do_spec): Remove code concerning combine.
12348 * doc/invoke.texi: Remove traces of -combine.
12349 * lto-wrapper.c (run_gcc): Do not pass -combine to the compiler driver.
12351 2010-09-17 Richard Guenther <rguenther@suse.de>
12353 PR middle-end/45678
12354 * builtins.c (fold_builtin_memory_op): Always properly adjust
12355 alignment of memory accesses.
12357 2010-09-16 Jan Hubicka <jh@suse.cz>
12359 * lto-cgraph.c (input_overwrite_node): Do not set DECL_EXTERNAL when
12362 2010-09-16 H.J. Lu <hongjiu.lu@intel.com>
12364 * config/i386/i386-protos.h (ix86_split_idivmod): New prototype.
12366 * config/i386/i386.c (predict_jump): Add prototype.
12367 (flag_opts): Add -m8bit-idiv.
12368 (ix86_split_idivmod): New.
12370 * config/i386/i386.md (UNSPEC_DIV_ALREADY_SPLIT): New.
12371 Add 2 splitters for SI/DI mode divide.
12372 (divmod<mode>4_1): New pattern.
12373 (udivmod<mode>4_1): Likewise.
12374 (testdi_ccno_1): Likewise.
12376 * config/i386/i386.opt (m8bit-idiv): New.
12378 * doc/invoke.texi: Document -m8bit-idiv.
12380 2010-09-16 Reza Yazdani <reza.yazdani@amd.com>
12383 * config/i386/i386.c (min_insn_size): Moved out of the
12384 ASM_OUTPUT_MAX_SKIP_PAD ifdef.
12386 2010-09-16 Jan Hubicka <jh@suse.cz>
12388 * lto-cgraph.c (lto_output_node): Fix handling of clones.
12389 * ipa.c (cgraph_remove_unreachabloe_nodes): Fix handling of
12390 unreachable clones with reachable clones.
12391 * tree-inline.c (copy_bb): Fix sanity checking when producing
12394 2010-09-16 Anatoly Sokolov <aesok@post.ru>
12396 * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Remove.
12397 (TARGET_MEMORY_MOVE_COST): Define.
12398 (m32r_function_arg): Annotate argument 'type' with ATTRIBUTE_UNUSED.
12400 2010-09-16 Alexander Monakov <amonakov@ispras.ru>
12402 * sel-sched.c (move_cond_jump): Use tidy_control_flow instead of
12403 maybe_tidy_empty_bb.
12406 2010-09-06 Alexander Monakov <amonakov@ispras.ru>
12407 * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
12409 2010-09-16 Joseph Myers <joseph@codesourcery.com>
12411 * target.def (target_option.optimization): New hook.
12412 * doc/tm.texi.in (OPTIMIZATION_OPTIONS): Change to
12413 TARGET_OPTION_OPTIMIZATION hook.
12414 * doc/tm.texi: Regenerate.
12415 * hooks.c (hook_void_int_int): New.
12416 * hooks.h (hook_void_int_int): Declare.
12417 * opts.c: Don't include tm_p.h.
12418 (decode_options): Use targetm.target_option.optimization instead
12419 of OPTIMIZATION_OPTIONS.
12420 * system.h (OPTIMIZATION_OPTIONS): Poison.
12421 * config/arm/arm-protos.h (arm_optimization_options): Remove.
12422 * config/arm/arm.c (TARGET_OPTION_OPTIMIZATION): Define.
12423 (arm_optimization_options): Rename to arm_option_optimization.
12425 * config/arm/arm.h (OPTIMIZATION_OPTIONS): Remove.
12426 * config/cris/cris.c (TARGET_OPTION_OPTIMIZATION): Define.
12427 (cris_option_optimization): New.
12428 * config/cris/cris.h (OPTIMIZATION_OPTIONS): Remove.
12429 * config/crx/crx.c (TARGET_OPTION_OPTIMIZATION): Define.
12430 (crx_option_optimization): New.
12431 * config/crx/crx.h (OPTIMIZATION_OPTIONS): Remove.
12432 * config/frv/frv-protos.h (frv_optimization_options): Remove.
12433 * config/frv/frv.c (TARGET_OPTION_OPTIMIZATION): Define.
12434 (frv_optimization_options): Rename to frv_option_optimization.
12436 * config/frv/frv.h (OPTIMIZATION_OPTIONS): Remove.
12437 * config/h8300/h8300.c (h8300_option_optimization): New.
12438 (TARGET_OPTION_OPTIMIZATION): Define.
12439 * config/h8300/h8300.h (OPTIMIZATION_OPTIONS): Remove.
12440 * config/i386/i386-protos.h (optimization_options): Remove.
12441 * config/i386/i386.c (optimization_options): Rename to
12442 ix86_option_optimization. Make static.
12443 (TARGET_OPTION_OPTIMIZATION): Define.
12444 * config/i386/i386.h (OPTIMIZATION_OPTIONS): Remove.
12445 * config/ia64/ia64-protos.h (ia64_optimization_options): Remove.
12446 * config/ia64/ia64.c (TARGET_OPTION_OPTIMIZATION): Define.
12447 (ia64_optimization_options): Rename to ia64_option_optimization.
12448 Make static. Call SUBTARGET_OPTIMIZATION_OPTIONS.
12449 * config/ia64/ia64.h (OPTIMIZATION_OPTIONS): Remove. Remove
12450 commented-out definition.
12451 * config/ia64/vms.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define
12452 instead of OPTIMIZATION_OPTIONS.
12453 * config/m32r/m32r.c (TARGET_OPTION_OPTIMIZATION): Define.
12454 (m32r_option_optimization): New.
12455 * config/m32r/m32r.h (OPTIMIZATION_OPTIONS): Remove.
12456 * config/m68hc11/m68hc11-protos.h (m68hc11_optimization_options):
12458 * config/mcore/mcore.c (TARGET_OPTION_OPTIMIZATION): Define.
12459 (mcore_option_optimization): New.
12460 * config/mcore/mcore.h (OPTIMIZATION_OPTIONS): Remove.
12461 * config/mep/mep-protos.h (mep_optimization_options): Remove.
12462 * config/mep/mep.c (TARGET_OPTION_OPTIMIZATION): Define.
12463 (mep_optimization_options): Rename to mep_option_optimization.
12464 Make static. Take unused level and size parameters.
12465 * config/mep/mep.h (OPTIMIZATION_OPTIONS): Remove.
12466 * config/mmix/mmix.c (TARGET_OPTION_OPTIMIZATION): Define.
12467 (mmix_option_optimization): New.
12468 * config/mmix/mmix.h (OPTIMIZATION_OPTIONS): Remove.
12469 * config/pdp11/pdp11.c (TARGET_OPTION_OPTIMIZATION): Define.
12470 (pdp11_option_optimization): New.
12471 * config/pdp11/pdp11.h (OPTIMIZATION_OPTIONS): Remove.
12472 * config/rs6000/rs6000-protos.h (optimization_options): Remove.
12473 * config/rs6000/rs6000.c (TARGET_OPTION_OPTIMIZATION): Define.
12474 (optimization_options): Rename to rs6000_option_optimization.
12476 * config/rs6000/rs6000.h (OPTIMIZATION_OPTIONS): Remove.
12477 * config/rx/rx-protos.h (rx_set_optimization_options): Remove.
12478 * config/rx/rx.c (rx_set_optimization_options): Rename to
12479 rx_option_optimization. Make static. Take unused level and size
12481 (TARGET_OPTION_OPTIMIZATION): Define.
12482 * config/rx/rx.h (OPTIMIZATION_OPTIONS): Remove.
12483 * config/s390/s390-protos.h (optimization_options): Remove.
12484 * config/s390/s390.c (optimization_options): Rename to
12485 s390_option_optimization. Make static. Don't mark size parameter
12487 (TARGET_OPTION_OPTIMIZATION): Define.
12488 * config/s390/s390.h (OPTIMIZATION_OPTIONS): Remove.
12489 * config/sh/sh-protos.h (sh_optimization_options): Remove.
12490 * config/sh/sh.c (TARGET_OPTION_OPTIMIZATION): Define.
12491 (sh_optimization_options): Rename to sh_option_optimization. Make
12492 static. Don't mark parameters unused.
12493 * config/sh/sh.h (OPTIMIZATION_OPTIONS): Remove.
12494 * config/spu/spu-protos.h (spu_optimization_options): Remove.
12495 * config/spu/spu.c (TARGET_OPTION_OPTIMIZATION): Define.
12496 (spu_optimization_options): Rename to spu_option_optimization.
12498 * config/spu/spu.h (OPTIMIZATION_OPTIONS): Remove.
12499 * config/v850/v850.c (TARGET_OPTION_OPTIMIZATION): Define.
12500 (v850_option_optimization): New.
12501 * config/v850/v850.h (OPTIMIZATION_OPTIONS): Remove.
12502 * config/xtensa/xtensa.c (TARGET_OPTION_OPTIMIZATION): Define.
12503 (xtensa_option_optimization): New.
12504 * config/xtensa/xtensa.h (OPTIMIZATION_OPTIONS): Remove.
12506 2010-09-16 Joseph Myers <joseph@codesourcery.com>
12508 * doc/tm.texi.in (OVERRIDE_OPTIONS): Remove documentation.
12509 (C_COMMON_OVERRIDE_OPTIONS): Don't refer to OVERRIDE_OPTIONS.
12510 * doc/tm.texi: Regenerate.
12511 * system.h (OVERRIDE_OPTIONS): Poison.
12512 * target.def (override): Default to hook_void_void.
12513 * targhooks.c (default_target_option_override): Remove.
12514 * genmodes.c, machmode.def: Update comments mentioning
12516 * config/alpha/alpha-modes.def: Update comment mentioning
12517 alpha_override_options.
12518 * config/alpha/alpha-protos.h (override_options): Remove.
12519 * config/alpha/alpha.c (override_options): Rename to
12520 alpha_option_override. Call SUBTARGET_OVERRIDE_OPTIONS. Make static.
12521 (TARGET_OPTION_OVERRIDE): Define.
12522 * config/alpha/alpha.h (OVERRIDE_OPTIONS): Remove.
12523 * config/alpha/vms.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead
12524 of OVERRIDE_OPTIONS.
12525 * config/arc/arc-protos.h (arc_init): Remove.
12526 * config/arc/arc.c (TARGET_OPTION_OVERRIDE): Define.
12527 (arc_init): Rename to arc_option_override. Make static.
12528 * config/arc/arc.h (ARC_EXTENSION_CPU): Correct comment.
12529 (OVERRIDE_OPTIONS): Remove.
12530 * config/arm/arm-protos.h (arm_override_options): Remove.
12531 * config/arm/arm.c (TARGET_OPTION_OVERRIDE): Define.
12532 (arm_override_options): Rename to arm_option_override. Make
12533 static. Call SUBTARGET_OVERRIDE_OPTIONS.
12534 * config/arm/arm.h (OVERRIDE_OPTIONS): Remove.
12535 * config/arm/arm.md: Update comment referring to arm_override_options.
12536 * config/arm/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
12537 instead of OVERRIDE_OPTIONS.
12538 * config/avr/avr-protos.h (avr_override_options): Remove.
12539 * config/avr/avr.c (TARGET_OPTION_OVERRIDE): Define.
12540 (avr_override_options): Rename to avr_option_override. Make static.
12541 * config/avr/avr.h (OVERRIDE_OPTIONS): Remove.
12542 * config/bfin/bfin-protos.h (override_options): Remove (twice).
12543 * config/bfin/bfin.c (override_options): Rename to
12544 bfin_option_override. Make static.
12545 (TARGET_OPTION_OVERRIDE): Define.
12546 * config/bfin/bfin.h (OVERRIDE_OPTIONS): Remove.
12547 * config/cris/cris-protos.h (cris_override_options): Remove.
12548 * config/cris/cris.c (TARGET_OPTION_OVERRIDE): Define.
12549 (cris_override_options): Rename to cris_option_override. Make static.
12550 * config/cris/cris.h (OVERRIDE_OPTIONS): Remove.
12551 * config/frv/frv-protos.h (frv_override_options): Remove.
12552 * config/frv/frv.c (TARGET_OPTION_OVERRIDE): Define.
12553 (frv_override_options): Rename to frv_option_override. Make static.
12554 * config/frv/frv.h (OVERRIDE_OPTIONS): Remove.
12555 * config/h8300/h8300-protos.h (h8300_init_once): Remove.
12556 * config/h8300/h8300.c (h8300_init_once): Rename to
12557 h8300_option_override. Make static.
12558 (TARGET_OPTION_OVERRIDE): Define.
12559 * config/h8300/h8300.h (OVERRIDE_OPTIONS): Remove.
12560 * config/i386/i386-protos.h (override_options): Remove.
12561 * config/i386/i386.c (override_options): Rename to
12562 ix86_option_override_internal. Make static. Comments referring
12563 to this function and callers changed.
12564 (ix86_option_override): New.
12565 (TARGET_OPTION_OVERRIDE): Define.
12566 * config/i386/i386.h (OVERRIDE_OPTION): Remove.
12567 * config/i386/linux64.h (DEFAULT_PCC_STRUCT_RETURN): Update comment.
12568 * config/ia64/ia64.c (ia64_file_start): Update comment referring
12569 to ia64_override_options.
12570 * config/iq2000/iq2000-protos.h (override_options): Remove.
12571 * config/iq2000/iq2000.c (TARGET_OPTION_OVERRIDE): Define.
12572 (override_options): Rename to iq2000_option_override. Make static.
12573 * config/iq2000/iq2000.h (OVERRIDE_OPTIONS): Remove.
12574 * config/lm32/lm32-protos.h (lm32_override_options): Remove.
12575 * config/lm32/lm32.c (TARGET_OPTION_OVERRIDE): Define.
12576 (lm32_override_options): Rename to lm32_option_override. Make static.
12577 * config/lm32/lm32.h (OVERRIDE_OPTIONS): Remove.
12578 * config/m32r/m32r.c (TARGET_OPTION_OVERRIDE): Define.
12579 (m32r_option_override): New.
12580 (m32r_init): Update comment.
12581 * config/m32r/m32r.h (OVERRIDE_OPTIONS): Remove.
12582 * config/m68hc11/m68hc11-protos.h (m68hc11_override_options): Remove.
12583 * config/m68hc11/m68hc11.c (TARGET_OPTION_OVERRIDE): Define.
12584 (m68hc11_override_options): Rename to m68hc11_option_override.
12585 Make static. Return void.
12586 * config/m68hc11/m68hc11.h (OVERRIDE_OPTIONS): Remove.
12587 * config/m68k/m68k-protos.h (override_options): Remove.
12588 * config/m68k/m68k.c (TARGET_OPTION_OVERRIDE): Define.
12589 (override_options): Rename to m68k_option_override. Make static.
12590 * config/m68k/m68k.h (OVERRIDE_OPTIONS): Remove.
12591 * config/mcore/mcore-protos.h (mcore_override_options): Remove.
12592 * config/mcore/mcore.c (TARGET_OPTION_OVERRIDE): Define.
12593 (mcore_override_options): Rename to mcore_option_override. Make
12595 * config/mcore/mcore.h (OVERRIDE_OPTIONS): Remove.
12596 * config/mep/mep-protos.h (mep_override_options): Remove.
12597 * config/mep/mep.c (TARGET_OPTION_OVERRIDE): Define.
12598 (mep_override_options): Rename to mep_option_override. Make static.
12599 * config/mep/mep.h (OVERRIDE_OPTIONS): Remove.
12600 * config/mmix/mmix-protos.h (mmix_override_options): Remove.
12601 * config/mmix/mmix.c (TARGET_OPTION_OVERRIDE): Define.
12602 (mmix_override_options): Rename to mmix_option_override. Make static.
12603 * config/mmix/mmix.h (OVERRIDE_OPTIONS): Remove.
12604 * config/mn10300/mn10300-protos.h (mn10300_override_options): Remove.
12605 * config/mn10300/mn10300.c (TARGET_OPTION_OVERRIDE): Define.
12606 (mn10300_override_options): Rename to mn10300_option_override.
12608 * config/mn10300/mn10300.h (OVERRIDE_OPTIONS): Remove.
12609 * config/moxie/moxie-protos.h (moxie_override_options): Remove.
12610 * config/moxie/moxie.c (moxie_override_options): Rename to
12611 moxie_option_override. Make static.
12612 (TARGET_OPTION_OVERRIDE): Define.
12613 * config/moxie/moxie.h (OVERRIDE_OPTIONS): Remove.
12614 * config/picochip/picochip-protos.h (picochip_override_options):
12615 Remove. Update comment referring to picochip_override_options.
12616 * config/picochip/picochip.c (TARGET_OPTION_OVERRIDE): Define.
12617 (picochip_override_options): Rename to picochip_option_override.
12618 Make static. Update comment and definition of
12619 TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE.
12620 * config/picochip/picochip.h (OVERRIDE_OPTIONS): Remove.
12621 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
12622 * config/rs6000/aix51.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
12623 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
12624 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
12625 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
12626 * config/rs6000/linux64.h (OPTION_TARGET_CPU_DEFAULT): Define
12627 instead of OVERRIDE_OPTIONS.
12628 * config/rs6000/rs6000-modes.def: Update comment referring to
12629 rs6000_override_options.
12630 * config/rs6000/rs6000-protos.h (rs6000_override_options): Remove.
12631 * config/rs6000/rs6000.c (TARGET_OPTION_OVERRIDE): Define.
12632 (rs6000_override_options): Rename to
12633 rs6000_option_override_internal. Make static. Commented
12634 referring to rs6000_override_options and OVERRIDE_OPTIONS updated.
12635 (rs6000_option_override): New.
12636 * config/rs6000/rs6000.h (OPTION_TARGET_CPU_DEFAULT): Define
12637 instead of OVERRIDE_OPTIONS.
12638 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
12639 * config/s390/s390-protos.h (override_options): Remove.
12640 * config/s390/s390.c (override_options): Rename to
12641 s390_option_override. Make static.
12642 (TARGET_OPTION_OVERRIDE): Define.
12643 * config/s390/s390.h (OVERRIDE_OPTIONS): Remove.
12644 * config/score/score-protos.h (score_override_options): Remove.
12645 * config/score/score.c (TARGET_OPTION_OVERRIDE): Define.
12646 (score_override_options): Rename to score_option_override. Make
12648 * config/score/score.h (OVERRIDE_OPTIONS): Remove.
12649 Update comment referring to override_options.
12650 * config/score/score3.c (score3_override_options): Rename to
12651 score3_option_override.
12652 * config/score/score3.h (score3_override_options): Rename to
12653 score3_option_override.
12654 * config/score/score7.c (score7_override_options): Rename to
12655 score7_option_override.
12656 * config/score/score7.h (score7_override_options): Rename to
12657 score7_option_override.
12658 * config/sh/sh.c: Update comments referring to OVERRIDE_OPTIONS.
12659 * config/sparc/sparc.c (TARGET_OPTION_OVERRIDE): Define.
12660 (sparc_override_options): Rename to sparc_option_override. Make
12661 static. Call SUBTARGET_OVERRIDE_OPTIONS.
12662 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Remove.
12663 * config/sparc/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
12664 instead of OVERRIDE_OPTIONS.
12665 * config/spu/spu-protos.h (spu_override_options): Remove.
12666 * config/spu/spu.c (TARGET_OPTION_OVERRIDE): Define.
12667 (spu_override_options): Rename to spu_option_override. Make
12669 * config/spu/spu.h (OVERRIDE_OPTIONS): Remove.
12670 * config/vax/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead of
12672 * config/vax/vax-protos.h (override_options): Remove.
12673 * config/vax/vax.c (TARGET_OPTION_OVERRIDE): Define.
12674 (override_options): Rename to vax_option_override. Make static.
12675 Call SUBTARGET_OVERRIDE_OPTIONS.
12676 * config/vax/vax.h (OVERRIDE_OPTIONS): Remove.
12677 * config/vxworks.c: Update comment referring to OVERRIDE_OPTIONS.
12678 * config/vxworks.h: Update comment referring to OVERRIDE_OPTIONS.
12679 * config/xtensa/xtensa-protos.h (override_options): Remove.
12680 * config/xtensa/xtensa.c (TARGET_OPTION_OVERRIDE): Define.
12681 (override_options): Rename to xtensa_option_override. Make static.
12682 * config/xtensa/xtensa.h (OVERRIDE_OPTIONS): Remove.
12684 2010-09-16 Richard Guenther <rguenther@suse.de>
12686 PR tree-optimization/45623
12687 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Adjust.
12688 (get_constraint_for_component_ref): If computing a constraint
12689 for the rhs handle type punning through unions.
12690 (get_constraint_for_address_of): Adjust.
12691 (get_constraint_for_1): Likewise.
12692 (get_constraint_for): Likewise.
12693 (get_constraint_for_rhs): New function.
12694 (do_structure_copy): Adjust.
12695 (make_constraint_to): Likewise.
12696 (handle_const_call): Likewise.
12697 (find_func_aliases): Likewise.
12698 (process_ipa_clobber): Likewise.
12699 (create_variable_info_for): Likewise.
12701 2010-09-16 Ira Rosen <irar@il.ibm.com>
12703 * tree-vectorizer.c: Fix documentation.
12704 * tree-vectorizer.h (vinfo_for_stmt): Add documentation.
12705 (set_vinfo_for_stmt, get_earlier_stmt, get_later_stmt,
12706 is_pattern_stmt_p, is_loop_header_bb_p,
12707 stmt_vinfo_set_inside_of_loop_cost,
12708 stmt_vinfo_set_outside_of_loop_cost, vect_pow2, aligned_access_p,
12709 known_alignment_for_access_p): Likewise.
12710 * tree-vect-loop.c: Fix documentation.
12711 (vect_get_cost): Start function name from new line.
12712 * tree-vect-data-refs.c: Fix documentation.
12713 * tree-vect_stmts.c: Likewise.
12714 (vect_create_vectorized_promotion_stmts): Always free vec_tmp.
12715 (vectorizable_store): Free vec_oprnds if allocated.
12716 (vectorizable_condition): Initialize several variables to avoid
12718 * tree-vect-slp.c: Fix documentation.
12720 2010-09-16 Richard Guenther <rguenther@suse.de>
12722 * tree.c (tree_node_structure_for_code): TRANSLATION_UNIT_DECL
12723 is TS_TRANSLATION_UNIT_DECL.
12724 (initialize_tree_contains_struct): Adjust.
12725 (all_translation_units): New global vector.
12726 (build_translation_unit_decl): New function.
12727 * tree.h (TRANSLATION_UNIT_LANGUAGE): New macro.
12728 (struct tree_translation_unit_decl): New.
12729 (all_translation_units): Declare.
12730 (union tree_node): Add translation_unit_decl member.
12731 (build_translation_unit_decl): Declare.
12732 * treestruct.def (TS_TRANSLATION_UNIT_DECL): New.
12733 * lto-streamer-out.c (pack_ts_translation_unit_decl_value_fields):
12735 (pack_value_fields): Call it.
12736 (lto_output_tree_ref): Handle references to TRANSLATION_UNIT_DECL.
12737 (lto_output_ts_translation_unit_decl_tree_pointers): New function.
12738 (lto_output_tree_pointers): Call it.
12739 * lto-streamer-in.c (lto_input_tree_ref): Handle references
12740 to TRANSLATION_UNIT_DECL.
12741 (unpack_ts_translation_unit_decl_value_fields): New function.
12742 (unpack_value_fields): Call it.
12743 (lto_input_ts_translation_unit_decl_tree_pointers): New function.
12744 (lto_input_tree_pointers): Call it.
12745 * lto-streamer.c (check_handled_ts_structures): Adjust.
12746 * lto-streamer.h (enum LTO_tags): Add LTO_translation_unit_decl_ref.
12747 * c-decl.c (all_translation_units): Remove.
12748 (pop_scope): Use build_translation_unit_decl.
12749 (collect_all_refs): Adjust.
12750 (for_each_global_decl): Likewise.
12751 (c_write_global_declarations): Likewise.
12753 2010-09-16 Jakub Jelinek <jakub@redhat.com>
12756 * fold-const.c (fold_checksum_tree): Change slot from const void **
12757 to void **, use CONST_CAST_TREE to store into *slot.
12759 2010-09-16 Uros Bizjak <ubizjak@gmail.com>
12761 * config/i386/i386.md: Remove unneeded empty conditions and
12762 preparation statements from expanders.
12763 * config/i386/mmx.md: Ditto.
12764 * config/i386/sse.md: Ditto.
12766 2010-09-16 Uros Bizjak <ubizjak@gmail.com>
12768 * config/i386/i386.h (PUSH_ROUNDING): Redefine using UNITS_PER_WORD.
12770 2010-09-15 Eric Botcazou <ebotcazou@adacore.com>
12772 PR rtl-optimization/45593
12773 * reorg.c (relax_delay_slots): Use emit_copy_of_insn_after to re-emit
12774 insns that were in delay slots as stand-alone insns.
12776 2010-09-15 Ian Lance Taylor <iant@google.com>
12778 * incpath.c (remove_duplicates): If name is not a directory, issue
12779 a warning rather than an error.
12781 2010-09-15 Martin Jambor <mjambor@suse.cz>
12783 PR middle-end/45644
12784 * tree-sra.c (create_access): Check for bit-fields directly.
12786 2010-09-15 Jakub Jelinek <jakub@redhat.com>
12788 PR tree-optimization/45633
12789 * tree-cfg.c (verify_gimple_assign_binary): Allow
12790 MINUS_EXPR with lhs and rhs1 pointer vector and
12791 rhs2 sizetype vector.
12792 * expr.c (expand_expr_real_2) <case PLUS_EXPR>: For pointer
12793 or vector pointer use TER to optimize pointer subtraction.
12795 2010-09-15 Jie Zhang <jie@codesourcery.com>
12797 * config/arm/vfp.md (cmpsf_trap_vfp): Change type from
12800 2010-09-15 Ian Lance Taylor <iant@google.com>
12802 * config/i386/i386.md (truncxf<mode>2): Fix indentation.
12804 2010-09-15 Ian Lance Taylor <iant@google.com>
12806 * function.c (get_arg_pointer_save_area): Set
12807 arg_pointer_save_area_init to true.
12809 2010-09-15 Martin Jambor <mjambor@suse.cz>
12811 * tree-sra.c (generate_subtree_copies): Updated comment.
12812 (handle_unscalarized_data_in_subtree): Removed parameter lhs which is
12813 obtained from the statement iterator instead.
12814 (load_assign_lhs_subreplacements): Removed parameters lhs and
12815 right_offset, which is obtained from top_racc instead. Parameter lacc
12816 is now expected to be the root of the processed tree rather than root's
12817 first child. Updated all callers.
12819 2010-09-15 Joseph Myers <joseph@codesourcery.com>
12821 * config/pdp11/pdp11.c (register_move_cost): Rename to
12822 pdp11_register_move_cost.
12823 * config/pdp11/pdp11-protos.h (register_move_cost): Rename to
12824 pdp11_register_move_cost.
12825 * config/pdp11/pdp11.h (REGISTER_MOVE_COST): Call
12826 pdp11_register_move_cost instead of register_move_cost.
12828 2010-09-15 Tejas Belagod <tejas.belagod@arm.com>
12830 * config/arm/neon.md (vec_pack_trunc_<mode>): Instruction
12831 pattern for vmovn. Expansion in case of non
12832 -mvectorize-with-neon-quad.
12833 (neon_vec_pack_trunc_<mode>): Instruction pattern for vmovn for
12834 non- -mvectorize-with-neon-quad case.
12835 (move_lo_quad_<mode>): New expansion to vmov into low part.
12836 (move_hi_quad_<mode>): New expansion to vmov into high part.
12837 (move_lo_quad_v4si): Refactor to move_lo_quad_<mode> expansion.
12838 (move_lo_quad_v4sf): Likewise.
12839 (move_lo_quad_v8hi): Likewise.
12840 (neon_move_lo_quad_<mode>): Instruction pattern for vmov into
12842 (neon_move_hi_quad_<mode>): Instruction pattern for vmov into
12844 * config/arm/iterators.md (ANY128): New mode iterator.
12845 (V_narrow_pack): New mode attribute.
12846 (V_HALF): Add attribute.
12847 (V_DOUBLE): Add attribute.
12848 (V_mode_nunits): Add attribute.
12850 2010-09-15 Eric Botcazou <ebotcazou@adacore.com>
12852 * config/alpha/alpha.c (alpha_expand_prologue): If stack checking
12853 is enabled, probe up to frame_size + STACK_CHECK_PROTECT bytes.
12855 2010-09-15 Olivier Hainque <hainque@adacore.com>
12856 Jose Ruiz <ruiz@adacore.com>
12858 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Define.
12859 * config/alpha/osf5-unwind.h: New file.
12861 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
12864 * config/mips/mips.c (mips_units_per_simd_word): Correct return type.
12865 * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
12866 * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
12868 2010-09-15 Laurynas Biveinis <laurynas.biveinis@gmail.com>
12870 * c-lang.h (struct lang_type): Add variable_size GTY option.
12872 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
12875 * config/rs6000/rs6000.c (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
12877 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
12879 * config/i386/i386.c (ix86_lea_for_add_ok): Return false if
12880 result isn't used in memory address.
12882 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
12884 * defaults.h (UNITS_PER_SIMD_WORD): Removed.
12885 * config/arm/arm.h (UNITS_PER_SIMD_WORD): Likewise.
12886 * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
12887 * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
12888 * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
12889 * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
12891 * target.def: Add units_per_simd_word to vectorize.
12893 * targhooks.c (default_units_per_simd_word): New.
12894 * targhooks.h (default_units_per_simd_word): Likewise.
12895 * config/arm/arm.c (arm_units_per_simd_word): Likewise.
12896 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
12897 * config/mips/mips.c (mips_units_per_simd_word): Likewise.
12898 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
12899 * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
12900 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
12901 * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
12902 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
12904 * tree-vect-loop.c: Replace UNITS_PER_SIMD_WORD with
12905 TARGET_VECTORIZE_UNITS_PER_SIMD_WORD in comments.
12907 * tree-vect-stmts.c: Don't include "tm_p.h".
12908 (get_vectype_for_scalar_type): Replace UNITS_PER_SIMD_WORD
12909 with targetm.vectorize.units_per_simd_word.
12911 * system.h (UNITS_PER_SIMD_WORD): Poisoned.
12913 * config/i386/i386-protos.h (ix86_units_per_simd_word): Removed.
12915 * config/i386/i386.c (ix86_units_per_simd_word): Make it static.
12916 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
12918 * doc/tm.texi.in: Remove UNITS_PER_SIMD_WORD. Add
12919 TARGET_VECTORIZE_UNITS_PER_SIMD_WORD.
12921 * doc/tm.texi: Regenerated.
12923 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
12925 * tree-vect-stmts.c: Include "tm_p.h".
12927 * config/i386/i386-protos.h (ix86_units_per_simd_word): Moved
12930 2010-09-14 Martin Jambor <mjambor@suse.cz>
12932 * tree-sra.c (build_ref_for_offset): Loc made a parameter. Set the
12933 location of generated statement. Changed all callers.
12934 (build_ref_for_model): New parameter loc which used to set location of
12935 all generated expressions. Changed all callers.
12936 (generate_subtree_copies): Likewise.
12937 (init_subtree_with_zero): Likewise.
12938 (sra_modify_expr): Set locations of all generated statements and
12939 expressions to the location the original statement.
12940 (handle_unscalarized_data_in_subtree): Likewise.
12941 (load_assign_lhs_subreplacements): Likewise.
12942 (sra_modify_constructor_assign): Likewise.
12943 (sra_modify_assign): Likewise.
12945 2010-09-14 Eric Botcazou <ebotcazou@adacore.com>
12950 * doc/install.texi (sparc*-*-*): New section.
12951 (sparc-sun-solaris2*): Mention MPC alongside GMP and MPFR.
12953 2010-09-14 Jakub Jelinek <jakub@redhat.com>
12955 PR middle-end/45567
12956 * builtins.c (expand_builtin_interclass_mathfn, expand_builtin_cexpi,
12957 expand_builtin_powi): Remove subtarget argument, pass NULL_RTX instead.
12958 (expand_builtin): Adjust caller.
12959 (expand_builtin_unop): Only use subtarget if it has the right mode.
12961 2010-09-14 Tristan Gingold <gingold@adacore.com>
12963 * configure.ac (plugins): Fix typos.
12964 * configure: Regenerate.
12966 2010-09-14 Jakub Jelinek <jakub@redhat.com>
12969 * dwarf2out.c (gen_decl_die): Call gen_type_die for origin before
12970 gen_type_die for function/method return type.
12972 2010-09-14 Ira Rosen <irar@il.ibm.com>
12974 PR tree-optimization/45470
12975 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
12976 can throw an exception.
12977 * tree-vect-stmts.c (vectorizable_call): Likewise.
12979 2010-09-14 DJ Delorie <dj@redhat.com>
12982 * config/mep/mep-protos.h (mep_save_register_info,
12983 mep_reinit_regs, mep_init_regs): Declare.
12985 * config/mep/mep.c: Move all target definitions to the end of the
12986 file to avoid the need for duplicate declarations.
12987 (mep_save_register_info, mep_reinit_regs, mep_init_regs): New.
12988 (mep_reorg_erepeat): Remove unused variables.
12989 (mep_expand_builtin): Likewise.
12991 * config/mep/mep-pragma.c: Don't include rtl.h.
12992 (INVALID_REGNUM): New.
12993 (mep_pragma_coprocessor_which): Call mep-specific rtl-layer bridge
12995 (mep_pragma_coprocessor_subclass): Rename "class" to "rclass".
12996 Avoid enum/integer math.
12998 2010-09-13 Joseph Myers <joseph@codesourcery.com>
13001 * config/mep/t-mep (GTM_H): Add insn-constants.h.
13002 * config/mep/mep.c (mep_conditional_register_usage): Take no
13004 * config/mep/mep-protos.h (mep_conditional_register_usage): Update
13006 * config/mep/mep-pragma.c (CONDITIONAL_REGISTER_USAGE): Update
13007 call to mep_conditional_register_usage.
13009 2010-09-13 Eric Botcazou <ebotcazou@adacore.com>
13012 * varasm.c (output_constant_def_contents): Set TREE_ASM_WRITTEN on
13015 2010-09-13 Jakub Jelinek <jakub@redhat.com>
13017 PR rtl-optimization/45617
13018 * combine.c (simplify_comparison): Optimize (X >> N) {>,>=,<,<=} C
13019 even if low N bits of X aren't known to be zero.
13021 2010-09-13 H.J. Lu <hongjiu.lu@intel.com>
13023 * config/i386/i386-protos.h (ix86_units_per_simd_word): New.
13025 * config/i386/i386.c (initial_ix86_tune_features): Add
13026 X86_TUNE_VECTORIZE_DOUBLE.
13027 (ix86_units_per_simd_word): New.
13029 * config/i386/i386.h (ix86_tune_indices): Add
13030 X86_TUNE_VECTORIZE_DOUBLE.
13031 (TARGET_VECTORIZE_DOUBLE): New.
13032 (UNITS_PER_SIMD_WORD): Defined with ix86_units_per_simd_word.
13034 2010-09-13 Pat Haugen <pthaugen@us.ibm.com>
13036 * tree-ssa-ter.c (temp_expr_table_d): Add call_cnt field.
13037 (new_temp_expr_table): Allocate call_cnt vector.
13038 (free_temp_expr_table): Free it.
13039 (process_replaceable): Add call_cnt parm and set in vector.
13040 (find_replaceable_in_bb): Skip replacement if def/use span a call.
13041 (debug_ter): Dump call_cnt value, remove stderr uses.
13043 2010-09-13 Jan Hubicka <jh@suse.cz>
13045 * tree.c (build_zero_cst): New.
13046 * tree.h (build_zero_cst): Declare.
13047 * tree-ssa-ccp.c (get_constant_value): Accept general operands.
13048 (get_base_constructor): Break out from ...
13049 (fold_const_aggregate_ref): Here; handle empty constructors.
13051 2010-09-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
13053 * config/arm/arm.md: (define_attr "conds"): Update comment.
13054 * config/arm/sync.md (arm_sync_compare_and_swapsi): Change
13055 conds attribute to clob.
13056 (arm_sync_compare_and_swapsi): Likewise.
13057 (arm_sync_compare_and_swap<mode>): Likewise.
13058 (arm_sync_lock_test_and_setsi): Likewise.
13059 (arm_sync_lock_test_and_set<mode>): Likewise.
13060 (arm_sync_new_<sync_optab>si): Likewise.
13061 (arm_sync_new_nandsi): Likewise.
13062 (arm_sync_new_<sync_optab><mode>): Likewise.
13063 (arm_sync_new_nand<mode>): Likewise.
13064 (arm_sync_old_<sync_optab>si): Likewise.
13065 (arm_sync_old_nandsi): Likewise.
13066 (arm_sync_old_<sync_optab><mode>): Likewise.
13067 (arm_sync_old_nand<mode>): Likewise.
13069 2010-09-13 Olivier Hainque <hainque@adacore.com>
13071 * fwprop.c (forward_propagate_and_simplify): Only attach a
13072 REG_EQUAL note to an insn if the destination is a register.
13073 * gcse.c (try_replace_reg): Likewise.
13075 2010-09-13 Richard Guenther <rguenther@suse.de>
13077 PR tree-optimization/45611
13078 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Fix typo.
13079 (copy_ref_info): Likewise.
13081 2010-09-13 Alexandre Oliva <aoliva@redhat.com>
13086 * tree-pretty-print.c (dump_generic_node): Disregard top-level
13087 types of MEM_REF pointer types to the same type.
13089 2010-09-13 Hans-Peter Nilsson <hp@axis.com>
13091 PR rtl-optimization/41087
13092 * ifcvt.c (noce_get_condition): Don't allow conditions with
13095 2010-09-12 Anatoly Sokolov <aesok@post.ru>
13097 * config/frv/frv.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
13098 * config/frv/frv-protos.h (frv_register_move_cost): Remove.
13099 * config/frv/frv.c (frv_register_move_cost): Make static. Change
13100 arguments type to reg_class_t. Add mode argument.
13101 (frv_memory_move_cost): New.
13102 (TARGET_REGISTER_MOVE_COSTS, TARGET_MEMORY_MOVE_COSTS): Define.
13104 2010-09-12 Bernd Schmidt <bernds@codesourcery.com>
13106 * config/arm/arm.md (arm_ashldi3_1bit, arm_ashrdi3_1bit,
13107 arm_lshrdi3_1bit): Put earlyclobber on the right alternative.
13109 2010-09-10 Jan Hubicka <jh@suse.cz>
13111 * tree-ssa-ccp.c (fold_const_aggregate_ref): Do not check STATIC flag.
13113 2010-09-10 Richard Guenther <rguenther@suse.de>
13115 * tree.c (make_vector_type): Do not set TYPE_DEBUG_REPRESENTATION_TYPE.
13116 * tree.h (TYPE_DEBUG_REPRESENTATION_TYPE): Remove.
13117 * lto-streamer-out.c (lto_output_ts_type_tree_pointers): Do
13118 not stream TYPE_DEBUG_REPRESENTATION_TYPE.
13119 * lto-streamer-in.c (lto_input_ts_type_tree_pointers): Likewise.
13121 2010-09-10 Richard Guenther <rguenther@suse.de>
13123 * dwarf2out.c (gen_array_type_die): Output DW_TAG_subrange_type
13124 for VECTOR_TYPEs using TYPE_VECTOR_SUBPARTS.
13125 * dbxout.c (dbxout_type): Manually deal with VECTOR_TYPE
13126 using TYPE_VECTOR_SUBPARTS, not TYPE_DEBUG_REPRESENTATION_TYPE.
13128 2010-09-10 H.J. Lu <hongjiu.lu@intel.com>
13130 PR middle-end/45634
13131 * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result
13132 of string folding is of integral type.
13134 2010-09-10 Ryan Mansfield <rmansfield@qnx.com>
13136 * doc/invoke.texi (-x): Fix typo.
13138 2010-09-10 Richard Guenther <rguenther@suse.de>
13141 * tree.c (free_lang_data_in_decl): Do not clear DECL_DEBUG_EXPR.
13142 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
13143 Output DECL_DEBUG_EXPR.
13144 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
13145 Input DECL_DEBUG_EXPR.
13147 2010-09-10 Richard Guenther <rguenther@suse.de>
13149 * tree.c (type_hash_eq): For ARRAY_TYPEs also compare TYPE_SIZE.
13150 (build_index_type): Implement in terms of build_range_type.
13151 (build_range_type): Do not allow NULL_TREE type, improve
13152 hashing to cover more cases. Set TYPE_STRUCTURAL_EQUALITY_P
13154 * c-decl.c (grokdeclarator): When modifying TYPE_SIZE manually
13155 create a distinct copy of the type.
13157 2010-09-10 Kai Tietz <kai.tietz@onevision.com>
13159 * configure: Regenerated.
13160 * config.gcc: Add for x86_64 and i?86 mingw t-dfprule.
13162 2010-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13164 * config/arm/neon-schedgen.ml (allCores): Add support for Cortex-A9.
13165 * config/arm/cortex-a9-neon.md: New and partially generated.
13166 * config/arm/cortex-a9.md (cortex_a9_dp): Adjust for Neon.
13168 2010-09-10 Richard Guenther <rguenther@suse.de>
13170 * tree.h (build_index_2_type): Remove.
13171 * tree.c (build_index_2_type): Remove.
13173 2010-09-10 Jakub Jelinek <jakub@redhat.com>
13176 * dwarf2out.c (get_ref_die_offset_label): Use %ld instead of
13177 HOST_WIDE_INT_PRINT_DEC to print ref->die_offset.
13178 (implicit_ptr_descriptor): Return NULL if dwarf_strict.
13180 2010-09-10 Martin Jambor <mjambor@suse.cz>
13182 PR tree-optimization/44972
13183 * tree-sra.c: Include toplev.h.
13184 (build_ref_for_offset): Entirely reimplemented.
13185 (build_ref_for_model): New function.
13186 (build_user_friendly_ref_for_offset): New function.
13187 (analyze_access_subtree): Removed build_ref_for_offset check.
13188 (propagate_subaccesses_across_link): Likewise.
13189 (create_artificial_child_access): Use
13190 build_user_friendly_ref_for_offset.
13191 (propagate_subaccesses_across_link): Likewise.
13192 (ref_expr_for_all_replacements_p): Removed.
13193 (generate_subtree_copies): Updated comment. Use build_ref_for_model.
13194 (sra_modify_expr): Use build_ref_for_model.
13195 (load_assign_lhs_subreplacements): Likewise.
13196 (sra_modify_assign): Removed ref_expr_for_all_replacements_p checks,
13197 checks for return values of build_ref_for_offset.
13198 * ipa-cp.c (ipcp_lattice_from_jfunc): No need to check return value of
13199 build_ref_for_offset.
13200 * ipa-prop.h: Include gimple.h
13201 * ipa-prop.c (ipa_compute_jump_functions): Update to look for MEM_REFs.
13202 (ipa_analyze_indirect_call_uses): Update comment.
13203 * Makefile.in (tree-sra.o): Add $(GIMPLE_H) to dependencies.
13204 (IPA_PROP_H): Likewise.
13206 2010-09-10 Martin Jambor <mjambor@suse.cz>
13208 PR tree-optimization/44972
13209 * ipa-prop.c (ipa_modify_call_arguments): Build MEM_REF instead of
13210 calling build_ref_for_offset.
13212 2010-09-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13214 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle Cortex-a15.
13215 * config/arm/arm-cores.def (cortex-a15): New core. Treat it as a v7-a.
13216 * config/arm/arm-tune.md: Regenerate.
13217 * doc/invoke.texi (ARM Options): Document it.
13219 2010-09-09 Reza Yazdani <reza.yazdani@amd.com>
13221 * config/i386/i386.c: Include sched-int.h.
13222 (TARGET_SCHED_DISPATCH): Defined.
13223 (TARGET_SCHED_DISPATCH_DO): Defined.
13224 (DISPATCH_WINDOW_SIZE): Defined.
13225 (MAX_DISPATCH_WINDOWS): Defined.
13226 (MAX_INSN): Defined.
13227 (MAX_IMM): Defined.
13228 (MAX_IMM_SIZE): Defined.
13229 (MAX_IMM_32): Defined.
13230 (MAX_IMM_64): Defined.
13231 (MAX_LOAD): Defined.
13232 (MAX_STORE): Defined.
13234 (dispatch_group): New.
13235 (num_allowable_groups): New.
13237 (sched_insn_info_s): New.
13238 (dispatch_windows_s): New.
13240 (dispatch_window_list): New.
13241 (dispatch_window_list1): New.
13242 (get_mem_group): New.
13244 (dispatch_violation): New.
13246 (is_prefetch): New.
13247 (init_window): New.
13248 (allocate_window): New.
13249 (init_dispatch_sched): New.
13250 (is_end_basic_block): New.
13251 (process_end_window): New.
13252 (allocate_next_window): New.
13253 (find_constant_1): New.
13254 (find_constant): New.
13255 (get_num_immediates): New.
13256 (has_immediate): New.
13257 (get_insn_path): New.
13258 (get_insn_group): New.
13259 (count_num_restricted): New.
13260 (fits_dispatch_window): New.
13261 (add_insn_window): New.
13262 (add_to_dispatch_window): New.
13263 (debug_dispatch_window_file): New.
13264 (debug_dispatch_window): New.
13265 (debug_insn_dispatch_info_file): New.
13266 (debug_ready_dispatch): New.
13267 (do_dispatch): New.
13268 (has_dispatch): New.
13269 * config/i386/i386.h (debug_ready_dispatch): Declared.
13270 (debug_dispatch_window): Declared.
13271 * config/i386/i386.opt (mdispatch-scheduler): New flag.
13272 * doc/tm.texi.in (TARGET_SCHED_DISPATCH): New.
13273 (TARGET_SCHED_DISPATCH_DO): New.
13274 * doc/tm.texi: Regererated.
13275 * haifa-sched.c (choose_ready): Call targetm.sched.dispatch and
13276 ready_remove_first_dispatch
13277 (schedule_block): Call targetm.sched.dispatch and
13278 targetm.sched.dispatch_do.
13279 (sched_init): Call targetm.sched.dispatch and
13280 targetm.sched.dispatch_do.
13281 (ready_remove_first_dispatch): New.
13282 (number_in_ready): New.
13283 (get_ready_element): New.
13284 * hooks.c (hook_bool_rtx_int_false): New.
13285 (hook_void_rtx_int): New.
13286 * hooks.h (hook_bool_rtx_int_false): Declared.
13287 (hook_void_rtx_int): Declared.
13288 * sched-int.h (IS_DISPATCH_ON): Defined.
13290 (DISPATCH_VIOLATION): Defined.
13291 (FITS_DISPATCH_WINDOW): Defined.
13292 (DISPATCH_INIT): Defined.
13293 (ADD_TO_DISPATCH_WINDOW): Defined.
13294 (get_ready_element): Declared.
13295 (number_in_ready): Declared.
13296 * target.def (dispatch): Defined.
13297 (dispatch_do): Defined.
13299 2010-09-09 Vladimir Makarov <vmakarov@redhat.com>
13301 PR middle-end/45312
13302 * reload1.c (merge_assigned_reloads): Remove.
13303 (reload_as_needed): Don't call it.
13305 2010-09-09 Anatoly Sokolov <aesok@post.ru>
13307 * config/m32r/m32r.c (m32r_mode_dependent_address_p): New functions.
13308 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13309 * config/m32r/m32r.h: (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13311 2010-09-09 Matthias Klose <doko@ubuntu.com>
13314 * configure.ac (--enable-plugin): Enhance for cross builds.
13315 * configure: Regenerate.
13317 2010-09-09 Jan Hubicka <jh@suse.cz>
13319 PR tree-optimization/45598
13320 * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result of
13321 string folding is of integral type.
13323 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
13325 * configure.ac (gnu_indirect_function): New test.
13326 * configure: Rebuilt.
13327 * config.in (HAVE_GAS_INDIRECT_FUNCTION): New.
13328 * defaults.h (IFUNC_ASM_TYPE): Provide default.
13330 * doc/extend.texi (Function Attributes): Document ifunc.
13331 * varasm.c (do_assemble_alias): Deal with ifuncs too.
13333 2010-09-09 Hariharan Sandanagobalane <hariharan@picochip.com>
13335 * config/picochip/picochip.c (picochip_reorg): Check for note_p for
13336 epilogue instruction move.
13338 2010-09-09 Jan Hubicka <jh@suse.cz>
13340 * collect2.c (maybe_run_lto_and_relink): Rewrite code producing ld
13341 command line to allow more partitions than input files.
13343 2010-09-09 Vladimir Makarov <vmakarov@redhat.com>
13345 PR middle-end/44554
13346 * ira.c (ira): Switch off sharing spill slots if setjmp is called.
13348 2010-09-09 Vladimir Makarov <vmakarov@redhat.com>
13350 PR middle-end/40386
13351 * ira.c (pseudo_for_reload_consideration_p): Don't use
13352 flag_ira_share_spill_slots.
13354 2010-09-09 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13356 * config/s390/s390.c (legitimate_reload_constant_p): Accept floating-
13357 point zero operands that fit into a single GPR.
13358 (s390_preferred_reload_class): Ensure we only return general-purpose
13360 * config/s390/s390.md ("*mov<mode>_64dfp"): Use lghi to load
13361 floating-point zero operands into GPRs.
13362 ("*mov<mode>_64"): Likewise.
13363 ("mov<mode>"): Likewise using lhi.
13365 2010-09-09 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13367 * config/s390/s390.c (s390_symref_operand_p): Return false for
13368 literal pool references.
13369 (s390_check_qrst_address): Update caller.
13371 2010-09-09 Uros Bizjak <ubizjak@gmail.com>
13373 * config/i386/predicates.md (ext_register_operand): Check that
13374 SUBREG_REG is really a register before looking for REGNO.
13375 (reg_not_xmm0_operand): Handle SUBREGs correctly.
13376 (nonimm_not_xmm0_operand): Call reg_not_xmm0_operand.
13378 2010-09-09 Jakub Jelinek <jakub@redhat.com>
13380 * rtl.def (DEBUG_IMPLICIT_PTR): New rtl code.
13381 * rtl.h (DEBUG_IMPLICIT_PTR_DECL): Define.
13382 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle DEBUG_IMPLICIT_PTR.
13383 * print-rtl.c (print_rtx): Likewise.
13384 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
13385 * cfgexpand.c (expand_debug_expr): Generate DEBUG_IMPLICIT_PTR
13386 for ADDR_EXPR with non-addressable object.
13387 * dwarf2out.c (enum dw_val_class): Add dw_val_class_decl_ref.
13388 (struct dw_val_struct): Add v.val_decl_ref.
13389 (dwarf_stack_op_name, output_loc_operands, output_loc_operands_raw):
13390 Handle DW_OP_GNU_implicit_pointer.
13391 (size_of_loc_descr): Likewise. Fix up DW_OP_call_ref size.
13392 (get_ref_die_offset_label): New function.
13393 (implicit_ptr_descriptor): New function.
13394 (mem_loc_descriptor): Handle DEBUG_IMPLICIT_PTR.
13395 (loc_descriptor): Likewise.
13396 (gen_variable_die): Put even definitions into decl_die_table.
13397 (resolve_addr_in_expr): Resolve still unresolved
13398 DW_OP_GNU_implicit_pointer operands, if it can't be resolved
13400 (dwarf2out_finish): Call output_location_lists after outputting
13401 .debug_info and .debug_abbrev instead of before.
13403 2010-09-09 Roland McGrath <roland@redhat.com>
13405 * dwarf2out.c (DWARF_REF_SIZE): Define.
13406 (size_of_loc_descr): Use it for DW_OP_call_ref.
13408 2010-09-09 Alan Modra <amodra@gmail.com>
13410 * doc/invoke.text: Reinstate mcmodel=medium.
13411 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
13412 CMODEL_MEDIUM as default.
13413 * config/rs6000/rs6000.h (enum rs6000_cmodel): Add CMODEL_MEDIUM.
13414 * config/rs6000/rs6000.c (rs6000_handle_option): Add mcmodel=medium.
13415 (toc_relative_ok, offsettable_ok_by_alignment): New functions.
13416 (rs6000_emit_move): Reinstate mcmodel=medium optimization.
13418 2010-09-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13421 * config/pa/pa.md (nonlocal_goto): Restore hard frame pointer using
13422 hard_frame_pointer_rtx instead of virtual_stack_vars_rtx.
13423 (builtin_longjmp): Likewise.
13424 (allocate_stack): Use hard_frame_pointer_rtx instead of
13426 * config/pa/pa-protos.h (pa_initial_elimination_offset): Declare.
13427 * config/pa/pa.c (pa_internal_arg_pointer): Declare.
13428 (pa_can_eliminate): Likewise.
13429 (TARGET_INTERNAL_ARG_POINTER): Define.
13430 (TARGET_CAN_ELIMINATE): Define.
13431 (hppa_expand_prologue): Use hard frame pointer instead of soft frame
13433 (hppa_expand_epilogue, pa_eh_return_handler_rtx): Likewise.
13434 (pa_internal_arg_pointer, pa_can_eliminate,
13435 pa_initial_elimination_offset): New.
13436 * config/pa/pa.h (FRAME_POINTER_REGNUM): Set to new general register.
13437 (HARD_FRAME_POINTER_REGNUM): Set to register three.
13438 (INITIAL_FRAME_POINTER_OFFSET): Delete.
13439 (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET, DWARF_FRAME_REGISTERS):
13441 (DWARF_ALT_FRAME_RETURN_COLUMN, REGNO_OK_FOR_INDEX_P,
13442 REGNO_OK_FOR_BASE_P): Update to include soft frame pointer.
13443 * config/pa/pa32-regs.h (FIRST_PSEUDO_REGISTER): Increase by one.
13444 (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER,
13445 REG_CLASS_CONTENTS, REGNO_REG_CLASS, REGISTER_NAMES): Update to include
13446 new soft frame pointer.
13447 * config/pa/pa64-regs.h: Likewise.
13449 2010-09-08 Uros Bizjak <ubizjak@gmail.com>
13451 * config/i386/i386.h (EH_RETURN_DATA_REGNO) Use DX_REG instead of
13452 numerical constant.
13453 (EH_RETURN_STACKADJ_RTX): Use CX_REG insted of numerical constant.
13455 2010-09-08 Alexandre Oliva <aoliva@redhat.com>
13458 * cfglayout.c (fixup_reorder_chain): Skip debug insns.
13460 2010-09-08 Alexandre Oliva <aoliva@redhat.com>
13464 * tree-pretty-print.c (dump_generic_node): Disregard top-level
13465 qualifiers in otherwise equal MEM_REF pointer types.
13466 * fold-const.c (operand_equal_p): Compare pointer type of MEM_REFs.
13467 * tree.c (iterative_hash_expr): Hash the pointer type of MEM_REFs.
13469 2010-09-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13472 * config/arm/arm.md (bswapsi2): Handle condition correctly
13473 for armv6 and optimize_size.
13475 2010-09-08 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
13478 * doc/cppopts.texi (-isysroot): Document Darwin behaviour.
13480 2010-09-08 Uros Bizjak <ubizjak@gmail.com>
13482 * config/i386/i386-protos.h (ix86_can_use_return_insn_p,
13483 symbolic_reference_mentioned_p, ix86_expand_movmem, ix86_expand_setmem,
13484 ix86_expand_strlen, legitimate_pic_address_disp_p,
13485 ix86_binary_operator_ok, ix86_unary_operator_ok, ix86_match_ccmode,
13486 ix86_expand_int_movcc, ix86_expand_fp_movcc, ix86_expand_int_addcc,
13487 ix86_check_movabs, ix86_secondary_memory_needed): Change function
13489 * config/i386/i386.c (return_in_memory_32, return_in_memory_64,
13490 return_in_memory_ms_64, ix86_check_movabs,
13491 symbolic_reference_mentioned_p, ix86_can_use_return_insn_p,
13492 legitimate_pic_address_disp_p, ix86_binary_operator_ok,
13493 ix86_unary_operator_ok, ix86_match_ccmode, ix86_expand_int_movcc,
13494 ix86_expand_fp_movcc, ix86_expand_int_addcc, ix86_expand_movmem,
13495 ix86_expand_setmem, ix86_expand_strlen, inline_secondary_memory_needed,
13496 ix86_secondary_memory_needed): Change to bool. Return
13497 "true" and "false" values.
13498 * config/i386/i386.md: Return "true" and "false" values.
13500 2010-09-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13502 * doc/sourcebuild.texi (Effective-Target Keywords): Document
13503 run_expensive_tests.
13505 2010-09-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13507 * toplev.c (output_stack_usage): Use lbasename instead of basename.
13509 2010-09-08 Martin Jambor <mjambor@suse.cz>
13512 * doc/invoke.texi: Add -fipa-cp-clone to list of switches turned on
13515 2010-09-08 Richard Guenther <rguenther@suse.de>
13517 * gimple.c (gimple_types, type_hash_cache): Move to GC memory.
13519 (iterative_hash_gimple_type): Likewise.
13520 (gimple_type_hash): Likewise.
13521 (gimple_register_type): Likewise.
13522 (print_gimple_types_stats): Likewise.
13523 (free_gimple_type_tables): Likewise.
13525 2010-09-08 Michael Matz <matz@suse.de>
13527 PR tree-optimization/43430
13528 * tree-vect-stmts.c (vectorizable_condition): Support multiple
13529 copies for conditional statements if it's not part of a reduction.
13531 2010-09-08 Michael Matz <matz@suse.de>
13533 PR tree-optimization/33244
13534 * tree-ssa-sink.c (statement_sink_location): Don't sink into
13535 empty loop latches.
13537 2010-09-08 Richard Guenther <rguenther@suse.de>
13539 PR tree-optimization/45578
13540 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr):
13541 Be more careful when transfering alignment information to
13542 the new induction variable.
13543 (copy_ref_info): Likewise.
13545 2010-09-08 Richard Guenther <rguenther@suse.de>
13547 * tree.h (TYPE_ORIG_SIZE_TYPE): Remove.
13548 * c-typeck.c (comptypes_internal): Remove TYPE_ORIG_SIZE_TYPE checks.
13550 2010-09-08 Arnaud Charlet <charlet@adacore.com>
13552 * c-tree.h, c-decl.c (build_enumerator): Add location parameter.
13553 * c-parser.c (c_parser_enum_specifier): Adjust call to build_enumerator.
13555 2010-09-08 Kenneth Zadeck <zadeck@naturalbridge.com>
13558 * doc/md.texi: Fixed modes on several standard pattern names.
13560 2010-09-08 Mingjie Xing <mingjie.xing@gmail.com>
13562 * config/mips/loongson.md (loongson_psll<V_suffix>): Rename to...
13563 (ashl<mode>3): ...this.
13564 (loongson_psra<V_suffix>): Rename to...
13565 (ashr<mode>3): ...this.
13566 (loongson_psrl<V_suffix>): Rename to...
13567 (lshr<mode>3): ...this.
13568 * config/mips/mips.c (CODE_FOR_loongson_psllh): Define.
13569 (CODE_FOR_loongson_psllw): Define.
13570 (CODE_FOR_loongson_psrlh): Define.
13571 (CODE_FOR_loongson_psrlw): Define.
13572 (CODE_FOR_loongson_psrah): Define.
13573 (CODE_FOR_loongson_psraw): Define.
13575 2010-09-07 Richard Henderson <rth@redhat.com>
13577 * tree-vect-data-refs.c: Include tm_p.h.
13578 * Makefile.in (tree-vect-data-refs.o): Update deps.
13579 * config/i386/i386-protos.h (ix86_cfun_abi, ix86_function_type_abi):
13580 Move delarations outside #ifdef RTX_CODE.
13582 2010-09-07 Richard Henderson <rth@redhat.com>
13584 * final.c (rest_of_handle_final): Unconditionally do
13585 output_function_exception_table before assemble_end_function.
13587 2010-09-07 Jan Hubicka <jh@suse.cz>
13589 * tree-inline.c (tree_inlinable_function_p): Do not test
13590 DECL_REPLACEABLE_P.
13591 * ipa-inline.c (cgraph_default_inline_p, update_caller_keys,
13592 update_callee_keys, cgraph_decide_inlining): Test function availability.
13593 * cif-code.def (OVERWRITABLE): New code.
13595 2010-09-07 H.J. Lu <hjl.tools@gmail.com>
13596 Jack Howarth <howarth@bromo.med.uc.edu>
13601 * config/i386/darwin.h (STACK_BOUNDARY): Redefine as 128 for
13602 profiling or 64-bit MS_ABI and as BITS_PER_WORD otherwise.
13603 (PREFERRED_STACK_BOUNDARY): Replace STACK_BOUNDARY with 128 in
13606 2010-09-07 H.J. Lu <hongjiu.lu@intel.com>
13608 * unwind-dw2-fde-glibc.c: Include <elf.h> for DT_CONFIG.
13609 Include <link.h> only if USE_PT_GNU_EH_FRAME is defined.
13611 2010-09-07 H.J. Lu <hongjiu.lu@intel.com>
13613 * config.gcc: Don't append t-android for Android targets.
13615 * config/t-android: Removed.
13617 2010-09-07 Richard Henderson <rth@redhat.com>
13619 * target.def (TARGET_ASM_EMIT_EXCEPT_PERSONALITY): New hook.
13620 * doc/tm.texi.in: Add doc marker.
13621 * doc/tm.texi: Rebuild.
13622 * except.c (switch_to_exception_section): Always build.
13623 (output_one_function_exception_table): Move section switch,
13624 personality output, and label output ...
13625 (output_function_exception_table): ... here. Use the new
13628 * config/ia64/ia64.c (ia64_asm_emit_except_personality,
13629 ia64_asm_init_sections, TARGET_ASM_EMIT_EXCEPT_PERSONALITY,
13630 TARGET_ASM_INIT_SECTIONS): New.
13631 (ia64_asm_unwind_emit): Rename from process_for_unwind_directive,
13633 (TARGET_ASM_UNWIND_EMIT): Update to match.
13634 * config/ia64/ia64-protos.h (process_for_unwind_directive): Remove.
13636 * config/arm/arm.c (arm_asm_emit_except_personality): New.
13637 (arm_asm_init_sections): New.
13638 (TARGET_ASM_EMIT_EXCEPT_PERSONALITY, TARGET_ASM_INIT_SECTIONS): New.
13640 2010-09-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13642 * config/arm/arm.md: Remove unused variable.
13644 2010-09-07 Anatoly Sokolov <aesok@post.ru>
13646 * config/m32r/m32r.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
13647 * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Define.
13648 (m32r_memory_move_cost): New function.
13650 2010-09-07 H.J. Lu <hongjiu.lu@intel.com>
13652 * config.gcc: Append t-android for Android targets.
13654 * config/t-android: New.
13656 2010-09-07 Richard Henderson <rth@redhat.com>
13658 * target.def (unwind_emit_before_insn): New hook.
13659 * doc/tm.texi.in: Add @hook marker for it.
13660 * doc/tm.texi: Rebuild.
13661 * final.c (final_scan_insn): Respect unwind_emit_before_insn.
13663 2010-09-07 Martin Jambor <mjambor@suse.cz>
13666 * ipa-cp.c (ipcp_versionable_function_p): Return false if there
13667 are any type attributes.
13669 2010-09-07 Jan Hubicka <jh@suse.cz>
13671 * tree-ssa-ccp.c (fold_const_aggregate_ref): Fix handling of
13672 array_ref_low_bound in string access folding.
13674 2010-09-07 Uros Bizjak <ubizjak@gmail.com>
13677 * config/i386/i386.c (ix86_expand_epilogue): Mark SP as valid after
13678 eh_return fixup sequence.
13680 2010-09-07 Jan Hubicka <jh@suse.cz>
13682 * gimple-fold.c (maybe_fold_reference): Verify that operand is
13683 gimple_min_invariant.
13685 2010-09-07 Richard Guenther <rguenther@suse.de>
13687 PR middle-end/45569
13688 * tree-eh.c (operation_could_trap_helper_p): Neither COMPLEX_EXPR
13689 nor CONSTRUCTOR can trap.
13690 * tree-complex.c (update_complex_assignment): Update EH info.
13692 2010-09-07 Richard Guenther <rguenther@suse.de>
13694 PR middle-end/45569
13695 * tree-cfg.c (build_gimple_cfg): Remove redundant stmt verification.
13696 * passes.c (execute_function_todo): Do not verify anything if
13699 2010-09-07 Richard Guenther <rguenther@suse.de>
13701 * tree-pretty-print.c (dump_generic_node): Dump void types as void.
13703 2010-09-07 Bernd Schmidt <bernds@codesourcery.com>
13706 * config/arm/iterators.md (qhs_zextenddi_cond, qhs_sextenddi_cond):
13707 New define_mode_attrs.
13708 * config/arm/arm.md (zero_extendsidi2, arm_zero_extendsidi2,
13709 arm_exxtendsidi2, arm_extendsidi2): Delete patterns.
13710 (zero_extend<mode>di2, extend<mode>di2 and related splits): New.
13711 (thumb1_zero_extendhisi2): Remove code to handle LABEL_REFs.
13712 Remove pool_range attribute.
13713 (arm_zero_extendhisi2, arm_zero_extendhisi2_v6, arm_zero_extendqisi2,
13714 arm_zero_extendqisi2_v6, thumb1_zero_extendqisi2_v6): Remove
13715 pool_range and neg_pool_range attributes.
13716 * config/arm/thumb2.md (thumb2_zero_extendsidi2,
13717 thumb2_zero_extendhidi2, thumb2_zero_extendqidi2, thumb2_extendsidi2,
13718 thumb2_extendhidi2, thumb2_extendqidi2): Delete.
13720 2010-09-06 H.J. Lu <hongjiu.lu@intel.com>
13722 * config/i386/linux-unwind.h (x86_fallback_frame_state): Properly
13725 2010-09-06 Uros Bizjak <ubizjak@gmail.com>
13728 * config/i386/mmx.md (*mov<mode>_internal_rex64,
13729 *mov<mode>_internal_avx, *mov<mode>_internal,
13730 *movv2sf_internal_rex64_avx, *movv2sf_internal_rex64,
13731 *movv2sf_internal_avx, *movv2sf_internal): Split out !y-!y alternative.
13733 2010-09-06 Mark Mitchell <mark@codesourcery.com>
13735 * c-typeck.c (do_warn_double_promotion): Remove.
13736 * doc/invoke.texi (-Wdouble-promotion): Note available for C++ and
13739 2010-09-06 Anatoly Sokolov <aesok@post.ru>
13741 * config/frv/frv.h (CLASS_LIKELY_SPILLED_P): Remove.
13742 * config/frv/frv-protos.h (frv_class_likely_spilled_p): Remove.
13743 * config/frv/frv.c (frv_class_likely_spilled_p): Make static. Change
13744 argument type to reg_class_t. Change result type to bool.
13745 (TARGET_CLASS_LIKELY_SPILLED_P): Define.
13747 2010-09-06 Nicola Pero <nicola.pero@meta-innovation.com>
13750 * gthr-posix.h (__gthread_objc_thread_detach): Use
13751 _objc_thread_attribs when detaching a thread.
13752 * gthr-posix95.h (__gthread_objc_thread_detach): Same change.
13754 2010-09-06 H.J. Lu <hongjiu.lu@intel.com>
13757 * configure.ac (enable_decimal_float): Set to $default_decimal_float.
13758 * configure: Regenerated.
13760 2010-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13762 * combine.c (try_combine): Set subst_low_luid to i0.
13764 2010-09-06 Richard Guenther <rguenther@suse.de>
13766 * tree.def (MISALIGNED_INDIRECT_REF): Remove.
13767 * tree.h (INDIRECT_REF_P): Only check for INDIRECT_REF.
13768 (build_aligned_type): Declare.
13769 * tree.c (check_qualified_type): Also compare TYPE_ALIGN.
13770 (check_aligned_type): New function.
13771 (build_aligned_type): Likewise.
13772 * expr.c (expand_assignment): Handle misaligned stores via
13773 TARGET_MEM_REF and MEM_REF using movmisalign_optab.
13774 (expand_expr_real_1): Likewise.
13775 (safe_from_p): Remove MISALIGNED_INDIRECT_REF handling.
13776 * tree-vect-stmts.c (vectorizable_store): Do not build
13777 MISALIGNED_INDIRECT_REF but initialize alignment information.
13778 (vectorizable_load): Likewise.
13779 * builtins.c (get_object_alignment): Remove MISALIGNED_INDIRECT_REF
13781 * cfgexpand.c (expand_debug_expr): Likewise.
13782 * dwarf2out.c (loc_list_from_tree): Likewise.
13783 * fold-const.c (maybe_lvalue_p): Likewise.
13784 (operand_equal_p): Likewise.
13785 (build_fold_addr_expr_with_type_loc): Likewise.
13786 * gimplify.c (gimplify_addr_expr): Likewise.
13787 (gimplify_expr): Likewise.
13788 * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
13789 (verify_gimple_assign_single): Likewise.
13790 * tree-dump.c (dequeue_and_dump): Likewise.
13791 (tree_could_trap_p): Likewise.
13792 * tree-predcom.c (ref_at_iteration): Likewise.
13793 * tree-pretty-print.c (dump_generic_node): Likewise.
13794 (op_code_prio): Likewise.
13795 (op_symbol_code): Likewise.
13796 * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
13797 * tree-ssa-loop-im.c (for_each_index): Likewise.
13798 (gen_lsm_tmp_name): Likewise.
13799 * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
13800 (find_interesting_uses_address): Likewise.
13801 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
13802 * tree-ssa-operands.c (get_expr_operands): Likewise.
13803 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
13804 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
13805 (ao_ref_init_from_vn_reference): Likewise.
13806 * tree.c (staticp): Likewise.
13807 (build1_stat): Likewise.
13808 (reference_alias_ptr_type): Likewise.
13809 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
13810 * config/rs6000/rs6000.c (rs6000_check_sdmode): Remove
13811 MISALIGNED_INDIRECT_REF handling.
13813 2010-09-06 Richard Guenther <rguenther@suse.de>
13815 PR tree-optimization/45534
13816 * tree-ssa-address.c (create_mem_ref_raw): Add verify parameter.
13817 (create_mem_ref): Do verify the created TARGET_MEM_REF is valid
13819 (maybe_fold_tmr): Do not verify the created TARGET_MEM_REF is
13820 valid on the target.
13822 2010-09-06 Andreas Schwab <schwab@redhat.com>
13824 * configure.ac: Quote argument of AC_MSG_WARN.
13825 * configure: Regenerate.
13827 2010-09-06 Alexander Monakov <amonakov@ispras.ru>
13829 * sel-sched.c (move_cond_jump): Correct arguments to
13830 maybe_tidy_empty_bb.
13831 * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
13833 2010-09-06 Andrey Belevantsev <abel@ispras.ru>
13835 PR rtl-optimization/44919
13836 * sel-sched.c (move_cond_jump): Remove assert, check that
13837 the several blocks case can only happen with mutually exclusive
13838 insns instead. Rewrite the movement code to support moving through
13839 several basic blocks.
13841 2010-09-06 Uros Bizjak <ubizjak@gmail.com>
13843 * config/i386/i386.md (iptrsize): New mode attribute.
13845 (*load_tp_<mode>): Macroize insn from *load_tp_{si,di} using P
13847 (*add_tp_<mode>): Ditto from *add_tp_{si,di}.
13848 (stack_protect_set_<mode>): Ditto from stack_protect_set_{si,di}.
13849 (stack_protect_test_<mode>): Ditto from stack_protect_test_{si,di}.
13850 (stack_tls_protect_set_<mode>): Ditto from
13851 stack_tls_protect_set_{si,di}. Use %@ to output segment register
13852 of thread base pointer load.
13853 (stack_tls_protect_test_<mode>): Ditto from
13854 stack_tls_protect_test_{si,di}. Use %@ to output segment register
13855 of thread base pointer load.
13856 (stack_protect_set): Rewrite using indirect functions.
13857 (stack_protect_test): Ditto.
13858 * config/i386/i386.c (ix86_print_operand_punct_valid): Add '@'.
13859 (ix86_print_operand): Handle '@'.
13861 2010-09-05 Giuseppe Scrivano <gscrivano@gnu.org>
13863 * tree-tailcall.c (process_assignment): Handle NEGATE_EXPR and
13866 2010-09-05 Mark Mitchell <mark@codesourcery.com>
13868 * doc/invoke.texi: Document -Wdouble-promotion.
13869 * c-typeck.c (convert_arguments): Check for implicit conversions
13870 from float to double.
13871 (do_warn_double_promotion): New function.
13872 (build_conditional_expr): Use it.
13873 (build_binary_op): Likewise.
13875 2010-09-05 Richard Guenther <rguenther@suse.de>
13877 PR tree-optimization/45535
13878 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Properly
13879 handle TMR_INDEX2. Make sure TMR_INDEX is not NULL before
13881 (indirect_refs_may_alias_p): Likewise.
13883 2010-09-05 Naveen H.S <naveen.S@kpitcummins.com>
13885 * config/sh/sh.c (sh_option_override): Make static.
13886 Adjust comments. Declare.
13887 (sh_function_value_regno_p): Likewise.
13888 (sh_register_move_cost): Modify the arguments, make static.
13889 Adjust comments. Declare.
13890 (TARGET_OPTION_OVERRIDE, TARGET_REGISTER_MOVE_COST
13891 TARGET_FUNCTION_VALUE_REGNO_P): Define.
13892 * config/sh/sh.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P
13893 REGISTER_MOVE_COST): Delete.
13894 * config/sh/sh-protos.h (sh_override_options): Delete.
13895 (sh_register_move_cost): Delete.
13896 (sh_function_value_regno_p): Delete.
13898 2010-09-04 Anatoly Sokolov <aesok@post.ru>
13900 * config/m32r/m32r.c (m32r_function_value, m32r_libcall_value,
13901 m32r_function_value_regno_p): New functions.
13902 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
13903 TARGET_FUNCTION_VALUE_REGNO_P): Declare.
13904 * config/m32r/m32r.h: (FUNCTION_VALUE, LIBCALL_VALUE,
13905 FUNCTION_VALUE_REGNO_P): Remove.
13907 2010-09-04 Jan Hubicka <jh@suse.cz>
13909 * gimple-fold.c (maybe_fold_reference): Use fold_const_aggregate_ref.
13910 * tree-ssa-ccp.c (fold_const_aggregate_ref): Use
13911 fold_read_from_constant_string.
13913 * gimple.h (canonicalize_constructor_val): Declare.
13914 * gimple-fold.c (canonicalize_constructor_val): New function.
13915 (get_symbol_constant_value):Use it.
13916 * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
13918 2010-09-04 Jan Hubicka <jh@suse.cz>
13920 * tree-switch-conversion.c (build_one_array): Set constructor to be
13922 * varpool.c (varpool_finalize_decl): Compute const_value_known.
13924 2010-09-04 Richard Guenther <rguenther@suse.de>
13927 * tree-flow.h (force_gimple_operand_1): Declare.
13928 (force_gimple_operand_gsi_1): Likewise.
13929 * gimplify.c (force_gimple_operand_1): New worker taking a
13930 gimple predicate for ...
13931 (force_gimple_operand): ... which now wraps it.
13932 (force_gimple_operand_gsi_1, force_gimple_operand_gsi): Likewise.
13933 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Revert
13935 * tree-ssa-address.c (gimplify_mem_ref_parts): Use
13936 force_gimple_operand_gsi_1 with is_gimple_mem_ref_addr.
13937 (create_mem_ref): Likewise.
13939 2010-09-04 Uros Bizjak <ubizjak@gmail.com>
13941 * config/i386/predicates.md (sse_reg_operand): New predicate.
13942 * config/i386/i386.md (TFmode push splitter): Use sse_reg_operand
13943 predicate for operand 1.
13944 (XFmode push splitter): Use fp_register_operand predicate
13946 (*dummy_extendsfdf2, *dummy_extendsfxf2): Remove disabled patterns.
13947 (SF-DF float_extend push splitter): Add reload_completed insn
13949 ({SF,DF}-XF float_extend_push splitter): Macroize splitter using
13950 MODEF mode macro. Add reload_completed insn predicate.
13952 2010-09-04 Paolo Bonzini <bonzini@gnu.org>
13954 * df.h (enum df_ref_class): Remove DF_REF_EXTRACT.
13955 (struct df_extract_ref): Remove.
13956 (union df_ref_d): Remove extract_ref member.
13957 (df_ref_create): Remove last three arguments.
13958 (DF_REF_LOC): Remove DF_REF_EXTRACT case.
13959 * df-scan.c (df_ref_record): Remove last three arguments, do not
13960 pass them to df_ref_create_structure.
13961 (df_uses_record): Remove first and last three arguments. Replace
13962 first argument with DF_REF_REGULAR, adjust calls to remove the
13963 width, offset and mode. Always call recursively on the second
13964 and third argument of ZERO_EXTRACT and SIGN_EXTRACT.
13965 (df_ref_create_structure): Remove first argument.
13966 (struct df_scan_problem_data): Remove ref_extract_pool.
13967 (df_scan_free_internal): Do not free it.
13968 (df_scan_alloc): Do not allocate it.
13969 (df_ref_create): Remove last three arguments, do not pass them to
13970 df_ref_create_structure.
13971 (df_free_ref): Remove DF_REF_EXTRACT case.
13972 (df_notes_rescan): Adjust call to df_uses_record.
13973 (df_ref_equal_p, df_ref_compare, df_ref_create_structure):
13974 Remove DF_REF_EXTRACT case.
13975 (df_def_record_1): Do not special case class for a ZERO_EXTRACT lhs.
13976 Adjust calls to df_ref_record, using DF_REF_REGULAR for all REG
13977 and SUBREG definitions.
13978 (df_get_conditional_uses): Remove references to width/offset/mode,
13979 adjust call to df_ref_create_structure.
13980 (df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
13981 df_entry_block_defs_collect, df_exit_block_uses_collect): Adjust
13982 calls to df_uses_record and df_ref_record.
13983 * fwprop.c (update_df): Remove references to width/offset/mode,
13984 adjust call to df_ref_create.
13986 2010-09-03 Jan Hubicka <jh@suse.cz>
13988 * ipa.c (build_cdtor): Take VECtor as argument; fix array walk.
13989 (build_cdtor_fns): Update use of build_cdtor.
13991 2010-09-03 Joseph Myers <joseph@codesourcery.com>
13993 * doc/options.texi (SeparateAlias): Document.
13994 * opt-functions.awk (switch_flags): Handle SeparateAlias.
13995 * opth-gen.awk: Generate enumeration names for options marked
13996 SeparateAlias, but not for those marked Ignore.
13997 * opts-common.c (generate_canonical_option): Don't output separate
13998 argument for options marked CL_SEPARATE_ALIAS.
13999 (decode_cmdline_option): Handle CL_SEPARATE_ALIAS.
14000 * opts.h (CL_SEPARATE_ALIAS): New.
14001 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
14002 CL_COMMON): Adjust definitions.
14003 * config/i386/darwin.opt, config/mips/sde.opt: New.
14004 * common.opt (fdump-final-insns): New.
14005 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
14007 (mips*-sde-elf*): Add mips/sde.opt.
14008 * config/mips/sde.h (DRIVER_SELF_SPECS): Don't handle
14009 -mno-data-in-code and -mcode-xonly here.
14010 * defaults.h (DEFAULT_SWITCH_TAKES_ARG): Add 'd'.
14011 * gcc.c (option_map): Add "j" to --dump entry.
14012 (translate_options): Don't translate -d to -foutput-class-dir= here.
14014 2010-09-03 Sebastian Pop <sebastian.pop@amd.com>
14016 * tree-data-ref.c (dr_may_alias_p): Replace !DR_IS_READ with
14018 (compute_all_dependences): Same.
14019 (create_rdg_edge_for_ddr): Same.
14020 * tree-data-ref.h (DR_IS_WRITE): New.
14021 (ddr_is_anti_dependent): Replace !DR_IS_READ with DR_IS_WRITE.
14022 * tree-if-conv.c (write_memrefs_written_at_least_once): Same.
14023 (write_memrefs_written_at_least_once): Same.
14024 * tree-predcom.c (suitable_component_p): Same.
14025 (determine_roots_comp): Same.
14026 (execute_load_motion): Same.
14027 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Same.
14028 (vect_enhance_data_refs_alignment): Same.
14029 (vect_analyze_group_access): Same.
14031 2010-09-03 Joern Rennecke <joern.rennecke@embecosm.com>
14034 * Makefile.in (PLUGINCC): Define in terms of @CC@ / @CXX@
14035 (PLUGINCFLAGS): Define in terms of @CFLAGS@ / @CXXFLAGS@
14037 2010-09-03 Marcin Baczynski <marbacz@gmail.com>
14039 * dwarf2out.c (file scope): Remove #if0'd code.
14040 (gen_subprogram_die): Same.
14042 2010-09-03 Jakub Jelinek <jakub@redhat.com>
14044 PR middle-end/45484
14045 * dwarf2out.c (flush_queued_reg_saves): Rename to...
14046 (dwarf2out_flush_queued_reg_saves): ... this. No longer static.
14047 (dwarf2out_frame_debug_expr, dwarf2out_frame_debug): Adjust callers.
14048 * dwarf2out.h (dwarf2out_flush_queued_reg_saves): New prototype.
14049 * config/i386/i386.c (output_set_got): Call it.
14051 2010-09-03 Michael Matz <matz@suse.de>
14053 PR middle-end/45415
14054 * tree-sra.c (sra_modify_assign): If we modify the statement,
14057 * tree-ssa.c (verify_ssa): Check number of operands and links
14058 per statement to agree.
14060 2010-09-03 Uros Bizjak <ubizjak@gmail.com>
14061 Iain Sandoe <iains@gcc.gnu.org>
14064 * config/i386/t-darwin (LIB2FUNCS_EXCLUDE): New.
14065 * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE,
14066 LIBGCC2_TF_CEXT, TF_SIZE): New defines.
14068 2010-09-03 Richard Guenther <rguenther@suse.de>
14070 * lto-streamer-out.c (output_function): Output function
14071 start and end loci.
14072 * lto-streamer-in.c (input_function): Input function start
14075 2010-09-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14077 * configure.ac: Use the GCC_AC_ENABLE_DECIMAL_FLOAT macro.
14078 * Makefile.in: Add aclocal.m4 dependency to dfp.m4.
14079 * configure: Regenerate.
14080 * aclocal.m4: Regenerate.
14082 2010-09-03 Jan Hubicka <jh@suse.cz>
14085 * lto-cgraph.c (intput_node, input_varpool_node): Set DECL_EXTERNAL
14086 on functions/variables in other partition.
14088 2010-09-03 Jan Hubicka <jh@suse.cz>
14090 * cgraph.h (struct varpool_node): Add const_value_known.
14091 (varpool_decide_const_value_known): Declare.
14092 * tree-ssa-ccp.c (fold_const_aggregate_ref): Update initializer folding.
14093 * lto-cgraph.c (lto_output_varpool_node): Store const_value_known.
14094 (input_varpool_node): Restore const_value_known.
14095 * tree-ssa-loop-ivcanon (constant_after_peeling): Check varpool for
14096 initializer folding.
14097 * ipa.c (ipa_discover_readonly_nonaddressable_var,
14098 function_and_variable_visibility): Compute const_value_known.
14099 * gimple-fold.c (get_symbol_constant_value): Use varpool for
14100 initializer folding.
14101 * varpool.c (varpool_decide_const_value_known): New function.
14103 2010-09-03 Uros Bizjak <ubizjak@gmail.com>
14105 * config/i386/i386.md: Remove empty preparation statements
14108 2010-09-03 Jan Hubicka <jh@suse.cz>
14110 * passes.c (rest_of_decl_compilation): Do not add local vars into
14112 * varpool.c (varpool_get_node, varpool_node): Sanity check that only
14113 static or extern vars are in varpool.
14114 (varpool_finalize_decl): Sanity check that only static vars are
14117 2010-09-03 Jakub Jelinek <jakub@redhat.com>
14120 * dwarf2out.c (rtl_for_decl_init): Give up for all generic vectors,
14121 not just generic vectors with BLKmode.
14123 2010-09-03 Richard Guenther <rguenther@suse.de>
14125 * tree.def (TARGET_MEM_REF): Merge TMR_SYMBOL and TMR_BASE.
14126 Move TMR_OFFSET to second operand. Add TMR_INDEX2.
14127 * tree.h (TMR_SYMBOL): Remove.
14128 (TMR_BASE, TMR_OFFSET): Adjust.
14130 * alias.c (ao_ref_from_mem): Use TMR_BASE.
14131 * builtins.c (get_object_alignment): Merge TMR_BASE and
14132 TMR_SYMBOL handling.
14133 * cfgexpand.c (expand_debug_expr): Use TMR_BASE.
14134 * gimple.c (get_base_address): Merge MEM_REF and TARGET_MEM_REF
14135 handling. Also allow TARGET_MEM_REF as base address.
14136 (walk_stmt_load_store_addr_ops): TMR_BASE is always non-NULL.
14137 * gimplify.c (gimplify_expr): Gimplify TMR_BASE like MEM_REF
14138 base. Gimplify TMR_INDEX2.
14139 * tree-cfg.c (verify_types_in_gimple_reference): Adjust.
14140 * tree-dfa.c (get_ref_base_and_extent): Likewise.
14141 (get_addr_base_and_unit_offset): Likewise.
14142 * tree-eh.c (tree_could_trap_p): Likewise.
14143 * tree-pretty-print.c (dump_generic_node): Likewise.
14144 * tree-ssa-address.c (tree_mem_ref_addr): Simplify. Handle TMR_INDEX2.
14145 (create_mem_ref_raw): Merge symbol and base. Move 2ndary
14147 (get_address_description): Reconstruct addres description
14148 from merged TMR_BASE and TMR_INDEX2.
14149 (maybe_fold_tmr): Fold propagated addresses.
14150 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Merge
14151 MEM_REF and TARGET_MEM_REF paths.
14152 (indirect_refs_may_alias_p): Likewise.
14153 * tree-ssa-live.c (mark_all_vars_used_1): Handle TMR_INDEX2
14154 instead of TMR_SYMBOL.
14155 * tree-ssa-operands.c (get_tmr_operands): Simplify.
14156 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Adjust
14157 according to changes ...
14158 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): ... here.
14159 Split TARGET_MEM_REF into two fields plus the base.
14160 * tree.c (mem_ref_offset): Simplify.
14161 * tree-ssa-loop-im.c (for_each_index): Handle TMR_INDEX2.
14162 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Likewise.
14163 Strip NOPs when folding MEM_REF addresses.
14164 * tree-ssa-sink.c (is_hidden_global_store): Handle TARGET_MEM_REF.
14165 * gimple-fold.c (maybe_fold_reference): Fold TARGET_MEM_REF here ...
14166 (fold_gimple_assign): ... not here.
14168 2010-09-03 Mingjie Xing <mingjie.xing@gmail.com>
14170 * config/mips/mips.h (SHIFT_COUNT_TRUNCATED): Change the definition.
14171 * config/mips/mips.c (mips_shift_truncation_mask): New function.
14172 (TARGET_SHIFT_TRUNCATION_MASK): Define.
14174 2010-09-02 Richard Henderson <rth@redhat.com>
14176 * configure.ac (gcc_cv_as_cfi_advance_working): Use objdump
14177 instead of readelf in the test.
14178 (gcc_cv_as_cfi_sections_directive): Check for correct relocation
14179 in the .debug_frame section for coff targets.
14180 * configure: Rebuild.
14182 2010-09-02 Anatoly Sokolov <aesok@post.ru>
14184 * config/m32c/m32c.h (CLASS_LIKELY_SPILLED_P): Remove.
14185 * config/m32c/m32c-protos.h (m32c_class_likely_spilled_p): Remove.
14186 * config/m32c/m32c.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
14187 (m32c_class_likely_spilled_p): Make static. Change argument type to
14188 reg_class_t. Change result type to bool.
14190 2010-09-02 Michael Meissner <meissner@linux.vnet.ibm.com>
14192 * config/rs6000/rs6000.opt (-mfriz): New switch to control whether
14193 to convert (double)(long) into a single FRIZ instruction or not
14194 when -ffast-math is used.
14196 * config/rs6000/vsx.md (VSX_DF): New iterator for DF/V2DF modes.
14197 (vsx_float_fix_<mode>2): Optimize (double)(long) into X{S,V}RDPIZ
14198 or FRIZ instruction if -ffast-math.
14199 * config/rs6000/rs6000.md (friz): Ditto.
14201 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mfriz.
14203 2010-09-02 Joseph Myers <joseph@codesourcery.com>
14205 * opth-gen.awk (quote, comma): Remove unused variables.
14207 2010-09-02 Ryan Mansfield <rmansfield@qnx.com>
14209 * arm.c (arm_override_options): Correct fall-back code to use
14210 SUBTARGET_CPU_DEFAULT.
14212 2010-09-02 Julian Brown <julian@codesourcery.com>
14214 * config/arm/neon.md (UNSPEC_VCLE, UNSPEC_VCLT): New constants for
14216 (vcond<mode>, vcondu<mode>): New expanders.
14217 (neon_vceq<mode>, neon_vcge<mode>, neon_vcgt<mode>): Support
14218 comparisons with zero.
14219 (neon_vcle<mode>, neon_vclt<mode>): New patterns.
14220 * config/arm/constraints.md (Dz): New constraint.
14222 2010-09-02 Anatoly Sokolov <aesok@post.ru>
14224 * target.def (class_likely_spilled_p): New hook.
14225 * doc/tm.texi.in (TARGET_CLASS_LIKELY_SPILLED_P): Document.
14226 * doc/tm.texi: Regenerate.
14227 * targhooks.c (default_class_likely_spilled_p): New function.
14228 * targhooks.h (default_class_likely_spilled_p): Declare.
14229 * regs.h (CLASS_LIKELY_SPILLED_P): Remove.
14230 * combine.c (cant_combine_insn_p, likely_spilled_retval_p): Use
14231 TARGET_CLASS_LIKELY_SPILLED_P target hook. Use HARD_REGISTER_P macro.
14232 Use fixed_reg_set instead of fixed_regs.
14233 * cse.c (hash_rtx_cb): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
14234 * calls.c (avoid_likely_spilled_reg): Ditto.
14235 * ira-conflicts.c (ira_build_conflicts): Ditto.
14236 * ira.c (update_equiv_regs): Ditto.
14237 * mode-switching.c (create_pre_exit): Ditto.
14238 * regmove.c (find_matches): Ditto.
14239 (regclass_compatible_p): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
14240 * reload.c (SMALL_REGISTER_CLASS_P): Remove macro.
14241 (small_register_class_p): New inline function.
14242 (push_secondary_reload, find_reusable_reload, find_reloads): Use
14243 small_register_class_p instead of SMALL_REGISTER_CLASS_P.
14245 * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Remove.
14246 * config/i386/i386.c (ix86_class_likely_spilled_p): New.
14247 (TARGET_CLASS_LIKELY_SPILLED_P): Define.
14249 2010-09-02 Richard Guenther <rguenther@suse.de>
14251 PR tree-optimization/44937
14252 PR tree-optimization/45412
14253 * ipa-split.c (split_function): Properly remove PHI nodes.
14255 2010-09-02 Joseph Myers <joseph@codesourcery.com>
14257 * opts.h (struct cl_option): Add warn_message field.
14258 (struct cl_decoded_option): Add warn_message field.
14259 * doc/options.texi (Ignore, Warn): Document.
14260 * opt-functions.awk (needs_state_p): Don't consider aliases or
14261 ignored options to need state saved.
14262 * optc-gen.awk: Handle Warn and Ignore.
14263 * opth-gen.awk: Output OPT_SPECIAL_ignore.
14264 * opts-common.c (decode_cmdline_option): Set warn_message field.
14265 Handle ignored options.
14266 (decode_cmdline_options_to_array, generate_option,
14267 generate_option_input_file): Set warn_message field.
14268 (read_cmdline_option): Generate warnings from warn_message field.
14269 Handle ignored options.
14270 * common.opt (Wunreachable-code, fargument-alias,
14271 fargument-noalias, fargument-noalias-global,
14272 fargument-noalias-anything, fcse-skip-blocks, fforce-addr,
14273 floop-optimize, frerun-loop-opt, fsched2-use-traces, fsee,
14274 fstrength-reduce, ftree-store-ccp, ftree-store-copy-prop,
14275 ftree-salias): Mark Ignore.
14276 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -mcpu,
14277 -mintel-syntax and -mno-intel-syntax here.
14278 * config/i386/i386.opt (mcpu=, mintel-syntax): Define as aliases
14280 * opts.c (common_handle_option): Don't handle options marked as
14282 (enable_warning_as_error): Handle ignored options.
14284 2010-09-02 Joseph Myers <joseph@codesourcery.com>
14287 * opts.h (struct cl_option): Add alias_arg, neg_alias_arg and
14288 alias_target fields.
14289 * opt-functions.awk (opt_sanitized_name): Don't handle
14290 finline-limit=, Wlarger-than= and ftemplate-depth= specially.
14291 * optc-gen.awk: Generate alias fields.
14292 * opth-gen.awk: Explicitly give values for OPT_* enum constants.
14293 Don't generate such constants for aliases.
14294 * opts-common.c (generate_canonical_option): New.
14295 (decode_cmdline_option): Handle aliases. Use
14296 generate_canonical_option for known options instead of copying the
14298 * doc/options.texi (Alias): Document.
14299 * common.opt (W, Wlarger-than-, aux-info=, finline-limit-,
14300 fstack-check, specs): Mark as aliases.
14301 * gcc.c (driver_handle_option): Canonicalize -L options to joined
14303 (driver_handle_option): Don't handle OPT_specs.
14304 * opts.c (common_handle_option): Don't handle options marked as
14306 (enable_warning_as_error): Handle aliases.
14307 * stor-layout.c (layout_decl): Use OPT_Wlarger_than_ instead of
14308 OPT_Wlarger_than_eq.
14309 * tree-optimize.c (tree_rest_of_compilation): Use
14310 OPT_Wlarger_than_ instead of OPT_Wlarger_than_eq.
14312 2010-09-02 Uros Bizjak <ubizjak@gmail.com>
14314 * config/i386/i386.md (nonmemory_operand): New mode attribute.
14315 (push memory peephole2): Macroize peepholes using SWI mode iterator.
14316 (move immediate to memory peephole2): Macroize peepholes using
14317 SWI124 mode iterator.
14318 (non-pairable NOT peephole2): Macroize peepholes using SWI124
14320 (simple lea add peephole2): Macroize peepholes using SWI48
14322 (simple lea mult peephole2): Ditto.
14323 (imul by 3,5,9 to lea peephole2): Ditto.
14324 (mov $-1, reg peephole2): Macroize peepholes using SWI248
14326 (imul $32bit_imm,mem,reg peephole2): Ditto.
14327 (imul $8/16bit_imm,regmem,reg peephole2): Ditto.
14329 2010-09-02 Ian Bolton <ian.bolton@arm.com>
14331 * tree-ssa-loop-prefetch.c: Fix comment at head of file.
14333 2010-09-02 Olivier Hainque <hainque@adacore.com>
14335 PR middle-end/44763
14336 * ira-color.c (SORTGT): New macro, helper for qsort callbacks.
14337 (allocno_priority_compare_func): Use it instead of a straight
14338 difference computation over priorities.
14340 2010-09-02 Andi Kleen <ak@linux.intel.com>
14342 * opts.c (common_handle_option): Fix OPT_fwhopr/fwhopr_ handling.
14344 2010-09-02 Ira Rosen <irar@il.ibm.com>
14346 * tree-vectorizer.h (get_later_stmt): New function.
14347 (vect_analyze_data_ref_dependences): Add argument.
14348 * tree-vect-loop.c (vect_analyze_loop): Update call to
14349 vect_analyze_data_ref_dependences.
14350 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block):
14352 (vect_analyze_data_ref_dependence): Add argument for basic block
14353 dependencies. Check dependencies in basic block vectorization.
14354 (vect_analyze_data_ref_dependences): Add argument and update call to
14355 vect_analyze_data_ref_dependences.
14356 * tree-vect-slp.c (vect_find_last_store_in_slp_instance): New.
14357 (vect_bb_vectorizable_with_dependencies): New.
14358 (vect_slp_analyze_bb): Check dependencies in basic block.
14359 (vect_schedule_slp_instance): Insert stores before the last store in
14362 2010-09-02 Uros Bizjak <ubizjak@gmail.com>
14365 * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE,
14366 LIBGCC2_TF_CEXT, TF_SIZE): New defines.
14368 2010-09-01 Jakub Jelinek <jakub@redhat.com>
14370 PR middle-end/45458
14371 * bb-reorder.c (add_labels_and_missing_jumps): Treat
14372 bbs ending with throwing insns like blocks ending with a call.
14373 (fix_up_fall_thru_edges): Likewise.
14375 2010-09-01 Nathan Froyd <froydnj@codesourcery.com>
14377 * config/m32c/m32c-protos.h (m32c_function_arg): Delete.
14378 (m32c_function_arg_advance): Delete.
14379 * config/m32c/m32c.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
14380 * config/m32c/m32c.c (m32c_function_arg): Make static. Adjust
14381 comments. Take a const_tree and a bool. Declare.
14382 (m32c_function_arg_advance): Likewise.
14383 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
14385 2010-09-01 Uros Bizjak <ubizjak@gmail.com>
14388 * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE,
14389 LIBGCC2_TF_CEXT, TF_SIZE): Move from ...
14390 * config/i386/mingw32.h: ... here.
14392 2010-09-01 Andi Kleen <ak@linux.intel.com>
14395 * lto-streamer-in.c (lto_input_ts_target_option): Add.
14396 (lto_input_tree_pointers): Call lto_input_ts_target_option.
14397 * lto-streamer-out (lto_output_ts_target_option): Add.
14398 (lto_output_tree_pointers): Call lto_output_ts_target_option.
14400 2010-09-01 Kai Tietz <kai.tietz@onevision.com>
14403 * config/i386/cygwin.h: Change order of specified import libraries.
14404 * config/i386/mingw32.h: Likewise.
14405 * config/i386/t-cygwin: Likewise.
14406 * config/i386/t-mingw32: Likewise.
14407 * config/i386/t-mingw-w32: Likewise.
14408 * config/i386/t-mingw-w64: Likewise.
14410 2010-09-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14412 * config/arm/neon-schedgen.ml (core): New type.
14413 (allCores): List of supported cores.
14414 (availability_table): Add supported cores.
14415 (collate_bypasses): Accept core as a parameter.
14416 (worst_case_latencies_and_bypasses): Accept core as a parameter.
14417 (emit_insn_reservations): Accept core as a parameter. Use tuneStr
14418 and coreStr to get tune attribute and prefix for functional units.
14419 (emit_bypasses): Accept core name and use it.
14420 (calculate_per_core_availability_table): New.
14421 (filter_core): New.
14422 (calculate_core_availability_table): New.
14423 (main): Use calculate_core_availablity_table.
14424 * config/arm/cortex-a8-neon.md: Update copyright year.
14425 Regenerated from ml file and merged in.
14426 (neon_mrrc, neon_mrc): Rename to cortex_a8_neon_mrrc and
14427 cortex_a8_neon_mrc.
14429 2010-09-01 Ian Bolton <ian.bolton@arm.com>
14431 * Makefile.in (tree-switch-conversion.o): Update dependencies.
14433 2010-09-01 Richard Guenther <rguenther@suse.de>
14435 * alias.c (ao_ref_from_mem): Adjust.
14436 * builtins.c (get_object_alignment): Likewise.
14437 * cfgexpand.c (expand_debug_expr): Likewise.
14438 * gimple.c (get_base_address): Likewise.
14439 * tree-dfa.c (get_ref_base_and_extent): Likewise.
14440 (get_addr_base_and_unit_offset): Likewise. Fix for
14441 both TMR_SYMBOL and TMR_BASE being set.
14442 * tree-eh.c (tree_could_trap_p): Likewise.
14443 * gimplify.c (gimplify_expr): Do not attempt to gimplify
14444 TMR_SYMBOL. Always gimplify TMR_BASE.
14445 * tree-cfg.c (verify_types_in_gimple_reference): Verify
14446 TMR_BASE if there is a TMR_SYMBOL.
14447 * tree-pretty-print.c (dump_generic_node): Adjust.
14448 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
14449 (tree_mem_ref_addr): Likewise.
14450 (create_mem_ref_raw): Likewise.
14451 (move_fixed_address_to_symbol): Likewise.
14452 (create_mem_ref): Likewise.
14453 (dump_mem_address): Likewise.
14454 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Adjust.
14455 Fix for both TMR_SYMBOL and TMR_BASE being set.
14456 (indirect_refs_may_alias_p): Likewise.
14457 * tree-ssa-operands.c (get_tmr_operands): Adjust.
14458 * tree.def (TARGET_MEM_REF): Adjust documentation.
14460 2010-09-01 Uros Bizjak <ubizjak@gmail.com>
14462 * config/i386/i386.h (enum ix86_tune_indices) <X86_TUNE_SINGLE_POP>:
14463 Rename from X86_TUNE_ADD_ESP_4.
14464 <IX86_TUNE_DOUBLE_POP>: Rename from X86_TUNE_ADD_ESP_8.
14465 <IX86_TUNE_SINGLE_PUSH>: Rename from X86_TUNE_SUB_ESP_4.
14466 <IX86_TUNE_DOUBLE_PUSH>: Rename from X86_TUNE_SUB_ESP_8.
14467 (TARGET_SINGLE_POP): Rename from TARGET_ADD_ESP_4.
14468 (TARGET_DOUBLE_POP): Rename from TARGET_ADD_ESP_8.
14469 (TARGET_SINGLE_PUSH): Rename from TARGET_SUB_ESP_4.
14470 (TARGET_DOUBLE_POP): Rename from TARGET_SUB_ESP_8.
14471 * config/i386/i386.c (initial_ix86_tune_features)
14472 <X86_TUNE_SINGLE_POP>: Invert members.
14473 <X86_TUNE_DOUBLE_POP>: Ditto.
14474 <X86_TUNE_SINGLE_PUSH>: Ditto.
14475 <X86_TUNE_DOUBLE_PUSH>: Ditto.
14476 * config/i386/i386.md (*pop<mode>1): Rename from pop<mode>1.
14477 No longer exported.
14478 (push peephole2 patterns): Macroize peepholes using P mode iterator.
14479 Adjust for renamed TARGET_{SINGLE,DOUBLE}_PUSH defines.
14480 (pop peephole2 patterns): Macroize peepholes using P mode iterator.
14481 Adjust for renamed TARGET_{SINGLE,DOUBLE}_POP defines.
14483 2010-09-01 Eric Botcazou <ebotcazou@adacore.com>
14485 * gimplify.c (gimplify_init_constructor): Do not create a temporary for
14486 a volatile LHS if the constructor has only one element.
14488 2010-09-01 Mikael Pettersson <mikpe@it.uu.se>
14491 * tree.c (stdarg_p): Make fntype parameter const.
14492 * tree.h (stdarg_p): Likewise.
14493 (function_args_iterator): Remove unused fntype field.
14494 (function_args_iter_init): Do not initialize fntype
14495 field. Make fntype parameter const.
14497 2010-09-01 Richard Guenther <rguenther@suse.de>
14499 * tree-vrp.c (adjust_range_with_scev): Use number of iteration
14501 (vrp_visit_phi_node): Delay using SCEV till we balloon the range.
14502 (execute_vrp): Compute number of iteration estimates.
14503 * cfgloop.h (estimate_numbers_of_iterations_loop): Adjust prototype.
14504 * tree-flow.h (estimate_numbers_of_iterations): Likewise.
14505 * tree-data-ref.c (estimated_loop_iterations): Adjust.
14506 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
14507 Infer loop bounds from undefined behavior based on a new parameter.
14508 (estimate_numbers_of_iterations): Likewise.
14509 (scev_probably_wraps_p): Adjust.
14510 * tree-ssa-loop.c (tree_ssa_loop_bounds): Likewise.
14512 2010-09-01 Nick Clifton <nickc@redhat.com>
14514 * config/stormy16/stormy16.c: Use REG_P, MEM_P and CONST_INT_P
14516 (xstormy16_legitimate_address_p): Use true and false instead of 1
14518 (xstormy16_expand_prologue): Delete unused local variable 'insn'.
14519 (xstormy16_function_arg): Use FIRST_ARGUMENT_REGNUM in place of
14521 (xstormy16_expand_call): Fix comment at start of function.
14523 2010-09-01 Nick Clifton <nickc@redhat.com>
14525 * config/rx/rx.c (rx_expand_prologue): Do not adjust frame size
14526 when pushing accumulator register.
14527 (rx_get_stack_layout): Always save call clobbered registers inside
14528 interrupt handlers.
14529 * config/rx/rx-modes.def: Fix descriptive comment at start of file.
14531 2010-09-01 Uros Bizjak <ubizjak@gmail.com>
14533 * config.gcc (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Add
14534 i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
14536 * libgcc-std.ver (GCC_4.6.0): Define version.
14538 2010-08-31 Eric Botcazou <ebotcazou@adacore.com>
14540 * tree-nested.c (convert_all_function_calls): Iterate until after the
14541 sum of static chains in the nest doesn't change.
14543 2010-08-31 Anatoly Sokolov <aesok@post.ru>
14545 * config/m32c/m32c.c (classes_intersect): Remove.
14546 (m32c_preferred_reload_class, m32c_secondary_reload_class): Use
14547 reg_classes_intersect_p instead of classes_intersect.
14548 (class_can_hold_mode): Change arguments type from enum reg_class to
14549 reg_class_t. Use reg_class_contents instead of class_contents.
14550 (m32c_register_move_cost): Make static. Change arguments type from
14551 enum reg_class to reg_class_t. Use reg_classes_intersect_p instead of
14552 classes_intersect. Use reg_class_contents instead of class_contents.
14553 (m32c_memory_move_cost): Make static. Change arguments type from
14554 enum reg_class to reg_class_t.
14555 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
14556 * config/m32c/m32c.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
14557 * config/m32c/m32c-protos.h (m32c_register_move_cost,
14558 m32c_memory_move_cost): Remove.
14560 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
14562 * config/arm/arm-protos.h (arm_function_arg_advance): Delete.
14563 (arm_function_arg): Delete.
14564 (arm_needs_doubleword_align): Take a const_tree.
14565 * config/arm/arm.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
14566 * config/arm/arm.c (aapcs_select_call_coproc): Take a const_tree.
14567 (aapcs_layout_arg, arm_needs_doubleword_align): Likewise.
14568 (arm_function_arg): Make static. Take a const_tree and a bool.
14569 (arm_function_arg_advance): Likewise.
14570 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
14572 2010-08-31 Andi Kleen <ak@linux.intel.com>
14574 * common.opt (fwhopr=): Update for -fwhopr=jobserver
14575 * doc/invoke.texi (fwhopr): Document -fwhopr=jobserver.
14576 * lto-wrapper.c (run_gcc): Add jobserver mode.
14577 * opts.c (common_handle_option): Fix OPT_fwhopr for non numeric
14580 2010-08-31 Uros Bizjak <ubizjak@gmail.com>
14582 * config/i386/i386.md (popdi1): Rewrite using POST_INC memory operand.
14584 (*popdi1_epilogue): Ditto.
14585 (*popsi1_epilogue): Ditto.
14586 (popsi, popdi peephole2 patterns): Update peepholes for changed
14587 pop{si,di}1 and *pop{si,di}1_epilogue patterns.
14589 (pop<mode>1): Macroize insn from pop{si,di}1 using P code iterator.
14590 (*pop<mode>1_epilogue): Ditto from *pop{si,di}1_epilogue.
14592 * config/i386/i386.c (*ix86_gen_pop1): Remove indirect function.
14593 (override_options): Do not initialize removed ix86_gen_pop1.
14594 (gen_pop): New static function.
14595 (ix86_expand_prologue): Use gen_pop instead of ix86_gen_pop1.
14596 (release_scratch_register_on_entry): Ditto.
14597 (ix86_restore_reg_using_pop): Ditto.
14598 (ix86_expand_epilogue): Ditto.
14600 2010-08-31 Jakub Jelinek <jakub@redhat.com>
14602 PR middle-end/45461
14603 * builtins.c (dummy_object): Return a MEM_REF instead of INDIRECT_REF.
14605 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
14607 * config/fr30/fr30.c (fr30_move_double): Delete `dregno' and extra
14610 2010-08-31 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
14612 * doc/extend.texi: Fix documentation of the return value of
14613 __builtin_choose_expr.
14615 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
14617 * config/v850/v850-protos.h (function_arg): Delete.
14618 * config/v850/v850.h (FUNCTION_ARG): Delete.
14619 (FUNCTION_ARG_ADVANCE): Move code to...
14620 * config/v850/v850.c (v850_function_arg_advance): ...here.
14621 (v850_function_arg): Make static. Take a const_tree and a bool.
14622 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
14624 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
14626 * config/m32r/m32r.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Move
14628 (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
14630 * config/m32r/m32r.c (m32r_function_arg, m32r_function_arg_advance):
14632 (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
14634 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
14636 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
14638 * config/rx/rx-protos.h (rx_function_arg, rx_function_arg_size):
14640 * config/rx/rx.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
14641 * config/rx/rx.c (rx_function_arg_size): Make static.
14642 (rx_function_arg): Likewise.
14643 (rx_function_arg_advance): New function.
14644 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
14646 2010-08-31 John Tytgat <John.Tytgat@aaug.net>
14648 * config/arm/arm.c (arm_override_options): Remove superfluous test.
14651 2010-08-31 Eric Botcazou <ebotcazou@adacore.com>
14653 * dwarf2out.c (gen_decl_die) <CONST_DECL>: Do not skip in Ada.
14654 (dwarf2out_decl) <CONST_DECL>: Likewise.
14656 2010-08-30 Eric Botcazou <ebotcazou@adacore.com>
14658 Stack usage support
14659 * common.opt (-fstack-usage): New option.
14660 * doc/invoke.texi (Debugging options): Document it.
14661 * builtins.c (expand_builtin_apply): Pass TRUE as 4th argument to
14662 allocate_dynamic_stack_space.
14663 (expand_builtin_alloca): Add 4th bool parameter CANNOT_ACCUMULATE
14664 and propagate it to allocate_dynamic_stack_space.
14665 (expand_builtin) <BUILT_IN_ALLOCA>: Adjust for above change.
14666 * calls.c (initialize_argument_information): Pass TRUE as 4th
14667 argument to allocate_dynamic_stack_space.
14668 (expand_call): Set current_function_has_unbounded_dynamic_stack_size
14669 to 1 when pushing a variable-sized argument onto the stack. Pass
14670 TRUE as 4th argument to allocate_dynamic_stack_space.
14671 Update current_function_pushed_stack_size.
14672 (emit_library_call_value_1): Likewise.
14673 * explow.c (allocate_dynamic_stack_space): Add 4th bool parameter
14674 CANNOT_ACCUMULATE. If flag_stack_usage, look into the size and
14675 attempt to find an upper bound. Remove redundant code for the
14676 SETJMP_VIA_SAVE_AREA case.
14677 * expr.h (allocate_dynamic_stack_space): Add 4th bool parameter.
14678 * function.h (struct stack_usage): New structure.
14679 (current_function_static_stack_size): New macro.
14680 (current_function_dynamic_stack_size): Likewise.
14681 (current_function_pushed_stack_size): Likewise.
14682 (current_function_dynamic_alloc_count): Likewise.
14683 (current_function_has_unbounded_dynamic_stack_size): Likewise.
14684 (current_function_allocates_dynamic_stack_space): Likewise.
14685 (struct function): Add new field 'su'.
14686 * function.c (instantiate_virtual_regs): If SETJMP_VIA_SAVE_AREA,
14687 add the value of the dynamic offset to the dynamic stack usage.
14688 (gimplify_parameters): Set ALLOCA_FOR_VAR_P on call to BUILT_IN_ALLOCA
14689 for variable-sized objects.
14690 (prepare_function_start): Allocate cfun->su if flag_stack_usage.
14691 (rest_of_handle_thread_prologue_and_epilogue): Call output_stack_usage.
14692 * gimplify.c (gimplify_decl_expr): Set ALLOCA_FOR_VAR_P on call to
14693 BUILT_IN_ALLOCA for variable-sized objects.
14694 * output.h (output_stack_usage): Declare.
14695 * toplev.c (stack_usage_file): New file pointer.
14696 (output_stack_usage): New function.
14697 (open_auxiliary_file): Likewise.
14698 (lang_dependent_init): Open file if flag_stack_usage is set.
14699 (finalize): Close file if stack_usage_file is not null.
14700 * tree.h (ALLOCA_FOR_VAR_P): New macro.
14701 * config/alpha/alpha.c (compute_frame_size): New function.
14702 (alpha_expand_prologue): Use it.
14703 (alpha_start_function): Likewise.
14704 (alpha_expand_epilogue): Likewise. Set stack usage info.
14705 * config/i386/i386.c (ix86_expand_prologue): Likewise.
14706 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
14707 * config/mips/mips.c (mips_expand_prologue): Likewise.
14708 * config/pa/pa.c (hppa_expand_prologue): Likewise.
14709 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
14710 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
14712 2010-08-30 Zdenek Dvorak <ook@ucw.cz>
14714 PR tree-optimization/45427
14715 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Rewritten.
14716 Handle the case that the exit is never taken correctly.
14717 (number_of_iterations_ne): Pass exit_must_be_taken to
14718 number_of_iterations_ne_max.
14720 2010-08-30 Catherine Moore <clm@codesourcery.com>
14722 * config/mips/mips.h (BASE_DRIVER_SELF_SPECS):
14723 Infer -mdspr2 for the the 74K.
14725 2010-08-30 Jakub Jelinek <jakub@redhat.com>
14728 * tree-ssa-live.c (dump_enumerated_decls): Clear the whole wi variable.
14730 PR middle-end/45423
14731 * gimplify.c (goa_stabilize_expr): Handle TRUTH_NOT_EXPR
14732 and TRUTH_{AND,OR,XOR}_EXPR.
14733 * c-parser.c (c_parser_omp_atomic): Handle boolean
14734 {PRE,POST}_{INC,DEC}REMENT.
14736 2010-08-30 Nathan Froyd <froydnj@codesourcery.com>
14738 * config/xtensa/xtensa-protos.h (function_arg_advance): Delete.
14739 (function_arg): Delete.
14740 * config/xtensa/xtensa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
14741 (FUNCTION_INCOMING_ARG): Delete.
14742 * config/xtensa/xtensa.c (function_arg_advance): Rename to...
14743 (xtensa_function_arg_advance): ...this. Make static. Take a const_tree
14745 (function_arg): Rename to...
14746 (xtensa_function_arg_1): ...this. Make static. Take a const_tree and
14748 (xtensa_function_arg, xtensa_function_incoming_arg): Nex functions.
14749 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
14750 (TARGET_FUNCTION_INCOMING_ARG): Define.
14752 2010-08-30 Richard Guenther <rguenther@suse.de>
14754 PR tree-optimization/21602
14755 * builtins.c (fold_builtin_memory_op): Fold memmove to memcpy
14756 using points-to information.
14758 2010-08-30 H.J. Lu <hongjiu.lu@intel.com>
14760 * config/linux.h (TARGET_HAS_SINCOS): Replace | with ||.
14762 2010-08-30 Richard Guenther <rguenther@suse.de>
14764 PR tree-optimization/45449
14765 * tree-ssa-live.c (remove_unused_locals): Also remove address-taken
14768 2010-08-30 Joseph Myers <joseph@codesourcery.com>
14770 * opts.h (CL_ERR_NEGATIVE): Define.
14771 * opts.c (unknown_option_callback): Don't postpone warnings for
14772 options marked with CL_ERR_NEGATIVE.
14773 * opts-common.c (decode_cmdline_option): Set CL_ERR_NEGATIVE error
14774 for negative versions of CL_REJECT_NEGATIVE options.
14776 2010-08-30 Uros Bizjak <ubizjak@gmail.com>
14778 * config/i386/i386.md (zero_extendsidi2_1): Rename from
14779 zero_extendsidi2_32.
14780 (zero_extend<mode>di2): Macroize insn from zero_extend{qi,hi}di2
14781 using SWI12 mode iterator.
14782 (zero_extendhisi2_and): Merge insn pattern and corresponding spliter
14783 to define_insn_and_split pattern.
14784 (zero_extendqi<mode>2): Macroize expander from zero_extendqi{hi,si}2
14785 using SWI24 mode iterator.
14786 (*zero_extendqi<mode>2_and): Macroize insn from
14787 *zero_extendqi{hi,si}2_and using SWI24 mode iterator.
14788 (*zero_extendqi<mode>2_movzbl_and): Macroize insn from
14789 *zero_extendqihi2_movzbw_and and *zero_extendqisi2_movzbl_and using
14790 SWI24 mode iterator.
14791 (*zero_extendqi<mode>2_movzbl): Ditto from
14792 *zero_extendqi{hi,si}2_movzbl.
14793 (extendsidi2_1): Rename from extendsidi2_32.
14794 (extend<mode>di2): Macroize insn from extend{qi,hi}di2 using
14795 SWI12 mode iterator.
14797 2010-08-29 Eric Botcazou <ebotcazou@adacore.com>
14799 * config/ia64/ia64.h (HARD_REGNO_NREGS): Return 1 for CCImode in
14800 general purpose registers.
14801 (HARD_REGNO_MODE_OK): Accept CCImode in general purpose registers.
14802 * config/ia64/ia64.md (*movcci): Change to named pattern. Deal
14803 with general purpose registers and memory operands. Add associated
14804 CCImode post-reload splitter.
14805 * config/ia64/div.md: Change BImode to CCImode throughout.
14807 2010-08-28 Eric Botcazou <ebotcazou@adacore.com>
14809 * config/ia64/ia64.md (cstorebi4): Fix thinko.
14811 2010-08-28 Hariharan Sandanagobalane <hariharan@picochip.com>
14813 * config/picochip/picochip.c (reorder_var_tracking_notes): This
14814 function was dropping debug insns which caused PR45299.
14816 2010-08-28 Uros Bizjak <ubizjak@gmail.com>
14818 * config/i386/sse.md (extsuffix): New code attribute.
14819 (sse4_1_<code>v8qiv8hi2): Macroize insn from sse4_1_extendv8qiv8hi2
14820 and sse4_1_zero_extendv8qiv8hi2 using any_extend code iterator.
14821 (sse4_1_<code>v4qiv4si2): Ditto from sse4_1_extendv4qiv4si2
14822 and sse4_1_zero_extendv4qiv4si2.
14823 (sse4_1_<code>v2qiv2di2): Ditto from sse4_1_extendv2qiv2di2
14824 and sse4_1_zero_extendv2qiv2di2.
14825 (sse4_1_<code>v4hiv4si2): Ditto from sse4_1_extendv4hiv4si2
14826 and sse4_1_zero_extendv4hiv4si2.
14827 (sse4_1_<code>v2hiv2di2): Ditto from sse4_1_extendv2hiv2di2
14828 and sse4_1_zero_extendv2hiv2di2.
14829 (sse4_1_extendv2siv2di2): Ditto from sse4_1_extendv2siv2di2
14830 and sse4_1_zero_extendv2siv2di2
14832 (<s>mulv8hi3_highpart): Macroize expander from {u,s}mulv8hi3_highpart
14833 using any_extend code iterator.
14834 (*avx_<s>mulv8hi3_highpart): Macroize insn from
14835 *avx_{u,s}mulv8hi3_highpart using any_extend code iterator.
14836 (*<s>mulv8hi3_highpart): Ditto from *{u,s}mulv8hi3_highpart.
14838 * config/i386/i386.c (ix86_expand_sse4_unpack): Update for renamed
14839 gen_sse4_1_sign_extend* functions.
14840 (struct builtin_description bdesc_args): Ditto.
14842 2010-08-27 Xinliang David Li <davidxl@google.com>
14845 * tree-ssa-loop-ivopts.c (iv_ca_get_num_inv_exprs): Remove.
14846 (iv_ca_set_no_cp): Update used inv expr count.
14847 (iv_ca_set_cp): Ditto.
14848 (iv_ca_new): Initialize new member.
14849 (iv_ca_free): Free memory.
14851 2010-08-27 Nathan Froyd <froydnj@codesourcery.com>
14853 * config/sh/sh-protos.h (sh_function_arg): Delete.
14854 (sh_function_arg_advance): Delete.
14855 * config/sh/sh.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
14856 (PASS_IN_REG_P): Eliminate cast.
14857 * config/sh/sh.c (sh_function_arg_advance): Make static. Take a
14858 const_tree and a bool.
14859 (sh_function_arg): Likewise.
14860 (sh_output_mi_thunk): Call sh_function_arg_advance) and
14862 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
14864 2010-08-27 Naveen H.S <naveen.S@kpitcummins.com>
14865 Kaz Kojima <kkojima@gcc.gnu.org>
14867 * config/sh/sh.c (push_regs): Emit movml for interrupt handler
14869 (sh_expand_epilogue): Likewise.
14870 * config/sh/sh.md (movml_push_banked): New insn.
14871 (movml_pop_banked): Likewise.
14873 2010-08-28 Bernd Schmidt <bernds@codesourcery.com>
14875 * genautomata.c (gen_regexp_repeat, gen_regexp_allof,
14876 gen_regexp_oneof, gen_regexp_sequence): Use the string found
14877 in vector element 0 rather than the original string when there's
14879 (gen_regexp): Remove extra semicolon.
14881 * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp, movsf_vfp,
14882 thumb2_movsf_vfp): Set attribute "insn".
14883 * config/arm/arm.md (arm_ashrdi3_1bit, arm_lshrdi3_1bit, not_shiftsi,
14884 not_shiftsi_compare0, not_shiftsi_compare0_scratch, arm_one_cmplsi2,
14885 thumb1_one_cmplsi2, notsi_compare0, notsi_compare0_scratch,
14886 arm_zero_extendsidi2, arm_extendsidi2, thumb1_movdi_insn,
14887 arm_movsi_insn, movhi_insn_arch4, movhi_bytes, arm_movqi_insn,
14888 thumb1_movqi_insn arm32_movhf, thumb1_movhf, arm_movsf_soft_insn,
14889 thumb1_movsf_insn, thumb_movdf_insn, mov_scc, mov_negscc, mov_notscc,
14890 movsicc_insn, movsfcc_soft_insn, and_scc, cond_move, if_move_not,
14891 if_not_move, if_shift_move, if_move_shift, if_shift_shift,
14892 if_not_arith, if_arith_not, cond_move_not): Likewise.
14894 2010-08-23 Michael Meissner <meissner@linux.vnet.ibm.com>
14896 * config/rs6000/rs6000-protos.h (rs6000_address_for_fpconvert):
14898 (rs6000_allocate_stack_temp): Ditto.
14899 (rs6000_expand_convert_si_to_sfdf): Ditto.
14901 * config/rs6000/rs6000.c (rs6000_override_options): Adjust long
14902 line. Update the options set if power6 or power7 server/embedded
14903 type options are used. If we give a warning for no vsx under
14904 -mcpu=power7 -mno-altivec, mark -mvsx as an explicit option.
14905 (rs6000_allocate_stack_temp): New function to allocate a stack
14906 tempoary and adjust the address so it meets either REG+OFFSET or
14907 REG+REG addressing requirements.
14908 (rs6000_address_for_fpconvert): Adjust REG+OFFSET addresses so
14909 that they can be used with the LFIWAX/LFIWZX instrucitons.
14910 (rs6000_expand_convert_si_to_sfdf): New helper funciton for
14911 converting signed/unsigned SImode to either SFmode/DFmode.
14913 * config/rs6000/rs6000.h (TARGET_FCFID): New macros to determine
14914 whether certain instructions can be generated.
14915 (TARGET_FCTIDZ): Ditto.
14916 (TARGET_STFIWX): Ditto.
14917 (TARGET_LFIWAX): Ditto.
14918 (TARGET_LFIWZX): Ditto.
14919 (TARGET_FCFIDS): Ditto.
14920 (TARGET_FCFIDU): Ditto.
14921 (TARGET_FCFIDUS): Ditto.
14922 (TARGET_FCTIDUZ): Ditto.
14923 (TARGET_FCTIWUZ): Ditto.
14925 * config/rs6000/rs6000.md (UNSPEC_FCTIW): New unspec constants.
14926 (UNSPEC_FCTID): Ditto.
14927 (UNSPEC_LFIWAX): Ditto.
14928 (UNSPEC_LFIWZX): Ditto.
14929 (UNSPEC_FCTIWUZ): Ditto.
14930 (rreg): Use correct constraints.
14931 (SI_CONVERT_FP): New mode attribute for floating point conversion
14933 (E500_CONVERT): Ditto.
14934 (lfiwax): New insns for converting from integer to floating point
14935 utilizing newer instructions. Attempt to optimize conversions
14936 that come from memory so that we don't load the value into a GPR,
14937 spill it to the stack and reload it into a FPR.
14938 (floatsi<mode>2_lfiwax): Ditto.
14939 (floatsi<mode>2_lfiwax_mem): Ditto.
14940 (floatsi<mode>2_lfiwax_mem2): Ditto.
14942 (floatunssi<mode>2_lfiwzx): Ditto.
14943 (floatunssi<mode>2_lfiwzx_mem): Ditto.
14944 (floatunssi<mode>2_lfiwzx_mem2): Ditto.
14945 (floatdidf2_mem): Ditto.
14946 (floatunsdidf2_fcfidu): Ditto.
14947 (floatunsdidf2_mem): Ditto.
14948 (floatunsdisf2): Ditto.
14949 (floatunsdisf2_fcfidus): Ditto.
14950 (floatunsdisf2_mem): Ditto.
14951 (floatsidf2): Add support for LFIWAX/LFIWZX/FCFIDS/FCFIDU/FCFIDUS.
14952 Use FCFID on 32-bit hosts that support it.
14953 (floatsidf2_internal): Ditto.
14954 (floatunssisf2): Ditto.
14955 (floatunssidf2): Ditto.
14956 (floatunssidf2_internal): Ditto.
14957 (floatsisf2): Ditto.
14958 (floatdidf2): Ditto.
14959 (floatdidf2_fpr): Ditto.
14960 (floatunsdidf2): Ditto.
14961 (floatdisf2): Ditto.
14962 (floatdisf2_fcfids): Ditto.
14963 (floatdisf2_internal1): Ditto.
14964 (fixuns_truncsfsi2): Delete, merge into common pattern for both
14965 SF/DF. Add power7 support.
14966 (fix_truncsfsi2): Ditto.
14967 (fixuns_truncdfsi2): Ditto.
14968 (fixuns_truncdfdi2): Ditto.
14969 (fix_truncdfsi2): Ditto.
14970 (fix_truncdfsi2_internal): Ditto.
14971 (fix_truncdfsi2_internal_gfxopt): Ditto.
14972 (fix_truncdfsi2_mfpgpr): Ditto.
14974 (btruncdf2): Ditto.
14975 (btruncdf2_fpr): Ditto.
14976 (btructsf2): Ditto.
14978 (ceildf2_fpr): Ditto.
14981 (floordf2_fpr): Ditto.
14984 (rounddf2_fpr): Ditto.
14986 (fix_trunc<mode>si2): Combine SF/DF conversion into one insn.
14987 (fix_trunc<mode>di2): Ditto.
14988 (fixuns_trunc<mode>si2): Ditto.
14989 (fixuns_trunc<mode>di2): Ditto.
14990 (fctiwz_<mode>): Ditto.
14991 (btrunc<mode>2): Ditto.
14992 (btrunc<mode>2_fpr): Ditto.
14993 (ceil<mode>2): Ditto.
14994 (ceil<mode>2_fpr): Ditto.
14995 (floor<mode>2): Ditto.
14996 (float<mode>2_fpr): Ditto.
14997 (round<mode>2): Ditto.
14998 (round<mode>2_fpr): Ditto.
14999 (fix_trunc<mode>si2_stfiwx): New insn for machines with STFIWX.
15000 (fixuns_trunc<mode>si2_stfiwx): Ditto.
15001 (fix_truncdfsi2_internal): Ditto.
15002 (fix_trunc<mode>si2_mem): Combiner pattern to eliminate storing
15003 converted value on stack, loaded into GPR, and then stored into
15004 the final destination.
15005 (fix_trunc<mode>di2_fctidz): New pattern for targets supporting
15007 (lrint<mode>di2): New insn, provide the lrint builtin functions.
15008 (ftruncdf2): Delete, unused.
15009 (fix_trunctfsi2_internal): Use gen_fctiwz_df, not gen_fctiwz.
15011 * config/rs6000/vsx.md (toplevel): Update copyright year.
15012 (VSr2): Use "ws" contraint for DFmode, not "!r#r".
15015 2010-08-27 Basile Starynkevitch <basile@starynkevitch.net>
15016 Jeremie Salvucci <jeremie.salvucci@free.fr>
15018 * gengtype.c (output_type_enum): Test the right union member.
15020 2010-08-27 Uros Bizjak <ubizjak@gmail.com>
15023 * config/i386/sse.md (sse4_1_extendv8qiv8hi2): Also accept memory
15024 operands for operand 1.
15025 (sse4_1_extendv4qiv4si2): Ditto.
15026 (sse4_1_extendv2qiv2di2): Ditto.
15027 (sse4_1_extendv4hiv4si2): Ditto.
15028 (sse4_1_extendv2hiv2di2): Ditto.
15029 (sse4_1_extendv2siv2di2): Ditto.
15030 (sse4_1_zero_extendv8qiv8hi2): Ditto.
15031 (sse4_1_zero_extendv4qiv4si2): Ditto.
15032 (sse4_1_zero_extendv2qiv2di2): Ditto.
15033 (sse4_1_zero_extendv4hiv4si2): Ditto.
15034 (sse4_1_zero_extendv2hiv2di2): Ditto.
15035 (sse4_1_zero_extendv2siv2di2): Ditto.
15036 (*sse4_1_extendv8qiv8hi2): Remove insn pattern.
15037 (*sse4_1_extendv4qiv4si2): Ditto.
15038 (*sse4_1_extendv2qiv2di2): Ditto.
15039 (*sse4_1_extendv4hiv4si2): Ditto.
15040 (*sse4_1_extendv2hiv2di2): Ditto.
15041 (*sse4_1_extendv2siv2di2): Ditto.
15042 (*sse4_1_zero_extendv8qiv8hi2): Ditto.
15043 (*sse4_1_zero_extendv4qiv4si2): Ditto.
15044 (*sse4_1_zero_extendv2qiv2di2): Ditto.
15045 (*sse4_1_zero_extendv4hiv4si2): Ditto.
15046 (*sse4_1_zero_extendv2hiv2di2): Ditto.
15047 (*sse4_1_zero_extendv2siv2di2): Ditto.
15049 2010-08-27 Nathan Froyd <froydnj@codesourcery.com>
15051 * config/mips/mips-protos.h (mips_function_arg_advance): Delete
15052 (mips_function_arg): Delete.
15053 (mips_function_arg_boundary): Take a const_tree.
15054 * config/mips/mips.c (mips_function_arg_boundary): Likewise.
15055 (mips_arg_info): Likewise.
15056 (mips_setup_incoming_varargs): Call mips_function_arg_advance
15057 instead of FUNCTION_ARG_ADVANCE.
15058 (mips_function_arg_advance): Adjust prototype. Make static.
15059 (mips_function_arg): Likewise.
15060 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
15061 * config/mips/mips.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
15063 2010-08-27 Nathan Froyd <froydnj@codesourcery.com>
15065 * config/rs6000/rs6000.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
15066 * config/rs6000/rs6000-protos.h (function_arg_advance): Delete.
15067 (function_arg): Delete.
15068 (function_arg_boundary): Take a const_tree.
15069 * config/rs6000/rs6000.c (function_arg_boundary): Likewise.
15070 (rs6000_spe_function_arg): Likewise.
15071 (rs6000_parm_start): Likewise.
15072 (rs6000_arg_size): Likewise.
15073 (rs6000_darwin64_record_arg_advance_recurse): Likewise.
15074 (rs6000_darwin64_record_arg): Likewise. Take a bool instead of an int.
15075 (rs6000_mixed_function_arg): Likewise.
15076 (function_arg): Rename to...
15077 (rs6000_function_arg): ...this.
15078 (function_arg_advance): Rename to...
15079 (rs6000_function_arg_advance_1): ...this
15080 (rs6000_function_arg_advance): New function. Call it.
15081 (setup_incoming_varargs): Call rs6000_function_arg_advance_1.
15082 (rs6000_return_in_memory): Adjust call to rs6000_darwin64_record_arg.
15083 (rs6000_function_value): Likewise.
15084 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
15086 2010-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15088 * config/arm/arm.md (enabled): Test the value of arch_enabled
15089 rather than just using it.
15091 2010-08-27 Olivier Hainque <hainque@adacore.com>
15092 Eric Botcazou <ebotcazou@adacore.com>
15094 * dse.c (group_info.base_mem, get_group_info): Use BLKmode to
15095 cover all the possible offsets from this base.
15096 (scan_reads_nospill): Pass base_mem's mode to canon_true_dependence.
15098 2010-08-26 Jakub Jelinek <jakub@redhat.com>
15100 PR tree-optimization/44485
15101 * calls.c (flags_from_decl_or_type): For const or pure
15102 noreturn functions return ECF_LOOPING_CONST_OR_PURE|ECF_NORETURN
15103 together with ECF_CONST resp. ECF_PURE.
15104 * builtins.c (expand_builtin): Use flags_from_decl_or_type
15105 instead of querying flags directly.
15106 * tree-ssa-loop-niter.c (finite_loop_p): Likewise.
15107 * tree-ssa-dce.c (find_obviously_necessary_stmts): Likewise.
15109 2010-08-26 Richard Guenther <rguenther@suse.de>
15111 PR tree-optimization/45255
15112 * tree.c (decl_address_invariant_p): DECL_DLLIMPORT_P statics
15113 and externals are also invariant.
15115 2010-08-25 Jakub Jelinek <jakub@redhat.com>
15117 PR rtl-optimization/44858
15118 * combine.c (try_combine): If recog_for_combine added CLOBBERs to
15119 newi2pat, make sure they don't affect newpat.
15121 PR rtl-optimization/45400
15122 * combine.c (simplify_shift_const_1) <case SUBREG>: Only use
15123 SUBREG_REG if both modes are of MODE_INT class.
15125 2010-08-25 Julian Brown <julian@codesourcery.com>
15127 * config/arm/arm.c (arm_issue_rate): Return 2 for Cortex-A5.
15128 * config/arm/arm.md (generic_sched): No for Cortex-A5.
15129 (generic_vfp): Likewise.
15130 (cortex-a5.md): Include.
15131 * config/arm/cortex-a5.md: New.
15133 2010-08-25 Richard Guenther <rguenther@suse.de>
15135 * alias.c (get_alias_set): Assign a single alias-set to all pointers.
15136 * gimple.c (gimple_get_alias_set): Remove special handling
15139 2010-08-25 Bernd Schmidt <bernds@codesourcery.com>
15141 PR middle-end/45355
15142 * combine.c (try_combine): Use reg_overlap_mentioned_p rather than
15143 dead_or_set_p when computing i0_feeds_i2_n.
15145 * combine.c (find_split_point): Undo canonicalization of multiply-add
15146 to (minus x (mult)) when it seems likely that this will increase the
15147 chances of a split.
15149 2010-08-25 Richard Guenther <rguenther@suse.de>
15152 * lto-streamer.c (lto_record_common_node): Do not mess with
15153 TYPE_CANONICAL when not in lto.
15154 * gimple.c (gimple_register_type): Likewise.
15156 2010-08-25 Richard Guenther <rguenther@suse.de>
15158 PR tree-optimization/45316
15159 * tree-ssa-pre.c (eliminate): Properly clean EH info.
15161 2010-08-25 Richard Guenther <rguenther@suse.de>
15163 PR tree-optimization/45393
15164 * tree-ssa-math-opts.c (execute_cse_sincos_1): Properly transfer
15165 and clean EH info. Avoid SSA update.
15166 (execute_cse_sincos): Cleanup the CFG if it has changed.
15168 2010-08-25 Richard Guenther <rguenther@suse.de>
15170 PR middle-end/45379
15171 * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle
15172 TARGET_MEM_REF in alignment computation.
15174 2010-08-25 Jakub Jelinek <jakub@redhat.com>
15176 PR tree-optimization/45059
15177 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Strip useless
15178 type conversions from newop{1,2}. Assert t is a comparison and
15179 newop{1,2} after the stripping are gimple vals.
15181 2010-08-25 Tejas Belagod <tejas.belagod@arm.com>
15183 * config/arm/iterators.md (VU, SE, V_widen_l): New.
15184 (V_unpack, US): New.
15185 * config/arm/neon.md (vec_unpack<US>_hi_<mode>): Expansion for vmovl.
15186 (vec_unpack<US>_lo_<mode>): Likewise.
15187 (neon_vec_unpack<US>_hi_<mode>): Instruction pattern for vmovl.
15188 (neon_vec_unpack<US>_lo_<mode>): Likewise.
15189 (vec_widen_<US>mult_lo_<mode>): Expansion for vmull.
15190 (vec_widen_<US>mult_hi_<mode>): Likewise.
15191 (neon_vec_<US>mult_lo_<mode>"): Instruction pattern for vmull.
15192 (neon_vec_<US>mult_hi_<mode>"): Likewise.
15193 (neon_unpack<US>_<mode>): Widening move intermediate step for
15194 vectorizing without -mvectorize-with-neon-quad.
15195 (neon_vec_<US>mult_<mode>): Widening multiply intermediate step
15196 for vectorizing without -mvectorize-with-neon-quad.
15197 * config/arm/predicates.md (vect_par_constant_high): Check for
15198 high-half lanes of a vector.
15199 (vect_par_constant_low): Check for low-half lanes of a vector.
15201 2010-08-24 Sebastian Pop <sebastian.pop@amd.com>
15203 * tree-if-conv.c (struct ifc_dr): New.
15205 (DR_WRITTEN_AT_LEAST_ONCE): New.
15206 (DR_RW_UNCONDITIONALLY): New.
15207 (memref_read_or_written_unconditionally): Use the cached values
15209 (write_memref_written_at_least_once): Same.
15210 (if_convertible_loop_p): Initialize and free DR->aux fields.
15212 2010-08-24 Sebastian Pop <sebastian.pop@amd.com>
15214 * gimple.c (gimple_could_trap_p_1): Not static anymore.
15215 Pass an extra bool parameter include_mem.
15216 (gimple_could_trap_p): Adjust call to gimple_could_trap_p_1.
15217 (gimple_assign_rhs_could_trap_p): Same.
15218 * gimple.h (gimple_could_trap_p_1): Declared.
15219 * tree-data-ref.h (same_data_refs_base_objects): New.
15220 (same_data_refs): New.
15221 * tree-if-conv.c (memrefs_read_or_written_unconditionally): New.
15222 (write_memrefs_written_at_least_once): New.
15223 (ifcvt_memrefs_wont_trap): New.
15224 (operations_could_trap): New.
15225 (ifcvt_could_trap_p): New.
15226 (if_convertible_gimple_assign_stmt_p): Call ifcvt_could_trap_p.
15227 Gets a vector of data refs.
15228 (if_convertible_stmt_p): Same.
15229 (if_convertible_loop_p_1): New.
15230 (if_convertible_loop_p): Call if_convertible_loop_p_1.
15232 2010-08-24 Sebastian Pop <sebastian.pop@amd.com>
15234 * common.opt (ftree-loop-if-convert-stores): New flag.
15235 * doc/invoke.texi (ftree-loop-if-convert-stores): Documented.
15236 * tree-if-conv.c (ifc_temp_var): Pass an extra parameter GSI. Insert
15237 the created statement before GSI.
15238 (if_convertible_phi_p): Allow virtual phi nodes when
15239 flag_loop_if_convert_stores is set.
15240 (if_convertible_gimple_assign_stmt_p): Allow memory reads and writes
15241 Do not handle types that do not match is_gimple_reg_type.
15242 Remove loop and bb parameters. Call gimple_could_trap_p instead of
15243 when flag_loop_if_convert_stores is set, as LHS can contain
15245 (if_convertible_stmt_p): Remove loop and bb parameters. Update calls
15246 to if_convertible_gimple_assign_stmt_p.
15247 (if_convertible_loop_p): Update call to if_convertible_stmt_p.
15248 (replace_phi_with_cond_gimple_assign_stmt): Renamed
15249 predicate_scalar_phi. Do not handle virtual phi nodes.
15250 (ifconvert_phi_nodes): Renamed predicate_all_scalar_phis.
15251 Call predicate_scalar_phi.
15252 (insert_gimplified_predicates): Insert the gimplified predicate of a BB
15253 just after the labels for flag_loop_if_convert_stores, otherwise
15254 insert the predicate in the end of the BB.
15255 (predicate_mem_writes): New.
15256 (combine_blocks): Call predicate_all_scalar_phis. When
15257 flag_loop_if_convert_stores is set, call predicate_mem_writes.
15258 (tree_if_conversion): Call mark_sym_for_renaming when
15259 flag_loop_if_convert_stores is set.
15260 (main_tree_if_conversion): Return TODO_update_ssa_only_virtuals when
15261 flag_loop_if_convert_stores is set.
15263 2010-08-24 Anatoly Sokolov <aesok@post.ru>
15265 * config/pa/pa.c (hppa_register_move_cost, pa_libcall_value,
15266 pa_function_value_regno_p, pa_print_operand_punct_valid_p): New.
15267 (pa_function_value): Make static.
15268 (override_options): Rename to...
15269 (pa_option_override): ...this. Make static.
15270 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_REGISTER_MOVE_COST,
15271 TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P,
15272 TARGET_OPTION_OVERRIDE): Define.
15273 * config/pa/pa.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P,
15274 LIBCALL_VALUE, REGISTER_MOVE_COST, PRINT_OPERAND_PUNCT_VALID_P):
15276 * config/pa/pa-protos.h (override_options): Remove.
15278 2010-08-24 Richard Guenther <rguenther@suse.de>
15280 PR middle-end/45379
15281 * tree-ssa-address.c (create_mem_ref_raw): Drop to MEM_REF
15282 if addr->index is NULL or zero.
15283 * tree-ssa-alias.c (indirect_refs_may_alias_p): Handle
15284 TARGET_MEM_REF more properly.
15285 (indirect_ref_may_alias_decl_p): Likewise.
15286 * emit-rtl.c (set_mem_attributes_minus_bitpos): Keep TARGET_MEM_REFs.
15287 * alias.c (ao_ref_from_mem): Handle TARGET_MEM_REF more properly.
15289 2010-08-23 Anatoly Sokolov <aesok@post.ru>
15291 * config/m32c/m32c.c (m32c_function_value_regno_p): Make static.
15292 (m32c_override_options): Rename to...
15293 (m32c_option_override): ...this. Make static.
15294 (TARGET_FUNCTION_VALUE_REGNO_P, TARGET_OPTION_OVERRIDE): Define.
15295 * config/m32c/m32c.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P):
15297 * config/m32c/m32c-protos.h (m32c_override_options,
15298 m32c_function_value_regno_p): Remove.
15300 2010-08-23 Changpeng Fang <changpeng.fang@amd.com>
15302 * tree-ssa-loop-prefetch.c (gather_memory_references_ref) :
15303 Fix a typo in a previous commit.
15305 2010-08-23 Kai Tietz <kai.tietz@onevision.com>
15307 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost):
15308 Pre-initialize innerloop_iters to one.
15310 2010-08-23 Changpeng Fang <changpeng.fang@amd.com>
15312 * tree-flow.h (may_be_nonaddressable_p): New definition. Make the
15313 existing static function global.
15315 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): This function
15316 is changed to global.
15318 * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Call
15319 may_be_nonaddressable_p on base, and don't collect this reference
15320 if the address of the base could not be taken.
15322 2010-08-23 Michael Meissner <meissner@linux.vnet.ibm.com>
15324 * config/rs6000/rs6000.opt (-mveclibabi=mass): New option to
15325 enable the compiler to autovectorize mathmetical functions for
15326 power7 using the Mathematical Acceleration Subsystem library.
15328 * config/rs6000/rs6000.c (rs6000_veclib_handler): New variable to
15329 handle which vector math library we have.
15330 (rs6000_override_options): Add -mveclibabi=mass support.
15331 (rs6000_builtin_vectorized_libmass): New function to handle auto
15332 vectorizing math functions that are in the MASS library.
15333 (rs6000_builtin_vectorized_function): Call it.
15335 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
15338 2010-08-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15341 * gthr-posix.h (__gthread_active_init): Delete.
15342 (__gthread_active_p): Do activity check here.
15343 Don't include errno.h on hppa-hpux. Update comment.
15344 * gthr-posix95.h (__gthread_active_init): Delete.
15345 (__gthread_active_p): Do activity check here.
15346 Don't include errno.h on hppa-hpux. Update comment.
15347 * config.gcc (hppa[12]*-*-hpux11*): Define extra_parts.
15348 * config/pa/pa64-hpux.h (LIB_SPEC): When -static is specified, only
15349 add -lpthread when -mt or -pthread is specified.
15350 * config/pa/pa-hpux11.h (LIB_SPEC): likewise.
15351 (LINK_GCC_C_SEQUENCE_SPEC): Define.
15352 * config/pa/t-pa-hpux11 (LIBGCCSTUB_OBJS): Define.
15353 (stublib.c, pthread_default_stacksize_np-stub.o,
15354 pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o,
15355 $(T)libgcc_stub.a): Add methods.
15356 * config/pa/t-pa64 (LIBGCCSTUB_OBJS): Add pthread stubs.
15357 (stublib.c, pthread_default_stacksize_np-stub.o,
15358 pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o): Add methods.
15359 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
15360 pthread_mutex_unlock): New stubs.
15362 2010-08-22 Joseph Myers <joseph@codesourcery.com>
15364 * Makefile.in (gccspec.o, cppspec.o): Update dependencies.
15365 * common.opt (L, nodefaultlibs, nostdlib, pg, static): New
15367 * config/avr/avr.h (LIBSTDCXX): Remove initial "-l".
15368 * config/freebsd.h (MATH_LIBRARY_PROFILE): Remove initial "-l".
15369 * config/i386/djgpp.h (LIBSTDCXX): Remove initial "-l".
15370 * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove initial "-l".
15371 * config/s390/tpf.h (MATH_LIBRARY, LIBSTDCXX): Remove initial
15373 * cppspec.c: Include opts.h.
15374 (lang_specific_driver): Use cl_decoded_option structures.
15375 * doc/tm.texi.in (MATH_LIBRARY): Update documentation.
15376 * doc/tm.texi: Regenerate.
15377 * gcc.c (translate_options): Translate -d to -foutput-class-dir=.
15378 (driver_handle_option): Allow driver options needing no special
15380 (process_command): Decode options before call to
15381 lang_specific_driver. Pass decoded options to
15382 lang_specific_driver.
15383 * gcc.h (lang_specific_driver): Update prototype.
15384 * gccspec.c: Include opts.h.
15385 (lang_specific_driver): Use cl_decoded_option structures.
15386 * opts-common.c (option_ok_for_language, generate_option,
15387 generate_option_input_file): New.
15388 (decode_cmdline_option): Use option_ok_for_language.
15389 (decode_cmdline_options_to_array): Use generate_option_input_file.
15390 (handle_generated_option): Use generate_option.
15391 * opts.h (generate_option, generate_option_input_file): Declare.
15393 2010-08-22 Anatoly Sokolov <aesok@post.ru>
15395 * config/mips/mips.c (mips_override_options): Rename to...
15396 (mips_option_override): ...this. Make static.
15397 (TARGET_OPTION_OVERRIDE): Define.
15398 (mips_in_small_data_p): Update comment.
15399 * config/mips/mips.h (OVERRIDE_OPTIONS): Remove.
15400 (FIXED_REGISTERS): Update comment.
15401 * config/mips/mips-protos.h (mips_override_options): Remove.
15403 2010-08-21 Olivier Hainque <hainque@adacore.com>
15405 * config/rs6000/vxworks.h (TARGET_OS_CPP_BUILTINS): Define __PPC__.
15407 2010-08-21 Olivier Hainque <hainque@adacore.com>
15409 * config/rs6000/vxworks.h (PREFERRED_STACK_BOUNDARY,
15410 ABI_STACK_BOUNDARY): Ensure STACK_BOUNDARY is honored despite EABI.
15412 2010-08-20 Jan Hubicka <jh@suse.cz>
15414 * tree-pass.h (pass_ipa_cdtor_merge): New function.
15415 * cgraphunit.c (static_ctors, static_dtors): Move to ipa.c; make
15417 (record_cdtor_fn): Move to ipa.c; do not test for
15419 (build_cdtor): Move to ipa.c; add code avoiding construction
15420 when target have ctors/dtors and there is only one ctor/dtor at given
15422 (compare_ctor, compare_dtor): Move to ipa.c; use DECL_UID to stabilize
15423 sort; reverse order of constructors.
15424 (cgraph_build_cdtor_fns): Move to ipa.c; rename to build_cdtor_fns.
15425 (cgraph_finalize_function): Do not call record_cdtor_fn.
15426 (cgraph_finalize_compilation_unit): Do not call cgraph_build_cdtor_fns.
15427 (cgraph_build_static_cdtor): Move to ipa.c.
15428 * ipa.c: Include target.h and tree-iterator.h.
15429 (cgraph_build_static_cdtor, static_ctors, static_dtors,
15430 record_cdtor_fn, build_cdtor, compare_ctor, compare_dtor,
15431 build_cdtor_fns, ipa_cdtor_merge, gate_ipa_cdtor_merge,
15432 pass_ipa_cdtor_merge): New.
15433 * passes.c (init_optimization_passes): Enqueue pass_ipa_cdtor_merge.
15434 * ipa-prop.c (update_indirect_edges_after_inlining): Avoid out of
15437 2010-08-20 Jan Hubicka <jh@suse.cz>
15441 * cgraph.h (cgraph_only_called_directly_p,
15442 cgraph_can_remove_if_no_direct_calls_and_refs_p): Handle
15444 * cgraphunit.c (cgraph_decide_is_function_needed): Static cdtors
15446 (cgraph_finalize_function): Static cdtors are reachable.
15447 (cgraph_mark_functions_to_output): Use cgraph_only_called_directly_p.
15449 2010-08-20 Jan Hubicka <jh@suse.cz>
15451 * lto-cgraph.c (lto_output_edge): Use gimple_has_body_p instead of
15453 * lto-streamer-out.c (lto_output): Likewise.
15454 * passes.c (ipa_write_optimization_summaries): Initialize statement
15457 2010-08-20 Olivier Hainque <hainque@adacore.com>
15459 * tree.h (alias_diag_flags): New enum.
15460 (alias_pair): Add an 'emitted_diags' field.
15461 * varasm.c (finish_aliases_1): Honor and update p->emitted_diags.
15462 (assemble_alias): Initialize emitted_diags of new pairs.
15464 2010-08-20 Eric Botcazou <ebotcazou@adacore.com>
15466 * config/rs6000/aix.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
15467 * config/rs6000/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
15468 * config/rs6000/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
15469 (STACK_CHECK_PROTECT): Define.
15470 * config/rs6000/rs6000.c (rs6000_emit_probe_stack_range): New function.
15471 (output_probe_stack_range): Likewise.
15472 (rs6000_emit_prologue): Invoke rs6000_emit_probe_stack_range if static
15473 builtin stack checking is enabled.
15474 * config/rs6000/rs6000-protos.h (output_probe_stack_range): Declare.
15475 * config/rs6000/rs6000.md (UNSPECV_PROBE_STACK_RANGE): New constant.
15476 (probe_stack_range): New insn.
15478 2010-08-20 H.J. Lu <hongjiu.lu@intel.com>
15481 * config/i386/emmintrin.h (_mm_extract_epi16): Cast to unsigned
15484 * config/i386/smmintrin.h (_mm_extract_epi8): Cast to unsigned
15487 2010-08-20 Jakub Jelinek <jakub@redhat.com>
15490 * config/i386/sse.md (*sse4_1_pextrb): Add SWI48 mode iterator
15491 to cover zero extension into 64-bit register.
15492 (*sse2_pextrw): Likewise.
15493 (*sse4_1_pextrd_zext): New insn.
15495 2010-08-20 Iain Sandoe <iains@gcc.gnu.org>
15497 revert r163410, partially revert r163267.
15498 * config/rs6000/darwin.h (LIB_SPEC): Remove.
15499 * config/darwin.h (REAL_LIBGCC_SPEC): Link lgcc for all
15502 2010-08-20 Jakub Jelinek <jakub@redhat.com>
15504 PR middle-end/44974
15505 * builtins.c (expand_builtin): Don't optimize away
15506 calls to DECL_LOOPING_CONST_OR_PURE_P builtins.
15508 2010-08-20 Uros Bizjak <ubizjak@gmail.com>
15510 * config/i386/i386.md (ashift %rsp splitter): Remove splitter.
15511 (pro_epilogue_adjust_stack_di_2): Use "l" constraint for
15512 alternative 1 of operand 2.
15514 2010-08-20 Jakub Jelinek <jakub@redhat.com>
15515 Paolo Bonzini <bonzini@gnu.org>
15517 * simplify-rtx.c (simplify_unary_operation_1): Optimize
15518 (sign_extend (zero_extend (...)) and
15519 ({sign,zero}_extend (lshiftrt (ashift X (const_int I)) (const_int I))).
15521 2010-08-20 Jakub Jelinek <jakub@redhat.com>
15523 PR rtl-optimization/45353
15524 * sel-sched-ir.c (sel_bb_head): Return NULL even if next_nonnote_insn
15525 after bb_note is a BARRIER.
15527 2010-08-20 Iain Sandoe <iains@gcc.gnu.org>
15529 * config/rs6000/darwin.h (LIB_SPEC): New. Provide saveFP/restFP by
15532 2010-08-20 Jakub Jelinek <jakub@redhat.com>
15533 Michael Matz <matz@suse.de>
15535 * tree-ssa-address.c (tree_mem_ref_addr): Convert offset to sizetype.
15537 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
15539 * ggc-common.c (ggc_mark_root_tab): New function, split out from...
15540 (ggc_mark_roots): ...here.
15542 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
15544 * vec.h (FOR_EACH_VEC_ELT): Define.
15545 * c-decl.c: Use it.
15546 * cfgloop.c: Likewise.
15547 * cfgloopmanip.c: Likewise.
15548 * cgraph.c: Likewise.
15549 * cgraphunit.c: Likewise.
15550 * combine.c: Likewise.
15551 * config/bfin/bfin.c: Likewise.
15552 * config/mips/mips.c: Likewise.
15553 * config/rs6000/rs6000.c: Likewise.
15554 * dbxout.c: Likewise.
15555 * df-scan.c: Likewise.
15556 * dominance.c: Likewise.
15558 * dwarf2out.c: Likewise.
15559 * except.c: Likewise.
15560 * expr.c: Likewise.
15561 * function.c: Likewise.
15562 * gcse.c: Likewise.
15563 * genattr.c: Likewise.
15564 * ggc-common.c: Likewise.
15565 * gimplify.c: Likewise.
15566 * graphite-blocking.c: Likewise.
15567 * graphite-clast-to-gimple.c: Likewise.
15568 * graphite-dependences.c: Likewise.
15569 * graphite-interchange.c: Likewise.
15570 * graphite-poly.c: Likewise.
15571 * graphite-scop-detection.c: Likewise.
15572 * graphite-sese-to-poly.c: Likewise.
15573 * graphite.c: Likewise.
15574 * haifa-sched.c: Likewise.
15575 * ifcvt.c: Likewise.
15576 * implicit-zee.c: Likewise.
15577 * ipa-prop.c: Likewise.
15578 * ipa-struct-reorg.c: Likewise.
15580 * ira-build.c: Likewise.
15581 * ira-color.c: Likewise.
15582 * ira-emit.c: Likewise.
15583 * lambda-code.c: Likewise.
15584 * loop-invariant.c: Likewise.
15585 * loop-unroll.c: Likewise.
15586 * lower-subreg.c: Likewise.
15587 * lto-cgraph.c: Likewise.
15588 * lto-opts.c: Likewise.
15589 * lto-streamer-in.c: Likewise.
15590 * lto-streamer-out.c: Likewise.
15591 * lto-streamer.c: Likewise.
15592 * lto-symtab.c: Likewise.
15593 * matrix-reorg.c: Likewise.
15594 * opts.c: Likewise.
15595 * predict.c: Likewise.
15596 * print-tree.c: Likewise.
15597 * sdbout.c: Likewise.
15598 * sel-sched-dump.c: Likewise.
15599 * sel-sched-ir.c: Likewise.
15600 * sel-sched.c: Likewise.
15601 * sese.c: Likewise.
15602 * stor-layout.c: Likewise.
15603 * tree-cfg.c: Likewise.
15604 * tree-cfgcleanup.c: Likewise.
15605 * tree-chrec.c: Likewise.
15606 * tree-data-ref.c: Likewise.
15607 * tree-emutls.c: Likewise.
15608 * tree-inline.c: Likewise.
15609 * tree-into-ssa.c: Likewise.
15610 * tree-loop-distribution.c: Likewise.
15611 * tree-loop-linear.c: Likewise.
15612 * tree-mudflap.c: Likewise.
15613 * tree-outof-ssa.c: Likewise.
15614 * tree-parloops.c: Likewise.
15615 * tree-predcom.c: Likewise.
15616 * tree-pretty-print.c: Likewise.
15617 * tree-scalar-evolution.c: Likewise.
15618 * tree-ssa-live.c: Likewise.
15619 * tree-ssa-loop-im.c: Likewise.
15620 * tree-ssa-loop-ivcanon.c: Likewise.
15621 * tree-ssa-loop-ivopts.c: Likewise.
15622 * tree-ssa-loop-manip.c: Likewise.
15623 * tree-ssa-loop-niter.c: Likewise.
15624 * tree-ssa-loop-prefetch.c: Likewise.
15625 * tree-ssa-phiprop.c: Likewise.
15626 * tree-ssa-pre.c: Likewise.
15627 * tree-ssa-reassoc.c: Likewise.
15628 * tree-ssa-sccvn.c: Likewise.
15629 * tree-ssa-structalias.c: Likewise.
15630 * tree-ssa.c: Likewise.
15631 * tree-vect-data-refs.c: Likewise.
15632 * tree-vect-loop-manip.c: Likewise.
15633 * tree-vect-loop.c: Likewise.
15634 * tree-vect-patterns.c: Likewise.
15635 * tree-vect-slp.c: Likewise.
15636 * tree-vect-stmts.c: Likewise.
15637 * tree-vrp.c: Likewise.
15638 * tree.c: Likewise.
15639 * value-prof.c: Likewise.
15640 * var-tracking.c: Likewise.
15641 * varasm.c: Likewise.
15642 * vmsdbgout.c: Likewise.
15644 2010-08-19 Nathan Sidwell <nathan@codesourcery.com>
15645 Richard Guenther <richard.guenther@gmail.com>
15647 * gimplify.c (gimplify_modify_expr): When assigning to volatiles,
15648 copy the src value and return a copy.
15649 * doc/extend.texi (Volatiles): Move from C++ to C and expand.
15650 (C++ Volatiles): Adjust to describe C++ semantics only.
15652 2010-08-20 Joseph Myers <joseph@codesourcery.com>
15654 * doc/tm.texi.in (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Document to
15655 be zero or nonzero.
15656 * doc/tm.texi: Regenerate.
15657 * defaults.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define.
15658 * df-scan.c (df_get_exit_block_use_set), reginfo.c
15659 (init_reg_sets_1), rtlanal.c (rtx_unstable_p, rtx_varies_p):
15660 Handle new PIC_OFFSET_TABLE_REG_CALL_CLOBBERED semantics.
15661 * config/ia64/ia64.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define
15664 2010-08-20 Olivier Hainque <hainque@adacore.com>
15666 * config/sparc/sparc.c (sparc_asm_function_epilogue): Don't output
15667 an extra nop past a sibling call at the very end.
15669 2010-08-19 Bernd Schmidt <bernds@codesourcery.com>
15672 * combine.c (try_combine): Initialize i1_is_used and i2_is_used. Fix
15675 2010-08-19 Nathan Froyd <froydnj@codesourcery.com>
15677 * target.def (function_arg, function_incoming_arg): Remove const
15678 qualifier on CUMULATIVE_ARGS parameter.
15679 * targhooks.h (default_function_arg, default_function_incoming_arg):
15681 * targhooks.c (default_function_arg, default_function_incoming_arg):
15683 * config/i386/i386.c (ix86_function_arg): Likewise.
15685 2010-08-19 Jakub Jelinek <jakub@redhat.com>
15688 * simplify-rtx.c (simplify_unary_operation_1): Optimize nested
15689 SIGN_EXTENDs or ZERO_EXTENDs.
15691 2010-08-19 Bernd Schmidt <bernds@codesourcery.com>
15694 * combine.c (combine_validate_cost): New arg I0. All callers changed.
15695 Take its cost into account if nonnull.
15696 (insn_a_feeds_b): New static function.
15697 (combine_instructions): Look for four-insn combinations.
15698 (can_combine_p): New args PRED2, SUCC2. All callers changed. Take
15699 them into account when computing all_adjacent and looking for other
15701 (combinable_i3pat): New args I0DEST, I0_NOT_IN_SRC. All callers
15702 changed. Treat them like I1DEST and I1_NOT_IN_SRC.
15703 (try_combine): New arg I0. Handle four-insn combinations.
15704 (distribute_notes): New arg ELIM_I0. All callers changed. Treat it
15707 2010-08-19 Jason Merrill <jason@redhat.com>
15710 * gimplify.c (gimplify_init_constructor): Just return GS_UNHANDLED
15712 (gimplify_modify_expr_rhs): Adjust.
15714 2010-08-19 Nathan Froyd <froydnj@codesourcery.com>
15716 * cfgloop.c (get_loop_body_in_bfs_order): Avoid redundant call to
15718 * config/bfin/bifn.c (bfin_discover_loop): Likewise.
15719 * dominance.c (iterate_fix_dominators): Likewise.
15720 * dse.c (set_usage_bits): Likewise.
15721 (set_position_unneeded, record_store): Likewise.
15722 * gimple-fold.c (get_maxval_strlen): Likewise.
15723 * haifa-sched.c (fix_inter_tick, fix_recovery_deps): Likewise.
15724 * ipa-inline.c (update_caller_keys): Likewise.
15725 * ipa-split.c (verify_non_ssa_vars): Likewise.
15726 * ipa-type-escape.c (mark_type, close_type_seen): Likewise.
15727 (close_type_exposed_parameter, close_type_full_escape): Likewise.
15728 (close_addressof_down): Likewise.
15729 * ira-color.c (assign_hard_reg, push_allocno_to_stack): Likewise.
15730 (setup_allocno_left_conflicts_size): Likewise.
15731 (ira_reassign_conflict_allocnos): Likewise.
15732 (ira_reassign_pseudos): Likewise.
15733 * ira-emit.c (change_loop): Likewise.
15734 * loop-invariant.c (mark_regno_live, mark_regno_death): Likewise.
15735 * lto-streamer-out.c (write_symbol): Likewise.
15736 * predict.c (expr_expected_value_1): Likewise.
15737 * regstat.c (regstat_bb_compute_ri): Likewise.
15738 * sel-sched.c (create_block_for_bookkeeping): Likewise.
15739 (track_scheduled_insns_and_blocks, sel_sched_region_1): Likewise.
15740 * stmt.c (expand_case): Likewise.
15741 * tree-eh.c (emit_eh_dispatch): Likewise.
15742 * tree-into-ssa.c (prune_unused_phi_nodes): Likewise.
15743 * tree-loop-distribution.c (make_nodes_having_upstream_mem_writes):
15745 (rdg_flag_vertex, rdg_flag_loop_exits): Likewise.
15746 (rdg_build_components): Likewise.
15747 * tree-object-size.c (collect_object_sizes_for): Likewise.
15748 * tree-sra.c (convert_callers): Likewise.
15749 * tree-ssa-coalesce.c (live_track_add_partition): Likewise.
15750 * tree-ssa-live.c (mark_all_vars_used_1): Likewise.
15751 * tree-ssa-pre.c (bitmap_set_replace_value): Likewise.
15753 2010-08-19 Uros Bizjak <ubizjak@gmail.com>
15755 * config/i386/i386.md (*lea_1): Use P mode iterator.
15756 (lea add splitter): Also handle DImode operands.
15757 (DImode lea add splitter): Use x86_64_immediate_operand for operand 2
15758 predicate. Do not use ix86_lea_for_add_ok.
15759 (zext DImode lea add splitter): Use ix86_lea_for_add_ok.
15760 (lea ashift splitter): Also handle DImode operands.
15761 (DImode lea ashift splitter): Remove splitter.
15763 2010-08-19 Uros Bizjak <ubizjak@gmail.com>
15765 * config/i386/i386.md (*add<SWI:mode>3_cconly_overflow): Do not use
15766 ix86_binary_operator_ok.
15768 2010-08-19 Andrey Belevantsev <abel@ispras.ru>
15770 PR rtl-optimization/44691
15771 * sel-sched.c (count_occurrences_1): Also punt when SUBREG_REG
15774 2010-08-19 Ian Bolton <ian.bolton@arm.com>
15777 * config/arm/arm.c (arm_output_epilogue): Ensure that return
15778 value of size 1-3 is handled correctly.
15780 2010-08-19 Ian Bolton <ian.bolton@arm.com>
15782 * tree-switch-conversion.c (gen_inbound_check): Ensure that the
15783 type for the conditional has wide enough range.
15785 2010-08-18 Uros Bizjak <ubizjak@gmail.com>
15788 * config/i386/i386.md (<any_or:code><SWI:mode>_3): Do not use
15789 ix86_binary_operator_ok.
15791 2010-08-18 Uros Bizjak <ubizjak@gmail.com>
15793 * config/i386/i386.md (*add<mode>_1) <TYPE_LEA>: Split insn to lea.
15794 <default>: Swap operands 1 and 2 for alternative 2 to use existing
15795 code to output insn mnemonic. Fix comment.
15796 (*addsi_1_zext): Add r-r-0 alternative 1.
15797 <TYPE_LEA>: Split insn to lea.
15798 <default>: Handle alternative 1.
15799 (*addhi_1_lea): Add r-r-0 alternative 2. Use cond RTX instead of
15800 multi-level if_then_else RTX to set "type" attribute.
15801 <default>: Handle alternative 2.
15802 (*addqi_1_lea): Add q-q-0 alternative 2 and r-r-0 alternative 4.
15803 Use cond RTX instead of multi-level if_then_else RTX to set
15805 <default>: Handle alternatives 2 and 4.
15806 (lea splitters): Update calls to ix86_lea_for_add_ok.
15808 * config/i386/i386.c (ix86_lea_for_add_ok): Remove unused "code"
15810 * config/i386/i386-protos.h (ix86_lea_for_add_ok): Update prototype.
15812 2010-08-18 Richard Guenther <rguenther@suse.de>
15814 * tree-ssa-uninit.c (find_uninit_use): Disregard debug stmts,
15815 use operand helpers.
15817 2010-08-18 Paolo Bonzini <bonzini@gnu.org>
15819 PR middle-end/45292
15820 * optabs.c (expand_bool_compare_and_swap): Expand pending
15821 pops before trying the optab.
15823 2010-08-18 Yao Qi <yao@codesourcery.com>
15826 * config/arm/arm.c (output_move_double): Fix typo generating
15827 instructions ('ldr'->'str').
15829 2010-08-18 Maxim Kuvyrkov <maxim@codesourcery.com>
15831 PR rtl-optimization/42575
15832 * optabs.c (expand_doubleword_mult): Generate new pseudos to shorten
15835 2010-08-18 Marcus Shawcroft <marcus.shawcroft@arm.com>
15837 * config/arm/arm-protos.h (arm_expand_sync): New.
15838 (arm_output_memory_barrier, arm_output_sync_insn): New.
15839 (arm_sync_loop_insns): New.
15840 * config/arm/arm.c (FL_ARCH7): New.
15841 (FL_FOR_ARCH7): Include FL_ARCH7.
15843 (arm_print_operand): Support %C markup.
15844 (arm_legitimize_sync_memory): New.
15845 (arm_emit, arm_insn_count, arm_count, arm_output_asm_insn): New.
15846 (arm_process_output_memory_barrier, arm_output_memory_barrier): New.
15847 (arm_ldrex_suffix, arm_output_ldrex, arm_output_strex): New.
15848 (arm_output_op2, arm_output_op3, arm_output_sync_loop): New.
15849 (arm_get_sync_operand, FETCH_SYNC_OPERAND): New.
15850 (arm_process_output_sync_insn, arm_output_sync_insn): New.
15851 (arm_sync_loop_insns,arm_call_generator, arm_expand_sync): New.
15852 * config/arm/arm.h (struct arm_sync_generator): New.
15853 (TARGET_HAVE_DMB, TARGET_HAVE_DMB_MCR): New.
15854 (TARGET_HAVE_MEMORY_BARRIER): New.
15855 (TARGET_HAVE_LDREX, TARGET_HAVE_LDREXBHD): New.
15856 * config/arm/arm.md: Include sync.md.
15857 (UNSPEC_MEMORY_BARRIER): New.
15858 (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK): New.
15859 (VUNSPEC_SYNC_OP):New.
15860 (VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): New.
15861 (sync_result, sync_memory, sync_required_value): New attributes.
15862 (sync_new_value, sync_t1, sync_t2): Likewise.
15863 (sync_release_barrier, sync_op): Likewise.
15864 (length): Add logic to length attribute defintion to call
15865 arm_sync_loop_insns when appropriate.
15866 * config/arm/sync.md: New file.
15868 2010-08-17 Jakub Jelinek <jakub@redhat.com>
15870 * tree.h (host_integerp): Add ATTRIBUTE_PURE when not
15871 ENABLE_TREE_CHECKING.
15872 (tree_low_cst): Add inline version for !ENABLE_TREE_CHECKING
15875 2010-08-17 H.J. Lu <hongjiu.lu@intel.com>
15877 * config/i386/i386.c (ix86_lea_for_add_ok): For !TARGET_OPT_AGU
15878 or optimizing for size, always avoid lea if possible.
15880 * config/i386/i386.md (*add<mode>_1): Always avoid lea if possible.
15882 2010-08-17 Iain Sandoe <iains@gcc.gnu.org>
15884 * unwind-dw2-fde-darwin.c (_darwin10_Unwind_FindEnclosingFunction):
15885 Dunmmy function with NULL return unless the target is
15886 OSX >= 10.6 (Darwin10).
15888 2010-08-17 Jack Howarth <howarth@bromo.med.uc.edu>
15890 * gcc.c (spec_function): Add remove-outfile.
15891 (remove_outfile_spec_function): New function.
15892 * config/darwin.h (LINK_SPEC): Add removal of -ldl, -lm and -lpthread.
15893 * invoke.texi (replace-outfile): Document.
15895 2010-08-17 Uros Bizjak <ubizjak@gmail.com>
15898 * reginfo.c (globalize_reg): Reject stack registers.
15900 2010-08-17 Richard Guenther <rguenther@suse.de>
15902 * tree-ssa-dom.c (struct edge_info): Use a VEC for the
15903 list of conditional equivalences.
15904 (free_all_edge_infos): Adjust.
15905 (record_equivalences_from_incoming_edge): Likewise.
15906 (record_cond): Likewise.
15907 (build_and_record_new_cond): Likewise.
15908 (record_conditions): Likewise.
15909 (dom_opt_leave_block): Likewise.
15911 2010-08-17 Kai Tietz <kai.tietz@onevision.com>
15913 * doc/invoke.texi (ms-extension): Add documentation.
15915 2010-08-17 Richard Guenther <rguenther@suse.de>
15917 * fold-const.c (fold_comparison): Strip nops inside POINTER_PLUS_EXPR.
15919 2010-08-17 Shujing Zhao <pearly.zhao@oracle.com>
15922 * c-decl.c (diagnose_uninitialized_cst_member): New function.
15923 (finish_decl): Use it to issue a -Wc++-compat warning about
15924 uninitialized const field in struct or union.
15926 (finish_struct): Use strip_array_types.
15928 2010-08-17 Jakub Jelinek <jakub@redhat.com>
15930 * function.c (block_fragments_nreverse, blocks_nreverse_all): New
15932 (reorder_blocks): Use blocks_nreverse_all instead of blocks_nreverse.
15933 (reorder_blocks_1): Assert BLOCK_FRAGMENT_ORIGIN is NULL. Don't
15934 call block_nreverse here.
15935 (blocks_nreverse): Rename decl temporary to block.
15937 2010-08-16 Bernd Schmidt <bernds@codesourcery.com>
15939 * config/arm/thumb2.md (thumb2_notsi_shiftsi,
15940 thumbsi_notsi_shiftsi_compare0, thumb2_not_shiftsi_compare0_scratch,
15941 thumb2_cmpsi_shiftsi, thumb2_cmpsi_shiftsi_swp, thumb2_arith_shiftsi,
15942 thumb2_arith_shiftsi splitter, thumb2_arith_shiftsi_compare0,
15943 thumb2_arith_shiftsi_compare0_scratch, thumb2_sub_shiftsi,
15944 thumb2_sub_shiftsi_compare0, thumb2_sub_shiftsi_compare0_scratch,
15945 thumb2_iorsi3): Delete.
15946 (orsi_notsi_si): No longer a named pattern.
15947 (orsi_not_shiftsi_si): Renamed from thumb_orsi_not_shiftsi_si.
15948 * config/arm/predicates.md (shift_amount_operand): New.
15949 (mult_operator): New.
15950 * config/arm/arm.md (attr arch, attr arch_enabled, attr insn_enabled,
15951 attr enabled): New.
15952 (iorsi3_insn): Renamed from arm_iorsi3. Handle a new alternative if
15954 (not_shiftsi): Renamed from arm_notsi_shiftsi. Handle Thumb2 variant.
15955 (not_shiftsi_compare0): Likewise, renamed from
15956 arm_notsi_shiftsi_compare0.
15957 (not_shiftsi_compare0_scratch): Likweise, renamed from
15958 arm_notsi_shiftsi_compare0_scratch.
15959 (cmpsi_shiftsi): Likewise, renamed from arm_cmpsi_shiftsi.
15960 (cmpsi_shiftsi_swp): Likewise, renamed from arm_cmpsi_shiftsi_swp.
15961 (arith_shiftsi): Handle Thumb2 variant. Set insn_enabled attribute
15962 so that the register alternative is disabled when the shift_operator
15963 is MULT. Use "M" as the constraint for constants.
15964 (arith_shiftsi splitter): Enable for TARGET_32BIT.
15965 (arith_shiftsi_compare0): Handle Thumb2 variant. Use "M" as the
15966 constraint for constants.
15967 (arith_shiftsi_compare0_scratch): Likewise.
15968 (sub_shiftsi, sub_shiftsi_compare0, sub_shiftsi_compare0_scratch):
15969 Handle Thumb2 alternative.
15971 2010-08-16 Joseph Myers <joseph@codesourcery.com>
15973 * doc/options.texi (NoDriverArg): Document.
15974 * gcc.c (cpp_unique_options): Generate -MD and -MMD instead of
15976 * opt-functions.awk (switch_flags): Handle NoDriverArg.
15977 * opts-common.c (decode_cmdline_option): Ignore CL_SEPARATE
15978 marking for CL_NO_DRIVER_ARG options when in the driver.
15979 * opts.h (CL_NO_DRIVER_ARG): Define.
15980 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
15981 CL_COMMON): Update values.
15983 2010-08-16 Joseph Myers <joseph@codesourcery.com>
15985 * common.opt: Add driver options.
15986 (auxbase, auxbase-strip, quiet, version): Mark RejectDriver.
15987 * doc/options.texi (Driver, RejectDriver): Document.
15988 * gcc.c (pass_exit_codes, print_search_dirs, print_file_name,
15989 print_prog_name, print_multi_directory, print_sysroot,
15990 print_multi_os_directory, print_multi_lib,
15991 print_sysroot_headers_suffix, report_times, combine_flag,
15992 use_pipes, wrapper_string): Remove.
15993 (save_switch, driver_unknown_option_callback,
15994 driver_wrong_lang_callback, driver_post_handling_callback,
15995 driver_handle_option): New.
15996 (spec_lang, last_language_n_infiles): Make file-scope static
15997 instead of local to process_command.
15998 (process_command): Use decode_cmdline_options_to_array and
15999 read_cmdline_option for option processing. Compute have_c in
16000 prescan of decoded options.
16001 * opt-functions.awk (switch_flags): Handle Driver and
16003 (var_type, var_type_struct): Handle Separate options as generating
16004 const char * variables.
16005 * opts-common.c (decode_cmdline_option): Expect CL_COMMON and
16006 CL_TARGET to be passed by caller if required.
16007 (decode_cmdline_options_to_array): Update comment.
16008 * opts.c (complain_wrong_lang): Handle options only valid for the
16010 (decode_options): Update call to decode_cmdline_options_to_array.
16011 (print_filtered_help): Ignore driver-only options.
16012 (print_specific_help): Ignore CL_DRIVER.
16013 (common_handle_option): Don't call print_specific_help for CL_DRIVER.
16014 * opts.h (CL_DRIVER, CL_REJECT_DRIVER): Define.
16015 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_TARGET, CL_COMMON):
16018 2010-08-16 Richard Guenther <rguenther@suse.de>
16020 * tree-cfg.c (verify_types_in_gimple_reference): Verify
16021 TARGET_MEM_REF a bit.
16022 * tree-ssa-address.c (addr_for_mem_ref): Adjust.
16023 (create_mem_ref_raw): Always create TMR_OFFSET, store the
16024 alias pointer type via it.
16025 (copy_mem_ref_info): Adjust.
16026 (maybe_fold_tmr): Likewise.
16027 * tree.c (mem_ref_offset): Also handle TARGET_MEM_REF.
16028 (reference_alias_ptr_type): Likewise.
16029 * tree.def (TARGET_MEM_REF): Remove TMR_ORIGINAL operand,
16030 adjust documentation of TMR_OFFSET operand.
16031 * alias.c (get_alias_set): Do not look at TMR_ORIGINAL but
16032 use the alias pointer type.
16033 * expr.c (expand_expr_real_1): Do not use TMR_ORIGINAL to
16034 initialize mem attrs but the TMR itself.
16035 * tree-eh.c (tree_could_trap_p): Handle TARGET_MEM_REF
16036 similar to MEM_REF.
16037 * tree-pretty-print.c (dump_generic_node): Do not dump TMR_ORIGINAL.
16038 * tree-ssa-loop-ivopts.c (idx_remove_ssa_names): Remove.
16039 (unshare_and_remove_ssa_names): Likewise.
16040 (copy_ref_info): Adjust.
16041 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Simplify
16042 TARGET_MEM_REF case.
16043 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Do not look
16045 * tree.h (TMR_ORIGINAL): Remove.
16046 * gimple.c (get_base_address): For TARGET_MEM_REF with a
16047 symbol return that.
16048 * tree-dfa.c (get_ref_base_and_extent): Handle TARGET_MEM_REF
16050 (get_addr_base_and_unit_offset): Likewise.
16051 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Handle
16053 (indirect_ref_may_alias_decl_p): Likewise.
16054 (refs_may_alias_p_1): Do not bail out for TARGET_MEM_REFs.
16056 2010-08-15 Uros Bizjak <ubizjak@gmail.com>
16058 * doc/invoke.texi (-fomit-frame-pointer): Document that starting
16059 with GCC version 4.6, the default setting (when not optimizing
16060 for size) for 32-bit Linux x86 and 32-bit Darwin x86 targets has
16061 been changed to -fomit-frame-pointer.
16063 2010-08-15 Iain Sandoe <iains@gcc.gnu.org>
16065 * config/darwin.h (REAL_LIBGCC_SPEC): Remove libgcc_s.10.5 stub for
16066 Darwin10. Do not link libgcc.a for Darwin >= 9.
16068 2010-08-15 Gerald Pfeifer <gerald@pfeifer.com>
16070 * doc/invoke.texi (Warning Options): Fix terminology and markup
16071 in the description of how unknown warning options are handled.
16073 2010-08-15 Ira Rosen <irar@il.ibm.com>
16075 * tree-vect-data-refs.c (vect_setup_realignment): Support realignment
16077 (vect_supportable_dr_alignment): Check alignment for basic blocks.
16078 * tree-vect-slp.c (vect_build_slp_tree): Allow different codes for
16080 (vect_bb_vectorization_profitable_p): New function.
16081 (vect_slp_analyze_bb): Call vect_bb_vectorization_profitable_p() to
16082 check if it's worthwhile to vectorize the basic block.
16084 2010-08-14 Anatoly Sokolov <aesok@post.ru>
16086 * reload.h (register_move_cost, memory_move_secondary_cost,
16087 secondary_reload_class): Adjust prototype.
16088 * rtl.h (reg_class_subset_p): Adjust prototype.
16089 * reload.c (secondary_reload_class): Change arguments type from
16090 enum reg_class to reg_class_t. Change result type to reg_class_t.
16091 * reginfo.c (register_move_cost, reg_class_subset_p): Change
16092 arguments type from enum reg_class to reg_class_t.
16093 (memory_move_secondary_cost): Change arguments type from
16094 enum reg_class to reg_class_t. Change type of saved_flags to
16097 * config/mips/mips.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
16099 (mips_cost): Remove.
16100 (struct mips_rtx_cost_data): Moved to mips.c.
16101 * config/mips/mips-protos.h (mips_register_move_cost): Remove.
16102 * config/mips/mips.c (struct mips_rtx_cost_data): Moved from mips.h.
16103 (mips_cost): Make static.
16104 (mips_canonicalize_move_class): Change argument type to reg_class_t.
16105 Change result type to reg_class_t.
16106 (mips_move_to_gpr_cost, mips_move_from_gpr_cost): Change arguments
16107 type from enum reg_class to reg_class_t.
16108 (mips_register_move_cost): Make static. Change arguments
16109 type from enum reg_class to reg_class_t.
16110 (mips_memory_move_cost): New function.
16111 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
16113 2010-08-14 Richard Sandiford <rdsandiford@googlemail.com>
16115 PR rtl-optimization/43358
16116 * ira-lives.c (process_single_reg_class_operands): Adjust the costs
16117 of a single hard register, using simplify_subreg_regno to decide
16118 what that register should be.
16120 2010-08-14 Mingjie Xing <mingjie.xing@gmail.com>
16122 * config/mips/mips.c (CODE_FOR_loongson_pmullh): Define.
16123 * config/mips/loongson.md (UNSPEC_LOONGSON_PMULL): Delete.
16124 (loongson_pmull<V_suffix>): Rename to...
16125 (mul<mode>3): ...this and use MULT instead of an UNSPEC.
16127 2010-08-13 Jack Howarth <howarth@bromo.med.uc.edu>
16129 * configure.ac: Enable -fomit-frame-pointer on darwin
16130 which support dwarf2.
16131 * config/i386/i386.c (override_options): Same.
16133 2010-08-13 Jie Zhang <jie@codesourcery.com>
16135 * config/arm/arm.md (cstoredf4): Only valid when !TARGET_VFP_SINGLE.
16137 2010-08-12 Joseph Myers <joseph@codesourcery.com>
16139 * gcc.c (cpp_unique_options): Generate -MDX and -MMDX from -MD and
16142 2010-08-12 Changpeng Fang <changpeng.fang@amd.com>
16144 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Give
16145 up dot_prod pattern searching if a stmt is outside the loop.
16147 2010-08-12 H.J. Lu <hongjiu.lu@intel.com>
16148 Uros Bizjak <ubizjak@gmail.com>
16150 * config.gcc: Handle --enable-frame-pointer.
16152 * configure.ac: Add --enable-frame-pointer.
16153 * configure: Regenerated.
16155 * config/i386/i386.c (USE_IX86_FRAME_POINTER): Default to 0.
16156 (override_options): If not configured with --enable-frame-pointer,
16157 enable -fomit-frame-pointer (but not for TARGET_MACHO or when
16158 optimizing for size), -fasynchronous-unwind-tables and
16159 -maccumulate-outgoing-args by default.
16161 2010-08-12 Jakub Jelinek <jakub@redhat.com>
16163 * builtins.c (fold_builtin_memory_op): Avoid -Wsign-compare warning.
16165 PR middle-end/45262
16166 * fold-const.c (make_range) <case NEGATE_EXPR>: Punt if
16167 -a overflows. Normalize the range.
16169 2010-08-12 Richard Guenther <rguenther@suse.de>
16171 PR tree-optimization/45232
16172 * tree-ssa-reassoc.c (can_reassociate_p): Disable re-association
16173 for types with undefined overflow.
16174 (reassociate_bb): Allow re-associating of bit and min/max
16175 operations for types with undefined overflow.
16176 * tree-ssa-forwprop.c (associate_plusminus): New function.
16177 (tree_ssa_forward_propagate_single_use_vars): Call it.
16179 2010-08-12 Richard Guenther <rguenther@suse.de>
16181 * tree-flow.h (struct ptr_info_def): Add align and misalign fields.
16182 * tree-ssa-alias.c (get_ptr_info): Move ...
16183 * tree-ssanames.c (get_ptr_info): ... here. Initialize
16184 align and misalign fields conservatively.
16185 * tree-ssa-ccp.c (ccp_finalize): From partially constant pointers
16186 derive alignment information.
16187 (evaluate_stmt): Derive alignment information from memory
16188 allocation functions.
16189 * tree.h (get_pointer_alignment): Make unsigned.
16190 * builtins.c (get_object_alignment): Use alignment information we
16191 have computed for pointers.
16192 (get_pointer_alignment): Likewise. Make conservative, return
16193 and unsigned value.
16194 (expand_builtin_strlen): Adjust.
16195 (expand_builtin_memcmp): Likewise.
16196 (expand_builtin_strcmp): Likewise.
16197 (expand_builtin_strncmp): Likewise.
16198 (get_builtin_sync_mem): Use at least mode alignment.
16199 (fold_builtin_memset): Adjust.
16200 (fold_builtin_memory_op): Likewise.
16201 * gimple-pretty-print.c (dump_gimple_phi): Alongside alias
16202 information also dump pointer alignment knowledge.
16203 (dump_gimple_stmt): Likewise.
16205 2010-08-12 Uros Bizjak <ubizjak@gmail.com>
16207 * config/i386/i386.c (LONG_TYPE_SIZE): Remove.
16208 (EMPTY_FIELD_BOUNDARY): Remove.
16209 * config/i386/i386-interix.h (PCC_BITFIELD_TYPE_MATTERS): Remove.
16211 2010-08-12 Jakub Jelinek <jakub@redhat.com>
16214 * caller-save.c (save_call_clobbered_regs): Only swap notes with
16215 DEBUG_INSNs if n_regs_saved.
16217 2010-08-12 Wei Guozhi <carrot@google.com>
16220 * config/arm/arm.md (andsi3): Change to zero extension if possible.
16221 * config/arm/thumb2.md (thumb2_zero_extendqisi2_v6): Change the name.
16223 2010-08-11 Vladimir Makarov <vmakarov@redhat.com>
16225 * ira-int.h (ira_remove_allocno_copy_from_list): Remove.
16227 * ira-build.c (ira_remove_allocno_copy_from_list): Remove.
16229 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
16231 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add back
16232 the case removed in the previous patch, when the only phi argument
16233 is defined in the same loop as the phi node itself. Handle it
16234 separately from the invariant case by both propagating it outside
16235 the region and replacing the phi node with an assign.
16237 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
16239 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): The only
16240 constant phi nodes with one argument are is_gimple_min_invariant
16241 and SSA_NAME_IS_DEFAULT_DEF.
16243 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
16245 * graphite-cloog-util.c (oppose_constraint):
16246 Extend loop counter's value range (CLOOG_ORG).
16247 (cloog_matrix_to_ppl_constraint): Same.
16248 (new_Constraint_System_from_Cloog_matrix): Same.
16249 * graphite-cloog-compat.h (matrix_num_type): New.
16251 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
16253 * graphite.c (graphite_initialize): Do not initialize
16254 CLooG and initialize the Parma Polyhedra Library
16255 manually when using CLOOG_ORG.
16256 (graphite_finalize): Do not finalize CLooG and finalize
16257 the Parma Polyhedra Library manually when using CLOOG_ORG.
16258 * graphite-cloog-compat.h (cloog_initialize): Hide function
16259 when using CLOOG_ORG.
16260 (cloog_finalize): Same.
16262 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
16264 * graphite-clast-to-gimple.c (free_scattering): Change
16265 CloogDomainList/CloogDomain to CloogScatteringList/CloogScattering
16267 (build_cloog_prog): Same.
16268 * graphite-cloog-compat.h (cloog_domain): Removed.
16269 (cloog_scattering): New.
16270 (cloog_set_domain): Removed.
16271 (cloog_set_scattering): New.
16272 (cloog_next_domain): Removed.
16273 (cloog_next_scattering): New.
16274 (cloog_set_next_domain): Removed.
16275 (cloog_set_next_scattering): New.
16276 (CloogScatteringList): New.
16277 (CloogScattering): New.
16278 (cloog_scattering_free): New.
16279 (new_Cloog_Scattering_from_ppl_Polyhedron): New.
16280 * graphite-cloog-util.c (new_Cloog_Scattering_from_ppl_Polyhedron):
16283 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
16285 * graphite-clast-to-gimple.c (build_cloog_prog): Extend with
16287 (set_cloog_options): Same.
16288 (print_clast_stmt): Same.
16289 (scop_to_clast): Same.
16290 (print_generated_program): Same.
16292 * graphite-clast-to-gimple.h: Include graphite-cloog-util.h.
16293 (scop_to_clast): Extend with CloogState.
16294 * graphite-cloog-util.c: Include graphite-cloog-compat.h
16295 (new_Cloog_Domain_from_ppl_Polyhedron):
16296 Extend with CloogState. Use cloog_domain_from_cloog_matrix (CLOOG_ORG).
16297 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Extend with CloogState.
16298 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
16299 * graphite-cloog-util.h (build_cloog_prog): Same.
16300 * graphite-cloog-copat.h (build_cloog_prog): New.
16302 (cloog_state_malloc): New.
16303 (cloog_state_free): New.
16304 (cloog_loop_malloc): New.
16305 (cloog_options_malloc): New.
16306 (cloog_statement_alloc): New.
16307 (cloog_domain_from_cloog_matrix): New.
16308 (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
16309 (new_Cloog_Domain_from_ppl_Polyhedron): New.
16311 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
16313 * graphite-clast-to-gimple.c (clast_name_to_gcc): Parameter
16314 type of NAME now depends on used CLooG version.
16315 (clast_to_gcc_expression): Replace expr_* with clast_expr_*.
16316 (gcc_type_for_clast_expr): Same.
16317 (print_clast_stmt): Replace pprint with clast_pprint.
16318 * graphite-cloog-compat.h: Provide compatibility macros for
16320 (clast_name_p): New.
16321 (clast_expr_term): New.
16322 (clast_expr_red): New.
16323 (clast_expr_bin): New.
16324 (clast_pprint): New.
16326 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
16328 * graphite-clast-to-gimple.c (set_cloog_options): Make CLooG options
16329 compatible to newer CLooG releases (CLOOG_ORG).
16330 (build_cloog_prog): Pass CloogOptions to more functions (CLOOG_ORG).
16331 (scop_to_clast): Pass CloogOptions to build_cloog_prog (CLOOG_ORG).
16332 * graphite-cloog-compat.h: Add compatibility macros for CLooG Legacy.
16333 (build_cloog_prog) : New.
16334 (cloog_program_extract_scalars): New.
16335 (cloog_program_scatter): New.
16337 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
16339 * graphite-clast-to-gimple.c: Include graphite-cloog-compat.h
16340 conditionally (CLOOG_ORG).
16341 * graphite-cloog-compat.h: New. Include graphite-cloog-compat.h.
16342 (cloog_statement_usr): New.
16343 (cloog_domain): Same.
16344 (cloog_set_domain): Same.
16345 (cloog_next_domain): Same.
16346 (cloog_set_next_domain): Same.
16347 (cloog_program_nb_scattdims): Same.
16348 (cloog_program_set_nb_scattdims): Same.
16349 (cloog_program_names): Same.
16350 (cloog_program_set_names): Same.
16351 (cloog_program_set_context): Same.
16352 (cloog_program_set_loop): Same.
16353 (cloog_program_blocklist): Same.
16354 (cloog_program_set_blocklist): Same.
16355 (cloog_program_scaldims): Same.
16356 (cloog_program_set_scaldims): Same.
16357 (cloog_names_nb_parameters): Same.
16358 (cloog_names_set_nb_parameters): Same.
16359 (cloog_names_parameters): Same.
16360 (cloog_names_set_parameters): Same.
16361 (cloog_names_set_nb_iterators): Same.
16362 (cloog_names_set_iterators): Same.
16363 (cloog_names_set_nb_scattering): Same.
16364 (cloog_names_set_scattering): Same.
16365 (cloog_statement_set_usr): Same.
16366 (cloog_loop_set_next): Same.
16367 (cloog_loop_set_domain): Same.
16368 (cloog_loop_set_block): Same.
16369 (cloog_block_list_next): Same.
16370 (cloog_block_list_set_next):
16371 (cloog_block_list_set_block): Same.
16373 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
16375 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Returns
16377 (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
16378 (rewrite_commutative_reductions_out_of_ssa_loop): Same.
16379 (rewrite_cross_bb_scalar_deps_out_of_ssa): Call scev_reset_htab
16380 when something has been changed.
16381 (rewrite_commutative_reductions_out_of_ssa): Same.
16383 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
16385 * graphite-sese-to-poly.c (propagate_expr_outside_region): Also
16386 handle the case when def is in the sese region.
16387 (rewrite_close_phi_out_of_ssa): Call propagate_expr_outside_region
16388 for invariant expressions.
16389 (rewrite_cross_bb_phi_deps): Removed.
16390 (rewrite_cross_bb_scalar_deps): Also handle GIMPLE_PHI nodes.
16391 (rewrite_cross_bb_scalar_deps_out_of_ssa): Do not call
16392 rewrite_cross_bb_phi_deps.
16394 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
16396 * graphite-sese-to-poly.c
16397 (rewrite_commutative_reductions_out_of_ssa_loop): Call
16398 scev_analyzable_p only on is_gimple_reg
16400 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
16402 * graphite-sese-to-poly.c (propagate_expr_outside_region): New.
16403 (rewrite_close_phi_out_of_ssa): Propagate constant values or
16404 parametric expressions outside the scop region.
16405 (rewrite_cross_bb_scalar_deps): Same.
16406 * sese.c (rename_uses): Use NULL_TREE instead of NULL for trees.
16408 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
16410 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Use
16411 SSA_NAME_DEF_STMT only on SSA_NAMEs.
16413 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
16415 * tree-scalar-evolution.c (instantiate_scev_name): Do not
16416 instantiate default definitions.
16418 2010-08-11 Vladimir Kargov <kargov@gmail.com>
16419 Sebastian Pop <sebastian.pop@amd.com>
16421 * cfgloop.c (is_loop_exit): Renamed loop_exits_to_bb_p.
16422 (loop_exits_from_bb_p): New.
16423 * cfgloop.h (is_loop_exit): Renamed loop_exits_to_bb_p.
16424 (loop_exits_from_bb_p): Declared.
16425 * graphite-scop-detection.c (scopdet_basic_block_info): Call
16426 loop_exits_to_bb_p.
16428 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
16430 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add an
16431 extra parameter for the region. Call scev_analyzable_p.
16432 (rewrite_reductions_out_of_ssa): Update call to
16433 rewrite_close_phi_out_of_ssa.
16434 (rewrite_cross_bb_phi_deps): Same.
16435 (rewrite_commutative_reductions_out_of_ssa_loop): Add an extra
16436 parameter for the region. Call scev_analyzable_p.
16437 (rewrite_commutative_reductions_out_of_ssa): Update call to
16438 rewrite_commutative_reductions_out_of_ssa_loop.
16440 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
16442 * sese.c (rename_uses): Call unshare_expr before force_gimple_operand.
16444 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
16446 * graphite-sese-to-poly.c (reduction_phi_p): Do not rewrite out of
16447 SSA scalar phi nodes that can be scev_analyzable_p.
16449 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
16451 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Correctly
16452 handle SSA_NAME_IS_DEFAULT_DEF.
16454 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
16456 * sese.c (rename_uses): Handl unconditionally gimple_debug statements.
16458 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
16460 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Special
16461 case non close-phi nodes with one argument.
16463 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
16465 * sese.h (scev_analyzable_p): Scevs could be expressions without
16466 chrecs and still be scev_analyzable_p.
16468 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
16470 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
16472 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
16474 * cfgloop.c (alloc_loop): Remove initialization of loop->single_iv.
16475 * cfgloop.h (struct loop): Remove single_iv field.
16476 * graphite-sese-to-poly.c (graphite_loop_normal_form): Removed.
16477 (scop_canonicalize_loops): Removed.
16478 (scop_ivs_can_be_represented): Do not use loop->single_iv. Iterate
16479 over all the loop phi nodes in loop->header.
16480 (build_poly_scop): Remove use of scop_canonicalize_loops.
16482 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
16484 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Also
16485 handle GIMPLE_CALL.
16487 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
16489 * tree-chrec.c (chrec_apply): Should only apply to the specified
16490 variable. Also handle multivariate chains of recurrences that
16491 satisfy evolution_function_is_affine_p. Also handle CASE_CONVERT.
16493 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
16495 * graphite-clast-to-gimple.c (debug_clast_name_index): Removed.
16496 (debug_clast_name_indexes_1): Removed.
16497 (debug_clast_name_indexes): Removed.
16498 (pbb_to_depth_to_oldiv): Removed.
16499 (build_iv_mapping): Replace the use of rename_map with iv_map.
16500 (translate_clast_user): Remove uses of rename_map. Allocate and
16502 (translate_clast_for_loop): Remove uses of rename_map.
16503 (translate_clast_for): Same.
16504 (translate_clast_guard): Same.
16505 (translate_clast): Same.
16507 * graphite-clast-to-gimple.h (debug_clast_name_indexes): Removed.
16508 * graphite-sese-to-poly.c (scev_analyzable_p): Moved...
16509 * sese.c (set_rename): Now static.
16510 (rename_variables_in_stmt): Removed.
16511 (rename_uses): New.
16512 (is_parameter): Removed.
16514 (expand_scalar_variables_call): Removed.
16515 (expand_scalar_variables_ssa_name): Removed.
16516 (expand_scalar_variables_expr): Removed.
16517 (expand_scalar_variables_stmt): Removed.
16518 (expand_scalar_variables): Removed.
16519 (rename_variables): Removed.
16520 (remove_condition): Removed.
16521 (get_true_edge_from_guard_bb): Removed.
16522 (get_false_edge_from_guard_bb): Removed.
16523 (struct igp): Removed.
16524 (default_before_guard): Removed.
16525 (convert_for_phi_arg): Removed.
16526 (add_guard_exit_phis): Removed.
16527 (insert_guard_phis): Removed.
16528 (graphite_copy_stmts_from_block): Now also uses iv_map and a
16529 region. Do not copy conditions. Do not copy induction variables.
16531 (copy_bb_and_scalar_dependences): Allocate a local rename_map for
16532 the translated statement. Use the iv_map for the induction
16534 * sese.h (copy_bb_and_scalar_dependences): Update declaration.
16535 (set_rename): Removed declaration.
16536 (scev_analyzable_p): ...here.
16537 * tree-chrec.c (chrec_apply_map): New.
16538 * tree-chrec.h (chrec_apply_map): Declared.
16540 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
16542 * graphite-clast-to-gimple.c (translate_clast_for_loop): Do not call
16543 insert_loop_close_phis.
16544 * sese.c (name_defined_in_loop_p): Removed.
16545 (expr_defined_in_loop_p): Removed.
16546 (alive_after_loop): Removed.
16547 (close_phi_not_yet_inserted_p): Removed.
16548 (struct alep): Removed.
16549 (add_loop_exit_phis): Removed.
16550 (insert_loop_close_phis): Removed.
16552 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
16554 * graphite-cloog-util.c
16555 (cloog_matrix_to_ppl_constraint): Fix flipped condition.
16557 (psct_scattering_dim_for_loop_depth): Same.
16559 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
16561 * graphite-cloog-util.h: Added cloog.h.
16562 * graphite-blocking.c: Removed cloog.h.
16563 * graphite-dependences.c: Same.
16564 * graphite-interchange.c: Same.
16565 * graphite-poly.c: Same.
16566 * graphite-ppl.c: Same.
16567 * graphite-scop-detection.c: Same.
16568 * graphite-sese-to-poly.c:
16570 Removed graphite-clast-to-gimple.h.
16571 (check_poly_representation): Removed (unused).
16572 * graphite-sese-to-poly.h
16573 (check_poly_representation): Removed (unused).
16575 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
16577 * Makefile.in (OBJS-common): Added graphite-cloog-util.o.
16578 (graphite-clast-to-gimple.o): Added graphite-cloog-util.h.
16579 (graphite-cloog-util.o): New.
16580 (graphite-ppl.o): Added graphite-cloog-util.h.
16581 * graphite-clast-to-gimple.c:
16582 Added graphite-cloog-util.h to include statements.
16583 * graphite-cloog-util.c: New.
16584 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.c.
16585 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
16586 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
16587 (new_C_Polyhedron_from_Cloog_Matrix): Same.
16588 (insert_constraint_into_matrix): Same.
16589 (ppl_Constrain_System_number_of_constraints): Same.
16590 (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
16591 (oppose_constraint): Same.
16592 (cloog_matrix_to_ppl_constraint): Same.
16593 (new_Constraint_System_from_Cloog_Matrix): Same.
16594 * graphite-cloog-util.h: New.
16595 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.h.
16596 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
16597 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
16598 (new_C_Polyhedron_from_Cloog_Matrix): Same.
16599 (insert_constraint_into_matrix): Same.
16601 Added graphite-cloog-util.h to include statements.
16602 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to graphite-cloog-util.c.
16603 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
16604 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
16605 (new_C_Polyhedron_from_Cloog_Matrix): Same.
16606 (insert_constraint_into_matrix): Same.
16607 (ppl_Constrain_System_number_of_constraints): Same.
16608 (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
16609 (oppose_constraint): Same.
16610 (cloog_matrix_to_ppl_constraint): Same.
16611 (new_Constraint_System_from_Cloog_Matrix): Same.
16613 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to
16614 graphite-cloog-util.h.
16615 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
16616 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
16617 (new_C_Polyhedron_from_Cloog_Matrix): Same.
16618 (insert_constraint_into_matrix): Same.
16620 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
16622 * graphite-clast-to-gimple.c
16623 (precision_for_value): Resolve value_* calls to matching mpz_* calls.
16624 (precision_for_interval): Same.
16625 (gcc_type_for_interval): Same.
16626 (compute_type_for_level): Same.
16627 * graphite-interchange.c
16628 (lst_interchange_profitable_p): Same.
16630 (psct_scattering_dim_for_loop_depth): Same.
16632 (ppl_max_for_le_pointset): Same.
16633 (ppl_min_for_le_pointset): Same.
16635 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
16637 * graphite-sese-to-poly.c (rewrite_degenerate_phi): New.
16638 (rewrite_reductions_out_of_ssa): Call it for degenerate_phi_result.
16640 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
16642 * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Call
16643 rewrite_close_phi_out_of_ssa.
16645 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
16647 * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Remove dead code.
16649 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
16651 * graphite-clast-to-gimple.c (build_iv_mapping): Rename map with
16653 * sese.c (debug_rename_map): Same.
16654 (get_rename): Same.
16655 (set_rename): Same.
16656 (rename_variables_in_stmt): Same.
16657 (expand_scalar_variables_call): Same.
16658 (expand_scalar_variables_ssa_name): Same.
16659 (expand_scalar_variables_expr): Same.
16660 (expand_scalar_variables_stmt): Same.
16661 (expand_scalar_variables): Same.
16662 (rename_variables): Same.
16663 (graphite_copy_stmts_from_block): Same.
16664 (copy_bb_and_scalar_dependences): Same.
16666 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
16668 * graphite-clast-to-gimple.c (copy_renames): Removed.
16669 (translate_clast_for): Do not call copy_renames.
16670 (translate_clast_guard): Same.
16672 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
16674 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Moved up.
16675 (rewrite_cross_bb_phi_deps): Split out of rewrite_cross_bb_scalar_deps.
16676 (rewrite_cross_bb_scalar_deps_out_of_ssa): Run rewrite_cross_bb_phi_deps
16677 before rewrite_cross_bb_scalar_deps.
16679 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
16681 * graphite-sese-to-poly.c (rewrite_commutative_reductions_out_of_ssa):
16682 Early return in when flag_associative_math is not set.
16684 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
16686 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Always insert out
16687 of SSA copies on edges except for loop->latch.
16689 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
16691 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps_out_of_ssa):
16692 Split out of rewrite_reductions_out_of_ssa.
16693 * graphite-sese-to-poly.h (rewrite_cross_bb_scalar_deps_out_of_ssa):
16695 * graphite.c (graphite_transform_loops): Call it.
16697 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
16699 * graphite.c (graphite_transform_loops): Add two more dbg_cnt calls.
16701 2010-08-11 Alexander Monakov <amonakov@ispras.ru>
16703 * dbgcnt.def (graphite_scop): New counter.
16704 * graphite.c: Include dbgcnt.h.
16705 (graphite_transform_loops): Use new counter to limit transformations.
16706 * Makefile.in (graphite.o): Depend on DBGCNT_H.
16708 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
16710 * passes.c (init_optimization_passes): Add pass_graphite.
16711 Schedule a pass_copy_prop before pass_graphite_transforms.
16712 * timevar.def (TV_GRAPHITE): Declared.
16713 * tree-pass.h (pass_graphite): Declared.
16714 * tree-ssa-loop.c (pass_graphite): New.
16716 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
16718 * graphite-clast-to-gimple.c (gloog): Do not pass scops in parameter.
16719 Remove calls to rename_nb_iterations and rename_sese_parameters.
16720 * graphite-clast-to-gimple.h (gloog): Update declaration.
16721 * graphite.c (graphite_transform_loops): Update call to gloog.
16722 * sese.c (rename_variables_in_expr): Removed.
16723 (rename_nb_iterations): Removed.
16724 (rename_sese_parameters): Removed.
16725 * sese.h (rename_nb_iterations): Removed.
16726 (rename_sese_parameters): Removed.
16728 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
16730 * graphite-clast-to-gimple.c (gloog): Remove call to
16731 sese_adjust_liveout_phis.
16732 * graphite-sese-to-poly.c (scev_analyzable_p): When scev returns an
16733 SSA_NAME, allow it to be handled by rewrite_cross_bb_scalar_deps.
16734 (rewrite_cross_bb_scalar_deps): Handle GIMPLE_PHI nodes: call
16735 rewrite_phi_out_of_ssa.
16736 * sese.c (get_vdef_before_sese): Removed.
16737 (sese_adjust_vphi): Removed.
16738 (sese_adjust_liveout_phis): Removed.
16739 * sese.h (sese_adjust_liveout_phis): Removed.
16741 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
16743 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Pass an extra
16744 argument for the place after which to insert the out of SSA copy.
16745 (rewrite_close_phi_out_of_ssa): Update calls to insert_out_of_ssa_copy.
16746 (rewrite_phi_out_of_ssa): Same.
16747 (rewrite_cross_bb_scalar_deps): Same.
16748 (insert_copyout): Removed.
16749 (insert_copyin): Removed.
16750 (translate_scalar_reduction_to_array): Call insert_out_of_ssa_copy and
16751 insert_out_of_ssa_copy_on_edge instead of insert_copyout and
16754 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
16756 * graphite-sese-to-poly.c (build_scop_bbs): Not static anymore.
16757 (rewrite_reductions_out_of_ssa): Same.
16758 (rewrite_commutative_reductions_out_of_ssa): Same.
16759 (build_poly_scop): Do not call these functions.
16760 * graphite-sese-to-poly.h (build_poly_scop): Declared.
16761 (rewrite_reductions_out_of_ssa): Declared.
16762 (rewrite_commutative_reductions_out_of_ssa): Declared.
16763 * graphite.c (graphite_transform_loops): Call on every scop
16764 rewrite_commutative_reductions_out_of_ssa before calling
16765 rewrite_reductions_out_of_ssa and build_scop_bbs.
16767 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
16769 * graphite-dependences.c (dot_deps): Make system call to dotty run
16771 (dot_deps_stmt): Same.
16772 * graphite-poly.c (dot_lst): Same.
16774 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
16776 * graphite-sese-to-poly.c (loop_entry_phi_arg): Renamed
16777 phi_arg_in_outermost_loop.
16778 (remove_simple_copy_phi): Call phi_arg_in_outermost_loop.
16779 (remove_invariant_phi): Same.
16781 2010-08-11 Anatoly Sokolov <aesok@post.ru>
16783 * target.def (output_addr_const_extra): New hook.
16784 * doc/tm.texi.in (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Document.
16785 * doc/tm.texi: Regenerate.
16786 * targhooks.c (default_asm_output_addr_const_extra): New function.
16787 * targhooks.h (default_asm_output_addr_const_extra): Declare.
16788 * final.c (output_addr_const): Use TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA
16791 * config/i386/i386.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
16792 * config/i386/i386-protos.h (output_addr_const_extra): Remove.
16793 * config/i386/i386.h (output_addr_const_extra): Rename to...
16794 (i386_asm_output_addr_const_extra): ...this. Make static.
16795 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
16797 2010-08-11 Richard Henderson <rth@redhat.com>
16799 * config/i386/i386.h (HARD_REGNO_CALL_PART_CLOBBERED): New.
16801 2010-08-11 Nick Clifton <nickc@redhat.com>
16803 * config/stormy16/stormy16-lib2.c (__cmpsi2): New function.
16804 * config/stormy16/stormy16-lib2-cmpsi2.c: New file.
16805 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
16806 stormy16-lib2-cmpsi.c.
16808 * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Change to
16811 2010-08-11 Joseph Myers <joseph@codesourcery.com>
16813 * opts.h (struct cl_option_handler_func): Make handler take
16814 cl_decoded_option structure as parameter, not individual elements.
16815 (struct cl_option_handlers): Make callbacks take cl_decoded_option
16816 structure as parameter, not individual elements.
16817 (handle_option): Take cl_decoded_option structure as parameter,
16818 not individual elements.
16819 (handle_generated_option): Declare.
16820 * opts-common.c (handle_option): Take cl_decoded_option structure
16821 as parameter, not individual elements. Update calls to callback
16822 and handler functions.
16823 (handle_generated_option): New.
16824 (read_cmdline_option): Update calls to callback functions and
16826 * opts.c (common_handle_option, complain_wrong_lang,
16827 unknown_option_callback, post_handling_callback,
16828 lang_handle_option, target_handle_option): Take cl_decoded_option
16829 structure as parameter, not individual elements.
16830 (lang_handle_option, target_handle_option, common_handle_option):
16831 Assert option has at most one argument.
16832 (enable_warning_as_error): Call handle_generated_option instead of
16833 handle_option. Do not pass -Werror argument as argument of
16836 2010-08-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16838 * config/pa/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
16839 'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
16840 (SUBWORD_BOOL_CAS): Likewise.
16841 (SUBWORD_SYNC_OP): Likewise.
16842 (SUBWORD_TEST_AND_SET): Likewise.
16843 (FETCH_AND_OP_WORD): Parenthesise INF_OP
16844 (SUBWORD_SYNC_OP): Likewise.
16845 (OP_AND_FETCH_WORD): Likewise.
16847 2010-08-10 Xinliang David Li <davidxl@google.com>
16849 * tree-ssa-loop-ivopts.c (get_address_cost): Properly
16850 compute max/min offset in address.
16852 2010-08-10 Vladimir Makarov <vmakarov@redhat.com>
16854 * ira-live.c: Include sbitmap.h.
16855 (remove_some_program_points_and_update_live_ranges): Use sbitmaps.
16856 Compress live ranges even more.
16858 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
16860 * coverage.c (ctr_labels): Delete.
16862 2010-08-10 Bernd Schmidt <bernds@codesourcery.com>
16865 * config/arm/arm.c (multiple_operation_profitable_p): Move xscale
16866 test here from arm_gen_load_multiple_1.
16867 (arm_gen_load_multiple_1, arm_gen_store_multiple_1): Use
16868 multiple_operation_profitable_p.
16870 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
16872 * tree-ssa-pre.c (init_pre): Call alloc_aux_for_blocks.
16873 (fini_pre): Call free_aux_for_blocks. Delete unused bb variable.
16875 2010-08-10 Richard Henderson <rth@redhat.com>
16877 * config/i386/i386.c (ix86_compute_frame_layout): Re-align stack
16878 after saving registers. Assert that SSE registers are only saved
16879 with a sufficiently aligned frame.
16880 (ix86_emit_save_reg_using_mov): Assert realigned only with DRAP;
16881 remove stack_realign_fp handling.
16882 (ix86_expand_prologue): Save int registers before stack_realign_fp,
16883 and do not mark the stack alignment as frame related.
16884 (ix86_expand_epilogue): SP is now invalid with stack_realign_fp.
16886 * dwarf2out.c (dwarf2out_frame_debug_expr): Flush queued register
16887 saves when re-aligning the stack.
16889 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
16891 * basic-block.h (alloc_aux_for_block, alloc_aux_for_edge): Delete.
16892 * cfg.c (alloc_aux_for_block, alloc_aux_for_edge): Make static.
16893 (alloc_aux_for_blocks, clear_aux_for_blocks): Use FOR_ALL_BB.
16895 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
16897 * dwarf2out.c (struct die_struct): Move die_tag to the end.
16899 2010-08-09 Sofiane Naci <sofiane.naci@arm.com>
16901 * config/arm/iterators.md: New file.
16902 * config/arm/arm.md: Include iterators.md.
16903 (QHSI): Move to new file.
16904 (LTUGEU, cnb, optab, ior_xor): Likewise.
16905 * config/arm/iwmmxt.md (VMMX): Move to new file.
16906 (VSHFT, MMX_char): Likewise.
16907 * config/arm/neon.md (VD): Move to new file.
16908 (VDX, VDI, VQ, VQX, VQI, VQXMOV, VSTRUCT, VTAB, V_TAB_n, VW): Likewise.
16909 (VN, VDQ, VDQW, VDQIW, VCVTF, VCVTI, VMD, VMQ, VMDQ, VMDI): Likewise.
16910 (VMDQI, VX, VE, V64, V32, V_CVTTO, V_elem, V_ext): Likewise.
16911 (V_two_elem, V_three_elem, V_four_elem, V_req, V_widen): Likewise.
16912 (V_narrow, V_HALF, V_half,V_DOUBLE, V_double): Likewise.
16913 (V_double_width, V_cmp_result, V_if_elem, V_s_elem): Likewise.
16914 (V_u_elem, V_uf_sclr, V_sz_elem, VD_dup): Likewise.
16915 (V_PAIR, vqh_ops, vqhs_ops, VQH_mnem, VQH_sign, V_suf64): Likewise.
16916 (scalar_mul_constraint,Is_float_mode, Scalar_mul_8_16): Likewise.
16917 (Is_d_reg, V_mode_nunits): Likewise.
16918 * config/arm/vec-common.md (VALL): Move to new file.
16919 (VALLW, VINT, VINTW): Likewise.
16921 2010-08-10 Bernd Schmidt <bernds@codesourcery.com>
16923 PR middle-end/45182
16924 * combine.c (make_compound_operation): Don't try to convert
16925 shifts into multiplications for modes that aren't SCALAR_INT_MODE_P.
16927 2010-08-10 Richard Guenther <rguenther@suse.de>
16929 * tree.h (get_object_alignment): Adjust prototype.
16930 * builtins.c (get_object_alignment): Return unsigned int,
16931 drop the align parameter. Handle MEM_REF, MISALIGNED_INDIRECT_REF
16932 and TARGET_MEM_REF properly.
16933 (get_pointer_alignment): Adjust.
16934 * emit-rtl.c (get_mem_align_offset): Adjust comment.
16935 (set_mem_attributes_minus_bitpos): Adjust.
16936 * tree-ssa-ccp.c (get_value_from_alignment): Adjust.
16938 2010-08-10 Richard Guenther <rguenther@suse.de>
16940 * tree-ssa-copy.c (set_copy_of_val): Use operand_equal_p.
16941 (copy_prop_visit_assignment): Simplify.
16942 (copy_prop_visit_stmt): Also visit assignments from
16944 (copy_prop_visit_phi_node): Use operand_equal_p.
16946 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
16948 * ipa-split.c (find_split_points): Free stack.
16950 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
16952 * tree.h (tree_node_kind) [perm_list_kind,temp_list_kind]: Delete.
16953 * tree.c (tree_node_kind): Delete corresponding entries.
16955 2010-08-09 H.J. Lu <hongjiu.lu@intel.com>
16957 * alias.c (may_alias_p): Remove unused ret.
16959 2010-08-09 Bingfeng Mei <bmei@broadcom.com>
16961 * ddg.c (walk_mems_2): Moved from alias.c, use may_alias_p instead of
16962 alias_sets_conflict_p.
16963 (walk_mems_1): Moved from alias.c.
16964 (insns_may_alias_p): New function, originally insn_alias_sets_conflict_p
16966 (add_inter_loop_mem_dep): Use insns_may_alias_p now.
16967 * cse.c (cse_insn): New argument in calling nonoverlapping_memrefs_p.
16968 * alias.c (walk_mems_2): Moved to ddg.c.
16969 (walk_mems_1): Ditto.
16970 (insn_alias_sets_conflict_p): Renamed to insns_may_alias_p and moved
16972 (nonoverlapping_memrefs_p): Add flag to guard offset-based memory
16974 *(may_alias_p): New function to check whether two memory expression
16975 may alias or not. Currently used in buidling inter-iteration memory
16977 *alias.h (nonoverlapping_memrefs_p): New flag as third argument.
16978 (insn_alias_sets_conflict_p): Removed
16979 *rtl.h (may_alias_p): New function prototype.
16981 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
16983 * tree.c (nreverse): Assert that we don't have a BLOCK.
16985 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
16987 * builtins.c (fold_builtin_next_arg): Use stdarg_p.
16988 * config/arm/arm.c (arm_get_pcs_model): Likewise.
16989 * config/avr/avr.c (init_cumulative_args): Likewise.
16990 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
16991 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
16992 * config/m68k/m68k.c (m68k_return_pops_args): Likewise.
16993 * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
16994 * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
16995 * config/pa/som.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
16996 * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
16997 * dwarf2out.c (gen_subprogram_die): Likewise.
16998 * function.c (allocate_struct_function): Likewise.
16999 * c-aux-info.c (gen_formal_list_for_func_dec): Likewise.
17000 (deserves_ellipsis): Delete.
17002 2010-08-09 Richard Guenther <rguenther@suse.de>
17004 * tree-ssa-copy.c (cached_last_copy_of): Remove.
17005 (valueize_val): New function.
17006 (get_last_copy_of): Remove.
17007 (set_copy_of_val): Simplify.
17008 (dump_copy_of): Likewise.
17009 (copy_prop_visit_cond_stmt): Use valueize_val.
17010 (copy_prop_visit_phi_node): Properly handle unvisited names.
17011 Drop code managing copy-of chains.
17012 (init_copy_prop): Adjust.
17013 (fini_copy_prop): Likewise.
17014 (execute_copy_prop): Remove obsolete comment.
17016 2010-08-09 Richard Guenther <rguenther@suse.de>
17018 PR middle-end/44632
17019 * function.c (gimplify_parameters): Do not clear addressable
17020 bit of the original parameter.
17022 2010-08-09 Richard Guenther <rguenther@suse.de>
17024 PR middle-end/45212
17025 * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust
17026 alignment from MEM_REF offset only if we took it from the
17029 2010-08-09 Eric Fisher <joefoxreal@gmail.com>
17031 * doc/sourcebuild.texi (vect_int_mult): Remove duplicate entry.
17033 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
17035 * c-tree.h (build_arg_info): Declare.
17036 * c-decl.c (build_arg_info): Define.
17037 (get_parm_info): Call it. Delete initialization code.
17038 * c-parser.c (c_parser_parms_declarator): Likewise.
17039 (c_parser_parms_list_declaractor): Likewise.
17041 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
17043 * c-tree.h (c_arg_tag): Define. Define a VEC containing it.
17044 (struct c_arg_info): Change type of tags field.
17045 * c-decl.c (grokdeclarator): Update for changed type of tags field.
17046 (get_parm_info): Likewise.
17047 (store_parm_decls_newstyle): Likewise.
17049 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
17051 * config/rs6000/rs6000.c (branch_island): Define. Define a VEC of it.
17052 (branch_island_list): Delete.
17053 (branch_islands): Declare.
17054 (add_compiler_branch_island): Adjust for branch_islands instead of
17055 branch_island_list.
17056 (macho_branch_islands): Likewise.
17057 (no_previous_def): Likewise.
17058 (get_prev_label): Likewise.
17060 2010-08-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17063 * gthr-posix.h (__gthread_start): Delete.
17064 (__gthread_active_init): Use pthread_default_stacksize_np instead of
17065 pthread_create to determine if hpux pthreads are active.
17066 * gthr-posix95.h (__gthread_start): Delete.
17067 (__gthread_active_init): Likewise use pthread_default_stacksize_np.
17069 2010-08-08 Kai Tietz <kai.tietz@onevision.com>
17071 * config/i386/mingw32.h ((EXTRA_OS_CPP_BUILTINS): Define
17072 _WIN64 not expanded.
17074 2010-08-07 Uros Bizjak <ubizjak@gmail.com>
17075 H.J. Lu <hongjiu.lu@intel.com>
17078 * config/i386/i386.c (ix86_print_operand): Handle 'q' operand modifier
17079 to output 32bit SFmode immediate as 8 byte sign extended value.
17081 2010-08-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
17083 * config/arm/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
17084 'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
17085 (SUBWORD_BOOL_CAS): Likewise.
17086 (SUBWORD_SYNC_OP): Likewise.
17087 (SUBWORD_TEST_AND_SET): Likewise.
17088 (FETCH_AND_OP_WORD): Parenthesise INF_OP
17089 (SUBWORD_SYNC_OP): Likewise.
17090 (OP_AND_FETCH_WORD): Likewise.
17092 2010-08-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17094 * config/arm/cortex-a9.md: Rewrite VFP Pipeline description.
17095 * config/arm/arm.c (arm_xscale_tune): Initialize sched_adjust_cost.
17096 (arm_fastmul_tune,arm_slowmul_tune, arm_9e_tune): Likewise.
17097 (arm_adjust_cost): Split into xscale_sched_adjust_cost and a
17099 (cortex_a9_sched_adjust_cost): New function.
17100 (xscale_sched_adjust_cost): New function.
17101 * config/arm/arm-protos.h (struct tune_params): New field
17103 * config/arm/arm-cores.def: Adjust costs for cortex-a9.
17105 2010-08-06 Eric Botcazou <ebotcazou@adacore.com>
17108 * config/sparc/sparc.c (function_arg_advance): Always take into account
17109 the padding, if any.
17111 2010-08-06 Richard Guenther <rguenther@suse.de>
17113 * tree-ssa-ccp.c (struct prop_value_d): Add mask member.
17114 (dump_lattice_value): Dump it.
17115 (get_default_value): Adjust.
17116 (get_constant_value): Likewise.
17117 (set_value_varying): Likewise.
17118 (set_lattice_value): Make sure to not go up the lattice
17119 with bitwise constant values.
17120 (get_value_for_expr): Handle ADDR_EXPRs.
17121 (value_to_double_int): New function.
17122 (get_value_from_alignment): Likewise.
17123 (do_dbg_cnt): Adjust.
17124 (ccp_lattice_meet): Handle partially constant values.
17125 (bit_value_unop_1): New function.
17126 (bit_value_binop_1): Likewise.
17127 (bit_value_unop): Likewise.
17128 (bit_value_binop): Likewise.
17129 (evaluate_stmt): Track partially constant values if
17130 flag_tree_bit_ccp is set.
17131 (ccp_fold_stmt): Dump if we folded a predicate.
17132 (ccp_visit_stmt): Adjust.
17133 * common.opt (ftree-bit-ccp): New flag.
17134 * doc/invoke.texi (ftree-bit-ccp): Document.
17135 * opts.c (decode_options): Enable bit-CCP at -O1.
17137 2010-08-06 Alan Modra <amodra@gmail.com>
17139 * doc/invoke.texi (RS/6000 and PowerPC Options): Rewrite -mrelocatable
17140 and -mrelocatable-lib description.
17142 2010-08-05 Bernd Schmidt <bernds@codesourcery.com>
17144 From Martin Thuresson <martint@google.com>
17145 * postreload.c (reload_cse_simplify_operands): Use
17146 SET_REGNO_RAW instead of SET_REGNO.
17147 * caller-save.c (reg_save_code): Use SET_REGNO_RAW instead of
17149 * ira.c (setup_prohibited_mode_move_regs): Use SET_REGNO_RAW
17150 instead of SET_REGNO.
17151 * rtl.h (SET_REGNO_RAW): New macro.
17153 2010-08-05 Eric Botcazou <ebotcazou@adacore.com>
17155 * rtlanal.c (nonzero_bits1): Use unsigned HOST_WIDE_INT in all mask
17156 computations. Fix formatting issues.
17157 (num_sign_bit_copies1): Likewise.
17158 (canonicalize_condition): Likewise.
17160 2010-08-05 Richard Henderson <rth@redhat.com>
17162 * toplev.h (ctz_hwi, clz_hwi, ffs_hwi): New.
17163 (floor_log2): Use clz_hwi.
17164 (exact_log2): Use ctz_hwi.
17165 * toplev.c (ctz_hwi, clz_hwi, ffs_hwi): New.
17166 * builtins.c (fold_builtin_bitop): Use them.
17167 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
17168 * combine.c (get_pos_from_mask): Use ctz_hwi.
17169 * double-int.c (double_int_ctz): Likewise.
17170 * explow.c (force_reg): Likewise.
17171 * tree.h (SET_DECL_OFFSET_ALIGN): Use ffs_hwi.
17173 2010-08-05 Richard Henderson <rth@redhat.com>
17176 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Make sure
17177 the alignment constant is properly sign-extended.
17179 2010-08-05 Richard Guenther <rguenther@suse.de>
17181 * expr.c (store_expr): Use emit_block_move only if both
17182 source and target are MEMs. Use store_bit_field if only
17183 the target is a MEM.
17185 2010-08-05 Richard Henderson <rth@redhat.com>
17188 * dwarf2out.c (DWARF2_UNWIND_INFO): Provide default definition.
17189 (INCOMING_RETURN_ADDR_RTX): Likewise.
17190 (dwarf2out_do_frame): Remove conditional compilation.
17191 (dwarf2out_frame_init): Likewise.
17193 2010-08-05 Nicolas Setton <setton@adacore.com>
17195 * gcov.c (flag_display_progress): New static variable.
17196 (main): Display progress info on standard output if requested.
17197 (options): Add -d/--display-progress.
17198 (print_usage): Print them.
17199 (process_args): Handle them.
17200 * doc/gcov.texi: Document them.
17202 2010-08-05 Martin Jambor <mjambor@suse.cz>
17204 * ipa-cp.c (ipcp_discover_new_direct_edges): New function.
17205 (ipcp_insert_stage): Redirect only edges not flagged with
17206 indirect_inlining_edge. Call ipcp_discover_new_direct_edges for all
17207 discovered constants.
17209 2010-08-05 Martin Jambor <mjambor@suse.cz>
17211 * ipa-prop.h (enum ipa_lattice_type): Changed comments.
17212 (struct ipa_param_descriptor): New fields types and
17213 cannot_devirtualize.
17214 (ipa_param_cannot_devirtualize_p): New function.
17215 (ipa_param_types_vec_empty): Likewise.
17216 (ipa_make_edge_direct_to_target): Declare.
17217 * ipa-cp.c: Fixed first stage driver name in initial comment,
17218 described devirtualization there too.
17219 (ipcp_analyze_node): Call ipa_analyze_params_uses.
17220 (ipcp_print_all_lattices): Print devirtualization info.
17221 (ipa_set_param_cannot_devirtualize): New function.
17222 (ipcp_initialize_node_lattices): Set cannot_devirtualize when setting
17224 (ipcp_init_stage): Merged into...
17225 (ipcp_generate_summary): ...its caller.
17226 (ipcp_change_tops_to_bottom): Also process type lists.
17227 (ipcp_add_param_type): New function.
17228 (ipcp_copy_types): Likewise.
17229 (ipcp_propagate_types): Likewise.
17230 (ipcp_propagate_stage): Also propagate types.
17231 (ipcp_need_redirect_p): Variable jump_func moved to its scope block.
17232 Also return true if propagated types require it.
17233 (ipcp_update_callgraph): Dump redirection info.
17234 (ipcp_process_devirtualization_opportunities): New function.
17235 (ipcp_const_param_count): Include known type information.
17236 (ipcp_insert_stage): Call ipcp_process_devirtualization_opportunities
17237 on new node. Fixed formatting.
17238 * ipa-prop.c (make_edge_direct_to_target): Renamed to
17239 ipa_make_edge_direct_to_target and changed all callers. Made
17240 externally visible.
17241 (ipa_node_duplication_hook): Duplicate types vector.
17242 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Also try to
17243 redirect outgoing calls for which we can't get a decl from the
17244 statement. Check that we can get a decl from the call statement.
17245 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
17246 ipa_analyze_params_uses only when ipa-cp is disabled.
17247 * tree-inline.c (get_indirect_callee_fndecl): Removed.
17248 (expand_call_inline): Do not call get_indirect_callee_fndecl.
17249 * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): New parameter.
17250 * Makefile.in (ipa-cp.o): Add gimple.h to dependencies.
17252 2010-08-05 Uros Bizjak <ubizjak@gmail.com>
17254 * expmed.c (expand_mult_const) <case alg_shift>: Expand shift into
17255 temporary. Emit move from temporary to accum, so REG_EQUAL note will
17256 be attached to this insn in correct mode.
17258 2010-08-05 Uros Bizjak <ubizjak@gmail.com>
17260 * config/i386/i386.c (ix86_decompose_address): Check for SI_REG
17261 using REGNO of base_reg directly.
17263 2010-08-05 Jie Zhang <jie@codesourcery.com>
17265 PR tree-optimization/45144
17266 * tree-sra.c (type_consists_of_records_p): Return false
17267 if the record contains bit-field.
17269 2010-08-04 Richard Henderson <rth@redhat.com>
17271 * config/i386/i386.c (struct ix86_frame): Remove padding and
17272 to_allocate members.
17273 (ix86_compute_frame_layout): Don't store them.
17274 (ix86_can_use_return_insn_p): Use a more direct and more obviously
17275 correct condition for the position of the stack pointer.
17276 (ix86_expand_prologue): Compute remaining stack allocation based
17277 on the ultimate stack pointer offset.
17278 (ix86_expand_epilogue): Use more obvious expressions testing for
17279 the stack pointer already pointing to the saved registers.
17281 * config/i386/i386.c (ix86_expand_epilogue): Eliminate code
17282 duplication deconstructing the frame pointer. Simplify
17283 deallocation of the local stack frame.
17285 * reg-notes.def (CFA_EXPRESSION): New.
17286 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
17287 (dwarf2out_frame_debug_cfa_expression): New.
17288 (dwarf2out_frame_debug_def_cfa): Handle simple MEMs.
17290 * config/i386/i386.h (struct machine_frame_state): Add realigned flag.
17291 * config/i386/i386.c (ix86_expand_prologue): Set it.
17292 (ix86_expand_epilogue): Clear it.
17293 (ix86_emit_save_reg_using_mov): For registers saved in a realigned
17294 context, add REG_CFA_EXPRESSION notes.
17296 * config/i386/i386.h (struct machine_frame_state): Rename from
17297 machine_cfa_state. Add members tracking SP and FP regardless
17298 of the current CFA register.
17299 (ix86_cfa_state): Remove.
17300 * config/i386/i386.c (struct ix86_frame): Add reg_save_offset
17301 and sse_reg_save_offset members.
17302 (ix86_compute_frame_layout): Set them.
17303 (gen_push): Increment sp_offset too.
17304 (choose_baseaddr_len, choose_baseaddr): New.
17305 (ix86_emit_save_reg_using_mov): New.
17306 (ix86_emit_save_regs_using_mov): Use it.
17307 (ix86_emit_save_sse_regs_using_mov): Likewise.
17308 (ix86_add_cfa_restore_note): Take cfa_offset not red_offset argument;
17309 compare vs the saved red_zone_offset.
17310 (pro_epilogue_adjust_stack): Adjust sp_offset.
17311 (ix86_adjust_stack_and_probe): Likewise.
17312 (ix86_expand_prologue): Set up, use, and validate the new
17313 frame_state_info members. Use gen_frame_mem.
17314 (ix86_emit_restore_regs_using_pop): Remove red_offset parameter.
17315 (ix86_emit_restore_reg_using_pop): Likewise. Use and update the
17316 new frame_state_info members.
17317 (ix86_emit_leave): Likewise.
17318 (ix86_emit_restore_regs_using_mov): Likewise. Don't check for
17319 out-of-range stack pointer offsets here.
17320 (ix86_emit_restore_sse_regs_using_mov): Likewise.
17321 (ix86_expand_epilogue): Use and validate the new frame_state_info
17322 members. Break up and simplify the logic selecting the
17323 restore_regs_via_mov code path. Ensure that there will be no
17324 out-of-range stack pointer offsets.
17326 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Remove.
17328 * config/i386/i386.c (ix86_function_ms_hook_prologue): Fix
17329 argument name to reflect the expected tree; fix indentation.
17330 (ix86_asm_output_function_label): Output the entire 32-bit
17331 ms_hook here as bytes ...
17332 (ix86_expand_prologue): ... not here as insns. Attach the
17333 unwind info for the ms_hook to a blockage insn.
17334 (ix86_handle_fndecl_attribute): Don't check HAVE_AS_IX86_SWAP.
17335 (ix86_ms_bitfield_layout_p): Fix indentation.
17336 * config/i386/i386.md (UNSPECV_VSWAPMOV, vswapmov): Remove.
17338 * config/i386/i386.c (ix86_using_red_zone): New.
17339 (ix86_compute_frame_layout, ix86_add_cfa_restore_note,
17340 ix86_expand_prologue, ix86_force_to_memory): Use it.
17342 * config/i386/i386.c (ix86_expand_prologue): Simplify logic
17343 saving the int registers.
17345 * dwarf2out.c: Remove most of the DWARF2_DEBUGGING_INFO
17346 and DWARF2_UNWIND_INFO conditional compilation.
17348 2010-08-04 Richard Henderson <rth@redhat.com>
17351 * dwarf2out.c (gen_typedef_die): Don't re-generate the die of
17352 an is_naming_typedef_decl.
17354 2010-08-04 Bernd Schmidt <bernds@codesourcery.com>
17356 PR rtl-optimization/45162
17357 * df-problems.c (df_word_lr_bb_local_compute): Ignore DEBUG_INSNs.
17358 * dce.c (word_dce_process_block): Likewise.
17360 2010-08-04 Steve Ellcey <sje@cup.hp.com>
17363 * config/ia64/constraints.md (Z): New.
17364 * config/ia64/predicates.md (fr_reg_or_signed_fp01_operand): New.
17365 (xfreg_or_signed_fp01_operand): New.
17366 * config/ia64/ia64.md (addsf3): Replace fr_reg_or_fp01_operand
17367 with fr_reg_or_signed_fp01_operand and constraint G with Z.
17372 (adddf3_trunc): Ditto.
17374 (*subdf3_trunc): Ditto.
17376 (*madddf4_trunc): Ditto.
17378 (*msubdf4_trunc): Ditto.
17379 (addxf3): Replace xfreg_or_fp01_operand with
17380 xfreg_or_signed_fp01_operand and constraint G with Z.
17381 (*addxf3_truncsf): Ditto.
17382 (*addxf3_truncdf): Ditto.
17384 (*subxf3_truncsf): Ditto.
17385 (*subxf3_truncdf): Ditto.
17387 (*maddxf4_truncsf): Ditto.
17388 (*maddxf4_truncdf): Ditto.
17390 (*msubxf4_truncsf): Ditto.
17391 (*msubxf4_truncdf): Ditto.
17393 2010-08-04 Richard Guenther <rguenther@suse.de>
17395 * alias.c (rtx_refs_may_alias_p): Do not resort to TBAA
17396 if either alias-set is zero.
17398 2010-08-04 Richard Guenther <rguenther@suse.de>
17400 * tree-ssa-propagate.h (struct prop_value_d, prop_value_t): Move ...
17401 * tree-ssa-ccp.c: ... here.
17402 * tree-ssa-copy.c: ... and here.
17403 * tree-ssa-propagate.h (enum value_range_type, struct value_range_d,
17404 value_range_t): Move ...
17405 * tree-vrp.c: ... here.
17406 * tree-ssa-propagate.h (ssa_prop_get_value_fn): New typedef.
17407 (substitute_and_fold): Adjust prototype.
17408 * tree-ssa-propagate.c (replace_uses_in): Adjust.
17409 (replace_phi_args_in): Likewise.
17410 (substitute_and_fold): Take callback to query lattice instead
17411 of pointer to lattice. Replace SSA name defs with lattice
17413 * tree-ssa-ccp.c (ccp_finalize): Adjust.
17414 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust.
17415 (get_value): New function.
17416 (fini_copy_prop): Adjust.
17417 * tree-vrp.c (vrp_finalize): Adjust.
17419 2010-08-04 Richard Guenther <rguenther@suse.de>
17421 PR middle-end/45176
17422 * expr.c (expand_expr_real_1): Also preserve TARGET_MEM_REF
17423 points-to set for original MEM_REF.
17425 2010-08-04 Richard Guenther <rguenther@suse.de>
17427 * tree-ssa-ccp.c (get_constant_value): New function.
17428 (get_rhs_assign_op_for_ccp): Remove.
17429 (valueize_op): New function.
17430 (ccp_fold): Use get_constant_value and valueize_op.
17431 (fold_const_aggregate_ref): Likewise.
17432 (ccp_fold_stmt): Likewise.
17433 (visit_assignment): Simplify.
17435 2010-08-04 Richard Guenther <rguenther@suse.de>
17437 * Makefile.in (double-int.o): Add $(TOPLEV_H) dependency.
17438 * double-int.h (double_int_ctz): Declare.
17439 * double-int.c (double_int_ctz): New function.
17441 2010-08-04 Hariharan Sandanagobalane <hariharan@picochip.com>
17443 * config/picochip/picochip.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE):
17445 picochip_expand_movmemhi : Expand movmem pattern.
17446 * config/picochip/picochip-protos.h (picochip_expand_movmemhi) :
17448 * config/picochip/picochip.md (movmemhi) : New pattern.
17450 2010-08-03 Uros Bizjak <ubizjak@gmail.com>
17452 * config/i386/unix.h (GLOBAL_ASM_OPS): Add tabs around .globl.
17454 2010-08-03 Bernd Schmidt <bernds@codesourcery.com>
17456 * simplify-rtx.c (simplify_binary_operation_1): Try to simplify away
17457 NEG as operand of a MULT by merging it with the other operand.
17458 * combine.c (make_compound_operation): Use trunc_int_for_mode when
17459 generating a MULT with constant. Canonicalize PLUS and MINUS involving
17461 * config/arm/constraints.md (M): Examine only 32 bits of a
17463 * config/arm/predicates.md (power_of_two_operand): Likewise.
17465 2010-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17467 * config/spu/spu.c (spu_emit_branch_hint): Do not access NOTE_KIND of
17470 2010-08-03 Jan Hubicka <jh@suse.cz>
17472 * ipa-split.c (struct split_point): Add split_part_set_retval.
17473 (find_retval): Forward declare.
17474 (test_nonssa_use, mark_nonssa_use): Special case return by reference.
17475 (consider_split): Compute current->split_part_set_retval.
17476 (visit_bb): Do not look into return value.
17477 (split_function): Handle !split_part_set_retval
17479 2010-08-03 Martin Jambor <mjambor@suse.cz>
17481 * tree-sra.c (completely_scalarize_record): New parameter REF, create
17482 its own access->expr intead of using build_ref_for_offset.
17484 2010-08-03 Joseph Myers <joseph@codesourcery.com>
17486 * config/alpha/alpha.h (SWITCH_TAKES_ARG): Define.
17487 * config/alpha/osf5.h (LIB_SPEC): Don't handle -a.
17488 * config/bfin/bfin.h (ASM_SPEC, LINK_SPEC): Don't pass -G* options.
17489 * config/darwin.h (WORD_SWITCH_TAKES_ARG): Handle -iframework.
17490 * config/ia64/ia64.h (SWITCH_TAKES_ARG): Define.
17491 * config/iq2000/iq2000.h (SWITCH_TAKES_ARG): Remove.
17492 * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Define using
17493 DEFAULT_SWITCH_TAKES_ARG.
17494 * config/rx/rx.opt (-patch=): Remove option.
17495 * config/rx/rx.c (rx_handle_option): Don't handle OPT_patch_.
17496 * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Handle -imultilib.
17497 * doc/invoke.texi (RX Options): Remove -patch=.
17498 * gcc.c (cc1_options): Pass -aux-info* instead of -a* options.
17499 (option_map): Remove --profile-blocks, --quiet and --silent.
17501 2010-08-03 Uros Bizjak <ubizjak@gmail.com>
17503 * config/i386/i386.h (ix86_compare_op0, ix86_compare_op1): Remove.
17504 * config/i386/i386.c (ix86_compare_op0, ix86_compare_op1): Remove.
17505 (ix86_expand_branch): Add op0 and op1 arguments. Do not access
17506 ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
17507 Update calls to ix86_expand_compare and ix86_expand_branch.
17508 (ix86_expand_setcc): Add op0 and op1 arguments. Update calls to
17509 ix86_expand_compare.
17510 (ix86_expand_compare): Add op0 and op1 arguments. Do not access
17511 ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
17513 (ix86_expand_carry_flag_compare): Do not set ix86_compare_op0
17514 and ix86_compare_op1. Update calls to ix86_expand_compare.
17515 (ix86_expand_int_movcc): Ditto.
17516 (ix86_expand_fp_movcc): Ditto. Update calls to ix86_expand_setcc.
17517 * config/i386/i386-protos.h (ix86_expand_branch): Update prototype.
17518 (ix86_expand_setcc): Ditto.
17519 (ix86_expand_compare): Remove prototype.
17520 * config/i386/i386.md (cbranch<SDWIM:mode>4): Do not set
17521 ix86_compare_op0 and ix86_compare_op1. Update calls
17522 to ix86_expand_branch to directly pass operands[1] and operands[2].
17523 (cbranchxf4): Ditto.
17524 (cbranch<MODEF:mode>4): Ditto.
17525 (cbranchcc4): Ditto.
17526 (cstore<SWIM:mode>4): Do not set ix86_compare_op0 and ix86_compare_op1.
17527 Update calls to ix86_expand_setcc to directly pass operands[2] and
17529 (cstorexf4): Ditto.
17530 (cstore<MODEF:mode>4): Ditto.
17531 (cstorecc4): Ditto.
17533 2010-08-02 Bernd Schmidt <bernds@codesourcery.com>
17536 * caller-save.c (save_call_clobbered_regs): Remove regs from
17537 hard_regs_saved when they are set.
17539 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
17542 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
17545 2010-08-02 Sebastian Pop <sebastian.pop@amd.com>
17547 * common.opt (ftree-loop-distribute-patterns): New.
17548 * invoke.texi (-ftree-loop-distribute-patterns): Documented.
17549 * opts.c (decode_options): Enable flag_tree_loop_distribute_patterns
17551 * tree-data-ref.c (stores_zero_from_loop): New.
17552 * tree-data-ref.h (stores_zero_from_loop): Declared.
17553 * tree-loop-distribution.c (tree_loop_distribution): Call
17554 stores_zero_from_loop.
17555 (tree_loop_distribution): Check flag_tree_loop_distribute_patterns.
17557 2010-08-02 Bernd Schmidt <bernds@codesourcery.com>
17559 * postreload.c (reload_cse_simplify_operands): Take attribute enabled
17562 * final.c (final_scan_insn): Call CC_STATUS_INIT unconditionally.
17563 * config/arm/arm.c (thumb1_code): New variable.
17564 (arm_override_options): Set it.
17565 (thumb1_final_prescan_insn): Keep track of condition code status.
17566 (arm_adjust_cost): For Thumb, try to keep cc-setting insns next to
17567 jumps that depend on them.
17568 * config/arm/arm.h (thumb1_code): Declare variable.
17569 (struct machine_function): Guard with #ifndef GENERATOR_FILE. Add
17570 members thumb1_cc_insn, thumb1_cc_op0, thumb1_cc_op1 and
17572 (CC_STATUS_INIT): New macro.
17573 * config/arm/constraints.md (Pd): New constraint.
17574 * config/arm/predicates.md (noov_comparison_operator): New predicate.
17575 * config/arm/arm.md (is_thumb1): New define_attr.
17576 (conds): Set default to "clob" when generating Thumb1 code.
17577 (thumb1_bicsi3): Renamed from bicsi3. All uses changed. Condition
17578 code are set. Use two-operand assembly syntax.
17579 (thumb1_subsi3_insn): Condition codes are set. Now a properly named
17581 (thumb1_andsi3_insn, thumb1_iorsi3_insn, thumb1_xorsi3_insn): Condition
17582 codes are set. Use two-operand assembly syntax.
17583 (zero_extendhisi splitter): Remove constraints.
17584 (thumb1_movsi_insn, thumb1_movhi_insn, thumb1_movqi_insn, thumb1_movhf,
17585 thumb1_movsf_insn): Set conds attribute as appropriate.
17586 (cbranchsi4_insn): Use condition code status from struct
17587 machine_function to determine whether the comparison can be eliminated.
17588 Discourage the alternative using high registers.
17589 (movsi_cbranchsi4, andsi3_cbranch, orrsi3_cbranch_scratch,
17590 orrsi3_cbranch, xorsi3_cbranch_scratch, xorsi3_cbranch,
17591 bicsi3_cbranch_scratch, bicsi3_cbranch, subsi3_cbranch_scratch,
17592 subsi3_cbranch): Delete.
17593 (movsi_cbranchsi4 peepholes): Rewrite to generate a sequence of
17594 one subtract and one cbranch insn.
17596 * config/arm/thumb2.md (thumb2_movdi, thumb2_movsf_soft_insn,
17597 thumb2_movdf_soft_insn): Delete patterns.
17598 * config/arm/arm.md (arm_pool_range, thumb2_pool_range,
17599 arm_neg_pool_range, thumb2_neg_pool_range): New attributes.
17600 (pool_range, neg_pool_range): Use them to define defaults.
17601 (movdi, arm_movsf_soft_insn, arm_movdf_soft_insn): Define them
17602 and allow for TARGET_32BIT.
17605 * config/arm/arm.h (arm_regs_in_sequence): Declare.
17606 * config/arm/arm-protos.h (emit_ldm_seq, emit_stm_seq,
17607 load_multiple_sequence, store_multiple_sequence): Delete
17609 (arm_gen_load_multiple, arm_gen_store_multiple): Adjust
17611 * config/arm/ldmstm.md: New file.
17612 * config/arm/arm.c (arm_regs_in_sequence): New array.
17613 (load_multiple_sequence): Now static. New args SAVED_ORDER,
17614 CHECK_REGS. All callers changed.
17615 If SAVED_ORDER is nonnull, copy the computed order into it.
17616 If CHECK_REGS is false, don't sort REGS. Handle Thumb mode.
17617 (store_multiple_sequence): Now static. New args NOPS_TOTAL,
17618 SAVED_ORDER, REG_RTXS and CHECK_REGS. All callers changed.
17619 If SAVED_ORDER is nonnull, copy the computed order into it.
17620 If CHECK_REGS is false, don't sort REGS. Set up REG_RTXS just
17621 like REGS. Handle Thumb mode.
17622 (arm_gen_load_multiple_1): New function, broken out of
17623 arm_gen_load_multiple.
17624 (arm_gen_store_multiple_1): New function, broken out of
17625 arm_gen_store_multiple.
17626 (arm_gen_multiple_op): New function, with code from
17627 arm_gen_load_multiple and arm_gen_store_multiple moved here.
17628 (arm_gen_load_multiple, arm_gen_store_multiple): Now just
17629 wrappers around arm_gen_multiple_op. Remove argument UP, all callers
17631 (gen_ldm_seq, gen_stm_seq, gen_const_stm_seq): New functions.
17632 * config/arm/predicates.md (commutative_binary_operator): New.
17633 (load_multiple_operation, store_multiple_operation): Handle more
17634 variants of these patterns with different starting offsets. Handle
17636 * config/arm/arm.md: Include "ldmstm.md".
17637 (ldmsi_postinc4, ldmsi_postinc4_thumb1, ldmsi_postinc3, ldmsi_postinc2,
17638 ldmsi4, ldmsi3, ldmsi2, stmsi_postinc4, stmsi_postinc4_thumb1,
17639 stmsi_postinc3, stmsi_postinc2, stmsi4, stmsi3, stmsi2 and related
17640 peepholes): Delete.
17641 * config/arm/ldmstm.md: New file.
17642 * config/arm/arm-ldmstm.ml: New file.
17644 * config/arm/arm.c (arm_rtx_costs_1): Remove second clause from the
17645 if statement which adds extra costs to frame-related expressions.
17647 2010-08-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17649 * config/arm/arm.c (COSTS_N_INSNS): Remove definition.
17651 2010-08-01 Uros Bizjak <ubizjak@gmail.com>
17654 * config/i386/sse.md (vec_set<mode>_0): Do not set mode attribute for
17656 (vec_set<mode>_0 splitter): Use SSEMODE4S mode iterator to also
17657 split V4SI operands.
17659 2010-08-01 Anatoly Sokolov <aesok@post.ru>
17661 * config/mmix/mmix.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
17662 * config/mmix/mmix-protos.h (mmix_asm_output_source_filename): Remove.
17663 * config/mmix/mmix.c (mmix_asm_output_source_filename): Make static.
17664 (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
17666 2010-07-31 Kai Tietz <kai.tietz@onevision.com>
17668 * cppdefault.c (cpp_include_defaults): Move GCC_INCLUDE_DIR before
17671 2010-07-31 Richard Sandiford <rdsandiford@googlemail.com>
17673 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Fix type
17674 used in the call to optab_for_tree_code. Fix the second
17675 is_widening_mult_p call. Check that both unwidened operands
17676 have the same sign.
17678 2010-07-31 John Tytgat <John.Tytgat@aaug.net>
17680 * config/arm/arm.c (arm_function_arg): Remove superfluous test.
17682 2010-07-31 Anatoly Sokolov <aesok@post.ru>
17684 * config/spu/spu.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
17686 2010-07-30 DJ Delorie <dj@redhat.com>
17688 * config/rx/predicates.md (rx_constshift_operand): New.
17689 * config/rx/rx.md (zs_cond): New.
17690 (cbranchsi4): Remove mode.
17691 (*cbranchsi4_<code>): Likewise.
17692 (*tstbranchsi4_<code>): New.
17693 (*tstbranchsi4r_<code>): New.
17694 (*tstbranchsi4m_eq): New.
17695 (*tstbranchsi4m_ne): New.
17696 (cbranchsf4): Remove mode.
17697 (*cbranchsf4_<code>): Likewise.
17699 2010-07-30 Bernd Schmidt <bernds@codesourcery.com>
17701 * rtlanal.c (simplify_subreg_regno): Don't treat
17702 HARD_FRAME_POINTER_REGNUM specially.
17704 2010-07-30 Joseph Myers <joseph@codesourcery.com>
17706 * common.opt (-G): Don't define option here.
17707 * config/g.opt: New.
17708 * config.gcc: Use g.opt for alpha, frv, ia64, lm32, m32r, mips,
17709 rs6000/powerpc and score targets.
17710 * opts.c (common_handle_option): Don't handle -G here.
17711 * config/alpha/alpha.c (alpha_handle_option): Handle -G.
17712 * config/frv/frv.c (frv_handle_option): Handle -G.
17713 * config/ia64/ia64.c (ia64_handle_option): Handle -G.
17714 * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION): New.
17715 * config/m32r/m32r.c (m32r_handle_option): Handle -G.
17716 * config/mips/mips.c (mips_handle_option): Handle -G.
17717 * config/rs6000/rs6000.c (rs6000_handle_option) Handle -G.
17718 * config/score/score.c (score_handle_option): Handle -G.
17720 2010-07-30 Anatoly Sokolov <aesok@post.ru>
17722 * config/mmix/mmix.c: Include basic-block.h.
17724 2010-07-30 Jakub Jelinek <jakub@redhat.com>
17727 PR rtl-optimization/45137
17728 * rtl.h (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn): New
17730 * emit-rtl.c (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn):
17732 * combine.c (next_nonnote_nondebug_insn): Removed.
17733 * ifcvt.c (noce_process_if_block): Use prev_nonnote_nondebug_insn.
17734 * haifa-sched.c (queue_to_ready): Use next_nonnote_nondebug_insn.
17735 * sched-deps.c (sched_analyze_insn): Likewise.
17736 (fixup_sched_groups, deps_start_bb): Use prev_nonnote_nondebug_insn.
17737 * rtlanal.c (canonicalize_condition): Likewise.
17738 * postreload.c (reload_combine_recognize_pattern): Likewise.
17739 (reload_cse_move2add): Use next_nonnote_nondebug_insn.
17741 2010-07-29 Uros Bizjak <ubizjak@gmail.com>
17743 * config/i386/i386.md (int_cond): Remove code iterator.
17745 (cbranch<mode>4): Use ordered_comparison_operator predicate
17747 (cstore<mode>4): Ditto for operator1.
17748 (mov<SWIM:mode>cc and corresponding splitter): Ditto.
17749 (add<mode>cc): ditto.
17751 2010-07-30 Richard Guenther <rguenther@suse.de>
17753 PR middle-end/45141
17754 * expr.c (expand_expr_real_1): Check for not handled base address.
17756 2010-07-30 Richard Guenther <rguenther@suse.de>
17758 * ipa-prop.c (ipa_modify_formal_parameters): Use
17759 build_distinct_type_copy.
17761 2010-07-30 Anthony Green <green@moxielogic.com>
17763 * config/moxie/rtems.h: New file.
17764 * config.gcc: Add moxie-rtems support.
17766 2010-07-29 Bernd Schmidt <bernds@codesourcery.com>
17768 * dce.c (run_word_dce): Take flag_dce into account. Clear and restore
17769 df flags as in run_fast_df_dce.
17771 2010-07-29 Jakub Jelinek <jakub@redhat.com>
17774 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
17776 * rtl.def (NOTE): Swap operands 4 and 5.
17777 * rtl.h (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK,
17778 NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_KIND):
17779 Adjust accordingly.
17780 * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of NOTEs.
17782 2010-07-29 Jakub Jelinek <jakub@redhat.com>
17785 * dwarf2out.c (dwarf_attr_name): Handle DW_AT_object_pointer.
17786 (gen_formal_types_die): Add DW_AT_object_pointer in methods.
17787 (gen_subprogram_die): Likewise. Remove it when removing declaration's
17789 (gen_decl_die): Change return type to dw_die_ref, return what
17790 gen_formal_parameter_die returned.
17792 2010-07-29 Martin Jambor <mjambor@suse.cz>
17794 * dbgcnt.def (eipa_sra): New counter.
17795 * tree-sra.c (ipa_early_sra_gate): Also check eipa_sra debug counter.
17797 2010-07-29 Xinliang David Li <davidxl@google.com>
17800 * tree-ssa-loop-ivopts.c (get_address_cost): Revert change
17801 in revision 162652.
17803 2010-07-29 Richard Guenther <rguenther@suse.de>
17805 * timevar.def (TV_TREE_STORE_COPY_PROP): Remove.
17806 (TV_TREE_STORE_CCP): Likewise.
17807 (TV_TREE_REDPHI): Likewise.
17809 2010-07-29 Richard Guenther <rguenther@suse.de>
17811 * double-int.h (double_int_and_not): New function.
17812 * combine.c (try_combine): Use it.
17813 * tree-vrp.c (simplify_bit_ops_using_ranges): Likewise.
17815 2010-07-29 Bernd Schmidt <bernds@codesourcery.com>
17817 PR rtl-optimization/42575
17818 * dce.c (word_dce_process_block): Renamed from byte_dce_process_block.
17819 Argument AU removed. All callers changed. Ignore artificial refs.
17820 Use return value of df_word_lr_simulate_defs to decide whether an insn
17822 (fast_dce): Rename arg to WORD_LEVEL.
17823 (run_word_dce): Renamed from rest_of_handle_fast_byte_dce. No longer
17825 (pass_fast_rtl_byte_dce): Delete.
17826 * dce.h (run_word_dce): Declare.
17827 * df-core.c (df_print_word_regset): Renamed from df_print_byteregset.
17828 All callers changed. Simplify code to only deal with two-word regs.
17829 * df.h (DF_WORD_LR): Renamed from DF_BYTE_LR.
17830 (DF_WORD_LR_BB_INFO): Renamed from DF_BYTE_LR_BB_INFO.
17831 (DF_WORD_LR_IN): Renamed from DF_BYTE_LR_IN.
17832 (DF_WORD_LR_OUT): Renamed from DF_BYTE_LR_OUT.
17833 (struct df_word_lr_bb_info): Renamed from df_byte_lr_bb_info.
17834 (df_word_lr_mark_ref): Declare.
17835 (df_word_lr_add_problem, df_word_lr_mark_ref, df_word_lr_simulate_defs,
17836 df_word_lr_simulate_uses): Declare or rename from byte variants.
17837 (df_byte_lr_simulate_artificial_refs_at_top,
17838 df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
17839 df_byte_lr_get_regno_len, df_compute_accessed_bytes): Delete
17841 (df_word_lr_get_bb_info): Rename from df_byte_lr_get_bb_info.
17842 (enum df_mm): Delete.
17843 * df-byte-scan.c: Delete file.
17844 * df-problems.c (df_word_lr_problem_data): Renamed from
17845 df_byte_lr_problem_data, all members deleted except for
17846 WORD_LR_BITMAPS, which is renamed from BYTE_LR_BITMAPS. Uses changed.
17847 (df_word_lr_expand_bitmap, df_byte_lr_simulate_artificial_refs_at_top,
17848 df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
17849 df_byte_lr_get_regno_len, df_byte_lr_check_regs,
17850 df_byte_lr_confluence_0): Delete functions.
17851 (df_word_lr_free_bb_info): Renamed from df_byte_lr_free_bb_info; all
17853 (df_word_lr_alloc): Renamed from df_byte_lr_alloc; all callers changed.
17854 Don't initialize members that were deleted, don't try to discover data
17855 about registers. Ignore hard regs.
17856 (df_word_lr_reset): Renamed from df_byte_lr_reset; all callers changed.
17857 (df_word_lr_mark_ref): New function.
17858 (df_word_lr_bb_local_compute): Renamed from
17859 df_byte_bb_lr_local_compute; all callers changed. Use
17860 df_word_lr_mark_ref. Assert that artificial refs don't include
17861 pseudos. Ignore hard registers.
17862 (df_word_lr_local_compute): Renamed from df_byte_lr_local_compute.
17863 Assert that exit block uses don't contain pseudos.
17864 (df_word_lr_init): Renamed from df_byte_lr_init; all callers changed.
17865 (df_word_lr_confluence_n): Renamed from df_byte_lr_confluence_n; all
17866 callers changed. Ignore hard regs.
17867 (df_word_lr_transfer_function): Renamed from
17868 df_byte_lr_transfer_function; all callers changed.
17869 (df_word_lr_free): Renamed from df_byte_lr_free; all callers changed.
17870 (df_word_lr_top_dump): Renamed from df_byte_lr_top_dump; all callers
17872 (df_word_lr_bottom_dump): Renamed from df_byte_lr_bottom_dump; all
17874 (problem_WORD_LR): Renamed from problem_BYTE_LR; uses changed;
17875 confluence operator 0 set to NULL.
17876 (df_word_lr_add_problem): Renamed from df_byte_lr_add_problem; all
17878 (df_word_lr_simulate_defs): Renamed from df_byte_lr_simulate_defs.
17879 Return bool, true if bitmap changed or insn otherwise necessary.
17880 All callers changed. Simplify using df_word_lr_mark_ref.
17881 (df_word_lr_simulate_uses): Renamed from df_byte_lr_simulate_uses;
17882 all callers changed. Simplify using df_word_lr_mark_ref.
17883 * lower-subreg.c: Include "dce.h"
17884 (decompose_multiword_subregs): Call run_word_dce if df available.
17885 * Makefile.in (lower-subreg.o): Adjust dependencies.
17886 (df-byte-scan.o): Delete.
17887 * timevar.def (TV_DF_WORD_LR): Renamed from TV_DF_BYTE_LR.
17889 2010-07-29 Richard Guenther <rguenther@suse.de>
17891 * tree.c (build_vector): Assert that the vector constant
17892 has enough elements.
17893 (build_vector_from_ctor): Pad with trailing zeros.
17895 2010-07-29 Richard Guenther <rguenther@suse.de>
17897 PR tree-optimization/45120
17898 * tree-ssa-structalias.c (get_constraint_for_component_ref):
17899 Handle offset in DEREFs properly.
17900 (get_constraint_for_1): Handle MEM_REF offset properly.
17902 2010-07-29 Richard Guenther <rguenther@suse.de>
17904 PR middle-end/45034
17905 * convert.c (convert_to_integer): Always use an unsigned
17906 type for narrowed negate and bitwise not.
17908 2010-07-29 Ira Rosen <irar@il.ibm.com>
17910 * tree-vect-loop.c (vect_create_epilog_for_reduction): Switch
17911 to outer loop when creating reduction epilogue for double reduction,
17912 and switch back to the inner loop when updating the phi nodes.
17913 Update uses of outer loop exit phi nodes in double reduction (instead
17914 of uses of reduction).
17916 2010-07-28 Michael Meissner <meissner@linux.vnet.ibm.com>
17918 * config/rs6000/rs6000.c (rs6000_rtx_costs): Update costs for
17919 popcount on power7 and parity on power6 systems.
17920 (rs6000_emit_popcount): Rename gen_popcntwsi2 to gen_popcntddi2.
17921 (rs6000_emit_parity): Add support for power6 prtyd/prtyw
17924 * config/rs6000/rs6000.md (UNSPEC_COPYSIGN): New unspec.
17925 (UNSPEC_PARITY): Ditto.
17926 (SFDF): New iterator for SF/DF.
17927 (rreg2): New mode attribute for floating register constraint.
17928 (TARGET_FLOAT): New mode attribute for whether single/double float
17930 (popcntd<mode>2): Combine popcntwsi2 and popcntddi2 into one
17932 (parity<mode>2_cmpb): New insn for parity on power6 and newer
17934 (copysign<mode>3): Combine copysignsf3, copysigndf3 into one
17935 pattern. Add support for fcpsgn instruction added in power6.
17936 (copysignsf3): Delete.
17937 (copysigndf3): Delete.
17938 (copysign<mode>3_fcpsgn): New insn to generate fcpsgn. Use UNSPEC
17939 instead of if_then_else in RTL to avoid problems with -0.
17941 * config/rs6000/vsx.md (vsx_copysign<mode>3): Use UNSPEC instead
17942 of if_then_else to mirror scalar code.
17943 (vsx_copysignsf3): Delete, use copysign<mode>3_fcpsgn in
17946 * config/rs6000/vector.md (vector_copysign<mode>3): Use UNSPEC
17947 instead of if_then_else.
17949 2010-07-28 Xinliang David Li <davidxl@google.com>
17951 * tree-ssa-loop-ivopts.c (avg_loop_niter): New function.
17952 (dump_cand): Dump var_before/after.
17953 (htab_inv_expr_eq): New function.
17954 (htab_inv_expr_hash): New function.
17955 (tree_ssa_iv_optimize_init): Support pseudo invariants.
17956 (add_candidate_1): consider base type precision.
17957 (set_use_iv_cost): New parameter.
17958 (adjust_setup_cost): Use profile information.
17959 (get_address_cost): Do not hard code width in computing address
17961 (compare_aff_trees): New function.
17962 (get_loop_invariant_expr_id): New function.
17963 (get_computation_cost_at): New parameter and use profile information.
17964 (get_computation_cost): New parameter.
17965 (determine_use_iv_cost_generic): Pass new parameter.
17966 (determine_use_iv_cost_address): Ditto.
17967 (determine_use_iv_cost_condition): Ditto.
17968 (autoinc_possible_for_pair): Ditto.
17969 (determine_use_iv_costs): More dumps.
17970 (iv_ca_get_num_inv_exprs): New function.
17971 (iv_ca_recount_cost): Consider loop invariants in register pressure
17973 (iv_ca_add_use): New parameter.
17974 (iv_ca_dump): Better dumping.
17975 (iv_ca_extend): New parameter.
17976 (try_add_cand_for): Attempt to get better partial solution.
17977 (try_improve_iv_set): Pass new parameter to iv_ca_extend.
17978 (create_new-ivs): More dumps.
17979 (rewrite_use_compare): Ditto.
17980 (free_loop_data): More cleanup.
17981 (treee_ssa_iv_optimize_finalize): Ditto.
17983 2010-07-28 Kai Tietz <kai.tietz@onevision.com>
17985 * config/i386/i386.h (MCOUNT_NAME_BEFORE_PROLOGUE): New.
17986 * config/i386/i386.c (ix86_profile_before_prologue): New.
17987 (override_options): Add special handling for -mfentry.
17988 (ix86_function_regparm): Likewise.
17989 (ix86_function_sseregparm): Likewise.
17990 (ix86_frame_pointer_required): Likewise.
17991 (ix86_expand_prologue): Check for ms_hook_prologue.
17992 (x86_function_profiler): Adjust mcount output.
17993 (TARGET_PROFILE_BEFORE_PROLOGUE): Define hook.
17994 * config/i386/i386.opt (mfentry): New.
17995 * doc/invoke.texi (mfentry): Add documentation.
17996 * doc/tm.texi: Regenerated..
17997 * doc/tm.texi.in (TARGET_PROFILE_BEFORE_PROLOGUE): New.
17998 * final.c (final_start_function): Replace macro
17999 PROFILE_BEFORE_PROLOGUE by target hook.
18000 * function.c (thread_prologue_and_epilogue_insns): Likewise.
18001 * target.def (profile_before_prologue): New hook.
18002 * targhooks.c (default_profile_before_prologue): New.
18003 * targhooks.h (default_profile_before_prologue): New.
18005 2010-07-28 Jakub Jelinek <jakub@redhat.com>
18008 * gcse.c (hoist_code): Use FOR_BB_INSNS macro.
18011 * dwarf2out.c (dwarf2out_var_location): Always consider
18012 NOTE_DURING_CALL_P notes, even when not followed by real instructions.
18014 2010-07-28 Maxim Kuvyrkov <maxim@codesourcery.com>
18016 PR rtl-optimization/45107
18017 * gcse.c (hash_scan_set): Use max_distance for gcse-las.
18019 2010-07-28 Richard Guenther <rguenther@suse.de>
18021 * tree-ssa-ccp.c: Remove comment regarding STORE-CCP.
18022 (set_lattice_value): Do not query an old default value.
18023 (get_value_for_expr): New function. Properly canonicalize
18025 (ccp_visit_phi_node): Use it.
18027 2010-07-28 Chung-Lin Tang <cltang@codesourcery.com>
18029 * config/arm/arm.c (arm_pcs_default): Remove static.
18030 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_PCS or
18031 __ARM_PCS_VFP to indicate soft/hard-float calling convention.
18032 (arm_pcs_default): Declare.
18034 2010-07-28 Iain Sandoe <iains@gcc.gnu.org>
18036 * config/rs6000/rs6000.c (rs6000_override_options):
18037 Use TARGET_MACHO inline, move darwin_one_byte_bool from here...
18038 ... to darwin_rs6000_override_options.
18039 (rs6000_return_in_memory): Update preceding comment for darwin
18040 64 bit ABI. Use TARGET_MACHO inline.
18041 (rs6000_darwin64_struct_check_p): New.
18042 (function_arg_advance): Use rs6000_darwin64_struct_check_p.
18043 (function_arg): Likewise.
18044 (rs6000_arg_partial_bytes): Likewise.
18045 (rs6000_function_value): Likewise.
18047 2010-07-28 Andi Kleen <ak@linux.intel.com>
18049 * lto-opts.c (lto_file_read_options): Add loop over all inputs.
18051 2010-07-28 Richard Guenther <rguenther@suse.de>
18053 PR middle-end/44903
18054 * builtins.c (fold_builtin_memory_op): On STRICT_ALIGNMENT
18055 targets try harder to not generate unaligned accesses.
18057 2010-07-28 Maxim Kuvyrkov <maxim@codesourcery.com>
18059 PR rtl-optimization/45101
18060 * gcse.c (hash_scan_set): Fix argument ordering of insert_expr_in_table
18063 2010-07-28 Eric Botcazou <ebotcazou@adacore.com>
18065 PR tree-optimization/44885
18066 * tree-sra.c (find_param_candidates): Skip pointer types to arrays
18067 with non-aliased component.
18069 2010-07-28 Joseph Myers <joseph@codesourcery.com>
18071 * config/darwin-driver.c (SWITCH_TAKES_ARG,
18072 WORD_SWITCH_TAKES_ARG): Remove.
18073 * cppspec.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
18074 * defaults.h (DEFAULT_SWITCH_TAKES_ARG,
18075 DEFAULT_WORD_SWITCH_TAKES_ARG): Move from gcc.h.
18076 (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move default
18077 definitions from gcc.c.
18078 * gcc.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move to
18080 * gcc.h (DEFAULT_SWITCH_TAKES_ARG, DEFAULT_WORD_SWITCH_TAKES_ARG):
18081 Move to defaults.h.
18082 * opts-common.c: Include tm.h.
18083 (decode_cmdline_option): Use SWITCH_TAKES_ARG and
18084 WORD_SWITCH_TAKES_ARG to count arguments to unknown options.
18085 Handle more than one argument. Set canonical_option_num_elements.
18086 (decode_cmdline_options_to_array): Set
18087 canonical_option_num_elements and trailing elements of
18089 * opts.h (struct cl_decoded_option): Allow four elements in
18090 canonical_option. Add field canonical_option_num_elements.
18091 * Makefile.in (opts-common.o): Update dependencies.
18093 2010-07-28 Eric Botcazou <ebotcazou@adacore.com>
18095 PR middle-end/44790
18096 PR middle-end/44993
18097 * expr.c (expand_expr_real_1) <MEM_REF>: Revert latest change. Make
18098 sure the base has address_mode before adding the offset.
18100 2010-07-27 Xinliang David Li <davidxl@google.com>
18102 * tree-flow.h (create_mem_ref): Add one new parameter.
18103 * tree-ssa-address.c (create_mem_ref): New parameter.
18104 (addr_to_parts): Ditto.
18105 (move_variant_to_index): New function.
18106 * tree-ssa-loop-ivopts.c (rewrite_use_address): Pass new argument.
18108 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
18110 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, NOTE): Swap operands
18112 * rtl.h (PATTERN, INSN_LOCATOR, NOTE_DATA, NOTE_DELETED_LABEL_NAME,
18113 NOTE_BLOCK, NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION,
18114 NOTE_KIND, LABEL_NUSES, LABEL_REFS): Adjust accordingly.
18115 * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of
18116 CODE_LABELs and NOTEs.
18117 * caller-save.c (init_caller_save): Fix up gen_rtx_INSN call.
18118 * combine.c (try_combine): Likewise.
18119 * ira.c (setup_prohibited_mode_move_regs): Likewise.
18120 * print-rtl.c (print_rtx): Start REG_NOTES on a new line.
18122 2010-07-27 Joseph Myers <joseph@codesourcery.com>
18124 * coretypes.h (struct cl_option_handlers): Declare.
18125 * hooks.c (hook_int_size_t_constcharptr_int_0): Remove.
18126 * hooks.h (hook_int_size_t_constcharptr_int_0): Remove.
18127 * langhooks-def.h (lhd_handle_option): Declare.
18128 (LANG_HOOKS_HANDLE_OPTION): Use lhd_handle_option.
18129 * langhooks.c (lhd_handle_option): New.
18130 * langhooks.h (struct lang_hooks): Update prototype and return
18131 value type of handle_option hook.
18132 * optc-gen.awk: Generate target_flags_explicit definition for the
18134 * opts-common.c: Include diagnostic.h.
18135 (handle_option): Move from opts.c. Update prototype and return
18136 value type. Use handlers structure.
18137 (read_cmdline_option): Move from opts.c. Update prototype. Use
18138 handlers structure.
18139 (set_option): Move from opts.c.
18140 * opts.c (common_handle_option): Update prototype and return value
18141 type. Update calls to handle_option and enable_warning_as_error.
18142 (unknown_option_callback, post_handling_callback,
18143 lang_handle_option, target_handle_option): New.
18144 (handle_option, read_cmdline_option): Move to opts-common.c.
18145 (read_cmdline_options): Update prototype. Update call to
18146 read_cmdline_option.
18147 (decode_options): Initialize and use handlers structure.
18148 (set_option): Move to opts-common.c.
18149 (enable_warning_as_error): Update prototype. Update call to
18151 * opts.h (struct cl_option_handler_func, struct
18152 cl_option_handlers): New.
18153 (handle_option, enable_warning_as_error): Update prototypes.
18154 (read_cmdline_option): Declare.
18155 * Makefile.in (opts-common.o): Update dependencies.
18157 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
18159 * config/arm/arm.c (params.h): Include.
18160 (arm_override_options): Tune gcse-unrestricted-cost.
18161 * config/arm/t-arm (arm.o): Define dependencies.
18163 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
18166 PR middle-end/42574
18167 * basic-block.h (get_dominated_to_depth): Declare.
18168 * dominance.c (get_dominated_to_depth): New function, use
18169 get_all_dominated_blocks as a base.
18170 (get_all_dominated_blocks): Use get_dominated_to_depth.
18172 * gcse.c (occr_t, VEC (occr_t, heap)): Define.
18173 (hoist_exprs): Remove.
18174 (alloc_code_hoist_mem, free_code_hoist_mem): Update.
18175 (compute_code_hoist_vbeinout): Add debug print outs.
18176 (hoist_code): Partially rewrite, simplify. Use get_dominated_to_depth.
18178 * params.def (PARAM_MAX_HOIST_DEPTH): New parameter to avoid
18179 quadratic behavior.
18180 * params.h (MAX_HOIST_DEPTH): New macro.
18181 * doc/invoke.texi (max-hoist-depth): Document.
18183 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
18185 PR rtl-optimization/40956
18186 * config/arm/arm.c (thumb1_size_rtx_costs): Fix cost of simple
18189 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
18192 PR middle-end/42574
18193 * config/arm/arm.c (legitimize_pic_address): Use
18194 gen_calculate_pic_address pattern to emit calculation of PIC address.
18195 (will_be_in_index_register): New function.
18196 (arm_legitimate_address_outer_p, thumb2_legitimate_address_p,)
18197 (thumb1_legitimate_address_p): Use it provided !strict_p.
18198 * config/arm/arm.md (calculate_pic_address): New expand and split.
18200 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
18203 PR middle-end/42574
18204 * config/arm/arm.c (thumb1_size_rtx_costs): Add cost for "J" constants.
18205 * config/arm/arm.md (define_split "J", define_split "K"): Make
18206 IRA/reload friendly.
18208 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
18210 * gcse.c (insert_insn_end_basic_block): Update signature, remove
18212 (pre_edge_insert, hoist_code): Update.
18214 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
18217 PR middle-end/42574
18218 * gcse.c (hoist_expr_reaches_here_p): Remove excessive check.
18220 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
18222 * gcse.c (hoist_code): Generate new pseudo for every new set insn.
18224 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
18226 PR rtl-optimization/40956
18228 PR middle-end/42574
18229 * gcse.c (compute_code_hoist_vbeinout): Consider more expressions
18231 (hoist_code): Count occurences in current block too.
18233 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
18235 * gcse.c (struct expr:max_distance): New field.
18236 (doing_code_hoisting_p): New static variable.
18237 (want_to_gcse_p): Change signature. Allow constrained hoisting of
18238 simple expressions, don't change behavior for PRE. Set max_distance.
18239 (insert_expr_in_table): Set new max_distance field.
18240 (hash_scan_set): Update.
18241 (hoist_expr_reaches_here_p): Stop search after max_distance
18243 (find_occr_in_bb): New static function. Use it in ...
18244 (hoist_code): Calculate sizes of basic block before any changes are
18245 done. Pass max_distance to hoist_expr_reaches_here_p.
18246 (one_code_hoisting_pass): Set doing_code_hoisting_p.
18248 * params.def (PARAM_GCSE_COST_DISTANCE_RATIO,)
18249 (PARAM_GCSE_UNRESTRICTED_COST): New parameters.
18250 * params.h (GCSE_COST_DISTANCE_RATIO, GCSE_UNRESTRICTED_COST): New
18252 * doc/invoke.texi (gcse-cost-distance-ratio, gcse-unrestricted-cost):
18255 2010-07-27 Jeff Law <law@redhat.com>
18256 Maxim Kuvyrkov <maxim@codesourcery.com>
18258 * gcse.c (compute_transpout, transpout): Remove, move logic
18259 to prune_expressions.
18260 (compute_pre_data): Move pruning of trapping expressions ...
18261 (prune_expressions): ... here. New static function.
18262 (compute_code_hoist_data): Use it.
18263 (alloc_code_hoist_mem, free_code_hoist_mem, hoist_code): Update.
18265 2010-07-27 Xinliang David Li <davidxl@google.com>
18267 * tree-ssa-loop-ivopts.c (adjust_iv_update_pos): New function.
18268 (rewrite_use_address): Adjust iv update position when needed.
18270 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
18272 * dbgcnt.def (hoist_insn): New debug counter.
18273 * gcse.c (hoist_code): Use it.
18275 2010-07-27 Xinliang David Li <davidxl@google.com>
18277 * tree-ssa-loop-ivopts.c (niter_for_exit): New parameter.
18278 (niter_for_single_dom_exit): Passes additional parameter.
18279 (iv_period): Fix comments.
18280 (may_eliminate_iv): Handles multiple exit loops properly.
18281 (free_tree_niter_desc): New function.
18282 (free_loop_data): Frees up loop iteration descriptors.
18284 2010-07-27 Jakub Jelinek <jakub@redhat.com>
18287 * cfgexpand.c (expand_one_stack_var_at): Limit align to maximum
18288 of max_used_stack_slot_alignment and PREFERRED_STACK_BOUNDARY
18289 instead of MAX_SUPPORTED_STACK_ALIGNMENT.
18290 (expand_one_var): Don't consider DECL_ALIGN for variables for
18291 which expand_one_stack_var_at has been already called.
18294 * doc/md.texi: Clarify m and es constraints on PowerPC and m and S
18295 constraints on IA-64.
18297 2010-07-27 Jie Zhang <jie@codesourcery.com>
18301 2010-07-23 Jie Zhang <jie@codesourcery.com>
18303 * tree-sra.c (ipa_sra_preliminary_function_checks): Return
18304 false if ! tree_versionable_function_p.
18306 2010-07-27 Jakub Jelinek <jakub@redhat.com>
18308 * dwarf2out.c (add_data_member_location_attribute): Use
18309 add_AT_unsigned instead of add_AT_int if offset is non-negative.
18311 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
18313 * postreload.c (try_replace_in_use): New static function.
18314 (reload_combine_recognize_const_pattern): Use it here. Allow
18315 substituting into a final add insn, and substituting into a memory
18316 reference in an insn that sets the reg.
18318 2010-07-27 Joseph Myers <joseph@codesourcery.com>
18320 * common.opt (o): Add MissingArgError.
18321 * doc/options.texi (MissingArgError): Document.
18322 * hooks.c (hook_bool_constcharptr_size_t_false): Remove.
18323 * hooks.h (hook_bool_constcharptr_size_t_false): Remove.
18324 * langhooks-def.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
18325 (LANG_HOOKS_INITIALIZER): Remove missing_argument hook initializer.
18326 * langhooks.h (struct lang_hooks): Remove missing_argument.
18327 * optc-gen.awk: Handle MissingArgError and output new structure
18328 field initializers.
18329 * opts.c (read_cmdline_option): Use missing_argument_error field
18330 instead of missing_argument langhook.
18331 * opts.h (struct cl_option): Add missing_argument_error field.
18332 * system.h (LANG_HOOKS_MISSING_ARGUMENT): Poison.
18334 2010-07-27 Iain Sandoe <iains@gcc.gnu.org>
18337 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Special-case the
18338 Darwin64 ABI, for zero-sized objects.
18340 2010-07-27 Iain Sandoe <iains@gcc.gnu.org>
18345 Merge from Apple local 4.2.1.
18346 2005-05-11 Stan Shebs <shebs@apple.com>
18347 Fix 64-bit varargs for Darwin (Radar 4028089).
18348 * config/rs6000/rs6000.h (rs6000_args): New field floats_in_gpr.
18349 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
18350 Add argument, add case for 8-byte register half-filled with a float.
18351 (rs6000_darwin64_record_arg_advance_recurse): Detect and handle
18352 single-precision floats specially.
18354 2010-07-27 Ira Rosen <irar@il.ibm.com>
18356 PR tree-optimization/44152
18357 * tree-vect-slp.c (vect_build_slp_tree): Collect nodes with
18358 complex numbers for further check.
18359 (vect_supported_load_permutation_p): Check nodes with
18362 2010-07-27 Joseph Myers <joseph@codesourcery.com>
18364 * langhooks-def.h (lhd_init_options, LANG_HOOKS_OPTION_LANG_MASK,
18365 LANG_HOOKS_COMPLAIN_WRONG_LANG_P): New.
18366 (LANG_HOOKS_INIT_OPTIONS): Update default definition.
18367 (LANG_HOOKS_INITIALIZER): Add new hooks.
18368 * langhooks.c (lhd_init_options, lhd_complain_wrong_lang_p): New.
18369 * langhooks.h (struct lang_hooks): Add new hooks option_lang_mask
18370 and complain_wrong_lang_p. Update init_options prototype.
18371 * c-objc-common.c (c_initialize_diagnostics): First call
18372 c_common_initialize_diagnostics.
18373 * c-objc-common.h (LANG_HOOKS_OPTION_LANG_MASK,
18374 LANG_HOOKS_COMPLAIN_WRONG_LANG_P): Define.
18375 * coretypes.h (struct cl_option, struct cl_decoded_option): Declare.
18376 * hooks.c (hook_uint_uint_constcharptrptr_0): Remove.
18377 (hook_uint_void_0): New.
18378 * hooks.h (hook_uint_uint_constcharptrptr_0): Remove.
18379 (hook_uint_void_0): New.
18380 * opts-common.c (decode_cmdline_option,
18381 decode_cmdline_options_to_array): Also fill in canonical_option field.
18382 * opts.c (complain_wrong_lang): Use langhook to determine whether
18383 to complain instead of special-casing LTO.
18384 (decode_options): Separate lang_mask determination with
18385 option_lang_mask hook from call of init_options hook.
18386 * opts.h (struct cl_decoded_option): Add canonical_option.
18388 2010-07-27 Jakub Jelinek <jakub@redhat.com>
18390 PR tree-optimization/45083
18391 * tree-inline.c (add_local_variables): Also remap DECL_DEBUG_EXPR.
18393 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
18395 * postreload.c (reload_combine_recognize_const_pattern): Move test
18396 for limiting the insn movement to the right scope.
18398 PR rtl-optimization/45051
18399 * reload1.c (delete_output_reload): Use refers_to_regno_p rather
18400 than reg_mentioned_p.
18402 2010-07-26 Richard Henderson <rth@redhat.com>
18405 * tree-emutls.c: New file.
18406 * Makefile.in (OBJS-common): Add it.
18407 * tree-pass.h (pass_ipa_lower_emutls): Declare.
18408 * passes.c (init_optimization_passes): Add it.
18410 * dwarf2out.c (loc_list_from_tree): If emutls.debug_form_tls_address,
18411 pull the control variable from DECL_VALUE_EXPR, not emutls_decl.
18412 * expr.c (emutls_var_address): Delete.
18413 (expand_expr_addr_expr_1, expand_expr_real_1): Don't use it.
18414 * output.h (SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL): Delete.
18415 (emutls_finish): Delete.
18416 * toplev.c (compile_file): Don't call it.
18417 * tree.h (emutls_decl): Delete.
18418 * varasm.c (emutls_htab, DECL_EMUTLS_VAR_P): Delete.
18419 (emutls_finish, emutls_finalize_control_var): Delete.
18420 (emutls_object_type): Move to tree-emutls.c.
18421 (EMUTLS_SEPARATOR, prefix_name, get_emutls_object_name,
18422 default_emutls_var_fields, get_emutls_object_type,
18423 get_emutls_init_templ_addr, emutls_decl, emutls_common_1
18424 default_emutls_var_init): Likewise.
18425 (get_variable_section): Don't special case emutls.
18426 (assemble_variable, do_assemble_alias, categorize_decl_for_section,
18427 default_elf_select_section, default_unique_section,
18428 default_encode_section_info): Likewise.
18429 * varpool.c (decide_is_variable_needed): Likewise.
18430 * gimple-iterator.c (update_call_edge_frequencies): New
18431 (gsi_insert_on_edge_immediate): Use it.
18432 (gsi_insert_seq_on_edge_immediate): Likewise.
18433 (gsi_commit_one_edge_insert): Likewise.
18435 * config/i386/i386.c (x86_64_elf_select_section): Don't handle
18436 SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL.
18437 (x86_64_elf_unique_section): Likewise.
18439 2010-07-26 Jan Hubicka <jh@suse.cz>
18441 * lto-streamer.h (struct lto_file_decl_data): Mark resolutions with
18444 2010-07-26 Anatoly Sokolov <aesok@post.ru>
18446 * target.def (output_source_filename): New hook.
18447 * doc/tm.texi.in (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Document.
18448 * doc/tm.texi: Regenerate.
18449 * toplev.c (output_file_directive) Remove function.
18450 * toplev.h (output_file_directive) Remove.
18451 * output.h (default_asm_output_source_filename,
18452 output_file_directive): Declare.
18453 * varasm.h (default_asm_output_source_filename,
18454 output_file_directive): New functions.
18456 * config/mips/mips.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
18457 * config/mips/mips-protos.h (mips_output_filename): Remove.
18458 * config/mips/mips.c (mips_output_filename): Make Static.
18459 (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
18461 2010-07-26 Richard Guenther <rguenther@suse.de>
18463 PR tree-optimization/43784
18464 * tree-nrv.c (dest_safe_for_nrv_p): It's not safe to NRV
18465 if the destination is used by the call.
18467 2010-07-26 Richard Guenther <rguenther@suse.de>
18469 PR middle-end/45073
18470 * gimple-fold.c (gimplify_and_update_call_from_tree): Conditionalize
18471 SSA updating on being in SSA form.
18473 2010-07-26 Richard Guenther <rguenther@suse.de>
18475 PR middle-end/45056
18476 * gimple-fold.c (fold_stmt_1): Also fold references in debug stmts.
18478 2010-07-26 Richard Guenther <rguenther@suse.de>
18480 PR tree-optimization/45071
18481 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Always
18484 2010-07-26 Naveen.H.S <naveen.S@kpitcummins.com>
18486 * config/v850/lib1funcs.asm (save_r2_r31, return_r2_r31,
18487 save_r20_r31, return_r20_r31, save_r21_r31, return_r21_r31,
18488 save_r22_r31, return_r22_r31, save_r23_r31, return_r23_r31,
18489 save_r24_r31, return_r24_r31, save_r25_r31, return_r25_r31,
18490 save_r26_r31, return_r26_r31, save_r27_r31, return_r27_r31,
18491 save_r28_r31, return_r28_r31, save_r29_r31, return_r29_r31,
18492 save_r31, return_r31, save_interrupt, return_interrupt,
18493 save_all_interrupt, return_all_interrupt, L_save_r2_r31,
18494 L_return_interrupt, callt_return_interrupt, L_restore_all_interrupt,
18495 L_save_##START##_r31c, L_callt_save_r31c): Updated as per the
18496 new ABI requirements.
18497 (save_r6_r9, L_callt_save_r6_r9): Remove.
18498 * config/v850/predicates.md (even_reg_operand, disp23_operand,
18499 const_float_1_operand const_float_0_operand): New Predicates.
18500 (pattern_is_ok_for_prepare, pattern_is_ok_for_prologue,
18501 pattern_is_ok_for_epilogue): Update as per the ABI requirements.
18502 * config/v850/t-v850: Update multilibs for new target variants.
18503 (save_varargs, callt_save_varargs, callt_save_r6_r9): Remove.
18504 * config/v850/t-v850e: Likewise.
18505 * config/v850/v850.c (v850_issue_rate): New.
18506 (v850_strict_argument_naming): New.
18507 (function_arg): Modify to generate a different ABI.
18508 (print_operand): Update case 'z' to support float modes.
18509 (output_move_single): Modify to generate appropriate and better
18511 (v850_float_z_comparison_operator, v850_select_cc_mode,
18512 v850_float_nz_comparison_operator, v850_gen_float_compare,
18513 v850_gen_compare): New functions to support comparison of float values.
18514 (ep_memory_offset): Add support for V850E2 targets.
18515 (INTERRUPT_FIXED_NUM, INTERRUPT_ALL_SAVE_NUM): Update.
18516 (INTERRUPT_REGPARM_NUM): Remove.
18517 (compute_register_save_size): Add extra case to save/restore long call.
18518 (use_prolog_function): New function to support prologue.
18519 (expand_prologue): Add support for V850E2 targets and modified
18520 as per the current ABI requirements.
18521 (expand_epilogue): Likewise.
18522 (construct_restore_jr): Modify based on TARGET_LONG_CALLS.
18523 (construct_save_jarl): Likewise.
18524 (construct_dispose_instruction): Update as per the current ABI
18526 (construct_prepare_instruction): Likewise.
18527 * config/v850/v850.h (TARGET_CPU_DEFAULT): Add target predefines.
18528 (TARGET_CPU_v850e2, TARGET_CPU_v850e2v3): Define
18529 (CPP_SPEC): Updated to support v850e2 targets.
18530 (STRICT_ALIGNMENT): Modified.
18531 (FIRST_PSEUDO_REGISTER): Updated to add even registers.
18532 (FIXED_REGISTERS): Likewise.
18533 (CALL_USED_REGISTERS): Likewise.
18534 (CONDITIONAL_REGISTER_USAGE): Updated.
18535 (HARD_REGNO_MODE_OK): Updated.
18536 (reg_class): Updated to add even registers.
18537 (REG_CLASS_NAMES): Likewise.
18538 (REG_CLASS_CONTENTS): Likewise.
18539 (REGNO_REG_CLASS): Updated for CC registers.
18540 (REG_CLASS_FROM_LETTER): Added support for even registers.
18541 (REGNO_OK_FOR_BASE_P): Updated for CC registers.
18542 (STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM, LINK_POINTER_REGNUM,
18543 ARG_POINTER_REGNUM): Updated.
18544 (FUNCTION_ARG_ADVANCE): Define.
18545 (REG_PARM_STACK_SPACE): Update as per the current ABI requirements.
18546 (OUTGOING_REG_PARM_STACK_SPACE): Remove.
18547 (EXTRA_CONSTRAINT): Add new constraint 'W' for 23-bit displacement.
18548 (GO_IF_LEGITIMATE_ADDRESS): Updated.
18549 (SELECT_CC_MODE): Define.
18550 (REGISTER_NAMES): Updated to add psw and fcc registers.
18551 (ADDITIONAL_REGISTER_NAMES): Updated.
18552 (ASM_OUTPUT_ADDR_DIFF_ELT): Updated to support new targets.
18553 (JUMP_TABLES_IN_TEXT_SECTION): Updated.
18554 * config/v850/v850.md (define_constants): Define new constants.
18555 (type): Update store,bit1,macc,div,fpu and single attributes.
18556 (cpu): New attribute.
18557 (cc): Add set_z attribute.
18558 (unsign23byte_load, sign23byte_load, unsign23hword_load,
18559 sign23hword_load, 23word_load, 23byte_store, 23hword_store,
18560 23word_store): New instructions for 23-bit displacement load and store.
18561 (movqi_internal, movhi_internal): Update the attributes.
18562 (movsi, movsi_internal_v850e): Updated to support v850e2 targets.
18563 (movsi_internal_v850e, movsi_internal, movsf_internal): Update
18565 (v850_tst1): Modified using CC_REGNUM.
18567 (cmpsi): Modified as define_expand from define_insn.
18568 (cmpsi_insn, cmpsf, cmpdf): New instructions.
18569 (addsi3, subsi3, negsi2, divmodsi4, udivmodsi4, divmodhi4,
18570 udivmodhi4, v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3,
18571 v850_set1_1, v850_set1_3, iorsi3, v850_not1_1, v850_not1_3, xorsi3,
18572 one_cmplsi2): Clobber the CC_REGNUM register.
18573 (v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3, v850_set1_1,
18574 v850_set1_2, v850_set1_3, iorsi3, v850_not1_1, v850_not1_2,
18575 v850_not1_3, xorsi3, one_cmplsi2): Update the attributes accordingly.
18576 (setf_insn, set_z_insn, set_nz_insn): New instructions for
18578 (movsicc_normal_cc, movsicc_reversed_cc): New instructions.
18579 (movsicc, movsicc_normal, movsicc_reversed): Add support for V850E2
18581 (sasf_1, sasf_2): Remove.
18582 (sasf): New instruction.
18583 (rotlhi3, rotlhi3_8, rotlsi3, rotlsi3_16): Update to support V850E2
18584 targets. CC_REGNUM register is clobbered and attributes are
18586 (branch_z_normal, branch_z_invert, branch_nz_normal,
18587 branch_nz_invert): New branch related instructions.
18588 (jump): Updated the attributes.
18589 (switch): Update to support new targets. CC_REGNUM register is
18590 clobbered and attributes are updated.
18591 (call_internal_short, call_internal_long, call_value_internal_short,
18592 call_value_internal_long): Updated the attributes.
18593 (zero_extendhisi2, zero_extendqisi2): CC_REGNUM register is
18594 clobbered and attributes are updated.
18595 (extendhisi_insn, extendhisi2, extendqisi_insn, extendqisi2):
18596 Update to support new targets. CC_REGNUM register is clobbered.
18597 (ashlsi3_v850e2, lshrsi3_v850e2, ashrsi3_v850e2): New shift
18599 (lshrsi3, ashrsi3): CC_REGNUM register is clobbered and attributes
18601 (ffssi2, addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, divsf3,
18602 divdf3, minsf3, mindf3, maxsf3, maxdf3, abssf2, absdf2, negsf2,
18603 negdf2, sqrtsf2, sqrtdf2, truncsfsi2, truncdfsi2, floatsisf2,
18604 floatsidf2, extendsfdf2, extenddfsf2, recipsf2, recipdf2,
18605 rsqrtsf2, rsqrtdf2, maddsf4, msubsf4, nmaddsf4, nmsubsf4,
18606 cmpsf_le_insn, cmpsf_lt_insn, cmpsf_ge_insn, cmpsf_gt_insn,
18607 cmpsf_eq_insn, cmpsf_ne_insn, cmpdf_le_insn, cmpdf_lt_insn,
18608 cmpdf_ge_insn, cmpdf_gt_insn, cmpdf_eq_insn, cmpdf_ne_insn, trfsr,
18609 movsfcc, movdfcc, movsfcc_z_insn, movsfcc_nz_insn, movdfcc_z_insn,
18610 movdfcc_nz_insn, movedfcc_z_zero, movedfcc_nz_zero): New floating
18611 point instructions defined for V850e2v3 target.
18612 (callt_save_interrupt, callt_return_interrupt, return_interrupt):
18613 Add support for V850E2 targets and CC_REGNUM register is clobbered.
18614 (callt_save_all_interrupt, callt_restore_all_interrupt): Add
18615 support for new targets.
18616 * config/v850/v850-modes.def: New file.
18617 * config/v850/v850.opt(mstrict-align): Remove.
18618 (mno-strict-align, mjump-tables-in-data-section, mv850e2,
18619 mv850e2v3): New command line options for V850.
18620 * config.gcc: Update the newly added files.
18621 * doc/invoke.texi: Update the newly added command line options for
18624 2010-07-26 Richard Guenther <rguenther@suse.de>
18626 PR tree-optimization/45052
18627 * ipa-pure-const.c (check_stmt): Check volatileness.
18629 2010-07-25 Eric Botcazou <ebotcazou@adacore.com>
18632 * config/sparc/sparc-protos.h (sparc_legitimize_reload_address): New.
18633 * config/sparc/sparc.c: Include reload.h.
18634 (legitimize_tls_address): Rename into...
18635 (sparc_legitimize_tls_address): ...this.
18636 (legitimize_pic_address): Rename into...
18637 (sparc_legitimize_pic_address): ...this.
18638 (sparc_expand_move): Adjust to above renaming.
18639 (sparc_tls_referenced_p): Likewise.
18640 (sparc_legitimize_tls_address): Likewise.
18641 (sparc_legitimize_pic_address): Likewise.
18642 (sparc_legitimize_address): Likewise.
18643 (sparc_output_mi_thunk): Likewise.
18644 (sparc_legitimize_reload_address): New global function. Recognize
18645 (lo_sum (high ...) ...) patterns generated by earlier passes.
18646 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Use above function.
18648 2010-07-25 Eric Botcazou <ebotcazou@adacore.com>
18651 * config/sparc/predicates.md (memory_reg_operand): Delete.
18652 * config/sparc/sync.md (sync_compare_and_swap): Minor tweaks.
18653 (*sync_compare_and_swap): Encode the address form in the pattern.
18654 (*sync_compare_and_swapdi_v8plus): Likewise.
18656 2010-07-24 Gerald Pfeifer <gerald@pfeifer.com>
18658 * doc/install.texi (Specific, *-*-freebsd*): Adjust to recent changes.
18659 Streamline paragraph on compatibility with the system compiler.
18661 2010-07-24 Steven Bosscher <steven@gcc.gnu.org>
18663 PR middle-end/45035
18664 * alias.c (true_dependence_1): Fix thinko in merge of old
18665 true_dependence and canon_true_dependence.
18667 2010-07-23 Jan Hubicka <jh@suse.cz>
18669 * lto-streamer-out.c (write_symbol): Fix visibilities of external
18672 2010-07-23 Le-Chun Wu <lcwu@google.com>
18674 * omega.c (omega_eliminate_redundant): Remove a self-assign statement.
18675 * tree-ssa-ccp.c (ccp_lattice_meet): Remove a self-assign statement
18676 and an unnecessary assignment.
18677 * dbxout.c (DEBUGGER_ARG_OFFSET): Change OFFSET to OFFSET+0 to avoid
18678 self-assign warning.
18679 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Remove
18680 unnecessary self-init.
18682 2010-07-23 Richard Guenther <rguenther@suse.de>
18685 * gcc.c (LINK_COMMAND_SPEC): Filter out -fcompare-debug
18686 for -flto and -fwhopr.
18688 2010-07-23 Kai Tietz <kai.tietz@onevision.com>
18691 * Makefile.in (USER_H_INC_NEXT_PRE, USER_H_INC_NEXT_POST): New.
18692 (stmp-int-hdrs): Prefix/postfix headers by include_next.
18693 * config.gcc (user_headers_inc_next_pre): New.
18694 (user_headers_inc_next_post): Likewise.
18695 (*-w64-mingw*): Use for float.h post-fixing, and for
18696 stddef.h/stdarg.h pre-fixing by include_next.
18697 * configure.ac (user_headers_inc_next_post): New.
18698 (user_headers_inc_next_pre): New.
18699 * configure: Regenerated.
18701 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18703 * configure.ac: Don't disable TLS on Solaris 8/9 by default
18704 Set tga_func for Solaris 2/x86 resp. SPARC.
18705 Remove duplicate parts of sparc*-sun-solaris2.* TLS check.
18706 (LIB_THREAD_LDFLAGS_SPEC): Define.
18707 (LIB_TLS_SPEC): Define. Check for required Sun ld version.
18708 * configure: Regenerate.
18709 * config.in: Regenerate.
18710 * config/sol2.h (LIB_SPEC): Use LIB_THREAD_LDFLAGS_SPEC with
18711 -pthread, -threads, LIB_TLS_SPEC with -pthread.
18712 * doc/install.texi (Specific, *-*-solaris2*): Document use of
18713 alternate thread libraries on Solaris 8.
18714 Document TLS patch requirements.
18715 * doc/sourcebuild.texi (Add Options): Sort alphabetically.
18719 * config/sol2.h (LIB_SPEC): Link with thread libraries even with
18722 2010-07-23 Jakub Jelinek <jakub@redhat.com>
18724 * tree.h (struct tree_base): Add nameless_flag bitfield.
18725 (TYPE_NAMELESS, DECL_NAMELESS): Define.
18726 * omp-low.c (create_omp_child_function, scan_omp_parallel,
18727 scan_omp_task, lower_omp_taskreg): Set DECL_NAMELESS and/or
18728 DECL_ARTIFICIAL where needed.
18729 * dwarf2out.c (dwarf2_name): Return NULL if DECL_NAMELESS.
18730 (type_tag): Return NULL if TYPE_NAMELESS or if TYPE_DECL
18731 has DECL_NAMELESS set.
18733 2010-07-23 Martin Jambor <mjambor@suse.cz>
18735 PR tree-optimization/44915
18736 * ipa-cp.c (cgraph_gate_cp): Also check that optimize is true.
18737 * ipa-inline.c (cgraph_mark_inline_edge): Likewise.
18738 (analyze_function): Likewise.
18740 2010-07-23 Martin Jambor <mjambor@suse.cz>
18742 PR tree-optimization/44914
18743 * tree-sra.c (sra_modify_function_body): Return true if CFG was
18744 changed, add purging dead eh edges.
18745 (ipa_sra_modify_function_body): Return true if CFG was changed,
18746 simplify purging dead eh edges.
18747 (modify_function): Return true if CFG was changed.
18748 (perform_intra_sra): Add TODO_cleanup_cfg to the return value if CFG
18750 (ipa_early_sra): Likewise.
18752 2010-07-23 Jie Zhang <jie@codesourcery.com>
18755 * attribs.c (decl_attributes): Insert "noinline" and "noclone"
18757 * tree-sra.c (ipa_sra_preliminary_function_checks): Return
18758 false if ! tree_versionable_function_p.
18760 2010-07-23 Nathan Froyd <froydnj@codesourcery.com>
18762 * builtins.def (BUILT_IN_ARGS_INFO): Remove.
18763 * ipa-pure-const.c (special_builtlin_state): Remove
18764 BUILT_IN_ARGS_INFO case.
18765 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
18766 * builtins.c (expand_builtin): Likewise.
18767 (expand_builtin_args_info): Remove.
18768 * doc/tm.texi (__builtin_args_info): Remove.
18769 (__builtin_next_arg): Adjust to not refer to __builtin_args_info.
18770 * doc/tm.text.in: Likewise.
18772 2010-07-23 Richard Guenther <rguenther@suse.de>
18774 * lto-symtab.c (lto_symtab_merge): Use gtc_mode enum values.
18775 (lto_symtab_merge_decls_2): Likewise.
18776 * tree-ssa.c (useless_type_conversion_p): Likewise.
18777 * lto-streamer-in.c (input_gimple_stmt): Likewise.
18778 * gimple.c (gtc_visited2, gtc_ob2): Remove.
18779 (struct type_pair_d): Make same_p an array indexed by mode.
18781 (lookup_type_pair): Update initialization.
18782 (struct sccs): Adjust same_p type.
18783 (gimple_types_compatible_p_1, gtc_visit, gimple_types_compatible_p):
18785 (print_gimple_types_stats): Likewise.
18786 * gimple.h (enum gtc_mode): New.
18787 (gimple_types_compatible_p): Adjust prototype.
18789 2010-07-23 Daniel Jacobowitz <dan@codesourcery.com>
18791 * dwarf2out.c (dwarf2out_frame_debug): Check for queued saves
18792 again after processing insn.
18794 2010-07-23 Jie Zhang <jie@codesourcery.com>
18796 * tree-sra.c (ipa_sra_preliminary_function_checks): Dump
18797 proper words when !tree_versionable_function_p.
18799 2010-07-23 Richard Guenther <rguenther@suse.de>
18801 PR tree-optimization/45037
18802 * tree-ssa-loop-ivopts.c (copy_ref_info): Handle NULL base.
18804 2010-07-23 Jie Zhang <jie@codesourcery.com>
18806 * doc/extend.texi: Remove IP2K from the description of naked attribute.
18809 2010-07-10 Andi Kleen <ak@linux.intel.com>
18812 * lto-opts.c (lto_write_options): Add NULL file_data argument to
18813 lto_get_section_name.
18814 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
18815 * lto-streamer-out.c (produce_asm): Likewise.
18816 (copy_function): Likewise.
18817 (produce_symtab): Likewise.
18818 (produce_asm_for_decls): Likewise.
18819 * lto-streamer.c (lto_get_section_name): Add file_data argument.
18820 Rewrite to add random postfix to LTO sections.
18821 * lto-streamer.h (lto_file_decl_data): Add next, id, resolutions.
18822 (lto_get_section_name): Add file_data argument to prototype.
18824 2010-07-10 Andi Kleen <ak@linux.intel.com>
18826 * lto-section-in.c (lto_section_name): Synchronize names
18827 with lto_get_section_name.
18829 2010-07-10 Andi Kleen <ak@linux.intel.com>
18831 * lto-opts.c (lto_read_file_options): Check for missing section.
18833 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
18835 * ira.c (check_allocation): Correctly handle the case where an allocno
18836 with two objects was allocated to a single reg.
18838 2010-07-22 Richard Sandiford <rdsandiford@googlemail.com>
18840 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): New function.
18841 (is_widening_mult_p): Likewise.
18842 (convert_to_widen): Use them.
18843 (convert_plusminus_to_widen): Likewise. Handle fixed-point types as
18844 well as integer ones.
18846 2010-07-22 Steven Bosscher <steven@gcc.gnu.org>
18848 * alias.c (true_dependence_1): New function, merged version of
18849 true_dependence and canon_true_dependence.
18850 (true_dependence): Simplify.
18851 (canon_true_dependence): Simplify.
18853 2010-07-22 Richard Henderson <rth@redhat.com>
18856 * config/i386/i386.c (setup_incoming_varargs_64): Force the use
18857 of V4SFmode for the SSE saves; increase stack alignment if needed.
18858 (ix86_gimplify_va_arg): Don't increase stack alignment here.
18860 2010-07-22 Jakub Jelinek <jakub@redhat.com>
18863 * recgprop.c (copyprop_hardreg_forward_1): If changed is true,
18864 call cprop_find_used_regs again via note_uses.
18866 2010-07-22 Eric Botcazou <ebotcazou@adacore.com>
18868 * alias.c (get_alias_set): Fix formatting issues.
18870 2010-07-22 Steve Ellcey <sje@cup.hp.com>
18872 PR middle-end/44878
18873 * stmt.c (expand_value_return): Call promote_function_mode with
18874 a for_return argument of 2 when returning by reference.
18876 2010-07-22 Dodji Seketeli <dodji@redhat.com>
18879 * dwarf2out.c (scope_die_for): Don't fall back to the compilation
18880 unit DIE if we can find the scope DIE.
18882 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
18884 * ira-build.c (ira_create_object): New arg SUBWORD; all callers
18885 changed. Initialize OBJECT_SUBWORD.
18886 (ira_create_allocno): Clear ALLOCNO_NUM_OBJECTS.
18887 (ira_create_allocno_objects): Renamed from ira_create_allocno_object;
18888 all callers changed.
18889 (merge_hard_reg_conflicts): Iterate over allocno subobjects.
18890 (finish_allocno): Likewise.
18891 (move_allocno_live_ranges, copy_allocno_live_ranges): Likewise.
18892 (remove_low_level_allocnos): Likewise.
18893 (update_bad_spill_attribute): Likewise.
18894 (setup_min_max_allocno_live_range_point): Likewise.
18895 (sort_conflict_id_map): Likewise.
18896 (ira_flattening): Likewise. Use ior_hard_reg_conflicts.
18897 (ior_hard_reg_conflicts): New function.
18898 (ior_allocate_object_conflicts): Renamed first argument to OBJ.
18899 (compress_conflict_vecs): Iterate over objects, not allocnos.
18900 (ira_add_live_range_to_object): New function.
18901 (object_range_compare_func): Renamed from allocno_range_compare_func.
18902 All callers changed.
18903 (setup_min_max_conflict_allocno_ids): For allocnos with multiple
18904 subobjects, widen the min/max range of the lowest-order object to
18905 potentially include all other such low-order objects.
18906 * ira.c (ira_bad_reload_regno_1): Iterate over allocno subobjects.
18907 (check_allocation): Likewise. Use more fine-grained tests for register
18909 * ira-color.c (allocnos_have_intersected_live_ranges_p): Iterate over
18910 allocno subobjects.
18911 (assign_hard_reg): Keep multiple sets of conflicts. Make finer-grained
18912 choices about which bits to set in each set. Don't use
18913 ira_hard_reg_not_in_set_p, perform a more elaborate test for conflicts
18914 using the multiple sets we computed.
18915 (push_allocno_to_stack): Iterate over allocno subobjects.
18916 (all_conflicting_hard_regs_coalesced): New static function.
18917 (setup_allocno_available_regs_num): Use it.
18918 (setup_allocno_left_conflicts_size): Likewise. Iterate over allocno
18920 (coalesced_allocno_conflict): Test subobject 0 in each allocno.
18921 (setup_allocno_priorities): Divide ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
18922 by ALLOCNO_NUM_OBJECTS.
18923 (calculate_spill_cost): Likewise.
18924 (color_pass): Express if statement in a more normal way.
18925 (ira_reassign_conflict_allocnos): Iterate over allocno subobjects.
18926 (slot_coalesced_allocno_live_ranges_intersect_p): Likewise.
18927 (setup_slot_coalesced_allocno_live_ranges): Likewise.
18928 (allocno_reload_assign): Likewise.
18929 (ira_reassign_pseudos): Likewise.
18930 (fast_allocation): Likewise.
18931 * ira-conflicts.c (build_conflict_bit_table): Likewise.
18932 (print_allocno_conflicts): Likewise.
18933 (ira_build_conflicts): Likewise.
18934 (allocnos_conflict_for_copy_p): Renamed from allocnos_conflict_p. All
18935 callers changed. Test subword 0 of each allocno for conflicts.
18936 (build_object_conflicts): Renamed from build_allocno_conflicts. All
18937 callers changed. Iterate over allocno subobjects.
18938 * ira-emit.c (modify_move_list): Iterate over allocno subobjects.
18939 * ira-int.h (struct ira_allocno): New member: num_objects.
18940 Rename object to objects and change it into an array.
18941 (ALLOCNO_OBJECT): Add new argument N.
18942 (ALLOCNO_NUM_OBJECTS, OBJECT_SUBWORD): New macros.
18943 (ira_create_allocno_objects): Renamed from ira_create_allocno_object.
18944 (ior_hard_reg_conflicts): Declare.
18945 (ira_add_live_range_to_object): Declare.
18946 (ira_allocno_object_iterator): New.
18947 (ira_allocno_object_iter_init, ira_allocno_object_iter_cond): New.
18948 (FOR_EACH_ALLOCNO_OBJECT): New macro.
18949 * ira-lives.c (objects_live): Renamed from allocnos_live; all
18951 (allocnos_processed): New sparseset.
18952 (make_object_born): Renamed from make_allocno_born; take an
18953 ira_object_t argument. All callers changed.
18954 (make_object_dead): Renamed from make_allocno_dead; take an
18955 ira_object_t argument. All callers changed.
18956 (update_allocno_pressure_excess_length): Take an ira_obejct_t argument.
18957 All callers changed.
18958 (mark_pseudo_regno_live): Iterate over allocno subobjects.
18959 (mark_pseudo_regno_dead): Likewise.
18960 (mark_pseudo_regno_subword_live, mark_pseudo_regno_subword_dead): New
18962 (mark_ref_live): Detect subword accesses and call
18963 mark_pseudo_regno_subword_live as appropriate.
18964 (mark_ref_dead): Likewise for mark_pseudo_regno_subword_dead.
18965 (process_bb_nodes_live): Deal with object-related updates first; set
18966 and test bits in allocnos_processed to avoid computing allocno
18967 statistics more than once.
18968 (create_start_finish_chains): Iterate over objects, not allocnos.
18969 (print_object_live_ranges): New function.
18970 (print_allocno_live_ranges): Use it.
18971 (ira_create_allocno_live_ranges): Allocate and free allocnos_processed
18974 2010-07-22 Richard Guenther <rguenther@suse.de>
18977 * gimple.c (gtc_next_dfs_num): New global.
18978 (struct sccs): Make value a union, add integer same_p member.
18979 (gtc_visit): New function.
18980 (gimple_types_compatible_p_1): New function, split out from ...
18981 (gimple_types_compatible_p): ... here. Start a DFS walk here.
18982 (iterative_hash_gimple_type): Adjust for sccs change.
18984 2010-07-22 Martin Jambor <mjambor@suse.cz>
18986 PR tree-optimization/44891
18987 * tree-sra.c: Include gimple-pretty-print.h.
18988 (replace_uses_with_default_def_ssa_name): Renamed to
18989 get_repl_default_def_ssa_name, return the new SSA name instead of
18990 replacing the old one.
18991 (sra_modify_assign): Dump a message when removing a load, if the LHS
18992 is an SSA_NAME, do not do any propagation, just set the RHS to a
18993 default definition SSA NAME, type convert if necessary.
18994 * Makefile.in (tree-sra.o): Add gimple-pretty-print.h to dependencies.
18996 2010-07-22 Richard Guenther <rguenther@suse.de>
18998 PR tree-optimization/45017
18999 * tree-ssa-sccvn.c (vn_reference_eq): Make sure we honor
19000 TYPE_PRECISION of integral types in addition to size.
19002 2010-07-22 Maxim Kuvyrkov <maxim@codesourcery.com>
19004 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Default to GLIBC
19005 when no C library is specified.
19007 2010-07-22 Martin Jambor <mjambor@suse.cz>
19009 * ipa-prop.h (struct ipa_node_params): Updated comment.
19010 (struct ipa_edge_args): Likewise.
19011 * Makefile.in (ipa-prop.o): Remove bogus $(GIMPLE_FOLD_H) dependency.
19013 2010-07-22 Martin Jambor <mjambor@suse.cz>
19015 * cgraphunit.c (verify_edge_count_and_frequency): New function.
19016 (verify_cgraph_node): Verify frequencies of indirect edges.
19017 * tree-inline.c (tree_function_versioning): Update frequencies of
19020 2010-07-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19023 * config/arm/arm.md: Split arm_rev into *arm_rev and *thumb1_rev.
19024 Set *arm_rev to be predicable.
19026 2010-07-22 Iain Sandoe <iains@gcc.gnu.org>
19028 * config/darwin.h (LINK_COMMAND_SPEC): Split into...
19029 (LINK_COMMAND_SPEC_A): New.
19031 (DSYMUTIL_SPEC): New.
19032 * config/darwin9.h (LINK_COMMAND_SPEC): Remove.
19033 (DSYMUTIL_SPEC): Update for darwin >= 9 requirements.
19035 2010-07-22 Iain Sandoe <iains@gcc.gnu.org>
19037 * calls.c (load_register_parameters): Move check for zero
19038 sized items so that only the call to
19039 mem_overlaps_already_clobbered_arg_p () is protected.
19041 2010-07-22 Jan Hubicka <jh@suse.cz>
19043 * ipa-pure-const.c (varying_state): Break out from ...
19044 (get_function_state): ... here; always return varying_state
19045 when state would be NULL otherwise.
19046 (remove_node_data): Do not free varying state.
19048 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
19051 PR middle-end/45009
19052 * postreload.c: Include "target.h".
19053 (reload_combine_closest_single_use): Don't take DEBUG_INSNs
19055 (fixup_debug_insns): Don't copy the rtx.
19056 (reload_combine_recognize_const_pattern): DEBUG_INSNs can't have uses.
19057 Don't copy when replacing. Call fixup_debug_insns in the case where
19058 we merged one add with another.
19059 (reload_combine_recognize_pattern): Fail if there aren't any uses.
19060 Try harder to determine whether we're picking a valid index register.
19061 Don't set store_ruid for an insn we're going to scan in the
19063 (reload_combine): Remove unused code.
19064 (reload_combine_note_use): When updating use information for
19065 an old insn, ignore a use that occurs after store_ruid.
19066 * Makefile.in (postreload.o): Update dependencies.
19068 * function.c (record_hard_reg_sets): Restrict the previous change
19069 to cases where the incoming nominal mode is the same as the
19070 incoming promoted mode and everything happens in MODE_INT.
19072 2010-07-21 Jakub Jelinek <jakub@redhat.com>
19075 * var-tracking.c (adjust_mems): Ignore ASM_OPERANDS with non-zero
19076 ASM_OPERANDS_OUTPUT_IDX.
19077 (adjust_insn): For inline asm with multiple sets ensure first
19078 ASM_OPERANDS vectors are used by all following ASM_OPERANDS in
19081 2010-07-21 Richard Henderson <rth@redhat.com>
19083 * config/i386/i386.c (setup_incoming_varargs_64): Emit a simple
19084 comparison for avoiding xmm register saves. Emit the xmm register
19086 * config/i386/i386.md (UNSPEC_SSE_PROLOGUE_SAVE): Remove.
19087 (UNSPEC_SSE_PROLOGUE_SAVE_LOW): Remove.
19088 (sse_prologue_save, sse_prologue_save_insn1, sse_prologue_save_insn):
19089 Remove patterns and the associated splitters.
19091 2010-07-21 Changpeng Fang <changpeng.fang@amd.com>
19093 * tree-ssa-loop-prefetch.c (analyze_ref): Strip off the real
19094 and imagine parts of a complex, so that they can have the same
19095 base and fall into the same group.
19097 2010-07-21 Richard Guenther <rguenther@suse.de>
19100 * tree.c (find_decls_types_r): Do not follow TREE_CHAIN
19101 of TYPE_DECLs. Do not follow TYPE_NEXT_VARIANT,
19102 TYPE_NEXT_PTR_TO, nor TYPE_NEXT_REF_TO or TYPE_CANONICAL.
19104 2010-07-21 Martin Jambor <mjambor@suse.cz>
19106 PR tree-optimization/44900
19107 * tree-sra.c (load_assign_lhs_subreplacements): Updated comments.
19108 (sra_modify_assign): Move gsi to the next statmenent unconditionally.
19110 2010-07-21 Bernd Schmidt <bernds@codesourcery.com>
19112 PR middle-end/44738
19113 * tree-ssa.c (warn_uninit): Avoid emitting an unnecessary message.
19115 2010-07-21 Richard Guenther <rguenther@suse.de>
19117 PR middle-end/45013
19118 * tree-ssa.c (useless_type_conversion_p): Dispatch to
19119 gimple_types_compatible_p only when in lto.
19120 * gimple.c (gimple_types_compatible_p): Use canonical types
19121 to speed up comparison.
19123 2010-07-21 Richard Guenther <rguenther@suse.de>
19125 * tree-flow.h (referenced_var): Move define ...
19126 * tree-flow-inline.h (referenced_var): ... here as an inline
19127 function. Assert here ...
19128 * tree-dfa.c (referenced_var_lookup): ... instead of here.
19129 * tree-ssa.c (maybe_optimize_var): Check if the variable
19130 is in referenced vars.
19131 (execute_update_addresses_taken): Remove old broken check.
19132 * gimple-pretty-print.c (pp_points_to_solution): Use
19133 referenced_var_lookup.
19134 * tree-into-ssa.c (dump_decl_set): Likewise.
19136 2010-07-21 Jakub Jelinek <jakub@redhat.com>
19139 * var-tracking.c (reverse_op): Also handle {SIGN,ZERO}_EXTEND of a MEM.
19140 * dwarf2out.c (loc_descriptor): Don't handle SIGN_EXTEND nor
19143 2010-07-20 Richard Henderson <rth@redhat.com>
19145 * vxworks.c (vxworks_emutls_var_fields): Pass locus to build_decls.
19147 2010-07-20 Bernd Schmidt <bernds@codesourcery.com>
19149 * config/arm/arm.md (thumb1_addsi3): Add alternative and split for
19150 computing the sum of the stack pointer and a large constant.
19151 * config/arm/constraints.md (M): Remove superfluous parentheses.
19152 (Pc): New constraint.
19154 2010-07-20 Jakub Jelinek <jakub@redhat.com>
19157 * cfgexpand.c (expand_debug_expr): Only look at TYPE_UNSIGNED of
19158 operand's type if exp is tcc_unary class tree.
19160 2010-07-20 Nathan Froyd <froydnj@codesourcery.com>
19162 * config/rs6000/rs6000.md (abs<mode>2_isel, nabs<mode>2_isel):
19163 Reverse sense of if_then_else condition.
19165 2010-07-20 Nathan Froyd <froydnj@codesourcery.com>
19167 * config/rs6000/rs6000.opt (mblock-move-inline-limit): New option.
19168 * config/rs6000/rs6000.c (rs6000_override_options): Set
19169 rs6000_block_move_inline_limit appropriately.
19170 (expand_block_move): Use rs6000_block_move_inline_limit.
19171 * doc/invoke.texi (mblock-move-inline-limit): Document.
19173 2010-07-20 Bernd Schmidt <bernds@codesourcery.com>
19175 * postreload.c (fixup_debug_insns): Remove arg REGNO. New args
19176 FROM and TO. All callers changed. Don't look for tracked uses,
19177 just scan the RTL for DEBUG_INSNs and substitute.
19178 (reload_combine_recognize_pattern): Call fixup_debug_insns.
19179 (reload_combine): Ignore DEBUG_INSNs.
19181 2010-07-20 Jakub Jelinek <jakub@redhat.com>
19183 * var-tracking.c (vt_expand_loc, vt_expand_loc_dummy): Bump maximum
19187 * cfgexpand.c (expand_debug_expr) <case NOP_EXPR>: Use ZERO_EXTEND
19188 or SIGN_EXTEND depending on TYPE_UNSIGNED of the operand's type
19189 instead of the result's type.
19191 2010-07-20 Richard Guenther <rguenther@suse.de>
19193 PR tree-optimization/44977
19194 * tree-ssa-dom.c (propagate_rhs_into_lhs): Do not create invalid
19197 2010-07-20 Richard Guenther <rguenther@suse.de>
19199 * lto-symtab.c (lto_symtab_merge): Use gimple_types_compatible_p.
19200 (lto_symtab_merge_decls_2): Likewise.
19201 * gimple.h (gimple_types_compatible_p): Declare.
19202 * gimple.c (gimple_queue_type_fixup): Remove.
19203 (gimple_fixup_complete_and_incomplete_subtype_p): Likewise.
19204 (gimple_compatible_complete_and_incomplete_type_p): New function.
19205 (gimple_types_compatible_p): Adjust.
19206 (gimple_register_type): Remove type fixup code.
19207 (print_gimple_types_stats): Adjust.
19208 (free_gimple_type_tables): Likewise.
19209 * lto-streamer-in.c (input_gimple_stmt): Use gimple_types_compatible_p.
19210 * tree-ssa.c (useless_type_conversion_p): Likewise.
19212 2010-07-20 Richard Guenther <rguenther@suse.de>
19214 PR middle-end/44971
19215 PR middle-end/44988
19216 * tree-ssa.c (maybe_optimize_var): New function split out from ...
19217 (execute_update_addresses_taken): ... here.
19218 (non_rewritable_mem_ref_base): Likewise.
19219 (execute_update_addresses_taken): Do not iterate over all referenced
19220 vars but just all local decls and parms.
19221 Properly check call and asm arguments and rewrite call arguments.
19223 2010-07-20 Maxim Kuvyrkov <maxim@codesourcery.com>
19225 * config.gcc (LIBC_GLIBC, LIBC_UCLIBC, LIBC_BIONIC): Move constants
19227 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Move Android-specific
19229 * config/linux-android.h (ANDROID_TARGET_OS_CPP_BUILTINS): ... here.
19231 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Use it.
19233 2010-07-19 Richard Sandiford <rdsandiford@googlemail.com>
19235 * gengtype.c (start_root_entry): New function, split out from
19236 write_root. Check whether V is null and raise an error if so.
19237 (write_field_root): Check for V being null. Don't raise an error here;
19238 set V to null instead.
19239 (write_root): Update comment above function. Use start_root_entry.
19241 2010-07-19 Xinliang David Li <davidxl@google.com>
19244 * tree-ssa-uninit.c (collect_phi_def_edges): Fix bug collecting
19246 (find_uninit_use): Add dump.
19247 (is_use_properly_guarded): Ditto.
19248 (warn_uninitialized_phi): Ditto.
19249 (execute_late_warn_uninitialized): Ditto.
19251 2010-07-19 Richard Guenther <rguenther@suse.de>
19253 PR middle-end/44941
19254 * expr.c (emit_block_move_hints): Move zero size check first.
19255 Move asserts to more useful places.
19256 * calls.c (load_register_parameters): Check for zero size.
19258 2010-07-19 Richard Henderson <rth@redhat.com>
19260 * tree-optimize.c (execute_all_early_local_passes): New. Change
19261 cgraph_state here ...
19262 (execute_early_local_optimizations): ... not here. Remove.
19263 (pass_early_local_passes, pass_all_early_optimizations): Update.
19265 2010-07-19 Bernd Schmidt <bernds@codesourcery.com>
19267 * postreload.c (reload_combine_closest_single_use): Ignore the
19268 number of uses for DEBUG_INSNs.
19269 (fixup_debug_insns): New static function.
19270 (reload_combine_recognize_const_pattern): Use it. Don't let the
19271 main loop be affected by DEBUG_INSNs.
19272 Really disallow moving adds past a jump insn.
19273 (reload_combine_recognize_pattern): Don't update use_ruid here.
19274 (reload_combine_note_use): Do it here.
19275 (reload_combine): Use control_flow_insn_p rather than JUMP_P.
19277 2010-07-19 Bingfeng Mei <bmei@broadcom.com>
19279 * ddg.c (create_ddg): Exclude nodes of debug_insn in counting nodes
19281 * loop-doloop.c (doloop_condition_get): Skip possible debug_insn.
19283 2010-07-19 Iain Sandoe <iains@gcc.gnu.org>
19285 * config/i386/darwin.h: Define darwin_emit_branch_islands.
19286 (TARGET_MACHO_BRANCH_ISLANDS): New.
19287 (FUNCTION_PROFILER): Use TARGET_MACHO_BRANCH_ISLANDS.
19288 * config/i386/i386.h (TARGET_MACHO_BRANCH_ISLANDS): Define a
19290 * config/i386/i386.c (output_pic_addr_const): Do not emit
19291 branch islands unless TARGET_MACHO_BRANCH_ISLANDS is set.
19292 (x86_output_mi_thunk): Adjust symbol creation.
19293 * config/rs6000/darwin.h: Define darwin_emit_branch_islands.
19294 Remove out of date comment.
19295 * config/rs6000/rs6000.c (print_operand): Adjust symbol.
19296 (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
19297 (DARWIN_GENERATE_ISLANDS): Ditto.
19298 (output_call): Do not emit branch islands unless
19299 darwin_emit_branch_islands is set.
19300 * config/darwin.c: Declare darwin_emit_branch_islands.
19301 (machopic_indirect_data_reference): Do not emit unless
19302 darwin_emit_branch_islands is set.
19303 (darwin_override_options): Set darwin_emit_branch_islands
19304 where it is needed.
19305 * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
19307 2010-07-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19309 * doc/sourcebuild.texi (Effective-Target Keywords): Document
19310 sse_runtime, sse2_runtime.
19312 2010-07-18 Richard Sandiford <rdsandiford@googlemail.com>
19314 * config/mips/mips.c (mips16_build_call_stub): Zero-extend the
19315 low half of a single-register SCmode return value before ORing
19316 it with the high half.
19317 * config/mips/mips16.S (MERGE_GPRf): Likewise.
19319 2010-07-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19322 * config/pa/pa.h (CONSTANT_ALIGNMENT): Align strings to BITS_PER_WORD
19325 2010-07-17 Bernd Schmidt <bernds@codesourcery.com>
19328 * postreload.c (reload_cse_move2add): Return bool, true if anything.
19329 changed. All callers changed.
19330 (move2add_use_add2_insn): Likewise.
19331 (move2add_use_add3_insn): Likewise.
19332 (reload_cse_regs): If reload_cse_move2add changed anything, rerun
19334 (RELOAD_COMBINE_MAX_USES): Bump to 16.
19335 (last_jump_ruid): New static variable.
19336 (struct reg_use): New members CONTAINING_MEM and RUID.
19337 (reg_state): New members ALL_OFFSETS_MATCH and REAL_STORE_RUID.
19338 (reload_combine_split_one_ruid, reload_combine_split_ruids,
19339 reload_combine_purge_insn_uses, reload_combine_closest_single_use
19340 reload_combine_purge_reg_uses_after_ruid,
19341 reload_combine_recognize_const_pattern): New static functions.
19342 (reload_combine_recognize_pattern): Verify that ALL_OFFSETS_MATCH
19343 is true for our reg and that we have available index regs.
19344 (reload_combine_note_use): New args RUID and CONTAINING_MEM. All
19345 callers changed. Use them to initialize fields in struct reg_use.
19346 (reload_combine): Initialize last_jump_ruid. Be careful when to
19347 take PREV_INSN of the scanned insn. Update REAL_STORE_RUID fields.
19348 Call reload_combine_recognize_const_pattern.
19349 (reload_combine_note_store): Update REAL_STORE_RUID field.
19351 2010-07-16 Jason Merrill <jason@redhat.com>
19353 * Makefile.in (opts-common.o): Depend on options.h.
19355 2010-07-16 Nathan Froyd <froydnj@codesourcery.com>
19357 * tree.c (build_common_builtin_nodes): Use build_function_type_list
19358 instead of build_function_type.
19359 * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
19360 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
19362 2010-07-16 Nathan Froyd <froydnj@codesourcery.com>
19364 * config/rs6000/rs6000.c (rs6000_emit_sISEL): Let rs6000_emit_int_cmove
19366 (rs6000_emit_int_cmove): Use function pointers for insn generation.
19367 Don't force values into registers unnecessarily.
19368 (output_isel): Assert that we're not given conditions we can't handle.
19369 Delete corresponding code.
19370 * config/rs6000/rs6000.md (isel_signed_<mode>): Use
19371 scc_comparison_operator constraint. Permit 0 for the consequent
19372 operand. Permit any GPR for the alternative operand.
19373 (isel_unsigned_<mode>): Likewise.
19375 2010-07-16 Jakub Jelinek <jakub@redhat.com>
19378 * config/i386/i386-protos.h (ix86_function_arg_boundary): Change second
19379 argument to const_tree.
19380 * config/i386/i386.c (function_arg_advance): If padding needs to be
19381 inserted before argument, increment cum->words by number of padding
19383 (contains_aligned_value_p): Change argument to const_tree.
19384 (ix86_function_arg_boundary): Change second argument to const_tree.
19386 2010-07-16 Bernd Schmidt <bernds@codesourcery.com>
19389 * function.c (record_hard_reg_sets): New static function.
19390 (assign_parm_setup_reg): If an optab for extending exists and the
19391 generated code clobbbers no hard regs, emit the insn directly and
19392 create a REG_EQUIV note.
19394 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
19396 * c-decl.c (detect_field_duplicates): Use DECL_CHAIN insted of
19398 * c-typeck.c (push_init_level): Likewise.
19399 (process_init_element): Likewise.
19401 2010-07-15 Anatoly Sokolov <aesok@post.ru>
19403 * tree.h (enum tree_index): Add TI_INTEGER_THREE.
19404 (integer_three_node): Add.
19405 * tree.c (build_common_tree_nodes_2): Use integer_type_node insead of
19406 NULL_TREE in build_int_cst calls. Initialize the integer_three_node.
19407 * builtins.c (expand_builtin_prefetch): Use common tree nodes instead
19408 of call build_int_cst.
19409 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ditto.
19410 * tree-ssa-loop-ivopts.c (idx_find_step): Ditto.
19411 (find_interesting_uses_address): Ditto.
19412 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Ditto.
19413 * tree-eh.c (lower_eh_constructs_2): Ditto.
19414 * tree-vect-loop.c (get_initial_def_for_induction): Ditto.
19415 * c-typeck.c (really_start_incremental_init, push_init_level): Ditto.
19416 * expmed.c (expand_divmod): Ditto.
19417 * tree-mudflap.c (mx_register_decls): Ditto.
19418 * varasm.c (array_size_for_constructor): Ditto.
19419 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
19420 * c-parser.c (c_parser_postfix_expression): Ditto.
19422 2010-07-15 Bernd Schmidt <bernds@codesourcery.com>
19424 * postreload.c (last_label_ruid, first_index_reg, last_index_reg):
19425 New static variables.
19426 (reload_combine_recognize_pattern): New static function, broken out
19428 (reload_combine): Use it. Only initialize first_index_reg and
19429 last_index_reg once.
19431 2010-07-15 Richard Henderson <rth@redhat.com>
19433 * cgraphunit.c (cgraph_build_static_cdtor): Clear current_function_decl
19436 2010-07-15 Jan Hubicka <jh@suse.cz>
19438 * lto-symtab.c (lto_symtab_resolve_symbols): Remove hack handling
19439 comdats for broken gold.
19440 (lto_sy mtab_merge_decls_1): Set used_from_object_file correctly.
19442 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
19444 * tree.h (TREE_RTL_OPERAND_CHECK): Delete.
19446 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
19448 * tree.h (DECL_CHAIN): Define.
19449 * alias.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
19450 * c-decl.c: Likewise.
19451 * c-parser.c: Likewise.
19452 * c-typeck.c: Likewise.
19453 * cfgexpand.c: Likewise.
19454 * cgraph.c: Likewise.
19455 * cgraphunit.c: Likewise.
19456 * combine.c: Likewise.
19457 * config/alpha/alpha.c: Likewise.
19458 * config/arm/arm.c: Likewise.
19459 * config/frv/frv.c: Likewise.
19460 * config/i386/i386.c: Likewise.
19461 * config/i386/winnt-cxx.c: Likewise.
19462 * config/ia64/ia64.c: Likewise.
19463 * config/iq2000/iq2000.c: Likewise.
19464 * config/mep/mep.c: Likewise.
19465 * config/mips/mips.c: Likewise.
19466 * config/pa/som.h: Likewise.
19467 * config/rs6000/rs6000.c: Likewise.
19468 * config/s390/s390.c: Likewise.
19469 * config/sh/sh.c: Likewise.
19470 * config/sh/symbian-cxx.c: Likewise.
19471 * config/sparc/sparc.c: Likewise.
19472 * config/spu/spu.c: Likewise.
19473 * config/stormy16/stormy16.c: Likewise.
19474 * config/vxworks.c: Likewise.
19475 * config/xtensa/xtensa.c: Likewise.
19476 * coverage.c: Likewise.
19477 * dbxout.c: Likewise.
19478 * dwarf2out.c: Likewise.
19479 * emit-rtl.c: Likewise.
19480 * expr.c: Likewise.
19481 * function.c: Likewise.
19482 * gimple-low.c: Likewise.
19483 * gimple-pretty-print.c: Likewise.
19484 * gimplify.c: Likewise.
19485 * integrate.c: Likewise.
19486 * ipa-inline.c: Likewise.
19487 * ipa-prop.c: Likewise.
19488 * ipa-split.c: Likewise.
19489 * ipa-struct-reorg.c: Likewise.
19490 * ipa-type-escape.c: Likewise.
19491 * langhooks.c: Likewise.
19492 * lto-cgraph.c: Likewise.
19493 * omp-low.c: Likewise.
19494 * stor-layout.c: Likewise.
19495 * tree-cfg.c: Likewise.
19496 * tree-complex.c: Likewise.
19497 * tree-dfa.c: Likewise.
19498 * tree-dump.c: Likewise.
19499 * tree-inline.c: Likewise.
19500 * tree-mudflap.c: Likewise.
19501 * tree-nested.c: Likewise.
19502 * tree-object-size.c: Likewise.
19503 * tree-pretty-print.c: Likewise.
19504 * tree-sra.c: Likewise.
19505 * tree-ssa-live.c: Likewise.
19506 * tree-ssa-loop-niter.c: Likewise.
19507 * tree-ssa-math-opts.c: Likewise.
19508 * tree-ssa-reassoc.c: Likewise.
19509 * tree-ssa-sccvn.c: Likewise.
19510 * tree-ssa-structalias.c: Likewise.
19511 * tree-tailcall.c: Likewise.
19512 * tree-vrp.c: Likewise.
19513 * tree.c: Likewise.
19514 * var-tracking.c: Likewise.
19515 * varasm.c: Likewise.
19517 2010-07-15 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19520 * config/spu/spu.c (spu_expand_builtin_1): Allow references
19521 (as well as pointers) as argument to mask_for_load builtins.
19523 2010-07-15 Richard Guenther <rguenther@suse.de>
19525 PR tree-optimization/44946
19526 * tree-ssa-structalias.c (get_constraint_for_component_ref): Deal
19527 with accessing only padding properly.
19529 2010-07-15 Jan Hubicka <jh@suse.cz>
19531 * ipa.c (function_and_variable_visibility): Variables marked as used
19532 should not be localized.
19534 2010-07-15 Jan Hubicka <jh@suse.cz>
19536 * cgraph.c: Include lto-streamer.h
19537 (change_decl_assembler_name): Work when assembler name hash is at place.
19538 (cgraph_make_decl_local): When localizing COMDAT symbol at WPA stage,
19539 be sure to rename it to avoid name clash.
19540 * ipa.c (cgraph_externally_visible_p, function_and_variable_visibility):
19541 Localize hidden symbols only when locally defined.
19543 2010-07-15 Uros Bizjak <ubizjak@gmail.com>
19545 * config/i386/i386.h (SHIFT_COUNT_TRUNCATED): Expand comment.
19547 2010-07-15 Magnus Granberg <zorry@gentoo.org>
19548 Kevin F. Quinn <kevquinn@gentoo.org>
19550 * builtins.c (expand_builtin_init_trampoline): Warn for -Wtrampolines.
19551 * common.opt: Add -Wtrampolines.
19552 * doc/invoke.texi: Add -Wtrampolines.
19554 2010-07-15 Jie Zhang <jie@codesourcery.com>
19556 * config/arm/cortex-a8.md (cortex_a8_load_store_2): Reserve
19557 cortex_a8_issue_ls.
19559 2010-07-15 Dave Korn <dave.korn.cygwin@gmail.com>
19561 * config/i386/cygwin.h (LIBGCJ_SONAME): Update.
19562 * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
19564 2010-07-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19566 * config/spu/spu.c (reg_names): Remove prototype.
19567 (call_used_regs): Likewise.
19569 2010-07-14 Dave Korn <dave.korn.cygwin@gmail.com>
19571 * config/i386/cygming-crtend.c (__FRAME_END__): Replace attribute
19572 "unused" with attribute "used".
19573 (__JCR_END__): Likewise.
19574 * config/i386/cygming-crtbegin.c (__EH_FRAME_BEGIN__): Add missing
19576 (__JCR_LIST__): Replace attribute "unused" with attribute "used".
19578 2010-07-14 Richard Guenther <rguenther@suse.de>
19580 * lto-streamer-in.c (maybe_fixup_handled_component): Remove.
19581 (maybe_fixup_decls): Likewise.
19582 (input_gimple_stmt): Do not fixup anything.
19583 * lto-streamer-out.c (output_gimple_stmt): Make sure all
19584 non-automatic variable uses are wrapped inside a MEM_REF.
19586 2010-07-14 Richard Henderson <rth@redhat.com>
19588 * passes.c (rest_of_decl_compilation): Do not call assemble_variable
19590 * varasm.c (assemble_variable): Remove early exit for functions;
19591 assert that we're given a variable.
19593 2010-07-14 Jie Zhang <jie@codesourcery.com>
19595 * config/arm/cortex-a8.md (cortex_a8_alu): Don't use
19596 cortex_a8_default when neon_type is not none.
19598 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
19600 * lower-subreg.c (subreg_context): New static bitmap.
19601 (decompose_multiword_subregs): Allocate and free it.
19602 (find_decomposable_subregs): Set a bit in it for a register that
19603 occurs in a subreg that changes mode but not size.
19604 (can_decompose_p): Test it instead of non_decomposable_context.
19606 2010-07-14 Richard Guenther <rguenther@suse.de>
19608 PR tree-optimization/44824
19609 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Use
19610 is_gimple_mem_ref_addr.
19611 (tree_ssa_forward_propagate_single_use_vars): Do not propagate
19612 non-decl_address_invariant_p addresses.
19614 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
19616 * reload.c (find_reloads): Revert code to penalize small register
19617 classes that was brought in with the IRA merge.
19619 2010-07-14 Richard Guenther <rguenther@suse.de>
19621 * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle MEM_REF
19622 as base of ARRAY_REFs.
19624 2010-07-14 Richard Guenther <rguenther@suse.de>
19626 PR middle-end/44930
19627 * tree-pretty-print.c (do_niy): Do not print a newline.
19629 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
19631 * ira-int.h (struct ira_object): New.
19632 (ira_object_t): New typedef. Add DEF_VEC_P and DEF_VEC_ALLOC_P for it.
19633 (struct ira_allocno): Remove members min, max,
19634 conflict_allocno_array, conflict_id, conflict_allocno_array_size,
19635 conflict_allocnos_num and conflict_vec_p. Add new member object.
19636 (OBJECT_CONFLICT_ARRAY, OBJECT_CONFLICT_VEC_P,
19637 OBJECT_NUM_CONFLICTS, OBJECT_CONFLICT_ARRAY_SIZE,
19638 OBJECT_CONFLICT_HARD_REGS, OBJECT_TOTAL_CONFLICT_HARD_REGS,
19639 OBJECT_MIN, OBJECT_MAX, OBJECT_CONFLICT_ID): Renamed from
19640 ALLOCNO_CONFLICT_ALLOCNO_ARRAY, ALLOCNO_CONFLICT_VEC_P,
19641 ALLOCNO_CONFLICT_ALLOCNOS_NUM, ALLOCNO_CONFLICT_ALLOCNO_ARRAY_SIZE,
19642 ALLOCNO_CONFLICT_HARD_REGS, ALLOCNO_TOTAL_CONFLICT_HARD_REGS)
19643 ALLOCNO_MIN, ALLOCNO_MAX, and ALLOCNO_CONFLICT_ID; now operate on
19644 an ira_object_t rather than ira_allocno_t. All uses changed.
19645 (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
19646 contains a vector of ira_object_t; all uses changed.
19647 (ira_objects_num): Declare variable.
19648 (ira_create_allocno_object): Declare function.
19649 (ira_conflict_vector_profitable_p): Adjust prototype.
19650 (ira_allocate_conflict_vec): Renamed from
19651 ira_allocate_allocno_conflict_vec; first arg now ira_object_t.
19652 (ira_allocate_object_conflicts): Renamed from
19653 ira_allocate_allocno_conflicts; first arg now ira_object_t.
19654 (struct ira_object_iterator): New.
19655 (ira_object_iter_init, ira_object_iter_cond, FOR_EACH_OBJECT): New.
19656 (ira_allocno_conflict_iterator): Renamed member allocno_conflict_vec_p
19657 to conflict_vec_p. All uses changed.
19658 (ira_allocno_conflict_iter_init, ira_allocno_conflict_iter_cond):
19659 Changed to take into account that conflicts are now tracked for
19661 * ira-conflicts.c (OBJECTS_CONFLICT_P): Renamed from CONFLICT_ALLOCNO_P.
19662 Args changed to accept ira_object_t. All uses changed.
19663 (allocnos_conflict_p): New static function.
19664 (collected_conflict_objects): Renamed from collected_allocno_objects;
19665 now a vector of ira_object_t. All uses changed.
19666 (build_conflict_bit_table): Changed to take into account that
19667 conflicts are now tracked for objects.
19668 (process_regs_for_copy, propagate_copies, build_allocno_conflicts)
19669 (print_allocno_conflicts, ira_build_conflicts): Likewise.
19670 * ira-color.c (assign_hard_reg, setup_allocno_available_regs_num)
19671 setup_allocno_left_conflicts_size, allocno_reload_assign,
19672 fast_allocation): Likewise.
19673 * ira-lives.c (make_hard_regno_born, make_allocno_born)
19674 process_single_reg_class_operands, process_bb_node_lives): Likewise.
19675 * ira-emit.c (modify_move_list, add_range_and_copies_from_move_list):
19677 * ira-build.c (ira_objects_num): New variable.
19678 (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
19679 contains a vector of ira_object_t; all uses changed.
19680 (ira_object_id_map_vec): Corresponding change.
19681 (object_pool): New static variable.
19682 (initiate_allocnos): Initialize it.
19683 (finish_allocnos): Free it.
19684 (ira_create_object, ira_create_allocno_object, create_allocno_objects):
19686 (ira_create_allocno): Don't set members that were removed.
19687 (ira_set_allocno_cover_class): Don't change conflict hard regs.
19688 (merge_hard_reg_conflicts): Changed to take into account that
19689 conflicts are now tracked for objects.
19690 (ira_conflict_vector_profitable_p, ira_allocate_conflict_vec,
19691 allocate_conflict_bit_vec, ira_allocate_object_conflicts,
19692 compress_conflict_vecs, remove_low_level_allocnos, ira_flattening,
19693 setup_min_max_allocno_live_range_point, allocno_range_compare_func,
19694 setup_min_max_conflict_allocno_ids, ): Likewise.
19695 (add_to_conflicts): Renamed from add_to_allocno_conflicts, args changed
19696 to ira_object_t; all callers changed.
19697 (ira_add_conflict): Renamed from ira_add_allocno_conflict, args changed
19698 to ira_object_t, all callers changed.
19699 (clear_conflicts): Renamed from clear_allocno_conflicts, arg changed
19700 to ira_object_t, all callers changed.
19701 (conflict_check, curr_conflict_check_tick): Renamed from
19702 allocno_conflict_check and curr_allocno_conflict_check_tick; all uses
19704 (compress_conflict_vec): Renamed from compress_allocno_conflict_vec,
19705 arg changed to ira_object_t, all callers changed.
19706 (create_cap_allocno): Call ira_create_allocno_object.
19707 (finish_allocno): Free the corresponding object.
19708 (sort_conflict_id_map): Renamed from sort_conflict_id_allocno_map; all
19709 callers changed. Adjusted for dealing with objects.
19710 (ira_build): Call create_allocno_objects after ira_costs. Adjusted for
19711 dealing with objects.
19712 * ira.c (ira_bad_reload_regno_1): Adjusted for dealing with objects.
19714 * ira-int.h (struct live_range): Rename allocno member to object
19715 and change type to ira_object_t.
19716 (struct ira_object): New member live_ranges.
19717 (struct ira_allocno): Remove member live_ranges.
19718 (ALLOCNO_LIVE_RANGES): Remove.
19719 (OBJECT_LIVE_RANGES): New macro.
19720 (ira_create_live_range, ira_copy_live_range_list,
19721 ira_merge_live_range_list, ira_live_ranges_intersect_p,
19722 ira_finish_live_range, ira_finish_live_range_list): Adjust declarations.
19723 * ira-build.c (ira_create_object): Initialize live ranges here.
19724 (ira_create_allocno): Not here.
19725 (ira_create_live_range): Rename from ira_create_allocno_live_range, arg
19726 changed to ira_object_t, all callers changed.
19727 (copy_live_range): Rename from copy_allocno_live_range, all callers
19729 (ira_copy_live_range_list): Rename from
19730 ira_copy_allocno_live_range_list, all callers changed.
19731 (ira_merge_live_ranges): Rename from ira_merge_allocno_live_range_list,
19732 all callers changed.
19733 (ira_live_ranges_intersect_p): Rename from
19734 ira_allocno_live_ranges_intersect_p, all callers changed.
19735 (ira_finish_live_range): Rename from ira_finish_allocno_live_range, all
19737 (ira_finish_live_range_list): Rename from
19738 ira_finish_allocno_live_range_list, all callers changed.
19739 (change_object_in_range_list): Rename from change_allocno_in_range_list,
19740 last arg changed to ira_object_t, all callers changed.
19741 (finish_allocno): Changed to expect live ranges in the allocno's object.
19742 (move_allocno_live_ranges, copy_allocno_live_ranges,
19743 update_bad_spill_attribute, setup_min_max_allocno_live_range_point,
19744 ira_flattening, ira_build): Likewise.
19745 * ira-color.c (allocnos_have_intersected_live_ranges_p,
19746 slot_coalesced_allocno_live_ranges_intersect,
19747 setup_slot_coalesced_allocno_live_ranges, fast_allocation): Likewise.
19748 * ira-conflicts.c (build_conflict_bit_table): Likewise.
19749 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
19750 * ira-lives.c (make_allocno_born, update_allocno_pressure_excess_length,
19751 make_allocno_dead, create_start_finish_chains,
19752 remove_some_program_points_and_update_live_ranges,
19753 ira_debug_live_range_list): Likewise.
19755 * ira-int.h (ira_object_conflict_iterator): Rename from
19756 ira_allocno_conflict_iterator.
19757 (ira_object_conflict_iter_init): Rename from
19758 ira_allocno_conflict_iter_init, second arg changed to
19759 * ira.c (check_allocation): Use FOR_EACH_OBJECT_CONFLICT rather than
19760 FOR_EACH_ALLOCNO_CONFLICT.
19761 * ira-color.c (assign_hard_reg, push_allocno_to_stack)
19762 setup_allocno_left_conflicts_size, coalesced_allocno_conflict_p,
19763 ira_reassign_conflict_allocnos, ira_reassign_pseudos): Likewise.
19764 * ira-conflicts.c (print_allocno_conflicts): Likewise.
19766 2010-07-13 Joern Rennecke <joern.rennecke@embecosm.com>
19769 * tree-dump.c (dump_options): Add enumerate_locals entry.
19770 Add TDF_NOID exclusion to all entry.
19771 * tree-dump.h (dump_enumerated_decls): Declare.
19772 * tree-pretty-print.c (dump_generic_node): For TDF_NOID,
19773 Don't display type uid.
19774 (print_declaration): Don't crash on TREE_TYPE (t) == 0.
19775 * tree-pass.h (TDF_ENUMERATE_LOCALS): Define.
19776 * tree-ssa-live.c: Include gimple.h.
19777 (numbered_tree_d): New struct.
19778 (numbered_tree): New typedef.
19779 (DEF_VEC_O (numbered_tree): New.
19780 (DEF_VEC_ALLOC_O (numbered_tree, heap)): Likewise.
19781 (compare_decls_by_uid, dump_enumerated_decls_push): New functions.
19782 (dump_enumerated_decls): Likewise.
19783 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): If comparing
19784 debug info and flag_dump_final_insns, call dump_enumerated_decls.
19785 * tree-cfg.c (dump_function_to_file): Call dump_enumerated_decls.
19786 * Makefile.in (tree-ssa-live.o): Depend on $(GIMPLE_H).
19788 2010-07-13 Richard Sandiford <rdsandiford@googlemail.com>
19790 * expmed.h (MAX_BITS_PER_WORD): Move to...
19791 * defaults.h (MAX_BITS_PER_WORD): ...here.
19793 2010-07-13 DJ Delorie <dj@redhat.com>
19795 * config/h8300/h8300.c (h8300_init_once): Default to
19796 -fstrict_volatile_bitfields.
19798 * config/sh/sh.c (sh_override_options): Default to
19799 -fstrict_volatile_bitfields.
19801 * config/rx/rx.c (rx_option_override): New.
19803 * config/m32c/m32c.c (m32c_override_options): Default to
19804 -fstrict_volatile_bitfields.
19806 2010-07-13 Nathan Froyd <froydnj@codesourcery.com>
19808 * tree.h (build_function_call_expr): Delete.
19809 (build_call_expr_loc_array): New function.
19810 (build_call_expr_loc_vec): New function.
19811 * tree-flow.h (struct omp_region): Change type of ws_args field
19813 * builtins.c (build_function_call_expr): Delete.
19814 (build_call_expr_loc_array): New function.
19815 (build_call_expr_loc): Call it. Use XALLOCAVEC.
19816 (build_call_expr): Likewise.
19817 (build_call_expr_loc_vec): New function.
19818 * cgraphunit.c (build_cdtor): Call build_call_expr instead of
19819 build_function_call_expr.
19820 * expr.c (emutls_var_address): Likewise.
19821 * varasm.c (emutls_common_1): Likewise.
19822 * omp-low.c (expand_omp_atomic_mutex): Likewise.
19823 (expand_omp_taskreg): Adjust for new type of region->ws_args.
19824 (get_ws_args_for): Return a VEC instead of a tree.
19825 (expand_parallel_call): Call build_call_expr_loc_vec instead of
19826 build_function_call_expr.
19827 * stor-layout.c (self_referential_size): Likewise.
19829 2010-07-13 Jakub Jelinek <jakub@redhat.com>
19832 * recog.c (constrain_operands): Allow side-effects in memory
19833 operands if either < or > constraint is used, rather than if
19834 both < and > is used.
19836 2010-07-13 Richard Guenther <rguenther@suse.de>
19838 PR middle-end/44911
19839 * tree-pretty-print.c (dump_generic_node): Use TDF_SLIM for
19840 MEM_REF pointer type dumping. Avoid recursing for TYPE_DECLs
19843 2010-07-13 Kaz Kojima <kkojima@gcc.gnu.org>
19846 * mode-switching.c (optimize_mode_switching): Add ATTRIBUTE_UNUSED
19847 to variable emited.
19848 * config/sh/sh.c (sh_expand_epilogue): Remove unused variable.
19849 * config/sh/sh.md (symGOT_load): Likewise.
19850 (symDTPOFF2reg): Likewise.
19851 (symTPOFF2reg): Likewise.
19853 2010-07-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19855 * expmed.c (MAX_BITS_PER_WORD): Moved to expmed.h.
19856 * expmed.h (MAX_BITS_PER_WORD): Moved from expmed.c.
19858 2010-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19860 * config/i386/sol2-unwind.h (x86_64_fallback_frame_state): Correct
19862 Find ucontext_t * on Solaris 11.
19863 (x86_fallback_frame_state): Handle Solaris 9 multi-threaded pattern.
19864 Handle new Solaris 11 __sighndlr patterns.
19866 2010-07-13 Jakub Jelinek <jakub@redhat.com>
19869 * vec.h (VEC_block_remove): Fix comment.
19870 * tree-ssa-live.c (remove_unused_locals): Don't use
19871 VEC_unordered_remove on local_decls, instead replace a single
19872 vector element in each iteration if at least one element had
19873 to be removed and VEC_truncate at the end.
19874 * omp-low.c (expand_omp_taskreg): Likewise.
19876 2010-07-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
19878 * c-decl.c (finish_function): Fix typo in comment.
19880 2010-07-12 H.J. Lu <hongjiu.lu@intel.com>
19883 * postreload.c (move2add_use_add3_insn): Silence gcc warning
19886 2010-07-12 Jakub Jelinek <jakub@redhat.com>
19888 * tree-vrp.c (simplify_bit_ops_using_ranges): New function.
19889 (simplify_stmt_using_ranges): Use it.
19891 2010-07-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19893 * config/spu/spu.h (struct spu_builtin_description): Remove FNDECL
19894 member. Do not mark as GTY(()).
19895 * config/spu/spu.c (spu_builtins): Remove FNDECL initializer elements.
19896 (spu_builtin_decls): New static variable.
19897 (spu_builtin_decl): Use it instead of spu_builtins[].fndecl.
19898 (spu_init_builtins): Likewise.
19899 (spu_builtin_mul_widen_even): Likewise.
19900 (spu_builtin_mul_widen_odd): Likewise.
19901 (spu_builtin_mask_for_load): Likewise.
19902 (spu_builtin_vec_perm): Likewise.
19903 * config/spu/spu-c.c: Include "target.h".
19904 (spu_resolve_overloaded_builtin): Call targetm.builtin_decl instead
19905 of using spu_builtins[].fndecl.
19907 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
19909 * config/mips/mips.c (mips_override_options): Make -mflip-mips16
19910 imply -minterlink-mips16.
19912 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
19914 * config/mips/mips.h (mips16_globals): Declare.
19915 (SWITCHABLE_TARGET): Define.
19916 * config/mips/mips.c: Include target-globals.h.
19917 (mips16_globals): New variable.
19918 (mips_set_mips16_mode): Use save_target_globals and
19919 restore_target_globals instead of target_reinit.
19921 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
19923 * reginfo.c (init_reg_sets): Don't zero globals here. Update comment
19924 to say that the function can be called more than once.
19925 * target-globals.c (save_target_globals): Call init_reg_sets.
19927 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
19929 * Makefile.in (bb-reorder.o, target-globals.o): Depend on bb-reorder.h
19930 * bb-reorder.h: New file.
19931 * bb-reorder.c (default_target_bb_reorder): New variable.
19932 (this_target_bb_reorder): New conditional variable.
19933 (uncond_jump_length): Redefine as a macro.
19934 * target-globals.h (this_target_bb_reorder): Declare.
19935 (target_globals): Add a bb_reorder field.
19936 (restore_target_globals): Copy the bb_reorder field to
19937 this_target_bb-reorder.
19938 * target-globals.c: Include bb-reorder.h.
19939 (default_target_globals): Initialize the bb_reorder field.
19940 (save_target_globals): Likewise.
19942 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
19944 * Makefile.in (gcse.o, target-globals.o): Depend on gcse.h..
19945 * gcse.h: New file.
19946 * gcse.c: Include gcse.h.
19947 (default_target_gcse): New variable.
19948 (this_target_gcse): New conditional variable.
19949 (can_copy): Redefine as a macro.
19950 (can_copy_init_p): New macro.
19951 (can_copy_p): Remove can_copy_init_p.
19952 * target-globals.h (this_target_gcse): Declare.
19953 (target_globals): Add a gcse field.
19954 (restore_target_globals): Copy the gcse field to this_target_gcse.
19955 * target-globals.c: Include gcse.h.
19956 (default_target_globals): Initialize the gcse field.
19957 (save_target_globals): Likewise.
19959 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
19961 * ira-int.h (target_ira_int): Add x_ira_prohibited_mode_move_regs
19962 and x_ira_prohibited_mode_move_regs_initialized_p.
19963 (ira_prohibited_mode_move_regs): Redefine as a macro.
19964 * ira.c (ira_prohibited_mode_move_regs): Delete.
19965 (ira_prohibited_mode_move_regs_initialized_p): Redefine as a macro.
19967 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
19969 * reload.h (target_reload): Add x_cached_reg_save_code and
19970 x_cached_reg_restore_code.
19971 * caller-save.c (cached_reg_save_code, cached_reg_restore_code):
19972 Redefine as macros.
19974 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
19976 * Makefile.in (target-globals.o): Depend on builtins.h.
19977 * builtins.h: New file.
19978 * builtins.c: Include builtins.h.
19979 (default_target_builtins): New variable.
19980 (this_target_builtins): New conditional variable.
19981 (apply_args_mode, apply_result_mode): Redefine as macros.
19982 * target-globals.h (this_target_builtins): Declare.
19983 (target_globals): Add a builtins field.
19984 (restore_target_globals): Copy the builtins field to
19985 this_target_builtins.
19986 * target-globals.c: Include builtins.h.
19987 (default_target_globals): Initialize the builtins field.
19988 (save_target_globals): Likewise.
19990 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
19992 * expmed.h (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST)
19993 (algorithm, alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved
19995 (target_expmed): Add x_alg_hash and x_alg_hash_used_p.
19996 (alg_hash, alg_hash_used_p): New macros.
19997 * expmed.c (init_expmed): Clear alg_hash if reinitializing.
19998 (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST, algorithm)
19999 (alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved to expmed.h.
20001 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
20003 * ira-int.h (target_ira_int): Add x_max_struct_costs_size, x_init_cost,
20004 x_temp_costs, x_op_costs, x_this_op_costs and x_cost_classes.
20005 * ira-costs.c (max_struct_costs_size, init_cost, temp_costs, op_costs)
20006 (this_op_costs, costs_classes): Redefine as macros.
20007 (record_reg_classes): Don't take op_costs as a parameter.
20008 (record_operand_costs): Likewise. Update calls to record_reg_classes.
20009 (scan_one_insn): Update call to record_operand_costs.
20011 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
20013 * Makefile.in (target-globals.o): Depend on $(IRA_INT_H).
20014 * ira-int.h (ira_max_nregs, ira_important_class_nums): Delete.
20015 (target_ira_int): New structure.
20016 (default_target_ira_int): Declare.
20017 (this_target_ira_int): Declare as a variable or define as a macro.
20018 (ira_reg_mode_hard_regset, ira_register_move_cost)
20019 (ira_may_move_in_cost, ira_may_move_out_cost, ira_class_subset_p)
20020 (ira_non_ordered_class_hard_regs, ira_class_hard_reg_index)
20021 (prohibited_class_mode_regs, ira_important_classes_num)
20022 (ira_important_classes, ira_reg_class_intersect)
20023 (ira_reg_classes_intersect_p, ira_reg_class_super_classes)
20024 (ira_reg_class_union): Redefine as macros.
20025 * ira.h (target_ira): New structure.
20026 (default_target_ira): Declare.
20027 (this_target_ira): Declare as a variable or define as a macro.
20028 (ira_available_class_regs, ira_hard_regno_cover_class)
20029 (ira_reg_class_cover_size, ira_reg_class_cover, ira_class_translate)
20030 (ira_reg_class_nregs, ira_memory_move_cost, ira_class_hard_regs)
20031 (ira_class_hard_regs_num): Redefine as macros.
20032 * ira.c (default_target_ira, default_target_ira_int): New variables.
20033 (this_target_ira, this_target_ira_int): New conditional variables.
20034 (ira_reg_mode_hard_regset, ira_memory_move_cost)
20035 (ira_register_move_cost, ira_may_move_in_cost, ira_may_move_out_cost)
20036 (ira_class_subset_p): Delete.
20037 (no_unit_alloc_regs): Redefine as a macro.
20038 (ira_class_hard_regs, ira_non_ordered_class_hard_regs)
20039 (ira_class_hard_regs_num, ira_class_hard_reg_index)
20040 (ira_available_class_regs): Delete.
20041 (alloc_reg_class_subclasses): Redefine as a macro.
20042 (ira_reg_class_cover_size, ira_reg_class_cover)
20043 (ira_important_classes_num, ira_important_classes)
20044 (ira_important_class_nums, ira_class_translate): Delete.
20045 (cover_class_order): Document the variable's lifetime.
20046 (reorder_important_classes): Don't set ira_important_class_nums.
20047 (ira_reg_class_intersect, ira_reg_classes_intersect_p)
20048 (ira_reg_class_super_classes, ira_reg_class_union)
20049 (ira_hard_regno_cover_class, ira_reg_class_nregs, ira_max_nregs):
20051 (setup_reg_class_nregs): Don't set ira_max_regs.
20052 (prohibited_class_mode_regs): Delete.
20053 * target-globals.h (this_target_ira, this_target_ira_int): Declare.
20054 (target_globals): Add ira and ira_int fields.
20055 (restore_target_globals): Copy the ira field to this_target_ira
20056 and the ira_int field to this_target_ira_int.
20057 * target-globals.c: Include ira-int.h.
20058 (default_target_globals): Initialize the ira and ira_int fields.
20059 (save_target_globals): Likewise.
20061 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
20063 * Makefile.in (target-globals.o): Depend on $(CFGLOOP_H).
20064 * cfgloop.h (target_cfgloop): New structure.
20065 (default_target_cfgloop): Declare.
20066 (this_target_cfgloop): Declare as a variable or define as a macro.
20067 (target_avail_regs, target_clobbered_regs, target_res_regs)
20068 (target_reg_cost, target_spill_cost): Redefine as macros.
20069 * cfgloopanal.c (default_target_cfgloop): New variable.
20070 (this_target_cfgloop): New conditional variable.
20071 (target_avail_regs, target_clobbered_regs, target_res_regs)
20072 (target_reg_cost, target_spill_cost): Delete.
20073 * target-globals.h (this_target_cfgloop): Declare.
20074 (target_globals): Add a cfgloop field.
20075 (restore_target_globals): Copy the cfgloop field to
20076 this_target_cfgloop.
20077 * target-globals.c: Include cfgloop.h.
20078 (default_target_globals): Initialize the cfgloop field.
20079 (save_target_globals): Likewise.
20081 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
20083 * regs.h (target_regs): Add x_direct_load, x_direct_store and
20084 x_float_extend_from_mem.
20085 (direct_load, direct_store, float_extend_from_mem): New macros.
20086 * expr.c (direct_load, direct_store, float_extend_from_mem): Delete.
20088 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
20090 * Makefile.in (LIBFUNCS_H): Add $(HASHTAB_H).
20091 (target-globals.o): Depend on $(LIBFUNCS_H).
20092 * libfuncs.h: Include hashtab.h.
20093 (libfunc_entry): Moved from optabs.c.
20094 (target_libfuncs): New structure.
20095 (default_target_libfuncs): Declare.
20096 (this_target_libfuncs): Declare as a variable or define as a macro.
20097 (libfunc_table): Redefine as a macro.
20098 * optabs.c (default_target_libfuncs): New variable.
20099 (this_target_libfuncs): New conditional variable.
20100 (libfunc_table): Delete.
20101 (libfunc_entry): Moved to optabs.h.
20102 (libfunc_hash): Redefine as a macro.
20103 (hash_libfunc, eq_libfunc): Fix comments.
20104 (init_optabs): Use libfunc_hash to detect cases where the function
20105 has already been called. Clear the hash table instead of
20107 * target-globals.h (this_target_libfuncs): Declare.
20108 (target_globals): Add a libfuncs field.
20109 (restore_target_globals): Copy the libfuncs field to
20110 this_target_libfuncs.
20111 * target-globals.c: Include libfuncs.h.
20112 (default_target_globals): Initialize the libfuncs field.
20113 (save_target_globals): Likewise.
20115 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
20117 * Makefile.in (LIBFUNCS_H): New variable. Use instead of libfuncs.h
20118 in all dependency lists.
20120 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
20122 * Makefile.in (target-globals.o): Depend on $(EXPR_H) and $(OPTABS_H).
20123 * optabs.h (target_optabs): New structure.
20124 (default_target_optabs): Declare.
20125 (this_target_optabs): Declare as a variable or define as a macro.
20126 (optab_table, convert_optab_table, direct_optab_table): Redefine
20128 * optabs.c (default_target_optabs): New variable.
20129 (this_target_optabs): New conditional variable.
20130 (optab_table, convert_optab_table, direct_optab_table): Delete.
20131 * target-globals.h (this_target_optabs): Declare.
20132 (target_globals): Add a optabs field.
20133 (restore_target_globals): Copy the optabs field to
20134 this_target_optabs.
20135 * target-globals.c: Include expr.h and optabs.h.
20136 (default_target_globals): Initialize the optabs field.
20137 (save_target_globals): Likewise.
20139 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
20141 * flags.h (target_flagstate): Add x_flag_excess_precision.
20142 (flag_excess_precision): Redefine as a macro.
20143 * toplev.c (flag_excess_precision): Delete.
20145 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
20147 * defaults.h (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Define if not defined.
20148 * libgcc2.c (MIN_UNITS_PER_WORD): Delete.
20149 * hard-reg-set.h (target_hard_regs): Add x_no_caller_save_reg_set.
20150 (no_caller_save_reg_set): Redefine as a macro.
20151 * reload.h (target_reload): Add x_caller_save_initialized_p and
20153 (caller_save_initialized_p): Redefine as a macro.
20154 * caller-save.c (caller_save_initialized_p, no_caller_save_reg_set)
20155 (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Delete.
20156 (regno_save_mode): Redefine as a macro.
20158 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
20160 * Makefile.in (expmed.o, target-globals.o): Depend on expmed.h.
20161 * expmed.h: New file.
20162 * expmed.c (default_target_costs): New variable.
20163 (this_target_costs): New conditional variable.
20164 (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost, neg_cost)
20165 (shift_cost, shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost)
20166 (sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete.
20167 * target-globals.h (this_target_expmed): Declare.
20168 (target_globals): Add a expmed field.
20169 (restore_target_globals): Copy the expmed field to
20170 this_target_expmed.
20171 * target-globals.c: Include expmed.h.
20172 (default_target_globals): Initialize the expmed field.
20173 (save_target_globals): Likewise.
20175 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
20177 * Makefile.in (target-globals.o): Depend on reload.h.
20178 * reload.h (target_reload): New structure.
20179 (default_target_reload): Declare.
20180 (this_target_reload): Declare as a variable or define as a macro.
20181 (indirect_symref_ok, double_reg_address_ok): Redefine as macros.
20182 * reload1.c (default_target_reload): New variable
20183 (this_target_reload): New conditional variable.
20184 (indirect_symref_ok, double_reg_address_ok): Delete.
20185 (spill_indirect_levels): Redefine as a macro.
20186 * target-globals.h (this_target_reload): Declare.
20187 (target_globals): Add a reload field.
20188 (restore_target_globals): Copy the reload field to
20189 this_target_reload.
20190 * target-globals.c: Include hard-reg-set.h.
20191 (default_target_globals): Initialize the reload field.
20192 (save_target_globals): Likewise.
20194 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
20196 * rtl.h (target_rtl): Add x_static_reg_base_value.
20197 * alias.c (static_reg_base_value): Redefine as a macro.
20199 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
20201 * Makefile.in (reginfo.o): Don't depend on $(GGC_H) or gt-reginfo.h.
20202 (GTFILES): Remove reginfo.c.
20203 * rtl.h (target_rtl): Add x_top_of_stack.
20204 (top_of_stack): New macro.
20205 * reginfo.c: Don't include ggc.h or gt-reginfo.h.
20206 (top_of_stack): Delete.
20208 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
20210 * regs.h (target_regs): Add x_hard_regs_of_mode,
20211 x_contains_reg_of_mode, x_move_cost, x_may_move_in_cost,
20212 x_may_move_out_cost and x_last_mode_for_init_move_cost.
20213 (have_regs_of_mode, contains_reg_of_mode, move_cost)
20214 (may_move_in_cost, may_move_out_cost): Redefine as macros.
20215 * reginfo.c (have_regs_of_mode, contains_reg_of_mode, move_cost)
20216 (may_move_in_cost, may_move_out_cost): Delete.
20217 (last_mode_for_init_move_cost): Redefine as a macro.
20219 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
20221 * hard-reg-set.h (target_hard_regs): New structure.
20222 (default_target_hard_regs): Declare.
20223 (this_target_hard_regs): Declare as a variable or define as a macro.
20224 (fixed_regs, fixed_reg_set, call_used_regs, call_really_used_regs)
20225 (call_used_reg_set, call_fixed_reg_set, regs_invalidated_by_call)
20226 (reg_alloc_order, inv_reg_alloc_order, reg_class_contents)
20227 (reg_class_size, reg_class_subclasses, reg_class_subunion)
20228 (reg_class_superunion, reg_names): Redefine as macros.
20229 * reginfo.c (fixed_regs, fixed_reg_set, call_used_regs)
20230 (call_used_reg_set, call_really_used_regs, call_fixed_reg_set)
20231 (regs_invalidated_by_call, reg_alloc_order, inv_reg_alloc_order)
20232 (reg_class_contents, reg_class_size, reg_class_subclasses)
20233 (reg_class_subunion, reg_class_superunion, reg_names): Delete.
20234 (default_target_hard_regs): New variable
20235 (this_target_hard_regs, initial_call_really_used_regs)
20236 (initial_reg_alloc_order): New conditional variables.
20237 (initial_reg_names): New variable.
20238 (init_reg_sets): Assert that initial_call_really_used_regs,
20239 initial_reg_alloc_order and initial_reg_names
20240 are all the same size as their variable counterparts. Use them to
20241 initialize those counterparts.
20242 * target-globals.h (this_target_hard_regs): Declare.
20243 (target_globals): Add a hard_regs field.
20244 (restore_target_globals): Copy the hard_regs field to
20245 this_target_hard_regs.
20246 * target-globals.c: Include hard-reg-set.h.
20247 (default_target_globals): Initialize the hard_regs field.
20248 (save_target_globals): Likewise.
20250 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
20252 * Makefile.in (target-globals.o): Depend on $(RTL_H).
20253 * rtl.h (target_rtl): New structure.
20254 (default_target_rtl): Declare.
20255 (this_target_rtl): Declare as a variable or define as a macro.
20256 (global_rtl, pic_offset_table_rtx, return_address_pointer_rtx):
20257 Redefine as macros.
20258 * emit-rtl.c (default_target_rtl): New variable.
20259 (this_target_rtl): New conditional variable.
20260 (global_rtl, static_regno_reg_rtx, pic_offset_table_rtx)
20261 (return_address_pointer_rtx): Delete.
20262 (initial_regno_reg_rtx): New macro.
20263 (init_emit): Use initial_regno_reg_rtx instead of static_regno_reg_rtx.
20264 (init_emit_regs): Likewise.
20265 * target-globals.h (this_target_rtl): Declare.
20266 (target_globals): Add a rtl field.
20267 (restore_target_globals): Copy the rtl field to this_target_rtl.
20268 * target-globals.c: Include rtl.h.
20269 (default_target_globals): Initialize the rtl field.
20270 (save_target_globals): Likewise.
20272 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
20274 * Makefile.in (target-globals.o): Depend on $(REGS_H).
20275 * regs.h (target_reg_modes): New structure.
20276 (default_target_reg_modes): Declare.
20277 (this_target_reg_modes): Declare as a variable or define as a macro.
20278 (hard_regno_nregs, reg_raw_mode): Redefine as macros.
20279 * reginfo.c (default_target_reg_modes): New variable.
20280 (this_target_reg_modes): New conditional variable.
20281 (hard_regno_nregs, reg_raw_mode): Delete.
20282 * target-globals.h (this_target_regs): Declare.
20283 (target_globals): Add a regs field.
20284 (restore_target_globals): Copy the regs field to this_target_regs.
20285 * target-globals.c: Include regs.h.
20286 (default_target_globals): Initialize the regs field.
20287 (save_target_globals): Likewise.
20289 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
20291 * doc/tm.texi.in (SWITCHABLE_TARGET): Document.
20292 * doc/tm.texi: Regenerate.
20293 * Makefile.in (OBJS-common): Add target-globals.o.
20294 (gtype-desc.o): Depend on $(IPA_PROP_H), $(LTO_STREAMER_H)
20295 and target-globals.h.
20296 (target-globals.o): New rule.
20297 (GTFILES): Include $(srcdir)/target-globals.h.
20298 * defaults.h (SWITCHABLE_TARGET): Define.
20299 * gengtype.c (open_base_files): Add target-globals.h to the
20301 * target-globals.h: New file.
20302 * target-globals.c: Likewise.
20304 * Makefile.in (target-globals.o): Depend on $(FLAGS_H).
20305 * flags.h (target_flag_state): New structure.
20306 (default_target_flag_state): Declare.
20307 (this_target_flag_state): Declare as a variable or define as a macro.
20308 (align_loops_log): Redefine as a macro.
20309 (align_loops_max_skip, align_jumps_log): Likewise.
20310 (align_jumps_max_skip, align_labels_log): Likewise.
20311 (align_labels_max_skip, align_functions_log): Likewise.
20312 * toplev.c (default_target_flag_state): New variable.
20313 (this_target_flag_state): New conditional variable.
20314 (align_loops_log): Delete.
20315 (align_loops_max_skip, align_jumps_log): Likewise.
20316 (align_jumps_max_skip, align_labels_log): Likewise.
20317 (align_labels_max_skip, align_functions_log): Likewise.
20318 * target-globals.h (this_target_flag_state): Declare.
20319 (target_globals): Add a flag_state field.
20320 (restore_target_globals): Copy the flag_state field to
20321 this_target_flag_state.
20322 * target-globals.c: Include flags.h.
20323 (default_target_globals): Initialize the flag_state field.
20324 (save_target_globals): Likewise.
20326 2010-07-12 Jie Zhang <jie@codesourcery.com>
20328 * postreload.c (reg_symbol_ref[]): New.
20329 (move2add_use_add2_insn): New.
20330 (move2add_use_add3_insn): New.
20331 (reload_cse_move2add): Handle SYMBOL + OFFSET case.
20332 (move2add_note_store): Likewise.
20334 2010-07-12 Joern Rennecke <joern.rennecke@embecosm.com>
20336 PR rtl-optimization/44752
20337 * genautomata.c (main): Don't emit an empty file even if there
20340 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20342 * config/i386/i386.c (ix86_sol10_return_in_memory): Rename to
20343 ix86_solaris_return_in_memory.
20344 * config/i386-protos.h: Reflect this.
20345 * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
20346 * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
20348 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): ... here.
20350 2010-07-12 Jie Zhang <jie@codesourcery.com>
20352 * config/arm/arm.c (arm_get_frame_offsets): Don't use r3 to
20353 align the stack when it's going to be saved.
20355 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20358 * config/host-solaris.c (mmap_fixed): New function.
20359 (sol_gt_pch_get_address): Use it.
20360 (sol_gt_pch_use_address): Likewise.
20362 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20364 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
20365 pentiumpro on Solaris 8 and 9/x86.
20366 * doc/install.texi (Specific, i?86-*-solaris2.[89]): Recommend GNU as.
20367 Document SSE/SSE2 support.
20368 * doc/sourcebuild.texi (Effective-Target Keywords): Document sse.
20370 2010-07-12 Andi Kleen <ak@linux.intel.com>
20372 * lto-symtab.c (lto_symtab_merge_decls_1): Use fatal_error
20373 instead of gcc_assert to print better error message for multiple
20376 2010-07-12 Uros Bizjak <ubizjak@gmail.com>
20378 * config/i386/i386.c (ix86_asm_output_function_label): Change format
20379 string placeholder from 0x%x to %#x.
20380 (ix86_code_end): Use putc to output '\n'.
20381 (ix86_print_operand) <case ';'>: Use putc to output ';'.
20383 2010-07-11 Kai Tietz <kai.tietz@onevision.com>
20385 * config/i386/winnt.c (i386_pe_file_end): Quote symbol name
20386 in directive -export.
20388 2010-07-10 Anatoly Sokolov <aesok@post.ru>
20390 * reginfo.h (reg_classes_intersect_p): Change arguments type to
20392 * rtl.h (reg_classes_intersect_p): Adjust prototype.
20394 * config/rs6000/rs6000.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
20396 * config/rs6000/rs6000-protos.h (rs6000_register_move_cost,
20397 rs6000_memory_move_cost): Remove
20398 * config/rs6000/rs6000.c (TARGET_REGISTER_MOVE_COST,
20399 TARGET_MEMORY_MOVE_COST): Define.
20400 (rs6000_register_move_cost): Make static. Change arguments type from
20401 enum reg_class to reg_class_t. Adjust rs6000_memory_move_cost calls.
20402 (rs6000_memory_move_cost): Make static. Change arguments type from
20403 'enum reg_class' to reg_class_t.
20405 2010-07-10 Sandra Loosemore <sandra@codesourcery.com>
20407 PR middle-end/42505
20408 * tree-inline.c (estimate_num_insns): Refactor builtin complexity
20409 lookup code into....
20410 * builtins.c (is_simple_builtin, is_inexpensive_builtin): ...these
20412 * tree.h (is_simple_builtin, is_inexpensive_builtin): Declare.
20413 * cfgloopanal.c (target_clobbered_regs): Define.
20414 (init_set_costs): Initialize target_clobbered_regs.
20415 (estimate_reg_pressure_cost): Add call_p argument. When true,
20416 adjust the number of available registers to exclude the
20417 call-clobbered registers.
20418 * cfgloop.h (target_clobbered_regs): Declare.
20419 (estimate_reg_pressure_cost): Adjust declaration.
20420 * tree-ssa-loop-ivopts.c (struct ivopts_data): Add body_includes_call.
20421 (ivopts_global_cost_for_size): Pass it to estimate_reg_pressure_cost.
20422 (determine_set_costs): Dump target_clobbered_regs.
20423 (loop_body_includes_call): New function.
20424 (tree_ssa_iv_optimize_loop): Use it to initialize new field.
20425 * loop-invariant.c (gain_for_invariant): Adjust arguments to pass
20426 call_p flag through.
20427 (best_gain_for_invariant): Likewise.
20428 (find_invariants_to_move): Likewise.
20429 (move_single_loop_invariants): Likewise, using already-computed
20432 2010-07-10 Richard Guenther <rguenther@suse.de>
20433 Joern Rennecke <joern.rennecke@embecosm.com>
20436 * tree-ssa-live.c (mark_all_vars_used_1): Set TREE_USED for LABEL_DECL.
20437 (remove_unused_scope_block_p): Don't drop TREE_USED LABEL_DECLs
20438 unless they have DECL_IGNORED_P set.
20440 2010-07-10 Richard Guenther <rguenther@suse.de>
20443 * gimple.c (gimple_fixup_complete_and_incomplete_subtype_p): New
20445 (gimple_types_compatible_p): Similar to pointed-to
20446 types allow and merge a mix of complete and incomplete aggregate.
20447 Use gimple_fixup_complete_and_incomplete_subtype_p for that.
20448 (iterative_hash_gimple_type): Adjust for that.
20450 2010-07-10 Richard Sandiford <r.sandiford@uk.ibm.com>
20452 * tree.h (DECL_REPLACEABLE_P): Strengthen check for weak symbols.
20454 2010-07-10 Iain Sandoe <iains@gcc.gnu.org>
20457 * config/darwin.c (output_objc_section_asm_op): Save and restore
20458 section when outputting ObjC section list.
20460 2010-07-09 Jan Hubicka <jh@suse.cz>
20462 * lto-streamer-out.c (produce_symtab): Do not write alias
20463 cgraph/varpool nodes.
20465 2010-07-09 Jan Hubicka <jh@suse.cz>
20467 * tree-inline.c (declare_return_variable): Fix ICE while
20468 inlining DECL_BY_VALUE function not in SSA form
20470 2010-07-09 Changpeng Fang <changpeng.fang@amd.com>
20472 PR tree-optimization/44576
20473 * tree-ssa-loop-prefetch.c (trip_count_to_ahead_ratio_too_small_p):
20474 New. Pull out from is_loop_prefetching_profitable to implement
20475 the trip count to ahead ratio heuristic.
20476 (mem_ref_count_reasonable_p): New. Pull out from
20477 is_loop_prefetching_profitable to implement the instruction to
20478 memory reference ratio heuristic. Also consider not reasonable if
20479 the memory reference count is above a threshold (to avoid
20480 explosive compilation time.
20481 (insn_to_prefetch_ratio_too_small_p): New. Pull out from
20482 is_loop_prefetching_profitable to implement the instruction to
20483 prefetch ratio heuristic.
20484 (is_loop_prefetching_profitable): Removed.
20485 (loop_prefetch_arrays): Distribute the cost analysis across the
20486 function to allow early exit of the prefetch analysis.
20487 is_loop_prefetching_profitable is splitted into three functions,
20488 with each one called as early as possible.
20489 (PREFETCH_MAX_MEM_REFS_PER_LOOP): New. Threshold above which the
20490 number of memory references in a loop is considered too many.
20492 2010-07-09 Bernd Schmidt <bernds@codesourcery.com>
20494 * reload.c (find_reloads): Don't clear badop if we have a winreg
20495 alternative, but not win, and the class only has fixed regs.
20496 * hard-reg-set.h (class_only_fixed_regs): Declare.
20497 * reginfo.c (class_only_fixed_regs): New array.
20498 (init_reg_sets_1): Initialize it.
20499 * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn): Don't
20500 discourage alternatives using the stack pointer.
20502 * config/arm/arm.md (addsi3_cbranch): Switch alternatives 0 and 1.
20504 * config/arm/arm.md (Thumb-1 ldrsb peephole): New.
20506 * config/arm/arm.md (cbranchqi4): Fix array size.
20507 (addsi3_cbranch): Also andle alternative 2 like alternative 3 when
20508 calculating length.
20510 2010-07-09 Richard Guenther <rguenther@suse.de>
20512 * gimple.c (struct type_fixup_s): New struct and VEC type.
20513 (gimple_register_type_fixups): New static global.
20514 (gimple_queue_type_fixup): New function.
20515 (gimple_types_compatible_p): Queue type fixups instead of
20516 applying them here.
20517 (gimple_register_type): Apply queued fixups for the
20518 canonical type. Empty the type fixup queue.
20520 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
20522 * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Fix test.
20523 * configure: Regenerate.
20524 * config.in: Ditto.
20526 2010-07-09 Jakub Jelinek <jakub@redhat.com>
20527 Denys Vlasenko <dvlasenk@redhat.com>
20528 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20530 PR tree-optimization/28632
20531 * tree-vrp.c (zero_nonzero_bits_from_vr): New function.
20532 (extract_range_from_binary_expr): Further optimize
20533 BIT_AND_EXPR and BIT_IOR_EXPR.
20535 2010-07-09 Sebastian Pop <sebastian.pop@amd.com>
20537 * tree-if-conv.c (fold_or_predicates): New.
20538 (add_to_predicate_list): Call it.
20540 2010-07-09 Richard Guenther <rguenther@suse.de>
20542 PR middle-end/44890
20543 * tree-ssa-address.c (create_mem_ref_raw): Only build a MEM_REF
20544 if base is a pointer.
20545 * tree-cfg.c (verify_expr): Update MEM_REF checking.
20547 2010-07-08 Michael Meissner <meissner@linux.vnet.ibm.com>
20550 * config/rs6000/rs6000.c (rs6000_expand_builtin): Use
20551 POINTER_TYPE_P instead of checking only for POINTER_TYPE for the
20552 builtin mask for load/store builtins.
20554 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
20556 * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Also check
20558 * configure: Regenerate.
20559 * config/i386/i386.c (ix86_print_operand) <case ';'>:
20560 Remove TARGET_MACHO.
20562 2010-07-09 Peter Bergner <bergner@vnet.ibm.com>
20564 * config/rs6000/rs6000.c (rs6000_override_options): Fix setting of
20566 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mvsx.
20568 2010-07-09 Tom de Vries <tjvries@xs4all.nl>
20570 * tree.c (type_hash_if_marked_p): Removed non-ggc_marked_p clause.
20572 2010-07-09 Hariharan Sandanagobalane <hariharan@picochip.com>
20574 * config/picochip/picochip.md (commsTestPort): Emit more
20575 efficient sequence for tstport instruction.
20577 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
20579 * config/i386/i386.c (ix86_veclib_handler): Make static.
20581 2010-07-09 Richard Guenther <rguenther@suse.de>
20583 PR tree-optimization/44852
20584 * tree-ssa-alias.c: Include toplev.h for exact_log2.
20585 (indirect_ref_may_alias_decl_p): Properly handle negative offsets
20587 (indirect_refs_may_alias_p): Likewise.
20588 * Makefile.in (tree-ssa-alias.o): Add $(TOPLEV_H).
20590 2010-07-09 Richard Guenther <rguenther@suse.de>
20592 PR tree-optimization/44882
20593 * tree-vect-stmts.c (vectorizable_store): Do not assert alias
20595 (vectorizable_load): Likewise.
20597 2010-07-09 Bernd Schmidt <bernds@codesourcery.com>
20600 * config/arm/arm.c (thumb1_extra_regs_pushed): New arg FOR_PROLOGUE.
20601 All callers changed.
20602 Handle the case when we're called for the epilogue.
20603 (thumb_unexpanded_epilogue): Use it.
20604 (thumb1_expand_epilogue): Likewise.
20606 2010-07-09 Jakub Jelinek <jakub@redhat.com>
20608 * tree-vrp.c (extract_range_from_binary_expr) <BIT_AND_EXPR>: If
20609 both ranges are range_int_cst_p with non-negative minimum,
20610 try harder to derive smaller range.
20612 2010-07-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
20614 * genrecog.c: Include diagnostic-core.h before toplev.h.
20615 * genoutput.c: Likewise.
20616 * genextract.c: Likewise.
20617 * genautomata.c: Likewise.
20618 * genemit.c: Likewise.
20619 * genpeep.c: Likewise.
20620 * genattrtab.c: Likewise.
20621 * genconditions.c: Likewise.
20622 * genpreds.c: Likewise.
20624 2010-07-08 Andi Kleen <ak@linux.intel.com>
20626 * lto-section-in.c (lto_section_name): Add missing comma.
20628 2010-07-08 Anatoly Sokolov <aesok@post.ru>
20630 * config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros.
20631 * config/ia64/ia64-protos.h (ia64_override_options): Remove.
20632 * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define.
20633 (ia64_override_options): Rename to...
20634 (ia64_option_override): ... this one. Make static.
20636 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
20638 PR middle-end/44843
20639 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not rely on the
20640 pointed-to type of the offset in a MEM_REF to compute the alignment.
20642 2010-07-08 Kai Tietz <kai.tietz@onevision.com>
20644 * final.c (final_scan_insn): Replace
20645 TARGET_UNWIND_INFO macro check by unwind_emit
20647 * targhooks.c (default_unwind_emit): Removed.
20648 * targhooks.h (default_unwind_emit): Likewise.
20649 * target.def (unwind_emit): Set default value to NULL.
20651 * config/i386/i386-protos.h (ix86_asm_output_function_label):
20653 * config/i386/i386.c (ix86_function_ms_hook_prologue): Check
20654 for NULL fntype argument and allow 64-bit targets.
20655 (ix86_asm_output_function_label): New function.
20656 (ix86_expand_prologue): Handle 64-bit ms hook prologue.
20657 (ix86_handle_fndecl_attribute): Likewise.
20658 * doc/extend.texi (ms_hook_prologue): Adjust documentation.
20659 * doc/doc/tm.texi: Regenerated.
20660 * doc/doc/doc/tm.texi.in (ASM_OUTPUT_FUNCTION_LABEL): New.
20661 (ASM_DECLARE_FUNCTION_NAME): Adjust documentation.
20662 * defaults.h (ASM_OUTPUT_FUNCTION_LABEL): New macro.
20663 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use
20664 ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
20665 * config/elfos.h: Likewise.
20666 * config/i386/cygming.h: Likewise.
20667 * config/netbsd-aout.h: Likewise.
20668 * config/openbsd.h: Likewise.
20669 * config/i386/i386.h (ASM_OUTPUT_FUNCTION_LABEL): Override
20670 by ix86_asm_output_function_label function call.
20671 * varasm.c (assemble_start_function): Use
20672 ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
20674 2010-07-08 Jan Hubicka <jh@suse.cz>
20676 * cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
20678 * cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
20680 * ipa-cp.c (ipcp_estimate_growth): Use it.
20681 * ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
20684 2010-07-08 Jan Hubicka <jh@suse.cz>
20686 * tree-inline.c (declare_return_variable): Allocate annotation for new
20689 2010-07-08 Sebastian Pop <sebastian.pop@amd.com>
20691 PR tree-optimization/44710
20692 * tree-if-conv.c (parse_predicate): New.
20693 (add_to_predicate_list): Call it, call maybe_fold_or_comparisons.
20694 Make sure that the predicates are either SSA_NAMEs or gimple_condexpr.
20696 2010-07-08 Sebastian Pop <sebastian.pop@amd.com>
20698 * common.opt (ftree-loop-if-convert): New flag.
20699 * doc/invoke.texi (ftree-loop-if-convert): Documented.
20700 * tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
20701 when flag_tree_loop_if_convert is set.
20703 2010-07-08 Uros Bizjak <ubizjak@gmail.com>
20705 * config/i386/i386.c: Use short syntax for function calls
20706 through function pointers.
20707 * config/i386/i386.md: Ditto.
20709 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
20711 * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix formatting issues.
20713 2010-07-08 Richard Guenther <rguenther@suse.de>
20715 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Fix
20716 stmt check for POINTER_PLUS_EXPRs, fix the pointer assignment.
20718 2010-07-08 Jakub Jelinek <jakub@redhat.com>
20720 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_const[48]u
20721 instead of DW_OP_addr for DW_OP_GNU_push_tls_address operand.
20722 (loc_list_from_tree): Likewise.
20723 (output_loc_operands): Handle outputting DW_OP_const[48]u
20724 with loc->dtprel set.
20725 (resolve_addr_in_expr): Handle loc->dtprel like DW_OP_addr.
20727 2010-07-08 Jan Hubicka <jh@suse.cz>
20729 * ipa.c: Include pointer-set.h
20730 (cgraph_externally_visible_p): New attribute ALIASED;
20731 when in LTO, hidden symbols are local unless they are aliased.
20732 (function_and_variable_visibility): Compute aliased nodes;
20733 handle LTO and hidden symbol on functions and vars.
20734 * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
20735 for COMDAT symbols; handle COMDAT_GROUPS also at vars.
20737 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
20739 * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
20740 * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
20741 * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
20742 * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
20743 * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
20744 * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
20745 (ix86_gen_probe_stack_range): Likewise.
20746 (override_options): Set them.
20747 (ix86_target_stack_probe): New function.
20748 (ix86_compute_frame_layout): Force use of push instructions to
20749 save registers if stack checking with probes is enabled.
20750 (get_scratch_register_on_entry): New function.
20751 (release_scratch_register_on_entry): Likewise.
20752 (ix86_adjust_stack_and_probe): Likewise.
20753 (output_adjust_stack_and_probe): Likewise.
20754 (ix86_emit_probe_stack_range): Likewise.
20755 (output_probe_stack_range): Likewise.
20756 (ix86_expand_prologue): Emit stack checking code if static built-in
20757 stack checking is enabled.
20758 Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
20759 * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
20760 (output_adjust_stack_and_probe): Likewise.
20761 (output_probe_stack_range): Likewise.
20762 * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
20763 (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
20764 TARGET_STACK_PROBE.
20765 (allocate_stack_worker_64): Likewise.
20766 (allocate_stack): Likewise.
20767 (adjust_stack_and_probe): New insn.
20768 (probe_stack_range): Likewise.
20770 2010-07-08 Richard Guenther <rguenther@suse.de>
20772 PR tree-optimization/44831
20773 * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
20774 a MEM_REF preserving TBAA info of the original dereference.
20775 Dereference the original pointer if the address is not invariant.
20776 (propagate_with_phi): Fixup type checks wrt MEM_REFs. Require
20777 at least one invariant address that we are going to dereference.
20779 2010-07-08 Richard Guenther <rguenther@suse.de>
20781 PR tree-optimization/44861
20782 * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
20783 information when building MEM_REFs.
20784 (vectorizable_load): Likewise.
20785 * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
20787 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
20789 * config/sol2-c.c: Do not include diagnostic-core.h.
20791 2010-07-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20794 * cfgexpand.c (estimated_stack_frame_size): Make self-contained
20795 with respect to current_function_decl. Pass decl of the function.
20796 * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
20797 * ipa-inline.c (compute_inline_parameters): Pass decl to
20798 estimated_stack_frame_size.
20800 2010-07-08 Richard Guenther <rguenther@suse.de>
20802 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
20804 (valueize_refs): Call it.
20806 2010-07-08 Richard Guenther <rguenther@suse.de>
20808 PR rtl-optimization/44838
20809 * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
20810 SSA form do not use pointer equivalence.
20812 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
20814 * dwarf2out.c (AT_linkage_name): Delete.
20815 (add_linkage_attr): New function.
20816 (add_linkage_name): Call it to emit the linkage attribute.
20817 (dwarf2out_finish): Likewise.
20818 (move_linkage_attr): Explicitly accept both attribute variants.
20820 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
20822 * toplev.h: Do not include diagnostic-core.h.
20823 Include diagnostic-core.h in every file that includes toplev.h.
20824 * c-tree.h: Do not include toplev.h.
20825 * pretty-print.h: Update comment.
20826 * Makefile.in: Update dependencies.
20827 * alias.c: Include diagnostic-core.h in every file that includes
20829 * attribs.c: Likewise.
20830 * auto-inc-dec.c: Likewise.
20831 * bb-reorder.c: Likewise.
20832 * bt-load.c: Likewise.
20833 * caller-save.c: Likewise.
20834 * calls.c: Likewise.
20836 * cfganal.c: Likewise.
20837 * cfgbuild.c: Likewise.
20838 * cfgcleanup.c: Likewise.
20839 * cfghooks.c: Likewise.
20840 * cfgloop.c: Likewise.
20841 * combine.c: Likewise.
20842 * config/alpha/alpha.c: Likewise.
20843 * config/arc/arc.c: Likewise.
20844 * config/arm/arm.c: Likewise.
20845 * config/arm/pe.c: Likewise.
20846 * config/avr/avr.c: Likewise.
20847 * config/bfin/bfin.c: Likewise.
20848 * config/cris/cris.c: Likewise.
20849 * config/crx/crx.c: Likewise.
20850 * config/darwin-c.c: Likewise.
20851 * config/darwin.c: Likewise.
20852 * config/fr30/fr30.c: Likewise.
20853 * config/frv/frv.c: Likewise.
20854 * config/h8300/h8300.c: Likewise.
20855 * config/host-darwin.c: Likewise.
20856 * config/i386/i386.c: Likewise.
20857 * config/i386/netware.c: Likewise.
20858 * config/i386/nwld.c: Likewise.
20859 * config/i386/winnt-cxx.c: Likewise.
20860 * config/i386/winnt-stubs.c: Likewise.
20861 * config/i386/winnt.c: Likewise.
20862 * config/ia64/ia64-c.c: Likewise.
20863 * config/ia64/ia64.c: Likewise.
20864 * config/iq2000/iq2000.c: Likewise.
20865 * config/lm32/lm32.c: Likewise.
20866 * config/m32c/m32c-pragma.c: Likewise.
20867 * config/m32c/m32c.c: Likewise.
20868 * config/m32r/m32r.c: Likewise.
20869 * config/m68hc11/m68hc11.c: Likewise.
20870 * config/m68k/m68k.c: Likewise.
20871 * config/mcore/mcore.c: Likewise.
20872 * config/mep/mep-pragma.c: Likewise.
20873 * config/mep/mep.c: Likewise.
20874 * config/mmix/mmix.c: Likewise.
20875 * config/mn10300/mn10300.c: Likewise.
20876 * config/moxie/moxie.c: Likewise.
20877 * config/pa/pa.c: Likewise.
20878 * config/pdp11/pdp11.c: Likewise.
20879 * config/picochip/picochip.c: Likewise.
20880 * config/rs6000/rs6000-c.c: Likewise.
20881 * config/rs6000/rs6000.c: Likewise.
20882 * config/rx/rx.c: Likewise.
20883 * config/s390/s390.c: Likewise.
20884 * config/score/score.c: Likewise.
20885 * config/score/score3.c: Likewise.
20886 * config/score/score7.c: Likewise.
20887 * config/sh/sh.c: Likewise.
20888 * config/sh/symbian-base.c: Likewise.
20889 * config/sh/symbian-c.c: Likewise.
20890 * config/sh/symbian-cxx.c: Likewise.
20891 * config/sol2-c.c: Likewise.
20892 * config/sol2.c: Likewise.
20893 * config/sparc/sparc.c: Likewise.
20894 * config/spu/spu.c: Likewise.
20895 * config/stormy16/stormy16.c: Likewise.
20896 * config/v850/v850-c.c: Likewise.
20897 * config/v850/v850.c: Likewise.
20898 * config/vax/vax.c: Likewise.
20899 * config/vxworks.c: Likewise.
20900 * config/xtensa/xtensa.c: Likewise.
20901 * convert.c: Likewise.
20903 * cselib.c: Likewise.
20904 * dbgcnt.c: Likewise.
20905 * dbxout.c: Likewise.
20907 * dominance.c: Likewise.
20908 * emit-rtl.c: Likewise.
20909 * explow.c: Likewise.
20910 * expmed.c: Likewise.
20911 * fixed-value.c: Likewise.
20912 * fold-const.c: Likewise.
20913 * fwprop.c: Likewise.
20914 * gcse.c: Likewise.
20915 * ggc-common.c: Likewise.
20916 * ggc-page.c: Likewise.
20917 * ggc-zone.c: Likewise.
20918 * gimple-low.c: Likewise.
20919 * gimplify.c: Likewise.
20920 * graph.c: Likewise.
20921 * haifa-sched.c: Likewise.
20922 * ifcvt.c: Likewise.
20923 * implicit-zee.c: Likewise.
20924 * integrate.c: Likewise.
20925 * ira-build.c: Likewise.
20926 * ira-color.c: Likewise.
20927 * ira-conflicts.c: Likewise.
20928 * ira-costs.c: Likewise.
20929 * ira-lives.c: Likewise.
20931 * lists.c: Likewise.
20932 * loop-doloop.c: Likewise.
20933 * loop-iv.c: Likewise.
20934 * lto-opts.c: Likewise.
20935 * lto-symtab.c: Likewise.
20936 * main.c: Likewise.
20937 * modulo-sched.c: Likewise.
20938 * optabs.c: Likewise.
20939 * params.c: Likewise.
20940 * plugin.c: Likewise.
20941 * postreload-gcse.c: Likewise.
20942 * postreload.c: Likewise.
20943 * predict.c: Likewise.
20944 * profile.c: Likewise.
20945 * real.c: Likewise.
20946 * regcprop.c: Likewise.
20947 * reginfo.c: Likewise.
20948 * regmove.c: Likewise.
20949 * reorg.c: Likewise.
20950 * resource.c: Likewise.
20952 * rtlanal.c: Likewise.
20953 * sched-deps.c: Likewise.
20954 * sched-ebb.c: Likewise.
20955 * sched-rgn.c: Likewise.
20956 * sdbout.c: Likewise.
20957 * sel-sched-dump.c: Likewise.
20958 * sel-sched-ir.c: Likewise.
20959 * simplify-rtx.c: Likewise.
20960 * stmt.c: Likewise.
20961 * stor-layout.c: Likewise.
20962 * store-motion.c: Likewise.
20963 * targhooks.c: Likewise.
20964 * tree-cfg.c: Likewise.
20965 * tree-cfgcleanup.c: Likewise.
20966 * tree-dump.c: Likewise.
20967 * tree-eh.c: Likewise.
20968 * tree-inline.c: Likewise.
20969 * tree-nomudflap.c: Likewise.
20970 * tree-object-size.c: Likewise.
20971 * tree-optimize.c: Likewise.
20972 * tree-outof-ssa.c: Likewise.
20973 * tree-phinodes.c: Likewise.
20974 * tree-profile.c: Likewise.
20975 * tree-ssa-ccp.c: Likewise.
20976 * tree-ssa-coalesce.c: Likewise.
20977 * tree-ssa-live.c: Likewise.
20978 * tree-ssa-loop-niter.c: Likewise.
20979 * tree-ssa-loop-prefetch.c: Likewise.
20980 * tree-ssa-loop.c: Likewise.
20981 * tree-ssa-structalias.c: Likewise.
20982 * tree-ssa-uninit.c: Likewise.
20983 * tree-ssa.c: Likewise.
20984 * tree-vect-data-refs.c: Likewise.
20985 * tree-vect-loop-manip.c: Likewise.
20986 * tree-vect-loop.c: Likewise.
20987 * tree-vect-patterns.c: Likewise.
20988 * tree-vect-stmts.c: Likewise.
20989 * tree-vrp.c: Likewise.
20990 * varasm.c: Likewise.
20993 * xcoffout.c: Likewise.
20995 2010-07-07 Richard Sandiford <rdsandiford@googlemail.com>
20997 * gengtype.c (write_field_root): New function.
20998 (write_root): Use it.
21000 2010-07-07 Wei Guozhi <carrot@google.com>
21002 * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
21003 of lowest bits to lshift/compare): Add a missing line.
21005 2010-07-07 Wei Guozhi <carrot@google.com>
21007 * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
21008 of lowest bits to lshift/compare): New.
21010 2010-07-07 Tom Tromey <tromey@redhat.com>
21012 * doc/tm.texi: Update.
21013 * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
21015 * target.def (want_debug_pub_sections): New hook.
21016 * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
21017 * dwarf2out.c (add_pubname_string): Check
21018 targetm.want_debug_pub_sections.
21019 (add_pubname): Likewise.
21020 (add_pubtype): Likewise.
21022 2010-07-07 Jie Zhang <jie@codesourcery.com>
21024 * genautomata.c (output_automata_list_min_issue_delay_code):
21025 Correctly decompress min_issue_delay.
21027 2010-07-07 Bernd Schmidt <bernds@codesourcery.com>
21029 PR rtl-optimization/44404
21030 * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
21031 possible, use reg_overlap_mentioned_p instead.
21033 2010-07-07 Duncan Sands <baldrick@free.fr>
21035 PR middle-end/41355
21036 * tree.c (build_function_type_skip_args): Copy the original type using
21037 build_distinct_type_copy rather than copy_node.
21039 2010-07-07 H.J. Lu <hongjiu.lu@intel.com>
21042 * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
21044 (ix86_expand_prologue): Likewise.
21045 (ix86_handle_fndecl_attribute): Likewise.
21046 (ix86_asm_declare_function_name): Likewise.
21047 * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
21048 * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
21049 (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
21050 * config/i386/i386-protos.h (ix86_asm_declare_function_name): Likewise.
21051 * doc/extend.texi: Likewise.
21053 2010-07-07 H.J. Lu <hongjiu.lu@intel.com>
21056 * config/i386/i386.md (rdrand<mode>): Changed to expand to
21057 retry if the carry flag isn't valid.
21058 (rdrand<mode>_1): New.
21060 2010-07-07 Richard Guenther <rguenther@suse.de>
21062 PR middle-end/44790
21063 * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
21064 for expanding the constant offset for MEM_REFs.
21066 2010-07-07 Richard Guenther <rguenther@suse.de>
21068 * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
21069 * tree-ssa-propagate.c (valid_gimple_call_p): Make static. Fix.
21070 * gimple.h (is_gimple_operand): Remove.
21071 * gimple.c (is_gimple_operand): Likewise.
21072 (walk_gimple_op): Fix wi->val_only setting for calls.
21073 * tree-cfg.c (verify_gimple_call): Fix argument validation.
21074 * tree-profile.c (tree_gen_ic_func_profiler): Do not create
21075 invalid gimple calls.
21077 2010-07-06 Jan Hubicka <jh@suse.cz>
21079 * lto-cgraph.c (output_cgraph): Add missing declaration.
21081 2010-07-06 Jan Hubicka <jh@suse.cz>
21083 * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
21086 2010-07-06 Alexandre Oliva <aoliva@redhat.com>
21088 * doc/gimple.texi (GIMPLE_DEBUG): Document.
21089 * doc/rtl.texi (Debug Information): New node.
21090 (NOTE_INSN_VAR_LOCATION): Document.
21091 (debug_insn): Likewise.
21092 * doc/generic.texi (DEBUG_EXPR_DECL): Document.
21094 2010-07-07 Jan Hubicka <jh@suse.cz>
21096 With parts by Richard Guenther.
21098 PR middle-end/44813
21099 * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
21100 for functions passed by reference.
21101 * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
21102 in memory when passed by reference.
21103 * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
21105 * ipa-split.c (split_function): Cleanup way return value is passed;
21106 handle SSA DECL_BY_REFERENCE retvals.
21107 * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
21108 DECL_BY_REFERENCE is set.
21109 * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
21110 find_what_p_points_to): Handle RESULT_DECL.
21111 * tree-inline.c (declare_return_variable): Get new entry_block argument;
21112 when passing by reference ensure that RESULT_DECL is gimple_val.
21113 (remap_gimple_op_r): Remap RESULT_DECL ssa name.
21114 (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
21116 2010-07-07 Bernd Schmidt <bernds@codesourcery.com>
21118 PR rtl-optimization/44787
21119 * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
21120 * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
21122 2010-07-06 Jan Hubicka <jh@suse.cz>
21124 * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
21125 (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
21126 with body can prevail.
21127 (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
21128 (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
21129 * cgraph.c (cgraph_get_node_or_alias): New function.
21130 * cgraph.h (cgraph_get_node_or_alias): Declare.
21132 2010-07-06 Kai Tietz <kai.tietz@onevision.com>
21134 * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
21136 (ix86_expand_prologue): Likewise.
21137 (ix86_handle_fndecl_attribute): Likewise.
21138 (ix86_asm_declare_function_name): New function for
21139 ASM_DECLARE_FUNCTION_NAME.
21140 * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
21141 * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
21142 (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
21143 * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
21144 * doc/extend.texi: Adjust documentation about ms_hook_prologue
21147 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
21149 * config/i386/i386.md (immediate_operand): New mode attribute.
21151 (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
21152 pro_epilogue_adjust_stack and pro_epilogue_adjust_stack_rex64
21153 using P mode iterator.
21154 (pro_epilogue_adjust_stack_di_2): Rename from
21155 pro_epilogue_adjust_stack_rex64_2.
21157 * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
21159 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
21161 * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
21162 through gen_mov_insv_1 function pointer.
21163 (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
21164 gen_truncxf<mode>2 through gen_truncxf function pointer.
21165 (remainder<mode>3): Ditto.
21166 (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
21167 (allocate_stack): Call gen_allocate_stack_worker_64 or
21168 gen_allocate_stack_worker_32 through gen_allocate_stack_worker
21170 (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
21173 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
21175 * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
21176 operand constraint instead of <r><i>m.
21178 2010-07-06 Richard Guenther <rguenther@suse.de>
21180 PR middle-end/44828
21181 * convert.c (convert_to_integer): Watch out for overflowing
21184 2010-07-05 Jan Hubicka <jh@suse.cz>
21186 * lto-streamer.c (write_symbol_vec): Rename to ...
21187 (write_symbol) ... this one; write only symbol given and when
21188 present in cache. Sanity check that what is defined is present
21189 in cgraph/varpool with body/finalized decl.
21190 (write_symbols_of_kind): Remove.
21191 (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
21192 pairs to produce symtab.
21193 (produce_asm_for_decls): Update call of produce_symtab; don't do so
21194 when doing WPA streaming.
21196 2010-07-05 Jan Hubicka <jh@suse.cz>
21198 * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
21199 function is still available to fold into.
21201 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
21203 * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
21204 * function.h (struct_function): Change type of local_decls field
21206 (add_local_decl): New function.
21207 (FOR_EACH_LOCAL_DECL): New macro.
21208 * cfgexpand.c (init_vars_expansion): Adjust for new type of
21210 (estimated_stack_frame_size): Likewise.
21211 (expand_used_vars): Likewise.
21212 * cgraphbuild.c (build_cgraph_edges): Likewise.
21213 * function.c (instantiate_decls_1): Likewise.
21214 * ipa-struct-reorg.c (build_data_structure): Likewise.
21215 * ipa-type-escape.c (analyze_function): Likewise.
21216 * lto-streamer-in.c (input_function): Likewise.
21217 * lto-streamer-out.c (output_function): Likewise.
21218 * tree-ssa-live.c (remove_unused_locals): Likewise.
21219 * tree.c (free_lang_data_in_decl): Likewise.
21220 (find_decls_types_in_node): Likewise.
21221 * omp-low.c (remove_exit_barrier): Likewise.
21222 (expand_omp_taskreg): Likewise.
21223 (list2chain): Rename to...
21224 (vec2chain): ...this. Adjust.
21225 * cgraphunit.c (assemble_thunk): Call add_local_decl.
21226 * tree-cfg.c (replace_by_duplicate_decl): Likewise.
21227 * gimple-low.c (record_vars_into): Likewise.
21228 * tree-inline.c (remap_decls): Likewise.
21229 (declare_return_variable): Likewise.
21230 (declare_inline_vars): Likewise.
21231 (copy_forbidden): Adjust for new type of cfun->local_decls.
21232 (add_local_variables): New function.
21233 (expand_call_inline): Call it.
21234 (tree_function_versioning): Likewise.
21236 2010-07-05 H.J. Lu <hongjiu.lu@intel.com>
21238 AVX Programming Reference (June, 2010)
21239 * config/i386/cpuid.h (bit_F16C): New.
21240 (bit_RDRND): Likewise.
21241 (bit_FSGSBASE): Likewise.
21243 * config/i386/i386-builtin-types.def: Add
21244 "DEF_FUNCTION_TYPE (UINT16)", function types for
21245 float16 <-> float conversions and
21246 "DEF_FUNCTION_TYPE (VOID, UINT64)".
21248 * config/i386/i386-c.c (ix86_target_macros_internal): Support
21249 OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
21250 OPTION_MASK_ISA_F16C.
21252 * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
21253 (OPTION_MASK_ISA_RDRND_SET): Likewise.
21254 (OPTION_MASK_ISA_F16C_SET): Likewise.
21255 (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
21256 (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
21257 (OPTION_MASK_ISA_F16C_UNSET): Likewise.
21258 (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
21259 (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
21260 (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
21261 (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
21262 (override_options): Handle them.
21263 (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
21264 (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
21265 IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
21266 IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
21267 IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
21268 IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
21269 IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
21270 IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
21271 IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
21272 (bdesc_args): Likewise.
21273 (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
21274 V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
21275 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
21276 VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
21277 Handle non-memory store.
21279 * config/i386/i386.h (TARGET_FSGSBASE): New.
21280 (TARGET_RDRND): Likewise.
21281 (TARGET_F12C): Likewise.
21283 * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
21284 (UNSPEC_VCVTPS2PH): Likewise.
21285 (UNSPECV_RDFSBASE): Likewise.
21286 (UNSPECV_RDGSBASE): Likewise.
21287 (UNSPECV_WRFSBASE): Likewise.
21288 (UNSPECV_WRGSBASE): Likewise.
21289 (UNSPECV_RDRAND): Likewise.
21290 (rdfsbase<mode>): Likewise.
21291 (rdgsbase<mode>): Likewise.
21292 (wrfsbase<mode>): Likewise.
21293 (wrgsbase<mode>): Likewise.
21294 (rdrand<mode>): Likewise.
21296 * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
21298 * config/i386/immintrin.h (_rdrand_u16): New.
21299 (_rdrand_u32): Likewise.
21300 (_readfsbase_u32): Likewise.
21301 (_readfsbase_u64): Likewise.
21302 (_readgsbase_u32): Likewise.
21303 (_readgsbase_u64): Likewise.
21304 (_writefsbase_u32): Likewise.
21305 (_writefsbase_u64): Likewise.
21306 (_writegsbase_u32): Likewise.
21307 (_writegsbase_u64): Likewise.
21308 (_rdrand_u64): Likewise.
21309 (_cvtsh_ss): Likewise.
21310 (_mm_cvtph_ps): Likewise.
21311 (_mm256_cvtph_ps): Likewise.
21312 (_cvtss_sh): Likewise.
21313 (_mm_cvtps_ph): Likewise.
21314 (_mm256_cvtps_ph): Likewise.
21316 * config/i386/sse.md (vcvtph2ps): New.
21317 (*vcvtph2ps_load): Likewise.
21318 (vcvtph2ps256): Likewise.
21319 (vcvtps2ph): Likewise.
21320 (*vcvtps2ph): Likewise.
21321 (*vcvtps2ph_store): Likewise.
21322 (vcvtps2ph256): Likewise.
21324 * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
21326 * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
21328 2010-07-05 Joern Rennecke <joern.rennecke@embecosm.com>
21331 * genenums.c (main): Output include of insn-constants.h
21332 * Makefile.in (insn-enums.o): Depend on insn-constants.h.
21334 2010-07-05 Uros Bizjak <ubizjak@gmail.com>
21336 * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
21337 (override_options): Initialize it.
21338 (ix86_expand_prologue): Use it.
21340 2010-07-05 Jakub Jelinek <jakub@redhat.com>
21342 * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
21344 2010-07-05 Anatoly Sokolov <aesok@post.ru>
21346 * double-int.h (fit_double_type): Remove declaration.
21347 * double-int.c (fit_double_type): Remove function.
21348 * tree.h (int_fits_type_p): Adjust prototype.
21349 * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
21350 instead of fit_double_type.
21351 (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
21352 instead of fit_double_type and build_int_cst_wide.
21353 * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
21354 instead of fit_double_type and build_int_cst_wide.
21355 (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
21356 of fit_double_type.
21358 2010-07-05 Jan Hubicka <jh@suse.cz>
21360 * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
21361 in_other_partition.
21362 * lto-cgraph.c (referenced_from_other_partition_p,
21363 reachable_from_other_partition_p): Use in_other_partition flags.
21364 (output_node, output_varpool_node): COMDAT nodes always have private
21365 copies and thus are never used from other partition.
21367 2010-07-05 Anatoly Sokolov <aesok@post.ru>
21369 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
21370 * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
21371 * config/ia64/ia64.c Include reload.h.
21372 (ia64_memory_move_cost): New function.
21373 (TARGET_MEMORY_MOVE_COST): Define.
21374 (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
21377 2010-07-05 Sandra Loosemore <sandra@codesourcery.com>
21379 PR middle-end/42505
21380 * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
21381 comments about cost model.
21382 (try_add_cand_for): Add second strategy for choosing initial set
21383 based on original IVs, controlled by ORIGINALP argument.
21384 (get_initial_solution): Add ORIGINALP argument.
21385 (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
21386 (find_optimal_iv_set): Try two different strategies for choosing
21387 the IV set, and return the one with lower cost.
21389 2010-07-05 Richard Guenther <rguenther@suse.de>
21391 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
21393 2010-07-05 Richard Guenther <rguenther@suse.de>
21395 * tree.c (reference_alias_ptr_type): New function.
21396 * tree.h (reference_alias_ptr_type): Declare.
21397 * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
21398 allow non-TARGET_MEM_REF new refs.
21399 (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
21400 * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
21401 Build a MEM_REF instead of a TARGET_MEM_REF if possible.
21402 (create_mem_ref): Get alias pointer type. Adjust calls to
21403 create_mem_ref_raw.
21404 (maybe_fold_tmr): Likewise.
21405 * tree-flow.h (create_mem_ref): Adjust prototype.
21407 2010-07-05 Jakub Jelinek <jakub@redhat.com>
21410 * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
21411 *from_p is VAR_DECL.
21413 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
21415 * tree.h (build_call_list): Remove.
21416 * tree.c (build_call_list): Remove.
21418 2010-07-05 Richard Guenther <rguenther@suse.de>
21420 * double-int.h (double_int_sub): Declare.
21421 * double-int.c (double_int_sub): New function.
21422 * dwarf2out.c (field_byte_offset): Use it.
21423 * fixed-value.c (do_fixed_add): Likewise.
21424 (do_fixed_multiply): Likewise.
21425 (do_fixed_divide): Likewise.
21426 * tree-predcom.c (add_ref_to_chain): Likewise.
21427 (determine_roots_comp): Likewise.
21428 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
21430 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
21432 * vec.h (VEC_splice, VEC_safe_splice): New macros. Add function
21435 2010-07-05 Bernd Schmidt <bernds@codesourcery.com>
21437 * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
21438 * arm-modes.def (CC_NOTB): Don't define.
21439 * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
21440 (adddi_sesidi_di, adddi_zesidi_di): Likewise.
21441 (LTUGEU): New code_iterator.
21442 (cnb, optab): New corresponding code_attrs.
21443 (addsi3_carryin_<optab>): Renamed from addsi3_carryin. Change pattern
21444 to canonical form. Operands 1 and 2 are commutative. Parametrize
21446 (addsi3_carryin_shift_<optab>): Likewise.
21447 (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
21448 Operands 1 and 2 are commutative. Parametrize using LTUGEU.
21449 (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
21450 (subsi3_compare): Renamed from subsi3_compare0_c.
21451 Change CC_NOTB to CC.
21452 (arm_subsi3_insn): Allow constants for operand 0.
21453 (compare_scc peephole for eq case): New.
21454 (compare_scc splitters): Change CC_NOTB to CC.
21456 2010-07-05 Richard Guenther <rguenther@suse.de>
21458 * tree-ssa-loop-im.c (for_each_index): Do not handle
21459 ALIGN_INDIRECT_REF.
21460 (gen_lsm_tmp_name): Likewise.
21461 * tree-dump.c (dequeue_and_dump): Likewise.
21462 * tree-pretty-print.c (dump_generic_node): Likewise.
21463 (op_code_prio): Likewise.
21464 (op_symbol_code): Likewise.
21465 * tree.c (staticp): Likewise.
21466 (build1_stat): Likewise.
21467 * tree.h (INDIRECT_REF_P): Likewise.
21468 * fold-const.c (maybe_lvalue_p): Likewise.
21469 (operand_equal_p): Likewise.
21470 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
21471 (ao_ref_init_from_vn_reference): Likewise.
21472 * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
21473 (find_interesting_uses_address): Likewise.
21474 * dwarf2out.c (loc_list_from_tree): Likewise.
21475 * gimplify.c (gimplify_expr): Likewise.
21476 * tree-eh.c (tree_could_trap_p): Likewise.
21477 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
21478 * cfgexpand.c (expand_debug_expr): Likewise.
21479 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
21480 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
21481 * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
21482 * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
21483 * tree-ssa-operands.c (get_expr_operands): Likewise.
21484 * expr.c (safe_from_p): Likewise.
21485 (expand_expr_real_1): Likewise. TER BIT_AND_EXPRs into MEM_REFs.
21486 * tree-vect-data-refs.c (vect_setup_realignment): Build
21487 BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
21488 * tree-vect-stmts.c (vectorizable_load): Likewise.
21489 * tree.def (ALIGN_INDIRECT_REF): Remove.
21491 2010-07-05 Richard Guenther <rguenther@suse.de>
21493 PR tree-optimization/44784
21494 * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
21495 for inserted stmts.
21496 (find_or_generate_expression): Fix SCCVN insertion check.
21498 2010-07-05 Nathan Sidwell <nathan@codesourcery.com>
21500 * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
21501 * config/rs6000/e500crtsav64gprctr.asm: Likewise.
21502 * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
21505 2010-07-05 Ira Rosen <irar@il.ibm.com>
21507 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
21508 statements that are not vectorized.
21509 * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
21512 2010-07-05 Mikael Pettersson <mikpe@it.uu.se>
21515 * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
21517 2010-07-05 Richard Guenther <rguenther@suse.de>
21519 * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
21520 RESULT_DECLs properly.
21522 2010-07-04 H.J. Lu <hongjiu.lu@intel.com>
21524 PR rtl-optimization/44695
21525 * config/i386/i386.md (extract_code): Removed.
21526 (<u>divmodqi4): Likewise.
21528 (udivmodqi4): Likewise.
21529 (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
21530 (udivmodhiqi3): Likewise.
21532 2010-07-04 Jan Hubicka <jh@suse.cz>
21534 * lto-cgraph.c (input_edge): Do not care about resolution decisions.
21536 2010-07-04 Jan Hubicka <jh@suse.cz>
21538 * cgraphunit.c (init_cgraph): Only initialize dump file if it
21539 is not already initialized.
21541 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
21543 * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
21544 (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
21545 (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
21546 (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
21547 (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
21548 (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
21549 (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
21550 (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
21551 (sync_new_nand_optab): Redefine as macros.
21552 (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
21554 (direct_optab_index): New enum.
21555 (direct_optab_d): New structure.
21556 (direct_optab): New typedef.
21557 (direct_optab_table): Declare.
21558 (direct_optab_handler, set_direct_optab_handler): New functions.
21559 (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
21560 (sync_lock_release_optab): New macros.
21561 * optabs.c (direct_optab_table): New variable.
21562 (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
21563 (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
21564 cmpstr_optab and cmpstrn_optab.
21565 (emit_conditional_move): Likewise for movcc_optab.
21566 (can_conditionally_move_p): Likewise for movcc_gen_code.
21567 (init_insn_codes): Clear direct_optab_table.
21568 (init_optabs): Don't initialize the new "direct optabs" here.
21569 (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
21571 (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
21572 (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
21573 (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
21574 (expand_sync_operation): Likewise other sync_*_optabs.
21575 (expand_sync_fetch_operation): Likewise. Rename sync_compare_and_swap
21576 to sync_compare_and_swap_optab.
21577 (expand_sync_lock_test_and_set): Use direct_optab_handler for
21578 sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
21579 to the names of both.
21580 * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
21581 cmpstr_optab and cmpstrn_optab.
21582 (expand_builtin_lock_release): Likewise sync_lock_release.
21583 * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
21584 (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
21585 (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
21586 (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
21587 (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
21588 (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
21589 (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
21590 (sync_lock_test_and_set, sync_lock_release): Delete.
21591 (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
21592 (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
21593 * genopinit.c (optabs): Use set_direct_optab_handler for the new
21595 * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
21596 the "optab" local variable. Use direct_optab_handler for optab and
21597 sync_compare_and_swap_optab.
21598 * reload1.c (reload_in_optab, reload_out_optab): Delete.
21599 * targhooks.c (default_secondary_reload): Use direct_optab_handler for
21600 reload_in_optab and reload_out_optab.
21601 * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
21602 * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
21603 * config/pa/pa.c (pa_secondary_reload): Likewise.
21604 * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
21605 for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
21606 (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
21607 (VMSupportsCS8_builtin): Likewise.
21609 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
21611 * optabs.h (optab_handlers): Change type of insn_code to int.
21612 (optab_handler, set_optab_handler, convert_optab_handler)
21613 (set_convert_optab_handler): Treat the insn_code field as "insn_code -
21615 * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
21616 (init_insn_codes): Zero both the above arrays.
21617 (init_optabs): Never call init_insn_codes first time around.
21619 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
21621 * optabs.h (optab_handler, convert_optab_handler): Turn into
21622 inline functions that return an insn code.
21623 (set_optab_handler, set_convert_optab_handler): New functions.
21624 * builtins.c: Replace optab_handler(X)->insn_code with
21625 optab_handler or set_optab_handler thoughout. Likewise
21626 convert_optab_handler(X)->insn_code with convert_optab_handler
21627 and set_convert_optab_handler.
21628 * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
21629 reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
21630 tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
21631 tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
21632 tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
21633 config/spu/spu.c: Likewise.
21635 2010-07-04 Kaz Kojima <kkojima@gcc.gnu.org>
21638 * config.gcc (sh*-*-*): Use regular expressions instead of
21639 the 'i' modifier for sed substitutions.
21641 2010-07-04 Jeremie Salvucci <jeremie.salvucci@free.fr>
21643 * gimple.c (gimple_body): Comments added.
21645 2010-07-04 Richard Guenther <rguenther@suse.de>
21647 PR middle-end/44809
21648 * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
21649 of an INDIRECT_REF.
21651 2010-07-04 Richard Guenther <rguenther@suse.de>
21653 PR tree-optimization/44479
21654 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
21655 extra SSA name copy statements which preserves points-to
21657 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
21658 Copy points-to information for all pointers. Properly handle
21660 (vect_create_data_ref_ptr): Likewise. Avoid extra SSA name
21662 * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
21665 2010-07-04 Richard Guenther <rguenther@suse.de>
21667 PR middle-end/44785
21668 * tree-inline.c (initialize_inlined_parameters): Do not
21669 re-use pointer-map slot over remap_type call.
21671 2010-07-04 Richard Guenther <rguenther@suse.de>
21673 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
21675 2010-07-04 Richard Guenther <rguenther@suse.de>
21677 PR tree-optimization/44656
21678 * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
21679 again after value-replacing in the defintions lhs.
21681 2010-07-04 Ira Rosen <irar@il.ibm.com>
21682 Revital Eres <eres@il.ibm.com>
21684 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
21685 Document new arguments.
21686 * doc/tm.texi: Regenerate.
21687 * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
21688 Handle unaligned store.
21689 * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
21690 * target.def (builtin_vectorization_cost): Add new arguments.
21691 * target.h (enum vect_cost_for_stmt): Add unaligned_store.
21692 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
21693 of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
21694 (vect_vfa_segment_size): Fix indentation.
21695 * tree-vectorizer.h (struct _vect_peel_info): New.
21696 (struct _vect_peel_extended_info): New.
21697 (struct _loop_vec_info): Add new field for peeling hash table and a
21698 macro for its access.
21699 (VECT_MAX_COST): Define.
21700 (vect_get_load_cost): Declare.
21701 (vect_get_store_cost, vect_get_known_peeling_cost,
21702 vect_get_single_scalar_iteraion_cost): Likewise.
21703 (vect_supportable_dr_alignment): Add new argument.
21704 * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
21706 (destroy_loop_vec_info): Free peeling hash table.
21707 (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
21708 (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
21709 vect_analyze_slp. Fix indentation.
21710 (vect_get_single_scalar_iteraion_cost): New function.
21711 (vect_get_known_peeling_cost): Likewise.
21712 (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
21713 Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
21714 statement. Move outside cost calculation inside unknown peeling case.
21715 Call vect_get_known_peeling_cost for known amount of peeling.
21716 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
21717 reference to the print message of forced alignment.
21718 (vect_verify_datarefs_alignment): Update call to
21719 vect_supportable_dr_alignment.
21720 (vect_get_data_access_cost): New function.
21721 (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
21722 vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
21723 vect_peeling_hash_choose_best_peeling): Likewise.
21724 (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
21725 to store all the accesses in the loop and find best possible access to
21726 align using peeling for known alignment case. For unknown alignment
21727 check if stores are preferred or if peeling is worthy.
21728 (vect_find_same_alignment_drs): Analyze pairs of loads too.
21729 (vect_supportable_dr_alignment): Add new argument and check aligned
21730 accesses according to it.
21731 * tree-vect-stmts.c (vect_get_stmt_cost): New function.
21732 (cost_for_stmt): Call vect_get_stmt_cost.
21733 (vect_model_simple_cost): Likewise.
21734 (vect_model_store_cost): Call vect_get_stmt_cost. Call
21735 vect_get_store_cost to calculate the cost of the statement.
21736 (vect_get_store_cost): New function.
21737 (vect_model_load_cost): Call vect_get_stmt_cost. Call
21738 vect_get_load_cost to calculate the cost of the statement.
21739 (vect_get_load_cost): New function.
21740 (vectorizable_store): Update call to vect_supportable_dr_alignment.
21741 (vectorizable_load): Likewise.
21742 * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
21743 * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
21744 arguments. Handle unaligned store.
21745 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
21746 (rs6000_builtin_support_vector_misalignment): Return true for word and
21747 double word alignments for VSX.
21748 * tree-vect-slp.c (vect_build_slp_tree): Update calls to
21749 vect_supportable_dr_alignment and builtin_vectorization_cost.
21751 2010-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21754 * config/pa/predicates.md (prefetch_cc_operand): Remove.
21755 (prefetch_nocc_operand): Likewise.
21756 * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
21757 (prefetch_20): New insn.
21758 (prefetch_cc): Remove.
21759 (prefetch_nocc): Likewise.
21761 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
21763 * expr.c (vector_mode_valid_p): Move to c-common.c.
21764 * expr.h (vector_mode_valid_p): Do not declare here.
21765 * system.h: Poison GCC_EXPR_H in front-ends.
21766 * Makefile.in: Update dependencies.
21768 2010-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21771 * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
21773 2010-07-03 Jan Hubicka <jh@suse.cz>
21775 * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
21776 TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
21777 * cfgexpand.c (gimple_expand_cfg): Use new timevars.
21778 * var-tracking.c (vt_find_locations, variable_tracking_main_1):
21781 * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
21783 * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
21784 (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
21785 TV_IPA_LTO_DECL_OUT): New.
21786 * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
21788 2010-07-03 Jan Hubicka <jh@suse.cz>
21790 * ipa-inline.c (update_edge_key): Break out from ...
21791 update_callers_keys): ... here;
21792 (update_callee_keys): Update only the edges from caller to callee.
21793 (update_all_calle_keys): Do what update_calle_keys did.
21794 (decide_inlining_of_small_functions): Avoid recomputing of all
21795 callees when badness increase.
21797 2010-07-03 Jie Zhang <jie@codesourcery.com>
21799 * config/arm/arm.c (arm_attr_length_move_neon): New.
21800 * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
21801 * config/arm/neon.md (define_mode_attr V_slen): Remove.
21802 (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
21803 to compute length attribute.
21805 2010-07-03 Jie Zhang <jie@codesourcery.com>
21807 * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
21808 as predicate for operand 1 and remove its constraint.
21809 * config/arm/predicates.md (vfp_register_operand): New.
21810 * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
21811 (*push_fp_multi): Likewise.
21813 2010-07-03 Eric Botcazou <ebotcazou@adacore.com>
21815 * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
21817 2010-07-03 Jan Hubicka <jh@suse.cz>
21819 * config/i386/i386.c (override_options): Revert accidental commit.
21821 2010-07-02 Le-Chun Wu <lcwu@google.com>
21824 * doc/invoke.texi: Update documentation of -Wshadow.
21826 2010-07-02 Daniel Jacobowitz <dan@codesourcery.com>
21827 Julian Brown <julian@codesourcery.com>
21828 Sandra Loosemore <sandra@codesourcery.com>
21830 * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
21831 comparisons. Adjust to take both operands.
21832 (arm_select_cc_mode): Handle DImode comparisons.
21833 (arm_gen_compare_reg): Generate a scratch register for DImode
21834 comparisons which require one. Use xor for Thumb equality checks.
21835 (arm_const_double_by_immediates): New.
21836 (arm_print_operand): Allow 'Q' and 'R' for constants.
21837 (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
21838 * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
21839 arm_canonicalize_comparison.
21840 * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
21841 * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
21843 (arm_const_double_by_immediates): Declare.
21844 * config/arm/constraints.md (Di): New constraint.
21845 * config/arm/predicates.md (arm_immediate_di_operand)
21846 (arm_di_operand, cmpdi_operand): New.
21847 * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
21848 (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
21849 (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
21850 (cstoredi4): Handle non-Cirrus also.
21852 2010-07-02 Julian Brown <julian@codesourcery.com>
21853 Sandra Loosemore <sandra@codesourcery.com>
21856 * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
21857 (smax<mode>3): Disable for NEON float modes when
21858 flag_unsafe_math_optimizations is false.
21859 * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
21861 (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
21862 (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
21863 for NEON float modes when flag_unsafe_math_optimizations is false.
21864 (quad_halves_<code>v4sf): Only enable if
21865 flag_unsafe_math_optimizations is true.
21866 * doc/invoke.texi (ARM Options): Add note about floating point
21867 vectorization requiring -funsafe-math-optimizations.
21869 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
21870 Julian Brown <julian@codesourcery.com>
21872 * config/arm/neon.md (UNSPEC_VABA): Delete.
21873 (UNSPEC_VABAL): Delete.
21874 (UNSPEC_VABS): Delete.
21875 (UNSPEC_VMUL_N): Delete.
21876 (adddi3_neon): New.
21877 (subdi3_neon): New.
21878 (mul<mode>3add<mode>_neon): Make the pattern named.
21879 (mul<mode>3neg<mode>add<mode>_neon): Likewise.
21880 (neon_vadd<mode>): Replace with define_expand, and move the remaining
21882 (neon_vadd<mode>_unspec): ...to this.
21883 (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
21884 (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
21885 (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
21886 (neon_vaba<mode>): Rewrite in terms of vabd.
21887 (neon_vabal<mode>): Rewrite in terms of vabdl.
21888 (neon_vabs<mode>): Rewrite without unspec.
21889 * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
21890 (*arm_subdi3): Likewise.
21891 * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
21892 No_op attribute to disable assembly output checks.
21893 * config/arm/arm_neon.h: Regenerated.
21894 * doc/arm-neon-intrinsics.texi: Regenerated.
21896 2010-07-02 Jan Hubicka <jh@suse.cz>
21898 * ipa-split.c (split_function): For aggregate values, set the return
21899 slot optimization bit. When passing DECL_BY_REFERENCE, produce
21900 *<retval> = fncall.part ().
21901 (execute_split_functions): Do not care about DECL_BY_REFERENCE.
21903 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
21905 * config/arm/neon.md (UNSPEC_VAND): Delete.
21906 (UNSPEC_VBIC): Delete.
21907 (UNSPEC_VCLZ): Delete.
21908 (UNSPEC_VCNT): Delete.
21909 (UNSPEC_VEOR): Delete.
21910 (UNSPEC_VORN): Delete.
21911 (UNSPEC_VORR): Delete.
21912 (iordi3_neon): Rewrite RTL without unspec. Add alternatives to handle
21913 core registers too.
21914 (anddi3_neon): Likewise.
21915 (orndi3_neon): Likewise.
21916 (bicdi3_neon): Likewise.
21917 (xordi3_neon): Likewise.
21918 (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
21919 rid of unspec and handle unused operand.
21920 (neon_vcnt<mode>): Similarly, with popcount<mode>2.
21921 * config/arm/predicates.md (imm_for_neon_logic_operand):
21922 Require TARGET_NEON.
21923 (imm_for_neon_inv_logic_operand): Likewise.
21924 * config/arm/arm.md (define_split for logical_binary_operator):
21925 Disable for NEON registers.
21926 (anddi3): Add new define_expand, and rename the insn. Disable
21927 this insn for NEON, where anddi3_neon now applies.
21928 (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
21929 (iordi3): As for anddi3.
21930 (xordi3): Likewise.
21931 * config/arm/neon.ml (Vand): Split DImode variants and mark them
21932 as No_op to disable testing for exact instruction match.
21937 * config/arm/arm_neon.h: Regenerated.
21938 * doc/arm-neon-intrinsics.texi: Regenerated.
21940 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
21942 * expr.h (emit_stack_probe): Declare.
21943 * explow.c (emit_stack_probe): Make global.
21944 (anti_adjust_stack_and_probe): Fix comments.
21945 * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
21946 * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
21947 * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
21948 * config/sparc/sparc.c: Include except.h.
21949 (sparc_emit_probe_stack_range): New function.
21950 (output_probe_stack_range): Likewise.
21951 (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
21952 built-in stack checking is enabled.
21953 * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
21954 * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
21955 (probe_stack_range): New insn.
21957 2010-07-02 Richard Guenther <rguenther@suse.de>
21960 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
21961 for argument alignment.
21963 2010-07-02 Jan Hubicka <jh@suse.cz>
21965 * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
21966 walk backwards from entry_bb to check only those basic block of header
21967 that might lead to execution of split part.
21968 (consider_split) ... here.
21969 (find_return_bb): Allow assignment in return BB.
21970 (find_retval): New.
21971 (split_function): Fix name of cloned function; take care of updating
21972 return value in return_bb containing move.
21974 2010-07-02 Andreas Schwab <schwab@linux-m68k.org>
21977 * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
21978 used variable insn.
21980 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
21982 * implicit-zee.c (combine_reaching_defs): Fix long lines.
21983 (is_set_with_extension_DI): Delete.
21984 (struct zero_extend_info): New structure.
21985 (add_removable_zero_extend): New function.
21986 (find_removable_zero_extends): Use note_stores to find SETs.
21987 (find_and_remove_ze): Fix long line, remove superfluous parentheses.
21989 2010-07-02 Changpeng Fang <changpeng.fang@amd.com>
21991 * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
21992 is_miss_rate_acceptable. Pull total_positions computation
21993 out of the loops. Early return if miss_positions exceeds
21994 the acceptable threshold.
21995 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
21996 is_miss_rate_acceptable after renaming of compute_miss_rate.
21998 2010-07-02 Changpeng Fang <changpeng.fang@amd.com>
22000 PR middle-end/44576
22001 * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
22002 of 1000) for miss rate if the address diference is greater than or
22003 equal to the cache line size (the two reference will never hit the
22006 2010-07-02 Bernd Schmidt <bernds@codesourcery.com>
22009 * config/arm/arm-modes.def (CC_NOTB): New mode.
22010 * config/arm/arm.c (get_arm_condition_code): Handle it.
22011 * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
22012 * config/arm/arm.md (subsi3_compare0_c): New pattern.
22013 (compare_scc): Now a define_and_split. Add a number of extra
22014 splitters before it.
22017 * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
22019 (arm_rtx_costs_1): Likewise.
22020 (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
22021 * config/arm/arm.md (is_arch6): New attribute.
22022 (zero_extendhisi2, zero_extendqisi2, extendhisi2,
22023 extendqisi2): Tighten the code somewhat, avoiding invalid
22024 RTL to occur in the expander patterns.
22025 (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
22026 (thumb1_zero_extendhisi2_v6): Delete.
22027 (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
22028 (thumb1_extendhisi2_v6): Delete.
22029 (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
22030 (thumb1_extendqisi2_v6): Delete.
22031 (zero_extendhisi2 for register input splitter): New.
22032 (zero_extendqisi2 for register input splitter): New.
22033 (thumb1_extendhisi2 for register input splitter): New.
22034 (extendhisi2 for register input splitter): New.
22035 (extendqisi2 for register input splitter): New.
22036 (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
22037 (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
22038 and add support for a register alternative requiring a split.
22039 (thumb1_zero_extendqisi2): Likewise.
22040 (arm_zero_extendqisi2): Likewise.
22041 (arm_extendhisi2): Likewise.
22042 (arm_extendqisi2): Likewise.
22044 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
22046 * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
22047 instead of an unspec.
22048 (neon_expand_vector_init): Likewise.
22049 * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
22050 (UNSPEC_VDUP_LANE): Delete.
22051 (UNSPEC VDUP_N): Delete.
22052 (UNSPEC_VGET_HIGH): Delete.
22053 (UNSPEC_VGET_LANE): Delete.
22054 (UNSPEC_VGET_LOW): Delete.
22055 (UNSPEC_VMVN): Delete.
22056 (UNSPEC_VSET_LANE): Delete.
22057 (V_double_vector_mode): New.
22058 (vec_set<mode>_internal): Make code emitted match that for the
22059 corresponding intrinsics.
22060 (vec_setv2di_internal): Likewise.
22061 (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
22062 (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
22063 (neon_vset_lane<mode>): Combine double and quad patterns and
22064 expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
22065 (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
22066 (neon_vdup_n<mode>): Rewrite RTL without unspec.
22067 (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
22068 (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
22069 with neon_vdup_lanev2di, adjusting the pattern from the latter
22070 to be predicable for consistency.
22071 (neon_vdup_lane<mode>_internal): New.
22072 (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
22073 to avoid using an unspec.
22074 (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
22075 (neon_vdup_lanev2di): Turn into a define_expand.
22076 (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
22077 (neon_vget_high<mode>): Replace with....
22078 (neon_vget_highv16qi): New pattern using canonical RTL.
22079 (neon_vget_highv8hi): Likewise.
22080 (neon_vget_highv4si): Likewise.
22081 (neon_vget_highv4sf): Likewise.
22082 (neon_vget_highv2di): Likewise.
22083 (neon_vget_low<mode>): Replace with....
22084 (neon_vget_lowv16qi): New pattern using canonical RTL.
22085 (neon_vget_lowv8hi): Likewise.
22086 (neon_vget_lowv4si): Likewise.
22087 (neon_vget_lowv4sf): Likewise.
22088 (neon_vget_lowv2di): Likewise.
22090 * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
22091 test for this emitting vmov.
22092 (Vset_lane): Likewise.
22093 (Vdup_n): Likewise.
22094 (Vmov_n): Likewise.
22096 * doc/arm-neon-intrinsics.texi: Regenerated.
22098 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
22100 * config/arm/neon.md (vec_extractv2di): Correct error in register
22101 numbering to reconcile with neon_vget_lanev2di.
22103 2010-07-02 Richard Guenther <rguenther@suse.de>
22105 * tree-ssa-structalias.c (pt_solution_set_var): New function.
22106 * tree-ssa-alias.h (pt_solution_set_var): Declare.
22107 * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
22108 points-to information.
22110 2010-07-02 Christian Borntraeger <borntraeger@de.ibm.com>
22112 * config/s390/s390.c (override_options): Adopt prefetching
22113 at -O3 to handle flag_prefetch_loop_arrays as a tristate.
22115 2010-07-02 Jan Hubicka <jh@suse.cz>
22117 * df-problems.c (df_kill_notes): Do not collect dead notes.
22118 (df_set_note): Just call add_reg_note.
22119 (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
22120 df_create_unused_note): Do not deal with lists of old notes.
22121 (df_note_bb_compute): Likewise.
22123 2010-07-02 Richard Guenther <rguenther@suse.de>
22125 * tree-ssa-structalias.c (find_func_aliases): Handle
22126 pointer alignment via BIT_AND_EXPR.
22127 * tree-vrp.c (extract_range_from_binary_expr): Likewise.
22129 2010-07-02 Richard Guenther <rguenther@suse.de>
22131 * tree-data-ref.c (initialize_data_dependence_relation): Handle
22132 mismatching number of dimensions properly.
22134 2010-07-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22137 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
22138 (lo_sum (high ...) ...) patterns generated by earlier passes.
22140 2010-07-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22142 * doc/install.texi (Prerequisites): Document Perl requirement on
22144 (Specific, *-*-solaris2*): Document GNU c++filt requirement.
22146 2010-07-02 Richard Guenther <rguenther@suse.de>
22148 PR middle-end/44777
22149 * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
22151 2010-07-02 Jan Hubicka <jh@suse.cz>
22153 PR middle-end/44706
22154 * predict.c (predict_paths_for_bb): Handle case when control dependence
22155 BB has only abnormal edges.
22157 2010-07-02 Richard Guenther <rguenther@suse.de>
22159 PR tree-optimization/44748
22160 * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
22161 the embedded conversion in MEM_REFs.
22163 2010-07-01 López-Ibáñez <manu@gcc.gnu.org>
22165 * reload.c: Include toplev.h.
22166 * recog.c: Likewise.
22167 * Makefile.in: Adjust dependencies.
22169 2010-07-01 Jakub Jelinek <jakub@redhat.com>
22172 * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
22173 or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
22175 2010-07-01 Richard Guenther <rguenther@suse.de>
22177 * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
22180 2010-07-01 Joern Rennecke <joern.rennecke@embecosm.com>
22183 * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
22184 Fix argument types.
22186 2010-07-01 Bernd Schmidt <bernds@codesourcery.com>
22189 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
22190 Make sure operand 0 dies.
22192 2010-07-01 Richard Guenther <rguenther@suse.de>
22194 PR middle-end/42834
22195 PR middle-end/44468
22196 * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
22197 * doc/generic.texi (References to storage): Document MEM_REF.
22198 * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
22199 (print_call_name): Likewise.
22200 * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
22201 (build_simple_mem_ref_loc): New function.
22202 (mem_ref_offset): Likewise.
22203 * tree.h (build_simple_mem_ref_loc): Declare.
22204 (build_simple_mem_ref): Define.
22205 (mem_ref_offset): Declare.
22206 * fold-const.c: Include tree-flow.h.
22207 (operand_equal_p): Handle MEM_REF.
22208 (build_fold_addr_expr_with_type_loc): Likewise.
22209 (fold_comparison): Likewise.
22210 (fold_unary_loc): Fold
22211 VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
22212 (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
22213 fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
22214 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
22215 (ptr_deref_may_alias_ref_p_1): Likewise.
22216 (ao_ref_base_alias_set): Properly differentiate base object for
22218 (ao_ref_init_from_ptr_and_size): Use MEM_REF.
22219 (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
22220 (indirect_refs_may_alias_p): Likewise.
22221 (refs_may_alias_p_1): Likewise. Remove pointer SSA name def
22223 (ref_maybe_used_by_call_p_1): Handle MEM_REF.
22224 (call_may_clobber_ref_p_1): Likewise.
22225 * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
22226 * expr.c (expand_assignment): Handle MEM_REF.
22227 (store_expr): Handle MEM_REFs from STRING_CSTs.
22228 (store_field): If expanding a MEM_REF of a non-addressable
22229 decl use bitfield operations.
22230 (get_inner_reference): Handle MEM_REF.
22231 (expand_expr_addr_expr_1): Likewise.
22232 (expand_expr_real_1): Likewise.
22233 * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
22234 * alias.c (ao_ref_from_mem): Handle MEM_REF.
22235 (get_alias_set): Likewise. Properly handle VIEW_CONVERT_EXPRs.
22236 * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
22237 (dr_analyze_indices): Likewise.
22238 (dr_analyze_alias): Likewise.
22239 (object_address_invariant_in_loop_p): Likewise.
22240 * gimplify.c (mark_addressable): Handle MEM_REF.
22241 (gimplify_cond_expr): Build MEM_REFs.
22242 (gimplify_modify_expr_to_memcpy): Likewise.
22243 (gimplify_init_ctor_preeval_1): Handle MEM_REF.
22244 (gimple_fold_indirect_ref): Adjust.
22245 (gimplify_expr): Handle MEM_REF. Gimplify INDIRECT_REF to MEM_REF.
22246 * tree.def (MEM_REF): New tree code.
22247 * tree-dfa.c: Include toplev.h.
22248 (get_ref_base_and_extent): Handle MEM_REF.
22249 (get_addr_base_and_unit_offset): New function.
22250 * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
22251 * gimple-fold.c (may_propagate_address_into_dereference): Handle
22253 (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
22254 accesses if the array has just one dimension. Remove always true
22255 parameter. Do not require type compatibility here.
22256 (maybe_fold_offset_to_component_ref): Remove.
22257 (maybe_fold_stmt_indirect): Remove.
22258 (maybe_fold_reference): Remove INDIRECT_REF handling.
22259 Fold back to non-MEM_REF.
22260 (maybe_fold_offset_to_address): Simplify. Deal with type
22262 (maybe_fold_reference): Likewise.
22263 (maybe_fold_stmt_addition): Likewise. Also handle
22264 &ARRAY + I in addition to &ARRAY[0] + I.
22265 (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
22266 (gimple_get_relevant_ref_binfo): Handle MEM_REF.
22267 * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
22268 * tree-ssa.c (useless_type_conversion_p): Make most pointer
22269 conversions useless.
22270 (warn_uninitialized_var): Handle MEM_REF.
22271 (maybe_rewrite_mem_ref_base): New function.
22272 (execute_update_addresses_taken): Implement re-writing of MEM_REFs
22274 * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
22275 INDIRECT_REF handling.
22276 (copy_tree_body_r): Handle MEM_REF.
22277 * gimple.c (is_gimple_addressable): Adjust.
22278 (is_gimple_address): Likewise.
22279 (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
22280 invariant base are invariant.
22281 (is_gimple_min_lval): Adjust.
22282 (is_gimple_mem_ref_addr): New function.
22283 (get_base_address): Handle MEM_REF.
22284 (count_ptr_derefs): Likewise.
22285 (get_base_loadstore): Likewise.
22286 * gimple.h (is_gimple_mem_ref_addr): Declare.
22287 (gimple_call_fndecl): Handle invariant MEM_REF addresses.
22288 * tree-cfg.c (verify_address): New function, split out from ...
22289 (verify_expr): ... here. Use for verifying ADDR_EXPRs and
22290 the address operand of MEM_REFs. Verify MEM_REFs. Reject
22292 (verify_types_in_gimple_min_lval): Handle MEM_REF. Disallow
22293 INDIRECT_REF. Allow conversions.
22294 (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
22295 a register does not change its size.
22296 (verify_types_in_gimple_reference): Verify MEM_REF.
22297 (verify_gimple_assign_single): Disallow INDIRECT_REF.
22299 * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
22301 (mark_address_taken): Handle MEM_REF.
22302 (get_indirect_ref_operands): Pass through opf_not_non_addressable.
22303 (get_asm_expr_operands): Pass opf_not_non_addressable.
22304 (get_expr_operands): Handle opf_[not_]non_addressable.
22305 Handle MEM_REF. Remove INDIRECT_REF handling.
22306 * tree-vrp.c (check_array_ref): Handle MEM_REF.
22307 (search_for_addr_array): Likewise.
22308 (check_array_bounds): Likewise.
22309 (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
22310 * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
22311 (ref_always_accessed_p): Likewise.
22312 (gen_lsm_tmp_name): Likewise. Handle ADDR_EXPR.
22313 * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
22315 * cgraphbuild.c (mark_load): Properly check for NULL result
22316 from get_base_address.
22317 (mark_store): Likewise.
22318 * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
22319 * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
22320 handling for MEM_REF.
22321 * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
22322 &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
22323 * builtins.c (stabilize_va_list_loc): Use the function ABI
22324 valist type if we couldn't canonicalize the argument type.
22325 Always dereference with the canonical va-list type.
22326 (maybe_emit_free_warning): Handle MEM_REF.
22327 (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
22329 * builtins.c (fold_builtin_memory_op): Use ref-all types
22330 for all memcpy foldings.
22331 * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
22332 (build_outer_var_ref): Likewise.
22333 (scan_omp_1_op): Likewise.
22334 (lower_rec_input_clauses): Likewise.
22335 (lower_lastprivate_clauses): Likewise.
22336 (lower_reduction_clauses): Likewise.
22337 (lower_copyprivate_clauses): Likewise.
22338 (expand_omp_atomic_pipeline): Likewise.
22339 (expand_omp_atomic_mutex): Likewise.
22340 (create_task_copyfn): Likewise.
22341 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
22342 Remove old union trick. Initialize constant offsets.
22343 (ao_ref_init_from_vn_reference): Likewise. Do not handle
22344 INDIRECT_REF. Init base_alias_set properly.
22345 (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
22346 (vn_reference_fold_indirect): Adjust for MEM_REFs.
22347 (valueize_refs): Fold MEM_REFs. Re-evaluate constant offset
22349 (may_insert): Remove.
22350 (visit_reference_op_load): Do not test may_insert.
22351 (run_scc_vn): Remove parameter, do not fiddle with may_insert.
22352 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
22353 a field to store the constant offset this op applies.
22354 (run_scc_vn): Adjust prototype.
22355 * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
22356 * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
22357 MEM_REF. Propagate &foo + CST as &MEM[&foo, CST]. Do not
22358 bother about volatile qualifiers on pointers.
22359 (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
22360 * tree-ssa-loop-ivopts.c
22361 * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
22362 (strip_offset_1): Likewise.
22363 (find_interesting_uses_address): Replace INDIRECT_REF handling with
22365 (get_computation_cost_at): Likewise.
22366 * ipa-pure-const.c (check_op): Handle MEM_REF.
22367 * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
22368 * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
22370 * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
22371 * tree-parloops.c (take_address_of): Adjust for MEM_REF.
22372 (eliminate_local_variables_1): Likewise.
22373 (create_call_for_reduction_1): Likewise.
22374 (create_loads_for_reductions): Likewise.
22375 (create_loads_and_stores_for_name): Likewise.
22376 * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
22377 (ssa_accessed_in_tree): Handle MEM_REF.
22378 (ssa_accessed_in_assign_rhs): Likewise.
22379 (update_type_size): Likewise.
22380 (analyze_accesses_for_call_stmt): Likewise.
22381 (analyze_accesses_for_assign_stmt): Likewise.
22382 (transform_access_sites): Likewise.
22383 (transform_allocation_sites): Likewise.
22384 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
22385 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
22386 not handle INDIRECT_REF.
22387 * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
22388 (cond_store_replacement): Likewise.
22389 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
22390 MEM_REF, no not handle INDIRECT_REFs.
22391 (insert_into_preds_of_block): Properly initialize avail.
22392 (phi_translate_1): Fold MEM_REFs. Re-evaluate constant offset
22393 for ARRAY_REFs. Properly handle reference lookups that
22394 require a bit re-interpretation.
22395 (can_PRE_operation): Do not handle INDIRECT_REF. Handle MEM_REF.
22396 * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
22397 (build_ref_for_offset_1): Remove.
22398 (build_ref_for_offset): Build MEM_REFs.
22399 (gate_intra_sra): Disable for now.
22400 (sra_ipa_modify_expr): Handle MEM_REF.
22401 (ipa_early_sra_gate): Disable for now.
22402 * tree-sra.c (create_access): Swap INDIRECT_REF handling for
22404 (disqualify_base_of_expr): Likewise.
22405 (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
22407 (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
22408 Use mem_ref_offset. Remove bogus folding.
22409 (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
22410 (make_fancy_name_1): Add support for MEM_REF.
22411 * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
22412 * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
22413 * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
22414 (compute_complex_ancestor_jump_func): Likewise.
22415 (ipa_analyze_virtual_call_uses): Likewise.
22416 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
22417 INDIRECT_REF folding with more generalized MEM_REF folding.
22418 (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
22419 (forward_propagate_addr_into_variable_array_index): Also handle
22420 &ARRAY + I in addition to &ARRAY[0] + I.
22421 * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
22422 * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
22423 creates assignments with overlap.
22424 * tree-nested.c (get_static_chain): Adjust for MEM_REF.
22425 (get_frame_field): Likewise.
22426 (get_nonlocal_debug_decl): Likewise.
22427 (convert_nonlocal_reference_op): Likewise.
22428 (struct nesting_info): Add mem_refs pointer-set.
22429 (create_nesting_tree): Allocate it.
22430 (convert_local_reference_op): Insert to be folded mem-refs.
22431 (fold_mem_refs): New function.
22432 (finalize_nesting_tree_1): Perform defered folding of mem-refs
22433 (free_nesting_tree): Free the pointer-set.
22434 * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
22435 (vectorizable_load): Likewise.
22436 * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
22437 (propagate_with_phi): Likewise.
22438 * tree-object-size.c (addr_object_size): Handle MEM_REFs
22439 instead of INDIRECT_REFs.
22440 (compute_object_offset): Handle MEM_REF.
22441 (plus_stmt_object_size): Handle MEM_REF.
22442 (collect_object_sizes_for): Dispatch to plus_stmt_object_size
22444 * tree-flow.h (get_addr_base_and_unit_offset): Declare.
22445 (symbol_marked_for_renaming): Likewise.
22446 * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
22447 (fold-const.o): Add $(TREE_FLOW_H).
22448 * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
22449 (find_func_clobbers): Likewise.
22450 * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
22451 (decompose_access): Likewise.
22452 (replace_field_acc): Likewise.
22453 (replace_field_access_stmt): Likewise.
22454 (insert_new_var_in_stmt): Likewise.
22455 (get_stmt_accesses): Likewise.
22456 (reorg_structs_drive): Disable.
22457 * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
22458 (ix86_canonical_va_list_type): Likewise.
22460 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
22463 * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
22464 * target.def (struct gcc_target): Replace enum reg_class with
22465 reg_class_t in hook argument / return types.
22466 * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
22467 (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
22468 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
22469 * targhooks.h (default_branch_target_register_class): Likewise.
22470 (default_ira_cover_classes, default_secondary_reload): Likewise.
22471 (default_memory_move_cost, default_register_move_cost): Likewise.
22472 * targhooks.c (default_branch_target_register_class): Likewise.
22473 (default_ira_cover_classes, default_secondary_reload): Likewise.
22474 (default_memory_move_cost, default_register_move_cost): Likewise.
22475 * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
22476 * bt-load.c (branch_target_load_optimize): Likewise.
22477 * ira.c (setup_cover_and_important_classes): Likewise.
22478 * ira-costs.c (copy_cost): Likewise.
22479 * reload1.c (emit_input_reload_insns): Likewise.
22480 * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
22481 * config/frv/frv.c (frv_secondary_reload): Likewise.
22482 * config/s390/s390.c (s390_secondary_reload): Likewise.
22483 * config/i386/i386.c (i386_ira_cover_classes): Likewise.
22484 (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
22485 (ix86_register_move_cost): Likewise.
22486 * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
22487 * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
22488 * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
22489 * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
22490 * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
22491 (rs6000_ira_cover_classes): Likewise.
22492 * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
22493 * config/picochip/picochip-protos.h (picochip_secondary_reload):
22495 * config/pa/pa.c (pa_secondary_reload): Likewise.
22496 * config/mips/mips.c (mips_ira_cover_classes): Likewise.
22497 * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
22498 * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
22499 * doc/tm.texi: Regenerate.
22501 2010-06-30 Sebastian Pop <sebastian.pop@amd.com>
22503 PR bootstrrap/44726
22504 * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
22506 (build_alias_set_optimal_p): Likewise.
22507 (build_base_obj_set_for_drs): Likewise.
22509 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
22511 * target.def: Remove comment about licensing problems of function
22514 * target.def (declare_constant_name): Change exp to expr. Use DEFHOOK.
22515 * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
22516 * doc/tm.texi: Regenerate.
22518 * target.def (builtin_reciprocal): Change tm_fn to md_fn. Use DEFHOOK.
22519 * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
22521 * target.def (enum_va_list_p): Use DEFHOOK.
22522 * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
22523 Rename ptype to ptree.
22524 * doc/tm.texi: Regenerate.
22526 * target.def (fold_builtin): Rename nargs to n_args. Use DEFHOOK.
22527 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
22528 * doc/tm.texi: Regenerate.
22530 * target.def (memory_move_cost): Use DEFHOOK.
22531 * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
22532 Rename regclass AKA class to rclass.
22533 * doc/tm.texi: Regenerate.
22535 * target.def (pragma_parse): Use DEFHOOK.
22536 * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
22537 s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
22538 * doc/tm.texi: Regenerate.
22540 * target.def (pass_by_reference): Use DEFHOOK.
22541 * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
22542 * doc/tm.texi: Regenerate.
22544 * target.def (resolve_overloaded_builtin): Rename params to arglist.
22546 * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
22547 * doc/tm.texi: Regenerate.
22549 * target.def (return_pops_args): Use DEFHOOK.
22550 * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
22551 Rename stack-size to size.
22552 * doc/tm.texi: Regenerate.
22554 * target.def (dfa_new_cycle): Use DEFHOOK. Rename dump_file to dump,
22555 last-sched_cycle to last_clock, cur_cycle to clock.
22556 * doc/tm.texi.in: Use @hook.
22557 * doc/tm.texi: Regenerate.
22559 * target.def (print_operand, print_operand_address): Update comment.
22560 (print_operand_punct_valid_p): Likewise.
22562 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
22564 * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
22566 (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
22567 * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
22568 * rtl-error.h: New.
22569 * regrename.c: Do not include toplev.h. Include rtl-error.h.
22570 * rtl-error.c: Likewise.
22571 * reload.c: Likewise.
22572 * recog.c: Likewise.
22573 * sel-sched.c: Likewise.
22574 * function.c: Likewise.
22575 * reg-stack.c: Likewise.
22576 * cfgrtl.c: Likewise.
22577 * reload1.c: Likewise.
22578 * final.c: Include rtl-error.
22579 * Makefile.in: Adjust dependencies.
22581 2010-06-30 Jan Hubicka <jh@suse.cz>
22583 PR middle-end/PR44706
22584 * ipa-split (split_function): Refine conditions when to use DECL_RESULT
22585 to return the value.
22587 2010-06-30 Michael Matz <matz@suse.de>
22590 * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
22591 * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
22592 a gimple reg, attach the original VDEF to the last store in the
22595 2010-06-30 Iain Sandoe <iains@gcc.gnu.org>
22598 * config/darwin.c (darwin_override_options): Use renamed
22599 targetm.asm_out.emit_unwind_label.
22601 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
22603 PR tree-optimization/39799
22604 * tree-inline.c (remap_ssa_name): Initialize variable only if
22605 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
22607 2010-06-30 Nathan Froyd <froydnj@codesourcery.com>
22609 * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
22611 2010-06-30 Richard Guenther <rguenther@suse.de>
22614 * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
22615 against oscillation with reverse peephole2.
22617 2010-06-30 H.J. Lu <hongjiu.lu@intel.com>
22620 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
22623 2010-06-30 Nick Clifton <nickc@redhat.com>
22625 * config/rx/rx-modes.def: New file.
22626 * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
22627 (CC_REGNUM): Define.
22628 (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
22630 (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
22631 (SELECT_CC_MODE): Define.
22632 * config/rx/rx.md (CC_REG): Define. Update all patterns to use
22633 (reg:CC CC_REG) instead of (cc0).
22634 (attr "cc"): Delete.
22635 (cbranchsi4): Do not split compare and branch here. Instead move
22637 (cbranchsi4_<code>): ... here. New patterns.
22638 (cmpsi): Call rx-compare_redundant to find out if it is necessary
22639 to emit the compare instruction.
22640 * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
22642 (rx_get_stack_layout): Iterate up to before CC_REGNUM not
22643 FIRST_PSEUDO_REGNUM.
22644 (rx_expand_prologue, rx_expand_epilogue): Likewise.
22645 (rx_notice_update_cc): Delete.
22646 (rx_cc_modes_compatible): New function.
22647 (flags_needed_for_conditional): New function.
22648 (flags_from_mode): New function.
22649 (rx_compare_redundant): New function - scans backwards through
22650 insn list to find out if condition flags are already set correctly.
22651 (TARGET_CC_MODES_COMPATIBLE): Define.
22652 * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
22654 * config/rx/rx.h (BRANCH_COST): Define.
22655 (REGISTER_MOVE_COST): Define.
22656 * config/rx/predicates (rx_source_operand): Allow all constant types.
22657 * config/rx/rx.md (addsi3): Add alternative for swapped operands.
22658 (tstsi4): New pattern.
22659 * config/rx/rx.c (rx_memory_move_cost): Define.
22660 (TARGET_MEMORY_MOVE_COST): Define.
22662 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
22664 * tree.h (block_may_fallthru): Declare here.
22665 * tree-flow.h (block_may_fallthru): Do not declare here.
22666 * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
22668 * Makefile.in (c-typeck.o): Update dependencies.
22670 2010-06-30 Jakub Jelinek <jakub@redhat.com>
22673 * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
22674 * cselib.c (cfa_base_preserved_regno): New static variable.
22675 (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
22676 of REGNO (cfa_base_preserved_val->locs->loc).
22677 (cselib_preserve_cfa_base_value): Add regno argument, set
22678 cfa_base_preserved_regno to it.
22679 (cselib_invalidate_regno): Allow removal of registers other than
22680 cfa_base_preserved_regno from cfa_base_preserved_val.
22681 (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
22682 * var-tracking.c (adjust_mems): Replace sp or hfp even outside
22683 of MEM addresses, if not on LHS.
22684 (reverse_op): Don't add reverse ops for cfa_base_rtx.
22685 (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
22687 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
22689 * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
22691 (peep2_buf_position): New static function.
22692 (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
22693 peephole2_optimize): Use it.
22694 (peep2_attempt, peep2_update_life): New static functions, broken out
22695 of peephole2_optimize.
22696 (peep2_fill_buffer): New static function.
22697 (peephole2_optimize): Change the main loop to try to fill the buffer
22698 with the maximum number of insns before matching them against
22699 peepholes. Use a forward scan. Remove special case for targets with
22700 conditional execution.
22701 * genrecog.c (change_state): Delete dead code.
22702 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
22703 Rewrite so as not to expect the second insn to have had a peephole
22706 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
22708 * genhooks.c (emit_findices): Cast field precision to int.
22709 (emit_documentation): Likewise.
22711 2010-06-29 Jakub Jelinek <jakub@redhat.com>
22713 PR tree-optimization/43801
22714 * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
22715 if old_decl was DECL_ONE_ONLY.
22718 * dwarf2out.c (add_accessibility_attribute): New function.
22719 (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
22720 instead of adding DW_AT_accessibility manually.
22721 (gen_enumeration_type_die, gen_struct_or_union_type_die,
22722 gen_typedef_die): Use it.
22724 2010-06-29 Douglas B Rupp <rupp@gnat.com>
22726 * vmsdbgout.c (full_name): Just output the file name if not native.
22728 2010-06-29 Douglas B Rupp <rupp@gnat.com>
22730 * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
22731 (funcnam_table): New static table.
22732 (funcnum_table): New static table.
22733 (write_rtnbeg): Write value saved in funcnum_table.
22734 (write_rtnend): Write value saved in funcnum_table.
22735 (vmsdbgout_begin_function): Save current function info in
22736 (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
22737 (vmsdbgout_finish): Iterate over funcnum_table.
22739 2010-06-29 Douglas B Rupp <rupp@gnat.com>
22741 * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
22742 (vmsdbgout_type_decl): Declare
22743 (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
22744 (FUNC_EPILOGUE_LABEL): New macro
22745 (vmsdbgout_begin_epilogue): New function.
22746 (vmsdbgout_type_decl): New function.
22748 2010-06-29 Douglas B Rupp <rupp@gnat.com>
22750 * vmsdbg.h: Update copyright.
22752 2010-06-29 Douglas B Rupp <rupp@gnat.com>
22754 * vmsdbg.h (DST_K_TBG): New DST constant.
22755 * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
22756 (write_modbeg): Cast module_language to avoid warning.
22757 (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
22759 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
22762 * target.def, doc/tm.texi.in, genhooks.c: New files.
22763 * target.h: Instead of defining individual hook members,
22764 define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
22765 include target.def.
22766 * target-def.h: Instead of defining individual hook initializers,
22767 include target-hooks-def.h.
22768 * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
22769 targetm.live_on_entry -> targetm.extra_live_on_entry
22770 targetm.sched.md_finish ->targetm.sched.finish
22771 targetm.sched.md_init -> targetm.sched.init
22772 targetm.sched.md_init_global -> targetm.sched.init_global
22773 targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
22774 targetm.asm_out.except_table_label ->
22775 targetm.asm_out.emit_except_table_label
22776 targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
22777 targetm.target_help -> targetm.help
22778 targetm.vectorize.builtin_support_vector_misalignment ->
22779 targetm.vectorize.support_vector_misalignment
22780 targetm.file_start_app_off -> targetm.asm_file_start_app_off
22781 targetm.file_start_file_directive ->
22782 targetm.asm_file_start_file_directive
22783 * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
22784 * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
22785 * config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
22786 TARGET_VECTOR_ALIGNMENT_REACHABLE ->
22787 TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
22788 TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
22789 TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
22790 TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
22791 * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
22792 * Makefile.in (TARGET_H): Depend on target.def.
22793 (TARGET_DEF_H): Depend on target-hooks-def.h.
22794 (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
22795 (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
22796 * doc/tm.texi: Regenerate.
22798 * Makefile.in (s-tm-texi): Remove stray tab / rule.
22800 * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
22801 (targetm.sched.init): Likewise.
22803 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
22806 * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
22807 (function_arg_advance_32): Const-ify TYPE parameter.
22808 (function_arg_advance_64): Likewise. Change type of NAMED to bool.
22809 (ix86_function_arg_advance): Change type of NAMED to bool.
22810 (function_arg_32): Const-ify CUM and TYPE parameters.
22811 (function_arg_64): Likewise. Change type of NAMED to bool.
22812 (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
22814 (ix86_function_arg): Change type of NAMED to bool.
22815 (ix86_setup_incoming_varargs): Call ix86_function_arg_advance. Pass
22816 last argument as a bool.
22818 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
22820 * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
22821 (OVERRIDE_OPTIONS): Add note of obsolescence.
22822 Replace references with references to TARGET_OPTION_OVERRIDE.
22823 (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
22825 * targhooks.c (default_target_option_override): New function.
22826 * targhooks.h (default_target_option_override): Declare.
22827 * target.h (struct gcc_target): Add override member to
22828 target_option member.
22829 * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
22830 targetm.target_option.override call.
22831 * target-def.h (TARGET_OPTION_OVERRIDE): Define.
22832 (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
22834 2010-06-29 Jan Hubicka <jh@suse.cz>
22836 * tree-inline.c: Replace incomming by incomin and clonning by cloning.
22838 2010-06-29 Jan Hubicka <jh@suse.cz>
22840 * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
22842 (rebuild_frequencies): New function.
22843 * predict.h (rebuild_frequencies): Declare.
22844 * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
22845 entry block and edge reaching new_entry.
22846 (tree_function_versioning): When doing partial cloning, rebuild
22847 frequencies when done.
22848 * passes.c (execute_function_todo): Use rebild_frequencies.
22850 2010-06-29 Richard Guenther <rguenther@suse.de>
22852 * tree-dfa.c (dump_variable): Remove noalias_state dumping.
22853 * tree-flow.h (enum noalias_state): Remove.
22854 (struct var_ann_d): Remove noalias_state member.
22856 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
22859 * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
22860 (maddhisi4): Renamed from mulhisi3addsi. Operands renumbered.
22861 (maddhidi4): Likewise.
22863 Revert parts of the change for PR25130.
22864 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
22867 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
22869 * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
22870 targetm.calls.function_incoming_arg, and
22871 targetm.calls.function_arg_advance instead of FUNCTION_ARG,
22872 FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
22873 * target.h (struct gcc_target): Add function_arg_advance,
22874 function_arg, and function_incoming_arg fields.
22875 * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
22876 (TARGET_FUNCTION_INCOMING_ARG): Define.
22877 (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
22878 and TARGET_FUNCTION_INCOMING_ARG.
22879 * targhooks.h (default_function_arg_advance): Declare.
22880 (default_function_arg, default_function_incoming_arg): Declare.
22881 * targhooks.c (default_function_arg_advance): New function.
22882 (default_function_arg, default_function_incoming_arg): New function.
22883 * config/i386/i386.c (function_arg_advance): Rename to...
22884 (ix86_function_arg_advance): ...this. Make static.
22885 (function_arg): Rename to...
22886 (ix86_function_arg): ...this. Make static.
22887 (TARGET_FUNCTION_ARG_ADVANCE): Define.
22888 (TARGET_FUNCTION_ARG): Define.
22889 * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
22890 (FUNCTION_ARG): Delete.
22891 * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
22892 (function_arg): Delete prototype.
22894 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
22896 * reginfo.c (init_reg_sets_1): Adjust comments.
22897 * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
22898 * calls.c (prepare_call_address): Likewise.
22899 (emit_call_1): Use targetm.calls.return_pops_args.
22900 (expand_call): Likewise.
22901 * function.c (assign_parms): Likewise.
22902 * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
22903 * target.h (struct gcc_target) [struct calls]: Add
22904 return_pops_args field.
22905 * targhooks.h (default_return_pops_args): Declare.
22906 * targhooks.c (default_return_pops_args): Define.
22907 * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
22908 (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
22909 * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
22910 (TARGET_RETURN_POPS_ARGS): ...this. Use deftypefn. Adjust
22912 * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
22913 * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
22914 * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
22915 * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
22916 * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
22917 * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
22918 * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
22919 * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
22920 * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
22921 * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
22922 * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
22923 * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
22924 * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
22925 * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
22926 * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
22927 * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
22928 * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
22929 * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
22930 * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
22931 * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
22932 * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
22933 * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
22934 * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
22935 * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
22936 * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
22937 * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
22938 * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
22939 * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
22940 * config/score/score.h (RETURN_POPS_ARGS): Likewise.
22941 * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
22942 * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
22943 * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
22944 * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
22945 * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
22946 * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
22947 * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
22948 * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
22949 * config/i386/i386.c (ix86_return_pops_args): Make static.
22950 Constify arguments.
22951 (TARGET_RETURN_POPS_ARGS): Define.
22952 * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
22953 * config/m68k/m68k.c (m68k_return_pops_args): ...here. New function.
22954 (TARGET_RETURN_POPS_ARGS): Define.
22955 * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
22956 * config/vax/vax.c (vax_return_pops_args): ...here. New function.
22957 (TARGET_RETURN_POPS_ARGS): Define.
22959 2010-06-29 Richard Guenther <rguenther@suse.de>
22961 PR middle-end/44667
22962 * tree-inline.c (initialize_inlined_parameters): Make sure
22963 to remap the inlined parameter variable substitutions types.
22965 2010-06-29 Eric Botcazou <ebotcazou@adacore.com>
22967 PR rtl-optimization/44659
22968 * combine.c (make_compound_operation) <SUBREG>: Do not return the
22969 result of force_to_mode if it partially re-expanded the compound.
22971 2010-06-28 Jan Hubicka <jh@suse.cz>
22973 PR middle-end/44671
22974 * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
22977 2010-06-28 Anatoly Sokolov <aesok@post.ru>
22979 * double-int.h (force_fit_type_double): Remove declaration.
22980 * double-int.c (force_fit_type_double): Move to tree.c.
22981 * tree.h (force_fit_type_double): Declare.
22982 * tree.h (force_fit_type_double): Moved from double-int.c. Use
22983 double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
22984 double_int_to_tree instead of fit_double_type and build_int_cst_wide.
22985 * convert.c (convert_to_pointer): Adjust call to
22986 force_fit_type_double.
22987 * tree-vrp.c (extract_range_from_assert,
22988 extract_range_from_unary_expr): Adjust call to force_fit_type_double.
22989 * fold-const.c: Update comment.
22990 (int_const_binop, fold_convert_const_int_from_int,
22991 fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
22992 extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
22993 fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
22994 round_up_loc): Adjust call to force_fit_type_double.
22996 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
22998 * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
23000 2010-06-28 Martin Jambor <mjambor@suse.cz>
23002 * tree-sra.c (convert_callers): New parameter, change fndecls of
23004 (modify_function): Pass the old decl to convert_callers.
23006 2010-06-28 Martin Jambor <mjambor@suse.cz>
23008 * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
23009 ipa_check_create_node_params and ipa_initialize_node_params with
23010 checking asserts they are not necessary.
23012 2010-06-28 Jan Hubicka <jh@suse.cz>
23014 PR tree-optimization/44687
23015 * ipa-split.c (split_function): Use DECL_RESULT to store return value.
23017 2010-06-28 Martin Jambor <mjambor@suse.cz>
23020 * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
23021 (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
23022 instead of BINFO_BASE_BINFO.
23024 2010-06-28 Michael Matz <matz@suse.de>
23026 PR middle-end/44592
23027 * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
23028 proper VDEF chain for intermediate stores in the sequence.
23030 2010-06-28 Jan Hubicka <jh@suse.cz>
23032 PR tree-optimization/44357
23033 * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
23034 uninlinable functions.
23036 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
23038 * config.gcc (powerpc*-*-*): Handle titan.
23039 * config/rs6000/rs6000.c (titan_cost): New costs.
23040 (rs6000_override_options): Add "titan" to processor_target_table.
23041 Add Titan to branch alignment logic.
23042 Correctly set rs6000_cost for titan.
23043 * config/rs6000/rs6000.md (cpu): Add titan. Include "titan.md".
23044 * config/rs6000/titan.md: New file.
23045 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
23047 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
23049 * tree-browser.c (TB_history_stack): Convert to a VEC.
23050 (TB_SET_HEAD): Adjust for new type of TB_history_stack.
23051 (TB_history_prev): Likewise.
23053 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
23055 * vec.h (vec_heap_free): Add parentheses around free.
23057 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
23059 * system.h: Poison GCC_EXCEPT_H for front-end files.
23061 * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
23063 * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
23064 Define to NULL by default.
23065 * except.h: Define GCC_EXCEPT_H.
23066 (doing_eh): Remove prototype.
23067 (init_eh, init_eh_for_function): Move prototypes to toplev.h.
23068 (lang_protect_cleanup_actions): Remove.
23069 * except.c (lang_protect_cleanup_actions): Remove.
23070 (doing_eh): Remove.
23071 (gen_eh_region): Don't check doing_eh here.
23072 * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
23073 * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
23074 instead of lang_protect_cleanup_actions.
23075 * omp-low.c (maybe_catch_exception): Likewise.
23076 * Makefile.in: Update dependencies.
23078 2010-06-28 Bingfeng Mei <bmei@broadcom.com>
23080 * cgraph.h (struct varpool_node): new used_from_object_file flag.
23081 (struct cgraph_local_info): new used_from_object_file flag.
23082 * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
23083 (cgraph_clone_node): initialize used_from_object_file.
23084 (cgraph_create_virtual_clone): initialize used_from_object_file.
23085 * lto-symbtab.c (lto_symtab_merge_decls_1): Set
23086 used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
23087 when compiling with -fwhole-program.
23088 (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
23090 * ipa.c (function_and_variable_visibility): Set externally_visible
23091 flag of varpool_node if used_from_object_file flag is set.
23092 (cgraph_externally_visible_p): check used_from_object_file flag.
23093 * doc/invoke.texi (-fwhole-program option): Change description of
23094 externally_visible attribute accordingly.
23095 * doc/extend.texi (externally_visible): Ditto.
23097 2010-06-27 Jan Hubicka <jh@suse.cz>
23099 * params.def (max-inline-insns-auto): Default to 40.
23100 * doc/invoke.texi (max-inline-insns-auto): Document the change.
23102 2010-06-27 Jan Hubicka <jh@suse.cz>
23104 PR middle-end/44671
23105 PR middle-end/44686
23106 * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
23108 * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
23109 * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
23111 2010-06-27 Anatoly Sokolov <aesok@post.ru>
23113 * target.h (struct gcc_target): Add register_move_cost field.
23114 * target-def.h (TARGET_REGISTER_MOVE_COST): New.
23115 (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
23116 * targhooks.c (default_register_move_cost): New function.
23117 * targhooks.h (default_register_move_cost): Declare function.
23118 * defaults.h (REGISTER_MOVE_COST): Delete.
23119 * ira-int.h (ira_register_move_cost): Update comment.
23120 * ira.c (ira_register_move_cost): Update comment.
23121 * reload.h (register_move_cost): Declare.
23122 * reginfo.c (register_move_cost): New function.
23123 (move_cost): Update comment.
23124 (init_move_cost, memory_move_secondary_cost): Replace
23125 REGISTER_MOVE_COST with register_move_cost.
23126 * postreload.c (reload_cse_simplify_set): (Ditto.).
23127 * reload.c (find_valid_class, find_reloads): (Ditto.).
23128 * reload1.c (choose_reload_regs): (Ditto.).
23129 * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
23130 (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
23131 * doc/md.texi (can_create_pseudo_p): Update documentation.
23133 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
23134 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
23135 * config/i386/i386.h (ix86_memory_move_cost): Make static.
23136 (TARGET_MEMORY_MOVE_COST): Define.
23138 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
23139 * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
23140 * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
23141 (TARGET_MEMORY_MOVE_COST): Define.
23143 2010-06-27 Richard Guenther <rguenther@suse.de>
23145 PR tree-optimization/44683
23146 * tree-ssa-dom.c (record_edge_info): Record equivalences for the
23147 false edge from the inverted condition.
23149 2010-06-27 Richard Guenther <rguenther@suse.de>
23151 PR middle-end/44684
23152 * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
23153 (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
23154 for register LHS. Or non-store assignments.
23156 2010-06-26 Eric Botcazou <ebotcazou@adacore.com>
23158 * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
23159 (sparc_emit_set_const64): Likewise. Remove disabled code.
23160 * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
23161 (sparc_emit_set_const64): Likewise.
23163 2010-06-26 Catherine Moore <clm@codesourcery.com>
23165 * config/mips/mips.md (alu_type): New attribute.
23166 (type): Infer type from alu_type.
23167 (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
23168 *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
23169 *subsi3_extended, negsi2, negdi2, *low<mode>,
23170 *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
23171 xor<mode>3, *nor<mode>3,
23172 *zero_extend<GPR:mode>_trunc<SHORT:mode>,
23173 *zero_extendhi_truncqi): Set alu_type instead of type.
23175 2010-06-26 Douglas B Rupp <rupp@gnat.com>
23177 * config/alpha/alpha.c (alpha_need_linkage): Adjust
23178 splay_tree_new_ggc call.
23179 (alpha_use_linkage): Likewise.
23181 2010-06-26 Joseph Myers <joseph@codesourcery.com>
23183 * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
23184 * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
23185 * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
23186 (static_specs): Remove switches_need_spaces.
23187 (process_command, do_self_spec): Hardcode handling "-o" instead of
23188 checking switches_need_spaces.
23189 * system.h (SWITCHES_NEED_SPACES): Poison.
23191 2010-06-26 Richard Guenther <rguenther@suse.de>
23193 PR tree-optimization/44393
23194 * tree-loop-distribution.c (generate_loops_for_partition): Fix
23195 stmt removal and VOP renaming.
23196 (generate_memset_zero): Remove redundant stmt updating.
23197 * tree-flow.h (mark_virtual_ops_in_bb): Remove.
23198 * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
23200 2010-06-26 Jan Hubicka <jh@suse.cz>
23202 * ipa-split.c (consider_split): PHI in entry block is OK as long as all
23203 edges comming from header are equivalent.
23204 (visit_bb): Handle PHIs correctly.
23205 * tree-inline.c (copy_phis_for_bb): Be able to copy
23206 PHI from entry edge.
23207 (copy_cfg_body): Produce edge from entry BB before copying PHIs.
23209 2010-06-26 Richard Guenther <rguenther@suse.de>
23211 PR middle-end/44674
23212 * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
23213 decls. Handle LABEL_DECLs like FUNCTION_DECLs.
23215 2010-06-26 Joseph Myers <joseph@codesourcery.com>
23217 * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
23218 add_infile, alloc_switch): New.
23219 (process_command): Remove variable lang_n_infiles. Process
23220 options in a single pass. Use new functions for allocating
23221 infiles and switches arrays. Properly skip operands of
23222 -Xpreprocessor and -Xassembler.
23224 2010-06-26 Jan Hubicka <jh@suse.cz>
23226 PR middle-end/44671
23227 * cgraphunit.c (cgraph_function_versioning): Remove wrong
23228 cgraph_make_decl_local call; fix typo copying RTL data.
23230 2010-06-25 DJ Delorie <dj@redhat.com>
23232 * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
23233 (m32c_output_aligned_common): Likewise.
23234 * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
23235 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
23236 * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
23237 (m32c_register_pragmas): Register it.
23238 * config/m32c/m32c.c (m32c_get_pragma_address): New.
23239 (m32c_insert_attributes): Set #pragma address decls volatile.
23240 (pragma_entry_eq): New.
23241 (pragma_entry_hash): New.
23242 (m32c_note_pragma_address): New.
23243 (m32c_get_pragma_address): New.
23244 (m32c_output_aligned_common): New.
23245 * doc/extend.texi: Document the new pragma.
23247 * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
23249 * config/m32c/predicates.md (m32c_any_operand): Check the code
23250 instead of memory_operand so as to allow matching volatile MEMs.
23251 (m32c_nonimmediate_operand): Likewise.
23252 (mra_operand): Allow volatiles.
23254 2010-06-25 Alexandre Oliva <aoliva@redhat.com>
23257 * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
23258 address if the offset is unknown.
23260 2010-06-25 Douglas B Rupp <rupp@gnat.com>
23262 * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
23263 * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
23264 * config/ia64/ia64-protos.h (ia64_start_function): Declare.
23265 * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
23266 to ia64_start_function. Invoke it.
23267 * config/ia64/ia64.c (ia64_start_function): Call new function
23268 dwarf2out_vms_debug_main_pointer.
23270 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
23272 * tree-if-conv.c (insert_gimplified_predicates): Do not insert
23273 statements computing the true predicate.
23275 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
23277 * tree-if-conv.c (init_bb_predicate): Initialize the predicate
23278 to boolean_true_node.
23279 (reset_bb_predicate): New.
23280 (predicate_bbs): Call reset_bb_predicate.
23282 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
23284 * tree-if-conv.c (combine_blocks): Remove FIXME comment.
23285 (tree_if_conversion): Returns true when something has been changed.
23286 (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
23289 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
23291 * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
23292 * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
23293 * tree-if-conv.c: Include dbgcnt.h.
23294 (tree_if_conversion): Use if_conversion_tree to count the number of
23295 if-convertible loops.
23297 2010-06-25 Changpeng Fang <changpeng.fang@amd.com>
23299 * common.opt (fprefetch-loop-arrays): Re-define
23300 -fprefetch-loop-arrays as a tri-state option with the initial
23302 * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
23303 pass only when flag_prefetch_loop_arrays > 0.
23304 * toplev.c (process_options): Note that, with tri-states,
23305 flag_prefetch_loop_arrays>0 means prefetching is enabled.
23306 * config/i386/i386.c (override_options): Enable prefetching at -O3
23307 for a set of CPUs that sw prefetching is helpful.
23308 (software_prefetching_beneficial_p): New. Return TRUE if software
23309 prefetching is beneficial for the given CPU.
23311 2010-06-25 H.J. Lu <hongjiu.lu@intel.com>
23313 PR rtl-optimization/44326
23314 * implicit-zee.c (find_removable_zero_extends): Replace
23315 INSN_P with NONDEBUG_INSN_P.
23317 2010-06-25 Martin Jambor <mjambor@suse.cz>
23319 * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
23320 (struct ipa_node_params): Removed the modification_analysis_done flag.
23321 (ipa_is_param_modified): Removed.
23322 (ipa_analyze_node): Declare.
23323 (ipa_compute_jump_functions): Remove declaration.
23324 (ipa_count_arguments): Likewise.
23325 (ipa_detect_param_modifications): Likewise.
23326 (ipa_analyze_params_uses): Likewise.
23327 * ipa-prop.c (struct param_analysis_info): New type.
23328 (visit_store_addr_for_mod_analysis): Removed.
23329 (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
23330 moved down in the file.
23331 (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
23332 (ipa_count_arguments): Made static.
23333 (mark_modified): New function.
23334 (is_parm_modified_before_call): New function.
23335 (compute_pass_through_member_ptrs): New parameter parms_info, call
23336 is_parm_modified_before_call instead of ipa_is_param_modified.
23337 (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
23338 it to compute_pass_through_member_ptrs.
23339 (ipa_compute_jump_functions): New parameter parms_info, pass it to
23340 ipa_compute_jump_functions_for_edge. Call ipa_initialize_node_params
23341 on the callee if it is analyzed. Made static.
23342 (ipa_analyze_indirect_call_uses): New parameter parms_info, call
23343 is_parm_modified_before_call instead of ipa_is_param_modified.
23344 (ipa_analyze_call_uses): New parameter parms_info, pass it to
23345 ipa_analyze_indirect_call_uses.
23346 (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
23347 ipa_analyze_call_uses.
23348 (ipa_analyze_params_uses): New parameter parms_info, pass it to
23349 ipa_analyze_stmt_uses. Also perform the used analysis. Made static.
23350 (ipa_analyze_node): New function.
23351 (ipa_print_node_params): Do not dump the modified flag.
23352 (ipa_write_node_info): Assert uses_analysis_done rather than streaming
23353 it. Do not stream the modified parameter flag.
23354 (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
23355 it. Do not stream the modified parameter flag.
23356 * ipa-cp.c (ipcp_analyze_node): Removed.
23357 (ipcp_init_stage): Iterate only once over the nodes, analyze each one
23358 with only a call to ipa_analyze_node.
23359 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
23360 node with only a call to ipa_analyze_node.
23362 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
23364 * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
23366 2010-06-25 Jan Hubicka <jh@suse.cz>
23368 * tree-pass.h (pass_split_functions): Declare.
23369 * opts.c (decode_options): Enable function splitting at -O2
23370 * timevar.def (TV_IPA_FNSPLIT): New macro.
23371 * ipa-split.c: New file.
23372 * common.opt (-fpartial-inlining): New flag.
23373 * Makefile.in (ipa-split.o): New object file.
23374 * passes.c (init_optimization_passes): Add ipa-split.
23375 * params.def (partial-inlining-entry-probability): New parameters.
23376 * doc/invoke.texi (-fpartial-inlining): New.
23378 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
23381 * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
23382 * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
23383 (gimplify_expr): Likewise.
23385 2010-06-25 Martin Jambor <mjambor@suse.cz>
23387 * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
23388 statements instead of bailing out on them.
23389 (ipa_analyze_indirect_call_uses): Do not require that loads from the
23390 parameter are in the same BB as the condition. Update comments.
23392 2010-06-25 Jakub Jelinek <jakub@redhat.com>
23394 PR middle-end/43866
23395 * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
23396 true or always false, return NULL_TREE.
23397 (tree_unswitch_single_loop): Optimize conditions even when reaching
23398 max-unswitch-level parameter. If num > 0, optimize first all conditions
23399 using entry checks, then do still reachable block discovery and consider
23400 only conditions in still reachable basic blocks in the loop.
23402 PR tree-optimization/44539
23403 * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
23404 the call doesn't have LHS, but has VDEF.
23406 2010-06-25 Joseph Myers <joseph@codesourcery.com>
23408 * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
23409 * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
23410 * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
23411 (process_command): Remove code conditional on MODIFY_TARGET_NAME.
23412 * system.h (MODIFY_TARGET_NAME): Poison.
23414 2010-06-25 Alan Modra <amodra@gmail.com>
23416 * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
23417 * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
23418 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
23419 CMODEL_LARGE as default.
23420 * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
23421 (offsettable_ok_by_alignment): Delete.
23422 (rs6000_emit_move): Remove mcmodel=medium optimization.
23424 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
23426 With large parts from Jim Wilson:
23428 * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
23429 WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
23430 * optabs.c (optab_for_tree_code): Likewise.
23431 (expand_widen_pattern_expr): Likewise.
23432 * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
23433 out of execute_optimize_widening_mul.
23434 (convert_plusminus_to_widen): New function.
23435 (execute_optimize_widening_mul): Use the two new functions.
23436 * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
23437 Remove code to generate widening multiply-accumulate. Add support
23438 for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
23439 * gimple-pretty-print.c (dump_ternary_rhs): New function.
23440 (dump_gimple_assign): Call it when appropriate.
23441 * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
23442 * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
23443 (expand_gimple_stmt_1): Likewise.
23444 (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
23445 WIDEN_MULT_MINUS_EXPR.
23446 * tree-ssa-operands.c (get_expr_operands): Likewise.
23447 * tree-inline.c (estimate_operator_cost): Likewise.
23448 * gimple.c (extract_ops_from_tree_1): Renamed from
23449 extract_ops_from_tree. Add new arg for a third operand; fill it.
23450 (gimple_build_assign_stat): Support operations with three operands.
23451 (gimple_build_assign_with_ops_stat): Likewise.
23452 (gimple_assign_set_rhs_from_tree): Likewise.
23453 (gimple_assign_set_rhs_with_ops_1): Renamed from
23454 gimple_assign_set_rhs_with_ops. Add new arg for a third operand.
23455 (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
23456 (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
23457 WIDEN_MULT_MINUS_EXPR.
23458 * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
23459 (extract_ops_from_tree_1): Adjust declaration.
23460 (gimple_assign_set_rhs_with_ops_1): Likewise.
23461 (gimple_build_assign_with_ops): Pass NULL for last operand.
23462 (gimple_build_assign_with_ops3): New macro.
23463 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
23464 gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
23466 * tree-cfg.c (verify_gimple_assign_ternary): New static function.
23467 (verify_gimple_assign): Call it.
23468 * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
23469 (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
23470 functions for dealing with three-operand statements.
23471 * tree.c (commutative_ternary_tree_code): New function.
23472 * tree.h (commutative_ternary_tree_code): Declare it.
23473 * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
23474 ternary statements.
23475 (gimple_assign_nonzero_warnv_p): Likewise.
23476 * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
23477 * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
23478 (ccp_fold): Use it. Handle GIMPLE_TERNARY_RHS.
23479 * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
23480 (struct hashtable_expr): New member ternary in the union.
23481 (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
23482 (hashable_expr_equal_p): Fix indentation. Handle EXPR_TERNARY.
23483 (iterative_hash_hashable_expr): Likewise.
23484 (print_expr_hash_elt): Handle EXPR_TERNARY.
23485 * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
23486 * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
23487 statements. Handle GIMPLE_TERNARY_RHS.
23489 2010-06-25 Jan Hubicka <jh@suse.cz>
23491 * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
23493 2010-06-25 Shujing Zhao <pearly.zhao@oracle.com>
23496 * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
23497 parameters are not good.
23498 (c_parser_parameter_declaration): Error unknown type name if the type
23499 name can't start declaration specifiers.
23501 2010-06-25 Joseph Myers <joseph@codesourcery.com>
23503 * gcc.c (translate_options): Don't mention +e in comment.
23504 (process_command): Don't handle +e specially.
23506 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
23508 * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
23510 * ira-build.c (merge_hard_reg_conflicts): New function.
23511 (create_cap_allocno, copy_info_to_removed_store_destinations,
23512 propagate_some_info_from_allocno, propagate_allocno_info): Use it.
23513 (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
23514 (remove_unnecessary_allocnos, remove_low_level_allocnos)
23515 copy_nifo_to_removed_store_destination): Use them.
23516 * ira-lives.c (make_hard_regno_born): New function, split out of
23518 (make_allocno_born): Likewise.
23519 (make_hard_regno_dead): New function, split out of make_regno_dead.
23520 (make_allocno_dead): Likewise.
23521 (inc_register_pressure): New function, split out of set_allocno_live.
23522 (dec_register_pressure): New function, split out of clear_allocno_live.
23523 (mark_pseudo_regno_live): New function, split out of mark_reg_live.
23524 (mark_hard_reg_live): Likewise. Use inc_register_pressure.
23525 (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
23526 (mark_hard_reg_dead): Likewise. Use dec_register_pressure.
23527 (make_pseudo_conflict): Use mark_pseudo_regno_dead and
23528 mark_pseudo_regno_live.
23529 (process_bb_node_lives): Use mark_pseudo_regno_live,
23530 make_hard_regno_born and make_allocno_dead.
23531 (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
23532 set_allocno_live, clear_allocno_live): Delete functions.
23534 * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
23535 * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
23537 (ira_flattening): Use ira_parent_allocno.
23538 * ira-conflicts.c (process_regs_for_copy, propagate_copies)
23539 build_allocno_conflicts): Use ira_parent_or_cap_allocno.
23541 * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
23544 * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
23545 TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
23546 minmax_set_iter_cond, minmax_set_iter_next,
23547 FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
23548 CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
23549 ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
23550 ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET. All
23553 * ira-int.h (struct live_range, live_range_t): Renamed from struct
23554 ira_allocno_live_range and allocno_live_range_t; all uses changed.
23555 * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
23558 2010-06-24 Richard Earnshaw <rearnsha@arm.com>
23560 * thumb2.md (thumb2_tlobits_cbranch): Delete.
23561 (peephole2 to convert zero_extract/compare of single bit to
23562 lshift/compare): New.
23564 2010-06-24 Anatoly Sokolov <aesok@post.ru>
23566 * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
23567 recursive call and call to 'int_const_binop'.
23568 (build_range_check, fold_cond_expr_with_comparison, unextend,
23569 fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
23570 multiple_of_p): Adjust call to const_binop.
23572 2010-06-24 Uros Bizjak <ubizjak@gmail.com>
23574 * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
23575 determine size of XFmode operand.
23576 (XFmode extended DFmode push splitter): Ditto.
23577 (XFmode extended SFmode push splitter): Ditto.
23579 2010-06-24 H.J. Lu <hongjiu.lu@intel.com>
23582 * config/i386/i386.md (extract_code): New.
23583 (<u>divmodqi4): Likewise.
23584 (divmodhiqi3): Likewise.
23585 (udivmodhiqi3): Likewise.
23586 (<u>divqi3): Remvoved.
23588 2010-06-24 Jakub Jelinek <jakub@redhat.com>
23590 PR middle-end/44492
23591 * recog.h (struct recog_data): Add is_asm field.
23592 * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
23593 present in constraints of inline-asm operand and memory operand
23594 contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
23595 (extract_insn): Initialize recog_data.is_asm.
23596 * doc/md.texi (Constraints): Document operand side-effect rules.
23598 2010-06-24 Andi Kleen <ak@linux.intel.com>
23600 * c-parser.c (c_parser_conditional_expression): Call
23601 warn_for_omitted_condop.
23602 * doc/invoke.texi: Document omitted condop warning.
23604 2010-06-24 Nick Clifton<nickc@redhat.com>
23606 * loop-unswitch.c (compare_and_jump_seq): Assert that the last
23607 insn in the sequence is a jump insn before setting its label.
23609 2010-06-24 Alan Modra <amodra@gmail.com>
23611 * collect2.c (main): Match exactly --version and --help.
23613 2010-06-24 DJ Delorie <dj@redhat.com>
23615 * config/m32c/m32c-pragma.c: Don't include rtl.h.
23617 2010-06-23 Uros Bizjak <ubizjak@gmail.com>
23619 * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
23620 using X87MODEF mode iterator.
23621 (pushsf splitter): Macroize splitter using P mode iterator.
23622 (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
23625 (*movxf_internal): Rename from *movxf_integer.
23626 (*movxf_internal_nointeger): Rename from *movxf_nointeger.
23627 (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
23628 (*movdf_internal): Rename from *movdf_integer.
23629 (*movdf_internal_nointeger): Rename from *movdf_nointeger.
23630 (*movsf_internal): Rename from *movdf_1.
23632 2010-06-23 Basile Starynkevitch <basile@starynkevitch.net>
23634 * coretypes.h (gimple_seq_node_d, gimple_seq_node)
23635 (const_gimple_seq_node): Removed typedefs.
23637 * gimple.h (gimple_seq_node_d, gimple_seq_node)
23638 (const_gimple_seq_node): Added typedefs moved from coretypes.h.
23640 2010-06-23 H.J. Lu <hongjiu.lu@intel.com>
23642 * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
23643 CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
23644 CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
23645 and CODE_FOR_vec_extract_lo_v4df.
23647 * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
23648 Changed to define_insn_and_split.
23649 (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
23650 (vec_extract_lo_v16hi): Likewise.
23651 (vec_extract_lo_v32qi): Likewise.
23652 (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
23653 (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
23655 2010-06-23 Joern Rennecke <joern.rennecke@embecosm.com>
23658 * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
23659 * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
23660 (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
23661 (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
23662 (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
23665 * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
23668 * df-core.c (struct df): Rename to df_d.
23669 * df.h (struct df): Likewise.
23670 * dse.h (struct df): Remove forward declaration.
23671 * recog.h (struct insn_data): Rename to:
23672 (struct_insn_data_d). Adjusted all users.
23674 2010-06-23 Arnaud Charlet <charlet@adacore.com
23677 * doc/install.texi: Update requirements to build GNAT.
23679 2010-06-22 Andreas Schwab <schwab@linux-m68k.org>
23681 * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
23683 (m68k_sched_attr_opx_type): Remove unreachable return.
23684 (m68k_sched_attr_opy_type): Likewise.
23685 (m68k_sched_attr_size): Likewise.
23686 (sched_get_opxy_mem_type): Likewise.
23687 (m68k_sched_attr_op_mem): Likewise.
23689 2010-06-22 Eric Botcazou <ebotcazou@adacore.com>
23691 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
23692 new statement and adjust VDEF only if necessary. Remove superfluous
23693 call to maybe_clean_or_replace_eh_stmt.
23694 * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
23696 * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
23697 * tree-inline.c (copy_bb): ...and not there.
23699 2010-06-22 Cary Coutant <ccoutant@google.com>
23701 * dwarf2out.c (is_nested_in_subprogram): New function.
23702 (should_move_die_to_comdat): Use it.
23703 (copy_ancestor_tree): Don't mark DIEs here.
23704 (copy_decls_walk): Start walk from root of newly-added tree;
23705 mark DIEs here instead.
23707 2010-06-22 H.J. Lu <hongjiu.lu@intel.com>
23709 * config/i386/i386.md (unit): Also check sseishft1.
23711 2010-06-22 Jan Hubicka <jh@suse.cz>
23713 * gimple.h (gimple_expr_code): Do checking on when gimple checking is
23716 2010-06-22 Jan Hubicka <jh@suse.cz>
23718 * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
23719 df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
23720 Return true if something changed.
23721 * df.h (df_confluence_function_n): Return bool.
23722 * df-core.c (df_worklist_propagate_forward,
23723 df_worklist_propagate_backward): Track changes and ages.
23724 (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
23726 * dse.c (dse_confluence_n): Return always true.
23728 2010-06-22 Jan Hubicka <jh@suse.cz>
23730 * bitmap.c (bitmap_clear_bit): Micro optimize.
23732 2010-06-22 Uros Bizjak <ubizjak@gmail.com>
23734 * config/i386/i386.md (SWI1248x): New mode iterator.
23739 (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
23740 SWI1248x mode iterator.
23741 (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
23742 using SWI124 mode iterator.
23743 (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
23745 (*push<mode>2_prologue): Macroize insn from *pushsi2_prologue and
23746 *pushdi2_prologue_rex64 using P mode iterator.
23747 (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
23748 using SWI48 mode iterator.
23749 (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
23750 (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
23751 using SWI1248x mode iterator.
23752 (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
23753 (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
23754 SWI48 mode iterator.
23755 (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
23757 (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
23758 (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
23759 SWI12 mode iterator.
23760 (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
23761 SWI12 mode iterator.
23762 (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
23763 (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
23764 SWI24 mode iterator.
23765 (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
23766 SWI48 mode iterator.
23767 (mov<mode>_insn_1): New expander.
23768 (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
23769 using SWI48x mode iterator.
23771 (*movoi_internal_avx): Rename from *movoi_internal.
23772 (*movti_internal_rex64): Rename from *movti_rex64.
23773 (*movti_internal_sse): Rename from *movti_sse.
23774 (*movdi_internal_rex64): Rename from *movdi_1_rex64.
23775 (*movdi_internal): Rename from *movdi_2.
23776 (*movsi_internal): Rename from *movsi_1.
23777 (*movhi_internal): Rename from *movhi_1.
23778 (*movqi_internal): Rename from *movqi_1.
23780 (insv): Update the call to gen_movsi_insv_1 for rename.
23781 * config/i386/i386.c (promote_duplicated_reg): Ditto.
23783 2010-06-22 Jan Hubicka <jh@suse.cz>
23785 * passes.c (execute_function_todo): Move call of statistics_fini_pass
23787 (execute_todo) ... this one.
23789 2010-06-22 Alan Modra <amodra@gmail.com>
23792 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
23793 * caller-save.c (insert_restore, insert_save): Use non-validate
23794 form of adjust_address.
23796 2010-06-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23799 * config/pa/pa.c (override_options): Disable
23800 -freorder-blocks-and-partition.
23802 2010-06-21 H.J. Lu <hongjiu.lu@intel.com>
23805 * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
23807 * config/i386/i386.md (type): Add sseishft1
23809 * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
23810 (ppro_insn_load): Likewise.
23811 (ppro_insn_store): Likewise.
23812 (ppro_insn_both): Likewise.
23814 * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
23815 (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
23817 (*vec_extractv2di_1_avx): Likewise.
23818 (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
23819 type. Remove atom_unit.
23820 (*vec_extractv2di_1_sse2): Likewise.
23822 2010-06-21 DJ Delorie <dj@redhat.com>
23824 * diagnostic.h (diagnostic_classification_change_t): New.
23825 (diagnostic_context): Add history and push/pop list.
23826 (diagnostic_push_diagnostics): Declare.
23827 (diagnostic_pop_diagnostics): Declare.
23828 * diagnostic.c (diagnostic_classify_diagnostic): Store changes
23829 from pragmas in a history chain instead of the global table.
23830 (diagnostic_push_diagnostics): New.
23831 (diagnostic_pop_diagnostics): New.
23832 (diagnostic_report_diagnostic): Scan history chain to find state
23833 of diagnostics as of the diagnostic location.
23834 * opts.c (set_option): Pass UNKNOWN_LOCATION to
23835 diagnostic_classify_diagnostic.
23836 (enable_warning_as_error): Likewise.
23837 * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
23838 use in the history chain.
23839 * doc/extend.texi: Document pragma GCC diagnostic changes.
23841 2010-06-21 Jakub Jelinek <jakub@redhat.com>
23843 * dwarf2out.c (add_linkage_name): New function. Don't add
23844 anything to DW_TAG_member DIEs.
23845 (add_name_and_src_coords_attributes): Use it.
23846 (gen_variable_die): Call it for C++ static data members if
23847 specification is DW_TAG_member.
23849 * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
23850 C++ char16_t and char32_t.
23852 * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
23853 * genattrtab.c: Include vecprim.h.
23854 (cached_attrs, cached_attr_count, attrs_seen_once,
23855 attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
23856 attrs_cached_after): New variables.
23857 (find_attrs_to_cache): New function.
23858 (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
23859 (write_test_expr): Add attrs_cached argument, return it too,
23860 attempt to cache non-const attributes used more than once in
23861 a single case handling.
23862 (write_attr_get): Use find_attrs_to_cache, for caching candidates
23863 emit cached_* variables. Adjust write_attr_set callers.
23864 (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
23865 to find attributes that should be cached in this block. Adjust
23866 write_test_expr callers.
23867 (write_attr_case): Clear attrs_to_cache. Adjust write_attr_set
23869 (make_automaton_attrs): Adjust write_test_expr caller.
23871 * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
23872 * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
23873 (make_automaton_attrs): If find_tune_attr returns non-NULL,
23874 write separate internal_dfa_insn_code_* and insn_default_latency_*
23875 functions for each attribute's value and emit init_sched_attrs
23876 function and function pointers.
23877 * genattr.c (const_attrs, reservations): New variables.
23878 (gen_attr): Add const attributes to const_attrs vector.
23879 (check_tune_attr, find_tune_attr): New functions.
23880 (main): Add reservations to reservations vector. If find_tune_attr
23881 returns true, add prototype for init_sched_attrs and make
23882 internal_dfa_insn_code and insn_default_latency function pointers,
23883 otherwise define init_sched_attrs as dummy macro.
23884 * cfgexpand.c: Include insn-attr.h.
23885 (gimple_expand_cfg): Call init_sched_attrs.
23887 * stmt.c (resolve_asm_operand_names): Fix handling of %%.
23890 * config/i386/i386.c (ix86_gimplify_va_arg): When copying
23891 va_arg from a set of register save slots into a temporary,
23892 if the container is bigger than type size, do the copying
23893 using smaller mode or using memcpy.
23896 * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
23898 (sel_print_to_dot): Remove macro.
23899 (sel_print): Likewise. New prototype.
23900 * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
23901 (sel_print): New function.
23903 2010-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23905 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
23906 __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
23908 2010-06-21 Nick Clifton <nickc@redhat.com>
23910 * config/rx/rx.h (PTRDIFF_TYPE): Define.
23911 (SMALL_REGISTER_CLASS): Define (to zero).
23912 (PRINT_OPERAND): Delete.
23913 (PRINT_OPERAND_ADDRESS): Delete.
23914 * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
23915 (rx_print_operand_address): Delete prototype.
23916 * config/rx/rx.c (rx_print_operand): Make static.
23917 Allow %H and %L to handle CONST_DOUBLEs.
23918 (rx_print_operand_address): Make static.
23919 (rx_gen_move_template): Rename local variable 'template' to
23921 (rx_function_arg): Do not pass unknown sized objects in registers.
23922 (TARGET_PRINT_OPERAND): Define.
23923 (TARGET_PRINT_OPERAND_ADDRESS): Define.
23925 2010-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
23927 * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
23929 2010-06-21 Kai Tietz <kai.tietz@onevision.com>
23931 * config/i386/i386.c (ix86_compute_frame_layout): Avoid
23932 stack-alignment for simple leaf-functions.
23934 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
23936 * doc/install.texi: Document bootstrap-lto.
23938 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
23941 * lto-streamer-in.c (input_bb): Leave debug stmts alone.
23942 (input_function): Drop them here, if VTA is disabled.
23944 2010-06-20 Uros Bizjak <ubizjak@gmail.com>
23947 * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
23949 * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
23950 ix86_swapped_fp_comparsion_operator instead of
23951 ix86_fp_comparison_operator.
23953 (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
23954 (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
23955 (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
23956 (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
23957 (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
23958 (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
23960 2010-06-20 Joseph Myers <joseph@codesourcery.com>
23963 * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
23964 OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
23965 * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
23966 (decode_cmdline_option): Update for this return value. Set
23967 orig_option_with_args_text field. Set arg field for unknown
23968 options. Make static.
23969 (decode_cmdline_options_to_array): New.
23970 (prune_options): Update handling of find_opt return value.
23971 * opts.c (read_cmdline_option): Take decoded option. Return void.
23972 (read_cmdline_options): Take decoded options.
23973 (decode_options): Add parameters for decoded options. Use
23974 decode_cmdline_options_to_array. Use decoded options for -O
23975 scan. Use integral_argument for -O parameters. Update call to
23976 read_cmdline_options.
23977 (enable_warning_as_error): Update handling of find_opt return value.
23978 * opts.h: Update comment on unknown options.
23979 (struct cl_decoded_option): Update comments on opt_index and arg.
23980 Add orig_option_with_args_text.
23981 (decode_cmdline_option): Remove.
23982 (decode_cmdline_options_to_array): Declare.
23983 (decode_options): Update prototype.
23984 * toplev.c (save_argv): Remove.
23985 (save_decoded_options, save_decoded_options_count): New.
23986 (read_integral_parameter): Remove.
23987 (print_switch_values): Use decoded options.
23988 (toplev_main): Don't set save_argv. Update call to decode_options.
23989 * toplev.h (read_integral_parameter): Remove.
23990 * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
23992 2010-06-19 Richard Earnshaw <rearnsha@arm.com>
23995 * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
23997 * constraints.md (Pw, Px): New constraints.
23998 * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
24000 2010-06-19 H.J. Lu <hongjiu.lu@intel.com>
24002 * config/i386/sse.md (fma4modesuffixf4): Removed.
24003 (ssemodesuffixf2s): Likewise.
24004 (ssemodesuffixf4): Likewise.
24005 (ssemodesuffixf2c): Likewise.
24006 (ssescalarmodesuffix2s): Likewise.
24007 (avxmodesuffixf2c): Likewise.
24008 (ssemodesuffix): New.
24009 (ssescalarmodesuffix): Likewise.
24010 Update patterns with ssemodesuffix and ssescalarmodesuffix.
24012 2010-06-19 Philip Herron <herron.philip@googlemail.com>
24014 * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
24016 2010-06-18 H.J. Lu <hongjiu.lu@intel.com>
24018 * stor-layout.c (debug_rli): Remove unused local variables.
24020 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
24022 PR rtl-optimization/40900
24023 * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line. Save the
24024 original expression for later reuse.
24025 <expand_decl_rtl>: Use promote_function_mode to compute the signedness
24026 of the promoted RTL for a SSA_NAME on the LHS of a call statement.
24028 2010-06-18 Anatoly Sokolov <aesok@post.ru>
24030 * double-int.h (double_int_to_shwi, double_int_to_uhwi,
24031 double_int_fits_in_uhwi_p): Implement as static inline.
24032 (double_int_xor): New inline function.
24033 (double_int_lrotate, double_int_rrotate, double_int_max,
24034 double_int_umax, double_int_smax, double_int_min, double_int_umin,
24035 double_int_smin): Declare.
24036 (lrotate_double, rrotate_double): Remove declaration.
24037 * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
24038 double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
24039 (double_int_lrotate, double_int_rrotate, double_int_max,
24040 double_int_umax, double_int_smax, double_int_min, double_int_umin,
24041 double_int_smin): New function.
24042 * fold-const.c (int_const_binop): Clean up, use double_int_*
24044 * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
24045 double_int_* and immed_double_int_const functions.
24047 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
24049 * function.h (types_used_by_cur_var_decl): Change type to a VEC.
24050 * function.c (types_used_by_cur_var_decl): Likewise.
24051 (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
24053 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
24055 * tree.h (record_layout_info): Change type of pending_statics field
24057 * stor-layout.c (start_record_layout): Store NULL into
24059 (debug_rli): Call debug_vec_tree instead of debug_tree.
24060 (place_field): Likewise.
24061 (finish_record_layout): Likewise.
24063 2010-06-18 Alan Modra <amodra@gmail.com>
24065 * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
24067 2010-06-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
24070 * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
24071 for SET source operand from SET destination operand.
24073 2010-06-17 Bernd Schmidt <bernds@codesourcery.com>
24075 PR rtl-optimization/39871
24076 * reload1.c (init_eliminable_invariants): For flag_pic, disable
24077 equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
24078 (function_invariant_p): Rule out a plus of frame or arg pointer with
24080 * ira.c (find_reg_equiv_invariant_const): Likewise.
24082 2010-06-17 Gunther Nikl <gnikl@users.sourceforge.net>
24084 * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
24085 print_operand_address and puts to output the operand for CONST.
24087 2010-06-17 Jakub Jelinek <jakub@redhat.com>
24090 * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
24093 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
24095 * v850-protos.h (print_operand): Delete.
24096 (print_operand_address): Delete.
24097 * v850.h (PRINT_OPERAND): Delete.
24098 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
24099 (PRINT_OPERAND_ADDRESS): Delete.
24100 * v850.c (print_operand_address): Rename to...
24101 (v850_print_operand_address): ...this. Make static. Call
24102 v850_print_operand.
24103 (print_operand): Rename to...
24104 (v850_print_operand): ...this. Make static. Call
24105 v850_print_operand_address.
24106 (v850_print_operand_punct_valid_p): New function.
24107 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
24108 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
24110 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
24112 * config/sh/sh-protos.h (print_operand): Delete.
24113 (print_operand_address): Delete.
24114 * config/sh/sh.h (PRINT_OPERAND): Delete.
24115 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
24116 (PRINT_OPERAND_ADDRESS): Delete.
24117 * config/sh/sh.c (sh_print_operand_address): Make static.
24118 (sh_print_operand): Make static. Call sh_print_operand_address
24119 and sh_print_operand.
24120 (sh_print_operand_punct_valid_p): New function.
24121 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
24122 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
24124 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
24126 * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
24127 (mcore_print_operand_address): Delete.
24128 * config/mcore/mcore.h (PRINT_OPERAND): Delete.
24129 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
24130 (PRINT_OPERAND_ADDRESS): Delete.
24131 * config/mcore/mcore.c (mcore_print_operand_address): Make static.
24132 (mcore_print_operand): Make static.
24133 (mcore_print_operand_punct_valid_p): New function.
24134 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
24135 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
24137 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
24139 * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
24140 (print_operand_address): Delete.
24141 * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
24142 (PRINT_OPERAND_ADDRESS): Delete.
24143 * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
24145 (m68hc11_print_operand): Make static.
24146 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
24148 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
24150 * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
24151 (m32r_print_operand_address): Delete.
24152 * config/m32r/m32r.h (m32r_punct_chars): Delete.
24153 (PRINT_OPERAND): Delete.
24154 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
24155 (PRINT_OPERAND_ADDRESS): Delete.
24156 * config/m32r/m32r.c (m32r_punct_chars): Make static.
24157 (m32r_print_operand_address): Make static.
24158 (m32r_print_operand): Make static.
24159 (m32r_print_operand_punct_valid_p): New function.
24160 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
24161 (TARGET_PRINT_OPERAND_ADDRESS): Define.
24163 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
24165 * config/iq2000/iq2000-protos.h (print_operand): Delete.
24166 (print_operand_address): Delete.
24167 * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
24168 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
24169 (PRINT_OPERAND_ADDRESS): Delete.
24170 (iq2000_print_operand_punct): Delete.
24171 * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
24172 (iq2000_print_operand_address): Make static.
24173 (iq2000_print_operand): Make static.
24174 (iq2000_print_operand_punct_valid_p): New function.
24175 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
24176 (TARGET_PRINT_OPERAND_ADDRESS): Define.
24178 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
24180 * config/frv/frv-protos.h (frv_print_operand): Delete.
24181 (frv_print_operand_address): Delete.
24182 * config/frv/frv.h (PRINT_OPERAND): Delete.
24183 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
24184 (PRINT_OPERAND_ADDRESS): Delete.
24185 * config/frv/frv.c (frv_print_operand_address): Make static.
24186 (frv_print_operand): Make static.
24187 (frv_print_operand_punct_valid_p): New function.
24188 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
24189 (TARGET_PRINT_OPERAND_ADDRESS): Define.
24191 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
24193 * tree.h (vec_member): Declare.
24194 * tree.c (vec_member): Define.
24196 2010-06-17 Richard Guenther <rguenther@suse.de>
24198 * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
24199 * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
24201 2010-06-17 Richard Guenther <rguenther@suse.de>
24203 * tree-inline.c (declare_return_variable): Remove bogus code.
24205 2010-06-17 Richard Guenther <rguenther@suse.de>
24207 * gimplify.c (gimplify_bind_expr): Always promote complex
24208 and vector variables to registers if possible.
24210 2010-06-17 Richard Guenther <rguenther@suse.de>
24212 * expr.c (get_inner_reference): Use double_int for bit_offset
24215 2010-06-16 DJ Delorie <dj@redhat.com>
24217 * common.opt (-fstrict-volatile-bitfields): new.
24218 * doc/invoke.texi: Document it.
24219 * fold-const.c (optimize_bit_field_compare): For volatile
24220 bitfields, use the field's type to determine the mode, not the
24222 * expr.c (expand_assignment): Likewise.
24223 (get_inner_reference): Likewise.
24224 (expand_expr_real_1): Likewise.
24225 * expmed.c (store_fixed_bit_field): Likewise.
24226 (extract_bit_field_1): Likewise.
24227 (extract_fixed_bit_field): Likewise.
24229 2010-06-16 Richard Guenther <rguenther@suse.de>
24231 * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
24233 2010-06-16 Douglas B Rupp <rupp@gnat.com>
24235 * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
24236 (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
24237 * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
24238 * debug.c: Likewise.
24239 * sdbout.c: Likewise.
24240 * vmsdbgout.c: Likewise.
24241 * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
24242 * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
24243 * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
24244 (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
24245 * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
24246 * dwarf2out.c (dw_fde_struct): New fields
24247 dw_fde_vms_{end,begin}_prologue.
24248 (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
24249 (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
24250 (dwarf2out_vms_end_prologue): New function.
24251 (dwarf2out_vms_begin_epilogue): New function.
24252 (dw_val_struct): New value dw_val_class_vms_delta.
24253 (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
24254 begin_epilogue for VMS.
24255 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
24256 new static functions.
24257 (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
24258 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
24260 (print_die): New case dw_val_class_vms_delta.
24261 (attr_checksum): Likewise.
24262 (same_dw_val_p: Likewise.
24263 (size_of_die): Likewise.
24264 (value_format): Likewise.
24265 (output_die): Likewise.
24266 (gen_subprogram_die): Call add_AT_vms_delta on VMS.
24267 (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
24268 * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
24269 dwarf2out_cfi_begin_epilogue
24270 * final.c (final_scan_insn): Likewise. Call begin_epilogue.
24272 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
24274 * config/cris/cris-protos.h (cris_print_operand): Delete.
24275 (cris_print_operand_address): Delete.
24276 * config/cris/cris.h (PRINT_OPERAND): Delete.
24277 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
24278 (PRINT_OPERAND_ADDRESS): Delete.
24279 * config/cris/cris.c (cris_print_operand_address): Make static.
24280 (cris_print_operand): Make static.
24281 (cris_print_operand_punct_valid_p): New function.
24282 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
24283 (TARGET_PRINT_OPERAND_ADDRESS): Define.
24285 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
24287 * config/arm/arm-protos.h (arm_print_operand): Delete.
24288 (arm_print_operand_address): Delete.
24289 * config/arm/arm.h (PRINT_OPERAND): Delete.
24290 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
24291 (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
24292 (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
24293 * config/arm/arm.c (arm_print_operand_address): ...here. New function.
24294 (arm_print_operand): Make static.
24295 (arm_print_operand_punct_valid_p): New function.
24296 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
24297 (TARGET_PRINT_OPERAND_ADDRESS): Define.
24299 2010-06-16 Nick Clifton <nickc@redhat.com>
24301 * config/rx/constraints.md (NEGint4): New constraint.
24302 * config/rx/rx.md (attr cc): Add set_zsc.
24303 (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
24306 (call_internal): Clobber the cc0 register.
24307 (call_value_internal): Likewise.
24308 (cstoresi4): Likewise.
24309 (movsieq): Likewise.
24310 (movsine): Likewise.
24311 (addsi3): Add alternative to handle small negative constants.
24312 (sunsi3): Likewise.
24313 (addsi3): Do not set the O bit in the cc0 register.
24314 (adddi3): Likewise.
24315 (subsi3): Likewise.
24316 (subdi3): Likewise.
24317 (andsi3): Reorder alternatives to prefer shorter forms.
24318 (mulsi3): Likewise.
24319 (iorsi3): Likewise.
24320 (negsi2): Note that the cc0 flags are set.
24321 (rotlsi3): Note that only the Z and S bits are set in cc0.
24322 (lshrsi3): Likewise.
24323 (ashlsi3): Likewise.
24324 (subsf3): Use %Q for the MEM operand.
24325 (fix_truncsfsi2): Likewise.
24326 (floatsisf2): Likewise.
24327 (bitset): Remove early clobber from destination.
24328 (bitset_in_memory): Likewise.
24329 (lrintsf2): Clobber the cc0 register.
24330 * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
24331 (rx_print_operand): Handle %N.
24333 2010-06-16 Jan Hubicka <jh@suse.cz>
24335 * df-core.c (df_compact_blocks): Free problem_temps vector.
24337 2010-06-16 Martin Jambor <mjambor@suse.cz>
24339 PR tree-optimization/43905
24340 * tree-sra.c: Include tree-inline.h.
24341 (create_abstract_origin): Removed.
24342 (modify_function): Version the call graph node instead of creating
24343 abstract origins and dealing with same_body aliases.
24344 * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
24345 function is versionable.
24346 * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
24348 2010-06-16 Maxim Kuvyrkov <maxim@codesourcery.com>
24350 * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
24351 (CHOOSE_DYNAMIC_LINKER): Update.
24353 2010-06-15 Uros Bizjak <ubizjak@gmail.com>
24355 * config/i386/i386.c (*prefetch_sse_<mode>): Macroize insn from
24356 *prefetch_sse and *prefetch_sse_rex using P mode iterator.
24357 (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
24358 *prefetch_3dnow_rex.
24360 2010-06-15 Anatoly Sokolov <aesok@post.ru>
24362 * target.h (struct asm_out):Add declare_constant_name field.
24363 * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
24364 (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
24365 * output.h (default_asm_declare_constant_name): Declare.
24366 (assemble_label): Update prototype.
24367 * varasm.c (assemble_constant_contents): Use
24368 targetm.asm_out.declare_constant_name target hook.
24369 (assemble_label): Add 'file' argument.
24370 (default_asm_declare_constant_name): New function.
24371 * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
24372 * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
24373 (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
24375 * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
24376 * config/darwin.c (darwin_asm_declare_constant_name): New function.
24377 (machopic_output_indirection): Update assemble_label argument list.
24378 * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
24379 (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
24381 2010-06-15 Sebastian Pop <sebastian.pop@amd.com>
24383 PR middle-end/44391
24384 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
24385 size_one_node for pointer types. Do not call gmp_cst_to_tree.
24387 2010-06-15 Richard Guenther <rguenther@suse.de>
24389 * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
24391 2010-06-15 Paul Brook <paul@codesourcery.com>
24393 * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
24396 2010-06-15 Alexandre Oliva <aoliva@redhat.com>
24398 * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
24399 don't get a vector type for output.
24401 2010-06-15 Jakub Jelinek <jakub@redhat.com>
24404 * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
24405 * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
24406 (LANG_HOOKS_DECLS): Add it.
24407 * gimplify.c (omp_notice_variable): Call
24408 lang_hooks.decls.omp_report_decl.
24410 2010-06-15 Martin Jambor <mjambor@suse.cz>
24413 * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
24414 on the newly dead SSA name.
24416 2010-06-15 Alan Modra <amodra@gmail.com>
24418 * doc/invoke.texi: Add mcmodel to powerpc options.
24419 * configure.ac: Add HAVE_LD_LARGE_TOC test.
24420 * configure: Regenerate.
24421 * config.in: Regenerate.
24422 * config/rs6000/linux64.opt (mcmodel): New.
24423 * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
24424 (TARGET_CMODEL, SET_CMODEL): Define.
24425 (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
24426 select CMODEL_MEDIUM default.
24427 * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
24428 (TARGET_CMODEL): Define default.
24429 * config/rs6000/rs6000.c (cmodel): New variable.
24430 (rs6000_explicit_options): Add cmodel field.
24431 (rs6000_handle_option): Handle -mcmodel.
24432 (create_TOC_reference): Add largetoc_reg param. Generate high,
24433 lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE. Update all callers.
24434 (rs6000_delegitimize_address): Recognise new toc reference rtl
24435 and minimal-toc rtl.
24436 (rs6000_legitimize_reload_address): Handle new toc references.
24437 (print_operand_address): Handle legitimate_constant_pool_address_p
24438 match before lo_sum.
24439 (rs6000_eliminate_indexed_memrefs): Tidy.
24440 (rs6000_emit_move): Tweak threshold for inlining constants.
24441 Keep rs6000_emit_allocate_stack large stack frame offsets
24442 loaded into r0 inline.
24443 (rs6000_generate_compare <cmptf_internal2>): One more clobber.
24444 (tocrel_base, tocrel_offset): New variables.
24445 (toc_relative_expr_p): Set them here.
24446 (print_operand_address): Skip over any offset on constant pool address.
24447 (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
24448 (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
24449 (offsettable_ok_by_alignment): New function.
24450 (rs6000_emit_move): Address suitably aligned local symbol_refs
24451 relative to the toc pointer for -mcmodel=medium.
24452 (legitimate_constant_pool_address_p): Make param const_rtx. Add
24453 strict param. Allow lo_sum version of addressing. Verify reg
24454 used for -mminimal-toc and -mcmodel != small. Update all callers.
24455 * config/rs6000/constraints.md: Update for above change.
24456 * config/rs6000/predicates.md: Likewise.
24457 * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
24459 (tls_gd): Split for -mcmodel=medium/large.
24460 (tls_gd_high, tls_gd_low): New.
24461 (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
24462 (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
24463 (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
24464 (largetoc_high, largetoc_low): New.
24465 (cmptf_internal2): Add clobber.
24466 * config/rs6000/rs6000-protos.h: Update.
24468 2010-06-14 Changpeng Fang <changpeng.fang@amd.com>
24470 * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New. Return
24471 true if no prefetch is going to be generated for a given group.
24472 (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
24473 estimate the prefetch_count.
24474 (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
24475 prefetch count by considering the unroll_factor and prefetch_mod
24476 for is_loop_prefetching_profitable.
24478 2010-06-14 Andreas Schwab <schwab@linux-m68k.org>
24480 * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
24481 anything if the argument is not a MEM.
24483 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
24488 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
24490 (canonicalize_loop_ivs): Likewise.
24492 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
24495 * haifa-sched.c (setup_insn_reg_pressure_info,
24496 update_register_pressure): Reject debug insns.
24497 (ready_sort): Don't setup reg pressure for debug insns.
24498 (schedule_insn): Don't update reg pressure for debug insns.
24500 2010-06-14 Richard Guenther <rguenther@suse.de>
24502 * lto-streamer.c (cached_bp): Remove.
24503 (bitpack_delete): Likewise.
24504 (bitpack_create): Likewise.
24505 (bp_get_next_word): Likewise.
24506 (bp_pack_value, bp_unpack_value): Move ...
24507 * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
24509 (struct bitpack_d): Likewise.
24510 (bitpack_create, lto_output_bitpack, lto_input_bitpack):
24511 New inline functions.
24512 * lto-streamer-out.c (lto_output_bitpack): Remove.
24513 (pack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
24514 (pack_value_fields): Adjust.
24515 (lto_write_tree): Likewise.
24516 (output_gimple_stmt): Likewise.
24517 (output_function): Likewise.
24518 * lto-streamer-in.c (input_gimple_stmt): Adjust.
24519 (input_function): Likewise.
24520 (unpack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
24521 (lto_input_bitpack): Remove.
24522 (lto_materialize_tree): Adjust.
24523 * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
24524 * lto-cgraph.c (lto_output_edge): Adjust.
24525 (lto_output_node): Likewise.
24526 (lto_output_varpool_node): Likewise.
24527 (lto_output_ref): Likewise.
24528 (input_node): Likewise.
24529 (input_varpool_node): Likewise.
24530 (input_ref): Likewise.
24531 (input_edge): Likewise.
24532 (output_node_opt_summary): Likewise.
24533 (input_node_opt_summary): Likewise.
24534 * ipa-pure-const.c (pure_const_write_summary): Likewise.
24535 (pure_const_read_summary): Likewise.
24536 * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
24537 (ipa_read_indirect_edge_info): Likewise.
24538 (ipa_write_node_info): Likewise.
24539 (ipa_read_node_info): Likewise.
24541 2010-06-14 H.J. Lu <hongjiu.lu@intel.com>
24544 * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
24545 (vec_extract_lo_v16hi): Likewise.
24546 (vec_extract_lo_v32qi): Likewise.
24548 2010-06-14 Jakub Jelinek <jakub@redhat.com>
24551 * tree.h (build_call_expr): Don't define as vararg macro, instead
24553 * builtins.c (build_call_nofold): Remove.
24554 (expand_builtin_int_roundingfn, expand_builtin_pow,
24555 expand_builtin_mempcpy_args, expand_builtin_stpcpy,
24556 expand_builtin_memset_args, expand_builtin_strcmp,
24557 expand_builtin_strncmp, expand_builtin_memory_chk): Use
24558 build_call_nofold_loc instead of build_call_nofold.
24559 (build_call_expr): New function.
24561 PR tree-optimization/44508
24562 * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
24563 * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
24564 don't eliminate trivially dead stmts.
24565 * tree-vrp.c (vrp_finalize): Pass false as last argument
24566 to substitute_and_fold.
24567 * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
24568 to substitute_and_fold.
24569 * tree-ssa-ccp.c (ccp_finalize): Likewise.
24572 * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
24574 2010-06-14 Ira Rosen <irar@il.ibm.com>
24576 PR tree-optimization/44507
24577 * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
24578 to build initial vector for BIT_AND_EXPR.
24579 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
24581 2010-06-14 Jakub Jelinek <jakub@redhat.com>
24583 * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
24584 adjust z10prop set_attr.
24586 2010-06-13 Jan Hubicka <jh@suse.cz>
24588 * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
24589 bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
24590 bitmap_ior_into, bitmap_xor, bitmap_xor_into,
24591 bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
24592 datastructure checks into checking asserts.
24593 * rtlanal.c (find_reg_note): Use gcc_checking_assert.
24594 * tree-ssa-sccvn.c (VN_INFO): Likewise.
24595 * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
24596 df_ref_create_structure): Likewise.
24597 * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
24598 pool_free): Use gcc_checking_assert.
24599 * alias.c (get_alias_set): Likewise.
24600 * var-tracking.c (variable_htab_free, shared_hash_copy,
24601 canonicalize_values_mark, variable_merge_over_cur): Likewise.
24602 * lto-streamer.c (bp_unpack_value): Likewise.
24604 2010-06-13 Richard Guenther <rguenther@suse.de>
24606 * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
24607 Do not stream but initialize TYPE_CANONICAL to NULL.
24608 (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
24609 * gimple.c (gimple_types_compatible_p): Disregard
24610 TYPE_STRUCTURAL_EQUALITY_P.
24611 (gimple_register_type): Use TYPE_CANONICAL as cache.
24612 * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
24613 before registering common types.
24614 * config/i386/i386.c (ix86_function_arg_boundary): Do not
24615 use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
24616 * tree.h (TYPE_CANONICAL): Clarify documentation.
24618 2010-06-13 Anatoly Sokolov <aesok@post.ru>
24620 * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
24621 LIBCALL_VALUE): Remove macros.
24622 * config/ia64/ia64-protos.h (ia64_function_value): Remove.
24623 * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
24624 TARGET_FUNCTION_VALUE_REGNO_P): Define.
24625 (ia64_libcall_value, ia64_function_value_regno_p): New functions.
24626 (ia64_function_value): Make static. Handle receiving the function
24627 type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
24629 2010-06-12 Jan Hubicka <jh@suse.cz>
24631 * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
24634 2010-06-12 Bernd Schmidt <bernds@codesourcery.com>
24636 * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
24638 2010-06-12 Jan Hubicka <jh@suse.cz>
24640 * df-core.c (df_clear_bb_info): New function.
24641 (df_set_blocks): bb_info is always allocated.
24642 (df_get_bb_info): Use block_info_elt_size.
24643 (df_set_bb_info): Likewise.
24644 (df_compact_blocks): Update for new block_info.
24645 (grow_bb_info): New function.
24646 * df-problems.c (df_grow_bb_info): Move to df-core.c
24647 (df_rd_set_bb_info): Remove.
24648 (df_rd_free_bb_info): Do not free block pool.
24649 (df_rd_alloc): Do not create pool, use check for
24650 obstack presence instead of NULL pointer for new blocks.
24651 (df_rd_free): DO not free alloc pool; clear block_info.
24652 (problem_RD): Add size of block info structure.
24653 (df_lr_set_bb_info): Remove.
24654 (df_lr_free_bb_info): Do not free block pool.
24655 (df_lr_alloc): Do not create pool, use check for
24656 obstack presence instead of NULL pointer for new blocks.
24657 (df_lr_free): DO not free alloc pool; clear block_info.
24658 (problem_LR): Add size of block info structure.
24659 (df_live_set_bb_info): Remove.
24660 (df_live_free_bb_info): Do not free block pool.
24661 (df_live_alloc): Do not create pool, use check for
24662 obstack presence instead of NULL pointer for new blocks.
24663 (df_live_free): DO not free alloc pool; clear block_info.
24664 (problem_LIVE): Add size of block info structure.
24665 (problem_CHAIN): Add size of block info structure.
24666 (df_byte_lr_set_bb_info): Remove.
24667 (df_byte_lr_free_bb_info): Do not free block pool.
24668 (df_byte_lr_alloc): Do not create pool, use check for
24669 obstack presence instead of NULL pointer for new blocks.
24670 (df_byte_lr_free): DO not free alloc pool; clear block_info.
24671 (problem_BYTE_LR): Add size of block info structure.
24672 (problem_NOTE): Add size of block info structure.
24673 (df_byte_MD_set_bb_info): Remove.
24674 (df_byte_MD_free_bb_info): Do not free block pool.
24675 (df_byte_MD_alloc): Do not create pool, use check for
24676 obstack presence instead of NULL pointer for new blocks.
24677 (df_byte_MD_free): DO not free alloc pool; clear block_info.
24678 (problem_BD): Add size of block info structure.
24679 * df-scan.c (df_scan_free_internal): Free block pool.
24680 (df_scan_set_bb_info): Remove.
24681 (df_scan_free_bb_info): Check for artificial_defs instead
24682 of bb_info being non-NULL.
24683 (df_scan_alloc): DO not create df_scan_block pool.
24684 (problem_SCAN): Set size of block info.
24685 (df_bb_refs_record): Do not allocate bb_info.
24686 * df.h (df_problem): Add block_info_elt_size.
24687 (struct dataflow): Change block_info to void *.
24688 (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
24689 df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
24690 in-line structures.
24692 2010-06-12 Jan Hubicka <jh@suse.cz>
24694 PR tree-optimize/44485
24695 * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
24696 containing use of return value of noreturn function.
24698 2010-06-12 Anatoly Sokolov <aesok@post.ru>
24700 * targhooks.c (default_function_value): Don't use
24701 FUNCTION_OUTGOING_VALUE.
24702 * system.h (FUNCTION_OUTGOING_VALUE): Poison.
24703 * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
24705 2010-06-12 Kazu Hirata <kazu@codesourcery.com>
24707 * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
24708 Add crtfastmath.o to extra_parts.
24709 * config/mips/crtfastmath.c: New.
24710 * config/mips/linux.h (ENDFILE_SPEC): New.
24712 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
24714 * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
24715 old_type in parameter.
24716 (gcc_type_for_value): Update call to gcc_type_for_interval.
24717 (compute_type_for_level_1): Renamed compute_type_for_level.
24718 Update call to gcc_type_for_interval.
24720 2010-06-11 Joseph Myers <joseph@codesourcery.com>
24722 * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
24723 flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
24725 2010-06-11 Joseph Myers <joseph@codesourcery.com>
24727 * opts-common.c: Include options.h.
24728 (integral_argument): Move from opts.c.
24729 (decode_cmdline_option): New. Based on read_cmdline_option.
24730 * opts.c (integral_argument): Move to opts-common.c.
24731 (read_cmdline_option): Move most contents to
24732 decode_cmdline_option. Use %qs in diagnostics.
24733 * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
24734 CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
24735 decode_cmdline_option): New.
24737 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
24740 * config/i386/i386.md (UNSPEC_PARITY): New unspec.
24741 (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
24742 (partiysi2_cmp): Ditto.
24743 (*partiyhi2_cmp): Ditto.
24744 (*parityqi2_cmp): Remove.
24746 2010-06-11 Jan Hubicka <jh@suse.cz>
24748 * bitmap.h (bmp_iter_next_bit): New.
24749 (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
24751 2010-06-11 Sandra Loosemore <sandra@codesourcery.com>
24752 Eric Botcazou <ebotcazou@adacore.com>
24754 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
24757 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
24759 * config/i386/i386.md (unspec): New define_c_enum.
24762 2010-06-10 Jakub Jelinek <jakub@redhat.com>
24764 * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
24766 2010-06-11 Sebastian Pop <sebastian.pop@amd.com>
24768 PR middle-end/44483
24769 * tree-if-conv.c (bb_predicate_s): New struct.
24770 (bb_predicate_p): New.
24771 (bb_has_predicate): New.
24772 (bb_predicate): New.
24773 (set_bb_predicate): New.
24774 (bb_predicate_gimplified_stmts): New.
24775 (set_bb_predicate_gimplified_stmts): New.
24776 (add_bb_predicate_gimplified_stmts): New.
24777 (init_bb_predicate): New.
24778 (free_bb_predicate): New.
24779 (is_predicated): Use bb_predicate.
24780 (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
24781 (predicate_bbs): Same. Gimplify the condition of the basic blocks
24782 before processing their successors.
24783 (clean_predicate_lists): Removed.
24784 (find_phi_replacement_condition): Use bb_predicate.
24785 (process_phi_nodes): Renamed ifconvert_phi_nodes. Avoid useless
24787 (insert_gimplified_predicates): New.
24788 (combine_blocks): Call insert_gimplified_predicates.
24789 (tree_if_conversion): Call free_bb_predicate instead of
24790 clean_predicate_lists.
24792 2010-10-11 Paul Brook <paul@codesourcery.com>
24794 * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
24795 * config/arm/arm.c (all_architectures): Change v7e-m default to
24797 * config/arm/arm-cores.def: Add cortex-m4.
24798 * config/arm/arm-tune.md: Regenerate.
24800 2010-06-11 Jan Hubicka <jh@suse.cz>
24802 * ipa-pure-const.c (special_builtlin_state): New function.
24803 (check_call): Use it instead of special casign BUILT_IN_RETURN.
24804 (propagate_pure_const): Use it.
24806 2010-06-11 Jan Hubicka <jh@suse.cz>
24808 * df-problems.c (df_live_scratch): Convert to bitmap_head.
24809 (df_live_alloc): Initialize df_live_scratch when initializing
24811 (df_live_transfer_function): Update uses of df_live_scratch.
24812 (df_live_free): Free problem_data; clear df_live_scratch before
24813 releasing the obstack.
24814 (df_md_free): Free problem data.
24816 2010-06-11 Jan Hubicka <jh@suse.cz>
24818 * doc/invoke.texi (Wsuggest-attribute): Document.
24819 (Wmissing-noreturn): Remove.
24820 * ipa-pure-const.c (warn_function_noreturn): New function.
24821 * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
24822 warn_missing_noreturn.
24823 * common.opt (Wsuggest-attribute=noreturn): New.
24824 * tree-flow.h (warn_function_noreturn): Declare.
24825 * tree-cfg.c (execute_warn_function_noreturn): Use
24826 warn_function_noreturn.
24827 (gate_warn_function_noreturn): New.
24828 (pass_warn_function_noreturn): Update.
24830 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
24832 * c-typeck.c (handle_warn_cast_qual): Add loc
24833 parameter. Improve warning message.
24834 (build_c_cast): Pass location to handle_warn_cast_qual.
24836 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
24838 * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
24839 that operand 0 == operand 1. Use x86_maybe_negate_const_int to output
24841 (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
24843 2010-06-10 Dodji Seketeli <dodji@redhat.com>
24845 Fix bootstap on mips
24846 * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
24847 be naming typedefs.
24849 2010-06-11 Kai Tietz <kai.tietz@onevision.com>
24851 * system.h (helper_const_non_const_cast): New inline for
24852 gcc version <= 4.0.
24853 (CONST_CAST2): For gcc version <= 4.0 use
24854 new helper to do const/non-const casting.
24856 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
24858 * doc/md.texi: Document the "unspec" and "unspecv" enum names.
24859 * Makefile.in (OBJS-common): Include insn-enums.o.
24860 (insn-enums.o): New rule.
24861 (simple_generated_c): Add insn-enums.c.
24862 (build/genenums.o): New rule.
24863 (genprogmd): Add "enums".
24864 * genconstants.c (print_enum_type): Declare a C string array
24866 * genenums.c: New file.
24867 * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
24868 for UNSPEC_VOLATILE. If defined, use the "unspec" enum for both
24869 UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
24871 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
24873 * doc/md.texi (define_enum_attr): Document.
24874 * rtl.def (DEFINE_ENUM_ATTR): New rtx.
24875 * read-md.h (lookup_enum_type): Declare.
24876 * read-md.c (lookup_enum_type): New function.
24877 * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
24878 * genattrtab.c (attr_desc): Add an enum_name field.
24879 (evaluate_eq_attr): Take the associated attribute as argument.
24880 Get the enum prefix from the enum_name field, if defined.
24881 Use ACONCAT rather than a fixed-length buffer. Update recursive calls.
24882 (simplify_test_exp): Pass attr to evaluate_eq_attr.
24883 (add_attr_value): New function, split out from...
24884 (gen_attr): ...here. Handle DEFINE_ENUM_ATTR.
24885 (write_test_expr): Pass attr to evaluate_eq_attr.
24886 (write_attr_get): Use the enum_name as the enum tag, if defined.
24887 (write_attr_valueq): Use the enum_name as a prefix, if defined.
24888 (find_attr): Initialize enum_name.
24889 (main): Handle DEFINE_ENUM_ATTR.
24890 * gensupport.c (process_rtx): Likewise.
24891 * config/mips/mips.h (mips_tune_attr): Delete.
24892 * config/mips/mips.md (cpu): Use define_attr_enum.
24894 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
24896 * doc/md.texi (define_c_enum, define_enum): Document.
24897 * read-md.h (md_constant): Add a parent_enum field.
24898 (enum_value, enum_type): New structures.
24899 (upcase_string, traverse_enum_types): Declare.
24900 * read-md.c (enum_types): New variable.
24901 (upcase_string, add_constant): New functions.
24902 (handle_constants): Don't create the hash table here.
24904 (traverse_md_constants): Don't check for a null md_constants.
24905 (decimal_string, handle_enum, traverse_enum_types): New functions.
24906 (read_md_files): Initialize md_constants and md_enums.
24907 * genconstants.c (print_md_constant): Ignore info argument.
24908 Only print constants that belong to no enum.
24909 (print_enum_type): New function.
24910 (main): Don't pass stdout to print_md_constant. Call print_enum_type
24911 for each defined enum type.
24912 * config/mips/mips.md (processor): New define_enum.
24913 (unspec): New define_c_enum.
24914 (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
24915 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
24916 (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
24917 (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
24918 (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
24919 (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
24920 (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
24921 (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
24922 (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
24923 (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
24924 (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
24925 (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
24926 (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
24927 (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
24928 (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
24929 (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
24930 (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
24931 (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
24932 (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
24933 (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
24934 (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
24935 (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
24936 (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
24937 (UNSPEC_RDDSP): Move to mips-dsp.md.
24938 (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
24939 (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
24940 (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
24941 (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
24942 (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
24943 (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
24944 (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
24945 (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
24946 (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
24947 (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
24948 (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
24949 (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
24950 (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
24951 Moved to mips-dspr2.md.
24952 (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
24953 (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
24954 (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
24955 (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
24956 (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
24957 (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
24958 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
24959 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
24960 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
24961 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
24962 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
24963 UNSPEC_LOONGSON_PSADBH)
24964 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
24965 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
24966 (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
24967 (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
24968 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
24969 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
24970 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
24971 (cpu): Update comment.
24972 * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
24973 (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
24974 (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
24975 (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
24976 * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
24977 UNSPEC_LOONGSON_PCMPEQ)
24978 (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
24979 UNSPEC_LOONGSON_PINSR_0)
24980 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
24981 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
24982 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
24983 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
24984 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
24985 UNSPEC_LOONGSON_PSADBH)
24986 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
24987 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
24988 (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
24989 * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
24990 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
24991 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
24992 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
24993 * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
24994 (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
24995 (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
24996 (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
24997 (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
24998 (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
24999 (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
25000 (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
25001 (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
25002 (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
25003 (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
25004 (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
25005 (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
25006 (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
25007 (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
25008 (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
25009 (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
25010 (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
25011 (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
25012 (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
25013 (UNSPEC_RDDSP): Moved from mips.md.
25014 * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
25015 (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
25016 (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
25017 (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
25018 (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
25019 (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
25020 (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
25021 (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
25022 (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
25023 (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
25024 (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
25025 (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
25026 (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
25027 (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
25028 * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
25029 (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
25030 (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
25031 (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
25032 (UNSPEC_SCC): Moved from mips.md.
25033 * config/mips/mips.c (mips_arch, mips_tune): Change enum from
25034 "processor_type" to "processor".
25035 (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
25036 * config/mips/mips.h (processor_type): Delete.
25037 (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
25038 "processor_type" to "processor".
25040 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
25042 * configure.ac (tm_include_list): Add insn-constants.h.
25043 * configure: Regenerate.
25044 * Makefile.in (GTM_H): Move insn-constants.h here from...
25046 * mkconfig.sh: Remove special handling for insn-constants.h.
25048 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
25050 * Makefile.in (BUILD_RTL): Move build/read-md.o to...
25051 (BUILD_MD): ...this new variable.
25052 (simple_generated_rtl_h, simple_generated_rtl_c): New variables
25053 that include the old contents of simple_generated_h and
25054 simple_generated_c.
25055 (simple_generated_h, simple_generated_c): Include them. Add
25057 (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
25058 and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
25059 Remove these dependencies from the main rule and include
25060 insn-conditions.md in the command line only if it appears
25061 in the dependency list.
25062 (insn-constants.h, s-constants): Delete.
25063 (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
25065 (build/genmddeps.o): Likewise.
25066 (genprogrtl): New variable that contains everything from genprogmd
25067 except mddeps and constants.
25068 (genprogmd): Redefine in terms of genprogrtl. Make these programs
25069 depend on $(BUILD_MD)
25070 (genprog): New variable. Make these programs depend on
25072 * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
25073 (main): Use read_md_files instead of init_rtx_reader_args.
25074 * genconstants.c: As for genmddeps.c.
25075 * read-md.h (read_skip_construct): Declare.
25076 * read-md.c (read_skip_construct): New function.
25077 (handle_file): Allow a null handle_directive, skipping the
25079 (parse_include): Update the comment accordingly.
25081 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
25083 * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
25084 * genmddeps.c: Include read-md.h.
25085 (main): Call init_rtx_reader_args instead of init_md_reader_args.
25086 * genattr.c (main): Likewise.
25087 * genattrtab.c (main): Likewise.
25088 * genautomata.c (main): Likewise.
25089 * gencodes.c (main): Likewise.
25090 * genconditions.c (main): Likewise.
25091 * genconfig.c (main): Likewise.
25092 * genconstants.c (main): Likewise.
25093 * genemit.c (main): Likewise.
25094 * genextract.c (main): Likewise.
25095 * genflags.c (main): Likewise.
25096 * genopinit.c (main): Likewise.
25097 * genoutput.c (main): Likewise.
25098 * genpeep.c (main): Likewise.
25099 * genrecog.c (main): Likewise.
25100 * genpreds.c (main): Likewise.
25101 * gensupport.h (in_fname): Move to read-md.h.
25102 (init_md_reader_args_cb): Rename to...
25103 (init_rtx_reader_args_cb): ...this and return a bool.
25104 (init_md_reader_args): Rename to...
25105 (init_rtx_reader_args): ...this and return a bool.
25106 (include_callback): Move to read-md.h.
25107 * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
25108 (file_name_list, first_dir_md_include): Move to read-md.c
25109 (first_bracket_include): Delete unused variable.
25110 (last_dir_md_include): Move to read-md.c.
25111 (process_include): Delete, moving code to read-md.c:handle_include.
25112 (process_rtx): Don't handle INCLUDE.
25113 (save_string): Delete.
25114 (rtx_handle_directive): New function.
25115 (init_md_reader_args_cb): Rename to...
25116 (init_rtx_reader_args_cb): ...this and return a boolean success value.
25118 (init_md_reader_args): Rename to...
25119 (init_rtx_reader_args): ...this and return a boolean success value.
25120 * rtl.def (INCLUDE): Delete.
25121 * rtl.h (read_rtx): Remove "int *" argument. Add "const char *"
25123 * read-rtl.c (read_conditions): Don't gobble ')' here.
25124 (read_mapping): Likewise.
25125 (read_rtx): Remove LINENO argument. Add RTX_NAME argument.
25126 Handle top-level non-rtx constructs here rather than in read_rtx_1.
25127 Store the whole queue in *X. Remove call to init_md_reader.
25128 (read_rtx_1): Rename to...
25129 (read_rtx_code): ...this. Call read_nested_rtx to read subrtxes.
25130 Don't handle top-level non-rtx constructs here. Don't handle (nil)
25132 (read_nested_rtx): New function. Handle (nil) here rather than
25134 (read_rtx_variadic): Call read_nested_rtx to read subrtxes. Don't
25136 * read-md.h (directive_handler_t): New type.
25137 (in_fname, include_callback): Moved from read-md.h.
25138 (read_constants, init_md_reader): Delete.
25139 (read_md_files): Declare.
25140 * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
25141 (last_dir_md_include_ptr, include_callback, max_include_len): Moved
25143 (read_constants): Rename to...
25144 (handle_constants): ...this. Don't gobble ')' here.
25145 (handle_include, handle_file, handle_toplevel_file)
25146 (parse_include): New functions, mostly taken from gensupport.c.
25147 (init_md_reader): Subsume into...
25148 (read_md_files): ...this new function.
25150 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
25152 * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
25153 (unread_char): Decrement read_md_lineno after putting back '\n'.
25154 * read-md.c (fatal_with_file_and_line): Push back any characters
25155 that we decide not to add to the context.
25156 (read_skip_spaces): Don't increment read_md_lineno here. Avoid using
25157 fatal_expected_char in cases where '/' ends a line (for example).
25158 (read_name): Don't increment read_md_lineno here.
25159 (read_escape): Likewise.
25160 (read_quoted_string): Likewise.
25161 (read_braced_string): Likewise.
25163 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
25165 * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
25166 (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
25167 * genconstants.c: Include read-md.h.
25168 * read-rtl.c (md_constants): Move to read-md.c.
25169 (md_name): Move to read-md.h.
25170 (initialize_iterators): Use leading_string_hash instead of def_hash
25171 and leading_string_eq_p instead of def_name_eq_p.
25172 (read_name): Move to read-md.c.
25173 (def_hash, def_name_eq_p): Delete.
25174 (read_constants, traverse_md_constants): Move to read-md.c.
25175 * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
25176 * read-md.h: Include hashtab.h.
25177 (md_name): Moved from read-rtl.c.
25178 (md_constant): Moved from read-md.h.
25179 (leading_string_hash, leading_string_eq_p, read_name)
25180 (read_constants, traverse_md_constants): Declare.
25181 * read-md.c (md_constants): Moved from read-rtl.c.
25182 (leading_string_hash, leading_string_eq_p): New functions.
25183 (read_name, read_constants, traverse_md_constants): Moved from
25186 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
25188 * read-rtl.c (md_name): New structure.
25189 (read_name): Take an md_name instead of a buffer pointer.
25190 Use the "string" field instead of strcpy when expanding constants.
25191 (read_constants): Remove the tmp_char argument. Update the calls
25192 to read_name, using two local name buffers instead of the tmp_char
25193 argument. Merge the constant-creation code.
25194 (read_conditions): Remove the tmp_char argument. Update the calls
25195 to read_name, using a local name buffer instead of the tmp_char
25197 (read_mapping): Replace tmp_char variable with a local name buffer.
25198 Update the calls to read_name.
25199 (read_rtx_1): Likewise. Update the calls to read_constants and
25202 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
25204 * Makefile.in (build/read-md.o): Depend on errors.h.
25205 * read-md.h (error_with_line): Declare.
25206 * read-md.c: Include errors.h.
25207 (message_with_line_1): New function, extracted from...
25208 (message_with_line): ...here.
25209 (error_with_line): New function.
25210 * genattrtab.c: If a call to message_with_line is followed by
25211 "have_error = 1;", replace both statements with a call to
25213 * genoutput.c: Likewise.
25214 * genpreds.c: Likewise.
25215 * genrecog.c: If a call to message_with_line is followed by
25216 "error_count++;", replace both statements with a call to
25218 (errorcount): Delete.
25219 (main): Don't check it.
25220 * gensupport.c: If a call to message_with_line is followed by
25221 "errors = 1;", replace both statements with a call to error_with_line.
25223 (process_define_cond_exec): Check have_error instead of errors.
25224 (init_md_reader_args_cb): Likewise. Don't set errors.
25226 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
25228 * read-md.h (read_md_file): Declare.
25229 (read_char, unread_char): New functions.
25230 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
25231 (read_quoted_string, read_string): Remove FILE * argument.
25232 * read-md.c (read_md_file): New variable.
25233 (read_md_filename, read_md_lineno): Update comments and remove
25234 unnecessary initialization.
25235 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
25236 (read_escape, read_quoted_string, read_braced_string, read_string):
25237 Remove FILE * argument. Update calls accordingly, using read_char
25238 and unread_char instead of getc and ungetc.
25239 * rtl.h (read_rtx): Remove FILE * argument.
25240 * read-rtl.c (iterator_group): Remove FILE * argument from
25242 (iterator_traverse_data): Remove "infile" field.
25243 (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
25244 (add_mapping, read_name, read_constants, read_conditions)
25245 (validate_const_int, find_iterator, read_mapping, check_code_iterator)
25246 (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
25247 Remove file arguments from all calls, using read_char and unread_char
25248 instead of getc and ungetc.
25249 * gensupport.c (process_include): Preserve read_md_file around
25250 the include. Set read_md_file to the handle of the included file.
25251 Update call to read_rtx.
25252 (init_md_reader_args_cb): Set read_md_file to the handle of the file
25253 and remove local FILE *. Update calls to read_rtx.
25255 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
25257 * read-md.h (read_rtx_lineno): Rename to...
25258 (read_md_lineno): ...this.
25259 (read_rtx_filename): Rename to...
25260 (read_md_filename): ...this.
25261 (copy_rtx_ptr_loc): Rename to...
25262 (copy_md_ptr_loc): ...this.
25263 (print_rtx_ptr_loc): Rename to...
25264 (print_md_ptr_loc): ...this.
25265 * read-md.c: Likewise. Update references after renaming.
25266 (string_obstack): Replace RTL with MD in comment.
25267 (set_rtx_ptr_loc): Rename to...
25268 (set_md_ptr_loc): ...this.
25269 (get_rtx_ptr_loc): Rename to...
25270 (get_md_ptr_loc): ...this.
25271 * genconditions.c: Update references after renaming.
25272 * genemit.c: Likewise.
25273 * genoutput.c: Likewise.
25274 * genpreds.c: Likewise.
25275 * gensupport.c: Likewise.
25276 * read-rtl.c: Likewise.
25278 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
25280 * Makefile.in (READ_MD_H): New variable.
25281 (BUILD_RTL): Add build/read-md.o.
25282 (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
25283 (build/gensupport.o, build/read-rtl.o, build/genattr.o)
25284 (build/genattrtab.o, build/genconditions.o build/genemit.o)
25285 (build/genextract.o, build/genflags.o, build/genoutput.o)
25286 (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
25287 (build/read-md.o): New rule.
25288 * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
25289 (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
25290 * coretypes.h: ...here.
25291 * lto-wrapper.c: Include coretypes.h instead of defaults.h.
25292 * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
25293 * genattr.c: Include read-md.h.
25294 * genattrtab.c: Likewise.
25295 * genconditions.c: Likewise.
25296 * genemit.c: Likewise.
25297 * genextract.c: Likewise.
25298 * genflags.c: Likewise.
25299 * genoutput.c: Likewise.
25300 * genpreds.c: Likewise.
25301 * genrecog.c: Likewise.
25302 * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
25303 (join_c_conditions, print_c_condition, read_rtx_filename)
25304 (read_rtx_lineno): Move to read-md.h.
25305 * read-rtl.c: Include read-md.h.
25306 (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
25307 (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
25308 (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
25309 (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
25310 (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
25311 (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
25312 (read_braced_string, read_string): Move to read-md.c.
25313 (read_rtx): Move some initialization to init_md_reader and call
25314 init_md_reader here.
25315 * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
25317 * gensupport.c: Include read-md.h.
25318 (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
25319 * read-md.h, read-md.c: New files.
25321 2010-06-10 Anatoly Sokolov <aesok@post.ru>
25323 * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
25324 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
25325 * config/moxie/moxie-protos.h (moxie_function_value): Remove.
25326 * config/moxie/moxie.c (moxie_function_value): Make static.
25327 (moxie_libcall_value, moxie_function_value_regno_p): New functions.
25328 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
25330 2010-06-10 Martin Jambor <mjambor@suse.cz>
25332 * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
25333 * dbgcnt.def (tree_sra): New counter.
25334 * tree-sra.c: Include dbgcnt.h.
25335 (gate_intra_sra): Check tree_sra debug counter.
25337 2010-06-10 Martin Jambor <mjambor@suse.cz>
25339 PR tree-optimization/44258
25340 * tree-sra.c (build_access_subtree): Return false iff there is a
25342 (build_access_trees): Likewise.
25343 (analyze_all_variable_accesses): Disqualify candidates if
25344 build_access_trees returns true for them.
25346 2010-06-10 Alexandre Oliva <aoliva@redhat.com>
25349 * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
25350 tail-recurse into canonical node. Fast-forward over
25351 non-canonical VALUEs.
25353 2010-06-10 H.J. Lu <hongjiu.lu@intel.com>
25356 * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
25357 (*addsi_1_zext) <TYPE_LEA>: Likewise.
25358 (add lea splitter): Likewise.
25359 (add_zext lea splitter): Likewise.
25361 2010-06-10 Joseph Myers <joseph@codesourcery.com>
25363 * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
25365 2010-06-10 Jan Hubicka <jh@suse.cz>
25367 * df-problems.c (df_live_problem_data): Add live_bitmaps.
25368 (df_live_alloc): Initialize problem data and live_osbtacks.
25369 (df_live_finalize): Remove obstack, problem data; do not
25371 (df_live_top_dump, df_live_bottom_dump): Do not dump old
25372 data when not allocated.
25373 (df_live_verify_solution_start): Do not allocate problem data.
25374 (df_live_verify_solution_end): Check if out is allocated.
25375 (struct df_md_problem_data): New structure.
25376 (df_md_alloc): Allocate problem data.
25377 (df_md_free): Free problem data; do not clear bitmaps.
25379 2010-06-10 Jan Beulich <jbeulich@novell.com>
25382 * configure.ac: Replace $() with ${} when intending to expand
25383 variables rather than invoking commands.
25384 * configure: Re-generate.
25386 2010-06-10 Jan Hubicka <jh@suse.cz>
25388 PR rtl-optimization/44460
25389 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
25390 TYPE_NEEDS_CONSTRUCTING sanity check.
25392 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
25394 * doc/include/fdl.texi: Move to GFDL version 1.3.
25396 * doc/cpp.texi: Move to GFDL version 1.3.
25397 * doc/gcc.texi: Move to GFDL version 1.3. Fix copyright years.
25398 * doc/gccint.texi: Move to GFDL version 1.3.
25399 * doc/gcov.texi: Move to GFDL version 1.3. Update copyright years.
25400 * doc/install.texi: Move to GFDL version 1.3. Fix copyright years.
25401 * doc/invoke.texi: Move to GFDL version 1.3.
25403 2010-06-09 Jan Hubicka <jh@suse.cz>
25405 * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
25407 (propagate) ... here; swap the order.
25409 2010-06-09 Jan Hubicka <jh@suse.cz>
25411 * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
25412 bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
25413 bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
25414 bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
25416 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
25418 * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
25419 Do not the gather memory reference in the outer loop if the step
25422 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
25424 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
25425 Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
25426 8 to 4. Minor change of the related comments.
25428 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
25430 * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
25431 the scev analysis when the variable is not used outside the loop
25432 in a close phi node: call compute_overall_effect_of_inner_loop.
25434 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
25436 * graphite-sese-to-poly.c (single_pred_cond): Renamed
25437 single_pred_cond_non_loop_exit. Return NULL for loop exit edges.
25438 (build_sese_conditions_before): Renamed call to single_pred_cond.
25439 (build_sese_conditions_after): Same.
25441 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
25443 * graphite-poly.h: Fix comments and indentation.
25444 * graphite-sese-to-poly.c: Same.
25445 (build_sese_conditions_before): Compute stmt and gbb only when needed.
25446 * tree-chrec.c: Fix comments and indentation.
25447 (tree-ssa-loop-niter.c): Same.
25449 2010-06-09 Eric Botcazou <ebotcazou@adacore.com>
25451 PR rtl-optimization/42461
25452 * dce.c (deletable_insn_p): Return true for const or pure calls again.
25453 * except.c (insn_could_throw_p): Return false if !flag_exceptions.
25455 2010-06-09 Jan Hubicka <jh@suse.cz>
25457 * bitmap.c (bitmap_and): Walk array forward.
25458 (bitmap_and_compl_into): Likewise.
25459 (bitmap_xor): Likewise.
25460 (bitmap_xor_into): Likewise.
25461 (bitmap_equal_p): Likewise.
25462 (bitmap_intersect_p): Likewise.
25463 (bitmap_intersect_compl_p): Likewise.
25464 (bitmap_ior_and_into): Likewise.
25465 (bitmap_elt_copy): Likewise.
25466 (bitmap_and_compl): Likewise.
25467 (bitmap_elt_ior): Likewise.
25469 2010-06-09 Dave Korn <dave.korn.cygwin@gmail.com>
25471 * opts-common.c (prune_options): Ensure replacement argv array
25472 is correctly terminated by a NULL entry.
25474 2010-06-09 Jan Hubicka <jh@suse.cz>
25476 * cgraph.h (varpool_first_static_initializer,
25477 varpool_next_static_initializer): Make checking only when
25479 * tree-vectorizer.h (vinfo_for_stmt): Remove check.
25480 (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
25481 gcc_assert to gcc_checking_assert.
25482 * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
25483 phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
25484 op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
25485 op_iter_init_phiuse, op_iter_init_phidef,
25486 array_ref_contains_indirect_ref, ref_contains_array_ref): Use
25487 gcc_checking_assert.
25488 * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
25489 * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
25490 partition_is_global, live_on_entry, live_on_exit,
25491 live_merge_and_clear): Likewise.
25492 * system.h (gcc_checking_assert): New macro.
25493 * gimple.h (set_bb_seq): Use gcc_checking_assert.
25495 2010-06-09 Jason Merrill <jason@redhat.com>
25497 * Makefile.in (TAGS): Collect tags info from c-family.
25499 2010-06-09 Jan Hubicka <jh@suse.cz>
25501 * gimple.h (gcc_gimple_checking_assert): New macro.
25502 (gimple_set_def_ops, gimple_set_use_ops,
25503 gimple_set_vuse, gimple_set_vdef,
25504 gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
25505 gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
25506 gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
25507 gimple_asm_output_op, gimple_asm_output_op_ptr,
25508 gimple_asm_set_output_op, gimple_asm_clobber_op,
25509 gimple_asm_set_clobber_op, gimple_asm_label_op,
25510 gimple_asm_set_label_op, gimple_try_set_kind,
25511 gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
25512 gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
25513 gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
25514 gimple_omp_for_index_ptr, gimple_omp_for_set_index,
25515 gimple_omp_for_initial, gimple_omp_for_initial_ptr,
25516 gimple_omp_for_set_initial, gimple_omp_for_final,
25517 gimple_omp_for_final_ptr, gimple_omp_for_set_final,
25518 gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
25519 gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
25520 conditional with ENABLE_GIMPLE_CHECKING.
25521 (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
25523 2010-06-09 Sandra Loosemore <sandra@codesourcery.com>
25525 * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
25526 (get_computation_cost_at): Use it.
25527 (determine_use_iv_cost_condition): Likewise.
25528 (determine_iv_cost): Likewise.
25530 2010-06-09 Richard Guenther <rguenther@suse.de>
25532 * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
25535 2010-06-09 Kai Tietz <kai.tietz@onevision.com>
25537 * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
25539 2010-06-09 Martin Jambor <mjambor@suse.cz>
25541 PR tree-optimization/44423
25542 * tree-sra.c (dump_access): Dump also grp_assignment_read.
25543 (analyze_access_subtree): Pass negative allow_replacements to children
25544 if the current type is scalar.
25546 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
25549 * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
25550 * doc/plugins.texi (Plugin license check): Update information
25551 on type of plugin_is_GPL_compatible.
25552 * Makefile.in (PLUGINCC): Define as $(COMPILER).
25553 (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
25555 2010-06-09 Bernd Schmidt <bernds@codesourcery.com>
25557 * config/arm/arm.c (thumb2_reorg): New function.
25558 (arm_reorg): Call it.
25559 * config/arm/thumb2.md (define_peephole2 for flag clobbering
25560 arithmetic operations): Delete.
25562 2010-06-09 Edmar Wienskoski <edmar@freescale.com>
25565 * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
25568 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
25571 * gcc-plugin.h: Encapsulate all declarations in extern "C".
25573 2010-06-08 Jan Hubicka <jh@suse.cz>
25575 * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
25576 ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
25578 2010-06-08 Sandra Loosemore <sandra@codesourcery.com>
25580 PR tree-optimization/39874
25581 PR middle-end/28685
25582 * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
25584 * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
25585 same_bool_result_p): New.
25586 (and_var_with_comparison, and_var_with_comparison_1,
25587 and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
25588 (or_var_with_comparison, or_var_with_comparison_1,
25589 or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
25590 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
25591 maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
25592 of combine_comparisons.
25593 * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
25595 2010-06-08 Anatoly Sokolov <aesok@post.ru>
25597 * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
25598 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
25599 * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
25600 pdp11_function_value_regno_p): New functions.
25601 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
25602 TARGET_FUNCTION_VALUE_REGNO_P): Define.
25604 2010-06-08 Kazu Hirata <kazu@codesourcery.com>
25606 * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
25607 Thumb-2 in the MINUS case.
25609 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
25611 * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
25613 * doc/gty.texi (GTY Options): Document typed GC allocation and
25614 variable_size GTY option.
25616 * ggc-internal.h: New.
25618 * ggc.h: Update copyright year.
25619 (digit_string): Move to stringpool.c.
25620 (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
25621 (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
25622 (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
25623 (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
25624 (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
25625 (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
25626 (ggc_force_collect, ggc_get_size, ggc_statistics)
25627 (ggc_print_common_statistics): Move to ggc-internal.h.
25628 (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
25629 (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
25630 (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
25631 (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
25632 (ggc_min_heapsize_heuristic, ggc_alloc_zone)
25633 (ggc_alloc_zone_pass_stat): Remove.
25634 (ggc_internal_alloc_stat, ggc_internal_alloc)
25635 (ggc_internal_cleared_alloc_stat): New.
25636 (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
25637 (ggc_internal_vec_alloc_stat)
25638 (ggc_internal_cleared_vec_alloc_stat)
25639 (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
25640 (ggc_alloc_atomic_stat, ggc_alloc_atomic)
25641 (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
25642 (ggc_cleared_alloc_ptr_array_two_args): New.
25643 (htab_create_ggc, splay_tree_new_ggc): Redefine.
25644 (ggc_splay_alloc): Change the type of the first argument to
25645 enum gt_types_enum.
25646 (ggc_alloc_string): Make macro.
25647 (ggc_alloc_string_stat): New.
25648 (ggc_strdup): Redefine.
25649 (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
25650 (ggc_alloc_rtvec_sized): New.
25651 (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
25652 (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
25653 (ggc_internal_cleared_alloc_zone_stat)
25654 (ggc_internal_zone_alloc_stat)
25655 (ggc_internal_zone_cleared_alloc_stat)
25656 (ggc_internal_zone_vec_alloc_stat)
25657 (ggc_alloc_zone_rtx_def_stat)
25658 (ggc_alloc_zone_tree_node_stat)
25659 (ggc_alloc_zone_cleared_tree_node_stat)
25660 (ggc_alloc_cleared_gimple_statement_d_stat): New.
25662 * ggc-common.c: Include ggc-internal.h.
25663 (ggc_internal_cleared_alloc_stat): Rename from
25664 ggc_alloc_cleared_stat.
25665 (ggc_realloc_stat): Use ggc_internal_alloc_stat.
25666 (ggc_calloc): Remove.
25667 (ggc_cleared_alloc_htab_ignore_args): New.
25668 (ggc_cleared_alloc_ptr_array_two_args): New.
25669 (ggc_splay_alloc): Add obj_type parameter.
25670 (init_ggc_heuristics): Formatting fixes.
25672 * ggc-none.c: Update copyright year.
25673 (ggc_alloc_stat): Rename to ggc_alloc_stat.
25674 (ggc_alloc_cleared_stat): Rename to
25675 ggc_internal_cleared_alloc_stat.
25676 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
25678 * ggc-page.c: Update copyright year. Include ggc-internal.h.
25679 Remove references to ggc_alloc in comments.
25680 (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
25681 (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
25682 (new_ggc_zone, destroy_ggc_zone): Remove.
25683 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
25685 * ggc-zone.c: Include ggc-internal.h. Remove references to
25686 ggc_alloc in comments.
25687 (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
25688 (ggc_internal_alloc_zone_pass_stat): New.
25689 (ggc_internal_cleared_alloc_zone_stat): New.
25690 (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
25691 (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
25692 (new_ggc_zone, destroy_ggc_zone): Remove.
25694 * stringpool.c: Update copyright year. Include ggc-internal.h
25695 (digit_vector): Make static.
25696 (digit_string): Moved from ggc.h.
25697 (stringpool_ggc_alloc): Use ggc_alloc_atomic.
25698 (ggc_alloc_string): Rename to ggc_alloc_string_stat.
25700 * Makefile.in (GGC_INTERNAL_H): New.
25701 (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
25702 $(GGC_INTERNAL_H) to dependencies.
25704 * gengtype.c: Update copyright year.
25705 (walk_type): Accept variable_size GTY option.
25706 (USED_BY_TYPED_GC_P): New macro.
25707 (write_enum_defn): Use USED_BY_TYPED_GC_P. Do not output
25708 whitespace at the end of strings.
25709 (get_type_specifier, variable_size_p): New functions.
25710 (alloc_quantity, alloc_zone): New enums.
25711 (write_typed_alloc_def): New function.
25712 (write_typed_struct_alloc_def): Likewise.
25713 (write_typed_typed_typedef_alloc_def): Likewise.
25714 (write_typed_alloc_defns): Likewise.
25715 (output_typename, write_splay_tree_allocator_def): Likewise.
25716 (write_splay_tree_allocators): Likewise.
25717 (main): Call write_typed_alloc_defns and
25718 write_splay_tree_allocators.
25720 * lto-streamer.h (lto_file_decl_data_ptr): New.
25722 * passes.c (order): Define using cgraph_node_ptr.
25724 * strinpool.c (struct string_pool_data): Declare nested_ptr using
25727 * gimple.h (union gimple_statement_d): Likewise.
25729 * rtl.h (struct rtx_def): Likewise.
25730 (struct rtvec_def): Likewise.
25732 * tree.h (union tree_node): Likewise.
25734 * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
25736 * cfgloop.c (record_loop_exits): Use htab_create_ggc.
25738 * tree-scalar-evolution.c (scev_initialize): Likewise.
25740 * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
25742 * dwarf2asm.c (dw2_force_const_mem): Likewise.
25744 * omp-low.c (lower_omp_critical): Likewise.
25746 * bitmap.h (struct bitmap_head_def): Update comment to not
25747 reference ggc_alloc.
25749 * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
25751 * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
25753 * ipa-prop.c (duplicate_ggc_array): Rename to
25754 duplicate_ipa_jump_func_array. Use typed GC allocation.
25755 (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
25757 * gimple.c (gimple_alloc_stat): Use
25758 ggc_alloc_cleared_gimple_statement_d_stat.
25760 * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
25762 * tree.c (make_node_stat): Use
25763 ggc_alloc_zone_cleared_tree_node_stat.
25764 (make_tree_vec_stat): Likewise.
25765 (build_vl_exp_stat): Likewise.
25766 (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
25767 (make_tree_binfo_stat): Likewise.
25768 (tree_cons_stat): Likewise.
25770 * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
25771 (shallow_copy_rtx_stat): Likewise.
25772 (make_node_stat): Likewise.
25774 * lto-symtab.c: Fix comment.
25776 * tree-cfg.c (create_bb): Update comment to not reference
25778 * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
25780 * varpool.c (varpool_node): Use typed GC allocation.
25781 (varpool_extra_name_alias): Likewise.
25783 * varasm.c (emutls_decl): Likewise.
25784 (get_unnamed_section): Likewise.
25785 (get_noswitch_section): Likewise.
25786 (get_section): Likewise.
25787 (get_block_for_section): Likewise.
25788 (build_constant_desc): Likewise.
25789 (create_constant_pool): Likewise.
25790 (force_const_mem): Likewise.
25792 * tree.c (build_vl_exp_stat): Likewise.
25793 (build_real): Likewise.
25794 (build_string): Likewise.
25795 (decl_debug_expr_insert): Likewise.
25796 (decl_value_expr_insert): Likewise.
25797 (type_hash_add): Likewise.
25798 (build_omp_clause): Likewise.
25800 * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
25802 * tree-ssa.c (init_tree_ssa): Likewise.
25804 * tree-ssa-structalias.c (heapvar_insert): Likewise.
25806 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
25808 * tree-ssa-loop-niter.c (record_estimate): Likewise.
25810 * tree-ssa-alias.c (get_ptr_info): Likewise.
25812 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
25814 * tree-phinodes.c (allocate_phi_node): Likewise.
25816 * tree-iterator.c (tsi_link_before): Likewise.
25817 (tsi_link_after): Likewise.
25819 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
25821 * tree-dfa.c (create_var_ann): Likewise.
25823 * tree-cfg.c (create_bb): Likewise.
25825 * toplev.c (alloc_for_identifier_to_locale): Likewise.
25826 (general_init): Likewise.
25828 * stringpool.c (stringpool_ggc_alloc): Likewise.
25829 (gt_pch_save_stringpool): Likewise.
25831 * sese.c (if_region_set_false_region): Likewise.
25833 * passes.c (do_per_function_toporder): Likewise.
25835 * optabs.c (set_optab_libfunc): Likewise.
25836 (set_conv_libfunc): Likewise.
25838 * lto-symtab.c (lto_symtab_register_decl): Likewise.
25840 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
25841 (input_eh_region): Likewise.
25842 (input_eh_lp): Likewise.
25843 (make_new_block): Likewise.
25844 (unpack_ts_real_cst_value_fields): Likewise.
25846 * lto-section-in.c (lto_new_in_decl_state): Likewise.
25848 * lto-cgraph.c (input_node_opt_summary): Likewise.
25850 * loop-init.c (loop_optimizer_init): Likewise.
25852 * lambda.h (lambda_vector_new): Likewise.
25854 * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
25856 * ira.c (update_equiv_regs): Likewise.
25858 * ipa.c (cgraph_node_set_new): Likewise.
25859 (cgraph_node_set_add): Likewise.
25860 (varpool_node_set_new): Likewise.
25861 (varpool_node_set_add): Likewise.
25863 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
25864 (duplicate_ipa_jump_func_array): Likewise.
25865 (ipa_read_node_info): Likewise.
25867 * ipa-cp.c (ipcp_create_replace_map): Likewise.
25869 * integrate.c (get_hard_reg_initial_val): Likewise.
25871 * gimple.c (gimple_alloc_stat): Likewise.
25872 (gimple_build_omp_for): Likewise.
25873 (gimple_seq_alloc): Likewise.
25874 (gimple_copy): Likewise.
25876 * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
25877 (gsi_insert_after_without_update): Likewise.
25879 * function.c (add_frame_space): Likewise.
25880 (insert_temp_slot_address): Likewise.
25881 (assign_stack_temp_for_type): Likewise.
25882 (allocate_struct_function): Likewise.
25883 (types_used_by_var_decl_insert): Likewise.
25885 * except.c (init_eh_for_function): Likewise.
25886 (gen_eh_region): Likewise.
25887 (gen_eh_region_catch): Likewise.
25888 (gen_eh_landing_pad): Likewise.
25889 (add_call_site): Likewise.
25891 * emit-rtl.c (get_mem_attrs): Likewise.
25892 (get_reg_attrs): Likewise.
25893 (start_sequence): Likewise.
25894 (init_emit): Likewise.
25896 * dwarf2out.c (new_cfi): Likewise.
25897 (queue_reg_save): Likewise.
25898 (dwarf2out_frame_init): Likewise.
25899 (new_loc_descr): Likewise.
25900 (find_AT_string): Likewise.
25901 (new_die): Likewise.
25902 (add_var_loc_to_decl): Likewise.
25903 (clone_die): Likewise.
25904 (clone_as_declaration): Likewise.
25905 (break_out_comdat_types): Likewise.
25906 (new_loc_list): Likewise.
25907 (loc_descriptor): Likewise.
25908 (add_loc_descr_to_each): Likewise.
25909 (add_const_value_attribute): Likewise.
25910 (tree_add_const_value_attribute): Likewise.
25911 (add_comp_dir_attribute): Likewise.
25912 (add_name_and_src_coords_attributes): Likewise.
25913 (lookup_filename): Likewise.
25914 (store_vcall_insn): Likewise.
25915 (dwarf2out_init): Likewise.
25917 * dbxout.c (dbxout_init): Likewise.
25919 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
25921 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
25923 * config/score/score7.c (score7_output_external): Likewise.
25925 * config/score/score3.c (score3_output_external): Likewise.
25927 * config/s390/s390.c (s390_init_machine_status): Likewise.
25929 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
25930 (rs6000_init_machine_status): Likewise.
25931 (output_toc): Likewise.
25933 * config/pa/pa.c (pa_init_machine_status): Likewise.
25934 (get_deferred_plabel): Likewise.
25936 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
25938 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
25940 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
25942 * config/mep/mep.c (mep_init_machine_status): Likewise.
25943 (mep_note_pragma_flag): Likewise.
25945 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
25947 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
25949 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
25951 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
25952 (i386_pe_maybe_record_exported_symbol): Likewise.
25954 * config/i386/i386.c (get_dllimport_decl): Likewise.
25955 (ix86_init_machine_status): Likewise.
25956 (assign_386_stack_local): Likewise.
25958 * config/frv/frv.c (frv_init_machine_status): Likewise.
25960 * config/darwin.c (machopic_indirection_name): Likewise.
25962 * config/cris/cris.c (cris_init_machine_status): Likewise.
25964 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
25966 * config/avr/avr.c (avr_init_machine_status): Likewise.
25968 * config/arm/arm.c (arm_init_machine_status): Likewise.
25970 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
25971 (alpha_need_linkage): Likewise.
25972 (alpha_use_linkage): Likewise.
25974 * cgraph.c (cgraph_allocate_node): Likewise.
25975 (cgraph_create_edge_1): Likewise.
25976 (cgraph_create_indirect_edge): Likewise.
25977 (cgraph_add_asm_node): Likewise.
25979 * cfgrtl.c (init_rtl_bb_info): Likewise.
25981 * cfgloop.c (alloc_loop): Likewise.
25982 (rescan_loop_exit): Likewise.
25984 * cfg.c (init_flow): Likewise.
25985 (alloc_block): Likewise.
25986 (unchecked_make_edge): Likewise.
25988 * c-parser.c (c_parse_init): Likewise.
25989 (c_parse_file): Likewise.
25991 * c-decl.c (bind): Likewise.
25992 (record_inline_static): Likewise.
25993 (push_scope): Likewise.
25994 (make_label): Likewise.
25995 (lookup_label_for_goto): Likewise.
25996 (finish_struct): Likewise.
25997 (finish_enum): Likewise.
25998 (c_push_function_context): Likewise.
26000 * bitmap.c (bitmap_element_allocate): Likewise.
26001 (bitmap_gc_alloc_stat): Likewise.
26003 * alias.c (record_alias_subset): Likewise.
26004 (init_alias_analysis): Likewise.
26006 2010-06-08 Shujing Zhao <pearly.zhao@oracle.com>
26008 * fold-const.c (fold_comparison): Remove redundant parenthesis.
26009 * tree-inline.c (expand_call_inline): Pass translated return value of
26010 cgraph_inline_failed_string to diagnostic function.
26012 2010-06-08 Andrew Pinski <pinskia@gmail.com>
26013 Shujing Zhao <pearly.zhao@oracle.com>
26016 * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
26017 implicit bad conversions is initialization.
26018 (error_init): Use gmsgid instead of msgid for argument name and change
26019 the call for error.
26020 (pedwarn_init): Use gmsgid instead of msgid for argument name and
26021 change the call for pedwarn.
26022 (warning_init): Use gmsgid instead of msgid for argument name and
26023 change the call for warning.
26025 2010-06-07 Nathan Froyd <froydnj@codesourcery.com>
26027 * config/mips/mips-protos.h (mips_print_operand): Delete.
26028 (mips_print_operand_address): Delete.
26029 * config/mips/mips.h (mips_print_operand_punct): Delete.
26030 (PRINT_OPERAND): Delete.
26031 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
26032 (PRINT_OPERAND_ADDRESS): Delete.
26033 * config/mips/mips.c (mips_print_operand_punct): Make static.
26034 (mips_print_operand_address): Make static.
26035 (mips_print_operand): Make static. Call
26036 mips_print_operand_punct_valid_p.
26037 (mips_print_operand_punct_valid_p): New function.
26038 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
26039 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
26041 2010-06-07 Jan Hubicka <jh@suse.cz>
26043 PR middle-end/44454
26044 (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
26047 2010-06-07 Kaz Kojima <kkojima@gcc.gnu.org>
26049 * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
26052 2010-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26054 * doc/sourcebuild.texi (Effective-Target Keywords, Other
26055 attributes): Document gas.
26057 2010-06-07 Uros Bizjak <ubizjak@gmail.com>
26059 * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
26060 <TYPE_LEA>: Split instruction.
26061 <default>: Remove alternative 2 handling.
26062 (*addsi_1_zext) <TYPE_LEA>: Split instruction.
26063 (add lea splitter): Generate SImode lea for mode sizes <= SImode.
26064 (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
26066 (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
26067 (ashift_zext lea splitter): Use DImode for multiplication.
26069 * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
26070 to generate addition.
26072 2010-06-07 Joseph Myers <joseph@codesourcery.com>
26074 * common.opt (fira-verbose): Use Var.
26075 (fpcc-struct-return): Use Init instead of VarExists.
26076 * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
26078 * flags.h (flag_signed_char, flag_short_enums,
26079 flag_pcc_struct_return, flag_ira_verbose,
26080 flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
26081 * toplev.c (flag_detailed_statistics, flag_signed_char,
26082 flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
26083 (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
26084 * toplev.h (flag_crossjumping, flag_if_conversion,
26085 flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
26086 flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
26087 flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
26088 flag_cprop_registers, time_report, flag_ira_loop_pressure,
26089 flag_ira_coalesce, flag_ira_move_spills,
26090 flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
26092 2010-06-07 Jan Hubicka <jh@suse.cz>
26094 * df-core.c (df_analyze_problem): Do verification after allocation.
26096 * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
26097 (df_lr_alloc): Initialize problem data; move bitmaps to
26098 lr_bitmaps obstack.
26099 (df_lr_finalize): Free problem data; do not bother to free bitmaps.
26100 (df_lr_verify_solution_start): Do not initialize problem data;
26101 allocate bitmaps in lr_bitmaps.
26102 (df_lr_verify_solution_end): Do not free problem data.
26104 2010-06-07 Jan Hubicka <jh@suse.cz>
26106 * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
26107 if caller is noreturn.
26108 * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
26109 * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
26110 * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
26111 * ipa-pure-const.c (check_decl): Add IPA parameter.
26112 (state_from_flags): New function.
26113 (better_state, worse_state): New functions.
26114 (check_call): When in IPA mode, do not care about callees.
26115 (check_load, check_store): Update.
26116 (check_ipa_load, check_ipa_store): New.
26117 (check_stmt): When in IPA mode, use IPA checkers.
26118 (analyze_function): Use state_from_flags.
26119 (propagate): Check indirect edges and references.
26121 2010-06-07 Kazu Hirata <kazu@codesourcery.com>
26123 PR rtl-optimization/44404
26124 * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
26125 of count_occurrences to see if it's safe to modify mem_insn.
26127 2010-06-07 Richard Guenther <rguenther@suse.de>
26129 * gimplify.c (gimplify_cleanup_point_expr): For empty body
26130 and EH-only cleanup drop the cleanup instead of inserting it
26133 2010-06-07 Ira Rosen <irar@il.ibm.com>
26135 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
26137 * targhooks.c (default_builtin_vectorization_cost): New function.
26138 * targhooks.h (default_builtin_vectorization_cost): Declare.
26139 * target.h (enum vect_cost_for_stmt): Define.
26140 (builtin_vectorization_cost): Change argument and comment.
26141 * tree-vectorizer.h: Remove cost model macros.
26142 * tree-vect-loop.c: Include target.h.
26143 (vect_get_cost): New function.
26144 (vect_estimate_min_profitable_iters): Replace cost model macros with
26145 calls to vect_get_cost.
26146 (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
26147 * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
26148 default implementation.
26149 * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
26150 calls to target hook builtin_vectorization_cost.
26151 (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
26153 * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
26154 * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
26155 implementation to return costs.
26156 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
26157 * config/spu/spu.h: Remove vectorizer cost model macros.
26158 * config/i386/i386.h: Likewise.
26159 * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
26160 a call to target hook builtin_vectorization_cost.
26162 2010-06-06 Sriraman Tallam <tmsriram@google.com>
26165 * config/i386/i386.c (override_options): Turn zee pass on for level 2
26166 and above and defer till target is known.
26167 (optimization_options): Turn on zee pass if TARGET_64BIT is set and
26168 turn off otherwise.
26170 2010-05-25 Jan Hubicka <jh@suse.cz>
26172 * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
26173 (df_compact_blocks): Likewise.
26174 * df.h (struct df): Turn hardware_regs_used,
26175 regular_block_artificial_uses, eh_block_artificial_uses,
26176 insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
26178 * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
26179 df_byte_lr_alloc, df_simulate_fixup_sets): Update.
26180 * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
26181 df_scan_blocks, df_insn_delete, df_insn_rescan,
26182 df_insn_rescan_debug_internal, df_insn_rescan_all,
26183 df_process_deferred_rescans, df_process_deferred_rescans,
26184 df_notes_rescan, df_get_call_refs, df_get_call_refs,
26185 regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
26186 df_record_entry_block_defs, df_record_exit_block_uses,
26187 df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
26188 df_scan_verify): Update.
26190 2010-05-25 Dodji Seketeli <dodji@redhat.com>
26193 * c-common.c (is_typedef_decl): Move this definition ...
26194 * tree.c (is_typedef_decl): ... here.
26195 (typdef_variant_p): Move definition here from cp/tree.c.
26196 * c-common.h (is_typedef_decl): Move this declaration ...
26197 * tree.h (is_typedef_decl): ... here.
26198 (typedef_variant_p): Move declaration here from cp/cp-tree.h
26199 * dwarf2out.c (is_naming_typedef_decl): New function.
26200 (gen_tagged_type_die): Split out of ...
26201 (gen_type_die_with_usage): ... this function. When an anonymous
26202 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
26203 is emitted for the typedef.
26204 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
26205 anonymous tagged types.
26207 2010-06-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
26210 * c-decl.c (grokdeclarator): Delete warning.
26212 2010-06-06 Eric Botcazou <ebotcazou@adacore.com>
26214 * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
26215 newly built CALL_EXPR.
26216 * tree-profile.c (tree_profiling): Don't profile functions produced
26217 for built-in stuff.
26219 2010-06-06 Segher Boessenkool <segher@kernel.crashing.org>
26223 * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
26224 endianness-independent.
26226 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
26228 * c-common.c: Move to c-family/.
26229 * c-common.def: Likewise.
26230 * c-common.h: Likewise.
26231 * c-cppbuiltin.c: Likewise.
26232 * c-dump.c: Likewise.
26233 * c-format.c: Likewise.
26234 * c-format.h : Likewise.
26235 * c-gimplify.c: Likewise.
26236 * c-lex.c: Likewise.
26237 * c-omp.c: Likewise.
26239 * c-opts.c: Likewise.
26240 * c-pch.c: Likewise.
26241 * c-ppoutput.c: Likewise.
26242 * c-pragma.c: Likewise.
26243 * c-pragma.h: Likewise.
26244 * c-pretty-print.c: Likewise.
26245 * c-pretty-print.h: Likewise.
26246 * c-semantics.c: Likewise.
26247 * stub-objc.c: Likewise.
26249 * gengtype.c (get_file_langdir): Special-case files in c-family/.
26250 (get_output_file_with_visibility): Fix name for c-common.h.
26251 * c-config-lang.in: Update paths in gtfiles for files in c-family/.
26253 * c-tree.h: Update include path for moved files.
26254 * c-lang.c: Likewise.
26255 * c-lang.h: Likewise.
26256 * c-parser.c: Likewise.
26257 * c-convert.c: Likewise.
26258 * c-decl.c: Likewise.
26259 * c-objc-common.c: Likewise.
26260 * configure.ac: Make sure c-family/ exists in the build directory.
26261 * configure: Regenerate.
26262 * Makefile.in: Update paths for moved files. Regroup files per
26263 location and update dependencies. Move generated_files down after
26266 * config/spu/spu-c.c: Update paths for moved files.
26267 * config/mep/mep-pragma.c: Likewise.
26268 * config/darwin-c.c: Likewise.
26269 * config/i386/msformat-c.c: Likewise.
26270 * config/i386/i386-c.c: Likewise.
26271 * config/avr/avr-c.c: Likewise.
26272 * config/sol2-c.c: Likewise.
26273 * config/ia64/ia64-c.c: Likewise.
26274 * config/rs6000/rs6000-c.c: Likewise.
26275 * config/arm/arm.c: Likewise.
26276 * config/arm/arm-c.c: Likewise.
26277 * config/h8300/h8300.c: Likewise.
26278 * config/v850/v850-c.c: Likewise.
26280 * config/t-darwin: Fix dependencies for moved files.
26281 * config/t-sol2: Fix dependencies for moved files.
26282 * config/mep/t-mep: Fix dependencies for moved files.
26283 * config/ia64/t-ia64: Fix dependencies for moved files.
26284 * config/rs6000/t-rs6000: Fix dependencies for moved files.
26285 * config/v850/t-v850: Fix dependencies for moved files.
26286 * config/v850/t-v850e: Fix dependencies for moved files.
26288 * config/m32c/m32c-pragma.c
26290 * po/exgettext: Look in c-family/ also.
26292 2010-06-05 Eric Botcazou <ebotcazou@adacore.com>
26294 * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
26295 (mark_control_dependent_edges_necessary): Call it instead of marking
26296 the last statement manually.
26297 (propagate_necessity): Likewise.
26299 2010-06-05 Jan Hubicka <jh@suse.cz>
26301 * basic-block.h (compute_dominance_frontiers): Updated.
26302 (compute_idf): Likewise.
26304 * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
26305 for dominance frontiers.
26306 (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
26307 (insert_updated_phi_nodes_for): Likewise.
26308 (update_ssa): Likewise.
26309 * cfganal.c (compute_dominance_frontiers_1): Likewise.
26310 (compute_dominance_frontiers): Likewise.
26311 (compute_idf): Likewise.
26312 * df-problems.c (df_md_local_compute): Likewise.
26314 2010-06-05 Anatoly Sokolov <aesok@post.ru>
26316 * target.h (struct gcc_target): Add memory_move_cost field.
26317 * target-def.h (TARGET_MEMORY_MOVE_COST): New.
26318 (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
26319 * targhooks.c (default_memory_move_cost): New function.
26320 * targhooks.h (default_memory_move_cost): Declare function.
26321 * reload.h (memory_move_cost): Declare.
26322 (memory_move_secondary_cost): Change type of 'in' argument to bool.
26323 * reginfo.c (memory_move_cost): New function.
26324 (memory_move_secondary_cost): Change type of 'in' argument to bool.
26325 * ira.h (ira_memory_move_cost): Update comment.
26326 * ira.c (ira_memory_move_cost): Update comment.
26327 (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
26328 with memory_move_cost.
26329 * postreload.c (reload_cse_simplify_set): (Ditto.).
26330 * reload1.c (choose_reload_regs): (Ditto.).
26331 * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
26332 (MEMORY_MOVE_COST): Revise documentation.
26334 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
26335 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
26336 * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
26337 type of 'in' argument to bool.
26338 (TARGET_MEMORY_MOVE_COST): Define.
26340 2010-06-05 Jan Hubicka <jh@suse.cz>
26342 * ipa-pure-const.c (propagate): Fix typo in handling of functions
26343 that cannot return. Be more careful when merging the results with
26344 previously known ones.
26346 2010-06-05 Matthias Klose <doko@ubuntu.com>
26348 * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
26349 function to add the -iplugindir option.
26350 (find_plugindir_spec_function): Add new declaration and function.
26351 (static_spec_func): Use it for "find-plugindir".
26353 2010-06-05 Jakub Jelinek <jakub@redhat.com>
26356 * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
26357 * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
26358 statement expression.
26360 2010-06-05 Jan Hubicka <jh@suse.cz>
26362 * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
26363 (df_rd_problem_data): Convert sparse_invalidated_by_call,
26364 dense_invalidated_by_call to bitmap head.
26365 (df_rd_alloc, df_rd_bb_local_compute_process_def,
26366 df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
26367 df_rd_start_dump, df_lr_verify_transfer_functions,
26368 df_live_verify_transfer_functions, df_chain_create_bb,
26369 df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
26370 df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
26371 df_simulate_one_insn_forwards, df_md_alloc,
26372 df_md_bb_local_compute_process_def,
26373 df_md_bb_local_compute_process_def, df_md_local_compute,
26374 df_md_transfer_function df_md_free): Update.
26376 2010-06-05 Joseph Myers <joseph@codesourcery.com>
26379 * c-typeck.c (build_unary_op): Merge qualifiers into pointer
26380 target type for ADDR_EXPR; require no changes to qualifiers except
26381 for function types.
26382 * c-tree.h (c_build_type_variant): Remove.
26384 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
26386 * genautomata.c (get_excl_set): Do work per element, not per char.
26387 (check_presence_pattern_sets): Similar.
26388 (check_absence_pattern_sets): Similar.
26390 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
26392 * genautomata.c (curr_state_pass_num): Delete.
26393 (min_issue_delay_pass_states): Delete.
26394 (min_issue_delay): Delete.
26395 (initiate_min_issue_delay_pass_states): Delete.
26396 (output_min_issue_delay_table): Compute min_issue_delay_vect
26397 using a breadth-first search variant.
26398 (output_tables): Don't call initiate_min_issue_delay_pass_states.
26400 2010-06-04 H.J. Lu <hongjiu.lu@intel.com>
26403 * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
26404 (df_byte_lr_bb_local_compute): Likewise.
26406 2010-06-03 Jason Merrill <jason@redhat.com>
26408 Implement noexcept operator (5.3.7)
26409 * c-common.c (c_common_reswords): Add noexcept.
26410 * c-common.h (enum rid): Add RID_NOEXCEPT.
26412 2010-06-04 Joseph Myers <joseph@codesourcery.com>
26414 * config/darwin-driver.c (darwin_default_min_version): Use
26415 GCC-specific formats in diagnostics.
26416 * cppspec.c (lang_specific_driver): Use GCC-specific formats in
26418 * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
26419 execute, process_command, end_going_arg, do_self_spec, do_spec_1,
26420 eval_spec_function, handle_braces, process_brace_body, main,
26421 perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
26422 getenv_spec_function, compare_version_strings,
26423 version_compare_spec_function): Use GCC-specific formats in
26426 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
26428 * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
26429 that operand 0 and operand 1 are equal.
26430 (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
26431 (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
26432 and operand 1 are equal.
26433 <default>: Ditto. Remove ??? comment.
26434 (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
26435 and operand 1 are equal.
26436 <default>: Ditto. Remove ??? comment.
26437 (*adddi_4) <default>: Remove assert that operand 0 and operand 1
26439 (*add<mode>_4) <default>: Ditto.
26440 (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
26442 2010-06-04 Nathan Froyd <froydnj@codesourcery.com>
26444 * config/i386/i386-protos.h (ix86_print_operand): Declare.
26445 * config/i386/i386.c (ix86_print_operand): Make non-static.
26446 * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
26447 * output.h (output_operand): Declare.
26448 * final.c (output_operand): Make non-static.
26450 2010-06-04 Alexandre Oliva <aoliva@redhat.com>
26452 PR rtl-optimization/44013
26453 * sched-deps.c (add_dependence_list_and_free): Don't free lists
26454 when processing debug insns.
26457 * var-tracking.c (find_loc_in_1pdv): Mark initial value before
26458 recursing. Check that recursion is bounded. Rename inner var
26459 to avoid hiding incoming argument.
26461 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
26463 * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
26464 operands[2] == 255.
26468 (*addqi_ext_1_rex64): Ditto.
26469 (*addqi_ext_1): Ditto.
26471 (*addqi_4): Check for incdec_operand in QImode.
26473 (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
26474 using SWI mode iterator.
26475 (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
26476 (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
26478 (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
26479 using SWI mode iterator.
26481 2010-06-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
26484 * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
26485 * c-format.c (gcc_diag_flag_specs): Add hash.
26486 (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
26487 (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
26488 * c-pretty-print.c (pp_c_cv_qualifier): Rename as
26489 pp_c_cv_qualifiers. Handle qualifiers spelling here.
26490 (pp_c_type_qualifier_list): Call the function above.
26491 * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
26492 * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
26493 (WARN_FOR_QUALIFIERS): New macro.
26494 (convert_for_assignment): Use it.
26496 2010-06-04 Kai Tietz <kai.tietz@onevision.com>
26498 * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
26500 2010-06-04 Jan Hubicka <jh@suse.cz>
26502 * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
26503 df_byte_lr_bb_info): Embedd bitmap_head into the structure.
26504 (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
26505 DF_BYTE_LR_OUT): Update for embedded bitmaps.
26506 * fwprop.c (single_def_use_enter_block): Likewise.
26507 * ddg.c (create_ddg_dep_from_intra_loop_link,
26508 add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
26509 * loop-iv.c (latch_dominating_def): Likewise.
26510 * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
26511 df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
26512 df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
26513 df_rd_transfer_function, df_rd_top_dump,
26514 df_rd_bottom_dump): Update.
26515 (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
26516 df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
26517 df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
26518 df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
26519 df_lr_verify_solution_start, df_lr_verify_solution_end,
26520 df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
26521 df_live_free_bb_info, df_live_alloc, df_live_reset,
26522 df_live_bb_local_compute, df_live_init, df_live_transfer_function,
26523 df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
26524 df_live_verify_solution_start, df_live_verify_solution_end,
26525 df_live_verify_transfer_functions, df_chain_create_bb,
26526 df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
26527 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
26528 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
26529 df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
26530 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
26531 df_byte_lr_transfer_function, df_byte_lr_top_dump,
26532 df_byte_lr_bottom_dump, df_create_unused_note,
26533 df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
26534 df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
26535 df_md_transfer_function, df_md_init, df_md_confluence_0,
26536 df_md_confluence_n,
26537 df_md_top_dump, df_md_bottom_dump): Update.
26538 (struct df_lr_problem_data): Embedd bitmap headers.
26540 2010-06-04 Jan Hubicka <jh@suse.cz>
26542 * dce.c (dce_process_block): Do not re-scan already marked
26545 2010-06-04 Bernd Schmidt <bernds@codesourcery.com>
26547 PR rtl-optimization/39871
26548 PR rtl-optimization/40615
26549 PR rtl-optimization/42500
26550 PR rtl-optimization/42502
26551 * ira.c (init_reg_equiv_memory_loc: New function.
26552 (ira): Call it twice.
26553 * reload.h (calculate_elim_costs_all_insns): Declare.
26554 * ira-costs.c: Include "reload.h".
26555 (regno_equiv_gains): New static variable.
26556 (init_costs): Allocate it.
26557 (finish_costs): Free it.
26558 (ira_costs): Call calculate_elim_costs_all_insns.
26559 (find_costs_and_classes): Take estimated elimination costs
26561 (ira_adjust_equiv_reg_cost): New function.
26562 * ira.h (ira_adjust_equiv_reg_cost): Declare it.
26563 * reload1.c (init_eliminable_invariants, free_reg_equiv,
26564 elimination_costs_in_insn, note_reg_elim_costly): New static functions.
26565 (elim_bb): New static variable.
26566 (reload): Move code out of here into init_eliminable_invariants and
26567 free_reg_equiv. Call them.
26568 (calculate_elim_costs_all_insns): New function.
26569 (eliminate_regs_1): Declare. Add extra arg FOR_COSTS;
26570 all callers changed. If FOR_COSTS is true, don't call alter_reg,
26571 but call note_reg_elim_costly if we turned a valid memory address
26572 into an invalid one.
26573 * Makefile.in (ira-costs.o): Depend on reload.h.
26575 2010-06-04 Julian Brown <julian@codesourcery.com>
26577 * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
26580 2010-06-04 Richard Guenther <rguenther@suse.de>
26583 * cgraph.h (struct varpool_node): Add lto_file_data field.
26584 * lto-cgraph.c (input_varpool_node): Initialize it.
26586 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
26588 * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
26589 * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
26590 predicate in "type" attribute calculation.
26591 (*addsi_1_zext): Ditto.
26592 (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
26593 (*addsi_2_zext): Ditto.
26594 (*add<mode>_3): Ditto.
26595 (*addsi_3_zext): Ditto.
26596 (*add<mode>_5): Ditto.
26598 2010-06-03 Jan Hubicka <jh@suse.cz>
26600 * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
26602 * cfganal.c (compute_dominance_frontiers_1): Likewise.
26604 2010-06-03 Jan Hubicka <jh@suse.cz>
26606 * df-problems.c (df_create_unused_note, df_note_bb_compute):
26607 micro-optimize the checks when to add new note.
26609 2010-06-03 Nathan Froyd <froydnj@codesourcery.com>
26611 * final.c (output_asm_insn): Call
26612 targetm.asm_out.print_operand_punct_valid_p. Update comments.
26613 (output_operand): Call targetm.asm_out.print_operand. Update comments.
26614 (output_address): Call targetm.asm_out.print_operand_address.
26616 * target.h (struct gcc_target): Add print_operand,
26617 print_operand_address, and print_operand_punct_valid_p fields.
26618 * targhooks.h (default_print_operand): Declare.
26619 (default_print_operand_address): Declare.
26620 (default_print_operand_punct_valid_p): Declare.
26621 * targhooks.c (default_print_operand): Define.
26622 (default_print_operand_address): Define.
26623 (default_print_operand_punct_valid_p): Define.
26624 * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
26625 (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
26626 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
26627 (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
26628 TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
26629 * vmsdbgout.c (addr_const_to_string): Update comment.
26630 * config/i386/i386.c (print_operand): Rename to...
26631 (ix86_print_operand): ...this. Make static.
26632 (print_operand_address): Rename to...
26633 (ix86_print_operand_address): ...this. Make static. Call
26634 ix86_print_operand instead of PRINT_OPERAND.
26635 (ix86_print_operand_punct_valid_p): New function.
26636 (TARGET_PRINT_OPERAND): Define.
26637 (TARGET_PRINT_OPERAND_ADDRESS): Define.
26638 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
26639 * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
26640 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
26641 (PRINT_OPERAND): Delete.
26642 (PRINT_OPERAND_ADDRESS): Delete.
26643 * config/i386/i386-protos.h (print_operand): Delete prototype.
26644 (print_operand_address): Delete prototype.
26646 2010-06-03 Richard Guenther <rguenther@suse.de>
26648 PR tree-optimization/44403
26649 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
26650 Preserve pointer qualifiers.
26651 (vect_create_data_ref_ptr): Likewise.
26653 2010-06-03 H.J. Lu <hongjiu.lu@intel.com>
26656 * defaults.h (MAX_FIXED_MODE_SIZE): New.
26658 * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
26660 2010-06-03 Jakub Jelinek <jakub@redhat.com>
26663 * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
26664 return false if merging the bbs would lead to goto_locus
26665 location being lost from the IL.
26667 2010-06-03 Jan Hubicka <jh@suse.cz>
26668 Jakub Jelinek <jakub@redhat.com>
26670 * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
26671 set->regs[i] is NULL or has just one entry.
26673 2010-06-03 Jan Hubicka <jh@suse.cz>
26675 * lto-cgraph.c (lto_varpool_encoder_size): Remove.
26676 * lto-streamer.h (lto_varpool_encoder_size): New inline function.
26678 2010-06-03 Paul Brook <paul@codesourcery.com>
26680 * config/arm/arm.c (FL_TUNE): Define.
26681 (arm_default_cpu, arm_cpu_select): Remove.
26682 (all_cores): Populate core field.
26683 (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
26684 (arm_find_cpu): New function.
26685 (arm_handle_option): Lookup cpu/architecture names.
26686 (arm_override_options): Cleanup mcpu/march/mtune handling.
26687 (arm_file_start): Ditto.
26689 2010-06-03 Alan Modra <amodra@gmail.com>
26692 * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
26693 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
26694 rtx to gen_load_toc_v4_PIC_1b. Tidy.
26695 (rs6000_emit_load_toc_table): Likewise.
26697 2010-06-02 Jan Hubicka <jh@suse.cz>
26699 * passes.c (init_optimization_passes): Put ipa reference
26700 after ipa pure-const.
26702 2010-06-02 Jan Hubicka <jh@suse.cz>
26704 * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
26705 calls_read_all and calls_write_all.
26706 (get_reference_optimization_summary): Fix formatting.
26707 (is_proper_for_analysis): Check that decl is not readonly.
26708 (propagate_bits): Check CONST/PURE/noreturn flags.
26709 (ipa_init): Move all_module_statics to optimization_summary_obstack.
26710 (analyze_function): Ignore indirect edges.
26711 (copy_global_bitmap): For all module statics, do nothing.
26712 (generate_summary): Do not print calls_read_all/calls_write_all.
26713 (read_write_all_from_decl): Take node as argument; check
26714 cgraph_node_cannot_return.
26715 (propagate): Reorganize read_all/write_all computation;
26716 check indirect edges; check ecf flags; use all_module_statics
26717 in the results; do not free all_module_statics.
26718 (stream_out_bitmap): Handle all_module_statics.
26719 (ipa_reference_write_optimization_summary): Likewise; use
26720 varpool/cgraph encoders to get boundaries.
26721 (ipa_reference_read_optimization_summary): Read in all_module_statics;
26722 use it when possible.
26724 2010-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
26727 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
26728 -mswdiv option. Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
26730 * doc/extend.texi (powerpc builtins): Document vec_recip,
26731 vec_rsqrt, vec_rsqrte altivec/vsx builtins.
26733 * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
26734 (rs6000_emit_swrsqrt): Ditto.
26735 (rs6000_emit_swdivsf): Delete.
26736 (rs6000_emit_swdivdf): Ditto.
26737 (rs6000_emit_swrsqrtsf): Ditto.
26739 * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
26740 describe the reciprocal estimate support for each type.
26741 (recip_options): Map -mrecip=<opt> into option bits.
26742 (gen_2arg_fn_t): New typedef for binary rtx gen function.
26743 (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
26744 reciprocal estimate instructions.
26745 (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
26746 debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
26747 Set up rs6000_recip_bits based on the -mrecip* options. Print the
26748 cost information if -mdebug=cost or -mdebug=reg.
26749 (rs6000_override_options): Set -mrecip-precision for power6, and
26750 power7 machines. If -mvsx or -mdfp, enable various options that
26751 came in previous instruction set ISAs, unless the option was
26752 explicitly disabled by the command line option. Parse
26753 -mrecip=<opt> options.
26754 (rs6000_builtin_vectorized_function): Add support for vectorizing
26755 the reciprocal estimate builtins and expansions.
26756 (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
26757 (bdesc_2arg): Add reciprocal estimate builtins.
26758 (bdesc_1arg): Add reciprocal square root estimate builtins.
26759 (rs6000_expand_builtin): Rewrite to use a switch statement,
26760 instead of multiple if/then/elses. Add reciprocal estimate builtins.
26761 (rs6000_init_builtins): Create declarations for reciprocal
26763 (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
26764 sized, prefer traditional floating point registers, if integer
26765 vector types, prefer altivec registers. Don't actually look at
26766 the memory address any more.
26767 (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
26769 (rs6000_load_constant_and_splat): New helper function to load up
26770 the constant for reciprocal estimate instructions.
26771 (rs6000_emit_madd): New helper function for generating
26772 multiply/add type instructions, based on the current switches.
26773 (rs6000_emit_msub): Ditto.
26774 (rs6000_emit_mnsub): Ditto.
26775 (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
26776 replace a divide with a reciprocal estimate and fixup, adding
26777 support for machines with high precision and vectors.
26778 (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
26779 low precision machines.
26780 (rs6000_emit_swdiv): New common function to be called to replace a
26781 division with reciprocal estimate and fixup.
26782 (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf. Add support
26783 for double and vector types. Add support for high precision machines.
26785 * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
26786 the reciprocal estimate instructions can be generated.
26787 (TARGET_FRE): Ditto.
26788 (TARGET_FRSQRTES): Ditto.
26789 (TARGET_FRSQRTE): Ditto.
26790 (RS6000_RECIP_*): New macros for reciprocal estimate support.
26792 * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
26793 square root estimate on vectors.
26794 (re<mode>2): New insn for reciprocal division estimate on vectors.
26796 * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
26798 (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
26799 (ALTIVEC_BUITLIN_VEC_RE): Ditto.
26800 (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
26801 (VSX_BUILTIN_RSQRT_V4SF): Ditto.
26802 (VSX_BUITLIN_RSQRT_V2DF): Ditto.
26803 (RS6000_BUILTIN_RSQRT): Ditto.
26804 (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
26805 floating point builtin.
26807 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
26808 macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
26809 __RECIP_PRECISION__ based on the command line switches.
26810 (altivec_overloaded_builtins): Add reciprocal estimate builtins.
26812 * config/rs6000/rs6000.opt (-mrecip): Document add support for
26813 replacing division instructions with reciprocal estimate and fixup.
26814 (-mrecip=<opt>): New option.
26815 (-mrecip-precision): Ditto.
26817 * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
26818 (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
26819 (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
26822 * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
26823 (UNSPEC_VREFP): Ditto.
26824 (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
26825 conterparts with regard to support of -mno-fused-madd and -ffast-math.
26826 (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
26827 reciprocal estimate instructions to be generated.
26828 (altivec_vrefp): Ditto.
26830 * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
26832 (rreg): New mode attribute for reciprocal estimate support.
26833 (recip<mode>3): New insn for division using reciprocal estimate
26834 and fixup builtins.
26835 (divide define_split): New define_split to convert floating point
26836 division to use reciprocal estimate if the user used the
26837 appropriate options and the split is run when we can add new
26838 pseudo registers for the fixup.
26839 (rsqrt<mode>2): New insn for reciprocal square root support.
26840 (recipsf3): Move into recip<mode>3.
26842 (fres): Use TARGET_FRES.
26843 (rsqrtsf2): Move into rsqrt<mode>2.
26844 (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
26845 (copysignsf3): Add support for VSX.
26846 (fred): Use TARGET_FRE.
26848 (rsqrtdf_internal1): New function for frsqrte instruciton.
26850 * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
26851 (vec_rsqrt): Ditto.
26853 2010-06-03 Richard Guenther <rguenther@suse.de>
26855 PR middle-end/44291
26856 * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
26857 (set_user_assembler_libfunc): Likewise.
26859 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
26861 * mkconfig.sh: Include insn-flags.h and insn-constants.h before
26863 * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
26865 * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
26866 DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
26867 FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
26868 STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
26869 STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
26870 STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
26871 STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
26872 STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
26873 * defaults.h: Updated for above mentioned changes.
26875 2010-06-02 Kai Tietz <kai.tietz@onevision.com>
26877 * c-common.c: Remove header include of tm_p.h.
26878 * Makefile.in (c-common.o): Remove TM_P_H dependency.
26880 2010-06-02 Jakub Jelinek <jakub@redhat.com>
26882 * tree.h (struct tree_decl_map): New type.
26883 (tree_decl_map_eq, tree_decl_map_marked_p): Define.
26884 (tree_decl_map_hash): New prototype.
26885 (debug_expr_for_decl, value_expr_for_decl): Change into
26886 tree_decl_map hashtab from tree_map.
26887 (init_ttree): Adjust initialization.
26888 (tree_decl_map_hash): New function.
26889 (decl_debug_expr_lookup, decl_debug_expr_insert,
26890 decl_value_expr_lookup, decl_value_expr_insert): Adjust.
26892 2010-06-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26894 * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
26896 * configure: Regenerate.
26897 * config.in: Regenerate.
26899 * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
26900 (X86_64_EMULATION): Define.
26901 (TARGET_LD_EMULATION): Use them.
26903 * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
26904 (SPARC64_EMULATION): Define.
26905 (LINK_ARCH_SPEC): Use them.
26907 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
26909 * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
26910 smallest_mode_for_size for computing the precision types of new
26911 graphite IVs. Do not call lang_hooks.types.type_for_size.
26913 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
26915 * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
26917 (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
26919 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
26921 PR middle-end/44363
26922 * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
26923 return false instead.
26925 2010-06-02 Jan Hubicka <jh@suse.cz>
26927 PR middle-end/44295
26928 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
26929 create new cgraph node to check callee.
26931 2010-06-02 Richard Guenther <rguenther@suse.de>
26933 * lto-streamer-in.c (input_gimple_stmt): Fix typo.
26935 2010-06-02 Richard Guenther <rguenther@suse.de>
26937 * lto-wrapper.c (lto_wrapper_exit): Rename to ...
26938 (lto_wrapper_cleanup): ... this. Do not exit.
26939 (fatal): Adjust. Exit here.
26940 (fatal_perror): Likewise.
26941 (fatal_signal): New function.
26942 (main): Set up signal handlers to cleanup temporary files.
26943 * Makefile.in (lto-wrapper.o): Adjust dependencies.
26945 2010-06-02 Richard Guenther <rguenther@suse.de>
26947 PR tree-optimization/44377
26948 * tree-ssa-structalias.c (find_func_aliases): Fix typo.
26950 2010-06-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26952 * config/s390/2097.md (z10_fhex): Remove insn reservation.
26953 * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
26954 (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
26955 *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
26957 * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
26959 2010-06-02 Jan Hubicka <jh@suse.cz>
26961 * bitmap.c (bitmap_descriptor): Add search_iter.
26962 (bitmap_find_bit): Increment it.
26963 (print_statistics): Print it.
26965 2010-06-02 Nathan Froyd <froydnj@codesourcery.com>
26967 * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
26968 instead of gimple_build_call_vec. Delete unnecessary local variable.
26970 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
26972 * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
26973 change from yesterday.
26975 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
26977 * c-ada-spec.c: Clean up redundant includes.
26979 2010-06-01 Steven Bosscher <steven@gcc.gnu.org>
26981 * gimplify.c: Do not include except.h and optabs.h.
26982 (gimplify_body): Do not initialize RTL profiling.
26983 * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
26984 langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
26985 * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
26986 output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
26989 * tree-pretty-print.h: Include pretty-print.h.
26990 * gimple-pretty-print.h: Include pretty-print.h.
26992 * tree-pretty-print.c: Do not include diagnostic.h.
26993 * tree-vrp.c: Likewise.
26994 * tree-tailcall.c: Likewise
26995 * tree-scalar-evolution.c: Likewise
26996 * tree-ssa-dse.c: Likewise
26997 * tree-chrec.c: Likewise
26998 * tree-ssa-sccvn.c: Likewise
26999 * tree-ssa-copyrename.c: Likewise
27000 * tree-nomudflap.c: Likewise
27001 * tree-call-cdce.c: Likewise
27002 * tree-stdarg.c: Likewise
27003 * tree-ssa-math-opts.c: Likewise
27004 * tree-nrv.c: Likewise
27005 * tree-ssa-sink.c: Likewise
27006 * tree-browser.c: Likewise
27007 * tree-ssa-loop-ivcanon.c: Likewise
27008 * tree-ssa-loop.c: Likewise
27009 * tree-parloops.c: Likewise
27010 * tree-ssa-address.c: Likewise
27011 * tree-ssa-ifcombine.c: Likewise
27012 * tree-if-conv.c: Likewise
27013 * tree-data-ref.c: Likewise
27014 * tree-affine.c: Likewise
27015 * tree-ssa-phiopt.c: Likewise
27016 * tree-ssa-coalesce.c: Likewise
27017 * tree-ssa-pre.c: Likewise
27018 * tree-ssa-live.c: Likewise
27019 * tree-predcom.c: Likewise
27020 * tree-ssa-forwprop.c: Likewise
27021 * tree-ssa-dce.c: Likewise
27022 * tree-ssa-ter.c: Likewise
27023 * tree-ssa-loop-prefetch.c: Likewise
27024 * tree-optimize.c: Likewise
27025 * tree-ssa-phiprop.c: Likewise
27026 * tree-object-size.c: Likewise
27027 * tree-outof-ssa.c: Likewise
27028 * tree-ssa-structalias.c: Likewise
27029 * tree-switch-conversion.c: Likewise
27030 * tree-ssa-reassoc.c: Likewise
27031 * tree-ssa-operands.c: Likewise
27032 * tree-vectorizer.c: Likewise
27033 * tree-vect-data-refs.c: Likewise
27034 * tree-vect-generic.c: Likewise
27035 * tree-vect-stmts.c: Likewise
27036 * tree-vect-patterns.c: Likewise
27037 * tree-vect-slp.c: Likewise
27038 * tree-vect-loop.c: Likewise
27039 * tree-ssa-loop-ivopts.c: Likewise
27040 * tree-ssa-loop-im.c: Likewise
27041 * tree-ssa-loop-niter.c: Likewise
27042 * tree-ssa-loop-unswitch.c: Likewise
27043 * tree-ssa-loop-manip.c: Likewise
27044 * tree-ssa-loop-ch.c: Likewise
27045 * tree-dump.c: Likewise
27046 * tree-complex.c: Likewise
27048 * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
27049 * tree-ssa-uninit.c: Likewise
27050 * tree-ssa-threadupdate.c: Likewise
27051 * tree-ssa-uncprop.c: Likewise
27052 * tree-ssa-ccp.c: Likewise
27053 * tree-ssa-dom.c: Likewise
27054 * tree-ssa-propagate.c: Likewise
27055 * tree-ssa-alias.c: Likewise
27056 * tree-dfa.c: Likewise
27057 * tree-cfgcleanup.c: Likewise
27058 * tree-sra.c: Likewise
27059 * tree-ssa-copy.c: Likewise
27060 * tree-ssa.c: Likewise
27061 * tree-profile.c: Likewise
27062 * tree-cfg.c: Likewise
27063 * tree-ssa-threadedge.c: Likewise
27064 * tree-vect-loop-manip.c: Likewise
27066 * tree-inline.c: Do not include diagnostic.h and expr.h.
27068 (copy_decl_for_dup_finish): Do not use NULL_RTX.
27070 * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
27071 * tree-loop-distribution.c: Likewise.
27073 2010-06-01 Jan Hubicka <jh@suse.cz>
27075 * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
27077 2010-06-01 Jan Hubicka <jh@suse.cz>
27079 * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
27080 remove return value.
27081 (split_bbs_on_noreturn_calls) .... here.
27082 * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
27083 * tree-flow.h (fixup_noreturn_call): New.
27085 2010-06-01 Jan Hubicka <jh@suse.cz>
27087 * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
27089 2010-06-01 Nathan Froyd <froydnj@codesourcery.com>
27091 * tree.h (build_nt_call_list): Delete.
27092 * tree.c (build_nt_call_list): Delete.
27094 2010-06-01 Jan Hubicka <jh@suse.cz>
27096 * fwprop.c: Make emit-rtl.h include last.
27097 * rtlanal.c: Include emit-rtl.h.
27098 * genautomata.c: Output emit-rtl include into insn-automata.c
27099 * df-scan.c: Include emit-rtl.h.
27100 * haifa-sched.c: Indlude emit-rtl.h.
27101 * mode-switching.c: Indlude emit-rtl.h.
27102 * graph.c: Indlude emit-rtl.h.
27103 * sel-sched.c: Include emit-rtl.h.
27104 * sel-sched-ir.c: Include emit-rtl.h.
27105 * ira-build.c: Include emit-rtl.h.
27106 * emit-rtl.c (first_insn, last_insn): Remove defines.
27107 (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
27108 Move to emit-rtl.h.
27109 (set_new_first_and_last_insn, get_last_insn_anywhere,
27110 get_first_nonnote_insn, get_last_nonnote_insn, try_split,
27111 make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
27112 delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
27113 emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
27114 push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
27115 Use accessor functions.
27116 * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
27117 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
27118 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
27119 mem_expr_equal_p): Move here from rtl.h.
27120 (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
27121 Move here from emit-rtl.c; make inline.
27122 * cfglayout.h: Include emit-rtl.h.
27123 * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
27124 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
27125 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
27126 mem_expr_equal_p, get_insns, set_first-insn,
27127 get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
27128 * reg-stack.c: Include emit-rtl.h.
27131 2010-06-01 Jan Hubicka <jh@suse.cz>
27133 * cgraph.h (tree_function_versioning): Update prototype.
27134 (cgraph_function_versioning): Update prototype.
27135 * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
27137 (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
27138 (cgraph_materialize_clone, save_inline_function_body): Update use of
27139 tree_function_versioning.
27140 * tree-inline.c (copy_bb): Look for previous copied block to link
27141 after; fix debug output.
27142 (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
27143 (copy_body): Likewise.
27144 (expand_call_inline): Update use of copy_body.
27145 (tree_function_versioning): Update use of copy body; accept
27146 blocks_to_copy and new_entry.
27148 2010-06-01 Jan Hubicka <jh@suse.cz>
27150 * gegenrtl.c: Remove unnecesary prototypes.
27152 (gendef): Produce static inline.
27154 (main): Do not decode parameters; generate header only.
27155 * Makefile.in (genrtl.c): Remove.
27157 2010-06-01 Jan Hubicka <jh@suse.cz>
27159 * tree-switch-conversion.c (build_one_array): Make it readonly.
27161 2010-06-01 Richard Guenther <rguenther@suse.de>
27163 * optabs.c (init_optabs): Guard all accesses to reinit.
27164 * ipa-pure-const.c (propagate): Fix another typo.
27165 * opts.c (common_handle_option): Split assignment to bool.
27166 * c-opts.c (c_common_handle_option): Likewise.
27168 2010-06-01 Arnaud Charlet <charlet@adacore.com>
27169 Matthew Gingell <gingell@adacore.com>
27171 * doc/invoke.texi: Mention -fdump-ada-spec.
27172 * tree-dump.c (dump_files): Add ada-spec.
27173 (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
27174 * tree-pass.h (tree_dump_index): Add TDI_ada.
27175 * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
27176 (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
27177 (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
27178 * c-decl.c: Include c-ada-spec.h.
27179 (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
27181 (c_write_global_declarations): Add handling of -fdump-ada-spec.
27182 * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
27183 * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
27184 * c-ada-spec.h, c-ada-spec.c: New files.
27186 2010-06-01 Richard Guenther <rguenther@suse.de>
27189 * ipa-pure-const.c (get_function_state): Hand back varying state
27190 if we do not have one.
27191 (has_function_state): New function.
27192 (duplicate_node_data): Adjust.
27193 (remove_node_data): Likewise.
27194 (pure_const_write_summary): Likewise.
27195 (propagate): Likewise. Fix typo.
27197 2010-06-01 Jan Hubicka <jh@suse.cz>
27199 * tree-cfg.c (verify_stmt): Do not skip could_throw test.
27200 * passes.c (execute_function_todo): Do not make implicit verify_ssa.
27201 (execute_all_ipa_transforms): Do not play with the states.
27203 2010-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
27205 * config/arm/t-linux-androideabi: New.
27206 * config.gcc (arm*-*-linux-androideabi): Include multilib config.
27208 2010-06-01 Jan Hubicka <jh@suse.cz>
27210 * tree-inline.c (estimate_num_insns): For stdarg functions look
27211 into call statement to count cost of argument passing.
27213 2010-06-01 Kai Tietz <kai.tietz@onevision.com>
27215 * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
27216 argument for fprintf.
27217 (ix86_output_addr_diff_elt): Likewise.
27218 (x86_function_profiler): Likewise.
27219 * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
27220 (LPREFIX): Likewise.
27221 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
27223 2010-05-31 Jakub Jelinek <jakub@redhat.com>
27226 * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
27227 fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
27228 fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
27229 fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
27230 fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
27231 fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
27232 fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
27233 Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
27236 2010-05-31 Jan Hubicka <jh@suse.cz>
27238 * tree.h (tree_range_check_failed): Declare noreturn.
27240 2010-05-31 Jan Hubicka <jh@suse.cz>
27242 * gimple.c (gimple_call_builtin_p): New function.
27243 * gimple.h (gimple_call_builtin_p): Declare.
27244 * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
27246 (execute_warn_function_return): BUILT_IN_RETURN is return.
27247 (split_critical_edges): Return edges are not critical.
27248 (is_ctrl_altering_stmt): Builtin_in_return is altering.
27249 (gimple_verify_flow_info): Handle built_in_return.
27250 (execute_warn_function_return): Handle built_in_return.
27251 * ipa-pure-const.c (check_call): Ignore builtin_return.
27253 2010-05-31 Jakub Jelinek <jakub@redhat.com>
27255 PR middle-end/44337
27256 * expr.c (expand_assignment): Don't store anything for out-of-bounds
27257 array accesses with non-MEM.
27259 PR tree-optimization/44182
27260 * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
27261 newly needs to end a bb is followed by debug stmts, instead return
27262 true from the function at the end.
27263 (maybe_move_debug_stmts_to_successors): New function.
27264 (copy_cfg_body): Call it if copy_edges_for_bb returned true.
27266 2010-05-31 Kai Tietz <kai.tietz@onevision.com>
27269 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
27271 2010-05-31 Eric Botcazou <ebotcazou@adacore.com>
27273 * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
27274 for nested functions in non-optimized compilation.
27276 2010-05-31 Richard Guenther <rguenther@suse.de>
27278 * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
27280 2010-05-30 Jan Hubicka <jh@suse.cz>
27282 * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
27284 2010-05-30 Richard Guenther <rguenther@suse.de>
27287 * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
27288 (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
27291 2010-05-30 Iain Sandoe <iains@gcc.gnu.org>
27293 * config/darwin.c (output_objc_section_asm_op): Add comment.
27294 (name_needs_quotes): Add '_' to list of valid comment chars.
27295 (machopic_output_function_base_name): Remove unneeded quotes.
27296 (darwin_encode_section_info): Adjust asm whitespace.
27297 * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
27298 (ASM_OUTPUT_LOCAL): Ditto.
27299 * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
27300 * config/darwin.h (GLOBAL_ASM_OP): Ditto.
27301 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
27303 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
27305 * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
27306 RS6000_OUTPUT_BASENAME unconditionally.
27307 (rs6000_output_function_epilogue): Likewise.
27309 2010-05-30 Jan Hubicka <jh@suse.cz>
27311 * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
27314 2010-05-30 Richard Guenther <rguenther@suse.de>
27316 * tree-cfg.c (verify_gimple_assign_single): Implement
27317 verification for COND_EXPR rhs.
27319 2010-05-30 Jan Hubicka <jh@suse.cz>
27321 * cgraph.h (cgraph_dump_file): Declare.
27322 * cgraphunit.c (cgraph_dump_file): Export.
27323 * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
27325 2010-05-30 Jan Hubicka <jh@suse.cz>
27327 * dwarf2out.c (reference_to_unused,
27328 premark_types_used_by_global_vars_helper): Avoid creation of new
27331 2010-05-30 Jan Hubicka <jh@suse.cz>
27333 * cgraph.h (cgraph_node_cannot_return,
27334 cgraph_edge_cannot_lead_to_return): New functions.
27335 * cgraph.c (cgraph_node_cannot_return,
27336 cgraph_edge_cannot_lead_to_return): Use them.
27337 * ipa-pure-const.c (pure_const_names): New static var.
27338 (check_call): Handle calls not leading to return.
27339 (pure_const_read_summary): Dump info read.
27340 (propagate): Dump info about propagation process; ignore side effects
27341 of functions not leading to exit; fix handling of pure functions.
27343 2010-05-30 Jan Hubicka <jh@suse.cz>
27345 * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
27346 for tail call epilogues.
27348 2010-05-30 Jan Hubicka <jh@suse.cz>
27350 * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
27351 ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
27354 2010-05-29 Jan Hubicka <jh@suse.cz>
27356 * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
27357 node; remove references in node we no longer keep in cgrpah but need
27360 2010-05-29 Jan Hubicka <jh@suse.cz>
27362 * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
27364 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
27367 * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
27369 2010-05-29 Jan Hubicka <jh@suse.cz>
27371 * tree-vrp.c (debug_value_range, debug_all_value_ranges,
27372 debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
27373 * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
27374 debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
27375 debug_names_replaced_by, debug_update_ssa): Likewise.
27376 * sbitmap.c (debug_sbitmap): Likewise.
27377 * genrecog.c (debug_decision, debug_decision_list): Likewise.
27378 * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
27379 debug_tree_chain): Likewise.
27380 * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
27381 * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
27382 * optabs.c (debug_optab_libfuncs): Likewise.
27383 (verify_loop_closed_ssa): Likewise.
27384 * value-prof.c (verify_histograms): Likewise.
27385 * reload.c (debug_reload_to_stream, debug_reload): Likewise.
27386 * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
27387 * cfghooks.c (verify_flow_info): Likewise.
27388 * fold-const.c (debug_fold_checksum): Likewise.
27389 * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
27390 * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
27392 * omega.c (debug_omega_problem): Likewise.
27393 * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
27394 * tree-ssa-ccp.c (debug_lattice_value): Likewise.
27395 * dominance.c (verify_dominators, debug_dominance_info,
27396 debug_dominance_tree): Likewise.
27397 * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
27398 * df_regno_debug, df_ref_debug,
27399 debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
27400 debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
27401 * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
27402 * sel-sched.c (debug_state): Likewise.
27403 * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
27405 * cfganal.c (print_edge_list, verify_edge_list): Likewise.
27406 * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
27407 * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
27408 * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
27410 * c-pretty-print.c (debug_c_tree): Likewise.
27411 * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
27412 debug_av_set, debug_lv_set, debug_ilist, debug_blist,
27413 debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
27414 * ebitmap.c (debug_ebitmap): Likewise.
27415 * function.c (debug_find_var_in_block_tree): Likewise.
27416 * print-rtl.c (debug_rtx): Likewise.
27417 (debug_rtx_count): Likewise.
27418 (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
27419 * stor-layout.c (debug_rli): Likewise.
27420 * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
27421 * tree-data-ref.c (debug_data_references,
27422 debug_data_dependence_relations, debug_data_reference,
27423 debug_data_dependence_relation, debug_rdg_vertex,
27424 debug_rdg_component, debug_rdg): Likewise.
27425 * tree-affine.c (debug_aff): Likewise.
27426 * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
27428 * except.c (debug_eh_tree, verify_eh_tree): Likewise.
27429 * emit-rtl.c (verify_rtl_sharing): Likewise.
27430 * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
27431 debug_value_expressions): Likewise.
27432 * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
27433 * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
27434 * print-tree.c (debug_tree, debug_vec_tree): Likewise.
27435 * cfglayout.c (verify_insn_chain): Likewise.
27436 * graphite-clast-to-gimple.c (debug_clast_name_indexes,
27437 debug_clast_stmt, debug_generated_program): Likewise.
27438 * ggc-page.c (debug_print_page_list): Likewise.
27439 * tree-ssa-ter.c (debug_ter): Likewise.
27440 * graphite-dependences.c (debug_pddr): Likewise.
27441 * sched-deps.c (debug_ds): Likewise.
27442 * tree-ssa.c (verify_ssa): Likewise.
27443 * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
27444 debug_scattering_functions, debug_iteration_domains, debug_pdr,
27445 debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
27446 debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
27447 * tree-inline.c (debug_find_tree): Likewise.
27448 * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
27449 debug_ppl_powerset_matrix): Likewise.
27450 * var-tracking.c (debug_dv): Likewise.
27451 * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
27452 * cfgloop.c (verify_loop_structure): Likewise.
27453 * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
27454 * c-common.c (verify_sequence_points): Likewise.
27455 * sched-rgn.c (debug_regions, debug_region, debug_candidate,
27456 debug_candidates, debug_rgn_dependencies): Likewise.
27457 * tree-ssa-structalias.c (debug_constraint, debug_constraints,
27458 * debug_constraint_graph, debug_solution_for_var,
27459 debug_sa_points_to_info): Likewise.
27460 * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
27462 * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
27463 debug_loops, debug_loop, debug_loop_num): Likewise.
27464 * passes.c (debug_pass): Likewise.
27465 (dump_properties): Likewise; add cfglayout property.
27466 (debug_properties): Likewise.
27467 * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
27468 * varpool.c (debug_varpool): Likewise.
27469 * regcprop.c (debug_value_data): Likewise.
27470 * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
27471 debug_immediate_uses_for): Likewise.
27473 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
27476 * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
27477 Filter out insn-flags.h.
27479 2010-05-29 Jan Hubicka <jh@suse.cz>
27481 * cgraph.h (struct varpool_node_set_def,
27482 struct cgraph_node_set_def): Remove unused AUX pointer.
27483 (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
27486 2010-05-29 Jan Hubicka <jh@suse.cz>
27488 PR middle-end/44324
27489 * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
27491 2010-05-29 Richard Guenther <rguenther@suse.de>
27493 * lto-streamer.c (cached_bp): New global variable.
27494 (bitpack_create): Return the cached bitpack, if available.
27495 (bitpack_delete): Clear and cache the bitpack, if appropriate.
27496 (bp_pack_value): Remove redundant asserts.
27498 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
27500 PR middle-end/44306
27501 * tree-if-conv.c (is_true_predicate): New.
27502 (is_predicated): Use is_true_predicate.
27503 (add_to_predicate_list): Same. Do not use unshare_expr.
27504 (add_to_dst_predicate_list): Same.
27506 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
27508 * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
27510 (predicate_bbs): Same.
27511 (clean_predicate_lists): Same.
27512 (find_phi_replacement_condition): Do not AND the predicate from
27515 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
27518 * Makefile.in (build/gencondmd.o): Add a missing `\'.
27520 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
27523 config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
27524 (negdf2): Adjust expander pattern and use negdf2_slow.
27525 (negsf2): Likewise.
27527 2010-05-29 Nathan Froyd <froydnj@codesourcery.com>
27529 * basic-block.h (struct control_flow_graph): Move last_label_uid field
27531 * df.h (struct df_base_ref): Move regno field up.
27532 * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
27533 * expr.h (struct separate_ops): Move location field up.
27534 * optabs.h (struct optab_d): Move libcall_basename field down.
27535 * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
27536 * config/i386/i386.h (struct machine_function): Convert call_abi field
27537 into a bitfield. Move cfa field to the end of the structure.
27539 2010-05-29 Jan Hubicka <jh@suse.cz>
27541 * varpool.c (varpool_get_node): Fix lookup.
27543 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
27545 * config/spu/spu-protos.h: Do not include rtl.h. Protect
27546 RTL specific prototypes with #ifdef RTX_CODE.
27547 * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
27548 * config/spu/t-spu-elf: Fix dependencies.
27550 * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
27552 2010-05-29 Mike Stump <mikestump@comcast.net>
27555 * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
27556 TM_H when building to avoid dependency loops.
27558 2010-05-29 Jan Hubicka <jh@suse.cz>
27560 * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
27561 refs and body; not the whole node for masters of materialized clones.
27563 2010-05-29 Mike Stump <mikestump@comcast.net>
27565 * config/rs6000/rs6000-c.c: Remove c-tree.h include.
27567 2010-05-29 Jan Hubicka <jh@suse.cz>
27569 * cgraph.c (clone_function_name): Take SUFFIX argument; export.
27570 (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
27571 use of clone_function_name.
27572 * cgraph.h (cgraph_create_virtual_clone,
27573 cgraph_function_versioning): update prototypes.
27574 (clone_function_name): Declare.
27575 * ipa-cp.c (ipcp_insert_stage): Update call of
27576 cgraph_create_virtual_clone.
27577 * omp-low.c (create_omp_child_function_name): Use
27578 cgraph_create_virtual_clone.
27579 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
27580 (cgraph_function_versioning): Take SUFFIX argument; produce new name
27581 and make decl local.
27583 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
27585 * vec.h: Include statistics.h
27586 * Makefile.in: Introduce VEC_H. Replace all vec.h dependencies
27589 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
27591 * c-lex.c: Do not include c-tree.h.
27592 * c-pretty-print.c: Likewise.
27593 * c-opts.c: Likewise.
27594 * c-gimplify.c: Likewise.
27595 * c-common.c: Likewise.
27596 * c-dump.c: Likewise. Include c-common.h.
27598 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
27600 * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
27601 before including diagnostic-core.h.
27602 (c_cpp_error): New prototype moved from c-tree.h.
27603 Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
27604 * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
27605 (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
27606 (c_cpp_error): Prototype moved to c-common.h.
27607 * Makefile.in: Update dependency for C_COMMON_H.
27609 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
27611 * c-common.h: Add FIXME for awkward split of c_register_addr_space.
27612 * c-common.c (c_register_addr_space): Remove here.
27613 * c-decl.c (c_register_addr_space): Re-add here.
27615 2010-05-28 Mike Stump <mikestump@comcast.net>
27617 * config/darwin-c.c: Remove c-tree.h include.
27619 2010-05-28 Joseph Myers <joseph@codesourcery.com>
27621 * gcc.c: Include diagnostic.h.
27622 (error_count): Remove. All users changed to use errorcount.
27623 (programname): Remove. All users changed to use progname.
27624 (fancy_abort, internal_error, fatal_error, error, warning, inform,
27626 (execute): Don't include "Internal error" and bug reporting
27627 information in argument of internal_error call.
27628 (process_command): Don't increment error_count after calling
27630 (input_filename): Rename to gcc_input_filename. All users
27632 (main): Call diagnostic_initialize. Register delete_temp_files
27633 with atexit. Use seen_error to test for errors.
27634 * gcc.h: Include diagnostic-core.h.
27635 (fatal_error, error, warning): Remove.
27636 * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
27637 (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
27638 (gcc.o): Update dependencies.
27640 2010-05-28 Jeff Law <law@redhat.com>
27642 * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
27644 * ira.h (ira_bad_reload_regno): Declare
27645 * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
27647 * ira-color.c (update_curr_costs): Free updated hard reg costs.
27648 (ira_reassign_conflict_allocnos): Remove bogus asserts.
27649 (allocno_reload_assign): Likewise.
27651 2010-05-28 Nathan Froyd <froydnj@codesourcery.com>
27653 * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
27656 2010-05-28 Richard Guenther <rguenther@suse.de>
27659 * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
27660 Stream fixed-point constants mode.
27661 (unpack_ts_type_value_fields): Fix width of TYPE_MODE
27662 and TYPE_PRECISION.
27663 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
27664 Stream fixed-point constants mode.
27665 (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
27666 and TYPE_PRECISION.
27668 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
27670 * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
27671 only place it was called from.
27672 (number_of_latch_executions): Do not return chrec_dont_know when the
27673 may_be_zero is a runtime condition: instead, return a COND_EXPR
27674 including the may_be_zero condition.
27675 * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
27677 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
27680 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
27682 * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
27683 generate COND_EXPRs for degenerate_phi_result.
27685 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
27687 PR middle-end/44293
27688 * tree-if-conv.c (if_convertible_loop_p): Check the
27689 if-convertibility of phi nodes in non predicated BBs.
27691 2010-05-28 Joseph Myers <joseph@codesourcery.com>
27693 * gcc.c (error, warning, inform): Remove duplicate ": " in output.
27695 2010-05-28 Joseph Myers <joseph@codesourcery.com>
27698 * gcc.c (inform, warning, inform): New functions.
27699 (fatal_ice): Rename to internal_error; change cmsgid parameter to
27700 gmsgid. All callers changed.
27701 (notice): Rename to fnotice; add parameter fp. All callers changed.
27702 (fatal_error): Rename to fatal_signal. All users changed.
27703 (fatal): Rename to fatal_error; change cmsgid parameter to
27704 gmsgid. All callers changed.
27705 (process_command): Use warning instead of error for warnings.
27706 (end_going_arg): Don't use _() around argument of error.
27707 (do_spec_1): Use inform for message from %n specs. Use warning
27708 instead of error for warnings.
27709 (main): Use inform for comparison messages. Use warning for
27710 message about unused linker input.
27711 (error): Increment error_count. Print "error: ".
27712 * gcc.h (fatal): Change to fatal_error.
27713 (warning): Declare.
27714 * config/darwin-driver.c (darwin_default_min_version): Use warning
27715 instead of fprintf for warnings.
27716 * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
27718 2010-05-28 Julian Brown <julian@codesourcery.com>
27720 * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
27721 (*thumb2_addsi3_compare0_scratch): New.
27722 * config/arm/constraints.md (Pv): New.
27723 * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
27725 (*addsi3_compare0_scratch): Likewise.
27727 2010-05-28 Jan Hubicka <jh@suse.cz>
27729 * ipa-reference.c (add_static_var): Remove redundant all_module_statics
27731 (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
27732 only on local statics.
27734 2010-05-28 Iain Sandoe <iains@gcc.gnu.org>
27736 * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
27738 2010-05-28 Maxim Kuvyrkov <maxim@codesourcery.com>
27741 * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
27742 (OPTION_GLIBC): Define.
27744 2010-05-28 Jakub Jelinek <jakub@redhat.com>
27747 * dwarf2out.c (double_int_type_size_in_bits): New function.
27748 (round_up_to_align): Change first argument and return value to
27750 (field_byte_offset): Work internally on double_ints.
27753 * builtins.c (expand_movstr): Use a temporary pseudo instead
27754 of target even when target is not NULL and not const0_rtx, but
27755 fails movstr predicate.
27756 * config/m32c/blkmov.md (movstr): Add predicate to first operand.
27758 2010-05-28 Joseph Myers <joseph@codesourcery.com>
27760 * final.c (rest_of_clean_state): Use %m in errors instead of
27762 * gengtype.c (read_input_list, close_output_files): Use xstrerror
27763 instead of strerror.
27764 * toplev.c (process_options): Use %m in errors instead of strerror
27766 * tree-dump.c (dump_begin): Use %m in errors instead of strerror
27769 2010-05-28 Uros Bizjak <ubizjak@gmail.com>
27771 * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
27772 (ix86_canonical_va_list_type): Make static. Add declaration.
27773 (ix86_enum_va_list): Make static. Reindent.
27774 * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
27775 (ix86_canonical_va_list_type): Ditto.
27776 (ix86_enum_va_list): Ditto.
27778 2010-05-28 Richard Guenther <rguenther@suse.de>
27780 * lto-wrapper.c (run_gcc): With -save-temps generate a
27781 user-visible ltrans filename. Fixup ltrans unit numbering.
27783 2010-05-28 Kai Tietz <kai.tietz@onevision.com>
27785 * c-common.c (c_common_nodes_and_builtins): Replace use
27786 of TARGET_ENUM_VA_LIST by target hook enum_va_list.
27787 * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
27788 to ix86_enum_va_list.
27789 * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
27790 * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
27791 (TARGET_ENUM_VA_LIST_P): Add hook description.
27792 * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
27793 * target.h (gcc_target): Add enum_va_list hook.
27796 * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
27797 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
27798 * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
27800 2010-05-28 Alan Modra <amodra@gmail.com>
27803 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
27804 emit_library_call machinery to set up __tls_get_addr calls.
27806 2010-05-28 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27808 * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
27810 2010-05-28 Dodji Seketeli <dodji@redhat.com>
27812 Revert fix for PR c++/44188
27813 * c-common.c (is_typedef_decl): Revert the moving of this
27815 * tree.c (is_typedef_decl): ... here.
27816 (typdef_variant_p): Revert the moving of this definition
27817 here from cp/tree.c.
27818 * c-common.h (is_typedef_decl): Revert the moving of this
27820 * tree.h (is_typedef_decl): ... here.
27821 (typedef_variant_p): Revert the moving of this declaration here
27823 * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
27824 (gen_tagged_type_die): Revert the splitting out of ...
27825 (gen_type_die_with_usage): ... this function. Revert the anonymous
27826 tagged type handling.
27827 (gen_typedef_die): Revert emitting DW_TAG_typedef for
27828 typedefs naming anonymous tagged types.
27830 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
27832 * config/rs6000/rs6000-modes.def (PSImode): Delete.
27834 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
27836 * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
27837 * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
27839 * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
27841 Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
27842 XER_REGS to CA_REGS throughout.
27843 * config/rs6000/rs6000.h: Same.
27844 (ADDITIONAL_REGISTER_NAMES): Add "xer".
27845 * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO. Document
27846 that mode_iterator "P" is the size for arithmetic carries as well.
27847 * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
27849 2010-05-28 Jakub Jelinek <jakub@redhat.com>
27852 * combine.c (struct rtx_subst_pair): Define unconditionally.
27853 (propagate_for_debug_subst): Likewise. If not AUTO_INC_DEC,
27854 copy_rtx pair->to instead of cleanup_auto_inc_dec it.
27855 Call make_compound_operation on pair->to.
27856 (propagate_for_debug): Don't call make_compound_operation here.
27857 Always use simplify_replace_fn_rtx.
27859 2010-05-27 Sterling Augustine <sterling@tensilica.com>
27861 * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
27862 * config/xtensa/xtensa.c (override_options): Check
27863 TARGET_FORCE_NO_PIC and set flag_pic.
27864 * config/xtensa/xtensa.opt: Document -mforce-no-pic
27866 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
27869 * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
27870 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
27872 2010-05-27 Joseph Myers <joseph@codesourcery.com>
27874 * diagnostic-core.h: New. Contents moved from diagnostic.h and
27876 * diagnostic.c: Don't include toplev.h.
27877 (progname): Define. Moved from toplev.c.
27878 (seen_error): New function.
27879 * diagnostic.h: Include diagnostic-core.h.
27880 (diagnostic_t, emit_diagnostic): Don't declare here.
27881 * toplev.c (progname): Move to toplev.c.
27882 (emit_debug_global_declarations, compile_file, finalize,
27883 do_compile, toplev_main): Use seen_error.
27884 * toplev.h: Include diagnostic-core.h.
27885 (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
27886 internal_error, warning, warning_at, error, error_n, error_at,
27887 fatal_error, pedwarn, permerror, sorry, inform, inform_n,
27888 verbatim, fnotice, progname): Move to diagnostic-core.h.
27889 * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
27890 (expand_builtin_expect): Use seen_error.
27891 * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
27892 (c_make_fname_decl, c_write_global_declarations): Use seen_error.
27893 * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
27894 * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
27895 * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
27896 * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
27897 errorcount for errors.
27898 * c-opts.c (c_common_finish): Use seen_error.
27899 * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
27900 * cgraphunit.c (verify_cgraph_node, verify_cgraph,
27901 cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
27902 * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
27903 (get_coverage_counts): Use seen_error.
27904 * dwarf2out.c (dwarf2out_finish): Use seen_error.
27905 * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
27906 gimplify_body): Use seen_error.
27907 * ipa-inline.c (cgraph_early_inlining): Use seen_error.
27908 * ipa-pure-const.c (gate_pure_const): Use seen_error.
27909 * ipa-reference.c (gate_reference): Use seen_error.
27910 * jump.c: Include diagnostic-core.h instead of diagnostic.h.
27911 * lambda-code.c: Include diagnostic-core.h instead of
27913 * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
27914 * lto-compress.c: Include diagnostic-core.h instead of
27916 * lto-section-in.c: Include diagnostic-core.h instead of
27918 * lto-streamer-out.c: Include diagnostic-core.h instead of
27920 * lto-streamer.c: Include diagnostic-core.h instead of
27922 (gate_lto_out): Use seen_error.
27923 * matrix-reorg.c: Include diagnostic-core.h instead of
27925 * omega.c: Include diagnostic-core.h instead of diagnostic.h.
27926 * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
27927 (gate_expand_omp, lower_omp_1): Use seen_error.
27928 * passes.c: Include diagnostic-core.h instead of diagnostic.h.
27929 (rest_of_decl_compilation, rest_of_type_compilation,
27930 gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
27931 * tree-cfg.c (label_to_block_fn): Use seen_error.
27932 * tree-inline.c (optimize_inline_calls): Use seen_error.
27933 * tree-mudflap.c (mudflap_finish_file): Use
27935 * tree-optimize.c (gate_all_optimizations,
27936 gate_all_early_local_passes, gate_all_early_optimizations): Use
27938 * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
27939 * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
27940 (varpool_remove_unreferenced_decls,
27941 varpool_assemble_pending_decls): Use seen_error.
27942 * Makefile.in (DIAGNOSTIC_CORE_H): Define.
27943 (TOPLEV_H, DIAGNOSTIC_H): Update.
27944 (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
27945 lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
27946 c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
27947 builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
27948 coverage.o, lambda-code.o): Update dependencies.
27950 2010-05-25 Dodji Seketeli <dodji@redhat.com>
27953 * c-common.c (is_typedef_decl): Move this definition ...
27954 * tree.c (is_typedef_decl): ... here.
27955 (typdef_variant_p): Move definition here from cp/tree.c.
27956 * c-common.h (is_typedef_decl): Move this declaration ...
27957 * tree.h (is_typedef_decl): ... here.
27958 (typedef_variant_p): Move declaration here from cp/cp-tree.h
27959 * dwarf2out.c (is_naming_typedef_decl): New function.
27960 (gen_tagged_type_die): Split out of ...
27961 (gen_type_die_with_usage): ... this function. When an anonymous
27962 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
27963 is emitted for the typedef.
27964 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
27965 anonymous tagged types.
27967 2010-05-27 Jason Merrill <jason@redhat.com>
27969 * print-tree.c (debug_vec_tree): New fn.
27970 (print_vec_tree): New fn.
27971 * tree.h: Declare them.
27972 * gdbinit.in (pvt): New command.
27974 * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
27976 * gdbinit.in (pdd): New command.
27978 2010-05-27 Jan Hubicka <jh@suse.cz>
27980 * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
27981 (update_caller_keys): Return early if there are no callers;
27982 only update fibheap when decresing the key.
27983 (update_callee_keys): Avoid recursion.
27984 (decide_inlining_of_small_functions): When badness does not match;
27985 re-insert into fibheap.
27987 2010-05-27 Steven Bosscher <steven@gcc.gnu.org>
27989 * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
27990 (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
27991 (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
27992 (ALL_HOST_OBJS): Now a union of the above two.
27993 <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
27994 all files in ALL_HOST_FRONTEND_OBJS.
27995 * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
27997 * c-common.c: Pretend to be a backend file by undefining
27998 IN_GCC_FRONTEND (still need rtl.h here).
28000 2010-05-27 Jan Hubicka <jh@suse.cz>
28002 * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
28003 * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
28005 2010-05-27 Jan Hubicka <jh@suse.cz>
28007 * sched-ebb.c: Rename struct deps to struct deps_desc.
28009 * sel-sched-ir.c: Likewise.
28010 * sched-deps.c: Likewise.
28011 * sched-int.h: Likewise.
28012 * sched-rgn.c: Likewise.
28014 2010-05-27 Jon Beniston <jon@beniston.com>
28017 * config/lm32/lm32.h: Remove definition of
28018 GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
28020 2010-05-27 Eric Botcazou <ebotcazou@adacore.com>
28023 * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
28025 2010-05-27 Richard Guenther <rguenther@suse.de>
28027 PR tree-optimization/44284
28028 * tree-vect-stmts.c (vectorizable_assignment): Handle
28029 sign-changing conversions as simple copy.
28031 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
28033 * gthr-posix.h (pthread_cancel): Don't declare if compiling against
28035 (__gthread_active_p): Check for pthread_create if compiling against
28038 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
28040 Support compilation for Android platform. Reimplement -mandroid.
28042 * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
28043 (*android*): Set ANDROID_DEFAULT.
28044 (arm*-*-linux*): Include linux-android.h.
28045 (arm*-*-eabi*): Don't include previous -mandroid implementation.
28046 * config/arm/eabi.h: Remove, move Android-specific parts ...
28047 * config/linux-android.h: ... here. New file.
28048 * config/arm/eabi.opt: Rename to ...
28049 * config/linux-android.opt: ... this.
28050 (mandroid): Allow -mno-android option. Initialize based on
28052 * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
28053 Move logic to corresponding LINUX_TARGET_* macros.
28054 (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
28055 * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
28056 (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
28057 Android definitions.
28058 (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
28059 * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
28062 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
28064 Add support for Bionic C library
28066 * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
28068 (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
28069 (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
28071 * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
28072 (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
28073 (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
28074 to support multiple C libraries. Handle Bionic.
28075 (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
28076 (BIONIC_DYNAMIC_LINKER64): Define.
28077 (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
28079 (TARGET_HAS_SINCOS): Enable for Bionic.
28081 * config/linux.opt: Rewrite to handle more than 2 C libraries. Make
28082 the last option specified on command line take effect.
28083 (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
28085 (mglibc, muclibc): Update.
28087 * config/alpha/linux-elf.h, config/rs6000/linux64.h,
28088 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
28091 * doc/invoke.texi (-mglibc, -muclibc): Update.
28092 (-mbionic): Document.
28094 2010-05-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28096 * c-common.h (c_register_addr_space): Add prototype.
28097 (ADDR_SPACE_KEYWORD): Remove.
28098 * c-common.c (c_register_addr_space): New function.
28099 (c_addr_space_name): Reimplement.
28100 (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
28102 * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
28103 (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
28105 * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
28106 Remove TARGET_ADDR_SPACE_KEYWORDS.
28108 2010-05-27 Joseph Myers <joseph@codesourcery.com>
28110 * input.c: New file.
28111 * input.h (main_input_filename): Move declaration to toplev.h.
28112 * toplev.c (input_location, line_table): Move to input.c
28113 * toplev.h (main_input_filename): Move declaration from input.h.
28114 * tree.c (expand_location): Move to input.c.
28115 * Makefile.in (OBJS-common): Add input.o.
28116 (input.o): Add dependencies.
28118 2010-05-27 Richard Guenther <rguenther@suse.de>
28120 * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
28121 for non-existant files.
28122 (fork_execute): Mark args_name file as deleted.
28124 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
28127 * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
28128 (narrow_signed_type): Likewise.
28130 2010-05-26 Jan Hubicka <jh@suse.cz>
28132 * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
28133 edge only when checking is enabled; check using former_clone_of;
28134 check inline clones too.
28135 (cgraph_materialize_clone): Record former_clone_of pointer.
28136 (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
28137 combining redirections; dump args_to_skip bitmap
28138 (cgraph_materialize_all_clones): Do no redirection here.
28139 * ipa-inline.c (inline_transform): Do redirection here.
28140 * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
28143 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
28145 * config/avr/avr-c.c: Do not include regs.h.
28146 Include cpplib.h for cpp_define and tree.h for c-common.h.
28147 * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
28148 * config/avr/t-avr: Fix dependencies for avr-c.o.
28150 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
28152 * explow.c (set_stack_check_libfunc): Adjust to accept name as a
28153 string instead of SYMBOL_REF rtx.
28154 * rtl.h (set_stack_check_libfunc): Move prototype from here...
28155 * libfuncs.h: ...to here. Adjust for explow.c change.
28157 2010-05-26 Joseph Myers <joseph@codesourcery.com>
28159 * pretty-print.c: Don't include ggc.h.
28160 (identifier_to_locale_alloc, identifier_to_locale_free): Define.
28161 (identifier_to_locale): Use them for allocation.
28162 * pretty-print.h (identifier_to_locale_alloc,
28163 identifier_to_locale_free): Declare.
28164 * toplev.c (alloc_for_identifier_to_locale): New.
28165 (general_init): Set identifier_to_locale_alloc and
28166 identifier_to_locale_free.
28167 * Makefile.in (pretty-print.o): Update dependencies.
28169 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
28171 * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
28172 pointer types if they have different alignment or mode.
28174 2010-05-26 Anatoly Sokolov <aesok@post.ru>
28176 * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
28177 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
28178 * config/sparc/sparc-protos.h (function_value): Remove declaration.
28179 * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
28180 sparc_function_value_regno_p): New functions.
28181 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
28182 TARGET_FUNCTION_VALUE_REGNO_P): Define.
28183 (function_value): Rename to...
28184 (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
28185 argument to 'outgoing'.
28186 (function_arg_record_value, function_arg_union_value,
28187 function_arg_vector_value): Update comment.
28189 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
28191 * dwarf2out.c (struct dw_fde_struct): Reorder flags.
28192 (fde_needed_for_eh_p): New predicate.
28193 (output_call_frame_info): Use it throughout to decide whether FDEs
28194 are needed for EH purpose.
28195 (dwarf2out_begin_prologue): Reorder assignments.
28197 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
28199 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
28200 special case loop->header.
28201 (is_predicated): New.
28202 (if_convertible_loop_p): Call it.
28204 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
28206 * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
28207 iterator in parameter. Do not generate code during the analysis.
28208 (tree_if_convert_cond_stmt): Removed.
28209 (tree_if_convert_stmt): Removed.
28210 (predicate_bbs): New.
28211 (if_convertible_loop_p): Call predicate_bbs.
28212 (tree_if_conversion): Simplify the top-level logic as predicate_bbs
28213 now contains all the analysis part.
28215 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
28217 * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
28218 statements in the analysis part.
28219 (tree_if_convert_stmt): Update comment.
28220 (remove_conditions_and_labels): New.
28221 (combine_blocks): Call remove_conditions_and_labels.
28222 (tree_if_conversion): Update comment.
28224 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
28226 * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
28227 than 2 predecessors or more than 2 successors.
28229 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
28231 * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
28232 of loops in which the data dependence analysis fails.
28234 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
28236 * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
28237 CDI_POST_DOMINATORS.
28238 (tree_if_conversion): Same.
28240 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
28242 * tree-if-conv.c (tree_if_conversion): Do not return a bool.
28244 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
28246 * tree-if-conv.c: Update copyright years. Fix comments.
28249 2010-05-26 Kai Tietz <kai.tietz@onevision.com>
28251 * builtin-types.def (BT_INT128): New primitive type.
28252 (BT_UINT128): Likewise.
28253 * c-common.c (c_common_r): Add __int128 keyword.
28254 (c_common_type_for_size): Handle __int128.
28255 (c_common_type_for_mode): Likewise.
28256 (c_common_signed_or_unsigned_type): Likewise.
28257 (c_common_nodes_and_builtins): Add builtin type
28258 if target supports 128-bit integer scalar.
28259 * c-common.h (enum rid): Add RID_INT128.
28260 * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
28261 if target supports 128-bit integer scalar.
28262 * c-decl.c (declspecs_add_type): Handle new keyword __int128.
28263 (finish_declspecs): Likewise.
28264 * c-parser.c (c_token_starts_typename): Handle RID_INT128.
28265 (c_token_starts_declspecs): Likewise.
28266 (c_parser_declspecs): Likewise.
28267 (c_parser_attributes): Likewise.
28268 (c_parser_objc_selector): Likewise.
28269 * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
28270 * c-tree.h (enum c_typespec_keyword): Add cts_int128.
28271 * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
28272 * tree.c (make_or_reuse_type): Likewise.
28273 (make_unsigned_type): Likewise.
28274 (build_common_tree_nodes_2): Likewise.
28275 * tree.h (enum integer_type_kind): Add itk_int128 and
28276 itk_unsigned_int128.
28277 (int128_integer_type_node): New define.
28278 (int128_unsigned_type_node): New define.
28279 * doc/extend.texi: Add documentation about __int128 type.
28281 2010-05-26 Richard Guenther <rguenther@suse.de>
28283 * tree-ssa-sccvn.c (copy_nary): Adjust.
28284 (copy_phis): Rename to ...
28285 (copy_phi): ... this. Adjust.
28286 (copy_references): Rename to ...
28287 (copy_reference): ... this. Adjust.
28288 (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
28289 result into the valid table.
28291 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
28293 * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
28294 insn-config.h, insn-codes.h, recog.h, and optabs.h.
28296 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
28298 * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
28300 2010-05-26 Richard Guenther <rguenther@suse.de>
28302 * opts.c (common_handle_option): Handle OPT_Ofast.
28304 2010-05-26 Joseph Myers <joseph@codesourcery.com>
28306 * diagnostic.c: Don't include opts.h.
28307 (permissive_error_option): Define.
28308 (diagnostic_initialize): Take n_opts parameter. Allocate memory
28309 for classify_diagnostic. Don't use memset for
28310 classify_diagnostic. Initialize new and recently added fields.
28311 (diagnostic_classify_diagnostic): Use context->n_opts instead of
28313 (diagnostic_report_diagnostic): Pass context parameter to
28314 diagnostic_report_warnings_p. Use option_enabled and option_name
28315 hooks from context.
28316 (emit_diagnostic): Use permissive_error_option.
28317 (permerror): Likewise.
28318 * diagnostic.h: Don't include options.h.
28319 (struct diagnostic_context): Add n_opts, opt_permissive,
28320 inhibit_warnings, warn_system_headers, option_enabled and
28321 option_name fields. Change classify_diagnostic to a pointer.
28322 * opts-diagnostic.h: New file.
28323 * opts.c: Include opts-diagnostic.h.
28324 (common_handle_option): Set global_dc fields for -Wfatal-errors,
28325 -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
28326 (option_name): New function.
28327 * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
28328 (c_common_handle_option): Set global_dc->permissive for
28330 * c-common.c (c_cpp_error): Save and restore
28331 global_dc->warn_system_headers, not variable warn_system_headers.
28332 * toplev.c: Include opts-diagnostic.h.
28333 (general_init): Update call to diagnostic_initialize. Set
28334 global_dc->show_column, global_dc->option_enabled and
28335 global_dc->option_name.
28336 (process_options): Don't set global_dc fields here.
28337 * Makefile.in (DIAGNOSTIC_H): Remove options.h.
28338 (diagnostic.o, opts.o, toplev.o): Update dependencies.
28340 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
28342 * config/picochip/picochip.md (movsi): Split a movsi from a
28343 const after reload.
28345 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
28347 * ggc-zone.c: Update copyright year.
28348 (poison_region): Mark memory for Valgrind as undefined before
28349 memset () call and inaccessible afterwards.
28350 (ggc_pch_total_size): Change type of i to int.
28352 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
28354 * ggc-common.c (ggc_free_overhead): Allow empty slot.
28356 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
28358 * ggc-common.c: Update copyright year.
28359 (ggc_rlimit_bound): Remove prototype. Compile only if
28360 !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
28361 (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
28362 && !ENABLE_GC_ALWAYS_COLLECT. Make static.
28363 (ggc_min_heapsize_heuristic): Likewise.
28365 2010-05-26 Richard Guenther <rguenther@suse.de>
28367 PR rtl-optimization/44164
28368 * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
28369 no-common access-path disambiguation.
28370 (indirect_ref_may_alias_decl_p): Adjust.
28371 (indirect_refs_may_alias_p): Likewise.
28372 (refs_may_alias_p_1): Likewise.
28374 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
28376 * c-typeck.c: Do not include expr.h.
28378 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
28380 * rtl.h (decl_default_tls_model): Move prototype from here...
28381 * output.h: ...to here.
28382 * c-decl.c: Do not include rtl.h.
28383 * c-pragma.c: Likewise.
28384 * c-parser.c: Likewise.
28385 * c-gimplify.c: Likewise. And also not hard-reg-set.
28386 * c-common.c: Do not include rtl.h. Include tm_p.h and add a
28387 FIXME note for it. Add a FIXME note for expr.h.
28388 * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
28389 ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
28392 2010-05-26 Jakub Jelinek <jakub@redhat.com>
28395 * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
28396 or total_size is larger than red zone size for non-V4 ABI, emit a
28397 stack_tie resp. frame_tie insn before stack pointer restore.
28398 * config/rs6000/rs6000.md (frame_tie): New insn.
28400 2010-05-25 Eric Botcazou <ebotcazou@adacore.com>
28402 * function.h (struct function): Add can_throw_non_call_exceptions bit.
28403 * lto-streamer-in.c (input_function): Stream it in.
28404 * lto-streamer-out.c (output_function): Stream it out.
28405 * function.c (allocate_struct_function): Set it.
28406 (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
28407 for flag_non_call_exceptions.
28408 * cfgbuild.c (control_flow_insn_p): Likewise.
28409 (make_edges): Likewise.
28410 * cfgexpand.c (expand_stack_alignment): Likewise.
28411 * combine.c (distribute_notes): Likewise.
28412 * cse.c (cse_extended_basic_block): Likewise.
28413 * except.c (insn_could_throw_p): Likewise.
28414 * gcse.c (simple_mem): Likewise.
28415 * ipa-pure-const.c (check_call): Likewise.
28416 (check_stmt ): Likewise.
28417 * lower-subreg.c (lower-subreg.c): Likewise.
28418 * optabs.c (emit_libcall_block): Likewise.
28419 (prepare_cmp_insn): Likewise.
28420 * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
28421 * postreload.c (rest_of_handle_postreload): Likewise.
28422 * reload1.c (reload_as_needed): Likewise.
28423 (emit_input_reload_insns): Likewise.
28424 (emit_output_reload_insns): Likewise.
28425 (fixup_abnormal_edges): Likewise.
28426 * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
28427 * store-motion.c (find_moveable_store): Likewise.
28428 * tree-eh.c (stmt_could_throw_p): Likewise.
28429 (tree_could_throw_p): Likewise.
28430 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
28431 * config/arm/arm.c (arm_expand_prologue): Likewise.
28432 (thumb1_expand_prologue): Likewise.
28433 * config/rx/rx.md (cbranchsf4): Likewise.
28435 * config/s390/s390.c (s390_emit_prologue): Likewise.
28436 * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
28437 (inline_forbidden_into_p): New predicate.
28438 (expand_call_inline): Use it to forbid inlining.
28439 (tree_can_inline_p): Likewise.
28441 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
28443 * config/i386/i386-c.c: Do not include rtl.h.
28444 * config/i386/t-i386: Update dependencies.
28446 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
28448 * attribs.c: Do not include rtl.h.
28449 * Makefile.in: Update dependencies.
28451 2010-05-25 Anatoly Sokolov <aesok@post.ru>
28453 * double-int.h (double_int_and): New.
28454 * combine.c (try_combine): Clean up, use double_int_* and
28455 immed_double_int_const functions.
28457 2010-05-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28459 * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
28460 stderr to /dev/null instead of grep -q.
28461 * configure: Regenerate.
28463 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
28465 * Makefile.in (EXCEPT_H): Fix typo.
28467 2010-05-25 Vladimir Makarov <vmakarov@redhat.com>
28469 * ira-build.c (update_conflict_hard_reg_costs): New.
28470 (ira_build): Call update_conflict_hard_reg_costs.
28472 2010-05-25 Jakub Jelinek <jakub@redhat.com>
28475 * var-tracking.c (find_loc_in_1pdv): Guard asserts with
28477 (intersect_loc_chains): Walk the s2var's loc_chain together
28478 with s1node chain as long as the locations are equal, don't
28479 call find_loc_in_1pdv in that case.
28482 * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
28483 (copy_bind_expr): ... instead of here.
28484 (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
28485 if the block hasn't been remapped.
28486 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
28487 emitting concrete instance of abstract VLA, add DW_AT_type attribute.
28489 2010-05-25 Richard Guenther <rguenther@suse.de>
28491 PR middle-end/44069
28492 * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
28493 out-of-bounds array accesses.
28495 2010-05-25 Richard Guenther <rguenther@suse.de>
28497 * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
28498 (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
28499 (run_gcc): Re-organize to make cleanup easier.
28501 2010-05-25 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28503 * config/s390/s390.c (optimization_options): Fix and move the
28504 flag_prefetch_loop_arrays override ...
28505 (override_options): ... here.
28507 2010-05-25 Joseph Myers <joseph@codesourcery.com>
28509 * diagnostic.c: Don't include plugin.h.
28510 (diagnostic_report_diagnostic): Don't handle plugins specially
28511 here. Pass context to internal_error callback.
28512 * diagnostic.h (struct diagnostic_context): Add context parameter
28513 to internal_error callback.
28514 * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
28515 * plugin.h (struct diagnostic_context): Declare.
28516 (warn_if_plugins, plugins_internal_error_function): Declare.
28517 * toplev.c (general_init): Set global_dc->internal_error.
28518 * Makefile.in (diagnostic.o): Update dependencies.
28520 2010-05-25 Iain Sandoe <iains@gcc.gnu.org>
28522 * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
28523 * config/rs6000/t-darwin64: New.
28524 * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
28527 2010-05-25 Christian Borntraeger <borntraeger@de.ibm.com>
28530 * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
28531 match the original (and intended) behaviour before r159557. This
28532 changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
28535 2010-05-25 Richard Guenther <rguenther@suse.de>
28537 * doc/invoke.texi: Document -Ofast.
28538 * target.h (struct gcc_target): Add handle_ofast.
28539 * target-def.h (TARGET_HANDLE_OFAST): Add.
28540 (TARGET_INITIALIZER): Adjust.
28541 * opts.c (decode_options): Handle -Ofast. Enable -ffast-math with it.
28542 * common.opt (Ofast): Add.
28544 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
28546 * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
28547 * doc/md.texi (cstoreXX4): Update for cond-optab changes.
28549 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
28552 * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
28553 even if !FLOAT_LIB_COMPARE_RETURNS_BOOL. Always compute true_rtx and
28554 false_rtx. Use false_rtx to compute the correct *ptest for reversed
28555 comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
28557 2010-05-25 Jakub Jelinek <jakub@redhat.com>
28559 * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
28560 DW_OP_minus with negated offset instead of DW_OP_plus.
28561 (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
28563 2010-05-25 Wei Guozhi <carrot@google.com>
28565 * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
28566 tst instruction and a new alternative.
28567 * config/arm/constraints.md (Pu): New constraint.
28569 2010-05-24 Sebastian Pop <sebastian.pop@amd.com>
28571 * function.c (assign_stack_local_1): Initialize variable
28572 to avoid warning when bootstrapping at -O3.
28574 2010-05-24 Steven Bosscher <steven@gcc.gnu.org>
28576 * configure.ac (all_lang_makefiles): Remove everything related to it.
28577 * configure: Regenerate.
28578 * Makefile.in: Fix reference to ada Make-lang.in.
28579 Remove support for LANG_MAKEFILES.
28581 2010-05-24 Daniel Jacobowitz <dan@codesourcery.com>
28582 Sandra Loosemore <sandra@codesourcery.com>
28584 * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
28585 * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
28586 description. Add arm_neon_fp16_ok.
28587 (Add Options): Add arm_neon and arm_neon_fp16.
28589 2010-05-24 Joseph Myers <joseph@codesourcery.com>
28591 * diagnostic.c: Don't include flags.h.
28592 (pedantic_warning_kind, permissive_error_kind): Take diagnostic
28593 context parameters. Check flags in the context passed as a parameter.
28594 (diagnostic_build_prefix): Add context parameter. Check
28595 show_column flag in context.
28596 (diagnostic_action_after_output): Check fatal_errors flag in context.
28597 (diagnostic_report_current_module): Check show_column flag in context.
28598 (default_diagnostic_starter): Update call to
28599 diagnostic_build_prefix.
28600 (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
28601 (emit_diagnostic): Pass context to permissive_error_kind.
28602 (permerror): Pass context to permissive_error_kind.
28603 * diagnostic.h (struct diagnostic_context): Add show_column,
28604 pedantic_errors, permissive and fatal_errors fields.
28605 (diagnostic_build_prefix): Update prototype.
28607 * toplev.c (process_options): Set flags in global_dc from
28608 flag_show_column, flag_pedantic_errors, flag_permissive,
28610 * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
28611 to diagnostic_build_prefix.
28612 * Makefile.in (diagnostic.o): Update dependencies.
28614 2010-05-24 H.J. Lu <hongjiu.lu@intel.com>
28616 * config/i386/ia32intrin.h (__crc32q): Define only if
28617 __SSE4_2__ is defined.
28619 2010-05-24 Iain Sandoe <iains@gcc.gnu.org>
28622 PR middle-end/43602
28623 * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
28624 DECL_VISIBILITY_SPECIFIED.
28625 (emutls_decl): Set DECL_PRESERVE_P and copy
28626 DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
28627 (emutls_finalize_control_var): New callback.
28628 (emutls_finish): Finalize emutls control variables.
28629 * toplev.c (compile_file): Move the call to emutls_finish ()
28630 before varpool_assemble_pending_decls ().
28632 2010-05-24 Daniel Gutson <dgutson@codesourcery.com>
28634 * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
28635 added to the preprocessor condition.
28637 2010-05-24 Paul Brook <paul@codesourcery.com>
28639 * gengtype-lex.l: Add HARD_REG_SET.
28640 * expr.c (expand_expr_real_1): Record writes to hard registers.
28641 * function.c (rtl_data): Add asm_clobbers.
28642 * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
28643 (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
28644 Use crtl->asm_clobbers.
28646 2010-05-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28648 * doc/makefile.texi (Makefile): Mention stages 'profile'
28649 and 'feedback' for profiledbootstrap.
28651 2010-05-23 H.J. Lu <hongjiu.lu@intel.com>
28654 * config/i386/i386.c (def_builtin): Properly check
28655 OPTION_MASK_ISA_64BIT.
28657 2010-05-23 Joseph Myers <joseph@codesourcery.com>
28659 * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
28660 typedefs with different but compatible types. Allow duplicate
28661 typedefs with the same type except for pedantic non-C1X, but give
28662 warning for variably modified types.
28663 * c-typeck.c (tagged_types_tu_compatible_p,
28664 function_types_compatible_p, type_lists_compatible_p,
28665 comptypes_internal): Add parameter different_types_p; set
28666 *different_types_p for different but compatible types. All
28668 (comptypes_check_different_types): New.
28669 * c-tree.h (comptypes_check_different_types): Declare.
28671 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
28673 * regs.h: Do not include obstack.h, basic-block.h. Include machmode.h.
28674 * jump.c: Include basic-block.h.
28675 * profile.c: Likewise.
28676 * tree-profile.c: Likewise.
28677 * coverage.c: Likewise.
28678 * basic-block.h (optimize_function_for_size_p): Move to function.h.
28679 (optimize_function_for_speed_p): Likewise.
28680 * function.h (optimize_function_for_size_p,
28681 optimize_function_for_speed_p): Moved here from basic-block.h.
28682 * Makefile.in: Update dependencies.
28684 2010-05-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28686 * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
28687 before calling make; allow override through $MAKE.
28688 * doc/invoke.texi (Optimize Options): Document override.
28690 2010-05-23 Anatoly Sokolov <aesok@post.ru>
28692 * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
28693 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
28694 (rs6000_mode_dependent_address_ptr): Make static.
28695 * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
28696 * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
28699 2010-05-23 Maarten Lankhorst <mlankhorst@codeweavers.com>
28702 * config/i386/i386.c: Make sure that the correct regparm is passed.
28704 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
28706 * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
28707 * sbitmap.c: ...to here to internalize sbitmap element access.
28708 Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
28709 Explain why basic-block.h is included.
28710 * function.h: Include tm.h for CUMULATIVE_ARGS.
28711 * Makefile.in: Update dependencies.
28713 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
28715 * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
28717 * sbitmap.h (struct sbitmap_def): Do not typedef here.
28718 * sbitmap.c: Include sbitmap.h.
28719 * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
28720 hard-reg-set.h. Split everything related to regsets out from here...
28721 * regset.h: ...to here. New file.
28722 * df.h: Include regset.h and sbitmap.h.
28723 * tree-flow.h: Likewise.
28724 * cfgloop.h: Likewise.
28725 * except.h: Do not include sbitmap.h. Include hashtab.h.
28726 * cgraph.h: Include vec.h and function.h.
28727 * reload.h (struct insn_chain): Change types of live_throughout
28728 and dead_or_set from regset_head to bitmap_head.
28729 (compute_use_by_pseudos): Be defined also if regset.h is not included.
28730 * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
28731 spilled_regs from regset_head to bitmap_head to avoid dependency
28733 * sel-sched-ir.h: Include regset.h.
28734 * reload.c: Include df.h before reload.h.
28735 * caller-save.c: Likewise.
28736 * reload1.c: Likewise.
28738 (mark_elimination): Update type of r to bitmap, consistent with
28740 * dominance.c: Include bitmap.h.
28741 * modulo-sched.c: Include df.h.
28742 * cfganal.c: Include bitmap.h and sbitmap.h.
28743 * cfgbuild.c: Include sbitmap.h.
28744 * lcm.c: Include sbitmap.h.
28745 * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
28746 * domwalk.c: Include sbitmap.h, exclude ggc.h.
28747 * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
28748 * cselib.c: Include bitmap.h.
28749 * tree-optimize.c: Include regset.h.
28750 * stmt.c: Include bitmap.h.
28751 * Makefile.in: Update dependencies.
28753 2010-05-22 Jan Hubicka <jh@suse.cz>
28755 * cgraph.h (struct varpool_node): Add same_comdat_group.
28756 * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
28758 (output_varpool): Update call of lto_output_varpool_node.
28759 (input_varpool): Read same_comdat_group pointer.
28760 (input_varpool_1): Fixup same_comdat_group pointer.
28761 * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
28762 group is needed, all are.
28763 * varpool.c (varpool_remove_node): Remove node from same comdat group
28765 (varpool_analyze_pending_decls): Walk same comdat groups.
28767 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
28769 * rtl.h (union rtunion_def): Remove rt_bit member.
28770 (XBITMAP, X0BITMAP, XCBITMAP): Remove.
28771 * print-rtl (print_rtx): Do not print the member.
28772 * gengtype.c (adjust_field_rtx_def): Do not handle it.
28773 * gengenrtl.c (type_from_format): Likewise.
28774 (accessor_from_format): Likewise.
28776 2010-05-22 Joseph Myers <joseph@codesourcery.com>
28778 * dbgcnt.c: Include toplev.h instead of errors.h.
28779 * ira-emit.c: Don't include errors.h.
28780 * ira.c: Include toplev.h instead of errors.h.
28781 * lto-compress.c: Include toplev.h instead of errors.h.
28782 * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
28783 ira.o, dbgcnt.o): Update dependencies.
28785 2010-05-22 Richard Guenther <rguenther@suse.de>
28787 * gimple.c (gimple_types_compatible_p): Check type qualifications
28788 before merging pointer to complete and pointer to incomplete type.
28789 * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
28790 we use our own resolution algorithm. The gold linker plugin
28791 doesn't do the job we want it to do here.
28793 2010-05-22 Anatoly Sokolov <aesok@post.ru>
28795 * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
28796 * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
28797 (sparc_mode_dependent_address_p): New function.
28799 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
28801 * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
28803 * timevar.c: Do not include any core headers.
28804 (timevar_print): De-i18n-ize.
28805 (print_time): Likewise.
28806 * timevar.h (timevar_push, timevar_pop): Make inline functions.
28808 2010-05-21 Joseph Myers <joseph@codesourcery.com>
28810 * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
28812 (diagnostic_initialize): Initialize x_data not last_function.
28813 (diagnostic_report_current_function): Move to tree-diagnostic.c.
28814 (default_diagnostic_starter): Call
28815 diagnostic_report_current_module not
28816 diagnostic_report_current_function.
28817 (diagnostic_report_diagnostic): Initialize x_data not
28819 (verbatim): Likewise.
28820 * diagnostic.h (struct diagnostic_info): Change abstract_origin to
28822 (struct diagnostic_context): Change last_function to x_data.
28823 (diagnostic_auxiliary_data): Replace with
28824 diagnostic_context_auxiliary_data and
28825 diagnostic_info_auxiliary_data.
28826 (diagnostic_last_function_changed, diagnostic_set_last_function,
28827 diagnostic_report_current_function): Move to tree-diagnostic.h.
28828 (print_declaration, dump_generic_node, print_generic_stmt,
28829 print_generic_stmt_indented, print_generic_expr,
28830 print_generic_decl, debug_c_tree, dump_omp_clauses,
28831 print_call_name, debug_generic_expr, debug_generic_stmt,
28832 debug_tree_chain, default_tree_printer): Move to
28833 tree-pretty-print.h.
28834 (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
28835 print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
28836 gimple-pretty-print.h.
28837 * pretty-print.c: Don't include tree.h
28838 (pp_base_format): Don't handle %K here.
28839 (pp_base_tree_identifier): Move to tree-pretty-print.c.
28840 * pretty-print.h (text_info): Change abstract_origin to x_data.
28841 (pp_tree_identifier, pp_unsupported_tree,
28842 pp_base_tree_identifier): Move to tree-pretty-print.h.
28843 * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
28844 tree-pretty-print.h: New files.
28845 * tree-pretty-print.c: Include tree-pretty-print.h.
28846 (percent_K_format): New. Moved from pretty-print.c.
28847 (pp_base_tree_identifier): Move from pretty-print.c.
28848 * c-objc-common.c: Include tree-pretty-print.h.
28849 (c_tree_printer): Handle %K here.
28850 * langhooks.c: Include tree-diagnostic.h.
28851 (lhd_print_error_function): Use diagnostic_abstract_origin macro.
28852 * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
28853 (default_tree_printer): Handle %K using percent_K_format.
28854 (general_init): Use default_tree_diagnostic_starter.
28855 * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
28856 (free_lang_data): Use default_tree_diagnostic_starter.
28857 * c-pretty-print.c: Include tree-pretty-print.h.
28858 * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
28859 * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
28860 * dwarf2out.c: Include tree-pretty-print.h.
28861 * except.c: Include tree-pretty-print.h.
28862 * gimple-pretty-print.c: Include tree-pretty-print.h and
28863 gimple-pretty-print.h.
28864 * gimplify.c: Include tree-pretty-print.h.
28865 * graphite-poly.c: Include tree-pretty-print.h and
28866 gimple-pretty-print.h.
28867 * ipa-cp.c: Include tree-pretty-print.h.
28868 * ipa-inline.c: Include gimple-pretty-print.h.
28869 * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
28870 * ipa-pure-const.c: Include gimple-pretty-print.h.
28871 * ipa-struct-reorg.c: Include tree-pretty-print.h and
28872 gimple-pretty-print.h.
28873 * ipa-type-escape.c: Include tree-pretty-print.h.
28874 * print-rtl.c: Include tree-pretty-print.h.
28875 * print-tree.c: Include gimple-pretty-print.h.
28876 * sese.c: Include tree-pretty-print.h.
28877 * tree-affine.c: Include tree-pretty-print.h.
28878 * tree-browser.c: Include tree-pretty-print.h.
28879 * tree-call-cdce.c: Include gimple-pretty-print.h.
28880 * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
28881 * tree-chrec.c: Include tree-pretty-print.h.
28882 * tree-data-ref.c: Include tree-pretty-print.h and
28883 gimple-pretty-print.h.
28884 * tree-dfa.c: Include tree-pretty-print.h.
28885 * tree-if-conv.c: Include tree-pretty-print.h and
28886 gimple-pretty-print.h.
28887 * tree-inline.c: Include tree-pretty-print.h.
28888 * tree-into-ssa.c: Include tree-pretty-print.h and
28889 gimple-pretty-print.h.
28890 * tree-nrv.c: Include tree-pretty-print.h.
28891 * tree-object-size.c: Include tree-pretty-print.h and
28892 gimple-pretty-print.h.
28893 * tree-outof-ssa.c: Include tree-pretty-print.h and
28894 gimple-pretty-print.h.
28895 * tree-parloops.c: Include tree-pretty-print.h and
28896 gimple-pretty-print.h.
28897 * tree-predcom.c: Include tree-pretty-print.h and
28898 gimple-pretty-print.h.
28899 * tree-scalar-evolution.c: Include tree-pretty-print.h and
28900 gimple-pretty-print.h.
28901 * tree-sra.c: Include tree-pretty-print.h.
28902 * tree-ssa-address.c: Include tree-pretty-print.h.
28903 * tree-ssa-alias.c: Include tree-pretty-print.h.
28904 * tree-ssa-ccp.c: Include tree-pretty-print.h and
28905 gimple-pretty-print.h.
28906 * tree-ssa-coalesce.c: Include tree-pretty-print.h.
28907 * tree-ssa-copy.c: Include tree-pretty-print.h and
28908 gimple-pretty-print.h.
28909 * tree-ssa-copyrename.c: Include tree-pretty-print.h.
28910 * tree-ssa-dce.c: Include tree-pretty-print.h and
28911 gimple-pretty-print.h.
28912 * tree-ssa-dom.c: Include tree-pretty-print.h and
28913 gimple-pretty-print.h.
28914 * tree-ssa-dse.c: Include gimple-pretty-print.h.
28915 * tree-ssa-forwprop.c: Include tree-pretty-print.h.
28916 * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
28917 * tree-ssa-live.c: Include tree-pretty-print.h and
28918 gimple-pretty-print.h.
28919 * tree-ssa-loop-im.c: Include tree-pretty-print.h and
28920 gimple-pretty-print.h.
28921 * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
28922 gimple-pretty-print.h.
28923 * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
28924 gimple-pretty-print.h.
28925 * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
28926 gimple-pretty-print.h.
28927 * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
28928 * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
28929 * tree-ssa-operands.c: Include tree-pretty-print.h and
28930 gimple-pretty-print.h.
28931 * tree-ssa-phiprop.c: Include tree-pretty-print.h and
28932 gimple-pretty-print.h.
28933 * tree-ssa-pre.c: Include tree-pretty-print.h and
28934 gimple-pretty-print.h.
28935 * tree-ssa-propagate.c: Include gimple-pretty-print.h.
28936 * tree-ssa-reassoc.c: Include tree-pretty-print.h and
28937 gimple-pretty-print.h.
28938 * tree-ssa-sccvn.c: Include tree-pretty-print.h and
28939 gimple-pretty-print.h.
28940 * tree-ssa-sink.c: Include gimple-pretty-print.h.
28941 * tree-ssa-ter.c: Include tree-pretty-print.h and
28942 gimple-pretty-print.h.
28943 * tree-ssa-uninit.c: Include gimple-pretty-print.h.
28944 * tree-ssa.c: Include tree-pretty-print.h and
28945 gimple-pretty-print.h.
28946 * tree-stdarg.c: Include gimple-pretty-print.h.
28947 * tree-switch-conversion.c: Include gimple-pretty-print.h.
28948 * tree-tailcall.c: Include tree-pretty-print.h and
28949 gimple-pretty-print.h.
28950 * tree-vect-data-refs.c: Include tree-pretty-print.h and
28951 gimple-pretty-print.h.
28952 * tree-vect-loop-manip.c: Include tree-pretty-print.h and
28953 gimple-pretty-print.h.
28954 * tree-vect-loop.c: Include tree-pretty-print.h and
28955 gimple-pretty-print.h.
28956 * tree-vect-patterns.c: Include gimple-pretty-print.h.
28957 * tree-vect-slp.c: Include tree-pretty-print.h and
28958 gimple-pretty-print.h.
28959 * tree-vect-stmts.c: Include tree-pretty-print.h and
28960 gimple-pretty-print.h.
28961 * tree-vectorizer.c: Include tree-pretty-print.h.
28962 * tree-vrp.c: Include tree-pretty-print.h and
28963 gimple-pretty-print.h.
28964 * value-prof.c: Include tree-pretty-print.h and
28965 gimple-pretty-print.h.
28966 * var-tracking.c: Include tree-pretty-print.h.
28967 * Makefile.in (OBJS-common): Add tree-diagnostic.o.
28968 (tree-diagnostic.o): New dependencies.
28969 (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
28970 tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
28971 tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
28972 tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
28973 tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
28974 tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
28975 tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
28976 tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
28977 tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
28978 tree-ssa-address.o, tree-ssa-loop-niter.o,
28979 tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
28980 tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
28981 tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
28982 gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
28983 tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
28984 tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
28985 tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
28986 tree-parloops.o, tree-stdarg.o, tree-object-size.o,
28987 gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
28988 toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
28989 ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
28990 ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
28991 tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
28992 tree-switch-conversion.o, var-tracking.o, value-prof.o,
28993 cfgexpand.o, pretty-print.o): Update dependencies.
28995 2010-05-22 Andreas Tobler <andreast@fgznet.ch>
28997 * tree-ssa-structalias.c: Remove tm_p.h from include.
28999 2010-05-21 Jeff Law <law@redhat.com>
29001 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
29003 2010-05-21 Jason Merrill <jason@redhat.com>
29005 * tree-eh.c (cleanup_is_dead_in): New.
29006 (lower_try_finally): Don't generate a dead cleanup region.
29007 (lower_cleanup): Likewise.
29009 2010-05-21 Jakub Jelinek <jakub@redhat.com>
29012 * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
29013 unchain each use from the cyclic next_regno_use chain first.
29015 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
29017 * real: Do not include gmp.h, mpfr.h, and mpc.h.
29018 (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
29019 (real_value_negate, real_value_abs): New prototypes.
29020 (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
29021 * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
29022 new include file for interface between MPFR and REAL_VALUE_TYPE.
29023 * real.c: Include realmpfr.h.
29024 (real_arithmetic2): Remove legacy function.
29025 (real_value_negate): New.
29026 (real_value_abs): New.
29027 (mfpr_from_real, real_from_mpfr): Move from here...
29028 * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
29029 * builtins.c: Include realmpfr.h.
29030 * fold-const.c: Include realmpfr.h.
29031 (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
29032 (fold_negate_const): Likewise.
29033 (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
29034 * toplev.c: Include realmpfr.h.
29035 * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
29036 and real_value_negate.
29037 * fixed-value.c (check_real_for_fixed_mode): Likewise.
29038 * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
29039 (vfp3_const_double_index): Likewise.
29040 (arm_print_operand): Likewise.
29041 * Makefile.in: Update dependencies.
29043 2010-05-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29045 * config/s390/s390.c (override_options): Increase the default
29046 of max-completely-peel-times.
29048 2010-05-21 Julian Brown <julian@codesourcery.com>
29049 Mark Mitchell <mark@codesourcery.com>
29051 * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
29052 sibling calls for Thumb-1.
29053 * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
29054 * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
29056 (*call_insn, *call_value_insn): Don't use for Thumb-2.
29057 (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
29059 (return): New expander.
29060 (*arm_return): New name for ARM return insn.
29061 * config/arm/thumb2.md (*thumb2_return): New insn pattern.
29063 2010-05-19 Joel Sherrill <joel.sherrill@oarcorp.com>
29065 * config.gcc (sparc64-*-rtems*): New target.
29067 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
29069 * tree.c (build_function_decl_skip_args): Fix grammar.
29070 (build_function_type_list_1): Fix typos, adjust formatting.
29072 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
29074 * tree.h: Include real.h and fixed-value.h as basic datatypes.
29075 * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
29076 tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
29077 tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
29078 tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
29079 genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
29080 tree-pretty-print.c, tree-loop-distribution.c,
29081 tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
29082 tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
29083 tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
29084 tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
29085 tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
29086 tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
29087 tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
29088 tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
29089 tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
29090 tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
29091 genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
29092 tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
29093 gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
29094 tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
29095 tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
29096 store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
29097 tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
29098 tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
29099 tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
29100 tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
29101 fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
29102 tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
29103 config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
29104 config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
29105 config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
29106 config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
29107 config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
29108 config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
29109 config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
29110 config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
29111 config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
29112 config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
29113 config/score/score7.c, config/score/score.c, config/arm/arm.c,
29114 config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
29115 config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
29116 config/bfin/bfin.c: Clean up redundant includes.
29117 * Makefile.in: Update accordingly.
29119 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
29121 PR middle-end/44204
29122 * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
29123 statement has no arguments.
29125 2010-05-21 Kai Tietz <kai.tietz@onevision.com>
29128 * varasm.c (emutls_decl): Merge attributes to new decl.
29130 2010-05-21 Eric Botcazou <ebotcazou@adacore.com>
29132 PR middle-end/44101
29133 * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
29134 around the uniquized constructor if its type requires a conversion.
29136 2010-05-21 Jakub Jelinek <jakub@redhat.com>
29139 * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
29140 at -O0 goto_locus of any of the incoming edges differs from
29141 goto_locus of outgoing edge, or gimple_location of any of the
29144 2009-09-14 Vladimir Makarov <vmakarov@redhat.com>
29146 * ira.c (ira_non_ordered_class_hard_regs): Define.
29147 (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
29148 * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
29149 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
29150 cost of unaligned hard regs when allocating multi-reg pseudos.
29152 2010-05-20 Richard Sandiford <rdsandiford@googlemail.com>
29154 * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
29155 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
29156 for TARGET_NO_FLOAT.
29157 * config/mips/mips.c (mips_file_start): Expand conditional expression
29158 into "if" statements. Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
29159 (mips_override_options): Move -mno-float override -msoft-float and
29161 * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
29162 Condition(TARGET_SUPPORTS_NO_FLOAT).
29163 * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
29164 __mips_no_float here.
29165 (SUBTARGET_OVERRIDE_OPTIONS): Delete.
29166 (TARGET_SUPPORTS_NO_FLOAT): Define.
29167 * config/mips/sdemtk.opt: Delete.
29169 2010-05-20 Segher Boessenkool <segher@kernel.crashing.org>
29171 * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
29173 2010-05-20 Uros Bizjak <ubizjak@gmail.com>
29176 * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
29177 * configure: Regenerate.
29178 * config.in: Regenerate.
29179 * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
29180 instead of sahf only for 64bit targets.
29182 2010-05-20 Jakub Jelinek <jakub@redhat.com>
29185 * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
29186 setup_ref_regs for DEBUG_INSNs.
29188 2010-05-20 Jan Hubicka <jh@suse.cz>
29190 PR middle-end/44197
29191 * varpool.c (varpool_remove_node): Handle in-varpool aliases.
29193 2010-05-20 Kenneth Zadeck <zadeck@naturalbridge.com>
29196 * df-scan.c (df_ref_compare): Stabilize sort.
29198 2010-05-20 Jakub Jelinek <jakub@redhat.com>
29200 * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
29201 argument. Don't use DW_OP_piece if offset is non-zero,
29202 put offset into second DW_OP_bit_piece argument.
29203 (dw_sra_loc_expr): Adjust callers. For memory expressions
29206 2010-05-20 Hans-Peter Nilsson <hp@axis.com>
29209 * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
29210 settings for 16-bit-constant "addo" alternative.
29212 2010-05-19 James E. Wilson <wilson@codesourcery.com>
29214 * config/mips/mips-dsp.md (add<DSPV:mode>3,
29215 mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
29218 * mips.c (mips_call_expr_from_insn): New arg second_call. Set it.
29219 (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
29222 2010-05-19 Joseph Myers <joseph@codesourcery.com>
29224 * diagnostic.c (FLOAT, FFS): Don't undefine.
29225 * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
29226 * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
29229 2010-05-19 Richard Sandiford <rdsandiford@googlemail.com>
29231 * combine.c (propagate_for_debug): Call make_compound_operation
29232 on the source value.
29233 (try_combine): When implementing a split chosen by find_split_point,
29234 either copy i2src or set it to null. Assert that i2src is not null
29235 before substituting into CALL_INSN_FUNCTION_USAGE.
29237 2010-05-19 Anatoly Sokolov <aesok@post.ru>
29239 * double-int.h (double_int_ior): New function.
29240 * tree.h (build_int_cst_wide_type): Remove.
29241 * tree.c (build_int_cst_wide_type): Remove.
29242 * fold-const.c (native_interpret_int): Use double_int_to_tree instead
29243 of build_int_cst_wide_type.
29244 * stor-layout.c (set_sizetype): (Ditto.).
29245 * dojump.c (do_jump): Use build_int_cstu instead of
29246 build_int_cst_wide_type.
29248 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
29250 * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
29251 * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
29252 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
29253 * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
29254 TARGET_EXPR nodes, but only once, if instructed to do so. Do not
29255 propagate the 'data' argument to copy_tree_r.
29256 (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
29257 Propagate 'data' argument to walk_tree.
29258 (copy_if_shared): New function.
29259 (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
29260 (unmark_visited): New function.
29261 (unshare_body): Call copy_if_shared instead of doing it manually.
29262 (unvisit_body): Call unmark_visited instead of doing it manually.
29264 2010-05-19 Nathan Froyd <froydnj@codesourcery.com>
29266 * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
29267 (hook_tree_tree_int_treep_bool_null): ...this. Update signature.
29268 * hooks.c: Likewise.
29269 * target-def.h (TARGET_FOLD_BUILTIN): Define to
29270 hook_tree_tree_int_treep_bool_null.
29271 * target.h (struct gcc_target): Update signature of fold_builtin
29273 * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
29274 * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
29275 instead of the call expression.
29276 (fold_builtin_call_array): Pass n and argarray directly.
29277 (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
29279 * config/alpha/alpha.c (alpha_fold_builtin): Update signature. Lift
29280 MAX_ARGS check out of the loop. Delete declaration of `arity', declare
29281 `i' and use it in place of `arity'.
29282 * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
29283 Dereference `args' directly.
29284 * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
29286 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29288 * doc/sourcebuild.texi (Effective-Target Keywords): Document
29290 (Directives): Document optional dg-require-effective-target
29293 2010-05-19 Richard Guenther <rguenther@suse.de>
29296 * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
29298 2010-05-19 Richard Guenther <rguenther@suse.de>
29300 * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
29301 * common.opt (fwhopr=): New.
29302 * opts.c (common_handle_option): Handle OPT_fwhopr.
29303 * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
29304 * collect2.c (main): Match -fwhopr*.
29305 * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
29306 Execute ltrans stage in parallel when jobs is bigger than 1.
29308 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29310 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
29311 pentiumpro on Solaris 8/x86 with Sun as.
29312 * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
29314 (gcc_cv_as_ix86_quad): Check for .quad directive.
29315 * configure: Regenerate.
29316 * config.in: Regenerate.
29317 * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
29319 2010-05-19 Martin Jambor <mjambor@suse.cz>
29321 * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
29322 also for indirect edges. Actual printing moved...
29323 (ipa_print_node_jump_functions_for_edge): ...here.
29324 (ipa_compute_jump_functions): Renamed to
29325 ipa_compute_jump_functions_for_edge and made static.
29326 (ipa_compute_jump_functions): New function.
29327 (make_edge_direct_to_target): Check if the number of arguments on
29328 the newly direct edge is the same as the number of parametrs of
29330 * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
29331 ipa_compute_jump_functions. Call ipa_analyze_params_uses.
29332 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
29333 analysis functions unconditionally, call the new
29334 ipa_analyze_params_uses on the node instead of every edge.
29336 2010-05-19 Christian Borntraeger <borntraeger@de.ibm.com>
29338 * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
29340 (dump_mem_ref): Adopt debug code to handle a tree as step. This
29341 also checks for a constant int vs. non-constant but
29342 loop-invariant steps.
29343 (find_or_create_group): Change the sort algorithm to only consider
29344 steps that are constant ints.
29345 (idx_analyze_ref): Adopt code to handle a tree instead of a
29346 HOST_WIDE_INT for step.
29347 (gather_memory_references_ref): Handle tree instead of int and be
29348 prepared to see a NULL_TREE.
29349 (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
29350 prefetches if the step cannot be calculated at compile time.
29351 (issue_prefetch_ref): Issue prefetches for non-constant but
29352 loop-invariant steps.
29354 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
29357 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
29359 * tree.h (build_call_list): Remove.
29360 * tree.c (build_call_list): Remove.
29362 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
29364 * tree.h (build_call_list): Remove.
29365 * tree.c (build_call_list): Remove.
29367 2010-05-18 Jan Hubicka <jh@suse.cz>
29369 * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
29371 2010-05-18 Vladimir Makarov <vmakarov@redhat.com>
29373 PR rtl-optimization/43332
29374 * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
29376 2010-05-18 Anatoly Sokolov <aesok@post.ru>
29378 * tree.h (build_int_cstu): Implement as static inline.
29379 * tree.c (build_int_cstu): Remove function.
29380 (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
29383 2010-05-18 Richard Guenther <rguenther@suse.de>
29386 * lto-wrapper.c (verbose): New variable. Initialize from -v.
29387 (debug): Initialize from -save-temps.
29388 (collect_execute): Print command-line when verbose.
29389 (run_gcc): Always use COLLECT_GCC_OPTIONS. Use fork_execute
29390 for ltrans invocation. Produce -dumpbase flag again.
29391 (process_args): Remove.
29393 * collect2.c (maybe_run_lto_and_relink): Only pass object
29394 files to lto-wrapper.
29395 * gcc.c (LINK_COMMAND_SPEC): Likewise.
29397 2010-05-18 Jan Hubicka <jh@suse.cz>
29399 * opts.c (decode_options): Do not disable whopr at ipa_cp.
29400 * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
29402 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
29405 * lto-streamer-out.c (output_gimple_stmt): Output number of labels
29407 * lto-streamer-in.c (input_gimple_stmt): Read number of labels
29410 2010-05-18 Jakub Jelinek <jakub@redhat.com>
29413 * var-tracking.c (find_loc_in_1pdv): Add a few checks from
29414 rtx_equal_p inline.
29416 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
29418 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
29419 lto-macho as lto_binary_reader.
29421 * darwin.c (darwin_asm_named_section): Do not add assembler comment
29422 after .section directive; just print it before the directive instead.
29424 2010-05-17 Jan Hubicka <jh@suse.cz>
29426 * cgraph.c (cgraph_create_virtual_clone): Only check
29427 versionable_function_p when not in wpa and checking is enabled.
29428 * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
29429 there are no more functions to materialize.
29431 2010-05-17 Jan Hubicka <jh@suse.cz>
29433 * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
29434 * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
29436 (output_cgraph): Call output_cgraph_opt_summary.
29437 (input_cgrpah): Call input_cgraph_opt_summary.
29438 (output_cgraph_opt_summary_p, output_node_opt_summary,
29439 input_node_opt_summary, input_cgraph_opt_section): New functions.
29440 * lto-section-in.c (lto_section_name): Add cgraphopt.
29441 * tree-inline.c (tree_function_versioning): Handle parm_num.
29442 * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
29443 * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
29445 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
29447 * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
29448 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
29449 the insn to prefetch ratio heuristic to loops with known trip count.
29451 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
29453 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
29454 (schedule_prefetches): Do not generate a prefetch if the unroll factor
29455 is far from what is required by the prefetch.
29457 2010-05-17 Jan Hubicka <jh@suse.cz>
29459 * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
29460 (ipcp_estimate_growth): Likewise.
29461 (ipcp_const_param_count): Likewise.
29462 (ipcp_insert_stage): Likewise.
29463 * ipa-prop.c (visit_load_for_mod_analysis): New function.
29464 (visit_store_addr_for_mod_analysis): Set used flag.
29465 (ipa_detect_param_modifications): Set used flag for SSE params;
29466 update use of walk_stmt_load_store_addr_ops.
29467 (ipa_print_node_params): Print used flag.
29468 (ipa_write_node_info): Stream used flag.
29469 (ipa_read_node_info): Likewise.
29470 * ipa-prop.h (struct ipa_param_descriptor): Add used field.
29471 (ipa_is_param_used): New function.
29472 (lto_ipa_fixup_call_notes): Remove unused declaration.
29474 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29477 * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
29478 * configure: Regenerate.
29479 * config.in: Regenerate.
29480 * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
29481 !HAVE_AS_IX86_REP_LOCK_PREFIX.
29482 Don't emit whitespace.
29483 * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
29484 (*rep_movsi): Likewise.
29485 (*rep_movsi_rex64): Likewise.
29486 (*rep_movqi): Likewise.
29487 (*rep_movqi_rex64): Likewise.
29488 (*rep_stosdi_rex64): Likewise.
29489 (*rep_stossi): Likewise.
29490 (*rep_stossi_rex64): Likewise.
29491 (*rep_stosqi): Likewise.
29492 (*rep_stosqi_rex64): Likewise.
29493 (*cmpstrnqi_nz_1): Use {%;} after repz.
29494 (*cmpstrnqi_nz_rex_1): Likewise.
29495 (*cmpstrnqi_1): Likewise.
29496 (*cmpstrnqi_rex_1): Likewise.
29497 (*strlenqi_1): Use {%;} after repnz.
29498 (*strlenqi_rex_1): Likewise.
29499 * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
29500 (*sync_compare_and_swap<mode>): Likewise.
29501 (sync_double_compare_and_swap<mode>): Likewise.
29502 (*sync_double_compare_and_swapdi_pic): Likewise.
29503 (sync_old_add<mode>): Likewise.
29504 (sync_add<mode>): Likewise.
29505 (sync_sub<mode>): Likewise.
29506 (sync_<code><mode>): Likewise.
29508 2010-05-17 Martin Jambor <mjambor@suse.cz>
29510 * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
29511 otr_token and polymorphic.
29512 * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
29513 (cgraph_clone_edge): Copy the above fields.
29514 * tree.c (get_binfo_at_offset): New function.
29515 * tree.h (get_binfo_at_offset): Declare.
29516 * ipa-prop.h (enum jump_func_type): Added known_type jump function
29517 type, reordered items, updated comments.
29518 (union jump_func_value): Added base_type field, reordered fields.
29519 (enum ipa_lattice_type): Moved down in the file.
29520 (struct ipa_param_descriptor): New field polymorphic.
29521 (ipa_is_param_polymorphic): New function.
29522 * ipa-prop.c: Include gimple.h and gimple-fold.h.
29523 (ipa_print_node_jump_functions): Print known type jump functions.
29524 (compute_complex_pass_through): Renamed to...
29525 (compute_complex_assign_jump_func): this.
29526 (compute_complex_ancestor_jump_func): New function.
29527 (compute_known_type_jump_func): Likewise.
29528 (compute_scalar_jump_functions): Create known type and complex ancestor
29530 (ipa_note_param_call): New parameter polymorphic, set the corresponding
29531 flag in the call note accordingly.
29532 (ipa_analyze_call_uses): Renamed to...
29533 (ipa_analyze_indirect_call_uses): this. New parameter target, define
29534 variable var only in the block where it is used.
29535 (ipa_analyze_virtual_call_uses): New function.
29536 (ipa_analyze_call_uses): Likewise.
29537 (combine_known_type_and_ancestor_jfs): Likewise.
29538 (update_jump_functions_after_inlining): Implemented handling of a
29539 number of new jump function types combination.
29540 (print_edge_addition_message): Removed.
29541 (make_edge_direct_to_target): New function.
29542 (try_make_edge_direct_simple_call): Likewise.
29543 (try_make_edge_direct_virtual_call): Likewise.
29544 (update_call_notes_after_inlining): Renamed to...
29545 (update_indirect_edges_after_inlining): this. Moved edge creation for
29546 indirect calls to try_make_edge_direct_simple_call, also calls
29547 try_make_edge_direct_virtual_call for virtual calls.
29548 (ipa_print_node_params): Changed the header message.
29549 (ipa_write_jump_function): Stream also known type jump functions.
29550 (ipa_read_jump_function): Likewise.
29551 (ipa_write_indirect_edge_info): Stream new fields in
29552 cgraph_indirect_call_info.
29553 (ipa_read_indirect_edge_info): Likewise.
29554 * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
29557 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29559 * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
29561 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
29563 * tree.h (CALL_EXPR_ARGS): Delete.
29564 (call_expr_arglist): Delete.
29565 * tree.c (call_expr_arglist): Delete.
29566 * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
29567 targetm.fold_builtin.
29568 * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
29569 Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
29570 * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
29571 arglist parameter. Use CALL_EXPR_ARG.
29572 (picochip_expand_builtin_3op): Likewise.
29573 (picochip_expand_builtin_2opvoid): Likewise.
29574 (picochip_expand_array_get): Likewise.
29575 (picochip_expand_array_put): Likewise.
29576 (picochip_expand_array_testport): Likewise.
29577 (picochip_expand_builtin): Don't call CALL_EXPR_ARGS. Pass exp
29578 rather than arglist.
29579 * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
29581 * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
29582 than TREE_VALUE and TREE_CHAIN.
29583 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
29584 * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
29587 2010-05-17 Jakub Jelinek <jakub@redhat.com>
29590 * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
29591 to have no fallthru edge.
29593 PR middle-end/44102
29594 * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
29595 bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
29596 mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
29597 add BARRIER after previous bb if needed.
29599 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
29601 * tree.c (build_function_type_list_1): Remove bogus assert condition.
29603 2010-05-17 Alan Modra <amodra@gmail.com>
29605 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
29606 unnecessary prototype. Replace copy_r12 and copy_r11 flag params
29607 with copy_reg rtx param.
29608 (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
29609 Correct cases where code for ABI_V4 did not initialise the reg
29610 used to access frame. Also leave frame_reg_rtx as sp for large
29611 frames that save no regs.
29613 2010-05-17 Martin Jambor <mjambor@suse.cz>
29615 PR middle-end/44133
29616 * tree-sra.c (create_access_replacement): New parameter rename, mark
29617 the replaement for renaming only when it is true.
29618 (get_access_replacement): Pass true in the rename parameter of
29619 create_access_replacement.
29620 (get_unrenamed_access_replacement): New function.
29621 (replace_uses_with_default_def_ssa_name): New parameter racc, get the
29622 replacement declaration from it.
29624 2010-05-17 Bernd Schmidt <bernds@codesourcery.com>
29626 * function.c (try_fit_stack_local, add_frame_space): New static
29628 (assign_stack_local_1): Use them. Look for opportunities to use
29629 space previously wasted on alignment.
29630 * function.h (struct frame_space): New.
29631 (struct rtl_data): Add FRAME_SPACE_LIST member.
29632 * reload1.c (something_was_spilled): New static variable.
29633 (alter_reg): Set it.
29634 (reload): Test it in addition to testing if the frame size changed.
29636 2010-05-17 Christian Borntraeger <borntraeger@de.ibm.com>
29638 * config/s390/s390.c: Define sane prefetch settings and activate
29639 flag_prefetch_loop_arrays on -O3.
29640 * config/s390/s390.h: Declare that read can use write prefetch.
29642 2010-05-17 Jakub Jelinek <jakub@redhat.com>
29644 * lto-streamer-out.c (lto_output): Fix --enable-checking=release
29647 2010-05-16 Jan Hubicka <jh@suse.cz>
29649 * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
29650 function body; do not check stdarg field of struct function.
29652 2010-05-16 Jan Hubicka <jh@suse.cz>
29654 * cgraph.c (dump_cgraph_node): Dump versionable flag.
29655 * cgraph.h (cgraph_local_info): Add versionable flag.
29656 * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
29657 (ipcp_versionable_function_p): Use it.
29658 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
29661 2010-05-16 Jan Hubicka <jh@suse.cz>
29663 * cgraph.c (cgraph_clone_node): Take decl argument and insert
29664 clone into hash when it is different from orig.
29665 (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
29666 * cgraph.h (cgraph_clone_node): Update prototype.
29667 * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
29668 (lto_cgraph_encoder_delete): Delete body map.
29669 (lto_cgraph_encoder_size): Move to header.
29670 (lto_cgraph_encoder_encode_body_p,
29671 lto_set_cgraph_encoder_encode_body): New.
29672 (lto_output_node): Do not take written_decls argument; output clone_of
29674 (add_node_to): Add include_body_argument; call
29675 lto_set_cgraph_encoder_encode_body on master of the clone.
29676 (add_references): Update use of add_node_to.
29677 (compute_ltrans_boundary): Likewise.
29678 (output_cgraph): Do not create written_decls bitmap.
29679 (input_node): Take nodes argument; stream in clone_of correctly.
29680 (input_cgraph_1): Update use of input_node.
29681 * lto-streamer-out.c (lto_output): Use encoder info to decide
29682 what bodies to output.
29683 * ipa-inline.c (cgraph_clone_inlined_nodes,
29684 cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
29685 * lto-streamer.h (lto_cgraph_encoder_d): Add body.
29686 (lto_cgraph_encoder_size): Define here.
29687 (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
29690 2010-05-16 Richard Guenther <rguenther@suse.de>
29692 * doc/invoke.texi (-fipa-struct-reorg): Do not mention
29694 * ipa-type-escape.c (gate_type_escape_vars): Run when
29695 -fipa-struct-reorg runs.
29696 * opts.c (decode_options): Do not unset flag_ipa_type_escape.
29697 * common.opt (fipa-type-escape): Remove.
29699 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
29701 * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
29702 (decode_options): Likewise.
29703 * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
29705 2010-05-16 Jan Hubicka <jh@suse.cz>
29707 * ipa.c (function_and_variable_visibility): Also bring local all
29710 2010-05-16 Richard Guenther <rguenther@suse.de>
29712 * alias.c (nonoverlapping_memrefs_p): Remove use of
29713 IPA type-escape information.
29715 2010-05-16 Joseph Myers <joseph@codesourcery.com>
29717 * c-common.c (c_common_reswords): Add _Static_assert for C.
29718 * c-parser.c (c_token_starts_declaration,
29719 c_parser_next_token_starts_declaration,
29720 c_parser_static_assert_declaration_no_semi,
29721 c_parser_static_assert_declaration): New.
29722 (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
29723 Handle static assertions if static_assert_ok.
29724 (c_parser_external_declaration, c_parser_declaration_or_fndef,
29725 c_parser_compound_statement_nostart, c_parser_label,
29726 c_parser_for_statement, c_parser_objc_methodprotolist,
29727 c_parser_omp_for_loop): All callers of
29728 c_parser_declaration_or_fndef changed.
29729 (c_parser_struct_declaration): Handle static assertions.
29730 (c_parser_compound_statement_nostart): Use
29731 c_parser_next_token_starts_declaration and
29732 c_token_starts_declaration to detect start of declarations.
29733 (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
29736 2010-05-16 Anatoly Sokolov <aesok@post.ru>
29738 * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
29739 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
29740 * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
29741 TARGET_FUNCTION_VALUE_REGNO_P): Define.
29742 (mmix_function_outgoing_value): Rename to...
29743 (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
29744 (mmix_function_value_regno_p): Make static.
29745 (mmix_libcall_value): New function.
29746 * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
29747 mmix_function_value_regno_p): Remove declaration.
29749 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
29751 * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
29752 BUILT_IN_ALLOCA if stack checking is enabled.
29754 2010-05-16 Richard Guenther <rguenther@suse.de>
29756 * var-tracking.c (vars_copy_1): Inline ...
29757 (vars_copy): ... here. Use FOR_EACH_HTAB_ELEMENT.
29758 (variable_union): Use FOR_EACH_HTAB_ELEMENT. Merge asserts.
29759 (variable_merge_over_cur): Adjust. Merge asserts.
29760 (variable_merge_over_src): Likewise.
29761 (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
29762 (variable_post_merge_new_vals): Merge asserts.
29763 (variable_post_merge_perm_vals): Likewise.
29764 (find_mem_expr_in_1pdv): Likewise.
29765 (dataflow_set_different_value): Remove.
29766 (onepart_variable_different_p): Merge asserts.
29767 (variable_different_p): Likewise.
29768 (dataflow_set_different_1): Inline ...
29769 (dataflow_set_different): ... here. Use FOR_EACH_HTAB_ELEMENT.
29770 (emit_notes_for_differences_1): Merge asserts.
29772 2010-05-16 Richard Guenther <rguenther@suse.de>
29774 * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
29775 * optabs.c (libfunc_decl_hash): Likewise.
29776 * varasm.c (emutls_decl): Likewise.
29778 2010-05-16 Steven Bosscher <steven@gcc.gnu.org>
29780 * c-decl.c: Don't include gimple.h.
29781 (merge_decls): Do not copy gimple_body.
29783 2010-05-15 Jason Merrill <jason@redhat.com>
29785 * c.opt: Add -fnothrow-opt.
29787 2010-05-15 Jan Hubicka <jh@suse.cz>
29789 * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
29791 * passes.c (ipa_write_summaries): Write all analyzed nodes.
29793 2010-05-15 Steven Bosscher <steven@gcc.gnu.org>
29795 * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
29796 * Makefile.in: Add it.
29797 Fix all other Makefile dependencies for changes below.
29798 * tree.h: Include it instead of defining VEC primitives here.
29799 * gimple.h: Likewise.
29801 * tree-inline.h: Inlclude vecir.h instead of gimple.h.
29802 * except.h: Include vecir.h, break dependence on tree.h.
29804 * gimplify.c (append_to_statement_list_1, append_to_statement_list):
29806 * tree-iterator.c: ...to here.
29807 * tree-iterator.h: Fix file introduction comment. Add extern markers.
29809 * c-lex.c: Include fixed-value.h instead of rtl.h. Do not include
29811 * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
29812 * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
29813 integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
29814 tree-mudflap.h, and target.h.
29815 * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
29816 predict.h, tree-inline.h, gimple.h, and langhooks.h.
29817 * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
29818 Add FIXME for why gimple.h is still included (should be unnecessary
29819 since GCC 4.5 gimplification unit-at-a-time).
29820 * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
29821 * c-pragma.c: Add FIXME for why function.h needs to be included just
29822 for cfun, at front-end level.
29823 Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
29824 Do not include ggc.h, but include vecprim.h for VEC(char).
29825 * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
29826 Explain why target.h is included.
29827 * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
29828 Explain why gimple.h is included.
29829 * c-ppoutput.c: Do not include tm.h.
29830 * c-common.c: Do not include gimple.h. Explain why expr.h is included.
29831 * c-parses.c: Explain why rtl.h is included, and that this (and only
29832 this) is also why tm.h must be included.
29833 Do not include except.h.
29834 * c-lang.c: Do not include ggc.h.
29836 2010-05-15 Uros Bizjak <ubizjak@gmail.com>
29838 * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
29840 2010-05-15 Joseph Myers <joseph@codesourcery.com>
29842 * c-decl.c (grokfield): Allow typedefs for anonymous structs and
29843 unions by default if those structs and unions have no tags. Do
29844 not condition anonymous struct and unions handling on flag_iso.
29845 Allow anonymous structs and unions for C1X.
29846 (finish_struct): Do not diagnose lack of named fields when
29847 anonymous structs and unions present for C1X. Accept flexible
29848 array members in structure with anonymous structs or unions but no
29849 directly named fields.
29850 * doc/extend.texi (Unnamed Fields): Update.
29852 2010-05-15 Eric Botcazou <ebotcazou@adacore.com>
29854 * gimple.h (compare_field_offset): Rename into...
29855 (gimple_compare_field_offset): ...this.
29856 * gimple.c (compare_field_offset): Rename into...
29857 (gimple_compare_field_offset): ...this. Compare the full access if
29858 the offset is self-referential.
29859 (gimple_types_compatible_p): Adjust for above renaming.
29860 * lto-streamer-in.c (input_gimple_stmt): Likewise. Also compare the
29861 DECL_NONADDRESSABLE_P flag of fields before merging them.
29863 2010-05-15 Nathan Froyd <froydnj@codesourcery.com>
29865 * tree.h (ctor_to_list): Delete.
29866 * tree.c (ctor_to_list): Delete.
29868 2010-05-15 Jan Hubicka <jh@suse.cz>
29870 * ipa-reference.c: Include toplev.h
29871 (is_proper_for_analysis): Only add to all_module_statics
29872 if it is allocated.
29873 (write_node_summary_p, stream_out_bitmap,
29874 ipa_reference_write_optimization_summary,
29875 ipa_reference_read_optimization_summary): New.
29876 (struct ipa_opt_pass_d pass_ipa_reference): Add
29877 optimization summary streaming.
29878 * lto-cgraph.c (referenced_from_this_partition_p,
29879 reachable_from_this_partition_p): New functions.
29880 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
29881 call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
29882 * opts.c (decode_options): Enable ipa_reference.
29883 * Makefile.in (ipa-reference.o): Add toplev.h dependency.
29884 * lto-streamer.h (referenced_from_this_partition_p,
29885 reachable_from_this_partition_p): Declare.
29887 2010-05-15 Richard Guenther <rguenther@suse.de>
29889 PR tree-optimization/44038
29890 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
29891 taking the address of a V_C_E of a constant.
29893 2010-05-14 Jan Hubicka <jh@suse.cz>
29895 * tree.h (memory_identifier_string): Remove.
29896 * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
29897 (ipa_reference_global_vars_info_d): Remove statics_not_read and
29898 statics_not_written.
29899 (ipa_reference_optimization_summary_d): New structure.
29900 (ipa_reference_optimization_summary_t): New type and vector.
29901 (ipa_reference_vars_info_d): Embedd structures instead of using
29903 (reference_vars_to_consider): Remove out of GGC space.
29904 (module_statics_escape): Remove.
29905 (global_info_obstack): Rename to ...
29906 (optimization_summary_obstack): ... this one.
29907 (initialization_status_t): Remove.
29908 (memory_identifier_string): Remove.
29909 (get_reference_vars_info): Fix indenting.
29910 (set_reference_vars_info): Likewise.
29911 (get_reference_optimization_summary): New.
29912 (set_reference_optimization_summary): New.
29913 (get_global_reference_vars_info): Remove.
29914 (ipa_reference_get_read_global): Remove.
29915 (ipa_reference_get_written_global): Remove.
29916 (ipa_reference_get_not_read_global): Update.
29917 (ipa_reference_get_not_written_global): Update.
29918 (is_proper_for_analysis): Outlaw addressable.
29919 (propagate_bits): Update for new datastructures.
29920 (analyze_variable): Remove.
29921 (init_function_info): Update for new datastructures.
29922 (clean_function_local_data): Remove.
29923 (clean_function): Remove.
29924 (copy_global_bitmap): Use optimizations_summary_obstack.
29925 (duplicate_node_data): Duplicate optimization summary only.
29926 (remove_node_data): Remove optimization summary only.
29927 (generate_summary): Do not analyze variables; do not compute
29928 module_statics_escape; do not prune solutions by it.
29929 (read_write_all_from_decl): Fix typos in comments.
29930 (propagate): Doscover readonly and nonaddressable first;
29931 update for new datastructures; share global bitmaps.
29932 * ipa-reference.h (ipa_reference_get_read_global,
29933 ipa_reference_get_written_global): Remove.
29934 * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
29935 * Makefile.in: Remove ipa-refereference from GT files.
29937 2010-05-14 Jakub Jelinek <jakub@redhat.com>
29940 * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
29941 for all SYMBOL_REF_DECLs.
29943 2010-05-14 Jan Hubicka <jh@suse.cz>
29945 * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
29946 (varpool_all_refs_explicit_p): New inline function.
29947 * ipa-reference.c: Update comment.
29948 (module_statics_written): Remove.
29949 (get_static_decl): Remove.
29950 (ipa_init): Do not initialize module_statics_written.
29951 (analyze_function): Likewise.
29952 (generate_summary): Likewise; do not compute module_statics_readonly
29953 and do not update variable flags.
29954 (propagate): Call ipa_discover_readonly_nonaddressable_vars.
29955 * ipa.c: Inlucde flags.h
29956 (cgraph_local_node_p): New.
29957 (cgraph_remove_unreachable_nodes): Return early when not optimizing;
29958 promote functions to local.
29959 (ipa_discover_readonly_nonaddressable_vars): New function.
29960 (function_and_variable_visibility): Use cgraph_local_node_p.
29961 * varpool.c (varpool_finalize_decl): Set force_output for
29962 DECL_PRESERVE_P vars.
29964 2010-05-14 Jan Hubicka <jh@suse.cz>
29966 * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
29968 2010-05-14 Richard Guenther <rguenther@suse.de>
29970 PR tree-optimization/44119
29971 * tree-ssa-pre.c (eliminate): Properly mark replacement of
29972 a PHI node necessary.
29974 2010-05-14 Eric Botcazou <ebotcazou@adacore.com>
29976 * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
29978 2010-05-14 Jason Merrill <jason@redhat.com>
29981 * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
29982 (gimple_call_set_nothrow): New.
29983 * gimple.c (gimple_build_call_from_tree): Call it.
29984 (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
29987 * gimplify.c (gimplify_seq_add_stmt): No longer static.
29988 * gimple.h: Declare it.
29989 * gimple.c (gimple_build_eh_filter): No ops.
29991 2010-05-14 Jan Hubicka <jh@suse.cz>
29993 * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
29994 nodes already in queue.
29995 (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
29996 re-enqueueing node.
29998 2010-05-14 Jakub Jelinek <jakub@redhat.com>
30001 * cfgexpand.c (expand_debug_expr): If non-memory op0
30002 has BLKmode, return NULL.
30004 2010-05-14 Harsha Jagasia <harsha.jagasia@amd.com>
30006 * config.gcc: Add support for --with-cpu option for bdver1.
30007 * config/i386/i386.h (TARGET_BDVER1): New macro.
30008 (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
30009 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
30010 (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
30011 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
30012 Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
30013 (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
30014 (processor_type): Add PROCESSOR_BDVER1.
30015 * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
30016 processor_type in config/i386/i386.h.
30017 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
30018 movaps <reg, reg> instead of movapd <reg, reg> when replacing
30019 movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
30020 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
30021 to emit packed xor instead of packed double/packed integer
30022 xor for SSE and AVX when moving a zero value.
30023 * config/i386/sse.md: Add check for
30024 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
30025 movapd/movdqa for SSE and AVX.
30026 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
30027 single logical operations i.e and, or and xor instead of packed double
30028 logical operations for SSE and AVX.
30029 * config/i386/i386-c.c (ix86_target_macros_internal):
30030 Add PROCESSOR_BDVER1.
30031 * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
30032 (has_fma4, has_xop): New.
30033 * config/i386/i386.c (bdver1_cost): New variable.
30034 (m_BDVER1): New macro.
30035 (m_AMD_MULTIPLE): Add m_BDVER1.
30036 (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
30037 x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
30038 x86_tune_use_simode_fiop, x86_tune_promote_qimode,
30039 x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
30040 x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
30041 x86_tune_sse_partial_reg_dependency,
30042 x86_tune_sse_unaligned_load_optimal,
30043 x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
30044 x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
30045 x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
30046 x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
30047 x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
30048 Enable/disable for bdver1.
30049 (processor_target_table): Add bdver1_cost.
30050 (cpu_names): Add bdver1.
30051 (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
30052 processor_alias_table.
30053 (ix86_expand_vector_move_misalign): Change.
30054 TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
30055 Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
30056 Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
30057 of movupd/movdqu for SSE and AVX.
30058 (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
30059 (ix86_tune_adjust_cost): Add code for bdver1.
30060 (standard_sse_constant_opcode): Add check for
30061 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
30062 of packed double xor for SSE and AVX.
30064 2010-05-14 Pat Haugen <pthaugen@us.ibm.com>
30066 * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
30067 result to unsigned.
30069 2010-05-14 Tristan Gingold <gingold@adacore.com>
30071 * toplev.c (default_debug_hooks): Remove this variable.
30072 (process_options): Remove assignments to default_debug_hooks.
30074 2010-05-14 Martin Jambor <mjambor@suse.cz>
30076 * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
30077 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
30078 * langhooks.h (struct lang_hooks_for_decls): Removed field
30080 * tree.c (free_lang_data): Remove assignment to
30081 lang_hooks.fold_obj_type_ref.
30082 * tree.def (OBJ_TYPE_REF): Update comment.
30084 2010-05-14 Richard Guenther <rguenther@suse.de>
30086 PR tree-optimization/44124
30087 * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
30089 2010-05-14 Alan Modra <amodra@gmail.com>
30092 * config/rs6000/rs6000.c (struct machine_function): Reorder
30093 fields for better packing. Add lr_save_state.
30094 (rs6000_ra_ever_killed): Return lr_save_state if set.
30095 (rs6000_emit_eh_reg_restore): Set lr_save_state.
30097 2010-05-13 Jan Hubicka <jh@suse.cz>
30099 * varpool.c (decide_is_variable_needed): Drop code checking
30100 TREE_SYMBOL_REFERENCED.
30102 2010-05-13 Jan Hubicka <jh@suse.cz>
30104 * final.c (output_addr_const): Do not call mark_decl_referenced.
30105 * cgraphunit.c (process_function_and_variable_attributes): Use
30106 mark_needed_node dirrectly.
30107 (assemble_thunk): Do not call mark_decl_referenced.
30109 2010-05-13 Anatoly Sokolov <aesok@post.ru>
30111 * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
30113 2010-05-13 Jeff Law <law@redhat.com>
30115 * ira-conflicts.c (print_allocno_conflicts): New function broken out
30117 (print_conflicts): Call print_allocno_conflicts.
30119 2010-05-13 Jakub Jelinek <jakub@redhat.com>
30122 * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
30125 2010-05-13 Kai Tietz <kai.tietz@onevision.com>
30127 * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
30128 t-mingw-w64 or t-mingw-w32 for multilib configuration.
30129 * config/i386/t-mingw-w32: New.
30130 * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
30132 2010-05-13 Martin Jambor <mjambor@suse.cz>
30134 * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
30136 * gimple-fold.c (get_base_binfo_for_type): New function.
30137 (gimple_get_relevant_ref_binfo): Likewise.
30138 (gimple_fold_obj_type_ref_known_binfo): Likewise.
30139 (gimple_fold_obj_type_ref): Likewise.
30140 (fold_gimple_call): Simplify condition for folding virtual calls
30141 and call gimple_fold_obj_type_ref.
30142 * gimple.h (gimple_get_relevant_ref_binfo): Declare.
30143 (gimple_fold_obj_type_ref_known_binfo): Likewise.
30145 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
30147 * config/rs6000/rs6000-protos.h
30148 (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
30149 * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
30150 (rs6000_debug_mode_dependent_address)
30151 (rs6000_mode_dependent_address_ptr): Likewise.
30153 2010-05-13 Jakub Jelinek <jakub@redhat.com>
30156 * var-tracking.c (track_expr_p): Allow tracking of variables optimized
30158 * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
30159 * tree-sra.c (create_access_replacement): Call unshare_expr before
30160 passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
30161 * dwarf2out.c: Include tree-flow.h.
30162 (struct var_loc_node): Rename var_loc_note field to loc, add comment.
30163 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
30164 Handle DW_OP_bit_piece.
30165 (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
30166 construct_piece_list, adjust_piece_list): New functions.
30167 (add_var_loc_to_decl): Handle SRA optimized variables.
30168 Adjust for var_loc_note to loc field renaming.
30169 (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
30170 in VAR_LOCATION note.
30171 (new_loc_descr_op_bit_piece): New function.
30172 (dw_sra_loc_expr): New function.
30173 (dw_loc_list): Use it. Don't handle the last range after the
30174 loop, handle it inside of the loop. Adjust for var_loc_note
30175 to loc field renaming.
30176 (add_location_or_const_value_attribute): Only special case
30177 single entry loc lists if loc is NOTE_P. Adjust for
30178 var_loc_note to loc field renaming.
30179 (dwarf2out_var_location): Don't set newloc->var_loc_note
30180 and newloc->next here.
30182 2010-05-12 Jan Hubicka <jh@suse.cz>
30184 * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
30186 * cgraph.h (cgraph_only_called_directly_p,
30187 cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
30188 (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
30189 * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
30191 * ipa.c (cgraph_remove_unreachable_nodes): Use
30192 cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
30194 * tree-inline.c (copy_bb): Check address_taken flag.
30195 * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
30196 externally_visible flag.
30198 2010-05-12 Jason Merrill <jason@redhat.com>
30202 * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
30203 * sdbout.c (plain_type_1): Likewise.
30204 * dwarf2out.c (is_base_type): Likewise.
30205 (gen_type_die_with_usage): Likewise. Generate
30206 DW_TAG_unspecified_type for any LANG_TYPE.
30208 2010-05-12 Jan Hubicka <jh@suse.cz>
30210 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
30212 * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
30213 (cgraph_clone_edge): Update.
30214 (cgraph_node_remove_callees): Remove indirect calls too.
30215 * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
30216 (cgraph_create_indirect_edge): Update prototype.
30217 * ipa-reference.c (has_proper_scope_for_analysis): Rename to
30218 is_proper_for_analysis.
30219 (add_new_function, visited_nodes, function_insertion_hook_holder,
30220 get_local_reference_vars_info, mark_address_taken, mark_address,
30221 mark_load, mark_store, check_asm_memory_clobber, check_call,
30222 scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
30223 (ipa_init): Do not initialize visited_nodes;
30224 function_insertion_hook_holder.
30225 (analyze_variable): Rewrite.
30226 (analyze_function): Rewrite.
30227 (copy_local_bitmap): Remove.
30228 (duplicate_node_dat): Do not duplicate local info.
30229 (generate_summary): Simplify to only walk cgraph.
30230 (write_node_summary_p, ipa_reference_write_summary,
30231 ipa_reference_read_summary): Remove.
30232 (propagate): Do not remove function insertion;
30234 (pass_ipa_reference): NULLify summary handling fields.
30235 * lto-cgraph.c (lto_output_edge): Output ecf_flags.
30236 (input_edge): Input ecf_flags.
30237 * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
30238 (update_indirect_edges_after_inlining): Ignore edges with unknown
30241 2010-05-12 Sriraman Tallam <tmsriram@google.com>
30243 * implicit-zee.c: New file.
30244 * tree-pass.h (pass_implicit_zee): Declare.
30245 * passes.c (init_optimization_passes): Add zee pass.
30246 * common.opt (fzee): New flag.
30247 * timevar.def (TV_ZEE): Define.
30248 * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
30250 * Makefile.in (implicit-zee.o): Add new build file.
30252 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
30253 Nathan Froyd <froydnj@codesourcery.com>
30255 * c-common.c (sync_resolve_params): Remove write-only variable.
30257 2010-05-12 Anatoly Sokolov <aesok@post.ru>
30259 * target.h (struct gcc_target): Add mode_dependent_address_p field.
30260 * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
30261 (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
30262 * targhooks.c (default_mode_dependent_address_p): New function.
30263 * targhooks.h (default_mode_dependent_address_p): Declare function.
30264 * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
30265 (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
30266 * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
30267 target hook. Change return type to bool.
30268 * recog.h (mode_dependent_address_p): Change return type to bool.
30270 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
30271 Nathan Froyd <froydnj@codesourcery.com>
30273 * tree-mudflap.c (build_function_type_0, build_function_type_1,
30274 build_function_type_2, build_function_type_3): Remove.
30275 (mudflap_init): Use build_function_type_list.
30277 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
30278 Nathan Froyd <froydnj@codesourcery.com>
30280 * coverage.c (build_fn_info_value): Call build_constructor instead of
30281 build_constructor_from_list.
30282 (build_ctr_info_value): Likewise.
30283 (build_gcov_info): Likewise.
30285 2010-05-12 Nathan Froyd <froydnj@codesourcery.com>
30287 * tree.c (build_constructor): Compute TREE_CONSTANT for the
30288 resultant constructor.
30289 (build_constructor_single): Don't set TREE_CONSTANT.
30290 (build_constructor_from_list): Don't compute TREE_CONSTANT.
30292 2010-05-12 Jan Hubicka <jh@suse.cz>
30294 * cgraph.h (struct varpool_node): Add aux.
30295 * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
30296 * varpool.c (varpool_remove_node): Do not remove initializer.
30297 (varpool_reset_queue): Export.
30298 (varpool_finalize_decl): Volatile vars are forced to be output.
30299 * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
30301 * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
30302 process_references, varpool_can_remove_if_no_refs): New functions.
30303 (cgraph_remove_unreachable_nodes): Handle variables too.
30305 2010-05-12 H.J. Lu <hongjiu.lu@intel.com>
30308 * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
30310 2010-05-12 Jakub Jelinek <jakub@redhat.com>
30312 PR middle-end/44085
30313 * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
30314 change value of ORT_TASK.
30315 (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
30316 (omp_notice_threadprivate_variable): New function.
30317 (omp_notice_variable): Call it for threadprivate variables.
30318 If enclosing ctx is a task, print enclosing task rather than
30319 enclosing parallel. Handle ORT_UNTIED_TASK like ORT_TASK.
30320 (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
30321 if task has untied clause.
30324 * dwarf2out.c (base_type_die): Don't add name attribute here.
30325 (modified_type_die): Instead of sizetype use
30326 its underlying original type. If a DW_TAG_base_type doesn't
30327 have name added, add __unknown__.
30328 (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
30329 always call force_type_die instead.
30331 2010-05-12 Maxim Kuvyrkov <maxim@codesourcery.com>
30333 * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
30334 for __stack_chk_guard.
30336 2010-05-11 Jakub Jelinek <jakub@redhat.com>
30338 * c-opts.c (c_common_parse_file): If start_end_main_source_file,
30339 don't call start_source_file debug hook here...
30340 (finish_options): ... but here, after outputting predefined and
30341 command line defines and undefs.
30343 PR middle-end/44071
30344 * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
30346 * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
30347 optimizing away empty bb with no successors, move over its
30348 footer chain to fallthru predecessor.
30349 * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
30350 (rtl_split_edge): For asm goto call patch_jump_insn even if
30351 splitting fallthru edge.
30354 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
30355 even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
30356 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
30357 * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
30361 * c-parser.c (c_parser_expression): Mark LHS of a comma
30362 expression as read if it is a decl, handled component or
30363 COMPOUND_EXPR with that on the RHS.
30364 * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
30365 if it is a decl or handled component.
30367 2010-05-11 Jan Hubicka <jh@suse.cz>
30369 * lto-symtab.c (lto_symtab_free): New function.
30370 * lto-streamer.h (lto_symtab_free): Declare.
30372 2010-05-11 Jan Hubicka <jh@suse.cz>
30374 * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
30375 that if function is needed it is reachable.
30376 (lto_output_node): See if it the function is reachable or referenced.
30377 (output_cgraph): Update call of lto_output_node.
30378 * lto-streamer.h (reachable_from_other_partition_p): Declare.
30380 2010-05-11 Jan Hubicka <jh@suse.cz>
30382 * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
30385 2010-05-11 Jan Hubicka <jh@suse.cz>
30387 PR tree-optimize/44063
30388 * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
30390 (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
30392 (estimate_function_body_sizes): Compute sizes even when disregarding.
30394 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
30396 * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
30398 2010-05-11 Jan Hubicka <jh@suse.cz>
30400 * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
30401 into every boundary.
30403 2010-05-11 Jan Hubicka <jh@suse.cz>
30405 * matrix-reorg.c (matrix_reorg): Rebuild edges.
30407 2010-05-11 Jan Hubicka <jh@suse.cz>
30409 * lto-streamer.c (lto_streamer_cache_add_to_node_array,
30410 lto_streamer_cache_delete): Put nodes into heap.
30411 * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
30414 2010-05-11 Jan Hubicka <jh@suse.cz>
30416 * cgraphbuild.c (cgraph_rebuild_references): New.
30417 * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
30418 out extern inlines.
30419 * cgraph.h (cgraph_rebuild_references): Declare.
30420 * tree-inline.c (tree_function_versioning): Use it.
30421 * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
30423 2010-05-11 Jan Hubicka <jh@suse.cz>
30425 * cgraph.c: Include ipa-utils.h
30426 (cgraph_create_virtual_clone): Update references.
30427 * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
30429 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
30431 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
30432 prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
30435 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
30437 * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
30439 2010-05-11 Jakub Jelinek <jakub@redhat.com>
30441 * gcc.c (execute): For -### don't quote arguments that
30442 contain just alphanumerics and _/-. characters.
30443 * doc/invoke.texi: Document that change for -###.
30446 * df-problems.c (struct dead_debug): Add to_rescan field.
30447 (dead_debug_init): Clear to_rescan field.
30448 (dead_debug_finish): Rescan all debug insns in to_rescan
30449 bitmap and free the bitmap.
30450 (dead_debug_insert_before): Instead of rescanning debug insns
30451 immediately queue their rescanning until dead_debug_finish.
30452 (df_note_bb_compute): After dead_debug_add do continue instead
30455 2010-05-10 Jakub Jelinek <jakub@redhat.com>
30458 * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
30459 clear also INSN_REG_USE_LIST.
30461 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30463 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
30465 2010-05-10 Jan Hubicka <jh@suse.cz>
30467 * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
30470 2010-05-10 Jan Hubicka <jh@suse.cz>
30472 * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
30474 * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
30475 * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
30476 (lto_streamer_cache_create): Init alloc pool.
30477 (lto_streamer_cache_delete): Free alloc pool.
30478 * lto-streamer.h: Include alloc pool.
30479 (lto_streamer_cache_d): Use alloc pool.
30480 * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
30482 2010-05-10 Jan Hubicka <jh@suse.cz>
30484 * Makefile.in (cgraphbuild.o): Add dependency on except.h.
30485 * cgraphbuild.c: Include except.h
30486 (record_type_list, record_eh_tables): New function.
30487 (build_cgraph_edges, rebuild_cgraph_edges): Use it.
30489 2010-05-10 Jan Hubicka <jh@suse.cz>
30491 * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
30492 __frame_dummy_init_array_entry, force_to_data): Attribute as used
30493 rather than unused.
30495 2010-05-10 Michael Matz <matz@suse.de>
30497 * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
30498 (can_reassociate_p): Use FLOAT_TYPE_P.
30499 * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
30500 (vect_force_simple_reduction): ... this.
30501 * tree-parloops.c (gather_scalar_reductions): Use
30502 vect_force_simple_reduction.
30503 * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
30504 vect_is_simple_reduction, add modify argument, if true rewrite
30505 "a-b" into "a+(-b)".
30506 (vect_is_simple_reduction, vect_force_simple_reduction): New
30508 (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
30510 2010-05-10 H.J. Lu <hongjiu.lu@intel.com>
30511 Vladimir Makarov <vmakarov@redhat.com>
30513 PR rtl-optimization/44012
30514 * ira-build.c (remove_unnecessary_allocnos): Nullify
30515 regno_allocno_map of the removed allocno.
30517 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30519 * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
30521 * configure: Regenerate.
30523 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30525 * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
30527 Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
30528 * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
30530 * configure: Regenerate.
30532 2010-05-10 Richard Guenther <rguenther@suse.de>
30534 * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
30535 marked if the entry identifier is marked.
30537 2010-05-10 Richard Guenther <rguenther@suse.de>
30539 * c-common.c (struct c_common_attributes): Add fnspec attribute.
30540 (handle_fnspec_attribute): New function.
30541 * gimple.h (gimple_call_return_flags): Declare.
30542 (gimple_call_arg_flags): Likewise.
30543 * gimple.c (gimple_call_arg_flags): New function.
30544 (gimple_call_return_flags): Likewise.
30545 * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
30546 New argument flags.
30547 (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
30548 return value flags.
30549 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
30550 * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
30552 (make_heapvar_for): ... this new function.
30553 (handle_rhs_call): Handle fnspec attribute argument specifiers.
30554 (handle_lhs_call): Likewise.
30555 (find_func_aliases): Adjust.
30557 2010-05-10 Richard Guenther <rguenther@suse.de>
30559 PR tree-optimization/44050
30560 * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
30562 2010-05-10 Wei Guozhi <carrot@google.com>
30565 * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
30567 2010-05-09 Joseph Myers <joseph@codesourcery.com>
30570 * c-typeck.c (lookup_field): Take a type directly. Update
30572 (build_component_ref): Update call to lookup_field.
30573 (set_init_label): Use lookup_field to find initialized field.
30574 Handle returned list of fields like a sequence of designators.
30576 2010-05-09 Richard Guenther <rguenther@suse.de>
30578 PR middle-end/44024
30579 * fold-const.c (tree_single_nonzero_warnv_p): Properly
30580 handle &FUNCTION_DECL.
30582 2010-05-09 Joseph Myers <joseph@codesourcery.com>
30585 * c-decl.c (detect_field_duplicates_hash): New. Handle anonymous
30586 structures and unions recursively.
30587 (detect_field_duplicates): Move duplicate detection with a hash to
30588 detect_field_duplicates_hash. Always use a hash if anonymous
30589 structures or unions are present.
30590 * doc/extend.texi (Unnamed Fields): Document that duplicate fields
30593 2010-05-09 H.J. Lu <hongjiu.lu@intel.com>
30596 * config/i386/driver-i386.c (host_detect_local_cpu): Properly
30597 detect Atom, Core 2 and Core i7.
30599 2010-05-09 Richard Guenther <rguenther@suse.de>
30601 * gcc.c (store_arg): Handle temporary file deletion for
30604 2010-05-09 Richard Guenther <rguenther@suse.de>
30606 PR middle-end/44043
30607 * ipa-inline.c (estimate_function_body_sizes): Return after
30608 disregarding inline limits.
30610 2010-05-09 Richard Guenther <rguenther@suse.de>
30612 * gcc.c (store_arg): Revert last change.
30614 2010-05-08 Sandra Loosemore <sandra@codesourcery.com>
30616 PR middle-end/28685
30617 * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
30618 (optimize_ops_list): Call it.
30620 2010-05-08 Richard Guenther <rguenther@suse.de>
30622 PR tree-optimization/44030
30623 * tree-ssa-pre.c (eliminate): Copy NECESSARY flag. Set
30624 NECESSARY flag if we propagate from a inserted expression.
30626 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
30628 * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
30629 domain types as equal if they are both PLACEHOLDER_EXPRs.
30631 2010-05-08 Richard Guenther <rguenther@suse.de>
30633 * lto-wrapper.c (run_gcc): Remove linker output from
30634 command line for LTRANS invocation.
30636 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
30638 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
30639 lto-macho as lto_binary_reader.
30640 * target.h (struct gcc_target): New hooks lto_start and lto_end.
30641 * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
30642 * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
30643 in lto_start and lto_end calls.
30644 (is_elf_or_coff): Rename to maybe_lto_object_file. Add Mach-O
30646 (scan_prog_file): Update is_elf_or_coff call.
30647 * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
30649 * collect2.c (main): Fix enum comparison.
30651 * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
30653 * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
30654 * darwin.h (LINK_COMMAND_SPEC): Likewise. Define TARGET_ASM_LTO_START
30655 and TARGET_ASM_LTO_END.
30656 * darwin.c: Include obstack.h and lto-streamer.h.
30657 (lto_section_names_offset, lto_section_names_obstack,
30658 lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
30660 (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
30661 (darwin_asm_lto_start): New function. Redirect output to asm_out_file
30662 to a temporary file.
30663 (darwin_asm_lto_end): New function. Restore asm_out_file.
30664 (darwin_asm_named_section): For LTO sections, replace the name with
30665 the offset of the section name in a string table, and build this
30667 (darwin_file_start): Initialize global vars for LTO support.
30668 (darwin_file_end): If output to asm_out_file was redirected, append it
30669 to the proper asm_out_file here. Add the section names section.
30671 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
30673 * c-pragma.c (pending_weak_d, pending_weak): New.
30674 (pending_weaks): Change the type to VEC((pending_weak,gc) *.
30675 (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
30676 handle_pragma_weak): Update the uses of pending_weaks.
30678 2010-05-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30680 PR documentation/44016
30681 * doc/standards.texi (Standards): Link to unversioned
30682 cxx0x_status.html page.
30684 2010-05-07 Iain Sandoe <iains@gcc.gnu.org>
30687 * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
30688 in addition to TREE_USED, to avoid "set but unused" warnings.
30690 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
30692 * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
30693 (is_loop_prefetching_profitable): Do not insert prefetches
30694 when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
30695 times the prefetch ahead distance.
30697 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
30699 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
30700 Account for loop unrolling in the insn-to-prefetch ratio heuristic.
30701 (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
30704 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
30706 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
30707 a diagnostic info when the insn-to-mem ratio is too small.
30709 2010-05-07 Richard Guenther <rguenther@suse.de>
30711 * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
30713 (store_arg): Queue temp_filename for deletion instead of
30714 the whole argument.
30716 2010-05-07 Richard Guenther <rguenther@suse.de>
30718 * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
30719 (run_gcc): Handle LTRANS phase invocation.
30720 * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
30722 2010-05-07 Jakub Jelinek <jakub@redhat.com>
30724 * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
30725 this is also meaningful on PARM_DECLs and RESULT_DECLs.
30727 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30729 * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
30731 2010-05-07 Richard Guenther <rguenther@suse.de>
30733 PR tree-optimization/44020
30734 * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
30735 code when PRE is not yet initialized.
30737 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30739 * config/mips/dbxmdebug.h: Remove.
30740 * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
30742 2010-05-07 Shujing Zhao <pearly.zhao@oracle.com>
30744 * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
30745 with null pointer and also warn about ordered comparison of zero with
30746 pointer if -Wextra.
30748 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
30750 * graphite-blocking.c
30751 (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
30752 * graphite-clast-to-gimple.c
30753 (clast_to_gcc_expression): Same.
30754 (precision_for_value): Same.
30755 (precision_for_interval): Same.
30756 (gcc_type_for_interval): Same.
30757 (graphite_create_new_guard): Same.
30758 (compute_bounds_for_level): Same.
30759 (graphite_create_new_loop_guard): Same.
30760 * graphite-interchange.c
30761 (build_linearized_memory_access): Same.
30762 (pdr_stride_in_loop): Same.
30763 (memory_strides_in_loop_1): Same.
30764 (memory_strides_in_loop): Same.
30765 (extend_scattering): Same.
30766 (psct_scattering_dim_for_loop_depth): Same.
30767 (pbb_number_of_iterations): Same.
30769 (debug_iteration_domains): Same.
30771 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
30772 (ppl_set_inhomogeneous_gmp): Same.
30773 (ppl_strip_loop): Same.
30774 (ppl_lexico_compare_linear_expressions): Same.
30775 (ppl_read_polyhedron_matrix): Same.
30776 (ppl_max_for_le_pointset): Same.
30778 (ppl_read_polyhedron_matrix): Same.
30779 (tree_int_to_gmp): Same.
30780 (gmp_cst_to_tree): Same.
30781 (ppl_set_inhomogeneous): Same.
30782 (ppl_set_inhomogeneous_tree): Same.
30783 (ppl_set_coef): Same.
30784 (ppl_set_coef_tree): Same.
30785 * graphite-sese-to-poly.c
30786 (build_pbb_scattering_polyhedrons): Same.
30787 (build_scop_scattering): Same.
30788 (scan_tree_for_params_right_scev): Same.
30789 (scan_tree_for_params): Same.
30790 (find_params_in_bb): Same.
30791 (find_scop_parameters): Same.
30792 (add_upper_bounds_from_estimated_nit): Same.
30793 (build_loop_iteration_domains): Same.
30794 (add_condition_to_domain): Same.
30795 (pdr_add_memory_accesses): Same.
30797 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
30799 * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
30800 CLooG's value_* macros to their respective mpz_* counterparts.
30801 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
30802 (graphite_create_new_loop_guard): Same.
30803 * graphite-interchange.c (build_linearized_memory_access): Same.
30804 (pdr_stride_in_loop): Same.
30805 (memory_strides_in_loop_1): Same.
30806 (1st_interchange_profitable_p): Same.
30807 * graphite-poly.c (extend_scattering): Same.
30808 (psct_scattering_dim_for_loop_depth): Same.
30809 (pbb_number_of_iterations): Same.
30810 (pbb_number_of_iterations_at_time): Same.
30811 * graphite-poly.h (new_1st_loop): Same.
30812 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
30813 (oppose_constraint): Same.
30814 (insert_constraint_into_matrix): Same.
30815 (ppl_set_inhomogeneous_gmp): Same.
30816 (ppl_set_coef_gmp): Same.
30817 (ppl_strip_loop): Same.
30818 (ppl_lexico_compare_linear_expressions): Same.
30819 (ppl_max_for_le_pointset): Same.
30820 (ppl_min_for_le_pointset): Same.
30821 (ppl_build_realtion): Same.
30822 * graphite-ppl.h (gmp_cst_to_tree): Same.
30823 (ppl_set_inhomogeneous): Same.
30824 (ppl_set_inhomogeneous_tree): Same.
30825 (ppl_set_coef): Same.
30826 (ppl_set_coef_tree): Same.
30827 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
30828 (build_scop_scattering): Same.
30829 (add_value_to_dim): Same.
30830 (scan_tree_for_params_right_scev): Same.
30831 (scan_tree_for_params_int): Same.
30832 (scan_tree_for_params): Same.
30833 (find_params_in_bb): Same.
30834 (find_scop_parameters): Same.
30835 (add_upper_bounds_from_estimated_nit): Same.
30836 (build_loop_iteration_domains): Same.
30837 (create_linear_expr_from_tree): Same.
30838 (add_condition_to_domain): Same.
30839 (pdr_add_memory_accesses): Same.
30841 2010-05-06 Magnus Fromreide <magfr@lysator.liu.se>
30842 Jason Merrill <jason@redhat.com>
30844 * c-common.c (c_common_reswords): Add nullptr.
30845 * c-common.h: Add RID_NULLPTR. Reorganize C++0x rids.
30846 * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
30847 (gen_type_die_with_usage): Likewise.
30848 * dbxout.c (dbxout_type): Likewise.
30849 * sdbout.c (plain_type_1): Likewise.
30851 2010-05-06 Jason Merrill <jason@redhat.com>
30853 * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
30854 Don't change GS_OK to GS_ALL_DONE. Make sure that all cases set
30856 (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
30858 * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
30859 stripping WITH_SIZE_EXPR.
30860 (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
30863 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30865 * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
30866 list of obsolete configurations.
30867 Disabled check for obsolete configurations.
30868 (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
30869 Removed support for previous versions.
30870 * config/mips/iris.h: Removed.
30871 * config/mips/iris5.h: Removed.
30872 * config/mips/iris6.h: Merged old iris.h contents.
30873 (TARGET_IRIX): Removed.
30874 (DRIVER_SELF_SPECS): Removed mabi=32.
30875 (IDENT_ASM_OP): Removed undef.
30876 (STARTFILE_SPEC): Removed mabi=32.
30877 (ENDFILE_SPEC): Likewise.
30878 (IRIX_SUBTARGET_LINK_SPEC): Likewise.
30879 (MACHINE_TYPE): Update for IRIX 6.5.
30880 * config/mips/mips.c (mips_build_builtin_va_list): Replaced
30881 TARGET_IRIX by TARGET_IRIX6.
30882 (mips_file_start): Likewise.
30883 (mips_output_external): Remove IRIX 5/6 O32 support.
30884 (mips_output_function_prologue): Likewise.
30885 * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
30887 (TARGET_CPU_CPP_BUILTINS): Likewise.
30888 (TARGET_IRIX): Removed.
30889 * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
30890 (MULTILIB_DIRNAMES): Removed 32.
30891 (MULTILIB_OSDIRNAMES): Removed ../lib.
30892 * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
30893 (Specific, mips-sgi-irix5): Document removal.
30894 (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
30895 Remove references to older IRIX 6 releases and the O32 ABI.
30897 2010-05-06 Jakub Jelinek <jakub@redhat.com>
30900 * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
30901 instead of DF_REF_REAL_REG.
30903 2010-05-06 Dave Korn <dave.korn.cygwin@gmail.com>
30906 * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
30907 handling to still return true for x64 targets.
30909 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
30911 * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
30913 2010-05-06 Jan Hubicka <jh@suse.cz>
30915 PR tree-optimization/43791
30916 * ipa-inline.c (update_caller_keys): Remove bogus
30917 disregard_inline_limits check.
30919 2010-05-06 Michael Matz <matz@suse.de>
30921 PR tree-optimization/43984
30922 * tree-ssa-pre.c (inserted_phi_names): Remove.
30923 (inserted_exprs): Change to bitmap.
30924 (create_expression_by_pieces): Set bits, don't append to vector.
30925 (insert_into_preds_of_block): Don't handle inserted_phi_names.
30926 (eliminate): Don't look at inserted_phi_names, remove deleted
30927 insns from inserted_exprs.
30928 (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
30929 (init_pre, fini_pre): Allocate and free bitmaps.
30930 (execute_pre): Insert insns on edges before elimination.
30932 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
30934 * tree.c (initializer_zerop): Handle STRING_CST.
30936 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
30939 * doc/invoke.texi (Wimplicit): Document as C only.
30940 * opts.c (common_handle_option): Add argument kind.
30941 (handle_option): Rename as read_cmdline_option. Factor out code to...
30942 (handle_option): ... here. New.
30943 (handle_options): Rename as read_cmdline_options.
30944 (decode_options): Update call.
30945 (set_option): Use option index instead of option pointer. Classify
30946 diagnostics correctly.
30947 (enable_warning_as_error): Call handle_option.
30948 * opts.h (set_option): Update declaration.
30949 (handle_option): Declare.
30950 * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
30951 * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
30952 * c-opts.c (set_Wimplicit): Delete.
30953 (c_family_lang_mask): New static constant.
30954 (c_common_handle_option): Add argument kind. Use handle_option
30955 instead of set_Wimplicit.
30956 (c_common_post_options): warn_implicit and warn_implicit_int
30957 are disabled by default.
30958 * c-common.c (warn_implicit): Do not define here.
30959 * c-common.h (warn_implicit): Do not declare here.
30960 (c_common_handle_option): Update declaration.
30961 * lto-opts.c (lto_reissue_options): Update call to set_option.
30963 2010-05-06 Richard Guenther <rguenther@suse.de>
30965 PR tree-optimization/43571
30966 * domwalk.c (walk_dominator_tree): Walk the dominator
30967 sons in more optimal order.
30969 2010-05-06 Richard Guenther <rguenther@suse.de>
30971 PR tree-optimization/43934
30972 * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
30973 (stmt_cost): Likewise.
30974 (extract_true_false_args_from_phi): New helper.
30975 (determine_max_movement): For PHI nodes verify we can hoist them
30976 and compute their cost.
30977 (determine_invariantness_stmt): Handle PHI nodes.
30978 (move_computations_stmt): Likewise. Hoist PHI nodes in
30979 if-converted form using COND_EXPRs.
30980 (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
30981 (tree_ssa_lim): Likewise.
30982 * tree-flow.h (tree_ssa_lim): Adjust prototype.
30983 * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
30985 2010-05-06 Richard Guenther <rguenther@suse.de>
30987 PR tree-optimization/43987
30988 * tree-ssa-structalias.c (could_have_pointers): For possibly
30989 address-taken variables force pointers to be recorded.
30990 (create_variable_info_for_1): Likewise.
30991 (push_fields_onto_fieldstack): Pass in wheter all fields
30992 must have pointers.
30993 (find_func_aliases): Query types instead of vars whether
30994 they contain pointers where appropriate.
30996 2010-05-06 Jan Hubicka <jh@suse.cz>
30998 * cgraphbuild.c (record_reference_ctx): Add varpool_node.
30999 (record_reference, mark_address, mark_load, mark_store): Record
31001 (record_references_in_initializer): Update call of record_references.
31002 (rebuild_cgraph_edges): Remove all references before rebuiding.
31003 * cgraph.c (cgraph_create_node): Clear ref list.
31004 (cgraph_remove_node): Remove references.
31005 (dump_cgraph_node): Dump references.
31006 (cgraph_clone_node): Clone references.
31007 * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
31008 (struct cgraph_node, varpool_node): Add ref_lst.
31009 * ipa-ref.c: New file.
31010 * ipa-ref.h: New file.
31011 * ipa-ref-inline.h: New file.
31012 * lto-cgraph.c (output_varpool): Take cgrag node set argument.
31013 (referenced_from_other_partition_p): New function.
31014 (lto_output_varpool_node): Take set arugment; call
31015 referenced_from_other_partition.
31016 (lto_output_ref): New.
31017 (add_references): New.
31018 (output_refs): New.
31019 (output_cgraph): Compute boundary based on references; output refs.
31020 (output_varpool): Accept cgraph_node_set argument.
31023 (input_cgraph): Call input_refs.
31024 * lto-section-in.c (lto_section_name): Add refs.
31025 * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
31026 (ipa-ref.o): New file.
31027 * varpool.c (varpool_node): Clear ipa ref list.
31028 (varpool_remove_node): Remove references.
31029 (dump_varpool_node): Dump references.
31030 (varpool_assemble_decl): Only compile finalized ones.
31031 (varpool_extra_name_alias): Initialize ref list.
31032 * lto-streamer.c (lto-get_section_name): Add .refs section.
31033 * lto-streamer.h (lto_section_type): Add LTO_section_refs.
31034 (referenced_from_other_partition_p): Declared.
31036 2010-05-06 Ira Rosen <irar@il.ibm.com>
31038 PR tree-optimization/43901
31039 * tree-vect-stmts.c (vectorizable_call): Assert that vector
31040 type is not NULL if it's transformation phase, and return
31041 FALSE if it's analysis.
31042 (vectorizable_conversion, vectorizable_operation,
31043 vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
31045 2010-05-05 Andrew Pinski <andrew.pinski@caviumnetworks.com>
31047 * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
31049 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
31051 * config/mips/mips-protos.h
31052 (mips_small_register_classes_for_mode_p): Delete prototype.
31054 2010-05-06 Bernd Schmidt <bernds@codesourcery.com>
31056 * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
31057 * config/arm/arm.c (multiple_operation_profitable_p,
31058 compute_offset_order): New static functions.
31059 (load_multiple_sequence, store_multiple_sequence): Use them.
31060 Replace constant 4 with MAX_LDM_STM_OPS. Compute order[0] from
31061 memory offsets, not register numbers.
31062 (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
31064 2010-05-05 Steven Bosscher <steven@gcc.gnu.org>
31066 * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
31067 (get_pending_sizes, put_pending_size, put_pending_sizes):
31068 Update the uses of pending_sizes.
31069 * c-decl.c (store_parm_decls): Likewise.
31070 * c-tree.h (struct c_arg_info): Likewise.
31071 * tree.h: Update the prototype for get_pending_sizes and
31074 2010-05-05 Jason Merrill <jason@redhat.com>
31077 * c-common.c (handle_aligned_attribute): Respect
31078 ATTR_FLAG_TYPE_IN_PLACE.
31081 * target.h (struct gcc_target): Add attribute_takes_identifier_p.
31082 * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
31083 (TARGET_INITIALIZER): Use it.
31084 * c-common.c (attribute_takes_identifier_p): Call it.
31085 * c-common.h: Update prototype.
31086 * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
31087 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
31089 2010-05-05 Jakub Jelinek <jakub@redhat.com>
31092 * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
31093 DW_ID_down_case for Fortran compilation units.
31095 2010-05-05 Jan Hubicka <jh@suse.cz>
31097 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
31100 2010-05-05 Eric Botcazou <ebotcazou@adacore.com>
31102 * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
31103 a variable-sized RESULT_DECL.
31105 2010-05-05 Maxim Kuvyrkov <maxim@codesourcery.com>
31107 * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
31109 2010-05-05 Jason Merrill <jason@redhat.com>
31112 * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
31114 (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
31116 2010-05-05 Alexandre Oliva <aoliva@redhat.com>
31117 Jakub Jelinek <jakub@redhat.com>
31120 * df-problems.c (struct dead_debug_use, struct dead_debug): New.
31121 (dead_debug_init, dead_debug_finish): New functions.
31122 (dead_debug_add, dead_debug_insert_before): Likewise.
31123 (df_note_bb_compute): Initialize a dead_debug object, add dead
31124 debug uses to it, insert debug bind insns before death insns,
31125 reset debug insns that refer to pending uses at the end.
31126 * rtl.h (make_debug_expr_from_rtl): New prototype.
31127 * varasm.c (make_debug_expr_from_rtl): New function.
31129 2010-05-05 Jan Hubicka <jh@suse.cz>
31131 * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
31132 (lto_varpool_encoder_new, lto_varpool_encoder_delete,
31133 lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
31134 lto_varpool_encoder_deref, lto_varpool_encoder_size,
31135 lto_varpool_encoder_encode_initializer_p,
31136 lto_set_varpool_encoder_encode_initializer): New functions.
31137 (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
31138 call output_varpool.
31139 (input_varpool_node): Do not always set analyzed.
31140 (input_cgraph_1): Return vector of cgraph nodes.
31141 (input_varpool_1): Return vector of varpools.
31142 (input_cgraph): Free the vectors.
31143 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
31144 output only initializers needed.
31145 (lto_output): Only call output_cgraph.
31146 (produce_asm_for_decls): Call lto_varpool_encoder_delete.
31147 * lto-section-out.c (lto_new_out_decl_state): Initialize
31148 state->varpool_node_encoder.
31149 * lto-streamer.h (lto_varpool_encoder_d): New.
31150 (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
31151 (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
31152 (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
31153 lto_varpool_encoder_encode, lto_varpool_encoder_delete,
31154 lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
31156 (output_varpool, input_varpool): Remove declarations.
31158 2010-05-05 Jan Hubicka <jh@suse.cz>
31160 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
31161 with body can prevail.
31163 2010-05-05 Jan Hubicka <jh@suse.cz>
31165 * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
31168 2010-05-05 Laurynas Biveinis <laurynas.biveinis@gmail.com>
31170 * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
31172 * gengtype.h (erro_at_line): Constify pos argument.
31174 * gengtype.c: Include hashtab.h.
31175 (enum gc_used): Document GC_MAYBE_POINTED_TO.
31176 (error_at_line): Constify pos argument.
31177 (do_typedef): Initialize p->opt field.
31178 (get_file_gtfilename): Fix comment typo.
31179 (struct walk_type_data): Constify line field.
31180 (get_output_file_for_structure): New function.
31181 (write_local_func_for_structure): Constify orig_s argument.
31182 Use get_output_file_for_structure.
31183 (write_func_for_structure): Use get_output_file_for_structure.
31184 (INDENT): New define.
31185 (dump_pair, dump_type, dump_type_list, dump_typekind)
31186 (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
31187 (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
31189 (seen_types): New variable.
31190 (main): New variable do_dump. Process "-d" command line option.
31191 Call dump_everything if dump requested.
31193 2010-05-05 Jakub Jelinek <jakub@redhat.com>
31195 * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
31196 in a temporary instead of invoking the macro multiple times.
31197 (track_expr_p): Likewise.
31199 2010-05-04 Neil Vachharajani <nvachhar@google.com>
31201 * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
31203 * opts.c (decode_options): Enable -Werror=coverage-mismatch.
31204 * coverage.c (get_coverage_counts): Always emit a warning. Adjust
31205 conditions for printing notes.
31206 * common.opt (-Wcoverage-mismatch): Allow negative, default to
31207 true, update documentation.
31208 * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
31210 2010-05-04 Jakub Jelinek <jakub@redhat.com>
31213 * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
31216 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
31219 * config/i386/i386.md (sse_prologue_save): Clobber CC register.
31220 (*sse_prologue_save_insn1): Likewise.
31221 (SSE prologue save splitter): Likewise.
31223 2010-05-04 Eric Botcazou <ebotcazou@adacore.com>
31225 * tree.c (free_lang_data_in_one_sizepos): New inline function.
31226 (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
31227 types. Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
31228 (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
31229 all decls. Call it on DECL_FIELD_OFFSET of fields.
31230 (find_decls_types_r): Follow DECL_VALUE_EXPR.
31231 (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
31233 2010-05-04 Martin Jambor <mjambor@suse.cz>
31235 * tree-sra.c (build_access_from_expr_1): The first parameter type
31236 changed to simple tree.
31237 (build_access_from_expr): Likewise, gsi parameter was eliminated.
31238 (scan_assign_result): Renamed to assignment_mod_result, enum elements
31240 (build_accesses_from_assign): Removed all parameters except for a
31241 simple gimple statement. Now returns a simple bool.
31242 (scan_function): All non-analysis parts moved to separate functions
31243 sra_modify_function_body and ipa_sra_modify_function_body. Removed all
31244 parameters and updated both callers.
31245 (sra_modify_expr): Removed parameter data.
31246 (sra_modify_function_body): New function.
31247 (perform_intra_sra): Call sra_modify_function_body to modify the
31249 (replace_removed_params_ssa_names): Parameter data changed into
31250 adjustments vector.
31251 (sra_ipa_modify_expr): Likewise. Also removed unused parameter gsi and
31252 changed the parameter dont_convert to convert with the opposite
31254 (sra_ipa_modify_assign): Parameter data changed into adjustments
31255 vector, return value changed to bool.
31256 (ipa_sra_modify_function_body): New function.
31257 (sra_ipa_reset_debug_stmts): Updated a comment.
31258 (modify_function): Use ipa_sra_modify_function_body to modify function
31261 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
31263 PR middle-end/43671
31264 * alias.c (true_dependence): Handle the same VALUE in x and mem.
31265 (canon_true_dependence): Likewise.
31266 (write_dependence_p): Likewise.
31268 2010-05-04 Jan Hubicka <jh@suse.cz>
31270 * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
31271 * cgraphbuild.c: Include ipa-utils.h
31272 (record_reference_ctx): New struct.
31273 (record_reference): Simplify to work on initializers; not statements.
31274 (mark_address, mark_load, mark_store): New.
31275 (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
31276 walk PHI nodes too.
31277 (record_references_in_initializer): Update use of record_reference.
31278 (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
31279 walk PHI nodes too.
31281 2010-05-04 Jan Hubicka <jh@suse.cz>
31283 * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
31284 node will be removed anyway.
31285 (lto_varpool_replace_node): Allow also unanalyzed nodes;
31286 relink aliases of node into prevailing node.
31287 * varpool.c (varpool_remove_node): Remove aliases properly;
31288 when removing node, remove all its aliases too; remove DECL_INITIAL
31289 of removed node; ggc_free the varpool node.
31291 2010-05-04 Richard Guenther <rguenther@suse.de>
31293 PR tree-optimization/43879
31294 * tree-ssa-structalias.c (alias_get_name): Use
31295 DECL_ASSEMBLER_NAME if available.
31296 (create_function_info_for): Return the varinfo node.
31297 (ipa_pta_execute): Associate same-body aliases and extra names
31298 with their origin nodes varinfo. Dump DECL_ASSEMBLER_NAME.
31300 2010-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
31302 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
31304 2010-05-04 Mikael Pettersson <mikpe@it.uu.se>
31307 * ira-color.c (assign_hard_reg): Declare rclass and add_cost
31308 only if HONOR_REG_ALLOC_ORDER is not defined.
31310 2010-05-04 Richard Guenther <rguenther@suse.de>
31312 PR tree-optimization/43949
31313 * tree-vrp.c (extract_range_from_binary_expr): Only handle
31316 2010-04-26 Jason Merrill <jason@redhat.com>
31318 * c.opt (-fstrict-enums): New.
31319 * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
31321 2010-05-03 David Ung <davidu@mips.com>
31322 James E. Wilson <wilson@codesourcery.com>
31324 * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
31325 emit the trap instruction before the divide for TUNE_74K.
31327 2010-05-03 Steven Bosscher <steven@gcc.gnu.org>
31329 * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
31330 (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
31331 based on the above, for new target hook.
31333 * hooks.c (hook_bool_mode_true): New generic hook.
31334 * hooks.h (hook_bool_mode_true): Add prototype.
31336 * target.h (struct gcc_target): Add small_register_classes_for_mode_p
31338 * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
31339 target hook, set to hook_bool_mode_false.
31340 * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
31341 * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
31342 with targetm.small_register_classes_for_mode_p.
31343 (find_reusable_reload): Likewise.
31344 (combine_reloads): Likewise.
31345 * reload1.c (reload_as_needed): Likewise.
31346 * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
31347 * ifcvt.c (noce_process_if_block, check_cond_move_block,
31348 dead_or_predicable): Likewise.
31349 * regmove.c (optimize_reg_copy_1): Likewise.
31350 * calls.c (prepare_call_address): Likewise.
31351 (precompute_register_parameters): Likewise.
31353 * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
31355 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
31356 implementation of the hook that considers all register classes
31357 small except for SH64.
31358 (sh_override_options): Use the new hook.
31359 * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
31362 * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
31364 * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
31365 implementation of the hook that considers all register classes
31367 * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
31370 * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
31372 * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
31373 implementation of the hook that considers all register classes
31375 * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
31378 * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
31380 * config/m32c/m32c.h: Likewise.
31381 * config/pdp11/pdp11.h: Likewise.
31382 * config/avr/avr.h: Likewise.
31383 * config/xtensa/xtensa.h: Likewise.
31384 * config/m68hc11/m68hc11.h: Likewise.
31385 * config/mn10300/mn10300.h: Likewise.
31386 * config/mcore/mcore.h: Likewise.
31387 * config/h8300/h8300.h: Likewise.
31388 * config/bfin/bfin.h: Likewise.
31390 * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
31391 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
31393 2010-05-03 Anatoly Sokolov <aesok@post.ru>
31395 * double-int.h (tree_to_double_int): Remove macro.
31396 (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
31397 * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
31398 (tree_to_double_int): New function.
31399 * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
31401 * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
31403 2010-05-03 Richard Guenther <rguenther@suse.de>
31405 PR tree-optimization/43971
31406 * tree-ssa-structalias.c (get_constraint_for_1): Fix
31407 constraints in the !flag_delete_null_pointer_checks case.
31409 2010-05-03 Jakub Jelinek <jakub@redhat.com>
31412 * config/i386/i386.c (ix86_delegitimize_address): Make sure the
31413 result mode matches original rtl mode.
31415 2010-05-03 Dave Korn <dave.korn.cygwin@gmail.com>
31418 * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
31420 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
31422 * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
31423 when processing flag options.
31425 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
31427 * gcov-iov.c (main): Change format string placeholder
31428 from %#08x to 0x%08x.
31429 * genchecksum.c (dosum): Change format string placeholder
31430 from %#02x to 0x%02x.
31432 2010-05-02 Richard Guenther <rguenther@suse.de>
31434 PR tree-optimization/43879
31435 * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
31437 2010-05-02 Bruno Haible <bruno@clisp.org>
31439 * doc/extend.texi (Function Attributes): Fix a typo.
31441 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
31444 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
31445 placeholder from 0x%x to %#x.
31446 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
31447 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
31448 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
31449 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
31450 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
31451 * config/i386/i386.c (ix86_target_string): Ditto.
31452 * config/i386/i386.c (output_pic_addr_const): Ditto.
31453 (print_operand): Ditto.
31455 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
31457 * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
31458 placeholder from 0x%x to %#x.
31459 (ASM_OUTPUT_DEBUG_DATA1): Ditto.
31460 (ASM_OUTPUT_DEBUG_DATA4): Ditto.
31461 (ASM_OUTPUT_DEBUG_DATA): Ditto.
31462 (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
31463 (ASM_OUTPUT_DEBUG_DATA8): Ditto.
31464 * optc-gen.awk: Ditto.
31465 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
31466 (HOST_WIDE_INT_PRINT_HEX): Ditto.
31467 (HOST_WIDEST_INT_PRINT_HEX): Ditto.
31468 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
31470 2010-05-01 Anatoly Sokolov <aesok@post.ru>
31472 * target.h (struct calls): Add function_value_regno_p field.
31473 * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
31474 (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
31475 * targhooks.c (default_function_value_regno_p): New function.
31476 * targhooks.h (default_function_value_regno_p): Declare function.
31477 * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
31478 * builtins.c. (apply_result_size): (Ditto.).
31479 * combine.c. (likely_spilled_retval_p): (Ditto.).
31480 * mode-switching.c. Include 'target.h'.
31481 (create_pre_exit): Use function_value_regno_p hook.
31482 * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
31483 * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
31484 TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
31486 * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
31487 * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
31488 (ix86_function_value_regno_p): Declare as static, change argument
31489 type to const unsigned int.
31490 * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
31492 2010-05-01 Richard Guenther <rguenther@suse.de>
31494 PR tree-optimization/43949
31495 * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
31497 (extract_range_from_binary_expr): Handle *_MOD_EXPR.
31499 2010-05-01 Anatoly Sokolov <aesok@post.ru>
31501 * rtl.h (CONST_DOUBLE_P): Define.
31502 (rtx_to_double_int): Declare.
31503 * emit-rtl.c (rtx_to_double_int): New function.
31504 * dwarf2out.c (insert_double): New function.
31505 (loc_descriptor, add_const_value_attribute): Clean up, use
31506 rtx_to_double_int and insert_double functions.
31508 2010-05-01 Jonathan Wakely <jwakely.gcc@gmail.com>
31510 * doc/extend.texi (Inline): Add missing return keyword to examples.
31511 (Function Attributes, Variable Attributes, Pragmas): Hyphenate
31514 2010-04-30 Eric Botcazou <ebotcazou@adacore.com>
31516 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
31517 the variable part of the offset as well. Use highest_pow2_factor for
31518 all alignment checks.
31520 2010-04-30 Richard Guenther <rguenther@suse.de>
31522 PR tree-optimization/43879
31523 * tree-ssa-structalias.c (type_could_have_pointers): Functions
31526 2010-04-30 Jan Hubicka <jh@suse.cz>
31528 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
31530 (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
31532 2010-04-30 Jan Hubicka <jh@suse.cz>
31534 * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
31536 * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
31537 * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
31538 (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
31539 cgraph_node_set_needs_ltrans_p): Remove.
31541 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
31543 * sdbout.c: Include vec.h, do not include varray.h.
31544 (deferred_global_decls, sdbout_global_decl,
31545 sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
31546 * toplev.c: Do not include varray.h.
31547 (dump_memory_report): Do not dump VARRAY statistics.
31548 * gengtype.c (open_base_file): Ignore varray.h.
31549 * Makefile.in: Update for abovementioned changes.
31550 Remove all traces of varray.c and varray.h.
31551 * varray.c: Remove file.
31552 * varray.h: Remove file.
31554 2010-04-30 Jan Hubicka <jh@suse.cz>
31556 * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
31559 2010-04-30 Jan Hubicka <jh@suse.cz>
31561 * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
31564 2010-04-30 Richard Guenther <rguenther@suse.de>
31566 * tree-ssa-structalias.c (get_constraint_for_1): Generate
31567 constraints for CONSTRUCTOR.
31569 2010-04-30 Richard Guenther <rguenther@suse.de>
31572 * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
31573 first after all lowering passes.
31575 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
31577 * toplev.c: Include varray.h for statistics dumping.
31578 * tree.h: Do not declare varray_head_tag.
31579 * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
31580 regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
31581 c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
31582 gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
31583 lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
31584 tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
31585 c-common.c, c-common.h, reg-stack.c, basic-block.h,
31586 tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
31588 * Makefile.in: Update for abovementioned changes.
31590 2010-04-30 Jakub Jelinek <jakub@redhat.com>
31593 * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
31595 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
31597 * config/picochip/picochip.c (picochip_legitimize_address): Define.
31598 Use this function to do machine-specific conversion.
31599 (picochip_legitimize_reload_address): Likewise.
31600 (picochip_legitimate_address_p): Check valid base register only if
31602 (picochip_check_conditional_copy): Check for modw only if opnd is
31604 * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
31605 to call the function in c.
31606 * config/picochip/picochip-protos.h
31607 (picochip_legitimize_reload_address): Define.
31608 * config/picochip/picochip.md (supported_compare1): Define.
31610 2010-04-30 Jan Hubicka <jh@suse.cz>
31612 * cgraph.h (cgraph_local_info): Remove for_functions_valid.
31613 (cgraph_global_info): Remove inlined.
31614 (LTO_cgraph_tag_names): Remove.
31615 (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
31616 * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
31617 simplify cgraph tags and document.
31618 (lto_output_node): Use only LTO_cgraph_unavail_node and
31619 LTO_cgraph_analyzed_node; Do not save analzed, reachable,
31620 for_functions_valid, global info, process and output flags.
31621 (input_overwrite_node): Initialize estimated stack size and
31622 estimated growth. Do not read flags we no longer store.
31623 (input_node): Likewise do not read info no longer stored.
31624 * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
31627 2010-04-30 Richard Guenther <rguenther@suse.de>
31629 PR tree-optimization/43879
31630 * tree-ssa-structalias.c (get_constraint_for_1): Properly
31631 handle non-zero initializers.
31633 2010-04-30 Richard Guenther <rguenther@suse.de>
31635 * builtins.c (fold_builtin_1): Delete free (0).
31637 2010-04-29 Jan Hubicka <jh@suse.cz>
31639 * gengtype.c (open_base_files): Add lto-streamer.h
31640 * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
31641 (pass_ipa_cp): GGC collect.
31642 * toplev. (compile_file): Do not output symbols.
31643 * ipa-inline.c (pass_ipa_inline): Add ggc collect.
31644 * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
31645 TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
31646 * lto-section-in.c: Include ggc.h
31647 (lto_new_in_decl_state): Alloc in GGC.
31648 (lto_delete_in_decl_state): Likewise.
31649 * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
31652 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
31655 * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
31656 ORDER_REGS_FOR_LOCAL_ALLOC. All instances of this macro changed.
31657 (HONOR_REG_ALLOC_ORDER): Describe new macro.
31658 * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
31659 * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
31660 account only if HONOR_REG_ALLOC_ORDER is not defined.
31661 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
31662 * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
31664 2010-04-29 Jon Grant <04@jguk.org>
31666 * collect2.c (vflag): Change type from int to bool.
31668 (helpflag): New global bool.
31669 (main): Set vflag and debug with boolean, not integer truth values.
31670 Accept new "--help" option and output usage text if found.
31671 * collect2.h (vflag): Update prototype.
31674 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
31677 * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
31679 2010-04-29 Richard Guenther <rguenther@suse.de>
31682 * plugin.h (invoke_plugin_callbacks): Annotate arguments
31683 with ATTRIBUTE_UNUSED.
31685 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
31688 * config/i386/i386.c (get_some_local_dynamic_name): Replace
31689 INSN_P with NONDEBUG_INSN_P.
31690 (distance_non_agu_define): Likewise.
31691 (distance_agu_use): Likewise.
31693 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
31695 From Dominique d'Humieres <dominiq@lps.ens.fr>
31697 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
31700 2010-04-29 Brian Hackett <bhackett1024@gmail.com>
31702 * plugin.h (invoke_plugin_callbacks): New inline function.
31703 * plugin.c (flag_plugin_added): New global flag.
31704 (add_new_plugin): Initialize above flag.
31705 (invoke_plugin_callbacks): Rename to ...
31706 (invoke_plugin_callbacks_full): ... this.
31708 2010-04-28 Jan Hubicka <jh@suse.cz>
31710 * lto-symtab.c (lto_symtab_entry_def) Add vnode.
31711 (lto_varpool_replace_node): New.
31712 (lto_symtab_resolve_symbols): Resolve varpool nodes.
31713 (lto_symtab_merge_decls_1): Prefer decls with varpool node.
31714 (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
31715 * cgraph.h (varpool_node_ptr): New type.
31716 (varpool_node_ptr): New vector.
31717 (varpool_node_set_def): New structure.
31718 (varpool_node_set): New type.
31719 (varpool_node_set): New vector.
31720 (varpool_node_set_element_def): New structure.
31721 (varpool_node_set_element, const_varpool_node_set_element): New types.
31722 (varpool_node_set_iterator): New type.
31723 (varpool_node): Add prev pointers, add used_from_other_partition,
31724 in_other_partition.
31725 (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
31726 varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
31727 varpool_get_node, varpool_remove_node): Declare.
31728 (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
31729 varpool_node_set_size): New inlines.
31730 * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
31731 * tree-pass.h (varpool_node_set_def): Forward declare.
31732 (ipa_opt_pass_d): Summary writting takes vnode sets too.
31733 (ipa_write_optimization_summaries): Update prototype.
31734 * ipa-cp.c (ipcp_write_summary): Update.
31735 * ipa-reference.c (ipa_reference_write_summary): Update.
31736 * lto-cgraph.c (lto_output_varpool_node): New static function.
31737 (output_varpool): New function.
31738 (input_varpool_node): New static function.
31739 (input_varpool_1): New function.
31740 (input_cgraph): Input varpool.
31741 * ipa-pure-const.c (pure_const_write_summary): Update.
31742 * lto-streamer-out.c (lto_output): Update, output varpool too.
31743 (write_global_stream): Kill WPA hack.
31744 (produce_asm_for_decls): Update.
31745 (output_alias_pair_p): Handle variables.
31746 (output_unreferenced_globals): Output only needed partition of varpool.
31747 * ipa-inline.c (inline_write_summary): Update.
31748 * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
31750 * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
31751 * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
31752 varpool_node_set_new, varpool_node_set_add,
31753 varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
31754 debug_varpool_node_set): New functions.
31755 * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
31756 (execute_one_pass): Process new decls too.
31757 (ipa_write_summaries_2): Pass around vsets.
31758 (ipa_write_summaries_1): Likewise.
31759 (ipa_write_summaries): Build vset; be more selective about cgraph nodes
31761 (ipa_write_optimization_summaries_1): Pass around vsets.
31762 (ipa_write_optimization_summaries): Likewise.
31763 * varpool.c (varpool_get_node): New.
31764 (varpool_node): Update doubly linked lists.
31765 (varpool_remove_node): New.
31766 (dump_varpool_node): More dumping.
31767 (varpool_enqueue_needed_node): Update doubly linked lists.
31768 (decide_is_variable_needed): Kill ltrans hack.
31769 (varpool_finalize_decl): Kill lto hack.
31770 (varpool_assemble_decl): Skip decls in other partitions.
31771 (varpool_assemble_pending_decls): Update doubly linkes lists.
31772 (varpool_empty_needed_queue): Likewise.
31773 (varpool_extra_name_alias): Likewise.
31774 * lto-streamer.c (lto_get_section_name): Add vars section.
31775 * lto-streamer.h (lto_section_type): Update.
31776 (output_varpool, input_varpool): Declare.
31778 2010-04-28 Mike Stump <mikestump@comcast.net>
31780 * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
31782 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
31784 * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
31785 record or union type with RECORD_OR_UNION_TYPE_P predicate.
31786 (lto_input_ts_type_tree_pointers): Likewise.
31787 * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
31788 (lto_output_ts_type_tree_pointers): Likewise.
31790 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
31792 Uniquization of constants at the Tree level
31793 * tree.h (DECL_IN_CONSTANT_POOL): New macro.
31794 (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
31796 (tree_output_constant_def): Declare.
31797 * gimplify.c (gimplify_init_constructor): When using block copy, first
31798 uniquize the constant constructor on the RHS.
31799 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
31800 DECL_IN_CONSTANT_POOL flag.
31801 * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
31802 * varasm.c (make_decl_rtl): Deal with variables belonging to the global
31804 (assemble_variable): Deal with symbols belonging to the tree constant
31806 (get_constant_section): Add ALIGN parameter and simplify.
31807 (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
31808 (assemble_constant_contents): Use the expression of the VAR_DECL.
31809 (output_constant_def_contents): Use the alignment of the VAR_DECL.
31810 (tree_output_constant_def): New global function.
31811 (mark_constant): Use the expression of the VAR_DECL.
31812 (place_block_symbol): Use the alignment of the VAR_DECL and the size of
31814 (output_object_block): Likewise and assemble the expression.
31816 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
31818 * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
31819 hash_tree, eq_tree): New tree hash table.
31820 (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
31821 [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
31822 lto_orig_address_remove): Reimplement.
31824 2010-04-28 Xinliang David Li <davidxl@google.com>
31827 * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
31828 (compute_uninit_opnds_pos): New function.
31829 (is_non_loop_exit_postdominating): New function.
31830 (compute_control_dep_chain): New function.
31831 (find_pdom): New function.
31832 (convert_control_dep_chain_into_preds): New function.
31833 (find_predicates): New function.
31834 (find_control_equiv_block): New function.
31835 (collect_phi_def_edges): New function.
31836 (find_def_preds): New function.
31837 (find_dom): New function.
31838 (dump_predicates): New function.
31839 (get_cmp_code): New function.
31840 (is_value_included_in): New function.
31841 (find_matching_predicate_in_rest_chains): New function.
31842 (use_pred_not_overlap_with_undef_path_pred): New function.
31843 (is_use_properly_guarded): New function.
31844 (normalize_cond_1): New function.
31845 (is_and_or_or): New function.
31846 (normalize_cond): New function.
31847 (is_gcond_subset_of): New function.
31848 (is_subset_of_any): New function.
31849 (is_or_set_subset_of): New function.
31850 (is_and_set_subset_of): New function.
31851 (is_norm_cond_subset_of): New function.
31852 (is_pred_expr_subset_of): New function.
31853 (is_pred_chain_subset_of): New function.
31854 (is_included_in): New function.
31855 (is_superset_of): New function.
31856 (find_uninit_use): New function.
31857 (warn_uninitialized_phi): New function.
31858 (compute_possibly_undefined_names): New function.
31859 (ssa_undefined_value_p): New function.
31860 (execute_late_warn_uninitialized): New function.
31861 * tree-ssa.c (ssa_undefined_value_p): Removed.
31862 (warn_uninit): Changed to extern.
31863 (warn_uninitialized_phi): Removed.
31864 (warn_uninitialized_vars): Changed to extern.
31865 (execute_late_warn_uninitialized): Removed
31866 * tree-flow.h: Add new prototypes.
31867 * timevar.def: Add new time variable.
31868 * Makefile.in: Add new build file.
31870 2010-04-28 Uros Bizjak <ubizjak@gmail.com>
31872 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
31875 2010-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31878 * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
31880 2010-04-28 Martin Jambor <mjambor@suse.cz>
31882 * cgraph.h (struct cgraph_node): New field indirect_calls.
31883 (struct cgraph_indirect_call_info): New type.
31884 (struct cgraph_edge): Removed field indirect_call. New fields
31885 indirect_info, indirect_inlining_edge and indirect_unknown_callee.
31886 (cgraph_create_indirect_edge): Declare.
31887 (cgraph_make_edge_direct): Likewise.
31888 (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
31889 * ipa-prop.h (struct ipa_param_call_note): Removed.
31890 (struct ipa_node_params): Removed field param_calls.
31891 (ipa_create_all_structures_for_iinln): Declare.
31892 * cgraph.c: Described indirect edges and uids in initial comment.
31893 (cgraph_add_edge_to_call_site_hash): New function.
31894 (cgraph_edge): Search also among the indirect edges, use
31895 cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
31896 (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
31897 one, use cgraph_add_edge_to_call_site_hash to add edges to the call
31899 (initialize_inline_failed): Assign a reason to indirect edges.
31900 (cgraph_create_edge_1): New function.
31901 (cgraph_create_edge): Moved some functionality to
31902 cgraph_create_edge_1.
31903 (cgraph_create_indirect_edge): New function.
31904 (cgraph_edge_remove_callee): Add an assert checking for
31906 (cgraph_edge_remove_caller): Special-case indirect edges.
31907 (cgraph_remove_edge): Likewise.
31908 (cgraph_set_edge_callee): New function.
31909 (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
31910 (cgraph_make_edge_direct): New function.
31911 (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
31912 the declaration of the call statement matches.
31913 (cgraph_node_remove_callees): Special-case indirect edges.
31914 (cgraph_clone_edge): Likewise.
31915 (cgraph_clone_node): Clone also the indirect edges.
31916 (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
31917 indirect_call, dump count of indirect_calls edges.
31918 * ipa-prop.c (iinlining_processed_edges): New variable.
31919 (ipa_note_param_call): Create indirect edges instead of
31920 creating notes. New parameter node.
31921 (ipa_analyze_call_uses): New parameter node, pass it on to
31922 ipa_note_param_call.
31923 (ipa_analyze_stmt_uses): Likewise.
31924 (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
31925 (print_edge_addition_message): Work on edges rather than on notes.
31926 (update_call_notes_after_inlining): Likewise, renamed to
31927 update_indirect_edges_after_inlining.
31928 (ipa_create_all_structures_for_iinln): New function.
31929 (ipa_free_node_params_substructures): Do not free notes.
31930 (ipa_edge_duplication_hook): Propagate bits within
31931 iinlining_processed_edges bitmap.
31932 (ipa_node_duplication_hook): Do not duplicate notes.
31933 (free_all_ipa_structures_after_ipa_cp): Renamed to
31934 ipa_free_all_structures_after_ipa_cp.
31935 (free_all_ipa_structures_after_iinln): Renamed to
31936 ipa_free_all_structures_after_iinln.
31937 (ipa_write_param_call_note): Removed.
31938 (ipa_read_param_call_note): Removed.
31939 (ipa_write_indirect_edge_info): New function.
31940 (ipa_read_indirect_edge_info): Likewise.
31941 (ipa_write_node_info): Do not stream notes, do stream information
31943 (ipa_read_node_info): Likewise.
31944 (lto_ipa_fixup_call_notes): Removed.
31945 * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
31946 * ipa-inline.c (pass_ipa_inline): Likewise.
31947 * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
31948 * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
31949 * tree-inline.c (copy_bb): Removed an unnecessary double check for
31951 * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
31953 * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
31954 (output_cgraph): Stream also indirect edges.
31955 (lto_output_edge): Added capability to stream indirect edges.
31956 (input_edge): Likewise.
31957 (input_cgraph_1): Likewise.
31958 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
31961 2010-04-28 Richard Guenther <rguenther@suse.de>
31963 PR tree-optimization/43879
31964 PR tree-optimization/43909
31965 * tree-ssa-structalias.c (struct variable_info): Add
31966 only_restrict_pointers flag.
31967 (new_var_info): Initialize it. Increment stats.total_vars here.
31968 (create_function_info_for): Do not increment stats.total_vars here.
31969 (get_function_part_constraint): Fix build with C++.
31970 (insert_into_field_list): Remove.
31971 (push_fields_onto_fieldstack): Properly merge fields.
31972 (create_variable_info_for): Split and simplify.
31973 (create_variable_info_for_1): New piece.
31974 (intra_create_variable_infos): Properly make restrict constraints
31977 2010-04-28 Richard Guenther <rguenther@suse.de>
31980 * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
31982 2010-04-27 Manuel López-Ibáñez <manu@gcc.gnu.org>
31983 Jan Hubicka <hubicka@ucw.cz>
31985 * doc/invoke.texi (-Wsuggest-attribute=const,
31986 -Wsuggest-attribute=pure): Document.
31987 * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
31988 (function_always_visible_to_compiler_p,
31989 suggest_attribute, warn_function_pure, warn_function_const):
31991 (check_call): Improve debug info.
31992 (analyze_function): Do not check availability.
31993 (add_new_function): Check availability.
31994 (propagate): Output warnings.
31995 (skip_function_for_local_pure_const): New function.
31996 (local_pure_const): Use it; output warnings.
31997 * common.opt (Wsuggest-attribute=const,
31998 Wsuggest-attribute=pure): New.
32000 2010-04-27 Jakub Jelinek <jakub@redhat.com>
32002 * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
32003 force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
32004 or DW_CFA_def_cfa_offset{,_sf}.
32006 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
32008 * tree.h: Fix truncated long macros.
32010 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
32012 * collect2.c (TARGET_64BIT): Redefine to target's default.
32013 * tlink.c: Likewise.
32014 * config/i386/cygming.h (USER_LABEL_PREFIX): Define
32015 dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
32016 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
32017 for underscoring __USER_LABEL_PREFIX__.
32018 * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
32019 (SUB_LINK_ENTRY32): New.
32020 (SUB_LINK_ENTRY64): New.
32021 (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
32022 * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
32023 (SUB_LINK_ENTRY64): New.
32024 (SUB_LINK_ENTRY): New.
32025 (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
32026 (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
32027 x64 target is choosen.
32028 * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
32029 * configure: Regenerated.
32030 * configure.ac (leading-mingw64-underscores): Option added.
32032 2010-04-27 Jan Hubicka <jh@suse.cz>
32034 * doc/invoke.texi (-fipa-profile): Document.
32035 * opts.c (decode_options): Enable ipa-profile at -O1.
32036 * timevar.def (TV_IPA_PROFILE): Define.
32037 * common.opt (fipa-profile): Add.
32038 * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
32040 (cgraph_propagate_frequency): Handle only local ones.
32041 * tree-pass.h (pass_ipa_profile): Declare.
32042 * ipa-profile.c (gate_profile): Use flag_ipa_profile.
32043 (pass_ipa_profile): Use TV_IPA_PROFILE.
32044 * ipa.c (ipa_profile): New function.
32045 (gate_ipa_profile): Likewise.
32046 (pass_ipa_profile): New global variable.
32047 * passes.c (pass_ipa_profile): New.
32049 2010-04-27 Nathan Froyd <froydnj@codesourcery.com>
32051 * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
32053 2010-04-27 Martin Jambor <mjambor@suse.cz>
32055 PR middle-end/43812
32056 * ipa.c (dissolve_same_comdat_group_list): New function.
32057 (function_and_variable_visibility): Call
32058 dissolve_same_comdat_group_list when comdat group contains external or
32060 * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
32061 lists are circular and that they contain only DECL_ONE_ONLY nodes.
32063 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
32065 * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
32066 (const_hash_1) <VECTOR_CST>: New case.
32067 (compare_constant) <VECTOR_CST>: Likewise.
32068 <ADDR_EXPR>: Deal with LABEL_REFs.
32069 (copy_constant) <VECTOR_CST>: New case.
32071 2010-04-27 Jan Hubicka <jh@suse.cz>
32073 * cgraph.c (cgraph_propagate_frequency): New function.
32074 * cgraph.h (cgraph_propagate_frequency): Declare.
32075 * ipa-inline.c (cgraph_clone_inlined_nodes): Call
32076 cgraph_propagate_frequency.
32078 2010-04-27 Jakub Jelinek <jakub@redhat.com>
32080 * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
32082 2010-04-27 Bernd Schmidt <bernds@codesourcery.com>
32085 * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
32086 (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
32087 here to determine which regs to push and how much stack to reserve.
32089 2010-04-27 Jie Zhang <jie@codesourcery.com>
32091 * doc/gimple.texi (gimple_statement_with_ops): Remove
32092 addresses_taken field.
32093 (gimple_statement_with_memory_ops): Likewise.
32095 2010-04-27 Jan Hubicka <jh@suse.cz>
32097 * tree-inline.c (eni_inlining_weights): Remove.
32098 (estimate_num_insns): Special case more builtins.
32100 2010-04-27 Shujing Zhao <pearly.zhao@oracle.com>
32103 * c-typeck.c (build_binary_op): Move forward check for comparison
32104 pointer with null pointer constant and adjust the diagnostic message.
32106 2010-04-27 Dave Korn <dave.korn.cygwin@gmail.com>
32109 * configure.ac (gcc_cv_as_section_has_align): Set if installed
32110 binutils supports extended .section directive needed by LTO, or
32111 warn if older binutils found.
32112 (LTO_BINARY_READER): New AC_SUBST'd variable.
32113 (LTO_USE_LIBELF): Likewise.
32114 * config.gcc (lto_binary_reader): New target-specific configure
32116 * Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
32117 (LTO_USE_LIBELF): Likewise.
32118 * configure: Regenerate.
32120 * collect2.c (is_elf): Rename from this ...
32121 (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
32122 object files in addition to ELF-formatted ones.
32123 (scan_prog_file): Caller updated. Also allow for LTO info marker
32124 symbol to be prefixed or not by an extra underscore.
32126 * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
32127 * config/i386/winnt.c: Also #include lto-streamer.h
32128 (i386_pe_asm_named_section): Specify 1-byte section alignment for
32129 LTO named sections.
32130 (i386_pe_asm_output_aligned_decl_common): Add comment.
32131 (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
32133 2010-04-27 Hans-Peter Nilsson <hp@bitrange.com>
32136 * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
32137 Add missing earlyclobber for second alternative.
32139 2010-04-26 Bernd Schmidt <bernds@codesourcery.com>
32141 * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
32142 bits for artificial defs at the top of the block.
32143 * fwprop.c (single_def_use_enter_block): Don't call it.
32145 2010-04-26 Jack Howarth <howarth@bromo.med.uc.edu>
32148 * configure.ac: Use "$gcc_cv_nm -g" on darwin
32149 instead of "$gcc_cv_objdump -T".
32150 Use "-undefined dynamic_lookup" on darwin.
32151 * configure: Regenerate.
32153 2010-04-26 Jakub Jelinek <jakub@redhat.com>
32156 * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
32158 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
32160 * c-parser.c (struct c_token): Move location field up.
32161 * c-tree.h (struct c_typespec): Move expr_const_operands field up.
32162 (struct c_declspecs): Convert typespec_word, storage_class, and
32163 default_int_p into bitfields.
32164 (struct c_declarator): Move loc field up.
32166 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
32168 * cfgloop.h (struct loop): Move can_be_parallel field up.
32169 * ipa-prop.h (struct ip_node_params): Move bitfields up.
32170 * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
32172 (struct iv_cand): Convert pos field into a bitfield.
32173 * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
32175 (struct _stmt_vec_info): Shuffle fields for better packing.
32177 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
32179 * varasm.c (IN_NAMED_SECTION): Remove guard.
32180 * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
32181 (IN_NAMED_SECTION_P): ...this.
32182 (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
32183 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
32185 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
32187 * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
32188 Use VOID_TYPE_P for all void type tests. Adjust TYPE variable instead
32189 of shadowing it. Fix comments.
32191 2010-04-26 Jan Hubicka <jh@suse.cz>
32193 * cgraph.c (cgraph_create_node): Set node frequency to normal.
32194 (cgraph_clone_node): Copy function frequency.
32195 * cgraph.h (node_frequency): New enum
32196 (struct cgraph_node): Add.
32197 * final.c (rest_of_clean_state): Update.
32198 * lto-cgraph.c (lto_output_node): Output node frequency.
32199 (input_overwrite_node): Input node frequency.
32200 * tre-ssa-loop-ivopts (computation_cost): Update.
32201 * lto-streamer-out.c (output_function): Do not output function
32203 * predict.c (maybe_hot_frequency_p): Update and handle functions
32205 (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
32207 (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
32208 (compute_function_frequency): Set noreturn functions to be executed
32210 (choose_function_section): Update.
32211 * lto-streamer-in.c (input_function): Do not input function frequency.
32212 * function.c (allocate_struct_function): Do not initialize function
32214 * function.h (function_frequency): Remove.
32215 (struct function): Remove function frequency.
32216 * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
32217 (try_update): Update.
32218 * tree-inline.c (initialize_cfun): Do not update function frequency.
32219 * passes.c (pass_init_dump_file): Update.
32220 * i386.c (ix86_compute_frame_layout): Update.
32221 (ix86_pad_returns): Update.
32223 2010-04-26 Jie Zhang <jie@codesourcery.com>
32225 PR tree-optimization/43833
32226 * tree-vrp.c (range_int_cst_p): New.
32227 (range_int_cst_singleton_p): New.
32228 (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
32229 when both operands are constants. Use range_int_cst_p in
32232 2010-04-26 Jan Hubicka <jh@suse.cz>
32234 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
32236 2010-04-26 Richard Guenther <rguenther@suse.de>
32239 * gimple.c (gimple_decl_printable_name): Deal gracefully
32240 with a NULL DECL_NAME.
32242 2010-04-26 Richard Guenther <rguenther@suse.de>
32245 * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
32246 if emitting debug information and it is either a function
32247 or a namespace decl.
32249 2010-04-26 Ira Rosen <irar@il.ibm.com>
32251 * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
32252 determine if the statement is vectorizable, and a macro to access it.
32253 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
32254 Skip statements that can't be vectorized. If the analysis fails,
32255 mark the statement as unvectorizable if vectorizing basic block.
32256 (vect_compute_data_refs_alignment): Likewise.
32257 (vect_verify_datarefs_alignment): Skip statements marked as
32258 unvectorizable. Add print.
32259 (vect_analyze_group_access): Skip statements that can't be
32260 vectorized. If the analysis fails, mark the statement as
32261 unvectorizable if vectorizing basic block.
32262 (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
32263 * tree-vect-stmts.c (vectorizable_store): Fix the number of
32264 generated stmts for SLP.
32265 (new_stmt_vec_info): Initialize the new field.
32266 * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
32267 statements marked as unvectorizable.
32269 2010-04-25 Joseph Myers <joseph@codesourcery.com>
32271 * c-common.c (flag_isoc1x): New.
32272 (flag_isoc99): Update comment.
32273 * c-common.h (flag_isoc1x): New.
32274 (flag_isoc99): Update comment.
32275 * c-cppbuiltin.c (builtin_define_float_constants): Also define
32276 __<type>_DECIMAL_DIG__.
32277 * c-opts.c (set_std_c1x): New.
32278 (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
32279 (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
32280 * c.opt (-std=c1x, -std=gnu1x): New options.
32281 * doc/cpp.texi: Mention -std=c1x.
32282 * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
32283 * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
32284 * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
32285 * doc/standards.texi: Mention C1X.
32286 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
32287 LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
32288 LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
32291 2010-04-25 Uros Bizjak <ubizjak@gmail.com>
32293 * config/i386/gmon-sol2.c (_mcleanup): Change format string
32294 placeholder from 0x%x to %#x.
32295 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
32296 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
32297 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
32298 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
32299 * config/i386/i386.c (ix86_target_string): Ditto.
32300 (output_pic_addr_const): Ditto.
32301 (print_operand): Ditto.
32303 2010-04-25 Paolo Bonzini <bonzini@gnu.org>
32305 * combine.c (find_split_point): Add third argument. Use it
32306 to find nested multiply-accumulate instructions. Adjust calls.
32307 (try_combine): Adjust call to find_split_point.
32309 2010-04-24 Gerald Pfeifer <gerald@pfeifer.com>
32311 * doc/contrib.texi (Contributors): Add Dodji Seketeli.
32313 2010-04-24 Bernd Schmidt <bernds@codesourcery.com>
32315 PR tree-optimization/41442
32316 * fold-const.c (merge_truthop_with_opposite_arm): New function.
32317 (fold_binary_loc): Call it.
32319 2010-04-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
32321 * toplev.c (general_init): Set default for fdiagnostics-show-option.
32322 * opts.c (common_handle_option): Allow disabling it.
32323 * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
32325 2010-04-23 Eric Botcazou <ebotcazou@adacore.com>
32327 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
32328 between modes if both types are integral.
32330 2010-04-23 Richard Guenther <rguenther@suse.de>
32332 PR tree-optimization/43572
32333 * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
32335 2010-04-23 Richard Guenther <rguenther@suse.de>
32338 * tree-inline.c (tree_can_inline_p): Also check compatibility
32341 2010-04-23 Martin Jambor <mjambor@suse.cz>
32343 PR tree-optimization/43846
32344 * tree-sra.c (struct access): New flag grp_assignment_read.
32345 (build_accesses_from_assign): Set grp_assignment_read.
32346 (sort_and_splice_var_accesses): Propagate grp_assignment_read.
32347 (enum mark_read_status): New type.
32348 (analyze_access_subtree): Propagate grp_assignment_read, create
32349 accesses also if both direct_read and root->grp_assignment_read.
32351 2010-04-23 Martin Jambor <mjambor@suse.cz>
32353 PR middle-end/43835
32354 * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
32355 function does not have type attributes.
32357 2010-04-23 Richard Guenther <rguenther@suse.de>
32360 * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
32363 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
32365 * sese.h (create_if_region_on_edge): Remove.
32367 * sese.c (create_if_region_on_edge): Make static.
32369 * tree-inline.c: Do not include ggc.h.
32371 * expr.c: Do not include ggc.h.
32373 * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
32376 2010-04-22 Kaz Kojima <kkojima@gcc.gnu.org>
32379 * config/sh/sh.c (find_barrier): Don't emit a constant pool
32380 in the middle of insns for casesi_worker_2.
32382 2010-04-22 David Edelsohn <edelsohn@gnu.org>
32384 * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
32386 2010-04-22 Ira Rosen <irar@il.ibm.com>
32388 PR tree-optimization/43842
32389 * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
32390 loop unrolling in update of exit phis. Fix comment.
32391 * tree-vect-slp.c (vect_analyze_slp): Check that there are at
32392 least two reduction statements in the loop before starting SLP
32395 2010-04-22 Nick Clifton <nickc@redhat.com>
32397 * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
32399 2010-04-22 Alexander Monakov <amonakov@ispras.ru>
32401 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
32402 to simplify a + ~a.
32404 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
32406 * tree-parloops.c (loop_parallel_p): New argument
32407 parloop_obstack. Pass it down.
32408 (parallelize_loops): New variable parloop_obstack. Initialize it,
32409 pass it down, free it.
32411 * tree-loop-linear.c (linear_transform_loops): Pass down
32414 * tree-data-ref.h (lambda_compute_access_matrices): New argument
32415 of type struct obstack *.
32417 * tree-data-ref.c (analyze_subscript_affine_affine): New variable
32418 scratch_obstack. Initialize it, pass down, free it.
32420 * lambda.h (lambda_loop_new): Remove.
32421 (lambda_matrix_new, lambda_matrix_inverse)
32422 (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
32423 argument of type struct obstack *.
32425 * lambda-trans.c (lambda_trans_matrix_new): New argument
32426 lambda_obstack. Pass it down, use obstack allocation for ret.
32427 (lambda_trans_matrix_inverse): New argument lambda_obstack. Pass
32430 * lambda-mat.c (lambda_matrix_get_column)
32431 (lambda_matrix_project_to_null): Remove.
32432 (lambda_matrix_new): New argument lambda_obstack. Use obstack
32433 allocation for mat.
32434 (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
32437 * lambda-code.c (lambda_loop_new): New function.
32438 (lambda_lattice_new, compute_nest_using_fourier_motzkin)
32439 (lambda_compute_auxillary_space, lambda_compute_target_space)
32440 (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
32441 (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
32442 (build_access_matrix): New argument lambda_obstack. Use obstack
32444 (lambda_compute_step_signs, lambda_compute_access_matrices): New
32445 argument lambda_obstack. Pass it down.
32447 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
32449 * optabs.h (expand_widening_mult): Declare.
32451 2010-04-22 Richard Guenther <rguenther@suse.de>
32453 PR tree-optimization/43845
32454 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
32455 lookup the CALL_EXPR function and arguments.
32457 2010-04-22 Nick Clifton <nickc@redhat.com>
32459 * config/stormy16/stormy16.c
32460 (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
32461 * config/stormy16/stormy16.h: Tidy up formatting.
32462 (DONT_USE_BUILTIN_SETJMP): Remove definition.
32463 * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
32464 (ineqbranchsi): Delete pattern.
32465 * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
32466 * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
32467 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
32468 stormy16-lib2-ucmpsi2.c.
32470 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
32472 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
32473 df_simulate_find_noclobber_defs as appropriate. Keep track of an
32474 extra set merge_set_noclobber, and use it to relax the final test
32476 * df.h (df_simulate_find_noclobber_defs): Declare.
32477 * df-problems.c (df_simulate_find_defs): Don't ignore partial or
32479 (df_simulate_find_noclobber_defs): New function.
32481 2010-04-22 Uros Bizjak <ubizjak@gmail.com>
32483 * config/i386/i386.md: Use {} around multi-line preparation statements.
32485 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
32487 * c-tree.h (push_init_level, pop_init_level, set_init_index)
32488 (process_init_element): New argument of type struct obstack *.
32490 * c-typeck.c (push_init_level, pop_init_level, set_designator)
32491 (set_init_index, set_init_label, set_nonincremental_init)
32492 (set_nonincremental_init_from_string, find_init_member)
32493 (output_init_element, output_pending_init_elements)
32494 (process_init_element): New argument braced_init_obstack. Pass it
32496 (push_range_stack, add_pending_init): New argument
32497 braced_init_obstack. Use obstack allocation.
32499 * c-parser.c (c_parser_initelt, c_parser_initval): New argument
32500 braced_init_obstack. Pass it down.
32501 (c_parser_braced_init): New variables ret, braced_init_obstack.
32502 Initialize obstack, pass it down and finally free it.
32504 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
32506 PR middle-end/29274
32507 * tree-pass.h (pass_optimize_widening_mul): Declare.
32508 * tree-ssa-math-opts.c (execute_optimize_widening_mul,
32509 gate_optimize_widening_mul): New static functions.
32510 (pass_optimize_widening_mul): New.
32511 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
32512 <case MULT_EXPR>: Remove support for widening multiplies.
32513 * tree.def (WIDEN_MULT_EXPR): Tweak comment.
32514 * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
32515 simplify_gen_unary rather than directly building extensions.
32516 * tree-cfg.c (verify_gimple_assign_binary): Add tests for
32518 * expmed.c (expand_widening_mult): New function.
32519 * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
32521 2010-04-21 Jan Hubicka <jh@suse.cz>
32523 * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
32524 * lto-section-in.c (lto_section_name): Remove wpa_fixup.
32525 * lto-wpa-fixup.c: Remove.
32526 * Makefile.in (lto-wpa-fixup.o): Remove.
32527 * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
32528 (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
32529 * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
32531 2010-04-21 Jan Hubicka <jh@suse.cz>
32533 * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
32534 add write_optimization_summary, read_optimization_summary.
32535 (ipa_write_summaries_of_cgraph_node_set): Remove.
32536 (ipa_write_optimization_summaries): Declare.
32537 (ipa_read_optimization_summaries): Declare.
32538 * ipa-cp.c (pass_ipa_cp): Update.
32539 * ipa-reference.c (pass_ipa_reference): Update.
32540 * ipa-pure-const.c (pass_ipa_pure_const): Update.
32541 * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
32543 * ipa-inline.c (pass_ipa_inline): Update.
32544 * ipa.c (pass_ipa_whole_program): Update.
32545 * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
32546 * passes.c (ipa_write_summaries_1): Do not test wpa.
32547 (ipa_write_optimization_summaries_1): New.
32548 (ipa_write_optimization_summaries): New.
32549 (ipa_read_summaries): Do not test ltrans.
32550 (ipa_read_optimization_summaries_1): New.
32551 (ipa_read_optimization_summaries): New.
32553 2010-04-21 Jan Hubicka <jh@suse.cz>
32555 * lto-cgraph.c (lto_output_node): Do not output comdat groups
32556 for boundary nodes.
32557 (output_cgraph): Do not arrange comdat groups for boundary nodes.
32559 2010-04-21 Jakub Jelinek <jakub@redhat.com>
32562 * dwarf2out.c (add_name_and_src_coords_attributes): Add
32563 DW_AT_{,MIPS_}linkage_name even for Fortran decls.
32565 2010-04-21 Jan Hubicka <jh@suse.cz>
32567 * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
32569 2010-04-21 Jan Hubicka <jh@suse.cz>
32571 * varpool.c (decide_is_variable_needed): Variable is always needed
32574 2010-04-21 Jan Hubicka <jh@suse.cz>
32576 * opts.c (decode_options): Enable pure-const pass for whopr.
32578 2010-04-21 Jan Hubicka <jh@suse.cz>
32580 * cgraph.c (dump_cgraph_node): Dump also assembler name.
32581 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
32583 (cgraph_decide_inlining): Do not expect callee to be removed in all
32586 2010-04-21 Eric B. Weddington <eric.weddington@atmel.com>
32588 * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
32590 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
32592 * config/i386/i386.md (x86_shrd): Add athlon_decode and
32593 amdfam10_decode attributes.
32595 2010-04-21 Jakub Jelinek <jakub@redhat.com>
32597 PR middle-end/43570
32598 * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
32599 OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
32600 (lower_copyprivate_clauses): Use private var in outer
32601 context instead of original var. Make sure the types
32602 are correct for VLAs.
32604 2010-04-21 Richard Guenther <rguenther@suse.de>
32606 * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
32607 to non-pointer objects.
32609 2010-04-21 Jakub Jelinek <jakub@redhat.com>
32611 * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument. Drop
32612 last chain entry if it starts with the still current label.
32613 (add_location_or_const_value_attribute): Check that
32614 loc_list->first->next is NULL instead of comparing ->first with ->last.
32615 (dwarf2out_var_location): Pass last_label resp. last_postcall_label
32616 to add_var_loc_to_decl.
32618 * dwarf2out.c (output_call_frame_info): For dw_cie_version
32619 >= 4 add also address size and segment size fields into CIE header.
32621 * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
32622 long as address size is the same as sizeof (void *) and
32624 * unwind-dw2-fde.c (get_cie_encoding): Likewise. If
32625 address size or segment size is unexpected, return DW_EH_PE_omit.
32626 (classify_object_over_fdes): If get_cie_encoding returned
32627 DW_EH_PE_omit, return -1.
32628 (init_object): If classify_object_over_fdes returned -1,
32629 pretend there were no FDEs at all.
32631 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
32633 * config/i386/i386.md (bswap<mode>2): Macroize expander from
32634 bswap{si,di}2 using SWI48 mode iterator.
32635 (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
32636 SWI48 mode iterator. Set type attribute of bswap insn to bitmanip,
32637 set modrm attribute of bswap insn to 0 and remove length attribute.
32638 (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
32639 iterator. Set type attribute to bitmanip, set modrm attribute to 0,
32640 set mode attribute to <MODE> and remove length attribute.
32642 2010-04-20 James E. Wilson <wilson@codesourcery.com>
32644 PR rtl-optimization/43520
32645 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
32646 zero available registers.
32648 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
32650 * builtins.c (fold_builtin_cproj): Fold more cases.
32652 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
32654 * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
32655 (fold_builtin_1): Fold builtin cproj.
32656 * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
32657 Use ATTR_CONST_NOTHROW_LIST.
32659 2010-04-20 Uros Bizjak <ubizjak@gmail.com>
32661 * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
32662 and ffsdi2 using SWI48 mode iterator. Expand SImode insn through
32663 ffsi2_no_cmove for !TARGET_CMOVE.
32664 (ffssi2_no_cmove): Rename from *ffs_no_cmove. Make public.
32665 (ffssi2): Remove expander.
32666 (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
32668 (ctz<mode>2): Ditto from ctz{si,di}2.
32669 (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
32671 (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
32674 2010-04-20 Jakub Jelinek <jakub@redhat.com>
32676 * dwarf2out.c (AT_linkage_name): Define.
32677 (clone_as_declaration): Handle DW_AT_linkage_name.
32678 (add_name_and_src_coords_attributes): Use AT_linkage_name instead
32679 of DW_AT_MIPS_linkage_name.
32680 (move_linkage_attr): Likewise.
32681 (dwarf2out_finish): Likewise.
32683 2010-04-20 Xinliang David Li <davidxl@gcc.gnu.org>
32685 PR middle-end/41952
32686 * fold-const.c (fold_comparison): New folding rule.
32688 2010-04-20 Anatoly Sokolov <aesok@post.ru>
32690 * double-int.h (double_int_setbit): Declare.
32691 * double-int.c (double_int_setbit): New function.
32692 * rtl.h (immed_double_int_const): Declare.
32693 * emit-rtl.c (immed_double_int_const): New function.
32694 * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
32695 and immed_double_int_const functions.
32696 * optabs.c (expand_absneg_bit, expand_copysign_absneg,
32697 expand_copysign_bit): (Ditto.).
32698 * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
32699 * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
32700 * dojump.c (prefer_and_bit_test): (Ditto.).
32701 * expr.c (convert_modes, reduce_to_bit_field_precision,
32702 const_vector_from_tree): (Ditto.).
32703 * expmed.c (mask_rtx, lshift_value): (Ditto.).
32705 2010-04-20 Jan Hubicka <jh@suse.cz>
32707 * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
32708 (dump_cgraph_node): Dump new flags.
32709 * cgraph.h (struct cgraph_node): Add flags
32710 reachable_from_other_partition and in_other_partition.
32711 (cgraph_can_remove_if_no_direct_calls_p): Functions used by
32712 other partition can not be removed.
32713 * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
32714 the other partition must be output; silence sanity checking on
32715 leaking functions bodies from other paritition.
32716 * lto-cgraph.c (reachable_from_other_partition_p): New function.
32717 (lto_output_node): Output new flags; do not sanity check that inline
32718 clones are output; drop lto_forced_extern_inline_p code; do not mock
32719 visibility flags at partition boundaries.
32720 (add_node_to): New function.
32721 (output_cgraph): Use it to sort functions so masters appear before
32723 (input_overwrite_node): Input new flags.
32724 * passes.c (ipa_write_summaries): Do not call
32725 lto_new_extern_inline_states.
32726 * lto-section-out.c (forced_extern_inline,
32727 lto_new_extern_inline_states lto_delete_extern_inline_states,
32728 lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
32729 * lto-streamer.h (lto_new_extern_inline_states,
32730 * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
32731 lto_forced_extern_inline_p): Kill.
32733 2010-04-20 Richard Guenther <rguenther@suse.de>
32735 * tree-ssa-structalias.c (do_sd_constraint): Add edges only
32736 from vars that can have pointers.
32737 (process_constraint): Dump useless constraints.
32739 2010-04-20 Richard Guenther <rguenther@suse.de>
32741 * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
32742 (dump_sa_points_to_info): Remove asserts.
32743 (init_base_vars): nothing_id isn't an escape point nor does it
32746 2010-04-20 Jakub Jelinek <jakub@redhat.com>
32748 * tree.h (TYPE_REF_IS_RVALUE): Define.
32749 * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
32750 should_move_die_to_comdat, prune_unused_types_walk): Handle
32751 DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
32752 (modified_type_die, gen_reference_type_die): Emit
32753 DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
32754 if TYPE_REF_IS_RVALUE and -gdwarf-4.
32756 2010-04-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32759 * config/s390/s390.c (s390_emit_call): Turn direct into indirect
32760 calls for -fpic -m31 if they have been sibcall optimized.
32762 2010-04-19 James E. Wilson <wilson@codesourcery.com>
32764 * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
32765 ar.lc fixed and call-used.
32767 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
32769 2010-04-19 Jan Hubicka <jh@suse.cz>
32771 * opts.c (decode_options): Disable whpr incompatible passes.
32772 * lto/lto.c (lto_1_to_1_map): Skip clones.
32773 (read_cgraph_and_symbols): Do not mark everything as needed.
32774 (do_whole_program_analysis): Do map only after optimizing;
32775 set proper cgraph_state; use passmanager.
32777 2010-04-19 DJ Delorie <dj@redhat.com>
32779 * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
32780 POINTER_PLUS_EXPR and fix them.
32782 2010-04-19 Eric B. Weddington <eric.weddington@atmel.com>
32784 * config/avr/avr-devices.c (avr_mcu_types): Add support for new
32785 devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
32786 attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
32787 atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
32788 atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
32789 atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
32790 atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
32791 atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
32792 m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
32793 atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
32794 * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
32796 2010-04-19 Eric Botcazou <ebotcazou@adacore.com>
32798 * ifcvt.c (noce_try_cmove_arith): Fix long lines.
32799 (check_cond_move_block): Likewise.
32800 (cond_move_process_if_block): Likewise.
32801 (noce_find_if_block): Improve formatting.
32802 (find_if_header): Pass 0 to memset and tweak conditions.
32803 (cond_exec_find_if_block): Fix long lines and tweak conditions.
32805 2010-04-19 Jakub Jelinek <jakub@redhat.com>
32807 * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
32810 PR middle-end/43337
32811 * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
32812 with non-local decl doesn't need chain.
32814 2010-04-19 Vladimir Makarov <vmakarov@redhat.com>
32816 * ira-color.c (allocno_reload_assign): Avoid accumulating
32817 reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
32819 2010-04-19 Martin Jambor <mjambor@suse.cz>
32821 * gimple.h (create_tmp_reg): Declare.
32822 * gimplify.c (create_tmp_reg): New function.
32823 (gimplify_return_expr): Use create_tmp_reg.
32824 (gimplify_omp_atomic): Likewise.
32825 (gimple_regimplify_operands): Likewise.
32826 * tree-dfa.c (make_rename_temp): Likewise.
32827 * tree-predcom.c (predcom_tmp_var): Likewise.
32828 (reassociate_to_the_same_stmt): Likewise.
32829 * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
32830 (get_replaced_param_substitute): Likewise.
32831 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
32832 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
32833 * tree-ssa-pre.c (get_representative_for): Likewise.
32834 (create_expression_by_pieces): Likewise.
32835 * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
32836 (create_tailcall_accumulator): Likewise.
32838 2010-04-19 Martin Jambor <mjambor@suse.cz>
32840 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
32842 (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
32844 2010-04-19 Richard Guenther <rguenther@suse.de>
32846 PR tree-optimization/43796
32847 * tree-vrp.c (adjust_range_with_scev): Lookup init and step
32848 from SCEV in the lattice.
32849 (vrp_visit_phi_node): Dump change.
32851 2010-04-19 Richard Guenther <rguenther@suse.de>
32853 * configure.ac: Fix quoting around elf_getshstrndx ABI check.
32854 * configure: Re-generated.
32856 2010-04-19 Richard Guenther <rguenther@suse.de>
32858 PR tree-optimization/43783
32859 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
32860 constant ARRAY_REF operands two and three if possible.
32862 2010-04-19 Uros Bizjak <ubizjak@gmail.com>
32865 * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
32867 2010-04-19 Jie Zhang <jie@codesourcery.com>
32870 * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
32872 2010-04-19 Ira Rosen <irar@il.ibm.com>
32874 PR tree-optimization/37027
32875 * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
32876 and macro to access it.
32877 (vectorizable_reduction): Add argument.
32878 (vect_get_slp_defs): Likewise.
32879 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
32880 statements for possible use in SLP.
32881 (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
32882 (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
32883 (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
32885 (vectorizable_reduction): Likewise.
32886 * tree-vect-stmts.c (vect_get_vec_defs): Update call to
32888 (vectorizable_type_demotion, vectorizable_type_promotion,
32889 vectorizable_store): Likewise.
32890 (vect_analyze_stmt): Update call to vectorizable_reduction.
32891 (vect_transform_stmt): Likewise.
32892 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
32893 (vect_build_slp_tree): Fix indentation. Check that there are no loads
32894 from different interleaving chains in same node.
32895 (vect_slp_rearrange_stmts): New function.
32896 (vect_supported_load_permutation_p): Allow load permutations for
32897 reductions. Call vect_slp_rearrange_stmts() to rearrange statements
32898 inside SLP nodes if necessary.
32899 (vect_analyze_slp_instance): Handle reductions.
32900 (vect_analyze_slp): Try to build SLP instances originating from groups
32902 (vect_detect_hybrid_slp_stmts): Skip reduction statements.
32903 (vect_get_constant_vectors): Create initial vectors for reductions
32904 according to reduction code. Add new argument.
32905 (vect_get_slp_defs): Add new argument, pass it to
32906 vect_get_constant_vectors.
32907 (vect_schedule_slp_instance): Remove SLP tree root statements.
32909 2010-04-19 Jakub Jelinek <jakub@redhat.com>
32911 * tree.h (ENUM_IS_SCOPED): Define.
32912 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
32913 for ENUM_IS_SCOPED enums.
32915 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
32917 * fold-const.c (fold_comparison): Use ssizetype.
32918 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
32919 * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
32920 * tree-loop-distribution.c (build_size_arg_loc): Likewise.
32921 * tree-object-size.c (compute_object_sizes): Use size_type_node.
32923 * tree.h (initialize_sizetypes): Remove parameter.
32924 (build_common_tree_nodes): Remove second parameter.
32925 * stor-layout.c (initialize_sizetypes): Remove parameter.
32926 Always create an unsigned type.
32927 (set_sizetype): Assert that the passed type is unsigned and simplify.
32928 * tree.c (build_common_tree_nodes): Remove second parameter.
32929 Adjust call to initialize_sizetypes.
32930 * c-decl.c (c_init_decl_processing): Remove second argument in call to
32931 build_common_tree_nodes.
32933 2010-04-18 Matthias Klose <doko@ubuntu.com>
32935 * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
32937 2010-04-18 Ira Rosen <irar@il.ibm.com>
32939 PR tree-optimization/43771
32940 * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
32941 load permutation doesn't have gaps.
32943 2010-04-18 Jan Hubicka <jh@suse.cz>
32945 * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
32946 (sse_prologue_save_insn expander): Use new pattern.
32947 (sse_prologue_save_insn1): New pattern and splitter.
32948 (sse_prologue_save_insn): Update to deal also with 64bit aligned
32950 * i386.c (setup_incoming_varargs_64): Do not compute jump
32952 (ix86_gimplify_va_arg): Update alignment needed.
32953 (ix86_local_alignment): Do not align all local arrays to 128bit.
32955 2010-04-17 Jan Hubicka <jh@suse.cz>
32957 * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
32959 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
32961 * arm.md (negdi2): Remove redundant code to force values into a
32964 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
32966 * arm/bpabi.S: Add EABI alignment attributes to objects.
32967 * arm/bpabi-v6m.S: Likewise.
32968 * arm/crti.asm: Likewise.
32969 * arm/crtn.asm: Likewise.
32970 * arm/lib1funcs.asm: Likewise.
32971 * arm/libunwind.S: Likewise.
32973 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
32975 * arm-protos.h (tune_params): New structure.
32976 * arm.c (current_tune): New variable.
32977 (arm_constant_limit): Delete.
32978 (struct processors): Add pointer to the tune parameters.
32979 (arm_slowmul_tune): New tuning option.
32980 (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
32981 (all_cores): Adjust to pick up the tuning model.
32982 (arm_constant_limit): New function.
32983 (arm_override_options): Select the appropriate tuning model. Delete
32984 initialization of arm_const_limit.
32985 (arm_split_constant): Use the new constant-limit model.
32986 (arm_rtx_costs): Pick up the current tuning model.
32987 * arm.md (is_strongarm, is_xscale): Delete.
32988 * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
32989 for Xscale variant architectures.
32990 (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
32992 2010-04-17 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
32994 * config/arm/arm.c (arm_gen_constant): Remove unused variable
32996 (arm_rtx_costs_1): Remove unused variable extra_cost.
32997 (arm_unwind_emit_set): Use variable offset.
32998 (thumb1_output_casesi): Remove unused variable flags.
33000 2010-04-16 Jeff Law <law@redhat.com>
33002 * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
33003 needing assignment rather than doing a two-phase assignment. Remove
33004 unused variable 'm'.
33006 2010-04-16 Jakub Jelinek <jakub@redhat.com>
33009 * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
33011 2010-04-16 Doug Kwan <dougkwan@google.com>
33013 * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
33014 (next_operand_entry_id): New static variable.
33015 (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
33016 (add_to_ops_vec): Assigned unique ID to operand entry.
33017 (struct oecount_s): New field ID.
33018 (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
33019 (undistribute_ops_list): Assign unique IDs to oecounts.
33020 (init_reassoc): reset next_operand_entry_id.
33022 2010-04-16 Doug Kwan <dougkwan@google.com>
33024 * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
33025 missing left parenthesis.
33027 2010-04-16 Uros Bizjak <ubizjak@gmail.com>
33029 * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
33030 *btdi_rex64 using SWI48 mode iterator.
33031 (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
33032 (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
33033 *jcc_btdi_mask_rex64.
33035 2010-04-16 Anatoly Sokolov <aesok@post.ru>
33037 * double-int.h (tree_to_double_int): Convert to macro.
33038 * double-int.c (tree_to_double_int): Remove.
33040 2010-04-16 Jakub Jelinek <jakub@redhat.com>
33043 * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
33044 with want_address 2 and in case a single element list might be
33045 possible, call it again with want_address 0.
33047 2010-04-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
33049 * config/h8300/h8300.c (print_operand) : Modify case 'V' and
33050 case 'W' print operands for HI mode.
33051 * config/h8300/h8300.h (Y0, Y2) : New constraints.
33052 * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
33053 (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
33054 * config/h8300/predicate.md (bit_register_indirect_operand): New.
33056 * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
33058 * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
33059 cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
33060 #xx:3 and #xx:4 mode.
33062 * config/h8300/h8300.md (inverted load with HImode dest): Add
33063 support for H8300SX.
33065 * config/h8300/predicate.md (bit_operand): Allow immediate values that
33066 satisfy 'U' constraint.
33068 2010-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33070 * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
33071 * configure: Regenerate.
33072 * config.in: Regenerate.
33073 * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
33076 2010-04-16 Richard Guenther <rguenther@suse.de>
33078 * tree.h (struct tree_decl_minimal): Move pt_uid ...
33079 (struct tree_decl_common): ... here.
33080 (DECL_PT_UID): Adjust.
33081 (SET_DECL_PT_UID): Likewise.
33082 (DECL_PT_UID_SET_P): Likewise.
33084 2010-04-16 Richard Guenther <rguenther@suse.de>
33086 PR tree-optimization/43572
33087 * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
33088 * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
33089 * tree-flow.h (is_call_clobbered): Remove.
33090 * tree-flow-inline.h (is_call_clobbered): Likewise.
33091 * tree-dfa.c (dump_variable): Do not dump call clobber state.
33092 * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
33093 (execute_return_slot_opt): Adjust.
33094 * tree-tailcall.c (suitable_for_tail_opt_p): Remove
33095 check for call clobbered vars here.
33096 (find_tail_calls): Move tailcall verification to the
33099 2010-04-16 Diego Novillo <dnovillo@google.com>
33101 * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
33103 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
33106 * config/arm/arm.md (cbranchqi4): New pattern.
33107 * config/arm/predicates.md (const0_operand,
33108 cbranchqi4_comparison_operator): New predicates.
33110 2010-04-16 Richard Guenther <rguenther@suse.de>
33112 * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
33113 (dump_gimple_stmt): Likewise.
33115 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
33117 * recog.h (struct recog_data): New field is_operator.
33118 (struct insn_operand_data): New field is_operator.
33119 * recog.c (extract_insn): Set recog_data.is_operator.
33120 * genoutput.c (output_operand_data): Emit code to set the
33122 * reload.c (find_reloads): Use it rather than testing for an
33123 empty constraint string.
33126 * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
33127 If the previous insn is a cbranchsi4_insn with the same arguments,
33128 omit the compare instruction.
33130 * config/arm/arm.md (addsi3_cbranch): If destination is a high
33131 register, inputs must be low registers and we need a low register
33132 scratch. Handle alternative 2 like alternative 3.
33134 2010-04-16 Jakub Jelinek <jakub@redhat.com>
33136 * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
33137 don't call get_addr on both. If one expression is a VALUE and
33138 the other a REG, check VALUE's locs if the REG isn't among them.
33140 2010-04-16 Christian Bruel <christian.bruel@st.com>
33142 * config/sh/sh.h (sh_frame_pointer_required): New function.
33143 * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
33144 (flag_omit_frame_pointer) Set.
33145 (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
33146 (rounded_frame_size): Adjust size with outgoing_args_size.
33147 (sh_set_return_address): Must return from stack pointer.
33148 * config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
33149 (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
33150 (ACCUMULATE_OUTGOING_ARGS): Define.
33151 * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
33152 * config/sh/sh.opt (maccumulate-outgoing-args): New option.
33154 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
33157 * config/sh/sh.c (sh_legitimize_reload_address): Use
33158 MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
33159 Remove a unneeded check for offset_base.
33161 2010-04-15 H.J. Lu <hongjiu.lu@intel.com>
33163 * configure: Regenerated.
33165 2010-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33167 * config/s390/s390.c (s390_call_save_register_used): Switch back
33168 to HARD_REGNO_NREGS.
33170 2010-04-15 Richard Guenther <rguenther@suse.de>
33172 * alias.c (alias_set_subset_of): Handle alias-set zero
33175 2010-04-15 Mark Shinwell <shinwell@codesourcery.com>
33176 Julian Brown <julian@codesourcery.com>
33178 * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
33179 alternatives according to use of high and low regs.
33180 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
33181 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
33182 optimizing for size on Thumb-2.
33184 2010-04-15 Thomas Schwinge <tschwinge@gnu.org>
33186 * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
33188 2010-04-15 Richard Guenther <rguenther@suse.de>
33190 * tree-ssa-structalias.c (struct variable_info): Add
33192 (new_var_info): Initialize it.
33193 (dump_constraints): Support printing last added constraints.
33194 (debug_constraints): Adjust.
33195 (dump_constraint_graph): Likewise.
33196 (make_heapvar_for): Check for NULL cfun.
33197 (get_function_part_constraint): New function.
33198 (get_fi_for_callee): Likewise.
33199 (find_func_aliases): Properly implement IPA PTA constraints.
33200 (process_ipa_clobber): New function.
33201 (find_func_clobbers): Likewise.
33202 (insert_into_field_list_sorted): Remove.
33203 (create_function_info_for): Properly allocate vars for IPA mode.
33204 Do not use insert_into_field_list_sorted.
33205 (create_variable_info_for): Properly generate constraints for
33206 global vars in IPA mode.
33207 (dump_solution_for_var): Always dump the solution.
33208 (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
33209 (find_what_var_points_to): Adjust.
33210 (pt_solution_set): Change.
33211 (pt_solution_ior_into): New function.
33212 (pt_solution_empty_p): Export.
33213 (pt_solution_includes_global): Adjust.
33214 (pt_solution_includes_1): Likewise.
33215 (pt_solutions_intersect_1): Likewise.
33216 (dump_sa_points_to_info): Check some invariants.
33217 (solve_constraints): Move constraint dumping ...
33218 (compute_points_to_sets): ... here.
33219 (ipa_pta_execute): ... and here.
33220 (compute_may_aliases): Do not re-compute points-to info
33221 locally if IPA info is available.
33222 (ipa_escaped_pt): New global var.
33223 (ipa_pta_execute): Properly implement IPA PTA.
33224 * tree-into-ssa.c (dump_decl_set): Support dumping
33225 decls not in referenced-vars.
33226 * tree-flow.h (struct gimple_df): Add ipa_pta flag.
33227 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
33228 (dump_points_to_solution): Likewise.
33229 * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
33230 * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
33231 (remap_gimple_stmt): Reset call clobber/use information if necessary.
33232 (copy_decl_to_var): Copy DECL_PT_UID.
33233 (copy_result_decl_to_var): Likewise.
33234 * tree.c (make_node_stat): Initialize DECL_PT_UID.
33235 (copy_node_stat): Copy it.
33236 * tree.h (DECL_PT_UID): New macro.
33237 (SET_DECL_PT_UID): Likewise.
33238 (DECL_PT_UID_SET_P): Likewise.
33239 (struct tree_decl_minimal): Add pt_uid member.
33240 * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
33241 (pt_solution_empty_p): Declare.
33242 (pt_solution_set): Adjust.
33243 (ipa_escaped_pt): Declare.
33244 * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
33245 * gimple-pretty-print.c (pp_points_to_solution): New function.
33246 (dump_gimple_call): Dump call clobber/use information.
33247 * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
33248 * tree-pass.h (TDF_ALIAS): New dump option.
33249 * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
33250 * doc/invoke.texi (-fipa-pta): Update documentation.
33252 2010-04-15 Richard Guenther <rguenther@suse.de>
33254 * Makefile.in (OBJS-common): Add gimple-fold.o.
33255 (gimple-fold.o): New rule.
33256 * tree.h (maybe_fold_offset_to_reference,
33257 maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
33259 * gimple.h: ... here.
33260 * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
33261 may_propagate_address_into_dereference): Move prototypes ...
33262 * gimple.h: ... here.
33263 * tree-ssa-ccp.c (get_symbol_constant_value,
33264 may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
33265 maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
33266 maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
33267 maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
33268 ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
33269 fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
33270 gimplify_and_update_call_from_tree): Move ...
33271 * gimple-fold.c: ... here. New file.
33272 (ccp_fold_builtin): Rename to ...
33273 (gimple_fold_builtin): ... this.
33274 * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
33276 2010-04-15 Richard Guenther <rguenther@suse.de>
33278 * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
33279 fit_double_type, force_fit_type_double, add_double_with_sign,
33280 neg_double, mul_double_with_sign, lshift_double, rshift_double,
33281 lrotate_double, rrotate_double, div_and_round_double): Move ...
33282 * double-int.c: ... here.
33283 * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
33284 add_double, neg_double, mul_double_with_sign, mul_double,
33285 lshift_double, rshift_double, lrotate_double, rrotate_double,
33286 div_and_round_double): Move prototypes ...
33287 * double-int.h: ... here.
33289 2010-04-15 Bernd Schmidt <bernds@codesourcery.com>
33292 * config/sh/sh.md (doloop_end_split, dect): Undo previous patch. Use
33293 matching constraints to ensure inputs match the output.
33295 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
33298 * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
33299 in an input-only operand.
33301 2010-04-15 Anatoly Sokolov <aesok@post.ru>
33303 * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
33304 (double_int_not, double_int_lshift, double_int_rshift): Declare.
33305 (double_int_negative_p): Convert to static inline function.
33306 * double-int.c (double_int_lshift, double_int_lshift): New functions.
33307 (double_int_negative_p): Remove.
33308 * tree.h (lshift_double, rshift_double):
33309 * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
33310 * fold-const.c (fold_convert_const_int_from_real,
33311 fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
33312 (lshift_double): Change type of arith argument to bool.
33313 (rshift_double): Change type of arith argument to bool. Correct
33315 * expmed.c (mask_rtx, lshift_value): (Ditto.).
33317 2010-04-14 Bernd Schmidt <bernds@codesourcery.com>
33320 * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
33321 at the start and end of the then/else blocks, and omit them from the
33323 * cfgcleanup.c (flow_find_cross_jump): No longer static. Remove MODE
33324 argument; all callers changed. Pass zero to old_insns_match_p instead.
33325 (flow_find_head_matching_sequence): New function.
33326 (old_insns_match_p): Check REG_EH_REGION notes for calls.
33327 * basic-block.h (flow_find_cross_jump,
33328 flow_find_head_matching_sequence): Declare functions.
33330 2010-04-14 Jason Merrill <jason@redhat.com>
33333 * c-common.c (attribute_takes_identifier_p): New fn.
33334 * c-common.h: Declare it.
33336 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
33338 * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
33339 splitter condition.
33340 (*udivmod<mode>4): Ditto.
33342 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
33344 * config/i386/i386.md (maxmin_int): Rename code attribute from
33345 maxminiprefix and update all users.
33346 (maxmin_float): Ditto from maxminfprefix.
33347 (logic): Ditto from logicprefix.
33348 (absneg_mnemonic): Ditto from absnegprefix.
33349 * config/i386/mmx.md: Update all users of maxminiprefix,
33350 maxminfprefix and logicprefix for rename.
33351 * config/i386/sse.md: Ditto.
33352 * config/i386/sync.md (sync_<code><mode>): Update for
33353 logicprefix rename.
33355 2010-04-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
33358 * diagnostics.c (diagnostic_report_diagnostic): Mark specially
33359 warnings converted to errors.
33361 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
33363 * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
33364 used insn_type variable.
33365 (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
33366 to avoid set-but-not-used warning.
33368 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
33370 * df-core.c (df_ref_debug): Change format string placeholder
33372 * dwarf2asm.c (dw2_asm_output_data_raw,
33373 dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
33374 dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
33375 * dwarf2out.c (output_cfi, output_cfi_directive,
33376 dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
33377 output_cfa_loc_raw, output_die, output_ranges, output_file_names):
33379 * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
33380 * print-rtl.c (print_rtx): Ditto.
33382 2010-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
33384 PR middle-end/42694
33385 * builtins.c (expand_builtin_pow_root): New function to expand pow
33386 calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
33387 series of sqrt and cbrt calls under -ffast-math.
33388 (expand_builtin_pow): Call it.
33390 2010-04-14 Michael Matz <matz@suse.de>
33392 PR tree-optimization/42963
33393 * tree-cfg.c (touched_switch_bbs): New static variable.
33394 (group_case_labels_stmt): New function broken out from ...
33395 (group_case_labels): ... here, use the above.
33396 (start_recording_case_labels): Allocate touched_switch_bbs.
33397 (end_recording_case_labels): Deallocate it, call
33398 group_case_labels_stmt.
33399 (gimple_redirect_edge_and_branch): Remember index of affected BB.
33401 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
33403 * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
33404 from insn template.
33406 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
33408 * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
33410 2010-04-13 Jan Hubicka <jh@suse.cz>
33412 * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
33413 of optimized out static functions.
33414 (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
33415 cost computation. Also sanity check for overflows.
33416 (update_caller_keys): Update cgraph_edge_badness call; properly
33417 update fibheap and sanity check that it is up to date.
33418 (add_new_edges_to_heap): Update cgraph_edge_badness.
33419 (cgraph_decide_inlining_of_small_function): Likewise;
33420 add sanity checking that badness in heap is up to date;
33421 improve dumping of reason; Update badness of calls to the
33422 offline copy of function currently inlined; dump badness
33423 of functions not inlined because of unit growth limits.
33425 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
33427 PR middle-end/32628
33428 * c-common.c (pointer_int_sum): Disregard overflow that occured only
33429 because of sign-extension change when converting to sizetype here...
33430 * fold-const.c (fold_convert_const_int_from_int): ...and not here.
33432 * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
33433 the folding to constants. Remove redundant final conversion.
33434 (fold_binary) <associate>: Do not associate if the re-association of
33435 constants alone overflows.
33436 (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
33437 to the end of the list.
33438 (multiple_of_p) <COND_EXPR>: New case.
33440 2010-04-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
33442 * opt-functions.awk (opt_sanitized_name): New.
33444 * optc-gen.awk: Use it
33445 * opth-gen.awk: Use it.
33447 2010-04-13 Martin Jambor <mjambor@suse.cz>
33449 * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
33450 (sra_modify_assign): Delete stmts loading dead data even if racc has no
33451 children. Call replace_uses_with_default_def_ssa_name to handle
33454 2010-04-13 Michael Matz <matz@suse.de>
33456 PR middle-end/43730
33457 * builtins.c (expand_builtin_interclass_mathfn): Also create
33458 a register if the predicate doesn't match.
33460 2010-04-13 Diego Novillo <dnovillo@google.com>
33462 * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
33463 * c-pch.c: Include timevar.h.
33464 (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
33465 (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
33466 * ggc-common.c: Include timevar.h.
33467 (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
33468 * timevar.def (TV_PCH_SAVE): Define.
33469 (TV_PCH_CPP_SAVE): Define.
33470 (TV_PCH_PTR_REALLOC): Define.
33471 (TV_PCH_PTR_SORT): Define.
33472 (TV_PCH_RESTORE): Define.
33473 (TV_PCH_CPP_RESTORE): Define.
33475 2010-04-13 Michael Matz <matz@suse.de>
33477 * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
33479 (can_reassociate_p): New function.
33480 (break_up_subtract_bb, reassociate_bb): Use it.
33482 2010-04-13 Richard Guenther <rguenther@suse.de>
33485 * builtins.c (c_readstr): Fix assert.
33487 2010-04-13 Uros Bizjak <ubizjak@gmail.com>
33489 * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
33490 when generating cltd insn.
33492 (*ashl<mode>3_1): Remove special handling for register operand 2.
33493 (*ashlsi3_1_zext): Ditto.
33494 (*ashlhi3_1): Ditto.
33495 (*ashlhi3_1_lea): Ditto.
33496 (*ashlqi3_1): Ditto.
33497 (*ashlqi3_1_lea): Ditto.
33498 (*<shiftrt_insn><mode>3_1): Ditto.
33499 (*<shiftrt_insn>si3_1_zext): Ditto.
33500 (*<shiftrt_insn>qi3_1_slp): Ditto.
33501 (*<rotate_insn><mode>3_1): Ditto.
33502 (*<rotate_insn>si3_1_zext): Ditto.
33503 (*<rotate_insn>qi3_1_slp): Ditto.
33505 2010-04-13 Richard Guenther <rguenther@suse.de>
33507 * tree-ssa-structalias.c (callused_id): Remove.
33508 (call_stmt_vars): New.
33509 (get_call_vi): Likewise.
33510 (lookup_call_use_vi): Likewise.
33511 (lookup_call_clobber_vi): Likewise.
33512 (get_call_use_vi): Likewise.
33513 (get_call_clobber_vi): Likewise.
33514 (make_transitive_closure_constraints): Likewise.
33515 (handle_const_call): Adjust to do per-call call-used handling.
33516 (handle_pure_call): Likewise.
33517 (find_what_var_points_to): Remove general callused handling.
33518 (init_base_vars): Likewise.
33519 (init_alias_vars): Initialize call_stmt_vars.
33520 (compute_points_to_sets): Process call-used and call-clobbered
33521 vars for call statements.
33522 (delete_points_to_sets): Free call_stmt_vars.
33524 2010-04-13 Richard Guenther <rguenther@suse.de>
33526 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
33527 Only add RW dependence for dependence distance zero.
33528 Adjust maximal vectorization factor according to dependences.
33529 Move alignment handling ...
33530 (vect_find_same_alignment_drs): ... here. New function.
33531 (vect_analyze_data_ref_dependences): Adjust.
33532 (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
33533 (vect_analyze_data_refs): Adjust minimal vectorization factor
33534 according to data references.
33535 * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
33536 dependences before determining the vectorization factor.
33537 Analyze alignment after determining the vectorization factor.
33538 * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
33539 dependences before alignment.
33540 * tree-vectorizer.h (vect_analyze_data_ref_dependences):
33542 (vect_analyze_data_refs): Likewise.
33543 (MAX_VECTORIZATION_FACTOR): New define.
33545 2010-04-13 Duncan Sands <baldrick@free.fr>
33547 * except.h (lang_eh_type_covers): Remove.
33548 * except.c (lang_eh_type_covers): Likewise.
33550 2010-04-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33551 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
33553 * config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
33554 * config/s390/s390.c: Replace UNTIS_PER_WORD with
33555 UNITS_PER_LONG where it is ABI relevant.
33556 (s390_return_addr_rtx): Likewise.
33557 (s390_back_chain_rtx): Likewise.
33558 (s390_frame_area): Likewise.
33559 (s390_frame_info): Likewise.
33560 (s390_initial_elimination_offset): Likewise.
33561 (save_gprs): Likewise.
33562 (s390_emit_prologue): Likewise.
33563 (s390_emit_epilogue): Likewise.
33564 (s390_function_arg_advance): Likewise.
33565 (s390_function_arg): Likewise.
33566 (s390_va_start): Likewise.
33567 (s390_gimplify_va_arg): Likewise.
33568 (s390_function_profiler): Likewise.
33569 (s390_optimize_prologue): Likewise.
33570 (s390_rtx_costs): Likewise.
33571 (s390_secondary_reload): Likewise.
33572 (s390_promote_function_mode): Likewise.
33573 (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
33574 (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
33575 registers available.
33576 (s390_unwind_word_mode): New function.
33577 (s390_function_value): Split 64 bit values into register pair if
33578 used as return value.
33579 (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
33580 function call parameters. Handle parallels.
33581 (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
33582 (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
33583 (DWARF_CIE_DATA_ALIGNMENT): New macro.
33584 (s390_expand_setmem): Remove unused variable src_addr.
33585 * longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
33586 deal with 64 bit registers.
33587 * config/s390/s390.h: Define __zarch__ predefined macro.
33588 Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
33589 (UNITS_PER_LONG): New macro.
33590 * libjava/include/s390-signal.h: Define extended ucontext
33591 structure containing the upper halfs of the 64 bit registers.
33593 2010-04-13 Simon Baldwin <simonb@google.com>
33595 * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
33597 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
33599 * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
33600 rvalue on the RHS if the LHS is of a non-renamable type.
33601 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
33603 2010-04-13 Matthias Klose <doko@ubuntu.com>
33605 * gcc.c (cc1_options): Handle -iplugindir before processing
33606 the cc1 spec. Only add -iplugindir once.
33607 (cpp_unique_options): Add -iplugindir option if -fplugin* options
33609 * common.opt (iplugindir): Remove `Separate' property, initialize.
33610 * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
33612 * Makefile.in (check-%, check-parallel-%): Create plugin dir.
33613 (distclean): Remove plugin dir.
33614 * doc/invoke.texi: Document -iplugindir.
33616 2010-04-13 Basile Starynkevitch <basile@starynkevitch.net>
33618 * doc/plugins.texi (Loading Plugins): Document short
33619 -fplugin=foo option.
33620 (Plugin API): Mention default_plugin_dir_name function.
33622 * gcc.c (find_file_spec_function): Add new declaration.
33623 (static_spec_func): Use it for "find-file".
33624 (find_file_spec_function): Add new function.
33625 (cc1_options): Add -iplugindir option if -fplugin* options found.
33627 * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
33629 * plugin.c (add_new_plugin): Updated comment, and handle short
33631 (default_plugin_dir_name): Added new function.
33633 * common.opt (iplugindir): New option to set the plugin directory.
33635 2010-04-12 Uros Bizjak <ubizjak@gmail.com>
33637 * config/i386/i386.md (any_rotate): New code iterator.
33638 (rotate_insn): New code attribute.
33640 (SWIM124): New mode iterator.
33641 (<rotate_insn>ti3): New expander.
33642 (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
33643 any_rotate code iterator.
33644 (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
33645 using any_rotate code iterator and SWIM124 mode iterator.
33646 (ix86_rotlti3): New insn_and_split pattern.
33647 (ix86_rotrti3): Ditto.
33648 (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
33649 ix86_rotl{di,ti}3 patterns.
33650 (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
33651 (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
33652 and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
33653 *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
33654 code iterator and SWI mode iterator.
33655 (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
33656 Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
33658 (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
33659 Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
33660 (bswap rotatert splitter): Add splitter.
33661 (bswap splitter): Macroize splitter using any_rotate code iterator.
33662 Add insn predicate to split only for TARGET_USE_XCHGB or when
33663 optimizing function for size.
33665 2010-04-12 Steve Ellcey <sje@cup.hp.com>
33667 * config/pa/pa.c (emit_move_sequence): Remove use of
33668 deleted variable flag_argument_noalias.
33670 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33672 * config.gcc: Removed *-*-solaris2.7* from list of obsolete
33674 Add to unsupported targets list.
33675 * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
33676 sparc*-sun-solaris2.[567]* from target lists.
33677 * configure: Regenerate.
33678 * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
33680 Remove Solaris 7 patch references.
33681 (Specific, sparc-sun-solaris2.7): Removed.
33682 (sparc-sun-solaris2*): Update Solaris 7 example.
33683 (sparc64-*-solaris2*): Likewise.
33685 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33687 * config.build (alpha*-dec-osf4*): Remove.
33688 * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
33689 of obsolete configurations.
33690 (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
33692 * config/alpha/t-osf4: Renamed to ...
33693 * config/alpha/t-osf5: ... this.
33694 * config/alpha/osf.h: Renamed to ...
33695 * config/alpha/osf5.h: ... this.
33696 Merged old osf5.h contents.
33698 (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
33699 (EXTRA_SPECS): Removed.
33700 * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
33701 reflect removal of Tru64 UNIX V4.0/V5.0 support.
33704 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33706 * doc/contrib.texi (Contributors, Rainer Orth): Update.
33708 2010-04-12 Kai Tietz <kai.tietz@onevision.com>
33711 * config/i386/i386.c (x86_this_parameter): Handle aggregate for
33712 __thiscall convention.
33714 2010-04-12 Steve Ellcey <sje@cup.hp.com>
33716 * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
33718 * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
33720 2010-04-12 Steve Ellcey <sje@cup.hp.com>
33722 * function.c (assign_parms_initialize_all): Add unused attribute
33725 2010-04-12 Richard Guenther <rguenther@suse.de>
33727 * gsstruct.def (GSS_CALL): New.
33728 * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
33729 * gimple.h: Include tree-ssa-alias.h.
33730 (struct gimple_statement_call): New.
33731 (union gimple_statement_struct_d): Add gimple_call member.
33732 (gimple_call_reset_alias_info): Declare.
33733 (gimple_call_use_set): New function.
33734 (gimple_call_clobber_set): Likewise.
33735 * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
33736 * gimple.c (gimple_call_reset_alias_info): New function.
33737 (gimple_build_call_1): Call it.
33738 * lto-streamer-in.c (input_gimple_stmt): Likewise.
33739 * tree-inline.c (remap_gimple_stmt): Likewise.
33740 (expand_call_inline): Remove callused handling.
33741 * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
33742 * tree-dfa.c (dump_variable): Likewise.
33743 * tree-parloops.c (parallelize_loops): Likewise.
33744 * tree-ssa.c (init_tree_ssa): Likewise.
33745 (delete_tree_ssa): Likewise.
33746 * tree-flow-inline.h (is_call_used): Remove.
33747 * tree-flow.h (struct gimple_df): Remove callused member.
33748 * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
33749 * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
33750 (ref_maybe_used_by_call_p_1): Simplify.
33751 (call_may_clobber_ref_p_1): Likewise.
33752 * tree-ssa-structalias.c (compute_points_to_sets): Set
33753 the call stmt used and clobbered sets.
33754 * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
33755 (find_tail_calls): Verify the tail call.
33757 2010-04-12 Richard Guenther <rguenther@suse.de>
33759 * ipa.c (cgraph_postorder): Adjust postorder to guarantee
33760 single-iteration always-inline inlining.
33761 * ipa-inline.c (cgraph_mark_inline): Do not return anything.
33762 (cgraph_decide_inlining): Do not handle always-inline specially.
33763 (try_inline): Remove always-inline cycle detection special case.
33764 Do not recurse on always-inlines.
33765 (cgraph_early_inlining): Do not iterate if not optimizing.
33766 (cgraph_gate_early_inlining): remove.
33767 (pass_early_inline): Run unconditionally.
33768 (gate_cgraph_decide_inlining): New function.
33769 (pass_ipa_inline): Use it. Do not run the IPA inliner if
33770 not inlining or optimizing.
33771 (cgraph_decide_inlining_of_small_functions): Also consider
33772 always-inline functions.
33773 (cgraph_default_inline_p): Return true for nodes which should
33774 disregard inline limits.
33775 (estimate_function_body_sizes): Assume zero size and time for
33776 nodes which are marked as disregarding inline limits.
33777 (cgraph_decide_recursive_inlining): Do not perform recursive
33778 inlining on always-inline nodes.
33780 2010-04-12 Jakub Jelinek <jakub@redhat.com>
33783 * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
33784 for exprs satisfying handled_component_p.
33786 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
33788 * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
33789 non-constant aggregate elements.
33791 * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
33792 is a real initialization.
33794 2010-04-12 Shujing Zhao <pearly.zhao@oracle.com>
33797 * c-decl.c (start_function): Move forward check for nested function.
33799 2010-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
33801 * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
33802 * config/sh/sh.c: Include reload.h.
33803 (sh_legitimize_reload_address): New.
33804 * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
33805 sh_legitimize_reload_address.
33807 2010-04-11 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
33809 * config/sh/sh.md (*movqi_pop): New insn pattern.
33810 * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
33812 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
33814 * config/i386/i386.md (any_shiftrt): New code iterator.
33815 (shiftrt_insn): New code attribute.
33817 (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
33818 using any_shiftrt code iterator.
33819 (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
33820 *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
33821 (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
33822 pattern from corresponding peephole2 patterns.
33823 (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
33824 using any_shiftrt code iterator.
33825 (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
33826 (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
33827 (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
33828 (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
33829 *{ashr,lshr}<mode>3_cmp_zext.
33830 (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
33832 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
33834 * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
33836 (*lshr<mode>3_cconly): Ditto.
33838 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
33840 * config/i386/i386.md (lshr<mode>3): Macroize expander from
33841 lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
33842 (*lshr<mode>3_doubleword): New insn_and_split_pattern. Macroize
33843 pattern from *lshr{di,ti}3_1 and corresponding splitters using
33845 (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
33846 from corresponding peephole2 patterns.
33847 (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
33848 *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
33849 and *lshrdi3_1_rex64 using SWI mode iterator.
33850 (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
33851 (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
33852 (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
33853 *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
33854 and *lshrdi3_cmp_rex64 using SWI mode iterator.
33855 (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
33856 (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
33857 *lshrdi3_one_bit_cconly_rex64. Macroize insn from
33858 *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
33861 2010-04-10 Uros Bizjak <ubizjak@gmail.com>
33863 * config/i386/i386.md (ashr<mode>3): Macroize expander from
33864 ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
33865 (*ashr<mode>3_doubleword): New insn_and_split_pattern. Macroize
33866 pattern from *ashr{di,ti}3_1 and corresponding splitters using
33868 (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
33869 from corresponding peephole2 patterns.
33870 (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
33871 (ashrsi3_cvt): Rename from ashrsi3_31.
33872 (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
33873 (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
33874 and x86_64_shift_adj_3 using SWI48 mode iterator.
33875 (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
33876 *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
33877 and *ashrdi3_1_rex64 using SWI mode iterator.
33878 (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
33879 (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
33880 (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
33881 *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
33882 and *ashrdi3_cmp_rex64 using SWI mode iterator.
33883 (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
33884 (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
33885 *ashrdi3_one_bit_cconly_rex64. Macroize insn from
33886 *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
33888 (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
33889 * config/i386/i386.c (ix86_split_ashr): Update for renamed
33890 x86_shift<mode>_adj_3 expanders.
33892 2010-04-10 Wei Guozhi <carrot@google.com>
33895 * config/arm/arm.c (arm_pic_static_addr): New function.
33896 (legitimize_pic_address): Call arm_pic_static_addr when it detects
33898 (arm_output_addr_const_extra): Output expression for new pattern.
33899 * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
33901 2010-04-10 Bernd Schmidt <bernds@codesourcery.com>
33903 * ira-costs.c (record_reg_classes): Ignore alternatives that are
33906 * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
33907 * web.c: Include "insn-config.h" and "recog.h".
33908 (union_match_dups): New function.
33909 (web_main): Call it.
33910 (union_defs): Don't try to recognize match_dups.
33912 * reload1.c (eliminate_regs_in_insn): Don't restore an operand
33913 if doing so would replace the entire pattern.
33915 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
33919 * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
33920 and splitter pattern. Change splitter operand 1 predicate to
33923 2010-04-09 Martin Jambor <mjambor@suse.cz>
33925 * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
33926 lattices are addresses of CONST_DECLs with the same initial value.
33927 (ipcp_print_all_lattices): Print values of CONST_DECLs.
33928 * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
33930 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
33931 Bernd Schmidt <bernds@codesourcery.com>
33933 * loop-invariant.c (replace_uses): New static function.
33934 (move_invariant_reg): Use it to ensure we can replace the uses.
33936 2010-04-09 Hariharan Sandanagobalane <hariharan@picochip.com>
33938 * config/picochip/picochip.c (picochip_rtx_costs): Use correct
33940 (picochip_override_options): Enable section anchors only above -O1.
33941 (picochip_reorg): Fixed a couple of build warnings.
33943 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33945 * configure.ac (plugin -rdynamic test): Log result.
33946 * configure: Regenerate.
33947 * config/sol2.h (LINK_SPEC): Handle -rdynamic.
33948 (RDYNAMIC_SPEC): Define.
33949 * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
33951 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33953 * configure.ac: Determine Sun ld version numbers.
33954 (comdat_group): Restrict GNU ld version checks to gld.
33955 (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
33956 (enable_comdat): Support --enable-comdat.
33957 * configure: Regenerate.
33958 * doc/install.texi (Configuration): Document --enable-comdat.
33960 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33962 * config/sparc/sol2-gld.h: Remove SPARC reference. Rename ...
33963 * config/sol2-gld.h: ... here.
33964 * config.gcc (sparc*-*-solaris2*): Reflect this.
33965 (i[34567]86-*-solaris2*): Use it.
33967 2010-04-09 Steve Ellcey <sje@cup.hp.com>
33969 * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
33971 (final_emit_insn_group_barriers): Remove unused variable prev_insn.
33973 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
33976 * diagnostic.c (diagnostic_initialize): Initialize
33977 some_warnings_are_errors.
33978 (diagnostic_finish): New.
33979 (diagnostic_action_after_output): Call it before exiting.
33980 (diagnostic_report_diagnostic): Do not print message here. Set
33981 some_warnings_are_errors.
33982 * diagnostic.h (diagnostic_context): Delete
33983 issue_warnings_are_errors_message. Add some_warnings_are_errors.
33984 (diagnostic_finish): Declare.
33985 * toplev.c (toplev_main): Call it before exit.
33987 2010-04-09 Jason Merrill <jason@redhat.com>
33990 * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
33991 for incomplete type.
33994 * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
33995 based on a warning flag.
33997 2010-04-09 Richard Guenther <rguenther@suse.de>
33999 * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
34001 2010-04-09 Iain Sandoe <iains@gcc.gnu.org>
34004 * varasm.c (default_assemble_visibility): Wrap vars that are
34005 set, but unused, by targets without GAS.
34006 * config/rs6000/rs6000.c (paired_emit_vector_compare):
34007 Remove set, but unused, vars.
34008 (rs6000_legitimize_tls_address): Likewise.
34009 (altivec_expand_dst_builtin): Likewise.
34010 * config/darwin.c (machopic_classify_symbol): Likewise.
34011 (machopic_indirection_name): Likewise.
34013 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
34015 * config/i386/i386.md (DWI): New mode iterator.
34016 (S): New mode attribute.
34017 (shift_operand): Ditto.
34018 (shift_immediate_operand): Ditto.
34019 (ashl_input_operand): Ditto.
34020 (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
34021 using SDWIM mode iterator.
34022 (*ashl<mode>3_doubleword): New insn_and_split_pattern. Macroize
34023 pattern from *ashl{di,ti}3_1 and corresponding splitters using
34025 (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
34026 from corresponding peephole2 patterns.
34027 (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
34028 and x86_64_shift_adj_1 using SWI48 mode iterator.
34029 (x86_shift<mode>_adj_2): Ditto.
34030 (*ashldi3_1_rex64): Split TYPE_LEA pattern.
34031 (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
34032 using SWI48 mode iterator.
34033 (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
34034 *ashldi3_cmp_rex64 using SWI mode iterator.
34035 (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
34036 *ashldi3_cconly_rex64 using SWI mode iterator.
34037 * config/i386/i386.c (ix86_split_ashl): Update for renamed
34038 x86_shift<mode>_adj_{1,2}.
34039 (ix86_split_ashr): Ditto.
34040 (ix86_split_lshr): Ditto.
34042 2010-04-09 Richard Guenther <rguenther@suse.de>
34044 * target.h (builtin_conversion): Pass in input and output types.
34045 * targhooks.c (default_builtin_vectorized_conversion): Adjust.
34046 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
34047 * tree-vect-stmts.c (vectorizable_conversion): Adjust.
34048 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
34050 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
34052 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
34054 2010-04-09 Richard Guenther <rguenther@suse.de>
34057 * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
34059 2010-04-09 Richard Guenther <rguenther@suse.de>
34061 * tree-vectorizer.h (struct _stmt_vec_info): Document
34062 that vectype is the type of the LHS.
34063 (supportable_widening_operation, supportable_narrowing_operation):
34064 Get both input and output vector types as arguments.
34065 (vect_is_simple_use_1): Declare.
34066 (get_same_sized_vectype): Likewise.
34067 * tree-vect-loop.c (vect_determine_vectorization_factor):
34068 Set STMT_VINFO_VECTYPE to the vector type of the def.
34069 (vectorizable_reduction): Adjust.
34070 * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
34071 Adjust. Specify the output vector type.
34072 (vect_pattern_recog_1): Adjust.
34073 * tree-vect-stmts.c (get_same_sized_vectype): New function.
34074 (vectorizable_call): Adjust.
34075 (vectorizable_conversion): Likewise.
34076 (vectorizable_operation): Likewise.
34077 (vectorizable_type_demotion): Likewise.
34078 (vectorizable_type_promotion): Likewise.
34079 (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
34081 (vect_is_simple_use_1): New function.
34082 (supportable_widening_operation): Get both input and output
34084 (supportable_narrowing_operation): Likewise.
34085 * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
34087 2010-04-09 Kai Tietz <kai.tietz@onevision.com>
34089 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
34090 __thiscall and _thiscall as predefined macros.
34091 * config/i386/i386.c (ix86_handle_cconv_attribute): Add
34092 thiscall attribute handling.
34093 (ix86_comp_type_attributes): Likewise.
34094 (ix86_function_regparm): Likewise.
34095 (ix86_return_pops_args): Likewise.
34096 (init_cumulative_args): Likewise.
34097 (find_drap_reg): Likewise.
34098 (ix86_static_chain): Likewise.
34099 (x86_this_parameter): Likewise.
34100 (x86_output_mi_thunk): Likewise.
34101 (ix86_attribute_table): Add description for thiscall attribute.
34102 * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
34103 * doc/extend.texi: Add documentation for thiscall.
34105 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
34108 * c.opt (Wint-to-pointer-cast): Available in C++.
34109 * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
34111 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
34113 * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
34114 * calls.c (expand_call): Pass the function type to aggregate_value_p.
34115 * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
34116 the target function of a CALL_EXPR. Honor TREE_ADDRESSABLE on the
34117 function type instead. Reorder and simplify checks.
34119 * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
34121 2010-04-08 Jing Yu <jingyu@google.com>
34122 Zdenek Dvorak <ook@ucw.cz>
34124 PR tree-optimization/42720
34125 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
34126 loop unswitch conditions here from ...
34127 (tree_unswitch_single_loop): ... here.
34129 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
34131 * tree-if-conv.c: Fix comments and simplify logic.
34133 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
34135 * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
34136 (tree_if_conversion): Same. Update call to if_convertible_loop_p.
34137 (main_tree_if_conversion): Update call to tree_if_conversion.
34139 2010-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
34142 * doc/invoke.texi (-b,-V): Delete.
34143 * doc/tm.texi: Do not mention -b.
34144 * gcc.c (display_help): Delete -b and -V.
34145 (process_command): Delete -b and -V.
34146 * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
34148 2010-04-08 Christian Borntraeger <borntraeger@de.ibm.com>
34149 Wolfgang Gellerich <gellerich@de.ibm.com>
34151 Implement target hook for loop unrolling
34152 * target.h (loop_unroll_adjust): Add a new target hook function.
34153 * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
34154 * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
34155 * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
34156 (s390_loop_unroll_adjust): Implement the new target hook for s390.
34157 * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
34159 (decide_unroll_stupid): Likewise.
34161 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34164 * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
34166 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34168 * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
34169 (Specific, *-*-solaris2*): Likewise.
34170 Don't prefer Sun as over GNU as.
34172 2010-04-08 Wolfgang Gellerich <gellerich@de.ibm.com>
34174 * config/s390/s390.c (override_options): Adjust the z10 defaults
34175 for max-unroll-times, max-completely-peeled-insns
34176 and max-completely-peel-times.
34178 2010-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34180 * config/s390/s390.c (s390_expand_movmem): Issue prefetch
34181 instructions for z10.
34182 (s390_expand_setmem): Likewise.
34183 (s390_expand_cmpmem): Likewise.
34185 2010-04-08 Richard Guenther <rguenther@suse.de>
34187 PR tree-optimization/43679
34188 * tree-ssa-pre.c (eliminate): Only propagate copies.
34190 2010-04-08 Jakub Jelinek <jakub@redhat.com>
34193 * expr.c (block_move_libcall_safe_for_call_parm): Avoid
34194 set but not used variable warning.
34196 2010-04-08 Wei Guozhi <carrot@google.com>
34199 * config/arm/arm.c (thumb1_size_rtx_costs): New function.
34200 (arm_size_rtx_costs): Call the new function when optimized for size.
34202 2010-04-08 Jakub Jelinek <jakub@redhat.com>
34205 * cfgexpand.c (expand_debug_expr): If for non-NULL offset
34206 op0 is not a MEM, just return NULL instead of assertion
34208 (discover_nonconstant_array_refs): Don't walk debug stmts.
34210 2010-04-08 Doug Kwan <dougkwan@google.com>
34212 * configure.ac: Recognize gold and do not use its version number
34213 to test ld features.
34214 * configure: Regenerate.
34216 2010-04-08 Maxim Kuvyrkov <maxim@codesourcery.com>
34218 PR middle-end/40815
34219 * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
34220 (negate_value): Move code to push elements to broken_up_substracts ...
34221 (eliminate_plus_minus_pair): ... here. Push operands that have no
34222 negative pair to plus_negates.
34223 (repropagate_negates, init_reassoc, fini_reassoc): Update.
34225 2010-04-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
34227 * doc/install.texi (Configuration): Move description of
34228 --enable-lto, --with-libelf*, --enable-gold from Java section to
34231 * doc/generic.texi (Working with declarations)
34232 (Function Properties, C and C++ Trees): Fix typos.
34233 * doc/sourcebuild.texi (Top Level): Likewise.
34235 2010-04-07 Jakub Jelinek <jakub@redhat.com>
34238 * tree.h (DECL_READ_P): Define.
34239 (struct tree_decl_common): Add decl_read_flag.
34240 * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
34241 a set but not used warning.
34242 (merge_decls): Merge DECL_READ_P flag.
34243 (finish_decl, build_compound_literal): Set DECL_READ_P flag.
34244 (finish_function): Issue -Wunused-but-set-parameter diagnostics.
34245 * c-common.c (handle_used_attribute, handle_unused_attribute):
34247 * c-tree.h (default_function_array_read_conversion, mark_exp_read):
34249 * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
34251 (default_conversion, c_process_expr_stmt): Call mark_exp_read.
34252 * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
34253 c_parser_binary_expression, c_parser_cast_expression,
34254 c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
34255 Call default_function_array_read_conversion instead of
34256 default_function_array_conversion where needed.
34257 (c_parser_unary_expression, c_parser_conditional_expression,
34258 c_parser_postfix_expression_after_primary, c_parser_initelt):
34259 Likewise. Call mark_exp_read where needed.
34260 (c_parser_statement_after_labels, c_parser_asm_operands,
34261 c_parser_typeof_specifier, c_parser_sizeof_expression,
34262 c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
34264 * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
34266 * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
34267 (warn_unused_but_set_parameter): Default to warn_unused
34269 * doc/invoke.texi: Document -Wunused-but-set-variable and
34270 -Wunused-but-set-parameter.
34272 * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
34273 used count variable.
34274 * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
34275 when operandN variables aren't used in the body of the expander
34277 * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
34278 FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
34279 * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
34280 * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
34281 FOR_EACH_IMM_USE_ON_STMT): Likewise.
34282 * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
34283 * tree.c (PROCESS_ARG): Likewise.
34285 2010-04-07 Simon Baldwin <simonb@google.com>
34287 * diagnostic.h (diagnostic_override_option_index): New macro to
34288 set a diagnostic's option_index.
34289 * c-tree.h (c_cpp_error): Add warning reason argument.
34290 * opts.c (_warning_as_error_callback): New.
34291 (register_warning_as_error_callback): Store callback for
34292 warnings enabled via enable_warning_as_error.
34293 (enable_warning_as_error): Call callback, minor code tidy.
34294 * opts.h (register_warning_as_error_callback): Declare.
34295 * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
34296 response to -Werror=.
34297 (c_common_init_options): Register warning_as_error_callback in opts.c.
34298 * common.opt: Add -Wno-cpp option.
34299 * c-common.c (struct reason_option_codes_t): Map cpp warning
34300 reason codes to gcc option indexes.
34301 * (c_option_controlling_cpp_error): New function, lookup the gcc
34302 option index for a cpp warning reason code.
34303 * (c_cpp_error): Add warning reason argument, call
34304 c_option_controlling_cpp_error for diagnostic_override_option_index.
34305 * doc/invoke.texi: Document -Wno-cpp.
34307 2010-04-07 Richard Guenther <rguenther@suse.de>
34309 * ipa-reference.c (mark_load): Use get_base_address.
34310 (mark_store): Likewise.
34312 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
34313 inserting GIMPLE_NOPs into the IL.
34314 * tree-ssa-structalias.c (get_constraint_for_component_ref):
34315 Explicitly strip handled components and indirect references.
34317 * fold-const.c (fold_unary_loc): Do not strip qualifiers when
34318 folding address expressions.
34319 * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
34320 * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
34321 operand_equal_p to compare decls.
34322 (ptr_deref_may_alias_decl_p): Likewise.
34323 * tree-ssa-operands.c (get_asm_expr_operands): Simplify
34324 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
34325 Handle reversed comparison ops.
34326 * tree-sra.c (asm_visit_addr): Use get_base_address.
34327 * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
34328 * ipa-reference.c (mark_address): Use get_base_address.
34330 2010-04-07 Richard Guenther <rguenther@suse.de>
34332 * tree-ssa-forwprop.c (forward_propagate_addr_expr):
34333 Propagate constants everywhere.
34335 2010-04-07 Jakub Jelinek <jakub@redhat.com>
34338 * tree.c (MAX_INT_CACHED_PREC): Define.
34339 (nonstandard_integer_type_cache): New array.
34340 (build_nonstandard_integer_type): Cache results for precision
34341 <= MAX_INT_CACHED_PREC.
34343 2010-04-07 Richard Guenther <rguenther@suse.de>
34345 * doc/invoke.texi (-fargument-alias, -fargument-noalias,
34346 -fargument-noalias-global, -fargument-noalias-anything): Remove.
34347 * common.opt: Likewise.
34348 * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
34349 * alias.c (base_alias_check): Remove flag_argument_noalias handling.
34350 (nonoverlapping_memrefs_p): Likewise.
34351 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
34352 * opts.c (common_handle_option): Handle OPT_fargument_alias,
34353 OPT_fargument_noalias, OPT_fargument_noalias_anything and
34354 OPT_fargument_noalias_global for backward compatibility.
34356 2010-04-07 Richard Guenther <rguenther@suse.de>
34358 PR tree-optimization/43270
34359 * tree-vrp.c (check_array_ref): Fix flexible array member detection.
34360 * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
34361 * tree-ssa-pre.c (phi_translate_1): Adjust.
34362 (fully_constant_expression): Split out vn_reference handling to ...
34363 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
34364 Fold reads from constant strings.
34365 (vn_reference_lookup): Handle fully constant references.
34366 (vn_reference_lookup_pieces): Likewise.
34367 * Makefile.in (expmed.o-warn): Add -Wno-error.
34369 2010-04-07 Martin Jambor <mjambor@suse.cz>
34371 * tree-sra.c (find_param_candidates): Allow scalar va_list types.
34373 2010-04-07 Iain Sandoe <iains@gcc.gnu.org>
34376 * gcc.c: Add -static-libstdc++ to list of recognized options.
34378 2010-04-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34380 * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
34382 2010-04-07 Richard Guenther <rguenther@suse.de>
34384 PR middle-end/42617
34385 * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
34386 bases build simple mem attributes to retain points-to information.
34388 2010-04-07 Richard Guenther <rguenther@suse.de>
34390 PR middle-end/42617
34391 * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
34392 preserve points-to related information.
34394 2010-04-07 Richard Guenther <rguenther@suse.de>
34396 PR middle-end/42617
34397 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
34398 discard plain indirect references.
34399 * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
34400 * tree.c (tree_nop_conversion): Likewise.
34402 2010-04-07 Dodji Seketeli <dodji@redhat.com>
34405 * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
34407 2010-04-06 Kai Tietz <kai.tietz@onevision.com>
34409 * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
34410 calling convention attributes on METHOD_TYPEs for w64 ABI, too.
34412 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
34414 * tree-if-conv.c: Fix indentation and comments.
34416 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
34418 * tree-if-conv.c: Sort static functions in topological order.
34420 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
34422 * tree-if-conv.c: Fix indentation and comments.
34424 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
34426 PR middle-end/43519
34427 * graphite-clast-to-gimple.c (max_signed_precision_type): Use
34428 lang_hooks.types.type_for_size instead of
34429 build_nonstandard_integer_type.
34430 When converting an unsigned type to signed, double its precision.
34431 (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
34432 (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
34433 (graphite_create_new_loop_guard): When ub + 1 wraps around,
34436 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
34438 PR middle-end/43519
34439 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
34440 POINTER_PLUS_EXPR for pointer types.
34442 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
34444 PR middle-end/43519
34445 * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
34446 * graphite-clast-to-gimple.c: Include langhooks.h.
34447 (max_signed_precision_type): New.
34448 (max_precision_type): Takes two types as arguments.
34449 (precision_for_value): New.
34450 (precision_for_interval): New.
34451 (gcc_type_for_interval): New.
34452 (gcc_type_for_value): New.
34453 (gcc_type_for_clast_term): New.
34454 (gcc_type_for_clast_red): New.
34455 (gcc_type_for_clast_bin): New.
34456 (gcc_type_for_clast_expr): Split up into several functions.
34457 (gcc_type_for_clast_eq): Rewritten.
34458 (compute_bounds_for_level): New.
34459 (compute_type_for_level_1): New.
34460 (compute_type_for_level): New.
34461 (gcc_type_for_cloog_iv): Removed.
34462 (gcc_type_for_iv_of_clast_loop): Rewritten.
34463 (graphite_create_new_loop): Compute the lower and upper bound types
34464 with gcc_type_for_clast_expr.
34465 (graphite_create_new_loop_guard): Same.
34466 (find_cloog_iv_in_expr): Removed.
34467 (compute_cloog_iv_types_1): Removed.
34468 (compute_cloog_iv_types): Removed.
34469 (gloog): Do not call compute_cloog_iv_types.
34470 * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
34471 GBB_CLOOG_IV_TYPES.
34472 (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
34473 * sese.h (struct gimple_bb): Removed field cloog_iv_types.
34474 (GBB_CLOOG_IV_TYPES): Removed.
34476 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
34478 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
34479 gimple_phi_num_args of the loop close SSA phi node is equal to 1.
34480 (detect_commutative_reduction): Same.
34482 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
34484 * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
34485 call to verify_ssa. Invoke verify_loop_closed_ssa with an extra
34487 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
34488 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
34489 (rewrite_commutative_reductions_out_of_ssa): Same.
34490 * passes.c (execute_function_todo): Call verify_ssa for every pass
34491 in the LNO. Invoke verify_loop_closed_ssa with an extra argument.
34492 * tree-flow.h (verify_loop_closed_ssa): Update declaration.
34493 * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
34494 with an extra argument.
34495 * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same. Call
34496 verify_ssa only when the extra argument is true.
34497 (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
34498 with an extra argument.
34499 (tree_transform_and_unroll_loop): Same.
34501 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
34503 * passes.c (execute_function_todo): Call verify_loop_closed_ssa
34504 for all the passes of the LNO having LOOP_CLOSED_SSA.
34505 * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
34506 * tree-loop-distribution.c (pass_loop_distribution): Same.
34507 * tree-pass.h (TODO_verify_loops): Removed.
34508 * tree-ssa-loop.c (pass_tree_loop_init): Same.
34510 (pass_tree_unswitch): Same.
34511 (pass_predcom): Same.
34512 (pass_vectorize): Same.
34513 (pass_linear_transform): Same.
34514 (pass_graphite_transforms): Same.
34515 (pass_iv_canon): Same.
34516 (pass_complete_unroll): Same.
34517 (pass_complete_unrolli): Same.
34518 (pass_parallelize_loops): Same.
34519 (pass_loop_prefetch): Same.
34520 (pass_iv_optimize): Same.
34522 2010-04-06 Changpeng Fang <changpeng.fang@amd.com>
34524 PR middle-end/32824
34525 * passes.c (init_optimization_passes): Move pass_lim before
34526 pass_copy_prop and pass_dce_loop.
34528 2010-04-06 Jakub Jelinek <jakub@redhat.com>
34531 * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
34532 instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
34533 (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
34534 MULTI_* defines for 4 argument vpermil2p* builtins.
34536 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
34538 * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
34539 * config/i386/i386.c (x86_maybe_negate_const_int): New.
34540 (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
34541 * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
34542 *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
34543 *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
34544 *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
34545 Use x86_maybe_negate_const_int to output insn mnemonic.
34546 (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto. Remove overflow
34547 check from instruction predicate. Update comments.
34548 * config/i386/sync.md (sync_add<mode>): Use
34549 x86_maybe_negate_const_int to output insn mnemonic.
34551 2010-04-06 Jan Hubicka <jh@suse.cz>
34553 PR tree-optimization/42906
34554 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
34555 IGNORE_SELF argument. Set visited_control_parents for fully
34557 (find_obviously_necessary_stmts): Update call of
34558 mark_control_dependent_edges_necessary.
34559 (propagate_necessity): Likewise. Handle PHI edges more curefully.
34561 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
34563 * config/i386/i386.md: Remove comment about 'e' and 'E'
34566 2010-04-06 Richard Guenther <rguenther@suse.de>
34568 PR tree-optimization/43627
34569 * tree-vrp.c (extract_range_from_unary_expr): Widenings
34570 of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
34573 2010-04-06 Jakub Jelinek <jakub@redhat.com>
34575 * BASE-VER: Change to 4.6.0.
34578 * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
34581 2010-04-06 Richard Guenther <rguenther@suse.de>
34583 PR middle-end/43661
34584 * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
34586 2010-04-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
34588 * doc/invoke.texi (Optimize Options): Document that LTO
34589 won't remove object access purely due to incompatible
34592 2010-04-04 Matthias Klose <doko@ubuntu.com>
34594 * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
34595 Initialize variable.
34597 2010-04-03 Richard Guenther <rguenther@suse.de>
34599 PR middle-end/42509
34600 * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
34601 require a non-NULL MEM_OFFSET.
34603 2010-04-02 Steven Bosscher <steven@gcc.gnu.org>
34605 * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
34606 basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
34607 collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
34608 config/alpha/predicates.md, config/arm/arm.md,
34609 config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
34610 config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
34611 config/darwin9.h, config/darwin.c, config/darwin.h,
34612 config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
34613 config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
34614 config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
34615 config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
34616 config/mips/mips.md, config/mn10300/mn10300.c,
34617 config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
34618 config/rs6000/aix.h, config/rs6000/dfp.md,
34619 config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
34620 config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
34621 config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
34622 config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
34623 config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
34624 config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
34625 c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
34626 diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
34627 doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
34628 doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
34629 fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
34630 gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
34631 graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
34632 graphite-dependences.c, graphite-poly.c, graphite-poly.h,
34633 graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
34634 graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
34635 intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
34636 ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
34637 ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
34638 loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
34639 objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
34640 opt-functions.awk, opth-gen.awk, params.def, passes.c,
34641 postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
34642 rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
34643 store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
34644 tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
34645 tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
34646 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
34647 tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
34648 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
34649 tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
34650 tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
34651 tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
34652 tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
34653 tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
34654 unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
34656 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
34659 * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
34660 * aclocal.m4: Regenerate.
34662 2010-04-02 Richard Guenther <rguenther@suse.de>
34664 PR tree-optimization/43629
34665 * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
34666 if we have seen a constant value.
34668 2010-04-02 Joseph Myers <joseph@codesourcery.com>
34670 * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
34672 2010-04-02 Richard Earnshaw <rearnsha@arm.com>
34675 * arm.c (legitimize_tls_address): Adjust call to
34676 gen_tls_load_dot_plus_four.
34677 (arm_note_pic_base): New function.
34678 (arm_cannot_copy_insn_p): Use it.
34679 * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
34682 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
34687 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
34689 * Makefile.in ($(out_object_file)): Depend on
34690 gt-$(basename $(notdir $(out_file))).h.
34692 2010-04-01 Ralf Corsépius <ralf.corsepius@rtems.org>
34694 * config.gcc (lm32-*-rtems*): Add t-lm32.
34696 2010-04-01 Joel Sherrill <joel.sherrill@oarcorp.com>
34698 * config.gcc: Add lm32-*-rtems*.
34699 * config/lm32/rtems.h: New file.
34701 2010-04-01 Dave Korn <dave.korn.cygwin@gmail.com>
34704 * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
34706 2010-04-01 Jakub Jelinek <jakub@redhat.com>
34708 * dwarf2out.c (output_compilation_unit_header): For
34709 -gdwarf-4 use version 4 instead of version 3.
34710 (output_line_info): For version 4 and above emit additional
34711 maximum ops per insn header field.
34712 (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
34714 * dwarf2out.c (is_c_family, is_java): Remove.
34715 (lower_bound_default): New function.
34716 (add_bound_info, gen_descr_array_type_die): Use it.
34718 2010-04-01 Dodji Seketeli <dodji@redhat.com>
34721 * dwarf2out.c (gen_variable_die): Allow debug info for variable
34722 re-declaration when it happens in a function.
34724 2010-04-01 Aldy Hernandez <aldyh@redhat.com>
34726 * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
34727 (cgraph_remove_function_insertion_hook): Same.
34728 (cgraph_call_function_insertion_hooks): Same.
34730 2010-04-01 Richard Guenther <rguenther@suse.de>
34732 PR middle-end/43614
34733 * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
34734 and TREE_THIS_VOLATILE.
34735 (copy_ref_info): Likewise.
34736 * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
34737 * tree.c (build6_stat): Ignore side-effects of all but arg5
34738 for TARGET_MEM_REF. Set TREE_THIS_VOLATILE from arg5 of
34741 2010-04-01 Richard Guenther <rguenther@suse.de>
34743 PR tree-optimization/43607
34744 * ipa-type-escape.c (check_call): Do not access non-existing
34747 2010-04-01 Richard Guenther <rguenther@suse.de>
34749 PR middle-end/43602
34751 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
34752 Jack Howarth <howarth@bromo.med.uc.edu>
34754 * tree-profile.c (tree_init_ic_make_global_vars): Make static
34757 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34759 * doc/install.texi (Prerequisites): Document libelf usability on
34760 IRIX 5/6 and Solaris 2.
34761 (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
34762 Update GNU as, GNU ld requirements.
34763 (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
34764 Document Sun Studio compiler download.
34765 Update and simplify as, ld recommendations.
34766 (Specific, *-*-solaris2.7): Note obsoletion, removal.
34768 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34770 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
34771 with_tune_32 to pentium4.
34773 2010-04-01 Uros Bizjak <ubizjak@gmail.com>
34775 * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
34777 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34779 * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
34780 obsoletion, removal.
34782 Document GNU as requirement.
34783 Update configure requirements.
34784 (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
34785 Recomment IRIX 6.5.18+.
34786 Document IDF/IDL requirement.
34787 Document GNU as requirement.
34788 Document GNU ld bootstrap failure.
34789 Remove freeware.sgi.com reference.
34791 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34793 * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
34794 UNIX V4.0, V5.0 obsoletion, removal.
34795 Remove --with-gc=simple reference.
34796 Update VM requirements during bootstrap.
34797 Remove -oldas bootstrap description.
34798 Update binutils reference.
34799 Remove comparison failure note.
34801 2010-03-31 Richard Guenther <rguenther@suse.de>
34802 Zdenek Dvorak <ook@ucw.cz>
34803 Sebastian Pop <sebastian.pop@amd.com>
34805 PR middle-end/43464
34806 * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
34807 with multiple arguments.
34808 (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
34810 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
34812 * graphite-dependences.c (print_pddr): Call print_pdr with an
34814 * graphite-poly.c (debug_pdr): Add an extra argument for the
34817 (print_pbb_domain): Same.
34819 (print_scop_context): Same.
34820 (print_scop): Same.
34821 (print_cloog): Same.
34822 (debug_pbb_domain): Same.
34824 (print_pdrs): Same.
34825 (debug_pdrs): Same.
34826 (debug_scop_context): Same.
34827 (debug_scop): Same.
34828 (debug_cloog): Same.
34829 (print_scop_params): Same.
34830 (debug_scop_params): Same.
34831 (print_iteration_domain): Same.
34832 (print_iteration_domains): Same.
34833 (debug_iteration_domain): Same.
34834 (debug_iteration_domains): Same.
34835 (print_scattering_function): Same.
34836 (print_scattering_functions): Same.
34837 (debug_scattering_function): Same.
34838 (debug_scattering_functions): Same.
34839 * graphite-poly.h (debug_pdr): Update declaration.
34841 (print_pbb_domain): Same.
34843 (print_scop_context): Same.
34844 (print_scop): Same.
34845 (print_cloog): Same.
34846 (debug_pbb_domain): Same.
34848 (print_pdrs): Same.
34849 (debug_pdrs): Same.
34850 (debug_scop_context): Same.
34851 (debug_scop): Same.
34852 (debug_cloog): Same.
34853 (print_scop_params): Same.
34854 (debug_scop_params): Same.
34855 (print_iteration_domain): Same.
34856 (print_iteration_domains): Same.
34857 (debug_iteration_domain): Same.
34858 (debug_iteration_domains): Same.
34859 (print_scattering_function): Same.
34860 (print_scattering_functions): Same.
34861 (debug_scattering_function): Same.
34862 (debug_scattering_functions): Same.
34864 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
34866 * graphite-poly.c (print_scattering_function_1): New.
34867 (print_scattering_function): Call it.
34868 (print_scop_params): Remove spaces at the end of lines.
34869 (print_cloog): New.
34870 (debug_cloog): New.
34871 * graphite-poly.h (print_cloog): Declared.
34872 (debug_cloog): Declared.
34874 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
34876 * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
34878 * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
34879 * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
34880 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
34881 to switch between adding the IV bump in loop->latch or in loop->header.
34883 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
34885 * graphite-poly.c (print_scattering_function): Pretty print following
34886 the scoplib format.
34888 (print_pbb_domain): Same.
34889 (dump_gbb_cases): Same.
34890 (dump_gbb_conditions): Same.
34891 (print_pdrs): Same.
34893 (print_scop_params): Same.
34894 (print_scop_context): Same.
34895 (print_scop): Same.
34896 (print_pbb_body): New.
34897 (lst_indent_to): New.
34898 (print_lst): Start new lines with a #.
34899 * graphite-poly.h (pbb_bb): New.
34900 (pbb_index): Use pbb_bb.
34901 * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
34903 * tree-data-ref.c (dump_data_reference): Start new lines with a #.
34905 2010-03-31 Jakub Jelinek <jakub@redhat.com>
34907 * dwarf2out.c (size_of_die): For -gdwarf-4 use
34908 uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
34909 and 0 instead of 1 for dw_val_class_flag.
34910 (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
34911 dw_val_class_range_list, dw_val_class_loc_list,
34912 dw_val_class_lineptr and dw_val_class_macptr, use
34913 DW_FORM_flag_present for dw_val_class_flag and
34914 DW_FORM_exprloc for dw_val_class_loc.
34915 (output_die): For -gdwarf-4 print dw_val_class_loc
34916 size as uleb128 instead of 1 or 2 bytes and don't print
34917 anything for dw_val_class_flag.
34919 * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
34920 instead of cselib_lookup following by tweaking locs->setting_insn.
34923 * cselib.c (cselib_process_insn): Clear cselib_current_insn
34924 even before returning from label, setjmp call or volatile asm
34927 2010-03-31 Richard Guenther <rguenther@suse.de>
34929 PR middle-end/43600
34930 * cgraphunit.c (cgraph_output_in_order): Do not allocate
34931 temporary data on stack.
34933 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34935 * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
34936 (PUSHSECTION_ASM_OP): Remove.
34937 (POPSECTION_ASM_OP): Remove.
34938 (PUSHSECTION_FORMAT): Remove.
34939 * config/sol2.h (PUSHSECTION_FORMAT): Define.
34940 * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
34941 * config/sol2.c (solaris_output_init_fini): Use it.
34943 2010-03-31 Jie Zhang <jie@codesourcery.com>
34946 * opt-functions.awk (var_type_struct): Use signed char type
34947 for simple variables.
34949 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34951 * config/sol2.c: Include output.h.
34952 (solaris_assemble_visibility): New function.
34953 * config/t-sol2 (sol2.o): Add output.h dependency.
34954 * config/sol2-protos.h (solaris_assemble_visibility): Declare.
34955 * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
34958 2010-03-31 Jakub Jelinek <jakub@redhat.com>
34961 * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
34962 V2SImode or XFmode on PRE_DEC.
34965 * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
34968 2010-03-31 Jie Zhang <jie@codesourcery.com>
34971 * reload.h (caller_save_initialized_p): Declare.
34972 * toplev.c (backend_init_target): Don't call
34973 init_caller_save but set caller_save_initialized_p to false.
34974 * caller-save.c (caller_save_initialized_p): Define.
34975 (init_caller_save): Check caller_save_initialized_p.
34976 * ira.c (ira): Call init_caller_save if flag_caller_saves.
34978 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34981 * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
34982 and soft-fp/t-softfp to tmake_file.
34983 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
34984 (LIBGCC2_TF_CEXT): Define.
34987 2010-03-30 Alexandre Oliva <aoliva@redhat.com>
34990 * cselib.c (n_useless_values): Document handling of debug locs.
34991 (n_useless_debug_values, n_debug_values): New variables.
34992 (new_elt_loc_list): Don't add to debug values, keep count.
34993 (promote_debug_loc): New.
34994 (cselib_reset_table): Zero new variables.
34995 (entry_and_rtx_equal_p): Promote debug locs.
34996 (discard_useless_locs): Increment n_useless_debug_values for
34998 (remove_useless_values): Adjust n_useless_values and n_debug_values
34999 with n_useless_debug_values.
35000 (add_mem_for_addr): Promote debug locs.
35001 (cselib_lookup_mem): Likewise.
35002 (cselib_lookup_addr): Renamed to...
35003 (cselib_lookup_addr_1): ... this. Promote debug locs. Don't call...
35004 (cselib_log_lookup): ... this. Turn into...
35005 (cselib_lookup_addr): ... new wrapper.
35006 (cselib_lookup_from_insn): New.
35007 (cselib_invalidate_regno): Increment n_useless_debug_values for
35009 (cselib_invalidate_mem): Likewise.
35010 (cselib_process_insn): Take n_deleted and n_debug_values into
35011 account to guard remove_useless_value call.
35012 (cselib_finish): Zero n_useless_debug_values.
35013 * cselib.h (cselib_lookup_from_insn): Declare.
35014 * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
35015 (sched_analyze_2): Likewise.
35017 2010-03-30 Jakub Jelinek <jakub@redhat.com>
35019 * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
35021 (adjust_mems): Replace narrowing SUBREG of expression containing
35022 just PLUS, MINUS, MULT and ASHIFT of registers and constants
35023 with operations in the narrower mode.
35026 * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
35027 regs_invalidated_by_call instead all call_used_reg_set registers.
35029 2010-03-30 Sebastian Pop <sebastian.pop@amd.com>
35031 PR middle-end/43430
35032 * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
35033 pointer comparisons with types_compatible_p.
35034 * tree-vect-stmts.c (vectorizable_call): Same.
35035 (vectorizable_condition): Same.
35037 2010-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35039 * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
35040 stack check if the mask would be zero.
35042 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
35043 Jack Howarth <howarth@bromo.med.uc.edu>
35045 * tree-profile.c (tree_init_ic_make_global_vars): Make static
35048 2010-03-30 Joseph Myers <joseph@codesourcery.com>
35051 * libgcc-std.ver (GCC_4.5.0): Define version. Include __unordxf2
35053 * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
35054 Include ___unordxf2 and ___unordtf2.
35055 * config/i386/libgcc-glibc.ver: Do not define inheritance from
35058 2010-03-30 Tarik Graba <tarik.graba@telecom-paristech.fr>
35060 * config/lm32/t-lm32: New file.
35061 * config.gcc: Use the above file when targetting lm32.
35063 2010-03-28 Duncan Sands <baldrick@free.fr>
35065 * Makefile.in (PLUGIN_HEADERS): Add except.h.
35067 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
35069 PR middle-end/43431
35070 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
35071 Improve vectorization cost model diagnostic.
35073 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
35075 PR middle-end/43436
35076 * tree-vect-data-refs.c (vect_analyze_data_refs): When
35077 compute_data_dependences_for_loop returns false, early exit
35078 and output an extra diagnostic for the failed data reference
35081 2010-03-29 Richard Guenther <rguenther@suse.de>
35083 PR tree-optimization/43560
35084 * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
35085 (can_sm_ref_p): Treat stores to readonly locations as trapping.
35087 2010-03-29 Jie Zhang <jie@codesourcery.com>
35090 * toplev.c (process_options): Set optimization_default_node
35091 and optimization_current_node.
35092 * opts.c (decode_options): Don't set optimization_default_node
35093 and optimization_current_node.
35095 2010-03-29 Ralf Corsépius <ralf.corsepius@rtems.org>
35097 * config/rtems.h: Abandon -qrtems_debug.
35099 2010-03-28 Jan Hubicka <jh@suse.cz>
35101 PR tree-optimization/43505
35102 * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
35103 map should not be copied.
35105 2010-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
35107 PR middle-end/41674
35108 * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
35109 cdtors, set DECL_PRESERVE_P.
35110 * ipa.c (cgraph_externally_visible_p): Return true if declaration
35111 should be preseved.
35113 2010-03-27 Uros Bizjak <ubizjak@gmail.com>
35115 PR tree-optimization/43528
35116 * stor-layout.c (place_field): Check that constant fits into
35117 unsigned HWI when skipping calculation of MS bitfield layout.
35119 2010-03-27 Jan Hubicka <jh@suse.cz>
35121 PR middle-end/43391
35122 * varasm.c (make_decl_rtl): Deal with COMMON flag to make
35123 notice_global_symbol work.
35125 2010-03-27 Jakub Jelinek <jakub@redhat.com>
35127 * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
35128 instead of dwarf2out_decl.
35129 (struct var_loc_node): Remove section_label field.
35130 (dwarf2out_function_decl): New function.
35131 (dwarf2out_var_location): Don't set section_label field.
35132 (dwarf2out_begin_function): Don't empty decl_loc_table here.
35134 2010-03-26 Michael Meissner <meissner@linux.vnet.ibm.com>
35136 PR tree-optimization/43544
35137 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
35138 First argument for builtin vectorized function hook is now a
35139 tree to be able to distinguish between machine specific and
35141 * targhooks.c (default_builtin_vectorized_function): Ditto.
35142 * targhooks.h (default_builtin_vectorized_function): Ditto.
35143 * target.h (struct gcc_target): Ditto.
35144 * tree-vect-stmts.c (vectorizable_function): Ditto.
35145 * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
35146 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
35149 2010-03-26 Joseph Myers <joseph@codesourcery.com>
35152 * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
35153 nested binding iff it is a FUNCTION_DECL.
35154 (store_parm_decls_newstyle): Pass nested=true to bind for
35155 FUNCTION_DECLs amongst parameters.
35157 2010-03-26 Jakub Jelinek <jakub@redhat.com>
35159 * var-tracking.c (vt_expand_loc_callback): Don't run
35160 cselib_expand_value_rtx_cb in dummy mode if
35161 cselib_dummy_expand_value_rtx_cb returned false.
35163 * var-tracking.c (emit_note_insn_var_location): For one part
35164 notes with offset 0, don't add EXPR_LIST around the location.
35165 * dwarf2out.c (loc_descriptor, dw_loc_list_1,
35166 add_location_or_const_value_attribute): Adjust for that change.
35169 * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
35170 into first operand and location into second.
35171 (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
35172 dw_cfi_oprnd_loc for DW_CFA_expression.
35173 (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
35174 (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
35175 assume first argument is regnum and second argument is location.
35177 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
35180 * config/alpha/alpha.md (*cmp_sadd_si): Change mode
35181 of scratch register to DImode. Split to DImode comparison operator.
35182 Use SImode subreg of scratch register in the multiplication.
35183 (*cmp_sadd_sidi): Ditto.
35184 (*cmp_ssub_si): Ditto.
35185 (*cmp_ssub_sidi): Ditto.
35187 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
35190 * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
35191 Remove invalid assert and wrong comment.
35193 2010-03-26 Jakub Jelinek <jakub@redhat.com>
35196 * flags.h (final_insns_dump_p): New extern.
35197 * final.c (final_insns_dump_p): New variable.
35198 (rest_of_clean_state): Set it before -fdump-final-insns=
35199 dumping, clear afterwards.
35200 * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
35201 MEM_ALIAS_SET on MEMs.
35203 2010-03-26 David S. Miller <davem@davemloft.net>
35205 * configure.ac: Fix sparc GOTDATA_OP bug check.
35206 * configure: Rebuild.
35208 2010-03-26 Alan Modra <amodra@gmail.com>
35210 * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
35212 2010-03-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35214 * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
35215 TLS_SECTION_ASM_FLAG.
35217 2010-03-25 Jakub Jelinek <jakub@redhat.com>
35220 * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
35221 Clear first_function_block_is_cold.
35224 * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
35225 argument if the argument is truth_value_p.
35227 2010-03-24 Michael Meissner <meissner@linux.vnet.ibm.com>
35229 * config/rs6000/constraints.md: Update copyright year for my changes.
35232 * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
35233 used in reg+reg addressing, swap registers.
35235 2010-03-24 Jakub Jelinek <jakub@redhat.com>
35238 * target.h (struct gcc_target): Add code_end hook.
35239 * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
35240 if not yet defined.
35241 (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
35242 * toplev.c (compile_file): Call targetm.asm_out.code_end
35243 hook before unwind info/debug info output.
35244 * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
35245 * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
35246 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
35247 * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
35248 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
35249 * config/i386/i386.c (ix86_file_end): Renamed to...
35250 (ix86_code_end): ... this. Make static. Don't call
35251 file_end_indicate_exec_stack. Emit unwind info using
35252 final_start_function/final_end_function.
35253 (darwin_x86_file_end): Remove.
35254 (TARGET_ASM_CODE_END): Define.
35255 * config/i386/i386.h (TARGET_ASM_FILE_END,
35256 NEED_INDICATE_EXEC_STACK): Don't define.
35257 * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
35258 (TARGET_ASM_FILE_END): Define to darwin_file_end.
35259 * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
35260 * doc/tm.texi (TARGET_ASM_CODE_END): Document.
35263 * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
35264 at the beginning and final_end_function at the end.
35265 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
35267 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35269 * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
35270 and Sun as TLS syntax.
35271 (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
35272 * configure: Regenerate.
35273 * config.in: Regenerate.
35274 * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
35275 (default_elf_asm_named_section): Use it.
35276 * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
35277 (i386_output_dwarf_dtprel): Likewise.
35278 (output_addr_const_extra): Likewise.
35279 (output_pic_addr_const): Lowercase @GOTTPOFF.
35280 (output_addr_const_extra): Likewise.
35281 (output_pic_addr_const): Lowercase @GOTNTPOFF.
35282 (output_addr_const_extra): Likewise.
35283 (output_pic_addr_const): Lowercase @INDNTPOFF.
35284 (output_addr_const_extra): Likewise.
35285 (output_pic_addr_const): Lowercase @NTPOFF.
35286 (output_addr_const_extra): Likewise.
35287 (output_pic_addr_const): Lowercase @TPOFF.
35288 (output_addr_const_extra): Likewise.
35289 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
35290 (*tls_global_dynamic_64): Likewise.
35291 (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
35292 (*tls_local_dynamic_base_64): Lowercase @TLSLD.
35294 * defaults.h (TLS_COMMON_ASM_OP): Provide default.
35295 (ASM_OUTPUT_TLS_COMMON): Use it.
35296 * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
35299 * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
35300 * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
35301 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
35302 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
35303 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
35304 (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
35306 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35308 * config/i386/i386.c (override_options): Don't accept
35309 -mtls-dialect=sun any longer.
35310 * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
35311 * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
35312 (*tls_local_dynamic_base_32_sun): Likewise.
35313 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
35315 2010-03-24 Jakub Jelinek <jakub@redhat.com>
35318 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
35319 VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
35322 * ira.c (adjust_cleared_regs): New function.
35323 (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
35327 * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
35329 * expr.c (expand_expr_real): Restore previous
35330 curr_insn_source_location and curr_insn_block after
35331 expand_expr_real_1 call.
35332 (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
35333 instead of expand_expr_real_1.
35335 2010-03-23 Vladimir Makarov <vmakarov@redhat.com>
35337 PR rtl-optimization/43413
35338 * ira-color.c (setup_allocno_available_regs_num): Count prohibited
35341 2010-03-22 James E. Wilson <wilson@codesourcery.com>
35344 * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
35345 call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
35347 2010-03-22 H.J. Lu <hongjiu.lu@intel.com>
35349 * config/i386/i386.c (ix86_target_string): Add -mfma.
35350 Fix a typo in comment.
35352 2010-03-22 Mike Stump <mikestump@comcast.net>
35355 * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
35356 Don't overly align based upon packed packed fields.
35358 2010-03-22 Jason Merrill <jason@redhat.com>
35360 * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
35361 Use () rather than [], and move before the element type.
35363 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35365 * doc/configfiles.texi (Configuration Files): Removed
35366 fixinc/Makefile*, intl/Makefile.*.
35367 * doc/makefile.texi: Fixed markup. Abstract from version
35368 control system used.
35369 (Makefile): Removed obsolete java/parse.y example.
35370 * doc/sourcebuild.texi: Likewise.
35371 (Top Level): Added config, gnattools, libdecnumber, libgcc,
35372 libgomp, libssp. Removed fastjar.
35373 (Miscellaneous Docs): Clarify location.
35374 Added COPYING3, COPYING3.LIB.
35375 (Front End Directory): Moved Make-lang.in entry to new subsubsection.
35377 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35380 * config/i386/i386.c (x86_function_profiler)
35381 [!NO_PROFILE_COUNTERS]: Fix typo.
35382 * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
35385 2010-03-22 Janis Johnson <janis187@us.ibm.com>
35386 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35388 * doc/sourcebuild.texi (Test Directives): Split into six
35389 subsections, with most of the current text in new subsections
35390 Directives, Selectors, and Final Actions.
35391 (Directives): Split list of test directives into multiple
35393 (Selectors): Describe use and syntax of selectors.
35394 (Effective-Target Keywords): Describe all existing keywords.
35395 (Add Options): Describe features for dg-add-options.
35396 (Require Support): Describe variants of dg-require-support.
35397 (Final Actions): Describe commands to use in dg-final.
35399 2010-03-22 Michael Matz <matz@suse.de>
35401 PR middle-end/43475
35402 * recog.c (validate_replace_rtx_group): Replace also in
35403 REG_EQUAL and REG_EQUIV notes.
35405 2010-03-22 Richard Guenther <rguenther@suse.de>
35407 PR tree-optimization/43390
35408 * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
35409 sure vector extracts are type correct.
35411 2010-03-22 Richard Guenther <rguenther@suse.de>
35413 PR middle-end/40106
35414 * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
35415 x * sqrt (x) even when optimizing for size if the target
35416 has native support for sqrt.
35418 2010-03-22 Jakub Jelinek <jakub@redhat.com>
35420 * varasm.c (make_decl_rtl_for_debug): Also clear
35421 flag_mudflap for the duration of make_decl_rtl call.
35424 * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
35425 locs from preserved VALUEs.
35427 2010-03-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
35429 PR middle-end/42718
35430 * pa.md (movmemsi): Set align to one if zero.
35431 (movmemdi): Likewise.
35433 2010-03-21 Richard Earnshaw <rearnsha@arm.com>
35436 * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
35437 with their corresponding prologue pushes.
35439 2010-03-20 Andrew Pinski <pinskia@gmail.com>
35442 * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
35443 at the begining or end.
35444 (spu_expand_epilogue): Likewise.
35446 2010-03-20 Richard Guenther <rguenther@suse.de>
35448 PR rtl-optimization/43438
35449 * combine.c (make_extraction): Properly zero-/sign-extend an
35450 extraction of the low part of a CONST_INT. Also handle
35453 2010-03-19 Mike Stump <mikestump@comcast.net>
35455 * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
35456 * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
35457 (override_options): Use SUBTARGET32_DEFAULT_CPU.
35459 2010-03-19 Andrew Pinski <andrew_pinski@caviumnetworks.com>
35462 * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
35465 2010-03-19 Bernd Schmidt <bernds@codesourcery.com>
35467 PR rtl-optimization/42258
35468 * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
35469 use that may match DEF.
35472 * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
35473 the cost of loading the constant rather than assuming
35475 * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
35476 outer code is AND, do the same tests as the andsi3 expander and
35477 return COSTS_N_INSNS (1) if and is cheap.
35479 * optabs.c (avoid_expensive_constant): Fix formatting.
35481 2010-03-19 Michael Matz <matz@suse.de>
35484 * attribs.c (decl_attributes): When rebuilding a function pointer
35485 type use the same qualifiers as the original pointer type.
35487 2010-03-19 Martin Jambor <mjambor@suse.cz>
35489 * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
35490 and is_gimple_ip_invariant_address.
35492 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
35495 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
35497 * config/arm/arm.c (arm_override_options): Turn off
35498 flag_dwarf2_cfi_asm for AAPCS variants.
35500 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
35503 * config/arm/arm.c (emit_multi_reg_push): Update comments.
35504 Use PRE_MODIFY instead of PRE_DEC.
35505 (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
35506 (vfp_emit_fstmd): Likewise.
35508 2010-03-19 Michael Matz <matz@suse.de>
35511 * builtins.c (expand_builtin_interclass_mathfn,
35512 expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
35515 2010-03-19 Richard Guenther <rguenther@suse.de>
35517 PR tree-optimization/43415
35518 * tree-ssa-pre.c (phi_translate): Split out worker to ...
35519 (phi_translate_1): ... this.
35520 (phi_translate): Move all caching here. Cache all NARY
35521 and REFERENCE translations.
35523 2010-03-19 David S. Miller <davem@davemloft.net>
35525 With help from Eric Botcazou.
35526 * config/sparc/sparc.c: Include dwarf2out.h.
35527 (emit_pic_helper): Delete.
35528 (pic_helper_symbol_name): Delete.
35529 (pic_helper_emitted_p): Delete.
35530 (pic_helper_needed): New.
35531 (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
35532 (get_pc_thunk_name): New.
35533 (load_pic_register): Remove 'delay_pic_helper' arg. Use
35534 get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
35535 Set pic_helper_needed to true. Don't call emit_pic_helper.
35536 (sparc_expand_prologue): Update load_pic_register call.
35537 (sparc_output_mi_thunk): Likewise.
35538 (sparc_file_end): Emit a hidden comdat symbol for the PIC
35539 thunk if possible. Output CFI information as needed.
35541 2010-03-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
35542 Jack Howarth <howarth@bromo.med.uc.edu>
35545 * config/i386/i386.h: Fix ABI on darwin x86-32.
35547 2010-03-18 Aldy Hernandez <aldyh@redhat.com>
35549 * tree.h: Declare make_decl_rtl_for_debug.
35550 * varasm.c (make_decl_rtl_for_debug): New.
35551 * dwarf2out.c (rtl_for_decl_location): Call it.
35552 * cfgexpand.c (expand_debug_expr): Call it.
35554 2010-03-18 Jakub Jelinek <jakub@redhat.com>
35557 * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
35561 * var-tracking.c (vt_init_cfa_base): Do nothing if
35562 cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
35564 2010-03-18 Alexandre Oliva <aoliva@redhat.com>
35567 * var-tracking.c (canonicalize_vars_star): New.
35568 (dataflow_post_merge_adjust): Use it.
35570 2010-03-18 Jakub Jelinek <jakub@redhat.com>
35573 * var-tracking.c (non_suitable_const): New function.
35574 (add_uses): For DEBUG_INSNs with constants, don't record any
35575 value, instead just the constant value itself.
35576 (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
35577 is not VAR_LOC_UNKNOWN_P, set var to the constant.
35578 (emit_notes_in_bb): Likewise.
35579 (emit_note_insn_var_location): For onepart variables if
35580 cur_loc is a VOIDmode constant, use DECL_MODE.
35582 2010-03-18 Martin Jambor <mjambor@suse.cz>
35584 PR middle-end/42450
35585 * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
35586 * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
35587 all non-clones. Moved call redirection...
35588 (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
35589 (cgraph_materialize_all_clones): Dispose of all
35590 combined_args_to_skip bitmaps.
35591 (verify_cgraph_node): Do not check for edges pointing to wrong
35592 nodes in inline clones.
35593 * tree-inline.c (copy_bb): Call
35594 cgraph_redirect_edge_call_stmt_to_callee.
35595 * ipa.c (cgraph_remove_unreachable_nodes): Call
35596 cgraph_node_remove_callees even when there are used clones.
35598 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
35600 * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
35602 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
35605 * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
35608 2010-03-18 Michael Matz <matz@suse.de>
35610 PR middle-end/43419
35611 * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
35612 into sqrt(x) if we need to preserve signed zeros.
35614 2010-03-18 Steven Bosscher <steven@gcc.gnu.org>
35615 Eric Botcazou <ebotcazou@adacore.com>
35617 PR rtl-optimization/43360
35618 * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
35619 note if we don't know its invariant status.
35621 2010-03-18 Michael Matz <matz@suse.de>
35623 PR tree-optimization/43402
35624 * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
35625 PHI chains of ssa names registered for update.
35627 2010-03-17 Peter Bergner <bergner@vnet.ibm.com>
35630 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
35631 non-offsettable and pre_modify update addressing.
35632 * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
35633 and "2" alternatives "#".
35634 (*movdd_softfloat32): Make all alternatives "#";
35635 * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
35636 (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
35637 (*movdf_softfloat32): Make all alternatives "#";
35638 (movdi): Use the new DIFD mode iterator to create a common splitter
35639 for movdi, movdf and movdd patterns.
35641 2010-03-18 Shujing Zhao <pearly.zhao@oracle.com>
35643 * common.opt (dumpdir): Remove redundant tab.
35645 2010-03-17 Martin Jambor <mjambor@suse.cz>
35647 PR tree-optimization/43347
35648 * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
35649 original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
35651 2010-03-17 Bernd Schmidt <bernd.schmidt@analog.com>
35653 PR rtl-optimization/42216
35654 * regrename.c (create_new_chain): New function, broken out from...
35655 (scan_rtx_reg): ... here. Call it. Handle the case where we are
35656 appending a use to an empty chain.
35657 (build_def_use): Remove previous changes that convert OP_INOUT to
35658 OP_OUT operands; instead detect the case where an OP_INOUT operand
35659 uses a previously untracked register and create an empty chain for it.
35661 2010-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
35663 * doc/extend.texi (Function Attributes): Rewrite unfinished
35664 sentence in ms_abi documentation.
35666 2010-03-17 Alan Modra <amodra@gmail.com>
35668 * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
35669 * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
35670 (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
35671 * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
35673 2010-03-16 Richard Henderson <rth@redhat.com>
35675 PR middle-end/43365
35676 * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
35677 (lower_try_finally): Save and restore eh_seq around the expansion
35678 of the try-finally.
35680 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
35682 * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
35683 statements before splitting block.
35685 2010-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35687 * doc/sourcebuild.texi (Testsuites): Fix markup.
35688 Use pathnames relative to gcc/testsuite.
35689 (Test Directives): Move description of how timeout is determined.
35690 (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
35691 (C Tests): Correct gcc.misc-tests directory.
35692 Framework tests now live in gcc.test-framework.
35694 2010-03-16 Richard Guenther <rguenther@suse.de>
35696 PR middle-end/43379
35697 * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
35698 operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
35700 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
35701 Alexandre Oliva <aoliva@redhat.com>
35703 PR tree-optimization/42917
35704 * lambda-code.c (remove_iv): Skip debug statements.
35705 (lambda_loopnest_to_gcc_loopnest): Likewise.
35706 (not_interesting_stmt): Debug statements are not interesting.
35708 2010-03-16 Jakub Jelinek <jakub@redhat.com>
35712 * cselib.c (cselib_preserve_constants,
35713 cfa_base_preserved_val): New static variables.
35714 (preserve_only_constants): New function.
35715 (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
35716 clear its REG_VALUES. If cselib_preserve_constants, don't
35717 empty the whole hash table, but preserve there VALUEs with constants,
35718 cfa_base_preserved_val and cfa_base_preserved_val plus constant.
35719 (cselib_preserve_cfa_base_value): New function.
35720 (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
35721 (cselib_init): Change argument to int bitfield. Set
35722 cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
35724 (cselib_finish): Clear cselib_preserve_constants and
35725 cfa_base_preserved_val.
35726 * cselib.h (enum cselib_record_what): New enum.
35727 (cselib_init): Change argument to int.
35728 (cselib_preserve_cfa_base_value): New prototype.
35729 * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
35730 * dse.c (dse_step1): Likewise.
35731 * cfgcleanup.c (thread_jump): Likewise.
35732 * sched-deps.c (sched_analyze): Likewise.
35733 * gcse.c (local_cprop_pass): Likewise.
35734 * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
35735 If FN is non-NULL, call the callback always and whenever it returns
35736 non-NULL just return that. Only do rtx_equal_p if FN is NULL.
35737 * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
35738 * combine.c (propagate_for_debug_subst): Add old_rtx argument,
35739 compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
35740 * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
35741 * var-tracking.c: Include recog.h.
35742 (bb_stack_adjust_offset): Remove.
35743 (vt_stack_adjustments): Don't call it, instead just gather the
35744 adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
35745 (adjust_stack_reference): Remove.
35746 (compute_cfa_pointer): New function.
35747 (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
35748 (struct adjust_mem_data): New type.
35749 (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
35751 (get_address_mode): New function.
35752 (replace_expr_with_values): Use it.
35753 (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
35754 Use get_address_mode. For cfa_base_rtx return MO_CLOBBER.
35755 (adjust_sets): Remove.
35756 (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
35757 Use get_address_mode.
35758 (get_adjusted_src): Remove.
35759 (add_stores): Don't call it. Never reuse expr SET. Don't add extra
35760 MO_VAL_USE for cfa_base_rtx plus constant. Use get_address_mode.
35761 (add_with_sets): Don't call adjust_sets.
35762 (fp_setter, vt_init_cfa_base): New functions.
35763 (vt_initialize): Change return type to bool. Move most of pool etc.
35764 initialization to the beginning of the function from end. Pass
35765 CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
35766 If !frame_pointer_needed, call vt_stack_adjustment before mos
35767 vector is filled, call vt_init_cfa_base if argp/framep has been
35768 eliminated to sp. If frame_pointer_needed and argp/framep has
35769 been eliminated to hard frame pointer, set
35770 hard_frame_pointer_adjustment and call vt_init_cfa_base after
35771 encountering fp setter in the prologue. For MO_ADJUST, call
35772 log_op_type before pusing the op into mos vector, not afterwards.
35773 Call adjust_insn before cselib_process_insn/add_with_sets,
35774 call cancel_changes (0) afterwards.
35775 (variable_tracking_main_1): Adjust for vt_initialize calling
35776 vt_stack_adjustments and returning whether it succeeded or not.
35778 2010-03-15 Aldy Hernandez <aldyh@redhat.com>
35780 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
35783 2010-03-15 Jakub Jelinek <jakub@redhat.com>
35785 * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
35787 (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
35788 drap_reg has not been set.
35790 2010-03-15 Michael Matz <matz@suse.de>
35792 PR middle-end/43300
35793 * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
35794 use it to expand block copies.
35795 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
35796 insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
35797 (insert_value_copy_on_edge): Use store_expr for BLKmode values.
35799 2010-03-15 Richard Guenther <rguenther@suse.de>
35801 PR tree-optimization/43367
35802 * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
35805 2010-03-15 Richard Guenther <rguenther@suse.de>
35807 PR tree-optimization/43317
35808 * ipa-struct-reorg.c (create_new_general_access): Update stmt.
35810 2010-03-15 Martin Jambor <mjambor@suse.cz>
35812 PR tree-optimization/43141
35813 * tree-sra.c (create_abstract_origin): New function.
35814 (modify_function): Call create_abstract_origin.
35816 2010-03-15 Chris Demetriou <cgd@google.com>
35818 * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
35821 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
35823 PR middle-end/43354
35824 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
35825 call insert_out_of_ssa_copy for default definitions.
35827 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
35829 * graphite-clast-to-gimple.c (my_long_long): Defined.
35830 (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
35831 * graphite-sese-to-poly.c (my_long_long): Defined.
35832 (scop_ivs_can_be_represented): Use it.
35834 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
35836 * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
35837 graphite-max-bbs-per-function, and loop-block-tile-size.
35838 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
35840 (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
35842 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
35844 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
35845 forward declaration.
35846 * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
35847 (add_upper_bounds_from_estimated_nit): New.
35848 (build_loop_iteration_domains): Use it.
35850 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
35852 * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
35854 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
35856 PR middle-end/43306
35857 * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
35858 should be an INTEGER_CST. Also handle CASE_CONVERT.
35860 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
35862 * graphite.c (graphite_initialize): To bound the number of bbs per
35863 function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
35864 * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
35865 * doc/invoke.texi: Document it.
35867 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
35869 * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
35870 * graphite-sese-to-poly.h (build_poly_scop): Same.
35872 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
35874 * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
35875 the number of parameters in the scop. Use as an upper bound
35876 PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
35877 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
35878 * doc/invoke.texi: Document it.
35880 2010-03-13 Jerry Quinn <jlquinn@optonline.net>
35882 * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
35883 * doc/c-tree.texi: Remove.
35884 * doc/generic.texi: Merge c-tree.texi here.
35885 * doc/gccint.texi (Trees): Remove menu entry.
35886 (c-tree.texi): Remove @include.
35887 * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
35888 * doc/languages.texi (Reading RTL): Ditto.
35890 2010-03-12 Steve Ellcey <sje@cup.hp.com>
35893 * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
35895 2010-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
35897 PR middle-end/42431
35898 * config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
35899 code added to work around reload clobbering CONST insns.
35901 2010-03-12 Jakub Jelinek <jakub@redhat.com>
35903 * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
35904 (cselib_preserve_definitely, cselib_clear_preserve): Remove.
35905 (cselib_preserve_only_values): Remove retain argument, don't
35906 traverse hash table with cselib_{preserve_definitely,clear_preserve}.
35907 * cselib.h (cselib_preserve_only_values): Remove retain argument.
35908 * var-tracking.c (micro_operation): Move insn field before union.
35909 Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
35910 (struct variable_tracking_info_def): Remove n_mos field, change
35911 mos into a vector of micro_operations.
35912 (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
35913 (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
35914 compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
35915 changing into a vector.
35916 (add_with_sets): Likewise. Ensure MO_VAL_USE uops from add_stores
35917 come before all other uops generated by add_stores.
35918 (vt_add_function_parameters): Adjust for cselib_preserve_only_values
35920 (vt_initialize): Likewise. Adjust for VTI (bb)->mos changing into
35921 a vector. Run just one pass over the bbs instead of separate counting
35922 and computation phase.
35923 (vt_finalize): Free VTI (bb)->mos vector instead of array.
35926 * tree-inline.c (remap_decls): Put old_var rather than origin_var
35927 into *nonlocalized_list vector.
35928 * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
35929 even if origin is non-NULL.
35930 (gen_variable_die): Likewise.
35931 (process_scope_var): Don't change origin.
35932 (gen_decl_die): Likewise.
35933 * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
35934 before adding new edges instead of after it, fix moving over
35937 2010-03-11 David S. Miller <davem@davemloft.net>
35939 * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
35941 * configure: Rebuild.
35943 2010-03-11 Martin Jambor <mjambor@suse.cz>
35945 PR tree-optimization/43257
35946 * tree.c (assign_assembler_name_if_neeeded): New function.
35947 (free_lang_data_in_cgraph): Assembler name assignment moved to the
35948 above new function.
35949 * tree.h (assign_assembler_name_if_neeeded): Declare.
35950 * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
35951 the function if needed.
35953 2010-03-11 Chris Demetriou <cgd@google.com>
35955 * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
35956 include/stdint-gcc.h, and include/stdint.h world-readable.
35958 2010-03-11 Richard Guenther <rguenther@suse.de>
35960 PR tree-optimization/43255
35961 * tree-vrp.c (process_assert_insertions_for): Do not insert
35962 asserts for trivial conditions.
35964 2010-03-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35966 PR tree-optimization/43280
35967 * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
35968 generation. Move calculation of size out of the if branch.
35969 (find_bswap): Modify compare number generation.
35971 2010-03-11 Richard Guenther <rguenther@suse.de>
35974 * lto-streamer-in.c (maybe_fixup_decls): Simplify.
35975 (input_gimple_stmt): Fixup handled component types during
35976 operand read. Also fix up decls in ADDR_EXPRs.
35978 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
35980 * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
35981 * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
35983 2010-03-10 Jan Hubicka <jh@suse.cz>
35986 * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
35987 * varasm.c (get_variable_section): Don't do that here...
35988 (make_decl_rtl): ... and here.
35989 (do_assemble_alias): Produce decl RTL.
35990 (assemble_alias): Likewise.
35992 2010-03-10 Jakub Jelinek <jakub@redhat.com>
35995 * reg-notes.def (REG_CFA_SET_VDRAP): New note.
35996 * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
35998 (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
35999 (based_loc_descr): Only express drap or vdrap regno based expressions
36000 using DW_OP_fbreg when not optimizing.
36001 * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
36002 make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
36003 REG_CFA_SET_VDRAP note.
36005 2010-03-10 Alexander Monakov <amonakov@ispras.ru>
36007 PR tree-optimization/43236
36008 * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
36009 error in calculation of base address in reverse iteration case.
36010 (generate_builtin): Take number of latch executions if the statement
36013 2010-03-10 Andrey Belevantsev <abel@ispras.ru>
36015 PR middle-end/42859
36016 * tree-eh.c: Include pointer-set.h.
36017 (lower_eh_dispatch): Filter out duplicate case labels and
36018 remove the unneeded edge when the label is unused. Return
36019 true when some edges are removed.
36020 (execute_lower_eh_dispatch): When any lowering resulted in
36021 removing an edge, also delete unreachable blocks.
36023 2010-03-10 Jakub Jelinek <jakub@redhat.com>
36026 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
36027 UNSPEC_MACHOPIC_OFFSET.
36029 2010-03-09 Andreas Schwab <schwab@linux-m68k.org>
36032 * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
36033 (m68k_delegitimize_address): New function.
36035 2010-03-09 Jakub Jelinek <jakub@redhat.com>
36038 * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
36041 * var-tracking.c (adjust_sets): New function.
36042 (count_with_sets, add_with_sets): Use it.
36043 (get_adjusted_src): New inline function.
36044 (add_stores): Use it.
36047 * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
36048 call cselib_dummy_expand_value_rtx_cb instead of
36049 cselib_expand_value_rtx_cb.
36052 * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
36053 * config/i386/i386.c: Include debug.h and dwarf2out.h.
36054 (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
36055 and .cfi_endproc around the pic thunks.
36056 (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
36057 all queued unwind info register saves are saved before the call.
36058 For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
36059 considered as sp-=4 for unwind info and the pop as sp+=4 which
36060 also clobbers dest, but doesn't actually restore it.
36063 * config/i386/i386.c (ix86_get_drap_rtx): Don't set
36064 RTX_FRAME_RELATED_P.
36066 2010-03-09 Jie Zhang <jie@codesourcery.com>
36068 * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
36069 whitespaces in output template.
36071 2010-03-09 Jie Zhang <jie@codesourcery.com>
36073 * ira-lives.c (check_and_make_def_use_conflict): Don't fall
36074 out array boundary.
36076 2010-03-08 Jakub Jelinek <jakub@redhat.com>
36078 * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
36079 builtins.exp in a separate job.
36081 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
36083 * graphite-sese-to-poly.c (add_param_constraints): Use
36084 lower_bound_in_type and upper_bound_in_type.
36086 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
36088 * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
36089 instead of unsigned_type_node.
36091 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
36092 Reza Yazdani <reza.yazdani@amd.com>
36094 PR middle-end/43065
36095 * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
36096 on pointer type parameters.
36098 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
36100 PR middle-end/42644
36101 PR middle-end/42130
36102 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
36103 handle conversions from pointer to integers.
36104 (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
36105 induction variable, to be able to work with code generated by CLooG.
36106 * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
36107 (build_poly_scop): Bail out if we cannot codegen a loop.
36109 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
36111 * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
36112 code generation with gloog_error.
36114 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
36116 * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
36117 Call fold_convert on all the returned values.
36118 (expand_scalar_variables_expr): Pass to
36119 expand_scalar_variables_ssa_name the type of the resulting expression.
36121 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
36123 * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
36124 ppl_min_for_le_pointset.
36125 Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
36126 * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
36128 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
36130 * graphite-dependences.c (map_into_dep_poly): Removed.
36131 (dependence_polyhedron_1): Use combine_context_id_scat.
36133 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
36135 * graphite-poly.h (struct poly_scattering): Add layout documentation.
36136 (struct poly_bb): Same.
36137 (combine_context_id_scat): New.
36139 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
36141 PR middle-end/42326
36142 * sese.c (name_defined_in_loop_p): Return false for default
36145 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
36147 * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
36148 and clean up the logic.
36150 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
36152 * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
36155 2010-03-08 Jakub Jelinek <jakub@redhat.com>
36157 * var-tracking.c (remove_cselib_value_chains): Define only for
36159 (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
36160 delete_slot_part, emit_notes_for_differences_1): Don't call
36161 remove_cselib_value_chains here.
36162 (set_slot_part, emit_notes_for_differences_2): Don't call
36163 add_cselib_value_chains here.
36164 (preserved_values): New vector.
36165 (preserve_value): New function.
36166 (add_uses, add_stores, vt_add_function_parameters): Use it
36167 instead of cselib_preserve_value.
36168 (changed_values_stack): New vector.
36169 (check_changed_vars_0): New function.
36170 (check_changed_vars_1, check_changed_vars_2): Use it.
36171 (emit_notes_for_changes): Call set_dv_changed (*, false) on all
36172 changed_values_stack VALUEs.
36173 (vt_emit_notes): For all preserved_values call
36174 add_cselib_value_chains. If ENABLE_CHECKING call
36175 remove_cselib_value_chains before verifying value_chains is empty.
36176 Initialize and free changed_values_stack.
36177 (vt_initialize): Initialize preserved_values.
36178 (vt_finalize): Free preserved_values.
36180 2010-03-08 Richard Guenther <rguenther@suse.de>
36182 PR tree-optimization/43269
36183 * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
36186 2010-03-08 Martin Jambor <mjambor@suse.cz>
36188 * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
36189 (ipa_is_param_called): Removed.
36190 * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
36191 (ipa_print_node_params): Do not print the called flag.
36192 (ipa_write_node_info): Do not stream the called flag.
36193 (ipa_read_node_info): Likewise.
36195 2010-03-07 Jakub Jelinek <jakub@redhat.com>
36198 * Makefile.in (var-tracking.o): Depend on pointer-set.h.
36199 * cselib.c (struct expand_value_data): Add dummy field.
36200 (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
36202 (cselib_dummy_expand_value_rtx_cb): New function.
36203 (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
36205 * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
36206 * var-tracking.c: Include pointer-set.h.
36207 (variable): Change n_var_parts to char from int. Add
36208 cur_loc_changed and in_changed_variables fields.
36209 (variable_canonicalize): Remove.
36210 (shared_var_p): New inline function.
36211 (unshare_variable): Maintain cur_loc_changed and
36212 in_changed_variables fields. If var was in changed_variables,
36213 replace it there with new_var. Just copy cur_loc instead of
36214 resetting it to something else.
36215 (variable_union): Don't recompute cur_loc. Use shared_var_p.
36216 (dataflow_set_union): Don't call variable_canonicalize.
36217 (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
36218 of their DEBUG_EXPR_TREE_DECLs.
36219 (canonicalize_loc_order_check): Verify that cur_loc is NULL
36220 and in_changed_variables and cur_loc_changed is false.
36221 (variable_merge_over_cur): Clear cur_loc, in_changed_variables
36222 and cur_loc_changed. Don't update cur_loc here.
36223 (variable_merge_over_src): Don't call variable_canonicalize.
36224 (dataflow_set_preserve_mem_locs): Use shared_var_p. When
36225 removing loc that is equal to cur_loc, clear cur_loc,
36226 set cur_loc_changed and ensure variable_was_changed is called.
36227 (dataflow_set_remove_mem_locs): Use shared_var_p. Only
36228 compare pointers in cur_loc check, if it is equal to loc,
36229 clear cur_loc and set cur_loc_changed. Don't recompute cur_loc here.
36230 (variable_different_p): Remove compare_current_location argument,
36231 don't compare cur_loc.
36232 (dataflow_set_different_1): Adjust variable_different_p caller.
36233 (variable_was_changed): If dv had some var in changed_variables
36234 already, reset in_changed_variables flag for it and propagate
36235 cur_loc_changed over to the new variable. On empty var
36236 always set cur_loc_changed. Set in_changed_variables on whatever
36237 var is added to changed_variables.
36238 (set_slot_part): Clear cur_loc_changed and in_changed_variables.
36239 Use shared_var_p. When removing loc that is equal to cur_loc,
36240 clear cur_loc and set cur_loc_changed. If cur_loc is NULL at the
36241 end, don't set it to something else, just call variable_was_changed.
36242 (delete_slot_part): Use shared_var_p. When cur_loc equals to
36243 loc being removed, clear cur_loc and set cur_loc_changed.
36244 Set cur_loc_changed if all locations have been removed.
36245 (struct expand_loc_callback_data): New type.
36246 (vt_expand_loc_callback): Add dummy mode in which no rtxes are
36247 allocated. Always create SUBREGs if simplify_subreg failed.
36248 Prefer to use cur_loc, when that fails and still in
36249 changed_variables (and seen first time) recompute it. Set
36250 cur_loc_changed of variables which had to change cur_loc and
36251 compute elcd->cur_loc_changed if any of the subexpressions used
36252 had to change cur_loc.
36253 (vt_expand_loc): Adjust to pass arguments in
36254 expand_loc_callback_data structure.
36255 (vt_expand_loc_dummy): New function.
36256 (emitted_notes): New variable.
36257 (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
36258 that weren't used for any other decl in current
36259 emit_notes_for_changes call call vt_expand_loc_dummy to update
36260 cur_loc. For -fno-var-tracking-assignments, set cur_loc to
36261 first loc_chain location if NULL before. Always use just
36262 cur_loc instead of first loc_chain location. When cur_loc_changed
36263 is false, when not --enable-checking=rtl just don't emit any note.
36264 When rtl checking, compute the note and assert it is the same
36265 as previous note. Clear cur_loc_changed and in_changed_variables
36266 at the end before removing from changed_variables.
36267 (check_changed_vars_3): New function.
36268 (emit_notes_for_changes): Traverse changed_vars to call
36269 check_changed_vars_3 on each changed var.
36270 (emit_notes_for_differences_1): Clear cur_loc_changed and
36271 in_changed_variables. Recompute cur_loc of new_var.
36272 (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
36273 (vt_emit_notes): Initialize and destroy emitted_notes.
36275 2010-03-07 Bernd Schmidt <bernd.schmidt@analog.com>
36277 PR rtl-optimization/42220
36278 * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
36279 Use verify_reg_tracked to determine if we should use OP_OUT rather
36281 (build_def_use): If we see an in-out operand for a register that we
36282 know nothing about, treat is an output if possible, fail the block if
36285 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
36288 * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
36291 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
36294 * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
36295 uses of relevant DEFs that are dead outside the loop too.
36297 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
36299 * var-tracking.c (dataflow_set_merge): Swap src and src2.
36301 2010-01-13 Jakub Jelinek <jakub@redhat.com>
36303 * var-tracking.c (values_to_unmark): New variable.
36304 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
36305 values_to_unmark vector. Moved body to...
36306 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
36307 instead queue it into values_to_unmark vector.
36308 (vt_find_locations): Free values_to_unmark vector.
36310 2010-03-05 Eric Botcazou <ebotcazou@adacore.com>
36312 * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
36313 (site.exp): Export them when plugins are enabled.
36315 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
36317 PR middle-end/42326
36318 * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
36319 that contain scevs.
36320 (chrec_fold_multiply): Same.
36322 2010-03-04 Andrew Pinski <andrew_pinski@caviumnetworks.com>
36325 * c-decl.c (build_compound_literal): Return early if init is
36326 an error_mark_node.
36328 2010-03-04 Martin Jambor <mjambor@suse.cz>
36330 PR tree-optimization/43164
36331 PR tree-optimization/43191
36332 * tree-sra.c (type_consists_of_records_p): Reject records with
36333 zero-size bit-fields at the end.
36335 2010-03-04 Mike Stump <mikestump@comcast.net>
36337 * Makefile.in (TAGS): Remove *.y.
36339 2010-03-04 Richard Guenther <rguenther@suse.de>
36341 PR tree-optimization/40761
36342 * tree-ssa-pre.c (compute_antic): Walk reverse postorder
36344 (my_rev_post_order_compute): New function.
36345 (init_pre): Call it.
36347 2010-03-04 Changpeng Fang <changpeng.fang@amd.com>
36349 PR middle-end/43209
36350 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
36351 decrease the cost of an IV candidate when the cost is infinite.
36353 2010-03-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
36355 * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
36356 Use '3DNow!' for the extension of that name, ensure normal space
36358 * doc/invoke.texi (i386 and x86-64 Options): Likewise.
36360 2010-03-03 Jeff Law <law@redhat.com>
36362 * PR middle-end/32693
36363 * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
36364 than gen_rtx_SUBREG.
36365 (extract_bit_field_1): Likewise.
36367 2010-03-03 Janis Johnson <janis187@us.ibm.com>
36369 * doc/sourcebuild.texi (Test directives): Document that arguments
36370 include-opts and exclude-opts are now optional for dg-skip-if,
36371 dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
36373 2010-03-03 Jason Merrill <jason@redhat.com>
36376 * cgraph.h (varpool_node): Add extra_name field.
36377 * varpool.c (varpool_extra_name_alias): New.
36378 (varpool_assemble_decl): Emit extra name aliases.
36379 (varpool_mark_needed_node): Look past an extra name alias.
36380 * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
36381 * lto-streamer-in.c (lto_input_tree): Read it.
36382 * lto-streamer-out.c (output_unreferenced_globals): Write it.
36384 2010-03-03 Eric Botcazou <ebotcazou@adacore.com>
36386 * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
36387 (sparc*-*-solaris2*): ...this.
36389 2010-03-03 Jakub Jelinek <jakub@redhat.com>
36392 * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
36393 WIDEN_MULT_EXPR and WIDEN_SUM_EXPR. Return NULL without
36394 ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
36395 FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
36398 * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
36399 fallthrough to default handling, just with want_address 0 instead of 2.
36400 For single element lists, add_AT_loc directly, otherwise create an
36401 artificial variable DIE and stick location list to it.
36404 * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
36405 (VAL_EXPR_HAS_REVERSE): Define.
36406 (reverse_op): New function.
36407 (add_stores): For reversible operations add an extra MO_VAL_USE.
36409 2010-03-02 Jason Merrill <jason@redhat.com>
36411 * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
36413 2010-03-02 Eric Botcazou <ebotcazou@adacore.com>
36415 * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
36416 (sparc64-*-linux*): Likewise.
36417 (sparc64-*-solaris2*): Include assembler files before linker ones.
36418 (sparc-*-solaris2*): Simplify and reorder to match previous case.
36419 * config/sparc/gas.h: Delete.
36420 * config/sparc/sol2-64.h: Add copyright notice.
36421 * config/sparc/sol2-gas-bi.h: Likewise.
36422 * config/sparc/sol2-gld.h: Likewise.
36423 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
36424 * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
36425 * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
36426 * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
36427 (sparc_elf_asm_named_section): Rename into...
36428 (sparc_solaris_elf_asm_named_section): ...this. Always define.
36430 2010-03-02 Uros Bizjak <ubizjak@gmail.com>
36432 * config/alpha/alpha.c (override_options): Fix -mtune error message.
36434 2010-03-02 Jeff Law <law@redhat.com>
36436 PR middle-end/42431
36437 * reload1.c (rtx_p, substitute_stack): Declare.
36438 (substitute): Record addresses of changed rtxs.
36439 (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
36440 Restore the original rtx when complete.
36441 (reload): Free subsitute_stack when complete.
36443 2010-03-02 Janis Johnson <janis187@us.ibm.com>
36445 * doc/gccint.texi (menu): Add Testsuites as a chapter.
36446 * doc/sourcebuild.texi (Testsuites): Move up a level to be a
36448 (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
36449 LTO Testing, gcov Testing, profopt Testing, compat Testing,
36450 Torture Tests): Change from subsection to section.
36452 2010-03-02 Jakub Jelinek <jakub@redhat.com>
36453 Steven Bosscher <steven@gcc.gnu.org>
36455 * var-tracking.c (vt_initialize): Scan insns in ebb chunks
36458 2010-03-02 Reza Yazdani <reza.yazdani@amd.com>
36460 PR middle-end/42640
36461 * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
36462 the assignment from the new induction variable to the assignment
36463 of the value from the original loop PHI function.
36465 2010-03-01 Janis Johnson <janis187@us.ibm.com>
36466 Daniel Jacobowitz <dan@codesourcery.com>
36468 * doc/sourcebuild.texi (Test directives): Clarify options to
36471 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
36473 * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
36474 Disable cfi directives unless GCC and gas agree on using read-only
36475 .eh_frame sections for 64-bit.
36476 * configure: Regenerate.
36478 2010-03-01 Richard Guenther <rguenther@suse.de>
36480 PR tree-optimization/43220
36481 * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
36482 BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
36484 2010-03-01 Richard Guenther <rguenther@suse.de>
36485 Martin Jambor <mjambor@suse.cz>
36487 PR middle-end/41250
36488 * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
36489 gimplified parameters.
36491 2010-03-01 Christian Bruel <christian.bruel@st.com>
36493 * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
36495 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
36497 * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
36499 2010-03-01 Richard Guenther <rguenther@suse.de>
36501 PR middle-end/43213
36502 * expr.c (expand_assignment): Use the alias-oracle to tell
36503 if the rhs aliases the result decl.
36505 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
36508 * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
36509 to sol_gt_pch_get_address.
36510 (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
36511 64-bit, SPARC and x86.
36512 (sol_gt_pch_get_address): New function.
36514 2010-03-01 Marco Poletti <poletti.marco@gmail.com>
36516 * toplev.h (inform_n, error_n): Declare.
36517 * diagnostic.c (inform_n, error_n): New function.
36519 2010-03-01 Jakub Jelinek <jakub@redhat.com>
36521 * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
36522 has no rtl yet when processing local_decls, queue it and recheck
36523 if deferred stack allocation hasn't assigned it rtl.
36525 2010-02-28 Kaz Kojima <kkojima@gcc.gnu.org>
36527 * config/sh/sh.c (unspec_bbr_uid): New.
36528 (gen_block_redirect): Use it instead of INSN_UID.
36529 (gen_far_branch): Likewise.
36531 2010-02-28 H.J. Lu <hongjiu.lu@intel.com>
36533 * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
36534 it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
36536 2010-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
36538 * doc/invoke.texi (Warning Options, RX Options): Fix typos.
36539 (Warning Options): -Wno-conversion-null is valid for
36540 Objective-C++ as well.
36541 * doc/tm.texi (Named Address Spaces): Likewise.
36542 * doc/plugins.texi (Plugins): Replace TABs with spaces.
36543 * doc/tree-ssa.texi (Tree SSA): Likewise.
36545 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
36548 * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
36549 by default. Don't set the default arch for
36550 i[34567]86-*-darwin*|x86_64-*-darwin*.
36552 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
36555 * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
36556 default. Set the default 32bit/64bit archs with $with_arch
36557 instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
36559 2010-02-27 Richard Guenther <rguenther@suse.de>
36561 PR tree-optimization/43186
36562 * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
36563 * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
36564 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
36565 unroller iterations.
36567 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
36569 * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
36570 required and i[34567]86-*-* targets don't support 64bit ISA.
36572 2010-02-26 Eric Botcazou <ebotcazou@adacore.com>
36575 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
36576 the same alias set.
36578 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
36580 * config.gcc: Set the default arch at least to Prescott for
36581 i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
36582 if SSE math is enabled.
36584 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
36586 * diagnostic.c (diagnostic_initialize): Update.
36587 (diagnostic_report_diagnostic): Test inhibit_notes_p for
36589 * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
36590 (diagnostic_inhibit_notes): New.
36591 * toplev.c (process_options): inhibit notes with -fcompare-debug.
36593 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
36596 * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
36597 * doc/standards.texi: Likewise.
36598 * doc/extend.texi: Likewise.
36599 * doc/trouble.texi: Likewise.
36600 * doc/cppopts.texi: Likewise.
36601 * doc/install.texi: Likewise.
36602 * c.opt (std=c90,std=gnu90): New options.
36603 * c-opts.c (c_common_handle_option): Handle them.
36605 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
36608 * c-decl.c (undeclared_variable): Use an informative note.
36610 2010-02-26 Richard Guenther <rguenther@suse.de>
36612 PR tree-optimization/43186
36613 * gimple.h (gimple_fold): Remove.
36614 * gimple.c (gimple_fold): Remove. Inline into single user ...
36615 * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
36616 Try harder for conditions.
36618 2010-02-26 Jakub Jelinek <jakub@redhat.com>
36621 * function.c (used_types_insert): Don't skip through named pointer
36622 types. Don't use TYPE_MAIN_VARIANT if the original type has a name
36623 and it is different from the main variant's type.
36625 2010-02-26 Nick Clifton <nickc@redhat.com>
36627 * config/rx/rx.md (sminsi3): Remove bogus alternative.
36629 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
36631 * config.gcc: Support --with-fpmath=sse for x86.
36633 * config/i386/ssemath.h: New.
36635 * doc/install.texi (--with-fpmath=sse): Documented.
36637 2010-02-26 Richard Guenther <rguenther@suse.de>
36639 PR tree-optimization/43188
36640 * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
36641 vector types of over-aligned element type.
36643 2010-02-26 Uros Bizjak <ubizjak@gmail.com>
36646 * config/i386/i386.c (expand_vec_perm_blend): Use correct
36647 operands in V8HImode subregs. Fix operand order in VEC_MERGE rtx.
36649 2010-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
36651 * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
36653 2010-02-26 Jakub Jelinek <jakub@redhat.com>
36655 * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
36656 * var-tracking.c: Include diagnostic.h.
36657 (debug_dv): New function.
36658 (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
36661 * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
36662 (add_value_chain, add_value_chains, remove_value_chain,
36663 remove_value_chains): Handle DEBUG_EXPRs.
36664 (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
36667 * regcprop.c (struct queued_debug_insn_change): New type.
36668 (struct value_data_entry): Add debug_insn_changes field.
36669 (struct value_data): Add n_debug_insn_changes field.
36670 (debug_insn_changes_pool): New variable.
36671 (free_debug_insn_changes, apply_debug_insn_changes,
36672 cprop_find_used_regs_1, cprop_find_used_regs): New functions.
36673 (kill_value_one_regno): Call free_debug_insn_changes if needed.
36674 (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
36676 (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
36678 (copyprop_hardreg_forward_1): Don't call apply_change_group for
36679 DEBUG_INSNs. For a real insn, if there are queued DEBUG_INSN
36680 changes, call cprop_find_used_regs via note_stores.
36681 (copyprop_hardreg_forward): When copying vd from predecessor
36682 which has any queued DEBUG_INSN changes, make sure the pointers are
36683 cleared. At the end call df_analyze and then if there are any
36684 DEBUG_INSN changes queued at the end of some basic block for still
36685 live registers, apply them.
36686 (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
36688 2010-02-25 Uros Bizjak <ubizjak@gmail.com>
36690 * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
36693 2010-02-25 H.J. Lu <hongjiu.lu@intel.com>
36695 * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
36696 targets. Set the default with_cpu/with_arch from arch/cpu.
36697 Allow x86-64 and native for with_cpu/with_arch.
36699 2010-02-25 Nicolas Benoit <nbenoit@tuxfamily.org>
36701 * ebitmap.c: Change calls to verify_popcount with calls to
36702 sbitmap_verify_popcount.
36703 (ebitmap_clear_bit): Fixed map->cacheindex test and
36704 map>cache update when bit clearing results in an empty
36707 2010-02-25 Michael Meissner <meissner@linux.vnet.ibm.com>
36710 * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
36711 (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
36712 and support both V2DF and V2DI modes.
36713 (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
36714 support both V2DF and V2DI modes.
36715 (general): Delete trailing whitespace from a few patterns.
36717 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
36718 V2DF/V2DI interleave high/low builtins.
36720 * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
36723 * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
36724 interleave high/low functions.
36726 2010-02-25 Gerald Pfeifer <gerald@pfeifer.com>
36728 * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
36729 #pragma extern_prefix.
36731 2010-02-25 Jakub Jelinek <jakub@redhat.com>
36734 * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
36735 BLKmode, assert op0 is a MEM and just adjust its mode.
36738 * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
36739 if bitpos isn't multiple of mode's bitsize.
36741 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
36743 * c.opt (-ftemplate-depth=): New.
36744 (-ftemplate-depth-): Deprecate.
36745 * optc-gen.awk: Handle -ftemplate-depth=.
36746 * opth-gen.awk: Likewise.
36747 * c-opts.c (c_common_handle_option): Likewise.
36748 * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
36750 2010-02-24 Jason Merrill <jason@redhat.com>
36752 * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
36754 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
36756 * cfg.c (alloc_aux_for_block): Remove inline.
36757 (alloc_aux_for_edge): Likewise.
36759 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
36761 * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
36763 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
36765 * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
36766 * config/i386/sol2-gas.h: New file.
36767 * config.gcc (i[34567]86-*-solaris2*): Use it.
36769 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
36772 * c-typeck.c (ep_convert_and_check): New.
36773 (build_conditional_expr): Use it.
36774 (build_binary_op): Likewise.
36776 2010-02-24 Jakub Jelinek <jakub@redhat.com>
36778 * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
36781 * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
36782 bounds even for -O+.
36783 * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
36784 expr needs to have DECL_NAME set.
36786 2010-02-24 Nick Clifton <nickc@redhat.com>
36788 * config/mep/mep.c: Include gimple.h.
36789 (mep_function_uses_sp): Delete unused function.
36790 (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
36791 parameters. Use unsigned integers to count args. Return a
36792 NULL_RTX instead of an error_mark_node. Toidy up formatting.
36794 2010-02-23 Jakub Jelinek <jakub@redhat.com>
36797 * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
36798 greater or equal to nelt instead of 2 * nelt.
36799 (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
36802 2010-02-23 Jason Merrill <jason@redhat.com>
36805 * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
36806 in cfun->local_decls even if they have register types.
36809 * stor-layout.c (place_field): Don't warn about unnecessary
36810 DECL_PACKED if the type is packed.
36812 2010-02-23 Jakub Jelinek <jakub@redhat.com>
36815 * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
36816 GOTOFF relocs, even when the base reg isn't pic pointer.
36818 2010-02-23 Michael Matz <matz@suse.de>
36821 * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
36822 (expand_gimple_basic_block): Generate and use debug temps if there
36823 are debug uses left after the last real use of TERed ssa names.
36824 Unlink debug immediate uses when they are expanded.
36826 2010-02-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
36829 * config/i386/i386.c (override_options): Reorganise to provide
36830 better error messages.
36832 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
36834 PR middle-end/43083
36835 * graphite-scop-detection.c (create_single_exit_edge): Move
36836 the call to find_single_exit_edge to....
36837 (create_sese_edges): ...here. Don't handle multiple edges
36838 exiting the function.
36839 (build_graphite_scops): Don't handle multiple edges
36840 exiting the function.
36842 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
36844 PR middle-end/43097
36845 * sese.c (get_rename): Assert that old_name is an SSA_NAME.
36846 (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
36848 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
36850 PR middle-end/43026
36851 * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
36853 2010-02-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
36856 * c-typeck.c (convert_arguments): Print declaration location.
36857 * c-common.c (validate_nargs): Rename as
36858 builtin_function_validate_nargs.
36859 (check_builtin_function_arguments): Update.
36861 2010-02-22 Richard Guenther <rguenther@suse.de>
36864 * tree-inline.c (declare_return_variable): Use the type of
36865 the call stmt lhs if available.
36867 2010-02-22 Duncan Sands <baldrick@free.fr>
36869 * passes.c (register_pass): Always consider all pass lists when
36870 ref_pass_instance_number is zero.
36872 2010-02-22 Richard Guenther <rguenther@suse.de>
36874 PR tree-optimization/42749
36875 * tree-tailcall.c (adjust_return_value_with_ops): Drop update
36876 parameter. Do arithmetic in the original type.
36877 (update_accumulator_with_ops): Likewise.
36878 (adjust_accumulator_values): Adjust.
36880 2010-02-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
36882 * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
36883 (QI to BLKmode splitter): New splitter.
36885 2010-02-22 H.J. Lu <hongjiu.lu@intel.com>
36887 * config/i386/i386.c (initial_ix86_tune_features): Turn on
36888 X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
36890 2010-02-22 Richard Guenther <rguenther@suse.de>
36892 * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
36894 2010-02-22 Hans-Peter Nilsson <hp@bitrange.com>
36896 Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
36897 * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
36898 ($(T)crti.o, $(T)crtn.o): Remove rules.
36900 2010-02-21 Tobias Burnus <burnus@net-b.de>
36903 * doc/invoke.texi (-fassociative-math): Document that this
36904 option is automatically enabled for Fortran.
36906 2010-02-20 David S. Miller <davem@davemloft.net>
36908 * configure.ac: Test if linker and assembler properly support
36909 GOTDATA_OP relocations.
36910 * configure: Rebuild.
36911 * config.in: Likewise.
36912 * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
36913 (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
36914 (movsi_high_pic): Likewise.
36915 (movdi_lo_sum_pic): Likewise.
36916 (movdi_high_pic): Likewise.
36917 (movsi_pic_gotdata_op): New pattern.
36918 (movdi_pic_gotdata_op): Likewise.
36919 * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
36920 emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
36922 2010-02-20 Uros Bizjak <ubizjak@gmail.com>
36925 * config/i386/sse.md (xop_mulv2div2di3_low): Change type
36926 attribute to ssemul.
36927 (xop_mulv2div2di3_high): Ditto.
36929 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
36932 * c.opt (Wconversion-null): New option.
36933 * doc/invoke.texi (Wconversion-null): Document.
36935 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
36937 * common.opt (Wlarger-than-): Add Undocumented.
36939 2010-02-19 Mike Stump <mikestump@comcast.net>
36941 * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
36943 2010-02-19 Jason Merrill <jason@redhat.com>
36946 * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
36947 * configure: Likewise.
36949 2010-02-20 Alan Modra <amodra@gmail.com>
36951 PR middle-end/42344
36952 * cgraph.h (cgraph_make_decl_local): Declare.
36953 * cgraph.c (cgraph_make_decl_local): New function.
36954 (cgraph_make_node_local): Use it.
36955 * cgraphunit.c (cgraph_function_versioning): Likewise.
36956 * ipa.c (function_and_variable_visibility): Likewise.
36958 2010-02-19 Jakub Jelinek <jakub@redhat.com>
36961 * except.c (sjlj_emit_function_enter): Don't call
36962 add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
36964 * rtl.h (add_reg_br_prob_note): Remove prototype.
36966 2010-02-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
36969 * c-common.c (conversion_warning): Remove widening conversions
36970 before checking the conversion of integers to reals.
36972 2010-02-19 Mike Stump <mikestump@comcast.net>
36974 PR middle-end/43125
36975 * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
36978 * cgraphunit.c (process_function_and_variable_attributes): Check
36979 DECL_PRESERVE_P instead of looking up attribute "used".
36980 * ipa-pure-const.c (check_decl): Likewise.
36981 * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
36982 * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
36983 * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
36984 instead of attribute "used".
36985 * config/sol2-c.c (solaris_pragma_init): Likewise.
36986 (solaris_pragma_fini): Likewise.
36988 2010-02-19 Jakub Jelinek <jakub@redhat.com>
36990 * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
36991 Use XCNEW instead of xcalloc.
36992 (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
36993 XNEW instead of xmalloc.
36994 (get_fields): Use XNEWVEC instead of xmalloc.
36997 * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
36998 populate vars array.
36999 (create_new_general_access): For debug stmts just reset value.
37000 (get_stmt_accesses): For accesses within debug stmts just record them
37001 using add_access_to_acc_sites instead of preventing the peeling or
37002 counting them as accesses.
37004 PR middle-end/42233
37005 * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
37007 2010-02-19 Richard Guenther <rguenther@suse.de>
37009 PR tree-optimization/42916
37010 * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
37013 2010-02-19 Andreas Schwab <schwab@linux-m68k.org>
37015 * configure.ac: Replace all uses of changequote in macro arguments
37016 with proper quoting.
37018 2010-02-19 Jakub Jelinek <jakub@redhat.com>
37020 PR middle-end/42233
37021 * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
37023 2010-02-19 Richard Guenther <rguenther@suse.de>
37025 PR tree-optimization/42944
37026 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
37027 test for aliasing with errno.
37029 2010-02-19 Jakub Jelinek <jakub@redhat.com>
37031 PR middle-end/42233
37032 * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
37033 do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
37034 * dojump.c: Include output.h.
37035 (inv): New inline function.
37036 (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
37037 do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
37038 do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
37039 do_jump_by_parts_equality, do_compare_and_jump): Add PROB
37040 argument, pass it down to other calls.
37041 (do_compare_rtx_and_jump): Likewise. If PROB is not -1,
37042 add REG_BR_PROB note to the conditional jump.
37043 * cfgexpand.c (add_reg_br_prob_note): Removed.
37044 (expand_gimple_cond): Don't call it, add the probability
37045 as last argument to jumpif_1/jumpifnot_1.
37046 * Makefile.in (dojump.o): Depend on output.h.
37047 * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
37049 * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
37050 * stmt.c (do_jump_if_equal): Likewise.
37051 * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
37052 * loop-unswitch.c (compare_and_jump_seq): Likewise.
37053 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
37055 * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
37056 * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
37057 jumpifnot_1 callers.
37058 (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
37060 (store_expr): Adjust jumpifnot caller.
37061 (store_constructor): Adjust jumpif caller.
37063 PR middle-end/42233
37064 * gimplify.c (gimple_boolify): For __builtin_expect call
37065 gimple_boolify also on its first argument.
37067 2010-02-18 Uros Bizjak <ubizjak@gmail.com>
37069 * configure.ac (gnu-unique-object): Wrap regexps using [] in
37071 (__stack_chk_fail): Ditto. Remove quadrigraphs.
37072 * configure: Regenerated.
37074 2010-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
37076 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
37077 lang_hooks.types_compatible_p instead of comptypes.
37079 2010-02-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
37081 * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
37082 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
37083 if __prefer_thumb__ is defined.
37085 2010-02-18 Martin Jambor <mjambor@suse.cz>
37087 PR tree-optimization/43066
37088 * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
37089 array with zero-sized element type.
37091 2010-02-18 Jakub Jelinek <jakub@redhat.com>
37093 * dwarf2out.c (add_var_loc_to_decl): Change last argument to
37094 rtx, allocate struct var_loc_node here and return it to the
37095 caller, and only if it is actually needed.
37096 (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
37097 move it earlier and return immediately if it returns NULL.
37099 2010-02-17 Mikael Pettersson <mikpe@it.uu.se>
37101 * config/sparc/gas.h: New file. Restore
37102 TARGET_ASM_NAMED_SECTION to its ELF default.
37103 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
37104 check !HAVE_GNU_AS.
37105 * config/sparc/sparc.c (sparc_elf_asm_named_section):
37106 Likewise. Add ATTRIBUTE_UNUSED to prototype.
37107 * config.gcc (sparc*-*-linux*): Include sparc/gas.h
37108 after sparc/sysv4.h.
37110 2010-02-17 Dave Korn <dave.korn.cygwin@gmail.com>
37112 * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
37114 2010-02-17 Steven Bosscher <steven@gcc.gnu.org>
37116 * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
37117 patterns from predicated pattern.
37119 2010-02-17 Uros Bizjak <ubizjak@gmail.com>
37122 * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
37123 for insn mnemonic suffix.
37125 2010-02-17 Richard Guenther <rguenther@suse.de>
37127 * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
37130 2010-02-17 Jakub Jelinek <jakub@redhat.com>
37133 * caller-save.c (save_call_clobbered_regs): If BB ends with
37134 a DEBUG_INSN, move any notes in between last real insn and the last
37135 DEBUG_INSN after the last DEBUG_INSN.
37137 2010-02-16 Joern Rennecke <joern.rennecke@embecosm.com>
37139 * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
37140 Fix return type. Fix argument type. Explain meaning of return value.
37142 2010-02-16 Richard Guenther <rguenther@suse.de>
37144 PR tree-optimization/41043
37145 * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
37146 (vrp_visit_assignment_or_call): Do not ask SCEV for regular
37148 (vrp_visit_phi_node): ... but only for loop PHI nodes.
37150 2010-02-16 Ira Rosen <irar@il.ibm.com>
37152 PR tree-optimization/43074
37153 * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
37154 * tree-vect-loop.c (vect_analyze_loop_operations): Add
37155 vectorizable cycles in hybrid SLP check.
37156 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
37158 2010-02-16 Richard Guenther <rguenther@suse.de>
37160 * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
37161 (true_dependence): If memrefs_conflict_p computes must-alias
37162 trust it. Move TBAA check after offset-based disambiguation.
37163 (canon_true_dependence): Likewise.
37165 2010-02-16 Alexandre Oliva <aoliva@redhat.com>
37167 * params.def (PARAM_MAX_VARTRACK_SIZE): New.
37168 * doc/invoke.texi: Document it.
37169 * var-tracking.c: Include toplev.h and params.h.
37170 (vt_find_locations): Return bool indicating success. Compute
37171 hash sizes unconditionally. Check new parameter, report.
37172 (variable_tracking_main_1): Check vt_find_locations results and
37173 retry. Renamed from...
37174 (variable_tracking_main): ... this. New wrapper to preserve
37175 flag_var_tracking_assignments.
37176 * Makefile.in (var-tracking.o): Adjust dependencies.
37178 2010-02-16 Jack Howarth <howarth@bromo.med.uc.edu>
37179 Jakub Jelinek <jakub@redhat.com>
37182 * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
37183 if weak_import attribute is present.
37184 * config/darwin.c (machopic_select_section): Likewise.
37186 2010-02-15 Joern Rennecke <joern.rennecke@embecosm.com>
37188 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
37189 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
37190 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
37191 (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
37193 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
37196 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
37197 Fix argument types.
37199 * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
37200 Rewrite text to refer to the names.
37202 2010-02-15 Sebastian Pop <sebastian.pop@amd.com>
37204 * config/i386/i386-builtin-types.def
37205 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
37206 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
37207 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
37208 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
37209 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
37210 IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
37211 IX86_BUILTIN_VPERMIL2PS256.
37212 (MULTI_ARG_4_DF2_DI_I): Defined.
37213 (MULTI_ARG_4_DF2_DI_I1): Defined.
37214 (MULTI_ARG_4_SF2_SI_I): Defined.
37215 (MULTI_ARG_4_SF2_SI_I1): Defined.
37216 (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
37217 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
37218 __builtin_ia32_vpermil2ps256.
37219 (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
37220 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
37221 MULTI_ARG_4_SF2_SI_I1. Handle builtins with 4 arguments.
37222 (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
37223 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
37224 MULTI_ARG_4_SF2_SI_I1. Handle CODE_FOR_xop_vpermil2v2df3,
37225 CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
37226 CODE_FOR_xop_vpermil2v8sf3.
37227 * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
37228 * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
37229 * config/i386/xopintrin.h (_mm_permute2_pd): New.
37230 (_mm256_permute2_pd): New.
37231 (_mm_permute2_ps): New.
37232 (_mm256_permute2_ps): New.
37234 2010-02-15 Nick Clifton <nickc@redhat.com>
37236 * config/h8300/h8300.c (h8300_push_pop): Use bool type for
37237 boolean parameters. Use emit_jump_insn when emitting a pop
37238 instruction containing a return insn.
37239 (push): Use 'true' rather than '1' as second parameter to F.
37240 (h8300_expand_prologue): Likewise.
37241 Use 'true' and 'false' for boolean parameters to h8300_push_pop.
37242 (h8300_expand_epilogue): Likewise.
37244 2010-02-15 Richard Guenther <rguenther@suse.de>
37246 PR middle-end/43068
37247 * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
37250 2010-02-15 Nick Clifton <nickc@redhat.com>
37252 * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
37255 2010-02-14 Marco Poletti <poletti.marco@gmail.com>
37257 * intl.c (fake_ngettext): New function.
37258 * intl.h (fake_ngettext): Declare.
37259 (ngettext): Define macro.
37260 * collect2.c (notice_translated): New function.
37261 (main): Use notice_translated and ngettext.
37262 * collect2.h (notice_translated): Declare.
37264 2010-02-14 Steven Bosscher <steven@gcc.gnu.org>
37266 * reorg.c (delete_computation): Comment fixes.
37267 * caller-save.c (setup_save_areas): Idem.
37268 * sel-sched-dump.c (dump_lv_set): Idem.
37271 2010-02-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
37273 * config/s390/s390.c (s390_sched_init): New function.
37274 (TARGET_SCHED_INIT): Target hook defined.
37276 2010-02-12 Dave Korn <dave.korn.cygwin@gmail.com>
37277 Jack Howarth <howarth@bromo.med.uc.edu>
37278 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
37281 Partial revert of unintended change in fix for PR41605.
37282 * config/darwin.h: Fix typo.
37283 * config/darwin9.h: Same.
37285 2010-02-11 Jakub Jelinek <jakub@redhat.com>
37287 * c-pch.c (pch_init): Clear v.
37289 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
37291 PR middle-end/42930
37292 * graphite-scop-detection.c (graphite_can_represent_scev): Call
37293 graphite_can_represent_init for MULT_EXPR.
37295 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
37297 PR middle-end/42914
37298 PR middle-end/42530
37299 * graphite-sese-to-poly.c (remove_phi): New.
37300 (translate_scalar_reduction_to_array): Call remove_phi.
37302 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
37304 PR middle-end/42771
37305 * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
37306 * graphite-clast-to-gimple.h (gloog): Update declaration.
37307 * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
37308 * graphite-poly.h (struct poly_bb): Add missing comments.
37309 (struct scop): Add poly_scop_p field.
37310 (POLY_SCOP_P): New.
37311 * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
37312 * graphite.c (graphite_transform_loops): Build the polyhedral
37313 representation for each scop before code generation.
37314 * sese.c (rename_variables_in_operand): Removed.
37315 (rename_variables_in_expr): Return the renamed expression.
37316 (rename_sese_parameters): New.
37317 * sese.h (rename_sese_parameters): Declared.
37319 2010-02-11 Richard Guenther <rguenther@suse.de>
37321 PR tree-optimization/42998
37322 * tree-ssa-pre.c (create_expression_by_pieces): Treat
37323 POINTER_PLUS_EXPR properly.
37325 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
37326 Changpeng Fang <changpeng.fang@amd.com>
37328 PR middle-end/40886
37329 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
37330 the cost of an IV candidate when the IV is used in a test against zero.
37332 * gcc.dg/tree-ssa/ivopts-3.c: New.
37334 2010-02-11 Richard Guenther <rguenther@suse.de>
37337 * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
37338 pointer-vs-decl case by swapping refs. Handle some cases
37339 of pointer-vs-decl disambiguations more conservatively.
37340 * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
37341 to false after expanding.
37343 2010-02-11 Richard Guenther <rguenther@suse.de>
37346 * gcc.c (process_command): Handle LTO file@offset case more
37349 2010-02-11 Jakub Jelinek <jakub@redhat.com>
37351 * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
37352 modifications outside of the DEBUG_INSN. Accept CLOBBERs inside
37354 (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
37356 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
37357 if MEM's mode size isn't DWARF2_ADDR_SIZE.
37358 (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
37359 Optimize eq/ne comparisons when both arguments are known to be
37361 (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
37362 Don't mask operands unnecessarily if they are known to be already
37365 2010-02-10 Vladimir Makarov <vmakarov@redhat.com>
37367 * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
37370 2010-02-10 Richard Guenther <rguenther@suse.de>
37372 PR tree-optimization/43017
37373 * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
37374 for wrapping signed arithmetic.
37376 2010-02-10 Jakub Jelinek <jakub@redhat.com>
37379 * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
37380 if no debug info should be emitted for it.
37382 2010-02-10 Kaz Kojima <kkojima@gcc.gnu.org>
37384 * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
37385 note when flag_exceptions is set.
37387 2010-02-10 Duncan Sands <baldrick@free.fr>
37389 * Makefile.in (PLUGIN_HEADERS): Add debug.h.
37391 2010-02-10 Richard Guenther <rguenther@suse.de>
37394 * tree.c (get_unwidened): Handle constants.
37395 * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
37397 2010-02-10 Martin Jambor <mjambor@suse.cz>
37400 * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
37401 check for variable argument counts independently.
37403 2010-02-10 Christian Bruel <christian.bruel@st.com>
37406 * config/sh/sh.c (find_barrier): Increase length for non delayed
37407 conditional branches.
37409 2010-02-10 Christian Bruel <christian.bruel@st.com>
37411 * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
37413 2010-02-10 Jakub Jelinek <jakub@redhat.com>
37415 * builtins.c (set_builtin_user_assembler_name): Also handle
37416 ffs if int is smaller than word.
37418 2010-02-09 Vladimir Makarov <vmakarov@redhat.com>
37420 PR middle-end/42973
37421 * ira-conflicts.c (get_dup): Remove.
37422 (process_reg_shuffles): Add new parameter. Use it as an
37423 additional guard for copy generation.
37424 (add_insn_allocno_copies): Rewrite.
37426 2010-02-09 Alexander Monakov <amonakov@ispras.ru>
37428 * common.opt (fsched2-use-traces): Preserved for backward
37430 * doc/invoke.texi: Remove the documentation about option
37431 -fsched2-use-traces.
37432 * sched-rgn.c (rest_of_handle_sched2): Remove usage of
37433 flag_sched2_use_traces.
37434 * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
37435 the backward compatibility flag section.
37437 2010-02-09 Richard Guenther <rguenther@suse.de>
37439 PR tree-optimization/43008
37440 * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
37441 make HEAP variables initialized from global memory if they
37442 are not known builtin functions.
37443 (find_func_aliases): Adjust.
37445 2010-02-09 Richard Guenther <rguenther@suse.de>
37447 PR tree-optimization/43000
37448 * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
37449 arithmetic manually.
37451 2010-02-08 Jakub Jelinek <jakub@redhat.com>
37453 PR tree-optimization/42931
37454 * tree-loop-linear.c (try_interchange_loops): Don't call
37455 double_int_mul if estimated_loop_iterations failed.
37457 2010-02-08 Martin Jambor <mjambor@suse.cz>
37459 PR middle-end/42898
37460 * tree-sra.c (build_accesses_from_assign): Do not mark in
37461 should_scalarize_away_bitmap if stmt has volatile ops.
37462 (sra_modify_assign): Do not process assigns piecemeal if if stmt
37465 2010-02-08 Joern Rennecke <joern.rennecke@embecosm.com>
37467 * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
37469 2010-02-07 Adam Nemet <adambnmet@gmail.com>
37471 * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
37472 before the pattern.
37474 2010-02-07 Andrew Pinski <pinskia@gmail.com>
37476 PR middle-end/42946
37477 * df-core.c (df_finish_pass): Change type of saved_flags to int.
37479 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
37481 PR middle-end/42988
37482 * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
37483 to unknown_dependence.
37484 (graphite_legal_transform_dr): Handle the unknown_dependence.
37485 (graphite_carried_dependence_level_k): Same.
37487 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
37489 * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
37491 2010-02-07 Richard Guenther <rguenther@suse.de>
37493 PR middle-end/42991
37494 * expr.c (get_inner_reference): Always initialize *pbitsize.
37496 2010-02-07 Richard Guenther <rguenther@suse.de>
37498 PR middle-end/42956
37499 * gimplify.c (gimple_fold_indirect_ref): Avoid generating
37500 new ARRAY_REFs on variable size element or minimal index arrays.
37502 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
37503 gimple_fold_indirect_ref.
37505 2010-02-06 Richard Earnshaw <rearnsha@arm.com>
37508 * arm.c (arm_override_options): Just return if the user has specified
37509 an invalid fpu name.
37511 2010-02-03 Jason Merrill <jason@redhat.com>
37514 * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
37515 i386_pe_maybe_record_exported_symbol.
37517 2010-02-05 Steve Ellcey <sje@cup.hp.com>
37520 * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
37521 (pa_delegitimize_address): New function.
37523 2010-02-05 Ozkan Sezer <sezeroz@gmail.com>
37525 * config/i386/msformat-c.c (ms_printf_length_specs): Set the
37526 scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
37528 2010-02-05 Richard Guenther <rguenther@suse.de>
37531 * lto-streamer-in.c (get_resolution): Deal with references
37532 to undefined functions.
37534 2010-02-05 Richard Guenther <rguenther@suse.de>
37536 * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
37537 (fold_const_aggregate_ref): Likewise.
37538 (ccp_fold_stmt): Substitute loads.
37539 (maybe_fold_reference): Verify types before substituting.
37541 (fold_gimple_assign): Unshare properly.
37542 (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
37544 2010-02-05 Nathan Froyd <froydnj@codesourcery.com>
37546 * config/rs6000/rs6000.c (rs6000_override_options): Invert check
37547 for rs6000_gen_cell_microcode.
37549 2010-02-04 Richard Guenther <rguenther@suse.de>
37551 PR rtl-optimization/42952
37552 * dse.c (const_or_frame_p): Remove MEM handling.
37554 2010-02-04 Nick Clifton <nickc@redhat.com>
37556 * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
37557 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
37558 (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
37559 (mn10300_asm_output_mi_thunk): New function.
37560 (mn10300_can_output_mu_thunk): New function.
37561 * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
37562 (FUNCTION_ARG_REGNO_P): Fix comment. Accept d0 and d1.
37563 (FUNCTION_ARG): Delete incorrect comment.
37565 2010-02-03 Jason Merrill <jason@redhat.com>
37568 * fold-const.c (operand_equal_p): Handle erroneous types.
37570 2010-02-03 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
37572 * config/h8300/h8300.md (can_delay): Fix attibute condition.
37574 2010-02-03 Vladimir Makarov <vmakarov@redhat.com>
37576 PR rtl-optimization/42941
37577 * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
37580 2010-02-03 Jason Merrill <jason@redhat.com>
37583 * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
37585 2010-02-03 Alexandre Oliva <aoliva@redhat.com>
37588 * cselib.h (struct cselib_val_struct): Add uid. Rename value to hash.
37589 (cselib_reset_table): Renamed from...
37590 (cselib_reset_table_with_next_value): ... this.
37591 (cselib_get_next_uid): Renamed from...
37592 (cselib_get_next_unknown_value): ... this.
37593 * cselib.c (next_uid): Renamed from...
37594 (next_unknown_value): ... this.
37595 (cselib_clear_table): Adjust.
37596 (cselib_reset_table): Adjust. Renamed from...
37597 (cselib_reset_table_with_next_value): ... this.
37598 (cselib_get_next_uid): Adjust. Renamed from...
37599 (cselib_get_next_unknown_value): ... this.
37600 (get_value_hash): Use hash.
37601 (cselib_hash_rtx): Likewise.
37602 (new_cselib_val): Adjust. Set and dump uid.
37603 (cselib_lookup_mem): Pass next_uid as hash.
37604 (cselib_subst_to_values): Likewise.
37605 (cselib_log_lookup): Dump uid.
37606 (cselib_lookup): Pass next_uid as hash. Adjust.
37607 (cselib_process_insn): Adjust.
37608 (cselib_init): Initialize next_uid.
37609 (cselib_finish): Adjust.
37610 (dump_cselib_table): Likewise.
37611 * dse.c (canon_address): Dump value uid.
37612 * print-rtl.c (print_rtx): Print value uid.
37613 * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
37615 (dv_uid): New function, sort of renamed from...
37616 (dv_htab_hash): ... this, reimplemented in terms of it and...
37617 (dv_uid2hash): ... this. New.
37618 (variable_htab_eq): Drop excess assertions.
37619 (tie_break_pointers): Removed.
37620 (canon_value_cmp): Compare uids.
37621 (variable_post_merge_New_vals): Print uids.
37622 (vt_add_function_parameters): Adjust.
37623 (vt_initialize): Reset table. Adjust.
37625 2010-02-03 Richard Guenther <rguenther@suse.de>
37627 PR tree-optimization/42944
37628 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
37629 (call_may_clobber_ref_p_1): Likewise. Properly handle
37630 malloc and calloc clobbering errno.
37632 2010-02-03 Steven Bosscher <steven@gcc.gnu.org>
37634 * doc/invoke.texi: Fix name of sched1 dump.
37636 * opts.c (decode_options): Set flag_tree_switch_conversion
37637 only conditionally on optimize >= 2.
37639 * gcse.c: Assorted comment fixes in pass description.
37641 2010-02-03 Anthony Green <green@moxielogic.com>
37643 * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
37644 nop padding in order to maintain alignment of storage location of
37645 target function address.
37646 (moxie_trampoline_init): Store target function address at newly
37648 * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
37650 (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
37652 2010-02-03 Richard Guenther <rguenther@suse.de>
37654 PR middle-end/42927
37655 * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
37657 2010-02-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
37659 * config.gcc: Reenable check for obsolete targets.
37660 Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
37661 mips-sgi-irix6.[0-4]*.
37663 2010-02-02 Nick Clifton <nickc@redhat.com>
37665 * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
37666 constant size of 4 as being the same as 0.
37667 * doc/invoke.texi (RX Options): Document that -mmax-constant-size
37668 can take values in the range 0..4.
37670 2010-02-02 Jack Howarth <howarth@bromo.med.uc.edu>
37673 * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
37674 as _darwin10_Unwind_FindEnclosingFunction().
37675 * libgcc-libsystem.ver: New.
37677 2010-02-01 Vladimir Makarov <vmakarov@redhat.com>
37680 * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
37681 implicitly set registers.
37683 2010-02-01 Richard Earnshaw <rearnsha@arm.com>
37685 * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
37686 (arm_override_options): Allow automatic selection of the thread
37687 pointer register if thumb2.
37688 (legitimize_pic_address): Improve code sequences for Thumb2.
37689 (arm_call_tls_get_addr): Likewise.
37690 (legitimize_tls_address): Likewise.
37691 * arm.md (pic_load_addr_arm): Delete. Replace with ...
37692 (pic_load_addr_32bit): ... this. New named pattern.
37693 * thumb2.md (pic_load_addr_thumb2): Delete.
37694 (pic_load_dot_plus_four): Delete.
37695 (tls_load_dot_plus_four): New named pattern.
37697 2010-02-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
37700 * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
37701 Document fix for TLS bug.
37703 2010-01-31 Richard Guenther <rguenther@suse.de>
37705 * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
37706 conservatively correct.
37708 2010-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
37712 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
37714 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
37716 2010-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
37718 * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
37720 2010-01-31 Kai Tietz <kai.tietz@onevision.com>
37722 * config.gcc: Adjust order of makefile fragments for mingw targets.
37724 2010-01-31 Richard Guenther <rguenther@suse.de>
37726 PR middle-end/42898
37727 * gimplify.c (gimplify_init_constructor): For volatile LHS
37728 initialize a temporary.
37730 2010-01-31 Matthias Klose <doko@ubuntu.com>
37732 * configure.ac: Fix __stack_chk_fail check for cross builds configured
37734 * configure: Regenerate.
37736 2010-01-29 Eric Botcazou <ebotcazou@adacore.com>
37738 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
37739 the same alias set and their sizes different constantness.
37740 (aliasing_component_refs_p): Revert 2009-10-24 change.
37742 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
37744 * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
37747 2010-01-29 Richard Guenther <rguenther@suse.de>
37749 * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
37750 Assert we successfully updated the call.
37752 2010-01-29 Jakub Jelinek <jakub@redhat.com>
37754 PR rtl-optimization/42889
37755 * df.h (df_set_bb_dirty_nonlr): New prototype.
37756 * df-core.c (df_set_bb_dirty_nonlr): New function.
37757 * df-scan.c (df_insn_rescan): Call it instead of
37758 df_set_bb_dirty for DEBUG_INSNs.
37760 2010-01-29 Richard Guenther <rguenther@suse.de>
37762 PR middle-end/37448
37763 * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
37764 quadratic behavior in most cases.
37766 2010-01-28 Uros Bizjak <ubizjak@gmail.com>
37769 * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
37770 in the call to gen_x86_movsicc_0_m1.
37772 2010-01-28 Richard Guenther <rguenther@suse.de>
37774 PR tree-optimization/42871
37775 * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
37777 2010-01-28 Richard Guenther <rguenther@suse.de>
37779 * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
37780 into call arguments.
37782 2010-01-28 Richard Guenther <rguenther@suse.de>
37784 PR middle-end/42883
37785 * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
37786 the forwarder if the destination is an EH landing pad.
37788 2010-01-28 Razya Ladelsky <razya@il.ibm.com>
37790 * tree-parloops.c (transform_to_exit_first_loop): Update the basic
37791 block list passed to gimple_duplicate_sese_tail.
37792 (parallelize_loops): Avoid parallelization when the function
37793 has_nonlocal_label.
37794 Avoid parallelization when the preheader is IRREDUCIBLE.
37795 Try to optimize when estimated_loop_iterations_int is unresolved.
37796 Add the loop's location to the dump file.
37797 * tree-cfg.c (add_phi_args_after_redirect): Remove.
37798 (gimple_duplicate_sese_tail): Remove the check for the latch.
37799 Redirect nexits to the exit block.
37800 Remove handling of the incoming edges to the latch.
37801 Redirect the backedge from the copied latch to the exit bb.
37803 2010-01-28 Michael Matz <matz@suse.de>
37806 * config/i386/i386.c (ix86_expand_vector_init_duplicate):
37807 Wrap force_reg into a sequence, emit it before user.
37809 2010-01-28 Stephen Thomas <stephen.thomas@arm.com>
37811 * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
37813 (arm_legacy_rev): Likewise.
37814 (thumb_legacy_rev): Likewise.
37816 2010-01-27 Jakub Jelinek <jakub@redhat.com>
37818 * dwarf2out.c (mem_loc_descriptor): Remove special casing of
37819 CONSTANT_POOL_ADDRESS_P SYMBOL_REFs. If for MEM recursive call
37820 on MEM's address failed, try avoid_constant_pool_reference and
37821 recurse if it returned something different.
37822 (loc_descriptor): If for MEM mem_loc_descriptor failed on the
37823 address, try avoid_constant_pool_reference and recurse if it
37824 returned something different.
37825 (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
37826 address and avoid_constant_pool_reference returned something
37827 different, don't set have_address.
37829 2010-01-27 Alexandre Oliva <aoliva@redhat.com>
37832 * var-tracking.c (val_store): Add modified argument, obey it.
37834 (count_uses): Move down logging of main.
37835 (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
37836 don't need resolution.
37837 (emit_notes_in_bb): Likewise.
37839 2010-01-27 Richard Guenther <rguenther@suse.de>
37841 PR middle-end/42878
37842 * tree-inline.c (remap_decl): Delay remapping of SSA name
37843 default definitions until we need them.
37845 2010-01-27 Jakub Jelinek <jakub@redhat.com>
37847 * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
37848 (rs6000_delegitimize_address): New function.
37850 * config/s390/s390.c (s390_delegitimize_address): Call
37851 delegitimize_mem_from_attrs.
37853 PR middle-end/42874
37854 * tree-inline.c (cannot_copy_type_1): Removed.
37855 (copy_forbidden): Don't forbid copying of functions containing
37856 records/unions with variable length fields.
37858 2010-01-27 Christian Bruel <christian.bruel@st.com>
37862 * config/sh/sh.c (find_barrier): Increase length for non delayed
37863 conditional branches.
37865 2010-01-27 Matthias Klose <doko@ubuntu.com>
37867 * configure.ac (gnu-unique-object): Fix ldd version check.
37868 * configure: Regenerate.
37870 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
37872 * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
37874 * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
37875 Test for HAVE_GNU_AS value.
37877 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
37879 * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
37880 * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
37881 INT64_TYPE): Define.
37882 (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
37883 (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
37884 INT_LEAST64_TYPE): Define.
37885 (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
37886 UINT_LEAST64_TYPE): Define.
37887 (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
37888 INT_FAST64_TYPE): Define.
37889 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
37890 UINT_FAST64_TYPE): Define.
37891 (INTMAX_TYPE, UINTMAX_TYPE): Define.
37892 (INTPTR_TYPE, UINTPTR_TYPE): Define.
37893 (SIG_ATOMIC_TYPE): Define.
37895 2010-01-26 Richard Guenther <rguenther@suse.de>
37897 * df-scan.c (df_scan_set_bb_info): Remove assert.
37898 (df_insn_rescan_debug_internal): Merge asserts.
37899 (df_install_ref): Likewise.
37900 (df_mark_reg): Use bitmap_set_range.
37901 (df_hard_reg_used_p): Remove assert.
37902 (df_hard_reg_used_count): Likewise.
37904 2010-01-26 Richard Guenther <rguenther@suse.de>
37906 PR rtl-optimization/42685
37907 * web.c (web_main): Ignore DEBUG_INSNs.
37909 2010-01-26 Joern Rennecke <amylaar@spamcop.net>
37911 * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
37913 (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
37914 Fix types of fndecl and arglist parameters.
37916 2010-01-26 Richard Guenther <rguenther@suse.de>
37918 PR middle-end/42806
37919 * tree-eh.c (unsplit_eh): Skip debug insns.
37921 2010-01-26 Richard Guenther <rguenther@suse.de>
37923 PR tree-optimization/42250
37924 * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
37926 2010-01-26 Jakub Jelinek <jakub@redhat.com>
37929 * omp-low.c (expand_omp_sections): Only use single_pred if
37930 l2_bb is single_pred_p.
37932 2010-01-25 Christian Bruel <christian.bruel@st.com>
37935 * config/sh/sh.c (find_barrier): Increase length for non delayed
37936 conditional branches.
37937 (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
37939 2010-01-24 David S. Miller <davem@davemloft.net>
37941 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
37942 define if not using GAS.
37943 * config/sparc/sparc.c (sparc_elf_asm_named_section):
37944 Likewise. Delete SECTION_MERGE code, which is only applicable
37947 2010-01-24 Mark Mitchell <mark@codesourcery.com>
37950 * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
37951 mangling of va_list in system headers.
37953 2010-01-23 Toon Moene <toon@moene.org>
37955 * tree-predcom.c (combine_chains): Return NULL, not false.
37957 2010-01-23 Joern Rennecke <amylaar@spamcop.net>
37959 * tree-loop-distribution.c (distribute_loop): Fix declaration and
37960 initialization of variable res to agree with return type.
37962 2010-01-22 Steve Ellcey <sje@cup.hp.com>
37964 * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
37965 * tree-sra.c: Add include of expr.h.
37967 2010-01-22 Jakub Jelinek <jakub@redhat.com>
37969 * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
37970 insert the debug stmt on the single non-EH edge from the stmt.
37972 2010-01-22 Richard Henderson <rth@redhat.com>
37975 * tree-sra.c (sra_modify_assign): Delay re-gimplification of
37976 the RHS until after generate_subtree_copies has insertted its
37977 code before the current statement.
37979 2010-01-22 Joern Rennecke <amylaar@spamcop.net>
37981 * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
37983 * gcc-plugin.h (plugin_init): Use "C" likage for c++.
37985 2010-01-21 Martin Jambor <mjambor@suse.cz>
37987 PR tree-optimization/42585
37988 * tree-sra.c (struct access): New field grp_total_scalarization.
37989 (dump_access): Dump the new field.
37990 (should_scalarize_away_bitmap): New variable.
37991 (cannot_scalarize_away_bitmap): Likewise.
37992 (sra_initialize): Allocate new bitmaps.
37993 (sra_deinitialize): Free new bitmaps.
37994 (create_access_1): New function.
37995 (create_access): Parts moved to create_access_1.
37996 (type_consists_of_records_p): New function.
37997 (completely_scalarize_record): Likewise.
37998 (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
37999 (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
38000 (sort_and_splice_var_accesses): Hint groups with a total_scalarization
38002 (analyze_all_variable_accesses): Completely scalarize small eligible
38005 2010-01-21 Martin Jambor <mjambor@suse.cz>
38007 * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
38009 2010-01-21 Andrew Haley <aph@redhat.com>
38011 * gcc.c (process_command): Move lang_specific_driver before
38012 setting cc_libexec_prefix.
38014 2010-01-21 Richard Guenther <rguenther@suse.de>
38016 PR middle-end/19988
38017 * fold-const.c (negate_expr_p): Pretend only negative
38018 real constants are easily negatable.
38020 2010-01-20 Janis Johnson <janis187@us.ibm.com>
38021 Jason Merrill <jason@redhat.com>
38023 * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
38024 (TYPE_TRANSPARENT_AGGR): this, for union and record.
38025 * calls.c (initialize argument_information): Handle it.
38026 * c-common.c (handle_transparent_union_attribute): Use new name.
38027 * c-decl.c (finish_struct): Ditto.
38028 * c-typeck.c (type_lists_compatible_p): Ditto.
38029 (convert_for_assignment): Use new name and also handle record.
38030 * function.c (aggregate_value_p): Handle it.
38031 (pass_by_reference): Ditto.
38032 (assign_parm_data_types): Ditto.
38033 * print-tree.c (print_node): Ditto.
38034 * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
38035 * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
38036 * tree.c (first_field): New fn.
38038 2010-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
38041 * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
38042 even when linking statically, for now.
38044 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
38047 * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
38048 without a cselib val.
38049 (count_uses): Accept MO_VAL_SET with no val on stores.
38050 (add_stores): Likewise.
38052 2010-01-20 Jakub Jelinek <jakub@redhat.com>
38054 * var-tracking.c (check_value_val): Add a compile time assertion.
38055 (dv_is_decl_p): Simplify.
38056 (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
38057 gcc_assert if ENABLE_CHECKING.
38059 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
38062 * var-tracking.c: Include tree-flow.h.
38063 (mem_dies_at_call): New.
38064 (dataflow_set_preserve_mem_locs): Use it.
38065 (dataflow_set_remove_mem_locs): Likewise.
38066 (dump_var): Renamed from dump_variable. Adjust all callers.
38067 (dump_var_slot): Renamed from dump_variable_slot. Likewise.
38068 * Makefile.in (var-tracking.o): Adjust deps.
38070 2010-01-20 Joern Rennecke <amylaar@spamcop.net>
38072 * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
38074 2010-01-20 Richard Guenther <rguenther@suse.de>
38076 PR tree-optimization/42717
38077 * tree-ssa-dce.c (get_live_post_dom): Remove.
38078 (forward_edge_to_pdom): Take an arbitrary edge to copy
38079 degenerate PHI args from.
38080 (remove_dead_stmt): Use the first post-dominator even if it
38081 does not contain live statements as redirection destination.
38083 2010-01-20 Richard Guenther <rguenther@suse.de>
38085 * tree-inline.c (estimate_num_insns): Handle EH builtins.
38087 2010-01-20 Jakub Jelinek <jakub@redhat.com>
38089 * sel-sched.c (create_speculation_check): Remove set but not used
38091 (try_transformation_cache): Remove set but not used variable ds.
38092 (calculate_privileged_insns): Remove set but not used variables
38093 cur_insn and min_spec_insn.
38094 (find_best_expr): Remove set but not used variable avail_n.
38095 * tree-predcom.c (base_names_in_chain_on): Remove set but not used
38097 * cgraphunit.c (assemble_thunk): Remove set but not used variable
38099 * haifa-sched.c (remove_notes): Remove set but not used variable prev.
38100 * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
38101 new_scop_exit_edge.
38103 2010-01-20 Felyza Wishbringer <fwishbringer@gmail.com>
38106 * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
38107 cpu types. Add support for *-sse3 cpu types.
38108 (x86_64-*-*): Ditto.
38110 2010-01-20 Jakub Jelinek <jakub@redhat.com>
38112 PR middle-end/42803
38113 * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
38114 argument, call initializer_constant_valid_p_1 instead of
38115 initializer_constant_valid_p, pass CACHE to it, return NULL
38116 immediately if first call returns NULL.
38117 (initializer_constant_valid_p_1): New function.
38118 (initializer_constant_valid_p): Use it.
38120 2010-01-20 Thomas Quinot <quinot@adacore.com>
38122 * tree.def (PLACEHOLDER_EXPR): Fix comment.
38124 2010-01-20 Jakub Jelinek <jakub@redhat.com>
38126 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
38127 of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
38128 (loc_list_from_tree): Don't handle unsigned division. Handle
38129 signed modulo using DW_OP_{over,over,div,mul,minus}.
38130 * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
38131 modulo instead of signed.
38133 2010-01-20 DJ Delorie <dj@redhat.com>
38135 * config/h8300/h8300.c (F): Add "in_epilogue" flag.
38137 (h8300_emit_stack_adjustment): Propogate it.
38139 (h8300_expand_prologue): Likewise.
38140 (h8300_expand_epilogue): Likewise.
38142 2010-01-19 Michael Matz <matz@suse.de>
38144 PR tree-optimization/41783
38145 * tree-data-ref.c (toplevel): Include flags.h.
38146 (dump_data_dependence_relation): Also dump the inputs if the
38147 result will be unknown.
38148 (split_constant_offset_1): Look through some conversions.
38149 * tree-predcom.c (determine_roots_comp): Restart a new chain if
38150 the offset from last element is too large.
38151 (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
38152 (reassociate_to_the_same_stmt): Handle vector registers.
38153 * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
38154 (e.g. conversions).
38155 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
38156 wide_prolog_niters argument, emit widening instructions.
38157 (vect_do_peeling_for_alignment): Adjust caller, use widened
38158 variant of the iteration cound.
38159 * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
38161 2010-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
38164 * config/arm/neon-testgen.m (emit_automatics): New parameter
38165 features. Adjust for Fixed_return_reg feature.
38166 (test_intrinsic): Call emit_automatics with new feature.
38167 * config/arm/neon.ml: Update copyright years.
38168 (features): New Fixed_return_reg feature.
38169 (ops): Update feature for Vget_low.
38171 2010-01-19 Jakub Jelinek <jakub@redhat.com>
38173 PR tree-optimization/42719
38174 * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
38178 * fwprop.c (all_uses_available_at): Return false if def_set dest
38179 is a REG that is used in def_insn.
38181 2010-01-19 Joern Rennecke <amylaar@spamcop.net>
38183 * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
38185 (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
38186 Add argument names.
38188 (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
38190 * target.h (struct gcc_target) <secondary_reload>: Change type
38191 of last argument to secondary_reload_info *.
38193 2010-01-18 Uros Bizjak <ubizjak@gmail.com>
38196 * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
38197 memory references with unaligned offsets. Remove CQImode handling.
38198 (unaligned_memory_operand): Return 1 for memory references with
38199 unaligned offsets. Remove CQImode handling.
38201 2010-01-18 Richard Guenther <rguenther@suse.de>
38203 PR middle-end/39954
38204 * cfgexpand.c (expand_call_stmt): TER pointer arguments in
38207 2010-01-18 Richard Guenther <rguenther@suse.de>
38209 PR tree-optimization/42781
38210 * tree-ssa-structalias.c (find_what_var_points_to): Skip
38211 restrict processing only if the original variable was artificial.
38213 2010-01-18 Joern Rennecke <amylaar@spamcop.net>
38215 * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
38216 find number of popped argument bytes.
38218 (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
38219 Fix the text that describes the return value for invalid insns.
38221 (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type. Fix argument list.
38223 (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
38224 Clarify what 'cost of the -dependence' is. Fix quoting.
38226 * toplev.c (default_get_pch_validity): Rename argument to "sz".
38227 * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
38229 2010-01-17 Jakub Jelinek <jakub@redhat.com>
38231 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
38232 {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
38234 2010-01-17 Richard Guenther <rguenther@suse.de>
38236 PR middle-end/42248
38237 * function.c (split_complex_args): Take a VEC to modify.
38238 (assign_parms_augmented_arg_list): Build a VEC instead of
38239 a chain of PARM_DECLs.
38240 (assign_parms_unsplit_complex): Take a VEC of arguments.
38241 Do not fixup unmodified parms.
38242 (assign_parms): Deal with the VEC.
38243 (gimplify_parameters): Likewise.
38245 2010-01-17 Richard Guenther <rguenther@suse.de>
38247 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
38248 node existence check.
38249 * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
38250 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
38251 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
38252 * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
38253 (gimple_execute_on_growing_pred): Likewise.
38255 2010-01-17 Richard Guenther <rguenther@suse.de>
38257 PR tree-optimization/42773
38258 * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
38259 (compute_antic_aux): Likewise.
38260 (compute_partial_antic_aux): Likewise.
38262 2010-01-17 Jie Zhang <jie.zhang@analog.com>
38265 * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
38268 2010-01-17 Joern Rennecke <amylaar@spamcop.net>
38270 * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
38273 (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
38274 Fix markup for strict argument.
38276 (TARGET_SCHED_REORDER2): Fix argument types.
38278 (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
38279 (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
38281 (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
38282 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
38284 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
38287 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
38288 (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
38289 (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
38290 (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
38291 (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
38293 (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
38295 (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
38297 (TARGET_ASM_RELOC_RW_MASK): Add return type.
38298 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
38300 (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
38302 (TARGET_ASM_FILE_START): Put @findex before paragraph start.
38305 (TARGET_ASM_NAMED_SECTION): Fix argument list.
38307 (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
38308 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
38310 (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
38312 (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
38314 (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
38315 referring to it. Fix language.
38317 (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
38319 (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
38321 (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
38323 (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
38325 (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
38326 '@var{stream}. Remove stray 'and'.
38328 (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
38330 (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
38332 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
38334 (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
38335 misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
38337 (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
38338 Fix description of return value.
38339 Rename argument "sz" to "len."
38341 (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
38342 Clarify meaning of 'true' return value.
38344 (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
38346 (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
38347 rep_mode versus mode_rep.
38349 (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
38351 (TARGET_BUILTIN_DECL): Fix name.
38353 (TARGET_COMMUTATIVE_P): Fix type of first argument.
38355 (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
38357 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
38359 (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
38361 (TARGET_RELAXED_ORDERING): Use @deftypevr.
38363 (TARGET_GET_DRAP_RTX): Note that this is a hook.
38366 (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
38367 Rename argument tm_fn to md_fn.
38369 (TARGET_OPTION_PRINT): Fix argument list.
38371 2010-01-16 Harsha Jagasia <harsha.jagasia@amd.com>
38374 * config/i386/i386.c (ix86_fixup_binary_operands):
38375 Revert FMA4 fixup of operands.
38377 2010-01-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
38380 * Makefile.in (write_entries_to_file, install-plugin):
38381 Use \012 instead of \n with tr.
38383 2010-01-16 Richard Sandiford <r.sandiford@uk.ibm.com>
38385 * configure.ac (HAVE_AS_REF): New C macro.
38386 * configure: Regenerate.
38387 * config.in: Likewise.
38388 * collect2.c (main): Only postpone SCAN_DWEH to the second pass
38390 * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
38393 2010-01-16 Joern Rennecke <amylaar@spamcop.net>
38395 * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
38397 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
38399 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
38401 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
38403 (TARGET_IN_SMALL_DATA_P): Fix argument type.
38405 (TARGET_BINDS_LOCAL_P): Fix argument type.
38407 (TARGET_ASM_FILE_END): Use prototype.
38409 (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
38411 (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
38413 (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
38415 (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
38417 (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
38418 (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
38420 (TARGET_PCH_VALID_P): Put 'const char *' in braces.
38421 (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
38423 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
38424 (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
38425 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
38426 (TARGET_ADDR_SPACE_CONVERT): Likewise.
38428 (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
38430 (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
38432 (TARGET_INIT_BUILTINS): Use prototype.
38434 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
38435 Put 'const char *' in braces. Fix parameter types.
38436 (TARGET_INVALID_CONVERSION): Fix parameter types.
38437 (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
38438 (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
38440 (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
38443 (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
38445 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
38447 2010-01-15 Joern Rennecke <amylaar@spamcop.net>
38449 * doc/tm.texi (TARGET_HELP): Fix return type.
38451 (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
38452 in braces. Fix argument types.
38454 (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
38456 (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
38458 (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
38460 (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
38461 (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
38463 (TARGET_MANGLE_TYPE): Fix argument types.
38465 (TARGET_IRA_COVER_CLASSES): Use prototype.
38467 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type. Use prototype.
38469 (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
38471 (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
38473 (TARGET_MUST_PASS_IN_STACK): Fix argument type.
38475 (TARGET_CALLEE_COPIES): Fix argument types.
38477 (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
38479 (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
38481 (TARGET_FUNCTION_VALUE): Fix argument types.
38483 (TARGET_RETURN_IN_MSB): Fix argument type.
38485 (TARGET_RETURN_IN_MEMORY): Fix argument types.
38487 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
38489 (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
38491 (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
38492 agree with return type.
38494 (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
38496 2010-01-15 Jing Yu <jingyu@google.com>
38498 PR rtl-optimization/42691
38499 * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
38500 a pseudo to a constant and are merged, and adjust comments.
38502 2010-01-15 Eric Botcazou <ebotcazou@adacore.com>
38504 * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
38506 2010-01-15 Richard Guenther <rguenther@suse.de>
38508 PR middle-end/42739
38509 * tree-cfgcleanup.c (remove_forwarder_block): Move destination
38510 labels of computed or non-local gotos to the destination.
38511 * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
38512 landing pad label is the first label.
38514 2010-01-15 Richard Guenther <rguenther@suse.de>
38516 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
38518 2010-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
38521 * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
38522 to allow generation of the xssqrtdp instruction on power7.
38523 (sqrtdf2_fpr): Ditto.
38525 2010-01-14 Jakub Jelinek <jakub@redhat.com>
38527 PR middle-end/42674
38528 * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
38529 functions with noreturn attribute.
38532 * varasm.c (declare_weak): Add weak attribute to decl if it
38533 doesn't have one already.
38534 (assemble_external): Only add decls to weak_decls if they also
38535 have weak attribute.
38537 2010-01-14 Alexandre Oliva <aoliva@redhat.com>
38539 * var-tracking.c (var_reg_delete): Don't delete the association
38540 between REGs and values or one-part variables if the register
38543 2010-01-14 Jakub Jelinek <jakub@redhat.com>
38546 * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
38547 because its first operand is a non-localized variable.
38549 2010-01-14 Martin Jambor <mjambor@suse.cz>
38551 PR tree-optimization/42706
38552 * tree-sra.c (encountered_recursive_call): New variable.
38553 (encountered_unchangable_recursive_call): Likewise.
38554 (sra_initialize): Initialize both new variables.
38555 (callsite_has_enough_arguments_p): New function.
38556 (scan_function): Call decl and flags check only for IPA-SRA, check
38557 whether there is a recursive call and whether it has enough arguments.
38558 (all_callers_have_enough_arguments_p): New function.
38559 (convert_callers): Look for recursive calls only when
38560 encountered_recursive_call is set.
38561 (ipa_early_sra): Bail out either if
38562 !all_callers_have_enough_arguments_p or
38563 encountered_unchangable_recursive_call.
38565 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
38567 * sel-sched.c: Add 2010 to copyright years.
38568 * sel-sched-ir.c: Likewise.
38569 * sel-sched-ir.h: Likewise.
38571 2010-01-14 Martin Jambor <mjambor@suse.cz>
38573 PR tree-optimization/42714
38574 * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
38575 constructors specially.
38577 2010-01-14 Andi Kleen <ak@linux.intel.com>
38579 * config/i386/drivers-i386.c (detect_caches_intel):
38580 Add l2sizekb parameter and fill in.
38581 (host_detect_local_cpu): Add l2sizekb, fill in.
38582 Add Atom small cache heuristic.
38584 2010-01-14 Andi Kleen <ak@linux.intel.com>
38586 * config/i386/drivers-i386.c (detect_caches_cpuid4):
38587 Add level3 parameter and fill in.
38588 (detect_caches_intel): Handle level3 cache.
38590 2010-01-14 Andi Kleen <ak@linux.intel.com>
38592 * config/i386/drivers-i386.c (host_detect_local_cpu):
38593 Fix core duo detection.
38595 2010-01-14 Andi Kleen <ak@linux.intel.com>
38597 * config/i386/drivers-i386.c (host_detect_local_cpu):
38598 Fix Atom detection.
38600 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
38602 * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
38603 (rs6000_variable_issue_1): this. Use...
38604 (rs6000_variable_issue): here. Reimplement. Print debug info.
38606 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
38608 * sel-sched-ir.c (sel_restore_other_notes): Rename to
38609 sel_restore_notes. Update all callers. Call reemit_notes
38612 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
38614 PR rtl-optimization/42246
38615 * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
38618 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
38620 * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
38621 all successors is the same as number of successors in current region.
38623 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
38625 * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
38626 to rename is not separable. Otherwise check that its LHS is not NULL.
38628 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
38630 * sel-sched.c (choose_best_reg_1): Loop over all regs for mode.
38632 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
38634 * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
38635 available registers when failed to discover LHS register class.
38636 Fix indentation. Update comment.
38638 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
38639 Alexander Monakov <amonakov@ispras.ru>
38641 PR rtl-optimization/42389
38642 * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
38644 (advance_state_on_fence): Likewise.
38645 (sel_target_adjust_priority): Print debug output only when
38646 sched_verbose >= 4, not 2.
38647 (get_expr_cost): Do not issue all unique insns on the next cycle.
38648 (fill_insns): Initialize can_issue_more from the value saved
38650 * sel-sched-ir.c (flist_add): New parameter issue_more.
38651 Init FENCE_ISSUE_MORE with it.
38652 (merge_fences): Likewise.
38653 (init_fences): Update call to flist_add.
38654 (add_to_fences, add_clean_fence_to_fences)
38655 (add_dirty_fence_to_fences): Likewise.
38656 (move_fence_to_fences): Update call to merge_fences.
38657 (invoke_reorder_hooks): Do not reset can_issue_more on insns from
38659 * sel-sched-ir.h (struct _fence): New field issue_more.
38660 (FENCE_ISSUE_MORE): New accessor macro.
38662 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
38664 PR rtl-optimization/42388
38665 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
38666 that have no predecessors nor successors. Do not call move_bb_info
38667 for empty blocks outside of current region.
38669 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
38671 PR rtl-optimization/42294
38672 * sel-sched-ir.h (struct _sel_insn_data): Update comment.
38673 * sel-sched.c (move_exprs_to_boundary): Transitively add all
38674 originators' originators.
38676 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
38678 PR rtl-optimization/39453
38679 PR rtl-optimization/42246
38680 * sel-sched-ir.c (considered_for_pipelining_p): Do not test
38682 (sel_add_loop_preheaders): Add preheader to last_added_blocks.
38684 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
38685 Alexander Monakov <amonakov@ispras.ru>
38687 PR middle-end/42245
38688 * sel-sched-ir.c (sel_recompute_toporder): New. Use it...
38689 (maybe_tidy_empty_bb): ... here. Make static. Add new
38690 argument. Update all callers.
38691 (tidy_control_flow): ... and here. Recompute topological order
38692 of basic blocks in region if necessary.
38693 (sel_redirect_edge_and_branch): Change return type. Return true
38694 if topological order might have been invalidated.
38695 (purge_empty_blocks): Export and move from...
38696 * sel-sched.c (purge_empty_blocks): ... here.
38697 * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
38698 (maybe_tidy_empty_bb): Delete prototype.
38699 (purge_empty_blocks): Declare.
38701 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
38703 PR rtl-optimization/42249
38704 * sel-sched.c (try_replace_dest_reg): When chosen register
38705 and original register is the same, do not bail out early, but
38706 still check all original insns for validity of replacing destination
38707 register. Set EXPR_TARGET_AVAILABLE to 1 before leaving function
38710 2010-01-14 Jakub Jelinek <jakub@redhat.com>
38713 Port from no-undefined-overflow branch:
38714 2009-03-09 Richard Guenther <rguenther@suse.de>
38716 * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
38718 2010-01-14 Richard Guenther <rguenther@suse.de>
38721 * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
38723 2010-01-14 Ira Rosen <irar@il.ibm.com>
38725 PR tree-optimization/42709
38726 * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
38727 as scalar type in creation of constant vector operand.
38729 2010-01-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
38732 * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
38733 (check-parallel-%): Match `testsuite' directory component only
38736 2010-01-14 Shujing Zhao <pearly.zhao@oracle.com>
38738 PR translation/39521
38739 * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
38742 2010-01-13 Richard Guenther <rguenther@suse.de>
38744 PR tree-optimization/42730
38745 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
38748 2010-01-13 Steve Ellcey <sje@cup.hp.com>
38751 * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
38752 for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
38755 2010-01-13 Bernd Schmidt <bernd.schmidt@analog.com>
38757 * config/bfin/libgcc-bfin.ver: Regenerate based on current
38758 libgcc-std.ver. Add entries for ___smulsi3_highpart and
38759 ___umulsi3_highpart.
38761 * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
38762 rather than schedule_insns if the pass is enabled.
38764 2010-01-13 Martin Jambor <mjambor@suse.cz>
38766 PR tree-optimization/42704
38767 * tree-sra.c (sra_modify_assign): Do not delete assignments to
38770 2010-01-13 Martin Jambor <mjambor@suse.cz>
38772 PR tree-optimization/42703
38773 * tree-sra.c (analyze_access_subtree): Check that we can build a
38774 reference to the original data within the aggregate.
38776 2010-01-13 Richard Guenther <rguenther@suse.de>
38778 PR tree-optimization/42705
38779 * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
38781 2010-01-13 Richard Guenther <rguenther@suse.de>
38783 PR middle-end/42716
38784 * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
38786 2010-01-13 Jakub Jelinek <jakub@redhat.com>
38789 * var-tracking.c (values_to_unmark): New variable.
38790 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
38791 values_to_unmark vector. Moved body to...
38792 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
38793 instead queue it into values_to_unmark vector.
38794 (vt_find_locations): Free values_to_unmark vector.
38796 2010-01-13 Wolfgang Gellerich <gellerich@de.ibm.com>
38798 * config/s390/s390.c (override_options): Set
38799 default of max-pending-list-length to 256
38801 2010-01-13 Richard Guenther <rguenther@suse.de>
38804 * tree-pass.h (PROP_gimple_lcx): New.
38805 * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
38806 * passes.c (init_optimization_passes): Move pass_lower_complex_O0
38807 before the final cleanup_eh.
38808 (dump_properties): Dump PROP_gimple_lcx.
38809 * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
38810 (tree_lower_complex_O0): Remove.
38811 (gate_no_optimization): Run if PROP_gimple_lcx is not set.
38812 (pass_lower_complex_O0): Provide PROP_gimple_lcx. Run
38813 tree_lower_complex, schedule TODO_update_ssa.
38814 * lto-streamer-out.c (output_function): Stream the functions
38816 * lto-streamer-in.c (input_function): Likewise.
38817 (lto_read_body): Do not override them here.
38819 2010-01-12 Joseph Myers <joseph@codesourcery.com>
38822 * c-typeck.c (build_c_cast): Fold value cast to union type before
38823 wrapping it in a CONSTRUCTOR.
38825 2010-01-12 Jakub Jelinek <jakub@redhat.com>
38827 PR rtl-optimization/42699
38828 * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
38831 2010-01-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
38833 * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
38834 SUBTARGET_WARN_UNUSED_SPEC): Move ...
38835 config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
38836 SUBTARGET_WARN_UNUSED_SPEC): ... here
38837 * config/mips/iris5.h (LIBGCC_SPEC): Define.
38839 2010-01-12 Julian Brown <julian@codesourcery.com>
38841 * config/arm/neon-schedgen.ml (Utils): Don't try to
38842 open missing module.
38843 (find_with_result): New.
38845 2010-01-12 Jakub Jelinek <jakub@redhat.com>
38848 * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
38849 sharing when canonicalizing ({lt,ge}u (plus a b) b).
38851 PR tree-optimization/42645
38852 * tree-inline.c (processing_debug_stmt): Move earlier. Make static.
38853 (remap_ssa_name): If processing_debug_stmt and name wasn't found in
38854 decl_map, set processing_debug_stmt to -1 and return name without
38857 2010-01-11 Dave Korn <dave.korn.cygwin@gmail.com>
38859 * doc/install.texi (Specific#x-x-cygwin): Document minimum required
38860 binutils version, and reword target configuration description.
38862 2010-01-11 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
38864 * config/avr/avr.h (LINKER_NAME): Remove.
38866 2010-01-11 Janis Johnson <janis187@us.ibm.com>
38869 * config/rs6000/rs6000.c (rs6000_override_options): On targets
38870 that support VSX, warn for -mno-altivec if vsx is not disabled,
38873 2010-01-11 Joseph Myers <joseph@codesourcery.com>
38874 Shujing Zhao <pearly.zhao@oracle.com>
38876 PR translation/42469
38877 * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
38878 fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
38879 character between option name and help text.
38880 * c.opt (imultilib): Likewise.
38882 2010-01-10 Rafael Avila de Espindola <espindola@google.com>
38884 * lto-streamer-out.c (output_unreferenced_globals): Output static
38887 2010-01-10 Steven Bosscher <steven@gcc.gnu.org>
38889 PR rtl-optimization/42621
38890 * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
38891 optimizing for size.
38892 (duplicate_computed_gotos): Remove now-redundant check.
38894 2010-01-10 Steve Ellcey <sje@cup.hp.com>
38897 * configure.ac: Save and restore LDFLAGS and LIBS
38898 * configure: Regenerate.
38900 2010-01-10 Richard Guenther <rguenther@suse.de>
38902 PR middle-end/42667
38903 * builtins.c (fold_builtin_strlen): Add type argument and
38904 convert the resulting length to it.
38905 (fold_builtin_1): Adjust.
38907 2010-01-09 Jakub Jelinek <jakub@redhat.com>
38909 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
38910 sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
38912 (num_insns_constant_wide): Adjust for that change.
38914 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
38917 * web.c (union_defs): Add used argument, to combine uses of
38918 uninitialized regs.
38919 (entry_register): Adjust type and tests of used argument.
38920 (web_main): Widen used for new use. Pass it to union_defs.
38921 * df.h (union_defs): Adjust prototype.
38923 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
38926 * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
38927 uses in new incoming argument. Free body.
38928 (reset_debug_uses_in_loop): New.
38929 (analyze_insn_to_expand_var): Call the latter if the former found
38930 anything. Fix whitespace. Reject invalid dest overlaps before
38931 going through all insns in the loop.
38933 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
38936 * haifa-sched.c (dying_use_p): Debug insns don't count.
38938 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
38940 PR middle-end/42363
38941 * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
38942 * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
38943 (verify_gimple_call): Reject LHS in noreturn calls.
38945 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
38949 * tree-vect-loop-manip.c (adjust_info): New type.
38950 (adjust_vec): New pointer to vector.
38951 (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
38952 (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
38953 (slpeel_update_phis_for_duplicate_loop): Use them.
38954 (slpeel_update_phi_nodes_for_guard1): Likewise.
38955 (slpeel_update_phi_nodes_for_guard2): Likewise.
38956 (slpeel_tree_peel_loop_to_edge): Likewise.
38957 (vect_update_ivs_after_vectorizer): Likewise.
38959 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
38961 * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
38962 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
38964 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
38966 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
38967 bogus uninitialized warning.
38969 2010-01-09 Richard Guenther <rguenther@suse.de>
38971 PR middle-end/42512
38972 * tree-scalar-evolution.c (interpret_loop_phi): Make sure
38973 the evolution is compatible with the initial condition.
38975 2010-01-09 Jakub Jelinek <jakub@redhat.com>
38977 * gcc.c (process_command): Update copyright notice dates.
38978 * gcov.c (print_version): Likewise.
38979 * gcov-dump.c (print_version): Likewise.
38980 * mips-tfile.c (main): Likewise.
38981 * mips-tdump.c (main): Likewise.
38983 2010-01-08 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
38986 * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
38988 (rotlhi3_8): Delete.
38990 (rotlsi3_8): Delete.
38991 (rotlsi3_16): Delete.
38992 (rotlsi3_24): Delete.
38993 (rotl<mode>3): New.
38994 (*rotw<mode>3): New.
38995 (*rotb<mode>3): New.
38996 * config/avr/avr.c (avr_rotate_bytes): New function.
38997 * config/avr/avr-proto.h (avr_rotate_bytes): New function.
38999 2010-01-08 Steve Ellcey <sje@cup.hp.com>
39002 * configure.ac: Modify -rdynamic check.
39003 * configure: Regenerate.
39005 2010-01-08 DJ Delorie <dj@redhat.com>
39007 * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
39008 register popping order.
39010 2010-01-08 Richard Guenther <rguenther@suse.de>
39013 * c.opt (fsigned-char): Also let LTO handle this option.
39014 (funsigned-char): Likewise.
39016 2010-01-07 Richard Guenther <rguenther@suse.de>
39018 * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
39019 (gimple_op): Likewise.
39020 (gimple_op_ptr): Likewise.
39021 (gimple_assign_set_lhs): Remove gcc_assert.
39022 (gimple_assign_set_rhs1): Likewise.
39023 (gimple_assign_set_rhs2): Likewise.
39024 (gimple_call_set_lhs): Likewise.
39025 (gimple_call_set_fn): Likewise.
39026 (gimple_call_set_fndecl): Likewise.
39027 (gimple_call_fndecl): Likewise.
39028 (gimple_call_return_type): Likewise.
39029 (gimple_call_set_chain): Likewise.
39030 (gimple_call_num_args): Likewise.
39031 (gimple_call_set_arg): Likewise.
39032 (gimple_cond_set_code): Likewise.
39033 (gimple_cond_set_lhs): Likewise.
39034 (gimple_cond_set_rhs): Likewise.
39035 (gimple_cond_set_true_label): Likewise.
39036 (gimple_cond_set_false_label): Likewise.
39037 (gimple_label_set_label): Likewise.
39038 (gimple_goto_set_dest): Likewise.
39039 (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
39040 (gimple_debug_bind_get_value): Likewise.
39041 (gimple_debug_bind_get_value_ptr): Likewise.
39042 (gimple_debug_bind_set_var): Likewise.
39043 (gimple_debug_bind_set_value): Likewise.
39044 (gimple_debug_bind_reset_value): Likewise.
39045 (gimple_debug_bind_has_value_p): Likewise.
39046 (gimple_return_retval_ptr): Remove gcc_assert.
39047 (gimple_return_retval): Likewise.
39048 (gimple_return_set_retval): Likewise.
39049 * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
39050 (safe_referenced_var_iterator): Remove.
39051 (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
39052 * tree-flow-inline.h (gimple_nonlocal_all): Remove.
39053 (fill_referenced_var_vec): Remove.
39054 (first_readonly_imm_use): Remove redundant gcc_assert.
39055 (phi_arg_index_from_use): Combine gcc_asserts.
39056 (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
39057 (first_imm_use_stmt): Remove redundant gcc_assert.
39058 * tree-cfg.c (verify_gimple_call): Verify function and chain
39059 operands. Verify arguments.
39060 (verify_types_in_gimple_stmt): Verify condition code and labels.
39062 2010-01-07 Richard Guenther <rguenther@suse.de>
39064 PR tree-optimization/42641
39065 * sese.c (rename_map_elt_info): Use the SSA name version, do
39068 2010-01-07 Jakub Jelinek <jakub@redhat.com>
39070 PR tree-optimization/42625
39071 * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
39072 TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
39074 2010-01-07 Duncan Sands <baldrick@free.fr>
39076 * Makefile.in (PLUGIN_HEADERS): Add version.h.
39078 2010-01-07 Uros Bizjak <ubizjak@gmail.com>
39081 * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
39082 note itself is not function_invariant_p.
39084 2009-01-07 Steven Bosscher <steven@gcc.gnu.org>
39086 * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
39087 Do not add the DF_NOTE problem.
39088 * store-motion.c (execute_rtl_store_motion): Likewise.
39090 2010-01-07 Martin Jambor <mjambor@suse.cz>
39092 PR tree-optimization/42157
39093 * tree-sra.c (compare_access_positions): Stabilize sort if both
39094 accesses have integer types, return zero immediately if they are the
39097 2010-01-06 Richard Henderson <rth@redhat.com>
39099 PR middle-end/41883
39100 * haifa-sched.c (add_to_note_list): Merge into ...
39101 (concat_note_lists): ... here, and ...
39102 (unlink_other_notes, rm_other_notes): Merge into...
39103 (remove_notes): ... here. Create REG_SAVE_NOTEs for
39104 NOTE_INSN_EPILOGUE_BEG.
39106 2010-01-06 Richard Guenther <rguenther@suse.de>
39108 * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
39109 not inline regular functions into always-inline functions.
39111 2010-01-06 Nick Clifton <nickc@redhat.com>
39113 * config/rx/rx.h (enum rx_cpu_type): Add RX200.
39114 (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
39116 (OVERRIDE_OPTIONS): Delete.
39117 (OPTIMIZATION_OPTIONS): Define.
39118 (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
39119 * config/rx/rx.c (rx_handle_option): Issue an error message if
39120 -mcpu=rx200 and -fpu are used together.
39121 (rx_set_optimization_options): New function. Issue an error
39122 message if an optimization attribute attempts to reset the FPU/
39123 math optimization pairing.
39124 * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
39125 * config/rx/rx.opt: Set the default to 32-bit doubles.
39126 * config/rx/t-rx: Add multilibs for -nofpu option.
39127 * doc/invoke.texi: Update documentation of RX options.
39129 2010-01-06 Richard Guenther <rguenther@suse.de>
39131 * tree-ssa-pre.c (name_to_id): New global.
39132 (alloc_expression_id): Simplify SSA name handling.
39133 (lookup_expression_id): Likewise.
39134 (init_pre): Zero name_to_id.
39135 (fini_pre): Free it.
39137 2010-01-06 Uros Bizjak <ubizjak@gmail.com>
39139 * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
39141 2010-01-05 H.J. Lu <hongjiu.lu@intel.com>
39144 * config/i386/sse.md (smaxv2di3): New.
39145 (umaxv2di3): Likewise.
39146 (sminv2di3): Likewise.
39147 (uminv2di3): Likewise.
39149 2010-01-05 Eric Botcazou <ebotcazou@adacore.com>
39152 * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
39153 * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
39154 (legitimize_tls_address): Likewise.
39155 (sparc_tls_referenced_p): Likewise.
39156 * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
39157 and adjust calls to legitimize_pic_address.
39158 (legitimate_constant_p) Use sparc_tls_referenced_p.
39159 (legitimate_pic_operand_p): Likewise.
39160 (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
39161 (sparc_tls_symbol_ref_1): Delete.
39162 (sparc_tls_referenced_p): Make static, recognize specific patterns.
39163 (legitimize_tls_address): Make static, handle CONST patterns.
39164 (legitimize_pic_address): Make static, remove unused parameter and
39165 adjust recursive calls.
39166 (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
39167 and adjust call to legitimize_pic_address.
39168 (sparc_output_mi_thunk): Likewise.
39170 2010-01-05 Paolo Bonzini <bonzini@gnu.rg>
39171 H.J. Lu <hongjiu.lu@intel.com>
39174 * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
39175 for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
39176 operands to make them signed.
39179 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
39182 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
39183 GTU to GT for V4SI and V2DI.
39185 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
39186 (umin<mode>3): Removed.
39188 (uminv4si3): Likewise.
39190 2010-01-05 Martin Jambor <mjambor@suse.cz>
39192 PR tree-optimization/42462
39193 * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
39194 current_function_decl to helper functions and macros.
39196 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
39199 * flags.h: Don't include real.h.
39200 (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
39201 HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
39202 * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
39203 HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
39204 * dominance.c: Update copyright.
39205 * gimple.c (walk_gimple_op): Remove inline.
39206 * tree-ssa-reassoc.c: Include real.h.
39207 * Makefile.in (FLAGS_H): Remove $(REAL_H).
39208 (tree-ssa-reassoc.o): Depend on $(REAL_H).
39210 2010-01-05 Nick Clifton <nickc@redhat.com>
39212 * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
39213 register to push into the stack frame when the accumulator has to
39214 be saved during interrupts.
39216 2010-01-05 Eric Fisher <joefoxreal@gmail.com>
39218 * doc/invoke.texi: Remove the documentation about option
39219 -Wunreachable-code.
39220 * common.opt (Wunreachable-code): Preserved for backward
39222 * tree-cfg.c: Remove the implementation of -Wunreachable-code.
39223 * opts.c (common_handle_option): Add OPT_Wunreachable_code to
39224 the backward compatibility flag section.
39226 2010-01-05 Richard Guenther <rguenther@suse.de>
39228 * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
39230 2010-01-05 Jakub Jelinek <jakub@redhat.com>
39233 * cfgexpand.c (expand_one_var): Diagnose too large variables.
39235 PR tree-optimization/42508
39236 * tree-sra.c (convert_callers): Check for recursive call
39237 by comparing cgraph nodes instead of decls.
39238 (modify_function): Call ipa_modify_formal_parameters also
39239 on all same_body aliases.
39241 * cgraphunit.c (cgraph_materialize_all_clones): Compare
39242 cgraph nodes when checking for same_body aliases.
39244 2010-01-05 Richard Guenther <rguenther@suse.de>
39246 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
39247 allocation and lookup.
39248 (get_or_alloc_expr_for_constant): Likewise.
39249 (phi_translate): Sink allocation.
39251 2010-01-04 Richard Guenther <rguenther@suse.de>
39253 * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
39254 a new entry only if needed.
39255 * tree-ssa-dom.c (lookup_avail_expr): Likewise.
39256 * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
39258 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
39260 (phi_translate): Handle CONSTANTs early.
39262 2010-01-04 Martin Jambor <mjambor@suse.cz>
39264 PR tree-optimization/42398
39265 * tree-sra.c (struct access): Removed flag grp_different_types.
39266 (dump_access): Do not dump the removed flag.
39267 (sort_and_splice_var_accesses): Do not set the removed flag.
39268 (sra_modify_expr): Check for type compatibility directly.
39270 2010-01-04 Martin Jambor <mjambor@suse.cz>
39272 PR tree-optimization/42366
39273 * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
39274 edges with variable number of parameters.
39275 * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
39276 flag instead of asserting it.
39277 (ipa_read_node_info): Read uses_analysis_done flag.
39279 2010-01-04 Richard Guenther <rguenther@suse.de>
39281 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
39282 iterative_hash_* as intended.
39283 (vn_reference_compute_hash): Likewise. Simplify hashing
39285 (vn_reference_lookup_2): Likewise.
39286 (vn_nary_op_compute_hash): Likewise.
39287 (vn_phi_compute_hash): Likewise.
39288 (expressions_equal_p): Remove strange code.
39289 * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
39290 (pre_expr_hash): Likewise. Simplify hashing SSA names.
39291 (bitmap_insert_into_set_1): Take value-id as parameter.
39292 (add_to_value): Pass it.
39293 (bitmap_insert_into_set): Likewise.
39294 (bitmap_value_insert_into_set): Likewise. Remove redundant check.
39296 2010-01-04 Jakub Jelinek <jakub@redhat.com>
39299 * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
39300 (do_self_spec): For switches with SWITCH_IGNORE set set also
39301 SWITCH_IGNORE_PERMANENTLY.
39302 (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
39305 2010-01-04 Rafael Avila de Espindola <espindola@google.com>
39307 * lto-streamer-out.c (output_unreferenced_globals): Output the full
39308 tree of an unreferenced global var.
39310 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
39313 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
39314 GTU to GT for V4SI and V2DI.
39316 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
39317 (umin<mode>3): Removed.
39319 (uminv4si3): Likewise.
39321 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
39324 * collect2.c (main): Turn on trace in collect2 if -v is passed
39327 2010-01-03 Jerry Quinn <jlquinn@optonline.net>
39329 * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR. Update
39330 description of expression operand.
39332 2010-01-03 Andrew Jenner <andrew@codesourcery.com>
39334 * configure.ac: Add install-html to target_list for Make-hooks.
39335 * configure: Regenerate.
39336 * fortran/Make-lang.in (F95_HTMLFILES): New.
39337 (fortran.html): Use it.
39338 (fortran.install-html): New.
39339 * Makefile.in (install-html): Add lang.install-html.
39340 * java/Make-lang.in (JAVA_HTMLFILES): New.
39341 (java.html): Use it.
39342 (java.install-html): New.
39343 * objc/Make-lang.in (objc.install-html): New.
39344 * objcp/Make-lang.in (obj-c++.install-html): New.
39345 * cp/Make-lang.in (c++.install-html): New.
39346 * ada/gcc-interface/Make-lang.in (ada.install-html): New.
39347 * lto/Make-lang.in (lto.install-html): New.
39349 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
39352 * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
39354 2009-01-03 Steven Bosscher <steven@gcc.gnu.org>
39356 PR rtl-optimization/41862
39357 * store-motion.c (store_killed_in_insn, compute_store_table,
39358 remove_reachable_equiv_notes, replace_store_insn,
39359 build_store_vectors): Ignore all DEBUG_INSNs.
39361 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
39364 * common.opt: Add dumpdir.
39366 * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
39368 (option_map): Add --dumpdir.
39370 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
39372 * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
39374 * opts.c (decode_options): Try dump_dir_name first if
39375 dump_base_name isn't an absolute path.
39376 (common_handle_option): Handle OPT_dumpdir.
39378 * toplev.c (dump_dir_name): New.
39379 (print_switch_values): Also ignore -dumpdir.
39381 * toplev.h (dump_dir_name): New.
39383 2010-01-03 Richard Guenther <rguenther@suse.de>
39385 PR tree-optimization/42589
39386 * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
39387 double-word expansion of bswap32.
39389 2010-01-03 Steven Bosscher <steven@gcc.gnu.org>
39391 * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
39392 with BLOCK_FOR_INSN.
39393 * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
39394 * ifcvt.c (noce_get_alt_condition, noce_try_abs,
39395 noce_process_if_block): Likewise.
39396 * gcse.c (compute_local_properties, insert_expr_in_table,
39397 insert_set_in_table, canon_list_insert, find_avail_set,
39398 pre_insert_copy_insn): Likewise.
39400 * basic-block.h (BLOCK_NUM): Move from here...
39401 * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
39403 2010-01-03 Richard Guenther <rguenther@suse.de>
39405 PR tree-optimization/42438
39406 * tree-ssa-pre.c (struct bb_bitmap_sets): Add
39407 contains_may_not_return_call flag.
39408 (BB_MAY_NOTRETURN): New.
39409 (valid_in_sets): Trapping nary operations are not valid
39410 in blocks that may not return.
39411 (insert_into_preds_of_block): Remove check for trapping expressions.
39412 (compute_avail): Compute also BB_MAY_NOTRETURN.
39414 2010-01-03 Gerald Pfeifer <gerald@pfeifer.com>
39416 * doc/invoke.texi: Add 2010 to copyright years.
39418 2010-01-03 Eric Botcazou <ebotcazou@adacore.com>
39420 * config/sparc/sparc.c: Fix formatting nits.
39422 2010-01-02 Gerald Pfeifer <gerald@pfeifer.com>
39423 Alexander Monakov <amonakov@ispras.ru>
39425 * doc/invoke.texi (Optimize Options): Reword introduction a bit.
39427 2010-01-02 Richard Guenther <rguenther@suse.de>
39429 PR middle-end/42577
39430 * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
39431 (simplify_switch_using_ranges): Mark to be removed edges
39434 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
39436 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
39438 * collect2.c (scan_libraries): Add missing argument in call to
39441 2010-01-02 Uros Bizjak <ubizjak@gmail.com>
39444 * config/alpha/predicates.md (aligned_memory_operand): Return false
39446 (unaligned_memory_operand): Return true for CQImode.
39447 * config/alpha/alpha.c (get_aligned_mem): Assert that location
39448 doesn not cross aligned SImode word boundary.
39450 2010-01-02 Anatoly Sokolov <aesok@post.ru>
39452 * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
39454 * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
39455 avr_change_section, avr_reg_class_from_letter) : Remove declaration.
39457 2010-01-02 Richard Guenther <rguenther@suse.de>
39460 * toplev.c (compile_file): Emit LTO marker properly. Change
39461 it to __gnu_lto_v1.
39462 * collect2.c (scan_prog_file): Adjust for changed LTO marker.
39464 2010-01-01 Richard Guenther <rguenther@suse.de>
39467 * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
39469 2010-01-01 Richard Guenther <rguenther@suse.de>
39472 * c-decl.c (grokdeclarator): For zero-size arrays force
39473 structural equality checks as layout_type does.
39475 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
39477 * builtins.c: Update copyright to 2010.
39479 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
39482 * lto-streamer-out.c (produce_asm): Revert the last change.
39483 (copy_function): Likewise.
39485 * lto-streamer.c (lto_get_section_name): Skip any leading
39488 2010-01-01 Richard Guenther <rguenther@suse.de>
39490 PR middle-end/42559
39491 * builtins.c (get_object_alignment): Do not use DECL_ALIGN
39495 Copyright (C) 2010 Free Software Foundation, Inc.
39497 Copying and distribution of this file, with or without modification,
39498 are permitted in any medium without royalty provided the copyright
39499 notice and this notice are preserved.